@everlywell/consumer-ui 1.43.1 → 1.44.1

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.d.mts CHANGED
@@ -8,7 +8,7 @@ export { default as TopNavigation, type TopNavigationProps, } from './lib/compon
8
8
  export { default as BasketButton, type BasketButtonProps, } from './lib/components/Navbar/BasketButton';
9
9
  export { default as NavSkeleton, type NavSkeletonProps, } from './lib/components/Navbar/NavSkeleton';
10
10
  export { default as NavbarDrawer, type NavbarDrawerProps, } from './lib/components/Navbar/NavbarDrawer';
11
- export { default as NavigationBar, type NavigationBarProps, type NavigationCategory, type NavigationBarSection, type NavigationBarLink, } from './lib/components/Navbar/NavigationBar';
11
+ export { default as NavigationBar, useNavigationBar, type NavigationBarProps, type NavigationCategory, type NavigationBarSection, type NavigationBarLink, } from './lib/components/Navbar/NavigationBar';
12
12
  export { default as Footer, type FooterProps, } from './lib/components/Footer/Footer';
13
13
  export { default as DrawerModal, type DrawerModalProps, } from './lib/components/DrawerModal';
14
14
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export { default as TopNavigation, type TopNavigationProps, } from './lib/compon
8
8
  export { default as BasketButton, type BasketButtonProps, } from './lib/components/Navbar/BasketButton';
9
9
  export { default as NavSkeleton, type NavSkeletonProps, } from './lib/components/Navbar/NavSkeleton';
10
10
  export { default as NavbarDrawer, type NavbarDrawerProps, } from './lib/components/Navbar/NavbarDrawer';
11
- export { default as NavigationBar, type NavigationBarProps, type NavigationCategory, type NavigationBarSection, type NavigationBarLink, } from './lib/components/Navbar/NavigationBar';
11
+ export { default as NavigationBar, useNavigationBar, type NavigationBarProps, type NavigationCategory, type NavigationBarSection, type NavigationBarLink, } from './lib/components/Navbar/NavigationBar';
12
12
  export { default as Footer, type FooterProps, } from './lib/components/Footer/Footer';
13
13
  export { default as DrawerModal, type DrawerModalProps, } from './lib/components/DrawerModal';
14
14
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../libs/consumer-ui/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,YAAY,EACjB,KAAK,SAAS,GACf,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,kBAAkB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,OAAO,IAAI,SAAS,EACpB,KAAK,cAAc,GACpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,kBAAkB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,kBAAkB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,KAAK,iBAAiB,GACvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,KAAK,gBAAgB,GACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,KAAK,iBAAiB,GACvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,KAAK,WAAW,GACjB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,KAAK,gBAAgB,GACtB,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../libs/consumer-ui/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,YAAY,EACjB,KAAK,SAAS,GACf,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,kBAAkB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,OAAO,IAAI,SAAS,EACpB,KAAK,cAAc,GACpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,kBAAkB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,kBAAkB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,KAAK,iBAAiB,GACvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,KAAK,gBAAgB,GACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,KAAK,iBAAiB,GACvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,gBAAgB,EAChB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,KAAK,WAAW,GACjB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,KAAK,gBAAgB,GACtB,MAAM,8BAA8B,CAAC"}
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@everlywell/ui-kit"),k=require("react"),Z=require("@chakra-ui/react"),H=require("@phosphor-icons/react"),We=require("framer-motion");var nt={exports:{}},Te={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@everlywell/ui-kit"),S=require("react"),G=require("@chakra-ui/react"),z=require("@phosphor-icons/react"),Be=require("framer-motion");var Ge={exports:{}},je={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ht;function At(){if(ht)return Te;ht=1;var r=k,l=Symbol.for("react.element"),c=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function p(m,g,f){var h,v={},y=null,S=null;f!==void 0&&(y=""+f),g.key!==void 0&&(y=""+g.key),g.ref!==void 0&&(S=g.ref);for(h in g)s.call(g,h)&&!d.hasOwnProperty(h)&&(v[h]=g[h]);if(m&&m.defaultProps)for(h in g=m.defaultProps,g)v[h]===void 0&&(v[h]=g[h]);return{$$typeof:l,type:m,key:y,ref:S,props:v,_owner:u.current}}return Te.Fragment=c,Te.jsx=p,Te.jsxs=p,Te}var _e={};/**
9
+ */var at;function Mt(){if(at)return je;at=1;var r=S,a=Symbol.for("react.element"),u=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function f(x,v,p){var h,m={},T=null,R=null;p!==void 0&&(T=""+p),v.key!==void 0&&(T=""+v.key),v.ref!==void 0&&(R=v.ref);for(h in v)c.call(v,h)&&!d.hasOwnProperty(h)&&(m[h]=v[h]);if(x&&x.defaultProps)for(h in v=x.defaultProps,v)m[h]===void 0&&(m[h]=v[h]);return{$$typeof:a,type:x,key:T,ref:R,props:m,_owner:i.current}}return je.Fragment=u,je.jsx=f,je.jsxs=f,je}var ye={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var pt;function Pt(){return pt||(pt=1,process.env.NODE_ENV!=="production"&&function(){var r=k,l=Symbol.for("react.element"),c=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),C=Symbol.iterator,R="@@iterator";function b(e){if(e===null||typeof e!="object")return null;var o=C&&e[C]||e[R];return typeof o=="function"?o:null}var $=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(e){{for(var o=arguments.length,i=new Array(o>1?o-1:0),x=1;x<o;x++)i[x-1]=arguments[x];W("error",e,i)}}function W(e,o,i){{var x=$.ReactDebugCurrentFrame,E=x.getStackAddendum();E!==""&&(o+="%s",i=i.concat([E]));var D=i.map(function(j){return String(j)});D.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,D)}}var A=!1,z=!1,X=!1,Q=!1,V=!1,te;te=Symbol.for("react.module.reference");function ne(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===d||V||e===u||e===f||e===h||Q||e===S||A||z||X||typeof e=="object"&&e!==null&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===p||e.$$typeof===m||e.$$typeof===g||e.$$typeof===te||e.getModuleId!==void 0))}function q(e,o,i){var x=e.displayName;if(x)return x;var E=o.displayName||o.name||"";return E!==""?i+"("+E+")":i}function _(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case s:return"Fragment";case c:return"Portal";case d:return"Profiler";case u:return"StrictMode";case f:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m:var o=e;return _(o)+".Consumer";case p:var i=e;return _(i._context)+".Provider";case g:return q(e,e.render,"ForwardRef");case v:var x=e.displayName||null;return x!==null?x:B(e.type)||"Memo";case y:{var E=e,D=E._payload,j=E._init;try{return B(j(D))}catch{return null}}}return null}var L=Object.assign,J=0,re,Be,de,Le,Fe,Ce,we;function oe(){}oe.__reactDisabledLog=!0;function Oe(){{if(J===0){re=console.log,Be=console.info,de=console.warn,Le=console.error,Fe=console.group,Ce=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function le(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},e,{value:re}),info:L({},e,{value:Be}),warn:L({},e,{value:de}),error:L({},e,{value:Le}),group:L({},e,{value:Fe}),groupCollapsed:L({},e,{value:Ce}),groupEnd:L({},e,{value:we})})}J<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var je=$.ReactCurrentDispatcher,ye;function fe(e,o,i){{if(ye===void 0)try{throw Error()}catch(E){var x=E.stack.trim().match(/\n( *(at )?)/);ye=x&&x[1]||""}return`
18
- `+ye+e}}var ae=!1,he;{var Ae=typeof WeakMap=="function"?WeakMap:Map;he=new Ae}function pe(e,o){if(!e||ae)return"";{var i=he.get(e);if(i!==void 0)return i}var x;ae=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var D;D=je.current,je.current=null,Oe();try{if(o){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(Y){x=Y}Reflect.construct(e,[],j)}else{try{j.call()}catch(Y){x=Y}e.call(j.prototype)}}else{try{throw Error()}catch(Y){x=Y}e()}}catch(Y){if(Y&&x&&typeof Y.stack=="string"){for(var w=Y.stack.split(`
19
- `),N=x.stack.split(`
20
- `),O=w.length-1,P=N.length-1;O>=1&&P>=0&&w[O]!==N[P];)P--;for(;O>=1&&P>=0;O--,P--)if(w[O]!==N[P]){if(O!==1||P!==1)do if(O--,P--,P<0||w[O]!==N[P]){var U=`
21
- `+w[O].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),typeof e=="function"&&he.set(e,U),U}while(O>=1&&P>=0);break}}}finally{ae=!1,je.current=D,le(),Error.prepareStackTrace=E}var me=e?e.displayName||e.name:"",ce=me?fe(me):"";return typeof e=="function"&&he.set(e,ce),ce}function Ve(e,o,i){return pe(e,!1)}function Ye(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ee(e,o,i){if(e==null)return"";if(typeof e=="function")return pe(e,Ye(e));if(typeof e=="string")return fe(e);switch(e){case f:return fe("Suspense");case h:return fe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return Ve(e.render);case v:return ee(e.type,o,i);case y:{var x=e,E=x._payload,D=x._init;try{return ee(D(E),o,i)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Pe={},Me=$.ReactDebugCurrentFrame;function xe(e){if(e){var o=e._owner,i=ee(e.type,e._source,o?o.type:null);Me.setExtraStackFrame(i)}else Me.setExtraStackFrame(null)}function ke(e,o,i,x,E){{var D=Function.call.bind(G);for(var j in e)if(D(e,j)){var w=void 0;try{if(typeof e[j]!="function"){var N=Error((x||"React class")+": "+i+" type `"+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[j]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw N.name="Invariant Violation",N}w=e[j](o,j,x,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(O){w=O}w&&!(w instanceof Error)&&(xe(E),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",i,j,typeof w),xe(null)),w instanceof Error&&!(w.message in Pe)&&(Pe[w.message]=!0,xe(E),T("Failed %s type: %s",i,w.message),xe(null))}}}var Ge=Array.isArray;function Ee(e){return Ge(e)}function Ue(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,i=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function Ze(e){try{return K(e),!1}catch{return!0}}function K(e){return""+e}function He(e){if(Ze(e))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ue(e)),K(e)}var ie=$.ReactCurrentOwner,$e={key:!0,ref:!0,__self:!0,__source:!0},Se,Re,a;a={};function I(e){if(G.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function F(e){if(G.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function M(e,o){if(typeof e.ref=="string"&&ie.current&&o&&ie.current.stateNode!==o){var i=B(ie.current.type);a[i]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',B(ie.current.type),e.ref),a[i]=!0)}}function ge(e,o){{var i=function(){Se||(Se=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function se(e,o){{var i=function(){Re||(Re=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Xe=function(e,o,i,x,E,D,j){var w={$$typeof:l,type:e,key:o,ref:i,props:j,_owner:D};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function Et(e,o,i,x,E){{var D,j={},w=null,N=null;i!==void 0&&(He(i),w=""+i),F(o)&&(He(o.key),w=""+o.key),I(o)&&(N=o.ref,M(o,E));for(D in o)G.call(o,D)&&!$e.hasOwnProperty(D)&&(j[D]=o[D]);if(e&&e.defaultProps){var O=e.defaultProps;for(D in O)j[D]===void 0&&(j[D]=O[D])}if(w||N){var P=typeof e=="function"?e.displayName||e.name||"Unknown":e;w&&ge(j,P),N&&se(j,P)}return Xe(e,w,N,E,x,ie.current,j)}}var Ke=$.ReactCurrentOwner,at=$.ReactDebugCurrentFrame;function ve(e){if(e){var o=e._owner,i=ee(e.type,e._source,o?o.type:null);at.setExtraStackFrame(i)}else at.setExtraStackFrame(null)}var Je;Je=!1;function Qe(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function it(){{if(Ke.current){var e=B(Ke.current.type);if(e)return`
17
+ */var it;function Pt(){return it||(it=1,process.env.NODE_ENV!=="production"&&function(){var r=S,a=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),x=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),k=Symbol.iterator,L="@@iterator";function b(e){if(e===null||typeof e!="object")return null;var o=k&&e[k]||e[L];return typeof o=="function"?o:null}var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var o=arguments.length,s=new Array(o>1?o-1:0),g=1;g<o;g++)s[g-1]=arguments[g];C("error",e,s)}}function C(e,o,s){{var g=A.ReactDebugCurrentFrame,E=g.getStackAddendum();E!==""&&(o+="%s",s=s.concat([E]));var _=s.map(function(j){return String(j)});_.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,_)}}var O=!1,H=!1,V=!1,J=!1,ae=!1,Q;Q=Symbol.for("react.module.reference");function ie(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===d||ae||e===i||e===p||e===h||J||e===R||O||H||V||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===m||e.$$typeof===f||e.$$typeof===x||e.$$typeof===v||e.$$typeof===Q||e.getModuleId!==void 0))}function le(e,o,s){var g=e.displayName;if(g)return g;var E=o.displayName||o.name||"";return E!==""?s+"("+E+")":s}function q(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case u:return"Portal";case d:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var o=e;return q(o)+".Consumer";case f:var s=e;return q(s._context)+".Provider";case v:return le(e,e.render,"ForwardRef");case m:var g=e.displayName||null;return g!==null?g:$(e.type)||"Memo";case T:{var E=e,_=E._payload,j=E._init;try{return $(j(_))}catch{return null}}}return null}var D=Object.assign,K=0,U,Ee,ke,Re,se,Te,xe;function ce(){}ce.__reactDisabledLog=!0;function Fe(){{if(K===0){U=console.log,Ee=console.info,ke=console.warn,Re=console.error,se=console.group,Te=console.groupCollapsed,xe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}K++}}function Me(){{if(K--,K===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:U}),info:D({},e,{value:Ee}),warn:D({},e,{value:ke}),error:D({},e,{value:Re}),group:D({},e,{value:se}),groupCollapsed:D({},e,{value:Te}),groupEnd:D({},e,{value:xe})})}K<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=A.ReactCurrentDispatcher,ve;function ue(e,o,s){{if(ve===void 0)try{throw Error()}catch(E){var g=E.stack.trim().match(/\n( *(at )?)/);ve=g&&g[1]||""}return`
18
+ `+ve+e}}var me=!1,ee;{var Pe=typeof WeakMap=="function"?WeakMap:Map;ee=new Pe}function _e(e,o){if(!e||me)return"";{var s=ee.get(e);if(s!==void 0)return s}var g;me=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=Z.current,Z.current=null,Fe();try{if(o){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(W){g=W}Reflect.construct(e,[],j)}else{try{j.call()}catch(W){g=W}e.call(j.prototype)}}else{try{throw Error()}catch(W){g=W}e()}}catch(W){if(W&&g&&typeof W.stack=="string"){for(var w=W.stack.split(`
19
+ `),N=g.stack.split(`
20
+ `),F=w.length-1,M=N.length-1;F>=1&&M>=0&&w[F]!==N[M];)M--;for(;F>=1&&M>=0;F--,M--)if(w[F]!==N[M]){if(F!==1||M!==1)do if(F--,M--,M<0||w[F]!==N[M]){var Y=`
21
+ `+w[F].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,Y),Y}while(F>=1&&M>=0);break}}}finally{me=!1,Z.current=_,Me(),Error.prepareStackTrace=E}var he=e?e.displayName||e.name:"",oe=he?ue(he):"";return typeof e=="function"&&ee.set(e,oe),oe}function Ae(e,o,s){return _e(e,!1)}function X(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function de(e,o,s){if(e==null)return"";if(typeof e=="function")return _e(e,X(e));if(typeof e=="string")return ue(e);switch(e){case p:return ue("Suspense");case h:return ue("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return Ae(e.render);case m:return de(e.type,o,s);case T:{var g=e,E=g._payload,_=g._init;try{return de(_(E),o,s)}catch{}}}return""}var ne=Object.prototype.hasOwnProperty,be={},we=A.ReactDebugCurrentFrame;function re(e){if(e){var o=e._owner,s=de(e.type,e._source,o?o.type:null);we.setExtraStackFrame(s)}else we.setExtraStackFrame(null)}function l(e,o,s,g,E){{var _=Function.call.bind(ne);for(var j in e)if(_(e,j)){var w=void 0;try{if(typeof e[j]!="function"){var N=Error((g||"React class")+": "+s+" type `"+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[j]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw N.name="Invariant Violation",N}w=e[j](o,j,g,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){w=F}w&&!(w instanceof Error)&&(re(E),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",g||"React class",s,j,typeof w),re(null)),w instanceof Error&&!(w.message in be)&&(be[w.message]=!0,re(E),y("Failed %s type: %s",s,w.message),re(null))}}}var B=Array.isArray;function I(e){return B(e)}function P(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,s=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function fe(e){try{return te(e),!1}catch{return!0}}function te(e){return""+e}function De(e){if(fe(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",P(e)),te(e)}var Ce=A.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},Xe,Je,He;He={};function bt(e){if(ne.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function wt(e){if(ne.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Ct(e,o){if(typeof e.ref=="string"&&Ce.current&&o&&Ce.current.stateNode!==o){var s=$(Ce.current.type);He[s]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',$(Ce.current.type),e.ref),He[s]=!0)}}function jt(e,o){{var s=function(){Xe||(Xe=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}}function yt(e,o){{var s=function(){Je||(Je=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};s.isReactWarning=!0,Object.defineProperty(e,"ref",{get:s,configurable:!0})}}var St=function(e,o,s,g,E,_,j){var w={$$typeof:a,type:e,key:o,ref:s,props:j,_owner:_};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function Et(e,o,s,g,E){{var _,j={},w=null,N=null;s!==void 0&&(De(s),w=""+s),wt(o)&&(De(o.key),w=""+o.key),bt(o)&&(N=o.ref,Ct(o,E));for(_ in o)ne.call(o,_)&&!mt.hasOwnProperty(_)&&(j[_]=o[_]);if(e&&e.defaultProps){var F=e.defaultProps;for(_ in F)j[_]===void 0&&(j[_]=F[_])}if(w||N){var M=typeof e=="function"?e.displayName||e.name||"Unknown":e;w&&jt(j,M),N&&yt(j,M)}return St(e,w,N,E,g,Ce.current,j)}}var $e=A.ReactCurrentOwner,Qe=A.ReactDebugCurrentFrame;function pe(e){if(e){var o=e._owner,s=de(e.type,e._source,o?o.type:null);Qe.setExtraStackFrame(s)}else Qe.setExtraStackFrame(null)}var Ne;Ne=!1;function We(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function qe(){{if($e.current){var e=$($e.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function St(e){return""}var st={};function Rt(e){{var o=it();if(!o){var i=typeof e=="string"?e:e.displayName||e.name;i&&(o=`
23
+ Check the render method of \``+e+"`."}return""}}function kt(e){return""}var et={};function Rt(e){{var o=qe();if(!o){var s=typeof e=="string"?e:e.displayName||e.name;s&&(o=`
24
24
 
25
- Check the top-level render call using <`+i+">.")}return o}}function ct(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=Rt(o);if(st[i])return;st[i]=!0;var x="";e&&e._owner&&e._owner!==Ke.current&&(x=" It was passed a child from "+B(e._owner.type)+"."),ve(e),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,x),ve(null)}}function ut(e,o){{if(typeof e!="object")return;if(Ee(e))for(var i=0;i<e.length;i++){var x=e[i];Qe(x)&&ct(x,o)}else if(Qe(e))e._store&&(e._store.validated=!0);else if(e){var E=b(e);if(typeof E=="function"&&E!==e.entries)for(var D=E.call(e),j;!(j=D.next()).done;)Qe(j.value)&&ct(j.value,o)}}}function Tt(e){{var o=e.type;if(o==null||typeof o=="string")return;var i;if(typeof o=="function")i=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===g||o.$$typeof===v))i=o.propTypes;else return;if(i){var x=B(o);ke(i,e.props,"prop",x,e)}else if(o.PropTypes!==void 0&&!Je){Je=!0;var E=B(o);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _t(e){{for(var o=Object.keys(e.props),i=0;i<o.length;i++){var x=o[i];if(x!=="children"&&x!=="key"){ve(e),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),ve(null);break}}e.ref!==null&&(ve(e),T("Invalid attribute `ref` supplied to `React.Fragment`."),ve(null))}}var dt={};function ft(e,o,i,x,E,D){{var j=ne(e);if(!j){var w="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var N=St();N?w+=N:w+=it();var O;e===null?O="null":Ee(e)?O="array":e!==void 0&&e.$$typeof===l?(O="<"+(B(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):O=typeof e,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,w)}var P=Et(e,o,i,E,D);if(P==null)return P;if(j){var U=o.children;if(U!==void 0)if(x)if(Ee(U)){for(var me=0;me<U.length;me++)ut(U[me],e);Object.freeze&&Object.freeze(U)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ut(U,e)}if(G.call(o,"key")){var ce=B(e),Y=Object.keys(o).filter(function(Ot){return Ot!=="key"}),qe=Y.length>0?"{key: someKey, "+Y.join(": ..., ")+": ...}":"{key: someKey}";if(!dt[ce+qe]){var Ft=Y.length>0?"{"+Y.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+s+">.")}return o}}function tt(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=Rt(o);if(et[s])return;et[s]=!0;var g="";e&&e._owner&&e._owner!==$e.current&&(g=" It was passed a child from "+$(e._owner.type)+"."),pe(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,g),pe(null)}}function nt(e,o){{if(typeof e!="object")return;if(I(e))for(var s=0;s<e.length;s++){var g=e[s];We(g)&&tt(g,o)}else if(We(e))e._store&&(e._store.validated=!0);else if(e){var E=b(e);if(typeof E=="function"&&E!==e.entries)for(var _=E.call(e),j;!(j=_.next()).done;)We(j.value)&&tt(j.value,o)}}}function Tt(e){{var o=e.type;if(o==null||typeof o=="string")return;var s;if(typeof o=="function")s=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===v||o.$$typeof===m))s=o.propTypes;else return;if(s){var g=$(o);l(s,e.props,"prop",g,e)}else if(o.PropTypes!==void 0&&!Ne){Ne=!0;var E=$(o);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _t(e){{for(var o=Object.keys(e.props),s=0;s<o.length;s++){var g=o[s];if(g!=="children"&&g!=="key"){pe(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",g),pe(null);break}}e.ref!==null&&(pe(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),pe(null))}}var rt={};function ot(e,o,s,g,E,_){{var j=ie(e);if(!j){var w="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var N=kt();N?w+=N:w+=qe();var F;e===null?F="null":I(e)?F="array":e!==void 0&&e.$$typeof===a?(F="<"+($(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):F=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",F,w)}var M=Et(e,o,s,E,_);if(M==null)return M;if(j){var Y=o.children;if(Y!==void 0)if(g)if(I(Y)){for(var he=0;he<Y.length;he++)nt(Y[he],e);Object.freeze&&Object.freeze(Y)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else nt(Y,e)}if(ne.call(o,"key")){var oe=$(e),W=Object.keys(o).filter(function(Ft){return Ft!=="key"}),ze=W.length>0?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}";if(!rt[oe+ze]){var Ot=W.length>0?"{"+W.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
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} />`,qe,ce,Ft,ce),dt[ce+qe]=!0}}return e===s?_t(P):Tt(P),P}}function Dt(e,o,i){return ft(e,o,i,!0)}function It(e,o,i){return ft(e,o,i,!1)}var Bt=It,Lt=Dt;_e.Fragment=s,_e.jsx=Bt,_e.jsxs=Lt}()),_e}process.env.NODE_ENV==="production"?nt.exports=At():nt.exports=Pt();var t=nt.exports;const et=60,xt=6,Mt=r=>{const{activeStepIndex:l,hideIndicators:c=!1,steps:s,stepperTheme:u={light:"eggplant.light",base:"eggplant.base"}}=r,{activeStep:d,setActiveStep:p}=n.useSteps({index:l,count:s.length});return k.useEffect(()=>{p(l)},[l,p]),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:s.map((m,g)=>{const f=d===g,h=g===0,v=g===s.length-1,y=d>g;let S=`${et}px`;const C=`calc(100% - ((${et*(s.length-1)}px) - (${s.length-1} * ${xt*2}px)))`;return f?S=C:(h||v)&&(S=`${et-xt}px`),t.jsx(n.Box,{width:S,opacity:y||f?1:.2,paddingRight:v?"0":"6px",paddingLeft:h?"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:y?u.light:u.base,height:c?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${g}`)})})})},Ht=k.memo(Mt),$t=({children:r,...l})=>t.jsx(Z.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...l,children:r}),be=(r,l)=>{const c=(r==null?void 0:r.startsWith("http"))||(r==null?void 0:r.startsWith("mailto"));return l&&!c?{to:r}:{href:r}},De=k.forwardRef((r,l)=>{const{label:c,additionalContent:s,mainTextFontSize:u,linkComponent:d,href:p,forceMobileStyle:m=!1,...g}=r,f=d||n.Link,h=be(p,!!d),v=m?u||"xl":[u||"xl",null,null,"lg"],y=m?"xl":["xl",null,null,"lg"],S=m?void 0:[null,null,null,1],C=m?void 0:[null,null,null,"space-between"],R=m?"3":[3,null,null,0],b=m?"1px":["1px",null,null,"unset"],$=m?"tints.cream":["tints.cream",null,null,"unset"],T=m?"100%":["100%",null,null,"fit-content"],W=m?"none":["none",null,null,"block"],A=m?"100%":["100%",null,null,"auto"],z=m?"block":["block",null,null,"none"];return t.jsxs(n.Box,{ref:l,as:f,display:"flex",alignItems:"center",gap:S,justifyContent:C,paddingY:R,color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},borderBottom:b,borderColor:$,width:T,cursor:"pointer",...h,...g,children:[t.jsx(n.Icon,{display:W,as:H.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(n.Flex,{alignItems:"center",gap:"1",width:A,children:[t.jsx(n.Text,{fontSize:v,fontWeight:"medium",children:c}),s&&(typeof s=="string"?t.jsx(n.Text,{fontSize:y,fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:s}):s),t.jsx(n.Icon,{display:z,as:H.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),Ie=k.forwardRef((r,l)=>{const{children:c,isSelected:s,...u}=r,d=r.backgroundColor||(s?"tints.lightCream":"transparent");return t.jsx(n.Button,{ref:l,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)"},...u,children:c})}),wt=({title:r,description:l,imageSrc:c,imageElement:s,button:u,backgroundColor:d="viridian.wash",onClick:p,href:m,linkComponent:g,forceMobileStyle:f=!1})=>{const S=g||n.Link,C=be(m,!!g),R=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0});return t.jsxs(n.Flex,{direction:f?"row":["row",null,null,"column"],alignItems:"center",borderRadius:"xl",overflow:"hidden",height:f?"80px":["80px",null,null,"272px"],backgroundColor:d,onClick:p,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",border:"1px solid",borderColor:"transparent",minWidth:f?"100%":["100%",null,null,"320px"],maxWidth:f?"100%":["100%",null,null,"380px"],_hover:{boxShadow:"lg",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:f?S:R?n.Flex:S,...f?C:R?{}:C,children:[t.jsx(n.Box,{width:f?"72px":["72px",null,null,"100%"],height:f?"100%":["100%",null,null,"188px"],sx:{img:{height:f?"100%":R?"188px":"100%",objectFit:f?"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:f?80:[80,null,null,188],overflow:"hidden",...f?{sx:{div:{height:"100%"}}}:{},children:s})}),t.jsxs(n.Flex,{direction:f?"column":["column",null,null,"row"],justifyContent:f?void 0:[null,null,null,"space-between"],alignItems:f?"left":["left",null,null,"center"],padding:"4",height:f?"80px":["80px",null,null,"84px"],width:"100%",bottom:f?void 0:[null,null,null,"0"],backgroundColor:f?void 0:[null,null,null,`${d}CC`],backdropFilter:f?void 0:[null,null,null,"blur(8px)"],flex:"1",gap:f?void 0:[null,null,null,3],children:[t.jsxs(n.Flex,{direction:"column",justifyContent:"center",height:"100%",children:[t.jsx(n.Text,{fontSize:"lg",fontWeight:"medium",color:"tints.black",children:r}),t.jsx(n.Text,{fontSize:"sm",color:"tints.darkGrey",children:l})]}),f?null:R?t.jsx(n.Box,{children:u}):null]})]})},ue=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}),jt=({color:r=n.theme.colors.viridian.base,width:l})=>t.jsx(Z.Box,{as:"svg",width:l,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"})})}),zt=()=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"eggplant.base",children:[t.jsx("path",{d:"M21.5308 20.4694L16.8368 15.7763C18.1973 14.1429 18.8757 12.0478 18.7309 9.92697C18.5861 7.8061 17.6293 5.82271 16.0593 4.38938C14.4894 2.95605 12.4274 2.18314 10.3021 2.23144C8.17687 2.27974 6.15205 3.14553 4.64888 4.6487C3.14571 6.15187 2.27993 8.17669 2.23163 10.3019C2.18333 12.4272 2.95623 14.4893 4.38956 16.0592C5.82289 17.6291 7.80629 18.586 9.92715 18.7308C12.048 18.8756 14.1431 18.1971 15.7765 16.8366L20.4696 21.5307C20.5393 21.6003 20.622 21.6556 20.713 21.6933C20.8041 21.731 20.9017 21.7505 21.0002 21.7505C21.0988 21.7505 21.1963 21.731 21.2874 21.6933C21.3784 21.6556 21.4612 21.6003 21.5308 21.5307C21.6005 21.461 21.6558 21.3783 21.6935 21.2872C21.7312 21.1962 21.7506 21.0986 21.7506 21C21.7506 20.9015 21.7312 20.8039 21.6935 20.7129C21.6558 20.6218 21.6005 20.5391 21.5308 20.4694ZM3.75021 10.5C3.75021 9.16501 4.14609 7.85996 4.88779 6.74993C5.62949 5.6399 6.6837 4.77474 7.9171 4.26384C9.1505 3.75295 10.5077 3.61928 11.8171 3.87973C13.1264 4.14018 14.3292 4.78306 15.2732 5.72706C16.2172 6.67106 16.8601 7.8738 17.1205 9.18317C17.381 10.4925 17.2473 11.8497 16.7364 13.0831C16.2255 14.3165 15.3603 15.3708 14.2503 16.1125C13.1403 16.8542 11.8352 17.25 10.5002 17.25C8.71061 17.248 6.99488 16.5363 5.72944 15.2708C4.464 14.0054 3.7522 12.2896 3.75021 10.5Z",fill:"eggplant.base"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.93432 8.99032C9.86202 8.81476 9.55628 8.81476 9.48398 8.99032C8.95816 10.2671 7.93748 11.2877 6.66073 11.8136C6.48517 11.8859 6.48517 12.1916 6.66073 12.2639C7.93745 12.7897 8.95815 13.8103 9.484 15.087C9.55631 15.2626 9.86199 15.2626 9.9343 15.087C10.4601 13.8104 11.4808 12.7897 12.7574 12.2639C12.933 12.1916 12.933 11.8859 12.7574 11.8136C11.4807 11.2877 10.4601 10.267 9.93432 8.99032Z",fill:"eggplant.base"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4348 6.02138C12.3946 5.92618 12.2266 5.92618 12.1864 6.02138C11.9181 6.65674 11.4092 7.16564 10.7738 7.43399C10.6786 7.4742 10.6786 7.64219 10.7738 7.68239C11.4092 7.95073 11.9181 8.45961 12.1864 9.09493C12.2267 9.19012 12.3946 9.19012 12.4348 9.09493C12.7032 8.45962 13.2121 7.95073 13.8474 7.68238C13.9426 7.64217 13.9426 7.47421 13.8474 7.434C13.212 7.16564 12.7032 6.65672 12.4348 6.02138Z",fill:"eggplant.base"})]}),Wt={"&::before":{content:'""',position:"absolute",top:0,left:"-100%",width:"100%",height:"100%",background:"linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent)",animation:"shimmer 5s infinite"},"@keyframes shimmer":{"0%":{left:"-100%"},"100%":{left:"100%"}},"&:hover::before":{animation:"shimmer 5s infinite"}},yt=({desktopTopButtons:r,kitRegistrationElement:l,profileElement:c,cartElement:s,onSearchClick:u,onMenuClick:d,hasSearch:p=!1,onEvaClick:m,hasEvaEnabled:g=!1,logoLink:f="https://www.everlywell.com",setTopOffset:h,linkComponent:v,onLogoClick:y})=>{const S=k.useRef(null),[C]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumTablet})`),[R]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumDesktop})`),b=k.useCallback(()=>{if(S.current){const $=S.current.getBoundingClientRect();h($.bottom)}},[]);return k.useEffect(()=>{b()},[b]),t.jsx(n.Box,{ref:S,paddingY:"4",paddingX:C?4:R?6:8,borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",width:"100%",onMouseEnter:b,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:y,as:v||n.Link,...be(f,!!v),children:t.jsx(jt,{width:"116px"})}),t.jsx(n.Flex,{display:["none",null,"none","none","flex","flex"],children:r})]}),t.jsxs(n.Flex,{alignItems:"center",gap:"2",children:[t.jsx(n.Box,{display:["none",null,"none","none","none","block"],children:l}),p?g?t.jsxs(n.Button,{height:C?"40px":"48px",paddingX:C?"12px !important":"16px !important",fontSize:C?"12px":"lg",color:"violet.dark",backgroundColor:"eggplant.wash",_hover:{backgroundColor:"eggplant.wash",filter:"brightness(0.95)"},fill:"eggplant.base",gap:C?1:2,onClick:m,position:"relative",overflow:"hidden",borderRadius:"full",sx:Wt,children:[t.jsx(zt,{}),t.jsx("span",{children:C?"AI Search":"Ask or Search"})]}):t.jsx(ue,{"aria-label":"Search",icon:t.jsx(n.Icon,{as:H.MagnifyingGlass}),onClick:u,backgroundColor:"tints.cream",color:"tints.black",_hover:{backgroundColor:"tints.cream",filter:"brightness(0.95)"}}):null,s,t.jsx(n.Box,{display:["flex",null,null,"flex","flex","flex","none"],children:t.jsx(ue,{icon:t.jsx(H.List,{}),"aria-label":"menu","data-testid":"menu-button",onClick:d})}),t.jsx(n.Box,{display:["none",null,null,"none","none","none","block"],children:c})]})]})})},kt=({count:r=0,...l})=>t.jsxs(n.Box,{position:"relative",display:"inline-block",children:[t.jsx(ue,{icon:t.jsx(H.Basket,{}),...l}),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:l=!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,s)=>t.jsx(n.Skeleton,{width:"90px",height:"48px"},s)),l&&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"})," "]})]})})}),Vt=(r,l)=>{let c;return(...s)=>{c&&clearTimeout(c),c=setTimeout(()=>{r(...s)},l)}},tt=r=>r.toLowerCase().replace(/['']/g,"").replace(/[^a-z0-9]/g,""),Yt=(r,l)=>{r.length<l.length&&([r,l]=[l,r]);let c=Array(l.length+1).fill(0),s=Array(l.length+1).fill(0);for(let u=0;u<=l.length;u++)c[u]=u;for(let u=1;u<=r.length;u++){s[0]=u;for(let d=1;d<=l.length;d++){const p=r[u-1]===l[d-1]?0:1;s[d]=Math.min(s[d-1]+1,c[d]+1,c[d-1]+p)}[c,s]=[s,c]}return c[l.length]},Ne=(r,l,c=.6)=>{if(r.length<=3||l.length<=3)return r.includes(l)||l.includes(r);const s=Yt(r,l),u=Math.max(r.length,l.length);return 1-s/u>=c},gt=(r,l)=>{const c=r.split(/\s+/);return l.length<=4?c.some(s=>s.includes(l)):c.some(s=>{if(Ne(s,l))return!0;if(s.length>=l.length)for(let u=0;u<=s.length-l.length;u++){const d=s.slice(u,u+l.length+1);if(Ne(l,d))return!0}return!1})},rt="nav-drawer-hover",ot="nav-drawer-animation-start",lt="nav-drawer-animation-end",vt=r=>{window.dispatchEvent(new CustomEvent(rt,{detail:{isHovering:r},bubbles:!0,cancelable:!0}))},mt=r=>{window.dispatchEvent(new CustomEvent(r,{bubbles:!0,cancelable:!0}))},Gt=(r=!1,l=!1,c=!1)=>r||!l?"column":c?"row":"row-reverse",Ut=We.motion(n.DrawerContent),Zt=We.motion(n.DrawerOverlay),ze=({isOpen:r=!1,onClose:l,title:c,navDrawerLinks:s,bottomNavButtons:u,spotlightCards:d,bottomButton:p,hasBackButton:m=!0,onBackClick:g,hasOnlySpotlightCards:f=!1,hasSearch:h=!1,onSearch:v=()=>({}),topOffset:y,forceMobilePlacement:S=!1})=>{var V,te,ne,q,_,B;const C=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,R=S?"right":C?"top":"right",b=R==="right",[$,T]=k.useState(0),[W,A]=k.useState(!1),z=()=>{T(L=>L+1)},X=k.useCallback(Vt(L=>{v(L),z()},100),[]);k.useEffect(()=>{r&&(A(!0),mt(ot))},[r]);const Q=()=>{r||(A(!1),l()),mt(lt)};return t.jsx(n.Drawer,{isOpen:W||r,closeOnOverlayClick:!0,onClose:()=>{W&&!b||l()},placement:R,blockScrollOnMount:!1,autoFocus:!1,...b?{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...(te=(V=n.theme.components.Drawer)==null?void 0:V.baseStyle)==null?void 0:te.dialogContainer,zIndex:"popover"},dialog:{...(q=(ne=n.theme.components.Drawer)==null?void 0:ne.baseStyle)==null?void 0:q.dialog,maxW:"560px",width:"auto"}}}}:{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...(B=(_=n.theme.components.Drawer)==null?void 0:_.baseStyle)==null?void 0:B.dialogContainer,top:`${y}px`,zIndex:"overlay"}}}},children:t.jsx(We.AnimatePresence,{children:r?t.jsxs(t.Fragment,{children:[t.jsx(Zt,{backgroundColor:"tints.black",top:b?"0":`${y}px`,opacity:b?"0.4 !important":void 0,zIndex:b?"modal":"overlay",...b?{}:{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.15,ease:"easeOut"}}}),t.jsxs(Ut,{onClick:L=>{const re=L.target.closest("a");re&&re.href===window.location.href&&l()},onMouseEnter:()=>{b||vt(!0)},onMouseLeave:L=>{b||(!h||h&&(L.target===L.currentTarget||!L.currentTarget.contains(L.target)&&!W))&&vt(!1)},paddingTop:"4",paddingX:b?"4":"12",paddingBottom:"24",overflow:b?"auto":"hidden",maxHeight:"100vh",position:"relative",top:b?void 0:`${y}px !important`,onAnimationComplete:Q,boxShadow:"none",...b?{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:[!h&&!b?null:t.jsxs(n.DrawerHeader,{padding:"0",flexDirection:h?"column":"row",gap:h?"4":"0",children:[b?t.jsxs(n.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[m?t.jsx(ue,{icon:t.jsx(H.CaretLeft,{}),onClick:()=>{g&&g()},"aria-label":"Back"}):null,t.jsx(n.Text,{color:"tints.uiGrey",fontSize:"xl",children:c}),t.jsx(ue,{icon:t.jsx(H.X,{}),onClick:l,"aria-label":"Close"})]}):null,h&&t.jsxs(Z.InputGroup,{width:"100%",children:[t.jsx(Z.Input,{onChange:L=>{X(L.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(Z.InputRightElement,{pointerEvents:"none",children:t.jsx(Z.Icon,{as:H.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(n.DrawerBody,{paddingX:"0",paddingBottom:b?"6":"4","data-testid":`navbar-drawer-body-${c.toLowerCase()}`,children:t.jsxs(We.motion.div,{...b?{}:{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:Gt(f,!b,h),gap:"24px",justifyContent:"space-between"},children:[d?t.jsx(n.Box,{gap:b?"3":"6",display:"flex",justifyContent:b?void 0:"center",sx:{flexWrap:"wrap",flexDirection:b?"column":"row"},children:d}):null,t.jsxs(n.Flex,{position:b?void 0:"relative",flexDirection:"column",gap:"6",width:b?"100%":h?void 0:"auto",children:[s?t.jsx(n.Box,{children:s}):null,u&&b?t.jsx(n.Box,{children:u}):null,p?t.jsx(n.Box,{width:"100%",position:b?void 0:"absolute",bottom:b?void 0:0,...b?{sx:{a:{width:"100%"}}}:{},children:p}):null]})]},$)})]})]}):null})})},Xt=({source:r,onSearchCallback:l,isActive:c})=>{const[s,u]=k.useState(""),[d,p]=k.useState([]),m=(h,v)=>{if(!h)return[];const S=tt(h).split(/\s+/);return v.filter(C=>{const R=tt(C.label);if(S.some(A=>gt(R,A)))return!0;const $=R.split(/\s+/),T=S.some(A=>$.some(z=>z.includes(A)||Ne(A,z))),W=typeof C.additionalContent=="string"&&S.some(A=>{const z=tt(C.additionalContent);return gt(z,A)||z.split(/\s+/).some(X=>X.includes(A)||Ne(A,X))});return T||W}).sort((C,R)=>C.label.localeCompare(R.label))},g=h=>{if(u(h),!h){p([]);return}const v=m(h,r);p(v),l&&l(h,v)},f=()=>{u(""),p([])};return k.useEffect(()=>{c||(u(""),p([]))},[c]),{query:s,results:d,handleClose:f,handleSearch:g}},Kt=r=>{const l=new Set;return r.reduce((c,s)=>{var d;const u=((d=s.sections)==null?void 0:d.reduce((p,m)=>{const g=m.links.filter(f=>l.has(f.label)||f.isSearchable!==!0?!1:(l.add(f.label),!0));return[...p,...g]},[]))??[];return[...c,...u]},[])},Jt=({categories:r=[],onCartClick:l,mainCategoryLabel:c="Menu",logoLink:s="https://www.everlywell.com",hasSearch:u=!0,hasEvaEnabled:d=!1,onEvaClick:p,onSearchClick:m,registrationUrl:g,profileUrl:f="https://secure.everlywell.com/login",mobileBottomButtons:h=[],numberOfCartItems:v=0,linkComponent:y,onSearchCallback:S,onLinkClick:C,onCategoryOpen:R,onMobileMenuOpen:b,onBackToMainMenu:$,onRegisterKitClick:T,onProfileClick:W,onLogoClick:A,shopAllProductsUrl:z,onShopAllProductsClick:X,hideableButtons:Q})=>{var $e,Se,Re;const[V,te]=k.useState(!1),[ne,q]=k.useState(!1),[_,B]=k.useState(null),[L,J]=k.useState(!1),[re,Be]=k.useState(!1),[de,Le]=k.useState(0),[Fe,Ce]=k.useState(!1),[we,oe]=k.useState(!1);k.useEffect(()=>{const a=()=>Ce(!0),I=()=>Ce(!1);return window.addEventListener(ot,a),window.addEventListener(lt,I),()=>{window.removeEventListener(ot,a),window.removeEventListener(lt,I)}},[]);const Oe=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,le=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!1,desktop:!1,fullDesktop:!0})??!1,je=!le,ye=Z.useBreakpointValue({base:!0,tablet:!0,largeTablet:!0,mediumDesktop:!1,desktop:!1,fullDesktop:!1})??!0;k.useEffect(()=>{ee(),B(null)},[Oe]);const{query:fe,results:ae,handleSearch:he}=Xt({source:Kt(r),onSearchCallback:S,isActive:ne}),Ae=ae.length>0,pe=y||n.Link,Ve=be(z,!!y),Ye=fe&&t.jsxs(n.Flex,{gap:Ae?"6":0,direction:"column",children:[Ae?t.jsx(n.Text,{color:"tints.uiGrey",children:`${ae.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:pe,onClick:X,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],...Ve,children:"Shop all products"})]}),t.jsx(n.Grid,{columns:[1,1,1,4],children:ae.map((a,I)=>t.jsx(n.GridItem,{children:t.jsx(De,{href:a.href,label:a.label,additionalContent:a==null?void 0:a.additionalContent,linkComponent:y,forceMobileStyle:!Oe})},`${a.label}-${I}`))})]}),ee=()=>{te(!1),B(null)},G=a=>"href"in a,Pe=a=>{G(a)?C==null||C(a.label):(oe(V||!le),B(a))},Me=a=>{J(!0),q(!1),B(null),!G(a)&&(a.sections||a.spotlightCards)&&(oe(!1),B(a))},xe=()=>{J(!1)};k.useEffect(()=>{const a=I=>{Be(I.detail.isHovering)};return window.addEventListener(rt,a),()=>{window.removeEventListener(rt,a)}},[]),k.useEffect(()=>{!L&&!re&&(B(null),q(!1),!V&&le&&oe(!1))},[L,re,V,le]),k.useEffect(()=>{let a=window.location.href;const I=()=>{const M=window.location.href;M!==a&&(a=M,ee(),B(null))},F=setInterval(I,100);return window.addEventListener("popstate",I),()=>{window.removeEventListener("popstate",I),clearInterval(F)}},[]);const ke=a=>G(a)&&(!a.buttonProps||Object.keys(a.buttonProps).length===0||a.buttonProps===void 0),Ge=r==null?void 0:r.map((a,I)=>{var M,ge;const F=Q.includes(a.label);return t.jsx(Ie,{height:"48px",paddingInline:"16px !important",onMouseEnter:()=>{Me(a),R==null||R(a.label)},onMouseLeave:xe,isSelected:(_==null?void 0:_.label)===a.label,as:G(a)&&pe?pe:n.Link,href:G(a)?a.href:void 0,onClick:G(a)?()=>C==null?void 0:C(a.label):void 0,...F&&{display:{base:"none",fullDesktop:"flex"}},...((M=a==null?void 0:a.context)==null?void 0:M.desktop)==="link"||ke(a)?{_hover:{backgroundColor:"tints.lightCream",textDecoration:"none",filter:"brightness(0.95)"}}:{},...((ge=a==null?void 0:a.context)==null?void 0:ge.desktop)!=="link"&&a.buttonProps,children:a.label},`${a.label}-${I}`)}),Ee=($e=r.filter(a=>{var I;return((I=a==null?void 0:a.context)==null?void 0:I.mobile)==="link"||(!G(a)&&a.isMobileTopLink!==!1||ke(a))&&(je&&Q.includes(a.label)||ye)}))==null?void 0:$e.map((a,I)=>{var M;const F=a;return ke(F)||((M=F==null?void 0:F.context)==null?void 0:M.mobile)==="link"?t.jsx(n.Box,{children:t.jsx(De,{label:F.label,role:"link",href:F.href,mainTextFontSize:"3xl",linkComponent:y,forceMobileStyle:!0})},`${F.label}-${I}`):t.jsx(n.Box,{onClick:()=>{Pe(F),R==null||R(F.label)},children:t.jsx(De,{label:F.label,role:"link",additionalContent:F.additionalContent,mainTextFontSize:"3xl",linkComponent:y,forceMobileStyle:!0})},`${F.label}-${I}`)}),Ue=t.jsxs(t.Fragment,{children:[t.jsx(Ie,{as:n.Link,href:f,width:"100%",backgroundColor:"tints.cream",onClick:W,children:t.jsxs(n.Flex,{gap:"2",children:["Log in to My Everly",t.jsx(n.Icon,{as:H.User,size:24})]})},"my-everly"),t.jsx(Ie,{as:n.Link,width:"100%",href:g,backgroundColor:"tints.cream",onClick:T,children:t.jsxs(n.Flex,{gap:"2",children:["Register kit",t.jsx(n.Icon,{as:H.QrCode,size:24})]})},"register-kit")]}),Ze=t.jsxs(n.Flex,{gap:"2",flexDirection:"column",children:[h,Ue]}),K=we||V,He=_?t.jsx(n.Flex,{direction:K?"column":["column",null,null,"row"],gap:"8",children:(Se=_==null?void 0:_.sections)==null?void 0:Se.map((a,I)=>{const F=[];for(let M=0;M<a.links.length;M+=3)F.push(a.links.slice(M,M+3));return t.jsxs(n.Box,{children:[t.jsx(n.Text,{fontSize:"md",color:"tints.uiGrey",marginBottom:K?0:[0,null,null,6],children:a.title}),t.jsx(n.Flex,{flexDirection:K?"column":["column",null,null,"row"],gap:K?void 0:[null,null,null,8],children:F==null?void 0:F.map((M,ge)=>t.jsx(n.Flex,{flexDirection:"column",gap:K?void 0:[null,null,null,5],marginLeft:K?void 0:[null,null,null,-2],children:M==null?void 0:M.map((se,Xe)=>t.jsx(De,{label:se.label,href:se.href,additionalContent:se.additionalContent,linkComponent:y,forceMobileStyle:K,onClick:()=>C==null?void 0:C(se.label)},`${se.label}-${Xe}`))},ge))})]},`${a.title}-${I}`)})}):null,ie=_!=null&&_.spotlightCards?(Re=_.spotlightCards)==null?void 0:Re.map((a,I)=>t.jsx(wt,{...a,forceMobileStyle:K},`${a.title}-${I}`)):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(yt,{desktopTopButtons:Ge,kitRegistrationElement:t.jsx(Ie,{as:n.Link,height:"48px",paddingInline:"16px !important",href:g,onClick:T,backgroundColor:"tints.cream",children:"Register Kit"}),profileElement:t.jsx(n.Link,{href:f,"aria-label":"login",onClick:W,children:t.jsx(ue,{icon:t.jsx(n.Icon,{as:H.User}),"aria-label":"Profile"})}),cartElement:t.jsx(kt,{"aria-label":"Cart",count:v,onClick:l}),onSearchClick:()=>{q(!ne),m==null||m()},onMenuClick:()=>{te(!0),b==null||b()},hasSearch:u,hasEvaEnabled:d,onEvaClick:p,logoLink:s,linkComponent:y,onLogoClick:A,setTopOffset:Le}),t.jsxs(n.Box,{position:"relative",zIndex:"modal",children:[t.jsx(ze,{isOpen:V,onClose:ee,title:c,navDrawerLinks:Ee,bottomNavButtons:Ze,hasBackButton:!1,topOffset:de,forceMobilePlacement:!0}),t.jsx(ze,{isOpen:!!_,onClose:()=>{ee(),B(null),V||oe(!1)},title:(_==null?void 0:_.label)||"",navDrawerLinks:He,onBackClick:()=>{B(null),V||oe(!1)},spotlightCards:ie,hasOnlySpotlightCards:_==null?void 0:_.hasOnlySpotlightCards,bottomButton:_==null?void 0:_.bottomButton,topOffset:de,forceMobilePlacement:we||V||V&&!le}),t.jsx(ze,{isOpen:ne,onClose:()=>q(!1),title:"Search",navDrawerLinks:Ye,onSearch:he,hasSearch:!0,hasBackButton:!1,topOffset:de})]})]})},bt=({links:r,linkComponent:l,onLinkClick:c})=>{const s=l||n.Link,u=d=>{c&&c(d)};return t.jsx(n.Flex,{direction:"column",gap:6,children:r.map(d=>t.jsx(n.Text,{as:s,color:"white",size:"lg",_hover:{color:"viridian.lighter",textDecoration:"none"},onClick:()=>u(d.label),...be(d.href,!!l),children:d.label},d.label))})},Qt=({title:r,links:l,isLast:c})=>{const s=c?"transparent":`${n.theme.colors.viridian.lighter}20`;return l?t.jsx(n.AccordionItem,{borderColor:s,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:H.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:l})]})}):null},qt=({title:r,links:l})=>l?t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:"viridian.lighter",mb:6,fontSize:"lg",children:r}),l]}):null,en=({sections:r,linkComponent:l,onLinkClick:c})=>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:u,links:d})=>t.jsx(qt,{title:u,links:t.jsx(bt,{links:d,linkComponent:l,onLinkClick:c})},u))})}):t.jsx(n.Accordion,{allowMultiple:!0,defaultIndex:[0],width:"100%",display:"flex",flexDirection:"column",children:r.map(({title:u,links:d},p)=>t.jsx(Qt,{title:u,links:t.jsx(bt,{links:d,linkComponent:l,onLinkClick:c}),isLast:p===r.length-1},u))}),Ct={instagram:H.InstagramLogo,linkedin:H.LinkedinLogo,facebook:H.FacebookLogo,tiktok:H.TiktokLogo,x:H.XLogo},tn=({socialLinks:r,onEmailSubmit:l,socialMediaLabel:c,newsletterLabel:s,onLinkClick:u,showNewsletter:d=!0})=>{const[p,m]=k.useState(""),g=()=>{p&&l&&(l(p),m(""))},f=v=>{v.key==="Enter"&&g()},h=v=>{u&&u(v)};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:"viridian.lighter",mb:6,size:"lg",children:s}),t.jsxs(n.InputGroup,{children:[t.jsx(n.Input,{placeholder:"Enter your email",bg:"transparent",border:"1px solid",borderColor:"viridian.lighter",color:"viridian.lighter",_placeholder:{color:"viridian.lighter"},opacity:.66,height:"52px",pr:"48px",value:p,onChange:v=>m(v.target.value),onKeyPress:f}),t.jsx(n.InputRightElement,{h:"52px",pr:4,children:t.jsx(n.Icon,{as:H.ArrowRight,color:"viridian.lighter",width:"24px",height:"24px",opacity:.66,cursor:"pointer",onClick:g,"data-testid":"arrow-right-icon",role:"button","aria-label":"Submit"})})]})]}),t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:"viridian.lighter",marginBottom:4,size:"lg",children:c}),t.jsx(n.Flex,{gap:3,children:r==null?void 0:r.map(v=>t.jsx(n.Link,{href:v.href,target:"_blank",rel:"noopener noreferrer","aria-label":v.name,onClick:()=>h(v.name),children:Ct[v.name.toLowerCase()]&&t.jsx(n.Icon,{as:Ct[v.name.toLowerCase()],color:"white",width:["48px",null,"24px",null],height:["48px",null,"24px",null]})},v.name))})]})]})},nn=({links:r,linkComponent:l,onLinkClick:c})=>{const s=l||n.Link,u=p=>{c&&c(p)},d=r==null?void 0:r.map(p=>t.jsx(n.Text,{as:s,color:"viridian.lighter",size:"sm",_hover:{color:"white",textDecoration:"none"},onClick:()=>u(p.label),...be(p.href,!!l),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:d}),t.jsxs(n.Text,{color:"viridian.lighter",fontSize:"sm",children:["© Everlywell ",new Date().getFullYear()]})]})},rn=k.forwardRef(({navigationSections:r=[],disclaimer:l,newsletterLabel:c,socialMediaLabel:s,socialLinks:u,complianceLinks:d,linkComponent:p,onEmailSubmit:m,additionalContent:g,onLinkClick:f,onSocialMediaClick:h,showNewsletter:v=!0},y)=>t.jsx(n.Box,{as:"footer",bg:"viridian.dark",py:[6,8],px:[4,6],ref:y,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(jt,{width:["150px","202px"],color:"white"})}),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:p,onLinkClick:f}),t.jsx(tn,{socialLinks:u,newsletterLabel:c,socialMediaLabel:s,onEmailSubmit:m,onLinkClick:h,showNewsletter:v})]}),t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",alignContent:"center",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[l&&t.jsx(n.Text,{color:"viridian.lighter",fontSize:"sm",maxWidth:["100%","100%","1024px"],dangerouslySetInnerHTML:{__html:l},sx:{"a:hover":{color:"viridian.light",textDecoration:"underline"}}}),g]})]}),t.jsx(n.Box,{borderTop:"1px solid",borderColor:`${n.theme.colors.viridian.lighter}20`,marginTop:"10",marginBottom:"8"}),t.jsx(nn,{disclaimer:l,links:d,linkComponent:p,onLinkClick:f})]})})),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},ln=({isOpen:r,onClose:l,children:c,header:s,footer:u,headerProps:d,bodyProps:p,footerProps:m,contentProps:g,...f})=>{var W,A,z,X,Q;const[h]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.tablet})`),v=(Q=(X=(z=(A=(W=n.theme)==null?void 0:W.components)==null?void 0:A.Modal)==null?void 0:z.baseStyle)==null?void 0:X.overlay)==null?void 0:Q.background,{Container:y,Overlay:S,Content:C,Header:R,Body:b,Footer:$,CloseButton:T}=on(h);return t.jsxs(y,{...f,isOpen:r,onClose:l,size:"xl",...h?{placement:"bottom"}:{},children:[t.jsx(S,{backdropFilter:"auto",backgroundColor:v}),t.jsxs(C,{backgroundColor:"tints.white",borderRadius:h?"20px 20px 0 0":"20px",overflowY:"auto",gap:0,...s&&h&&{paddingTop:0},...g,children:[t.jsxs(R,{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,...h?{paddingBlock:4}:{paddingTop:6,paddingBlockEnd:2},...d,children:[s,t.jsx(T,{position:"static",width:32,height:32,backgroundColor:"tints.cream",sx:{".chakra-icon":{fontSize:"1rem"}},children:t.jsx(n.Icon,{as:H.X,weight:"light"})})]}),t.jsx(b,{color:"tints.darkGrey",paddingInline:4,...p,children:c}),t.jsx($,{paddingInline:4,...m,children:u})]})]})};exports.BasketButton=kt;exports.CategoryLabel=$t;exports.DrawerModal=ln;exports.Footer=rn;exports.NavButton=Ie;exports.NavSkeleton=Nt;exports.NavbarDrawer=ze;exports.NavbarDrawerLink=De;exports.NavigationBar=Jt;exports.SpotlightCard=wt;exports.Stepper=Ht;exports.TopNavIconButton=ue;exports.TopNavigation=yt;
30
+ <%s key={someKey} {...props} />`,ze,oe,Ot,oe),rt[oe+ze]=!0}}return e===c?_t(M):Tt(M),M}}function Dt(e,o,s){return ot(e,o,s,!0)}function It(e,o,s){return ot(e,o,s,!1)}var Bt=It,Lt=Dt;ye.Fragment=c,ye.jsx=Bt,ye.jsxs=Lt}()),ye}process.env.NODE_ENV==="production"?Ge.exports=Mt():Ge.exports=Pt();var t=Ge.exports;const Ve=60,lt=6,At=r=>{const{activeStepIndex:a,hideIndicators:u=!1,steps:c,stepperTheme:i={light:"eggplant.light",base:"eggplant.base"}}=r,{activeStep:d,setActiveStep:f}=n.useSteps({index:a,count:c.length});return S.useEffect(()=>{f(a)},[a,f]),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:c.map((x,v)=>{const p=d===v,h=v===0,m=v===c.length-1,T=d>v;let R=`${Ve}px`;const k=`calc(100% - ((${Ve*(c.length-1)}px) - (${c.length-1} * ${lt*2}px)))`;return p?R=k:(h||m)&&(R=`${Ve-lt}px`),t.jsx(n.Box,{width:R,opacity:T||p?1:.2,paddingRight:m?"0":"6px",paddingLeft:h?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(n.Box,{paddingTop:u?2:5,position:"relative",width:"100%",children:t.jsx(n.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:T?i.light:i.base,height:u?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${v}`)})})})},Ht=S.memo(At),$t=({children:r,...a})=>t.jsx(G.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...a,children:r}),ge=(r,a)=>{const u=(r==null?void 0:r.startsWith("http"))||(r==null?void 0:r.startsWith("mailto"));return a&&!u?{to:r}:{href:r}},Se=S.forwardRef((r,a)=>{const{label:u,additionalContent:c,mainTextFontSize:i,linkComponent:d,href:f,forceMobileStyle:x=!1,...v}=r,p=d||n.Link,h=ge(f,!!d),m=x?i||"xl":[i||"xl",null,null,"lg"],T=x?"xl":["xl",null,null,"lg"],R=x?void 0:[null,null,null,1],k=x?void 0:[null,null,null,"space-between"],L=x?"3":[3,null,null,0],b=x?"1px":["1px",null,null,"unset"],A=x?"tints.cream":["tints.cream",null,null,"unset"],y=x?"100%":["100%",null,null,"fit-content"],C=x?"none":["none",null,null,"block"],O=x?"100%":["100%",null,null,"auto"],H=x?"block":["block",null,null,"none"];return t.jsxs(n.Box,{ref:a,as:p,display:"flex",alignItems:"center",gap:R,justifyContent:k,paddingY:L,color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},borderBottom:b,borderColor:A,width:y,cursor:"pointer",...h,...v,children:[t.jsx(n.Icon,{display:C,as:z.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(n.Flex,{alignItems:"center",gap:"1",width:O,children:[t.jsx(n.Text,{fontSize:m,fontWeight:"medium",children:u}),c&&(typeof c=="string"?t.jsx(n.Text,{fontSize:T,fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:c}):c),t.jsx(n.Icon,{display:H,as:z.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),pt=S.forwardRef((r,a)=>{const{children:u,isSelected:c,...i}=r,d=r.backgroundColor||(c?"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)"},...i,children:u})}),ht=({title:r,description:a,imageSrc:u,imageElement:c,button:i,backgroundColor:d="viridian.wash",onClick:f,href:x,linkComponent:v,forceMobileStyle:p=!1})=>{const R=v||n.Link,k=ge(x,!!v),L=G.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0});return t.jsxs(n.Flex,{direction:p?"row":["row",null,null,"column"],alignItems:"center",borderRadius:"xl",overflow:"hidden",height:p?"80px":["80px",null,null,"272px"],backgroundColor:d,onClick:f,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",border:"1px solid",borderColor:"transparent",minWidth:p?"100%":["100%",null,null,"320px"],maxWidth:p?"100%":["100%",null,null,"380px"],_hover:{boxShadow:"lg",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:p?R:L?n.Flex:R,...p?k:L?{}:k,children:[t.jsx(n.Box,{width:p?"72px":["72px",null,null,"100%"],height:p?"100%":["100%",null,null,"188px"],sx:{img:{height:p?"100%":L?"188px":"100%",objectFit:p?"cover":"contain"}},children:u?t.jsx(n.Image,{src:u,objectFit:"cover",width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(n.Box,{height:p?80:[80,null,null,188],overflow:"hidden",...p?{sx:{div:{height:"100%"}}}:{},children:c})}),t.jsxs(n.Flex,{direction:p?"column":["column",null,null,"row"],justifyContent:p?void 0:[null,null,null,"space-between"],alignItems:p?"left":["left",null,null,"center"],padding:"4",height:p?"80px":["80px",null,null,"84px"],width:"100%",bottom:p?void 0:[null,null,null,"0"],backgroundColor:p?void 0:[null,null,null,`${d}CC`],backdropFilter:p?void 0:[null,null,null,"blur(8px)"],flex:"1",gap:p?void 0:[null,null,null,3],children:[t.jsxs(n.Flex,{direction:"column",justifyContent:"center",height:"100%",children:[t.jsx(n.Text,{fontSize:"lg",fontWeight:"medium",color:"tints.black",children:r}),t.jsx(n.Text,{fontSize:"sm",color:"tints.darkGrey",children:a})]}),p?null:L?t.jsx(n.Box,{children:i}):null]})]})},Le=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(G.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"})})}),xt=({desktopTopButtons:r,logoLink:a="https://www.everlywell.com",setTopOffset:u,linkComponent:c,onLogoClick:i,rightSideButtons:d})=>{const f=S.useRef(null),[x]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumTablet})`),[v]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumDesktop})`),p=S.useCallback(()=>{if(f.current){const h=f.current.getBoundingClientRect();u(h.bottom)}},[]);return S.useEffect(()=>{p()},[p]),t.jsx(n.Box,{ref:f,paddingY:"4",paddingX:x?4:v?6:8,borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",width:"100%",onMouseEnter:p,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:i,as:c||n.Link,...ge(a,!!c),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})]})})},Nt=({count:r=0,...a})=>t.jsxs(n.Box,{position:"relative",display:"inline-block",children:[t.jsx(Le,{icon:t.jsx(z.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})]}),Wt=({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((u,c)=>t.jsx(n.Skeleton,{width:"90px",height:"48px"},c)),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"})," "]})]})})}),zt=(r,a)=>{let u;return(...c)=>{u&&clearTimeout(u),u=setTimeout(()=>{r(...c)},a)}},Ye=r=>r.toLowerCase().replace(/['']/g,"").replace(/[^a-z0-9]/g,""),Vt=(r,a)=>{r.length<a.length&&([r,a]=[a,r]);let u=Array(a.length+1).fill(0),c=Array(a.length+1).fill(0);for(let i=0;i<=a.length;i++)u[i]=i;for(let i=1;i<=r.length;i++){c[0]=i;for(let d=1;d<=a.length;d++){const f=r[i-1]===a[d-1]?0:1;c[d]=Math.min(c[d-1]+1,u[d]+1,u[d-1]+f)}[u,c]=[c,u]}return u[a.length]},Oe=(r,a,u=.6)=>{if(r.length<=3||a.length<=3)return r.includes(a)||a.includes(r);const c=Vt(r,a),i=Math.max(r.length,a.length);return 1-c/i>=u},st=(r,a)=>{const u=r.split(/\s+/);return a.length<=4?u.some(c=>c.includes(a)):u.some(c=>{if(Oe(c,a))return!0;if(c.length>=a.length)for(let i=0;i<=c.length-a.length;i++){const d=c.slice(i,i+a.length+1);if(Oe(a,d))return!0}return!1})},Ue="nav-drawer-hover",Ze="nav-drawer-animation-start",Ke="nav-drawer-animation-end",ct=r=>{window.dispatchEvent(new CustomEvent(Ue,{detail:{isHovering:r},bubbles:!0,cancelable:!0}))},ut=r=>{window.dispatchEvent(new CustomEvent(r,{bubbles:!0,cancelable:!0}))},Yt=(r=!1,a=!1,u=!1)=>r||!a?"column":u?"row":"row-reverse",Gt=Be.motion(n.DrawerContent),Ut=Be.motion(n.DrawerOverlay),Ie=({isOpen:r=!1,onClose:a,title:u,navDrawerLinks:c,bottomNavButtons:i,spotlightCards:d,bottomButton:f,hasBackButton:x=!0,onBackClick:v,hasOnlySpotlightCards:p=!1,hasSearch:h=!1,onSearch:m=()=>({}),topOffset:T,forceMobilePlacement:R=!1})=>{var ae,Q,ie,le,q,$;const k=G.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,L=R?"right":k?"top":"right",b=L==="right",[A,y]=S.useState(0),[C,O]=S.useState(!1),H=()=>{y(D=>D+1)},V=S.useCallback(zt(D=>{m(D),H()},100),[]);S.useEffect(()=>{r&&(O(!0),ut(Ze))},[r]);const J=()=>{r||(O(!1),a()),ut(Ke)};return t.jsx(n.Drawer,{isOpen:C||r,closeOnOverlayClick:!0,onClose:()=>{C&&!b||a()},placement:L,blockScrollOnMount:!1,autoFocus:!1,...b?{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...(Q=(ae=n.theme.components.Drawer)==null?void 0:ae.baseStyle)==null?void 0:Q.dialogContainer,zIndex:"popover"},dialog:{...(le=(ie=n.theme.components.Drawer)==null?void 0:ie.baseStyle)==null?void 0:le.dialog,maxW:"560px",width:"auto"}}}}:{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...($=(q=n.theme.components.Drawer)==null?void 0:q.baseStyle)==null?void 0:$.dialogContainer,top:`${T}px`,zIndex:"overlay"}}}},children:t.jsx(Be.AnimatePresence,{children:r?t.jsxs(t.Fragment,{children:[t.jsx(Ut,{backgroundColor:"tints.black",top:b?"0":`${T}px`,opacity:b?"0.4 !important":void 0,zIndex:b?"modal":"overlay",...b?{}:{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.15,ease:"easeOut"}}}),t.jsxs(Gt,{onClick:D=>{const U=D.target.closest("a");U&&U.href===window.location.href&&a()},onMouseEnter:()=>{b||ct(!0)},onMouseLeave:D=>{b||(!h||h&&(D.target===D.currentTarget||!D.currentTarget.contains(D.target)&&!C))&&ct(!1)},paddingTop:"4",paddingX:b?"4":"12",paddingBottom:"24",overflow:b?"auto":"hidden",maxHeight:"100vh",position:"relative",top:b?void 0:`${T}px !important`,onAnimationComplete:J,boxShadow:"none",...b?{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:[!h&&!b?null:t.jsxs(n.DrawerHeader,{padding:"0",flexDirection:h?"column":"row",gap:h?"4":"0",children:[b?t.jsxs(n.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[x?t.jsx(Le,{icon:t.jsx(z.CaretLeft,{}),onClick:()=>{v&&v()},"aria-label":"Back"}):null,t.jsx(n.Text,{color:"tints.uiGrey",fontSize:"xl",children:u}),t.jsx(Le,{icon:t.jsx(z.X,{}),onClick:a,"aria-label":"Close"})]}):null,h&&t.jsxs(G.InputGroup,{width:"100%",children:[t.jsx(G.Input,{onChange:D=>{V(D.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(G.InputRightElement,{pointerEvents:"none",children:t.jsx(G.Icon,{as:z.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(n.DrawerBody,{paddingX:"0",paddingBottom:b?"6":"4","data-testid":`navbar-drawer-body-${u.toLowerCase()}`,children:t.jsxs(Be.motion.div,{...b?{}:{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(p,!b,h),gap:"24px",justifyContent:"space-between"},children:[d?t.jsx(n.Box,{gap:b?"3":"6",display:"flex",justifyContent:b?void 0:"center",sx:{flexWrap:"wrap",flexDirection:b?"column":"row"},children:d}):null,t.jsxs(n.Flex,{position:b?void 0:"relative",flexDirection:"column",gap:"6",width:b?"100%":h?void 0:"auto",children:[c?t.jsx(n.Box,{children:c}):null,i&&b?t.jsx(n.Box,{children:i}):null,f?t.jsx(n.Box,{width:"100%",position:b?void 0:"absolute",bottom:b?void 0:0,...b?{sx:{a:{width:"100%"}}}:{},children:f}):null]})]},A)})]})]}):null})})},Zt=({source:r,onSearchCallback:a,isActive:u})=>{const[c,i]=S.useState(""),[d,f]=S.useState([]),x=(h,m)=>{if(!h)return[];const R=Ye(h).split(/\s+/);return m.filter(k=>{const L=Ye(k.label);if(R.some(O=>st(L,O)))return!0;const A=L.split(/\s+/),y=R.some(O=>A.some(H=>H.includes(O)||Oe(O,H))),C=typeof k.additionalContent=="string"&&R.some(O=>{const H=Ye(k.additionalContent);return st(H,O)||H.split(/\s+/).some(V=>V.includes(O)||Oe(O,V))});return y||C}).sort((k,L)=>k.label.localeCompare(L.label))},v=h=>{if(i(h),!h){f([]);return}const m=x(h,r);f(m),a&&a(h,m)},p=()=>{i(""),f([])};return S.useEffect(()=>{u||(i(""),f([]))},[u]),{query:c,results:d,handleClose:p,handleSearch:v}},Kt=r=>{const a=new Set;return r.reduce((u,c)=>{var d;const i=((d=c.sections)==null?void 0:d.reduce((f,x)=>{const v=x.links.filter(p=>a.has(p.label)||p.isSearchable!==!0?!1:(a.add(p.label),!0));return[...f,...v]},[]))??[];return[...u,...i]},[])},vt=()=>{const[r,a]=S.useState(!1),[u,c]=S.useState(!1),[i,d]=S.useState(null);return{isMainMenuOpen:r,isSearchOpen:u,selectedCategory:i,clearSelectedCategory:()=>d(null),handleSelectCategory:R=>d(R),closeMainMenu:()=>{a(!1),d(null)},closeSearch:()=>c(!1),toggleSearch:()=>c(R=>!R),openMainMenu:()=>a(!0),openSearch:()=>c(!0)}},Xt=({categories:r=[],mainCategoryLabel:a="Menu",logoLink:u="https://www.everlywell.com",mobileBottomButtons:c=[],linkComponent:i,onSearchCallback:d,onLinkClick:f,onCategoryOpen:x,onLogoClick:v,shopAllProductsUrl:p,onShopAllProductsClick:h,hideableButtons:m,children:T})=>{var be,we,re;const R=vt(),{isMainMenuOpen:k,isSearchOpen:L,closeMainMenu:b,closeSearch:A,clearSelectedCategory:y,selectedCategory:C,handleSelectCategory:O}=R,[H,V]=S.useState(!1),[J,ae]=S.useState(!1),[Q,ie]=S.useState(0),[le,q]=S.useState(!1),[$,D]=S.useState(!1);S.useEffect(()=>{const l=()=>q(!0),B=()=>q(!1);return window.addEventListener(Ze,l),window.addEventListener(Ke,B),()=>{window.removeEventListener(Ze,l),window.removeEventListener(Ke,B)}},[]);const K=G.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,U=G.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!1,desktop:!1,fullDesktop:!0})??!1,Ee=!U,ke=G.useBreakpointValue({base:!0,tablet:!0,largeTablet:!0,mediumDesktop:!1,desktop:!1,fullDesktop:!1})??!0;S.useEffect(()=>{b(),y()},[K]);const{query:Re,results:se,handleSearch:Te}=Zt({source:Kt(r),onSearchCallback:d,isActive:L}),xe=se.length>0,ce=i||n.Link,Fe=ge(p,!!i),Me=Re&&t.jsxs(n.Flex,{gap:xe?"6":0,direction:"column",children:[xe?t.jsx(n.Text,{color:"tints.uiGrey",children:`${se.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:ce,onClick:h,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],...Fe,children:"Shop all products"})]}),t.jsx(n.Grid,{columns:[1,1,1,4],children:se.map((l,B)=>t.jsx(n.GridItem,{children:t.jsx(Se,{href:l.href,label:l.label,additionalContent:l==null?void 0:l.additionalContent,linkComponent:i,forceMobileStyle:!K})},`${l.label}-${B}`))})]}),Z=l=>"href"in l,ve=l=>{Z(l)?f==null||f(l.label):(D(k||!U),O(l))},ue=l=>{V(!0),A(),y(),!Z(l)&&(l.sections||l.spotlightCards)&&(D(!1),O(l))},me=()=>{V(!1)};S.useEffect(()=>{const l=B=>{ae(B.detail.isHovering)};return window.addEventListener(Ue,l),()=>{window.removeEventListener(Ue,l)}},[]),S.useEffect(()=>{!H&&!J&&(y(),A(),!k&&U&&D(!1))},[H,J,k,U]),S.useEffect(()=>{let l=window.location.href;const B=()=>{const P=window.location.href;P!==l&&(l=P,b(),y())},I=setInterval(B,100);return window.addEventListener("popstate",B),()=>{window.removeEventListener("popstate",B),clearInterval(I)}},[]);const ee=l=>Z(l)&&(!l.buttonProps||Object.keys(l.buttonProps).length===0||l.buttonProps===void 0),Pe=r==null?void 0:r.map((l,B)=>{var P,fe;const I=m.includes(l.label);return t.jsx(pt,{height:"48px",paddingInline:"16px !important",onMouseEnter:()=>{ue(l),x==null||x(l.label)},onMouseLeave:me,isSelected:(C==null?void 0:C.label)===l.label,as:Z(l)&&ce?ce:n.Link,href:Z(l)?l.href:void 0,onClick:Z(l)?()=>f==null?void 0:f(l.label):void 0,...I&&{display:{base:"none",fullDesktop:"flex"}},...((P=l==null?void 0:l.context)==null?void 0:P.desktop)==="link"||ee(l)?{_hover:{backgroundColor:"tints.lightCream",textDecoration:"none",filter:"brightness(0.95)"}}:{},...((fe=l==null?void 0:l.context)==null?void 0:fe.desktop)!=="link"&&l.buttonProps,children:l.label},`${l.label}-${B}`)}),_e=(be=r.filter(l=>{var B;return((B=l==null?void 0:l.context)==null?void 0:B.mobile)==="link"||(!Z(l)&&l.isMobileTopLink!==!1||ee(l))&&(Ee&&m.includes(l.label)||ke)}))==null?void 0:be.map((l,B)=>{var P;const I=l;return ee(I)||((P=I==null?void 0:I.context)==null?void 0:P.mobile)==="link"?t.jsx(n.Box,{children:t.jsx(Se,{label:I.label,role:"link",href:I.href,mainTextFontSize:"3xl",linkComponent:i,forceMobileStyle:!0})},`${I.label}-${B}`):t.jsx(n.Box,{onClick:()=>{ve(I),x==null||x(I.label)},children:t.jsx(Se,{label:I.label,role:"link",additionalContent:I.additionalContent,mainTextFontSize:"3xl",linkComponent:i,forceMobileStyle:!0})},`${I.label}-${B}`)}),Ae=t.jsx(n.Flex,{gap:"2",flexDirection:"column",children:c}),X=$||k,de=C?t.jsx(n.Flex,{direction:X?"column":["column",null,null,"row"],gap:"8",children:(we=C==null?void 0:C.sections)==null?void 0:we.map((l,B)=>{const I=[];for(let P=0;P<l.links.length;P+=3)I.push(l.links.slice(P,P+3));return t.jsxs(n.Box,{children:[t.jsx(n.Text,{fontSize:"md",color:"tints.uiGrey",marginBottom:X?0:[0,null,null,6],children:l.title}),t.jsx(n.Flex,{flexDirection:X?"column":["column",null,null,"row"],gap:X?void 0:[null,null,null,8],children:I==null?void 0:I.map((P,fe)=>t.jsx(n.Flex,{flexDirection:"column",gap:X?void 0:[null,null,null,5],marginLeft:X?void 0:[null,null,null,-2],children:P==null?void 0:P.map((te,De)=>t.jsx(Se,{label:te.label,href:te.href,additionalContent:te.additionalContent,linkComponent:i,forceMobileStyle:X,onClick:()=>f==null?void 0:f(te.label)},`${te.label}-${De}`))},fe))})]},`${l.title}-${B}`)})}):null,ne=C!=null&&C.spotlightCards?(re=C.spotlightCards)==null?void 0:re.map((l,B)=>t.jsx(ht,{...l,forceMobileStyle:X},`${l.title}-${B}`)):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,le?"modal":"sticky"],children:[t.jsx(xt,{desktopTopButtons:Pe,logoLink:u,linkComponent:i,onLogoClick:v,setTopOffset:ie,rightSideButtons:typeof T=="function"?T(R):T}),t.jsxs(n.Box,{position:"relative",zIndex:"modal",children:[t.jsx(Ie,{isOpen:k,onClose:b,title:a,navDrawerLinks:_e,bottomNavButtons:Ae,hasBackButton:!1,topOffset:Q,forceMobilePlacement:!0}),t.jsx(Ie,{isOpen:!!C,onClose:()=>{b(),y(),k||D(!1)},title:(C==null?void 0:C.label)||"",navDrawerLinks:de,onBackClick:()=>{y(),k||D(!1)},spotlightCards:ne,hasOnlySpotlightCards:C==null?void 0:C.hasOnlySpotlightCards,bottomButton:C==null?void 0:C.bottomButton,topOffset:Q,forceMobilePlacement:$||k||k&&!U}),t.jsx(Ie,{isOpen:L,onClose:()=>A(),title:"Search",navDrawerLinks:Me,onSearch:Te,hasSearch:!0,hasBackButton:!1,topOffset:Q})]})]})},dt=({links:r,linkComponent:a,onLinkClick:u})=>{const c=a||n.Link,i=d=>{u&&u(d)};return t.jsx(n.Flex,{direction:"column",gap:6,children:r.map(d=>t.jsx(n.Text,{as:c,color:"white",size:"lg",_hover:{color:"viridian.lighter",textDecoration:"none"},onClick:()=>i(d.label),...ge(d.href,!!a),children:d.label},d.label))})},Jt=({title:r,links:a,isLast:u})=>{const c=u?"transparent":`${n.theme.colors.viridian.lighter}20`;return a?t.jsx(n.AccordionItem,{borderColor:c,children:({isExpanded:i})=>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:z.CaretDown,size:"sm",color:"viridian.lighter",transform:i?"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})=>a?t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:"viridian.lighter",mb:6,fontSize:"lg",children:r}),a]}):null,qt=({sections:r,linkComponent:a,onLinkClick:u})=>G.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:i,links:d})=>t.jsx(Qt,{title:i,links:t.jsx(dt,{links:d,linkComponent:a,onLinkClick:u})},i))})}):t.jsx(n.Accordion,{allowMultiple:!0,defaultIndex:[0],width:"100%",display:"flex",flexDirection:"column",children:r.map(({title:i,links:d},f)=>t.jsx(Jt,{title:i,links:t.jsx(dt,{links:d,linkComponent:a,onLinkClick:u}),isLast:f===r.length-1},i))}),ft={instagram:z.InstagramLogo,linkedin:z.LinkedinLogo,facebook:z.FacebookLogo,tiktok:z.TiktokLogo,x:z.XLogo},en=({socialLinks:r,onEmailSubmit:a,socialMediaLabel:u,newsletterLabel:c,onLinkClick:i,showNewsletter:d=!0})=>{const[f,x]=S.useState(""),v=()=>{f&&a&&(a(f),x(""))},p=m=>{m.key==="Enter"&&v()},h=m=>{i&&i(m)};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:"viridian.lighter",mb:6,size:"lg",children:c}),t.jsxs(n.InputGroup,{children:[t.jsx(n.Input,{placeholder:"Enter your email",bg:"transparent",border:"1px solid",borderColor:"viridian.lighter",color:"viridian.lighter",_placeholder:{color:"viridian.lighter"},opacity:.66,height:"52px",pr:"48px",value:f,onChange:m=>x(m.target.value),onKeyPress:p}),t.jsx(n.InputRightElement,{h:"52px",pr:4,children:t.jsx(n.Icon,{as:z.ArrowRight,color:"viridian.lighter",width:"24px",height:"24px",opacity:.66,cursor:"pointer",onClick:v,"data-testid":"arrow-right-icon",role:"button","aria-label":"Submit"})})]})]}),t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:"viridian.lighter",marginBottom:4,size:"lg",children:u}),t.jsx(n.Flex,{gap:3,children:r==null?void 0:r.map(m=>t.jsx(n.Link,{href:m.href,target:"_blank",rel:"noopener noreferrer","aria-label":m.name,onClick:()=>h(m.name),children:ft[m.name.toLowerCase()]&&t.jsx(n.Icon,{as:ft[m.name.toLowerCase()],color:"white",width:["48px",null,"24px",null],height:["48px",null,"24px",null]})},m.name))})]})]})},tn=({links:r,linkComponent:a,onLinkClick:u})=>{const c=a||n.Link,i=f=>{u&&u(f)},d=r==null?void 0:r.map(f=>t.jsx(n.Text,{as:c,color:"viridian.lighter",size:"sm",_hover:{color:"white",textDecoration:"none"},onClick:()=>i(f.label),...ge(f.href,!!a),children:f.label},f.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:d}),t.jsxs(n.Text,{color:"viridian.lighter",fontSize:"sm",children:["© Everlywell ",new Date().getFullYear()]})]})},nn=S.forwardRef(({navigationSections:r=[],disclaimer:a,newsletterLabel:u,socialMediaLabel:c,socialLinks:i,complianceLinks:d,linkComponent:f,onEmailSubmit:x,additionalContent:v,onLinkClick:p,onSocialMediaClick:h,showNewsletter:m=!0},T)=>t.jsx(n.Box,{as:"footer",bg:"viridian.dark",py:[6,8],px:[4,6],ref:T,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:"white"})}),t.jsxs(n.Flex,{direction:["column",null,null,"row"],justify:"space-between",align:["flex-start"],gap:[8,8,8,0],children:[t.jsx(qt,{sections:r,linkComponent:f,onLinkClick:p}),t.jsx(en,{socialLinks:i,newsletterLabel:u,socialMediaLabel:c,onEmailSubmit:x,onLinkClick:h,showNewsletter:m})]}),t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",alignContent:"center",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[a&&t.jsx(n.Text,{color:"viridian.lighter",fontSize:"sm",maxWidth:["100%","100%","1024px"],dangerouslySetInnerHTML:{__html:a},sx:{"a:hover":{color:"viridian.light",textDecoration:"underline"}}}),v]})]}),t.jsx(n.Box,{borderTop:"1px solid",borderColor:`${n.theme.colors.viridian.lighter}20`,marginTop:"10",marginBottom:"8"}),t.jsx(tn,{disclaimer:a,links:d,linkComponent:f,onLinkClick:p})]})})),rn=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},on=({isOpen:r,onClose:a,children:u,header:c,footer:i,headerProps:d,bodyProps:f,footerProps:x,contentProps:v,...p})=>{var C,O,H,V,J;const[h]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.tablet})`),m=(J=(V=(H=(O=(C=n.theme)==null?void 0:C.components)==null?void 0:O.Modal)==null?void 0:H.baseStyle)==null?void 0:V.overlay)==null?void 0:J.background,{Container:T,Overlay:R,Content:k,Header:L,Body:b,Footer:A,CloseButton:y}=rn(h);return t.jsxs(T,{...p,isOpen:r,onClose:a,size:"xl",...h?{placement:"bottom"}:{},children:[t.jsx(R,{backdropFilter:"auto",backgroundColor:m}),t.jsxs(k,{backgroundColor:"tints.white",borderRadius:h?"20px 20px 0 0":"20px",overflowY:"auto",gap:0,...c&&h&&{paddingTop:0},...v,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,...h?{paddingBlock:4}:{paddingTop:6,paddingBlockEnd:2},...d,children:[c,t.jsx(y,{position:"static",width:32,height:32,backgroundColor:"tints.cream",sx:{".chakra-icon":{fontSize:"1rem"}},children:t.jsx(n.Icon,{as:z.X,weight:"light"})})]}),t.jsx(b,{color:"tints.darkGrey",paddingInline:4,...f,children:u}),t.jsx(A,{paddingInline:4,...x,children:i})]})]})};exports.BasketButton=Nt;exports.CategoryLabel=$t;exports.DrawerModal=on;exports.Footer=nn;exports.NavButton=pt;exports.NavSkeleton=Wt;exports.NavbarDrawer=Ie;exports.NavbarDrawerLink=Se;exports.NavigationBar=Xt;exports.SpotlightCard=ht;exports.Stepper=Ht;exports.TopNavIconButton=Le;exports.TopNavigation=xt;exports.useNavigationBar=vt;