@everlywell/consumer-ui 1.47.6 → 1.47.7

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 n=require("@everlywell/ui-kit"),j=require("react"),Z=require("@chakra-ui/react"),V=require("@phosphor-icons/react"),Oe=require("framer-motion");var Ke={exports:{}},Se={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@everlywell/ui-kit"),j=require("react"),Z=require("@chakra-ui/react"),V=require("@phosphor-icons/react"),Oe=require("framer-motion");var Ke={exports:{}},ke={};/**
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 it;function Mt(){if(it)return Se;it=1;var r=j,a=Symbol.for("react.element"),c=Symbol.for("react.fragment"),l=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 h(f,g,x){var p,k={},E=null,b=null;x!==void 0&&(E=""+x),g.key!==void 0&&(E=""+g.key),g.ref!==void 0&&(b=g.ref);for(p in g)l.call(g,p)&&!d.hasOwnProperty(p)&&(k[p]=g[p]);if(f&&f.defaultProps)for(p in g=f.defaultProps,g)k[p]===void 0&&(k[p]=g[p]);return{$$typeof:a,type:f,key:E,ref:b,props:k,_owner:u.current}}return Se.Fragment=c,Se.jsx=h,Se.jsxs=h,Se}var ke={};/**
9
+ */var it;function Mt(){if(it)return ke;it=1;var r=j,a=Symbol.for("react.element"),c=Symbol.for("react.fragment"),l=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 h(f,g,p){var x,S={},E=null,b=null;p!==void 0&&(E=""+p),g.key!==void 0&&(E=""+g.key),g.ref!==void 0&&(b=g.ref);for(x in g)l.call(g,x)&&!d.hasOwnProperty(x)&&(S[x]=g[x]);if(f&&f.defaultProps)for(x in g=f.defaultProps,g)S[x]===void 0&&(S[x]=g[x]);return{$$typeof:a,type:f,key:E,ref:b,props:S,_owner:u.current}}return ke.Fragment=c,ke.jsx=h,ke.jsxs=h,ke}var Se={};/**
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 lt;function At(){return lt||(lt=1,process.env.NODE_ENV!=="production"&&function(){var r=j,a=Symbol.for("react.element"),c=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=Symbol.iterator,L="@@iterator";function m(e){if(e===null||typeof e!="object")return null;var o=y&&e[y]||e[L];return typeof o=="function"?o:null}var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var o=arguments.length,s=new Array(o>1?o-1:0),v=1;v<o;v++)s[v-1]=arguments[v];C("error",e,s)}}function C(e,o,s){{var v=A.ReactDebugCurrentFrame,_=v.getStackAddendum();_!==""&&(o+="%s",s=s.concat([_]));var D=s.map(function(S){return String(S)});D.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,D)}}var F=!1,H=!1,G=!1,q=!1,ue=!1,ee;ee=Symbol.for("react.module.reference");function de(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===d||ue||e===u||e===x||e===p||q||e===b||F||H||G||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===k||e.$$typeof===h||e.$$typeof===f||e.$$typeof===g||e.$$typeof===ee||e.getModuleId!==void 0))}function fe(e,o,s){var v=e.displayName;if(v)return v;var _=o.displayName||o.name||"";return _!==""?s+"("+_+")":s}function ne(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 l:return"Fragment";case c:return"Portal";case d:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var o=e;return ne(o)+".Consumer";case h:var s=e;return ne(s._context)+".Provider";case g:return fe(e,e.render,"ForwardRef");case k:var v=e.displayName||null;return v!==null?v:$(e.type)||"Memo";case E:{var _=e,D=_._payload,S=_._init;try{return $(S(D))}catch{return null}}}return null}var I=Object.assign,X=0,re,oe,Re,_e,Te,he,De;function me(){}me.__reactDisabledLog=!0;function we(){{if(X===0){re=console.log,oe=console.info,Re=console.warn,_e=console.error,Te=console.group,he=console.groupCollapsed,De=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}X++}}function Pe(){{if(X--,X===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:re}),info:I({},e,{value:oe}),warn:I({},e,{value:Re}),error:I({},e,{value:_e}),group:I({},e,{value:Te}),groupCollapsed:I({},e,{value:he}),groupEnd:I({},e,{value:De})})}X<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=A.ReactCurrentDispatcher,U;function pe(e,o,s){{if(U===void 0)try{throw Error()}catch(_){var v=_.stack.trim().match(/\n( *(at )?)/);U=v&&v[1]||""}return`
18
- `+U+e}}var ae=!1,xe;{var je=typeof WeakMap=="function"?WeakMap:Map;xe=new je}function Ie(e,o){if(!e||ae)return"";{var s=xe.get(e);if(s!==void 0)return s}var v;ae=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var D;D=ye.current,ye.current=null,we();try{if(o){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch(W){v=W}Reflect.construct(e,[],S)}else{try{S.call()}catch(W){v=W}e.call(S.prototype)}}else{try{throw Error()}catch(W){v=W}e()}}catch(W){if(W&&v&&typeof W.stack=="string"){for(var w=W.stack.split(`
17
+ */var lt;function At(){return lt||(lt=1,process.env.NODE_ENV!=="production"&&function(){var r=j,a=Symbol.for("react.element"),c=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=Symbol.iterator,L="@@iterator";function m(e){if(e===null||typeof e!="object")return null;var o=y&&e[y]||e[L];return typeof o=="function"?o:null}var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var o=arguments.length,s=new Array(o>1?o-1:0),v=1;v<o;v++)s[v-1]=arguments[v];C("error",e,s)}}function C(e,o,s){{var v=A.ReactDebugCurrentFrame,_=v.getStackAddendum();_!==""&&(o+="%s",s=s.concat([_]));var D=s.map(function(k){return String(k)});D.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,D)}}var F=!1,H=!1,G=!1,q=!1,ue=!1,ee;ee=Symbol.for("react.module.reference");function de(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===d||ue||e===u||e===p||e===x||q||e===b||F||H||G||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===S||e.$$typeof===h||e.$$typeof===f||e.$$typeof===g||e.$$typeof===ee||e.getModuleId!==void 0))}function fe(e,o,s){var v=e.displayName;if(v)return v;var _=o.displayName||o.name||"";return _!==""?s+"("+_+")":s}function ne(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 l:return"Fragment";case c:return"Portal";case d:return"Profiler";case u:return"StrictMode";case p:return"Suspense";case x:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var o=e;return ne(o)+".Consumer";case h:var s=e;return ne(s._context)+".Provider";case g:return fe(e,e.render,"ForwardRef");case S:var v=e.displayName||null;return v!==null?v:$(e.type)||"Memo";case E:{var _=e,D=_._payload,k=_._init;try{return $(k(D))}catch{return null}}}return null}var I=Object.assign,X=0,re,oe,Re,_e,Te,he,De;function me(){}me.__reactDisabledLog=!0;function we(){{if(X===0){re=console.log,oe=console.info,Re=console.warn,_e=console.error,Te=console.group,he=console.groupCollapsed,De=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}X++}}function Pe(){{if(X--,X===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:re}),info:I({},e,{value:oe}),warn:I({},e,{value:Re}),error:I({},e,{value:_e}),group:I({},e,{value:Te}),groupCollapsed:I({},e,{value:he}),groupEnd:I({},e,{value:De})})}X<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=A.ReactCurrentDispatcher,U;function pe(e,o,s){{if(U===void 0)try{throw Error()}catch(_){var v=_.stack.trim().match(/\n( *(at )?)/);U=v&&v[1]||""}return`
18
+ `+U+e}}var ae=!1,xe;{var je=typeof WeakMap=="function"?WeakMap:Map;xe=new je}function Ie(e,o){if(!e||ae)return"";{var s=xe.get(e);if(s!==void 0)return s}var v;ae=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var D;D=ye.current,ye.current=null,we();try{if(o){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(W){v=W}Reflect.construct(e,[],k)}else{try{k.call()}catch(W){v=W}e.call(k.prototype)}}else{try{throw Error()}catch(W){v=W}e()}}catch(W){if(W&&v&&typeof W.stack=="string"){for(var w=W.stack.split(`
19
19
  `),z=v.stack.split(`
20
20
  `),O=w.length-1,M=z.length-1;O>=1&&M>=0&&w[O]!==z[M];)M--;for(;O>=1&&M>=0;O--,M--)if(w[O]!==z[M]){if(O!==1||M!==1)do if(O--,M--,M<0||w[O]!==z[M]){var K=`
21
- `+w[O].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),typeof e=="function"&&xe.set(e,K),K}while(O>=1&&M>=0);break}}}finally{ae=!1,ye.current=D,Pe(),Error.prepareStackTrace=_}var ve=e?e.displayName||e.name:"",ce=ve?pe(ve):"";return typeof e=="function"&&xe.set(e,ce),ce}function He(e,o,s){return Ie(e,!1)}function $e(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function Y(e,o,s){if(e==null)return"";if(typeof e=="function")return Ie(e,$e(e));if(typeof e=="string")return pe(e);switch(e){case x:return pe("Suspense");case p:return pe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return He(e.render);case k:return Y(e.type,o,s);case E:{var v=e,_=v._payload,D=v._init;try{return Y(D(_),o,s)}catch{}}}return""}var ie=Object.prototype.hasOwnProperty,Be={},Ce=A.ReactDebugCurrentFrame;function le(e){if(e){var o=e._owner,s=Y(e.type,e._source,o?o.type:null);Ce.setExtraStackFrame(s)}else Ce.setExtraStackFrame(null)}function Le(e,o,s,v,_){{var D=Function.call.bind(ie);for(var S in e)if(D(e,S)){var w=void 0;try{if(typeof e[S]!="function"){var z=Error((v||"React class")+": "+s+" type `"+S+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[S]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}w=e[S](o,S,v,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(O){w=O}w&&!(w instanceof Error)&&(le(_),R("%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).",v||"React class",s,S,typeof w),le(null)),w instanceof Error&&!(w.message in Be)&&(Be[w.message]=!0,le(_),R("Failed %s type: %s",s,w.message),le(null))}}}var i=Array.isArray;function T(e){return i(e)}function B(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,s=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function P(e){try{return se(e),!1}catch{return!0}}function se(e){return""+e}function J(e){if(P(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",B(e)),se(e)}var Q=A.ReactCurrentOwner,te={key:!0,ref:!0,__self:!0,__source:!0},N,Qe,ze;ze={};function mt(e){if(ie.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(ie.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function yt(e,o){if(typeof e.ref=="string"&&Q.current&&o&&Q.current.stateNode!==o){var s=$(Q.current.type);ze[s]||(R('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',$(Q.current.type),e.ref),ze[s]=!0)}}function jt(e,o){{var s=function(){N||(N=!0,R("%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 Ct(e,o){{var s=function(){Qe||(Qe=!0,R("%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,v,_,D,S){var w={$$typeof:a,type:e,key:o,ref:s,props:S,_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:v}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function kt(e,o,s,v,_){{var D,S={},w=null,z=null;s!==void 0&&(J(s),w=""+s),wt(o)&&(J(o.key),w=""+o.key),mt(o)&&(z=o.ref,yt(o,_));for(D in o)ie.call(o,D)&&!te.hasOwnProperty(D)&&(S[D]=o[D]);if(e&&e.defaultProps){var O=e.defaultProps;for(D in O)S[D]===void 0&&(S[D]=O[D])}if(w||z){var M=typeof e=="function"?e.displayName||e.name||"Unknown":e;w&&jt(S,M),z&&Ct(S,M)}return St(e,w,z,_,v,Q.current,S)}}var Ne=A.ReactCurrentOwner,qe=A.ReactDebugCurrentFrame;function ge(e){if(e){var o=e._owner,s=Y(e.type,e._source,o?o.type:null);qe.setExtraStackFrame(s)}else qe.setExtraStackFrame(null)}var We;We=!1;function Ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function et(){{if(Ne.current){var e=$(Ne.current.type);if(e)return`
21
+ `+w[O].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),typeof e=="function"&&xe.set(e,K),K}while(O>=1&&M>=0);break}}}finally{ae=!1,ye.current=D,Pe(),Error.prepareStackTrace=_}var ve=e?e.displayName||e.name:"",ce=ve?pe(ve):"";return typeof e=="function"&&xe.set(e,ce),ce}function He(e,o,s){return Ie(e,!1)}function $e(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function Y(e,o,s){if(e==null)return"";if(typeof e=="function")return Ie(e,$e(e));if(typeof e=="string")return pe(e);switch(e){case p:return pe("Suspense");case x:return pe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return He(e.render);case S:return Y(e.type,o,s);case E:{var v=e,_=v._payload,D=v._init;try{return Y(D(_),o,s)}catch{}}}return""}var ie=Object.prototype.hasOwnProperty,Be={},Ce=A.ReactDebugCurrentFrame;function le(e){if(e){var o=e._owner,s=Y(e.type,e._source,o?o.type:null);Ce.setExtraStackFrame(s)}else Ce.setExtraStackFrame(null)}function Le(e,o,s,v,_){{var D=Function.call.bind(ie);for(var k in e)if(D(e,k)){var w=void 0;try{if(typeof e[k]!="function"){var z=Error((v||"React class")+": "+s+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}w=e[k](o,k,v,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(O){w=O}w&&!(w instanceof Error)&&(le(_),R("%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).",v||"React class",s,k,typeof w),le(null)),w instanceof Error&&!(w.message in Be)&&(Be[w.message]=!0,le(_),R("Failed %s type: %s",s,w.message),le(null))}}}var i=Array.isArray;function T(e){return i(e)}function B(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,s=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function P(e){try{return se(e),!1}catch{return!0}}function se(e){return""+e}function J(e){if(P(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",B(e)),se(e)}var Q=A.ReactCurrentOwner,te={key:!0,ref:!0,__self:!0,__source:!0},N,Qe,ze;ze={};function mt(e){if(ie.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(ie.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function yt(e,o){if(typeof e.ref=="string"&&Q.current&&o&&Q.current.stateNode!==o){var s=$(Q.current.type);ze[s]||(R('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',$(Q.current.type),e.ref),ze[s]=!0)}}function jt(e,o){{var s=function(){N||(N=!0,R("%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 Ct(e,o){{var s=function(){Qe||(Qe=!0,R("%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 kt=function(e,o,s,v,_,D,k){var w={$$typeof:a,type:e,key:o,ref:s,props:k,_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:v}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function St(e,o,s,v,_){{var D,k={},w=null,z=null;s!==void 0&&(J(s),w=""+s),wt(o)&&(J(o.key),w=""+o.key),mt(o)&&(z=o.ref,yt(o,_));for(D in o)ie.call(o,D)&&!te.hasOwnProperty(D)&&(k[D]=o[D]);if(e&&e.defaultProps){var O=e.defaultProps;for(D in O)k[D]===void 0&&(k[D]=O[D])}if(w||z){var M=typeof e=="function"?e.displayName||e.name||"Unknown":e;w&&jt(k,M),z&&Ct(k,M)}return kt(e,w,z,_,v,Q.current,k)}}var Ne=A.ReactCurrentOwner,qe=A.ReactDebugCurrentFrame;function ge(e){if(e){var o=e._owner,s=Y(e.type,e._source,o?o.type:null);qe.setExtraStackFrame(s)}else qe.setExtraStackFrame(null)}var We;We=!1;function Ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function et(){{if(Ne.current){var e=$(Ne.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function Et(e){return""}var tt={};function Rt(e){{var o=et();if(!o){var s=typeof e=="string"?e:e.displayName||e.name;s&&(o=`
24
24
 
25
- Check the top-level render call using <`+s+">.")}return o}}function nt(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=Rt(o);if(tt[s])return;tt[s]=!0;var v="";e&&e._owner&&e._owner!==Ne.current&&(v=" It was passed a child from "+$(e._owner.type)+"."),ge(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,v),ge(null)}}function rt(e,o){{if(typeof e!="object")return;if(T(e))for(var s=0;s<e.length;s++){var v=e[s];Ve(v)&&nt(v,o)}else if(Ve(e))e._store&&(e._store.validated=!0);else if(e){var _=m(e);if(typeof _=="function"&&_!==e.entries)for(var D=_.call(e),S;!(S=D.next()).done;)Ve(S.value)&&nt(S.value,o)}}}function _t(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===g||o.$$typeof===k))s=o.propTypes;else return;if(s){var v=$(o);Le(s,e.props,"prop",v,e)}else if(o.PropTypes!==void 0&&!We){We=!0;var _=$(o);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Tt(e){{for(var o=Object.keys(e.props),s=0;s<o.length;s++){var v=o[s];if(v!=="children"&&v!=="key"){ge(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),ge(null);break}}e.ref!==null&&(ge(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),ge(null))}}var ot={};function at(e,o,s,v,_,D){{var S=de(e);if(!S){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 z=Et();z?w+=z:w+=et();var O;e===null?O="null":T(e)?O="array":e!==void 0&&e.$$typeof===a?(O="<"+($(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):O=typeof e,R("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 M=kt(e,o,s,_,D);if(M==null)return M;if(S){var K=o.children;if(K!==void 0)if(v)if(T(K)){for(var ve=0;ve<K.length;ve++)rt(K[ve],e);Object.freeze&&Object.freeze(K)}else R("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 rt(K,e)}if(ie.call(o,"key")){var ce=$(e),W=Object.keys(o).filter(function(Ot){return Ot!=="key"}),Ye=W.length>0?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[ce+Ye]){var Ft=W.length>0?"{"+W.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+s+">.")}return o}}function nt(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=Rt(o);if(tt[s])return;tt[s]=!0;var v="";e&&e._owner&&e._owner!==Ne.current&&(v=" It was passed a child from "+$(e._owner.type)+"."),ge(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,v),ge(null)}}function rt(e,o){{if(typeof e!="object")return;if(T(e))for(var s=0;s<e.length;s++){var v=e[s];Ve(v)&&nt(v,o)}else if(Ve(e))e._store&&(e._store.validated=!0);else if(e){var _=m(e);if(typeof _=="function"&&_!==e.entries)for(var D=_.call(e),k;!(k=D.next()).done;)Ve(k.value)&&nt(k.value,o)}}}function _t(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===g||o.$$typeof===S))s=o.propTypes;else return;if(s){var v=$(o);Le(s,e.props,"prop",v,e)}else if(o.PropTypes!==void 0&&!We){We=!0;var _=$(o);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Tt(e){{for(var o=Object.keys(e.props),s=0;s<o.length;s++){var v=o[s];if(v!=="children"&&v!=="key"){ge(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),ge(null);break}}e.ref!==null&&(ge(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),ge(null))}}var ot={};function at(e,o,s,v,_,D){{var k=de(e);if(!k){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 z=Et();z?w+=z:w+=et();var O;e===null?O="null":T(e)?O="array":e!==void 0&&e.$$typeof===a?(O="<"+($(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):O=typeof e,R("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 M=St(e,o,s,_,D);if(M==null)return M;if(k){var K=o.children;if(K!==void 0)if(v)if(T(K)){for(var ve=0;ve<K.length;ve++)rt(K[ve],e);Object.freeze&&Object.freeze(K)}else R("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 rt(K,e)}if(ie.call(o,"key")){var ce=$(e),W=Object.keys(o).filter(function(Ot){return Ot!=="key"}),Ye=W.length>0?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[ce+Ye]){var Ft=W.length>0?"{"+W.join(": ..., ")+": ...}":"{}";R(`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} />`,Ye,ce,Ft,ce),ot[ce+Ye]=!0}}return e===l?Tt(M):_t(M),M}}function Dt(e,o,s){return at(e,o,s,!0)}function It(e,o,s){return at(e,o,s,!1)}var Bt=It,Lt=Dt;ke.Fragment=l,ke.jsx=Bt,ke.jsxs=Lt}()),ke}process.env.NODE_ENV==="production"?Ke.exports=Mt():Ke.exports=At();var t=Ke.exports;const Ge=60,st=6,Pt=r=>{const{activeStepIndex:a,hideIndicators:c=!1,steps:l,stepperTheme:u={light:"eggplant.light",base:"eggplant.base"}}=r,{activeStep:d,setActiveStep:h}=n.useSteps({index:a,count:l.length});return j.useEffect(()=>{h(a)},[a,h]),t.jsx(n.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(n.Stepper,{role:"progressbar",index:d,width:"100%",display:"flex",flexWrap:"nowrap",children:l.map((f,g)=>{const x=d===g,p=g===0,k=g===l.length-1,E=d>g;let b=`${Ge}px`;const y=`calc(100% - ((${Ge*(l.length-1)}px) - (${l.length-1} * ${st*2}px)))`;return x?b=y:(p||k)&&(b=`${Ge-st}px`),t.jsx(n.Box,{width:b,opacity:E||x?1:.2,paddingRight:k?"0":"6px",paddingLeft:p?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(n.Box,{paddingTop:c?2:5,position:"relative",width:"100%",children:t.jsx(n.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:E?u.light:u.base,height:c?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${g}`)})})})},Ht=j.memo(Pt),$t=({children:r,...a})=>t.jsx(Z.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...a,children:r}),be=(r,a)=>{const c=(r==null?void 0:r.startsWith("http"))||(r==null?void 0:r.startsWith("mailto"));return a&&!c?{to:r}:{href:r}},Ee=j.forwardRef((r,a)=>{const{label:c,additionalContent:l,mainTextFontSize:u,linkComponent:d,href:h,forceMobileStyle:f=!1,...g}=r,x=d||n.Link,p=be(h,!!d),k=f?u||"xl":[u||"xl",null,null,"lg"],E=f?"xl":["xl",null,null,"lg"],b=f?void 0:[null,null,null,1],y=f?void 0:[null,null,null,"space-between"],L=f?"3":[3,null,null,0],m=f?"1px":["1px",null,null,"unset"],A=f?"tints.cream":["tints.cream",null,null,"unset"],R=f?"100%":["100%",null,null,"fit-content"],C=f?"none":["none",null,null,"block"],F=f?"100%":["100%",null,null,"auto"],H=f?"block":["block",null,null,"none"];return t.jsxs(n.Box,{ref:a,as:x,display:"flex",alignItems:"center",gap:b,justifyContent:y,paddingY:L,color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},borderBottom:m,borderColor:A,width:R,cursor:"pointer",...p,...g,children:[t.jsx(n.Icon,{display:C,as:V.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(n.Flex,{alignItems:"center",gap:"1",width:F,children:[t.jsx(n.Text,{fontSize:k,fontWeight:"medium",children:c}),l&&(typeof l=="string"?t.jsx(n.Text,{fontSize:E,fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:l}):l),t.jsx(n.Icon,{display:H,as:V.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),pt=j.forwardRef((r,a)=>{const{children:c,isSelected:l,...u}=r,d=r.backgroundColor||(l?"tints.lightCream":"transparent");return t.jsx(n.Button,{ref:a,borderRadius:"full",backgroundColor:d,fontSize:"lg !important",fontWeight:"normal",color:"tints.black",sx:{"&[href]":{textDecoration:"none"}},_before:{content:'""',position:"absolute",top:[null,null,null,-6],right:[null,null,null,-2],bottom:[null,null,null,-6],left:[null,null,null,-2]},_hover:{backgroundColor:d,textDecoration:"none",filter:"brightness(0.95)"},_focusVisible:{outline:"3px solid",outlineColor:"viridian.base",outlineOffset:"2px",boxShadow:"0 0 0 5px rgba(255, 255, 255, 0.9)",zIndex:1},...u,children:c})}),xt=({title:r,description:a,imageSrc:c,imageElement:l,button:u,backgroundColor:d="viridian.wash",onClick:h,href:f,linkComponent:g,forceMobileStyle:x=!1})=>{const b=g||n.Link,y=be(f,!!g),L=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0});return t.jsxs(n.Flex,{direction:x?"row":["row",null,null,"column"],alignItems:"center",borderRadius:"xl",overflow:"hidden",height:x?"80px":["80px",null,null,"272px"],backgroundColor:d,onClick:h,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",border:"1px solid",borderColor:"transparent",minWidth:x?"100%":["100%",null,null,"320px"],maxWidth:x?"100%":["100%",null,null,"380px"],_hover:{boxShadow:"lg",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:x?b:L?n.Flex:b,...x?y:L?{}:y,children:[t.jsx(n.Box,{width:x?"72px":["72px",null,null,"100%"],height:x?"100%":["100%",null,null,"188px"],sx:{img:{height:x?"100%":L?"188px":"100%",objectFit:x?"cover":"contain"}},children:c?t.jsx(n.Image,{src:c,objectFit:"cover",width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(n.Box,{height:x?80:[80,null,null,188],overflow:"hidden",...x?{sx:{div:{height:"100%"}}}:{},children:l})}),t.jsxs(n.Flex,{direction:x?"column":["column",null,null,"row"],justifyContent:x?void 0:[null,null,null,"space-between"],alignItems:x?"left":["left",null,null,"center"],padding:"4",height:x?"80px":["80px",null,null,"84px"],width:"100%",bottom:x?void 0:[null,null,null,"0"],backgroundColor:x?void 0:[null,null,null,`${d}CC`],backdropFilter:x?void 0:[null,null,null,"blur(8px)"],flex:"1",gap:x?void 0:[null,null,null,3],children:[t.jsxs(n.Flex,{direction:"column",justifyContent:"center",height:"100%",children:[t.jsx(n.Text,{as:"h3",fontSize:"lg",fontWeight:"medium",color:"tints.black",children:r}),t.jsx(n.Text,{fontSize:"sm",color:"tints.darkGrey",children:a})]}),x?null:L?t.jsx(n.Box,{children:u}):null]})]})},Me=r=>t.jsx(n.IconButton,{size:"sm",width:["40px",null,null,"46px"],height:["40px",null,null,"46px"],padding:["2 !important",null,null,"3 !important"],colorScheme:"whiteCS",backgroundColor:"tints.cream",sx:{svg:{width:"24px",height:"24px"}},_hover:{backgroundColor:"tints.cream",filter:"brightness(0.95)"},...r}),gt=({color:r=n.theme.colors.viridian.base,width:a})=>t.jsx(Z.Box,{as:"svg",width:a,height:"auto",viewBox:"0 0 116 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Everlywell Logo",children:t.jsx("g",{id:"Everlywell Logo",children:t.jsx("path",{fill:r,id:"Everlywell Logo_2",fillRule:"evenodd",clipRule:"evenodd",d:"M54.8224 1V17.8352H52.4272V1H54.8224ZM5.65731 14.992C4.9835 14.4474 4.59261 13.726 4.48231 12.8278H13.7822C13.9984 10.4829 13.5723 8.70006 12.5039 7.47915C11.4322 6.25824 9.93769 5.64945 8.01698 5.64945C6.23518 5.64945 4.78896 6.22479 3.67214 7.38216C2.55841 8.5395 2 9.92767 2 11.8377C2 13.7476 2.56171 15.273 3.68501 16.4136C4.80831 17.5542 6.30612 18.1229 8.18163 18.1229C9.11125 18.1229 10.0216 17.9489 10.9125 17.5944C11.8034 17.2431 12.533 16.7447 13.1075 16.1025L11.5517 14.5371C11.2095 14.9217 10.7253 15.2294 10.099 15.4636C9.46959 15.6944 8.84662 15.8115 8.22684 15.8115C7.18735 15.8115 6.33197 15.5372 5.65731 14.992ZM10.4671 8.60977C11.0772 9.10817 11.416 9.81395 11.4774 10.7305H4.52751C4.71152 9.81395 5.12475 9.10817 5.77027 8.60977C6.41589 8.11136 7.18735 7.86384 8.08473 7.86384C9.05966 7.86384 9.85696 8.11136 10.4671 8.60977ZM22.1465 17.8819L27.0047 5.93699H24.3771L22.6565 10.2486L20.8424 15.2828L18.8217 9.76697L17.2884 5.93699H14.6382L19.5189 17.8819H22.1465ZM30.3737 12.8244C30.4835 13.7242 30.8741 14.4467 31.5487 14.992C32.2234 15.5372 33.0788 15.8115 34.1181 15.8115C34.7379 15.8115 35.361 15.6944 35.9905 15.4636C36.6166 15.2294 37.1009 14.9217 37.4431 14.5371L38.999 16.1025C38.4244 16.7447 37.6948 17.2431 36.8039 17.5944C35.9129 17.9489 35.0027 18.1229 34.0729 18.1229C32.1975 18.1229 30.6997 17.5542 29.5764 16.4136C28.453 15.273 27.8914 13.7476 27.8914 11.8377C27.8914 9.92767 28.4498 8.5395 29.5635 7.38216C30.6804 6.22479 32.1265 5.64945 33.9084 5.64945C35.829 5.64945 37.3236 6.25824 38.3952 7.47915C39.4638 8.70006 39.8899 10.4829 39.6736 12.8278H30.3769L30.3737 12.8244ZM37.3688 10.7305C37.3075 9.81395 36.9685 9.10817 36.3584 8.60977C35.7483 8.11136 34.951 7.86384 33.9762 7.86384C33.0788 7.86384 32.3073 8.11136 31.6617 8.60977C31.0161 9.10817 30.6029 9.81395 30.4189 10.7305H37.3688ZM44.5032 7.5263L44.3418 5.96085H44.3385H42.108V17.8355H44.5032V11.4031C44.5032 10.3595 44.8001 9.5567 45.3877 8.99473C45.9751 8.43278 46.7112 8.15181 47.5956 8.15181C48.3703 8.15181 49.0417 8.39264 49.6163 8.87432L50.7073 6.70677C49.9811 6.03445 49.0353 5.6966 47.8732 5.6966C46.2914 5.6966 45.1681 6.30539 44.5032 7.5263ZM60.3782 12.3193V5.96054H57.983V12.3428C57.983 14.1089 58.4286 15.5004 59.3195 16.5106C60.2104 17.5241 61.3789 18.0292 62.8186 18.0292C64.552 18.0292 65.8787 17.387 66.7923 16.1025V18.1262C66.7923 19.2669 66.4824 20.1499 65.8626 20.7754C65.2429 21.401 64.494 21.7154 63.6094 21.7154C61.8889 21.7154 60.8754 20.9661 60.5654 19.4742H58.2187C58.3252 20.9326 58.8644 22.0532 59.8327 22.8326C60.8011 23.612 62.1214 24 63.6546 24C65.188 24 66.4727 23.5049 67.5121 22.5081C68.5515 21.5147 69.0712 20.0697 69.0712 18.1731V5.96054H66.6761V12.1521C66.6761 13.1623 66.3791 14.0153 65.7819 14.7043C65.188 15.3967 64.4681 15.7412 63.4933 15.7412C62.5184 15.7412 61.7566 15.4268 61.2047 14.8013C60.6526 14.1725 60.3782 13.3463 60.3782 12.3193ZM81.5989 5.93699L84.3427 15.2828L87.1768 5.93699H89.8496L85.8275 17.8819H83.0385L81.6892 13.9315L80.5724 9.79039L79.4328 13.9315L78.0836 17.8819H75.2945L71.2498 5.93699H73.9453L76.7795 15.2828L79.5232 5.93699H81.5924H81.5989ZM94.65 14.992C93.9754 14.4467 93.5848 13.7242 93.475 12.8244L93.4847 12.8278H102.781C102.998 10.4829 102.572 8.70006 101.503 7.47915C100.431 6.25824 98.9368 5.64945 97.0162 5.64945C95.2343 5.64945 93.785 6.22479 92.668 7.38216C91.5544 8.5395 90.9959 9.92767 90.9959 11.8377C90.9959 13.7476 91.5576 15.273 92.6809 16.4136C93.8043 17.5542 95.3021 18.1229 97.1775 18.1229C98.1073 18.1229 99.0175 17.9489 99.9084 17.5944C100.799 17.2431 101.529 16.7447 102.103 16.1025L100.544 14.5371C100.202 14.9217 99.7212 15.2328 99.0918 15.4636C98.4623 15.6944 97.8393 15.8115 97.2196 15.8115C96.1802 15.8115 95.3247 15.5372 94.65 14.992ZM99.4598 8.60977C100.07 9.10817 100.409 9.81395 100.47 10.7305H93.5202C93.7042 9.81395 94.1175 9.10817 94.763 8.60977C95.4086 8.11136 96.1802 7.86384 97.0774 7.86384C98.0524 7.86384 98.8465 8.11136 99.4598 8.60977ZM107.698 1V17.8352H105.303V1H107.698ZM113.53 17.8352V1H111.135V17.8352H113.53Z"})})}),vt=({desktopTopButtons:r,logoLink:a="https://www.everlywell.com",setTopOffset:c,linkComponent:l,onLogoClick:u,rightSideButtons:d})=>{const h=j.useRef(null),[f]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumTablet})`),[g]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumDesktop})`),x=j.useCallback(()=>{if(h.current){const p=h.current.getBoundingClientRect();c(p.bottom)}},[]);return j.useEffect(()=>{x()},[x]),t.jsx(n.Box,{ref:h,paddingY:"4",paddingX:f?4:g?6:8,borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",width:"100%",onMouseEnter:x,children:t.jsxs(n.Flex,{justifyContent:"space-between",alignItems:"center",children:[t.jsxs(n.Flex,{alignItems:"center",gap:"5",children:[t.jsx(n.Box,{"aria-label":"Go to homepage",onClick:u,as:l||n.Link,...be(a,!!l),children:t.jsx(gt,{width:"116px"})}),t.jsx(n.Flex,{display:["none",null,"none","none","flex","flex"],children:r})]}),t.jsx(n.Flex,{alignItems:"center",gap:"2",children:d})]})})},zt=({count:r=0,...a})=>t.jsxs(n.Box,{position:"relative",display:"inline-block",children:[t.jsx(Me,{icon:t.jsx(V.Basket,{}),...a}),r>0&&t.jsx(n.Box,{display:"flex",minWidth:"20px",height:"20px",py:"4px",px:"6px",justifyContent:"center",alignItems:"center",position:"absolute",right:"-4px",top:"-4px",borderRadius:"32px",background:"viridian.base",color:"white",fontSize:"xs",fontWeight:"normal",children:r})]}),Nt=({numDesktopLinks:r=5,showPromoButton:a=!1})=>t.jsx(n.VStack,{spacing:0,align:"stretch",children:t.jsx(n.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",borderColor:"tints.lightCream",children:t.jsxs(n.Flex,{justify:"space-between",align:"center",children:[t.jsx(n.Skeleton,{w:"120px",h:"48px"}),t.jsxs(n.HStack,{spacing:8,marginLeft:12,display:["none",null,null,"flex"],"data-testid":"desktop-nav",children:[Array.from({length:r}).map((c,l)=>t.jsx(n.Skeleton,{width:"90px",height:"48px"},l)),a&&t.jsx(n.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(n.HStack,{spacing:4,ml:"auto",children:[t.jsx(n.SkeletonCircle,{width:"120px",height:"48px",display:["none",null,null,"block"],"data-testid":"register-kit"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),Wt=(r,a)=>{let c;return(...l)=>{c&&clearTimeout(c),c=setTimeout(()=>{r(...l)},a)}},Ue=r=>r.toLowerCase().replace(/['']/g,"").replace(/[^a-z0-9]/g,""),Vt=(r,a)=>{r.length<a.length&&([r,a]=[a,r]);let c=Array(a.length+1).fill(0),l=Array(a.length+1).fill(0);for(let u=0;u<=a.length;u++)c[u]=u;for(let u=1;u<=r.length;u++){l[0]=u;for(let d=1;d<=a.length;d++){const h=r[u-1]===a[d-1]?0:1;l[d]=Math.min(l[d-1]+1,c[d]+1,c[d-1]+h)}[c,l]=[l,c]}return c[a.length]},Ae=(r,a,c=.6)=>{if(r.length<=3||a.length<=3)return r.includes(a)||a.includes(r);const l=Vt(r,a),u=Math.max(r.length,a.length);return 1-l/u>=c},ct=(r,a)=>{const c=r.split(/\s+/);return a.length<=4?c.some(l=>l.includes(a)):c.some(l=>{if(Ae(l,a))return!0;if(l.length>=a.length)for(let u=0;u<=l.length-a.length;u++){const d=l.slice(u,u+a.length+1);if(Ae(a,d))return!0}return!1})},Ze="nav-drawer-hover",Xe="nav-drawer-animation-start",Je="nav-drawer-animation-end",ut=r=>{window.dispatchEvent(new CustomEvent(Ze,{detail:{isHovering:r},bubbles:!0,cancelable:!0}))},dt=r=>{window.dispatchEvent(new CustomEvent(r,{bubbles:!0,cancelable:!0}))},Yt=(r=!1,a=!1,c=!1)=>r||!a?"column":"row",Gt=Oe.motion(n.DrawerContent),Ut=Oe.motion(n.DrawerOverlay),Fe=({isOpen:r=!1,onClose:a,title:c,navDrawerLinks:l,bottomNavButtons:u,spotlightCards:d,bottomButton:h,hasBackButton:f=!0,onBackClick:g,hasOnlySpotlightCards:x=!1,hasSearch:p=!1,onSearch:k=()=>({}),topOffset:E,forceMobilePlacement:b=!1})=>{var ue,ee,de,fe,ne,$;const y=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,L=b?"right":y?"top":"right",m=L==="right",[A,R]=j.useState(0),[C,F]=j.useState(!1),H=()=>{R(I=>I+1)},G=j.useCallback(Wt(I=>{k(I),H()},100),[]);j.useEffect(()=>{r&&(F(!0),dt(Xe))},[r]);const q=()=>{r||(F(!1),a()),dt(Je)};return t.jsx(n.Drawer,{isOpen:C||r,closeOnOverlayClick:!0,onClose:()=>{C&&!m||a()},placement:L,blockScrollOnMount:!1,autoFocus:!1,...m?{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...(ee=(ue=n.theme.components.Drawer)==null?void 0:ue.baseStyle)==null?void 0:ee.dialogContainer,zIndex:"popover"},dialog:{...(fe=(de=n.theme.components.Drawer)==null?void 0:de.baseStyle)==null?void 0:fe.dialog,maxW:"560px",width:"auto"}}}}:{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...($=(ne=n.theme.components.Drawer)==null?void 0:ne.baseStyle)==null?void 0:$.dialogContainer,top:`${E}px`,zIndex:"overlay"}}}},children:t.jsx(Oe.AnimatePresence,{children:r?t.jsxs(t.Fragment,{children:[t.jsx(Ut,{backgroundColor:"tints.black",top:m?"0":`${E}px`,opacity:m?"0.4 !important":void 0,zIndex:m?"modal":"overlay",...m?{}:{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.15,ease:"easeOut"}}}),t.jsxs(Gt,{onClick:I=>{const re=I.target.closest("a");re&&re.href===window.location.href&&a()},onMouseEnter:()=>{m||ut(!0)},onMouseLeave:I=>{m||(!p||p&&(I.target===I.currentTarget||!I.currentTarget.contains(I.target)&&!C))&&ut(!1)},paddingTop:"4",paddingX:m?"4":"12",paddingBottom:"24",overflow:m?"auto":"hidden",maxHeight:"100vh",position:"relative",top:m?void 0:`${E}px !important`,onAnimationComplete:q,boxShadow:"none",...m?{initial:!1,animate:!1,exit:!1}:{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3}},children:[!p&&!m?null:t.jsxs(n.DrawerHeader,{padding:"0",flexDirection:p?"column":"row",gap:p?"4":"0",children:[m?t.jsxs(n.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[f?t.jsx(Me,{icon:t.jsx(V.CaretLeft,{}),onClick:()=>{g&&g()},"aria-label":"Back"}):null,t.jsx(n.Text,{as:"h2",color:"tints.uiGrey",fontSize:"xl",children:c}),t.jsx(Me,{icon:t.jsx(V.X,{}),onClick:a,"aria-label":"Close"})]}):null,p&&t.jsxs(Z.InputGroup,{width:"100%",children:[t.jsx(Z.Input,{onChange:I=>{G(I.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(Z.InputRightElement,{pointerEvents:"none",children:t.jsx(Z.Icon,{as:V.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(n.DrawerBody,{paddingX:"0",paddingBottom:m?"6":"4","data-testid":`navbar-drawer-body-${c.toLowerCase()}`,children:t.jsxs(Oe.motion.div,{...m?{}:{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},transition:{duration:.5,delay:.2,ease:[.4,0,.2,1],exit:{duration:.5,delay:.2,ease:[.4,0,.2,1]}}},style:{display:"flex",flexDirection:Yt(x,!m,p),gap:"24px",justifyContent:"space-between"},children:[t.jsxs(n.Flex,{position:m?void 0:"relative",flexDirection:"column",gap:"6",width:m?"100%":p?void 0:"auto",children:[l?t.jsx(n.Box,{children:l}):null,u&&m?t.jsx(n.Box,{children:u}):null,h?t.jsx(n.Box,{width:"100%",position:m?void 0:"absolute",bottom:m?void 0:0,...m?{sx:{a:{width:"100%"}}}:{},children:h}):null]}),d?t.jsx(n.Box,{gap:m?"3":"6",display:"flex",justifyContent:m?void 0:"center",sx:{flexWrap:"wrap",flexDirection:m?"column":"row"},children:d}):null]},A)})]})]}):null})})},Kt=({source:r,onSearchCallback:a,isActive:c})=>{const[l,u]=j.useState(""),[d,h]=j.useState([]),f=(p,k)=>{if(!p)return[];const b=Ue(p).split(/\s+/);return k.filter(y=>{const L=Ue(y.label);if(b.some(F=>ct(L,F)))return!0;const A=L.split(/\s+/),R=b.some(F=>A.some(H=>H.includes(F)||Ae(F,H))),C=typeof y.additionalContent=="string"&&b.some(F=>{const H=Ue(y.additionalContent);return ct(H,F)||H.split(/\s+/).some(G=>G.includes(F)||Ae(F,G))});return R||C}).sort((y,L)=>y.label.localeCompare(L.label))},g=p=>{if(u(p),!p){h([]);return}const k=f(p,r);h(k),a&&a(p,k)},x=()=>{u(""),h([])};return j.useEffect(()=>{c||(u(""),h([]))},[c]),{query:l,results:d,handleClose:x,handleSearch:g}},Zt=r=>{const a=new Set;return r.reduce((c,l)=>{var d;const u=((d=l.sections)==null?void 0:d.reduce((h,f)=>{const g=f.links.filter(x=>a.has(x.label)||x.isSearchable!==!0?!1:(a.add(x.label),!0));return[...h,...g]},[]))??[];return[...c,...u]},[])},bt=()=>{const[r,a]=j.useState(!1),[c,l]=j.useState(!1),[u,d]=j.useState(null);return{isMainMenuOpen:r,isSearchOpen:c,selectedCategory:u,clearSelectedCategory:()=>d(null),handleSelectCategory:b=>d(b),closeMainMenu:()=>{a(!1),d(null)},closeSearch:()=>l(!1),toggleSearch:()=>l(b=>!b),openMainMenu:()=>a(!0),openSearch:()=>l(!0)}},Xt="#28724F",Jt=({categories:r=[],mainCategoryLabel:a="Menu",logoLink:c="https://www.everlywell.com",mobileBottomButtons:l=[],linkComponent:u,onSearchCallback:d,onLinkClick:h,onCategoryOpen:f,onLogoClick:g,shopAllProductsUrl:x,onShopAllProductsClick:p,hideableButtons:k,children:E})=>{var Ce,le,Le;const b=bt(),{isMainMenuOpen:y,isSearchOpen:L,closeMainMenu:m,closeSearch:A,clearSelectedCategory:R,selectedCategory:C,handleSelectCategory:F}=b,[H,G]=j.useState(!1),[q,ue]=j.useState(!1),[ee,de]=j.useState(0),[fe,ne]=j.useState(!1),[$,I]=j.useState(!1),X=j.useRef(!1);j.useEffect(()=>{const i=()=>{X.current=!0},T=()=>{X.current=!1};return document.addEventListener("keydown",i,!0),document.addEventListener("mousedown",T,!0),()=>{document.removeEventListener("keydown",i,!0),document.removeEventListener("mousedown",T,!0)}},[]),j.useEffect(()=>{const i=()=>ne(!0),T=()=>ne(!1);return window.addEventListener(Xe,i),window.addEventListener(Je,T),()=>{window.removeEventListener(Xe,i),window.removeEventListener(Je,T)}},[]);const re=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,oe=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!1,desktop:!1,fullDesktop:!0})??!1,Re=!oe,_e=Z.useBreakpointValue({base:!0,tablet:!0,largeTablet:!0,mediumDesktop:!1,desktop:!1,fullDesktop:!1})??!0;j.useEffect(()=>{m(),R()},[re]);const{query:Te,results:he,handleSearch:De}=Kt({source:Zt(r),onSearchCallback:d,isActive:L}),me=he.length>0,we=u||n.Link,Pe=be(x,!!u),ye=Te&&t.jsxs(n.Flex,{gap:me?"6":0,direction:"column",children:[me?t.jsx(n.Text,{color:"tints.uiGrey",children:`${he.length} Results`}):t.jsxs(n.Flex,{direction:"column",gap:"6",alignItems:"flex-start",children:[t.jsx(n.Text,{color:"tints.uiGrey",children:"We didn't find what you were looking for."}),t.jsx(n.Button,{as:we,onClick:p,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],...Pe,children:"Shop all products"})]}),t.jsx(n.Grid,{columns:[1,1,1,4],children:he.map((i,T)=>t.jsx(n.GridItem,{children:t.jsx(Ee,{href:i.href,label:i.label,additionalContent:i==null?void 0:i.additionalContent,linkComponent:u,forceMobileStyle:!re})},`${i.label}-${T}`))})]}),U=i=>"href"in i,pe=i=>{U(i)?h==null||h(i.label):(I(y||!oe),F(i))},ae=i=>{G(!0),A(),R(),!U(i)&&(i.sections||i.spotlightCards)&&(I(!1),F(i))},xe=()=>{G(!1)};j.useEffect(()=>{const i=T=>{ue(T.detail.isHovering)};return window.addEventListener(Ze,i),()=>{window.removeEventListener(Ze,i)}},[]),j.useEffect(()=>{!H&&!q&&(R(),A(),!y&&oe&&I(!1))},[H,q,y,oe]),j.useEffect(()=>{let i=window.location.href;const T=()=>{const P=window.location.href;P!==i&&(i=P,m(),R())},B=setInterval(T,100);return window.addEventListener("popstate",T),()=>{window.removeEventListener("popstate",T),clearInterval(B)}},[]);const je=i=>U(i)&&(!i.buttonProps||Object.keys(i.buttonProps).length===0||i.buttonProps===void 0),Ie=r==null?void 0:r.map((i,T)=>{var J,Q;const B=k.includes(i.label),P=!U(i),se=(C==null?void 0:C.label)===i.label;return t.jsx(pt,{height:"48px",paddingInline:"16px !important",onMouseEnter:()=>{ae(i),f==null||f(i.label)},onMouseLeave:xe,isSelected:se,as:U(i)&&we?we:n.Link,href:U(i)?i.href:void 0,onClick:U(i)?()=>h==null?void 0:h(i.label):()=>{ae(i),f==null||f(i.label)},...P&&{tabIndex:0,role:"button","aria-haspopup":"true","aria-expanded":se,onKeyDown:te=>{(te.key==="Enter"||te.key===" ")&&(te.preventDefault(),ae(i),f==null||f(i.label))},onFocus:te=>{const N=te.currentTarget;X.current&&(N.style.outline=`3px solid ${Xt}`,N.style.outlineOffset="2px",N.style.boxShadow="0 0 0 5px rgba(255,255,255,0.9)",N.style.borderRadius="9999px",N.style.zIndex="1")},onBlur:te=>{const N=te.currentTarget;N.style.outline="",N.style.outlineOffset="",N.style.boxShadow="",N.style.borderRadius="",N.style.zIndex=""}},...B&&{display:{base:"none",fullDesktop:"flex"}},...((J=i==null?void 0:i.context)==null?void 0:J.desktop)==="link"||je(i)?{_hover:{backgroundColor:"tints.lightCream",textDecoration:"none",filter:"brightness(0.95)"}}:{},...((Q=i==null?void 0:i.context)==null?void 0:Q.desktop)!=="link"&&i.buttonProps,children:i.label},`${i.label}-${T}`)}),He=(Ce=r.filter(i=>{var T;return((T=i==null?void 0:i.context)==null?void 0:T.mobile)==="link"||(!U(i)&&i.isMobileTopLink!==!1||je(i))&&(Re&&k.includes(i.label)||_e)}))==null?void 0:Ce.map((i,T)=>{var P;const B=i;return je(B)||((P=B==null?void 0:B.context)==null?void 0:P.mobile)==="link"?t.jsx(n.Box,{children:t.jsx(Ee,{label:B.label,role:"link",href:B.href,mainTextFontSize:"3xl",linkComponent:u,forceMobileStyle:!0})},`${B.label}-${T}`):t.jsx(n.Box,{onClick:()=>{pe(B),f==null||f(B.label)},children:t.jsx(Ee,{label:B.label,role:"link",additionalContent:B.additionalContent,mainTextFontSize:"3xl",linkComponent:u,forceMobileStyle:!0})},`${B.label}-${T}`)}),$e=t.jsx(n.Flex,{gap:"2",flexDirection:"column",children:l}),Y=$||y,ie=C?t.jsx(n.Flex,{direction:Y?"column":["column",null,null,"row"],gap:"8",children:(le=C==null?void 0:C.sections)==null?void 0:le.map((i,T)=>{const B=[];for(let P=0;P<i.links.length;P+=3)B.push(i.links.slice(P,P+3));return t.jsxs(n.Box,{children:[t.jsx(n.Text,{as:"h2",fontSize:"md",color:"tints.uiGrey",marginBottom:Y?0:[0,null,null,6],children:i.title}),t.jsx(n.Flex,{flexDirection:Y?"column":["column",null,null,"row"],gap:Y?void 0:[null,null,null,8],children:B==null?void 0:B.map((P,se)=>t.jsx(n.Flex,{flexDirection:"column",gap:Y?void 0:[null,null,null,5],marginLeft:Y?void 0:[null,null,null,-2],children:P==null?void 0:P.map((J,Q)=>t.jsx(Ee,{label:J.label,href:J.href,additionalContent:J.additionalContent,linkComponent:u,forceMobileStyle:Y,onClick:()=>h==null?void 0:h(J.label)},`${J.label}-${Q}`))},se))})]},`${i.title}-${T}`)})}):null,Be=C!=null&&C.spotlightCards?(Le=C.spotlightCards)==null?void 0:Le.map((i,T)=>t.jsx(xt,{...i,forceMobileStyle:Y},`${i.title}-${T}`)):t.jsx(n.Box,{});return t.jsxs(n.Box,{as:"nav","aria-label":"Main navigation",position:"sticky",top:"0",width:"100%",zIndex:["sticky",null,null,fe?"modal":"sticky"],children:[t.jsx(vt,{desktopTopButtons:Ie,logoLink:c,linkComponent:u,onLogoClick:g,setTopOffset:de,rightSideButtons:typeof E=="function"?E(b):E}),t.jsxs(n.Box,{position:"relative",zIndex:"modal",children:[t.jsx(Fe,{isOpen:y,onClose:m,title:a,navDrawerLinks:He,bottomNavButtons:$e,hasBackButton:!1,topOffset:ee,forceMobilePlacement:!0}),t.jsx(Fe,{isOpen:!!C,onClose:()=>{m(),R(),y||I(!1)},title:(C==null?void 0:C.label)||"",navDrawerLinks:ie,onBackClick:()=>{R(),y||I(!1)},spotlightCards:Be,hasOnlySpotlightCards:C==null?void 0:C.hasOnlySpotlightCards,bottomButton:C==null?void 0:C.bottomButton,topOffset:ee,forceMobilePlacement:$||y||y&&!oe}),t.jsx(Fe,{isOpen:L,onClose:()=>A(),title:"Search",navDrawerLinks:ye,onSearch:De,hasSearch:!0,hasBackButton:!1,topOffset:ee})]})]})},ft=({links:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>{const u=a||n.Link,d=h=>{c&&c(h)};return t.jsx(n.Flex,{direction:"column",gap:6,children:r.map(h=>t.jsx(n.Text,{as:u,color:l==="dark"?"white":"viridian.base",size:"lg",_hover:{color:"viridian.lighter",textDecoration:"none"},onClick:()=>d(h.label),...be(h.href,!!a),children:h.label},h.label))})},Qt=({title:r,links:a,isLast:c})=>{const l=c?"transparent":`${n.theme.colors.viridian.lighter}20`;return a?t.jsx(n.AccordionItem,{borderColor:l,children:({isExpanded:u})=>t.jsxs(t.Fragment,{children:[t.jsxs(n.AccordionButton,{paddingX:0,paddingY:4,_hover:{bg:"transparent"},children:[t.jsx(n.Text,{color:"viridian.lighter",size:"lg",flex:"1",textAlign:"left",children:r}),t.jsx(n.Icon,{as:V.CaretDown,size:"sm",color:"viridian.lighter",transform:u?"rotate(-180deg)":"rotate(0deg)",transition:"transform 0.3s ease"})]}),t.jsx(n.AccordionPanel,{pb:4,px:0,children:a})]})}):null},qt=({title:r,links:a,footerTheme:c})=>a?t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:c==="dark"?"viridian.lighter":"tints.darkGrey",mb:6,fontSize:"lg",children:r}),a]}):null,en=({sections:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!0,desktop:!0})?t.jsx(n.Flex,{justify:"space-between",align:"flex-start",children:t.jsx(n.Flex,{gap:120,children:r.map(({title:d,links:h})=>t.jsx(qt,{footerTheme:l,title:d,links:t.jsx(ft,{links:h,linkComponent:a,onLinkClick:c,footerTheme:l})},d))})}):t.jsx(n.Accordion,{allowMultiple:!0,defaultIndex:[0],width:"100%",display:"flex",flexDirection:"column",children:r.map(({title:d,links:h},f)=>t.jsx(Qt,{title:d,links:t.jsx(ft,{links:h,linkComponent:a,onLinkClick:c,footerTheme:l}),isLast:f===r.length-1},d))}),ht={instagram:V.InstagramLogo,linkedin:V.LinkedinLogo,facebook:V.FacebookLogo,tiktok:V.TiktokLogo,x:V.XLogo},tn=({socialLinks:r,onEmailSubmit:a,socialMediaLabel:c,newsletterLabel:l,onLinkClick:u,showNewsletter:d=!0,footerTheme:h})=>{const f=h==="dark",[g,x]=j.useState(""),p=()=>{g&&a&&(a(g),x(""))},k=b=>{b.key==="Enter"&&p()},E=b=>{u&&u(b)};return t.jsxs(n.Box,{width:["100%",null,null,"440px"],children:[d&&t.jsxs(n.Box,{mb:[8,10],children:[t.jsx(n.Text,{color:f?"viridian.lighter":"tints.darkGrey",mb:6,size:"lg",children:l}),t.jsxs(n.InputGroup,{children:[t.jsx(n.Input,{"aria-label":"Email address",type:"email",placeholder:"Enter your email",bg:f?"transparent":"tints.white",border:"1px solid",borderColor:f?"viridian.lighter":"tints.darkCream",color:f?"viridian.lighter":"tints.darkGrey",_placeholder:{color:f?"viridian.lighter":"tints.darkGrey"},opacity:.66,height:"52px",pr:"48px",value:g,onChange:b=>x(b.target.value),onKeyPress:k}),t.jsx(n.InputRightElement,{h:"52px",pr:4,children:t.jsx(n.Icon,{as:V.ArrowRight,color:f?"viridian.lighter":"viridian.base",width:"24px",height:"24px",opacity:.66,cursor:"pointer",onClick:p,"data-testid":"arrow-right-icon",role:"button","aria-label":"Submit"})})]})]}),t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:f?"viridian.lighter":"tints.darkGrey",marginBottom:4,size:"lg",children:c}),t.jsx(n.Flex,{gap:3,children:r==null?void 0:r.map(b=>t.jsx(n.Link,{href:b.href,target:"_blank",rel:"noopener noreferrer","aria-label":b.name,onClick:()=>E(b.name),children:ht[b.name.toLowerCase()]&&t.jsx(n.Icon,{as:ht[b.name.toLowerCase()],color:f?"white":"viridian.base",width:["48px",null,"24px",null],height:["48px",null,"24px",null]})},b.name))})]})]})},nn=({links:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>{const u=a||n.Link,d=l==="dark",[h,f]=j.useState(()=>new Date().getFullYear());j.useEffect(()=>{f(new Date().getFullYear())},[]);const g=p=>{c&&c(p)},x=r==null?void 0:r.map(p=>t.jsx(n.Text,{as:u,color:d?"viridian.lighter":"viridian.base",size:"sm",_hover:{color:d?"white":"viridian.lighter",textDecoration:"none"},onClick:()=>g(p.label),...be(p.href,!!a),children:p.label},p.label));return t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[t.jsx(n.Flex,{direction:"row",flexWrap:"wrap",gap:[4,6,10],width:["100%","auto"],children:x}),t.jsxs(n.Text,{color:d?"viridian.lighter":"tints.darkGrey",fontSize:"sm",children:["© Everlywell ",h]})]})},rn=j.forwardRef(({navigationSections:r=[],disclaimer:a,newsletterLabel:c,socialMediaLabel:l,socialLinks:u,complianceLinks:d,linkComponent:h,onEmailSubmit:f,additionalContent:g,onLinkClick:x,onSocialMediaClick:p,showNewsletter:k=!0,footerTheme:E="dark"},b)=>{const y=E==="dark";return t.jsx(n.Box,{as:"footer",bg:y?"viridian.dark":"tints.lightCream",py:[6,8],px:[4,6],ref:b,children:t.jsxs(n.Container,{size:"fluid",children:[t.jsxs(n.Flex,{direction:"column",gap:[8,12],children:[t.jsx(n.Box,{children:t.jsx(gt,{width:["150px","202px"],color:y?"white":n.theme.colors.viridian.base})}),t.jsxs(n.Flex,{direction:["column",null,null,"row"],justify:"space-between",align:["flex-start"],gap:[8,8,8,0],children:[t.jsx(en,{sections:r,linkComponent:h,onLinkClick:x,footerTheme:E}),t.jsx(tn,{socialLinks:u,newsletterLabel:c,socialMediaLabel:l,onEmailSubmit:f,onLinkClick:p,showNewsletter:k,footerTheme:E})]}),t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",alignContent:"center",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[typeof a=="string"?t.jsx(n.Text,{color:y?"viridian.lighter":"tints.uiGrey",fontSize:"sm",maxWidth:["100%","100%","1024px"],dangerouslySetInnerHTML:{__html:a},sx:{"a:hover":{color:y?"viridian.light":"viridian.base",textDecoration:"underline"}}}):a,g]})]}),t.jsx(n.Box,{borderTop:"1px solid",borderColor:y?`${n.theme.colors.viridian.lighter}20`:"tints.darkCream",marginTop:"10",marginBottom:"8"}),t.jsx(nn,{links:d,linkComponent:h,onLinkClick:x,footerTheme:E})]})})}),on=r=>r?{Container:n.Drawer,Overlay:n.DrawerOverlay,Content:n.DrawerContent,Header:n.DrawerHeader,Body:n.DrawerBody,Footer:n.DrawerFooter,CloseButton:n.DrawerCloseButton}:{Container:n.Modal,Overlay:n.ModalOverlay,Content:n.ModalContent,Header:n.ModalHeader,Body:n.ModalBody,Footer:n.ModalFooter,CloseButton:n.ModalCloseButton},an=({isOpen:r,onClose:a,children:c,header:l,footer:u,headerProps:d,bodyProps:h,footerProps:f,contentProps:g,...x})=>{var C,F,H,G,q;const[p]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.tablet})`),k=(q=(G=(H=(F=(C=n.theme)==null?void 0:C.components)==null?void 0:F.Modal)==null?void 0:H.baseStyle)==null?void 0:G.overlay)==null?void 0:q.background,{Container:E,Overlay:b,Content:y,Header:L,Body:m,Footer:A,CloseButton:R}=on(p);return t.jsxs(E,{...x,isOpen:r,onClose:a,size:"xl",...p?{placement:"bottom"}:{},children:[t.jsx(b,{backdropFilter:"auto",backgroundColor:k}),t.jsxs(y,{backgroundColor:"tints.white",borderRadius:p?"20px 20px 0 0":"20px",overflowY:"auto",gap:0,...l&&p&&{paddingTop:0},...g,children:[t.jsxs(L,{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center",fontSize:"lg",color:"tints.black",fontWeight:"normal",position:"sticky",top:0,zIndex:"modal",backgroundColor:"tints.white",paddingInline:4,...p?{paddingBlock:4}:{paddingTop:6,paddingBlockEnd:2},...d,children:[l,t.jsx(R,{position:"static",width:32,height:32,backgroundColor:"tints.cream",sx:{".chakra-icon":{fontSize:"1rem"}},children:t.jsx(n.Icon,{as:V.X,weight:"light"})})]}),t.jsx(m,{color:"tints.darkGrey",paddingInline:4,...h,children:c}),t.jsx(A,{paddingInline:4,...f,children:u})]})]})};exports.BasketButton=zt;exports.CategoryLabel=$t;exports.DrawerModal=an;exports.Footer=rn;exports.NavButton=pt;exports.NavSkeleton=Nt;exports.NavbarDrawer=Fe;exports.NavbarDrawerLink=Ee;exports.NavigationBar=Jt;exports.SpotlightCard=xt;exports.Stepper=Ht;exports.TopNavIconButton=Me;exports.TopNavigation=vt;exports.useNavigationBar=bt;
30
+ <%s key={someKey} {...props} />`,Ye,ce,Ft,ce),ot[ce+Ye]=!0}}return e===l?Tt(M):_t(M),M}}function Dt(e,o,s){return at(e,o,s,!0)}function It(e,o,s){return at(e,o,s,!1)}var Bt=It,Lt=Dt;Se.Fragment=l,Se.jsx=Bt,Se.jsxs=Lt}()),Se}process.env.NODE_ENV==="production"?Ke.exports=Mt():Ke.exports=At();var t=Ke.exports;const Ge=60,st=6,Pt=r=>{const{activeStepIndex:a,hideIndicators:c=!1,steps:l,stepperTheme:u={light:"eggplant.light",base:"eggplant.base"}}=r,{activeStep:d,setActiveStep:h}=n.useSteps({index:a,count:l.length});return j.useEffect(()=>{h(a)},[a,h]),t.jsx(n.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(n.Stepper,{role:"progressbar",index:d,width:"100%",display:"flex",flexWrap:"nowrap",children:l.map((f,g)=>{const p=d===g,x=g===0,S=g===l.length-1,E=d>g;let b=`${Ge}px`;const y=`calc(100% - ((${Ge*(l.length-1)}px) - (${l.length-1} * ${st*2}px)))`;return p?b=y:(x||S)&&(b=`${Ge-st}px`),t.jsx(n.Box,{width:b,opacity:E||p?1:.2,paddingRight:S?"0":"6px",paddingLeft:x?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(n.Box,{paddingTop:c?2:5,position:"relative",width:"100%",children:t.jsx(n.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:E?u.light:u.base,height:c?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${g}`)})})})},Ht=j.memo(Pt),$t=({children:r,...a})=>t.jsx(Z.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...a,children:r}),be=(r,a)=>{const c=(r==null?void 0:r.startsWith("http"))||(r==null?void 0:r.startsWith("mailto"));return a&&!c?{to:r}:{href:r}},Ee=j.forwardRef((r,a)=>{const{label:c,additionalContent:l,mainTextFontSize:u,linkComponent:d,href:h,forceMobileStyle:f=!1,...g}=r,p=d||n.Link,x=be(h,!!d),S=f?u||"xl":[u||"xl",null,null,"lg"],E=f?"xl":["xl",null,null,"lg"],b=f?void 0:[null,null,null,1],y=f?void 0:[null,null,null,"space-between"],L=f?"3":[3,null,null,0],m=f?"1px":["1px",null,null,"unset"],A=f?"tints.cream":["tints.cream",null,null,"unset"],R=f?"100%":["100%",null,null,"fit-content"],C=f?"none":["none",null,null,"block"],F=f?"100%":["100%",null,null,"auto"],H=f?"block":["block",null,null,"none"];return t.jsxs(n.Box,{ref:a,as:p,display:"flex",alignItems:"center",gap:b,justifyContent:y,paddingY:L,color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},borderBottom:m,borderColor:A,width:R,cursor:"pointer",...x,...g,children:[t.jsx(n.Icon,{display:C,as:V.CaretRight,fontSize:"lg",color:"viridian.light","aria-hidden":"true",weight:"bold"}),t.jsxs(n.Flex,{alignItems:"center",gap:"1",width:F,children:[t.jsx(n.Text,{fontSize:S,fontWeight:"medium",children:c}),l&&(typeof l=="string"?t.jsx(n.Text,{fontSize:E,fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:l}):l),t.jsx(n.Icon,{display:H,as:V.CaretRight,fontSize:"2xl",color:"tints.uiGrey","aria-hidden":"true",marginLeft:"auto"})]})]})}),pt=j.forwardRef((r,a)=>{const{children:c,isSelected:l,...u}=r,d=r.backgroundColor||(l?"tints.lightCream":"transparent");return t.jsx(n.Button,{ref:a,borderRadius:"full",backgroundColor:d,fontSize:"lg !important",fontWeight:"normal",color:"tints.black",sx:{"&[href]":{textDecoration:"none"}},_before:{content:'""',position:"absolute",top:[null,null,null,-6],right:[null,null,null,-2],bottom:[null,null,null,-6],left:[null,null,null,-2]},_hover:{backgroundColor:d,textDecoration:"none",filter:"brightness(0.95)"},_focusVisible:{outline:"3px solid",outlineColor:"viridian.base",outlineOffset:"2px",boxShadow:"0 0 0 5px rgba(255, 255, 255, 0.9)",zIndex:1},...u,children:c})}),xt=({title:r,description:a,imageSrc:c,imageElement:l,button:u,backgroundColor:d="viridian.wash",onClick:h,href:f,linkComponent:g,forceMobileStyle:p=!1})=>{const b=g||n.Link,y=be(f,!!g),L=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0}),m=p||!L;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:h,"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?b:L?n.Flex:b,...p?y:L?{}:y,"aria-label":m?r:void 0,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:c?t.jsx(n.Image,{src:c,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:l})}),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,{as:"h3",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:u}):null]})]})},Me=r=>t.jsx(n.IconButton,{size:"sm",width:["40px",null,null,"46px"],height:["40px",null,null,"46px"],padding:["2 !important",null,null,"3 !important"],colorScheme:"whiteCS",backgroundColor:"tints.cream",sx:{svg:{width:"24px",height:"24px"}},_hover:{backgroundColor:"tints.cream",filter:"brightness(0.95)"},...r}),gt=({color:r=n.theme.colors.viridian.base,width:a})=>t.jsx(Z.Box,{as:"svg",width:a,height:"auto",viewBox:"0 0 116 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Everlywell Logo",children:t.jsx("g",{id:"Everlywell Logo",children:t.jsx("path",{fill:r,id:"Everlywell Logo_2",fillRule:"evenodd",clipRule:"evenodd",d:"M54.8224 1V17.8352H52.4272V1H54.8224ZM5.65731 14.992C4.9835 14.4474 4.59261 13.726 4.48231 12.8278H13.7822C13.9984 10.4829 13.5723 8.70006 12.5039 7.47915C11.4322 6.25824 9.93769 5.64945 8.01698 5.64945C6.23518 5.64945 4.78896 6.22479 3.67214 7.38216C2.55841 8.5395 2 9.92767 2 11.8377C2 13.7476 2.56171 15.273 3.68501 16.4136C4.80831 17.5542 6.30612 18.1229 8.18163 18.1229C9.11125 18.1229 10.0216 17.9489 10.9125 17.5944C11.8034 17.2431 12.533 16.7447 13.1075 16.1025L11.5517 14.5371C11.2095 14.9217 10.7253 15.2294 10.099 15.4636C9.46959 15.6944 8.84662 15.8115 8.22684 15.8115C7.18735 15.8115 6.33197 15.5372 5.65731 14.992ZM10.4671 8.60977C11.0772 9.10817 11.416 9.81395 11.4774 10.7305H4.52751C4.71152 9.81395 5.12475 9.10817 5.77027 8.60977C6.41589 8.11136 7.18735 7.86384 8.08473 7.86384C9.05966 7.86384 9.85696 8.11136 10.4671 8.60977ZM22.1465 17.8819L27.0047 5.93699H24.3771L22.6565 10.2486L20.8424 15.2828L18.8217 9.76697L17.2884 5.93699H14.6382L19.5189 17.8819H22.1465ZM30.3737 12.8244C30.4835 13.7242 30.8741 14.4467 31.5487 14.992C32.2234 15.5372 33.0788 15.8115 34.1181 15.8115C34.7379 15.8115 35.361 15.6944 35.9905 15.4636C36.6166 15.2294 37.1009 14.9217 37.4431 14.5371L38.999 16.1025C38.4244 16.7447 37.6948 17.2431 36.8039 17.5944C35.9129 17.9489 35.0027 18.1229 34.0729 18.1229C32.1975 18.1229 30.6997 17.5542 29.5764 16.4136C28.453 15.273 27.8914 13.7476 27.8914 11.8377C27.8914 9.92767 28.4498 8.5395 29.5635 7.38216C30.6804 6.22479 32.1265 5.64945 33.9084 5.64945C35.829 5.64945 37.3236 6.25824 38.3952 7.47915C39.4638 8.70006 39.8899 10.4829 39.6736 12.8278H30.3769L30.3737 12.8244ZM37.3688 10.7305C37.3075 9.81395 36.9685 9.10817 36.3584 8.60977C35.7483 8.11136 34.951 7.86384 33.9762 7.86384C33.0788 7.86384 32.3073 8.11136 31.6617 8.60977C31.0161 9.10817 30.6029 9.81395 30.4189 10.7305H37.3688ZM44.5032 7.5263L44.3418 5.96085H44.3385H42.108V17.8355H44.5032V11.4031C44.5032 10.3595 44.8001 9.5567 45.3877 8.99473C45.9751 8.43278 46.7112 8.15181 47.5956 8.15181C48.3703 8.15181 49.0417 8.39264 49.6163 8.87432L50.7073 6.70677C49.9811 6.03445 49.0353 5.6966 47.8732 5.6966C46.2914 5.6966 45.1681 6.30539 44.5032 7.5263ZM60.3782 12.3193V5.96054H57.983V12.3428C57.983 14.1089 58.4286 15.5004 59.3195 16.5106C60.2104 17.5241 61.3789 18.0292 62.8186 18.0292C64.552 18.0292 65.8787 17.387 66.7923 16.1025V18.1262C66.7923 19.2669 66.4824 20.1499 65.8626 20.7754C65.2429 21.401 64.494 21.7154 63.6094 21.7154C61.8889 21.7154 60.8754 20.9661 60.5654 19.4742H58.2187C58.3252 20.9326 58.8644 22.0532 59.8327 22.8326C60.8011 23.612 62.1214 24 63.6546 24C65.188 24 66.4727 23.5049 67.5121 22.5081C68.5515 21.5147 69.0712 20.0697 69.0712 18.1731V5.96054H66.6761V12.1521C66.6761 13.1623 66.3791 14.0153 65.7819 14.7043C65.188 15.3967 64.4681 15.7412 63.4933 15.7412C62.5184 15.7412 61.7566 15.4268 61.2047 14.8013C60.6526 14.1725 60.3782 13.3463 60.3782 12.3193ZM81.5989 5.93699L84.3427 15.2828L87.1768 5.93699H89.8496L85.8275 17.8819H83.0385L81.6892 13.9315L80.5724 9.79039L79.4328 13.9315L78.0836 17.8819H75.2945L71.2498 5.93699H73.9453L76.7795 15.2828L79.5232 5.93699H81.5924H81.5989ZM94.65 14.992C93.9754 14.4467 93.5848 13.7242 93.475 12.8244L93.4847 12.8278H102.781C102.998 10.4829 102.572 8.70006 101.503 7.47915C100.431 6.25824 98.9368 5.64945 97.0162 5.64945C95.2343 5.64945 93.785 6.22479 92.668 7.38216C91.5544 8.5395 90.9959 9.92767 90.9959 11.8377C90.9959 13.7476 91.5576 15.273 92.6809 16.4136C93.8043 17.5542 95.3021 18.1229 97.1775 18.1229C98.1073 18.1229 99.0175 17.9489 99.9084 17.5944C100.799 17.2431 101.529 16.7447 102.103 16.1025L100.544 14.5371C100.202 14.9217 99.7212 15.2328 99.0918 15.4636C98.4623 15.6944 97.8393 15.8115 97.2196 15.8115C96.1802 15.8115 95.3247 15.5372 94.65 14.992ZM99.4598 8.60977C100.07 9.10817 100.409 9.81395 100.47 10.7305H93.5202C93.7042 9.81395 94.1175 9.10817 94.763 8.60977C95.4086 8.11136 96.1802 7.86384 97.0774 7.86384C98.0524 7.86384 98.8465 8.11136 99.4598 8.60977ZM107.698 1V17.8352H105.303V1H107.698ZM113.53 17.8352V1H111.135V17.8352H113.53Z"})})}),vt=({desktopTopButtons:r,logoLink:a="https://www.everlywell.com",setTopOffset:c,linkComponent:l,onLogoClick:u,rightSideButtons:d})=>{const h=j.useRef(null),[f]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumTablet})`),[g]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.mediumDesktop})`),p=j.useCallback(()=>{if(h.current){const x=h.current.getBoundingClientRect();c(x.bottom)}},[]);return j.useEffect(()=>{p()},[p]),t.jsx(n.Box,{ref:h,paddingY:"4",paddingX:f?4:g?6:8,borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",width:"100%",onMouseEnter: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:u,as:l||n.Link,...be(a,!!l),children:t.jsx(gt,{width:"116px"})}),t.jsx(n.Flex,{display:["none",null,"none","none","flex","flex"],children:r})]}),t.jsx(n.Flex,{alignItems:"center",gap:"2",children:d})]})})},zt=({count:r=0,...a})=>t.jsxs(n.Box,{position:"relative",display:"inline-block",children:[t.jsx(Me,{icon:t.jsx(V.Basket,{}),...a}),r>0&&t.jsx(n.Box,{display:"flex",minWidth:"20px",height:"20px",py:"4px",px:"6px",justifyContent:"center",alignItems:"center",position:"absolute",right:"-4px",top:"-4px",borderRadius:"32px",background:"viridian.base",color:"white",fontSize:"xs",fontWeight:"normal",children:r})]}),Nt=({numDesktopLinks:r=5,showPromoButton:a=!1})=>t.jsx(n.VStack,{spacing:0,align:"stretch",children:t.jsx(n.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",borderColor:"tints.lightCream",children:t.jsxs(n.Flex,{justify:"space-between",align:"center",children:[t.jsx(n.Skeleton,{w:"120px",h:"48px"}),t.jsxs(n.HStack,{spacing:8,marginLeft:12,display:["none",null,null,"flex"],"data-testid":"desktop-nav",children:[Array.from({length:r}).map((c,l)=>t.jsx(n.Skeleton,{width:"90px",height:"48px"},l)),a&&t.jsx(n.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(n.HStack,{spacing:4,ml:"auto",children:[t.jsx(n.SkeletonCircle,{width:"120px",height:"48px",display:["none",null,null,"block"],"data-testid":"register-kit"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),Wt=(r,a)=>{let c;return(...l)=>{c&&clearTimeout(c),c=setTimeout(()=>{r(...l)},a)}},Ue=r=>r.toLowerCase().replace(/['']/g,"").replace(/[^a-z0-9]/g,""),Vt=(r,a)=>{r.length<a.length&&([r,a]=[a,r]);let c=Array(a.length+1).fill(0),l=Array(a.length+1).fill(0);for(let u=0;u<=a.length;u++)c[u]=u;for(let u=1;u<=r.length;u++){l[0]=u;for(let d=1;d<=a.length;d++){const h=r[u-1]===a[d-1]?0:1;l[d]=Math.min(l[d-1]+1,c[d]+1,c[d-1]+h)}[c,l]=[l,c]}return c[a.length]},Ae=(r,a,c=.6)=>{if(r.length<=3||a.length<=3)return r.includes(a)||a.includes(r);const l=Vt(r,a),u=Math.max(r.length,a.length);return 1-l/u>=c},ct=(r,a)=>{const c=r.split(/\s+/);return a.length<=4?c.some(l=>l.includes(a)):c.some(l=>{if(Ae(l,a))return!0;if(l.length>=a.length)for(let u=0;u<=l.length-a.length;u++){const d=l.slice(u,u+a.length+1);if(Ae(a,d))return!0}return!1})},Ze="nav-drawer-hover",Xe="nav-drawer-animation-start",Je="nav-drawer-animation-end",ut=r=>{window.dispatchEvent(new CustomEvent(Ze,{detail:{isHovering:r},bubbles:!0,cancelable:!0}))},dt=r=>{window.dispatchEvent(new CustomEvent(r,{bubbles:!0,cancelable:!0}))},Yt=(r=!1,a=!1,c=!1)=>r||!a?"column":"row",Gt=Oe.motion(n.DrawerContent),Ut=Oe.motion(n.DrawerOverlay),Fe=({isOpen:r=!1,onClose:a,title:c,navDrawerLinks:l,bottomNavButtons:u,spotlightCards:d,bottomButton:h,hasBackButton:f=!0,onBackClick:g,hasOnlySpotlightCards:p=!1,hasSearch:x=!1,onSearch:S=()=>({}),topOffset:E,forceMobilePlacement:b=!1})=>{var ue,ee,de,fe,ne,$;const y=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,L=b?"right":y?"top":"right",m=L==="right",[A,R]=j.useState(0),[C,F]=j.useState(!1),H=()=>{R(I=>I+1)},G=j.useCallback(Wt(I=>{S(I),H()},100),[]);j.useEffect(()=>{r&&(F(!0),dt(Xe))},[r]);const q=()=>{r||(F(!1),a()),dt(Je)};return t.jsx(n.Drawer,{isOpen:C||r,closeOnOverlayClick:!0,onClose:()=>{C&&!m||a()},placement:L,blockScrollOnMount:!1,autoFocus:!1,...m?{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...(ee=(ue=n.theme.components.Drawer)==null?void 0:ue.baseStyle)==null?void 0:ee.dialogContainer,zIndex:"popover"},dialog:{...(fe=(de=n.theme.components.Drawer)==null?void 0:de.baseStyle)==null?void 0:fe.dialog,maxW:"560px",width:"auto"}}}}:{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...($=(ne=n.theme.components.Drawer)==null?void 0:ne.baseStyle)==null?void 0:$.dialogContainer,top:`${E}px`,zIndex:"overlay"}}}},children:t.jsx(Oe.AnimatePresence,{children:r?t.jsxs(t.Fragment,{children:[t.jsx(Ut,{backgroundColor:"tints.black",top:m?"0":`${E}px`,opacity:m?"0.4 !important":void 0,zIndex:m?"modal":"overlay",...m?{}:{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.15,ease:"easeOut"}}}),t.jsxs(Gt,{onClick:I=>{const re=I.target.closest("a");re&&re.href===window.location.href&&a()},onMouseEnter:()=>{m||ut(!0)},onMouseLeave:I=>{m||(!x||x&&(I.target===I.currentTarget||!I.currentTarget.contains(I.target)&&!C))&&ut(!1)},paddingTop:"4",paddingX:m?"4":"12",paddingBottom:"24",overflow:m?"auto":"hidden",maxHeight:"100vh",position:"relative",top:m?void 0:`${E}px !important`,onAnimationComplete:q,boxShadow:"none",...m?{initial:!1,animate:!1,exit:!1}:{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3}},children:[!x&&!m?null:t.jsxs(n.DrawerHeader,{padding:"0",flexDirection:x?"column":"row",gap:x?"4":"0",children:[m?t.jsxs(n.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[f?t.jsx(Me,{icon:t.jsx(V.CaretLeft,{}),onClick:()=>{g&&g()},"aria-label":"Back"}):null,t.jsx(n.Text,{as:"h2",color:"tints.uiGrey",fontSize:"xl",children:c}),t.jsx(Me,{icon:t.jsx(V.X,{}),onClick:a,"aria-label":"Close"})]}):null,x&&t.jsxs(Z.InputGroup,{width:"100%",children:[t.jsx(Z.Input,{onChange:I=>{G(I.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(Z.InputRightElement,{pointerEvents:"none",children:t.jsx(Z.Icon,{as:V.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(n.DrawerBody,{paddingX:"0",paddingBottom:m?"6":"4","data-testid":`navbar-drawer-body-${c.toLowerCase()}`,children:t.jsxs(Oe.motion.div,{...m?{}:{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},transition:{duration:.5,delay:.2,ease:[.4,0,.2,1],exit:{duration:.5,delay:.2,ease:[.4,0,.2,1]}}},style:{display:"flex",flexDirection:Yt(p,!m,x),gap:"24px",justifyContent:"space-between"},children:[t.jsxs(n.Flex,{position:m?void 0:"relative",flexDirection:"column",gap:"6",width:m?"100%":x?void 0:"auto",children:[l?t.jsx(n.Box,{children:l}):null,u&&m?t.jsx(n.Box,{children:u}):null,h?t.jsx(n.Box,{width:"100%",position:m?void 0:"absolute",bottom:m?void 0:0,...m?{sx:{a:{width:"100%"}}}:{},children:h}):null]}),d?t.jsx(n.Box,{gap:m?"3":"6",display:"flex",justifyContent:m?void 0:"center",sx:{flexWrap:"wrap",flexDirection:m?"column":"row"},children:d}):null]},A)})]})]}):null})})},Kt=({source:r,onSearchCallback:a,isActive:c})=>{const[l,u]=j.useState(""),[d,h]=j.useState([]),f=(x,S)=>{if(!x)return[];const b=Ue(x).split(/\s+/);return S.filter(y=>{const L=Ue(y.label);if(b.some(F=>ct(L,F)))return!0;const A=L.split(/\s+/),R=b.some(F=>A.some(H=>H.includes(F)||Ae(F,H))),C=typeof y.additionalContent=="string"&&b.some(F=>{const H=Ue(y.additionalContent);return ct(H,F)||H.split(/\s+/).some(G=>G.includes(F)||Ae(F,G))});return R||C}).sort((y,L)=>y.label.localeCompare(L.label))},g=x=>{if(u(x),!x){h([]);return}const S=f(x,r);h(S),a&&a(x,S)},p=()=>{u(""),h([])};return j.useEffect(()=>{c||(u(""),h([]))},[c]),{query:l,results:d,handleClose:p,handleSearch:g}},Zt=r=>{const a=new Set;return r.reduce((c,l)=>{var d;const u=((d=l.sections)==null?void 0:d.reduce((h,f)=>{const g=f.links.filter(p=>a.has(p.label)||p.isSearchable!==!0?!1:(a.add(p.label),!0));return[...h,...g]},[]))??[];return[...c,...u]},[])},bt=()=>{const[r,a]=j.useState(!1),[c,l]=j.useState(!1),[u,d]=j.useState(null);return{isMainMenuOpen:r,isSearchOpen:c,selectedCategory:u,clearSelectedCategory:()=>d(null),handleSelectCategory:b=>d(b),closeMainMenu:()=>{a(!1),d(null)},closeSearch:()=>l(!1),toggleSearch:()=>l(b=>!b),openMainMenu:()=>a(!0),openSearch:()=>l(!0)}},Xt="#28724F",Jt=({categories:r=[],mainCategoryLabel:a="Menu",logoLink:c="https://www.everlywell.com",mobileBottomButtons:l=[],linkComponent:u,onSearchCallback:d,onLinkClick:h,onCategoryOpen:f,onLogoClick:g,shopAllProductsUrl:p,onShopAllProductsClick:x,hideableButtons:S,children:E})=>{var Ce,le,Le;const b=bt(),{isMainMenuOpen:y,isSearchOpen:L,closeMainMenu:m,closeSearch:A,clearSelectedCategory:R,selectedCategory:C,handleSelectCategory:F}=b,[H,G]=j.useState(!1),[q,ue]=j.useState(!1),[ee,de]=j.useState(0),[fe,ne]=j.useState(!1),[$,I]=j.useState(!1),X=j.useRef(!1);j.useEffect(()=>{const i=()=>{X.current=!0},T=()=>{X.current=!1};return document.addEventListener("keydown",i,!0),document.addEventListener("mousedown",T,!0),()=>{document.removeEventListener("keydown",i,!0),document.removeEventListener("mousedown",T,!0)}},[]),j.useEffect(()=>{const i=()=>ne(!0),T=()=>ne(!1);return window.addEventListener(Xe,i),window.addEventListener(Je,T),()=>{window.removeEventListener(Xe,i),window.removeEventListener(Je,T)}},[]);const re=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!0,desktop:!0,fullDesktop:!0})??!1,oe=Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,mediumDesktop:!1,desktop:!1,fullDesktop:!0})??!1,Re=!oe,_e=Z.useBreakpointValue({base:!0,tablet:!0,largeTablet:!0,mediumDesktop:!1,desktop:!1,fullDesktop:!1})??!0;j.useEffect(()=>{m(),R()},[re]);const{query:Te,results:he,handleSearch:De}=Kt({source:Zt(r),onSearchCallback:d,isActive:L}),me=he.length>0,we=u||n.Link,Pe=be(p,!!u),ye=Te&&t.jsxs(n.Flex,{gap:me?"6":0,direction:"column",children:[me?t.jsx(n.Text,{color:"tints.uiGrey",children:`${he.length} Results`}):t.jsxs(n.Flex,{direction:"column",gap:"6",alignItems:"flex-start",children:[t.jsx(n.Text,{color:"tints.uiGrey",children:"We didn't find what you were looking for."}),t.jsx(n.Button,{as:we,onClick:x,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],...Pe,children:"Shop all products"})]}),t.jsx(n.Grid,{columns:[1,1,1,4],children:he.map((i,T)=>t.jsx(n.GridItem,{children:t.jsx(Ee,{href:i.href,label:i.label,additionalContent:i==null?void 0:i.additionalContent,linkComponent:u,forceMobileStyle:!re})},`${i.label}-${T}`))})]}),U=i=>"href"in i,pe=i=>{U(i)?h==null||h(i.label):(I(y||!oe),F(i))},ae=i=>{G(!0),A(),R(),!U(i)&&(i.sections||i.spotlightCards)&&(I(!1),F(i))},xe=()=>{G(!1)};j.useEffect(()=>{const i=T=>{ue(T.detail.isHovering)};return window.addEventListener(Ze,i),()=>{window.removeEventListener(Ze,i)}},[]),j.useEffect(()=>{!H&&!q&&(R(),A(),!y&&oe&&I(!1))},[H,q,y,oe]),j.useEffect(()=>{let i=window.location.href;const T=()=>{const P=window.location.href;P!==i&&(i=P,m(),R())},B=setInterval(T,100);return window.addEventListener("popstate",T),()=>{window.removeEventListener("popstate",T),clearInterval(B)}},[]);const je=i=>U(i)&&(!i.buttonProps||Object.keys(i.buttonProps).length===0||i.buttonProps===void 0),Ie=r==null?void 0:r.map((i,T)=>{var J,Q;const B=S.includes(i.label),P=!U(i),se=(C==null?void 0:C.label)===i.label;return t.jsx(pt,{height:"48px",paddingInline:"16px !important",onMouseEnter:()=>{ae(i),f==null||f(i.label)},onMouseLeave:xe,isSelected:se,as:U(i)&&we?we:n.Link,href:U(i)?i.href:void 0,onClick:U(i)?()=>h==null?void 0:h(i.label):()=>{ae(i),f==null||f(i.label)},...P&&{tabIndex:0,role:"button","aria-haspopup":"true","aria-expanded":se,onKeyDown:te=>{(te.key==="Enter"||te.key===" ")&&(te.preventDefault(),ae(i),f==null||f(i.label))},onFocus:te=>{const N=te.currentTarget;X.current&&(N.style.outline=`3px solid ${Xt}`,N.style.outlineOffset="2px",N.style.boxShadow="0 0 0 5px rgba(255,255,255,0.9)",N.style.borderRadius="9999px",N.style.zIndex="1")},onBlur:te=>{const N=te.currentTarget;N.style.outline="",N.style.outlineOffset="",N.style.boxShadow="",N.style.borderRadius="",N.style.zIndex=""}},...B&&{display:{base:"none",fullDesktop:"flex"}},...((J=i==null?void 0:i.context)==null?void 0:J.desktop)==="link"||je(i)?{_hover:{backgroundColor:"tints.lightCream",textDecoration:"none",filter:"brightness(0.95)"}}:{},...((Q=i==null?void 0:i.context)==null?void 0:Q.desktop)!=="link"&&i.buttonProps,children:i.label},`${i.label}-${T}`)}),He=(Ce=r.filter(i=>{var T;return((T=i==null?void 0:i.context)==null?void 0:T.mobile)==="link"||(!U(i)&&i.isMobileTopLink!==!1||je(i))&&(Re&&S.includes(i.label)||_e)}))==null?void 0:Ce.map((i,T)=>{var P;const B=i;return je(B)||((P=B==null?void 0:B.context)==null?void 0:P.mobile)==="link"?t.jsx(n.Box,{children:t.jsx(Ee,{label:B.label,role:"link",href:B.href,mainTextFontSize:"3xl",linkComponent:u,forceMobileStyle:!0})},`${B.label}-${T}`):t.jsx(n.Box,{onClick:()=>{pe(B),f==null||f(B.label)},children:t.jsx(Ee,{label:B.label,role:"link",additionalContent:B.additionalContent,mainTextFontSize:"3xl",linkComponent:u,forceMobileStyle:!0})},`${B.label}-${T}`)}),$e=t.jsx(n.Flex,{gap:"2",flexDirection:"column",children:l}),Y=$||y,ie=C?t.jsx(n.Flex,{direction:Y?"column":["column",null,null,"row"],gap:"8",children:(le=C==null?void 0:C.sections)==null?void 0:le.map((i,T)=>{const B=[];for(let P=0;P<i.links.length;P+=3)B.push(i.links.slice(P,P+3));return t.jsxs(n.Box,{children:[t.jsx(n.Text,{as:"h2",fontSize:"md",color:"tints.uiGrey",marginBottom:Y?0:[0,null,null,6],children:i.title}),t.jsx(n.Flex,{flexDirection:Y?"column":["column",null,null,"row"],gap:Y?void 0:[null,null,null,8],children:B==null?void 0:B.map((P,se)=>t.jsx(n.Flex,{flexDirection:"column",gap:Y?void 0:[null,null,null,5],marginLeft:Y?void 0:[null,null,null,-2],children:P==null?void 0:P.map((J,Q)=>t.jsx(Ee,{label:J.label,href:J.href,additionalContent:J.additionalContent,linkComponent:u,forceMobileStyle:Y,onClick:()=>h==null?void 0:h(J.label)},`${J.label}-${Q}`))},se))})]},`${i.title}-${T}`)})}):null,Be=C!=null&&C.spotlightCards?(Le=C.spotlightCards)==null?void 0:Le.map((i,T)=>t.jsx(xt,{...i,forceMobileStyle:Y},`${i.title}-${T}`)):t.jsx(n.Box,{});return t.jsxs(n.Box,{as:"nav","aria-label":"Main navigation",position:"sticky",top:"0",width:"100%",zIndex:["sticky",null,null,fe?"modal":"sticky"],children:[t.jsx(vt,{desktopTopButtons:Ie,logoLink:c,linkComponent:u,onLogoClick:g,setTopOffset:de,rightSideButtons:typeof E=="function"?E(b):E}),t.jsxs(n.Box,{position:"relative",zIndex:"modal",children:[t.jsx(Fe,{isOpen:y,onClose:m,title:a,navDrawerLinks:He,bottomNavButtons:$e,hasBackButton:!1,topOffset:ee,forceMobilePlacement:!0}),t.jsx(Fe,{isOpen:!!C,onClose:()=>{m(),R(),y||I(!1)},title:(C==null?void 0:C.label)||"",navDrawerLinks:ie,onBackClick:()=>{R(),y||I(!1)},spotlightCards:Be,hasOnlySpotlightCards:C==null?void 0:C.hasOnlySpotlightCards,bottomButton:C==null?void 0:C.bottomButton,topOffset:ee,forceMobilePlacement:$||y||y&&!oe}),t.jsx(Fe,{isOpen:L,onClose:()=>A(),title:"Search",navDrawerLinks:ye,onSearch:De,hasSearch:!0,hasBackButton:!1,topOffset:ee})]})]})},ft=({links:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>{const u=a||n.Link,d=h=>{c&&c(h)};return t.jsx(n.Flex,{direction:"column",gap:6,children:r.map(h=>t.jsx(n.Text,{as:u,color:l==="dark"?"white":"viridian.base",size:"lg",_hover:{color:"viridian.lighter",textDecoration:"none"},onClick:()=>d(h.label),...be(h.href,!!a),children:h.label},h.label))})},Qt=({title:r,links:a,isLast:c})=>{const l=c?"transparent":`${n.theme.colors.viridian.lighter}20`;return a?t.jsx(n.AccordionItem,{borderColor:l,children:({isExpanded:u})=>t.jsxs(t.Fragment,{children:[t.jsxs(n.AccordionButton,{paddingX:0,paddingY:4,_hover:{bg:"transparent"},children:[t.jsx(n.Text,{color:"viridian.lighter",size:"lg",flex:"1",textAlign:"left",children:r}),t.jsx(n.Icon,{as:V.CaretDown,size:"sm",color:"viridian.lighter",transform:u?"rotate(-180deg)":"rotate(0deg)",transition:"transform 0.3s ease"})]}),t.jsx(n.AccordionPanel,{pb:4,px:0,children:a})]})}):null},qt=({title:r,links:a,footerTheme:c})=>a?t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:c==="dark"?"viridian.lighter":"tints.darkGrey",mb:6,fontSize:"lg",children:r}),a]}):null,en=({sections:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>Z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!0,desktop:!0})?t.jsx(n.Flex,{justify:"space-between",align:"flex-start",children:t.jsx(n.Flex,{gap:120,children:r.map(({title:d,links:h})=>t.jsx(qt,{footerTheme:l,title:d,links:t.jsx(ft,{links:h,linkComponent:a,onLinkClick:c,footerTheme:l})},d))})}):t.jsx(n.Accordion,{allowMultiple:!0,defaultIndex:[0],width:"100%",display:"flex",flexDirection:"column",children:r.map(({title:d,links:h},f)=>t.jsx(Qt,{title:d,links:t.jsx(ft,{links:h,linkComponent:a,onLinkClick:c,footerTheme:l}),isLast:f===r.length-1},d))}),ht={instagram:V.InstagramLogo,linkedin:V.LinkedinLogo,facebook:V.FacebookLogo,tiktok:V.TiktokLogo,x:V.XLogo},tn=({socialLinks:r,onEmailSubmit:a,socialMediaLabel:c,newsletterLabel:l,onLinkClick:u,showNewsletter:d=!0,footerTheme:h})=>{const f=h==="dark",[g,p]=j.useState(""),x=()=>{g&&a&&(a(g),p(""))},S=b=>{b.key==="Enter"&&x()},E=b=>{u&&u(b)};return t.jsxs(n.Box,{width:["100%",null,null,"440px"],children:[d&&t.jsxs(n.Box,{mb:[8,10],children:[t.jsx(n.Text,{color:f?"viridian.lighter":"tints.darkGrey",mb:6,size:"lg",children:l}),t.jsxs(n.InputGroup,{children:[t.jsx(n.Input,{"aria-label":"Email address",type:"email",placeholder:"Enter your email",bg:f?"transparent":"tints.white",border:"1px solid",borderColor:f?"viridian.lighter":"tints.darkCream",color:f?"viridian.lighter":"tints.darkGrey",_placeholder:{color:f?"viridian.lighter":"tints.darkGrey"},opacity:.66,height:"52px",pr:"48px",value:g,onChange:b=>p(b.target.value),onKeyPress:S}),t.jsx(n.InputRightElement,{h:"52px",pr:4,children:t.jsx(n.Icon,{as:V.ArrowRight,color:f?"viridian.lighter":"viridian.base",width:"24px",height:"24px",opacity:.66,cursor:"pointer",onClick:x,"data-testid":"arrow-right-icon",role:"button","aria-label":"Submit"})})]})]}),t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:f?"viridian.lighter":"tints.darkGrey",marginBottom:4,size:"lg",children:c}),t.jsx(n.Flex,{gap:3,children:r==null?void 0:r.map(b=>t.jsx(n.Link,{href:b.href,target:"_blank",rel:"noopener noreferrer","aria-label":b.name,onClick:()=>E(b.name),children:ht[b.name.toLowerCase()]&&t.jsx(n.Icon,{as:ht[b.name.toLowerCase()],color:f?"white":"viridian.base",width:["48px",null,"24px",null],height:["48px",null,"24px",null]})},b.name))})]})]})},nn=({links:r,linkComponent:a,onLinkClick:c,footerTheme:l})=>{const u=a||n.Link,d=l==="dark",[h,f]=j.useState(()=>new Date().getFullYear());j.useEffect(()=>{f(new Date().getFullYear())},[]);const g=x=>{c&&c(x)},p=r==null?void 0:r.map(x=>t.jsx(n.Text,{as:u,color:d?"viridian.lighter":"viridian.base",size:"sm",_hover:{color:d?"white":"viridian.lighter",textDecoration:"none"},onClick:()=>g(x.label),...be(x.href,!!a),children:x.label},x.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:p}),t.jsxs(n.Text,{color:d?"viridian.lighter":"tints.darkGrey",fontSize:"sm",children:["© Everlywell ",h]})]})},rn=j.forwardRef(({navigationSections:r=[],disclaimer:a,newsletterLabel:c,socialMediaLabel:l,socialLinks:u,complianceLinks:d,linkComponent:h,onEmailSubmit:f,additionalContent:g,onLinkClick:p,onSocialMediaClick:x,showNewsletter:S=!0,footerTheme:E="dark"},b)=>{const y=E==="dark";return t.jsx(n.Box,{as:"footer",bg:y?"viridian.dark":"tints.lightCream",py:[6,8],px:[4,6],ref:b,children:t.jsxs(n.Container,{size:"fluid",children:[t.jsxs(n.Flex,{direction:"column",gap:[8,12],children:[t.jsx(n.Box,{children:t.jsx(gt,{width:["150px","202px"],color:y?"white":n.theme.colors.viridian.base})}),t.jsxs(n.Flex,{direction:["column",null,null,"row"],justify:"space-between",align:["flex-start"],gap:[8,8,8,0],children:[t.jsx(en,{sections:r,linkComponent:h,onLinkClick:p,footerTheme:E}),t.jsx(tn,{socialLinks:u,newsletterLabel:c,socialMediaLabel:l,onEmailSubmit:f,onLinkClick:x,showNewsletter:S,footerTheme:E})]}),t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",alignContent:"center",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[typeof a=="string"?t.jsx(n.Text,{color:y?"viridian.lighter":"tints.uiGrey",fontSize:"sm",maxWidth:["100%","100%","1024px"],dangerouslySetInnerHTML:{__html:a},sx:{"a:hover":{color:y?"viridian.light":"viridian.base",textDecoration:"underline"}}}):a,g]})]}),t.jsx(n.Box,{borderTop:"1px solid",borderColor:y?`${n.theme.colors.viridian.lighter}20`:"tints.darkCream",marginTop:"10",marginBottom:"8"}),t.jsx(nn,{links:d,linkComponent:h,onLinkClick:p,footerTheme:E})]})})}),on=r=>r?{Container:n.Drawer,Overlay:n.DrawerOverlay,Content:n.DrawerContent,Header:n.DrawerHeader,Body:n.DrawerBody,Footer:n.DrawerFooter,CloseButton:n.DrawerCloseButton}:{Container:n.Modal,Overlay:n.ModalOverlay,Content:n.ModalContent,Header:n.ModalHeader,Body:n.ModalBody,Footer:n.ModalFooter,CloseButton:n.ModalCloseButton},an=({isOpen:r,onClose:a,children:c,header:l,footer:u,headerProps:d,bodyProps:h,footerProps:f,contentProps:g,...p})=>{var C,F,H,G,q;const[x]=n.useMediaQuery(`(max-width: ${n.theme.breakpoints.tablet})`),S=(q=(G=(H=(F=(C=n.theme)==null?void 0:C.components)==null?void 0:F.Modal)==null?void 0:H.baseStyle)==null?void 0:G.overlay)==null?void 0:q.background,{Container:E,Overlay:b,Content:y,Header:L,Body:m,Footer:A,CloseButton:R}=on(x);return t.jsxs(E,{...p,isOpen:r,onClose:a,size:"xl",...x?{placement:"bottom"}:{},children:[t.jsx(b,{backdropFilter:"auto",backgroundColor:S}),t.jsxs(y,{backgroundColor:"tints.white",borderRadius:x?"20px 20px 0 0":"20px",overflowY:"auto",gap:0,...l&&x&&{paddingTop:0},...g,children:[t.jsxs(L,{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center",fontSize:"lg",color:"tints.black",fontWeight:"normal",position:"sticky",top:0,zIndex:"modal",backgroundColor:"tints.white",paddingInline:4,...x?{paddingBlock:4}:{paddingTop:6,paddingBlockEnd:2},...d,children:[l,t.jsx(R,{position:"static",width:32,height:32,backgroundColor:"tints.cream",sx:{".chakra-icon":{fontSize:"1rem"}},children:t.jsx(n.Icon,{as:V.X,weight:"light"})})]}),t.jsx(m,{color:"tints.darkGrey",paddingInline:4,...h,children:c}),t.jsx(A,{paddingInline:4,...f,children:u})]})]})};exports.BasketButton=zt;exports.CategoryLabel=$t;exports.DrawerModal=an;exports.Footer=rn;exports.NavButton=pt;exports.NavSkeleton=Nt;exports.NavbarDrawer=Fe;exports.NavbarDrawerLink=Ee;exports.NavigationBar=Jt;exports.SpotlightCard=xt;exports.Stepper=Ht;exports.TopNavIconButton=Me;exports.TopNavigation=vt;exports.useNavigationBar=bt;
package/index.mjs CHANGED
@@ -18,11 +18,11 @@ function zn() {
18
18
  if (vt) return Te;
19
19
  vt = 1;
20
20
  var n = se, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function f(d, g, h) {
22
- var p, C = {}, E = null, v = null;
23
- h !== void 0 && (E = "" + h), g.key !== void 0 && (E = "" + g.key), g.ref !== void 0 && (v = g.ref);
24
- for (p in g) i.call(g, p) && !u.hasOwnProperty(p) && (C[p] = g[p]);
25
- if (d && d.defaultProps) for (p in g = d.defaultProps, g) C[p] === void 0 && (C[p] = g[p]);
21
+ function f(d, g, p) {
22
+ var h, C = {}, E = null, v = null;
23
+ p !== void 0 && (E = "" + p), g.key !== void 0 && (E = "" + g.key), g.ref !== void 0 && (v = g.ref);
24
+ for (h in g) i.call(g, h) && !u.hasOwnProperty(h) && (C[h] = g[h]);
25
+ if (d && d.defaultProps) for (h in g = d.defaultProps, g) C[h] === void 0 && (C[h] = g[h]);
26
26
  return { $$typeof: o, type: d, key: E, ref: v, props: C, _owner: c.current };
27
27
  }
28
28
  return Te.Fragment = s, Te.jsx = f, Te.jsxs = f, Te;
@@ -40,7 +40,7 @@ var Ie = {};
40
40
  var bt;
41
41
  function Wn() {
42
42
  return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
43
- var n = se, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), d = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), w = Symbol.iterator, O = "@@iterator";
43
+ var n = se, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), d = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), w = Symbol.iterator, O = "@@iterator";
44
44
  function b(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
@@ -68,7 +68,7 @@ function Wn() {
68
68
  var A = !1, H = !1, U = !1, te = !1, he = !1, ne;
69
69
  ne = Symbol.for("react.module.reference");
70
70
  function ge(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === i || e === u || he || e === c || e === h || e === p || te || e === v || A || H || U || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === C || e.$$typeof === f || e.$$typeof === d || e.$$typeof === g || // This needs to include all possible module reference object
71
+ return !!(typeof e == "string" || typeof e == "function" || e === i || e === u || he || e === c || e === p || e === h || te || e === v || A || H || U || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === C || e.$$typeof === f || e.$$typeof === d || e.$$typeof === g || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
@@ -100,9 +100,9 @@ function Wn() {
100
100
  return "Profiler";
101
101
  case c:
102
102
  return "StrictMode";
103
- case h:
104
- return "Suspense";
105
103
  case p:
104
+ return "Suspense";
105
+ case h:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof e == "object")
@@ -296,9 +296,9 @@ function Wn() {
296
296
  if (typeof e == "string")
297
297
  return be(e);
298
298
  switch (e) {
299
- case h:
300
- return be("Suspense");
301
299
  case p:
300
+ return be("Suspense");
301
+ case h:
302
302
  return be("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
@@ -659,16 +659,16 @@ const Je = 60, mt = 6, Nn = (n) => {
659
659
  display: "flex",
660
660
  flexWrap: "nowrap",
661
661
  children: i.map((d, g) => {
662
- const h = u === g, p = g === 0, C = g === i.length - 1, E = u > g;
662
+ const p = u === g, h = g === 0, C = g === i.length - 1, E = u > g;
663
663
  let v = `${Je}px`;
664
664
  const w = `calc(100% - ((${Je * (i.length - 1)}px) - (${i.length - 1} * ${mt * 2}px)))`;
665
- return h ? v = w : (p || C) && (v = `${Je - mt}px`), /* @__PURE__ */ t.jsx(
665
+ return p ? v = w : (h || C) && (v = `${Je - mt}px`), /* @__PURE__ */ t.jsx(
666
666
  R,
667
667
  {
668
668
  width: v,
669
- opacity: E || h ? 1 : 0.2,
669
+ opacity: E || p ? 1 : 0.2,
670
670
  paddingRight: C ? "0" : "6px",
671
- paddingLeft: p ? "0" : "6px",
671
+ paddingLeft: h ? "0" : "6px",
672
672
  transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
673
673
  children: /* @__PURE__ */ t.jsx(
674
674
  R,
@@ -720,12 +720,12 @@ const Je = 60, mt = 6, Nn = (n) => {
720
720
  href: f,
721
721
  forceMobileStyle: d = !1,
722
722
  ...g
723
- } = n, h = u || le, p = Ee(f, !!u), C = d ? c || "xl" : [c || "xl", null, null, "lg"], E = d ? "xl" : ["xl", null, null, "lg"], v = d ? void 0 : [null, null, null, 1], w = d ? void 0 : [null, null, null, "space-between"], O = d ? "3" : [3, null, null, 0], b = d ? "1px" : ["1px", null, null, "unset"], $ = d ? "tints.cream" : ["tints.cream", null, null, "unset"], S = d ? "100%" : ["100%", null, null, "fit-content"], y = d ? "none" : ["none", null, null, "block"], A = d ? "100%" : ["100%", null, null, "auto"], H = d ? "block" : ["block", null, null, "none"];
723
+ } = n, p = u || le, h = Ee(f, !!u), C = d ? c || "xl" : [c || "xl", null, null, "lg"], E = d ? "xl" : ["xl", null, null, "lg"], v = d ? void 0 : [null, null, null, 1], w = d ? void 0 : [null, null, null, "space-between"], O = d ? "3" : [3, null, null, 0], b = d ? "1px" : ["1px", null, null, "unset"], $ = d ? "tints.cream" : ["tints.cream", null, null, "unset"], S = d ? "100%" : ["100%", null, null, "fit-content"], y = d ? "none" : ["none", null, null, "block"], A = d ? "100%" : ["100%", null, null, "auto"], H = d ? "block" : ["block", null, null, "none"];
724
724
  return /* @__PURE__ */ t.jsxs(
725
725
  R,
726
726
  {
727
727
  ref: o,
728
- as: h,
728
+ as: p,
729
729
  display: "flex",
730
730
  alignItems: "center",
731
731
  gap: v,
@@ -737,7 +737,7 @@ const Je = 60, mt = 6, Nn = (n) => {
737
737
  borderColor: $,
738
738
  width: S,
739
739
  cursor: "pointer",
740
- ...p,
740
+ ...h,
741
741
  ...g,
742
742
  children: [
743
743
  /* @__PURE__ */ t.jsx(
@@ -747,8 +747,7 @@ const Je = 60, mt = 6, Nn = (n) => {
747
747
  as: xt,
748
748
  fontSize: "lg",
749
749
  color: "viridian.light",
750
- role: "img",
751
- "aria-label": "Caret right icon",
750
+ "aria-hidden": "true",
752
751
  weight: "bold"
753
752
  }
754
753
  ),
@@ -784,8 +783,7 @@ const Je = 60, mt = 6, Nn = (n) => {
784
783
  as: xt,
785
784
  fontSize: "2xl",
786
785
  color: "tints.uiGrey",
787
- role: "img",
788
- "aria-label": "Caret right icon",
786
+ "aria-hidden": "true",
789
787
  marginLeft: "auto"
790
788
  }
791
789
  )
@@ -847,22 +845,22 @@ const Je = 60, mt = 6, Nn = (n) => {
847
845
  onClick: f,
848
846
  href: d,
849
847
  linkComponent: g,
850
- forceMobileStyle: h = !1
848
+ forceMobileStyle: p = !1
851
849
  }) => {
852
850
  const v = g || le, w = Ee(d, !!g), O = je({
853
851
  base: !1,
854
852
  tablet: !1,
855
853
  largeTablet: !1,
856
854
  desktop: !0
857
- });
855
+ }), b = p || !O;
858
856
  return /* @__PURE__ */ t.jsxs(
859
857
  T,
860
858
  {
861
- direction: h ? "row" : ["row", null, null, "column"],
859
+ direction: p ? "row" : ["row", null, null, "column"],
862
860
  alignItems: "center",
863
861
  borderRadius: "xl",
864
862
  overflow: "hidden",
865
- height: h ? "80px" : ["80px", null, null, "272px"],
863
+ height: p ? "80px" : ["80px", null, null, "272px"],
866
864
  backgroundColor: u,
867
865
  onClick: f,
868
866
  "data-testid": "spotlight-card",
@@ -870,26 +868,27 @@ const Je = 60, mt = 6, Nn = (n) => {
870
868
  transition: "box-shadow 0.2s ease-in-out",
871
869
  border: "1px solid",
872
870
  borderColor: "transparent",
873
- minWidth: h ? "100%" : ["100%", null, null, "320px"],
874
- maxWidth: h ? "100%" : ["100%", null, null, "380px"],
871
+ minWidth: p ? "100%" : ["100%", null, null, "320px"],
872
+ maxWidth: p ? "100%" : ["100%", null, null, "380px"],
875
873
  _hover: {
876
874
  boxShadow: "lg",
877
875
  textDecoration: "none",
878
876
  border: "1px solid",
879
877
  borderColor: "tints.white"
880
878
  },
881
- as: h ? v : O ? T : v,
882
- ...h ? w : O ? {} : w,
879
+ as: p ? v : O ? T : v,
880
+ ...p ? w : O ? {} : w,
881
+ "aria-label": b ? n : void 0,
883
882
  children: [
884
883
  /* @__PURE__ */ t.jsx(
885
884
  R,
886
885
  {
887
- width: h ? "72px" : ["72px", null, null, "100%"],
888
- height: h ? "100%" : ["100%", null, null, "188px"],
886
+ width: p ? "72px" : ["72px", null, null, "100%"],
887
+ height: p ? "100%" : ["100%", null, null, "188px"],
889
888
  sx: {
890
889
  img: {
891
- height: h ? "100%" : O ? "188px" : "100%",
892
- objectFit: h ? "cover" : "contain"
890
+ height: p ? "100%" : O ? "188px" : "100%",
891
+ objectFit: p ? "cover" : "contain"
893
892
  }
894
893
  },
895
894
  children: s ? /* @__PURE__ */ t.jsx(
@@ -904,9 +903,9 @@ const Je = 60, mt = 6, Nn = (n) => {
904
903
  ) : /* @__PURE__ */ t.jsx(
905
904
  R,
906
905
  {
907
- height: h ? 80 : [80, null, null, 188],
906
+ height: p ? 80 : [80, null, null, 188],
908
907
  overflow: "hidden",
909
- ...h ? { sx: { div: { height: "100%" } } } : {},
908
+ ...p ? { sx: { div: { height: "100%" } } } : {},
910
909
  children: i
911
910
  }
912
911
  )
@@ -915,22 +914,22 @@ const Je = 60, mt = 6, Nn = (n) => {
915
914
  /* @__PURE__ */ t.jsxs(
916
915
  T,
917
916
  {
918
- direction: h ? "column" : ["column", null, null, "row"],
919
- justifyContent: h ? void 0 : [null, null, null, "space-between"],
920
- alignItems: h ? "left" : ["left", null, null, "center"],
917
+ direction: p ? "column" : ["column", null, null, "row"],
918
+ justifyContent: p ? void 0 : [null, null, null, "space-between"],
919
+ alignItems: p ? "left" : ["left", null, null, "center"],
921
920
  padding: "4",
922
- height: h ? "80px" : [
921
+ height: p ? "80px" : [
923
922
  "80px",
924
923
  null,
925
924
  null,
926
925
  "84px"
927
926
  ],
928
927
  width: "100%",
929
- bottom: h ? void 0 : [null, null, null, "0"],
930
- backgroundColor: h ? void 0 : [null, null, null, `${u}CC`],
931
- backdropFilter: h ? void 0 : [null, null, null, "blur(8px)"],
928
+ bottom: p ? void 0 : [null, null, null, "0"],
929
+ backgroundColor: p ? void 0 : [null, null, null, `${u}CC`],
930
+ backdropFilter: p ? void 0 : [null, null, null, "blur(8px)"],
932
931
  flex: "1",
933
- gap: h ? void 0 : [null, null, null, 3],
932
+ gap: p ? void 0 : [null, null, null, 3],
934
933
  children: [
935
934
  /* @__PURE__ */ t.jsxs(
936
935
  T,
@@ -945,7 +944,7 @@ const Je = 60, mt = 6, Nn = (n) => {
945
944
  )
946
945
  ] }
947
946
  ),
948
- h ? null : O ? /* @__PURE__ */ t.jsx(R, { children: c }) : null
947
+ p ? null : O ? /* @__PURE__ */ t.jsx(R, { children: c }) : null
949
948
  ]
950
949
  }
951
950
  )
@@ -1009,15 +1008,15 @@ const Je = 60, mt = 6, Nn = (n) => {
1009
1008
  onLogoClick: c,
1010
1009
  rightSideButtons: u
1011
1010
  }) => {
1012
- const f = Cn(null), [d] = et(`(max-width: ${G.breakpoints.mediumTablet})`), [g] = et(`(max-width: ${G.breakpoints.mediumDesktop})`), h = Lt(() => {
1011
+ const f = Cn(null), [d] = et(`(max-width: ${G.breakpoints.mediumTablet})`), [g] = et(`(max-width: ${G.breakpoints.mediumDesktop})`), p = Lt(() => {
1013
1012
  if (f.current) {
1014
- const p = f.current.getBoundingClientRect();
1015
- s(p.bottom);
1013
+ const h = f.current.getBoundingClientRect();
1014
+ s(h.bottom);
1016
1015
  }
1017
1016
  }, []);
1018
1017
  return ee(() => {
1019
- h();
1020
- }, [h]), /* @__PURE__ */ t.jsx(
1018
+ p();
1019
+ }, [p]), /* @__PURE__ */ t.jsx(
1021
1020
  R,
1022
1021
  {
1023
1022
  ref: f,
@@ -1027,7 +1026,7 @@ const Je = 60, mt = 6, Nn = (n) => {
1027
1026
  borderColor: "tints.lightCream",
1028
1027
  backgroundColor: "tints.white",
1029
1028
  width: "100%",
1030
- onMouseEnter: h,
1029
+ onMouseEnter: p,
1031
1030
  children: /* @__PURE__ */ t.jsxs(
1032
1031
  T,
1033
1032
  { justifyContent: "space-between", alignItems: "center", children: [
@@ -1214,8 +1213,8 @@ const Je = 60, mt = 6, Nn = (n) => {
1214
1213
  bottomButton: f,
1215
1214
  hasBackButton: d = !0,
1216
1215
  onBackClick: g,
1217
- hasOnlySpotlightCards: h = !1,
1218
- hasSearch: p = !1,
1216
+ hasOnlySpotlightCards: p = !1,
1217
+ hasSearch: h = !1,
1219
1218
  onSearch: C = () => ({}),
1220
1219
  topOffset: E,
1221
1220
  forceMobilePlacement: v = !1
@@ -1319,7 +1318,7 @@ const Je = 60, mt = 6, Nn = (n) => {
1319
1318
  b || yt(!0);
1320
1319
  },
1321
1320
  onMouseLeave: (I) => {
1322
- b || (!p || p && (I.target === I.currentTarget || !I.currentTarget.contains(I.target) && !y)) && yt(!1);
1321
+ b || (!h || h && (I.target === I.currentTarget || !I.currentTarget.contains(I.target) && !y)) && yt(!1);
1323
1322
  },
1324
1323
  paddingTop: "4",
1325
1324
  paddingX: b ? "4" : "12",
@@ -1342,12 +1341,12 @@ const Je = 60, mt = 6, Nn = (n) => {
1342
1341
  transition: { duration: 0.3 }
1343
1342
  },
1344
1343
  children: [
1345
- !p && !b ? null : /* @__PURE__ */ t.jsxs(
1344
+ !h && !b ? null : /* @__PURE__ */ t.jsxs(
1346
1345
  Dt,
1347
1346
  {
1348
1347
  padding: "0",
1349
- flexDirection: p ? "column" : "row",
1350
- gap: p ? "4" : "0",
1348
+ flexDirection: h ? "column" : "row",
1349
+ gap: h ? "4" : "0",
1351
1350
  children: [
1352
1351
  b ? /* @__PURE__ */ t.jsxs(
1353
1352
  T,
@@ -1386,7 +1385,7 @@ const Je = 60, mt = 6, Nn = (n) => {
1386
1385
  ]
1387
1386
  }
1388
1387
  ) : null,
1389
- p && /* @__PURE__ */ t.jsxs(
1388
+ h && /* @__PURE__ */ t.jsxs(
1390
1389
  kn,
1391
1390
  { width: "100%", children: [
1392
1391
  /* @__PURE__ */ t.jsx(
@@ -1437,9 +1436,9 @@ const Je = 60, mt = 6, Nn = (n) => {
1437
1436
  style: {
1438
1437
  display: "flex",
1439
1438
  flexDirection: Zn(
1440
- h,
1439
+ p,
1441
1440
  !b,
1442
- p
1441
+ h
1443
1442
  ),
1444
1443
  gap: "24px",
1445
1444
  justifyContent: "space-between"
@@ -1451,7 +1450,7 @@ const Je = 60, mt = 6, Nn = (n) => {
1451
1450
  position: b ? void 0 : "relative",
1452
1451
  flexDirection: "column",
1453
1452
  gap: "6",
1454
- width: b ? "100%" : p ? void 0 : "auto",
1453
+ width: b ? "100%" : h ? void 0 : "auto",
1455
1454
  children: [
1456
1455
  i ? /* @__PURE__ */ t.jsx(R, { children: i }) : null,
1457
1456
  c && b ? /* @__PURE__ */ t.jsx(R, { children: c }) : null,
@@ -1500,9 +1499,9 @@ const Je = 60, mt = 6, Nn = (n) => {
1500
1499
  onSearchCallback: o,
1501
1500
  isActive: s
1502
1501
  }) => {
1503
- const [i, c] = X(""), [u, f] = X([]), d = (p, C) => {
1504
- if (!p) return [];
1505
- const v = Qe(p).split(/\s+/);
1502
+ const [i, c] = X(""), [u, f] = X([]), d = (h, C) => {
1503
+ if (!h) return [];
1504
+ const v = Qe(h).split(/\s+/);
1506
1505
  return C.filter((w) => {
1507
1506
  const O = Qe(w.label);
1508
1507
  if (v.some((A) => wt(O, A))) return !0;
@@ -1512,14 +1511,14 @@ const Je = 60, mt = 6, Nn = (n) => {
1512
1511
  });
1513
1512
  return S || y;
1514
1513
  }).sort((w, O) => w.label.localeCompare(O.label));
1515
- }, g = (p) => {
1516
- if (c(p), !p) {
1514
+ }, g = (h) => {
1515
+ if (c(h), !h) {
1517
1516
  f([]);
1518
1517
  return;
1519
1518
  }
1520
- const C = d(p, n);
1521
- f(C), o && o(p, C);
1522
- }, h = () => {
1519
+ const C = d(h, n);
1520
+ f(C), o && o(h, C);
1521
+ }, p = () => {
1523
1522
  c(""), f([]);
1524
1523
  };
1525
1524
  return ee(() => {
@@ -1527,7 +1526,7 @@ const Je = 60, mt = 6, Nn = (n) => {
1527
1526
  }, [s]), {
1528
1527
  query: i,
1529
1528
  results: u,
1530
- handleClose: h,
1529
+ handleClose: p,
1531
1530
  handleSearch: g
1532
1531
  };
1533
1532
  }, qn = (n) => {
@@ -1535,7 +1534,7 @@ const Je = 60, mt = 6, Nn = (n) => {
1535
1534
  return n.reduce((s, i) => {
1536
1535
  var u;
1537
1536
  const c = ((u = i.sections) == null ? void 0 : u.reduce((f, d) => {
1538
- const g = d.links.filter((h) => o.has(h.label) || h.isSearchable !== !0 ? !1 : (o.add(h.label), !0));
1537
+ const g = d.links.filter((p) => o.has(p.label) || p.isSearchable !== !0 ? !1 : (o.add(p.label), !0));
1539
1538
  return [...f, ...g];
1540
1539
  }, [])) ?? [];
1541
1540
  return [...s, ...c];
@@ -1566,8 +1565,8 @@ const Je = 60, mt = 6, Nn = (n) => {
1566
1565
  onLinkClick: f,
1567
1566
  onCategoryOpen: d,
1568
1567
  onLogoClick: g,
1569
- shopAllProductsUrl: h,
1570
- onShopAllProductsClick: p,
1568
+ shopAllProductsUrl: p,
1569
+ onShopAllProductsClick: h,
1571
1570
  hideableButtons: C,
1572
1571
  children: E
1573
1572
  }) => {
@@ -1632,7 +1631,7 @@ const Je = 60, mt = 6, Nn = (n) => {
1632
1631
  source: qn(n),
1633
1632
  onSearchCallback: u,
1634
1633
  isActive: O
1635
- }), Se = ve.length > 0, ke = c || le, We = Ee(h, !!c), Re = Ae && /* @__PURE__ */ t.jsxs(
1634
+ }), Se = ve.length > 0, ke = c || le, We = Ee(p, !!c), Re = Ae && /* @__PURE__ */ t.jsxs(
1636
1635
  T,
1637
1636
  { gap: Se ? "6" : 0, direction: "column", children: [
1638
1637
  Se ? /* @__PURE__ */ t.jsx(z, { color: "tints.uiGrey", children: `${ve.length} Results` }) : /* @__PURE__ */ t.jsxs(
@@ -1646,7 +1645,7 @@ const Je = 60, mt = 6, Nn = (n) => {
1646
1645
  St,
1647
1646
  {
1648
1647
  as: ke,
1649
- onClick: p,
1648
+ onClick: h,
1650
1649
  _hover: { textDecoration: "none" },
1651
1650
  width: ["100%", null, null, "auto"],
1652
1651
  ...We,
@@ -2099,10 +2098,10 @@ const Je = 60, mt = 6, Nn = (n) => {
2099
2098
  showNewsletter: u = !0,
2100
2099
  footerTheme: f
2101
2100
  }) => {
2102
- const d = f === "dark", [g, h] = se.useState(""), p = () => {
2103
- g && o && (o(g), h(""));
2101
+ const d = f === "dark", [g, p] = se.useState(""), h = () => {
2102
+ g && o && (o(g), p(""));
2104
2103
  }, C = (v) => {
2105
- v.key === "Enter" && p();
2104
+ v.key === "Enter" && h();
2106
2105
  }, E = (v) => {
2107
2106
  c && c(v);
2108
2107
  };
@@ -2141,7 +2140,7 @@ const Je = 60, mt = 6, Nn = (n) => {
2141
2140
  height: "52px",
2142
2141
  pr: "48px",
2143
2142
  value: g,
2144
- onChange: (v) => h(v.target.value),
2143
+ onChange: (v) => p(v.target.value),
2145
2144
  onKeyPress: C
2146
2145
  }
2147
2146
  ),
@@ -2156,7 +2155,7 @@ const Je = 60, mt = 6, Nn = (n) => {
2156
2155
  height: "24px",
2157
2156
  opacity: 0.66,
2158
2157
  cursor: "pointer",
2159
- onClick: p,
2158
+ onClick: h,
2160
2159
  "data-testid": "arrow-right-icon",
2161
2160
  role: "button",
2162
2161
  "aria-label": "Submit"
@@ -2218,21 +2217,21 @@ const Je = 60, mt = 6, Nn = (n) => {
2218
2217
  se.useEffect(() => {
2219
2218
  d((/* @__PURE__ */ new Date()).getFullYear());
2220
2219
  }, []);
2221
- const g = (p) => {
2222
- s && s(p);
2223
- }, h = n == null ? void 0 : n.map(
2224
- (p) => /* @__PURE__ */ t.jsx(
2220
+ const g = (h) => {
2221
+ s && s(h);
2222
+ }, p = n == null ? void 0 : n.map(
2223
+ (h) => /* @__PURE__ */ t.jsx(
2225
2224
  z,
2226
2225
  {
2227
2226
  as: c,
2228
2227
  color: u ? "viridian.lighter" : "viridian.base",
2229
2228
  size: "sm",
2230
2229
  _hover: { color: u ? "white" : "viridian.lighter", textDecoration: "none" },
2231
- onClick: () => g(p.label),
2232
- ...Ee(p.href, !!o),
2233
- children: p.label
2230
+ onClick: () => g(h.label),
2231
+ ...Ee(h.href, !!o),
2232
+ children: h.label
2234
2233
  },
2235
- p.label
2234
+ h.label
2236
2235
  )
2237
2236
  );
2238
2237
  return /* @__PURE__ */ t.jsxs(
@@ -2250,7 +2249,7 @@ const Je = 60, mt = 6, Nn = (n) => {
2250
2249
  flexWrap: "wrap",
2251
2250
  gap: [4, 6, 10],
2252
2251
  width: ["100%", "auto"],
2253
- children: h
2252
+ children: p
2254
2253
  }
2255
2254
  ),
2256
2255
  /* @__PURE__ */ t.jsxs(
@@ -2277,8 +2276,8 @@ const Je = 60, mt = 6, Nn = (n) => {
2277
2276
  linkComponent: f,
2278
2277
  onEmailSubmit: d,
2279
2278
  additionalContent: g,
2280
- onLinkClick: h,
2281
- onSocialMediaClick: p,
2279
+ onLinkClick: p,
2280
+ onSocialMediaClick: h,
2282
2281
  showNewsletter: C = !0,
2283
2282
  footerTheme: E = "dark"
2284
2283
  }, v) => {
@@ -2320,7 +2319,7 @@ const Je = 60, mt = 6, Nn = (n) => {
2320
2319
  {
2321
2320
  sections: n,
2322
2321
  linkComponent: f,
2323
- onLinkClick: h,
2322
+ onLinkClick: p,
2324
2323
  footerTheme: E
2325
2324
  }
2326
2325
  ),
@@ -2331,7 +2330,7 @@ const Je = 60, mt = 6, Nn = (n) => {
2331
2330
  newsletterLabel: s,
2332
2331
  socialMediaLabel: i,
2333
2332
  onEmailSubmit: d,
2334
- onLinkClick: p,
2333
+ onLinkClick: h,
2335
2334
  showNewsletter: C,
2336
2335
  footerTheme: E
2337
2336
  }
@@ -2383,7 +2382,7 @@ const Je = 60, mt = 6, Nn = (n) => {
2383
2382
  {
2384
2383
  links: u,
2385
2384
  linkComponent: f,
2386
- onLinkClick: h,
2385
+ onLinkClick: p,
2387
2386
  footerTheme: E
2388
2387
  }
2389
2388
  )
@@ -2417,10 +2416,10 @@ const Je = 60, mt = 6, Nn = (n) => {
2417
2416
  bodyProps: f,
2418
2417
  footerProps: d,
2419
2418
  contentProps: g,
2420
- ...h
2419
+ ...p
2421
2420
  }) => {
2422
2421
  var y, A, H, U, te;
2423
- const [p] = et(`(max-width: ${G.breakpoints.tablet})`), C = (te = (U = (H = (A = (y = G) == null ? void 0 : y.components) == null ? void 0 : A.Modal) == null ? void 0 : H.baseStyle) == null ? void 0 : U.overlay) == null ? void 0 : te.background, {
2422
+ const [h] = et(`(max-width: ${G.breakpoints.tablet})`), C = (te = (U = (H = (A = (y = G) == null ? void 0 : y.components) == null ? void 0 : A.Modal) == null ? void 0 : H.baseStyle) == null ? void 0 : U.overlay) == null ? void 0 : te.background, {
2424
2423
  Container: E,
2425
2424
  Overlay: v,
2426
2425
  Content: w,
@@ -2428,25 +2427,25 @@ const Je = 60, mt = 6, Nn = (n) => {
2428
2427
  Body: b,
2429
2428
  Footer: $,
2430
2429
  CloseButton: S
2431
- } = lr(p);
2430
+ } = lr(h);
2432
2431
  return /* @__PURE__ */ t.jsxs(
2433
2432
  E,
2434
2433
  {
2435
- ...h,
2434
+ ...p,
2436
2435
  isOpen: n,
2437
2436
  onClose: o,
2438
2437
  size: "xl",
2439
- ...p ? { placement: "bottom" } : {},
2438
+ ...h ? { placement: "bottom" } : {},
2440
2439
  children: [
2441
2440
  /* @__PURE__ */ t.jsx(v, { backdropFilter: "auto", backgroundColor: C }),
2442
2441
  /* @__PURE__ */ t.jsxs(
2443
2442
  w,
2444
2443
  {
2445
2444
  backgroundColor: "tints.white",
2446
- borderRadius: p ? "20px 20px 0 0" : "20px",
2445
+ borderRadius: h ? "20px 20px 0 0" : "20px",
2447
2446
  overflowY: "auto",
2448
2447
  gap: 0,
2449
- ...i && p && { paddingTop: 0 },
2448
+ ...i && h && { paddingTop: 0 },
2450
2449
  ...g,
2451
2450
  children: [
2452
2451
  /* @__PURE__ */ t.jsxs(
@@ -2464,7 +2463,7 @@ const Je = 60, mt = 6, Nn = (n) => {
2464
2463
  zIndex: "modal",
2465
2464
  backgroundColor: "tints.white",
2466
2465
  paddingInline: 4,
2467
- ...p ? { paddingBlock: 4 } : { paddingTop: 6, paddingBlockEnd: 2 },
2466
+ ...h ? { paddingBlock: 4 } : { paddingTop: 6, paddingBlockEnd: 2 },
2468
2467
  ...u,
2469
2468
  children: [
2470
2469
  i,
@@ -1 +1 @@
1
- {"version":3,"file":"NavbarDrawerLink.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavbarDrawerLink/NavbarDrawerLink.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAyB,MAAM,oBAAoB,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAgB,MAAM,UAAU,CAAC;AAE7D,MAAM,WAAW,qBAAsB,SAAQ,SAAS;IACtD;;SAEK;IACL,KAAK,EAAE,MAAM,CAAC;IACd;;SAEK;IACL,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;SAEK;IACL,iBAAiB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC1C;;SAEK;IACL,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;SAEK;IACL,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;SAEK;IACL,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,QAAA,MAAM,gBAAgB,EA8FjB,eAAe,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;AAEjD,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"NavbarDrawerLink.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavbarDrawerLink/NavbarDrawerLink.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAyB,MAAM,oBAAoB,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAgB,MAAM,UAAU,CAAC;AAE7D,MAAM,WAAW,qBAAsB,SAAQ,SAAS;IACtD;;SAEK;IACL,KAAK,EAAE,MAAM,CAAC;IACd;;SAEK;IACL,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;SAEK;IACL,iBAAiB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC1C;;SAEK;IACL,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;SAEK;IACL,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;SAEK;IACL,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,QAAA,MAAM,gBAAgB,EA4FjB,eAAe,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;AAEjD,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SpotlightCard.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/SpotlightCard/SpotlightCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAgB,MAAM,UAAU,CAAC;AAG7D;;GAEG;AACH,UAAU,sBAAsB;IAC9B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,MAAM,EAAE,YAAY,CAAC;IAErB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;;;SAIK;IACL,IAAI,EAAE,MAAM,CAAC;IAEb;;SAEK;IACL,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;;SAGK;IACL,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,sBAAsB;IAC3E;;;OAGG;IACH,YAAY,EAAE,YAAY,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAC1B,yBAAyB,GACzB,6BAA6B,CAAC;AAElC,eAAO,MAAM,aAAa,6HAWvB,kBAAkB,4CAmGpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"SpotlightCard.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/SpotlightCard/SpotlightCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAgB,MAAM,UAAU,CAAC;AAG7D;;GAEG;AACH,UAAU,sBAAsB;IAC9B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,MAAM,EAAE,YAAY,CAAC;IAErB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;;;SAIK;IACL,IAAI,EAAE,MAAM,CAAC;IAEb;;SAEK;IACL,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;;SAGK;IACL,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,sBAAsB;IAC3E;;;OAGG;IACH,YAAY,EAAE,YAAY,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAC1B,yBAAyB,GACzB,6BAA6B,CAAC;AAElC,eAAO,MAAM,aAAa,6HAWvB,kBAAkB,4CAsGpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everlywell/consumer-ui",
3
- "version": "1.47.6",
3
+ "version": "1.47.7",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {