{"version":3,"file":"shared-lib.7Hyi9xGe.mjs","names":[],"sources":["https:/framerusercontent.com/modules/M033mYCdfri6VNjlB8gB/U8FoWtS2quMQYHb0o2z5/Environment.js","https:/framerusercontent.com/modules/kWU9qvkWmco6lL0nQhpy/3EnPxd8w6aHDpJMpfdFP/GeoGate.js"],"sourcesContent":["const STAGING_DOMAIN=\"flowing-behavior-\";const DEV_DOMAIN=\"framer\";const PRODUCTION_DOMAIN=\"edge2dot0.framer.website\";export default function isStaging(){const domain=window.location.origin;return typeof window!==\"undefined\"&&domain.includes(STAGING_DOMAIN)||domain.includes(DEV_DOMAIN)&&!domain.includes(PRODUCTION_DOMAIN);}export function isDev(){const domain=window.location.origin;return typeof window!==\"undefined\"&&domain.includes(DEV_DOMAIN)&&!domain.includes(STAGING_DOMAIN);}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isDev\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Environment.map","// GeoGate.tsx\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{isDev}from\"https://framerusercontent.com/modules/M033mYCdfri6VNjlB8gB/U8FoWtS2quMQYHb0o2z5/Environment.js\";export default function GeoGate(props){useEffect(()=>{if(typeof window===\"undefined\")return null;async function handleRedirects(){try{// 1️⃣ Geo check first\nconst res=await fetch(\"https://ipapi.co/json/\");const data=await res.json();if(data.country_code!==\"US\"&&!isDev){console.log(\"User not in US, redirecting...\");window.location.href=\"/error-localization\";return null;}}catch(err){console.warn(\"RedirectGate error:\",err);}}handleRedirects();},[]);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"}});}addPropertyControls(GeoGate,{Published:{type:ControlType.Boolean,title:\"Published\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GeoGate\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GeoGate.map"],"mappings":"mLAAqU,SAAgB,GAAO,CAAC,IAAM,EAAO,EAAO,SAAS,OAAO,OAAc,IAAS,QAAa,EAAO,SAAS,EAAW,EAAE,CAAC,EAAO,SAAS,EAAe,uBAA5d,EAAe,oBAA0B,EAAW,YCCoL,SAAwB,EAAQ,EAAM,CACiB,OADhB,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,KAAK,eAAe,GAAiB,CAAC,GAAG,CACvS,IAAjB,MAAjD,MAAM,MAAM,yBAAyB,EAAsB,MAAM,EAAS,eAAe,MAAM,CAAC,EAAgG,OAAzF,QAAQ,IAAI,iCAAiC,CAAC,EAAO,SAAS,KAAK,sBAA6B,WAAa,EAAI,CAAC,QAAQ,KAAK,sBAAsB,EAAI,EAAG,GAAiB,EAAG,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,CAAC,CAAC,sBADlT,IAA6B,IAAoD,IAAkH,CACiH,EAAoB,EAAQ,CAAC,UAAU,CAAC,KAAK,EAAY,QAAQ,MAAM,YAAY,CAAC,CAAC"}