@everlywell/consumer-ui 1.36.0 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/index.js +4 -4
  2. package/index.mjs +117 -113
  3. package/lib/components/Footer/ComplianceLinks/ComplianceLinks.d.ts +14 -0
  4. package/lib/components/Footer/ComplianceLinks/ComplianceLinks.d.ts.map +1 -0
  5. package/lib/components/Footer/ComplianceLinks/ComplianceLinks.stories.d.ts +26 -0
  6. package/lib/components/Footer/ComplianceLinks/ComplianceLinks.stories.d.ts.map +1 -0
  7. package/lib/components/Footer/Footer/Footer.builder.d.ts +4 -0
  8. package/lib/components/Footer/Footer/Footer.builder.d.ts.map +1 -0
  9. package/lib/components/Footer/Footer/Footer.d.ts +35 -0
  10. package/lib/components/Footer/Footer/Footer.d.ts.map +1 -0
  11. package/lib/components/Footer/Footer/Footer.stories.d.ts +8 -0
  12. package/lib/components/Footer/Footer/Footer.stories.d.ts.map +1 -0
  13. package/lib/components/Footer/NavigationLinks/NavigationLinks.d.ts +16 -0
  14. package/lib/components/Footer/NavigationLinks/NavigationLinks.d.ts.map +1 -0
  15. package/lib/components/Footer/NavigationLinks/NavigationLinks.stories.d.ts +28 -0
  16. package/lib/components/Footer/NavigationLinks/NavigationLinks.stories.d.ts.map +1 -0
  17. package/lib/components/Footer/UpdatesAndSocial/UpdatesAndSocial.d.ts +14 -0
  18. package/lib/components/Footer/UpdatesAndSocial/UpdatesAndSocial.d.ts.map +1 -0
  19. package/lib/components/Footer/UpdatesAndSocial/UpdatesAndSocial.stories.d.ts +40 -0
  20. package/lib/components/Footer/UpdatesAndSocial/UpdatesAndSocial.stories.d.ts.map +1 -0
  21. package/lib/components/Footer/index.d.ts +2 -0
  22. package/lib/components/Footer/index.d.ts.map +1 -0
  23. package/lib/components/Logo/Logo.d.ts +8 -0
  24. package/lib/components/Logo/Logo.d.ts.map +1 -0
  25. package/package.json +2 -2
  26. package/lib/components/Navbar/TopNavigation/Logo.d.ts +0 -2
  27. package/lib/components/Navbar/TopNavigation/Logo.d.ts.map +0 -1
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@everlywell/ui-kit"),w=require("react"),U=require("@chakra-ui/react"),$=require("@phosphor-icons/react"),Ie=require("framer-motion");var Ve={exports:{}},be={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@everlywell/ui-kit"),w=require("react"),z=require("@chakra-ui/react"),$=require("@phosphor-icons/react"),Ie=require("framer-motion");var Ve={exports:{}},be={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -18,13 +18,13 @@
18
18
  `+pe+e}}var he=!1,le;{var Be=typeof WeakMap=="function"?WeakMap:Map;le=new Be}function _e(e,n){if(!e||he)return"";{var l=le.get(e);if(l!==void 0)return l}var i;he=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var C;C=W.current,W.current=null,Le();try{if(n){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(O){i=O}Reflect.construct(e,[],x)}else{try{x.call()}catch(O){i=O}e.call(x.prototype)}}else{try{throw Error()}catch(O){i=O}e()}}catch(O){if(O&&i&&typeof O.stack=="string"){for(var p=O.stack.split(`
19
19
  `),B=i.stack.split(`
20
20
  `),k=p.length-1,T=B.length-1;k>=1&&T>=0&&p[k]!==B[T];)T--;for(;k>=1&&T>=0;k--,T--)if(p[k]!==B[T]){if(k!==1||T!==1)do if(k--,T--,T<0||p[k]!==B[T]){var A=`
21
- `+p[k].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),typeof e=="function"&&le.set(e,A),A}while(k>=1&&T>=0);break}}}finally{he=!1,W.current=C,ne(),Error.prepareStackTrace=b}var ie=e?e.displayName||e.name:"",q=ie?re(ie):"";return typeof e=="function"&&le.set(e,q),q}function Oe(e,n,l){return _e(e,!1)}function Pe(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function ae(e,n,l){if(e==null)return"";if(typeof e=="function")return _e(e,Pe(e));if(typeof e=="string")return re(e);switch(e){case E:return re("Suspense");case u:return re("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Oe(e.render);case y:return ae(e.type,n,l);case g:{var i=e,b=i._payload,C=i._init;try{return ae(C(b),n,l)}catch{}}}return""}var z=Object.prototype.hasOwnProperty,xe={},ge=F.ReactDebugCurrentFrame;function o(e){if(e){var n=e._owner,l=ae(e.type,e._source,n?n.type:null);ge.setExtraStackFrame(l)}else ge.setExtraStackFrame(null)}function D(e,n,l,i,b){{var C=Function.call.bind(z);for(var x in e)if(C(e,x)){var p=void 0;try{if(typeof e[x]!="function"){var B=Error((i||"React class")+": "+l+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw B.name="Invariant Violation",B}p=e[x](n,x,i,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){p=k}p&&!(p instanceof Error)&&(o(b),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",l,x,typeof p),o(null)),p instanceof Error&&!(p.message in xe)&&(xe[p.message]=!0,o(b),_("Failed %s type: %s",l,p.message),o(null))}}}var G=Array.isArray;function L(e){return G(e)}function Fe(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,l=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function Z(e){try{return ze(e),!1}catch{return!0}}function ze(e){return""+e}function Ge(e){if(Z(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fe(e)),ze(e)}var ve=F.ReactCurrentOwner,ct={key:!0,ref:!0,__self:!0,__source:!0},Ue,Ze,He;He={};function dt(e){if(z.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function ft(e){if(z.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function pt(e,n){if(typeof e.ref=="string"&&ve.current&&n&&ve.current.stateNode!==n){var l=P(ve.current.type);He[l]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P(ve.current.type),e.ref),He[l]=!0)}}function ht(e,n){{var l=function(){Ue||(Ue=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function xt(e,n){{var l=function(){Ze||(Ze=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var gt=function(e,n,l,i,b,C,x){var p={$$typeof:s,type:e,key:n,ref:l,props:x,_owner:C};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function vt(e,n,l,i,b){{var C,x={},p=null,B=null;l!==void 0&&(Ge(l),p=""+l),ft(n)&&(Ge(n.key),p=""+n.key),dt(n)&&(B=n.ref,pt(n,b));for(C in n)z.call(n,C)&&!ct.hasOwnProperty(C)&&(x[C]=n[C]);if(e&&e.defaultProps){var k=e.defaultProps;for(C in k)x[C]===void 0&&(x[C]=k[C])}if(p||B){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&ht(x,T),B&&xt(x,T)}return gt(e,p,B,b,i,ve.current,x)}}var Ae=F.ReactCurrentOwner,qe=F.ReactDebugCurrentFrame;function oe(e){if(e){var n=e._owner,l=ae(e.type,e._source,n?n.type:null);qe.setExtraStackFrame(l)}else qe.setExtraStackFrame(null)}var Me;Me=!1;function $e(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ke(){{if(Ae.current){var e=P(Ae.current.type);if(e)return`
21
+ `+p[k].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),typeof e=="function"&&le.set(e,A),A}while(k>=1&&T>=0);break}}}finally{he=!1,W.current=C,ne(),Error.prepareStackTrace=b}var ie=e?e.displayName||e.name:"",q=ie?re(ie):"";return typeof e=="function"&&le.set(e,q),q}function Oe(e,n,l){return _e(e,!1)}function Pe(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function ae(e,n,l){if(e==null)return"";if(typeof e=="function")return _e(e,Pe(e));if(typeof e=="string")return re(e);switch(e){case E:return re("Suspense");case u:return re("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Oe(e.render);case y:return ae(e.type,n,l);case g:{var i=e,b=i._payload,C=i._init;try{return ae(C(b),n,l)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,xe={},ge=F.ReactDebugCurrentFrame;function o(e){if(e){var n=e._owner,l=ae(e.type,e._source,n?n.type:null);ge.setExtraStackFrame(l)}else ge.setExtraStackFrame(null)}function D(e,n,l,i,b){{var C=Function.call.bind(G);for(var x in e)if(C(e,x)){var p=void 0;try{if(typeof e[x]!="function"){var B=Error((i||"React class")+": "+l+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw B.name="Invariant Violation",B}p=e[x](n,x,i,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){p=k}p&&!(p instanceof Error)&&(o(b),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",l,x,typeof p),o(null)),p instanceof Error&&!(p.message in xe)&&(xe[p.message]=!0,o(b),_("Failed %s type: %s",l,p.message),o(null))}}}var U=Array.isArray;function L(e){return U(e)}function Fe(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,l=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function Z(e){try{return ze(e),!1}catch{return!0}}function ze(e){return""+e}function Ge(e){if(Z(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fe(e)),ze(e)}var ve=F.ReactCurrentOwner,ct={key:!0,ref:!0,__self:!0,__source:!0},Ue,Ze,He;He={};function dt(e){if(G.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function ft(e){if(G.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function pt(e,n){if(typeof e.ref=="string"&&ve.current&&n&&ve.current.stateNode!==n){var l=P(ve.current.type);He[l]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P(ve.current.type),e.ref),He[l]=!0)}}function ht(e,n){{var l=function(){Ue||(Ue=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function xt(e,n){{var l=function(){Ze||(Ze=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var gt=function(e,n,l,i,b,C,x){var p={$$typeof:s,type:e,key:n,ref:l,props:x,_owner:C};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function vt(e,n,l,i,b){{var C,x={},p=null,B=null;l!==void 0&&(Ge(l),p=""+l),ft(n)&&(Ge(n.key),p=""+n.key),dt(n)&&(B=n.ref,pt(n,b));for(C in n)G.call(n,C)&&!ct.hasOwnProperty(C)&&(x[C]=n[C]);if(e&&e.defaultProps){var k=e.defaultProps;for(C in k)x[C]===void 0&&(x[C]=k[C])}if(p||B){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&ht(x,T),B&&xt(x,T)}return gt(e,p,B,b,i,ve.current,x)}}var Ae=F.ReactCurrentOwner,qe=F.ReactDebugCurrentFrame;function oe(e){if(e){var n=e._owner,l=ae(e.type,e._source,n?n.type:null);qe.setExtraStackFrame(l)}else qe.setExtraStackFrame(null)}var Me;Me=!1;function $e(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ke(){{if(Ae.current){var e=P(Ae.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function bt(e){return""}var Xe={};function mt(e){{var n=Ke();if(!n){var l=typeof e=="string"?e:e.displayName||e.name;l&&(n=`
24
24
 
25
- Check the top-level render call using <`+l+">.")}return n}}function Je(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=mt(n);if(Xe[l])return;Xe[l]=!0;var i="";e&&e._owner&&e._owner!==Ae.current&&(i=" It was passed a child from "+P(e._owner.type)+"."),oe(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,i),oe(null)}}function Qe(e,n){{if(typeof e!="object")return;if(L(e))for(var l=0;l<e.length;l++){var i=e[l];$e(i)&&Je(i,n)}else if($e(e))e._store&&(e._store.validated=!0);else if(e){var b=J(e);if(typeof b=="function"&&b!==e.entries)for(var C=b.call(e),x;!(x=C.next()).done;)$e(x.value)&&Je(x.value,n)}}}function Ct(e){{var n=e.type;if(n==null||typeof n=="string")return;var l;if(typeof n=="function")l=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===d||n.$$typeof===y))l=n.propTypes;else return;if(l){var i=P(n);D(l,e.props,"prop",i,e)}else if(n.PropTypes!==void 0&&!Me){Me=!0;var b=P(n);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function jt(e){{for(var n=Object.keys(e.props),l=0;l<n.length;l++){var i=n[l];if(i!=="children"&&i!=="key"){oe(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),oe(null);break}}e.ref!==null&&(oe(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),oe(null))}}var et={};function tt(e,n,l,i,b,C){{var x=M(e);if(!x){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=bt();B?p+=B:p+=Ke();var k;e===null?k="null":L(e)?k="array":e!==void 0&&e.$$typeof===s?(k="<"+(P(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,p)}var T=vt(e,n,l,b,C);if(T==null)return T;if(x){var A=n.children;if(A!==void 0)if(i)if(L(A)){for(var ie=0;ie<A.length;ie++)Qe(A[ie],e);Object.freeze&&Object.freeze(A)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Qe(A,e)}if(z.call(n,"key")){var q=P(e),O=Object.keys(n).filter(function(_t){return _t!=="key"}),We=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!et[q+We]){var Rt=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+l+">.")}return n}}function Je(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=mt(n);if(Xe[l])return;Xe[l]=!0;var i="";e&&e._owner&&e._owner!==Ae.current&&(i=" It was passed a child from "+P(e._owner.type)+"."),oe(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,i),oe(null)}}function Qe(e,n){{if(typeof e!="object")return;if(L(e))for(var l=0;l<e.length;l++){var i=e[l];$e(i)&&Je(i,n)}else if($e(e))e._store&&(e._store.validated=!0);else if(e){var b=J(e);if(typeof b=="function"&&b!==e.entries)for(var C=b.call(e),x;!(x=C.next()).done;)$e(x.value)&&Je(x.value,n)}}}function Ct(e){{var n=e.type;if(n==null||typeof n=="string")return;var l;if(typeof n=="function")l=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===d||n.$$typeof===y))l=n.propTypes;else return;if(l){var i=P(n);D(l,e.props,"prop",i,e)}else if(n.PropTypes!==void 0&&!Me){Me=!0;var b=P(n);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function jt(e){{for(var n=Object.keys(e.props),l=0;l<n.length;l++){var i=n[l];if(i!=="children"&&i!=="key"){oe(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),oe(null);break}}e.ref!==null&&(oe(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),oe(null))}}var et={};function tt(e,n,l,i,b,C){{var x=M(e);if(!x){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=bt();B?p+=B:p+=Ke();var k;e===null?k="null":L(e)?k="array":e!==void 0&&e.$$typeof===s?(k="<"+(P(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,p)}var T=vt(e,n,l,b,C);if(T==null)return T;if(x){var A=n.children;if(A!==void 0)if(i)if(L(A)){for(var ie=0;ie<A.length;ie++)Qe(A[ie],e);Object.freeze&&Object.freeze(A)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Qe(A,e)}if(G.call(n,"key")){var q=P(e),O=Object.keys(n).filter(function(_t){return _t!=="key"}),We=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!et[q+We]){var Rt=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";_(`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} />`,We,q,Rt,q),et[q+We]=!0}}return e===f?jt(T):Ct(T),T}}function yt(e,n,l){return tt(e,n,l,!0)}function wt(e,n,l){return tt(e,n,l,!1)}var Et=wt,St=yt;me.Fragment=f,me.jsx=Et,me.jsxs=St}()),me}process.env.NODE_ENV==="production"?Ve.exports=kt():Ve.exports=Tt();var t=Ve.exports;const Ne=60,lt=6,It=a=>{const{activeStepIndex:s,hideIndicators:h=!1,steps:f,stepperTheme:j={light:"eggplant.light",base:"eggplant.base"}}=a,{activeStep:v,setActiveStep:m}=r.useSteps({index:s,count:f.length});return w.useEffect(()=>{m(s)},[s,m]),t.jsx(r.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(r.Stepper,{role:"progressbar",index:v,width:"100%",display:"flex",flexWrap:"nowrap",children:f.map((R,d)=>{const E=v===d,u=d===0,y=d===f.length-1,g=v>d;let c=`${Ne}px`;const I=`calc(100% - ((${Ne*(f.length-1)}px) - (${f.length-1} * ${lt*2}px)))`;return E?c=I:(u||y)&&(c=`${Ne-lt}px`),t.jsx(r.Box,{width:c,opacity:g||E?1:.2,paddingRight:y?"0":"6px",paddingLeft:u?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(r.Box,{paddingTop:h?2:5,position:"relative",width:"100%",children:t.jsx(r.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:g?j.light:j.base,height:h?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${d}`)})})})},Dt=w.memo(It),Lt=({children:a,...s})=>t.jsx(U.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...s,children:a}),De=(a,s)=>{const h=(a==null?void 0:a.startsWith("http"))||(a==null?void 0:a.startsWith("mailto"));return s&&!h?{to:a}:{href:a}},ke=w.forwardRef((a,s)=>{const{label:h,additionalContent:f,mainTextFontSize:j,linkComponent:v,href:m,...R}=a,d=v||r.Link,E=De(m,!!v);return t.jsxs(r.Box,{ref:s,as:d,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",...E,...R,children:[t.jsx(r.Icon,{display:["none",null,null,"block"],as:$.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(r.Flex,{alignItems:"center",gap:"1",width:["100%",null,null,"auto"],children:[t.jsx(r.Text,{fontSize:[j||"xl",null,null,"lg"],fontWeight:"medium",children:h}),f&&(typeof f=="string"?t.jsx(r.Text,{fontSize:["xl",null,null,"lg"],fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:f}):f),t.jsx(r.Icon,{display:["block",null,null,"none"],as:$.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),Ce=w.forwardRef((a,s)=>{const{children:h,isSelected:f,...j}=a,v=a.backgroundColor||(f?"tints.lightCream":"transparent");return t.jsx(r.Button,{ref:s,borderRadius:"full",backgroundColor:v,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:v,textDecoration:"none",filter:"brightness(0.95)"},...j,children:h})}),it=({title:a,description:s,imageSrc:h,imageElement:f,button:j,backgroundColor:v="viridian.wash",onClick:m,href:R,linkComponent:d})=>{const g=d||r.Link,c=De(R,!!d),I=U.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0});return t.jsxs(r.Flex,{direction:["row",null,null,"column"],alignItems:["center"],borderRadius:"xl",overflow:"hidden",height:["80px",null,null,"272px"],backgroundColor:v,onClick:m,"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",cursor:"pointer",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:I?r.Flex:g,...I?{}:c,children:[t.jsx(r.Box,{width:["72px",null,null,"100%"],height:["100%",null,null,"188px"],sx:{img:{height:I?"188px":"100%"}},children:h?t.jsx(r.Image,{src:h,objectFit:"cover",width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(r.Box,{height:[80,null,null,188],overflow:"hidden",children:f})}),t.jsxs(r.Flex,{direction:["column",null,null,"row"],justifyContent:[null,null,null,"space-between"],alignItems:["left",null,null,"center"],padding:"4",height:["80px",null,null,"84px"],width:"100%",bottom:[null,null,null,"0"],backgroundColor:[null,null,null,`${v}CC`],backdropFilter:[null,null,null,"blur(8px)"],flex:"1",gap:[null,null,null,3],children:[t.jsxs(r.Flex,{direction:"column",justifyContent:"center",height:"100%",children:[t.jsx(r.Text,{fontSize:"lg",fontWeight:"medium",color:"tints.black",children:a}),t.jsx(r.Text,{fontSize:"sm",color:"tints.darkGrey",children:s})]}),I?t.jsx(r.Box,{children:j}):null]})]})},K=a=>t.jsx(r.IconButton,{size:"sm",width:["40px",null,null,"46px"],height:["40px",null,null,"46px"],padding:["2 !important",null,null,"3 !important"],colorScheme:"whiteCS",backgroundColor:"tints.cream",sx:{svg:{width:"24px",height:"24px"}},_hover:{backgroundColor:"tints.cream",filter:"brightness(0.95)"},...a}),Bt=()=>t.jsx("svg",{width:"116",height:"24",viewBox:"0 0 116 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Everlywell Logo",children:t.jsx("g",{id:"Everlywell Logo",children:t.jsx("path",{id:"Everlywell Logo_2",fillRule:"evenodd",clipRule:"evenodd",d:"M54.8224 1V17.8352H52.4272V1H54.8224ZM5.65731 14.992C4.9835 14.4474 4.59261 13.726 4.48231 12.8278H13.7822C13.9984 10.4829 13.5723 8.70006 12.5039 7.47915C11.4322 6.25824 9.93769 5.64945 8.01698 5.64945C6.23518 5.64945 4.78896 6.22479 3.67214 7.38216C2.55841 8.5395 2 9.92767 2 11.8377C2 13.7476 2.56171 15.273 3.68501 16.4136C4.80831 17.5542 6.30612 18.1229 8.18163 18.1229C9.11125 18.1229 10.0216 17.9489 10.9125 17.5944C11.8034 17.2431 12.533 16.7447 13.1075 16.1025L11.5517 14.5371C11.2095 14.9217 10.7253 15.2294 10.099 15.4636C9.46959 15.6944 8.84662 15.8115 8.22684 15.8115C7.18735 15.8115 6.33197 15.5372 5.65731 14.992ZM10.4671 8.60977C11.0772 9.10817 11.416 9.81395 11.4774 10.7305H4.52751C4.71152 9.81395 5.12475 9.10817 5.77027 8.60977C6.41589 8.11136 7.18735 7.86384 8.08473 7.86384C9.05966 7.86384 9.85696 8.11136 10.4671 8.60977ZM22.1465 17.8819L27.0047 5.93699H24.3771L22.6565 10.2486L20.8424 15.2828L18.8217 9.76697L17.2884 5.93699H14.6382L19.5189 17.8819H22.1465ZM30.3737 12.8244C30.4835 13.7242 30.8741 14.4467 31.5487 14.992C32.2234 15.5372 33.0788 15.8115 34.1181 15.8115C34.7379 15.8115 35.361 15.6944 35.9905 15.4636C36.6166 15.2294 37.1009 14.9217 37.4431 14.5371L38.999 16.1025C38.4244 16.7447 37.6948 17.2431 36.8039 17.5944C35.9129 17.9489 35.0027 18.1229 34.0729 18.1229C32.1975 18.1229 30.6997 17.5542 29.5764 16.4136C28.453 15.273 27.8914 13.7476 27.8914 11.8377C27.8914 9.92767 28.4498 8.5395 29.5635 7.38216C30.6804 6.22479 32.1265 5.64945 33.9084 5.64945C35.829 5.64945 37.3236 6.25824 38.3952 7.47915C39.4638 8.70006 39.8899 10.4829 39.6736 12.8278H30.3769L30.3737 12.8244ZM37.3688 10.7305C37.3075 9.81395 36.9685 9.10817 36.3584 8.60977C35.7483 8.11136 34.951 7.86384 33.9762 7.86384C33.0788 7.86384 32.3073 8.11136 31.6617 8.60977C31.0161 9.10817 30.6029 9.81395 30.4189 10.7305H37.3688ZM44.5032 7.5263L44.3418 5.96085H44.3385H42.108V17.8355H44.5032V11.4031C44.5032 10.3595 44.8001 9.5567 45.3877 8.99473C45.9751 8.43278 46.7112 8.15181 47.5956 8.15181C48.3703 8.15181 49.0417 8.39264 49.6163 8.87432L50.7073 6.70677C49.9811 6.03445 49.0353 5.6966 47.8732 5.6966C46.2914 5.6966 45.1681 6.30539 44.5032 7.5263ZM60.3782 12.3193V5.96054H57.983V12.3428C57.983 14.1089 58.4286 15.5004 59.3195 16.5106C60.2104 17.5241 61.3789 18.0292 62.8186 18.0292C64.552 18.0292 65.8787 17.387 66.7923 16.1025V18.1262C66.7923 19.2669 66.4824 20.1499 65.8626 20.7754C65.2429 21.401 64.494 21.7154 63.6094 21.7154C61.8889 21.7154 60.8754 20.9661 60.5654 19.4742H58.2187C58.3252 20.9326 58.8644 22.0532 59.8327 22.8326C60.8011 23.612 62.1214 24 63.6546 24C65.188 24 66.4727 23.5049 67.5121 22.5081C68.5515 21.5147 69.0712 20.0697 69.0712 18.1731V5.96054H66.6761V12.1521C66.6761 13.1623 66.3791 14.0153 65.7819 14.7043C65.188 15.3967 64.4681 15.7412 63.4933 15.7412C62.5184 15.7412 61.7566 15.4268 61.2047 14.8013C60.6526 14.1725 60.3782 13.3463 60.3782 12.3193ZM81.5989 5.93699L84.3427 15.2828L87.1768 5.93699H89.8496L85.8275 17.8819H83.0385L81.6892 13.9315L80.5724 9.79039L79.4328 13.9315L78.0836 17.8819H75.2945L71.2498 5.93699H73.9453L76.7795 15.2828L79.5232 5.93699H81.5924H81.5989ZM94.65 14.992C93.9754 14.4467 93.5848 13.7242 93.475 12.8244L93.4847 12.8278H102.781C102.998 10.4829 102.572 8.70006 101.503 7.47915C100.431 6.25824 98.9368 5.64945 97.0162 5.64945C95.2343 5.64945 93.785 6.22479 92.668 7.38216C91.5544 8.5395 90.9959 9.92767 90.9959 11.8377C90.9959 13.7476 91.5576 15.273 92.6809 16.4136C93.8043 17.5542 95.3021 18.1229 97.1775 18.1229C98.1073 18.1229 99.0175 17.9489 99.9084 17.5944C100.799 17.2431 101.529 16.7447 102.103 16.1025L100.544 14.5371C100.202 14.9217 99.7212 15.2328 99.0918 15.4636C98.4623 15.6944 97.8393 15.8115 97.2196 15.8115C96.1802 15.8115 95.3247 15.5372 94.65 14.992ZM99.4598 8.60977C100.07 9.10817 100.409 9.81395 100.47 10.7305H93.5202C93.7042 9.81395 94.1175 9.10817 94.763 8.60977C95.4086 8.11136 96.1802 7.86384 97.0774 7.86384C98.0524 7.86384 98.8465 8.11136 99.4598 8.60977ZM107.698 1V17.8352H105.303V1H107.698ZM113.53 17.8352V1H111.135V17.8352H113.53Z",fill:"#28724F"})})}),st=({desktopTopButtons:a,kitRegistrationElement:s,profileElement:h,cartElement:f,onSearchClick:j,onMenuClick:v,hasSearch:m=!1,logoLink:R="https://www.everlywell.com",setTopOffset:d,linkComponent:E,onLogoClick:u})=>{const y=w.useRef(null),g=w.useCallback(()=>{if(y.current){const c=y.current.getBoundingClientRect();d(c.bottom)}},[]);return w.useEffect(()=>{g()},[g]),t.jsx(r.Box,{ref:y,paddingY:"4",paddingX:[4,null,null,12],borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",position:"sticky",top:"0",width:"100%",zIndex:["sticky",null,null,"tooltip"],onMouseEnter:g,children:t.jsxs(r.Flex,{justifyContent:"space-between",alignItems:"center",children:[t.jsxs(r.Flex,{alignItems:"center",gap:"5",children:[t.jsx(r.Box,{"aria-label":"Go to homepage",onClick:u,as:E||r.Link,...De(R,!!E),children:t.jsx(Bt,{})}),t.jsx(r.Flex,{display:["none",null,null,"flex"],children:a})]}),t.jsxs(r.Flex,{alignItems:"center",gap:"2",children:[t.jsx(r.Box,{display:["none",null,null,"block"],children:s}),m?t.jsx(K,{"aria-label":"Search",icon:t.jsx(r.Icon,{as:$.MagnifyingGlass}),onClick:j}):null,f,t.jsx(r.Box,{display:["flex",null,null,"none"],children:t.jsx(K,{icon:t.jsx($.List,{}),"aria-label":"menu","data-testid":"menu-button",onClick:v})}),t.jsx(r.Box,{display:["none",null,null,"block"],children:h})]})]})})},ut=({count:a=0,...s})=>t.jsxs(r.Box,{position:"relative",display:"inline-block",children:[t.jsx(K,{icon:t.jsx($.Basket,{}),...s}),a>0&&t.jsx(r.Box,{display:"flex",minWidth:"20px",height:"20px",py:"4px",px:"6px",justifyContent:"center",alignItems:"center",position:"absolute",right:"-4px",top:"-4px",borderRadius:"32px",background:"viridian.base",color:"white",fontSize:"xs",fontWeight:"normal",children:a})]}),Ot=({numDesktopLinks:a=5,showPromoButton:s=!1})=>t.jsx(r.VStack,{spacing:0,align:"stretch",children:t.jsx(r.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",borderColor:"tints.lightCream",children:t.jsxs(r.Flex,{justify:"space-between",align:"center",children:[t.jsx(r.Skeleton,{w:"120px",h:"48px"}),t.jsxs(r.HStack,{spacing:8,marginLeft:12,display:["none",null,null,"flex"],"data-testid":"desktop-nav",children:[Array.from({length:a}).map((h,f)=>t.jsx(r.Skeleton,{width:"90px",height:"48px"},f)),s&&t.jsx(r.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(r.HStack,{spacing:4,ml:"auto",children:[t.jsx(r.SkeletonCircle,{width:"120px",height:"48px",display:["none",null,null,"block"],"data-testid":"register-kit"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),Pt=(a,s)=>{let h;return(...f)=>{h&&clearTimeout(h),h=setTimeout(()=>{a(...f)},s)}},Ye="nav-drawer-hover",at=a=>{window.dispatchEvent(new CustomEvent(Ye,{detail:{isHovering:a},bubbles:!0,cancelable:!0}))},Ft=(a=!1,s=!1,h=!1)=>a||!s?"column":h?"row":"row-reverse",Ht=Ie.motion(r.DrawerContent),At=Ie.motion(r.DrawerOverlay),Te=({isOpen:a=!1,onClose:s,title:h,navDrawerLinks:f,bottomNavButtons:j,spotlightCards:v,bottomButton:m,hasBackButton:R=!0,onBackClick:d,hasOnlySpotlightCards:E=!1,hasSearch:u=!1,onSearch:y=()=>({}),topOffset:g})=>{const c=U.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0}),I=c?"top":"right",[X,J]=w.useState(0),[F,_]=w.useState(!1),se=()=>{J(H=>H+1)},ue=w.useCallback(Pt(H=>{y(H),se()},100),[]);w.useEffect(()=>{a&&_(!0)},[a]);const ce=()=>{a||(_(!1),s())};return t.jsx(r.Drawer,{isOpen:F||a,onClose:()=>{F&&c||s()},placement:I,blockScrollOnMount:!1,autoFocus:!1,children:t.jsx(Ie.AnimatePresence,{children:a?t.jsxs(t.Fragment,{children:[t.jsx(At,{backgroundColor:"tints.black",top:["0",null,null,`${g}px`],opacity:c?void 0:"0.4 !important",...c?{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.3,ease:"easeOut"}}:{}}),t.jsxs(Ht,{onClick:H=>{const N=H.target.closest("a");N&&N.href===window.location.href&&s()},onMouseEnter:()=>{c&&at(!0)},onMouseLeave:()=>{c&&at(!1)},paddingTop:"4",paddingX:[4,null,null,12],paddingBottom:"24",overflow:["auto",null,null,"hidden"],maxHeight:"100vh",position:"relative",top:c?`${g}px !important`:void 0,onAnimationComplete:ce,...c?{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3}}:{},children:[!u&&c?null:t.jsxs(r.DrawerHeader,{padding:"0",flexDirection:u?"column":"row",gap:u?"4":"0",children:[c?null:t.jsxs(r.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[R?t.jsx(K,{icon:t.jsx($.CaretLeft,{}),onClick:()=>{d&&d()},"aria-label":"Back"}):null,t.jsx(r.Text,{color:"tints.uiGrey",fontSize:["xl",null,null,"lg"],children:h}),t.jsx(K,{icon:t.jsx($.X,{}),onClick:s,"aria-label":"Close"})]}),u&&t.jsxs(U.InputGroup,{width:"100%",children:[t.jsx(U.Input,{onChange:H=>{ue(H.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(U.InputRightElement,{pointerEvents:"none",children:t.jsx(U.Icon,{as:$.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(r.DrawerBody,{paddingX:"0",paddingBottom:[6,null,null,4],"data-testid":`navbar-drawer-body-${h.toLowerCase()}`,children:t.jsxs(Ie.motion.div,{...c?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},transition:{duration:.5,delay:.2,ease:[.4,0,.2,1],exit:{duration:.5,delay:.2,ease:[.4,0,.2,1]}}}:{},style:{display:"flex",flexDirection:Ft(E,c,u),gap:"24px",justifyContent:"space-between"},children:[v?t.jsx(r.Box,{gap:[3,null,null,6],display:"flex",justifyContent:[null,null,null,"center"],sx:{flexWrap:"wrap",flexDirection:["column",null,null,"row"]},children:v}):null,t.jsxs(r.Flex,{position:[null,null,null,"relative"],flexDirection:"column",gap:"6",width:["100%",null,null,u?null:"auto"],children:[f?t.jsx(r.Box,{children:f}):null,j&&!c?t.jsx(r.Box,{children:j}):null,m?t.jsx(r.Box,{width:["100%"],position:[null,null,null,"absolute"],bottom:[null,null,null,0],children:m}):null]})]},X)})]})]}):null})})},ot=a=>{const s=new Set;return a.reduce((h,f)=>{var v;const j=((v=f.sections)==null?void 0:v.reduce((m,R)=>{const d=R.links.filter(E=>s.has(E.label)||E.isSearchable!==!0?!1:(s.add(E.label),!0));return[...m,...d]},[]))??[];return[...h,...j]},[])},Mt=({source:a,onSearchCallback:s,isActive:h})=>{const[f,j]=w.useState(""),[v,m]=w.useState([]),R=(u,y)=>{if(!u)return[];const g=u.toLowerCase();return y.filter(c=>{const I=c.label.toLowerCase().includes(g),X=typeof c.additionalContent=="string"&&c.additionalContent.toLowerCase().includes(g);return I||X}).sort((c,I)=>c.label.localeCompare(I.label))},d=u=>{if(j(u),!u){m([]);return}const y=R(u,a);m(y),s&&s(u,y)},E=()=>{j(""),m([])};return w.useEffect(()=>{h||(j(""),m([]))},[h]),{query:f,results:v,handleClose:E,handleSearch:d}},$t=({categories:a=[],onCartClick:s,mainCategoryLabel:h="Menu",logoLink:f="https://www.everlywell.com",hasSearch:j=!0,onSearchClick:v,registrationUrl:m,profileUrl:R="https://secure.everlywell.com/login",mobileBottomButtons:d=[],numberOfCartItems:E=0,linkComponent:u,onSearchCallback:y,onLinkClick:g,onCategoryOpen:c,onMobileMenuOpen:I,onBackToMainMenu:X,onRegisterKitClick:J,onProfileClick:F,onLogoClick:_,shopAllProductsUrl:se,onShopAllProductsClick:ue})=>{var z,xe,ge;const[ce,H]=w.useState(!1),[Q,N]=w.useState(!1),[S,M]=w.useState(null),[je,de]=w.useState(!1),[P,V]=w.useState(!1),[Y,ye]=w.useState(0),we=U.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0})??!1;w.useEffect(()=>{ne(),M(null)},[we]);const{query:Ee,results:ee,handleSearch:Se}=Mt({source:ot(a),onSearchCallback:y,isActive:Q}),fe=ee.length>0,te=u||r.Link,Re=De(se,!!u),Le=Ee&&t.jsxs(r.Flex,{gap:fe?"6":0,direction:"column",children:[fe?t.jsx(r.Text,{color:"tints.uiGrey",children:`${ee.length} Results`}):t.jsxs(r.Flex,{direction:"column",gap:"6",alignItems:"flex-start",children:[t.jsx(r.Text,{color:"tints.uiGrey",children:"We didn't find what you were looking for."}),t.jsx(r.Button,{as:te,onClick:ue,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],...Re,children:"Shop all products"})]}),t.jsx(r.Grid,{columns:[1,1,1,4],children:ee.map((o,D)=>t.jsx(r.GridItem,{children:t.jsx(ke,{href:o.href,label:o.label,additionalContent:o==null?void 0:o.additionalContent,linkComponent:u})},`${o.label}-${D}`))})]}),ne=()=>{H(!1),M(null)},W=o=>"href"in o,pe=o=>{W(o)?g==null||g(o.label):M(o)},re=o=>{de(!0),N(!1),M(null),!W(o)&&(o.sections||o.spotlightCards)&&M(o)},he=()=>{de(!1)};w.useEffect(()=>{const o=D=>{V(D.detail.isHovering)};return window.addEventListener(Ye,o),()=>{window.removeEventListener(Ye,o)}},[]),w.useEffect(()=>{!je&&!P&&(M(null),N(!1))},[je,P]),w.useEffect(()=>{let o=window.location.href;const D=()=>{const L=window.location.href;L!==o&&(o=L,ne(),M(null))},G=setInterval(D,100);return window.addEventListener("popstate",D),()=>{window.removeEventListener("popstate",D),clearInterval(G)}},[]);const le=t.jsx(t.Fragment,{children:a==null?void 0:a.map((o,D)=>t.jsx(Ce,{onMouseEnter:()=>{re(o),c==null||c(o.label)},onMouseLeave:he,isSelected:(S==null?void 0:S.label)===o.label,as:W(o)&&te?te:r.Link,href:W(o)?o.href:void 0,onClick:W(o)?()=>g==null?void 0:g(o.label):void 0,...o.buttonProps,children:o.label},`${o.label}-${D}`))}),Be=(z=a.filter(o=>!W(o)&&o.isMobileTopLink!==!1))==null?void 0:z.map(o=>{const D=o;return t.jsx(r.Box,{onClick:()=>{pe(D),c==null||c(D.label)},children:t.jsx(ke,{label:D.label,role:"link",additionalContent:D.additionalContent,mainTextFontSize:"3xl",linkComponent:u})},D.label)});ot(a);const _e=t.jsxs(t.Fragment,{children:[t.jsx(Ce,{as:r.Link,href:R,width:"100%",backgroundColor:"tints.cream",onClick:F,children:t.jsxs(r.Flex,{gap:"2",children:["My Everly",t.jsx(r.Icon,{as:$.User,size:24})]})},"my-everly"),t.jsx(Ce,{as:r.Link,width:"100%",href:m,backgroundColor:"tints.cream",onClick:J,children:t.jsxs(r.Flex,{gap:"2",children:["Register kit",t.jsx(r.Icon,{as:$.QrCode,size:24})]})},"register-kit")]}),Oe=t.jsxs(r.Flex,{gap:"2",flexDirection:"column",children:[d,_e]}),Pe=S?t.jsx(r.Flex,{direction:["column",null,null,"row"],gap:"8",children:(xe=S==null?void 0:S.sections)==null?void 0:xe.map((o,D)=>{const G=[];for(let L=0;L<o.links.length;L+=3)G.push(o.links.slice(L,L+3));return t.jsxs(r.Box,{children:[t.jsx(r.Text,{fontSize:"md",color:"tints.uiGrey",marginBottom:[0,null,null,6],children:o.title}),t.jsx(r.Flex,{flexDirection:["column",null,null,"row"],gap:[null,null,null,8],children:G==null?void 0:G.map((L,Fe)=>t.jsx(r.Flex,{flexDirection:["column"],gap:[null,null,null,5],marginLeft:[null,null,null,-2],children:L==null?void 0:L.map(Z=>t.jsx(ke,{label:Z.label,href:Z.href,additionalContent:Z.additionalContent,linkComponent:u,onClick:()=>g==null?void 0:g(Z.label)},Z.label))},Fe))})]},`${o.title}-${D}`)})}):null,ae=S!=null&&S.spotlightCards?(ge=S.spotlightCards)==null?void 0:ge.map(o=>t.jsx(it,{...o},o.title)):t.jsx(r.Box,{});return t.jsxs(t.Fragment,{children:[t.jsx(st,{desktopTopButtons:le,kitRegistrationElement:t.jsx(Ce,{as:r.Link,href:m,onClick:J,backgroundColor:"tints.cream",children:"Register Kit"}),profileElement:t.jsx(r.Link,{href:R,"aria-label":"login",onClick:F,children:t.jsx(K,{icon:t.jsx(r.Icon,{as:$.User}),"aria-label":"Profile"})}),cartElement:t.jsx(ut,{"aria-label":"Cart",count:E,onClick:s}),onSearchClick:()=>{N(!Q),v==null||v()},onMenuClick:()=>{H(!0),I==null||I()},hasSearch:j,logoLink:f,linkComponent:u,onLogoClick:_,setTopOffset:ye}),t.jsxs(r.Box,{position:"relative",zIndex:"modal",children:[t.jsx(Te,{isOpen:ce,onClose:ne,title:h,navDrawerLinks:Be,bottomNavButtons:Oe,hasBackButton:!1,topOffset:Y}),t.jsx(Te,{isOpen:!!S,onClose:()=>{ne(),M(null)},title:(S==null?void 0:S.label)||"",navDrawerLinks:Pe,onBackClick:()=>M(null),spotlightCards:ae,hasOnlySpotlightCards:S==null?void 0:S.hasOnlySpotlightCards,bottomButton:S==null?void 0:S.bottomButton,topOffset:Y}),t.jsx(Te,{isOpen:Q,onClose:()=>N(!1),title:"Search",navDrawerLinks:Le,onSearch:Se,hasSearch:!0,hasBackButton:!1,topOffset:Y})]})]})};exports.BasketButton=ut;exports.CategoryLabel=Lt;exports.NavButton=Ce;exports.NavSkeleton=Ot;exports.NavbarDrawer=Te;exports.NavbarDrawerLink=ke;exports.NavigationBar=$t;exports.SpotlightCard=it;exports.Stepper=Dt;exports.TopNavIconButton=K;exports.TopNavigation=st;
30
+ <%s key={someKey} {...props} />`,We,q,Rt,q),et[q+We]=!0}}return e===f?jt(T):Ct(T),T}}function yt(e,n,l){return tt(e,n,l,!0)}function wt(e,n,l){return tt(e,n,l,!1)}var Et=wt,St=yt;me.Fragment=f,me.jsx=Et,me.jsxs=St}()),me}process.env.NODE_ENV==="production"?Ve.exports=kt():Ve.exports=Tt();var t=Ve.exports;const Ne=60,lt=6,It=a=>{const{activeStepIndex:s,hideIndicators:h=!1,steps:f,stepperTheme:j={light:"eggplant.light",base:"eggplant.base"}}=a,{activeStep:v,setActiveStep:m}=r.useSteps({index:s,count:f.length});return w.useEffect(()=>{m(s)},[s,m]),t.jsx(r.Box,{position:"relative",width:"100%","data-testid":"stepper",children:t.jsx(r.Stepper,{role:"progressbar",index:v,width:"100%",display:"flex",flexWrap:"nowrap",children:f.map((R,d)=>{const E=v===d,u=d===0,y=d===f.length-1,g=v>d;let c=`${Ne}px`;const I=`calc(100% - ((${Ne*(f.length-1)}px) - (${f.length-1} * ${lt*2}px)))`;return E?c=I:(u||y)&&(c=`${Ne-lt}px`),t.jsx(r.Box,{width:c,opacity:g||E?1:.2,paddingRight:y?"0":"6px",paddingLeft:u?"0":"6px",transition:"width 0.4s ease-in-out, opacity 0.4s ease-in-out",children:t.jsx(r.Box,{paddingTop:h?2:5,position:"relative",width:"100%",children:t.jsx(r.Box,{width:"100%",position:"absolute",top:"0",backgroundColor:g?j.light:j.base,height:h?"4px":"8px",borderRadius:"4",left:"0"})})},`step-${d}`)})})})},Dt=w.memo(It),Lt=({children:a,...s})=>t.jsx(z.Text,{color:"tints.uiGrey",fontSize:["md",null,null,"lg"],...s,children:a}),De=(a,s)=>{const h=(a==null?void 0:a.startsWith("http"))||(a==null?void 0:a.startsWith("mailto"));return s&&!h?{to:a}:{href:a}},ke=w.forwardRef((a,s)=>{const{label:h,additionalContent:f,mainTextFontSize:j,linkComponent:v,href:m,...R}=a,d=v||r.Link,E=De(m,!!v);return t.jsxs(r.Box,{ref:s,as:d,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",...E,...R,children:[t.jsx(r.Icon,{display:["none",null,null,"block"],as:$.CaretRight,fontSize:"lg",color:"viridian.light",role:"img","aria-label":"Caret right icon",weight:"bold"}),t.jsxs(r.Flex,{alignItems:"center",gap:"1",width:["100%",null,null,"auto"],children:[t.jsx(r.Text,{fontSize:[j||"xl",null,null,"lg"],fontWeight:"medium",children:h}),f&&(typeof f=="string"?t.jsx(r.Text,{fontSize:["xl",null,null,"lg"],fontWeight:"medium",color:"tints.uiGrey",sx:{"a:hover &":{color:"viridian.base"}},children:f}):f),t.jsx(r.Icon,{display:["block",null,null,"none"],as:$.CaretRight,fontSize:"2xl",color:"tints.uiGrey",role:"img","aria-label":"Caret right icon",marginLeft:"auto"})]})]})}),Ce=w.forwardRef((a,s)=>{const{children:h,isSelected:f,...j}=a,v=a.backgroundColor||(f?"tints.lightCream":"transparent");return t.jsx(r.Button,{ref:s,borderRadius:"full",backgroundColor:v,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:v,textDecoration:"none",filter:"brightness(0.95)"},...j,children:h})}),it=({title:a,description:s,imageSrc:h,imageElement:f,button:j,backgroundColor:v="viridian.wash",onClick:m,href:R,linkComponent:d})=>{const g=d||r.Link,c=De(R,!!d),I=z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0});return t.jsxs(r.Flex,{direction:["row",null,null,"column"],alignItems:["center"],borderRadius:"xl",overflow:"hidden",height:["80px",null,null,"272px"],backgroundColor:v,onClick:m,"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",cursor:"pointer",textDecoration:"none",border:"1px solid",borderColor:"tints.white"},as:I?r.Flex:g,...I?{}:c,children:[t.jsx(r.Box,{width:["72px",null,null,"100%"],height:["100%",null,null,"188px"],sx:{img:{height:I?"188px":"100%"}},children:h?t.jsx(r.Image,{src:h,objectFit:"cover",width:"100%",alt:"","data-testid":"spotlight-card-image"}):t.jsx(r.Box,{height:[80,null,null,188],overflow:"hidden",children:f})}),t.jsxs(r.Flex,{direction:["column",null,null,"row"],justifyContent:[null,null,null,"space-between"],alignItems:["left",null,null,"center"],padding:"4",height:["80px",null,null,"84px"],width:"100%",bottom:[null,null,null,"0"],backgroundColor:[null,null,null,`${v}CC`],backdropFilter:[null,null,null,"blur(8px)"],flex:"1",gap:[null,null,null,3],children:[t.jsxs(r.Flex,{direction:"column",justifyContent:"center",height:"100%",children:[t.jsx(r.Text,{fontSize:"lg",fontWeight:"medium",color:"tints.black",children:a}),t.jsx(r.Text,{fontSize:"sm",color:"tints.darkGrey",children:s})]}),I?t.jsx(r.Box,{children:j}):null]})]})},K=a=>t.jsx(r.IconButton,{size:"sm",width:["40px",null,null,"46px"],height:["40px",null,null,"46px"],padding:["2 !important",null,null,"3 !important"],colorScheme:"whiteCS",backgroundColor:"tints.cream",sx:{svg:{width:"24px",height:"24px"}},_hover:{backgroundColor:"tints.cream",filter:"brightness(0.95)"},...a}),Bt=({color:a=r.theme.colors.viridian.base,width:s})=>t.jsx(z.Box,{as:"svg",width:s,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:a,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"})})}),st=({desktopTopButtons:a,kitRegistrationElement:s,profileElement:h,cartElement:f,onSearchClick:j,onMenuClick:v,hasSearch:m=!1,logoLink:R="https://www.everlywell.com",setTopOffset:d,linkComponent:E,onLogoClick:u})=>{const y=w.useRef(null),g=w.useCallback(()=>{if(y.current){const c=y.current.getBoundingClientRect();d(c.bottom)}},[]);return w.useEffect(()=>{g()},[g]),t.jsx(r.Box,{ref:y,paddingY:"4",paddingX:[4,null,null,12],borderBottom:"1px solid",borderColor:"tints.lightCream",backgroundColor:"tints.white",position:"sticky",top:"0",width:"100%",zIndex:["sticky",null,null,"tooltip"],onMouseEnter:g,children:t.jsxs(r.Flex,{justifyContent:"space-between",alignItems:"center",children:[t.jsxs(r.Flex,{alignItems:"center",gap:"5",children:[t.jsx(r.Box,{"aria-label":"Go to homepage",onClick:u,as:E||r.Link,...De(R,!!E),children:t.jsx(Bt,{width:"116px"})}),t.jsx(r.Flex,{display:["none",null,null,"flex"],children:a})]}),t.jsxs(r.Flex,{alignItems:"center",gap:"2",children:[t.jsx(r.Box,{display:["none",null,null,"block"],children:s}),m?t.jsx(K,{"aria-label":"Search",icon:t.jsx(r.Icon,{as:$.MagnifyingGlass}),onClick:j}):null,f,t.jsx(r.Box,{display:["flex",null,null,"none"],children:t.jsx(K,{icon:t.jsx($.List,{}),"aria-label":"menu","data-testid":"menu-button",onClick:v})}),t.jsx(r.Box,{display:["none",null,null,"block"],children:h})]})]})})},ut=({count:a=0,...s})=>t.jsxs(r.Box,{position:"relative",display:"inline-block",children:[t.jsx(K,{icon:t.jsx($.Basket,{}),...s}),a>0&&t.jsx(r.Box,{display:"flex",minWidth:"20px",height:"20px",py:"4px",px:"6px",justifyContent:"center",alignItems:"center",position:"absolute",right:"-4px",top:"-4px",borderRadius:"32px",background:"viridian.base",color:"white",fontSize:"xs",fontWeight:"normal",children:a})]}),Ot=({numDesktopLinks:a=5,showPromoButton:s=!1})=>t.jsx(r.VStack,{spacing:0,align:"stretch",children:t.jsx(r.Box,{paddingY:4,paddingX:6,borderBottomWidth:"1px",borderColor:"tints.lightCream",children:t.jsxs(r.Flex,{justify:"space-between",align:"center",children:[t.jsx(r.Skeleton,{w:"120px",h:"48px"}),t.jsxs(r.HStack,{spacing:8,marginLeft:12,display:["none",null,null,"flex"],"data-testid":"desktop-nav",children:[Array.from({length:a}).map((h,f)=>t.jsx(r.Skeleton,{width:"90px",height:"48px"},f)),s&&t.jsx(r.Skeleton,{width:"110px",height:"48px",borderRadius:"full"})]}),t.jsxs(r.HStack,{spacing:4,ml:"auto",children:[t.jsx(r.SkeletonCircle,{width:"120px",height:"48px",display:["none",null,null,"block"],"data-testid":"register-kit"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," ",t.jsx(r.SkeletonCircle,{width:"48px",height:"48px"})," "]})]})})}),Pt=(a,s)=>{let h;return(...f)=>{h&&clearTimeout(h),h=setTimeout(()=>{a(...f)},s)}},Ye="nav-drawer-hover",at=a=>{window.dispatchEvent(new CustomEvent(Ye,{detail:{isHovering:a},bubbles:!0,cancelable:!0}))},Ft=(a=!1,s=!1,h=!1)=>a||!s?"column":h?"row":"row-reverse",Ht=Ie.motion(r.DrawerContent),At=Ie.motion(r.DrawerOverlay),Te=({isOpen:a=!1,onClose:s,title:h,navDrawerLinks:f,bottomNavButtons:j,spotlightCards:v,bottomButton:m,hasBackButton:R=!0,onBackClick:d,hasOnlySpotlightCards:E=!1,hasSearch:u=!1,onSearch:y=()=>({}),topOffset:g})=>{const c=z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0}),I=c?"top":"right",[X,J]=w.useState(0),[F,_]=w.useState(!1),se=()=>{J(H=>H+1)},ue=w.useCallback(Pt(H=>{y(H),se()},100),[]);w.useEffect(()=>{a&&_(!0)},[a]);const ce=()=>{a||(_(!1),s())};return t.jsx(r.Drawer,{isOpen:F||a,onClose:()=>{F&&c||s()},placement:I,blockScrollOnMount:!1,autoFocus:!1,children:t.jsx(Ie.AnimatePresence,{children:a?t.jsxs(t.Fragment,{children:[t.jsx(At,{backgroundColor:"tints.black",top:["0",null,null,`${g}px`],opacity:c?void 0:"0.4 !important",...c?{initial:{opacity:0},animate:{opacity:.4},exit:{opacity:0},transition:{duration:.2,delay:.3,ease:"easeOut"}}:{}}),t.jsxs(Ht,{onClick:H=>{const N=H.target.closest("a");N&&N.href===window.location.href&&s()},onMouseEnter:()=>{c&&at(!0)},onMouseLeave:()=>{c&&at(!1)},paddingTop:"4",paddingX:[4,null,null,12],paddingBottom:"24",overflow:["auto",null,null,"hidden"],maxHeight:"100vh",position:"relative",top:c?`${g}px !important`:void 0,onAnimationComplete:ce,...c?{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3}}:{},children:[!u&&c?null:t.jsxs(r.DrawerHeader,{padding:"0",flexDirection:u?"column":"row",gap:u?"4":"0",children:[c?null:t.jsxs(r.Flex,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[R?t.jsx(K,{icon:t.jsx($.CaretLeft,{}),onClick:()=>{d&&d()},"aria-label":"Back"}):null,t.jsx(r.Text,{color:"tints.uiGrey",fontSize:["xl",null,null,"lg"],children:h}),t.jsx(K,{icon:t.jsx($.X,{}),onClick:s,"aria-label":"Close"})]}),u&&t.jsxs(z.InputGroup,{width:"100%",children:[t.jsx(z.Input,{onChange:H=>{ue(H.target.value)},placeholder:"Search",autoFocus:!0,width:"full",type:"search"}),t.jsx(z.InputRightElement,{pointerEvents:"none",children:t.jsx(z.Icon,{as:$.MagnifyingGlass,color:"gray.500"})})]})]}),t.jsx(r.DrawerBody,{paddingX:"0",paddingBottom:[6,null,null,4],"data-testid":`navbar-drawer-body-${h.toLowerCase()}`,children:t.jsxs(Ie.motion.div,{...c?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},transition:{duration:.5,delay:.2,ease:[.4,0,.2,1],exit:{duration:.5,delay:.2,ease:[.4,0,.2,1]}}}:{},style:{display:"flex",flexDirection:Ft(E,c,u),gap:"24px",justifyContent:"space-between"},children:[v?t.jsx(r.Box,{gap:[3,null,null,6],display:"flex",justifyContent:[null,null,null,"center"],sx:{flexWrap:"wrap",flexDirection:["column",null,null,"row"]},children:v}):null,t.jsxs(r.Flex,{position:[null,null,null,"relative"],flexDirection:"column",gap:"6",width:["100%",null,null,u?null:"auto"],children:[f?t.jsx(r.Box,{children:f}):null,j&&!c?t.jsx(r.Box,{children:j}):null,m?t.jsx(r.Box,{width:["100%"],position:[null,null,null,"absolute"],bottom:[null,null,null,0],children:m}):null]})]},X)})]})]}):null})})},ot=a=>{const s=new Set;return a.reduce((h,f)=>{var v;const j=((v=f.sections)==null?void 0:v.reduce((m,R)=>{const d=R.links.filter(E=>s.has(E.label)||E.isSearchable!==!0?!1:(s.add(E.label),!0));return[...m,...d]},[]))??[];return[...h,...j]},[])},Mt=({source:a,onSearchCallback:s,isActive:h})=>{const[f,j]=w.useState(""),[v,m]=w.useState([]),R=(u,y)=>{if(!u)return[];const g=u.toLowerCase();return y.filter(c=>{const I=c.label.toLowerCase().includes(g),X=typeof c.additionalContent=="string"&&c.additionalContent.toLowerCase().includes(g);return I||X}).sort((c,I)=>c.label.localeCompare(I.label))},d=u=>{if(j(u),!u){m([]);return}const y=R(u,a);m(y),s&&s(u,y)},E=()=>{j(""),m([])};return w.useEffect(()=>{h||(j(""),m([]))},[h]),{query:f,results:v,handleClose:E,handleSearch:d}},$t=({categories:a=[],onCartClick:s,mainCategoryLabel:h="Menu",logoLink:f="https://www.everlywell.com",hasSearch:j=!0,onSearchClick:v,registrationUrl:m,profileUrl:R="https://secure.everlywell.com/login",mobileBottomButtons:d=[],numberOfCartItems:E=0,linkComponent:u,onSearchCallback:y,onLinkClick:g,onCategoryOpen:c,onMobileMenuOpen:I,onBackToMainMenu:X,onRegisterKitClick:J,onProfileClick:F,onLogoClick:_,shopAllProductsUrl:se,onShopAllProductsClick:ue})=>{var G,xe,ge;const[ce,H]=w.useState(!1),[Q,N]=w.useState(!1),[S,M]=w.useState(null),[je,de]=w.useState(!1),[P,V]=w.useState(!1),[Y,ye]=w.useState(0),we=z.useBreakpointValue({base:!1,tablet:!1,largeTablet:!1,desktop:!0})??!1;w.useEffect(()=>{ne(),M(null)},[we]);const{query:Ee,results:ee,handleSearch:Se}=Mt({source:ot(a),onSearchCallback:y,isActive:Q}),fe=ee.length>0,te=u||r.Link,Re=De(se,!!u),Le=Ee&&t.jsxs(r.Flex,{gap:fe?"6":0,direction:"column",children:[fe?t.jsx(r.Text,{color:"tints.uiGrey",children:`${ee.length} Results`}):t.jsxs(r.Flex,{direction:"column",gap:"6",alignItems:"flex-start",children:[t.jsx(r.Text,{color:"tints.uiGrey",children:"We didn't find what you were looking for."}),t.jsx(r.Button,{as:te,onClick:ue,_hover:{textDecoration:"none"},width:["100%",null,null,"auto"],...Re,children:"Shop all products"})]}),t.jsx(r.Grid,{columns:[1,1,1,4],children:ee.map((o,D)=>t.jsx(r.GridItem,{children:t.jsx(ke,{href:o.href,label:o.label,additionalContent:o==null?void 0:o.additionalContent,linkComponent:u})},`${o.label}-${D}`))})]}),ne=()=>{H(!1),M(null)},W=o=>"href"in o,pe=o=>{W(o)?g==null||g(o.label):M(o)},re=o=>{de(!0),N(!1),M(null),!W(o)&&(o.sections||o.spotlightCards)&&M(o)},he=()=>{de(!1)};w.useEffect(()=>{const o=D=>{V(D.detail.isHovering)};return window.addEventListener(Ye,o),()=>{window.removeEventListener(Ye,o)}},[]),w.useEffect(()=>{!je&&!P&&(M(null),N(!1))},[je,P]),w.useEffect(()=>{let o=window.location.href;const D=()=>{const L=window.location.href;L!==o&&(o=L,ne(),M(null))},U=setInterval(D,100);return window.addEventListener("popstate",D),()=>{window.removeEventListener("popstate",D),clearInterval(U)}},[]);const le=t.jsx(t.Fragment,{children:a==null?void 0:a.map((o,D)=>t.jsx(Ce,{onMouseEnter:()=>{re(o),c==null||c(o.label)},onMouseLeave:he,isSelected:(S==null?void 0:S.label)===o.label,as:W(o)&&te?te:r.Link,href:W(o)?o.href:void 0,onClick:W(o)?()=>g==null?void 0:g(o.label):void 0,...o.buttonProps,children:o.label},`${o.label}-${D}`))}),Be=(G=a.filter(o=>!W(o)&&o.isMobileTopLink!==!1))==null?void 0:G.map(o=>{const D=o;return t.jsx(r.Box,{onClick:()=>{pe(D),c==null||c(D.label)},children:t.jsx(ke,{label:D.label,role:"link",additionalContent:D.additionalContent,mainTextFontSize:"3xl",linkComponent:u})},D.label)});ot(a);const _e=t.jsxs(t.Fragment,{children:[t.jsx(Ce,{as:r.Link,href:R,width:"100%",backgroundColor:"tints.cream",onClick:F,children:t.jsxs(r.Flex,{gap:"2",children:["My Everly",t.jsx(r.Icon,{as:$.User,size:24})]})},"my-everly"),t.jsx(Ce,{as:r.Link,width:"100%",href:m,backgroundColor:"tints.cream",onClick:J,children:t.jsxs(r.Flex,{gap:"2",children:["Register kit",t.jsx(r.Icon,{as:$.QrCode,size:24})]})},"register-kit")]}),Oe=t.jsxs(r.Flex,{gap:"2",flexDirection:"column",children:[d,_e]}),Pe=S?t.jsx(r.Flex,{direction:["column",null,null,"row"],gap:"8",children:(xe=S==null?void 0:S.sections)==null?void 0:xe.map((o,D)=>{const U=[];for(let L=0;L<o.links.length;L+=3)U.push(o.links.slice(L,L+3));return t.jsxs(r.Box,{children:[t.jsx(r.Text,{fontSize:"md",color:"tints.uiGrey",marginBottom:[0,null,null,6],children:o.title}),t.jsx(r.Flex,{flexDirection:["column",null,null,"row"],gap:[null,null,null,8],children:U==null?void 0:U.map((L,Fe)=>t.jsx(r.Flex,{flexDirection:["column"],gap:[null,null,null,5],marginLeft:[null,null,null,-2],children:L==null?void 0:L.map(Z=>t.jsx(ke,{label:Z.label,href:Z.href,additionalContent:Z.additionalContent,linkComponent:u,onClick:()=>g==null?void 0:g(Z.label)},Z.label))},Fe))})]},`${o.title}-${D}`)})}):null,ae=S!=null&&S.spotlightCards?(ge=S.spotlightCards)==null?void 0:ge.map(o=>t.jsx(it,{...o},o.title)):t.jsx(r.Box,{});return t.jsxs(t.Fragment,{children:[t.jsx(st,{desktopTopButtons:le,kitRegistrationElement:t.jsx(Ce,{as:r.Link,href:m,onClick:J,backgroundColor:"tints.cream",children:"Register Kit"}),profileElement:t.jsx(r.Link,{href:R,"aria-label":"login",onClick:F,children:t.jsx(K,{icon:t.jsx(r.Icon,{as:$.User}),"aria-label":"Profile"})}),cartElement:t.jsx(ut,{"aria-label":"Cart",count:E,onClick:s}),onSearchClick:()=>{N(!Q),v==null||v()},onMenuClick:()=>{H(!0),I==null||I()},hasSearch:j,logoLink:f,linkComponent:u,onLogoClick:_,setTopOffset:ye}),t.jsxs(r.Box,{position:"relative",zIndex:"modal",children:[t.jsx(Te,{isOpen:ce,onClose:ne,title:h,navDrawerLinks:Be,bottomNavButtons:Oe,hasBackButton:!1,topOffset:Y}),t.jsx(Te,{isOpen:!!S,onClose:()=>{ne(),M(null)},title:(S==null?void 0:S.label)||"",navDrawerLinks:Pe,onBackClick:()=>M(null),spotlightCards:ae,hasOnlySpotlightCards:S==null?void 0:S.hasOnlySpotlightCards,bottomButton:S==null?void 0:S.bottomButton,topOffset:Y}),t.jsx(Te,{isOpen:Q,onClose:()=>N(!1),title:"Search",navDrawerLinks:Le,onSearch:Se,hasSearch:!0,hasBackButton:!1,topOffset:Y})]})]})};exports.BasketButton=ut;exports.CategoryLabel=Lt;exports.NavButton=Ce;exports.NavSkeleton=Ot;exports.NavbarDrawer=Te;exports.NavbarDrawerLink=ke;exports.NavigationBar=$t;exports.SpotlightCard=it;exports.Stepper=Dt;exports.TopNavIconButton=K;exports.TopNavigation=st;
package/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { useSteps as Mt, Box as E, Stepper as Wt, Icon as ue, Flex as k, Text as K, Link as z, Button as xt, Image as Bt, IconButton as Vt, VStack as Nt, Skeleton as Ne, HStack as ut, SkeletonCircle as De, DrawerContent as Yt, DrawerOverlay as zt, Drawer as Gt, DrawerHeader as Ut, DrawerBody as Zt, Grid as Kt, GridItem as Xt } from "@everlywell/ui-kit";
2
- import Ke, { useEffect as Z, forwardRef as bt, useRef as Jt, useCallback as mt, useState as B } from "react";
3
- import { Text as qt, useBreakpointValue as Xe, InputGroup as Qt, Input as er, InputRightElement as tr, Icon as rr } from "@chakra-ui/react";
4
- import { CaretRight as ct, MagnifyingGlass as jt, List as nr, Basket as lr, CaretLeft as ar, X as ir, User as dt, QrCode as or } from "@phosphor-icons/react";
5
- import { motion as Je, AnimatePresence as sr } from "framer-motion";
1
+ import { useSteps as Mt, Box as E, Stepper as Bt, Icon as ue, Flex as k, Text as K, Link as z, Button as xt, Image as Wt, IconButton as Vt, theme as Nt, VStack as Yt, Skeleton as Ne, HStack as ut, SkeletonCircle as De, DrawerContent as zt, DrawerOverlay as Gt, Drawer as Ut, DrawerHeader as Zt, DrawerBody as Kt, Grid as Xt, GridItem as Jt } from "@everlywell/ui-kit";
2
+ import Ke, { useEffect as Z, forwardRef as bt, useRef as qt, useCallback as mt, useState as W } from "react";
3
+ import { Text as Qt, useBreakpointValue as Xe, Box as er, InputGroup as tr, Input as rr, InputRightElement as nr, Icon as lr } from "@chakra-ui/react";
4
+ import { CaretRight as ct, MagnifyingGlass as jt, List as ar, Basket as ir, CaretLeft as or, X as sr, User as dt, QrCode as ur } from "@phosphor-icons/react";
5
+ import { motion as Je, AnimatePresence as cr } from "framer-motion";
6
6
  var Ue = { exports: {} }, Ce = {};
7
7
  /**
8
8
  * @license React
@@ -14,7 +14,7 @@ var Ue = { exports: {} }, Ce = {};
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
16
  var ft;
17
- function ur() {
17
+ function dr() {
18
18
  if (ft) return Ce;
19
19
  ft = 1;
20
20
  var l = Ke, o = Symbol.for("react.element"), p = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, j = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
@@ -38,7 +38,7 @@ var ye = {};
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
40
  var pt;
41
- function cr() {
41
+ function fr() {
42
42
  return pt || (pt = 1, process.env.NODE_ENV !== "production" && function() {
43
43
  var l = Ke, o = Symbol.for("react.element"), p = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), R = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), D = Symbol.iterator, q = "@@iterator";
44
44
  function Q(e) {
@@ -47,7 +47,7 @@ function cr() {
47
47
  var r = D && e[D] || e[q];
48
48
  return typeof r == "function" ? r : null;
49
49
  }
50
- var A = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ var $ = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
51
  function _(e) {
52
52
  {
53
53
  for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
@@ -57,7 +57,7 @@ function cr() {
57
57
  }
58
58
  function de(e, r, n) {
59
59
  {
60
- var i = A.ReactDebugCurrentFrame, x = i.getStackAddendum();
60
+ var i = $.ReactDebugCurrentFrame, x = i.getStackAddendum();
61
61
  x !== "" && (r += "%s", n = n.concat([x]));
62
62
  var m = n.map(function(h) {
63
63
  return String(h);
@@ -65,10 +65,10 @@ function cr() {
65
65
  m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
66
66
  }
67
67
  }
68
- var fe = !1, pe = !1, $ = !1, ee = !1, V = !1, w;
68
+ var fe = !1, pe = !1, A = !1, ee = !1, V = !1, w;
69
69
  w = Symbol.for("react.module.reference");
70
70
  function M(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === v || V || e === j || e === y || e === s || ee || e === u || fe || pe || $ || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === C || e.$$typeof === b || e.$$typeof === R || e.$$typeof === c || // This needs to include all possible module reference object
71
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === v || V || e === j || e === y || e === s || ee || e === u || fe || pe || A || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === C || e.$$typeof === b || e.$$typeof === R || e.$$typeof === c || // 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.
@@ -191,7 +191,7 @@ function cr() {
191
191
  Y < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var W = A.ReactCurrentDispatcher, ve;
194
+ var B = $.ReactCurrentDispatcher, ve;
195
195
  function le(e, r, n) {
196
196
  {
197
197
  if (ve === void 0)
@@ -223,7 +223,7 @@ function cr() {
223
223
  var x = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var m;
226
- m = W.current, W.current = null, Pe();
226
+ m = B.current, B.current = null, Pe();
227
227
  try {
228
228
  if (r) {
229
229
  var h = function() {
@@ -276,7 +276,7 @@ function cr() {
276
276
  }
277
277
  }
278
278
  } finally {
279
- xe = !1, W.current = m, ne(), Error.prepareStackTrace = x;
279
+ xe = !1, B.current = m, ne(), Error.prepareStackTrace = x;
280
280
  }
281
281
  var se = e ? e.displayName || e.name : "", J = se ? le(se) : "";
282
282
  return typeof e == "function" && ae.set(e, J), J;
@@ -284,7 +284,7 @@ function cr() {
284
284
  function He(e, r, n) {
285
285
  return ke(e, !1);
286
286
  }
287
- function Ae(e) {
287
+ function $e(e) {
288
288
  var r = e.prototype;
289
289
  return !!(r && r.isReactComponent);
290
290
  }
@@ -292,7 +292,7 @@ function cr() {
292
292
  if (e == null)
293
293
  return "";
294
294
  if (typeof e == "function")
295
- return ke(e, Ae(e));
295
+ return ke(e, $e(e));
296
296
  if (typeof e == "string")
297
297
  return le(e);
298
298
  switch (e) {
@@ -317,7 +317,7 @@ function cr() {
317
317
  }
318
318
  return "";
319
319
  }
320
- var G = Object.prototype.hasOwnProperty, be = {}, me = A.ReactDebugCurrentFrame;
320
+ var G = Object.prototype.hasOwnProperty, be = {}, me = $.ReactDebugCurrentFrame;
321
321
  function a(e) {
322
322
  if (e) {
323
323
  var r = e._owner, n = ie(e.type, e._source, r ? r.type : null);
@@ -348,7 +348,7 @@ function cr() {
348
348
  function O(e) {
349
349
  return U(e);
350
350
  }
351
- function $e(e) {
351
+ function Ae(e) {
352
352
  {
353
353
  var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
354
  return n;
@@ -366,9 +366,9 @@ function cr() {
366
366
  }
367
367
  function Qe(e) {
368
368
  if (X(e))
369
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $e(e)), qe(e);
369
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ae(e)), qe(e);
370
370
  }
371
- var je = A.ReactCurrentOwner, Ct = {
371
+ var je = $.ReactCurrentOwner, Ct = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
@@ -466,7 +466,7 @@ function cr() {
466
466
  return St(e, f, P, x, i, je.current, h);
467
467
  }
468
468
  }
469
- var Me = A.ReactCurrentOwner, rt = A.ReactDebugCurrentFrame;
469
+ var Me = $.ReactCurrentOwner, rt = $.ReactDebugCurrentFrame;
470
470
  function oe(e) {
471
471
  if (e) {
472
472
  var r = e._owner, n = ie(e.type, e._source, r ? r.type : null);
@@ -474,9 +474,9 @@ function cr() {
474
474
  } else
475
475
  rt.setExtraStackFrame(null);
476
476
  }
477
- var We;
478
- We = !1;
479
- function Be(e) {
477
+ var Be;
478
+ Be = !1;
479
+ function We(e) {
480
480
  return typeof e == "object" && e !== null && e.$$typeof === o;
481
481
  }
482
482
  function nt() {
@@ -527,15 +527,15 @@ Check the top-level render call using <` + n + ">.");
527
527
  if (O(e))
528
528
  for (var n = 0; n < e.length; n++) {
529
529
  var i = e[n];
530
- Be(i) && at(i, r);
530
+ We(i) && at(i, r);
531
531
  }
532
- else if (Be(e))
532
+ else if (We(e))
533
533
  e._store && (e._store.validated = !0);
534
534
  else if (e) {
535
535
  var x = Q(e);
536
536
  if (typeof x == "function" && x !== e.entries)
537
537
  for (var m = x.call(e), h; !(h = m.next()).done; )
538
- Be(h.value) && at(h.value, r);
538
+ We(h.value) && at(h.value, r);
539
539
  }
540
540
  }
541
541
  }
@@ -556,8 +556,8 @@ Check the top-level render call using <` + n + ">.");
556
556
  if (n) {
557
557
  var i = H(r);
558
558
  I(n, e.props, "prop", i, e);
559
- } else if (r.PropTypes !== void 0 && !We) {
560
- We = !0;
559
+ } else if (r.PropTypes !== void 0 && !Be) {
560
+ Be = !0;
561
561
  var x = H(r);
562
562
  _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
563
563
  }
@@ -609,13 +609,13 @@ Check the top-level render call using <` + n + ">.");
609
609
  return Ft !== "key";
610
610
  }), Ve = L.length > 0 ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}";
611
611
  if (!ot[J + Ve]) {
612
- var $t = L.length > 0 ? "{" + L.join(": ..., ") + ": ...}" : "{}";
612
+ var At = L.length > 0 ? "{" + L.join(": ..., ") + ": ...}" : "{}";
613
613
  _(`A props object containing a "key" prop is being spread into JSX:
614
614
  let props = %s;
615
615
  <%s {...props} />
616
616
  React keys must be passed directly to JSX without using spread:
617
617
  let props = %s;
618
- <%s key={someKey} {...props} />`, Ve, J, $t, J), ot[J + Ve] = !0;
618
+ <%s key={someKey} {...props} />`, Ve, J, At, J), ot[J + Ve] = !0;
619
619
  }
620
620
  }
621
621
  return e === d ? Ot(T) : It(T), T;
@@ -627,13 +627,13 @@ React keys must be passed directly to JSX without using spread:
627
627
  function Lt(e, r, n) {
628
628
  return st(e, r, n, !1);
629
629
  }
630
- var Ht = Lt, At = Pt;
631
- ye.Fragment = d, ye.jsx = Ht, ye.jsxs = At;
630
+ var Ht = Lt, $t = Pt;
631
+ ye.Fragment = d, ye.jsx = Ht, ye.jsxs = $t;
632
632
  }()), ye;
633
633
  }
634
- process.env.NODE_ENV === "production" ? Ue.exports = ur() : Ue.exports = cr();
634
+ process.env.NODE_ENV === "production" ? Ue.exports = dr() : Ue.exports = fr();
635
635
  var t = Ue.exports;
636
- const Ye = 60, ht = 6, dr = (l) => {
636
+ const Ye = 60, ht = 6, pr = (l) => {
637
637
  const {
638
638
  activeStepIndex: o,
639
639
  hideIndicators: p = !1,
@@ -651,7 +651,7 @@ const Ye = 60, ht = 6, dr = (l) => {
651
651
  }, [o, b]), /* @__PURE__ */ t.jsx(
652
652
  E,
653
653
  { position: "relative", width: "100%", "data-testid": "stepper", children: /* @__PURE__ */ t.jsx(
654
- Wt,
654
+ Bt,
655
655
  {
656
656
  role: "progressbar",
657
657
  index: v,
@@ -697,11 +697,11 @@ const Ye = 60, ht = 6, dr = (l) => {
697
697
  }
698
698
  ) }
699
699
  );
700
- }, _r = Ke.memo(dr), Sr = ({
700
+ }, Tr = Ke.memo(pr), kr = ({
701
701
  children: l,
702
702
  ...o
703
703
  }) => /* @__PURE__ */ t.jsx(
704
- qt,
704
+ Qt,
705
705
  { color: "tints.uiGrey", fontSize: ["md", null, null, "lg"], ...o, children: l }
706
706
  ), Oe = (l, o) => {
707
707
  const p = (l == null ? void 0 : l.startsWith("http")) || (l == null ? void 0 : l.startsWith("mailto"));
@@ -829,7 +829,7 @@ const Ye = 60, ht = 6, dr = (l) => {
829
829
  }
830
830
  );
831
831
  }
832
- ), fr = ({
832
+ ), hr = ({
833
833
  title: l,
834
834
  description: o,
835
835
  imageSrc: p,
@@ -884,7 +884,7 @@ const Ye = 60, ht = 6, dr = (l) => {
884
884
  }
885
885
  },
886
886
  children: p ? /* @__PURE__ */ t.jsx(
887
- Bt,
887
+ Wt,
888
888
  {
889
889
  src: p,
890
890
  objectFit: "cover",
@@ -963,11 +963,15 @@ const Ye = 60, ht = 6, dr = (l) => {
963
963
  },
964
964
  ...l
965
965
  }
966
- ), pr = () => /* @__PURE__ */ t.jsx(
967
- "svg",
966
+ ), gr = ({
967
+ color: l = Nt.colors.viridian.base,
968
+ width: o
969
+ }) => /* @__PURE__ */ t.jsx(
970
+ er,
968
971
  {
969
- width: "116",
970
- height: "24",
972
+ as: "svg",
973
+ width: o,
974
+ height: "auto",
971
975
  viewBox: "0 0 116 24",
972
976
  fill: "none",
973
977
  xmlns: "http://www.w3.org/2000/svg",
@@ -978,16 +982,16 @@ const Ye = 60, ht = 6, dr = (l) => {
978
982
  { id: "Everlywell Logo", children: /* @__PURE__ */ t.jsx(
979
983
  "path",
980
984
  {
985
+ fill: l,
981
986
  id: "Everlywell Logo_2",
982
987
  fillRule: "evenodd",
983
988
  clipRule: "evenodd",
984
- 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",
985
- fill: "#28724F"
989
+ 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"
986
990
  }
987
991
  ) }
988
992
  )
989
993
  }
990
- ), hr = ({
994
+ ), vr = ({
991
995
  desktopTopButtons: l,
992
996
  kitRegistrationElement: o,
993
997
  profileElement: p,
@@ -1000,7 +1004,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1000
1004
  linkComponent: y,
1001
1005
  onLogoClick: s
1002
1006
  }) => {
1003
- const C = Jt(null), g = mt(() => {
1007
+ const C = qt(null), g = mt(() => {
1004
1008
  if (C.current) {
1005
1009
  const u = C.current.getBoundingClientRect();
1006
1010
  c(u.bottom);
@@ -1035,7 +1039,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1035
1039
  onClick: s,
1036
1040
  as: y || z,
1037
1041
  ...Oe(R, !!y),
1038
- children: /* @__PURE__ */ t.jsx(pr, {})
1042
+ children: /* @__PURE__ */ t.jsx(gr, { width: "116px" })
1039
1043
  }
1040
1044
  ),
1041
1045
  /* @__PURE__ */ t.jsx(
@@ -1065,7 +1069,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1065
1069
  { display: ["flex", null, null, "none"], children: /* @__PURE__ */ t.jsx(
1066
1070
  ce,
1067
1071
  {
1068
- icon: /* @__PURE__ */ t.jsx(nr, {}),
1072
+ icon: /* @__PURE__ */ t.jsx(ar, {}),
1069
1073
  "aria-label": "menu",
1070
1074
  "data-testid": "menu-button",
1071
1075
  onClick: v
@@ -1079,13 +1083,13 @@ const Ye = 60, ht = 6, dr = (l) => {
1079
1083
  )
1080
1084
  }
1081
1085
  );
1082
- }, gr = ({
1086
+ }, xr = ({
1083
1087
  count: l = 0,
1084
1088
  ...o
1085
1089
  }) => /* @__PURE__ */ t.jsxs(
1086
1090
  E,
1087
1091
  { position: "relative", display: "inline-block", children: [
1088
- /* @__PURE__ */ t.jsx(ce, { icon: /* @__PURE__ */ t.jsx(lr, {}), ...o }),
1092
+ /* @__PURE__ */ t.jsx(ce, { icon: /* @__PURE__ */ t.jsx(ir, {}), ...o }),
1089
1093
  l > 0 && /* @__PURE__ */ t.jsx(
1090
1094
  E,
1091
1095
  {
@@ -1108,11 +1112,11 @@ const Ye = 60, ht = 6, dr = (l) => {
1108
1112
  }
1109
1113
  )
1110
1114
  ] }
1111
- ), Tr = ({
1115
+ ), Dr = ({
1112
1116
  numDesktopLinks: l = 5,
1113
1117
  showPromoButton: o = !1
1114
1118
  }) => /* @__PURE__ */ t.jsx(
1115
- Nt,
1119
+ Yt,
1116
1120
  { spacing: 0, align: "stretch", children: /* @__PURE__ */ t.jsx(
1117
1121
  E,
1118
1122
  {
@@ -1164,7 +1168,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1164
1168
  )
1165
1169
  }
1166
1170
  ) }
1167
- ), vr = (l, o) => {
1171
+ ), br = (l, o) => {
1168
1172
  let p;
1169
1173
  return (...d) => {
1170
1174
  p && clearTimeout(p), p = setTimeout(() => {
@@ -1179,7 +1183,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1179
1183
  cancelable: !0
1180
1184
  })
1181
1185
  );
1182
- }, xr = (l = !1, o = !1, p = !1) => l || !o ? "column" : p ? "row" : "row-reverse", br = Je(Yt), mr = Je(zt), Ge = ({
1186
+ }, mr = (l = !1, o = !1, p = !1) => l || !o ? "column" : p ? "row" : "row-reverse", jr = Je(zt), Cr = Je(Gt), Ge = ({
1183
1187
  isOpen: l = !1,
1184
1188
  onClose: o,
1185
1189
  title: p,
@@ -1199,11 +1203,11 @@ const Ye = 60, ht = 6, dr = (l) => {
1199
1203
  tablet: !1,
1200
1204
  largeTablet: !1,
1201
1205
  desktop: !0
1202
- }), D = u ? "top" : "right", [q, Q] = B(0), [A, _] = B(!1), de = () => {
1203
- Q(($) => $ + 1);
1206
+ }), D = u ? "top" : "right", [q, Q] = W(0), [$, _] = W(!1), de = () => {
1207
+ Q((A) => A + 1);
1204
1208
  }, fe = mt(
1205
- vr(($) => {
1206
- C($), de();
1209
+ br((A) => {
1210
+ C(A), de();
1207
1211
  }, 100),
1208
1212
  []
1209
1213
  );
@@ -1214,22 +1218,22 @@ const Ye = 60, ht = 6, dr = (l) => {
1214
1218
  l || (_(!1), o());
1215
1219
  };
1216
1220
  return /* @__PURE__ */ t.jsx(
1217
- Gt,
1221
+ Ut,
1218
1222
  {
1219
- isOpen: A || l,
1223
+ isOpen: $ || l,
1220
1224
  onClose: () => {
1221
- A && u || o();
1225
+ $ && u || o();
1222
1226
  },
1223
1227
  placement: D,
1224
1228
  blockScrollOnMount: !1,
1225
1229
  autoFocus: !1,
1226
1230
  children: /* @__PURE__ */ t.jsx(
1227
- sr,
1231
+ cr,
1228
1232
  { children: l ? /* @__PURE__ */ t.jsxs(
1229
1233
  t.Fragment,
1230
1234
  { children: [
1231
1235
  /* @__PURE__ */ t.jsx(
1232
- mr,
1236
+ Cr,
1233
1237
  {
1234
1238
  backgroundColor: "tints.black",
1235
1239
  top: ["0", null, null, `${g}px`],
@@ -1247,10 +1251,10 @@ const Ye = 60, ht = 6, dr = (l) => {
1247
1251
  }
1248
1252
  ),
1249
1253
  /* @__PURE__ */ t.jsxs(
1250
- br,
1254
+ jr,
1251
1255
  {
1252
- onClick: ($) => {
1253
- const V = $.target.closest("a");
1256
+ onClick: (A) => {
1257
+ const V = A.target.closest("a");
1254
1258
  V && V.href === window.location.href && o();
1255
1259
  },
1256
1260
  onMouseEnter: () => {
@@ -1275,7 +1279,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1275
1279
  } : {},
1276
1280
  children: [
1277
1281
  !s && u ? null : /* @__PURE__ */ t.jsxs(
1278
- Ut,
1282
+ Zt,
1279
1283
  {
1280
1284
  padding: "0",
1281
1285
  flexDirection: s ? "column" : "row",
@@ -1291,7 +1295,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1291
1295
  R ? /* @__PURE__ */ t.jsx(
1292
1296
  ce,
1293
1297
  {
1294
- icon: /* @__PURE__ */ t.jsx(ar, {}),
1298
+ icon: /* @__PURE__ */ t.jsx(or, {}),
1295
1299
  onClick: () => {
1296
1300
  c && c();
1297
1301
  },
@@ -1309,7 +1313,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1309
1313
  /* @__PURE__ */ t.jsx(
1310
1314
  ce,
1311
1315
  {
1312
- icon: /* @__PURE__ */ t.jsx(ir, {}),
1316
+ icon: /* @__PURE__ */ t.jsx(sr, {}),
1313
1317
  onClick: o,
1314
1318
  "aria-label": "Close"
1315
1319
  }
@@ -1318,13 +1322,13 @@ const Ye = 60, ht = 6, dr = (l) => {
1318
1322
  }
1319
1323
  ),
1320
1324
  s && /* @__PURE__ */ t.jsxs(
1321
- Qt,
1325
+ tr,
1322
1326
  { width: "100%", children: [
1323
1327
  /* @__PURE__ */ t.jsx(
1324
- er,
1328
+ rr,
1325
1329
  {
1326
- onChange: ($) => {
1327
- fe($.target.value);
1330
+ onChange: (A) => {
1331
+ fe(A.target.value);
1328
1332
  },
1329
1333
  placeholder: "Search",
1330
1334
  autoFocus: !0,
@@ -1333,8 +1337,8 @@ const Ye = 60, ht = 6, dr = (l) => {
1333
1337
  }
1334
1338
  ),
1335
1339
  /* @__PURE__ */ t.jsx(
1336
- tr,
1337
- { pointerEvents: "none", children: /* @__PURE__ */ t.jsx(rr, { as: jt, color: "gray.500" }) }
1340
+ nr,
1341
+ { pointerEvents: "none", children: /* @__PURE__ */ t.jsx(lr, { as: jt, color: "gray.500" }) }
1338
1342
  )
1339
1343
  ] }
1340
1344
  )
@@ -1342,7 +1346,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1342
1346
  }
1343
1347
  ),
1344
1348
  /* @__PURE__ */ t.jsx(
1345
- Zt,
1349
+ Kt,
1346
1350
  {
1347
1351
  paddingX: "0",
1348
1352
  paddingBottom: [6, null, null, 4],
@@ -1367,7 +1371,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1367
1371
  } : {},
1368
1372
  style: {
1369
1373
  display: "flex",
1370
- flexDirection: xr(
1374
+ flexDirection: mr(
1371
1375
  y,
1372
1376
  u,
1373
1377
  s
@@ -1435,12 +1439,12 @@ const Ye = 60, ht = 6, dr = (l) => {
1435
1439
  }, [])) ?? [];
1436
1440
  return [...p, ...j];
1437
1441
  }, []);
1438
- }, jr = ({
1442
+ }, yr = ({
1439
1443
  source: l,
1440
1444
  onSearchCallback: o,
1441
1445
  isActive: p
1442
1446
  }) => {
1443
- const [d, j] = B(""), [v, b] = B([]), R = (s, C) => {
1447
+ const [d, j] = W(""), [v, b] = W([]), R = (s, C) => {
1444
1448
  if (!s) return [];
1445
1449
  const g = s.toLowerCase();
1446
1450
  return C.filter((u) => {
@@ -1465,7 +1469,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1465
1469
  handleClose: y,
1466
1470
  handleSearch: c
1467
1471
  };
1468
- }, kr = ({
1472
+ }, Ir = ({
1469
1473
  categories: l = [],
1470
1474
  onCartClick: o,
1471
1475
  mainCategoryLabel: p = "Menu",
@@ -1483,13 +1487,13 @@ const Ye = 60, ht = 6, dr = (l) => {
1483
1487
  onMobileMenuOpen: D,
1484
1488
  onBackToMainMenu: q,
1485
1489
  onRegisterKitClick: Q,
1486
- onProfileClick: A,
1490
+ onProfileClick: $,
1487
1491
  onLogoClick: _,
1488
1492
  shopAllProductsUrl: de,
1489
1493
  onShopAllProductsClick: fe
1490
1494
  }) => {
1491
1495
  var G, be, me;
1492
- const [pe, $] = B(!1), [ee, V] = B(!1), [w, M] = B(null), [we, he] = B(!1), [H, N] = B(!1), [Y, Ee] = B(0), Re = Xe({
1496
+ const [pe, A] = W(!1), [ee, V] = W(!1), [w, M] = W(null), [we, he] = W(!1), [H, N] = W(!1), [Y, Ee] = W(0), Re = Xe({
1493
1497
  base: !1,
1494
1498
  tablet: !1,
1495
1499
  largeTablet: !1,
@@ -1502,7 +1506,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1502
1506
  query: _e,
1503
1507
  results: te,
1504
1508
  handleSearch: Se
1505
- } = jr({
1509
+ } = yr({
1506
1510
  source: vt(l),
1507
1511
  onSearchCallback: C,
1508
1512
  isActive: ee
@@ -1530,10 +1534,10 @@ const Ye = 60, ht = 6, dr = (l) => {
1530
1534
  ] }
1531
1535
  ),
1532
1536
  /* @__PURE__ */ t.jsx(
1533
- Kt,
1537
+ Xt,
1534
1538
  { columns: [1, 1, 1, 4], children: te.map(
1535
1539
  (a, I) => /* @__PURE__ */ t.jsx(
1536
- Xt,
1540
+ Jt,
1537
1541
  { children: /* @__PURE__ */ t.jsx(
1538
1542
  ze,
1539
1543
  {
@@ -1549,11 +1553,11 @@ const Ye = 60, ht = 6, dr = (l) => {
1549
1553
  )
1550
1554
  ] }
1551
1555
  ), ne = () => {
1552
- $(!1), M(null);
1553
- }, W = (a) => "href" in a, ve = (a) => {
1554
- W(a) ? g == null || g(a.label) : M(a);
1556
+ A(!1), M(null);
1557
+ }, B = (a) => "href" in a, ve = (a) => {
1558
+ B(a) ? g == null || g(a.label) : M(a);
1555
1559
  }, le = (a) => {
1556
- he(!0), V(!1), M(null), !W(a) && (a.sections || a.spotlightCards) && M(a);
1560
+ he(!0), V(!1), M(null), !B(a) && (a.sections || a.spotlightCards) && M(a);
1557
1561
  }, xe = () => {
1558
1562
  he(!1);
1559
1563
  };
@@ -1593,9 +1597,9 @@ const Ye = 60, ht = 6, dr = (l) => {
1593
1597
  },
1594
1598
  onMouseLeave: xe,
1595
1599
  isSelected: (w == null ? void 0 : w.label) === a.label,
1596
- as: W(a) && re ? re : z,
1597
- href: W(a) ? a.href : void 0,
1598
- onClick: W(a) ? () => g == null ? void 0 : g(a.label) : void 0,
1600
+ as: B(a) && re ? re : z,
1601
+ href: B(a) ? a.href : void 0,
1602
+ onClick: B(a) ? () => g == null ? void 0 : g(a.label) : void 0,
1599
1603
  ...a.buttonProps,
1600
1604
  children: a.label
1601
1605
  },
@@ -1603,7 +1607,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1603
1607
  )
1604
1608
  ) }
1605
1609
  ), Le = (G = l.filter(
1606
- (a) => !W(a) && a.isMobileTopLink !== !1
1610
+ (a) => !B(a) && a.isMobileTopLink !== !1
1607
1611
  )) == null ? void 0 : G.map((a) => {
1608
1612
  const I = a;
1609
1613
  return /* @__PURE__ */ t.jsx(
@@ -1637,7 +1641,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1637
1641
  href: R,
1638
1642
  width: "100%",
1639
1643
  backgroundColor: "tints.cream",
1640
- onClick: A,
1644
+ onClick: $,
1641
1645
  children: /* @__PURE__ */ t.jsxs(
1642
1646
  k,
1643
1647
  { gap: "2", children: [
@@ -1660,7 +1664,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1660
1664
  k,
1661
1665
  { gap: "2", children: [
1662
1666
  "Register kit",
1663
- /* @__PURE__ */ t.jsx(ue, { as: or, size: 24 })
1667
+ /* @__PURE__ */ t.jsx(ue, { as: ur, size: 24 })
1664
1668
  ] }
1665
1669
  )
1666
1670
  },
@@ -1673,7 +1677,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1673
1677
  c,
1674
1678
  ke
1675
1679
  ] }
1676
- ), Ae = w ? /* @__PURE__ */ t.jsx(
1680
+ ), $e = w ? /* @__PURE__ */ t.jsx(
1677
1681
  k,
1678
1682
  { direction: ["column", null, null, "row"], gap: "8", children: (be = w == null ? void 0 : w.sections) == null ? void 0 : be.map((a, I) => {
1679
1683
  const U = [];
@@ -1697,7 +1701,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1697
1701
  flexDirection: ["column", null, null, "row"],
1698
1702
  gap: [null, null, null, 8],
1699
1703
  children: U == null ? void 0 : U.map(
1700
- (O, $e) => /* @__PURE__ */ t.jsx(
1704
+ (O, Ae) => /* @__PURE__ */ t.jsx(
1701
1705
  k,
1702
1706
  {
1703
1707
  flexDirection: ["column"],
@@ -1717,7 +1721,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1717
1721
  )
1718
1722
  )
1719
1723
  },
1720
- $e
1724
+ Ae
1721
1725
  )
1722
1726
  )
1723
1727
  }
@@ -1727,13 +1731,13 @@ const Ye = 60, ht = 6, dr = (l) => {
1727
1731
  );
1728
1732
  }) }
1729
1733
  ) : null, ie = w != null && w.spotlightCards ? (me = w.spotlightCards) == null ? void 0 : me.map(
1730
- (a) => /* @__PURE__ */ t.jsx(fr, { ...a }, a.title)
1734
+ (a) => /* @__PURE__ */ t.jsx(hr, { ...a }, a.title)
1731
1735
  ) : /* @__PURE__ */ t.jsx(E, {});
1732
1736
  return /* @__PURE__ */ t.jsxs(
1733
1737
  t.Fragment,
1734
1738
  { children: [
1735
1739
  /* @__PURE__ */ t.jsx(
1736
- hr,
1740
+ vr,
1737
1741
  {
1738
1742
  desktopTopButtons: ae,
1739
1743
  kitRegistrationElement: /* @__PURE__ */ t.jsx(
@@ -1748,10 +1752,10 @@ const Ye = 60, ht = 6, dr = (l) => {
1748
1752
  ),
1749
1753
  profileElement: /* @__PURE__ */ t.jsx(
1750
1754
  z,
1751
- { href: R, "aria-label": "login", onClick: A, children: /* @__PURE__ */ t.jsx(ce, { icon: /* @__PURE__ */ t.jsx(ue, { as: dt }), "aria-label": "Profile" }) }
1755
+ { href: R, "aria-label": "login", onClick: $, children: /* @__PURE__ */ t.jsx(ce, { icon: /* @__PURE__ */ t.jsx(ue, { as: dt }), "aria-label": "Profile" }) }
1752
1756
  ),
1753
1757
  cartElement: /* @__PURE__ */ t.jsx(
1754
- gr,
1758
+ xr,
1755
1759
  {
1756
1760
  "aria-label": "Cart",
1757
1761
  count: y,
@@ -1762,7 +1766,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1762
1766
  V(!ee), v == null || v();
1763
1767
  },
1764
1768
  onMenuClick: () => {
1765
- $(!0), D == null || D();
1769
+ A(!0), D == null || D();
1766
1770
  },
1767
1771
  hasSearch: j,
1768
1772
  logoLink: d,
@@ -1794,7 +1798,7 @@ const Ye = 60, ht = 6, dr = (l) => {
1794
1798
  ne(), M(null);
1795
1799
  },
1796
1800
  title: (w == null ? void 0 : w.label) || "",
1797
- navDrawerLinks: Ae,
1801
+ navDrawerLinks: $e,
1798
1802
  onBackClick: () => M(null),
1799
1803
  spotlightCards: ie,
1800
1804
  hasOnlySpotlightCards: w == null ? void 0 : w.hasOnlySpotlightCards,
@@ -1821,15 +1825,15 @@ const Ye = 60, ht = 6, dr = (l) => {
1821
1825
  );
1822
1826
  };
1823
1827
  export {
1824
- gr as BasketButton,
1825
- Sr as CategoryLabel,
1828
+ xr as BasketButton,
1829
+ kr as CategoryLabel,
1826
1830
  Ie as NavButton,
1827
- Tr as NavSkeleton,
1831
+ Dr as NavSkeleton,
1828
1832
  Ge as NavbarDrawer,
1829
1833
  ze as NavbarDrawerLink,
1830
- kr as NavigationBar,
1831
- fr as SpotlightCard,
1832
- _r as Stepper,
1834
+ Ir as NavigationBar,
1835
+ hr as SpotlightCard,
1836
+ Tr as Stepper,
1833
1837
  ce as TopNavIconButton,
1834
- hr as TopNavigation
1838
+ vr as TopNavigation
1835
1839
  };
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { CustomLinkComponent } from '../../Navbar/types';
3
+ export interface ComplianceLink {
4
+ label: string;
5
+ href?: string;
6
+ }
7
+ export interface ComplianceLinksProps {
8
+ links?: ComplianceLink[];
9
+ disclaimer?: string;
10
+ linkComponent?: CustomLinkComponent;
11
+ onLinkClick?: (label: string) => void;
12
+ }
13
+ export declare const ComplianceLinks: React.FC<ComplianceLinksProps>;
14
+ //# sourceMappingURL=ComplianceLinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComplianceLinks.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/ComplianceLinks/ComplianceLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAgB,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8C1D,CAAC"}
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.FC<import("./ComplianceLinks").ComplianceLinksProps>;
6
+ parameters: {
7
+ backgrounds: {
8
+ default: string;
9
+ values: {
10
+ name: string;
11
+ value: string;
12
+ }[];
13
+ };
14
+ };
15
+ args: {
16
+ links: {
17
+ label: string;
18
+ href: string;
19
+ }[];
20
+ };
21
+ };
22
+ export default meta;
23
+ type Story = StoryObj<typeof meta>;
24
+ export declare const Default: Story;
25
+ export declare const WithCustomDisclaimer: Story;
26
+ //# sourceMappingURL=ComplianceLinks.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComplianceLinks.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/ComplianceLinks/ComplianceLinks.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;CAkB8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,oBAAoB,EAAE,KAIlC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FooterProps } from "./Footer";
2
+ export declare const defaultProps: FooterProps;
3
+ export declare const buildNavigationBarProps: (props?: Partial<FooterProps>) => FooterProps;
4
+ //# sourceMappingURL=Footer.builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footer.builder.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/Footer/Footer.builder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAsFvC,eAAO,MAAM,YAAY,EAAE,WAS1B,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAC3B,OAAO,CAAC,WAAW,CAAC,KAC1B,WAGD,CAAC"}
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { NavigationLinksProps } from '../NavigationLinks/NavigationLinks';
3
+ import { UpdatesAndSocialProps } from '../UpdatesAndSocial/UpdatesAndSocial';
4
+ import { ComplianceLinksProps } from '../ComplianceLinks/ComplianceLinks';
5
+ import { CustomLinkComponent } from '../../Navbar/types';
6
+ /**
7
+ * Props for the Footer component.
8
+ *
9
+ * @property navigationSections - Optional sections for navigation links.
10
+ * @property newsletterLabel - Label for the newsletter section.
11
+ * @property socialMediaLabel - Label for the social media section.
12
+ * @property socialLinks - Social media links.
13
+ * @property disclaimer - Optional disclaimer text.
14
+ * @property complianceLinks - Links for compliance information.
15
+ * @property linkComponent - Optional custom link component to use instead of the default Link component.
16
+ * @property onEmailSubmit - Optional function to handle email submissions.
17
+ * @property additionalContent - Optional additional content to display in the footer.
18
+ * @property onLinkClick - Optional function to handle link clicks.
19
+ * @property onSocialMediaClick - Optional function to handle social media link clicks.
20
+ */
21
+ export type FooterProps = {
22
+ navigationSections?: NavigationLinksProps['sections'];
23
+ newsletterLabel: string;
24
+ socialMediaLabel: string;
25
+ socialLinks: UpdatesAndSocialProps['socialLinks'];
26
+ disclaimer?: string;
27
+ complianceLinks?: ComplianceLinksProps['links'];
28
+ linkComponent?: CustomLinkComponent;
29
+ onEmailSubmit?: VoidFunction;
30
+ additionalContent?: React.ReactNode;
31
+ onLinkClick?: (label: string) => void;
32
+ onSocialMediaClick?: (name: string) => void;
33
+ };
34
+ export declare const Footer: ({ navigationSections, disclaimer, newsletterLabel, socialMediaLabel, socialLinks, complianceLinks, linkComponent, onEmailSubmit, additionalContent, onLinkClick, onSocialMediaClick }: FooterProps) => import("react/jsx-runtime").JSX.Element;
35
+ //# sourceMappingURL=Footer.d.ts.map
@@ -0,0 +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,YAAY,CAAC;IAC7B,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,eAAO,MAAM,MAAM,0LAYf,WAAW,4CAoEd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { Footer } from './Footer';
3
+ declare const meta: Meta<typeof Footer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Footer>;
6
+ export declare const Default: Story;
7
+ export declare const Mobile: Story;
8
+ //# sourceMappingURL=Footer.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footer.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/Footer/Footer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAM7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KASpB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { CustomLinkComponent } from '../../Navbar/types';
3
+ export interface FooterLink {
4
+ label: string;
5
+ href: string;
6
+ }
7
+ export interface NavigationLinksProps {
8
+ sections: {
9
+ title: string;
10
+ links: FooterLink[];
11
+ }[];
12
+ linkComponent?: CustomLinkComponent;
13
+ onLinkClick?: (label: string) => void;
14
+ }
15
+ export declare const NavigationLinks: React.FC<NavigationLinksProps>;
16
+ //# sourceMappingURL=NavigationLinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationLinks.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/NavigationLinks/NavigationLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,OAAO,EAAE,mBAAmB,EAAgB,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,UAAU,EAAE,CAAC;KACrB,EAAE,CAAC;IACJ,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AA2FD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA+D1D,CAAC"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.FC<import("./NavigationLinks").NavigationLinksProps>;
6
+ parameters: {
7
+ backgrounds: {
8
+ default: string;
9
+ values: {
10
+ name: string;
11
+ value: string;
12
+ }[];
13
+ };
14
+ };
15
+ args: {
16
+ sections: {
17
+ title: string;
18
+ links: {
19
+ label: string;
20
+ href: string;
21
+ }[];
22
+ }[];
23
+ };
24
+ };
25
+ export default meta;
26
+ type Story = StoryObj<typeof meta>;
27
+ export declare const Default: Story;
28
+ //# sourceMappingURL=NavigationLinks.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationLinks.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/NavigationLinks/NavigationLinks.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;CAwC8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface SocialLink {
3
+ name: 'Instagram' | 'LinkedIn' | 'Facebook' | 'Tiktok' | 'X';
4
+ href: string;
5
+ }
6
+ export interface UpdatesAndSocialProps {
7
+ socialLinks?: SocialLink[];
8
+ newsletterLabel: string;
9
+ socialMediaLabel: string;
10
+ onEmailSubmit?: (email: string) => void;
11
+ onLinkClick?: (label: string) => void;
12
+ }
13
+ export declare const UpdatesAndSocial: React.FC<UpdatesAndSocialProps>;
14
+ //# sourceMappingURL=UpdatesAndSocial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdatesAndSocial.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/UpdatesAndSocial/UpdatesAndSocial.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA8B1B,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,GAAG,CAAC;IAC7D,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAuF5D,CAAC"}
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.FC<import("./UpdatesAndSocial").UpdatesAndSocialProps>;
6
+ parameters: {
7
+ backgrounds: {
8
+ default: string;
9
+ values: {
10
+ name: string;
11
+ value: string;
12
+ }[];
13
+ };
14
+ };
15
+ args: {
16
+ socialLinks: ({
17
+ name: "Instagram";
18
+ href: string;
19
+ } | {
20
+ name: "LinkedIn";
21
+ href: string;
22
+ } | {
23
+ name: "Facebook";
24
+ href: string;
25
+ } | {
26
+ name: "Tiktok";
27
+ href: string;
28
+ } | {
29
+ name: "X";
30
+ href: string;
31
+ })[];
32
+ onEmailSubmit: (email: string) => void;
33
+ newsletterLabel: string;
34
+ socialMediaLabel: string;
35
+ };
36
+ };
37
+ export default meta;
38
+ type Story = StoryObj<typeof meta>;
39
+ export declare const Default: Story;
40
+ //# sourceMappingURL=UpdatesAndSocial.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdatesAndSocial.stories.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Footer/UpdatesAndSocial/UpdatesAndSocial.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAgCiB,MAAM;;;;CAMQ,CAAC;AAE1C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Footer/Footer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/components/Footer/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface EverlywellLogoProps {
3
+ width: string | string[];
4
+ color?: string;
5
+ }
6
+ export declare const EverlywellLogo: React.FC<EverlywellLogoProps>;
7
+ export {};
8
+ //# sourceMappingURL=Logo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../../../../libs/consumer-ui/src/lib/components/Logo/Logo.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0BxD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everlywell/consumer-ui",
3
- "version": "1.36.0",
3
+ "version": "1.37.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "@everlywell/ui-kit": "1.x",
14
- "@phosphor-icons/react": "2.0.15",
14
+ "@phosphor-icons/react": "2.1.7",
15
15
  "react": "18.x",
16
16
  "react-dom": "18.x"
17
17
  },
@@ -1,2 +0,0 @@
1
- export declare const EverlywellLogo: () => import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=Logo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../../../../../libs/consumer-ui/src/lib/components/Navbar/TopNavigation/Logo.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,+CAsB1B,CAAC"}