{"version":3,"file":"shared-lib.Mop4IVnB.mjs","names":["useState","useCallback","useMemo","startTransition"],"sources":["https:/framerusercontent.com/modules/SIvIWbFBIVUDZ4tYTwXI/z8BCSvUaH9jASHyeRdRa/VirtusCookieBanner.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{startTransition,useCallback,useEffect,useMemo,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function VirtusCookieBanner(props){const{language=\"Auto\"}=props;const[isMounted,setIsMounted]=useState(false);const[isVisible,setIsVisible]=useState(false);const[isEnglish,setIsEnglish]=useState(false);const[isMobile,setIsMobile]=useState(false);const[isButtonHover,setIsButtonHover]=useState(false);const[isButtonPressed,setIsButtonPressed]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const updateBreakpoint=()=>{startTransition(()=>setIsMobile(window.innerWidth<768));};const pathname=window.location.pathname||\"/\";const english=pathname.startsWith(\"/en\");const acknowledged=window.localStorage.getItem(\"virtus-cookie-notice-v1\")===\"acknowledged\";startTransition(()=>{setIsEnglish(english);setIsVisible(!acknowledged);setIsMounted(true);});updateBreakpoint();window.addEventListener(\"resize\",updateBreakpoint);return()=>{window.removeEventListener(\"resize\",updateBreakpoint);};},[]);const dismissBanner=useCallback(()=>{if(typeof window!==\"undefined\"){window.localStorage.setItem(\"virtus-cookie-notice-v1\",\"acknowledged\");}startTransition(()=>setIsVisible(false));},[]);const copy=useMemo(()=>{const resolvedIsEnglish=language===\"English\"?true:language===\"Dutch\"?false:isEnglish;if(resolvedIsEnglish){return{ariaLabel:\"Cookie and privacy notice\",title:\"Cookies and privacy\",body:\"VIRTUS does not use tracking cookies or marketing cookies. This website only uses necessary technologies and privacy-friendly, aggregated statistics through Framer Analytics to understand how the website is used. If you submit your details through the contact form, we will only use them to contact you and handle your request.\",button:\"Got it\",cookieLabel:\"Cookie Policy\",cookieHref:\"/en/cookie-policy\",privacyLabel:\"Privacy Statement\",privacyHref:\"/privacy\"};}return{ariaLabel:\"Cookie- en privacymelding\",title:\"Cookies en privacy\",body:\"VIRTUS gebruikt geen trackingcookies of marketingcookies. Deze website gebruikt alleen noodzakelijke technieken en privacyvriendelijke, geaggregeerde statistieken via Framer Analytics om inzicht te krijgen in het gebruik van de website. Laat u gegevens achter via het contactformulier? Dan gebruiken wij deze uitsluitend om contact met u op te nemen en uw vraag te behandelen.\",button:\"Begrepen\",cookieLabel:\"Cookiebeleid\",cookieHref:\"/cookiebeleid\",privacyLabel:\"Privacyverklaring\",privacyHref:\"/privacy\"};},[isEnglish,language]);const buttonStyle=useMemo(()=>{const backgroundColor=isButtonPressed?\"#B88A2E\":isButtonHover?\"#D5A849\":\"#C99A3D\";return{appearance:\"none\",border:\"1px solid rgba(201, 154, 61, 0.95)\",background:backgroundColor,color:\"#061A34\",fontFamily:\"Satoshi, system-ui, -apple-system, Segoe UI, sans-serif\",fontSize:14,fontWeight:600,lineHeight:\"1em\",letterSpacing:\"-0.01em\",borderRadius:8,padding:\"12px 18px\",cursor:\"pointer\",transition:\"background-color 160ms ease, transform 120ms ease\",transform:isButtonPressed?\"translateY(1px)\":\"translateY(0px)\",width:isMobile?\"100%\":\"auto\",minWidth:isMobile?undefined:112,flexShrink:0};},[isButtonHover,isButtonPressed,isMobile]);if(!isMounted||!isVisible)return null;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",left:0,right:0,bottom:0,zIndex:2147483e3,overflowX:\"hidden\",overflowY:\"auto\",maxHeight:\"min(60vh, 420px)\",paddingTop:14,paddingBottom:\"calc(14px + env(safe-area-inset-bottom, 0px))\",paddingLeft:16,paddingRight:16,background:\"#061A34\",borderTop:\"1px solid rgba(255, 255, 255, 0.2)\",boxShadow:\"0 -10px 28px rgba(0, 0, 0, 0.24)\"},role:\"dialog\",\"aria-label\":copy.ariaLabel,\"aria-live\":\"polite\",children:/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",margin:\"0 auto\",width:\"100%\",maxWidth:1120,display:\"flex\",alignItems:isMobile?\"stretch\":\"flex-end\",justifyContent:\"space-between\",gap:16,flexWrap:\"wrap\",flexDirection:isMobile?\"column\":\"row\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8,flex:isMobile?\"0 1 auto\":\"1 1 520px\",minWidth:0},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,color:\"#FFFFFF\",fontFamily:'\"Bodoni Moda\", Georgia, serif',fontSize:22,lineHeight:\"1.1em\",letterSpacing:\"-0.01em\",fontWeight:600},children:copy.title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:\"#F7F5F0\",fontFamily:\"Satoshi, system-ui, -apple-system, Segoe UI, sans-serif\",fontSize:14,lineHeight:\"1.45em\",fontWeight:500},children:copy.body})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:isMobile?\"column\":\"row\",alignItems:isMobile?\"stretch\":\"center\",gap:isMobile?10:12,flex:\"0 1 auto\",width:isMobile?\"100%\":\"auto\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:isMobile?10:12,flexWrap:\"wrap\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"a\",{href:copy.cookieHref,style:{color:\"#F7F5F0\",textDecoration:\"underline\",textUnderlineOffset:2,fontFamily:\"Satoshi, system-ui, -apple-system, Segoe UI, sans-serif\",fontSize:14,lineHeight:\"1.2em\",cursor:\"pointer\",outlineColor:\"#C99A3D\",outlineOffset:2},children:copy.cookieLabel}),/*#__PURE__*/_jsx(\"a\",{href:copy.privacyHref,style:{color:\"#F7F5F0\",textDecoration:\"underline\",textUnderlineOffset:2,fontFamily:\"Satoshi, system-ui, -apple-system, Segoe UI, sans-serif\",fontSize:14,lineHeight:\"1.2em\",cursor:\"pointer\",outlineColor:\"#C99A3D\",outlineOffset:2},children:copy.privacyLabel})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:dismissBanner,onMouseEnter:()=>startTransition(()=>setIsButtonHover(true)),onMouseLeave:()=>{startTransition(()=>{setIsButtonHover(false);setIsButtonPressed(false);});},onMouseDown:()=>startTransition(()=>setIsButtonPressed(true)),onMouseUp:()=>startTransition(()=>setIsButtonPressed(false)),onBlur:()=>startTransition(()=>{setIsButtonHover(false);setIsButtonPressed(false);}),style:buttonStyle,children:copy.button})]})]})});}addPropertyControls(VirtusCookieBanner,{language:{type:ControlType.Enum,title:\"Language\",options:[\"Auto\",\"Dutch\",\"English\"],optionTitles:[\"Auto\",\"Dutch\",\"English\"],defaultValue:\"Auto\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VirtusCookieBanner\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VirtusCookieBanner.map"],"mappings":"2NAGG,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,WAAS,QAAQ,EAAW,CAAC,EAAU,GAAcA,EAAS,EAAK,EAAO,CAAC,EAAU,GAAcA,EAAS,EAAK,EAAO,CAAC,EAAU,GAAcA,EAAS,EAAK,EAAO,CAAC,EAAS,GAAaA,EAAS,EAAK,EAAO,CAAC,EAAc,GAAkBA,EAAS,EAAK,EAAO,CAAC,EAAgB,GAAoBA,EAAS,EAAK,EAAE,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,MAAqB,CAAC,MAAoB,EAAY,EAAO,WAAW,GAAG,CAAC,CAAE,EAAqD,GAApC,EAAO,SAAS,UAAU,IAAA,CAA2B,WAAW,KAAK,EAAQ,EAAa,EAAO,aAAa,QAAQ,yBAAyB,IAAI,eAAkL,OAAnK,MAAoB,CAAC,EAAa,CAAO,EAAE,EAAa,CAAC,CAAY,EAAE,EAAa,EAAI,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