{"version":3,"sources":["Feature/ContactLocator/code/ui/scripts/ContactArea/ContactArea.js"],"names":["contactAreaDefaultMode","window","innerWidth","prop","cookieHelper","getCookie","$","document","on","event","setCookie","hasClass","target","checked","is","checkWindowWidth"],"mappings":"AAkBQ,SAAIA,mBAEEC,OAAAC,WAAkBC,OAE3B,WADIC,aAAAC,UAAA,2BAERC,EAAA,kBAAAH,KAAA,WAAA,IAvBDG,EAAE,WAIMA,EAAAC,UAAAC,GAAA,mBAAA,SAAAC,GAGIL,GAAAA,EAAAA,EAAaM,QAAbC,SAAuB,6BAAqCL,EAAAG,EAASG,QAArED,SAAqF,iCAArF,CACH,IAAAE,EAAAP,EAAA,uBAAAQ,GAAA,YANLV,aAAAM,UAAA,yBAAAG,EAAA,SAAA,OAAA,UAYJE","file":"../../../scripts/ContactArea/ContactArea-60780e0e79.js","sourcesContent":["$(function () {\r\n \r\n $(document).on('click touchstart', function (event) {\r\n\r\n // if any of the expand/close areas was clicked then switch the fold-out status and set cookie.\r\n if ($(event.target).hasClass('ContactArea-expandButton') || $(event.target).hasClass('ContactArea-expandButtonLarge')) {\r\n let checked = $('.ContactArea-toggle').is(\":checked\");\r\n cookieHelper.setCookie(\"contactAreaDefaultMode\", !checked ? \"open\" : \"closed\", 365 * 100);\r\n }\r\n });\r\n\r\n checkWindowWidth();\r\n});\r\n\r\nfunction checkWindowWidth() {\r\n\r\n // if on a big screen check if the contact area shall be open on first load and if cookie is not set.\r\n if (window.innerWidth > 1600) {\r\n let contactAreaDefaultMode = cookieHelper.getCookie(\"contactAreaDefaultMode\");\r\n if (contactAreaDefaultMode !== \"closed\") {\r\n $('#toggleContact').prop(\"checked\", true);\r\n }\r\n }\r\n}\r\n"]}