{"version":3,"file":"EmailGateOverlayController.kGNIOsaQ.mjs","names":["getProps","React.forwardRef","Lock","ContactUs","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","RichText","useState","useRef"],"sources":["https:/framerusercontent.com/modules/g0jlUvKK56F61kqNTMBQ/cOdVqgMR6rLpBadunzdt/RBGz_cbcz.js","https:/framerusercontent.com/modules/xvLD3uiUafQsr0BR1IQP/8fqPPDkJosgnPTnbc923/RnedQRVGC.js","https:/framerusercontent.com/modules/6G19EuLZTxXWoSqPP3pS/0XSZp5W5541zVaMbzOob/EmailGateOverlayController.js"],"sourcesContent":["// Generated by Framer (85eaff3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 2 11 C 0.895 11 0 10.105 0 9 L 0 2 C 0 0.895 0.895 0 2 0 L 16 0 C 17.105 0 18 0.895 18 2 L 18 9 C 18 10.105 17.105 11 16 11 Z\" fill=\"transparent\" height=\"11px\" id=\"ayGQID6sW\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(3 11)\" width=\"18px\"/><path d=\"M 0 9 L 0 5 C 0 2.239 2.239 0 5 0 C 7.761 0 10 2.239 10 5 L 10 9\" fill=\"transparent\" height=\"9px\" id=\"lGqj0fs0n\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(7 2)\" width=\"10px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,JEeZYcamG:width1??props.JEeZYcamG??2,P_DcoRcrY:color??props.P_DcoRcrY??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,P_DcoRcrY,JEeZYcamG,...restProps}=getProps(props);const href=useSVGTemplate(\"1431412986\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-tP8Ms\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m973uw\":P_DcoRcrY,\"--js9iwy\":JEeZYcamG,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-tP8Ms { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"P_DcoRcrY\":\"color\",\"JEeZYcamG\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Lock\",\"color\":{\"type\":\"variable\",\"value\":\"1m973uw\"},\"set\":{\"localId\":\"vectorSet/ZsiCCGPvG\",\"id\":\"ZsiCCGPvG\",\"moduleId\":\"Y7SpbVH16cWqMhj75z1M\"}}\n */const Icon=withCSS(Component,css,\"framer-tP8Ms\");Icon.displayName=\"Lock\";export default Icon;addPropertyControls(Icon,{P_DcoRcrY:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},JEeZYcamG:{defaultValue:2,displayStepper:true,hidden:false,max:16,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerVector\":\"{\\\"name\\\":\\\"Lock\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1m973uw\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/ZsiCCGPvG\\\",\\\"id\\\":\\\"ZsiCCGPvG\\\",\\\"moduleId\\\":\\\"Y7SpbVH16cWqMhj75z1M\\\"}}\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"24\",\"framerIntrinsicHeight\":\"24\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerVariables\":\"{\\\"P_DcoRcrY\\\":\\\"color\\\",\\\"JEeZYcamG\\\":\\\"width1\\\"}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (8a671e2)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,forwardLoader,getFonts,RichText,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import Lock from\"https://framerusercontent.com/modules/g0jlUvKK56F61kqNTMBQ/cOdVqgMR6rLpBadunzdt/RBGz_cbcz.js\";import ContactUs from\"https://framerusercontent.com/modules/XtkxNU8iQuee7CNwEdLY/IXwPtG1V16ee2PyNHw5g/UplWX5xjL.js\";const LockFonts=getFonts(Lock);const ContactUsFonts=getFonts(ContactUs);const cycleOrder=[\"sQMKRZ4kB\",\"NcwPEl0Mc\"];const serializationHash=\"framer-lsrLi\";const variantClassNames={NcwPEl0Mc:\"framer-v-1c3fuch\",sQMKRZ4kB:\"framer-v-gwqj6e\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const matchVariant=(...args)=>{for(const arg of args){if(arg&&typeof arg===\"string\")return arg;}return undefined;};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={\"To-small\":\"NcwPEl0Mc\",Desktop:\"sQMKRZ4kB\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"sQMKRZ4kB\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"sQMKRZ4kB\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-gwqj6e\",className,classNames),\"data-border\":true,\"data-framer-name\":\"Desktop\",layoutDependency:layoutDependency,layoutId:\"sQMKRZ4kB\",ref:refBinding,style:{\"--border-bottom-width\":\"0px\",\"--border-color\":\"rgba(0, 0, 0, 0.08)\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"rgba(255, 255, 255, 0.85)\",borderTopLeftRadius:20,borderTopRightRadius:20,boxShadow:\"0px 5px 20px 10px rgba(0, 0, 0, 0.05)\",...style},...addPropertyOverrides({NcwPEl0Mc:{\"data-framer-name\":\"To-small\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-vv9wtq\",\"data-framer-name\":\"Access accent\",layoutDependency:layoutDependency,layoutId:\"glYFF1jbI\",style:{backgroundColor:\"var(--token-6d150f47-db6d-4392-868e-1fc27a78bfbd)\",borderBottomLeftRadius:4,borderBottomRightRadius:4}}),/*#__PURE__*/_jsxs(motion.div,{className:\"framer-pdgylz\",\"data-framer-name\":\"Gate content\",layoutDependency:layoutDependency,layoutId:\"tzEjEQxVj\",children:[/*#__PURE__*/_jsxs(motion.div,{className:\"framer-822an9\",\"data-framer-name\":\"Access message\",layoutDependency:layoutDependency,layoutId:\"L8PzX5zTV\",children:[/*#__PURE__*/_jsxs(motion.div,{className:\"framer-c7719u\",\"data-framer-name\":\"Access signal\",layoutDependency:layoutDependency,layoutId:\"vchpz_aT4\",children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-12xrrpw\",\"data-framer-name\":\"Access emblem\",layoutDependency:layoutDependency,layoutId:\"gtv3fb85j\",style:{backgroundColor:\"var(--token-d389876e-d947-4333-95bc-c5acf788e8a5)\",borderBottomLeftRadius:41,borderBottomRightRadius:41,borderTopLeftRadius:41,borderTopRightRadius:41},children:/*#__PURE__*/_jsx(Lock,{animated:true,className:\"framer-7zxybp\",layoutDependency:layoutDependency,layoutId:\"hO912nQI5\",style:{\"--1m973uw\":\"var(--token-6d150f47-db6d-4392-868e-1fc27a78bfbd)\",\"--js9iwy\":2}})}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"Q1VTVE9NVjI7Q2VyYSBQcm8gTWVkaXVt\",\"--framer-font-family\":'\"Cera Pro Medium\", \"Cera Pro Medium Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"0.6px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-6d150f47-db6d-4392-868e-1fc27a78bfbd))\",\"--framer-text-transform\":\"uppercase\"},children:\"Locked content\"})}),className:\"framer-d8ifyu\",\"data-framer-name\":\"Kicker\",fonts:[\"CUSTOMV2;Cera Pro Medium\"],layoutDependency:layoutDependency,layoutId:\"H3QSs22HJ\",style:{\"--extracted-r6o4lv\":\"var(--token-6d150f47-db6d-4392-868e-1fc27a78bfbd)\"},verticalAlignment:\"top\",withExternalLayout:true})]}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.h2,{dir:\"auto\",style:{\"--font-selector\":\"Q1VTVE9NVjI7Q2VyYSBQcm8gTWVkaXVt\",\"--framer-font-family\":'\"Cera Pro Medium\", \"Cera Pro Medium Placeholder\", sans-serif',\"--framer-font-size\":\"32px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.5px\",\"--framer-text-color\":\"var(--extracted-1of0zx5, var(--token-eef314c3-cecc-415a-90be-60f3b00c34a7))\"},children:\"Sign up with your email to access this content\"})}),className:\"framer-5jupuo\",\"data-framer-name\":\"Headline\",fonts:[\"CUSTOMV2;Cera Pro Medium\"],layoutDependency:layoutDependency,layoutId:\"I4_R5LYtZ\",style:{\"--extracted-1of0zx5\":\"var(--token-eef314c3-cecc-415a-90be-60f3b00c34a7)\"},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({NcwPEl0Mc:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.h2,{dir:\"auto\",style:{\"--font-selector\":\"Q1VTVE9NVjI7Q2VyYSBQcm8gTWVkaXVt\",\"--framer-font-family\":'\"Cera Pro Medium\", \"Cera Pro Medium Placeholder\", sans-serif',\"--framer-font-size\":\"28px\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.5px\",\"--framer-line-height\":\"1.15em\",\"--framer-text-alignment\":\"center\",\"--framer-text-color\":\"var(--extracted-1of0zx5, var(--token-eef314c3-cecc-415a-90be-60f3b00c34a7))\"},children:\"Sign up with your email to access this content\"})})}},baseVariant,gestureVariant)})]}),/*#__PURE__*/_jsx(ComponentViewportProvider,{height:273,width:\"420px\",y:(componentViewport?.y||0)+0+4+(24+(Math.max(0,((componentViewport?.height||360)-0-4)/1)*1-48-273)/2),...addPropertyOverrides({NcwPEl0Mc:{width:`calc(${componentViewport?.width||\"100vw\"} - 48px)`,y:(componentViewport?.y||0)+0+4+32+((Math.max(0,((componentViewport?.height||480)-0-4)/1)*1-64-378.2)/2+81.2+24)}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-198rlir-container\",layoutDependency:layoutDependency,layoutId:\"RXwoe9ZMc-container\",nodeId:\"RXwoe9ZMc\",rendersWithMotion:true,scopeId:\"RnedQRVGC\",children:/*#__PURE__*/_jsx(ContactUs,{ba3insUQn:\"\",EvAqy2IZn:\"\",height:\"100%\",id:\"RXwoe9ZMc\",layoutId:\"RXwoe9ZMc\",rk95pZFJC:\"By clicking submit, you agree to receive marketing communications about BoardClic's insights, business and products. You can unsubscribe at any time. For more information on how BoardClic processes your personal data, please review our Privacy and cookie policy.\",style:{width:\"100%\"},uJw6o57Pu:\"rgba(255, 255, 255, 0.45)\",variant:matchVariant(\"bTMrA45AZ\"),width:\"100%\",Y6TnWmu8i:true,...addPropertyOverrides({NcwPEl0Mc:{variant:matchVariant(\"D7ORqtShd\")}},baseVariant,gestureVariant)})})})]})]})})})});});const css=[\".framer-lsrLi.framer-f8rxej, .framer-lsrLi .framer-f8rxej { display: block; }\",\".framer-lsrLi.framer-gwqj6e { align-content: center; align-items: center; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0px; height: 360px; justify-content: flex-start; overflow: var(--overflow-clip-fallback, clip); padding: 0px 64px 0px 64px; position: relative; width: 1000px; will-change: var(--framer-will-change-override, transform); }\",\".framer-lsrLi .framer-vv9wtq { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 4px; justify-content: flex-start; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: 100%; will-change: var(--framer-will-change-override, transform); }\",\".framer-lsrLi .framer-pdgylz { align-content: center; align-items: center; display: flex; flex: 1 0 0px; flex-direction: row; flex-wrap: nowrap; gap: 72px; height: 1px; justify-content: flex-start; overflow: var(--overflow-clip-fallback, clip); padding: 24px 0px 24px 0px; position: relative; width: 100%; }\",\".framer-lsrLi .framer-822an9 { align-content: flex-start; align-items: flex-start; display: flex; flex: 1 0 0px; flex-direction: column; flex-wrap: nowrap; gap: 16px; height: min-content; justify-content: flex-start; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: 1px; }\",\".framer-lsrLi .framer-c7719u { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: flex-start; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: 100%; }\",\".framer-lsrLi .framer-12xrrpw { align-content: center; align-items: center; aspect-ratio: 1 / 1; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: auto; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: 36px; will-change: var(--framer-will-change-override, transform); }\",\".framer-lsrLi .framer-7zxybp { flex: none; height: auto; position: relative; width: 20px; }\",\".framer-lsrLi .framer-d8ifyu { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-lsrLi .framer-5jupuo { --framer-text-wrap: balance; flex: none; height: auto; position: relative; white-space: pre-wrap; width: 100%; word-break: break-word; word-wrap: break-word; }\",\".framer-lsrLi .framer-198rlir-container { flex: none; height: auto; position: relative; width: 420px; }\",\".framer-lsrLi.framer-v-1c3fuch.framer-gwqj6e { height: 480px; padding: 0px 24px 0px 24px; width: 390px; }\",\".framer-lsrLi.framer-v-1c3fuch .framer-pdgylz { align-content: flex-start; align-items: flex-start; flex-direction: column; gap: 24px; justify-content: center; padding: 32px 0px 32px 0px; }\",\".framer-lsrLi.framer-v-1c3fuch .framer-822an9 { flex: none; gap: 12px; width: 100%; }\",\".framer-lsrLi.framer-v-1c3fuch .framer-c7719u { justify-content: center; }\",\".framer-lsrLi.framer-v-1c3fuch .framer-198rlir-container { width: 100%; }\",'.framer-lsrLi[data-border=\"true\"]::after, .framer-lsrLi [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; corner-shape: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 360\n * @framerIntrinsicWidth 1000\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"NcwPEl0Mc\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerRnedQRVGC=withCSS(Component,css,\"framer-lsrLi\");export default FramerRnedQRVGC;FramerRnedQRVGC.displayName=\"Email Gate Blocker\";FramerRnedQRVGC.defaultProps={height:360,width:1e3};addPropertyControls(FramerRnedQRVGC,{variant:{options:[\"sQMKRZ4kB\",\"NcwPEl0Mc\"],optionTitles:[\"Desktop\",\"To-small\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerRnedQRVGC,[{explicitInter:true,fonts:[{cssFamilyName:\"Cera Pro Medium\",source:\"custom\",style:\"normal\",uiFamilyName:\"Cera Pro\",url:\"https://framerusercontent.com/assets/76RHrRvkE5Qw3YG0FFThvgnJM6I.woff2\",weight:\"500\"}]},...LockFonts,...ContactUsFonts],{supportsExplicitInterCodegen:true});FramerRnedQRVGC.loader={load:(props,context)=>{const locale=context.locale;return Promise.allSettled([forwardLoader(ContactUs,{},context)]);}};\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerRnedQRVGC\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicHeight\":\"360\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"NcwPEl0Mc\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerColorSyntax\":\"true\",\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicWidth\":\"1000\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,startTransition,useEffect,useRef,useState}from\"react\";// Renders the canvas email gate for /demo/* and /resource-library/<article> visitors who do not yet have the formSubmitted cookie. The library listing itself stays open.\nfunction hasCookie(name){if(typeof document===\"undefined\")return false;const escapedName=name.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(`(?:^|;\\\\s*)${escapedName}=`).test(document.cookie);}function setAccessCookie(){if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const oneYearSeconds=365*24*60*60;const secure=window.location.protocol===\"https:\"?\"; Secure\":\"\";document.cookie=`formSubmitted=${encodeURIComponent(String(Date.now()))}; Max-Age=${oneYearSeconds}; Path=/; SameSite=Lax${secure}`;}export function withCookieGatedDemoOverlay(Component){return /*#__PURE__*/forwardRef(function WithCookieGatedDemoOverlay(props,ref){const WrappedComponent=Component;const[isReady,setIsReady]=useState(false);const[isOpen,setIsOpen]=useState(false);const closeTimeoutRef=useRef(null);const previousBodyOverflowRef=useRef(\"\");const previousHtmlOverflowRef=useRef(\"\");const scrollLockedRef=useRef(false);useEffect(()=>{if(typeof window!==\"undefined\"&&typeof document!==\"undefined\"){const pathname=window.location.pathname;const isGatedRoute=pathname.startsWith(\"/demo/\")||/^\\/resource-library\\/.+/.test(pathname);const shouldOpen=isGatedRoute&&!hasCookie(\"formSubmitted\");startTransition(()=>{setIsOpen(shouldOpen);setIsReady(true);});}else{startTransition(()=>{setIsOpen(false);setIsReady(true);});}},[]);useEffect(()=>{if(typeof document===\"undefined\")return;if(isOpen&&!scrollLockedRef.current){previousBodyOverflowRef.current=document.body.style.overflow;previousHtmlOverflowRef.current=document.documentElement.style.overflow;document.body.style.overflow=\"hidden\";document.documentElement.style.overflow=\"hidden\";scrollLockedRef.current=true;}if(!isOpen&&scrollLockedRef.current){document.body.style.overflow=previousBodyOverflowRef.current;document.documentElement.style.overflow=previousHtmlOverflowRef.current;scrollLockedRef.current=false;}return()=>{if(scrollLockedRef.current){document.body.style.overflow=previousBodyOverflowRef.current;document.documentElement.style.overflow=previousHtmlOverflowRef.current;scrollLockedRef.current=false;}};},[isOpen]);useEffect(()=>{if(!isOpen||typeof document===\"undefined\"||typeof window===\"undefined\")return;// Framer strips element ids inside component instances, so listen at the\n// document level and match the submitted form to this overlay's aria-label.\nconst onSubmit=event=>{const form=event.target;if(!(form instanceof HTMLFormElement))return;if(!form.closest('[aria-label=\"Email access required\"]'))return;if(!form.checkValidity())return;if(closeTimeoutRef.current!==null){window.clearTimeout(closeTimeoutRef.current);}closeTimeoutRef.current=window.setTimeout(()=>{setAccessCookie();startTransition(()=>{setIsOpen(false);});closeTimeoutRef.current=null;},800);};document.addEventListener(\"submit\",onSubmit,true);return()=>{document.removeEventListener(\"submit\",onSubmit,true);if(closeTimeoutRef.current!==null){window.clearTimeout(closeTimeoutRef.current);closeTimeoutRef.current=null;}};},[isOpen]);if(!isReady||!isOpen)return null;return /*#__PURE__*/_jsx(WrappedComponent,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withCookieGatedDemoOverlay\":{\"type\":\"reactHoc\",\"name\":\"withCookieGatedDemoOverlay\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EmailGateOverlayController.map"],"mappings":"meAC0C,IAAqF,IAA4B,EAAqC,EAAK,0BAAgC,EAAkB,EAAW,SAAS,EAAM,EAAI,CAAC,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAU,MAAI,SAAS,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAU,EAAO,OAAO,CAAI,EAAQ,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,EAAK,MAAM,CAAC,GAAG,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,8vBAAowBA,GAAU,CAAC,QAAM,SAAO,KAAG,QAAM,SAAO,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAQ,EAAM,WAAW,EAAE,UAAU,GAAO,EAAM,WAAW,cAAc,GAS1iD,EAAK,EATskDC,EAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,GAAG,GAAWD,EAAS,C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