{"version":3,"file":"ExitIntentOverlay.BPSXeeV8.mjs","names":["_Fragment","useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/6fpPNXfSTwquqdh2n51E/Kp41RC7ewR8cAkpDHt1g/ExitIntentSignup.js","https:/framerusercontent.com/modules/xiy3euPdxOhU1IdMtHj0/SqUEEipiT41HIKHNZ2yE/ExitIntentOverlay.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import GainHubSpotForm from\"https://framerusercontent.com/modules/pDh7xPP9Mm00ifIa1eyE/qe8InA2prS1gwCINPMnF/GainHubSpotForm.js\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function ExitIntentSignup(props){const formId=props?.formId||\"69dbd97c-4f99-43ca-a8c1-906edbccdf40\";return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n.exit-intent-signup > div {\n    position: relative;\n    width: 100%;\n}\n\n.exit-intent-signup input.hs-input {\n    font-family: 'Inter', sans-serif;\n    line-height: 1.75em;\n    border: 1px solid #E2E8F0;\n    font-size: 15px;\n    border-radius: 6px;\n    height: 44px;\n    width: 100%;\n    padding: 0px 14px;\n    color: #1A1A1A;\n    box-sizing: border-box;\n}\n\n.exit-intent-signup input.hs-input:placeholder {\n    color: #A2A8B9;\n}\n\n.exit-intent-signup ul.inputs-list.hs-error-msgs {\n    font-family: 'Inter', sans-serif;\n    line-height: 1.4em;\n    font-size: 12px;\n    list-style: none;\n    margin: 6px 0 0 0;\n    padding: 0;\n    color: rgb(211, 47, 47);\n}\n\n.exit-intent-signup input[type=\"submit\"] {\n    width: 100%;\n    margin-top: 12px;\n    font-size: 15px;\n    white-space: nowrap;\n    overflow: hidden;\n    height: 44px;\n    background-color: #632bfc;\n    color: white;\n    border: none;\n    border-radius: 6px;\n    font-weight: 600;\n    cursor: pointer;\n    transition: background-color 0.2s ease;\n}\n\n.exit-intent-signup input[type=\"submit\"]:hover {\n    background-color: #4e21ca;\n}\n            `}),/*#__PURE__*/_jsx(GainHubSpotForm,{formId:formId,id:formId,className:\"exit-intent-signup\",...props})]});}ExitIntentSignup.displayName=\"Newsletter sign up form\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ExitIntentSignup\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ExitIntentSignup.map","// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import ExitIntentSignup from\"https://framerusercontent.com/modules/6fpPNXfSTwquqdh2n51E/Kp41RC7ewR8cAkpDHt1g/ExitIntentSignup.js\";import{useSweetLetterSpot,useQigGatedModal}from\"https://framerusercontent.com/modules/c61m7y27y4l9UUTWlfvc/QKYPyvcuaupcVuvmi6Fv/globalStore.js\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ExitIntentOverlay(props){const{headline,variantAText,variantBText,image,gatedPageUrl}=props;const[showModal,setShowModal]=useSweetLetterSpot();const[isGatedModal,_]=useQigGatedModal();const[variant,setVariant]=useState(null);const sessionKey=\"homepage-exit-intent\";const abTestKey=\"homepage-exit-intent-variant\";// Helper functions for Cookies\nfunction setCookie(name,value,hours){const date=new Date;date.setTime(date.getTime()+hours*60*60*1e3);const expires=\"expires=\"+date.toUTCString();document.cookie=encodeURIComponent(name)+\"=\"+value+\";\"+expires+\";path=/\";}function getCookie(name){const nameEQ=name+\"=\";const cookies=document.cookie.split(\";\");for(let i=0;i<cookies.length;i++){let c=cookies[i].trim();if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length);}}return null;}// Assign or fetch A/B Test Variant on mount\nuseEffect(()=>{let assignedVariant=getCookie(abTestKey);if(!assignedVariant){assignedVariant=Math.random()<.5?\"A\":\"B\";setCookie(abTestKey,assignedVariant,24*7);}setVariant(assignedVariant);},[]);// Trigger Unique GA4 Render Events when the modal actually displays\nuseEffect(()=>{if(showModal&&variant){if(Array.isArray(window.dataLayer)){// Unique GA4 event per variant payload\nwindow.dataLayer.push({event:`exit_intent_variant_${variant.toLowerCase()}_render`,event_category:\"Exit Intent A/B Test\",event_label:`Variant ${variant}`,non_interaction:true});}}},[showModal,variant]);const handleMouseOut=e=>{if(e.clientY<=0&&!showModal&&!isGatedModal){setShowModal(true);}};useEffect(()=>{if(getCookie(sessionKey)||localStorage.getItem(sessionKey)===\"true\")return;document.addEventListener(\"mouseout\",handleMouseOut);return()=>document.removeEventListener(\"mouseout\",handleMouseOut);},[showModal,variant]);const overlay={display:!showModal?\"none\":\"flex\",position:\"fixed\",inset:0,backgroundColor:\"rgba(15, 11, 42, 0.55)\",justifyContent:\"center\",alignItems:\"center\",padding:\"16px\",zIndex:9999,backdropFilter:\"blur(4px)\"};const onModalClose=()=>{setCookie(sessionKey,true,2);document.removeEventListener(\"mouseout\",handleMouseOut);setShowModal(false);};const handleFormSubmit=data=>{onModalClose();localStorage.setItem(sessionKey,\"true\");if(Array.isArray(window.dataLayer)){window.dataLayer.push({event:\"exit_intent_variant_a_submit\",event_category:\"Exit Intent A/B Test\",event_label:\"HubSpot Form Submission\"});}};const handleVariantBClick=()=>{onModalClose();localStorage.setItem(sessionKey,\"true\");if(Array.isArray(window.dataLayer)){window.dataLayer.push({event:\"exit_intent_variant_b_submit\",event_category:\"Exit Intent A/B Test\",event_label:\"See Now Button Click\"});}if(gatedPageUrl){window.location.href=gatedPageUrl;}};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n.subscribe-newsletter-container > div {\n    position: relative;\n}\n\n.subscribe-newsletter-container input.hs-input {\n    font-family: 'Inter', sans-serif;\n    line-height: 1.75em;\n    border: 1px solid #E2E8F0 !important;\n    font-size: 15px;\n    border-radius: 6px;\n    height: 44px !important;\n    width: 100%;\n    padding: 0px 14px;\n    color: #1A1A1A;\n    box-sizing: border-box;\n    transition: border-color 0.2s ease;\n}\n\n.subscribe-newsletter-container input.hs-input:focus {\n    border: 1px solid #632bfc !important;\n    outline: none;\n}\n\n.subscribe-newsletter-container input.hs-input::placeholder {\n    color: #A2A8B9;\n}\n\n.subscribe-newsletter-container ul.inputs-list.hs-error-msgs {\n    font-family: 'Inter', sans-serif;\n    line-height: 1.4em;\n    font-size: 12px;\n    list-style: none;\n    margin: 6px 0 0 0;\n    padding: 0;\n    color: rgb(211, 47, 47);\n}\n\n.subscribe-newsletter-container input[type=\"submit\"] {\n    width: 100%;\n    margin-top: 12px;\n    font-size: 15px;\n    white-space: nowrap;\n    height: 44px !important;\n    background-color: #632bfc;\n    color: white;\n    border: none;\n    border-radius: 6px;\n    font-weight: 600;\n    cursor: pointer;\n    transition: background-color 0.2s ease;\n}\n\n.subscribe-newsletter-container input[type=\"submit\"]:hover {\n    background-color: #4e21ca;\n}\n            `}),/*#__PURE__*/_jsx(\"div\",{style:overlay,children:/*#__PURE__*/_jsxs(\"div\",{style:styles.modal,children:[/*#__PURE__*/_jsx(\"button\",{style:styles.closeBtn,onClick:onModalClose,children:\"✕\"}),/*#__PURE__*/_jsx(\"img\",{src:image,alt:\"Global 400 Report Cover\",style:styles.image}),/*#__PURE__*/_jsxs(\"div\",{style:styles.content,children:[/*#__PURE__*/_jsx(\"h2\",{style:styles.headline,children:headline}),/*#__PURE__*/_jsx(\"p\",{style:styles.text,children:variant===\"A\"?variantAText:variantBText}),variant===\"A\"?/*#__PURE__*/_jsx(ExitIntentSignup,{formId:props?.formId,handleSubmit:handleFormSubmit}):/*#__PURE__*/_jsx(\"button\",{onClick:handleVariantBClick,style:styles.seeNowBtn,children:\"See Now\"})]})]})})]});}const styles={modal:{position:\"relative\",background:\"#fff\",borderRadius:\"6px\",boxShadow:\"0 24px 48px -12px rgba(99, 43, 252, 0.15), 0 8px 16px rgba(0,0,0,0.05)\",width:\"100%\",maxWidth:\"640px\",display:\"flex\",overflow:\"hidden\",maxHeight:\"480px\"},closeBtn:{position:\"absolute\",top:\"16px\",right:\"16px\",background:\"transparent\",border:\"none\",fontSize:\"18px\",cursor:\"pointer\",color:\"#94A3B8\",zIndex:10,transition:\"color 0.2s ease\"},image:{width:\"43%\",height:\"100%\",objectFit:\"cover\"},content:{width:\"57%\",padding:\"40px 32px\",fontFamily:\"'Inter', sans-serif\",display:\"flex\",flexDirection:\"column\",boxSizing:\"border-box\",justifyContent:\"center\"},headline:{fontSize:\"24px\",fontWeight:\"700\",color:\"#0F0B2A\",margin:\"0 0 12px 0\",lineHeight:\"1.25\",letterSpacing:\"-0.02em\"},text:{fontSize:\"14px\",color:\"#4A4A68\",lineHeight:\"1.5\",margin:\"0 0 24px 0\"},seeNowBtn:{width:\"100%\",fontFamily:\"'Inter', sans-serif\",fontSize:\"15px\",height:\"44px\",backgroundColor:\"#632bfc\",color:\"white\",border:\"none\",borderRadius:\"6px\",fontWeight:\"600\",cursor:\"pointer\",transition:\"background-color 0.2s ease\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",marginTop:\"12px\"}};addPropertyControls(ExitIntentOverlay,{headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"The Global 400\"},variantAText:{type:ControlType.String,title:\"Text (Variant A Only)\",defaultValue:\"Get the list of 400 largest PE investors in your inbox.\"},variantBText:{type:ControlType.String,title:\"Text (Variant B Only)\",defaultValue:\"Ranking the largest private equity investors in the world\"},image:{type:ControlType.Image,title:\"Image\"},formId:{type:ControlType.String,title:\"Form ID (Variant A)\",defaultValue:\"2f63e5b4-788f-419c-b818-56c51f3c1c4a\"},gatedPageUrl:{type:ControlType.String,title:\"Gated URL (Variant B)\",defaultValue:\"https://gain.ai/reports/global-400-gated\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ExitIntentOverlay\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ExitIntentOverlay.map"],"mappings":"qUAGG,SAAwB,EAAiB,EAAM,CAAC,IAAM,EAAO,GAAO,QAAQ,uCAAuC,OAAoB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAoD5L,CAAC,EAAe,EAAK,EAAgB,CAAQ,SAAO,GAAG,EAAO,UAAU,qBAAqB,GAAG,CAAK,CAAC,CAAC,CAAC,CAAC,CAAE,iBAvD1C,IAAgI,EAuDrF,EAAiB,YAAY,6BCnDnJ,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,WAAS,eAAa,eAAa,QAAM,gBAAc,EAAW,CAAC,EAAU,GAAc,EAAmB,EAAO,CAAC,EAAa,GAAG,EAAiB,EAAO,CAAC,EAAQ,GAAYC,EAAS,IAAI,EAAQ,EAAW,uBAA6B,EAAU,+BACpT,SAAS,EAAU,EAAK,EAAM,EAAM,CAAC,IAAM,EAAK,IAAI,KAAK,EAAK,QAAQ,EAAK,QAAQ,EAAE,EAAM,GAAG,GAAG,GAAG,EAAE,IAAM,EAAQ,WAAW,EAAK,YAAY,EAAE,SAAS,OAAO,mBAAmB,CAAI,EAAE,IAAI,EAAM,IAAI,EAAQ,SAAU,CAAC,SAAS,EAAU,EAAK,CAAC,IAAM,EAAO,EAAK,IAAU,EAAQ,SAAS,OAAO,MAAM,GAAG,EAAE,IAAI,IAAI,EAAE,EAAE,EAAE,EAAQ,OAAO,IAAI,CAAC,IAAI,EAAE,EAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAM,IAAI,EAAG,OAAO,EAAE,UAAU,EA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