{"version":3,"file":"Cookies.CdWHUU1s.mjs","names":[],"sources":["https:/framerusercontent.com/modules/P7aoPe2nkM1quDzWLC4k/oANpw2ZHMQSpIe9Uy9Cf/Cookies.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{isBrowser}from\"framer-motion\";export function withTracking(Component){return props=>{function sendToDL(payload){if(isBrowser){window.dataLayer=window.dataLayer||[];window.dataLayer.push(payload);}}function handleShown({isInEU}){sendToDL({event:\"CookieBannerShown\",isInEU});}function handleAccept({isInEU}){sendToDL({event:\"CookieBannerAccepted\",isInEU});}function handleReject({isInEU}){sendToDL({event:\"CookieBannerRejected\",isInEU});}function handleDismiss({isInEU}){sendToDL({event:\"CookieBannerDismissed\",isInEU});}function handleConsentChange({isInEU,consent}){const acceptedConsent={analytics:true,marketing:true,necessary:true,preferences:true};const consentIsGiven=JSON.stringify(consent)===JSON.stringify(acceptedConsent);if(consentIsGiven){sendToDL({event:\"CookieBannerStartTracking\",isInEU});}}return /*#__PURE__*/_jsx(Component,{...props,onShown:handleShown,onAccept:handleAccept,onReject:handleReject,onDismiss:handleDismiss,onConsentChange:handleConsentChange,gtmLoadedExternally:true});};}export function withCookieReset(Component){return props=>{function handleClick(){localStorage.removeItem(\"framerCookiesConsentMode\");localStorage.removeItem(\"framerCookiesDismissed\");}return /*#__PURE__*/_jsx(Component,{...props,onClick:handleClick});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCookieReset\":{\"type\":\"reactHoc\",\"name\":\"withCookieReset\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTracking\":{\"type\":\"reactHoc\",\"name\":\"withTracking\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Cookies.map"],"mappings":"qPAAgF,SAAgB,EAAa,EAAU,CAAC,MAAO,CAAA,GAAO,CAAC,SAAS,EAAS,EAAQ,CAAC,AAAG,IAAW,EAAO,UAAU,EAAO,WAAW,CAAE,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