1"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[906],{99023:function(e,t,n){n.d(t,{h:function(){return s}});var a=n(96540),o=n(14279),i=n(72473);const r=n(99035).default.div.withConfig({displayName:"styles__MarkdownText",componentId:"sc-wih3bh-0"})([""," ","{","}ol,ul{padding-left:","px;}li{list-style-type:",";}p{margin-bottom:","px;}"],i.Il.bodyTextSmall,i.HP.forTabletHorizontalUp,i.Il.bodyText,i.Ej.lg,(e=>e.bulletedListStyle?"disc":"decimal"),i.Ej.md),s=({body:e,className:t,bulletedListStyle:n=!1})=>a.createElement(r,{className:t,bulletedListStyle:n,dangerouslySetInnerHTML:{__html:(0,o.aj)(e)},"data-element":"MarkdownText","data-component":"MarkdownContent","data-source-file":"index.tsx"})},14596:function(e,t,n){n.d(t,{AN:function(){return y},Av:function(){return S},BH:function(){return c},M1:function(){return g},N3:function(){return d},Nb:function(){return p},Nk:function(){return u},Sy:function(){return a},U6:function(){return w},_4:function(){return k},_b:function(){return o},_j:function(){return f},bl:function(){return s},cg:function(){return r},iI:function(){return x},kV:function(){return h},kx:function(){return T},mM:function(){return E},tw:function(){return m},w6:function(){return l},wC:function(){return v}});const a=["NY","NJ","RI","AZ","OK","MA","PA"],o={NY:"New York",NJ:"New Jersey",RI:"Rhode Island",AZ:"Arizona",OK:"Oklahoma",MA:"Massachusetts",PA:"Pennsylvania"},i=e=>`${e.slice(0,-1).join(", ")}, and ${e[e.length-1]}`,r=(i(a),i(a.map((e=>o[e]))),e=>`Testing isn't available in ${o[e]} yet.`),s=e=>e.replace(/\D/g,"").replace(/^1/,"").slice(0,10);function l(e){const t=s(e);return 0===t.length?"":t.length<4?`(${t}`:t.length<7?`(${t.slice(0,3)}) ${t.slice(3)}`:`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`}const c=e=>10===s(e).length,d="That date doesn't look right. Check it and try again.",u="Testing is for adults 18 and older.";function m(e){const t=e.replace(/\D/g,"").slice(0,8);return t.length<=2?t:t.length<=4?`${t.slice(0,2)} / ${t.slice(2)}`:`${t.slice(0,2)} / ${t.slice(2,4)} / ${t.slice(4)}`}function h(e,t=new Date){const n=e.replace(/\D/g,"");if(n.length<8)return"partial";const a=Number(n.slice(0,2)),o=Number(n.slice(2,4)),i=Number(n.slice(4,8)),r=new Date(i,a-1,o),s=r.getFullYear()===i&&r.getMonth()===a-1&&r.getDate()===o,l=function(e,t=new Date){let n=t.getFullYear()-e.getFullYear();const a=t.getMonth()-e.getMonth();
1(a<0||0===a&&t.getDate()<e.getDate())&&(n-=1);return n}(r,t);return!s||i<1900||i>t.getFullYear()||l>120?"invalid":l<18?"minor":"valid"}function g(e){const t=e.replace(/\D/g,"");return`${t.slice(4,8)}-${t.slice(0,2)}-${t.slice(2,4)}`}function p(e){const t=null==e?void 0:e.match(/^(\d{4})-(\d{2})-(\d{2})$/);return t?`${t[2]} / ${t[3]} / ${t[1]}`:""}const f=e=>e.replace(/\D/g,"").slice(0,5),y=e=>5===f(e).length;function v(e){const t=f(e);if(5!==t.length)return null;const n=Number(t),a=Number(t.slice(0,3));return a>=100&&a<=149||501===n||544===n||6390===n?"NY":a>=10&&a<=27||5501===n||5544===n?"MA":28===a||29===a?"RI":a>=70&&a<=89?"NJ":a>=150&&a<=196?"PA":a>=730&&a<=749?"OK":a>=850&&a<=865?"AZ":null}function w(e){const t=e.trim().toUpperCase();return a.includes(t)?t:null}const b=["NY"],x=e=>`Kits aren't available in ${o[e]} yet.`;function E(e){const t=v(e);return t&&b.includes(t)?t:null}function S(e){const t=w(e);return t&&b.includes(t)?t:null}const k=e=>/^\S+@\S+\.\S+$/.test(e.trim()),T=e=>e.replace(/\D/g,"").slice(0,6)},24751:function(e,t,n){n.d(t,{Ae:function(){return m},QC:function(){return h},R$:function(){return p},Tb:function(){return r},dQ:function(){return s},hk:function(){return g},uv:function(){return f},yR:function(){return u}});n(14596);var a=n(11784);new Map(a.mp.map((e=>[e.name,e])));const o=new Map(a.mp.map((e=>[e.code,e]))),i="everywhere-";function r(e){return`${i}${e.code}`}function s(e){if(e.startsWith(i))return o.get(e.slice(i.length))}function l(e){return e.toLowerCase().replace(/&/g," and ").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}const c=new Map,d=new Map;for(const y of a.mp){const e=y.slug||l(y.name);c.set(y.name,e),d.set(e,y.name)}function u(e){var t;return null!==(t=c.get(e))&&void 0!==t?t:l(e)}function m(e){return`/everywhere/tests/${u(e)}/`}function h(e){var t,n;return null!==(t=null===(n=a.zK[e.name])||void 0===n?void 0:n.n)&&void 0!==t?t:e.name}function g(e){return`$${Math.round(e)}`}function p(e){return`$${e.toFixed(2)}`}function f(e){return"Urine sample"===e?"TestTube":"Drop"}},17669:function(e,t,n){n.d(t,{K:function(){return c}});var a=n(64810),o=n(96540),i=n(11784),r=n(24751);const s="everywhere-clinician-review";function l(e){if(!Array.isArray(e.variants))return null;const t=e.variants.find((e=>"object"==typeof e&&null!==e&&"is_master"in e&&!0===e.is_master));if(!t)return null;const n=Number(t.price);return Number.isFinite(n)&&n>=0?n:null}function c(){var e,t;const n=null===(t=(null!==(e=(0,a.useStaticQuery)("1662132634"))&&void 0!==e?e:{}).allSpreeProduct)||void 0===t?void 0:t.nodes;return(0,o.useMemo)((()=>{var e;const t=new Map;for(const i of null!=n?n:[]){if("object"!=typeof i||null===i||!("slug"in i))continue;const{slug:e}=i;if("string"!=typeof e||!e.startsWith("everywhere-"))continue;const n=l(i);null!==n&&t.set(e,n)}const a=null!==(e=t.get(s))&&void 0!==e?e:null,o=e=>{var n;return null!==(n=t.get((0,r.Tb)(e)))&&void 0!==n?n:null};return{labPriceFor:o,reviewFee:a,availableTests:null===a?[]:i.mp.filter((e=>null!==o(e)))}}),[n])}},75697:function(e,t,n){n.r(t),n.d(t,{HowItWorksContainer:function(){return S},default:function(){return k}});var a=n(66470),o=n(96540),i=n(72473),r=n(25178),s=n(32532),l=n(85692),c=n(11588),d=n(11616),u=n(47654),m=n(99023),h=n(99035);h.default.section.withConfig({displayName:"styles__Section",componentId:"sc-1ykc3fv-0"})(["padding-top:","px;padding-bottom:","px;","{padding-top:","px;padding-bottom:","px;}"],i.Ej.xl4,i.Ej.xl4,i.HP.forTabletHorizontalUp,i.Ej.xl7,i.Ej.xl7);const g=h.default.h3.withConfig({displayName:"styles__SectionTitle",componentId:"sc-1ykc3fv-1"})(["",";margin-bottom:","px;text-transform:uppercase;font-weight:",";text-align:center;"],i.Il.overlineText,i.Ej.sm,i.Il.weight.book),p=h.default.h2.withConfig({displayName:"styles__SectionHeadline",componentId:"sc-1ykc3fv-2"})([""," margin-bottom:","px;text-align:center;","{margin-bottom:","px;}"],i.Il.h4Text,i.Ej.lg,i.HP.forTabletHorizontalUp,i.Ej.xl3),f=(0,h.default)(i.O1).withConfig({displayName:"styles__InfoBlock",componentId:"sc-1ykc3fv-3"})(["margin-bottom:56px;align-items:",";flex-direction:",";","{margin-bottom:0;justify-content:space-between;}"],(({isImageOnTheSide:e})=>e?"":"center"),(({isImageOnTheSide:e})=>e?"row":"column"),i.HP.forTabletHorizontalUp),y=(0,h.default)(c.CS.div).withConfig({displayName:"styles__AnimatedBlockContainer",componentId:"sc-1ykc3fv-4"})(["display:flex;justify-content:center;max-width:",";width:100%;"],(({isImageOnTheSide:e})=>e?"":"75%")),v=h.default.div.withConfig({displayName:"styles__InfoBlockContainer",componentId:"sc-1ykc3fv-5"})(["display:flex;flex-wrap:wrap;flex-direction:column;align-items:center;","{margin:0 -","px;","{width:",";padding:0 ","px;}}","{flex-direction:row;align-items:start;justify-content:",";}","{margin:0 -","px;","{width:33.33%;padding:0 ","px;}",":first-child:nth-last-child(3n + 1),",":first-child:nth-last-child(3n + 1) ~ ","{width:50%;}}","{&:last-child{","{margin-bottom:0;}}div[class*='InfoBlock-']{div:first-child{background-color:transparent;}}}"],(({isImageOnTheSide:e})=>e?i.HP.forTabletHorizontalUp:i.HP.forTabletVerticalUp),i.Ej.md,y,(({isImageOnTheSide:e})=>e?"33%":"50%"),i.Ej.md,i.HP.forTabletHorizontalUp,(({isImageOnTheSide:e})=>e?"start":"center"),i.HP.forDesktopUp,i.Ej.lg,y,i.Ej.lg,y,y,y,y,f),w=(0,h.default)(m.h).withConfig({displayName:"styles__MarkdownSection",componentId:"sc-1ykc3fv-6"})(["padding-top:","px;margin-bottom:","px;"],i.Ej.xs1,i.Ej.xl4),b=(0,h.default)(i.$n).withConfig({displayName:"styles__Cta",componentId:"sc-1ykc3fv-7"})(["min-width:150px;margin-top:","px;","{display:none;}"],i.Ej.lg,i.HP.forTabletVerticalUp),x=h.default.span.withConfig({displayName:"styles__DisclaimerText",componentId:"sc-1ykc3fv-8"})(["",";margin-top:","px;"],i.Il.captionText,i.Ej.lg),E=({title:e,headline:t,listOfContent:n,description:a,noNumberTags:m=!1,isImageOnTheSide:h,disclaimerText:E,cta:S,onCtaClick:k})=>{const[T,C]=(0,l.Wx)({triggerOnce:!0}),M=(0,c.zh)({opacity:C?1:0,transform:C?"translateY(0)":`translateY(${i.Ej.xl1}px)`,config:c.$W.slow}),I=(0,c.zh)({opacity:C?1:0,transform:C?"translateY(0)":`translateY(${i.Ej.xl2}px)`,config:c.$W.slow}),A=(0,c.zh)({opacity:C?1:0,transform:C?"translateY(0)":`translateY(${i.Ej.xl3}px)`,config:c.$W.slow});return o.createElement(r.A,{"data-testid":"howItWorksSection",ref:T,"data-element":"SectionWrapper","data-component":"HowItWorksSection","data-source-file":"index.tsx"},o.createElement(i.mc,{"data-element":"Container","data-source-file":"index.tsx"},e?o.createElement(i.fI,{center:"xs"},o.createElement(i.fv,{xs:12,lg:10},o.createElement(c.CS.div,{style:M},o.createElement(g,null,e)))):null,t?o.createElement(i.fI,{center:"xs"},o.createElement(i.fv,{xs:12,lg:10},o.createElement(c.CS.div,{style:I},o.createElement(p,null,t)))):null,a?o.createElement(i.fI,{center:"xs"},o.createElement(i.fv,{xs:12},o.createElement(c.CS.div,{style:I},o.createElement(w,{body:a})))):null,n?o.createElement(i.fI,{center:"xs",around:"lg"},o.createElement(i.fv,{xs:12,lg:12},o.createElement(v,{isImageOnTheSide:h},n.length?n.map(((e,t)=>o.createElement(y,{key:t,style:A,isImageOnTheSide:h},o.createElement(f,{title:e.title,isImageOnTheSide:h,image:o.createElement(s.G,{image:e.image,style:{width:"100%",height:"100%"},objectFit:"contain",alt:e.imageAlt}),imageAlt:e.imageAlt,content:e.description,size:h?"small":"xlarge",numberTag:m?void 0:t+1})))):null)),S?o.createElement(b,{appearance:"primary",onClick:e=>{k&&k(e),d.Ay.track({event:u.r.EVENTS.CLICKED_BUTTON,data:{sectionHeader:t,contentfulSection:"HowItWorksSection",ctaText:null==S?void 0:S.text}})},href:S.url},S.text):null):null,o.createElement(i.fv,{xs:12,lg:12,"data-element":"Col","data-source-file":"index.tsx"},o.createElement(i.fI,{center:"xs",around:"lg","data-element":"Row","data-source-file":"index.tsx"},o.createElement(x,{"data-element":"DisclaimerText","data-source-file":"index.tsx"},E)))))};const S=({content:e,onCtaClick:t})=>{if(!e)return null;const{title:n,headline:i,listOfContentSections:r,noNumberTags:s,sectionId:l,isImageOnTheSide:c,disclaimerText:d,cta:u}=e,m={title:n,headline:i,disclaimerText:d,listOfContent:null==r?void 0:r.map((e=>({title:e.headline,description:e.subHeadline,image:e.image.gatsbyImageData,imageAlt:e.image.description||""}))),noNumberTags:s,sectionId:l,isImageOnTheSide:c,cta:u,onCtaClick:t};return o.createElement(a.A,{label:l,slug:n||"No title in Contentful","data-element":"TrackVisibilityWrapper","data-component":"HowItWorksContainer","data-source-file":"HowItWorksContainer.tsx"},o.createElement(E,Object.assign({},m,{"data-element":"HowItWorksSection","data-source-file":"HowItWorksContainer.tsx"})))};var k=S},75266:function(e,t,n){n.r(t),n.d(t,{default:function(){return xe}});var a=n(45574),o=n(72404),i=n(1005),r=n(96540),s=n(31918),l=n(58961),c=n(53199),d=n(5404);function u(e){const t=e.inputValue.trim().length>0,n="connecting"!==e.status;return t&&n}function m(e){return"connecting"===e.status}const h={status:"idle",inputValue:"",messages:[],errorMessage:null,isThinking:!1,isStreaming:!1,activeAgentMessageId:null,activeStreamEventSeq:0};function g(e,t){return[...e,t]}function p(e,t,n){const a=e.findIndex((e=>e.id===t));if(a<0)return e;const o=e[a];return null!=o&&o.recommendations?e:e.map(((e,t)=>t===a?{...e,recommendations:n}:e))}function f(e,t){var n;const a=e.findIndex((e=>e.id===t.id));if(a<0)return g(e,t);const o=e[a],i=o?{...o,...t,recommendations:null!==(n=t.recommendations)&&void 0!==n?n:o.recommendations}:t;return e.map((e=>e.id===t.id?i:e))}function y(e,t){switch(t.type){case"SET_INPUT":return{...e,inputValue:t.value};case"CONNECTING":return{...e,status:"connecting",errorMessage:null};case"CONNECTED":return{...e,status:"connected"};case"CONNECT_FAILED":case"ERROR":return{...e,status:"error",errorMessage:t.errorMessage,isThinking:!1,isStreaming:!1,activeAgentMessageId:null,activeStreamEventSeq:0};case"USER_MESSAGE_SENT":{const n={id:t.id,isUser:!0,text:t.text};return{...e,status:"sending",inputValue:"",messages:g(e.messages,n),isThinking:!0,isStreaming:!1,activeAgentMessageId:null,activeStreamEventSeq:0,errorMessage:null}}case"AGENT_MESSAGE_RECEIVED":{const n={id:t.id,isUser:!1,text:t.text};return{...e,status:"connected",messages:g(e.messages,n),isThinking:!1,isStreaming:!1,activeAgentMessageId:null,activeStreamEventSeq:0}}case"AGENT_MESSAGE_STREAMED":{const n={id:t.id,isUser:!1,text:t.text},a=e.activeAgentMessageId===t.id?e.activeStreamEventSeq+1:1;return{...e,status:"connected",messages:f(e.messages,n),isThinking:!1,isStreaming:!0,activeAgentMessageId:t.id,activeStreamEventSeq:a}}case"AGENT_STREAM_COMPLETE":return e.activeAgentMessageId!==t.id?e:{...e,isStreaming:!1,activeAgentMessageId:null,activeStreamEventSeq:0};case"ATTACH_RECOMMENDATIONS":return{...e,messages:p(e.messages,t.id,t.recommendations)};case"SET_THINKING":return{...e,isThinking:t.isThinking};case"CLEAR_ERROR":return{...e,errorMessage:null};case"RESET":return h;default:return e}}var v=n(18952);const w=v.Ik({id:v.Yj(),isUser:v.zM(),text:v.Yj(),recommendations:s.kf.optional()}),b=(v.k5(["page","widget"]),v.k5(["idle","connecting","connected","sending","error"])),x=(v.Ik({status:b,inputValue:v.Yj(),messages:v.YO(w),errorMessage:v.Yj().nullable(),isThinking:v.zM(),isStreaming:v.zM(),activeAgentMessageId:v.Yj().nullable(),activeStreamEventSeq:v.ai()}),v.gM("type",[v.Ik({type:v.eu("SET_INPUT"),value:v.Yj()}),v.Ik({type:v.eu("CONNECTING")}),v.Ik({type:v.eu("CONNECTED")}),v.Ik({type:v.eu("CONNECT_FAILED"),errorMessage:v.Yj()}),v.Ik({type:v.eu("USER_MESSAGE_SENT"),id:v.Yj(),text:v.Yj()}),v.Ik({type:v.eu("AGENT_MESSAGE_RECEIVED"),id:v.Yj(),text:v.Yj()}),v.Ik({type:v.eu("AGENT_MESSAGE_STREAMED"),id:v.Yj(),text:v.Yj()}),v.Ik({type:v.eu("AGENT_STREAM_COMPLETE"),id:v.Yj()}),v.Ik({type:v.eu("ATTACH_RECOMMENDATIONS"),id:v.Yj(),recommendations:s.kf}),v.Ik({type:v.eu("SET_THINKING"),isThinking:v.zM()}),v.Ik({type:v.eu("ERROR"),errorMessage:v.Yj()}),v.Ik({type:v.eu("CLEAR_ERROR")}),v.Ik({type:v.eu("RESET")})]),v.Ik({agentId:v.Yj(),connectionType:v.eu("websocket"),textOnly:v.eu(!0)})),E=v.Ik({type:v.Yj().optional(),source:v.Yj().optional(),message:v.Yj().optional(),text:v.Yj().optional()}).passthrough(),S=v.Ik({type:v.k5(["start","delta","stop"]),text:v.Yj()}),k=2e3;function T(){var e,t,n,a;const o=(0,r.useRef)(null),i=(0,r.useMemo)((()=>(0,s.Io)()),[]),g=i.isOk()?i.value:null,p=null!==(e=null==g||null===(t=g.messages)||void 0===t?void 0:t.slice(-c._4.maxMessages))&&void 0!==e?e:[],f=(0,r.useRef)(null!==(n=null==g?void 0:g.conversationId)&&void 0!==n?n:void 0),{0:v,1:w}=(0,r.useState)(null!==(a=null==g?void 0:g.conversationId)&&void 0!==a?a:void 0),b=(0,r.useCallback)((e=>{f.current=e,w(e)}),[]),T=(0,r.useCallback)((()=>f.current),[]),{state:C,dispatch:M,canSend:I,isLoading:A}=function(e){const{0:t,1:n}=(0,r.useReducer)(y,null!=e?e:null,(e=>e&&0!==e.length?{...h,messages:e}:h));return{state:t,dispatch:n,canSend:u(t),isLoading:m(t)}}(p),D=(0,r.useMemo)((()=>
1{if(0===C.messages.length)return null;let e=-1;for(let n=C.messages.length-1;n>=0;n-=1){var t;if(null!==(t=C.messages[n])&&void 0!==t&&t.isUser){e=n;break}}for(let n=C.messages.length-1;n>e;n-=1){const e=C.messages[n];if(e&&!e.isUser&&e.recommendations)return e.recommendations}return null}),[C.messages]),N=(0,r.useRef)(null),H=(0,r.useRef)(!1),z=(0,r.useRef)(!1),R=(0,r.useRef)(null),L=(0,r.useRef)(""),F=(0,r.useRef)(null),j=(0,r.useRef)(""),O=(0,r.useRef)(0),P=(0,r.useRef)(C.messages);P.current=C.messages;const B=(0,r.useRef)(C.isStreaming);B.current=C.isStreaming;const W=(0,r.useCallback)((()=>H.current&&!R.current&&z.current),[]),_=(0,r.useCallback)((e=>{e.trim().length>0&&(z.current=!0)}),[]),Y=(0,r.useCallback)((e=>{const t=N.current;if(!t)return;if(B.current)return;const n=P.current,a=e?n.find((t=>t.id===e)):(()=>{for(let e=n.length-1;e>=0;e-=1){const t=n[e];if(t&&!t.isUser)return t}return null})();a&&!a.isUser&&0!==a.text.trim().length&&(a.recommendations?e&&(N.current=null):(N.current=null,M({type:"ATTACH_RECOMMENDATIONS",id:a.id,recommendations:t})))}),[M]),U=(0,r.useCallback)((()=>{N.current=null;const e=R.current;e&&(M({type:"AGENT_STREAM_COMPLETE",id:e}),F.current=e,j.current=L.current,O.current=Date.now(),R.current=null,L.current=""),M({type:"SET_THINKING",isThinking:!1}),M({type:"CONNECTED"})}),[M]),G=(0,r.useCallback)((e=>{(0,d.E)(S,e).map((e=>{const{type:t,text:n}=e;let a=R.current;if(!a){if(W())return;if("stop"===t&&0===n.length)return;a=`a-${Date.now()}`,R.current=a,L.current="",F.current=null,j.current="",O.current=0}"start"===t?L.current=n:L.current+=n,_(L.current),M({type:"AGENT_MESSAGE_STREAMED",id:a,text:L.current}),"stop"===t&&(M({type:"AGENT_STREAM_COMPLETE",id:a}),F.current=a,j.current=L.current,O.current=Date.now(),R.current=null,L.current="",Y(a))})).mapErr((()=>{}))}),[M,Y,_,W]),q=(0,l.LM)({clientTools:{recommend_products:e=>{const t=(0,s.Z0)(e);return t.isOk()?(N.current=t.value,H.current=!0,Y(),"ok"):(M({type:"ERROR",errorMessage:"Invalid product recommendations received."}),"error")}},onMessage:e=>{W()||(0,d.E)(E,e).map((e=>{var t;if("interruption"===e.type)return void U();const n="ai"===e.source||"agent"===e.type,a=null!==(t=e.message)&&void 0!==t?t:e.text;if(n&&"string"==typeof a&&a.length>0){const e=Date.now(),t=F.current,n=j.current,o=O.current,i=t&&e-o<=k,r=n.length>0&&(n===a||a.includes(n)||n.includes(a));if(i&&r)return F.current=null,j.current="",void(O.current=0);if(i&&n.length>0)return F.current=null,j.current="",void(O.current=0);t&&e-o>k&&(F.current=null,j.current="",O.current=0);const s=R.current;if(s)L.current=a,_(a),M({type:"AGENT_MESSAGE_STREAMED",id:s,text:a}),M({type:"AGENT_STREAM_COMPLETE",id:s}),F.current=s,j.current=a,O.current=Date.now(),R.current=null,L.current="",Y(s);else{const e=`a-${Date.now()}`;_(a),M({type:"AGENT_MESSAGE_RECEIVED",id:e,text:a}),Y(e)}}})).mapErr((()=>{}))},onAgentChatResponsePart:G,onInterruption:U,onError:()=>{M({type:"ERROR",errorMessage:"Something went wrong. Please try again."})},onConnect:()=>{M({type:"CONNECTED"})}}),$=(0,r.useRef)(q);$.current=q;const V=(0,r.useCallback)((async e=>{const t=e.trim();if(!t)return!1;R.current&&U(),N.current=null,H.current=!1,z.current=!1,M({type:"CLEAR_ERROR"}),M({type:"USER_MESSAGE_SENT",id:`u-${Date.now()}`,text:t});const n=$.current;if(!c._4.agentId)return M({type:"ERROR",errorMessage:"Eva is not configured."}),!1;if("connected"!==n.status){M({type:"CONNECTING"});const e=(0,d.E)(x,{agentId:c._4.agentId,connectionType:"websocket",textOnly:!0});if(e.isErr())return M({type:"CONNECT_FAILED",errorMessage:"Invalid session configuration."}),!1;const t=await(0,d._)((()=>n.startSession(e.value)));if(t.map((e=>{e&&b(e),M({type:"CONNECTED"})})).mapErr((()=>{M({type:"CONNECT_FAILED",errorMessage:"Failed to connect. Please try again."})})),t.isErr())return!1}M({type:"SET_THINKING",isThinking:!0});const a=await(0,d._)((()=>Promise.resolve(n.sendUserMessage(t))));return a.mapErr((e=>{M({type:"ERROR",errorMessage:e instanceof Error?e.message:"Failed to send message. Please try again."})})),a.isOk()}),[M,U]),Q=(0,r.useCallback)((e=>{e.preventDefault(),V(C.inputValue)}),[C.inputValue,V]),J=(0,r.useCallback)((e=>{M({type:"SET_INPUT",value:e})}),[M]);return(0,r.useEffect)((()=>{var e;null===(e=o.current)||void 0===e||e.focus()}),[]),(0,r.useEffect)((()=>
1{if(C.isStreaming)return;if(0===C.messages.length)return(0,s.H7)(),void b(void 0);const e=C.messages.slice(-c._4.maxMessages);(0,s.vm)({messages:e,lastUpdated:Date.now(),conversationId:v})}),[v,C.isStreaming,C.messages]),(0,r.useEffect)((()=>{const e=C.messages[C.messages.length-1];e&&!e.isUser&&(C.isStreaming||Y(e.id))}),[Y,C.isStreaming,C.messages]),{sendMessage:V,canSend:I,conversationId:v,getConversationId:T,error:C.errorMessage,handleInputChange:J,handleSubmit:Q,inputRef:o,inputValue:C.inputValue,setInputValue:e=>M({type:"SET_INPUT",value:e}),isLoading:A,isThinking:C.isThinking,isStreaming:C.isStreaming,activeAgentMessageId:C.activeAgentMessageId,activeStreamEventSeq:C.activeStreamEventSeq,messages:C.messages,recommendations:D}}var C=n(57400),M=n(98464),I=n(29304),A="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjEyIiB2aWV3Qm94PSIwIDAgMzggMTIiIHdpZHRoPSIzOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtNiAwYzMuNDA1NSAwIDUuNzkyIDEuOTQ2NDMgNS43OTIgNS44ODQ3NyAwIC4zMjQwOS0uMDIyOC42NzEzMy0uMDQ1OSAxLjAxODU1aC05LjI2NzU4Yy4yMDg1IDEuNzYwNjcgMS42MjIyOSAyLjg3MzA1IDMuNzMwNDYgMi44NzMwNSAxLjE4MTM1LS4wMDAwNSAyLjU5NDMxLS40MTY5MiAzLjMxMjUtMS4yMjc1NGwxLjU1MjcyIDEuNTA1ODdjLTEuMTgxNDggMS4zMjA1LTMuMTUxNDIgMS45NDUzLTQuOTEyMDkgMS45NDUzLTMuNzUyNzEtLjAwMDEtNi4xNjE5OTU3NC0yLjM4NTgyLTYuMTYyMTEtNi4wNDU5IDAtMy40NzQ5MSAyLjQzMjQ5LTUuOTUzOTYzMzkgNi01Ljk1NDF6bTI1LjEzOTYgMGMxLjY0NDkgMCAzLjE3NDQuNzY0MjE3IDMuODkyNiAyLjA2MTUybC4wNjk0LTEuODMwMDc1aDIuMzE2NHYxMS40NDQzNTVoLTIuMjcwNWwtLjExNTMtMS44NTM1M2MtLjc0MTMgMS40ODI1My0yLjU0ODUgMi4xNTUxMy0zLjkzODQgMi4xNTUyMy0zLjMzNiAwLTUuODYxMy0yLjEzMTU2LTUuODYxNC02LjAyMzQgMC0zLjgyMjQ2IDIuNjQwOC01Ljk1NDA0NzA3IDUuOTA3Mi01Ljk1NDF6bS0xNC40ODA0IDQuMDA4NzkgMi4wMTU2IDUuMTY2MDEgMS44MDY2LTQuNzAyMTQgMS43MTQ5LTQuMjQwMjM4aDIuNjE3MmwtNC44NDE4IDExLjQ0NDM3OGgtMi42MTgybC00Ljg2NDItMTEuNDQ0Mzc4aDIuNjQwNnptMTQuNjY2LTEuODMxMDZjLTIuMDM4NyAwLTMuNzA3IDEuNDU5Ny0zLjcwNyAzLjc3NjM3LjAwMDEgMi4zMzk2OSAxLjY2ODQgMy43OTg4MyAzLjcwNyAzLjc5ODgzIDIuNDc4Ny0uMDAwMDUgMy43MDY5LTEuODk5MjcgMy43MDctMy43OTg4MyAwLTEuODc2NDgtMS4yMjgyLTMuNzc2MzItMy43MDctMy43NzYzN3ptLTI1LjI1NTg2LS4wNDY4N2MtMS43NjAzMS4wMDAxNi0zLjE3MzE3LjkyNzE0LTMuNTQzOTUgMi43NTY4NGg2LjkyNjc2Yy0uMTYyMzUtMS44Mjk4Ni0xLjQzNjk4LTIuNzU2ODQtMy4zODI4MS0yLjc1Njg0eiIgZmlsbD0iIzc0Mjk3NCIvPjwvc3ZnPg==";function D(e){"function"!=typeof e.scrollTo?e.scrollTop=e.scrollHeight:e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}function N({messages:e,isThinking:t,isStreaming:n,activeAgentMessageId:a,activeStreamEventSeq:o,recommendations:i,errorMessage:s,onSendMessage:l,onTypingComplete:c}){var d,u;const{lastAgentMessageIndex:m,showLogoOnRecommendation:h,showLogoOnError:g,showLogoOnLastAgentMessage:p,isAwaitingAgentResponse:f,scrollDependencies:y}=function({messages:e,isThinking:t,isStreaming:n,recommendations:a,errorMessage:o,activeStreamEventSeq:i,activeAgentMessageId:s}){const l=(0,r.useMemo)((()=>{for(let n=e.length-1;n>=0;n-=1){var t;if(null===(t=e[n])||void 0===t||!t.isUser)return n}return-1}),[e]),c=t||n,d=!c&&Boolean(a),u=!c&&!a&&Boolean(o),m=!t&&!a&&!o||n,h=s?e.find((e=>e.id===s)):null,g=Boolean(h&&h.text.length>0),p=e.length>0?e[e.length-1]:null,f=!0===(null==p?void 0:p.isUser),y=Boolean(p&&!p.isUser&&0===p.text.length);return{lastAgentMessageIndex:l,showLogoOnRecommendation:d,showLogoOnError:u,showLogoOnLastAgentMessage:m,isAwaitingAgentResponse:Boolean(t||n&&!g||f||y),scrollDependencies:(0,r.useMemo)((()=>[e.length,t,a,o,i]),[e.length,t,a,o,i])}}({messages:e,isThinking:t,isStreaming:n,recommendations:i,errorMessage:s,activeStreamEventSeq:o,activeAgentMessageId:a}),v=(0,r.useRef)(null);null===v.current&&(v.current=new Set(e.map((e=>e.id))));const{0:w,1:b}=(0,r.useState)(null),x=(0,r.useMemo)((()=>{var t,n;return m<0?null:null!==(t=null===(n=e[m])||void 0===n?void 0:n.id)&&void 0!==t?t:null}),[m,e]),E=(0,r.useMemo)((()=>{var t,n;const a=e.filter((e=>e.isUser));return 0===a.length?null:null!==(t=null===(n=a[a.length-1])||void 0===n?void 0:n.id)&&void 0!==t?t:null}),[e]),S=(0,r.useCallback)((()=>{x&&b(x)}),[x]),k=(0,r.useCallback)((e=>{l&&l(`Tell me more about the Everlywell ${e}`)}),[l]),T=Boolean(x&&!(null!==(d=v.current)&&void 0!==d&&d.has(x))),C=w===x,M=Boolean(x&&(null===(u=v.current)||void 0===u?void 0:u.has(x))),I=!n&&!t&&!f&&(M||C);(0,r.useEffect)((()=>{c&&c(I)}),[I,c]);const A=T,N=!t&&!n&&h&&Boolean(i)&&I,H=p||A&&!I&&!t||n,z=(0,r.useRef)(null),R=(0,r.useRef)(null),L=function(e){const{deps:t,isAwaitingAgentResponse:n,anchorId:a,anchorRef:o}=e,i=(0,r.useRef)(null),s=(0,r.useRef)(null),l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{const e=i.current;if(e)return l.current?void(n?D(e):a&&a!==s.current&&o.current&&(s.current=a)):(l.current=!0,s.current=a,void D(e))}),t),i}({deps:(0,r.useMemo)((()=>[...y,f,x]),[y,f,x]),isAwaitingAgentResponse:f,anchorId:x,anchorRef:z}),F=A&&!I;(0,r.useEffect)((()=>
1{if(!F)return;const e=()=>{const e=L.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})};let t=null;const n=setTimeout((()=>{e(),t=setInterval(e,100)}),600);return()=>{clearTimeout(n),t&&clearInterval(t)}}),[F,L]);const j=(0,r.useRef)(!1);(0,r.useEffect)((()=>{if(N&&!j.current){const e=L.current;e&&setTimeout((()=>{e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),100)}j.current=Boolean(N)}),[N,L]),(0,r.useEffect)((()=>{if(!E||!R.current||!L.current)return;if(!f)return;const e=setTimeout((()=>{const e=R.current,t=L.current;if(!e||!t)return;const n=t.getBoundingClientRect(),a=e.getBoundingClientRect(),o=t.scrollTop,i=a.top-n.top+o;t.scrollTo({top:i-50})}),300);return()=>clearTimeout(e)}),[E,f,L]);const O=(0,r.useCallback)(((e,t)=>{var o;const r=t===m,s=n&&a===e.id,l=!e.isUser&&r&&!f&&!(null!==(o=v.current)&&void 0!==o&&o.has(e.id))&&(s||!n);return{shouldAnimate:l,shouldFadeOutAvatar:r&&l&&I&&Boolean(i),onTypingComplete:r?S:void 0}}),[m,n,a,f,I,i,S]);return{lastAgentMessageIndex:m,showLogoOnRecommendation:h,showLogoOnError:g,adjustedShowLogoOnLastAgentMessage:H,isAwaitingAgentResponse:f,lastAgentMessageId:x,lastUserMessageId:E,lastAgentMessageRef:z,lastUserMessageRef:R,scrollRef:L,canShowRecommendations:N,lastMessageShouldAnimate:A,isTypingComplete:I,handleLearnMore:k,getMessageAnimationState:O}}var H=n(21108);function z(e){return e.endsWith("/>")}function R(e){return["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(e.toLowerCase())}var L=n(55746);const F=[{label:"Warm up",until:.18,min:3,max:5},{label:"Careful",until:.38,min:4,max:8},{label:"Flow",until:.66,min:2,max:5},{label:"Reflect",until:.82,min:3,max:7},{label:"Wrap",until:1,min:2,max:4}],j=(e,t,n)=>{const a=(e=>{const t=F.find((t=>e<=t.until));return null!=t?t:F[F.length-1]})(t/Math.max(1,n-1)),o=(Math.sin(t/6)+1)/2;let i=a.min+(a.max-a.min)*(.35+.65*o);return" "===e&&(i*=.7),".!?".includes(e)&&(i+=13+13*Math.random()),",;:".includes(e)&&(i+=5+8*Math.random()),"\n"===e&&(i+=10+10*Math.random()),i+=1*Math.random(),.5*i};function O({text:e,shouldAnimate:t=!1,isStreaming:n=!1,onTypingComplete:a}){const{sanitizedText:o,plainText:i,shouldRenderHtml:s,shouldRender:l}=function({text:e}){const t=(0,r.useMemo)((()=>(0,L.K)(e)),[e]),n=(0,r.useMemo)((()=>t.replace(/<br\s*\/?\s*>/gi,"\n").replace(/<[^>]+>/g,"").trim()),[t]),a=n.length>0,o=n.length>0||t.trim().length>0;return{sanitizedText:t,plainText:n,shouldRenderHtml:a,shouldRender:o}}({text:e}),{displayedText:c,isComplete:d}=function(e,t){var n;const a=null===(n=null==t?void 0:t.enabled)||void 0===n||n,{0:o,1:i}=(0,r.useState)(0),s=(0,r.useRef)(null),l=(0,r.useRef)(e),c=(0,r.useRef)(e),d=(0,r.useRef)(!1),u=(0,r.useRef)(0);l.current=e,u.current=o,(0,r.useEffect)((()=>()=>{s.current&&(clearTimeout(s.current),s.current=null),d.current=!1}),[]),(0,r.useEffect)((()=>{const t=c.current;c.current=e,a?e.startsWith(t.slice(0,Math.min(t.length,e.length>0?1:0)))||(i(0),d.current=!1):i(e.length)}),[e,a]),(0,r.useEffect)((()=>{if(!a)return s.current&&(clearTimeout(s.current),s.current=null),void(d.current=!1);const e=()=>{const t=l.current,n=t.length,a=u.current;if(a<n){const o=t[a],r=j(o,a,n);i(a+1),s.current=setTimeout(e,r)}else a===n&&n>0?s.current=setTimeout(e,3):(d.current=!1,s.current=null)};if(!d.current&&l.current.length>0){d.current=!0;const t=l.current,n=t.length,a=Math.min(u.current,Math.max(0,n-1)),o=t[a],i=j(o,a,n);s.current=setTimeout(e,i)}}),[a,e.length,o]);const m=(0,r.useCallback)((()=>{s.current&&(clearTimeout(s.current),s.current=null),d.current=!1,i(0),c.current=""}),[]);return{displayedText:a?e.slice(0,o):e,isComplete:!a||o>=e.length&&e.length>0,reset:m}}(i,{enabled:t&&l}),u=(0,r.useRef)(!1),m=(0,r.useRef)(!1),h=d&&!n;(0,r.useEffect)((()=>{t&&h&&!u.current&&!m.current&&a&&(m.current=!0,a()),u.current=h}),[h,a,t]),(0,r.useEffect)((()=>{t&&!h&&(m.current=!1)}),[t,h,i]);const g=(0,r.useMemo)((()=>{if(!t||d)return o;const e=c.length;return function(e,t){if(t<=0)return"";if(!e)return"";let n=0,a="",o=0;const i=[];for(;o<e.length&&n<t;)if("<"===e[o]){const t=e.indexOf(">",o);if(-1===t){a+=e[o],o++;continue}const n=e.slice(o,t+1);if(a+=n,n.startsWith("</")){const e=n.slice(2,-1).split(/\s/)[0].toLowerCase(),t=i.lastIndexOf(e);-1!==t&&i.splice(t,1)}else if(!n.endsWith("/>")&&!z(n)){const e=n.slice(1).split(/[\s>]/)[0].toLowerCase();e&&!R(e)&&i.push(e)}o=t+1}else if("&"===e[o]){const t=e.indexOf(";",o);-1!==t&&t-o<10?(a+=e.slice(o,t+1),n++,o=t+1):(a+=e[o],n++,o++)}else a+=e[o],n++,o++;for(let r=i.length-1;r>=0;r--)a+=`</${i[r]}>`;return a}(o,e)}),[t,d,o,c.length]);return{shouldRender:l,displayPlainText:t?c:i,displaySanitizedText:t?g:o,displayHtml:s,isTypingComplete:d}}const P=({shouldRenderHtml:e,sanitizedText:t,plainText:n})=>r.createElement(a.az,{alignSelf:"flex-start",backgroundColor:"rgba(0, 0, 0, 0.03)",borderRadius:12,padding:"10px 12px",maxWidth:"85%","data-element":"Box","data-component":"WidgetBubble","data-source-file":"ChatAssistantMessage.tsx"},e?r.createElement(a.az,{fontSize:"md",color:"tints.black",whiteSpace:"pre-wrap",dangerouslySetInnerHTML:{__html:t}}):r.createElement(a.EY,{fontSize:"md",color:"tints.black",whiteSpace:"pre-wrap"},n)),B=({shouldRenderHtml:e,sanitizedText:t,plainText:n})=>e?r.createElement(a.az,{color:"#0F0F0F",fontFamily:"DM Sans",fontSize:"1rem",fontWeight:"400",lineHeight:"150%",whiteSpace:"pre-wrap",dangerouslySetInnerHTML:{__html:t}}):r.createElement(a.EY,{color:"tints.black",fontFamily:"DM Sans",fontSize:"1rem",fontWeight:"400",lineHeight:"150%",whiteSpace:"pre-wrap"},n),W=({isTyping:e=!1,isFadingOut:t=!1})=>r.createElement(a.az,{display:"flex",alignItems:"flex-start",paddingTop:8,paddingRight:16,flexShrink:0,"data-element":"Box","data-component":"AssistantAvatar","data-source-file":"ChatAssistantMessage.tsx"},r.createElement(a.az,{padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",width:"56px",height:"56px",minWidth:"56px",minHeight:"56px",flexShrink:0,"data-element":"Box","data-source-file":"ChatAssistantMessage.tsx"},r.createElement(a.az,{backgroundColor:"violet.lighter",borderRadius:"full",padding:2,display:"flex",alignItems:"center",sx:t?{animation:"avatarFadeOut 0.1s ease-out forwards","@keyframes avatarFadeOut":{"0%":{opacity:1},"100%":{opacity:0}
1},"@media (prefers-reduced-motion: reduce)":{animation:"none"}}:e?{animation:"pulse 2.5s ease-in-out infinite","@keyframes pulse":{"0%, 100%":{boxShadow:"0 0 0 0 rgba(230,173,255, 0)"},"50%":{boxShadow:"0 0 0 4px rgba(230,173,255, 0.4)"}}}:void 0,"data-element":"Box","data-source-file":"ChatAssistantMessage.tsx"},r.createElement(a.az,{sx:(()=>{if(!t)return e?{animation:"scaleUp 2.5s ease-in-out infinite","@keyframes scaleUp":{"0%, 100%":{transform:"scale(1)"},"50%":{transform:"scale(1.2)"}}}:void 0})(),"data-element":"Box","data-source-file":"ChatAssistantMessage.tsx"},r.createElement(H.m,{"data-element":"EvaIcon","data-source-file":"ChatAssistantMessage.tsx"})))));function _({text:e,variant:t="page",showLogo:n=!1,isStreaming:o=!1,shouldAnimate:i=!1,onTypingComplete:s,shouldFadeOutAvatar:l=!1}){const{shouldRender:c,displayPlainText:d,displaySanitizedText:u,displayHtml:m,isTypingComplete:h}=O({text:e,shouldAnimate:i,isStreaming:o,onTypingComplete:s});return c?"widget"===t?r.createElement(P,{shouldRenderHtml:m,sanitizedText:u,plainText:d}):r.createElement(a.so,{width:"100%",justifyContent:"flex-start",flexDirection:"column",alignItems:"flex-start","data-element":"Flex","data-component":"ChatAssistantMessage","data-source-file":"ChatAssistantMessage.tsx"},r.createElement(a.az,{display:"flex",maxWidth:600,width:"fit-content",minHeight:44,flexDirection:"column",justifyContent:"center",borderRadius:"22px 22px 22px 0",background:"transparent","data-element":"Box","data-source-file":"ChatAssistantMessage.tsx"},r.createElement(B,{shouldRenderHtml:m,sanitizedText:u,plainText:d,"data-element":"PageBubble","data-source-file":"ChatAssistantMessage.tsx"})),n?r.createElement(W,{isTyping:o||i&&!h,isFadingOut:l&&h}):null):null}function Y({children:e}){return r.createElement(a.az,{display:"flex",justifyContent:"center",alignItems:"center",alignSelf:"stretch",borderRadius:"12px",backgroundColor:"tints.white",width:{base:"345px",md:"670px"},minHeight:{base:"60px",md:"30px"},paddingX:[3,4],paddingY:[2,4],gap:{base:"10px",md:"0px"},"data-element":"Box","data-component":"Disclaimer","data-source-file":"ChatTermsDisclaimer.tsx"},r.createElement(a.EY,{textAlign:"center",color:"tints.darkGrey",fontFamily:"DM Sans",fontSize:"xs",fontStyle:"normal",fontWeight:400,lineHeight:"150%",flex:{base:"1 0 0",md:"unset"},sx:{fontFeatureSettings:"'liga' off, 'clig' off"},"data-element":"Text","data-source-file":"ChatTermsDisclaimer.tsx"},e))}function U({href:e,children:t,target:n="_blank",rel:o="noreferrer noopener"}){return r.createElement(a.N_,{href:e,target:n,rel:o,color:"eggplant.base",fontFamily:"DM Sans",fontSize:"xs",textDecorationLine:"underline",sx:{fontFeatureSettings:"'liga' off, 'clig' off",textDecorationStyle:"solid",textDecorationSkipInk:"none",textDecorationThickness:"auto",textUnderlineOffset:"auto",textUnderlinePosition:"from-font"},"data-element":"Link","data-component":"DisclaimerLink","data-source-file":"ChatTermsDisclaimer.tsx"},t)}function G(){return r.createElement(Y,{"data-element":"Disclaimer","data-component":"ChatTermsDisclaimer","data-source-file":"ChatTermsDisclaimer.tsx"},"This chat is powered by AI and may provide general health information, but it doesn't provide medical advice. This chat may be monitored and recorded by us or our service providers. By continuing you agree to"," ",r.createElement(U,{href:"/terms-of-use","data-element":"DisclaimerLink","data-source-file":"ChatTermsDisclaimer.tsx"},"Terms of Use")," and"," ",r.createElement(U,{href:"/privacy-policy","data-element":"DisclaimerLink","data-source-file":"ChatTermsDisclaimer.tsx"},"Privacy Policy"),".")}function q({text:e,variant:t="page"}){return"widget"===t?r.createElement(a.az,{alignSelf:"flex-end",backgroundColor:"rgba(116, 41, 116, 0.08)",borderRadius:12,padding:"10px 12px",maxWidth:"85%",marginBottom:"-12px"},r.createElement(a.EY,{fontSize:"md",color:"tints.black",whiteSpace:"pre-wrap"},e)):r.createElement(a.so,{width:"100%",justifyContent:"flex-end",marginBottom:"-12px","data-element":"Flex","data-component":"ChatUserBubble","data-source-file":"ChatUserBubble.tsx"},r.createElement(a.az,{display:"flex",maxWidth:600,width:"fit-content",minHeight:44,padding:"12px 16px",flexDirection:"column",justifyContent:"center",alignItems:"flex-end",borderRadius:"22px 22px 0 22px",background:"#E8E8E2","data-element":"Box","data-source-file":"ChatUserBubble.tsx"},r.createElement(a.EY,{color:"#0F0F0F",sx:{fontFeatureSettings:"'liga' off, 'clig' off"},fontFamily:"DM Sans",fontSize:"1rem",fontStyle:"normal",fontWeight:"400",lineHeight:"150%",alignSelf:"stretch",whiteSpace:"pre-wrap","data-element":"Text","data-source-file":"ChatUserBubble.tsx"},e)))}function $({variant:e="page",label:t="Eva is thinking..."}){return"widget"===e?r.createElement(a.EY,{fontSize:"sm",color:"tints.uiGrey"},t):r.createElement(a.so,{width:"100%",justifyContent:"flex-start",alignItems:"center",marginTop:24,gap:"12px",sx:{animation:"thinkingFadeIn 0.2s ease-out","@keyframes thinkingFadeIn":{"0%":{opacity:0}
1,"100%":{opacity:1}}},"data-element":"Flex","data-component":"EvaThinkingIndicator","data-source-file":"EvaThinkingIndicator.tsx"},r.createElement(a.az,{padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"data-element":"Box","data-source-file":"EvaThinkingIndicator.tsx"},r.createElement(a.az,{backgroundColor:"violet.lighter",borderRadius:"full",padding:2,display:"flex",alignItems:"center",sx:{animation:"pulse 2.5s ease-in-out infinite","@keyframes pulse":{"0%, 100%":{boxShadow:"0 0 0 0 rgba(230,173,255, 0)"},"50%":{boxShadow:"0 0 0 4px rgba(230,173,255, 0.4)"}}},"data-element":"Box","data-source-file":"EvaThinkingIndicator.tsx"},r.createElement(a.az,{sx:{animation:"scaleUp 2.5s ease-in-out infinite","@keyframes scaleUp":{"0%, 100%":{transform:"scale(1)"},"50%":{transform:"scale(1.2)"}}},"data-element":"Box","data-source-file":"EvaThinkingIndicator.tsx"},r.createElement(H.m,{"data-element":"EvaIcon","data-source-file":"EvaThinkingIndicator.tsx"})))),r.createElement(a.EY,{color:"#949494",sx:{fontFeatureSettings:"'liga' off, 'clig' off"},fontFamily:"DM Sans",fontSize:"1rem",fontStyle:"normal",fontWeight:"400",lineHeight:"150%","data-element":"Text","data-source-file":"EvaThinkingIndicator.tsx"},t))}var V=n(72925),Q=n(24751),J=n(99151),K=n(41783),X=n(43018),Z=n(32729),ee=n(69936);const te=e=>e.includes("360-full-body-test");var ne=n(71028),ae=n(16716),oe=n(66056);const ie=()=>({opacity:0,animation:"avatarBounce 0.9s ease-out 0.15s forwards","@keyframes avatarBounce":{"0%":{transform:"translateY(-20px)",opacity:0},"20%":{transform:"translateY(-10px)",opacity:1},"40%":{transform:"translateY(0)",opacity:1},"55%":{transform:"translateY(-12px)",opacity:1},"70%":{transform:"translateY(0)",opacity:1},"80%":{transform:"translateY(-4px)",opacity:1},"90%":{transform:"translateY(0)",opacity:1},"100%":{transform:"translateY(0)",opacity:1}},"@media (prefers-reduced-motion: reduce)":{animation:"none",transform:"none",opacity:1}}),re=e=>({opacity:0,animation:"productCardReveal 0.4s ease-out forwards",animationDelay:100+100*e+"ms","@keyframes productCardReveal":{"0%":{opacity:0,transform:"translateY(16px)"},"100%":{opacity:1,transform:"translateY(0)"}},"@media (prefers-reduced-motion: reduce)":{animation:"none",opacity:1,transform:"none"}});function se({recommendations:e,showLogo:t=!1,shouldAnimate:n=!0,onLearnMore:o,onCardClick:i}){const{productSlugs:l,visibleItems:c,hasEverlywell360:d}=function(e){var t;const n=(0,ee.Q)(),a=(0,Z.k)(),o=(0,r.useRef)(null),{applyToProductList:i,applyToDisplayName:l}=(0,K.ey)(null!==(t=e.products)&&void 0!==t?t:[]),{productSlugs:c,visibleItems:d,hasEverlywell360:u}=(0,r.useMemo)((()=>{var t;const o=i(null!==(t=e.products)&&void 0!==t?t:[],(e=>e)).slice(0,3),r=new Set(a),s=o.flatMap((e=>{if(te(e))return[];if(r.has(e)){const t=(0,Q.dQ)(e);return t?[{kind:"everywhere",slug:e,test:t,imageIndex:0}]:[]}const t=n[e];return!t||t.outOfStock?[]:[{kind:"product",slug:e,product:{...t,displayName:l(e,t.displayName)}}]})),c=(0,X.A)(s.map((e=>"everywhere"===e.kind?e.test.name:null)),0);return{productSlugs:o,visibleItems:s.map(((e,t)=>{var n;return"everywhere"===e.kind?{...e,imageIndex:null!==(n=c[t])&&void 0!==n?n:0}:e})),hasEverlywell360:o.some(te)}}),[n,e.products,i,l,a]);return(0,r.useEffect)((()=>{var t;if(0===c.length)return;const a=null!==(t=e.followUpQuestions)&&void 0!==t?t:null,i=JSON.stringify({productSlugs:c,followUps:a});if(o.current===i)return;o.current=i;const r=c.map((e=>{const t=(0,Q.dQ)(e);if(t)return{slug:e,name:t.name,url:(0,Q.Ae)(t.name),product_type:"everywhere"};const a=n[e],o=`/products/${e}/`;return a?{id:a.productId,variant_id:a.variantId,slug:e,name:a.displayName,price:a.price,url:o}:{slug:e,url:o}}));(0,s.IU)("Eva Search Recommended Products",{products:r,experience:"conversation"})}),[c,n,e.followUpQuestions]),{productSlugs:c,visibleItems:d,hasEverlywell360:u}}(e),{advertisedPromos:u}=(0,J.A)();return 0!==l.length||d?r.createElement(a.so,{width:"100%",justifyContent:"flex-start",flexDirection:"column",alignItems:"flex-start","data-element":"Flex","data-component":"ChatProductRecommendations","data-source-file":"ChatProductRecommendations.tsx"},r.createElement(a.az,{maxWidth:800,width:"100%",padding:{base:"12px 0",md:"12px 16px"},"data-element":"Box","data-source-file":"ChatProductRecommendations.tsx"},c.length>0?r.createElement(a.az,{display:"grid",gridTemplateColumns:1===c.length?["1fr","340px"]:["1fr","repeat(2, 1fr)"],gap:"12px",width:"100%"},c.map(((e,t)=>r.createElement(a.az,{key:e.slug,sx:n?re(t):void 0},"everywhere"===e.kind?r.createElement(X.h,{test:e.test,description:e.test.desc,imageIndex:e.imageIndex,experience:"conversation",onCardClick:null!=i?i:()=>{}}):r.createElement(ae.A,{product:e.product,advertisedPromos:u,experience:"conversation",onCardClick:i}))))):null,d?r.createElement(a.az,{marginTop:c.length>0?12:"0",sx:n?re(c.length):void 0},r.createElement(oe.A,{advertisedPromos:u})):null,o&&c.length>0?r.createElement(a.so,{flexWrap:"wrap",gap:"8px",marginTop:"16px",justifyContent:"flex-end",sx:n?re(c.length+(d?1:0)):void 0},c.map((e=>{const t="everywhere"===e.kind?(0,Q.QC)(e.test):e.product.displayName;return r.createElement(ne.v,{key:`learn-${e.slug}`,onClick:()=>
1{(0,s.IU)("Clicked Learn More Chip",{product_name:t,product_slug:e.slug,experience:"conversation"}),o(t)},height:"40px",paddingY:"8px !important"},r.createElement(a.so,{alignItems:"center",justifyContent:"center",gap:"6px",paddingLeft:3,paddingRight:4},r.createElement(a.In,{as:V.x,"aria-hidden":"true",color:"eggplant.base"}),r.createElement(a.EY,{as:"span",fontFamily:"DM Sans",fontSize:"md",fontWeight:"medium",lineHeight:"150%",color:"eggplant.base"},1===c.length?"Learn more":`Learn more: ${t}`)))}))):null),t?r.createElement(a.az,{display:"flex",alignItems:"flex-start",paddingTop:{base:"16px"},paddingRight:"16px",flexShrink:0,sx:n?ie():void 0,"data-testid":"eva-avatar"},r.createElement(a.az,{padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",width:"56px",height:"56px",minWidth:"56px",minHeight:"56px",flexShrink:0},r.createElement(a.az,{backgroundColor:"violet.lighter",borderRadius:"full",padding:2,display:"flex",alignItems:"center"},r.createElement(H.m,null)))):null):null}const le=800,ce={"&::-webkit-scrollbar":{width:8},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#E8E8E2",borderRadius:5},"&::-webkit-scrollbar-thumb:hover":{background:"#E8E8E2"},scrollbarWidth:"thin",scrollbarColor:"#E8E8E2 transparent"},de={background:"linear-gradient(180deg, #F9F9F6 0%, rgba(249, 249, 246, 0.00) 100%)"},ue={animation:"evaMessageEnter 260ms cubic-bezier(0.22, 1, 0.36, 1) both",willChange:"transform, opacity","@keyframes evaMessageEnter":{"0%":{opacity:0,transform:"translateY(6px)"},"100%":{opacity:1,transform:"translateY(0)"}},"@media (prefers-reduced-motion: reduce)":{animation:"none",transform:"none"}};function me({children:e}){return r.createElement(a.so,{width:le,maxWidth:"100%",marginX:"auto",justifyContent:"center","data-element":"Flex","data-component":"Container","data-source-file":"ChatMessagesContainer.tsx"},e)}function he(e){const{messages:t,isThinking:n,isStreaming:o,activeAgentMessageId:s,activeStreamEventSeq:l,recommendations:c,errorMessage:d,onClose:u,onSendMessage:m,onTypingComplete:h}=e,{lastAgentMessageIndex:g,showLogoOnError:p,adjustedShowLogoOnLastAgentMessage:f,isAwaitingAgentResponse:y,lastAgentMessageId:v,lastUserMessageId:w,lastAgentMessageRef:b,lastUserMessageRef:x,scrollRef:E,canShowRecommendations:S,lastMessageShouldAnimate:k,handleLearnMore:T,getMessageAnimationState:C}=N({messages:t,isThinking:n,isStreaming:o,recommendations:c,errorMessage:d,activeStreamEventSeq:l,activeAgentMessageId:s,onSendMessage:m,onTypingComplete:h}),M=r.useMemo((()=>{for(let n=t.length-1;n>=0;n-=1){var e;if(null!==(e=t[n])&&void 0!==e&&e.isUser)return n}return-1}),[t]),I=t.flatMap(((e,t)=>{const{shouldAnimate:n,shouldFadeOutAvatar:i,onTypingComplete:c}=C(e,t),d=[],m=function(e){const{message:t,index:n,lastAgentMessageIndex:o,showLogoOnLastAgentMessage:i,isStreaming:s,activeAgentMessageId:l,activeStreamEventSeq:c,shouldAnimate:d,onTypingComplete:u,shouldFadeOutAvatar:m}=e,h=function({message:e,index:t,lastAgentMessageIndex:n,showLogoOnLastAgentMessage:a,isStreaming:o,activeAgentMessageId:i}){return{isLastAgentMessage:!e.isUser&&t===n&&a,isActiveStreamingMessage:!e.isUser&&o&&i===e.id&&t===n,shouldSkipRender:!1}}({message:t,index:n,lastAgentMessageIndex:o,showLogoOnLastAgentMessage:i,isStreaming:s,activeAgentMessageId:l});return h.shouldSkipRender?null:t.isUser?{key:t.id,node:r.createElement(q,{text:t.text})}:{key:t.id,node:r.createElement(a.az,{width:"100%"},r.createElement(_,{text:t.text,showLogo:h.isLastAgentMessage,isStreaming:h.isActiveStreamingMessage,streamEventSeq:h.isActiveStreamingMessage?c:0,shouldAnimate:d,onTypingComplete:u,shouldFadeOutAvatar:m}))}}({message:e,index:t,lastAgentMessageIndex:g,showLogoOnLastAgentMessage:f,isStreaming:o,activeAgentMessageId:s,activeStreamEventSeq:l,shouldAnimate:n,onTypingComplete:c,shouldFadeOutAvatar:i});if(m&&d.push(m),!e.isUser&&e.recommendations&&e.text.trim().length>0){const n=t===g;(!!(M>t)||(!n||S))&&d.push({key:`rec-${e.id}`,node:r.createElement(a.az,{width:"100%"},r.createElement(se,{recommendations:e.recommendations,showLogo:n,shouldAnimate:!!n&&k,onLearnMore:T,onCardClick:u}))})}return d})).filter((e=>null!==e));return r.createElement(a.az,{ref:E,position:"absolute",inset:"0",overflowY:"auto",overflowX:"hidden",marginBottom:100,sx:ce,"data-element":"Box","data-component":"ChatMessagesContainer","data-source-file":"ChatMessagesContainer.tsx"},r.createElement(a.az,{position:"sticky",top:"0 !important",zIndex:1,backgroundColor:"tints.lightCream",height:"48px","data-element":"Box","data-source-file":"ChatMessagesContainer.tsx"},r.createElement(me,{"data-element":"Container","data-source-file":"ChatMessagesContainer.tsx"},r.createElement(a.so,{padding:"1rem","data-element":"Flex","data-source-file":"ChatMessagesContainer.tsx"},r.createElement(a.az,{as:"img",src:A,alt:"eva",width:"37.418px",height:12,sx:{aspectRatio:"37.42 / 12"},"data-element":"Box","data-source-file":"ChatMessagesContainer.tsx"}),r.createElement(a.$n,{type:"button",onClick:u,variant:"ghost",position:"absolute",top:"8px",right:"8px",width:"2rem",height:"2rem",minWidth:"2rem",minHeight:"2rem",padding:"0.5rem",borderRadius:"1.26875rem",backgroundColor:"tints.white",color:"eggplant.base",zIndex:2001,_hover:{filter:"brightness(0.97)"},_active:{filter:"brightness(0.94)"},"aria-label":"Close Eva","data-element":"Button","data-source-file":"ChatMessagesContainer.tsx"},r.createElement(a.In,{as:i.X,"aria-hidden":"true",color:"eggplant.base",boxSize:16,"data-element":"Icon","data-source-file":"ChatMessagesContainer.tsx"})))),r.createElement(a.az,{height:"32px",sx:de,"data-element":"Box","data-source-file":"ChatMessagesContainer.tsx"})),r.createElement(a.so,{width:le,maxWidth:"100%",marginX:"auto",flexDirection:"column",alignItems:"center",flexShrink:0,paddingTop:5,marginBottom:["65px","50px"],"data-element":"Flex","data-source-file":"ChatMessagesContainer.tsx"},r.createElement(a.az,{width:"100%",paddingX:4,"data-element":"Box","data-source-file":"ChatMessagesContainer.tsx"},r.createElement(G,{"data-element":"ChatTermsDisclaimer","data-source-file":"ChatMessagesContainer.tsx"}),r.createElement(a.az,{width:"100%",paddingTop:24,flex:"0 0 auto","data-element":"Box","data-source-file":"ChatMessagesContainer.tsx"},r.createElement(a.so,{width:"100%",flexDirection:"column",gap:"24px","data-element":"Flex","data-source-file":"ChatMessagesContainer.tsx"},(()=>{const e=I.findIndex((({key:e})=>e===w)),t=-1!==e,n=t?I.slice(0,e):I;return r.createElement(r.Fragment,null,n.map((({key:e,node:t})=>r.createElement(a.az,{key:e,width:"100%",sx:ue,"data-testid":"eva-message-entry",ref:e===v?b:void 0},t))),t&&r.createElement(a.az,{width:"100%",minHeight:["calc(100vh - 330px)","calc(100vh - 220p
1x)"],display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"24px",ref:x},I.slice(e).map((({key:e,node:t})=>r.createElement(a.az,{key:e,width:"100%",sx:ue,"data-testid":"eva-message-entry",ref:e===v?b:void 0},t))),d?r.createElement(a.az,{width:"100%",sx:ue,"data-testid":"eva-message-entry"},r.createElement(_,{text:d,showLogo:p})):null,y?r.createElement(a.az,{width:"100%","data-testid":"eva-message-entry"},r.createElement($,null)):null),!t&&r.createElement(r.Fragment,null,d?r.createElement(a.az,{width:"100%",sx:ue,"data-testid":"eva-message-entry"},r.createElement(_,{text:d,showLogo:p})):null,y?r.createElement(a.az,{width:"100%","data-testid":"eva-message-entry"},r.createElement($,null)):null))})())))))}var ge=n(35187),pe=n(98440),fe=n(77776),ye=n(70321),ve=n(38900);function we({value:e,onChange:t,onSubmit:n,isDisabled:o}){const i=(0,pe.j)();return r.createElement(a.so,{as:ge.P.div,variants:i.container,initial:"hidden",animate:"show",minHeight:"100svh",width:"100%",paddingX:[4,32,48],paddingTop:[4,32],paddingBottom:[4,32],flexDirection:"column",alignItems:"center",justifyContent:["flex-start","center"],textAlign:"center","data-element":"Flex","data-component":"EvaWelcomeScreen","data-source-file":"EvaWelcomeScreen.tsx"},r.createElement(a.az,{as:ge.P.div,variants:i.logo,marginTop:["auto",0],marginBottom:["12px",0],display:["flex","block"],justifyContent:["center","initial"],width:["100%","auto"],"data-element":"Box","data-source-file":"EvaWelcomeScreen.tsx"},r.createElement(ve.A,{size:[48,48],"data-element":"EvaAgentAvatar","data-source-file":"EvaWelcomeScreen.tsx"})),r.createElement(a.az,{as:ge.P.div,variants:i.heading,maxWidth:"50rem","data-element":"Box","data-source-file":"EvaWelcomeScreen.tsx"},r.createElement(fe.A,{"data-element":"EvaGreetingMessage","data-source-file":"EvaWelcomeScreen.tsx"})),r.createElement(a.az,{as:ge.P.div,variants:i.footer,width:"100%",display:"flex",justifyContent:"center",order:[2,4],marginTop:["90px","122px"],marginBottom:["auto",0],"data-element":"Box","data-source-file":"EvaWelcomeScreen.tsx"},r.createElement(ye.A,{"data-element":"EvaTrustBar","data-source-file":"EvaWelcomeScreen.tsx"})),r.createElement(a.az,{as:ge.P.div,variants:i.promptBar,width:"100%",display:"flex",justifyContent:"center",order:[3,2],"data-element":"Box","data-source-file":"EvaWelcomeScreen.tsx"},r.createElement(I.A,{value:e,onChange:t,onSubmit:n,isDisabled:o,"data-element":"ChatMessageInput","data-source-file":"EvaWelcomeScreen.tsx"})),r.createElement(a.az,{order:[4,3],marginTop:["24px",0],"data-element":"Box","data-source-file":"EvaWelcomeScreen.tsx"}))}function be({onClose:e,hasConversationStarted:t,children:n,onSwitchToSearch:s}){return(0,C.t)({onClose:e}),r.createElement(a.az,{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:2e3,height:"calc(100vh-32px)",width:"100vw",background:t?"#F9F9F6":"eggplant.wash",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",role:"dialog","aria-modal":"true","aria-label":"Eva",sx:{transition:"background-color 0.5s ease-in-out"},"data-element":"Box","data-component":"ChatModalShell","data-source-file":"EvaChatModal.tsx"},r.createElement(a.az,{position:"fixed",top:"0 !important",zIndex:1,backgroundColor:"eggplant.wash",height:"32px",width:"100%","data-element":"Box","data-source-file":"EvaChatModal.tsx"}),s&&r.createElement(a.$n,{type:"button",onClick:s,variant:"ghost",display:"flex",position:"absolute",top:t?"0.55rem":"1.25rem",left:"auto",right:t?"3.5rem":"3.75rem",height:"2rem",paddingX:"12px",alignItems:"center",gap:"6px",borderRadius:"1.26875rem",backgroundColor:"tints.white",color:"eggplant.base",zIndex:2001,_hover:{filter:"brightness(0.97)"},_active:{filter:"brightness(0.94)"},fontFamily:"DM Sans",fontSize:"sm",fontWeight:"medium"},r.createElement(a.In,{as:o.e,"aria-hidden":"true",color:"eggplant.base",boxSize:14}),r.createElement(a.EY,{as:"span",display:["none","inline"]},"Back to Search")),!t&&r.createElement(a.$n,{type:"button",onClick:e,variant:"ghost",position:"absolute",top:"1.25rem",right:"1.25rem",width:"2rem",height:"2rem",minWidth:"2rem",minHeight:"2rem",padding:"0.5rem",borderRadius:"1.26875rem",backgroundColor:"tints.white",color:"eggplant.base",zIndex:2001,_hover:{filter:"brightness(0.97)"},_active:{filter:"brightness(0.94)"},"aria-label":"Close Eva"},r.createElement(a.In,{as:i.X,"aria-hidden":"true",color:"eggplant.base",boxSize:16})),n)}function xe({onClose:e,isOpen:t=!0,onSwitchToSearch:n,initialMessage:o,location:i}){const l=(0,M.l)(t),{0:c,1:d}=(0,r.useState)(!0),u=r.useRef(!1),{sendMessage:m,inputValue:h,handleInputChange:g,messages:p,isThinking:f,isStreaming:y,activeAgentMessageId:v,activeStreamEventSeq:w,isLoading:b,recommendations:x,error:E,getConversationId:S}=T(),k=p.length>0,C=(0,r.useCallback)((e=>{d(e)}),[]),A=(0,r.useCallback)((async e=>{const t=e.trim();if(!t)return;await m(t)&&(0,s.IU)("Sent Eva Search Message",{user_message:t,conversation_id:S(),experience:"conversation",...i?{location:i}:{}})}),[S,m]);return r.useEffect((()=>{o&&o.trim()&&!u.current&&l&&(u.current=!0,A(o))}),[o,l,A]),l?r.createElement(be,{onClose:e,hasConversationStarted:k,onSwitchToSearch:n,"data-element":"ChatModalShell","data-component":"EvaChatModal","data-source-file":"EvaChatModal.tsx"},k?r.createElement(r.Fragment,null,r.createElement(he,{messages:p,isThinking:f,isStreaming:y,activeAgentMessageId:v,activeStreamEventSeq:w,recommendations:x,errorMessage:E,onClose:e,onSendMessage:m,onTypingComplete:C}),r.createElement(a.az,{position:"fixed",bottom:["24px",0],left:"50%",transform:"translateX(-50%)",width:"calc(100% - 32px)",maxWidth:800,display:"flex",justifyContent:"center",pointerEvents:"auto"},r.createElement(I.A,{value:h,onChange:g,onSubmit:e=>{A(e)},isAnimationDisabled:p.length>0,hasConversationStarted:p.length>0,isDisabled:y||f||b||!c,maxWidth:800}))):r.createElement(we,{value:h,onChange:g,onSubmit:A,isDisabled:b})):null}},46580:function(e,t,n){n.r(t),n.d(t,{default:function(){return U}});
1var a=n(45574),o=n(72404),i=n(47159),r=n(1005),s=n(24751),l=n(17669),c=n(96540),d=n(31918),u=n(41783),m=n(99151),h=n(32729),g=n(18952),p=JSON.parse('{"Z":[{"slug":"jona-gut-microbiome-test","price":null,"biomarkers":["Bacteria","Fungi","Viruses","Archaea","Parasites","170,000+ Microorganisms via Metagenomic Sequencing"],"whatsMeasured":"This test analyzes the microorganisms that make up your gut microbiome through a stool sample. Jona uses advanced metagenomic sequencing to identify over 170,000 microorganisms from DNA, including bacteria, fungi, viruses, and parasites, down to the strain level. After your sample is analyzed, Jona\'s AI-powered platform compares your microbiome data with findings from hundreds of thousands of peer-reviewed scientific studies to identify associations between your microbiome and various health conditions.\\n\\nYour report includes:\\n- An in-depth comprehensive analysis of your gut microbiome\\n- Microbial species detected and overall balance\\n- Potential health associations based on current research\\n- Personalized action plan, including diet, lifestyle, and probiotic recommendations\\n- A personalized model that can simulate how different foods, diets, and nutrients may affect your gut health\\n\\nHealth condition associations covered (45+):\\n- Brain Health: Depression, ADD, Migraines, PTSD, Anxiety, Stress\\n- Food Digestion: Soluble Fiber, Lactose\\n- Metabolic Health: Hyperglycemia, Type 2 Diabetes, Hypothyroidism, Hypertension, Metabolic Syndrome, Prediabetes\\n- Skin Health: Psoriasis, Atopic Eczema, Rosacea, Acne, Chronic Hives, Alopecia Areata\\n- Physical Performance: Chronic Pain, Osteoarthritis, Insomnia, Fatigue, Fibromyalgia, Chronic Fatigue Syndrome\\n- GI Health: Bloating, Celiac Disease, Crohn\'s Disease, Constipation, Leaky Gut, Gas, IBS, Ulcerative Colitis, Acid Reflux, Diarrhea, Abdominal Pain\\n\\nHow it differs from food sensitivity tests: Food sensitivity tests measure your body\'s IgG antibody reactivity to specific foods. The Jona Gut Microbiome Test analyzes the specific organisms in your gut that may be driving symptoms of gut imbalance. They complement each other -- food sensitivity identifies trigger foods, while Jona reveals the underlying microbial landscape.","whoShouldTake":"This test may be helpful for adults who want deeper insights into their gut health and overall wellness. Use of Jona is not recommended for individuals who are pregnant or under the age of 18.\\n\\nYour microbiome can influence digestion, metabolism, immune health, skin health, mood, and more. Analyzing your microbiome may help identify imbalances that could be connected to symptoms such as:\\n\\nStomach\\n- Digestive discomfort\\n- Bloating or gas\\n- Irregular bowel habits\\n- Abdominal pain\\n- Diarrhea\\n- Constipation\\n- Reflux\\n\\nBody\\n- Fatigue or low energy\\n- Metabolic concerns\\n- Skin issues\\n- Poor recovery or low stamina\\n- Chronic pain\\n\\nMind\\n- Anxiety\\n- Low mood\\n- Sleep issues","faq":"What is the microbiome?\\n\\nThe microbiome refers to all the organisms that live inside or on your body. These organisms comprise bacteria, fungi, viruses, and more. The microbiome has been shown to play a crucial role in overall health, having been linked to a wide variety of diseases, symptoms, digestion, fitness performance, and healthy aging.\\n\\n---\\n\\nHow is this different from food sensitivity tests?\\n\\nFood sensitivity tests measure your body\'s IgG antibody reaction to specific foods. The Jona Gut Microbiome Test analyzes the specific microorganisms in your gut that may be driving symptoms like bloating, fatigue, and skin issues. They complement each other -- food sensitivity identifies trigger foods, while Jona reveals the underlying microbial factors.\\n\\n---\\n\\nHow is Jona\'s microbiome profiling different from other tests?\\n\\nJona identifies, down to the strain level, all the bacteria, fungi, viruses and other organisms in your sample, using shotgun metagenomic sequencing. This is the most comprehensive gut microbiome sequencing technology on the market. Many microbiome tests identify a limited number of microbial species. Jona\'s advanced sequencing can identify over 170,000 microorganisms from DNA.\\n\\n---\\n\\nWhat can I expect from my results?\\n\\nYou will receive your full gut analysis and personalized recommendations about 2-3 weeks after your sample is received at the Jona lab. Your report includes an in-depth analysis of your gut microbiome, microbial species detected, potential health associations based on current research, and a personalized action plan with diet, lifestyle, and probiotic recommendations.\\n\\n---\\n\\nIs the Jona Gut Microbiome Test HSA/FSA eligible?\\n\\nYes, the Jona Gut Microbiome Test is HSA/FSA eligible.\\n\\n---\\n\\nWhat\'s in the box?\\n\\nYour
1collection kit includes everything you need to collect and return your sample: stool collection tube, plastic bulb pipette, collection swab, stool catcher, biohazard bag, pair of gloves, and a prepaid return shipping label with mailing envelope.","symptoms":["Bloating or gas","Digestive discomfort","Irregular bowel habits","Diarrhea","Constipation","Acid reflux","Fatigue or low energy","Skin issues","Anxiety or low mood","Sleep issues","Chronic pain","Metabolic concerns","IBS symptoms","Gut health curiosity"],"category":"Digestive Health","type":"at-home"},{"slug":"galleri-cancer-screening-test","price":949,"url":"https://www.everlywell.com/products/galleri-cancer-screening-test/","category":"Daily Health","type":"in-person","biomarkers":["Cell-free DNA (cfDNA) methylation patterns","Cancer signal detection for 50+ cancer types","Cancer Signal Origin prediction"],"whatsMeasured":"Analyzes methylation patterns on cell-free DNA to look for a unique cancer signature. All cells, including cancer growing in the body, shed DNA into the bloodstream, known as cell-free DNA (cfDNA). The Galleri test checks hundreds of thousands of methylation sites covering the most relevant genomic regions in DNA.\\n\\nWhen the Galleri test detects what could be cfDNA from cancer, it analyzes the methylation patterns to identify the tissue type or organ associated with the cancer signal. Based on this, the Galleri test indicates the most likely Cancer Signal Origin that can help guide the diagnostic workup to confirm the presence of cancer.\\n\\nScreens for 50+ types of cancer including:\\n- Head, Neck & Respiratory: Larynx, Nasal Cavity, Nasopharynx, Oropharynx, Oral Cavity, Lung, Mesothelioma\\n- Reproductive & Urinary: Uterus, Vulva, Cervix, Vagina, Testis, Penis, Prostate, Ovary, Kidney, Bladder\\n- Digestive & Gastrointestinal: Esophagus, Stomach, Pancreas, Bile Ducts, Gallbladder, Liver, Colon and Rectum, Small Intestine, Anus\\n- Blood & Lymphatic: Leukemia, Lymphoma (Hodgkin and Non-Hodgkin), Plasma Cell Myeloma\\n- Breast & Skin: Breast, Melanoma, Merkel Cell Carcinoma\\n- Skeletal & Neuroendocrine: Bone, Soft Tissue Sarcoma, various Neuroendocrine tumors","whoShouldTake":"The Galleri test is recommended for use in adults with an elevated risk for cancer, such as those aged 50 or older.\\n\\nThe Galleri test is intended to be used in addition to, and not replace, other cancer screening tests your healthcare provider recommends.\\n\\nUse of Galleri is not recommended in individuals who are pregnant, 21 years old or younger, or undergoing active cancer treatment.\\n\\nFor people 22 to 49 years of age, must have one or more of the following risk factors:\\n- Smoking\\n- Cancer survivor\\n- Overweight or obesity\\n- Family history of cancer\\n- Genetic predisposition\\n- Occupational exposure\\n- Environmental exposure\\n- Autoimmune inflammatory conditions\\n- Non-autoimmune inflammatory conditions\\n- Immunodeficiencies\\n- Solid organ transplant","symptoms":["Age 50 or older","Family history of cancer","Current or former smoker","Cancer survivor","Overweight or obesity","Genetic predisposition to cancer","Occupational exposure to carcinogens","Environmental exposure risks","Autoimmune conditions","Immunodeficiencies","Solid organ transplant recipient","Preventive screening (no symptoms needed)"],"faq":"What is the Galleri test?\\n\\nGalleri is a multi-cancer early detection test that can be taken as a
1single annual blood test and screens for many of the deadliest cancers before they become symptomatic. The Galleri test gives you more control when it comes to cancer. In a clinical study, the Galleri test was able to detect a signal shared by more than 50 types of cancer.\\n\\n---\\n\\nHow does the Galleri test look for cancer?\\n\\nCancers growing in the body shed DNA into the bloodstream. Although there are many types of cancer, the DNA fragments can act like a unique \\"fingerprint\\" of cancer. This Galleri test screens for many of the deadliest cancers before they become symptomatic, including those without recommended screening tests.\\n\\n---\\n\\nWho can take the Galleri multi-cancer detection test?\\n\\nThe Galleri test is recommended for use in adults with an elevated risk for cancer, such as those aged 50 or older. Use of Galleri is not recommended in individuals who are pregnant, 21 years old or younger, or undergoing active cancer treatment.\\n\\n---\\n\\nHow accurate is the Galleri test?\\n\\nNearly 99% of people who take the Galleri test will receive a No Cancer Signal Detected result. A Cancer Signal Detected result is expected in approximately 1% of Galleri tests in people over 50 years of age. After diagnostic evaluation, around 40% of these people are expected to have a confirmed cancer diagnosis.\\n\\n---\\n\\nCan I use my HSA/FSA to pay for the Galleri test?\\n\\nYou may be able to use pre-tax dollars in your flexible spending account (FSA) or health savings account (HSA) to pay for the Galleri test. Check with your FSA or HSA administrator or insurance provider to determine eligibility."},{"slug":"caris-detect-multi-cancer-test","price":3500,"url":"https://www.everlywell.com/caris-detect-multi-cancer-test","category":"Cancer Screening","type":"in-person","biomarkers":["Cell-free DNA (cfDNA)","Whole genome sequencing (DNA and RNA)","Cancer-associated genetic signals","Cancer signal origin prediction"],"whatsMeasured":"Caris Detect is a multi-cancer early detection (MCED) blood test that analyzes cell-free DNA using whole genome sequencing. It looks for cancer-associated signals across DNA and RNA and can indicate a likely tissue origin when a cancer signal is detected.\\n\\nThe test is intended to be used in addition to, and not replace, other cancer screening tests your healthcare provider recommends.","whoShouldTake":"Adults aged 21 years or older who want additional insight into their overall health, or who may have an elevated risk of cancer such as a family history.\\n\\nNot recommended for people who are pregnant or undergoing fertility treatment, under 21, currently in active cancer treatment, or survivors less than three years post cancer treatment.\\n\\nTalk to your doctor about your risk for cancer and whether Caris Detect is right for you.","symptoms":["Age 21 or older","Family history of cancer","Elevated cancer risk","Interest in multi-cancer early detection","Preventive screening (no symptoms needed)","Want blood-based cancer screening","Complement to routine cancer screenings"],"faq":"What is Caris Detect?\\n\\nCaris Detect is a multi-cancer early detection blood test that can help look for a cancer signal before symptoms appear. It uses whole genome sequencing and AI analysis of cell-free DNA to identify signals that may be associated with cancer.\\n\\n---\\n\\nWho should take this test?\\n\\nThe Caris Detect test is recommended for adults aged 21 years or older who may be concerned about their overall health, or have an elevated risk of cancer, such as those with a family history. It is intended to be used in addition to, and not replace, other cancer screening tests your healthcare provider recommends.\\n\\n---\\n\\nWho should not take this test?\\n\\nUse of Caris Detect is not recommended in individuals who are pregnant or undergoing fertility treatment, under 21 years old, currently undergoing active cancer treatment, or survivors who are less than three years post cancer treatment.\\n\\n---\\n\\nHow does the test look for cancer?\\n\\nCaris Detect uses whole genome sequencing to analyze DNA and RNA from a blood sample. Because whole genome sequencing generates a large amount of data, AI trained on a large cancer dataset helps recognize patterns that may indicate a cancer signal and can help predict where the signal originated.\\n\\n---\\n\\nWhat can I expect from my results?\\n\\nResults are typically available about two weeks after your blood sample is received at the Caris lab. You may receive one of three outcomes: Cancer Signal Not Detected, Intermediate Signal Detected, or Cancer Signal Detected. If a cancer signal is detected, support is available to help explain results and coordinate next steps with your care team.\\n\\n---\\n\\nCan I use my HSA or FSA?\\n\\nYou may be able to use pre-tax dollars in your flexible spending account (FSA) or health savings account (HSA) to pay for the Caris Detect test. Check with your FSA or HSA plan administrator to determine eligibility."},{"slug":"clairity-breast-cancer-5-year-risk-assessment","price":249,"url":"https://www.everlywell.com/products/clairity-breast-cancer-5-year-risk-assessment/","category":"Cancer Screening","type":"in-person","cardDescription":"AI-driven software analyzes your mammogram to assess your 5-year breast cancer risk score. Results include NCCN guidelines to help your provider determine if advanced screening and risk reduction options are right for you. For women getting routine mammograms who want to know more about their breast cancer risk. Clairity Breast is a risk estimate, not a diagnosis."},{"slug":"hba1c","price":49,"url":"https://www.everlywell.com/products/hba1c/","biomarkers":["Glycated Hemoglobin (HbA1c)"],"whatsMeasured":"If you want to check or track your average blood glucose levels to better understand your body\'s glycemic control, at-home HbA1c testing can be an easy, effective way to get started.\\n\\nOur HbA1c blood test requires a small blood sample to measure your average blood glucose level (blood sugar) over the past 3 months.\\n\\nRed blood cells have a lifespan of about 3 months but are constantly renewing within the body. Glucose attaches itself to hemoglobin, which is a protein found in red blood cells that carry oxygen throughout the body.\\n\\nThis HbA1c blood test provides a measure of average blood glucose levels to give you an overall look at your blood sugar level over a 3-month period. HbA1c values that fall outside the ideal range can mean a greater r
1isk of developing diabetes, cardiovascular disease, and other health conditions.","whoShouldTake":"<p>This test is a great choice for anyone who has been diagnosed with prediabetes or diabetes and needs routine monitoring and HbA1c testing.</p>\\n\\n<p>Commonly related symptoms include:</p>\\n\\nBody\\n- Changes in weight\\n- Fatigue\\n\\n\\nEyes\\n- Blurry vision\\n\\n\\nGroin\\n- Frequent urination\\n\\n\\nHead\\n- Headaches\\n\\n\\nMood\\n- Sugar cravings\\n- Increased thirst\\n","faq":"What is HbA1c?\\n\\nAs glucose circulates in the bloodstream, some glucose molecules stick to a protein in the body that\'s only present in red blood cells: hemoglobin. Hemoglobin that has glucose attached is known as glycated hemoglobinâor HbA1c. Higher blood sugar levels result in a higher amount of glycated hemoglobin. The HbA1c test measures the percentage of glycated hemoglobin in the blood and is often interpreted as the average blood sugar level over the past 3 months.\\n\\n---\\n\\nWhat guidance will I get with my results?\\n\\nOnce you receive results for your HbA1c measurement, Everlywell can provide suggestions for lifestyle changes to jumpstart a healthier lifestyle. As always, we encourage you to share your HbA1c results with your doctor, who can provide more specific guidance on lifestyle changes.","symptoms":["Increased thirst","Frequent urination","Unexplained weight loss","Blurred vision","Fatigue","Slow healing wounds","Family history of diabetes","Overweight"],"category":"Daily Health","type":"at-home"},{"slug":"heart-health-test","price":99,"url":"https://www.everlywell.com/products/heart-health-test/","biomarkers":["Total Cholesterol","Calculated LDL","HDL","Triglycerides","HbA1c"],"whatsMeasured":"This test measures your total cholesterol, HDL, calculated LDL, triglycerides, and HbA1c levels. Your results will show your cholesterol levels, including total cholesterol, HDL, LDL, and triglycerides. In addition to measuring cholesterol and lipids, this panel also shows your HbA1c, an important biomarker for assessing heart disease and diabetes risk.","whoShouldTake":"<p>If you have a family history of heart disease or you\'re simply interested in the health of your heart, the Heart Health Test is a great place to start.</p>","faq":"Who should take this test?\\n\\nIf you\'re wondering how to test for heart disease risk or how to check heart health at home, the Everlywell Heart Health Test can be a great place to startâbut be sure you share your results with your healthcare provider to better understand your specific risk for developing heart disease.","symptoms":["Chest pain or discomfort","Shortness of breath","Heart palpitations","Family history of heart disease","High blood pressure","High cholesterol","Diabetes","Overweight"],"category":"Daily Health","type":"at-home"},{"slug":"hepatitis-c-test","price":69,"url":"https://www.everlywell.com/products/hepatitis-c-test/","biomarkers":["Hepatitis C"],"whatsMeasured":"We measure for the presence of immunoglobulin G (IgG) antibodies to the hepatitis C virus (HCV). Your results will tell you whether or not you\'ve been exposed to the hepatitis C virus (HCV). If your results are positive or abnormal, you\'ll be able to connect with our independent physician network at no additional cost.","whoShouldTake":"<p>The Centers for Disease Control and Prevention (CDC) recommends that anyone born between 1945 and 1965 take a hepatitis C antibody test at least once. Other groups at higher risk include people who are current or former injection drug users, people on dialysis for kidney failure, those who are HIV positive, and those who have a mother with hepatitis C.</p>","faq":"What is hepatitis C?\\n\\nHepatitis C is a bloodborne virus that is spread when blood from an infected individual enters the body of someone who is not infected. The HCV infection can cause both chronic and acute hepatitis in an individual. A chronic infection is a significant risk factor for liver disease and liver cancer, and is potentially life-threatening if left untreated.\\n\\n---\\n\\nWhat guidance will I get with my results?\\n\\nThis hepatitis C screening test checks whether you test positive for hepatitis C. In the event that your test results are positive, an associate from our physician network will contact you directly to discu
1ss your particular case as well as provide information on how to take the next steps to get treatment.","symptoms":["Fatigue","Jaundice (yellowing of skin/eyes)","Dark urine","Abdominal pain","Loss of appetite","Nausea","History of injection drug use","Born between 1945-1965"],"category":"Sexual Health","type":"at-home"},{"slug":"mens-health-test","price":249,"url":"https://www.everlywell.com/products/mens-health-test/","biomarkers":["Cortisol","DHEA","Estradiol","Free Testosterone"],"whatsMeasured":"We measure 4 key hormones known to play an important role in your overall health and wellness. Your results will provide a detailed breakdown of the 4 hormones below and let you know whether your levels fall within the normal, low, or high range. When measured together, these levels offer a broader overview and greater insight into your hormonal profile and overall health and wellness.","whoShouldTake":"<p>Whether you\'re interested in your general health, curious about your reproductive health, or actively experiencing hormonal symptoms like changes in muscle mass, energy, or libido, testing key biomarkers is a powerful step toward understanding more about your body.</p>","faq":"Who should take this test?\\n\\nMen of any age may be interested in understanding their testosterone, estradiol, cortisol, and DHEA levels as theseâwhen measured togetherâcan offer greater insight into their overall health.\\n\\n---\\n\\nWhat will results from this male hormone check tell me?\\n\\nYour results will provide detailed information on whether your testosterone, DHEA, estradiol, and cortisol levels are normal, low, or high compared to reference ranges.","symptoms":["Low energy or fatigue","Decreased libido","Weight gain","Mood changes","Difficulty building muscle","Hair loss","Sleep problems"],"category":"Hormone Health","type":"at-home"},{"slug":"metabolism","price":99,"url":"https://www.everlywell.com/products/metabolism/","biomarkers":["Cortisol","Free Testosterone","Thyroid-Stimulating Hormone"],"whatsMeasured":"We\'ll measure key hormones related to your metabolic health. Your results will provide a detailed breakdown of the 3 hormones below and let you know
1whether your levels fall within the typical range. A better understanding of your hormone levels can provide you with valuable insights into potential reasons for changes you might be experiencing with your body composition, weight, and energy levels.","whoShouldTake":"<p><b>If you\'re experiencing unexpected and unexplained changes in weight or energy, it\'s time to take a closer look. This test is a great first step.</b></p>\\n\\n<p>Metabolism can impact energy levels, weight, body composition, and mood. If key hormones that help your body maintain a normal metabolism are out of range, it can cause unexpected changes. </p>","faq":"Who is this metabolism testing for?\\n\\nThe Metabolism Test may be useful for someone having trouble reaching a goal weight, someone who suspects they have a \'slowed metabolism,\' or someone who is just looking to dive deeper into their wellness.\\n\\n---\\n\\nWhat will my results tell me?\\n\\nThe Everlywell Metabolism Test checks key hormone levels that affect your body\'s metabolism. Your results will contain your levels of TSH, Cortisol, Testosterone, and whether they are low, normal, or high. By checking these levels you may be able to identify a hormonal imbalance.","symptoms":["Unexpected weight changes","Fatigue or low energy","Thinning hair","Increased body fat","Decreased muscle mass","Sleep disturbances","Feeling anxious or stressed"],"category":"Hormone Health","type":"at-home"},{"slug":"cortisol-and-stress-test","price":99,"url":"https://www.everlywell.com/products/cortisol-and-stress-test/","biomarkers":["Cortisol","Free Testosterone","Thyroid-Stimulating Hormone"],"whatsMeasured":"We measure the primary hormones that bridge the gap between your stress response and your metabolism. Your results provide a clear breakdown of these three key markers, showing exactly where you fall within the clinical range. By understanding your unique hormone profile, you\'ll gain a roadmap to how stress is impacting your weight, energy, and body composition.\\n\\nCortisol is your body\'s primary stress hormone, produced in the adrenal glands in response to physical and emotional stress. It plays an important role in regulating energy, blood sugar, and your sleep-wake cycle.\\n\\nFree testosterone plays a role in energy levels, body composition, and overall vitality. Imbalances may influence how your body responds to stress and maintains energy throughout the day.\\n\\nThyroid-stimulating hormone (TSH) helps regulate metabolism and energy balance. Because stress and metabolism are closely connected, understanding thyroid function can provide additional context for how your body is functioning.","whoShouldTake":"<p><b>If you\'re feeling persistently tired, overwhelmed, or not quite like yourself, it may be time to take a closer look.</b></p>\\n\\n<p>This test may be helpful if you\'re experiencing fatigue or low energy, changes in weight or body composition, thinning hair, difficulty falling or staying asleep, waking up feeling unrested, or feeling anxious or stressed.</p>","faq":"What is a cortisol test?\\n\\nA cortisol test measures the level of cortisol, your body\'s primary stress hormone. Cortisol plays a key role in energy levels, metabolism, and your body\'s response to stress.\\n\\n---\\n\\nHow do I know if my cortisol levels are high?\\n\\nSymptoms of high cortisol may include fatigue, trouble sleeping, weight changes, and feeling stressed or overwhelmed. Testing can help you better understand whether cortisol levels may be contributing.\\n\\n---\\n\\nWhy test cortisol at home?\\n\\nAt-home testing offers a convenient way to measure cortisol and other hormones without visiting a lab, helping you gain insight into how stress may be affecting your body.\\n\\n---\\n\\nHow are stress and metabolism connected?\\n\\nStress can influence metabolism through hormones like cortisol. When cortisol levels are elevated over time, it may affect how your body stores fat, regulates blood sugar, and uses energy. Understanding your cortisol levels can provide insight into how stress may be impacting your metabolic health.\\n\\n---\\n\\nIs cortisol the same thing as stress?\\n\\nNo, cortisol and stress are not the same. Cortisol is a hormone your body releases in response to stress. While short-term increases in cortisol are a normal part of the body\'s stress response, ongoing imbalances may be associated with how your body manages energy, sleep, and overall well-being.","symptoms":["Fatigue or low energy","Feeling anxious or stressed","Difficulty falling or staying asleep","Waking up feeling unrested","Unexpected weight changes","Thinning hair","Changes in body composition","Trouble relaxing or unwinding"],"category":"Hormone Health","type":"at-home"},{"slug":"multivitamin-gummy","price":25,"url":"https://www.everlywell.com/products/multivitamin-gummy/","biomarkers":["Multivitamin Ingredients","Ingredient Amounts"],"whatsMeasured":"Daily Multivitamin Gummies (3 month
1supply). Our Daily Multivitamin gummy provides key nutrients to help your body thrive.","whoShouldTake":"","faq":"What is vitamin D?\\n\\nKnown as the \\"sunshine vitamin\\", vitamin D is an organic, fat-soluble nutrient naturally produced in the body. Although it\'s possible to obtain vitamin D from sun exposure and food sources, for certain people, particularly for those who are at risk, it may be difficult to maintain adequate vitamin D levels without supplementation.\\n\\n---\\n\\nHow does the vitamin subscription work?\\n\\nYou\'ll save 10% upfront on your order when you sign up for an Everlywell vitamin subscription. Every month we\'ll send you a 30-day supply (60 gummies) so that you can meet your recommended daily dose without ever having to remember to order a refill.","symptoms":["Dietary gaps","Low energy","Poor diet quality","Increased nutrient needs"],"category":"Daily Health","type":"supplement"},{"slug":"omega-3-fish-oil-1000-mg","price":20,"url":"https://www.everlywell.com/products/omega-3-fish-oil-1000-mg/","biomarkers":["Omega 3 Fish Oil Ingredients","Ingredient Amounts"],"whatsMeasured":"Omega-3 Fish Oil Supplements (3 month supply). Our Omega-3 Fish Oil softgels are made to support your heart, brain, and skin health.","whoShouldTake":"","faq":"Is Omega-3 the same as fish oil?\\n\\n\\"Omega-3\\" and \\"fish oil\\" are often used interchangeably, though they\'re not one and the same. While there are several different kinds of Omega-3 fatty acids, most research focuses on ALA (alpha-linolenic acid), EPA (eicosapentaenoic acid), and DHA (docosahexaenoic acid).\\n\\n---\\n\\nHow does the Omega-3 fish oil subscription work?\\n\\nWith a subscription through Everlywell, you receive a 30-day supply of Omega-3 Fish Oil every month. Subscribe and enjoy neverending nutritional supportâplus 10% off each order.","symptoms":["Joint pain","Dry eyes","High triglycerides","Inflammation","Poor cardiovascular health"],"category":"Daily Health","type":"supplement"},{"slug":"syphilis-test","price":69,"url":"https://www.everlywell.com/products/syphilis-test/","biomarkers":["Syphilis"],"whatsMeasured":"Two types of syphilis tests can screen for and diagnose syphilis. Syphilis testing can be done with a treponemal test or a non-treponemal test. Both syphilis tests are required to confirm a diagnosis. The Everlywell Syphilis Testâwhich lets you check for syphilis antibodies from the privacy and convenience of homeâis a treponemal test.","whoShouldTake":"<p>The CDC recommends the following groups of people get tested for syphilis:</p>\\n<p><ul><li>Anyone who has had sexual contact with a person known to be infected with syphilis</li>\\n<li>Men having sex with other men (regardless of sexuality) </li>\\n<li>Pregnant women</li>\\n<li>Sexually active people with HIV infections</li>\\n<li>Anyone taking PrEP for HIV prevention </li></ul></p>","faq":"Who should take this test?\\n\\nSyphilis is a bacterial infection caused by the bacterium Treponema pallidum. It\'s spread by sexual contactâincluding vaginal, anal, and oral sexâwith someone who\'s infected. It\'s recommended that anyone who has had sexual contact with a person known to be infected with syphilis, men having sex with other men, pregnant women, sexually active people with HIV, and anyone taking PrEP for HIV prevention should get tested for syphilis.\\n\\n---\\n\\nWhat will my results tell me?\\n\\nThis syphilis test will, within >99% accuracy, tell you whether you have this infectious disease. As with all Everlywell tests, our at-home Syphilis Test kit is delivered in discreet packaging and taken in the privacy of your own home.","symptoms":["Painless sore on genitals","Skin rash","Swollen lymph nodes","Fever","Sore throat","Hair loss in patches","Headaches"],"category":"Sexual Health","type":"at-home"},{"slug":"testosterone-test","price":69,"url":"https://www.everlywell.com/products/testosterone-test/","biomarkers":["Total Testosterone"],"whatsMeasured":"Some of the testosterone in the body circulates freely, but much of it is bound to other proteins in the bloodstream like sex hormone-binding globulin (or SHBG). Testosterone that circulates freely (unbound) is known as free testosterone.\\n\\nTotal testosterone, on the other hand, represents the total amount of testosterone in the blood â both free and bound. So your total testosterone levels should be higher than your free testosterone levels.\\n\\nWhile a free testosterone panel measures your unbound testosterone level, the Everlywell Testosterone Test - Male measures your total testosterone level, which includes all forms of testosterone in the body.","whoSh
1ouldTake":"<p>If your testosterone hormone levels are too high or too low, you may experience a variety of uncomfortable symptoms that feel disruptive to your daily life.</p>\\n\\n\\nBody\\n- Fatigue or feeling tired\\n- Decreased muscle mass\\n- Weight changes\\n- Increased body fat\\n- Hair loss or abnormal hair growth\\n\\n\\nMind\\n- Sleep disturbance\\n- Difficulty concentrating\\n- Depression\\n\\n\\nReproductive\\n- Low libido\\n- Erectile or sexual dysfunction\\n","faq":"Who should take this testosterone test?\\n\\nThe Everlywell testosterone level test helps you check your free testosterone from the convenience of home. It is a first step in understanding why you may be experiencing symptoms of high or low testosterone. Both younger and older men and women can check free testosterone levels with this at-home test (you must be age 18 or above to take this test).\\n\\n---\\n\\nHow much does a testosterone test cost?\\n\\nThe Everlywell at-home Testosterone Test is $69âincluding shipping. There are no hidden fees: we\'re committed to transparent pricing for all tests we offer.\\n\\n---\\n\\nWhat\'s the difference between a total testosterone test and a free testosterone test?\\n\\nSome of the testosterone in the body circulates freely, but much of it is bound to other proteins in the bloodstream like sex hormone-binding globulin (or SHBG). Testosterone that circulates freely (unbound) is known as free testosterone. Total testosterone, on the other hand, represents the total amount of testosterone in the blood â both free and bound.","symptoms":["Low libido","Erectile dysfunction","Fatigue","Loss of muscle mass","Increased body fat","Mood changes","Difficulty concentrating","Low energy"],"category":"Hormone Health","type":"at-home"},{"slug":"thyroid-test","price":149,"url":"https://www.everlywell.com/products/thyroid-test/","biomarkers":["Thyroid-Stimulating Hormone","Thyroid Peroxidase Antibodies","Free T3","Free T4"],"whatsMeasured":"This thyroid panel measures 3 main thyroid hormones plus thyroid peroxidase antibodies. Your test results will measure your levels of 3 main thyroid hormones plus thyroid peroxidase antibodies. These circulating thyroid hormones have an impact on many functions of the body. By measuring the level of each marker, this thyroid function test can help you understand if you may be experiencing thyroid dysfunction.","whoShouldTake":"<p>Changes in thyroid hormone levels can cause hypothyroidism (underactive thyroid) and hyperthyroidism (overactive thyroid). Both conditions can lead to a variety of uncomfortable symptoms in your body.</p>","faq":"Who should take this test?\\n\\nThough a part of the body that many people know little about, the thyroid plays a major part in daily wellness. Both hyperthyroidism and hypothyroidism are cause for concern. Because your thyroid controls much of your metabolism, which plays a vital role in your overall health, it\'s important to monitor thyroid function, as it is estimated that up to twelve percent of the population in the United States will develop thyroid disease during their lifetime.\\n\\n---\\n\\nWhat will my results tell me?\\n\\nThe at-home thyroid test measures free T4, free T3, TSH, and TPO from a small blood spot sample taken with your kit. TSH controls thyroid function in its production of active thyroid hormones, free T4, and free T3, which together control the rate at which your body uses energy.","symptoms":["Fatigue","Weight gain or difficulty losing weight","Hair loss","Dry skin","Feeling cold","Constipation","Depression or mood changes","Irregular menstrual periods","Muscle weakness"],"category":"Hormone Health","type":"at-home"},{"slug":"trichomoniasis-test","price":69,"url":"https://www.everlywell.com/products/trichomoniasis-test/","biomarkers":["Trichomoniasis"],"whatsMeasured":"We measure the presence or absence of trichomoniasis. Your test results will tell you whether or not you\'re infected with trichomoniasis, commonly called \\"trich.\\" If your results are positive or abnormal, you\'ll be able to connect with our independent physician network at no additional cost.","whoSh
1ouldTake":"<p>Anyone with a sexual partner(s) with known trichomoniasis should be tested, as should anyone who has had unprotected sexual contact with a partner whose sexual health status is unknown.</p>\\n\\n<p>Trichomoniasis is the most common curable sexual infection in the U.S., estimated to infect over 2 million people a year.</p>","faq":"Who should take this test?\\n\\nTrichomoniasis is a sexually transmitted infection caused by the parasite Trichomonas vaginalis. It is the most common curable sexual infection in the USA, affecting an estimated 3.7 million people. Individuals who have been diagnosed with Trichomoniasis previously have a 20% chance of getting it again within a few months of initial diagnosis.\\n\\n---\\n\\nHow is trichomoniasis treated?\\n\\nA trichomonas infection is treated with antibiotic medications like metronidazole or tinidazole. If you get a positive result on this test, our independent physician network partner will contact you to schedule a consultation at no additional cost.","symptoms":["Frothy vaginal discharge","Genital itching","Burning during urination","Discomfort during sex","Strong vaginal odor","Genital redness or swelling"],"category":"Sexual Health","type":"at-home"},{"slug":"vitamin-b12-500-mcg","price":15,"url":"https://www.everlywell.com/products/vitamin-b12-500-mcg/","biomarkers":["Ingredients B12","Ingredient Amounts"],"whatsMeasured":"Vitamin B12 Supplements. Our B12 vitamins are vegan and non-GMO, made to support your energy, metabolism, and nervous system function.","whoShouldTake":"","faq":"What are vitamin B12 tablets used for?\\n\\nVitamin B12 is vital to many aspects of your well-being, commonly found in animal meat diets. Those with a plant-based or vegan diet may intake less B12. Taking a supplement is a simple way to gain a daily source of B12.\\n\\n---\\n\\nHow does the vitamin B12 subscription work?\\n\\nBy subscribing through Everlywell, you\'ll receive a 30-day supply of vitamin B12 supplements every month. Sign up to enjoy neverending support and save 10% on your supplements.","symptoms":["Fatigue","Weakness","Memory problems","Vegetarian/vegan diet","Older adult"],"category":"Daily Health","type":"supplement"},{"slug":"vitamin-d-and-inflammation-test","price":99,"url":"https://www.everlywell.com/products/vitamin-d-and-inflammation-test/","biomarkers":["Vitamin D","hs-CRP"],"whatsMeasured":"Inflammation is the body\'s immune response to an irritant. The irritant could be trauma from an injury, chemicals, or an infection. The body responds with pain, swelling, and redness, which are all part of the initial inflammatory response.\\n\\nShort-term inflammation is referred to as acute inflammation and is usually self-limiting. Acute inflammation is often a sign your body is working to fight an infection or heal itself. In contrast, when inflammation persists, or is in response to the body\'s own cells, it is referred to as chronic inflammation.\\n\\nC-reactive protein, or CRP, is a protein that increases in the blood with inflammation. The high-sensitivity CRP blood test (hs-CRP) can detect even small elevations of CRP protein as an indicator of low levels of inflammation in the body.","whoShouldTake":"<p>Vitamin D helps the body use calcium and is essential for strong bones, but if your body is deficient, you may experience higher levels of inflammation and a variety of other symptoms like weakness, joint pain, muscle pain, and fatigue.</p>","faq":"What is inflammation, and how can you test for it?\\n\\nInflammation is the body\'s immune response to an irritant. C-Reactive Protein, or CRP, is a protein that increases in the blood with inflammation. The high-sensitivity CRP test (hs-CRP) can detect even small elevations of CRP protein as an indicator of low levels of inflammation in the body.\\n\\n---\\n\\nWhat will my lab test for inflammation tell me?\\n\\nYour results from our high-sensitivity CRP test will contain your levels of CRP and vitamin D and whether they are low, normal, or high compared to the appropriate reference ranges.","symptoms":["Fatigue","Bone pain","Muscle weakness","Joint pain","Chronic inflammation","Autoimmune conditions","Frequent infections"],"category":"Daily Health","type":"at-home"},{"slug":"vitamin-d3-2000-iu","price":null,"url":"https://www.everlywell.com/products/vitamin-d3-2000-iu/","biomarkers":["Vitamin D3 Ingredients","Ingredient Amounts"],"whatsMeasured":"Vitamin D3 supplement (2000 IU). Supports bone metabolism, muscle function regulation, and immune system modulation.","whoSh
1ouldTake":"","faq":"What is vitamin D?\\n\\nKnown as the \\"sunshine vitamin\\", vitamin D is an organic, fat-soluble nutrient naturally produced in the body. Although it\'s possible to obtain vitamin D from sun exposure and food sources, for certain people, particularly for those who are at risk, it may be difficult to maintain adequate vitamin D levels without supplementation.\\n\\n---\\n\\nWhat is the difference between vitamin D2 and vitamin D3?\\n\\nThere are two forms of vitamin D in the body: vitamin D2 and vitamin D3. Vitamin D3 is considered the \'active\' form of vitamin D. Vitamin D3 comes from animal sources, whereas vitamin D2 is mainly found in plant-based foods. Both forms have been shown to improve vitamin D levels, but vitamin D3 tends to be absorbed more effectively by humans.\\n\\n---\\n\\nHow does the vitamin subscription work?\\n\\nYou\'ll save 10% upfront on your order when you sign up for an Everlywell vitamin subscription. Every month we\'ll send you a 30-day supply (60 gummies) so that you can meet your recommended daily dose without ever having to remember to order a refill.","symptoms":["Limited sun exposure","Fatigue","Bone pain","Muscle weakness","Winter months"],"category":"Daily Health","type":"supplement"},{"slug":"womens-health-test","price":249,"url":"https://www.everlywell.com/products/womens-health-test/","biomarkers":["Estradiol","Progesterone","Luteinizing Hormone","Follicle-Stimulating Hormone","DHEAS","Cortisol","Thyroid-Stimulating Hormone","Free T3","Free T4","Free Testosterone","Thyroid Peroxidase Antibodies"],"whatsMeasured":"We measure 11 biomarkers known to play an important role in your overall health and wellness. Your results will provide detailed information on the 11 biomarkers (10 hormones and 1 antibody) measured and let you know
1whether those levels fall within established ranges for your reproductive stage. Abnormal levels may be causing symptoms that keep you from feeling your best.","whoShouldTake":"<p>Checking in on your hormones can equip you with valuable insights into your overall health. Knowing whether your levels fall within a normal range is the first step to understanding any changes you might experience.</p>\\n\\n<p>This test can be taken and used by people of all genders, though many hormones have much higher levels in people assigned female at birth (AFAB).</p>","faq":"Who should take this test?\\n\\nA woman\'s hormones are constantly changing and the slightest imbalance can change how you feel day to day. A hormonal imbalance can affect the menstrual cycle, mood, metabolism, libido, and sleep. Testing hormones is a critical step in understanding a woman\'s reproductive and general health.\\n\\n---\\n\\nWhat will my results tell me?\\n\\nThis easy-to-use female hormone panel will provide you with your levels of each of the 11 biomarkers (10 hormones and 1 antibody) measured in our Women\'s Health test and whether your levels fall within established normal ranges for your age.","symptoms":["Irregular periods","Heavy or painful periods","Mood swings","Fatigue","Weight changes","Hair loss or thinning","Acne","Hot flashes"],"category":"Hormone Health","type":"at-home"},{"slug":"360-full-body-test","price":null,"url":"https://www.everlywell.com/products/360-full-body-test/","biomarkers":["83 biomarkers total","Hormones","Thyroid markers (TSH, Free T3, Free T4, TPO antibodies)","Heart health markers (Total Cholesterol, LDL, HDL, Triglycerides, hsCRP)","Metabolic markers (HbA1c, Glucose, Insulin, Cortisol)","Vitamins (Vitamin D, Vitamin B12, Folate, Ferritin)","Liver and kidney function","Testosterone","DHEA"],"whatsMeasured":"Comprehensive membership testing 83 biomarkers covering hormones, thyroid, heart health, metabolism, vitamins, and more. Includes personalized dashboard, clinician-reviewed results, follow-up consults, and WellScore tracking.","whoShouldTake":"Anyone looking for a comprehensive health overview, preventive screening, or deeper insight into multiple health areas at once.","faq":"","symptoms":["Fatigue or low energy","Weight changes","Hormonal symptoms","Thyroid concerns","Heart health concerns","Family history of chronic conditions","General health curiosity","Preventive screening","Vitamin deficiencies","Inflammation","Blood sugar concerns","Cholesterol concerns"],"category":"Comprehensive Health","type":"membership"},{"slug":"at-home-std-test","price":null,"url":"https://www.everlywell.com/products/at-home-std-test/","biomarkers":["Chlamydia","Gonorrhea","Syphilis","Trichomoniasis","Hepatitis C","HIV"],"whatsMeasured":"Comprehensive STD panel testing multiple sexually transmitted infections from the privacy of home. Tests for the most common STDs/STIs.","whoShouldTake":"Anyone who is sexually active and wants comprehensive STI screening, or has had unprotected sexual contact.","faq":"","symptoms":["New sexual partner","Unprotected sex","Multiple sexual partners","Unusual discharge","Pain during urination","Genital sores","Routine sexual health screening","No symptoms needed â screening recommended"],"category":"Sexual Health","type":"at-home"},{"slug":"celiac-disease-screening-test","price":null,"url":"https://www.everlywell.com/products/celiac-disease-screening-test/","biomarkers":["Tissue Transglutaminase IgA (tTG-IgA)","Deamidated Gliadin Peptide IgA (DGP-IgA)"],"whatsMeasured":"Screens for celiac disease antibodies. Measures immune markers associated with gluten sensitivity and celiac disease.","whoShouldTake":"Anyone experiencing symptoms of gluten intolerance or with a family history of celiac disease.","faq":"","symptoms":["Bloating after eating gluten","Diarrhea or constipation","Abdominal pain","Fatigue after eating","Skin rashes (dermatitis herpetiformis)","Family history of celiac disease","Suspected gluten intolerance","Nutrient deficiencies","Weight loss"],"category":"Digestive Health","type":"at-home"},{"slug":"chlamydia-gonorrhea-test","price":null,"url":"https://www.everlywell.com/products/chlamydia-gonorrhea-test/","biomarkers":["Chlamydia trachomatis","Neisseria gonorrhoeae"],"whatsMeasured":"Tests specifically for chlamydia and gonorrhea â two of the most common sexually transmitted infections. For targeted STI screening.","whoSh
1ouldTake":"Anyone who has had unprotected sexual contact or wants targeted screening for chlamydia and gonorrhea.","faq":"","symptoms":["Unusual genital discharge","Burning during urination","Pelvic pain","Pain during sex","No symptoms â many cases are asymptomatic","New sexual partner"],"category":"Sexual Health","type":"at-home"},{"slug":"cholesterol-and-lipids-test","price":null,"url":"https://www.everlywell.com/products/cholesterol-and-lipids-test/","biomarkers":["Total Cholesterol","LDL Cholesterol","HDL Cholesterol","Triglycerides"],"whatsMeasured":"Focused cholesterol and lipid panel. Measures key cholesterol markers including LDL, HDL, total cholesterol, and triglycerides for cardiovascular health monitoring.","whoShouldTake":"Anyone interested in monitoring their cholesterol levels, with a family history of high cholesterol, or as part of routine cardiovascular health screening.","faq":"","symptoms":["Family history of high cholesterol","Family history of heart disease","Overweight","Sedentary lifestyle","High-fat diet","Routine cholesterol monitoring"],"category":"Daily Health","type":"at-home"},{"slug":"fit-colon-cancer-screening-test","price":null,"url":"https://www.everlywell.com/products/fit-colon-cancer-screening-test/","biomarkers":["Fecal Immunochemical Test (FIT)","Hemoglobin in stool"],"whatsMeasured":"Fecal immunochemical test (FIT) for colorectal cancer screening. Non-invasive at-home test that detects hidden blood in stool, an early indicator of colorectal issues.","whoShouldTake":"Adults aged 45 and older, anyone with a family history of colorectal cancer, or those seeking a non-invasive colon cancer screening alternative.","faq":"","symptoms":["Age 45 or older","Family history of colorectal cancer","Changes in bowel habits","Blood in stool","Unexplained abdominal pain","Unexplained weight loss","Routine colon cancer screening"],"category":"Daily Health","type":"at-home"},{"slug":"food-sensitivity","price":null,"url":"https://www.everlywell.com/products/food-sensitivity/","biomarkers":["IgG reactivity to 96 foods","Dairy","Grains","Fruits","Vegetables","Meats","Seafood","Nuts","Spices"],"whatsMeasured":"Measures your body\'s IgG antibody reactivity to 96 common foods. Helps identify foods that may be contributing to digestive discomfort, bloating, skin issues, and other symptoms.","whoShouldTake":"Anyone experiencing unexplained digestive issues, bloating, skin problems, or who suspects certain foods may be causing symptoms.","faq":"","symptoms":["Bloating","Gas","Digestive discomfort","Skin issues (acne, rashes, eczema)","Headaches after eating","Fatigue after meals","Stomach pain","Food reaction concerns","Elimination diet support"],"category":"Digestive Health","type":"at-home"},{"slug":"food-sensitivity-comprehensive-test","price":null,"url":"https://www.everlywell.com/products/food-sensitivity-comprehensive-test/","biomarkers":["IgG reactivity to 204 foods","Dairy","Grains","Fruits","Vegetables","Meats","Seafood","Nuts","Spices","Regional and specialty foods"],"whatsMeasured":"Measures your body\'s IgG antibody reactivity to 204 foods â more than double the standard test. For people with varied diets, complex symptoms, or who have already eliminated common trigger foods.","whoShouldTake":"Anyone with complex or persistent food-related symptoms, varied diets, or who has already tried the standard food sensitivity test.","faq":"","symptoms":["Bloating","Gas","Digestive discomfort","Skin issues (acne, rashes, eczema)","Headaches after eating","Fatigue after meals","Varied or international diet","Already eliminated common triggers","Complex digestive issues"],"category":"Digestive Health","type":"at-home"},{"slug":"visby-sexual-health-test","price":149,"url":"https://www.everlywell.com/products/visby-sexual-health-test/","biomarkers":["Chlamydia trachomatis (PCR)","Neisseria gonorrhoeae (PCR)","Trichomonas vaginalis (PCR)"],"whatsMeasured":"The Visby Rapid PCR At-Home Female STD Test is the first FDA-authorized at-home PCR test for women\'s sexual health. It detects three of the most common and curable STIs â chlamydia, gonorrhea, and trichomoniasis â using a self-collected vaginal swab sample. The single-use, fully-integrated device delivers lab-quality PCR results in 30 minutes at home, with no lab visit or return shipping needed. Results are read via the Visby Medical App.","whoSh
1ouldTake":"This test is for women aged 14 and older who are sexually active and want to know their STI status. The CDC recommends STD testing every 3-12 months depending on risk category. This test is especially useful for women experiencing symptoms such as unusual discharge, burning during urination, or discomfort during sex, as well as those who simply want peace of mind.","faq":"What is the Visby Rapid PCR At-Home Female STD Test?\\n\\nThis is a single-use, fully-integrated, rapid, automated polymerase chain reaction (PCR) in-vitro diagnostic test for the qualitative detection and differentiation of DNA from chlamydia, gonorrhea, and trichomoniasis infections.\\n\\n---\\n\\nHow accurate is this test?\\n\\nIn a multi-site clinical study with 2,293 women, the test correctly identified 97.2% of positive chlamydia specimens, 100% of positive gonorrhea specimens, and 97.8% of positive trichomoniasis specimens.\\n\\n---\\n\\nCan I use my HSA/FSA to pay for the test?\\n\\nYour Everlywell purchase can be submitted for reimbursement through HSA/FSA benefits. Check with your specific HSA/FSA benefits coordinator for clarification on requirements.","symptoms":["Unusual vaginal discharge","Burning during urination","Discomfort during sex","Pelvic pain","Genital itching or irritation","No symptoms â many STIs are asymptomatic","Routine sexual health screening","New sexual partner"],"category":"Sexual Health","type":"at-home"},{"slug":"oraquick-at-home-hiv-test-kit","price":49,"url":"https://www.everlywell.com/products/oraquick-at-home-hiv-test-kit/","biomarkers":["HIV-1 antibodies","HIV-2 antibodies"],"whatsMeasured":"The OraQuick At-Home HIV Test is an FDA-approved, over-the-counter oral swab test for HIV-1 and HIV-2. It works by detecting your body\'s antibody response (Immunoglobulin G) to the HIV virus using an oral fluid sample â no blood required. Results are available in 20 minutes. A positive result is preliminary and follow-up confirmatory testing is needed.","whoShouldTake":"The CDC recommends everyone between the ages of 15 and 65 should be screened at least once for HIV. More frequent screening is recommended for people who are sexually active with new or multiple partners, men who have sex with other men, those who have had unprotected sex with someone at high risk of HIV, people who share or have shared injection drug needles, or anyone concerned about potential exposure.","faq":"Who should take this test?\\n\\nHIV can infect anyone regardless of age, race, or sexual orientation. The CDC recommends that everyone between the ages of 15 and 65 should be screened at least once for HIV, with more frequent screening for those at higher risk.\\n\\n---\\n\\nHow accurate is this test?\\n\\nIn a clinical study with 4,999 participants, 99.9% of negative test takers correctly reported a negative result, while 91.7% of positive test takers correctly reported a positive result. A positive result is preliminary and does not necessarily mean you have HIV â confirmatory testing is needed.\\n\\n---\\n\\nHow is HIV treated?\\n\\nThere\'s no cure for HIV, but medication can slow the damage the virus causes by lowering the amount of HIV in your blood. Recent studies show that HIV treated to an undetectable level is also likely untransmittable.","symptoms":["Muscle aches","Chills","Fatigue","Fever","Night sweats","Sore throat","Swollen lymph nodes","Rash","Concerned about HIV exposure","New sexual partner","Multiple sexual partners","Routine HIV screening"],"category":"Sexual Health","type":"at-home"}]}'),f=n(5404);const y="https://eva-search.everlywell.workers.dev",v=15e3,w=g.Ik({products:g.YO(g.Yj())}),b=p.Z,x=new Map(b.map((e=>[e.slug,e])));function E(e){var t,n,a;const o=null===(t=e.cardDescription)||void 0===t?void 0:t.trim();if(o)return o;const i=(null!==(n=e.biomarkers)&&void 0!==n?n:[]).filter((e=>!e.toLowerCase().includes("ingredients")&&!e.toLowerCase().includes("ingredient amounts"))),r=null!==(a=e.symptoms)&&void 0!==a?a:[],s=[];return i.length>0&&s.push(`Tests ${i.slice(0,4).join(", ")}`),r.length>0&&s.push(`For ${r.slice(0,3).join(", ").toLowerCase()}`),s.length>0?`${s.join(". ")}.`:""}const S=new Map(b.map((e=>[e.slug,E(e)]))),k=[];const T=3;
1function C(e,t,n){const a=new RegExp(`(?<![<\\w])(${o=t,o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\w*)`,"gi");var o;let i=0;return{text:e.replace(a,(e=>i>=n?e:(i+=1,`<mark>${e}</mark>`))),used:i}}function M(e,t){const n=t.toLowerCase().split(/\s+/).filter((e=>e.length>2)).sort(((e,t)=>t.length-e.length));let a=e,o=T;for(const i of n){if(o<=0)break;const e=C(a,i,o);a=e.text,o-=e.used}return a}var I=n(57400),A=n(69936),D=n(98464),N=n(20760),H=n(70321),z=n(16716),R=n(66056),L=n(43018);const F=6,j=4,O=e=>e.includes("360-full-body-test"),P=e=>({opacity:0,animation:"searchCardReveal 0.4s ease-out forwards",animationDelay:60+80*e+"ms","@keyframes searchCardReveal":{"0%":{opacity:0,transform:"translateY(12px)"},"100%":{opacity:1,transform:"translateY(0)"}},"@media (prefers-reduced-motion: reduce)":{animation:"none",opacity:1,transform:"none"}});function B({searchResults:e,onClose:t}){const n=(0,A.Q)(),{labPriceFor:o}=(0,l.K)(),{advertisedPromos:i}=(0,m.A)(),{0:r,1:h}=(0,c.useState)(0),[g]=(0,a.Ub)("(max-width: 767px)"),p=g?j:F,{applyToProductList:f,applyToDisplayName:y}=(0,u.ey)(e.map((e=>e.slug))),v=(0,c.useMemo)((()=>f(e,(e=>e.slug)).filter((e=>{if("everywhere"===e.kind)return!!(0,s.dQ)(e.slug);if(O(e.slug))return!0;const t=n[e.slug];return!!t&&!t.outOfStock}))),[e,n,f]),w=v.length,b=Math.ceil(w/p),x=v.slice(r*p,(r+1)*p),E=(0,L.A)(x.map((e=>{var t,n;return"everywhere"!==e.kind?null:null!==(t=null===(n=(0,s.dQ)(e.slug))||void 0===n?void 0:n.name)&&void 0!==t?t:null})),r),S=(0,c.useRef)(null);return(0,c.useEffect)((()=>{if(0===w)return;const t=e.map((e=>e.slug)).join(",");if(S.current===t)return;S.current=t;const a=v.map((e=>{if("everywhere"===e.kind){var t;const n=(0,s.dQ)(e.slug);return{slug:e.slug,...n?{name:(0,s.QC)(n),price:null!==(t=o(n))&&void 0!==t?t:void 0,product_type:"everywhere"}:{}}}const a=n[e.slug];return{slug:e.slug,...a?{id:a.productId,variant_id:a.variantId,name:a.displayName,price:a.price}:{}}}));(0,d.IU)("Eva Search Recommended Products",{products:a,experience:"search",result_count:w})}),[w,v,o,n,e]),0===w?null:c.createElement(a.az,{width:"100%","data-element":"Box","data-component":"SearchResultsGrid","data-source-file":"EvaTraditionalSearchModal.tsx"},c.createElement(a.EY,{fontFamily:"DM Sans",fontSize:"sm",color:"tints.darkGrey",marginBottom:4,"data-element":"Text","data-source-file":"EvaTraditionalSearchModal.tsx"},w," result",1!==w?"s":""," found"),c.createElement(a.az,{display:"grid",gridTemplateColumns:["1fr","repeat(2, 1fr)","repeat(3, 1fr)"],gap:[3,4],width:"100%",sx:{"& > *":{minWidth:0},gridAutoRows:["auto","1fr"]},"data-element":"Box","data-source-file":"EvaTraditionalSearchModal.tsx"},x.map(((e,o)=>{if("everywhere"===e.kind){const n=(0,s.dQ)(e.slug);return n?c.createElement(a.az,{key:e.slug,height:"100%",sx:P(o)},c.createElement(L.h,{test:n,description:e.description,onCardClick:t,imageIndex:E[o]})):null}if(O(e.slug))return c.createElement(a.az,{key:e.slug,height:"100%",maxWidth:"380px",sx:P(o)},c.createElement(R.A,{description:e.description,advertisedPromos:i}));const r=n[e.slug];return r?c.createElement(a.az,{key:e.slug,height:"100%",sx:P(o)},c.createElement(z.A,{product:{...r,displayName:y(r.slug,r.displayName)},advertisedPromos:i,description:e.description,experience:"search",onCardClick:t})):null}))),b>1&&c.createElement(a.so,{justifyContent:"center",gap:2,marginTop:8},Array.from({length:b},((e,t)=>c.createElement(a.$n,{key:t,type:"button",size:"sm",variant:t===r?"solid":"ghost",onClick:()=>h(t),minWidth:"36px",height:"36px",borderRadius:"full",backgroundColor:t===r?"eggplant.base":"transparent",color:t===r?"tints.white":"eggplant.base",_hover:{backgroundColor:t===r?"eggplant.base":"tints.lightCream"},fontFamily:"DM Sans",fontSize:"sm"},t+1)))))}function W({inputValue:e,isConnecting:t,isSearching:n,hasAIMode:r,onInputChange:s,onSubmit:l,onSwitchToAI:u}){return c.createElement(a.so,{as:"form",onSubmit:l,width:"100%",maxWidth:"680px",alignItems:"center",paddingLeft:"20px",paddingRight:"8px",paddingY:"8px",borderRadius:"20px",backgroundColor:"tints.white",boxShadow:"0 4px 35px rgba(0, 0, 0, 0.08)",gap:"8px","data-element":"Flex","data-component":"SearchBarForm","data-source-file":"EvaTraditionalSearchModal.tsx"},c.createElement(a.In,{as:o.e,boxSize:"20px",color:"tints.darkGrey",flexShrink:0,"data-element":"Icon","data-source-file":"EvaTraditionalSearchModal.tsx"}),c.createElement(a.s6,{as:"label",htmlFor:"eva-search-input","data-element":"VisuallyHidden","data-source-file":"EvaTraditionalSearchModal.tsx"},"Search"),c.createElement(a.pd,{id:"eva-search-input",value:e,onCh
1ange:e=>s(e.target.value),placeholder:"Search tests and products...",flex:1,border:"none",outline:"none",boxShadow:"none",padding:"0",margin:"0",backgroundColor:"transparent",fontFamily:"DM Sans",fontSize:"1rem",fontWeight:"400",lineHeight:"140%",color:"tints.black",height:"auto",autoComplete:"off",autoFocus:!0,sx:{fontFeatureSettings:"'liga' off, 'clig' off",height:"auto !important"},"data-element":"Input","data-source-file":"EvaTraditionalSearchModal.tsx"}),r&&u&&c.createElement(a.$n,{type:"button",onClick:()=>{(0,d.IU)("Clicked AI Mode",{has_pending_query:e.trim().length>0,pending_query:e.trim()||void 0}),u(e)},display:"flex",height:"36px",paddingX:"14px",alignItems:"center",gap:"6px",borderRadius:"18px",backgroundColor:"eggplant.wash",color:"eggplant.base",fontFamily:"DM Sans",fontSize:"sm",fontWeight:"medium",_hover:{backgroundColor:"rgba(116, 41, 116, 0.10)"},flexShrink:0,whiteSpace:"nowrap"},c.createElement(a.In,{as:i.R,boxSize:"16px",weight:"fill"}),"AI Mode"),c.createElement(a.$n,{type:"submit",variant:"ghost",display:"flex",width:"36px",height:"36px",minWidth:"36px",minHeight:"36px",padding:"8px",justifyContent:"center",alignItems:"center",borderRadius:"12px",backgroundColor:"eggplant.base",_disabled:{backgroundColor:"tints.lightGrey"},"aria-label":"Search",isDisabled:n||0===e.trim().length,flexShrink:0,"data-element":"Button","data-source-file":"EvaTraditionalSearchModal.tsx"},c.createElement(a.In,{as:o.e,"aria-hidden":"true",color:n||0===e.trim().length?"tints.uiGrey":"tints.white",boxSize:"16px",weight:"bold","data-element":"Icon","data-source-file":"EvaTraditionalSearchModal.tsx"})))}function _(){return c.createElement(a.so,{justifyContent:"center",alignItems:"center",paddingY:16,flexDirection:"column",gap:4,"data-element":"Flex","data-component":"SearchLoadingIndicator","data-source-file":"EvaTraditionalSearchModal.tsx"},c.createElement(a.az,{width:"40px",height:"40px",borderRadius:"full",border:"3px solid",borderColor:"eggplant.wash",borderTopColor:"eggplant.base",sx:{animation:"spin 0.8s linear infinite","@keyframes spin":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}},"data-element":"Box","data-source-file":"EvaTraditionalSearchModal.tsx"}),c.createElement(a.EY,{fontFamily:"DM Sans",color:"tints.darkGrey",fontSize:"md","data-element":"Text","data-source-file":"EvaTraditionalSearchModal.tsx"},"Searching..."))}function Y({inputValue:e,isConnecting:t,isSearching:n,hasAIMode:o,onInputChange:i,onSubmit:r,onSwitchToAI:s,onTopicSelect:l}){return c.createElement(a.so,{minHeight:"100svh",width:"100%",paddingX:[4,32,48],paddingTop:["56px",32],paddingBottom:[4,32],flexDirection:"column",alignItems:"center",justifyContent:["flex-start","center"],textAlign:"center",gap:0,"data-element":"Flex","data-component":"SearchWelcomeScreen","data-source-file":"EvaTraditionalSearchModal.tsx"},c.createElement(a.az,{width:"100%",display:"flex",justifyContent:"center","data-element":"Box","data-source-file":"EvaTraditionalSearchModal.tsx"},c.createElement(W,{inputValue:e,isConnecting:t,isSearching:n,hasAIMode:o,onInputChange:i,onSubmit:r,onSwitchToAI:s,"data-element":"SearchBarForm","data-source-file":"EvaTraditionalSearchModal.tsx"})),c.createElement(a.az,{width:"100%",display:"flex",justifyContent:"center",marginTop:"16px","data-element":"Box","data-source-file":"EvaTraditionalSearchModal.tsx"},c.createElement(N.A,{onSelect:l,"data-element":"EvaTopicSuggestions","data-source-file":"EvaTraditionalSearchModal.tsx"})),c.createElement(a.az,{width:"100%",display:"flex",justifyContent:"center",marginTop:["32px","80px"],"data-element":"Box","data-source-file":"EvaTraditionalSearchModal.tsx"},c.createElement(H.A,{"data-element":"EvaTrustBar","data-source-file":"EvaTraditionalSearchModal.tsx"})))}function U({isOpen:e=!0,onClose:t,hasAIMode:n=!1,onSwitchToAI:o,initialQuery:i,location:l}){const u=(0,D.l)(e);(0,I.t)({onClose:t});const{0:m,1:g}=(0,c.useState)(null!=i?i:""),p=(0,h.k)(),{query:b,results:E,isSearching:T,isConnecting:C,error:A,submitQuery:N}=function(e=k){const{0:t,1:n}=(0,c.useState)({query:"",results:[],isSearching:!1,isConnecting:!1,error:null}),a=(0,c.useRef)(null);return{...t,submitQuery:(0,c.useCallback)((async t=>{var o;const i=t.trim();if(!i)return;if(null===(o=a.current)||void 0===o||o.abort(),n((e=>({...e,query:i,results:[],isSearching:!0,isConnecting:!1,error:null}))),!y)return void n((e=>({...e,isSearching:!1,error:"Search is not configured."})));const r=new AbortController;a.current=r;const l=setTimeout((()=>r.abort()),v),c=performance.now();try{const t=await fetch(y,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:i,available_everywhere_products:e}),signal:r.signal});clearTimeout(l);const a=Math.round(performance.now()-c);if(!t.ok)throw(0,d.IU)("Eva Search Response",{query:i,latency_ms:a,status:"error",error_code:t.status,result_count:0}),new Error(`API error: ${t.status}`);const o=await t.json(),u=(0,f.E)(w,o);if(u.isOk()){const t=u.value.products.flatMap((t=>{var n;if(x.has(t))return[{slug:t,kind:"product",description:M(null!==(n=S.get(t))&&void 0!==n?n:"",i)}];const a=(0,s.dQ)(t);return a&&e.includes(t)?[{slug:t,kind:"everywhere",description:M(a.desc,i)}]:[]}));(0,d.IU)("Eva Search Response",{query:i,latency_ms:a,status:"success",result_count:t.length,result_slugs:t.map((e=>e.slug))}),n((e=>({...e,results:t,isSearching:!1})))}else(0,d.IU)("Eva Search Response",{query:i,latency_ms:a,status:"parse_error",result_count:0}),n((e=>({...e,isSearching:!1,error:"Failed to parse search results."})))}catch(A){clearTimeout(l),A instanceof DOMException&&"AbortError"===A.name?((0,d.IU)("Eva Search Response",{query:i,latency_ms:Math.round(performance.now()-c),status:"timeout",result_count:0}),n((e=>({...e,isSearching:!1,error:"Search timed out. Please try again."})))):n((e=>({...e,isSearching:!1,error:"Something went wrong. Please try again."})))}}),[e]),reset:(0,c.useCallback)((()=>{var e;null===(e=a.current)||void 0===e||e.abort(),a.current=null,n({query:"",results:[],isSearching:!1,isConnecting:!1,error:null})}),[])}}(p),H=c.useRef(!1);c.useEffect((()=>{i&&i.trim()&&!H.current&&u&&(H.current=!0,(0,d.IU)("Sent Eva Traditional Search Query",{query:i.trim(),experience:"search",...l?{location:l}:{}}),N(i.trim()))}),[i,u,N,l]);const z=(0,c.useCallback)((e=>{e.preventDefault();const t=m.trim();t&&((0,d.IU)("Sent Eva Traditional Search Query",{query:t,experience:"search",...l?{location:l}:{}}),N(t))}),[m,N,l]),R=(0,c.useCallback)((e=>{g(e),(0,d.IU)("Sent Eva Traditional Search Query",{query:e,experience:"search",source:"suggestion_chip",...l?{location:l}:{}}),N(e)}),[N,l]);if(!u)return null;const L=!!b||T||!!A,F=E.length>0,j=!(T||F||!b||A);return c.createElement(a.az,{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:2e3,height:"calc(100vh-32px)",width:"100vw",background:"eggplant.wash",overflow:"hidden",display:"flex",flexDirection:"column",alignItems:"center",role:"dialog","aria-modal":"true","aria-label":"Search","data-element":"Box","data-component":"EvaTraditionalSearchModal","data-source-file":"EvaTraditionalSearchModal.tsx"},c.createElement(a.az,{position:"fixed",top:"0 !important",zIndex:1,backgroundColor:"eggplant.wash",height:"32px",width:"100%","data-element":"Box","data-source-file":"EvaTraditionalSearchModal.tsx"}),c.createElement(a.$n,{type:"button",onClick:t,variant:"ghost",position:"absolute",top:["0.625rem","1.25rem"],right:["0.625rem","1.25rem"],width:"2rem",height:"2rem",minWidth:"2rem",minHeight:"2rem",padding:"0.5rem",borderRadius:"1.26875rem",backgroundColor:"tints.white",color:"eggplant.base",zIndex:2001,_hover:{filter:"brightness(0.97)"},_active:{filter:"brightness(0.94)"},"aria-label":"Close Search","data-element":"Button","data-source-file":"EvaTraditionalSearchModal.tsx"},c.createElement(a.In,{as:r.X,"aria-hidden":"true",color:"eggplant.base",boxSize:16,"data-element":"Icon","data-source-file":"EvaTraditionalSearchModal.tsx"})),L?c.createElement(a.so,{flexDirection:"column",alignItems:"center",width:"100%",maxWidth:"1200px",paddingX:[4,6],paddingTop:["56px","100px"],paddingBottom:6,flex:1,overflowY:"auto",sx:{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#E8E8E2",borderRadius:"2px"}}},c.createElement(a.az,{width:"100%",maxWidth:"680px",marginBottom:6,flexShrink:0},c.createElement(W,{inputValue:m,isConnecting:C,isSearching:T,hasAIMode:n,onInputChange:g,onSubmit:z,onSwitchToAI:o})),T&&c.createElement(_,null),A&&c.createElement(a.so,{justifyContent:"center",alignItems:"center",paddingY:8,flexDirection:"column",gap:3},c.createElement(a.EY,{fontFamily:"DM Sans",color:"red.500",fontSize:"md",textAlign:"center"},A)),j&&c.createElement(a.so,{justifyContent:"center",alignItems:"center",paddingY:8,flexDirection:"column",gap:3},c.createElement(a.EY,{fontFamily:"DM Sans",color:"tints.darkGrey",fontSize:"lg",textAlign:"center"},"No results found for â",b,"â"),c.createElement(a.EY,{fontFamily:"DM Sans",color:"tints.uiGrey",fontSize:"md",textAlign:"center"},"Try a different search term")),F&&c.createElement(B,{searchResults:E,onClose:t})):c.createElement(Y,{inputValue:m,isConnecting:C,isSearching:T,hasAIMode:n,onInputChange:g,onSubmit:z,onSwitchToAI:o,onTopicSelect:R}))}},16716:function(e,t,n){n.d(t,{A:function(){return y}});var a=n(45574),o=n(64563),i=n(28455),r=n(59663),s=n(21),l=n(92597),c=n(64810),d=n(32532),u=n(96540),m=n(31918),h=n(52218),g=n(55746),p=n(6456);const f=e=>(e=>e===p.F0?`/${p.F0}`:`/products/${e}`)(e);function y({product:e,advertisedPromos:t,description:n,experience:p="conversation",onCardClick:y}
1){var v,w,b,x,E,S;const k=(0,h.L)(e.productId,t),T=k&&(0,h.i4)(e.productId,k,e.promotionable),C=(0,u.useMemo)((()=>n?(0,g.K)(n):""),[n]),M=null===(v=e.contentfulProduct001)||void 0===v||null===(w=v.metadata)||void 0===w?void 0:w.context,I=null==M?void 0:M.productCtaUrl,A=(0,u.useMemo)((()=>{var t;return null!==(t=null==M?void 0:M.url)&&void 0!==t?t:f(e.slug)}),[null==M?void 0:M.url,e.slug]),D=(0,u.useMemo)((()=>({id:e.productId,variant_id:e.variantId,slug:e.slug,name:e.displayName,price:e.price,url:A})),[e,A]),N=(0,u.useCallback)((()=>{(0,m.IU)("Added Eva Search Product to Cart",{product:D,experience:p})}),[D,p]),H=(0,u.useCallback)((()=>{I&&((0,m.IU)("Eva Product Card PDP CTA Clicked",{product:D,experience:p}),(0,c.navigate)(I).then((()=>null==y?void 0:y())))}),[D,p,y,I]),z=I?u.createElement(a.$n,{"data-testid":"eva-pdp-link-button",size:"sm",minWidth:["100px","120px"],height:["32px","40px"],backgroundColor:"eggplant.base",color:"white",fontWeight:"medium",_hover:{backgroundColor:"violet.dark"},onClick:H},null!==(b=null==M?void 0:M.productCtaLabel)&&void 0!==b?b:"Learn more"):u.createElement(o.A,{product:e,clickAnalyticsData:{label:`Eva ${"search"===p?"Search":"Conversation"} - Add to cart`,experience:p},onClick:N});return u.createElement(a.az,{height:"100%",sx:{'& [data-testid="pip-add-to-cart-button"]':{backgroundColor:"eggplant.base !important",_hover:{backgroundColor:"violet.dark !important"}}},"data-element":"Box","data-component":"EvaProductCard","data-source-file":"EvaProductCard.tsx"},u.createElement(s.A,{handleOnClick:()=>{(0,m.zS)(e.slug),(0,m.IU)("Eva Product Card Clicked",{product:D,experience:p}),null==y||y()},variant:"default",tag:u.createElement(a.az,{display:["none","flex"],gap:"0.5",alignItems:"center"},u.createElement(l.Yo,{product:e,activePromoForProduct:T?k:void 0})),image:u.createElement(u.Fragment,null,u.createElement(a.az,{display:["block","none"],height:"100%"},(null==e||null===(x=e.boxImage)||void 0===x?void 0:x.gatsbyImageData)&&u.createElement(d.G,{image:e.boxImage.gatsbyImageData,alt:"",imgStyle:{objectFit:"contain"},style:{height:"100%"}})),u.createElement(a.az,{display:["none","block"],height:"100%"},null!=e&&null!==(E=e.productCardImage)&&void 0!==E&&E.gatsbyImageData?u.createElement(d.G,{image:e.productCardImage.gatsbyImageData,alt:"",imgStyle:{objectFit:"contain"},style:{height:"100%"}}):null!=e&&null!==(S=e.boxImage)&&void 0!==S&&S.gatsbyImageData?u.createElement(d.G,{image:e.boxImage.gatsbyImageData,alt:"",imgStyle:{objectFit:"contain"},style:{height:"100%"}}):null)),pricing:u.createElement(i.A,{dollarAmount:e.price}),pricingOverride:T?u.createElement(r.A,{price:e.price,promo:k,productId:e.productId,promotionable:e.promotionable,subscribeSelected:!1,isTextReduced:!0,isOutOfStock:e.outOfStock,promoText:k?void 0:e.promoText}):null,cta:z,linkTo:A,"data-element":"ProductCardV2","data-source-file":"EvaProductCard.tsx"},u.createElement(a.az,{display:["flex","none"],marginBottom:2,gap:"0.5",alignItems:"center","data-element":"Box","data-source-file":"EvaProductCard.tsx"},u.createElement(l.Yo,{product:e,activePromoForProduct:T?k:void 0,"data-element":"CardTags","data-source-file":"EvaProductCard.tsx"})),u.createElement(a.EY,{fontSize:["lg","3xl"],color:"black",fontWeight:"medium",marginY:"2",textAlign:["left","center"],"data-element":"Text","data-source-file":"EvaProductCard.tsx"},e.displayName),C?u.createElement(a.az,{fontSize:"sm",color:a.w4.colors.tints.darkGrey,textAlign:["left","center"],dangerouslySetInnerHTML:{__html:C}}):u.createElement(a.EY,{fontSize:"sm",color:a.w4.colors.tints.darkGrey,textAlign:["left","center"]},e.shortDescription)))}},66056:function(e,t,n){n.d(t,{A:function(){return m}});var a=n(45915),o=n(51147),i=n(45574),r=n(6205),s=n(96540),l=n(6456),c=n(52218),d=n(55746),u=n.p+"static/everlywell360-be46ba1ab9c50b7ca91353e72b68f2d6.png";function m({description:e,advertisedPromos:t}){const n=(0,s.useMemo)((()=>e?(0,d.K)(e):""),[e]),m=(0,s.useMemo)((()=>null!=t&&t.length?(0,c.L)(l._3.PRODUCT_ID,t):void 0),[t]);return s.createElement(i.N_,{href:"/everlywell-360-quiz",borderRadius:"2xl",padding:2,backgroundColor:"tints.cream",_hover:{textDecoration:"none",backgroundColor:"tints.darkCream",border:"1px solid",borderColor:"tints.white",boxShadow:"lg"},border:"1px solid",borderColor:"tints.cream",height:"100%",display:"flex",flexDirection:["row","column"],gap:[3,0],alignItems:["center","stretch"],width:"100%","data-element":"Link","data-component":"Everlywell360ProductCard","data-source-file":"Everlywell360ProductCard.tsx"},s.createElement(a.s,{flex:[2,1],justifyContent:"center",alignItems:"center",backgroundColor:"tints.lightCream",borderRadius:"xl",height:["100%","230px"],minHeight:["120px","230px"],maxWidth:["126px","none"],minWidth:0,padding:[3,6],"data-element":"Flex","data-source-file":"Everlywell360ProductCard.tsx"},s.createElement(o._,{src:u,alt:"Everlywell 360",objectFit:"contain",maxWidth:"100%",maxHeight:["100px","185px"],"data-element":"Image","data-source-file":"Everlywell360ProductCard.tsx"})),s.createElement(a.s,{flex:["5","1"],flexDirection:"column",justifyContent:"space-between",paddingX:[0,2],paddingTop:[0,2],minWidth:0,"data-element":"Flex","data-source-file":"Everlywell360ProductCard.tsx"},s.createElement(i.az,{margin:[null,"auto"],paddingTop:[2,0],"data-element":"Box","data-source-file":"Everlywell360ProductCard.tsx"},s.createElement(i.EY,{fontSize:["lg","3xl"],color:"black",fontWeight:"medium",marginY:"2",textAlign:["left","center"],"data-element":"Text","data-source-file":"Everlywell360ProductCard.tsx"},"Everlywell 360"),n?s.createElement(i.az,{fontSize:"sm",color:"tints.darkGrey",textAlign:["left","center"],dangerouslySetInnerHTML:{__html:n}}):s.createElement(i.EY,{fontSize:"sm",color:"tints.darkGrey",textAlign:["left","center"]},"83 biomarkers. One test. A lifetime of insights.")),s.createElement(a.s,{justifyContent:"space-between",alignItems:"center",padding:[null,2],marginTop:[3,0],gap:2,"data-element":"Flex","data-source-file":"Everlywell360ProductCard.tsx"},m?s.createElement(i.az,{flex:1,minWidth:0},s.createElement(r.A,{price:l._3.BASE_PRICE,promo:m,productId:l._3.PRODUCT_ID,promotionable:!0,subscribeSelected:!1,isTextReduced:!0})):s.createElement(i.az,null),s.createElement(i.$n,{height:["32px","40px"],fontSize:"md",fontWeight:"medium",size:"sm",minWidth:["100px","120px"],backgroundColor:"eggplant.base",color:"white",_hover:{backgroundColor:"violet.dark"},flexShrink:0,"data-element":"Button","data-source-file":"Everlywell360ProductCard.tsx"},"Get started"))))}},43018:function(e,t,n){n.d(t,{A:function(){return C},h:function(){return I}});var a=n(51147),o=n(45574),i=n(24751),r=n(17669),s=n(28455),l=n(21),c=n(92597),d=n(64810),u=n(96540),m=n(31918),h=n(17192),g=n(55746),p=n.p+"static/everywhere-lab-visit-2-4c7207c241ae3383ede93b36b822582f.jpg",f=n.p+"static/everywhere-lab-visit-3-f05150c9c66406e45255e793dc58cb52.jpg",y=n.p+"static/everywhere-lab-visit-4-5a8953716126d1a4ddf76a032f780d16.jpg",v=n.p+"static/everywhere-lab-visit-5-d1ef2f5b7a5863382eed54b29e968a6a.jpg",w=n.p+"static/everywhere-lab-visit-6-84fc325d09fcf290a6d863552638692d.jpg",b=n.p+"static/everywhere-lab-visit-5293c7da2134f7baafa91e6dfedeb77b.jpg",x=n.p+"static/everywhere-lockup-8c9bfa5b0ee3c094097c3f087e0c7e13.png";const E=[b,p,f,y,v,w],S=["female","female","male","female","male","male"],k=/\b(pregnan\w*|prenatal|maternal|ovarian|ovulation|cervix|cervical|menopaus\w*|menstrual|women[â']?s fertility|female fertility)\b/i,T=/\b(vasectomy|prostate|psa|semen|testicular|men[â']?s fertility|male fertility)\b/i,C=(e,t)=>{const n=Array.from({length:E.length},((e,n)=>(n+t)%E.length)),a=e.map((()=>{})),o=t=>{e.forEach(((e,o)=>{if(!e||(e=>k.test(e)?"female":T.test(e)?"male":"unscoped")(e)!==t)return;const i="unscoped"===t?0:n.findIndex((e=>S[e]===t));i<0||(a[o]=n.splice(i,1)[0])}))};return o("female"),o("male"),o("unscoped"),e.forEach(((e,t)=>{e&&void 0===a[t]&&(a[t]=n.shift())})),a};function M({imageIndex:e}){const t=E[e%E.length];return u.createElement(o.az,{position:"relative",width:"100%",height:"100%","data-element":"Box","data-component":"LabVisitImage","data-source-file":"EverywhereSearchProductCard.tsx"},u.createElement(a._,{src:t,alt:"In-person lab visit",position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover","data-element":"Image","data-source-file":"EverywhereSearchProductCard.tsx"}),u.createElement(a._,{src:x,alt:"",display:["none","block"],position:"absolute",bottom:"10px",left:"50%",transform:"translateX(-50%)",width:"66%",maxWidth:"180px",filter:"drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18))","data-element":"Image","data-source-file":"EverywhereSearchProductCard.tsx"}))}function I({test:e,description:t,onCardClick:n,imageIndex:a=0,experience:p="search"}){const{labPriceFor:f,reviewFee:y}=(0,r.K)(),v=(0,i.QC)(e),w=(0,i.Tb)(e),b=(0,i.Ae)(e.name),x=f(e),E=(0,u.useMemo)((()=>(0,g.K)(t)),[t]),S=e=>{(0,m.zS)(w),(0,m.IU)("Eva Product Card Clicked",{product:{slug:w,name:v,price:x,url:b},product_type:"everywhere",experience:p,source:e})};if(null===x||null===y)return null;
1const k=String(Math.round(x));return u.createElement(l.A,{handleOnClick:()=>{S("card"),n()},linkTo:b,linkAriaLabel:`${v}. ${e.desc}`,variant:"default",fullBleedImage:!0,image:u.createElement(M,{imageIndex:a}),tag:u.createElement(o.az,{display:["none","flex"],gap:"0.5",alignItems:"center"},u.createElement(c.zZ,null,h.m5)),pricing:u.createElement(o.az,{paddingBottom:[2,0]},u.createElement(s.A,{dollarAmount:k}),u.createElement(o.EY,{fontSize:"sm",color:"tints.darkGrey",lineHeight:"1"},"+ ",(0,i.hk)(y)," review")),cta:u.createElement(o.$n,{type:"button",size:"sm",minWidth:["100px","120px"],height:["32px","40px"],backgroundColor:"eggplant.base",color:"white",fontWeight:"medium",_hover:{backgroundColor:"violet.dark"},onClick:()=>{S("cta"),(0,d.navigate)(b).then(n)}},"Order this test"),"data-element":"ProductCardV2","data-component":"EverywhereSearchProductCard","data-source-file":"EverywhereSearchProductCard.tsx"},u.createElement(o.az,{display:["flex","none"],marginBottom:2,gap:"0.5",alignItems:"center","data-element":"Box","data-source-file":"EverywhereSearchProductCard.tsx"},u.createElement(c.zZ,{"data-element":"ProductCardBadge","data-source-file":"EverywhereSearchProductCard.tsx"},h.m5)),u.createElement(o.EY,{fontSize:["lg","3xl"],color:"black",fontWeight:"medium",marginY:"2",textAlign:["left","center"],"data-element":"Text","data-source-file":"EverywhereSearchProductCard.tsx"},v),u.createElement(o.az,{fontSize:"sm",color:o.w4.colors.tints.darkGrey,textAlign:["left","center"],dangerouslySetInnerHTML:{__html:E},"data-element":"Box","data-source-file":"EverywhereSearchProductCard.tsx"}))}},32729:function(e,t,n){n.d(t,{k:function(){return r}});var a=n(24751),o=n(17669),i=n(96540);function r(){const{availableTests:e}=(0,o.K)();return(0,i.useMemo)((()=>e.map(a.Tb)),[e])}},57400:function(e,t,n){n.d(t,{t:function(){return o}});var a=n(96540);function o({onClose:e}){(0,a.useEffect)((()=>{const e=document.body.style.overflow,t=document.documentElement.style.overflow,n=document.body.style.position,a=document.body.style.top,o=document.body.style.width,i=window.scrollY;return document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${i}px`,document.body.style.width="100%",()=>{document.body.style.overflow=e,document.documentElement.style.overflow=t,document.body.style.position=n,document.body.style.top=a,document.body.style.width=o,window.scrollTo(0,i)}}),[]),(0,a.useEffect)((()=>{const t=t=>{"Escape"===t.key&&e()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[e])}},98464:function(e,t,n){n.d(t,{l:function(){return o}});const a="undefined"!=typeof window;function o(e){return a&&e}},55746:function(e,t,n){n.d(t,{K:function(){return i}});var a=n(99418);const o=e=>e.replace(/(\w)(<strong>)/g,"$1 $2").replace(/(<\/strong>)(\w)/g,"$1 $2");function i(e){const t=[];let n=e.replace(/<mark>([\s\S]*?)<\/mark>/gi,((e,n)=>(t.push(n),`\0MARK${t.length-1}\0`)));n=n.replace(/<\/?[^>]*>/g,""),n=n.replace(/\x00MARK(\d+)\x00/g,((e,n)=>`<strong>${t[Number(n)]}</strong>`)),n=n.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>");const i=a.A.sanitize(n,{ALLOWED_TAGS:["strong","em","b","i","br"],ALLOWED_ATTR:[],KEEP_CONTENT:!0});return o(i)}}}]); 2//# sourceMappingURL=c8f7fe3b0e41be846d5687592cf2018ff6e22687-f2bab2fe309f91091296.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.