@everlywell/consumer-ui 1.27.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -7
- package/index.mjs +189 -183
- package/lib/components/Navbar/NavigationBar/NavigationBar.builder.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts +2 -0
- package/lib/components/Navbar/NavigationBar/NavigationBar.d.ts.map +1 -1
- package/lib/components/Navbar/NavigationBar/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@everlywell/ui-kit"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@everlywell/ui-kit"),y=require("react"),ne=require("@chakra-ui/react"),W=require("@phosphor-icons/react"),Xe=require("framer-motion");var Ae={exports:{}},ce={};/**
|
|
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 Je;function kt(){if(Je)return ce;Je=1;var i=
|
|
9
|
+
*/var Je;function kt(){if(Je)return ce;Je=1;var i=y,o=Symbol.for("react.element"),x=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,j=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g={key:!0,ref:!0,__self:!0,__source:!0};function C(R,s,m){var u,h={},E=null,d=null;m!==void 0&&(E=""+m),s.key!==void 0&&(E=""+s.key),s.ref!==void 0&&(d=s.ref);for(u in s)f.call(s,u)&&!g.hasOwnProperty(u)&&(h[u]=s[u]);if(R&&R.defaultProps)for(u in s=R.defaultProps,s)h[u]===void 0&&(h[u]=s[u]);return{$$typeof:o,type:R,key:E,ref:d,props:h,_owner:j.current}}return ce.Fragment=x,ce.jsx=C,ce.jsxs=C,ce}var de={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Qe;function Tt(){return Qe||(Qe=1,process.env.NODE_ENV!=="production"&&function(){var i=
|
|
18
|
-
`+ae+e}}var oe=!1,Q;{var je=typeof WeakMap=="function"?WeakMap:Map;Q=new je}function se(e,n){if(!e||oe)return"";{var l=Q.get(e);if(l!==void 0)return l}var a;oe=!0;var
|
|
17
|
+
*/var Qe;function Tt(){return Qe||(Qe=1,process.env.NODE_ENV!=="production"&&function(){var i=y,o=Symbol.for("react.element"),x=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),R=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),D=Symbol.iterator,B="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var n=D&&e[D]||e[B];return typeof n=="function"?n:null}var A=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(e){{for(var n=arguments.length,l=new Array(n>1?n-1:0),a=1;a<n;a++)l[a-1]=arguments[a];V("error",e,l)}}function V(e,n,l){{var a=A.ReactDebugCurrentFrame,b=a.getStackAddendum();b!==""&&(n+="%s",l=l.concat([b]));var w=l.map(function(v){return String(v)});w.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,w)}}var pe=!1,he=!1,K=!1,S=!1,Y=!1,X;X=Symbol.for("react.module.reference");function _e(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===g||Y||e===j||e===m||e===u||S||e===d||pe||he||K||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===h||e.$$typeof===C||e.$$typeof===R||e.$$typeof===s||e.$$typeof===X||e.getModuleId!==void 0))}function xe(e,n,l){var a=e.displayName;if(a)return a;var b=n.displayName||n.name||"";return b!==""?l+"("+b+")":l}function re(e){return e.displayName||"Context"}function H(e){if(e==null)return null;if(typeof e.tag=="number"&&k("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 f:return"Fragment";case x:return"Portal";case g:return"Profiler";case j:return"StrictMode";case m:return"Suspense";case u:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var n=e;return re(n)+".Consumer";case C:var l=e;return re(l._context)+".Provider";case s:return xe(e,e.render,"ForwardRef");case h:var a=e.displayName||null;return a!==null?a:H(e.type)||"Memo";case E:{var b=e,w=b._payload,v=b._init;try{return H(v(w))}catch{return null}}}return null}var z=Object.assign,U=0,G,ve,ge,be,le,me,Ce;function we(){}we.__reactDisabledLog=!0;function ke(){{if(U===0){G=console.log,ve=console.info,ge=console.warn,be=console.error,le=console.group,me=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function Te(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:G}),info:z({},e,{value:ve}),warn:z({},e,{value:ge}),error:z({},e,{value:be}),group:z({},e,{value:le}),groupCollapsed:z({},e,{value:me}),groupEnd:z({},e,{value:Ce})})}U<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=A.ReactCurrentDispatcher,ae;function J(e,n,l){{if(ae===void 0)try{throw Error()}catch(b){var a=b.stack.trim().match(/\n( *(at )?)/);ae=a&&a[1]||""}return`
|
|
18
|
+
`+ae+e}}var oe=!1,Q;{var je=typeof WeakMap=="function"?WeakMap:Map;Q=new je}function se(e,n){if(!e||oe)return"";{var l=Q.get(e);if(l!==void 0)return l}var a;oe=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w;w=ie.current,ie.current=null,ke();try{if(n){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(I){a=I}Reflect.construct(e,[],v)}else{try{v.call()}catch(I){a=I}e.call(v.prototype)}}else{try{throw Error()}catch(I){a=I}e()}}catch(I){if(I&&a&&typeof I.stack=="string"){for(var p=I.stack.split(`
|
|
19
19
|
`),F=a.stack.split(`
|
|
20
20
|
`),_=p.length-1,T=F.length-1;_>=1&&T>=0&&p[_]!==F[T];)T--;for(;_>=1&&T>=0;_--,T--)if(p[_]!==F[T]){if(_!==1||T!==1)do if(_--,T--,T<0||p[_]!==F[T]){var M=`
|
|
21
|
-
`+p[_].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,M),M}while(_>=1&&T>=0);break}}}finally{oe=!1,ie.current=w,Te(),Error.prepareStackTrace=
|
|
21
|
+
`+p[_].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,M),M}while(_>=1&&T>=0);break}}}finally{oe=!1,ie.current=w,Te(),Error.prepareStackTrace=b}var te=e?e.displayName||e.name:"",Z=te?J(te):"";return typeof e=="function"&&Q.set(e,Z),Z}function ye(e,n,l){return se(e,!1)}function c(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function O(e,n,l){if(e==null)return"";if(typeof e=="function")return se(e,c(e));if(typeof e=="string")return J(e);switch(e){case m:return J("Suspense");case u:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case s:return ye(e.render);case h:return O(e.type,n,l);case E:{var a=e,b=a._payload,w=a._init;try{return O(w(b),n,l)}catch{}}}return""}var L=Object.prototype.hasOwnProperty,P={},Ee=A.ReactDebugCurrentFrame;function N(e){if(e){var n=e._owner,l=O(e.type,e._source,n?n.type:null);Ee.setExtraStackFrame(l)}else Ee.setExtraStackFrame(null)}function at(e,n,l,a,b){{var w=Function.call.bind(L);for(var v in e)if(w(e,v)){var p=void 0;try{if(typeof e[v]!="function"){var F=Error((a||"React class")+": "+l+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw F.name="Invariant Violation",F}p=e[v](n,v,a,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){p=_}p&&!(p instanceof Error)&&(N(b),k("%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).",a||"React class",l,v,typeof p),N(null)),p instanceof Error&&!(p.message in P)&&(P[p.message]=!0,N(b),k("Failed %s type: %s",l,p.message),N(null))}}}var ot=Array.isArray;function Le(e){return ot(e)}function st(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,l=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function ut(e){try{return Me(e),!1}catch{return!0}}function Me(e){return""+e}function We(e){if(ut(e))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",st(e)),Me(e)}var ue=A.ReactCurrentOwner,ct={key:!0,ref:!0,__self:!0,__source:!0},Ne,Ve,Oe;Oe={};function dt(e){if(L.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function ft(e){if(L.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function pt(e,n){if(typeof e.ref=="string"&&ue.current&&n&&ue.current.stateNode!==n){var l=H(ue.current.type);Oe[l]||(k('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',H(ue.current.type),e.ref),Oe[l]=!0)}}function ht(e,n){{var l=function(){Ne||(Ne=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function xt(e,n){{var l=function(){Ve||(Ve=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var vt=function(e,n,l,a,b,w,v){var p={$$typeof:o,type:e,key:n,ref:l,props:v,_owner:w};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function gt(e,n,l,a,b){{var w,v={},p=null,F=null;l!==void 0&&(We(l),p=""+l),ft(n)&&(We(n.key),p=""+n.key),dt(n)&&(F=n.ref,pt(n,b));for(w in n)L.call(n,w)&&!ct.hasOwnProperty(w)&&(v[w]=n[w]);if(e&&e.defaultProps){var _=e.defaultProps;for(w in _)v[w]===void 0&&(v[w]=_[w])}if(p||F){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&ht(v,T),F&&xt(v,T)}return vt(e,p,F,b,a,ue.current,v)}}var De=A.ReactCurrentOwner,Ye=A.ReactDebugCurrentFrame;function ee(e){if(e){var n=e._owner,l=O(e.type,e._source,n?n.type:null);Ye.setExtraStackFrame(l)}else Ye.setExtraStackFrame(null)}var Pe;Pe=!1;function Fe(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function ze(){{if(De.current){var e=H(De.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function bt(e){{if(e!==void 0){var n=e.fileName.replace(/^.*[\\\/]/,""),l=e.lineNumber;return`
|
|
24
24
|
|
|
25
25
|
Check your code at `+n+":"+l+"."}return""}}var Ue={};function mt(e){{var n=ze();if(!n){var l=typeof e=="string"?e:e.displayName||e.name;l&&(n=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+l+">.")}return n}}function Ge(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=mt(n);if(Ue[l])return;Ue[l]=!0;var a="";e&&e._owner&&e._owner!==De.current&&(a=" It was passed a child from "+H(e._owner.type)+"."),ee(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,a),ee(null)}}function Ze(e,n){{if(typeof e!="object")return;if(Le(e))for(var l=0;l<e.length;l++){var a=e[l];Fe(a)&&Ge(a,n)}else if(Fe(e))e._store&&(e._store.validated=!0);else if(e){var
|
|
27
|
+
Check the top-level render call using <`+l+">.")}return n}}function Ge(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=mt(n);if(Ue[l])return;Ue[l]=!0;var a="";e&&e._owner&&e._owner!==De.current&&(a=" It was passed a child from "+H(e._owner.type)+"."),ee(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,a),ee(null)}}function Ze(e,n){{if(typeof e!="object")return;if(Le(e))for(var l=0;l<e.length;l++){var a=e[l];Fe(a)&&Ge(a,n)}else if(Fe(e))e._store&&(e._store.validated=!0);else if(e){var b=$(e);if(typeof b=="function"&&b!==e.entries)for(var w=b.call(e),v;!(v=w.next()).done;)Fe(v.value)&&Ge(v.value,n)}}}function Ct(e){{var n=e.type;if(n==null||typeof n=="string")return;var l;if(typeof n=="function")l=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===s||n.$$typeof===h))l=n.propTypes;else return;if(l){var a=H(n);at(l,e.props,"prop",a,e)}else if(n.PropTypes!==void 0&&!Pe){Pe=!0;var b=H(n);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var n=Object.keys(e.props),l=0;l<n.length;l++){var a=n[l];if(a!=="children"&&a!=="key"){ee(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),ee(null);break}}e.ref!==null&&(ee(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),ee(null))}}var qe={};function Ke(e,n,l,a,b,w){{var v=_e(e);if(!v){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var F=bt(b);F?p+=F:p+=ze();var _;e===null?_="null":Le(e)?_="array":e!==void 0&&e.$$typeof===o?(_="<"+(H(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,p)}var T=gt(e,n,l,b,w);if(T==null)return T;if(v){var M=n.children;if(M!==void 0)if(a)if(Le(M)){for(var te=0;te<M.length;te++)Ze(M[te],e);Object.freeze&&Object.freeze(M)}else k("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 Ze(M,e)}if(L.call(n,"key")){var Z=H(e),I=Object.keys(n).filter(function(_t){return _t!=="key"}),Ie=I.length>0?"{key: someKey, "+I.join(": ..., ")+": ...}":"{key: someKey}";if(!qe[Z+Ie]){var St=I.length>0?"{"+I.join(": ..., ")+": ...}":"{}";k(`A props object containing a "key" prop is being spread into JSX:
|
|
28
28
|
let props = %s;
|
|
29
29
|
<%s {...props} />
|
|
30
30
|
React keys must be passed directly to JSX without using spread:
|
|
31
31
|
let props = %s;
|
|
32
|
-
<%s key={someKey} {...props} />`,Ie,Z,St,Z),qe[Z+Ie]=!0}}return e===f?wt(T):Ct(T),T}}function jt(e,n,l){return Ke(e,n,l,!0)}function yt(e,n,l){return Ke(e,n,l,!1)}var Et=yt,Rt=jt;de.Fragment=f,de.jsx=Et,de.jsxs=Rt}()),de}process.env.NODE_ENV==="production"?Ae.exports=kt():Ae.exports=Tt();var t=Ae.exports;const Be=60,et=6,Lt=i=>{const{activeStepIndex:o,hideIndicators:x=!1,steps:f,stepperTheme:m={light:"eggplant.light",base:"eggplant.base"}}=i,{activeStep:b,setActiveStep:C}=r.useSteps({index:o,count:f.length});return j.useEffect(()=>{C(o)},[o,C]),t.jsx(r.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(r.Stepper,{role:"progressbar",index:b,width:"100%",display:"flex",flexWrap:"nowrap",children:f.map((S,c)=>{const y=b===c,s=c===0,h=c===f.length-1,E=b>c;let d=`${Be}px`;const D=`calc(100% - ((${Be*(f.length-1)}px) - (${f.length-1} * ${et*2}px)))`;return y?d=D:(s||h)&&(d=`${Be-et}px`),t.jsx(r.Box,{width:d,opacity:E||y?1:.2,paddingRight:h?"0":"6px",paddingLeft:s?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(r.Box,{paddingTop:x?2:5,position:"relative",width:"100%",children:t.jsx(r.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:E?m.light:m.base,height:x?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${c}`)})})})},Ot=j.memo(Lt),Dt=({children:i,...o})=>t.jsx(ne.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...o,children:i}),$e=(i,o)=>{const x=(i==null?void 0:i.startsWith("http"))||(i==null?void 0:i.startsWith("mailto"));return o&&!x?{to:i}:{href:i}},Re=j.forwardRef((i,o)=>{const{label:x,additionalContent:f,mainTextFontSize:m,linkComponent:b,href:C,...S}=i,c=b||r.Link,y=$e(C,!!b);return t.jsxs(r.Box,{ref:o,as:c,display:"flex",alignItems:"center",gap:[null,null,null,1],justifyContent:[null,null,null,"space-between"],paddingY:[3,null,null,0],color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},borderBottom:["1px",null,null,"unset"],borderColor:["tints.cream",null,null,"unset"],width:["100%",null,null,"fit-content"],cursor:"pointer",...y,...S,children:[t.jsx(r.Icon,{display:["none",null,null,"block"],as:W.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(r.Flex,{alignItems:"center",gap:"1",width:["100%",null,null,"auto"],children:[t.jsx(r.Text,{fontSize:[m||"xl",null,null,"lg"],fontWeight:"medium",children:x}),f&&(typeof f=="string"?t.jsx(r.Text,{fontSize:["xl",null,null,"lg"],fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:f}):f),t.jsx(r.Icon,{display:["block",null,null,"none"],as:W.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),fe=j.forwardRef((i,o)=>{const{children:x,isSelected:f,...m}=i,b=i.backgroundColor||(f?"tints.lightCream":"transparent");return t.jsx(r.Button,{ref:o,borderRadius:"full",backgroundColor:b,fontSize:"lg !important",fontWeight:"normal",color:"tints.black",_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:b,textDecoration:"none",filter:"brightness(0.95)"},...m,children:x})}),rt=({title:i,description:o,imageSrc:x,imageElement:f,button:m,backgroundColor:b="viridian.wash",onClick:C,href:S,linkComponent:c})=>{const y="80px",s="200px",h="272px",E=c||r.Link,d=$e(S,!!c);return t.jsxs(r.Flex,{direction:["row",null,null,"column"],alignItems:["center"],borderRadius:"xl",overflow:"hidden",height:[y,null,null,h],backgroundColor:b,onClick:C,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",border:"1px solid",borderColor:"transparent",_hover:{boxShadow:"lg",cursor:"pointer",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:E,...d,children:[t.jsx(r.Box,{width:["72px",null,null,"100%"],height:["100%"],flex:[null,null,null,"1"],children:x?t.jsx(r.Image,{src:x,objectFit:"cover",height:[y,null,null,s],width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(r.Box,{height:[y,null,null,s],overflow:"hidden",children:f})}),t.jsxs(r.Flex,{direction:["column",null,null,"row"],justifyContent:[null,null,null,"space-between"],alignItems:["left",null,null,"center"],padding:"4",height:["100%",null,null,"auto"],width:"100%",position:[null,null,null,"absolute"],bottom:[null,null,null,"0"],backgroundColor:[null,null,null,`${b}CC`],backdropFilter:[null,null,null,"blur(8px)"],children:[t.jsxs(r.Box,{children:[t.jsx(r.Text,{fontSize:"lg",fontWeight:"medium",color:"tints.black",children:i}),t.jsx(r.Text,{fontSize:"sm",color:"tints.black",children:o})]}),t.jsx(r.Box,{display:["none",null,null,"block"],children:m})]})]})},q=i=>t.jsx(r.IconButton,{size:"sm",width:["40px",null,null,"46px"],height:["40px",null,null,"46px"],padding:["2 !important",null,null,"3 !important"],colorScheme:"whiteCS",backgroundColor:"tints.cream",sx:{svg:{width:"24px",height:"24px"}},_hover:{backgroundColor:"tints.cream",filter:"brightness(0.95)"},...i}),Pt=()=>t.jsx("svg",{width:"116",height:"24",viewBox:"0 0 116 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Everlywell Logo",children:t.jsx("g",{id:"Everlywell Logo",children:t.jsx("path",{id:"Everlywell Logo_2",fillRule:"evenodd",clipRule:"evenodd",d:"M54.8224 1V17.8352H52.4272V1H54.8224ZM5.65731 14.992C4.9835 14.4474 4.59261 13.726 4.48231 12.8278H13.7822C13.9984 10.4829 13.5723 8.70006 12.5039 7.47915C11.4322 6.25824 9.93769 5.64945 8.01698 5.64945C6.23518 5.64945 4.78896 6.22479 3.67214 7.38216C2.55841 8.5395 2 9.92767 2 11.8377C2 13.7476 2.56171 15.273 3.68501 16.4136C4.80831 17.5542 6.30612 18.1229 8.18163 18.1229C9.11125 18.1229 10.0216 17.9489 10.9125 17.5944C11.8034 17.2431 12.533 16.7447 13.1075 16.1025L11.5517 14.5371C11.2095 14.9217 10.7253 15.2294 10.099 15.4636C9.46959 15.6944 8.84662 15.8115 8.22684 15.8115C7.18735 15.8115 6.33197 15.5372 5.65731 14.992ZM10.4671 8.60977C11.0772 9.10817 11.416 9.81395 11.4774 10.7305H4.52751C4.71152 9.81395 5.12475 9.10817 5.77027 8.60977C6.41589 8.11136 7.18735 7.86384 8.08473 7.86384C9.05966 7.86384 9.85696 8.11136 10.4671 8.60977ZM22.1465 17.8819L27.0047 5.93699H24.3771L22.6565 10.2486L20.8424 15.2828L18.8217 9.76697L17.2884 5.93699H14.6382L19.5189 17.8819H22.1465ZM30.3737 12.8244C30.4835 13.7242 30.8741 14.4467 31.5487 14.992C32.2234 15.5372 33.0788 15.8115 34.1181 15.8115C34.7379 15.8115 35.361 15.6944 35.9905 15.4636C36.6166 15.2294 37.1009 14.9217 37.4431 14.5371L38.999 16.1025C38.4244 16.7447 37.6948 17.2431 36.8039 17.5944C35.9129 17.9489 35.0027 18.1229 34.0729 18.1229C32.1975 18.1229 30.6997 17.5542 29.5764 16.4136C28.453 15.273 27.8914 13.7476 27.8914 11.8377C27.8914 9.92767 28.4498 8.5395 29.5635 7.38216C30.6804 6.22479 32.1265 5.64945 33.9084 5.64945C35.829 5.64945 37.3236 6.25824 38.3952 7.47915C39.4638 8.70006 39.8899 10.4829 39.6736 12.8278H30.3769L30.3737 12.8244ZM37.3688 10.7305C37.3075 9.81395 36.9685 9.10817 36.3584 8.60977C35.7483 8.11136 34.951 7.86384 33.9762 7.86384C33.0788 7.86384 32.3073 8.11136 31.6617 8.60977C31.0161 9.10817 30.6029 9.81395 30.4189 10.7305H37.3688ZM44.5032 7.5263L44.3418 5.96085H44.3385H42.108V17.8355H44.5032V11.4031C44.5032 10.3595 44.8001 9.5567 45.3877 8.99473C45.9751 8.43278 46.7112 8.15181 47.5956 8.15181C48.3703 8.15181 49.0417 8.39264 49.6163 8.87432L50.7073 6.70677C49.9811 6.03445 49.0353 5.6966 47.8732 5.6966C46.2914 5.6966 45.1681 6.30539 44.5032 7.5263ZM60.3782 12.3193V5.96054H57.983V12.3428C57.983 14.1089 58.4286 15.5004 59.3195 16.5106C60.2104 17.5241 61.3789 18.0292 62.8186 18.0292C64.552 18.0292 65.8787 17.387 66.7923 16.1025V18.1262C66.7923 19.2669 66.4824 20.1499 65.8626 20.7754C65.2429 21.401 64.494 21.7154 63.6094 21.7154C61.8889 21.7154 60.8754 20.9661 60.5654 19.4742H58.2187C58.3252 20.9326 58.8644 22.0532 59.8327 22.8326C60.8011 23.612 62.1214 24 63.6546 24C65.188 24 66.4727 23.5049 67.5121 22.5081C68.5515 21.5147 69.0712 20.0697 69.0712 18.1731V5.96054H66.6761V12.1521C66.6761 13.1623 66.3791 14.0153 65.7819 14.7043C65.188 15.3967 64.4681 15.7412 63.4933 15.7412C62.5184 15.7412 61.7566 15.4268 61.2047 14.8013C60.6526 14.1725 60.3782 13.3463 60.3782 12.3193ZM81.5989 5.93699L84.3427 15.2828L87.1768 5.93699H89.8496L85.8275 17.8819H83.0385L81.6892 13.9315L80.5724 9.79039L79.4328 13.9315L78.0836 17.8819H75.2945L71.2498 5.93699H73.9453L76.7795 15.2828L79.5232 5.93699H81.5924H81.5989ZM94.65 14.992C93.9754 14.4467 93.5848 13.7242 93.475 12.8244L93.4847 12.8278H102.781C102.998 10.4829 102.572 8.70006 101.503 7.47915C100.431 6.25824 98.9368 5.64945 97.0162 5.64945C95.2343 5.64945 93.785 6.22479 92.668 7.38216C91.5544 8.5395 90.9959 9.92767 90.9959 11.8377C90.9959 13.7476 91.5576 15.273 92.6809 16.4136C93.8043 17.5542 95.3021 18.1229 97.1775 18.1229C98.1073 18.1229 99.0175 17.9489 99.9084 17.5944C100.799 17.2431 101.529 16.7447 102.103 16.1025L100.544 14.5371C100.202 14.9217 99.7212 15.2328 99.0918 15.4636C98.4623 15.6944 97.8393 15.8115 97.2196 15.8115C96.1802 15.8115 95.3247 15.5372 94.65 14.992ZM99.4598 8.60977C100.07 9.10817 100.409 9.81395 100.47 10.7305H93.5202C93.7042 9.81395 94.1175 9.10817 94.763 8.60977C95.4086 8.11136 96.1802 7.86384 97.0774 7.86384C98.0524 7.86384 98.8465 8.11136 99.4598 8.60977ZM107.698 1V17.8352H105.303V1H107.698ZM113.53 17.8352V1H111.135V17.8352H113.53Z",fill:"#28724F"})})}),lt=({desktopTopButtons:i,kitRegistrationElement:o,profileElement:x,cartElement:f,onSearchClick:m,onMenuClick:b,hasSearch:C=!1,logoLink:S="https://www.everlywell.com",onHeightChange:c,linkComponent:y,onLogoClick:s})=>{const h=j.useRef(null),[E,d]=j.useState(0),D=100,B=j.useCallback(()=>{if(h.current&&c){const $=Date.now();if($-E>D){const A=h.current.getBoundingClientRect().height;c(A),d($)}}},[c,E]);return j.useEffect(()=>{B();const $=new ResizeObserver(()=>{B()});return h.current&&$.observe(h.current),()=>{$.disconnect()}},[B]),t.jsx(r.Box,{ref:h,paddingY:"4",paddingX:[4,null,null,12],borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",position:"fixed",width:"100%",zIndex:["sticky",null,null,"tooltip"],children:t.jsxs(r.Flex,{justifyContent:"space-between",alignItems:"center",children:[t.jsxs(r.Flex,{alignItems:"center",gap:"5",children:[t.jsx(r.Box,{"aria-label":"Go to homepage",onClick:s,as:y||r.Link,...$e(S,!!y),children:t.jsx(Pt,{})}),t.jsx(r.Flex,{display:["none",null,null,"flex"],children:i})]}),t.jsxs(r.Flex,{alignItems:"center",gap:"2",children:[t.jsx(r.Box,{display:["none",null,null,"block"],children:o}),C?t.jsx(q,{"aria-label":"Search",icon:t.jsx(r.Icon,{as:W.MagnifyingGlass}),onClick:m}):null,f,t.jsx(r.Box,{display:["flex",null,null,"none"],children:t.jsx(q,{icon:t.jsx(W.List,{}),"aria-label":"menu","data-testid":"menu-button",onClick:b})}),t.jsx(r.Box,{display:["none",null,null,"block"],children:x})]})]})})},it=({count:i=0,...o})=>t.jsxs(r.Box,{position:"relative",display:"inline-block",children:[t.jsx(q,{icon:t.jsx(W.Basket,{}),...o}),i>0&&t.jsx(r.Box,{display:"flex",minWidth:"20px",height:"20px",py:"4px",px:"6px",justifyContent:"center",alignItems:"center",position:"absolute",right:"-4px",top:"-4px",borderRadius:"32px",background:"viridian.base",color:"white",fontSize:"xs",fontWeight:"normal",children:i})]}),Ft=({numLinks:i=5,showPromoButton:o=!0})=>t.jsx(r.VStack,{spacing:0,align:"stretch",children:t.jsx(r.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",children:t.jsxs(r.Flex,{justify:"space-between",align:"center",children:[t.jsx(r.Skeleton,{w:"120px",h:"48px"}),t.jsxs(r.HStack,{spacing:8,marginLeft:12,children:[Array.from({length:i}).map((x,f)=>t.jsx(r.Skeleton,{width:"90px",height:"48px"},f)),o&&t.jsx(r.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(r.HStack,{spacing:4,ml:"auto",children:[t.jsx(r.SkeletonCircle,{width:"120px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),It=(i,o)=>{let x;return(...f)=>{x&&clearTimeout(x),x=setTimeout(()=>{i(...f)},o)}},He="nav-drawer-hover",tt=i=>{window.dispatchEvent(new CustomEvent(He,{detail:{isHovering:i},bubbles:!0,cancelable:!0}))},Bt=(i=!1,o=!1,x=!1)=>i||!o?"column":x?"row":"row-reverse",Se=({isOpen:i=!1,onClose:o,title:x,navDrawerLinks:f,bottomNavButtons:m,spotlightCards:b,bottomButton:C,hasBackButton:S=!0,onBackClick:c,hasOnlySpotlightCards:y=!1,navHeight:s,hasSearch:h=!1,onSearch:E=()=>{}})=>{const d=ne.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0}),D=d?"top":"left",[B,$]=j.useState(0),A=()=>{$(V=>V+1)},k=j.useCallback(It(V=>{E(V),A()},100),[]);return t.jsxs(r.Drawer,{isOpen:i,onClose:o,placement:D,blockScrollOnMount:!1,autoFocus:!1,children:[t.jsx(r.DrawerOverlay,{backgroundColor:"tints.black",top:["0",null,null,s?`${s}px`:null],opacity:d?void 0:"0.4 !important",motionProps:d?{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.4,delay:.2,ease:"easeOut"}}:{}}),t.jsxs(r.DrawerContent,{onMouseEnter:()=>{!h&&d&&tt(!0)},onMouseLeave:()=>{!h&&d&&tt(!1)},paddingTop:[4,null,null,s?`${s+24}px`:null],paddingX:[4,null,null,12],paddingBottom:"24",overflow:"auto",maxHeight:"100vh",position:"relative",children:[!h&&d?null:t.jsxs(r.DrawerHeader,{padding:"0",flexDirection:h?"column":"row",gap:h?"4":"0",children:[d?null:t.jsxs(r.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[S?t.jsx(q,{icon:t.jsx(W.CaretLeft,{}),onClick:()=>{c&&c(),o()},"aria-label":"Back"}):null,t.jsx(r.Text,{color:"tints.uiGrey",fontSize:["xl",null,null,"lg"],children:x}),t.jsx(q,{icon:t.jsx(W.X,{}),onClick:o,"aria-label":"Close"})]}),h&&t.jsxs(ne.InputGroup,{width:"100%",children:[t.jsx(ne.Input,{onChange:V=>{k(V.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(ne.InputRightElement,{pointerEvents:"none",children:t.jsx(ne.Icon,{as:W.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(r.DrawerBody,{paddingX:"0",paddingBottom:[6,null,null,4],"data-testid":`navbar-drawer-body-${x.toLowerCase()}`,children:t.jsx(Xe.motion.div,{...d?{initial:{opacity:0,y:0},animate:{opacity:1,y:0},exit:{opacity:0,y:0},transition:{duration:.3,ease:[.4,0,.2,1],exit:{duration:.3,ease:[.4,0,.2,1]}}}:{},children:t.jsxs(Xe.motion.div,{...d?{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:Bt(y,d,h),gap:"24px",justifyContent:"space-between"},children:[b?t.jsx(r.Box,{gap:"6",display:"flex",justifyContent:[null,null,null,"center"],sx:{"& > *":{width:["100%",null,null,"365px","432px"]},flexWrap:"wrap",flexDirection:["column",null,null,"row"]},children:b}):null,t.jsxs(r.Flex,{position:[null,null,null,"relative"],flexDirection:"column",gap:"6",width:["100%",null,null,"auto"],children:[f?t.jsx(r.Box,{children:f}):null,m&&!d?t.jsx(r.Box,{children:m}):null,C?t.jsx(r.Box,{width:["100%"],position:[null,null,null,"absolute"],bottom:[null,null,null,0],children:C}):null]})]},B)})})]})]})},nt=i=>i.reduce((o,x)=>{var m;const f=((m=x.sections)==null?void 0:m.reduce((b,C)=>[...b,...C.links],[]))??[];return[...o,...f]},[]),At=({source:i,onSearchCallback:o,isActive:x})=>{const[f,m]=j.useState(""),[b,C]=j.useState([]),S=(s,h)=>{if(!s)return[];const E=s.toLowerCase();return h.filter(d=>{const D=d.label.toLowerCase().includes(E),B=typeof d.additionalContent=="string"&&d.additionalContent.toLowerCase().includes(E);return D||B}).sort((d,D)=>d.label.localeCompare(D.label))},c=s=>{if(m(s),!s){C([]);return}const h=S(s,i);C(h),o&&o(s,h)},y=()=>{m(""),C([])};return j.useEffect(()=>{x||(m(""),C([]))},[x]),{query:f,results:b,handleClose:y,handleSearch:c}},Ht=({categories:i=[],onCartClick:o,mainCategoryLabel:x="Menu",logoLink:f="https://www.everlywell.com",hasSearch:m=!0,onSearchClick:b,registrationUrl:C,profileUrl:S="https://secure.everlywell.com/login",mobileBottomButtons:c=[],numberOfCartItems:y=0,linkComponent:s,onSearchCallback:h,onLinkClick:E,onCategoryOpen:d,onMobileMenuOpen:D,onBackToMainMenu:B,onRegisterKitClick:$,onProfileClick:A,onLogoClick:k})=>{var je,se,ye;const[V,pe]=j.useState(!1),[he,K]=j.useState(!1),[R,Y]=j.useState(null),[X,_e]=j.useState(0),[xe,re]=j.useState(!1),[H,z]=j.useState(!1),{query:U,results:G,handleSearch:ve}=At({source:nt(i),onSearchCallback:h,isActive:he}),ge=U&&t.jsxs(r.Flex,{gap:"6",direction:"column",children:[G.length>0?t.jsx(r.Text,{color:"tints.uiGrey",children:`${G.length} Results`}):t.jsx(r.Text,{children:"We didn't find what you were looking for, click to shop all products."}),t.jsx(r.Flex,{gap:"6",flexDirection:["column",null,null,"row"],justifyContent:[null,null,null,"flex-start"],children:Array.from({length:Math.ceil(G.length/4)},(u,O)=>t.jsx(r.Flex,{direction:"column",gap:"6",children:G.slice(O*4,(O+1)*4).map((L,P)=>t.jsx(Re,{href:L.href,label:L.label,additionalContent:L==null?void 0:L.additionalContent,linkComponent:s},`${L.label}-${P}`))},O))})]}),be=j.useCallback(u=>{_e(u)},[]),le=()=>{pe(!1),Y(null)},me=u=>{Y(u)},Ce=u=>{re(!0),K(!1),(u.sections||u.spotlightCards)&&Y(u)},we=()=>{re(!1)};j.useEffect(()=>{const u=O=>{z(O.detail.isHovering)};return window.addEventListener(He,u),()=>{window.removeEventListener(He,u)}},[]),j.useEffect(()=>{!xe&&!H&&(Y(null),K(!1))},[xe,H]),j.useEffect(()=>{let u=window.location.href;const O=()=>{const P=window.location.href;P!==u&&(u=P,le(),Y(null))},L=setInterval(O,100);return window.addEventListener("popstate",O),()=>{window.removeEventListener("popstate",O),clearInterval(L)}},[]);const ke=()=>{Y(null),B==null||B()},Te=t.jsx(t.Fragment,{children:i==null?void 0:i.map((u,O)=>t.jsx(fe,{onMouseEnter:()=>{Ce(u),d==null||d(u.label)},onMouseLeave:we,isSelected:(R==null?void 0:R.label)===u.label,...u.buttonProps,children:u.label},`${u.label}-${O}`))}),ie=(je=i.filter(u=>u.isMobileTopLink!==!1))==null?void 0:je.map(u=>t.jsx(r.Box,{onClick:()=>{me(u),d==null||d(u.label)},children:t.jsx(Re,{label:u.label,role:"link",additionalContent:u.additionalContent,mainTextFontSize:"3xl",linkComponent:s})},u.label));nt(i);const ae=t.jsxs(t.Fragment,{children:[t.jsx(fe,{as:r.Link,href:S,width:"100%",backgroundColor:"tints.cream",onClick:A,children:t.jsxs(r.Flex,{gap:"2",children:["My Everly",t.jsx(r.Icon,{as:W.User,size:24})]})},"my-everly"),t.jsx(fe,{as:r.Link,width:"100%",href:C,backgroundColor:"tints.cream",onClick:$,children:t.jsxs(r.Flex,{gap:"2",children:["Register kit",t.jsx(r.Icon,{as:W.QrCode,size:24})]})},"register-kit")]}),J=t.jsxs(r.Flex,{gap:"2",flexDirection:"column",children:[c,ae]}),oe=R?t.jsx(r.Flex,{direction:["column",null,null,"row"],gap:"8",children:(se=R==null?void 0:R.sections)==null?void 0:se.map((u,O)=>{const L=[];for(let P=0;P<u.links.length;P+=3)L.push(u.links.slice(P,P+3));return t.jsxs(r.Box,{children:[t.jsx(r.Text,{fontSize:"md",color:"tints.uiGrey",marginBottom:[0,null,null,6],children:u.title}),t.jsx(r.Flex,{flexDirection:["column",null,null,"row"],gap:[null,null,null,8],children:L==null?void 0:L.map((P,Ee)=>t.jsx(r.Flex,{flexDirection:["column"],gap:[null,null,null,5],marginLeft:[null,null,null,-2],children:P==null?void 0:P.map(N=>t.jsx(Re,{label:N.label,href:N.href,additionalContent:N.additionalContent,linkComponent:s,onClick:()=>E==null?void 0:E(N.label)},N.label))},Ee))})]},`${u.title}-${O}`)})}):null,Q=R!=null&&R.spotlightCards?(ye=R.spotlightCards)==null?void 0:ye.map(u=>t.jsx(rt,{...u},u.title)):t.jsx(r.Box,{});return t.jsxs(t.Fragment,{children:[t.jsx(lt,{desktopTopButtons:Te,kitRegistrationElement:t.jsx(fe,{as:r.Link,href:C,onClick:$,backgroundColor:"tints.cream",children:"Register Kit"}),profileElement:t.jsx(r.Link,{href:S,"aria-label":"login",onClick:A,children:t.jsx(q,{icon:t.jsx(r.Icon,{as:W.User}),"aria-label":"Profile"})}),cartElement:t.jsx(it,{"aria-label":"Cart",count:y,onClick:o}),onSearchClick:()=>{K(!0),b==null||b()},onMenuClick:()=>{pe(!0),D==null||D()},hasSearch:m,logoLink:f,onHeightChange:be,linkComponent:s,onLogoClick:k}),t.jsx(Se,{isOpen:V,onClose:le,title:x,navDrawerLinks:ie,bottomNavButtons:J,hasBackButton:!1,navHeight:X}),t.jsx(Se,{isOpen:!!R,onClose:()=>Y(null),title:(R==null?void 0:R.label)||"",navDrawerLinks:oe,onBackClick:ke,spotlightCards:Q,hasOnlySpotlightCards:R==null?void 0:R.hasOnlySpotlightCards,navHeight:X,bottomButton:R==null?void 0:R.bottomButton}),t.jsx(Se,{isOpen:he,onClose:()=>K(!1),title:"Search",navHeight:X,navDrawerLinks:ge,onSearch:ve,hasSearch:!0,hasBackButton:!1})]})};exports.BasketButton=it;exports.CategoryLabel=Dt;exports.NavButton=fe;exports.NavSkeleton=Ft;exports.NavbarDrawer=Se;exports.NavbarDrawerLink=Re;exports.NavigationBar=Ht;exports.SpotlightCard=rt;exports.Stepper=Ot;exports.TopNavIconButton=q;exports.TopNavigation=lt;
|
|
32
|
+
<%s key={someKey} {...props} />`,Ie,Z,St,Z),qe[Z+Ie]=!0}}return e===f?wt(T):Ct(T),T}}function jt(e,n,l){return Ke(e,n,l,!0)}function yt(e,n,l){return Ke(e,n,l,!1)}var Et=yt,Rt=jt;de.Fragment=f,de.jsx=Et,de.jsxs=Rt}()),de}process.env.NODE_ENV==="production"?Ae.exports=kt():Ae.exports=Tt();var t=Ae.exports;const Be=60,et=6,Lt=i=>{const{activeStepIndex:o,hideIndicators:x=!1,steps:f,stepperTheme:j={light:"eggplant.light",base:"eggplant.base"}}=i,{activeStep:g,setActiveStep:C}=r.useSteps({index:o,count:f.length});return y.useEffect(()=>{C(o)},[o,C]),t.jsx(r.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(r.Stepper,{role:"progressbar",index:g,width:"100%",display:"flex",flexWrap:"nowrap",children:f.map((R,s)=>{const m=g===s,u=s===0,h=s===f.length-1,E=g>s;let d=`${Be}px`;const D=`calc(100% - ((${Be*(f.length-1)}px) - (${f.length-1} * ${et*2}px)))`;return m?d=D:(u||h)&&(d=`${Be-et}px`),t.jsx(r.Box,{width:d,opacity:E||m?1:.2,paddingRight:h?"0":"6px",paddingLeft:u?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(r.Box,{paddingTop:x?2:5,position:"relative",width:"100%",children:t.jsx(r.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:E?j.light:j.base,height:x?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${s}`)})})})},Ot=y.memo(Lt),Dt=({children:i,...o})=>t.jsx(ne.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...o,children:i}),$e=(i,o)=>{const x=(i==null?void 0:i.startsWith("http"))||(i==null?void 0:i.startsWith("mailto"));return o&&!x?{to:i}:{href:i}},Re=y.forwardRef((i,o)=>{const{label:x,additionalContent:f,mainTextFontSize:j,linkComponent:g,href:C,...R}=i,s=g||r.Link,m=$e(C,!!g);return t.jsxs(r.Box,{ref:o,as:s,display:"flex",alignItems:"center",gap:[null,null,null,1],justifyContent:[null,null,null,"space-between"],paddingY:[3,null,null,0],color:"tints.black",_hover:{color:"viridian.base",textDecoration:"none"},borderBottom:["1px",null,null,"unset"],borderColor:["tints.cream",null,null,"unset"],width:["100%",null,null,"fit-content"],cursor:"pointer",...m,...R,children:[t.jsx(r.Icon,{display:["none",null,null,"block"],as:W.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(r.Flex,{alignItems:"center",gap:"1",width:["100%",null,null,"auto"],children:[t.jsx(r.Text,{fontSize:[j||"xl",null,null,"lg"],fontWeight:"medium",children:x}),f&&(typeof f=="string"?t.jsx(r.Text,{fontSize:["xl",null,null,"lg"],fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:f}):f),t.jsx(r.Icon,{display:["block",null,null,"none"],as:W.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),fe=y.forwardRef((i,o)=>{const{children:x,isSelected:f,...j}=i,g=i.backgroundColor||(f?"tints.lightCream":"transparent");return t.jsx(r.Button,{ref:o,borderRadius:"full",backgroundColor:g,fontSize:"lg !important",fontWeight:"normal",color:"tints.black",_before:{content:'""',position:"absolute",top:[null,null,null,-6],right:[null,null,null,-2],bottom:[null,null,null,-6],left:[null,null,null,-2]},_hover:{backgroundColor:g,textDecoration:"none",filter:"brightness(0.95)"},...j,children:x})}),rt=({title:i,description:o,imageSrc:x,imageElement:f,button:j,backgroundColor:g="viridian.wash",onClick:C,href:R,linkComponent:s})=>{const m="80px",u="200px",h="272px",E=s||r.Link,d=$e(R,!!s);return t.jsxs(r.Flex,{direction:["row",null,null,"column"],alignItems:["center"],borderRadius:"xl",overflow:"hidden",height:[m,null,null,h],backgroundColor:g,onClick:C,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",border:"1px solid",borderColor:"transparent",_hover:{boxShadow:"lg",cursor:"pointer",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:E,...d,children:[t.jsx(r.Box,{width:["72px",null,null,"100%"],height:["100%"],flex:[null,null,null,"1"],children:x?t.jsx(r.Image,{src:x,objectFit:"cover",height:[m,null,null,u],width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(r.Box,{height:[m,null,null,u],overflow:"hidden",children:f})}),t.jsxs(r.Flex,{direction:["column",null,null,"row"],justifyContent:[null,null,null,"space-between"],alignItems:["left",null,null,"center"],padding:"4",height:["100%",null,null,"auto"],width:"100%",position:[null,null,null,"absolute"],bottom:[null,null,null,"0"],backgroundColor:[null,null,null,`${g}CC`],backdropFilter:[null,null,null,"blur(8px)"],children:[t.jsxs(r.Box,{children:[t.jsx(r.Text,{fontSize:"lg",fontWeight:"medium",color:"tints.black",children:i}),t.jsx(r.Text,{fontSize:"sm",color:"tints.black",children:o})]}),t.jsx(r.Box,{display:["none",null,null,"block"],children:j})]})]})},q=i=>t.jsx(r.IconButton,{size:"sm",width:["40px",null,null,"46px"],height:["40px",null,null,"46px"],padding:["2 !important",null,null,"3 !important"],colorScheme:"whiteCS",backgroundColor:"tints.cream",sx:{svg:{width:"24px",height:"24px"}},_hover:{backgroundColor:"tints.cream",filter:"brightness(0.95)"},...i}),Pt=()=>t.jsx("svg",{width:"116",height:"24",viewBox:"0 0 116 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Everlywell Logo",children:t.jsx("g",{id:"Everlywell Logo",children:t.jsx("path",{id:"Everlywell Logo_2",fillRule:"evenodd",clipRule:"evenodd",d:"M54.8224 1V17.8352H52.4272V1H54.8224ZM5.65731 14.992C4.9835 14.4474 4.59261 13.726 4.48231 12.8278H13.7822C13.9984 10.4829 13.5723 8.70006 12.5039 7.47915C11.4322 6.25824 9.93769 5.64945 8.01698 5.64945C6.23518 5.64945 4.78896 6.22479 3.67214 7.38216C2.55841 8.5395 2 9.92767 2 11.8377C2 13.7476 2.56171 15.273 3.68501 16.4136C4.80831 17.5542 6.30612 18.1229 8.18163 18.1229C9.11125 18.1229 10.0216 17.9489 10.9125 17.5944C11.8034 17.2431 12.533 16.7447 13.1075 16.1025L11.5517 14.5371C11.2095 14.9217 10.7253 15.2294 10.099 15.4636C9.46959 15.6944 8.84662 15.8115 8.22684 15.8115C7.18735 15.8115 6.33197 15.5372 5.65731 14.992ZM10.4671 8.60977C11.0772 9.10817 11.416 9.81395 11.4774 10.7305H4.52751C4.71152 9.81395 5.12475 9.10817 5.77027 8.60977C6.41589 8.11136 7.18735 7.86384 8.08473 7.86384C9.05966 7.86384 9.85696 8.11136 10.4671 8.60977ZM22.1465 17.8819L27.0047 5.93699H24.3771L22.6565 10.2486L20.8424 15.2828L18.8217 9.76697L17.2884 5.93699H14.6382L19.5189 17.8819H22.1465ZM30.3737 12.8244C30.4835 13.7242 30.8741 14.4467 31.5487 14.992C32.2234 15.5372 33.0788 15.8115 34.1181 15.8115C34.7379 15.8115 35.361 15.6944 35.9905 15.4636C36.6166 15.2294 37.1009 14.9217 37.4431 14.5371L38.999 16.1025C38.4244 16.7447 37.6948 17.2431 36.8039 17.5944C35.9129 17.9489 35.0027 18.1229 34.0729 18.1229C32.1975 18.1229 30.6997 17.5542 29.5764 16.4136C28.453 15.273 27.8914 13.7476 27.8914 11.8377C27.8914 9.92767 28.4498 8.5395 29.5635 7.38216C30.6804 6.22479 32.1265 5.64945 33.9084 5.64945C35.829 5.64945 37.3236 6.25824 38.3952 7.47915C39.4638 8.70006 39.8899 10.4829 39.6736 12.8278H30.3769L30.3737 12.8244ZM37.3688 10.7305C37.3075 9.81395 36.9685 9.10817 36.3584 8.60977C35.7483 8.11136 34.951 7.86384 33.9762 7.86384C33.0788 7.86384 32.3073 8.11136 31.6617 8.60977C31.0161 9.10817 30.6029 9.81395 30.4189 10.7305H37.3688ZM44.5032 7.5263L44.3418 5.96085H44.3385H42.108V17.8355H44.5032V11.4031C44.5032 10.3595 44.8001 9.5567 45.3877 8.99473C45.9751 8.43278 46.7112 8.15181 47.5956 8.15181C48.3703 8.15181 49.0417 8.39264 49.6163 8.87432L50.7073 6.70677C49.9811 6.03445 49.0353 5.6966 47.8732 5.6966C46.2914 5.6966 45.1681 6.30539 44.5032 7.5263ZM60.3782 12.3193V5.96054H57.983V12.3428C57.983 14.1089 58.4286 15.5004 59.3195 16.5106C60.2104 17.5241 61.3789 18.0292 62.8186 18.0292C64.552 18.0292 65.8787 17.387 66.7923 16.1025V18.1262C66.7923 19.2669 66.4824 20.1499 65.8626 20.7754C65.2429 21.401 64.494 21.7154 63.6094 21.7154C61.8889 21.7154 60.8754 20.9661 60.5654 19.4742H58.2187C58.3252 20.9326 58.8644 22.0532 59.8327 22.8326C60.8011 23.612 62.1214 24 63.6546 24C65.188 24 66.4727 23.5049 67.5121 22.5081C68.5515 21.5147 69.0712 20.0697 69.0712 18.1731V5.96054H66.6761V12.1521C66.6761 13.1623 66.3791 14.0153 65.7819 14.7043C65.188 15.3967 64.4681 15.7412 63.4933 15.7412C62.5184 15.7412 61.7566 15.4268 61.2047 14.8013C60.6526 14.1725 60.3782 13.3463 60.3782 12.3193ZM81.5989 5.93699L84.3427 15.2828L87.1768 5.93699H89.8496L85.8275 17.8819H83.0385L81.6892 13.9315L80.5724 9.79039L79.4328 13.9315L78.0836 17.8819H75.2945L71.2498 5.93699H73.9453L76.7795 15.2828L79.5232 5.93699H81.5924H81.5989ZM94.65 14.992C93.9754 14.4467 93.5848 13.7242 93.475 12.8244L93.4847 12.8278H102.781C102.998 10.4829 102.572 8.70006 101.503 7.47915C100.431 6.25824 98.9368 5.64945 97.0162 5.64945C95.2343 5.64945 93.785 6.22479 92.668 7.38216C91.5544 8.5395 90.9959 9.92767 90.9959 11.8377C90.9959 13.7476 91.5576 15.273 92.6809 16.4136C93.8043 17.5542 95.3021 18.1229 97.1775 18.1229C98.1073 18.1229 99.0175 17.9489 99.9084 17.5944C100.799 17.2431 101.529 16.7447 102.103 16.1025L100.544 14.5371C100.202 14.9217 99.7212 15.2328 99.0918 15.4636C98.4623 15.6944 97.8393 15.8115 97.2196 15.8115C96.1802 15.8115 95.3247 15.5372 94.65 14.992ZM99.4598 8.60977C100.07 9.10817 100.409 9.81395 100.47 10.7305H93.5202C93.7042 9.81395 94.1175 9.10817 94.763 8.60977C95.4086 8.11136 96.1802 7.86384 97.0774 7.86384C98.0524 7.86384 98.8465 8.11136 99.4598 8.60977ZM107.698 1V17.8352H105.303V1H107.698ZM113.53 17.8352V1H111.135V17.8352H113.53Z",fill:"#28724F"})})}),lt=({desktopTopButtons:i,kitRegistrationElement:o,profileElement:x,cartElement:f,onSearchClick:j,onMenuClick:g,hasSearch:C=!1,logoLink:R="https://www.everlywell.com",onHeightChange:s,linkComponent:m,onLogoClick:u})=>{const h=y.useRef(null),[E,d]=y.useState(0),D=100,B=y.useCallback(()=>{if(h.current&&s){const $=Date.now();if($-E>D){const A=h.current.getBoundingClientRect().height;s(A),d($)}}},[s,E]);return y.useEffect(()=>{B();const $=new ResizeObserver(()=>{B()});return h.current&&$.observe(h.current),()=>{$.disconnect()}},[B]),t.jsx(r.Box,{ref:h,paddingY:"4",paddingX:[4,null,null,12],borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",position:"fixed",width:"100%",zIndex:["sticky",null,null,"tooltip"],children:t.jsxs(r.Flex,{justifyContent:"space-between",alignItems:"center",children:[t.jsxs(r.Flex,{alignItems:"center",gap:"5",children:[t.jsx(r.Box,{"aria-label":"Go to homepage",onClick:u,as:m||r.Link,...$e(R,!!m),children:t.jsx(Pt,{})}),t.jsx(r.Flex,{display:["none",null,null,"flex"],children:i})]}),t.jsxs(r.Flex,{alignItems:"center",gap:"2",children:[t.jsx(r.Box,{display:["none",null,null,"block"],children:o}),C?t.jsx(q,{"aria-label":"Search",icon:t.jsx(r.Icon,{as:W.MagnifyingGlass}),onClick:j}):null,f,t.jsx(r.Box,{display:["flex",null,null,"none"],children:t.jsx(q,{icon:t.jsx(W.List,{}),"aria-label":"menu","data-testid":"menu-button",onClick:g})}),t.jsx(r.Box,{display:["none",null,null,"block"],children:x})]})]})})},it=({count:i=0,...o})=>t.jsxs(r.Box,{position:"relative",display:"inline-block",children:[t.jsx(q,{icon:t.jsx(W.Basket,{}),...o}),i>0&&t.jsx(r.Box,{display:"flex",minWidth:"20px",height:"20px",py:"4px",px:"6px",justifyContent:"center",alignItems:"center",position:"absolute",right:"-4px",top:"-4px",borderRadius:"32px",background:"viridian.base",color:"white",fontSize:"xs",fontWeight:"normal",children:i})]}),Ft=({numLinks:i=5,showPromoButton:o=!0})=>t.jsx(r.VStack,{spacing:0,align:"stretch",children:t.jsx(r.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",children:t.jsxs(r.Flex,{justify:"space-between",align:"center",children:[t.jsx(r.Skeleton,{w:"120px",h:"48px"}),t.jsxs(r.HStack,{spacing:8,marginLeft:12,children:[Array.from({length:i}).map((x,f)=>t.jsx(r.Skeleton,{width:"90px",height:"48px"},f)),o&&t.jsx(r.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(r.HStack,{spacing:4,ml:"auto",children:[t.jsx(r.SkeletonCircle,{width:"120px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),It=(i,o)=>{let x;return(...f)=>{x&&clearTimeout(x),x=setTimeout(()=>{i(...f)},o)}},He="nav-drawer-hover",tt=i=>{window.dispatchEvent(new CustomEvent(He,{detail:{isHovering:i},bubbles:!0,cancelable:!0}))},Bt=(i=!1,o=!1,x=!1)=>i||!o?"column":x?"row":"row-reverse",Se=({isOpen:i=!1,onClose:o,title:x,navDrawerLinks:f,bottomNavButtons:j,spotlightCards:g,bottomButton:C,hasBackButton:R=!0,onBackClick:s,hasOnlySpotlightCards:m=!1,navHeight:u,hasSearch:h=!1,onSearch:E=()=>{}})=>{const d=ne.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0}),D=d?"top":"left",[B,$]=y.useState(0),A=()=>{$(V=>V+1)},k=y.useCallback(It(V=>{E(V),A()},100),[]);return t.jsxs(r.Drawer,{isOpen:i,onClose:o,placement:D,blockScrollOnMount:!1,autoFocus:!1,children:[t.jsx(r.DrawerOverlay,{backgroundColor:"tints.black",top:["0",null,null,u?`${u}px`:null],opacity:d?void 0:"0.4 !important",motionProps:d?{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.4,delay:.2,ease:"easeOut"}}:{}}),t.jsxs(r.DrawerContent,{onMouseEnter:()=>{!h&&d&&tt(!0)},onMouseLeave:()=>{!h&&d&&tt(!1)},paddingTop:[4,null,null,u?`${u+24}px`:null],paddingX:[4,null,null,12],paddingBottom:"24",overflow:"auto",maxHeight:"100vh",position:"relative",children:[!h&&d?null:t.jsxs(r.DrawerHeader,{padding:"0",flexDirection:h?"column":"row",gap:h?"4":"0",children:[d?null:t.jsxs(r.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[R?t.jsx(q,{icon:t.jsx(W.CaretLeft,{}),onClick:()=>{s&&s(),o()},"aria-label":"Back"}):null,t.jsx(r.Text,{color:"tints.uiGrey",fontSize:["xl",null,null,"lg"],children:x}),t.jsx(q,{icon:t.jsx(W.X,{}),onClick:o,"aria-label":"Close"})]}),h&&t.jsxs(ne.InputGroup,{width:"100%",children:[t.jsx(ne.Input,{onChange:V=>{k(V.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(ne.InputRightElement,{pointerEvents:"none",children:t.jsx(ne.Icon,{as:W.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(r.DrawerBody,{paddingX:"0",paddingBottom:[6,null,null,4],"data-testid":`navbar-drawer-body-${x.toLowerCase()}`,children:t.jsx(Xe.motion.div,{...d?{initial:{opacity:0,y:0},animate:{opacity:1,y:0},exit:{opacity:0,y:0},transition:{duration:.3,ease:[.4,0,.2,1],exit:{duration:.3,ease:[.4,0,.2,1]}}}:{},children:t.jsxs(Xe.motion.div,{...d?{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:Bt(m,d,h),gap:"24px",justifyContent:"space-between"},children:[g?t.jsx(r.Box,{gap:"6",display:"flex",justifyContent:[null,null,null,"center"],sx:{"& > *":{width:["100%",null,null,"365px","432px"]},flexWrap:"wrap",flexDirection:["column",null,null,"row"]},children:g}):null,t.jsxs(r.Flex,{position:[null,null,null,"relative"],flexDirection:"column",gap:"6",width:["100%",null,null,"auto"],children:[f?t.jsx(r.Box,{children:f}):null,j&&!d?t.jsx(r.Box,{children:j}):null,C?t.jsx(r.Box,{width:["100%"],position:[null,null,null,"absolute"],bottom:[null,null,null,0],children:C}):null]})]},B)})})]})]})},nt=i=>{const o=new Set;return i.reduce((x,f)=>{var g;const j=((g=f.sections)==null?void 0:g.reduce((C,R)=>{const s=R.links.filter(m=>o.has(m.label)||m.isSearchable!==!0?!1:(o.add(m.label),!0));return[...C,...s]},[]))??[];return[...x,...j]},[])},At=({source:i,onSearchCallback:o,isActive:x})=>{const[f,j]=y.useState(""),[g,C]=y.useState([]),R=(u,h)=>{if(!u)return[];const E=u.toLowerCase();return h.filter(d=>{const D=d.label.toLowerCase().includes(E),B=typeof d.additionalContent=="string"&&d.additionalContent.toLowerCase().includes(E);return D||B}).sort((d,D)=>d.label.localeCompare(D.label))},s=u=>{if(j(u),!u){C([]);return}const h=R(u,i);C(h),o&&o(u,h)},m=()=>{j(""),C([])};return y.useEffect(()=>{x||(j(""),C([]))},[x]),{query:f,results:g,handleClose:m,handleSearch:s}},Ht=({categories:i=[],onCartClick:o,mainCategoryLabel:x="Menu",logoLink:f="https://www.everlywell.com",hasSearch:j=!0,onSearchClick:g,registrationUrl:C,profileUrl:R="https://secure.everlywell.com/login",mobileBottomButtons:s=[],numberOfCartItems:m=0,linkComponent:u,onSearchCallback:h,onLinkClick:E,onCategoryOpen:d,onMobileMenuOpen:D,onBackToMainMenu:B,onRegisterKitClick:$,onProfileClick:A,onLogoClick:k})=>{var je,se,ye;const[V,pe]=y.useState(!1),[he,K]=y.useState(!1),[S,Y]=y.useState(null),[X,_e]=y.useState(0),[xe,re]=y.useState(!1),[H,z]=y.useState(!1),{query:U,results:G,handleSearch:ve}=At({source:nt(i),onSearchCallback:h,isActive:he}),ge=U&&t.jsxs(r.Flex,{gap:"6",direction:"column",children:[G.length>0?t.jsx(r.Text,{color:"tints.uiGrey",children:`${G.length} Results`}):t.jsx(r.Text,{children:"We didn't find what you were looking for, click to shop all products."}),t.jsx(r.Flex,{gap:"6",flexDirection:["column",null,null,"row"],justifyContent:[null,null,null,"flex-start"],children:Array.from({length:Math.ceil(G.length/4)},(c,O)=>t.jsx(r.Flex,{direction:"column",gap:"6",children:G.slice(O*4,(O+1)*4).map((L,P)=>t.jsx(Re,{href:L.href,label:L.label,additionalContent:L==null?void 0:L.additionalContent,linkComponent:u},`${L.label}-${P}`))},O))})]}),be=y.useCallback(c=>{_e(c)},[]),le=()=>{pe(!1),Y(null)},me=c=>{Y(c)},Ce=c=>{re(!0),K(!1),(c.sections||c.spotlightCards)&&Y(c)},we=()=>{re(!1)};y.useEffect(()=>{const c=O=>{z(O.detail.isHovering)};return window.addEventListener(He,c),()=>{window.removeEventListener(He,c)}},[]),y.useEffect(()=>{!xe&&!H&&(Y(null),K(!1))},[xe,H]),y.useEffect(()=>{let c=window.location.href;const O=()=>{const P=window.location.href;P!==c&&(c=P,le(),Y(null))},L=setInterval(O,100);return window.addEventListener("popstate",O),()=>{window.removeEventListener("popstate",O),clearInterval(L)}},[]);const ke=()=>{Y(null),B==null||B()},Te=t.jsx(t.Fragment,{children:i==null?void 0:i.map((c,O)=>t.jsx(fe,{onMouseEnter:()=>{Ce(c),d==null||d(c.label)},onMouseLeave:we,isSelected:(S==null?void 0:S.label)===c.label,...c.buttonProps,children:c.label},`${c.label}-${O}`))}),ie=(je=i.filter(c=>c.isMobileTopLink!==!1))==null?void 0:je.map(c=>t.jsx(r.Box,{onClick:()=>{me(c),d==null||d(c.label)},children:t.jsx(Re,{label:c.label,role:"link",additionalContent:c.additionalContent,mainTextFontSize:"3xl",linkComponent:u})},c.label));nt(i);const ae=t.jsxs(t.Fragment,{children:[t.jsx(fe,{as:r.Link,href:R,width:"100%",backgroundColor:"tints.cream",onClick:A,children:t.jsxs(r.Flex,{gap:"2",children:["My Everly",t.jsx(r.Icon,{as:W.User,size:24})]})},"my-everly"),t.jsx(fe,{as:r.Link,width:"100%",href:C,backgroundColor:"tints.cream",onClick:$,children:t.jsxs(r.Flex,{gap:"2",children:["Register kit",t.jsx(r.Icon,{as:W.QrCode,size:24})]})},"register-kit")]}),J=t.jsxs(r.Flex,{gap:"2",flexDirection:"column",children:[s,ae]}),oe=S?t.jsx(r.Flex,{direction:["column",null,null,"row"],gap:"8",children:(se=S==null?void 0:S.sections)==null?void 0:se.map((c,O)=>{const L=[];for(let P=0;P<c.links.length;P+=3)L.push(c.links.slice(P,P+3));return t.jsxs(r.Box,{children:[t.jsx(r.Text,{fontSize:"md",color:"tints.uiGrey",marginBottom:[0,null,null,6],children:c.title}),t.jsx(r.Flex,{flexDirection:["column",null,null,"row"],gap:[null,null,null,8],children:L==null?void 0:L.map((P,Ee)=>t.jsx(r.Flex,{flexDirection:["column"],gap:[null,null,null,5],marginLeft:[null,null,null,-2],children:P==null?void 0:P.map(N=>t.jsx(Re,{label:N.label,href:N.href,additionalContent:N.additionalContent,linkComponent:u,onClick:()=>E==null?void 0:E(N.label)},N.label))},Ee))})]},`${c.title}-${O}`)})}):null,Q=S!=null&&S.spotlightCards?(ye=S.spotlightCards)==null?void 0:ye.map(c=>t.jsx(rt,{...c},c.title)):t.jsx(r.Box,{});return t.jsxs(t.Fragment,{children:[t.jsx(lt,{desktopTopButtons:Te,kitRegistrationElement:t.jsx(fe,{as:r.Link,href:C,onClick:$,backgroundColor:"tints.cream",children:"Register Kit"}),profileElement:t.jsx(r.Link,{href:R,"aria-label":"login",onClick:A,children:t.jsx(q,{icon:t.jsx(r.Icon,{as:W.User}),"aria-label":"Profile"})}),cartElement:t.jsx(it,{"aria-label":"Cart",count:m,onClick:o}),onSearchClick:()=>{K(!0),g==null||g()},onMenuClick:()=>{pe(!0),D==null||D()},hasSearch:j,logoLink:f,onHeightChange:be,linkComponent:u,onLogoClick:k}),t.jsx(Se,{isOpen:V,onClose:le,title:x,navDrawerLinks:ie,bottomNavButtons:J,hasBackButton:!1,navHeight:X}),t.jsx(Se,{isOpen:!!S,onClose:()=>Y(null),title:(S==null?void 0:S.label)||"",navDrawerLinks:oe,onBackClick:ke,spotlightCards:Q,hasOnlySpotlightCards:S==null?void 0:S.hasOnlySpotlightCards,navHeight:X,bottomButton:S==null?void 0:S.bottomButton}),t.jsx(Se,{isOpen:he,onClose:()=>K(!1),title:"Search",navHeight:X,navDrawerLinks:ge,onSearch:ve,hasSearch:!0,hasBackButton:!1})]})};exports.BasketButton=it;exports.CategoryLabel=Dt;exports.NavButton=fe;exports.NavSkeleton=Ft;exports.NavbarDrawer=Se;exports.NavbarDrawerLink=Re;exports.NavigationBar=Ht;exports.SpotlightCard=rt;exports.Stepper=Ot;exports.TopNavIconButton=q;exports.TopNavigation=lt;
|
package/index.mjs
CHANGED
|
@@ -18,16 +18,16 @@ function on() {
|
|
|
18
18
|
if (st)
|
|
19
19
|
return pe;
|
|
20
20
|
st = 1;
|
|
21
|
-
var l = Ye, a = Symbol.for("react.element"), h = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty,
|
|
22
|
-
function m(
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
for (
|
|
26
|
-
d.call(
|
|
27
|
-
if (
|
|
28
|
-
for (
|
|
29
|
-
p[
|
|
30
|
-
return { $$typeof: a, type:
|
|
21
|
+
var l = Ye, a = Symbol.for("react.element"), h = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, j = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function m(E, o, b) {
|
|
23
|
+
var s, p = {}, w = null, c = null;
|
|
24
|
+
b !== void 0 && (w = "" + b), o.key !== void 0 && (w = "" + o.key), o.ref !== void 0 && (c = o.ref);
|
|
25
|
+
for (s in o)
|
|
26
|
+
d.call(o, s) && !x.hasOwnProperty(s) && (p[s] = o[s]);
|
|
27
|
+
if (E && E.defaultProps)
|
|
28
|
+
for (s in o = E.defaultProps, o)
|
|
29
|
+
p[s] === void 0 && (p[s] = o[s]);
|
|
30
|
+
return { $$typeof: a, type: E, key: w, ref: c, props: p, _owner: j.current };
|
|
31
31
|
}
|
|
32
32
|
return pe.Fragment = h, pe.jsx = m, pe.jsxs = m, pe;
|
|
33
33
|
}
|
|
@@ -44,7 +44,7 @@ var he = {};
|
|
|
44
44
|
var ut;
|
|
45
45
|
function sn() {
|
|
46
46
|
return ut || (ut = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
var l = Ye, a = Symbol.for("react.element"), h = Symbol.for("react.portal"), d = Symbol.for("react.fragment"),
|
|
47
|
+
var l = Ye, a = Symbol.for("react.element"), h = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), E = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), c = Symbol.for("react.offscreen"), P = Symbol.iterator, A = "@@iterator";
|
|
48
48
|
function W(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
@@ -61,18 +61,18 @@ function sn() {
|
|
|
61
61
|
}
|
|
62
62
|
function N(e, n, r) {
|
|
63
63
|
{
|
|
64
|
-
var i = H.ReactDebugCurrentFrame,
|
|
65
|
-
|
|
64
|
+
var i = H.ReactDebugCurrentFrame, g = i.getStackAddendum();
|
|
65
|
+
g !== "" && (n += "%s", r = r.concat([g]));
|
|
66
66
|
var C = r.map(function(v) {
|
|
67
67
|
return String(v);
|
|
68
68
|
});
|
|
69
69
|
C.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, C);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var ve = !1, xe = !1, J = !1,
|
|
72
|
+
var ve = !1, xe = !1, J = !1, R = !1, Y = !1, q;
|
|
73
73
|
q = Symbol.for("react.module.reference");
|
|
74
74
|
function ke(e) {
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e ===
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === x || Y || e === j || e === b || e === s || R || e === c || ve || xe || J || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === p || e.$$typeof === m || e.$$typeof === E || e.$$typeof === o || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
@@ -82,8 +82,8 @@ function sn() {
|
|
|
82
82
|
var i = e.displayName;
|
|
83
83
|
if (i)
|
|
84
84
|
return i;
|
|
85
|
-
var
|
|
86
|
-
return
|
|
85
|
+
var g = n.displayName || n.name || "";
|
|
86
|
+
return g !== "" ? r + "(" + g + ")" : r;
|
|
87
87
|
}
|
|
88
88
|
function ae(e) {
|
|
89
89
|
return e.displayName || "Context";
|
|
@@ -100,30 +100,30 @@ function sn() {
|
|
|
100
100
|
return "Fragment";
|
|
101
101
|
case h:
|
|
102
102
|
return "Portal";
|
|
103
|
-
case
|
|
103
|
+
case x:
|
|
104
104
|
return "Profiler";
|
|
105
|
-
case b:
|
|
106
|
-
return "StrictMode";
|
|
107
105
|
case j:
|
|
106
|
+
return "StrictMode";
|
|
107
|
+
case b:
|
|
108
108
|
return "Suspense";
|
|
109
|
-
case
|
|
109
|
+
case s:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof e == "object")
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
|
-
case
|
|
114
|
+
case E:
|
|
115
115
|
var n = e;
|
|
116
116
|
return ae(n) + ".Consumer";
|
|
117
117
|
case m:
|
|
118
118
|
var r = e;
|
|
119
119
|
return ae(r._context) + ".Provider";
|
|
120
|
-
case
|
|
120
|
+
case o:
|
|
121
121
|
return ge(e, e.render, "ForwardRef");
|
|
122
122
|
case p:
|
|
123
123
|
var i = e.displayName || null;
|
|
124
124
|
return i !== null ? i : $(e.type) || "Memo";
|
|
125
125
|
case w: {
|
|
126
|
-
var
|
|
126
|
+
var g = e, C = g._payload, v = g._init;
|
|
127
127
|
try {
|
|
128
128
|
return $(v(C));
|
|
129
129
|
} catch {
|
|
@@ -201,8 +201,8 @@ function sn() {
|
|
|
201
201
|
if (ue === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
|
-
} catch (
|
|
205
|
-
var i =
|
|
204
|
+
} catch (g) {
|
|
205
|
+
var i = g.stack.trim().match(/\n( *(at )?)/);
|
|
206
206
|
ue = i && i[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
@@ -224,7 +224,7 @@ function sn() {
|
|
|
224
224
|
}
|
|
225
225
|
var i;
|
|
226
226
|
ce = !0;
|
|
227
|
-
var
|
|
227
|
+
var g = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
229
|
var C;
|
|
230
230
|
C = se.current, se.current = null, Le();
|
|
@@ -280,7 +280,7 @@ function sn() {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
ce = !1, se.current = C, Oe(), Error.prepareStackTrace =
|
|
283
|
+
ce = !1, se.current = C, Oe(), Error.prepareStackTrace = g;
|
|
284
284
|
}
|
|
285
285
|
var ne = e ? e.displayName || e.name : "", K = ne ? Q(ne) : "";
|
|
286
286
|
return typeof e == "function" && ee.set(e, K), K;
|
|
@@ -288,7 +288,7 @@ function sn() {
|
|
|
288
288
|
function Re(e, n, r) {
|
|
289
289
|
return de(e, !1);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function u(e) {
|
|
292
292
|
var n = e.prototype;
|
|
293
293
|
return !!(n && n.isReactComponent);
|
|
294
294
|
}
|
|
@@ -296,25 +296,25 @@ function sn() {
|
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return de(e,
|
|
299
|
+
return de(e, u(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
301
|
return Q(e);
|
|
302
302
|
switch (e) {
|
|
303
|
-
case
|
|
303
|
+
case b:
|
|
304
304
|
return Q("Suspense");
|
|
305
|
-
case
|
|
305
|
+
case s:
|
|
306
306
|
return Q("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
|
-
case
|
|
310
|
+
case o:
|
|
311
311
|
return Re(e.render);
|
|
312
312
|
case p:
|
|
313
313
|
return O(e.type, n, r);
|
|
314
314
|
case w: {
|
|
315
|
-
var i = e,
|
|
315
|
+
var i = e, g = i._payload, C = i._init;
|
|
316
316
|
try {
|
|
317
|
-
return O(C(
|
|
317
|
+
return O(C(g), n, r);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
@@ -329,7 +329,7 @@ function sn() {
|
|
|
329
329
|
} else
|
|
330
330
|
_e.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function vt(e, n, r, i,
|
|
332
|
+
function vt(e, n, r, i, g) {
|
|
333
333
|
{
|
|
334
334
|
var C = Function.call.bind(k);
|
|
335
335
|
for (var v in e)
|
|
@@ -344,7 +344,7 @@ function sn() {
|
|
|
344
344
|
} catch (_) {
|
|
345
345
|
f = _;
|
|
346
346
|
}
|
|
347
|
-
f && !(f instanceof Error) && (B(
|
|
347
|
+
f && !(f instanceof Error) && (B(g), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", r, v, typeof f), B(null)), f instanceof Error && !(f.message in D) && (D[f.message] = !0, B(g), S("Failed %s type: %s", r, f.message), B(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -423,7 +423,7 @@ function sn() {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
var Rt = function(e, n, r, i,
|
|
426
|
+
var Rt = function(e, n, r, i, g, C, v) {
|
|
427
427
|
var f = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
429
|
$$typeof: a,
|
|
@@ -449,13 +449,13 @@ function sn() {
|
|
|
449
449
|
configurable: !1,
|
|
450
450
|
enumerable: !1,
|
|
451
451
|
writable: !1,
|
|
452
|
-
value:
|
|
452
|
+
value: g
|
|
453
453
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
454
454
|
};
|
|
455
|
-
function _t(e, n, r, i,
|
|
455
|
+
function _t(e, n, r, i, g) {
|
|
456
456
|
{
|
|
457
457
|
var C, v = {}, f = null, I = null;
|
|
458
|
-
r !== void 0 && (Ze(r), f = "" + r), jt(n) && (Ze(n.key), f = "" + n.key), Ct(n) && (I = n.ref, wt(n,
|
|
458
|
+
r !== void 0 && (Ze(r), f = "" + r), jt(n) && (Ze(n.key), f = "" + n.key), Ct(n) && (I = n.ref, wt(n, g));
|
|
459
459
|
for (C in n)
|
|
460
460
|
k.call(n, C) && !mt.hasOwnProperty(C) && (v[C] = n[C]);
|
|
461
461
|
if (e && e.defaultProps) {
|
|
@@ -467,7 +467,7 @@ function sn() {
|
|
|
467
467
|
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
468
|
f && yt(v, T), I && Et(v, T);
|
|
469
469
|
}
|
|
470
|
-
return Rt(e, f, I,
|
|
470
|
+
return Rt(e, f, I, g, i, fe.current, v);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
var Ie = H.ReactCurrentOwner, Je = H.ReactDebugCurrentFrame;
|
|
@@ -544,9 +544,9 @@ Check the top-level render call using <` + r + ">.");
|
|
|
544
544
|
else if (Ae(e))
|
|
545
545
|
e._store && (e._store.validated = !0);
|
|
546
546
|
else if (e) {
|
|
547
|
-
var
|
|
548
|
-
if (typeof
|
|
549
|
-
for (var C =
|
|
547
|
+
var g = W(e);
|
|
548
|
+
if (typeof g == "function" && g !== e.entries)
|
|
549
|
+
for (var C = g.call(e), v; !(v = C.next()).done; )
|
|
550
550
|
Ae(v.value) && et(v.value, n);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
@@ -559,7 +559,7 @@ Check the top-level render call using <` + r + ">.");
|
|
|
559
559
|
var r;
|
|
560
560
|
if (typeof n == "function")
|
|
561
561
|
r = n.propTypes;
|
|
562
|
-
else if (typeof n == "object" && (n.$$typeof ===
|
|
562
|
+
else if (typeof n == "object" && (n.$$typeof === o || // Note: Memo only checks outer props here.
|
|
563
563
|
// Inner props are checked in the reconciler.
|
|
564
564
|
n.$$typeof === p))
|
|
565
565
|
r = n.propTypes;
|
|
@@ -570,8 +570,8 @@ Check the top-level render call using <` + r + ">.");
|
|
|
570
570
|
vt(r, e.props, "prop", i, e);
|
|
571
571
|
} else if (n.PropTypes !== void 0 && !Fe) {
|
|
572
572
|
Fe = !0;
|
|
573
|
-
var
|
|
574
|
-
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
573
|
+
var g = $(n);
|
|
574
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
|
|
575
575
|
}
|
|
576
576
|
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
577
577
|
}
|
|
@@ -589,18 +589,18 @@ Check the top-level render call using <` + r + ">.");
|
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
var nt = {};
|
|
592
|
-
function rt(e, n, r, i,
|
|
592
|
+
function rt(e, n, r, i, g, C) {
|
|
593
593
|
{
|
|
594
594
|
var v = ke(e);
|
|
595
595
|
if (!v) {
|
|
596
596
|
var f = "";
|
|
597
597
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
598
|
-
var I = St(
|
|
598
|
+
var I = St(g);
|
|
599
599
|
I ? f += I : f += qe();
|
|
600
600
|
var _;
|
|
601
601
|
e === null ? _ = "null" : Pe(e) ? _ = "array" : e !== void 0 && e.$$typeof === a ? (_ = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, f);
|
|
602
602
|
}
|
|
603
|
-
var T = _t(e, n, r,
|
|
603
|
+
var T = _t(e, n, r, g, C);
|
|
604
604
|
if (T == null)
|
|
605
605
|
return T;
|
|
606
606
|
if (v) {
|
|
@@ -650,11 +650,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
650
650
|
activeStepIndex: a,
|
|
651
651
|
hideIndicators: h = !1,
|
|
652
652
|
steps: d,
|
|
653
|
-
stepperTheme:
|
|
653
|
+
stepperTheme: j = {
|
|
654
654
|
light: "eggplant.light",
|
|
655
655
|
base: "eggplant.base"
|
|
656
656
|
}
|
|
657
|
-
} = l, { activeStep:
|
|
657
|
+
} = l, { activeStep: x, setActiveStep: m } = Ht({
|
|
658
658
|
index: a,
|
|
659
659
|
count: d.length
|
|
660
660
|
});
|
|
@@ -666,21 +666,21 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
666
666
|
$t,
|
|
667
667
|
{
|
|
668
668
|
role: "progressbar",
|
|
669
|
-
index:
|
|
669
|
+
index: x,
|
|
670
670
|
width: "100%",
|
|
671
671
|
display: "flex",
|
|
672
672
|
flexWrap: "nowrap",
|
|
673
|
-
children: d.map((
|
|
674
|
-
const
|
|
673
|
+
children: d.map((E, o) => {
|
|
674
|
+
const b = x === o, s = o === 0, p = o === d.length - 1, w = x > o;
|
|
675
675
|
let c = `${We}px`;
|
|
676
676
|
const P = `calc(100% - ((${We * (d.length - 1)}px) - (${d.length - 1} * ${ct * 2}px)))`;
|
|
677
|
-
return
|
|
677
|
+
return b ? c = P : (s || p) && (c = `${We - ct}px`), /* @__PURE__ */ t.jsx(
|
|
678
678
|
y,
|
|
679
679
|
{
|
|
680
680
|
width: c,
|
|
681
|
-
opacity: w ||
|
|
681
|
+
opacity: w || b ? 1 : 0.2,
|
|
682
682
|
paddingRight: p ? "0" : "6px",
|
|
683
|
-
paddingLeft:
|
|
683
|
+
paddingLeft: s ? "0" : "6px",
|
|
684
684
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
685
685
|
children: /* @__PURE__ */ t.jsx(
|
|
686
686
|
y,
|
|
@@ -694,7 +694,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
694
694
|
width: "100%",
|
|
695
695
|
position: "absolute",
|
|
696
696
|
top: "0",
|
|
697
|
-
backgroundColor: w ?
|
|
697
|
+
backgroundColor: w ? j.light : j.base,
|
|
698
698
|
height: h ? "4px" : "8px",
|
|
699
699
|
borderRadius: "4",
|
|
700
700
|
left: "0"
|
|
@@ -703,7 +703,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
703
703
|
}
|
|
704
704
|
)
|
|
705
705
|
},
|
|
706
|
-
`step-${
|
|
706
|
+
`step-${o}`
|
|
707
707
|
);
|
|
708
708
|
})
|
|
709
709
|
}
|
|
@@ -727,16 +727,16 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
727
727
|
const {
|
|
728
728
|
label: h,
|
|
729
729
|
additionalContent: d,
|
|
730
|
-
mainTextFontSize:
|
|
731
|
-
linkComponent:
|
|
730
|
+
mainTextFontSize: j,
|
|
731
|
+
linkComponent: x,
|
|
732
732
|
href: m,
|
|
733
|
-
...
|
|
734
|
-
} = l,
|
|
733
|
+
...E
|
|
734
|
+
} = l, o = x || X, b = Ue(m, !!x);
|
|
735
735
|
return /* @__PURE__ */ t.jsxs(
|
|
736
736
|
y,
|
|
737
737
|
{
|
|
738
738
|
ref: a,
|
|
739
|
-
as:
|
|
739
|
+
as: o,
|
|
740
740
|
display: "flex",
|
|
741
741
|
alignItems: "center",
|
|
742
742
|
gap: [null, null, null, 1],
|
|
@@ -748,8 +748,8 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
748
748
|
borderColor: ["tints.cream", null, null, "unset"],
|
|
749
749
|
width: ["100%", null, null, "fit-content"],
|
|
750
750
|
cursor: "pointer",
|
|
751
|
-
...
|
|
752
|
-
...
|
|
751
|
+
...b,
|
|
752
|
+
...E,
|
|
753
753
|
children: [
|
|
754
754
|
/* @__PURE__ */ t.jsx(
|
|
755
755
|
re,
|
|
@@ -769,7 +769,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
769
769
|
/* @__PURE__ */ t.jsx(
|
|
770
770
|
U,
|
|
771
771
|
{
|
|
772
|
-
fontSize: [
|
|
772
|
+
fontSize: [j || "xl", null, null, "lg"],
|
|
773
773
|
fontWeight: "medium",
|
|
774
774
|
children: h
|
|
775
775
|
}
|
|
@@ -808,13 +808,13 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
808
808
|
}
|
|
809
809
|
), Te = pt(
|
|
810
810
|
(l, a) => {
|
|
811
|
-
const { children: h, isSelected: d, ...
|
|
811
|
+
const { children: h, isSelected: d, ...j } = l, x = l.backgroundColor || (d ? "tints.lightCream" : "transparent");
|
|
812
812
|
return /* @__PURE__ */ t.jsx(
|
|
813
813
|
Wt,
|
|
814
814
|
{
|
|
815
815
|
ref: a,
|
|
816
816
|
borderRadius: "full",
|
|
817
|
-
backgroundColor:
|
|
817
|
+
backgroundColor: x,
|
|
818
818
|
fontSize: "lg !important",
|
|
819
819
|
fontWeight: "normal",
|
|
820
820
|
color: "tints.black",
|
|
@@ -827,11 +827,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
827
827
|
left: [null, null, null, -2]
|
|
828
828
|
},
|
|
829
829
|
_hover: {
|
|
830
|
-
backgroundColor:
|
|
830
|
+
backgroundColor: x,
|
|
831
831
|
textDecoration: "none",
|
|
832
832
|
filter: "brightness(0.95)"
|
|
833
833
|
},
|
|
834
|
-
...
|
|
834
|
+
...j,
|
|
835
835
|
children: h
|
|
836
836
|
}
|
|
837
837
|
);
|
|
@@ -841,13 +841,13 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
841
841
|
description: a,
|
|
842
842
|
imageSrc: h,
|
|
843
843
|
imageElement: d,
|
|
844
|
-
button:
|
|
845
|
-
backgroundColor:
|
|
844
|
+
button: j,
|
|
845
|
+
backgroundColor: x = "viridian.wash",
|
|
846
846
|
onClick: m,
|
|
847
|
-
href:
|
|
848
|
-
linkComponent:
|
|
847
|
+
href: E,
|
|
848
|
+
linkComponent: o
|
|
849
849
|
}) => {
|
|
850
|
-
const
|
|
850
|
+
const b = "80px", s = "200px", p = "272px", w = o || X, c = Ue(E, !!o);
|
|
851
851
|
return /* @__PURE__ */ t.jsxs(
|
|
852
852
|
L,
|
|
853
853
|
{
|
|
@@ -855,8 +855,8 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
855
855
|
alignItems: ["center"],
|
|
856
856
|
borderRadius: "xl",
|
|
857
857
|
overflow: "hidden",
|
|
858
|
-
height: [
|
|
859
|
-
backgroundColor:
|
|
858
|
+
height: [b, null, null, p],
|
|
859
|
+
backgroundColor: x,
|
|
860
860
|
onClick: m,
|
|
861
861
|
"data-testid": "spotlight-card",
|
|
862
862
|
position: "relative",
|
|
@@ -884,7 +884,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
884
884
|
{
|
|
885
885
|
src: h,
|
|
886
886
|
objectFit: "cover",
|
|
887
|
-
height: [
|
|
887
|
+
height: [b, null, null, s],
|
|
888
888
|
width: "100%",
|
|
889
889
|
alt: "",
|
|
890
890
|
"data-testid": "spotlight-card-image"
|
|
@@ -892,7 +892,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
892
892
|
) : /* @__PURE__ */ t.jsx(
|
|
893
893
|
y,
|
|
894
894
|
{
|
|
895
|
-
height: [
|
|
895
|
+
height: [b, null, null, s],
|
|
896
896
|
overflow: "hidden",
|
|
897
897
|
children: d
|
|
898
898
|
}
|
|
@@ -910,7 +910,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
910
910
|
width: "100%",
|
|
911
911
|
position: [null, null, null, "absolute"],
|
|
912
912
|
bottom: [null, null, null, "0"],
|
|
913
|
-
backgroundColor: [null, null, null, `${
|
|
913
|
+
backgroundColor: [null, null, null, `${x}CC`],
|
|
914
914
|
backdropFilter: [null, null, null, "blur(8px)"],
|
|
915
915
|
children: [
|
|
916
916
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -926,7 +926,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
926
926
|
)
|
|
927
927
|
] }
|
|
928
928
|
),
|
|
929
|
-
/* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children:
|
|
929
|
+
/* @__PURE__ */ t.jsx(y, { display: ["none", null, null, "block"], children: j })
|
|
930
930
|
]
|
|
931
931
|
}
|
|
932
932
|
)
|
|
@@ -983,23 +983,23 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
983
983
|
kitRegistrationElement: a,
|
|
984
984
|
profileElement: h,
|
|
985
985
|
cartElement: d,
|
|
986
|
-
onSearchClick:
|
|
987
|
-
onMenuClick:
|
|
986
|
+
onSearchClick: j,
|
|
987
|
+
onMenuClick: x,
|
|
988
988
|
hasSearch: m = !1,
|
|
989
|
-
logoLink:
|
|
990
|
-
onHeightChange:
|
|
991
|
-
linkComponent:
|
|
992
|
-
onLogoClick:
|
|
989
|
+
logoLink: E = "https://www.everlywell.com",
|
|
990
|
+
onHeightChange: o,
|
|
991
|
+
linkComponent: b,
|
|
992
|
+
onLogoClick: s
|
|
993
993
|
}) => {
|
|
994
994
|
const p = Zt(null), [w, c] = V(0), P = 100, A = ze(() => {
|
|
995
|
-
if (p.current &&
|
|
995
|
+
if (p.current && o) {
|
|
996
996
|
const W = Date.now();
|
|
997
997
|
if (W - w > P) {
|
|
998
998
|
const H = p.current.getBoundingClientRect().height;
|
|
999
|
-
|
|
999
|
+
o(H), c(W);
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
|
-
}, [
|
|
1002
|
+
}, [o, w]);
|
|
1003
1003
|
return le(() => {
|
|
1004
1004
|
A();
|
|
1005
1005
|
const W = new ResizeObserver(() => {
|
|
@@ -1030,9 +1030,9 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1030
1030
|
y,
|
|
1031
1031
|
{
|
|
1032
1032
|
"aria-label": "Go to homepage",
|
|
1033
|
-
onClick:
|
|
1034
|
-
as:
|
|
1035
|
-
...Ue(
|
|
1033
|
+
onClick: s,
|
|
1034
|
+
as: b || X,
|
|
1035
|
+
...Ue(E, !!b),
|
|
1036
1036
|
children: /* @__PURE__ */ t.jsx(dn, {})
|
|
1037
1037
|
}
|
|
1038
1038
|
),
|
|
@@ -1054,7 +1054,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1054
1054
|
{
|
|
1055
1055
|
"aria-label": "Search",
|
|
1056
1056
|
icon: /* @__PURE__ */ t.jsx(re, { as: ht }),
|
|
1057
|
-
onClick:
|
|
1057
|
+
onClick: j
|
|
1058
1058
|
}
|
|
1059
1059
|
) : null,
|
|
1060
1060
|
d,
|
|
@@ -1066,7 +1066,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1066
1066
|
icon: /* @__PURE__ */ t.jsx(tn, {}),
|
|
1067
1067
|
"aria-label": "menu",
|
|
1068
1068
|
"data-testid": "menu-button",
|
|
1069
|
-
onClick:
|
|
1069
|
+
onClick: x
|
|
1070
1070
|
}
|
|
1071
1071
|
) }
|
|
1072
1072
|
),
|
|
@@ -1162,13 +1162,13 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1162
1162
|
onClose: a,
|
|
1163
1163
|
title: h,
|
|
1164
1164
|
navDrawerLinks: d,
|
|
1165
|
-
bottomNavButtons:
|
|
1166
|
-
spotlightCards:
|
|
1165
|
+
bottomNavButtons: j,
|
|
1166
|
+
spotlightCards: x,
|
|
1167
1167
|
bottomButton: m,
|
|
1168
|
-
hasBackButton:
|
|
1169
|
-
onBackClick:
|
|
1170
|
-
hasOnlySpotlightCards:
|
|
1171
|
-
navHeight:
|
|
1168
|
+
hasBackButton: E = !0,
|
|
1169
|
+
onBackClick: o,
|
|
1170
|
+
hasOnlySpotlightCards: b = !1,
|
|
1171
|
+
navHeight: s,
|
|
1172
1172
|
hasSearch: p = !1,
|
|
1173
1173
|
onSearch: w = () => {
|
|
1174
1174
|
}
|
|
@@ -1199,7 +1199,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1199
1199
|
Yt,
|
|
1200
1200
|
{
|
|
1201
1201
|
backgroundColor: "tints.black",
|
|
1202
|
-
top: ["0", null, null,
|
|
1202
|
+
top: ["0", null, null, s ? `${s}px` : null],
|
|
1203
1203
|
opacity: c ? void 0 : "0.4 !important",
|
|
1204
1204
|
motionProps: c ? {
|
|
1205
1205
|
initial: { opacity: 0 },
|
|
@@ -1222,7 +1222,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1222
1222
|
onMouseLeave: () => {
|
|
1223
1223
|
!p && c && dt(!1);
|
|
1224
1224
|
},
|
|
1225
|
-
paddingTop: [4, null, null,
|
|
1225
|
+
paddingTop: [4, null, null, s ? `${s + 24}px` : null],
|
|
1226
1226
|
paddingX: [4, null, null, 12],
|
|
1227
1227
|
paddingBottom: "24",
|
|
1228
1228
|
overflow: "auto",
|
|
@@ -1243,12 +1243,12 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1243
1243
|
justifyContent: "space-between",
|
|
1244
1244
|
alignItems: "center",
|
|
1245
1245
|
children: [
|
|
1246
|
-
|
|
1246
|
+
E ? /* @__PURE__ */ t.jsx(
|
|
1247
1247
|
ie,
|
|
1248
1248
|
{
|
|
1249
1249
|
icon: /* @__PURE__ */ t.jsx(rn, {}),
|
|
1250
1250
|
onClick: () => {
|
|
1251
|
-
|
|
1251
|
+
o && o(), a();
|
|
1252
1252
|
},
|
|
1253
1253
|
"aria-label": "Back"
|
|
1254
1254
|
}
|
|
@@ -1333,7 +1333,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1333
1333
|
style: {
|
|
1334
1334
|
display: "flex",
|
|
1335
1335
|
flexDirection: vn(
|
|
1336
|
-
|
|
1336
|
+
b,
|
|
1337
1337
|
c,
|
|
1338
1338
|
p
|
|
1339
1339
|
),
|
|
@@ -1341,7 +1341,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1341
1341
|
justifyContent: "space-between"
|
|
1342
1342
|
},
|
|
1343
1343
|
children: [
|
|
1344
|
-
|
|
1344
|
+
x ? /* @__PURE__ */ t.jsx(
|
|
1345
1345
|
y,
|
|
1346
1346
|
{
|
|
1347
1347
|
gap: "6",
|
|
@@ -1354,7 +1354,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1354
1354
|
flexWrap: "wrap",
|
|
1355
1355
|
flexDirection: ["column", null, null, "row"]
|
|
1356
1356
|
},
|
|
1357
|
-
children:
|
|
1357
|
+
children: x
|
|
1358
1358
|
}
|
|
1359
1359
|
) : null,
|
|
1360
1360
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1366,7 +1366,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1366
1366
|
width: ["100%", null, null, "auto"],
|
|
1367
1367
|
children: [
|
|
1368
1368
|
d ? /* @__PURE__ */ t.jsx(y, { children: d }) : null,
|
|
1369
|
-
|
|
1369
|
+
j && !c ? /* @__PURE__ */ t.jsx(y, { children: j }) : null,
|
|
1370
1370
|
m ? /* @__PURE__ */ t.jsx(
|
|
1371
1371
|
y,
|
|
1372
1372
|
{
|
|
@@ -1392,53 +1392,59 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1392
1392
|
]
|
|
1393
1393
|
}
|
|
1394
1394
|
);
|
|
1395
|
-
}, ft = (l) =>
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1395
|
+
}, ft = (l) => {
|
|
1396
|
+
const a = /* @__PURE__ */ new Set();
|
|
1397
|
+
return l.reduce((h, d) => {
|
|
1398
|
+
var x;
|
|
1399
|
+
const j = ((x = d.sections) == null ? void 0 : x.reduce((m, E) => {
|
|
1400
|
+
const o = E.links.filter((b) => a.has(b.label) || b.isSearchable !== !0 ? !1 : (a.add(b.label), !0));
|
|
1401
|
+
return [...m, ...o];
|
|
1402
|
+
}, [])) ?? [];
|
|
1403
|
+
return [...h, ...j];
|
|
1404
|
+
}, []);
|
|
1405
|
+
}, xn = ({
|
|
1400
1406
|
source: l,
|
|
1401
1407
|
onSearchCallback: a,
|
|
1402
1408
|
isActive: h
|
|
1403
1409
|
}) => {
|
|
1404
|
-
const [d,
|
|
1405
|
-
if (!
|
|
1410
|
+
const [d, j] = V(""), [x, m] = V([]), E = (s, p) => {
|
|
1411
|
+
if (!s)
|
|
1406
1412
|
return [];
|
|
1407
|
-
const w =
|
|
1413
|
+
const w = s.toLowerCase();
|
|
1408
1414
|
return p.filter((c) => {
|
|
1409
1415
|
const P = c.label.toLowerCase().includes(w), A = typeof c.additionalContent == "string" && c.additionalContent.toLowerCase().includes(w);
|
|
1410
1416
|
return P || A;
|
|
1411
1417
|
}).sort((c, P) => c.label.localeCompare(P.label));
|
|
1412
|
-
},
|
|
1413
|
-
if (
|
|
1418
|
+
}, o = (s) => {
|
|
1419
|
+
if (j(s), !s) {
|
|
1414
1420
|
m([]);
|
|
1415
1421
|
return;
|
|
1416
1422
|
}
|
|
1417
|
-
const p =
|
|
1418
|
-
m(p), a && a(
|
|
1419
|
-
},
|
|
1420
|
-
|
|
1423
|
+
const p = E(s, l);
|
|
1424
|
+
m(p), a && a(s, p);
|
|
1425
|
+
}, b = () => {
|
|
1426
|
+
j(""), m([]);
|
|
1421
1427
|
};
|
|
1422
1428
|
return le(() => {
|
|
1423
|
-
h || (
|
|
1429
|
+
h || (j(""), m([]));
|
|
1424
1430
|
}, [h]), {
|
|
1425
1431
|
query: d,
|
|
1426
|
-
results:
|
|
1427
|
-
handleClose:
|
|
1428
|
-
handleSearch:
|
|
1432
|
+
results: x,
|
|
1433
|
+
handleClose: b,
|
|
1434
|
+
handleSearch: o
|
|
1429
1435
|
};
|
|
1430
1436
|
}, Rn = ({
|
|
1431
1437
|
categories: l = [],
|
|
1432
1438
|
onCartClick: a,
|
|
1433
1439
|
mainCategoryLabel: h = "Menu",
|
|
1434
1440
|
logoLink: d = "https://www.everlywell.com",
|
|
1435
|
-
hasSearch:
|
|
1436
|
-
onSearchClick:
|
|
1441
|
+
hasSearch: j = !0,
|
|
1442
|
+
onSearchClick: x,
|
|
1437
1443
|
registrationUrl: m,
|
|
1438
|
-
profileUrl:
|
|
1439
|
-
mobileBottomButtons:
|
|
1440
|
-
numberOfCartItems:
|
|
1441
|
-
linkComponent:
|
|
1444
|
+
profileUrl: E = "https://secure.everlywell.com/login",
|
|
1445
|
+
mobileBottomButtons: o = [],
|
|
1446
|
+
numberOfCartItems: b = 0,
|
|
1447
|
+
linkComponent: s,
|
|
1442
1448
|
onSearchCallback: p,
|
|
1443
1449
|
onLinkClick: w,
|
|
1444
1450
|
onCategoryOpen: c,
|
|
@@ -1449,7 +1455,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1449
1455
|
onLogoClick: S
|
|
1450
1456
|
}) => {
|
|
1451
1457
|
var Ee, de, Re;
|
|
1452
|
-
const [N, ve] = V(!1), [xe, J] = V(!1), [
|
|
1458
|
+
const [N, ve] = V(!1), [xe, J] = V(!1), [R, Y] = V(null), [q, ke] = V(0), [ge, ae] = V(!1), [$, z] = V(!1), {
|
|
1453
1459
|
query: G,
|
|
1454
1460
|
results: Z,
|
|
1455
1461
|
handleSearch: be
|
|
@@ -1472,7 +1478,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1472
1478
|
justifyContent: [null, null, null, "flex-start"],
|
|
1473
1479
|
children: Array.from(
|
|
1474
1480
|
{ length: Math.ceil(Z.length / 4) },
|
|
1475
|
-
(
|
|
1481
|
+
(u, O) => /* @__PURE__ */ t.jsx(
|
|
1476
1482
|
L,
|
|
1477
1483
|
{ direction: "column", gap: "6", children: Z.slice(O * 4, (O + 1) * 4).map(
|
|
1478
1484
|
(k, D) => /* @__PURE__ */ t.jsx(
|
|
@@ -1481,7 +1487,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1481
1487
|
href: k.href,
|
|
1482
1488
|
label: k.label,
|
|
1483
1489
|
additionalContent: k == null ? void 0 : k.additionalContent,
|
|
1484
|
-
linkComponent:
|
|
1490
|
+
linkComponent: s
|
|
1485
1491
|
},
|
|
1486
1492
|
`${k.label}-${D}`
|
|
1487
1493
|
)
|
|
@@ -1492,37 +1498,37 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1492
1498
|
}
|
|
1493
1499
|
)
|
|
1494
1500
|
] }
|
|
1495
|
-
), Ce = ze((
|
|
1496
|
-
ke(
|
|
1501
|
+
), Ce = ze((u) => {
|
|
1502
|
+
ke(u);
|
|
1497
1503
|
}, []), oe = () => {
|
|
1498
1504
|
ve(!1), Y(null);
|
|
1499
|
-
}, je = (
|
|
1500
|
-
Y(
|
|
1501
|
-
}, we = (
|
|
1502
|
-
ae(!0), J(!1), (
|
|
1505
|
+
}, je = (u) => {
|
|
1506
|
+
Y(u);
|
|
1507
|
+
}, we = (u) => {
|
|
1508
|
+
ae(!0), J(!1), (u.sections || u.spotlightCards) && Y(u);
|
|
1503
1509
|
}, ye = () => {
|
|
1504
1510
|
ae(!1);
|
|
1505
1511
|
};
|
|
1506
1512
|
le(() => {
|
|
1507
|
-
const
|
|
1513
|
+
const u = (O) => {
|
|
1508
1514
|
z(O.detail.isHovering);
|
|
1509
1515
|
};
|
|
1510
1516
|
return window.addEventListener(
|
|
1511
1517
|
Ne,
|
|
1512
|
-
|
|
1518
|
+
u
|
|
1513
1519
|
), () => {
|
|
1514
1520
|
window.removeEventListener(
|
|
1515
1521
|
Ne,
|
|
1516
|
-
|
|
1522
|
+
u
|
|
1517
1523
|
);
|
|
1518
1524
|
};
|
|
1519
1525
|
}, []), le(() => {
|
|
1520
1526
|
!ge && !$ && (Y(null), J(!1));
|
|
1521
1527
|
}, [ge, $]), le(() => {
|
|
1522
|
-
let
|
|
1528
|
+
let u = window.location.href;
|
|
1523
1529
|
const O = () => {
|
|
1524
1530
|
const D = window.location.href;
|
|
1525
|
-
D !==
|
|
1531
|
+
D !== u && (u = D, oe(), Y(null));
|
|
1526
1532
|
}, k = setInterval(O, 100);
|
|
1527
1533
|
return window.addEventListener("popstate", O), () => {
|
|
1528
1534
|
window.removeEventListener("popstate", O), clearInterval(k);
|
|
@@ -1533,39 +1539,39 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1533
1539
|
}, Oe = /* @__PURE__ */ t.jsx(
|
|
1534
1540
|
t.Fragment,
|
|
1535
1541
|
{ children: l == null ? void 0 : l.map(
|
|
1536
|
-
(
|
|
1542
|
+
(u, O) => /* @__PURE__ */ t.jsx(
|
|
1537
1543
|
Te,
|
|
1538
1544
|
{
|
|
1539
1545
|
onMouseEnter: () => {
|
|
1540
|
-
we(
|
|
1546
|
+
we(u), c == null || c(u.label);
|
|
1541
1547
|
},
|
|
1542
1548
|
onMouseLeave: ye,
|
|
1543
|
-
isSelected: (
|
|
1544
|
-
...
|
|
1545
|
-
children:
|
|
1549
|
+
isSelected: (R == null ? void 0 : R.label) === u.label,
|
|
1550
|
+
...u.buttonProps,
|
|
1551
|
+
children: u.label
|
|
1546
1552
|
},
|
|
1547
|
-
`${
|
|
1553
|
+
`${u.label}-${O}`
|
|
1548
1554
|
)
|
|
1549
1555
|
) }
|
|
1550
|
-
), se = (Ee = l.filter((
|
|
1551
|
-
(
|
|
1556
|
+
), se = (Ee = l.filter((u) => u.isMobileTopLink !== !1)) == null ? void 0 : Ee.map(
|
|
1557
|
+
(u) => /* @__PURE__ */ t.jsx(
|
|
1552
1558
|
y,
|
|
1553
1559
|
{
|
|
1554
1560
|
onClick: () => {
|
|
1555
|
-
je(
|
|
1561
|
+
je(u), c == null || c(u.label);
|
|
1556
1562
|
},
|
|
1557
1563
|
children: /* @__PURE__ */ t.jsx(
|
|
1558
1564
|
Me,
|
|
1559
1565
|
{
|
|
1560
|
-
label:
|
|
1566
|
+
label: u.label,
|
|
1561
1567
|
role: "link",
|
|
1562
|
-
additionalContent:
|
|
1568
|
+
additionalContent: u.additionalContent,
|
|
1563
1569
|
mainTextFontSize: "3xl",
|
|
1564
|
-
linkComponent:
|
|
1570
|
+
linkComponent: s
|
|
1565
1571
|
}
|
|
1566
1572
|
)
|
|
1567
1573
|
},
|
|
1568
|
-
|
|
1574
|
+
u.label
|
|
1569
1575
|
)
|
|
1570
1576
|
);
|
|
1571
1577
|
ft(l);
|
|
@@ -1576,7 +1582,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1576
1582
|
Te,
|
|
1577
1583
|
{
|
|
1578
1584
|
as: X,
|
|
1579
|
-
href:
|
|
1585
|
+
href: E,
|
|
1580
1586
|
width: "100%",
|
|
1581
1587
|
backgroundColor: "tints.cream",
|
|
1582
1588
|
onClick: H,
|
|
@@ -1612,15 +1618,15 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1612
1618
|
), Q = /* @__PURE__ */ t.jsxs(
|
|
1613
1619
|
L,
|
|
1614
1620
|
{ gap: "2", flexDirection: "column", children: [
|
|
1615
|
-
|
|
1621
|
+
o,
|
|
1616
1622
|
ue
|
|
1617
1623
|
] }
|
|
1618
|
-
), ce =
|
|
1624
|
+
), ce = R ? /* @__PURE__ */ t.jsx(
|
|
1619
1625
|
L,
|
|
1620
|
-
{ direction: ["column", null, null, "row"], gap: "8", children: (de =
|
|
1626
|
+
{ direction: ["column", null, null, "row"], gap: "8", children: (de = R == null ? void 0 : R.sections) == null ? void 0 : de.map((u, O) => {
|
|
1621
1627
|
const k = [];
|
|
1622
|
-
for (let D = 0; D <
|
|
1623
|
-
k.push(
|
|
1628
|
+
for (let D = 0; D < u.links.length; D += 3)
|
|
1629
|
+
k.push(u.links.slice(D, D + 3));
|
|
1624
1630
|
return /* @__PURE__ */ t.jsxs(
|
|
1625
1631
|
y,
|
|
1626
1632
|
{ children: [
|
|
@@ -1630,7 +1636,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1630
1636
|
fontSize: "md",
|
|
1631
1637
|
color: "tints.uiGrey",
|
|
1632
1638
|
marginBottom: [0, null, null, 6],
|
|
1633
|
-
children:
|
|
1639
|
+
children: u.title
|
|
1634
1640
|
}
|
|
1635
1641
|
),
|
|
1636
1642
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1652,7 +1658,7 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1652
1658
|
label: B.label,
|
|
1653
1659
|
href: B.href,
|
|
1654
1660
|
additionalContent: B.additionalContent,
|
|
1655
|
-
linkComponent:
|
|
1661
|
+
linkComponent: s,
|
|
1656
1662
|
onClick: () => w == null ? void 0 : w(B.label)
|
|
1657
1663
|
},
|
|
1658
1664
|
B.label
|
|
@@ -1665,11 +1671,11 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1665
1671
|
}
|
|
1666
1672
|
)
|
|
1667
1673
|
] },
|
|
1668
|
-
`${
|
|
1674
|
+
`${u.title}-${O}`
|
|
1669
1675
|
);
|
|
1670
1676
|
}) }
|
|
1671
|
-
) : null, ee =
|
|
1672
|
-
(
|
|
1677
|
+
) : null, ee = R != null && R.spotlightCards ? (Re = R.spotlightCards) == null ? void 0 : Re.map(
|
|
1678
|
+
(u) => /* @__PURE__ */ t.jsx(cn, { ...u }, u.title)
|
|
1673
1679
|
) : /* @__PURE__ */ t.jsx(y, {});
|
|
1674
1680
|
return /* @__PURE__ */ t.jsxs(
|
|
1675
1681
|
t.Fragment,
|
|
@@ -1690,26 +1696,26 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1690
1696
|
),
|
|
1691
1697
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1692
1698
|
X,
|
|
1693
|
-
{ href:
|
|
1699
|
+
{ href: E, "aria-label": "login", onClick: H, children: /* @__PURE__ */ t.jsx(ie, { icon: /* @__PURE__ */ t.jsx(re, { as: at }), "aria-label": "Profile" }) }
|
|
1694
1700
|
),
|
|
1695
1701
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1696
1702
|
pn,
|
|
1697
1703
|
{
|
|
1698
1704
|
"aria-label": "Cart",
|
|
1699
|
-
count:
|
|
1705
|
+
count: b,
|
|
1700
1706
|
onClick: a
|
|
1701
1707
|
}
|
|
1702
1708
|
),
|
|
1703
1709
|
onSearchClick: () => {
|
|
1704
|
-
J(!0),
|
|
1710
|
+
J(!0), x == null || x();
|
|
1705
1711
|
},
|
|
1706
1712
|
onMenuClick: () => {
|
|
1707
1713
|
ve(!0), P == null || P();
|
|
1708
1714
|
},
|
|
1709
|
-
hasSearch:
|
|
1715
|
+
hasSearch: j,
|
|
1710
1716
|
logoLink: d,
|
|
1711
1717
|
onHeightChange: Ce,
|
|
1712
|
-
linkComponent:
|
|
1718
|
+
linkComponent: s,
|
|
1713
1719
|
onLogoClick: S
|
|
1714
1720
|
}
|
|
1715
1721
|
),
|
|
@@ -1728,15 +1734,15 @@ const We = 60, ct = 6, un = (l) => {
|
|
|
1728
1734
|
/* @__PURE__ */ t.jsx(
|
|
1729
1735
|
Be,
|
|
1730
1736
|
{
|
|
1731
|
-
isOpen: !!
|
|
1737
|
+
isOpen: !!R,
|
|
1732
1738
|
onClose: () => Y(null),
|
|
1733
|
-
title: (
|
|
1739
|
+
title: (R == null ? void 0 : R.label) || "",
|
|
1734
1740
|
navDrawerLinks: ce,
|
|
1735
1741
|
onBackClick: Le,
|
|
1736
1742
|
spotlightCards: ee,
|
|
1737
|
-
hasOnlySpotlightCards:
|
|
1743
|
+
hasOnlySpotlightCards: R == null ? void 0 : R.hasOnlySpotlightCards,
|
|
1738
1744
|
navHeight: q,
|
|
1739
|
-
bottomButton:
|
|
1745
|
+
bottomButton: R == null ? void 0 : R.bottomButton
|
|
1740
1746
|
}
|
|
1741
1747
|
),
|
|
1742
1748
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.builder.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/NavigationBar.builder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAKzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAItD,eAAO,MAAM,iBAAiB,EAAE,kBAoB/B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"NavigationBar.builder.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/NavigationBar.builder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAKzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAItD,eAAO,MAAM,iBAAiB,EAAE,kBAoB/B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAAkB,EAqI9C,CAAC;AAEF,eAAO,MAAM,uBAAuB,2CAanC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,kBAO1B,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAC3B,OAAO,CAAC,kBAAkB,CAAC,KACjC,kBAGD,CAAC"}
|
|
@@ -12,6 +12,8 @@ export type NavigationBarLink = {
|
|
|
12
12
|
href: string;
|
|
13
13
|
/** Optional additional content to display alongside the link (e.g. badge, icon) */
|
|
14
14
|
additionalContent?: string | ReactElement;
|
|
15
|
+
/** Whether the link is searchable */
|
|
16
|
+
isSearchable: boolean;
|
|
15
17
|
};
|
|
16
18
|
/**
|
|
17
19
|
* Represents a section of navigation links with a title
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/NavigationBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAY,YAAY,EAA0B,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAK/C,OAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAsB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMrE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,iBAAiB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"NavigationBar.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/NavigationBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAY,YAAY,EAA0B,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAK/C,OAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAsB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMrE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,iBAAiB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC1C,qCAAqC;IACrC,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAClC,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC1C,oEAAoE;IACpE,cAAc,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACtC,iFAAiF;IACjF,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,8EAA8E;IAC9E,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,wDAAwD;IACxD,WAAW,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IAC/C;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,EAAE,YAAY,CAAC;IAC1B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IAC3C;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IAIzE,WAAW,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC;;SAEK;IACL,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC;;SAEK;IACL,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC;;SAEK;IACL,kBAAkB,CAAC,EAAE,YAAY,CAAC;IAClC;;SAEK;IACL,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkYtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAExE,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/NavigationBar/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAExE,eAAO,MAAM,WAAW,eACV,kBAAkB,EAAE,KAC/B,iBAAiB,EAqBnB,CAAC"}
|