@everlywell/consumer-ui 1.47.2 → 1.47.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -27,4 +27,4 @@ Check the top-level render call using <`+s+">.")}return o}}function nt(e,o){{if(
|
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ye,ce,Ft,ce),ot[ce+Ye]=!0}}return e===l?Tt(M):_t(M),M}}function Dt(e,o,s){return at(e,o,s,!0)}function It(e,o,s){return at(e,o,s,!1)}var Bt=It,Lt=Dt;ke.Fragment=l,ke.jsx=Bt,ke.jsxs=Lt}()),ke}process.env.NODE_ENV==="production"?Ke.exports=Mt():Ke.exports=At();var t=Ke.exports;const Ge=60,st=6,Pt=r=>{const{activeStepIndex:a,hideIndicators:c=!1,steps:l,stepperTheme:u={light:"eggplant.light",base:"eggplant.base"}}=r,{activeStep:d,setActiveStep:h}=n.useSteps({index:a,count:l.length});return j.useEffect(()=>{h(a)},[a,h]),t.jsx(n.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(n.Stepper,{role:"progressbar",index:d,width:"100%",display:"flex",flexWrap:"nowrap",children:l.map((f,g)=>{const x=d===g,p=g===0,k=g===l.length-1,E=d>g;let b=`${Ge}px`;const y=`calc(100% - ((${Ge*(l.length-1)}px) - (${l.length-1} * ${st*2}px)))`;return x?b=y:(p||k)&&(b=`${Ge-st}px`),t.jsx(n.Box,{width:b,opacity:E||x?1:.2,paddingRight:k?"0":"6px",paddingLeft:p?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(n.Box,{paddingTop:c?2:5,position:"relative",width:"100%",children:t.jsx(n.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:E?u.light:u.base,height:c?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${g}`)})})})},Ht=j.memo(Pt),$t=({children:r,...a})=>t.jsx(Z.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...a,children:r}),be=(r,a)=>{const c=(r==null?void 0:r.startsWith("http"))||(r==null?void 0:r.startsWith("mailto"));return a&&!c?{to:r}:{href:r}},Ee=j.forwardRef((r,a)=>{const{label:c,additionalContent:l,mainTextFontSize:u,linkComponent:d,href:h,forceMobileStyle:f=!1,...g}=r,x=d||n.Link,p=be(h,!!d),k=f?u||"xl":[u||"xl",null,null,"lg"],E=f?"xl":["xl",null,null,"lg"],b=f?void 0:[null,null,null,1],y=f?void 0:[null,null,null,"space-between"],L=f?"3":[3,null,null,0],m=f?"1px":["1px",null,null,"unset"],A=f?"tints.cream":["tints.cream",null,null,"unset"],R=f?"100%":["100%",null,null,"fit-content"],C=f?"none":["none",null,null,"block"],F=f?"100%":["100%",null,null,"auto"],H=f?"block":["block",null,null,"none"];return t.jsxs(n.Box,{ref:a,as:x,display:"flex",alignItems:"center",gap:b,justifyContent:y,paddingY:L,color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},borderBottom:m,borderColor:A,width:R,cursor:"pointer",...p,...g,children:[t.jsx(n.Icon,{display:C,as:V.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(n.Flex,{alignItems:"center",gap:"1",width:F,children:[t.jsx(n.Text,{fontSize:k,fontWeight:"medium",children:c}),l&&(typeof l=="string"?t.jsx(n.Text,{fontSize:E,fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:l}):l),t.jsx(n.Icon,{display:H,as:V.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),pt=j.forwardRef((r,a)=>{const{children:c,isSelected:l,...u}=r,d=r.backgroundColor||(l?"tints.lightCream":"transparent");return t.jsx(n.Button,{ref:a,borderRadius:"full",backgroundColor:d,fontSize:"lg !important",fontWeight:"normal",color:"tints.black",sx:{"&[href]":{textDecoration:"none"}},_before:{content:'""',position:"absolute",top:[null,null,null,-6],right:[null,null,null,-2],bottom:[null,null,null,-6],left:[null,null,null,-2]},_hover:{backgroundColor:d,textDecoration:"none",filter:"brightness(0.95)"},_focusVisible:{outline:"3px solid",outlineColor:"viridian.base",outlineOffset:"2px",boxShadow:"0 0 0 5px rgba(255, 255, 255, 0.9)",zIndex:1},...u,children:c})}),xt=({title:r,description:a,imageSrc:c,imageElement:l,button:u,backgroundColor:d="viridian.wash",onClick:h,href:f,linkComponent:g,forceMobileStyle:x=!1})=>{const b=g||n.Link,y=be(f,!!g),L=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0});return t.jsxs(n.Flex,{direction:x?"row":["row",null,null,"column"],alignItems:"center",borderRadius:"xl",overflow:"hidden",height:x?"80px":["80px",null,null,"272px"],backgroundColor:d,onClick:h,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",border:"1px solid",borderColor:"transparent",minWidth:x?"100%":["100%",null,null,"320px"],maxWidth:x?"100%":["100%",null,null,"380px"],_hover:{boxShadow:"lg",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:x?b:L?n.Flex:b,...x?y:L?{}:y,children:[t.jsx(n.Box,{width:x?"72px":["72px",null,null,"100%"],height:x?"100%":["100%",null,null,"188px"],sx:{img:{height:x?"100%":L?"188px":"100%",objectFit:x?"cover":"contain"}},children:c?t.jsx(n.Image,{src:c,objectFit:"cover",width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(n.Box,{height:x?80:[80,null,null,188],overflow:"hidden",...x?{sx:{div:{height:"100%"}}}:{},children:l})}),t.jsxs(n.Flex,{direction:x?"column":["column",null,null,"row"],justifyContent:x?void 0:[null,null,null,"space-between"],alignItems:x?"left":["left",null,null,"center"],padding:"4",height:x?"80px":["80px",null,null,"84px"],width:"100%",bottom:x?void 0:[null,null,null,"0"],backgroundColor:x?void 0:[null,null,null,`${d}CC`],backdropFilter:x?void 0:[null,null,null,"blur(8px)"],flex:"1",gap:x?void 0:[null,null,null,3],children:[t.jsxs(n.Flex,{direction:"column",justifyContent:"center",height:"100%",children:[t.jsx(n.Text,{as:"h3",fontSize:"lg",fontWeight:"medium",color:"tints.black",children:r}),t.jsx(n.Text,{fontSize:"sm",color:"tints.darkGrey",children:a})]}),x?null:L?t.jsx(n.Box,{children:u}):null]})]})},Me=r=>t.jsx(n.IconButton,{size:"sm",width:["40px",null,null,"46px"],height:["40px",null,null,"46px"],padding:["2 !important",null,null,"3 !important"],colorScheme:"whiteCS",backgroundColor:"tints.cream",sx:{svg:{width:"24px",height:"24px"}},_hover:{backgroundColor:"tints.cream",filter:"brightness(0.95)"},...r}),gt=({color:r=n.theme.colors.viridian.base,width:a})=>t.jsx(Z.Box,{as:"svg",width:a,height:"auto",viewBox:"0 0 116 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Everlywell Logo",children:t.jsx("g",{id:"Everlywell Logo",children:t.jsx("path",{fill:r,id:"Everlywell Logo_2",fillRule:"evenodd",clipRule:"evenodd",d:"M54.8224 1V17.8352H52.4272V1H54.8224ZM5.65731 14.992C4.9835 14.4474 4.59261 13.726 4.48231 12.8278H13.7822C13.9984 10.4829 13.5723 8.70006 12.5039 7.47915C11.4322 6.25824 9.93769 5.64945 8.01698 5.64945C6.23518 5.64945 4.78896 6.22479 3.67214 7.38216C2.55841 8.5395 2 9.92767 2 11.8377C2 13.7476 2.56171 15.273 3.68501 16.4136C4.80831 17.5542 6.30612 18.1229 8.18163 18.1229C9.11125 18.1229 10.0216 17.9489 10.9125 17.5944C11.8034 17.2431 12.533 16.7447 13.1075 16.1025L11.5517 14.5371C11.2095 14.9217 10.7253 15.2294 10.099 15.4636C9.46959 15.6944 8.84662 15.8115 8.22684 15.8115C7.18735 15.8115 6.33197 15.5372 5.65731 14.992ZM10.4671 8.60977C11.0772 9.10817 11.416 9.81395 11.4774 10.7305H4.52751C4.71152 9.81395 5.12475 9.10817 5.77027 8.60977C6.41589 8.11136 7.18735 7.86384 8.08473 7.86384C9.05966 7.86384 9.85696 8.11136 10.4671 8.60977ZM22.1465 17.8819L27.0047 5.93699H24.3771L22.6565 10.2486L20.8424 15.2828L18.8217 9.76697L17.2884 5.93699H14.6382L19.5189 17.8819H22.1465ZM30.3737 12.8244C30.4835 13.7242 30.8741 14.4467 31.5487 14.992C32.2234 15.5372 33.0788 15.8115 34.1181 15.8115C34.7379 15.8115 35.361 15.6944 35.9905 15.4636C36.6166 15.2294 37.1009 14.9217 37.4431 14.5371L38.999 16.1025C38.4244 16.7447 37.6948 17.2431 36.8039 17.5944C35.9129 17.9489 35.0027 18.1229 34.0729 18.1229C32.1975 18.1229 30.6997 17.5542 29.5764 16.4136C28.453 15.273 27.8914 13.7476 27.8914 11.8377C27.8914 9.92767 28.4498 8.5395 29.5635 7.38216C30.6804 6.22479 32.1265 5.64945 33.9084 5.64945C35.829 5.64945 37.3236 6.25824 38.3952 7.47915C39.4638 8.70006 39.8899 10.4829 39.6736 12.8278H30.3769L30.3737 12.8244ZM37.3688 10.7305C37.3075 9.81395 36.9685 9.10817 36.3584 8.60977C35.7483 8.11136 34.951 7.86384 33.9762 7.86384C33.0788 7.86384 32.3073 8.11136 31.6617 8.60977C31.0161 9.10817 30.6029 9.81395 30.4189 10.7305H37.3688ZM44.5032 7.5263L44.3418 5.96085H44.3385H42.108V17.8355H44.5032V11.4031C44.5032 10.3595 44.8001 9.5567 45.3877 8.99473C45.9751 8.43278 46.7112 8.15181 47.5956 8.15181C48.3703 8.15181 49.0417 8.39264 49.6163 8.87432L50.7073 6.70677C49.9811 6.03445 49.0353 5.6966 47.8732 5.6966C46.2914 5.6966 45.1681 6.30539 44.5032 7.5263ZM60.3782 12.3193V5.96054H57.983V12.3428C57.983 14.1089 58.4286 15.5004 59.3195 16.5106C60.2104 17.5241 61.3789 18.0292 62.8186 18.0292C64.552 18.0292 65.8787 17.387 66.7923 16.1025V18.1262C66.7923 19.2669 66.4824 20.1499 65.8626 20.7754C65.2429 21.401 64.494 21.7154 63.6094 21.7154C61.8889 21.7154 60.8754 20.9661 60.5654 19.4742H58.2187C58.3252 20.9326 58.8644 22.0532 59.8327 22.8326C60.8011 23.612 62.1214 24 63.6546 24C65.188 24 66.4727 23.5049 67.5121 22.5081C68.5515 21.5147 69.0712 20.0697 69.0712 18.1731V5.96054H66.6761V12.1521C66.6761 13.1623 66.3791 14.0153 65.7819 14.7043C65.188 15.3967 64.4681 15.7412 63.4933 15.7412C62.5184 15.7412 61.7566 15.4268 61.2047 14.8013C60.6526 14.1725 60.3782 13.3463 60.3782 12.3193ZM81.5989 5.93699L84.3427 15.2828L87.1768 5.93699H89.8496L85.8275 17.8819H83.0385L81.6892 13.9315L80.5724 9.79039L79.4328 13.9315L78.0836 17.8819H75.2945L71.2498 5.93699H73.9453L76.7795 15.2828L79.5232 5.93699H81.5924H81.5989ZM94.65 14.992C93.9754 14.4467 93.5848 13.7242 93.475 12.8244L93.4847 12.8278H102.781C102.998 10.4829 102.572 8.70006 101.503 7.47915C100.431 6.25824 98.9368 5.64945 97.0162 5.64945C95.2343 5.64945 93.785 6.22479 92.668 7.38216C91.5544 8.5395 90.9959 9.92767 90.9959 11.8377C90.9959 13.7476 91.5576 15.273 92.6809 16.4136C93.8043 17.5542 95.3021 18.1229 97.1775 18.1229C98.1073 18.1229 99.0175 17.9489 99.9084 17.5944C100.799 17.2431 101.529 16.7447 102.103 16.1025L100.544 14.5371C100.202 14.9217 99.7212 15.2328 99.0918 15.4636C98.4623 15.6944 97.8393 15.8115 97.2196 15.8115C96.1802 15.8115 95.3247 15.5372 94.65 14.992ZM99.4598 8.60977C100.07 9.10817 100.409 9.81395 100.47 10.7305H93.5202C93.7042 9.81395 94.1175 9.10817 94.763 8.60977C95.4086 8.11136 96.1802 7.86384 97.0774 7.86384C98.0524 7.86384 98.8465 8.11136 99.4598 8.60977ZM107.698 1V17.8352H105.303V1H107.698ZM113.53 17.8352V1H111.135V17.8352H113.53Z"})})}),vt=({desktopTopButtons:r,logoLink:a="https://www.everlywell.com",setTopOffset:c,linkComponent:l,onLogoClick:u,rightSideButtons:d})=>{const h=j.useRef(null),[f]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumTablet})`),[g]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumDesktop})`),x=j.useCallback(()=>{if(h.current){const p=h.current.getBoundingClientRect();c(p.bottom)}},[]);return j.useEffect(()=>{x()},[x]),t.jsx(n.Box,{ref:h,paddingY:"4",paddingX:f?4:g?6:8,borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",width:"100%",onMouseEnter:x,children:t.jsxs(n.Flex,{justifyContent:"space-between",alignItems:"center",children:[t.jsxs(n.Flex,{alignItems:"center",gap:"5",children:[t.jsx(n.Box,{"aria-label":"Go to homepage",onClick:u,as:l||n.Link,...be(a,!!l),children:t.jsx(gt,{width:"116px"})}),t.jsx(n.Flex,{display:["none",null,"none","none","flex","flex"],children:r})]}),t.jsx(n.Flex,{alignItems:"center",gap:"2",children:d})]})})},zt=({count:r=0,...a})=>t.jsxs(n.Box,{position:"relative",display:"inline-block",children:[t.jsx(Me,{icon:t.jsx(V.Basket,{}),...a}),r>0&&t.jsx(n.Box,{display:"flex",minWidth:"20px",height:"20px",py:"4px",px:"6px",justifyContent:"center",alignItems:"center",position:"absolute",right:"-4px",top:"-4px",borderRadius:"32px",background:"viridian.base",color:"white",fontSize:"xs",fontWeight:"normal",children:r})]}),Nt=({numDesktopLinks:r=5,showPromoButton:a=!1})=>t.jsx(n.VStack,{spacing:0,align:"stretch",children:t.jsx(n.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",borderColor:"tints.lightCream",children:t.jsxs(n.Flex,{justify:"space-between",align:"center",children:[t.jsx(n.Skeleton,{w:"120px",h:"48px"}),t.jsxs(n.HStack,{spacing:8,marginLeft:12,display:["none",null,null,"flex"],"data-testid":"desktop-nav",children:[Array.from({length:r}).map((c,l)=>t.jsx(n.Skeleton,{width:"90px",height:"48px"},l)),a&&t.jsx(n.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(n.HStack,{spacing:4,ml:"auto",children:[t.jsx(n.SkeletonCircle,{width:"120px",height:"48px",display:["none",null,null,"block"],"data-testid":"register-kit"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),Wt=(r,a)=>{let c;return(...l)=>{c&&clearTimeout(c),c=setTimeout(()=>{r(...l)},a)}},Ue=r=>r.toLowerCase().replace(/['']/g,"").replace(/[^a-z0-9]/g,""),Vt=(r,a)=>{r.length<a.length&&([r,a]=[a,r]);let c=Array(a.length+1).fill(0),l=Array(a.length+1).fill(0);for(let u=0;u<=a.length;u++)c[u]=u;for(let u=1;u<=r.length;u++){l[0]=u;for(let d=1;d<=a.length;d++){const h=r[u-1]===a[d-1]?0:1;l[d]=Math.min(l[d-1]+1,c[d]+1,c[d-1]+h)}[c,l]=[l,c]}return c[a.length]},Ae=(r,a,c=.6)=>{if(r.length<=3||a.length<=3)return r.includes(a)||a.includes(r);const l=Vt(r,a),u=Math.max(r.length,a.length);return 1-l/u>=c},ct=(r,a)=>{const c=r.split(/\s+/);return a.length<=4?c.some(l=>l.includes(a)):c.some(l=>{if(Ae(l,a))return!0;if(l.length>=a.length)for(let u=0;u<=l.length-a.length;u++){const d=l.slice(u,u+a.length+1);if(Ae(a,d))return!0}return!1})},Ze="nav-drawer-hover",Xe="nav-drawer-animation-start",Je="nav-drawer-animation-end",ut=r=>{window.dispatchEvent(new CustomEvent(Ze,{detail:{isHovering:r},bubbles:!0,cancelable:!0}))},dt=r=>{window.dispatchEvent(new CustomEvent(r,{bubbles:!0,cancelable:!0}))},Yt=(r=!1,a=!1,c=!1)=>r||!a?"column":c?"row":"row-reverse",Gt=Oe.motion(n.DrawerContent),Ut=Oe.motion(n.DrawerOverlay),Fe=({isOpen:r=!1,onClose:a,title:c,navDrawerLinks:l,bottomNavButtons:u,spotlightCards:d,bottomButton:h,hasBackButton:f=!0,onBackClick:g,hasOnlySpotlightCards:x=!1,hasSearch:p=!1,onSearch:k=()=>({}),topOffset:E,forceMobilePlacement:b=!1})=>{var ue,ee,de,fe,ne,$;const y=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,L=b?"right":y?"top":"right",m=L==="right",[A,R]=j.useState(0),[C,F]=j.useState(!1),H=()=>{R(I=>I+1)},G=j.useCallback(Wt(I=>{k(I),H()},100),[]);j.useEffect(()=>{r&&(F(!0),dt(Xe))},[r]);const q=()=>{r||(F(!1),a()),dt(Je)};return t.jsx(n.Drawer,{isOpen:C||r,closeOnOverlayClick:!0,onClose:()=>{C&&!m||a()},placement:L,blockScrollOnMount:!1,autoFocus:!1,...m?{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...(ee=(ue=n.theme.components.Drawer)==null?void 0:ue.baseStyle)==null?void 0:ee.dialogContainer,zIndex:"popover"},dialog:{...(fe=(de=n.theme.components.Drawer)==null?void 0:de.baseStyle)==null?void 0:fe.dialog,maxW:"560px",width:"auto"}}}}:{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...($=(ne=n.theme.components.Drawer)==null?void 0:ne.baseStyle)==null?void 0:$.dialogContainer,top:`${E}px`,zIndex:"overlay"}}}},children:t.jsx(Oe.AnimatePresence,{children:r?t.jsxs(t.Fragment,{children:[t.jsx(Ut,{backgroundColor:"tints.black",top:m?"0":`${E}px`,opacity:m?"0.4 !important":void 0,zIndex:m?"modal":"overlay",...m?{}:{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.15,ease:"easeOut"}}}),t.jsxs(Gt,{onClick:I=>{const re=I.target.closest("a");re&&re.href===window.location.href&&a()},onMouseEnter:()=>{m||ut(!0)},onMouseLeave:I=>{m||(!p||p&&(I.target===I.currentTarget||!I.currentTarget.contains(I.target)&&!C))&&ut(!1)},paddingTop:"4",paddingX:m?"4":"12",paddingBottom:"24",overflow:m?"auto":"hidden",maxHeight:"100vh",position:"relative",top:m?void 0:`${E}px !important`,onAnimationComplete:q,boxShadow:"none",...m?{initial:!1,animate:!1,exit:!1}:{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3}},children:[!p&&!m?null:t.jsxs(n.DrawerHeader,{padding:"0",flexDirection:p?"column":"row",gap:p?"4":"0",children:[m?t.jsxs(n.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[f?t.jsx(Me,{icon:t.jsx(V.CaretLeft,{}),onClick:()=>{g&&g()},"aria-label":"Back"}):null,t.jsx(n.Text,{as:"h2",color:"tints.uiGrey",fontSize:"xl",children:c}),t.jsx(Me,{icon:t.jsx(V.X,{}),onClick:a,"aria-label":"Close"})]}):null,p&&t.jsxs(Z.InputGroup,{width:"100%",children:[t.jsx(Z.Input,{onChange:I=>{G(I.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(Z.InputRightElement,{pointerEvents:"none",children:t.jsx(Z.Icon,{as:V.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(n.DrawerBody,{paddingX:"0",paddingBottom:m?"6":"4","data-testid":`navbar-drawer-body-${c.toLowerCase()}`,children:t.jsxs(Oe.motion.div,{...m?{}:{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},transition:{duration:.5,delay:.2,ease:[.4,0,.2,1],exit:{duration:.5,delay:.2,ease:[.4,0,.2,1]}}},style:{display:"flex",flexDirection:Yt(x,!m,p),gap:"24px",justifyContent:"space-between"},children:[d?t.jsx(n.Box,{gap:m?"3":"6",display:"flex",justifyContent:m?void 0:"center",sx:{flexWrap:"wrap",flexDirection:m?"column":"row"},children:d}):null,t.jsxs(n.Flex,{position:m?void 0:"relative",flexDirection:"column",gap:"6",width:m?"100%":p?void 0:"auto",children:[l?t.jsx(n.Box,{children:l}):null,u&&m?t.jsx(n.Box,{children:u}):null,h?t.jsx(n.Box,{width:"100%",position:m?void 0:"absolute",bottom:m?void 0:0,...m?{sx:{a:{width:"100%"}}}:{},children:h}):null]})]},A)})]})]}):null})})},Kt=({source:r,onSearchCallback:a,isActive:c})=>{const[l,u]=j.useState(""),[d,h]=j.useState([]),f=(p,k)=>{if(!p)return[];const b=Ue(p).split(/\s+/);return k.filter(y=>{const L=Ue(y.label);if(b.some(F=>ct(L,F)))return!0;const A=L.split(/\s+/),R=b.some(F=>A.some(H=>H.includes(F)||Ae(F,H))),C=typeof y.additionalContent=="string"&&b.some(F=>{const H=Ue(y.additionalContent);return ct(H,F)||H.split(/\s+/).some(G=>G.includes(F)||Ae(F,G))});return R||C}).sort((y,L)=>y.label.localeCompare(L.label))},g=p=>{if(u(p),!p){h([]);return}const k=f(p,r);h(k),a&&a(p,k)},x=()=>{u(""),h([])};return j.useEffect(()=>{c||(u(""),h([]))},[c]),{query:l,results:d,handleClose:x,handleSearch:g}},Zt=r=>{const a=new Set;return r.reduce((c,l)=>{var d;const u=((d=l.sections)==null?void 0:d.reduce((h,f)=>{const g=f.links.filter(x=>a.has(x.label)||x.isSearchable!==!0?!1:(a.add(x.label),!0));return[...h,...g]},[]))??[];return[...c,...u]},[])},bt=()=>{const[r,a]=j.useState(!1),[c,l]=j.useState(!1),[u,d]=j.useState(null);return{isMainMenuOpen:r,isSearchOpen:c,selectedCategory:u,clearSelectedCategory:()=>d(null),handleSelectCategory:b=>d(b),closeMainMenu:()=>{a(!1),d(null)},closeSearch:()=>l(!1),toggleSearch:()=>l(b=>!b),openMainMenu:()=>a(!0),openSearch:()=>l(!0)}},Xt="#28724F",Jt=({categories:r=[],mainCategoryLabel:a="Menu",logoLink:c="https://www.everlywell.com",mobileBottomButtons:l=[],linkComponent:u,onSearchCallback:d,onLinkClick:h,onCategoryOpen:f,onLogoClick:g,shopAllProductsUrl:x,onShopAllProductsClick:p,hideableButtons:k,children:E})=>{var Ce,le,Le;const b=bt(),{isMainMenuOpen:y,isSearchOpen:L,closeMainMenu:m,closeSearch:A,clearSelectedCategory:R,selectedCategory:C,handleSelectCategory:F}=b,[H,G]=j.useState(!1),[q,ue]=j.useState(!1),[ee,de]=j.useState(0),[fe,ne]=j.useState(!1),[$,I]=j.useState(!1),X=j.useRef(!1);j.useEffect(()=>{const i=()=>{X.current=!0},T=()=>{X.current=!1};return document.addEventListener("keydown",i,!0),document.addEventListener("mousedown",T,!0),()=>{document.removeEventListener("keydown",i,!0),document.removeEventListener("mousedown",T,!0)}},[]),j.useEffect(()=>{const i=()=>ne(!0),T=()=>ne(!1);return window.addEventListener(Xe,i),window.addEventListener(Je,T),()=>{window.removeEventListener(Xe,i),window.removeEventListener(Je,T)}},[]);const re=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,oe=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!1,desktop:!1,fullDesktop:!0})??!1,Re=!oe,_e=Z.useBreakpointValue({base:!0,tablet:!0,largeTablet:!0,mediumDesktop:!1,desktop:!1,fullDesktop:!1})??!0;j.useEffect(()=>{m(),R()},[re]);const{query:Te,results:he,handleSearch:De}=Kt({source:Zt(r),onSearchCallback:d,isActive:L}),me=he.length>0,we=u||n.Link,Pe=be(x,!!u),ye=Te&&t.jsxs(n.Flex,{gap:me?"6":0,direction:"column",children:[me?t.jsx(n.Text,{color:"tints.uiGrey",children:`${he.length} Results`}):t.jsxs(n.Flex,{direction:"column",gap:"6",alignItems:"flex-start",children:[t.jsx(n.Text,{color:"tints.uiGrey",children:"We didn't find what you were looking for."}),t.jsx(n.Button,{as:we,onClick:p,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],...Pe,children:"Shop all products"})]}),t.jsx(n.Grid,{columns:[1,1,1,4],children:he.map((i,T)=>t.jsx(n.GridItem,{children:t.jsx(Ee,{href:i.href,label:i.label,additionalContent:i==null?void 0:i.additionalContent,linkComponent:u,forceMobileStyle:!re})},`${i.label}-${T}`))})]}),U=i=>"href"in i,pe=i=>{U(i)?h==null||h(i.label):(I(y||!oe),F(i))},ae=i=>{G(!0),A(),R(),!U(i)&&(i.sections||i.spotlightCards)&&(I(!1),F(i))},xe=()=>{G(!1)};j.useEffect(()=>{const i=T=>{ue(T.detail.isHovering)};return window.addEventListener(Ze,i),()=>{window.removeEventListener(Ze,i)}},[]),j.useEffect(()=>{!H&&!q&&(R(),A(),!y&&oe&&I(!1))},[H,q,y,oe]),j.useEffect(()=>{let i=window.location.href;const T=()=>{const P=window.location.href;P!==i&&(i=P,m(),R())},B=setInterval(T,100);return window.addEventListener("popstate",T),()=>{window.removeEventListener("popstate",T),clearInterval(B)}},[]);const je=i=>U(i)&&(!i.buttonProps||Object.keys(i.buttonProps).length===0||i.buttonProps===void 0),Ie=r==null?void 0:r.map((i,T)=>{var J,Q;const B=k.includes(i.label),P=!U(i),se=(C==null?void 0:C.label)===i.label;return t.jsx(pt,{height:"48px",paddingInline:"16px !important",onMouseEnter:()=>{ae(i),f==null||f(i.label)},onMouseLeave:xe,isSelected:se,as:U(i)&&we?we:n.Link,href:U(i)?i.href:void 0,onClick:U(i)?()=>h==null?void 0:h(i.label):()=>{ae(i),f==null||f(i.label)},...P&&{tabIndex:0,role:"button","aria-haspopup":"true","aria-expanded":se,onKeyDown:te=>{(te.key==="Enter"||te.key===" ")&&(te.preventDefault(),ae(i),f==null||f(i.label))},onFocus:te=>{const N=te.currentTarget;X.current&&(N.style.outline=`3px solid ${Xt}`,N.style.outlineOffset="2px",N.style.boxShadow="0 0 0 5px rgba(255,255,255,0.9)",N.style.borderRadius="9999px",N.style.zIndex="1")},onBlur:te=>{const N=te.currentTarget;N.style.outline="",N.style.outlineOffset="",N.style.boxShadow="",N.style.borderRadius="",N.style.zIndex=""}},...B&&{display:{base:"none",fullDesktop:"flex"}},...((J=i==null?void 0:i.context)==null?void 0:J.desktop)==="link"||je(i)?{_hover:{backgroundColor:"tints.lightCream",textDecoration:"none",filter:"brightness(0.95)"}}:{},...((Q=i==null?void 0:i.context)==null?void 0:Q.desktop)!=="link"&&i.buttonProps,children:i.label},`${i.label}-${T}`)}),He=(Ce=r.filter(i=>{var T;return((T=i==null?void 0:i.context)==null?void 0:T.mobile)==="link"||(!U(i)&&i.isMobileTopLink!==!1||je(i))&&(Re&&k.includes(i.label)||_e)}))==null?void 0:Ce.map((i,T)=>{var P;const B=i;return je(B)||((P=B==null?void 0:B.context)==null?void 0:P.mobile)==="link"?t.jsx(n.Box,{children:t.jsx(Ee,{label:B.label,role:"link",href:B.href,mainTextFontSize:"3xl",linkComponent:u,forceMobileStyle:!0})},`${B.label}-${T}`):t.jsx(n.Box,{onClick:()=>{pe(B),f==null||f(B.label)},children:t.jsx(Ee,{label:B.label,role:"link",additionalContent:B.additionalContent,mainTextFontSize:"3xl",linkComponent:u,forceMobileStyle:!0})},`${B.label}-${T}`)}),$e=t.jsx(n.Flex,{gap:"2",flexDirection:"column",children:l}),Y=$||y,ie=C?t.jsx(n.Flex,{direction:Y?"column":["column",null,null,"row"],gap:"8",children:(le=C==null?void 0:C.sections)==null?void 0:le.map((i,T)=>{const B=[];for(let P=0;P<i.links.length;P+=3)B.push(i.links.slice(P,P+3));return t.jsxs(n.Box,{children:[t.jsx(n.Text,{as:"h2",fontSize:"md",color:"tints.uiGrey",marginBottom:Y?0:[0,null,null,6],children:i.title}),t.jsx(n.Flex,{flexDirection:Y?"column":["column",null,null,"row"],gap:Y?void 0:[null,null,null,8],children:B==null?void 0:B.map((P,se)=>t.jsx(n.Flex,{flexDirection:"column",gap:Y?void 0:[null,null,null,5],marginLeft:Y?void 0:[null,null,null,-2],children:P==null?void 0:P.map((J,Q)=>t.jsx(Ee,{label:J.label,href:J.href,additionalContent:J.additionalContent,linkComponent:u,forceMobileStyle:Y,onClick:()=>h==null?void 0:h(J.label)},`${J.label}-${Q}`))},se))})]},`${i.title}-${T}`)})}):null,Be=C!=null&&C.spotlightCards?(Le=C.spotlightCards)==null?void 0:Le.map((i,T)=>t.jsx(xt,{...i,forceMobileStyle:Y},`${i.title}-${T}`)):t.jsx(n.Box,{});return t.jsxs(n.Box,{as:"nav","aria-label":"Main navigation",position:"sticky",top:"0",width:"100%",zIndex:["sticky",null,null,fe?"modal":"sticky"],children:[t.jsx(vt,{desktopTopButtons:Ie,logoLink:c,linkComponent:u,onLogoClick:g,setTopOffset:de,rightSideButtons:typeof E=="function"?E(b):E}),t.jsxs(n.Box,{position:"relative",zIndex:"modal",children:[t.jsx(Fe,{isOpen:y,onClose:m,title:a,navDrawerLinks:He,bottomNavButtons:$e,hasBackButton:!1,topOffset:ee,forceMobilePlacement:!0}),t.jsx(Fe,{isOpen:!!C,onClose:()=>{m(),R(),y||I(!1)},title:(C==null?void 0:C.label)||"",navDrawerLinks:ie,onBackClick:()=>{R(),y||I(!1)},spotlightCards:Be,hasOnlySpotlightCards:C==null?void 0:C.hasOnlySpotlightCards,bottomButton:C==null?void 0:C.bottomButton,topOffset:ee,forceMobilePlacement:$||y||y&&!oe}),t.jsx(Fe,{isOpen:L,onClose:()=>A(),title:"Search",navDrawerLinks:ye,onSearch:De,hasSearch:!0,hasBackButton:!1,topOffset:ee})]})]})},ft=({links:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>{const u=a||n.Link,d=h=>{c&&c(h)};return t.jsx(n.Flex,{direction:"column",gap:6,children:r.map(h=>t.jsx(n.Text,{as:u,color:l==="dark"?"white":"viridian.base",size:"lg",_hover:{color:"viridian.lighter",textDecoration:"none"},onClick:()=>d(h.label),...be(h.href,!!a),children:h.label},h.label))})},Qt=({title:r,links:a,isLast:c})=>{const l=c?"transparent":`${n.theme.colors.viridian.lighter}20`;return a?t.jsx(n.AccordionItem,{borderColor:l,children:({isExpanded:u})=>t.jsxs(t.Fragment,{children:[t.jsxs(n.AccordionButton,{paddingX:0,paddingY:4,_hover:{bg:"transparent"},children:[t.jsx(n.Text,{color:"viridian.lighter",size:"lg",flex:"1",textAlign:"left",children:r}),t.jsx(n.Icon,{as:V.CaretDown,size:"sm",color:"viridian.lighter",transform:u?"rotate(-180deg)":"rotate(0deg)",transition:"transform 0.3s ease"})]}),t.jsx(n.AccordionPanel,{pb:4,px:0,children:a})]})}):null},qt=({title:r,links:a,footerTheme:c})=>a?t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:c==="dark"?"viridian.lighter":"tints.darkGrey",mb:6,fontSize:"lg",children:r}),a]}):null,en=({sections:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!0,desktop:!0})?t.jsx(n.Flex,{justify:"space-between",align:"flex-start",children:t.jsx(n.Flex,{gap:120,children:r.map(({title:d,links:h})=>t.jsx(qt,{footerTheme:l,title:d,links:t.jsx(ft,{links:h,linkComponent:a,onLinkClick:c,footerTheme:l})},d))})}):t.jsx(n.Accordion,{allowMultiple:!0,defaultIndex:[0],width:"100%",display:"flex",flexDirection:"column",children:r.map(({title:d,links:h},f)=>t.jsx(Qt,{title:d,links:t.jsx(ft,{links:h,linkComponent:a,onLinkClick:c,footerTheme:l}),isLast:f===r.length-1},d))}),ht={instagram:V.InstagramLogo,linkedin:V.LinkedinLogo,facebook:V.FacebookLogo,tiktok:V.TiktokLogo,x:V.XLogo},tn=({socialLinks:r,onEmailSubmit:a,socialMediaLabel:c,newsletterLabel:l,onLinkClick:u,showNewsletter:d=!0,footerTheme:h})=>{const f=h==="dark",[g,x]=j.useState(""),p=()=>{g&&a&&(a(g),x(""))},k=b=>{b.key==="Enter"&&p()},E=b=>{u&&u(b)};return t.jsxs(n.Box,{width:["100%",null,null,"440px"],children:[d&&t.jsxs(n.Box,{mb:[8,10],children:[t.jsx(n.Text,{color:f?"viridian.lighter":"tints.darkGrey",mb:6,size:"lg",children:l}),t.jsxs(n.InputGroup,{children:[t.jsx(n.Input,{"aria-label":"Email address",type:"email",placeholder:"Enter your email",bg:f?"transparent":"tints.white",border:"1px solid",borderColor:f?"viridian.lighter":"tints.darkCream",color:f?"viridian.lighter":"tints.darkGrey",_placeholder:{color:f?"viridian.lighter":"tints.darkGrey"},opacity:.66,height:"52px",pr:"48px",value:g,onChange:b=>x(b.target.value),onKeyPress:k}),t.jsx(n.InputRightElement,{h:"52px",pr:4,children:t.jsx(n.Icon,{as:V.ArrowRight,color:f?"viridian.lighter":"viridian.base",width:"24px",height:"24px",opacity:.66,cursor:"pointer",onClick:p,"data-testid":"arrow-right-icon",role:"button","aria-label":"Submit"})})]})]}),t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:f?"viridian.lighter":"tints.darkGrey",marginBottom:4,size:"lg",children:c}),t.jsx(n.Flex,{gap:3,children:r==null?void 0:r.map(b=>t.jsx(n.Link,{href:b.href,target:"_blank",rel:"noopener noreferrer","aria-label":b.name,onClick:()=>E(b.name),children:ht[b.name.toLowerCase()]&&t.jsx(n.Icon,{as:ht[b.name.toLowerCase()],color:f?"white":"viridian.base",width:["48px",null,"24px",null],height:["48px",null,"24px",null]})},b.name))})]})]})},nn=({links:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>{const u=a||n.Link,d=l==="dark",[h,f]=j.useState(()=>new Date().getFullYear());j.useEffect(()=>{f(new Date().getFullYear())},[]);const g=p=>{c&&c(p)},x=r==null?void 0:r.map(p=>t.jsx(n.Text,{as:u,color:d?"viridian.lighter":"viridian.base",size:"sm",_hover:{color:d?"white":"viridian.lighter",textDecoration:"none"},onClick:()=>g(p.label),...be(p.href,!!a),children:p.label},p.label));return t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[t.jsx(n.Flex,{direction:"row",flexWrap:"wrap",gap:[4,6,10],width:["100%","auto"],children:x}),t.jsxs(n.Text,{color:d?"viridian.lighter":"tints.darkGrey",fontSize:"sm",children:["© Everlywell ",h]})]})},rn=j.forwardRef(({navigationSections:r=[],disclaimer:a,newsletterLabel:c,socialMediaLabel:l,socialLinks:u,complianceLinks:d,linkComponent:h,onEmailSubmit:f,additionalContent:g,onLinkClick:x,onSocialMediaClick:p,showNewsletter:k=!0,footerTheme:E="dark"},b)=>{const y=E==="dark";return t.jsx(n.Box,{as:"footer",bg:y?"viridian.dark":"tints.lightCream",py:[6,8],px:[4,6],ref:b,children:t.jsxs(n.Container,{size:"fluid",children:[t.jsxs(n.Flex,{direction:"column",gap:[8,12],children:[t.jsx(n.Box,{children:t.jsx(gt,{width:["150px","202px"],color:y?"white":n.theme.colors.viridian.base})}),t.jsxs(n.Flex,{direction:["column",null,null,"row"],justify:"space-between",align:["flex-start"],gap:[8,8,8,0],children:[t.jsx(en,{sections:r,linkComponent:h,onLinkClick:x,footerTheme:E}),t.jsx(tn,{socialLinks:u,newsletterLabel:c,socialMediaLabel:l,onEmailSubmit:f,onLinkClick:p,showNewsletter:k,footerTheme:E})]}),t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",alignContent:"center",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[typeof a=="string"?t.jsx(n.Text,{color:y?"viridian.lighter":"tints.uiGrey",fontSize:"sm",maxWidth:["100%","100%","1024px"],dangerouslySetInnerHTML:{__html:a},sx:{"a:hover":{color:y?"viridian.light":"viridian.base",textDecoration:"underline"}}}):a,g]})]}),t.jsx(n.Box,{borderTop:"1px solid",borderColor:y?`${n.theme.colors.viridian.lighter}20`:"tints.darkCream",marginTop:"10",marginBottom:"8"}),t.jsx(nn,{links:d,linkComponent:h,onLinkClick:x,footerTheme:E})]})})}),on=r=>r?{Container:n.Drawer,Overlay:n.DrawerOverlay,Content:n.DrawerContent,Header:n.DrawerHeader,Body:n.DrawerBody,Footer:n.DrawerFooter,CloseButton:n.DrawerCloseButton}:{Container:n.Modal,Overlay:n.ModalOverlay,Content:n.ModalContent,Header:n.ModalHeader,Body:n.ModalBody,Footer:n.ModalFooter,CloseButton:n.ModalCloseButton},an=({isOpen:r,onClose:a,children:c,header:l,footer:u,headerProps:d,bodyProps:h,footerProps:f,contentProps:g,...x})=>{var C,F,H,G,q;const[p]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.tablet})`),k=(q=(G=(H=(F=(C=n.theme)==null?void 0:C.components)==null?void 0:F.Modal)==null?void 0:H.baseStyle)==null?void 0:G.overlay)==null?void 0:q.background,{Container:E,Overlay:b,Content:y,Header:L,Body:m,Footer:A,CloseButton:R}=on(p);return t.jsxs(E,{...x,isOpen:r,onClose:a,size:"xl",...p?{placement:"bottom"}:{},children:[t.jsx(b,{backdropFilter:"auto",backgroundColor:k}),t.jsxs(y,{backgroundColor:"tints.white",borderRadius:p?"20px 20px 0 0":"20px",overflowY:"auto",gap:0,...l&&p&&{paddingTop:0},...g,children:[t.jsxs(L,{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center",fontSize:"lg",color:"tints.black",fontWeight:"normal",position:"sticky",top:0,zIndex:"modal",backgroundColor:"tints.white",paddingInline:4,...p?{paddingBlock:4}:{paddingTop:6,paddingBlockEnd:2},...d,children:[l,t.jsx(R,{position:"static",width:32,height:32,backgroundColor:"tints.cream",sx:{".chakra-icon":{fontSize:"1rem"}},children:t.jsx(n.Icon,{as:V.X,weight:"light"})})]}),t.jsx(m,{color:"tints.darkGrey",paddingInline:4,...h,children:c}),t.jsx(A,{paddingInline:4,...f,children:u})]})]})};exports.BasketButton=zt;exports.CategoryLabel=$t;exports.DrawerModal=an;exports.Footer=rn;exports.NavButton=pt;exports.NavSkeleton=Nt;exports.NavbarDrawer=Fe;exports.NavbarDrawerLink=Ee;exports.NavigationBar=Jt;exports.SpotlightCard=xt;exports.Stepper=Ht;exports.TopNavIconButton=Me;exports.TopNavigation=vt;exports.useNavigationBar=bt;
|
|
30
|
+
<%s key={someKey} {...props} />`,Ye,ce,Ft,ce),ot[ce+Ye]=!0}}return e===l?Tt(M):_t(M),M}}function Dt(e,o,s){return at(e,o,s,!0)}function It(e,o,s){return at(e,o,s,!1)}var Bt=It,Lt=Dt;ke.Fragment=l,ke.jsx=Bt,ke.jsxs=Lt}()),ke}process.env.NODE_ENV==="production"?Ke.exports=Mt():Ke.exports=At();var t=Ke.exports;const Ge=60,st=6,Pt=r=>{const{activeStepIndex:a,hideIndicators:c=!1,steps:l,stepperTheme:u={light:"eggplant.light",base:"eggplant.base"}}=r,{activeStep:d,setActiveStep:h}=n.useSteps({index:a,count:l.length});return j.useEffect(()=>{h(a)},[a,h]),t.jsx(n.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(n.Stepper,{role:"progressbar",index:d,width:"100%",display:"flex",flexWrap:"nowrap",children:l.map((f,g)=>{const x=d===g,p=g===0,k=g===l.length-1,E=d>g;let b=`${Ge}px`;const y=`calc(100% - ((${Ge*(l.length-1)}px) - (${l.length-1} * ${st*2}px)))`;return x?b=y:(p||k)&&(b=`${Ge-st}px`),t.jsx(n.Box,{width:b,opacity:E||x?1:.2,paddingRight:k?"0":"6px",paddingLeft:p?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(n.Box,{paddingTop:c?2:5,position:"relative",width:"100%",children:t.jsx(n.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:E?u.light:u.base,height:c?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${g}`)})})})},Ht=j.memo(Pt),$t=({children:r,...a})=>t.jsx(Z.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...a,children:r}),be=(r,a)=>{const c=(r==null?void 0:r.startsWith("http"))||(r==null?void 0:r.startsWith("mailto"));return a&&!c?{to:r}:{href:r}},Ee=j.forwardRef((r,a)=>{const{label:c,additionalContent:l,mainTextFontSize:u,linkComponent:d,href:h,forceMobileStyle:f=!1,...g}=r,x=d||n.Link,p=be(h,!!d),k=f?u||"xl":[u||"xl",null,null,"lg"],E=f?"xl":["xl",null,null,"lg"],b=f?void 0:[null,null,null,1],y=f?void 0:[null,null,null,"space-between"],L=f?"3":[3,null,null,0],m=f?"1px":["1px",null,null,"unset"],A=f?"tints.cream":["tints.cream",null,null,"unset"],R=f?"100%":["100%",null,null,"fit-content"],C=f?"none":["none",null,null,"block"],F=f?"100%":["100%",null,null,"auto"],H=f?"block":["block",null,null,"none"];return t.jsxs(n.Box,{ref:a,as:x,display:"flex",alignItems:"center",gap:b,justifyContent:y,paddingY:L,color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},borderBottom:m,borderColor:A,width:R,cursor:"pointer",...p,...g,children:[t.jsx(n.Icon,{display:C,as:V.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(n.Flex,{alignItems:"center",gap:"1",width:F,children:[t.jsx(n.Text,{fontSize:k,fontWeight:"medium",children:c}),l&&(typeof l=="string"?t.jsx(n.Text,{fontSize:E,fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:l}):l),t.jsx(n.Icon,{display:H,as:V.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),pt=j.forwardRef((r,a)=>{const{children:c,isSelected:l,...u}=r,d=r.backgroundColor||(l?"tints.lightCream":"transparent");return t.jsx(n.Button,{ref:a,borderRadius:"full",backgroundColor:d,fontSize:"lg !important",fontWeight:"normal",color:"tints.black",sx:{"&[href]":{textDecoration:"none"}},_before:{content:'""',position:"absolute",top:[null,null,null,-6],right:[null,null,null,-2],bottom:[null,null,null,-6],left:[null,null,null,-2]},_hover:{backgroundColor:d,textDecoration:"none",filter:"brightness(0.95)"},_focusVisible:{outline:"3px solid",outlineColor:"viridian.base",outlineOffset:"2px",boxShadow:"0 0 0 5px rgba(255, 255, 255, 0.9)",zIndex:1},...u,children:c})}),xt=({title:r,description:a,imageSrc:c,imageElement:l,button:u,backgroundColor:d="viridian.wash",onClick:h,href:f,linkComponent:g,forceMobileStyle:x=!1})=>{const b=g||n.Link,y=be(f,!!g),L=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0});return t.jsxs(n.Flex,{direction:x?"row":["row",null,null,"column"],alignItems:"center",borderRadius:"xl",overflow:"hidden",height:x?"80px":["80px",null,null,"272px"],backgroundColor:d,onClick:h,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",border:"1px solid",borderColor:"transparent",minWidth:x?"100%":["100%",null,null,"320px"],maxWidth:x?"100%":["100%",null,null,"380px"],_hover:{boxShadow:"lg",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:x?b:L?n.Flex:b,...x?y:L?{}:y,children:[t.jsx(n.Box,{width:x?"72px":["72px",null,null,"100%"],height:x?"100%":["100%",null,null,"188px"],sx:{img:{height:x?"100%":L?"188px":"100%",objectFit:x?"cover":"contain"}},children:c?t.jsx(n.Image,{src:c,objectFit:"cover",width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(n.Box,{height:x?80:[80,null,null,188],overflow:"hidden",...x?{sx:{div:{height:"100%"}}}:{},children:l})}),t.jsxs(n.Flex,{direction:x?"column":["column",null,null,"row"],justifyContent:x?void 0:[null,null,null,"space-between"],alignItems:x?"left":["left",null,null,"center"],padding:"4",height:x?"80px":["80px",null,null,"84px"],width:"100%",bottom:x?void 0:[null,null,null,"0"],backgroundColor:x?void 0:[null,null,null,`${d}CC`],backdropFilter:x?void 0:[null,null,null,"blur(8px)"],flex:"1",gap:x?void 0:[null,null,null,3],children:[t.jsxs(n.Flex,{direction:"column",justifyContent:"center",height:"100%",children:[t.jsx(n.Text,{as:"h3",fontSize:"lg",fontWeight:"medium",color:"tints.black",children:r}),t.jsx(n.Text,{fontSize:"sm",color:"tints.darkGrey",children:a})]}),x?null:L?t.jsx(n.Box,{children:u}):null]})]})},Me=r=>t.jsx(n.IconButton,{size:"sm",width:["40px",null,null,"46px"],height:["40px",null,null,"46px"],padding:["2 !important",null,null,"3 !important"],colorScheme:"whiteCS",backgroundColor:"tints.cream",sx:{svg:{width:"24px",height:"24px"}},_hover:{backgroundColor:"tints.cream",filter:"brightness(0.95)"},...r}),gt=({color:r=n.theme.colors.viridian.base,width:a})=>t.jsx(Z.Box,{as:"svg",width:a,height:"auto",viewBox:"0 0 116 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Everlywell Logo",children:t.jsx("g",{id:"Everlywell Logo",children:t.jsx("path",{fill:r,id:"Everlywell Logo_2",fillRule:"evenodd",clipRule:"evenodd",d:"M54.8224 1V17.8352H52.4272V1H54.8224ZM5.65731 14.992C4.9835 14.4474 4.59261 13.726 4.48231 12.8278H13.7822C13.9984 10.4829 13.5723 8.70006 12.5039 7.47915C11.4322 6.25824 9.93769 5.64945 8.01698 5.64945C6.23518 5.64945 4.78896 6.22479 3.67214 7.38216C2.55841 8.5395 2 9.92767 2 11.8377C2 13.7476 2.56171 15.273 3.68501 16.4136C4.80831 17.5542 6.30612 18.1229 8.18163 18.1229C9.11125 18.1229 10.0216 17.9489 10.9125 17.5944C11.8034 17.2431 12.533 16.7447 13.1075 16.1025L11.5517 14.5371C11.2095 14.9217 10.7253 15.2294 10.099 15.4636C9.46959 15.6944 8.84662 15.8115 8.22684 15.8115C7.18735 15.8115 6.33197 15.5372 5.65731 14.992ZM10.4671 8.60977C11.0772 9.10817 11.416 9.81395 11.4774 10.7305H4.52751C4.71152 9.81395 5.12475 9.10817 5.77027 8.60977C6.41589 8.11136 7.18735 7.86384 8.08473 7.86384C9.05966 7.86384 9.85696 8.11136 10.4671 8.60977ZM22.1465 17.8819L27.0047 5.93699H24.3771L22.6565 10.2486L20.8424 15.2828L18.8217 9.76697L17.2884 5.93699H14.6382L19.5189 17.8819H22.1465ZM30.3737 12.8244C30.4835 13.7242 30.8741 14.4467 31.5487 14.992C32.2234 15.5372 33.0788 15.8115 34.1181 15.8115C34.7379 15.8115 35.361 15.6944 35.9905 15.4636C36.6166 15.2294 37.1009 14.9217 37.4431 14.5371L38.999 16.1025C38.4244 16.7447 37.6948 17.2431 36.8039 17.5944C35.9129 17.9489 35.0027 18.1229 34.0729 18.1229C32.1975 18.1229 30.6997 17.5542 29.5764 16.4136C28.453 15.273 27.8914 13.7476 27.8914 11.8377C27.8914 9.92767 28.4498 8.5395 29.5635 7.38216C30.6804 6.22479 32.1265 5.64945 33.9084 5.64945C35.829 5.64945 37.3236 6.25824 38.3952 7.47915C39.4638 8.70006 39.8899 10.4829 39.6736 12.8278H30.3769L30.3737 12.8244ZM37.3688 10.7305C37.3075 9.81395 36.9685 9.10817 36.3584 8.60977C35.7483 8.11136 34.951 7.86384 33.9762 7.86384C33.0788 7.86384 32.3073 8.11136 31.6617 8.60977C31.0161 9.10817 30.6029 9.81395 30.4189 10.7305H37.3688ZM44.5032 7.5263L44.3418 5.96085H44.3385H42.108V17.8355H44.5032V11.4031C44.5032 10.3595 44.8001 9.5567 45.3877 8.99473C45.9751 8.43278 46.7112 8.15181 47.5956 8.15181C48.3703 8.15181 49.0417 8.39264 49.6163 8.87432L50.7073 6.70677C49.9811 6.03445 49.0353 5.6966 47.8732 5.6966C46.2914 5.6966 45.1681 6.30539 44.5032 7.5263ZM60.3782 12.3193V5.96054H57.983V12.3428C57.983 14.1089 58.4286 15.5004 59.3195 16.5106C60.2104 17.5241 61.3789 18.0292 62.8186 18.0292C64.552 18.0292 65.8787 17.387 66.7923 16.1025V18.1262C66.7923 19.2669 66.4824 20.1499 65.8626 20.7754C65.2429 21.401 64.494 21.7154 63.6094 21.7154C61.8889 21.7154 60.8754 20.9661 60.5654 19.4742H58.2187C58.3252 20.9326 58.8644 22.0532 59.8327 22.8326C60.8011 23.612 62.1214 24 63.6546 24C65.188 24 66.4727 23.5049 67.5121 22.5081C68.5515 21.5147 69.0712 20.0697 69.0712 18.1731V5.96054H66.6761V12.1521C66.6761 13.1623 66.3791 14.0153 65.7819 14.7043C65.188 15.3967 64.4681 15.7412 63.4933 15.7412C62.5184 15.7412 61.7566 15.4268 61.2047 14.8013C60.6526 14.1725 60.3782 13.3463 60.3782 12.3193ZM81.5989 5.93699L84.3427 15.2828L87.1768 5.93699H89.8496L85.8275 17.8819H83.0385L81.6892 13.9315L80.5724 9.79039L79.4328 13.9315L78.0836 17.8819H75.2945L71.2498 5.93699H73.9453L76.7795 15.2828L79.5232 5.93699H81.5924H81.5989ZM94.65 14.992C93.9754 14.4467 93.5848 13.7242 93.475 12.8244L93.4847 12.8278H102.781C102.998 10.4829 102.572 8.70006 101.503 7.47915C100.431 6.25824 98.9368 5.64945 97.0162 5.64945C95.2343 5.64945 93.785 6.22479 92.668 7.38216C91.5544 8.5395 90.9959 9.92767 90.9959 11.8377C90.9959 13.7476 91.5576 15.273 92.6809 16.4136C93.8043 17.5542 95.3021 18.1229 97.1775 18.1229C98.1073 18.1229 99.0175 17.9489 99.9084 17.5944C100.799 17.2431 101.529 16.7447 102.103 16.1025L100.544 14.5371C100.202 14.9217 99.7212 15.2328 99.0918 15.4636C98.4623 15.6944 97.8393 15.8115 97.2196 15.8115C96.1802 15.8115 95.3247 15.5372 94.65 14.992ZM99.4598 8.60977C100.07 9.10817 100.409 9.81395 100.47 10.7305H93.5202C93.7042 9.81395 94.1175 9.10817 94.763 8.60977C95.4086 8.11136 96.1802 7.86384 97.0774 7.86384C98.0524 7.86384 98.8465 8.11136 99.4598 8.60977ZM107.698 1V17.8352H105.303V1H107.698ZM113.53 17.8352V1H111.135V17.8352H113.53Z"})})}),vt=({desktopTopButtons:r,logoLink:a="https://www.everlywell.com",setTopOffset:c,linkComponent:l,onLogoClick:u,rightSideButtons:d})=>{const h=j.useRef(null),[f]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumTablet})`),[g]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumDesktop})`),x=j.useCallback(()=>{if(h.current){const p=h.current.getBoundingClientRect();c(p.bottom)}},[]);return j.useEffect(()=>{x()},[x]),t.jsx(n.Box,{ref:h,paddingY:"4",paddingX:f?4:g?6:8,borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",width:"100%",onMouseEnter:x,children:t.jsxs(n.Flex,{justifyContent:"space-between",alignItems:"center",children:[t.jsxs(n.Flex,{alignItems:"center",gap:"5",children:[t.jsx(n.Box,{"aria-label":"Go to homepage",onClick:u,as:l||n.Link,...be(a,!!l),children:t.jsx(gt,{width:"116px"})}),t.jsx(n.Flex,{display:["none",null,"none","none","flex","flex"],children:r})]}),t.jsx(n.Flex,{alignItems:"center",gap:"2",children:d})]})})},zt=({count:r=0,...a})=>t.jsxs(n.Box,{position:"relative",display:"inline-block",children:[t.jsx(Me,{icon:t.jsx(V.Basket,{}),...a}),r>0&&t.jsx(n.Box,{display:"flex",minWidth:"20px",height:"20px",py:"4px",px:"6px",justifyContent:"center",alignItems:"center",position:"absolute",right:"-4px",top:"-4px",borderRadius:"32px",background:"viridian.base",color:"white",fontSize:"xs",fontWeight:"normal",children:r})]}),Nt=({numDesktopLinks:r=5,showPromoButton:a=!1})=>t.jsx(n.VStack,{spacing:0,align:"stretch",children:t.jsx(n.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",borderColor:"tints.lightCream",children:t.jsxs(n.Flex,{justify:"space-between",align:"center",children:[t.jsx(n.Skeleton,{w:"120px",h:"48px"}),t.jsxs(n.HStack,{spacing:8,marginLeft:12,display:["none",null,null,"flex"],"data-testid":"desktop-nav",children:[Array.from({length:r}).map((c,l)=>t.jsx(n.Skeleton,{width:"90px",height:"48px"},l)),a&&t.jsx(n.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(n.HStack,{spacing:4,ml:"auto",children:[t.jsx(n.SkeletonCircle,{width:"120px",height:"48px",display:["none",null,null,"block"],"data-testid":"register-kit"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),Wt=(r,a)=>{let c;return(...l)=>{c&&clearTimeout(c),c=setTimeout(()=>{r(...l)},a)}},Ue=r=>r.toLowerCase().replace(/['']/g,"").replace(/[^a-z0-9]/g,""),Vt=(r,a)=>{r.length<a.length&&([r,a]=[a,r]);let c=Array(a.length+1).fill(0),l=Array(a.length+1).fill(0);for(let u=0;u<=a.length;u++)c[u]=u;for(let u=1;u<=r.length;u++){l[0]=u;for(let d=1;d<=a.length;d++){const h=r[u-1]===a[d-1]?0:1;l[d]=Math.min(l[d-1]+1,c[d]+1,c[d-1]+h)}[c,l]=[l,c]}return c[a.length]},Ae=(r,a,c=.6)=>{if(r.length<=3||a.length<=3)return r.includes(a)||a.includes(r);const l=Vt(r,a),u=Math.max(r.length,a.length);return 1-l/u>=c},ct=(r,a)=>{const c=r.split(/\s+/);return a.length<=4?c.some(l=>l.includes(a)):c.some(l=>{if(Ae(l,a))return!0;if(l.length>=a.length)for(let u=0;u<=l.length-a.length;u++){const d=l.slice(u,u+a.length+1);if(Ae(a,d))return!0}return!1})},Ze="nav-drawer-hover",Xe="nav-drawer-animation-start",Je="nav-drawer-animation-end",ut=r=>{window.dispatchEvent(new CustomEvent(Ze,{detail:{isHovering:r},bubbles:!0,cancelable:!0}))},dt=r=>{window.dispatchEvent(new CustomEvent(r,{bubbles:!0,cancelable:!0}))},Yt=(r=!1,a=!1,c=!1)=>r||!a?"column":"row",Gt=Oe.motion(n.DrawerContent),Ut=Oe.motion(n.DrawerOverlay),Fe=({isOpen:r=!1,onClose:a,title:c,navDrawerLinks:l,bottomNavButtons:u,spotlightCards:d,bottomButton:h,hasBackButton:f=!0,onBackClick:g,hasOnlySpotlightCards:x=!1,hasSearch:p=!1,onSearch:k=()=>({}),topOffset:E,forceMobilePlacement:b=!1})=>{var ue,ee,de,fe,ne,$;const y=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,L=b?"right":y?"top":"right",m=L==="right",[A,R]=j.useState(0),[C,F]=j.useState(!1),H=()=>{R(I=>I+1)},G=j.useCallback(Wt(I=>{k(I),H()},100),[]);j.useEffect(()=>{r&&(F(!0),dt(Xe))},[r]);const q=()=>{r||(F(!1),a()),dt(Je)};return t.jsx(n.Drawer,{isOpen:C||r,closeOnOverlayClick:!0,onClose:()=>{C&&!m||a()},placement:L,blockScrollOnMount:!1,autoFocus:!1,...m?{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...(ee=(ue=n.theme.components.Drawer)==null?void 0:ue.baseStyle)==null?void 0:ee.dialogContainer,zIndex:"popover"},dialog:{...(fe=(de=n.theme.components.Drawer)==null?void 0:de.baseStyle)==null?void 0:fe.dialog,maxW:"560px",width:"auto"}}}}:{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...($=(ne=n.theme.components.Drawer)==null?void 0:ne.baseStyle)==null?void 0:$.dialogContainer,top:`${E}px`,zIndex:"overlay"}}}},children:t.jsx(Oe.AnimatePresence,{children:r?t.jsxs(t.Fragment,{children:[t.jsx(Ut,{backgroundColor:"tints.black",top:m?"0":`${E}px`,opacity:m?"0.4 !important":void 0,zIndex:m?"modal":"overlay",...m?{}:{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.15,ease:"easeOut"}}}),t.jsxs(Gt,{onClick:I=>{const re=I.target.closest("a");re&&re.href===window.location.href&&a()},onMouseEnter:()=>{m||ut(!0)},onMouseLeave:I=>{m||(!p||p&&(I.target===I.currentTarget||!I.currentTarget.contains(I.target)&&!C))&&ut(!1)},paddingTop:"4",paddingX:m?"4":"12",paddingBottom:"24",overflow:m?"auto":"hidden",maxHeight:"100vh",position:"relative",top:m?void 0:`${E}px !important`,onAnimationComplete:q,boxShadow:"none",...m?{initial:!1,animate:!1,exit:!1}:{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3}},children:[!p&&!m?null:t.jsxs(n.DrawerHeader,{padding:"0",flexDirection:p?"column":"row",gap:p?"4":"0",children:[m?t.jsxs(n.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[f?t.jsx(Me,{icon:t.jsx(V.CaretLeft,{}),onClick:()=>{g&&g()},"aria-label":"Back"}):null,t.jsx(n.Text,{as:"h2",color:"tints.uiGrey",fontSize:"xl",children:c}),t.jsx(Me,{icon:t.jsx(V.X,{}),onClick:a,"aria-label":"Close"})]}):null,p&&t.jsxs(Z.InputGroup,{width:"100%",children:[t.jsx(Z.Input,{onChange:I=>{G(I.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(Z.InputRightElement,{pointerEvents:"none",children:t.jsx(Z.Icon,{as:V.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(n.DrawerBody,{paddingX:"0",paddingBottom:m?"6":"4","data-testid":`navbar-drawer-body-${c.toLowerCase()}`,children:t.jsxs(Oe.motion.div,{...m?{}:{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},transition:{duration:.5,delay:.2,ease:[.4,0,.2,1],exit:{duration:.5,delay:.2,ease:[.4,0,.2,1]}}},style:{display:"flex",flexDirection:Yt(x,!m,p),gap:"24px",justifyContent:"space-between"},children:[t.jsxs(n.Flex,{position:m?void 0:"relative",flexDirection:"column",gap:"6",width:m?"100%":p?void 0:"auto",children:[l?t.jsx(n.Box,{children:l}):null,u&&m?t.jsx(n.Box,{children:u}):null,h?t.jsx(n.Box,{width:"100%",position:m?void 0:"absolute",bottom:m?void 0:0,...m?{sx:{a:{width:"100%"}}}:{},children:h}):null]}),d?t.jsx(n.Box,{gap:m?"3":"6",display:"flex",justifyContent:m?void 0:"center",sx:{flexWrap:"wrap",flexDirection:m?"column":"row"},children:d}):null]},A)})]})]}):null})})},Kt=({source:r,onSearchCallback:a,isActive:c})=>{const[l,u]=j.useState(""),[d,h]=j.useState([]),f=(p,k)=>{if(!p)return[];const b=Ue(p).split(/\s+/);return k.filter(y=>{const L=Ue(y.label);if(b.some(F=>ct(L,F)))return!0;const A=L.split(/\s+/),R=b.some(F=>A.some(H=>H.includes(F)||Ae(F,H))),C=typeof y.additionalContent=="string"&&b.some(F=>{const H=Ue(y.additionalContent);return ct(H,F)||H.split(/\s+/).some(G=>G.includes(F)||Ae(F,G))});return R||C}).sort((y,L)=>y.label.localeCompare(L.label))},g=p=>{if(u(p),!p){h([]);return}const k=f(p,r);h(k),a&&a(p,k)},x=()=>{u(""),h([])};return j.useEffect(()=>{c||(u(""),h([]))},[c]),{query:l,results:d,handleClose:x,handleSearch:g}},Zt=r=>{const a=new Set;return r.reduce((c,l)=>{var d;const u=((d=l.sections)==null?void 0:d.reduce((h,f)=>{const g=f.links.filter(x=>a.has(x.label)||x.isSearchable!==!0?!1:(a.add(x.label),!0));return[...h,...g]},[]))??[];return[...c,...u]},[])},bt=()=>{const[r,a]=j.useState(!1),[c,l]=j.useState(!1),[u,d]=j.useState(null);return{isMainMenuOpen:r,isSearchOpen:c,selectedCategory:u,clearSelectedCategory:()=>d(null),handleSelectCategory:b=>d(b),closeMainMenu:()=>{a(!1),d(null)},closeSearch:()=>l(!1),toggleSearch:()=>l(b=>!b),openMainMenu:()=>a(!0),openSearch:()=>l(!0)}},Xt="#28724F",Jt=({categories:r=[],mainCategoryLabel:a="Menu",logoLink:c="https://www.everlywell.com",mobileBottomButtons:l=[],linkComponent:u,onSearchCallback:d,onLinkClick:h,onCategoryOpen:f,onLogoClick:g,shopAllProductsUrl:x,onShopAllProductsClick:p,hideableButtons:k,children:E})=>{var Ce,le,Le;const b=bt(),{isMainMenuOpen:y,isSearchOpen:L,closeMainMenu:m,closeSearch:A,clearSelectedCategory:R,selectedCategory:C,handleSelectCategory:F}=b,[H,G]=j.useState(!1),[q,ue]=j.useState(!1),[ee,de]=j.useState(0),[fe,ne]=j.useState(!1),[$,I]=j.useState(!1),X=j.useRef(!1);j.useEffect(()=>{const i=()=>{X.current=!0},T=()=>{X.current=!1};return document.addEventListener("keydown",i,!0),document.addEventListener("mousedown",T,!0),()=>{document.removeEventListener("keydown",i,!0),document.removeEventListener("mousedown",T,!0)}},[]),j.useEffect(()=>{const i=()=>ne(!0),T=()=>ne(!1);return window.addEventListener(Xe,i),window.addEventListener(Je,T),()=>{window.removeEventListener(Xe,i),window.removeEventListener(Je,T)}},[]);const re=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,oe=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!1,desktop:!1,fullDesktop:!0})??!1,Re=!oe,_e=Z.useBreakpointValue({base:!0,tablet:!0,largeTablet:!0,mediumDesktop:!1,desktop:!1,fullDesktop:!1})??!0;j.useEffect(()=>{m(),R()},[re]);const{query:Te,results:he,handleSearch:De}=Kt({source:Zt(r),onSearchCallback:d,isActive:L}),me=he.length>0,we=u||n.Link,Pe=be(x,!!u),ye=Te&&t.jsxs(n.Flex,{gap:me?"6":0,direction:"column",children:[me?t.jsx(n.Text,{color:"tints.uiGrey",children:`${he.length} Results`}):t.jsxs(n.Flex,{direction:"column",gap:"6",alignItems:"flex-start",children:[t.jsx(n.Text,{color:"tints.uiGrey",children:"We didn't find what you were looking for."}),t.jsx(n.Button,{as:we,onClick:p,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],...Pe,children:"Shop all products"})]}),t.jsx(n.Grid,{columns:[1,1,1,4],children:he.map((i,T)=>t.jsx(n.GridItem,{children:t.jsx(Ee,{href:i.href,label:i.label,additionalContent:i==null?void 0:i.additionalContent,linkComponent:u,forceMobileStyle:!re})},`${i.label}-${T}`))})]}),U=i=>"href"in i,pe=i=>{U(i)?h==null||h(i.label):(I(y||!oe),F(i))},ae=i=>{G(!0),A(),R(),!U(i)&&(i.sections||i.spotlightCards)&&(I(!1),F(i))},xe=()=>{G(!1)};j.useEffect(()=>{const i=T=>{ue(T.detail.isHovering)};return window.addEventListener(Ze,i),()=>{window.removeEventListener(Ze,i)}},[]),j.useEffect(()=>{!H&&!q&&(R(),A(),!y&&oe&&I(!1))},[H,q,y,oe]),j.useEffect(()=>{let i=window.location.href;const T=()=>{const P=window.location.href;P!==i&&(i=P,m(),R())},B=setInterval(T,100);return window.addEventListener("popstate",T),()=>{window.removeEventListener("popstate",T),clearInterval(B)}},[]);const je=i=>U(i)&&(!i.buttonProps||Object.keys(i.buttonProps).length===0||i.buttonProps===void 0),Ie=r==null?void 0:r.map((i,T)=>{var J,Q;const B=k.includes(i.label),P=!U(i),se=(C==null?void 0:C.label)===i.label;return t.jsx(pt,{height:"48px",paddingInline:"16px !important",onMouseEnter:()=>{ae(i),f==null||f(i.label)},onMouseLeave:xe,isSelected:se,as:U(i)&&we?we:n.Link,href:U(i)?i.href:void 0,onClick:U(i)?()=>h==null?void 0:h(i.label):()=>{ae(i),f==null||f(i.label)},...P&&{tabIndex:0,role:"button","aria-haspopup":"true","aria-expanded":se,onKeyDown:te=>{(te.key==="Enter"||te.key===" ")&&(te.preventDefault(),ae(i),f==null||f(i.label))},onFocus:te=>{const N=te.currentTarget;X.current&&(N.style.outline=`3px solid ${Xt}`,N.style.outlineOffset="2px",N.style.boxShadow="0 0 0 5px rgba(255,255,255,0.9)",N.style.borderRadius="9999px",N.style.zIndex="1")},onBlur:te=>{const N=te.currentTarget;N.style.outline="",N.style.outlineOffset="",N.style.boxShadow="",N.style.borderRadius="",N.style.zIndex=""}},...B&&{display:{base:"none",fullDesktop:"flex"}},...((J=i==null?void 0:i.context)==null?void 0:J.desktop)==="link"||je(i)?{_hover:{backgroundColor:"tints.lightCream",textDecoration:"none",filter:"brightness(0.95)"}}:{},...((Q=i==null?void 0:i.context)==null?void 0:Q.desktop)!=="link"&&i.buttonProps,children:i.label},`${i.label}-${T}`)}),He=(Ce=r.filter(i=>{var T;return((T=i==null?void 0:i.context)==null?void 0:T.mobile)==="link"||(!U(i)&&i.isMobileTopLink!==!1||je(i))&&(Re&&k.includes(i.label)||_e)}))==null?void 0:Ce.map((i,T)=>{var P;const B=i;return je(B)||((P=B==null?void 0:B.context)==null?void 0:P.mobile)==="link"?t.jsx(n.Box,{children:t.jsx(Ee,{label:B.label,role:"link",href:B.href,mainTextFontSize:"3xl",linkComponent:u,forceMobileStyle:!0})},`${B.label}-${T}`):t.jsx(n.Box,{onClick:()=>{pe(B),f==null||f(B.label)},children:t.jsx(Ee,{label:B.label,role:"link",additionalContent:B.additionalContent,mainTextFontSize:"3xl",linkComponent:u,forceMobileStyle:!0})},`${B.label}-${T}`)}),$e=t.jsx(n.Flex,{gap:"2",flexDirection:"column",children:l}),Y=$||y,ie=C?t.jsx(n.Flex,{direction:Y?"column":["column",null,null,"row"],gap:"8",children:(le=C==null?void 0:C.sections)==null?void 0:le.map((i,T)=>{const B=[];for(let P=0;P<i.links.length;P+=3)B.push(i.links.slice(P,P+3));return t.jsxs(n.Box,{children:[t.jsx(n.Text,{as:"h2",fontSize:"md",color:"tints.uiGrey",marginBottom:Y?0:[0,null,null,6],children:i.title}),t.jsx(n.Flex,{flexDirection:Y?"column":["column",null,null,"row"],gap:Y?void 0:[null,null,null,8],children:B==null?void 0:B.map((P,se)=>t.jsx(n.Flex,{flexDirection:"column",gap:Y?void 0:[null,null,null,5],marginLeft:Y?void 0:[null,null,null,-2],children:P==null?void 0:P.map((J,Q)=>t.jsx(Ee,{label:J.label,href:J.href,additionalContent:J.additionalContent,linkComponent:u,forceMobileStyle:Y,onClick:()=>h==null?void 0:h(J.label)},`${J.label}-${Q}`))},se))})]},`${i.title}-${T}`)})}):null,Be=C!=null&&C.spotlightCards?(Le=C.spotlightCards)==null?void 0:Le.map((i,T)=>t.jsx(xt,{...i,forceMobileStyle:Y},`${i.title}-${T}`)):t.jsx(n.Box,{});return t.jsxs(n.Box,{as:"nav","aria-label":"Main navigation",position:"sticky",top:"0",width:"100%",zIndex:["sticky",null,null,fe?"modal":"sticky"],children:[t.jsx(vt,{desktopTopButtons:Ie,logoLink:c,linkComponent:u,onLogoClick:g,setTopOffset:de,rightSideButtons:typeof E=="function"?E(b):E}),t.jsxs(n.Box,{position:"relative",zIndex:"modal",children:[t.jsx(Fe,{isOpen:y,onClose:m,title:a,navDrawerLinks:He,bottomNavButtons:$e,hasBackButton:!1,topOffset:ee,forceMobilePlacement:!0}),t.jsx(Fe,{isOpen:!!C,onClose:()=>{m(),R(),y||I(!1)},title:(C==null?void 0:C.label)||"",navDrawerLinks:ie,onBackClick:()=>{R(),y||I(!1)},spotlightCards:Be,hasOnlySpotlightCards:C==null?void 0:C.hasOnlySpotlightCards,bottomButton:C==null?void 0:C.bottomButton,topOffset:ee,forceMobilePlacement:$||y||y&&!oe}),t.jsx(Fe,{isOpen:L,onClose:()=>A(),title:"Search",navDrawerLinks:ye,onSearch:De,hasSearch:!0,hasBackButton:!1,topOffset:ee})]})]})},ft=({links:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>{const u=a||n.Link,d=h=>{c&&c(h)};return t.jsx(n.Flex,{direction:"column",gap:6,children:r.map(h=>t.jsx(n.Text,{as:u,color:l==="dark"?"white":"viridian.base",size:"lg",_hover:{color:"viridian.lighter",textDecoration:"none"},onClick:()=>d(h.label),...be(h.href,!!a),children:h.label},h.label))})},Qt=({title:r,links:a,isLast:c})=>{const l=c?"transparent":`${n.theme.colors.viridian.lighter}20`;return a?t.jsx(n.AccordionItem,{borderColor:l,children:({isExpanded:u})=>t.jsxs(t.Fragment,{children:[t.jsxs(n.AccordionButton,{paddingX:0,paddingY:4,_hover:{bg:"transparent"},children:[t.jsx(n.Text,{color:"viridian.lighter",size:"lg",flex:"1",textAlign:"left",children:r}),t.jsx(n.Icon,{as:V.CaretDown,size:"sm",color:"viridian.lighter",transform:u?"rotate(-180deg)":"rotate(0deg)",transition:"transform 0.3s ease"})]}),t.jsx(n.AccordionPanel,{pb:4,px:0,children:a})]})}):null},qt=({title:r,links:a,footerTheme:c})=>a?t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:c==="dark"?"viridian.lighter":"tints.darkGrey",mb:6,fontSize:"lg",children:r}),a]}):null,en=({sections:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!0,desktop:!0})?t.jsx(n.Flex,{justify:"space-between",align:"flex-start",children:t.jsx(n.Flex,{gap:120,children:r.map(({title:d,links:h})=>t.jsx(qt,{footerTheme:l,title:d,links:t.jsx(ft,{links:h,linkComponent:a,onLinkClick:c,footerTheme:l})},d))})}):t.jsx(n.Accordion,{allowMultiple:!0,defaultIndex:[0],width:"100%",display:"flex",flexDirection:"column",children:r.map(({title:d,links:h},f)=>t.jsx(Qt,{title:d,links:t.jsx(ft,{links:h,linkComponent:a,onLinkClick:c,footerTheme:l}),isLast:f===r.length-1},d))}),ht={instagram:V.InstagramLogo,linkedin:V.LinkedinLogo,facebook:V.FacebookLogo,tiktok:V.TiktokLogo,x:V.XLogo},tn=({socialLinks:r,onEmailSubmit:a,socialMediaLabel:c,newsletterLabel:l,onLinkClick:u,showNewsletter:d=!0,footerTheme:h})=>{const f=h==="dark",[g,x]=j.useState(""),p=()=>{g&&a&&(a(g),x(""))},k=b=>{b.key==="Enter"&&p()},E=b=>{u&&u(b)};return t.jsxs(n.Box,{width:["100%",null,null,"440px"],children:[d&&t.jsxs(n.Box,{mb:[8,10],children:[t.jsx(n.Text,{color:f?"viridian.lighter":"tints.darkGrey",mb:6,size:"lg",children:l}),t.jsxs(n.InputGroup,{children:[t.jsx(n.Input,{"aria-label":"Email address",type:"email",placeholder:"Enter your email",bg:f?"transparent":"tints.white",border:"1px solid",borderColor:f?"viridian.lighter":"tints.darkCream",color:f?"viridian.lighter":"tints.darkGrey",_placeholder:{color:f?"viridian.lighter":"tints.darkGrey"},opacity:.66,height:"52px",pr:"48px",value:g,onChange:b=>x(b.target.value),onKeyPress:k}),t.jsx(n.InputRightElement,{h:"52px",pr:4,children:t.jsx(n.Icon,{as:V.ArrowRight,color:f?"viridian.lighter":"viridian.base",width:"24px",height:"24px",opacity:.66,cursor:"pointer",onClick:p,"data-testid":"arrow-right-icon",role:"button","aria-label":"Submit"})})]})]}),t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:f?"viridian.lighter":"tints.darkGrey",marginBottom:4,size:"lg",children:c}),t.jsx(n.Flex,{gap:3,children:r==null?void 0:r.map(b=>t.jsx(n.Link,{href:b.href,target:"_blank",rel:"noopener noreferrer","aria-label":b.name,onClick:()=>E(b.name),children:ht[b.name.toLowerCase()]&&t.jsx(n.Icon,{as:ht[b.name.toLowerCase()],color:f?"white":"viridian.base",width:["48px",null,"24px",null],height:["48px",null,"24px",null]})},b.name))})]})]})},nn=({links:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>{const u=a||n.Link,d=l==="dark",[h,f]=j.useState(()=>new Date().getFullYear());j.useEffect(()=>{f(new Date().getFullYear())},[]);const g=p=>{c&&c(p)},x=r==null?void 0:r.map(p=>t.jsx(n.Text,{as:u,color:d?"viridian.lighter":"viridian.base",size:"sm",_hover:{color:d?"white":"viridian.lighter",textDecoration:"none"},onClick:()=>g(p.label),...be(p.href,!!a),children:p.label},p.label));return t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[t.jsx(n.Flex,{direction:"row",flexWrap:"wrap",gap:[4,6,10],width:["100%","auto"],children:x}),t.jsxs(n.Text,{color:d?"viridian.lighter":"tints.darkGrey",fontSize:"sm",children:["© Everlywell ",h]})]})},rn=j.forwardRef(({navigationSections:r=[],disclaimer:a,newsletterLabel:c,socialMediaLabel:l,socialLinks:u,complianceLinks:d,linkComponent:h,onEmailSubmit:f,additionalContent:g,onLinkClick:x,onSocialMediaClick:p,showNewsletter:k=!0,footerTheme:E="dark"},b)=>{const y=E==="dark";return t.jsx(n.Box,{as:"footer",bg:y?"viridian.dark":"tints.lightCream",py:[6,8],px:[4,6],ref:b,children:t.jsxs(n.Container,{size:"fluid",children:[t.jsxs(n.Flex,{direction:"column",gap:[8,12],children:[t.jsx(n.Box,{children:t.jsx(gt,{width:["150px","202px"],color:y?"white":n.theme.colors.viridian.base})}),t.jsxs(n.Flex,{direction:["column",null,null,"row"],justify:"space-between",align:["flex-start"],gap:[8,8,8,0],children:[t.jsx(en,{sections:r,linkComponent:h,onLinkClick:x,footerTheme:E}),t.jsx(tn,{socialLinks:u,newsletterLabel:c,socialMediaLabel:l,onEmailSubmit:f,onLinkClick:p,showNewsletter:k,footerTheme:E})]}),t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",alignContent:"center",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[typeof a=="string"?t.jsx(n.Text,{color:y?"viridian.lighter":"tints.uiGrey",fontSize:"sm",maxWidth:["100%","100%","1024px"],dangerouslySetInnerHTML:{__html:a},sx:{"a:hover":{color:y?"viridian.light":"viridian.base",textDecoration:"underline"}}}):a,g]})]}),t.jsx(n.Box,{borderTop:"1px solid",borderColor:y?`${n.theme.colors.viridian.lighter}20`:"tints.darkCream",marginTop:"10",marginBottom:"8"}),t.jsx(nn,{links:d,linkComponent:h,onLinkClick:x,footerTheme:E})]})})}),on=r=>r?{Container:n.Drawer,Overlay:n.DrawerOverlay,Content:n.DrawerContent,Header:n.DrawerHeader,Body:n.DrawerBody,Footer:n.DrawerFooter,CloseButton:n.DrawerCloseButton}:{Container:n.Modal,Overlay:n.ModalOverlay,Content:n.ModalContent,Header:n.ModalHeader,Body:n.ModalBody,Footer:n.ModalFooter,CloseButton:n.ModalCloseButton},an=({isOpen:r,onClose:a,children:c,header:l,footer:u,headerProps:d,bodyProps:h,footerProps:f,contentProps:g,...x})=>{var C,F,H,G,q;const[p]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.tablet})`),k=(q=(G=(H=(F=(C=n.theme)==null?void 0:C.components)==null?void 0:F.Modal)==null?void 0:H.baseStyle)==null?void 0:G.overlay)==null?void 0:q.background,{Container:E,Overlay:b,Content:y,Header:L,Body:m,Footer:A,CloseButton:R}=on(p);return t.jsxs(E,{...x,isOpen:r,onClose:a,size:"xl",...p?{placement:"bottom"}:{},children:[t.jsx(b,{backdropFilter:"auto",backgroundColor:k}),t.jsxs(y,{backgroundColor:"tints.white",borderRadius:p?"20px 20px 0 0":"20px",overflowY:"auto",gap:0,...l&&p&&{paddingTop:0},...g,children:[t.jsxs(L,{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center",fontSize:"lg",color:"tints.black",fontWeight:"normal",position:"sticky",top:0,zIndex:"modal",backgroundColor:"tints.white",paddingInline:4,...p?{paddingBlock:4}:{paddingTop:6,paddingBlockEnd:2},...d,children:[l,t.jsx(R,{position:"static",width:32,height:32,backgroundColor:"tints.cream",sx:{".chakra-icon":{fontSize:"1rem"}},children:t.jsx(n.Icon,{as:V.X,weight:"light"})})]}),t.jsx(m,{color:"tints.darkGrey",paddingInline:4,...h,children:c}),t.jsx(A,{paddingInline:4,...f,children:u})]})]})};exports.BasketButton=zt;exports.CategoryLabel=$t;exports.DrawerModal=an;exports.Footer=rn;exports.NavButton=pt;exports.NavSkeleton=Nt;exports.NavbarDrawer=Fe;exports.NavbarDrawerLink=Ee;exports.NavigationBar=Jt;exports.SpotlightCard=xt;exports.Stepper=Ht;exports.TopNavIconButton=Me;exports.TopNavigation=vt;exports.useNavigationBar=bt;
|
package/index.mjs
CHANGED
|
@@ -1204,7 +1204,7 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1204
1204
|
cancelable: !0
|
|
1205
1205
|
})
|
|
1206
1206
|
);
|
|
1207
|
-
}, Zn = (n = !1, o = !1, s = !1) => n || !o ? "column" :
|
|
1207
|
+
}, Zn = (n = !1, o = !1, s = !1) => n || !o ? "column" : "row", Xn = it(kt), Jn = it(Rt), qe = ({
|
|
1208
1208
|
isOpen: n = !1,
|
|
1209
1209
|
onClose: o,
|
|
1210
1210
|
title: s,
|
|
@@ -1445,19 +1445,6 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1445
1445
|
justifyContent: "space-between"
|
|
1446
1446
|
},
|
|
1447
1447
|
children: [
|
|
1448
|
-
u ? /* @__PURE__ */ t.jsx(
|
|
1449
|
-
R,
|
|
1450
|
-
{
|
|
1451
|
-
gap: b ? "3" : "6",
|
|
1452
|
-
display: "flex",
|
|
1453
|
-
justifyContent: b ? void 0 : "center",
|
|
1454
|
-
sx: {
|
|
1455
|
-
flexWrap: "wrap",
|
|
1456
|
-
flexDirection: b ? "column" : "row"
|
|
1457
|
-
},
|
|
1458
|
-
children: u
|
|
1459
|
-
}
|
|
1460
|
-
) : null,
|
|
1461
1448
|
/* @__PURE__ */ t.jsxs(
|
|
1462
1449
|
T,
|
|
1463
1450
|
{
|
|
@@ -1480,7 +1467,20 @@ const Je = 60, mt = 6, Nn = (n) => {
|
|
|
1480
1467
|
) : null
|
|
1481
1468
|
]
|
|
1482
1469
|
}
|
|
1483
|
-
)
|
|
1470
|
+
),
|
|
1471
|
+
u ? /* @__PURE__ */ t.jsx(
|
|
1472
|
+
R,
|
|
1473
|
+
{
|
|
1474
|
+
gap: b ? "3" : "6",
|
|
1475
|
+
display: "flex",
|
|
1476
|
+
justifyContent: b ? void 0 : "center",
|
|
1477
|
+
sx: {
|
|
1478
|
+
flexWrap: "wrap",
|
|
1479
|
+
flexDirection: b ? "column" : "row"
|
|
1480
|
+
},
|
|
1481
|
+
children: u
|
|
1482
|
+
}
|
|
1483
|
+
) : null
|
|
1484
1484
|
]
|
|
1485
1485
|
},
|
|
1486
1486
|
$
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavbarDrawer.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavbarDrawer/NavbarDrawer.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAMhE,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAGnE,eAAO,MAAM,wBAAwB,eAAgB,OAAO,SAQ3D,CAAC;AAEF,eAAO,MAAM,4BAA4B,cAAe,MAAM,SAO7D,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAqBF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"NavbarDrawer.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavbarDrawer/NavbarDrawer.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAMhE,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAGnE,eAAO,MAAM,wBAAwB,eAAgB,OAAO,SAQ3D,CAAC;AAEF,eAAO,MAAM,4BAA4B,cAAe,MAAM,SAO7D,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAqBF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmUpD,CAAC;AACF,eAAe,YAAY,CAAC"}
|