@4alldigital/foundation-ui--gamma 1.73.1 → 1.74.2
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/foundation-ui.css +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/lib/src/components/Calendar/Calendar.d.ts +8 -0
- package/dist/types/lib/src/components/Calendar/Calendar.types.d.ts +9 -0
- package/dist/types/lib/src/components/Calendar/index.d.ts +2 -0
- package/dist/types/lib/src/components/Collapsible/Collapsible.d.ts +12 -0
- package/dist/types/lib/src/components/Collapsible/Collapsible.types.d.ts +11 -0
- package/dist/types/lib/src/components/Collapsible/index.d.ts +3 -0
- package/dist/types/lib/src/components/Schedule/Schedule.d.ts +1 -1
- package/dist/types/lib/src/components/Schedule/Schedule.types.d.ts +0 -10
- package/dist/types/lib/src/components/index.d.ts +4 -0
- package/package.json +10 -10
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import i,{useRef as r,forwardRef as n,useMemo as l,createElement as o,useEffect as s,useState as c,useContext as d,createContext as m,useImperativeHandle as u}from"react";import h from"classnames";import{useInView as p,useIsomorphicLayoutEffect as f,animate as N,motionValue as g,motion as E,useAnimation as b}from"framer-motion";import{Icon as A}from"@iconify/react";import{twMerge as S}from"tailwind-merge";import y,{attributesToProps as C,domToReact as v}from"html-react-parser";import{parse as I}from"iso8601-duration";import{Amplify as T,Hub as R,Auth as O}from"aws-amplify";import L from"react-hover-video-player";import{useForm as _,FormProvider as x,useFormContext as w,Controller as D}from"react-hook-form";import{FacebookShareButton as k,TwitterShareButton as P,WhatsappShareButton as M,EmailShareButton as U,LinkedinShareButton as F}from"react-share";import{Tabs as B,TabList as H,Tab as G,TabPanel as W}from"react-tabs";import{CognitoHostedUIIdentityProvider as Y}from"@aws-amplify/auth";import{isPossiblePhoneNumber as V,isValidPhoneNumber as z,validatePhoneNumberLength as j}from"libphonenumber-js";import{toast as K}from"react-toastify";import q from"react-slick";import $ from"react-player/youtube";import{isMobileOnly as X}from"react-device-detect";import Q from"video.js";import Z from"react-collapsible";import{confirmAlert as J}from"react-confirm-alert";import ee from"react-otp-input";import te from"react-modal";import ae from"@elastic/search-ui-elasticsearch-connector";import{SearchContext as ie,SearchProvider as re,WithSearch as ne,ErrorBoundary as le,Paging as oe,PagingInfo as se,ResultsPerPage as ce,Sorting as de,Results as me,Facet as ue,SearchBox as he}from"@elastic/react-search-ui";import pe from"rc-pagination";import fe from"rc-pagination/lib/locale/en_US";import Ne from"he";import{format as ge}from"date-fns";const Ee=({testID:t,from:a,to:i,animationOptions:n,className:l,numDecimals:o=0})=>{const s=r(null),c=p(s,{once:!0});return f(()=>{const e=s.current;if(!e||!c)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=i.toString());e.textContent=a.toString();const t=N(a,i,{duration:1,ease:"easeOut",...n,onUpdate:t=>{e.textContent=t.toFixed(o)}});return()=>{t.stop()}},[s,c,a,i,n]),e("span",{ref:s,"data-testid":t||"AnimationCounter",className:h("relative",l)})};Ee.displayName="AnimationCounter";const be=({name:t,size:a=24,color:i,id:r,className:n,testID:l})=>e(A,{"data-testid":l||r||"Icon",icon:t,width:a,height:a,color:i||"currentColor",className:n});be.displayName="Icon";const Ae=({text:a,citation:i,className:r,citationAttribute:n,showIcon:l=!0})=>{const o=h("text-xl italic font-bold",r);return t("blockquote",{"data-testid":"Blockquote",className:o,children:[l&&e(be,{name:"mdi:comment-quote",size:42}),e("div",{children:a}),i&&e("figcaption",{className:"flex flex-start items-center mt-6 space-x-3",children:t("div",{className:"flex items-center divide-x-2",children:[e("cite",{className:"pr-3 font-medium",children:i}),n&&e("cite",{className:"pl-3 text-sm font-light",children:n})]})})]})};var Se,ye,Ce;Ae.displayName="Blockquote",function(e){e.SUBMIT="submit",e.RESET="reset",e.BUTTON="button"}(Se||(Se={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link"}(ye||(ye={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(Ce||(Ce={}));const ve=({color:a,size:i=8,thickness:r=4})=>e("div",{"data-testid":"Loader",className:"flex items-center justify-center",children:t("div",{role:"status",className:"flex items-center",children:[t("svg",{className:`animate-spin ${i?`w-${i} h-${i}`:"w-8 h-8"} fill-current`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:a||"currentColor",strokeWidth:r}),e("path",{className:"opacity-75",fill:a||"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("span",{className:"sr-only",children:"Loading..."})]})});ve.displayName="Loader";const Ie=({variant:i=ye.PRIMARY,size:r=Ce.MEDIUM,type:n=Se.BUTTON,wide:l=!1,rounded:o=!1,raised:s=!1,uppercase:c,children:d,id:m,disabled:u,ariaLabel:p,onClick:f,icon:N,external:g,iconFirst:E,outline:b,testID:A,className:y,isLoading:C,offsetFont:v=!1})=>{const I={small:{x:d&&!o?l?"px-5":"px-3":d?"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:d&&!o?l?"px-8":"px-4":d?"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:d&&!o?l?"px-11":"px-5":d?"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},T=S(h("button rounded-btnBorderRadius",{shadow:s},{uppercase:c},{"auto-cols-auto grid-cols-2 gap-4":C||N||g},{"flex-row-reverse":E},{"opacity-50 cursor-not-allowed":u},`${I?.[r]?.y} ${I?.[r]?.x} ${I?.[r]?.text}`,{"text-white border-primary bg-primary hover:bg-primary-darker":i===ye.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":i===ye.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":i===ye.TERTIARY},{"border-primary bg-transparent text-bodyText dark:text-darkBodyText hover:bg-opacity-30":b},{"border-primary300 dark:border-primary400 hover:border-primary400 dark:hover:border-primary500":b},{"px-0 text-bodyText dark:text-darkBodyText border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert":i===ye.LINK},{"rounded-full leading-none":o},y)),R=h(I?.[r]?.icon);return e("button",{id:m,"data-testid":A||m||"Button",onClick:f,className:T,type:n,disabled:u,"aria-label":p,role:"button",children:t(a,{children:[v?e("span",{className:"brand-font-offset",children:d}):d,N&&!g&&e("span",{className:"flex items-center",children:e(be,{name:N,className:R})}),g&&e("span",{className:"flex items-center",children:e(be,{name:"carbon:launch",className:R})}),C&&e("div",{className:"flex items-center",children:e(ve,{size:4})})]})})};Ie.displayName="Button";const Te=n(function({id:a,label:i,required:r,className:n,disabled:l,...o},s){return t("div",{"data-testid":"Checkbox",className:h("flex items-center",n),children:[t("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e("input",{id:a,ref:s,disabled:l,type:"checkbox",className:"form-item checkbox m-0 appearance-none peer h-full w-full shrink-0 focus:ring-2",required:r,...o}),e("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(be,{name:"mdi:check-bold",size:12})})]}),i&&e("label",{className:"label pl-2 leading-none text-sm text-bodyText dark:text-darkBodyText",htmlFor:a,children:i})]})});Te.displayName="Checkbox";const Re=({href:a,children:r,onClick:n=()=>{},history:l,target:o,id:s,testID:c,className:d,prefetch:m,hideExternalIcon:u=!1})=>{const p=h("link cursor-pointer no-underline",d);if(!u&&a&&a.startsWith("http"))return t("span",{className:"inline-flex flex-row gap-2 items-center",children:[e("a",{"data-testid":c||s||"Link",className:h(p),href:a,target:"_blank",rel:"noopener noreferrer",children:r}),e(be,{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 Link not found");return i.createElement(e,{href:a||"#",onClick:n,"data-testid":c||s||"Link",className:p,target:o||"_self",prefetch:m||!1},r)}catch{return e("a",{"data-testid":c||s||"Link",className:p,href:a,onClick:e=>{n?n(e):!0!==e.defaultPrevented&&l&&a&&(e.preventDefault(),l.push(a))},target:o,children:r})}};var Oe,Le,_e,xe,we;Re.displayName="Link",function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(Oe||(Oe={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(Le||(Le={})),function(e){e.INVERTED="inverted",e.MUTED="muted"}(_e||(_e={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.INTRO="intro"}(xe||(xe={})),function(e){e.P="p",e.SPAN="span",e.DIV="div",e.SMALL="small"}(we||(we={}));const De=({children:t,as:a=we.P,size:i,bold:r,align:n,transform:l,underlined:o,id:s,className:c,testID:d})=>{const m=h({[`text-${n}`]:n},{"font-bold":r},{"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:o},l,c);return e(a,{"data-testid":d||s||"Copy",className:S(m),children:t})};De.displayName="Copy";const ke=({testID:a,text:i,outline:r,rounded:n,variant:o,size:s="medium",icon:c,iconFirst:d,onClick:m})=>{const u=l(()=>{switch(s){case"small":return{iconSize:16,copySize:xe.SMALL};case"medium":default:return{iconSize:20,copySize:xe.MEDIUM};case"large":return{iconSize:28,copySize:xe.LARGE}}},[s]),p=S(h("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":r},{"rounded-full":n},{"flex-row-reverse":d},{"bg-primary text-white":"primary"===o},{"bg-secondary text-white":"secondary"===o},{"bg-tertiary text-white":"tertiary"===o},{"bg-info text-white":"info"===o},{"bg-success text-white":"success"===o},{"bg-warning text-white":"warning"===o},{"bg-error text-white":"error"===o},{"py-1 px-3":"small"===s},{"py-2 px-4":"medium"===s},{"py-3 px-6":"large"===s}));return m&&"function"==typeof m?t(Re,{"data-testid":a||"Chip",className:p,onClick:m,children:[e(De,{className:"mb-0",as:we.SPAN,size:u.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(be,{name:c,size:u.iconSize})})]}):t("div",{"data-testid":a||"Chip",className:p,children:[e(De,{className:"mb-0",as:we.SPAN,size:u.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(be,{name:c,size:u.iconSize})})]})};ke.displayName="Chip";const Pe=i.forwardRef(function({id:t,name:a,required:i,disabled:r,className:n,onChangeCallback:l,onChange:o,...s},c){return e("div",{"data-testid":"FileUpload",className:n,children:e("input",{ref:c,className:h("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":a,type:"file",disabled:r,required:i,name:a,id:t,onChange:e=>{l&&"function"==typeof l&&l(e),o&&"function"==typeof o&&o({target:{value:e.target.value,name:a}})},...s})})});var Me,Ue,Fe;Pe.displayName="FileUpload",function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5"}(Me||(Me={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(Ue||(Ue={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize",e.NORMAL_CASE="normal-case"}(Fe||(Fe={}));const Be=({children:t,tag:a=Me.H2,transform:i,align:r,id:n,testID:l,flush:o,className:s,singleLine:c,bold:d=!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"}})(),u=a,p=h(`m-0 p-0 font-heading ${m}`,{"font-bold":d},{[`text-${r}`]:r},{"mb-2":!o},{"m-0":o},{"whitespace-nowrap text-ellipsis overflow-hidden":c},i,s);return e(u,{"data-testid":l||n||"Heading",className:S(p),children:t})};Be.displayName="Heading";const He=({size:t="small"})=>e("hr",{className:h("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})});He.displayName="Hr";const Ge=({src:a,alt:i,title:r,caption:n,figure:l=!1,onLoad:s,id:c,className:d,sizes:m="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:u,...p})=>{try{const e=require("next/image").default;if(!e)throw new Error("Next.js Image not found");const t=!p.width;return o(e,{src:a,alt:i,title:r,fill:t,onLoad:s,className:d,...t?{sizes:m}:{},...p})}catch{const o=h("m-0"),m=S(h("w-full h-full",d));return l||n?t("figure",{"data-testid":u||c||"Image",className:o,children:[e("img",{onLoad:s,src:a,alt:i,title:r,className:m}),n&&e("figcaption",{children:n})]}):e("img",{"data-testid":u||c||"Image",onLoad:s,src:a,alt:i,title:r,className:m})}};Ge.displayName="Image";const We=({children:t,id:a,transform:i,className:r})=>e("label",{"data-testid":"Label",className:S(h("label mb-2 text-bodyText dark:text-darkBodyText",i,r)),htmlFor:a,children:t});var Ye,Ve;We.displayName="Label",function(e){e.UNSTYLED="unstyled",e.INLINE="inline",e.SMALL="small",e.LARGE="large"}(Ye||(Ye={})),function(e){e.OL="ol",e.UL="ul",e.DL="dl",e.DIV="div",e.DT="dt",e.DD="dd",e.LI="li"}(Ve||(Ve={}));const ze=({variants:t,children:a,as:i=Ve.UL,id:r,testID:n,className:l})=>{const o=t?t.map(e=>`list--${e}`):null;return e(i,{"data-testid":n||r||"List",className:h(o,l),children:a})};ze.displayName="List";const je=({testID:t,logo:a,className:i,aspectRatioClass:r="aspect-[1/1]"})=>e("div",{"data-testid":t||"Logo",className:h("relative w-full",r,i),children:e(Ge,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});je.displayName="Logo";const Ke=({onClick:a,title:i,icon:r,children:n,as:l="li",id:o,testID:s,className:c})=>t(l,{"data-testid":s||o||"ListItem",className:h({"list-item":"div"!==l},c),children:[a&&t(Ie,{variant:ye.LINK,onClick:a,children:[t("div",{className:"",children:[r&&e("div",{children:e(be,{name:r,size:24})}),i&&e("div",{children:e(Be,{flush:!0,tag:Me.H4,singleLine:!0,children:i})}),n&&e("div",{children:n})]}),e("div",{children:e(be,{name:"mdi:chevron-right",size:24})})]}),!a&&e("div",{className:"",children:n&&e("div",{children:n})})]});Ke.displayName="ListItem";const qe=({id:a,testID:i,title:r,text:n,icon:l,type:o,onCloseCallback:s,onClickCallback:c,actionText:d})=>{const m=h("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("div",{"data-testid":i||a||"Notice",className:m,children:t("div",{className:"flex gap-2",children:[l&&e("div",{className:"mr-2",children:e(be,{name:l})}),t("div",{children:[r&&e(Be,{tag:Me.H3,children:r}),e(De,{className:"mb-0",children:n})]}),c&&d&&e("div",{className:"ml-auto flex items-end",children:e(Ie,{variant:ye.PRIMARY,onClick:c,"aria-label":"Action",size:Ce.SMALL,children:d})}),s&&e("div",{className:"absolute top-2 right-4",children:e(Ie,{variant:ye.LINK,icon:"mdi:close",onClick:s,"aria-label":"Close"})})]})})};qe.displayName="Notice";const $e=i.forwardRef(function({name:a,required:i,className:r,options:n,...l},o){return e("div",{"data-testid":"Radio",className:h("flex items-center",r),children:e("div",{className:h("flex flex-col gap-2",r),children:n?.map(r=>{const n=r?.value?.toString()||void 0;return t("div",{className:"flex items-center relative",children:[t("div",{className:"relative flex items-center",children:[e("input",{ref:o,name:a,type:"radio",required:i,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4",...l,id:n,value:n}),e("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(be,{name:"mdi:circle",size:12})})]}),e("label",{className:"label pl-2 leading-none",htmlFor:n,children:r.label})]},n)})})})});$e.displayName="Radio";const Xe=n(function({id:a,name:i,required:r,disabled:n,className:l,...o},s){return t("label",{"data-testid":"Switch",className:h("inline-flex items-center cursor-pointer",l),children:[e("input",{ref:s,id:a,name:i,type:"checkbox",value:"",className:"sr-only peer",disabled:n,required:r,...o}),e("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 Qe;Xe.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"}(Qe||(Qe={}));const Ze=n(function({type:a=Qe.TEXT,required:i=!1,className:r,onChange:n,placeholder:l,icon:o,disabled:c=!1,name:d,autoComplete:m,...u},p){s(()=>{"undefined"!=typeof window&&require("date-input-polyfill")},[]);const f="date"===a?"dd/mm/yyyy".toUpperCase():l;return a===Qe.TEXTAREA?e("div",{"data-testid":"TextInput",className:"relative",children:e("textarea",{ref:p,id:d,autoComplete:d,required:i,"aria-required":i,disabled:c,placeholder:f,onChange:n,rows:4,className:h("form-item text-area resize-none",r),...u})}):t("div",{"data-testid":"TextInput",className:"relative",children:[o&&e("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e(be,{name:o})}),e("input",{ref:p,id:d,type:a,autoComplete:m,required:i,"aria-required":i,disabled:c,placeholder:f,onChange:n,className:h("form-item text-input",{"pl-12":o},r),...u})]})});Ze.displayName="TextInput";const Je={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"},REGISTER_LONGFORM:{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"},FAQS:{TITLE:"Frequently Asked Questions"},HELP:{TITLE:"Help"},LEGAL_INFO:{TITLE:"Legal & Information"},CONTENT:{TITLE:"Content"},FAVOURITES:{TITLE:"Favourites"},ORDERS:{TITLE:"Orders"},ORDER:{TITLE:"Order"},DOWNLOADS:{TITLE:"Downloads"}}},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"},RESET_PASSWORD_FORM_AUTH:{TITLE:"Reset Password",SUBMIT:"Reset Password",CURRENT_PASSWORD:"Current Password",NEW_PASSWORD:"New 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",COMPANY_NAME_LABEL:"Company name",AGENCY_COMPANY_LABEL:"Agency Name",AGENCY_COMPANY_DESCRIPTION:"If you are an Agency, please write the name of the company you are purchasing for",AGENCY_LABEL:"If you are an Agency please check this box",COMPANY_VAT:"VAT Registration number",PRIVACY_LABEL:"I agree to the CNBC Media Hub {privacy} , {terms} and {supplementTerms}",COMPANY_NAME_DESCRIPTION:"Please enter your company name or N/A."},PROMO_CODE_FORM:{TITLE:"Promo Code",SUBMIT:"Apply",PROMO_CODE:"Promo Code"},PAYMENT_FORM:{NAME:"Full Name",PHONE:"Phone Number (incl country code eg. +44)",EMAIL:"Email",EMAIL_CONFIRM:"Confirm Email",BILLING_LINE_1:"Line 1",BILLING_CITY:"City",BILLING_COUNTRY:"Country",BILLING_POST_CODE:"Post Code",TERMS_LABEL:"Terms & Conditions",PAYMENT_CARD:"Pay with card",PROMO_LABEL:"Promo code",COMPANY_VAT:"VAT Registration number"}},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"},CURRENCIES:{USD:"USD",GBP:"GBP",EUR:"EUR",AUD:"AUD",CAD:"CAD",NZD:"NZD",JPY:"JPY",CNY:"CNY",INR:"INR",RUB:"RUB",ZAR:"ZAR",BRL:"BRL",MXN:"MXN",ARS:"ARS",CLP:"CLP",COP:"COP",PEN:"PEN",VEF:"VEF",UYU:"UYU",BOB:"BOB",PYG:"PYG",DOP:"DOP",GTQ:"GTQ",HNL:"HNL",NIO:"NIO",CRC:"CRC",SVC:"SVC",BZD:"BZD",BSD:"BSD",JMD:"JMD",KYD:"KYD",TTD:"TTD",XCD:"XCD",ANG:"ANG",AWG:"AWG",BBD:"BBD",BMD:"BMD",BND:"BND",FJD:"FJD",GYD:"GYD",LRD:"LRD",NAD:"NAD",PGK:"PGK",SBD:"SBD",SRD:"SRD",TWD:"TWD",VUV:"VUV",WST:"WST",KHR:"KHR",LAK:"LAK",MMK:"MMK",MOP:"MOP",MVR:"MVR",NPR:"NPR",PKR:"PKR",PHP:"PHP",SCR:"SCR",LKR:"LKR",THB:"THB",IDR:"IDR",MYR:"MYR",SGD:"SGD",KRW:"KRW",KZT:"KZT",UZS:"UZ"},UI:{NEXT_WEEKS_CLASS:"Next weeks class",SHOW:"Show",NO_IMAGE:"No image",UPLOAD:"Upload",SAVE:"Save",CANCEL:"Cancel",DELETE:"Delete",PLEASE_WAIT:"Please wait...",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",DOWNLOADS:"Downloads",ALL_DOWNLOADS:"All Downloads",NO_DOWNLOADS:"No Downloads",DELETE_DOWNLOAD:"Delete Download",DELETE_DOWNLOADS:"Delete All Downloads",DELETE_DOWNLOADS_CONFIRM:"Are you sure you want to delete all downloads?",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",OUR_FEATURE:"Our Feature",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.",PASSWORD_RESET_SUCCESS:"Password reset successful",REGISTRATION_SUCCESS:"Registration successful",REQUIRED_DATA_MISSING:"Required data missing",PASSWORD_EMAIL_SENT:"Password reset email sent",MISSING_QUERY_PARAMS:"Missing query parameters",CHALLENGE_ENTRY_SUCCESS:"You've successfully entered the challenge",RESET_PASSWORD:"Reset password",CURRENT_SUBSCRIPTION:"Current subscription",MANAGE_SUBSCRIPTION:"Manage subscription",CURRENT_PLAN:"Current plan",NEXT_BILLING_DATE:"Next billing date",END_DATE:"End date",SUBSCRIPTION_STATUS:"Subscription status",SUBSCRIPTION_PLAN:"Plan",SUBSCRIPTION_PRICE:"Price",BILLED_MONTHLY:"Billed monthly",ALL_SUBS_BILLED_MONTHLY:"All subscriptions are billed monthly",CHANGE_PLAN:"Change plan",PAUSE_SUBSCRIPTION:"Pause subscription",CONFIRM_TO_PAUSE:"Are you sure you want to pause your subscription?",CONFIRM_TO_SUBMIT:"Confirm to submit",CONFIRM_TO_CHANGE_PLAN:"Are you sure you want to change your plan?",ARE_YOU_SURE:"Are you sure?",ARE_YOU_SURE_TO_DO_THIS:"Are you sure you want to do this?",YES:"Yes",NO:"No",PAGE_NOT_FOUND:"Page not found",PAGE_NOT_FOUND_MESSAGE:"The page you are looking for does not exist",PAGE_NOT_FOUND_OOPS:"Oops! We cant find that page.",PAGE_NOT_FOUND_MESSAGE_OOPS:"It seems you’ve wandered off the beaten path. Don’t worry, it happens to the best of us!",WHAT_CAN_YOU_DO:"What can you do?",DOUBLE_CHECK_URL:"Double-check the URL for any typos",RETURN_TO_HOMEPAGE:"Return to our homepage",EXPLORE_SITE:"Explore our site map to find what you’re looking for.",STILL_NEED_HELP:"If you still need help, feel free to contact us. We’re here to help!",SUBSCRIPTON_UPDATED_SUCCESS:"Subscription updated successfully",SUBSCRIPTON_UPDATED_FAILED:"Subscription update failed",SELECT_A_PLAN:"Select a plan",CONFIRM_CHOICE:"Confirm choice",PROVIDE_PAYMENT_DETAILS:"Please provide your payment details",SUBSCRIPTON_TRIALING:"Your subscription is currently in trial",NEED_HELP_WITH_SUBSCRIPTION:"Need help with your subscription? eg. updating payment details",CONTACT_SUPPORT:"Contact support",REGISTRATION_EMAIL_SENT:"Registration email sent",VERIFY_EMAIL:"Registration email sent. Please verify your email account to login.",VERIFICATION_SUCCESS:"Verification successful",SUBSCRIBE:"Subscribe now",NO_DATA_FOUND:"No data found",NO_DATA:"No data",NO_WORKOUTS:"No workouts",NO_MEDIA:"No media",NO_CHALLENGES:"No challenges",NO_LIVE:"No live classes",NO_SCHEDULE:"No schedule",NO_CONTENT:"No content",PROMO_INFO:"Promo info",REQUEST_PROMO_INFO:"Request promotion info",LOGGING_OUT:"Logging out",LAUNCH_PLAYBACK:"Launch playback",WATCH_NOW:"Watch now",PLAY_NOW:"Play now",WATCH_LIVE:"Watch live",PLAY_LIVE:"Play live",WATCH:"Watch",PLAY:"Play",VIEW_ALL:"View all",VIEW_MORE:"View more",VIEW_LESS:"View less",VIEW_DETAILS:"View details",CONTINUE_SHOPPING:"Continue shopping",CHECKOUT:"Checkout",TOTAL:"Total",TAX:"Tax",TAX_DUE:"Tax due",PROMO_CODE:"Promo code",EMPTY:"Empty",ORDERING:"Ordering",DESCRIPTION:"Description",PRICE:"Price",QUANTITY:"Quantity",SUBTOTAL:"Subtotal",SHIPPING:"Shipping",SHIPPING_ADDRESS:"Shipping address",BILLING_ADDRESS:"Billing address",PAYMENT:"Payment",PAYMENT_METHOD:"Payment method",PAYMENT_DETAILS:"Payment details",PAYMENT_SUCCESS:"Payment successful",PAYMENT_FAILED:"Payment failed",PAYMENT_CANCELLED:"Payment cancelled",PAYMENT_PENDING:"Payment pending",PAYMENT_PROCESSING:"Payment processing",PAYMENT_CONFIRM:"Confirm payment",PAYMENT_CONFIRMATION:"Payment confirmation",PAYMENT_CONFIRMED:"Payment confirmed",PAYMENT_COMPLETE:"Payment complete",PAYMENT_INCOMPLETE:"Payment incomplete",PAYMENT_ERROR:"Payment error",PAYMENT_ERROR_MESSAGE:"There was an error processing your payment. Please try again.",PAYMENT_SUCCESS_MESSAGE:"Payment successful. Thank you for your purchase.",PAYMENT_FAILED_MESSAGE:"Payment failed. Please try again.",PAYMENT_CANCELLED_MESSAGE:"Payment cancelled. Please try again.",PAYMENT_PENDING_MESSAGE:"Payment pending. Please wait for confirmation.",DOWNLOAD_MEDIA:"Download media",DOWNLOAD_MEDIA_MESSAGE:"You can download your media directly using the below link.",LINK_VALID:"NB: This link will only be valid for 24 hours.",USAGE:"Usage",FORMAT:"Format",VIDEO_RESOLUTION:"Video resolution",FRAME_RATE:"Frame rate",BIT_RATE:"Bit rate",AUDIO_BIT_RATE:"Audio bit rate",AUDIO_SAMPLE_RATE:"Audio sample rate",AUDIO_CHANNELS:"Audio channels",AUDIO_CODEC:"Audio codec",VIDEO_CODEC:"Video codec",AI_GENERATED:"AI generated",REQUEST_DOWNLOAD:"Request download",ADD_TO_CART:"Add to cart",ADD_TO_FAVORITES:"Add to favorites",ADD_TO_WATCHLIST:"Add to watchlist",ADD_TO_PLAYLIST:"Add to playlist",ADD_TO_SUBSCRIPTION:"Add to subscription",ADD_TO_FOLLOW:"Add to follow",ADD_TO_FRIEND:"Add to friend",CART:"Cart",CART_TOTAL:"Cart total",CART_EMPTY:"Cart empty",CART_EMPTY_MESSAGE:"Your cart is empty. Add items to continue.",CART_EMPTY_CONTINUE:"Continue shopping",CART_EMPTY_TITLE:"Cart empty",LOGIN_TO_PURCHASE:"Please register or login to complete your purchase",HOME_LABEL:"Back to the homepage",SEARCH_LABEL:"Search",LOGIN_REGISTER_LABEL:"Sign in/Register",LOGIN_LABEL:"Sign in",LOGOUT_LABEL:"Sign out",REGISTER_LABEL:"Register",PROFILE_LABEL:"My account",ACCOUNT_SETTINGS_LABEL:"Settings",HELP_LABEL:"Need help?",FAQS_LABEL:"See all FAQs",HELP_AND_FAQS_LABEL:"Help",CONTACT_LABEL:"Contact us",COOKIES_LABEL:"How we use cookies",TERMS_LABEL:"Terms of Service",SUPPLEMENTAL_TERMS_LABEL:"Supplemental Terms of Service",PRIVACY_LABEL:"Privacy Policy",INSTAGRAM_LABEL:"Instagram",FACEBOOK_LABEL:"Facebook",TWITTER_LABEL:"Twitter",ALREADY_HAVE_ACCOUNT:"Already have an account?",FORGOT_PASSWORD_LABEL:"Forgot password?",NO_FREE_TRIAL_ALLOWED:"It appears you're not eligible for a free trial as you've previously held a subscription with us."},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",USER_NOT_FOUND_MESSAGE:"User not found",INCORRECT_USERNAME_OR_PASSWORD_MESSAGE:"Incorrect username or password",SIGN_OUT_FAILED_MESSAGE:'"Error signing out. Please try again."',PASSWORD_RESET_FAILED:"Password reset failed",REGISTRATION_FAILED:"Registration failed",VERIFICATION_FAILED:"Verification failed",UNKNOWN_ERROR:"Unknown error"}},et=({testID:i,name:r="avatar",isEditable:n=!0,initValue:l,fileUpdateCallback:o=async()=>{}})=>{const[d,m]=c(l);s(()=>{l&&m(l)},[l]);return t("div",{"data-testid":i||'"Avatar"',className:"relative",children:[t("div",{className:"relative w-[200px] aspect-1 rounded-full border border-solid overflow-hidden flex items-center justify-center m-4",children:[d&&t(a,{children:[e(Ge,{src:d,alt:r,width:200,height:200}),n&&e("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e(Ie,{size:Ce.SMALL,rounded:!0,onClick:()=>{m(void 0)},children:Je.UI.REMOVE_BTN_LABEL})})]}),!d&&t(a,{children:[n&&e("div",{className:"absolute w-full h-full flex items-center justify-center",children:e(We,{id:r,className:"button cursor-pointer mb-0",children:e(De,{className:"mb-0",children:Je.UI.UPLOAD})})}),!n&&e(be,{name:"mdi:account-circle",size:200,className:"opacity-30"})]})]}),e("input",{type:"file",id:r,name:r,className:"hidden",onChange:e=>{const t=e.target.files?.[0];if(t){const e=URL.createObjectURL(t);m(e),(async e=>{o&&"function"==typeof o&&o(e)})(t)}}})]})};et.displayName="Avatar";const tt=({testID:t,buttonData:a})=>e("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:a?.map((t,i)=>{const r=i>0&&i<a.length-1,n=0===i,l=i===a.length-1,o=h({"rounded-none":r},{"rounded-r":n,"rounded-l":l});return e("div",{children:e(Ie,{...t,className:o,children:t.children})},t.id)})});tt.displayName="ButtonGroup";const at="relative rounded-lg overflow-hidden shadow bg-cardBackground text-cardText dark:bg-darkCardBackground dark:text-darkCardText group",it="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-cardBackground text-cardText dark:bg-darkCardBackground dark:text-darkCardText hover:bg-cardBackgroundHover group",rt="transition duration-500 ease-in-out ",nt={replace(t){if("a"===t.name){const a=C(t.attribs);return e(Re,{...a,children:v(t.children,nt)})}if(t.attribs&&"p"===t.name){const a=C(t.attribs);return e(De,{...a,children:v(t.children,nt)})}return t}},lt=({testID:t,data:i,align:r,className:n})=>i?e("span",{"data-testid":t||'"HtmlContent"',className:h("relative",{"text-right":"right"===r},{"text-center":"center"===r},{"text-left":"left"===r},n),children:y(i,nt)}):e(a,{});lt.displayName="HtmlContent";const ot={allowMultipleFractions:!0},st=[{unit:"years",symbol:"Y"},{unit:"months",symbol:"M"},{unit:"weeks",symbol:"W"},{unit:"days",symbol:"D"},{unit:"hours",symbol:"H"},{unit:"minutes",symbol:"M"},{unit:"seconds",symbol:"S"}],ct=(e,t)=>`((?<${e}>-?\\d*[\\.,]?\\d+)${t})?`,dt=new RegExp(["(?<negative>-)?P",ct("years","Y"),ct("months","M"),ct("weeks","W"),ct("days","D"),"(T",ct("hours","H"),ct("minutes","M"),ct("seconds","S"),")?"].join(""));function mt(e){if(""!==e&&null!=e)return parseFloat(e.replace(",","."))}const ut=new Error("Invalid duration"),ht=new Error("Multiple fractions specified");function pt(e,t=ot){const a=dt.exec(e);if(!a||!a.groups)throw ut;let i=!0,r=0;const n={};for(const{unit:e}of st)if(a.groups[e]&&(i=!1,n[e]=mt(a.groups[e]),!t.allowMultipleFractions&&!Number.isInteger(n[e])&&(r++,r>1)))throw ht;if(i)throw ut;const l=n;return a.groups.negative&&(l.negative=!0),l}function ft(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}function Nt(e){const t=I(e),a=[];return t.years&&a.push(`${t.years} years`),t.months&&a.push(`${t.months} months`),t.weeks&&a.push(`${t.weeks} weeks`),t.days&&a.push(`${t.days} days`),t.hours&&a.push(`${t.hours} hours`),t.minutes&&a.push(`${t.minutes} minutes`),t.seconds&&a.push(`${t.seconds} seconds`),a.join(", ")}function gt(e){if(e&&0!==e.length)return e?.map(e=>e)?.[Math.floor(Math.random()*e?.map(e=>e).length)]}const Et={isDarkTheme:!1,toggleTheme:()=>{},theme:void 0},bt=i.createContext(Et),At=({children:t,theme:a})=>e(bt.Provider,{value:a,children:t}),St=()=>{const e=d(bt);if(void 0===e)throw new Error("useThemeContext must be used within a ThemeProvider");return e},yt=m({brand:void 0,header:void 0,footer:void 0,locale:void 0,app:void 0,images:void 0}),Ct=({children:t,value:a})=>e(yt.Provider,{value:a,children:t}),vt=()=>{const e=d(yt);if(void 0===e)throw new Error("useAppContext must be used within a AppProvider");return e},It=m({config:{region:"eu-west-1",oauth:{},cookieStorage:{}}}),Tt=({children:t,value:a})=>(s(()=>{a.config&&T.configure({Auth:{region:a?.config?.region,userPoolId:a?.config?.userPoolId,userPoolWebClientId:a?.config?.userPoolWebClientId,signUpVerificationMethod:a?.config?.signUpVerificationMethod||"code",oauth:{domain:a?.config?.oauth?.domain,scope:a?.config?.oauth?.scope||["email","profile","openid","aws.cognito.signin.user.admin"],redirectSignIn:a?.config?.oauth?.redirectSignIn,redirectSignOut:a?.config?.oauth?.redirectSignOut,responseType:a?.config?.oauth?.responseType||"code"},cookieStorage:{domain:a?.config?.cookieStorage?.domain,secure:"production"===process.env.NODE_ENV||a?.config?.cookieStorage?.secure}}})},[a.config]),e(It.Provider,{value:a,children:t})),Rt=m(void 0),Ot=({children:t,data:a})=>e(Rt.Provider,{value:a,children:t}),Lt=()=>{const e=d(Rt);if(void 0===e)throw new Error("useCartContext must be used within a CartProvider");return e},_t=({id:a,title:i,description:r,image:n,className:l,metaData:o,actions:s,padded:c,scaleOnHover:m,onClick:u,htmlDetails:p,titleOverlay:f})=>{const N=d(yt);return t("div",{id:a,"data-testid":"CardBasic",className:S(h(rt,u?it:at,{"p-4":c},{"hover:scale-100":!m},l)),onClick:u,children:[n&&e("div",{className:S(h("relative w-full overflow-hidden aspect-[16/9]",{rounded:c},n.aspectRatio)),children:e(Ge,{fill:!0,src:n?.src??N?.images?.placeholder,sizes:"100vh",alt:n?.alt,className:h("absolute inset-0 object-cover group-hover:scale-110 dura",rt)})}),f&&i&&e("div",{className:"absolute inset-0 w-full h-full z-10 flex items-center justify-center bg-black bg-opacity-30",children:e(Be,{tag:Me.H4,singleLine:!0,flush:!0,className:"text-white",children:i})}),!f&&(i||p||r)&&e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:h({"p-3":!c},{"pt-3":c}),children:[e("div",{children:i&&e(Be,{tag:Me.H4,singleLine:!0,flush:!0,children:i})}),!p&&r&&e("div",{children:e(De,{className:"mb-0",children:ft(r)})}),p&&r&&e("div",{children:e(lt,{className:"mb-0",data:ft(r)})}),t("div",{className:"flex items-center justify-between gap-2",children:[o&&e("div",{className:"flex shrink-0 mt-2",children:o.map((a,i)=>1===o.length?e(De,{className:"text-xs",as:we.SMALL,children:a},a):0===i?t(De,{className:"text-xs",as:we.SMALL,children:[a," ·"]},a):i===o.length-1?t(De,{className:"text-xs",as:we.SMALL,children:[" ",a]},a):t(De,{className:"text-xs",as:we.SMALL,children:[" ",a," ·"]},a))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap flex-1 justify-end",children:[s.like&&e(Ie,{variant:ye.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.like?.onClick&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(Ie,{variant:ye.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.share?.onClick&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(Ie,{variant:ye.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.save?.onClick&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(Ie,{variant:ye.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.comment?.onClick&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(Ie,{variant:ye.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.bookmark?.onClick&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(Ie,{variant:ye.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.report?.onClick&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(Ie,{variant:ye.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.follow?.onClick&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(Ie,{variant:ye.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.download?.onClick&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(Ie,{variant:ye.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.edit?.onClick&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(Ie,{variant:ye.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.delete?.onClick&&"function"==typeof s.delete.onClick&&s.delete.onClick({id:a})}}),s.custom&&s.custom.map((t,a)=>e("div",{children:t},a))]})]})]})})]})};function xt(){return d(yt).locale,Je}function wt(){return d(bt)}_t.displayName="CardBasic";const Dt=({id:a,title:i,description:r,image:n,className:l,metaData:o,actions:s,onClick:c,playCallback:m,htmlDetails:u,accessRestriced:p})=>{const f=xt(),N=d(yt);return t("div",{id:a,"data-testid":"CardBasic",className:h(rt,c?it:at,l),onClick:c,children:[n&&t("div",{className:h("relative w-full overflow-hidden aspect-[16/9]",n.aspectRatio),children:[e(Ge,{fill:!0,src:n?.src??N?.images?.placeholder,sizes:"100vh",alt:n?.alt,className:h("absolute inset-0 object-cover group-hover:scale-110",rt)}),p&&e("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e(De,{bold:!0,transform:Le.UPPERCASE,children:f.UI.PURCHASE_TO_ACCESS})}),m&&e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(Ie,{variant:ye.PRIMARY,icon:"mdi:play",size:Ce.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof m&&m(e)}})})]}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:"p-3",children:[e("div",{children:i&&e(Be,{tag:Me.H5,singleLine:!0,flush:!0,children:i})}),!u&&r&&e("div",{children:e(De,{className:"mb-0",children:ft(r)})}),u&&r&&e("div",{children:e(lt,{className:"mb-0",data:ft(r)})}),t("div",{className:"flex items-center justify-between gap-2",children:[o&&e("div",{className:"flex shrink-0",children:o.map((a,i)=>1===o.length?e(De,{className:"text-xs",as:we.SMALL,children:a},a):0===i?t(De,{className:"text-xs",as:we.SMALL,children:[a," ·"]},a):i===o.length-1?t(De,{className:"text-xs",as:we.SMALL,children:[" ",a]},a):t(De,{className:"text-xs",as:we.SMALL,children:[" ",a," ·"]},a))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(Ie,{variant:ye.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.like?.onClick&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(Ie,{variant:ye.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.share?.onClick&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(Ie,{variant:ye.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.save?.onClick&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(Ie,{variant:ye.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.comment?.onClick&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(Ie,{variant:ye.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.bookmark?.onClick&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(Ie,{variant:ye.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.report?.onClick&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(Ie,{variant:ye.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.follow?.onClick&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(Ie,{variant:ye.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.download?.onClick&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(Ie,{variant:ye.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.edit?.onClick&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(Ie,{variant:ye.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),s?.delete?.onClick&&"function"==typeof s.delete.onClick&&s.delete.onClick({id:a})}})]})]})]})})]})};Dt.displayName="CardMedia";const kt=({video:a,isMuted:i=!0,id:r,title:n,description:l,image:o,className:s,metaData:c,actions:d,onClick:m,htmlDetails:u})=>t("div",{id:r,"data-testid":"CardVideo",className:h(rt,m?it:at,s),onClick:m,children:[o&&a&&e("div",{className:h("",o.aspectRatio),children:e(L,{videoId:`video--${r}`,playbackStartDelay:1e3,videoSrc:e("source",{src:a,type:"video/mp4"}),videoClassName:h("hls-hover-video w-full aspect-[16/9]",o.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:i,className:h("w-full !block",o.aspectRatio),pausedOverlay:e("div",{className:h("relative w-full aspect-[16/9]",o.aspectRatio),children:e(Ge,{src:o?.src,alt:o?.alt})}),loadingOverlay:e("div",{className:h("w-full flex items-center justify-center aspect-[16/9]",o.aspectRatio),children:e("div",{className:"",children:e(ve,{color:"#FFF"})})})},`${r}--card`)}),(n||u||l||c||d)&&e("div",{className:"w-full flex flex-col",children:t("div",{className:"p-3",children:[n&&e("div",{children:e(Be,{tag:Me.H5,singleLine:!0,flush:!0,children:n})}),!u&&l&&e("div",{children:e(De,{className:"mb-0",children:ft(l)})}),u&&l&&e("div",{children:e(lt,{className:"mb-0",data:ft(l)})}),(c||d)&&t("div",{className:"flex items-center justify-between gap-2",children:[c&&e("div",{className:"flex shrink-0",children:c.map((a,i)=>1===c.length?e(De,{className:"text-xs",as:we.SMALL,children:a},a):0===i?t(De,{className:"text-xs",as:we.SMALL,children:[a," ·"]},a):i===c.length-1?t(De,{className:"text-xs",as:we.SMALL,children:[" ",a]},a):t(De,{className:"text-xs",as:we.SMALL,children:[" ",a," ·"]},a))}),d&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[d.like&&e(Ie,{variant:ye.PRIMARY,icon:d.like.isActive?"mdi:like":"mdi:like-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),d?.like?.onClick&&"function"==typeof d.like.onClick&&d.like.onClick({id:r})}}),d.share&&e(Ie,{variant:ye.PRIMARY,icon:d.share.isActive?"mdi:share":"mdi:share-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),d?.share?.onClick&&"function"==typeof d.share.onClick&&d.share.onClick({id:r})}}),d.save&&e(Ie,{variant:ye.PRIMARY,icon:d.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),d?.save?.onClick&&"function"==typeof d.save.onClick&&d.save.onClick({id:r})}}),d.comment&&e(Ie,{variant:ye.PRIMARY,icon:d.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),d?.comment?.onClick&&"function"==typeof d.comment.onClick&&d.comment.onClick({id:r})}}),d.bookmark&&e(Ie,{variant:ye.PRIMARY,icon:d.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),d?.bookmark?.onClick&&"function"==typeof d.bookmark.onClick&&d.bookmark.onClick({id:r})}}),d.report&&e(Ie,{variant:ye.PRIMARY,icon:d.report.isActive?"mdi:flag":"mdi:flag-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),d?.report?.onClick&&"function"==typeof d.report.onClick&&d.report.onClick({id:r})}}),d.follow&&e(Ie,{variant:ye.PRIMARY,icon:d.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),d?.follow?.onClick&&"function"==typeof d.follow.onClick&&d.follow.onClick({id:r})}}),d.download&&e(Ie,{variant:ye.PRIMARY,icon:d.download.isActive?"mdi:download":"mdi:download-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),d?.download?.onClick&&"function"==typeof d.download.onClick&&d.download.onClick({id:r})}}),d.edit&&e(Ie,{variant:ye.PRIMARY,icon:d.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),d?.edit?.onClick&&"function"==typeof d.edit.onClick&&d.edit.onClick({id:r})}}),d.delete&&e(Ie,{variant:ye.PRIMARY,icon:d.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Ce.SMALL,onClick:e=>{e.stopPropagation(),d?.delete?.onClick&&"function"==typeof d.delete.onClick&&d.delete.onClick({id:r})}})]})]})]})})]});kt.displayName="CardVideo";const Pt=({id:a,title:i,subtitle:r,description:n,icon:l,className:o,onClick:s,moreTitle:c,align:d})=>t("div",{id:a,"data-testid":"CardIcon",className:S(h(rt,s?it:at,"p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===d},{"items-center":"center"===d},{"items-end":"right"===d},o)),children:[l&&e("div",{className:h("relative"),children:e(be,{name:l,size:48})}),t("div",{className:h({"text-left":"left"===d},{"text-center":"center"===d},{"text-right":"right"===d}),children:[t("div",{children:[i&&e(Be,{tag:Me.H5,singleLine:!0,children:i}),r&&e(De,{bold:!0,children:r})]}),e("div",{children:n&&e(De,{align:d,children:n})})]}),s&&e(Ie,{variant:ye.LINK,onClick:s,className:"absolute left-0 top-0 w-full h-full cursor-pointer border border-solid",children:c})]});Pt.displayName="CardIcon";const Mt=({testID:a,id:i,title:r,description:n,image:l,onClick:o,className:s,padded:c,icon:d,raised:m=!0,htmlDetails:u})=>t("div",{id:i,"data-testid":a||"CardHorz",className:h("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":c},{"shadow hover:shadow-lg":m},rt,o?it:at,s),onClick:o,children:[l&&e("div",{className:"w-1/3 aspect-[1/1]",children:e("div",{className:S(h("relative w-full overflow-hidden h-full",l.aspectRatio)),children:e(Ge,{fill:!0,src:l?.src,alt:l?.alt,className:"absolute inset-0 object-cover"})})}),d&&!l&&e("div",{className:"py-2 pl-2",children:e(be,{name:d,size:30})}),e("div",{className:"flex flex-1 overflow-hidden h-min",children:t("div",{className:"flex-col gap-2 py-2 pr-2 overflow-hidden",children:[r&&e("div",{className:"",children:e(Be,{tag:Me.H4,children:r})}),!u&&n&&e("div",{children:e(De,{className:"mb-0",children:ft(n)})}),u&&n&&e("div",{children:e(lt,{className:"mb-0",data:ft(n)})})]})})]});Mt.displayName="CardHorz";const Ut=({testID:i,className:r,data:n,padded:l=!0,shadow:o=!0})=>{const c=g(0);return s(()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||N(c,200,{duration:.5})},[c]),n?e("div",{"data-testid":i||"CardData",className:S(h(rt,at,{"p-4":l},{shadow:o},r)),children:t("div",{className:"min-w-[110px] flex flex-col flex-1 items-center justify-center",children:[n?.animateNumber&&t("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e(Ee,{from:n.numberData.from,to:n.numberData.to,numDecimals:n.numberData.numDecimals}),e("span",{children:n?.item})]}),!n?.animateNumber&&e("div",{className:"text-lg",children:e(Be,{tag:Me.H2,flush:!0,children:n?.item})}),e("div",{className:"flex flex-1 items-center justify-center",children:e(De,{className:"mb-0",children:n?.label})})]})}):e(a,{})};Ut.displayName="CardData";const Ft=({variant:t,className:a,data:i,...r})=>{switch(t){case"basic":default:return e(_t,{className:a,...i,...r});case"media":return e(Dt,{className:a,...i,...r});case"video":return e(kt,{className:a,...i,...r});case"icon":return e(Pt,{className:a,...i,...r});case"horz":return e(Mt,{className:a,...i,...r});case"data":return e(Ut,{className:a,...i,...r})}};Ft.displayName="Card";const Bt=({text:i,flush:r,tag:n=Me.H1,colorOverride:l})=>{const o=i?.split(" ");return e("div",{"data-testid":"DisplayHeading",className:h("relative display-heading-wrapper",l),children:e(Be,{tag:n,flush:r,className:"font-display font-extrabold",children:o.map((i,r)=>{const n=o.length>1&&r===o.length-1,s=`${i}-${r}`;return t("span",{children:[e("span",{className:h({"display-heading relative":!n},{"inline-block relative":n}),children:t(a,{children:[n&&t(a,{children:[e("div",{className:"display-heading--emphasis z-0"}),e("span",{className:h("display-heading--lastword relative",l),children:i})]}),!n&&e("span",{className:"relative z-10",children:i})]})}),!n&&" "]},s)})})})};Bt.displayName="DisplayHeading";const Ht=({children:a,className:i,submit:n,onSubmit:l=()=>{},onChange:o,hideSubmit:c,ariaSubmitLabel:d,submitID:m,submitVariant:u=ye.PRIMARY,initialValues:p={},isBoxed:f=!1,submitType:N=Se.SUBMIT,disabledSubmitWithReturn:g=!0,isDisabled:E=!1})=>{const b=_({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"}),A=r(p);s(()=>{JSON.stringify(A.current)!==JSON.stringify(p)&&(b.reset(p),A.current=p)},[p]),s(()=>{if(o&&"function"==typeof o){const e=b.watch((e,t)=>{o(e,t)});return()=>e.unsubscribe()}},[]);const S=h({"sr-only":c}),{formState:{isSubmitting:y,isDirty:C,isValid:v}}=b;return e(x,{...b,children:e("div",{"data-testid":"Form",className:h("w-full max-w-s @containers @form"),children:t("form",{onSubmit:b.handleSubmit(l),onKeyDown:e=>{g&&"Enter"===e.key&&e.preventDefault()},className:h("w-2xs relative",{"form px-8 pt-6 pb-8 ":f},{"opacity-50":y},i),children:[a,n&&e("div",{className:"flex items-center justify-end",children:e(Ie,{id:m||n,className:S,ariaLabel:d||n||"Submit",type:N,outline:!0,isLoading:y,disabled:y||!v||E,variant:u,children:n})})]})})})};var Gt;Ht.displayName="Form",function(e){e.TEXT="text",e.TEXTAREA="textarea",e.SELECT="select",e.CHECKBOX="checkbox",e.RADIO="radio",e.SWITCH="switch",e.DATE="date",e.TIME="time",e.DATETIME="datetime",e.FILE="file",e.PASSWORD="password",e.EMAIL="email",e.NUMBER="number",e.TEL="tel",e.URL="url",e.SEARCH="search",e.HIDDEN="hidden"}(Gt||(Gt={}));const Wt=i.forwardRef(function({id:a,name:i,options:r,required:n,className:l,disabled:o,...s},c){if(!r)throw new Error("FormSelect requires options prop");return e("div",{id:a,className:h("pb-2 min-w-20",l),children:t("div",{className:"relative",children:[e("select",{ref:c,name:i,disabled:o,required:n,className:"form-item text-input pr-10",...s,children:r.map((t,a)=>e("option",{value:t?.value?.toString(),disabled:t.disabled,className:"bg-bodyBackground dark:bg-darkBodyBackground",children:t.label},`${t?.value?.toString()}--${a}`))}),e("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(be,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})});Wt.displayName="FormSelect";const Yt=({name:a,type:i,label:r,required:n,className:l,icon:o,options:s,disabled:d,description:m,showPasswordLabel:u,hidePasswordLabel:p,validations:f={},fileUploadCallback:N=()=>{},autoComplete:g})=>{const[E,b]=c(!1),{control:A,formState:S}=w(),{errors:y}=S,C=r&&i!==Gt.CHECKBOX,v=n||Boolean(f.required)?`${r} *`:r;return e("div",{className:"relative",children:t("div",{"data-testid":"FormField",className:"mb-4",children:[C&&e("div",{className:"flex items-baseline justify-between",children:e(We,{id:a,children:v})}),e("div",{className:"mb-1",children:e(D,{defaultValue:"",name:a,control:A,rules:f,render:({field:c})=>((i,c)=>{switch(i){case Gt.HIDDEN:return e("input",{type:Qe.HIDDEN,disabled:d,...c});case Gt.TEXT:return e(Ze,{type:Qe.TEXT,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:g,...c});case Gt.PASSWORD:{const a=E?Qe.TEXT:Qe.PASSWORD,i="appearance-none border-none bg-transparent flex items-center";return t("div",{className:"relative",children:[e("span",{className:"absolute right-0 top-0 flex items-center justify-center h-full z-10 pr-2",onClick:()=>b(e=>!e),role:"button",tabIndex:0,children:e("button",E?{type:"button","aria-label":p,className:h(i,"form-icon"),children:e(be,{name:"mdi:eye-off",size:24})}:{type:"button","aria-label":u,className:h(i,"form-icon"),children:e(be,{name:"mdi:eye",size:24})})}),e(Ze,{type:a,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:g,...c})]})}case Gt.TEXTAREA:return e(Ze,{type:Qe.TEXTAREA,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Gt.EMAIL:return e(Ze,{type:Qe.EMAIL,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:g,...c});case Gt.DATE:return e(Ze,{type:Qe.DATE,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Gt.DATETIME:return e(Ze,{type:Qe.DATETIME,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Gt.NUMBER:return e(Ze,{type:Qe.NUMBER,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Gt.CHECKBOX:return e(Te,{required:n||Boolean(f.required),id:a,className:l,label:r,disabled:d,...c});case Gt.RADIO:return e($e,{required:n||Boolean(f.required),id:a,className:l,options:s,disabled:d,...c});case Gt.SWITCH:return e(Xe,{id:a,required:n||Boolean(f.required),className:l,disabled:d,...c});case Gt.SELECT:return e(Wt,{required:n||Boolean(f.required),id:a,className:l,disabled:d,label:r,options:s,...c});case Gt.FILE:return e(Pe,{required:n||Boolean(f.required),id:a,className:l,disabled:d,onChangeCallback:e=>{N(e)},...c});default:return e(Ze,{type:Qe.TEXT,required:n||Boolean(f.required),disabled:d,icon:o,className:l,...c})}})(i,c)})}),m&&e("div",{className:"formfield-description",children:e(De,{size:xe.SMALL,className:"mb-0",children:m})}),y[a]&&e("div",{className:"formfield-error text-error italic",children:e(De,{size:xe.SMALL,className:"mb-0",children:y?.[a]?.message?.toString()})})]})})};Yt.displayName="FormField";const Vt=({testID:a,url:i,title:r="Share",enabled:n={facebook:!0,twitter:!0}})=>t("div",{"data-testid":a||"Share",className:"flex gap-2 items-center ",children:[e("div",{children:t(De,{as:we.P,className:"mb-0",children:[Je.UI.SHARE,":"]})}),n?.facebook&&e(k,{url:i,title:r,className:"",children:e(be,{name:"mdi:facebook"})}),n?.twitter&&e(P,{url:i,title:r,className:"",children:e(be,{name:"mdi:twitter"})}),n?.whatsapp&&e(M,{url:i,title:r,className:"",children:e(be,{name:"mdi:whatsapp"})}),n?.email&&e(U,{url:i,title:r,className:"",children:e(be,{name:"mdi:email"})}),n?.linkedin&&e(F,{url:i,title:r,className:"",children:e(be,{name:"mdi:linkedin"})})]});Vt.displayName="Share";const zt=({data:i})=>{const[r,n]=c(0);return i?e("div",{"data-testid":"Tabs",children:t(B,{onSelect:e=>n(e),children:[e(H,{className:"mb-8 flex p-0",children:i.map((t,a)=>e(G,{className:h("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":r!==a,"border-primary border-solid border-0 border-b-2":r===a}),children:e(De,{className:"m-0 text-center",children:t.title})},a))}),i.map((t,a)=>e(W,{className:"",children:t.content},a))]})}):e(a,{})};zt.displayName="Tabs";const jt=({testID:a,facebook:i,twitter:r,instagram:n,linkedin:l,youtube:o})=>t("div",{"data-testid":a||'"VisitUs"',className:"flex gap-2",children:[i&&e(Ie,{variant:ye.PRIMARY,size:Ce.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(i.url)}),r&&e(Ie,{variant:ye.PRIMARY,size:Ce.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(r.url)}),n&&e(Ie,{variant:ye.PRIMARY,size:Ce.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(n.url)}),l&&e(Ie,{variant:ye.PRIMARY,size:Ce.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(l.url)}),o&&e(Ie,{variant:ye.PRIMARY,size:Ce.MEDIUM,icon:"mdi:youtube",onClick:()=>window.open(o.url)})]});jt.displayName="VisitUs";const Kt=({testID:a,title:i,links:r,inline:n=!0,separators:l=!1,className:o})=>t("div",{"data-testid":a||'"Menu"',className:S(h("flex flex-col gap-2",o)),children:[i&&e("div",{children:e(Be,{tag:Me.H3,children:i})}),e("div",{className:h("flex gap-0 items-center md:items-start",{"flex-col md:flex-row ":n},{"flex-col ":!n}),children:r?.map((a,i)=>{const n=`${a.id}--${i}`;return t("div",{className:"flex gap-0",children:[e("div",{className:"relative py-2",children:t(Re,{href:a.url,className:"flex gap-1",children:[a.icon&&e(be,{name:a.icon}),a.title&&e("div",{children:a.title})]})}),l&&i+1<r.length&&e("div",{className:"h-full hidden md:flex self-center px-2",children:e(be,{name:"mdi:dot",className:"opacity-50"})})]},n)})})]});var qt;Kt.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(qt||(qt={}));const $t=({children:t,className:a,spacing:i,padded:r,isNarrow:n,isCentered:l,isFlush:o,direction:s=qt.COLUMN})=>{const c=S(h("container relative mx-auto my-0",{"px-2 md:px-4 lg:px-4":r},{"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":n},{"flex items-center justify-center flex-col flex-1":l},{"px-0 max-w-full mx-0":o},{"flex flex-col":s===qt.COLUMN},{"flex-row":s===qt.ROW})),d=h("w-full h-full",a);return e("div",{"data-testid":"Container",className:c,children:e("div",{className:d,children:t})})};$t.displayName="Container";const Xt=({testID:a,children:i,withBg:r=!0,inversed:n=!1})=>t("div",{"data-testid":a||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[r&&e("div",{className:h("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":!n,"-top-24 left-0":n})}),e($t,{children:i})]});Xt.displayName="Hero";const Qt=({testID:a,bgAsset:i,focalAsset1:n,focalAsset2:l,focalAsset3:o})=>{r(null);const s={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 t("div",{"data-testid":a||"AnimationSet1",className:h("relative w-full h-full"),children:[i&&e(E.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(Ge,{src:i.src,alt:i.alt,fill:!0})}),(n||l)&&t(E.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(E.div,{className:"absolute aspect-[9/18] right-4 top-8 w-[170px] md:right-4 md:top-8 md:w-[130px] lg:right-0 lg:top-8 lg:w-[190px] xl:right-16 xl:top-16 xl:w-[250px] ",initial:s,animate:c,children:e(Ge,{src:n.src,alt:n.alt,fill:!0})}),l&&e(E.div,{className:"absolute aspect-[9/18] left-0 top-2 w-[200px] md:left-0 md:top-2 md:w-[150px] lg:left-4 lg:top-0 lg:w-[210px] xl:left-0 xl:top-0 xl:w-[300px]",initial:s,animate:{...c,transition:{...c.transition,delay:.3}},children:e(Ge,{src:l.src,alt:l.alt,fill:!0})})]}),o&&e("div",{className:"absolute aspect-[0.5/1] flex flex-col flex-nowrap p-0 z-20 items-end justify-end w-1/3 top-0 left-4 xl:w-1/4 xl:top-16 xl:left-12",children:e(E.div,{className:"relative w-full overflow-visible aspect-[1.2/1] bg-bodyBackground shadow-lg rounded-lg p-0",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(Ge,{src:o.src,fill:!0,alt:o.alt})})})]})};Qt.displayName="AnimationSet1";const Zt=process.env.AWS_COGNITO_USERPOOL_DOMAIN||process.env.NEXT_PUBLIC_AWS_COGNITO_USERPOOL_DOMAIN,Jt=process.env.AWS_COGNITO_CLIENT_ID||process.env.NEXT_PUBLIC_AWS_COGNITO_CLIENT_ID,ea=process.env.AWS_COGNITO_REDIRECT_URI||process.env.NEXT_PUBLIC_AWS_COGNITO_REDIRECT_URI,ta=Zt&&Jt&&ea?`https://${Zt}/oauth2/authorize?client_id=${Jt}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${ea}`:void 0,aa=Zt&&Jt&&ea?`https://${Zt}/oauth2/authorize?client_id=${Jt}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${ea}`:void 0,ia={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},ra={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."}},na=e=>{try{const t=e,a=V(t),i=z(t),r=j(t);return a&&i&&r?void 0:"Not a valid phone number"}catch(e){return"Not a valid phone number"}},la=({handleSubmit:i,initialValues:r,handleTokenCallback:n,showSocialButtons:l=!1,className:o})=>{const c=xt();s(()=>R.listen("auth",({payload:{event:e,data:t}})=>{switch(e){case"signIn":n&&"function"==typeof n&&n(t.signInUserSession);break;case"signOut":K.success("You have been signed out")}}),[]);const d=async e=>{try{O.federatedSignIn({provider:e})}catch(e){console.log(e),K.error(e.message||c?.ERRORS?.GENERIC_ERROR)}};return t("div",{"data-testid":"LoginForm",className:h("form-wrapper",o),children:[t(Ht,{onSubmit:i,submit:Je.FORMS.LOGIN_FORM.SUBMIT,initialValues:r,children:[e(Yt,{name:"email",type:Gt.EMAIL,label:Je.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:ia,autoComplete:"email"}),e(Yt,{name:"password",type:Gt.PASSWORD,label:Je.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),l&&t(a,{children:[e(He,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[ta&&e(Ie,{onClick:()=>d(Y.Google),variant:ye.PRIMARY,iconFirst:!0,icon:"mdi:google",children:Je.UI.LOGIN_WITH_GOOGLE}),aa&&e(Ie,{onClick:()=>d(Y.Apple),variant:ye.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:Je.UI.LOGIN_WITH_APPLE})]})})]})]})};la.displayName="LoginForm";const oa=({handleSubmit:i,handleTokenCallback:r,showSocialButtons:n=!1,className:l})=>{const o=xt();s(()=>R.listen("auth",({payload:{event:e,data:t}})=>{if("signUp"===e)r&&"function"==typeof r&&r(t.signInUserSession)}),[]);const c=async e=>{try{O.federatedSignIn({provider:e})}catch(e){console.log(e),K.error(e.message||o?.ERRORS?.GENERIC_ERROR)}};return t("div",{"data-testid":"RegisterForm",className:h("form-wrapper",l),children:[t(Ht,{onSubmit:i,submit:Je.FORMS.REGISTER_FORM.SUBMIT,children:[e(Yt,{name:"email",type:Gt.EMAIL,label:Je.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:ia,autoComplete:"email"}),e(Yt,{name:"password",type:Gt.PASSWORD,label:Je.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:Je.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:ra,autoComplete:"new-password"})]}),n&&t(a,{children:[e(He,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(Ie,{onClick:()=>c(Y.Google),variant:ye.PRIMARY,iconFirst:!0,icon:"mdi:google",children:Je.UI.SIGNUP_WITH_GOOGLE}),e(Ie,{onClick:()=>c(Y.Apple),variant:ye.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:Je.UI.SIGNUP_WITH_APPLE})]})})]})]})};oa.displayName="RegisterForm";const sa=({handleSubmit:t})=>e("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e(Ht,{onSubmit:t,submit:Je.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,children:e(Yt,{name:"email",type:Gt.EMAIL,label:Je.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:ia})})});sa.displayName="ForgotPasswordForm";const ca=({loginSubmit:a,registerSubmit:i,passwordForgotSubmit:r,handleTokenCallback:n,showSocialLogin:l=!1})=>{const[o,s]=c(!1);return t("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-[550px] mb-8",children:[!o&&e(zt,{data:[{title:"Login",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(la,{handleSubmit:a,showSocialButtons:l,handleTokenCallback:n,className:"w-full"}),e("div",{className:"mt-4",children:e(Ie,{variant:ye.LINK,onClick:()=>s(!o),children:o?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e("div",{className:"flex flex-col gap-4 items-center",children:e(oa,{handleSubmit:i,showSocialButtons:l,handleTokenCallback:n,className:"w-full"})})}]}),o&&e(zt,{data:[{title:"Forgot Password",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(sa,{handleSubmit:r}),e("div",{className:"mt-4",children:e(Ie,{variant:ye.LINK,onClick:()=>s(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};function da({className:t,onClick:a}){return e(Ie,{className:"absolute -right-2 top-1/2 -translate-y-1/2 z-10",onClick:a,icon:"mdi:navigate-next",rounded:!0})}function ma({className:t,onClick:a}){return e(Ie,{className:"absolute -left-2 top-1/2 -translate-y-1/2 z-10",onClick:a,icon:"mdi:navigate-before",rounded:!0})}ca.displayName="Authenticator";const ua=({testID:t,data:a,onPressCallback:i,isCentered:r=!1,carouselOptions:n={loop:!1,slidesToShow:5,scrollAnimationDuration:500,showDots:!1,showArrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:5}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}],easing:"linear"},customRender:l})=>{const o=!n?.slidesToShow||a.length<=n.slidesToShow;return e("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e(q,{arrows:!o&&n.showArrows,nextArrow:e(da,{}),prevArrow:e(ma,{}),centerMode:r,responsive:n.responsive,slidesToScroll:1,slidesToShow:n.slidesToShow,dots:!o&&n.showDots,infinite:!o&&n.loop,autoplay:n.autoPlay,autoplaySpeed:n.autoplaySpeed||0,vertical:n.vertical,easing:n.easing||"linear",cssEase:n.easing||"linear",speed:n.scrollAnimationDuration,...n,children:l?a.map((e,t)=>l(e,t)):a.map((t,a)=>((t,a)=>e("div",{className:"px-2",children:e(Ft,{variant:t.variant,data:{...t.data,onClick:i?()=>{i(t.data.id)}:void 0},className:t.className},a)},a))(t,a))})})};var ha;ua.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"}(ha||(ha={}));const pa=({testID:a,cardData:i,title:n,description:l,withSeparators:o,spacing:s=ha.MODULE})=>{const c=r(null),d=p(c,{once:!0}),m=i?.length%2==0,u=`lg:grid-cols-${i?.length>4?4:i?.length}`,f=m?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-1 lg:grid-cols-3";return t("div",{ref:c,"data-testid":a||"PanelCards",className:h("relative m-auto px-4 lg:px-0 w-full flex flex-col flex-none flex-nowrap",s),children:[(n||l)&&t("div",{className:"relative text-center py-8",children:[n&&e(Bt,{text:n}),l&&e("div",{className:"mt-2",children:e(De,{align:Oe.CENTER,children:l})})]}),e("div",{className:S(h("gap-4 md:gap-4 lg:gap-8 items-center md:items-start justify-center w-full m-auto grid",f,u)),children:i?.map((t,a)=>e("div",{className:"flex gap-8 justify-between items-center",children:e("div",{className:h("relative flex flex-1 items-center justify-center",{"":o}),style:{transform:d?"none":"translateY(200px)",opacity:d?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*a}s`},children:e(Ft,{...t})})},`card-${a}`))})]})};pa.displayName="PanelCards";const fa=({testID:a,title:i,description:r,inversed:n,assets:l,buttonData:o,withBg:s=!0,spacing:c=ha.DEFAULT,chips:d})=>t("div",{"data-testid":a||"PanelFeature",className:h("relative m-auto w-full flex flex-none flex-nowrap px-4 lg:px-0",c),children:[s&&e("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($t,{children:t("div",{className:h("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":n}),children:[t("div",{className:"w-full md:w-1/2 flex flex-col items-start justify-center gap-8",children:[e("div",{className:"relative text-center md:text-left",children:e(Bt,{text:i,flush:!0})}),e("div",{className:"relative text-center md:text-left",children:e(De,{className:"mb-0",children:r})}),d&&e("div",{className:"grid grid-cols-3 gap-2 mx-auto md:mx-0",children:d?.map((t,a)=>e(ke,{rounded:!0,iconFirst:!0,text:t.text,icon:t.icon,variant:t.variant},`chip-${a}`))}),e("div",{className:"mx-auto md:m-0",children:e(Ie,{...o})})]}),e("div",{className:"w-full md:w-1/2 flex items-center justify-center",children:e("div",{className:"w-full aspect-[1/1] flex items-center justify-center",children:e(Qt,{bgAsset:l.bgAsset,focalAsset1:l.focalAsset1,focalAsset2:l.focalAsset2,focalAsset3:l.focalAsset3})})})]})})]});fa.displayName="PanelFeature";const Na=n(function({url:t,sources:a,onReady:i,onExitFullScreenCallback:n,className:o,options:c={playsinline:!0,preferFullWindow:!0},isYoutube:d=!1,defaultAudioTrack:m="No Music",rounded:p=!0,aspectRatioValue:f,isModal:N=!1},g){const E=r(null),b=r(null),A=r(null),y=l(()=>{switch(f){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]"}}},[f]);return s(()=>{if(d)return;const e={autoplay:!0,controls:!0,muted:!1,playsInline:!0,preferFullWindow:!0,responsive:!0,fill:!0,fluid:!N,controlBar:{skipButtons:X?{}:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}},...c,sources:a};if(A.current){const e=A.current;e.autoplay(c.autoplay),e.src(c.sources)}else{const t=document.createElement("video-js");b?.current?.appendChild(t);const a=A.current=Q(t,e,()=>{Q.log("player is ready",a),i&&i(a)});e.onPlay&&"function"==typeof e.onPlay&&a.on("play",e.onPlay),e.onPause&&"function"==typeof e.onPause&&a.on("pause",e.onPause),e.onEnded&&"function"==typeof e.onEnded&&a.on("ended",e.onEnded),a.on("loadedmetadata",function(){const e=a.audioTracks();for(let t=0;t<e.length;t++)e[t].label===m&&(e[t].enabled=!0)}),a.on("fullscreenchange",function(){a.isFullscreen()?console.log("Player is in fullscreen"):(console.log("Player is not in fullscreen"),n&&"function"==typeof n&&n())})}},[c,b]),u(g,()=>({play:()=>{A.current&&A.current.play()},pause:()=>{A.current&&A.current.pause()},fullscreen:()=>{A.current&&A.current.requestFullscreen()}})),s(()=>{if(d)return;const e=A.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),A.current=null)}},[A]),e("div",d&&t?{"data-testid":"Video",className:h("relative w-full h-full aspect-[16/9]",o),children:e($,{ref:E,className:"react-player",url:t,width:"100%",height:"100%",controls:!0,onReady:i,config:{youtube:{playerVars:{modestbranding:1,disablekb:1}}}})}:N?{ref:b,className:"relative w-full h-full"}:{className:S(h("relative w-full overflow-hidden h-full object-cover",{rouded:p},y.className,o)),children:e("div",{"data-vjs-player":!0,children:e("div",{ref:b,className:h("object-cover bg-black flex items-center justify-center",y.className)})})})});Na.displayName="Video";const ga=({testID:a,title:i,contentComponent:n,description:o,image:c,buttonData:d,inversed:m=!1,withBg:u=!0,spacing:f,video:N,headingTag:g,className:A})=>{const y=b(),C=r(null),v=p(C),I={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};s(()=>{v&&y.start(e=>({transform:"none",transition:{...I,delay:.1*e}}))},[y,v]);const T=l(()=>{switch(N?.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]"}},[N]),R=m?"translateX(100px)":"translateX(-100px)";return t("div",{"data-testid":a||"PanelHero",className:S(h("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",f,A)),children:[u&&e("div",{className:h("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] bg-gradient-to-b md:bg-gradient-to-r from-lowContrast to-lowContrast dark:from-darkLowContrast dark:to-darkLowContrast z-0",{"-bottom-24 right-0":!m,"-top-24 left-0":m})}),e($t,{children:t("div",{className:h("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":m}),children:[e("div",{ref:C,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:t("div",{className:h("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":!m},{"text-left bg-gradient-to-t md:bg-gradient-to-r":m}),children:[e(E.div,{initial:{transform:R},custom:0,animate:y,children:e(Bt,{text:i,tag:g})}),n&&e(E.div,{initial:{transform:R},custom:1,animate:y,children:n}),o&&e(E.div,{initial:{transform:R},custom:1,animate:y,children:e(lt,{className:"mb-0",align:m?Oe.LEFT:Oe.RIGHT,data:o})}),d&&e(E.div,{initial:{transform:R},custom:2,animate:y,children:e("div",{className:h("flex items-center",{"justify-end":!m,"justify-start":m}),children:e(Ie,{...d})})})]})}),e("div",{className:"relative w-full md:w-1/2 z-0",children:t("div",{className:h("relative md:scale-[1.35] rounded overflow-hidden shadow",T),children:[c&&e(Ge,{src:c,alt:i,fill:!0}),N&&e(Na,{sources:N.sources,options:{autoplay:!0,muted:!0,controls:!1,loop:!0,playsinline:!0},aspectRatioValue:N.aspectRatioValue})]})})]})})]})};ga.displayName="PanelHero";const Ea=({testID:a,title:i,description:r,image1:n,image2:l,iosLink:o="#",androidLink:s="#",inversed:c=!1,withBg:d=!0,spacing:m=ha.MODULE})=>t("div",{"data-testid":a||"PanelFeature",className:h("relative m-auto w-full flex flex-none flex-nowrap",m),children:[d&&e("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($t,{children:t("div",{className:h("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-tertiary300 dark:bg-secondary rounded p-8 shadow",{"flex-row-reverse":c}),children:[t("div",{className:"w-full md:w-1/2 top-0 relative",children:[e("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-0 xl:-top-1/4",children:e(Ge,{src:l,alt:i})}),e("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-12 xl:-top-1/3",children:e(Ge,{src:n,alt:i})})]}),t("div",{className:"w-full md:w-1/2",children:[e("div",{children:e(Bt,{text:i})}),e("div",{children:e(De,{children:r})}),t("div",{className:"flex items-center justify-start gap-4",children:[e("div",{className:"relative w-[150px] h-[50px]",children:e(Re,{href:o,target:"_blank",hideExternalIcon:!0,children:e(Ge,{src:"https://apple-resources.s3.amazonaws.com/media-badges/download-on-the-app-store/black/en-us.svg",alt:"App Store"})})}),e("div",{className:"relative w-[190px] h-[75px]",children:e(Re,{href:s,target:"_blank",hideExternalIcon:!0,children:e(Ge,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});Ea.displayName="PanelProduct";const ba=({testID:a,className:i,title:r,description:n,spacing:l=ha.NONE,videoProps:o})=>t("div",{"data-testid":a||'"PanelVideo"',className:S(h("relative w-full overflow-hidden",`md:aspect-[${o.aspectRatioValue}]`,l,i)),children:[e(Na,{rounded:!1,className:"xl:max-h-[750px]",aspectRatioValue:o.aspectRatioValue,options:{autoplay:!0,muted:!0,controls:!1,loop:!0,playsinline:!0,preferFullWindow:!1,...o?.options},sources:o?.sources}),t("div",{className:"absolute top-0 left-0 w-full h-full z-10",children:[e("div",{className:"absolute top-0 left-0 w-full h-full bg-gradient-to-r from-black to-black md:from-transparent md:to-black opacity-50"}),t("div",{className:"absolute top-0 right-2 lg:right-4 w-full md:w-3/4 h-full flex flex-col items-end justify-center text-white pt-8 lg:pt-0 text-right",children:[r&&e(E.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("div",{children:e(Bt,{text:r,colorOverride:"text-white before:bg-white border-white"})})}),n&&e(E.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("div",{children:e(De,{children:n})})})]})]})]});ba.displayName="PanelVideo";const Aa=({testID:a,title:i,description:n,image:l,buttonData:o,inversed:c=!1,withBg:d=!0,spacing:m,video:u,headingTag:f,className:N,bgImage:g})=>{const A=b(),y=r(null),C=p(y),v={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};s(()=>{C&&A.start(e=>({transform:"none",transition:{...v,delay:.1*e}}))},[A,C]);const I="translateY(100px)";return t("div",{"data-testid":a||"PanelIntro",className:S(h("relative m-auto w-full flex flex-none flex-nowrap py-24 sm:py-32 md:py-48 lg:py-56",m,N)),children:[d&&e("div",{className:h("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-30 bg-gradient-to-b md:bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!c,"-top-24 left-0":c})}),g&&t("div",{className:"absolute inset-0 z-0",children:[e(Ge,{src:g,alt:i,className:"object-cover opacity-50"}),e("div",{className:"absolute inset-0 bg-gradient-to-t from-bodyBackground to-transparent"})]}),e($t,{children:t("div",{className:"relative flex flex-col gap-4 items-center justify-center",children:[e("div",{ref:y,className:"px-4 md-px-0",children:t("div",{className:"flex flex-col gap-4 items-center justify-center",children:[e(E.div,{initial:{transform:I},custom:0,animate:A,children:e(Bt,{text:i,tag:f})}),n&&e(E.div,{initial:{transform:I},custom:1,animate:A,children:e(lt,{className:"mb-0",align:Oe.CENTER,data:n})}),o&&e(E.div,{initial:{transform:I},custom:2,animate:A,children:e("div",{className:"flex items-center",children:e(Ie,{...o})})})]})}),(l||u)&&e("div",{className:"relative w-full md:w-1/2 z-0",children:t("div",{className:"relative scale-[1.35] rounded overflow-hidden shadow aspect-[16/9] mt-20",children:[l&&e(Ge,{src:l,alt:i,fill:!0}),u&&e(Na,{sources:u.sources,options:{autoplay:!0,muted:!0,controls:!1,loop:!0},aspectRatioValue:u.aspectRatioValue})]})})]})})]})};Aa.displayName="PanelIntro";const Sa=({testID:a,withBg:i=!0,spacing:r,className:n,children:l,title:o,headingTag:s})=>t("div",{"data-testid":a||"PanelCustom",className:S(h("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",r,n)),children:[i&&e("div",{className:"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"}),e($t,{children:t("div",{className:"relative flex flex-col gap-4 items-center justify-center",children:[e(Bt,{text:o,tag:s}),l&&e("div",{children:l})]})})]});var ya;Sa.displayName="PanelCustom",function(e){e.BASIC="basic",e.MEDIA="media",e.VIDEO="video",e.ICON="icon",e.HORZ="horz",e.DATA="data"}(ya||(ya={}));const Ca=({testID:t,cols:a})=>{const i=r(null),n="aspect-[9/16]";return e("div",{ref:i,"data-testid":t||"PanelScroller",className:"relative",children:e("div",{className:h("grid gap-0 grid-cols-2",{"md:grid-cols-2":2===a.length},{"md:grid-cols-3":3===a.length},{"md:grid-cols-4":4===a.length},{"md:grid-cols-5":5===a.length},{"md:grid-cols-6":6===a.length}),children:a.map((t,a)=>{const i=a%2==0;return e("div",{className:"relative",children:e(ua,{data:t?.images?.map((e,t)=>({variant:ya.BASIC,data:{id:`image-${t}`,image:{src:e,alt:`Image ${t+1}`,aspectRatio:n},scaleOnHover:!1},className:n})),carouselOptions:{slidesToShow:1,vertical:!0,loop:!0,autoPlay:!0,scrollAnimationDuration:1e4,rtl:i,autoplaySpeed:100*a}})},a)})})})};Ca.displayName="PanelScroller";const va=({testID:t,data:a,onPressCallback:i})=>e("div",{"data-testid":t||'"CardGrid"',className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:a.map((t,a)=>e(Ft,{variant:t.variant,data:{...t.data,onClick:()=>i(t.data.id)}},a))});va.displayName="CardGrid";const Ia=({handleSubmit:t=()=>{}})=>{const a=xt();return e("div",{"data-testid":"PromoCodeForm",className:"form-wrapper",children:e(Ht,{onSubmit:t,submit:a?.FORMS?.PROMO_CODE_FORM?.SUBMIT,children:e(Yt,{name:"promoCode",type:Gt.TEXT,label:a?.FORMS?.PROMO_CODE_FORM?.PROMO_CODE})})})};Ia.displayName="PromoCodeForm";const Ta=({testID:i,isCheckout:n})=>{const l=Lt(),o=xt(),[d,m]=c(!1),u=r(null),p=l?.value?.promoCode?.code,f=e=>{u.current&&!u.current.contains(e.target)&&m(!1)};return s(()=>(document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}),[]),t("div",{"data-testid":i||'"Cart"',className:"relative",children:[e("div",{className:"relative",children:!n&&t(a,{children:[e(Ie,{rounded:!0,icon:"mdi:cart",onClick:e=>{e.stopPropagation(),m(!d)}}),l?.value?.items&&l.value.items.length>0&&e("div",{className:"absolute rounded-full bg-accent p-2 w-6 h-6 -top-2 -left-2 flex items-center justify-center",children:e(De,{className:"mb-0 text-white text-sm",children:String(l?.value?.items.length)})})]})}),(d||n)&&t("div",{ref:u,className:h("min-w-128 text-bodyText dark:text-darkBodyText bg-bodyBackground dark:bg-darkBodyBackground",{"rounded shadow absolute top-12 p-4 right-0":!n}),children:[!n&&e(Bt,{tag:Me.H3,text:"Cart"}),l?.value?.items&&l?.value?.items.length>0&&t("div",{children:[e(ze,{as:Ve.UL,className:"",children:l?.value?.items.map(a=>{const i=a.title||a.generatedTitle||a.uuid;return e(Ke,{as:"li",children:t("div",{className:"flex flex-row gap-4 p-2 border border-solid border-grey100 rounded mb-2",children:[e(Ie,{variant:ye.LINK,className:"w-full p-0",onClick:()=>l?.handleItemClick?.(a.uuid),children:t("div",{className:"flex gap-2 w-full",children:[e("div",{className:"relative max-w-32 flex flex-1 overflow-hidden rounded h-20",children:e(Ge,{src:a.image,alt:"item image",className:"aspect-2 w-auto h-auto object-cover"})}),t("div",{className:"max-w-64 flex-1 text-left",children:[e(De,{className:"mb-0 line-clamp-2",children:i}),t(De,{className:"mb-0",children:["$",a?.options?.selectedPrice," USD"]})]})]})}),e("div",{className:"flex items-center justify-center",children:e(Ie,{id:"remove-cart-btn",rounded:!0,variant:ye.SECONDARY,type:Se.BUTTON,onClick:()=>{l?.handleRemoveFromCart?.(a.uuid),l?.value?.items&&1===l.value.items.length&&setTimeout(()=>{m(!1)},2e3)},icon:"mdi:delete"})})]})},a.uuid)})}),e("div",{className:"mt-4"}),n&&t(a,{children:[e("div",{className:"flex items-start justify-start",children:e(Ia,{handleSubmit:e=>l?.handleAddPromoCode?.(e)})}),t(De,{children:[o?.UI?.TAX,": ",l?.value?.taxRate?.percentage,"%"]}),t(De,{children:[o?.UI?.TAX_DUE,": ",l?.value?.currency?.symbol,l?.value?.taxAmount," ",l?.value?.currency?.code]}),p&&t("div",{className:"flex gap-4 items-center justify-between",children:[t(De,{children:[o?.UI?.PROMO_CODE,": ",p]}),e("div",{children:e(Ie,{rounded:!0,id:"remove-promo-btn",variant:ye.SECONDARY,outline:!0,type:Se.BUTTON,onClick:()=>l?.handleRemovePromoCode?.(p),className:"",icon:"mdi:window-close"})})]})]}),t(De,{children:[o?.UI?.TOTAL,": ",l?.value?.cartTotal," ",l?.value?.currency?.showCode&&l?.value?.currency?.code]}),!n&&t("div",{className:"flex items-center justify-between gap-4",children:[e("div",{className:"",children:e(Ie,{size:Ce.SMALL,variant:ye.SECONDARY,onClick:()=>m(!1),children:o?.UI?.CONTINUE_BROWSING})}),e("div",{className:"",children:e(Ie,{size:Ce.SMALL,variant:ye.PRIMARY,onClick:()=>{m(!1),l?.handleCheckout?.()},children:o?.UI?.CHECKOUT})})]})]}),(!l?.value?.items||0===l?.value?.items?.length)&&e("div",{children:e(Be,{tag:Me.H5,children:o?.UI?.EMPTY})})]})]})};Ta.displayName="Cart";const Ra=({testID:a,hideMenu:i=!1,className:r})=>{const n=vt(),l=xt(),[o,s]=c("hidden"),[d,m]=c(!1),u=()=>{s("hidden"===o?"block":"hidden")},p="relative z-10 w-full m-auto py-4 bg-headerBackground dark:bg-darkHeaderBackground";return e("header",n?.brand?.logoOnly?{"data-testid":a||'"Header"',className:S(h(p,r)),children:e("div",{className:"relative w-full flex flex-col md:flex-row justify-center items-center",children:n?.brand?.logo&&e("div",{className:h("relative w-16 md:w-24",n?.brand?.logoAspectRatio),children:e(Re,{href:"/",children:e(je,{logo:n?.brand?.logo,aspectRatioClass:n?.brand?.logoAspectRatio})})})})}:{"data-testid":a||'"Header"',className:S(h(p," text-headerText dark:text-darkHeaderText",r)),children:t($t,{padded:!0,children:[t("div",{className:"relative w-full flex",children:[n?.brand?.logo&&e("div",{className:h("relative h-12",n?.brand?.logoAspectRatio),children:e(Re,{href:"/",children:e(je,{logo:n?.brand?.logo,aspectRatioClass:n?.brand?.logoAspectRatio})})}),t("div",{className:"flex-1 hidden md:flex items-center justify-center",children:[n?.app?.isAuthenticated&&n?.header?.authNav&&e(Kt,{links:n.header.authNav,separators:!0}),!n?.app?.isAuthenticated&&n?.header?.anonNav&&e(Kt,{links:n.header.anonNav,separators:!0})]}),t("div",{className:"hidden md:flex items-center justify-center",children:[!n?.app?.isAuthenticated&&n?.app?.loginCallback&&e("div",{className:"w-32 flex justify-end",children:e(Ie,{onClick:n?.app?.loginCallback,children:l.UI.LOGIN})}),!n?.app?.isAuthenticated&&!n?.app?.loginCallback&&e("div",{className:"w-32 flex justify-end"}),n?.app?.isAuthenticated&&t("div",{className:"relative",children:[e(Ie,{onClick:()=>m(!d),icon:d?"mdi:user-outline":"mdi:user"}),e("div",{onClick:()=>m(!1),className:h("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-6 right-0 top-12 z-20 text-bodyText dark:text-darkBodyText text-right",{hidden:!d}),children:n?.header?.profile&&e(Kt,{links:n.header.profile,inline:!1})})]}),n?.app?.showCart&&e(Ta,{})]}),e("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e(Ie,{variant:ye.PRIMARY,icon:"mdi:menu",onClick:u})})]}),t("div",{className:h("navbar-menu relative z-50",o,{hidden:i}),children:[e("div",{className:"navbar-backdrop fixed inset-0 bg-black opacity-25"}),t("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:[t("div",{className:"flex justify-between",children:[e("div",{className:"relative w-32",children:n?.brand?.logo&&e("div",{className:"relative w-32",children:e(je,{logo:n?.brand?.logo,aspectRatioClass:n?.brand?.logoAspectRatio})})}),e("div",{children:e(Ie,{variant:ye.PRIMARY,icon:"mdi:close",onClick:u})})]}),t("div",{className:"flex flex-col flex-1 gap-4",children:[t("div",{className:"flex flex-1 justify-center pt-4",children:[n?.app?.isAuthenticated&&n?.header?.authNav&&e(Kt,{links:n.header.authNav,separators:!0}),!n?.app?.isAuthenticated&&n?.header?.anonNav&&e(Kt,{links:n.header.anonNav,separators:!0})]}),e("div",{className:"flex flex-1 justify-center pt-4",children:n?.app?.isAuthenticated&&n?.header?.profile&&e(Kt,{links:n.header.profile,separators:!0})}),n?.app?.isAuthenticated&&e("div",{className:"md:hidden flex justify-center",children:e(Ie,{onClick:n?.app?.logoutCallback,children:l.UI.LOGOUT})}),!n?.app?.isAuthenticated&&e("div",{className:"md:hidden flex justify-center",children:e(Ie,{onClick:()=>{n?.app?.loginCallback?.(),u()},children:l.UI.LOGIN})})]})]})]})]})})};Ra.displayName="Header";const Oa=({testID:a,className:i})=>{const r=d(yt);return e("footer",{className:h("w-full z-10 pt-16 pb-8 bg-footerBackground dark:bg-darkFooterBackground text-footerText dark:text-darkFooterText",i),children:t($t,{padded:!0,children:[t("div",{"data-testid":a||'"Footer"',className:"footer flex flex-col md:flex-row py-8 gap-8",children:[t("div",{className:"relative w-full md:w-1/3 flex flex-col gap-4 items-center md:items-start",children:[r?.brand?.logo&&e("div",{className:"relative w-24",children:e(je,{logo:r?.brand?.logo,aspectRatioClass:r?.brand?.logoAspectRatio})}),r.footer?.about&&e("div",{children:e(De,{children:r.footer.about})}),e("div",{children:e(jt,{facebook:r.footer?.visitUs?.facebook,twitter:r.footer?.visitUs?.twitter,instagram:r.footer?.visitUs?.instagram,linkedin:r.footer?.visitUs?.linkedin,youtube:r.footer?.visitUs?.youtube})})]}),t("div",{className:"flex gap-4 flex-1 flex-col",children:[r.footer?.menus&&e("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:r.footer.menus.map((t,a)=>e("div",{className:"flex flex-1",children:e(Kt,{title:t.title,links:t.links,inline:!1})},`${t.title}--${a}`))}),r?.footer?.custom&&e("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:r.footer.custom})]})]}),t("div",{className:"flex items-center justify-center flex-col",children:[t(De,{align:Oe.CENTER,as:we.SMALL,children:["© ",(new Date).getFullYear()," ",Je.UI.COPYRIGHT," ",r.brand?.name]}),e(De,{align:Oe.CENTER,as:we.SMALL,children:Je.UI.ALL_RIGHTS_RESERVED})]})]})})};Oa.displayName="Footer";const La=({testID:a,children:i,showHeader:r=!0,showFooter:n=!0,image:l,showOverlay:o=!0,isFlush:s,fixedHeader:c})=>t("div",{"data-testid":a||'"Screen"',className:"h-full flex flex-1 flex-col min-h-full overflow-x-hidden",children:[r&&e(Ra,{className:h({"absolute top-0 left-0 right-0 bg-opacity-0 dark:bg-opacity-0 md:bg-opacity-20 md:dark:bg-opacity-20 z-50":c})}),t("main",{className:h("relative z-0 flex flex-1",{"pt-24 md:pt-32 lg:pt-40":l},{"pt-8 md:pt-12 lg:pt-12":!l&&!s}),children:[l&&t("div",{className:"absolute w-full aspect-[16/5] opacity-50 z-0 top-0 left-0 right-0",children:[e(Ge,{src:l,alt:"background",priority:!0,sizes:"100vw",style:{objectFit:"cover"}}),o&&e("div",{className:"absolute w-full h-full bg-gradient-to-b from-transparent to-bodyBackground dark:to-darkBodyBackground"})]}),e($t,{padded:!s,isFlush:s,children:e("div",{className:"flex flex-col gap-8 h-full w-full",children:i})})]}),n&&e(Oa,{})]});La.displayName="Screen";const _a=({title:a,isOpen:i})=>t("div",{className:h("accordion-trigger",{"accordion-trigger-open":i}),children:[e(Be,{flush:!0,tag:Me.H4,className:h("transition-all",{"text-white":i}),children:a}),e("div",{className:"",children:e(be,{name:i?"mdi:chevron-up":"mdi:chevron-down"})})]}),xa=({testID:t,data:a,titleKey:i="title",contentKey:r="content"})=>e("div",{"data-testid":t||"Accordion",children:a.map(t=>e(Z,{triggerTagName:"div",easing:"ease-out",triggerWhenOpen:e(_a,{title:t[i],isOpen:!0}),trigger:e(_a,{title:t[i],isOpen:!1}),children:e("div",{className:"p-2",children:e(De,{children:t[r]})})},t[i]))});xa.displayName="Accordion";const wa=({testID:a,title:i,children:r,subscription:n,plans:l,changeSubscriptionCallback:o,pauseSubscriptionCallback:s,selectedPlanCallback:d,confirmPlanCallback:m,isLoading:u})=>{const p=xt(),[f,N]=c(n?.id),[g,E]=c(!1),[b,A]=c(!1),S=e=>{N(e),d&&"function"==typeof d&&d(e)};return t("div",{"data-testid":a||'"SubscriptionManager"',className:"relative",children:[t("div",{className:"flex flex-col gap-4",children:[i&&e(Be,{children:i}),!n&&t("div",{className:"rounded shadow p-4 bg-bodyBackground dark:bg-darkBodyBackground",children:[e(Be,{tag:Me.H4,children:p.UI.NO_ACTIVE_SUBSCRIPTION}),e(De,{children:p?.UI?.NO_SUBSCRIPTION_DETAILS})]}),n&&t("div",{className:"rounded shadow p-4 bg-bodyBackground dark:bg-darkBodyBackground m-auto",children:[e(Be,{tag:Me.H4,children:p?.UI?.CURRENT_SUBSCRIPTION}),t("div",{children:[t(De,{className:"mb-0",children:[p?.UI?.SUBSCRIPTION_STATUS,": ",n.status]}),t(De,{className:"mb-0",children:[p?.UI?.SUBSCRIPTION_PRICE,": ",n.price]}),t(De,{className:"mb-0",children:[p?.UI?.CURRENT_PLAN,": ",n.plan]}),t(De,{className:"mb-0",children:[p?.UI?.NEXT_BILLING_DATE,": ",n.nextBillingDate]}),n.endDate&&t(De,{className:"mb-0",bold:!0,children:[p?.UI?.END_DATE,": ",n.endDate]})]})]}),n&&t("div",{className:"flex justify-center gap-4",children:[o&&e(Ie,{variant:ye.PRIMARY,onClick:()=>E(!g),children:g?p?.UI?.CANCEL:p?.UI?.CHANGE_PLAN}),!n.endDate&&e(Ie,{variant:ye.SECONDARY,onClick:()=>{E(!1),J({title:p?.UI?.CONFIRM_TO_SUBMIT,message:p?.UI?.CONFIRM_TO_PAUSE,buttons:[{label:p?.UI?.YES,onClick:s},{label:p?.UI?.NO,onClick:()=>{}}]})},children:p?.UI?.PAUSE_SUBSCRIPTION})]}),g&&l&&r&&t("div",{className:"flex items-center flex-col gap-4",children:[!b&&e("div",{className:"flex flex-col md:flex-row gap-4 justify-center flex-wrap",children:l.map(t=>e("div",{className:h("flex w-[300px] lg:flex-1",{"opacity-50":f&&f!==t.id},{hidden:b&&f&&f!==t.id}),children:e(Ft,{variant:ya.ICON,className:h({"rounded border-2 border-primary bg-tertiary":f===t.id},{"border-2 border-cardBackground":f!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>S(t.id)}})},t.id))}),e("div",{children:e(Ie,{variant:ye.PRIMARY,onClick:()=>{J({title:p?.UI?.CONFIRM_TO_SUBMIT,message:p?.UI?.CONFIRM_TO_CHANGE_PLAN,buttons:[{label:p?.UI?.YES,onClick:()=>{f&&m&&"function"==typeof m&&m(f),E(!1)}},{label:p?.UI?.NO,onClick:()=>E(!1)}]})},disabled:f===n?.id,children:p?.UI?.CONFIRM_TO_SUBMIT})})]}),!n&&t("div",{className:"flex flex-col gap-2",children:[t("div",{className:"flex items-center flex-col gap-4",children:[e("div",{className:"flex flex-col md:flex-row gap-4 justify-center",children:l.map(t=>e("div",{className:h("flex flex-1 w-[300px]",{"opacity-50":f&&f!==t.id},{hidden:b&&f&&f!==t.id}),children:e(Ft,{variant:ya.ICON,className:h({"rounded border-2 border-primary bg-tertiary":f===t.id},{"border-2 border-cardBackground":f!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>S(t.id)}})},t.id))}),e("div",{children:e(Ie,{variant:ye.PRIMARY,onClick:()=>{A(!0),f&&m&&"function"==typeof m&&m(f)},disabled:!f,children:p?.UI?.CONFIRM_CHOICE})})]}),e("div",{children:r})]})]}),u&&e("div",{className:"absolute top-0 left-0 w-full h-full bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e(ve,{})})]})};var Da;wa.displayName="SubscriptionManager",function(e){e.NONE="none",e.ATOM="atom",e.DEFAULT="default",e.ELEMENT="element",e.COMPONENT="component",e.MODULE="module",e.FEATURE="feature"}(Da||(Da={}));const ka=({spacing:t=Da.DEFAULT,children:a,narrow:i,flush:r,className:n})=>{const l=h("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("div",{"data-testid":"ContentPageLayout",className:l,children:a})};var Pa;ka.displayName="ContentPageLayout",function(e){e.NONE="none",e.ATOM="atom",e.DEFAULT="default",e.ELEMENT="element",e.COMPONENT="component",e.MODULE="module",e.FEATURE="feature"}(Pa||(Pa={}));const Ma=({className:t,children:a,size:i=Pa.DEFAULT})=>{const r=h("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("div",{"data-testid":"ContentRowsLayout",className:r,children:a})};Ma.displayName="ContentRowsLayout";const Ua=({testID:t,inputCallback:a,seperator:r,numInputs:n=4,shouldAutoFocus:o=!1,size:s="medium"})=>{const[d,m]=c("");i.useEffect(()=>{d&&4===d.length&&void 0!==a&&"function"==typeof a&&a(d)},[d]);const u=l(()=>{switch(s){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"}}},[s]);return e("div",{"data-testid":t||'"OTPInput"',className:"foo-bar",children:e(ee,{value:d,onChange:m,inputType:"number",numInputs:n,shouldAutoFocus:o,renderSeparator:r?()=>e("div",{className:"flex items-center justify-center",children:e(be,{name:"mdi:dot",className:"opacity-50"})}):e("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e("input",{...t,className:h("remove-arrow form-item text-input w-12")}),inputStyle:{width:u.width,height:u.height}})})};Ua.displayName="OTPInput";const Fa=({testID:a,modalOpen:i=!0,videoProps:r,ariaHideApp:n=!1,onCloseCallback:l=()=>{}})=>{const[o,d]=c(!1);return s(()=>{i&&d(!0)},[i]),e(te,{isOpen:o,onRequestClose:l,className:"absolute bg-none top-1/2 left-1/2 right-auto bottom-auto mr-[-50%] transform translate-x-[-50%] translate-y-[-50%] w-full h-full p-0",overlayClassName:"fixed top-0 left-0 right-0 bottom-0 bg-black bg-opacity-100 z-50",ariaHideApp:n,"data-testid":a||"FullScreenVideoModal",children:t("div",{className:"h-full relative",children:[e(Ie,{rounded:!0,icon:"mdi:close",onClick:l,className:"absolute top-4 right-4 z-50"}),e(Na,{...r})]})})};Fa.displayName="FullScreenVideoModal";const Ba=({testID:a,children:i,image:r,imageMob:n})=>r||n?t("div",{"data-testid":a||'"FullContentBackgroundImage"',className:"bg-center bg-no-repeat bg-cover min-h-screen w-screen overflow-hidden fixed top-0 left-0 right-0 bottom-0 z-0",children:[e("span",{className:"absolute h-screen w-screen top-0 left-0 right-0 bottom-0 opacity-30 bg-cover bg-center blur-md",style:{backgroundImage:`url(${r})`}}),i]}):e("div",{children:i});var Ha;function Ga({className:a,label:i,onChange:r,options:n}){return n?t("div",{className:h("m-0 p-0 mb-2 border-none",a),children:[e(We,{className:"text-sm",transform:Le.UPPERCASE,children:i}),e(Wt,{id:i||"Sorting",options:n,onChange:e=>r(e.target.value)})]}):null}function Wa({className:t,current:a,resultsPerPage:i=10,onChange:r,totalPages:n,...l}){return e(pe,{current:a,onChange:r,simple:!0,pageSize:i,total:n*i,className:h("m-0 p-0 list-none text-bodyText flex gap-2 text-center items-center [&>li>span]:px-2 [&>li>input]:text-black [&>li>input]:rounded [&>li>input]:text-center",t),locale:fe,prevIcon:e("div",{className:"text-bodyText",children:e(be,{name:"mdi:chevron-left"})}),nextIcon:e("div",{className:"text-bodyText",children:e(be,{name:"mdi:chevron-right"})}),...l})}function Ya({className:i,onChange:r,options:n,label:l}){return n?t("div",{className:h("m-0 p-0 mb-2 border-none",i),children:[e(We,{className:"text-sm mr-2",transform:Le.UPPERCASE,children:Je.UI.SHOW}),e(Wt,{id:l||"ResultsPerPage",options:n.map(e=>({label:e.toString(),value:e})),onChange:e=>r(e.target.value),className:"min-w-20"})]}):e(a,{})}function Va({className:i,end:r,searchTerm:n,start:l,totalResults:o,...s}){return t("div",{className:h("m-0 p-0 flex-1",i),...s,children:["Showing"," ",t("strong",{children:[l," - ",r]})," ","out of ",e("strong",{children:o}),n&&t(a,{children:[" ","for: ",e("em",{children:n})]})]})}function za({className:a,onChange:i,onSubmit:r,wasSearched:n,placeholder:l,allowReset:o=!1,resetTrigger:s=()=>{}}){return d(ie),e("div",{className:h("m-0 md:px-48",a),children:t("form",{onSubmit:e=>r(e),className:"flex items-center",children:[e("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e(Ze,{name:"SearchBoxInput",type:Qe.TEXT,placeholder:l||"Search now...",onChange:e=>{i(e?.target?.value)}})}),e("div",{className:"pl-4",children:t("div",{className:"flex flex-row gap-2",children:[n&&o&&e(Ie,{type:Se.BUTTON,onClick:()=>s("",{shouldClearFilters:!1}),variant:ye.SECONDARY,icon:"mdi:restore"}),e(Ie,{type:Se.SUBMIT,variant:ye.PRIMARY,icon:"mdi:magnify"})]})})]})})}function ja({className:i,children:r,header:n,bodyContent:l,bodyFooter:o,bodyHeader:s,sideContent:c,showSidebar:d}){const m=h("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":!c});return t(a,{children:[t("div",{className:h("w-full flex flex-col",i),children:[e("div",{className:"m-auto md:py-0 w-full",children:n}),t("div",{className:h("md:grid m-auto md:py-0 w-full",{"md:grid-cols-searchLayout":!c,"md:grid-cols-searchLayoutWithSidebar":c}),children:[!X&&e("div",{className:m,children:c}),t("div",{className:h("p-0 pt-2 md:p-6 md:pr-0",{"md:pl-0":!c}),children:[e("div",{className:"flex flex-row gap-8 items-center justify-end",children:s}),e("div",{className:"relative",children:r||l}),e("div",{className:"flex items-center justify-around",children:o})]})]})]}),X&&d&&e("div",{className:"fixed z-10 w-full top-0 left-0 right-0 bottom-0 bg-bodyBackground px-4 overflow-scroll",children:c})]})}function Ka({children:t,className:a,gridClasses:i,...r}){return e("ul",{className:h("relative grid gap-4 mb-4",i||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",a),...r,children:t})}function qa(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function $a(e,t){if(e)return e[t]}function Xa(e){const t=$a(e,"snippet")||(a=function(e){return $a(e,"raw")}(e),a?String(a).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):"");var a;return Array.isArray(t)?t.join(", "):t}function Qa({className:t,result:a,as:i,cardMap:r={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:n,titleField:l,imageField:o,videoField:s,descriptionField:c,metaDataFields:d,cardProps:m}=r,u=n&&Xa(a[n.fieldName]),p=l&&Xa(a[l.fieldName]),f=o&&Xa(a[o.fieldName]),N=f||Xa(a.image),g=s&&s.formatter?s.formatter(Xa(a[s.fieldName])):s&&Xa(a[s.fieldName]),E=c&&Xa(a[c.fieldName]),b=d&&d.map(e=>{const t=Xa(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)});return e("li",{className:h("relative",t),children:(()=>{const t={src:N||"",alt:p||"",title:p||"",width:500,height:500},a={id:u,title:Ne.decode(p),image:t,video:g,description:E,metaData:b,actions:r.actionsData,onClick:r.onClickLink};switch(i){case Ha.cardMedia:return e(Ft,{variant:ya.MEDIA,data:a,...m});case Ha.cardVideo:return e(Ft,{variant:ya.VIDEO,data:a,...m,isMuted:!1});default:return e(Ft,{variant:ya.BASIC,data:a,...m})}})()})}function Za({showOptions:i,sortOptions:r,resultAs:n=Ha.cardBasic,ResultFieldMap:o,config:s={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:d=[],noSidebar:m=!1,customConnector:u,showPagingInfo:h,gridClasses:p,initialState:f={},showTextSearch:N=!0}){const g=xt(),E=l(()=>{const e={host:process.env.NEXT_PUBLIC_ELASTICSEARCH_HOST||process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.NEXT_PUBLIC_ELASTICSEARCH_INDEX||process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.NEXT_PUBLIC_ELASTICSEARCH_API_KEY||process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""};return new ae(u||e)},[]),b=l(()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:!0,apiConnector:E,hasA11yNotifications:!0,searchQuery:{filters:s.filters||[],search_fields:s.searchFields||{},result_fields:s.resultsFields||{},facets:s.facets,sortList:[]},autocompleteQuery:{results:{search_fields:{title:{},description:{}},resultsPerPage:5,result_fields:{title:{snippet:{size:100,fallback:!0}}}}},onSearch:(e,t,a)=>{let i=e;if(""===e.searchTerm&&0===e.sortList.length&&r&&r.length>0){const t=r[0];i={...e,sortList:[{field:t?.value?.[0]?.field,direction:t?.value?.[0]?.direction}]}}return Promise.resolve(a(i,t))},initialState:{resultsPerPage:i?.[0]||8,...f}}),[s]),[A,S]=c(!1),y=()=>{S(e=>!e)};return e(re,{config:b,children:e(ne,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:l,setSearchTerm:c})=>e(a,{children:e(le,{children:e(ja,{noSidebar:m,showSidebar:A,header:N&&e(he,{view:t=>e(za,{...t,wasSearched:l,placeholder:s.initialPlaceholder,allowReset:!0,resetTrigger:c})}),sideContent:!m&&d&&t("div",{children:[e("div",{className:"md:hidden flex justify-end pt-2 -mb-2",children:e(Ie,{onClick:y,icon:"mdi:close",children:g?.UI?.HIDE_FILTERS})}),l&&r&&e(de,{label:"Sort by",sortOptions:r,view:Ga}),d?.map(({field:t,label:a,view:i})=>e(ue,{field:t,label:a,view:i},t))]}),bodyContent:e(me,{shouldTrackClickThrough:!1,resultView:t=>e(Qa,{...t,as:n,cardMap:o}),className:"list-none p-0 m-0",view:t=>e(Ka,{...t,gridClasses:p})}),bodyHeader:t(a,{children:[l&&h&&e(se,{view:Va}),l&&i&&e(ce,{view:Ya,options:i}),l&&r&&m&&e(de,{label:"Sort by",sortOptions:r,view:Ga}),l&&!m&&e("div",{className:"block md:hidden",children:e(Ie,{rounded:!0,onClick:y,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e(oe,{view:Wa})})})})})})}function Ja({className:a,label:i,onChange:r,options:n}){const l=n.map(e=>({value:e.value,label:`${e.value} (${e.count})`}));return t("fieldset",{className:h("m-0 p-0 mt-4 mb-2 border-none",a),children:[e(We,{className:"text-sm",transform:Le.UPPERCASE,children:i}),e(Wt,{id:i,options:l,onChange:e=>{console.debug("SingleSelectFacet onChange",e.target.value),r(e.target.value)}})]})}function ei({className:a,label:i,onRemove:r,onSelect:n,options:l}){const o=l.filter(e=>e.selected).map(e=>e.value)[0];return e("fieldset",{className:h("m-0 p-0 mt-4 mb-2 border-none",a),children:t("div",{children:[e(We,{transform:Le.UPPERCASE,children:i}),t("ul",{className:"ul list-none p-0",children:[o&&t("li",{className:"m-0 flex justify-between items-center flex-1",children:[qa(o),e("span",{className:"ml-1 px-1",children:e(Ie,{onClick:()=>r(o),size:Ce.SMALL,rounded:!0,children:e(be,{name:"mdi:close"})})})]}),!o&&l.map(a=>{const r=qa(a.value);return t("li",{className:"m-0 flex justify-between",children:[e("a",{className:"no-underline visited:text-bodyText","data-transaction-name":`facet - ${i}`,href:"/",onClick:e=>{e.preventDefault(),n(a.value)},children:e("label",{className:"label pl-0 leading-none text-bodyText dark:text-darkBodyText",children:r})}),e(De,{as:we.SPAN,size:xe.MEDIUM,children:a.count.toLocaleString("en")})]},r)})]})]})})}function ti({className:i,label:r,onMoreClick:n,onRemove:l,onSelect:o,options:s,showMore:c,showSearch:d,onSearch:m,searchPlaceholder:u}){return s?t("fieldset",{className:h("m-0 p-0 mt-4 mb-2 border-none",i),children:[e(We,{className:"text-sm",transform:Le.UPPERCASE,children:r}),d&&e("div",{className:"mt-1",children:e(Ze,{type:Qe.SEARCH,placeholder:u||"Search",onChange:e=>{m(e.target.value)}})}),t("div",{className:"my-4",children:[s?.length<1&&e("div",{children:"No matching options"}),s?.map(a=>{const i=a.selected,n=a.value,s=qa(n);return t("div",{className:"flex justify-between pb-2",children:[e(Te,{id:`facet_${r}${s}`,"data-transaction-name":`facet - ${r}`,checked:i,onChange:()=>i?l(n):o(n),label:s}),e(De,{as:we.SPAN,size:xe.SMALL,children:a.count.toLocaleString("en")})]},s)})]}),c&&e(Ie,{size:Ce.SMALL,variant:ye.TERTIARY,onClick:n,"aria-label":"Show more options",children:"+ More"})]}):e(a,{children:"Options required"})}Ba.displayName="FullContentBackgroundImage",function(e){e.cardBasic="cardBasic",e.cardMedia="cardMedia",e.cardVideo="cardVideo"}(Ha||(Ha={})),Ga.displayName="Sorting",Wa.displayName="Paging",Ya.displayName="ResultsPerPage",Va.displayName="PagingInfo",za.displayName="SearchBox",ja.displayName="Layout",Ka.displayName="Results",Qa.displayName="Result",Ja.displayName="SingleSelectFacet",ei.displayName="SingleLinksFacet",ti.displayName="MultiCheckboxFacet";const ai=({handleSubmit:t})=>{const a=xt();return e("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e(Ht,{onSubmit:t,submit:a.FORMS.RESET_PASSWORD_FORM.SUBMIT,children:e(Yt,{name:"password",autoComplete:"new-password",type:Gt.PASSWORD,label:a.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:ra})})})};ai.displayName="ResetPasswordForm";const ii=({handleSubmit:a})=>{const i=xt();return e("div",{"data-testid":"ResetPasswordAuthForm",className:"form-wrapper",children:t(Ht,{onSubmit:a,submit:i.FORMS.RESET_PASSWORD_FORM.SUBMIT,children:[e(Yt,{name:"current-password",autoComplete:"current-password",type:Gt.PASSWORD,label:i.FORMS.RESET_PASSWORD_FORM_AUTH.CURRENT_PASSWORD,required:!0,validations:ra}),e(Yt,{name:"new-password",autoComplete:"new-password",type:Gt.PASSWORD,label:i.FORMS.RESET_PASSWORD_FORM_AUTH.NEW_PASSWORD,required:!0,validations:ra})]})})};ii.displayName="ResetPasswordAuthForm";const ri=({testID:a,initialValues:i,handleSubmit:r,avatarUpdateCallback:n})=>{const l=xt();return e("div",{"data-testid":a||'"ProfileForm"',className:"form-wrapper",children:t(Ht,{onSubmit:r,submit:l.FORMS.PROFILE_FORM.SUBMIT,initialValues:i,children:[e("div",{className:"mb-4 items-center justify-center flex",children:e(et,{name:"avatar",initValue:i?.picture,fileUpdateCallback:n})}),e(Yt,{name:"picture",type:Gt.HIDDEN}),e(Yt,{name:"firstName",type:Gt.TEXT,label:l.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e(Yt,{name:"lastName",type:Gt.TEXT,label:l.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e(Yt,{name:"email",type:Gt.EMAIL,label:l.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:ia})]})})};ri.displayName="ProfileForm";const ni=({testID:a,title:i,image:r,user:n,logoutCallback:l,resetPasswordCallback:o,menu:s,shareURL:c})=>{const d=xt();return t(La,{"data-testid":a||"AccountScreen",image:r,children:[i&&e(Bt,{text:i}),t("div",{children:[e("div",{className:"flex items-center justify-center",children:e(et,{initValue:n?.profile?.picture,isEditable:!1})}),s&&e("div",{children:e(ze,{className:"flex items-center flex-col justify-center gap-2",children:s?.map((t,a)=>e(Ke,{as:"div",title:t.title,icon:t.icon,onClick:t.onClick},a))})}),t("div",{className:"my-4 flex flex-col gap-8 justify-center items-center",children:[c&&t("div",{className:"flex items-center flex-col justify-center gap-1",children:[e(Be,{tag:Me.H5,flush:!0,children:d.UI.SHARE}),t("div",{className:"flex gap-2",children:[e(k,{url:c,children:e(be,{name:"mdi:facebook"})}),e(P,{url:c,children:e(be,{name:"mdi:twitter"})}),e(F,{url:c,children:e(be,{name:"mdi:linkedin"})}),e(M,{url:c,children:e(be,{name:"mdi:whatsapp"})})]})]}),t("div",{className:"flex flex-col gap-2",children:[o&&e(Ie,{onClick:o,icon:"mdi:lock-reset",children:d?.UI.RESET_PASSWORD}),l&&e(Ie,{onClick:l,icon:"mdi:logout",children:d?.UI.LOGOUT})]})]})]})]})};ni.displayName="AccountScreen";const li=({testID:a,title:i,image:r,formProps:n})=>t(La,{"data-testid":a||"AuthScreen",image:r,children:[i&&e(Bt,{text:i}),e("div",{className:"flex justify-center",children:e(ca,{...n})})]});li.displayName="AuthScreen";const oi=({testID:a,title:i,image:r,data:n,onPressCallback:l,isLoading:o,noDataMessage:s})=>{const c=xt();return t(La,{"data-testid":a||"CardGridScreen",image:r,children:[i&&e(Bt,{text:i}),t("div",{children:[o&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(ve,{})}),n&&e(va,{data:n,onPressCallback:l}),!n&&!o&&e("div",{children:e(De,{children:s||c?.UI?.NO_DATA})})]})]})};oi.displayName="CardGridScreen";const si=({testID:a,title:i,image:r,searchProps:n})=>t(La,{"data-testid":a||"CatalogueScreen",image:r,children:[i&&e(Bt,{text:i}),e("div",{children:e(Za,{...n})})]});si.displayName="CatalogueScreen";const ci=({testID:a,title:i,image:r,data:n,isLoading:l,onPressCallback:o})=>t(La,{"data-testid":a||"ChallengeLibraryScreen",image:r,children:[i&&e(Bt,{text:i}),l&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(ve,{})}),n&&e("div",{children:e(va,{data:n,onPressCallback:o})})]});ci.displayName="ChallengeLibraryScreen";const di="MMMM dd, yyyy",mi="HH:mm",ui=({testID:a,title:i,image:r,created:n=0,body:o,days:s,puchaseLabel:c,hasAccess:d=!1,onPressCallback:m,purchaseCallback:u,isLoading:h})=>{const p=xt(),f=l(()=>ge(new Date(1e3*n),di),[n]);return t(La,{"data-testid":a||"ChallengeScreen",image:r,children:[t("div",{children:[i&&e(Bt,{text:i}),t(We,{children:[p.UI.CREATED,": ",f]}),!d&&t("div",{className:"flex flex-col gap-2 mb-4",children:[e(De,{bold:!0,className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e(De,{className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e("div",{children:e(Ie,{variant:ye.PRIMARY,onClick:u,isLoading:h,disabled:h,children:c})}),t(De,{size:xe.SMALL,className:"mb-0",children:["** ",p.GLOBAL.SCREENS.CHALLENGE.PAYMENT_NOTE]})]})]}),e("div",{children:o&&e(lt,{data:o})}),e("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:s?.map(t=>e(Ft,{variant:ya.MEDIA,data:{id:t.id,title:t.title,image:{src:t.image,alt:t.title},raised:!0,onClick:d?()=>m(t.video):void 0,accessRestriced:!d}},t.id))})]})};ui.displayName="ChallengeScreen";const hi=({testID:a,title:i,image:r,updated:n,content:l,isLoading:o,isLayoutMinimal:s=!1})=>{const c=xt(),d=n?ge(new Date(1e3*n),"MMMM dd, yyyy HH:mm"):void 0;return t(La,{"data-testid":a||"ContentScreen",image:r,showHeader:!s,showFooter:!s,children:[o&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(ve,{})}),i&&e(Bt,{text:i}),n&&e("div",{children:t(De,{children:[c?.UI?.UPDATED,": ",d]})}),l&&e("div",{children:e(lt,{data:l})})]})};hi.displayName="ContentScreen";const pi=({testID:a,title:i,image:r,user:n,latestData:l,recentdata:o,stats:s,promo:c,news:d,statsIsLoading:m,promosIsLoading:u,dataIsLoading:h,handleLatestDataPress:p,handleRecentDataPress:f,handleNewsDataPress:N})=>{const g=xt(),E={loop:!1,autoPlay:!1,slidesToShow:4,scrollAnimationDuration:500,onSnapToItem:()=>{},shouldScrollOnClick:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:4}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:2}}]};return t(La,{"data-testid":a||"DashboardScreen",image:r,children:[i&&e(Bt,{text:i}),e("div",{children:t(De,{children:[g?.UI?.WELCOME," ",n?.name]})}),m&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(ve,{})}),!m&&s&&t("div",{className:"mb-8",children:[e(Be,{tag:Me.H4,children:g?.UI?.ACTIVITY}),e("div",{className:"flex flex-row gap-4 flex-wrap",children:s.map((t,a)=>e("div",{children:e(Ft,{variant:t.variant,data:t.data})},`${t.data.id}-${a}`))})]}),h&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(ve,{})}),!h&&l&&t("div",{children:[e(Be,{tag:Me.H4,children:g?.UI?.LATEST_WORKOUTS}),e("div",{children:e(ua,{data:l,onPressCallback:p,carouselOptions:E})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(ve,{})}),!u&&c&&t("div",{children:[e(Be,{tag:Me.H4,flush:!0,children:g?.UI?.OUR_FEATURE}),e(ga,{...c,withBg:!0,spacing:ha.ATOM})]}),h&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(ve,{})}),!h&&o&&t("div",{children:[e(Be,{tag:Me.H4,children:g?.UI?.RECENTLY_ADDED}),e("div",{children:e(ua,{data:o,onPressCallback:f,carouselOptions:E})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(ve,{})}),!u&&d&&t("div",{children:[e(Be,{tag:Me.H4,children:g?.UI?.WHATS_NEW}),e("div",{children:e(ua,{data:d,onPressCallback:N,carouselOptions:E})})]})]})};pi.displayName="DashboardScreen";const fi=({testID:a,title:i,image:r,data:n,isLoading:l})=>t(La,{"data-testid":a||"FAQScreen",image:r,children:[i&&e(Bt,{text:i}),!n&&l&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(ve,{})}),n&&e(xa,{data:n?.map(e=>({title:e.title||"",content:e.answer||""}))})]});fi.displayName="FAQScreen";const Ni=({testID:a,image:i,panelIntroProps:r,panelVideoProps:n,panelFeatureProps:l,panelCardsProps:o,panelHerosProps:s,panelSubscriptionsProps:c,panelTestimonialsProps:d,panelDataCardsProps:m,panelProductProps:u,panelCustomProps:h,isFlush:p=!0})=>t(La,{"data-testid":a||"HomeScreen",image:i,isFlush:p,children:[n&&e(ba,{...n}),t($t,{children:[r&&e(Aa,{...r}),l&&e(fa,{...l}),o&&e(pa,{...o}),s?.[0]&&e(ga,{...s?.[0]}),c&&e(pa,{...c}),d&&e(pa,{...d}),s?.slice(1).map(t=>e(ga,{...t},t.title)),m&&e(pa,{...m}),u&&e(Ea,{...u}),h&&e(Sa,{...h})]})]});Ni.displayName="HomeScreen";const gi=({testID:a,title:i})=>{const r=xt();return e(La,{"data-testid":a||"LogoutScreen",children:t("div",{children:[i&&e(Bt,{text:i}),e(De,{children:r?.UI?.PLEASE_WAIT}),e(ve,{})]})})};gi.displayName="LogoutScreen";const Ei=({testID:a,title:i,image:r,menu:n,isLoading:l=!1})=>t(La,{"data-testid":a||"MenuScreen",image:r,children:[i&&e(Bt,{text:i}),l&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(ve,{})}),n&&e(ze,{children:n.map(t=>e(Ke,{as:"div",icon:t.icon,onClick:t.onPress,title:t.title},t.title))})]});Ei.displayName="MenuScreen";const bi=({testID:a,title:i,message:r})=>{const n=xt();return t(La,{"data-testid":a||"NotFound",children:[e(Bt,{text:i||n?.UI?.PAGE_NOT_FOUND_OOPS}),e(De,{children:r||n?.UI?.PAGE_NOT_FOUND_MESSAGE_OOPS}),e(Be,{tag:Me.H5,flush:!0,children:t("span",{className:"flex flex-row gap-2 items-center",children:[e(be,{name:"mdi:lightbulb"})," ",n?.UI?.WHAT_CAN_YOU_DO]})}),t(ze,{as:Ve.UL,children:[e(Ke,{as:"li",children:n?.UI?.DOUBLE_CHECK_URL}),e(Ke,{as:"li",children:n?.UI?.RETURN_TO_HOMEPAGE}),t(Ke,{as:"li",children:[n?.UI?.EXPLORE_SITE,"."]})]}),e(De,{children:n?.UI?.STILL_NEED_HELP})]})};bi.displayName="NotFoundScreen";const Ai=({testID:a,title:i,image:r,handleSubmitCallback:n})=>t(La,{"data-testid":a||'"PasswordReset"',image:r,children:[i&&e(Bt,{text:i}),e(ai,{handleSubmit:n})]});Ai.displayName="PasswordResetScreen";const Si=({testID:a,title:i,image:r,handleSubmitCallback:n})=>t(La,{"data-testid":a||"PasswordResetAuthScreen",image:r,children:[i&&e(Bt,{text:i}),e(ii,{handleSubmit:n})]});Si.displayName="PasswordResetAuthScreen";const yi=({testID:a,title:i,image:r,user:n,handleProfileSubmit:l,profilePicUpdateCallback:o})=>t(La,{"data-testid":a||"ProfileScreen",image:r,children:[i&&e(Bt,{text:i}),e(ri,{initialValues:n?.profile,handleSubmit:l,avatarUpdateCallback:o})]});yi.displayName="ProfileScreen";const Ci=({testID:a,end:r,live:n,start:o,title:s,video:c})=>{const d=xt(),m=l(()=>{if(o)return ge(new Date(1e3*o),di)},[o]),u=l(()=>{if(o)return ge(new Date(1e3*o),mi)},[o]),h=l(()=>{if(r)return ge(new Date(1e3*r),mi)},[r]),[p,f]=i.useState(!1);return t("div",{"data-testid":a||'"ScheduleItem"',className:"flex flex-col md:flex-row gap-4",children:[t("div",{children:[e(Be,{tag:Me.H4,children:s}),m&&u&&h&&t("div",{children:[e(De,{className:"mb-0",children:d?.UI?.TODAYS_ITEMS}),t(We,{children:[m,": ",u," - ",h]})]}),c&&e("div",{className:"relative my-4",children:e(Ie,{onClick:()=>f(!0),icon:"mdi:video",children:d?.UI?.LAUNCH_PLAYBACK})}),p&&c&&e(Fa,{modalOpen:p,onCloseCallback:()=>f(!1),videoProps:{sources:[{src:c}],isModal:!0}})]}),n&&!p&&e("div",{className:"flex-1",children:e(Na,{url:n,isYoutube:!0})})]})};Ci.displayName="ScheduleItem";const vi=({testID:a,raised:r=!1,scheduleItems:n,hasAccess:o})=>{const c=xt(),[d,m]=i.useState(0),[u,h]=i.useState([]),p=l(()=>n?.days?.map((t,a)=>{const i=Object.keys(t)[0],r=t[i]?.[0];return r?{day:i.charAt(0).toUpperCase()+i.slice(1),component:e(Ci,{title:r.title,live:r.live,start:r.start,end:r.end,video:r.video})}:{day:i.charAt(0).toUpperCase()+i.slice(1),component:e("div",{children:e(Be,{tag:Me.H4,children:c?.UI?.NO_CLASS})})}}),[n]);s(()=>{const e=function(){const e=new Date,t=e.getDay(),a=new Date(e);a.setDate(e.getDate()-t);const i=[];for(let t=0;t<7;t++){const r=new Date(a);r.setDate(a.getDate()+t),i.push({date:r,isToday:r.toDateString()===e.toDateString()})}return i}(),t=e.findIndex(e=>e.isToday);m(t),h(e)},[]);const f=l(()=>u.map((e,t)=>{const a=e.date.toLocaleString("en-US",{weekday:"short"}),i=e.date.toLocaleString("en-US",{day:"numeric"}),r=d===t;return{variant:ya.BASIC,data:{id:`${t}`,title:a,description:i,raised:!0},className:r?"bg-tertiary":"bg-bodyBackground"}}),[u,d]),N=l(()=>p?.find(e=>e.day===u?.[d]?.date.toLocaleString("en-US",{weekday:"long"})),[p,u,d]);return t("div",{"data-testid":a||"Schedule",children:[t("div",{children:[e(Be,{tag:Me.H5,transform:Fe.UPPERCASE,children:c?.UI?.THIS_WEEK}),e("div",{children:e(ua,{data:f,onPressCallback:e=>{m(Number(e))},carouselOptions:{slidesToShow:7,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}}]}})})]}),t("div",{children:[!o&&t("div",{children:[e(Be,{tag:Me.H2,children:c?.UI?.ACCESS_RESTRICTED}),e(De,{children:c?.UI?.UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE})]}),o&&N?.component]})]})};vi.displayName="Schedule";const Ii=({testID:a,title:i,image:r,scheduleData:n,isLoading:l=!1})=>t(La,{"data-testid":a||"ScheduleScreen",image:r,children:[i&&e(Bt,{text:i}),!n&&l&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(ve,{})}),n&&e("div",{children:e(vi,{...n})})]});Ii.displayName="ScheduleScreen";const Ti=({testID:a,title:i,image:r,subscriptionCallback:n,subscriptionManagerProps:l})=>{const o=xt();return t(La,{"data-testid":a||"SubscriptionScreen",image:r,children:[i&&e(Bt,{text:i}),l&&e("div",{children:e(wa,{...l})}),n&&e("div",{className:"flex items-center justify-center",children:t("div",{className:"flex flex-col gap-4 items-center",children:[e(De,{children:o?.UI?.NEED_HELP_WITH_SUBSCRIPTION}),e("div",{children:e(Ie,{icon:"mdi:help",variant:ye.SECONDARY,onClick:n,children:o?.UI?.CONTACT_SUPPORT})})]})})]})};Ti.displayName="SubscriptionScreen";const Ri=({testID:r,id:n,title:o,image:s,description:c,created:d=0,duration:m="PT0M",level:u,section:h,video:p,videoType:f="application/x-mpegURL",category:N,type:g,likeCallback:E,completedCallback:b,favouriteCallback:A,isLiked:S,isCompleted:y,isFavourite:C,relatedWorkouts:v,hasActiveSubscription:I,htmlDetails:T,noSubActionCallback:R,numCompleted:O="0"})=>{const L=xt(),[_,x]=i.useState(2);i.useRef(null);const[w,D]=i.useState(!1),k=l(()=>ge(new Date(1e3*d),di),[d]),P=l(()=>Nt(m),[m]);return t(La,{"data-testid":r||"WorkoutScreen",image:s,children:[t("div",{children:[o&&e(Bt,{text:o}),e("div",{children:t(We,{children:[L.UI.CREATED,": ",k]})}),e("div",{children:t(We,{children:[L.UI.DURATION,": ",P]})})]}),!I&&t("div",{children:[e(Be,{tag:Me.H4,children:L.UI.NO_ACTIVE_SUBSCRIPTION}),e(De,{children:L?.UI?.NO_SUBSCRIPTION_DETAILS}),R&&e(Ie,{rounded:!0,onClick:R,icon:"mdi:arrow-right-circle-outline",children:L.UI.SUBSCRIBE})]}),e("div",{children:e(Ie,{onClick:()=>{D(!0)},icon:"mdi:play",iconFirst:!0,disabled:!I,children:L.UI.START_WORKOUT})}),t("div",{className:"flex gap-2",children:[E&&e("div",{children:e(Ie,{onClick:()=>{n&&E&&"function"==typeof E&&(E(n),K.info(S?L.UI.REMOVED_LIKE:L.UI.ADDED_LIKE))},icon:S?"mdi:heart":"mdi:heart-outline",disabled:!I,rounded:!0})}),A&&e("div",{children:e(Ie,{onClick:()=>{n&&A&&"function"==typeof A&&(A(n),K.info(C?L.UI.REMOVED_FAVORITE:L.UI.ADDED_FAVORITE))},icon:C?"mdi:bookmark":"mdi:bookmark-outline",disabled:!I,rounded:!0})}),b&&e("div",{children:e(Ie,{rounded:!0,onClick:()=>{n&&b&&"function"==typeof b&&(b(n),K.info(L.UI.MARKED_COMPLETE))},icon:"mdi:plus",disabled:!I,children:O})})]}),!T&&c&&e("div",{children:e(De,{children:c})}),T&&c&&e("div",{children:e(lt,{data:c})}),t("div",{className:"flex gap-4 flex-wrap",children:[u&&t(We,{children:[L.UI.LEVEL,": ",u]}),h&&t(We,{children:[L.UI.SECTION,": ",h]}),N&&t(We,{children:[L.UI.CATEGORY,": ",N]}),g&&t(We,{children:[L.UI.TYPE,": ",g]})]}),v&&e(a,{children:e($t,{isNarrow:!0,padded:!0,children:e("div",{children:e(Be,{children:L?.UI?.RELATED})})})}),e("div",{children:w&&e(Fa,{modalOpen:w,onCloseCallback:()=>D(!1),videoProps:{sources:[{src:p,type:f}],isModal:!0}})})]})};Ri.displayName="WorkoutScreen";const Oi={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"},colors:{},spacing:{},borderRadius:{exampleRadius:"1rem"},fontFamily:{},fontSize:{},fontWeight:{},lineHeight:{},letterSpacing:{},width:{},height:{},maxWidth:{},maxHeight:{},minWidth:{},minHeight:{},padding:{},margin:{},zIndex:{},opacity:{},boxShadow:{},backgroundImage:{},backgroundSize:{},backgroundPosition:{},backgroundColor:{},borderWidth:{},borderColor:{},borderOpacity:{},borderStyle:{},divideWidth:{},divideColor:{},divideOpacity:{},animation:{},keyframes:{},screens:{},aspectRatio:{},transitionTimingFunction:{},transitionDelay:{},transitionDuration:{}}};var Li={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]};const _i=Object.create(null);for(const e in Li)Object.hasOwn(Li,e)&&(_i[Li[e]]=e);const xi={to:{},get:{}};function wi(e,t,a){return Math.min(Math.max(t,e),a)}function Di(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}xi.get=function(e){let t,a;switch(e.slice(0,3).toLowerCase()){case"hsl":t=xi.get.hsl(e),a="hsl";break;case"hwb":t=xi.get.hwb(e),a="hwb";break;default:t=xi.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},xi.get.rgb=function(e){if(!e)return null;let t,a,i,r=[0,0,0,1];if(t=e.match(/^#([a-f\d]{6})([a-f\d]{2})?$/i)){for(i=t[2],t=t[1],a=0;a<3;a++){const e=2*a;r[a]=Number.parseInt(t.slice(e,e+2),16)}i&&(r[3]=Number.parseInt(i,16)/255)}else if(t=e.match(/^#([a-f\d]{3,4})$/i)){for(t=t[1],i=t[3],a=0;a<3;a++)r[a]=Number.parseInt(t[a]+t[a],16);i&&(r[3]=Number.parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)r[a]=Number.parseInt(t[a+1],10);t[4]&&(r[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:Object.hasOwn(Li,t[1])?(r=Li[t[1]],r[3]=1,r):null:null;for(a=0;a<3;a++)r[a]=Math.round(2.55*Number.parseFloat(t[a+1]));t[4]&&(r[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}for(a=0;a<3;a++)r[a]=wi(r[a],0,255);return r[3]=wi(r[3],0,1),r},xi.get.hsl=function(e){if(!e)return null;const 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){const e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,wi(Number.parseFloat(t[2]),0,100),wi(Number.parseFloat(t[3]),0,100),wi(Number.isNaN(e)?1:e,0,1)]}return null},xi.get.hwb=function(e){if(!e)return null;const t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){const e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,wi(Number.parseFloat(t[2]),0,100),wi(Number.parseFloat(t[3]),0,100),wi(Number.isNaN(e)?1:e,0,1)]}return null},xi.to.hex=function(...e){return"#"+Di(e[0])+Di(e[1])+Di(e[2])+(e[3]<1?Di(Math.round(255*e[3])):"")},xi.to.rgb=function(...e){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]+")"},xi.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+a+"%, "+i+"%)":"rgba("+t+"%, "+a+"%, "+i+"%, "+e[3]+")"},xi.to.hsl=function(...e){return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},xi.to.hwb=function(...e){let t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},xi.to.keyword=function(...e){return _i[e.slice(0,3)]};const ki={};for(const e of Object.keys(Li))ki[Li[e]]=e;const Pi={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"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},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"]}},Mi=(6/29)**3;function Ui(e){const t=e>.0031308?1.055*e**(1/2.4)-.055:12.92*e;return Math.min(Math.max(0,t),1)}function Fi(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(Pi)){if(!("channels"in Pi[e]))throw new Error("missing channels property: "+e);if(!("labels"in Pi[e]))throw new Error("missing channel labels property: "+e);if(Pi[e].labels.length!==Pi[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:a}=Pi[e];delete Pi[e].channels,delete Pi[e].labels,Object.defineProperty(Pi[e],"channels",{value:t}),Object.defineProperty(Pi[e],"labels",{value:a})}function Bi(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}function Hi(e){const t=function(){const e={},t=Object.keys(Pi);for(let{length:a}=t,i=0;i<a;i++)e[t[i]]={distance:-1,parent:null};return e}(),a=[e];for(t[e].distance=0;a.length>0;){const e=a.pop(),i=Object.keys(Pi[e]);for(let{length:r}=i,n=0;n<r;n++){const r=i[n],l=t[r];-1===l.distance&&(l.distance=t[e].distance+1,l.parent=e,a.unshift(r))}}return t}function Gi(e,t){return function(a){return t(e(a))}}function Wi(e,t){const a=[t[e].parent,e];let i=Pi[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)a.unshift(t[r].parent),i=Gi(Pi[t[r].parent][r],i),r=t[r].parent;return i.conversion=a,i}function Yi(e){const t=Hi(e),a={},i=Object.keys(t);for(let{length:e}=i,r=0;r<e;r++){const e=i[r];null!==t[e].parent&&(a[e]=Wi(e,t))}return a}Pi.rgb.hsl=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,r=Math.min(t,a,i),n=Math.max(t,a,i),l=n-r;let o,s;switch(n){case r:o=0;break;case t:o=(a-i)/l;break;case a:o=2+(i-t)/l;break;case i:o=4+(t-a)/l}o=Math.min(60*o,360),o<0&&(o+=360);const c=(r+n)/2;return s=n===r?0:c<=.5?l/(n+r):l/(2-n-r),[o,100*s,100*c]},Pi.rgb.hsv=function(e){let t,a,i,r,n;const l=e[0]/255,o=e[1]/255,s=e[2]/255,c=Math.max(l,o,s),d=c-Math.min(l,o,s),m=function(e){return(c-e)/6/d+.5};if(0===d)r=0,n=0;else{switch(n=d/c,t=m(l),a=m(o),i=m(s),c){case l:r=i-a;break;case o:r=1/3+t-i;break;case s:r=2/3+a-t}r<0?r+=1:r>1&&(r-=1)}return[360*r,100*n,100*c]},Pi.rgb.hwb=function(e){const t=e[0],a=e[1];let i=e[2];const r=Pi.rgb.hsl(e)[0],n=1/255*Math.min(t,Math.min(a,i));return i=1-1/255*Math.max(t,Math.max(a,i)),[r,100*n,100*i]},Pi.rgb.oklab=function(e){const t=Fi(e[0]/255),a=Fi(e[1]/255),i=Fi(e[2]/255),r=Math.cbrt(.4122214708*t+.5363325363*a+.0514459929*i),n=Math.cbrt(.2119034982*t+.6806995451*a+.1073969566*i),l=Math.cbrt(.0883024619*t+.2817188376*a+.6299787005*i);return[100*(.2104542553*r+.793617785*n-.0040720468*l),100*(1.9779984951*r-2.428592205*n+.4505937099*l),100*(.0259040371*r+.7827717662*n-.808675766*l)]},Pi.rgb.cmyk=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,r=Math.min(1-t,1-a,1-i);return[100*((1-t-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*((1-i-r)/(1-r)||0),100*r]},Pi.rgb.keyword=function(e){const t=ki[e];if(t)return t;let a,i=Number.POSITIVE_INFINITY;for(const t of Object.keys(Li)){const r=Bi(e,Li[t]);r<i&&(i=r,a=t)}return a},Pi.keyword.rgb=function(e){return Li[e]},Pi.rgb.xyz=function(e){const t=Fi(e[0]/255),a=Fi(e[1]/255),i=Fi(e[2]/255);return[100*(.4124564*t+.3575761*a+.1804375*i),100*(.2126729*t+.7151522*a+.072175*i),100*(.0193339*t+.119192*a+.9503041*i)]},Pi.rgb.lab=function(e){const t=Pi.rgb.xyz(e);let a=t[0],i=t[1],r=t[2];a/=95.047,i/=100,r/=108.883,a=a>Mi?a**(1/3):7.787*a+16/116,i=i>Mi?i**(1/3):7.787*i+16/116,r=r>Mi?r**(1/3):7.787*r+16/116;return[116*i-16,500*(a-i),200*(i-r)]},Pi.hsl.rgb=function(e){const t=e[0]/360,a=e[1]/100,i=e[2]/100;let r,n;if(0===a)return n=255*i,[n,n,n];const l=i<.5?i*(1+a):i+a-i*a,o=2*i-l,s=[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*(l-o)*r:2*r<1?l:3*r<2?o+(l-o)*(2/3-r)*6:o,s[e]=255*n;return s},Pi.hsl.hsv=function(e){const t=e[0];let a=e[1]/100,i=e[2]/100,r=a;const n=Math.max(i,.01);i*=2,a*=i<=1?i:2-i,r*=n<=1?n:2-n;return[t,100*(0===i?2*r/(n+r):2*a/(i+a)),100*((i+a)/2)]},Pi.hsv.rgb=function(e){const t=e[0]/60,a=e[1]/100;let i=e[2]/100;const r=Math.floor(t)%6,n=t-Math.floor(t),l=255*i*(1-a),o=255*i*(1-a*n),s=255*i*(1-a*(1-n));switch(i*=255,r){case 0:return[i,s,l];case 1:return[o,i,l];case 2:return[l,i,s];case 3:return[l,o,i];case 4:return[s,l,i];case 5:return[i,l,o]}},Pi.hsv.hsl=function(e){const t=e[0],a=e[1]/100,i=e[2]/100,r=Math.max(i,.01);let n,l;l=(2-a)*i;const o=(2-a)*r;return n=a*r,n/=o<=1?o:2-o,n=n||0,l/=2,[t,100*n,100*l]},Pi.hwb.rgb=function(e){const t=e[0]/360;let a=e[1]/100,i=e[2]/100;const r=a+i;let n;r>1&&(a/=r,i/=r);const l=Math.floor(6*t),o=1-i;n=6*t-l,1&l&&(n=1-n);const s=a+n*(o-a);let c,d,m;switch(l){default:case 6:case 0:c=o,d=s,m=a;break;case 1:c=s,d=o,m=a;break;case 2:c=a,d=o,m=s;break;case 3:c=a,d=s,m=o;break;case 4:c=s,d=a,m=o;break;case 5:c=o,d=a,m=s}return[255*c,255*d,255*m]},Pi.cmyk.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},Pi.xyz.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100;let r,n,l;return r=3.2404542*t+-1.5371385*a+-.4985314*i,n=-.969266*t+1.8760108*a+.041556*i,l=.0556434*t+-.2040259*a+1.0572252*i,r=Ui(r),n=Ui(n),l=Ui(l),[255*r,255*n,255*l]},Pi.xyz.lab=function(e){let t=e[0],a=e[1],i=e[2];t/=95.047,a/=100,i/=108.883,t=t>Mi?t**(1/3):7.787*t+16/116,a=a>Mi?a**(1/3):7.787*a+16/116,i=i>Mi?i**(1/3):7.787*i+16/116;return[116*a-16,500*(t-a),200*(a-i)]},Pi.xyz.oklab=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100,r=Math.cbrt(.8189330101*t+.3618667424*a-.1288597137*i),n=Math.cbrt(.0329845436*t+.9293118715*a+.0361456387*i),l=Math.cbrt(.0482003018*t+.2643662691*a+.633851707*i);return[100*(.2104542553*r+.793617785*n-.0040720468*l),100*(1.9779984951*r-2.428592205*n+.4505937099*l),100*(.0259040371*r+.7827717662*n-.808675766*l)]},Pi.oklab.oklch=function(e){return Pi.lab.lch(e)},Pi.oklab.xyz=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100,r=(.999999998*t+.396337792*a+.215803758*i)**3,n=(1.000000008*t-.105561342*a-.063854175*i)**3,l=(1.000000055*t-.089484182*a-1.291485538*i)**3;return[100*(1.227013851*r-.55779998*n+.281256149*l),100*(-.040580178*r+1.11225687*n-.071676679*l),100*(-.076381285*r-.421481978*n+1.58616322*l)]},Pi.oklab.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100,r=(t+.3963377774*a+.2158037573*i)**3,n=(t-.1055613458*a-.0638541728*i)**3,l=(t-.0894841775*a-1.291485548*i)**3;return[255*Ui(4.0767416621*r-3.3077115913*n+.2309699292*l),255*Ui(-1.2684380046*r+2.6097574011*n-.3413193965*l),255*Ui(-.0041960863*r-.7034186147*n+1.707614701*l)]},Pi.oklch.oklab=function(e){return Pi.lch.lab(e)},Pi.lab.xyz=function(e){let t,a,i;a=(e[0]+16)/116,t=e[1]/500+a,i=a-e[2]/200;const r=a**3,n=t**3,l=i**3;return a=r>Mi?r:(a-16/116)/7.787,t=n>Mi?n:(t-16/116)/7.787,i=l>Mi?l:(i-16/116)/7.787,t*=95.047,a*=100,i*=108.883,[t,a,i]},Pi.lab.lch=function(e){const t=e[0],a=e[1],i=e[2];let r;r=360*Math.atan2(i,a)/2/Math.PI,r<0&&(r+=360);return[t,Math.sqrt(a*a+i*i),r]},Pi.lch.lab=function(e){const t=e[0],a=e[1],i=e[2]/360*2*Math.PI;return[t,a*Math.cos(i),a*Math.sin(i)]},Pi.rgb.ansi16=function(e,t=null){const[a,i,r]=e;let n=null===t?Pi.rgb.hsv(e)[2]:t;if(n=Math.round(n/50),0===n)return 30;let l=30+(Math.round(r/255)<<2|Math.round(i/255)<<1|Math.round(a/255));return 2===n&&(l+=60),l},Pi.hsv.ansi16=function(e){return Pi.rgb.ansi16(Pi.hsv.rgb(e),e[2])},Pi.rgb.ansi256=function(e){const t=e[0],a=e[1],i=e[2];if(t>>4==a>>4&&a>>4==i>>4)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(a/255*5)+Math.round(i/255*5)},Pi.ansi16.rgb=function(e){let t=(e=e[0])%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const a=.5*(Math.trunc(e>50)+1);return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},Pi.ansi256.rgb=function(e){if((e=e[0])>=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]},Pi.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".slice(t.length)+t},Pi.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let a=t[0];3===t[0].length&&(a=[...a].map(e=>e+e).join(""));const i=Number.parseInt(a,16);return[i>>16&255,i>>8&255,255&i]},Pi.rgb.hcg=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,r=Math.max(Math.max(t,a),i),n=Math.min(Math.min(t,a),i),l=r-n;let o;return o=l<=0?0:r===t?(a-i)/l%6:r===a?2+(i-t)/l:4+(t-a)/l,o/=6,o%=1,[360*o,100*l,100*(l<1?n/(1-l):0)]},Pi.hsl.hcg=function(e){const t=e[1]/100,a=e[2]/100,i=a<.5?2*t*a:2*t*(1-a);let r=0;return i<1&&(r=(a-.5*i)/(1-i)),[e[0],100*i,100*r]},Pi.hsv.hcg=function(e){const t=e[1]/100,a=e[2]/100,i=t*a;let r=0;return i<1&&(r=(a-i)/(1-i)),[e[0],100*i,100*r]},Pi.hcg.rgb=function(e){const t=e[0]/360,a=e[1]/100,i=e[2]/100;if(0===a)return[255*i,255*i,255*i];const r=[0,0,0],n=t%1*6,l=n%1,o=1-l;let s=0;switch(Math.floor(n)){case 0:r[0]=1,r[1]=l,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=l;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=l,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return s=(1-a)*i,[255*(a*r[0]+s),255*(a*r[1]+s),255*(a*r[2]+s)]},Pi.hcg.hsv=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);let i=0;return a>0&&(i=t/a),[e[0],100*i,100*a]},Pi.hcg.hsl=function(e){const t=e[1]/100,a=e[2]/100*(1-t)+.5*t;let i=0;return a>0&&a<.5?i=t/(2*a):a>=.5&&a<1&&(i=t/(2*(1-a))),[e[0],100*i,100*a]},Pi.hcg.hwb=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],100*(a-t),100*(1-a)]},Pi.hwb.hcg=function(e){const t=e[1]/100,a=1-e[2]/100,i=a-t;let r=0;return i<1&&(r=(a-i)/(1-i)),[e[0],100*i,100*r]},Pi.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Pi.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Pi.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Pi.gray.hsl=function(e){return[0,0,e[0]]},Pi.gray.hsv=Pi.gray.hsl,Pi.gray.hwb=function(e){return[0,100,e[0]]},Pi.gray.cmyk=function(e){return[0,0,0,e[0]]},Pi.gray.lab=function(e){return[e[0],0,0]},Pi.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(a.length)+a},Pi.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Vi={},zi=Object.keys(Pi);function ji(e){const t=function(...t){const a=t[0];return null==a?a:(a.length>1&&(t=a),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function Ki(e){const t=function(...t){const a=t[0];if(null==a)return a;a.length>1&&(t=a);const i=e(t);if("object"==typeof i)for(let{length:e}=i,t=0;t<e;t++)i[t]=Math.round(i[t]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of zi){Vi[e]={},Object.defineProperty(Vi[e],"channels",{value:Pi[e].channels}),Object.defineProperty(Vi[e],"labels",{value:Pi[e].labels});const t=Yi(e),a=Object.keys(t);for(const i of a){const a=t[i];Vi[e][i]=Ki(a),Vi[e][i].raw=ji(a)}}const qi=["keyword","gray","hex"],$i={};for(const e of Object.keys(Vi))$i[[...Vi[e].labels].sort().join("")]=e;const Xi={};function Qi(e,t){if(!(this instanceof Qi))return new Qi(e,t);if(t&&t in qi&&(t=null),t&&!(t in Vi))throw new Error("Unknown model: "+t);let a,i;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Qi)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=xi.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,i=Vi[this.model].channels,this.color=t.value.slice(0,i),this.valpha="number"==typeof t.value[i]?t.value[i]:1}else if(e.length>0){this.model=t||"rgb",i=Vi[this.model].channels;const a=Array.prototype.slice.call(e,0,i);this.color=tr(a,i),this.valpha="number"==typeof e[i]?e[i]: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 i=t.sort().join("");if(!(i in $i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=$i[i];const{labels:r}=Vi[this.model],n=[];for(a=0;a<r.length;a++)n.push(e[r[a]]);this.color=tr(n)}if(Xi[this.model])for(i=Vi[this.model].channels,a=0;a<i;a++){const e=Xi[this.model][a];e&&(this.color[a]=e(this.color[a]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Qi.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in xi.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const a=1===t.valpha?t.color:[...t.color,this.valpha];return xi.to[t.model](...a)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),a=1===t.valpha?t.color:[...t.color,this.valpha];return xi.to.rgb.percent(...a)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Vi[this.model],{labels:a}=Vi[this.model];for(let i=0;i<t;i++)e[a[i]]=this.color[i];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 Qi([...this.color.map(Zi(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new Qi([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Ji("rgb",0,er(255)),green:Ji("rgb",1,er(255)),blue:Ji("rgb",2,er(255)),hue:Ji(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:Ji("hsl",1,er(100)),lightness:Ji("hsl",2,er(100)),saturationv:Ji("hsv",1,er(100)),value:Ji("hsv",2,er(100)),chroma:Ji("hcg",1,er(100)),gray:Ji("hcg",2,er(100)),white:Ji("hwb",1,er(100)),wblack:Ji("hwb",2,er(100)),cyan:Ji("cmyk",0,er(100)),magenta:Ji("cmyk",1,er(100)),yellow:Ji("cmyk",2,er(100)),black:Ji("cmyk",3,er(100)),x:Ji("xyz",0,er(95.047)),y:Ji("xyz",1,er(100)),z:Ji("xyz",2,er(108.833)),l:Ji("lab",0,er(100)),a:Ji("lab",1),b:Ji("lab",2),keyword(e){return void 0!==e?new Qi(e):Vi[this.model].keyword(this.color)},hex(e){return void 0!==e?new Qi(e):xi.to.hex(...this.rgb().round().color)},hexa(e){if(void 0!==e)return new Qi(e);const t=this.rgb().round().color;let a=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===a.length&&(a="0"+a),xi.to.hex(...t)+a},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[a,i]of e.entries()){const e=i/255;t[a]=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(),a=e.luminosity();return t>a?(t+.05)/(a+.05):(a+.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 Qi.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 a=t.color[0];return a=(a+e)%360,a=a<0?360+a:a,t.color[0]=a,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 a=e.rgb(),i=this.rgb(),r=void 0===t?.5:t,n=2*r-1,l=a.alpha()-i.alpha(),o=((n*l===-1?n:(n+l)/(1+n*l))+1)/2,s=1-o;return Qi.rgb(o*a.red()+s*i.red(),o*a.green()+s*i.green(),o*a.blue()+s*i.blue(),a.alpha()*r+i.alpha()*(1-r))}};for(const e of Object.keys(Vi)){if(qi.includes(e))continue;const{channels:t}=Vi[e];Qi.prototype[e]=function(...t){return this.model===e?new Qi(this):t.length>0?new Qi(t,e):new Qi([...(a=Vi[this.model][e].raw(this.color),Array.isArray(a)?a:[a]),this.valpha],e);var a},Qi[e]=function(...a){let i=a[0];return"number"==typeof i&&(i=tr(a,t)),new Qi(i,e)}}function Zi(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function Ji(e,t,a){e=Array.isArray(e)?e:[e];for(const i of e)(Xi[i]||=[])[t]=a;return e=e[0],function(i){let r;return void 0!==i?(a&&(i=a(i)),r=this[e](),r.color[t]=i,r):(r=this[e]().color[t],a&&(r=a(r)),r)}}function er(e){return function(t){return Math.max(0,Math.min(e,t))}}function tr(e,t){for(let a=0;a<t;a++)"number"!=typeof e[a]&&(e[a]=0);return e}const ar=(e,t)=>Qi(e).darken(t).rgb().string(),ir={inherit:"inherit",transparent:"transparent",black:Oi.colors.black,white:Oi.colors.white,display:Oi.colors.black,darkDisplay:Oi.colors.white,highContrastColor:Oi.colors.primary400,medContrastColor:Oi.colors.primary200,lowContrastColor:Oi.colors.primary50,darkHighContrastColor:Oi.colors.primary400,darkMedContrastColor:Oi.colors.primary600,darkLowContrastColor:Oi.colors.primary900,bodyText:Oi.colors.primary,bodyTextInverted:Oi.colors.primary50,darkBodyText:Oi.colors.primary50,bodyBackground:Oi.colors.white,darkBodyBackground:Oi.colors.primary,headerBackground:Oi.colors.white,darkHeaderBackground:Oi.colors.primary,headerText:Oi.colors.primary,darkHeaderText:Oi.colors.white,footerBackground:Oi.colors.white,darkFooterBackground:Oi.colors.primary,footerText:Oi.colors.primary,darkFooterText:Oi.colors.primary50,cardBackground:Oi.colors.white,cardBackgroundHover:Oi.colors.primary100,cardText:Oi.colors.primary900,darkCardBackground:Oi.colors.primary900,darkCardText:Oi.colors.white,...Object.assign({},...Object.keys(Oi.colors).map(e=>{const t=Oi.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,Qi(a).lighten(i).rgb().string()),darker:ar(t,.1)}};var a,i}))},rr={...Oi,colors:{...Oi.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:{...Oi.borderRadius},fontWeight:{...Oi.fontWeight,light:"300",normal:"400",bold:"700"},fontSize:{...Oi.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.05rem",{lineHeight:"1.4rem"}],"3xl":["1.3125rem",{lineHeight:"1.575rem"}],"4xl":["1.575rem",{lineHeight:"1.75rem"}],"5xl":["2.1rem",{lineHeight:"2.275rem"}],"6xl":["2.625rem",{lineHeight:"2.8rem"}],"7xl":["3.15rem",{lineHeight:"3.5rem"}],"8xl":["4.2rem",{lineHeight:"4.9rem"}],"9xl":["5.6rem",{lineHeight:"6.3rem"}]}},nr=(e,t)=>Qi(e).darken(t).rgb().string(),lr={...ir,highContrast:rr.colors.primary400,medContrast:rr.colors.primary200,lowContrast:rr.colors.primary50,darkHighContrast:rr.colors.primary400,darkMedContrast:rr.colors.primary600,darkLowContrast:rr.colors.primary900,bodyBackground:rr.colors.white,darkBodyBackground:rr.colors.primary900,bodyText:"#171717",darkBodyText:"#EEEEEE",headerBackground:rr.colors.primary,darkHeaderBackground:rr.colors.primary900,headerText:rr.colors.white,darkHeaderText:rr.colors.white,footerBackground:rr.colors.primary,darkFooterBackground:rr.colors.primary900,footerText:rr.colors.white,darkFooterText:rr.colors.white,cardBackground:rr.colors.white,cardBackgroundHover:rr.colors.primary100,cardText:rr.colors.primary900,darkCardBackground:rr.colors.primary900,darkCardText:rr.colors.white,...Object.assign({},...Object.keys(rr.colors).map(e=>{const t=rr.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,Qi(a).lighten(i).rgb().string()),darker:nr(t,.1)}};var a,i}))},or={sans:["sans-serif"],serif:["serif"],mono:["monospace"],body:["var(--font-body)"],heading:["var(--font-heading)"],display:["var(--font-heading)"],body:["var(--font-body)"],heading:["var(--font-heading)"],display:["var(--font-display)"]},sr={...{borderRadius:{btnBorderRadius:Oi.borderRadius.DEFAULT}},raised:!1},cr={colors:{...lr},fontFamily:{...or},fontSize:{...rr?.fontSize},fontWeight:{...rr?.fontWeight},buttons:{...sr},screens:{...rr?.screens},borderRadius:{...rr?.borderRadius},spacing:{...rr?.spacing},extend:{...rr?.extend}};export{xa as Accordion,ni as AccountScreen,It as AmplifyContext,Tt as AmplifyProvider,Ee as AnimationCounter,Qt as AnimationSet1,yt as AppContext,Ct as AppProvider,li as AuthScreen,ca as Authenticator,et as Avatar,Ce as BTN_SIZES,Se as BTN_TYPES,ye as BTN_VARIANTS,Ae as Blockquote,Ie as Button,tt as ButtonGroup,Oe as COPY_ALIGN,_e as COPY_CONTEXTUAL,xe as COPY_SIZE,we as COPY_TAG,Le as COPY_TRANSFORM,Da as CPL_SPACING,Pa as CRL_SIZE,Ft as Card,va as CardGrid,oi as CardGridScreen,ya as CardVariant,ua as Carousel,Ta as Cart,Ot as CartProvider,si as CatalogueScreen,ci as ChallengeLibraryScreen,ui as ChallengeScreen,Te as Checkbox,ke as Chip,$t as Container,ka as ContentPageLayout,Ma as ContentRowsLayout,hi as ContentScreen,De as Copy,pi as DashboardScreen,Bt as DisplayHeading,fi as FAQScreen,Gt as FIELD_TYPES,Pe as FileUpload,Oa as Footer,sa as ForgotPasswordForm,Ht as Form,Yt as FormField,Wt as FormSelect,Ba as FullContentBackgroundImage,Fa as FullScreenVideoModal,Ue as HEADING_ALIGN,Me as HEADING_TAGS,Fe as HEADING_TRANSFORM,Ra as Header,Be as Heading,Xt as Hero,Ni as HomeScreen,He as Hr,lt as HtmlContent,be as Icon,Ge as Image,ut as InvalidDurationError,We as Label,Re as Link,ze as List,Ke as ListItem,Ve as ListTag,ve as Loader,la as LoginForm,je as Logo,gi as LogoutScreen,Kt as Menu,Ei as MenuScreen,ti as MultiCheckboxFacet,ht as MultipleFractionsError,bi as NotFoundScreen,qe as Notice,Ua as OTPInput,pa as PanelCards,Sa as PanelCustom,fa as PanelFeature,ga as PanelHero,Aa as PanelIntro,Ea as PanelProduct,Ca as PanelScroller,ba as PanelVideo,Si as PasswordResetAuthScreen,Ai as PasswordResetScreen,ri as ProfileForm,yi as ProfileScreen,Ia as PromoCodeForm,$e as Radio,oa as RegisterForm,ii as ResetPasswordAuthForm,ai as ResetPasswordForm,Ha as ResultAsTypes,ha as SPACING,Je as STRINGS_EN,Ii as ScheduleScreen,La as Screen,Za as Search,Vt as Share,ei as SingleLinksFacet,Ja as SingleSelectFacet,wa as SubscriptionManager,Ti as SubscriptionScreen,Xe as Switch,zt as Tabs,Ze as TextInput,bt as ThemeContext,At as ThemeProvider,Ye as Variants,Na as Video,jt as VisitUs,Ri as WorkoutScreen,Et as defaultTheme,Nt as formatDuration,gt as getRandomImageFromArray,pt as parseDuration,cr as theme,ft as truncateString,vt as useAppContext,Lt as useCartContext,xt as useLanguage,wt as useTheme,St as useThemeContext,ia as validEmail,ra as validPassword,na as validatePhoneNumber};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import i,{useRef as r,forwardRef as n,useMemo as l,createElement as o,useEffect as s,useState as c,useContext as d,createContext as m,useImperativeHandle as u,useCallback as h}from"react";import p from"classnames";import{useInView as f,useIsomorphicLayoutEffect as g,animate as N,motionValue as E,motion as b,useAnimation as A}from"framer-motion";import{Icon as S}from"@iconify/react";import{twMerge as y}from"tailwind-merge";import{getDefaultClassNames as C,DayPicker as v}from"react-day-picker";import"react-day-picker/dist/style.css";import*as I from"@radix-ui/react-collapsible";import T,{attributesToProps as R,domToReact as O}from"html-react-parser";import{parse as L}from"iso8601-duration";import{Amplify as _,Hub as x,Auth as w}from"aws-amplify";import D from"react-hover-video-player";import{useForm as k,FormProvider as P,useFormContext as M,Controller as U}from"react-hook-form";import{FacebookShareButton as F,TwitterShareButton as B,WhatsappShareButton as H,EmailShareButton as G,LinkedinShareButton as W}from"react-share";import{Tabs as Y,TabList as V,Tab as z,TabPanel as j}from"react-tabs";import{CognitoHostedUIIdentityProvider as K}from"@aws-amplify/auth";import{isPossiblePhoneNumber as q,isValidPhoneNumber as $,validatePhoneNumberLength as X}from"libphonenumber-js";import{toast as Q}from"react-toastify";import Z from"react-slick";import J from"react-player/youtube";import{isMobileOnly as ee}from"react-device-detect";import te from"video.js";import{confirmAlert as ae}from"react-confirm-alert";import ie from"react-otp-input";import re from"react-modal";import ne from"@elastic/search-ui-elasticsearch-connector";import{SearchContext as le,SearchProvider as oe,WithSearch as se,ErrorBoundary as ce,Paging as de,PagingInfo as me,ResultsPerPage as ue,Sorting as he,Results as pe,Facet as fe,SearchBox as ge}from"@elastic/react-search-ui";import Ne from"rc-pagination";import Ee from"rc-pagination/lib/locale/en_US";import be from"he";import{format as Ae,startOfDay as Se}from"date-fns";const ye=({testID:t,from:a,to:i,animationOptions:n,className:l,numDecimals:o=0})=>{const s=r(null),c=f(s,{once:!0});return g(()=>{const e=s.current;if(!e||!c)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=i.toString());e.textContent=a.toString();const t=N(a,i,{duration:1,ease:"easeOut",...n,onUpdate:t=>{e.textContent=t.toFixed(o)}});return()=>{t.stop()}},[s,c,a,i,n]),e("span",{ref:s,"data-testid":t||"AnimationCounter",className:p("relative",l)})};ye.displayName="AnimationCounter";const Ce=({name:t,size:a=24,color:i,id:r,className:n,testID:l})=>e(S,{"data-testid":l||r||"Icon",icon:t,width:a,height:a,color:i||"currentColor",className:n});Ce.displayName="Icon";const ve=({text:a,citation:i,className:r,citationAttribute:n,showIcon:l=!0})=>{const o=p("text-xl italic font-bold",r);return t("blockquote",{"data-testid":"Blockquote",className:o,children:[l&&e(Ce,{name:"mdi:comment-quote",size:42}),e("div",{children:a}),i&&e("figcaption",{className:"flex flex-start items-center mt-6 space-x-3",children:t("div",{className:"flex items-center divide-x-2",children:[e("cite",{className:"pr-3 font-medium",children:i}),n&&e("cite",{className:"pl-3 text-sm font-light",children:n})]})})]})};var Ie,Te,Re;ve.displayName="Blockquote",function(e){e.SUBMIT="submit",e.RESET="reset",e.BUTTON="button"}(Ie||(Ie={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link"}(Te||(Te={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(Re||(Re={}));const Oe=({color:a,size:i=8,thickness:r=4})=>e("div",{"data-testid":"Loader",className:"flex items-center justify-center",children:t("div",{role:"status",className:"flex items-center",children:[t("svg",{className:`animate-spin ${i?`w-${i} h-${i}`:"w-8 h-8"} fill-current`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:a||"currentColor",strokeWidth:r}),e("path",{className:"opacity-75",fill:a||"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("span",{className:"sr-only",children:"Loading..."})]})});Oe.displayName="Loader";const Le=({variant:i=Te.PRIMARY,size:r=Re.MEDIUM,type:n=Ie.BUTTON,wide:l=!1,rounded:o=!1,raised:s=!1,uppercase:c,children:d,id:m,disabled:u,ariaLabel:h,onClick:f,icon:g,external:N,iconFirst:E,outline:b,testID:A,className:S,isLoading:C,offsetFont:v=!1})=>{const I={small:{x:d&&!o?l?"px-5":"px-3":d?"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:d&&!o?l?"px-8":"px-4":d?"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:d&&!o?l?"px-11":"px-5":d?"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},T=y(p("button rounded-btnBorderRadius",{shadow:s},{uppercase:c},{"auto-cols-auto grid-cols-2 gap-4":C||g||N},{"flex-row-reverse":E},{"opacity-50 cursor-not-allowed":u},`${I?.[r]?.y} ${I?.[r]?.x} ${I?.[r]?.text}`,{"text-white border-primary bg-primary hover:bg-primary-darker":i===Te.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":i===Te.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":i===Te.TERTIARY},{"border-primary bg-transparent text-bodyText dark:text-darkBodyText hover:bg-opacity-30":b},{"border-primary300 dark:border-primary400 hover:border-primary400 dark:hover:border-primary500":b},{"px-0 text-bodyText dark:text-darkBodyText border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert":i===Te.LINK},{"rounded-full leading-none":o},S)),R=p(I?.[r]?.icon);return e("button",{id:m,"data-testid":A||m||"Button",onClick:f,className:T,type:n,disabled:u,"aria-label":h,role:"button",children:t(a,{children:[v?e("span",{className:"brand-font-offset",children:d}):d,g&&!N&&e("span",{className:"flex items-center",children:e(Ce,{name:g,className:R})}),N&&e("span",{className:"flex items-center",children:e(Ce,{name:"carbon:launch",className:R})}),C&&e("div",{className:"flex items-center",children:e(Oe,{size:4})})]})})};Le.displayName="Button";const _e=n(function({id:a,label:i,required:r,className:n,disabled:l,...o},s){return t("div",{"data-testid":"Checkbox",className:p("flex items-center",n),children:[t("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e("input",{id:a,ref:s,disabled:l,type:"checkbox",className:"form-item checkbox m-0 appearance-none peer h-full w-full shrink-0 focus:ring-2",required:r,...o}),e("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(Ce,{name:"mdi:check-bold",size:12})})]}),i&&e("label",{className:"label pl-2 leading-none text-sm text-bodyText dark:text-darkBodyText",htmlFor:a,children:i})]})});_e.displayName="Checkbox";const xe=({href:a,children:r,onClick:n=()=>{},history:l,target:o,id:s,testID:c,className:d,prefetch:m,hideExternalIcon:u=!1})=>{const h=p("link cursor-pointer no-underline",d);if(!u&&a&&a.startsWith("http"))return t("span",{className:"inline-flex flex-row gap-2 items-center",children:[e("a",{"data-testid":c||s||"Link",className:p(h),href:a,target:"_blank",rel:"noopener noreferrer",children:r}),e(Ce,{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 Link not found");return i.createElement(e,{href:a||"#",onClick:n,"data-testid":c||s||"Link",className:h,target:o||"_self",prefetch:m||!1},r)}catch{return e("a",{"data-testid":c||s||"Link",className:h,href:a,onClick:e=>{n?n(e):!0!==e.defaultPrevented&&l&&a&&(e.preventDefault(),l.push(a))},target:o,children:r})}};var we,De,ke,Pe,Me;xe.displayName="Link",function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(we||(we={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(De||(De={})),function(e){e.INVERTED="inverted",e.MUTED="muted"}(ke||(ke={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.INTRO="intro"}(Pe||(Pe={})),function(e){e.P="p",e.SPAN="span",e.DIV="div",e.SMALL="small"}(Me||(Me={}));const Ue=({children:t,as:a=Me.P,size:i,bold:r,align:n,transform:l,underlined:o,id:s,className:c,testID:d})=>{const m=p({[`text-${n}`]:n},{"font-bold":r},{"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:o},l,c);return e(a,{"data-testid":d||s||"Copy",className:y(m),children:t})};Ue.displayName="Copy";const Fe=({testID:a,text:i,outline:r,rounded:n,variant:o,size:s="medium",icon:c,iconFirst:d,onClick:m})=>{const u=l(()=>{switch(s){case"small":return{iconSize:16,copySize:Pe.SMALL};case"medium":default:return{iconSize:20,copySize:Pe.MEDIUM};case"large":return{iconSize:28,copySize:Pe.LARGE}}},[s]),h=y(p("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":r},{"rounded-full":n},{"flex-row-reverse":d},{"bg-primary text-white":"primary"===o},{"bg-secondary text-white":"secondary"===o},{"bg-tertiary text-white":"tertiary"===o},{"bg-info text-white":"info"===o},{"bg-success text-white":"success"===o},{"bg-warning text-white":"warning"===o},{"bg-error text-white":"error"===o},{"py-1 px-3":"small"===s},{"py-2 px-4":"medium"===s},{"py-3 px-6":"large"===s}));return m&&"function"==typeof m?t(xe,{"data-testid":a||"Chip",className:h,onClick:m,children:[e(Ue,{className:"mb-0",as:Me.SPAN,size:u.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(Ce,{name:c,size:u.iconSize})})]}):t("div",{"data-testid":a||"Chip",className:h,children:[e(Ue,{className:"mb-0",as:Me.SPAN,size:u.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(Ce,{name:c,size:u.iconSize})})]})};Fe.displayName="Chip";const Be=({testID:t,className:a,classNames:i,selected:r,onSelect:n,datesWithContent:l=[],disabled:o,showOutsideDays:s=!0,...c})=>{const d=C();return e("div",{"data-testid":t||"Calendar",className:"flex justify-center",children:e(v,{mode:"single",selected:r,onSelect:n,disabled:o,showOutsideDays:s,modifiers:{hasContent:l},modifiersClassNames:{hasContent:"has-content-date"},className:y("p-3 w-fit",a),classNames:{root:y("w-fit",d.root),months:y("relative flex flex-col gap-4 md:flex-row",d.months),month:y("flex w-full flex-col gap-4",d.month),nav:y("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",d.nav),button_previous:y("inline-flex items-center justify-center rounded-md h-9 w-9 bg-transparent p-0 opacity-50 hover:opacity-100 transition-opacity",d.button_previous),button_next:y("inline-flex items-center justify-center rounded-md h-9 w-9 bg-transparent p-0 opacity-50 hover:opacity-100 transition-opacity",d.button_next),month_caption:y("flex h-9 w-full items-center justify-center px-9",d.month_caption),caption_label:y("select-none font-medium text-sm",d.caption_label),weekdays:y("flex",d.weekdays),weekday:y("text-grey600 dark:text-grey400 flex-1 select-none rounded-md text-[0.8rem] font-normal",d.weekday),week:y("mt-2 flex w-full",d.week),day:y(d.day,'relative aspect-square h-full w-full select-none p-0 text-center [&[data-selected="true"]>button]:border-grey800'),day_button:y(d.day_button,"h-9 w-9 p-0 font-normal inline-flex items-center justify-center rounded-md text-bodyText dark:text-darkBodyText","hover:bg-grey100 dark:hover:bg-grey800 hover:text-bodyText dark:hover:text-darkBodyText","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary","disabled:pointer-events-none disabled:opacity-50","data-[today=true]:bg-grey100 data-[today=true]:dark:bg-grey800"),outside:y("text-grey400 dark:text-grey600 opacity-50",d.outside),disabled:y("text-grey400 dark:text-grey600 opacity-50",d.disabled),hidden:y("invisible",d.hidden),...i},components:{Chevron:({orientation:t})=>e(Ce,{name:"left"===t?"mdi:chevron-left":"mdi:chevron-right",className:"h-4 w-4"})},...c})})};Be.displayName="Calendar";const He=n(({className:t,testID:a,children:i,...r},n)=>e(I.Root,{ref:n,"data-testid":a||"Collapsible",className:y(p("collapsible-root",t)),...r,children:i}));He.displayName="CollapsibleRoot";const Ge=n(({className:t,children:a,...i},r)=>e(I.Trigger,{ref:r,className:y(p(!t&&"collapsible-trigger","transition duration-500 ease-in-out",t)),...i,children:a}));Ge.displayName="CollapsibleTrigger";const We=n(({className:t,children:a,...i},r)=>e(I.Content,{ref:r,className:y(p("collapsible-content","transition-all duration-500 ease-in-out","data-[state=closed]:animate-collapse-up data-[state=open]:animate-collapse-down","overflow-hidden",t)),...i,children:a}));We.displayName="CollapsibleContent";const Ye={Root:He,Trigger:Ge,Content:We},Ve=i.forwardRef(function({id:t,name:a,required:i,disabled:r,className:n,onChangeCallback:l,onChange:o,...s},c){return e("div",{"data-testid":"FileUpload",className:n,children:e("input",{ref:c,className:p("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":a,type:"file",disabled:r,required:i,name:a,id:t,onChange:e=>{l&&"function"==typeof l&&l(e),o&&"function"==typeof o&&o({target:{value:e.target.value,name:a}})},...s})})});var ze,je,Ke;Ve.displayName="FileUpload",function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5"}(ze||(ze={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(je||(je={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize",e.NORMAL_CASE="normal-case"}(Ke||(Ke={}));const qe=({children:t,tag:a=ze.H2,transform:i,align:r,id:n,testID:l,flush:o,className:s,singleLine:c,bold:d=!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"}})(),u=a,h=p(`m-0 p-0 font-heading ${m}`,{"font-bold":d},{[`text-${r}`]:r},{"mb-2":!o},{"m-0":o},{"whitespace-nowrap text-ellipsis overflow-hidden":c},i,s);return e(u,{"data-testid":l||n||"Heading",className:y(h),children:t})};qe.displayName="Heading";const $e=({size:t="small"})=>e("hr",{className:p("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})});$e.displayName="Hr";const Xe=({src:a,alt:i,title:r,caption:n,figure:l=!1,onLoad:s,id:c,className:d,sizes:m="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:u,...h})=>{try{const e=require("next/image").default;if(!e)throw new Error("Next.js Image not found");const t=!h.width;return o(e,{src:a,alt:i,title:r,fill:t,onLoad:s,className:d,...t?{sizes:m}:{},...h})}catch{const o=p("m-0"),m=y(p("w-full h-full",d));return l||n?t("figure",{"data-testid":u||c||"Image",className:o,children:[e("img",{onLoad:s,src:a,alt:i,title:r,className:m}),n&&e("figcaption",{children:n})]}):e("img",{"data-testid":u||c||"Image",onLoad:s,src:a,alt:i,title:r,className:m})}};Xe.displayName="Image";const Qe=({children:t,id:a,transform:i,className:r})=>e("label",{"data-testid":"Label",className:y(p("label mb-2 text-bodyText dark:text-darkBodyText",i,r)),htmlFor:a,children:t});var Ze,Je;Qe.displayName="Label",function(e){e.UNSTYLED="unstyled",e.INLINE="inline",e.SMALL="small",e.LARGE="large"}(Ze||(Ze={})),function(e){e.OL="ol",e.UL="ul",e.DL="dl",e.DIV="div",e.DT="dt",e.DD="dd",e.LI="li"}(Je||(Je={}));const et=({variants:t,children:a,as:i=Je.UL,id:r,testID:n,className:l})=>{const o=t?t.map(e=>`list--${e}`):null;return e(i,{"data-testid":n||r||"List",className:p(o,l),children:a})};et.displayName="List";const tt=({testID:t,logo:a,className:i,aspectRatioClass:r="aspect-[1/1]"})=>e("div",{"data-testid":t||"Logo",className:p("relative w-full",r,i),children:e(Xe,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});tt.displayName="Logo";const at=({onClick:a,title:i,icon:r,children:n,as:l="li",id:o,testID:s,className:c})=>t(l,{"data-testid":s||o||"ListItem",className:p({"list-item":"div"!==l},c),children:[a&&t(Le,{variant:Te.LINK,onClick:a,children:[t("div",{className:"",children:[r&&e("div",{children:e(Ce,{name:r,size:24})}),i&&e("div",{children:e(qe,{flush:!0,tag:ze.H4,singleLine:!0,children:i})}),n&&e("div",{children:n})]}),e("div",{children:e(Ce,{name:"mdi:chevron-right",size:24})})]}),!a&&e("div",{className:"",children:n&&e("div",{children:n})})]});at.displayName="ListItem";const it=({id:a,testID:i,title:r,text:n,icon:l,type:o,onCloseCallback:s,onClickCallback:c,actionText:d})=>{const m=p("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("div",{"data-testid":i||a||"Notice",className:m,children:t("div",{className:"flex gap-2",children:[l&&e("div",{className:"mr-2",children:e(Ce,{name:l})}),t("div",{children:[r&&e(qe,{tag:ze.H3,children:r}),e(Ue,{className:"mb-0",children:n})]}),c&&d&&e("div",{className:"ml-auto flex items-end",children:e(Le,{variant:Te.PRIMARY,onClick:c,"aria-label":"Action",size:Re.SMALL,children:d})}),s&&e("div",{className:"absolute top-2 right-4",children:e(Le,{variant:Te.LINK,icon:"mdi:close",onClick:s,"aria-label":"Close"})})]})})};it.displayName="Notice";const rt=i.forwardRef(function({name:a,required:i,className:r,options:n,...l},o){return e("div",{"data-testid":"Radio",className:p("flex items-center",r),children:e("div",{className:p("flex flex-col gap-2",r),children:n?.map(r=>{const n=r?.value?.toString()||void 0;return t("div",{className:"flex items-center relative",children:[t("div",{className:"relative flex items-center",children:[e("input",{ref:o,name:a,type:"radio",required:i,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4",...l,id:n,value:n}),e("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(Ce,{name:"mdi:circle",size:12})})]}),e("label",{className:"label pl-2 leading-none",htmlFor:n,children:r.label})]},n)})})})});rt.displayName="Radio";const nt=n(function({id:a,name:i,required:r,disabled:n,className:l,...o},s){return t("label",{"data-testid":"Switch",className:p("inline-flex items-center cursor-pointer",l),children:[e("input",{ref:s,id:a,name:i,type:"checkbox",value:"",className:"sr-only peer",disabled:n,required:r,...o}),e("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 lt;nt.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"}(lt||(lt={}));const ot=n(function({type:a=lt.TEXT,required:i=!1,className:r,onChange:n,placeholder:l,icon:o,disabled:c=!1,name:d,autoComplete:m,...u},h){s(()=>{"undefined"!=typeof window&&require("date-input-polyfill")},[]);const f="date"===a?"dd/mm/yyyy".toUpperCase():l;return a===lt.TEXTAREA?e("div",{"data-testid":"TextInput",className:"relative",children:e("textarea",{ref:h,id:d,autoComplete:d,required:i,"aria-required":i,disabled:c,placeholder:f,onChange:n,rows:4,className:p("form-item text-area resize-none",r),...u})}):t("div",{"data-testid":"TextInput",className:"relative",children:[o&&e("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e(Ce,{name:o})}),e("input",{ref:h,id:d,type:a,autoComplete:m,required:i,"aria-required":i,disabled:c,placeholder:f,onChange:n,className:p("form-item text-input",{"pl-12":o},r),...u})]})});ot.displayName="TextInput";const st={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"},REGISTER_LONGFORM:{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"},FAQS:{TITLE:"Frequently Asked Questions"},HELP:{TITLE:"Help"},LEGAL_INFO:{TITLE:"Legal & Information"},CONTENT:{TITLE:"Content"},FAVOURITES:{TITLE:"Favourites"},ORDERS:{TITLE:"Orders"},ORDER:{TITLE:"Order"},DOWNLOADS:{TITLE:"Downloads"}}},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"},RESET_PASSWORD_FORM_AUTH:{TITLE:"Reset Password",SUBMIT:"Reset Password",CURRENT_PASSWORD:"Current Password",NEW_PASSWORD:"New 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",COMPANY_NAME_LABEL:"Company name",AGENCY_COMPANY_LABEL:"Agency Name",AGENCY_COMPANY_DESCRIPTION:"If you are an Agency, please write the name of the company you are purchasing for",AGENCY_LABEL:"If you are an Agency please check this box",COMPANY_VAT:"VAT Registration number",PRIVACY_LABEL:"I agree to the CNBC Media Hub {privacy} , {terms} and {supplementTerms}",COMPANY_NAME_DESCRIPTION:"Please enter your company name or N/A."},PROMO_CODE_FORM:{TITLE:"Promo Code",SUBMIT:"Apply",PROMO_CODE:"Promo Code"},PAYMENT_FORM:{NAME:"Full Name",PHONE:"Phone Number (incl country code eg. +44)",EMAIL:"Email",EMAIL_CONFIRM:"Confirm Email",BILLING_LINE_1:"Line 1",BILLING_CITY:"City",BILLING_COUNTRY:"Country",BILLING_POST_CODE:"Post Code",TERMS_LABEL:"Terms & Conditions",PAYMENT_CARD:"Pay with card",PROMO_LABEL:"Promo code",COMPANY_VAT:"VAT Registration number"}},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"},CURRENCIES:{USD:"USD",GBP:"GBP",EUR:"EUR",AUD:"AUD",CAD:"CAD",NZD:"NZD",JPY:"JPY",CNY:"CNY",INR:"INR",RUB:"RUB",ZAR:"ZAR",BRL:"BRL",MXN:"MXN",ARS:"ARS",CLP:"CLP",COP:"COP",PEN:"PEN",VEF:"VEF",UYU:"UYU",BOB:"BOB",PYG:"PYG",DOP:"DOP",GTQ:"GTQ",HNL:"HNL",NIO:"NIO",CRC:"CRC",SVC:"SVC",BZD:"BZD",BSD:"BSD",JMD:"JMD",KYD:"KYD",TTD:"TTD",XCD:"XCD",ANG:"ANG",AWG:"AWG",BBD:"BBD",BMD:"BMD",BND:"BND",FJD:"FJD",GYD:"GYD",LRD:"LRD",NAD:"NAD",PGK:"PGK",SBD:"SBD",SRD:"SRD",TWD:"TWD",VUV:"VUV",WST:"WST",KHR:"KHR",LAK:"LAK",MMK:"MMK",MOP:"MOP",MVR:"MVR",NPR:"NPR",PKR:"PKR",PHP:"PHP",SCR:"SCR",LKR:"LKR",THB:"THB",IDR:"IDR",MYR:"MYR",SGD:"SGD",KRW:"KRW",KZT:"KZT",UZS:"UZ"},UI:{NEXT_WEEKS_CLASS:"Next weeks class",SHOW:"Show",NO_IMAGE:"No image",UPLOAD:"Upload",SAVE:"Save",CANCEL:"Cancel",DELETE:"Delete",PLEASE_WAIT:"Please wait...",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",DOWNLOADS:"Downloads",ALL_DOWNLOADS:"All Downloads",NO_DOWNLOADS:"No Downloads",DELETE_DOWNLOAD:"Delete Download",DELETE_DOWNLOADS:"Delete All Downloads",DELETE_DOWNLOADS_CONFIRM:"Are you sure you want to delete all downloads?",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",OUR_FEATURE:"Our Feature",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.",PASSWORD_RESET_SUCCESS:"Password reset successful",REGISTRATION_SUCCESS:"Registration successful",REQUIRED_DATA_MISSING:"Required data missing",PASSWORD_EMAIL_SENT:"Password reset email sent",MISSING_QUERY_PARAMS:"Missing query parameters",CHALLENGE_ENTRY_SUCCESS:"You've successfully entered the challenge",RESET_PASSWORD:"Reset password",CURRENT_SUBSCRIPTION:"Current subscription",MANAGE_SUBSCRIPTION:"Manage subscription",CURRENT_PLAN:"Current plan",NEXT_BILLING_DATE:"Next billing date",END_DATE:"End date",SUBSCRIPTION_STATUS:"Subscription status",SUBSCRIPTION_PLAN:"Plan",SUBSCRIPTION_PRICE:"Price",BILLED_MONTHLY:"Billed monthly",ALL_SUBS_BILLED_MONTHLY:"All subscriptions are billed monthly",CHANGE_PLAN:"Change plan",PAUSE_SUBSCRIPTION:"Pause subscription",CONFIRM_TO_PAUSE:"Are you sure you want to pause your subscription?",CONFIRM_TO_SUBMIT:"Confirm to submit",CONFIRM_TO_CHANGE_PLAN:"Are you sure you want to change your plan?",ARE_YOU_SURE:"Are you sure?",ARE_YOU_SURE_TO_DO_THIS:"Are you sure you want to do this?",YES:"Yes",NO:"No",PAGE_NOT_FOUND:"Page not found",PAGE_NOT_FOUND_MESSAGE:"The page you are looking for does not exist",PAGE_NOT_FOUND_OOPS:"Oops! We cant find that page.",PAGE_NOT_FOUND_MESSAGE_OOPS:"It seems you’ve wandered off the beaten path. Don’t worry, it happens to the best of us!",WHAT_CAN_YOU_DO:"What can you do?",DOUBLE_CHECK_URL:"Double-check the URL for any typos",RETURN_TO_HOMEPAGE:"Return to our homepage",EXPLORE_SITE:"Explore our site map to find what you’re looking for.",STILL_NEED_HELP:"If you still need help, feel free to contact us. We’re here to help!",SUBSCRIPTON_UPDATED_SUCCESS:"Subscription updated successfully",SUBSCRIPTON_UPDATED_FAILED:"Subscription update failed",SELECT_A_PLAN:"Select a plan",CONFIRM_CHOICE:"Confirm choice",PROVIDE_PAYMENT_DETAILS:"Please provide your payment details",SUBSCRIPTON_TRIALING:"Your subscription is currently in trial",NEED_HELP_WITH_SUBSCRIPTION:"Need help with your subscription? eg. updating payment details",CONTACT_SUPPORT:"Contact support",REGISTRATION_EMAIL_SENT:"Registration email sent",VERIFY_EMAIL:"Registration email sent. Please verify your email account to login.",VERIFICATION_SUCCESS:"Verification successful",SUBSCRIBE:"Subscribe now",NO_DATA_FOUND:"No data found",NO_DATA:"No data",NO_WORKOUTS:"No workouts",NO_MEDIA:"No media",NO_CHALLENGES:"No challenges",NO_LIVE:"No live classes",NO_SCHEDULE:"No schedule",NO_CONTENT:"No content",PROMO_INFO:"Promo info",REQUEST_PROMO_INFO:"Request promotion info",LOGGING_OUT:"Logging out",LAUNCH_PLAYBACK:"Launch playback",WATCH_NOW:"Watch now",PLAY_NOW:"Play now",WATCH_LIVE:"Watch live",PLAY_LIVE:"Play live",WATCH:"Watch",PLAY:"Play",VIEW_ALL:"View all",VIEW_MORE:"View more",VIEW_LESS:"View less",VIEW_DETAILS:"View details",CONTINUE_SHOPPING:"Continue shopping",CHECKOUT:"Checkout",TOTAL:"Total",TAX:"Tax",TAX_DUE:"Tax due",PROMO_CODE:"Promo code",EMPTY:"Empty",ORDERING:"Ordering",DESCRIPTION:"Description",PRICE:"Price",QUANTITY:"Quantity",SUBTOTAL:"Subtotal",SHIPPING:"Shipping",SHIPPING_ADDRESS:"Shipping address",BILLING_ADDRESS:"Billing address",PAYMENT:"Payment",PAYMENT_METHOD:"Payment method",PAYMENT_DETAILS:"Payment details",PAYMENT_SUCCESS:"Payment successful",PAYMENT_FAILED:"Payment failed",PAYMENT_CANCELLED:"Payment cancelled",PAYMENT_PENDING:"Payment pending",PAYMENT_PROCESSING:"Payment processing",PAYMENT_CONFIRM:"Confirm payment",PAYMENT_CONFIRMATION:"Payment confirmation",PAYMENT_CONFIRMED:"Payment confirmed",PAYMENT_COMPLETE:"Payment complete",PAYMENT_INCOMPLETE:"Payment incomplete",PAYMENT_ERROR:"Payment error",PAYMENT_ERROR_MESSAGE:"There was an error processing your payment. Please try again.",PAYMENT_SUCCESS_MESSAGE:"Payment successful. Thank you for your purchase.",PAYMENT_FAILED_MESSAGE:"Payment failed. Please try again.",PAYMENT_CANCELLED_MESSAGE:"Payment cancelled. Please try again.",PAYMENT_PENDING_MESSAGE:"Payment pending. Please wait for confirmation.",DOWNLOAD_MEDIA:"Download media",DOWNLOAD_MEDIA_MESSAGE:"You can download your media directly using the below link.",LINK_VALID:"NB: This link will only be valid for 24 hours.",USAGE:"Usage",FORMAT:"Format",VIDEO_RESOLUTION:"Video resolution",FRAME_RATE:"Frame rate",BIT_RATE:"Bit rate",AUDIO_BIT_RATE:"Audio bit rate",AUDIO_SAMPLE_RATE:"Audio sample rate",AUDIO_CHANNELS:"Audio channels",AUDIO_CODEC:"Audio codec",VIDEO_CODEC:"Video codec",AI_GENERATED:"AI generated",REQUEST_DOWNLOAD:"Request download",ADD_TO_CART:"Add to cart",ADD_TO_FAVORITES:"Add to favorites",ADD_TO_WATCHLIST:"Add to watchlist",ADD_TO_PLAYLIST:"Add to playlist",ADD_TO_SUBSCRIPTION:"Add to subscription",ADD_TO_FOLLOW:"Add to follow",ADD_TO_FRIEND:"Add to friend",CART:"Cart",CART_TOTAL:"Cart total",CART_EMPTY:"Cart empty",CART_EMPTY_MESSAGE:"Your cart is empty. Add items to continue.",CART_EMPTY_CONTINUE:"Continue shopping",CART_EMPTY_TITLE:"Cart empty",LOGIN_TO_PURCHASE:"Please register or login to complete your purchase",HOME_LABEL:"Back to the homepage",SEARCH_LABEL:"Search",LOGIN_REGISTER_LABEL:"Sign in/Register",LOGIN_LABEL:"Sign in",LOGOUT_LABEL:"Sign out",REGISTER_LABEL:"Register",PROFILE_LABEL:"My account",ACCOUNT_SETTINGS_LABEL:"Settings",HELP_LABEL:"Need help?",FAQS_LABEL:"See all FAQs",HELP_AND_FAQS_LABEL:"Help",CONTACT_LABEL:"Contact us",COOKIES_LABEL:"How we use cookies",TERMS_LABEL:"Terms of Service",SUPPLEMENTAL_TERMS_LABEL:"Supplemental Terms of Service",PRIVACY_LABEL:"Privacy Policy",INSTAGRAM_LABEL:"Instagram",FACEBOOK_LABEL:"Facebook",TWITTER_LABEL:"Twitter",ALREADY_HAVE_ACCOUNT:"Already have an account?",FORGOT_PASSWORD_LABEL:"Forgot password?",NO_FREE_TRIAL_ALLOWED:"It appears you're not eligible for a free trial as you've previously held a subscription with us."},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",USER_NOT_FOUND_MESSAGE:"User not found",INCORRECT_USERNAME_OR_PASSWORD_MESSAGE:"Incorrect username or password",SIGN_OUT_FAILED_MESSAGE:'"Error signing out. Please try again."',PASSWORD_RESET_FAILED:"Password reset failed",REGISTRATION_FAILED:"Registration failed",VERIFICATION_FAILED:"Verification failed",UNKNOWN_ERROR:"Unknown error"}},ct=({testID:i,name:r="avatar",isEditable:n=!0,initValue:l,fileUpdateCallback:o=async()=>{}})=>{const[d,m]=c(l);s(()=>{l&&m(l)},[l]);return t("div",{"data-testid":i||'"Avatar"',className:"relative",children:[t("div",{className:"relative w-[200px] aspect-1 rounded-full border border-solid overflow-hidden flex items-center justify-center m-4",children:[d&&t(a,{children:[e(Xe,{src:d,alt:r,width:200,height:200}),n&&e("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e(Le,{size:Re.SMALL,rounded:!0,onClick:()=>{m(void 0)},children:st.UI.REMOVE_BTN_LABEL})})]}),!d&&t(a,{children:[n&&e("div",{className:"absolute w-full h-full flex items-center justify-center",children:e(Qe,{id:r,className:"button cursor-pointer mb-0",children:e(Ue,{className:"mb-0",children:st.UI.UPLOAD})})}),!n&&e(Ce,{name:"mdi:account-circle",size:200,className:"opacity-30"})]})]}),e("input",{type:"file",id:r,name:r,className:"hidden",onChange:e=>{const t=e.target.files?.[0];if(t){const e=URL.createObjectURL(t);m(e),(async e=>{o&&"function"==typeof o&&o(e)})(t)}}})]})};ct.displayName="Avatar";const dt=({testID:t,buttonData:a})=>e("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:a?.map((t,i)=>{const r=i>0&&i<a.length-1,n=0===i,l=i===a.length-1,o=p({"rounded-none":r},{"rounded-r":n,"rounded-l":l});return e("div",{children:e(Le,{...t,className:o,children:t.children})},t.id)})});dt.displayName="ButtonGroup";const mt="relative rounded-lg overflow-hidden shadow bg-cardBackground text-cardText dark:bg-darkCardBackground dark:text-darkCardText group",ut="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-cardBackground text-cardText dark:bg-darkCardBackground dark:text-darkCardText hover:bg-cardBackgroundHover group",ht="transition duration-500 ease-in-out ",pt={replace(t){if("a"===t.name){const a=R(t.attribs);return e(xe,{...a,children:O(t.children,pt)})}if(t.attribs&&"p"===t.name){const a=R(t.attribs);return e(Ue,{...a,children:O(t.children,pt)})}return t}},ft=({testID:t,data:i,align:r,className:n})=>i?e("span",{"data-testid":t||'"HtmlContent"',className:p("relative",{"text-right":"right"===r},{"text-center":"center"===r},{"text-left":"left"===r},n),children:T(i,pt)}):e(a,{});ft.displayName="HtmlContent";const gt={allowMultipleFractions:!0},Nt=[{unit:"years",symbol:"Y"},{unit:"months",symbol:"M"},{unit:"weeks",symbol:"W"},{unit:"days",symbol:"D"},{unit:"hours",symbol:"H"},{unit:"minutes",symbol:"M"},{unit:"seconds",symbol:"S"}],Et=(e,t)=>`((?<${e}>-?\\d*[\\.,]?\\d+)${t})?`,bt=new RegExp(["(?<negative>-)?P",Et("years","Y"),Et("months","M"),Et("weeks","W"),Et("days","D"),"(T",Et("hours","H"),Et("minutes","M"),Et("seconds","S"),")?"].join(""));function At(e){if(""!==e&&null!=e)return parseFloat(e.replace(",","."))}const St=new Error("Invalid duration"),yt=new Error("Multiple fractions specified");function Ct(e,t=gt){const a=bt.exec(e);if(!a||!a.groups)throw St;let i=!0,r=0;const n={};for(const{unit:e}of Nt)if(a.groups[e]&&(i=!1,n[e]=At(a.groups[e]),!t.allowMultipleFractions&&!Number.isInteger(n[e])&&(r++,r>1)))throw yt;if(i)throw St;const l=n;return a.groups.negative&&(l.negative=!0),l}function vt(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}function It(e){const t=L(e),a=[];return t.years&&a.push(`${t.years} years`),t.months&&a.push(`${t.months} months`),t.weeks&&a.push(`${t.weeks} weeks`),t.days&&a.push(`${t.days} days`),t.hours&&a.push(`${t.hours} hours`),t.minutes&&a.push(`${t.minutes} minutes`),t.seconds&&a.push(`${t.seconds} seconds`),a.join(", ")}function Tt(e){if(e&&0!==e.length)return e?.map(e=>e)?.[Math.floor(Math.random()*e?.map(e=>e).length)]}const Rt={isDarkTheme:!1,toggleTheme:()=>{},theme:void 0},Ot=i.createContext(Rt),Lt=({children:t,theme:a})=>e(Ot.Provider,{value:a,children:t}),_t=()=>{const e=d(Ot);if(void 0===e)throw new Error("useThemeContext must be used within a ThemeProvider");return e},xt=m({brand:void 0,header:void 0,footer:void 0,locale:void 0,app:void 0,images:void 0}),wt=({children:t,value:a})=>e(xt.Provider,{value:a,children:t}),Dt=()=>{const e=d(xt);if(void 0===e)throw new Error("useAppContext must be used within a AppProvider");return e},kt=m({config:{region:"eu-west-1",oauth:{},cookieStorage:{}}}),Pt=({children:t,value:a})=>(s(()=>{a.config&&_.configure({Auth:{region:a?.config?.region,userPoolId:a?.config?.userPoolId,userPoolWebClientId:a?.config?.userPoolWebClientId,signUpVerificationMethod:a?.config?.signUpVerificationMethod||"code",oauth:{domain:a?.config?.oauth?.domain,scope:a?.config?.oauth?.scope||["email","profile","openid","aws.cognito.signin.user.admin"],redirectSignIn:a?.config?.oauth?.redirectSignIn,redirectSignOut:a?.config?.oauth?.redirectSignOut,responseType:a?.config?.oauth?.responseType||"code"},cookieStorage:{domain:a?.config?.cookieStorage?.domain,secure:"production"===process.env.NODE_ENV||a?.config?.cookieStorage?.secure}}})},[a.config]),e(kt.Provider,{value:a,children:t})),Mt=m(void 0),Ut=({children:t,data:a})=>e(Mt.Provider,{value:a,children:t}),Ft=()=>{const e=d(Mt);if(void 0===e)throw new Error("useCartContext must be used within a CartProvider");return e},Bt=({id:a,title:i,description:r,image:n,className:l,metaData:o,actions:s,padded:c,scaleOnHover:m,onClick:u,htmlDetails:h,titleOverlay:f})=>{const g=d(xt);return t("div",{id:a,"data-testid":"CardBasic",className:y(p(ht,u?ut:mt,{"p-4":c},{"hover:scale-100":!m},l)),onClick:u,children:[n&&e("div",{className:y(p("relative w-full overflow-hidden aspect-[16/9]",{rounded:c},n.aspectRatio)),children:e(Xe,{fill:!0,src:n?.src??g?.images?.placeholder,sizes:"100vh",alt:n?.alt,className:p("absolute inset-0 object-cover group-hover:scale-110 dura",ht)})}),f&&i&&e("div",{className:"absolute inset-0 w-full h-full z-10 flex items-center justify-center bg-black bg-opacity-30",children:e(qe,{tag:ze.H4,singleLine:!0,flush:!0,className:"text-white",children:i})}),!f&&(i||h||r)&&e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:p({"p-3":!c},{"pt-3":c}),children:[e("div",{children:i&&e(qe,{tag:ze.H4,singleLine:!0,flush:!0,children:i})}),!h&&r&&e("div",{children:e(Ue,{className:"mb-0",children:vt(r)})}),h&&r&&e("div",{children:e(ft,{className:"mb-0",data:vt(r)})}),t("div",{className:"flex items-center justify-between gap-2",children:[o&&e("div",{className:"flex shrink-0 mt-2",children:o.map((a,i)=>1===o.length?e(Ue,{className:"text-xs",as:Me.SMALL,children:a},a):0===i?t(Ue,{className:"text-xs",as:Me.SMALL,children:[a," ·"]},a):i===o.length-1?t(Ue,{className:"text-xs",as:Me.SMALL,children:[" ",a]},a):t(Ue,{className:"text-xs",as:Me.SMALL,children:[" ",a," ·"]},a))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap flex-1 justify-end",children:[s.like&&e(Le,{variant:Te.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.like?.onClick&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(Le,{variant:Te.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.share?.onClick&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(Le,{variant:Te.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.save?.onClick&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(Le,{variant:Te.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.comment?.onClick&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(Le,{variant:Te.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.bookmark?.onClick&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(Le,{variant:Te.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.report?.onClick&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(Le,{variant:Te.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.follow?.onClick&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(Le,{variant:Te.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.download?.onClick&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(Le,{variant:Te.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.edit?.onClick&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(Le,{variant:Te.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.delete?.onClick&&"function"==typeof s.delete.onClick&&s.delete.onClick({id:a})}}),s.custom&&s.custom.map((t,a)=>e("div",{children:t},a))]})]})]})})]})};function Ht(){return d(xt).locale,st}function Gt(){return d(Ot)}Bt.displayName="CardBasic";const Wt=({id:a,title:i,description:r,image:n,className:l,metaData:o,actions:s,onClick:c,playCallback:m,htmlDetails:u,accessRestriced:h})=>{const f=Ht(),g=d(xt);return t("div",{id:a,"data-testid":"CardBasic",className:p(ht,c?ut:mt,l),onClick:c,children:[n&&t("div",{className:p("relative w-full overflow-hidden aspect-[16/9]",n.aspectRatio),children:[e(Xe,{fill:!0,src:n?.src??g?.images?.placeholder,sizes:"100vh",alt:n?.alt,className:p("absolute inset-0 object-cover group-hover:scale-110",ht)}),h&&e("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e(Ue,{bold:!0,transform:De.UPPERCASE,children:f.UI.PURCHASE_TO_ACCESS})}),m&&e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(Le,{variant:Te.PRIMARY,icon:"mdi:play",size:Re.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof m&&m(e)}})})]}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:"p-3",children:[e("div",{children:i&&e(qe,{tag:ze.H5,singleLine:!0,flush:!0,children:i})}),!u&&r&&e("div",{children:e(Ue,{className:"mb-0",children:vt(r)})}),u&&r&&e("div",{children:e(ft,{className:"mb-0",data:vt(r)})}),t("div",{className:"flex items-center justify-between gap-2",children:[o&&e("div",{className:"flex shrink-0",children:o.map((a,i)=>1===o.length?e(Ue,{className:"text-xs",as:Me.SMALL,children:a},a):0===i?t(Ue,{className:"text-xs",as:Me.SMALL,children:[a," ·"]},a):i===o.length-1?t(Ue,{className:"text-xs",as:Me.SMALL,children:[" ",a]},a):t(Ue,{className:"text-xs",as:Me.SMALL,children:[" ",a," ·"]},a))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(Le,{variant:Te.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.like?.onClick&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(Le,{variant:Te.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.share?.onClick&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(Le,{variant:Te.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.save?.onClick&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(Le,{variant:Te.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.comment?.onClick&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(Le,{variant:Te.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.bookmark?.onClick&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(Le,{variant:Te.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.report?.onClick&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(Le,{variant:Te.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.follow?.onClick&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(Le,{variant:Te.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.download?.onClick&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(Le,{variant:Te.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.edit?.onClick&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(Le,{variant:Te.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),s?.delete?.onClick&&"function"==typeof s.delete.onClick&&s.delete.onClick({id:a})}})]})]})]})})]})};Wt.displayName="CardMedia";const Yt=({video:a,isMuted:i=!0,id:r,title:n,description:l,image:o,className:s,metaData:c,actions:d,onClick:m,htmlDetails:u})=>t("div",{id:r,"data-testid":"CardVideo",className:p(ht,m?ut:mt,s),onClick:m,children:[o&&a&&e("div",{className:p("",o.aspectRatio),children:e(D,{videoId:`video--${r}`,playbackStartDelay:1e3,videoSrc:e("source",{src:a,type:"video/mp4"}),videoClassName:p("hls-hover-video w-full aspect-[16/9]",o.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:i,className:p("w-full !block",o.aspectRatio),pausedOverlay:e("div",{className:p("relative w-full aspect-[16/9]",o.aspectRatio),children:e(Xe,{src:o?.src,alt:o?.alt})}),loadingOverlay:e("div",{className:p("w-full flex items-center justify-center aspect-[16/9]",o.aspectRatio),children:e("div",{className:"",children:e(Oe,{color:"#FFF"})})})},`${r}--card`)}),(n||u||l||c||d)&&e("div",{className:"w-full flex flex-col",children:t("div",{className:"p-3",children:[n&&e("div",{children:e(qe,{tag:ze.H5,singleLine:!0,flush:!0,children:n})}),!u&&l&&e("div",{children:e(Ue,{className:"mb-0",children:vt(l)})}),u&&l&&e("div",{children:e(ft,{className:"mb-0",data:vt(l)})}),(c||d)&&t("div",{className:"flex items-center justify-between gap-2",children:[c&&e("div",{className:"flex shrink-0",children:c.map((a,i)=>1===c.length?e(Ue,{className:"text-xs",as:Me.SMALL,children:a},a):0===i?t(Ue,{className:"text-xs",as:Me.SMALL,children:[a," ·"]},a):i===c.length-1?t(Ue,{className:"text-xs",as:Me.SMALL,children:[" ",a]},a):t(Ue,{className:"text-xs",as:Me.SMALL,children:[" ",a," ·"]},a))}),d&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[d.like&&e(Le,{variant:Te.PRIMARY,icon:d.like.isActive?"mdi:like":"mdi:like-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),d?.like?.onClick&&"function"==typeof d.like.onClick&&d.like.onClick({id:r})}}),d.share&&e(Le,{variant:Te.PRIMARY,icon:d.share.isActive?"mdi:share":"mdi:share-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),d?.share?.onClick&&"function"==typeof d.share.onClick&&d.share.onClick({id:r})}}),d.save&&e(Le,{variant:Te.PRIMARY,icon:d.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),d?.save?.onClick&&"function"==typeof d.save.onClick&&d.save.onClick({id:r})}}),d.comment&&e(Le,{variant:Te.PRIMARY,icon:d.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),d?.comment?.onClick&&"function"==typeof d.comment.onClick&&d.comment.onClick({id:r})}}),d.bookmark&&e(Le,{variant:Te.PRIMARY,icon:d.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),d?.bookmark?.onClick&&"function"==typeof d.bookmark.onClick&&d.bookmark.onClick({id:r})}}),d.report&&e(Le,{variant:Te.PRIMARY,icon:d.report.isActive?"mdi:flag":"mdi:flag-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),d?.report?.onClick&&"function"==typeof d.report.onClick&&d.report.onClick({id:r})}}),d.follow&&e(Le,{variant:Te.PRIMARY,icon:d.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),d?.follow?.onClick&&"function"==typeof d.follow.onClick&&d.follow.onClick({id:r})}}),d.download&&e(Le,{variant:Te.PRIMARY,icon:d.download.isActive?"mdi:download":"mdi:download-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),d?.download?.onClick&&"function"==typeof d.download.onClick&&d.download.onClick({id:r})}}),d.edit&&e(Le,{variant:Te.PRIMARY,icon:d.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),d?.edit?.onClick&&"function"==typeof d.edit.onClick&&d.edit.onClick({id:r})}}),d.delete&&e(Le,{variant:Te.PRIMARY,icon:d.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Re.SMALL,onClick:e=>{e.stopPropagation(),d?.delete?.onClick&&"function"==typeof d.delete.onClick&&d.delete.onClick({id:r})}})]})]})]})})]});Yt.displayName="CardVideo";const Vt=({id:a,title:i,subtitle:r,description:n,icon:l,className:o,onClick:s,moreTitle:c,align:d})=>t("div",{id:a,"data-testid":"CardIcon",className:y(p(ht,s?ut:mt,"p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===d},{"items-center":"center"===d},{"items-end":"right"===d},o)),children:[l&&e("div",{className:p("relative"),children:e(Ce,{name:l,size:48})}),t("div",{className:p({"text-left":"left"===d},{"text-center":"center"===d},{"text-right":"right"===d}),children:[t("div",{children:[i&&e(qe,{tag:ze.H5,singleLine:!0,children:i}),r&&e(Ue,{bold:!0,children:r})]}),e("div",{children:n&&e(Ue,{align:d,children:n})})]}),s&&e(Le,{variant:Te.LINK,onClick:s,className:"absolute left-0 top-0 w-full h-full cursor-pointer border border-solid",children:c})]});Vt.displayName="CardIcon";const zt=({testID:a,id:i,title:r,description:n,image:l,onClick:o,className:s,padded:c,icon:d,raised:m=!0,htmlDetails:u})=>t("div",{id:i,"data-testid":a||"CardHorz",className:p("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":c},{"shadow hover:shadow-lg":m},ht,o?ut:mt,s),onClick:o,children:[l&&e("div",{className:"w-1/3 aspect-[1/1]",children:e("div",{className:y(p("relative w-full overflow-hidden h-full",l.aspectRatio)),children:e(Xe,{fill:!0,src:l?.src,alt:l?.alt,className:"absolute inset-0 object-cover"})})}),d&&!l&&e("div",{className:"py-2 pl-2",children:e(Ce,{name:d,size:30})}),e("div",{className:"flex flex-1 overflow-hidden h-min",children:t("div",{className:"flex-col gap-2 py-2 pr-2 overflow-hidden",children:[r&&e("div",{className:"",children:e(qe,{tag:ze.H4,children:r})}),!u&&n&&e("div",{children:e(Ue,{className:"mb-0",children:vt(n)})}),u&&n&&e("div",{children:e(ft,{className:"mb-0",data:vt(n)})})]})})]});zt.displayName="CardHorz";const jt=({testID:i,className:r,data:n,padded:l=!0,shadow:o=!0})=>{const c=E(0);return s(()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||N(c,200,{duration:.5})},[c]),n?e("div",{"data-testid":i||"CardData",className:y(p(ht,mt,{"p-4":l},{shadow:o},r)),children:t("div",{className:"min-w-[110px] flex flex-col flex-1 items-center justify-center",children:[n?.animateNumber&&t("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e(ye,{from:n.numberData.from,to:n.numberData.to,numDecimals:n.numberData.numDecimals}),e("span",{children:n?.item})]}),!n?.animateNumber&&e("div",{className:"text-lg",children:e(qe,{tag:ze.H2,flush:!0,children:n?.item})}),e("div",{className:"flex flex-1 items-center justify-center",children:e(Ue,{className:"mb-0",children:n?.label})})]})}):e(a,{})};jt.displayName="CardData";const Kt=({variant:t,className:a,data:i,...r})=>{switch(t){case"basic":default:return e(Bt,{className:a,...i,...r});case"media":return e(Wt,{className:a,...i,...r});case"video":return e(Yt,{className:a,...i,...r});case"icon":return e(Vt,{className:a,...i,...r});case"horz":return e(zt,{className:a,...i,...r});case"data":return e(jt,{className:a,...i,...r})}};Kt.displayName="Card";const qt=({text:i,flush:r,tag:n=ze.H1,colorOverride:l})=>{const o=i?.split(" ");return e("div",{"data-testid":"DisplayHeading",className:p("relative display-heading-wrapper",l),children:e(qe,{tag:n,flush:r,className:"font-display font-extrabold",children:o.map((i,r)=>{const n=o.length>1&&r===o.length-1,s=`${i}-${r}`;return t("span",{children:[e("span",{className:p({"display-heading relative":!n},{"inline-block relative":n}),children:t(a,{children:[n&&t(a,{children:[e("div",{className:"display-heading--emphasis z-0"}),e("span",{className:p("display-heading--lastword relative",l),children:i})]}),!n&&e("span",{className:"relative z-10",children:i})]})}),!n&&" "]},s)})})})};qt.displayName="DisplayHeading";const $t=({children:a,className:i,submit:n,onSubmit:l=()=>{},onChange:o,hideSubmit:c,ariaSubmitLabel:d,submitID:m,submitVariant:u=Te.PRIMARY,initialValues:h={},isBoxed:f=!1,submitType:g=Ie.SUBMIT,disabledSubmitWithReturn:N=!0,isDisabled:E=!1})=>{const b=k({defaultValues:h,mode:"onBlur",reValidateMode:"onChange"}),A=r(h);s(()=>{JSON.stringify(A.current)!==JSON.stringify(h)&&(b.reset(h),A.current=h)},[h]),s(()=>{if(o&&"function"==typeof o){const e=b.watch((e,t)=>{o(e,t)});return()=>e.unsubscribe()}},[]);const S=p({"sr-only":c}),{formState:{isSubmitting:y,isDirty:C,isValid:v}}=b;return e(P,{...b,children:e("div",{"data-testid":"Form",className:p("w-full max-w-s @containers @form"),children:t("form",{onSubmit:b.handleSubmit(l),onKeyDown:e=>{N&&"Enter"===e.key&&e.preventDefault()},className:p("w-2xs relative",{"form px-8 pt-6 pb-8 ":f},{"opacity-50":y},i),children:[a,n&&e("div",{className:"flex items-center justify-end",children:e(Le,{id:m||n,className:S,ariaLabel:d||n||"Submit",type:g,outline:!0,isLoading:y,disabled:y||!v||E,variant:u,children:n})})]})})})};var Xt;$t.displayName="Form",function(e){e.TEXT="text",e.TEXTAREA="textarea",e.SELECT="select",e.CHECKBOX="checkbox",e.RADIO="radio",e.SWITCH="switch",e.DATE="date",e.TIME="time",e.DATETIME="datetime",e.FILE="file",e.PASSWORD="password",e.EMAIL="email",e.NUMBER="number",e.TEL="tel",e.URL="url",e.SEARCH="search",e.HIDDEN="hidden"}(Xt||(Xt={}));const Qt=i.forwardRef(function({id:a,name:i,options:r,required:n,className:l,disabled:o,...s},c){if(!r)throw new Error("FormSelect requires options prop");return e("div",{id:a,className:p("pb-2 min-w-20",l),children:t("div",{className:"relative",children:[e("select",{ref:c,name:i,disabled:o,required:n,className:"form-item text-input pr-10",...s,children:r.map((t,a)=>e("option",{value:t?.value?.toString(),disabled:t.disabled,className:"bg-bodyBackground dark:bg-darkBodyBackground",children:t.label},`${t?.value?.toString()}--${a}`))}),e("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(Ce,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})});Qt.displayName="FormSelect";const Zt=({name:a,type:i,label:r,required:n,className:l,icon:o,options:s,disabled:d,description:m,showPasswordLabel:u,hidePasswordLabel:h,validations:f={},fileUploadCallback:g=()=>{},autoComplete:N})=>{const[E,b]=c(!1),{control:A,formState:S}=M(),{errors:y}=S,C=r&&i!==Xt.CHECKBOX,v=n||Boolean(f.required)?`${r} *`:r;return e("div",{className:"relative",children:t("div",{"data-testid":"FormField",className:"mb-4",children:[C&&e("div",{className:"flex items-baseline justify-between",children:e(Qe,{id:a,children:v})}),e("div",{className:"mb-1",children:e(U,{defaultValue:"",name:a,control:A,rules:f,render:({field:c})=>((i,c)=>{switch(i){case Xt.HIDDEN:return e("input",{type:lt.HIDDEN,disabled:d,...c});case Xt.TEXT:return e(ot,{type:lt.TEXT,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:N,...c});case Xt.PASSWORD:{const a=E?lt.TEXT:lt.PASSWORD,i="appearance-none border-none bg-transparent flex items-center";return t("div",{className:"relative",children:[e("span",{className:"absolute right-0 top-0 flex items-center justify-center h-full z-10 pr-2",onClick:()=>b(e=>!e),role:"button",tabIndex:0,children:e("button",E?{type:"button","aria-label":h,className:p(i,"form-icon"),children:e(Ce,{name:"mdi:eye-off",size:24})}:{type:"button","aria-label":u,className:p(i,"form-icon"),children:e(Ce,{name:"mdi:eye",size:24})})}),e(ot,{type:a,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:N,...c})]})}case Xt.TEXTAREA:return e(ot,{type:lt.TEXTAREA,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.EMAIL:return e(ot,{type:lt.EMAIL,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:N,...c});case Xt.DATE:return e(ot,{type:lt.DATE,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.DATETIME:return e(ot,{type:lt.DATETIME,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.NUMBER:return e(ot,{type:lt.NUMBER,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.CHECKBOX:return e(_e,{required:n||Boolean(f.required),id:a,className:l,label:r,disabled:d,...c});case Xt.RADIO:return e(rt,{required:n||Boolean(f.required),id:a,className:l,options:s,disabled:d,...c});case Xt.SWITCH:return e(nt,{id:a,required:n||Boolean(f.required),className:l,disabled:d,...c});case Xt.SELECT:return e(Qt,{required:n||Boolean(f.required),id:a,className:l,disabled:d,label:r,options:s,...c});case Xt.FILE:return e(Ve,{required:n||Boolean(f.required),id:a,className:l,disabled:d,onChangeCallback:e=>{g(e)},...c});default:return e(ot,{type:lt.TEXT,required:n||Boolean(f.required),disabled:d,icon:o,className:l,...c})}})(i,c)})}),m&&e("div",{className:"formfield-description",children:e(Ue,{size:Pe.SMALL,className:"mb-0",children:m})}),y[a]&&e("div",{className:"formfield-error text-error italic",children:e(Ue,{size:Pe.SMALL,className:"mb-0",children:y?.[a]?.message?.toString()})})]})})};Zt.displayName="FormField";const Jt=({testID:a,url:i,title:r="Share",enabled:n={facebook:!0,twitter:!0}})=>t("div",{"data-testid":a||"Share",className:"flex gap-2 items-center ",children:[e("div",{children:t(Ue,{as:Me.P,className:"mb-0",children:[st.UI.SHARE,":"]})}),n?.facebook&&e(F,{url:i,title:r,className:"",children:e(Ce,{name:"mdi:facebook"})}),n?.twitter&&e(B,{url:i,title:r,className:"",children:e(Ce,{name:"mdi:twitter"})}),n?.whatsapp&&e(H,{url:i,title:r,className:"",children:e(Ce,{name:"mdi:whatsapp"})}),n?.email&&e(G,{url:i,title:r,className:"",children:e(Ce,{name:"mdi:email"})}),n?.linkedin&&e(W,{url:i,title:r,className:"",children:e(Ce,{name:"mdi:linkedin"})})]});Jt.displayName="Share";const ea=({data:i})=>{const[r,n]=c(0);return i?e("div",{"data-testid":"Tabs",children:t(Y,{onSelect:e=>n(e),children:[e(V,{className:"mb-8 flex p-0",children:i.map((t,a)=>e(z,{className:p("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":r!==a,"border-primary border-solid border-0 border-b-2":r===a}),children:e(Ue,{className:"m-0 text-center",children:t.title})},a))}),i.map((t,a)=>e(j,{className:"",children:t.content},a))]})}):e(a,{})};ea.displayName="Tabs";const ta=({testID:a,facebook:i,twitter:r,instagram:n,linkedin:l,youtube:o})=>t("div",{"data-testid":a||'"VisitUs"',className:"flex gap-2",children:[i&&e(Le,{variant:Te.PRIMARY,size:Re.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(i.url)}),r&&e(Le,{variant:Te.PRIMARY,size:Re.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(r.url)}),n&&e(Le,{variant:Te.PRIMARY,size:Re.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(n.url)}),l&&e(Le,{variant:Te.PRIMARY,size:Re.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(l.url)}),o&&e(Le,{variant:Te.PRIMARY,size:Re.MEDIUM,icon:"mdi:youtube",onClick:()=>window.open(o.url)})]});ta.displayName="VisitUs";const aa=({testID:a,title:i,links:r,inline:n=!0,separators:l=!1,className:o})=>t("div",{"data-testid":a||'"Menu"',className:y(p("flex flex-col gap-2",o)),children:[i&&e("div",{children:e(qe,{tag:ze.H3,children:i})}),e("div",{className:p("flex gap-0 items-center md:items-start",{"flex-col md:flex-row ":n},{"flex-col ":!n}),children:r?.map((a,i)=>{const n=`${a.id}--${i}`;return t("div",{className:"flex gap-0",children:[e("div",{className:"relative py-2",children:t(xe,{href:a.url,className:"flex gap-1",children:[a.icon&&e(Ce,{name:a.icon}),a.title&&e("div",{children:a.title})]})}),l&&i+1<r.length&&e("div",{className:"h-full hidden md:flex self-center px-2",children:e(Ce,{name:"mdi:dot",className:"opacity-50"})})]},n)})})]});var ia;aa.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(ia||(ia={}));const ra=({children:t,className:a,spacing:i,padded:r,isNarrow:n,isCentered:l,isFlush:o,direction:s=ia.COLUMN})=>{const c=y(p("container relative mx-auto my-0",{"px-2 md:px-4 lg:px-4":r},{"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":n},{"flex items-center justify-center flex-col flex-1":l},{"px-0 max-w-full mx-0":o},{"flex flex-col":s===ia.COLUMN},{"flex-row":s===ia.ROW})),d=p("w-full h-full",a);return e("div",{"data-testid":"Container",className:c,children:e("div",{className:d,children:t})})};ra.displayName="Container";const na=({testID:a,children:i,withBg:r=!0,inversed:n=!1})=>t("div",{"data-testid":a||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[r&&e("div",{className:p("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":!n,"-top-24 left-0":n})}),e(ra,{children:i})]});na.displayName="Hero";const la=({testID:a,bgAsset:i,focalAsset1:n,focalAsset2:l,focalAsset3:o})=>{r(null);const s={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 t("div",{"data-testid":a||"AnimationSet1",className:p("relative w-full h-full"),children:[i&&e(b.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(Xe,{src:i.src,alt:i.alt,fill:!0})}),(n||l)&&t(b.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(b.div,{className:"absolute aspect-[9/18] right-4 top-8 w-[170px] md:right-4 md:top-8 md:w-[130px] lg:right-0 lg:top-8 lg:w-[190px] xl:right-16 xl:top-16 xl:w-[250px] ",initial:s,animate:c,children:e(Xe,{src:n.src,alt:n.alt,fill:!0})}),l&&e(b.div,{className:"absolute aspect-[9/18] left-0 top-2 w-[200px] md:left-0 md:top-2 md:w-[150px] lg:left-4 lg:top-0 lg:w-[210px] xl:left-0 xl:top-0 xl:w-[300px]",initial:s,animate:{...c,transition:{...c.transition,delay:.3}},children:e(Xe,{src:l.src,alt:l.alt,fill:!0})})]}),o&&e("div",{className:"absolute aspect-[0.5/1] flex flex-col flex-nowrap p-0 z-20 items-end justify-end w-1/3 top-0 left-4 xl:w-1/4 xl:top-16 xl:left-12",children:e(b.div,{className:"relative w-full overflow-visible aspect-[1.2/1] bg-bodyBackground shadow-lg rounded-lg p-0",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(Xe,{src:o.src,fill:!0,alt:o.alt})})})]})};la.displayName="AnimationSet1";const oa=process.env.AWS_COGNITO_USERPOOL_DOMAIN||process.env.NEXT_PUBLIC_AWS_COGNITO_USERPOOL_DOMAIN,sa=process.env.AWS_COGNITO_CLIENT_ID||process.env.NEXT_PUBLIC_AWS_COGNITO_CLIENT_ID,ca=process.env.AWS_COGNITO_REDIRECT_URI||process.env.NEXT_PUBLIC_AWS_COGNITO_REDIRECT_URI,da=oa&&sa&&ca?`https://${oa}/oauth2/authorize?client_id=${sa}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${ca}`:void 0,ma=oa&&sa&&ca?`https://${oa}/oauth2/authorize?client_id=${sa}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${ca}`:void 0,ua={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},ha={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."}},pa=e=>{try{const t=e,a=q(t),i=$(t),r=X(t);return a&&i&&r?void 0:"Not a valid phone number"}catch(e){return"Not a valid phone number"}},fa=({handleSubmit:i,initialValues:r,handleTokenCallback:n,showSocialButtons:l=!1,className:o})=>{const c=Ht();s(()=>x.listen("auth",({payload:{event:e,data:t}})=>{switch(e){case"signIn":n&&"function"==typeof n&&n(t.signInUserSession);break;case"signOut":Q.success("You have been signed out")}}),[]);const d=async e=>{try{w.federatedSignIn({provider:e})}catch(e){console.log(e),Q.error(e.message||c?.ERRORS?.GENERIC_ERROR)}};return t("div",{"data-testid":"LoginForm",className:p("form-wrapper",o),children:[t($t,{onSubmit:i,submit:st.FORMS.LOGIN_FORM.SUBMIT,initialValues:r,children:[e(Zt,{name:"email",type:Xt.EMAIL,label:st.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:ua,autoComplete:"email"}),e(Zt,{name:"password",type:Xt.PASSWORD,label:st.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),l&&t(a,{children:[e($e,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[da&&e(Le,{onClick:()=>d(K.Google),variant:Te.PRIMARY,iconFirst:!0,icon:"mdi:google",children:st.UI.LOGIN_WITH_GOOGLE}),ma&&e(Le,{onClick:()=>d(K.Apple),variant:Te.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:st.UI.LOGIN_WITH_APPLE})]})})]})]})};fa.displayName="LoginForm";const ga=({handleSubmit:i,handleTokenCallback:r,showSocialButtons:n=!1,className:l})=>{const o=Ht();s(()=>x.listen("auth",({payload:{event:e,data:t}})=>{if("signUp"===e)r&&"function"==typeof r&&r(t.signInUserSession)}),[]);const c=async e=>{try{w.federatedSignIn({provider:e})}catch(e){console.log(e),Q.error(e.message||o?.ERRORS?.GENERIC_ERROR)}};return t("div",{"data-testid":"RegisterForm",className:p("form-wrapper",l),children:[t($t,{onSubmit:i,submit:st.FORMS.REGISTER_FORM.SUBMIT,children:[e(Zt,{name:"email",type:Xt.EMAIL,label:st.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:ua,autoComplete:"email"}),e(Zt,{name:"password",type:Xt.PASSWORD,label:st.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:st.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:ha,autoComplete:"new-password"})]}),n&&t(a,{children:[e($e,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(Le,{onClick:()=>c(K.Google),variant:Te.PRIMARY,iconFirst:!0,icon:"mdi:google",children:st.UI.SIGNUP_WITH_GOOGLE}),e(Le,{onClick:()=>c(K.Apple),variant:Te.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:st.UI.SIGNUP_WITH_APPLE})]})})]})]})};ga.displayName="RegisterForm";const Na=({handleSubmit:t})=>e("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e($t,{onSubmit:t,submit:st.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,children:e(Zt,{name:"email",type:Xt.EMAIL,label:st.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:ua})})});Na.displayName="ForgotPasswordForm";const Ea=({loginSubmit:a,registerSubmit:i,passwordForgotSubmit:r,handleTokenCallback:n,showSocialLogin:l=!1})=>{const[o,s]=c(!1);return t("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-[550px] mb-8",children:[!o&&e(ea,{data:[{title:"Login",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(fa,{handleSubmit:a,showSocialButtons:l,handleTokenCallback:n,className:"w-full"}),e("div",{className:"mt-4",children:e(Le,{variant:Te.LINK,onClick:()=>s(!o),children:o?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e("div",{className:"flex flex-col gap-4 items-center",children:e(ga,{handleSubmit:i,showSocialButtons:l,handleTokenCallback:n,className:"w-full"})})}]}),o&&e(ea,{data:[{title:"Forgot Password",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(Na,{handleSubmit:r}),e("div",{className:"mt-4",children:e(Le,{variant:Te.LINK,onClick:()=>s(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};function ba({className:t,onClick:a}){return e(Le,{className:"absolute -right-2 top-1/2 -translate-y-1/2 z-10",onClick:a,icon:"mdi:navigate-next",rounded:!0})}function Aa({className:t,onClick:a}){return e(Le,{className:"absolute -left-2 top-1/2 -translate-y-1/2 z-10",onClick:a,icon:"mdi:navigate-before",rounded:!0})}Ea.displayName="Authenticator";const Sa=({testID:t,data:a,onPressCallback:i,isCentered:r=!1,carouselOptions:n={loop:!1,slidesToShow:5,scrollAnimationDuration:500,showDots:!1,showArrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:5}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}],easing:"linear"},customRender:l})=>{const o=!n?.slidesToShow||a.length<=n.slidesToShow;return e("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e(Z,{arrows:!o&&n.showArrows,nextArrow:e(ba,{}),prevArrow:e(Aa,{}),centerMode:r,responsive:n.responsive,slidesToScroll:1,slidesToShow:n.slidesToShow,dots:!o&&n.showDots,infinite:!o&&n.loop,autoplay:n.autoPlay,autoplaySpeed:n.autoplaySpeed||0,vertical:n.vertical,easing:n.easing||"linear",cssEase:n.easing||"linear",speed:n.scrollAnimationDuration,...n,children:l?a.map((e,t)=>l(e,t)):a.map((t,a)=>((t,a)=>e("div",{className:"px-2",children:e(Kt,{variant:t.variant,data:{...t.data,onClick:i?()=>{i(t.data.id)}:void 0},className:t.className},a)},a))(t,a))})})};var ya;Sa.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"}(ya||(ya={}));const Ca=({testID:a,cardData:i,title:n,description:l,withSeparators:o,spacing:s=ya.MODULE})=>{const c=r(null),d=f(c,{once:!0}),m=i?.length%2==0,u=`lg:grid-cols-${i?.length>4?4:i?.length}`,h=m?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-1 lg:grid-cols-3";return t("div",{ref:c,"data-testid":a||"PanelCards",className:p("relative m-auto px-4 lg:px-0 w-full flex flex-col flex-none flex-nowrap",s),children:[(n||l)&&t("div",{className:"relative text-center py-8",children:[n&&e(qt,{text:n}),l&&e("div",{className:"mt-2",children:e(Ue,{align:we.CENTER,children:l})})]}),e("div",{className:y(p("gap-4 md:gap-4 lg:gap-8 items-center md:items-start justify-center w-full m-auto grid",h,u)),children:i?.map((t,a)=>e("div",{className:"flex gap-8 justify-between items-center",children:e("div",{className:p("relative flex flex-1 items-center justify-center",{"":o}),style:{transform:d?"none":"translateY(200px)",opacity:d?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*a}s`},children:e(Kt,{...t})})},`card-${a}`))})]})};Ca.displayName="PanelCards";const va=({testID:a,title:i,description:r,inversed:n,assets:l,buttonData:o,withBg:s=!0,spacing:c=ya.DEFAULT,chips:d})=>t("div",{"data-testid":a||"PanelFeature",className:p("relative m-auto w-full flex flex-none flex-nowrap px-4 lg:px-0",c),children:[s&&e("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(ra,{children:t("div",{className:p("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":n}),children:[t("div",{className:"w-full md:w-1/2 flex flex-col items-start justify-center gap-8",children:[e("div",{className:"relative text-center md:text-left",children:e(qt,{text:i,flush:!0})}),e("div",{className:"relative text-center md:text-left",children:e(Ue,{className:"mb-0",children:r})}),d&&e("div",{className:"grid grid-cols-3 gap-2 mx-auto md:mx-0",children:d?.map((t,a)=>e(Fe,{rounded:!0,iconFirst:!0,text:t.text,icon:t.icon,variant:t.variant},`chip-${a}`))}),e("div",{className:"mx-auto md:m-0",children:e(Le,{...o})})]}),e("div",{className:"w-full md:w-1/2 flex items-center justify-center",children:e("div",{className:"w-full aspect-[1/1] flex items-center justify-center",children:e(la,{bgAsset:l.bgAsset,focalAsset1:l.focalAsset1,focalAsset2:l.focalAsset2,focalAsset3:l.focalAsset3})})})]})})]});va.displayName="PanelFeature";const Ia=n(function({url:t,sources:a,onReady:i,onExitFullScreenCallback:n,className:o,options:c={playsinline:!0,preferFullWindow:!0},isYoutube:d=!1,defaultAudioTrack:m="No Music",rounded:h=!0,aspectRatioValue:f,isModal:g=!1},N){const E=r(null),b=r(null),A=r(null),S=l(()=>{switch(f){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]"}}},[f]);return s(()=>{if(d)return;const e={autoplay:!0,controls:!0,muted:!1,playsInline:!0,preferFullWindow:!0,responsive:!0,fill:!0,fluid:!g,controlBar:{skipButtons:ee?{}:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}},...c,sources:a};if(A.current){const e=A.current;e.autoplay(c.autoplay),e.src(c.sources)}else{const t=document.createElement("video-js");b?.current?.appendChild(t);const a=A.current=te(t,e,()=>{te.log("player is ready",a),i&&i(a)});e.onPlay&&"function"==typeof e.onPlay&&a.on("play",e.onPlay),e.onPause&&"function"==typeof e.onPause&&a.on("pause",e.onPause),e.onEnded&&"function"==typeof e.onEnded&&a.on("ended",e.onEnded),a.on("loadedmetadata",function(){const e=a.audioTracks();for(let t=0;t<e.length;t++)e[t].label===m&&(e[t].enabled=!0)}),a.on("fullscreenchange",function(){a.isFullscreen()?console.log("Player is in fullscreen"):(console.log("Player is not in fullscreen"),n&&"function"==typeof n&&n())})}},[c,b]),u(N,()=>({play:()=>{A.current&&A.current.play()},pause:()=>{A.current&&A.current.pause()},fullscreen:()=>{A.current&&A.current.requestFullscreen()}})),s(()=>{if(d)return;const e=A.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),A.current=null)}},[A]),e("div",d&&t?{"data-testid":"Video",className:p("relative w-full h-full aspect-[16/9]",o),children:e(J,{ref:E,className:"react-player",url:t,width:"100%",height:"100%",controls:!0,onReady:i,config:{youtube:{playerVars:{modestbranding:1,disablekb:1}}}})}:g?{ref:b,className:"relative w-full h-full"}:{className:y(p("relative w-full overflow-hidden h-full object-cover",{rouded:h},S.className,o)),children:e("div",{"data-vjs-player":!0,children:e("div",{ref:b,className:p("object-cover bg-black flex items-center justify-center",S.className)})})})});Ia.displayName="Video";const Ta=({testID:a,title:i,contentComponent:n,description:o,image:c,buttonData:d,inversed:m=!1,withBg:u=!0,spacing:h,video:g,headingTag:N,className:E})=>{const S=A(),C=r(null),v=f(C),I={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};s(()=>{v&&S.start(e=>({transform:"none",transition:{...I,delay:.1*e}}))},[S,v]);const T=l(()=>{switch(g?.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]"}},[g]),R=m?"translateX(100px)":"translateX(-100px)";return t("div",{"data-testid":a||"PanelHero",className:y(p("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",h,E)),children:[u&&e("div",{className:p("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] bg-gradient-to-b md:bg-gradient-to-r from-lowContrast to-lowContrast dark:from-darkLowContrast dark:to-darkLowContrast z-0",{"-bottom-24 right-0":!m,"-top-24 left-0":m})}),e(ra,{children:t("div",{className:p("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":m}),children:[e("div",{ref:C,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:t("div",{className:p("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":!m},{"text-left bg-gradient-to-t md:bg-gradient-to-r":m}),children:[e(b.div,{initial:{transform:R},custom:0,animate:S,children:e(qt,{text:i,tag:N})}),n&&e(b.div,{initial:{transform:R},custom:1,animate:S,children:n}),o&&e(b.div,{initial:{transform:R},custom:1,animate:S,children:e(ft,{className:"mb-0",align:m?we.LEFT:we.RIGHT,data:o})}),d&&e(b.div,{initial:{transform:R},custom:2,animate:S,children:e("div",{className:p("flex items-center",{"justify-end":!m,"justify-start":m}),children:e(Le,{...d})})})]})}),e("div",{className:"relative w-full md:w-1/2 z-0",children:t("div",{className:p("relative md:scale-[1.35] rounded overflow-hidden shadow",T),children:[c&&e(Xe,{src:c,alt:i,fill:!0}),g&&e(Ia,{sources:g.sources,options:{autoplay:!0,muted:!0,controls:!1,loop:!0,playsinline:!0},aspectRatioValue:g.aspectRatioValue})]})})]})})]})};Ta.displayName="PanelHero";const Ra=({testID:a,title:i,description:r,image1:n,image2:l,iosLink:o="#",androidLink:s="#",inversed:c=!1,withBg:d=!0,spacing:m=ya.MODULE})=>t("div",{"data-testid":a||"PanelFeature",className:p("relative m-auto w-full flex flex-none flex-nowrap",m),children:[d&&e("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(ra,{children:t("div",{className:p("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-tertiary300 dark:bg-secondary rounded p-8 shadow",{"flex-row-reverse":c}),children:[t("div",{className:"w-full md:w-1/2 top-0 relative",children:[e("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-0 xl:-top-1/4",children:e(Xe,{src:l,alt:i})}),e("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-12 xl:-top-1/3",children:e(Xe,{src:n,alt:i})})]}),t("div",{className:"w-full md:w-1/2",children:[e("div",{children:e(qt,{text:i})}),e("div",{children:e(Ue,{children:r})}),t("div",{className:"flex items-center justify-start gap-4",children:[e("div",{className:"relative w-[150px] h-[50px]",children:e(xe,{href:o,target:"_blank",hideExternalIcon:!0,children:e(Xe,{src:"https://apple-resources.s3.amazonaws.com/media-badges/download-on-the-app-store/black/en-us.svg",alt:"App Store"})})}),e("div",{className:"relative w-[190px] h-[75px]",children:e(xe,{href:s,target:"_blank",hideExternalIcon:!0,children:e(Xe,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});Ra.displayName="PanelProduct";const Oa=({testID:a,className:i,title:r,description:n,spacing:l=ya.NONE,videoProps:o})=>t("div",{"data-testid":a||'"PanelVideo"',className:y(p("relative w-full overflow-hidden",`md:aspect-[${o.aspectRatioValue}]`,l,i)),children:[e(Ia,{rounded:!1,className:"xl:max-h-[750px]",aspectRatioValue:o.aspectRatioValue,options:{autoplay:!0,muted:!0,controls:!1,loop:!0,playsinline:!0,preferFullWindow:!1,...o?.options},sources:o?.sources}),t("div",{className:"absolute top-0 left-0 w-full h-full z-10",children:[e("div",{className:"absolute top-0 left-0 w-full h-full bg-gradient-to-r from-black to-black md:from-transparent md:to-black opacity-50"}),t("div",{className:"absolute top-0 right-2 lg:right-4 w-full md:w-3/4 h-full flex flex-col items-end justify-center text-white pt-8 lg:pt-0 text-right",children:[r&&e(b.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("div",{children:e(qt,{text:r,colorOverride:"text-white before:bg-white border-white"})})}),n&&e(b.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("div",{children:e(Ue,{children:n})})})]})]})]});Oa.displayName="PanelVideo";const La=({testID:a,title:i,description:n,image:l,buttonData:o,inversed:c=!1,withBg:d=!0,spacing:m,video:u,headingTag:h,className:g,bgImage:N})=>{const E=A(),S=r(null),C=f(S),v={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};s(()=>{C&&E.start(e=>({transform:"none",transition:{...v,delay:.1*e}}))},[E,C]);const I="translateY(100px)";return t("div",{"data-testid":a||"PanelIntro",className:y(p("relative m-auto w-full flex flex-none flex-nowrap py-24 sm:py-32 md:py-48 lg:py-56",m,g)),children:[d&&e("div",{className:p("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-30 bg-gradient-to-b md:bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!c,"-top-24 left-0":c})}),N&&t("div",{className:"absolute inset-0 z-0",children:[e(Xe,{src:N,alt:i,className:"object-cover opacity-50"}),e("div",{className:"absolute inset-0 bg-gradient-to-t from-bodyBackground to-transparent"})]}),e(ra,{children:t("div",{className:"relative flex flex-col gap-4 items-center justify-center",children:[e("div",{ref:S,className:"px-4 md-px-0",children:t("div",{className:"flex flex-col gap-4 items-center justify-center",children:[e(b.div,{initial:{transform:I},custom:0,animate:E,children:e(qt,{text:i,tag:h})}),n&&e(b.div,{initial:{transform:I},custom:1,animate:E,children:e(ft,{className:"mb-0",align:we.CENTER,data:n})}),o&&e(b.div,{initial:{transform:I},custom:2,animate:E,children:e("div",{className:"flex items-center",children:e(Le,{...o})})})]})}),(l||u)&&e("div",{className:"relative w-full md:w-1/2 z-0",children:t("div",{className:"relative scale-[1.35] rounded overflow-hidden shadow aspect-[16/9] mt-20",children:[l&&e(Xe,{src:l,alt:i,fill:!0}),u&&e(Ia,{sources:u.sources,options:{autoplay:!0,muted:!0,controls:!1,loop:!0},aspectRatioValue:u.aspectRatioValue})]})})]})})]})};La.displayName="PanelIntro";const _a=({testID:a,withBg:i=!0,spacing:r,className:n,children:l,title:o,headingTag:s})=>t("div",{"data-testid":a||"PanelCustom",className:y(p("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",r,n)),children:[i&&e("div",{className:"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"}),e(ra,{children:t("div",{className:"relative flex flex-col gap-4 items-center justify-center",children:[e(qt,{text:o,tag:s}),l&&e("div",{children:l})]})})]});var xa;_a.displayName="PanelCustom",function(e){e.BASIC="basic",e.MEDIA="media",e.VIDEO="video",e.ICON="icon",e.HORZ="horz",e.DATA="data"}(xa||(xa={}));const wa=({testID:t,cols:a})=>{const i=r(null),n="aspect-[9/16]";return e("div",{ref:i,"data-testid":t||"PanelScroller",className:"relative",children:e("div",{className:p("grid gap-0 grid-cols-2",{"md:grid-cols-2":2===a.length},{"md:grid-cols-3":3===a.length},{"md:grid-cols-4":4===a.length},{"md:grid-cols-5":5===a.length},{"md:grid-cols-6":6===a.length}),children:a.map((t,a)=>{const i=a%2==0;return e("div",{className:"relative",children:e(Sa,{data:t?.images?.map((e,t)=>({variant:xa.BASIC,data:{id:`image-${t}`,image:{src:e,alt:`Image ${t+1}`,aspectRatio:n},scaleOnHover:!1},className:n})),carouselOptions:{slidesToShow:1,vertical:!0,loop:!0,autoPlay:!0,scrollAnimationDuration:1e4,rtl:i,autoplaySpeed:100*a}})},a)})})})};wa.displayName="PanelScroller";const Da=({testID:t,data:a,onPressCallback:i})=>e("div",{"data-testid":t||'"CardGrid"',className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:a.map((t,a)=>e(Kt,{variant:t.variant,data:{...t.data,onClick:()=>i(t.data.id)}},a))});Da.displayName="CardGrid";const ka=({handleSubmit:t=()=>{}})=>{const a=Ht();return e("div",{"data-testid":"PromoCodeForm",className:"form-wrapper",children:e($t,{onSubmit:t,submit:a?.FORMS?.PROMO_CODE_FORM?.SUBMIT,children:e(Zt,{name:"promoCode",type:Xt.TEXT,label:a?.FORMS?.PROMO_CODE_FORM?.PROMO_CODE})})})};ka.displayName="PromoCodeForm";const Pa=({testID:i,isCheckout:n})=>{const l=Ft(),o=Ht(),[d,m]=c(!1),u=r(null),h=l?.value?.promoCode?.code,f=e=>{u.current&&!u.current.contains(e.target)&&m(!1)};return s(()=>(document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}),[]),t("div",{"data-testid":i||'"Cart"',className:"relative",children:[e("div",{className:"relative",children:!n&&t(a,{children:[e(Le,{rounded:!0,icon:"mdi:cart",onClick:e=>{e.stopPropagation(),m(!d)}}),l?.value?.items&&l.value.items.length>0&&e("div",{className:"absolute rounded-full bg-accent p-2 w-6 h-6 -top-2 -left-2 flex items-center justify-center",children:e(Ue,{className:"mb-0 text-white text-sm",children:String(l?.value?.items.length)})})]})}),(d||n)&&t("div",{ref:u,className:p("min-w-128 text-bodyText dark:text-darkBodyText bg-bodyBackground dark:bg-darkBodyBackground",{"rounded shadow absolute top-12 p-4 right-0":!n}),children:[!n&&e(qt,{tag:ze.H3,text:"Cart"}),l?.value?.items&&l?.value?.items.length>0&&t("div",{children:[e(et,{as:Je.UL,className:"",children:l?.value?.items.map(a=>{const i=a.title||a.generatedTitle||a.uuid;return e(at,{as:"li",children:t("div",{className:"flex flex-row gap-4 p-2 border border-solid border-grey100 rounded mb-2",children:[e(Le,{variant:Te.LINK,className:"w-full p-0",onClick:()=>l?.handleItemClick?.(a.uuid),children:t("div",{className:"flex gap-2 w-full",children:[e("div",{className:"relative max-w-32 flex flex-1 overflow-hidden rounded h-20",children:e(Xe,{src:a.image,alt:"item image",className:"aspect-2 w-auto h-auto object-cover"})}),t("div",{className:"max-w-64 flex-1 text-left",children:[e(Ue,{className:"mb-0 line-clamp-2",children:i}),t(Ue,{className:"mb-0",children:["$",a?.options?.selectedPrice," USD"]})]})]})}),e("div",{className:"flex items-center justify-center",children:e(Le,{id:"remove-cart-btn",rounded:!0,variant:Te.SECONDARY,type:Ie.BUTTON,onClick:()=>{l?.handleRemoveFromCart?.(a.uuid),l?.value?.items&&1===l.value.items.length&&setTimeout(()=>{m(!1)},2e3)},icon:"mdi:delete"})})]})},a.uuid)})}),e("div",{className:"mt-4"}),n&&t(a,{children:[e("div",{className:"flex items-start justify-start",children:e(ka,{handleSubmit:e=>l?.handleAddPromoCode?.(e)})}),t(Ue,{children:[o?.UI?.TAX,": ",l?.value?.taxRate?.percentage,"%"]}),t(Ue,{children:[o?.UI?.TAX_DUE,": ",l?.value?.currency?.symbol,l?.value?.taxAmount," ",l?.value?.currency?.code]}),h&&t("div",{className:"flex gap-4 items-center justify-between",children:[t(Ue,{children:[o?.UI?.PROMO_CODE,": ",h]}),e("div",{children:e(Le,{rounded:!0,id:"remove-promo-btn",variant:Te.SECONDARY,outline:!0,type:Ie.BUTTON,onClick:()=>l?.handleRemovePromoCode?.(h),className:"",icon:"mdi:window-close"})})]})]}),t(Ue,{children:[o?.UI?.TOTAL,": ",l?.value?.cartTotal," ",l?.value?.currency?.showCode&&l?.value?.currency?.code]}),!n&&t("div",{className:"flex items-center justify-between gap-4",children:[e("div",{className:"",children:e(Le,{size:Re.SMALL,variant:Te.SECONDARY,onClick:()=>m(!1),children:o?.UI?.CONTINUE_BROWSING})}),e("div",{className:"",children:e(Le,{size:Re.SMALL,variant:Te.PRIMARY,onClick:()=>{m(!1),l?.handleCheckout?.()},children:o?.UI?.CHECKOUT})})]})]}),(!l?.value?.items||0===l?.value?.items?.length)&&e("div",{children:e(qe,{tag:ze.H5,children:o?.UI?.EMPTY})})]})]})};Pa.displayName="Cart";const Ma=({testID:a,hideMenu:i=!1,className:r})=>{const n=Dt(),l=Ht(),[o,s]=c("hidden"),[d,m]=c(!1),u=()=>{s("hidden"===o?"block":"hidden")},h="relative z-10 w-full m-auto py-4 bg-headerBackground dark:bg-darkHeaderBackground";return e("header",n?.brand?.logoOnly?{"data-testid":a||'"Header"',className:y(p(h,r)),children:e("div",{className:"relative w-full flex flex-col md:flex-row justify-center items-center",children:n?.brand?.logo&&e("div",{className:p("relative w-16 md:w-24",n?.brand?.logoAspectRatio),children:e(xe,{href:"/",children:e(tt,{logo:n?.brand?.logo,aspectRatioClass:n?.brand?.logoAspectRatio})})})})}:{"data-testid":a||'"Header"',className:y(p(h," text-headerText dark:text-darkHeaderText",r)),children:t(ra,{padded:!0,children:[t("div",{className:"relative w-full flex",children:[n?.brand?.logo&&e("div",{className:p("relative h-12",n?.brand?.logoAspectRatio),children:e(xe,{href:"/",children:e(tt,{logo:n?.brand?.logo,aspectRatioClass:n?.brand?.logoAspectRatio})})}),t("div",{className:"flex-1 hidden md:flex items-center justify-center",children:[n?.app?.isAuthenticated&&n?.header?.authNav&&e(aa,{links:n.header.authNav,separators:!0}),!n?.app?.isAuthenticated&&n?.header?.anonNav&&e(aa,{links:n.header.anonNav,separators:!0})]}),t("div",{className:"hidden md:flex items-center justify-center",children:[!n?.app?.isAuthenticated&&n?.app?.loginCallback&&e("div",{className:"w-32 flex justify-end",children:e(Le,{onClick:n?.app?.loginCallback,children:l.UI.LOGIN})}),!n?.app?.isAuthenticated&&!n?.app?.loginCallback&&e("div",{className:"w-32 flex justify-end"}),n?.app?.isAuthenticated&&t("div",{className:"relative",children:[e(Le,{onClick:()=>m(!d),icon:d?"mdi:user-outline":"mdi:user"}),e("div",{onClick:()=>m(!1),className:p("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-6 right-0 top-12 z-20 text-bodyText dark:text-darkBodyText text-right",{hidden:!d}),children:n?.header?.profile&&e(aa,{links:n.header.profile,inline:!1})})]}),n?.app?.showCart&&e(Pa,{})]}),e("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e(Le,{variant:Te.PRIMARY,icon:"mdi:menu",onClick:u})})]}),t("div",{className:p("navbar-menu relative z-50",o,{hidden:i}),children:[e("div",{className:"navbar-backdrop fixed inset-0 bg-black opacity-25"}),t("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:[t("div",{className:"flex justify-between",children:[e("div",{className:"relative w-32",children:n?.brand?.logo&&e("div",{className:"relative w-32",children:e(tt,{logo:n?.brand?.logo,aspectRatioClass:n?.brand?.logoAspectRatio})})}),e("div",{children:e(Le,{variant:Te.PRIMARY,icon:"mdi:close",onClick:u})})]}),t("div",{className:"flex flex-col flex-1 gap-4",children:[t("div",{className:"flex flex-1 justify-center pt-4",children:[n?.app?.isAuthenticated&&n?.header?.authNav&&e(aa,{links:n.header.authNav,separators:!0}),!n?.app?.isAuthenticated&&n?.header?.anonNav&&e(aa,{links:n.header.anonNav,separators:!0})]}),e("div",{className:"flex flex-1 justify-center pt-4",children:n?.app?.isAuthenticated&&n?.header?.profile&&e(aa,{links:n.header.profile,separators:!0})}),n?.app?.isAuthenticated&&e("div",{className:"md:hidden flex justify-center",children:e(Le,{onClick:n?.app?.logoutCallback,children:l.UI.LOGOUT})}),!n?.app?.isAuthenticated&&e("div",{className:"md:hidden flex justify-center",children:e(Le,{onClick:()=>{n?.app?.loginCallback?.(),u()},children:l.UI.LOGIN})})]})]})]})]})})};Ma.displayName="Header";const Ua=({testID:a,className:i})=>{const r=d(xt);return e("footer",{className:p("w-full z-10 pt-16 pb-8 bg-footerBackground dark:bg-darkFooterBackground text-footerText dark:text-darkFooterText",i),children:t(ra,{padded:!0,children:[t("div",{"data-testid":a||'"Footer"',className:"footer flex flex-col md:flex-row py-8 gap-8",children:[t("div",{className:"relative w-full md:w-1/3 flex flex-col gap-4 items-center md:items-start",children:[r?.brand?.logo&&e("div",{className:"relative w-24",children:e(tt,{logo:r?.brand?.logo,aspectRatioClass:r?.brand?.logoAspectRatio})}),r.footer?.about&&e("div",{children:e(Ue,{children:r.footer.about})}),e("div",{children:e(ta,{facebook:r.footer?.visitUs?.facebook,twitter:r.footer?.visitUs?.twitter,instagram:r.footer?.visitUs?.instagram,linkedin:r.footer?.visitUs?.linkedin,youtube:r.footer?.visitUs?.youtube})})]}),t("div",{className:"flex gap-4 flex-1 flex-col",children:[r.footer?.menus&&e("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:r.footer.menus.map((t,a)=>e("div",{className:"flex flex-1",children:e(aa,{title:t.title,links:t.links,inline:!1})},`${t.title}--${a}`))}),r?.footer?.custom&&e("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:r.footer.custom})]})]}),t("div",{className:"flex items-center justify-center flex-col",children:[t(Ue,{align:we.CENTER,as:Me.SMALL,children:["© ",(new Date).getFullYear()," ",st.UI.COPYRIGHT," ",r.brand?.name]}),e(Ue,{align:we.CENTER,as:Me.SMALL,children:st.UI.ALL_RIGHTS_RESERVED})]})]})})};Ua.displayName="Footer";const Fa=({testID:a,children:i,showHeader:r=!0,showFooter:n=!0,image:l,showOverlay:o=!0,isFlush:s,fixedHeader:c})=>t("div",{"data-testid":a||'"Screen"',className:"h-full flex flex-1 flex-col min-h-full overflow-x-hidden",children:[r&&e(Ma,{className:p({"absolute top-0 left-0 right-0 bg-opacity-0 dark:bg-opacity-0 md:bg-opacity-20 md:dark:bg-opacity-20 z-50":c})}),t("main",{className:p("relative z-0 flex flex-1",{"pt-24 md:pt-32 lg:pt-40":l},{"pt-8 md:pt-12 lg:pt-12":!l&&!s}),children:[l&&t("div",{className:"absolute w-full aspect-[16/5] opacity-50 z-0 top-0 left-0 right-0",children:[e(Xe,{src:l,alt:"background",priority:!0,sizes:"100vw",style:{objectFit:"cover"}}),o&&e("div",{className:"absolute w-full h-full bg-gradient-to-b from-transparent to-bodyBackground dark:to-darkBodyBackground"})]}),e(ra,{padded:!s,isFlush:s,children:e("div",{className:"flex flex-col gap-8 h-full w-full",children:i})})]}),n&&e(Ua,{})]});Fa.displayName="Screen";const Ba=({title:a,content:i})=>{const[r,n]=c(!1);return t(Ye.Root,{open:r,onOpenChange:n,className:"mb-2",children:[t(Ye.Trigger,{className:p("accordion-trigger",{"accordion-trigger-open":r}),children:[e(qe,{flush:!0,tag:ze.H4,className:p("transition-all",{"text-white":r}),children:a}),e("div",{className:"",children:e(Ce,{name:r?"mdi:chevron-up":"mdi:chevron-down"})})]}),e(Ye.Content,{children:e("div",{className:"p-2",children:e(Ue,{children:i})})})]})},Ha=({testID:t,data:a,titleKey:i="title",contentKey:r="content"})=>e("div",{"data-testid":t||"Accordion",children:a.map((t,a)=>e(Ba,{title:t[i],content:t[r]},t[i]||a))});Ha.displayName="Accordion";const Ga=({testID:a,title:i,children:r,subscription:n,plans:l,changeSubscriptionCallback:o,pauseSubscriptionCallback:s,selectedPlanCallback:d,confirmPlanCallback:m,isLoading:u})=>{const h=Ht(),[f,g]=c(n?.id),[N,E]=c(!1),[b,A]=c(!1),S=e=>{g(e),d&&"function"==typeof d&&d(e)};return t("div",{"data-testid":a||'"SubscriptionManager"',className:"relative",children:[t("div",{className:"flex flex-col gap-4",children:[i&&e(qe,{children:i}),!n&&t("div",{className:"rounded shadow p-4 bg-bodyBackground dark:bg-darkBodyBackground",children:[e(qe,{tag:ze.H4,children:h.UI.NO_ACTIVE_SUBSCRIPTION}),e(Ue,{children:h?.UI?.NO_SUBSCRIPTION_DETAILS})]}),n&&t("div",{className:"rounded shadow p-4 bg-bodyBackground dark:bg-darkBodyBackground m-auto",children:[e(qe,{tag:ze.H4,children:h?.UI?.CURRENT_SUBSCRIPTION}),t("div",{children:[t(Ue,{className:"mb-0",children:[h?.UI?.SUBSCRIPTION_STATUS,": ",n.status]}),t(Ue,{className:"mb-0",children:[h?.UI?.SUBSCRIPTION_PRICE,": ",n.price]}),t(Ue,{className:"mb-0",children:[h?.UI?.CURRENT_PLAN,": ",n.plan]}),t(Ue,{className:"mb-0",children:[h?.UI?.NEXT_BILLING_DATE,": ",n.nextBillingDate]}),n.endDate&&t(Ue,{className:"mb-0",bold:!0,children:[h?.UI?.END_DATE,": ",n.endDate]})]})]}),n&&t("div",{className:"flex justify-center gap-4",children:[o&&e(Le,{variant:Te.PRIMARY,onClick:()=>E(!N),children:N?h?.UI?.CANCEL:h?.UI?.CHANGE_PLAN}),!n.endDate&&e(Le,{variant:Te.SECONDARY,onClick:()=>{E(!1),ae({title:h?.UI?.CONFIRM_TO_SUBMIT,message:h?.UI?.CONFIRM_TO_PAUSE,buttons:[{label:h?.UI?.YES,onClick:s},{label:h?.UI?.NO,onClick:()=>{}}]})},children:h?.UI?.PAUSE_SUBSCRIPTION})]}),N&&l&&r&&t("div",{className:"flex items-center flex-col gap-4",children:[!b&&e("div",{className:"flex flex-col md:flex-row gap-4 justify-center flex-wrap",children:l.map(t=>e("div",{className:p("flex w-[300px] lg:flex-1",{"opacity-50":f&&f!==t.id},{hidden:b&&f&&f!==t.id}),children:e(Kt,{variant:xa.ICON,className:p({"rounded border-2 border-primary bg-tertiary":f===t.id},{"border-2 border-cardBackground":f!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>S(t.id)}})},t.id))}),e("div",{children:e(Le,{variant:Te.PRIMARY,onClick:()=>{ae({title:h?.UI?.CONFIRM_TO_SUBMIT,message:h?.UI?.CONFIRM_TO_CHANGE_PLAN,buttons:[{label:h?.UI?.YES,onClick:()=>{f&&m&&"function"==typeof m&&m(f),E(!1)}},{label:h?.UI?.NO,onClick:()=>E(!1)}]})},disabled:f===n?.id,children:h?.UI?.CONFIRM_TO_SUBMIT})})]}),!n&&t("div",{className:"flex flex-col gap-2",children:[t("div",{className:"flex items-center flex-col gap-4",children:[e("div",{className:"flex flex-col md:flex-row gap-4 justify-center",children:l.map(t=>e("div",{className:p("flex flex-1 w-[300px]",{"opacity-50":f&&f!==t.id},{hidden:b&&f&&f!==t.id}),children:e(Kt,{variant:xa.ICON,className:p({"rounded border-2 border-primary bg-tertiary":f===t.id},{"border-2 border-cardBackground":f!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>S(t.id)}})},t.id))}),e("div",{children:e(Le,{variant:Te.PRIMARY,onClick:()=>{A(!0),f&&m&&"function"==typeof m&&m(f)},disabled:!f,children:h?.UI?.CONFIRM_CHOICE})})]}),e("div",{children:r})]})]}),u&&e("div",{className:"absolute top-0 left-0 w-full h-full bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e(Oe,{})})]})};var Wa;Ga.displayName="SubscriptionManager",function(e){e.NONE="none",e.ATOM="atom",e.DEFAULT="default",e.ELEMENT="element",e.COMPONENT="component",e.MODULE="module",e.FEATURE="feature"}(Wa||(Wa={}));const Ya=({spacing:t=Wa.DEFAULT,children:a,narrow:i,flush:r,className:n})=>{const l=p("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("div",{"data-testid":"ContentPageLayout",className:l,children:a})};var Va;Ya.displayName="ContentPageLayout",function(e){e.NONE="none",e.ATOM="atom",e.DEFAULT="default",e.ELEMENT="element",e.COMPONENT="component",e.MODULE="module",e.FEATURE="feature"}(Va||(Va={}));const za=({className:t,children:a,size:i=Va.DEFAULT})=>{const r=p("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("div",{"data-testid":"ContentRowsLayout",className:r,children:a})};za.displayName="ContentRowsLayout";const ja=({testID:t,inputCallback:a,seperator:r,numInputs:n=4,shouldAutoFocus:o=!1,size:s="medium"})=>{const[d,m]=c("");i.useEffect(()=>{d&&4===d.length&&void 0!==a&&"function"==typeof a&&a(d)},[d]);const u=l(()=>{switch(s){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"}}},[s]);return e("div",{"data-testid":t||'"OTPInput"',className:"foo-bar",children:e(ie,{value:d,onChange:m,inputType:"number",numInputs:n,shouldAutoFocus:o,renderSeparator:r?()=>e("div",{className:"flex items-center justify-center",children:e(Ce,{name:"mdi:dot",className:"opacity-50"})}):e("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e("input",{...t,className:p("remove-arrow form-item text-input w-12")}),inputStyle:{width:u.width,height:u.height}})})};ja.displayName="OTPInput";const Ka=({testID:a,modalOpen:i=!0,videoProps:r,ariaHideApp:n=!1,onCloseCallback:l=()=>{}})=>{const[o,d]=c(!1);return s(()=>{i&&d(!0)},[i]),e(re,{isOpen:o,onRequestClose:l,className:"absolute bg-none top-1/2 left-1/2 right-auto bottom-auto mr-[-50%] transform translate-x-[-50%] translate-y-[-50%] w-full h-full p-0",overlayClassName:"fixed top-0 left-0 right-0 bottom-0 bg-black bg-opacity-100 z-50",ariaHideApp:n,"data-testid":a||"FullScreenVideoModal",children:t("div",{className:"h-full relative",children:[e(Le,{rounded:!0,icon:"mdi:close",onClick:l,className:"absolute top-4 right-4 z-50"}),e(Ia,{...r})]})})};Ka.displayName="FullScreenVideoModal";const qa=({testID:a,children:i,image:r,imageMob:n})=>r||n?t("div",{"data-testid":a||'"FullContentBackgroundImage"',className:"bg-center bg-no-repeat bg-cover min-h-screen w-screen overflow-hidden fixed top-0 left-0 right-0 bottom-0 z-0",children:[e("span",{className:"absolute h-screen w-screen top-0 left-0 right-0 bottom-0 opacity-30 bg-cover bg-center blur-md",style:{backgroundImage:`url(${r})`}}),i]}):e("div",{children:i});var $a;function Xa({className:a,label:i,onChange:r,options:n}){return n?t("div",{className:p("m-0 p-0 mb-2 border-none",a),children:[e(Qe,{className:"text-sm",transform:De.UPPERCASE,children:i}),e(Qt,{id:i||"Sorting",options:n,onChange:e=>r(e.target.value)})]}):null}function Qa({className:t,current:a,resultsPerPage:i=10,onChange:r,totalPages:n,...l}){return e(Ne,{current:a,onChange:r,simple:!0,pageSize:i,total:n*i,className:p("m-0 p-0 list-none text-bodyText flex gap-2 text-center items-center [&>li>span]:px-2 [&>li>input]:text-black [&>li>input]:rounded [&>li>input]:text-center",t),locale:Ee,prevIcon:e("div",{className:"text-bodyText",children:e(Ce,{name:"mdi:chevron-left"})}),nextIcon:e("div",{className:"text-bodyText",children:e(Ce,{name:"mdi:chevron-right"})}),...l})}function Za({className:i,onChange:r,options:n,label:l}){return n?t("div",{className:p("m-0 p-0 mb-2 border-none",i),children:[e(Qe,{className:"text-sm mr-2",transform:De.UPPERCASE,children:st.UI.SHOW}),e(Qt,{id:l||"ResultsPerPage",options:n.map(e=>({label:e.toString(),value:e})),onChange:e=>r(e.target.value),className:"min-w-20"})]}):e(a,{})}function Ja({className:i,end:r,searchTerm:n,start:l,totalResults:o,...s}){return t("div",{className:p("m-0 p-0 flex-1",i),...s,children:["Showing"," ",t("strong",{children:[l," - ",r]})," ","out of ",e("strong",{children:o}),n&&t(a,{children:[" ","for: ",e("em",{children:n})]})]})}function ei({className:a,onChange:i,onSubmit:r,wasSearched:n,placeholder:l,allowReset:o=!1,resetTrigger:s=()=>{}}){return d(le),e("div",{className:p("m-0 md:px-48",a),children:t("form",{onSubmit:e=>r(e),className:"flex items-center",children:[e("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e(ot,{name:"SearchBoxInput",type:lt.TEXT,placeholder:l||"Search now...",onChange:e=>{i(e?.target?.value)}})}),e("div",{className:"pl-4",children:t("div",{className:"flex flex-row gap-2",children:[n&&o&&e(Le,{type:Ie.BUTTON,onClick:()=>s("",{shouldClearFilters:!1}),variant:Te.SECONDARY,icon:"mdi:restore"}),e(Le,{type:Ie.SUBMIT,variant:Te.PRIMARY,icon:"mdi:magnify"})]})})]})})}function ti({className:i,children:r,header:n,bodyContent:l,bodyFooter:o,bodyHeader:s,sideContent:c,showSidebar:d}){const m=p("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":!c});return t(a,{children:[t("div",{className:p("w-full flex flex-col",i),children:[e("div",{className:"m-auto md:py-0 w-full",children:n}),t("div",{className:p("md:grid m-auto md:py-0 w-full",{"md:grid-cols-searchLayout":!c,"md:grid-cols-searchLayoutWithSidebar":c}),children:[!ee&&e("div",{className:m,children:c}),t("div",{className:p("p-0 pt-2 md:p-6 md:pr-0",{"md:pl-0":!c}),children:[e("div",{className:"flex flex-row gap-8 items-center justify-end",children:s}),e("div",{className:"relative",children:r||l}),e("div",{className:"flex items-center justify-around",children:o})]})]})]}),ee&&d&&e("div",{className:"fixed z-10 w-full top-0 left-0 right-0 bottom-0 bg-bodyBackground px-4 overflow-scroll",children:c})]})}function ai({children:t,className:a,gridClasses:i,...r}){return e("ul",{className:p("relative grid gap-4 mb-4",i||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",a),...r,children:t})}function ii(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function ri(e,t){if(e)return e[t]}function ni(e){const t=ri(e,"snippet")||(a=function(e){return ri(e,"raw")}(e),a?String(a).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):"");var a;return Array.isArray(t)?t.join(", "):t}function li({className:t,result:a,as:i,cardMap:r={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:n,titleField:l,imageField:o,videoField:s,descriptionField:c,metaDataFields:d,cardProps:m}=r,u=n&&ni(a[n.fieldName]),h=l&&ni(a[l.fieldName]),f=o&&ni(a[o.fieldName]),g=f||ni(a.image),N=s&&s.formatter?s.formatter(ni(a[s.fieldName])):s&&ni(a[s.fieldName]),E=c&&ni(a[c.fieldName]),b=d&&d.map(e=>{const t=ni(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)});return e("li",{className:p("relative",t),children:(()=>{const t={src:g||"",alt:h||"",title:h||"",width:500,height:500},a={id:u,title:be.decode(h),image:t,video:N,description:E,metaData:b,actions:r.actionsData,onClick:r.onClickLink};switch(i){case $a.cardMedia:return e(Kt,{variant:xa.MEDIA,data:a,...m});case $a.cardVideo:return e(Kt,{variant:xa.VIDEO,data:a,...m,isMuted:!1});default:return e(Kt,{variant:xa.BASIC,data:a,...m})}})()})}function oi({showOptions:i,sortOptions:r,resultAs:n=$a.cardBasic,ResultFieldMap:o,config:s={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:d=[],noSidebar:m=!1,customConnector:u,showPagingInfo:h,gridClasses:p,initialState:f={},showTextSearch:g=!0}){const N=Ht(),E=l(()=>{const e={host:process.env.NEXT_PUBLIC_ELASTICSEARCH_HOST||process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.NEXT_PUBLIC_ELASTICSEARCH_INDEX||process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.NEXT_PUBLIC_ELASTICSEARCH_API_KEY||process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""};return new ne(u||e)},[]),b=l(()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:!0,apiConnector:E,hasA11yNotifications:!0,searchQuery:{filters:s.filters||[],search_fields:s.searchFields||{},result_fields:s.resultsFields||{},facets:s.facets,sortList:[]},autocompleteQuery:{results:{search_fields:{title:{},description:{}},resultsPerPage:5,result_fields:{title:{snippet:{size:100,fallback:!0}}}}},onSearch:(e,t,a)=>{let i=e;if(""===e.searchTerm&&0===e.sortList.length&&r&&r.length>0){const t=r[0];i={...e,sortList:[{field:t?.value?.[0]?.field,direction:t?.value?.[0]?.direction}]}}return Promise.resolve(a(i,t))},initialState:{resultsPerPage:i?.[0]||8,...f}}),[s]),[A,S]=c(!1),y=()=>{S(e=>!e)};return e(oe,{config:b,children:e(se,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:l,setSearchTerm:c})=>e(a,{children:e(ce,{children:e(ti,{noSidebar:m,showSidebar:A,header:g&&e(ge,{view:t=>e(ei,{...t,wasSearched:l,placeholder:s.initialPlaceholder,allowReset:!0,resetTrigger:c})}),sideContent:!m&&d&&t("div",{children:[e("div",{className:"md:hidden flex justify-end pt-2 -mb-2",children:e(Le,{onClick:y,icon:"mdi:close",children:N?.UI?.HIDE_FILTERS})}),l&&r&&e(he,{label:"Sort by",sortOptions:r,view:Xa}),d?.map(({field:t,label:a,view:i})=>e(fe,{field:t,label:a,view:i},t))]}),bodyContent:e(pe,{shouldTrackClickThrough:!1,resultView:t=>e(li,{...t,as:n,cardMap:o}),className:"list-none p-0 m-0",view:t=>e(ai,{...t,gridClasses:p})}),bodyHeader:t(a,{children:[l&&h&&e(me,{view:Ja}),l&&i&&e(ue,{view:Za,options:i}),l&&r&&m&&e(he,{label:"Sort by",sortOptions:r,view:Xa}),l&&!m&&e("div",{className:"block md:hidden",children:e(Le,{rounded:!0,onClick:y,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e(de,{view:Qa})})})})})})}function si({className:a,label:i,onChange:r,options:n}){const l=n.map(e=>({value:e.value,label:`${e.value} (${e.count})`}));return t("fieldset",{className:p("m-0 p-0 mt-4 mb-2 border-none",a),children:[e(Qe,{className:"text-sm",transform:De.UPPERCASE,children:i}),e(Qt,{id:i,options:l,onChange:e=>{console.debug("SingleSelectFacet onChange",e.target.value),r(e.target.value)}})]})}function ci({className:a,label:i,onRemove:r,onSelect:n,options:l}){const o=l.filter(e=>e.selected).map(e=>e.value)[0];return e("fieldset",{className:p("m-0 p-0 mt-4 mb-2 border-none",a),children:t("div",{children:[e(Qe,{transform:De.UPPERCASE,children:i}),t("ul",{className:"ul list-none p-0",children:[o&&t("li",{className:"m-0 flex justify-between items-center flex-1",children:[ii(o),e("span",{className:"ml-1 px-1",children:e(Le,{onClick:()=>r(o),size:Re.SMALL,rounded:!0,children:e(Ce,{name:"mdi:close"})})})]}),!o&&l.map(a=>{const r=ii(a.value);return t("li",{className:"m-0 flex justify-between",children:[e("a",{className:"no-underline visited:text-bodyText","data-transaction-name":`facet - ${i}`,href:"/",onClick:e=>{e.preventDefault(),n(a.value)},children:e("label",{className:"label pl-0 leading-none text-bodyText dark:text-darkBodyText",children:r})}),e(Ue,{as:Me.SPAN,size:Pe.MEDIUM,children:a.count.toLocaleString("en")})]},r)})]})]})})}function di({className:i,label:r,onMoreClick:n,onRemove:l,onSelect:o,options:s,showMore:c,showSearch:d,onSearch:m,searchPlaceholder:u}){return s?t("fieldset",{className:p("m-0 p-0 mt-4 mb-2 border-none",i),children:[e(Qe,{className:"text-sm",transform:De.UPPERCASE,children:r}),d&&e("div",{className:"mt-1",children:e(ot,{type:lt.SEARCH,placeholder:u||"Search",onChange:e=>{m(e.target.value)}})}),t("div",{className:"my-4",children:[s?.length<1&&e("div",{children:"No matching options"}),s?.map(a=>{const i=a.selected,n=a.value,s=ii(n);return t("div",{className:"flex justify-between pb-2",children:[e(_e,{id:`facet_${r}${s}`,"data-transaction-name":`facet - ${r}`,checked:i,onChange:()=>i?l(n):o(n),label:s}),e(Ue,{as:Me.SPAN,size:Pe.SMALL,children:a.count.toLocaleString("en")})]},s)})]}),c&&e(Le,{size:Re.SMALL,variant:Te.TERTIARY,onClick:n,"aria-label":"Show more options",children:"+ More"})]}):e(a,{children:"Options required"})}qa.displayName="FullContentBackgroundImage",function(e){e.cardBasic="cardBasic",e.cardMedia="cardMedia",e.cardVideo="cardVideo"}($a||($a={})),Xa.displayName="Sorting",Qa.displayName="Paging",Za.displayName="ResultsPerPage",Ja.displayName="PagingInfo",ei.displayName="SearchBox",ti.displayName="Layout",ai.displayName="Results",li.displayName="Result",si.displayName="SingleSelectFacet",ci.displayName="SingleLinksFacet",di.displayName="MultiCheckboxFacet";const mi=({handleSubmit:t})=>{const a=Ht();return e("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e($t,{onSubmit:t,submit:a.FORMS.RESET_PASSWORD_FORM.SUBMIT,children:e(Zt,{name:"password",autoComplete:"new-password",type:Xt.PASSWORD,label:a.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:ha})})})};mi.displayName="ResetPasswordForm";const ui=({handleSubmit:a})=>{const i=Ht();return e("div",{"data-testid":"ResetPasswordAuthForm",className:"form-wrapper",children:t($t,{onSubmit:a,submit:i.FORMS.RESET_PASSWORD_FORM.SUBMIT,children:[e(Zt,{name:"current-password",autoComplete:"current-password",type:Xt.PASSWORD,label:i.FORMS.RESET_PASSWORD_FORM_AUTH.CURRENT_PASSWORD,required:!0,validations:ha}),e(Zt,{name:"new-password",autoComplete:"new-password",type:Xt.PASSWORD,label:i.FORMS.RESET_PASSWORD_FORM_AUTH.NEW_PASSWORD,required:!0,validations:ha})]})})};ui.displayName="ResetPasswordAuthForm";const hi=({testID:a,initialValues:i,handleSubmit:r,avatarUpdateCallback:n})=>{const l=Ht();return e("div",{"data-testid":a||'"ProfileForm"',className:"form-wrapper",children:t($t,{onSubmit:r,submit:l.FORMS.PROFILE_FORM.SUBMIT,initialValues:i,children:[e("div",{className:"mb-4 items-center justify-center flex",children:e(ct,{name:"avatar",initValue:i?.picture,fileUpdateCallback:n})}),e(Zt,{name:"picture",type:Xt.HIDDEN}),e(Zt,{name:"firstName",type:Xt.TEXT,label:l.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e(Zt,{name:"lastName",type:Xt.TEXT,label:l.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e(Zt,{name:"email",type:Xt.EMAIL,label:l.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:ua})]})})};hi.displayName="ProfileForm";const pi=({testID:a,title:i,image:r,user:n,logoutCallback:l,resetPasswordCallback:o,menu:s,shareURL:c})=>{const d=Ht();return t(Fa,{"data-testid":a||"AccountScreen",image:r,children:[i&&e(qt,{text:i}),t("div",{children:[e("div",{className:"flex items-center justify-center",children:e(ct,{initValue:n?.profile?.picture,isEditable:!1})}),s&&e("div",{children:e(et,{className:"flex items-center flex-col justify-center gap-2",children:s?.map((t,a)=>e(at,{as:"div",title:t.title,icon:t.icon,onClick:t.onClick},a))})}),t("div",{className:"my-4 flex flex-col gap-8 justify-center items-center",children:[c&&t("div",{className:"flex items-center flex-col justify-center gap-1",children:[e(qe,{tag:ze.H5,flush:!0,children:d.UI.SHARE}),t("div",{className:"flex gap-2",children:[e(F,{url:c,children:e(Ce,{name:"mdi:facebook"})}),e(B,{url:c,children:e(Ce,{name:"mdi:twitter"})}),e(W,{url:c,children:e(Ce,{name:"mdi:linkedin"})}),e(H,{url:c,children:e(Ce,{name:"mdi:whatsapp"})})]})]}),t("div",{className:"flex flex-col gap-2",children:[o&&e(Le,{onClick:o,icon:"mdi:lock-reset",children:d?.UI.RESET_PASSWORD}),l&&e(Le,{onClick:l,icon:"mdi:logout",children:d?.UI.LOGOUT})]})]})]})]})};pi.displayName="AccountScreen";const fi=({testID:a,title:i,image:r,formProps:n})=>t(Fa,{"data-testid":a||"AuthScreen",image:r,children:[i&&e(qt,{text:i}),e("div",{className:"flex justify-center",children:e(Ea,{...n})})]});fi.displayName="AuthScreen";const gi=({testID:a,title:i,image:r,data:n,onPressCallback:l,isLoading:o,noDataMessage:s})=>{const c=Ht();return t(Fa,{"data-testid":a||"CardGridScreen",image:r,children:[i&&e(qt,{text:i}),t("div",{children:[o&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Oe,{})}),n&&e(Da,{data:n,onPressCallback:l}),!n&&!o&&e("div",{children:e(Ue,{children:s||c?.UI?.NO_DATA})})]})]})};gi.displayName="CardGridScreen";const Ni=({testID:a,title:i,image:r,searchProps:n})=>t(Fa,{"data-testid":a||"CatalogueScreen",image:r,children:[i&&e(qt,{text:i}),e("div",{children:e(oi,{...n})})]});Ni.displayName="CatalogueScreen";const Ei=({testID:a,title:i,image:r,data:n,isLoading:l,onPressCallback:o})=>t(Fa,{"data-testid":a||"ChallengeLibraryScreen",image:r,children:[i&&e(qt,{text:i}),l&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Oe,{})}),n&&e("div",{children:e(Da,{data:n,onPressCallback:o})})]});Ei.displayName="ChallengeLibraryScreen";const bi="MMMM dd, yyyy",Ai="HH:mm",Si=({testID:a,title:i,image:r,created:n=0,body:o,days:s,puchaseLabel:c,hasAccess:d=!1,onPressCallback:m,purchaseCallback:u,isLoading:h})=>{const p=Ht(),f=l(()=>Ae(new Date(1e3*n),bi),[n]);return t(Fa,{"data-testid":a||"ChallengeScreen",image:r,children:[t("div",{children:[i&&e(qt,{text:i}),t(Qe,{children:[p.UI.CREATED,": ",f]}),!d&&t("div",{className:"flex flex-col gap-2 mb-4",children:[e(Ue,{bold:!0,className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e(Ue,{className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e("div",{children:e(Le,{variant:Te.PRIMARY,onClick:u,isLoading:h,disabled:h,children:c})}),t(Ue,{size:Pe.SMALL,className:"mb-0",children:["** ",p.GLOBAL.SCREENS.CHALLENGE.PAYMENT_NOTE]})]})]}),e("div",{children:o&&e(ft,{data:o})}),e("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:s?.map(t=>e(Kt,{variant:xa.MEDIA,data:{id:t.id,title:t.title,image:{src:t.image,alt:t.title},raised:!0,onClick:d?()=>m(t.video):void 0,accessRestriced:!d}},t.id))})]})};Si.displayName="ChallengeScreen";const yi=({testID:a,title:i,image:r,updated:n,content:l,isLoading:o,isLayoutMinimal:s=!1})=>{const c=Ht(),d=n?Ae(new Date(1e3*n),"MMMM dd, yyyy HH:mm"):void 0;return t(Fa,{"data-testid":a||"ContentScreen",image:r,showHeader:!s,showFooter:!s,children:[o&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Oe,{})}),i&&e(qt,{text:i}),n&&e("div",{children:t(Ue,{children:[c?.UI?.UPDATED,": ",d]})}),l&&e("div",{children:e(ft,{data:l})})]})};yi.displayName="ContentScreen";const Ci=({testID:a,title:i,image:r,user:n,latestData:l,recentdata:o,stats:s,promo:c,news:d,statsIsLoading:m,promosIsLoading:u,dataIsLoading:h,handleLatestDataPress:p,handleRecentDataPress:f,handleNewsDataPress:g})=>{const N=Ht(),E={loop:!1,autoPlay:!1,slidesToShow:4,scrollAnimationDuration:500,onSnapToItem:()=>{},shouldScrollOnClick:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:4}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:2}}]};return t(Fa,{"data-testid":a||"DashboardScreen",image:r,children:[i&&e(qt,{text:i}),e("div",{children:t(Ue,{children:[N?.UI?.WELCOME," ",n?.name]})}),m&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Oe,{})}),!m&&s&&t("div",{className:"mb-8",children:[e(qe,{tag:ze.H4,children:N?.UI?.ACTIVITY}),e("div",{className:"flex flex-row gap-4 flex-wrap",children:s.map((t,a)=>e("div",{children:e(Kt,{variant:t.variant,data:t.data})},`${t.data.id}-${a}`))})]}),h&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Oe,{})}),!h&&l&&t("div",{children:[e(qe,{tag:ze.H4,children:N?.UI?.LATEST_WORKOUTS}),e("div",{children:e(Sa,{data:l,onPressCallback:p,carouselOptions:E})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Oe,{})}),!u&&c&&t("div",{children:[e(qe,{tag:ze.H4,flush:!0,children:N?.UI?.OUR_FEATURE}),e(Ta,{...c,withBg:!0,spacing:ya.ATOM})]}),h&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Oe,{})}),!h&&o&&t("div",{children:[e(qe,{tag:ze.H4,children:N?.UI?.RECENTLY_ADDED}),e("div",{children:e(Sa,{data:o,onPressCallback:f,carouselOptions:E})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Oe,{})}),!u&&d&&t("div",{children:[e(qe,{tag:ze.H4,children:N?.UI?.WHATS_NEW}),e("div",{children:e(Sa,{data:d,onPressCallback:g,carouselOptions:E})})]})]})};Ci.displayName="DashboardScreen";const vi=({testID:a,title:i,image:r,data:n,isLoading:l})=>t(Fa,{"data-testid":a||"FAQScreen",image:r,children:[i&&e(qt,{text:i}),!n&&l&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Oe,{})}),n&&e(Ha,{data:n?.map(e=>({title:e.title||"",content:e.answer||""}))})]});vi.displayName="FAQScreen";const Ii=({testID:a,image:i,panelIntroProps:r,panelVideoProps:n,panelFeatureProps:l,panelCardsProps:o,panelHerosProps:s,panelSubscriptionsProps:c,panelTestimonialsProps:d,panelDataCardsProps:m,panelProductProps:u,panelCustomProps:h,isFlush:p=!0})=>t(Fa,{"data-testid":a||"HomeScreen",image:i,isFlush:p,children:[n&&e(Oa,{...n}),t(ra,{children:[r&&e(La,{...r}),l&&e(va,{...l}),o&&e(Ca,{...o}),s?.[0]&&e(Ta,{...s?.[0]}),c&&e(Ca,{...c}),d&&e(Ca,{...d}),s?.slice(1).map(t=>e(Ta,{...t},t.title)),m&&e(Ca,{...m}),u&&e(Ra,{...u}),h&&e(_a,{...h})]})]});Ii.displayName="HomeScreen";const Ti=({testID:a,title:i})=>{const r=Ht();return e(Fa,{"data-testid":a||"LogoutScreen",children:t("div",{children:[i&&e(qt,{text:i}),e(Ue,{children:r?.UI?.PLEASE_WAIT}),e(Oe,{})]})})};Ti.displayName="LogoutScreen";const Ri=({testID:a,title:i,image:r,menu:n,isLoading:l=!1})=>t(Fa,{"data-testid":a||"MenuScreen",image:r,children:[i&&e(qt,{text:i}),l&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Oe,{})}),n&&e(et,{children:n.map(t=>e(at,{as:"div",icon:t.icon,onClick:t.onPress,title:t.title},t.title))})]});Ri.displayName="MenuScreen";const Oi=({testID:a,title:i,message:r})=>{const n=Ht();return t(Fa,{"data-testid":a||"NotFound",children:[e(qt,{text:i||n?.UI?.PAGE_NOT_FOUND_OOPS}),e(Ue,{children:r||n?.UI?.PAGE_NOT_FOUND_MESSAGE_OOPS}),e(qe,{tag:ze.H5,flush:!0,children:t("span",{className:"flex flex-row gap-2 items-center",children:[e(Ce,{name:"mdi:lightbulb"})," ",n?.UI?.WHAT_CAN_YOU_DO]})}),t(et,{as:Je.UL,children:[e(at,{as:"li",children:n?.UI?.DOUBLE_CHECK_URL}),e(at,{as:"li",children:n?.UI?.RETURN_TO_HOMEPAGE}),t(at,{as:"li",children:[n?.UI?.EXPLORE_SITE,"."]})]}),e(Ue,{children:n?.UI?.STILL_NEED_HELP})]})};Oi.displayName="NotFoundScreen";const Li=({testID:a,title:i,image:r,handleSubmitCallback:n})=>t(Fa,{"data-testid":a||'"PasswordReset"',image:r,children:[i&&e(qt,{text:i}),e(mi,{handleSubmit:n})]});Li.displayName="PasswordResetScreen";const _i=({testID:a,title:i,image:r,handleSubmitCallback:n})=>t(Fa,{"data-testid":a||"PasswordResetAuthScreen",image:r,children:[i&&e(qt,{text:i}),e(ui,{handleSubmit:n})]});_i.displayName="PasswordResetAuthScreen";const xi=({testID:a,title:i,image:r,user:n,handleProfileSubmit:l,profilePicUpdateCallback:o})=>t(Fa,{"data-testid":a||"ProfileScreen",image:r,children:[i&&e(qt,{text:i}),e(hi,{initialValues:n?.profile,handleSubmit:l,avatarUpdateCallback:o})]});xi.displayName="ProfileScreen";const wi=({testID:a,end:r,live:n,start:o,title:s,video:c})=>{const d=Ht(),m=l(()=>{if(o)return Ae(new Date(1e3*o),bi)},[o]),u=l(()=>{if(o)return Ae(new Date(1e3*o),Ai)},[o]),h=l(()=>{if(r)return Ae(new Date(1e3*r),Ai)},[r]),[p,f]=i.useState(!1);return t("div",{"data-testid":a||'"ScheduleItem"',className:"flex flex-col md:flex-col gap-4",children:[e(qe,{tag:ze.H4,children:s}),n&&!p&&e("div",{className:"flex-1",children:e(Ia,{url:n,isYoutube:!0})}),m&&u&&h&&t("div",{children:[e(Ue,{className:"mb-0",children:d?.UI?.TODAYS_ITEMS}),t(Qe,{children:[m,": ",u," - ",h]})]}),c&&e("div",{className:"relative my-4",children:e(Le,{onClick:()=>f(!0),icon:"mdi:video",children:d?.UI?.LAUNCH_PLAYBACK})}),p&&c&&e(Ka,{modalOpen:p,onCloseCallback:()=>f(!1),videoProps:{sources:[{src:c}],isModal:!0}})]})};wi.displayName="ScheduleItem";const Di=({testID:a,scheduleItems:i,hasAccess:r})=>{const n=Ht(),[o,s]=c(new Date),d=l(()=>(e=>{const t=new Map;return e?.days?(console.log("📅 Building date map from scheduleItems:",e),e.days.forEach((e,a)=>{Object.entries(e).forEach(([e,i])=>{if(console.log(` Day ${a} - ${e}:`,i),i&&i[0]){const a=i[0];if(a.start){const i=new Date(1e3*a.start),r=Se(i),n=`${r.getFullYear()}-${String(r.getMonth()+1).padStart(2,"0")}-${String(r.getDate()).padStart(2,"0")}`;console.log(` ✓ Mapped ${e} -> ${n}`,{start:a.start,date:i.toISOString(),normalized:r.toISOString(),title:a.title}),t.set(n,{...a,weekday:e})}else console.log(` ✗ No start timestamp for ${e}`)}})}),console.log("📊 Final dateMap size:",t.size),console.log("📊 All mapped dates:",Array.from(t.keys())),t):(console.log("❌ No scheduleItems.days found"),t)})(i),[i]),m=l(()=>{const e=Array.from(d.keys()).map(e=>new Date(e));return console.log("🎨 datesWithClasses for highlighting:",e.map(e=>e.toISOString())),e},[d]),u=h(e=>{if(!e)return console.log("❌ getClassForDate: No date provided"),null;const t=Se(e),a=`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`,i=d.get(a);return console.log("🔍 getClassForDate lookup:",{inputDate:e.toISOString(),dateKey:a,found:!!i,availableKeys:Array.from(d.keys()),result:i}),i||null},[d]),p=l(()=>{console.log("📅 selectedDate changed:",o);const e=u(o);return console.log("🎯 selectedClass result:",e),e},[o,u]);return t("div",{"data-testid":a||"Schedule",className:"grid grid-cols-1 md:grid-cols-[320px_1fr] gap-8",children:[t("div",{className:"md:sticky md:top-4 md:self-start",children:[e(qe,{tag:ze.H5,transform:Ke.UPPERCASE,className:"mb-4",children:"Select a Date"}),e(Be,{selected:o,onSelect:s,datesWithContent:m})]}),t("div",{children:[!r&&t("div",{children:[e(qe,{tag:ze.H2,children:n?.UI?.ACCESS_RESTRICTED}),e(Ue,{children:n?.UI?.UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE})]}),r&&p&&e(wi,{title:p.title,live:p.live,start:p.start,end:p.end,video:p.video}),r&&!p&&o&&t("div",{children:[e(qe,{tag:ze.H4,children:n?.UI?.NO_CLASS}),e(Ue,{children:"No class scheduled for this date."})]})]})]})};Di.displayName="Schedule";const ki=({testID:a,title:i,image:r,scheduleData:n,isLoading:l=!1})=>t(Fa,{"data-testid":a||"ScheduleScreen",image:r,children:[i&&e(qt,{text:i}),!n&&l&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Oe,{})}),n&&e("div",{children:e(Di,{...n})})]});ki.displayName="ScheduleScreen";const Pi=({testID:a,title:i,image:r,subscriptionCallback:n,subscriptionManagerProps:l})=>{const o=Ht();return t(Fa,{"data-testid":a||"SubscriptionScreen",image:r,children:[i&&e(qt,{text:i}),l&&e("div",{children:e(Ga,{...l})}),n&&e("div",{className:"flex items-center justify-center",children:t("div",{className:"flex flex-col gap-4 items-center",children:[e(Ue,{children:o?.UI?.NEED_HELP_WITH_SUBSCRIPTION}),e("div",{children:e(Le,{icon:"mdi:help",variant:Te.SECONDARY,onClick:n,children:o?.UI?.CONTACT_SUPPORT})})]})})]})};Pi.displayName="SubscriptionScreen";const Mi=({testID:r,id:n,title:o,image:s,description:c,created:d=0,duration:m="PT0M",level:u,section:h,video:p,videoType:f="application/x-mpegURL",category:g,type:N,likeCallback:E,completedCallback:b,favouriteCallback:A,isLiked:S,isCompleted:y,isFavourite:C,relatedWorkouts:v,hasActiveSubscription:I,htmlDetails:T,noSubActionCallback:R,numCompleted:O="0"})=>{const L=Ht(),[_,x]=i.useState(2);i.useRef(null);const[w,D]=i.useState(!1),k=l(()=>Ae(new Date(1e3*d),bi),[d]),P=l(()=>It(m),[m]);return t(Fa,{"data-testid":r||"WorkoutScreen",image:s,children:[t("div",{children:[o&&e(qt,{text:o}),e("div",{children:t(Qe,{children:[L.UI.CREATED,": ",k]})}),e("div",{children:t(Qe,{children:[L.UI.DURATION,": ",P]})})]}),!I&&t("div",{children:[e(qe,{tag:ze.H4,children:L.UI.NO_ACTIVE_SUBSCRIPTION}),e(Ue,{children:L?.UI?.NO_SUBSCRIPTION_DETAILS}),R&&e(Le,{rounded:!0,onClick:R,icon:"mdi:arrow-right-circle-outline",children:L.UI.SUBSCRIBE})]}),e("div",{children:e(Le,{onClick:()=>{D(!0)},icon:"mdi:play",iconFirst:!0,disabled:!I,children:L.UI.START_WORKOUT})}),t("div",{className:"flex gap-2",children:[E&&e("div",{children:e(Le,{onClick:()=>{n&&E&&"function"==typeof E&&(E(n),Q.info(S?L.UI.REMOVED_LIKE:L.UI.ADDED_LIKE))},icon:S?"mdi:heart":"mdi:heart-outline",disabled:!I,rounded:!0})}),A&&e("div",{children:e(Le,{onClick:()=>{n&&A&&"function"==typeof A&&(A(n),Q.info(C?L.UI.REMOVED_FAVORITE:L.UI.ADDED_FAVORITE))},icon:C?"mdi:bookmark":"mdi:bookmark-outline",disabled:!I,rounded:!0})}),b&&e("div",{children:e(Le,{rounded:!0,onClick:()=>{n&&b&&"function"==typeof b&&(b(n),Q.info(L.UI.MARKED_COMPLETE))},icon:"mdi:plus",disabled:!I,children:O})})]}),!T&&c&&e("div",{children:e(Ue,{children:c})}),T&&c&&e("div",{children:e(ft,{data:c})}),t("div",{className:"flex gap-4 flex-wrap",children:[u&&t(Qe,{children:[L.UI.LEVEL,": ",u]}),h&&t(Qe,{children:[L.UI.SECTION,": ",h]}),g&&t(Qe,{children:[L.UI.CATEGORY,": ",g]}),N&&t(Qe,{children:[L.UI.TYPE,": ",N]})]}),v&&e(a,{children:e(ra,{isNarrow:!0,padded:!0,children:e("div",{children:e(qe,{children:L?.UI?.RELATED})})})}),e("div",{children:w&&e(Ka,{modalOpen:w,onCloseCallback:()=>D(!1),videoProps:{sources:[{src:p,type:f}],isModal:!0}})})]})};Mi.displayName="WorkoutScreen";const Ui={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"},colors:{},spacing:{},borderRadius:{exampleRadius:"1rem"},fontFamily:{},fontSize:{},fontWeight:{},lineHeight:{},letterSpacing:{},width:{},height:{},maxWidth:{},maxHeight:{},minWidth:{},minHeight:{},padding:{},margin:{},zIndex:{},opacity:{},boxShadow:{},backgroundImage:{},backgroundSize:{},backgroundPosition:{},backgroundColor:{},borderWidth:{},borderColor:{},borderOpacity:{},borderStyle:{},divideWidth:{},divideColor:{},divideOpacity:{},animation:{},keyframes:{},screens:{},aspectRatio:{},transitionTimingFunction:{},transitionDelay:{},transitionDuration:{}}};var Fi={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]};const Bi=Object.create(null);for(const e in Fi)Object.hasOwn(Fi,e)&&(Bi[Fi[e]]=e);const Hi={to:{},get:{}};function Gi(e,t,a){return Math.min(Math.max(t,e),a)}function Wi(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}Hi.get=function(e){let t,a;switch(e.slice(0,3).toLowerCase()){case"hsl":t=Hi.get.hsl(e),a="hsl";break;case"hwb":t=Hi.get.hwb(e),a="hwb";break;default:t=Hi.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},Hi.get.rgb=function(e){if(!e)return null;let t,a,i,r=[0,0,0,1];if(t=e.match(/^#([a-f\d]{6})([a-f\d]{2})?$/i)){for(i=t[2],t=t[1],a=0;a<3;a++){const e=2*a;r[a]=Number.parseInt(t.slice(e,e+2),16)}i&&(r[3]=Number.parseInt(i,16)/255)}else if(t=e.match(/^#([a-f\d]{3,4})$/i)){for(t=t[1],i=t[3],a=0;a<3;a++)r[a]=Number.parseInt(t[a]+t[a],16);i&&(r[3]=Number.parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)r[a]=Number.parseInt(t[a+1],10);t[4]&&(r[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:Object.hasOwn(Fi,t[1])?(r=Fi[t[1]],r[3]=1,r):null:null;for(a=0;a<3;a++)r[a]=Math.round(2.55*Number.parseFloat(t[a+1]));t[4]&&(r[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}for(a=0;a<3;a++)r[a]=Gi(r[a],0,255);return r[3]=Gi(r[3],0,1),r},Hi.get.hsl=function(e){if(!e)return null;const 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){const e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,Gi(Number.parseFloat(t[2]),0,100),Gi(Number.parseFloat(t[3]),0,100),Gi(Number.isNaN(e)?1:e,0,1)]}return null},Hi.get.hwb=function(e){if(!e)return null;const t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){const e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,Gi(Number.parseFloat(t[2]),0,100),Gi(Number.parseFloat(t[3]),0,100),Gi(Number.isNaN(e)?1:e,0,1)]}return null},Hi.to.hex=function(...e){return"#"+Wi(e[0])+Wi(e[1])+Wi(e[2])+(e[3]<1?Wi(Math.round(255*e[3])):"")},Hi.to.rgb=function(...e){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]+")"},Hi.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+a+"%, "+i+"%)":"rgba("+t+"%, "+a+"%, "+i+"%, "+e[3]+")"},Hi.to.hsl=function(...e){return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Hi.to.hwb=function(...e){let t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Hi.to.keyword=function(...e){return Bi[e.slice(0,3)]};const Yi={};for(const e of Object.keys(Fi))Yi[Fi[e]]=e;const Vi={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"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},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"]}},zi=(6/29)**3;function ji(e){const t=e>.0031308?1.055*e**(1/2.4)-.055:12.92*e;return Math.min(Math.max(0,t),1)}function Ki(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(Vi)){if(!("channels"in Vi[e]))throw new Error("missing channels property: "+e);if(!("labels"in Vi[e]))throw new Error("missing channel labels property: "+e);if(Vi[e].labels.length!==Vi[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:a}=Vi[e];delete Vi[e].channels,delete Vi[e].labels,Object.defineProperty(Vi[e],"channels",{value:t}),Object.defineProperty(Vi[e],"labels",{value:a})}function qi(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}function $i(e){const t=function(){const e={},t=Object.keys(Vi);for(let{length:a}=t,i=0;i<a;i++)e[t[i]]={distance:-1,parent:null};return e}(),a=[e];for(t[e].distance=0;a.length>0;){const e=a.pop(),i=Object.keys(Vi[e]);for(let{length:r}=i,n=0;n<r;n++){const r=i[n],l=t[r];-1===l.distance&&(l.distance=t[e].distance+1,l.parent=e,a.unshift(r))}}return t}function Xi(e,t){return function(a){return t(e(a))}}function Qi(e,t){const a=[t[e].parent,e];let i=Vi[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)a.unshift(t[r].parent),i=Xi(Vi[t[r].parent][r],i),r=t[r].parent;return i.conversion=a,i}function Zi(e){const t=$i(e),a={},i=Object.keys(t);for(let{length:e}=i,r=0;r<e;r++){const e=i[r];null!==t[e].parent&&(a[e]=Qi(e,t))}return a}Vi.rgb.hsl=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,r=Math.min(t,a,i),n=Math.max(t,a,i),l=n-r;let o,s;switch(n){case r:o=0;break;case t:o=(a-i)/l;break;case a:o=2+(i-t)/l;break;case i:o=4+(t-a)/l}o=Math.min(60*o,360),o<0&&(o+=360);const c=(r+n)/2;return s=n===r?0:c<=.5?l/(n+r):l/(2-n-r),[o,100*s,100*c]},Vi.rgb.hsv=function(e){let t,a,i,r,n;const l=e[0]/255,o=e[1]/255,s=e[2]/255,c=Math.max(l,o,s),d=c-Math.min(l,o,s),m=function(e){return(c-e)/6/d+.5};if(0===d)r=0,n=0;else{switch(n=d/c,t=m(l),a=m(o),i=m(s),c){case l:r=i-a;break;case o:r=1/3+t-i;break;case s:r=2/3+a-t}r<0?r+=1:r>1&&(r-=1)}return[360*r,100*n,100*c]},Vi.rgb.hwb=function(e){const t=e[0],a=e[1];let i=e[2];const r=Vi.rgb.hsl(e)[0],n=1/255*Math.min(t,Math.min(a,i));return i=1-1/255*Math.max(t,Math.max(a,i)),[r,100*n,100*i]},Vi.rgb.oklab=function(e){const t=Ki(e[0]/255),a=Ki(e[1]/255),i=Ki(e[2]/255),r=Math.cbrt(.4122214708*t+.5363325363*a+.0514459929*i),n=Math.cbrt(.2119034982*t+.6806995451*a+.1073969566*i),l=Math.cbrt(.0883024619*t+.2817188376*a+.6299787005*i);return[100*(.2104542553*r+.793617785*n-.0040720468*l),100*(1.9779984951*r-2.428592205*n+.4505937099*l),100*(.0259040371*r+.7827717662*n-.808675766*l)]},Vi.rgb.cmyk=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,r=Math.min(1-t,1-a,1-i);return[100*((1-t-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*((1-i-r)/(1-r)||0),100*r]},Vi.rgb.keyword=function(e){const t=Yi[e];if(t)return t;let a,i=Number.POSITIVE_INFINITY;for(const t of Object.keys(Fi)){const r=qi(e,Fi[t]);r<i&&(i=r,a=t)}return a},Vi.keyword.rgb=function(e){return Fi[e]},Vi.rgb.xyz=function(e){const t=Ki(e[0]/255),a=Ki(e[1]/255),i=Ki(e[2]/255);return[100*(.4124564*t+.3575761*a+.1804375*i),100*(.2126729*t+.7151522*a+.072175*i),100*(.0193339*t+.119192*a+.9503041*i)]},Vi.rgb.lab=function(e){const t=Vi.rgb.xyz(e);let a=t[0],i=t[1],r=t[2];a/=95.047,i/=100,r/=108.883,a=a>zi?a**(1/3):7.787*a+16/116,i=i>zi?i**(1/3):7.787*i+16/116,r=r>zi?r**(1/3):7.787*r+16/116;return[116*i-16,500*(a-i),200*(i-r)]},Vi.hsl.rgb=function(e){const t=e[0]/360,a=e[1]/100,i=e[2]/100;let r,n;if(0===a)return n=255*i,[n,n,n];const l=i<.5?i*(1+a):i+a-i*a,o=2*i-l,s=[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*(l-o)*r:2*r<1?l:3*r<2?o+(l-o)*(2/3-r)*6:o,s[e]=255*n;return s},Vi.hsl.hsv=function(e){const t=e[0];let a=e[1]/100,i=e[2]/100,r=a;const n=Math.max(i,.01);i*=2,a*=i<=1?i:2-i,r*=n<=1?n:2-n;return[t,100*(0===i?2*r/(n+r):2*a/(i+a)),100*((i+a)/2)]},Vi.hsv.rgb=function(e){const t=e[0]/60,a=e[1]/100;let i=e[2]/100;const r=Math.floor(t)%6,n=t-Math.floor(t),l=255*i*(1-a),o=255*i*(1-a*n),s=255*i*(1-a*(1-n));switch(i*=255,r){case 0:return[i,s,l];case 1:return[o,i,l];case 2:return[l,i,s];case 3:return[l,o,i];case 4:return[s,l,i];case 5:return[i,l,o]}},Vi.hsv.hsl=function(e){const t=e[0],a=e[1]/100,i=e[2]/100,r=Math.max(i,.01);let n,l;l=(2-a)*i;const o=(2-a)*r;return n=a*r,n/=o<=1?o:2-o,n=n||0,l/=2,[t,100*n,100*l]},Vi.hwb.rgb=function(e){const t=e[0]/360;let a=e[1]/100,i=e[2]/100;const r=a+i;let n;r>1&&(a/=r,i/=r);const l=Math.floor(6*t),o=1-i;n=6*t-l,1&l&&(n=1-n);const s=a+n*(o-a);let c,d,m;switch(l){default:case 6:case 0:c=o,d=s,m=a;break;case 1:c=s,d=o,m=a;break;case 2:c=a,d=o,m=s;break;case 3:c=a,d=s,m=o;break;case 4:c=s,d=a,m=o;break;case 5:c=o,d=a,m=s}return[255*c,255*d,255*m]},Vi.cmyk.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},Vi.xyz.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100;let r,n,l;return r=3.2404542*t+-1.5371385*a+-.4985314*i,n=-.969266*t+1.8760108*a+.041556*i,l=.0556434*t+-.2040259*a+1.0572252*i,r=ji(r),n=ji(n),l=ji(l),[255*r,255*n,255*l]},Vi.xyz.lab=function(e){let t=e[0],a=e[1],i=e[2];t/=95.047,a/=100,i/=108.883,t=t>zi?t**(1/3):7.787*t+16/116,a=a>zi?a**(1/3):7.787*a+16/116,i=i>zi?i**(1/3):7.787*i+16/116;return[116*a-16,500*(t-a),200*(a-i)]},Vi.xyz.oklab=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100,r=Math.cbrt(.8189330101*t+.3618667424*a-.1288597137*i),n=Math.cbrt(.0329845436*t+.9293118715*a+.0361456387*i),l=Math.cbrt(.0482003018*t+.2643662691*a+.633851707*i);return[100*(.2104542553*r+.793617785*n-.0040720468*l),100*(1.9779984951*r-2.428592205*n+.4505937099*l),100*(.0259040371*r+.7827717662*n-.808675766*l)]},Vi.oklab.oklch=function(e){return Vi.lab.lch(e)},Vi.oklab.xyz=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100,r=(.999999998*t+.396337792*a+.215803758*i)**3,n=(1.000000008*t-.105561342*a-.063854175*i)**3,l=(1.000000055*t-.089484182*a-1.291485538*i)**3;return[100*(1.227013851*r-.55779998*n+.281256149*l),100*(-.040580178*r+1.11225687*n-.071676679*l),100*(-.076381285*r-.421481978*n+1.58616322*l)]},Vi.oklab.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100,r=(t+.3963377774*a+.2158037573*i)**3,n=(t-.1055613458*a-.0638541728*i)**3,l=(t-.0894841775*a-1.291485548*i)**3;return[255*ji(4.0767416621*r-3.3077115913*n+.2309699292*l),255*ji(-1.2684380046*r+2.6097574011*n-.3413193965*l),255*ji(-.0041960863*r-.7034186147*n+1.707614701*l)]},Vi.oklch.oklab=function(e){return Vi.lch.lab(e)},Vi.lab.xyz=function(e){let t,a,i;a=(e[0]+16)/116,t=e[1]/500+a,i=a-e[2]/200;const r=a**3,n=t**3,l=i**3;return a=r>zi?r:(a-16/116)/7.787,t=n>zi?n:(t-16/116)/7.787,i=l>zi?l:(i-16/116)/7.787,t*=95.047,a*=100,i*=108.883,[t,a,i]},Vi.lab.lch=function(e){const t=e[0],a=e[1],i=e[2];let r;r=360*Math.atan2(i,a)/2/Math.PI,r<0&&(r+=360);return[t,Math.sqrt(a*a+i*i),r]},Vi.lch.lab=function(e){const t=e[0],a=e[1],i=e[2]/360*2*Math.PI;return[t,a*Math.cos(i),a*Math.sin(i)]},Vi.rgb.ansi16=function(e,t=null){const[a,i,r]=e;let n=null===t?Vi.rgb.hsv(e)[2]:t;if(n=Math.round(n/50),0===n)return 30;let l=30+(Math.round(r/255)<<2|Math.round(i/255)<<1|Math.round(a/255));return 2===n&&(l+=60),l},Vi.hsv.ansi16=function(e){return Vi.rgb.ansi16(Vi.hsv.rgb(e),e[2])},Vi.rgb.ansi256=function(e){const t=e[0],a=e[1],i=e[2];if(t>>4==a>>4&&a>>4==i>>4)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(a/255*5)+Math.round(i/255*5)},Vi.ansi16.rgb=function(e){let t=(e=e[0])%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const a=.5*(Math.trunc(e>50)+1);return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},Vi.ansi256.rgb=function(e){if((e=e[0])>=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]},Vi.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".slice(t.length)+t},Vi.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let a=t[0];3===t[0].length&&(a=[...a].map(e=>e+e).join(""));const i=Number.parseInt(a,16);return[i>>16&255,i>>8&255,255&i]},Vi.rgb.hcg=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,r=Math.max(Math.max(t,a),i),n=Math.min(Math.min(t,a),i),l=r-n;let o;return o=l<=0?0:r===t?(a-i)/l%6:r===a?2+(i-t)/l:4+(t-a)/l,o/=6,o%=1,[360*o,100*l,100*(l<1?n/(1-l):0)]},Vi.hsl.hcg=function(e){const t=e[1]/100,a=e[2]/100,i=a<.5?2*t*a:2*t*(1-a);let r=0;return i<1&&(r=(a-.5*i)/(1-i)),[e[0],100*i,100*r]},Vi.hsv.hcg=function(e){const t=e[1]/100,a=e[2]/100,i=t*a;let r=0;return i<1&&(r=(a-i)/(1-i)),[e[0],100*i,100*r]},Vi.hcg.rgb=function(e){const t=e[0]/360,a=e[1]/100,i=e[2]/100;if(0===a)return[255*i,255*i,255*i];const r=[0,0,0],n=t%1*6,l=n%1,o=1-l;let s=0;switch(Math.floor(n)){case 0:r[0]=1,r[1]=l,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=l;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=l,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return s=(1-a)*i,[255*(a*r[0]+s),255*(a*r[1]+s),255*(a*r[2]+s)]},Vi.hcg.hsv=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);let i=0;return a>0&&(i=t/a),[e[0],100*i,100*a]},Vi.hcg.hsl=function(e){const t=e[1]/100,a=e[2]/100*(1-t)+.5*t;let i=0;return a>0&&a<.5?i=t/(2*a):a>=.5&&a<1&&(i=t/(2*(1-a))),[e[0],100*i,100*a]},Vi.hcg.hwb=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],100*(a-t),100*(1-a)]},Vi.hwb.hcg=function(e){const t=e[1]/100,a=1-e[2]/100,i=a-t;let r=0;return i<1&&(r=(a-i)/(1-i)),[e[0],100*i,100*r]},Vi.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Vi.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Vi.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Vi.gray.hsl=function(e){return[0,0,e[0]]},Vi.gray.hsv=Vi.gray.hsl,Vi.gray.hwb=function(e){return[0,100,e[0]]},Vi.gray.cmyk=function(e){return[0,0,0,e[0]]},Vi.gray.lab=function(e){return[e[0],0,0]},Vi.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(a.length)+a},Vi.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Ji={},er=Object.keys(Vi);function tr(e){const t=function(...t){const a=t[0];return null==a?a:(a.length>1&&(t=a),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function ar(e){const t=function(...t){const a=t[0];if(null==a)return a;a.length>1&&(t=a);const i=e(t);if("object"==typeof i)for(let{length:e}=i,t=0;t<e;t++)i[t]=Math.round(i[t]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of er){Ji[e]={},Object.defineProperty(Ji[e],"channels",{value:Vi[e].channels}),Object.defineProperty(Ji[e],"labels",{value:Vi[e].labels});const t=Zi(e),a=Object.keys(t);for(const i of a){const a=t[i];Ji[e][i]=ar(a),Ji[e][i].raw=tr(a)}}const ir=["keyword","gray","hex"],rr={};for(const e of Object.keys(Ji))rr[[...Ji[e].labels].sort().join("")]=e;const nr={};function lr(e,t){if(!(this instanceof lr))return new lr(e,t);if(t&&t in ir&&(t=null),t&&!(t in Ji))throw new Error("Unknown model: "+t);let a,i;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof lr)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=Hi.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,i=Ji[this.model].channels,this.color=t.value.slice(0,i),this.valpha="number"==typeof t.value[i]?t.value[i]:1}else if(e.length>0){this.model=t||"rgb",i=Ji[this.model].channels;const a=Array.prototype.slice.call(e,0,i);this.color=dr(a,i),this.valpha="number"==typeof e[i]?e[i]: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 i=t.sort().join("");if(!(i in rr))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=rr[i];const{labels:r}=Ji[this.model],n=[];for(a=0;a<r.length;a++)n.push(e[r[a]]);this.color=dr(n)}if(nr[this.model])for(i=Ji[this.model].channels,a=0;a<i;a++){const e=nr[this.model][a];e&&(this.color[a]=e(this.color[a]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}lr.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Hi.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const a=1===t.valpha?t.color:[...t.color,this.valpha];return Hi.to[t.model](...a)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),a=1===t.valpha?t.color:[...t.color,this.valpha];return Hi.to.rgb.percent(...a)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Ji[this.model],{labels:a}=Ji[this.model];for(let i=0;i<t;i++)e[a[i]]=this.color[i];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 lr([...this.color.map(or(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new lr([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:sr("rgb",0,cr(255)),green:sr("rgb",1,cr(255)),blue:sr("rgb",2,cr(255)),hue:sr(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:sr("hsl",1,cr(100)),lightness:sr("hsl",2,cr(100)),saturationv:sr("hsv",1,cr(100)),value:sr("hsv",2,cr(100)),chroma:sr("hcg",1,cr(100)),gray:sr("hcg",2,cr(100)),white:sr("hwb",1,cr(100)),wblack:sr("hwb",2,cr(100)),cyan:sr("cmyk",0,cr(100)),magenta:sr("cmyk",1,cr(100)),yellow:sr("cmyk",2,cr(100)),black:sr("cmyk",3,cr(100)),x:sr("xyz",0,cr(95.047)),y:sr("xyz",1,cr(100)),z:sr("xyz",2,cr(108.833)),l:sr("lab",0,cr(100)),a:sr("lab",1),b:sr("lab",2),keyword(e){return void 0!==e?new lr(e):Ji[this.model].keyword(this.color)},hex(e){return void 0!==e?new lr(e):Hi.to.hex(...this.rgb().round().color)},hexa(e){if(void 0!==e)return new lr(e);const t=this.rgb().round().color;let a=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===a.length&&(a="0"+a),Hi.to.hex(...t)+a},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[a,i]of e.entries()){const e=i/255;t[a]=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(),a=e.luminosity();return t>a?(t+.05)/(a+.05):(a+.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 lr.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 a=t.color[0];return a=(a+e)%360,a=a<0?360+a:a,t.color[0]=a,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 a=e.rgb(),i=this.rgb(),r=void 0===t?.5:t,n=2*r-1,l=a.alpha()-i.alpha(),o=((n*l===-1?n:(n+l)/(1+n*l))+1)/2,s=1-o;return lr.rgb(o*a.red()+s*i.red(),o*a.green()+s*i.green(),o*a.blue()+s*i.blue(),a.alpha()*r+i.alpha()*(1-r))}};for(const e of Object.keys(Ji)){if(ir.includes(e))continue;const{channels:t}=Ji[e];lr.prototype[e]=function(...t){return this.model===e?new lr(this):t.length>0?new lr(t,e):new lr([...(a=Ji[this.model][e].raw(this.color),Array.isArray(a)?a:[a]),this.valpha],e);var a},lr[e]=function(...a){let i=a[0];return"number"==typeof i&&(i=dr(a,t)),new lr(i,e)}}function or(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function sr(e,t,a){e=Array.isArray(e)?e:[e];for(const i of e)(nr[i]||=[])[t]=a;return e=e[0],function(i){let r;return void 0!==i?(a&&(i=a(i)),r=this[e](),r.color[t]=i,r):(r=this[e]().color[t],a&&(r=a(r)),r)}}function cr(e){return function(t){return Math.max(0,Math.min(e,t))}}function dr(e,t){for(let a=0;a<t;a++)"number"!=typeof e[a]&&(e[a]=0);return e}const mr=(e,t)=>lr(e).darken(t).rgb().string(),ur={inherit:"inherit",transparent:"transparent",black:Ui.colors.black,white:Ui.colors.white,display:Ui.colors.black,darkDisplay:Ui.colors.white,highContrastColor:Ui.colors.primary400,medContrastColor:Ui.colors.primary200,lowContrastColor:Ui.colors.primary50,darkHighContrastColor:Ui.colors.primary400,darkMedContrastColor:Ui.colors.primary600,darkLowContrastColor:Ui.colors.primary900,bodyText:Ui.colors.primary,bodyTextInverted:Ui.colors.primary50,darkBodyText:Ui.colors.primary50,bodyBackground:Ui.colors.white,darkBodyBackground:Ui.colors.primary,headerBackground:Ui.colors.white,darkHeaderBackground:Ui.colors.primary,headerText:Ui.colors.primary,darkHeaderText:Ui.colors.white,footerBackground:Ui.colors.white,darkFooterBackground:Ui.colors.primary,footerText:Ui.colors.primary,darkFooterText:Ui.colors.primary50,cardBackground:Ui.colors.white,cardBackgroundHover:Ui.colors.primary100,cardText:Ui.colors.primary900,darkCardBackground:Ui.colors.primary900,darkCardText:Ui.colors.white,...Object.assign({},...Object.keys(Ui.colors).map(e=>{const t=Ui.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,lr(a).lighten(i).rgb().string()),darker:mr(t,.1)}};var a,i}))},hr={...Ui,colors:{...Ui.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:{...Ui.borderRadius},fontWeight:{...Ui.fontWeight,light:"300",normal:"400",bold:"700"},fontSize:{...Ui.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.05rem",{lineHeight:"1.4rem"}],"3xl":["1.3125rem",{lineHeight:"1.575rem"}],"4xl":["1.575rem",{lineHeight:"1.75rem"}],"5xl":["2.1rem",{lineHeight:"2.275rem"}],"6xl":["2.625rem",{lineHeight:"2.8rem"}],"7xl":["3.15rem",{lineHeight:"3.5rem"}],"8xl":["4.2rem",{lineHeight:"4.9rem"}],"9xl":["5.6rem",{lineHeight:"6.3rem"}]}},pr=(e,t)=>lr(e).darken(t).rgb().string(),fr={...ur,highContrast:hr.colors.primary400,medContrast:hr.colors.primary200,lowContrast:hr.colors.primary50,darkHighContrast:hr.colors.primary400,darkMedContrast:hr.colors.primary600,darkLowContrast:hr.colors.primary900,bodyBackground:hr.colors.white,darkBodyBackground:hr.colors.primary900,bodyText:"#171717",darkBodyText:"#EEEEEE",headerBackground:hr.colors.primary,darkHeaderBackground:hr.colors.primary900,headerText:hr.colors.white,darkHeaderText:hr.colors.white,footerBackground:hr.colors.primary,darkFooterBackground:hr.colors.primary900,footerText:hr.colors.white,darkFooterText:hr.colors.white,cardBackground:hr.colors.white,cardBackgroundHover:hr.colors.primary100,cardText:hr.colors.primary900,darkCardBackground:hr.colors.primary900,darkCardText:hr.colors.white,...Object.assign({},...Object.keys(hr.colors).map(e=>{const t=hr.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,lr(a).lighten(i).rgb().string()),darker:pr(t,.1)}};var a,i}))},gr={sans:["sans-serif"],serif:["serif"],mono:["monospace"],body:["var(--font-body)"],heading:["var(--font-heading)"],display:["var(--font-heading)"],body:["var(--font-body)"],heading:["var(--font-heading)"],display:["var(--font-display)"]},Nr={...{borderRadius:{btnBorderRadius:Ui.borderRadius.DEFAULT}},raised:!1},Er={colors:{...fr},fontFamily:{...gr},fontSize:{...hr?.fontSize},fontWeight:{...hr?.fontWeight},buttons:{...Nr},screens:{...hr?.screens},borderRadius:{...hr?.borderRadius},spacing:{...hr?.spacing},extend:{...hr?.extend}};export{Ha as Accordion,pi as AccountScreen,kt as AmplifyContext,Pt as AmplifyProvider,ye as AnimationCounter,la as AnimationSet1,xt as AppContext,wt as AppProvider,fi as AuthScreen,Ea as Authenticator,ct as Avatar,Re as BTN_SIZES,Ie as BTN_TYPES,Te as BTN_VARIANTS,ve as Blockquote,Le as Button,dt as ButtonGroup,we as COPY_ALIGN,ke as COPY_CONTEXTUAL,Pe as COPY_SIZE,Me as COPY_TAG,De as COPY_TRANSFORM,Wa as CPL_SPACING,Va as CRL_SIZE,Be as Calendar,Kt as Card,Da as CardGrid,gi as CardGridScreen,xa as CardVariant,Sa as Carousel,Pa as Cart,Ut as CartProvider,Ni as CatalogueScreen,Ei as ChallengeLibraryScreen,Si as ChallengeScreen,_e as Checkbox,Fe as Chip,Ye as Collapsible,ra as Container,Ya as ContentPageLayout,za as ContentRowsLayout,yi as ContentScreen,Ue as Copy,Ci as DashboardScreen,qt as DisplayHeading,vi as FAQScreen,Xt as FIELD_TYPES,Ve as FileUpload,Ua as Footer,Na as ForgotPasswordForm,$t as Form,Zt as FormField,Qt as FormSelect,qa as FullContentBackgroundImage,Ka as FullScreenVideoModal,je as HEADING_ALIGN,ze as HEADING_TAGS,Ke as HEADING_TRANSFORM,Ma as Header,qe as Heading,na as Hero,Ii as HomeScreen,$e as Hr,ft as HtmlContent,Ce as Icon,Xe as Image,St as InvalidDurationError,Qe as Label,xe as Link,et as List,at as ListItem,Je as ListTag,Oe as Loader,fa as LoginForm,tt as Logo,Ti as LogoutScreen,aa as Menu,Ri as MenuScreen,di as MultiCheckboxFacet,yt as MultipleFractionsError,Oi as NotFoundScreen,it as Notice,ja as OTPInput,Ca as PanelCards,_a as PanelCustom,va as PanelFeature,Ta as PanelHero,La as PanelIntro,Ra as PanelProduct,wa as PanelScroller,Oa as PanelVideo,_i as PasswordResetAuthScreen,Li as PasswordResetScreen,hi as ProfileForm,xi as ProfileScreen,ka as PromoCodeForm,rt as Radio,ga as RegisterForm,ui as ResetPasswordAuthForm,mi as ResetPasswordForm,$a as ResultAsTypes,ya as SPACING,st as STRINGS_EN,ki as ScheduleScreen,Fa as Screen,oi as Search,Jt as Share,ci as SingleLinksFacet,si as SingleSelectFacet,Ga as SubscriptionManager,Pi as SubscriptionScreen,nt as Switch,ea as Tabs,ot as TextInput,Ot as ThemeContext,Lt as ThemeProvider,Ze as Variants,Ia as Video,ta as VisitUs,Mi as WorkoutScreen,Rt as defaultTheme,It as formatDuration,Tt as getRandomImageFromArray,Ct as parseDuration,Er as theme,vt as truncateString,Dt as useAppContext,Ft as useCartContext,Ht as useLanguage,Gt as useTheme,_t as useThemeContext,ua as validEmail,ha as validPassword,pa as validatePhoneNumber};
|