{"version":3,"file":"shared-lib.CExizO2f.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/GhZNfkfM5QFcdDRMBUa4/VgNSairW8hwVZzCx2aBM/NavCode.js","https:/framerusercontent.com/modules/uk96N0CLjOYKCim4VQEt/cVbthNsbNbuwCeSUKFrk/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const STEALTH_NAV_SCRIPT=\"https://app.stealth.health/stealth-nav.js\";const stringify=value=>Array.isArray(value)?JSON.stringify(value):value;const boolString=value=>value===true||value===\"true\"?\"true\":\"false\";export function StealthNav(props){const{navLinks,logoSrc,logoLink,logoAlt,menuLabel,mobileCtaLabel,mobileCtaUrl,mobileCtaTarget,loginLabel,loginUrl,accountLabel,accountUrl,authMode,sessionEndpoint,sticky,variant,theme,transparent,style,countryCode,...rest}=props;const ref=useRef(null);useEffect(()=>{if(window.customElements?.get(\"stealth-nav\"))return;const script=document.createElement(\"script\");script.src=STEALTH_NAV_SCRIPT;script.defer=true;document.head.appendChild(script);return()=>{document.head.removeChild(script);};},[]);useEffect(()=>{let cancelled=false;const ensureNavReady=async()=>{// load script if needed\nif(!window.customElements?.get(\"stealth-nav\")){await new Promise((resolve,reject)=>{const existing=document.querySelector(`script[src=\"${STEALTH_NAV_SCRIPT}\"]`);if(existing){existing.addEventListener(\"load\",()=>resolve(),{once:true});existing.addEventListener(\"error\",()=>reject(),{once:true});return;}const script=document.createElement(\"script\");script.src=STEALTH_NAV_SCRIPT;script.defer=true;script.onload=()=>resolve();script.onerror=()=>reject();document.head.appendChild(script);});}// wait for custom element definition\nif(window.customElements?.whenDefined){await window.customElements.whenDefined(\"stealth-nav\");}};const applyCountry=code=>{if(!ref.current)return;ref.current.setAttribute(\"country-code\",code);ref.current.update?.({countryCode:code});};const resolveCountry=async()=>{if(countryCode)return countryCode;const resp=await fetch(\"https://app.stealth.health/api/geo\",{cache:\"no-store\"});const data=await resp.json().catch(()=>null);return data?.countryCode||null;};(async()=>{try{await ensureNavReady();const code=await resolveCountry();if(!cancelled&&code)applyCountry(code);}catch{// ignore\n}})();return()=>{cancelled=true;};},[countryCode]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",...style},children:/*#__PURE__*/_jsx(\"stealth-nav\",{\"data-lenis-prevent\":\"true\",\"data-lenis-prevent-wheel\":\"true\",\"data-lenis-prevent-touch\":\"true\",ref:ref,\"nav-links\":stringify(navLinks),\"country-code\":countryCode,\"logo-src\":logoSrc,\"logo-link\":logoLink,\"logo-alt\":logoAlt,\"menu-label\":menuLabel,\"mobile-cta-label\":mobileCtaLabel,\"mobile-cta-url\":mobileCtaUrl,\"mobile-cta-target\":mobileCtaTarget,\"login-label\":loginLabel,\"login-url\":loginUrl,\"account-label\":accountLabel,\"account-url\":accountUrl,\"auth-mode\":\"session\",\"session-endpoint\":sessionEndpoint,sticky:boolString(sticky),transparent:boolString(transparent),variant:variant,theme:theme,...rest})});}StealthNav.defaultProps={height:96,width:1200,navLinks:[{label:\"about\",href:\"https://stealth.health/about\"},{label:\"learn\",href:\"https://stealth.health/learn\"},{label:\"expert care\",href:\"https://stealth.health/expert-care\"},{label:\"treatments\",href:\"https://stealth.health/prescriptions\"},{label:\"free consultation\",href:\"https://stealth.health/free-consultation\"}],logoSrc:\"https://framerusercontent.com/images/di3LRA0DrqNQemOKEFvP6CBGiE.svg\",logoLink:\"https://stealth.health/\",logoAlt:\"Stealth Health\",menuLabel:\"Toggle navigation\",mobileCtaLabel:\"free consultation\",mobileCtaUrl:\"https://stealth.health/free-consultation\",mobileCtaTarget:\"_self\",loginLabel:\"log in\",loginUrl:\"https://app.stealth.health/login\",accountLabel:\"my account\",accountUrl:\"https://app.stealth.health/account\",authMode:\"session\",sessionEndpoint:\"https://app.stealth.health/api/auth/status\",sticky:\"true\",transparent:\"false\",variant:\"white\",theme:\"light\"};addPropertyControls(StealthNav,{navLinks:{type:ControlType.Array,title:\"Nav Links\",control:{type:ControlType.Object}},logoSrc:{type:ControlType.String,title:\"Logo Src\"},logoLink:{type:ControlType.String,title:\"Logo Link\"},logoAlt:{type:ControlType.String,title:\"Logo Alt\"},menuLabel:{type:ControlType.String,title:\"Menu Label\"},mobileCtaLabel:{type:ControlType.String,title:\"Mobile CTA Label\"},mobileCtaUrl:{type:ControlType.String,title:\"Mobile CTA URL\"},mobileCtaTarget:{type:ControlType.Enum,options:[\"_self\",\"_blank\"],optionTitles:[\"Same tab\",\"New tab\"],title:\"CTA Target\"},loginLabel:{type:ControlType.String,title:\"Login Label\"},loginUrl:{type:ControlType.String,title:\"Login URL\"},accountLabel:{type:ControlType.String,title:\"Account Label\"},accountUrl:{type:ControlType.String,title:\"Account URL\"},authMode:{type:ControlType.Enum,options:[\"none\",\"session\",\"manual\"],title:\"Auth Mode\"},sessionEndpoint:{type:ControlType.String,title:\"Session Endpoint\"},sticky:{type:ControlType.SegmentedEnum,title:\"Sticky\",options:[\"false\",\"true\"],optionTitles:[\"Off\",\"On\"]},transparent:{type:ControlType.SegmentedEnum,title:\"Transparent\",options:[\"false\",\"true\"],optionTitles:[\"Off\",\"On\"]},variant:{type:ControlType.Enum,options:[\"white\",\"transparent\"],title:\"Variant\"},theme:{type:ControlType.Enum,options:[\"light\",\"dark\"],title:\"Theme\"},countryCode:{type:ControlType.Enum,options:[\"\",\"CA\",\"US\"],optionTitles:[\"Auto\",\"CA\",\"US\"],title:\"Country Code\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"StealthNav\":{\"type\":\"reactComponent\",\"name\":\"StealthNav\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NavCode.map","// Generated by Framer (293632e)\nexport default function metadata(params,activeLocale){return{description:\"Stealth Health | Built for Better.\",favicon:\"https://framerusercontent.com/assets/jVqEDfu2RBYjxtkYyJ0RBeBjUTk.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/PzzgPUHfGcHNHBE2p9qgue6lM.png\",title:\"Stealth Health\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"+LAAoV,SAAgB,EAAW,EAAM,CAAC,GAAK,CAAC,WAAS,UAAQ,WAAS,UAAQ,YAAU,iBAAe,eAAa,kBAAgB,aAAW,WAAS,eAAa,aAAW,WAAS,kBAAgB,SAAO,UAAQ,QAAM,cAAY,QAAM,cAAY,GAAG,GAAM,EAAY,EAAIA,EAAO,KAAK,CAG9jB,OAH+jB,MAAc,CAAC,GAAG,EAAO,gBAAgB,IAAI,cAAc,CAAC,OAAO,IAAM,EAAO,SAAS,cAAc,SAAS,CAAmF,MAAlF,GAAO,IAAI,EAAmB,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,KAAW,CAAC,SAAS,KAAK,YAAY,EAAO,GAAK,EAAE,CAAC,CAAC,MAAc,CAAC,IAAI,EAAU,GAAY,EAAe,SAAS,CACv6B,EAAO,gBAAgB,IAAI,cAAc,EAAE,MAAM,IAAI,SAAS,EAAQ,IAAS,CAAC,IAAM,EAAS,SAAS,cAAc,eAAe,EAAmB,IAAI,CAAC,GAAG,EAAS,CAAC,EAAS,iBAAiB,WAAW,GAAS,CAAC,CAAC,KAAK,GAAK,CAAC,CAAC,EAAS,iBAAiB,YAAY,GAAQ,CAAC,CAAC,KAAK,GAAK,CAAC,CAAC,OAAQ,IAAM,EAAO,SAAS,cAAc,SAAS,CAAC,EAAO,IAAI,EAAmB,EAAO,MAAM,GAAK,EAAO,WAAW,GAAS,CAAC,EAAO,YAAY,GAAQ,CAAC,SAAS,KAAK,YAAY,EAAO,EAAG,CACre,EAAO,gBAAgB,aAAa,MAAM,EAAO,eAAe,YAA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