{"version":3,"file":"Header.Bje3FJeN.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/jCjvset0A5s1NjEc9dqQ/3nQRcjNCTLERLpaaQPEA/Header.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";function Monogram({className}){return /*#__PURE__*/_jsxs(\"svg\",{className:className,viewBox:\"0 0 75 78\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"polygon\",{fill:\"currentColor\",points:\"45.09 22.51 45.09 36.05 29.33 36.05 29.33 40.73 45.09 40.73 45.09 54.83 50.71 54.83 50.71 22.51 45.09 22.51\"}),/*#__PURE__*/_jsx(\"polygon\",{fill:\"currentColor\",points:\"29.33 22.51 23.71 22.51 23.71 54.83 29.33 54.83 29.33 40.73 29.33 22.51\"}),/*#__PURE__*/_jsx(\"path\",{fill:\"currentColor\",d:\"M37.4,71.46c-8.68,0-16.08-3.18-21.99-9.46-5.91-6.27-8.9-14.12-8.9-23.34s3-17.08,8.9-23.34c5.92-6.28,13.32-9.46,21.99-9.46,11.77,0,20.5,5.26,25.99,15.64h7.04C64.44,7.24,53.33,0,37.4,0c-10.69,0-19.69,3.69-26.75,10.95C3.58,18.23,0,27.55,0,38.67s3.58,20.44,10.65,27.71c7.06,7.27,16.06,10.95,26.75,10.95,15.93,0,27.04-7.24,33.03-21.51h-7.04c-5.49,10.38-14.22,15.64-25.99,15.64Z\"})]});}export default function ConsciousHealthHeader(props){const{brandName=\"Conscious Health\",homeUrl=\"/\",applyUrl=\"/apply\",showCta=true,logo=\"\",style,className}=props;const[checkoutUrl,setCheckoutUrl]=React.useState(\"https://go.conscious.health/checkout\");React.useEffect(()=>{const source=new URLSearchParams(window.location.search);const referral=new URLSearchParams;for(const key of[\"utm_source\",\"utm_medium\",\"utm_campaign\",\"utm_content\",\"utm_term\",\"source\",\"ref\"]){const value=source.get(key);if(value)referral.set(key,value);}if(referral.toString())setCheckoutUrl(\"https://go.conscious.health/checkout?\"+referral.toString());},[]);React.useEffect(()=>{const id=\"ch-fonts\";if(document.getElementById(id))return;const link=document.createElement(\"link\");link.id=id;link.rel=\"stylesheet\";link.href=\"https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap\";document.head.appendChild(link);},[]);return /*#__PURE__*/_jsxs(\"header\",{className:`chHeader${className?\" \"+className:\"\"}`,style:style,children:[/*#__PURE__*/_jsx(\"style\",{children:styles}),/*#__PURE__*/_jsxs(\"div\",{className:\"head-inner\",children:[/*#__PURE__*/_jsxs(\"a\",{className:\"head-mark\",href:homeUrl,\"aria-label\":brandName,children:[/*#__PURE__*/_jsx(Monogram,{className:\"head-mono\"}),logo?/*#__PURE__*/_jsx(\"img\",{className:\"head-wordmark\",src:logo,alt:brandName}):/*#__PURE__*/_jsx(\"span\",{className:\"head-text\",children:brandName.toUpperCase()})]}),/*#__PURE__*/_jsxs(\"nav\",{className:\"head-actions\",\"aria-label\":\"Main navigation\",children:[/*#__PURE__*/_jsx(\"a\",{className:\"head-login\",href:\"https://conscioushealth.md-hq.com/\",target:\"_blank\",rel:\"noopener noreferrer\",children:\"Patient Login\"}),/*#__PURE__*/_jsx(\"a\",{className:\"head-cta\",href:checkoutUrl,children:\"Get started\"})]})]})]});}addPropertyControls(ConsciousHealthHeader,{brandName:{type:ControlType.String,title:\"Brand\",defaultValue:\"Conscious Health\"},homeUrl:{type:ControlType.String,title:\"Home URL\",defaultValue:\"/\"},applyUrl:{type:ControlType.String,title:\"Apply URL\",defaultValue:\"/apply\"},showCta:{type:ControlType.Boolean,title:\"Show CTA\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},logo:{type:ControlType.Image,title:\"Logo\",description:\"Horizontal dark-on-light wordmark. Empty falls back to text.\"}});const styles=`\n.chHeader { --gutter:clamp(24px,5vw,88px); box-sizing:border-box; width:100%; background:#000; color:#fff; font-family:'Poppins',sans-serif; font-weight:300; font-size:17px; line-height:1.72; -webkit-font-smoothing:antialiased; }\n.chHeader * { box-sizing:border-box; }\n.chHeader .head-inner { max-width:1200px; margin:0 auto; padding:20px var(--gutter); display:flex; align-items:center; justify-content:space-between; gap:24px; }\n.chHeader .head-mark { display:inline-flex; align-items:center; gap:12px; color:#fff; text-decoration:none; min-width:0; }\n.chHeader .head-mono { height:30px; width:auto; flex:none; display:block; }\n.chHeader .head-wordmark { height:26px; width:auto; display:block; }\n.chHeader .head-text { font:400 15px/1.72 'Poppins',sans-serif; letter-spacing:.2em; white-space:nowrap; }\n.chHeader .head-actions { display:inline-flex; align-items:center; gap:16px; }\n.chHeader .head-login { display:inline-flex; align-items:center; color:#fff; text-decoration:none; font:400 13px/1 'Poppins',sans-serif; letter-spacing:.01em; white-space:nowrap; }\n.chHeader .head-login:hover { opacity:.75; }\n.chHeader .head-cta { display:inline-flex; align-items:center; justify-content:center; padding:17px 30px; font:400 13px/1.2 'Poppins',sans-serif; letter-spacing:.02em; border:1px solid #CEC8B7; border-radius:999px; background:#CEC8B7; color:#14120d; text-decoration:none; white-space:nowrap; transition:background 180ms ease; }\n.chHeader .head-cta:hover { background:#ddd8ca; }\n.chHeader a:focus-visible { outline:2px solid #CEC8B7; outline-offset:5px; }\n@media(max-width:900px) { .chHeader .head-text,.chHeader .head-wordmark { display:none; } }\n@media(max-width:560px) { .chHeader .head-inner { padding:16px; gap:12px; } .chHeader .head-actions { gap:8px; } .chHeader .head-login { font-size:11px; } .chHeader .head-cta { padding:9px 12px; font-size:11px; } }\n`;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ConsciousHealthHeader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Header.map"],"mappings":"sMAAyI,SAAS,EAAS,CAAC,aAAW,CAAC,OAAoB,EAAM,MAAM,CAAW,YAAU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