@4alldigital/foundation-ui--gamma 1.49.0 → 1.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("react"),s=require("classnames"),a=require("framer-motion"),i=require("@iconify/react"),r=require("tailwind-merge"),n=require("html-react-parser"),o=require("iso8601-duration"),l=require("react-hover-video-player"),d=require("react-hook-form"),c=require("react-share"),u=require("react-tabs");require("libphonenumber-js");var m=require("react-slick"),p=require("react-player/youtube"),x=require("video.js"),h=require("react-otp-input"),v=require("@elastic/search-ui-elasticsearch-connector"),f=require("@elastic/react-search-ui"),N=require("rc-pagination"),g=require("rc-pagination/lib/locale/en_US"),E=require("react-device-detect"),S=require("date-fns"),A=require("react-collapsible");const b=({testID:i,from:r,to:n,animationOptions:o,className:l,numDecimals:d=0})=>{const c=t.useRef(null),u=a.useInView(c,{once:!0});return a.useIsomorphicLayoutEffect((()=>{const e=c.current;if(!e||!u)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=n.toString());e.textContent=r.toString();const t=a.animate(r,n,Object.assign(Object.assign({duration:1,ease:"easeOut"},o),{onUpdate:t=>{e.textContent=t.toFixed(d)}}));return()=>{t.stop()}}),[c,u,r,n,o]),e.jsx("span",{ref:c,"data-testid":i||"AnimationCounter",className:s("relative",l)})};b.displayName="AnimationCounter";const T=({name:t,size:s=24,color:a,id:r,className:n,testID:o})=>e.jsx(i.Icon,{"data-testid":o||r||"Icon",icon:t,width:s,height:s,color:a||"currentColor",className:n});T.displayName="Icon";const j=({text:t,citation:a,className:i,citationAttribute:r,showIcon:n=!0})=>{const o=s("text-xl italic font-bold",i);return e.jsxs("blockquote",{"data-testid":"Blockquote",className:o,children:[n&&e.jsx(T,{name:"mdi:comment-quote",size:42}),e.jsx("div",{children:t}),a&&e.jsx("figcaption",{className:"flex flex-start items-center mt-6 space-x-3",children:e.jsxs("div",{className:"flex items-center divide-x-2",children:[e.jsx("cite",{className:"pr-3 font-medium",children:a}),r&&e.jsx("cite",{className:"pl-3 text-sm font-light",children:r})]})})]})};var I,C,y;j.displayName="Blockquote",exports.BTN_TYPES=void 0,(I=exports.BTN_TYPES||(exports.BTN_TYPES={})).SUBMIT="submit",I.RESET="reset",I.BUTTON="button",exports.BTN_VARIANTS=void 0,(C=exports.BTN_VARIANTS||(exports.BTN_VARIANTS={})).PRIMARY="primary",C.SECONDARY="secondary",C.TERTIARY="tertiary",C.LINK="link",exports.BTN_SIZES=void 0,(y=exports.BTN_SIZES||(exports.BTN_SIZES={})).SMALL="small",y.MEDIUM="medium",y.LARGE="large";const O=({color:t,size:s=8,thickness:a=4})=>{const i=s?`w-${s} h-${s}`:"w-8 h-8";return e.jsx("div",{"data-testid":"Loader",className:"flex items-center justify-center",children:e.jsxs("div",{role:"status",className:"flex items-center",children:[e.jsxs("svg",{className:`animate-spin ${i} text-white`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:t||"currentColor",strokeWidth:a}),e.jsx("path",{className:"opacity-75",fill:t||"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e.jsx("span",{className:"sr-only",children:"Loading..."})]})})};O.displayName="Loader";const _=({variant:t=exports.BTN_VARIANTS.PRIMARY,size:a=exports.BTN_SIZES.MEDIUM,type:i=exports.BTN_TYPES.BUTTON,wide:n=!1,rounded:o=!1,raised:l=!1,uppercase:d,children:c,id:u,disabled:m,ariaLabel:p,onClick:x,icon:h,external:v,iconFirst:f,outline:N,testID:g,className:E,isLoading:S})=>{var A,b,j,I;const C={small:{x:c&&!o?n?"px-5":"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:c&&!o?n?"px-8":"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:c&&!o?n?"px-11":"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},y=r.twMerge(s("appearance-none font-body flex items-center transition-all duration-200 transform active:scale-95 justify-around border-solid border rounded cursor-pointer outline-none focus:outline-none focus-visible:outline-none",{"border-primary":N},{"border-primary300 dark:border-primary400 hover:border-primary400 dark:hover:border-primary500":N},{shadow:l},{uppercase:d},{"auto-cols-auto grid-cols-2 gap-4":S||h||v},{"rounded-full":o},{"flex-row-reverse":f},{"opacity-50 cursor-not-allowed":m},`${null===(A=null==C?void 0:C[a])||void 0===A?void 0:A.y} ${null===(b=null==C?void 0:C[a])||void 0===b?void 0:b.x} ${null===(j=null==C?void 0:C[a])||void 0===j?void 0:j.text}`,{"text-white border-primary bg-primary hover:bg-primary-darker":t===exports.BTN_VARIANTS.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":t===exports.BTN_VARIANTS.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":t===exports.BTN_VARIANTS.TERTIARY},{"px-0 text-primary border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert":t===exports.BTN_VARIANTS.LINK},E)),_=s(null===(I=null==C?void 0:C[a])||void 0===I?void 0:I.icon);return e.jsx("button",{id:u,"data-testid":g||u||"Button",onClick:x,className:y,type:i,disabled:m,"aria-label":p,role:"button",children:e.jsxs(e.Fragment,{children:[c,h&&!v&&e.jsx("span",{className:"flex items-center",children:e.jsx(T,{name:h,className:_})}),v&&e.jsx("span",{className:"flex items-center",children:e.jsx(T,{name:"carbon:launch",className:_})}),S&&e.jsx("div",{className:"flex items-center",children:e.jsx(O,{size:4})})]})})};
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("react"),s=require("classnames"),a=require("framer-motion"),i=require("@iconify/react"),r=require("tailwind-merge"),n=require("html-react-parser"),o=require("iso8601-duration"),l=require("react-hover-video-player"),d=require("react-hook-form"),c=require("react-share"),u=require("react-tabs");require("libphonenumber-js");var m=require("react-slick"),p=require("react-player/youtube"),x=require("video.js"),h=require("react-otp-input"),v=require("@elastic/search-ui-elasticsearch-connector"),f=require("@elastic/react-search-ui"),N=require("rc-pagination"),g=require("rc-pagination/lib/locale/en_US"),E=require("react-device-detect"),S=require("date-fns"),A=require("react-collapsible"),b=require("react-toastify");const T=({testID:i,from:r,to:n,animationOptions:o,className:l,numDecimals:d=0})=>{const c=t.useRef(null),u=a.useInView(c,{once:!0});return a.useIsomorphicLayoutEffect((()=>{const e=c.current;if(!e||!u)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=n.toString());e.textContent=r.toString();const t=a.animate(r,n,Object.assign(Object.assign({duration:1,ease:"easeOut"},o),{onUpdate:t=>{e.textContent=t.toFixed(d)}}));return()=>{t.stop()}}),[c,u,r,n,o]),e.jsx("span",{ref:c,"data-testid":i||"AnimationCounter",className:s("relative",l)})};T.displayName="AnimationCounter";const j=({name:t,size:s=24,color:a,id:r,className:n,testID:o})=>e.jsx(i.Icon,{"data-testid":o||r||"Icon",icon:t,width:s,height:s,color:a||"currentColor",className:n});j.displayName="Icon";const I=({text:t,citation:a,className:i,citationAttribute:r,showIcon:n=!0})=>{const o=s("text-xl italic font-bold",i);return e.jsxs("blockquote",{"data-testid":"Blockquote",className:o,children:[n&&e.jsx(j,{name:"mdi:comment-quote",size:42}),e.jsx("div",{children:t}),a&&e.jsx("figcaption",{className:"flex flex-start items-center mt-6 space-x-3",children:e.jsxs("div",{className:"flex items-center divide-x-2",children:[e.jsx("cite",{className:"pr-3 font-medium",children:a}),r&&e.jsx("cite",{className:"pl-3 text-sm font-light",children:r})]})})]})};var C,y,O;I.displayName="Blockquote",exports.BTN_TYPES=void 0,(C=exports.BTN_TYPES||(exports.BTN_TYPES={})).SUBMIT="submit",C.RESET="reset",C.BUTTON="button",exports.BTN_VARIANTS=void 0,(y=exports.BTN_VARIANTS||(exports.BTN_VARIANTS={})).PRIMARY="primary",y.SECONDARY="secondary",y.TERTIARY="tertiary",y.LINK="link",exports.BTN_SIZES=void 0,(O=exports.BTN_SIZES||(exports.BTN_SIZES={})).SMALL="small",O.MEDIUM="medium",O.LARGE="large";const _=({color:t,size:s=8,thickness:a=4})=>{const i=s?`w-${s} h-${s}`:"w-8 h-8";return e.jsx("div",{"data-testid":"Loader",className:"flex items-center justify-center",children:e.jsxs("div",{role:"status",className:"flex items-center",children:[e.jsxs("svg",{className:`animate-spin ${i} text-white`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:t||"currentColor",strokeWidth:a}),e.jsx("path",{className:"opacity-75",fill:t||"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e.jsx("span",{className:"sr-only",children:"Loading..."})]})})};_.displayName="Loader";const R=({variant:t=exports.BTN_VARIANTS.PRIMARY,size:a=exports.BTN_SIZES.MEDIUM,type:i=exports.BTN_TYPES.BUTTON,wide:n=!1,rounded:o=!1,raised:l=!1,uppercase:d,children:c,id:u,disabled:m,ariaLabel:p,onClick:x,icon:h,external:v,iconFirst:f,outline:N,testID:g,className:E,isLoading:S})=>{var A,b,T,I;const C={small:{x:c&&!o?n?"px-5":"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:c&&!o?n?"px-8":"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:c&&!o?n?"px-11":"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},y=r.twMerge(s("appearance-none font-body flex items-center transition-all duration-200 transform active:scale-95 justify-around border-solid border rounded cursor-pointer outline-none focus:outline-none focus-visible:outline-none",{"border-primary":N},{"border-primary300 dark:border-primary400 hover:border-primary400 dark:hover:border-primary500":N},{shadow:l},{uppercase:d},{"auto-cols-auto grid-cols-2 gap-4":S||h||v},{"rounded-full":o},{"flex-row-reverse":f},{"opacity-50 cursor-not-allowed":m},`${null===(A=null==C?void 0:C[a])||void 0===A?void 0:A.y} ${null===(b=null==C?void 0:C[a])||void 0===b?void 0:b.x} ${null===(T=null==C?void 0:C[a])||void 0===T?void 0:T.text}`,{"text-white border-primary bg-primary hover:bg-primary-darker":t===exports.BTN_VARIANTS.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":t===exports.BTN_VARIANTS.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":t===exports.BTN_VARIANTS.TERTIARY},{"px-0 text-primary border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert":t===exports.BTN_VARIANTS.LINK},E)),O=s(null===(I=null==C?void 0:C[a])||void 0===I?void 0:I.icon);return e.jsx("button",{id:u,"data-testid":g||u||"Button",onClick:x,className:y,type:i,disabled:m,"aria-label":p,role:"button",children:e.jsxs(e.Fragment,{children:[c,h&&!v&&e.jsx("span",{className:"flex items-center",children:e.jsx(j,{name:h,className:O})}),v&&e.jsx("span",{className:"flex items-center",children:e.jsx(j,{name:"carbon:launch",className:O})}),S&&e.jsx("div",{className:"flex items-center",children:e.jsx(_,{size:4})})]})})};
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,4 +13,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- function R(e,t){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(s[a[i]]=e[a[i]])}return s}function L(e,t,s,a){return new(s||(s=Promise))((function(t,i){function r(e){try{o(a.next(e))}catch(e){i(e)}}function n(e){try{o(a.throw(e))}catch(e){i(e)}}function o(e){var a;e.done?t(e.value):(a=e.value,a instanceof s?a:new s((function(e){e(a)}))).then(r,n)}o((a=a.apply(e,[])).next())}))}_.displayName="Button";const w=t.forwardRef((function(t,a){var{id:i,label:r,required:n,className:o,disabled:l}=t,d=R(t,["id","label","required","className","disabled"]);return e.jsxs("div",{"data-testid":"Checkbox",className:s("flex items-center",o),children:[e.jsxs("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e.jsx("input",Object.assign({id:i,ref:a,disabled:l,type:"checkbox",className:"form-item checkbox m-0 appearance-none peer h-full w-full shrink-0 focus:ring-2",required:n},d)),e.jsx("span",{className:"absolute transition-opacity opacity-0 pointer-events-none peer-checked:opacity-100 w-full h-full flex items-center justify-center top-0 left-0",children:e.jsx(T,{name:"mdi:check-bold",size:12})})]}),r&&e.jsx("label",{className:"label pl-2 leading-none text-sm text-bodyText dark:text-darkBodyText",htmlFor:i,children:r})]})}));w.displayName="Checkbox";const D=({href:a,children:i,onClick:r=(()=>{}),history:n,target:o,id:l,testID:d,className:c,prefetch:u,hideExternalIcon:m=!1})=>{const p=s("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",c);if(!m&&a&&a.startsWith("http"))return e.jsxs("span",{children:[e.jsx("a",{"data-testid":d||l||"Link",className:s(p),href:a,target:"_blank",rel:"noopener noreferrer",children:i}),e.jsx(T,{name:"mdi:external-link",className:"inline-block w-4 h-4 ml-1 mb-0"})]});try{const e=require("next/link").default;if(!e)throw new Error("Next.js Image not found");return t.createElement(e,{href:a||"#",onClick:r,"data-testid":d||l||"Link",className:p,target:o||"_self",prefetch:u||!1},i)}catch(t){const s=e=>{r?r(e):!0!==e.defaultPrevented&&n&&a&&(e.preventDefault(),n.push(a))};return e.jsx("a",{"data-testid":d||l||"Link",className:p,href:a,onClick:s,target:o,children:i})}};var k,P,M,F,B;D.displayName="Link",exports.COPY_ALIGN=void 0,(k=exports.COPY_ALIGN||(exports.COPY_ALIGN={})).LEFT="left",k.CENTER="center",k.RIGHT="right",k.JUSTIFY="justify",k.NOWRAP="nowrap",exports.COPY_TRANSFORM=void 0,(P=exports.COPY_TRANSFORM||(exports.COPY_TRANSFORM={})).LOWERCASE="lowercase",P.UPPERCASE="uppercase",P.CAPITALIZE="capitalize",exports.COPY_CONTEXTUAL=void 0,(M=exports.COPY_CONTEXTUAL||(exports.COPY_CONTEXTUAL={})).INVERTED="inverted",M.MUTED="muted",exports.COPY_SIZE=void 0,(F=exports.COPY_SIZE||(exports.COPY_SIZE={})).SMALL="small",F.MEDIUM="medium",F.LARGE="large",F.INTRO="intro",exports.COPY_TAG=void 0,(B=exports.COPY_TAG||(exports.COPY_TAG={})).P="p",B.SPAN="span",B.DIV="div",B.SMALL="small";const U=({children:t,as:a=exports.COPY_TAG.P,size:i,bold:n,align:o,transform:l,underlined:d,id:c,className:u,testID:m})=>{const p=s({[`text-${o}`]:o},{"font-bold":n},{"text-base mb-3 mt-0":"p"===a},{"text-sm":"small"===a},{"text-sm":"small"===i},{"text-base":"medium"===i},{"text-lg":"large"===i},{"text-2xl":"intro"===i},{underline:d},l,u);return e.jsx(a,{"data-testid":m||c||"Copy",className:r.twMerge(p),children:t})};U.displayName="Copy";const G=({testID:a,text:i,outline:n,rounded:o,variant:l,size:d="medium",icon:c,iconFirst:u,onClick:m})=>{const p=t.useMemo((()=>{switch(d){case"small":return{iconSize:16,copySize:exports.COPY_SIZE.SMALL};case"medium":default:return{iconSize:20,copySize:exports.COPY_SIZE.MEDIUM};case"large":return{iconSize:28,copySize:exports.COPY_SIZE.LARGE}}}),[d]),x=r.twMerge(s("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":n},{"rounded-full":o},{"flex-row-reverse":u},{"bg-primary text-white":"primary"===l},{"bg-secondary text-white":"secondary"===l},{"bg-info text-white":"info"===l},{"bg-success text-white":"success"===l},{"bg-warning text-white":"warning"===l},{"bg-error text-white":"error"===l},{"py-1 px-2":"small"===d},{"py-2 px-4":"medium"===d},{"py-3 px-6":"large"===d}));return m&&"function"==typeof m?e.jsxs(D,{"data-testid":a||"Chip",className:x,onClick:m,children:[e.jsx(U,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),c&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(T,{name:c,size:p.iconSize})})]}):e.jsxs("div",{"data-testid":a||"Chip",className:x,children:[e.jsx(U,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),c&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(T,{name:c,size:p.iconSize})})]})};G.displayName="Chip";const H=t.forwardRef((function(t,a){var{id:i,name:r,required:n,disabled:o,className:l,onChangeCallback:d,onChange:c}=t,u=R(t,["id","name","required","disabled","className","onChangeCallback","onChange"]);return e.jsx("div",{"data-testid":"FileUpload",className:l,children:e.jsx("input",Object.assign({ref:a,className:s("form-item text-input file-upload p-0 relative m-0 min-w-0 flex-auto appearance-none block box-border bg-clip-padding file:p-3 file:cursor-pointer file:mr-3 file:overflow-hidden cursor-pointer file:border-0 file:rounded-none file:border-solid file:border-inherit file:transition file:duration-150 file:ease-in-out file:[border-inline-end-width:1px] file:[margin-inline-end:0.75rem] "),"aria-describedby":r,type:"file",disabled:o,required:n,name:r,id:i,onChange:e=>{d&&"function"==typeof d&&d(e),c&&"function"==typeof c&&c({target:{value:e.target.value,name:r}})}},u))})}));var Y,V,W;H.displayName="FileUpload",exports.HEADING_TAGS=void 0,(Y=exports.HEADING_TAGS||(exports.HEADING_TAGS={})).H1="h1",Y.H2="h2",Y.H3="h3",Y.H4="h4",Y.H5="h5",exports.HEADING_ALIGN=void 0,(V=exports.HEADING_ALIGN||(exports.HEADING_ALIGN={})).LEFT="left",V.CENTER="center",V.RIGHT="right",V.JUSTIFY="justify",V.NOWRAP="nowrap",exports.HEADING_TRANSFORM=void 0,(W=exports.HEADING_TRANSFORM||(exports.HEADING_TRANSFORM={})).LOWERCASE="lowercase",W.UPPERCASE="uppercase",W.CAPITALIZE="capitalize",W.NORMAL_CASE="normal-case";const z=({children:t,tag:a=exports.HEADING_TAGS.H2,transform:i,align:r,id:n,testID:o,flush:l,className:d,singleLine:c,bold:u=!0})=>{const m=(()=>{switch(a){case"h1":return"text-3xl md:text-4xl lg:text-5xl";case"h2":return"text-3xl md:text-4xl lg:text-4xl";case"h3":return"text-xl md:text-2xl lg:text-2xl";case"h4":return"text-lg md:text-lg lg:text-xl";case"h5":return"text-base md:text-base lg:text-lg";default:return"text-2xl md:text-2xl lg:text-4xl"}})(),p=a,x=s(`m-0 p-0 font-heading ${m}`,{"font-bold":u},{[`text-${r}`]:r},{"mb-2":!l},{"m-0":l},{"whitespace-nowrap text-ellipsis overflow-hidden":c},i,d);return e.jsx(p,{"data-testid":o||n||"Heading",className:x,children:t})};z.displayName="Heading";const q=({size:t="small"})=>e.jsx("hr",{className:s("border-0 border-b border-darkBodyText dark:border-darkBodyText",{"mt-4 mb-4":"small"===t,"mt-8 mb-8":"medium"===t,"mt-16 mb-16 ":"large"===t})});q.displayName="Hr";const K=a=>{var{src:i,alt:n,title:o,caption:l,figure:d=!1,onLoad:c,id:u,className:m,sizes:p="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:x}=a,h=R(a,["src","alt","title","caption","figure","onLoad","id","className","sizes","testID"]);try{const e=require("next/image").default;if(!e)throw new Error("Next.js Image not found");const s=!h.width,a=s?{sizes:p}:{};return t.createElement(e,Object.assign(Object.assign({src:i,alt:n,title:o,fill:s,onLoad:c,className:m},a),h))}catch(t){const a=s("m-0"),p=r.twMerge(s("w-full h-full",m));return d||l?e.jsxs("figure",{"data-testid":x||u||"Image",className:a,children:[e.jsx("img",{onLoad:c,src:i,alt:n,title:o,className:p}),l&&e.jsx("figcaption",{children:l})]}):e.jsx("img",{"data-testid":x||u||"Image",onLoad:c,src:i,alt:n,title:o,className:p})}};K.displayName="Image";const Z=({children:t,id:a,transform:i,className:n})=>e.jsx("label",{"data-testid":"Label",className:r.twMerge(s("label mb-2 text-bodyText dark:text-darkBodyText",i,n)),htmlFor:a,children:t});var $,X;Z.displayName="Label",exports.Variants=void 0,($=exports.Variants||(exports.Variants={})).UNSTYLED="unstyled",$.INLINE="inline",$.SMALL="small",$.LARGE="large",exports.ListTag=void 0,(X=exports.ListTag||(exports.ListTag={})).OL="ol",X.UL="ul",X.DL="dl",X.DIV="div",X.DT="dt",X.DD="dd",X.LI="li";const Q=({variants:t,children:a,as:i=exports.ListTag.UL,id:r,testID:n,className:o})=>{const l=t?t.map((e=>`list--${e}`)):null,d=i;return e.jsx(d,{"data-testid":n||r||"List",className:s(l,o),children:a})};Q.displayName="List";const J=({testID:t,logo:a,className:i,aspectRatioClass:r="aspect-[1/1]"})=>e.jsx("div",{"data-testid":t||"Logo",className:s("relative w-full",r,i),children:e.jsx(K,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});J.displayName="Logo";const ee=({onClick:t,title:a,icon:i,children:r,as:n="li",id:o,testID:l,className:d})=>e.jsxs(n,{"data-testid":l||o||"ListItem",className:s({"list-item":"div"!==n},d),children:[t&&e.jsxs(_,{variant:exports.BTN_VARIANTS.LINK,onClick:t,children:[e.jsxs("div",{className:"",children:[i&&e.jsx("div",{children:e.jsx(T,{name:i,size:24})}),a&&e.jsx("div",{children:e.jsx(z,{flush:!0,tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),r&&e.jsx("div",{children:r})]}),e.jsx("div",{children:e.jsx(T,{name:"mdi:chevron-right",size:24})})]}),!t&&e.jsx("div",{className:"",children:r&&e.jsx("div",{children:r})})]});ee.displayName="ListItem";const te=({id:t,testID:a,title:i,text:r,icon:n,type:o,onCloseCallback:l,onClickCallback:d,actionText:c})=>{const u=s("p-4 rounded relative",{"bg-info text-white":"info"===o,"bg-success text-white":"success"===o,"bg-warning text-black":"warning"===o,"bg-error text-white":"error"===o});return e.jsx("div",{"data-testid":a||t||"Notice",className:u,children:e.jsxs("div",{className:"flex gap-2",children:[n&&e.jsx("div",{className:"mr-2",children:e.jsx(T,{name:n})}),e.jsxs("div",{children:[i&&e.jsx(z,{tag:exports.HEADING_TAGS.H3,children:i}),e.jsx(U,{className:"mb-0",children:r})]}),d&&c&&e.jsx("div",{className:"ml-auto flex items-end",children:e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:d,"aria-label":"Action",size:exports.BTN_SIZES.SMALL,children:c})}),l&&e.jsx("div",{className:"absolute top-2 right-4",children:e.jsx(_,{variant:exports.BTN_VARIANTS.LINK,icon:"mdi:close",onClick:l,"aria-label":"Close"})})]})})};te.displayName="Notice";const se=t.forwardRef((function(t,a){var{name:i,required:r,className:n,options:o}=t,l=R(t,["name","required","className","options"]);return e.jsx("div",{"data-testid":"Radio",className:s("flex items-center",n),children:e.jsx("div",{className:s("flex flex-col gap-2",n),children:null==o?void 0:o.map((t=>{var s;const n=(null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.toString())||void 0;return e.jsxs("div",{className:"flex items-center relative",children:[e.jsxs("div",{className:"relative flex items-center",children:[e.jsx("input",Object.assign({ref:a,name:i,type:"radio",required:r,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4"},l,{id:n,value:n})),e.jsx("div",{className:"form-icon opacity-0 peer-checked:opacity-100 absolute w-4 h-4 flex items-center justify-center top-0 left-0 pointer-events-none",children:e.jsx(T,{name:"mdi:circle",size:12})})]}),e.jsx("label",{className:"label pl-2 leading-none",htmlFor:n,children:t.label})]},n)}))})})}));se.displayName="Radio";const ae=t.forwardRef((function(t,a){var{id:i,name:r,required:n,disabled:o,className:l}=t,d=R(t,["id","name","required","disabled","className"]);return e.jsxs("label",{"data-testid":"Switch",className:s("inline-flex items-center cursor-pointer",l),children:[e.jsx("input",Object.assign({ref:a,id:i,name:r,type:"checkbox",value:"",className:"sr-only peer",disabled:o,required:n},d)),e.jsx("div",{className:"form-item switch peer-focus:ring-info dark:peer-focus:ring-info relative w-11 h-6 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[1px] after:start-[1px] after:bg-white after:border after:rounded-full after:h-5 after:w-5 after:transition-all transition-all"})]})}));var ie;ae.displayName="Switch",function(e){e.TEXT="text",e.PASSWORD="password",e.EMAIL="email",e.NUMBER="number",e.TEL="tel",e.URL="url",e.SEARCH="search",e.DATE="date",e.TIME="time",e.DATETIME="datetime-local",e.MONTH="month",e.WEEK="week",e.FILE="file",e.TEXTAREA="textarea",e.HIDDEN="hidden"}(ie||(ie={}));const re=t.forwardRef((function(a,i){var{type:r=ie.TEXT,required:n=!1,className:o,onChange:l,placeholder:d,icon:c,disabled:u=!1,name:m,autoComplete:p}=a,x=R(a,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);t.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const h="date"===r?"dd/mm/yyyy".toUpperCase():d;return r===ie.TEXTAREA?e.jsx("div",{"data-testid":"TextInput",className:"relative",children:e.jsx("textarea",Object.assign({ref:i,id:m,autoComplete:m,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,rows:4,className:s("form-item text-input resize-none",o)},x))}):e.jsxs("div",{"data-testid":"TextInput",className:"relative",children:[c&&e.jsx("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e.jsx(T,{name:c})}),e.jsx("input",Object.assign({ref:i,id:m,type:r,autoComplete:p,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,className:s("form-item text-input",{"pl-12":c},o)},x))]})}));re.displayName="TextInput";const ne={GLOBAL:{SCREENS:{ACCOUNT:{TITLE:"Account"},CATALOGUE_LIST:{TITLE:"Catalogue"},CHALLENGE:{TITLE:"Challenge",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",CLICK_TO_ENTER:"Click the buy button below to enter the challenge.",PAYMENT_NOTE:"Please note we automatically take payment from the registered payment option saved on your profile."},CHALLENGES_LIST:{TITLE:"Challenges"},DASHBOARD:{TITLE:"Dashboard"},LIVE_SCHEDULE:{TITLE:"Live"},LOGIN:{TITLE:"Login"},REGISTER:{TITLE:"Register"},PROFILE:{TITLE:"Profile"},SUBSCRIPTION:{TITLE:"Subscription"},WORKOUT:{TITLE:"Workout"},FORGOT_PASSWORD:{TITLE:"Forgot Password"},RESET_PASSWORD:{TITLE:"Reset Password"},HOME:{TITLE:"Home"},CATALOGUE:{TITLE:"Catalogue"},CHALLENGES:{TITLE:"Challenges"},LIVE:{TITLE:"Live"},SCHEDULE:{TITLE:"Schedule"},SETTINGS:{TITLE:"Settings"},HELP:{TITLE:"Help"},LEGAL_INFO:{TITLE:"Legal & Information"},CONTENT:{TITLE:"Content"},FAVOURITES:{TITLE:"Favourites"}}},FORMS:{LOGIN_FORM:{TITLE:"Login",SUBMIT:"Login",FORGOT_PASSWORD:"Forgot password?",REGISTER:"Register",EMAIL:"Email",PASSWORD:"Password"},REGISTER_FORM:{TITLE:"Register",SUBMIT:"Register",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},FORGOT_PASSWORD_FORM:{TITLE:"Forgot Password",SUBMIT:"Send Reset Email",EMAIL:"Email"},RESET_PASSWORD_FORM:{TITLE:"Reset Password",SUBMIT:"Reset Password",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm Password"},PROFILE_FORM:{TITLE:"Profile",SUBMIT:"Save",FIRST_NAME:"First Name",LAST_NAME:"Last Name",AVATAR:"Avatar",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},ACCOUNT:{SUBMIT_LABEL:"Update",EMAIL_LABEL:"Email",PASSWORD_LABEL:"Password",FIRST_NAME_LABEL:"First name",LAST_NAME_LABEL:"Last name",DOB_LABEL:"Date of birth",TERMS_AND_CONDITIONS_LABEL:"Terms & Conditions",TERMS_AND_CONDITIONS_DESCRIPTION:"Read our terms & conditions from the link in the footer. ",CONTACT_PREFERENCES_LABEL:"Yes/No",CONTACT_PREFERENCES_DESCRIPTION:"Happy for us to email you about the latest features, information and offers?",SKIP_LABEL:"Skip step",SUCCESS_MESSAGE:"Account updated",SUBSCRIPTION_STATUS_LABEL:"Subscription status",SUBSCRIPTION_PLAN_LABEL:"Plan",SUBSCRIPTION_PRICE_LABEL:"Price (£)",SUBSCRIPTION_BILLING_DATE_LABEL:"Next Billing Date",SUBSCRIPTION_PAYMENT_TYPE_LABEL:"Card Type",SUBSCRIPTION_CARD_NUMBER_LABEL:"Card Number",SUBSCRIPTION_CARD_EXPIRY_LABEL:"Card Expiry Date",SUBSCRIPTION_LAST_UPDATED_LABEL:"Last Updated"}},VALIDATION:{UNKNOWN_SUBMISSION_ERROR:"Sorry, something bad happened! Please try again later.",REQUIRED_FIELD:"Required",TOO_SHORT:"Must be at least {count}",TOO_LONG:"Sorry, that's too long",INVALID_EMAIL:"Oops that email address doesn't look quite right",LOGIN_DENIED:"Your username and password do not match our records",LOGIN_ERROR:"Sorry something went wrong, please try again later",ACCOUNT_FIRST_NAME:"We need to know your name for ongoing communication",ACCOUNT_LAST_NAME:"We need to know your full name for your orders and if you need to contact support",CHARACTERS_ONLY:"You can only use letters",PASSWORD_DESCRIPTION:"Password must be between {count} and 30 characters and contain at least 1 uppercase, 1 lowercase, 1 number and a symbol (eg. @$%).",PASSWORD_CASE_MESSAGE:"Password must have one capital letter",PASSWORD_LOWERCASE_MESSAGE:"Password must have one lowercase letter",PASSWORD_LENGTH_MESSAGE:"Password must be at least 8 characters",PASSWORD_NUMERIC_MESSAGE:"Password must have at least one number",PASSWORD_SPECIAL_MESSAGE:"Password must have at least one special character (eg. @$%)",AUTH_API_ERROR:"An account with the given email already exists.: Conflict",AUTH_ACCOUNT_EXISTS_MESSAGE:"An account with the given email already exists. Please sign in"},UI:{SHOW:"Show",NO_IMAGE:"No image",UPLOAD:"Upload",SAVE:"Save",CANCEL:"Cancel",DELETE:"Delete",CONTINUE_WITH_SOCIAL:"Continue with Social Account",SINGLE_SIGNON:"Single Sign-On",LOGIN_WITH_GOOGLE:"Login with Google",LOGIN_WITH_APPLE:"Login with Apple",SIGNUP_WITH_GOOGLE:"Signup with Google",SIGNUP_WITH_APPLE:"Signup with Apple",BACK_TO_LOGIN:"Back to Login",FORGOT_PASSWORD:"Forgot Password?",SUBMIT:"Submit",LOGIN:"Login",LOGOUT:"Logout",REGISTER:"Register",SOCIAL:{GOOGLE:"Google",FACEBOOK:"Facebook",TWITTER:"Twitter",EMAIL:"Email"},READ_MORE:"Read more",READ_LESS:"Show less",CLOSE:"Close",BACK:"Back",SHARE:"Share",DOWNLOAD:"Download",FORMAT_HOUR:"{hour}hr",FORMAT_HOURS:"{hours}hrs",FORMAT_MINUTE:"{minute}min",FORMAT_MINUTES:"{minutes}mins",LOAD_MORE_LABEL:"Load more",NO_MORE_RESULTS:"That's all folks.",UNKNOWN_ERROR_TITLE:"Unknown error",UNKNOWN_ERROR_MESSAGE:"Sorry, something bad happened! Please try again.",CONTENT_SORT_TITLE:"Sort by",CONTENT_FILTERS_TITLE:"Filters",CONTENT_FILTERS_LABEL:"Filter",CLOSE_FILTERS_LABEL:"Done",CLEAR_ALL_FILTERS_LABEL:"Clear All",CLEAR_FILTERS_LABEL:"Clear",MORE_ITEMS_LABEL:"Next items",PREVIOUS_ITEMS_LABEL:"Previous items",CHOOSE_BTN_LABEL:"Choose",ADD_BTN_LABEL:"Add",SEND_BTN_LABEL:"Send",CANCEL_BTN_LABEL:"Cancel",DONE_BTN_LABEL:"Done",EDIT_BTN_LABEL:"Edit",CHANGE_BTN_LABEL:"Change",REMOVE_BTN_LABEL:"Remove",MESSAGE_PROMPT_BTN_LABEL:"Add one",SELECT_FILE_BTN_LABEL:"Select file",TOO_MANY_REQUESTS_MESSAGE:"Too many requests. Please try again later.",COPYRIGHT:"Copyright",ALL_RIGHTS_RESERVED:"All rights reserved",APP_CAMERA_PERMISSION:"Camera permission",APP_CAMERA_PERMISSION_DENIED:"Camera permission denied",APP_NEED_ACCESS_CAMERA:"This app needs access to your camera",ASK_ME_LATER:"Ask me later",PRIVACY_POLICY:"Privacy Policy",CREATE_ACCOUNT:"Create account",COMPLETE:"Complete",EDIT:"Edit",PREV:"Prev",NEXT:"Next",GET_STARTED:"Get started",START_SEARCH:"Start search",READ_MORE_LABEL:"Read more",READ_LESS_LABEL:"Show less",CLOSE_LABEL:"Close",CLOSE_HINT:"Close this entry",BACK_LABEL:"Back",SHARE_LABEL:"Share",VIEW_MORE_LABEL:"View more",VIEW_LESS_LABEL:"View less",GOT_IT:"Got it",MORE:"More",MORE_DETAILS:"More details",MORE_INFO:"More info",LEARN_MORE:"Learn more",LOW:"Low",MEDIUM:"Medium",HIGH:"High",VERY_HIGH:"Very high",VERY_LOW:"Very low",GOOD:"Good",BAD:"Bad",STRONG:"Strong",SAVE_CONTINUE:"Save and Continue",SAVE_FINISH:"Save and Finish",FINISH:"Finish",SKIP:"Skip",ADD:"Add",ADDED:"Added",ADD_ANOTHER:"Add another",CREATE_PROFILE:"Create profile",CONTINUE_NO_ACCOUNT:"Continue without account",REQUIRED_MISSING:"Required field missing",RESET:"Reset",APPLY_FILTER:"Apply filter",START:"Start",END:"End",HELP:"Help",WHAT_IS_THIS:"What is this?",CARD_VIEW:"Card view",LIST_VIEW:"List view",FILTER:"Filter",NO_RESULTS:"No results",CONTINUE:"Continue",CONTINUE_BROWSING:"Continue browsing",VIEW:"View",INFORMATION:"Information",DELETE_HINT:"Delete this entry",VISIT_WEBSITE:"Visit website",TAKE_AGAIN:"Take again",ADD_MORE:"Add more",REQUEST_SENT:"Request sent",CUSTOMISE:"Customize",SET_LOCATION:"Set location",COUNTY_NOT_FOUND:"County not found",NO_RESOURCES_FOUND:"No resources found",PATHWAY:"Pathway",CLICK_TO_NAVIGATE:"Click to navigate",INPUT_FIELD:"Input field",GO_BACK:"Go back",NAVIGATES_PREV:"Navigates to the previous screen",REMOVE:"Remove",NO_INTERNET_CONNECTION:"No internet connection",CHECK_CONNECTION:"Please check your internet connection and try again.",EXPLORE:"Explore",NO_ACCOUNT:"No account?",START_WORKOUT:"Start workout",START_MEDIA:"Start media",LAUNCH:"Launch",PUBLISHED:"Published",CREATED:"Created",UPDATED:"Updated",DURATION:"Duration",LEVEL:"Level",SECTION:"Section",DOWNLOADING:"Downloading",DOWNLOAD_COMPLETE:"Download complete",DOWNLOAD_FAILED:"Download failed",DOWNLOAD_CANCELLED:"Download cancelled",DOWNLOADING_MEDIA:"Downloading media",DOWNLOADING_MEDIA_FAILED:"Downloading media failed",DOWNLOADING_MEDIA_CANCELLED:"Downloading media cancelled",DOWNLOADING_MEDIA_COMPLETE:"Downloading media complete",DOWNLOADING_MEDIA_CANCEL:"Cancel download",DOWNLOADING_MEDIA_RETRY:"Retry download",DOWNLOADING_MEDIA_PAUSE:"Pause download",DOWNLOADING_MEDIA_RESUME:"Resume download",DOWNLOADING_MEDIA_CONTINUE:"Continue download",DOWNLOADING_MEDIA_START:"Start download",DOWNLOADING_MEDIA_CONFIRM:"Confirm download",DOWNLOAD_REMOVED:"Download removed",DOWNLOAD_REMOVE_ERROR:"Error removing download",CATEGORY:"Category",TYPE:"Type",WORKOUT_TYPE:"Workout type",MEDIA_TYPE:"Media type",WORKOUT:"Workout",MEDIA:"Media",WORKOUTS:"Workouts",WORKOUT_CATEGORY:"Workout category",MEDIA_CATEGORY:"Media category",ADDED_LIKE:"Added like",REMOVED_LIKE:"Removed like",ADDED_FAVORITE:"Added favorite",REMOVED_FAVORITE:"Removed favorite",ADDED_BOOKMARK:"Added bookmark",REMOVED_BOOKMARK:"Removed bookmark",ADDED_WATCHLIST:"Added watchlist",REMOVED_WATCHLIST:"Removed watchlist",ADDED_PLAYLIST:"Added playlist",REMOVED_PLAYLIST:"Removed playlist",ADDED_SUBSCRIPTION:"Added subscription",REMOVED_SUBSCRIPTION:"Removed subscription",ADDED_FOLLOW:"Added follow",REMOVED_FOLLOW:"Removed follow",ADDED_FRIEND:"Added friend",REMOVED_FRIEND:"Removed friend",ADDED_CONNECTION:"Added connection",REMOVED_CONNECTION:"Removed connection",MARKED_COMPLETE:"Marked complete",MARKED_INCOMPLETE:"Marked incomplete",MUSIC_ENABLED:"Music enabled",MUSIC_DISABLED:"Music disabled",SHARED:"Shared",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",PURCHASE_TO_ACCESS:"Purchase to access",SHOW_FILTERS:"Show filters",HIDE_FILTERS:"Hide filters",THIS_WEEK:"This week",TODAYS_ITEMS:"Today's items",START_TRIAL_LABEL:"Start Free Trial",START_WORKOUTS_LABEL:"Start Workouts Now",UPDATE_LABEL:"Update now",SESSION_EXPIRED:"Session expired. Please log in.",NO_VALID_SUB:"No valid subscription found. Please subscribe or contact us if you believe this is an error.",SUBSCRIPTION_ERROR:"There's a problem with your account. No valid subscription found.",SUCCESS:"Success",UPLOAD_IMAGE:"Upload Image",UPLOAD_VIDEO:"Upload Video",UPLOAD_AUDIO:"Upload Audio",UPLOAD_DOCUMENT:"Upload Document",UPLOAD_MEDIA:"Upload Media",UPLOAD_MEDIA_FILE:"Upload Media File",UPLOAD_SUCCESS:"Upload successful",UPLOAD_FAILED:"Upload failed",UPLOADING:"Uploading",SHARE_DESCRIPTION:"Share this with your friends",SHARE_TITLE:"Share",ALREADY_RATED:"You have already rated this",RATE:"Rate",VERSION:"Version",APP_VERSION:"App Version",WELCOME:"Welcome",LATEST_WORKOUTS:"Latest Workouts",RECENTLY_VIEWED:"Recently Viewed",RECENTLY_ADDED:"Recently Added",RECENTLY_COMPLETED:"Recently Completed",WORKOUTS_LIKED:"Workouts Liked",WORKOUTS_FAVORITED:"Workouts Favorited",WORKOUTS_BOOKMARKED:"Workouts Bookmarked",WORKOUTS_COMPLETED:"Workouts Completed",WORKOUTS_DONE:"Workouts Done",LIKED:"Liked",FAVORITED:"Favorited",BOOKMARKED:"Bookmarked",COMPLETED:"Completed",DONE:"Done",STATS:"Stats",STATISTICS:"Statistics",ACTIVITY:"Activity",RECENT_ACTIVITY:"Recent Activity",NEWS:"News",UPDATES:"Updates",LATEST_NEWS:"Latest News",WHATS_NEW:"What's New",WHATS_NEWS:"What's News",GOOD_MORNING:"Good Morning",GOOD_AFTERNOON:"Good Afternoon",GOOD_EVENING:"Good Evening",NO_CLASS:"No class",RELATED:"Related",RELATED_WORKOUTS:"Related Workouts",RELATED_CHALLENGES:"Related Challenges",RELATED_VIDEOS:"Related Videos",RELATED_MEDIA:"Related Media",CHALLENGES_ENTERED:"Challenges Entered",UPGRADE_TO_PREMIUM_PLUS:"Upgrade to Premium+",UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE:"Upgrade to Premium+ for unlimited access to the live streamed classes",UPGRADE_TO_PREMIUM:"Upgrade to Premium",PUSH_NOTIFICATIONS:"Push Notifications",PUSH_NOTIFICATIONS_ENABLED:"Push notifications enabled",PUSH_NOTIFICATIONS_DISABLED:"Push notifications disabled",EMAIL_NOTIFICATIONS:"Email Notifications",EMAIL_NOTIFICATIONS_ENABLED:"Email notifications enabled",EMAIL_NOTIFICATIONS_DISABLED:"Email notifications disabled",SMS_NOTIFICATIONS:"SMS Notifications",SMS_NOTIFICATIONS_ENABLED:"SMS notifications enabled",SMS_NOTIFICATIONS_DISABLED:"SMS notifications disabled",NOTIFICATIONS:"Notifications",PUSH_NOTIFICATIONS_DESCRIPTION:"Receive push notifications for new content and updates",EMAIL_NOTIFICATIONS_DESCRIPTION:"Receive email notifications for new content and updates",SMS_NOTIFICATIONS_DESCRIPTION:"Receive SMS notifications for new content and updates",OPEN_SETTINGS:"Open settings",NOTIFICATION_SETTINGS:"Notification settings",NOTIFICATION_SETTINGS_DESCRIPTION:"Manage your notification settings",CAMERA_ACCESS:"Camera access",CAMERA_PERMISSION_DENIED:"Camera permission denied",CAMERA_PERMISSION_REQUIRED:"Camera permission required",CAMERA_PERMISSION_DESCRIPTION:"Allow access to your camera to take a profile picture and personalize your account",DISABLE_PERMISSION_IN_SETTINGS:"You can disable in main system settings",DARK_MODE:"Dark mode",LIGHT_MODE:"Light mode",SYSTEM_MODE:"System mode",DARK_MODE_ENABLED:"Dark mode enabled",LIGHT_MODE_ENABLED:"Light mode enabled",SYSTEM_MODE_ENABLED:"System mode enabled",DARK_MODE_DESCRIPTION:"Enable dark mode for better viewing experience",LIGHT_MODE_DESCRIPTION:"Enable light mode for better viewing experience",SYSTEM_MODE_DESCRIPTION:"Enable system mode for better viewing experience",REQUEST_INFO:"Request info",REQUEST_INFORMATION:"Request information",GET_INFO:"Get info",GET_IN_TOUCH:"Get in touch",CONTACT_US:"Contact us",ERROR:"Error",LAST_UPDATED:"Last updated",NO_UPDATES:"No updates",RATED:"Rated",RATE_SUCCESS:"Rating successful",RATE_FAILED:"Rating failed",RATE_CANCELLED:"Rating cancelled",QUESTION:"Question",QUESTION_ABOUT_SUBSCRIPTION:"Question about subscription",LOGOUT_SUCCESS:"Logout successful",NO_ACTIVE_SUBSCRIPTION:"No active subscription",SUBSCRIPTION_EXPIRED:"Subscription expired",NO_SUBSCRIPTION_DETAILS:"You currently do not have an active subscription. If you believe this is an error, please contact our support team for assistance."},ERRORS:{GENERIC_ERROR:"An error occurred",COULD_NOT_FETCH_DATA:"Could not fetch data",COULD_NOT_UPDATE_DATA:"Could not update data",COULD_NOT_DELETE_DATA:"Could not delete data",COULD_NOT_UPDATE_LIKES:"Could not update likes",COULD_NOT_UPDATE_FAVORITES:"Could not update favorites",COULD_NOT_UPDATE_BOOKMARKS:"Could not update bookmarks",COULD_NOT_UPDATE_WATCHLIST:"Could not update watchlist",COULD_NOT_UPDATE_PLAYLIST:"Could not update playlist",COULD_NOT_UPDATE_SUBSCRIPTION:"Could not update subscription",COULD_NOT_UPDATE_FOLLOW:"Could not update follow",COULD_NOT_UPDATE_FRIEND:"Could not update friend",COULD_NOT_UPDATE_CONNECTION:"Could not update connection",ISSUE_CHECKING_PERMISSIONS:"Issue checking permissions",ISSUE_OPENING_SETTINGS:"Issue opening settings"}},oe=({testID:s,name:a="avatar",isEditable:i=!0,initValue:r})=>{const[n,o]=t.useState(r);return t.useEffect((()=>{r&&o(r)}),[r]),e.jsxs("div",{"data-testid":s||'"Avatar"',className:"relative",children:[e.jsxs("div",{className:"relative w-[200px] aspect-1 rounded-full border border-solid overflow-hidden flex items-center justify-center m-4",children:[n&&e.jsxs(e.Fragment,{children:[e.jsx(K,{src:n,alt:a,width:200,height:200}),i&&e.jsx("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e.jsx(_,{size:exports.BTN_SIZES.SMALL,rounded:!0,onClick:()=>{o(void 0)},children:ne.UI.REMOVE_BTN_LABEL})})]}),!n&&e.jsx(e.Fragment,{children:i&&e.jsx("div",{className:"absolute w-full h-full flex items-center justify-center",children:e.jsx(Z,{id:a,className:"button cursor-pointer mb-0",children:e.jsx(U,{className:"mb-0",children:ne.UI.UPLOAD})})})})]}),e.jsx("input",{type:"file",id:a,name:a,className:"hidden",onChange:e=>{var t;const s=null===(t=e.target.files)||void 0===t?void 0:t[0];if(s){const e=URL.createObjectURL(s);o(e)}}})]})};oe.displayName="Avatar";const le=({testID:t,buttonData:a})=>e.jsx("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:null==a?void 0:a.map(((t,i)=>{const r=i>0&&i<a.length-1,n=0===i,o=i===a.length-1,l=s({"rounded-none":r},{"rounded-r":n,"rounded-l":o});return e.jsx("div",{children:e.jsx(_,Object.assign({},t,{className:l,children:t.children}))},t.id)}))});le.displayName="ButtonGroup";const de="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-bodyBackground text-bodyText dark:bg-darkBodyBackground dark:text-darkBodyText hover:bg-primary hover:text-bodyTextInverted group",ce="transition duration-500 ease-in-out ",ue={replace(t){if("a"===t.name){const s=n.attributesToProps(t.attribs);return e.jsx(D,Object.assign({},s,{children:n.domToReact(t.children,ue)}))}if(t.attribs&&"p"===t.name){const s=n.attributesToProps(t.attribs);return e.jsx(U,Object.assign({},s,{children:n.domToReact(t.children,ue)}))}return t}},me=({testID:t,data:a,align:i,className:r})=>e.jsx("span",{"data-testid":t||'"HtmlContent"',className:s("relative",{"text-right":"right"===i},{"text-center":"center"===i},{"text-left":"left"===i},r),children:n(a,ue)});function pe(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}me.displayName="HtmlContent";const xe=({id:t,title:a,description:i,image:n,className:o,metaData:l,actions:d,padded:c,scaleOnHover:u,onClick:m=(()=>{}),htmlDetails:p})=>e.jsxs("div",{id:t,"data-testid":"CardBasic",className:r.twMerge(s(ce,de,{"p-4":c},{"hover:scale-100":!u},o)),onClick:m,children:[n&&e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden aspect-[16/9]",{rounded:c},n.aspectRatio)),children:e.jsx(K,{fill:!0,src:null==n?void 0:n.src,sizes:"100vh",alt:null==n?void 0:n.alt,className:s("absolute inset-0 object-cover group-hover:scale-110 dura",ce)})}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:s({"p-3":!c},{"pt-3":c}),children:[e.jsx("div",{children:a&&e.jsx(z,{tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),!p&&i&&e.jsx("div",{children:e.jsx(U,{className:"mb-0",children:pe(i)})}),p&&i&&e.jsx("div",{children:e.jsx(me,{className:"mb-0",data:pe(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l&&e.jsx("div",{className:"flex shrink-0 mt-2",children:l.map(((t,s)=>0===s?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===l.length-1?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),d&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[d.like&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.like)||void 0===s?void 0:s.onClick)&&"function"==typeof d.like.onClick&&d.like.onClick({id:t})}}),d.share&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.share)||void 0===s?void 0:s.onClick)&&"function"==typeof d.share.onClick&&d.share.onClick({id:t})}}),d.save&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.save)||void 0===s?void 0:s.onClick)&&"function"==typeof d.save.onClick&&d.save.onClick({id:t})}}),d.comment&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.comment)||void 0===s?void 0:s.onClick)&&"function"==typeof d.comment.onClick&&d.comment.onClick({id:t})}}),d.bookmark&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.bookmark)||void 0===s?void 0:s.onClick)&&"function"==typeof d.bookmark.onClick&&d.bookmark.onClick({id:t})}}),d.report&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.report)||void 0===s?void 0:s.onClick)&&"function"==typeof d.report.onClick&&d.report.onClick({id:t})}}),d.follow&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.follow)||void 0===s?void 0:s.onClick)&&"function"==typeof d.follow.onClick&&d.follow.onClick({id:t})}}),d.download&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.download)||void 0===s?void 0:s.onClick)&&"function"==typeof d.download.onClick&&d.download.onClick({id:t})}}),d.edit&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.edit)||void 0===s?void 0:s.onClick)&&"function"==typeof d.edit.onClick&&d.edit.onClick({id:t})}}),d.delete&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.delete)||void 0===s?void 0:s.onClick)&&"function"==typeof d.delete.onClick&&d.delete.onClick({id:t})}})]})]})]})})]});xe.displayName="CardBasic";const he=t.createContext({brand:void 0,header:void 0,footer:void 0,locale:void 0,app:void 0}),ve=({children:t,value:s})=>e.jsx(he.Provider,{value:s,children:t});function fe(){var e;return null===(e=t.useContext(he).locale)||void 0===e||e.lang,ne}const Ne={isDarkTheme:!1,toggleTheme:()=>{}},ge=t.createContext(Ne);const Ee=({id:t,title:a,description:i,image:r,className:n,metaData:o,actions:l,onClick:d=(()=>{}),playCallback:c,htmlDetails:u,accessRestriced:m})=>{const p=fe();return e.jsxs("div",{id:t,"data-testid":"CardBasic",className:s(ce,de,n),onClick:d,children:[r&&e.jsxs("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",r.aspectRatio),children:[e.jsx(K,{fill:!0,src:null==r?void 0:r.src,sizes:"100vh",alt:null==r?void 0:r.alt,className:s("absolute inset-0 object-cover group-hover:scale-110",ce)}),m&&e.jsx("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e.jsx(U,{bold:!0,transform:exports.COPY_TRANSFORM.UPPERCASE,children:p.UI.PURCHASE_TO_ACCESS})}),c&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:play",size:exports.BTN_SIZES.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof c&&c(e)}})})]}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:a&&e.jsx(z,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:a})}),!u&&i&&e.jsx("div",{children:e.jsx(U,{className:"mb-0",children:pe(i)})}),u&&i&&e.jsx("div",{children:e.jsx(me,{className:"mb-0",data:pe(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o&&e.jsx("div",{className:"flex shrink-0",children:o.map(((t,s)=>0===s?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===o.length-1?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),l&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[l.like&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.like)||void 0===s?void 0:s.onClick)&&"function"==typeof l.like.onClick&&l.like.onClick({id:t})}}),l.share&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.share)||void 0===s?void 0:s.onClick)&&"function"==typeof l.share.onClick&&l.share.onClick({id:t})}}),l.save&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.save)||void 0===s?void 0:s.onClick)&&"function"==typeof l.save.onClick&&l.save.onClick({id:t})}}),l.comment&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.comment)||void 0===s?void 0:s.onClick)&&"function"==typeof l.comment.onClick&&l.comment.onClick({id:t})}}),l.bookmark&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.bookmark)||void 0===s?void 0:s.onClick)&&"function"==typeof l.bookmark.onClick&&l.bookmark.onClick({id:t})}}),l.report&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.report)||void 0===s?void 0:s.onClick)&&"function"==typeof l.report.onClick&&l.report.onClick({id:t})}}),l.follow&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.follow)||void 0===s?void 0:s.onClick)&&"function"==typeof l.follow.onClick&&l.follow.onClick({id:t})}}),l.download&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.download)||void 0===s?void 0:s.onClick)&&"function"==typeof l.download.onClick&&l.download.onClick({id:t})}}),l.edit&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.edit)||void 0===s?void 0:s.onClick)&&"function"==typeof l.edit.onClick&&l.edit.onClick({id:t})}}),l.delete&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.delete)||void 0===s?void 0:s.onClick)&&"function"==typeof l.delete.onClick&&l.delete.onClick({id:t})}})]})]})]})})]})};Ee.displayName="CardMedia";const Se=({video:t,isMuted:a=!0,id:i,title:r,description:n,image:o,className:d,metaData:c,actions:u,onClick:m=(()=>{}),htmlDetails:p})=>e.jsxs("div",{id:i,"data-testid":"CardVideo",className:s(ce,de,d),onClick:m,children:[o&&t&&e.jsx("div",{className:s("relative w-full h-full aspect-[16/9]",o.aspectRatio),children:e.jsx(l,{videoId:`video--${i}`,playbackStartDelay:1e3,videoSrc:e.jsx("source",{src:t,type:"video/mp4"}),videoClassName:s("hls-hover-video w-full aspect-[16/9]",o.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:a,className:s("w-full overflow-hidden aspect-[16/9]",o.aspectRatio),pausedOverlay:e.jsx("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",o.aspectRatio),children:e.jsx(K,{fill:!0,src:null==o?void 0:o.src,width:0,height:0,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})}),loadingOverlay:e.jsx("div",{className:s("w-full flex items-center justify-center aspect-[16/9]",o.aspectRatio),children:e.jsx("div",{className:"",children:e.jsx(O,{})})})},`${i}--card`)}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:r&&e.jsx(z,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:r})}),!p&&n&&e.jsx("div",{children:e.jsx(U,{className:"mb-0",children:pe(n)})}),p&&n&&e.jsx("div",{children:e.jsx(me,{className:"mb-0",data:pe(n)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c&&e.jsx("div",{className:"flex shrink-0",children:c.map(((t,s)=>0===s?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===c.length-1?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),u&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[u.like&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.like)||void 0===t?void 0:t.onClick)&&"function"==typeof u.like.onClick&&u.like.onClick({id:i})}}),u.share&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.share)||void 0===t?void 0:t.onClick)&&"function"==typeof u.share.onClick&&u.share.onClick({id:i})}}),u.save&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.save)||void 0===t?void 0:t.onClick)&&"function"==typeof u.save.onClick&&u.save.onClick({id:i})}}),u.comment&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof u.comment.onClick&&u.comment.onClick({id:i})}}),u.bookmark&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof u.bookmark.onClick&&u.bookmark.onClick({id:i})}}),u.report&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.report)||void 0===t?void 0:t.onClick)&&"function"==typeof u.report.onClick&&u.report.onClick({id:i})}}),u.follow&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof u.follow.onClick&&u.follow.onClick({id:i})}}),u.download&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.download)||void 0===t?void 0:t.onClick)&&"function"==typeof u.download.onClick&&u.download.onClick({id:i})}}),u.edit&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof u.edit.onClick&&u.edit.onClick({id:i})}}),u.delete&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof u.delete.onClick&&u.delete.onClick({id:i})}})]})]})]})})]});Se.displayName="CardVideo";const Ae=({id:t,title:a,description:i,icon:n,className:o,onClick:l,moreTitle:d,align:c})=>{const u=l?de:"";return e.jsxs("div",{id:t,"data-testid":"CardIcon",className:r.twMerge(s(ce,u,"p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===c},{"items-center":"center"===c},{"items-end":"right"===c},o)),children:[n&&e.jsx("div",{className:s("relative"),children:e.jsx(T,{name:n,size:48})}),e.jsxs("div",{className:s({"text-left":"left"===c},{"text-center":"center"===c},{"text-right":"right"===c}),children:[e.jsx("div",{children:a&&e.jsx(z,{tag:exports.HEADING_TAGS.H5,singleLine:!0,children:a})}),e.jsx("div",{children:i&&e.jsx(U,{align:c,children:i})})]}),l&&e.jsx("div",{className:"flex items-center justify-start gap-2",children:e.jsx(_,{icon:"mdi:arrow-right",variant:exports.BTN_VARIANTS.LINK,onClick:l,children:d})})]})};Ae.displayName="CardIcon";const be=({testID:t,id:a,title:i,description:n,image:o,onClick:l,className:d,padded:c,icon:u,raised:m=!0,htmlDetails:p})=>e.jsxs("div",{id:a,"data-testid":t||"CardHorz",className:s("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":c},{"shadow hover:shadow-lg":m},d),onClick:l,children:[o&&e.jsx("div",{className:"w-1/3 aspect-[1/1]",children:e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden h-full",o.aspectRatio)),children:e.jsx(K,{fill:!0,src:null==o?void 0:o.src,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})})}),u&&!o&&e.jsx("div",{className:"py-2 pl-2",children:e.jsx(T,{name:u,size:30})}),e.jsx("div",{className:"flex flex-1 overflow-hidden h-min",children:e.jsxs("div",{className:"flex-col gap-2 py-2 pr-2 overflow-hidden",children:[i&&e.jsx("div",{className:"",children:e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:i})}),!p&&n&&e.jsx("div",{children:e.jsx(U,{className:"mb-0",children:pe(n)})}),p&&n&&e.jsx("div",{children:e.jsx(me,{className:"mb-0",data:pe(n)})})]})})]});be.displayName="CardHorz";const Te=({testID:i,className:n,data:o,padded:l,shadow:d=!0})=>{const c=a.motionValue(0);return t.useEffect((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||a.animate(c,200,{duration:.5})}),[c]),o?e.jsxs("div",{"data-testid":i||"CardData",className:r.twMerge(s("relative rounded-lg overflow-hidden flex flex-col items-center gap-4 p-2 bg-bodyBackground dark:bg-darkBodyBackground",{"p-4":l},{shadow:d},n)),children:[(null==o?void 0:o.animateNumber)&&e.jsxs("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e.jsx(b,{from:o.numberData.from,to:o.numberData.to,numDecimals:o.numberData.numDecimals}),e.jsx("span",{children:null==o?void 0:o.item})]}),!(null==o?void 0:o.animateNumber)&&e.jsx("div",{className:"text-lg",children:e.jsx(z,{tag:exports.HEADING_TAGS.H2,flush:!0,children:null==o?void 0:o.item})}),e.jsx("div",{children:e.jsx(U,{className:"mb-0",children:null==o?void 0:o.label})})]}):e.jsx(e.Fragment,{})};Te.displayName="CardData";const je=t=>{var{variant:s,className:a,data:i}=t,r=R(t,["variant","className","data"]);switch(s){case"basic":default:return e.jsx(xe,Object.assign({className:a},i,r));case"media":return e.jsx(Ee,Object.assign({className:a},i,r));case"video":return e.jsx(Se,Object.assign({className:a},i,r));case"icon":return e.jsx(Ae,Object.assign({className:a},i,r));case"horz":return e.jsx(be,Object.assign({className:a},i,r));case"data":return e.jsx(Te,Object.assign({className:a},i,r))}};je.displayName="Card";const Ie=({text:t,tag:a=exports.HEADING_TAGS.H1})=>{const i=t.split(" ");return e.jsx("div",{"data-testid":"DisplayHeading",className:"relative",children:e.jsx(z,{tag:a,children:i.map(((t,a)=>{const r=a===i.length-1,n=`${t}-${a}`;return e.jsxs("span",{children:[e.jsx("span",{className:s({"display-heading relative font-heading":!r},{"inline-block relative font-heading":r}),children:e.jsxs(e.Fragment,{children:[r&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"display-heading--emphasis"}),e.jsx("span",{className:"display-heading--lastword",children:t})]}),!r&&e.jsx("span",{children:t})]})}),!r&&" "]},n)}))})})};Ie.displayName="DisplayHeading";const Ce=({children:a,className:i,submit:r,onSubmit:n=(()=>{}),onChange:o,hideSubmit:l,ariaSubmitLabel:c,submitID:u,submitVariant:m=exports.BTN_VARIANTS.PRIMARY,initialValues:p={},isBoxed:x=!1,submitType:h=exports.BTN_TYPES.SUBMIT,disabledSubmitWithReturn:v=!1,isDisabled:f=!1})=>{const N=d.useForm({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"});t.useEffect((()=>{if(o&&"function"==typeof o){const e=N.watch(((e,t)=>{o(e,t)}));return()=>e.unsubscribe()}}),[]);const g=s({"sr-only":l}),{formState:{isSubmitting:E,isDirty:S,isValid:A}}=N;return e.jsx(d.FormProvider,Object.assign({},N,{children:e.jsx("div",{"data-testid":"Form",className:s("w-full max-w-s @containers @form"),children:e.jsxs("form",{onSubmit:N.handleSubmit(n),onKeyDown:e=>{v&&"Enter"===e.key&&e.preventDefault()},className:s("w-2xs relative",{"form px-8 pt-6 pb-8 ":x},{"opacity-50":E},i),children:[a,r&&e.jsx("div",{className:"flex items-center justify-end",children:e.jsx(_,{id:u||r,className:g,ariaLabel:c||r||"Submit",type:h,outline:!0,isLoading:E,disabled:E||!A||!S||f,variant:m,children:r})})]})})}))};var ye;Ce.displayName="Form",exports.FIELD_TYPES=void 0,(ye=exports.FIELD_TYPES||(exports.FIELD_TYPES={})).TEXT="text",ye.TEXTAREA="textarea",ye.SELECT="select",ye.CHECKBOX="checkbox",ye.RADIO="radio",ye.SWITCH="switch",ye.DATE="date",ye.TIME="time",ye.DATETIME="datetime",ye.FILE="file",ye.PASSWORD="password",ye.EMAIL="email",ye.NUMBER="number",ye.TEL="tel",ye.URL="url",ye.SEARCH="search",ye.HIDDEN="hidden";const Oe=t.forwardRef((function(t,a){var{id:i,name:r,options:n,required:o,className:l,disabled:d}=t,c=R(t,["id","name","options","required","className","disabled"]);if(!n)throw new Error("FormSelect requires options prop");return e.jsx("div",{id:i,className:s("pb-2 min-w-20",l),children:e.jsxs("div",{className:"relative",children:[e.jsx("select",Object.assign({ref:a,name:r,disabled:d,required:o,className:"form-item text-input pr-10"},c,{children:n.map(((t,s)=>{var a,i;return e.jsx("option",{value:null===(a=null==t?void 0:t.value)||void 0===a?void 0:a.toString(),disabled:t.disabled,className:"bg-bodyBackground dark:bg-darkBodyBackground",children:t.label},`${null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.toString()}--${s}`)}))})),e.jsx("div",{className:"form-icon absolute inset-0 z-10 pointer-events-none h-full w-12 items-center justify-center top-0 right-0 left-auto flex",children:e.jsx(T,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));Oe.displayName="FormSelect";const _e=({name:a,type:i,label:r,required:n,className:o,icon:l,options:c,disabled:u,description:m,showPasswordLabel:p,hidePasswordLabel:x,validations:h={},fileUploadCallback:v=(()=>{}),autoComplete:f})=>{var N,g;const[E,S]=t.useState(!1),{control:A,formState:b}=d.useFormContext(),{errors:j}=b,I=r&&i!==exports.FIELD_TYPES.CHECKBOX,C=n||Boolean(h.required)?`${r} *`:r;return e.jsx("div",{className:"relative",children:e.jsxs("div",{"data-testid":"FormField",className:"mb-4",children:[I&&e.jsx("div",{className:"flex items-baseline justify-between",children:e.jsx(Z,{id:a,children:C})}),e.jsx("div",{className:"mb-1",children:e.jsx(d.Controller,{defaultValue:"",name:a,control:A,rules:h,render:({field:t})=>((t,i)=>{switch(t){case exports.FIELD_TYPES.HIDDEN:return e.jsx("input",Object.assign({type:ie.HIDDEN,disabled:u},i));case exports.FIELD_TYPES.TEXT:return e.jsx(re,Object.assign({type:ie.TEXT,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i));case exports.FIELD_TYPES.PASSWORD:{const t=E?ie.TEXT:ie.PASSWORD,a="appearance-none border-none bg-transparent flex items-center";return e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute right-0 top-0 flex items-center justify-center h-full z-10 pr-2",onClick:()=>S((e=>!e)),role:"button",tabIndex:0,children:E?e.jsx("button",{type:"button","aria-label":x,className:s(a,"form-icon"),children:e.jsx(T,{name:"mdi:eye-off",size:24})}):e.jsx("button",{type:"button","aria-label":p,className:s(a,"form-icon"),children:e.jsx(T,{name:"mdi:eye",size:24})})}),e.jsx(re,Object.assign({type:t,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i))]})}case exports.FIELD_TYPES.TEXTAREA:return e.jsx(re,Object.assign({type:ie.TEXTAREA,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.EMAIL:return e.jsx(re,Object.assign({type:ie.EMAIL,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i));case exports.FIELD_TYPES.DATE:return e.jsx(re,Object.assign({type:ie.DATE,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.DATETIME:return e.jsx(re,Object.assign({type:ie.DATETIME,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.NUMBER:return e.jsx(re,Object.assign({type:ie.NUMBER,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.CHECKBOX:return e.jsx(w,Object.assign({required:n||Boolean(h.required),id:a,className:o,label:r,disabled:u},i));case exports.FIELD_TYPES.RADIO:return e.jsx(se,Object.assign({required:n||Boolean(h.required),id:a,className:o,options:c,disabled:u},i));case exports.FIELD_TYPES.SWITCH:return e.jsx(ae,Object.assign({id:a,required:n||Boolean(h.required),className:o,disabled:u},i));case exports.FIELD_TYPES.SELECT:return e.jsx(Oe,Object.assign({required:n||Boolean(h.required),id:a,className:o,disabled:u,label:r,options:c},i));case exports.FIELD_TYPES.FILE:return e.jsx(H,Object.assign({required:n||Boolean(h.required),id:a,className:o,disabled:u,onChangeCallback:e=>{v(e)}},i));default:return e.jsx(re,Object.assign({type:ie.TEXT,required:n||Boolean(h.required),disabled:u,icon:l,className:o},i))}})(i,t)})}),m&&e.jsx("div",{className:"formfield-description",children:e.jsx(U,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:m})}),j[a]&&e.jsx("div",{className:"formfield-error text-error italic",children:e.jsx(U,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:null===(g=null===(N=null==j?void 0:j[a])||void 0===N?void 0:N.message)||void 0===g?void 0:g.toString()})})]})})};_e.displayName="FormField";const Re=({testID:t,url:s,title:a="Share",enabled:i={facebook:!0,twitter:!0}})=>e.jsxs("div",{"data-testid":t||"Share",className:"flex gap-2 items-center ",children:[e.jsx("div",{children:e.jsxs(U,{as:exports.COPY_TAG.P,className:"mb-0",children:[ne.UI.SHARE,":"]})}),(null==i?void 0:i.facebook)&&e.jsx(c.FacebookShareButton,{url:s,title:a,className:"",children:e.jsx(T,{name:"mdi:facebook"})}),(null==i?void 0:i.twitter)&&e.jsx(c.TwitterShareButton,{url:s,title:a,className:"",children:e.jsx(T,{name:"mdi:twitter"})}),(null==i?void 0:i.whatsapp)&&e.jsx(c.WhatsappShareButton,{url:s,title:a,className:"",children:e.jsx(T,{name:"mdi:whatsapp"})}),(null==i?void 0:i.email)&&e.jsx(c.EmailShareButton,{url:s,title:a,className:"",children:e.jsx(T,{name:"mdi:email"})}),(null==i?void 0:i.linkedin)&&e.jsx(c.LinkedinShareButton,{url:s,title:a,className:"",children:e.jsx(T,{name:"mdi:linkedin"})})]});Re.displayName="Share";const Le=({data:a})=>{const[i,r]=t.useState(0);return a?e.jsx("div",{"data-testid":"Tabs",children:e.jsxs(u.Tabs,{onSelect:e=>r(e),children:[e.jsx(u.TabList,{className:"mb-8 flex p-0",children:a.map(((t,a)=>e.jsx(u.Tab,{className:s("list-none rel ative cursor-pointer inline-block flex-1 items-center justify-center p-4",{"border-transparent border-solid border-0 border-b-2":i!==a,"border-primary border-solid border-0 border-b-2":i===a}),children:e.jsx(U,{className:"m-0 text-center",children:t.title})},a)))}),a.map(((t,s)=>e.jsx(u.TabPanel,{className:"",children:t.content},s)))]})}):e.jsx(e.Fragment,{})};Le.displayName="Tabs";const we=({testID:t,facebook:s,twitter:a,instagram:i,linkedin:r})=>e.jsxs("div",{"data-testid":t||'"VisitUs"',className:"flex gap-2",children:[s&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(s.url)}),a&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(a.url)}),i&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(i.url)}),r&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(r.url)})]});we.displayName="VisitUs";const De=({testID:t,title:a,links:i,inline:n=!0,separators:o=!1,className:l})=>e.jsxs("div",{"data-testid":t||'"Menu"',className:r.twMerge(s("flex flex-col gap-2",l)),children:[a&&e.jsx("div",{children:e.jsx(z,{tag:exports.HEADING_TAGS.H3,children:a})}),e.jsx("div",{className:s("flex gap-0 items-center md:items-start",{"flex-row ":n},{"flex-col ":!n}),children:null==i?void 0:i.map(((t,s)=>{const a=`${t.id}--${s}`;return e.jsxs("div",{className:"flex gap-0",children:[e.jsx("div",{className:"relative py-2",children:e.jsxs(D,{href:t.url,className:"flex gap-1",children:[t.icon&&e.jsx(T,{name:t.icon}),t.title&&e.jsx("div",{children:t.title})]})}),o&&s+1<i.length&&e.jsx("div",{className:"h-full flex self-center px-2",children:e.jsx(T,{name:"mdi:dot",className:"opacity-50"})})]},a)}))})]});var ke;De.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(ke||(ke={}));const Pe=({children:t,className:a,spacing:i,padded:n,isNarrow:o,isCentered:l,isFlush:d,direction:c=ke.COLUMN})=>{const u=r.twMerge(s("container relative mx-auto my-0",{"px-2 md:px-4 lg:px-4":n},{"py-40":"feature"===i},{"py-24":"component"===i},{"py-16":"module"===i},{"py-10":"element"===i},{"py-4":"atom"===i},{"py-0":"none"===i},{"max-w-3xl":o},{"flex items-center justify-center flex-col":l},{"px-0 max-w-full mx-0":d},{"flex flex-col":c===ke.COLUMN},{"flex-row":c===ke.ROW})),m=s("w-full",a);return e.jsx("div",{"data-testid":"Container",className:u,children:e.jsx("div",{className:m,children:t})})};Pe.displayName="Container";const Me=({testID:t,children:a,withBg:i=!0,inversed:r=!1})=>e.jsxs("div",{"data-testid":t||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[i&&e.jsx("div",{className:s("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!r,"-top-24 left-0":r})}),e.jsx(Pe,{children:a})]});Me.displayName="Hero";const Fe=({testID:i,bgAsset:r,focalAsset1:n,focalAsset2:o,focalAsset3:l})=>{const d=t.useRef(null);a.useInView(d);const c={opacity:.001,rotate:0,scale:1,x:200,y:0},u={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,transition:{damping:60,delay:0,mass:1.2,stiffness:300,type:"spring"},x:0,y:0};return e.jsxs("div",{"data-testid":i||"AnimationSet1",className:s("relative w-full h-full"),children:[r&&e.jsx(a.motion.div,{className:"absolute left-1/2 top-1/2 w-full h-full",initial:{opacity:.001,rotate:0,scale:.5,x:0,y:0,perspective:"1200px",translateX:"-50%",translateY:"-50%"},animate:{opacity:.5,rotate:0,rotateX:0,rotateY:0,scale:1.25,transition:{damping:60,delay:.7,mass:1.2,stiffness:300,type:"spring"},perspective:"1200px",translateX:"-50%",translateY:"-50%",x:0,y:0},transition:{duration:.5},children:e.jsx(K,{src:r.src,alt:r.alt,fill:!0})}),(n||o)&&e.jsxs(a.motion.div,{className:"absolute right-0 top-1/2 z-10 overflow-visible w-3/4 aspect-[0.78/1]",style:{transform:"translateY(-50%)"},children:[n&&e.jsx(a.motion.div,{className:"absolute w-1/2 aspect-[0.35/1] right-16 top-0",initial:c,animate:u,children:e.jsx(K,{src:n.src,alt:n.alt,fill:!0})}),o&&e.jsx(a.motion.div,{className:"absolute w-1/2 aspect-[0.5/1] left-0 top-20",initial:c,animate:Object.assign(Object.assign({},u),{transition:Object.assign(Object.assign({},u.transition),{delay:.3})}),children:e.jsx(K,{src:o.src,alt:o.alt,fill:!0})})]}),l&&e.jsx("div",{className:"absolute w-1/4 aspect-[0.5/1] flex flex-col flex-nowrap p-0 top-10 z-20 items-end justify-end left-10",children:e.jsx(a.motion.div,{className:"relative w-full overflow-visible aspect-[1.2/1]",initial:{opacity:.001,rotate:0,scale:1,x:100,y:0},animate:{opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,transition:{damping:60,delay:.6,mass:1.2,stiffness:300,type:"spring"},x:0,y:0},children:e.jsx(K,{src:l.src,fill:!0,alt:l.alt})})})]})};Fe.displayName="AnimationSet1";const Be=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,Ue=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,Ge={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},He={required:"You must specify a password",minLength:{value:8,message:"Password must have at least 8 characters"},pattern:{value:/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/,message:"Password must contain contain at least one number, one uppercase letter, one lowercase letter, and one special character."}},Ye=({handleSubmit:t,initialValues:s,showSocialButtons:a=!1})=>e.jsxs("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[e.jsxs(Ce,{onSubmit:t,submit:ne.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx(_e,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ne.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:Ge,autoComplete:"email"}),e.jsx(_e,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ne.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),a&&e.jsxs(e.Fragment,{children:[e.jsx(q,{}),e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsxs("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e.jsx(_,{onClick:()=>window.location.assign(Be),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ne.UI.LOGIN_WITH_GOOGLE}),e.jsx(_,{onClick:()=>window.location.assign(Ue),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ne.UI.LOGIN_WITH_APPLE})]})})]})]});Ye.displayName="LoginForm";const Ve=({handleSubmit:t,showSocialButtons:s=!1})=>e.jsxs("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[e.jsxs(Ce,{onSubmit:t,submit:ne.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e.jsx(_e,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ne.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:Ge,autoComplete:"email"}),e.jsx(_e,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ne.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:ne.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:He,autoComplete:"new-password"})]}),s&&e.jsxs(e.Fragment,{children:[e.jsx(q,{}),e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsxs("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e.jsx(_,{onClick:()=>window.location.assign(Be),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ne.UI.SIGNUP_WITH_GOOGLE}),e.jsx(_,{onClick:()=>window.location.assign(Ue),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ne.UI.SIGNUP_WITH_APPLE})]})})]})]});Ve.displayName="RegisterForm";const We=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e.jsx(Ce,{onSubmit:t,submit:ne.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(_e,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ne.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:Ge})})});We.displayName="ForgotPasswordForm";const ze=({loginSubmit:s,registerSubmit:a,passwordForgotSubmit:i,handleTokenCallback:r,showSocialLogin:n=!1})=>{const[o,l]=t.useState(!1);return t.useEffect((()=>{!function(){L(this,0,void 0,(function*(){if(!process.env.AWS_COGNITO_USERPOOL_DOMAIN||!process.env.AWS_COGNITO_CLIENT_ID||!process.env.AWS_COGNITO_REDIRECT_URI)return;const e=new URLSearchParams(window.location.search).get("code");if(e){const t=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/token`,s=new URLSearchParams;s.append("grant_type","authorization_code"),s.append("client_id",process.env.AWS_COGNITO_CLIENT_ID),s.append("code",e),s.append("redirect_uri",process.env.AWS_COGNITO_REDIRECT_URI);const a=yield fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s}),i=yield a.json();i&&r&&"function"==typeof r&&r(i)}}))}()}),[]),e.jsxs("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-128",children:[!o&&e.jsx(Le,{data:[{title:"Login",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(Ye,{handleSubmit:s,showSocialButtons:n}),e.jsx("div",{className:"mt-4",children:e.jsx(_,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsx(Ve,{handleSubmit:a,showSocialButtons:n})})}]}),o&&e.jsx(Le,{data:[{title:"Forgot Password",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(We,{handleSubmit:i}),e.jsx("div",{className:"mt-4",children:e.jsx(_,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};function qe({className:t,onClick:s}){return e.jsx(_,{className:"absolute -right-2 top-1/2 -translate-y-1/2 z-10",onClick:s,icon:"mdi:navigate-next",rounded:!0})}function Ke({className:t,onClick:s}){return e.jsx(_,{className:"absolute -left-2 top-1/2 -translate-y-1/2 z-10",onClick:s,icon:"mdi:navigate-before",rounded:!0})}ze.displayName="Authenticator";const Ze=({testID:t,data:s,onPressCallback:a=(()=>{}),count:i=5,isCentered:r=!1,carouselOptions:n={loop:!1,scrollAnimationDuration:500,showDots:!1,showArrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:i}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}]}})=>{const o=s.length<=i;return e.jsx("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e.jsx(m,{arrows:!o&&n.showArrows,nextArrow:e.jsx(qe,{}),prevArrow:e.jsx(Ke,{}),centerMode:r,responsive:n.responsive,slidesToScroll:1,slidesToShow:i,dots:!o&&n.showDots,infinite:!o&&n.loop,speed:n.scrollAnimationDuration,children:s.map(((t,s)=>e.jsx("div",{className:"px-2",children:e.jsx(je,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>{a(t.data.id)}}),className:t.className},s)},s)))})})};var $e;Ze.displayName="Carousel",function(e){e.NONE="py-0",e.ATOM="py-8",e.DEFAULT="py-16",e.ELEMENT="py-24",e.COMPONENT="py-32",e.MODULE="py-40",e.FEATURE="py-64"}($e||($e={}));const Xe=({testID:i,cardData:r,title:n,description:o,withSeparators:l,spacing:d=$e.MODULE})=>{const c=t.useRef(null),u=a.useInView(c,{once:!0});return e.jsxs("div",{ref:c,"data-testid":i||"PanelCards",className:s("relative m-auto w-full flex flex-col flex-none flex-nowrap",d),children:[(n||o)&&e.jsxs("div",{className:"relative text-center py-8",children:[n&&e.jsx(Ie,{text:n}),o&&e.jsx(U,{align:exports.COPY_ALIGN.CENTER,children:o})]}),e.jsx("div",{className:"flex gap-8",children:null==r?void 0:r.map(((t,a)=>e.jsxs("span",{className:"flex gap-8 justify-between",children:[e.jsx("div",{className:s("relative flex flex-1 items-center justify-center",{"":l}),style:{transform:u?"none":"translateY(200px)",opacity:u?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*a}s`},children:e.jsx(je,Object.assign({},t))}),l&&a<r.length-1&&e.jsx("div",{className:"w-1 h-10 border-0 border-r border-solid border-primary500"},`separator-${a}`)]},`card-${a}`)))})]})};Xe.displayName="PanelCards";const Qe=({testID:t,title:a,description:i,inversed:r,assets:n,buttonData:o,withBg:l=!0,spacing:d=$e.DEFAULT})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap",d),children:[l&&e.jsx("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -top-24 -left-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e.jsx(Pe,{children:e.jsxs("div",{className:s("relative flex sm:flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-16",{"flex-row-reverse":r}),children:[e.jsxs("div",{className:"w-1/2 flex flex-col items-start justify-center",children:[e.jsxs("div",{className:"relative text-left",children:[e.jsx(Ie,{text:a}),e.jsx(U,{className:"mb-0",children:i})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 my-8",children:[e.jsx(G,{rounded:!0,text:"New",variant:"info"}),e.jsx(G,{rounded:!0,text:"Trending",variant:"info"}),e.jsx(G,{rounded:!0,text:"Popular",variant:"info"})]}),e.jsx("div",{className:"",children:e.jsx(_,Object.assign({},o))})]}),e.jsx("div",{className:"w-1/2 flex items-center justify-center",children:e.jsx("div",{className:"w-full aspect-[1/1] flex items-center justify-center",children:e.jsx(Fe,{bgAsset:n.bgAsset,focalAsset1:n.focalAsset1,focalAsset2:n.focalAsset2,focalAsset3:n.focalAsset3})})})]})})]});Qe.displayName="PanelFeature";const Je=({url:a,sources:i,onReady:n,className:o,options:l={},isYoutube:d=!1,defaultAudioTrack:c="No Music",rounded:u=!0,aspectRatioValue:m})=>{const h=t.useRef(null),v=t.useRef(null),f=t.useRef(null),N=t.useMemo((()=>{switch(m){case"4/3":return{aspectRatio:"4:3",className:"aspect-[4/3]"};case"1/1":return{aspectRatio:"1:1",className:"aspect-[1/1]"};case"3/4":return{aspectRatio:"3:4",className:"aspect-[3/4]"};case"9/16":return{aspectRatio:"9:16",className:"aspect-[9/16]"};case"16/7":return{aspectRatio:"16:7",className:"aspect-[16/7]"};case"16/5":return{aspectRatio:"16:5",className:"aspect-[16/5]"};default:return{aspectRatio:"16:9",className:"aspect-[16/9]"}}}),[m]);return t.useEffect((()=>{var e;if(d)return;const t=Object.assign(Object.assign({autoplay:!0,controls:!0,muted:!1,responsive:!0,fill:!0,fluid:!0,aspectRatio:N.aspectRatio||"16:9",controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},l),{sources:i});if(console.log("videoOptions",t),f.current){const e=f.current;e.autoplay(l.autoplay),e.src(l.sources)}else{const s=document.createElement("video-js");s.classList.add("vjs-big-play-centered"),null===(e=null==v?void 0:v.current)||void 0===e||e.appendChild(s);const a=f.current=x(s,t,(()=>{x.log("player is ready",a),n&&n(a)}));a.on("loadedmetadata",(function(){const e=a.audioTracks();for(let t=0;t<e.length;t++)e[t].label===c&&(e[t].enabled=!0)}))}}),[l,v]),t.useEffect((()=>{if(d)return;const e=f.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),f.current=null)}}),[f]),d&&a?e.jsx("div",{"data-testid":"Video",className:s("relative w-full h-full aspect-[16/9]",o),children:e.jsx(p,{ref:h,className:"react-player",url:a,width:"100%",height:"100%",controls:!0,onReady:n})}):e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden h-full aspect-[16/9] bg-black object-cover",{rouded:u},N.className,o)),children:e.jsx("div",{"data-vjs-player":!0,children:e.jsx("div",{ref:v,className:"object-cover"})})})};Je.displayName="Video";const et=({testID:i,title:n,contentComponent:o,description:l,image:d,buttonData:c,inversed:u=!1,withBg:m=!0,spacing:p,video:x,headingTag:h,className:v})=>{const f=a.useAnimation(),N=t.useRef(null),g=a.useInView(N),E={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};t.useEffect((()=>{g&&f.start((e=>({transform:"none",transition:Object.assign(Object.assign({},E),{delay:.1*e})})))}),[f,g]);const S=t.useMemo((()=>{switch(null==x?void 0:x.aspectRatioValue){case"4/3":return"aspect-[4/3]";case"1/1":return"aspect-[1/1]";case"3/4":return"aspect-[3/4]";case"9/16":return"aspect-[9/16]";case"16/7":return"aspect-[16/7]";case"16/5":return"aspect-[16/5]";default:return"aspect-[16/9]"}}),[x]),A=u?"translateX(100px)":"translateX(-100px)";return e.jsxs("div",{"data-testid":i||"PanelHero",className:r.twMerge(s("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",p,v)),children:[m&&e.jsx("div",{className:s("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-b md:bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!u,"-top-24 left-0":u})}),e.jsx(Pe,{children:e.jsxs("div",{className:s("relative flex flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-0 md:gap-16",{"md:flex-row-reverse":u}),children:[e.jsx("div",{ref:N,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:e.jsxs("div",{className:s("relative flex flex-col gap-4 from-bodyBackground dark:from-darkBodyBackground p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!u},{"text-left bg-gradient-to-t md:bg-gradient-to-r":u}),children:[e.jsx(a.motion.div,{initial:{transform:A},custom:0,animate:f,children:e.jsx(Ie,{text:n,tag:h})}),o&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:f,children:o}),l&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:f,children:e.jsx(me,{className:"mb-0",align:u?exports.COPY_ALIGN.LEFT:exports.COPY_ALIGN.RIGHT,data:l})}),c&&e.jsx(a.motion.div,{initial:{transform:A},custom:2,animate:f,children:e.jsx("div",{className:s("flex items-center",{"justify-end":!u,"justify-start":u}),children:e.jsx(_,Object.assign({},c))})})]})}),e.jsx("div",{className:"relative w-full md:w-1/2 z-0",children:e.jsxs("div",{className:s("relative scale-[1.35] rounded overflow-hidden shadow",S),children:[d&&e.jsx(K,{src:d,alt:n,fill:!0}),x&&e.jsx(Je,{sources:x.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:x.aspectRatioValue})]})})]})})]})};et.displayName="PanelHero";const tt=({testID:t,title:a,description:i,image1:r,image2:n,iosLink:o="#",androidLink:l="#",inversed:d=!1,withBg:c=!0,spacing:u=$e.MODULE})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap",u),children:[c&&e.jsx("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -bottom-24 -right-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e.jsx(Pe,{children:e.jsxs("div",{className:s("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-primary bg-opacity-10 backdrop-blur-lg rounded border-opacityDark20 p-8",{"flex-row-reverse":d}),children:[e.jsxs("div",{className:"w-full md:w-1/2 top-0 relative",children:[e.jsx("div",{className:"absolute aspect-[8/17] -rotate-12 w-[135px] left-1/3 top-4 md:w-[180px] md:left-1/3 md:top-4 lg:w-[210px] lg:left-1/2 lg:-top-1/3",children:e.jsx(K,{src:n,alt:a})}),e.jsx("div",{className:"relative md:absolute aspect-[8/17] -rotate-0 w-[150px] left-0 top-0 md:w-[220px] md:left-0 md:-top-6 lg:w-[250px] lg:left-1/4 lg:-top-1/2",children:e.jsx(K,{src:r,alt:a})})]}),e.jsxs("div",{className:"w-full md:w-1/2",children:[e.jsx("div",{children:e.jsx(Ie,{text:a})}),e.jsx("div",{children:e.jsx(U,{children:i})}),e.jsxs("div",{className:"flex items-center justify-start gap-4",children:[e.jsx("div",{className:"relative w-[150px] h-[50px]",children:e.jsx(D,{href:o,target:"_blank",hideExternalIcon:!0,children:e.jsx(K,{src:"https://apple-resources.s3.amazonaws.com/media-badges/download-on-the-app-store/black/en-us.svg",alt:"App Store"})})}),e.jsx("div",{className:"relative w-[190px] h-[75px]",children:e.jsx(D,{href:l,target:"_blank",hideExternalIcon:!0,children:e.jsx(K,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});tt.displayName="PanelProduct";const st=({testID:t,className:i,title:r,description:n,spacing:o=$e.NONE,videoProps:l})=>e.jsxs("div",{"data-testid":t||'"PanelVideo"',className:s("relative m-auto w-full flex flex-none flex-nowrap aspect-[16/6.6]",o,i),children:[e.jsx(Je,{rounded:!1,options:Object.assign({autoplay:!0,muted:!0,controls:!1,loop:!0},null==l?void 0:l.options),sources:null==l?void 0:l.sources}),e.jsxs("div",{className:"absolute top-0 left-0 w-full h-full z-10",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-gradient-to-r from-transparent to-black opacity-50"}),e.jsxs("div",{className:"absolute top-0 left-0 w-full h-full flex flex-col items-end justify-center pr-24 text-white",children:[r&&e.jsx(a.motion.div,{initial:{transform:"translateX(25px)"},animate:{transform:"none",transition:{damping:60,delay:0,mass:1.2,stiffness:300,type:"spring"}},transition:{duration:.5},children:e.jsx("div",{children:e.jsx(z,{tag:exports.HEADING_TAGS.H2,children:r})})}),n&&e.jsx(a.motion.div,{initial:{transform:"translateX(25px)"},animate:{transform:"none",transition:{damping:60,delay:0,mass:1.2,stiffness:300,type:"spring"}},transition:{duration:.5},children:e.jsx("div",{children:e.jsx(U,{children:n})})})]})]})]});st.displayName="PanelVideo";const at=({testID:t,data:s,onPressCallback:a})=>e.jsx("div",{"data-testid":t||'"CardGrid"',className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:s.map(((t,s)=>e.jsx(je,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>a(t.data.id)})},s)))});var it;at.displayName="CardGrid",exports.CPL_SPACING=void 0,(it=exports.CPL_SPACING||(exports.CPL_SPACING={})).NONE="none",it.ATOM="atom",it.DEFAULT="default",it.ELEMENT="element",it.COMPONENT="component",it.MODULE="module",it.FEATURE="feature";const rt=({spacing:t=exports.CPL_SPACING.DEFAULT,children:a,narrow:i,flush:r,className:n})=>{const o=s("flex","flex-col","flex-1","relative",{"py-40":"feature"===t},{"py-24":"component"===t},{"py-16":"module"===t},{"py-10":"element"===t},{"py-8":"default"===t},{"py-4":"atom"===t},{"py-0":"none"===t},{"max-w-5xl":i},{"p-0":r},n);return e.jsx("div",{"data-testid":"ContentPageLayout",className:o,children:a})};var nt;rt.displayName="ContentPageLayout",exports.CRL_SIZE=void 0,(nt=exports.CRL_SIZE||(exports.CRL_SIZE={})).NONE="none",nt.ATOM="atom",nt.DEFAULT="default",nt.ELEMENT="element",nt.COMPONENT="component",nt.MODULE="module",nt.FEATURE="feature";const ot=({className:t,children:a,size:i=exports.CRL_SIZE.DEFAULT})=>{const r=s("grid","auto-rows-min","grid-cols-1","gap-x-4",{"gap-y-0 mb-0":"none"===i},{"gap-y-2 mb-2":"atom"===i},{"gap-y-4 mb-4":"default"===i},{"gap-y-8 mb-8":"element"===i},{"gap-y-16 mb-16":"module"===i},{"gap-y-24 mb-24":"component"===i},{"gap-y-40 mb-40":"feature"===i},t);return e.jsx("div",{"data-testid":"ContentRowsLayout",className:r,children:a})};ot.displayName="ContentRowsLayout";const lt=({testID:a,className:i})=>{var r,n,o,l,d,c,u,m,p,x,h,v,f,N;const g=t.useContext(he);return e.jsx("footer",{className:s("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8",i),children:e.jsxs(Pe,{padded:!0,children:[e.jsxs("div",{"data-testid":a||'"Footer"',className:"footer flex flex-col md:flex-row py-8 gap-8",children:[e.jsxs("div",{className:"relative w-full md:w-1/3 flex flex-col gap-4 items-center md:items-start",children:[(null===(r=null==g?void 0:g.brand)||void 0===r?void 0:r.logo)&&e.jsx("div",{className:"relative w-24",children:e.jsx(J,{logo:null===(n=null==g?void 0:g.brand)||void 0===n?void 0:n.logo,aspectRatioClass:null===(o=null==g?void 0:g.brand)||void 0===o?void 0:o.logoAspectRatio})}),(null===(l=g.footer)||void 0===l?void 0:l.about)&&e.jsx("div",{children:e.jsx(U,{children:g.footer.about})}),e.jsx("div",{children:e.jsx(we,{facebook:null===(c=null===(d=g.footer)||void 0===d?void 0:d.visitUs)||void 0===c?void 0:c.facebook,twitter:null===(m=null===(u=g.footer)||void 0===u?void 0:u.visitUs)||void 0===m?void 0:m.twitter,instagram:null===(x=null===(p=g.footer)||void 0===p?void 0:p.visitUs)||void 0===x?void 0:x.instagram,linkedin:null===(v=null===(h=g.footer)||void 0===h?void 0:h.visitUs)||void 0===v?void 0:v.linkedin})})]}),(null===(f=g.footer)||void 0===f?void 0:f.menus)&&e.jsx("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:g.footer.menus.map(((t,s)=>e.jsx("div",{className:"flex flex-1",children:e.jsx(De,{title:t.title,links:t.links,inline:!1})},`${t.title}--${s}`)))})]}),e.jsxs("div",{className:"flex items-center justify-center flex-col",children:[e.jsxs(U,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:["© ",(new Date).getFullYear()," ",ne.UI.COPYRIGHT," ",null===(N=g.brand)||void 0===N?void 0:N.name]}),e.jsx(U,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:ne.UI.ALL_RIGHTS_RESERVED})]})]})})};lt.displayName="Footer";const dt=({testID:a,hideMenu:i=!1,className:r,logoOnly:n})=>{var o,l,d,c,u,m,p,x,h,v,f,N,g,E,S,A,b,T,j,I,C,y;const O=t.useContext(he),R=fe(),[L,w]=t.useState("hidden"),[k,P]=t.useState(!1),M=()=>{w("hidden"===L?"block":"hidden")};return n?e.jsx("header",{"data-testid":a||'"Header"',className:s("relative z-10 w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0 bg-bodyBackground",r),children:e.jsx("div",{className:"relative w-full flex justify-center items-center",children:(null===(o=null==O?void 0:O.brand)||void 0===o?void 0:o.logo)&&e.jsx("div",{className:"relative w-56",children:e.jsx(D,{href:"/",children:e.jsx(J,{logo:null===(l=null==O?void 0:O.brand)||void 0===l?void 0:l.logo,aspectRatioClass:null===(d=null==O?void 0:O.brand)||void 0===d?void 0:d.logoAspectRatio})})})})}):e.jsx("header",{"data-testid":a||'"Header"',className:s("relative z-10 w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4",r),children:e.jsxs(Pe,{padded:!0,children:[e.jsxs("div",{className:"relative w-full flex",children:[(null===(c=null==O?void 0:O.brand)||void 0===c?void 0:c.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(D,{href:"/",children:e.jsx(J,{logo:null===(u=null==O?void 0:O.brand)||void 0===u?void 0:u.logo,aspectRatioClass:null===(m=null==O?void 0:O.brand)||void 0===m?void 0:m.logoAspectRatio})})}),e.jsx("div",{className:"flex-1 hidden md:flex items-center justify-center",children:(null===(p=null==O?void 0:O.header)||void 0===p?void 0:p.nav)&&e.jsx(De,{links:O.header.nav,separators:!0})}),e.jsxs("div",{className:"hidden md:flex flex-col justify-center",children:[!(null===(x=null==O?void 0:O.app)||void 0===x?void 0:x.isAuthenticated)&&(null===(h=null==O?void 0:O.app)||void 0===h?void 0:h.loginCallback)&&e.jsx("div",{className:"w-32 flex justify-end",children:e.jsx(_,{onClick:null===(v=null==O?void 0:O.app)||void 0===v?void 0:v.loginCallback,children:R.UI.LOGIN})}),!(null===(f=null==O?void 0:O.app)||void 0===f?void 0:f.isAuthenticated)&&!(null===(N=null==O?void 0:O.app)||void 0===N?void 0:N.loginCallback)&&e.jsx("div",{className:"w-32 flex justify-end"}),(null===(g=null==O?void 0:O.app)||void 0===g?void 0:g.isAuthenticated)&&e.jsxs("div",{className:"relative",children:[e.jsx(_,{onClick:()=>P(!k),icon:k?"mdi:user-outline":"mdi:user"}),e.jsx("div",{onClick:()=>P(!1),className:s("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!k}),children:(null===(E=null==O?void 0:O.header)||void 0===E?void 0:E.profile)&&e.jsx(De,{links:O.header.profile,inline:!1})})]})]}),e.jsx("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:menu",onClick:M})})]}),e.jsxs("div",{className:s("navbar-menu relative z-50",L,{hidden:i}),children:[e.jsx("div",{className:"navbar-backdrop fixed inset-0 bg-black opacity-25"}),e.jsxs("nav",{className:"fixed top-0 left-0 bottom-0 flex flex-col w-5/6 max-w-sm py-4 px-4 bg-bodyBackground dark:bg-darkBodyBackground border-r overflow-y-auto",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("div",{className:"relative w-32",children:(null===(S=null==O?void 0:O.brand)||void 0===S?void 0:S.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(J,{logo:null===(A=null==O?void 0:O.brand)||void 0===A?void 0:A.logo,aspectRatioClass:null===(b=null==O?void 0:O.brand)||void 0===b?void 0:b.logoAspectRatio})})}),e.jsx("div",{children:e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:close",onClick:M})})]}),e.jsxs("div",{className:"flex flex-col flex-1 gap-4",children:[(null===(T=null==O?void 0:O.app)||void 0===T?void 0:T.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(U,{children:"User profile avatar and details here."})}),e.jsx("div",{className:"flex flex-1 justify-center pt-4",children:(null===(j=null==O?void 0:O.header)||void 0===j?void 0:j.nav)&&e.jsx(De,{links:O.header.nav,inline:!1})}),(null===(I=null==O?void 0:O.app)||void 0===I?void 0:I.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(_,{onClick:null===(C=null==O?void 0:O.app)||void 0===C?void 0:C.logoutCallback,children:R.UI.LOGOUT})}),!(null===(y=null==O?void 0:O.app)||void 0===y?void 0:y.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(_,{onClick:()=>{var e;null===(e=null==O?void 0:O.app)||void 0===e||e.loginCallback(),M()},children:R.UI.LOGIN})})]})]})]})]})})};dt.displayName="Header";const ct=({testID:a,inputCallback:i,seperator:r,numInputs:n=4,shouldAutoFocus:o=!1,size:l="medium"})=>{const[d,c]=t.useState("");t.useEffect((()=>{d&&4===d.length&&void 0!==i&&"function"==typeof i&&i(d)}),[d]);const u=t.useMemo((()=>{switch(l){case"small":return{width:"2.5rem",height:"3rem"};case"medium":return{width:"3.5rem",height:"4rem"};case"large":return{width:"4.5rem",height:"5rem"};default:return{width:"2.5rem",height:"2.5rem"}}}),[l]);return e.jsx("div",{"data-testid":a||'"OTPInput"',className:"foo-bar",children:e.jsx(h,{value:d,onChange:c,inputType:"number",numInputs:n,shouldAutoFocus:o,renderSeparator:r?()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(T,{name:"mdi:dot",className:"opacity-50"})}):e.jsx("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e.jsx("input",Object.assign({},t,{className:s("remove-arrow form-item text-input w-12")})),inputStyle:{width:u.width,height:u.height}})})};var ut,mt;function pt({className:t,label:a,onChange:i,options:r}){return r?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(Z,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(Oe,{id:a||"Sorting",options:r,onChange:e=>i(e.target.value)})]}):null}function xt(t){var{className:a,current:i,resultsPerPage:r=10,onChange:n,totalPages:o}=t,l=R(t,["className","current","resultsPerPage","onChange","totalPages"]);return e.jsx(N,Object.assign({current:i,onChange:n,simple:!0,pageSize:r,total:o*r,className:s("m-0 p-0 list-none text-bodyTextInverted flex gap-2 text-center items-center [&>li>span]:px-2 [&>li>input]:text-black [&>li>input]:rounded [&>li>input]:text-center",a),locale:g,prevIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(T,{name:"mdi:chevron-left"})}),nextIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(T,{name:"mdi:chevron-right"})})},l))}function ht({className:t,onChange:a,options:i,label:r}){return i?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(Z,{className:"text-sm mr-2",transform:exports.COPY_TRANSFORM.UPPERCASE,children:ne.UI.SHOW}),e.jsx(Oe,{id:r||"ResultsPerPage",options:i.map((e=>({label:e.toString(),value:e}))),onChange:e=>a(e.target.value),className:"min-w-20"})]}):e.jsx(e.Fragment,{})}function vt(t){var{className:a,end:i,searchTerm:r,start:n,totalResults:o}=t,l=R(t,["className","end","searchTerm","start","totalResults"]);return e.jsxs("div",Object.assign({className:s("m-0 p-0 flex-1",a)},l,{children:["Showing"," ",e.jsxs("strong",{children:[n," - ",i]})," ","out of ",e.jsx("strong",{children:o}),r&&e.jsxs(e.Fragment,{children:[" ","for: ",e.jsx("em",{children:r})]})]}))}function ft({className:a,onChange:i,onSubmit:r,wasSearched:n,placeholder:o,allowReset:l=!1,resetTrigger:d=(()=>{})}){return t.useContext(f.SearchContext),e.jsx("div",{className:s("m-0 md:px-48",a),children:e.jsxs("form",{onSubmit:e=>r(e),className:"flex items-center",children:[e.jsx("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e.jsx(re,{name:"SearchBoxInput",type:ie.TEXT,placeholder:o||"Search now...",onChange:e=>{var t;i(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)}})}),e.jsx("div",{className:"pl-4",children:e.jsxs("div",{className:"flex flex-row gap-2",children:[n&&l&&e.jsx(_,{type:exports.BTN_TYPES.BUTTON,onClick:()=>d("",{shouldClearFilters:!1}),variant:exports.BTN_VARIANTS.SECONDARY,icon:"mdi:restore"}),e.jsx(_,{type:exports.BTN_TYPES.SUBMIT,variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:magnify"})]})})]})})}function Nt({className:t,children:a,header:i,bodyContent:r,bodyFooter:n,bodyHeader:o,sideContent:l,showSidebar:d}){const c=s("hidden md:block fixed md:relative w-full h-full left-0 md:left-auto top-0 md:top-auto px-2 pb-4 md:pt-6 md:px-6 md:pb-auto md:pl-0",{"hidden md:hidden":!l});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s("w-full flex flex-col",t),children:[e.jsx("div",{className:"m-auto md:py-0 w-full",children:i}),e.jsxs("div",{className:s("md:grid m-auto md:py-0 w-full",{"md:grid-cols-searchLayout":!l,"md:grid-cols-searchLayoutWithSidebar":l}),children:[!E.isMobile&&e.jsx("div",{className:c,children:l}),e.jsxs("div",{className:s("p-0 pt-2 md:p-6 md:pr-0",{"md:pl-0":!l}),children:[e.jsx("div",{className:"flex flex-row gap-8 items-center justify-end",children:o}),e.jsx("div",{className:"relative",children:a||r}),e.jsx("div",{className:"flex items-center justify-around",children:n})]})]})]}),E.isMobile&&d&&e.jsx("div",{className:"fixed z-10 w-full top-0 left-0 right-0 bottom-0 bg-bodyBackground px-4 overflow-scroll",children:l})]})}function gt(t){var{children:a,className:i,gridClasses:r}=t,n=R(t,["children","className","gridClasses"]);const o=r||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return e.jsx("ul",Object.assign({className:s("relative grid gap-4 mb-4",o,i)},n,{children:a}))}function Et(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function St(e,t){if(e)return e[t]}function At(e){const t=St(e,"snippet")||(s=function(e){return St(e,"raw")}(e),s?String(s).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):"");var s;return Array.isArray(t)?t.join(", "):t}function bt({className:t,result:a,as:i,cardMap:r={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:n,titleField:o,imageField:l,videoField:d,descriptionField:c,metaDataFields:u,cardProps:m}=r,p=n&&At(a[n.fieldName]),x=o&&At(a[o.fieldName]),h=l&&At(a[l.fieldName]),v=d&&d.formatter?d.formatter(At(a[d.fieldName])):d&&At(a[d.fieldName]),f=c&&At(a[c.fieldName]),N=u&&u.map((e=>{const t=At(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)}));return e.jsx("li",{className:s("relative",t),children:(()=>{const t={id:p,title:x,image:{src:h||"",alt:x||"",title:x||"",width:500,height:500},video:v,description:f,metaData:N,actions:r.actionsData,onClick:r.onClickLink};switch(i){case exports.ResultAsTypes.cardMedia:return e.jsx(je,Object.assign({variant:exports.CardVariant.MEDIA,data:t},m));case exports.ResultAsTypes.cardVideo:return e.jsx(je,Object.assign({variant:exports.CardVariant.VIDEO,data:t},m,{isMuted:!1}));default:return e.jsx(je,Object.assign({variant:exports.CardVariant.BASIC,data:t},m))}})()})}function Tt({showOptions:s,sortOptions:a,resultAs:i=exports.ResultAsTypes.cardBasic,ResultFieldMap:r,config:n={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:o=[],noSidebar:l=!1,customConnector:d,showPagingInfo:c,gridClasses:u,initialState:m={},showTextSearch:p=!0}){const x=fe(),h=t.useMemo((()=>{const e={host:process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""};return new v(d||e)}),[]),N=t.useMemo((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:!0,apiConnector:h,hasA11yNotifications:!0,searchQuery:{filters:n.filters||[],search_fields:n.searchFields||{},result_fields:n.resultsFields||{},facets:n.facets},autocompleteQuery:{results:{search_fields:{title:{},description:{}},resultsPerPage:5,result_fields:{title:{snippet:{size:100,fallback:!0}}}}},initialState:Object.assign({resultsPerPage:(null==s?void 0:s[0])||8},m)})),[n]),[g,E]=t.useState(!1),S=()=>{E((e=>!e))};return e.jsx(f.SearchProvider,{config:N,children:e.jsx(f.WithSearch,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:t,setSearchTerm:d})=>{var m;return e.jsx(e.Fragment,{children:e.jsx(f.ErrorBoundary,{children:e.jsx(Nt,{noSidebar:l,showSidebar:g,header:p&&e.jsx(f.SearchBox,{view:s=>e.jsx(ft,Object.assign({},s,{wasSearched:t,placeholder:n.initialPlaceholder,allowReset:!0,resetTrigger:d}))}),sideContent:!l&&o&&e.jsxs("div",{children:[e.jsx("div",{className:"md:hidden flex justify-end pt-2 -mb-2",children:e.jsx(_,{onClick:S,icon:"mdi:close",children:null===(m=null==x?void 0:x.UI)||void 0===m?void 0:m.HIDE_FILTERS})}),t&&a&&e.jsx(f.Sorting,{label:"Sort by",sortOptions:a,view:pt}),null==o?void 0:o.map((({field:t,label:s,view:a})=>e.jsx(f.Facet,{field:t,label:s,view:a},t)))]}),bodyContent:e.jsx(f.Results,{shouldTrackClickThrough:!1,resultView:t=>e.jsx(bt,Object.assign({},t,{as:i,cardMap:r})),className:"list-none p-0 m-0",view:t=>e.jsx(gt,Object.assign({},t,{gridClasses:u}))}),bodyHeader:e.jsxs(e.Fragment,{children:[t&&c&&e.jsx(f.PagingInfo,{view:vt}),t&&s&&e.jsx(f.ResultsPerPage,{view:ht,options:s}),t&&a&&l&&e.jsx(f.Sorting,{label:"Sort by",sortOptions:a,view:pt}),t&&!l&&e.jsx("div",{className:"block md:hidden",children:e.jsx(_,{rounded:!0,onClick:S,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e.jsx(f.Paging,{view:xt})})})})}})})}function jt({className:t,label:a,onChange:i,options:r}){const n=r.map((e=>({value:e.value,label:`${e.value} (${e.count})`})));return e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(Z,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(Oe,{id:a,options:n,onChange:e=>i(e.target.value)})]})}function It({className:t,label:a,onRemove:i,onSelect:r,options:n}){const o=n.filter((e=>e.selected)).map((e=>e.value))[0];return e.jsx("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:e.jsxs("div",{children:[e.jsx(Z,{transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsxs("ul",{className:"ul list-none p-0",children:[o&&e.jsxs("li",{className:"m-0 flex justify-between items-center flex-1",children:[Et(o),e.jsx("span",{className:"ml-1 px-1",children:e.jsx(_,{onClick:()=>i(o),size:exports.BTN_SIZES.SMALL,rounded:!0,children:e.jsx(T,{name:"mdi:close"})})})]}),!o&&n.map((t=>{const s=Et(t.value);return e.jsxs("li",{className:"m-0 flex justify-between",children:[e.jsx("a",{className:"no-underline visited:text-bodyText","data-transaction-name":`facet - ${a}`,href:"/",onClick:e=>{e.preventDefault(),r(t.value)},children:e.jsx("label",{className:"label pl-0 leading-none text-bodyText dark:text-darkBodyText",children:s})}),e.jsx(U,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.MEDIUM,children:t.count.toLocaleString("en")})]},s)}))]})]})})}function Ct({className:t,label:a,onMoreClick:i,onRemove:r,onSelect:n,options:o,showMore:l,showSearch:d,onSearch:c,searchPlaceholder:u}){return o?e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(Z,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),d&&e.jsx("div",{className:"mt-1",children:e.jsx(re,{type:ie.SEARCH,placeholder:u||"Search",onChange:e=>{c(e.target.value)}})}),e.jsxs("div",{className:"my-4",children:[(null==o?void 0:o.length)<1&&e.jsx("div",{children:"No matching options"}),null==o?void 0:o.map((t=>{const s=t.selected,i=t.value,o=Et(i);return e.jsxs("div",{className:"flex justify-between pb-2",children:[e.jsx(w,{id:`facet_${a}${o}`,"data-transaction-name":`facet - ${a}`,checked:s,onChange:()=>s?r(i):n(i),label:o}),e.jsx(U,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.SMALL,children:t.count.toLocaleString("en")})]},o)}))]}),l&&e.jsx(_,{size:exports.BTN_SIZES.SMALL,variant:exports.BTN_VARIANTS.TERTIARY,onClick:i,"aria-label":"Show more options",children:"+ More"})]}):e.jsx(e.Fragment,{children:"Options required"})}ct.displayName="OTPInput",exports.CardVariant=void 0,(ut=exports.CardVariant||(exports.CardVariant={})).BASIC="basic",ut.MEDIA="media",ut.VIDEO="video",ut.ICON="icon",ut.HORZ="horz",ut.DATA="data",exports.ResultAsTypes=void 0,(mt=exports.ResultAsTypes||(exports.ResultAsTypes={})).cardBasic="cardBasic",mt.cardMedia="cardMedia",mt.cardVideo="cardVideo",pt.displayName="Sorting",xt.displayName="Paging",ht.displayName="ResultsPerPage",vt.displayName="PagingInfo",ft.displayName="SearchBox",Nt.displayName="Layout",gt.displayName="Results",bt.displayName="Result",jt.displayName="SingleSelectFacet",It.displayName="SingleLinksFacet",Ct.displayName="MultiCheckboxFacet";const yt=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e.jsx(Ce,{onSubmit:t,submit:ne.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(_e,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ne.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:He})})});yt.displayName="ResetPasswordForm";const Ot=({testID:t,initialValues:s,handleSubmit:a})=>e.jsx("div",{"data-testid":t||'"ProfileForm"',className:"form-wrapper",children:e.jsxs(Ce,{onSubmit:a,submit:ne.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx("div",{className:"mb-4 items-center justify-center flex",children:e.jsx(oe,{name:"avatar",initValue:null==s?void 0:s.avatar})}),e.jsx(_e,{name:"firstName",type:exports.FIELD_TYPES.TEXT,label:ne.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e.jsx(_e,{name:"lastName",type:exports.FIELD_TYPES.TEXT,label:ne.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e.jsx(_e,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ne.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:Ge})]})});Ot.displayName="ProfileForm";const _t=({testID:t,children:a,showHeader:i=!0,showFooter:r=!0,headerProps:n,footerProps:o={},image:l,showOverlay:d=!0})=>e.jsxs("div",{"data-testid":t||'"Screen"',className:"h-full flex flex-col min-h-full",children:[i&&e.jsx(dt,Object.assign({},n)),e.jsxs("main",{className:s("flex flex-1",{"pt-24 md:pt-32 lg:pt-40":l},{"pt-8 md:pt-12 lg:pt-12":!l}),children:[l&&e.jsxs("div",{className:"absolute w-full aspect-[16/5] opacity-50 z-0 top-0 left-0 right-0",children:[e.jsx(K,{src:l,alt:"background",sizes:"100vw",style:{objectFit:"cover"}}),d&&e.jsx("div",{className:"absolute w-full h-full bg-gradient-to-b from-transparent to-bodyBackground dark:to-darkBodyBackground"})]}),e.jsx(Pe,{padded:!0,children:e.jsx("div",{className:"flex flex-col gap-8",children:a})})]}),r&&e.jsx(lt,Object.assign({},o))]});_t.displayName="Screen";const Rt=({testID:t,title:s,image:a,user:i,logoutCallback:r,menu:n})=>{var o;const l=fe();return e.jsxs(_t,{"data-testid":t||"AccountScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(oe,{initValue:null===(o=null==i?void 0:i.profile)||void 0===o?void 0:o.picture,isEditable:!1})}),n&&e.jsx("div",{children:e.jsx(Q,{className:"flex items-center flex-col justify-center gap-2",children:null==n?void 0:n.map(((t,s)=>e.jsx(ee,{as:"div",title:t.title,icon:t.icon,onClick:t.onClick},s)))})}),e.jsxs("div",{className:"my-4 flex flex-col gap-8 justify-center items-center",children:[e.jsxs("div",{className:"flex items-center flex-col justify-center gap-1",children:[e.jsx(z,{tag:exports.HEADING_TAGS.H5,flush:!0,children:l.UI.SHARE}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(c.FacebookShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(T,{name:"mdi:facebook"})}),e.jsx(c.TwitterShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(T,{name:"mdi:twitter"})}),e.jsx(c.LinkedinShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(T,{name:"mdi:linkedin"})}),e.jsx(c.WhatsappShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(T,{name:"mdi:whatsapp"})})]})]}),e.jsx(_,{onClick:r,icon:"mdi:logout",children:null==l?void 0:l.UI.LOGOUT})]})]})]})};Rt.displayName="AccountScreen";const Lt=({testID:t,title:s,image:a,formProps:i})=>e.jsxs(_t,{"data-testid":t||"AuthScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsx("div",{className:"flex justify-center",children:e.jsx(ze,Object.assign({},i))})]});Lt.displayName="AuthScreen";const wt=({testID:t,title:s,image:a,data:i,onPressCallback:r,isLoading:n})=>e.jsxs(_t,{"data-testid":t||"CardGridScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsxs("div",{children:[n&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(O,{})}),i&&e.jsx(at,{data:i,onPressCallback:r})]})]});wt.displayName="CardGridScreen";const Dt=({testID:t,title:s,image:a,searchProps:i})=>e.jsxs(_t,{"data-testid":t||"CatalogueScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsx("div",{children:e.jsx(Tt,Object.assign({},i))})]});Dt.displayName="CatalogueScreen";const kt=({testID:t,title:s,image:a,data:i,isLoading:r,onPressCallback:n})=>e.jsxs(_t,{"data-testid":t||"ChallengeLibraryScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),r&&e.jsx("div",{className:"",children:e.jsx(O,{})}),i&&e.jsx("div",{children:e.jsx(at,{data:i,onPressCallback:n})})]});kt.displayName="ChallengeLibraryScreen";const Pt="MMMM dd, yyyy",Mt="HH:mm",Ft=({testID:s,title:a,image:i,created:r=0,body:n,days:o,price:l,puchaseLabel:d,hasAccess:c=!1,onPressCallback:u,purchaseCallback:m})=>{const p=fe(),x=t.useMemo((()=>S.format(new Date(1e3*r),Pt)),[r]);return e.jsxs(_t,{"data-testid":s||"ChallengeScreen",image:i,children:[e.jsxs("div",{children:[a&&e.jsx(Ie,{text:a}),e.jsxs(Z,{children:[p.UI.CREATED,": ",x]}),!c&&e.jsxs("div",{className:"flex flex-col gap-2 mb-4",children:[e.jsx(U,{bold:!0,className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e.jsx(U,{className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e.jsx("div",{children:e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:m,children:d})}),e.jsxs(U,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:["** ",p.GLOBAL.SCREENS.CHALLENGE.PAYMENT_NOTE]})]})]}),e.jsx("div",{children:n&&e.jsx(me,{data:n})}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:null==o?void 0:o.map((t=>e.jsx(je,{variant:exports.CardVariant.MEDIA,data:{id:t.id,title:t.title,image:{src:t.image,alt:t.title},raised:!0,onClick:c?()=>u(t.id):void 0,accessRestriced:!c}},t.id)))})]})};Ft.displayName="ChallengeScreen";const Bt=({testID:t,title:s,image:a,updated:i,content:r})=>{var n;const o=fe(),l=i?S.format(new Date(1e3*i),"MMMM dd, yyyy HH:mm"):void 0;return e.jsxs(_t,{"data-testid":t||"ContentScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),i&&e.jsx("div",{children:e.jsxs(U,{children:[null===(n=null==o?void 0:o.UI)||void 0===n?void 0:n.UPDATED,": ",l]})}),e.jsx("div",{children:e.jsx(me,{data:r})})]})};Bt.displayName="ContentScreen";const Ut=({testID:t,title:s,image:a,user:i,latestData:r,recentdata:n,stats:o,promo:l,news:d,statsIsLoading:c,promosIsLoading:u,dataIsLoading:m,handleLatestDataPress:p,handleRecentDataPress:x,handleNewsDataPress:h})=>{var v,f,N,g,E,S;const A=fe();return e.jsxs(_t,{"data-testid":t||"DashboardScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsx("div",{children:e.jsxs(U,{children:[null===(v=null==A?void 0:A.UI)||void 0===v?void 0:v.WELCOME," ",null==i?void 0:i.name]})}),c&&e.jsx("div",{children:e.jsx(O,{})}),!c&&o&&e.jsxs("div",{className:"mb-8",children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:null===(f=null==A?void 0:A.UI)||void 0===f?void 0:f.ACTIVITY}),e.jsx("div",{className:"flex flex-row gap-4",children:o.map(((t,s)=>e.jsx("div",{children:e.jsx(je,{variant:t.variant,data:t.data})},`${t.data.id}-${s}`)))})]}),m&&e.jsx("div",{children:e.jsx(O,{})}),!m&&r&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:null===(N=null==A?void 0:A.UI)||void 0===N?void 0:N.LATEST_WORKOUTS}),e.jsx("div",{children:e.jsx(Ze,{data:r,onPressCallback:p,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),u&&e.jsx("div",{children:e.jsx(O,{})}),!u&&l&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,flush:!0,children:null===(g=null==A?void 0:A.UI)||void 0===g?void 0:g.WHATS_NEWS}),e.jsx(et,Object.assign({},l,{withBg:!0,spacing:$e.ATOM}))]}),m&&e.jsx("div",{children:e.jsx(O,{})}),!m&&n&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:null===(E=null==A?void 0:A.UI)||void 0===E?void 0:E.RECENTLY_ADDED}),e.jsx("div",{children:e.jsx(Ze,{data:n,onPressCallback:x,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),u&&e.jsx("div",{children:e.jsx(O,{})}),!u&&d&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:null===(S=null==A?void 0:A.UI)||void 0===S?void 0:S.WHATS_NEW}),e.jsx("div",{children:e.jsx(Ze,{data:d,onPressCallback:h,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]})]})};Ut.displayName="DashboardScreen";const Gt=({title:t,isOpen:a})=>e.jsxs("div",{className:s("flex flex-row items-center justify-between p-2 border border-solid border-tertiary transition-all rounded mb-2",{"bg-tertiary":a}),children:[e.jsx(z,{flush:!0,tag:exports.HEADING_TAGS.H4,className:s("transition-all",{"text-white":a}),children:t}),e.jsx("div",{className:"",children:e.jsx(T,{name:a?"mdi:chevron-up":"mdi:chevron-down"})})]}),Ht=({testID:t,data:s,titleKey:a="title",contentKey:i="content"})=>e.jsx("div",{"data-testid":t||'"Accordion"',children:s.map((t=>e.jsx(A,{triggerTagName:"div",easing:"ease-out",triggerWhenOpen:e.jsx(Gt,{title:t[a],isOpen:!0}),trigger:e.jsx(Gt,{title:t[a],isOpen:!1}),children:e.jsx("div",{className:"p-2",children:e.jsx(U,{children:t[i]})})},t[a])))});Ht.displayName="Accordion";const Yt=({testID:t,title:s,image:a,data:i,isLoading:r})=>e.jsxs(_t,{"data-testid":t||"FAQScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),!i&&r&&e.jsx("div",{className:"flex flex-1 items-center justify-center min-h-[125px]",children:e.jsx(O,{})}),i&&e.jsx(Ht,{data:null==i?void 0:i.map((e=>({title:e.title||"",content:e.answer||""})))})]});Yt.displayName="FAQScreen";const Vt=({testID:t,title:s,image:a})=>e.jsx(_t,{"data-testid":t||"HomeScreen",image:a,children:e.jsx(Pe,{children:e.jsx("div",{className:"flex flex-col gap-8 pt-8",children:s&&e.jsx("div",{children:e.jsx(z,{children:s})})})})});Vt.displayName="HomeScreen";const Wt=({testID:t,title:s,image:a,menu:i,isLoading:r=!1})=>e.jsxs(_t,{"data-testid":t||"MenuScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),r&&e.jsx("div",{className:"flex flex-1 justify-center items-center min-h-[125px]",children:e.jsx(O,{})}),i&&e.jsx(Q,{children:i.map((t=>e.jsx(ee,{as:"div",icon:t.icon,onClick:t.onPress,title:t.title},t.title)))})]});Wt.displayName="MenuScreen";const zt=({testID:t,title:s,image:a,user:i,handleProfileSubmit:r})=>e.jsxs(_t,{"data-testid":t||"ProfileScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsx(Ot,{initialValues:null==i?void 0:i.profile,handleSubmit:r})]});zt.displayName="ProfileScreen";const qt=({testID:s,end:a,live:i,start:r,title:n})=>{const o=t.useMemo((()=>S.format(new Date(1e3*r),Pt)),[r]),l=t.useMemo((()=>S.format(new Date(1e3*r),Mt)),[r]),d=t.useMemo((()=>S.format(new Date(1e3*a),Mt)),[a]);return e.jsxs("div",{"data-testid":s||'"ScheduleItem"',className:"foo-bar",children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:n}),e.jsxs(Z,{children:[o,": ",l," - ",d]}),i&&e.jsx("div",{children:e.jsx(Je,{url:i,isYoutube:!0})})]})};qt.displayName="ScheduleItem";const Kt=({testID:s,raised:a=!1,scheduleItems:i,hasAccess:r})=>{var n,o,l,d;const c=fe(),[u,m]=t.useState(0),[p,x]=t.useState([]),h=t.useMemo((()=>{var t;return null===(t=null==i?void 0:i.days)||void 0===t?void 0:t.map(((t,s)=>{var a,i;const r=Object.keys(t)[0],n=null===(a=t[r])||void 0===a?void 0:a[0];return n?{day:r.charAt(0).toUpperCase()+r.slice(1),component:e.jsx(qt,{title:n.title,live:n.live,start:n.start,end:n.end})}:{day:r.charAt(0).toUpperCase()+r.slice(1),component:e.jsx("div",{children:e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:null===(i=null==c?void 0:c.UI)||void 0===i?void 0:i.NO_CLASS})})}}))}),[i]);t.useEffect((()=>{const e=function(){const e=new Date,t=e.getDay(),s=new Date(e);s.setDate(e.getDate()-t);const a=[];for(let t=0;t<7;t++){const i=new Date(s);i.setDate(s.getDate()+t),a.push({date:i,isToday:i.toDateString()===e.toDateString()})}return a}(),t=e.findIndex((e=>e.isToday));m(t),x(e)}),[]);const v=t.useMemo((()=>p.map(((e,t)=>{const s=e.date.toLocaleString("en-US",{weekday:"short"}),a=e.date.toLocaleString("en-US",{day:"numeric"}),i=u===t;return{variant:exports.CardVariant.BASIC,data:{id:`${t}`,title:s,description:a,raised:!0},className:i?"bg-tertiary":"bg-bodyBackground"}}))),[p,u]),f=t.useMemo((()=>null==h?void 0:h.find((e=>{var t;return e.day===(null===(t=null==p?void 0:p[u])||void 0===t?void 0:t.date.toLocaleString("en-US",{weekday:"long"}))}))),[h,p,u]);return e.jsxs("div",{"data-testid":s||'"Schedule"',children:[e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H5,transform:exports.HEADING_TRANSFORM.UPPERCASE,children:null===(n=null==c?void 0:c.UI)||void 0===n?void 0:n.THIS_WEEK}),e.jsx("div",{children:e.jsx(Ze,{data:v,onPressCallback:e=>{m(Number(e))},count:7,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500,onSnapToItem:()=>{},shouldScrollOnClick:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:7}},{breakpoint:600,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:3}}]}})})]}),e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H5,transform:exports.HEADING_TRANSFORM.UPPERCASE,children:null===(o=null==c?void 0:c.UI)||void 0===o?void 0:o.TODAYS_ITEMS}),!r&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H2,children:null===(l=null==c?void 0:c.UI)||void 0===l?void 0:l.ACCESS_RESTRICTED}),e.jsx(U,{children:null===(d=null==c?void 0:c.UI)||void 0===d?void 0:d.UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE})]}),r&&(null==f?void 0:f.component)]})]})};Kt.displayName="Schedule";const Zt=({testID:t,title:s,image:a,scheduleData:i,isLoading:r=!1})=>e.jsxs(_t,{"data-testid":t||"ScheduleScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),!i&&r&&e.jsx("div",{className:"flex flex-1 justify-center items-center min-h-[125px]",children:e.jsx(O,{})}),i&&e.jsx("div",{children:e.jsx(Kt,Object.assign({},i))})]});Zt.displayName="ScheduleScreen";const $t=({testID:t,initialValues:s,handleSubmit:a,isDisabled:i=!0})=>{const r=fe();return e.jsx("div",{"data-testid":t||'"SubscriptionForm"',className:"form-wrapper",children:e.jsxs(Ce,{onSubmit:a,isDisabled:i,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx(_e,{name:"status",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_STATUS_LABEL,disabled:i}),e.jsx(_e,{name:"plan",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_PLAN_LABEL,disabled:i}),e.jsx(_e,{name:"price",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_PRICE_LABEL,disabled:i}),e.jsx(_e,{name:"billingDate",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_BILLING_DATE_LABEL,required:!0,disabled:i})]})})};$t.displayName="SubscriptionForm";const Xt=({testID:t,title:s,image:a,user:i,handleSubscriptionSubmit:r,subscriptionCallback:n})=>{var o,l,d,c;const u=fe();return e.jsxs(_t,{"data-testid":t||"SubscriptionScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),!(null===(o=null==i?void 0:i.subscription)||void 0===o?void 0:o.status)&&e.jsx(Pe,{padded:!0,children:e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:u.UI.NO_ACTIVE_SUBSCRIPTION}),e.jsx(U,{children:null===(l=null==u?void 0:u.UI)||void 0===l?void 0:l.NO_SUBSCRIPTION_DETAILS})]})}),(null===(d=null==i?void 0:i.subscription)||void 0===d?void 0:d.status)&&e.jsx("div",{children:e.jsx($t,{initialValues:null==i?void 0:i.subscription,handleSubmit:r})}),n&&e.jsx("div",{children:e.jsx(_,{onClick:n,icon:"help",children:null===(c=null==u?void 0:u.UI)||void 0===c?void 0:c.QUESTION})})]})};Xt.displayName="SubscriptionScreen";const Qt=({testID:s,id:a,title:i,image:r,description:n,created:l=0,duration:d="PT0M",level:c,section:u,uuid:m,video:p,category:x,type:h,likeCallback:v,completedCallback:f,favouriteCallback:N,isLiked:g,isCompleted:E,isFavourite:A,relatedWorkouts:b,isLoading:T,hasActiveSubscription:j})=>{var I,C;const y=fe(),[O,R]=t.useState(!1),[L,w]=t.useState(null),[D,k]=t.useState(2);t.useMemo((()=>L?{uri:L,type:"video/mp4"}:{uri:p,type:"application/x-mpegURL"}),[p,L]);const P=t.useMemo((()=>S.format(new Date(1e3*l),Pt)),[l]),M=t.useMemo((()=>function(e){const t=o.parse(e),s=[];return t.years&&s.push(`${t.years} years`),t.months&&s.push(`${t.months} months`),t.weeks&&s.push(`${t.weeks} weeks`),t.days&&s.push(`${t.days} days`),t.hours&&s.push(`${t.hours} hours`),t.minutes&&s.push(`${t.minutes} minutes`),t.seconds&&s.push(`${t.seconds} seconds`),s.join(", ")}(d)),[d]);return console.log("video",p),e.jsxs(_t,{"data-testid":s||"WorkoutScreen",image:r,children:[e.jsxs("div",{children:[i&&e.jsx(Ie,{text:i}),e.jsx("div",{children:e.jsxs(Z,{children:[y.UI.CREATED,": ",P]})}),e.jsx("div",{children:e.jsxs(Z,{children:[y.UI.DURATION,": ",M]})})]}),!j&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:y.UI.NO_ACTIVE_SUBSCRIPTION}),e.jsx(U,{children:null===(I=null==y?void 0:y.UI)||void 0===I?void 0:I.NO_SUBSCRIPTION_DETAILS})]}),e.jsx("div",{children:e.jsx(_,{onClick:()=>{R(!0)},icon:"mdi:play",iconFirst:!0,disabled:!j,children:y.UI.START_WORKOUT})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("div",{children:e.jsx(_,{onClick:()=>{a&&v&&"function"==typeof v&&v(a)},icon:g?"mdi:heart":"mdi:heart-outline",disabled:!j,rounded:!0})}),e.jsx("div",{children:e.jsx(_,{onClick:()=>{a&&N&&"function"==typeof N&&N(a)},icon:A?"mdi:bookmark":"mdi:bookmark-outline",disabled:!j,rounded:!0})}),e.jsx("div",{children:e.jsx(_,{onClick:()=>{a&&f&&"function"==typeof f&&f(a)},icon:E?"mdi:battery":"mdi:battery-outline",disabled:!j,rounded:!0})}),e.jsx("div",{children:e.jsx(_,{onClick:()=>{k(0===D?2:0)},icon:2===D?"mdi:music-note-off":"mdi:music-note",disabled:!j,rounded:!0})})]}),e.jsx(U,{className:"mb-0",children:n}),e.jsxs("div",{className:"flex gap-4 flex-wrap",children:[c&&e.jsxs(Z,{children:[y.UI.LEVEL,": ",c]}),u&&e.jsxs(Z,{children:[y.UI.SECTION,": ",u]}),x&&e.jsxs(Z,{children:[y.UI.CATEGORY,": ",x]}),h&&e.jsxs(Z,{children:[y.UI.TYPE,": ",h]})]}),b&&e.jsx(e.Fragment,{children:e.jsx(Pe,{isNarrow:!0,padded:!0,children:e.jsx("div",{children:e.jsx(z,{children:null===(C=null==y?void 0:y.UI)||void 0===C?void 0:C.RELATED})})})}),O&&e.jsx("div",{children:e.jsx(Je,{options:{autoplay:!0},sources:[{src:p,type:"application/x-mpegURL"}]})})]})};Qt.displayName="WorkoutScreen";const Jt={colors:{white:"#FFFFFF",black:"#000000",primary:"#222222",secondary:"#666666",tertiary:"#EEEEEE",accent:"#1FB2A6",neutral:"#191D24",info:"#3ABFF8",success:"#36D399",warning:"#FBBD23",error:"#F87272",opacityDark10:"rgba(0, 0, 0, 0.1)",opacityDark20:"rgba(0, 0, 0, 0.2)",opacityDark30:"rgba(0, 0, 0, 0.3)",opacityDark40:"rgba(0, 0, 0, 0.4)",opacityDark50:"rgba(0, 0, 0, 0.5)",opacityDark60:"rgba(0, 0, 0, 0.6)",opacityDark70:"rgba(0, 0, 0, 0.7)",opacityDark80:"rgba(0, 0, 0, 0.8)",opacityDark90:"rgba(0, 0, 0, 0.9)",opacityLight10:"rgba(255, 255, 255, 0.1)",opacityLight20:"rgba(255, 255, 255, 0.2)",opacityLight30:"rgba(255, 255, 255, 0.3)",opacityLight40:"rgba(255, 255, 255, 0.4)",opacityLight50:"rgba(255, 255, 255, 0.5)",opacityLight60:"rgba(255, 255, 255, 0.6)",opacityLight70:"rgba(255, 255, 255, 0.7)",opacityLight80:"rgba(255, 255, 255, 0.8)",opacityLight90:"rgba(255, 255, 255, 0.9)",primary50:"#F2F2F2",primary100:"#E6E6E6",primary200:"#CCCCCC",primary300:"#B3B3B3",primary400:"#999999",primary500:"#808080",primary600:"#666666",primary700:"#4D4D4D",primary800:"#333333",primary900:"#1A1A1A",secondary50:"#FDFDFD",secondary100:"#FBFBFB",secondary200:"#F8F8F8",secondary300:"#F5F5F5",secondary400:"#F2F2F2",secondary500:"#EFEFEF",secondary600:"#ECECEC",secondary700:"#E9E9E9",secondary800:"#E6E6E6",secondary900:"#E3E3E3",tertiary50:"#F8F8F8",tertiary100:"#F1F1F1",tertiary200:"#EAEAEA",tertiary300:"#E3E3E3",tertiary400:"#DCDCDC",tertiary500:"#D5D5D5",tertiary600:"#CECECE",tertiary700:"#C7C7C7",tertiary800:"#C0C0C0",tertiary900:"#B9B9B9",accent50:"#E5F8F6",accent100:"#CCEFF0",accent200:"#B2E6E6",accent300:"#99DDDD",accent400:"#7FD4D4",accent500:"#66CBCB",accent600:"#4DB2B2",accent700:"#339999",accent800:"#1A8080",accent900:"#006666",neutral50:"#F8F8F8",neutral100:"#F1F1F1",neutral200:"#EAEAEA",neutral300:"#E3E3E3",neutral400:"#DCDCDC",neutral500:"#D5D5D5",neutral600:"#CECECE",neutral700:"#C7C7C7",neutral800:"#C0C0C0",neutral900:"#B9B9B9",info50:"#E6F9FD",info100:"#CFF3FB",info200:"#B8EDF8",info300:"#A1E7F6",info400:"#8AE1F3",info500:"#73DBF1",info600:"#5CC5DA",info700:"#469EB3",info800:"#2F788C",info900:"#195165",success50:"#E6FDEE",success100:"#CFFBDD",success200:"#B8F8CC",success300:"#A1F6BB",success400:"#8AEDAA",success500:"#73E499",success600:"#5CC482",success700:"#469E6C",success800:"#2F784F",success900:"#195133",warning50:"#FEF9E6",warning100:"#FDF3CD",warning200:"#FCECB4",warning300:"#FBDF8B",warning400:"#FAD262",warning500:"#F9C639",warning600:"#E0AD32",warning700:"#B78C27",warning800:"#8E6B1D",warning900:"#654A13",error50:"#FCE6E6",error100:"#F9CDCD",error200:"#F6B4B4",error300:"#F29999",error400:"#EF8080",error500:"#EC6666",error600:"#D95252",error700:"#B34040",error800:"#8E2E2E",error900:"#6B1B1B",grey50:"#F8F8F8",grey100:"#F1F1F1",grey200:"#EAEAEA",grey300:"#E3E3E3",grey400:"#DCDCDC",grey500:"#C0C0C0",grey600:"#A9A9A9",grey700:"#8C8C8C",grey800:"#666666",grey900:"#404040",purple50:"#ede9f4",purple100:"#c8b9de",purple200:"#ae98ce",purple300:"#8968b7",purple400:"#724ba9",purple500:"#4f1e94",purple600:"#481b87",purple700:"#381569",purple800:"#2b1151",purple900:"#210d3e"},screens:{sm:"480px",md:"768px",lg:"976px",xl:"1440px"},spacing:{px:"1px",0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",11:"2.75rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem",40:"10rem",48:"12rem",56:"14rem",64:"16rem",128:"32rem"},borderRadius:{none:"0",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"3.25rem"}],"6xl":["3.75rem",{lineHeight:"4rem"}],"7xl":["4.5rem",{lineHeight:"5rem"}],"8xl":["6rem",{lineHeight:"7rem"}],"9xl":["8rem",{lineHeight:"9rem"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},extend:{gridTemplateColumns:{headerMd:"200px auto 200px",headerSd:"125px auto 125px",headerXs:"auto 175px",searchLayout:"1fr",searchLayoutWithSidebar:"1fr 3fr"}}};function es(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ts={exports:{}},ss={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},as={exports:{}},is=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))},rs=Array.prototype.concat,ns=Array.prototype.slice,os=as.exports=function(e){for(var t=[],s=0,a=e.length;s<a;s++){var i=e[s];is(i)?t=rs.call(t,ns.call(i)):t.push(i)}return t};os.wrap=function(e){return function(){return e(os(arguments))}};var ls=as.exports,ds=ss,cs=ls,us=Object.hasOwnProperty,ms=Object.create(null);for(var ps in ds)us.call(ds,ps)&&(ms[ds[ps]]=ps);var xs=ts.exports={to:{},get:{}};function hs(e,t,s){return Math.min(Math.max(t,e),s)}function vs(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}xs.get=function(e){var t,s;switch(e.substring(0,3).toLowerCase()){case"hsl":t=xs.get.hsl(e),s="hsl";break;case"hwb":t=xs.get.hwb(e),s="hwb";break;default:t=xs.get.rgb(e),s="rgb"}return t?{model:s,value:t}:null},xs.get.rgb=function(e){if(!e)return null;var t,s,a,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],s=0;s<3;s++){var r=2*s;i[s]=parseInt(t.slice(r,r+2),16)}a&&(i[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],s=0;s<3;s++)i[s]=parseInt(t[s]+t[s],16);a&&(i[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)i[s]=parseInt(t[s+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:us.call(ds,t[1])?((i=ds[t[1]])[3]=1,i):null:null;for(s=0;s<3;s++)i[s]=Math.round(2.55*parseFloat(t[s+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(s=0;s<3;s++)i[s]=hs(i[s],0,255);return i[3]=hs(i[3],0,1),i},xs.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var s=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,hs(parseFloat(t[2]),0,100),hs(parseFloat(t[3]),0,100),hs(isNaN(s)?1:s,0,1)]}return null},xs.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var s=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,hs(parseFloat(t[2]),0,100),hs(parseFloat(t[3]),0,100),hs(isNaN(s)?1:s,0,1)]}return null},xs.to.hex=function(){var e=cs(arguments);return"#"+vs(e[0])+vs(e[1])+vs(e[2])+(e[3]<1?vs(Math.round(255*e[3])):"")},xs.to.rgb=function(){var e=cs(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},xs.to.rgb.percent=function(){var e=cs(arguments),t=Math.round(e[0]/255*100),s=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+s+"%, "+a+"%)":"rgba("+t+"%, "+s+"%, "+a+"%, "+e[3]+")"},xs.to.hsl=function(){var e=cs(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},xs.to.hwb=function(){var e=cs(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},xs.to.keyword=function(e){return ms[e.slice(0,3)]};var fs=ts.exports;const Ns=ss,gs={};for(const e of Object.keys(Ns))gs[Ns[e]]=e;const Es={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Ss=Es;for(const e of Object.keys(Es)){if(!("channels"in Es[e]))throw new Error("missing channels property: "+e);if(!("labels"in Es[e]))throw new Error("missing channel labels property: "+e);if(Es[e].labels.length!==Es[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:s}=Es[e];delete Es[e].channels,delete Es[e].labels,Object.defineProperty(Es[e],"channels",{value:t}),Object.defineProperty(Es[e],"labels",{value:s})}Es.rgb.hsl=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.min(t,s,a),r=Math.max(t,s,a),n=r-i;let o,l;r===i?o=0:t===r?o=(s-a)/n:s===r?o=2+(a-t)/n:a===r&&(o=4+(t-s)/n),o=Math.min(60*o,360),o<0&&(o+=360);const d=(i+r)/2;return l=r===i?0:d<=.5?n/(r+i):n/(2-r-i),[o,100*l,100*d]},Es.rgb.hsv=function(e){let t,s,a,i,r;const n=e[0]/255,o=e[1]/255,l=e[2]/255,d=Math.max(n,o,l),c=d-Math.min(n,o,l),u=function(e){return(d-e)/6/c+.5};return 0===c?(i=0,r=0):(r=c/d,t=u(n),s=u(o),a=u(l),n===d?i=a-s:o===d?i=1/3+t-a:l===d&&(i=2/3+s-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*r,100*d]},Es.rgb.hwb=function(e){const t=e[0],s=e[1];let a=e[2];const i=Es.rgb.hsl(e)[0],r=1/255*Math.min(t,Math.min(s,a));return a=1-1/255*Math.max(t,Math.max(s,a)),[i,100*r,100*a]},Es.rgb.cmyk=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.min(1-t,1-s,1-a);return[100*((1-t-i)/(1-i)||0),100*((1-s-i)/(1-i)||0),100*((1-a-i)/(1-i)||0),100*i]},Es.rgb.keyword=function(e){const t=gs[e];if(t)return t;let s,a=1/0;for(const t of Object.keys(Ns)){const n=(r=Ns[t],((i=e)[0]-r[0])**2+(i[1]-r[1])**2+(i[2]-r[2])**2);n<a&&(a=n,s=t)}var i,r;return s},Es.keyword.rgb=function(e){return Ns[e]},Es.rgb.xyz=function(e){let t=e[0]/255,s=e[1]/255,a=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;return[100*(.4124*t+.3576*s+.1805*a),100*(.2126*t+.7152*s+.0722*a),100*(.0193*t+.1192*s+.9505*a)]},Es.rgb.lab=function(e){const t=Es.rgb.xyz(e);let s=t[0],a=t[1],i=t[2];s/=95.047,a/=100,i/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*a-16,500*(s-a),200*(a-i)]},Es.hsl.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;let i,r,n;if(0===s)return n=255*a,[n,n,n];i=a<.5?a*(1+s):a+s-a*s;const o=2*a-i,l=[0,0,0];for(let e=0;e<3;e++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,n=6*r<1?o+6*(i-o)*r:2*r<1?i:3*r<2?o+(i-o)*(2/3-r)*6:o,l[e]=255*n;return l},Es.hsl.hsv=function(e){const t=e[0];let s=e[1]/100,a=e[2]/100,i=s;const r=Math.max(a,.01);a*=2,s*=a<=1?a:2-a,i*=r<=1?r:2-r;return[t,100*(0===a?2*i/(r+i):2*s/(a+s)),100*((a+s)/2)]},Es.hsv.rgb=function(e){const t=e[0]/60,s=e[1]/100;let a=e[2]/100;const i=Math.floor(t)%6,r=t-Math.floor(t),n=255*a*(1-s),o=255*a*(1-s*r),l=255*a*(1-s*(1-r));switch(a*=255,i){case 0:return[a,l,n];case 1:return[o,a,n];case 2:return[n,a,l];case 3:return[n,o,a];case 4:return[l,n,a];case 5:return[a,n,o]}},Es.hsv.hsl=function(e){const t=e[0],s=e[1]/100,a=e[2]/100,i=Math.max(a,.01);let r,n;n=(2-s)*a;const o=(2-s)*i;return r=s*i,r/=o<=1?o:2-o,r=r||0,n/=2,[t,100*r,100*n]},Es.hwb.rgb=function(e){const t=e[0]/360;let s=e[1]/100,a=e[2]/100;const i=s+a;let r;i>1&&(s/=i,a/=i);const n=Math.floor(6*t),o=1-a;r=6*t-n,1&n&&(r=1-r);const l=s+r*(o-s);let d,c,u;switch(n){default:case 6:case 0:d=o,c=l,u=s;break;case 1:d=l,c=o,u=s;break;case 2:d=s,c=o,u=l;break;case 3:d=s,c=l,u=o;break;case 4:d=l,c=s,u=o;break;case 5:d=o,c=s,u=l}return[255*d,255*c,255*u]},Es.cmyk.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,s*(1-i)+i)),255*(1-Math.min(1,a*(1-i)+i))]},Es.xyz.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100;let i,r,n;return i=3.2406*t+-1.5372*s+-.4986*a,r=-.9689*t+1.8758*s+.0415*a,n=.0557*t+-.204*s+1.057*a,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*i,255*r,255*n]},Es.xyz.lab=function(e){let t=e[0],s=e[1],a=e[2];t/=95.047,s/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;return[116*s-16,500*(t-s),200*(s-a)]},Es.lab.xyz=function(e){let t,s,a;s=(e[0]+16)/116,t=e[1]/500+s,a=s-e[2]/200;const i=s**3,r=t**3,n=a**3;return s=i>.008856?i:(s-16/116)/7.787,t=r>.008856?r:(t-16/116)/7.787,a=n>.008856?n:(a-16/116)/7.787,t*=95.047,s*=100,a*=108.883,[t,s,a]},Es.lab.lch=function(e){const t=e[0],s=e[1],a=e[2];let i;i=360*Math.atan2(a,s)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(s*s+a*a),i]},Es.lch.lab=function(e){const t=e[0],s=e[1],a=e[2]/360*2*Math.PI;return[t,s*Math.cos(a),s*Math.sin(a)]},Es.rgb.ansi16=function(e,t=null){const[s,a,i]=e;let r=null===t?Es.rgb.hsv(e)[2]:t;if(r=Math.round(r/50),0===r)return 30;let n=30+(Math.round(i/255)<<2|Math.round(a/255)<<1|Math.round(s/255));return 2===r&&(n+=60),n},Es.hsv.ansi16=function(e){return Es.rgb.ansi16(Es.hsv.rgb(e),e[2])},Es.rgb.ansi256=function(e){const t=e[0],s=e[1],a=e[2];if(t===s&&s===a)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(s/255*5)+Math.round(a/255*5)},Es.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const s=.5*(1+~~(e>50));return[(1&t)*s*255,(t>>1&1)*s*255,(t>>2&1)*s*255]},Es.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Es.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Es.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let s=t[0];3===t[0].length&&(s=s.split("").map((e=>e+e)).join(""));const a=parseInt(s,16);return[a>>16&255,a>>8&255,255&a]},Es.rgb.hcg=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.max(Math.max(t,s),a),r=Math.min(Math.min(t,s),a),n=i-r;let o,l;return o=n<1?r/(1-n):0,l=n<=0?0:i===t?(s-a)/n%6:i===s?2+(a-t)/n:4+(t-s)/n,l/=6,l%=1,[360*l,100*n,100*o]},Es.hsl.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=s<.5?2*t*s:2*t*(1-s);let i=0;return a<1&&(i=(s-.5*a)/(1-a)),[e[0],100*a,100*i]},Es.hsv.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=t*s;let i=0;return a<1&&(i=(s-a)/(1-a)),[e[0],100*a,100*i]},Es.hcg.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;if(0===s)return[255*a,255*a,255*a];const i=[0,0,0],r=t%1*6,n=r%1,o=1-n;let l=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=n,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=n;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=n,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-s)*a,[255*(s*i[0]+l),255*(s*i[1]+l),255*(s*i[2]+l)]},Es.hcg.hsv=function(e){const t=e[1]/100,s=t+e[2]/100*(1-t);let a=0;return s>0&&(a=t/s),[e[0],100*a,100*s]},Es.hcg.hsl=function(e){const t=e[1]/100,s=e[2]/100*(1-t)+.5*t;let a=0;return s>0&&s<.5?a=t/(2*s):s>=.5&&s<1&&(a=t/(2*(1-s))),[e[0],100*a,100*s]},Es.hcg.hwb=function(e){const t=e[1]/100,s=t+e[2]/100*(1-t);return[e[0],100*(s-t),100*(1-s)]},Es.hwb.hcg=function(e){const t=e[1]/100,s=1-e[2]/100,a=s-t;let i=0;return a<1&&(i=(s-a)/(1-a)),[e[0],100*a,100*i]},Es.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Es.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Es.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Es.gray.hsl=function(e){return[0,0,e[0]]},Es.gray.hsv=Es.gray.hsl,Es.gray.hwb=function(e){return[0,100,e[0]]},Es.gray.cmyk=function(e){return[0,0,0,e[0]]},Es.gray.lab=function(e){return[e[0],0,0]},Es.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),s=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(s.length)+s},Es.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const As=Ss;function bs(e){const t=function(){const e={},t=Object.keys(As);for(let s=t.length,a=0;a<s;a++)e[t[a]]={distance:-1,parent:null};return e}(),s=[e];for(t[e].distance=0;s.length;){const e=s.pop(),a=Object.keys(As[e]);for(let i=a.length,r=0;r<i;r++){const i=a[r],n=t[i];-1===n.distance&&(n.distance=t[e].distance+1,n.parent=e,s.unshift(i))}}return t}function Ts(e,t){return function(s){return t(e(s))}}function js(e,t){const s=[t[e].parent,e];let a=As[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)s.unshift(t[i].parent),a=Ts(As[t[i].parent][i],a),i=t[i].parent;return a.conversion=s,a}const Is=Ss,Cs=function(e){const t=bs(e),s={},a=Object.keys(t);for(let e=a.length,i=0;i<e;i++){const e=a[i];null!==t[e].parent&&(s[e]=js(e,t))}return s},ys={};Object.keys(Is).forEach((e=>{ys[e]={},Object.defineProperty(ys[e],"channels",{value:Is[e].channels}),Object.defineProperty(ys[e],"labels",{value:Is[e].labels});const t=Cs(e);Object.keys(t).forEach((s=>{const a=t[s];ys[e][s]=function(e){const t=function(...t){const s=t[0];if(null==s)return s;s.length>1&&(t=s);const a=e(t);if("object"==typeof a)for(let e=a.length,t=0;t<e;t++)a[t]=Math.round(a[t]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}(a),ys[e][s].raw=function(e){const t=function(...t){const s=t[0];return null==s?s:(s.length>1&&(t=s),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))}));const Os=fs,_s=ys,Rs=["keyword","gray","hex"],Ls={};for(const e of Object.keys(_s))Ls[[..._s[e].labels].sort().join("")]=e;const ws={};function Ds(e,t){if(!(this instanceof Ds))return new Ds(e,t);if(t&&t in Rs&&(t=null),t&&!(t in _s))throw new Error("Unknown model: "+t);let s,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Ds)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=Os.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,a=_s[this.model].channels,this.color=t.value.slice(0,a),this.valpha="number"==typeof t.value[a]?t.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=_s[this.model].channels;const s=Array.prototype.slice.call(e,0,a);this.color=Fs(s,a),this.valpha="number"==typeof e[a]?e[a]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const a=t.sort().join("");if(!(a in Ls))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Ls[a];const{labels:i}=_s[this.model],r=[];for(s=0;s<i.length;s++)r.push(e[i[s]]);this.color=Fs(r)}if(ws[this.model])for(a=_s[this.model].channels,s=0;s<a;s++){const e=ws[this.model][s];e&&(this.color[s]=e(this.color[s]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Ds.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Os.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const s=1===t.valpha?t.color:[...t.color,this.valpha];return Os.to[t.model](s)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),s=1===t.valpha?t.color:[...t.color,this.valpha];return Os.to.rgb.percent(s)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=_s[this.model],{labels:s}=_s[this.model];for(let a=0;a<t;a++)e[s[a]]=this.color[a];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new Ds([...this.color.map(ks(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new Ds([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Ps("rgb",0,Ms(255)),green:Ps("rgb",1,Ms(255)),blue:Ps("rgb",2,Ms(255)),hue:Ps(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:Ps("hsl",1,Ms(100)),lightness:Ps("hsl",2,Ms(100)),saturationv:Ps("hsv",1,Ms(100)),value:Ps("hsv",2,Ms(100)),chroma:Ps("hcg",1,Ms(100)),gray:Ps("hcg",2,Ms(100)),white:Ps("hwb",1,Ms(100)),wblack:Ps("hwb",2,Ms(100)),cyan:Ps("cmyk",0,Ms(100)),magenta:Ps("cmyk",1,Ms(100)),yellow:Ps("cmyk",2,Ms(100)),black:Ps("cmyk",3,Ms(100)),x:Ps("xyz",0,Ms(95.047)),y:Ps("xyz",1,Ms(100)),z:Ps("xyz",2,Ms(108.833)),l:Ps("lab",0,Ms(100)),a:Ps("lab",1),b:Ps("lab",2),keyword(e){return void 0!==e?new Ds(e):_s[this.model].keyword(this.color)},hex(e){return void 0!==e?new Ds(e):Os.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new Ds(e);const t=this.rgb().round().color;let s=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===s.length&&(s="0"+s),Os.to.hex(t)+s},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[s,a]of e.entries()){const e=a/255;t[s]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),s=e.luminosity();return t>s?(t+.05)/(s+.05):(s+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return Ds.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let s=t.color[0];return s=(s+e)%360,s=s<0?360+s:s,t.color[0]=s,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const s=e.rgb(),a=this.rgb(),i=void 0===t?.5:t,r=2*i-1,n=s.alpha()-a.alpha(),o=((r*n==-1?r:(r+n)/(1+r*n))+1)/2,l=1-o;return Ds.rgb(o*s.red()+l*a.red(),o*s.green()+l*a.green(),o*s.blue()+l*a.blue(),s.alpha()*i+a.alpha()*(1-i))}};for(const e of Object.keys(_s)){if(Rs.includes(e))continue;const{channels:t}=_s[e];Ds.prototype[e]=function(...t){return this.model===e?new Ds(this):t.length>0?new Ds(t,e):new Ds([...(s=_s[this.model][e].raw(this.color),Array.isArray(s)?s:[s]),this.valpha],e);var s},Ds[e]=function(...s){let a=s[0];return"number"==typeof a&&(a=Fs(s,t)),new Ds(a,e)}}function ks(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function Ps(e,t,s){e=Array.isArray(e)?e:[e];for(const a of e)(ws[a]||(ws[a]=[]))[t]=s;return e=e[0],function(a){let i;return void 0!==a?(s&&(a=s(a)),i=this[e](),i.color[t]=a,i):(i=this[e]().color[t],s&&(i=s(i)),i)}}function Ms(e){return function(t){return Math.max(0,Math.min(e,t))}}function Fs(e,t){for(let s=0;s<t;s++)"number"!=typeof e[s]&&(e[s]=0);return e}var Bs=es(Ds);const Us=(e,t)=>Bs(e).darken(t).rgb().string(),Gs=Object.assign({inherit:"inherit",transparent:"transparent",black:Jt.colors.black,white:Jt.colors.white,bodyBackground:Jt.colors.white,darkBodyBackground:Jt.colors.primary,bodyText:Jt.colors.primary,bodyTextInverted:Jt.colors.primary50,darkBodyText:Jt.colors.primary50,display:Jt.colors.black,darkDisplay:Jt.colors.white},Object.assign({},...Object.keys(Jt.colors).map((e=>{const t=Jt.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,Bs(s).lighten(a).rgb().string()),darker:Us(t,.1)}};var s,a})))),Hs=Object.assign(Object.assign({},Jt),{colors:Object.assign(Object.assign({},Jt.colors),{primary:"#001e5a",secondary:"#fcb700",tertiary:"#a3b0ca",quaternary:"#0f71b1",primary50:"#e6e9ef",primary100:"#b0b9cc",primary200:"#8a98b3",primary300:"#546890",primary400:"#334b7b",primary500:"#001e5a",primary600:"#001b52",primary700:"#001540",primary800:"#001132",primary900:"#000d26",secondary50:"#fff8e6",secondary100:"#fee9b0",secondary200:"#fede8a",secondary300:"#fdcf54",secondary400:"#fdc533",secondary500:"#fcb700",secondary600:"#e5a700",secondary700:"#b38200",secondary800:"#8b6500",secondary900:"#6a4d00",tertiary50:"#f6f7fa",tertiary100:"#e2e7ef",tertiary200:"#d5dbe7",tertiary300:"#c1cadb",tertiary400:"#b5c0d5",tertiary500:"#a3b0ca",tertiary600:"#94a0b8",tertiary700:"#747d8f",tertiary800:"#5a616f",tertiary900:"#444a55",quaternary50:"#e7f1f7",quaternary100:"#b5d3e7",quaternary200:"#91bedb",quaternary300:"#5ea0cb",quaternary400:"#3f8dc1",quaternary500:"#0f71b1",quaternary600:"#0e67a1",quaternary700:"#0b507e",quaternary800:"#083e61",quaternary900:"#062f4a"}),borderRadius:Object.assign({},Jt.borderRadius),fontWeight:Object.assign(Object.assign({},Jt.fontWeight),{light:"300",normal:"400",bold:"700"})}),Ys=(e,t)=>Bs(e).darken(t).rgb().string(),Vs=Object.assign(Object.assign(Object.assign({},Gs),{bodyBackground:Hs.colors.primary700,darkBodyBackground:Hs.colors.primary800,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(Hs.colors).map((e=>{const t=Hs.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,Bs(s).lighten(a).rgb().string()),darker:Ys(t,.1)}};var s,a})))),Ws=Object.assign(Object.assign({},{sans:["sans-serif"],serif:["serif"],mono:["monospace"],display:["monospace","sans-serif"],body:["var(--font-body)"],heading:["var(--font-heading)"]}),{body:["ProximaNova-Regular","sans-serif"],heading:["ProximaNova-Bold","sans-serif"]}),zs=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),qs={colors:Object.assign({},Vs),fontFamily:Object.assign({},Ws),fontSize:Object.assign({},null==Hs?void 0:Hs.fontSize),fontWeight:Object.assign({},null==Hs?void 0:Hs.fontWeight),buttons:Object.assign({},zs),screens:Object.assign({},null==Hs?void 0:Hs.screens),borderRadius:Object.assign({},null==Hs?void 0:Hs.borderRadius),spacing:Object.assign({},null==Hs?void 0:Hs.spacing),extend:Object.assign({},null==Hs?void 0:Hs.extend)};exports.AccountScreen=Rt,exports.AnimationCounter=b,exports.AnimationSet1=Fe,exports.AppContext=ve,exports.AppProvider=ve,exports.AuthScreen=Lt,exports.Authenticator=ze,exports.Avatar=oe,exports.Blockquote=j,exports.Button=_,exports.ButtonGroup=le,exports.Card=je,exports.CardGrid=at,exports.CardGridScreen=wt,exports.Carousel=Ze,exports.CatalogueScreen=Dt,exports.ChallengeLibraryScreen=kt,exports.ChallengeScreen=Ft,exports.Checkbox=w,exports.Chip=G,exports.Container=Pe,exports.ContentPageLayout=rt,exports.ContentRowsLayout=ot,exports.ContentScreen=Bt,exports.Copy=U,exports.DashboardScreen=Ut,exports.DisplayHeading=Ie,exports.FAQScreen=Yt,exports.FileUpload=H,exports.Footer=lt,exports.ForgotPasswordForm=We,exports.Form=Ce,exports.FormField=_e,exports.FormSelect=Oe,exports.Header=dt,exports.Heading=z,exports.Hero=Me,exports.HomeScreen=Vt,exports.Hr=q,exports.HtmlContent=me,exports.Icon=T,exports.Image=K,exports.Label=Z,exports.Link=D,exports.List=Q,exports.ListItem=ee,exports.Loader=O,exports.LoginForm=Ye,exports.Logo=J,exports.Menu=De,exports.MenuScreen=Wt,exports.MultiCheckboxFacet=Ct,exports.Notice=te,exports.OTPInput=ct,exports.PanelCards=Xe,exports.PanelFeature=Qe,exports.PanelHero=et,exports.PanelProduct=tt,exports.PanelVideo=st,exports.ProfileForm=Ot,exports.ProfileScreen=zt,exports.Radio=se,exports.RegisterForm=Ve,exports.ResetPasswordForm=yt,exports.STRINGS_EN=ne,exports.ScheduleScreen=Zt,exports.Search=Tt,exports.Share=Re,exports.SingleLinksFacet=It,exports.SingleSelectFacet=jt,exports.SubscriptionScreen=Xt,exports.Switch=ae,exports.Tabs=Le,exports.TextInput=re,exports.ThemeContext=ge,exports.ThemeProvider=({children:t,theme:s})=>e.jsx(ge.Provider,{value:s,children:t}),exports.Video=Je,exports.VisitUs=we,exports.WorkoutScreen=Qt,exports.defaultTheme=Ne,exports.theme=qs,exports.useLanguage=fe,exports.useTheme=function(){return t.useContext(ge)};
16
+ function L(e,t){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(s[a[i]]=e[a[i]])}return s}function w(e,t,s,a){return new(s||(s=Promise))((function(t,i){function r(e){try{o(a.next(e))}catch(e){i(e)}}function n(e){try{o(a.throw(e))}catch(e){i(e)}}function o(e){var a;e.done?t(e.value):(a=e.value,a instanceof s?a:new s((function(e){e(a)}))).then(r,n)}o((a=a.apply(e,[])).next())}))}R.displayName="Button";const D=t.forwardRef((function(t,a){var{id:i,label:r,required:n,className:o,disabled:l}=t,d=L(t,["id","label","required","className","disabled"]);return e.jsxs("div",{"data-testid":"Checkbox",className:s("flex items-center",o),children:[e.jsxs("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e.jsx("input",Object.assign({id:i,ref:a,disabled:l,type:"checkbox",className:"form-item checkbox m-0 appearance-none peer h-full w-full shrink-0 focus:ring-2",required:n},d)),e.jsx("span",{className:"absolute transition-opacity opacity-0 pointer-events-none peer-checked:opacity-100 w-full h-full flex items-center justify-center top-0 left-0",children:e.jsx(j,{name:"mdi:check-bold",size:12})})]}),r&&e.jsx("label",{className:"label pl-2 leading-none text-sm text-bodyText dark:text-darkBodyText",htmlFor:i,children:r})]})}));D.displayName="Checkbox";const k=({href:a,children:i,onClick:r=(()=>{}),history:n,target:o,id:l,testID:d,className:c,prefetch:u,hideExternalIcon:m=!1})=>{const p=s("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",c);if(!m&&a&&a.startsWith("http"))return e.jsxs("span",{children:[e.jsx("a",{"data-testid":d||l||"Link",className:s(p),href:a,target:"_blank",rel:"noopener noreferrer",children:i}),e.jsx(j,{name:"mdi:external-link",className:"inline-block w-4 h-4 ml-1 mb-0"})]});try{const e=require("next/link").default;if(!e)throw new Error("Next.js Image not found");return t.createElement(e,{href:a||"#",onClick:r,"data-testid":d||l||"Link",className:p,target:o||"_self",prefetch:u||!1},i)}catch(t){const s=e=>{r?r(e):!0!==e.defaultPrevented&&n&&a&&(e.preventDefault(),n.push(a))};return e.jsx("a",{"data-testid":d||l||"Link",className:p,href:a,onClick:s,target:o,children:i})}};var P,M,F,B,U;k.displayName="Link",exports.COPY_ALIGN=void 0,(P=exports.COPY_ALIGN||(exports.COPY_ALIGN={})).LEFT="left",P.CENTER="center",P.RIGHT="right",P.JUSTIFY="justify",P.NOWRAP="nowrap",exports.COPY_TRANSFORM=void 0,(M=exports.COPY_TRANSFORM||(exports.COPY_TRANSFORM={})).LOWERCASE="lowercase",M.UPPERCASE="uppercase",M.CAPITALIZE="capitalize",exports.COPY_CONTEXTUAL=void 0,(F=exports.COPY_CONTEXTUAL||(exports.COPY_CONTEXTUAL={})).INVERTED="inverted",F.MUTED="muted",exports.COPY_SIZE=void 0,(B=exports.COPY_SIZE||(exports.COPY_SIZE={})).SMALL="small",B.MEDIUM="medium",B.LARGE="large",B.INTRO="intro",exports.COPY_TAG=void 0,(U=exports.COPY_TAG||(exports.COPY_TAG={})).P="p",U.SPAN="span",U.DIV="div",U.SMALL="small";const G=({children:t,as:a=exports.COPY_TAG.P,size:i,bold:n,align:o,transform:l,underlined:d,id:c,className:u,testID:m})=>{const p=s({[`text-${o}`]:o},{"font-bold":n},{"text-base mb-3 mt-0":"p"===a},{"text-sm":"small"===a},{"text-sm":"small"===i},{"text-base":"medium"===i},{"text-lg":"large"===i},{"text-2xl":"intro"===i},{underline:d},l,u);return e.jsx(a,{"data-testid":m||c||"Copy",className:r.twMerge(p),children:t})};G.displayName="Copy";const H=({testID:a,text:i,outline:n,rounded:o,variant:l,size:d="medium",icon:c,iconFirst:u,onClick:m})=>{const p=t.useMemo((()=>{switch(d){case"small":return{iconSize:16,copySize:exports.COPY_SIZE.SMALL};case"medium":default:return{iconSize:20,copySize:exports.COPY_SIZE.MEDIUM};case"large":return{iconSize:28,copySize:exports.COPY_SIZE.LARGE}}}),[d]),x=r.twMerge(s("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":n},{"rounded-full":o},{"flex-row-reverse":u},{"bg-primary text-white":"primary"===l},{"bg-secondary text-white":"secondary"===l},{"bg-tertiary text-white":"tertiary"===l},{"bg-info text-white":"info"===l},{"bg-success text-white":"success"===l},{"bg-warning text-white":"warning"===l},{"bg-error text-white":"error"===l},{"py-1 px-3":"small"===d},{"py-2 px-4":"medium"===d},{"py-3 px-6":"large"===d}));return m&&"function"==typeof m?e.jsxs(k,{"data-testid":a||"Chip",className:x,onClick:m,children:[e.jsx(G,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),c&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(j,{name:c,size:p.iconSize})})]}):e.jsxs("div",{"data-testid":a||"Chip",className:x,children:[e.jsx(G,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),c&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(j,{name:c,size:p.iconSize})})]})};H.displayName="Chip";const Y=t.forwardRef((function(t,a){var{id:i,name:r,required:n,disabled:o,className:l,onChangeCallback:d,onChange:c}=t,u=L(t,["id","name","required","disabled","className","onChangeCallback","onChange"]);return e.jsx("div",{"data-testid":"FileUpload",className:l,children:e.jsx("input",Object.assign({ref:a,className:s("form-item text-input file-upload p-0 relative m-0 min-w-0 flex-auto appearance-none block box-border bg-clip-padding file:p-3 file:cursor-pointer file:mr-3 file:overflow-hidden cursor-pointer file:border-0 file:rounded-none file:border-solid file:border-inherit file:transition file:duration-150 file:ease-in-out file:[border-inline-end-width:1px] file:[margin-inline-end:0.75rem] "),"aria-describedby":r,type:"file",disabled:o,required:n,name:r,id:i,onChange:e=>{d&&"function"==typeof d&&d(e),c&&"function"==typeof c&&c({target:{value:e.target.value,name:r}})}},u))})}));var V,W,z;Y.displayName="FileUpload",exports.HEADING_TAGS=void 0,(V=exports.HEADING_TAGS||(exports.HEADING_TAGS={})).H1="h1",V.H2="h2",V.H3="h3",V.H4="h4",V.H5="h5",exports.HEADING_ALIGN=void 0,(W=exports.HEADING_ALIGN||(exports.HEADING_ALIGN={})).LEFT="left",W.CENTER="center",W.RIGHT="right",W.JUSTIFY="justify",W.NOWRAP="nowrap",exports.HEADING_TRANSFORM=void 0,(z=exports.HEADING_TRANSFORM||(exports.HEADING_TRANSFORM={})).LOWERCASE="lowercase",z.UPPERCASE="uppercase",z.CAPITALIZE="capitalize",z.NORMAL_CASE="normal-case";const q=({children:t,tag:a=exports.HEADING_TAGS.H2,transform:i,align:r,id:n,testID:o,flush:l,className:d,singleLine:c,bold:u=!0})=>{const m=(()=>{switch(a){case"h1":return"text-3xl md:text-4xl lg:text-5xl";case"h2":return"text-3xl md:text-4xl lg:text-4xl";case"h3":return"text-xl md:text-2xl lg:text-2xl";case"h4":return"text-lg md:text-lg lg:text-xl";case"h5":return"text-base md:text-base lg:text-lg";default:return"text-2xl md:text-2xl lg:text-4xl"}})(),p=a,x=s(`m-0 p-0 font-heading ${m}`,{"font-bold":u},{[`text-${r}`]:r},{"mb-2":!l},{"m-0":l},{"whitespace-nowrap text-ellipsis overflow-hidden":c},i,d);return e.jsx(p,{"data-testid":o||n||"Heading",className:x,children:t})};q.displayName="Heading";const K=({size:t="small"})=>e.jsx("hr",{className:s("border-0 border-b border-darkBodyText dark:border-darkBodyText",{"mt-4 mb-4":"small"===t,"mt-8 mb-8":"medium"===t,"mt-16 mb-16 ":"large"===t})});K.displayName="Hr";const Z=a=>{var{src:i,alt:n,title:o,caption:l,figure:d=!1,onLoad:c,id:u,className:m,sizes:p="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:x}=a,h=L(a,["src","alt","title","caption","figure","onLoad","id","className","sizes","testID"]);try{const e=require("next/image").default;if(!e)throw new Error("Next.js Image not found");const s=!h.width,a=s?{sizes:p}:{};return t.createElement(e,Object.assign(Object.assign({src:i,alt:n,title:o,fill:s,onLoad:c,className:m},a),h))}catch(t){const a=s("m-0"),p=r.twMerge(s("w-full h-full",m));return d||l?e.jsxs("figure",{"data-testid":x||u||"Image",className:a,children:[e.jsx("img",{onLoad:c,src:i,alt:n,title:o,className:p}),l&&e.jsx("figcaption",{children:l})]}):e.jsx("img",{"data-testid":x||u||"Image",onLoad:c,src:i,alt:n,title:o,className:p})}};Z.displayName="Image";const $=({children:t,id:a,transform:i,className:n})=>e.jsx("label",{"data-testid":"Label",className:r.twMerge(s("label mb-2 text-bodyText dark:text-darkBodyText",i,n)),htmlFor:a,children:t});var X,Q;$.displayName="Label",exports.Variants=void 0,(X=exports.Variants||(exports.Variants={})).UNSTYLED="unstyled",X.INLINE="inline",X.SMALL="small",X.LARGE="large",exports.ListTag=void 0,(Q=exports.ListTag||(exports.ListTag={})).OL="ol",Q.UL="ul",Q.DL="dl",Q.DIV="div",Q.DT="dt",Q.DD="dd",Q.LI="li";const J=({variants:t,children:a,as:i=exports.ListTag.UL,id:r,testID:n,className:o})=>{const l=t?t.map((e=>`list--${e}`)):null,d=i;return e.jsx(d,{"data-testid":n||r||"List",className:s(l,o),children:a})};J.displayName="List";const ee=({testID:t,logo:a,className:i,aspectRatioClass:r="aspect-[1/1]"})=>e.jsx("div",{"data-testid":t||"Logo",className:s("relative w-full",r,i),children:e.jsx(Z,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});ee.displayName="Logo";const te=({onClick:t,title:a,icon:i,children:r,as:n="li",id:o,testID:l,className:d})=>e.jsxs(n,{"data-testid":l||o||"ListItem",className:s({"list-item":"div"!==n},d),children:[t&&e.jsxs(R,{variant:exports.BTN_VARIANTS.LINK,onClick:t,children:[e.jsxs("div",{className:"",children:[i&&e.jsx("div",{children:e.jsx(j,{name:i,size:24})}),a&&e.jsx("div",{children:e.jsx(q,{flush:!0,tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),r&&e.jsx("div",{children:r})]}),e.jsx("div",{children:e.jsx(j,{name:"mdi:chevron-right",size:24})})]}),!t&&e.jsx("div",{className:"",children:r&&e.jsx("div",{children:r})})]});te.displayName="ListItem";const se=({id:t,testID:a,title:i,text:r,icon:n,type:o,onCloseCallback:l,onClickCallback:d,actionText:c})=>{const u=s("p-4 rounded relative",{"bg-info text-white":"info"===o,"bg-success text-white":"success"===o,"bg-warning text-black":"warning"===o,"bg-error text-white":"error"===o});return e.jsx("div",{"data-testid":a||t||"Notice",className:u,children:e.jsxs("div",{className:"flex gap-2",children:[n&&e.jsx("div",{className:"mr-2",children:e.jsx(j,{name:n})}),e.jsxs("div",{children:[i&&e.jsx(q,{tag:exports.HEADING_TAGS.H3,children:i}),e.jsx(G,{className:"mb-0",children:r})]}),d&&c&&e.jsx("div",{className:"ml-auto flex items-end",children:e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:d,"aria-label":"Action",size:exports.BTN_SIZES.SMALL,children:c})}),l&&e.jsx("div",{className:"absolute top-2 right-4",children:e.jsx(R,{variant:exports.BTN_VARIANTS.LINK,icon:"mdi:close",onClick:l,"aria-label":"Close"})})]})})};se.displayName="Notice";const ae=t.forwardRef((function(t,a){var{name:i,required:r,className:n,options:o}=t,l=L(t,["name","required","className","options"]);return e.jsx("div",{"data-testid":"Radio",className:s("flex items-center",n),children:e.jsx("div",{className:s("flex flex-col gap-2",n),children:null==o?void 0:o.map((t=>{var s;const n=(null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.toString())||void 0;return e.jsxs("div",{className:"flex items-center relative",children:[e.jsxs("div",{className:"relative flex items-center",children:[e.jsx("input",Object.assign({ref:a,name:i,type:"radio",required:r,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4"},l,{id:n,value:n})),e.jsx("div",{className:"form-icon opacity-0 peer-checked:opacity-100 absolute w-4 h-4 flex items-center justify-center top-0 left-0 pointer-events-none",children:e.jsx(j,{name:"mdi:circle",size:12})})]}),e.jsx("label",{className:"label pl-2 leading-none",htmlFor:n,children:t.label})]},n)}))})})}));ae.displayName="Radio";const ie=t.forwardRef((function(t,a){var{id:i,name:r,required:n,disabled:o,className:l}=t,d=L(t,["id","name","required","disabled","className"]);return e.jsxs("label",{"data-testid":"Switch",className:s("inline-flex items-center cursor-pointer",l),children:[e.jsx("input",Object.assign({ref:a,id:i,name:r,type:"checkbox",value:"",className:"sr-only peer",disabled:o,required:n},d)),e.jsx("div",{className:"form-item switch peer-focus:ring-info dark:peer-focus:ring-info relative w-11 h-6 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[1px] after:start-[1px] after:bg-white after:border after:rounded-full after:h-5 after:w-5 after:transition-all transition-all"})]})}));var re;ie.displayName="Switch",function(e){e.TEXT="text",e.PASSWORD="password",e.EMAIL="email",e.NUMBER="number",e.TEL="tel",e.URL="url",e.SEARCH="search",e.DATE="date",e.TIME="time",e.DATETIME="datetime-local",e.MONTH="month",e.WEEK="week",e.FILE="file",e.TEXTAREA="textarea",e.HIDDEN="hidden"}(re||(re={}));const ne=t.forwardRef((function(a,i){var{type:r=re.TEXT,required:n=!1,className:o,onChange:l,placeholder:d,icon:c,disabled:u=!1,name:m,autoComplete:p}=a,x=L(a,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);t.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const h="date"===r?"dd/mm/yyyy".toUpperCase():d;return r===re.TEXTAREA?e.jsx("div",{"data-testid":"TextInput",className:"relative",children:e.jsx("textarea",Object.assign({ref:i,id:m,autoComplete:m,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,rows:4,className:s("form-item text-input resize-none",o)},x))}):e.jsxs("div",{"data-testid":"TextInput",className:"relative",children:[c&&e.jsx("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e.jsx(j,{name:c})}),e.jsx("input",Object.assign({ref:i,id:m,type:r,autoComplete:p,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,className:s("form-item text-input",{"pl-12":c},o)},x))]})}));ne.displayName="TextInput";const oe={GLOBAL:{SCREENS:{ACCOUNT:{TITLE:"Account"},CATALOGUE_LIST:{TITLE:"Catalogue"},CHALLENGE:{TITLE:"Challenge",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",CLICK_TO_ENTER:"Click the buy button below to enter the challenge.",PAYMENT_NOTE:"Please note we automatically take payment from the registered payment option saved on your profile."},CHALLENGES_LIST:{TITLE:"Challenges"},DASHBOARD:{TITLE:"Dashboard"},LIVE_SCHEDULE:{TITLE:"Live"},LOGIN:{TITLE:"Login"},REGISTER:{TITLE:"Register"},PROFILE:{TITLE:"Profile"},SUBSCRIPTION:{TITLE:"Subscription"},WORKOUT:{TITLE:"Workout"},FORGOT_PASSWORD:{TITLE:"Forgot Password"},RESET_PASSWORD:{TITLE:"Reset Password"},HOME:{TITLE:"Home"},CATALOGUE:{TITLE:"Catalogue"},CHALLENGES:{TITLE:"Challenges"},LIVE:{TITLE:"Live"},SCHEDULE:{TITLE:"Schedule"},SETTINGS:{TITLE:"Settings"},HELP:{TITLE:"Help"},LEGAL_INFO:{TITLE:"Legal & Information"},CONTENT:{TITLE:"Content"},FAVOURITES:{TITLE:"Favourites"}}},FORMS:{LOGIN_FORM:{TITLE:"Login",SUBMIT:"Login",FORGOT_PASSWORD:"Forgot password?",REGISTER:"Register",EMAIL:"Email",PASSWORD:"Password"},REGISTER_FORM:{TITLE:"Register",SUBMIT:"Register",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},FORGOT_PASSWORD_FORM:{TITLE:"Forgot Password",SUBMIT:"Send Reset Email",EMAIL:"Email"},RESET_PASSWORD_FORM:{TITLE:"Reset Password",SUBMIT:"Reset Password",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm Password"},PROFILE_FORM:{TITLE:"Profile",SUBMIT:"Save",FIRST_NAME:"First Name",LAST_NAME:"Last Name",AVATAR:"Avatar",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},ACCOUNT:{SUBMIT_LABEL:"Update",EMAIL_LABEL:"Email",PASSWORD_LABEL:"Password",FIRST_NAME_LABEL:"First name",LAST_NAME_LABEL:"Last name",DOB_LABEL:"Date of birth",TERMS_AND_CONDITIONS_LABEL:"Terms & Conditions",TERMS_AND_CONDITIONS_DESCRIPTION:"Read our terms & conditions from the link in the footer. ",CONTACT_PREFERENCES_LABEL:"Yes/No",CONTACT_PREFERENCES_DESCRIPTION:"Happy for us to email you about the latest features, information and offers?",SKIP_LABEL:"Skip step",SUCCESS_MESSAGE:"Account updated",SUBSCRIPTION_STATUS_LABEL:"Subscription status",SUBSCRIPTION_PLAN_LABEL:"Plan",SUBSCRIPTION_PRICE_LABEL:"Price (£)",SUBSCRIPTION_BILLING_DATE_LABEL:"Next Billing Date",SUBSCRIPTION_PAYMENT_TYPE_LABEL:"Card Type",SUBSCRIPTION_CARD_NUMBER_LABEL:"Card Number",SUBSCRIPTION_CARD_EXPIRY_LABEL:"Card Expiry Date",SUBSCRIPTION_LAST_UPDATED_LABEL:"Last Updated"}},VALIDATION:{UNKNOWN_SUBMISSION_ERROR:"Sorry, something bad happened! Please try again later.",REQUIRED_FIELD:"Required",TOO_SHORT:"Must be at least {count}",TOO_LONG:"Sorry, that's too long",INVALID_EMAIL:"Oops that email address doesn't look quite right",LOGIN_DENIED:"Your username and password do not match our records",LOGIN_ERROR:"Sorry something went wrong, please try again later",ACCOUNT_FIRST_NAME:"We need to know your name for ongoing communication",ACCOUNT_LAST_NAME:"We need to know your full name for your orders and if you need to contact support",CHARACTERS_ONLY:"You can only use letters",PASSWORD_DESCRIPTION:"Password must be between {count} and 30 characters and contain at least 1 uppercase, 1 lowercase, 1 number and a symbol (eg. @$%).",PASSWORD_CASE_MESSAGE:"Password must have one capital letter",PASSWORD_LOWERCASE_MESSAGE:"Password must have one lowercase letter",PASSWORD_LENGTH_MESSAGE:"Password must be at least 8 characters",PASSWORD_NUMERIC_MESSAGE:"Password must have at least one number",PASSWORD_SPECIAL_MESSAGE:"Password must have at least one special character (eg. @$%)",AUTH_API_ERROR:"An account with the given email already exists.: Conflict",AUTH_ACCOUNT_EXISTS_MESSAGE:"An account with the given email already exists. Please sign in"},UI:{SHOW:"Show",NO_IMAGE:"No image",UPLOAD:"Upload",SAVE:"Save",CANCEL:"Cancel",DELETE:"Delete",CONTINUE_WITH_SOCIAL:"Continue with Social Account",SINGLE_SIGNON:"Single Sign-On",LOGIN_WITH_GOOGLE:"Login with Google",LOGIN_WITH_APPLE:"Login with Apple",SIGNUP_WITH_GOOGLE:"Signup with Google",SIGNUP_WITH_APPLE:"Signup with Apple",BACK_TO_LOGIN:"Back to Login",FORGOT_PASSWORD:"Forgot Password?",SUBMIT:"Submit",LOGIN:"Login",LOGOUT:"Logout",REGISTER:"Register",SOCIAL:{GOOGLE:"Google",FACEBOOK:"Facebook",TWITTER:"Twitter",EMAIL:"Email"},READ_MORE:"Read more",READ_LESS:"Show less",CLOSE:"Close",BACK:"Back",SHARE:"Share",DOWNLOAD:"Download",FORMAT_HOUR:"{hour}hr",FORMAT_HOURS:"{hours}hrs",FORMAT_MINUTE:"{minute}min",FORMAT_MINUTES:"{minutes}mins",LOAD_MORE_LABEL:"Load more",NO_MORE_RESULTS:"That's all folks.",UNKNOWN_ERROR_TITLE:"Unknown error",UNKNOWN_ERROR_MESSAGE:"Sorry, something bad happened! Please try again.",CONTENT_SORT_TITLE:"Sort by",CONTENT_FILTERS_TITLE:"Filters",CONTENT_FILTERS_LABEL:"Filter",CLOSE_FILTERS_LABEL:"Done",CLEAR_ALL_FILTERS_LABEL:"Clear All",CLEAR_FILTERS_LABEL:"Clear",MORE_ITEMS_LABEL:"Next items",PREVIOUS_ITEMS_LABEL:"Previous items",CHOOSE_BTN_LABEL:"Choose",ADD_BTN_LABEL:"Add",SEND_BTN_LABEL:"Send",CANCEL_BTN_LABEL:"Cancel",DONE_BTN_LABEL:"Done",EDIT_BTN_LABEL:"Edit",CHANGE_BTN_LABEL:"Change",REMOVE_BTN_LABEL:"Remove",MESSAGE_PROMPT_BTN_LABEL:"Add one",SELECT_FILE_BTN_LABEL:"Select file",TOO_MANY_REQUESTS_MESSAGE:"Too many requests. Please try again later.",COPYRIGHT:"Copyright",ALL_RIGHTS_RESERVED:"All rights reserved",APP_CAMERA_PERMISSION:"Camera permission",APP_CAMERA_PERMISSION_DENIED:"Camera permission denied",APP_NEED_ACCESS_CAMERA:"This app needs access to your camera",ASK_ME_LATER:"Ask me later",PRIVACY_POLICY:"Privacy Policy",CREATE_ACCOUNT:"Create account",COMPLETE:"Complete",EDIT:"Edit",PREV:"Prev",NEXT:"Next",GET_STARTED:"Get started",START_SEARCH:"Start search",READ_MORE_LABEL:"Read more",READ_LESS_LABEL:"Show less",CLOSE_LABEL:"Close",CLOSE_HINT:"Close this entry",BACK_LABEL:"Back",SHARE_LABEL:"Share",VIEW_MORE_LABEL:"View more",VIEW_LESS_LABEL:"View less",GOT_IT:"Got it",MORE:"More",MORE_DETAILS:"More details",MORE_INFO:"More info",LEARN_MORE:"Learn more",LOW:"Low",MEDIUM:"Medium",HIGH:"High",VERY_HIGH:"Very high",VERY_LOW:"Very low",GOOD:"Good",BAD:"Bad",STRONG:"Strong",SAVE_CONTINUE:"Save and Continue",SAVE_FINISH:"Save and Finish",FINISH:"Finish",SKIP:"Skip",ADD:"Add",ADDED:"Added",ADD_ANOTHER:"Add another",CREATE_PROFILE:"Create profile",CONTINUE_NO_ACCOUNT:"Continue without account",REQUIRED_MISSING:"Required field missing",RESET:"Reset",APPLY_FILTER:"Apply filter",START:"Start",END:"End",HELP:"Help",WHAT_IS_THIS:"What is this?",CARD_VIEW:"Card view",LIST_VIEW:"List view",FILTER:"Filter",NO_RESULTS:"No results",CONTINUE:"Continue",CONTINUE_BROWSING:"Continue browsing",VIEW:"View",INFORMATION:"Information",DELETE_HINT:"Delete this entry",VISIT_WEBSITE:"Visit website",TAKE_AGAIN:"Take again",ADD_MORE:"Add more",REQUEST_SENT:"Request sent",CUSTOMISE:"Customize",SET_LOCATION:"Set location",COUNTY_NOT_FOUND:"County not found",NO_RESOURCES_FOUND:"No resources found",PATHWAY:"Pathway",CLICK_TO_NAVIGATE:"Click to navigate",INPUT_FIELD:"Input field",GO_BACK:"Go back",NAVIGATES_PREV:"Navigates to the previous screen",REMOVE:"Remove",NO_INTERNET_CONNECTION:"No internet connection",CHECK_CONNECTION:"Please check your internet connection and try again.",EXPLORE:"Explore",NO_ACCOUNT:"No account?",START_WORKOUT:"Start workout",START_MEDIA:"Start media",LAUNCH:"Launch",PUBLISHED:"Published",CREATED:"Created",UPDATED:"Updated",DURATION:"Duration",LEVEL:"Level",SECTION:"Section",DOWNLOADING:"Downloading",DOWNLOAD_COMPLETE:"Download complete",DOWNLOAD_FAILED:"Download failed",DOWNLOAD_CANCELLED:"Download cancelled",DOWNLOADING_MEDIA:"Downloading media",DOWNLOADING_MEDIA_FAILED:"Downloading media failed",DOWNLOADING_MEDIA_CANCELLED:"Downloading media cancelled",DOWNLOADING_MEDIA_COMPLETE:"Downloading media complete",DOWNLOADING_MEDIA_CANCEL:"Cancel download",DOWNLOADING_MEDIA_RETRY:"Retry download",DOWNLOADING_MEDIA_PAUSE:"Pause download",DOWNLOADING_MEDIA_RESUME:"Resume download",DOWNLOADING_MEDIA_CONTINUE:"Continue download",DOWNLOADING_MEDIA_START:"Start download",DOWNLOADING_MEDIA_CONFIRM:"Confirm download",DOWNLOAD_REMOVED:"Download removed",DOWNLOAD_REMOVE_ERROR:"Error removing download",CATEGORY:"Category",TYPE:"Type",WORKOUT_TYPE:"Workout type",MEDIA_TYPE:"Media type",WORKOUT:"Workout",MEDIA:"Media",WORKOUTS:"Workouts",WORKOUT_CATEGORY:"Workout category",MEDIA_CATEGORY:"Media category",ADDED_LIKE:"Added like",REMOVED_LIKE:"Removed like",ADDED_FAVORITE:"Added favorite",REMOVED_FAVORITE:"Removed favorite",ADDED_BOOKMARK:"Added bookmark",REMOVED_BOOKMARK:"Removed bookmark",ADDED_WATCHLIST:"Added watchlist",REMOVED_WATCHLIST:"Removed watchlist",ADDED_PLAYLIST:"Added playlist",REMOVED_PLAYLIST:"Removed playlist",ADDED_SUBSCRIPTION:"Added subscription",REMOVED_SUBSCRIPTION:"Removed subscription",ADDED_FOLLOW:"Added follow",REMOVED_FOLLOW:"Removed follow",ADDED_FRIEND:"Added friend",REMOVED_FRIEND:"Removed friend",ADDED_CONNECTION:"Added connection",REMOVED_CONNECTION:"Removed connection",MARKED_COMPLETE:"Marked complete",MARKED_INCOMPLETE:"Marked incomplete",MUSIC_ENABLED:"Music enabled",MUSIC_DISABLED:"Music disabled",SHARED:"Shared",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",PURCHASE_TO_ACCESS:"Purchase to access",SHOW_FILTERS:"Show filters",HIDE_FILTERS:"Hide filters",THIS_WEEK:"This week",TODAYS_ITEMS:"Today's items",START_TRIAL_LABEL:"Start Free Trial",START_WORKOUTS_LABEL:"Start Workouts Now",UPDATE_LABEL:"Update now",SESSION_EXPIRED:"Session expired. Please log in.",NO_VALID_SUB:"No valid subscription found. Please subscribe or contact us if you believe this is an error.",SUBSCRIPTION_ERROR:"There's a problem with your account. No valid subscription found.",SUCCESS:"Success",UPLOAD_IMAGE:"Upload Image",UPLOAD_VIDEO:"Upload Video",UPLOAD_AUDIO:"Upload Audio",UPLOAD_DOCUMENT:"Upload Document",UPLOAD_MEDIA:"Upload Media",UPLOAD_MEDIA_FILE:"Upload Media File",UPLOAD_SUCCESS:"Upload successful",UPLOAD_FAILED:"Upload failed",UPLOADING:"Uploading",SHARE_DESCRIPTION:"Share this with your friends",SHARE_TITLE:"Share",ALREADY_RATED:"You have already rated this",RATE:"Rate",VERSION:"Version",APP_VERSION:"App Version",WELCOME:"Welcome",LATEST_WORKOUTS:"Latest Workouts",RECENTLY_VIEWED:"Recently Viewed",RECENTLY_ADDED:"Recently Added",RECENTLY_COMPLETED:"Recently Completed",WORKOUTS_LIKED:"Workouts Liked",WORKOUTS_FAVORITED:"Workouts Favorited",WORKOUTS_BOOKMARKED:"Workouts Bookmarked",WORKOUTS_COMPLETED:"Workouts Completed",WORKOUTS_DONE:"Workouts Done",LIKED:"Liked",FAVORITED:"Favorited",BOOKMARKED:"Bookmarked",COMPLETED:"Completed",DONE:"Done",STATS:"Stats",STATISTICS:"Statistics",ACTIVITY:"Activity",RECENT_ACTIVITY:"Recent Activity",NEWS:"News",UPDATES:"Updates",LATEST_NEWS:"Latest News",WHATS_NEW:"What's New",WHATS_NEWS:"What's News",GOOD_MORNING:"Good Morning",GOOD_AFTERNOON:"Good Afternoon",GOOD_EVENING:"Good Evening",NO_CLASS:"No class",RELATED:"Related",RELATED_WORKOUTS:"Related Workouts",RELATED_CHALLENGES:"Related Challenges",RELATED_VIDEOS:"Related Videos",RELATED_MEDIA:"Related Media",CHALLENGES_ENTERED:"Challenges Entered",UPGRADE_TO_PREMIUM_PLUS:"Upgrade to Premium+",UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE:"Upgrade to Premium+ for unlimited access to the live streamed classes",UPGRADE_TO_PREMIUM:"Upgrade to Premium",PUSH_NOTIFICATIONS:"Push Notifications",PUSH_NOTIFICATIONS_ENABLED:"Push notifications enabled",PUSH_NOTIFICATIONS_DISABLED:"Push notifications disabled",EMAIL_NOTIFICATIONS:"Email Notifications",EMAIL_NOTIFICATIONS_ENABLED:"Email notifications enabled",EMAIL_NOTIFICATIONS_DISABLED:"Email notifications disabled",SMS_NOTIFICATIONS:"SMS Notifications",SMS_NOTIFICATIONS_ENABLED:"SMS notifications enabled",SMS_NOTIFICATIONS_DISABLED:"SMS notifications disabled",NOTIFICATIONS:"Notifications",PUSH_NOTIFICATIONS_DESCRIPTION:"Receive push notifications for new content and updates",EMAIL_NOTIFICATIONS_DESCRIPTION:"Receive email notifications for new content and updates",SMS_NOTIFICATIONS_DESCRIPTION:"Receive SMS notifications for new content and updates",OPEN_SETTINGS:"Open settings",NOTIFICATION_SETTINGS:"Notification settings",NOTIFICATION_SETTINGS_DESCRIPTION:"Manage your notification settings",CAMERA_ACCESS:"Camera access",CAMERA_PERMISSION_DENIED:"Camera permission denied",CAMERA_PERMISSION_REQUIRED:"Camera permission required",CAMERA_PERMISSION_DESCRIPTION:"Allow access to your camera to take a profile picture and personalize your account",DISABLE_PERMISSION_IN_SETTINGS:"You can disable in main system settings",DARK_MODE:"Dark mode",LIGHT_MODE:"Light mode",SYSTEM_MODE:"System mode",DARK_MODE_ENABLED:"Dark mode enabled",LIGHT_MODE_ENABLED:"Light mode enabled",SYSTEM_MODE_ENABLED:"System mode enabled",DARK_MODE_DESCRIPTION:"Enable dark mode for better viewing experience",LIGHT_MODE_DESCRIPTION:"Enable light mode for better viewing experience",SYSTEM_MODE_DESCRIPTION:"Enable system mode for better viewing experience",REQUEST_INFO:"Request info",REQUEST_INFORMATION:"Request information",GET_INFO:"Get info",GET_IN_TOUCH:"Get in touch",CONTACT_US:"Contact us",ERROR:"Error",LAST_UPDATED:"Last updated",NO_UPDATES:"No updates",RATED:"Rated",RATE_SUCCESS:"Rating successful",RATE_FAILED:"Rating failed",RATE_CANCELLED:"Rating cancelled",QUESTION:"Question",QUESTION_ABOUT_SUBSCRIPTION:"Question about subscription",LOGOUT_SUCCESS:"Logout successful",NO_ACTIVE_SUBSCRIPTION:"No active subscription",SUBSCRIPTION_EXPIRED:"Subscription expired",NO_SUBSCRIPTION_DETAILS:"You currently do not have an active subscription. If you believe this is an error, please contact our support team for assistance."},ERRORS:{GENERIC_ERROR:"An error occurred",COULD_NOT_FETCH_DATA:"Could not fetch data",COULD_NOT_UPDATE_DATA:"Could not update data",COULD_NOT_DELETE_DATA:"Could not delete data",COULD_NOT_UPDATE_LIKES:"Could not update likes",COULD_NOT_UPDATE_FAVORITES:"Could not update favorites",COULD_NOT_UPDATE_BOOKMARKS:"Could not update bookmarks",COULD_NOT_UPDATE_WATCHLIST:"Could not update watchlist",COULD_NOT_UPDATE_PLAYLIST:"Could not update playlist",COULD_NOT_UPDATE_SUBSCRIPTION:"Could not update subscription",COULD_NOT_UPDATE_FOLLOW:"Could not update follow",COULD_NOT_UPDATE_FRIEND:"Could not update friend",COULD_NOT_UPDATE_CONNECTION:"Could not update connection",ISSUE_CHECKING_PERMISSIONS:"Issue checking permissions",ISSUE_OPENING_SETTINGS:"Issue opening settings"}},le=({testID:s,name:a="avatar",isEditable:i=!0,initValue:r})=>{const[n,o]=t.useState(r);return t.useEffect((()=>{r&&o(r)}),[r]),e.jsxs("div",{"data-testid":s||'"Avatar"',className:"relative",children:[e.jsxs("div",{className:"relative w-[200px] aspect-1 rounded-full border border-solid overflow-hidden flex items-center justify-center m-4",children:[n&&e.jsxs(e.Fragment,{children:[e.jsx(Z,{src:n,alt:a,width:200,height:200}),i&&e.jsx("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e.jsx(R,{size:exports.BTN_SIZES.SMALL,rounded:!0,onClick:()=>{o(void 0)},children:oe.UI.REMOVE_BTN_LABEL})})]}),!n&&e.jsx(e.Fragment,{children:i&&e.jsx("div",{className:"absolute w-full h-full flex items-center justify-center",children:e.jsx($,{id:a,className:"button cursor-pointer mb-0",children:e.jsx(G,{className:"mb-0",children:oe.UI.UPLOAD})})})})]}),e.jsx("input",{type:"file",id:a,name:a,className:"hidden",onChange:e=>{var t;const s=null===(t=e.target.files)||void 0===t?void 0:t[0];if(s){const e=URL.createObjectURL(s);o(e)}}})]})};le.displayName="Avatar";const de=({testID:t,buttonData:a})=>e.jsx("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:null==a?void 0:a.map(((t,i)=>{const r=i>0&&i<a.length-1,n=0===i,o=i===a.length-1,l=s({"rounded-none":r},{"rounded-r":n,"rounded-l":o});return e.jsx("div",{children:e.jsx(R,Object.assign({},t,{className:l,children:t.children}))},t.id)}))});de.displayName="ButtonGroup";const ce="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-bodyBackground text-bodyText dark:bg-darkBodyBackground dark:text-darkBodyText hover:bg-primary hover:text-bodyTextInverted group",ue="transition duration-500 ease-in-out ",me={replace(t){if("a"===t.name){const s=n.attributesToProps(t.attribs);return e.jsx(k,Object.assign({},s,{children:n.domToReact(t.children,me)}))}if(t.attribs&&"p"===t.name){const s=n.attributesToProps(t.attribs);return e.jsx(G,Object.assign({},s,{children:n.domToReact(t.children,me)}))}return t}},pe=({testID:t,data:a,align:i,className:r})=>e.jsx("span",{"data-testid":t||'"HtmlContent"',className:s("relative",{"text-right":"right"===i},{"text-center":"center"===i},{"text-left":"left"===i},r),children:n(a,me)});function xe(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}pe.displayName="HtmlContent";const he=({id:t,title:a,description:i,image:n,className:o,metaData:l,actions:d,padded:c,scaleOnHover:u,onClick:m=(()=>{}),htmlDetails:p})=>e.jsxs("div",{id:t,"data-testid":"CardBasic",className:r.twMerge(s(ue,ce,{"p-4":c},{"hover:scale-100":!u},o)),onClick:m,children:[n&&e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden aspect-[16/9]",{rounded:c},n.aspectRatio)),children:e.jsx(Z,{fill:!0,src:null==n?void 0:n.src,sizes:"100vh",alt:null==n?void 0:n.alt,className:s("absolute inset-0 object-cover group-hover:scale-110 dura",ue)})}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:s({"p-3":!c},{"pt-3":c}),children:[e.jsx("div",{children:a&&e.jsx(q,{tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),!p&&i&&e.jsx("div",{children:e.jsx(G,{className:"mb-0",children:xe(i)})}),p&&i&&e.jsx("div",{children:e.jsx(pe,{className:"mb-0",data:xe(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l&&e.jsx("div",{className:"flex shrink-0 mt-2",children:l.map(((t,s)=>0===s?e.jsxs(G,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===l.length-1?e.jsxs(G,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(G,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),d&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[d.like&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.like)||void 0===s?void 0:s.onClick)&&"function"==typeof d.like.onClick&&d.like.onClick({id:t})}}),d.share&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.share)||void 0===s?void 0:s.onClick)&&"function"==typeof d.share.onClick&&d.share.onClick({id:t})}}),d.save&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.save)||void 0===s?void 0:s.onClick)&&"function"==typeof d.save.onClick&&d.save.onClick({id:t})}}),d.comment&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.comment)||void 0===s?void 0:s.onClick)&&"function"==typeof d.comment.onClick&&d.comment.onClick({id:t})}}),d.bookmark&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.bookmark)||void 0===s?void 0:s.onClick)&&"function"==typeof d.bookmark.onClick&&d.bookmark.onClick({id:t})}}),d.report&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.report)||void 0===s?void 0:s.onClick)&&"function"==typeof d.report.onClick&&d.report.onClick({id:t})}}),d.follow&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.follow)||void 0===s?void 0:s.onClick)&&"function"==typeof d.follow.onClick&&d.follow.onClick({id:t})}}),d.download&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.download)||void 0===s?void 0:s.onClick)&&"function"==typeof d.download.onClick&&d.download.onClick({id:t})}}),d.edit&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.edit)||void 0===s?void 0:s.onClick)&&"function"==typeof d.edit.onClick&&d.edit.onClick({id:t})}}),d.delete&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.delete)||void 0===s?void 0:s.onClick)&&"function"==typeof d.delete.onClick&&d.delete.onClick({id:t})}})]})]})]})})]});he.displayName="CardBasic";const ve=t.createContext({brand:void 0,header:void 0,footer:void 0,locale:void 0,app:void 0}),fe=({children:t,value:s})=>e.jsx(ve.Provider,{value:s,children:t});function Ne(){var e;return null===(e=t.useContext(ve).locale)||void 0===e||e.lang,oe}const ge={isDarkTheme:!1,toggleTheme:()=>{}},Ee=t.createContext(ge);const Se=({id:t,title:a,description:i,image:r,className:n,metaData:o,actions:l,onClick:d=(()=>{}),playCallback:c,htmlDetails:u,accessRestriced:m})=>{const p=Ne();return e.jsxs("div",{id:t,"data-testid":"CardBasic",className:s(ue,ce,n),onClick:d,children:[r&&e.jsxs("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",r.aspectRatio),children:[e.jsx(Z,{fill:!0,src:null==r?void 0:r.src,sizes:"100vh",alt:null==r?void 0:r.alt,className:s("absolute inset-0 object-cover group-hover:scale-110",ue)}),m&&e.jsx("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e.jsx(G,{bold:!0,transform:exports.COPY_TRANSFORM.UPPERCASE,children:p.UI.PURCHASE_TO_ACCESS})}),c&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:play",size:exports.BTN_SIZES.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof c&&c(e)}})})]}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:a&&e.jsx(q,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:a})}),!u&&i&&e.jsx("div",{children:e.jsx(G,{className:"mb-0",children:xe(i)})}),u&&i&&e.jsx("div",{children:e.jsx(pe,{className:"mb-0",data:xe(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o&&e.jsx("div",{className:"flex shrink-0",children:o.map(((t,s)=>0===s?e.jsxs(G,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===o.length-1?e.jsxs(G,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(G,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),l&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[l.like&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.like)||void 0===s?void 0:s.onClick)&&"function"==typeof l.like.onClick&&l.like.onClick({id:t})}}),l.share&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.share)||void 0===s?void 0:s.onClick)&&"function"==typeof l.share.onClick&&l.share.onClick({id:t})}}),l.save&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.save)||void 0===s?void 0:s.onClick)&&"function"==typeof l.save.onClick&&l.save.onClick({id:t})}}),l.comment&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.comment)||void 0===s?void 0:s.onClick)&&"function"==typeof l.comment.onClick&&l.comment.onClick({id:t})}}),l.bookmark&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.bookmark)||void 0===s?void 0:s.onClick)&&"function"==typeof l.bookmark.onClick&&l.bookmark.onClick({id:t})}}),l.report&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.report)||void 0===s?void 0:s.onClick)&&"function"==typeof l.report.onClick&&l.report.onClick({id:t})}}),l.follow&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.follow)||void 0===s?void 0:s.onClick)&&"function"==typeof l.follow.onClick&&l.follow.onClick({id:t})}}),l.download&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.download)||void 0===s?void 0:s.onClick)&&"function"==typeof l.download.onClick&&l.download.onClick({id:t})}}),l.edit&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.edit)||void 0===s?void 0:s.onClick)&&"function"==typeof l.edit.onClick&&l.edit.onClick({id:t})}}),l.delete&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.delete)||void 0===s?void 0:s.onClick)&&"function"==typeof l.delete.onClick&&l.delete.onClick({id:t})}})]})]})]})})]})};Se.displayName="CardMedia";const Ae=({video:t,isMuted:a=!0,id:i,title:r,description:n,image:o,className:d,metaData:c,actions:u,onClick:m=(()=>{}),htmlDetails:p})=>e.jsxs("div",{id:i,"data-testid":"CardVideo",className:s(ue,ce,d),onClick:m,children:[o&&t&&e.jsx("div",{className:s("relative w-full h-full aspect-[16/9]",o.aspectRatio),children:e.jsx(l,{videoId:`video--${i}`,playbackStartDelay:1e3,videoSrc:e.jsx("source",{src:t,type:"video/mp4"}),videoClassName:s("hls-hover-video w-full aspect-[16/9]",o.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:a,className:s("w-full overflow-hidden aspect-[16/9]",o.aspectRatio),pausedOverlay:e.jsx("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",o.aspectRatio),children:e.jsx(Z,{fill:!0,src:null==o?void 0:o.src,width:0,height:0,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})}),loadingOverlay:e.jsx("div",{className:s("w-full flex items-center justify-center aspect-[16/9]",o.aspectRatio),children:e.jsx("div",{className:"",children:e.jsx(_,{})})})},`${i}--card`)}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:r&&e.jsx(q,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:r})}),!p&&n&&e.jsx("div",{children:e.jsx(G,{className:"mb-0",children:xe(n)})}),p&&n&&e.jsx("div",{children:e.jsx(pe,{className:"mb-0",data:xe(n)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c&&e.jsx("div",{className:"flex shrink-0",children:c.map(((t,s)=>0===s?e.jsxs(G,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===c.length-1?e.jsxs(G,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(G,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),u&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[u.like&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.like)||void 0===t?void 0:t.onClick)&&"function"==typeof u.like.onClick&&u.like.onClick({id:i})}}),u.share&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.share)||void 0===t?void 0:t.onClick)&&"function"==typeof u.share.onClick&&u.share.onClick({id:i})}}),u.save&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.save)||void 0===t?void 0:t.onClick)&&"function"==typeof u.save.onClick&&u.save.onClick({id:i})}}),u.comment&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof u.comment.onClick&&u.comment.onClick({id:i})}}),u.bookmark&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof u.bookmark.onClick&&u.bookmark.onClick({id:i})}}),u.report&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.report)||void 0===t?void 0:t.onClick)&&"function"==typeof u.report.onClick&&u.report.onClick({id:i})}}),u.follow&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof u.follow.onClick&&u.follow.onClick({id:i})}}),u.download&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.download)||void 0===t?void 0:t.onClick)&&"function"==typeof u.download.onClick&&u.download.onClick({id:i})}}),u.edit&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof u.edit.onClick&&u.edit.onClick({id:i})}}),u.delete&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof u.delete.onClick&&u.delete.onClick({id:i})}})]})]})]})})]});Ae.displayName="CardVideo";const be=({id:t,title:a,description:i,icon:n,className:o,onClick:l,moreTitle:d,align:c})=>{const u=l?ce:"";return e.jsxs("div",{id:t,"data-testid":"CardIcon",className:r.twMerge(s(ue,u,"p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===c},{"items-center":"center"===c},{"items-end":"right"===c},o)),children:[n&&e.jsx("div",{className:s("relative"),children:e.jsx(j,{name:n,size:48})}),e.jsxs("div",{className:s({"text-left":"left"===c},{"text-center":"center"===c},{"text-right":"right"===c}),children:[e.jsx("div",{children:a&&e.jsx(q,{tag:exports.HEADING_TAGS.H5,singleLine:!0,children:a})}),e.jsx("div",{children:i&&e.jsx(G,{align:c,children:i})})]}),l&&e.jsx("div",{className:"flex items-center justify-start gap-2",children:e.jsx(R,{icon:"mdi:arrow-right",variant:exports.BTN_VARIANTS.LINK,onClick:l,children:d})})]})};be.displayName="CardIcon";const Te=({testID:t,id:a,title:i,description:n,image:o,onClick:l,className:d,padded:c,icon:u,raised:m=!0,htmlDetails:p})=>e.jsxs("div",{id:a,"data-testid":t||"CardHorz",className:s("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":c},{"shadow hover:shadow-lg":m},d),onClick:l,children:[o&&e.jsx("div",{className:"w-1/3 aspect-[1/1]",children:e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden h-full",o.aspectRatio)),children:e.jsx(Z,{fill:!0,src:null==o?void 0:o.src,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})})}),u&&!o&&e.jsx("div",{className:"py-2 pl-2",children:e.jsx(j,{name:u,size:30})}),e.jsx("div",{className:"flex flex-1 overflow-hidden h-min",children:e.jsxs("div",{className:"flex-col gap-2 py-2 pr-2 overflow-hidden",children:[i&&e.jsx("div",{className:"",children:e.jsx(q,{tag:exports.HEADING_TAGS.H4,children:i})}),!p&&n&&e.jsx("div",{children:e.jsx(G,{className:"mb-0",children:xe(n)})}),p&&n&&e.jsx("div",{children:e.jsx(pe,{className:"mb-0",data:xe(n)})})]})})]});Te.displayName="CardHorz";const je=({testID:i,className:n,data:o,padded:l,shadow:d=!0})=>{const c=a.motionValue(0);return t.useEffect((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||a.animate(c,200,{duration:.5})}),[c]),o?e.jsxs("div",{"data-testid":i||"CardData",className:r.twMerge(s("relative rounded-lg overflow-hidden flex flex-col items-center gap-4 p-2 bg-bodyBackground dark:bg-darkBodyBackground",{"p-4":l},{shadow:d},n)),children:[(null==o?void 0:o.animateNumber)&&e.jsxs("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e.jsx(T,{from:o.numberData.from,to:o.numberData.to,numDecimals:o.numberData.numDecimals}),e.jsx("span",{children:null==o?void 0:o.item})]}),!(null==o?void 0:o.animateNumber)&&e.jsx("div",{className:"text-lg",children:e.jsx(q,{tag:exports.HEADING_TAGS.H2,flush:!0,children:null==o?void 0:o.item})}),e.jsx("div",{children:e.jsx(G,{className:"mb-0",children:null==o?void 0:o.label})})]}):e.jsx(e.Fragment,{})};je.displayName="CardData";const Ie=t=>{var{variant:s,className:a,data:i}=t,r=L(t,["variant","className","data"]);switch(s){case"basic":default:return e.jsx(he,Object.assign({className:a},i,r));case"media":return e.jsx(Se,Object.assign({className:a},i,r));case"video":return e.jsx(Ae,Object.assign({className:a},i,r));case"icon":return e.jsx(be,Object.assign({className:a},i,r));case"horz":return e.jsx(Te,Object.assign({className:a},i,r));case"data":return e.jsx(je,Object.assign({className:a},i,r))}};Ie.displayName="Card";const Ce=({text:t,flush:a,tag:i=exports.HEADING_TAGS.H1})=>{const r=t.split(" ");return e.jsx("div",{"data-testid":"DisplayHeading",className:"relative",children:e.jsx(q,{tag:i,flush:a,children:r.map(((t,a)=>{const i=a===r.length-1,n=`${t}-${a}`;return e.jsxs("span",{children:[e.jsx("span",{className:s({"display-heading relative font-heading":!i},{"inline-block relative font-heading":i}),children:e.jsxs(e.Fragment,{children:[i&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"display-heading--emphasis z-0"}),e.jsx("span",{className:"display-heading--lastword relative",children:t})]}),!i&&e.jsx("span",{className:"relative z-10",children:t})]})}),!i&&" "]},n)}))})})};Ce.displayName="DisplayHeading";const ye=({children:a,className:i,submit:r,onSubmit:n=(()=>{}),onChange:o,hideSubmit:l,ariaSubmitLabel:c,submitID:u,submitVariant:m=exports.BTN_VARIANTS.PRIMARY,initialValues:p={},isBoxed:x=!1,submitType:h=exports.BTN_TYPES.SUBMIT,disabledSubmitWithReturn:v=!1,isDisabled:f=!1})=>{const N=d.useForm({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"});t.useEffect((()=>{if(o&&"function"==typeof o){const e=N.watch(((e,t)=>{o(e,t)}));return()=>e.unsubscribe()}}),[]);const g=s({"sr-only":l}),{formState:{isSubmitting:E,isDirty:S,isValid:A}}=N;return e.jsx(d.FormProvider,Object.assign({},N,{children:e.jsx("div",{"data-testid":"Form",className:s("w-full max-w-s @containers @form"),children:e.jsxs("form",{onSubmit:N.handleSubmit(n),onKeyDown:e=>{v&&"Enter"===e.key&&e.preventDefault()},className:s("w-2xs relative",{"form px-8 pt-6 pb-8 ":x},{"opacity-50":E},i),children:[a,r&&e.jsx("div",{className:"flex items-center justify-end",children:e.jsx(R,{id:u||r,className:g,ariaLabel:c||r||"Submit",type:h,outline:!0,isLoading:E,disabled:E||!A||!S||f,variant:m,children:r})})]})})}))};var Oe;ye.displayName="Form",exports.FIELD_TYPES=void 0,(Oe=exports.FIELD_TYPES||(exports.FIELD_TYPES={})).TEXT="text",Oe.TEXTAREA="textarea",Oe.SELECT="select",Oe.CHECKBOX="checkbox",Oe.RADIO="radio",Oe.SWITCH="switch",Oe.DATE="date",Oe.TIME="time",Oe.DATETIME="datetime",Oe.FILE="file",Oe.PASSWORD="password",Oe.EMAIL="email",Oe.NUMBER="number",Oe.TEL="tel",Oe.URL="url",Oe.SEARCH="search",Oe.HIDDEN="hidden";const _e=t.forwardRef((function(t,a){var{id:i,name:r,options:n,required:o,className:l,disabled:d}=t,c=L(t,["id","name","options","required","className","disabled"]);if(!n)throw new Error("FormSelect requires options prop");return e.jsx("div",{id:i,className:s("pb-2 min-w-20",l),children:e.jsxs("div",{className:"relative",children:[e.jsx("select",Object.assign({ref:a,name:r,disabled:d,required:o,className:"form-item text-input pr-10"},c,{children:n.map(((t,s)=>{var a,i;return e.jsx("option",{value:null===(a=null==t?void 0:t.value)||void 0===a?void 0:a.toString(),disabled:t.disabled,className:"bg-bodyBackground dark:bg-darkBodyBackground",children:t.label},`${null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.toString()}--${s}`)}))})),e.jsx("div",{className:"form-icon absolute inset-0 z-10 pointer-events-none h-full w-12 items-center justify-center top-0 right-0 left-auto flex",children:e.jsx(j,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));_e.displayName="FormSelect";const Re=({name:a,type:i,label:r,required:n,className:o,icon:l,options:c,disabled:u,description:m,showPasswordLabel:p,hidePasswordLabel:x,validations:h={},fileUploadCallback:v=(()=>{}),autoComplete:f})=>{var N,g;const[E,S]=t.useState(!1),{control:A,formState:b}=d.useFormContext(),{errors:T}=b,I=r&&i!==exports.FIELD_TYPES.CHECKBOX,C=n||Boolean(h.required)?`${r} *`:r;return e.jsx("div",{className:"relative",children:e.jsxs("div",{"data-testid":"FormField",className:"mb-4",children:[I&&e.jsx("div",{className:"flex items-baseline justify-between",children:e.jsx($,{id:a,children:C})}),e.jsx("div",{className:"mb-1",children:e.jsx(d.Controller,{defaultValue:"",name:a,control:A,rules:h,render:({field:t})=>((t,i)=>{switch(t){case exports.FIELD_TYPES.HIDDEN:return e.jsx("input",Object.assign({type:re.HIDDEN,disabled:u},i));case exports.FIELD_TYPES.TEXT:return e.jsx(ne,Object.assign({type:re.TEXT,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i));case exports.FIELD_TYPES.PASSWORD:{const t=E?re.TEXT:re.PASSWORD,a="appearance-none border-none bg-transparent flex items-center";return e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute right-0 top-0 flex items-center justify-center h-full z-10 pr-2",onClick:()=>S((e=>!e)),role:"button",tabIndex:0,children:E?e.jsx("button",{type:"button","aria-label":x,className:s(a,"form-icon"),children:e.jsx(j,{name:"mdi:eye-off",size:24})}):e.jsx("button",{type:"button","aria-label":p,className:s(a,"form-icon"),children:e.jsx(j,{name:"mdi:eye",size:24})})}),e.jsx(ne,Object.assign({type:t,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i))]})}case exports.FIELD_TYPES.TEXTAREA:return e.jsx(ne,Object.assign({type:re.TEXTAREA,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.EMAIL:return e.jsx(ne,Object.assign({type:re.EMAIL,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i));case exports.FIELD_TYPES.DATE:return e.jsx(ne,Object.assign({type:re.DATE,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.DATETIME:return e.jsx(ne,Object.assign({type:re.DATETIME,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.NUMBER:return e.jsx(ne,Object.assign({type:re.NUMBER,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.CHECKBOX:return e.jsx(D,Object.assign({required:n||Boolean(h.required),id:a,className:o,label:r,disabled:u},i));case exports.FIELD_TYPES.RADIO:return e.jsx(ae,Object.assign({required:n||Boolean(h.required),id:a,className:o,options:c,disabled:u},i));case exports.FIELD_TYPES.SWITCH:return e.jsx(ie,Object.assign({id:a,required:n||Boolean(h.required),className:o,disabled:u},i));case exports.FIELD_TYPES.SELECT:return e.jsx(_e,Object.assign({required:n||Boolean(h.required),id:a,className:o,disabled:u,label:r,options:c},i));case exports.FIELD_TYPES.FILE:return e.jsx(Y,Object.assign({required:n||Boolean(h.required),id:a,className:o,disabled:u,onChangeCallback:e=>{v(e)}},i));default:return e.jsx(ne,Object.assign({type:re.TEXT,required:n||Boolean(h.required),disabled:u,icon:l,className:o},i))}})(i,t)})}),m&&e.jsx("div",{className:"formfield-description",children:e.jsx(G,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:m})}),T[a]&&e.jsx("div",{className:"formfield-error text-error italic",children:e.jsx(G,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:null===(g=null===(N=null==T?void 0:T[a])||void 0===N?void 0:N.message)||void 0===g?void 0:g.toString()})})]})})};Re.displayName="FormField";const Le=({testID:t,url:s,title:a="Share",enabled:i={facebook:!0,twitter:!0}})=>e.jsxs("div",{"data-testid":t||"Share",className:"flex gap-2 items-center ",children:[e.jsx("div",{children:e.jsxs(G,{as:exports.COPY_TAG.P,className:"mb-0",children:[oe.UI.SHARE,":"]})}),(null==i?void 0:i.facebook)&&e.jsx(c.FacebookShareButton,{url:s,title:a,className:"",children:e.jsx(j,{name:"mdi:facebook"})}),(null==i?void 0:i.twitter)&&e.jsx(c.TwitterShareButton,{url:s,title:a,className:"",children:e.jsx(j,{name:"mdi:twitter"})}),(null==i?void 0:i.whatsapp)&&e.jsx(c.WhatsappShareButton,{url:s,title:a,className:"",children:e.jsx(j,{name:"mdi:whatsapp"})}),(null==i?void 0:i.email)&&e.jsx(c.EmailShareButton,{url:s,title:a,className:"",children:e.jsx(j,{name:"mdi:email"})}),(null==i?void 0:i.linkedin)&&e.jsx(c.LinkedinShareButton,{url:s,title:a,className:"",children:e.jsx(j,{name:"mdi:linkedin"})})]});Le.displayName="Share";const we=({data:a})=>{const[i,r]=t.useState(0);return a?e.jsx("div",{"data-testid":"Tabs",children:e.jsxs(u.Tabs,{onSelect:e=>r(e),children:[e.jsx(u.TabList,{className:"mb-8 flex p-0",children:a.map(((t,a)=>e.jsx(u.Tab,{className:s("list-none rel ative cursor-pointer inline-block flex-1 items-center justify-center p-4",{"border-transparent border-solid border-0 border-b-2":i!==a,"border-primary border-solid border-0 border-b-2":i===a}),children:e.jsx(G,{className:"m-0 text-center",children:t.title})},a)))}),a.map(((t,s)=>e.jsx(u.TabPanel,{className:"",children:t.content},s)))]})}):e.jsx(e.Fragment,{})};we.displayName="Tabs";const De=({testID:t,facebook:s,twitter:a,instagram:i,linkedin:r})=>e.jsxs("div",{"data-testid":t||'"VisitUs"',className:"flex gap-2",children:[s&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(s.url)}),a&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(a.url)}),i&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(i.url)}),r&&e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(r.url)})]});De.displayName="VisitUs";const ke=({testID:t,title:a,links:i,inline:n=!0,separators:o=!1,className:l})=>e.jsxs("div",{"data-testid":t||'"Menu"',className:r.twMerge(s("flex flex-col gap-2",l)),children:[a&&e.jsx("div",{children:e.jsx(q,{tag:exports.HEADING_TAGS.H3,children:a})}),e.jsx("div",{className:s("flex gap-0 items-center md:items-start",{"flex-row ":n},{"flex-col ":!n}),children:null==i?void 0:i.map(((t,s)=>{const a=`${t.id}--${s}`;return e.jsxs("div",{className:"flex gap-0",children:[e.jsx("div",{className:"relative py-2",children:e.jsxs(k,{href:t.url,className:"flex gap-1",children:[t.icon&&e.jsx(j,{name:t.icon}),t.title&&e.jsx("div",{children:t.title})]})}),o&&s+1<i.length&&e.jsx("div",{className:"h-full flex self-center px-2",children:e.jsx(j,{name:"mdi:dot",className:"opacity-50"})})]},a)}))})]});var Pe;ke.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(Pe||(Pe={}));const Me=({children:t,className:a,spacing:i,padded:n,isNarrow:o,isCentered:l,isFlush:d,direction:c=Pe.COLUMN})=>{const u=r.twMerge(s("container relative mx-auto my-0",{"px-2 md:px-4 lg:px-4":n},{"py-40":"feature"===i},{"py-24":"component"===i},{"py-16":"module"===i},{"py-10":"element"===i},{"py-4":"atom"===i},{"py-0":"none"===i},{"max-w-3xl":o},{"flex items-center justify-center flex-col":l},{"px-0 max-w-full mx-0":d},{"flex flex-col":c===Pe.COLUMN},{"flex-row":c===Pe.ROW})),m=s("w-full",a);return e.jsx("div",{"data-testid":"Container",className:u,children:e.jsx("div",{className:m,children:t})})};Me.displayName="Container";const Fe=({testID:t,children:a,withBg:i=!0,inversed:r=!1})=>e.jsxs("div",{"data-testid":t||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[i&&e.jsx("div",{className:s("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!r,"-top-24 left-0":r})}),e.jsx(Me,{children:a})]});Fe.displayName="Hero";const Be=({testID:i,bgAsset:r,focalAsset1:n,focalAsset2:o,focalAsset3:l})=>{t.useRef(null);const d={opacity:.001,rotate:0,scale:1,x:200,y:0},c={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,transition:{damping:60,delay:0,mass:1.2,stiffness:300,type:"spring"},x:0,y:0};return e.jsxs("div",{"data-testid":i||"AnimationSet1",className:s("relative w-full h-full"),children:[r&&e.jsx(a.motion.div,{className:"absolute left-1/2 top-1/2 w-full h-full",initial:{opacity:.001,rotate:0,scale:.5,x:0,y:0,perspective:"1200px",translateX:"-50%",translateY:"-50%"},animate:{opacity:.5,rotate:0,rotateX:0,rotateY:0,scale:1.25,transition:{damping:60,delay:.7,mass:1.2,stiffness:300,type:"spring"},perspective:"1200px",translateX:"-50%",translateY:"-50%",x:0,y:0},transition:{duration:.5},children:e.jsx(Z,{src:r.src,alt:r.alt,fill:!0})}),(n||o)&&e.jsxs(a.motion.div,{className:"absolute right-0 top-1/2 z-10 overflow-visible w-3/4 aspect-[0.78/1]",style:{transform:"translateY(-50%)"},children:[n&&e.jsx(a.motion.div,{className:"absolute w-1/2 aspect-[0.35/1] right-16 top-0",initial:d,animate:c,children:e.jsx(Z,{src:n.src,alt:n.alt,fill:!0})}),o&&e.jsx(a.motion.div,{className:"absolute w-1/2 aspect-[0.5/1] -left-4 top-20",initial:d,animate:Object.assign(Object.assign({},c),{transition:Object.assign(Object.assign({},c.transition),{delay:.3})}),children:e.jsx(Z,{src:o.src,alt:o.alt,fill:!0})})]}),l&&e.jsx("div",{className:"absolute w-1/4 aspect-[0.5/1] flex flex-col flex-nowrap p-0 top-16 z-20 items-end justify-end left-0",children:e.jsx(a.motion.div,{className:"relative w-full overflow-visible aspect-[1.2/1]",initial:{opacity:.001,rotate:0,scale:1,x:100,y:0},animate:{opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,transition:{damping:60,delay:.6,mass:1.2,stiffness:300,type:"spring"},x:0,y:0},children:e.jsx(Z,{src:l.src,fill:!0,alt:l.alt})})})]})};Be.displayName="AnimationSet1";const Ue=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,Ge=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,He={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},Ye={required:"You must specify a password",minLength:{value:8,message:"Password must have at least 8 characters"},pattern:{value:/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/,message:"Password must contain contain at least one number, one uppercase letter, one lowercase letter, and one special character."}},Ve=({handleSubmit:t,initialValues:s,showSocialButtons:a=!1})=>e.jsxs("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[e.jsxs(ye,{onSubmit:t,submit:oe.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx(Re,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:oe.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:He,autoComplete:"email"}),e.jsx(Re,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:oe.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),a&&e.jsxs(e.Fragment,{children:[e.jsx(K,{}),e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsxs("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e.jsx(R,{onClick:()=>window.location.assign(Ue),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:oe.UI.LOGIN_WITH_GOOGLE}),e.jsx(R,{onClick:()=>window.location.assign(Ge),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:oe.UI.LOGIN_WITH_APPLE})]})})]})]});Ve.displayName="LoginForm";const We=({handleSubmit:t,showSocialButtons:s=!1})=>e.jsxs("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[e.jsxs(ye,{onSubmit:t,submit:oe.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e.jsx(Re,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:oe.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:He,autoComplete:"email"}),e.jsx(Re,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:oe.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:oe.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:Ye,autoComplete:"new-password"})]}),s&&e.jsxs(e.Fragment,{children:[e.jsx(K,{}),e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsxs("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e.jsx(R,{onClick:()=>window.location.assign(Ue),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:oe.UI.SIGNUP_WITH_GOOGLE}),e.jsx(R,{onClick:()=>window.location.assign(Ge),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:oe.UI.SIGNUP_WITH_APPLE})]})})]})]});We.displayName="RegisterForm";const ze=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e.jsx(ye,{onSubmit:t,submit:oe.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(Re,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:oe.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:He})})});ze.displayName="ForgotPasswordForm";const qe=({loginSubmit:s,registerSubmit:a,passwordForgotSubmit:i,handleTokenCallback:r,showSocialLogin:n=!1})=>{const[o,l]=t.useState(!1);return t.useEffect((()=>{!function(){w(this,0,void 0,(function*(){if(!process.env.AWS_COGNITO_USERPOOL_DOMAIN||!process.env.AWS_COGNITO_CLIENT_ID||!process.env.AWS_COGNITO_REDIRECT_URI)return;const e=new URLSearchParams(window.location.search).get("code");if(e){const t=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/token`,s=new URLSearchParams;s.append("grant_type","authorization_code"),s.append("client_id",process.env.AWS_COGNITO_CLIENT_ID),s.append("code",e),s.append("redirect_uri",process.env.AWS_COGNITO_REDIRECT_URI);const a=yield fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s}),i=yield a.json();i&&r&&"function"==typeof r&&r(i)}}))}()}),[]),e.jsxs("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-128",children:[!o&&e.jsx(we,{data:[{title:"Login",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(Ve,{handleSubmit:s,showSocialButtons:n}),e.jsx("div",{className:"mt-4",children:e.jsx(R,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsx(We,{handleSubmit:a,showSocialButtons:n})})}]}),o&&e.jsx(we,{data:[{title:"Forgot Password",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(ze,{handleSubmit:i}),e.jsx("div",{className:"mt-4",children:e.jsx(R,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};function Ke({className:t,onClick:s}){return e.jsx(R,{className:"absolute -right-2 top-1/2 -translate-y-1/2 z-10",onClick:s,icon:"mdi:navigate-next",rounded:!0})}function Ze({className:t,onClick:s}){return e.jsx(R,{className:"absolute -left-2 top-1/2 -translate-y-1/2 z-10",onClick:s,icon:"mdi:navigate-before",rounded:!0})}qe.displayName="Authenticator";const $e=({testID:t,data:s,onPressCallback:a=(()=>{}),count:i=5,isCentered:r=!1,carouselOptions:n={loop:!1,scrollAnimationDuration:500,showDots:!1,showArrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:i}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}]}})=>{const o=s.length<=i;return e.jsx("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e.jsx(m,{arrows:!o&&n.showArrows,nextArrow:e.jsx(Ke,{}),prevArrow:e.jsx(Ze,{}),centerMode:r,responsive:n.responsive,slidesToScroll:1,slidesToShow:i,dots:!o&&n.showDots,infinite:!o&&n.loop,speed:n.scrollAnimationDuration,children:s.map(((t,s)=>e.jsx("div",{className:"px-2",children:e.jsx(Ie,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>{a(t.data.id)}}),className:t.className},s)},s)))})})};var Xe;$e.displayName="Carousel",function(e){e.NONE="py-0",e.ATOM="py-8",e.DEFAULT="py-16",e.ELEMENT="py-24",e.COMPONENT="py-32",e.MODULE="py-40",e.FEATURE="py-64"}(Xe||(Xe={}));const Qe=({testID:i,cardData:r,title:n,description:o,withSeparators:l,spacing:d=Xe.MODULE})=>{const c=t.useRef(null),u=a.useInView(c,{once:!0});return e.jsxs("div",{ref:c,"data-testid":i||"PanelCards",className:s("relative m-auto w-full flex flex-col flex-none flex-nowrap",d),children:[(n||o)&&e.jsxs("div",{className:"relative text-center py-8",children:[n&&e.jsx(Ce,{text:n}),o&&e.jsx(G,{align:exports.COPY_ALIGN.CENTER,children:o})]}),e.jsx("div",{className:"flex gap-8 items-center justify-center flex-col md:flex-row",children:null==r?void 0:r.map(((t,a)=>e.jsxs("span",{className:"flex gap-8 justify-between items-center",children:[e.jsx("div",{className:s("relative flex flex-1 items-center justify-center",{"":l}),style:{transform:u?"none":"translateY(200px)",opacity:u?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*a}s`},children:e.jsx(Ie,Object.assign({},t))}),l&&a<r.length-1&&e.jsx("div",{className:"w-1 h-10 border-0 border-r border-solid border-primary500"},`separator-${a}`)]},`card-${a}`)))})]})};Qe.displayName="PanelCards";const Je=({testID:t,title:a,description:i,inversed:r,assets:n,buttonData:o,withBg:l=!0,spacing:d=Xe.DEFAULT,chips:c})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap px-4 md:px-0",d),children:[l&&e.jsx("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -top-24 -left-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e.jsx(Me,{children:e.jsxs("div",{className:s("relative flex flex-col-reverse sm:flex-col md:flex-row lg:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 md:items-center gap-16",{"flex-row-reverse":r}),children:[e.jsxs("div",{className:"w-full md:w-1/2 flex flex-col items-start justify-center gap-8",children:[e.jsx("div",{className:"relative text-center md:text-left",children:e.jsx(Ce,{text:a,flush:!0})}),e.jsx("div",{className:"relative text-center md:text-left",children:e.jsx(G,{className:"mb-0",children:i})}),c&&e.jsx("div",{className:"grid grid-cols-3 gap-2 mx-auto md:mx-0",children:null==c?void 0:c.map(((t,s)=>e.jsx(H,{rounded:!0,iconFirst:!0,text:t.text,icon:t.icon,variant:t.variant},`chip-${s}`)))}),e.jsx("div",{className:"mx-auto md:m-0",children:e.jsx(R,Object.assign({},o))})]}),e.jsx("div",{className:"w-full md:w-1/2 flex items-center justify-center",children:e.jsx("div",{className:"w-full aspect-[1/1] flex items-center justify-center",children:e.jsx(Be,{bgAsset:n.bgAsset,focalAsset1:n.focalAsset1,focalAsset2:n.focalAsset2,focalAsset3:n.focalAsset3})})})]})})]});Je.displayName="PanelFeature";const et=({url:a,sources:i,onReady:n,onExitFullScreenCallback:o,className:l,options:d={},isYoutube:c=!1,defaultAudioTrack:u="No Music",rounded:m=!0,aspectRatioValue:h,fullScreenOnly:v=!1})=>{const f=t.useRef(null),N=t.useRef(null),g=t.useRef(null),E=t.useMemo((()=>{switch(console.log("aspectRatioValue",h),h){case"4/3":return{aspectRatio:"4:3",className:"aspect-[4/3]"};case"1/1":return{aspectRatio:"1:1",className:"aspect-[1/1]"};case"3/4":return{aspectRatio:"3:4",className:"aspect-[3/4]"};case"9/16":return{aspectRatio:"9:16",className:"aspect-[9/16]"};case"16/7":return{aspectRatio:"16:7",className:"aspect-[16/7]"};case"16/5":return{aspectRatio:"16:5",className:"aspect-[16/5]"};default:return{aspectRatio:"16:9",className:"aspect-[16/9]"}}}),[h]);return t.useEffect((()=>{var e;if(c)return;const t=Object.assign(Object.assign({autoplay:!0,controls:!0,muted:!1,playsinline:!1,preferFullWindow:!0,responsive:!0,fill:!0,fluid:!0,aspectRatio:E.aspectRatio||"16:9",controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},d),{sources:i});if(console.log("videoOptions",t),g.current){const e=g.current;e.autoplay(d.autoplay),e.src(d.sources)}else{const s=document.createElement("video-js");s.classList.add("vjs-big-play-centered"),null===(e=null==N?void 0:N.current)||void 0===e||e.appendChild(s);const a=g.current=x(s,t,(()=>{x.log("player is ready",a),n&&n(a)}));v&&a.requestFullscreen(),a.on("loadedmetadata",(function(){const e=a.audioTracks();for(let t=0;t<e.length;t++)e[t].label===u&&(e[t].enabled=!0)})),a.on("fullscreenchange",(function(){a.isFullscreen()?console.log("Player is in fullscreen"):(console.log("Player is not in fullscreen"),o&&"function"==typeof o&&o())}))}}),[d,N]),t.useEffect((()=>{if(c)return;const e=g.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),g.current=null)}}),[g]),c&&a?e.jsx("div",{"data-testid":"Video",className:s("relative w-full h-full aspect-[16/9]",l),children:e.jsx(p,{ref:f,className:"react-player",url:a,width:"100%",height:"100%",controls:!0,onReady:n})}):(console.log("aspectRatioConfig",E),e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden h-full aspect-[16/9] bg-black object-cover",{rouded:m},E.className,l)),children:e.jsx("div",{"data-vjs-player":!0,children:e.jsx("div",{ref:N,className:"object-cover"})})}))};et.displayName="Video";const tt=({testID:i,title:n,contentComponent:o,description:l,image:d,buttonData:c,inversed:u=!1,withBg:m=!0,spacing:p,video:x,headingTag:h,className:v})=>{const f=a.useAnimation(),N=t.useRef(null),g=a.useInView(N),E={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};t.useEffect((()=>{g&&f.start((e=>({transform:"none",transition:Object.assign(Object.assign({},E),{delay:.1*e})})))}),[f,g]);const S=t.useMemo((()=>{switch(null==x?void 0:x.aspectRatioValue){case"4/3":return"aspect-[4/3]";case"1/1":return"aspect-[1/1]";case"3/4":return"aspect-[3/4]";case"9/16":return"aspect-[9/16]";case"16/7":return"aspect-[16/7]";case"16/5":return"aspect-[16/5]";default:return"aspect-[16/9]"}}),[x]),A=u?"translateX(100px)":"translateX(-100px)";return e.jsxs("div",{"data-testid":i||"PanelHero",className:r.twMerge(s("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",p,v)),children:[m&&e.jsx("div",{className:s("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-b md:bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!u,"-top-24 left-0":u})}),e.jsx(Me,{children:e.jsxs("div",{className:s("relative flex flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-0 md:gap-16",{"md:flex-row-reverse":u}),children:[e.jsx("div",{ref:N,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:e.jsxs("div",{className:s("relative flex flex-col gap-4 from-bodyBackground dark:from-darkBodyBackground p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!u},{"text-left bg-gradient-to-t md:bg-gradient-to-r":u}),children:[e.jsx(a.motion.div,{initial:{transform:A},custom:0,animate:f,children:e.jsx(Ce,{text:n,tag:h})}),o&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:f,children:o}),l&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:f,children:e.jsx(pe,{className:"mb-0",align:u?exports.COPY_ALIGN.LEFT:exports.COPY_ALIGN.RIGHT,data:l})}),c&&e.jsx(a.motion.div,{initial:{transform:A},custom:2,animate:f,children:e.jsx("div",{className:s("flex items-center",{"justify-end":!u,"justify-start":u}),children:e.jsx(R,Object.assign({},c))})})]})}),e.jsx("div",{className:"relative w-full md:w-1/2 z-0",children:e.jsxs("div",{className:s("relative scale-[1.35] rounded overflow-hidden shadow",S),children:[d&&e.jsx(Z,{src:d,alt:n,fill:!0}),x&&e.jsx(et,{sources:x.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:x.aspectRatioValue})]})})]})})]})};tt.displayName="PanelHero";const st=({testID:t,title:a,description:i,image1:r,image2:n,iosLink:o="#",androidLink:l="#",inversed:d=!1,withBg:c=!0,spacing:u=Xe.MODULE})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap",u),children:[c&&e.jsx("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -bottom-24 -right-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e.jsx(Me,{children:e.jsxs("div",{className:s("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-tertiary dark:bg-secondary rounded p-8 shadow",{"flex-row-reverse":d}),children:[e.jsxs("div",{className:"w-full md:w-1/2 top-0 relative",children:[e.jsx("div",{className:"absolute aspect-[8/17] -rotate-12 w-[135px] left-1/3 top-4 md:w-[180px] md:left-1/3 md:top-4 lg:w-[210px] lg:left-1/2 lg:-top-1/3",children:e.jsx(Z,{src:n,alt:a})}),e.jsx("div",{className:"relative md:absolute aspect-[8/17] -rotate-0 w-[150px] left-0 top-0 md:w-[220px] md:left-0 md:-top-6 lg:w-[250px] lg:left-1/4 lg:-top-1/2",children:e.jsx(Z,{src:r,alt:a})})]}),e.jsxs("div",{className:"w-full md:w-1/2",children:[e.jsx("div",{children:e.jsx(Ce,{text:a})}),e.jsx("div",{children:e.jsx(G,{children:i})}),e.jsxs("div",{className:"flex items-center justify-start gap-4",children:[e.jsx("div",{className:"relative w-[150px] h-[50px]",children:e.jsx(k,{href:o,target:"_blank",hideExternalIcon:!0,children:e.jsx(Z,{src:"https://apple-resources.s3.amazonaws.com/media-badges/download-on-the-app-store/black/en-us.svg",alt:"App Store"})})}),e.jsx("div",{className:"relative w-[190px] h-[75px]",children:e.jsx(k,{href:l,target:"_blank",hideExternalIcon:!0,children:e.jsx(Z,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});st.displayName="PanelProduct";const at=({testID:t,className:i,title:n,description:o,spacing:l=Xe.NONE,videoProps:d})=>e.jsxs("div",{"data-testid":t||'"PanelVideo"',className:r.twMerge(s("relative m-auto w-full flex flex-none flex-nowrap overflow-hidden items-center justify-center",`md:aspect-[${d.aspectRatioValue}]`,l,i)),children:[e.jsx(et,{rounded:!1,aspectRatioValue:d.aspectRatioValue,options:Object.assign({autoplay:!0,muted:!0,controls:!1,loop:!0},null==d?void 0:d.options),sources:null==d?void 0:d.sources}),e.jsxs("div",{className:"absolute top-0 left-0 w-full h-full z-10",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-gradient-to-r from-transparent to-black opacity-50"}),e.jsxs("div",{className:"absolute top-0 left-2 md:left-0 w-full h-full flex flex-col items-end justify-center pr-24 text-white",children:[n&&e.jsx(a.motion.div,{initial:{transform:"translateX(25px)"},animate:{transform:"none",transition:{damping:60,delay:0,mass:1.2,stiffness:300,type:"spring"}},transition:{duration:.5},children:e.jsx("div",{children:e.jsx(Ce,{text:n})})}),o&&e.jsx(a.motion.div,{initial:{transform:"translateX(25px)"},animate:{transform:"none",transition:{damping:60,delay:0,mass:1.2,stiffness:300,type:"spring"}},transition:{duration:.5},children:e.jsx("div",{children:e.jsx(G,{children:o})})})]})]})]});at.displayName="PanelVideo";const it=({testID:t,data:s,onPressCallback:a})=>e.jsx("div",{"data-testid":t||'"CardGrid"',className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:s.map(((t,s)=>e.jsx(Ie,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>a(t.data.id)})},s)))});var rt;it.displayName="CardGrid",exports.CPL_SPACING=void 0,(rt=exports.CPL_SPACING||(exports.CPL_SPACING={})).NONE="none",rt.ATOM="atom",rt.DEFAULT="default",rt.ELEMENT="element",rt.COMPONENT="component",rt.MODULE="module",rt.FEATURE="feature";const nt=({spacing:t=exports.CPL_SPACING.DEFAULT,children:a,narrow:i,flush:r,className:n})=>{const o=s("flex","flex-col","flex-1","relative",{"py-40":"feature"===t},{"py-24":"component"===t},{"py-16":"module"===t},{"py-10":"element"===t},{"py-8":"default"===t},{"py-4":"atom"===t},{"py-0":"none"===t},{"max-w-5xl":i},{"p-0":r},n);return e.jsx("div",{"data-testid":"ContentPageLayout",className:o,children:a})};var ot;nt.displayName="ContentPageLayout",exports.CRL_SIZE=void 0,(ot=exports.CRL_SIZE||(exports.CRL_SIZE={})).NONE="none",ot.ATOM="atom",ot.DEFAULT="default",ot.ELEMENT="element",ot.COMPONENT="component",ot.MODULE="module",ot.FEATURE="feature";const lt=({className:t,children:a,size:i=exports.CRL_SIZE.DEFAULT})=>{const r=s("grid","auto-rows-min","grid-cols-1","gap-x-4",{"gap-y-0 mb-0":"none"===i},{"gap-y-2 mb-2":"atom"===i},{"gap-y-4 mb-4":"default"===i},{"gap-y-8 mb-8":"element"===i},{"gap-y-16 mb-16":"module"===i},{"gap-y-24 mb-24":"component"===i},{"gap-y-40 mb-40":"feature"===i},t);return e.jsx("div",{"data-testid":"ContentRowsLayout",className:r,children:a})};lt.displayName="ContentRowsLayout";const dt=({testID:a,className:i})=>{var r,n,o,l,d,c,u,m,p,x,h,v,f,N;const g=t.useContext(ve);return e.jsx("footer",{className:s("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8",i),children:e.jsxs(Me,{padded:!0,children:[e.jsxs("div",{"data-testid":a||'"Footer"',className:"footer flex flex-col md:flex-row py-8 gap-8",children:[e.jsxs("div",{className:"relative w-full md:w-1/3 flex flex-col gap-4 items-center md:items-start",children:[(null===(r=null==g?void 0:g.brand)||void 0===r?void 0:r.logo)&&e.jsx("div",{className:"relative w-24",children:e.jsx(ee,{logo:null===(n=null==g?void 0:g.brand)||void 0===n?void 0:n.logo,aspectRatioClass:null===(o=null==g?void 0:g.brand)||void 0===o?void 0:o.logoAspectRatio})}),(null===(l=g.footer)||void 0===l?void 0:l.about)&&e.jsx("div",{children:e.jsx(G,{children:g.footer.about})}),e.jsx("div",{children:e.jsx(De,{facebook:null===(c=null===(d=g.footer)||void 0===d?void 0:d.visitUs)||void 0===c?void 0:c.facebook,twitter:null===(m=null===(u=g.footer)||void 0===u?void 0:u.visitUs)||void 0===m?void 0:m.twitter,instagram:null===(x=null===(p=g.footer)||void 0===p?void 0:p.visitUs)||void 0===x?void 0:x.instagram,linkedin:null===(v=null===(h=g.footer)||void 0===h?void 0:h.visitUs)||void 0===v?void 0:v.linkedin})})]}),(null===(f=g.footer)||void 0===f?void 0:f.menus)&&e.jsx("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:g.footer.menus.map(((t,s)=>e.jsx("div",{className:"flex flex-1",children:e.jsx(ke,{title:t.title,links:t.links,inline:!1})},`${t.title}--${s}`)))})]}),e.jsxs("div",{className:"flex items-center justify-center flex-col",children:[e.jsxs(G,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:["© ",(new Date).getFullYear()," ",oe.UI.COPYRIGHT," ",null===(N=g.brand)||void 0===N?void 0:N.name]}),e.jsx(G,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:oe.UI.ALL_RIGHTS_RESERVED})]})]})})};dt.displayName="Footer";const ct=({testID:a,hideMenu:i=!1,className:n,logoOnly:o})=>{var l,d,c,u,m,p,x,h,v,f,N,g,E,S,A,b,T,j,I,C,y,O;const _=t.useContext(ve),L=Ne(),[w,D]=t.useState("hidden"),[P,M]=t.useState(!1),F=()=>{D("hidden"===w?"block":"hidden")};return o?e.jsx("header",{"data-testid":a||'"Header"',className:r.twMerge(s("relative z-10 w-full m-auto py-4 bg-bodyBackground dark:bg-darkBodyBackground",n)),children:e.jsx("div",{className:"relative w-full flex justify-center items-center",children:(null===(l=null==_?void 0:_.brand)||void 0===l?void 0:l.logo)&&e.jsx("div",{className:"relative w-56",children:e.jsx(k,{href:"/",children:e.jsx(ee,{logo:null===(d=null==_?void 0:_.brand)||void 0===d?void 0:d.logo,aspectRatioClass:null===(c=null==_?void 0:_.brand)||void 0===c?void 0:c.logoAspectRatio})})})})}):e.jsx("header",{"data-testid":a||'"Header"',className:r.twMerge(s("relative w-full m-auto py-4 bg-bodyBackground dark:bg-darkBodyBackground",n)),children:e.jsxs(Me,{padded:!0,children:[e.jsxs("div",{className:"relative w-full flex",children:[(null===(u=null==_?void 0:_.brand)||void 0===u?void 0:u.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(k,{href:"/",children:e.jsx(ee,{logo:null===(m=null==_?void 0:_.brand)||void 0===m?void 0:m.logo,aspectRatioClass:null===(p=null==_?void 0:_.brand)||void 0===p?void 0:p.logoAspectRatio})})}),e.jsx("div",{className:"flex-1 hidden md:flex items-center justify-center",children:(null===(x=null==_?void 0:_.header)||void 0===x?void 0:x.nav)&&e.jsx(ke,{links:_.header.nav,separators:!0})}),e.jsxs("div",{className:"hidden md:flex flex-col justify-center",children:[!(null===(h=null==_?void 0:_.app)||void 0===h?void 0:h.isAuthenticated)&&(null===(v=null==_?void 0:_.app)||void 0===v?void 0:v.loginCallback)&&e.jsx("div",{className:"w-32 flex justify-end",children:e.jsx(R,{onClick:null===(f=null==_?void 0:_.app)||void 0===f?void 0:f.loginCallback,children:L.UI.LOGIN})}),!(null===(N=null==_?void 0:_.app)||void 0===N?void 0:N.isAuthenticated)&&!(null===(g=null==_?void 0:_.app)||void 0===g?void 0:g.loginCallback)&&e.jsx("div",{className:"w-32 flex justify-end"}),(null===(E=null==_?void 0:_.app)||void 0===E?void 0:E.isAuthenticated)&&e.jsxs("div",{className:"relative",children:[e.jsx(R,{onClick:()=>M(!P),icon:P?"mdi:user-outline":"mdi:user"}),e.jsx("div",{onClick:()=>M(!1),className:s("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!P}),children:(null===(S=null==_?void 0:_.header)||void 0===S?void 0:S.profile)&&e.jsx(ke,{links:_.header.profile,inline:!1})})]})]}),e.jsx("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:menu",onClick:F})})]}),e.jsxs("div",{className:s("navbar-menu relative z-50",w,{hidden:i}),children:[e.jsx("div",{className:"navbar-backdrop fixed inset-0 bg-black opacity-25"}),e.jsxs("nav",{className:"fixed top-0 left-0 bottom-0 flex flex-col w-5/6 max-w-sm py-4 px-4 bg-bodyBackground dark:bg-darkBodyBackground border-r overflow-y-auto",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("div",{className:"relative w-32",children:(null===(A=null==_?void 0:_.brand)||void 0===A?void 0:A.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(ee,{logo:null===(b=null==_?void 0:_.brand)||void 0===b?void 0:b.logo,aspectRatioClass:null===(T=null==_?void 0:_.brand)||void 0===T?void 0:T.logoAspectRatio})})}),e.jsx("div",{children:e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:close",onClick:F})})]}),e.jsxs("div",{className:"flex flex-col flex-1 gap-4",children:[(null===(j=null==_?void 0:_.app)||void 0===j?void 0:j.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(G,{children:"User profile avatar and details here."})}),e.jsx("div",{className:"flex flex-1 justify-center pt-4",children:(null===(I=null==_?void 0:_.header)||void 0===I?void 0:I.nav)&&e.jsx(ke,{links:_.header.nav,inline:!1})}),(null===(C=null==_?void 0:_.app)||void 0===C?void 0:C.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(R,{onClick:null===(y=null==_?void 0:_.app)||void 0===y?void 0:y.logoutCallback,children:L.UI.LOGOUT})}),!(null===(O=null==_?void 0:_.app)||void 0===O?void 0:O.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(R,{onClick:()=>{var e;null===(e=null==_?void 0:_.app)||void 0===e||e.loginCallback(),F()},children:L.UI.LOGIN})})]})]})]})]})})};ct.displayName="Header";const ut=({testID:a,inputCallback:i,seperator:r,numInputs:n=4,shouldAutoFocus:o=!1,size:l="medium"})=>{const[d,c]=t.useState("");t.useEffect((()=>{d&&4===d.length&&void 0!==i&&"function"==typeof i&&i(d)}),[d]);const u=t.useMemo((()=>{switch(l){case"small":return{width:"2.5rem",height:"3rem"};case"medium":return{width:"3.5rem",height:"4rem"};case"large":return{width:"4.5rem",height:"5rem"};default:return{width:"2.5rem",height:"2.5rem"}}}),[l]);return e.jsx("div",{"data-testid":a||'"OTPInput"',className:"foo-bar",children:e.jsx(h,{value:d,onChange:c,inputType:"number",numInputs:n,shouldAutoFocus:o,renderSeparator:r?()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(j,{name:"mdi:dot",className:"opacity-50"})}):e.jsx("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e.jsx("input",Object.assign({},t,{className:s("remove-arrow form-item text-input w-12")})),inputStyle:{width:u.width,height:u.height}})})};var mt,pt;function xt({className:t,label:a,onChange:i,options:r}){return r?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx($,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(_e,{id:a||"Sorting",options:r,onChange:e=>i(e.target.value)})]}):null}function ht(t){var{className:a,current:i,resultsPerPage:r=10,onChange:n,totalPages:o}=t,l=L(t,["className","current","resultsPerPage","onChange","totalPages"]);return e.jsx(N,Object.assign({current:i,onChange:n,simple:!0,pageSize:r,total:o*r,className:s("m-0 p-0 list-none text-bodyTextInverted flex gap-2 text-center items-center [&>li>span]:px-2 [&>li>input]:text-black [&>li>input]:rounded [&>li>input]:text-center",a),locale:g,prevIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(j,{name:"mdi:chevron-left"})}),nextIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(j,{name:"mdi:chevron-right"})})},l))}function vt({className:t,onChange:a,options:i,label:r}){return i?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx($,{className:"text-sm mr-2",transform:exports.COPY_TRANSFORM.UPPERCASE,children:oe.UI.SHOW}),e.jsx(_e,{id:r||"ResultsPerPage",options:i.map((e=>({label:e.toString(),value:e}))),onChange:e=>a(e.target.value),className:"min-w-20"})]}):e.jsx(e.Fragment,{})}function ft(t){var{className:a,end:i,searchTerm:r,start:n,totalResults:o}=t,l=L(t,["className","end","searchTerm","start","totalResults"]);return e.jsxs("div",Object.assign({className:s("m-0 p-0 flex-1",a)},l,{children:["Showing"," ",e.jsxs("strong",{children:[n," - ",i]})," ","out of ",e.jsx("strong",{children:o}),r&&e.jsxs(e.Fragment,{children:[" ","for: ",e.jsx("em",{children:r})]})]}))}function Nt({className:a,onChange:i,onSubmit:r,wasSearched:n,placeholder:o,allowReset:l=!1,resetTrigger:d=(()=>{})}){return t.useContext(f.SearchContext),e.jsx("div",{className:s("m-0 md:px-48",a),children:e.jsxs("form",{onSubmit:e=>r(e),className:"flex items-center",children:[e.jsx("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e.jsx(ne,{name:"SearchBoxInput",type:re.TEXT,placeholder:o||"Search now...",onChange:e=>{var t;i(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)}})}),e.jsx("div",{className:"pl-4",children:e.jsxs("div",{className:"flex flex-row gap-2",children:[n&&l&&e.jsx(R,{type:exports.BTN_TYPES.BUTTON,onClick:()=>d("",{shouldClearFilters:!1}),variant:exports.BTN_VARIANTS.SECONDARY,icon:"mdi:restore"}),e.jsx(R,{type:exports.BTN_TYPES.SUBMIT,variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:magnify"})]})})]})})}function gt({className:t,children:a,header:i,bodyContent:r,bodyFooter:n,bodyHeader:o,sideContent:l,showSidebar:d}){const c=s("hidden md:block fixed md:relative w-full h-full left-0 md:left-auto top-0 md:top-auto px-2 pb-4 md:pt-6 md:px-6 md:pb-auto md:pl-0",{"hidden md:hidden":!l});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s("w-full flex flex-col",t),children:[e.jsx("div",{className:"m-auto md:py-0 w-full",children:i}),e.jsxs("div",{className:s("md:grid m-auto md:py-0 w-full",{"md:grid-cols-searchLayout":!l,"md:grid-cols-searchLayoutWithSidebar":l}),children:[!E.isMobile&&e.jsx("div",{className:c,children:l}),e.jsxs("div",{className:s("p-0 pt-2 md:p-6 md:pr-0",{"md:pl-0":!l}),children:[e.jsx("div",{className:"flex flex-row gap-8 items-center justify-end",children:o}),e.jsx("div",{className:"relative",children:a||r}),e.jsx("div",{className:"flex items-center justify-around",children:n})]})]})]}),E.isMobile&&d&&e.jsx("div",{className:"fixed z-10 w-full top-0 left-0 right-0 bottom-0 bg-bodyBackground px-4 overflow-scroll",children:l})]})}function Et(t){var{children:a,className:i,gridClasses:r}=t,n=L(t,["children","className","gridClasses"]);const o=r||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return e.jsx("ul",Object.assign({className:s("relative grid gap-4 mb-4",o,i)},n,{children:a}))}function St(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function At(e,t){if(e)return e[t]}function bt(e){const t=At(e,"snippet")||(s=function(e){return At(e,"raw")}(e),s?String(s).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):"");var s;return Array.isArray(t)?t.join(", "):t}function Tt({className:t,result:a,as:i,cardMap:r={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:n,titleField:o,imageField:l,videoField:d,descriptionField:c,metaDataFields:u,cardProps:m}=r,p=n&&bt(a[n.fieldName]),x=o&&bt(a[o.fieldName]),h=l&&bt(a[l.fieldName]),v=d&&d.formatter?d.formatter(bt(a[d.fieldName])):d&&bt(a[d.fieldName]),f=c&&bt(a[c.fieldName]),N=u&&u.map((e=>{const t=bt(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)}));return e.jsx("li",{className:s("relative",t),children:(()=>{const t={id:p,title:x,image:{src:h||"",alt:x||"",title:x||"",width:500,height:500},video:v,description:f,metaData:N,actions:r.actionsData,onClick:r.onClickLink};switch(i){case exports.ResultAsTypes.cardMedia:return e.jsx(Ie,Object.assign({variant:exports.CardVariant.MEDIA,data:t},m));case exports.ResultAsTypes.cardVideo:return e.jsx(Ie,Object.assign({variant:exports.CardVariant.VIDEO,data:t},m,{isMuted:!1}));default:return e.jsx(Ie,Object.assign({variant:exports.CardVariant.BASIC,data:t},m))}})()})}function jt({showOptions:s,sortOptions:a,resultAs:i=exports.ResultAsTypes.cardBasic,ResultFieldMap:r,config:n={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:o=[],noSidebar:l=!1,customConnector:d,showPagingInfo:c,gridClasses:u,initialState:m={},showTextSearch:p=!0}){const x=Ne(),h=t.useMemo((()=>{const e={host:process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""};return new v(d||e)}),[]),N=t.useMemo((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:!0,apiConnector:h,hasA11yNotifications:!0,searchQuery:{filters:n.filters||[],search_fields:n.searchFields||{},result_fields:n.resultsFields||{},facets:n.facets},autocompleteQuery:{results:{search_fields:{title:{},description:{}},resultsPerPage:5,result_fields:{title:{snippet:{size:100,fallback:!0}}}}},initialState:Object.assign({resultsPerPage:(null==s?void 0:s[0])||8},m)})),[n]),[g,E]=t.useState(!1),S=()=>{E((e=>!e))};return e.jsx(f.SearchProvider,{config:N,children:e.jsx(f.WithSearch,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:t,setSearchTerm:d})=>{var m;return e.jsx(e.Fragment,{children:e.jsx(f.ErrorBoundary,{children:e.jsx(gt,{noSidebar:l,showSidebar:g,header:p&&e.jsx(f.SearchBox,{view:s=>e.jsx(Nt,Object.assign({},s,{wasSearched:t,placeholder:n.initialPlaceholder,allowReset:!0,resetTrigger:d}))}),sideContent:!l&&o&&e.jsxs("div",{children:[e.jsx("div",{className:"md:hidden flex justify-end pt-2 -mb-2",children:e.jsx(R,{onClick:S,icon:"mdi:close",children:null===(m=null==x?void 0:x.UI)||void 0===m?void 0:m.HIDE_FILTERS})}),t&&a&&e.jsx(f.Sorting,{label:"Sort by",sortOptions:a,view:xt}),null==o?void 0:o.map((({field:t,label:s,view:a})=>e.jsx(f.Facet,{field:t,label:s,view:a},t)))]}),bodyContent:e.jsx(f.Results,{shouldTrackClickThrough:!1,resultView:t=>e.jsx(Tt,Object.assign({},t,{as:i,cardMap:r})),className:"list-none p-0 m-0",view:t=>e.jsx(Et,Object.assign({},t,{gridClasses:u}))}),bodyHeader:e.jsxs(e.Fragment,{children:[t&&c&&e.jsx(f.PagingInfo,{view:ft}),t&&s&&e.jsx(f.ResultsPerPage,{view:vt,options:s}),t&&a&&l&&e.jsx(f.Sorting,{label:"Sort by",sortOptions:a,view:xt}),t&&!l&&e.jsx("div",{className:"block md:hidden",children:e.jsx(R,{rounded:!0,onClick:S,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e.jsx(f.Paging,{view:ht})})})})}})})}function It({className:t,label:a,onChange:i,options:r}){const n=r.map((e=>({value:e.value,label:`${e.value} (${e.count})`})));return e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx($,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(_e,{id:a,options:n,onChange:e=>i(e.target.value)})]})}function Ct({className:t,label:a,onRemove:i,onSelect:r,options:n}){const o=n.filter((e=>e.selected)).map((e=>e.value))[0];return e.jsx("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:e.jsxs("div",{children:[e.jsx($,{transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsxs("ul",{className:"ul list-none p-0",children:[o&&e.jsxs("li",{className:"m-0 flex justify-between items-center flex-1",children:[St(o),e.jsx("span",{className:"ml-1 px-1",children:e.jsx(R,{onClick:()=>i(o),size:exports.BTN_SIZES.SMALL,rounded:!0,children:e.jsx(j,{name:"mdi:close"})})})]}),!o&&n.map((t=>{const s=St(t.value);return e.jsxs("li",{className:"m-0 flex justify-between",children:[e.jsx("a",{className:"no-underline visited:text-bodyText","data-transaction-name":`facet - ${a}`,href:"/",onClick:e=>{e.preventDefault(),r(t.value)},children:e.jsx("label",{className:"label pl-0 leading-none text-bodyText dark:text-darkBodyText",children:s})}),e.jsx(G,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.MEDIUM,children:t.count.toLocaleString("en")})]},s)}))]})]})})}function yt({className:t,label:a,onMoreClick:i,onRemove:r,onSelect:n,options:o,showMore:l,showSearch:d,onSearch:c,searchPlaceholder:u}){return o?e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx($,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),d&&e.jsx("div",{className:"mt-1",children:e.jsx(ne,{type:re.SEARCH,placeholder:u||"Search",onChange:e=>{c(e.target.value)}})}),e.jsxs("div",{className:"my-4",children:[(null==o?void 0:o.length)<1&&e.jsx("div",{children:"No matching options"}),null==o?void 0:o.map((t=>{const s=t.selected,i=t.value,o=St(i);return e.jsxs("div",{className:"flex justify-between pb-2",children:[e.jsx(D,{id:`facet_${a}${o}`,"data-transaction-name":`facet - ${a}`,checked:s,onChange:()=>s?r(i):n(i),label:o}),e.jsx(G,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.SMALL,children:t.count.toLocaleString("en")})]},o)}))]}),l&&e.jsx(R,{size:exports.BTN_SIZES.SMALL,variant:exports.BTN_VARIANTS.TERTIARY,onClick:i,"aria-label":"Show more options",children:"+ More"})]}):e.jsx(e.Fragment,{children:"Options required"})}ut.displayName="OTPInput",exports.CardVariant=void 0,(mt=exports.CardVariant||(exports.CardVariant={})).BASIC="basic",mt.MEDIA="media",mt.VIDEO="video",mt.ICON="icon",mt.HORZ="horz",mt.DATA="data",exports.ResultAsTypes=void 0,(pt=exports.ResultAsTypes||(exports.ResultAsTypes={})).cardBasic="cardBasic",pt.cardMedia="cardMedia",pt.cardVideo="cardVideo",xt.displayName="Sorting",ht.displayName="Paging",vt.displayName="ResultsPerPage",ft.displayName="PagingInfo",Nt.displayName="SearchBox",gt.displayName="Layout",Et.displayName="Results",Tt.displayName="Result",It.displayName="SingleSelectFacet",Ct.displayName="SingleLinksFacet",yt.displayName="MultiCheckboxFacet";const Ot=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e.jsx(ye,{onSubmit:t,submit:oe.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(Re,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:oe.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:Ye})})});Ot.displayName="ResetPasswordForm";const _t=({testID:t,initialValues:s,handleSubmit:a})=>e.jsx("div",{"data-testid":t||'"ProfileForm"',className:"form-wrapper",children:e.jsxs(ye,{onSubmit:a,submit:oe.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx("div",{className:"mb-4 items-center justify-center flex",children:e.jsx(le,{name:"avatar",initValue:null==s?void 0:s.avatar})}),e.jsx(Re,{name:"firstName",type:exports.FIELD_TYPES.TEXT,label:oe.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e.jsx(Re,{name:"lastName",type:exports.FIELD_TYPES.TEXT,label:oe.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e.jsx(Re,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:oe.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:He})]})});_t.displayName="ProfileForm";const Rt=({testID:t,children:a,showHeader:i=!0,showFooter:r=!0,image:n,showOverlay:o=!0,isFlush:l})=>e.jsxs("div",{"data-testid":t||'"Screen"',className:"h-full flex flex-col min-h-full overflow-x-hidden",children:[i&&e.jsx(ct,{className:s({"fixed top-0 left-0 right-0 bg-opacity-50 dark:bg-opacity-50 z-50":l})}),e.jsxs("main",{className:s("flex flex-1",{"pt-24 md:pt-32 lg:pt-40":n},{"pt-8 md:pt-12 lg:pt-12":!n&&!l}),children:[n&&e.jsxs("div",{className:"absolute w-full aspect-[16/5] opacity-50 z-0 top-0 left-0 right-0",children:[e.jsx(Z,{src:n,alt:"background",sizes:"100vw",style:{objectFit:"cover"}}),o&&e.jsx("div",{className:"absolute w-full h-full bg-gradient-to-b from-transparent to-bodyBackground dark:to-darkBodyBackground"})]}),e.jsx(Me,{padded:!l,isFlush:l,children:e.jsx("div",{className:"flex flex-col gap-8",children:a})})]}),r&&e.jsx(dt,{})]});Rt.displayName="Screen";const Lt=({testID:t,title:s,image:a,user:i,logoutCallback:r,menu:n})=>{var o;const l=Ne();return e.jsxs(Rt,{"data-testid":t||"AccountScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(le,{initValue:null===(o=null==i?void 0:i.profile)||void 0===o?void 0:o.picture,isEditable:!1})}),n&&e.jsx("div",{children:e.jsx(J,{className:"flex items-center flex-col justify-center gap-2",children:null==n?void 0:n.map(((t,s)=>e.jsx(te,{as:"div",title:t.title,icon:t.icon,onClick:t.onClick},s)))})}),e.jsxs("div",{className:"my-4 flex flex-col gap-8 justify-center items-center",children:[e.jsxs("div",{className:"flex items-center flex-col justify-center gap-1",children:[e.jsx(q,{tag:exports.HEADING_TAGS.H5,flush:!0,children:l.UI.SHARE}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(c.FacebookShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(j,{name:"mdi:facebook"})}),e.jsx(c.TwitterShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(j,{name:"mdi:twitter"})}),e.jsx(c.LinkedinShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(j,{name:"mdi:linkedin"})}),e.jsx(c.WhatsappShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(j,{name:"mdi:whatsapp"})})]})]}),e.jsx(R,{onClick:r,icon:"mdi:logout",children:null==l?void 0:l.UI.LOGOUT})]})]})]})};Lt.displayName="AccountScreen";const wt=({testID:t,title:s,image:a,formProps:i})=>e.jsxs(Rt,{"data-testid":t||"AuthScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),e.jsx("div",{className:"flex justify-center",children:e.jsx(qe,Object.assign({},i))})]});wt.displayName="AuthScreen";const Dt=({testID:t,title:s,image:a,data:i,onPressCallback:r,isLoading:n})=>e.jsxs(Rt,{"data-testid":t||"CardGridScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),e.jsxs("div",{children:[n&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(_,{})}),i&&e.jsx(it,{data:i,onPressCallback:r})]})]});Dt.displayName="CardGridScreen";const kt=({testID:t,title:s,image:a,searchProps:i})=>e.jsxs(Rt,{"data-testid":t||"CatalogueScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),e.jsx("div",{children:e.jsx(jt,Object.assign({},i))})]});kt.displayName="CatalogueScreen";const Pt=({testID:t,title:s,image:a,data:i,isLoading:r,onPressCallback:n})=>e.jsxs(Rt,{"data-testid":t||"ChallengeLibraryScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),r&&e.jsx("div",{className:"",children:e.jsx(_,{})}),i&&e.jsx("div",{children:e.jsx(it,{data:i,onPressCallback:n})})]});Pt.displayName="ChallengeLibraryScreen";const Mt="MMMM dd, yyyy",Ft="HH:mm",Bt=({testID:s,title:a,image:i,created:r=0,body:n,days:o,price:l,puchaseLabel:d,hasAccess:c=!1,onPressCallback:u,purchaseCallback:m})=>{const p=Ne(),x=t.useMemo((()=>S.format(new Date(1e3*r),Mt)),[r]);return e.jsxs(Rt,{"data-testid":s||"ChallengeScreen",image:i,children:[e.jsxs("div",{children:[a&&e.jsx(Ce,{text:a}),e.jsxs($,{children:[p.UI.CREATED,": ",x]}),!c&&e.jsxs("div",{className:"flex flex-col gap-2 mb-4",children:[e.jsx(G,{bold:!0,className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e.jsx(G,{className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e.jsx("div",{children:e.jsx(R,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:m,children:d})}),e.jsxs(G,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:["** ",p.GLOBAL.SCREENS.CHALLENGE.PAYMENT_NOTE]})]})]}),e.jsx("div",{children:n&&e.jsx(pe,{data:n})}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:null==o?void 0:o.map((t=>e.jsx(Ie,{variant:exports.CardVariant.MEDIA,data:{id:t.id,title:t.title,image:{src:t.image,alt:t.title},raised:!0,onClick:c?()=>u(t.id):void 0,accessRestriced:!c}},t.id)))})]})};Bt.displayName="ChallengeScreen";const Ut=({testID:t,title:s,image:a,updated:i,content:r})=>{var n;const o=Ne(),l=i?S.format(new Date(1e3*i),"MMMM dd, yyyy HH:mm"):void 0;return e.jsxs(Rt,{"data-testid":t||"ContentScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),i&&e.jsx("div",{children:e.jsxs(G,{children:[null===(n=null==o?void 0:o.UI)||void 0===n?void 0:n.UPDATED,": ",l]})}),e.jsx("div",{children:e.jsx(pe,{data:r})})]})};Ut.displayName="ContentScreen";const Gt=({testID:t,title:s,image:a,user:i,latestData:r,recentdata:n,stats:o,promo:l,news:d,statsIsLoading:c,promosIsLoading:u,dataIsLoading:m,handleLatestDataPress:p,handleRecentDataPress:x,handleNewsDataPress:h})=>{var v,f,N,g,E,S;const A=Ne();return e.jsxs(Rt,{"data-testid":t||"DashboardScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),e.jsx("div",{children:e.jsxs(G,{children:[null===(v=null==A?void 0:A.UI)||void 0===v?void 0:v.WELCOME," ",null==i?void 0:i.name]})}),c&&e.jsx("div",{children:e.jsx(_,{})}),!c&&o&&e.jsxs("div",{className:"mb-8",children:[e.jsx(q,{tag:exports.HEADING_TAGS.H4,children:null===(f=null==A?void 0:A.UI)||void 0===f?void 0:f.ACTIVITY}),e.jsx("div",{className:"flex flex-row gap-4",children:o.map(((t,s)=>e.jsx("div",{children:e.jsx(Ie,{variant:t.variant,data:t.data})},`${t.data.id}-${s}`)))})]}),m&&e.jsx("div",{children:e.jsx(_,{})}),!m&&r&&e.jsxs("div",{children:[e.jsx(q,{tag:exports.HEADING_TAGS.H4,children:null===(N=null==A?void 0:A.UI)||void 0===N?void 0:N.LATEST_WORKOUTS}),e.jsx("div",{children:e.jsx($e,{data:r,onPressCallback:p,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),u&&e.jsx("div",{children:e.jsx(_,{})}),!u&&l&&e.jsxs("div",{children:[e.jsx(q,{tag:exports.HEADING_TAGS.H4,flush:!0,children:null===(g=null==A?void 0:A.UI)||void 0===g?void 0:g.WHATS_NEWS}),e.jsx(tt,Object.assign({},l,{withBg:!0,spacing:Xe.ATOM}))]}),m&&e.jsx("div",{children:e.jsx(_,{})}),!m&&n&&e.jsxs("div",{children:[e.jsx(q,{tag:exports.HEADING_TAGS.H4,children:null===(E=null==A?void 0:A.UI)||void 0===E?void 0:E.RECENTLY_ADDED}),e.jsx("div",{children:e.jsx($e,{data:n,onPressCallback:x,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),u&&e.jsx("div",{children:e.jsx(_,{})}),!u&&d&&e.jsxs("div",{children:[e.jsx(q,{tag:exports.HEADING_TAGS.H4,children:null===(S=null==A?void 0:A.UI)||void 0===S?void 0:S.WHATS_NEW}),e.jsx("div",{children:e.jsx($e,{data:d,onPressCallback:h,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]})]})};Gt.displayName="DashboardScreen";const Ht=({title:t,isOpen:a})=>e.jsxs("div",{className:s("flex flex-row items-center justify-between p-2 border border-solid border-tertiary transition-all rounded mb-2",{"bg-tertiary":a}),children:[e.jsx(q,{flush:!0,tag:exports.HEADING_TAGS.H4,className:s("transition-all",{"text-white":a}),children:t}),e.jsx("div",{className:"",children:e.jsx(j,{name:a?"mdi:chevron-up":"mdi:chevron-down"})})]}),Yt=({testID:t,data:s,titleKey:a="title",contentKey:i="content"})=>e.jsx("div",{"data-testid":t||'"Accordion"',children:s.map((t=>e.jsx(A,{triggerTagName:"div",easing:"ease-out",triggerWhenOpen:e.jsx(Ht,{title:t[a],isOpen:!0}),trigger:e.jsx(Ht,{title:t[a],isOpen:!1}),children:e.jsx("div",{className:"p-2",children:e.jsx(G,{children:t[i]})})},t[a])))});Yt.displayName="Accordion";const Vt=({testID:t,title:s,image:a,data:i,isLoading:r})=>e.jsxs(Rt,{"data-testid":t||"FAQScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),!i&&r&&e.jsx("div",{className:"flex flex-1 items-center justify-center min-h-[125px]",children:e.jsx(_,{})}),i&&e.jsx(Yt,{data:null==i?void 0:i.map((e=>({title:e.title||"",content:e.answer||""})))})]});Vt.displayName="FAQScreen";const Wt=({testID:t,image:s,panelVideoProps:a,panelFeatureProps:i,panelCardsProps:r,panelHerosProps:n,panelDataCardsProps:o,panelProductProps:l})=>e.jsxs(Rt,{"data-testid":t||"HomeScreen",image:s,isFlush:!0,children:[a&&e.jsx(at,Object.assign({},a)),e.jsxs(Me,{children:[i&&e.jsx(Je,Object.assign({},i)),r&&e.jsx(Qe,Object.assign({},r)),null==n?void 0:n.map(((t,s)=>e.jsx(tt,Object.assign({},t),s))),o&&e.jsx(Qe,Object.assign({},o)),l&&e.jsx(st,Object.assign({},l))]})]});Wt.displayName="HomeScreen";const zt=({testID:t,title:s,image:a,menu:i,isLoading:r=!1})=>e.jsxs(Rt,{"data-testid":t||"MenuScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),r&&e.jsx("div",{className:"flex flex-1 justify-center items-center min-h-[125px]",children:e.jsx(_,{})}),i&&e.jsx(J,{children:i.map((t=>e.jsx(te,{as:"div",icon:t.icon,onClick:t.onPress,title:t.title},t.title)))})]});zt.displayName="MenuScreen";const qt=({testID:t,title:s,image:a,user:i,handleProfileSubmit:r})=>e.jsxs(Rt,{"data-testid":t||"ProfileScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),e.jsx(_t,{initialValues:null==i?void 0:i.profile,handleSubmit:r})]});qt.displayName="ProfileScreen";const Kt=({testID:s,end:a,live:i,start:r,title:n})=>{const o=t.useMemo((()=>S.format(new Date(1e3*r),Mt)),[r]),l=t.useMemo((()=>S.format(new Date(1e3*r),Ft)),[r]),d=t.useMemo((()=>S.format(new Date(1e3*a),Ft)),[a]);return e.jsxs("div",{"data-testid":s||'"ScheduleItem"',className:"foo-bar",children:[e.jsx(q,{tag:exports.HEADING_TAGS.H4,children:n}),e.jsxs($,{children:[o,": ",l," - ",d]}),i&&e.jsx("div",{children:e.jsx(et,{url:i,isYoutube:!0})})]})};Kt.displayName="ScheduleItem";const Zt=({testID:s,raised:a=!1,scheduleItems:i,hasAccess:r})=>{var n,o,l,d;const c=Ne(),[u,m]=t.useState(0),[p,x]=t.useState([]),h=t.useMemo((()=>{var t;return null===(t=null==i?void 0:i.days)||void 0===t?void 0:t.map(((t,s)=>{var a,i;const r=Object.keys(t)[0],n=null===(a=t[r])||void 0===a?void 0:a[0];return n?{day:r.charAt(0).toUpperCase()+r.slice(1),component:e.jsx(Kt,{title:n.title,live:n.live,start:n.start,end:n.end})}:{day:r.charAt(0).toUpperCase()+r.slice(1),component:e.jsx("div",{children:e.jsx(q,{tag:exports.HEADING_TAGS.H4,children:null===(i=null==c?void 0:c.UI)||void 0===i?void 0:i.NO_CLASS})})}}))}),[i]);t.useEffect((()=>{const e=function(){const e=new Date,t=e.getDay(),s=new Date(e);s.setDate(e.getDate()-t);const a=[];for(let t=0;t<7;t++){const i=new Date(s);i.setDate(s.getDate()+t),a.push({date:i,isToday:i.toDateString()===e.toDateString()})}return a}(),t=e.findIndex((e=>e.isToday));m(t),x(e)}),[]);const v=t.useMemo((()=>p.map(((e,t)=>{const s=e.date.toLocaleString("en-US",{weekday:"short"}),a=e.date.toLocaleString("en-US",{day:"numeric"}),i=u===t;return{variant:exports.CardVariant.BASIC,data:{id:`${t}`,title:s,description:a,raised:!0},className:i?"bg-tertiary":"bg-bodyBackground"}}))),[p,u]),f=t.useMemo((()=>null==h?void 0:h.find((e=>{var t;return e.day===(null===(t=null==p?void 0:p[u])||void 0===t?void 0:t.date.toLocaleString("en-US",{weekday:"long"}))}))),[h,p,u]);return e.jsxs("div",{"data-testid":s||'"Schedule"',children:[e.jsxs("div",{children:[e.jsx(q,{tag:exports.HEADING_TAGS.H5,transform:exports.HEADING_TRANSFORM.UPPERCASE,children:null===(n=null==c?void 0:c.UI)||void 0===n?void 0:n.THIS_WEEK}),e.jsx("div",{children:e.jsx($e,{data:v,onPressCallback:e=>{m(Number(e))},count:7,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500,onSnapToItem:()=>{},shouldScrollOnClick:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:7}},{breakpoint:600,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:3}}]}})})]}),e.jsxs("div",{children:[e.jsx(q,{tag:exports.HEADING_TAGS.H5,transform:exports.HEADING_TRANSFORM.UPPERCASE,children:null===(o=null==c?void 0:c.UI)||void 0===o?void 0:o.TODAYS_ITEMS}),!r&&e.jsxs("div",{children:[e.jsx(q,{tag:exports.HEADING_TAGS.H2,children:null===(l=null==c?void 0:c.UI)||void 0===l?void 0:l.ACCESS_RESTRICTED}),e.jsx(G,{children:null===(d=null==c?void 0:c.UI)||void 0===d?void 0:d.UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE})]}),r&&(null==f?void 0:f.component)]})]})};Zt.displayName="Schedule";const $t=({testID:t,title:s,image:a,scheduleData:i,isLoading:r=!1})=>e.jsxs(Rt,{"data-testid":t||"ScheduleScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),!i&&r&&e.jsx("div",{className:"flex flex-1 justify-center items-center min-h-[125px]",children:e.jsx(_,{})}),i&&e.jsx("div",{children:e.jsx(Zt,Object.assign({},i))})]});$t.displayName="ScheduleScreen";const Xt=({testID:t,initialValues:s,handleSubmit:a,isDisabled:i=!0})=>{const r=Ne();return e.jsx("div",{"data-testid":t||'"SubscriptionForm"',className:"form-wrapper",children:e.jsxs(ye,{onSubmit:a,isDisabled:i,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx(Re,{name:"status",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_STATUS_LABEL,disabled:i}),e.jsx(Re,{name:"plan",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_PLAN_LABEL,disabled:i}),e.jsx(Re,{name:"price",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_PRICE_LABEL,disabled:i}),e.jsx(Re,{name:"billingDate",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_BILLING_DATE_LABEL,required:!0,disabled:i})]})})};Xt.displayName="SubscriptionForm";const Qt=({testID:t,title:s,image:a,user:i,handleSubscriptionSubmit:r,subscriptionCallback:n})=>{var o,l,d,c;const u=Ne();return e.jsxs(Rt,{"data-testid":t||"SubscriptionScreen",image:a,children:[s&&e.jsx(Ce,{text:s}),!(null===(o=null==i?void 0:i.subscription)||void 0===o?void 0:o.status)&&e.jsx(Me,{padded:!0,children:e.jsxs("div",{children:[e.jsx(q,{tag:exports.HEADING_TAGS.H4,children:u.UI.NO_ACTIVE_SUBSCRIPTION}),e.jsx(G,{children:null===(l=null==u?void 0:u.UI)||void 0===l?void 0:l.NO_SUBSCRIPTION_DETAILS})]})}),(null===(d=null==i?void 0:i.subscription)||void 0===d?void 0:d.status)&&e.jsx("div",{children:e.jsx(Xt,{initialValues:null==i?void 0:i.subscription,handleSubmit:r})}),n&&e.jsx("div",{children:e.jsx(R,{onClick:n,icon:"help",children:null===(c=null==u?void 0:u.UI)||void 0===c?void 0:c.QUESTION})})]})};Qt.displayName="SubscriptionScreen";const Jt=({testID:s,id:a,title:i,image:r,description:n,created:l=0,duration:d="PT0M",level:c,section:u,uuid:m,video:p,category:x,type:h,likeCallback:v,completedCallback:f,favouriteCallback:N,isLiked:g,isCompleted:E,isFavourite:A,relatedWorkouts:T,isLoading:j,hasActiveSubscription:I,htmlDetails:C})=>{var y,O;console.log("video",p);const _=Ne(),[L,w]=t.useState(!1);t.useState(2);const D=t.useMemo((()=>S.format(new Date(1e3*l),Mt)),[l]),k=t.useMemo((()=>function(e){const t=o.parse(e),s=[];return t.years&&s.push(`${t.years} years`),t.months&&s.push(`${t.months} months`),t.weeks&&s.push(`${t.weeks} weeks`),t.days&&s.push(`${t.days} days`),t.hours&&s.push(`${t.hours} hours`),t.minutes&&s.push(`${t.minutes} minutes`),t.seconds&&s.push(`${t.seconds} seconds`),s.join(", ")}(d)),[d]);return console.log("video",p),e.jsxs(Rt,{"data-testid":s||"WorkoutScreen",image:r,children:[e.jsxs("div",{children:[i&&e.jsx(Ce,{text:i}),e.jsx("div",{children:e.jsxs($,{children:[_.UI.CREATED,": ",D]})}),e.jsx("div",{children:e.jsxs($,{children:[_.UI.DURATION,": ",k]})})]}),!I&&e.jsxs("div",{children:[e.jsx(q,{tag:exports.HEADING_TAGS.H4,children:_.UI.NO_ACTIVE_SUBSCRIPTION}),e.jsx(G,{children:null===(y=null==_?void 0:_.UI)||void 0===y?void 0:y.NO_SUBSCRIPTION_DETAILS})]}),e.jsx("div",{children:e.jsx(R,{onClick:()=>{w(!0)},icon:"mdi:play",iconFirst:!0,disabled:!I,children:_.UI.START_WORKOUT})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("div",{children:e.jsx(R,{onClick:()=>{a&&v&&"function"==typeof v&&(v(a),b.toast.info(g?_.UI.REMOVED_LIKE:_.UI.ADDED_LIKE))},icon:g?"mdi:heart":"mdi:heart-outline",disabled:!I,rounded:!0})}),e.jsx("div",{children:e.jsx(R,{onClick:()=>{a&&N&&"function"==typeof N&&(N(a),b.toast.info(A?_.UI.REMOVED_FAVORITE:_.UI.ADDED_FAVORITE))},icon:A?"mdi:bookmark":"mdi:bookmark-outline",disabled:!I,rounded:!0})}),e.jsx("div",{children:e.jsx(R,{onClick:()=>{a&&f&&"function"==typeof f&&(f(a),b.toast.info(E?_.UI.MARKED_INCOMPLETE:_.UI.MARKED_COMPLETE))},icon:E?"mdi:battery":"mdi:battery-outline",disabled:!I,rounded:!0})})]}),!C&&n&&e.jsx("div",{children:e.jsx(G,{children:n})}),C&&n&&e.jsx("div",{children:e.jsx(pe,{data:n})}),e.jsxs("div",{className:"flex gap-4 flex-wrap",children:[c&&e.jsxs($,{children:[_.UI.LEVEL,": ",c]}),u&&e.jsxs($,{children:[_.UI.SECTION,": ",u]}),x&&e.jsxs($,{children:[_.UI.CATEGORY,": ",x]}),h&&e.jsxs($,{children:[_.UI.TYPE,": ",h]})]}),T&&e.jsx(e.Fragment,{children:e.jsx(Me,{isNarrow:!0,padded:!0,children:e.jsx("div",{children:e.jsx(q,{children:null===(O=null==_?void 0:_.UI)||void 0===O?void 0:O.RELATED})})})}),L&&e.jsx("div",{className:"opacity-0",children:e.jsx(et,{fullScreenOnly:!0,options:{autoplay:!0},sources:[{src:p,type:"application/x-mpegURL"}],onExitFullScreenCallback:()=>{console.log("onExitFullScreenCallback exit full screen"),w(!1)}})})]})};Jt.displayName="WorkoutScreen";const es={colors:{white:"#FFFFFF",black:"#000000",primary:"#222222",secondary:"#666666",tertiary:"#EEEEEE",accent:"#1FB2A6",neutral:"#191D24",info:"#3ABFF8",success:"#36D399",warning:"#FBBD23",error:"#F87272",opacityDark10:"rgba(0, 0, 0, 0.1)",opacityDark20:"rgba(0, 0, 0, 0.2)",opacityDark30:"rgba(0, 0, 0, 0.3)",opacityDark40:"rgba(0, 0, 0, 0.4)",opacityDark50:"rgba(0, 0, 0, 0.5)",opacityDark60:"rgba(0, 0, 0, 0.6)",opacityDark70:"rgba(0, 0, 0, 0.7)",opacityDark80:"rgba(0, 0, 0, 0.8)",opacityDark90:"rgba(0, 0, 0, 0.9)",opacityLight10:"rgba(255, 255, 255, 0.1)",opacityLight20:"rgba(255, 255, 255, 0.2)",opacityLight30:"rgba(255, 255, 255, 0.3)",opacityLight40:"rgba(255, 255, 255, 0.4)",opacityLight50:"rgba(255, 255, 255, 0.5)",opacityLight60:"rgba(255, 255, 255, 0.6)",opacityLight70:"rgba(255, 255, 255, 0.7)",opacityLight80:"rgba(255, 255, 255, 0.8)",opacityLight90:"rgba(255, 255, 255, 0.9)",primary50:"#F2F2F2",primary100:"#E6E6E6",primary200:"#CCCCCC",primary300:"#B3B3B3",primary400:"#999999",primary500:"#808080",primary600:"#666666",primary700:"#4D4D4D",primary800:"#333333",primary900:"#1A1A1A",secondary50:"#FDFDFD",secondary100:"#FBFBFB",secondary200:"#F8F8F8",secondary300:"#F5F5F5",secondary400:"#F2F2F2",secondary500:"#EFEFEF",secondary600:"#ECECEC",secondary700:"#E9E9E9",secondary800:"#E6E6E6",secondary900:"#E3E3E3",tertiary50:"#F8F8F8",tertiary100:"#F1F1F1",tertiary200:"#EAEAEA",tertiary300:"#E3E3E3",tertiary400:"#DCDCDC",tertiary500:"#D5D5D5",tertiary600:"#CECECE",tertiary700:"#C7C7C7",tertiary800:"#C0C0C0",tertiary900:"#B9B9B9",accent50:"#E5F8F6",accent100:"#CCEFF0",accent200:"#B2E6E6",accent300:"#99DDDD",accent400:"#7FD4D4",accent500:"#66CBCB",accent600:"#4DB2B2",accent700:"#339999",accent800:"#1A8080",accent900:"#006666",neutral50:"#F8F8F8",neutral100:"#F1F1F1",neutral200:"#EAEAEA",neutral300:"#E3E3E3",neutral400:"#DCDCDC",neutral500:"#D5D5D5",neutral600:"#CECECE",neutral700:"#C7C7C7",neutral800:"#C0C0C0",neutral900:"#B9B9B9",info50:"#E6F9FD",info100:"#CFF3FB",info200:"#B8EDF8",info300:"#A1E7F6",info400:"#8AE1F3",info500:"#73DBF1",info600:"#5CC5DA",info700:"#469EB3",info800:"#2F788C",info900:"#195165",success50:"#E6FDEE",success100:"#CFFBDD",success200:"#B8F8CC",success300:"#A1F6BB",success400:"#8AEDAA",success500:"#73E499",success600:"#5CC482",success700:"#469E6C",success800:"#2F784F",success900:"#195133",warning50:"#FEF9E6",warning100:"#FDF3CD",warning200:"#FCECB4",warning300:"#FBDF8B",warning400:"#FAD262",warning500:"#F9C639",warning600:"#E0AD32",warning700:"#B78C27",warning800:"#8E6B1D",warning900:"#654A13",error50:"#FCE6E6",error100:"#F9CDCD",error200:"#F6B4B4",error300:"#F29999",error400:"#EF8080",error500:"#EC6666",error600:"#D95252",error700:"#B34040",error800:"#8E2E2E",error900:"#6B1B1B",grey50:"#F8F8F8",grey100:"#F1F1F1",grey200:"#EAEAEA",grey300:"#E3E3E3",grey400:"#DCDCDC",grey500:"#C0C0C0",grey600:"#A9A9A9",grey700:"#8C8C8C",grey800:"#666666",grey900:"#404040",purple50:"#ede9f4",purple100:"#c8b9de",purple200:"#ae98ce",purple300:"#8968b7",purple400:"#724ba9",purple500:"#4f1e94",purple600:"#481b87",purple700:"#381569",purple800:"#2b1151",purple900:"#210d3e"},screens:{sm:"480px",md:"768px",lg:"976px",xl:"1440px"},spacing:{px:"1px",0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",11:"2.75rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem",40:"10rem",48:"12rem",56:"14rem",64:"16rem",128:"32rem"},borderRadius:{none:"0",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"3.25rem"}],"6xl":["3.75rem",{lineHeight:"4rem"}],"7xl":["4.5rem",{lineHeight:"5rem"}],"8xl":["6rem",{lineHeight:"7rem"}],"9xl":["8rem",{lineHeight:"9rem"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},extend:{gridTemplateColumns:{headerMd:"200px auto 200px",headerSd:"125px auto 125px",headerXs:"auto 175px",searchLayout:"1fr",searchLayoutWithSidebar:"1fr 3fr"}}};function ts(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ss={exports:{}},as={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},is={exports:{}},rs=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))},ns=Array.prototype.concat,os=Array.prototype.slice,ls=is.exports=function(e){for(var t=[],s=0,a=e.length;s<a;s++){var i=e[s];rs(i)?t=ns.call(t,os.call(i)):t.push(i)}return t};ls.wrap=function(e){return function(){return e(ls(arguments))}};var ds=is.exports,cs=as,us=ds,ms=Object.hasOwnProperty,ps=Object.create(null);for(var xs in cs)ms.call(cs,xs)&&(ps[cs[xs]]=xs);var hs=ss.exports={to:{},get:{}};function vs(e,t,s){return Math.min(Math.max(t,e),s)}function fs(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}hs.get=function(e){var t,s;switch(e.substring(0,3).toLowerCase()){case"hsl":t=hs.get.hsl(e),s="hsl";break;case"hwb":t=hs.get.hwb(e),s="hwb";break;default:t=hs.get.rgb(e),s="rgb"}return t?{model:s,value:t}:null},hs.get.rgb=function(e){if(!e)return null;var t,s,a,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],s=0;s<3;s++){var r=2*s;i[s]=parseInt(t.slice(r,r+2),16)}a&&(i[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],s=0;s<3;s++)i[s]=parseInt(t[s]+t[s],16);a&&(i[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)i[s]=parseInt(t[s+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:ms.call(cs,t[1])?((i=cs[t[1]])[3]=1,i):null:null;for(s=0;s<3;s++)i[s]=Math.round(2.55*parseFloat(t[s+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(s=0;s<3;s++)i[s]=vs(i[s],0,255);return i[3]=vs(i[3],0,1),i},hs.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var s=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,vs(parseFloat(t[2]),0,100),vs(parseFloat(t[3]),0,100),vs(isNaN(s)?1:s,0,1)]}return null},hs.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var s=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,vs(parseFloat(t[2]),0,100),vs(parseFloat(t[3]),0,100),vs(isNaN(s)?1:s,0,1)]}return null},hs.to.hex=function(){var e=us(arguments);return"#"+fs(e[0])+fs(e[1])+fs(e[2])+(e[3]<1?fs(Math.round(255*e[3])):"")},hs.to.rgb=function(){var e=us(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},hs.to.rgb.percent=function(){var e=us(arguments),t=Math.round(e[0]/255*100),s=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+s+"%, "+a+"%)":"rgba("+t+"%, "+s+"%, "+a+"%, "+e[3]+")"},hs.to.hsl=function(){var e=us(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},hs.to.hwb=function(){var e=us(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},hs.to.keyword=function(e){return ps[e.slice(0,3)]};var Ns=ss.exports;const gs=as,Es={};for(const e of Object.keys(gs))Es[gs[e]]=e;const Ss={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var As=Ss;for(const e of Object.keys(Ss)){if(!("channels"in Ss[e]))throw new Error("missing channels property: "+e);if(!("labels"in Ss[e]))throw new Error("missing channel labels property: "+e);if(Ss[e].labels.length!==Ss[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:s}=Ss[e];delete Ss[e].channels,delete Ss[e].labels,Object.defineProperty(Ss[e],"channels",{value:t}),Object.defineProperty(Ss[e],"labels",{value:s})}Ss.rgb.hsl=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.min(t,s,a),r=Math.max(t,s,a),n=r-i;let o,l;r===i?o=0:t===r?o=(s-a)/n:s===r?o=2+(a-t)/n:a===r&&(o=4+(t-s)/n),o=Math.min(60*o,360),o<0&&(o+=360);const d=(i+r)/2;return l=r===i?0:d<=.5?n/(r+i):n/(2-r-i),[o,100*l,100*d]},Ss.rgb.hsv=function(e){let t,s,a,i,r;const n=e[0]/255,o=e[1]/255,l=e[2]/255,d=Math.max(n,o,l),c=d-Math.min(n,o,l),u=function(e){return(d-e)/6/c+.5};return 0===c?(i=0,r=0):(r=c/d,t=u(n),s=u(o),a=u(l),n===d?i=a-s:o===d?i=1/3+t-a:l===d&&(i=2/3+s-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*r,100*d]},Ss.rgb.hwb=function(e){const t=e[0],s=e[1];let a=e[2];const i=Ss.rgb.hsl(e)[0],r=1/255*Math.min(t,Math.min(s,a));return a=1-1/255*Math.max(t,Math.max(s,a)),[i,100*r,100*a]},Ss.rgb.cmyk=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.min(1-t,1-s,1-a);return[100*((1-t-i)/(1-i)||0),100*((1-s-i)/(1-i)||0),100*((1-a-i)/(1-i)||0),100*i]},Ss.rgb.keyword=function(e){const t=Es[e];if(t)return t;let s,a=1/0;for(const t of Object.keys(gs)){const n=(r=gs[t],((i=e)[0]-r[0])**2+(i[1]-r[1])**2+(i[2]-r[2])**2);n<a&&(a=n,s=t)}var i,r;return s},Ss.keyword.rgb=function(e){return gs[e]},Ss.rgb.xyz=function(e){let t=e[0]/255,s=e[1]/255,a=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;return[100*(.4124*t+.3576*s+.1805*a),100*(.2126*t+.7152*s+.0722*a),100*(.0193*t+.1192*s+.9505*a)]},Ss.rgb.lab=function(e){const t=Ss.rgb.xyz(e);let s=t[0],a=t[1],i=t[2];s/=95.047,a/=100,i/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*a-16,500*(s-a),200*(a-i)]},Ss.hsl.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;let i,r,n;if(0===s)return n=255*a,[n,n,n];i=a<.5?a*(1+s):a+s-a*s;const o=2*a-i,l=[0,0,0];for(let e=0;e<3;e++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,n=6*r<1?o+6*(i-o)*r:2*r<1?i:3*r<2?o+(i-o)*(2/3-r)*6:o,l[e]=255*n;return l},Ss.hsl.hsv=function(e){const t=e[0];let s=e[1]/100,a=e[2]/100,i=s;const r=Math.max(a,.01);a*=2,s*=a<=1?a:2-a,i*=r<=1?r:2-r;return[t,100*(0===a?2*i/(r+i):2*s/(a+s)),100*((a+s)/2)]},Ss.hsv.rgb=function(e){const t=e[0]/60,s=e[1]/100;let a=e[2]/100;const i=Math.floor(t)%6,r=t-Math.floor(t),n=255*a*(1-s),o=255*a*(1-s*r),l=255*a*(1-s*(1-r));switch(a*=255,i){case 0:return[a,l,n];case 1:return[o,a,n];case 2:return[n,a,l];case 3:return[n,o,a];case 4:return[l,n,a];case 5:return[a,n,o]}},Ss.hsv.hsl=function(e){const t=e[0],s=e[1]/100,a=e[2]/100,i=Math.max(a,.01);let r,n;n=(2-s)*a;const o=(2-s)*i;return r=s*i,r/=o<=1?o:2-o,r=r||0,n/=2,[t,100*r,100*n]},Ss.hwb.rgb=function(e){const t=e[0]/360;let s=e[1]/100,a=e[2]/100;const i=s+a;let r;i>1&&(s/=i,a/=i);const n=Math.floor(6*t),o=1-a;r=6*t-n,1&n&&(r=1-r);const l=s+r*(o-s);let d,c,u;switch(n){default:case 6:case 0:d=o,c=l,u=s;break;case 1:d=l,c=o,u=s;break;case 2:d=s,c=o,u=l;break;case 3:d=s,c=l,u=o;break;case 4:d=l,c=s,u=o;break;case 5:d=o,c=s,u=l}return[255*d,255*c,255*u]},Ss.cmyk.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,s*(1-i)+i)),255*(1-Math.min(1,a*(1-i)+i))]},Ss.xyz.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100;let i,r,n;return i=3.2406*t+-1.5372*s+-.4986*a,r=-.9689*t+1.8758*s+.0415*a,n=.0557*t+-.204*s+1.057*a,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*i,255*r,255*n]},Ss.xyz.lab=function(e){let t=e[0],s=e[1],a=e[2];t/=95.047,s/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;return[116*s-16,500*(t-s),200*(s-a)]},Ss.lab.xyz=function(e){let t,s,a;s=(e[0]+16)/116,t=e[1]/500+s,a=s-e[2]/200;const i=s**3,r=t**3,n=a**3;return s=i>.008856?i:(s-16/116)/7.787,t=r>.008856?r:(t-16/116)/7.787,a=n>.008856?n:(a-16/116)/7.787,t*=95.047,s*=100,a*=108.883,[t,s,a]},Ss.lab.lch=function(e){const t=e[0],s=e[1],a=e[2];let i;i=360*Math.atan2(a,s)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(s*s+a*a),i]},Ss.lch.lab=function(e){const t=e[0],s=e[1],a=e[2]/360*2*Math.PI;return[t,s*Math.cos(a),s*Math.sin(a)]},Ss.rgb.ansi16=function(e,t=null){const[s,a,i]=e;let r=null===t?Ss.rgb.hsv(e)[2]:t;if(r=Math.round(r/50),0===r)return 30;let n=30+(Math.round(i/255)<<2|Math.round(a/255)<<1|Math.round(s/255));return 2===r&&(n+=60),n},Ss.hsv.ansi16=function(e){return Ss.rgb.ansi16(Ss.hsv.rgb(e),e[2])},Ss.rgb.ansi256=function(e){const t=e[0],s=e[1],a=e[2];if(t===s&&s===a)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(s/255*5)+Math.round(a/255*5)},Ss.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const s=.5*(1+~~(e>50));return[(1&t)*s*255,(t>>1&1)*s*255,(t>>2&1)*s*255]},Ss.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Ss.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Ss.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let s=t[0];3===t[0].length&&(s=s.split("").map((e=>e+e)).join(""));const a=parseInt(s,16);return[a>>16&255,a>>8&255,255&a]},Ss.rgb.hcg=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.max(Math.max(t,s),a),r=Math.min(Math.min(t,s),a),n=i-r;let o,l;return o=n<1?r/(1-n):0,l=n<=0?0:i===t?(s-a)/n%6:i===s?2+(a-t)/n:4+(t-s)/n,l/=6,l%=1,[360*l,100*n,100*o]},Ss.hsl.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=s<.5?2*t*s:2*t*(1-s);let i=0;return a<1&&(i=(s-.5*a)/(1-a)),[e[0],100*a,100*i]},Ss.hsv.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=t*s;let i=0;return a<1&&(i=(s-a)/(1-a)),[e[0],100*a,100*i]},Ss.hcg.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;if(0===s)return[255*a,255*a,255*a];const i=[0,0,0],r=t%1*6,n=r%1,o=1-n;let l=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=n,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=n;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=n,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-s)*a,[255*(s*i[0]+l),255*(s*i[1]+l),255*(s*i[2]+l)]},Ss.hcg.hsv=function(e){const t=e[1]/100,s=t+e[2]/100*(1-t);let a=0;return s>0&&(a=t/s),[e[0],100*a,100*s]},Ss.hcg.hsl=function(e){const t=e[1]/100,s=e[2]/100*(1-t)+.5*t;let a=0;return s>0&&s<.5?a=t/(2*s):s>=.5&&s<1&&(a=t/(2*(1-s))),[e[0],100*a,100*s]},Ss.hcg.hwb=function(e){const t=e[1]/100,s=t+e[2]/100*(1-t);return[e[0],100*(s-t),100*(1-s)]},Ss.hwb.hcg=function(e){const t=e[1]/100,s=1-e[2]/100,a=s-t;let i=0;return a<1&&(i=(s-a)/(1-a)),[e[0],100*a,100*i]},Ss.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Ss.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Ss.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Ss.gray.hsl=function(e){return[0,0,e[0]]},Ss.gray.hsv=Ss.gray.hsl,Ss.gray.hwb=function(e){return[0,100,e[0]]},Ss.gray.cmyk=function(e){return[0,0,0,e[0]]},Ss.gray.lab=function(e){return[e[0],0,0]},Ss.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),s=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(s.length)+s},Ss.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const bs=As;function Ts(e){const t=function(){const e={},t=Object.keys(bs);for(let s=t.length,a=0;a<s;a++)e[t[a]]={distance:-1,parent:null};return e}(),s=[e];for(t[e].distance=0;s.length;){const e=s.pop(),a=Object.keys(bs[e]);for(let i=a.length,r=0;r<i;r++){const i=a[r],n=t[i];-1===n.distance&&(n.distance=t[e].distance+1,n.parent=e,s.unshift(i))}}return t}function js(e,t){return function(s){return t(e(s))}}function Is(e,t){const s=[t[e].parent,e];let a=bs[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)s.unshift(t[i].parent),a=js(bs[t[i].parent][i],a),i=t[i].parent;return a.conversion=s,a}const Cs=As,ys=function(e){const t=Ts(e),s={},a=Object.keys(t);for(let e=a.length,i=0;i<e;i++){const e=a[i];null!==t[e].parent&&(s[e]=Is(e,t))}return s},Os={};Object.keys(Cs).forEach((e=>{Os[e]={},Object.defineProperty(Os[e],"channels",{value:Cs[e].channels}),Object.defineProperty(Os[e],"labels",{value:Cs[e].labels});const t=ys(e);Object.keys(t).forEach((s=>{const a=t[s];Os[e][s]=function(e){const t=function(...t){const s=t[0];if(null==s)return s;s.length>1&&(t=s);const a=e(t);if("object"==typeof a)for(let e=a.length,t=0;t<e;t++)a[t]=Math.round(a[t]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}(a),Os[e][s].raw=function(e){const t=function(...t){const s=t[0];return null==s?s:(s.length>1&&(t=s),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))}));const _s=Ns,Rs=Os,Ls=["keyword","gray","hex"],ws={};for(const e of Object.keys(Rs))ws[[...Rs[e].labels].sort().join("")]=e;const Ds={};function ks(e,t){if(!(this instanceof ks))return new ks(e,t);if(t&&t in Ls&&(t=null),t&&!(t in Rs))throw new Error("Unknown model: "+t);let s,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof ks)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=_s.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,a=Rs[this.model].channels,this.color=t.value.slice(0,a),this.valpha="number"==typeof t.value[a]?t.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=Rs[this.model].channels;const s=Array.prototype.slice.call(e,0,a);this.color=Bs(s,a),this.valpha="number"==typeof e[a]?e[a]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const a=t.sort().join("");if(!(a in ws))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=ws[a];const{labels:i}=Rs[this.model],r=[];for(s=0;s<i.length;s++)r.push(e[i[s]]);this.color=Bs(r)}if(Ds[this.model])for(a=Rs[this.model].channels,s=0;s<a;s++){const e=Ds[this.model][s];e&&(this.color[s]=e(this.color[s]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ks.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in _s.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const s=1===t.valpha?t.color:[...t.color,this.valpha];return _s.to[t.model](s)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),s=1===t.valpha?t.color:[...t.color,this.valpha];return _s.to.rgb.percent(s)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Rs[this.model],{labels:s}=Rs[this.model];for(let a=0;a<t;a++)e[s[a]]=this.color[a];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new ks([...this.color.map(Ps(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new ks([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Ms("rgb",0,Fs(255)),green:Ms("rgb",1,Fs(255)),blue:Ms("rgb",2,Fs(255)),hue:Ms(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:Ms("hsl",1,Fs(100)),lightness:Ms("hsl",2,Fs(100)),saturationv:Ms("hsv",1,Fs(100)),value:Ms("hsv",2,Fs(100)),chroma:Ms("hcg",1,Fs(100)),gray:Ms("hcg",2,Fs(100)),white:Ms("hwb",1,Fs(100)),wblack:Ms("hwb",2,Fs(100)),cyan:Ms("cmyk",0,Fs(100)),magenta:Ms("cmyk",1,Fs(100)),yellow:Ms("cmyk",2,Fs(100)),black:Ms("cmyk",3,Fs(100)),x:Ms("xyz",0,Fs(95.047)),y:Ms("xyz",1,Fs(100)),z:Ms("xyz",2,Fs(108.833)),l:Ms("lab",0,Fs(100)),a:Ms("lab",1),b:Ms("lab",2),keyword(e){return void 0!==e?new ks(e):Rs[this.model].keyword(this.color)},hex(e){return void 0!==e?new ks(e):_s.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new ks(e);const t=this.rgb().round().color;let s=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===s.length&&(s="0"+s),_s.to.hex(t)+s},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[s,a]of e.entries()){const e=a/255;t[s]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),s=e.luminosity();return t>s?(t+.05)/(s+.05):(s+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return ks.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let s=t.color[0];return s=(s+e)%360,s=s<0?360+s:s,t.color[0]=s,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const s=e.rgb(),a=this.rgb(),i=void 0===t?.5:t,r=2*i-1,n=s.alpha()-a.alpha(),o=((r*n==-1?r:(r+n)/(1+r*n))+1)/2,l=1-o;return ks.rgb(o*s.red()+l*a.red(),o*s.green()+l*a.green(),o*s.blue()+l*a.blue(),s.alpha()*i+a.alpha()*(1-i))}};for(const e of Object.keys(Rs)){if(Ls.includes(e))continue;const{channels:t}=Rs[e];ks.prototype[e]=function(...t){return this.model===e?new ks(this):t.length>0?new ks(t,e):new ks([...(s=Rs[this.model][e].raw(this.color),Array.isArray(s)?s:[s]),this.valpha],e);var s},ks[e]=function(...s){let a=s[0];return"number"==typeof a&&(a=Bs(s,t)),new ks(a,e)}}function Ps(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function Ms(e,t,s){e=Array.isArray(e)?e:[e];for(const a of e)(Ds[a]||(Ds[a]=[]))[t]=s;return e=e[0],function(a){let i;return void 0!==a?(s&&(a=s(a)),i=this[e](),i.color[t]=a,i):(i=this[e]().color[t],s&&(i=s(i)),i)}}function Fs(e){return function(t){return Math.max(0,Math.min(e,t))}}function Bs(e,t){for(let s=0;s<t;s++)"number"!=typeof e[s]&&(e[s]=0);return e}var Us=ts(ks);const Gs=(e,t)=>Us(e).darken(t).rgb().string(),Hs=Object.assign({inherit:"inherit",transparent:"transparent",black:es.colors.black,white:es.colors.white,bodyBackground:es.colors.white,darkBodyBackground:es.colors.primary,bodyText:es.colors.primary,bodyTextInverted:es.colors.primary50,darkBodyText:es.colors.primary50,display:es.colors.black,darkDisplay:es.colors.white},Object.assign({},...Object.keys(es.colors).map((e=>{const t=es.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,Us(s).lighten(a).rgb().string()),darker:Gs(t,.1)}};var s,a})))),Ys=Object.assign(Object.assign({},es),{colors:Object.assign(Object.assign({},es.colors),{primary:"#001e5a",secondary:"#fcb700",tertiary:"#a3b0ca",quaternary:"#0f71b1",primary50:"#e6e9ef",primary100:"#b0b9cc",primary200:"#8a98b3",primary300:"#546890",primary400:"#334b7b",primary500:"#001e5a",primary600:"#001b52",primary700:"#001540",primary800:"#001132",primary900:"#000d26",secondary50:"#fff8e6",secondary100:"#fee9b0",secondary200:"#fede8a",secondary300:"#fdcf54",secondary400:"#fdc533",secondary500:"#fcb700",secondary600:"#e5a700",secondary700:"#b38200",secondary800:"#8b6500",secondary900:"#6a4d00",tertiary50:"#f6f7fa",tertiary100:"#e2e7ef",tertiary200:"#d5dbe7",tertiary300:"#c1cadb",tertiary400:"#b5c0d5",tertiary500:"#a3b0ca",tertiary600:"#94a0b8",tertiary700:"#747d8f",tertiary800:"#5a616f",tertiary900:"#444a55",quaternary50:"#e7f1f7",quaternary100:"#b5d3e7",quaternary200:"#91bedb",quaternary300:"#5ea0cb",quaternary400:"#3f8dc1",quaternary500:"#0f71b1",quaternary600:"#0e67a1",quaternary700:"#0b507e",quaternary800:"#083e61",quaternary900:"#062f4a"}),borderRadius:Object.assign({},es.borderRadius),fontWeight:Object.assign(Object.assign({},es.fontWeight),{light:"300",normal:"400",bold:"700"})}),Vs=(e,t)=>Us(e).darken(t).rgb().string(),Ws=Object.assign(Object.assign(Object.assign({},Hs),{bodyBackground:Ys.colors.primary700,darkBodyBackground:Ys.colors.primary800,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(Ys.colors).map((e=>{const t=Ys.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,Us(s).lighten(a).rgb().string()),darker:Vs(t,.1)}};var s,a})))),zs=Object.assign(Object.assign({},{sans:["sans-serif"],serif:["serif"],mono:["monospace"],display:["monospace","sans-serif"],body:["var(--font-body)"],heading:["var(--font-heading)"]}),{body:["ProximaNova-Regular","sans-serif"],heading:["ProximaNova-Bold","sans-serif"]}),qs=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),Ks={colors:Object.assign({},Ws),fontFamily:Object.assign({},zs),fontSize:Object.assign({},null==Ys?void 0:Ys.fontSize),fontWeight:Object.assign({},null==Ys?void 0:Ys.fontWeight),buttons:Object.assign({},qs),screens:Object.assign({},null==Ys?void 0:Ys.screens),borderRadius:Object.assign({},null==Ys?void 0:Ys.borderRadius),spacing:Object.assign({},null==Ys?void 0:Ys.spacing),extend:Object.assign({},null==Ys?void 0:Ys.extend)};exports.AccountScreen=Lt,exports.AnimationCounter=T,exports.AnimationSet1=Be,exports.AppContext=fe,exports.AppProvider=fe,exports.AuthScreen=wt,exports.Authenticator=qe,exports.Avatar=le,exports.Blockquote=I,exports.Button=R,exports.ButtonGroup=de,exports.Card=Ie,exports.CardGrid=it,exports.CardGridScreen=Dt,exports.Carousel=$e,exports.CatalogueScreen=kt,exports.ChallengeLibraryScreen=Pt,exports.ChallengeScreen=Bt,exports.Checkbox=D,exports.Chip=H,exports.Container=Me,exports.ContentPageLayout=nt,exports.ContentRowsLayout=lt,exports.ContentScreen=Ut,exports.Copy=G,exports.DashboardScreen=Gt,exports.DisplayHeading=Ce,exports.FAQScreen=Vt,exports.FileUpload=Y,exports.Footer=dt,exports.ForgotPasswordForm=ze,exports.Form=ye,exports.FormField=Re,exports.FormSelect=_e,exports.Header=ct,exports.Heading=q,exports.Hero=Fe,exports.HomeScreen=Wt,exports.Hr=K,exports.HtmlContent=pe,exports.Icon=j,exports.Image=Z,exports.Label=$,exports.Link=k,exports.List=J,exports.ListItem=te,exports.Loader=_,exports.LoginForm=Ve,exports.Logo=ee,exports.Menu=ke,exports.MenuScreen=zt,exports.MultiCheckboxFacet=yt,exports.Notice=se,exports.OTPInput=ut,exports.PanelCards=Qe,exports.PanelFeature=Je,exports.PanelHero=tt,exports.PanelProduct=st,exports.PanelVideo=at,exports.ProfileForm=_t,exports.ProfileScreen=qt,exports.Radio=ae,exports.RegisterForm=We,exports.ResetPasswordForm=Ot,exports.STRINGS_EN=oe,exports.ScheduleScreen=$t,exports.Search=jt,exports.Share=Le,exports.SingleLinksFacet=Ct,exports.SingleSelectFacet=It,exports.SubscriptionScreen=Qt,exports.Switch=ie,exports.Tabs=we,exports.TextInput=ne,exports.ThemeContext=Ee,exports.ThemeProvider=({children:t,theme:s})=>e.jsx(Ee.Provider,{value:s,children:t}),exports.Video=et,exports.VisitUs=De,exports.WorkoutScreen=Jt,exports.defaultTheme=ge,exports.theme=Ks,exports.useLanguage=Ne,exports.useTheme=function(){return t.useContext(Ee)};