@everlywell/consumer-ui 1.37.5 → 1.37.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -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 lt;function Bt(){if(lt)return me;lt=1;var l=C,i=Symbol.for("react.element"),c=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,h=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function p(y,g,j){var a,
|
|
9
|
+
*/var lt;function Bt(){if(lt)return me;lt=1;var l=C,i=Symbol.for("react.element"),c=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,h=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function p(y,g,j){var a,E={},m=null,x=null;j!==void 0&&(m=""+j),g.key!==void 0&&(m=""+g.key),g.ref!==void 0&&(x=g.ref);for(a in g)d.call(g,a)&&!u.hasOwnProperty(a)&&(E[a]=g[a]);if(y&&y.defaultProps)for(a in g=y.defaultProps,g)E[a]===void 0&&(E[a]=g[a]);return{$$typeof:i,type:y,key:m,ref:x,props:E,_owner:h.current}}return me.Fragment=c,me.jsx=p,me.jsxs=p,me}var je={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ot;function Ft(){return ot||(ot=1,process.env.NODE_ENV!=="production"&&function(){var l=C,i=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),a=Symbol.for("react.suspense_list"),
|
|
18
|
-
`+pe+e}}var xe=!1,le;{var Be=typeof WeakMap=="function"?WeakMap:Map;le=new Be}function Te(e,r){if(!e||xe)return"";{var o=le.get(e);if(o!==void 0)return o}var f;xe=!0;var w=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var
|
|
17
|
+
*/var ot;function Ft(){return ot||(ot=1,process.env.NODE_ENV!=="production"&&function(){var l=C,i=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),a=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_=Symbol.iterator,N="@@iterator";function z(e){if(e===null||typeof e!="object")return null;var r=_&&e[_]||e[N];return typeof r=="function"?r:null}var M=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(e){{for(var r=arguments.length,o=new Array(r>1?r-1:0),f=1;f<r;f++)o[f-1]=arguments[f];ue("error",e,o)}}function ue(e,r,o){{var f=M.ReactDebugCurrentFrame,w=f.getStackAddendum();w!==""&&(r+="%s",o=o.concat([w]));var S=o.map(function(b){return String(b)});S.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,S)}}var ce=!1,de=!1,X=!1,U=!1,O=!1,R;R=Symbol.for("react.module.reference");function A(e){return!!(typeof e=="string"||typeof e=="function"||e===d||e===u||O||e===h||e===j||e===a||U||e===x||ce||de||X||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===E||e.$$typeof===p||e.$$typeof===y||e.$$typeof===g||e.$$typeof===R||e.getModuleId!==void 0))}function Ce(e,r,o){var f=e.displayName;if(f)return f;var w=r.displayName||r.name||"";return w!==""?o+"("+w+")":o}function fe(e){return e.displayName||"Context"}function H(e){if(e==null)return null;if(typeof e.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case d:return"Fragment";case c:return"Portal";case u:return"Profiler";case h:return"StrictMode";case j:return"Suspense";case a:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var r=e;return fe(r)+".Consumer";case p:var o=e;return fe(o._context)+".Provider";case g:return Ce(e,e.render,"ForwardRef");case E:var f=e.displayName||null;return f!==null?f:H(e.type)||"Memo";case m:{var w=e,S=w._payload,b=w._init;try{return H(b(S))}catch{return null}}}return null}var Y=Object.assign,G=0,ye,Ee,Se,ee,Re,he,te;function _e(){}_e.__reactDisabledLog=!0;function De(){{if(G===0){ye=console.log,Ee=console.info,Se=console.warn,ee=console.error,Re=console.group,he=console.groupCollapsed,te=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function ne(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},e,{value:ye}),info:Y({},e,{value:Ee}),warn:Y({},e,{value:Se}),error:Y({},e,{value:ee}),group:Y({},e,{value:Re}),groupCollapsed:Y({},e,{value:he}),groupEnd:Y({},e,{value:te})})}G<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var W=M.ReactCurrentDispatcher,pe;function re(e,r,o){{if(pe===void 0)try{throw Error()}catch(w){var f=w.stack.trim().match(/\n( *(at )?)/);pe=f&&f[1]||""}return`
|
|
18
|
+
`+pe+e}}var xe=!1,le;{var Be=typeof WeakMap=="function"?WeakMap:Map;le=new Be}function Te(e,r){if(!e||xe)return"";{var o=le.get(e);if(o!==void 0)return o}var f;xe=!0;var w=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=W.current,W.current=null,De();try{if(r){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(P){f=P}Reflect.construct(e,[],b)}else{try{b.call()}catch(P){f=P}e.call(b.prototype)}}else{try{throw Error()}catch(P){f=P}e()}}catch(P){if(P&&f&&typeof P.stack=="string"){for(var v=P.stack.split(`
|
|
19
19
|
`),F=f.stack.split(`
|
|
20
20
|
`),k=v.length-1,L=F.length-1;k>=1&&L>=0&&v[k]!==F[L];)L--;for(;k>=1&&L>=0;k--,L--)if(v[k]!==F[L]){if(k!==1||L!==1)do if(k--,L--,L<0||v[k]!==F[L]){var $=`
|
|
21
|
-
`+v[k].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&le.set(e,$),$}while(k>=1&&L>=0);break}}}finally{xe=!1,W.current=
|
|
21
|
+
`+v[k].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&le.set(e,$),$}while(k>=1&&L>=0);break}}}finally{xe=!1,W.current=S,ne(),Error.prepareStackTrace=w}var ae=e?e.displayName||e.name:"",J=ae?re(ae):"";return typeof e=="function"&&le.set(e,J),J}function Fe(e,r,o){return Te(e,!1)}function Oe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function oe(e,r,o){if(e==null)return"";if(typeof e=="function")return Te(e,Oe(e));if(typeof e=="string")return re(e);switch(e){case j:return re("Suspense");case a:return re("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return Fe(e.render);case E:return oe(e.type,r,o);case m:{var f=e,w=f._payload,S=f._init;try{return oe(S(w),r,o)}catch{}}}return""}var Z=Object.prototype.hasOwnProperty,ge={},ve=M.ReactDebugCurrentFrame;function s(e){if(e){var r=e._owner,o=oe(e.type,e._source,r?r.type:null);ve.setExtraStackFrame(o)}else ve.setExtraStackFrame(null)}function I(e,r,o,f,w){{var S=Function.call.bind(Z);for(var b in e)if(S(e,b)){var v=void 0;try{if(typeof e[b]!="function"){var F=Error((f||"React class")+": "+o+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw F.name="Invariant Violation",F}v=e[b](r,b,f,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){v=k}v&&!(v instanceof Error)&&(s(w),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",f||"React class",o,b,typeof v),s(null)),v instanceof Error&&!(v.message in ge)&&(ge[v.message]=!0,s(w),T("Failed %s type: %s",o,v.message),s(null))}}}var K=Array.isArray;function B(e){return K(e)}function Ae(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,o=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function q(e){try{return Ue(e),!1}catch{return!0}}function Ue(e){return""+e}function Ze(e){if(q(e))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ae(e)),Ue(e)}var be=M.ReactCurrentOwner,xt={key:!0,ref:!0,__self:!0,__source:!0},Ke,Xe,Pe;Pe={};function gt(e){if(Z.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function vt(e){if(Z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function bt(e,r){if(typeof e.ref=="string"&&be.current&&r&&be.current.stateNode!==r){var o=H(be.current.type);Pe[o]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',H(be.current.type),e.ref),Pe[o]=!0)}}function mt(e,r){{var o=function(){Ke||(Ke=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function jt(e,r){{var o=function(){Xe||(Xe=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var wt=function(e,r,o,f,w,S,b){var v={$$typeof:i,type:e,key:r,ref:o,props:b,_owner:S};return v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(v,"_self",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.defineProperty(v,"_source",{configurable:!1,enumerable:!1,writable:!1,value:w}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v};function Ct(e,r,o,f,w){{var S,b={},v=null,F=null;o!==void 0&&(Ze(o),v=""+o),vt(r)&&(Ze(r.key),v=""+r.key),gt(r)&&(F=r.ref,bt(r,w));for(S in r)Z.call(r,S)&&!xt.hasOwnProperty(S)&&(b[S]=r[S]);if(e&&e.defaultProps){var k=e.defaultProps;for(S in k)b[S]===void 0&&(b[S]=k[S])}if(v||F){var L=typeof e=="function"?e.displayName||e.name||"Unknown":e;v&&mt(b,L),F&&jt(b,L)}return wt(e,v,F,w,f,be.current,b)}}var He=M.ReactCurrentOwner,qe=M.ReactDebugCurrentFrame;function ie(e){if(e){var r=e._owner,o=oe(e.type,e._source,r?r.type:null);qe.setExtraStackFrame(o)}else qe.setExtraStackFrame(null)}var Me;Me=!1;function $e(e){return typeof e=="object"&&e!==null&&e.$$typeof===i}function Je(){{if(He.current){var e=H(He.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function yt(e){return""}var Qe={};function Et(e){{var r=Je();if(!r){var o=typeof e=="string"?e:e.displayName||e.name;o&&(r=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+o+">.")}return r}}function et(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Et(r);if(Qe[o])return;Qe[o]=!0;var f="";e&&e._owner&&e._owner!==He.current&&(f=" It was passed a child from "+H(e._owner.type)+"."),ie(e),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,f),ie(null)}}function tt(e,r){{if(typeof e!="object")return;if(B(e))for(var o=0;o<e.length;o++){var f=e[o];$e(f)&&et(f,r)}else if($e(e))e._store&&(e._store.validated=!0);else if(e){var w=z(e);if(typeof w=="function"&&w!==e.entries)for(var
|
|
25
|
+
Check the top-level render call using <`+o+">.")}return r}}function et(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Et(r);if(Qe[o])return;Qe[o]=!0;var f="";e&&e._owner&&e._owner!==He.current&&(f=" It was passed a child from "+H(e._owner.type)+"."),ie(e),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,f),ie(null)}}function tt(e,r){{if(typeof e!="object")return;if(B(e))for(var o=0;o<e.length;o++){var f=e[o];$e(f)&&et(f,r)}else if($e(e))e._store&&(e._store.validated=!0);else if(e){var w=z(e);if(typeof w=="function"&&w!==e.entries)for(var S=w.call(e),b;!(b=S.next()).done;)$e(b.value)&&et(b.value,r)}}}function St(e){{var r=e.type;if(r==null||typeof r=="string")return;var o;if(typeof r=="function")o=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===g||r.$$typeof===E))o=r.propTypes;else return;if(o){var f=H(r);I(o,e.props,"prop",f,e)}else if(r.PropTypes!==void 0&&!Me){Me=!0;var w=H(r);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Rt(e){{for(var r=Object.keys(e.props),o=0;o<r.length;o++){var f=r[o];if(f!=="children"&&f!=="key"){ie(e),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f),ie(null);break}}e.ref!==null&&(ie(e),T("Invalid attribute `ref` supplied to `React.Fragment`."),ie(null))}}var nt={};function rt(e,r,o,f,w,S){{var b=A(e);if(!b){var v="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(v+=" 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=yt();F?v+=F:v+=Je();var k;e===null?k="null":B(e)?k="array":e!==void 0&&e.$$typeof===i?(k="<"+(H(e.type)||"Unknown")+" />",v=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,v)}var L=Ct(e,r,o,w,S);if(L==null)return L;if(b){var $=r.children;if($!==void 0)if(f)if(B($)){for(var ae=0;ae<$.length;ae++)tt($[ae],e);Object.freeze&&Object.freeze($)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else tt($,e)}if(Z.call(r,"key")){var J=H(e),P=Object.keys(r).filter(function(Dt){return Dt!=="key"}),Ne=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!nt[J+Ne]){var It=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ne,J,It,J),nt[J+Ne]=!0}}return e===d?Rt(L):St(L),L}}function _t(e,r,o){return rt(e,r,o,!0)}function Tt(e,r,o){return rt(e,r,o,!1)}var kt=Tt,Lt=_t;je.Fragment=d,je.jsx=kt,je.jsxs=Lt}()),je}process.env.NODE_ENV==="production"?Ve.exports=Bt():Ve.exports=Ft();var t=Ve.exports;const We=60,it=6,Ot=l=>{const{activeStepIndex:i,hideIndicators:c=!1,steps:d,stepperTheme:h={light:"eggplant.light",base:"eggplant.base"}}=l,{activeStep:u,setActiveStep:p}=n.useSteps({index:i,count:d.length});return C.useEffect(()=>{p(i)},[i,p]),t.jsx(n.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(n.Stepper,{role:"progressbar",index:u,width:"100%",display:"flex",flexWrap:"nowrap",children:d.map((y,g)=>{const j=u===g,a=g===0,S=g===d.length-1,m=u>g;let x=`${We}px`;const _=`calc(100% - ((${We*(d.length-1)}px) - (${d.length-1} * ${it*2}px)))`;return j?x=_:(a||S)&&(x=`${We-it}px`),t.jsx(n.Box,{width:x,opacity:m||j?1:.2,paddingRight:S?"0":"6px",paddingLeft:a?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(n.Box,{paddingTop:c?2:5,position:"relative",width:"100%",children:t.jsx(n.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:m?h.light:h.base,height:c?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${g}`)})})})},At=C.memo(Ot),Pt=({children:l,...i})=>t.jsx(V.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...i,children:l}),se=(l,i)=>{const c=(l==null?void 0:l.startsWith("http"))||(l==null?void 0:l.startsWith("mailto"));return i&&!c?{to:l}:{href:l}},ke=C.forwardRef((l,i)=>{const{label:c,additionalContent:d,mainTextFontSize:h,linkComponent:u,href:p,...y}=l,g=u||n.Link,j=se(p,!!u);return t.jsxs(n.Box,{ref:i,as:g,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",...j,...y,children:[t.jsx(n.Icon,{display:["none",null,null,"block"],as:D.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(n.Flex,{alignItems:"center",gap:"1",width:["100%",null,null,"auto"],children:[t.jsx(n.Text,{fontSize:[h||"xl",null,null,"lg"],fontWeight:"medium",children:c}),d&&(typeof d=="string"?t.jsx(n.Text,{fontSize:["xl",null,null,"lg"],fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:d}):d),t.jsx(n.Icon,{display:["block",null,null,"none"],as:D.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),we=C.forwardRef((l,i)=>{const{children:c,isSelected:d,...h}=l,u=l.backgroundColor||(d?"tints.lightCream":"transparent");return t.jsx(n.Button,{ref:i,borderRadius:"full",backgroundColor:u,fontSize:"lg !important",fontWeight:"normal",color:"tints.black",sx:{"&[href]":{textDecoration:"none"}},_before:{content:'""',position:"absolute",top:[null,null,null,-6],right:[null,null,null,-2],bottom:[null,null,null,-6],left:[null,null,null,-2]},_hover:{backgroundColor:u,textDecoration:"none",filter:"brightness(0.95)"},...h,children:c})}),dt=({title:l,description:i,imageSrc:c,imageElement:d,button:h,backgroundColor:u="viridian.wash",onClick:p,href:y,linkComponent:g})=>{const m=g||n.Link,x=se(y,!!g),_=V.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0});return t.jsxs(n.Flex,{direction:["row",null,null,"column"],alignItems:["center"],borderRadius:"xl",overflow:"hidden",height:["80px",null,null,"272px"],backgroundColor:u,onClick:p,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",border:"1px solid",borderColor:"transparent",minWidth:["100%",null,null,"320px"],maxWidth:["100%",null,null,"380px"],_hover:{boxShadow:"lg",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:_?n.Flex:m,..._?{}:x,children:[t.jsx(n.Box,{width:["72px",null,null,"100%"],height:["100%",null,null,"188px"],sx:{img:{height:_?"188px":"100%"}},children:c?t.jsx(n.Image,{src:c,objectFit:"cover",width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(n.Box,{height:[80,null,null,188],overflow:"hidden",children:d})}),t.jsxs(n.Flex,{direction:["column",null,null,"row"],justifyContent:[null,null,null,"space-between"],alignItems:["left",null,null,"center"],padding:"4",height:["80px",null,null,"84px"],width:"100%",bottom:[null,null,null,"0"],backgroundColor:[null,null,null,`${u}CC`],backdropFilter:[null,null,null,"blur(8px)"],flex:"1",gap:[null,null,null,3],children:[t.jsxs(n.Flex,{direction:"column",justifyContent:"center",height:"100%",children:[t.jsx(n.Text,{fontSize:"lg",fontWeight:"medium",color:"tints.black",children:l}),t.jsx(n.Text,{fontSize:"sm",color:"tints.darkGrey",children:i})]}),_?t.jsx(n.Box,{children:h}):null]})]})},Q=l=>t.jsx(n.IconButton,{size:"sm",width:["40px",null,null,"46px"],height:["40px",null,null,"46px"],padding:["2 !important",null,null,"3 !important"],colorScheme:"whiteCS",backgroundColor:"tints.cream",sx:{svg:{width:"24px",height:"24px"}},_hover:{backgroundColor:"tints.cream",filter:"brightness(0.95)"},...l}),ft=({color:l=n.theme.colors.viridian.base,width:i})=>t.jsx(V.Box,{as:"svg",width:i,height:"auto",viewBox:"0 0 116 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Everlywell Logo",children:t.jsx("g",{id:"Everlywell Logo",children:t.jsx("path",{fill:l,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"})})}),Ht=(l,i)=>{let c;return(...d)=>{c&&clearTimeout(c),c=setTimeout(()=>{l(...d)},i)}},ze="nav-drawer-hover",Ye="nav-drawer-animation-start",Ge="nav-drawer-animation-end",at=l=>{window.dispatchEvent(new CustomEvent(ze,{detail:{isHovering:l},bubbles:!0,cancelable:!0}))},st=l=>{window.dispatchEvent(new CustomEvent(l,{bubbles:!0,cancelable:!0}))},Mt=(l=!1,i=!1,c=!1)=>l||!i?"column":c?"row":"row-reverse",$t=Ie.motion(n.DrawerContent),Nt=Ie.motion(n.DrawerOverlay),Le=({isOpen:l=!1,onClose:i,title:c,navDrawerLinks:d,bottomNavButtons:h,spotlightCards:u,bottomButton:p,hasBackButton:y=!0,onBackClick:g,hasOnlySpotlightCards:j=!1,hasSearch:a=!1,onSearch:S=()=>({}),topOffset:m})=>{var q,U;const x=V.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0}),_=x?"top":"right",[N,z]=C.useState(0),[M,T]=C.useState(!1),ue=()=>{z(O=>O+1)},ce=C.useCallback(Ht(O=>{S(O),ue()},100),[]);C.useEffect(()=>{l&&(T(!0),st(Ye))},[l]);const de=()=>{l||(T(!1),i()),st(Ge)};return t.jsx(n.Drawer,{isOpen:M||l,onClose:()=>{M&&x||i()},placement:_,blockScrollOnMount:!1,autoFocus:!1,...x?{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...(U=(q=n.theme.components.Drawer)==null?void 0:q.baseStyle)==null?void 0:U.dialogContainer,top:x?`${m}px`:void 0,zIndex:["overlay"]}}}}:{},children:t.jsx(Ie.AnimatePresence,{children:l?t.jsxs(t.Fragment,{children:[t.jsx(Nt,{backgroundColor:"tints.black",top:["0",null,null,`${m}px`],opacity:x?void 0:"0.4 !important",...x?{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.15,ease:"easeOut"}}:{}}),t.jsxs($t,{onClick:O=>{const A=O.target.closest("a");A&&A.href===window.location.href&&i()},onMouseEnter:()=>{x&&at(!0)},onMouseLeave:()=>{x&&at(!1)},paddingTop:"4",paddingX:[4,null,null,12],paddingBottom:"24",overflow:["auto",null,null,"hidden"],maxHeight:"100vh",position:"relative",top:x?`${m}px !important`:void 0,onAnimationComplete:de,boxShadow:"none",...x?{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3}}:{},children:[!a&&x?null:t.jsxs(n.DrawerHeader,{padding:"0",flexDirection:a?"column":"row",gap:a?"4":"0",children:[x?null:t.jsxs(n.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[y?t.jsx(Q,{icon:t.jsx(D.CaretLeft,{}),onClick:()=>{g&&g()},"aria-label":"Back"}):null,t.jsx(n.Text,{color:"tints.uiGrey",fontSize:["xl",null,null,"lg"],children:c}),t.jsx(Q,{icon:t.jsx(D.X,{}),onClick:i,"aria-label":"Close"})]}),a&&t.jsxs(V.InputGroup,{width:"100%",children:[t.jsx(V.Input,{onChange:O=>{ce(O.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(V.InputRightElement,{pointerEvents:"none",children:t.jsx(V.Icon,{as:D.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(n.DrawerBody,{paddingX:"0",paddingBottom:[6,null,null,4],"data-testid":`navbar-drawer-body-${c.toLowerCase()}`,children:t.jsxs(Ie.motion.div,{...x?{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:Mt(j,x,a),gap:"24px",justifyContent:"space-between"},children:[u?t.jsx(n.Box,{gap:[3,null,null,6],display:"flex",justifyContent:[null,null,null,"center"],sx:{flexWrap:"wrap",flexDirection:["column",null,null,"row"]},children:u}):null,t.jsxs(n.Flex,{position:[null,null,null,"relative"],flexDirection:"column",gap:"6",width:["100%",null,null,a?null:"auto"],children:[d?t.jsx(n.Box,{children:d}):null,h&&!x?t.jsx(n.Box,{children:h}):null,p?t.jsx(n.Box,{width:["100%"],position:[null,null,null,"absolute"],bottom:[null,null,null,0],children:p}):null]})]},N)})]})]}):null})})},ht=({desktopTopButtons:l,kitRegistrationElement:i,profileElement:c,cartElement:d,onSearchClick:h,onMenuClick:u,hasSearch:p=!1,logoLink:y="https://www.everlywell.com",setTopOffset:g,linkComponent:j,onLogoClick:a})=>{const S=C.useRef(null),[m,x]=C.useState(!1);C.useEffect(()=>{const N=()=>x(!0),z=()=>x(!1);return window.addEventListener(Ye,N),window.addEventListener(Ge,z),()=>{window.removeEventListener(Ye,N),window.removeEventListener(Ge,z)}},[]);const _=C.useCallback(()=>{if(S.current){const N=S.current.getBoundingClientRect();g(N.bottom)}},[]);return C.useEffect(()=>{_()},[_]),t.jsx(n.Box,{ref:S,paddingY:"4",paddingX:[4,null,null,12],borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",position:"sticky",top:"0",width:"100%",zIndex:["sticky",null,null,m?"modal":"sticky"],onMouseEnter:_,children:t.jsxs(n.Flex,{justifyContent:"space-between",alignItems:"center",children:[t.jsxs(n.Flex,{alignItems:"center",gap:"5",children:[t.jsx(n.Box,{"aria-label":"Go to homepage",onClick:a,as:j||n.Link,...se(y,!!j),children:t.jsx(ft,{width:"116px"})}),t.jsx(n.Flex,{display:["none",null,null,"flex"],children:l})]}),t.jsxs(n.Flex,{alignItems:"center",gap:"2",children:[t.jsx(n.Box,{display:["none",null,null,"block"],children:i}),p?t.jsx(Q,{"aria-label":"Search",icon:t.jsx(n.Icon,{as:D.MagnifyingGlass}),onClick:h}):null,d,t.jsx(n.Box,{display:["flex",null,null,"none"],children:t.jsx(Q,{icon:t.jsx(D.List,{}),"aria-label":"menu","data-testid":"menu-button",onClick:u})}),t.jsx(n.Box,{display:["none",null,null,"block"],children:c})]})]})})},pt=({count:l=0,...i})=>t.jsxs(n.Box,{position:"relative",display:"inline-block",children:[t.jsx(Q,{icon:t.jsx(D.Basket,{}),...i}),l>0&&t.jsx(n.Box,{display:"flex",minWidth:"20px",height:"20px",py:"4px",px:"6px",justifyContent:"center",alignItems:"center",position:"absolute",right:"-4px",top:"-4px",borderRadius:"32px",background:"viridian.base",color:"white",fontSize:"xs",fontWeight:"normal",children:l})]}),Wt=({numDesktopLinks:l=5,showPromoButton:i=!1})=>t.jsx(n.VStack,{spacing:0,align:"stretch",children:t.jsx(n.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",borderColor:"tints.lightCream",children:t.jsxs(n.Flex,{justify:"space-between",align:"center",children:[t.jsx(n.Skeleton,{w:"120px",h:"48px"}),t.jsxs(n.HStack,{spacing:8,marginLeft:12,display:["none",null,null,"flex"],"data-testid":"desktop-nav",children:[Array.from({length:l}).map((c,d)=>t.jsx(n.Skeleton,{width:"90px",height:"48px"},d)),i&&t.jsx(n.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(n.HStack,{spacing:4,ml:"auto",children:[t.jsx(n.SkeletonCircle,{width:"120px",height:"48px",display:["none",null,null,"block"],"data-testid":"register-kit"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),Vt=({source:l,onSearchCallback:i,isActive:c})=>{const[d,h]=C.useState(""),[u,p]=C.useState([]),y=(a,S)=>{if(!a)return[];const m=a.toLowerCase();return S.filter(x=>{const _=x.label.toLowerCase().includes(m),N=typeof x.additionalContent=="string"&&x.additionalContent.toLowerCase().includes(m);return _||N}).sort((x,_)=>x.label.localeCompare(_.label))},g=a=>{if(h(a),!a){p([]);return}const S=y(a,l);p(S),i&&i(a,S)},j=()=>{h(""),p([])};return C.useEffect(()=>{c||(h(""),p([]))},[c]),{query:d,results:u,handleClose:j,handleSearch:g}},zt=l=>{const i=new Set;return l.reduce((c,d)=>{var u;const h=((u=d.sections)==null?void 0:u.reduce((p,y)=>{const g=y.links.filter(j=>i.has(j.label)||j.isSearchable!==!0?!1:(i.add(j.label),!0));return[...p,...g]},[]))??[];return[...c,...h]},[])},Yt=({categories:l=[],onCartClick:i,mainCategoryLabel:c="Menu",logoLink:d="https://www.everlywell.com",hasSearch:h=!0,onSearchClick:u,registrationUrl:p,profileUrl:y="https://secure.everlywell.com/login",mobileBottomButtons:g=[],numberOfCartItems:j=0,linkComponent:a,onSearchCallback:S,onLinkClick:m,onCategoryOpen:x,onMobileMenuOpen:_,onBackToMainMenu:N,onRegisterKitClick:z,onProfileClick:M,onLogoClick:T,shopAllProductsUrl:ue,onShopAllProductsClick:ce})=>{var Z,ge,ve;const[de,q]=C.useState(!1),[U,O]=C.useState(!1),[R,A]=C.useState(null),[Ce,fe]=C.useState(!1),[H,Y]=C.useState(!1),[G,ye]=C.useState(0),Ee=V.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0})??!1;C.useEffect(()=>{ne(),A(null)},[Ee]);const{query:Se,results:ee,handleSearch:Re}=Vt({source:zt(l),onSearchCallback:S,isActive:U}),he=ee.length>0,te=a||n.Link,_e=se(ue,!!a),De=Se&&t.jsxs(n.Flex,{gap:he?"6":0,direction:"column",children:[he?t.jsx(n.Text,{color:"tints.uiGrey",children:`${ee.length} Results`}):t.jsxs(n.Flex,{direction:"column",gap:"6",alignItems:"flex-start",children:[t.jsx(n.Text,{color:"tints.uiGrey",children:"We didn't find what you were looking for."}),t.jsx(n.Button,{as:te,onClick:ce,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],..._e,children:"Shop all products"})]}),t.jsx(n.Grid,{columns:[1,1,1,4],children:ee.map((s,I)=>t.jsx(n.GridItem,{children:t.jsx(ke,{href:s.href,label:s.label,additionalContent:s==null?void 0:s.additionalContent,linkComponent:a})},`${s.label}-${I}`))})]}),ne=()=>{q(!1),A(null)},W=s=>"href"in s,pe=s=>{W(s)?m==null||m(s.label):A(s)},re=s=>{fe(!0),O(!1),A(null),!W(s)&&(s.sections||s.spotlightCards)&&A(s)},xe=()=>{fe(!1)};C.useEffect(()=>{const s=I=>{Y(I.detail.isHovering)};return window.addEventListener(ze,s),()=>{window.removeEventListener(ze,s)}},[]),C.useEffect(()=>{!Ce&&!H&&(A(null),O(!1))},[Ce,H]),C.useEffect(()=>{let s=window.location.href;const I=()=>{const B=window.location.href;B!==s&&(s=B,ne(),A(null))},K=setInterval(I,100);return window.addEventListener("popstate",I),()=>{window.removeEventListener("popstate",I),clearInterval(K)}},[]);const le=l==null?void 0:l.map((s,I)=>t.jsx(we,{onMouseEnter:()=>{re(s),x==null||x(s.label)},onMouseLeave:xe,isSelected:(R==null?void 0:R.label)===s.label,as:W(s)&&te?te:n.Link,href:W(s)?s.href:void 0,onClick:W(s)?()=>m==null?void 0:m(s.label):void 0,...s.buttonProps,children:s.label},`${s.label}-${I}`)),Be=(Z=l.filter(s=>!W(s)&&s.isMobileTopLink!==!1))==null?void 0:Z.map(s=>{const I=s;return t.jsx(n.Box,{onClick:()=>{pe(I),x==null||x(I.label)},children:t.jsx(ke,{label:I.label,role:"link",additionalContent:I.additionalContent,mainTextFontSize:"3xl",linkComponent:a})},I.label)}),Te=t.jsxs(t.Fragment,{children:[t.jsx(we,{as:n.Link,href:y,width:"100%",backgroundColor:"tints.cream",onClick:M,children:t.jsxs(n.Flex,{gap:"2",children:["My Everly",t.jsx(n.Icon,{as:D.User,size:24})]})},"my-everly"),t.jsx(we,{as:n.Link,width:"100%",href:p,backgroundColor:"tints.cream",onClick:z,children:t.jsxs(n.Flex,{gap:"2",children:["Register kit",t.jsx(n.Icon,{as:D.QrCode,size:24})]})},"register-kit")]}),Fe=t.jsxs(n.Flex,{gap:"2",flexDirection:"column",children:[g,Te]}),Oe=R?t.jsx(n.Flex,{direction:["column",null,null,"row"],gap:"8",children:(ge=R==null?void 0:R.sections)==null?void 0:ge.map((s,I)=>{const K=[];for(let B=0;B<s.links.length;B+=3)K.push(s.links.slice(B,B+3));return t.jsxs(n.Box,{children:[t.jsx(n.Text,{fontSize:"md",color:"tints.uiGrey",marginBottom:[0,null,null,6],children:s.title}),t.jsx(n.Flex,{flexDirection:["column",null,null,"row"],gap:[null,null,null,8],children:K==null?void 0:K.map((B,Ae)=>t.jsx(n.Flex,{flexDirection:["column"],gap:[null,null,null,5],marginLeft:[null,null,null,-2],children:B==null?void 0:B.map(X=>t.jsx(ke,{label:X.label,href:X.href,additionalContent:X.additionalContent,linkComponent:a,onClick:()=>m==null?void 0:m(X.label)},X.label))},Ae))})]},`${s.title}-${I}`)})}):null,oe=R!=null&&R.spotlightCards?(ve=R.spotlightCards)==null?void 0:ve.map(s=>t.jsx(dt,{...s},s.title)):t.jsx(n.Box,{});return t.jsxs(t.Fragment,{children:[t.jsx(ht,{desktopTopButtons:le,kitRegistrationElement:t.jsx(we,{as:n.Link,href:p,onClick:z,backgroundColor:"tints.cream",children:"Register Kit"}),profileElement:t.jsx(n.Link,{href:y,"aria-label":"login",onClick:M,children:t.jsx(Q,{icon:t.jsx(n.Icon,{as:D.User}),"aria-label":"Profile"})}),cartElement:t.jsx(pt,{"aria-label":"Cart",count:j,onClick:i}),onSearchClick:()=>{O(!U),u==null||u()},onMenuClick:()=>{q(!0),_==null||_()},hasSearch:h,logoLink:d,linkComponent:a,onLogoClick:T,setTopOffset:ye}),t.jsxs(n.Box,{position:"relative",zIndex:"modal",children:[t.jsx(Le,{isOpen:de,onClose:ne,title:c,navDrawerLinks:Be,bottomNavButtons:Fe,hasBackButton:!1,topOffset:G}),t.jsx(Le,{isOpen:!!R,onClose:()=>{ne(),A(null)},title:(R==null?void 0:R.label)||"",navDrawerLinks:Oe,onBackClick:()=>A(null),spotlightCards:oe,hasOnlySpotlightCards:R==null?void 0:R.hasOnlySpotlightCards,bottomButton:R==null?void 0:R.bottomButton,topOffset:G}),t.jsx(Le,{isOpen:U,onClose:()=>O(!1),title:"Search",navDrawerLinks:De,onSearch:Re,hasSearch:!0,hasBackButton:!1,topOffset:G})]})]})},ut=({links:l,linkComponent:i,onLinkClick:c})=>{const d=i||n.Link,h=u=>{c&&c(u)};return t.jsx(n.Flex,{direction:"column",gap:6,children:l.map(u=>t.jsx(n.Text,{as:d,color:"white",size:"lg",_hover:{color:"viridian.lighter",textDecoration:"none"},onClick:()=>h(u.label),...se(u.href,!!i),children:u.label},u.label))})},Gt=({title:l,links:i,isLast:c})=>{const d=c?"transparent":`${n.theme.colors.viridian.lighter}20`;return i?t.jsx(n.AccordionItem,{borderColor:d,children:({isExpanded:h})=>t.jsxs(t.Fragment,{children:[t.jsxs(n.AccordionButton,{paddingX:0,paddingY:4,_hover:{bg:"transparent"},children:[t.jsx(n.Text,{color:"viridian.lighter",size:"lg",flex:"1",textAlign:"left",children:l}),t.jsx(n.Icon,{as:D.CaretDown,size:"sm",color:"viridian.lighter",transform:h?"rotate(-180deg)":"rotate(0deg)",transition:"transform 0.3s ease"})]}),t.jsx(n.AccordionPanel,{pb:4,px:0,children:i})]})}):null},Ut=({title:l,links:i})=>i?t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:"viridian.lighter",mb:6,fontSize:"lg",children:l}),i]}):null,Zt=({sections:l,linkComponent:i,onLinkClick:c})=>V.useBreakpointValue({base:!1,tablet:!1,largeTablet:!0,desktop:!0})?t.jsx(n.Flex,{justify:"space-between",align:"flex-start",children:t.jsx(n.Flex,{gap:120,children:l.map(({title:h,links:u})=>t.jsx(Ut,{title:h,links:t.jsx(ut,{links:u,linkComponent:i,onLinkClick:c})},h))})}):t.jsx(n.Accordion,{allowMultiple:!0,defaultIndex:[0],width:"100%",display:"flex",flexDirection:"column",children:l.map(({title:h,links:u},p)=>t.jsx(Gt,{title:h,links:t.jsx(ut,{links:u,linkComponent:i,onLinkClick:c}),isLast:p===l.length-1},h))}),ct={instagram:D.InstagramLogo,linkedin:D.LinkedinLogo,facebook:D.FacebookLogo,tiktok:D.TiktokLogo,x:D.XLogo},Kt=({socialLinks:l,onEmailSubmit:i,socialMediaLabel:c,newsletterLabel:d,onLinkClick:h})=>{const[u,p]=C.useState(""),y=()=>{u&&i&&(i(u),p(""))},g=a=>{a.key==="Enter"&&y()},j=a=>{h&&h(a)};return t.jsxs(n.Box,{width:["100%",null,null,"440px"],children:[t.jsxs(n.Box,{mb:[8,10],children:[t.jsx(n.Text,{color:"viridian.lighter",mb:6,size:"lg",children:d}),t.jsxs(n.InputGroup,{children:[t.jsx(n.Input,{placeholder:"Enter your email",bg:"transparent",border:"1px solid",borderColor:"viridian.lighter",color:"viridian.lighter",_placeholder:{color:"viridian.lighter"},opacity:.66,height:"52px",pr:"48px",value:u,onChange:a=>p(a.target.value),onKeyPress:g}),t.jsx(n.InputRightElement,{h:"52px",pr:4,children:t.jsx(n.Icon,{as:D.ArrowRight,color:"viridian.lighter",width:"24px",height:"24px",opacity:.66,cursor:"pointer",onClick:y,"data-testid":"arrow-right-icon",role:"button","aria-label":"Submit"})})]})]}),t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:"viridian.lighter",marginBottom:4,size:"lg",children:c}),t.jsx(n.Flex,{gap:3,children:l==null?void 0:l.map(a=>t.jsx(n.Link,{href:a.href,target:"_blank",rel:"noopener noreferrer","aria-label":a.name,onClick:()=>j(a.name),children:ct[a.name.toLowerCase()]&&t.jsx(n.Icon,{as:ct[a.name.toLowerCase()],color:"white",width:["48px",null,"24px",null],height:["48px",null,"24px",null]})},a.name))})]})]})},qt=({links:l,linkComponent:i,onLinkClick:c})=>{const d=i||n.Link,h=p=>{c&&c(p)},u=l==null?void 0:l.map(p=>t.jsx(n.Text,{as:d,color:"viridian.lighter",size:"sm",_hover:{color:"white",textDecoration:"none"},onClick:()=>h(p.label),...se(p.href,!!i),children:p.label},p.label));return t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[t.jsx(n.Flex,{direction:"row",flexWrap:"wrap",gap:[4,6,10],width:["100%","auto"],children:u}),t.jsxs(n.Text,{color:"viridian.lighter",fontSize:"sm",children:["© Everlywell ",new Date().getFullYear()]})]})},Xt=({navigationSections:l=[],disclaimer:i,newsletterLabel:c,socialMediaLabel:d,socialLinks:h,complianceLinks:u,linkComponent:p,onEmailSubmit:y,additionalContent:g,onLinkClick:j,onSocialMediaClick:a})=>t.jsx(n.Box,{as:"footer",bg:"viridian.dark",py:[6,8],px:[4,6],children:t.jsxs(n.Container,{size:"fluid",children:[t.jsxs(n.Flex,{direction:"column",gap:[8,12],children:[t.jsx(n.Box,{children:t.jsx(ft,{width:["150px","202px"],color:"white"})}),t.jsxs(n.Flex,{direction:["column",null,null,"row"],justify:"space-between",align:["flex-start"],gap:[8,8,8,0],children:[t.jsx(Zt,{sections:l,linkComponent:p,onLinkClick:j}),t.jsx(Kt,{socialLinks:h,newsletterLabel:c,socialMediaLabel:d,onEmailSubmit:y,onLinkClick:a})]}),t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",alignContent:"center",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[t.jsx(n.Text,{color:"viridian.lighter",fontSize:"sm",maxWidth:["100%","100%","1024px"],children:i}),g]})]}),t.jsx(n.Box,{borderTop:"1px solid",borderColor:`${n.theme.colors.viridian.lighter}20`,marginTop:"10",marginBottom:"8"}),t.jsx(qt,{disclaimer:i,links:u,linkComponent:p,onLinkClick:j})]})});exports.BasketButton=pt;exports.CategoryLabel=Pt;exports.Footer=Xt;exports.NavButton=we;exports.NavSkeleton=Wt;exports.NavbarDrawer=Le;exports.NavbarDrawerLink=ke;exports.NavigationBar=Yt;exports.SpotlightCard=dt;exports.Stepper=At;exports.TopNavIconButton=Q;exports.TopNavigation=ht;
|
|
30
|
+
<%s key={someKey} {...props} />`,Ne,J,It,J),nt[J+Ne]=!0}}return e===d?Rt(L):St(L),L}}function _t(e,r,o){return rt(e,r,o,!0)}function Tt(e,r,o){return rt(e,r,o,!1)}var kt=Tt,Lt=_t;je.Fragment=d,je.jsx=kt,je.jsxs=Lt}()),je}process.env.NODE_ENV==="production"?Ve.exports=Bt():Ve.exports=Ft();var t=Ve.exports;const We=60,it=6,Ot=l=>{const{activeStepIndex:i,hideIndicators:c=!1,steps:d,stepperTheme:h={light:"eggplant.light",base:"eggplant.base"}}=l,{activeStep:u,setActiveStep:p}=n.useSteps({index:i,count:d.length});return C.useEffect(()=>{p(i)},[i,p]),t.jsx(n.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(n.Stepper,{role:"progressbar",index:u,width:"100%",display:"flex",flexWrap:"nowrap",children:d.map((y,g)=>{const j=u===g,a=g===0,E=g===d.length-1,m=u>g;let x=`${We}px`;const _=`calc(100% - ((${We*(d.length-1)}px) - (${d.length-1} * ${it*2}px)))`;return j?x=_:(a||E)&&(x=`${We-it}px`),t.jsx(n.Box,{width:x,opacity:m||j?1:.2,paddingRight:E?"0":"6px",paddingLeft:a?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(n.Box,{paddingTop:c?2:5,position:"relative",width:"100%",children:t.jsx(n.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:m?h.light:h.base,height:c?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${g}`)})})})},At=C.memo(Ot),Pt=({children:l,...i})=>t.jsx(V.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...i,children:l}),se=(l,i)=>{const c=(l==null?void 0:l.startsWith("http"))||(l==null?void 0:l.startsWith("mailto"));return i&&!c?{to:l}:{href:l}},ke=C.forwardRef((l,i)=>{const{label:c,additionalContent:d,mainTextFontSize:h,linkComponent:u,href:p,...y}=l,g=u||n.Link,j=se(p,!!u);return t.jsxs(n.Box,{ref:i,as:g,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",...j,...y,children:[t.jsx(n.Icon,{display:["none",null,null,"block"],as:D.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(n.Flex,{alignItems:"center",gap:"1",width:["100%",null,null,"auto"],children:[t.jsx(n.Text,{fontSize:[h||"xl",null,null,"lg"],fontWeight:"medium",children:c}),d&&(typeof d=="string"?t.jsx(n.Text,{fontSize:["xl",null,null,"lg"],fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:d}):d),t.jsx(n.Icon,{display:["block",null,null,"none"],as:D.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),we=C.forwardRef((l,i)=>{const{children:c,isSelected:d,...h}=l,u=l.backgroundColor||(d?"tints.lightCream":"transparent");return t.jsx(n.Button,{ref:i,borderRadius:"full",backgroundColor:u,fontSize:"lg !important",fontWeight:"normal",color:"tints.black",sx:{"&[href]":{textDecoration:"none"}},_before:{content:'""',position:"absolute",top:[null,null,null,-6],right:[null,null,null,-2],bottom:[null,null,null,-6],left:[null,null,null,-2]},_hover:{backgroundColor:u,textDecoration:"none",filter:"brightness(0.95)"},...h,children:c})}),dt=({title:l,description:i,imageSrc:c,imageElement:d,button:h,backgroundColor:u="viridian.wash",onClick:p,href:y,linkComponent:g})=>{const m=g||n.Link,x=se(y,!!g),_=V.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0});return t.jsxs(n.Flex,{direction:["row",null,null,"column"],alignItems:["center"],borderRadius:"xl",overflow:"hidden",height:["80px",null,null,"272px"],backgroundColor:u,onClick:p,"data-testid":"spotlight-card",position:"relative",transition:"box-shadow 0.2s ease-in-out",border:"1px solid",borderColor:"transparent",minWidth:["100%",null,null,"320px"],maxWidth:["100%",null,null,"380px"],_hover:{boxShadow:"lg",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:_?n.Flex:m,..._?{}:x,children:[t.jsx(n.Box,{width:["72px",null,null,"100%"],height:["100%",null,null,"188px"],sx:{img:{height:_?"188px":"100%"}},children:c?t.jsx(n.Image,{src:c,objectFit:"cover",width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(n.Box,{height:[80,null,null,188],overflow:"hidden",children:d})}),t.jsxs(n.Flex,{direction:["column",null,null,"row"],justifyContent:[null,null,null,"space-between"],alignItems:["left",null,null,"center"],padding:"4",height:["80px",null,null,"84px"],width:"100%",bottom:[null,null,null,"0"],backgroundColor:[null,null,null,`${u}CC`],backdropFilter:[null,null,null,"blur(8px)"],flex:"1",gap:[null,null,null,3],children:[t.jsxs(n.Flex,{direction:"column",justifyContent:"center",height:"100%",children:[t.jsx(n.Text,{fontSize:"lg",fontWeight:"medium",color:"tints.black",children:l}),t.jsx(n.Text,{fontSize:"sm",color:"tints.darkGrey",children:i})]}),_?t.jsx(n.Box,{children:h}):null]})]})},Q=l=>t.jsx(n.IconButton,{size:"sm",width:["40px",null,null,"46px"],height:["40px",null,null,"46px"],padding:["2 !important",null,null,"3 !important"],colorScheme:"whiteCS",backgroundColor:"tints.cream",sx:{svg:{width:"24px",height:"24px"}},_hover:{backgroundColor:"tints.cream",filter:"brightness(0.95)"},...l}),ft=({color:l=n.theme.colors.viridian.base,width:i})=>t.jsx(V.Box,{as:"svg",width:i,height:"auto",viewBox:"0 0 116 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Everlywell Logo",children:t.jsx("g",{id:"Everlywell Logo",children:t.jsx("path",{fill:l,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"})})}),Ht=(l,i)=>{let c;return(...d)=>{c&&clearTimeout(c),c=setTimeout(()=>{l(...d)},i)}},ze="nav-drawer-hover",Ye="nav-drawer-animation-start",Ge="nav-drawer-animation-end",at=l=>{window.dispatchEvent(new CustomEvent(ze,{detail:{isHovering:l},bubbles:!0,cancelable:!0}))},st=l=>{window.dispatchEvent(new CustomEvent(l,{bubbles:!0,cancelable:!0}))},Mt=(l=!1,i=!1,c=!1)=>l||!i?"column":c?"row":"row-reverse",$t=Ie.motion(n.DrawerContent),Nt=Ie.motion(n.DrawerOverlay),Le=({isOpen:l=!1,onClose:i,title:c,navDrawerLinks:d,bottomNavButtons:h,spotlightCards:u,bottomButton:p,hasBackButton:y=!0,onBackClick:g,hasOnlySpotlightCards:j=!1,hasSearch:a=!1,onSearch:E=()=>({}),topOffset:m})=>{var X,U;const x=V.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0}),_=x?"top":"right",[N,z]=C.useState(0),[M,T]=C.useState(!1),ue=()=>{z(O=>O+1)},ce=C.useCallback(Ht(O=>{E(O),ue()},100),[]);C.useEffect(()=>{l&&(T(!0),st(Ye))},[l]);const de=()=>{l||(T(!1),i()),st(Ge)};return t.jsx(n.Drawer,{isOpen:M||l,onClose:()=>{M&&x||i()},placement:_,blockScrollOnMount:!1,autoFocus:!1,...x?{styleConfig:{baseStyle:{...n.theme.components.Drawer.baseStyle,dialogContainer:{...(U=(X=n.theme.components.Drawer)==null?void 0:X.baseStyle)==null?void 0:U.dialogContainer,top:x?`${m}px`:void 0,zIndex:["overlay"]}}}}:{},children:t.jsx(Ie.AnimatePresence,{children:l?t.jsxs(t.Fragment,{children:[t.jsx(Nt,{backgroundColor:"tints.black",top:["0",null,null,`${m}px`],opacity:x?void 0:"0.4 !important",...x?{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.15,ease:"easeOut"}}:{}}),t.jsxs($t,{onClick:O=>{const A=O.target.closest("a");A&&A.href===window.location.href&&i()},onMouseEnter:()=>{x&&at(!0)},onMouseLeave:()=>{x&&at(!1)},paddingTop:"4",paddingX:[4,null,null,12],paddingBottom:"24",overflow:["auto",null,null,"hidden"],maxHeight:"100vh",position:"relative",top:x?`${m}px !important`:void 0,onAnimationComplete:de,boxShadow:"none",...x?{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3}}:{},children:[!a&&x?null:t.jsxs(n.DrawerHeader,{padding:"0",flexDirection:a?"column":"row",gap:a?"4":"0",children:[x?null:t.jsxs(n.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[y?t.jsx(Q,{icon:t.jsx(D.CaretLeft,{}),onClick:()=>{g&&g()},"aria-label":"Back"}):null,t.jsx(n.Text,{color:"tints.uiGrey",fontSize:["xl",null,null,"lg"],children:c}),t.jsx(Q,{icon:t.jsx(D.X,{}),onClick:i,"aria-label":"Close"})]}),a&&t.jsxs(V.InputGroup,{width:"100%",children:[t.jsx(V.Input,{onChange:O=>{ce(O.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(V.InputRightElement,{pointerEvents:"none",children:t.jsx(V.Icon,{as:D.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(n.DrawerBody,{paddingX:"0",paddingBottom:[6,null,null,4],"data-testid":`navbar-drawer-body-${c.toLowerCase()}`,children:t.jsxs(Ie.motion.div,{...x?{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:Mt(j,x,a),gap:"24px",justifyContent:"space-between"},children:[u?t.jsx(n.Box,{gap:[3,null,null,6],display:"flex",justifyContent:[null,null,null,"center"],sx:{flexWrap:"wrap",flexDirection:["column",null,null,"row"]},children:u}):null,t.jsxs(n.Flex,{position:[null,null,null,"relative"],flexDirection:"column",gap:"6",width:["100%",null,null,a?null:"auto"],children:[d?t.jsx(n.Box,{children:d}):null,h&&!x?t.jsx(n.Box,{children:h}):null,p?t.jsx(n.Box,{width:["100%"],position:[null,null,null,"absolute"],bottom:[null,null,null,0],children:p}):null]})]},N)})]})]}):null})})},ht=({desktopTopButtons:l,kitRegistrationElement:i,profileElement:c,cartElement:d,onSearchClick:h,onMenuClick:u,hasSearch:p=!1,logoLink:y="https://www.everlywell.com",setTopOffset:g,linkComponent:j,onLogoClick:a})=>{const E=C.useRef(null),[m,x]=C.useState(!1);C.useEffect(()=>{const N=()=>x(!0),z=()=>x(!1);return window.addEventListener(Ye,N),window.addEventListener(Ge,z),()=>{window.removeEventListener(Ye,N),window.removeEventListener(Ge,z)}},[]);const _=C.useCallback(()=>{if(E.current){const N=E.current.getBoundingClientRect();g(N.bottom)}},[]);return C.useEffect(()=>{_()},[_]),t.jsx(n.Box,{ref:E,paddingY:"4",paddingX:[4,null,null,12],borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",position:"sticky",top:"0",width:"100%",zIndex:["sticky",null,null,m?"modal":"sticky"],onMouseEnter:_,children:t.jsxs(n.Flex,{justifyContent:"space-between",alignItems:"center",children:[t.jsxs(n.Flex,{alignItems:"center",gap:"5",children:[t.jsx(n.Box,{"aria-label":"Go to homepage",onClick:a,as:j||n.Link,...se(y,!!j),children:t.jsx(ft,{width:"116px"})}),t.jsx(n.Flex,{display:["none",null,null,"flex"],children:l})]}),t.jsxs(n.Flex,{alignItems:"center",gap:"2",children:[t.jsx(n.Box,{display:["none",null,null,"block"],children:i}),p?t.jsx(Q,{"aria-label":"Search",icon:t.jsx(n.Icon,{as:D.MagnifyingGlass}),onClick:h}):null,d,t.jsx(n.Box,{display:["flex",null,null,"none"],children:t.jsx(Q,{icon:t.jsx(D.List,{}),"aria-label":"menu","data-testid":"menu-button",onClick:u})}),t.jsx(n.Box,{display:["none",null,null,"block"],children:c})]})]})})},pt=({count:l=0,...i})=>t.jsxs(n.Box,{position:"relative",display:"inline-block",children:[t.jsx(Q,{icon:t.jsx(D.Basket,{}),...i}),l>0&&t.jsx(n.Box,{display:"flex",minWidth:"20px",height:"20px",py:"4px",px:"6px",justifyContent:"center",alignItems:"center",position:"absolute",right:"-4px",top:"-4px",borderRadius:"32px",background:"viridian.base",color:"white",fontSize:"xs",fontWeight:"normal",children:l})]}),Wt=({numDesktopLinks:l=5,showPromoButton:i=!1})=>t.jsx(n.VStack,{spacing:0,align:"stretch",children:t.jsx(n.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",borderColor:"tints.lightCream",children:t.jsxs(n.Flex,{justify:"space-between",align:"center",children:[t.jsx(n.Skeleton,{w:"120px",h:"48px"}),t.jsxs(n.HStack,{spacing:8,marginLeft:12,display:["none",null,null,"flex"],"data-testid":"desktop-nav",children:[Array.from({length:l}).map((c,d)=>t.jsx(n.Skeleton,{width:"90px",height:"48px"},d)),i&&t.jsx(n.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(n.HStack,{spacing:4,ml:"auto",children:[t.jsx(n.SkeletonCircle,{width:"120px",height:"48px",display:["none",null,null,"block"],"data-testid":"register-kit"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(n.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),Vt=({source:l,onSearchCallback:i,isActive:c})=>{const[d,h]=C.useState(""),[u,p]=C.useState([]),y=(a,E)=>{if(!a)return[];const m=a.toLowerCase();return E.filter(x=>{const _=x.label.toLowerCase().includes(m),N=typeof x.additionalContent=="string"&&x.additionalContent.toLowerCase().includes(m);return _||N}).sort((x,_)=>x.label.localeCompare(_.label))},g=a=>{if(h(a),!a){p([]);return}const E=y(a,l);p(E),i&&i(a,E)},j=()=>{h(""),p([])};return C.useEffect(()=>{c||(h(""),p([]))},[c]),{query:d,results:u,handleClose:j,handleSearch:g}},zt=l=>{const i=new Set;return l.reduce((c,d)=>{var u;const h=((u=d.sections)==null?void 0:u.reduce((p,y)=>{const g=y.links.filter(j=>i.has(j.label)||j.isSearchable!==!0?!1:(i.add(j.label),!0));return[...p,...g]},[]))??[];return[...c,...h]},[])},Yt=({categories:l=[],onCartClick:i,mainCategoryLabel:c="Menu",logoLink:d="https://www.everlywell.com",hasSearch:h=!0,onSearchClick:u,registrationUrl:p,profileUrl:y="https://secure.everlywell.com/login",mobileBottomButtons:g=[],numberOfCartItems:j=0,linkComponent:a,onSearchCallback:E,onLinkClick:m,onCategoryOpen:x,onMobileMenuOpen:_,onBackToMainMenu:N,onRegisterKitClick:z,onProfileClick:M,onLogoClick:T,shopAllProductsUrl:ue,onShopAllProductsClick:ce})=>{var Z,ge,ve;const[de,X]=C.useState(!1),[U,O]=C.useState(!1),[R,A]=C.useState(null),[Ce,fe]=C.useState(!1),[H,Y]=C.useState(!1),[G,ye]=C.useState(0),Ee=V.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0})??!1;C.useEffect(()=>{ne(),A(null)},[Ee]);const{query:Se,results:ee,handleSearch:Re}=Vt({source:zt(l),onSearchCallback:E,isActive:U}),he=ee.length>0,te=a||n.Link,_e=se(ue,!!a),De=Se&&t.jsxs(n.Flex,{gap:he?"6":0,direction:"column",children:[he?t.jsx(n.Text,{color:"tints.uiGrey",children:`${ee.length} Results`}):t.jsxs(n.Flex,{direction:"column",gap:"6",alignItems:"flex-start",children:[t.jsx(n.Text,{color:"tints.uiGrey",children:"We didn't find what you were looking for."}),t.jsx(n.Button,{as:te,onClick:ce,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],..._e,children:"Shop all products"})]}),t.jsx(n.Grid,{columns:[1,1,1,4],children:ee.map((s,I)=>t.jsx(n.GridItem,{children:t.jsx(ke,{href:s.href,label:s.label,additionalContent:s==null?void 0:s.additionalContent,linkComponent:a})},`${s.label}-${I}`))})]}),ne=()=>{X(!1),A(null)},W=s=>"href"in s,pe=s=>{W(s)?m==null||m(s.label):A(s)},re=s=>{fe(!0),O(!1),A(null),!W(s)&&(s.sections||s.spotlightCards)&&A(s)},xe=()=>{fe(!1)};C.useEffect(()=>{const s=I=>{Y(I.detail.isHovering)};return window.addEventListener(ze,s),()=>{window.removeEventListener(ze,s)}},[]),C.useEffect(()=>{!Ce&&!H&&(A(null),O(!1))},[Ce,H]),C.useEffect(()=>{let s=window.location.href;const I=()=>{const B=window.location.href;B!==s&&(s=B,ne(),A(null))},K=setInterval(I,100);return window.addEventListener("popstate",I),()=>{window.removeEventListener("popstate",I),clearInterval(K)}},[]);const le=l==null?void 0:l.map((s,I)=>t.jsx(we,{onMouseEnter:()=>{re(s),x==null||x(s.label)},onMouseLeave:xe,isSelected:(R==null?void 0:R.label)===s.label,as:W(s)&&te?te:n.Link,href:W(s)?s.href:void 0,onClick:W(s)?()=>m==null?void 0:m(s.label):void 0,...s.buttonProps,children:s.label},`${s.label}-${I}`)),Be=(Z=l.filter(s=>!W(s)&&s.isMobileTopLink!==!1))==null?void 0:Z.map(s=>{const I=s;return t.jsx(n.Box,{onClick:()=>{pe(I),x==null||x(I.label)},children:t.jsx(ke,{label:I.label,role:"link",additionalContent:I.additionalContent,mainTextFontSize:"3xl",linkComponent:a})},I.label)}),Te=t.jsxs(t.Fragment,{children:[t.jsx(we,{as:n.Link,href:y,width:"100%",backgroundColor:"tints.cream",onClick:M,children:t.jsxs(n.Flex,{gap:"2",children:["My Everly",t.jsx(n.Icon,{as:D.User,size:24})]})},"my-everly"),t.jsx(we,{as:n.Link,width:"100%",href:p,backgroundColor:"tints.cream",onClick:z,children:t.jsxs(n.Flex,{gap:"2",children:["Register kit",t.jsx(n.Icon,{as:D.QrCode,size:24})]})},"register-kit")]}),Fe=t.jsxs(n.Flex,{gap:"2",flexDirection:"column",children:[g,Te]}),Oe=R?t.jsx(n.Flex,{direction:["column",null,null,"row"],gap:"8",children:(ge=R==null?void 0:R.sections)==null?void 0:ge.map((s,I)=>{const K=[];for(let B=0;B<s.links.length;B+=3)K.push(s.links.slice(B,B+3));return t.jsxs(n.Box,{children:[t.jsx(n.Text,{fontSize:"md",color:"tints.uiGrey",marginBottom:[0,null,null,6],children:s.title}),t.jsx(n.Flex,{flexDirection:["column",null,null,"row"],gap:[null,null,null,8],children:K==null?void 0:K.map((B,Ae)=>t.jsx(n.Flex,{flexDirection:["column"],gap:[null,null,null,5],marginLeft:[null,null,null,-2],children:B==null?void 0:B.map(q=>t.jsx(ke,{label:q.label,href:q.href,additionalContent:q.additionalContent,linkComponent:a,onClick:()=>m==null?void 0:m(q.label)},q.label))},Ae))})]},`${s.title}-${I}`)})}):null,oe=R!=null&&R.spotlightCards?(ve=R.spotlightCards)==null?void 0:ve.map(s=>t.jsx(dt,{...s},s.title)):t.jsx(n.Box,{});return t.jsxs(t.Fragment,{children:[t.jsx(ht,{desktopTopButtons:le,kitRegistrationElement:t.jsx(we,{as:n.Link,href:p,onClick:z,backgroundColor:"tints.cream",children:"Register Kit"}),profileElement:t.jsx(n.Link,{href:y,"aria-label":"login",onClick:M,children:t.jsx(Q,{icon:t.jsx(n.Icon,{as:D.User}),"aria-label":"Profile"})}),cartElement:t.jsx(pt,{"aria-label":"Cart",count:j,onClick:i}),onSearchClick:()=>{O(!U),u==null||u()},onMenuClick:()=>{X(!0),_==null||_()},hasSearch:h,logoLink:d,linkComponent:a,onLogoClick:T,setTopOffset:ye}),t.jsxs(n.Box,{position:"relative",zIndex:"modal",children:[t.jsx(Le,{isOpen:de,onClose:ne,title:c,navDrawerLinks:Be,bottomNavButtons:Fe,hasBackButton:!1,topOffset:G}),t.jsx(Le,{isOpen:!!R,onClose:()=>{ne(),A(null)},title:(R==null?void 0:R.label)||"",navDrawerLinks:Oe,onBackClick:()=>A(null),spotlightCards:oe,hasOnlySpotlightCards:R==null?void 0:R.hasOnlySpotlightCards,bottomButton:R==null?void 0:R.bottomButton,topOffset:G}),t.jsx(Le,{isOpen:U,onClose:()=>O(!1),title:"Search",navDrawerLinks:De,onSearch:Re,hasSearch:!0,hasBackButton:!1,topOffset:G})]})]})},ut=({links:l,linkComponent:i,onLinkClick:c})=>{const d=i||n.Link,h=u=>{c&&c(u)};return t.jsx(n.Flex,{direction:"column",gap:6,children:l.map(u=>t.jsx(n.Text,{as:d,color:"white",size:"lg",_hover:{color:"viridian.lighter",textDecoration:"none"},onClick:()=>h(u.label),...se(u.href,!!i),children:u.label},u.label))})},Gt=({title:l,links:i,isLast:c})=>{const d=c?"transparent":`${n.theme.colors.viridian.lighter}20`;return i?t.jsx(n.AccordionItem,{borderColor:d,children:({isExpanded:h})=>t.jsxs(t.Fragment,{children:[t.jsxs(n.AccordionButton,{paddingX:0,paddingY:4,_hover:{bg:"transparent"},children:[t.jsx(n.Text,{color:"viridian.lighter",size:"lg",flex:"1",textAlign:"left",children:l}),t.jsx(n.Icon,{as:D.CaretDown,size:"sm",color:"viridian.lighter",transform:h?"rotate(-180deg)":"rotate(0deg)",transition:"transform 0.3s ease"})]}),t.jsx(n.AccordionPanel,{pb:4,px:0,children:i})]})}):null},Ut=({title:l,links:i})=>i?t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:"viridian.lighter",mb:6,fontSize:"lg",children:l}),i]}):null,Zt=({sections:l,linkComponent:i,onLinkClick:c})=>V.useBreakpointValue({base:!1,tablet:!1,largeTablet:!0,desktop:!0})?t.jsx(n.Flex,{justify:"space-between",align:"flex-start",children:t.jsx(n.Flex,{gap:120,children:l.map(({title:h,links:u})=>t.jsx(Ut,{title:h,links:t.jsx(ut,{links:u,linkComponent:i,onLinkClick:c})},h))})}):t.jsx(n.Accordion,{allowMultiple:!0,defaultIndex:[0],width:"100%",display:"flex",flexDirection:"column",children:l.map(({title:h,links:u},p)=>t.jsx(Gt,{title:h,links:t.jsx(ut,{links:u,linkComponent:i,onLinkClick:c}),isLast:p===l.length-1},h))}),ct={instagram:D.InstagramLogo,linkedin:D.LinkedinLogo,facebook:D.FacebookLogo,tiktok:D.TiktokLogo,x:D.XLogo},Kt=({socialLinks:l,onEmailSubmit:i,socialMediaLabel:c,newsletterLabel:d,onLinkClick:h})=>{const[u,p]=C.useState(""),y=()=>{u&&i&&(i(u),p(""))},g=a=>{a.key==="Enter"&&y()},j=a=>{h&&h(a)};return t.jsxs(n.Box,{width:["100%",null,null,"440px"],children:[t.jsxs(n.Box,{mb:[8,10],children:[t.jsx(n.Text,{color:"viridian.lighter",mb:6,size:"lg",children:d}),t.jsxs(n.InputGroup,{children:[t.jsx(n.Input,{placeholder:"Enter your email",bg:"transparent",border:"1px solid",borderColor:"viridian.lighter",color:"viridian.lighter",_placeholder:{color:"viridian.lighter"},opacity:.66,height:"52px",pr:"48px",value:u,onChange:a=>p(a.target.value),onKeyPress:g}),t.jsx(n.InputRightElement,{h:"52px",pr:4,children:t.jsx(n.Icon,{as:D.ArrowRight,color:"viridian.lighter",width:"24px",height:"24px",opacity:.66,cursor:"pointer",onClick:y,"data-testid":"arrow-right-icon",role:"button","aria-label":"Submit"})})]})]}),t.jsxs(n.Box,{children:[t.jsx(n.Text,{color:"viridian.lighter",marginBottom:4,size:"lg",children:c}),t.jsx(n.Flex,{gap:3,children:l==null?void 0:l.map(a=>t.jsx(n.Link,{href:a.href,target:"_blank",rel:"noopener noreferrer","aria-label":a.name,onClick:()=>j(a.name),children:ct[a.name.toLowerCase()]&&t.jsx(n.Icon,{as:ct[a.name.toLowerCase()],color:"white",width:["48px",null,"24px",null],height:["48px",null,"24px",null]})},a.name))})]})]})},Xt=({links:l,linkComponent:i,onLinkClick:c})=>{const d=i||n.Link,h=p=>{c&&c(p)},u=l==null?void 0:l.map(p=>t.jsx(n.Text,{as:d,color:"viridian.lighter",size:"sm",_hover:{color:"white",textDecoration:"none"},onClick:()=>h(p.label),...se(p.href,!!i),children:p.label},p.label));return t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[t.jsx(n.Flex,{direction:"row",flexWrap:"wrap",gap:[4,6,10],width:["100%","auto"],children:u}),t.jsxs(n.Text,{color:"viridian.lighter",fontSize:"sm",children:["© Everlywell ",new Date().getFullYear()]})]})},qt=C.forwardRef(({navigationSections:l=[],disclaimer:i,newsletterLabel:c,socialMediaLabel:d,socialLinks:h,complianceLinks:u,linkComponent:p,onEmailSubmit:y,additionalContent:g,onLinkClick:j,onSocialMediaClick:a},E)=>t.jsx(n.Box,{as:"footer",bg:"viridian.dark",py:[6,8],px:[4,6],ref:E,children:t.jsxs(n.Container,{size:"fluid",children:[t.jsxs(n.Flex,{direction:"column",gap:[8,12],children:[t.jsx(n.Box,{children:t.jsx(ft,{width:["150px","202px"],color:"white"})}),t.jsxs(n.Flex,{direction:["column",null,null,"row"],justify:"space-between",align:["flex-start"],gap:[8,8,8,0],children:[t.jsx(Zt,{sections:l,linkComponent:p,onLinkClick:j}),t.jsx(Kt,{socialLinks:h,newsletterLabel:c,socialMediaLabel:d,onEmailSubmit:y,onLinkClick:a})]}),t.jsxs(n.Flex,{direction:["column","column","row"],justify:"space-between",alignContent:"center",align:["flex-start","flex-start","center"],gap:[6,6,0],children:[i&&t.jsx(n.Text,{color:"viridian.lighter",fontSize:"sm",maxWidth:["100%","100%","1024px"],dangerouslySetInnerHTML:{__html:i},sx:{"a:hover":{color:"viridian.light",textDecoration:"underline"}}}),g]})]}),t.jsx(n.Box,{borderTop:"1px solid",borderColor:`${n.theme.colors.viridian.lighter}20`,marginTop:"10",marginBottom:"8"}),t.jsx(Xt,{disclaimer:i,links:u,linkComponent:p,onLinkClick:j})]})}));exports.BasketButton=pt;exports.CategoryLabel=Pt;exports.Footer=qt;exports.NavButton=we;exports.NavSkeleton=Wt;exports.NavbarDrawer=Le;exports.NavbarDrawerLink=ke;exports.NavigationBar=Yt;exports.SpotlightCard=dt;exports.Stepper=At;exports.TopNavIconButton=Q;exports.TopNavigation=ht;
|
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSteps as Yt, Box as b, Stepper as Gt, Icon as K, Flex as
|
|
2
|
-
import
|
|
1
|
+
import { useSteps as Yt, Box as b, Stepper as Gt, Icon as K, Flex as y, Text as L, Link as W, Button as yt, Image as Ut, IconButton as Zt, theme as Ee, DrawerContent as Kt, DrawerOverlay as Xt, Drawer as Jt, DrawerHeader as qt, DrawerBody as Qt, VStack as er, Skeleton as Ge, HStack as ft, SkeletonCircle as Oe, Grid as tr, GridItem as rr, Accordion as nr, AccordionItem as lr, AccordionButton as ir, AccordionPanel as or, InputGroup as ar, Input as sr, InputRightElement as ur, Container as cr } from "@everlywell/ui-kit";
|
|
2
|
+
import Re, { useEffect as Z, forwardRef as Ct, useState as V, useCallback as Et, useRef as dr } from "react";
|
|
3
3
|
import { Text as fr, useBreakpointValue as Pe, Box as hr, InputGroup as pr, Input as gr, InputRightElement as xr, Icon as vr } from "@chakra-ui/react";
|
|
4
|
-
import { CaretRight as ht, CaretLeft as mr, X as br, MagnifyingGlass as Rt, List as jr, Basket as wr, User as pt, QrCode as
|
|
4
|
+
import { CaretRight as ht, CaretLeft as mr, X as br, MagnifyingGlass as Rt, List as jr, Basket as wr, User as pt, QrCode as yr, CaretDown as Cr, ArrowRight as Er, InstagramLogo as Rr, LinkedinLogo as _r, FacebookLogo as Sr, TiktokLogo as Tr, XLogo as kr } from "@phosphor-icons/react";
|
|
5
5
|
import { motion as et, AnimatePresence as Dr } from "framer-motion";
|
|
6
|
-
var Xe = { exports: {} },
|
|
6
|
+
var Xe = { exports: {} }, ye = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -15,19 +15,19 @@ var Xe = { exports: {} }, Ce = {};
|
|
|
15
15
|
*/
|
|
16
16
|
var gt;
|
|
17
17
|
function Ir() {
|
|
18
|
-
if (gt) return
|
|
18
|
+
if (gt) return ye;
|
|
19
19
|
gt = 1;
|
|
20
|
-
var n =
|
|
21
|
-
function h(
|
|
22
|
-
var o,
|
|
20
|
+
var n = Re, i = Symbol.for("react.element"), u = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function h(C, g, j) {
|
|
22
|
+
var o, E = {}, m = null, p = null;
|
|
23
23
|
j !== void 0 && (m = "" + j), g.key !== void 0 && (m = "" + g.key), g.ref !== void 0 && (p = g.ref);
|
|
24
|
-
for (o in g) c.call(g, o) && !s.hasOwnProperty(o) && (
|
|
25
|
-
if (
|
|
26
|
-
return { $$typeof: i, type:
|
|
24
|
+
for (o in g) c.call(g, o) && !s.hasOwnProperty(o) && (E[o] = g[o]);
|
|
25
|
+
if (C && C.defaultProps) for (o in g = C.defaultProps, g) E[o] === void 0 && (E[o] = g[o]);
|
|
26
|
+
return { $$typeof: i, type: C, key: m, ref: p, props: E, _owner: f.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return ye.Fragment = u, ye.jsx = h, ye.jsxs = h, ye;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var Ce = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -40,7 +40,7 @@ var ye = {};
|
|
|
40
40
|
var xt;
|
|
41
41
|
function Lr() {
|
|
42
42
|
return xt || (xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var n =
|
|
43
|
+
var n = Re, i = Symbol.for("react.element"), u = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), C = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), S = Symbol.iterator, N = "@@iterator";
|
|
44
44
|
function Y(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
@@ -59,22 +59,22 @@ function Lr() {
|
|
|
59
59
|
{
|
|
60
60
|
var d = M.ReactDebugCurrentFrame, w = d.getStackAddendum();
|
|
61
61
|
w !== "" && (r += "%s", l = l.concat([w]));
|
|
62
|
-
var
|
|
62
|
+
var R = l.map(function(v) {
|
|
63
63
|
return String(v);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
R.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, R);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
var he = !1, pe = !1, Q = !1, X = !1, P = !1, _;
|
|
69
69
|
_ = Symbol.for("react.module.reference");
|
|
70
70
|
function $(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === s || P || e === f || e === j || e === o || X || e === p || he || pe || Q || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === s || P || e === f || e === j || e === o || X || e === p || he || pe || Q || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === E || e.$$typeof === h || e.$$typeof === C || e.$$typeof === g || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
75
|
e.$$typeof === _ || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function _e(e, r, l) {
|
|
78
78
|
var d = e.displayName;
|
|
79
79
|
if (d)
|
|
80
80
|
return d;
|
|
@@ -107,21 +107,21 @@ function Lr() {
|
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
110
|
+
case C:
|
|
111
111
|
var r = e;
|
|
112
112
|
return ge(r) + ".Consumer";
|
|
113
113
|
case h:
|
|
114
114
|
var l = e;
|
|
115
115
|
return ge(l._context) + ".Provider";
|
|
116
116
|
case g:
|
|
117
|
-
return
|
|
118
|
-
case
|
|
117
|
+
return _e(e, e.render, "ForwardRef");
|
|
118
|
+
case E:
|
|
119
119
|
var d = e.displayName || null;
|
|
120
120
|
return d !== null ? d : F(e.type) || "Memo";
|
|
121
121
|
case m: {
|
|
122
|
-
var w = e,
|
|
122
|
+
var w = e, R = w._payload, v = w._init;
|
|
123
123
|
try {
|
|
124
|
-
return F(v(
|
|
124
|
+
return F(v(R));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,18 +129,18 @@ function Lr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var G = Object.assign, U = 0,
|
|
133
|
-
function
|
|
132
|
+
var G = Object.assign, U = 0, Se, Te, ke, re, De, xe, ne;
|
|
133
|
+
function Ie() {
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
Ie.__reactDisabledLog = !0;
|
|
136
136
|
function $e() {
|
|
137
137
|
{
|
|
138
138
|
if (U === 0) {
|
|
139
|
-
|
|
139
|
+
Se = console.log, Te = console.info, ke = console.warn, re = console.error, De = console.group, xe = console.groupCollapsed, ne = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: Ie,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -166,19 +166,19 @@ function Lr() {
|
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
168
|
log: G({}, e, {
|
|
169
|
-
value:
|
|
169
|
+
value: Se
|
|
170
170
|
}),
|
|
171
171
|
info: G({}, e, {
|
|
172
|
-
value:
|
|
172
|
+
value: Te
|
|
173
173
|
}),
|
|
174
174
|
warn: G({}, e, {
|
|
175
|
-
value:
|
|
175
|
+
value: ke
|
|
176
176
|
}),
|
|
177
177
|
error: G({}, e, {
|
|
178
178
|
value: re
|
|
179
179
|
}),
|
|
180
180
|
group: G({}, e, {
|
|
181
|
-
value:
|
|
181
|
+
value: De
|
|
182
182
|
}),
|
|
183
183
|
groupCollapsed: G({}, e, {
|
|
184
184
|
value: xe
|
|
@@ -210,7 +210,7 @@ function Lr() {
|
|
|
210
210
|
var He = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
oe = new He();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Le(e, r) {
|
|
214
214
|
if (!e || me)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
@@ -222,8 +222,8 @@ function Lr() {
|
|
|
222
222
|
me = !0;
|
|
223
223
|
var w = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var R;
|
|
226
|
+
R = z.current, z.current = null, $e();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
229
|
var v = function() {
|
|
@@ -276,13 +276,13 @@ function Lr() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
me = !1, z.current =
|
|
279
|
+
me = !1, z.current = R, le(), Error.prepareStackTrace = w;
|
|
280
280
|
}
|
|
281
281
|
var ue = e ? e.displayName || e.name : "", te = ue ? ie(ue) : "";
|
|
282
282
|
return typeof e == "function" && oe.set(e, te), te;
|
|
283
283
|
}
|
|
284
284
|
function Fe(e, r, l) {
|
|
285
|
-
return
|
|
285
|
+
return Le(e, !1);
|
|
286
286
|
}
|
|
287
287
|
function Me(e) {
|
|
288
288
|
var r = e.prototype;
|
|
@@ -292,7 +292,7 @@ function Lr() {
|
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return
|
|
295
|
+
return Le(e, Me(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
297
|
return ie(e);
|
|
298
298
|
switch (e) {
|
|
@@ -305,12 +305,12 @@ function Lr() {
|
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case g:
|
|
307
307
|
return Fe(e.render);
|
|
308
|
-
case
|
|
308
|
+
case E:
|
|
309
309
|
return ae(e.type, r, l);
|
|
310
310
|
case m: {
|
|
311
|
-
var d = e, w = d._payload,
|
|
311
|
+
var d = e, w = d._payload, R = d._init;
|
|
312
312
|
try {
|
|
313
|
-
return ae(
|
|
313
|
+
return ae(R(w), r, l);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -327,9 +327,9 @@ function Lr() {
|
|
|
327
327
|
}
|
|
328
328
|
function I(e, r, l, d, w) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
330
|
+
var R = Function.call.bind(J);
|
|
331
331
|
for (var v in e)
|
|
332
|
-
if (
|
|
332
|
+
if (R(e, v)) {
|
|
333
333
|
var x = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof e[v] != "function") {
|
|
@@ -419,7 +419,7 @@ function Lr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var Ot = function(e, r, l, d, w,
|
|
422
|
+
var Ot = function(e, r, l, d, w, R, v) {
|
|
423
423
|
var x = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: i,
|
|
@@ -429,7 +429,7 @@ function Lr() {
|
|
|
429
429
|
ref: l,
|
|
430
430
|
props: v,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: R
|
|
433
433
|
};
|
|
434
434
|
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
@@ -450,14 +450,14 @@ function Lr() {
|
|
|
450
450
|
};
|
|
451
451
|
function At(e, r, l, d, w) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
453
|
+
var R, v = {}, x = null, A = null;
|
|
454
454
|
l !== void 0 && (rt(l), x = "" + l), kt(r) && (rt(r.key), x = "" + r.key), Tt(r) && (A = r.ref, Dt(r, w));
|
|
455
|
-
for (
|
|
456
|
-
J.call(r,
|
|
455
|
+
for (R in r)
|
|
456
|
+
J.call(r, R) && !St.hasOwnProperty(R) && (v[R] = r[R]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var k = e.defaultProps;
|
|
459
|
-
for (
|
|
460
|
-
v[
|
|
459
|
+
for (R in k)
|
|
460
|
+
v[R] === void 0 && (v[R] = k[R]);
|
|
461
461
|
}
|
|
462
462
|
if (x || A) {
|
|
463
463
|
var D = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
@@ -534,7 +534,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
534
534
|
else if (e) {
|
|
535
535
|
var w = Y(e);
|
|
536
536
|
if (typeof w == "function" && w !== e.entries)
|
|
537
|
-
for (var
|
|
537
|
+
for (var R = w.call(e), v; !(v = R.next()).done; )
|
|
538
538
|
ze(v.value) && st(v.value, r);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
@@ -549,7 +549,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
549
549
|
l = r.propTypes;
|
|
550
550
|
else if (typeof r == "object" && (r.$$typeof === g || // Note: Memo only checks outer props here.
|
|
551
551
|
// Inner props are checked in the reconciler.
|
|
552
|
-
r.$$typeof ===
|
|
552
|
+
r.$$typeof === E))
|
|
553
553
|
l = r.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
@@ -577,7 +577,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
var ct = {};
|
|
580
|
-
function dt(e, r, l, d, w,
|
|
580
|
+
function dt(e, r, l, d, w, R) {
|
|
581
581
|
{
|
|
582
582
|
var v = $(e);
|
|
583
583
|
if (!v) {
|
|
@@ -588,7 +588,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
588
588
|
var k;
|
|
589
589
|
e === null ? k = "null" : O(e) ? k = "array" : e !== void 0 && e.$$typeof === i ? (k = "<" + (F(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : k = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, x);
|
|
590
590
|
}
|
|
591
|
-
var D = At(e, r, l, w,
|
|
591
|
+
var D = At(e, r, l, w, R);
|
|
592
592
|
if (D == null)
|
|
593
593
|
return D;
|
|
594
594
|
if (v) {
|
|
@@ -628,8 +628,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
628
628
|
return dt(e, r, l, !1);
|
|
629
629
|
}
|
|
630
630
|
var Wt = Bt, Nt = Mt;
|
|
631
|
-
|
|
632
|
-
}()),
|
|
631
|
+
Ce.Fragment = c, Ce.jsx = Wt, Ce.jsxs = Nt;
|
|
632
|
+
}()), Ce;
|
|
633
633
|
}
|
|
634
634
|
process.env.NODE_ENV === "production" ? Xe.exports = Ir() : Xe.exports = Lr();
|
|
635
635
|
var t = Xe.exports;
|
|
@@ -658,16 +658,16 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
658
658
|
width: "100%",
|
|
659
659
|
display: "flex",
|
|
660
660
|
flexWrap: "nowrap",
|
|
661
|
-
children: c.map((
|
|
662
|
-
const j = s === g, o = g === 0,
|
|
661
|
+
children: c.map((C, g) => {
|
|
662
|
+
const j = s === g, o = g === 0, E = g === c.length - 1, m = s > g;
|
|
663
663
|
let p = `${Ue}px`;
|
|
664
664
|
const S = `calc(100% - ((${Ue * (c.length - 1)}px) - (${c.length - 1} * ${vt * 2}px)))`;
|
|
665
|
-
return j ? p = S : (o ||
|
|
665
|
+
return j ? p = S : (o || E) && (p = `${Ue - vt}px`), /* @__PURE__ */ t.jsx(
|
|
666
666
|
b,
|
|
667
667
|
{
|
|
668
668
|
width: p,
|
|
669
669
|
opacity: m || j ? 1 : 0.2,
|
|
670
|
-
paddingRight:
|
|
670
|
+
paddingRight: E ? "0" : "6px",
|
|
671
671
|
paddingLeft: o ? "0" : "6px",
|
|
672
672
|
transition: "width 0.4s ease-in-out, opacity 0.4s ease-in-out",
|
|
673
673
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -697,7 +697,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
697
697
|
}
|
|
698
698
|
) }
|
|
699
699
|
);
|
|
700
|
-
}, Qr =
|
|
700
|
+
}, Qr = Re.memo(Or), en = ({
|
|
701
701
|
children: n,
|
|
702
702
|
...i
|
|
703
703
|
}) => /* @__PURE__ */ t.jsx(
|
|
@@ -710,7 +710,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
710
710
|
} : {
|
|
711
711
|
href: n
|
|
712
712
|
};
|
|
713
|
-
}, Ze =
|
|
713
|
+
}, Ze = Ct(
|
|
714
714
|
(n, i) => {
|
|
715
715
|
const {
|
|
716
716
|
label: u,
|
|
@@ -718,7 +718,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
718
718
|
mainTextFontSize: f,
|
|
719
719
|
linkComponent: s,
|
|
720
720
|
href: h,
|
|
721
|
-
...
|
|
721
|
+
...C
|
|
722
722
|
} = n, g = s || W, j = de(h, !!s);
|
|
723
723
|
return /* @__PURE__ */ t.jsxs(
|
|
724
724
|
b,
|
|
@@ -737,7 +737,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
737
737
|
width: ["100%", null, null, "fit-content"],
|
|
738
738
|
cursor: "pointer",
|
|
739
739
|
...j,
|
|
740
|
-
...
|
|
740
|
+
...C,
|
|
741
741
|
children: [
|
|
742
742
|
/* @__PURE__ */ t.jsx(
|
|
743
743
|
K,
|
|
@@ -752,7 +752,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
752
752
|
}
|
|
753
753
|
),
|
|
754
754
|
/* @__PURE__ */ t.jsxs(
|
|
755
|
-
|
|
755
|
+
y,
|
|
756
756
|
{ alignItems: "center", gap: "1", width: ["100%", null, null, "auto"], children: [
|
|
757
757
|
/* @__PURE__ */ t.jsx(
|
|
758
758
|
L,
|
|
@@ -794,11 +794,11 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
),
|
|
797
|
+
), Ae = Ct(
|
|
798
798
|
(n, i) => {
|
|
799
799
|
const { children: u, isSelected: c, ...f } = n, s = n.backgroundColor || (c ? "tints.lightCream" : "transparent");
|
|
800
800
|
return /* @__PURE__ */ t.jsx(
|
|
801
|
-
|
|
801
|
+
yt,
|
|
802
802
|
{
|
|
803
803
|
ref: i,
|
|
804
804
|
borderRadius: "full",
|
|
@@ -837,17 +837,17 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
837
837
|
button: f,
|
|
838
838
|
backgroundColor: s = "viridian.wash",
|
|
839
839
|
onClick: h,
|
|
840
|
-
href:
|
|
840
|
+
href: C,
|
|
841
841
|
linkComponent: g
|
|
842
842
|
}) => {
|
|
843
|
-
const m = g || W, p = de(
|
|
843
|
+
const m = g || W, p = de(C, !!g), S = Pe({
|
|
844
844
|
base: !1,
|
|
845
845
|
tablet: !1,
|
|
846
846
|
largeTablet: !1,
|
|
847
847
|
desktop: !0
|
|
848
848
|
});
|
|
849
849
|
return /* @__PURE__ */ t.jsxs(
|
|
850
|
-
|
|
850
|
+
y,
|
|
851
851
|
{
|
|
852
852
|
direction: ["row", null, null, "column"],
|
|
853
853
|
alignItems: ["center"],
|
|
@@ -869,7 +869,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
869
869
|
border: "1px solid",
|
|
870
870
|
borderColor: "tints.white"
|
|
871
871
|
},
|
|
872
|
-
as: S ?
|
|
872
|
+
as: S ? y : m,
|
|
873
873
|
...S ? {} : p,
|
|
874
874
|
children: [
|
|
875
875
|
/* @__PURE__ */ t.jsx(
|
|
@@ -902,7 +902,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
902
902
|
}
|
|
903
903
|
),
|
|
904
904
|
/* @__PURE__ */ t.jsxs(
|
|
905
|
-
|
|
905
|
+
y,
|
|
906
906
|
{
|
|
907
907
|
direction: ["column", null, null, "row"],
|
|
908
908
|
justifyContent: [null, null, null, "space-between"],
|
|
@@ -922,7 +922,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
922
922
|
gap: [null, null, null, 3],
|
|
923
923
|
children: [
|
|
924
924
|
/* @__PURE__ */ t.jsxs(
|
|
925
|
-
|
|
925
|
+
y,
|
|
926
926
|
{ direction: "column", justifyContent: "center", height: "100%", children: [
|
|
927
927
|
/* @__PURE__ */ t.jsx(
|
|
928
928
|
L,
|
|
@@ -1020,11 +1020,11 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1020
1020
|
bottomNavButtons: f,
|
|
1021
1021
|
spotlightCards: s,
|
|
1022
1022
|
bottomButton: h,
|
|
1023
|
-
hasBackButton:
|
|
1023
|
+
hasBackButton: C = !0,
|
|
1024
1024
|
onBackClick: g,
|
|
1025
1025
|
hasOnlySpotlightCards: j = !1,
|
|
1026
1026
|
hasSearch: o = !1,
|
|
1027
|
-
onSearch:
|
|
1027
|
+
onSearch: E = () => ({}),
|
|
1028
1028
|
topOffset: m
|
|
1029
1029
|
}) => {
|
|
1030
1030
|
var Q, X;
|
|
@@ -1037,7 +1037,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1037
1037
|
Y((P) => P + 1);
|
|
1038
1038
|
}, he = Et(
|
|
1039
1039
|
Pr((P) => {
|
|
1040
|
-
|
|
1040
|
+
E(P), fe();
|
|
1041
1041
|
}, 100),
|
|
1042
1042
|
[]
|
|
1043
1043
|
);
|
|
@@ -1131,13 +1131,13 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1131
1131
|
gap: o ? "4" : "0",
|
|
1132
1132
|
children: [
|
|
1133
1133
|
p ? null : /* @__PURE__ */ t.jsxs(
|
|
1134
|
-
|
|
1134
|
+
y,
|
|
1135
1135
|
{
|
|
1136
1136
|
width: "100%",
|
|
1137
1137
|
justifyContent: "space-between",
|
|
1138
1138
|
alignItems: "center",
|
|
1139
1139
|
children: [
|
|
1140
|
-
|
|
1140
|
+
C ? /* @__PURE__ */ t.jsx(
|
|
1141
1141
|
ce,
|
|
1142
1142
|
{
|
|
1143
1143
|
icon: /* @__PURE__ */ t.jsx(mr, {}),
|
|
@@ -1239,7 +1239,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
) : null,
|
|
1241
1241
|
/* @__PURE__ */ t.jsxs(
|
|
1242
|
-
|
|
1242
|
+
y,
|
|
1243
1243
|
{
|
|
1244
1244
|
position: [null, null, null, "relative"],
|
|
1245
1245
|
flexDirection: "column",
|
|
@@ -1282,12 +1282,12 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1282
1282
|
onSearchClick: f,
|
|
1283
1283
|
onMenuClick: s,
|
|
1284
1284
|
hasSearch: h = !1,
|
|
1285
|
-
logoLink:
|
|
1285
|
+
logoLink: C = "https://www.everlywell.com",
|
|
1286
1286
|
setTopOffset: g,
|
|
1287
1287
|
linkComponent: j,
|
|
1288
1288
|
onLogoClick: o
|
|
1289
1289
|
}) => {
|
|
1290
|
-
const
|
|
1290
|
+
const E = dr(null), [m, p] = V(!1);
|
|
1291
1291
|
Z(() => {
|
|
1292
1292
|
const N = () => p(!0), Y = () => p(!1);
|
|
1293
1293
|
return window.addEventListener(qe, N), window.addEventListener(Qe, Y), () => {
|
|
@@ -1298,8 +1298,8 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1298
1298
|
};
|
|
1299
1299
|
}, []);
|
|
1300
1300
|
const S = Et(() => {
|
|
1301
|
-
if (
|
|
1302
|
-
const N =
|
|
1301
|
+
if (E.current) {
|
|
1302
|
+
const N = E.current.getBoundingClientRect();
|
|
1303
1303
|
g(N.bottom);
|
|
1304
1304
|
}
|
|
1305
1305
|
}, []);
|
|
@@ -1308,7 +1308,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1308
1308
|
}, [S]), /* @__PURE__ */ t.jsx(
|
|
1309
1309
|
b,
|
|
1310
1310
|
{
|
|
1311
|
-
ref:
|
|
1311
|
+
ref: E,
|
|
1312
1312
|
paddingY: "4",
|
|
1313
1313
|
paddingX: [4, null, null, 12],
|
|
1314
1314
|
borderBottom: "1px solid",
|
|
@@ -1320,10 +1320,10 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1320
1320
|
zIndex: ["sticky", null, null, m ? "modal" : "sticky"],
|
|
1321
1321
|
onMouseEnter: S,
|
|
1322
1322
|
children: /* @__PURE__ */ t.jsxs(
|
|
1323
|
-
|
|
1323
|
+
y,
|
|
1324
1324
|
{ justifyContent: "space-between", alignItems: "center", children: [
|
|
1325
1325
|
/* @__PURE__ */ t.jsxs(
|
|
1326
|
-
|
|
1326
|
+
y,
|
|
1327
1327
|
{ alignItems: "center", gap: "5", children: [
|
|
1328
1328
|
/* @__PURE__ */ t.jsx(
|
|
1329
1329
|
b,
|
|
@@ -1331,18 +1331,18 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1331
1331
|
"aria-label": "Go to homepage",
|
|
1332
1332
|
onClick: o,
|
|
1333
1333
|
as: j || W,
|
|
1334
|
-
...de(
|
|
1334
|
+
...de(C, !!j),
|
|
1335
1335
|
children: /* @__PURE__ */ t.jsx(_t, { width: "116px" })
|
|
1336
1336
|
}
|
|
1337
1337
|
),
|
|
1338
1338
|
/* @__PURE__ */ t.jsx(
|
|
1339
|
-
|
|
1339
|
+
y,
|
|
1340
1340
|
{ display: ["none", null, null, "flex"], children: n }
|
|
1341
1341
|
)
|
|
1342
1342
|
] }
|
|
1343
1343
|
),
|
|
1344
1344
|
/* @__PURE__ */ t.jsxs(
|
|
1345
|
-
|
|
1345
|
+
y,
|
|
1346
1346
|
{ alignItems: "center", gap: "2", children: [
|
|
1347
1347
|
/* @__PURE__ */ t.jsx(
|
|
1348
1348
|
b,
|
|
@@ -1418,7 +1418,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1418
1418
|
borderBottomWidth: "1px",
|
|
1419
1419
|
borderColor: "tints.lightCream",
|
|
1420
1420
|
children: /* @__PURE__ */ t.jsxs(
|
|
1421
|
-
|
|
1421
|
+
y,
|
|
1422
1422
|
{ justify: "space-between", align: "center", children: [
|
|
1423
1423
|
/* @__PURE__ */ t.jsx(Ge, { w: "120px", h: "48px" }),
|
|
1424
1424
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1440,7 +1440,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1440
1440
|
ft,
|
|
1441
1441
|
{ spacing: 4, ml: "auto", children: [
|
|
1442
1442
|
/* @__PURE__ */ t.jsx(
|
|
1443
|
-
|
|
1443
|
+
Oe,
|
|
1444
1444
|
{
|
|
1445
1445
|
width: "120px",
|
|
1446
1446
|
height: "48px",
|
|
@@ -1449,11 +1449,11 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
),
|
|
1451
1451
|
" ",
|
|
1452
|
-
/* @__PURE__ */ t.jsx(
|
|
1452
|
+
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1453
1453
|
" ",
|
|
1454
|
-
/* @__PURE__ */ t.jsx(
|
|
1454
|
+
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1455
1455
|
" ",
|
|
1456
|
-
/* @__PURE__ */ t.jsx(
|
|
1456
|
+
/* @__PURE__ */ t.jsx(Oe, { width: "48px", height: "48px" }),
|
|
1457
1457
|
" "
|
|
1458
1458
|
] }
|
|
1459
1459
|
)
|
|
@@ -1466,10 +1466,10 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1466
1466
|
onSearchCallback: i,
|
|
1467
1467
|
isActive: u
|
|
1468
1468
|
}) => {
|
|
1469
|
-
const [c, f] = V(""), [s, h] = V([]),
|
|
1469
|
+
const [c, f] = V(""), [s, h] = V([]), C = (o, E) => {
|
|
1470
1470
|
if (!o) return [];
|
|
1471
1471
|
const m = o.toLowerCase();
|
|
1472
|
-
return
|
|
1472
|
+
return E.filter((p) => {
|
|
1473
1473
|
const S = p.label.toLowerCase().includes(m), N = typeof p.additionalContent == "string" && p.additionalContent.toLowerCase().includes(m);
|
|
1474
1474
|
return S || N;
|
|
1475
1475
|
}).sort((p, S) => p.label.localeCompare(S.label));
|
|
@@ -1478,8 +1478,8 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1478
1478
|
h([]);
|
|
1479
1479
|
return;
|
|
1480
1480
|
}
|
|
1481
|
-
const
|
|
1482
|
-
h(
|
|
1481
|
+
const E = C(o, n);
|
|
1482
|
+
h(E), i && i(o, E);
|
|
1483
1483
|
}, j = () => {
|
|
1484
1484
|
f(""), h([]);
|
|
1485
1485
|
};
|
|
@@ -1495,8 +1495,8 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1495
1495
|
const i = /* @__PURE__ */ new Set();
|
|
1496
1496
|
return n.reduce((u, c) => {
|
|
1497
1497
|
var s;
|
|
1498
|
-
const f = ((s = c.sections) == null ? void 0 : s.reduce((h,
|
|
1499
|
-
const g =
|
|
1498
|
+
const f = ((s = c.sections) == null ? void 0 : s.reduce((h, C) => {
|
|
1499
|
+
const g = C.links.filter((j) => i.has(j.label) || j.isSearchable !== !0 ? !1 : (i.add(j.label), !0));
|
|
1500
1500
|
return [...h, ...g];
|
|
1501
1501
|
}, [])) ?? [];
|
|
1502
1502
|
return [...u, ...f];
|
|
@@ -1509,11 +1509,11 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1509
1509
|
hasSearch: f = !0,
|
|
1510
1510
|
onSearchClick: s,
|
|
1511
1511
|
registrationUrl: h,
|
|
1512
|
-
profileUrl:
|
|
1512
|
+
profileUrl: C = "https://secure.everlywell.com/login",
|
|
1513
1513
|
mobileBottomButtons: g = [],
|
|
1514
1514
|
numberOfCartItems: j = 0,
|
|
1515
1515
|
linkComponent: o,
|
|
1516
|
-
onSearchCallback:
|
|
1516
|
+
onSearchCallback: E,
|
|
1517
1517
|
onLinkClick: m,
|
|
1518
1518
|
onCategoryOpen: p,
|
|
1519
1519
|
onMobileMenuOpen: S,
|
|
@@ -1525,7 +1525,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1525
1525
|
onShopAllProductsClick: he
|
|
1526
1526
|
}) => {
|
|
1527
1527
|
var J, be, je;
|
|
1528
|
-
const [pe, Q] = V(!1), [X, P] = V(!1), [_, $] = V(null), [
|
|
1528
|
+
const [pe, Q] = V(!1), [X, P] = V(!1), [_, $] = V(null), [_e, ge] = V(!1), [F, G] = V(!1), [U, Se] = V(0), Te = Pe({
|
|
1529
1529
|
base: !1,
|
|
1530
1530
|
tablet: !1,
|
|
1531
1531
|
largeTablet: !1,
|
|
@@ -1533,33 +1533,33 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1533
1533
|
}) ?? !1;
|
|
1534
1534
|
Z(() => {
|
|
1535
1535
|
le(), $(null);
|
|
1536
|
-
}, [
|
|
1536
|
+
}, [Te]);
|
|
1537
1537
|
const {
|
|
1538
|
-
query:
|
|
1538
|
+
query: ke,
|
|
1539
1539
|
results: re,
|
|
1540
|
-
handleSearch:
|
|
1540
|
+
handleSearch: De
|
|
1541
1541
|
} = Wr({
|
|
1542
1542
|
source: Nr(n),
|
|
1543
|
-
onSearchCallback:
|
|
1543
|
+
onSearchCallback: E,
|
|
1544
1544
|
isActive: X
|
|
1545
|
-
}), xe = re.length > 0, ne = o || W,
|
|
1546
|
-
|
|
1545
|
+
}), xe = re.length > 0, ne = o || W, Ie = de(fe, !!o), $e = ke && /* @__PURE__ */ t.jsxs(
|
|
1546
|
+
y,
|
|
1547
1547
|
{ gap: xe ? "6" : 0, direction: "column", children: [
|
|
1548
1548
|
xe ? /* @__PURE__ */ t.jsx(L, { color: "tints.uiGrey", children: `${re.length} Results` }) : /* @__PURE__ */ t.jsxs(
|
|
1549
|
-
|
|
1549
|
+
y,
|
|
1550
1550
|
{ direction: "column", gap: "6", alignItems: "flex-start", children: [
|
|
1551
1551
|
/* @__PURE__ */ t.jsx(
|
|
1552
1552
|
L,
|
|
1553
1553
|
{ color: "tints.uiGrey", children: "We didn't find what you were looking for." }
|
|
1554
1554
|
),
|
|
1555
1555
|
/* @__PURE__ */ t.jsx(
|
|
1556
|
-
|
|
1556
|
+
yt,
|
|
1557
1557
|
{
|
|
1558
1558
|
as: ne,
|
|
1559
1559
|
onClick: he,
|
|
1560
1560
|
_hover: { textDecoration: "none" },
|
|
1561
1561
|
width: ["100%", null, null, "auto"],
|
|
1562
|
-
...
|
|
1562
|
+
...Ie,
|
|
1563
1563
|
children: "Shop all products"
|
|
1564
1564
|
}
|
|
1565
1565
|
)
|
|
@@ -1607,8 +1607,8 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1607
1607
|
);
|
|
1608
1608
|
};
|
|
1609
1609
|
}, []), Z(() => {
|
|
1610
|
-
!
|
|
1611
|
-
}, [
|
|
1610
|
+
!_e && !F && ($(null), P(!1));
|
|
1611
|
+
}, [_e, F]), Z(() => {
|
|
1612
1612
|
let a = window.location.href;
|
|
1613
1613
|
const I = () => {
|
|
1614
1614
|
const O = window.location.href;
|
|
@@ -1620,7 +1620,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1620
1620
|
}, []);
|
|
1621
1621
|
const oe = n == null ? void 0 : n.map(
|
|
1622
1622
|
(a, I) => /* @__PURE__ */ t.jsx(
|
|
1623
|
-
|
|
1623
|
+
Ae,
|
|
1624
1624
|
{
|
|
1625
1625
|
onMouseEnter: () => {
|
|
1626
1626
|
ie(a), p == null || p(a.label);
|
|
@@ -1658,19 +1658,19 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1658
1658
|
},
|
|
1659
1659
|
I.label
|
|
1660
1660
|
);
|
|
1661
|
-
}),
|
|
1661
|
+
}), Le = /* @__PURE__ */ t.jsxs(
|
|
1662
1662
|
t.Fragment,
|
|
1663
1663
|
{ children: [
|
|
1664
1664
|
/* @__PURE__ */ t.jsx(
|
|
1665
|
-
|
|
1665
|
+
Ae,
|
|
1666
1666
|
{
|
|
1667
1667
|
as: W,
|
|
1668
|
-
href:
|
|
1668
|
+
href: C,
|
|
1669
1669
|
width: "100%",
|
|
1670
1670
|
backgroundColor: "tints.cream",
|
|
1671
1671
|
onClick: M,
|
|
1672
1672
|
children: /* @__PURE__ */ t.jsxs(
|
|
1673
|
-
|
|
1673
|
+
y,
|
|
1674
1674
|
{ gap: "2", children: [
|
|
1675
1675
|
"My Everly",
|
|
1676
1676
|
/* @__PURE__ */ t.jsx(K, { as: pt, size: 24 })
|
|
@@ -1680,7 +1680,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1680
1680
|
"my-everly"
|
|
1681
1681
|
),
|
|
1682
1682
|
/* @__PURE__ */ t.jsx(
|
|
1683
|
-
|
|
1683
|
+
Ae,
|
|
1684
1684
|
{
|
|
1685
1685
|
as: W,
|
|
1686
1686
|
width: "100%",
|
|
@@ -1688,10 +1688,10 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1688
1688
|
backgroundColor: "tints.cream",
|
|
1689
1689
|
onClick: Y,
|
|
1690
1690
|
children: /* @__PURE__ */ t.jsxs(
|
|
1691
|
-
|
|
1691
|
+
y,
|
|
1692
1692
|
{ gap: "2", children: [
|
|
1693
1693
|
"Register kit",
|
|
1694
|
-
/* @__PURE__ */ t.jsx(K, { as:
|
|
1694
|
+
/* @__PURE__ */ t.jsx(K, { as: yr, size: 24 })
|
|
1695
1695
|
] }
|
|
1696
1696
|
)
|
|
1697
1697
|
},
|
|
@@ -1699,13 +1699,13 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1699
1699
|
)
|
|
1700
1700
|
] }
|
|
1701
1701
|
), Fe = /* @__PURE__ */ t.jsxs(
|
|
1702
|
-
|
|
1702
|
+
y,
|
|
1703
1703
|
{ gap: "2", flexDirection: "column", children: [
|
|
1704
1704
|
g,
|
|
1705
|
-
|
|
1705
|
+
Le
|
|
1706
1706
|
] }
|
|
1707
1707
|
), Me = _ ? /* @__PURE__ */ t.jsx(
|
|
1708
|
-
|
|
1708
|
+
y,
|
|
1709
1709
|
{ direction: ["column", null, null, "row"], gap: "8", children: (be = _ == null ? void 0 : _.sections) == null ? void 0 : be.map((a, I) => {
|
|
1710
1710
|
const q = [];
|
|
1711
1711
|
for (let O = 0; O < a.links.length; O += 3)
|
|
@@ -1723,13 +1723,13 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
),
|
|
1725
1725
|
/* @__PURE__ */ t.jsx(
|
|
1726
|
-
|
|
1726
|
+
y,
|
|
1727
1727
|
{
|
|
1728
1728
|
flexDirection: ["column", null, null, "row"],
|
|
1729
1729
|
gap: [null, null, null, 8],
|
|
1730
1730
|
children: q == null ? void 0 : q.map(
|
|
1731
1731
|
(O, Be) => /* @__PURE__ */ t.jsx(
|
|
1732
|
-
|
|
1732
|
+
y,
|
|
1733
1733
|
{
|
|
1734
1734
|
flexDirection: ["column"],
|
|
1735
1735
|
gap: [null, null, null, 5],
|
|
@@ -1768,7 +1768,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1768
1768
|
{
|
|
1769
1769
|
desktopTopButtons: oe,
|
|
1770
1770
|
kitRegistrationElement: /* @__PURE__ */ t.jsx(
|
|
1771
|
-
|
|
1771
|
+
Ae,
|
|
1772
1772
|
{
|
|
1773
1773
|
as: W,
|
|
1774
1774
|
href: h,
|
|
@@ -1779,7 +1779,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1779
1779
|
),
|
|
1780
1780
|
profileElement: /* @__PURE__ */ t.jsx(
|
|
1781
1781
|
W,
|
|
1782
|
-
{ href:
|
|
1782
|
+
{ href: C, "aria-label": "login", onClick: M, children: /* @__PURE__ */ t.jsx(ce, { icon: /* @__PURE__ */ t.jsx(K, { as: pt }), "aria-label": "Profile" }) }
|
|
1783
1783
|
),
|
|
1784
1784
|
cartElement: /* @__PURE__ */ t.jsx(
|
|
1785
1785
|
Br,
|
|
@@ -1799,7 +1799,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1799
1799
|
logoLink: c,
|
|
1800
1800
|
linkComponent: o,
|
|
1801
1801
|
onLogoClick: T,
|
|
1802
|
-
setTopOffset:
|
|
1802
|
+
setTopOffset: Se
|
|
1803
1803
|
}
|
|
1804
1804
|
),
|
|
1805
1805
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1840,7 +1840,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1840
1840
|
onClose: () => P(!1),
|
|
1841
1841
|
title: "Search",
|
|
1842
1842
|
navDrawerLinks: $e,
|
|
1843
|
-
onSearch:
|
|
1843
|
+
onSearch: De,
|
|
1844
1844
|
hasSearch: !0,
|
|
1845
1845
|
hasBackButton: !1,
|
|
1846
1846
|
topOffset: U
|
|
@@ -1855,7 +1855,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1855
1855
|
u && u(s);
|
|
1856
1856
|
};
|
|
1857
1857
|
return /* @__PURE__ */ t.jsx(
|
|
1858
|
-
|
|
1858
|
+
y,
|
|
1859
1859
|
{ direction: "column", gap: 6, children: n.map(
|
|
1860
1860
|
(s) => /* @__PURE__ */ t.jsx(
|
|
1861
1861
|
L,
|
|
@@ -1889,7 +1889,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1889
1889
|
/* @__PURE__ */ t.jsx(
|
|
1890
1890
|
K,
|
|
1891
1891
|
{
|
|
1892
|
-
as:
|
|
1892
|
+
as: Cr,
|
|
1893
1893
|
size: "sm",
|
|
1894
1894
|
color: "viridian.lighter",
|
|
1895
1895
|
transform: f ? "rotate(-180deg)" : "rotate(0deg)",
|
|
@@ -1924,12 +1924,12 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1924
1924
|
largeTablet: !0,
|
|
1925
1925
|
desktop: !0
|
|
1926
1926
|
}) ? /* @__PURE__ */ t.jsx(
|
|
1927
|
-
|
|
1927
|
+
y,
|
|
1928
1928
|
{
|
|
1929
1929
|
justify: "space-between",
|
|
1930
1930
|
align: "flex-start",
|
|
1931
1931
|
children: /* @__PURE__ */ t.jsx(
|
|
1932
|
-
|
|
1932
|
+
y,
|
|
1933
1933
|
{ gap: 120, children: n.map(
|
|
1934
1934
|
({ title: f, links: s }) => /* @__PURE__ */ t.jsx(
|
|
1935
1935
|
zr,
|
|
@@ -1989,10 +1989,10 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
1989
1989
|
newsletterLabel: c,
|
|
1990
1990
|
onLinkClick: f
|
|
1991
1991
|
}) => {
|
|
1992
|
-
const [s, h] =
|
|
1992
|
+
const [s, h] = Re.useState(""), C = () => {
|
|
1993
1993
|
s && i && (i(s), h(""));
|
|
1994
1994
|
}, g = (o) => {
|
|
1995
|
-
o.key === "Enter" &&
|
|
1995
|
+
o.key === "Enter" && C();
|
|
1996
1996
|
}, j = (o) => {
|
|
1997
1997
|
f && f(o);
|
|
1998
1998
|
};
|
|
@@ -2037,7 +2037,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
2037
2037
|
height: "24px",
|
|
2038
2038
|
opacity: 0.66,
|
|
2039
2039
|
cursor: "pointer",
|
|
2040
|
-
onClick:
|
|
2040
|
+
onClick: C,
|
|
2041
2041
|
"data-testid": "arrow-right-icon",
|
|
2042
2042
|
role: "button",
|
|
2043
2043
|
"aria-label": "Submit"
|
|
@@ -2056,7 +2056,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
2056
2056
|
{ color: "viridian.lighter", marginBottom: 4, size: "lg", children: u }
|
|
2057
2057
|
),
|
|
2058
2058
|
/* @__PURE__ */ t.jsx(
|
|
2059
|
-
|
|
2059
|
+
y,
|
|
2060
2060
|
{ gap: 3, children: n == null ? void 0 : n.map(
|
|
2061
2061
|
(o) => /* @__PURE__ */ t.jsx(
|
|
2062
2062
|
W,
|
|
@@ -2107,7 +2107,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
2107
2107
|
)
|
|
2108
2108
|
);
|
|
2109
2109
|
return /* @__PURE__ */ t.jsxs(
|
|
2110
|
-
|
|
2110
|
+
y,
|
|
2111
2111
|
{
|
|
2112
2112
|
direction: ["column", "column", "row"],
|
|
2113
2113
|
justify: "space-between",
|
|
@@ -2115,7 +2115,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
2115
2115
|
gap: [6, 6, 0],
|
|
2116
2116
|
children: [
|
|
2117
2117
|
/* @__PURE__ */ t.jsx(
|
|
2118
|
-
|
|
2118
|
+
y,
|
|
2119
2119
|
{
|
|
2120
2120
|
direction: "row",
|
|
2121
2121
|
flexWrap: "wrap",
|
|
@@ -2134,7 +2134,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
2134
2134
|
]
|
|
2135
2135
|
}
|
|
2136
2136
|
);
|
|
2137
|
-
}, nn = ({
|
|
2137
|
+
}, nn = Re.forwardRef(({
|
|
2138
2138
|
navigationSections: n = [],
|
|
2139
2139
|
disclaimer: i,
|
|
2140
2140
|
newsletterLabel: u,
|
|
@@ -2142,24 +2142,24 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
2142
2142
|
socialLinks: f,
|
|
2143
2143
|
complianceLinks: s,
|
|
2144
2144
|
linkComponent: h,
|
|
2145
|
-
onEmailSubmit:
|
|
2145
|
+
onEmailSubmit: C,
|
|
2146
2146
|
additionalContent: g,
|
|
2147
2147
|
onLinkClick: j,
|
|
2148
2148
|
onSocialMediaClick: o
|
|
2149
|
-
}) => /* @__PURE__ */ t.jsx(
|
|
2149
|
+
}, E) => /* @__PURE__ */ t.jsx(
|
|
2150
2150
|
b,
|
|
2151
|
-
{ as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], children: /* @__PURE__ */ t.jsxs(
|
|
2151
|
+
{ as: "footer", bg: "viridian.dark", py: [6, 8], px: [4, 6], ref: E, children: /* @__PURE__ */ t.jsxs(
|
|
2152
2152
|
cr,
|
|
2153
2153
|
{ size: "fluid", children: [
|
|
2154
2154
|
/* @__PURE__ */ t.jsxs(
|
|
2155
|
-
|
|
2155
|
+
y,
|
|
2156
2156
|
{ direction: "column", gap: [8, 12], children: [
|
|
2157
2157
|
/* @__PURE__ */ t.jsx(
|
|
2158
2158
|
b,
|
|
2159
2159
|
{ children: /* @__PURE__ */ t.jsx(_t, { width: ["150px", "202px"], color: "white" }) }
|
|
2160
2160
|
),
|
|
2161
2161
|
/* @__PURE__ */ t.jsxs(
|
|
2162
|
-
|
|
2162
|
+
y,
|
|
2163
2163
|
{
|
|
2164
2164
|
direction: ["column", null, null, "row"],
|
|
2165
2165
|
justify: "space-between",
|
|
@@ -2180,7 +2180,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
2180
2180
|
socialLinks: f,
|
|
2181
2181
|
newsletterLabel: u,
|
|
2182
2182
|
socialMediaLabel: c,
|
|
2183
|
-
onEmailSubmit:
|
|
2183
|
+
onEmailSubmit: C,
|
|
2184
2184
|
onLinkClick: o
|
|
2185
2185
|
}
|
|
2186
2186
|
)
|
|
@@ -2188,7 +2188,7 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
),
|
|
2190
2190
|
/* @__PURE__ */ t.jsxs(
|
|
2191
|
-
|
|
2191
|
+
y,
|
|
2192
2192
|
{
|
|
2193
2193
|
direction: ["column", "column", "row"],
|
|
2194
2194
|
justify: "space-between",
|
|
@@ -2196,13 +2196,16 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
2196
2196
|
align: ["flex-start", "flex-start", "center"],
|
|
2197
2197
|
gap: [6, 6, 0],
|
|
2198
2198
|
children: [
|
|
2199
|
-
/* @__PURE__ */ t.jsx(
|
|
2199
|
+
i && /* @__PURE__ */ t.jsx(
|
|
2200
2200
|
L,
|
|
2201
2201
|
{
|
|
2202
2202
|
color: "viridian.lighter",
|
|
2203
2203
|
fontSize: "sm",
|
|
2204
2204
|
maxWidth: ["100%", "100%", "1024px"],
|
|
2205
|
-
|
|
2205
|
+
dangerouslySetInnerHTML: { __html: i },
|
|
2206
|
+
sx: {
|
|
2207
|
+
"a:hover": { color: "viridian.light", textDecoration: "underline" }
|
|
2208
|
+
}
|
|
2206
2209
|
}
|
|
2207
2210
|
),
|
|
2208
2211
|
g
|
|
@@ -2231,12 +2234,12 @@ const Ue = 60, vt = 6, Or = (n) => {
|
|
|
2231
2234
|
)
|
|
2232
2235
|
] }
|
|
2233
2236
|
) }
|
|
2234
|
-
);
|
|
2237
|
+
));
|
|
2235
2238
|
export {
|
|
2236
2239
|
Br as BasketButton,
|
|
2237
2240
|
en as CategoryLabel,
|
|
2238
2241
|
nn as Footer,
|
|
2239
|
-
|
|
2242
|
+
Ae as NavButton,
|
|
2240
2243
|
tn as NavSkeleton,
|
|
2241
2244
|
Ke as NavbarDrawer,
|
|
2242
2245
|
Ze as NavbarDrawerLink,
|
|
@@ -26,11 +26,11 @@ export type FooterProps = {
|
|
|
26
26
|
disclaimer?: string;
|
|
27
27
|
complianceLinks?: ComplianceLinksProps['links'];
|
|
28
28
|
linkComponent?: CustomLinkComponent;
|
|
29
|
-
onEmailSubmit?:
|
|
29
|
+
onEmailSubmit?: (email: string) => void;
|
|
30
30
|
additionalContent?: React.ReactNode;
|
|
31
31
|
onLinkClick?: (label: string) => void;
|
|
32
32
|
onSocialMediaClick?: (name: string) => void;
|
|
33
33
|
};
|
|
34
|
-
declare const Footer:
|
|
34
|
+
declare const Footer: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
35
|
export default Footer;
|
|
36
36
|
//# sourceMappingURL=Footer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAmB,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAoB,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAmB,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,WAAW,GAAG;IACxB,kBAAkB,CAAC,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;IACtD,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,aAAa,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAmB,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAoB,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAmB,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,WAAW,GAAG;IACxB,kBAAkB,CAAC,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;IACtD,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,MAAM,oFAkFV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|