{"version":3,"file":"shared-lib.ByuaMDaG.mjs","names":["useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/REGGkQqEAHdHn4SSfwDw/nAoEuaR0Vfmu3jZ1w6UQ/x2FfYLDrE.js","https:/framerusercontent.com/modules/Bb6IClTbCvcOXf5w2WMD/gxECwZ1mFos9rLBpbUOx/EnvironmentLinks.js","https:/framerusercontent.com/modules/dkygW490LnRPrsn5IuVB/FLKaknqmukNWFlCIjLSd/siteMetadata.js"],"sourcesContent":["// Generated by Framer (5235a87)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-VEEHS .framer-styles-preset-1kso4xt:not(.rich-text-wrapper), .framer-VEEHS .framer-styles-preset-1kso4xt.rich-text-wrapper a { --framer-link-hover-text-color: rgba(0, 0, 0, 0.64); --framer-link-text-color: #000000; transition-delay: 0s; transition-duration: 0.4s; transition-property: color; transition-timing-function: cubic-bezier(0.44, 0, 0.56, 1); }\"];export const className=\"framer-VEEHS\";\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\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";const getLoginUrl=()=>{const window_loc=window.location.href;// let baseUrl = \"\"\nconsole.log(\"\\n ====== window_loc ====== \\n\",window_loc);// console.log(\n//     \"\\n ====== conditional check ===== \\n\",\n//     window_loc.includes(\"staging\") ||\n//         window_loc.includes(\"resilient-notes-845746\")\n// )\n// console.log(\n//     \"\\n ====== conditional check 1 ===== \\n\",\n//     window_loc.includes(\"staging\") ||\n//         window_loc.includes(\"framer.app\") ||\n//         window_loc.includes(\"eventual-frontend-v3\") ||\n//         window_loc.includes(\"localhost\")\n// )\n// console.log(\"window location: \", window.location)\n// if (\n//     window_loc.includes(\"staging\") ||\n//     window_loc.includes(\"framer.app\") ||\n//     window_loc.includes(\"eventual-frontend-v3\") ||\n//     window_loc.includes(\"localhost\")\n// ) {\n//     baseUrl = \"https://staging.eventualclimate.com\"\n// } else {\n//     baseUrl = \"https://eventualclimate.com\"\n// }\nlet loginUrl=window.location.origin+\"/auth/login\";if(window_loc.includes(\"canopy\")){loginUrl+=`?ext-hide-signup=true&returnTo=${window.location.origin}/canopy/connect`;}else{loginUrl+=\"?ext-hide-signup=true\";}console.log(\"loginUrl getLoginUrl\",loginUrl);return loginUrl;};export function AuthLink(){const[loginUrl,setLoginUrl]=useState(\"\");const[isTouchDevice,setIsTouchDevice]=useState(false);useEffect(()=>{if(typeof window!==\"undefined\"){setLoginUrl(getLoginUrl());setIsTouchDevice(\"ontouchstart\"in window||navigator.maxTouchPoints>0||window.matchMedia(\"(pointer: coarse)\").matches);}},[]);if(isTouchDevice){return{onTap(){const url=loginUrl||getLoginUrl();window.location.href=url;},style:{cursor:\"pointer\"}};}return{href:loginUrl,target:\"_self\"};}// export function GetAppointedLink(): Override {\n//     const [baseUrl, setBaseUrl] = useState(\"\")\n//     useEffect(() => {\n//         if (typeof window !== \"undefined\") {\n//             setBaseUrl(getBaseUrl())\n//         }\n//     }, [])\n//     return {\n//         href: `${baseUrl}/canopy-get-appointed`,\n//     }\n// }\nimport{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withAuthLink(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...AuthLink(props)});};}withAuthLink.displayName=\"AuthLink\";\nexport const __FramerMetadata__ = {\"exports\":{\"OptimizationStatus\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Publish\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AuthLink\":{\"type\":\"override\",\"name\":\"AuthLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAuthLink\":{\"type\":\"reactHoc\",\"name\":\"withAuthLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EnvironmentLinks.map","// Generated by Framer (b47b624)\nexport default function metadata(params,activeLocale){return{description:\"Predictable home insurance renewals are just one click away.\",favicon:\"https://framerusercontent.com/assets/Bwyhb02EevQC4h2Uyj2o1gciio.png\",robots:\"max-image-preview:large\",title:\"Eventual\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oOAC8B,GAAU,UAAU,EAAE,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,EAAE,CAAC,CAAC,CAAc,EAAI,CAAC,4WAA4W,CAAc,EAAU,kBCuB/O,SAAgB,GAAU,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,GAAG,CAAM,CAAC,EAAc,GAAkBA,EAAS,GAAM,CAAiU,OAAhU,MAAc,CAAW,IAAS,SAAa,EAAY,GAAa,CAAC,CAAC,EAAiB,iBAAiB,GAAQ,EAAU,eAAe,GAAG,EAAO,WAAW,oBAAoB,CAAC,QAAQ,GAAI,EAAE,CAAC,CAAI,EAAqB,CAAC,OAAO,CAAC,IAAM,EAAI,GAAU,GAAa,CAAC,EAAO,SAAS,KAAK,GAAM,MAAM,CAAC,OAAO,UAAU,CAAC,CAAQ,CAAC,KAAK,EAAS,OAAO,QAAQ,CAW3lB,SAAgB,EAAa,EAAE,CAAC,MAAO,KAAQ,EAA+BC,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAS,EAAM,CAAC,CAAC,yBAnC3Q,IAAsC,IAmCkE,CAnC5D,MAAgB,CAAC,IAAM,EAAW,EAAO,SAAS,KACzI,QAAQ,IAAI;;EAAiC,EAAW,CAuBxD,IAAI,EAAS,EAAO,SAAS,OAAO,cAA0N,OAAzM,EAAW,SAAS,SAAS,CAAE,GAAU,kCAAkC,EAAO,SAAS,OAAO,iBAAuB,GAAU,wBAAyB,QAAQ,IAAI,uBAAuB,EAAS,CAAQ,GAWqD,EAAa,YAAY,cClCnV,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,YAAY,+DAA+D,QAAQ,sEAAsE,OAAO,0BAA0B,MAAM,WAAW"}