{"version":3,"file":"ThankYouPageModule.DMLpMyVZ.mjs","names":["useState","StyleSheetManager"],"sources":["https:/framerusercontent.com/modules/6tQFtZvAKlh0gG4r6Ovi/f7NfNuSV6iBbd1GSkQZB/ThankYou_css.js","https:/framerusercontent.com/modules/OIg42X9iESGVsLt2scBe/CiSo1Aggn9SdweaFf6lw/ThankYouPageModule.js"],"sourcesContent":["import styled from\"styled-components\";export const ThankYouPageModuleContainer=styled.div`\n    position: relative;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-direction: column;\n    gap: 24px;\n    text-align:center;\n    color:${({color})=>color||\"#ffffff\"};\n`;export const ThankYouPageTitle=styled.h1`\n    font-size:3rem;\n    font-family:\"Gibson Book\", sans-serif;\n    text-align:center;\n\n    @media screen and (max-width:1199px){\n        font-size:2.5rem;        \n    }\n    @media screen and (max-width:809px){\n        font-size:2rem;        \n    }\n\n    color:${({color})=>color||\"#ffffff\"};\n`;export const ThankYouPageMessage=styled.p`\n    font-size:1.125rem;\n    font-family:\"Gibson Light\", sans-serif;\n    text-align:center;\n    color:${({color})=>color||\"#ffffff\"};\n`;export const ThankYouPageCTA=styled.a`\n    font-family: \"Gibson Book\", sans-serif;\n    font-weight: 500;\n    line-height: 26px;\n    text-align: center;\n    padding: 8px 24px;\n    border-radius: 40px;\n    display: inline-block;\n    font-size:16px;\n    text-decoration:none;\n    color:${({color})=>color||\"#ffffff\"};\n    border:1px solid ${({color})=>color||\"#ffffff\"};\n`;\nexport const __FramerMetadata__ = {\"exports\":{\"ThankYouPageMessage\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ThankYouPageTitle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ThankYouPageCTA\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ThankYouPageModuleContainer\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ThankYou_css.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{StyleSheetManager}from\"styled-components\";import Loading from\"https://framerusercontent.com/modules/ishg1gmafc4LJ6NbDs8q/OfCOEYMiGsQilv2Gv6E4/Loading.js\";import{ThankYouPageModuleContainer,ThankYouPageTitle,ThankYouPageMessage,ThankYouPageCTA}from\"https://framerusercontent.com/modules/6tQFtZvAKlh0gG4r6Ovi/f7NfNuSV6iBbd1GSkQZB/ThankYou_css.js\";export default function ThankYouPageModule(props){const assetUrl=localStorage?.getItem(\"explorecoveo_pdf_url\")||\"\";const langCode=\"en\";const thankYouTexts={en:{thank:\"Thank you\",desc:\"Please check your email for a message from the Coveo team.\",ctaText:assetUrl!==\"\"&&assetUrl.indexOf(\".pdf\")!==-1?\"Access your asset\":\"Download\"},fr:{thank:\"Merci\",desc:\"Veuillez v\\xe9rifier votre courrier \\xe9lectronique pour un message de l'\\xe9quipe Coveo.\",ctaText:assetUrl!==\"\"&&assetUrl.indexOf(\".pdf\")!==-1?\"Acc\\xe9der \\xe0 la ressource\":\"T\\xe9l\\xe9charger\"},de:{thank:\"Danke\",desc:\"Bitte \\xfcberpr\\xfcfen Sie Ihre E-Mails auf eine Nachricht vom Coveo-Team.\",ctaText:assetUrl!==\"\"&&assetUrl.indexOf(\".pdf\")!==-1?\"Ressource aufrufen\":\"Herunterladen\"}};const firstName=localStorage?.getItem(\"explorecoveo_first_name\")!==\"\"&&localStorage?.getItem(\"explorecoveo_first_name\")!==null?localStorage?.getItem(\"explorecoveo_first_name\"):\"\";const assetCTA=assetUrl!==\"\"&&thankYouTexts[langCode].ctaText!==\"\"?true:false;const[styleTarget,setStyleTarget]=useState(null);useEffect(()=>{setStyleTarget(document.head);},[]);// don’t render until target is ready → prevents Framer warning\nif(!styleTarget)return /*#__PURE__*/_jsx(Loading,{color:props?.textColor||\"#ffffff\"});return /*#__PURE__*/_jsx(StyleSheetManager,{target:styleTarget,children:/*#__PURE__*/_jsxs(ThankYouPageModuleContainer,{color:props?.textColor||\"#ffffff\",children:[/*#__PURE__*/_jsxs(ThankYouPageTitle,{color:props?.textColor||\"#ffffff\",children:[thankYouTexts[langCode].thank||\"Thank you\",firstName?\", \"+firstName:\"\"]}),/*#__PURE__*/_jsx(ThankYouPageMessage,{color:props?.textColor||\"#ffffff\",children:thankYouTexts[langCode].desc||\"Please check your email for a message from the Coveo team.\"}),assetCTA&&/*#__PURE__*/_jsx(ThankYouPageCTA,{color:props?.textColor||\"#ffffff\",href:assetUrl,children:thankYouTexts[langCode].ctaText||\"Download\"})]})});}addPropertyControls(ThankYouPageModule,{textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#fff\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ThankYouPageModule\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ThankYouPageModule.map"],"mappings":"mRAAsC,CAAa,EAA4B,EAAO,GAAG;;;;;;;;aAQ5E,CAAC,WAAS,GAAO,UAAU;EACzB,EAAkB,EAAO,EAAE;;;;;;;;;;;;aAY7B,CAAC,WAAS,GAAO,UAAU;EACzB,EAAoB,EAAO,CAAC;;;;aAI9B,CAAC,WAAS,GAAO,UAAU;EACzB,EAAgB,EAAO,CAAC;;;;;;;;;;aAU1B,CAAC,WAAS,GAAO,UAAU;wBAChB,CAAC,WAAS,GAAO,UAAU;KCtCgc,SAAwB,EAAmB,EAAM,CAAC,IAAM,EAAS,cAAc,QAAQ,uBAAuB,EAAE,GAA6B,EAAc,CAAC,GAAG,CAAC,MAAM,YAAY,KAAK,6DAA6D,QAAQ,IAAW,IAAI,EAAS,QAAQ,OAAO,GAAG,GAAG,oBAAoB,WAAW,CAAC,GAAG,CAAC,MAAM,QAAQ,KAAK,mFAA4F,QAAQ,IAAW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