{"version":3,"file":"shared-lib.COU-cWjs.mjs","names":["useState","fonts","css","className"],"sources":["https:/framerusercontent.com/modules/mfmzdVsi7vb3bWnZp3CA/lxarII0d7Hom9U28rQfE/Cookie_consent.js","https:/framerusercontent.com/modules/o9SFsUdMV8zRLCZToutZ/U52KjjCChQd8DUBXmlMs/Lsh25C6pM.js","https:/framerusercontent.com/modules/cGEwxqc0sbv5ocf2shLP/apXdJbqtARqnFIll1bbr/mgabtFpor.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";// Create a CookieConsent component\nexport default function CookieConsent(){const[isVisible,setIsVisible]=useState(false);// Function to set a cookie\nfunction setCookie(name,value,days){let expires=\"\";if(days){const date=new Date;date.setTime(date.getTime()+days*24*60*60*1e3);expires=\"; expires=\"+date.toUTCString();}document.cookie=name+\"=\"+(value||\"\")+expires+\"; path=/\";}// Function to get a cookie\nfunction getCookie(name){const nameEQ=name+\"=\";const ca=document.cookie.split(\";\");for(let i=0;i<ca.length;i++){let c=ca[i];while(c.charAt(0)===\" \")c=c.substring(1,c.length);if(c.indexOf(nameEQ)===0)return c.substring(nameEQ.length,c.length);}return null;}// Function to delete all non-essential cookies\nfunction deleteNonEssentialCookies(){const cookies=document.cookie.split(\"; \");cookies.forEach(cookie=>{const cookieName=cookie.split(\"=\")[0];if(![\"essential_cookie_name1\",\"essential_cookie_name2\"].includes(cookieName)){document.cookie=cookieName+\"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\";}});}// Handle the Accept button click\nconst acceptCookies=()=>{setCookie(\"consent\",\"true\",30)// Set consent for 30 days\n;loadThirdPartyScripts()// Load non-essential third-party scripts\n;setIsVisible(false)// Hide banner\n;};// Handle the Reject button click - Disable all cookies\nconst rejectCookies=()=>{setCookie(\"consent\",\"false\",30)// Set consent rejection for 30 days\n;deleteNonEssentialCookies()// Delete non-essential cookies\n;setIsVisible(false)// Hide banner\n;};// Load third-party scripts if cookies are accepted\nconst loadThirdPartyScripts=()=>{// Example: Load Google Analytics or other third-party scripts here\n// if user consents to cookies\nconst script=document.createElement(\"script\");script.src=\"https://www.google-analytics.com/analytics.js\"// Replace with your script URL\n;document.body.appendChild(script);};// On page load, check if consent is already provided\nuseEffect(()=>{const consent=getCookie(\"consent\");if(consent===\"true\"){loadThirdPartyScripts()// Load scripts if consent was given\n;}else if(!consent){setIsVisible(true)// Show banner if no consent found\n;}},[]);// If banner is not visible, don't render anything\nif(!isVisible)return null;// Render the cookie consent banner\nreturn /*#__PURE__*/_jsxs(\"div\",{style:bannerStyle,children:[/*#__PURE__*/_jsx(\"p\",{children:\"We use cookies to improve your experience. By clicking accept you agree to our use of\\xa0cookies.\"}),/*#__PURE__*/_jsxs(\"div\",{style:buttonContainer,children:[/*#__PURE__*/_jsx(\"button\",{onClick:rejectCookies,style:rejectButton,children:\"Reject\"}),/*#__PURE__*/_jsx(\"button\",{onClick:acceptCookies,style:acceptButton,children:\"Accept\"})]})]});}// Styles for the banner and buttons\nconst bannerStyle={position:\"fixed\",bottom:\"10px\",right:\"10px\",backgroundColor:\"#FFFFFF\",marginLeft:\"10px\",padding:\"20px\",paddingTop:\"5px\",paddingBottom:\"15px\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",border:\"1px solid #E3E3E3\",borderRadius:\"10px\",zIndex:\"1000\",maxWidth:\"300px\"};const buttonContainer={display:\"flex\",gap:\"10px\",paddingTop:\"5px\",marginTop:\"2px\",justifyContent:\"center\",width:\"100%\"};const acceptButton={color:\"#000\",backgroundColor:\"#EFBA42\",border:\"none\",borderRadius:\"20px\",padding:\"10px 20px\",cursor:\"pointer\",width:\"45%\",textAlign:\"center\"};const rejectButton={color:\"#4a4a4a\",backgroundColor:\"#f0f0f0\",border:\"1px solid #f0f0f0\",borderRadius:\"20px\",padding:\"10px 20px\",cursor:\"pointer\",width:\"45%\",textAlign:\"center\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CookieConsent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Cookie_consent.map","// Generated by Framer (e2c535a)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-ok7o3 .framer-styles-preset-170ztms:not(.rich-text-wrapper), .framer-ok7o3 .framer-styles-preset-170ztms.rich-text-wrapper a { --framer-link-current-text-color: #d9d9d9; --framer-link-current-text-decoration: none; --framer-link-hover-text-color: #6803ff; --framer-link-hover-text-decoration: underline; --framer-link-text-color: #6425b8; --framer-link-text-decoration: underline; }\"];export const className=\"framer-ok7o3\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (3e98c13)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-C7A5t .framer-styles-preset-jnqkqa:not(.rich-text-wrapper), .framer-C7A5t .framer-styles-preset-jnqkqa.rich-text-wrapper a { --framer-link-current-text-color: #111111; --framer-link-current-text-decoration: underline; --framer-link-hover-text-color: #0088ff; --framer-link-hover-text-decoration: underline; --framer-link-text-color: #0004ff; --framer-link-text-decoration: none; }\"];export const className=\"framer-C7A5t\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"4KACA,SA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