@4alldigital/foundation-ui--gamma 1.80.0 → 1.81.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/foundation-ui.css +2 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import*as i from"react";import l,{useRef as r,forwardRef as n,useMemo as s,createElement as o,useEffect as d,useState as c,useContext as m,createContext as u,useImperativeHandle as p,useCallback as h}from"react";import N from"classnames";import{useInView as f,useIsomorphicLayoutEffect as E,animate as g,motionValue as A,motion as S,useAnimation as v}from"framer-motion";import{Icon as C}from"@iconify/react";import{twMerge as I}from"tailwind-merge";import{getDefaultClassNames as b,DayPicker as T}from"react-day-picker";import*as R from"@radix-ui/react-collapsible";import O,{attributesToProps as y,domToReact as x}from"html-react-parser";import{parse as _}from"iso8601-duration";import{clsx as L}from"clsx";import{Amplify as w,Hub as D,Auth as P}from"aws-amplify";import k from"react-hover-video-player";import{useForm as M,FormProvider as U,useFormContext as F,Controller as B}from"react-hook-form";import{FacebookShareButton as G,TwitterShareButton as H,WhatsappShareButton as W,EmailShareButton as Y,LinkedinShareButton as V}from"react-share";import{Tabs as z,TabList as j,Tab as K,TabPanel as q}from"react-tabs";import{CognitoHostedUIIdentityProvider as $}from"@aws-amplify/auth";import{isPossiblePhoneNumber as X,isValidPhoneNumber as Q,validatePhoneNumberLength as Z}from"libphonenumber-js";import{toast as J}from"react-toastify";import ee from"embla-carousel-react";import{ArrowLeft as te,ArrowRight as ae}from"lucide-react";import{Slot as ie}from"@radix-ui/react-slot";import{cva as le}from"class-variance-authority";import re from"react-player/youtube";import{isMobileOnly as ne}from"react-device-detect";import se from"video.js";import{confirmAlert as oe}from"react-confirm-alert";import de from"react-otp-input";import ce from"react-modal";import me from"@elastic/search-ui-elasticsearch-connector";import{SearchProvider as ue,WithSearch as pe,ErrorBoundary as he,Paging as Ne,PagingInfo as fe,ResultsPerPage as Ee,Sorting as ge,Results as Ae,Facet as Se,SearchBox as ve}from"@elastic/react-search-ui";import Ce from"rc-pagination";import Ie from"rc-pagination/lib/locale/en_US";import be from"he";import{format as Te,startOfDay as Re}from"date-fns";const Oe=({testID:t,from:a,to:i,animationOptions:l,className:n,numDecimals:s=0})=>{const o=r(null),d=f(o,{once:!0});return E(()=>{const e=o.current;if(!e||!d)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=i.toString());e.textContent=a.toString();const t=g(a,i,{duration:1,ease:"easeOut",...l,onUpdate:t=>{e.textContent=t.toFixed(s)}});return()=>{t.stop()}},[o,d,a,i,l]),e("span",{ref:o,"data-testid":t||"AnimationCounter",className:N("relative",n)})};Oe.displayName="AnimationCounter";const ye=({name:t,size:a=24,color:i,id:l,className:r,testID:n})=>e(C,{"data-testid":n||l||"Icon",icon:t,width:a,height:a,color:i||"currentColor",className:r});ye.displayName="Icon";const xe=({text:a,citation:i,className:l,citationAttribute:r,showIcon:n=!0})=>{const s=N("text-xl italic font-bold",l);return t("blockquote",{"data-testid":"Blockquote",className:s,children:[n&&e(ye,{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}),r&&e("cite",{className:"pl-3 text-sm font-light",children:r})]})})]})};var _e,Le,we;xe.displayName="Blockquote",function(e){e.SUBMIT="submit",e.RESET="reset",e.BUTTON="button"}(_e||(_e={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link"}(Le||(Le={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(we||(we={}));const De=({color:a,size:i=8,thickness:l=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:l}),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..."})]})});De.displayName="Loader";const Pe=({variant:i=Le.PRIMARY,size:l=we.MEDIUM,type:r=_e.BUTTON,wide:n=!1,rounded:s=!1,raised:o=!1,uppercase:d,children:c,id:m,disabled:u,ariaLabel:p,onClick:h,icon:f,external:E,iconFirst:g,outline:A,testID:S,className:v,isLoading:C,offsetFont:b=!1})=>{const T={small:{x:c&&!s?n?"px-5":"px-3":c?"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:c&&!s?n?"px-8":"px-4":c?"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:c&&!s?n?"px-11":"px-5":c?"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},R=I(N("button rounded-btnBorderRadius",{shadow:o},{uppercase:d},{"auto-cols-auto grid-cols-2 gap-4":C||f||E},{"flex-row-reverse":g},{"opacity-50 cursor-not-allowed":u},`${T?.[l]?.y} ${T?.[l]?.x} ${T?.[l]?.text}`,{"text-white border-primary bg-primary hover:bg-primary-darker":i===Le.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":i===Le.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":i===Le.TERTIARY},{"border-primary bg-transparent text-body-text dark:text-body-text-dark hover:bg-opacity-30":A},{"border-primary-300 dark:border-primary-400 hover:border-primary-400 dark:hover:border-primary-500":A},{"px-0 text-body-text dark:text-body-text-dark border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert":i===Le.LINK},{"rounded-full leading-none":s},v)),O=N(T?.[l]?.icon);return e("button",{id:m,"data-testid":S||m||"Button",onClick:h,className:R,type:r,disabled:u,"aria-label":p,role:"button",children:t(a,{children:[b?e("span",{className:"brand-font-offset",children:c}):c,f&&!E&&e("span",{className:"flex items-center",children:e(ye,{name:f,className:O})}),E&&e("span",{className:"flex items-center",children:e(ye,{name:"carbon:launch",className:O})}),C&&e("div",{className:"flex items-center",children:e(De,{size:4})})]})})};Pe.displayName="Button";const ke=n(function({id:a,label:i,required:l,className:r,disabled:n,...s},o){return t("div",{"data-testid":"Checkbox",className:N("flex items-center",r),children:[t("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e("input",{id:a,ref:o,disabled:n,type:"checkbox",className:"form-item checkbox m-0 appearance-none peer h-full w-full shrink-0 focus:ring-2",required:l,...s}),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(ye,{name:"mdi:check-bold",size:12})})]}),i&&e("label",{className:"label pl-2 leading-none text-sm text-body-text dark:text-body-text-dark",htmlFor:a,children:i})]})});ke.displayName="Checkbox";const Me=({href:a,children:i,onClick:r=()=>{},history:n,target:s,id:o,testID:d,className:c,prefetch:m,hideExternalIcon:u=!1})=>{const p=N("link cursor-pointer no-underline",c);if(!u&&a&&a.startsWith("http"))return t("span",{className:"inline-flex flex-row gap-2 items-center",children:[e("a",{"data-testid":d||o||"Link",className:N(p),href:a,target:"_blank",rel:"noopener noreferrer",children:i}),e(ye,{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 l.createElement(e,{href:a||"#",onClick:r,"data-testid":d||o||"Link",className:p,target:s||"_self",prefetch:m||!1},i)}catch{return e("a",{"data-testid":d||o||"Link",className:p,href:a,onClick:e=>{r?r(e):!0!==e.defaultPrevented&&n&&a&&(e.preventDefault(),n.push(a))},target:s,children:i})}};var Ue,Fe,Be,Ge,He;Me.displayName="Link",function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(Ue||(Ue={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(Fe||(Fe={})),function(e){e.INVERTED="inverted",e.MUTED="muted"}(Be||(Be={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.INTRO="intro"}(Ge||(Ge={})),function(e){e.P="p",e.SPAN="span",e.DIV="div",e.SMALL="small"}(He||(He={}));const We=({children:t,as:a=He.P,size:i,bold:l,align:r,transform:n,underlined:s,id:o,className:d,testID:c})=>{const m=N({[`text-${r}`]:r},{"font-bold":l},{"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:s},n,d);return e(a,{"data-testid":c||o||"Copy",className:I(m),children:t})};We.displayName="Copy";const Ye=({testID:a,text:i,outline:l,rounded:r,variant:n,size:o="medium",icon:d,iconFirst:c,onClick:m})=>{const u=s(()=>{switch(o){case"small":return{iconSize:16,copySize:Ge.SMALL};case"medium":default:return{iconSize:20,copySize:Ge.MEDIUM};case"large":return{iconSize:28,copySize:Ge.LARGE}}},[o]),p=I(N("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":l},{"rounded-full":r},{"flex-row-reverse":c},{"bg-primary text-white":"primary"===n},{"bg-secondary text-white":"secondary"===n},{"bg-tertiary text-white":"tertiary"===n},{"bg-info text-white":"info"===n},{"bg-success text-white":"success"===n},{"bg-warning text-white":"warning"===n},{"bg-error text-white":"error"===n},{"py-1 px-3":"small"===o},{"py-2 px-4":"medium"===o},{"py-3 px-6":"large"===o}));return m&&"function"==typeof m?t(Me,{"data-testid":a||"Chip",className:p,onClick:m,children:[e(We,{className:"mb-0",as:He.SPAN,size:u.copySize,children:i}),d&&e("div",{className:"flex items-center justify-center",children:e(ye,{name:d,size:u.iconSize})})]}):t("div",{"data-testid":a||"Chip",className:p,children:[e(We,{className:"mb-0",as:He.SPAN,size:u.copySize,children:i}),d&&e("div",{className:"flex items-center justify-center",children:e(ye,{name:d,size:u.iconSize})})]})};Ye.displayName="Chip";const Ve=({testID:t,className:a,classNames:i,selected:l,onSelect:r,datesWithContent:n=[],disabled:s,showOutsideDays:o=!0,...d})=>{const c=b();return e("div",{"data-testid":t||"Calendar",className:"flex justify-center",children:e(T,{mode:"single",selected:l,onSelect:r,disabled:s,showOutsideDays:o,modifiers:{hasContent:n},modifiersClassNames:{hasContent:"has-content-date"},className:I("p-3 w-fit",a),classNames:{root:I("w-fit",c.root),months:I("relative flex flex-col gap-4 md:flex-row",c.months),month:I("flex w-full flex-col gap-4",c.month),nav:I("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",c.nav),button_previous:I("inline-flex items-center justify-center rounded-md h-9 w-9 bg-transparent p-0 opacity-50 hover:opacity-100 transition-opacity",c.button_previous),button_next:I("inline-flex items-center justify-center rounded-md h-9 w-9 bg-transparent p-0 opacity-50 hover:opacity-100 transition-opacity",c.button_next),month_caption:I("flex h-9 w-full items-center justify-center px-9",c.month_caption),caption_label:I("select-none font-medium text-sm",c.caption_label),weekdays:I("flex",c.weekdays),weekday:I("text-grey-600 dark:text-grey-400 flex-1 select-none rounded-md text-[0.8rem] font-normal",c.weekday),week:I("mt-2 flex w-full",c.week),day:I(c.day,'relative aspect-square h-full w-full select-none p-0 text-center [&[data-selected="true"]>button]:border-grey-800'),day_button:I(c.day_button,"h-9 w-9 p-0 font-normal inline-flex items-center justify-center rounded-md text-body-text dark:text-body-text-dark","hover:bg-grey-100 dark:hover:bg-grey-800 hover:text-body-text dark:hover:text-body-text-dark","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary","disabled:pointer-events-none disabled:opacity-50","data-[today=true]:bg-grey-100 data-[today=true]:dark:bg-grey-800"),outside:I("text-grey-400 dark:text-grey-600 opacity-50",c.outside),disabled:I("text-grey-400 dark:text-grey-600 opacity-50",c.disabled),hidden:I("invisible",c.hidden),...i},components:{Chevron:({orientation:t})=>e(ye,{name:"left"===t?"mdi:chevron-left":"mdi:chevron-right",className:"h-4 w-4"})},...d})})};Ve.displayName="Calendar";const ze=n(({className:t,testID:a,children:i,...l},r)=>e(R.Root,{ref:r,"data-testid":a||"Collapsible",className:I(N("collapsible-root",t)),...l,children:i}));ze.displayName="CollapsibleRoot";const je=n(({className:t,children:a,...i},l)=>e(R.Trigger,{ref:l,className:I(N(!t&&"collapsible-trigger","transition duration-500 ease-in-out",t)),...i,children:a}));je.displayName="CollapsibleTrigger";const Ke=n(({className:t,children:a,...i},l)=>e(R.Content,{ref:l,className:I(N("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}));Ke.displayName="CollapsibleContent";const qe={Root:ze,Trigger:je,Content:Ke},$e=l.forwardRef(function({id:t,name:a,required:i,disabled:l,className:r,onChangeCallback:n,onChange:s,...o},d){return e("div",{"data-testid":"FileUpload",className:r,children:e("input",{ref:d,className:N("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:l,required:i,name:a,id:t,onChange:e=>{n&&"function"==typeof n&&n(e),s&&"function"==typeof s&&s({target:{value:e.target.value,name:a}})},...o})})});var Xe,Qe,Ze;$e.displayName="FileUpload",function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5"}(Xe||(Xe={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(Qe||(Qe={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize",e.NORMAL_CASE="normal-case"}(Ze||(Ze={}));const Je=({children:t,tag:a=Xe.H2,transform:i,align:l,id:r,testID:n,flush:s,className:o,singleLine:d,bold:c=!0})=>{const m=(()=>{switch(a){case"h1":return"text-3xl md:text-4xl lg:text-5xl";case"h2":return"text-3xl md:text-4xl lg:text-4xl";case"h3":return"text-xl md:text-2xl lg:text-2xl";case"h4":return"text-lg md:text-lg lg:text-xl";case"h5":return"text-base md:text-base lg:text-lg";default:return"text-2xl md:text-2xl lg:text-4xl"}})(),u=a,p=N(`m-0 p-0 font-heading ${m}`,{"font-bold":c},{[`text-${l}`]:l},{"mb-2":!s},{"m-0":s},{"whitespace-nowrap text-ellipsis overflow-hidden":d},i,o);return e(u,{"data-testid":n||r||"Heading",className:I(p),children:t})};Je.displayName="Heading";const et=({size:t="small"})=>e("hr",{className:N("border-0 border-b border-body-text-dark dark:border-body-text-dark",{"mt-4 mb-4":"small"===t,"mt-8 mb-8":"medium"===t,"mt-16 mb-16 ":"large"===t})});et.displayName="Hr";const tt=({src:a,alt:i,title:l,caption:r,figure:n=!1,onLoad:s,id:d,className:c,sizes:m="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:u,...p})=>{try{const e=require("next/image").default;if(!e)throw new Error("Next.js Image not found");const t=!p.width;return o(e,{src:a,alt:i,title:l,fill:t,onLoad:s,className:c,...t?{sizes:m}:{},...p})}catch{const o=N("m-0"),m=I(N("w-full h-full",c));return n||r?t("figure",{"data-testid":u||d||"Image",className:o,children:[e("img",{onLoad:s,src:a,alt:i,title:l,className:m}),r&&e("figcaption",{children:r})]}):e("img",{"data-testid":u||d||"Image",onLoad:s,src:a,alt:i,title:l,className:m})}};tt.displayName="Image";const at=({children:t,id:a,transform:i,className:l})=>e("label",{"data-testid":"Label",className:I(N("label mb-2 text-body-text dark:text-body-text-dark",i,l)),htmlFor:a,children:t});var it,lt;at.displayName="Label",function(e){e.UNSTYLED="unstyled",e.INLINE="inline",e.SMALL="small",e.LARGE="large"}(it||(it={})),function(e){e.OL="ol",e.UL="ul",e.DL="dl",e.DIV="div",e.DT="dt",e.DD="dd",e.LI="li"}(lt||(lt={}));const rt=({variants:t,children:a,as:i=lt.UL,id:l,testID:r,className:n})=>{const s=t?t.map(e=>`list--${e}`):null;return e(i,{"data-testid":r||l||"List",className:N(s,n),children:a})};rt.displayName="List";const nt=({testID:t,logo:a,className:i,aspectRatioClass:l="aspect-[1/1]"})=>e("div",{"data-testid":t||"Logo",className:N("relative w-full",l,i),children:e(tt,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});nt.displayName="Logo";const st=({onClick:a,title:i,icon:l,children:r,as:n="li",id:s,testID:o,className:d})=>t(n,{"data-testid":o||s||"ListItem",className:N({"list-item":"div"!==n},d),children:[a&&t(Pe,{variant:Le.LINK,onClick:a,children:[t("div",{className:"",children:[l&&e("div",{children:e(ye,{name:l,size:24})}),i&&e("div",{children:e(Je,{flush:!0,tag:Xe.H4,singleLine:!0,children:i})}),r&&e("div",{children:r})]}),e("div",{children:e(ye,{name:"mdi:chevron-right",size:24})})]}),!a&&e("div",{className:"",children:r&&e("div",{children:r})})]});st.displayName="ListItem";const ot=({id:a,testID:i,title:l,text:r,icon:n,type:s,onCloseCallback:o,onClickCallback:d,actionText:c})=>{const m=N("p-4 rounded relative",{"bg-info text-white":"info"===s,"bg-success text-white":"success"===s,"bg-warning text-black":"warning"===s,"bg-error text-white":"error"===s});return e("div",{"data-testid":i||a||"Notice",className:m,children:t("div",{className:"flex gap-2",children:[n&&e("div",{className:"mr-2",children:e(ye,{name:n})}),t("div",{children:[l&&e(Je,{tag:Xe.H3,children:l}),e(We,{className:"mb-0",children:r})]}),d&&c&&e("div",{className:"ml-auto flex items-end",children:e(Pe,{variant:Le.PRIMARY,onClick:d,"aria-label":"Action",size:we.SMALL,children:c})}),o&&e("div",{className:"absolute top-2 right-4",children:e(Pe,{variant:Le.LINK,icon:"mdi:close",onClick:o,"aria-label":"Close"})})]})})};ot.displayName="Notice";const dt=l.forwardRef(function({name:a,required:i,className:l,options:r,...n},s){return e("div",{"data-testid":"Radio",className:N("flex items-center",l),children:e("div",{className:N("flex flex-col gap-2",l),children:r?.map(l=>{const r=l?.value?.toString()||void 0;return t("div",{className:"flex items-center relative",children:[t("div",{className:"relative flex items-center",children:[e("input",{ref:s,name:a,type:"radio",required:i,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4",...n,id:r,value:r}),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(ye,{name:"mdi:circle",size:12})})]}),e("label",{className:"label pl-2 leading-none",htmlFor:r,children:l.label})]},r)})})})});dt.displayName="Radio";const ct=n(function({id:a,name:i,required:l,disabled:r,className:n,...s},o){return t("label",{"data-testid":"Switch",className:N("inline-flex items-center cursor-pointer",n),children:[e("input",{ref:o,id:a,name:i,type:"checkbox",value:"",className:"sr-only peer",disabled:r,required:l,...s}),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 mt;ct.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"}(mt||(mt={}));const ut=n(function({type:a=mt.TEXT,required:i=!1,className:l,onChange:r,placeholder:n,icon:s,disabled:o=!1,name:c,autoComplete:m,...u},p){d(()=>{"undefined"!=typeof window&&require("date-input-polyfill")},[]);const h="date"===a?"dd/mm/yyyy".toUpperCase():n;return a===mt.TEXTAREA?e("div",{"data-testid":"TextInput",className:"relative",children:e("textarea",{ref:p,id:c,autoComplete:c,required:i,"aria-required":i,disabled:o,placeholder:h,onChange:r,rows:4,className:N("form-item text-area resize-none",l),...u})}):t("div",{"data-testid":"TextInput",className:"relative",children:[s&&e("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e(ye,{name:s})}),e("input",{ref:p,id:c,type:a,autoComplete:m,required:i,"aria-required":i,disabled:o,placeholder:h,onChange:r,className:N("form-item text-input",{"pl-12":s},l),...u})]})});ut.displayName="TextInput";const pt={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"}},ht=({testID:i,name:l="avatar",isEditable:r=!0,initValue:n,fileUpdateCallback:s=async()=>{}})=>{const[o,m]=c(n);d(()=>{n&&m(n)},[n]);return t("div",{"data-testid":i||'"Avatar"',className:"relative",children:[t("div",{className:"relative w-[200px] aspect-square rounded-full border border-solid overflow-hidden flex items-center justify-center m-4",children:[o&&t(a,{children:[e(tt,{src:o,alt:l,width:200,height:200}),r&&e("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e(Pe,{size:we.SMALL,rounded:!0,onClick:()=>{m(void 0)},children:pt.UI.REMOVE_BTN_LABEL})})]}),!o&&t(a,{children:[r&&e("div",{className:"absolute w-full h-full flex items-center justify-center",children:e(at,{id:l,className:"button cursor-pointer mb-0",children:e(We,{className:"mb-0",children:pt.UI.UPLOAD})})}),!r&&e(ye,{name:"mdi:account-circle",size:200,className:"opacity-30"})]})]}),e("input",{type:"file",id:l,name:l,className:"hidden",onChange:e=>{const t=e.target.files?.[0];if(t){const e=URL.createObjectURL(t);m(e),(async e=>{s&&"function"==typeof s&&s(e)})(t)}}})]})};ht.displayName="Avatar";const Nt=({id:a,testID:i,title:l,text:r,icon:n,href:s,className:o})=>{const d=N("rounded-lg p-6 shadow-sm","bg-tertiary text-card-text border-gray-200","dark:bg-darkCardBackground dark:text-darkCardText dark:border-gray-700",o),c=t("div",{className:"flex gap-4 items-start",children:[n&&e("div",{className:"flex-shrink-0 mt-1",children:e(ye,{name:n,className:"w-6 h-6"})}),t("div",{className:"flex-1",children:[l&&e(Je,{tag:Xe.H4,className:"mb-2",children:l}),e(We,{className:"mb-0",children:r})]}),s&&e("div",{className:"flex-shrink-0",children:e(ye,{name:"mdi:chevron-right",className:"w-6 h-6"})})]});return s?e(Me,{href:s,className:"block no-underline hover:no-underline",testID:i||a||"Banner",children:e("div",{className:N(d,"hover:shadow-md transition-shadow duration-200 cursor-pointer"),children:c})}):e("div",{"data-testid":i||a||"Banner",className:d,children:c})};Nt.displayName="Banner";const ft=({testID:t,buttonData:a})=>e("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:a?.map((t,i)=>{const l=i>0&&i<a.length-1,r=0===i,n=i===a.length-1,s=N({"rounded-none":l},{"rounded-r":r,"rounded-l":n});return e("div",{children:e(Pe,{...t,className:s,children:t.children})},t.id)})});ft.displayName="ButtonGroup";const Et="relative rounded-lg overflow-hidden shadow bg-card-bg text-card-text dark:bg-darkCardBackground dark:text-darkCardText group",gt="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-card-bg text-card-text dark:bg-darkCardBackground dark:text-darkCardText hover:bg-card-bgHover group",At="transition duration-500 ease-in-out ",St={replace(t){if("a"===t.name){const a=y(t.attribs);return e(Me,{...a,children:x(t.children,St)})}if(t.attribs&&"p"===t.name){const a=y(t.attribs);return e(We,{...a,children:x(t.children,St)})}return t}},vt=({testID:t,data:i,align:l,className:r})=>i?e("span",{"data-testid":t||'"HtmlContent"',className:N("relative",{"text-right":"right"===l},{"text-center":"center"===l},{"text-left":"left"===l},r),children:O(i,St)}):e(a,{});vt.displayName="HtmlContent";const Ct={allowMultipleFractions:!0},It=[{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"}],bt=(e,t)=>`((?<${e}>-?\\d*[\\.,]?\\d+)${t})?`,Tt=new RegExp(["(?<negative>-)?P",bt("years","Y"),bt("months","M"),bt("weeks","W"),bt("days","D"),"(T",bt("hours","H"),bt("minutes","M"),bt("seconds","S"),")?"].join(""));function Rt(e){if(""!==e&&null!=e)return parseFloat(e.replace(",","."))}const Ot=new Error("Invalid duration"),yt=new Error("Multiple fractions specified");function xt(e,t=Ct){const a=Tt.exec(e);if(!a||!a.groups)throw Ot;let i=!0,l=0;const r={};for(const{unit:e}of It)if(a.groups[e]&&(i=!1,r[e]=Rt(a.groups[e]),!t.allowMultipleFractions&&!Number.isInteger(r[e])&&(l++,l>1)))throw yt;if(i)throw Ot;const n=r;return a.groups.negative&&(n.negative=!0),n}function _t(...e){return I(L(e))}function Lt(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}function wt(e){const t=_(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 Dt(e){if(e&&0!==e.length)return e?.map(e=>e)?.[Math.floor(Math.random()*e?.map(e=>e).length)]}const Pt={isDarkTheme:!1,toggleTheme:()=>{},theme:void 0},kt=l.createContext(Pt),Mt=({children:t,theme:a})=>e(kt.Provider,{value:a,children:t}),Ut=()=>{const e=m(kt);if(void 0===e)throw new Error("useThemeContext must be used within a ThemeProvider");return e},Ft=u({brand:void 0,header:void 0,footer:void 0,locale:void 0,app:void 0,images:void 0}),Bt=({children:t,value:a})=>e(Ft.Provider,{value:a,children:t}),Gt=()=>{const e=m(Ft);if(void 0===e)throw new Error("useAppContext must be used within a AppProvider");return e},Ht=u({config:{region:"eu-west-1",oauth:{},cookieStorage:{}}}),Wt=({children:t,value:a})=>(d(()=>{a.config&&w.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(Ht.Provider,{value:a,children:t})),Yt=u(void 0),Vt=({children:t,data:a})=>e(Yt.Provider,{value:a,children:t}),zt=()=>{const e=m(Yt);if(void 0===e)throw new Error("useCartContext must be used within a CartProvider");return e},jt=({id:a,title:i,description:l,image:r,className:n,metaData:s,actions:o,padded:d,scaleOnHover:c,onClick:u,htmlDetails:p,titleOverlay:h})=>{const f=m(Ft);return t("div",{id:a,"data-testid":"CardBasic",className:I(N(At,u?gt:Et,{"p-4":d},{"hover:scale-100":!c},n)),onClick:u,children:[r&&e("div",{className:I(N("relative w-full overflow-hidden aspect-[16/9]",{rounded:d},r.aspectRatio)),children:e(tt,{fill:!0,src:r?.src??f?.images?.placeholder,sizes:"100vh",alt:r?.alt,className:N("absolute inset-0 object-cover group-hover:scale-110 dura",At)})}),h&&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(Je,{tag:Xe.H4,singleLine:!0,flush:!0,className:"text-white",children:i})}),!h&&(i||p||l)&&e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:N({"p-3":!d},{"pt-3":d}),children:[e("div",{children:i&&e(Je,{tag:Xe.H4,singleLine:!0,flush:!0,children:i})}),!p&&l&&e("div",{children:e(We,{className:"mb-0",children:Lt(l)})}),p&&l&&e("div",{children:e(vt,{className:"mb-0",data:Lt(l)})}),t("div",{className:"flex items-center justify-between gap-2",children:[s&&e("div",{className:"flex shrink-0 mt-2",children:s.map((a,i)=>1===s.length?e(We,{className:"text-xs",as:He.SMALL,children:a},a):0===i?t(We,{className:"text-xs",as:He.SMALL,children:[a," ·"]},a):i===s.length-1?t(We,{className:"text-xs",as:He.SMALL,children:[" ",a]},a):t(We,{className:"text-xs",as:He.SMALL,children:[" ",a," ·"]},a))}),o&&t("div",{className:"flex items-center gap-1 flex-wrap flex-1 justify-end",children:[o.like&&e(Pe,{variant:Le.PRIMARY,icon:o.like.isActive?"mdi:like":"mdi:like-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.like?.onClick&&"function"==typeof o.like.onClick&&o.like.onClick({id:a})}}),o.share&&e(Pe,{variant:Le.PRIMARY,icon:o.share.isActive?"mdi:share":"mdi:share-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.share?.onClick&&"function"==typeof o.share.onClick&&o.share.onClick({id:a})}}),o.save&&e(Pe,{variant:Le.PRIMARY,icon:o.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.save?.onClick&&"function"==typeof o.save.onClick&&o.save.onClick({id:a})}}),o.comment&&e(Pe,{variant:Le.PRIMARY,icon:o.comment.isActive?"mdi:comment":"mdi:comment-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.comment?.onClick&&"function"==typeof o.comment.onClick&&o.comment.onClick({id:a})}}),o.bookmark&&e(Pe,{variant:Le.PRIMARY,icon:o.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.bookmark?.onClick&&"function"==typeof o.bookmark.onClick&&o.bookmark.onClick({id:a})}}),o.report&&e(Pe,{variant:Le.PRIMARY,icon:o.report.isActive?"mdi:flag":"mdi:flag-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.report?.onClick&&"function"==typeof o.report.onClick&&o.report.onClick({id:a})}}),o.follow&&e(Pe,{variant:Le.PRIMARY,icon:o.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.follow?.onClick&&"function"==typeof o.follow.onClick&&o.follow.onClick({id:a})}}),o.download&&e(Pe,{variant:Le.PRIMARY,icon:o.download.isActive?"mdi:download":"mdi:download-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.download?.onClick&&"function"==typeof o.download.onClick&&o.download.onClick({id:a})}}),o.edit&&e(Pe,{variant:Le.PRIMARY,icon:o.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.edit?.onClick&&"function"==typeof o.edit.onClick&&o.edit.onClick({id:a})}}),o.delete&&e(Pe,{variant:Le.PRIMARY,icon:o.delete.isActive?"mdi:delete":"mdi:delete-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.delete?.onClick&&"function"==typeof o.delete.onClick&&o.delete.onClick({id:a})}}),o.custom&&o.custom.map((t,a)=>e("div",{children:t},a))]})]})]})})]})};function Kt(){return m(Ft).locale,pt}function qt(){return m(kt)}jt.displayName="CardBasic";const $t=({id:a,title:i,description:l,image:r,className:n,metaData:s,actions:o,onClick:d,playCallback:c,htmlDetails:u,accessRestriced:p})=>{const h=Kt(),f=m(Ft);return t("div",{id:a,"data-testid":"CardBasic",className:N(At,d?gt:Et,n),onClick:d,children:[r&&t("div",{className:N("relative w-full overflow-hidden aspect-[16/9]",r.aspectRatio),children:[e(tt,{fill:!0,src:r?.src??f?.images?.placeholder,sizes:"100vh",alt:r?.alt,className:N("absolute inset-0 object-cover group-hover:scale-110",At)}),p&&e("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-body-bg bg-opacity-50 flex items-center justify-center",children:e(We,{bold:!0,transform:Fe.UPPERCASE,children:h.UI.PURCHASE_TO_ACCESS})}),c&&e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(Pe,{variant:Le.PRIMARY,icon:"mdi:play",size:we.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof c&&c(e)}})})]}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:"p-3",children:[e("div",{children:i&&e(Je,{tag:Xe.H5,singleLine:!0,flush:!0,children:i})}),!u&&l&&e("div",{children:e(We,{className:"mb-0",children:Lt(l)})}),u&&l&&e("div",{children:e(vt,{className:"mb-0",data:Lt(l)})}),t("div",{className:"flex items-center justify-between gap-2",children:[s&&e("div",{className:"flex shrink-0",children:s.map((a,i)=>1===s.length?e(We,{className:"text-xs",as:He.SMALL,children:a},a):0===i?t(We,{className:"text-xs",as:He.SMALL,children:[a," ·"]},a):i===s.length-1?t(We,{className:"text-xs",as:He.SMALL,children:[" ",a]},a):t(We,{className:"text-xs",as:He.SMALL,children:[" ",a," ·"]},a))}),o&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[o.completed&&e(Pe,{variant:Le.PRIMARY,icon:o.completed.isActive?"mdi:check":"mdi:check-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.completed?.onClick&&"function"==typeof o.completed.onClick&&o.completed.onClick({id:a})}}),o.like&&e(Pe,{variant:Le.PRIMARY,icon:o.like.isActive?"mdi:like":"mdi:like-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.like?.onClick&&"function"==typeof o.like.onClick&&o.like.onClick({id:a})}}),o.share&&e(Pe,{variant:Le.PRIMARY,icon:o.share.isActive?"mdi:share":"mdi:share-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.share?.onClick&&"function"==typeof o.share.onClick&&o.share.onClick({id:a})}}),o.save&&e(Pe,{variant:Le.PRIMARY,icon:o.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.save?.onClick&&"function"==typeof o.save.onClick&&o.save.onClick({id:a})}}),o.comment&&e(Pe,{variant:Le.PRIMARY,icon:o.comment.isActive?"mdi:comment":"mdi:comment-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.comment?.onClick&&"function"==typeof o.comment.onClick&&o.comment.onClick({id:a})}}),o.bookmark&&e(Pe,{variant:Le.PRIMARY,icon:o.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.bookmark?.onClick&&"function"==typeof o.bookmark.onClick&&o.bookmark.onClick({id:a})}}),o.report&&e(Pe,{variant:Le.PRIMARY,icon:o.report.isActive?"mdi:flag":"mdi:flag-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.report?.onClick&&"function"==typeof o.report.onClick&&o.report.onClick({id:a})}}),o.follow&&e(Pe,{variant:Le.PRIMARY,icon:o.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.follow?.onClick&&"function"==typeof o.follow.onClick&&o.follow.onClick({id:a})}}),o.download&&e(Pe,{variant:Le.PRIMARY,icon:o.download.isActive?"mdi:download":"mdi:download-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.download?.onClick&&"function"==typeof o.download.onClick&&o.download.onClick({id:a})}}),o.edit&&e(Pe,{variant:Le.PRIMARY,icon:o.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.edit?.onClick&&"function"==typeof o.edit.onClick&&o.edit.onClick({id:a})}}),o.delete&&e(Pe,{variant:Le.PRIMARY,icon:o.delete.isActive?"mdi:delete":"mdi:delete-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.delete?.onClick&&"function"==typeof o.delete.onClick&&o.delete.onClick({id:a})}})]})]})]})})]})};$t.displayName="CardMedia";const Xt=({video:a,isMuted:i=!0,id:l,title:r,description:n,image:s,className:o,metaData:d,actions:c,onClick:m,htmlDetails:u})=>t("div",{id:l,"data-testid":"CardVideo",className:N(At,m?gt:Et,o),onClick:m,children:[s&&a&&e("div",{className:N("",s.aspectRatio),children:e(k,{videoId:`video--${l}`,playbackStartDelay:1e3,videoSrc:e("source",{src:a,type:"video/mp4"}),videoClassName:N("hls-hover-video w-full aspect-[16/9]",s.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:i,className:N("w-full !block",s.aspectRatio),pausedOverlay:e("div",{className:N("relative w-full aspect-[16/9]",s.aspectRatio),children:e(tt,{src:s?.src,alt:s?.alt})}),loadingOverlay:e("div",{className:N("w-full flex items-center justify-center aspect-[16/9]",s.aspectRatio),children:e("div",{className:"",children:e(De,{color:"#FFF"})})})},`${l}--card`)}),(r||u||n||d||c)&&e("div",{className:"w-full flex flex-col",children:t("div",{className:"p-3",children:[r&&e("div",{children:e(Je,{tag:Xe.H5,singleLine:!0,flush:!0,children:r})}),!u&&n&&e("div",{children:e(We,{className:"mb-0",children:Lt(n)})}),u&&n&&e("div",{children:e(vt,{className:"mb-0",data:Lt(n)})}),(d||c)&&t("div",{className:"flex items-center justify-between gap-2",children:[d&&e("div",{className:"flex shrink-0",children:d.map((a,i)=>1===d.length?e(We,{className:"text-xs",as:He.SMALL,children:a},a):0===i?t(We,{className:"text-xs",as:He.SMALL,children:[a," ·"]},a):i===d.length-1?t(We,{className:"text-xs",as:He.SMALL,children:[" ",a]},a):t(We,{className:"text-xs",as:He.SMALL,children:[" ",a," ·"]},a))}),c&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[c.like&&e(Pe,{variant:Le.PRIMARY,icon:c.like.isActive?"mdi:like":"mdi:like-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.like?.onClick&&"function"==typeof c.like.onClick&&c.like.onClick({id:l})}}),c.share&&e(Pe,{variant:Le.PRIMARY,icon:c.share.isActive?"mdi:share":"mdi:share-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.share?.onClick&&"function"==typeof c.share.onClick&&c.share.onClick({id:l})}}),c.save&&e(Pe,{variant:Le.PRIMARY,icon:c.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.save?.onClick&&"function"==typeof c.save.onClick&&c.save.onClick({id:l})}}),c.comment&&e(Pe,{variant:Le.PRIMARY,icon:c.comment.isActive?"mdi:comment":"mdi:comment-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.comment?.onClick&&"function"==typeof c.comment.onClick&&c.comment.onClick({id:l})}}),c.bookmark&&e(Pe,{variant:Le.PRIMARY,icon:c.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.bookmark?.onClick&&"function"==typeof c.bookmark.onClick&&c.bookmark.onClick({id:l})}}),c.report&&e(Pe,{variant:Le.PRIMARY,icon:c.report.isActive?"mdi:flag":"mdi:flag-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.report?.onClick&&"function"==typeof c.report.onClick&&c.report.onClick({id:l})}}),c.follow&&e(Pe,{variant:Le.PRIMARY,icon:c.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.follow?.onClick&&"function"==typeof c.follow.onClick&&c.follow.onClick({id:l})}}),c.download&&e(Pe,{variant:Le.PRIMARY,icon:c.download.isActive?"mdi:download":"mdi:download-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.download?.onClick&&"function"==typeof c.download.onClick&&c.download.onClick({id:l})}}),c.edit&&e(Pe,{variant:Le.PRIMARY,icon:c.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.edit?.onClick&&"function"==typeof c.edit.onClick&&c.edit.onClick({id:l})}}),c.delete&&e(Pe,{variant:Le.PRIMARY,icon:c.delete.isActive?"mdi:delete":"mdi:delete-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.delete?.onClick&&"function"==typeof c.delete.onClick&&c.delete.onClick({id:l})}})]})]})]})})]});Xt.displayName="CardVideo";const Qt=({id:a,title:i,subtitle:l,description:r,icon:n,className:s,onClick:o,moreTitle:d,align:c})=>t("div",{id:a,"data-testid":"CardIcon",className:I(N(At,o?gt:Et,"p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===c},{"items-center":"center"===c},{"items-end":"right"===c},s)),children:[n&&e("div",{className:N("relative"),children:e(ye,{name:n,size:48})}),t("div",{className:N({"text-left":"left"===c},{"text-center":"center"===c},{"text-right":"right"===c}),children:[t("div",{children:[i&&e(Je,{tag:Xe.H5,singleLine:!0,children:i}),l&&e(We,{bold:!0,children:l})]}),e("div",{children:r&&e(We,{align:c,children:r})})]}),o&&e(Pe,{variant:Le.LINK,onClick:o,className:"absolute left-0 top-0 w-full h-full cursor-pointer border border-solid",children:d})]});Qt.displayName="CardIcon";const Zt=({testID:a,id:i,title:l,description:r,image:n,onClick:s,className:o,padded:d,icon:c,raised:m=!0,htmlDetails:u})=>t("div",{id:i,"data-testid":a||"CardHorz",className:N("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":d},{"shadow hover:shadow-lg":m},At,s?gt:Et,o),onClick:s,children:[n&&e("div",{className:"w-1/3 aspect-[1/1]",children:e("div",{className:I(N("relative w-full overflow-hidden h-full",n.aspectRatio)),children:e(tt,{fill:!0,src:n?.src,alt:n?.alt,className:"absolute inset-0 object-cover"})})}),c&&!n&&e("div",{className:"py-2 pl-2",children:e(ye,{name:c,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:[l&&e("div",{className:"",children:e(Je,{tag:Xe.H4,children:l})}),!u&&r&&e("div",{children:e(We,{className:"mb-0",children:Lt(r)})}),u&&r&&e("div",{children:e(vt,{className:"mb-0",data:Lt(r)})})]})})]});Zt.displayName="CardHorz";const Jt=({testID:i,className:l,data:r,padded:n=!0,shadow:s=!0})=>{const o=A(0);return d(()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||g(o,200,{duration:.5})},[o]),r?e("div",{"data-testid":i||"CardData",className:I(N(At,Et,{"p-4":n},{shadow:s},l)),children:t("div",{className:"min-w-[110px] flex flex-col flex-1 items-center justify-center",children:[r?.animateNumber&&t("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e(Oe,{from:r.numberData.from,to:r.numberData.to,numDecimals:r.numberData.numDecimals}),e("span",{children:r?.item})]}),!r?.animateNumber&&e("div",{className:"text-lg",children:e(Je,{tag:Xe.H2,flush:!0,children:r?.item})}),e("div",{className:"flex flex-1 items-center justify-center",children:e(We,{className:"mb-0",children:r?.label})})]})}):e(a,{})};Jt.displayName="CardData";const ea=({variant:t,className:a,data:i,...l})=>{switch(t){case"basic":default:return e(jt,{className:a,...i,...l});case"media":return e($t,{className:a,...i,...l});case"video":return e(Xt,{className:a,...i,...l});case"icon":return e(Qt,{className:a,...i,...l});case"horz":return e(Zt,{className:a,...i,...l});case"data":return e(Jt,{className:a,...i,...l})}};ea.displayName="Card";const ta=({text:i,flush:l,tag:r=Xe.H1,colorOverride:n})=>{const s=i?.split(" ");return e("div",{"data-testid":"DisplayHeading",className:N("relative display-heading-wrapper",n),children:e(Je,{tag:r,flush:l,className:"font-display font-extrabold",children:s.map((i,l)=>{const r=s.length>1&&l===s.length-1,o=`${i}-${l}`;return t("span",{children:[e("span",{className:N({"display-heading relative":!r},{"inline-block relative":r}),children:t(a,{children:[r&&t(a,{children:[e("div",{className:"display-heading--emphasis z-0"}),e("span",{className:N("display-heading--lastword relative",n),children:i})]}),!r&&e("span",{className:"relative z-10",children:i})]})}),!r&&" "]},o)})})})};ta.displayName="DisplayHeading";const aa=({children:a,className:i,submit:l,onSubmit:n=()=>{},onChange:s,hideSubmit:o,ariaSubmitLabel:c,submitID:m,submitVariant:u=Le.PRIMARY,initialValues:p={},isBoxed:h=!1,submitType:f=_e.SUBMIT,disabledSubmitWithReturn:E=!0,isDisabled:g=!1})=>{const A=M({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"}),S=r(p);d(()=>{JSON.stringify(S.current)!==JSON.stringify(p)&&(A.reset(p),S.current=p)},[p]),d(()=>{if(s&&"function"==typeof s){const e=A.watch((e,t)=>{s(e,t)});return()=>e.unsubscribe()}},[]);const v=N({"sr-only":o}),{formState:{isSubmitting:C,isValid:I}}=A;return e(U,{...A,children:e("div",{"data-testid":"Form",className:N("w-full max-w-s @containers @form"),children:t("form",{onSubmit:A.handleSubmit(n),onKeyDown:e=>{E&&"Enter"===e.key&&e.preventDefault()},className:N("w-2xs relative",{"form px-8 pt-6 pb-8 ":h},{"opacity-50":C},i),children:[a,l&&e("div",{className:"flex items-center justify-end",children:e(Pe,{id:m||l,className:v,ariaLabel:c||l||"Submit",type:f,outline:!0,isLoading:C,disabled:C||!I||g,variant:u,children:l})})]})})})};var ia;aa.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"}(ia||(ia={}));const la=l.forwardRef(function({id:a,name:i,options:l,required:r,className:n,disabled:s,...o},d){if(!l)throw new Error("FormSelect requires options prop");return e("div",{id:a,className:N("pb-2 min-w-20",n),children:t("div",{className:"relative",children:[e("select",{ref:d,name:i,disabled:s,required:r,className:"form-item text-input pr-10",...o,children:l.map((t,a)=>e("option",{value:t?.value?.toString(),disabled:t.disabled,className:"bg-body-bg dark:bg-body-bg-dark",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(ye,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})});la.displayName="FormSelect";const ra=({name:a,type:i,label:l,required:r,className:n,icon:s,options:o,disabled:d,description:m,showPasswordLabel:u,hidePasswordLabel:p,validations:h={},fileUploadCallback:f=()=>{},autoComplete:E})=>{const[g,A]=c(!1),{control:S,formState:v}=F(),{errors:C}=v,I=l&&i!==ia.CHECKBOX,b=r||Boolean(h.required)?`${l} *`:l;return e("div",{className:"relative",children:t("div",{"data-testid":"FormField",className:"mb-4",children:[I&&e("div",{className:"flex items-baseline justify-between",children:e(at,{id:a,children:b})}),e("div",{className:"mb-1",children:e(B,{defaultValue:"",name:a,control:S,rules:h,render:({field:c})=>((i,c)=>{switch(i){case ia.HIDDEN:return e("input",{type:mt.HIDDEN,disabled:d,...c});case ia.TEXT:return e(ut,{type:mt.TEXT,required:r||Boolean(h.required),icon:s,className:n,disabled:d,autoComplete:E,...c});case ia.PASSWORD:{const a=g?mt.TEXT:mt.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:()=>A(e=>!e),role:"button",tabIndex:0,children:e("button",g?{type:"button","aria-label":p,className:N(i,"form-icon"),children:e(ye,{name:"mdi:eye-off",size:24})}:{type:"button","aria-label":u,className:N(i,"form-icon"),children:e(ye,{name:"mdi:eye",size:24})})}),e(ut,{type:a,required:r||Boolean(h.required),icon:s,className:n,disabled:d,autoComplete:E,...c})]})}case ia.TEXTAREA:return e(ut,{type:mt.TEXTAREA,required:r||Boolean(h.required),icon:s,className:n,disabled:d,...c});case ia.EMAIL:return e(ut,{type:mt.EMAIL,required:r||Boolean(h.required),icon:s,className:n,disabled:d,autoComplete:E,...c});case ia.DATE:return e(ut,{type:mt.DATE,required:r||Boolean(h.required),icon:s,className:n,disabled:d,...c});case ia.DATETIME:return e(ut,{type:mt.DATETIME,required:r||Boolean(h.required),icon:s,className:n,disabled:d,...c});case ia.NUMBER:return e(ut,{type:mt.NUMBER,required:r||Boolean(h.required),icon:s,className:n,disabled:d,...c});case ia.CHECKBOX:return e(ke,{required:r||Boolean(h.required),id:a,className:n,label:l,disabled:d,...c});case ia.RADIO:return e(dt,{required:r||Boolean(h.required),id:a,className:n,options:o,disabled:d,...c});case ia.SWITCH:return e(ct,{id:a,required:r||Boolean(h.required),className:n,disabled:d,...c});case ia.SELECT:return e(la,{required:r||Boolean(h.required),id:a,className:n,disabled:d,label:l,options:o,...c});case ia.FILE:return e($e,{required:r||Boolean(h.required),id:a,className:n,disabled:d,onChangeCallback:e=>{f(e)},...c});default:return e(ut,{type:mt.TEXT,required:r||Boolean(h.required),disabled:d,icon:s,className:n,...c})}})(i,c)})}),m&&e("div",{className:"formfield-description",children:e(We,{size:Ge.SMALL,className:"mb-0",children:m})}),C[a]&&e("div",{className:"formfield-error text-error italic",children:e(We,{size:Ge.SMALL,className:"mb-0",children:C?.[a]?.message?.toString()})})]})})};ra.displayName="FormField";const na=({testID:a,url:i,title:l="Share",enabled:r={facebook:!0,twitter:!0}})=>t("div",{"data-testid":a||"Share",className:"flex gap-2 items-center ",children:[e("div",{children:t(We,{as:He.P,className:"mb-0",children:[pt.UI.SHARE,":"]})}),r?.facebook&&e(G,{url:i,title:l,className:"",children:e(ye,{name:"mdi:facebook"})}),r?.twitter&&e(H,{url:i,title:l,className:"",children:e(ye,{name:"mdi:twitter"})}),r?.whatsapp&&e(W,{url:i,title:l,className:"",children:e(ye,{name:"mdi:whatsapp"})}),r?.email&&e(Y,{url:i,title:l,className:"",children:e(ye,{name:"mdi:email"})}),r?.linkedin&&e(V,{url:i,title:l,className:"",children:e(ye,{name:"mdi:linkedin"})})]});na.displayName="Share";const sa=({data:i})=>{const[l,r]=c(0);return i?e("div",{"data-testid":"Tabs",children:t(z,{onSelect:e=>r(e),children:[e(j,{className:"mb-8 flex p-0",children:i.map((t,a)=>e(K,{className:N("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":l!==a,"border-primary border-solid border-0 border-b-2":l===a}),children:e(We,{className:"m-0 text-center",children:t.title})},a))}),i.map((t,a)=>e(q,{className:"",children:t.content},a))]})}):e(a,{})};sa.displayName="Tabs";const oa=({testID:a,facebook:i,twitter:l,instagram:r,linkedin:n,youtube:s})=>t("div",{"data-testid":a||'"VisitUs"',className:"flex gap-2",children:[i&&e(Pe,{variant:Le.PRIMARY,size:we.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(i.url)}),l&&e(Pe,{variant:Le.PRIMARY,size:we.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(l.url)}),r&&e(Pe,{variant:Le.PRIMARY,size:we.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(r.url)}),n&&e(Pe,{variant:Le.PRIMARY,size:we.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(n.url)}),s&&e(Pe,{variant:Le.PRIMARY,size:we.MEDIUM,icon:"mdi:youtube",onClick:()=>window.open(s.url)})]});oa.displayName="VisitUs";const da=({testID:a,title:i,links:l,inline:r=!0,separators:n=!1,className:s})=>t("div",{"data-testid":a||'"Menu"',className:I(N("flex flex-col gap-2",s)),children:[i&&e("div",{children:e(Je,{tag:Xe.H3,children:i})}),e("div",{className:N("flex gap-0 items-center md:items-start",{"flex-col md:flex-row ":r},{"flex-col ":!r}),children:l?.map((a,i)=>{const r=`${a.id}--${i}`;return t("div",{className:"flex gap-0",children:[e("div",{className:"relative py-2",children:t(Me,{href:a.url,className:"flex gap-1",children:[a.icon&&e(ye,{name:a.icon}),a.title&&e("div",{children:a.title})]})}),n&&i+1<l.length&&e("div",{className:"h-full hidden md:flex self-center px-2",children:e(ye,{name:"mdi:dot",className:"opacity-50"})})]},r)})})]});var ca;da.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(ca||(ca={}));const ma=({children:t,className:a,spacing:i,padded:l,isNarrow:r,isCentered:n,isFlush:s,direction:o=ca.COLUMN})=>{const d=I(N("container relative mx-auto my-0",{"px-2 md:px-4 lg:px-4":l},{"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":r},{"flex items-center justify-center flex-col flex-1":n},{"px-0 max-w-full mx-0":s},{"flex flex-col":o===ca.COLUMN},{"flex-row":o===ca.ROW})),c=N("w-full h-full",a);return e("div",{"data-testid":"Container",className:d,children:e("div",{className:c,children:t})})};ma.displayName="Container";const ua=({testID:a,children:i,withBg:l=!0,inversed:r=!1})=>t("div",{"data-testid":a||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[l&&e("div",{className:N("rounded-full blur-[200px] flex flex-none aspect-square absolute w-[700px] opacity-20 bg-gradient-to-r from-primary-700 to-primary-300 z-0",{"-bottom-24 right-0":!r,"-top-24 left-0":r})}),e(ma,{children:i})]});ua.displayName="Hero";const pa=({testID:a,bgAsset:i,focalAsset1:l,focalAsset2:r,focalAsset3:n})=>{const s={opacity:.001,rotate:0,scale:1,x:200,y:0},o={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:N("relative w-full h-full"),children:[i&&e(S.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(tt,{src:i.src,alt:i.alt,fill:!0})}),(l||r)&&t(S.div,{className:"absolute right-0 top-1/2 z-10 overflow-visible w-3/4 aspect-[0.78/1]",style:{transform:"translateY(-50%)"},children:[l&&e(S.div,{className:"absolute aspect-[9/18] right-4 top-8 w-[170px] md:right-4 md:top-8 md:w-[130px] lg:right-0 lg:top-8 lg:w-[190px] xl:right-16 xl:top-16 xl:w-[250px] ",initial:s,animate:o,children:e(tt,{src:l.src,alt:l.alt,fill:!0})}),r&&e(S.div,{className:"absolute aspect-[9/18] left-0 top-2 w-[200px] md:left-0 md:top-2 md:w-[150px] lg:left-4 lg:top-0 lg:w-[210px] xl:left-0 xl:top-0 xl:w-[300px]",initial:s,animate:{...o,transition:{...o.transition,delay:.3}},children:e(tt,{src:r.src,alt:r.alt,fill:!0})})]}),n&&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(S.div,{className:"relative w-full overflow-visible aspect-[1.2/1] bg-body-bg 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(tt,{src:n.src,fill:!0,alt:n.alt})})})]})};pa.displayName="AnimationSet1";const ha=process.env.AWS_COGNITO_USERPOOL_DOMAIN||process.env.NEXT_PUBLIC_AWS_COGNITO_USERPOOL_DOMAIN,Na=process.env.AWS_COGNITO_CLIENT_ID||process.env.NEXT_PUBLIC_AWS_COGNITO_CLIENT_ID,fa=process.env.AWS_COGNITO_REDIRECT_URI||process.env.NEXT_PUBLIC_AWS_COGNITO_REDIRECT_URI,Ea=ha&&Na&&fa?`https://${ha}/oauth2/authorize?client_id=${Na}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${fa}`:void 0,ga=ha&&Na&&fa?`https://${ha}/oauth2/authorize?client_id=${Na}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${fa}`:void 0,Aa={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},Sa={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."}},va=e=>{try{const t=e,a=X(t),i=Q(t),l=Z(t);return a&&i&&l?void 0:"Not a valid phone number"}catch{return"Not a valid phone number"}},Ca=({handleSubmit:i,initialValues:l,handleTokenCallback:r,showSocialButtons:n=!1,className:s})=>{const o=Kt();d(()=>D.listen("auth",({payload:{event:e,data:t}})=>{switch(e){case"signIn":r&&"function"==typeof r&&r(t.signInUserSession);break;case"signOut":J.success("You have been signed out")}}),[]);const c=async e=>{try{P.federatedSignIn({provider:e})}catch(e){console.log(e),J.error(e.message||o?.ERRORS?.GENERIC_ERROR)}};return t("div",{"data-testid":"LoginForm",className:N("form-wrapper",s),children:[t(aa,{onSubmit:i,submit:pt.FORMS.LOGIN_FORM.SUBMIT,initialValues:l,children:[e(ra,{name:"email",type:ia.EMAIL,label:pt.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:Aa,autoComplete:"email"}),e(ra,{name:"password",type:ia.PASSWORD,label:pt.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),n&&t(a,{children:[e(et,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[Ea&&e(Pe,{onClick:()=>c($.Google),variant:Le.PRIMARY,iconFirst:!0,icon:"mdi:google",children:pt.UI.LOGIN_WITH_GOOGLE}),ga&&e(Pe,{onClick:()=>c($.Apple),variant:Le.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:pt.UI.LOGIN_WITH_APPLE})]})})]})]})};Ca.displayName="LoginForm";const Ia=({handleSubmit:i,handleTokenCallback:l,showSocialButtons:r=!1,className:n})=>{const s=Kt();d(()=>D.listen("auth",({payload:{event:e,data:t}})=>{if("signUp"===e)l&&"function"==typeof l&&l(t.signInUserSession)}),[]);const o=async e=>{try{P.federatedSignIn({provider:e})}catch(e){console.log(e),J.error(e.message||s?.ERRORS?.GENERIC_ERROR)}};return t("div",{"data-testid":"RegisterForm",className:N("form-wrapper",n),children:[t(aa,{onSubmit:i,submit:pt.FORMS.REGISTER_FORM.SUBMIT,children:[e(ra,{name:"email",type:ia.EMAIL,label:pt.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:Aa,autoComplete:"email"}),e(ra,{name:"password",type:ia.PASSWORD,label:pt.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:pt.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:Sa,autoComplete:"new-password"})]}),r&&t(a,{children:[e(et,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(Pe,{onClick:()=>o($.Google),variant:Le.PRIMARY,iconFirst:!0,icon:"mdi:google",children:pt.UI.SIGNUP_WITH_GOOGLE}),e(Pe,{onClick:()=>o($.Apple),variant:Le.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:pt.UI.SIGNUP_WITH_APPLE})]})})]})]})};Ia.displayName="RegisterForm";const ba=({handleSubmit:t})=>e("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e(aa,{onSubmit:t,submit:pt.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,children:e(ra,{name:"email",type:ia.EMAIL,label:pt.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:Aa})})});ba.displayName="ForgotPasswordForm";const Ta=({loginSubmit:a,registerSubmit:i,passwordForgotSubmit:l,handleTokenCallback:r,showSocialLogin:n=!1})=>{const[s,o]=c(!1);return t("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-[550px] mb-8",children:[!s&&e(sa,{data:[{title:"Login",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(Ca,{handleSubmit:a,showSocialButtons:n,handleTokenCallback:r,className:"w-full"}),e("div",{className:"mt-4",children:e(Pe,{variant:Le.LINK,onClick:()=>o(!s),children:s?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e("div",{className:"flex flex-col gap-4 items-center",children:e(Ia,{handleSubmit:i,showSocialButtons:n,handleTokenCallback:r,className:"w-full"})})}]}),s&&e(sa,{data:[{title:"Forgot Password",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(ba,{handleSubmit:l}),e("div",{className:"mt-4",children:e(Pe,{variant:Le.LINK,onClick:()=>o(!s),children:s?"Back to Login":"Forgot Password?"})})]})}]})]})};Ta.displayName="Authenticator";const Ra=le("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-white/20 text-primary-foreground shadow hover:bg-primary/90 border-2 border-red",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:bg-primary",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-transparent hover:bg-transparent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Oa=i.forwardRef(({className:t,variant:a,size:i,asChild:l=!1,...r},n)=>e(l?ie:"button",{className:_t(Ra({variant:a,size:i,className:t})),ref:n,...r}));Oa.displayName="ShadcnButton";const ya=i.createContext(null);function xa(){const e=i.useContext(ya);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const _a=i.forwardRef(({orientation:t="horizontal",opts:a,setApi:l,plugins:r,className:n,children:s,...o},d)=>{const[c,m]=ee({...a,axis:"horizontal"===t?"x":"y"},r),[u,p]=i.useState(!1),[h,N]=i.useState(!1),f=i.useCallback(e=>{e&&(p(e.canScrollPrev()),N(e.canScrollNext()))},[]),E=i.useCallback(()=>{m?.scrollPrev()},[m]),g=i.useCallback(()=>{m?.scrollNext()},[m]),A=i.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),E()):"ArrowRight"===e.key&&(e.preventDefault(),g())},[E,g]);return i.useEffect(()=>{m&&l&&l(m)},[m,l]),i.useEffect(()=>{if(m)return f(m),m.on("reInit",f),m.on("select",f),()=>{m?.off("select",f)}},[m,f]),e(ya.Provider,{value:{carouselRef:c,api:m,opts:a,orientation:t||("y"===a?.axis?"vertical":"horizontal"),scrollPrev:E,scrollNext:g,canScrollPrev:u,canScrollNext:h},children:e("div",{ref:d,onKeyDownCapture:A,className:_t("relative",n),role:"region","aria-roledescription":"carousel",...o,children:s})})});_a.displayName="ShadcnCarousel";const La=i.forwardRef(({className:t,...a},i)=>{const{carouselRef:l,orientation:r}=xa();return e("div",{ref:l,className:"overflow-hidden",children:e("div",{ref:i,className:_t("flex","horizontal"===r?"-ml-4":"-mt-4 flex-col",t),...a})})});La.displayName="ShadcnCarouselContent";const wa=i.forwardRef(({className:t,...a},i)=>{const{orientation:l}=xa();return e("div",{ref:i,role:"group","aria-roledescription":"slide",className:_t("min-w-0 shrink-0 grow-0","horizontal"===l?"pl-4":"pt-4",t),...a})});wa.displayName="ShadcnCarouselItem";const Da=i.forwardRef(({className:a,variant:i="outline",size:l="icon",...r},n)=>{const{orientation:s,scrollPrev:o,canScrollPrev:d}=xa();return t(Oa,{ref:n,variant:i,size:l,className:_t("absolute h-8 w-8 rounded-full bg-white/40","horizontal"===s?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!d,onClick:o,...r,children:[e(te,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Previous slide"})]})});Da.displayName="ShadcnCarouselPrevious";const Pa=i.forwardRef(({className:a,variant:i="outline",size:l="icon",...r},n)=>{const{orientation:s,scrollNext:o,canScrollNext:d}=xa();return t(Oa,{ref:n,variant:i,size:l,className:_t("absolute h-8 w-8 rounded-full bg-white/40","horizontal"===s?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!d,onClick:o,...r,children:[e(ae,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Next slide"})]})});Pa.displayName="ShadcnCarouselNext";const ka=({testID:i,data:l,onPressCallback:r,carouselOptions:n={loop:!1,showArrows:!0,slidesPerView:{base:1,md:2,lg:3}},customRender:s})=>{const o=n?.slidesPerView||{base:n?.slidesToShow||1};n?.responsive&&!n?.slidesPerView&&n.responsive.forEach(e=>{e.breakpoint<=640?o.base=e.settings.slidesToShow:e.breakpoint<=768?o.sm=e.settings.slidesToShow:e.breakpoint<=1024?o.md=e.settings.slidesToShow:e.breakpoint<=1280?o.lg=e.settings.slidesToShow:e.breakpoint<=1536?o.xl=e.settings.slidesToShow:o["2xl"]=e.settings.slidesToShow});const d=(e,t="")=>{const a=t?`${t}:`:"";switch(e){case 1:default:return`${a}basis-full`;case 2:return`${a}basis-1/2`;case 3:return`${a}basis-1/3`;case 4:return`${a}basis-1/4`;case 5:return`${a}basis-1/5`;case 6:return`${a}basis-1/6`}},c=Math.max(o.base||1,o.sm||0,o.md||0,o.lg||0,o.xl||0,o["2xl"]||0),m=l.length<=c,{showArrows:u=!0,loop:p=!1,vertical:h=!1}=n;return e("div",{"data-testid":i||"Carousel",className:"mb-4",children:t(_a,{opts:{align:"start",loop:!m&&p,slidesToScroll:1},orientation:h?"vertical":"horizontal",className:"w-full",children:[e(La,{className:"-ml-2 md:-ml-4",children:l?.map((t,a)=>{const i=s?s(t,a):((t,a)=>e("div",{className:"px-2 overflow-hidden rounded-lg",children:e(ea,{variant:t.variant,data:{...t.data,onClick:r?()=>{r(t.data.id)}:void 0},className:t.className},a)},a))(t,a),l=N("pl-2 md:pl-4",o.base&&d(o.base),o.sm&&d(o.sm,"sm"),o.md&&d(o.md,"md"),o.lg&&d(o.lg,"lg"),o.xl&&d(o.xl,"xl"),o["2xl"]&&d(o["2xl"],"2xl"));return e(wa,{className:l,children:i},a)})}),!m&&u&&t(a,{children:[e(Da,{className:"-left-2"}),e(Pa,{className:"-right-2"})]})]})})};var Ma;ka.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"}(Ma||(Ma={}));const Ua=({testID:a,cardData:i,title:l,description:n,withSeparators:s,spacing:o=Ma.MODULE})=>{const d=r(null),c=f(d,{once:!0}),m=i?.length%2==0,u=`lg:grid-cols-${i?.length>4?4:i?.length}`,p=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:d,"data-testid":a||"PanelCards",className:N("relative m-auto px-4 lg:px-0 w-full flex flex-col flex-none flex-nowrap",o),children:[(l||n)&&t("div",{className:"relative text-center py-8",children:[l&&e(ta,{text:l}),n&&e("div",{className:"mt-2",children:e(We,{align:Ue.CENTER,children:n})})]}),e("div",{className:I(N("gap-4 md:gap-4 lg:gap-8 items-center md:items-start justify-center w-full m-auto grid",p,u)),children:i?.map((t,a)=>e("div",{className:"flex gap-8 justify-between items-center",children:e("div",{className:N("relative flex flex-1 items-center justify-center",{"":s}),style:{transform:c?"none":"translateY(200px)",opacity:c?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*a}s`},children:e(ea,{...t})})},`card-${a}`))})]})};Ua.displayName="PanelCards";const Fa=({testID:a,title:i,description:l,inversed:r,assets:n,buttonData:s,withBg:o=!0,spacing:d=Ma.DEFAULT,chips:c})=>t("div",{"data-testid":a||"PanelFeature",className:N("relative m-auto w-full flex flex-none flex-nowrap px-4 lg:px-0",d),children:[o&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-square absolute -top-24 -left-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-700 to-primary-300"}),e(ma,{children:t("div",{className:N("relative flex flex-col-reverse sm:flex-col md:flex-row lg:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 md:items-center gap-16",{"flex-row-reverse":r}),children:[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(ta,{text:i,flush:!0})}),e("div",{className:"relative text-center md:text-left",children:e(We,{className:"mb-0",children:l})}),c&&e("div",{className:"grid grid-cols-3 gap-2 mx-auto md:mx-0",children:c?.map((t,a)=>e(Ye,{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(Pe,{...s})})]}),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(pa,{bgAsset:n.bgAsset,focalAsset1:n.focalAsset1,focalAsset2:n.focalAsset2,focalAsset3:n.focalAsset3})})})]})})]});Fa.displayName="PanelFeature";const Ba=n(function({url:t,sources:a,onReady:i,onExitFullScreenCallback:l,className:n,options:o={playsinline:!0,preferFullWindow:!0},isYoutube:c=!1,defaultAudioTrack:m="No Music",rounded:u=!0,aspectRatioValue:h,isModal:f=!1},E){const g=r(null),A=r(null),S=r(null),v=s(()=>{switch(h){case"4/3":return{aspectRatio:"4:3",className:"aspect-[4/3]"};case"1/1":return{aspectRatio:"1:1",className:"aspect-[1/1]"};case"3/4":return{aspectRatio:"3:4",className:"aspect-[3/4]"};case"9/16":return{aspectRatio:"9:16",className:"aspect-[9/16]"};case"16/7":return{aspectRatio:"16:7",className:"aspect-[16/7]"};case"16/5":return{aspectRatio:"16:5",className:"aspect-[16/5]"};default:return{aspectRatio:"16:9",className:"aspect-[16/9]"}}},[h]);return d(()=>{if(c)return;const e={autoplay:!0,controls:!0,muted:!1,playsInline:!0,preferFullWindow:!0,responsive:!0,fill:!0,fluid:!f,controlBar:{skipButtons:ne?{}:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}},...o,sources:a};if(S.current){const e=S.current;e.autoplay(o.autoplay),e.src(o.sources)}else{const t=document.createElement("video-js");A?.current?.appendChild(t);const a=S.current=se(t,e,()=>{se.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"),l&&"function"==typeof l&&l())})}},[o,A]),p(E,()=>({play:()=>{S.current&&S.current.play()},pause:()=>{S.current&&S.current.pause()},fullscreen:()=>{S.current&&S.current.requestFullscreen()}})),d(()=>{if(c)return;const e=S.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),S.current=null)}},[S]),e("div",c&&t?{"data-testid":"Video",className:N("relative w-full h-full aspect-[16/9]",n),children:e(re,{ref:g,className:"react-player",url:t,width:"100%",height:"100%",controls:!0,onReady:i,config:{youtube:{playerVars:{modestbranding:1,disablekb:1}}}})}:f?{ref:A,className:"relative w-full h-full"}:{className:I(N("relative w-full overflow-hidden h-full object-cover",{rouded:u},v.className,n)),children:e("div",{"data-vjs-player":!0,children:e("div",{ref:A,className:N("object-cover bg-black flex items-center justify-center",v.className)})})})});Ba.displayName="Video";const Ga=({testID:a,title:i,contentComponent:l,description:n,image:o,buttonData:c,inversed:m=!1,withBg:u=!0,spacing:p,video:h,headingTag:E,className:g})=>{const A=v(),C=r(null),b=f(C),T={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};d(()=>{b&&A.start(e=>({transform:"none",transition:{...T,delay:.1*e}}))},[A,b]);const R=s(()=>{switch(h?.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]"}},[h]),O=m?"translateX(100px)":"translateX(-100px)";return t("div",{"data-testid":a||"PanelHero",className:I(N("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",p,g)),children:[u&&e("div",{className:N("rounded-full blur-[200px] flex flex-none aspect-square absolute w-[700px] bg-gradient-to-b md:bg-gradient-to-r from-primary-200 to-primary-200 dark:from-primary-800 dark:to-primary-800 z-0",{"-bottom-24 right-0":!m,"-top-24 left-0":m})}),e(ma,{children:t("div",{className:N("relative flex flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-0 md:gap-16",{"md:flex-row-reverse":m}),children:[e("div",{ref:C,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:t("div",{className:N("relative flex flex-col gap-4 from-body-bg dark:from-body-bg-dark 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(S.div,{initial:{transform:O},custom:0,animate:A,children:e(ta,{text:i,tag:E})}),l&&e(S.div,{initial:{transform:O},custom:1,animate:A,children:l}),n&&e(S.div,{initial:{transform:O},custom:1,animate:A,children:e(vt,{className:"mb-0",align:m?Ue.LEFT:Ue.RIGHT,data:n})}),c&&e(S.div,{initial:{transform:O},custom:2,animate:A,children:e("div",{className:N("flex items-center",{"justify-end":!m,"justify-start":m}),children:e(Pe,{...c})})})]})}),e("div",{className:"relative w-full md:w-1/2 z-0",children:t("div",{className:N("relative md:scale-[1.35] rounded overflow-hidden shadow",R),children:[o&&e(tt,{src:o,alt:i,fill:!0}),h&&e(Ba,{sources:h.sources,options:{autoplay:!0,muted:!0,controls:!1,loop:!0,playsinline:!0},aspectRatioValue:h.aspectRatioValue})]})})]})})]})};Ga.displayName="PanelHero";const Ha=({testID:a,title:i,description:l,image1:r,image2:n,iosLink:s="#",androidLink:o="#",inversed:d=!1,withBg:c=!0,spacing:m=Ma.MODULE})=>t("div",{"data-testid":a||"PanelFeature",className:N("relative m-auto w-full flex flex-none flex-nowrap",m),children:[c&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-square absolute -bottom-24 -right-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-700 to-primary-300"}),e(ma,{children:t("div",{className:N("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-tertiary-300 dark:bg-secondary rounded p-8 shadow",{"flex-row-reverse":d}),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(tt,{src:n,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(tt,{src:r,alt:i})})]}),t("div",{className:"w-full md:w-1/2",children:[e("div",{children:e(ta,{text:i})}),e("div",{children:e(We,{children:l})}),t("div",{className:"flex items-center justify-start gap-4",children:[e("div",{className:"relative w-[150px] h-[50px]",children:e(Me,{href:s,target:"_blank",hideExternalIcon:!0,children:e(tt,{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(Me,{href:o,target:"_blank",hideExternalIcon:!0,children:e(tt,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});Ha.displayName="PanelProduct";const Wa=({testID:a,className:i,title:l,description:r,spacing:n=Ma.NONE,videoProps:s})=>t("div",{"data-testid":a||'"PanelVideo"',className:I(N("relative w-full overflow-hidden",`md:aspect-[${s.aspectRatioValue}]`,n,i)),children:[e(Ba,{rounded:!1,className:"xl:max-h-[750px]",aspectRatioValue:s.aspectRatioValue,options:{autoplay:!0,muted:!0,controls:!1,loop:!0,playsinline:!0,preferFullWindow:!1,...s?.options},sources:s?.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:[l&&e(S.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(ta,{text:l,colorOverride:"text-white before:bg-white border-white"})})}),r&&e(S.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(We,{children:r})})})]})]})]});Wa.displayName="PanelVideo";const Ya=({testID:a,title:i,description:l,image:n,buttonData:s,inversed:o=!1,withBg:c=!0,spacing:m,video:u,headingTag:p,className:h,bgImage:E})=>{const g=v(),A=r(null),C=f(A),b={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};d(()=>{C&&g.start(e=>({transform:"none",transition:{...b,delay:.1*e}}))},[g,C]);const T="translateY(100px)";return t("div",{"data-testid":a||"PanelIntro",className:I(N("relative m-auto w-full flex flex-none flex-nowrap py-24 sm:py-32 md:py-48 lg:py-56",m,h)),children:[c&&e("div",{className:N("rounded-full blur-[200px] flex flex-none aspect-square absolute w-[700px] opacity-30 bg-gradient-to-b md:bg-gradient-to-r from-primary-700 to-primary-300 z-0",{"-bottom-24 right-0":!o,"-top-24 left-0":o})}),E&&t("div",{className:"absolute inset-0 z-0",children:[e(tt,{src:E,alt:i,className:"object-cover opacity-50"}),e("div",{className:"absolute inset-0 bg-gradient-to-t from-body-bg to-transparent"})]}),e(ma,{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(S.div,{initial:{transform:T},custom:0,animate:g,children:e(ta,{text:i,tag:p})}),l&&e(S.div,{initial:{transform:T},custom:1,animate:g,children:e(vt,{className:"mb-0",align:Ue.CENTER,data:l})}),s&&e(S.div,{initial:{transform:T},custom:2,animate:g,children:e("div",{className:"flex items-center",children:e(Pe,{...s})})})]})}),(n||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:[n&&e(tt,{src:n,alt:i,fill:!0}),u&&e(Ba,{sources:u.sources,options:{autoplay:!0,muted:!0,controls:!1,loop:!0},aspectRatioValue:u.aspectRatioValue})]})})]})})]})};Ya.displayName="PanelIntro";const Va=({testID:a,withBg:i=!0,spacing:l,className:r,children:n,title:s,headingTag:o})=>t("div",{"data-testid":a||"PanelCustom",className:I(N("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",l,r)),children:[i&&e("div",{className:"rounded-full blur-[200px] flex flex-none aspect-square absolute w-[700px] opacity-20 bg-gradient-to-b md:bg-gradient-to-r from-primary-700 to-primary-300 z-0"}),e(ma,{children:t("div",{className:"relative flex flex-col gap-4 items-center justify-center",children:[e(ta,{text:s,tag:o}),n&&e("div",{children:n})]})})]});var za;Va.displayName="PanelCustom",function(e){e.BASIC="basic",e.MEDIA="media",e.VIDEO="video",e.ICON="icon",e.HORZ="horz",e.DATA="data"}(za||(za={}));const ja=({testID:t,cols:a})=>{const i=r(null),l="aspect-[9/16]";return e("div",{ref:i,"data-testid":t||"PanelScroller",className:"relative",children:e("div",{className:N("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)=>e("div",{className:"relative",children:e(ka,{data:t?.images?.map((e,t)=>({variant:za.BASIC,data:{id:`image-${t}`,image:{src:e,alt:`Image ${t+1}`,aspectRatio:l},scaleOnHover:!1},className:l})),carouselOptions:{slidesPerView:{base:1},vertical:!0,loop:!0,showArrows:!1}})},a))})})};ja.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(ea,{variant:t.variant,data:{...t.data,onClick:()=>i(t.data.id)}},a))});Ka.displayName="CardGrid";const qa=({handleSubmit:t=()=>{}})=>{const a=Kt();return e("div",{"data-testid":"PromoCodeForm",className:"form-wrapper",children:e(aa,{onSubmit:t,submit:a?.FORMS?.PROMO_CODE_FORM?.SUBMIT,children:e(ra,{name:"promoCode",type:ia.TEXT,label:a?.FORMS?.PROMO_CODE_FORM?.PROMO_CODE})})})};qa.displayName="PromoCodeForm";const $a=({testID:i,isCheckout:l})=>{const n=zt(),s=Kt(),[o,m]=c(!1),u=r(null),p=n?.value?.promoCode?.code,h=e=>{u.current&&!u.current.contains(e.target)&&m(!1)};return d(()=>(document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}),[]),t("div",{"data-testid":i||'"Cart"',className:"relative",children:[e("div",{className:"relative",children:!l&&t(a,{children:[e(Pe,{rounded:!0,icon:"mdi:cart",onClick:e=>{e.stopPropagation(),m(!o)}}),n?.value?.items&&n.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(We,{className:"mb-0 text-white text-sm",children:String(n?.value?.items.length)})})]})}),(o||l)&&t("div",{ref:u,className:N("min-w-128 text-body-text dark:text-body-text-dark bg-body-bg dark:bg-body-bg-dark",{"rounded shadow absolute top-12 p-4 right-0":!l}),children:[!l&&e(ta,{tag:Xe.H3,text:"Cart"}),n?.value?.items&&n?.value?.items.length>0&&t("div",{children:[e(rt,{as:lt.UL,className:"",children:n?.value?.items.map(a=>{const i=a.title||a.generatedTitle||a.uuid;return e(st,{as:"li",children:t("div",{className:"flex flex-row gap-4 p-2 border border-solid border-grey-100 rounded mb-2",children:[e(Pe,{variant:Le.LINK,className:"w-full p-0",onClick:()=>n?.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(tt,{src:a.image,alt:"item image",className:"aspect-[2/1] w-auto h-auto object-cover"})}),t("div",{className:"max-w-64 flex-1 text-left",children:[e(We,{className:"mb-0 line-clamp-2",children:i}),t(We,{className:"mb-0",children:["$",a?.options?.selectedPrice," USD"]})]})]})}),e("div",{className:"flex items-center justify-center",children:e(Pe,{id:"remove-cart-btn",rounded:!0,variant:Le.SECONDARY,type:_e.BUTTON,onClick:()=>{n?.handleRemoveFromCart?.(a.uuid),n?.value?.items&&1===n.value.items.length&&setTimeout(()=>{m(!1)},2e3)},icon:"mdi:delete"})})]})},a.uuid)})}),e("div",{className:"mt-4"}),l&&t(a,{children:[e("div",{className:"flex items-start justify-start",children:e(qa,{handleSubmit:e=>n?.handleAddPromoCode?.(e)})}),t(We,{children:[s?.UI?.TAX,": ",n?.value?.taxRate?.percentage,"%"]}),t(We,{children:[s?.UI?.TAX_DUE,": ",n?.value?.currency?.symbol,n?.value?.taxAmount," ",n?.value?.currency?.code]}),p&&t("div",{className:"flex gap-4 items-center justify-between",children:[t(We,{children:[s?.UI?.PROMO_CODE,": ",p]}),e("div",{children:e(Pe,{rounded:!0,id:"remove-promo-btn",variant:Le.SECONDARY,outline:!0,type:_e.BUTTON,onClick:()=>n?.handleRemovePromoCode?.(p),className:"",icon:"mdi:window-close"})})]})]}),t(We,{children:[s?.UI?.TOTAL,": ",n?.value?.cartTotal," ",n?.value?.currency?.showCode&&n?.value?.currency?.code]}),!l&&t("div",{className:"flex items-center justify-between gap-4",children:[e("div",{className:"",children:e(Pe,{size:we.SMALL,variant:Le.SECONDARY,onClick:()=>m(!1),children:s?.UI?.CONTINUE_BROWSING})}),e("div",{className:"",children:e(Pe,{size:we.SMALL,variant:Le.PRIMARY,onClick:()=>{m(!1),n?.handleCheckout?.()},children:s?.UI?.CHECKOUT})})]})]}),(!n?.value?.items||0===n?.value?.items?.length)&&e("div",{children:e(Je,{tag:Xe.H5,children:s?.UI?.EMPTY})})]})]})};$a.displayName="Cart";const Xa=({testID:a,hideMenu:i=!1,className:l})=>{const r=Gt(),n=Kt(),[s,o]=c("hidden"),[d,m]=c(!1),u=()=>{o("hidden"===s?"block":"hidden")},p="relative z-10 w-full m-auto py-4 bg-header-bg dark:bg-darkHeaderBackground";return e("header",r?.brand?.logoOnly?{"data-testid":a||'"Header"',className:I(N(p,l)),children:e("div",{className:"relative w-full flex flex-col md:flex-row justify-center items-center",children:r?.brand?.logo&&e("div",{className:N("relative w-16 md:w-24",r?.brand?.logoAspectRatio),children:e(Me,{href:"/",children:e(nt,{logo:r?.brand?.logo,aspectRatioClass:r?.brand?.logoAspectRatio})})})})}:{"data-testid":a||'"Header"',className:I(N(p," text-header-text dark:text-darkHeaderText",l)),children:t(ma,{padded:!0,children:[t("div",{className:"relative w-full flex",children:[r?.brand?.logo&&e("div",{className:N("relative h-12",r?.brand?.logoAspectRatio),children:e(Me,{href:"/",children:e(nt,{logo:r?.brand?.logo,aspectRatioClass:r?.brand?.logoAspectRatio})})}),t("div",{className:"flex-1 hidden md:flex items-center justify-center",children:[r?.app?.isAuthenticated&&r?.header?.authNav&&e(da,{links:r.header.authNav,separators:!0}),!r?.app?.isAuthenticated&&r?.header?.anonNav&&e(da,{links:r.header.anonNav,separators:!0})]}),t("div",{className:"hidden md:flex items-center justify-center",children:[!r?.app?.isAuthenticated&&r?.app?.loginCallback&&e("div",{className:"w-32 flex justify-end",children:e(Pe,{onClick:r?.app?.loginCallback,children:n.UI.LOGIN})}),!r?.app?.isAuthenticated&&!r?.app?.loginCallback&&e("div",{className:"w-32 flex justify-end"}),r?.app?.isAuthenticated&&t("div",{className:"relative",children:[e(Pe,{onClick:()=>m(!d),icon:d?"mdi:user-outline":"mdi:user"}),e("div",{onClick:()=>m(!1),className:N("absolute bg-body-bg dark:bg-body-bg-dark shadow rounded py-2 px-6 right-0 top-12 z-20 text-body-text dark:text-body-text-dark text-right",{hidden:!d}),children:r?.header?.profile&&e(da,{links:r.header.profile,inline:!1})})]}),r?.app?.showCart&&e($a,{})]}),e("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e(Pe,{variant:Le.PRIMARY,icon:"mdi:menu",onClick:u})})]}),t("div",{className:N("navbar-menu relative z-50",s,{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-body-bg dark:bg-body-bg-dark border-r overflow-y-auto",children:[t("div",{className:"flex justify-between",children:[e("div",{className:"relative w-32",children:r?.brand?.logo&&e("div",{className:"relative w-32",children:e(nt,{logo:r?.brand?.logo,aspectRatioClass:r?.brand?.logoAspectRatio})})}),e("div",{children:e(Pe,{variant:Le.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:[r?.app?.isAuthenticated&&r?.header?.authNav&&e(da,{links:r.header.authNav,separators:!0}),!r?.app?.isAuthenticated&&r?.header?.anonNav&&e(da,{links:r.header.anonNav,separators:!0})]}),e("div",{className:"flex flex-1 justify-center pt-4",children:r?.app?.isAuthenticated&&r?.header?.profile&&e(da,{links:r.header.profile,separators:!0})}),r?.app?.isAuthenticated&&e("div",{className:"md:hidden flex justify-center",children:e(Pe,{onClick:r?.app?.logoutCallback,children:n.UI.LOGOUT})}),!r?.app?.isAuthenticated&&e("div",{className:"md:hidden flex justify-center",children:e(Pe,{onClick:()=>{r?.app?.loginCallback?.(),u()},children:n.UI.LOGIN})})]})]})]})]})})};Xa.displayName="Header";const Qa=({testID:a,className:i})=>{const l=m(Ft);return e("footer",{className:N("w-full z-10 pt-16 pb-8 bg-footer-bg dark:bg-darkFooterBackground text-footer-text dark:text-darkFooterText",i),children:t(ma,{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:[l?.brand?.logo&&e("div",{className:"relative w-24",children:e(nt,{logo:l?.brand?.logo,aspectRatioClass:l?.brand?.logoAspectRatio})}),l.footer?.about&&e("div",{children:e(We,{children:l.footer.about})}),e("div",{children:e(oa,{facebook:l.footer?.visitUs?.facebook,twitter:l.footer?.visitUs?.twitter,instagram:l.footer?.visitUs?.instagram,linkedin:l.footer?.visitUs?.linkedin,youtube:l.footer?.visitUs?.youtube})})]}),t("div",{className:"flex gap-4 flex-1 flex-col",children:[l.footer?.menus&&e("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:l.footer.menus.map((t,a)=>e("div",{className:"flex flex-1",children:e(da,{title:t.title,links:t.links,inline:!1})},`${t.title}--${a}`))}),l?.footer?.custom&&e("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:l.footer.custom})]})]}),t("div",{className:"flex items-center justify-center flex-col",children:[t(We,{align:Ue.CENTER,as:He.SMALL,children:["© ",(new Date).getFullYear()," ",pt.UI.COPYRIGHT," ",l.brand?.name]}),e(We,{align:Ue.CENTER,as:He.SMALL,children:pt.UI.ALL_RIGHTS_RESERVED})]})]})})};Qa.displayName="Footer";const Za=({testID:a,children:i,showHeader:l=!0,showFooter:r=!0,image:n,showOverlay:s=!0,isFlush:o,fixedHeader:d})=>t("div",{"data-testid":a||'"Screen"',className:"h-full flex flex-1 flex-col min-h-full overflow-x-hidden",children:[l&&e(Xa,{className:N({"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":d})}),t("main",{className:N("relative z-0 flex flex-1",{"pt-24 md:pt-32 lg:pt-40":n},{"pt-8 md:pt-12 lg:pt-12":!n&&!o}),children:[n&&t("div",{className:"absolute w-full aspect-[16/5] opacity-50 z-0 top-0 left-0 right-0",children:[e(tt,{src:n,alt:"background",priority:!0,sizes:"100vw",style:{objectFit:"cover"}}),s&&e("div",{className:"absolute w-full h-full bg-gradient-to-b from-transparent to-body-bg dark:to-body-bg-dark"})]}),e(ma,{padded:!o,isFlush:o,children:e("div",{className:"flex flex-col gap-8 h-full w-full",children:i})})]}),r&&e(Qa,{})]});Za.displayName="Screen";const Ja=({title:a,content:i})=>{const[l,r]=c(!1);return t(qe.Root,{open:l,onOpenChange:r,className:"mb-2",children:[t(qe.Trigger,{className:N("accordion-trigger",{"accordion-trigger-open":l}),children:[e(Je,{flush:!0,tag:Xe.H4,className:N("transition-all",{"text-white":l}),children:a}),e("div",{className:"",children:e(ye,{name:l?"mdi:chevron-up":"mdi:chevron-down"})})]}),e(qe.Content,{children:e("div",{className:"p-2",children:e(We,{children:i})})})]})},ei=({testID:t,data:a,titleKey:i="title",contentKey:l="content"})=>e("div",{"data-testid":t||"Accordion",children:a.map((t,a)=>e(Ja,{title:t[i],content:t[l]},t[i]||a))});ei.displayName="Accordion";const ti=({testID:a,title:i,children:l,subscription:r,plans:n,paymentMethod:s,changeSubscriptionCallback:o,pauseSubscriptionCallback:d,updatePaymentMethodCallback:m,selectedPlanCallback:u,confirmPlanCallback:p,isLoading:h})=>{const f=Kt(),[E,g]=c(r?.id),[A,S]=c(!1),[v,C]=c(!1),I=e=>{g(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(Je,{children:i}),!r&&e("div",{className:"rounded-lg shadow-md p-6 md:p-8 lg:p-10 bg-card-bg dark:bg-darkCardBackground max-w-4xl mx-auto w-full text-center",children:t("div",{className:"mb-4",children:[e(Je,{tag:Xe.H3,className:"mb-2",children:f.UI.NO_ACTIVE_SUBSCRIPTION}),e(We,{className:"text-gray-600 dark:text-gray-400",children:f?.UI?.NO_SUBSCRIPTION_DETAILS})]})}),r&&t("div",{className:"rounded-lg shadow-md p-6 md:p-8 lg:p-10 bg-card-bg 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(We,{className:"text-sm text-gray-500 dark:text-gray-400 mb-1 uppercase tracking-wide",children:f?.UI?.CURRENT_PLAN}),e(Je,{tag:Xe.H2,className:"mb-0",children:r.plan}),r.planDescription&&e(We,{className:"text-gray-600 dark:text-gray-400 mt-1 mb-0",children:r.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}}})(r.status);return t("div",{className:N("inline-flex items-center gap-2 px-4 py-2 rounded-full text-sm font-semibold shadow-sm",a.bgColor,a.textColor),children:[e(ye,{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:r.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(We,{className:"text-gray-500 dark:text-gray-400 mb-1",children:f?.UI?.NEXT_BILLING_DATE}),e(We,{className:"mb-0 font-medium",children:r.nextBillingDate})]}),r.endDate&&t("div",{className:"flex flex-col",children:[e(We,{className:"text-gray-500 dark:text-gray-400 mb-1",children:f?.UI?.END_DATE}),e(We,{className:"mb-0 font-medium text-red-600 dark:text-red-400",children:r.endDate})]})]}),s&&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(We,{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(ye,{name:"mdi:credit-card",className:"w-6 h-6 text-primary"}),t("div",{className:"flex flex-col",children:[t(We,{className:"mb-0 font-medium",children:[s.cardType," ",s.cardNumber]}),t(We,{className:"text-sm text-gray-500 dark:text-gray-400 mb-0",children:["Expires ",s.cardExpiry]})]})]})]})})]}),r&&t("div",{className:"flex justify-center gap-4 flex-wrap",children:[o&&e(Pe,{variant:Le.PRIMARY,onClick:()=>S(!A),children:A?f?.UI?.CANCEL:f?.UI?.CHANGE_PLAN}),m&&e(Pe,{variant:Le.SECONDARY,onClick:()=>{S(!1),oe({title:f?.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:f?.UI?.YES,onClick:m},{label:f?.UI?.NO,onClick:()=>{}}]})},children:"Update Payment Method"}),!r.endDate&&e(Pe,{variant:Le.SECONDARY,onClick:()=>{S(!1),oe({title:f?.UI?.CONFIRM_TO_SUBMIT,message:f?.UI?.CONFIRM_TO_PAUSE,buttons:[{label:f?.UI?.YES,onClick:d},{label:f?.UI?.NO,onClick:()=>{}}]})},children:f?.UI?.PAUSE_SUBSCRIPTION})]}),A&&n&&l&&t("div",{className:"flex items-center flex-col gap-4",children:[!v&&e("div",{className:"flex flex-col md:flex-row gap-4 justify-center flex-wrap",children:n.map(t=>e("div",{className:N("flex w-[300px] lg:flex-1",{"opacity-50":E&&E!==t.id},{hidden:v&&E&&E!==t.id}),children:e(ea,{variant:za.ICON,className:N({"rounded border-2 border-primary bg-tertiary":E===t.id},{"border-2 border-card-bg":E!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>I(t.id)}})},t.id))}),e("div",{children:e(Pe,{variant:Le.PRIMARY,onClick:()=>{oe({title:f?.UI?.CONFIRM_TO_SUBMIT,message:f?.UI?.CONFIRM_TO_CHANGE_PLAN,buttons:[{label:f?.UI?.YES,onClick:()=>{E&&p&&"function"==typeof p&&p(E),S(!1)}},{label:f?.UI?.NO,onClick:()=>S(!1)}]})},disabled:E===r?.id,children:f?.UI?.CONFIRM_TO_SUBMIT})})]}),r&&l&&!A&&e("div",{className:"flex items-center flex-col gap-4",children:l}),!r&&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:n.map(t=>e("div",{className:N("flex flex-1 w-[300px]",{"opacity-50":E&&E!==t.id},{hidden:v&&E&&E!==t.id}),children:e(ea,{variant:za.ICON,className:N({"rounded border-2 border-primary bg-tertiary":E===t.id},{"border-2 border-card-bg":E!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>I(t.id)}})},t.id))}),e("div",{children:e(Pe,{variant:Le.PRIMARY,onClick:()=>{C(!0),E&&p&&"function"==typeof p&&p(E)},disabled:!E,children:f?.UI?.CONFIRM_CHOICE})})]}),e("div",{children:l})]})]}),h&&e("div",{className:"absolute top-0 left-0 w-full h-full bg-body-bg bg-opacity-50 flex items-center justify-center",children:e(De,{})})]})};var ai;ti.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"}(ai||(ai={}));const ii=({spacing:t=ai.DEFAULT,children:a,narrow:i,flush:l,className:r})=>{const n=N("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":l},r);return e("div",{"data-testid":"ContentPageLayout",className:n,children:a})};var li;ii.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"}(li||(li={}));const ri=({className:t,children:a,size:i=li.DEFAULT})=>{const l=N("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:l,children:a})};ri.displayName="ContentRowsLayout";const ni=({testID:t,inputCallback:a,seperator:i,numInputs:r=4,shouldAutoFocus:n=!1,size:o="medium"})=>{const[d,m]=c("");l.useEffect(()=>{d&&4===d.length&&void 0!==a&&"function"==typeof a&&a(d)},[d]);const u=s(()=>{switch(o){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"}}},[o]);return e("div",{"data-testid":t||'"OTPInput"',className:"foo-bar",children:e(de,{value:d,onChange:m,inputType:"number",numInputs:r,shouldAutoFocus:n,renderSeparator:i?()=>e("div",{className:"flex items-center justify-center",children:e(ye,{name:"mdi:dot",className:"opacity-50"})}):e("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e("input",{...t,className:N("remove-arrow form-item text-input w-12")}),inputStyle:{width:u.width,height:u.height}})})};ni.displayName="OTPInput";const si=({testID:a,modalOpen:i=!0,videoProps:l,ariaHideApp:r=!1,onCloseCallback:n=()=>{}})=>{const[s,o]=c(!1);return d(()=>{i&&o(!0)},[i]),e(ce,{isOpen:s,onRequestClose:n,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:r,"data-testid":a||"FullScreenVideoModal",children:t("div",{className:"h-full relative",children:[e(Pe,{rounded:!0,icon:"mdi:close",onClick:n,className:"absolute top-4 right-4 z-50"}),e(Ba,{...l})]})})};si.displayName="FullScreenVideoModal";const oi=({testID:a,children:i,image:l,imageMob:r})=>l||r?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(${l})`}}),i]}):e("div",{children:i});var di;function ci({className:a,label:i,onChange:l,options:r}){return r?t("div",{className:N("m-0 p-0 mb-2 border-none",a),children:[e(at,{className:"text-sm",transform:Fe.UPPERCASE,children:i}),e(la,{id:i||"Sorting",options:r,onChange:e=>l(e.target.value)})]}):null}function mi({className:t,current:a,resultsPerPage:i=10,onChange:l,totalPages:r,...n}){return e(Ce,{current:a,onChange:l,simple:!0,pageSize:i,total:r*i,className:N("m-0 p-0 list-none text-body-text flex gap-2 text-center items-center [&>li>span]:px-2 [&>li>input]:text-black [&>li>input]:rounded [&>li>input]:text-center",t),locale:Ie,prevIcon:e("div",{className:"text-body-text",children:e(ye,{name:"mdi:chevron-left"})}),nextIcon:e("div",{className:"text-body-text",children:e(ye,{name:"mdi:chevron-right"})}),...n})}function ui({className:i,onChange:l,options:r,label:n}){return r?t("div",{className:N("m-0 p-0 mb-2 border-none",i),children:[e(at,{className:"text-sm mr-2",transform:Fe.UPPERCASE,children:pt.UI.SHOW}),e(la,{id:n||"ResultsPerPage",options:r.map(e=>({label:e.toString(),value:e})),onChange:e=>l(e.target.value),className:"min-w-20"})]}):e(a,{})}function pi({className:i,end:l,searchTerm:r,start:n,totalResults:s,...o}){return t("div",{className:N("m-0 p-0 flex-1",i),...o,children:["Showing"," ",t("strong",{children:[n," - ",l]})," ","out of ",e("strong",{children:s}),r&&t(a,{children:[" ","for: ",e("em",{children:r})]})]})}function hi({className:a,onChange:i,onSubmit:l,wasSearched:r,placeholder:n,allowReset:s=!1,resetTrigger:o=()=>{}}){return e("div",{className:N("m-0 md:px-48",a),children:t("form",{onSubmit:e=>l(e),className:"flex items-center",children:[e("div",{className:"flex-1 bg-body-bg dark:bg-body-bg-dark bg-opacity-80 rounded",children:e(ut,{name:"SearchBoxInput",type:mt.TEXT,placeholder:n||"Search now...",onChange:e=>{i(e?.target?.value)}})}),e("div",{className:"pl-4",children:t("div",{className:"flex flex-row gap-2",children:[r&&s&&e(Pe,{type:_e.BUTTON,onClick:()=>o("",{shouldClearFilters:!1}),variant:Le.SECONDARY,icon:"mdi:restore"}),e(Pe,{type:_e.SUBMIT,variant:Le.PRIMARY,icon:"mdi:magnify"})]})})]})})}function Ni({className:i,children:l,header:r,bodyContent:n,bodyFooter:s,bodyHeader:o,sideContent:d,showSidebar:c}){const m=N("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":!d});return t(a,{children:[t("div",{className:N("w-full flex flex-col",i),children:[e("div",{className:"m-auto md:py-0 w-full",children:r}),t("div",{className:N("md:grid m-auto md:py-0 w-full",{"md:grid-cols-1":!d,"md:grid-cols-[1fr_3fr]":d}),children:[!ne&&e("div",{className:m,children:d}),t("div",{className:N("p-0 pt-2 md:p-6 md:pr-0",{"md:pl-0":!d}),children:[e("div",{className:"flex flex-row gap-8 items-center justify-end",children:o}),e("div",{className:"relative",children:l||n}),e("div",{className:"flex items-center justify-around",children:s})]})]})]}),ne&&c&&e("div",{className:"fixed z-10 w-full top-0 left-0 right-0 bottom-0 bg-body-bg px-4 overflow-scroll",children:d})]})}function fi({children:t,className:a,gridClasses:i,...l}){return e("ul",{className:N("relative grid gap-4 mb-4",i||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",a),...l,children:t})}function Ei(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function gi(e,t){if(e)return e[t]}function Ai(e){const t=gi(e,"snippet")||(a=function(e){return gi(e,"raw")}(e),a?String(a).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):"");var a;return Array.isArray(t)?t.join(", "):t}function Si({className:t,result:a,as:i,cardMap:l={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:r,titleField:n,imageField:s,videoField:o,descriptionField:d,metaDataFields:c,cardProps:m}=l,u=r&&Ai(a[r.fieldName]),p=n&&Ai(a[n.fieldName]),h=s&&Ai(a[s.fieldName]),f=h||Ai(a.image),E=o&&o.formatter?o.formatter(Ai(a[o.fieldName])):o&&Ai(a[o.fieldName]),g=d&&Ai(a[d.fieldName]),A=c&&c.map(e=>{const t=Ai(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)});return e("li",{className:N("relative",t),children:(()=>{const t={src:f||"",alt:p||"",title:p||"",width:500,height:500},r="function"==typeof l.actionsData?l.actionsData(a):l.actionsData,n={id:u,title:be.decode(p),image:t,video:E,description:g,metaData:A,actions:r,onClick:l.onClickLink};switch(i){case di.cardMedia:return e(ea,{variant:za.MEDIA,data:n,...m});case di.cardVideo:return e(ea,{variant:za.VIDEO,data:n,...m,isMuted:!1});default:return e(ea,{variant:za.BASIC,data:n,...m})}})()})}function vi({showOptions:i,sortOptions:l,resultAs:r=di.cardBasic,ResultFieldMap:n,config:o={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:d=[],noSidebar:m=!1,customConnector:u,showPagingInfo:p,gridClasses:h,initialState:N={},showTextSearch:f=!0}){const E=Kt(),g=s(()=>{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 me(u||e)},[]),A=s(()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:!0,apiConnector:g,hasA11yNotifications:!0,searchQuery:{filters:o.filters||[],search_fields:o.searchFields||{},result_fields:o.resultsFields||{},facets:o.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&&l&&l.length>0){const t=l[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,...N}}),[o]),[S,v]=c(!1),C=()=>{v(e=>!e)};return e(ue,{config:A,children:e(pe,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:s,setSearchTerm:c})=>e(a,{children:e(he,{children:e(Ni,{noSidebar:m,showSidebar:S,header:f&&e(ve,{view:t=>e(hi,{...t,wasSearched:s,placeholder:o.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(Pe,{onClick:C,icon:"mdi:close",children:E?.UI?.HIDE_FILTERS})}),s&&l&&e(ge,{label:"Sort by",sortOptions:l,view:ci}),d?.map(({field:t,label:a,view:i})=>e(Se,{field:t,label:a,view:i},t))]}),bodyContent:e(Ae,{shouldTrackClickThrough:!1,resultView:t=>e(Si,{...t,as:r,cardMap:n}),className:"list-none p-0 m-0",view:t=>e(fi,{...t,gridClasses:h})}),bodyHeader:t(a,{children:[s&&p&&e(fe,{view:pi}),s&&i&&e(Ee,{view:ui,options:i}),s&&l&&m&&e(ge,{label:"Sort by",sortOptions:l,view:ci}),s&&!m&&e("div",{className:"block md:hidden",children:e(Pe,{rounded:!0,onClick:C,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e(Ne,{view:mi})})})})})})}function Ci({className:a,label:i,onChange:l,options:r}){const n=r.map(e=>({value:e.value,label:`${e.value} (${e.count})`}));return t("fieldset",{className:N("m-0 p-0 mt-4 mb-2 border-none",a),children:[e(at,{className:"text-sm",transform:Fe.UPPERCASE,children:i}),e(la,{id:i,options:n,onChange:e=>{console.debug("SingleSelectFacet onChange",e.target.value),l(e.target.value)}})]})}function Ii({className:a,label:i,onRemove:l,onSelect:r,options:n}){const s=n.filter(e=>e.selected).map(e=>e.value)[0];return e("fieldset",{className:N("m-0 p-0 mt-4 mb-2 border-none",a),children:t("div",{children:[e(at,{transform:Fe.UPPERCASE,children:i}),t("ul",{className:"ul list-none p-0",children:[s&&t("li",{className:"m-0 flex justify-between items-center flex-1",children:[Ei(s),e("span",{className:"ml-1 px-1",children:e(Pe,{onClick:()=>l(s),size:we.SMALL,rounded:!0,children:e(ye,{name:"mdi:close"})})})]}),!s&&n.map(a=>{const l=Ei(a.value);return t("li",{className:"m-0 flex justify-between",children:[e("a",{className:"no-underline visited:text-body-text","data-transaction-name":`facet - ${i}`,href:"/",onClick:e=>{e.preventDefault(),r(a.value)},children:e("label",{className:"label pl-0 leading-none text-body-text dark:text-body-text-dark",children:l})}),e(We,{as:He.SPAN,size:Ge.MEDIUM,children:a.count.toLocaleString("en")})]},l)})]})]})})}function bi({className:i,label:l,onMoreClick:r,onRemove:n,onSelect:s,options:o,showMore:d,showSearch:c,onSearch:m,searchPlaceholder:u}){return o?t("fieldset",{className:N("m-0 p-0 mt-4 mb-2 border-none",i),children:[e(at,{className:"text-sm",transform:Fe.UPPERCASE,children:l}),c&&e("div",{className:"mt-1",children:e(ut,{type:mt.SEARCH,placeholder:u||"Search",onChange:e=>{m(e.target.value)}})}),t("div",{className:"my-4",children:[o?.length<1&&e("div",{children:"No matching options"}),o?.map(a=>{const i=a.selected,r=a.value,o=Ei(r);return t("div",{className:"flex justify-between pb-2",children:[e(ke,{id:`facet_${l}${o}`,"data-transaction-name":`facet - ${l}`,checked:i,onChange:()=>i?n(r):s(r),label:o}),e(We,{as:He.SPAN,size:Ge.SMALL,children:a.count.toLocaleString("en")})]},o)})]}),d&&e(Pe,{size:we.SMALL,variant:Le.TERTIARY,onClick:r,"aria-label":"Show more options",children:"+ More"})]}):e(a,{children:"Options required"})}oi.displayName="FullContentBackgroundImage",function(e){e.cardBasic="cardBasic",e.cardMedia="cardMedia",e.cardVideo="cardVideo"}(di||(di={})),ci.displayName="Sorting",mi.displayName="Paging",ui.displayName="ResultsPerPage",pi.displayName="PagingInfo",hi.displayName="SearchBox",Ni.displayName="Layout",fi.displayName="Results",Si.displayName="Result",Ci.displayName="SingleSelectFacet",Ii.displayName="SingleLinksFacet",bi.displayName="MultiCheckboxFacet";const Ti=({handleSubmit:t})=>{const a=Kt();return e("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e(aa,{onSubmit:t,submit:a.FORMS.RESET_PASSWORD_FORM.SUBMIT,children:e(ra,{name:"password",autoComplete:"new-password",type:ia.PASSWORD,label:a.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:Sa})})})};Ti.displayName="ResetPasswordForm";const Ri=({handleSubmit:a})=>{const i=Kt();return e("div",{"data-testid":"ResetPasswordAuthForm",className:"form-wrapper",children:t(aa,{onSubmit:a,submit:i.FORMS.RESET_PASSWORD_FORM.SUBMIT,children:[e(ra,{name:"current-password",autoComplete:"current-password",type:ia.PASSWORD,label:i.FORMS.RESET_PASSWORD_FORM_AUTH.CURRENT_PASSWORD,required:!0,validations:Sa}),e(ra,{name:"new-password",autoComplete:"new-password",type:ia.PASSWORD,label:i.FORMS.RESET_PASSWORD_FORM_AUTH.NEW_PASSWORD,required:!0,validations:Sa})]})})};Ri.displayName="ResetPasswordAuthForm";const Oi=({testID:a,initialValues:i,handleSubmit:l,avatarUpdateCallback:r})=>{const n=Kt();return e("div",{"data-testid":a||'"ProfileForm"',className:"form-wrapper",children:t(aa,{onSubmit:l,submit:n.FORMS.PROFILE_FORM.SUBMIT,initialValues:i,children:[e("div",{className:"mb-4 items-center justify-center flex",children:e(ht,{name:"avatar",initValue:i?.picture,fileUpdateCallback:r})}),e(ra,{name:"picture",type:ia.HIDDEN}),e(ra,{name:"firstName",type:ia.TEXT,label:n.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e(ra,{name:"lastName",type:ia.TEXT,label:n.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e(ra,{name:"email",type:ia.EMAIL,label:n.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:Aa})]})})};Oi.displayName="ProfileForm";const yi=({testID:a,title:i,image:l,user:r,logoutCallback:n,resetPasswordCallback:s,menu:o,shareURL:d})=>{const c=Kt();return t(Za,{"data-testid":a||"AccountScreen",image:l,children:[i&&e(ta,{text:i}),t("div",{children:[e("div",{className:"flex items-center justify-center",children:e(ht,{initValue:r?.profile?.picture,isEditable:!1})}),o&&e("div",{children:e(rt,{className:"flex items-center flex-col justify-center gap-2",children:o?.map((t,a)=>e(st,{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:[d&&t("div",{className:"flex items-center flex-col justify-center gap-1",children:[e(Je,{tag:Xe.H5,flush:!0,children:c.UI.SHARE}),t("div",{className:"flex gap-2",children:[e(G,{url:d,children:e(ye,{name:"mdi:facebook"})}),e(H,{url:d,children:e(ye,{name:"mdi:twitter"})}),e(V,{url:d,children:e(ye,{name:"mdi:linkedin"})}),e(W,{url:d,children:e(ye,{name:"mdi:whatsapp"})})]})]}),t("div",{className:"flex flex-col gap-2",children:[s&&e(Pe,{onClick:s,icon:"mdi:lock-reset",children:c?.UI.RESET_PASSWORD}),n&&e(Pe,{onClick:n,icon:"mdi:logout",children:c?.UI.LOGOUT})]})]})]})]})};yi.displayName="AccountScreen";const xi=({testID:a,title:i,image:l,formProps:r})=>t(Za,{"data-testid":a||"AuthScreen",image:l,children:[i&&e(ta,{text:i}),e("div",{className:"flex justify-center",children:e(Ta,{...r})})]});xi.displayName="AuthScreen";const _i=({testID:a,title:i,image:l,data:r,onPressCallback:n,isLoading:s,noDataMessage:o})=>{const d=Kt();return t(Za,{"data-testid":a||"CardGridScreen",image:l,children:[i&&e(ta,{text:i}),t("div",{children:[s&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),r&&e(Ka,{data:r,onPressCallback:n}),!r&&!s&&e("div",{children:e(We,{children:o||d?.UI?.NO_DATA})})]})]})};_i.displayName="CardGridScreen";const Li=({testID:a,title:i,image:l,searchProps:r})=>t(Za,{"data-testid":a||"CatalogueScreen",image:l,children:[i&&e(ta,{text:i}),e("div",{children:e(vi,{...r})})]});Li.displayName="CatalogueScreen";const wi=({testID:a,title:i,image:l,data:r,isLoading:n,onPressCallback:s})=>t(Za,{"data-testid":a||"ChallengeLibraryScreen",image:l,children:[i&&e(ta,{text:i}),n&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),r&&e("div",{children:e(Ka,{data:r,onPressCallback:s})})]});wi.displayName="ChallengeLibraryScreen";const Di="MMMM dd, yyyy",Pi="HH:mm",ki=({testID:a,title:i,image:l,created:r=0,body:n,days:o,puchaseLabel:d,hasAccess:c=!1,onPressCallback:m,purchaseCallback:u,isLoading:p})=>{const h=Kt(),N=s(()=>Te(new Date(1e3*r),Di),[r]);return t(Za,{"data-testid":a||"ChallengeScreen",image:l,children:[t("div",{children:[i&&e(ta,{text:i}),t(at,{children:[h.UI.CREATED,": ",N]}),!c&&t("div",{className:"flex flex-col gap-2 mb-4",children:[e(We,{bold:!0,className:"mb-0",children:h.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e(We,{className:"mb-0",children:h.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e("div",{children:e(Pe,{variant:Le.PRIMARY,onClick:u,isLoading:p,disabled:p,children:d})}),t(We,{size:Ge.SMALL,className:"mb-0",children:["** ",h.GLOBAL.SCREENS.CHALLENGE.PAYMENT_NOTE]})]})]}),e("div",{children:n&&e(vt,{data:n})}),e("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:o?.map(t=>e(ea,{variant:za.MEDIA,data:{id:t.id,title:t.title,image:{src:t.image,alt:t.title},raised:!0,onClick:c?()=>m(t.video):void 0,accessRestriced:!c}},t.id))})]})};ki.displayName="ChallengeScreen";const Mi=({testID:a,title:i,image:l,updated:r,content:n,isLoading:s,isLayoutMinimal:o=!1})=>{const d=Kt(),c=r?Te(new Date(1e3*r),"MMMM dd, yyyy HH:mm"):void 0;return t(Za,{"data-testid":a||"ContentScreen",image:l,showHeader:!o,showFooter:!o,children:[s&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),i&&e(ta,{text:i}),r&&e("div",{children:t(We,{children:[d?.UI?.UPDATED,": ",c]})}),n&&e("div",{children:e(vt,{data:n})})]})};Mi.displayName="ContentScreen";const Ui=({testID:a,title:i,image:l,user:r,latestData:n,recentdata:s,stats:o,promo:d,news:c,statsIsLoading:m,promosIsLoading:u,dataIsLoading:p,handleLatestDataPress:h,handleRecentDataPress:N,handleNewsDataPress:f,subscriptionStatus:E})=>{const g=Kt(),A={loop:!1,showArrows:!0,slidesPerView:{base:1,sm:2,md:3,lg:4}};return t(Za,{"data-testid":a||"DashboardScreen",image:l,children:[i&&e(ta,{text:i}),"none"===E&&e("div",{className:"mb-6",children:e(Nt,{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"===E&&e("div",{className:"mb-6",children:e(Nt,{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(We,{children:[g?.UI?.WELCOME," ",r?.name]})}),m&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),!m&&o&&t("div",{className:"mb-8",children:[e(Je,{tag:Xe.H4,children:g?.UI?.ACTIVITY}),e("div",{className:"flex flex-row gap-4 flex-wrap",children:o.map((t,a)=>e("div",{children:e(ea,{variant:t.variant,data:t.data})},`${t.data.id}-${a}`))})]}),p&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),!p&&n&&t("div",{children:[e(Je,{tag:Xe.H4,children:g?.UI?.LATEST_WORKOUTS}),e("div",{children:e(ka,{data:n,onPressCallback:h,carouselOptions:A})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),!u&&d&&t("div",{children:[e(Je,{tag:Xe.H4,flush:!0,children:g?.UI?.OUR_FEATURE}),e(Ga,{...d,withBg:!0,spacing:Ma.ATOM})]}),p&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),!p&&s&&t("div",{children:[e(Je,{tag:Xe.H4,children:g?.UI?.RECENTLY_ADDED}),e("div",{children:e(ka,{data:s,onPressCallback:N,carouselOptions:A})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),!u&&c&&t("div",{children:[e(Je,{tag:Xe.H4,children:g?.UI?.WHATS_NEW}),e("div",{children:e(ka,{data:c,onPressCallback:f,carouselOptions:A})})]})]})};Ui.displayName="DashboardScreen";const Fi=({testID:a,title:i,image:l,data:r,isLoading:n})=>t(Za,{"data-testid":a||"FAQScreen",image:l,children:[i&&e(ta,{text:i}),!r&&n&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),r&&e(ei,{data:r?.map(e=>({title:e.title||"",content:e.answer||""}))})]});Fi.displayName="FAQScreen";const Bi=({testID:a,image:i,panelIntroProps:l,panelVideoProps:r,panelFeatureProps:n,panelCardsProps:s,panelHerosProps:o,panelSubscriptionsProps:d,panelTestimonialsProps:c,panelDataCardsProps:m,panelProductProps:u,panelCustomProps:p,isFlush:h=!0})=>t(Za,{"data-testid":a||"HomeScreen",image:i,isFlush:h,children:[r&&e(Wa,{...r}),t(ma,{children:[l&&e(Ya,{...l}),n&&e(Fa,{...n}),s&&e(Ua,{...s}),o?.[0]&&e(Ga,{...o?.[0]}),d&&e(Ua,{...d}),c&&e(Ua,{...c}),o?.slice(1).map(t=>e(Ga,{...t},t.title)),m&&e(Ua,{...m}),u&&e(Ha,{...u}),p&&e(Va,{...p})]})]});Bi.displayName="HomeScreen";const Gi=({testID:a,title:i})=>{const l=Kt();return e(Za,{"data-testid":a||"LogoutScreen",children:t("div",{children:[i&&e(ta,{text:i}),e(We,{children:l?.UI?.PLEASE_WAIT}),e(De,{})]})})};Gi.displayName="LogoutScreen";const Hi=({testID:a,title:i,image:l,menu:r,isLoading:n=!1})=>t(Za,{"data-testid":a||"MenuScreen",image:l,children:[i&&e(ta,{text:i}),n&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),r&&e(rt,{children:r.map(t=>e(st,{as:"div",icon:t.icon,onClick:t.onPress,title:t.title},t.title))})]});Hi.displayName="MenuScreen";const Wi=({testID:a,title:i,message:l})=>{const r=Kt();return t(Za,{"data-testid":a||"NotFound",children:[e(ta,{text:i||r?.UI?.PAGE_NOT_FOUND_OOPS}),e(We,{children:l||r?.UI?.PAGE_NOT_FOUND_MESSAGE_OOPS}),e(Je,{tag:Xe.H5,flush:!0,children:t("span",{className:"flex flex-row gap-2 items-center",children:[e(ye,{name:"mdi:lightbulb"})," ",r?.UI?.WHAT_CAN_YOU_DO]})}),t(rt,{as:lt.UL,children:[e(st,{as:"li",children:r?.UI?.DOUBLE_CHECK_URL}),e(st,{as:"li",children:r?.UI?.RETURN_TO_HOMEPAGE}),t(st,{as:"li",children:[r?.UI?.EXPLORE_SITE,"."]})]}),e(We,{children:r?.UI?.STILL_NEED_HELP})]})};Wi.displayName="NotFoundScreen";const Yi=({testID:a,title:i,image:l,handleSubmitCallback:r})=>t(Za,{"data-testid":a||'"PasswordReset"',image:l,children:[i&&e(ta,{text:i}),e(Ti,{handleSubmit:r})]});Yi.displayName="PasswordResetScreen";const Vi=({testID:a,title:i,image:l,handleSubmitCallback:r})=>t(Za,{"data-testid":a||"PasswordResetAuthScreen",image:l,children:[i&&e(ta,{text:i}),e(Ri,{handleSubmit:r})]});Vi.displayName="PasswordResetAuthScreen";const zi=({testID:a,title:i,image:l,user:r,handleProfileSubmit:n,profilePicUpdateCallback:s})=>t(Za,{"data-testid":a||"ProfileScreen",image:l,children:[i&&e(ta,{text:i}),e(Oi,{initialValues:r?.profile,handleSubmit:n,avatarUpdateCallback:s})]});zi.displayName="ProfileScreen";const ji=({testID:a,end:i,live:r,start:n,title:o,video:d})=>{const c=Kt(),m=s(()=>{if(n)return Te(new Date(1e3*n),Di)},[n]),u=s(()=>{if(n)return Te(new Date(1e3*n),Pi)},[n]),p=s(()=>{if(i)return Te(new Date(1e3*i),Pi)},[i]),[h,N]=l.useState(!1);return t("div",{"data-testid":a||'"ScheduleItem"',className:"flex flex-col md:flex-col gap-4",children:[e(Je,{tag:Xe.H4,children:o}),r&&!h&&e("div",{className:"flex-1",children:e(Ba,{url:r,isYoutube:!0})}),m&&u&&p&&t("div",{children:[e(We,{className:"mb-0",children:c?.UI?.TODAYS_ITEMS}),t(at,{children:[m,": ",u," - ",p]})]}),d&&e("div",{className:"relative my-4",children:e(Pe,{onClick:()=>N(!0),icon:"mdi:video",children:c?.UI?.LAUNCH_PLAYBACK})}),h&&d&&e(si,{modalOpen:h,onCloseCallback:()=>N(!1),videoProps:{sources:[{src:d}],isModal:!0}})]})};ji.displayName="ScheduleItem";const Ki=({testID:a,scheduleItems:i,hasAccess:l})=>{const r=Kt(),[n,o]=c(new Date),d=s(()=>(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),l=Re(a),r=`${l.getFullYear()}-${String(l.getMonth()+1).padStart(2,"0")}-${String(l.getDate()).padStart(2,"0")}`;t.set(r,{...i,weekday:e})}else console.log(` ✗ No start timestamp for ${e}`)}})}),t):t})(i),[i]),m=s(()=>Array.from(d.keys()).map(e=>new Date(e)),[d]),u=h(e=>{if(!e)return null;const t=Re(e),a=`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`;return d.get(a)||null},[d]),p=s(()=>u(n),[n,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(Je,{tag:Xe.H5,transform:Ze.UPPERCASE,className:"mb-4",children:"Select a Date"}),e(Ve,{selected:n,onSelect:o,datesWithContent:m})]}),t("div",{children:[!l&&t("div",{children:[e(Je,{tag:Xe.H2,children:r?.UI?.ACCESS_RESTRICTED}),e(We,{children:r?.UI?.UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE})]}),l&&p&&e(ji,{title:p.title,live:p.live,start:p.start,end:p.end,video:p.video}),l&&!p&&n&&t("div",{children:[e(Je,{tag:Xe.H4,children:r?.UI?.NO_CLASS}),e(We,{children:"No class scheduled for this date."})]})]})]})};Ki.displayName="Schedule";const qi=({testID:a,title:i,image:l,scheduleData:r,isLoading:n=!1})=>t(Za,{"data-testid":a||"ScheduleScreen",image:l,children:[i&&e(ta,{text:i}),!r&&n&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),r&&e("div",{children:e(Ki,{...r})})]});qi.displayName="ScheduleScreen";const $i=({testID:a,title:i,image:l,subscriptionCallback:r,subscriptionManagerProps:n})=>{const s=Kt();return t(Za,{"data-testid":a||"SubscriptionScreen",image:l,children:[i&&e(ta,{text:i}),n&&e("div",{children:e(ti,{...n})}),r&&e("div",{className:"flex items-center justify-center",children:t("div",{className:"flex flex-col gap-4 items-center",children:[e(We,{children:s?.UI?.NEED_HELP_WITH_SUBSCRIPTION}),e("div",{children:e(Pe,{icon:"mdi:help",variant:Le.SECONDARY,onClick:r,children:s?.UI?.CONTACT_SUPPORT})})]})})]})};$i.displayName="SubscriptionScreen";const Xi=({testID:i,id:r,title:n,image:o,description:d,created:c=0,duration:m="PT0M",level:u,section:p,video:h,videoType:N="application/x-mpegURL",category:f,type:E,likeCallback:g,completedCallback:A,favouriteCallback:S,isLiked:v,isFavourite:C,relatedWorkouts:I,hasActiveSubscription:b,htmlDetails:T,noSubActionCallback:R,numCompleted:O="0"})=>{const y=Kt(),[x,_]=l.useState(!1),L=s(()=>Te(new Date(1e3*c),Di),[c]),w=s(()=>wt(m),[m]);return t(Za,{"data-testid":i||"WorkoutScreen",image:o,children:[t("div",{children:[n&&e(ta,{text:n}),e("div",{children:t(at,{children:[y.UI.CREATED,": ",L]})}),e("div",{children:t(at,{children:[y.UI.DURATION,": ",w]})})]}),!b&&t("div",{children:[e(Je,{tag:Xe.H4,children:y.UI.NO_ACTIVE_SUBSCRIPTION}),e(We,{children:y?.UI?.NO_SUBSCRIPTION_DETAILS}),R&&e(Pe,{rounded:!0,onClick:R,icon:"mdi:arrow-right-circle-outline",children:y.UI.SUBSCRIBE})]}),e("div",{children:e(Pe,{onClick:()=>{_(!0)},icon:"mdi:play",iconFirst:!0,disabled:!b,children:y.UI.START_WORKOUT})}),t("div",{className:"flex gap-2",children:[g&&e("div",{children:e(Pe,{onClick:()=>{r&&g&&"function"==typeof g&&(g(r),J.info(v?y.UI.REMOVED_LIKE:y.UI.ADDED_LIKE))},icon:v?"mdi:heart":"mdi:heart-outline",disabled:!b,rounded:!0})}),S&&e("div",{children:e(Pe,{onClick:()=>{r&&S&&"function"==typeof S&&(S(r),J.info(C?y.UI.REMOVED_FAVORITE:y.UI.ADDED_FAVORITE))},icon:C?"mdi:bookmark":"mdi:bookmark-outline",disabled:!b,rounded:!0})}),A&&e("div",{children:e(Pe,{rounded:!0,onClick:()=>{r&&A&&"function"==typeof A&&(A(r),J.info(y.UI.MARKED_COMPLETE))},icon:"mdi:plus",disabled:!b,children:O})})]}),!T&&d&&e("div",{children:e(We,{children:d})}),T&&d&&e("div",{children:e(vt,{data:d})}),t("div",{className:"flex gap-4 flex-wrap",children:[u&&t(at,{children:[y.UI.LEVEL,": ",u]}),p&&t(at,{children:[y.UI.SECTION,": ",p]}),f&&t(at,{children:[y.UI.CATEGORY,": ",f]}),E&&t(at,{children:[y.UI.TYPE,": ",E]})]}),I&&e(a,{children:e(ma,{isNarrow:!0,padded:!0,children:e("div",{children:e(Je,{children:y?.UI?.RELATED})})})}),e("div",{children:x&&e(si,{modalOpen:x,onCloseCallback:()=>_(!1),videoProps:{sources:[{src:h,type:N}],isModal:!0}})})]})};Xi.displayName="WorkoutScreen";var Qi={};export{ei as Accordion,yi as AccountScreen,Ht as AmplifyContext,Wt as AmplifyProvider,Oe as AnimationCounter,pa as AnimationSet1,Ft as AppContext,Bt as AppProvider,xi as AuthScreen,Ta as Authenticator,ht as Avatar,we as BTN_SIZES,_e as BTN_TYPES,Le as BTN_VARIANTS,Nt as Banner,xe as Blockquote,Pe as Button,ft as ButtonGroup,Ue as COPY_ALIGN,Be as COPY_CONTEXTUAL,Ge as COPY_SIZE,He as COPY_TAG,Fe as COPY_TRANSFORM,ai as CPL_SPACING,li as CRL_SIZE,Ve as Calendar,ea as Card,Ka as CardGrid,_i as CardGridScreen,za as CardVariant,ka as Carousel,$a as Cart,Vt as CartProvider,Li as CatalogueScreen,wi as ChallengeLibraryScreen,ki as ChallengeScreen,ke as Checkbox,Ye as Chip,qe as Collapsible,ma as Container,ii as ContentPageLayout,ri as ContentRowsLayout,Mi as ContentScreen,We as Copy,Ui as DashboardScreen,ta as DisplayHeading,Fi as FAQScreen,ia as FIELD_TYPES,$e as FileUpload,Qa as Footer,ba as ForgotPasswordForm,aa as Form,ra as FormField,la as FormSelect,oi as FullContentBackgroundImage,si as FullScreenVideoModal,Qe as HEADING_ALIGN,Xe as HEADING_TAGS,Ze as HEADING_TRANSFORM,Xa as Header,Je as Heading,ua as Hero,Bi as HomeScreen,et as Hr,vt as HtmlContent,ye as Icon,tt as Image,Ot as InvalidDurationError,at as Label,Me as Link,rt as List,st as ListItem,lt as ListTag,De as Loader,Ca as LoginForm,nt as Logo,Gi as LogoutScreen,da as Menu,Hi as MenuScreen,bi as MultiCheckboxFacet,yt as MultipleFractionsError,Wi as NotFoundScreen,ot as Notice,ni as OTPInput,Ua as PanelCards,Va as PanelCustom,Fa as PanelFeature,Ga as PanelHero,Ya as PanelIntro,Ha as PanelProduct,ja as PanelScroller,Wa as PanelVideo,Vi as PasswordResetAuthScreen,Yi as PasswordResetScreen,Oi as ProfileForm,zi as ProfileScreen,qa as PromoCodeForm,dt as Radio,Ia as RegisterForm,Ri as ResetPasswordAuthForm,Ti as ResetPasswordForm,di as ResultAsTypes,Ma as SPACING,pt as STRINGS_EN,qi as ScheduleScreen,Za as Screen,vi as Search,na as Share,Ii as SingleLinksFacet,Ci as SingleSelectFacet,ti as SubscriptionManager,$i as SubscriptionScreen,ct as Switch,sa as Tabs,ut as TextInput,kt as ThemeContext,Mt as ThemeProvider,it as Variants,Ba as Video,oa as VisitUs,Xi as WorkoutScreen,_t as cn,Pt as defaultTheme,wt as formatDuration,Dt as getRandomImageFromArray,xt as parseDuration,Qi as theme,Lt as truncateString,Gt as useAppContext,zt as useCartContext,Kt as useLanguage,qt as useTheme,Ut as useThemeContext,Aa as validEmail,Sa as validPassword,va as validatePhoneNumber};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import*as i from"react";import l,{useRef as r,forwardRef as n,useMemo as s,createElement as o,useEffect as d,useState as c,useContext as m,createContext as u,useImperativeHandle as p,useCallback as h}from"react";import N from"classnames";import{useInView as f,useIsomorphicLayoutEffect as E,animate as g,motionValue as A,motion as S,useAnimation as v}from"framer-motion";import{Icon as C}from"@iconify/react";import{twMerge as I}from"tailwind-merge";import{getDefaultClassNames as b,DayPicker as T}from"react-day-picker";import*as R from"@radix-ui/react-collapsible";import O,{attributesToProps as y,domToReact as x}from"html-react-parser";import{parse as _}from"iso8601-duration";import{clsx as L}from"clsx";import{Amplify as w,Hub as D,Auth as P}from"aws-amplify";import k from"react-hover-video-player";import{useForm as M,FormProvider as U,useFormContext as F,Controller as B}from"react-hook-form";import{FacebookShareButton as G,TwitterShareButton as H,WhatsappShareButton as W,EmailShareButton as Y,LinkedinShareButton as V}from"react-share";import{Tabs as z,TabList as j,Tab as K,TabPanel as q}from"react-tabs";import{CognitoHostedUIIdentityProvider as $}from"@aws-amplify/auth";import{isPossiblePhoneNumber as X,isValidPhoneNumber as Q,validatePhoneNumberLength as Z}from"libphonenumber-js";import{toast as J}from"react-toastify";import ee from"embla-carousel-react";import{ArrowLeft as te,ArrowRight as ae}from"lucide-react";import{Slot as ie}from"@radix-ui/react-slot";import{cva as le}from"class-variance-authority";import re from"react-player/youtube";import{isMobileOnly as ne}from"react-device-detect";import se from"video.js";import{confirmAlert as oe}from"react-confirm-alert";import de from"react-otp-input";import ce from"react-modal";import me from"@elastic/search-ui-elasticsearch-connector";import{SearchProvider as ue,WithSearch as pe,ErrorBoundary as he,Paging as Ne,PagingInfo as fe,ResultsPerPage as Ee,Sorting as ge,Results as Ae,Facet as Se,SearchBox as ve}from"@elastic/react-search-ui";import Ce from"rc-pagination";import Ie from"rc-pagination/lib/locale/en_US";import be from"he";import{format as Te,startOfDay as Re}from"date-fns";const Oe=({testID:t,from:a,to:i,animationOptions:l,className:n,numDecimals:s=0})=>{const o=r(null),d=f(o,{once:!0});return E(()=>{const e=o.current;if(!e||!d)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=i.toString());e.textContent=a.toString();const t=g(a,i,{duration:1,ease:"easeOut",...l,onUpdate:t=>{e.textContent=t.toFixed(s)}});return()=>{t.stop()}},[o,d,a,i,l]),e("span",{ref:o,"data-testid":t||"AnimationCounter",className:N("relative",n)})};Oe.displayName="AnimationCounter";const ye=({name:t,size:a=24,color:i,id:l,className:r,testID:n})=>e(C,{"data-testid":n||l||"Icon",icon:t,width:a,height:a,color:i||"currentColor",className:r});ye.displayName="Icon";const xe=({text:a,citation:i,className:l,citationAttribute:r,showIcon:n=!0})=>{const s=N("text-xl italic font-bold",l);return t("blockquote",{"data-testid":"Blockquote",className:s,children:[n&&e(ye,{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}),r&&e("cite",{className:"pl-3 text-sm font-light",children:r})]})})]})};var _e,Le,we;xe.displayName="Blockquote",function(e){e.SUBMIT="submit",e.RESET="reset",e.BUTTON="button"}(_e||(_e={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link"}(Le||(Le={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(we||(we={}));const De=({color:a,size:i=8,thickness:l=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:l}),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..."})]})});De.displayName="Loader";const Pe=({variant:i=Le.PRIMARY,size:l=we.MEDIUM,type:r=_e.BUTTON,wide:n=!1,rounded:s=!1,raised:o=!1,uppercase:d,children:c,id:m,disabled:u,ariaLabel:p,onClick:h,icon:f,external:E,iconFirst:g,outline:A,testID:S,className:v,isLoading:C,offsetFont:b=!1})=>{const T={small:{x:c&&!s?n?"px-5":"px-3":c?"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:c&&!s?n?"px-8":"px-4":c?"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:c&&!s?n?"px-11":"px-5":c?"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},R=I(N("button rounded-btnBorderRadius",{shadow:o},{uppercase:d},{"auto-cols-auto grid-cols-2 gap-4":C||f||E},{"flex-row-reverse":g},{"opacity-50 cursor-not-allowed":u},`${T?.[l]?.y} ${T?.[l]?.x} ${T?.[l]?.text}`,{"text-white border-primary bg-primary hover:bg-primary-darker":i===Le.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":i===Le.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":i===Le.TERTIARY},{"border-primary bg-transparent text-body-text dark:text-body-text-dark hover:bg-opacity-30":A},{"border-primary-300 dark:border-primary-400 hover:border-primary-400 dark:hover:border-primary-500":A},{"px-0 text-body-text dark:text-body-text-dark border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert":i===Le.LINK},{"rounded-full leading-none":s},v)),O=N(T?.[l]?.icon);return e("button",{id:m,"data-testid":S||m||"Button",onClick:h,className:R,type:r,disabled:u,"aria-label":p,role:"button",children:t(a,{children:[b?e("span",{className:"brand-font-offset",children:c}):c,f&&!E&&e("span",{className:"flex items-center",children:e(ye,{name:f,className:O})}),E&&e("span",{className:"flex items-center",children:e(ye,{name:"carbon:launch",className:O})}),C&&e("div",{className:"flex items-center",children:e(De,{size:4})})]})})};Pe.displayName="Button";const ke=n(function({id:a,label:i,required:l,className:r,disabled:n,...s},o){return t("div",{"data-testid":"Checkbox",className:N("flex items-center",r),children:[t("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e("input",{id:a,ref:o,disabled:n,type:"checkbox",className:"form-item checkbox m-0 appearance-none peer h-full w-full shrink-0 focus:ring-2",required:l,...s}),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(ye,{name:"mdi:check-bold",size:12})})]}),i&&e("label",{className:"label pl-2 leading-none text-sm text-body-text dark:text-body-text-dark",htmlFor:a,children:i})]})});ke.displayName="Checkbox";const Me=({href:a,children:i,onClick:r=()=>{},history:n,target:s,id:o,testID:d,className:c,prefetch:m,hideExternalIcon:u=!1})=>{const p=N("link cursor-pointer no-underline",c);if(!u&&a&&a.startsWith("http"))return t("span",{className:"inline-flex flex-row gap-2 items-center",children:[e("a",{"data-testid":d||o||"Link",className:N(p),href:a,target:"_blank",rel:"noopener noreferrer",children:i}),e(ye,{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 l.createElement(e,{href:a||"#",onClick:r,"data-testid":d||o||"Link",className:p,target:s||"_self",prefetch:m||!1},i)}catch{return e("a",{"data-testid":d||o||"Link",className:p,href:a,onClick:e=>{r?r(e):!0!==e.defaultPrevented&&n&&a&&(e.preventDefault(),n.push(a))},target:s,children:i})}};var Ue,Fe,Be,Ge,He;Me.displayName="Link",function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(Ue||(Ue={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(Fe||(Fe={})),function(e){e.INVERTED="inverted",e.MUTED="muted"}(Be||(Be={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.INTRO="intro"}(Ge||(Ge={})),function(e){e.P="p",e.SPAN="span",e.DIV="div",e.SMALL="small"}(He||(He={}));const We=({children:t,as:a=He.P,size:i,bold:l,align:r,transform:n,underlined:s,id:o,className:d,testID:c})=>{const m=N({[`text-${r}`]:r},{"font-bold":l},{"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:s},n,d);return e(a,{"data-testid":c||o||"Copy",className:I(m),children:t})};We.displayName="Copy";const Ye=({testID:a,text:i,outline:l,rounded:r,variant:n,size:o="medium",icon:d,iconFirst:c,onClick:m})=>{const u=s(()=>{switch(o){case"small":return{iconSize:16,copySize:Ge.SMALL};case"medium":default:return{iconSize:20,copySize:Ge.MEDIUM};case"large":return{iconSize:28,copySize:Ge.LARGE}}},[o]),p=I(N("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":l},{"rounded-full":r},{"flex-row-reverse":c},{"bg-primary text-white":"primary"===n},{"bg-secondary text-white":"secondary"===n},{"bg-tertiary text-white":"tertiary"===n},{"bg-info text-white":"info"===n},{"bg-success text-white":"success"===n},{"bg-warning text-white":"warning"===n},{"bg-error text-white":"error"===n},{"py-1 px-3":"small"===o},{"py-2 px-4":"medium"===o},{"py-3 px-6":"large"===o}));return m&&"function"==typeof m?t(Me,{"data-testid":a||"Chip",className:p,onClick:m,children:[e(We,{className:"mb-0",as:He.SPAN,size:u.copySize,children:i}),d&&e("div",{className:"flex items-center justify-center",children:e(ye,{name:d,size:u.iconSize})})]}):t("div",{"data-testid":a||"Chip",className:p,children:[e(We,{className:"mb-0",as:He.SPAN,size:u.copySize,children:i}),d&&e("div",{className:"flex items-center justify-center",children:e(ye,{name:d,size:u.iconSize})})]})};Ye.displayName="Chip";const Ve=({testID:t,className:a,classNames:i,selected:l,onSelect:r,datesWithContent:n=[],disabled:s,showOutsideDays:o=!0,...d})=>{const c=b();return e("div",{"data-testid":t||"Calendar",className:"flex justify-center",children:e(T,{mode:"single",selected:l,onSelect:r,disabled:s,showOutsideDays:o,modifiers:{hasContent:n},modifiersClassNames:{hasContent:"has-content-date"},className:I("p-3 w-fit",a),classNames:{root:I("w-fit",c.root),months:I("relative flex flex-col gap-4 md:flex-row",c.months),month:I("flex w-full flex-col gap-4",c.month),nav:I("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",c.nav),button_previous:I("inline-flex items-center justify-center rounded-md h-9 w-9 bg-transparent p-0 opacity-50 hover:opacity-100 transition-opacity",c.button_previous),button_next:I("inline-flex items-center justify-center rounded-md h-9 w-9 bg-transparent p-0 opacity-50 hover:opacity-100 transition-opacity",c.button_next),month_caption:I("flex h-9 w-full items-center justify-center px-9",c.month_caption),caption_label:I("select-none font-medium text-sm",c.caption_label),weekdays:I("flex",c.weekdays),weekday:I("text-grey-600 dark:text-grey-400 flex-1 select-none rounded-md text-[0.8rem] font-normal",c.weekday),week:I("mt-2 flex w-full",c.week),day:I(c.day,'relative aspect-square h-full w-full select-none p-0 text-center [&[data-selected="true"]>button]:border-grey-800'),day_button:I(c.day_button,"h-9 w-9 p-0 font-normal inline-flex items-center justify-center rounded-md text-body-text dark:text-body-text-dark","hover:bg-grey-100 dark:hover:bg-grey-800 hover:text-body-text dark:hover:text-body-text-dark","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary","disabled:pointer-events-none disabled:opacity-50","data-[today=true]:bg-grey-100 data-[today=true]:dark:bg-grey-800"),outside:I("text-grey-400 dark:text-grey-600 opacity-50",c.outside),disabled:I("text-grey-400 dark:text-grey-600 opacity-50",c.disabled),hidden:I("invisible",c.hidden),...i},components:{Chevron:({orientation:t})=>e(ye,{name:"left"===t?"mdi:chevron-left":"mdi:chevron-right",className:"h-4 w-4"})},...d})})};Ve.displayName="Calendar";const ze=n(({className:t,testID:a,children:i,...l},r)=>e(R.Root,{ref:r,"data-testid":a||"Collapsible",className:I(N("collapsible-root",t)),...l,children:i}));ze.displayName="CollapsibleRoot";const je=n(({className:t,children:a,...i},l)=>e(R.Trigger,{ref:l,className:I(N(!t&&"collapsible-trigger","transition duration-500 ease-in-out",t)),...i,children:a}));je.displayName="CollapsibleTrigger";const Ke=n(({className:t,children:a,...i},l)=>e(R.Content,{ref:l,className:I(N("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}));Ke.displayName="CollapsibleContent";const qe={Root:ze,Trigger:je,Content:Ke},$e=l.forwardRef(function({id:t,name:a,required:i,disabled:l,className:r,onChangeCallback:n,onChange:s,...o},d){return e("div",{"data-testid":"FileUpload",className:r,children:e("input",{ref:d,className:N("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:l,required:i,name:a,id:t,onChange:e=>{n&&"function"==typeof n&&n(e),s&&"function"==typeof s&&s({target:{value:e.target.value,name:a}})},...o})})});var Xe,Qe,Ze;$e.displayName="FileUpload",function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5"}(Xe||(Xe={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(Qe||(Qe={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize",e.NORMAL_CASE="normal-case"}(Ze||(Ze={}));const Je=({children:t,tag:a=Xe.H2,transform:i,align:l,id:r,testID:n,flush:s,className:o,singleLine:d,bold:c=!0})=>{const m=(()=>{switch(a){case"h1":return"text-3xl md:text-4xl lg:text-5xl";case"h2":return"text-3xl md:text-4xl lg:text-4xl";case"h3":return"text-xl md:text-2xl lg:text-2xl";case"h4":return"text-lg md:text-lg lg:text-xl";case"h5":return"text-base md:text-base lg:text-lg";default:return"text-2xl md:text-2xl lg:text-4xl"}})(),u=a,p=N(`m-0 p-0 font-heading ${m}`,{"font-bold":c},{[`text-${l}`]:l},{"mb-2":!s},{"m-0":s},{"whitespace-nowrap text-ellipsis overflow-hidden":d},i,o);return e(u,{"data-testid":n||r||"Heading",className:I(p),children:t})};Je.displayName="Heading";const et=({size:t="small"})=>e("hr",{className:N("border-0 border-b border-body-text-dark dark:border-body-text-dark",{"mt-4 mb-4":"small"===t,"mt-8 mb-8":"medium"===t,"mt-16 mb-16 ":"large"===t})});et.displayName="Hr";const tt=({src:a,alt:i,title:l,caption:r,figure:n=!1,onLoad:s,id:d,className:c,sizes:m="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:u,...p})=>{try{const e=require("next/image").default;if(!e)throw new Error("Next.js Image not found");const t=!p.width;return o(e,{src:a,alt:i,title:l,fill:t,onLoad:s,className:c,...t?{sizes:m}:{},...p})}catch{const o=N("m-0"),m=I(N("w-full h-full",c));return n||r?t("figure",{"data-testid":u||d||"Image",className:o,children:[e("img",{onLoad:s,src:a,alt:i,title:l,className:m}),r&&e("figcaption",{children:r})]}):e("img",{"data-testid":u||d||"Image",onLoad:s,src:a,alt:i,title:l,className:m})}};tt.displayName="Image";const at=({children:t,id:a,transform:i,className:l})=>e("label",{"data-testid":"Label",className:I(N("label mb-2 text-body-text dark:text-body-text-dark",i,l)),htmlFor:a,children:t});var it,lt;at.displayName="Label",function(e){e.UNSTYLED="unstyled",e.INLINE="inline",e.SMALL="small",e.LARGE="large"}(it||(it={})),function(e){e.OL="ol",e.UL="ul",e.DL="dl",e.DIV="div",e.DT="dt",e.DD="dd",e.LI="li"}(lt||(lt={}));const rt=({variants:t,children:a,as:i=lt.UL,id:l,testID:r,className:n})=>{const s=t?t.map(e=>`list--${e}`):null;return e(i,{"data-testid":r||l||"List",className:N(s,n),children:a})};rt.displayName="List";const nt=({testID:t,logo:a,className:i,aspectRatioClass:l="aspect-[1/1]"})=>e("div",{"data-testid":t||"Logo",className:N("relative w-full",l,i),children:e(tt,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});nt.displayName="Logo";const st=({onClick:a,title:i,icon:l,children:r,as:n="li",id:s,testID:o,className:d})=>t(n,{"data-testid":o||s||"ListItem",className:N({"list-item":"div"!==n},d),children:[a&&t(Pe,{variant:Le.LINK,onClick:a,children:[t("div",{className:"",children:[l&&e("div",{children:e(ye,{name:l,size:24})}),i&&e("div",{children:e(Je,{flush:!0,tag:Xe.H4,singleLine:!0,children:i})}),r&&e("div",{children:r})]}),e("div",{children:e(ye,{name:"mdi:chevron-right",size:24})})]}),!a&&e("div",{className:"",children:r&&e("div",{children:r})})]});st.displayName="ListItem";const ot=({id:a,testID:i,title:l,text:r,icon:n,type:s,onCloseCallback:o,onClickCallback:d,actionText:c})=>{const m=N("p-4 rounded relative",{"bg-info text-white":"info"===s,"bg-success text-white":"success"===s,"bg-warning text-black":"warning"===s,"bg-error text-white":"error"===s});return e("div",{"data-testid":i||a||"Notice",className:m,children:t("div",{className:"flex gap-2",children:[n&&e("div",{className:"mr-2",children:e(ye,{name:n})}),t("div",{children:[l&&e(Je,{tag:Xe.H3,children:l}),e(We,{className:"mb-0",children:r})]}),d&&c&&e("div",{className:"ml-auto flex items-end",children:e(Pe,{variant:Le.PRIMARY,onClick:d,"aria-label":"Action",size:we.SMALL,children:c})}),o&&e("div",{className:"absolute top-2 right-4",children:e(Pe,{variant:Le.LINK,icon:"mdi:close",onClick:o,"aria-label":"Close"})})]})})};ot.displayName="Notice";const dt=l.forwardRef(function({name:a,required:i,className:l,options:r,...n},s){return e("div",{"data-testid":"Radio",className:N("flex items-center",l),children:e("div",{className:N("flex flex-col gap-2",l),children:r?.map(l=>{const r=l?.value?.toString()||void 0;return t("div",{className:"flex items-center relative",children:[t("div",{className:"relative flex items-center",children:[e("input",{ref:s,name:a,type:"radio",required:i,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4",...n,id:r,value:r}),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(ye,{name:"mdi:circle",size:12})})]}),e("label",{className:"label pl-2 leading-none",htmlFor:r,children:l.label})]},r)})})})});dt.displayName="Radio";const ct=n(function({id:a,name:i,required:l,disabled:r,className:n,...s},o){return t("label",{"data-testid":"Switch",className:N("inline-flex items-center cursor-pointer",n),children:[e("input",{ref:o,id:a,name:i,type:"checkbox",value:"",className:"sr-only peer",disabled:r,required:l,...s}),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 mt;ct.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"}(mt||(mt={}));const ut=n(function({type:a=mt.TEXT,required:i=!1,className:l,onChange:r,placeholder:n,icon:s,disabled:o=!1,name:c,autoComplete:m,...u},p){d(()=>{"undefined"!=typeof window&&require("date-input-polyfill")},[]);const h="date"===a?"dd/mm/yyyy".toUpperCase():n;return a===mt.TEXTAREA?e("div",{"data-testid":"TextInput",className:"relative",children:e("textarea",{ref:p,id:c,autoComplete:c,required:i,"aria-required":i,disabled:o,placeholder:h,onChange:r,rows:4,className:N("form-item text-area resize-none",l),...u})}):t("div",{"data-testid":"TextInput",className:"relative",children:[s&&e("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e(ye,{name:s})}),e("input",{ref:p,id:c,type:a,autoComplete:m,required:i,"aria-required":i,disabled:o,placeholder:h,onChange:r,className:N("form-item text-input",{"pl-12":s},l),...u})]})});ut.displayName="TextInput";const pt={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"}},ht=({testID:i,name:l="avatar",isEditable:r=!0,initValue:n,fileUpdateCallback:s=async()=>{}})=>{const[o,m]=c(n);d(()=>{n&&m(n)},[n]);return t("div",{"data-testid":i||'"Avatar"',className:"relative",children:[t("div",{className:"relative w-[200px] aspect-square rounded-full border border-solid overflow-hidden flex items-center justify-center m-4",children:[o&&t(a,{children:[e(tt,{src:o,alt:l,width:200,height:200}),r&&e("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e(Pe,{size:we.SMALL,rounded:!0,onClick:()=>{m(void 0)},children:pt.UI.REMOVE_BTN_LABEL})})]}),!o&&t(a,{children:[r&&e("div",{className:"absolute w-full h-full flex items-center justify-center",children:e(at,{id:l,className:"button cursor-pointer mb-0",children:e(We,{className:"mb-0",children:pt.UI.UPLOAD})})}),!r&&e(ye,{name:"mdi:account-circle",size:200,className:"opacity-30"})]})]}),e("input",{type:"file",id:l,name:l,className:"hidden",onChange:e=>{const t=e.target.files?.[0];if(t){const e=URL.createObjectURL(t);m(e),(async e=>{s&&"function"==typeof s&&s(e)})(t)}}})]})};ht.displayName="Avatar";const Nt=({id:a,testID:i,title:l,text:r,icon:n,href:s,className:o})=>{const d=N("rounded-lg p-6 shadow-sm","bg-tertiary text-card-text border-gray-200","dark:bg-darkCardBackground dark:text-darkCardText dark:border-gray-700",o),c=t("div",{className:"flex gap-4 items-start",children:[n&&e("div",{className:"flex-shrink-0 mt-1",children:e(ye,{name:n,className:"w-6 h-6"})}),t("div",{className:"flex-1",children:[l&&e(Je,{tag:Xe.H4,className:"mb-2",children:l}),e(We,{className:"mb-0",children:r})]}),s&&e("div",{className:"flex-shrink-0",children:e(ye,{name:"mdi:chevron-right",className:"w-6 h-6"})})]});return s?e(Me,{href:s,className:"block no-underline hover:no-underline",testID:i||a||"Banner",children:e("div",{className:N(d,"hover:shadow-md transition-shadow duration-200 cursor-pointer"),children:c})}):e("div",{"data-testid":i||a||"Banner",className:d,children:c})};Nt.displayName="Banner";const ft=({testID:t,buttonData:a})=>e("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:a?.map((t,i)=>{const l=i>0&&i<a.length-1,r=0===i,n=i===a.length-1,s=N({"rounded-none":l},{"rounded-r":r,"rounded-l":n});return e("div",{children:e(Pe,{...t,className:s,children:t.children})},t.id)})});ft.displayName="ButtonGroup";const Et="relative rounded-lg overflow-hidden shadow bg-card-bg text-card-text dark:bg-darkCardBackground dark:text-darkCardText group",gt="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-card-bg text-card-text dark:bg-darkCardBackground dark:text-darkCardText hover:bg-card-bgHover group",At="transition duration-500 ease-in-out ",St={replace(t){if("a"===t.name){const a=y(t.attribs);return e(Me,{...a,children:x(t.children,St)})}if(t.attribs&&"p"===t.name){const a=y(t.attribs);return e(We,{...a,children:x(t.children,St)})}return t}},vt=({testID:t,data:i,align:l,className:r})=>i?e("span",{"data-testid":t||'"HtmlContent"',className:N("relative",{"text-right":"right"===l},{"text-center":"center"===l},{"text-left":"left"===l},r),children:O(i,St)}):e(a,{});vt.displayName="HtmlContent";const Ct={allowMultipleFractions:!0},It=[{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"}],bt=(e,t)=>`((?<${e}>-?\\d*[\\.,]?\\d+)${t})?`,Tt=new RegExp(["(?<negative>-)?P",bt("years","Y"),bt("months","M"),bt("weeks","W"),bt("days","D"),"(T",bt("hours","H"),bt("minutes","M"),bt("seconds","S"),")?"].join(""));function Rt(e){if(""!==e&&null!=e)return parseFloat(e.replace(",","."))}const Ot=new Error("Invalid duration"),yt=new Error("Multiple fractions specified");function xt(e,t=Ct){const a=Tt.exec(e);if(!a||!a.groups)throw Ot;let i=!0,l=0;const r={};for(const{unit:e}of It)if(a.groups[e]&&(i=!1,r[e]=Rt(a.groups[e]),!t.allowMultipleFractions&&!Number.isInteger(r[e])&&(l++,l>1)))throw yt;if(i)throw Ot;const n=r;return a.groups.negative&&(n.negative=!0),n}function _t(...e){return I(L(e))}function Lt(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}function wt(e){const t=_(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 Dt(e){if(e&&0!==e.length)return e?.map(e=>e)?.[Math.floor(Math.random()*e?.map(e=>e).length)]}const Pt={isDarkTheme:!1,toggleTheme:()=>{},theme:void 0},kt=l.createContext(Pt),Mt=({children:t,theme:a})=>e(kt.Provider,{value:a,children:t}),Ut=()=>{const e=m(kt);if(void 0===e)throw new Error("useThemeContext must be used within a ThemeProvider");return e},Ft=u({brand:void 0,header:void 0,footer:void 0,locale:void 0,app:void 0,images:void 0}),Bt=({children:t,value:a})=>e(Ft.Provider,{value:a,children:t}),Gt=()=>{const e=m(Ft);if(void 0===e)throw new Error("useAppContext must be used within a AppProvider");return e},Ht=u({config:{region:"eu-west-1",oauth:{},cookieStorage:{}}}),Wt=({children:t,value:a})=>(d(()=>{a.config&&w.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(Ht.Provider,{value:a,children:t})),Yt=u(void 0),Vt=({children:t,data:a})=>e(Yt.Provider,{value:a,children:t}),zt=()=>{const e=m(Yt);if(void 0===e)throw new Error("useCartContext must be used within a CartProvider");return e},jt=({id:a,title:i,description:l,image:r,className:n,metaData:s,actions:o,padded:d,scaleOnHover:c,onClick:u,htmlDetails:p,titleOverlay:h})=>{const f=m(Ft);return t("div",{id:a,"data-testid":"CardBasic",className:I(N(At,u?gt:Et,{"p-4":d},{"hover:scale-100":!c},n)),onClick:u,children:[r&&e("div",{className:I(N("relative w-full overflow-hidden aspect-[16/9]",{rounded:d},r.aspectRatio)),children:e(tt,{fill:!0,src:r?.src??f?.images?.placeholder,sizes:"100vh",alt:r?.alt,className:N("absolute inset-0 object-cover group-hover:scale-110 dura",At)})}),h&&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(Je,{tag:Xe.H4,singleLine:!0,flush:!0,className:"text-white",children:i})}),!h&&(i||p||l)&&e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:N({"p-3":!d},{"pt-3":d}),children:[e("div",{children:i&&e(Je,{tag:Xe.H4,singleLine:!0,flush:!0,children:i})}),!p&&l&&e("div",{children:e(We,{className:"mb-0",children:Lt(l)})}),p&&l&&e("div",{children:e(vt,{className:"mb-0",data:Lt(l)})}),t("div",{className:"flex items-center justify-between gap-2",children:[s&&e("div",{className:"flex shrink-0 mt-2",children:s.map((a,i)=>1===s.length?e(We,{className:"text-xs",as:He.SMALL,children:a},a):0===i?t(We,{className:"text-xs",as:He.SMALL,children:[a," ·"]},a):i===s.length-1?t(We,{className:"text-xs",as:He.SMALL,children:[" ",a]},a):t(We,{className:"text-xs",as:He.SMALL,children:[" ",a," ·"]},a))}),o&&t("div",{className:"flex items-center gap-1 flex-wrap flex-1 justify-end",children:[o.like&&e(Pe,{variant:Le.PRIMARY,icon:o.like.isActive?"mdi:like":"mdi:like-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.like?.onClick&&"function"==typeof o.like.onClick&&o.like.onClick({id:a})}}),o.share&&e(Pe,{variant:Le.PRIMARY,icon:o.share.isActive?"mdi:share":"mdi:share-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.share?.onClick&&"function"==typeof o.share.onClick&&o.share.onClick({id:a})}}),o.save&&e(Pe,{variant:Le.PRIMARY,icon:o.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.save?.onClick&&"function"==typeof o.save.onClick&&o.save.onClick({id:a})}}),o.comment&&e(Pe,{variant:Le.PRIMARY,icon:o.comment.isActive?"mdi:comment":"mdi:comment-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.comment?.onClick&&"function"==typeof o.comment.onClick&&o.comment.onClick({id:a})}}),o.bookmark&&e(Pe,{variant:Le.PRIMARY,icon:o.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.bookmark?.onClick&&"function"==typeof o.bookmark.onClick&&o.bookmark.onClick({id:a})}}),o.report&&e(Pe,{variant:Le.PRIMARY,icon:o.report.isActive?"mdi:flag":"mdi:flag-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.report?.onClick&&"function"==typeof o.report.onClick&&o.report.onClick({id:a})}}),o.follow&&e(Pe,{variant:Le.PRIMARY,icon:o.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.follow?.onClick&&"function"==typeof o.follow.onClick&&o.follow.onClick({id:a})}}),o.download&&e(Pe,{variant:Le.PRIMARY,icon:o.download.isActive?"mdi:download":"mdi:download-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.download?.onClick&&"function"==typeof o.download.onClick&&o.download.onClick({id:a})}}),o.edit&&e(Pe,{variant:Le.PRIMARY,icon:o.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.edit?.onClick&&"function"==typeof o.edit.onClick&&o.edit.onClick({id:a})}}),o.delete&&e(Pe,{variant:Le.PRIMARY,icon:o.delete.isActive?"mdi:delete":"mdi:delete-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.delete?.onClick&&"function"==typeof o.delete.onClick&&o.delete.onClick({id:a})}}),o.custom&&o.custom.map((t,a)=>e("div",{children:t},a))]})]})]})})]})};function Kt(){return m(Ft).locale,pt}function qt(){return m(kt)}jt.displayName="CardBasic";const $t=({id:a,title:i,description:l,image:r,className:n,metaData:s,actions:o,onClick:d,playCallback:c,htmlDetails:u,accessRestriced:p})=>{const h=Kt(),f=m(Ft);return t("div",{id:a,"data-testid":"CardBasic",className:N(At,d?gt:Et,n),onClick:d,children:[r&&t("div",{className:N("relative w-full overflow-hidden aspect-[16/9]",r.aspectRatio),children:[e(tt,{fill:!0,src:r?.src??f?.images?.placeholder,sizes:"100vh",alt:r?.alt,className:N("absolute inset-0 object-cover group-hover:scale-110",At)}),p&&e("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-body-bg bg-opacity-50 flex items-center justify-center",children:e(We,{bold:!0,transform:Fe.UPPERCASE,children:h.UI.PURCHASE_TO_ACCESS})}),c&&e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(Pe,{variant:Le.PRIMARY,icon:"mdi:play",size:we.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof c&&c(e)}})})]}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:"p-3",children:[e("div",{children:i&&e(Je,{tag:Xe.H5,singleLine:!0,flush:!0,children:i})}),!u&&l&&e("div",{children:e(We,{className:"mb-0",children:Lt(l)})}),u&&l&&e("div",{children:e(vt,{className:"mb-0",data:Lt(l)})}),t("div",{className:"flex items-center justify-between gap-2",children:[s&&e("div",{className:"flex shrink-0",children:s.map((a,i)=>1===s.length?e(We,{className:"text-xs",as:He.SMALL,children:a},a):0===i?t(We,{className:"text-xs",as:He.SMALL,children:[a," ·"]},a):i===s.length-1?t(We,{className:"text-xs",as:He.SMALL,children:[" ",a]},a):t(We,{className:"text-xs",as:He.SMALL,children:[" ",a," ·"]},a))}),o&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[o.completed&&e(Pe,{variant:Le.PRIMARY,icon:o.completed.isActive?"mdi:check":"mdi:check-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.completed?.onClick&&"function"==typeof o.completed.onClick&&o.completed.onClick({id:a})}}),o.like&&e(Pe,{variant:Le.PRIMARY,icon:o.like.isActive?"mdi:like":"mdi:like-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.like?.onClick&&"function"==typeof o.like.onClick&&o.like.onClick({id:a})}}),o.share&&e(Pe,{variant:Le.PRIMARY,icon:o.share.isActive?"mdi:share":"mdi:share-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.share?.onClick&&"function"==typeof o.share.onClick&&o.share.onClick({id:a})}}),o.save&&e(Pe,{variant:Le.PRIMARY,icon:o.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.save?.onClick&&"function"==typeof o.save.onClick&&o.save.onClick({id:a})}}),o.comment&&e(Pe,{variant:Le.PRIMARY,icon:o.comment.isActive?"mdi:comment":"mdi:comment-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.comment?.onClick&&"function"==typeof o.comment.onClick&&o.comment.onClick({id:a})}}),o.bookmark&&e(Pe,{variant:Le.PRIMARY,icon:o.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.bookmark?.onClick&&"function"==typeof o.bookmark.onClick&&o.bookmark.onClick({id:a})}}),o.report&&e(Pe,{variant:Le.PRIMARY,icon:o.report.isActive?"mdi:flag":"mdi:flag-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.report?.onClick&&"function"==typeof o.report.onClick&&o.report.onClick({id:a})}}),o.follow&&e(Pe,{variant:Le.PRIMARY,icon:o.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.follow?.onClick&&"function"==typeof o.follow.onClick&&o.follow.onClick({id:a})}}),o.download&&e(Pe,{variant:Le.PRIMARY,icon:o.download.isActive?"mdi:download":"mdi:download-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.download?.onClick&&"function"==typeof o.download.onClick&&o.download.onClick({id:a})}}),o.edit&&e(Pe,{variant:Le.PRIMARY,icon:o.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.edit?.onClick&&"function"==typeof o.edit.onClick&&o.edit.onClick({id:a})}}),o.delete&&e(Pe,{variant:Le.PRIMARY,icon:o.delete.isActive?"mdi:delete":"mdi:delete-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),o?.delete?.onClick&&"function"==typeof o.delete.onClick&&o.delete.onClick({id:a})}})]})]})]})})]})};$t.displayName="CardMedia";const Xt=({video:a,isMuted:i=!0,id:l,title:r,description:n,image:s,className:o,metaData:d,actions:c,onClick:m,htmlDetails:u})=>t("div",{id:l,"data-testid":"CardVideo",className:N(At,m?gt:Et,o),onClick:m,children:[s&&a&&e("div",{className:N("",s.aspectRatio),children:e(k,{videoId:`video--${l}`,playbackStartDelay:1e3,videoSrc:e("source",{src:a,type:"video/mp4"}),videoClassName:N("hls-hover-video w-full aspect-[16/9]",s.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:i,className:N("w-full !block",s.aspectRatio),pausedOverlay:e("div",{className:N("relative w-full aspect-[16/9]",s.aspectRatio),children:e(tt,{src:s?.src,alt:s?.alt})}),loadingOverlay:e("div",{className:N("w-full flex items-center justify-center aspect-[16/9]",s.aspectRatio),children:e("div",{className:"",children:e(De,{color:"#FFF"})})})},`${l}--card`)}),(r||u||n||d||c)&&e("div",{className:"w-full flex flex-col",children:t("div",{className:"p-3",children:[r&&e("div",{children:e(Je,{tag:Xe.H5,singleLine:!0,flush:!0,children:r})}),!u&&n&&e("div",{children:e(We,{className:"mb-0",children:Lt(n)})}),u&&n&&e("div",{children:e(vt,{className:"mb-0",data:Lt(n)})}),(d||c)&&t("div",{className:"flex items-center justify-between gap-2",children:[d&&e("div",{className:"flex shrink-0",children:d.map((a,i)=>1===d.length?e(We,{className:"text-xs",as:He.SMALL,children:a},a):0===i?t(We,{className:"text-xs",as:He.SMALL,children:[a," ·"]},a):i===d.length-1?t(We,{className:"text-xs",as:He.SMALL,children:[" ",a]},a):t(We,{className:"text-xs",as:He.SMALL,children:[" ",a," ·"]},a))}),c&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[c.like&&e(Pe,{variant:Le.PRIMARY,icon:c.like.isActive?"mdi:like":"mdi:like-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.like?.onClick&&"function"==typeof c.like.onClick&&c.like.onClick({id:l})}}),c.share&&e(Pe,{variant:Le.PRIMARY,icon:c.share.isActive?"mdi:share":"mdi:share-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.share?.onClick&&"function"==typeof c.share.onClick&&c.share.onClick({id:l})}}),c.save&&e(Pe,{variant:Le.PRIMARY,icon:c.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.save?.onClick&&"function"==typeof c.save.onClick&&c.save.onClick({id:l})}}),c.comment&&e(Pe,{variant:Le.PRIMARY,icon:c.comment.isActive?"mdi:comment":"mdi:comment-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.comment?.onClick&&"function"==typeof c.comment.onClick&&c.comment.onClick({id:l})}}),c.bookmark&&e(Pe,{variant:Le.PRIMARY,icon:c.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.bookmark?.onClick&&"function"==typeof c.bookmark.onClick&&c.bookmark.onClick({id:l})}}),c.report&&e(Pe,{variant:Le.PRIMARY,icon:c.report.isActive?"mdi:flag":"mdi:flag-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.report?.onClick&&"function"==typeof c.report.onClick&&c.report.onClick({id:l})}}),c.follow&&e(Pe,{variant:Le.PRIMARY,icon:c.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.follow?.onClick&&"function"==typeof c.follow.onClick&&c.follow.onClick({id:l})}}),c.download&&e(Pe,{variant:Le.PRIMARY,icon:c.download.isActive?"mdi:download":"mdi:download-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.download?.onClick&&"function"==typeof c.download.onClick&&c.download.onClick({id:l})}}),c.edit&&e(Pe,{variant:Le.PRIMARY,icon:c.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.edit?.onClick&&"function"==typeof c.edit.onClick&&c.edit.onClick({id:l})}}),c.delete&&e(Pe,{variant:Le.PRIMARY,icon:c.delete.isActive?"mdi:delete":"mdi:delete-outline",size:we.SMALL,onClick:e=>{e.stopPropagation(),c?.delete?.onClick&&"function"==typeof c.delete.onClick&&c.delete.onClick({id:l})}})]})]})]})})]});Xt.displayName="CardVideo";const Qt=({id:a,title:i,subtitle:l,description:r,icon:n,className:s,onClick:o,moreTitle:d,align:c})=>t("div",{id:a,"data-testid":"CardIcon",className:I(N(At,o?gt:Et,"p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===c},{"items-center":"center"===c},{"items-end":"right"===c},s)),children:[n&&e("div",{className:N("relative"),children:e(ye,{name:n,size:48})}),t("div",{className:N({"text-left":"left"===c},{"text-center":"center"===c},{"text-right":"right"===c}),children:[t("div",{children:[i&&e(Je,{tag:Xe.H5,singleLine:!0,children:i}),l&&e(We,{bold:!0,children:l})]}),e("div",{children:r&&e(We,{align:c,children:r})})]}),o&&e(Pe,{variant:Le.LINK,onClick:o,className:"absolute left-0 top-0 w-full h-full cursor-pointer border border-solid",children:d})]});Qt.displayName="CardIcon";const Zt=({testID:a,id:i,title:l,description:r,image:n,onClick:s,className:o,padded:d,icon:c,raised:m=!0,htmlDetails:u})=>t("div",{id:i,"data-testid":a||"CardHorz",className:N("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":d},{"shadow hover:shadow-lg":m},At,s?gt:Et,o),onClick:s,children:[n&&e("div",{className:"w-1/3 aspect-[1/1]",children:e("div",{className:I(N("relative w-full overflow-hidden h-full",n.aspectRatio)),children:e(tt,{fill:!0,src:n?.src,alt:n?.alt,className:"absolute inset-0 object-cover"})})}),c&&!n&&e("div",{className:"py-2 pl-2",children:e(ye,{name:c,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:[l&&e("div",{className:"",children:e(Je,{tag:Xe.H4,children:l})}),!u&&r&&e("div",{children:e(We,{className:"mb-0",children:Lt(r)})}),u&&r&&e("div",{children:e(vt,{className:"mb-0",data:Lt(r)})})]})})]});Zt.displayName="CardHorz";const Jt=({testID:i,className:l,data:r,padded:n=!0,shadow:s=!0})=>{const o=A(0);return d(()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||g(o,200,{duration:.5})},[o]),r?e("div",{"data-testid":i||"CardData",className:I(N(At,Et,{"p-4":n},{shadow:s},l)),children:t("div",{className:"min-w-[110px] flex flex-col flex-1 items-center justify-center",children:[r?.animateNumber&&t("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e(Oe,{from:r.numberData.from,to:r.numberData.to,numDecimals:r.numberData.numDecimals}),e("span",{children:r?.item})]}),!r?.animateNumber&&e("div",{className:"text-lg",children:e(Je,{tag:Xe.H2,flush:!0,children:r?.item})}),e("div",{className:"flex flex-1 items-center justify-center",children:e(We,{className:"mb-0",children:r?.label})})]})}):e(a,{})};Jt.displayName="CardData";const ea=({variant:t,className:a,data:i,...l})=>{switch(t){case"basic":default:return e(jt,{className:a,...i,...l});case"media":return e($t,{className:a,...i,...l});case"video":return e(Xt,{className:a,...i,...l});case"icon":return e(Qt,{className:a,...i,...l});case"horz":return e(Zt,{className:a,...i,...l});case"data":return e(Jt,{className:a,...i,...l})}};ea.displayName="Card";const ta=({text:i,flush:l,tag:r=Xe.H1,colorOverride:n})=>{const s=i?.split(" ");return e("div",{"data-testid":"DisplayHeading",className:N("relative display-heading-wrapper",n),children:e(Je,{tag:r,flush:l,className:"font-display font-extrabold",children:s.map((i,l)=>{const r=s.length>1&&l===s.length-1,o=`${i}-${l}`;return t("span",{children:[e("span",{className:N({"display-heading relative":!r},{"inline-block relative":r}),children:t(a,{children:[r&&t(a,{children:[e("div",{className:"display-heading--emphasis z-0"}),e("span",{className:N("display-heading--lastword relative",n),children:i})]}),!r&&e("span",{className:"relative z-10",children:i})]})}),!r&&" "]},o)})})})};ta.displayName="DisplayHeading";const aa=({children:a,className:i,submit:l,onSubmit:n=()=>{},onChange:s,hideSubmit:o,ariaSubmitLabel:c,submitID:m,submitVariant:u=Le.PRIMARY,initialValues:p={},isBoxed:h=!1,submitType:f=_e.SUBMIT,disabledSubmitWithReturn:E=!0,isDisabled:g=!1})=>{const A=M({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"}),S=r(p);d(()=>{JSON.stringify(S.current)!==JSON.stringify(p)&&(A.reset(p),S.current=p)},[p]),d(()=>{if(s&&"function"==typeof s){const e=A.watch((e,t)=>{s(e,t)});return()=>e.unsubscribe()}},[]);const v=N({"sr-only":o}),{formState:{isSubmitting:C,isValid:I}}=A;return e(U,{...A,children:e("div",{"data-testid":"Form",className:N("w-full max-w-s @containers @form"),children:t("form",{onSubmit:A.handleSubmit(n),onKeyDown:e=>{E&&"Enter"===e.key&&e.preventDefault()},className:N("w-2xs relative",{"form px-8 pt-6 pb-8 ":h},{"opacity-50":C},i),children:[a,l&&e("div",{className:"flex items-center justify-end",children:e(Pe,{id:m||l,className:v,ariaLabel:c||l||"Submit",type:f,outline:!0,isLoading:C,disabled:C||!I||g,variant:u,children:l})})]})})})};var ia;aa.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"}(ia||(ia={}));const la=l.forwardRef(function({id:a,name:i,options:l,required:r,className:n,disabled:s,...o},d){if(!l)throw new Error("FormSelect requires options prop");return e("div",{id:a,className:N("pb-2 min-w-20",n),children:t("div",{className:"relative",children:[e("select",{ref:d,name:i,disabled:s,required:r,className:"form-item text-input pr-10",...o,children:l.map((t,a)=>e("option",{value:t?.value?.toString(),disabled:t.disabled,className:"bg-body-bg dark:bg-body-bg-dark",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(ye,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})});la.displayName="FormSelect";const ra=({name:a,type:i,label:l,required:r,className:n,icon:s,options:o,disabled:d,description:m,showPasswordLabel:u,hidePasswordLabel:p,validations:h={},fileUploadCallback:f=()=>{},autoComplete:E})=>{const[g,A]=c(!1),{control:S,formState:v}=F(),{errors:C}=v,I=l&&i!==ia.CHECKBOX,b=r||Boolean(h.required)?`${l} *`:l;return e("div",{className:"relative",children:t("div",{"data-testid":"FormField",className:"mb-4",children:[I&&e("div",{className:"flex items-baseline justify-between",children:e(at,{id:a,children:b})}),e("div",{className:"mb-1",children:e(B,{defaultValue:"",name:a,control:S,rules:h,render:({field:c})=>((i,c)=>{switch(i){case ia.HIDDEN:return e("input",{type:mt.HIDDEN,disabled:d,...c});case ia.TEXT:return e(ut,{type:mt.TEXT,required:r||Boolean(h.required),icon:s,className:n,disabled:d,autoComplete:E,...c});case ia.PASSWORD:{const a=g?mt.TEXT:mt.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:()=>A(e=>!e),role:"button",tabIndex:0,children:e("button",g?{type:"button","aria-label":p,className:N(i,"form-icon"),children:e(ye,{name:"mdi:eye-off",size:24})}:{type:"button","aria-label":u,className:N(i,"form-icon"),children:e(ye,{name:"mdi:eye",size:24})})}),e(ut,{type:a,required:r||Boolean(h.required),icon:s,className:n,disabled:d,autoComplete:E,...c})]})}case ia.TEXTAREA:return e(ut,{type:mt.TEXTAREA,required:r||Boolean(h.required),icon:s,className:n,disabled:d,...c});case ia.EMAIL:return e(ut,{type:mt.EMAIL,required:r||Boolean(h.required),icon:s,className:n,disabled:d,autoComplete:E,...c});case ia.DATE:return e(ut,{type:mt.DATE,required:r||Boolean(h.required),icon:s,className:n,disabled:d,...c});case ia.DATETIME:return e(ut,{type:mt.DATETIME,required:r||Boolean(h.required),icon:s,className:n,disabled:d,...c});case ia.NUMBER:return e(ut,{type:mt.NUMBER,required:r||Boolean(h.required),icon:s,className:n,disabled:d,...c});case ia.CHECKBOX:return e(ke,{required:r||Boolean(h.required),id:a,className:n,label:l,disabled:d,...c});case ia.RADIO:return e(dt,{required:r||Boolean(h.required),id:a,className:n,options:o,disabled:d,...c});case ia.SWITCH:return e(ct,{id:a,required:r||Boolean(h.required),className:n,disabled:d,...c});case ia.SELECT:return e(la,{required:r||Boolean(h.required),id:a,className:n,disabled:d,label:l,options:o,...c});case ia.FILE:return e($e,{required:r||Boolean(h.required),id:a,className:n,disabled:d,onChangeCallback:e=>{f(e)},...c});default:return e(ut,{type:mt.TEXT,required:r||Boolean(h.required),disabled:d,icon:s,className:n,...c})}})(i,c)})}),m&&e("div",{className:"formfield-description",children:e(We,{size:Ge.SMALL,className:"mb-0",children:m})}),C[a]&&e("div",{className:"formfield-error text-error italic",children:e(We,{size:Ge.SMALL,className:"mb-0",children:C?.[a]?.message?.toString()})})]})})};ra.displayName="FormField";const na=({testID:a,url:i,title:l="Share",enabled:r={facebook:!0,twitter:!0}})=>t("div",{"data-testid":a||"Share",className:"flex gap-2 items-center ",children:[e("div",{children:t(We,{as:He.P,className:"mb-0",children:[pt.UI.SHARE,":"]})}),r?.facebook&&e(G,{url:i,title:l,className:"",children:e(ye,{name:"mdi:facebook"})}),r?.twitter&&e(H,{url:i,title:l,className:"",children:e(ye,{name:"mdi:twitter"})}),r?.whatsapp&&e(W,{url:i,title:l,className:"",children:e(ye,{name:"mdi:whatsapp"})}),r?.email&&e(Y,{url:i,title:l,className:"",children:e(ye,{name:"mdi:email"})}),r?.linkedin&&e(V,{url:i,title:l,className:"",children:e(ye,{name:"mdi:linkedin"})})]});na.displayName="Share";const sa=({data:i})=>{const[l,r]=c(0);return i?e("div",{"data-testid":"Tabs",children:t(z,{onSelect:e=>r(e),children:[e(j,{className:"mb-8 flex p-0",children:i.map((t,a)=>e(K,{className:N("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":l!==a,"border-primary border-solid border-0 border-b-2":l===a}),children:e(We,{className:"m-0 text-center",children:t.title})},a))}),i.map((t,a)=>e(q,{className:"",children:t.content},a))]})}):e(a,{})};sa.displayName="Tabs";const oa=({testID:a,facebook:i,twitter:l,instagram:r,linkedin:n,youtube:s})=>t("div",{"data-testid":a||'"VisitUs"',className:"flex gap-2",children:[i&&e(Pe,{variant:Le.PRIMARY,size:we.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(i.url)}),l&&e(Pe,{variant:Le.PRIMARY,size:we.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(l.url)}),r&&e(Pe,{variant:Le.PRIMARY,size:we.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(r.url)}),n&&e(Pe,{variant:Le.PRIMARY,size:we.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(n.url)}),s&&e(Pe,{variant:Le.PRIMARY,size:we.MEDIUM,icon:"mdi:youtube",onClick:()=>window.open(s.url)})]});oa.displayName="VisitUs";const da=({testID:a,title:i,links:l,inline:r=!0,separators:n=!1,className:s})=>t("div",{"data-testid":a||'"Menu"',className:I(N("flex flex-col gap-2",s)),children:[i&&e("div",{children:e(Je,{tag:Xe.H3,children:i})}),e("div",{className:N("flex gap-0 items-center md:items-start",{"flex-col md:flex-row ":r},{"flex-col ":!r}),children:l?.map((a,i)=>{const r=`${a.id}--${i}`;return t("div",{className:"flex gap-0",children:[e("div",{className:"relative py-2",children:t(Me,{href:a.url,className:"flex gap-1",children:[a.icon&&e(ye,{name:a.icon}),a.title&&e("div",{children:a.title})]})}),n&&i+1<l.length&&e("div",{className:"h-full hidden md:flex self-center px-2",children:e(ye,{name:"mdi:dot",className:"opacity-50"})})]},r)})})]});var ca;da.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(ca||(ca={}));const ma=({children:t,className:a,spacing:i,padded:l,isNarrow:r,isCentered:n,isFlush:s,direction:o=ca.COLUMN})=>{const d=I(N("container relative mx-auto my-0",{"px-2 md:px-4 lg:px-4":l},{"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":r},{"flex items-center justify-center flex-col flex-1":n},{"px-0 max-w-full mx-0":s},{"flex flex-col":o===ca.COLUMN},{"flex-row":o===ca.ROW})),c=N("w-full h-full",a);return e("div",{"data-testid":"Container",className:d,children:e("div",{className:c,children:t})})};ma.displayName="Container";const ua=({testID:a,children:i,withBg:l=!0,inversed:r=!1})=>t("div",{"data-testid":a||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[l&&e("div",{className:N("rounded-full blur-[200px] flex flex-none aspect-square absolute w-[700px] opacity-20 bg-gradient-to-r from-primary-700 to-primary-300 z-0",{"-bottom-24 right-0":!r,"-top-24 left-0":r})}),e(ma,{children:i})]});ua.displayName="Hero";const pa=({testID:a,bgAsset:i,focalAsset1:l,focalAsset2:r,focalAsset3:n})=>{const s={opacity:.001,rotate:0,scale:1,x:200,y:0},o={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:N("relative w-full h-full"),children:[i&&e(S.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(tt,{src:i.src,alt:i.alt,fill:!0})}),(l||r)&&t(S.div,{className:"absolute right-0 top-1/2 z-10 overflow-visible w-3/4 aspect-[0.78/1]",style:{transform:"translateY(-50%)"},children:[l&&e(S.div,{className:"absolute aspect-[9/18] right-4 top-8 w-[170px] md:right-4 md:top-8 md:w-[130px] lg:right-0 lg:top-8 lg:w-[190px] xl:right-16 xl:top-16 xl:w-[250px] ",initial:s,animate:o,children:e(tt,{src:l.src,alt:l.alt,fill:!0})}),r&&e(S.div,{className:"absolute aspect-[9/18] left-0 top-2 w-[200px] md:left-0 md:top-2 md:w-[150px] lg:left-4 lg:top-0 lg:w-[210px] xl:left-0 xl:top-0 xl:w-[300px]",initial:s,animate:{...o,transition:{...o.transition,delay:.3}},children:e(tt,{src:r.src,alt:r.alt,fill:!0})})]}),n&&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(S.div,{className:"relative w-full overflow-visible aspect-[1.2/1] bg-body-bg 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(tt,{src:n.src,fill:!0,alt:n.alt})})})]})};pa.displayName="AnimationSet1";const ha=process.env.AWS_COGNITO_USERPOOL_DOMAIN||process.env.NEXT_PUBLIC_AWS_COGNITO_USERPOOL_DOMAIN,Na=process.env.AWS_COGNITO_CLIENT_ID||process.env.NEXT_PUBLIC_AWS_COGNITO_CLIENT_ID,fa=process.env.AWS_COGNITO_REDIRECT_URI||process.env.NEXT_PUBLIC_AWS_COGNITO_REDIRECT_URI,Ea=ha&&Na&&fa?`https://${ha}/oauth2/authorize?client_id=${Na}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${fa}`:void 0,ga=ha&&Na&&fa?`https://${ha}/oauth2/authorize?client_id=${Na}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${fa}`:void 0,Aa={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},Sa={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."}},va=e=>{try{const t=e,a=X(t),i=Q(t),l=Z(t);return a&&i&&l?void 0:"Not a valid phone number"}catch{return"Not a valid phone number"}},Ca=({handleSubmit:i,initialValues:l,handleTokenCallback:r,showSocialButtons:n=!1,className:s})=>{const o=Kt();d(()=>D.listen("auth",({payload:{event:e,data:t}})=>{switch(e){case"signIn":r&&"function"==typeof r&&r(t.signInUserSession);break;case"signOut":J.success("You have been signed out")}}),[]);const c=async e=>{try{P.federatedSignIn({provider:e})}catch(e){console.log(e),J.error(e.message||o?.ERRORS?.GENERIC_ERROR)}};return t("div",{"data-testid":"LoginForm",className:N("form-wrapper",s),children:[t(aa,{onSubmit:i,submit:pt.FORMS.LOGIN_FORM.SUBMIT,initialValues:l,children:[e(ra,{name:"email",type:ia.EMAIL,label:pt.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:Aa,autoComplete:"email"}),e(ra,{name:"password",type:ia.PASSWORD,label:pt.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),n&&t(a,{children:[e(et,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[Ea&&e(Pe,{onClick:()=>c($.Google),variant:Le.PRIMARY,iconFirst:!0,icon:"mdi:google",children:pt.UI.LOGIN_WITH_GOOGLE}),ga&&e(Pe,{onClick:()=>c($.Apple),variant:Le.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:pt.UI.LOGIN_WITH_APPLE})]})})]})]})};Ca.displayName="LoginForm";const Ia=({handleSubmit:i,handleTokenCallback:l,showSocialButtons:r=!1,className:n})=>{const s=Kt();d(()=>D.listen("auth",({payload:{event:e,data:t}})=>{if("signUp"===e)l&&"function"==typeof l&&l(t.signInUserSession)}),[]);const o=async e=>{try{P.federatedSignIn({provider:e})}catch(e){console.log(e),J.error(e.message||s?.ERRORS?.GENERIC_ERROR)}};return t("div",{"data-testid":"RegisterForm",className:N("form-wrapper",n),children:[t(aa,{onSubmit:i,submit:pt.FORMS.REGISTER_FORM.SUBMIT,children:[e(ra,{name:"email",type:ia.EMAIL,label:pt.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:Aa,autoComplete:"email"}),e(ra,{name:"password",type:ia.PASSWORD,label:pt.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:pt.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:Sa,autoComplete:"new-password"})]}),r&&t(a,{children:[e(et,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(Pe,{onClick:()=>o($.Google),variant:Le.PRIMARY,iconFirst:!0,icon:"mdi:google",children:pt.UI.SIGNUP_WITH_GOOGLE}),e(Pe,{onClick:()=>o($.Apple),variant:Le.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:pt.UI.SIGNUP_WITH_APPLE})]})})]})]})};Ia.displayName="RegisterForm";const ba=({handleSubmit:t})=>e("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e(aa,{onSubmit:t,submit:pt.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,children:e(ra,{name:"email",type:ia.EMAIL,label:pt.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:Aa})})});ba.displayName="ForgotPasswordForm";const Ta=({loginSubmit:a,registerSubmit:i,passwordForgotSubmit:l,handleTokenCallback:r,showSocialLogin:n=!1})=>{const[s,o]=c(!1);return t("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-[550px] mb-8",children:[!s&&e(sa,{data:[{title:"Login",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(Ca,{handleSubmit:a,showSocialButtons:n,handleTokenCallback:r,className:"w-full"}),e("div",{className:"mt-4",children:e(Pe,{variant:Le.LINK,onClick:()=>o(!s),children:s?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e("div",{className:"flex flex-col gap-4 items-center",children:e(Ia,{handleSubmit:i,showSocialButtons:n,handleTokenCallback:r,className:"w-full"})})}]}),s&&e(sa,{data:[{title:"Forgot Password",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(ba,{handleSubmit:l}),e("div",{className:"mt-4",children:e(Pe,{variant:Le.LINK,onClick:()=>o(!s),children:s?"Back to Login":"Forgot Password?"})})]})}]})]})};Ta.displayName="Authenticator";const Ra=le("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-white/20 text-primary-foreground shadow hover:bg-primary/90 border-2 border-red",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:bg-primary",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-transparent hover:bg-transparent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Oa=i.forwardRef(({className:t,variant:a,size:i,asChild:l=!1,...r},n)=>e(l?ie:"button",{className:_t(Ra({variant:a,size:i,className:t})),ref:n,...r}));Oa.displayName="ShadcnButton";const ya=i.createContext(null);function xa(){const e=i.useContext(ya);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const _a=i.forwardRef(({orientation:t="horizontal",opts:a,setApi:l,plugins:r,className:n,children:s,...o},d)=>{const[c,m]=ee({...a,axis:"horizontal"===t?"x":"y"},r),[u,p]=i.useState(!1),[h,N]=i.useState(!1),f=i.useCallback(e=>{e&&(p(e.canScrollPrev()),N(e.canScrollNext()))},[]),E=i.useCallback(()=>{m?.scrollPrev()},[m]),g=i.useCallback(()=>{m?.scrollNext()},[m]),A=i.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),E()):"ArrowRight"===e.key&&(e.preventDefault(),g())},[E,g]);return i.useEffect(()=>{m&&l&&l(m)},[m,l]),i.useEffect(()=>{if(m)return f(m),m.on("reInit",f),m.on("select",f),()=>{m?.off("select",f)}},[m,f]),e(ya.Provider,{value:{carouselRef:c,api:m,opts:a,orientation:t||("y"===a?.axis?"vertical":"horizontal"),scrollPrev:E,scrollNext:g,canScrollPrev:u,canScrollNext:h},children:e("div",{ref:d,onKeyDownCapture:A,className:_t("relative",n),role:"region","aria-roledescription":"carousel",...o,children:s})})});_a.displayName="ShadcnCarousel";const La=i.forwardRef(({className:t,...a},i)=>{const{carouselRef:l,orientation:r}=xa();return e("div",{ref:l,className:"overflow-hidden",children:e("div",{ref:i,className:_t("flex","horizontal"===r?"-ml-4":"-mt-4 flex-col",t),...a})})});La.displayName="ShadcnCarouselContent";const wa=i.forwardRef(({className:t,...a},i)=>{const{orientation:l}=xa();return e("div",{ref:i,role:"group","aria-roledescription":"slide",className:_t("min-w-0 shrink-0 grow-0","horizontal"===l?"pl-4":"pt-4",t),...a})});wa.displayName="ShadcnCarouselItem";const Da=i.forwardRef(({className:a,variant:i="outline",size:l="icon",...r},n)=>{const{orientation:s,scrollPrev:o,canScrollPrev:d}=xa();return t(Oa,{ref:n,variant:i,size:l,className:_t("absolute h-8 w-8 rounded-full bg-white/40","horizontal"===s?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!d,onClick:o,...r,children:[e(te,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Previous slide"})]})});Da.displayName="ShadcnCarouselPrevious";const Pa=i.forwardRef(({className:a,variant:i="outline",size:l="icon",...r},n)=>{const{orientation:s,scrollNext:o,canScrollNext:d}=xa();return t(Oa,{ref:n,variant:i,size:l,className:_t("absolute h-8 w-8 rounded-full bg-white/40","horizontal"===s?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!d,onClick:o,...r,children:[e(ae,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Next slide"})]})});Pa.displayName="ShadcnCarouselNext";const ka=({testID:i,data:l,onPressCallback:r,carouselOptions:n={loop:!1,showArrows:!0,slidesPerView:{base:1,md:2,lg:3}},customRender:s})=>{const o=n?.slidesPerView||{base:n?.slidesToShow||1};n?.responsive&&!n?.slidesPerView&&n.responsive.forEach(e=>{e.breakpoint<=640?o.base=e.settings.slidesToShow:e.breakpoint<=768?o.sm=e.settings.slidesToShow:e.breakpoint<=1024?o.md=e.settings.slidesToShow:e.breakpoint<=1280?o.lg=e.settings.slidesToShow:e.breakpoint<=1536?o.xl=e.settings.slidesToShow:o["2xl"]=e.settings.slidesToShow});const d=(e,t="")=>{const a=t?`${t}:`:"";switch(e){case 1:default:return`${a}basis-full`;case 2:return`${a}basis-1/2`;case 3:return`${a}basis-1/3`;case 4:return`${a}basis-1/4`;case 5:return`${a}basis-1/5`;case 6:return`${a}basis-1/6`}},c=Math.max(o.base||1,o.sm||0,o.md||0,o.lg||0,o.xl||0,o["2xl"]||0),m=l.length<=c,{showArrows:u=!0,loop:p=!1,vertical:h=!1}=n;return e("div",{"data-testid":i||"Carousel",className:"mb-4",children:t(_a,{opts:{align:"start",loop:!m&&p,slidesToScroll:1},orientation:h?"vertical":"horizontal",className:"w-full",children:[e(La,{className:"-ml-2 md:-ml-4",children:l?.map((t,a)=>{const i=s?s(t,a):((t,a)=>e("div",{className:"px-2 overflow-hidden rounded-lg",children:e(ea,{variant:t.variant,data:{...t.data,onClick:r?()=>{r(t.data.id)}:void 0},className:t.className},a)},a))(t,a),l=N("pl-2 md:pl-4",o.base&&d(o.base),o.sm&&d(o.sm,"sm"),o.md&&d(o.md,"md"),o.lg&&d(o.lg,"lg"),o.xl&&d(o.xl,"xl"),o["2xl"]&&d(o["2xl"],"2xl"));return e(wa,{className:l,children:i},a)})}),!m&&u&&t(a,{children:[e(Da,{className:"-left-2"}),e(Pa,{className:"-right-2"})]})]})})};var Ma;ka.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"}(Ma||(Ma={}));const Ua=({testID:a,cardData:i,title:l,description:n,withSeparators:s,spacing:o=Ma.MODULE})=>{const d=r(null),c=f(d,{once:!0}),m=i?.length%2==0,u=`lg:grid-cols-${i?.length>4?4:i?.length}`,p=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:d,"data-testid":a||"PanelCards",className:N("relative m-auto px-4 lg:px-0 w-full flex flex-col flex-none flex-nowrap",o),children:[(l||n)&&t("div",{className:"relative text-center py-8",children:[l&&e(ta,{text:l}),n&&e("div",{className:"mt-2",children:e(We,{align:Ue.CENTER,children:n})})]}),e("div",{className:I(N("gap-4 md:gap-4 lg:gap-8 items-center md:items-start justify-center w-full m-auto grid",p,u)),children:i?.map((t,a)=>e("div",{className:"flex gap-8 justify-between items-center",children:e("div",{className:N("relative flex flex-1 items-center justify-center",{"":s}),style:{transform:c?"none":"translateY(200px)",opacity:c?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*a}s`},children:e(ea,{...t})})},`card-${a}`))})]})};Ua.displayName="PanelCards";const Fa=({testID:a,title:i,description:l,inversed:r,assets:n,buttonData:s,withBg:o=!0,spacing:d=Ma.DEFAULT,chips:c})=>t("div",{"data-testid":a||"PanelFeature",className:N("relative m-auto w-full flex flex-none flex-nowrap px-4 lg:px-0",d),children:[o&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-square absolute -top-24 -left-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-700 to-primary-300"}),e(ma,{children:t("div",{className:N("relative flex flex-col-reverse sm:flex-col md:flex-row lg:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 md:items-center gap-16",{"flex-row-reverse":r}),children:[t("div",{className:"w-full md:w-1/2 w-1/2 flex flex-col items-start justify-center gap-8",children:[e("div",{className:"relative text-center md:text-left",children:e(ta,{text:i,flush:!0})}),e("div",{className:"relative text-center md:text-left",children:e(We,{className:"mb-0",children:l})}),c&&e("div",{className:"grid grid-cols-3 gap-2 mx-auto md:mx-0",children:c?.map((t,a)=>e(Ye,{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(Pe,{...s})})]}),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(pa,{bgAsset:n.bgAsset,focalAsset1:n.focalAsset1,focalAsset2:n.focalAsset2,focalAsset3:n.focalAsset3})})})]})})]});Fa.displayName="PanelFeature";const Ba=n(function({url:t,sources:a,onReady:i,onExitFullScreenCallback:l,className:n,options:o={playsinline:!0,preferFullWindow:!0},isYoutube:c=!1,defaultAudioTrack:m="No Music",rounded:u=!0,aspectRatioValue:h,isModal:f=!1},E){const g=r(null),A=r(null),S=r(null),v=s(()=>{switch(h){case"4/3":return{aspectRatio:"4:3",className:"aspect-[4/3]"};case"1/1":return{aspectRatio:"1:1",className:"aspect-[1/1]"};case"3/4":return{aspectRatio:"3:4",className:"aspect-[3/4]"};case"9/16":return{aspectRatio:"9:16",className:"aspect-[9/16]"};case"16/7":return{aspectRatio:"16:7",className:"aspect-[16/7]"};case"16/5":return{aspectRatio:"16:5",className:"aspect-[16/5]"};default:return{aspectRatio:"16:9",className:"aspect-[16/9]"}}},[h]);return d(()=>{if(c)return;const e={autoplay:!0,controls:!0,muted:!1,playsInline:!0,preferFullWindow:!0,responsive:!0,fill:!0,fluid:!f,controlBar:{skipButtons:ne?{}:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}},...o,sources:a};if(S.current){const e=S.current;e.autoplay(o.autoplay),e.src(o.sources)}else{const t=document.createElement("video-js");A?.current?.appendChild(t);const a=S.current=se(t,e,()=>{se.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"),l&&"function"==typeof l&&l())})}},[o,A]),p(E,()=>({play:()=>{S.current&&S.current.play()},pause:()=>{S.current&&S.current.pause()},fullscreen:()=>{S.current&&S.current.requestFullscreen()}})),d(()=>{if(c)return;const e=S.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),S.current=null)}},[S]),e("div",c&&t?{"data-testid":"Video",className:N("relative w-full h-full aspect-[16/9]",n),children:e(re,{ref:g,className:"react-player",url:t,width:"100%",height:"100%",controls:!0,onReady:i,config:{youtube:{playerVars:{modestbranding:1,disablekb:1}}}})}:f?{ref:A,className:"relative w-full h-full"}:{className:I(N("relative w-full overflow-hidden h-full object-cover",{rouded:u},v.className,n)),children:e("div",{"data-vjs-player":!0,children:e("div",{ref:A,className:N("object-cover bg-black flex items-center justify-center",v.className)})})})});Ba.displayName="Video";const Ga=({testID:a,title:i,contentComponent:l,description:n,image:o,buttonData:c,inversed:m=!1,withBg:u=!0,spacing:p,video:h,headingTag:E,className:g})=>{const A=v(),C=r(null),b=f(C),T={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};d(()=>{b&&A.start(e=>({transform:"none",transition:{...T,delay:.1*e}}))},[A,b]);const R=s(()=>{switch(h?.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]"}},[h]),O=m?"translateX(100px)":"translateX(-100px)";return t("div",{"data-testid":a||"PanelHero",className:I(N("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",p,g)),children:[u&&e("div",{className:N("rounded-full blur-[200px] flex flex-none aspect-square absolute w-[700px] bg-gradient-to-b md:bg-gradient-to-r from-primary-200 to-primary-200 dark:from-primary-800 dark:to-primary-800 z-0",{"-bottom-24 right-0":!m,"-top-24 left-0":m})}),e(ma,{children:t("div",{className:N("relative flex flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-0 md:gap-16",{"md:flex-row-reverse":m}),children:[e("div",{ref:C,className:"w-full md:w-1/2 w-1/2 flex flex-col items-start justify-center z-10",children:t("div",{className:N("relative flex flex-col gap-4 from-body-bg dark:from-body-bg-dark 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(S.div,{initial:{transform:O},custom:0,animate:A,children:e(ta,{text:i,tag:E})}),l&&e(S.div,{initial:{transform:O},custom:1,animate:A,children:l}),n&&e(S.div,{initial:{transform:O},custom:1,animate:A,children:e(vt,{className:"mb-0",align:m?Ue.LEFT:Ue.RIGHT,data:n})}),c&&e(S.div,{initial:{transform:O},custom:2,animate:A,children:e("div",{className:N("flex items-center",{"justify-end":!m,"justify-start":m}),children:e(Pe,{...c})})})]})}),e("div",{className:"relative w-full md:w-1/2 w-1/2 z-0",children:t("div",{className:N("relative md:scale-[1.35] rounded overflow-hidden shadow",R),children:[o&&e(tt,{src:o,alt:i,fill:!0}),h&&e(Ba,{sources:h.sources,options:{autoplay:!0,muted:!0,controls:!1,loop:!0,playsinline:!0},aspectRatioValue:h.aspectRatioValue})]})})]})})]})};Ga.displayName="PanelHero";const Ha=({testID:a,title:i,description:l,image1:r,image2:n,iosLink:s="#",androidLink:o="#",inversed:d=!1,withBg:c=!0,spacing:m=Ma.MODULE})=>t("div",{"data-testid":a||"PanelFeature",className:N("relative m-auto w-full flex flex-none flex-nowrap",m),children:[c&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-square absolute -bottom-24 -right-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-700 to-primary-300"}),e(ma,{children:t("div",{className:N("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-tertiary-300 dark:bg-secondary rounded p-8 shadow",{"flex-row-reverse":d}),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(tt,{src:n,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(tt,{src:r,alt:i})})]}),t("div",{className:"w-full md:w-1/2",children:[e("div",{children:e(ta,{text:i})}),e("div",{children:e(We,{children:l})}),t("div",{className:"flex items-center justify-start gap-4",children:[e("div",{className:"relative w-[150px] h-[50px]",children:e(Me,{href:s,target:"_blank",hideExternalIcon:!0,children:e(tt,{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(Me,{href:o,target:"_blank",hideExternalIcon:!0,children:e(tt,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});Ha.displayName="PanelProduct";const Wa=({testID:a,className:i,title:l,description:r,spacing:n=Ma.NONE,videoProps:s})=>t("div",{"data-testid":a||'"PanelVideo"',className:I(N("relative w-full overflow-hidden",`md:aspect-[${s.aspectRatioValue}]`,n,i)),children:[e(Ba,{rounded:!1,className:"xl:max-h-[750px]",aspectRatioValue:s.aspectRatioValue,options:{autoplay:!0,muted:!0,controls:!1,loop:!0,playsinline:!0,preferFullWindow:!1,...s?.options},sources:s?.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:[l&&e(S.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(ta,{text:l,colorOverride:"text-white before:bg-white border-white"})})}),r&&e(S.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(We,{children:r})})})]})]})]});Wa.displayName="PanelVideo";const Ya=({testID:a,title:i,description:l,image:n,buttonData:s,inversed:o=!1,withBg:c=!0,spacing:m,video:u,headingTag:p,className:h,bgImage:E})=>{const g=v(),A=r(null),C=f(A),b={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};d(()=>{C&&g.start(e=>({transform:"none",transition:{...b,delay:.1*e}}))},[g,C]);const T="translateY(100px)";return t("div",{"data-testid":a||"PanelIntro",className:I(N("relative m-auto w-full flex flex-none flex-nowrap py-24 sm:py-32 md:py-48 lg:py-56",m,h)),children:[c&&e("div",{className:N("rounded-full blur-[200px] flex flex-none aspect-square absolute w-[700px] opacity-30 bg-gradient-to-b md:bg-gradient-to-r from-primary-700 to-primary-300 z-0",{"-bottom-24 right-0":!o,"-top-24 left-0":o})}),E&&t("div",{className:"absolute inset-0 z-0",children:[e(tt,{src:E,alt:i,className:"object-cover opacity-50"}),e("div",{className:"absolute inset-0 bg-gradient-to-t from-body-bg to-transparent"})]}),e(ma,{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(S.div,{initial:{transform:T},custom:0,animate:g,children:e(ta,{text:i,tag:p})}),l&&e(S.div,{initial:{transform:T},custom:1,animate:g,children:e(vt,{className:"mb-0",align:Ue.CENTER,data:l})}),s&&e(S.div,{initial:{transform:T},custom:2,animate:g,children:e("div",{className:"flex items-center",children:e(Pe,{...s})})})]})}),(n||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:[n&&e(tt,{src:n,alt:i,fill:!0}),u&&e(Ba,{sources:u.sources,options:{autoplay:!0,muted:!0,controls:!1,loop:!0},aspectRatioValue:u.aspectRatioValue})]})})]})})]})};Ya.displayName="PanelIntro";const Va=({testID:a,withBg:i=!0,spacing:l,className:r,children:n,title:s,headingTag:o})=>t("div",{"data-testid":a||"PanelCustom",className:I(N("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",l,r)),children:[i&&e("div",{className:"rounded-full blur-[200px] flex flex-none aspect-square absolute w-[700px] opacity-20 bg-gradient-to-b md:bg-gradient-to-r from-primary-700 to-primary-300 z-0"}),e(ma,{children:t("div",{className:"relative flex flex-col gap-4 items-center justify-center",children:[e(ta,{text:s,tag:o}),n&&e("div",{children:n})]})})]});var za;Va.displayName="PanelCustom",function(e){e.BASIC="basic",e.MEDIA="media",e.VIDEO="video",e.ICON="icon",e.HORZ="horz",e.DATA="data"}(za||(za={}));const ja=({testID:t,cols:a})=>{const i=r(null),l="aspect-[9/16]";return e("div",{ref:i,"data-testid":t||"PanelScroller",className:"relative",children:e("div",{className:N("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)=>e("div",{className:"relative",children:e(ka,{data:t?.images?.map((e,t)=>({variant:za.BASIC,data:{id:`image-${t}`,image:{src:e,alt:`Image ${t+1}`,aspectRatio:l},scaleOnHover:!1},className:l})),carouselOptions:{slidesPerView:{base:1},vertical:!0,loop:!0,showArrows:!1}})},a))})})};ja.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(ea,{variant:t.variant,data:{...t.data,onClick:()=>i(t.data.id)}},a))});Ka.displayName="CardGrid";const qa=({handleSubmit:t=()=>{}})=>{const a=Kt();return e("div",{"data-testid":"PromoCodeForm",className:"form-wrapper",children:e(aa,{onSubmit:t,submit:a?.FORMS?.PROMO_CODE_FORM?.SUBMIT,children:e(ra,{name:"promoCode",type:ia.TEXT,label:a?.FORMS?.PROMO_CODE_FORM?.PROMO_CODE})})})};qa.displayName="PromoCodeForm";const $a=({testID:i,isCheckout:l})=>{const n=zt(),s=Kt(),[o,m]=c(!1),u=r(null),p=n?.value?.promoCode?.code,h=e=>{u.current&&!u.current.contains(e.target)&&m(!1)};return d(()=>(document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}),[]),t("div",{"data-testid":i||'"Cart"',className:"relative",children:[e("div",{className:"relative",children:!l&&t(a,{children:[e(Pe,{rounded:!0,icon:"mdi:cart",onClick:e=>{e.stopPropagation(),m(!o)}}),n?.value?.items&&n.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(We,{className:"mb-0 text-white text-sm",children:String(n?.value?.items.length)})})]})}),(o||l)&&t("div",{ref:u,className:N("min-w-128 text-body-text dark:text-body-text-dark bg-body-bg dark:bg-body-bg-dark",{"rounded shadow absolute top-12 p-4 right-0":!l}),children:[!l&&e(ta,{tag:Xe.H3,text:"Cart"}),n?.value?.items&&n?.value?.items.length>0&&t("div",{children:[e(rt,{as:lt.UL,className:"",children:n?.value?.items.map(a=>{const i=a.title||a.generatedTitle||a.uuid;return e(st,{as:"li",children:t("div",{className:"flex flex-row gap-4 p-2 border border-solid border-grey-100 rounded mb-2",children:[e(Pe,{variant:Le.LINK,className:"w-full p-0",onClick:()=>n?.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(tt,{src:a.image,alt:"item image",className:"aspect-[2/1] w-auto h-auto object-cover"})}),t("div",{className:"max-w-64 flex-1 text-left",children:[e(We,{className:"mb-0 line-clamp-2",children:i}),t(We,{className:"mb-0",children:["$",a?.options?.selectedPrice," USD"]})]})]})}),e("div",{className:"flex items-center justify-center",children:e(Pe,{id:"remove-cart-btn",rounded:!0,variant:Le.SECONDARY,type:_e.BUTTON,onClick:()=>{n?.handleRemoveFromCart?.(a.uuid),n?.value?.items&&1===n.value.items.length&&setTimeout(()=>{m(!1)},2e3)},icon:"mdi:delete"})})]})},a.uuid)})}),e("div",{className:"mt-4"}),l&&t(a,{children:[e("div",{className:"flex items-start justify-start",children:e(qa,{handleSubmit:e=>n?.handleAddPromoCode?.(e)})}),t(We,{children:[s?.UI?.TAX,": ",n?.value?.taxRate?.percentage,"%"]}),t(We,{children:[s?.UI?.TAX_DUE,": ",n?.value?.currency?.symbol,n?.value?.taxAmount," ",n?.value?.currency?.code]}),p&&t("div",{className:"flex gap-4 items-center justify-between",children:[t(We,{children:[s?.UI?.PROMO_CODE,": ",p]}),e("div",{children:e(Pe,{rounded:!0,id:"remove-promo-btn",variant:Le.SECONDARY,outline:!0,type:_e.BUTTON,onClick:()=>n?.handleRemovePromoCode?.(p),className:"",icon:"mdi:window-close"})})]})]}),t(We,{children:[s?.UI?.TOTAL,": ",n?.value?.cartTotal," ",n?.value?.currency?.showCode&&n?.value?.currency?.code]}),!l&&t("div",{className:"flex items-center justify-between gap-4",children:[e("div",{className:"",children:e(Pe,{size:we.SMALL,variant:Le.SECONDARY,onClick:()=>m(!1),children:s?.UI?.CONTINUE_BROWSING})}),e("div",{className:"",children:e(Pe,{size:we.SMALL,variant:Le.PRIMARY,onClick:()=>{m(!1),n?.handleCheckout?.()},children:s?.UI?.CHECKOUT})})]})]}),(!n?.value?.items||0===n?.value?.items?.length)&&e("div",{children:e(Je,{tag:Xe.H5,children:s?.UI?.EMPTY})})]})]})};$a.displayName="Cart";const Xa=({testID:a,hideMenu:i=!1,className:l})=>{const r=Gt(),n=Kt(),[s,o]=c("hidden"),[d,m]=c(!1),u=()=>{o("hidden"===s?"block":"hidden")},p="relative z-10 w-full m-auto py-4 bg-header-bg dark:bg-darkHeaderBackground";return e("header",r?.brand?.logoOnly?{"data-testid":a||'"Header"',className:I(N(p,l)),children:e("div",{className:"relative w-full flex flex-col md:flex-row justify-center items-center",children:r?.brand?.logo&&e("div",{className:N("relative w-16 md:w-24",r?.brand?.logoAspectRatio),children:e(Me,{href:"/",children:e(nt,{logo:r?.brand?.logo,aspectRatioClass:r?.brand?.logoAspectRatio})})})})}:{"data-testid":a||'"Header"',className:I(N(p," text-header-text dark:text-darkHeaderText",l)),children:t(ma,{padded:!0,children:[t("div",{className:"relative w-full flex",children:[r?.brand?.logo&&e("div",{className:N("relative h-12",r?.brand?.logoAspectRatio),children:e(Me,{href:"/",children:e(nt,{logo:r?.brand?.logo,aspectRatioClass:r?.brand?.logoAspectRatio})})}),t("div",{className:"flex-1 hidden md:flex items-center justify-center",children:[r?.app?.isAuthenticated&&r?.header?.authNav&&e(da,{links:r.header.authNav,separators:!0}),!r?.app?.isAuthenticated&&r?.header?.anonNav&&e(da,{links:r.header.anonNav,separators:!0})]}),t("div",{className:"hidden md:flex items-center justify-center",children:[!r?.app?.isAuthenticated&&r?.app?.loginCallback&&e("div",{className:"w-32 flex justify-end",children:e(Pe,{onClick:r?.app?.loginCallback,children:n.UI.LOGIN})}),!r?.app?.isAuthenticated&&!r?.app?.loginCallback&&e("div",{className:"w-32 flex justify-end"}),r?.app?.isAuthenticated&&t("div",{className:"relative",children:[e(Pe,{onClick:()=>m(!d),icon:d?"mdi:user-outline":"mdi:user"}),e("div",{onClick:()=>m(!1),className:N("absolute bg-body-bg dark:bg-body-bg-dark shadow rounded py-2 px-6 right-0 top-12 z-20 text-body-text dark:text-body-text-dark text-right",{hidden:!d}),children:r?.header?.profile&&e(da,{links:r.header.profile,inline:!1})})]}),r?.app?.showCart&&e($a,{})]}),e("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e(Pe,{variant:Le.PRIMARY,icon:"mdi:menu",onClick:u})})]}),t("div",{className:N("navbar-menu relative z-50",s,{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-body-bg dark:bg-body-bg-dark border-r overflow-y-auto",children:[t("div",{className:"flex justify-between",children:[e("div",{className:"relative w-32",children:r?.brand?.logo&&e("div",{className:"relative w-32",children:e(nt,{logo:r?.brand?.logo,aspectRatioClass:r?.brand?.logoAspectRatio})})}),e("div",{children:e(Pe,{variant:Le.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:[r?.app?.isAuthenticated&&r?.header?.authNav&&e(da,{links:r.header.authNav,separators:!0}),!r?.app?.isAuthenticated&&r?.header?.anonNav&&e(da,{links:r.header.anonNav,separators:!0})]}),e("div",{className:"flex flex-1 justify-center pt-4",children:r?.app?.isAuthenticated&&r?.header?.profile&&e(da,{links:r.header.profile,separators:!0})}),r?.app?.isAuthenticated&&e("div",{className:"md:hidden flex justify-center",children:e(Pe,{onClick:r?.app?.logoutCallback,children:n.UI.LOGOUT})}),!r?.app?.isAuthenticated&&e("div",{className:"md:hidden flex justify-center",children:e(Pe,{onClick:()=>{r?.app?.loginCallback?.(),u()},children:n.UI.LOGIN})})]})]})]})]})})};Xa.displayName="Header";const Qa=({testID:a,className:i})=>{const l=m(Ft);return e("footer",{className:N("w-full z-10 pt-16 pb-8 bg-footer-bg dark:bg-darkFooterBackground text-footer-text dark:text-darkFooterText",i),children:t(ma,{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:[l?.brand?.logo&&e("div",{className:"relative w-24",children:e(nt,{logo:l?.brand?.logo,aspectRatioClass:l?.brand?.logoAspectRatio})}),l.footer?.about&&e("div",{children:e(We,{children:l.footer.about})}),e("div",{children:e(oa,{facebook:l.footer?.visitUs?.facebook,twitter:l.footer?.visitUs?.twitter,instagram:l.footer?.visitUs?.instagram,linkedin:l.footer?.visitUs?.linkedin,youtube:l.footer?.visitUs?.youtube})})]}),t("div",{className:"flex gap-4 flex-1 flex-col",children:[l.footer?.menus&&e("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:l.footer.menus.map((t,a)=>e("div",{className:"flex flex-1",children:e(da,{title:t.title,links:t.links,inline:!1})},`${t.title}--${a}`))}),l?.footer?.custom&&e("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:l.footer.custom})]})]}),t("div",{className:"flex items-center justify-center flex-col",children:[t(We,{align:Ue.CENTER,as:He.SMALL,children:["© ",(new Date).getFullYear()," ",pt.UI.COPYRIGHT," ",l.brand?.name]}),e(We,{align:Ue.CENTER,as:He.SMALL,children:pt.UI.ALL_RIGHTS_RESERVED})]})]})})};Qa.displayName="Footer";const Za=({testID:a,children:i,showHeader:l=!0,showFooter:r=!0,image:n,showOverlay:s=!0,isFlush:o,fixedHeader:d})=>t("div",{"data-testid":a||'"Screen"',className:"h-full flex flex-1 flex-col min-h-full overflow-x-hidden",children:[l&&e(Xa,{className:N({"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":d})}),t("main",{className:N("relative z-0 flex flex-1",{"pt-24 md:pt-32 lg:pt-40":n},{"pt-8 md:pt-12 lg:pt-12":!n&&!o}),children:[n&&t("div",{className:"absolute w-full aspect-[16/5] opacity-50 z-0 top-0 left-0 right-0",children:[e(tt,{src:n,alt:"background",priority:!0,sizes:"100vw",style:{objectFit:"cover"}}),s&&e("div",{className:"absolute w-full h-full bg-gradient-to-b from-transparent to-body-bg dark:to-body-bg-dark"})]}),e(ma,{padded:!o,isFlush:o,children:e("div",{className:"flex flex-col gap-8 h-full w-full",children:i})})]}),r&&e(Qa,{})]});Za.displayName="Screen";const Ja=({title:a,content:i})=>{const[l,r]=c(!1);return t(qe.Root,{open:l,onOpenChange:r,className:"mb-2",children:[t(qe.Trigger,{className:N("accordion-trigger w-full",{"accordion-trigger-open":l}),children:[e(We,{className:N("transition-all mb-0 mr-2",{"text-white":l}),children:a}),e("div",{className:"",children:e(ye,{name:l?"mdi:chevron-up":"mdi:chevron-down"})})]}),e(qe.Content,{children:e("div",{className:"p-2",children:e(We,{children:i})})})]})},ei=({testID:t,data:a,titleKey:i="title",contentKey:l="content"})=>e("div",{"data-testid":t||"Accordion",children:a.map((t,a)=>e(Ja,{title:t[i],content:t[l]},t[i]||a))});ei.displayName="Accordion";const ti=({testID:a,title:i,children:l,subscription:r,plans:n,paymentMethod:s,changeSubscriptionCallback:o,pauseSubscriptionCallback:d,updatePaymentMethodCallback:m,selectedPlanCallback:u,confirmPlanCallback:p,isLoading:h})=>{const f=Kt(),[E,g]=c(r?.id),[A,S]=c(!1),[v,C]=c(!1),I=e=>{g(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(Je,{children:i}),!r&&e("div",{className:"rounded-lg shadow-md p-6 md:p-8 lg:p-10 bg-card-bg dark:bg-darkCardBackground max-w-4xl mx-auto w-full text-center",children:t("div",{className:"mb-4",children:[e(Je,{tag:Xe.H3,className:"mb-2",children:f.UI.NO_ACTIVE_SUBSCRIPTION}),e(We,{className:"text-gray-600 dark:text-gray-400",children:f?.UI?.NO_SUBSCRIPTION_DETAILS})]})}),r&&t("div",{className:"rounded-lg shadow-md p-6 md:p-8 lg:p-10 bg-card-bg 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(We,{className:"text-sm text-gray-500 dark:text-gray-400 mb-1 uppercase tracking-wide",children:f?.UI?.CURRENT_PLAN}),e(Je,{tag:Xe.H2,className:"mb-0",children:r.plan}),r.planDescription&&e(We,{className:"text-gray-600 dark:text-gray-400 mt-1 mb-0",children:r.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}}})(r.status);return t("div",{className:N("inline-flex items-center gap-2 px-4 py-2 rounded-full text-sm font-semibold shadow-sm",a.bgColor,a.textColor),children:[e(ye,{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:r.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(We,{className:"text-gray-500 dark:text-gray-400 mb-1",children:f?.UI?.NEXT_BILLING_DATE}),e(We,{className:"mb-0 font-medium",children:r.nextBillingDate})]}),r.endDate&&t("div",{className:"flex flex-col",children:[e(We,{className:"text-gray-500 dark:text-gray-400 mb-1",children:f?.UI?.END_DATE}),e(We,{className:"mb-0 font-medium text-red-600 dark:text-red-400",children:r.endDate})]})]}),s&&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(We,{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(ye,{name:"mdi:credit-card",className:"w-6 h-6 text-primary"}),t("div",{className:"flex flex-col",children:[t(We,{className:"mb-0 font-medium",children:[s.cardType," ",s.cardNumber]}),t(We,{className:"text-sm text-gray-500 dark:text-gray-400 mb-0",children:["Expires ",s.cardExpiry]})]})]})]})})]}),r&&t("div",{className:"flex justify-center gap-4 flex-wrap",children:[o&&e(Pe,{variant:Le.PRIMARY,onClick:()=>S(!A),children:A?f?.UI?.CANCEL:f?.UI?.CHANGE_PLAN}),m&&e(Pe,{variant:Le.SECONDARY,onClick:()=>{S(!1),oe({title:f?.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:f?.UI?.YES,onClick:m},{label:f?.UI?.NO,onClick:()=>{}}]})},children:"Update Payment Method"}),!r.endDate&&e(Pe,{variant:Le.SECONDARY,onClick:()=>{S(!1),oe({title:f?.UI?.CONFIRM_TO_SUBMIT,message:f?.UI?.CONFIRM_TO_PAUSE,buttons:[{label:f?.UI?.YES,onClick:d},{label:f?.UI?.NO,onClick:()=>{}}]})},children:f?.UI?.PAUSE_SUBSCRIPTION})]}),A&&n&&l&&t("div",{className:"flex items-center flex-col gap-4",children:[!v&&e("div",{className:"flex flex-col md:flex-row gap-4 justify-center flex-wrap",children:n.map(t=>e("div",{className:N("flex w-[300px] lg:flex-1",{"opacity-50":E&&E!==t.id},{hidden:v&&E&&E!==t.id}),children:e(ea,{variant:za.ICON,className:N({"rounded border-2 border-primary bg-tertiary":E===t.id},{"border-2 border-card-bg":E!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>I(t.id)}})},t.id))}),e("div",{children:e(Pe,{variant:Le.PRIMARY,onClick:()=>{oe({title:f?.UI?.CONFIRM_TO_SUBMIT,message:f?.UI?.CONFIRM_TO_CHANGE_PLAN,buttons:[{label:f?.UI?.YES,onClick:()=>{E&&p&&"function"==typeof p&&p(E),S(!1)}},{label:f?.UI?.NO,onClick:()=>S(!1)}]})},disabled:E===r?.id,children:f?.UI?.CONFIRM_TO_SUBMIT})})]}),r&&l&&!A&&e("div",{className:"flex items-center flex-col gap-4",children:l}),!r&&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:n.map(t=>e("div",{className:N("flex flex-1 w-[300px]",{"opacity-50":E&&E!==t.id},{hidden:v&&E&&E!==t.id}),children:e(ea,{variant:za.ICON,className:N({"rounded border-2 border-primary bg-tertiary":E===t.id},{"border-2 border-card-bg":E!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>I(t.id)}})},t.id))}),e("div",{children:e(Pe,{variant:Le.PRIMARY,onClick:()=>{C(!0),E&&p&&"function"==typeof p&&p(E)},disabled:!E,children:f?.UI?.CONFIRM_CHOICE})})]}),e("div",{children:l})]})]}),h&&e("div",{className:"absolute top-0 left-0 w-full h-full bg-body-bg bg-opacity-50 flex items-center justify-center",children:e(De,{})})]})};var ai;ti.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"}(ai||(ai={}));const ii=({spacing:t=ai.DEFAULT,children:a,narrow:i,flush:l,className:r})=>{const n=N("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":l},r);return e("div",{"data-testid":"ContentPageLayout",className:n,children:a})};var li;ii.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"}(li||(li={}));const ri=({className:t,children:a,size:i=li.DEFAULT})=>{const l=N("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:l,children:a})};ri.displayName="ContentRowsLayout";const ni=({testID:t,inputCallback:a,seperator:i,numInputs:r=4,shouldAutoFocus:n=!1,size:o="medium"})=>{const[d,m]=c("");l.useEffect(()=>{d&&4===d.length&&void 0!==a&&"function"==typeof a&&a(d)},[d]);const u=s(()=>{switch(o){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"}}},[o]);return e("div",{"data-testid":t||'"OTPInput"',className:"foo-bar",children:e(de,{value:d,onChange:m,inputType:"number",numInputs:r,shouldAutoFocus:n,renderSeparator:i?()=>e("div",{className:"flex items-center justify-center",children:e(ye,{name:"mdi:dot",className:"opacity-50"})}):e("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e("input",{...t,className:N("remove-arrow form-item text-input w-12")}),inputStyle:{width:u.width,height:u.height}})})};ni.displayName="OTPInput";const si=({testID:a,modalOpen:i=!0,videoProps:l,ariaHideApp:r=!1,onCloseCallback:n=()=>{}})=>{const[s,o]=c(!1);return d(()=>{i&&o(!0)},[i]),e(ce,{isOpen:s,onRequestClose:n,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:r,"data-testid":a||"FullScreenVideoModal",children:t("div",{className:"h-full relative",children:[e(Pe,{rounded:!0,icon:"mdi:close",onClick:n,className:"absolute top-4 right-4 z-50"}),e(Ba,{...l})]})})};si.displayName="FullScreenVideoModal";const oi=({testID:a,children:i,image:l,imageMob:r})=>l||r?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(${l})`}}),i]}):e("div",{children:i});var di;function ci({className:a,label:i,onChange:l,options:r}){return r?t("div",{className:N("m-0 p-0 mb-2 border-none",a),children:[e(at,{className:"text-sm",transform:Fe.UPPERCASE,children:i}),e(la,{id:i||"Sorting",options:r,onChange:e=>l(e.target.value)})]}):null}function mi({className:t,current:a,resultsPerPage:i=10,onChange:l,totalPages:r,...n}){return e(Ce,{current:a,onChange:l,simple:!0,pageSize:i,total:r*i,className:N("m-0 p-0 list-none text-body-text flex gap-2 text-center items-center [&>li>span]:px-2 [&>li>input]:text-black [&>li>input]:rounded [&>li>input]:text-center",t),locale:Ie,prevIcon:e("div",{className:"text-body-text",children:e(ye,{name:"mdi:chevron-left"})}),nextIcon:e("div",{className:"text-body-text",children:e(ye,{name:"mdi:chevron-right"})}),...n})}function ui({className:i,onChange:l,options:r,label:n}){return r?t("div",{className:N("m-0 p-0 mb-2 border-none",i),children:[e(at,{className:"text-sm mr-2",transform:Fe.UPPERCASE,children:pt.UI.SHOW}),e(la,{id:n||"ResultsPerPage",options:r.map(e=>({label:e.toString(),value:e})),onChange:e=>l(e.target.value),className:"min-w-20"})]}):e(a,{})}function pi({className:i,end:l,searchTerm:r,start:n,totalResults:s,...o}){return t("div",{className:N("m-0 p-0 flex-1",i),...o,children:["Showing"," ",t("strong",{children:[n," - ",l]})," ","out of ",e("strong",{children:s}),r&&t(a,{children:[" ","for: ",e("em",{children:r})]})]})}function hi({className:a,onChange:i,onSubmit:l,wasSearched:r,placeholder:n,allowReset:s=!1,resetTrigger:o=()=>{}}){return e("div",{className:N("m-0 md:px-48",a),children:t("form",{onSubmit:e=>l(e),className:"flex items-center",children:[e("div",{className:"flex-1 bg-body-bg dark:bg-body-bg-dark bg-opacity-80 rounded",children:e(ut,{name:"SearchBoxInput",type:mt.TEXT,placeholder:n||"Search now...",onChange:e=>{i(e?.target?.value)}})}),e("div",{className:"pl-4",children:t("div",{className:"flex flex-row gap-2",children:[r&&s&&e(Pe,{type:_e.BUTTON,onClick:()=>o("",{shouldClearFilters:!1}),variant:Le.SECONDARY,icon:"mdi:restore"}),e(Pe,{type:_e.SUBMIT,variant:Le.PRIMARY,icon:"mdi:magnify"})]})})]})})}function Ni({className:i,children:l,header:r,bodyContent:n,bodyFooter:s,bodyHeader:o,sideContent:d,showSidebar:c}){const m=N("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":!d});return t(a,{children:[t("div",{className:N("w-full flex flex-col",i),children:[e("div",{className:"m-auto md:py-0 w-full",children:r}),t("div",{className:N("md:grid m-auto md:py-0 w-full",{"md:grid-cols-1":!d,"md:grid-cols-[1fr_3fr]":d}),children:[!ne&&e("div",{className:m,children:d}),t("div",{className:N("p-0 pt-2 md:p-6 md:pr-0",{"md:pl-0":!d}),children:[e("div",{className:"flex flex-row gap-8 items-center justify-end",children:o}),e("div",{className:"relative",children:l||n}),e("div",{className:"flex items-center justify-around",children:s})]})]})]}),ne&&c&&e("div",{className:"fixed z-10 w-full top-0 left-0 right-0 bottom-0 bg-body-bg px-4 overflow-scroll",children:d})]})}function fi({children:t,className:a,gridClasses:i,...l}){return e("ul",{className:N("relative grid gap-4 mb-4",i||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",a),...l,children:t})}function Ei(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function gi(e,t){if(e)return e[t]}function Ai(e){const t=gi(e,"snippet")||(a=function(e){return gi(e,"raw")}(e),a?String(a).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):"");var a;return Array.isArray(t)?t.join(", "):t}function Si({className:t,result:a,as:i,cardMap:l={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:r,titleField:n,imageField:s,videoField:o,descriptionField:d,metaDataFields:c,cardProps:m}=l,u=r&&Ai(a[r.fieldName]),p=n&&Ai(a[n.fieldName]),h=s&&Ai(a[s.fieldName]),f=h||Ai(a.image),E=o&&o.formatter?o.formatter(Ai(a[o.fieldName])):o&&Ai(a[o.fieldName]),g=d&&Ai(a[d.fieldName]),A=c&&c.map(e=>{const t=Ai(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)});return e("li",{className:N("relative",t),children:(()=>{const t={src:f||"",alt:p||"",title:p||"",width:500,height:500},r="function"==typeof l.actionsData?l.actionsData(a):l.actionsData,n={id:u,title:be.decode(p),image:t,video:E,description:g,metaData:A,actions:r,onClick:l.onClickLink};switch(i){case di.cardMedia:return e(ea,{variant:za.MEDIA,data:n,...m});case di.cardVideo:return e(ea,{variant:za.VIDEO,data:n,...m,isMuted:!1});default:return e(ea,{variant:za.BASIC,data:n,...m})}})()})}function vi({showOptions:i,sortOptions:l,resultAs:r=di.cardBasic,ResultFieldMap:n,config:o={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:d=[],noSidebar:m=!1,customConnector:u,showPagingInfo:p,gridClasses:h,initialState:N={},showTextSearch:f=!0}){const E=Kt(),g=s(()=>{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 me(u||e)},[]),A=s(()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:!0,apiConnector:g,hasA11yNotifications:!0,searchQuery:{filters:o.filters||[],search_fields:o.searchFields||{},result_fields:o.resultsFields||{},facets:o.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&&l&&l.length>0){const t=l[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,...N}}),[o]),[S,v]=c(!1),C=()=>{v(e=>!e)};return e(ue,{config:A,children:e(pe,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:s,setSearchTerm:c})=>e(a,{children:e(he,{children:e(Ni,{noSidebar:m,showSidebar:S,header:f&&e(ve,{view:t=>e(hi,{...t,wasSearched:s,placeholder:o.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(Pe,{onClick:C,icon:"mdi:close",children:E?.UI?.HIDE_FILTERS})}),s&&l&&e(ge,{label:"Sort by",sortOptions:l,view:ci}),d?.map(({field:t,label:a,view:i})=>e(Se,{field:t,label:a,view:i},t))]}),bodyContent:e(Ae,{shouldTrackClickThrough:!1,resultView:t=>e(Si,{...t,as:r,cardMap:n}),className:"list-none p-0 m-0",view:t=>e(fi,{...t,gridClasses:h})}),bodyHeader:t(a,{children:[s&&p&&e(fe,{view:pi}),s&&i&&e(Ee,{view:ui,options:i}),s&&l&&m&&e(ge,{label:"Sort by",sortOptions:l,view:ci}),s&&!m&&e("div",{className:"block md:hidden",children:e(Pe,{rounded:!0,onClick:C,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e(Ne,{view:mi})})})})})})}function Ci({className:a,label:i,onChange:l,options:r}){const n=r.map(e=>({value:e.value,label:`${e.value} (${e.count})`}));return t("fieldset",{className:N("m-0 p-0 mt-4 mb-2 border-none",a),children:[e(at,{className:"text-sm",transform:Fe.UPPERCASE,children:i}),e(la,{id:i,options:n,onChange:e=>{console.debug("SingleSelectFacet onChange",e.target.value),l(e.target.value)}})]})}function Ii({className:a,label:i,onRemove:l,onSelect:r,options:n}){const s=n.filter(e=>e.selected).map(e=>e.value)[0];return e("fieldset",{className:N("m-0 p-0 mt-4 mb-2 border-none",a),children:t("div",{children:[e(at,{transform:Fe.UPPERCASE,children:i}),t("ul",{className:"ul list-none p-0",children:[s&&t("li",{className:"m-0 flex justify-between items-center flex-1",children:[Ei(s),e("span",{className:"ml-1 px-1",children:e(Pe,{onClick:()=>l(s),size:we.SMALL,rounded:!0,children:e(ye,{name:"mdi:close"})})})]}),!s&&n.map(a=>{const l=Ei(a.value);return t("li",{className:"m-0 flex justify-between",children:[e("a",{className:"no-underline visited:text-body-text","data-transaction-name":`facet - ${i}`,href:"/",onClick:e=>{e.preventDefault(),r(a.value)},children:e("label",{className:"label pl-0 leading-none text-body-text dark:text-body-text-dark",children:l})}),e(We,{as:He.SPAN,size:Ge.MEDIUM,children:a.count.toLocaleString("en")})]},l)})]})]})})}function bi({className:i,label:l,onMoreClick:r,onRemove:n,onSelect:s,options:o,showMore:d,showSearch:c,onSearch:m,searchPlaceholder:u}){return o?t("fieldset",{className:N("m-0 p-0 mt-4 mb-2 border-none",i),children:[e(at,{className:"text-sm",transform:Fe.UPPERCASE,children:l}),c&&e("div",{className:"mt-1",children:e(ut,{type:mt.SEARCH,placeholder:u||"Search",onChange:e=>{m(e.target.value)}})}),t("div",{className:"my-4",children:[o?.length<1&&e("div",{children:"No matching options"}),o?.map(a=>{const i=a.selected,r=a.value,o=Ei(r);return t("div",{className:"flex justify-between pb-2",children:[e(ke,{id:`facet_${l}${o}`,"data-transaction-name":`facet - ${l}`,checked:i,onChange:()=>i?n(r):s(r),label:o}),e(We,{as:He.SPAN,size:Ge.SMALL,children:a.count.toLocaleString("en")})]},o)})]}),d&&e(Pe,{size:we.SMALL,variant:Le.TERTIARY,onClick:r,"aria-label":"Show more options",children:"+ More"})]}):e(a,{children:"Options required"})}oi.displayName="FullContentBackgroundImage",function(e){e.cardBasic="cardBasic",e.cardMedia="cardMedia",e.cardVideo="cardVideo"}(di||(di={})),ci.displayName="Sorting",mi.displayName="Paging",ui.displayName="ResultsPerPage",pi.displayName="PagingInfo",hi.displayName="SearchBox",Ni.displayName="Layout",fi.displayName="Results",Si.displayName="Result",Ci.displayName="SingleSelectFacet",Ii.displayName="SingleLinksFacet",bi.displayName="MultiCheckboxFacet";const Ti=({handleSubmit:t})=>{const a=Kt();return e("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e(aa,{onSubmit:t,submit:a.FORMS.RESET_PASSWORD_FORM.SUBMIT,children:e(ra,{name:"password",autoComplete:"new-password",type:ia.PASSWORD,label:a.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:Sa})})})};Ti.displayName="ResetPasswordForm";const Ri=({handleSubmit:a})=>{const i=Kt();return e("div",{"data-testid":"ResetPasswordAuthForm",className:"form-wrapper",children:t(aa,{onSubmit:a,submit:i.FORMS.RESET_PASSWORD_FORM.SUBMIT,children:[e(ra,{name:"current-password",autoComplete:"current-password",type:ia.PASSWORD,label:i.FORMS.RESET_PASSWORD_FORM_AUTH.CURRENT_PASSWORD,required:!0,validations:Sa}),e(ra,{name:"new-password",autoComplete:"new-password",type:ia.PASSWORD,label:i.FORMS.RESET_PASSWORD_FORM_AUTH.NEW_PASSWORD,required:!0,validations:Sa})]})})};Ri.displayName="ResetPasswordAuthForm";const Oi=({testID:a,initialValues:i,handleSubmit:l,avatarUpdateCallback:r})=>{const n=Kt();return e("div",{"data-testid":a||'"ProfileForm"',className:"form-wrapper",children:t(aa,{onSubmit:l,submit:n.FORMS.PROFILE_FORM.SUBMIT,initialValues:i,children:[e("div",{className:"mb-4 items-center justify-center flex",children:e(ht,{name:"avatar",initValue:i?.picture,fileUpdateCallback:r})}),e(ra,{name:"picture",type:ia.HIDDEN}),e(ra,{name:"firstName",type:ia.TEXT,label:n.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e(ra,{name:"lastName",type:ia.TEXT,label:n.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e(ra,{name:"email",type:ia.EMAIL,label:n.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:Aa})]})})};Oi.displayName="ProfileForm";const yi=({testID:a,title:i,image:l,user:r,logoutCallback:n,resetPasswordCallback:s,menu:o,shareURL:d})=>{const c=Kt();return t(Za,{"data-testid":a||"AccountScreen",image:l,children:[i&&e(ta,{text:i}),t("div",{children:[e("div",{className:"flex items-center justify-center",children:e(ht,{initValue:r?.profile?.picture,isEditable:!1})}),o&&e("div",{children:e(rt,{className:"flex items-center flex-col justify-center gap-2",children:o?.map((t,a)=>e(st,{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:[d&&t("div",{className:"flex items-center flex-col justify-center gap-1",children:[e(Je,{tag:Xe.H5,flush:!0,children:c.UI.SHARE}),t("div",{className:"flex gap-2",children:[e(G,{url:d,children:e(ye,{name:"mdi:facebook"})}),e(H,{url:d,children:e(ye,{name:"mdi:twitter"})}),e(V,{url:d,children:e(ye,{name:"mdi:linkedin"})}),e(W,{url:d,children:e(ye,{name:"mdi:whatsapp"})})]})]}),t("div",{className:"flex flex-col gap-2",children:[s&&e(Pe,{onClick:s,icon:"mdi:lock-reset",children:c?.UI.RESET_PASSWORD}),n&&e(Pe,{onClick:n,icon:"mdi:logout",children:c?.UI.LOGOUT})]})]})]})]})};yi.displayName="AccountScreen";const xi=({testID:a,title:i,image:l,formProps:r})=>t(Za,{"data-testid":a||"AuthScreen",image:l,children:[i&&e(ta,{text:i}),e("div",{className:"flex justify-center",children:e(Ta,{...r})})]});xi.displayName="AuthScreen";const _i=({testID:a,title:i,image:l,data:r,onPressCallback:n,isLoading:s,noDataMessage:o})=>{const d=Kt();return t(Za,{"data-testid":a||"CardGridScreen",image:l,children:[i&&e(ta,{text:i}),t("div",{children:[s&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),r&&e(Ka,{data:r,onPressCallback:n}),!r&&!s&&e("div",{children:e(We,{children:o||d?.UI?.NO_DATA})})]})]})};_i.displayName="CardGridScreen";const Li=({testID:a,title:i,image:l,searchProps:r})=>t(Za,{"data-testid":a||"CatalogueScreen",image:l,children:[i&&e(ta,{text:i}),e("div",{children:e(vi,{...r})})]});Li.displayName="CatalogueScreen";const wi=({testID:a,title:i,image:l,data:r,isLoading:n,onPressCallback:s})=>t(Za,{"data-testid":a||"ChallengeLibraryScreen",image:l,children:[i&&e(ta,{text:i}),n&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),r&&e("div",{children:e(Ka,{data:r,onPressCallback:s})})]});wi.displayName="ChallengeLibraryScreen";const Di="MMMM dd, yyyy",Pi="HH:mm",ki=({testID:a,title:i,image:l,created:r=0,body:n,days:o,puchaseLabel:d,hasAccess:c=!1,onPressCallback:m,purchaseCallback:u,isLoading:p})=>{const h=Kt(),N=s(()=>Te(new Date(1e3*r),Di),[r]);return t(Za,{"data-testid":a||"ChallengeScreen",image:l,children:[t("div",{children:[i&&e(ta,{text:i}),t(at,{children:[h.UI.CREATED,": ",N]}),!c&&t("div",{className:"flex flex-col gap-2 mb-4",children:[e(We,{bold:!0,className:"mb-0",children:h.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e(We,{className:"mb-0",children:h.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e("div",{children:e(Pe,{variant:Le.PRIMARY,onClick:u,isLoading:p,disabled:p,children:d})}),t(We,{size:Ge.SMALL,className:"mb-0",children:["** ",h.GLOBAL.SCREENS.CHALLENGE.PAYMENT_NOTE]})]})]}),e("div",{children:n&&e(vt,{data:n})}),e("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:o?.map(t=>e(ea,{variant:za.MEDIA,data:{id:t.id,title:t.title,image:{src:t.image,alt:t.title},raised:!0,onClick:c?()=>m(t.video):void 0,accessRestriced:!c}},t.id))})]})};ki.displayName="ChallengeScreen";const Mi=({testID:a,title:i,image:l,updated:r,content:n,isLoading:s,isLayoutMinimal:o=!1})=>{const d=Kt(),c=r?Te(new Date(1e3*r),"MMMM dd, yyyy HH:mm"):void 0;return t(Za,{"data-testid":a||"ContentScreen",image:l,showHeader:!o,showFooter:!o,children:[s&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),i&&e(ta,{text:i}),r&&e("div",{children:t(We,{children:[d?.UI?.UPDATED,": ",c]})}),n&&e("div",{children:e(vt,{data:n})})]})};Mi.displayName="ContentScreen";const Ui=({testID:a,title:i,image:l,user:r,latestData:n,recentdata:s,stats:o,promo:d,news:c,statsIsLoading:m,promosIsLoading:u,dataIsLoading:p,handleLatestDataPress:h,handleRecentDataPress:N,handleNewsDataPress:f,subscriptionStatus:E})=>{const g=Kt(),A={loop:!1,showArrows:!0,slidesPerView:{base:1,sm:2,md:3,lg:4}};return t(Za,{"data-testid":a||"DashboardScreen",image:l,children:[i&&e(ta,{text:i}),"none"===E&&e("div",{className:"mb-6",children:e(Nt,{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"===E&&e("div",{className:"mb-6",children:e(Nt,{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(We,{children:[g?.UI?.WELCOME," ",r?.name]})}),m&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),!m&&o&&t("div",{className:"mb-8",children:[e(Je,{tag:Xe.H4,children:g?.UI?.ACTIVITY}),e("div",{className:"flex flex-row gap-4 flex-wrap",children:o.map((t,a)=>e("div",{children:e(ea,{variant:t.variant,data:t.data})},`${t.data.id}-${a}`))})]}),p&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),!p&&n&&t("div",{children:[e(Je,{tag:Xe.H4,children:g?.UI?.LATEST_WORKOUTS}),e("div",{children:e(ka,{data:n,onPressCallback:h,carouselOptions:A})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),!u&&d&&t("div",{children:[e(Je,{tag:Xe.H4,flush:!0,children:g?.UI?.OUR_FEATURE}),e(Ga,{...d,withBg:!0,spacing:Ma.ATOM})]}),p&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),!p&&s&&t("div",{children:[e(Je,{tag:Xe.H4,children:g?.UI?.RECENTLY_ADDED}),e("div",{children:e(ka,{data:s,onPressCallback:N,carouselOptions:A})})]}),u&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),!u&&c&&t("div",{children:[e(Je,{tag:Xe.H4,children:g?.UI?.WHATS_NEW}),e("div",{children:e(ka,{data:c,onPressCallback:f,carouselOptions:A})})]})]})};Ui.displayName="DashboardScreen";const Fi=({testID:a,title:i,image:l,data:r,isLoading:n})=>t(Za,{"data-testid":a||"FAQScreen",image:l,children:[i&&e(ta,{text:i}),!r&&n&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),r&&e(ei,{data:r?.map(e=>({title:e.title||"",content:e.answer||""}))})]});Fi.displayName="FAQScreen";const Bi=({testID:a,image:i,panelIntroProps:l,panelVideoProps:r,panelFeatureProps:n,panelCardsProps:s,panelHerosProps:o,panelSubscriptionsProps:d,panelTestimonialsProps:c,panelDataCardsProps:m,panelProductProps:u,panelCustomProps:p,isFlush:h=!0})=>t(Za,{"data-testid":a||"HomeScreen",image:i,isFlush:h,children:[r&&e(Wa,{...r}),t(ma,{children:[l&&e(Ya,{...l}),n&&e(Fa,{...n}),s&&e(Ua,{...s}),o?.[0]&&e(Ga,{...o?.[0]}),d&&e(Ua,{...d}),c&&e(Ua,{...c}),o?.slice(1).map(t=>e(Ga,{...t},t.title)),m&&e(Ua,{...m}),u&&e(Ha,{...u}),p&&e(Va,{...p})]})]});Bi.displayName="HomeScreen";const Gi=({testID:a,title:i})=>{const l=Kt();return e(Za,{"data-testid":a||"LogoutScreen",children:t("div",{children:[i&&e(ta,{text:i}),e(We,{children:l?.UI?.PLEASE_WAIT}),e(De,{})]})})};Gi.displayName="LogoutScreen";const Hi=({testID:a,title:i,image:l,menu:r,isLoading:n=!1})=>t(Za,{"data-testid":a||"MenuScreen",image:l,children:[i&&e(ta,{text:i}),n&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),r&&e(rt,{children:r.map(t=>e(st,{as:"div",icon:t.icon,onClick:t.onPress,title:t.title},t.title))})]});Hi.displayName="MenuScreen";const Wi=({testID:a,title:i,message:l})=>{const r=Kt();return t(Za,{"data-testid":a||"NotFound",children:[e(ta,{text:i||r?.UI?.PAGE_NOT_FOUND_OOPS}),e(We,{children:l||r?.UI?.PAGE_NOT_FOUND_MESSAGE_OOPS}),e(Je,{tag:Xe.H5,flush:!0,children:t("span",{className:"flex flex-row gap-2 items-center",children:[e(ye,{name:"mdi:lightbulb"})," ",r?.UI?.WHAT_CAN_YOU_DO]})}),t(rt,{as:lt.UL,children:[e(st,{as:"li",children:r?.UI?.DOUBLE_CHECK_URL}),e(st,{as:"li",children:r?.UI?.RETURN_TO_HOMEPAGE}),t(st,{as:"li",children:[r?.UI?.EXPLORE_SITE,"."]})]}),e(We,{children:r?.UI?.STILL_NEED_HELP})]})};Wi.displayName="NotFoundScreen";const Yi=({testID:a,title:i,image:l,handleSubmitCallback:r})=>t(Za,{"data-testid":a||'"PasswordReset"',image:l,children:[i&&e(ta,{text:i}),e(Ti,{handleSubmit:r})]});Yi.displayName="PasswordResetScreen";const Vi=({testID:a,title:i,image:l,handleSubmitCallback:r})=>t(Za,{"data-testid":a||"PasswordResetAuthScreen",image:l,children:[i&&e(ta,{text:i}),e(Ri,{handleSubmit:r})]});Vi.displayName="PasswordResetAuthScreen";const zi=({testID:a,title:i,image:l,user:r,handleProfileSubmit:n,profilePicUpdateCallback:s})=>t(Za,{"data-testid":a||"ProfileScreen",image:l,children:[i&&e(ta,{text:i}),e(Oi,{initialValues:r?.profile,handleSubmit:n,avatarUpdateCallback:s})]});zi.displayName="ProfileScreen";const ji=({testID:a,end:i,live:r,start:n,title:o,video:d})=>{const c=Kt(),m=s(()=>{if(n)return Te(new Date(1e3*n),Di)},[n]),u=s(()=>{if(n)return Te(new Date(1e3*n),Pi)},[n]),p=s(()=>{if(i)return Te(new Date(1e3*i),Pi)},[i]),[h,N]=l.useState(!1);return t("div",{"data-testid":a||'"ScheduleItem"',className:"flex flex-col md:flex-col gap-4",children:[e(Je,{tag:Xe.H4,children:o}),r&&!h&&e("div",{className:"flex-1",children:e(Ba,{url:r,isYoutube:!0})}),m&&u&&p&&t("div",{children:[e(We,{className:"mb-0",children:c?.UI?.TODAYS_ITEMS}),t(at,{children:[m,": ",u," - ",p]})]}),d&&e("div",{className:"relative my-4",children:e(Pe,{onClick:()=>N(!0),icon:"mdi:video",children:c?.UI?.LAUNCH_PLAYBACK})}),h&&d&&e(si,{modalOpen:h,onCloseCallback:()=>N(!1),videoProps:{sources:[{src:d}],isModal:!0}})]})};ji.displayName="ScheduleItem";const Ki=({testID:a,scheduleItems:i,hasAccess:l})=>{const r=Kt(),[n,o]=c(new Date),d=s(()=>(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),l=Re(a),r=`${l.getFullYear()}-${String(l.getMonth()+1).padStart(2,"0")}-${String(l.getDate()).padStart(2,"0")}`;t.set(r,{...i,weekday:e})}else console.log(` ✗ No start timestamp for ${e}`)}})}),t):t})(i),[i]),m=s(()=>Array.from(d.keys()).map(e=>new Date(e)),[d]),u=h(e=>{if(!e)return null;const t=Re(e),a=`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`;return d.get(a)||null},[d]),p=s(()=>u(n),[n,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(Je,{tag:Xe.H5,transform:Ze.UPPERCASE,className:"mb-4",children:"Select a Date"}),e(Ve,{selected:n,onSelect:o,datesWithContent:m})]}),t("div",{children:[!l&&t("div",{children:[e(Je,{tag:Xe.H2,children:r?.UI?.ACCESS_RESTRICTED}),e(We,{children:r?.UI?.UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE})]}),l&&p&&e(ji,{title:p.title,live:p.live,start:p.start,end:p.end,video:p.video}),l&&!p&&n&&t("div",{children:[e(Je,{tag:Xe.H4,children:r?.UI?.NO_CLASS}),e(We,{children:"No class scheduled for this date."})]})]})]})};Ki.displayName="Schedule";const qi=({testID:a,title:i,image:l,scheduleData:r,isLoading:n=!1})=>t(Za,{"data-testid":a||"ScheduleScreen",image:l,children:[i&&e(ta,{text:i}),!r&&n&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(De,{})}),r&&e("div",{children:e(Ki,{...r})})]});qi.displayName="ScheduleScreen";const $i=({testID:a,title:i,image:l,subscriptionCallback:r,subscriptionManagerProps:n})=>{const s=Kt();return t(Za,{"data-testid":a||"SubscriptionScreen",image:l,children:[i&&e(ta,{text:i}),n&&e("div",{children:e(ti,{...n})}),r&&e("div",{className:"flex items-center justify-center",children:t("div",{className:"flex flex-col gap-4 items-center",children:[e(We,{children:s?.UI?.NEED_HELP_WITH_SUBSCRIPTION}),e("div",{children:e(Pe,{icon:"mdi:help",variant:Le.SECONDARY,onClick:r,children:s?.UI?.CONTACT_SUPPORT})})]})})]})};$i.displayName="SubscriptionScreen";const Xi=({testID:i,id:r,title:n,image:o,description:d,created:c=0,duration:m="PT0M",level:u,section:p,video:h,videoType:N="application/x-mpegURL",category:f,type:E,likeCallback:g,completedCallback:A,favouriteCallback:S,isLiked:v,isFavourite:C,relatedWorkouts:I,hasActiveSubscription:b,htmlDetails:T,noSubActionCallback:R,numCompleted:O="0"})=>{const y=Kt(),[x,_]=l.useState(!1),L=s(()=>Te(new Date(1e3*c),Di),[c]),w=s(()=>wt(m),[m]);return t(Za,{"data-testid":i||"WorkoutScreen",image:o,children:[t("div",{children:[n&&e(ta,{text:n}),e("div",{children:t(at,{children:[y.UI.CREATED,": ",L]})}),e("div",{children:t(at,{children:[y.UI.DURATION,": ",w]})})]}),!b&&t("div",{children:[e(Je,{tag:Xe.H4,children:y.UI.NO_ACTIVE_SUBSCRIPTION}),e(We,{children:y?.UI?.NO_SUBSCRIPTION_DETAILS}),R&&e(Pe,{rounded:!0,onClick:R,icon:"mdi:arrow-right-circle-outline",children:y.UI.SUBSCRIBE})]}),e("div",{children:e(Pe,{onClick:()=>{_(!0)},icon:"mdi:play",iconFirst:!0,disabled:!b,children:y.UI.START_WORKOUT})}),t("div",{className:"flex gap-2",children:[g&&e("div",{children:e(Pe,{onClick:()=>{r&&g&&"function"==typeof g&&(g(r),J.info(v?y.UI.REMOVED_LIKE:y.UI.ADDED_LIKE))},icon:v?"mdi:heart":"mdi:heart-outline",disabled:!b,rounded:!0})}),S&&e("div",{children:e(Pe,{onClick:()=>{r&&S&&"function"==typeof S&&(S(r),J.info(C?y.UI.REMOVED_FAVORITE:y.UI.ADDED_FAVORITE))},icon:C?"mdi:bookmark":"mdi:bookmark-outline",disabled:!b,rounded:!0})}),A&&e("div",{children:e(Pe,{rounded:!0,onClick:()=>{r&&A&&"function"==typeof A&&(A(r),J.info(y.UI.MARKED_COMPLETE))},icon:"mdi:plus",disabled:!b,children:O})})]}),!T&&d&&e("div",{children:e(We,{children:d})}),T&&d&&e("div",{children:e(vt,{data:d})}),t("div",{className:"flex gap-4 flex-wrap",children:[u&&t(at,{children:[y.UI.LEVEL,": ",u]}),p&&t(at,{children:[y.UI.SECTION,": ",p]}),f&&t(at,{children:[y.UI.CATEGORY,": ",f]}),E&&t(at,{children:[y.UI.TYPE,": ",E]})]}),I&&e(a,{children:e(ma,{isNarrow:!0,padded:!0,children:e("div",{children:e(Je,{children:y?.UI?.RELATED})})})}),e("div",{children:x&&e(si,{modalOpen:x,onCloseCallback:()=>_(!1),videoProps:{sources:[{src:h,type:N}],isModal:!0}})})]})};Xi.displayName="WorkoutScreen";var Qi={};export{ei as Accordion,yi as AccountScreen,Ht as AmplifyContext,Wt as AmplifyProvider,Oe as AnimationCounter,pa as AnimationSet1,Ft as AppContext,Bt as AppProvider,xi as AuthScreen,Ta as Authenticator,ht as Avatar,we as BTN_SIZES,_e as BTN_TYPES,Le as BTN_VARIANTS,Nt as Banner,xe as Blockquote,Pe as Button,ft as ButtonGroup,Ue as COPY_ALIGN,Be as COPY_CONTEXTUAL,Ge as COPY_SIZE,He as COPY_TAG,Fe as COPY_TRANSFORM,ai as CPL_SPACING,li as CRL_SIZE,Ve as Calendar,ea as Card,Ka as CardGrid,_i as CardGridScreen,za as CardVariant,ka as Carousel,$a as Cart,Vt as CartProvider,Li as CatalogueScreen,wi as ChallengeLibraryScreen,ki as ChallengeScreen,ke as Checkbox,Ye as Chip,qe as Collapsible,ma as Container,ii as ContentPageLayout,ri as ContentRowsLayout,Mi as ContentScreen,We as Copy,Ui as DashboardScreen,ta as DisplayHeading,Fi as FAQScreen,ia as FIELD_TYPES,$e as FileUpload,Qa as Footer,ba as ForgotPasswordForm,aa as Form,ra as FormField,la as FormSelect,oi as FullContentBackgroundImage,si as FullScreenVideoModal,Qe as HEADING_ALIGN,Xe as HEADING_TAGS,Ze as HEADING_TRANSFORM,Xa as Header,Je as Heading,ua as Hero,Bi as HomeScreen,et as Hr,vt as HtmlContent,ye as Icon,tt as Image,Ot as InvalidDurationError,at as Label,Me as Link,rt as List,st as ListItem,lt as ListTag,De as Loader,Ca as LoginForm,nt as Logo,Gi as LogoutScreen,da as Menu,Hi as MenuScreen,bi as MultiCheckboxFacet,yt as MultipleFractionsError,Wi as NotFoundScreen,ot as Notice,ni as OTPInput,Ua as PanelCards,Va as PanelCustom,Fa as PanelFeature,Ga as PanelHero,Ya as PanelIntro,Ha as PanelProduct,ja as PanelScroller,Wa as PanelVideo,Vi as PasswordResetAuthScreen,Yi as PasswordResetScreen,Oi as ProfileForm,zi as ProfileScreen,qa as PromoCodeForm,dt as Radio,Ia as RegisterForm,Ri as ResetPasswordAuthForm,Ti as ResetPasswordForm,di as ResultAsTypes,Ma as SPACING,pt as STRINGS_EN,qi as ScheduleScreen,Za as Screen,vi as Search,na as Share,Ii as SingleLinksFacet,Ci as SingleSelectFacet,ti as SubscriptionManager,$i as SubscriptionScreen,ct as Switch,sa as Tabs,ut as TextInput,kt as ThemeContext,Mt as ThemeProvider,it as Variants,Ba as Video,oa as VisitUs,Xi as WorkoutScreen,_t as cn,Pt as defaultTheme,wt as formatDuration,Dt as getRandomImageFromArray,xt as parseDuration,Qi as theme,Lt as truncateString,Gt as useAppContext,zt as useCartContext,Kt as useLanguage,qt as useTheme,Ut as useThemeContext,Aa as validEmail,Sa as validPassword,va as validatePhoneNumber};
|