{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/nZDUBQbtN1i6UzklnnMg/UbIgHTmNzH9NeJvKZTOh/page.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import React from\"react\";import{EMAIL_SESSION_STORAGE_KEY,IS_PRODUCTION,IS_STAGING,ORIGIN}from\"https://framerusercontent.com/modules/qGoVzbWYhJxr4Ja3txj9/KE4IceoNIk2eugQ0HmGI/constants.js\";import{addClickListeners}from\"https://framerusercontent.com/modules/asqZRCrsghm4CpM1sukm/KaVAJqfLvbLnA8zU1aMh/link_click_events.js\";import{isReferralLink}from\"https://framerusercontent.com/modules/T47pd6wbrNPfgLwVvvsX/i6ITmzFC2666tJIdayk2/is_referral_link.js\";const getReleaseStage=()=>{if(IS_PRODUCTION)return\"production\";if(IS_STAGING)return\"staging\";return\"development\";};const replaceProductionLinks=()=>{const selector=`a[href^=\"https://superhuman.com\"]`;document.querySelectorAll(selector).forEach(link=>{link.href=link.href.replace(\"https://superhuman.com\",\"https://staging-superhuman.com\");});};const preserveQueryParams=()=>{const hasQueryParams=window.location.search.length>1;if(hasQueryParams){const queryParams=new URLSearchParams(window.location.search);const selector=IS_PRODUCTION?`a[href^=\"https://superhuman.com\"]`:`a[href^=\"https://staging-superhuman.com\"]`;document.querySelectorAll(selector).forEach(link=>{const url=new URL(link.href);const existingParams=new URLSearchParams(url.search);// Merge existing and new parameters, avoiding duplicates\nqueryParams.forEach((value,key)=>{if(!existingParams.has(key)){existingParams.append(key,value);}});// Update the link's href with the merged parameters\nurl.search=existingParams.toString();link.href=url.toString();});}};const hasReferralCode=()=>{const[_,refer,code]=window.location.pathname.split(\"/\");const urlParams=new URLSearchParams(window.location.search);return Boolean(urlParams.get(\"utm_campaign\")||urlParams.get(\"source\")||code);};function getEmailFromSession(){if(typeof window===\"undefined\")return\"\";const email=window.sessionStorage.getItem(EMAIL_SESSION_STORAGE_KEY)||\"\";return email;}function withOnPageLoad(Component){return props=>{React.useEffect(()=>{const searchParams=new URLSearchParams(window.location.search);// Store Google Ads ID in case a visitor clicks around and loses the query param.\nconst gclid=searchParams.get(\"gclid\");if(gclid){localStorage?.setItem(\"googleAdsIdentifier\",gclid);}// redirect in we're on the refer page without a referral code\nif(isReferralLink()&&!hasReferralCode()){window.location.href=ORIGIN;}// We import @bugsnag/js through a useEffect callback because the\n// library has a top-level reference to the navigator API, which\n// stops Framer from pre-rendering pages that use this override.\nPromise.all([import(\"@bugsnag/js\"),import(\"https://framerusercontent.com/modules/Bh7OD6mPVlBw5dTkdVTZ/e49FNsq0CgereyKQ4qij/events.js\")]).then(([bugsnagModule,eventsModule])=>{const Events=eventsModule.default;const email=searchParams.get(\"email\")||getEmailFromSession();if(email){Events.setEmail(email);}//initializeFullstory()\nconst{pathname}=window.location;const isHomepage=pathname===\"/\";const pageName=isHomepage?\"homepage\":pathname.replace(\"/\",\"\");Events.visitPage(pageName);if(isHomepage&&searchParams.get(\"previous_page\")){Events.action(\"redirect_unknown_url\",{previous_page:searchParams.get(\"previous_page\")});}const links=document.querySelectorAll(\"a\");addClickListeners(Events,links);if(IS_STAGING){replaceProductionLinks();}preserveQueryParams();const Bugsnag=bugsnagModule.default;Bugsnag.start({apiKey:\"36f15d5bb6217235d3d87259f96b92c0\",enabledReleaseStages:[\"staging\",\"production\"],releaseStage:getReleaseStage(),onError:event=>{const report=event?.errors?.[0]||{};Events.fire(\"log.bugsnag\",{type:report.errorClass,message:report.errorMessage,severity:event.severity,metadata:JSON.stringify(report.metaData?.Other||{}),stacktrace:report.stacktrace});}});window.Bugsnag=Bugsnag;window.dispatchEvent(new Event(\"BugsnagLoaded\"));});},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withVisitPage(Component){return withOnPageLoad(Component);}\nexport const __FramerMetadata__ = {\"exports\":{\"withVisitPage\":{\"type\":\"reactHoc\",\"name\":\"withVisitPage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//#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CAAE",
  "names": ["getReleaseStage", "IS_PRODUCTION", "IS_STAGING", "replaceProductionLinks", "link", "preserveQueryParams", "window", "queryParams", "selector", "url", "existingParams", "value", "key", "hasReferralCode", "_", "refer", "code", "urlParams", "getEmailFromSession", "EMAIL_SESSION_STORAGE_KEY", "withOnPageLoad", "Component", "props", "e", "searchParams", "gclid", "isReferralLink", "ORIGIN", "bugsnagModule", "eventsModule", "Events", "email", "pathname", "isHomepage", "pageName", "links", "addClickListeners", "Bugsnag", "event", "report", "p", "withVisitPage"]
}
