@4alldigital/foundation-ui--gamma 1.76.1 → 1.76.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/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,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 y}from"framer-motion";import{Icon as A}from"@iconify/react";import{twMerge as S}from"tailwind-merge";import{getDefaultClassNames as v,DayPicker as C}from"react-day-picker";import*as I from"@radix-ui/react-collapsible";import T,{attributesToProps as R,domToReact as O}from"html-react-parser";import{parse as x}from"iso8601-duration";import{Amplify as L,Hub as _,Auth as w}from"aws-amplify";import k from"react-hover-video-player";import{useForm as D,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{SearchProvider as le,WithSearch as oe,ErrorBoundary as se,Paging as ce,PagingInfo as de,ResultsPerPage as me,Sorting as ue,Results as he,Facet as pe,SearchBox as fe}from"@elastic/react-search-ui";import ge from"rc-pagination";import Ne from"rc-pagination/lib/locale/en_US";import Ee from"he";import{format as be,startOfDay as ye}from"date-fns";const Ae=({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)})};Ae.displayName="AnimationCounter";const Se=({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});Se.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(Se,{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 Ce,Ie,Te;ve.displayName="Blockquote",function(e){e.SUBMIT="submit",e.RESET="reset",e.BUTTON="button"}(Ce||(Ce={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link"}(Ie||(Ie={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(Te||(Te={}));const Re=({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..."})]})});Re.displayName="Loader";const Oe=({variant:i=Ie.PRIMARY,size:r=Te.MEDIUM,type:n=Ce.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:y,className:A,isLoading:v,offsetFont:C=!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(p("button rounded-btnBorderRadius",{shadow:s},{uppercase:c},{"auto-cols-auto grid-cols-2 gap-4":v||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===Ie.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":i===Ie.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":i===Ie.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===Ie.LINK},{"rounded-full leading-none":o},A)),R=p(I?.[r]?.icon);return e("button",{id:m,"data-testid":y||m||"Button",onClick:f,className:T,type:n,disabled:u,"aria-label":h,role:"button",children:t(a,{children:[C?e("span",{className:"brand-font-offset",children:d}):d,g&&!N&&e("span",{className:"flex items-center",children:e(Se,{name:g,className:R})}),N&&e("span",{className:"flex items-center",children:e(Se,{name:"carbon:launch",className:R})}),v&&e("div",{className:"flex items-center",children:e(Re,{size:4})})]})})};Oe.displayName="Button";const xe=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(Se,{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})]})});xe.displayName="Checkbox";const Le=({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(Se,{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 _e,we,ke,De,Pe;Le.displayName="Link",function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(_e||(_e={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(we||(we={})),function(e){e.INVERTED="inverted",e.MUTED="muted"}(ke||(ke={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.INTRO="intro"}(De||(De={})),function(e){e.P="p",e.SPAN="span",e.DIV="div",e.SMALL="small"}(Pe||(Pe={}));const Me=({children:t,as:a=Pe.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:S(m),children:t})};Me.displayName="Copy";const Ue=({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:De.SMALL};case"medium":default:return{iconSize:20,copySize:De.MEDIUM};case"large":return{iconSize:28,copySize:De.LARGE}}},[s]),h=S(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(Le,{"data-testid":a||"Chip",className:h,onClick:m,children:[e(Me,{className:"mb-0",as:Pe.SPAN,size:u.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(Se,{name:c,size:u.iconSize})})]}):t("div",{"data-testid":a||"Chip",className:h,children:[e(Me,{className:"mb-0",as:Pe.SPAN,size:u.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(Se,{name:c,size:u.iconSize})})]})};Ue.displayName="Chip";const Fe=({testID:t,className:a,classNames:i,selected:r,onSelect:n,datesWithContent:l=[],disabled:o,showOutsideDays:s=!0,...c})=>{const d=v();return e("div",{"data-testid":t||"Calendar",className:"flex justify-center",children:e(C,{mode:"single",selected:r,onSelect:n,disabled:o,showOutsideDays:s,modifiers:{hasContent:l},modifiersClassNames:{hasContent:"has-content-date"},className:S("p-3 w-fit",a),classNames:{root:S("w-fit",d.root),months:S("relative flex flex-col gap-4 md:flex-row",d.months),month:S("flex w-full flex-col gap-4",d.month),nav:S("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",d.nav),button_previous:S("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:S("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:S("flex h-9 w-full items-center justify-center px-9",d.month_caption),caption_label:S("select-none font-medium text-sm",d.caption_label),weekdays:S("flex",d.weekdays),weekday:S("text-grey600 dark:text-grey400 flex-1 select-none rounded-md text-[0.8rem] font-normal",d.weekday),week:S("mt-2 flex w-full",d.week),day:S(d.day,'relative aspect-square h-full w-full select-none p-0 text-center [&[data-selected="true"]>button]:border-grey800'),day_button:S(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:S("text-grey400 dark:text-grey600 opacity-50",d.outside),disabled:S("text-grey400 dark:text-grey600 opacity-50",d.disabled),hidden:S("invisible",d.hidden),...i},components:{Chevron:({orientation:t})=>e(Se,{name:"left"===t?"mdi:chevron-left":"mdi:chevron-right",className:"h-4 w-4"})},...c})})};Fe.displayName="Calendar";const Be=n(({className:t,testID:a,children:i,...r},n)=>e(I.Root,{ref:n,"data-testid":a||"Collapsible",className:S(p("collapsible-root",t)),...r,children:i}));Be.displayName="CollapsibleRoot";const He=n(({className:t,children:a,...i},r)=>e(I.Trigger,{ref:r,className:S(p(!t&&"collapsible-trigger","transition duration-500 ease-in-out",t)),...i,children:a}));He.displayName="CollapsibleTrigger";const Ge=n(({className:t,children:a,...i},r)=>e(I.Content,{ref:r,className:S(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}));Ge.displayName="CollapsibleContent";const We={Root:Be,Trigger:He,Content:Ge},Ye=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 Ve,ze,je;Ye.displayName="FileUpload",function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5"}(Ve||(Ve={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(ze||(ze={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize",e.NORMAL_CASE="normal-case"}(je||(je={}));const Ke=({children:t,tag:a=Ve.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:S(h),children:t})};Ke.displayName="Heading";const qe=({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})});qe.displayName="Hr";const $e=({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=S(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})}};$e.displayName="Image";const Xe=({children:t,id:a,transform:i,className:r})=>e("label",{"data-testid":"Label",className:S(p("label mb-2 text-bodyText dark:text-darkBodyText",i,r)),htmlFor:a,children:t});var Qe,Ze;Xe.displayName="Label",function(e){e.UNSTYLED="unstyled",e.INLINE="inline",e.SMALL="small",e.LARGE="large"}(Qe||(Qe={})),function(e){e.OL="ol",e.UL="ul",e.DL="dl",e.DIV="div",e.DT="dt",e.DD="dd",e.LI="li"}(Ze||(Ze={}));const Je=({variants:t,children:a,as:i=Ze.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})};Je.displayName="List";const et=({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($e,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});et.displayName="Logo";const tt=({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(Oe,{variant:Ie.LINK,onClick:a,children:[t("div",{className:"",children:[r&&e("div",{children:e(Se,{name:r,size:24})}),i&&e("div",{children:e(Ke,{flush:!0,tag:Ve.H4,singleLine:!0,children:i})}),n&&e("div",{children:n})]}),e("div",{children:e(Se,{name:"mdi:chevron-right",size:24})})]}),!a&&e("div",{className:"",children:n&&e("div",{children:n})})]});tt.displayName="ListItem";const at=({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(Se,{name:l})}),t("div",{children:[r&&e(Ke,{tag:Ve.H3,children:r}),e(Me,{className:"mb-0",children:n})]}),c&&d&&e("div",{className:"ml-auto flex items-end",children:e(Oe,{variant:Ie.PRIMARY,onClick:c,"aria-label":"Action",size:Te.SMALL,children:d})}),s&&e("div",{className:"absolute top-2 right-4",children:e(Oe,{variant:Ie.LINK,icon:"mdi:close",onClick:s,"aria-label":"Close"})})]})})};at.displayName="Notice";const it=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(Se,{name:"mdi:circle",size:12})})]}),e("label",{className:"label pl-2 leading-none",htmlFor:n,children:r.label})]},n)})})})});it.displayName="Radio";const rt=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 nt;rt.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"}(nt||(nt={}));const lt=n(function({type:a=nt.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===nt.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(Se,{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})]})});lt.displayName="TextInput";const ot={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"}},st=({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($e,{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(Oe,{size:Te.SMALL,rounded:!0,onClick:()=>{m(void 0)},children:ot.UI.REMOVE_BTN_LABEL})})]}),!d&&t(a,{children:[n&&e("div",{className:"absolute w-full h-full flex items-center justify-center",children:e(Xe,{id:r,className:"button cursor-pointer mb-0",children:e(Me,{className:"mb-0",children:ot.UI.UPLOAD})})}),!n&&e(Se,{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)}}})]})};st.displayName="Avatar";const ct=({id:a,testID:i,title:r,text:n,icon:l,href:o,className:s})=>{const c=p("rounded-lg p-6 shadow-sm","bg-tertiary text-cardText border-gray-200","dark:bg-darkCardBackground dark:text-darkCardText dark:border-gray-700",s),d=t("div",{className:"flex gap-4 items-start",children:[l&&e("div",{className:"flex-shrink-0 mt-1",children:e(Se,{name:l,className:"w-6 h-6"})}),t("div",{className:"flex-1",children:[r&&e(Ke,{tag:Ve.H4,className:"mb-2",children:r}),e(Me,{className:"mb-0",children:n})]}),o&&e("div",{className:"flex-shrink-0",children:e(Se,{name:"mdi:chevron-right",className:"w-6 h-6"})})]});return o?e(Le,{href:o,className:"block no-underline hover:no-underline",testID:i||a||"Banner",children:e("div",{className:p(c,"hover:shadow-md transition-shadow duration-200 cursor-pointer"),children:d})}):e("div",{"data-testid":i||a||"Banner",className:c,children:d})};ct.displayName="Banner";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(Oe,{...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(Le,{...a,children:O(t.children,pt)})}if(t.attribs&&"p"===t.name){const a=R(t.attribs);return e(Me,{...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 yt(e){if(""!==e&&null!=e)return parseFloat(e.replace(",","."))}const At=new Error("Invalid duration"),St=new Error("Multiple fractions specified");function vt(e,t=gt){const a=bt.exec(e);if(!a||!a.groups)throw At;let i=!0,r=0;const n={};for(const{unit:e}of Nt)if(a.groups[e]&&(i=!1,n[e]=yt(a.groups[e]),!t.allowMultipleFractions&&!Number.isInteger(n[e])&&(r++,r>1)))throw St;if(i)throw At;const l=n;return a.groups.negative&&(l.negative=!0),l}function Ct(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}function It(e){const t=x(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),xt=({children:t,theme:a})=>e(Ot.Provider,{value:a,children:t}),Lt=()=>{const e=d(Ot);if(void 0===e)throw new Error("useThemeContext must be used within a ThemeProvider");return e},_t=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(_t.Provider,{value:a,children:t}),kt=()=>{const e=d(_t);if(void 0===e)throw new Error("useAppContext must be used within a AppProvider");return e},Dt=m({config:{region:"eu-west-1",oauth:{},cookieStorage:{}}}),Pt=({children:t,value:a})=>(s(()=>{a.config&&L.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(Dt.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(_t);return t("div",{id:a,"data-testid":"CardBasic",className:S(p(ht,u?ut:mt,{"p-4":c},{"hover:scale-100":!m},l)),onClick:u,children:[n&&e("div",{className:S(p("relative w-full overflow-hidden aspect-[16/9]",{rounded:c},n.aspectRatio)),children:e($e,{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(Ke,{tag:Ve.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(Ke,{tag:Ve.H4,singleLine:!0,flush:!0,children:i})}),!h&&r&&e("div",{children:e(Me,{className:"mb-0",children:Ct(r)})}),h&&r&&e("div",{children:e(ft,{className:"mb-0",data:Ct(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(Me,{className:"text-xs",as:Pe.SMALL,children:a},a):0===i?t(Me,{className:"text-xs",as:Pe.SMALL,children:[a," ·"]},a):i===o.length-1?t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a]},a):t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a," ·"]},a))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap flex-1 justify-end",children:[s.like&&e(Oe,{variant:Ie.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.like?.onClick&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(Oe,{variant:Ie.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.share?.onClick&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(Oe,{variant:Ie.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.save?.onClick&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(Oe,{variant:Ie.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.comment?.onClick&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(Oe,{variant:Ie.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.bookmark?.onClick&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(Oe,{variant:Ie.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.report?.onClick&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(Oe,{variant:Ie.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.follow?.onClick&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(Oe,{variant:Ie.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.download?.onClick&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(Oe,{variant:Ie.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.edit?.onClick&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(Oe,{variant:Ie.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Te.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(_t).locale,ot}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(_t);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($e,{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(Me,{bold:!0,transform:we.UPPERCASE,children:f.UI.PURCHASE_TO_ACCESS})}),m&&e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(Oe,{variant:Ie.PRIMARY,icon:"mdi:play",size:Te.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(Ke,{tag:Ve.H5,singleLine:!0,flush:!0,children:i})}),!u&&r&&e("div",{children:e(Me,{className:"mb-0",children:Ct(r)})}),u&&r&&e("div",{children:e(ft,{className:"mb-0",data:Ct(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(Me,{className:"text-xs",as:Pe.SMALL,children:a},a):0===i?t(Me,{className:"text-xs",as:Pe.SMALL,children:[a," ·"]},a):i===o.length-1?t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a]},a):t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a," ·"]},a))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(Oe,{variant:Ie.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.like?.onClick&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(Oe,{variant:Ie.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.share?.onClick&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(Oe,{variant:Ie.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.save?.onClick&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(Oe,{variant:Ie.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.comment?.onClick&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(Oe,{variant:Ie.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.bookmark?.onClick&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(Oe,{variant:Ie.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.report?.onClick&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(Oe,{variant:Ie.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.follow?.onClick&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(Oe,{variant:Ie.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.download?.onClick&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(Oe,{variant:Ie.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.edit?.onClick&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(Oe,{variant:Ie.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Te.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(k,{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($e,{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(Re,{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(Ke,{tag:Ve.H5,singleLine:!0,flush:!0,children:n})}),!u&&l&&e("div",{children:e(Me,{className:"mb-0",children:Ct(l)})}),u&&l&&e("div",{children:e(ft,{className:"mb-0",data:Ct(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(Me,{className:"text-xs",as:Pe.SMALL,children:a},a):0===i?t(Me,{className:"text-xs",as:Pe.SMALL,children:[a," ·"]},a):i===c.length-1?t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a]},a):t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a," ·"]},a))}),d&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[d.like&&e(Oe,{variant:Ie.PRIMARY,icon:d.like.isActive?"mdi:like":"mdi:like-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.like?.onClick&&"function"==typeof d.like.onClick&&d.like.onClick({id:r})}}),d.share&&e(Oe,{variant:Ie.PRIMARY,icon:d.share.isActive?"mdi:share":"mdi:share-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.share?.onClick&&"function"==typeof d.share.onClick&&d.share.onClick({id:r})}}),d.save&&e(Oe,{variant:Ie.PRIMARY,icon:d.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.save?.onClick&&"function"==typeof d.save.onClick&&d.save.onClick({id:r})}}),d.comment&&e(Oe,{variant:Ie.PRIMARY,icon:d.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.comment?.onClick&&"function"==typeof d.comment.onClick&&d.comment.onClick({id:r})}}),d.bookmark&&e(Oe,{variant:Ie.PRIMARY,icon:d.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.bookmark?.onClick&&"function"==typeof d.bookmark.onClick&&d.bookmark.onClick({id:r})}}),d.report&&e(Oe,{variant:Ie.PRIMARY,icon:d.report.isActive?"mdi:flag":"mdi:flag-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.report?.onClick&&"function"==typeof d.report.onClick&&d.report.onClick({id:r})}}),d.follow&&e(Oe,{variant:Ie.PRIMARY,icon:d.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.follow?.onClick&&"function"==typeof d.follow.onClick&&d.follow.onClick({id:r})}}),d.download&&e(Oe,{variant:Ie.PRIMARY,icon:d.download.isActive?"mdi:download":"mdi:download-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.download?.onClick&&"function"==typeof d.download.onClick&&d.download.onClick({id:r})}}),d.edit&&e(Oe,{variant:Ie.PRIMARY,icon:d.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.edit?.onClick&&"function"==typeof d.edit.onClick&&d.edit.onClick({id:r})}}),d.delete&&e(Oe,{variant:Ie.PRIMARY,icon:d.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Te.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:S(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(Se,{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(Ke,{tag:Ve.H5,singleLine:!0,children:i}),r&&e(Me,{bold:!0,children:r})]}),e("div",{children:n&&e(Me,{align:d,children:n})})]}),s&&e(Oe,{variant:Ie.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:S(p("relative w-full overflow-hidden h-full",l.aspectRatio)),children:e($e,{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(Se,{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(Ke,{tag:Ve.H4,children:r})}),!u&&n&&e("div",{children:e(Me,{className:"mb-0",children:Ct(n)})}),u&&n&&e("div",{children:e(ft,{className:"mb-0",data:Ct(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:S(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(Ae,{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(Ke,{tag:Ve.H2,flush:!0,children:n?.item})}),e("div",{className:"flex flex-1 items-center justify-center",children:e(Me,{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=Ve.H1,colorOverride:l})=>{const o=i?.split(" ");return e("div",{"data-testid":"DisplayHeading",className:p("relative display-heading-wrapper",l),children:e(Ke,{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=Ie.PRIMARY,initialValues:h={},isBoxed:f=!1,submitType:g=Ce.SUBMIT,disabledSubmitWithReturn:N=!0,isDisabled:E=!1})=>{const b=D({defaultValues:h,mode:"onBlur",reValidateMode:"onChange"}),y=r(h);s(()=>{JSON.stringify(y.current)!==JSON.stringify(h)&&(b.reset(h),y.current=h)},[h]),s(()=>{if(o&&"function"==typeof o){const e=b.watch((e,t)=>{o(e,t)});return()=>e.unsubscribe()}},[]);const A=p({"sr-only":c}),{formState:{isSubmitting:S,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":S},i),children:[a,n&&e("div",{className:"flex items-center justify-end",children:e(Oe,{id:m||n,className:A,ariaLabel:d||n||"Submit",type:g,outline:!0,isLoading:S,disabled:S||!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(Se,{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:y,formState:A}=M(),{errors:S}=A,v=r&&i!==Xt.CHECKBOX,C=n||Boolean(f.required)?`${r} *`:r;return e("div",{className:"relative",children:t("div",{"data-testid":"FormField",className:"mb-4",children:[v&&e("div",{className:"flex items-baseline justify-between",children:e(Xe,{id:a,children:C})}),e("div",{className:"mb-1",children:e(U,{defaultValue:"",name:a,control:y,rules:f,render:({field:c})=>((i,c)=>{switch(i){case Xt.HIDDEN:return e("input",{type:nt.HIDDEN,disabled:d,...c});case Xt.TEXT:return e(lt,{type:nt.TEXT,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:N,...c});case Xt.PASSWORD:{const a=E?nt.TEXT:nt.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(Se,{name:"mdi:eye-off",size:24})}:{type:"button","aria-label":u,className:p(i,"form-icon"),children:e(Se,{name:"mdi:eye",size:24})})}),e(lt,{type:a,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:N,...c})]})}case Xt.TEXTAREA:return e(lt,{type:nt.TEXTAREA,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.EMAIL:return e(lt,{type:nt.EMAIL,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:N,...c});case Xt.DATE:return e(lt,{type:nt.DATE,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.DATETIME:return e(lt,{type:nt.DATETIME,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.NUMBER:return e(lt,{type:nt.NUMBER,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.CHECKBOX:return e(xe,{required:n||Boolean(f.required),id:a,className:l,label:r,disabled:d,...c});case Xt.RADIO:return e(it,{required:n||Boolean(f.required),id:a,className:l,options:s,disabled:d,...c});case Xt.SWITCH:return e(rt,{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(Ye,{required:n||Boolean(f.required),id:a,className:l,disabled:d,onChangeCallback:e=>{g(e)},...c});default:return e(lt,{type:nt.TEXT,required:n||Boolean(f.required),disabled:d,icon:o,className:l,...c})}})(i,c)})}),m&&e("div",{className:"formfield-description",children:e(Me,{size:De.SMALL,className:"mb-0",children:m})}),S[a]&&e("div",{className:"formfield-error text-error italic",children:e(Me,{size:De.SMALL,className:"mb-0",children:S?.[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(Me,{as:Pe.P,className:"mb-0",children:[ot.UI.SHARE,":"]})}),n?.facebook&&e(F,{url:i,title:r,className:"",children:e(Se,{name:"mdi:facebook"})}),n?.twitter&&e(B,{url:i,title:r,className:"",children:e(Se,{name:"mdi:twitter"})}),n?.whatsapp&&e(H,{url:i,title:r,className:"",children:e(Se,{name:"mdi:whatsapp"})}),n?.email&&e(G,{url:i,title:r,className:"",children:e(Se,{name:"mdi:email"})}),n?.linkedin&&e(W,{url:i,title:r,className:"",children:e(Se,{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(Me,{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(Oe,{variant:Ie.PRIMARY,size:Te.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(i.url)}),r&&e(Oe,{variant:Ie.PRIMARY,size:Te.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(r.url)}),n&&e(Oe,{variant:Ie.PRIMARY,size:Te.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(n.url)}),l&&e(Oe,{variant:Ie.PRIMARY,size:Te.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(l.url)}),o&&e(Oe,{variant:Ie.PRIMARY,size:Te.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:S(p("flex flex-col gap-2",o)),children:[i&&e("div",{children:e(Ke,{tag:Ve.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(Le,{href:a.url,className:"flex gap-1",children:[a.icon&&e(Se,{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(Se,{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=S(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:r,focalAsset2:n,focalAsset3:l})=>{const o={opacity:.001,rotate:0,scale:1,x:200,y:0},s={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($e,{src:i.src,alt:i.alt,fill:!0})}),(r||n)&&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:[r&&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:o,animate:s,children:e($e,{src:r.src,alt:r.alt,fill:!0})}),n&&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:o,animate:{...s,transition:{...s.transition,delay:.3}},children:e($e,{src:n.src,alt:n.alt,fill:!0})})]}),l&&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($e,{src:l.src,fill:!0,alt:l.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{return"Not a valid phone number"}},fa=({handleSubmit:i,initialValues:r,handleTokenCallback:n,showSocialButtons:l=!1,className:o})=>{const c=Ht();s(()=>_.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:ot.FORMS.LOGIN_FORM.SUBMIT,initialValues:r,children:[e(Zt,{name:"email",type:Xt.EMAIL,label:ot.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:ua,autoComplete:"email"}),e(Zt,{name:"password",type:Xt.PASSWORD,label:ot.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),l&&t(a,{children:[e(qe,{}),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(Oe,{onClick:()=>d(K.Google),variant:Ie.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ot.UI.LOGIN_WITH_GOOGLE}),ma&&e(Oe,{onClick:()=>d(K.Apple),variant:Ie.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ot.UI.LOGIN_WITH_APPLE})]})})]})]})};fa.displayName="LoginForm";const ga=({handleSubmit:i,handleTokenCallback:r,showSocialButtons:n=!1,className:l})=>{const o=Ht();s(()=>_.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:ot.FORMS.REGISTER_FORM.SUBMIT,children:[e(Zt,{name:"email",type:Xt.EMAIL,label:ot.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:ua,autoComplete:"email"}),e(Zt,{name:"password",type:Xt.PASSWORD,label:ot.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:ot.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:ha,autoComplete:"new-password"})]}),n&&t(a,{children:[e(qe,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(Oe,{onClick:()=>c(K.Google),variant:Ie.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ot.UI.SIGNUP_WITH_GOOGLE}),e(Oe,{onClick:()=>c(K.Apple),variant:Ie.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ot.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:ot.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,children:e(Zt,{name:"email",type:Xt.EMAIL,label:ot.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(Oe,{variant:Ie.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(Oe,{variant:Ie.LINK,onClick:()=>s(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};function ba({className:t,onClick:a}){return e(Oe,{className:p("absolute -right-2 top-1/2 -translate-y-1/2 z-10",t),onClick:a,icon:"mdi:navigate-next",rounded:!0})}function ya({className:t,onClick:a}){return e(Oe,{className:p("absolute -left-2 top-1/2 -translate-y-1/2 z-10",t),onClick:a,icon:"mdi:navigate-before",rounded:!0})}Ea.displayName="Authenticator";const Aa=({testID:t,data:a,onPressCallback:i,isCentered:r=!1,carouselOptions:n={loop:!1,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,{responsive:s,showArrows:c,loop:d,showDots:m,slidesToShow:u,autoPlay:h,autoplaySpeed:p,vertical:f,easing:g,scrollAnimationDuration:N}=n;return e("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e(Z,{arrows:!o&&c,nextArrow:e(ba,{}),prevArrow:e(ya,{}),centerMode:r,responsive:s,slidesToScroll:1,slidesToShow:u||1,dots:!o&&m,infinite:!o&&d,autoplay:h,autoplaySpeed:p||0,vertical:f,easing:g||"linear",cssEase:g||"linear",speed: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 Sa;Aa.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"}(Sa||(Sa={}));const va=({testID:a,cardData:i,title:n,description:l,withSeparators:o,spacing:s=Sa.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(Me,{align:_e.CENTER,children:l})})]}),e("div",{className:S(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}`))})]})};va.displayName="PanelCards";const Ca=({testID:a,title:i,description:r,inversed:n,assets:l,buttonData:o,withBg:s=!0,spacing:c=Sa.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(Me,{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(Ue,{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(Oe,{...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})})})]})})]});Ca.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),y=r(null),A=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(y.current){const e=y.current;e.autoplay(c.autoplay),e.src(c.sources)}else{const t=document.createElement("video-js");b?.current?.appendChild(t);const a=y.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();if(e&&e.length)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:()=>{y.current&&y.current.play()},pause:()=>{y.current&&y.current.pause()},fullscreen:()=>{y.current&&y.current.requestFullscreen()}})),s(()=>{if(d)return;const e=y.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),y.current=null)}},[y]),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:S(p("relative w-full overflow-hidden h-full object-cover",{rouded:h},A.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",A.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 A=y(),v=r(null),C=f(v),I={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};s(()=>{C&&A.start(e=>({transform:"none",transition:{...I,delay:.1*e}}))},[A,C]);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:S(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:v,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:A,children:e(qt,{text:i,tag:N})}),n&&e(b.div,{initial:{transform:R},custom:1,animate:A,children:n}),o&&e(b.div,{initial:{transform:R},custom:1,animate:A,children:e(ft,{className:"mb-0",align:m?_e.LEFT:_e.RIGHT,data:o})}),d&&e(b.div,{initial:{transform:R},custom:2,animate:A,children:e("div",{className:p("flex items-center",{"justify-end":!m,"justify-start":m}),children:e(Oe,{...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($e,{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=Sa.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($e,{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($e,{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(Me,{children:r})}),t("div",{className:"flex items-center justify-start gap-4",children:[e("div",{className:"relative w-[150px] h-[50px]",children:e(Le,{href:o,target:"_blank",hideExternalIcon:!0,children:e($e,{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(Le,{href:s,target:"_blank",hideExternalIcon:!0,children:e($e,{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=Sa.NONE,videoProps:o})=>t("div",{"data-testid":a||'"PanelVideo"',className:S(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(Me,{children:n})})})]})]})]});Oa.displayName="PanelVideo";const xa=({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=y(),A=r(null),v=f(A),C={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};s(()=>{v&&E.start(e=>({transform:"none",transition:{...C,delay:.1*e}}))},[E,v]);const I="translateY(100px)";return t("div",{"data-testid":a||"PanelIntro",className:S(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($e,{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:A,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:_e.CENTER,data:n})}),o&&e(b.div,{initial:{transform:I},custom:2,animate:E,children:e("div",{className:"flex items-center",children:e(Oe,{...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($e,{src:l,alt:i,fill:!0}),u&&e(Ia,{sources:u.sources,options:{autoplay:!0,muted:!0,controls:!1,loop:!0},aspectRatioValue:u.aspectRatioValue})]})})]})})]})};xa.displayName="PanelIntro";const La=({testID:a,withBg:i=!0,spacing:r,className:n,children:l,title:o,headingTag:s})=>t("div",{"data-testid":a||"PanelCustom",className:S(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 _a;La.displayName="PanelCustom",function(e){e.BASIC="basic",e.MEDIA="media",e.VIDEO="video",e.ICON="icon",e.HORZ="horz",e.DATA="data"}(_a||(_a={}));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(Aa,{data:t?.images?.map((e,t)=>({variant:_a.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 ka=({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))});ka.displayName="CardGrid";const Da=({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})})})};Da.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(Oe,{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(Me,{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:Ve.H3,text:"Cart"}),l?.value?.items&&l?.value?.items.length>0&&t("div",{children:[e(Je,{as:Ze.UL,className:"",children:l?.value?.items.map(a=>{const i=a.title||a.generatedTitle||a.uuid;return e(tt,{as:"li",children:t("div",{className:"flex flex-row gap-4 p-2 border border-solid border-grey100 rounded mb-2",children:[e(Oe,{variant:Ie.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($e,{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(Me,{className:"mb-0 line-clamp-2",children:i}),t(Me,{className:"mb-0",children:["$",a?.options?.selectedPrice," USD"]})]})]})}),e("div",{className:"flex items-center justify-center",children:e(Oe,{id:"remove-cart-btn",rounded:!0,variant:Ie.SECONDARY,type:Ce.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(Da,{handleSubmit:e=>l?.handleAddPromoCode?.(e)})}),t(Me,{children:[o?.UI?.TAX,": ",l?.value?.taxRate?.percentage,"%"]}),t(Me,{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(Me,{children:[o?.UI?.PROMO_CODE,": ",h]}),e("div",{children:e(Oe,{rounded:!0,id:"remove-promo-btn",variant:Ie.SECONDARY,outline:!0,type:Ce.BUTTON,onClick:()=>l?.handleRemovePromoCode?.(h),className:"",icon:"mdi:window-close"})})]})]}),t(Me,{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(Oe,{size:Te.SMALL,variant:Ie.SECONDARY,onClick:()=>m(!1),children:o?.UI?.CONTINUE_BROWSING})}),e("div",{className:"",children:e(Oe,{size:Te.SMALL,variant:Ie.PRIMARY,onClick:()=>{m(!1),l?.handleCheckout?.()},children:o?.UI?.CHECKOUT})})]})]}),(!l?.value?.items||0===l?.value?.items?.length)&&e("div",{children:e(Ke,{tag:Ve.H5,children:o?.UI?.EMPTY})})]})]})};Pa.displayName="Cart";const Ma=({testID:a,hideMenu:i=!1,className:r})=>{const n=kt(),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:S(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(Le,{href:"/",children:e(et,{logo:n?.brand?.logo,aspectRatioClass:n?.brand?.logoAspectRatio})})})})}:{"data-testid":a||'"Header"',className:S(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(Le,{href:"/",children:e(et,{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(Oe,{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(Oe,{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(Oe,{variant:Ie.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(et,{logo:n?.brand?.logo,aspectRatioClass:n?.brand?.logoAspectRatio})})}),e("div",{children:e(Oe,{variant:Ie.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(Oe,{onClick:n?.app?.logoutCallback,children:l.UI.LOGOUT})}),!n?.app?.isAuthenticated&&e("div",{className:"md:hidden flex justify-center",children:e(Oe,{onClick:()=>{n?.app?.loginCallback?.(),u()},children:l.UI.LOGIN})})]})]})]})]})})};Ma.displayName="Header";const Ua=({testID:a,className:i})=>{const r=d(_t);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(et,{logo:r?.brand?.logo,aspectRatioClass:r?.brand?.logoAspectRatio})}),r.footer?.about&&e("div",{children:e(Me,{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(Me,{align:_e.CENTER,as:Pe.SMALL,children:["© ",(new Date).getFullYear()," ",ot.UI.COPYRIGHT," ",r.brand?.name]}),e(Me,{align:_e.CENTER,as:Pe.SMALL,children:ot.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($e,{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(We.Root,{open:r,onOpenChange:n,className:"mb-2",children:[t(We.Trigger,{className:p("accordion-trigger",{"accordion-trigger-open":r}),children:[e(Ke,{flush:!0,tag:Ve.H4,className:p("transition-all",{"text-white":r}),children:a}),e("div",{className:"",children:e(Se,{name:r?"mdi:chevron-up":"mdi:chevron-down"})})]}),e(We.Content,{children:e("div",{className:"p-2",children:e(Me,{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,paymentMethod:o,changeSubscriptionCallback:s,pauseSubscriptionCallback:d,updatePaymentMethodCallback:m,selectedPlanCallback:u,confirmPlanCallback:h,isLoading:f})=>{const g=Ht(),[N,E]=c(n?.id),[b,y]=c(!1),[A,S]=c(!1),v=e=>{E(e),u&&"function"==typeof u&&u(e)};return t("div",{"data-testid":a||'"SubscriptionManager"',className:"relative",children:[t("div",{className:"flex flex-col gap-4",children:[i&&e(Ke,{children:i}),!n&&e("div",{className:"rounded-lg shadow-md p-6 md:p-8 lg:p-10 bg-cardBackground dark:bg-darkCardBackground max-w-4xl mx-auto w-full text-center",children:t("div",{className:"mb-4",children:[e(Ke,{tag:Ve.H3,className:"mb-2",children:g.UI.NO_ACTIVE_SUBSCRIPTION}),e(Me,{className:"text-gray-600 dark:text-gray-400",children:g?.UI?.NO_SUBSCRIPTION_DETAILS})]})}),n&&t("div",{className:"rounded-lg shadow-md p-6 md:p-8 lg:p-10 bg-cardBackground dark:bg-darkCardBackground max-w-4xl mx-auto w-full",children:[t("div",{className:"mb-6 pb-6 border-b border-gray-200 dark:border-gray-700",children:[t("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4 mb-4",children:[t("div",{className:"flex-1",children:[e(Me,{className:"text-sm text-gray-500 dark:text-gray-400 mb-1 uppercase tracking-wide",children:g?.UI?.CURRENT_PLAN}),e(Ke,{tag:Ve.H2,className:"mb-0",children:n.plan}),n.planDescription&&e(Me,{className:"text-gray-600 dark:text-gray-400 mt-1 mb-0",children:n.planDescription})]}),e("div",{className:"flex-shrink-0",children:(()=>{const a=(e=>{switch(e.toLowerCase()){case"active":return{icon:"mdi:check-circle",bgColor:"bg-success",textColor:"text-white",label:e};case"trialing":return{icon:"mdi:star-circle",bgColor:"bg-info",textColor:"text-white",label:e};case"past_due":return{icon:"mdi:alert-circle",bgColor:"bg-warning",textColor:"text-black",label:"Past Due"};case"canceled":case"cancelled":return{icon:"mdi:close-circle",bgColor:"bg-error",textColor:"text-white",label:"Cancelled"};case"incomplete":return{icon:"mdi:progress-alert",bgColor:"bg-warning",textColor:"text-black",label:"Incomplete"};case"inactive":return{icon:"mdi:pause-circle",bgColor:"bg-gray-400 dark:bg-gray-600",textColor:"text-white",label:"Inactive"};default:return{icon:"mdi:information-circle",bgColor:"bg-gray-300 dark:bg-gray-700",textColor:"text-gray-800 dark:text-gray-200",label:e}}})(n.status);return t("div",{className:p("inline-flex items-center gap-2 px-4 py-2 rounded-full text-sm font-semibold shadow-sm",a.bgColor,a.textColor),children:[e(Se,{name:a.icon,className:"w-5 h-5"}),e("span",{children:a.label})]})})()})]}),e("div",{className:"text-3xl md:text-4xl font-bold text-primary",children:n.price})]}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[t("div",{className:"flex flex-col",children:[e(Me,{className:"text-gray-500 dark:text-gray-400 mb-1",children:g?.UI?.NEXT_BILLING_DATE}),e(Me,{className:"mb-0 font-medium",children:n.nextBillingDate})]}),n.endDate&&t("div",{className:"flex flex-col",children:[e(Me,{className:"text-gray-500 dark:text-gray-400 mb-1",children:g?.UI?.END_DATE}),e(Me,{className:"mb-0 font-medium text-red-600 dark:text-red-400",children:n.endDate})]})]}),o&&e("div",{className:"mt-6 pt-6 border-t border-gray-200 dark:border-gray-700",children:t("div",{className:"flex flex-col",children:[e(Me,{className:"text-sm text-gray-500 dark:text-gray-400 mb-2 uppercase tracking-wide",children:"Payment Method"}),t("div",{className:"flex items-center gap-3",children:[e(Se,{name:"mdi:credit-card",className:"w-6 h-6 text-primary"}),t("div",{className:"flex flex-col",children:[t(Me,{className:"mb-0 font-medium",children:[o.cardType," ",o.cardNumber]}),t(Me,{className:"text-sm text-gray-500 dark:text-gray-400 mb-0",children:["Expires ",o.cardExpiry]})]})]})]})})]}),n&&t("div",{className:"flex justify-center gap-4 flex-wrap",children:[s&&e(Oe,{variant:Ie.PRIMARY,onClick:()=>y(!b),children:b?g?.UI?.CANCEL:g?.UI?.CHANGE_PLAN}),m&&e(Oe,{variant:Ie.SECONDARY,onClick:()=>{y(!1),ae({title:g?.UI?.CONFIRM_TO_SUBMIT,message:"Are you sure you want to update your payment method? You'll be asked to enter new card details.",buttons:[{label:g?.UI?.YES,onClick:m},{label:g?.UI?.NO,onClick:()=>{}}]})},children:"Update Payment Method"}),!n.endDate&&e(Oe,{variant:Ie.SECONDARY,onClick:()=>{y(!1),ae({title:g?.UI?.CONFIRM_TO_SUBMIT,message:g?.UI?.CONFIRM_TO_PAUSE,buttons:[{label:g?.UI?.YES,onClick:d},{label:g?.UI?.NO,onClick:()=>{}}]})},children:g?.UI?.PAUSE_SUBSCRIPTION})]}),b&&l&&r&&t("div",{className:"flex items-center flex-col gap-4",children:[!A&&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":N&&N!==t.id},{hidden:A&&N&&N!==t.id}),children:e(Kt,{variant:_a.ICON,className:p({"rounded border-2 border-primary bg-tertiary":N===t.id},{"border-2 border-cardBackground":N!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>v(t.id)}})},t.id))}),e("div",{children:e(Oe,{variant:Ie.PRIMARY,onClick:()=>{ae({title:g?.UI?.CONFIRM_TO_SUBMIT,message:g?.UI?.CONFIRM_TO_CHANGE_PLAN,buttons:[{label:g?.UI?.YES,onClick:()=>{N&&h&&"function"==typeof h&&h(N),y(!1)}},{label:g?.UI?.NO,onClick:()=>y(!1)}]})},disabled:N===n?.id,children:g?.UI?.CONFIRM_TO_SUBMIT})})]}),n&&r&&!b&&e("div",{className:"flex items-center flex-col gap-4",children:r}),!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":N&&N!==t.id},{hidden:A&&N&&N!==t.id}),children:e(Kt,{variant:_a.ICON,className:p({"rounded border-2 border-primary bg-tertiary":N===t.id},{"border-2 border-cardBackground":N!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>v(t.id)}})},t.id))}),e("div",{children:e(Oe,{variant:Ie.PRIMARY,onClick:()=>{S(!0),N&&h&&"function"==typeof h&&h(N)},disabled:!N,children:g?.UI?.CONFIRM_CHOICE})})]}),e("div",{children:r})]})]}),f&&e("div",{className:"absolute top-0 left-0 w-full h-full bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e(Re,{})})]})};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(Se,{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(Oe,{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(Xe,{className:"text-sm",transform:we.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(ge,{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:Ne,prevIcon:e("div",{className:"text-bodyText",children:e(Se,{name:"mdi:chevron-left"})}),nextIcon:e("div",{className:"text-bodyText",children:e(Se,{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(Xe,{className:"text-sm mr-2",transform:we.UPPERCASE,children:ot.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 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(lt,{name:"SearchBoxInput",type:nt.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(Oe,{type:Ce.BUTTON,onClick:()=>s("",{shouldClearFilters:!1}),variant:Ie.SECONDARY,icon:"mdi:restore"}),e(Oe,{type:Ce.SUBMIT,variant:Ie.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,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):"");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:Ee.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:_a.MEDIA,data:a,...m});case $a.cardVideo:return e(Kt,{variant:_a.VIDEO,data:a,...m,isMuted:!1});default:return e(Kt,{variant:_a.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]),[y,A]=c(!1),S=()=>{A(e=>!e)};return e(le,{config:b,children:e(oe,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:l,setSearchTerm:c})=>e(a,{children:e(se,{children:e(ti,{noSidebar:m,showSidebar:y,header:g&&e(fe,{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(Oe,{onClick:S,icon:"mdi:close",children:N?.UI?.HIDE_FILTERS})}),l&&r&&e(ue,{label:"Sort by",sortOptions:r,view:Xa}),d?.map(({field:t,label:a,view:i})=>e(pe,{field:t,label:a,view:i},t))]}),bodyContent:e(he,{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(de,{view:Ja}),l&&i&&e(me,{view:Za,options:i}),l&&r&&m&&e(ue,{label:"Sort by",sortOptions:r,view:Xa}),l&&!m&&e("div",{className:"block md:hidden",children:e(Oe,{rounded:!0,onClick:S,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e(ce,{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(Xe,{className:"text-sm",transform:we.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(Xe,{transform:we.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(Oe,{onClick:()=>r(o),size:Te.SMALL,rounded:!0,children:e(Se,{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(Me,{as:Pe.SPAN,size:De.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(Xe,{className:"text-sm",transform:we.UPPERCASE,children:r}),d&&e("div",{className:"mt-1",children:e(lt,{type:nt.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(xe,{id:`facet_${r}${s}`,"data-transaction-name":`facet - ${r}`,checked:i,onChange:()=>i?l(n):o(n),label:s}),e(Me,{as:Pe.SPAN,size:De.SMALL,children:a.count.toLocaleString("en")})]},s)})]}),c&&e(Oe,{size:Te.SMALL,variant:Ie.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(st,{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(st,{initValue:n?.profile?.picture,isEditable:!1})}),s&&e("div",{children:e(Je,{className:"flex items-center flex-col justify-center gap-2",children:s?.map((t,a)=>e(tt,{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(Ke,{tag:Ve.H5,flush:!0,children:d.UI.SHARE}),t("div",{className:"flex gap-2",children:[e(F,{url:c,children:e(Se,{name:"mdi:facebook"})}),e(B,{url:c,children:e(Se,{name:"mdi:twitter"})}),e(W,{url:c,children:e(Se,{name:"mdi:linkedin"})}),e(H,{url:c,children:e(Se,{name:"mdi:whatsapp"})})]})]}),t("div",{className:"flex flex-col gap-2",children:[o&&e(Oe,{onClick:o,icon:"mdi:lock-reset",children:d?.UI.RESET_PASSWORD}),l&&e(Oe,{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(Re,{})}),n&&e(ka,{data:n,onPressCallback:l}),!n&&!o&&e("div",{children:e(Me,{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(Re,{})}),n&&e("div",{children:e(ka,{data:n,onPressCallback:o})})]});Ei.displayName="ChallengeLibraryScreen";const bi="MMMM dd, yyyy",yi="HH:mm",Ai=({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(()=>be(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(Xe,{children:[p.UI.CREATED,": ",f]}),!d&&t("div",{className:"flex flex-col gap-2 mb-4",children:[e(Me,{bold:!0,className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e(Me,{className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e("div",{children:e(Oe,{variant:Ie.PRIMARY,onClick:u,isLoading:h,disabled:h,children:c})}),t(Me,{size:De.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:_a.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))})]})};Ai.displayName="ChallengeScreen";const Si=({testID:a,title:i,image:r,updated:n,content:l,isLoading:o,isLayoutMinimal:s=!1})=>{const c=Ht(),d=n?be(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(Re,{})}),i&&e(qt,{text:i}),n&&e("div",{children:t(Me,{children:[c?.UI?.UPDATED,": ",d]})}),l&&e("div",{children:e(ft,{data:l})})]})};Si.displayName="ContentScreen";const vi=({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,subscriptionStatus:N})=>{const E=Ht(),b={loop:!1,autoPlay:!1,slidesToShow:4,scrollAnimationDuration:500,onSnapToItem:()=>{},shouldScrollOnClick:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!0}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2,initialSlide:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]};return t(Fa,{"data-testid":a||"DashboardScreen",image:r,children:[i&&e(qt,{text:i}),"none"===N&&e("div",{className:"mb-6",children:e(ct,{icon:"mdi:star",title:"Unlock Premium Content",text:"Ready to feel the burn and boost your energy? Click here to start your 7-day NRG at home fitness trial today! (first-time sucsrcibers only)",href:"/subscription"})}),"default"===N&&e("div",{className:"mb-6",children:e(ct,{icon:"mdi:arrow-up-bold",title:"Upgrade to Premium+",text:"Take your workouts to the next level — upgrade to NRG Premium+ for unlimited live classes and full on-demand access. Click here to upgrade now!",href:"/subscription"})}),e("div",{children:t(Me,{children:[E?.UI?.WELCOME," ",n?.name]})}),m&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Re,{})}),!m&&s&&t("div",{className:"mb-8",children:[e(Ke,{tag:Ve.H4,children:E?.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(Re,{})}),!h&&l&&t("div",{children:[e(Ke,{tag:Ve.H4,children:E?.UI?.LATEST_WORKOUTS}),e("div",{children:e(Aa,{data:l,onPressCallback:p,carouselOptions:b})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Re,{})}),!u&&c&&t("div",{children:[e(Ke,{tag:Ve.H4,flush:!0,children:E?.UI?.OUR_FEATURE}),e(Ta,{...c,withBg:!0,spacing:Sa.ATOM})]}),h&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Re,{})}),!h&&o&&t("div",{children:[e(Ke,{tag:Ve.H4,children:E?.UI?.RECENTLY_ADDED}),e("div",{children:e(Aa,{data:o,onPressCallback:f,carouselOptions:b})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Re,{})}),!u&&d&&t("div",{children:[e(Ke,{tag:Ve.H4,children:E?.UI?.WHATS_NEW}),e("div",{children:e(Aa,{data:d,onPressCallback:g,carouselOptions:b})})]})]})};vi.displayName="DashboardScreen";const Ci=({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(Re,{})}),n&&e(Ha,{data:n?.map(e=>({title:e.title||"",content:e.answer||""}))})]});Ci.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(xa,{...r}),l&&e(Ca,{...l}),o&&e(va,{...o}),s?.[0]&&e(Ta,{...s?.[0]}),c&&e(va,{...c}),d&&e(va,{...d}),s?.slice(1).map(t=>e(Ta,{...t},t.title)),m&&e(va,{...m}),u&&e(Ra,{...u}),h&&e(La,{...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(Me,{children:r?.UI?.PLEASE_WAIT}),e(Re,{})]})})};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(Re,{})}),n&&e(Je,{children:n.map(t=>e(tt,{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(Me,{children:r||n?.UI?.PAGE_NOT_FOUND_MESSAGE_OOPS}),e(Ke,{tag:Ve.H5,flush:!0,children:t("span",{className:"flex flex-row gap-2 items-center",children:[e(Se,{name:"mdi:lightbulb"})," ",n?.UI?.WHAT_CAN_YOU_DO]})}),t(Je,{as:Ze.UL,children:[e(tt,{as:"li",children:n?.UI?.DOUBLE_CHECK_URL}),e(tt,{as:"li",children:n?.UI?.RETURN_TO_HOMEPAGE}),t(tt,{as:"li",children:[n?.UI?.EXPLORE_SITE,"."]})]}),e(Me,{children:n?.UI?.STILL_NEED_HELP})]})};Oi.displayName="NotFoundScreen";const xi=({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})]});xi.displayName="PasswordResetScreen";const Li=({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})]});Li.displayName="PasswordResetAuthScreen";const _i=({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})]});_i.displayName="ProfileScreen";const wi=({testID:a,end:r,live:n,start:o,title:s,video:c})=>{const d=Ht(),m=l(()=>{if(o)return be(new Date(1e3*o),bi)},[o]),u=l(()=>{if(o)return be(new Date(1e3*o),yi)},[o]),h=l(()=>{if(r)return be(new Date(1e3*r),yi)},[r]),[p,f]=i.useState(!1);return t("div",{"data-testid":a||'"ScheduleItem"',className:"flex flex-col md:flex-col gap-4",children:[e(Ke,{tag:Ve.H4,children:s}),n&&!p&&e("div",{className:"flex-1",children:e(Ia,{url:n,isYoutube:!0})}),m&&u&&h&&t("div",{children:[e(Me,{className:"mb-0",children:d?.UI?.TODAYS_ITEMS}),t(Xe,{children:[m,": ",u," - ",h]})]}),c&&e("div",{className:"relative my-4",children:e(Oe,{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 ki=({testID:a,scheduleItems:i,hasAccess:r})=>{const n=Ht(),[o,s]=c(new Date),d=l(()=>(e=>{const t=new Map;return e?.days?(e.days.forEach(e=>{Object.entries(e).forEach(([e,a])=>{if(a&&a[0]){const i=a[0];if(i.start){const a=new Date(1e3*i.start),r=ye(a),n=`${r.getFullYear()}-${String(r.getMonth()+1).padStart(2,"0")}-${String(r.getDate()).padStart(2,"0")}`;t.set(n,{...i,weekday:e})}else console.log(` ✗ No start timestamp for ${e}`)}})}),t):t})(i),[i]),m=l(()=>Array.from(d.keys()).map(e=>new Date(e)),[d]),u=h(e=>{if(!e)return null;const t=ye(e),a=`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`;return d.get(a)||null},[d]),p=l(()=>u(o),[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(Ke,{tag:Ve.H5,transform:je.UPPERCASE,className:"mb-4",children:"Select a Date"}),e(Fe,{selected:o,onSelect:s,datesWithContent:m})]}),t("div",{children:[!r&&t("div",{children:[e(Ke,{tag:Ve.H2,children:n?.UI?.ACCESS_RESTRICTED}),e(Me,{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(Ke,{tag:Ve.H4,children:n?.UI?.NO_CLASS}),e(Me,{children:"No class scheduled for this date."})]})]})]})};ki.displayName="Schedule";const Di=({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(Re,{})}),n&&e("div",{children:e(ki,{...n})})]});Di.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(Me,{children:o?.UI?.NEED_HELP_WITH_SUBSCRIPTION}),e("div",{children:e(Oe,{icon:"mdi:help",variant:Ie.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:y,isLiked:A,isFavourite:S,relatedWorkouts:v,hasActiveSubscription:C,htmlDetails:I,noSubActionCallback:T,numCompleted:R="0"})=>{const O=Ht(),[x,L]=i.useState(!1),_=l(()=>be(new Date(1e3*d),bi),[d]),w=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(Xe,{children:[O.UI.CREATED,": ",_]})}),e("div",{children:t(Xe,{children:[O.UI.DURATION,": ",w]})})]}),!C&&t("div",{children:[e(Ke,{tag:Ve.H4,children:O.UI.NO_ACTIVE_SUBSCRIPTION}),e(Me,{children:O?.UI?.NO_SUBSCRIPTION_DETAILS}),T&&e(Oe,{rounded:!0,onClick:T,icon:"mdi:arrow-right-circle-outline",children:O.UI.SUBSCRIBE})]}),e("div",{children:e(Oe,{onClick:()=>{L(!0)},icon:"mdi:play",iconFirst:!0,disabled:!C,children:O.UI.START_WORKOUT})}),t("div",{className:"flex gap-2",children:[E&&e("div",{children:e(Oe,{onClick:()=>{n&&E&&"function"==typeof E&&(E(n),Q.info(A?O.UI.REMOVED_LIKE:O.UI.ADDED_LIKE))},icon:A?"mdi:heart":"mdi:heart-outline",disabled:!C,rounded:!0})}),y&&e("div",{children:e(Oe,{onClick:()=>{n&&y&&"function"==typeof y&&(y(n),Q.info(S?O.UI.REMOVED_FAVORITE:O.UI.ADDED_FAVORITE))},icon:S?"mdi:bookmark":"mdi:bookmark-outline",disabled:!C,rounded:!0})}),b&&e("div",{children:e(Oe,{rounded:!0,onClick:()=>{n&&b&&"function"==typeof b&&(b(n),Q.info(O.UI.MARKED_COMPLETE))},icon:"mdi:plus",disabled:!C,children:R})})]}),!I&&c&&e("div",{children:e(Me,{children:c})}),I&&c&&e("div",{children:e(ft,{data:c})}),t("div",{className:"flex gap-4 flex-wrap",children:[u&&t(Xe,{children:[O.UI.LEVEL,": ",u]}),h&&t(Xe,{children:[O.UI.SECTION,": ",h]}),g&&t(Xe,{children:[O.UI.CATEGORY,": ",g]}),N&&t(Xe,{children:[O.UI.TYPE,": ",N]})]}),v&&e(a,{children:e(ra,{isNarrow:!0,padded:!0,children:e("div",{children:e(Ke,{children:O?.UI?.RELATED})})})}),e("div",{children:x&&e(Ka,{modalOpen:x,onCloseCallback:()=>L(!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,Dt as AmplifyContext,Pt as AmplifyProvider,Ae as AnimationCounter,la as AnimationSet1,_t as AppContext,wt as AppProvider,fi as AuthScreen,Ea as Authenticator,st as Avatar,Te as BTN_SIZES,Ce as BTN_TYPES,Ie as BTN_VARIANTS,ct as Banner,ve as Blockquote,Oe as Button,dt as ButtonGroup,_e as COPY_ALIGN,ke as COPY_CONTEXTUAL,De as COPY_SIZE,Pe as COPY_TAG,we as COPY_TRANSFORM,Wa as CPL_SPACING,Va as CRL_SIZE,Fe as Calendar,Kt as Card,ka as CardGrid,gi as CardGridScreen,_a as CardVariant,Aa as Carousel,Pa as Cart,Ut as CartProvider,Ni as CatalogueScreen,Ei as ChallengeLibraryScreen,Ai as ChallengeScreen,xe as Checkbox,Ue as Chip,We as Collapsible,ra as Container,Ya as ContentPageLayout,za as ContentRowsLayout,Si as ContentScreen,Me as Copy,vi as DashboardScreen,qt as DisplayHeading,Ci as FAQScreen,Xt as FIELD_TYPES,Ye as FileUpload,Ua as Footer,Na as ForgotPasswordForm,$t as Form,Zt as FormField,Qt as FormSelect,qa as FullContentBackgroundImage,Ka as FullScreenVideoModal,ze as HEADING_ALIGN,Ve as HEADING_TAGS,je as HEADING_TRANSFORM,Ma as Header,Ke as Heading,na as Hero,Ii as HomeScreen,qe as Hr,ft as HtmlContent,Se as Icon,$e as Image,At as InvalidDurationError,Xe as Label,Le as Link,Je as List,tt as ListItem,Ze as ListTag,Re as Loader,fa as LoginForm,et as Logo,Ti as LogoutScreen,aa as Menu,Ri as MenuScreen,di as MultiCheckboxFacet,St as MultipleFractionsError,Oi as NotFoundScreen,at as Notice,ja as OTPInput,va as PanelCards,La as PanelCustom,Ca as PanelFeature,Ta as PanelHero,xa as PanelIntro,Ra as PanelProduct,wa as PanelScroller,Oa as PanelVideo,Li as PasswordResetAuthScreen,xi as PasswordResetScreen,hi as ProfileForm,_i as ProfileScreen,Da as PromoCodeForm,it as Radio,ga as RegisterForm,ui as ResetPasswordAuthForm,mi as ResetPasswordForm,$a as ResultAsTypes,Sa as SPACING,ot as STRINGS_EN,Di as ScheduleScreen,Fa as Screen,oi as Search,Jt as Share,ci as SingleLinksFacet,si as SingleSelectFacet,Ga as SubscriptionManager,Pi as SubscriptionScreen,rt as Switch,ea as Tabs,lt as TextInput,Ot as ThemeContext,xt as ThemeProvider,Qe as Variants,Ia as Video,ta as VisitUs,Mi as WorkoutScreen,Rt as defaultTheme,It as formatDuration,Tt as getRandomImageFromArray,vt as parseDuration,Er as theme,Ct as truncateString,kt as useAppContext,Ft as useCartContext,Ht as useLanguage,Gt as useTheme,Lt as useThemeContext,ua as validEmail,ha as validPassword,pa 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 y}from"framer-motion";import{Icon as A}from"@iconify/react";import{twMerge as S}from"tailwind-merge";import{getDefaultClassNames as v,DayPicker as C}from"react-day-picker";import*as I from"@radix-ui/react-collapsible";import T,{attributesToProps as R,domToReact as O}from"html-react-parser";import{parse as x}from"iso8601-duration";import{Amplify as L,Hub as _,Auth as w}from"aws-amplify";import k from"react-hover-video-player";import{useForm as D,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{SearchProvider as le,WithSearch as oe,ErrorBoundary as se,Paging as ce,PagingInfo as de,ResultsPerPage as me,Sorting as ue,Results as he,Facet as pe,SearchBox as fe}from"@elastic/react-search-ui";import ge from"rc-pagination";import Ne from"rc-pagination/lib/locale/en_US";import Ee from"he";import{format as be,startOfDay as ye}from"date-fns";const Ae=({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)})};Ae.displayName="AnimationCounter";const Se=({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});Se.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(Se,{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 Ce,Ie,Te;ve.displayName="Blockquote",function(e){e.SUBMIT="submit",e.RESET="reset",e.BUTTON="button"}(Ce||(Ce={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link"}(Ie||(Ie={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(Te||(Te={}));const Re=({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..."})]})});Re.displayName="Loader";const Oe=({variant:i=Ie.PRIMARY,size:r=Te.MEDIUM,type:n=Ce.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:y,className:A,isLoading:v,offsetFont:C=!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(p("button rounded-btnBorderRadius",{shadow:s},{uppercase:c},{"auto-cols-auto grid-cols-2 gap-4":v||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===Ie.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":i===Ie.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":i===Ie.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===Ie.LINK},{"rounded-full leading-none":o},A)),R=p(I?.[r]?.icon);return e("button",{id:m,"data-testid":y||m||"Button",onClick:f,className:T,type:n,disabled:u,"aria-label":h,role:"button",children:t(a,{children:[C?e("span",{className:"brand-font-offset",children:d}):d,g&&!N&&e("span",{className:"flex items-center",children:e(Se,{name:g,className:R})}),N&&e("span",{className:"flex items-center",children:e(Se,{name:"carbon:launch",className:R})}),v&&e("div",{className:"flex items-center",children:e(Re,{size:4})})]})})};Oe.displayName="Button";const xe=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(Se,{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})]})});xe.displayName="Checkbox";const Le=({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(Se,{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 _e,we,ke,De,Pe;Le.displayName="Link",function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(_e||(_e={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(we||(we={})),function(e){e.INVERTED="inverted",e.MUTED="muted"}(ke||(ke={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.INTRO="intro"}(De||(De={})),function(e){e.P="p",e.SPAN="span",e.DIV="div",e.SMALL="small"}(Pe||(Pe={}));const Me=({children:t,as:a=Pe.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:S(m),children:t})};Me.displayName="Copy";const Ue=({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:De.SMALL};case"medium":default:return{iconSize:20,copySize:De.MEDIUM};case"large":return{iconSize:28,copySize:De.LARGE}}},[s]),h=S(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(Le,{"data-testid":a||"Chip",className:h,onClick:m,children:[e(Me,{className:"mb-0",as:Pe.SPAN,size:u.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(Se,{name:c,size:u.iconSize})})]}):t("div",{"data-testid":a||"Chip",className:h,children:[e(Me,{className:"mb-0",as:Pe.SPAN,size:u.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(Se,{name:c,size:u.iconSize})})]})};Ue.displayName="Chip";const Fe=({testID:t,className:a,classNames:i,selected:r,onSelect:n,datesWithContent:l=[],disabled:o,showOutsideDays:s=!0,...c})=>{const d=v();return e("div",{"data-testid":t||"Calendar",className:"flex justify-center",children:e(C,{mode:"single",selected:r,onSelect:n,disabled:o,showOutsideDays:s,modifiers:{hasContent:l},modifiersClassNames:{hasContent:"has-content-date"},className:S("p-3 w-fit",a),classNames:{root:S("w-fit",d.root),months:S("relative flex flex-col gap-4 md:flex-row",d.months),month:S("flex w-full flex-col gap-4",d.month),nav:S("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",d.nav),button_previous:S("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:S("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:S("flex h-9 w-full items-center justify-center px-9",d.month_caption),caption_label:S("select-none font-medium text-sm",d.caption_label),weekdays:S("flex",d.weekdays),weekday:S("text-grey600 dark:text-grey400 flex-1 select-none rounded-md text-[0.8rem] font-normal",d.weekday),week:S("mt-2 flex w-full",d.week),day:S(d.day,'relative aspect-square h-full w-full select-none p-0 text-center [&[data-selected="true"]>button]:border-grey800'),day_button:S(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:S("text-grey400 dark:text-grey600 opacity-50",d.outside),disabled:S("text-grey400 dark:text-grey600 opacity-50",d.disabled),hidden:S("invisible",d.hidden),...i},components:{Chevron:({orientation:t})=>e(Se,{name:"left"===t?"mdi:chevron-left":"mdi:chevron-right",className:"h-4 w-4"})},...c})})};Fe.displayName="Calendar";const Be=n(({className:t,testID:a,children:i,...r},n)=>e(I.Root,{ref:n,"data-testid":a||"Collapsible",className:S(p("collapsible-root",t)),...r,children:i}));Be.displayName="CollapsibleRoot";const He=n(({className:t,children:a,...i},r)=>e(I.Trigger,{ref:r,className:S(p(!t&&"collapsible-trigger","transition duration-500 ease-in-out",t)),...i,children:a}));He.displayName="CollapsibleTrigger";const Ge=n(({className:t,children:a,...i},r)=>e(I.Content,{ref:r,className:S(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}));Ge.displayName="CollapsibleContent";const We={Root:Be,Trigger:He,Content:Ge},Ye=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 Ve,ze,je;Ye.displayName="FileUpload",function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5"}(Ve||(Ve={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(ze||(ze={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize",e.NORMAL_CASE="normal-case"}(je||(je={}));const Ke=({children:t,tag:a=Ve.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:S(h),children:t})};Ke.displayName="Heading";const qe=({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})});qe.displayName="Hr";const $e=({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=S(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})}};$e.displayName="Image";const Xe=({children:t,id:a,transform:i,className:r})=>e("label",{"data-testid":"Label",className:S(p("label mb-2 text-bodyText dark:text-darkBodyText",i,r)),htmlFor:a,children:t});var Qe,Ze;Xe.displayName="Label",function(e){e.UNSTYLED="unstyled",e.INLINE="inline",e.SMALL="small",e.LARGE="large"}(Qe||(Qe={})),function(e){e.OL="ol",e.UL="ul",e.DL="dl",e.DIV="div",e.DT="dt",e.DD="dd",e.LI="li"}(Ze||(Ze={}));const Je=({variants:t,children:a,as:i=Ze.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})};Je.displayName="List";const et=({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($e,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});et.displayName="Logo";const tt=({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(Oe,{variant:Ie.LINK,onClick:a,children:[t("div",{className:"",children:[r&&e("div",{children:e(Se,{name:r,size:24})}),i&&e("div",{children:e(Ke,{flush:!0,tag:Ve.H4,singleLine:!0,children:i})}),n&&e("div",{children:n})]}),e("div",{children:e(Se,{name:"mdi:chevron-right",size:24})})]}),!a&&e("div",{className:"",children:n&&e("div",{children:n})})]});tt.displayName="ListItem";const at=({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(Se,{name:l})}),t("div",{children:[r&&e(Ke,{tag:Ve.H3,children:r}),e(Me,{className:"mb-0",children:n})]}),c&&d&&e("div",{className:"ml-auto flex items-end",children:e(Oe,{variant:Ie.PRIMARY,onClick:c,"aria-label":"Action",size:Te.SMALL,children:d})}),s&&e("div",{className:"absolute top-2 right-4",children:e(Oe,{variant:Ie.LINK,icon:"mdi:close",onClick:s,"aria-label":"Close"})})]})})};at.displayName="Notice";const it=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(Se,{name:"mdi:circle",size:12})})]}),e("label",{className:"label pl-2 leading-none",htmlFor:n,children:r.label})]},n)})})})});it.displayName="Radio";const rt=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 nt;rt.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"}(nt||(nt={}));const lt=n(function({type:a=nt.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===nt.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(Se,{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})]})});lt.displayName="TextInput";const ot={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"}},st=({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($e,{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(Oe,{size:Te.SMALL,rounded:!0,onClick:()=>{m(void 0)},children:ot.UI.REMOVE_BTN_LABEL})})]}),!d&&t(a,{children:[n&&e("div",{className:"absolute w-full h-full flex items-center justify-center",children:e(Xe,{id:r,className:"button cursor-pointer mb-0",children:e(Me,{className:"mb-0",children:ot.UI.UPLOAD})})}),!n&&e(Se,{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)}}})]})};st.displayName="Avatar";const ct=({id:a,testID:i,title:r,text:n,icon:l,href:o,className:s})=>{const c=p("rounded-lg p-6 shadow-sm","bg-tertiary text-cardText border-gray-200","dark:bg-darkCardBackground dark:text-darkCardText dark:border-gray-700",s),d=t("div",{className:"flex gap-4 items-start",children:[l&&e("div",{className:"flex-shrink-0 mt-1",children:e(Se,{name:l,className:"w-6 h-6"})}),t("div",{className:"flex-1",children:[r&&e(Ke,{tag:Ve.H4,className:"mb-2",children:r}),e(Me,{className:"mb-0",children:n})]}),o&&e("div",{className:"flex-shrink-0",children:e(Se,{name:"mdi:chevron-right",className:"w-6 h-6"})})]});return o?e(Le,{href:o,className:"block no-underline hover:no-underline",testID:i||a||"Banner",children:e("div",{className:p(c,"hover:shadow-md transition-shadow duration-200 cursor-pointer"),children:d})}):e("div",{"data-testid":i||a||"Banner",className:c,children:d})};ct.displayName="Banner";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(Oe,{...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(Le,{...a,children:O(t.children,pt)})}if(t.attribs&&"p"===t.name){const a=R(t.attribs);return e(Me,{...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 yt(e){if(""!==e&&null!=e)return parseFloat(e.replace(",","."))}const At=new Error("Invalid duration"),St=new Error("Multiple fractions specified");function vt(e,t=gt){const a=bt.exec(e);if(!a||!a.groups)throw At;let i=!0,r=0;const n={};for(const{unit:e}of Nt)if(a.groups[e]&&(i=!1,n[e]=yt(a.groups[e]),!t.allowMultipleFractions&&!Number.isInteger(n[e])&&(r++,r>1)))throw St;if(i)throw At;const l=n;return a.groups.negative&&(l.negative=!0),l}function Ct(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}function It(e){const t=x(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),xt=({children:t,theme:a})=>e(Ot.Provider,{value:a,children:t}),Lt=()=>{const e=d(Ot);if(void 0===e)throw new Error("useThemeContext must be used within a ThemeProvider");return e},_t=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(_t.Provider,{value:a,children:t}),kt=()=>{const e=d(_t);if(void 0===e)throw new Error("useAppContext must be used within a AppProvider");return e},Dt=m({config:{region:"eu-west-1",oauth:{},cookieStorage:{}}}),Pt=({children:t,value:a})=>(s(()=>{a.config&&L.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(Dt.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(_t);return t("div",{id:a,"data-testid":"CardBasic",className:S(p(ht,u?ut:mt,{"p-4":c},{"hover:scale-100":!m},l)),onClick:u,children:[n&&e("div",{className:S(p("relative w-full overflow-hidden aspect-[16/9]",{rounded:c},n.aspectRatio)),children:e($e,{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(Ke,{tag:Ve.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(Ke,{tag:Ve.H4,singleLine:!0,flush:!0,children:i})}),!h&&r&&e("div",{children:e(Me,{className:"mb-0",children:Ct(r)})}),h&&r&&e("div",{children:e(ft,{className:"mb-0",data:Ct(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(Me,{className:"text-xs",as:Pe.SMALL,children:a},a):0===i?t(Me,{className:"text-xs",as:Pe.SMALL,children:[a," ·"]},a):i===o.length-1?t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a]},a):t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a," ·"]},a))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap flex-1 justify-end",children:[s.like&&e(Oe,{variant:Ie.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.like?.onClick&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(Oe,{variant:Ie.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.share?.onClick&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(Oe,{variant:Ie.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.save?.onClick&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(Oe,{variant:Ie.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.comment?.onClick&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(Oe,{variant:Ie.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.bookmark?.onClick&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(Oe,{variant:Ie.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.report?.onClick&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(Oe,{variant:Ie.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.follow?.onClick&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(Oe,{variant:Ie.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.download?.onClick&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(Oe,{variant:Ie.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.edit?.onClick&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(Oe,{variant:Ie.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Te.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(_t).locale,ot}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(_t);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($e,{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(Me,{bold:!0,transform:we.UPPERCASE,children:f.UI.PURCHASE_TO_ACCESS})}),m&&e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(Oe,{variant:Ie.PRIMARY,icon:"mdi:play",size:Te.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(Ke,{tag:Ve.H5,singleLine:!0,flush:!0,children:i})}),!u&&r&&e("div",{children:e(Me,{className:"mb-0",children:Ct(r)})}),u&&r&&e("div",{children:e(ft,{className:"mb-0",data:Ct(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(Me,{className:"text-xs",as:Pe.SMALL,children:a},a):0===i?t(Me,{className:"text-xs",as:Pe.SMALL,children:[a," ·"]},a):i===o.length-1?t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a]},a):t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a," ·"]},a))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(Oe,{variant:Ie.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.like?.onClick&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(Oe,{variant:Ie.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.share?.onClick&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(Oe,{variant:Ie.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.save?.onClick&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(Oe,{variant:Ie.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.comment?.onClick&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(Oe,{variant:Ie.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.bookmark?.onClick&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(Oe,{variant:Ie.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.report?.onClick&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(Oe,{variant:Ie.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.follow?.onClick&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(Oe,{variant:Ie.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.download?.onClick&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(Oe,{variant:Ie.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),s?.edit?.onClick&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(Oe,{variant:Ie.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Te.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(k,{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($e,{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(Re,{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(Ke,{tag:Ve.H5,singleLine:!0,flush:!0,children:n})}),!u&&l&&e("div",{children:e(Me,{className:"mb-0",children:Ct(l)})}),u&&l&&e("div",{children:e(ft,{className:"mb-0",data:Ct(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(Me,{className:"text-xs",as:Pe.SMALL,children:a},a):0===i?t(Me,{className:"text-xs",as:Pe.SMALL,children:[a," ·"]},a):i===c.length-1?t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a]},a):t(Me,{className:"text-xs",as:Pe.SMALL,children:[" ",a," ·"]},a))}),d&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[d.like&&e(Oe,{variant:Ie.PRIMARY,icon:d.like.isActive?"mdi:like":"mdi:like-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.like?.onClick&&"function"==typeof d.like.onClick&&d.like.onClick({id:r})}}),d.share&&e(Oe,{variant:Ie.PRIMARY,icon:d.share.isActive?"mdi:share":"mdi:share-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.share?.onClick&&"function"==typeof d.share.onClick&&d.share.onClick({id:r})}}),d.save&&e(Oe,{variant:Ie.PRIMARY,icon:d.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.save?.onClick&&"function"==typeof d.save.onClick&&d.save.onClick({id:r})}}),d.comment&&e(Oe,{variant:Ie.PRIMARY,icon:d.comment.isActive?"mdi:comment":"mdi:comment-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.comment?.onClick&&"function"==typeof d.comment.onClick&&d.comment.onClick({id:r})}}),d.bookmark&&e(Oe,{variant:Ie.PRIMARY,icon:d.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.bookmark?.onClick&&"function"==typeof d.bookmark.onClick&&d.bookmark.onClick({id:r})}}),d.report&&e(Oe,{variant:Ie.PRIMARY,icon:d.report.isActive?"mdi:flag":"mdi:flag-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.report?.onClick&&"function"==typeof d.report.onClick&&d.report.onClick({id:r})}}),d.follow&&e(Oe,{variant:Ie.PRIMARY,icon:d.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.follow?.onClick&&"function"==typeof d.follow.onClick&&d.follow.onClick({id:r})}}),d.download&&e(Oe,{variant:Ie.PRIMARY,icon:d.download.isActive?"mdi:download":"mdi:download-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.download?.onClick&&"function"==typeof d.download.onClick&&d.download.onClick({id:r})}}),d.edit&&e(Oe,{variant:Ie.PRIMARY,icon:d.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:Te.SMALL,onClick:e=>{e.stopPropagation(),d?.edit?.onClick&&"function"==typeof d.edit.onClick&&d.edit.onClick({id:r})}}),d.delete&&e(Oe,{variant:Ie.PRIMARY,icon:d.delete.isActive?"mdi:delete":"mdi:delete-outline",size:Te.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:S(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(Se,{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(Ke,{tag:Ve.H5,singleLine:!0,children:i}),r&&e(Me,{bold:!0,children:r})]}),e("div",{children:n&&e(Me,{align:d,children:n})})]}),s&&e(Oe,{variant:Ie.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:S(p("relative w-full overflow-hidden h-full",l.aspectRatio)),children:e($e,{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(Se,{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(Ke,{tag:Ve.H4,children:r})}),!u&&n&&e("div",{children:e(Me,{className:"mb-0",children:Ct(n)})}),u&&n&&e("div",{children:e(ft,{className:"mb-0",data:Ct(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:S(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(Ae,{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(Ke,{tag:Ve.H2,flush:!0,children:n?.item})}),e("div",{className:"flex flex-1 items-center justify-center",children:e(Me,{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=Ve.H1,colorOverride:l})=>{const o=i?.split(" ");return e("div",{"data-testid":"DisplayHeading",className:p("relative display-heading-wrapper",l),children:e(Ke,{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=Ie.PRIMARY,initialValues:h={},isBoxed:f=!1,submitType:g=Ce.SUBMIT,disabledSubmitWithReturn:N=!0,isDisabled:E=!1})=>{const b=D({defaultValues:h,mode:"onBlur",reValidateMode:"onChange"}),y=r(h);s(()=>{JSON.stringify(y.current)!==JSON.stringify(h)&&(b.reset(h),y.current=h)},[h]),s(()=>{if(o&&"function"==typeof o){const e=b.watch((e,t)=>{o(e,t)});return()=>e.unsubscribe()}},[]);const A=p({"sr-only":c}),{formState:{isSubmitting:S,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":S},i),children:[a,n&&e("div",{className:"flex items-center justify-end",children:e(Oe,{id:m||n,className:A,ariaLabel:d||n||"Submit",type:g,outline:!0,isLoading:S,disabled:S||!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(Se,{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:y,formState:A}=M(),{errors:S}=A,v=r&&i!==Xt.CHECKBOX,C=n||Boolean(f.required)?`${r} *`:r;return e("div",{className:"relative",children:t("div",{"data-testid":"FormField",className:"mb-4",children:[v&&e("div",{className:"flex items-baseline justify-between",children:e(Xe,{id:a,children:C})}),e("div",{className:"mb-1",children:e(U,{defaultValue:"",name:a,control:y,rules:f,render:({field:c})=>((i,c)=>{switch(i){case Xt.HIDDEN:return e("input",{type:nt.HIDDEN,disabled:d,...c});case Xt.TEXT:return e(lt,{type:nt.TEXT,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:N,...c});case Xt.PASSWORD:{const a=E?nt.TEXT:nt.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(Se,{name:"mdi:eye-off",size:24})}:{type:"button","aria-label":u,className:p(i,"form-icon"),children:e(Se,{name:"mdi:eye",size:24})})}),e(lt,{type:a,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:N,...c})]})}case Xt.TEXTAREA:return e(lt,{type:nt.TEXTAREA,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.EMAIL:return e(lt,{type:nt.EMAIL,required:n||Boolean(f.required),icon:o,className:l,disabled:d,autoComplete:N,...c});case Xt.DATE:return e(lt,{type:nt.DATE,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.DATETIME:return e(lt,{type:nt.DATETIME,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.NUMBER:return e(lt,{type:nt.NUMBER,required:n||Boolean(f.required),icon:o,className:l,disabled:d,...c});case Xt.CHECKBOX:return e(xe,{required:n||Boolean(f.required),id:a,className:l,label:r,disabled:d,...c});case Xt.RADIO:return e(it,{required:n||Boolean(f.required),id:a,className:l,options:s,disabled:d,...c});case Xt.SWITCH:return e(rt,{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(Ye,{required:n||Boolean(f.required),id:a,className:l,disabled:d,onChangeCallback:e=>{g(e)},...c});default:return e(lt,{type:nt.TEXT,required:n||Boolean(f.required),disabled:d,icon:o,className:l,...c})}})(i,c)})}),m&&e("div",{className:"formfield-description",children:e(Me,{size:De.SMALL,className:"mb-0",children:m})}),S[a]&&e("div",{className:"formfield-error text-error italic",children:e(Me,{size:De.SMALL,className:"mb-0",children:S?.[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(Me,{as:Pe.P,className:"mb-0",children:[ot.UI.SHARE,":"]})}),n?.facebook&&e(F,{url:i,title:r,className:"",children:e(Se,{name:"mdi:facebook"})}),n?.twitter&&e(B,{url:i,title:r,className:"",children:e(Se,{name:"mdi:twitter"})}),n?.whatsapp&&e(H,{url:i,title:r,className:"",children:e(Se,{name:"mdi:whatsapp"})}),n?.email&&e(G,{url:i,title:r,className:"",children:e(Se,{name:"mdi:email"})}),n?.linkedin&&e(W,{url:i,title:r,className:"",children:e(Se,{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(Me,{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(Oe,{variant:Ie.PRIMARY,size:Te.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(i.url)}),r&&e(Oe,{variant:Ie.PRIMARY,size:Te.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(r.url)}),n&&e(Oe,{variant:Ie.PRIMARY,size:Te.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(n.url)}),l&&e(Oe,{variant:Ie.PRIMARY,size:Te.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(l.url)}),o&&e(Oe,{variant:Ie.PRIMARY,size:Te.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:S(p("flex flex-col gap-2",o)),children:[i&&e("div",{children:e(Ke,{tag:Ve.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(Le,{href:a.url,className:"flex gap-1",children:[a.icon&&e(Se,{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(Se,{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=S(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:r,focalAsset2:n,focalAsset3:l})=>{const o={opacity:.001,rotate:0,scale:1,x:200,y:0},s={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($e,{src:i.src,alt:i.alt,fill:!0})}),(r||n)&&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:[r&&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:o,animate:s,children:e($e,{src:r.src,alt:r.alt,fill:!0})}),n&&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:o,animate:{...s,transition:{...s.transition,delay:.3}},children:e($e,{src:n.src,alt:n.alt,fill:!0})})]}),l&&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($e,{src:l.src,fill:!0,alt:l.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{return"Not a valid phone number"}},fa=({handleSubmit:i,initialValues:r,handleTokenCallback:n,showSocialButtons:l=!1,className:o})=>{const c=Ht();s(()=>_.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:ot.FORMS.LOGIN_FORM.SUBMIT,initialValues:r,children:[e(Zt,{name:"email",type:Xt.EMAIL,label:ot.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:ua,autoComplete:"email"}),e(Zt,{name:"password",type:Xt.PASSWORD,label:ot.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),l&&t(a,{children:[e(qe,{}),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(Oe,{onClick:()=>d(K.Google),variant:Ie.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ot.UI.LOGIN_WITH_GOOGLE}),ma&&e(Oe,{onClick:()=>d(K.Apple),variant:Ie.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ot.UI.LOGIN_WITH_APPLE})]})})]})]})};fa.displayName="LoginForm";const ga=({handleSubmit:i,handleTokenCallback:r,showSocialButtons:n=!1,className:l})=>{const o=Ht();s(()=>_.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:ot.FORMS.REGISTER_FORM.SUBMIT,children:[e(Zt,{name:"email",type:Xt.EMAIL,label:ot.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:ua,autoComplete:"email"}),e(Zt,{name:"password",type:Xt.PASSWORD,label:ot.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:ot.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:ha,autoComplete:"new-password"})]}),n&&t(a,{children:[e(qe,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(Oe,{onClick:()=>c(K.Google),variant:Ie.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ot.UI.SIGNUP_WITH_GOOGLE}),e(Oe,{onClick:()=>c(K.Apple),variant:Ie.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ot.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:ot.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,children:e(Zt,{name:"email",type:Xt.EMAIL,label:ot.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(Oe,{variant:Ie.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(Oe,{variant:Ie.LINK,onClick:()=>s(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};function ba({className:t,onClick:a}){return e(Oe,{className:p("absolute -right-2 top-1/2 -translate-y-1/2 z-10",t),onClick:a,icon:"mdi:navigate-next",rounded:!0})}function ya({className:t,onClick:a}){return e(Oe,{className:p("absolute -left-2 top-1/2 -translate-y-1/2 z-10",t),onClick:a,icon:"mdi:navigate-before",rounded:!0})}Ea.displayName="Authenticator";const Aa=({testID:t,data:a,onPressCallback:i,isCentered:r=!1,carouselOptions:n={loop:!1,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,d]=c(!1);s(()=>{const e=setTimeout(()=>{d(!0)},100);return()=>clearTimeout(e)},[]);const m=!n?.slidesToShow||a.length<=n.slidesToShow,{responsive:u,showArrows:h,loop:p,showDots:f,slidesToShow:g,autoPlay:N,autoplaySpeed:E,vertical:b,easing:y,scrollAnimationDuration:A}=n;return e("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e(Z,{arrows:!m&&h,nextArrow:e(ba,{}),prevArrow:e(ya,{}),centerMode:r,responsive:u,slidesToScroll:1,slidesToShow:g||1,dots:!m&&f,infinite:!m&&p,autoplay:N,autoplaySpeed:E||0,vertical:b,easing:y||"linear",cssEase:y||"linear",speed:A,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))},o?"mounted":"mounting")})};var Sa;Aa.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"}(Sa||(Sa={}));const va=({testID:a,cardData:i,title:n,description:l,withSeparators:o,spacing:s=Sa.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(Me,{align:_e.CENTER,children:l})})]}),e("div",{className:S(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}`))})]})};va.displayName="PanelCards";const Ca=({testID:a,title:i,description:r,inversed:n,assets:l,buttonData:o,withBg:s=!0,spacing:c=Sa.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(Me,{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(Ue,{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(Oe,{...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})})})]})})]});Ca.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),y=r(null),A=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(y.current){const e=y.current;e.autoplay(c.autoplay),e.src(c.sources)}else{const t=document.createElement("video-js");b?.current?.appendChild(t);const a=y.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();if(e&&e.length)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:()=>{y.current&&y.current.play()},pause:()=>{y.current&&y.current.pause()},fullscreen:()=>{y.current&&y.current.requestFullscreen()}})),s(()=>{if(d)return;const e=y.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),y.current=null)}},[y]),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:S(p("relative w-full overflow-hidden h-full object-cover",{rouded:h},A.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",A.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 A=y(),v=r(null),C=f(v),I={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};s(()=>{C&&A.start(e=>({transform:"none",transition:{...I,delay:.1*e}}))},[A,C]);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:S(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:v,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:A,children:e(qt,{text:i,tag:N})}),n&&e(b.div,{initial:{transform:R},custom:1,animate:A,children:n}),o&&e(b.div,{initial:{transform:R},custom:1,animate:A,children:e(ft,{className:"mb-0",align:m?_e.LEFT:_e.RIGHT,data:o})}),d&&e(b.div,{initial:{transform:R},custom:2,animate:A,children:e("div",{className:p("flex items-center",{"justify-end":!m,"justify-start":m}),children:e(Oe,{...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($e,{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=Sa.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($e,{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($e,{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(Me,{children:r})}),t("div",{className:"flex items-center justify-start gap-4",children:[e("div",{className:"relative w-[150px] h-[50px]",children:e(Le,{href:o,target:"_blank",hideExternalIcon:!0,children:e($e,{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(Le,{href:s,target:"_blank",hideExternalIcon:!0,children:e($e,{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=Sa.NONE,videoProps:o})=>t("div",{"data-testid":a||'"PanelVideo"',className:S(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(Me,{children:n})})})]})]})]});Oa.displayName="PanelVideo";const xa=({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=y(),A=r(null),v=f(A),C={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};s(()=>{v&&E.start(e=>({transform:"none",transition:{...C,delay:.1*e}}))},[E,v]);const I="translateY(100px)";return t("div",{"data-testid":a||"PanelIntro",className:S(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($e,{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:A,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:_e.CENTER,data:n})}),o&&e(b.div,{initial:{transform:I},custom:2,animate:E,children:e("div",{className:"flex items-center",children:e(Oe,{...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($e,{src:l,alt:i,fill:!0}),u&&e(Ia,{sources:u.sources,options:{autoplay:!0,muted:!0,controls:!1,loop:!0},aspectRatioValue:u.aspectRatioValue})]})})]})})]})};xa.displayName="PanelIntro";const La=({testID:a,withBg:i=!0,spacing:r,className:n,children:l,title:o,headingTag:s})=>t("div",{"data-testid":a||"PanelCustom",className:S(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 _a;La.displayName="PanelCustom",function(e){e.BASIC="basic",e.MEDIA="media",e.VIDEO="video",e.ICON="icon",e.HORZ="horz",e.DATA="data"}(_a||(_a={}));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(Aa,{data:t?.images?.map((e,t)=>({variant:_a.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 ka=({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))});ka.displayName="CardGrid";const Da=({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})})})};Da.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(Oe,{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(Me,{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:Ve.H3,text:"Cart"}),l?.value?.items&&l?.value?.items.length>0&&t("div",{children:[e(Je,{as:Ze.UL,className:"",children:l?.value?.items.map(a=>{const i=a.title||a.generatedTitle||a.uuid;return e(tt,{as:"li",children:t("div",{className:"flex flex-row gap-4 p-2 border border-solid border-grey100 rounded mb-2",children:[e(Oe,{variant:Ie.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($e,{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(Me,{className:"mb-0 line-clamp-2",children:i}),t(Me,{className:"mb-0",children:["$",a?.options?.selectedPrice," USD"]})]})]})}),e("div",{className:"flex items-center justify-center",children:e(Oe,{id:"remove-cart-btn",rounded:!0,variant:Ie.SECONDARY,type:Ce.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(Da,{handleSubmit:e=>l?.handleAddPromoCode?.(e)})}),t(Me,{children:[o?.UI?.TAX,": ",l?.value?.taxRate?.percentage,"%"]}),t(Me,{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(Me,{children:[o?.UI?.PROMO_CODE,": ",h]}),e("div",{children:e(Oe,{rounded:!0,id:"remove-promo-btn",variant:Ie.SECONDARY,outline:!0,type:Ce.BUTTON,onClick:()=>l?.handleRemovePromoCode?.(h),className:"",icon:"mdi:window-close"})})]})]}),t(Me,{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(Oe,{size:Te.SMALL,variant:Ie.SECONDARY,onClick:()=>m(!1),children:o?.UI?.CONTINUE_BROWSING})}),e("div",{className:"",children:e(Oe,{size:Te.SMALL,variant:Ie.PRIMARY,onClick:()=>{m(!1),l?.handleCheckout?.()},children:o?.UI?.CHECKOUT})})]})]}),(!l?.value?.items||0===l?.value?.items?.length)&&e("div",{children:e(Ke,{tag:Ve.H5,children:o?.UI?.EMPTY})})]})]})};Pa.displayName="Cart";const Ma=({testID:a,hideMenu:i=!1,className:r})=>{const n=kt(),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:S(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(Le,{href:"/",children:e(et,{logo:n?.brand?.logo,aspectRatioClass:n?.brand?.logoAspectRatio})})})})}:{"data-testid":a||'"Header"',className:S(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(Le,{href:"/",children:e(et,{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(Oe,{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(Oe,{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(Oe,{variant:Ie.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(et,{logo:n?.brand?.logo,aspectRatioClass:n?.brand?.logoAspectRatio})})}),e("div",{children:e(Oe,{variant:Ie.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(Oe,{onClick:n?.app?.logoutCallback,children:l.UI.LOGOUT})}),!n?.app?.isAuthenticated&&e("div",{className:"md:hidden flex justify-center",children:e(Oe,{onClick:()=>{n?.app?.loginCallback?.(),u()},children:l.UI.LOGIN})})]})]})]})]})})};Ma.displayName="Header";const Ua=({testID:a,className:i})=>{const r=d(_t);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(et,{logo:r?.brand?.logo,aspectRatioClass:r?.brand?.logoAspectRatio})}),r.footer?.about&&e("div",{children:e(Me,{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(Me,{align:_e.CENTER,as:Pe.SMALL,children:["© ",(new Date).getFullYear()," ",ot.UI.COPYRIGHT," ",r.brand?.name]}),e(Me,{align:_e.CENTER,as:Pe.SMALL,children:ot.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($e,{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(We.Root,{open:r,onOpenChange:n,className:"mb-2",children:[t(We.Trigger,{className:p("accordion-trigger",{"accordion-trigger-open":r}),children:[e(Ke,{flush:!0,tag:Ve.H4,className:p("transition-all",{"text-white":r}),children:a}),e("div",{className:"",children:e(Se,{name:r?"mdi:chevron-up":"mdi:chevron-down"})})]}),e(We.Content,{children:e("div",{className:"p-2",children:e(Me,{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,paymentMethod:o,changeSubscriptionCallback:s,pauseSubscriptionCallback:d,updatePaymentMethodCallback:m,selectedPlanCallback:u,confirmPlanCallback:h,isLoading:f})=>{const g=Ht(),[N,E]=c(n?.id),[b,y]=c(!1),[A,S]=c(!1),v=e=>{E(e),u&&"function"==typeof u&&u(e)};return t("div",{"data-testid":a||'"SubscriptionManager"',className:"relative",children:[t("div",{className:"flex flex-col gap-4",children:[i&&e(Ke,{children:i}),!n&&e("div",{className:"rounded-lg shadow-md p-6 md:p-8 lg:p-10 bg-cardBackground dark:bg-darkCardBackground max-w-4xl mx-auto w-full text-center",children:t("div",{className:"mb-4",children:[e(Ke,{tag:Ve.H3,className:"mb-2",children:g.UI.NO_ACTIVE_SUBSCRIPTION}),e(Me,{className:"text-gray-600 dark:text-gray-400",children:g?.UI?.NO_SUBSCRIPTION_DETAILS})]})}),n&&t("div",{className:"rounded-lg shadow-md p-6 md:p-8 lg:p-10 bg-cardBackground dark:bg-darkCardBackground max-w-4xl mx-auto w-full",children:[t("div",{className:"mb-6 pb-6 border-b border-gray-200 dark:border-gray-700",children:[t("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4 mb-4",children:[t("div",{className:"flex-1",children:[e(Me,{className:"text-sm text-gray-500 dark:text-gray-400 mb-1 uppercase tracking-wide",children:g?.UI?.CURRENT_PLAN}),e(Ke,{tag:Ve.H2,className:"mb-0",children:n.plan}),n.planDescription&&e(Me,{className:"text-gray-600 dark:text-gray-400 mt-1 mb-0",children:n.planDescription})]}),e("div",{className:"flex-shrink-0",children:(()=>{const a=(e=>{switch(e.toLowerCase()){case"active":return{icon:"mdi:check-circle",bgColor:"bg-success",textColor:"text-white",label:e};case"trialing":return{icon:"mdi:star-circle",bgColor:"bg-info",textColor:"text-white",label:e};case"past_due":return{icon:"mdi:alert-circle",bgColor:"bg-warning",textColor:"text-black",label:"Past Due"};case"canceled":case"cancelled":return{icon:"mdi:close-circle",bgColor:"bg-error",textColor:"text-white",label:"Cancelled"};case"incomplete":return{icon:"mdi:progress-alert",bgColor:"bg-warning",textColor:"text-black",label:"Incomplete"};case"inactive":return{icon:"mdi:pause-circle",bgColor:"bg-gray-400 dark:bg-gray-600",textColor:"text-white",label:"Inactive"};default:return{icon:"mdi:information-circle",bgColor:"bg-gray-300 dark:bg-gray-700",textColor:"text-gray-800 dark:text-gray-200",label:e}}})(n.status);return t("div",{className:p("inline-flex items-center gap-2 px-4 py-2 rounded-full text-sm font-semibold shadow-sm",a.bgColor,a.textColor),children:[e(Se,{name:a.icon,className:"w-5 h-5"}),e("span",{children:a.label})]})})()})]}),e("div",{className:"text-3xl md:text-4xl font-bold text-primary",children:n.price})]}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[t("div",{className:"flex flex-col",children:[e(Me,{className:"text-gray-500 dark:text-gray-400 mb-1",children:g?.UI?.NEXT_BILLING_DATE}),e(Me,{className:"mb-0 font-medium",children:n.nextBillingDate})]}),n.endDate&&t("div",{className:"flex flex-col",children:[e(Me,{className:"text-gray-500 dark:text-gray-400 mb-1",children:g?.UI?.END_DATE}),e(Me,{className:"mb-0 font-medium text-red-600 dark:text-red-400",children:n.endDate})]})]}),o&&e("div",{className:"mt-6 pt-6 border-t border-gray-200 dark:border-gray-700",children:t("div",{className:"flex flex-col",children:[e(Me,{className:"text-sm text-gray-500 dark:text-gray-400 mb-2 uppercase tracking-wide",children:"Payment Method"}),t("div",{className:"flex items-center gap-3",children:[e(Se,{name:"mdi:credit-card",className:"w-6 h-6 text-primary"}),t("div",{className:"flex flex-col",children:[t(Me,{className:"mb-0 font-medium",children:[o.cardType," ",o.cardNumber]}),t(Me,{className:"text-sm text-gray-500 dark:text-gray-400 mb-0",children:["Expires ",o.cardExpiry]})]})]})]})})]}),n&&t("div",{className:"flex justify-center gap-4 flex-wrap",children:[s&&e(Oe,{variant:Ie.PRIMARY,onClick:()=>y(!b),children:b?g?.UI?.CANCEL:g?.UI?.CHANGE_PLAN}),m&&e(Oe,{variant:Ie.SECONDARY,onClick:()=>{y(!1),ae({title:g?.UI?.CONFIRM_TO_SUBMIT,message:"Are you sure you want to update your payment method? You'll be asked to enter new card details.",buttons:[{label:g?.UI?.YES,onClick:m},{label:g?.UI?.NO,onClick:()=>{}}]})},children:"Update Payment Method"}),!n.endDate&&e(Oe,{variant:Ie.SECONDARY,onClick:()=>{y(!1),ae({title:g?.UI?.CONFIRM_TO_SUBMIT,message:g?.UI?.CONFIRM_TO_PAUSE,buttons:[{label:g?.UI?.YES,onClick:d},{label:g?.UI?.NO,onClick:()=>{}}]})},children:g?.UI?.PAUSE_SUBSCRIPTION})]}),b&&l&&r&&t("div",{className:"flex items-center flex-col gap-4",children:[!A&&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":N&&N!==t.id},{hidden:A&&N&&N!==t.id}),children:e(Kt,{variant:_a.ICON,className:p({"rounded border-2 border-primary bg-tertiary":N===t.id},{"border-2 border-cardBackground":N!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>v(t.id)}})},t.id))}),e("div",{children:e(Oe,{variant:Ie.PRIMARY,onClick:()=>{ae({title:g?.UI?.CONFIRM_TO_SUBMIT,message:g?.UI?.CONFIRM_TO_CHANGE_PLAN,buttons:[{label:g?.UI?.YES,onClick:()=>{N&&h&&"function"==typeof h&&h(N),y(!1)}},{label:g?.UI?.NO,onClick:()=>y(!1)}]})},disabled:N===n?.id,children:g?.UI?.CONFIRM_TO_SUBMIT})})]}),n&&r&&!b&&e("div",{className:"flex items-center flex-col gap-4",children:r}),!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":N&&N!==t.id},{hidden:A&&N&&N!==t.id}),children:e(Kt,{variant:_a.ICON,className:p({"rounded border-2 border-primary bg-tertiary":N===t.id},{"border-2 border-cardBackground":N!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>v(t.id)}})},t.id))}),e("div",{children:e(Oe,{variant:Ie.PRIMARY,onClick:()=>{S(!0),N&&h&&"function"==typeof h&&h(N)},disabled:!N,children:g?.UI?.CONFIRM_CHOICE})})]}),e("div",{children:r})]})]}),f&&e("div",{className:"absolute top-0 left-0 w-full h-full bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e(Re,{})})]})};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(Se,{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(Oe,{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(Xe,{className:"text-sm",transform:we.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(ge,{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:Ne,prevIcon:e("div",{className:"text-bodyText",children:e(Se,{name:"mdi:chevron-left"})}),nextIcon:e("div",{className:"text-bodyText",children:e(Se,{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(Xe,{className:"text-sm mr-2",transform:we.UPPERCASE,children:ot.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 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(lt,{name:"SearchBoxInput",type:nt.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(Oe,{type:Ce.BUTTON,onClick:()=>s("",{shouldClearFilters:!1}),variant:Ie.SECONDARY,icon:"mdi:restore"}),e(Oe,{type:Ce.SUBMIT,variant:Ie.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,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):"");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:Ee.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:_a.MEDIA,data:a,...m});case $a.cardVideo:return e(Kt,{variant:_a.VIDEO,data:a,...m,isMuted:!1});default:return e(Kt,{variant:_a.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]),[y,A]=c(!1),S=()=>{A(e=>!e)};return e(le,{config:b,children:e(oe,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:l,setSearchTerm:c})=>e(a,{children:e(se,{children:e(ti,{noSidebar:m,showSidebar:y,header:g&&e(fe,{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(Oe,{onClick:S,icon:"mdi:close",children:N?.UI?.HIDE_FILTERS})}),l&&r&&e(ue,{label:"Sort by",sortOptions:r,view:Xa}),d?.map(({field:t,label:a,view:i})=>e(pe,{field:t,label:a,view:i},t))]}),bodyContent:e(he,{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(de,{view:Ja}),l&&i&&e(me,{view:Za,options:i}),l&&r&&m&&e(ue,{label:"Sort by",sortOptions:r,view:Xa}),l&&!m&&e("div",{className:"block md:hidden",children:e(Oe,{rounded:!0,onClick:S,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e(ce,{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(Xe,{className:"text-sm",transform:we.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(Xe,{transform:we.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(Oe,{onClick:()=>r(o),size:Te.SMALL,rounded:!0,children:e(Se,{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(Me,{as:Pe.SPAN,size:De.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(Xe,{className:"text-sm",transform:we.UPPERCASE,children:r}),d&&e("div",{className:"mt-1",children:e(lt,{type:nt.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(xe,{id:`facet_${r}${s}`,"data-transaction-name":`facet - ${r}`,checked:i,onChange:()=>i?l(n):o(n),label:s}),e(Me,{as:Pe.SPAN,size:De.SMALL,children:a.count.toLocaleString("en")})]},s)})]}),c&&e(Oe,{size:Te.SMALL,variant:Ie.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(st,{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(st,{initValue:n?.profile?.picture,isEditable:!1})}),s&&e("div",{children:e(Je,{className:"flex items-center flex-col justify-center gap-2",children:s?.map((t,a)=>e(tt,{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(Ke,{tag:Ve.H5,flush:!0,children:d.UI.SHARE}),t("div",{className:"flex gap-2",children:[e(F,{url:c,children:e(Se,{name:"mdi:facebook"})}),e(B,{url:c,children:e(Se,{name:"mdi:twitter"})}),e(W,{url:c,children:e(Se,{name:"mdi:linkedin"})}),e(H,{url:c,children:e(Se,{name:"mdi:whatsapp"})})]})]}),t("div",{className:"flex flex-col gap-2",children:[o&&e(Oe,{onClick:o,icon:"mdi:lock-reset",children:d?.UI.RESET_PASSWORD}),l&&e(Oe,{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(Re,{})}),n&&e(ka,{data:n,onPressCallback:l}),!n&&!o&&e("div",{children:e(Me,{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(Re,{})}),n&&e("div",{children:e(ka,{data:n,onPressCallback:o})})]});Ei.displayName="ChallengeLibraryScreen";const bi="MMMM dd, yyyy",yi="HH:mm",Ai=({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(()=>be(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(Xe,{children:[p.UI.CREATED,": ",f]}),!d&&t("div",{className:"flex flex-col gap-2 mb-4",children:[e(Me,{bold:!0,className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e(Me,{className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e("div",{children:e(Oe,{variant:Ie.PRIMARY,onClick:u,isLoading:h,disabled:h,children:c})}),t(Me,{size:De.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:_a.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))})]})};Ai.displayName="ChallengeScreen";const Si=({testID:a,title:i,image:r,updated:n,content:l,isLoading:o,isLayoutMinimal:s=!1})=>{const c=Ht(),d=n?be(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(Re,{})}),i&&e(qt,{text:i}),n&&e("div",{children:t(Me,{children:[c?.UI?.UPDATED,": ",d]})}),l&&e("div",{children:e(ft,{data:l})})]})};Si.displayName="ContentScreen";const vi=({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,subscriptionStatus:N})=>{const E=Ht(),b={loop:!1,autoPlay:!1,slidesToShow:4,scrollAnimationDuration:500,onSnapToItem:()=>{},shouldScrollOnClick:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!0}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2,initialSlide:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]};return t(Fa,{"data-testid":a||"DashboardScreen",image:r,children:[i&&e(qt,{text:i}),"none"===N&&e("div",{className:"mb-6",children:e(ct,{icon:"mdi:star",title:"Unlock Premium Content",text:"Ready to feel the burn and boost your energy? Click here to start your 7-day NRG at home fitness trial today! (first-time sucsrcibers only)",href:"/subscription"})}),"default"===N&&e("div",{className:"mb-6",children:e(ct,{icon:"mdi:arrow-up-bold",title:"Upgrade to Premium+",text:"Take your workouts to the next level — upgrade to NRG Premium+ for unlimited live classes and full on-demand access. Click here to upgrade now!",href:"/subscription"})}),e("div",{children:t(Me,{children:[E?.UI?.WELCOME," ",n?.name]})}),m&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Re,{})}),!m&&s&&t("div",{className:"mb-8",children:[e(Ke,{tag:Ve.H4,children:E?.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(Re,{})}),!h&&l&&t("div",{children:[e(Ke,{tag:Ve.H4,children:E?.UI?.LATEST_WORKOUTS}),e("div",{children:e(Aa,{data:l,onPressCallback:p,carouselOptions:b})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Re,{})}),!u&&c&&t("div",{children:[e(Ke,{tag:Ve.H4,flush:!0,children:E?.UI?.OUR_FEATURE}),e(Ta,{...c,withBg:!0,spacing:Sa.ATOM})]}),h&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Re,{})}),!h&&o&&t("div",{children:[e(Ke,{tag:Ve.H4,children:E?.UI?.RECENTLY_ADDED}),e("div",{children:e(Aa,{data:o,onPressCallback:f,carouselOptions:b})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(Re,{})}),!u&&d&&t("div",{children:[e(Ke,{tag:Ve.H4,children:E?.UI?.WHATS_NEW}),e("div",{children:e(Aa,{data:d,onPressCallback:g,carouselOptions:b})})]})]})};vi.displayName="DashboardScreen";const Ci=({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(Re,{})}),n&&e(Ha,{data:n?.map(e=>({title:e.title||"",content:e.answer||""}))})]});Ci.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(xa,{...r}),l&&e(Ca,{...l}),o&&e(va,{...o}),s?.[0]&&e(Ta,{...s?.[0]}),c&&e(va,{...c}),d&&e(va,{...d}),s?.slice(1).map(t=>e(Ta,{...t},t.title)),m&&e(va,{...m}),u&&e(Ra,{...u}),h&&e(La,{...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(Me,{children:r?.UI?.PLEASE_WAIT}),e(Re,{})]})})};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(Re,{})}),n&&e(Je,{children:n.map(t=>e(tt,{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(Me,{children:r||n?.UI?.PAGE_NOT_FOUND_MESSAGE_OOPS}),e(Ke,{tag:Ve.H5,flush:!0,children:t("span",{className:"flex flex-row gap-2 items-center",children:[e(Se,{name:"mdi:lightbulb"})," ",n?.UI?.WHAT_CAN_YOU_DO]})}),t(Je,{as:Ze.UL,children:[e(tt,{as:"li",children:n?.UI?.DOUBLE_CHECK_URL}),e(tt,{as:"li",children:n?.UI?.RETURN_TO_HOMEPAGE}),t(tt,{as:"li",children:[n?.UI?.EXPLORE_SITE,"."]})]}),e(Me,{children:n?.UI?.STILL_NEED_HELP})]})};Oi.displayName="NotFoundScreen";const xi=({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})]});xi.displayName="PasswordResetScreen";const Li=({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})]});Li.displayName="PasswordResetAuthScreen";const _i=({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})]});_i.displayName="ProfileScreen";const wi=({testID:a,end:r,live:n,start:o,title:s,video:c})=>{const d=Ht(),m=l(()=>{if(o)return be(new Date(1e3*o),bi)},[o]),u=l(()=>{if(o)return be(new Date(1e3*o),yi)},[o]),h=l(()=>{if(r)return be(new Date(1e3*r),yi)},[r]),[p,f]=i.useState(!1);return t("div",{"data-testid":a||'"ScheduleItem"',className:"flex flex-col md:flex-col gap-4",children:[e(Ke,{tag:Ve.H4,children:s}),n&&!p&&e("div",{className:"flex-1",children:e(Ia,{url:n,isYoutube:!0})}),m&&u&&h&&t("div",{children:[e(Me,{className:"mb-0",children:d?.UI?.TODAYS_ITEMS}),t(Xe,{children:[m,": ",u," - ",h]})]}),c&&e("div",{className:"relative my-4",children:e(Oe,{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 ki=({testID:a,scheduleItems:i,hasAccess:r})=>{const n=Ht(),[o,s]=c(new Date),d=l(()=>(e=>{const t=new Map;return e?.days?(e.days.forEach(e=>{Object.entries(e).forEach(([e,a])=>{if(a&&a[0]){const i=a[0];if(i.start){const a=new Date(1e3*i.start),r=ye(a),n=`${r.getFullYear()}-${String(r.getMonth()+1).padStart(2,"0")}-${String(r.getDate()).padStart(2,"0")}`;t.set(n,{...i,weekday:e})}else console.log(` ✗ No start timestamp for ${e}`)}})}),t):t})(i),[i]),m=l(()=>Array.from(d.keys()).map(e=>new Date(e)),[d]),u=h(e=>{if(!e)return null;const t=ye(e),a=`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`;return d.get(a)||null},[d]),p=l(()=>u(o),[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(Ke,{tag:Ve.H5,transform:je.UPPERCASE,className:"mb-4",children:"Select a Date"}),e(Fe,{selected:o,onSelect:s,datesWithContent:m})]}),t("div",{children:[!r&&t("div",{children:[e(Ke,{tag:Ve.H2,children:n?.UI?.ACCESS_RESTRICTED}),e(Me,{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(Ke,{tag:Ve.H4,children:n?.UI?.NO_CLASS}),e(Me,{children:"No class scheduled for this date."})]})]})]})};ki.displayName="Schedule";const Di=({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(Re,{})}),n&&e("div",{children:e(ki,{...n})})]});Di.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(Me,{children:o?.UI?.NEED_HELP_WITH_SUBSCRIPTION}),e("div",{children:e(Oe,{icon:"mdi:help",variant:Ie.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:y,isLiked:A,isFavourite:S,relatedWorkouts:v,hasActiveSubscription:C,htmlDetails:I,noSubActionCallback:T,numCompleted:R="0"})=>{const O=Ht(),[x,L]=i.useState(!1),_=l(()=>be(new Date(1e3*d),bi),[d]),w=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(Xe,{children:[O.UI.CREATED,": ",_]})}),e("div",{children:t(Xe,{children:[O.UI.DURATION,": ",w]})})]}),!C&&t("div",{children:[e(Ke,{tag:Ve.H4,children:O.UI.NO_ACTIVE_SUBSCRIPTION}),e(Me,{children:O?.UI?.NO_SUBSCRIPTION_DETAILS}),T&&e(Oe,{rounded:!0,onClick:T,icon:"mdi:arrow-right-circle-outline",children:O.UI.SUBSCRIBE})]}),e("div",{children:e(Oe,{onClick:()=>{L(!0)},icon:"mdi:play",iconFirst:!0,disabled:!C,children:O.UI.START_WORKOUT})}),t("div",{className:"flex gap-2",children:[E&&e("div",{children:e(Oe,{onClick:()=>{n&&E&&"function"==typeof E&&(E(n),Q.info(A?O.UI.REMOVED_LIKE:O.UI.ADDED_LIKE))},icon:A?"mdi:heart":"mdi:heart-outline",disabled:!C,rounded:!0})}),y&&e("div",{children:e(Oe,{onClick:()=>{n&&y&&"function"==typeof y&&(y(n),Q.info(S?O.UI.REMOVED_FAVORITE:O.UI.ADDED_FAVORITE))},icon:S?"mdi:bookmark":"mdi:bookmark-outline",disabled:!C,rounded:!0})}),b&&e("div",{children:e(Oe,{rounded:!0,onClick:()=>{n&&b&&"function"==typeof b&&(b(n),Q.info(O.UI.MARKED_COMPLETE))},icon:"mdi:plus",disabled:!C,children:R})})]}),!I&&c&&e("div",{children:e(Me,{children:c})}),I&&c&&e("div",{children:e(ft,{data:c})}),t("div",{className:"flex gap-4 flex-wrap",children:[u&&t(Xe,{children:[O.UI.LEVEL,": ",u]}),h&&t(Xe,{children:[O.UI.SECTION,": ",h]}),g&&t(Xe,{children:[O.UI.CATEGORY,": ",g]}),N&&t(Xe,{children:[O.UI.TYPE,": ",N]})]}),v&&e(a,{children:e(ra,{isNarrow:!0,padded:!0,children:e("div",{children:e(Ke,{children:O?.UI?.RELATED})})})}),e("div",{children:x&&e(Ka,{modalOpen:x,onCloseCallback:()=>L(!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,Dt as AmplifyContext,Pt as AmplifyProvider,Ae as AnimationCounter,la as AnimationSet1,_t as AppContext,wt as AppProvider,fi as AuthScreen,Ea as Authenticator,st as Avatar,Te as BTN_SIZES,Ce as BTN_TYPES,Ie as BTN_VARIANTS,ct as Banner,ve as Blockquote,Oe as Button,dt as ButtonGroup,_e as COPY_ALIGN,ke as COPY_CONTEXTUAL,De as COPY_SIZE,Pe as COPY_TAG,we as COPY_TRANSFORM,Wa as CPL_SPACING,Va as CRL_SIZE,Fe as Calendar,Kt as Card,ka as CardGrid,gi as CardGridScreen,_a as CardVariant,Aa as Carousel,Pa as Cart,Ut as CartProvider,Ni as CatalogueScreen,Ei as ChallengeLibraryScreen,Ai as ChallengeScreen,xe as Checkbox,Ue as Chip,We as Collapsible,ra as Container,Ya as ContentPageLayout,za as ContentRowsLayout,Si as ContentScreen,Me as Copy,vi as DashboardScreen,qt as DisplayHeading,Ci as FAQScreen,Xt as FIELD_TYPES,Ye as FileUpload,Ua as Footer,Na as ForgotPasswordForm,$t as Form,Zt as FormField,Qt as FormSelect,qa as FullContentBackgroundImage,Ka as FullScreenVideoModal,ze as HEADING_ALIGN,Ve as HEADING_TAGS,je as HEADING_TRANSFORM,Ma as Header,Ke as Heading,na as Hero,Ii as HomeScreen,qe as Hr,ft as HtmlContent,Se as Icon,$e as Image,At as InvalidDurationError,Xe as Label,Le as Link,Je as List,tt as ListItem,Ze as ListTag,Re as Loader,fa as LoginForm,et as Logo,Ti as LogoutScreen,aa as Menu,Ri as MenuScreen,di as MultiCheckboxFacet,St as MultipleFractionsError,Oi as NotFoundScreen,at as Notice,ja as OTPInput,va as PanelCards,La as PanelCustom,Ca as PanelFeature,Ta as PanelHero,xa as PanelIntro,Ra as PanelProduct,wa as PanelScroller,Oa as PanelVideo,Li as PasswordResetAuthScreen,xi as PasswordResetScreen,hi as ProfileForm,_i as ProfileScreen,Da as PromoCodeForm,it as Radio,ga as RegisterForm,ui as ResetPasswordAuthForm,mi as ResetPasswordForm,$a as ResultAsTypes,Sa as SPACING,ot as STRINGS_EN,Di as ScheduleScreen,Fa as Screen,oi as Search,Jt as Share,ci as SingleLinksFacet,si as SingleSelectFacet,Ga as SubscriptionManager,Pi as SubscriptionScreen,rt as Switch,ea as Tabs,lt as TextInput,Ot as ThemeContext,xt as ThemeProvider,Qe as Variants,Ia as Video,ta as VisitUs,Mi as WorkoutScreen,Rt as defaultTheme,It as formatDuration,Tt as getRandomImageFromArray,vt as parseDuration,Er as theme,Ct as truncateString,kt as useAppContext,Ft as useCartContext,Ht as useLanguage,Gt as useTheme,Lt as useThemeContext,ua as validEmail,ha as validPassword,pa as validatePhoneNumber};