@everlywell/consumer-ui 1.33.0 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@everlywell/ui-kit"),E=require("react"),K=require("@chakra-ui/react"),$=require("@phosphor-icons/react"),Le=require("framer-motion");var Ve={exports:{}},me={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@everlywell/ui-kit"),E=require("react"),Z=require("@chakra-ui/react"),M=require("@phosphor-icons/react"),Le=require("framer-motion");var Ye={exports:{}},me={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -14,19 +14,19 @@
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 rt;function kt(){return rt||(rt=1,process.env.NODE_ENV!=="production"&&function(){var a=E,s=Symbol.for("react.element"),h=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),R=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),c=Symbol.for("react.offscreen"),L=Symbol.iterator,M="@@iterator";function J(e){if(e===null||typeof e!="object")return null;var n=L&&e[L]||e[M];return typeof n=="function"?n:null}var F=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){{for(var n=arguments.length,l=new Array(n>1?n-1:0),i=1;i<n;i++)l[i-1]=arguments[i];ie("error",e,l)}}function ie(e,n,l){{var i=F.ReactDebugCurrentFrame,b=i.getStackAddendum();b!==""&&(n+="%s",l=l.concat([b]));var y=l.map(function(x){return String(x)});y.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,y)}}var se=!1,ue=!1,A=!1,Q=!1,W=!1,S;S=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===d||e===g||W||e===j||e===m||e===u||Q||e===c||se||ue||A||typeof e=="object"&&e!==null&&(e.$$typeof===v||e.$$typeof===w||e.$$typeof===C||e.$$typeof===R||e.$$typeof===f||e.$$typeof===S||e.getModuleId!==void 0))}function ye(e,n,l){var i=e.displayName;if(i)return i;var b=n.displayName||n.name||"";return b!==""?l+"("+b+")":l}function ce(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&_("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 d:return"Fragment";case h:return"Portal";case g:return"Profiler";case j:return"StrictMode";case m:return"Suspense";case u:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var n=e;return ce(n)+".Consumer";case C:var l=e;return ce(l._context)+".Provider";case f:return ye(e,e.render,"ForwardRef");case w:var i=e.displayName||null;return i!==null?i:B(e.type)||"Memo";case v:{var b=e,y=b._payload,x=b._init;try{return B(x(y))}catch{return null}}}return null}var V=Object.assign,Y=0,je,Ee,ee,Se,fe,te,Re;function _e(){}_e.__reactDisabledLog=!0;function de(){{if(Y===0){je=console.log,Ee=console.info,ee=console.warn,Se=console.error,fe=console.group,te=console.groupCollapsed,Re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function z(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},e,{value:je}),info:V({},e,{value:Ee}),warn:V({},e,{value:ee}),error:V({},e,{value:Se}),group:V({},e,{value:fe}),groupCollapsed:V({},e,{value:te}),groupEnd:V({},e,{value:Re})})}Y<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=F.ReactCurrentDispatcher,he;function ne(e,n,l){{if(he===void 0)try{throw Error()}catch(b){var i=b.stack.trim().match(/\n( *(at )?)/);he=i&&i[1]||""}return`
18
- `+he+e}}var xe=!1,re;{var Pe=typeof WeakMap=="function"?WeakMap:Map;re=new Pe}function Te(e,n){if(!e||xe)return"";{var l=re.get(e);if(l!==void 0)return l}var i;xe=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=pe.current,pe.current=null,de();try{if(n){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(I){i=I}Reflect.construct(e,[],x)}else{try{x.call()}catch(I){i=I}e.call(x.prototype)}}else{try{throw Error()}catch(I){i=I}e()}}catch(I){if(I&&i&&typeof I.stack=="string"){for(var p=I.stack.split(`
19
- `),P=i.stack.split(`
20
- `),T=p.length-1,k=P.length-1;T>=1&&k>=0&&p[T]!==P[k];)k--;for(;T>=1&&k>=0;T--,k--)if(p[T]!==P[k]){if(T!==1||k!==1)do if(T--,k--,k<0||p[T]!==P[k]){var H=`
21
- `+p[T].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,H),H}while(T>=1&&k>=0);break}}}finally{xe=!1,pe.current=y,z(),Error.prepareStackTrace=b}var oe=e?e.displayName||e.name:"",q=oe?ne(oe):"";return typeof e=="function"&&re.set(e,q),q}function Ie(e,n,l){return Te(e,!1)}function Be(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function le(e,n,l){if(e==null)return"";if(typeof e=="function")return Te(e,Be(e));if(typeof e=="string")return ne(e);switch(e){case m:return ne("Suspense");case u:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Ie(e.render);case w:return le(e.type,n,l);case v:{var i=e,b=i._payload,y=i._init;try{return le(y(b),n,l)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,ve={},ge=F.ReactDebugCurrentFrame;function o(e){if(e){var n=e._owner,l=le(e.type,e._source,n?n.type:null);ge.setExtraStackFrame(l)}else ge.setExtraStackFrame(null)}function D(e,n,l,i,b){{var y=Function.call.bind(U);for(var x in e)if(y(e,x)){var p=void 0;try{if(typeof e[x]!="function"){var P=Error((i||"React class")+": "+l+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw P.name="Invariant Violation",P}p=e[x](n,x,i,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(T){p=T}p&&!(p instanceof Error)&&(o(b),_("%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).",i||"React class",l,x,typeof p),o(null)),p instanceof Error&&!(p.message in ve)&&(ve[p.message]=!0,o(b),_("Failed %s type: %s",l,p.message),o(null))}}}var G=Array.isArray;function O(e){return G(e)}function Fe(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,l=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function Z(e){try{return ze(e),!1}catch{return!0}}function ze(e){return""+e}function Ue(e){if(Z(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fe(e)),ze(e)}var be=F.ReactCurrentOwner,ct={key:!0,ref:!0,__self:!0,__source:!0},Ge,Ze,Ae;Ae={};function ft(e){if(U.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function dt(e){if(U.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function pt(e,n){if(typeof e.ref=="string"&&be.current&&n&&be.current.stateNode!==n){var l=B(be.current.type);Ae[l]||(_('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(be.current.type),e.ref),Ae[l]=!0)}}function ht(e,n){{var l=function(){Ge||(Ge=!0,_("%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)",n))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function xt(e,n){{var l=function(){Ze||(Ze=!0,_("%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)",n))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var vt=function(e,n,l,i,b,y,x){var p={$$typeof:s,type:e,key:n,ref:l,props:x,_owner:y};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function gt(e,n,l,i,b){{var y,x={},p=null,P=null;l!==void 0&&(Ue(l),p=""+l),dt(n)&&(Ue(n.key),p=""+n.key),ft(n)&&(P=n.ref,pt(n,b));for(y in n)U.call(n,y)&&!ct.hasOwnProperty(y)&&(x[y]=n[y]);if(e&&e.defaultProps){var T=e.defaultProps;for(y in T)x[y]===void 0&&(x[y]=T[y])}if(p||P){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&ht(x,k),P&&xt(x,k)}return vt(e,p,P,b,i,be.current,x)}}var He=F.ReactCurrentOwner,qe=F.ReactDebugCurrentFrame;function ae(e){if(e){var n=e._owner,l=le(e.type,e._source,n?n.type:null);qe.setExtraStackFrame(l)}else qe.setExtraStackFrame(null)}var $e;$e=!1;function Me(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ke(){{if(He.current){var e=B(He.current.type);if(e)return`
17
+ */var rt;function kt(){return rt||(rt=1,process.env.NODE_ENV!=="production"&&function(){var a=E,s=Symbol.for("react.element"),h=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),R=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),c=Symbol.for("react.offscreen"),L=Symbol.iterator,V="@@iterator";function Q(e){if(e===null||typeof e!="object")return null;var n=L&&e[L]||e[V];return typeof n=="function"?n:null}var F=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){{for(var n=arguments.length,l=new Array(n>1?n-1:0),i=1;i<n;i++)l[i-1]=arguments[i];ue("error",e,l)}}function ue(e,n,l){{var i=F.ReactDebugCurrentFrame,b=i.getStackAddendum();b!==""&&(n+="%s",l=l.concat([b]));var y=l.map(function(x){return String(x)});y.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,y)}}var ce=!1,fe=!1,A=!1,ee=!1,Y=!1,S;S=Symbol.for("react.module.reference");function $(e){return!!(typeof e=="string"||typeof e=="function"||e===d||e===g||Y||e===j||e===m||e===u||ee||e===c||ce||fe||A||typeof e=="object"&&e!==null&&(e.$$typeof===v||e.$$typeof===w||e.$$typeof===C||e.$$typeof===R||e.$$typeof===f||e.$$typeof===S||e.getModuleId!==void 0))}function ye(e,n,l){var i=e.displayName;if(i)return i;var b=n.displayName||n.name||"";return b!==""?l+"("+b+")":l}function de(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&_("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 d:return"Fragment";case h:return"Portal";case g:return"Profiler";case j:return"StrictMode";case m:return"Suspense";case u:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var n=e;return de(n)+".Consumer";case C:var l=e;return de(l._context)+".Provider";case f:return ye(e,e.render,"ForwardRef");case w:var i=e.displayName||null;return i!==null?i:I(e.type)||"Memo";case v:{var b=e,y=b._payload,x=b._init;try{return I(x(y))}catch{return null}}}return null}var z=Object.assign,U=0,je,Ee,Se,te,Re,pe,ne;function _e(){}_e.__reactDisabledLog=!0;function Pe(){{if(U===0){je=console.log,Ee=console.info,Se=console.warn,te=console.error,Re=console.group,pe=console.groupCollapsed,ne=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function re(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:je}),info:z({},e,{value:Ee}),warn:z({},e,{value:Se}),error:z({},e,{value:te}),group:z({},e,{value:Re}),groupCollapsed:z({},e,{value:pe}),groupEnd:z({},e,{value:ne})})}U<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var W=F.ReactCurrentDispatcher,he;function le(e,n,l){{if(he===void 0)try{throw Error()}catch(b){var i=b.stack.trim().match(/\n( *(at )?)/);he=i&&i[1]||""}return`
18
+ `+he+e}}var xe=!1,ae;{var Ie=typeof WeakMap=="function"?WeakMap:Map;ae=new Ie}function Te(e,n){if(!e||xe)return"";{var l=ae.get(e);if(l!==void 0)return l}var i;xe=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=W.current,W.current=null,Pe();try{if(n){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(P){i=P}Reflect.construct(e,[],x)}else{try{x.call()}catch(P){i=P}e.call(x.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var p=P.stack.split(`
19
+ `),O=i.stack.split(`
20
+ `),T=p.length-1,k=O.length-1;T>=1&&k>=0&&p[T]!==O[k];)k--;for(;T>=1&&k>=0;T--,k--)if(p[T]!==O[k]){if(T!==1||k!==1)do if(T--,k--,k<0||p[T]!==O[k]){var H=`
21
+ `+p[T].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,H),H}while(T>=1&&k>=0);break}}}finally{xe=!1,W.current=y,re(),Error.prepareStackTrace=b}var se=e?e.displayName||e.name:"",X=se?le(se):"";return typeof e=="function"&&ae.set(e,X),X}function Be(e,n,l){return Te(e,!1)}function Fe(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function oe(e,n,l){if(e==null)return"";if(typeof e=="function")return Te(e,Fe(e));if(typeof e=="string")return le(e);switch(e){case m:return le("Suspense");case u:return le("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Be(e.render);case w:return oe(e.type,n,l);case v:{var i=e,b=i._payload,y=i._init;try{return oe(y(b),n,l)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,ve={},ge=F.ReactDebugCurrentFrame;function K(e){if(e){var n=e._owner,l=oe(e.type,e._source,n?n.type:null);ge.setExtraStackFrame(l)}else ge.setExtraStackFrame(null)}function o(e,n,l,i,b){{var y=Function.call.bind(q);for(var x in e)if(y(e,x)){var p=void 0;try{if(typeof e[x]!="function"){var O=Error((i||"React class")+": "+l+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}p=e[x](n,x,i,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(T){p=T}p&&!(p instanceof Error)&&(K(b),_("%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).",i||"React class",l,x,typeof p),K(null)),p instanceof Error&&!(p.message in ve)&&(ve[p.message]=!0,K(b),_("Failed %s type: %s",l,p.message),K(null))}}}var D=Array.isArray;function N(e){return D(e)}function B(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,l=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function Ae(e){try{return G(e),!1}catch{return!0}}function G(e){return""+e}function Ue(e){if(Ae(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",B(e)),G(e)}var be=F.ReactCurrentOwner,ct={key:!0,ref:!0,__self:!0,__source:!0},Ge,Ze,He;He={};function ft(e){if(q.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function dt(e){if(q.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function pt(e,n){if(typeof e.ref=="string"&&be.current&&n&&be.current.stateNode!==n){var l=I(be.current.type);He[l]||(_('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',I(be.current.type),e.ref),He[l]=!0)}}function ht(e,n){{var l=function(){Ge||(Ge=!0,_("%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)",n))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function xt(e,n){{var l=function(){Ze||(Ze=!0,_("%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)",n))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var vt=function(e,n,l,i,b,y,x){var p={$$typeof:s,type:e,key:n,ref:l,props:x,_owner:y};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function gt(e,n,l,i,b){{var y,x={},p=null,O=null;l!==void 0&&(Ue(l),p=""+l),dt(n)&&(Ue(n.key),p=""+n.key),ft(n)&&(O=n.ref,pt(n,b));for(y in n)q.call(n,y)&&!ct.hasOwnProperty(y)&&(x[y]=n[y]);if(e&&e.defaultProps){var T=e.defaultProps;for(y in T)x[y]===void 0&&(x[y]=T[y])}if(p||O){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&ht(x,k),O&&xt(x,k)}return vt(e,p,O,b,i,be.current,x)}}var $e=F.ReactCurrentOwner,qe=F.ReactDebugCurrentFrame;function ie(e){if(e){var n=e._owner,l=oe(e.type,e._source,n?n.type:null);qe.setExtraStackFrame(l)}else qe.setExtraStackFrame(null)}var Me;Me=!1;function We(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ke(){{if($e.current){var e=I($e.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function bt(e){{if(e!==void 0){var n=e.fileName.replace(/^.*[\\\/]/,""),l=e.lineNumber;return`
24
24
 
25
25
  Check your code at `+n+":"+l+"."}return""}}var Xe={};function mt(e){{var n=Ke();if(!n){var l=typeof e=="string"?e:e.displayName||e.name;l&&(n=`
26
26
 
27
- Check the top-level render call using <`+l+">.")}return n}}function Je(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=mt(n);if(Xe[l])return;Xe[l]=!0;var i="";e&&e._owner&&e._owner!==He.current&&(i=" It was passed a child from "+B(e._owner.type)+"."),ae(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,i),ae(null)}}function Qe(e,n){{if(typeof e!="object")return;if(O(e))for(var l=0;l<e.length;l++){var i=e[l];Me(i)&&Je(i,n)}else if(Me(e))e._store&&(e._store.validated=!0);else if(e){var b=J(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),x;!(x=y.next()).done;)Me(x.value)&&Je(x.value,n)}}}function Ct(e){{var n=e.type;if(n==null||typeof n=="string")return;var l;if(typeof n=="function")l=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===f||n.$$typeof===w))l=n.propTypes;else return;if(l){var i=B(n);D(l,e.props,"prop",i,e)}else if(n.PropTypes!==void 0&&!$e){$e=!0;var b=B(n);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var n=Object.keys(e.props),l=0;l<n.length;l++){var i=n[l];if(i!=="children"&&i!=="key"){ae(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),ae(null);break}}e.ref!==null&&(ae(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}}var et={};function tt(e,n,l,i,b,y){{var x=N(e);if(!x){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" 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 P=bt(b);P?p+=P:p+=Ke();var T;e===null?T="null":O(e)?T="array":e!==void 0&&e.$$typeof===s?(T="<"+(B(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,p)}var k=gt(e,n,l,b,y);if(k==null)return k;if(x){var H=n.children;if(H!==void 0)if(i)if(O(H)){for(var oe=0;oe<H.length;oe++)Qe(H[oe],e);Object.freeze&&Object.freeze(H)}else _("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 Qe(H,e)}if(U.call(n,"key")){var q=B(e),I=Object.keys(n).filter(function(_t){return _t!=="key"}),We=I.length>0?"{key: someKey, "+I.join(": ..., ")+": ...}":"{key: someKey}";if(!et[q+We]){var Rt=I.length>0?"{"+I.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+l+">.")}return n}}function Je(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=mt(n);if(Xe[l])return;Xe[l]=!0;var i="";e&&e._owner&&e._owner!==$e.current&&(i=" It was passed a child from "+I(e._owner.type)+"."),ie(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,i),ie(null)}}function Qe(e,n){{if(typeof e!="object")return;if(N(e))for(var l=0;l<e.length;l++){var i=e[l];We(i)&&Je(i,n)}else if(We(e))e._store&&(e._store.validated=!0);else if(e){var b=Q(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),x;!(x=y.next()).done;)We(x.value)&&Je(x.value,n)}}}function Ct(e){{var n=e.type;if(n==null||typeof n=="string")return;var l;if(typeof n=="function")l=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===f||n.$$typeof===w))l=n.propTypes;else return;if(l){var i=I(n);o(l,e.props,"prop",i,e)}else if(n.PropTypes!==void 0&&!Me){Me=!0;var b=I(n);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var n=Object.keys(e.props),l=0;l<n.length;l++){var i=n[l];if(i!=="children"&&i!=="key"){ie(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),ie(null);break}}e.ref!==null&&(ie(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),ie(null))}}var et={};function tt(e,n,l,i,b,y){{var x=$(e);if(!x){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" 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 O=bt(b);O?p+=O:p+=Ke();var T;e===null?T="null":N(e)?T="array":e!==void 0&&e.$$typeof===s?(T="<"+(I(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,p)}var k=gt(e,n,l,b,y);if(k==null)return k;if(x){var H=n.children;if(H!==void 0)if(i)if(N(H)){for(var se=0;se<H.length;se++)Qe(H[se],e);Object.freeze&&Object.freeze(H)}else _("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 Qe(H,e)}if(q.call(n,"key")){var X=I(e),P=Object.keys(n).filter(function(_t){return _t!=="key"}),Ne=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!et[X+Ne]){var Rt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
28
28
  let props = %s;
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,We,q,Rt,q),et[q+We]=!0}}return e===d?wt(k):Ct(k),k}}function yt(e,n,l){return tt(e,n,l,!0)}function jt(e,n,l){return tt(e,n,l,!1)}var Et=jt,St=yt;Ce.Fragment=d,Ce.jsx=Et,Ce.jsxs=St}()),Ce}process.env.NODE_ENV==="production"?Ve.exports=Tt():Ve.exports=kt();var t=Ve.exports;const Ne=60,lt=6,Dt=a=>{const{activeStepIndex:s,hideIndicators:h=!1,steps:d,stepperTheme:j={light:"eggplant.light",base:"eggplant.base"}}=a,{activeStep:g,setActiveStep:C}=r.useSteps({index:s,count:d.length});return E.useEffect(()=>{C(s)},[s,C]),t.jsx(r.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(r.Stepper,{role:"progressbar",index:g,width:"100%",display:"flex",flexWrap:"nowrap",children:d.map((R,f)=>{const m=g===f,u=f===0,w=f===d.length-1,v=g>f;let c=`${Ne}px`;const L=`calc(100% - ((${Ne*(d.length-1)}px) - (${d.length-1} * ${lt*2}px)))`;return m?c=L:(u||w)&&(c=`${Ne-lt}px`),t.jsx(r.Box,{width:c,opacity:v||m?1:.2,paddingRight:w?"0":"6px",paddingLeft:u?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(r.Box,{paddingTop:h?2:5,position:"relative",width:"100%",children:t.jsx(r.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:v?j.light:j.base,height:h?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${f}`)})})})},Lt=E.memo(Dt),Ot=({children:a,...s})=>t.jsx(K.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...s,children:a}),Oe=(a,s)=>{const h=(a==null?void 0:a.startsWith("http"))||(a==null?void 0:a.startsWith("mailto"));return s&&!h?{to:a}:{href:a}},ke=E.forwardRef((a,s)=>{const{label:h,additionalContent:d,mainTextFontSize:j,linkComponent:g,href:C,...R}=a,f=g||r.Link,m=Oe(C,!!g);return t.jsxs(r.Box,{ref:s,as:f,display:"flex",alignItems:"center",gap:[null,null,null,1],justifyContent:[null,null,null,"space-between"],paddingY:[3,null,null,0],color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},borderBottom:["1px",null,null,"unset"],borderColor:["tints.cream",null,null,"unset"],width:["100%",null,null,"fit-content"],cursor:"pointer",...m,...R,children:[t.jsx(r.Icon,{display:["none",null,null,"block"],as:$.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(r.Flex,{alignItems:"center",gap:"1",width:["100%",null,null,"auto"],children:[t.jsx(r.Text,{fontSize:[j||"xl",null,null,"lg"],fontWeight:"medium",children:h}),d&&(typeof d=="string"?t.jsx(r.Text,{fontSize:["xl",null,null,"lg"],fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:d}):d),t.jsx(r.Icon,{display:["block",null,null,"none"],as:$.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),we=E.forwardRef((a,s)=>{const{children:h,isSelected:d,...j}=a,g=a.backgroundColor||(d?"tints.lightCream":"transparent");return t.jsx(r.Button,{ref:s,borderRadius:"full",backgroundColor:g,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:g,textDecoration:"none",filter:"brightness(0.95)"},...j,children:h})}),it=({title:a,description:s,imageSrc:h,imageElement:d,button:j,backgroundColor:g="viridian.wash",onClick:C,href:R,linkComponent:f})=>{const m="80px",u="200px",w="272px",v=f||r.Link,c=Oe(R,!!f),L=K.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0});return t.jsxs(r.Flex,{direction:["row",null,null,"column"],alignItems:["center"],borderRadius:"xl",overflow:"hidden",height:[m,null,null,w],backgroundColor:g,onClick:C,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",border:"1px solid",borderColor:"transparent",_hover:{boxShadow:"lg",cursor:"pointer",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:L?r.Flex:v,...L?{}:c,children:[t.jsx(r.Box,{width:["72px",null,null,"100%"],height:["100%"],flex:[null,null,null,"1"],children:h?t.jsx(r.Image,{src:h,objectFit:"cover",height:[m,null,null,u],width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(r.Box,{height:[m,null,null,u],overflow:"hidden",children:d})}),t.jsxs(r.Flex,{direction:["column",null,null,"row"],justifyContent:[null,null,null,"space-between"],alignItems:["left",null,null,"center"],padding:"4",height:["100%",null,null,"auto"],width:"100%",position:[null,null,null,"absolute"],bottom:[null,null,null,"0"],backgroundColor:[null,null,null,`${g}CC`],backdropFilter:[null,null,null,"blur(8px)"],children:[t.jsxs(r.Box,{children:[t.jsx(r.Text,{fontSize:"lg",fontWeight:"medium",color:"tints.black",children:a}),t.jsx(r.Text,{fontSize:"sm",color:"tints.black",children:s})]}),L?t.jsx(r.Box,{children:j}):null]})]})},X=a=>t.jsx(r.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)"},...a}),Pt=()=>t.jsx("svg",{width:"116",height:"24",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",{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",fill:"#28724F"})})}),st=({desktopTopButtons:a,kitRegistrationElement:s,profileElement:h,cartElement:d,onSearchClick:j,onMenuClick:g,hasSearch:C=!1,logoLink:R="https://www.everlywell.com",setTopOffset:f,linkComponent:m,onLogoClick:u})=>{const w=E.useRef(null),v=E.useCallback(()=>{if(w.current){const c=w.current.getBoundingClientRect();f(c.bottom)}},[]);return E.useEffect(()=>{v()},[v]),t.jsx(r.Box,{ref:w,paddingY:"4",paddingX:[4,null,null,12],borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",position:"sticky",top:"0",width:"100%",zIndex:["sticky",null,null,"tooltip"],onMouseEnter:v,children:t.jsxs(r.Flex,{justifyContent:"space-between",alignItems:"center",children:[t.jsxs(r.Flex,{alignItems:"center",gap:"5",children:[t.jsx(r.Box,{"aria-label":"Go to homepage",onClick:u,as:m||r.Link,...Oe(R,!!m),children:t.jsx(Pt,{})}),t.jsx(r.Flex,{display:["none",null,null,"flex"],children:a})]}),t.jsxs(r.Flex,{alignItems:"center",gap:"2",children:[t.jsx(r.Box,{display:["none",null,null,"block"],children:s}),C?t.jsx(X,{"aria-label":"Search",icon:t.jsx(r.Icon,{as:$.MagnifyingGlass}),onClick:j}):null,d,t.jsx(r.Box,{display:["flex",null,null,"none"],children:t.jsx(X,{icon:t.jsx($.List,{}),"aria-label":"menu","data-testid":"menu-button",onClick:g})}),t.jsx(r.Box,{display:["none",null,null,"block"],children:h})]})]})})},ut=({count:a=0,...s})=>t.jsxs(r.Box,{position:"relative",display:"inline-block",children:[t.jsx(X,{icon:t.jsx($.Basket,{}),...s}),a>0&&t.jsx(r.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:a})]}),It=({numDesktopLinks:a=5,showPromoButton:s=!1})=>t.jsx(r.VStack,{spacing:0,align:"stretch",children:t.jsx(r.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",borderColor:"tints.lightCream",children:t.jsxs(r.Flex,{justify:"space-between",align:"center",children:[t.jsx(r.Skeleton,{w:"120px",h:"48px"}),t.jsxs(r.HStack,{spacing:8,marginLeft:12,display:["none",null,null,"flex"],"data-testid":"desktop-nav",children:[Array.from({length:a}).map((h,d)=>t.jsx(r.Skeleton,{width:"90px",height:"48px"},d)),s&&t.jsx(r.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(r.HStack,{spacing:4,ml:"auto",children:[t.jsx(r.SkeletonCircle,{width:"120px",height:"48px",display:["none",null,null,"block"],"data-testid":"register-kit"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),Bt=(a,s)=>{let h;return(...d)=>{h&&clearTimeout(h),h=setTimeout(()=>{a(...d)},s)}},Ye="nav-drawer-hover",at=a=>{window.dispatchEvent(new CustomEvent(Ye,{detail:{isHovering:a},bubbles:!0,cancelable:!0}))},Ft=(a=!1,s=!1,h=!1)=>a||!s?"column":h?"row":"row-reverse",At=Le.motion(r.DrawerContent),Ht=Le.motion(r.DrawerOverlay),De=({isOpen:a=!1,onClose:s,title:h,navDrawerLinks:d,bottomNavButtons:j,spotlightCards:g,bottomButton:C,hasBackButton:R=!0,onBackClick:f,hasOnlySpotlightCards:m=!1,hasSearch:u=!1,onSearch:w=()=>({}),topOffset:v})=>{const c=K.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0}),L=c?"top":"left",[M,J]=E.useState(0),[F,_]=E.useState(!1),ie=()=>{J(A=>A+1)},se=E.useCallback(Bt(A=>{w(A),ie()},100),[]);E.useEffect(()=>{a&&_(!0)},[a]);const ue=()=>{a||(_(!1),s())};return t.jsx(r.Drawer,{isOpen:F||a,onClose:()=>{F&&c||s()},placement:L,blockScrollOnMount:!1,autoFocus:!1,children:t.jsx(Le.AnimatePresence,{children:a?t.jsxs(t.Fragment,{children:[t.jsx(Ht,{backgroundColor:"tints.black",top:["0",null,null,`${v}px`],opacity:c?void 0:"0.4 !important",...c?{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.3,ease:"easeOut"}}:{}}),t.jsxs(At,{onClick:A=>{const W=A.target.closest("a");W&&W.href===window.location.href&&s()},onMouseEnter:()=>{c&&at(!0)},onMouseLeave:()=>{c&&at(!1)},paddingTop:"4",paddingX:[4,null,null,12],paddingBottom:"24",overflow:["auto",null,null,"hidden"],maxHeight:"100vh",position:"relative",top:c?`${v}px !important`:void 0,onAnimationComplete:ue,...c?{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3}}:{},children:[!u&&c?null:t.jsxs(r.DrawerHeader,{padding:"0",flexDirection:u?"column":"row",gap:u?"4":"0",children:[c?null:t.jsxs(r.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[R?t.jsx(X,{icon:t.jsx($.CaretLeft,{}),onClick:()=>{f&&f(),s()},"aria-label":"Back"}):null,t.jsx(r.Text,{color:"tints.uiGrey",fontSize:["xl",null,null,"lg"],children:h}),t.jsx(X,{icon:t.jsx($.X,{}),onClick:s,"aria-label":"Close"})]}),u&&t.jsxs(K.InputGroup,{width:"100%",children:[t.jsx(K.Input,{onChange:A=>{se(A.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(K.InputRightElement,{pointerEvents:"none",children:t.jsx(K.Icon,{as:$.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(r.DrawerBody,{paddingX:"0",paddingBottom:[6,null,null,4],"data-testid":`navbar-drawer-body-${h.toLowerCase()}`,children:t.jsxs(Le.motion.div,{...c?{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:Ft(m,c,u),gap:"24px",justifyContent:"space-between"},children:[g?t.jsx(r.Box,{gap:"6",display:"flex",justifyContent:[null,null,null,"center"],sx:{"& > *":{width:["100%",null,null,"365px","432px"]},flexWrap:"wrap",flexDirection:["column",null,null,"row"]},children:g}):null,t.jsxs(r.Flex,{position:[null,null,null,"relative"],flexDirection:"column",gap:"6",width:["100%",null,null,u?null:"auto"],children:[d?t.jsx(r.Box,{children:d}):null,j&&!c?t.jsx(r.Box,{children:j}):null,C?t.jsx(r.Box,{width:["100%"],position:[null,null,null,"absolute"],bottom:[null,null,null,0],children:C}):null]})]},M)})]})]}):null})})},ot=a=>{const s=new Set;return a.reduce((h,d)=>{var g;const j=((g=d.sections)==null?void 0:g.reduce((C,R)=>{const f=R.links.filter(m=>s.has(m.label)||m.isSearchable!==!0?!1:(s.add(m.label),!0));return[...C,...f]},[]))??[];return[...h,...j]},[])},$t=({source:a,onSearchCallback:s,isActive:h})=>{const[d,j]=E.useState(""),[g,C]=E.useState([]),R=(u,w)=>{if(!u)return[];const v=u.toLowerCase();return w.filter(c=>{const L=c.label.toLowerCase().includes(v),M=typeof c.additionalContent=="string"&&c.additionalContent.toLowerCase().includes(v);return L||M}).sort((c,L)=>c.label.localeCompare(L.label))},f=u=>{if(j(u),!u){C([]);return}const w=R(u,a);C(w),s&&s(u,w)},m=()=>{j(""),C([])};return E.useEffect(()=>{h||(j(""),C([]))},[h]),{query:d,results:g,handleClose:m,handleSearch:f}},Mt=({categories:a=[],onCartClick:s,mainCategoryLabel:h="Menu",logoLink:d="https://www.everlywell.com",hasSearch:j=!0,onSearchClick:g,registrationUrl:C,profileUrl:R="https://secure.everlywell.com/login",mobileBottomButtons:f=[],numberOfCartItems:m=0,linkComponent:u,onSearchCallback:w,onLinkClick:v,onCategoryOpen:c,onMobileMenuOpen:L,onBackToMainMenu:M,onRegisterKitClick:J,onProfileClick:F,onLogoClick:_,shopAllProductsUrl:ie,onShopAllProductsClick:se})=>{var U,ve,ge;const[ue,A]=E.useState(!1),[Q,W]=E.useState(!1),[S,N]=E.useState(null),[ye,ce]=E.useState(!1),[B,V]=E.useState(!1),[Y,je]=E.useState(0),{query:Ee,results:ee,handleSearch:Se}=$t({source:ot(a),onSearchCallback:w,isActive:Q}),fe=ee.length>0,te=u||r.Link,Re=Oe(ie,!!u),_e=Ee&&t.jsxs(r.Flex,{gap:fe?"6":0,direction:"column",children:[fe?t.jsx(r.Text,{color:"tints.uiGrey",children:`${ee.length} Results`}):t.jsxs(r.Flex,{direction:"column",gap:"6",alignItems:"flex-start",children:[t.jsx(r.Text,{color:"tints.uiGrey",children:"We didn't find what you were looking for."}),t.jsx(r.Button,{as:te,onClick:se,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],...Re,children:"Shop all products"})]}),t.jsx(r.Grid,{columns:[1,1,1,4],children:ee.map((o,D)=>t.jsx(r.GridItem,{children:t.jsx(ke,{href:o.href,label:o.label,additionalContent:o==null?void 0:o.additionalContent,linkComponent:u})},`${o.label}-${D}`))})]}),de=()=>{A(!1),N(null)},z=o=>"href"in o,pe=o=>{z(o)?v==null||v(o.label):N(o)},he=o=>{ce(!0),W(!1),!z(o)&&(o.sections||o.spotlightCards)&&N(o)},ne=()=>{ce(!1)};E.useEffect(()=>{const o=D=>{V(D.detail.isHovering)};return window.addEventListener(Ye,o),()=>{window.removeEventListener(Ye,o)}},[]),E.useEffect(()=>{!ye&&!B&&(N(null),W(!1))},[ye,B]),E.useEffect(()=>{let o=window.location.href;const D=()=>{const O=window.location.href;O!==o&&(o=O,de(),N(null))},G=setInterval(D,100);return window.addEventListener("popstate",D),()=>{window.removeEventListener("popstate",D),clearInterval(G)}},[]);const xe=()=>{N(null),M==null||M()},re=t.jsx(t.Fragment,{children:a==null?void 0:a.map((o,D)=>t.jsx(we,{onMouseEnter:()=>{he(o),c==null||c(o.label)},onMouseLeave:ne,isSelected:(S==null?void 0:S.label)===o.label,as:z(o)&&te?te:r.Link,href:z(o)?o.href:void 0,onClick:z(o)?()=>v==null?void 0:v(o.label):void 0,...o.buttonProps,children:o.label},`${o.label}-${D}`))}),Pe=(U=a.filter(o=>!z(o)&&o.isMobileTopLink!==!1))==null?void 0:U.map(o=>{const D=o;return t.jsx(r.Box,{onClick:()=>{pe(D),c==null||c(D.label)},children:t.jsx(ke,{label:D.label,role:"link",additionalContent:D.additionalContent,mainTextFontSize:"3xl",linkComponent:u})},D.label)});ot(a);const Te=t.jsxs(t.Fragment,{children:[t.jsx(we,{as:r.Link,href:R,width:"100%",backgroundColor:"tints.cream",onClick:F,children:t.jsxs(r.Flex,{gap:"2",children:["My Everly",t.jsx(r.Icon,{as:$.User,size:24})]})},"my-everly"),t.jsx(we,{as:r.Link,width:"100%",href:C,backgroundColor:"tints.cream",onClick:J,children:t.jsxs(r.Flex,{gap:"2",children:["Register kit",t.jsx(r.Icon,{as:$.QrCode,size:24})]})},"register-kit")]}),Ie=t.jsxs(r.Flex,{gap:"2",flexDirection:"column",children:[f,Te]}),Be=S?t.jsx(r.Flex,{direction:["column",null,null,"row"],gap:"8",children:(ve=S==null?void 0:S.sections)==null?void 0:ve.map((o,D)=>{const G=[];for(let O=0;O<o.links.length;O+=3)G.push(o.links.slice(O,O+3));return t.jsxs(r.Box,{children:[t.jsx(r.Text,{fontSize:"md",color:"tints.uiGrey",marginBottom:[0,null,null,6],children:o.title}),t.jsx(r.Flex,{flexDirection:["column",null,null,"row"],gap:[null,null,null,8],children:G==null?void 0:G.map((O,Fe)=>t.jsx(r.Flex,{flexDirection:["column"],gap:[null,null,null,5],marginLeft:[null,null,null,-2],children:O==null?void 0:O.map(Z=>t.jsx(ke,{label:Z.label,href:Z.href,additionalContent:Z.additionalContent,linkComponent:u,onClick:()=>v==null?void 0:v(Z.label)},Z.label))},Fe))})]},`${o.title}-${D}`)})}):null,le=S!=null&&S.spotlightCards?(ge=S.spotlightCards)==null?void 0:ge.map(o=>t.jsx(it,{...o},o.title)):t.jsx(r.Box,{});return t.jsxs(r.Box,{children:[t.jsx(st,{desktopTopButtons:re,kitRegistrationElement:t.jsx(we,{as:r.Link,href:C,onClick:J,backgroundColor:"tints.cream",children:"Register Kit"}),profileElement:t.jsx(r.Link,{href:R,"aria-label":"login",onClick:F,children:t.jsx(X,{icon:t.jsx(r.Icon,{as:$.User}),"aria-label":"Profile"})}),cartElement:t.jsx(ut,{"aria-label":"Cart",count:m,onClick:s}),onSearchClick:()=>{W(!Q),g==null||g()},onMenuClick:()=>{A(!0),L==null||L()},hasSearch:j,logoLink:d,linkComponent:u,onLogoClick:_,setTopOffset:je}),t.jsx(De,{isOpen:ue,onClose:de,title:h,navDrawerLinks:Pe,bottomNavButtons:Ie,hasBackButton:!1,topOffset:Y}),t.jsx(De,{isOpen:!!S,onClose:()=>{de(),N(null)},title:(S==null?void 0:S.label)||"",navDrawerLinks:Be,onBackClick:xe,spotlightCards:le,hasOnlySpotlightCards:S==null?void 0:S.hasOnlySpotlightCards,bottomButton:S==null?void 0:S.bottomButton,topOffset:Y}),t.jsx(De,{isOpen:Q,onClose:()=>W(!1),title:"Search",navDrawerLinks:_e,onSearch:Se,hasSearch:!0,hasBackButton:!1,topOffset:Y})]})};exports.BasketButton=ut;exports.CategoryLabel=Ot;exports.NavButton=we;exports.NavSkeleton=It;exports.NavbarDrawer=De;exports.NavbarDrawerLink=ke;exports.NavigationBar=Mt;exports.SpotlightCard=it;exports.Stepper=Lt;exports.TopNavIconButton=X;exports.TopNavigation=st;
32
+ <%s key={someKey} {...props} />`,Ne,X,Rt,X),et[X+Ne]=!0}}return e===d?wt(k):Ct(k),k}}function yt(e,n,l){return tt(e,n,l,!0)}function jt(e,n,l){return tt(e,n,l,!1)}var Et=jt,St=yt;Ce.Fragment=d,Ce.jsx=Et,Ce.jsxs=St}()),Ce}process.env.NODE_ENV==="production"?Ye.exports=Tt():Ye.exports=kt();var t=Ye.exports;const Ve=60,lt=6,Dt=a=>{const{activeStepIndex:s,hideIndicators:h=!1,steps:d,stepperTheme:j={light:"eggplant.light",base:"eggplant.base"}}=a,{activeStep:g,setActiveStep:C}=r.useSteps({index:s,count:d.length});return E.useEffect(()=>{C(s)},[s,C]),t.jsx(r.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(r.Stepper,{role:"progressbar",index:g,width:"100%",display:"flex",flexWrap:"nowrap",children:d.map((R,f)=>{const m=g===f,u=f===0,w=f===d.length-1,v=g>f;let c=`${Ve}px`;const L=`calc(100% - ((${Ve*(d.length-1)}px) - (${d.length-1} * ${lt*2}px)))`;return m?c=L:(u||w)&&(c=`${Ve-lt}px`),t.jsx(r.Box,{width:c,opacity:v||m?1:.2,paddingRight:w?"0":"6px",paddingLeft:u?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(r.Box,{paddingTop:h?2:5,position:"relative",width:"100%",children:t.jsx(r.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:v?j.light:j.base,height:h?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${f}`)})})})},Lt=E.memo(Dt),Ot=({children:a,...s})=>t.jsx(Z.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...s,children:a}),Oe=(a,s)=>{const h=(a==null?void 0:a.startsWith("http"))||(a==null?void 0:a.startsWith("mailto"));return s&&!h?{to:a}:{href:a}},ke=E.forwardRef((a,s)=>{const{label:h,additionalContent:d,mainTextFontSize:j,linkComponent:g,href:C,...R}=a,f=g||r.Link,m=Oe(C,!!g);return t.jsxs(r.Box,{ref:s,as:f,display:"flex",alignItems:"center",gap:[null,null,null,1],justifyContent:[null,null,null,"space-between"],paddingY:[3,null,null,0],color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},borderBottom:["1px",null,null,"unset"],borderColor:["tints.cream",null,null,"unset"],width:["100%",null,null,"fit-content"],cursor:"pointer",...m,...R,children:[t.jsx(r.Icon,{display:["none",null,null,"block"],as:M.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(r.Flex,{alignItems:"center",gap:"1",width:["100%",null,null,"auto"],children:[t.jsx(r.Text,{fontSize:[j||"xl",null,null,"lg"],fontWeight:"medium",children:h}),d&&(typeof d=="string"?t.jsx(r.Text,{fontSize:["xl",null,null,"lg"],fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:d}):d),t.jsx(r.Icon,{display:["block",null,null,"none"],as:M.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),we=E.forwardRef((a,s)=>{const{children:h,isSelected:d,...j}=a,g=a.backgroundColor||(d?"tints.lightCream":"transparent");return t.jsx(r.Button,{ref:s,borderRadius:"full",backgroundColor:g,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:g,textDecoration:"none",filter:"brightness(0.95)"},...j,children:h})}),it=({title:a,description:s,imageSrc:h,imageElement:d,button:j,backgroundColor:g="viridian.wash",onClick:C,href:R,linkComponent:f})=>{const m="80px",u="200px",w="272px",v=f||r.Link,c=Oe(R,!!f),L=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0});return t.jsxs(r.Flex,{direction:["row",null,null,"column"],alignItems:["center"],borderRadius:"xl",overflow:"hidden",height:[m,null,null,w],backgroundColor:g,onClick:C,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",border:"1px solid",borderColor:"transparent",_hover:{boxShadow:"lg",cursor:"pointer",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:L?r.Flex:v,...L?{}:c,children:[t.jsx(r.Box,{width:["72px",null,null,"100%"],height:["100%"],flex:[null,null,null,"1"],children:h?t.jsx(r.Image,{src:h,objectFit:"cover",height:[m,null,null,u],width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(r.Box,{height:[m,null,null,u],overflow:"hidden",children:d})}),t.jsxs(r.Flex,{direction:["column",null,null,"row"],justifyContent:[null,null,null,"space-between"],alignItems:["left",null,null,"center"],padding:"4",height:["100%",null,null,"auto"],width:"100%",position:[null,null,null,"absolute"],bottom:[null,null,null,"0"],backgroundColor:[null,null,null,`${g}CC`],backdropFilter:[null,null,null,"blur(8px)"],children:[t.jsxs(r.Box,{children:[t.jsx(r.Text,{fontSize:"lg",fontWeight:"medium",color:"tints.black",children:a}),t.jsx(r.Text,{fontSize:"sm",color:"tints.black",children:s})]}),L?t.jsx(r.Box,{children:j}):null]})]})},J=a=>t.jsx(r.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)"},...a}),Pt=()=>t.jsx("svg",{width:"116",height:"24",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",{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",fill:"#28724F"})})}),st=({desktopTopButtons:a,kitRegistrationElement:s,profileElement:h,cartElement:d,onSearchClick:j,onMenuClick:g,hasSearch:C=!1,logoLink:R="https://www.everlywell.com",setTopOffset:f,linkComponent:m,onLogoClick:u})=>{const w=E.useRef(null),v=E.useCallback(()=>{if(w.current){const c=w.current.getBoundingClientRect();f(c.bottom)}},[]);return E.useEffect(()=>{v()},[v]),t.jsx(r.Box,{ref:w,paddingY:"4",paddingX:[4,null,null,12],borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",position:"sticky",top:"0",width:"100%",zIndex:["sticky",null,null,"tooltip"],onMouseEnter:v,children:t.jsxs(r.Flex,{justifyContent:"space-between",alignItems:"center",children:[t.jsxs(r.Flex,{alignItems:"center",gap:"5",children:[t.jsx(r.Box,{"aria-label":"Go to homepage",onClick:u,as:m||r.Link,...Oe(R,!!m),children:t.jsx(Pt,{})}),t.jsx(r.Flex,{display:["none",null,null,"flex"],children:a})]}),t.jsxs(r.Flex,{alignItems:"center",gap:"2",children:[t.jsx(r.Box,{display:["none",null,null,"block"],children:s}),C?t.jsx(J,{"aria-label":"Search",icon:t.jsx(r.Icon,{as:M.MagnifyingGlass}),onClick:j}):null,d,t.jsx(r.Box,{display:["flex",null,null,"none"],children:t.jsx(J,{icon:t.jsx(M.List,{}),"aria-label":"menu","data-testid":"menu-button",onClick:g})}),t.jsx(r.Box,{display:["none",null,null,"block"],children:h})]})]})})},ut=({count:a=0,...s})=>t.jsxs(r.Box,{position:"relative",display:"inline-block",children:[t.jsx(J,{icon:t.jsx(M.Basket,{}),...s}),a>0&&t.jsx(r.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:a})]}),It=({numDesktopLinks:a=5,showPromoButton:s=!1})=>t.jsx(r.VStack,{spacing:0,align:"stretch",children:t.jsx(r.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",borderColor:"tints.lightCream",children:t.jsxs(r.Flex,{justify:"space-between",align:"center",children:[t.jsx(r.Skeleton,{w:"120px",h:"48px"}),t.jsxs(r.HStack,{spacing:8,marginLeft:12,display:["none",null,null,"flex"],"data-testid":"desktop-nav",children:[Array.from({length:a}).map((h,d)=>t.jsx(r.Skeleton,{width:"90px",height:"48px"},d)),s&&t.jsx(r.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(r.HStack,{spacing:4,ml:"auto",children:[t.jsx(r.SkeletonCircle,{width:"120px",height:"48px",display:["none",null,null,"block"],"data-testid":"register-kit"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),Bt=(a,s)=>{let h;return(...d)=>{h&&clearTimeout(h),h=setTimeout(()=>{a(...d)},s)}},ze="nav-drawer-hover",at=a=>{window.dispatchEvent(new CustomEvent(ze,{detail:{isHovering:a},bubbles:!0,cancelable:!0}))},Ft=(a=!1,s=!1,h=!1)=>a||!s?"column":h?"row":"row-reverse",At=Le.motion(r.DrawerContent),Ht=Le.motion(r.DrawerOverlay),De=({isOpen:a=!1,onClose:s,title:h,navDrawerLinks:d,bottomNavButtons:j,spotlightCards:g,bottomButton:C,hasBackButton:R=!0,onBackClick:f,hasOnlySpotlightCards:m=!1,hasSearch:u=!1,onSearch:w=()=>({}),topOffset:v})=>{const c=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0}),L=c?"top":"left",[V,Q]=E.useState(0),[F,_]=E.useState(!1),ue=()=>{Q(A=>A+1)},ce=E.useCallback(Bt(A=>{w(A),ue()},100),[]);E.useEffect(()=>{a&&_(!0)},[a]);const fe=()=>{a||(_(!1),s())};return t.jsx(r.Drawer,{isOpen:F||a,onClose:()=>{F&&c||s()},placement:L,blockScrollOnMount:!1,autoFocus:!1,children:t.jsx(Le.AnimatePresence,{children:a?t.jsxs(t.Fragment,{children:[t.jsx(Ht,{backgroundColor:"tints.black",top:["0",null,null,`${v}px`],opacity:c?void 0:"0.4 !important",...c?{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.3,ease:"easeOut"}}:{}}),t.jsxs(At,{onClick:A=>{const Y=A.target.closest("a");Y&&Y.href===window.location.href&&s()},onMouseEnter:()=>{c&&at(!0)},onMouseLeave:()=>{c&&at(!1)},paddingTop:"4",paddingX:[4,null,null,12],paddingBottom:"24",overflow:["auto",null,null,"hidden"],maxHeight:"100vh",position:"relative",top:c?`${v}px !important`:void 0,onAnimationComplete:fe,...c?{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3}}:{},children:[!u&&c?null:t.jsxs(r.DrawerHeader,{padding:"0",flexDirection:u?"column":"row",gap:u?"4":"0",children:[c?null:t.jsxs(r.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[R?t.jsx(J,{icon:t.jsx(M.CaretLeft,{}),onClick:()=>{f&&f(),s()},"aria-label":"Back"}):null,t.jsx(r.Text,{color:"tints.uiGrey",fontSize:["xl",null,null,"lg"],children:h}),t.jsx(J,{icon:t.jsx(M.X,{}),onClick:s,"aria-label":"Close"})]}),u&&t.jsxs(Z.InputGroup,{width:"100%",children:[t.jsx(Z.Input,{onChange:A=>{ce(A.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(Z.InputRightElement,{pointerEvents:"none",children:t.jsx(Z.Icon,{as:M.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(r.DrawerBody,{paddingX:"0",paddingBottom:[6,null,null,4],"data-testid":`navbar-drawer-body-${h.toLowerCase()}`,children:t.jsxs(Le.motion.div,{...c?{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:Ft(m,c,u),gap:"24px",justifyContent:"space-between"},children:[g?t.jsx(r.Box,{gap:"6",display:"flex",justifyContent:[null,null,null,"center"],sx:{"& > *":{width:["100%",null,null,"365px","432px"]},flexWrap:"wrap",flexDirection:["column",null,null,"row"]},children:g}):null,t.jsxs(r.Flex,{position:[null,null,null,"relative"],flexDirection:"column",gap:"6",width:["100%",null,null,u?null:"auto"],children:[d?t.jsx(r.Box,{children:d}):null,j&&!c?t.jsx(r.Box,{children:j}):null,C?t.jsx(r.Box,{width:["100%"],position:[null,null,null,"absolute"],bottom:[null,null,null,0],children:C}):null]})]},V)})]})]}):null})})},ot=a=>{const s=new Set;return a.reduce((h,d)=>{var g;const j=((g=d.sections)==null?void 0:g.reduce((C,R)=>{const f=R.links.filter(m=>s.has(m.label)||m.isSearchable!==!0?!1:(s.add(m.label),!0));return[...C,...f]},[]))??[];return[...h,...j]},[])},$t=({source:a,onSearchCallback:s,isActive:h})=>{const[d,j]=E.useState(""),[g,C]=E.useState([]),R=(u,w)=>{if(!u)return[];const v=u.toLowerCase();return w.filter(c=>{const L=c.label.toLowerCase().includes(v),V=typeof c.additionalContent=="string"&&c.additionalContent.toLowerCase().includes(v);return L||V}).sort((c,L)=>c.label.localeCompare(L.label))},f=u=>{if(j(u),!u){C([]);return}const w=R(u,a);C(w),s&&s(u,w)},m=()=>{j(""),C([])};return E.useEffect(()=>{h||(j(""),C([]))},[h]),{query:d,results:g,handleClose:m,handleSearch:f}},Mt=({categories:a=[],onCartClick:s,mainCategoryLabel:h="Menu",logoLink:d="https://www.everlywell.com",hasSearch:j=!0,onSearchClick:g,registrationUrl:C,profileUrl:R="https://secure.everlywell.com/login",mobileBottomButtons:f=[],numberOfCartItems:m=0,linkComponent:u,onSearchCallback:w,onLinkClick:v,onCategoryOpen:c,onMobileMenuOpen:L,onBackToMainMenu:V,onRegisterKitClick:Q,onProfileClick:F,onLogoClick:_,shopAllProductsUrl:ue,onShopAllProductsClick:ce})=>{var ve,ge,K;const[fe,A]=E.useState(!1),[ee,Y]=E.useState(!1),[S,$]=E.useState(null),[ye,de]=E.useState(!1),[I,z]=E.useState(!1),[U,je]=E.useState(0),Ee=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0})??!1;E.useEffect(()=>{re(),$(null)},[Ee]);const{query:Se,results:te,handleSearch:Re}=$t({source:ot(a),onSearchCallback:w,isActive:ee}),pe=te.length>0,ne=u||r.Link,_e=Oe(ue,!!u),Pe=Se&&t.jsxs(r.Flex,{gap:pe?"6":0,direction:"column",children:[pe?t.jsx(r.Text,{color:"tints.uiGrey",children:`${te.length} Results`}):t.jsxs(r.Flex,{direction:"column",gap:"6",alignItems:"flex-start",children:[t.jsx(r.Text,{color:"tints.uiGrey",children:"We didn't find what you were looking for."}),t.jsx(r.Button,{as:ne,onClick:ce,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],..._e,children:"Shop all products"})]}),t.jsx(r.Grid,{columns:[1,1,1,4],children:te.map((o,D)=>t.jsx(r.GridItem,{children:t.jsx(ke,{href:o.href,label:o.label,additionalContent:o==null?void 0:o.additionalContent,linkComponent:u})},`${o.label}-${D}`))})]}),re=()=>{A(!1),$(null)},W=o=>"href"in o,he=o=>{W(o)?v==null||v(o.label):$(o)},le=o=>{de(!0),Y(!1),$(null),!W(o)&&(o.sections||o.spotlightCards)&&$(o)},xe=()=>{de(!1)};E.useEffect(()=>{const o=D=>{z(D.detail.isHovering)};return window.addEventListener(ze,o),()=>{window.removeEventListener(ze,o)}},[]),E.useEffect(()=>{!ye&&!I&&($(null),Y(!1))},[ye,I]),E.useEffect(()=>{let o=window.location.href;const D=()=>{const B=window.location.href;B!==o&&(o=B,re(),$(null))},N=setInterval(D,100);return window.addEventListener("popstate",D),()=>{window.removeEventListener("popstate",D),clearInterval(N)}},[]);const ae=()=>{$(null),V==null||V()},Ie=t.jsx(t.Fragment,{children:a==null?void 0:a.map((o,D)=>t.jsx(we,{onMouseEnter:()=>{le(o),c==null||c(o.label)},onMouseLeave:xe,isSelected:(S==null?void 0:S.label)===o.label,as:W(o)&&ne?ne:r.Link,href:W(o)?o.href:void 0,onClick:W(o)?()=>v==null?void 0:v(o.label):void 0,...o.buttonProps,children:o.label},`${o.label}-${D}`))}),Te=(ve=a.filter(o=>!W(o)&&o.isMobileTopLink!==!1))==null?void 0:ve.map(o=>{const D=o;return t.jsx(r.Box,{onClick:()=>{he(D),c==null||c(D.label)},children:t.jsx(ke,{label:D.label,role:"link",additionalContent:D.additionalContent,mainTextFontSize:"3xl",linkComponent:u})},D.label)});ot(a);const Be=t.jsxs(t.Fragment,{children:[t.jsx(we,{as:r.Link,href:R,width:"100%",backgroundColor:"tints.cream",onClick:F,children:t.jsxs(r.Flex,{gap:"2",children:["My Everly",t.jsx(r.Icon,{as:M.User,size:24})]})},"my-everly"),t.jsx(we,{as:r.Link,width:"100%",href:C,backgroundColor:"tints.cream",onClick:Q,children:t.jsxs(r.Flex,{gap:"2",children:["Register kit",t.jsx(r.Icon,{as:M.QrCode,size:24})]})},"register-kit")]}),Fe=t.jsxs(r.Flex,{gap:"2",flexDirection:"column",children:[f,Be]}),oe=S?t.jsx(r.Flex,{direction:["column",null,null,"row"],gap:"8",children:(ge=S==null?void 0:S.sections)==null?void 0:ge.map((o,D)=>{const N=[];for(let B=0;B<o.links.length;B+=3)N.push(o.links.slice(B,B+3));return t.jsxs(r.Box,{children:[t.jsx(r.Text,{fontSize:"md",color:"tints.uiGrey",marginBottom:[0,null,null,6],children:o.title}),t.jsx(r.Flex,{flexDirection:["column",null,null,"row"],gap:[null,null,null,8],children:N==null?void 0:N.map((B,Ae)=>t.jsx(r.Flex,{flexDirection:["column"],gap:[null,null,null,5],marginLeft:[null,null,null,-2],children:B==null?void 0:B.map(G=>t.jsx(ke,{label:G.label,href:G.href,additionalContent:G.additionalContent,linkComponent:u,onClick:()=>v==null?void 0:v(G.label)},G.label))},Ae))})]},`${o.title}-${D}`)})}):null,q=S!=null&&S.spotlightCards?(K=S.spotlightCards)==null?void 0:K.map(o=>t.jsx(it,{...o},o.title)):t.jsx(r.Box,{});return t.jsxs(r.Box,{children:[t.jsx(st,{desktopTopButtons:Ie,kitRegistrationElement:t.jsx(we,{as:r.Link,href:C,onClick:Q,backgroundColor:"tints.cream",children:"Register Kit"}),profileElement:t.jsx(r.Link,{href:R,"aria-label":"login",onClick:F,children:t.jsx(J,{icon:t.jsx(r.Icon,{as:M.User}),"aria-label":"Profile"})}),cartElement:t.jsx(ut,{"aria-label":"Cart",count:m,onClick:s}),onSearchClick:()=>{Y(!ee),g==null||g()},onMenuClick:()=>{A(!0),L==null||L()},hasSearch:j,logoLink:d,linkComponent:u,onLogoClick:_,setTopOffset:je}),t.jsx(De,{isOpen:fe,onClose:re,title:h,navDrawerLinks:Te,bottomNavButtons:Fe,hasBackButton:!1,topOffset:U}),t.jsx(De,{isOpen:!!S,onClose:()=>{re(),$(null)},title:(S==null?void 0:S.label)||"",navDrawerLinks:oe,onBackClick:ae,spotlightCards:q,hasOnlySpotlightCards:S==null?void 0:S.hasOnlySpotlightCards,bottomButton:S==null?void 0:S.bottomButton,topOffset:U}),t.jsx(De,{isOpen:ee,onClose:()=>Y(!1),title:"Search",navDrawerLinks:Pe,onSearch:Re,hasSearch:!0,hasBackButton:!1,topOffset:U})]})};exports.BasketButton=ut;exports.CategoryLabel=Ot;exports.NavButton=we;exports.NavSkeleton=It;exports.NavbarDrawer=De;exports.NavbarDrawerLink=ke;exports.NavigationBar=Mt;exports.SpotlightCard=it;exports.Stepper=Lt;exports.TopNavIconButton=J;exports.TopNavigation=st;