@4alldigital/foundation-ui--gamma 1.50.0 → 1.50.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/foundation-ui.css +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/types/lib/components/index.d.ts +1 -0
- package/dist/types/lib/context/Amplify/index.d.ts +27 -0
- package/dist/types/lib/context/App/index.d.ts +4 -0
- package/dist/types/lib/context/index.d.ts +3 -1
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/lib/utils/index.d.ts +1 -0
- package/package.json +11 -11
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import i,{useMemo as n,createElement as l,useEffect as r,createContext as o,useContext as s,useState as d,useRef as c}from"react";import u from"classnames";import{useInView as m,useIsomorphicLayoutEffect as h,animate as p,motionValue as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import i,{useMemo as n,createElement as l,useEffect as r,createContext as o,useContext as s,useState as d,useRef as c}from"react";import u from"classnames";import{useInView as m,useIsomorphicLayoutEffect as h,animate as p,motionValue as v,motion as f,useAnimation as g}from"framer-motion";import{Icon as b}from"@iconify/react";import{twMerge as E}from"tailwind-merge";import N,{attributesToProps as y,domToReact as S}from"html-react-parser";import{parse as A}from"iso8601-duration";import C from"react-hover-video-player";import{useForm as O,FormProvider as I,useFormContext as T,Controller as R}from"react-hook-form";import{FacebookShareButton as L,TwitterShareButton as x,WhatsappShareButton as w,EmailShareButton as k,LinkedinShareButton as D}from"react-share";import{Tabs as _,TabList as M,Tab as P,TabPanel as U}from"react-tabs";import"libphonenumber-js";import F from"react-slick";import B from"react-player/youtube";import j from"video.js";import H from"react-otp-input";import W from"@elastic/search-ui-elasticsearch-connector";import{SearchContext as G,SearchProvider as z,WithSearch as V,ErrorBoundary as Y,SearchBox as q,Sorting as K,Facet as $,Results as X,PagingInfo as Q,ResultsPerPage as Z,Paging as J}from"@elastic/react-search-ui";import ee from"rc-pagination";import te from"rc-pagination/lib/locale/en_US";import{isMobile as ae}from"react-device-detect";import{Amplify as ie}from"aws-amplify";import{format as ne}from"date-fns";import le from"react-collapsible";import{toast as re}from"react-toastify";const oe=({testID:t,from:a,to:n,animationOptions:l,className:r,numDecimals:o=0})=>{const s=i.useRef(null),d=m(s,{once:!0});return h((()=>{const e=s.current;if(!e||!d)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=n.toString());e.textContent=a.toString();const t=p(a,n,Object.assign(Object.assign({duration:1,ease:"easeOut"},l),{onUpdate:t=>{e.textContent=t.toFixed(o)}}));return()=>{t.stop()}}),[s,d,a,n,l]),e("span",{ref:s,"data-testid":t||"AnimationCounter",className:u("relative",r)})};oe.displayName="AnimationCounter";const se=({name:t,size:a=24,color:i,id:n,className:l,testID:r})=>e(b,{"data-testid":r||n||"Icon",icon:t,width:a,height:a,color:i||"currentColor",className:l});se.displayName="Icon";const de=({text:a,citation:i,className:n,citationAttribute:l,showIcon:r=!0})=>{const o=u("text-xl italic font-bold",n);return t("blockquote",{"data-testid":"Blockquote",className:o,children:[r&&e(se,{name:"mdi:comment-quote",size:42}),e("div",{children:a}),i&&e("figcaption",{className:"flex flex-start items-center mt-6 space-x-3",children:t("div",{className:"flex items-center divide-x-2",children:[e("cite",{className:"pr-3 font-medium",children:i}),l&&e("cite",{className:"pl-3 text-sm font-light",children:l})]})})]})};var ce,ue,me;de.displayName="Blockquote",function(e){e.SUBMIT="submit",e.RESET="reset",e.BUTTON="button"}(ce||(ce={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link"}(ue||(ue={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(me||(me={}));const he=({color:a,size:i=8,thickness:n=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"} text-white`,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:n}),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..."})]})});he.displayName="Loader";const pe=({variant:i=ue.PRIMARY,size:n=me.MEDIUM,type:l=ce.BUTTON,wide:r=!1,rounded:o=!1,raised:s=!1,uppercase:d,children:c,id:m,disabled:h,ariaLabel:p,onClick:v,icon:f,external:g,iconFirst:b,outline:N,testID:y,className:S,isLoading:A})=>{var C,O,I,T;const R={small:{x:c&&!o?r?"px-5":"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:c&&!o?r?"px-8":"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:c&&!o?r?"px-11":"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},L=E(u("appearance-none font-body flex items-center transition-all duration-200 transform active:scale-95 justify-around border-solid border rounded cursor-pointer outline-none focus:outline-none focus-visible:outline-none",{"border-primary":N},{"border-primary300 dark:border-primary400 hover:border-primary400 dark:hover:border-primary500":N},{shadow:s},{uppercase:d},{"auto-cols-auto grid-cols-2 gap-4":A||f||g},{"rounded-full":o},{"flex-row-reverse":b},{"opacity-50 cursor-not-allowed":h},`${null===(C=null==R?void 0:R[n])||void 0===C?void 0:C.y} ${null===(O=null==R?void 0:R[n])||void 0===O?void 0:O.x} ${null===(I=null==R?void 0:R[n])||void 0===I?void 0:I.text}`,{"text-white border-primary bg-primary hover:bg-primary-darker":i===ue.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":i===ue.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":i===ue.TERTIARY},{"px-0 text-primary border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert":i===ue.LINK},S)),x=u(null===(T=null==R?void 0:R[n])||void 0===T?void 0:T.icon);return e("button",{id:m,"data-testid":y||m||"Button",onClick:v,className:L,type:l,disabled:h,"aria-label":p,role:"button",children:t(a,{children:[c,f&&!g&&e("span",{className:"flex items-center",children:e(se,{name:f,className:x})}),g&&e("span",{className:"flex items-center",children:e(se,{name:"carbon:launch",className:x})}),A&&e("div",{className:"flex items-center",children:e(he,{size:4})})]})})};
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -13,4 +13,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
function pe(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(a[i[n]]=e[i[n]])}return a}function fe(e,t,a,i){return new(a||(a=Promise))((function(t,n){function l(e){try{o(i.next(e))}catch(e){n(e)}}function r(e){try{o(i.throw(e))}catch(e){n(e)}}function o(e){var i;e.done?t(e.value):(i=e.value,i instanceof a?i:new a((function(e){e(i)}))).then(l,r)}o((i=i.apply(e,[])).next())}))}he.displayName="Button";const ve=i.forwardRef((function(a,i){var{id:n,label:l,required:r,className:o,disabled:s}=a,d=pe(a,["id","label","required","className","disabled"]);return t("div",{"data-testid":"Checkbox",className:u("flex items-center",o),children:[t("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e("input",Object.assign({id:n,ref:i,disabled:s,type:"checkbox",className:"form-item checkbox m-0 appearance-none peer h-full w-full shrink-0 focus:ring-2",required:r},d)),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(oe,{name:"mdi:check-bold",size:12})})]}),l&&e("label",{className:"label pl-2 leading-none text-sm text-bodyText dark:text-darkBodyText",htmlFor:n,children:l})]})}));ve.displayName="Checkbox";const ge=({href:a,children:n,onClick:l=(()=>{}),history:r,target:o,id:s,testID:d,className:c,prefetch:m,hideExternalIcon:h=!1})=>{const p=u("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",c);if(!h&&a&&a.startsWith("http"))return t("span",{children:[e("a",{"data-testid":d||s||"Link",className:u(p),href:a,target:"_blank",rel:"noopener noreferrer",children:n}),e(oe,{name:"mdi:external-link",className:"inline-block w-4 h-4 ml-1 mb-0"})]});try{const e=require("next/link").default;if(!e)throw new Error("Next.js Image not found");return i.createElement(e,{href:a||"#",onClick:l,"data-testid":d||s||"Link",className:p,target:o||"_self",prefetch:m||!1},n)}catch(t){return e("a",{"data-testid":d||s||"Link",className:p,href:a,onClick:e=>{l?l(e):!0!==e.defaultPrevented&&r&&a&&(e.preventDefault(),r.push(a))},target:o,children:n})}};var be,Ee,Ne,ye,Se;ge.displayName="Link",function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(be||(be={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(Ee||(Ee={})),function(e){e.INVERTED="inverted",e.MUTED="muted"}(Ne||(Ne={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.INTRO="intro"}(ye||(ye={})),function(e){e.P="p",e.SPAN="span",e.DIV="div",e.SMALL="small"}(Se||(Se={}));const Ae=({children:t,as:a=Se.P,size:i,bold:n,align:l,transform:r,underlined:o,id:s,className:d,testID:c})=>{const m=u({[`text-${l}`]:l},{"font-bold":n},{"text-base mb-3 mt-0":"p"===a},{"text-sm":"small"===a},{"text-sm":"small"===i},{"text-base":"medium"===i},{"text-lg":"large"===i},{"text-2xl":"intro"===i},{underline:o},r,d);return e(a,{"data-testid":c||s||"Copy",className:E(m),children:t})};Ae.displayName="Copy";const Ce=({testID:a,text:i,outline:l,rounded:r,variant:o,size:s="medium",icon:d,iconFirst:c,onClick:m})=>{const h=n((()=>{switch(s){case"small":return{iconSize:16,copySize:ye.SMALL};case"medium":default:return{iconSize:20,copySize:ye.MEDIUM};case"large":return{iconSize:28,copySize:ye.LARGE}}}),[s]),p=E(u("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"===o},{"bg-secondary text-white":"secondary"===o},{"bg-tertiary text-white":"tertiary"===o},{"bg-info text-white":"info"===o},{"bg-success text-white":"success"===o},{"bg-warning text-white":"warning"===o},{"bg-error text-white":"error"===o},{"py-1 px-3":"small"===s},{"py-2 px-4":"medium"===s},{"py-3 px-6":"large"===s}));return m&&"function"==typeof m?t(ge,{"data-testid":a||"Chip",className:p,onClick:m,children:[e(Ae,{className:"mb-0",as:Se.SPAN,size:h.copySize,children:i}),d&&e("div",{className:"flex items-center justify-center",children:e(oe,{name:d,size:h.iconSize})})]}):t("div",{"data-testid":a||"Chip",className:p,children:[e(Ae,{className:"mb-0",as:Se.SPAN,size:h.copySize,children:i}),d&&e("div",{className:"flex items-center justify-center",children:e(oe,{name:d,size:h.iconSize})})]})};Ce.displayName="Chip";const Oe=i.forwardRef((function(t,a){var{id:i,name:n,required:l,disabled:r,className:o,onChangeCallback:s,onChange:d}=t,c=pe(t,["id","name","required","disabled","className","onChangeCallback","onChange"]);return e("div",{"data-testid":"FileUpload",className:o,children:e("input",Object.assign({ref:a,className:u("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":n,type:"file",disabled:r,required:l,name:n,id:i,onChange:e=>{s&&"function"==typeof s&&s(e),d&&"function"==typeof d&&d({target:{value:e.target.value,name:n}})}},c))})}));var Ie,Te,Re;Oe.displayName="FileUpload",function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5"}(Ie||(Ie={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(Te||(Te={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize",e.NORMAL_CASE="normal-case"}(Re||(Re={}));const Le=({children:t,tag:a=Ie.H2,transform:i,align:n,id:l,testID:r,flush:o,className:s,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"}})(),h=a,p=u(`m-0 p-0 font-heading ${m}`,{"font-bold":c},{[`text-${n}`]:n},{"mb-2":!o},{"m-0":o},{"whitespace-nowrap text-ellipsis overflow-hidden":d},i,s);return e(h,{"data-testid":r||l||"Heading",className:p,children:t})};Le.displayName="Heading";const xe=({size:t="small"})=>e("hr",{className:u("border-0 border-b border-darkBodyText dark:border-darkBodyText",{"mt-4 mb-4":"small"===t,"mt-8 mb-8":"medium"===t,"mt-16 mb-16 ":"large"===t})});xe.displayName="Hr";const we=a=>{var{src:i,alt:n,title:r,caption:o,figure:s=!1,onLoad:d,id:c,className:m,sizes:h="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:p}=a,f=pe(a,["src","alt","title","caption","figure","onLoad","id","className","sizes","testID"]);try{const e=require("next/image").default;if(!e)throw new Error("Next.js Image not found");const t=!f.width,a=t?{sizes:h}:{};return l(e,Object.assign(Object.assign({src:i,alt:n,title:r,fill:t,onLoad:d,className:m},a),f))}catch(a){const l=u("m-0"),h=E(u("w-full h-full",m));return s||o?t("figure",{"data-testid":p||c||"Image",className:l,children:[e("img",{onLoad:d,src:i,alt:n,title:r,className:h}),o&&e("figcaption",{children:o})]}):e("img",{"data-testid":p||c||"Image",onLoad:d,src:i,alt:n,title:r,className:h})}};we.displayName="Image";const ke=({children:t,id:a,transform:i,className:n})=>e("label",{"data-testid":"Label",className:E(u("label mb-2 text-bodyText dark:text-darkBodyText",i,n)),htmlFor:a,children:t});var De,_e;ke.displayName="Label",function(e){e.UNSTYLED="unstyled",e.INLINE="inline",e.SMALL="small",e.LARGE="large"}(De||(De={})),function(e){e.OL="ol",e.UL="ul",e.DL="dl",e.DIV="div",e.DT="dt",e.DD="dd",e.LI="li"}(_e||(_e={}));const Me=({variants:t,children:a,as:i=_e.UL,id:n,testID:l,className:r})=>{const o=t?t.map((e=>`list--${e}`)):null;return e(i,{"data-testid":l||n||"List",className:u(o,r),children:a})};Me.displayName="List";const Pe=({testID:t,logo:a,className:i,aspectRatioClass:n="aspect-[1/1]"})=>e("div",{"data-testid":t||"Logo",className:u("relative w-full",n,i),children:e(we,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});Pe.displayName="Logo";const Ue=({onClick:a,title:i,icon:n,children:l,as:r="li",id:o,testID:s,className:d})=>t(r,{"data-testid":s||o||"ListItem",className:u({"list-item":"div"!==r},d),children:[a&&t(he,{variant:ce.LINK,onClick:a,children:[t("div",{className:"",children:[n&&e("div",{children:e(oe,{name:n,size:24})}),i&&e("div",{children:e(Le,{flush:!0,tag:Ie.H4,singleLine:!0,children:i})}),l&&e("div",{children:l})]}),e("div",{children:e(oe,{name:"mdi:chevron-right",size:24})})]}),!a&&e("div",{className:"",children:l&&e("div",{children:l})})]});Ue.displayName="ListItem";const Fe=({id:a,testID:i,title:n,text:l,icon:r,type:o,onCloseCallback:s,onClickCallback:d,actionText:c})=>{const m=u("p-4 rounded relative",{"bg-info text-white":"info"===o,"bg-success text-white":"success"===o,"bg-warning text-black":"warning"===o,"bg-error text-white":"error"===o});return e("div",{"data-testid":i||a||"Notice",className:m,children:t("div",{className:"flex gap-2",children:[r&&e("div",{className:"mr-2",children:e(oe,{name:r})}),t("div",{children:[n&&e(Le,{tag:Ie.H3,children:n}),e(Ae,{className:"mb-0",children:l})]}),d&&c&&e("div",{className:"ml-auto flex items-end",children:e(he,{variant:ce.PRIMARY,onClick:d,"aria-label":"Action",size:ue.SMALL,children:c})}),s&&e("div",{className:"absolute top-2 right-4",children:e(he,{variant:ce.LINK,icon:"mdi:close",onClick:s,"aria-label":"Close"})})]})})};Fe.displayName="Notice";const Be=i.forwardRef((function(a,i){var{name:n,required:l,className:r,options:o}=a,s=pe(a,["name","required","className","options"]);return e("div",{"data-testid":"Radio",className:u("flex items-center",r),children:e("div",{className:u("flex flex-col gap-2",r),children:null==o?void 0:o.map((a=>{var r;const o=(null===(r=null==a?void 0:a.value)||void 0===r?void 0:r.toString())||void 0;return t("div",{className:"flex items-center relative",children:[t("div",{className:"relative flex items-center",children:[e("input",Object.assign({ref:i,name:n,type:"radio",required:l,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4"},s,{id:o,value:o})),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(oe,{name:"mdi:circle",size:12})})]}),e("label",{className:"label pl-2 leading-none",htmlFor:o,children:a.label})]},o)}))})})}));Be.displayName="Radio";const je=i.forwardRef((function(a,i){var{id:n,name:l,required:r,disabled:o,className:s}=a,d=pe(a,["id","name","required","disabled","className"]);return t("label",{"data-testid":"Switch",className:u("inline-flex items-center cursor-pointer",s),children:[e("input",Object.assign({ref:i,id:n,name:l,type:"checkbox",value:"",className:"sr-only peer",disabled:o,required:r},d)),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 He;je.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"}(He||(He={}));const Ge=i.forwardRef((function(a,n){var{type:l=He.TEXT,required:r=!1,className:o,onChange:s,placeholder:d,icon:c,disabled:m=!1,name:h,autoComplete:p}=a,f=pe(a,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);i.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const v="date"===l?"dd/mm/yyyy".toUpperCase():d;return l===He.TEXTAREA?e("div",{"data-testid":"TextInput",className:"relative",children:e("textarea",Object.assign({ref:n,id:h,autoComplete:h,required:r,"aria-required":r,disabled:m,placeholder:v,onChange:s,rows:4,className:u("form-item text-input resize-none",o)},f))}):t("div",{"data-testid":"TextInput",className:"relative",children:[c&&e("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e(oe,{name:c})}),e("input",Object.assign({ref:n,id:h,type:l,autoComplete:p,required:r,"aria-required":r,disabled:m,placeholder:v,onChange:s,className:u("form-item text-input",{"pl-12":c},o)},f))]})}));Ge.displayName="TextInput";const We={GLOBAL:{SCREENS:{ACCOUNT:{TITLE:"Account"},CATALOGUE_LIST:{TITLE:"Catalogue"},CHALLENGE:{TITLE:"Challenge",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",CLICK_TO_ENTER:"Click the buy button below to enter the challenge.",PAYMENT_NOTE:"Please note we automatically take payment from the registered payment option saved on your profile."},CHALLENGES_LIST:{TITLE:"Challenges"},DASHBOARD:{TITLE:"Dashboard"},LIVE_SCHEDULE:{TITLE:"Live"},LOGIN:{TITLE:"Login"},REGISTER:{TITLE:"Register"},PROFILE:{TITLE:"Profile"},SUBSCRIPTION:{TITLE:"Subscription"},WORKOUT:{TITLE:"Workout"},FORGOT_PASSWORD:{TITLE:"Forgot Password"},RESET_PASSWORD:{TITLE:"Reset Password"},HOME:{TITLE:"Home"},CATALOGUE:{TITLE:"Catalogue"},CHALLENGES:{TITLE:"Challenges"},LIVE:{TITLE:"Live"},SCHEDULE:{TITLE:"Schedule"},SETTINGS:{TITLE:"Settings"},HELP:{TITLE:"Help"},LEGAL_INFO:{TITLE:"Legal & Information"},CONTENT:{TITLE:"Content"},FAVOURITES:{TITLE:"Favourites"}}},FORMS:{LOGIN_FORM:{TITLE:"Login",SUBMIT:"Login",FORGOT_PASSWORD:"Forgot password?",REGISTER:"Register",EMAIL:"Email",PASSWORD:"Password"},REGISTER_FORM:{TITLE:"Register",SUBMIT:"Register",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},FORGOT_PASSWORD_FORM:{TITLE:"Forgot Password",SUBMIT:"Send Reset Email",EMAIL:"Email"},RESET_PASSWORD_FORM:{TITLE:"Reset Password",SUBMIT:"Reset Password",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm Password"},PROFILE_FORM:{TITLE:"Profile",SUBMIT:"Save",FIRST_NAME:"First Name",LAST_NAME:"Last Name",AVATAR:"Avatar",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},ACCOUNT:{SUBMIT_LABEL:"Update",EMAIL_LABEL:"Email",PASSWORD_LABEL:"Password",FIRST_NAME_LABEL:"First name",LAST_NAME_LABEL:"Last name",DOB_LABEL:"Date of birth",TERMS_AND_CONDITIONS_LABEL:"Terms & Conditions",TERMS_AND_CONDITIONS_DESCRIPTION:"Read our terms & conditions from the link in the footer. ",CONTACT_PREFERENCES_LABEL:"Yes/No",CONTACT_PREFERENCES_DESCRIPTION:"Happy for us to email you about the latest features, information and offers?",SKIP_LABEL:"Skip step",SUCCESS_MESSAGE:"Account updated",SUBSCRIPTION_STATUS_LABEL:"Subscription status",SUBSCRIPTION_PLAN_LABEL:"Plan",SUBSCRIPTION_PRICE_LABEL:"Price (£)",SUBSCRIPTION_BILLING_DATE_LABEL:"Next Billing Date",SUBSCRIPTION_PAYMENT_TYPE_LABEL:"Card Type",SUBSCRIPTION_CARD_NUMBER_LABEL:"Card Number",SUBSCRIPTION_CARD_EXPIRY_LABEL:"Card Expiry Date",SUBSCRIPTION_LAST_UPDATED_LABEL:"Last Updated"}},VALIDATION:{UNKNOWN_SUBMISSION_ERROR:"Sorry, something bad happened! Please try again later.",REQUIRED_FIELD:"Required",TOO_SHORT:"Must be at least {count}",TOO_LONG:"Sorry, that's too long",INVALID_EMAIL:"Oops that email address doesn't look quite right",LOGIN_DENIED:"Your username and password do not match our records",LOGIN_ERROR:"Sorry something went wrong, please try again later",ACCOUNT_FIRST_NAME:"We need to know your name for ongoing communication",ACCOUNT_LAST_NAME:"We need to know your full name for your orders and if you need to contact support",CHARACTERS_ONLY:"You can only use letters",PASSWORD_DESCRIPTION:"Password must be between {count} and 30 characters and contain at least 1 uppercase, 1 lowercase, 1 number and a symbol (eg. @$%).",PASSWORD_CASE_MESSAGE:"Password must have one capital letter",PASSWORD_LOWERCASE_MESSAGE:"Password must have one lowercase letter",PASSWORD_LENGTH_MESSAGE:"Password must be at least 8 characters",PASSWORD_NUMERIC_MESSAGE:"Password must have at least one number",PASSWORD_SPECIAL_MESSAGE:"Password must have at least one special character (eg. @$%)",AUTH_API_ERROR:"An account with the given email already exists.: Conflict",AUTH_ACCOUNT_EXISTS_MESSAGE:"An account with the given email already exists. Please sign in"},UI:{SHOW:"Show",NO_IMAGE:"No image",UPLOAD:"Upload",SAVE:"Save",CANCEL:"Cancel",DELETE:"Delete",CONTINUE_WITH_SOCIAL:"Continue with Social Account",SINGLE_SIGNON:"Single Sign-On",LOGIN_WITH_GOOGLE:"Login with Google",LOGIN_WITH_APPLE:"Login with Apple",SIGNUP_WITH_GOOGLE:"Signup with Google",SIGNUP_WITH_APPLE:"Signup with Apple",BACK_TO_LOGIN:"Back to Login",FORGOT_PASSWORD:"Forgot Password?",SUBMIT:"Submit",LOGIN:"Login",LOGOUT:"Logout",REGISTER:"Register",SOCIAL:{GOOGLE:"Google",FACEBOOK:"Facebook",TWITTER:"Twitter",EMAIL:"Email"},READ_MORE:"Read more",READ_LESS:"Show less",CLOSE:"Close",BACK:"Back",SHARE:"Share",DOWNLOAD:"Download",FORMAT_HOUR:"{hour}hr",FORMAT_HOURS:"{hours}hrs",FORMAT_MINUTE:"{minute}min",FORMAT_MINUTES:"{minutes}mins",LOAD_MORE_LABEL:"Load more",NO_MORE_RESULTS:"That's all folks.",UNKNOWN_ERROR_TITLE:"Unknown error",UNKNOWN_ERROR_MESSAGE:"Sorry, something bad happened! Please try again.",CONTENT_SORT_TITLE:"Sort by",CONTENT_FILTERS_TITLE:"Filters",CONTENT_FILTERS_LABEL:"Filter",CLOSE_FILTERS_LABEL:"Done",CLEAR_ALL_FILTERS_LABEL:"Clear All",CLEAR_FILTERS_LABEL:"Clear",MORE_ITEMS_LABEL:"Next items",PREVIOUS_ITEMS_LABEL:"Previous items",CHOOSE_BTN_LABEL:"Choose",ADD_BTN_LABEL:"Add",SEND_BTN_LABEL:"Send",CANCEL_BTN_LABEL:"Cancel",DONE_BTN_LABEL:"Done",EDIT_BTN_LABEL:"Edit",CHANGE_BTN_LABEL:"Change",REMOVE_BTN_LABEL:"Remove",MESSAGE_PROMPT_BTN_LABEL:"Add one",SELECT_FILE_BTN_LABEL:"Select file",TOO_MANY_REQUESTS_MESSAGE:"Too many requests. Please try again later.",COPYRIGHT:"Copyright",ALL_RIGHTS_RESERVED:"All rights reserved",APP_CAMERA_PERMISSION:"Camera permission",APP_CAMERA_PERMISSION_DENIED:"Camera permission denied",APP_NEED_ACCESS_CAMERA:"This app needs access to your camera",ASK_ME_LATER:"Ask me later",PRIVACY_POLICY:"Privacy Policy",CREATE_ACCOUNT:"Create account",COMPLETE:"Complete",EDIT:"Edit",PREV:"Prev",NEXT:"Next",GET_STARTED:"Get started",START_SEARCH:"Start search",READ_MORE_LABEL:"Read more",READ_LESS_LABEL:"Show less",CLOSE_LABEL:"Close",CLOSE_HINT:"Close this entry",BACK_LABEL:"Back",SHARE_LABEL:"Share",VIEW_MORE_LABEL:"View more",VIEW_LESS_LABEL:"View less",GOT_IT:"Got it",MORE:"More",MORE_DETAILS:"More details",MORE_INFO:"More info",LEARN_MORE:"Learn more",LOW:"Low",MEDIUM:"Medium",HIGH:"High",VERY_HIGH:"Very high",VERY_LOW:"Very low",GOOD:"Good",BAD:"Bad",STRONG:"Strong",SAVE_CONTINUE:"Save and Continue",SAVE_FINISH:"Save and Finish",FINISH:"Finish",SKIP:"Skip",ADD:"Add",ADDED:"Added",ADD_ANOTHER:"Add another",CREATE_PROFILE:"Create profile",CONTINUE_NO_ACCOUNT:"Continue without account",REQUIRED_MISSING:"Required field missing",RESET:"Reset",APPLY_FILTER:"Apply filter",START:"Start",END:"End",HELP:"Help",WHAT_IS_THIS:"What is this?",CARD_VIEW:"Card view",LIST_VIEW:"List view",FILTER:"Filter",NO_RESULTS:"No results",CONTINUE:"Continue",CONTINUE_BROWSING:"Continue browsing",VIEW:"View",INFORMATION:"Information",DELETE_HINT:"Delete this entry",VISIT_WEBSITE:"Visit website",TAKE_AGAIN:"Take again",ADD_MORE:"Add more",REQUEST_SENT:"Request sent",CUSTOMISE:"Customize",SET_LOCATION:"Set location",COUNTY_NOT_FOUND:"County not found",NO_RESOURCES_FOUND:"No resources found",PATHWAY:"Pathway",CLICK_TO_NAVIGATE:"Click to navigate",INPUT_FIELD:"Input field",GO_BACK:"Go back",NAVIGATES_PREV:"Navigates to the previous screen",REMOVE:"Remove",NO_INTERNET_CONNECTION:"No internet connection",CHECK_CONNECTION:"Please check your internet connection and try again.",EXPLORE:"Explore",NO_ACCOUNT:"No account?",START_WORKOUT:"Start workout",START_MEDIA:"Start media",LAUNCH:"Launch",PUBLISHED:"Published",CREATED:"Created",UPDATED:"Updated",DURATION:"Duration",LEVEL:"Level",SECTION:"Section",DOWNLOADING:"Downloading",DOWNLOAD_COMPLETE:"Download complete",DOWNLOAD_FAILED:"Download failed",DOWNLOAD_CANCELLED:"Download cancelled",DOWNLOADING_MEDIA:"Downloading media",DOWNLOADING_MEDIA_FAILED:"Downloading media failed",DOWNLOADING_MEDIA_CANCELLED:"Downloading media cancelled",DOWNLOADING_MEDIA_COMPLETE:"Downloading media complete",DOWNLOADING_MEDIA_CANCEL:"Cancel download",DOWNLOADING_MEDIA_RETRY:"Retry download",DOWNLOADING_MEDIA_PAUSE:"Pause download",DOWNLOADING_MEDIA_RESUME:"Resume download",DOWNLOADING_MEDIA_CONTINUE:"Continue download",DOWNLOADING_MEDIA_START:"Start download",DOWNLOADING_MEDIA_CONFIRM:"Confirm download",DOWNLOAD_REMOVED:"Download removed",DOWNLOAD_REMOVE_ERROR:"Error removing download",CATEGORY:"Category",TYPE:"Type",WORKOUT_TYPE:"Workout type",MEDIA_TYPE:"Media type",WORKOUT:"Workout",MEDIA:"Media",WORKOUTS:"Workouts",WORKOUT_CATEGORY:"Workout category",MEDIA_CATEGORY:"Media category",ADDED_LIKE:"Added like",REMOVED_LIKE:"Removed like",ADDED_FAVORITE:"Added favorite",REMOVED_FAVORITE:"Removed favorite",ADDED_BOOKMARK:"Added bookmark",REMOVED_BOOKMARK:"Removed bookmark",ADDED_WATCHLIST:"Added watchlist",REMOVED_WATCHLIST:"Removed watchlist",ADDED_PLAYLIST:"Added playlist",REMOVED_PLAYLIST:"Removed playlist",ADDED_SUBSCRIPTION:"Added subscription",REMOVED_SUBSCRIPTION:"Removed subscription",ADDED_FOLLOW:"Added follow",REMOVED_FOLLOW:"Removed follow",ADDED_FRIEND:"Added friend",REMOVED_FRIEND:"Removed friend",ADDED_CONNECTION:"Added connection",REMOVED_CONNECTION:"Removed connection",MARKED_COMPLETE:"Marked complete",MARKED_INCOMPLETE:"Marked incomplete",MUSIC_ENABLED:"Music enabled",MUSIC_DISABLED:"Music disabled",SHARED:"Shared",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",PURCHASE_TO_ACCESS:"Purchase to access",SHOW_FILTERS:"Show filters",HIDE_FILTERS:"Hide filters",THIS_WEEK:"This week",TODAYS_ITEMS:"Today's items",START_TRIAL_LABEL:"Start Free Trial",START_WORKOUTS_LABEL:"Start Workouts Now",UPDATE_LABEL:"Update now",SESSION_EXPIRED:"Session expired. Please log in.",NO_VALID_SUB:"No valid subscription found. Please subscribe or contact us if you believe this is an error.",SUBSCRIPTION_ERROR:"There's a problem with your account. No valid subscription found.",SUCCESS:"Success",UPLOAD_IMAGE:"Upload Image",UPLOAD_VIDEO:"Upload Video",UPLOAD_AUDIO:"Upload Audio",UPLOAD_DOCUMENT:"Upload Document",UPLOAD_MEDIA:"Upload Media",UPLOAD_MEDIA_FILE:"Upload Media File",UPLOAD_SUCCESS:"Upload successful",UPLOAD_FAILED:"Upload failed",UPLOADING:"Uploading",SHARE_DESCRIPTION:"Share this with your friends",SHARE_TITLE:"Share",ALREADY_RATED:"You have already rated this",RATE:"Rate",VERSION:"Version",APP_VERSION:"App Version",WELCOME:"Welcome",LATEST_WORKOUTS:"Latest Workouts",RECENTLY_VIEWED:"Recently Viewed",RECENTLY_ADDED:"Recently Added",RECENTLY_COMPLETED:"Recently Completed",WORKOUTS_LIKED:"Workouts Liked",WORKOUTS_FAVORITED:"Workouts Favorited",WORKOUTS_BOOKMARKED:"Workouts Bookmarked",WORKOUTS_COMPLETED:"Workouts Completed",WORKOUTS_DONE:"Workouts Done",LIKED:"Liked",FAVORITED:"Favorited",BOOKMARKED:"Bookmarked",COMPLETED:"Completed",DONE:"Done",STATS:"Stats",STATISTICS:"Statistics",ACTIVITY:"Activity",RECENT_ACTIVITY:"Recent Activity",NEWS:"News",UPDATES:"Updates",LATEST_NEWS:"Latest News",WHATS_NEW:"What's New",WHATS_NEWS:"What's News",GOOD_MORNING:"Good Morning",GOOD_AFTERNOON:"Good Afternoon",GOOD_EVENING:"Good Evening",NO_CLASS:"No class",RELATED:"Related",RELATED_WORKOUTS:"Related Workouts",RELATED_CHALLENGES:"Related Challenges",RELATED_VIDEOS:"Related Videos",RELATED_MEDIA:"Related Media",CHALLENGES_ENTERED:"Challenges Entered",UPGRADE_TO_PREMIUM_PLUS:"Upgrade to Premium+",UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE:"Upgrade to Premium+ for unlimited access to the live streamed classes",UPGRADE_TO_PREMIUM:"Upgrade to Premium",PUSH_NOTIFICATIONS:"Push Notifications",PUSH_NOTIFICATIONS_ENABLED:"Push notifications enabled",PUSH_NOTIFICATIONS_DISABLED:"Push notifications disabled",EMAIL_NOTIFICATIONS:"Email Notifications",EMAIL_NOTIFICATIONS_ENABLED:"Email notifications enabled",EMAIL_NOTIFICATIONS_DISABLED:"Email notifications disabled",SMS_NOTIFICATIONS:"SMS Notifications",SMS_NOTIFICATIONS_ENABLED:"SMS notifications enabled",SMS_NOTIFICATIONS_DISABLED:"SMS notifications disabled",NOTIFICATIONS:"Notifications",PUSH_NOTIFICATIONS_DESCRIPTION:"Receive push notifications for new content and updates",EMAIL_NOTIFICATIONS_DESCRIPTION:"Receive email notifications for new content and updates",SMS_NOTIFICATIONS_DESCRIPTION:"Receive SMS notifications for new content and updates",OPEN_SETTINGS:"Open settings",NOTIFICATION_SETTINGS:"Notification settings",NOTIFICATION_SETTINGS_DESCRIPTION:"Manage your notification settings",CAMERA_ACCESS:"Camera access",CAMERA_PERMISSION_DENIED:"Camera permission denied",CAMERA_PERMISSION_REQUIRED:"Camera permission required",CAMERA_PERMISSION_DESCRIPTION:"Allow access to your camera to take a profile picture and personalize your account",DISABLE_PERMISSION_IN_SETTINGS:"You can disable in main system settings",DARK_MODE:"Dark mode",LIGHT_MODE:"Light mode",SYSTEM_MODE:"System mode",DARK_MODE_ENABLED:"Dark mode enabled",LIGHT_MODE_ENABLED:"Light mode enabled",SYSTEM_MODE_ENABLED:"System mode enabled",DARK_MODE_DESCRIPTION:"Enable dark mode for better viewing experience",LIGHT_MODE_DESCRIPTION:"Enable light mode for better viewing experience",SYSTEM_MODE_DESCRIPTION:"Enable system mode for better viewing experience",REQUEST_INFO:"Request info",REQUEST_INFORMATION:"Request information",GET_INFO:"Get info",GET_IN_TOUCH:"Get in touch",CONTACT_US:"Contact us",ERROR:"Error",LAST_UPDATED:"Last updated",NO_UPDATES:"No updates",RATED:"Rated",RATE_SUCCESS:"Rating successful",RATE_FAILED:"Rating failed",RATE_CANCELLED:"Rating cancelled",QUESTION:"Question",QUESTION_ABOUT_SUBSCRIPTION:"Question about subscription",LOGOUT_SUCCESS:"Logout successful",NO_ACTIVE_SUBSCRIPTION:"No active subscription",SUBSCRIPTION_EXPIRED:"Subscription expired",NO_SUBSCRIPTION_DETAILS:"You currently do not have an active subscription. If you believe this is an error, please contact our support team for assistance."},ERRORS:{GENERIC_ERROR:"An error occurred",COULD_NOT_FETCH_DATA:"Could not fetch data",COULD_NOT_UPDATE_DATA:"Could not update data",COULD_NOT_DELETE_DATA:"Could not delete data",COULD_NOT_UPDATE_LIKES:"Could not update likes",COULD_NOT_UPDATE_FAVORITES:"Could not update favorites",COULD_NOT_UPDATE_BOOKMARKS:"Could not update bookmarks",COULD_NOT_UPDATE_WATCHLIST:"Could not update watchlist",COULD_NOT_UPDATE_PLAYLIST:"Could not update playlist",COULD_NOT_UPDATE_SUBSCRIPTION:"Could not update subscription",COULD_NOT_UPDATE_FOLLOW:"Could not update follow",COULD_NOT_UPDATE_FRIEND:"Could not update friend",COULD_NOT_UPDATE_CONNECTION:"Could not update connection",ISSUE_CHECKING_PERMISSIONS:"Issue checking permissions",ISSUE_OPENING_SETTINGS:"Issue opening settings"}},ze=({testID:n,name:l="avatar",isEditable:o=!0,initValue:s})=>{const[d,c]=i.useState(s);return r((()=>{s&&c(s)}),[s]),t("div",{"data-testid":n||'"Avatar"',className:"relative",children:[t("div",{className:"relative w-[200px] aspect-1 rounded-full border border-solid overflow-hidden flex items-center justify-center m-4",children:[d&&t(a,{children:[e(we,{src:d,alt:l,width:200,height:200}),o&&e("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e(he,{size:ue.SMALL,rounded:!0,onClick:()=>{c(void 0)},children:We.UI.REMOVE_BTN_LABEL})})]}),!d&&e(a,{children:o&&e("div",{className:"absolute w-full h-full flex items-center justify-center",children:e(ke,{id:l,className:"button cursor-pointer mb-0",children:e(Ae,{className:"mb-0",children:We.UI.UPLOAD})})})})]}),e("input",{type:"file",id:l,name:l,className:"hidden",onChange:e=>{var t;const a=null===(t=e.target.files)||void 0===t?void 0:t[0];if(a){const e=URL.createObjectURL(a);c(e)}}})]})};ze.displayName="Avatar";const Ye=({testID:t,buttonData:a})=>e("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:null==a?void 0:a.map(((t,i)=>{const n=i>0&&i<a.length-1,l=0===i,r=i===a.length-1,o=u({"rounded-none":n},{"rounded-r":l,"rounded-l":r});return e("div",{children:e(he,Object.assign({},t,{className:o,children:t.children}))},t.id)}))});Ye.displayName="ButtonGroup";const Ve="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-bodyBackground text-bodyText dark:bg-darkBodyBackground dark:text-darkBodyText hover:bg-primary hover:text-bodyTextInverted group",qe="transition duration-500 ease-in-out ",Ke={replace(t){if("a"===t.name){const a=y(t.attribs);return e(ge,Object.assign({},a,{children:S(t.children,Ke)}))}if(t.attribs&&"p"===t.name){const a=y(t.attribs);return e(Ae,Object.assign({},a,{children:S(t.children,Ke)}))}return t}},$e=({testID:t,data:a,align:i,className:n})=>e("span",{"data-testid":t||'"HtmlContent"',className:u("relative",{"text-right":"right"===i},{"text-center":"center"===i},{"text-left":"left"===i},n),children:N(a,Ke)});function Xe(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}$e.displayName="HtmlContent";const Qe=({id:a,title:i,description:n,image:l,className:r,metaData:o,actions:s,padded:d,scaleOnHover:c,onClick:m=(()=>{}),htmlDetails:h})=>t("div",{id:a,"data-testid":"CardBasic",className:E(u(qe,Ve,{"p-4":d},{"hover:scale-100":!c},r)),onClick:m,children:[l&&e("div",{className:E(u("relative w-full overflow-hidden aspect-[16/9]",{rounded:d},l.aspectRatio)),children:e(we,{fill:!0,src:null==l?void 0:l.src,sizes:"100vh",alt:null==l?void 0:l.alt,className:u("absolute inset-0 object-cover group-hover:scale-110 dura",qe)})}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:u({"p-3":!d},{"pt-3":d}),children:[e("div",{children:i&&e(Le,{tag:Ie.H4,singleLine:!0,children:i})}),!h&&n&&e("div",{children:e(Ae,{className:"mb-0",children:Xe(n)})}),h&&n&&e("div",{children:e($e,{className:"mb-0",data:Xe(n)})}),t("div",{className:"flex items-center justify-between gap-2",children:[o&&e("div",{className:"flex shrink-0 mt-2",children:o.map(((e,a)=>0===a?t(Ae,{className:"text-xs",as:Se.SMALL,children:[e," ·"]},e):a===o.length-1?t(Ae,{className:"text-xs",as:Se.SMALL,children:[" ",e]},e):t(Ae,{className:"text-xs",as:Se.SMALL,children:[" ",e," ·"]},e)))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(he,{variant:ce.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.like)||void 0===t?void 0:t.onClick)&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(he,{variant:ce.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.share)||void 0===t?void 0:t.onClick)&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(he,{variant:ce.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.save)||void 0===t?void 0:t.onClick)&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(he,{variant:ce.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(he,{variant:ce.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(he,{variant:ce.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.report)||void 0===t?void 0:t.onClick)&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(he,{variant:ce.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(he,{variant:ce.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.download)||void 0===t?void 0:t.onClick)&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(he,{variant:ce.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(he,{variant:ce.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof s.delete.onClick&&s.delete.onClick({id:a})}})]})]})]})})]});Qe.displayName="CardBasic";const Ze=o({brand:void 0,header:void 0,footer:void 0,locale:void 0,app:void 0}),Je=({children:t,value:a})=>e(Ze.Provider,{value:a,children:t});function et(){var e;return null===(e=s(Ze).locale)||void 0===e||e.lang,We}const tt={isDarkTheme:!1,toggleTheme:()=>{}},at=i.createContext(tt),it=({children:t,theme:a})=>e(at.Provider,{value:a,children:t});function nt(){return s(at)}const lt=({id:a,title:i,description:n,image:l,className:r,metaData:o,actions:s,onClick:d=(()=>{}),playCallback:c,htmlDetails:m,accessRestriced:h})=>{const p=et();return t("div",{id:a,"data-testid":"CardBasic",className:u(qe,Ve,r),onClick:d,children:[l&&t("div",{className:u("relative w-full overflow-hidden aspect-[16/9]",l.aspectRatio),children:[e(we,{fill:!0,src:null==l?void 0:l.src,sizes:"100vh",alt:null==l?void 0:l.alt,className:u("absolute inset-0 object-cover group-hover:scale-110",qe)}),h&&e("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e(Ae,{bold:!0,transform:Ee.UPPERCASE,children:p.UI.PURCHASE_TO_ACCESS})}),c&&e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(he,{variant:ce.PRIMARY,icon:"mdi:play",size:ue.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(Le,{tag:Ie.H5,singleLine:!0,flush:!0,children:i})}),!m&&n&&e("div",{children:e(Ae,{className:"mb-0",children:Xe(n)})}),m&&n&&e("div",{children:e($e,{className:"mb-0",data:Xe(n)})}),t("div",{className:"flex items-center justify-between gap-2",children:[o&&e("div",{className:"flex shrink-0",children:o.map(((e,a)=>0===a?t(Ae,{className:"text-xs",as:Se.SMALL,children:[e," ·"]},e):a===o.length-1?t(Ae,{className:"text-xs",as:Se.SMALL,children:[" ",e]},e):t(Ae,{className:"text-xs",as:Se.SMALL,children:[" ",e," ·"]},e)))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(he,{variant:ce.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.like)||void 0===t?void 0:t.onClick)&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(he,{variant:ce.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.share)||void 0===t?void 0:t.onClick)&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(he,{variant:ce.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.save)||void 0===t?void 0:t.onClick)&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(he,{variant:ce.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(he,{variant:ce.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(he,{variant:ce.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.report)||void 0===t?void 0:t.onClick)&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(he,{variant:ce.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(he,{variant:ce.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.download)||void 0===t?void 0:t.onClick)&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(he,{variant:ce.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(he,{variant:ce.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof s.delete.onClick&&s.delete.onClick({id:a})}})]})]})]})})]})};lt.displayName="CardMedia";const rt=({video:a,isMuted:i=!0,id:n,title:l,description:r,image:o,className:s,metaData:d,actions:c,onClick:m=(()=>{}),htmlDetails:h})=>t("div",{id:n,"data-testid":"CardVideo",className:u(qe,Ve,s),onClick:m,children:[o&&a&&e("div",{className:u("relative w-full h-full aspect-[16/9]",o.aspectRatio),children:e(C,{videoId:`video--${n}`,playbackStartDelay:1e3,videoSrc:e("source",{src:a,type:"video/mp4"}),videoClassName:u("hls-hover-video w-full aspect-[16/9]",o.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:i,className:u("w-full overflow-hidden aspect-[16/9]",o.aspectRatio),pausedOverlay:e("div",{className:u("relative w-full overflow-hidden aspect-[16/9]",o.aspectRatio),children:e(we,{fill:!0,src:null==o?void 0:o.src,width:0,height:0,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})}),loadingOverlay:e("div",{className:u("w-full flex items-center justify-center aspect-[16/9]",o.aspectRatio),children:e("div",{className:"",children:e(me,{})})})},`${n}--card`)}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:"p-3",children:[e("div",{children:l&&e(Le,{tag:Ie.H5,singleLine:!0,flush:!0,children:l})}),!h&&r&&e("div",{children:e(Ae,{className:"mb-0",children:Xe(r)})}),h&&r&&e("div",{children:e($e,{className:"mb-0",data:Xe(r)})}),t("div",{className:"flex items-center justify-between gap-2",children:[d&&e("div",{className:"flex shrink-0",children:d.map(((e,a)=>0===a?t(Ae,{className:"text-xs",as:Se.SMALL,children:[e," ·"]},e):a===d.length-1?t(Ae,{className:"text-xs",as:Se.SMALL,children:[" ",e]},e):t(Ae,{className:"text-xs",as:Se.SMALL,children:[" ",e," ·"]},e)))}),c&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[c.like&&e(he,{variant:ce.PRIMARY,icon:c.like.isActive?"mdi:like":"mdi:like-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.like)||void 0===t?void 0:t.onClick)&&"function"==typeof c.like.onClick&&c.like.onClick({id:n})}}),c.share&&e(he,{variant:ce.PRIMARY,icon:c.share.isActive?"mdi:share":"mdi:share-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.share)||void 0===t?void 0:t.onClick)&&"function"==typeof c.share.onClick&&c.share.onClick({id:n})}}),c.save&&e(he,{variant:ce.PRIMARY,icon:c.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.save)||void 0===t?void 0:t.onClick)&&"function"==typeof c.save.onClick&&c.save.onClick({id:n})}}),c.comment&&e(he,{variant:ce.PRIMARY,icon:c.comment.isActive?"mdi:comment":"mdi:comment-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof c.comment.onClick&&c.comment.onClick({id:n})}}),c.bookmark&&e(he,{variant:ce.PRIMARY,icon:c.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof c.bookmark.onClick&&c.bookmark.onClick({id:n})}}),c.report&&e(he,{variant:ce.PRIMARY,icon:c.report.isActive?"mdi:flag":"mdi:flag-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.report)||void 0===t?void 0:t.onClick)&&"function"==typeof c.report.onClick&&c.report.onClick({id:n})}}),c.follow&&e(he,{variant:ce.PRIMARY,icon:c.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof c.follow.onClick&&c.follow.onClick({id:n})}}),c.download&&e(he,{variant:ce.PRIMARY,icon:c.download.isActive?"mdi:download":"mdi:download-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.download)||void 0===t?void 0:t.onClick)&&"function"==typeof c.download.onClick&&c.download.onClick({id:n})}}),c.edit&&e(he,{variant:ce.PRIMARY,icon:c.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof c.edit.onClick&&c.edit.onClick({id:n})}}),c.delete&&e(he,{variant:ce.PRIMARY,icon:c.delete.isActive?"mdi:delete":"mdi:delete-outline",size:ue.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof c.delete.onClick&&c.delete.onClick({id:n})}})]})]})]})})]});rt.displayName="CardVideo";const ot=({id:a,title:i,description:n,icon:l,className:r,onClick:o,moreTitle:s,align:d})=>t("div",{id:a,"data-testid":"CardIcon",className:E(u(qe,o?Ve:"","p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===d},{"items-center":"center"===d},{"items-end":"right"===d},r)),children:[l&&e("div",{className:u("relative"),children:e(oe,{name:l,size:48})}),t("div",{className:u({"text-left":"left"===d},{"text-center":"center"===d},{"text-right":"right"===d}),children:[e("div",{children:i&&e(Le,{tag:Ie.H5,singleLine:!0,children:i})}),e("div",{children:n&&e(Ae,{align:d,children:n})})]}),o&&e("div",{className:"flex items-center justify-start gap-2",children:e(he,{icon:"mdi:arrow-right",variant:ce.LINK,onClick:o,children:s})})]});ot.displayName="CardIcon";const st=({testID:a,id:i,title:n,description:l,image:r,onClick:o,className:s,padded:d,icon:c,raised:m=!0,htmlDetails:h})=>t("div",{id:i,"data-testid":a||"CardHorz",className:u("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":d},{"shadow hover:shadow-lg":m},s),onClick:o,children:[r&&e("div",{className:"w-1/3 aspect-[1/1]",children:e("div",{className:E(u("relative w-full overflow-hidden h-full",r.aspectRatio)),children:e(we,{fill:!0,src:null==r?void 0:r.src,alt:null==r?void 0:r.alt,className:"absolute inset-0 object-cover"})})}),c&&!r&&e("div",{className:"py-2 pl-2",children:e(oe,{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:[n&&e("div",{className:"",children:e(Le,{tag:Ie.H4,children:n})}),!h&&l&&e("div",{children:e(Ae,{className:"mb-0",children:Xe(l)})}),h&&l&&e("div",{children:e($e,{className:"mb-0",data:Xe(l)})})]})})]});st.displayName="CardHorz";const dt=({testID:i,className:n,data:l,padded:o,shadow:s=!0})=>{const d=f(0);return r((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||p(d,200,{duration:.5})}),[d]),l?t("div",{"data-testid":i||"CardData",className:E(u("relative rounded-lg overflow-hidden flex flex-col items-center gap-4 p-2 bg-bodyBackground dark:bg-darkBodyBackground",{"p-4":o},{shadow:s},n)),children:[(null==l?void 0:l.animateNumber)&&t("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e(re,{from:l.numberData.from,to:l.numberData.to,numDecimals:l.numberData.numDecimals}),e("span",{children:null==l?void 0:l.item})]}),!(null==l?void 0:l.animateNumber)&&e("div",{className:"text-lg",children:e(Le,{tag:Ie.H2,flush:!0,children:null==l?void 0:l.item})}),e("div",{children:e(Ae,{className:"mb-0",children:null==l?void 0:l.label})})]}):e(a,{})};dt.displayName="CardData";const ct=t=>{var{variant:a,className:i,data:n}=t,l=pe(t,["variant","className","data"]);switch(a){case"basic":default:return e(Qe,Object.assign({className:i},n,l));case"media":return e(lt,Object.assign({className:i},n,l));case"video":return e(rt,Object.assign({className:i},n,l));case"icon":return e(ot,Object.assign({className:i},n,l));case"horz":return e(st,Object.assign({className:i},n,l));case"data":return e(dt,Object.assign({className:i},n,l))}};ct.displayName="Card";const ut=({text:i,flush:n,tag:l=Ie.H1})=>{const r=i.split(" ");return e("div",{"data-testid":"DisplayHeading",className:"relative",children:e(Le,{tag:l,flush:n,children:r.map(((i,n)=>{const l=n===r.length-1,o=`${i}-${n}`;return t("span",{children:[e("span",{className:u({"display-heading relative font-heading":!l},{"inline-block relative font-heading":l}),children:t(a,{children:[l&&t(a,{children:[e("div",{className:"display-heading--emphasis z-0"}),e("span",{className:"display-heading--lastword relative",children:i})]}),!l&&e("span",{className:"relative z-10",children:i})]})}),!l&&" "]},o)}))})})};ut.displayName="DisplayHeading";const mt=({children:a,className:i,submit:n,onSubmit:l=(()=>{}),onChange:o,hideSubmit:s,ariaSubmitLabel:d,submitID:c,submitVariant:m=ce.PRIMARY,initialValues:h={},isBoxed:p=!1,submitType:f=de.SUBMIT,disabledSubmitWithReturn:v=!1,isDisabled:g=!1})=>{const b=O({defaultValues:h,mode:"onBlur",reValidateMode:"onChange"});r((()=>{if(o&&"function"==typeof o){const e=b.watch(((e,t)=>{o(e,t)}));return()=>e.unsubscribe()}}),[]);const E=u({"sr-only":s}),{formState:{isSubmitting:N,isDirty:y,isValid:S}}=b;return e(I,Object.assign({},b,{children:e("div",{"data-testid":"Form",className:u("w-full max-w-s @containers @form"),children:t("form",{onSubmit:b.handleSubmit(l),onKeyDown:e=>{v&&"Enter"===e.key&&e.preventDefault()},className:u("w-2xs relative",{"form px-8 pt-6 pb-8 ":p},{"opacity-50":N},i),children:[a,n&&e("div",{className:"flex items-center justify-end",children:e(he,{id:c||n,className:E,ariaLabel:d||n||"Submit",type:f,outline:!0,isLoading:N,disabled:N||!S||!y||g,variant:m,children:n})})]})})}))};var ht;mt.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"}(ht||(ht={}));const pt=i.forwardRef((function(a,i){var{id:n,name:l,options:r,required:o,className:s,disabled:d}=a,c=pe(a,["id","name","options","required","className","disabled"]);if(!r)throw new Error("FormSelect requires options prop");return e("div",{id:n,className:u("pb-2 min-w-20",s),children:t("div",{className:"relative",children:[e("select",Object.assign({ref:i,name:l,disabled:d,required:o,className:"form-item text-input pr-10"},c,{children:r.map(((t,a)=>{var i,n;return e("option",{value:null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.toString(),disabled:t.disabled,className:"bg-bodyBackground dark:bg-darkBodyBackground",children:t.label},`${null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.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(oe,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));pt.displayName="FormSelect";const ft=({name:a,type:i,label:n,required:l,className:r,icon:o,options:s,disabled:c,description:m,showPasswordLabel:h,hidePasswordLabel:p,validations:f={},fileUploadCallback:v=(()=>{}),autoComplete:g})=>{var b,E;const[N,y]=d(!1),{control:S,formState:A}=T(),{errors:C}=A,O=n&&i!==ht.CHECKBOX,I=l||Boolean(f.required)?`${n} *`:n;return e("div",{className:"relative",children:t("div",{"data-testid":"FormField",className:"mb-4",children:[O&&e("div",{className:"flex items-baseline justify-between",children:e(ke,{id:a,children:I})}),e("div",{className:"mb-1",children:e(R,{defaultValue:"",name:a,control:S,rules:f,render:({field:d})=>((i,d)=>{switch(i){case ht.HIDDEN:return e("input",Object.assign({type:He.HIDDEN,disabled:c},d));case ht.TEXT:return e(Ge,Object.assign({type:He.TEXT,required:l||Boolean(f.required),icon:o,className:r,disabled:c,autoComplete:g},d));case ht.PASSWORD:{const a=N?He.TEXT:He.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:()=>y((e=>!e)),role:"button",tabIndex:0,children:e("button",N?{type:"button","aria-label":p,className:u(i,"form-icon"),children:e(oe,{name:"mdi:eye-off",size:24})}:{type:"button","aria-label":h,className:u(i,"form-icon"),children:e(oe,{name:"mdi:eye",size:24})})}),e(Ge,Object.assign({type:a,required:l||Boolean(f.required),icon:o,className:r,disabled:c,autoComplete:g},d))]})}case ht.TEXTAREA:return e(Ge,Object.assign({type:He.TEXTAREA,required:l||Boolean(f.required),icon:o,className:r,disabled:c},d));case ht.EMAIL:return e(Ge,Object.assign({type:He.EMAIL,required:l||Boolean(f.required),icon:o,className:r,disabled:c,autoComplete:g},d));case ht.DATE:return e(Ge,Object.assign({type:He.DATE,required:l||Boolean(f.required),icon:o,className:r,disabled:c},d));case ht.DATETIME:return e(Ge,Object.assign({type:He.DATETIME,required:l||Boolean(f.required),icon:o,className:r,disabled:c},d));case ht.NUMBER:return e(Ge,Object.assign({type:He.NUMBER,required:l||Boolean(f.required),icon:o,className:r,disabled:c},d));case ht.CHECKBOX:return e(ve,Object.assign({required:l||Boolean(f.required),id:a,className:r,label:n,disabled:c},d));case ht.RADIO:return e(Be,Object.assign({required:l||Boolean(f.required),id:a,className:r,options:s,disabled:c},d));case ht.SWITCH:return e(je,Object.assign({id:a,required:l||Boolean(f.required),className:r,disabled:c},d));case ht.SELECT:return e(pt,Object.assign({required:l||Boolean(f.required),id:a,className:r,disabled:c,label:n,options:s},d));case ht.FILE:return e(Oe,Object.assign({required:l||Boolean(f.required),id:a,className:r,disabled:c,onChangeCallback:e=>{v(e)}},d));default:return e(Ge,Object.assign({type:He.TEXT,required:l||Boolean(f.required),disabled:c,icon:o,className:r},d))}})(i,d)})}),m&&e("div",{className:"formfield-description",children:e(Ae,{size:ye.SMALL,className:"mb-0",children:m})}),C[a]&&e("div",{className:"formfield-error text-error italic",children:e(Ae,{size:ye.SMALL,className:"mb-0",children:null===(E=null===(b=null==C?void 0:C[a])||void 0===b?void 0:b.message)||void 0===E?void 0:E.toString()})})]})})};ft.displayName="FormField";const vt=({testID:a,url:i,title:n="Share",enabled:l={facebook:!0,twitter:!0}})=>t("div",{"data-testid":a||"Share",className:"flex gap-2 items-center ",children:[e("div",{children:t(Ae,{as:Se.P,className:"mb-0",children:[We.UI.SHARE,":"]})}),(null==l?void 0:l.facebook)&&e(L,{url:i,title:n,className:"",children:e(oe,{name:"mdi:facebook"})}),(null==l?void 0:l.twitter)&&e(x,{url:i,title:n,className:"",children:e(oe,{name:"mdi:twitter"})}),(null==l?void 0:l.whatsapp)&&e(w,{url:i,title:n,className:"",children:e(oe,{name:"mdi:whatsapp"})}),(null==l?void 0:l.email)&&e(k,{url:i,title:n,className:"",children:e(oe,{name:"mdi:email"})}),(null==l?void 0:l.linkedin)&&e(D,{url:i,title:n,className:"",children:e(oe,{name:"mdi:linkedin"})})]});vt.displayName="Share";const gt=({data:n})=>{const[l,r]=i.useState(0);return n?e("div",{"data-testid":"Tabs",children:t(_,{onSelect:e=>r(e),children:[e(M,{className:"mb-8 flex p-0",children:n.map(((t,a)=>e(P,{className:u("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(Ae,{className:"m-0 text-center",children:t.title})},a)))}),n.map(((t,a)=>e(U,{className:"",children:t.content},a)))]})}):e(a,{})};gt.displayName="Tabs";const bt=({testID:a,facebook:i,twitter:n,instagram:l,linkedin:r})=>t("div",{"data-testid":a||'"VisitUs"',className:"flex gap-2",children:[i&&e(he,{variant:ce.PRIMARY,size:ue.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(i.url)}),n&&e(he,{variant:ce.PRIMARY,size:ue.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(n.url)}),l&&e(he,{variant:ce.PRIMARY,size:ue.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(l.url)}),r&&e(he,{variant:ce.PRIMARY,size:ue.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(r.url)})]});bt.displayName="VisitUs";const Et=({testID:a,title:i,links:n,inline:l=!0,separators:r=!1,className:o})=>t("div",{"data-testid":a||'"Menu"',className:E(u("flex flex-col gap-2",o)),children:[i&&e("div",{children:e(Le,{tag:Ie.H3,children:i})}),e("div",{className:u("flex gap-0 items-center md:items-start",{"flex-row ":l},{"flex-col ":!l}),children:null==n?void 0:n.map(((a,i)=>{const l=`${a.id}--${i}`;return t("div",{className:"flex gap-0",children:[e("div",{className:"relative py-2",children:t(ge,{href:a.url,className:"flex gap-1",children:[a.icon&&e(oe,{name:a.icon}),a.title&&e("div",{children:a.title})]})}),r&&i+1<n.length&&e("div",{className:"h-full flex self-center px-2",children:e(oe,{name:"mdi:dot",className:"opacity-50"})})]},l)}))})]});var Nt;Et.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(Nt||(Nt={}));const yt=({children:t,className:a,spacing:i,padded:n,isNarrow:l,isCentered:r,isFlush:o,direction:s=Nt.COLUMN})=>{const d=E(u("container relative mx-auto my-0",{"px-2 md:px-4 lg:px-4":n},{"py-40":"feature"===i},{"py-24":"component"===i},{"py-16":"module"===i},{"py-10":"element"===i},{"py-4":"atom"===i},{"py-0":"none"===i},{"max-w-3xl":l},{"flex items-center justify-center flex-col":r},{"px-0 max-w-full mx-0":o},{"flex flex-col":s===Nt.COLUMN},{"flex-row":s===Nt.ROW})),c=u("w-full",a);return e("div",{"data-testid":"Container",className:d,children:e("div",{className:c,children:t})})};yt.displayName="Container";const St=({testID:a,children:i,withBg:n=!0,inversed:l=!1})=>t("div",{"data-testid":a||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[n&&e("div",{className:u("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!l,"-top-24 left-0":l})}),e(yt,{children:i})]});St.displayName="Hero";const At=({testID:a,bgAsset:i,focalAsset1:n,focalAsset2:l,focalAsset3:r})=>{c(null);const o={opacity:.001,rotate:0,scale:1,x:200,y:0},s={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,transition:{damping:60,delay:0,mass:1.2,stiffness:300,type:"spring"},x:0,y:0};return t("div",{"data-testid":a||"AnimationSet1",className:u("relative w-full h-full"),children:[i&&e(v.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(we,{src:i.src,alt:i.alt,fill:!0})}),(n||l)&&t(v.div,{className:"absolute right-0 top-1/2 z-10 overflow-visible w-3/4 aspect-[0.78/1]",style:{transform:"translateY(-50%)"},children:[n&&e(v.div,{className:"absolute w-1/2 aspect-[0.35/1] right-16 top-0",initial:o,animate:s,children:e(we,{src:n.src,alt:n.alt,fill:!0})}),l&&e(v.div,{className:"absolute w-1/2 aspect-[0.5/1] -left-4 top-20",initial:o,animate:Object.assign(Object.assign({},s),{transition:Object.assign(Object.assign({},s.transition),{delay:.3})}),children:e(we,{src:l.src,alt:l.alt,fill:!0})})]}),r&&e("div",{className:"absolute w-1/4 aspect-[0.5/1] flex flex-col flex-nowrap p-0 top-16 z-20 items-end justify-end left-0",children:e(v.div,{className:"relative w-full overflow-visible aspect-[1.2/1]",initial:{opacity:.001,rotate:0,scale:1,x:100,y:0},animate:{opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,transition:{damping:60,delay:.6,mass:1.2,stiffness:300,type:"spring"},x:0,y:0},children:e(we,{src:r.src,fill:!0,alt:r.alt})})})]})};At.displayName="AnimationSet1";const Ct=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,Ot=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,It={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},Tt={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."}},Rt=({handleSubmit:i,initialValues:n,showSocialButtons:l=!1})=>t("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[t(mt,{onSubmit:i,submit:We.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:n,children:[e(ft,{name:"email",type:ht.EMAIL,label:We.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:It,autoComplete:"email"}),e(ft,{name:"password",type:ht.PASSWORD,label:We.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),l&&t(a,{children:[e(xe,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(he,{onClick:()=>window.location.assign(Ct),variant:ce.PRIMARY,iconFirst:!0,icon:"mdi:google",children:We.UI.LOGIN_WITH_GOOGLE}),e(he,{onClick:()=>window.location.assign(Ot),variant:ce.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:We.UI.LOGIN_WITH_APPLE})]})})]})]});Rt.displayName="LoginForm";const Lt=({handleSubmit:i,showSocialButtons:n=!1})=>t("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[t(mt,{onSubmit:i,submit:We.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e(ft,{name:"email",type:ht.EMAIL,label:We.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:It,autoComplete:"email"}),e(ft,{name:"password",type:ht.PASSWORD,label:We.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:We.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:Tt,autoComplete:"new-password"})]}),n&&t(a,{children:[e(xe,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(he,{onClick:()=>window.location.assign(Ct),variant:ce.PRIMARY,iconFirst:!0,icon:"mdi:google",children:We.UI.SIGNUP_WITH_GOOGLE}),e(he,{onClick:()=>window.location.assign(Ot),variant:ce.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:We.UI.SIGNUP_WITH_APPLE})]})})]})]});Lt.displayName="RegisterForm";const xt=({handleSubmit:t})=>e("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e(mt,{onSubmit:t,submit:We.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e(ft,{name:"email",type:ht.EMAIL,label:We.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:It})})});xt.displayName="ForgotPasswordForm";const wt=({loginSubmit:a,registerSubmit:n,passwordForgotSubmit:l,handleTokenCallback:o,showSocialLogin:s=!1})=>{const[d,c]=i.useState(!1);return r((()=>{!function(){fe(this,0,void 0,(function*(){if(!process.env.AWS_COGNITO_USERPOOL_DOMAIN||!process.env.AWS_COGNITO_CLIENT_ID||!process.env.AWS_COGNITO_REDIRECT_URI)return;const e=new URLSearchParams(window.location.search).get("code");if(e){const t=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/token`,a=new URLSearchParams;a.append("grant_type","authorization_code"),a.append("client_id",process.env.AWS_COGNITO_CLIENT_ID),a.append("code",e),a.append("redirect_uri",process.env.AWS_COGNITO_REDIRECT_URI);const i=yield fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a}),n=yield i.json();n&&o&&"function"==typeof o&&o(n)}}))}()}),[]),t("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-128",children:[!d&&e(gt,{data:[{title:"Login",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(Rt,{handleSubmit:a,showSocialButtons:s}),e("div",{className:"mt-4",children:e(he,{variant:ce.LINK,onClick:()=>c(!d),children:d?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e("div",{className:"flex flex-col gap-4 items-center",children:e(Lt,{handleSubmit:n,showSocialButtons:s})})}]}),d&&e(gt,{data:[{title:"Forgot Password",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(xt,{handleSubmit:l}),e("div",{className:"mt-4",children:e(he,{variant:ce.LINK,onClick:()=>c(!d),children:d?"Back to Login":"Forgot Password?"})})]})}]})]})};function kt({className:t,onClick:a}){return e(he,{className:"absolute -right-2 top-1/2 -translate-y-1/2 z-10",onClick:a,icon:"mdi:navigate-next",rounded:!0})}function Dt({className:t,onClick:a}){return e(he,{className:"absolute -left-2 top-1/2 -translate-y-1/2 z-10",onClick:a,icon:"mdi:navigate-before",rounded:!0})}wt.displayName="Authenticator";const _t=({testID:t,data:a,onPressCallback:i=(()=>{}),count:n=5,isCentered:l=!1,carouselOptions:r={loop:!1,scrollAnimationDuration:500,showDots:!1,showArrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:n}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}]}})=>{const o=a.length<=n;return e("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e(F,{arrows:!o&&r.showArrows,nextArrow:e(kt,{}),prevArrow:e(Dt,{}),centerMode:l,responsive:r.responsive,slidesToScroll:1,slidesToShow:n,dots:!o&&r.showDots,infinite:!o&&r.loop,speed:r.scrollAnimationDuration,children:a.map(((t,a)=>e("div",{className:"px-2",children:e(ct,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>{i(t.data.id)}}),className:t.className},a)},a)))})})};var Mt;_t.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"}(Mt||(Mt={}));const Pt=({testID:a,cardData:i,title:n,description:l,withSeparators:r,spacing:o=Mt.MODULE})=>{const s=c(null),d=m(s,{once:!0});return t("div",{ref:s,"data-testid":a||"PanelCards",className:u("relative m-auto w-full flex flex-col flex-none flex-nowrap",o),children:[(n||l)&&t("div",{className:"relative text-center py-8",children:[n&&e(ut,{text:n}),l&&e(Ae,{align:be.CENTER,children:l})]}),e("div",{className:"flex gap-8 items-center justify-center flex-col md:flex-row",children:null==i?void 0:i.map(((a,n)=>t("span",{className:"flex gap-8 justify-between items-center",children:[e("div",{className:u("relative flex flex-1 items-center justify-center",{"":r}),style:{transform:d?"none":"translateY(200px)",opacity:d?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*n}s`},children:e(ct,Object.assign({},a))}),r&&n<i.length-1&&e("div",{className:"w-1 h-10 border-0 border-r border-solid border-primary500"},`separator-${n}`)]},`card-${n}`)))})]})};Pt.displayName="PanelCards";const Ut=({testID:a,title:i,description:n,inversed:l,assets:r,buttonData:o,withBg:s=!0,spacing:d=Mt.DEFAULT,chips:c})=>t("div",{"data-testid":a||"PanelFeature",className:u("relative m-auto w-full flex flex-none flex-nowrap px-4 md:px-0",d),children:[s&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -top-24 -left-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e(yt,{children:t("div",{className:u("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":l}),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(ut,{text:i,flush:!0})}),e("div",{className:"relative text-center md:text-left",children:e(Ae,{className:"mb-0",children:n})}),c&&e("div",{className:"grid grid-cols-3 gap-2 mx-auto md:mx-0",children:null==c?void 0:c.map(((t,a)=>e(Ce,{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(he,Object.assign({},o))})]}),e("div",{className:"w-full md:w-1/2 flex items-center justify-center",children:e("div",{className:"w-full aspect-[1/1] flex items-center justify-center",children:e(At,{bgAsset:r.bgAsset,focalAsset1:r.focalAsset1,focalAsset2:r.focalAsset2,focalAsset3:r.focalAsset3})})})]})})]});Ut.displayName="PanelFeature";const Ft=({url:t,sources:a,onReady:l,onExitFullScreenCallback:o,className:s,options:d={},isYoutube:c=!1,defaultAudioTrack:m="No Music",rounded:h=!0,aspectRatioValue:p,fullScreenOnly:f=!1})=>{const v=i.useRef(null),g=i.useRef(null),b=i.useRef(null),N=n((()=>{switch(console.log("aspectRatioValue",p),p){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]"}}}),[p]);return r((()=>{var e;if(c)return;const t=Object.assign(Object.assign({autoplay:!0,controls:!0,muted:!1,playsinline:!1,preferFullWindow:!0,responsive:!0,fill:!0,fluid:!0,aspectRatio:N.aspectRatio||"16:9",controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},d),{sources:a});if(console.log("videoOptions",t),b.current){const e=b.current;e.autoplay(d.autoplay),e.src(d.sources)}else{const a=document.createElement("video-js");a.classList.add("vjs-big-play-centered"),null===(e=null==g?void 0:g.current)||void 0===e||e.appendChild(a);const i=b.current=j(a,t,(()=>{j.log("player is ready",i),l&&l(i)}));f&&i.requestFullscreen(),i.on("loadedmetadata",(function(){const e=i.audioTracks();for(let t=0;t<e.length;t++)e[t].label===m&&(e[t].enabled=!0)})),i.on("fullscreenchange",(function(){i.isFullscreen()?console.log("Player is in fullscreen"):(console.log("Player is not in fullscreen"),o&&"function"==typeof o&&o())}))}}),[d,g]),r((()=>{if(c)return;const e=b.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),b.current=null)}}),[b]),c&&t?e("div",{"data-testid":"Video",className:u("relative w-full h-full aspect-[16/9]",s),children:e(B,{ref:v,className:"react-player",url:t,width:"100%",height:"100%",controls:!0,onReady:l})}):(console.log("aspectRatioConfig",N),e("div",{className:E(u("relative w-full overflow-hidden h-full aspect-[16/9] bg-black object-cover",{rouded:h},N.className,s)),children:e("div",{"data-vjs-player":!0,children:e("div",{ref:g,className:"object-cover"})})}))};Ft.displayName="Video";const Bt=({testID:a,title:i,contentComponent:l,description:o,image:s,buttonData:d,inversed:h=!1,withBg:p=!0,spacing:f,video:b,headingTag:N,className:y})=>{const S=g(),A=c(null),C=m(A),O={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};r((()=>{C&&S.start((e=>({transform:"none",transition:Object.assign(Object.assign({},O),{delay:.1*e})})))}),[S,C]);const I=n((()=>{switch(null==b?void 0:b.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]"}}),[b]),T=h?"translateX(100px)":"translateX(-100px)";return t("div",{"data-testid":a||"PanelHero",className:E(u("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",f,y)),children:[p&&e("div",{className:u("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-b md:bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!h,"-top-24 left-0":h})}),e(yt,{children:t("div",{className:u("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":h}),children:[e("div",{ref:A,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:t("div",{className:u("relative flex flex-col gap-4 from-bodyBackground dark:from-darkBodyBackground p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!h},{"text-left bg-gradient-to-t md:bg-gradient-to-r":h}),children:[e(v.div,{initial:{transform:T},custom:0,animate:S,children:e(ut,{text:i,tag:N})}),l&&e(v.div,{initial:{transform:T},custom:1,animate:S,children:l}),o&&e(v.div,{initial:{transform:T},custom:1,animate:S,children:e($e,{className:"mb-0",align:h?be.LEFT:be.RIGHT,data:o})}),d&&e(v.div,{initial:{transform:T},custom:2,animate:S,children:e("div",{className:u("flex items-center",{"justify-end":!h,"justify-start":h}),children:e(he,Object.assign({},d))})})]})}),e("div",{className:"relative w-full md:w-1/2 z-0",children:t("div",{className:u("relative scale-[1.35] rounded overflow-hidden shadow",I),children:[s&&e(we,{src:s,alt:i,fill:!0}),b&&e(Ft,{sources:b.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:b.aspectRatioValue})]})})]})})]})};Bt.displayName="PanelHero";const jt=({testID:a,title:i,description:n,image1:l,image2:r,iosLink:o="#",androidLink:s="#",inversed:d=!1,withBg:c=!0,spacing:m=Mt.MODULE})=>t("div",{"data-testid":a||"PanelFeature",className:u("relative m-auto w-full flex flex-none flex-nowrap",m),children:[c&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -bottom-24 -right-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e(yt,{children:t("div",{className:u("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-tertiary dark:bg-secondary rounded p-8 shadow",{"flex-row-reverse":d}),children:[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-1/3",children:e(we,{src:r,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-1/2",children:e(we,{src:l,alt:i})})]}),t("div",{className:"w-full md:w-1/2",children:[e("div",{children:e(ut,{text:i})}),e("div",{children:e(Ae,{children:n})}),t("div",{className:"flex items-center justify-start gap-4",children:[e("div",{className:"relative w-[150px] h-[50px]",children:e(ge,{href:o,target:"_blank",hideExternalIcon:!0,children:e(we,{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(ge,{href:s,target:"_blank",hideExternalIcon:!0,children:e(we,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});jt.displayName="PanelProduct";const Ht=({testID:a,className:i,title:n,description:l,spacing:r=Mt.NONE,videoProps:o})=>t("div",{"data-testid":a||'"PanelVideo"',className:E(u("relative m-auto w-full flex flex-none flex-nowrap overflow-hidden items-center justify-center",`md:aspect-[${o.aspectRatioValue}]`,r,i)),children:[e(Ft,{rounded:!1,aspectRatioValue:o.aspectRatioValue,options:Object.assign({autoplay:!0,muted:!0,controls:!1,loop:!0},null==o?void 0:o.options),sources:null==o?void 0:o.sources}),t("div",{className:"absolute top-0 left-0 w-full h-full z-10",children:[e("div",{className:"absolute top-0 left-0 w-full h-full bg-gradient-to-r from-transparent to-black opacity-50"}),t("div",{className:"absolute top-0 left-2 md:left-0 w-full h-full flex flex-col items-end justify-center pr-24 text-white",children:[n&&e(v.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(ut,{text:n})})}),l&&e(v.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(Ae,{children:l})})})]})]})]});Ht.displayName="PanelVideo";const Gt=({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(ct,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>i(t.data.id)})},a)))});var Wt;Gt.displayName="CardGrid",function(e){e.NONE="none",e.ATOM="atom",e.DEFAULT="default",e.ELEMENT="element",e.COMPONENT="component",e.MODULE="module",e.FEATURE="feature"}(Wt||(Wt={}));const zt=({spacing:t=Wt.DEFAULT,children:a,narrow:i,flush:n,className:l})=>{const r=u("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":n},l);return e("div",{"data-testid":"ContentPageLayout",className:r,children:a})};var Yt;zt.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"}(Yt||(Yt={}));const Vt=({className:t,children:a,size:i=Yt.DEFAULT})=>{const n=u("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:n,children:a})};Vt.displayName="ContentRowsLayout";const qt=({testID:a,className:i})=>{var n,l,r,o,d,c,m,h,p,f,v,g,b,E;const N=s(Ze);return e("footer",{className:u("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8",i),children:t(yt,{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:[(null===(n=null==N?void 0:N.brand)||void 0===n?void 0:n.logo)&&e("div",{className:"relative w-24",children:e(Pe,{logo:null===(l=null==N?void 0:N.brand)||void 0===l?void 0:l.logo,aspectRatioClass:null===(r=null==N?void 0:N.brand)||void 0===r?void 0:r.logoAspectRatio})}),(null===(o=N.footer)||void 0===o?void 0:o.about)&&e("div",{children:e(Ae,{children:N.footer.about})}),e("div",{children:e(bt,{facebook:null===(c=null===(d=N.footer)||void 0===d?void 0:d.visitUs)||void 0===c?void 0:c.facebook,twitter:null===(h=null===(m=N.footer)||void 0===m?void 0:m.visitUs)||void 0===h?void 0:h.twitter,instagram:null===(f=null===(p=N.footer)||void 0===p?void 0:p.visitUs)||void 0===f?void 0:f.instagram,linkedin:null===(g=null===(v=N.footer)||void 0===v?void 0:v.visitUs)||void 0===g?void 0:g.linkedin})})]}),(null===(b=N.footer)||void 0===b?void 0:b.menus)&&e("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:N.footer.menus.map(((t,a)=>e("div",{className:"flex flex-1",children:e(Et,{title:t.title,links:t.links,inline:!1})},`${t.title}--${a}`)))})]}),t("div",{className:"flex items-center justify-center flex-col",children:[t(Ae,{align:be.CENTER,as:Se.SMALL,children:["© ",(new Date).getFullYear()," ",We.UI.COPYRIGHT," ",null===(E=N.brand)||void 0===E?void 0:E.name]}),e(Ae,{align:be.CENTER,as:Se.SMALL,children:We.UI.ALL_RIGHTS_RESERVED})]})]})})};qt.displayName="Footer";const Kt=({testID:a,hideMenu:i=!1,className:n,logoOnly:l})=>{var r,o,c,m,h,p,f,v,g,b,N,y,S,A,C,O,I,T,R,L,x,w;const k=s(Ze),D=et(),[_,M]=d("hidden"),[P,U]=d(!1),F=()=>{M("hidden"===_?"block":"hidden")};return e("header",l?{"data-testid":a||'"Header"',className:E(u("relative z-10 w-full m-auto py-4 bg-bodyBackground dark:bg-darkBodyBackground",n)),children:e("div",{className:"relative w-full flex justify-center items-center",children:(null===(r=null==k?void 0:k.brand)||void 0===r?void 0:r.logo)&&e("div",{className:"relative w-56",children:e(ge,{href:"/",children:e(Pe,{logo:null===(o=null==k?void 0:k.brand)||void 0===o?void 0:o.logo,aspectRatioClass:null===(c=null==k?void 0:k.brand)||void 0===c?void 0:c.logoAspectRatio})})})})}:{"data-testid":a||'"Header"',className:E(u("relative w-full m-auto py-4 bg-bodyBackground dark:bg-darkBodyBackground",n)),children:t(yt,{padded:!0,children:[t("div",{className:"relative w-full flex",children:[(null===(m=null==k?void 0:k.brand)||void 0===m?void 0:m.logo)&&e("div",{className:"relative w-32",children:e(ge,{href:"/",children:e(Pe,{logo:null===(h=null==k?void 0:k.brand)||void 0===h?void 0:h.logo,aspectRatioClass:null===(p=null==k?void 0:k.brand)||void 0===p?void 0:p.logoAspectRatio})})}),e("div",{className:"flex-1 hidden md:flex items-center justify-center",children:(null===(f=null==k?void 0:k.header)||void 0===f?void 0:f.nav)&&e(Et,{links:k.header.nav,separators:!0})}),t("div",{className:"hidden md:flex flex-col justify-center",children:[!(null===(v=null==k?void 0:k.app)||void 0===v?void 0:v.isAuthenticated)&&(null===(g=null==k?void 0:k.app)||void 0===g?void 0:g.loginCallback)&&e("div",{className:"w-32 flex justify-end",children:e(he,{onClick:null===(b=null==k?void 0:k.app)||void 0===b?void 0:b.loginCallback,children:D.UI.LOGIN})}),!(null===(N=null==k?void 0:k.app)||void 0===N?void 0:N.isAuthenticated)&&!(null===(y=null==k?void 0:k.app)||void 0===y?void 0:y.loginCallback)&&e("div",{className:"w-32 flex justify-end"}),(null===(S=null==k?void 0:k.app)||void 0===S?void 0:S.isAuthenticated)&&t("div",{className:"relative",children:[e(he,{onClick:()=>U(!P),icon:P?"mdi:user-outline":"mdi:user"}),e("div",{onClick:()=>U(!1),className:u("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!P}),children:(null===(A=null==k?void 0:k.header)||void 0===A?void 0:A.profile)&&e(Et,{links:k.header.profile,inline:!1})})]})]}),e("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e(he,{variant:ce.PRIMARY,icon:"mdi:menu",onClick:F})})]}),t("div",{className:u("navbar-menu relative z-50",_,{hidden:i}),children:[e("div",{className:"navbar-backdrop fixed inset-0 bg-black opacity-25"}),t("nav",{className:"fixed top-0 left-0 bottom-0 flex flex-col w-5/6 max-w-sm py-4 px-4 bg-bodyBackground dark:bg-darkBodyBackground border-r overflow-y-auto",children:[t("div",{className:"flex justify-between",children:[e("div",{className:"relative w-32",children:(null===(C=null==k?void 0:k.brand)||void 0===C?void 0:C.logo)&&e("div",{className:"relative w-32",children:e(Pe,{logo:null===(O=null==k?void 0:k.brand)||void 0===O?void 0:O.logo,aspectRatioClass:null===(I=null==k?void 0:k.brand)||void 0===I?void 0:I.logoAspectRatio})})}),e("div",{children:e(he,{variant:ce.PRIMARY,icon:"mdi:close",onClick:F})})]}),t("div",{className:"flex flex-col flex-1 gap-4",children:[(null===(T=null==k?void 0:k.app)||void 0===T?void 0:T.isAuthenticated)&&e("div",{className:"md:hidden flex justify-center",children:e(Ae,{children:"User profile avatar and details here."})}),e("div",{className:"flex flex-1 justify-center pt-4",children:(null===(R=null==k?void 0:k.header)||void 0===R?void 0:R.nav)&&e(Et,{links:k.header.nav,inline:!1})}),(null===(L=null==k?void 0:k.app)||void 0===L?void 0:L.isAuthenticated)&&e("div",{className:"md:hidden flex justify-center",children:e(he,{onClick:null===(x=null==k?void 0:k.app)||void 0===x?void 0:x.logoutCallback,children:D.UI.LOGOUT})}),!(null===(w=null==k?void 0:k.app)||void 0===w?void 0:w.isAuthenticated)&&e("div",{className:"md:hidden flex justify-center",children:e(he,{onClick:()=>{var e;null===(e=null==k?void 0:k.app)||void 0===e||e.loginCallback(),F()},children:D.UI.LOGIN})})]})]})]})]})})};Kt.displayName="Header";const $t=({testID:t,inputCallback:a,seperator:l,numInputs:r=4,shouldAutoFocus:o=!1,size:s="medium"})=>{const[c,m]=d("");i.useEffect((()=>{c&&4===c.length&&void 0!==a&&"function"==typeof a&&a(c)}),[c]);const h=n((()=>{switch(s){case"small":return{width:"2.5rem",height:"3rem"};case"medium":return{width:"3.5rem",height:"4rem"};case"large":return{width:"4.5rem",height:"5rem"};default:return{width:"2.5rem",height:"2.5rem"}}}),[s]);return e("div",{"data-testid":t||'"OTPInput"',className:"foo-bar",children:e(H,{value:c,onChange:m,inputType:"number",numInputs:r,shouldAutoFocus:o,renderSeparator:l?()=>e("div",{className:"flex items-center justify-center",children:e(oe,{name:"mdi:dot",className:"opacity-50"})}):e("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e("input",Object.assign({},t,{className:u("remove-arrow form-item text-input w-12")})),inputStyle:{width:h.width,height:h.height}})})};var Xt,Qt;function Zt({className:a,label:i,onChange:n,options:l}){return l?t("div",{className:u("m-0 p-0 mb-2 border-none",a),children:[e(ke,{className:"text-sm",transform:Ee.UPPERCASE,children:i}),e(pt,{id:i||"Sorting",options:l,onChange:e=>n(e.target.value)})]}):null}function Jt(t){var{className:a,current:i,resultsPerPage:n=10,onChange:l,totalPages:r}=t,o=pe(t,["className","current","resultsPerPage","onChange","totalPages"]);return e(ee,Object.assign({current:i,onChange:l,simple:!0,pageSize:n,total:r*n,className:u("m-0 p-0 list-none text-bodyTextInverted flex gap-2 text-center items-center [&>li>span]:px-2 [&>li>input]:text-black [&>li>input]:rounded [&>li>input]:text-center",a),locale:te,prevIcon:e("div",{className:"text-bodyText",children:e(oe,{name:"mdi:chevron-left"})}),nextIcon:e("div",{className:"text-bodyText",children:e(oe,{name:"mdi:chevron-right"})})},o))}function ea({className:i,onChange:n,options:l,label:r}){return l?t("div",{className:u("m-0 p-0 mb-2 border-none",i),children:[e(ke,{className:"text-sm mr-2",transform:Ee.UPPERCASE,children:We.UI.SHOW}),e(pt,{id:r||"ResultsPerPage",options:l.map((e=>({label:e.toString(),value:e}))),onChange:e=>n(e.target.value),className:"min-w-20"})]}):e(a,{})}function ta(i){var{className:n,end:l,searchTerm:r,start:o,totalResults:s}=i,d=pe(i,["className","end","searchTerm","start","totalResults"]);return t("div",Object.assign({className:u("m-0 p-0 flex-1",n)},d,{children:["Showing"," ",t("strong",{children:[o," - ",l]})," ","out of ",e("strong",{children:s}),r&&t(a,{children:[" ","for: ",e("em",{children:r})]})]}))}function aa({className:a,onChange:i,onSubmit:n,wasSearched:l,placeholder:r,allowReset:o=!1,resetTrigger:d=(()=>{})}){return s(W),e("div",{className:u("m-0 md:px-48",a),children:t("form",{onSubmit:e=>n(e),className:"flex items-center",children:[e("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e(Ge,{name:"SearchBoxInput",type:He.TEXT,placeholder:r||"Search now...",onChange:e=>{var t;i(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)}})}),e("div",{className:"pl-4",children:t("div",{className:"flex flex-row gap-2",children:[l&&o&&e(he,{type:de.BUTTON,onClick:()=>d("",{shouldClearFilters:!1}),variant:ce.SECONDARY,icon:"mdi:restore"}),e(he,{type:de.SUBMIT,variant:ce.PRIMARY,icon:"mdi:magnify"})]})})]})})}function ia({className:i,children:n,header:l,bodyContent:r,bodyFooter:o,bodyHeader:s,sideContent:d,showSidebar:c}){const m=u("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:u("w-full flex flex-col",i),children:[e("div",{className:"m-auto md:py-0 w-full",children:l}),t("div",{className:u("md:grid m-auto md:py-0 w-full",{"md:grid-cols-searchLayout":!d,"md:grid-cols-searchLayoutWithSidebar":d}),children:[!ae&&e("div",{className:m,children:d}),t("div",{className:u("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:s}),e("div",{className:"relative",children:n||r}),e("div",{className:"flex items-center justify-around",children:o})]})]})]}),ae&&c&&e("div",{className:"fixed z-10 w-full top-0 left-0 right-0 bottom-0 bg-bodyBackground px-4 overflow-scroll",children:d})]})}function na(t){var{children:a,className:i,gridClasses:n}=t,l=pe(t,["children","className","gridClasses"]);const r=n||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return e("ul",Object.assign({className:u("relative grid gap-4 mb-4",r,i)},l,{children:a}))}function la(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function ra(e,t){if(e)return e[t]}function oa(e){const t=ra(e,"snippet")||(a=function(e){return ra(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 sa({className:t,result:a,as:i,cardMap:n={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:l,titleField:r,imageField:o,videoField:s,descriptionField:d,metaDataFields:c,cardProps:m}=n,h=l&&oa(a[l.fieldName]),p=r&&oa(a[r.fieldName]),f=o&&oa(a[o.fieldName]),v=s&&s.formatter?s.formatter(oa(a[s.fieldName])):s&&oa(a[s.fieldName]),g=d&&oa(a[d.fieldName]),b=c&&c.map((e=>{const t=oa(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)}));return e("li",{className:u("relative",t),children:(()=>{const t={id:h,title:p,image:{src:f||"",alt:p||"",title:p||"",width:500,height:500},video:v,description:g,metaData:b,actions:n.actionsData,onClick:n.onClickLink};switch(i){case Qt.cardMedia:return e(ct,Object.assign({variant:Xt.MEDIA,data:t},m));case Qt.cardVideo:return e(ct,Object.assign({variant:Xt.VIDEO,data:t},m,{isMuted:!1}));default:return e(ct,Object.assign({variant:Xt.BASIC,data:t},m))}})()})}function da({showOptions:i,sortOptions:l,resultAs:r=Qt.cardBasic,ResultFieldMap:o,config:s={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:c=[],noSidebar:u=!1,customConnector:m,showPagingInfo:h,gridClasses:p,initialState:f={},showTextSearch:v=!0}){const g=et(),b=n((()=>{const e={host:process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""};return new G(m||e)}),[]),E=n((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:!0,apiConnector:b,hasA11yNotifications:!0,searchQuery:{filters:s.filters||[],search_fields:s.searchFields||{},result_fields:s.resultsFields||{},facets:s.facets},autocompleteQuery:{results:{search_fields:{title:{},description:{}},resultsPerPage:5,result_fields:{title:{snippet:{size:100,fallback:!0}}}}},initialState:Object.assign({resultsPerPage:(null==i?void 0:i[0])||8},f)})),[s]),[N,y]=d(!1),S=()=>{y((e=>!e))};return e(z,{config:E,children:e(Y,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:n,setSearchTerm:d})=>{var m;return e(a,{children:e(V,{children:e(ia,{noSidebar:u,showSidebar:N,header:v&&e(q,{view:t=>e(aa,Object.assign({},t,{wasSearched:n,placeholder:s.initialPlaceholder,allowReset:!0,resetTrigger:d}))}),sideContent:!u&&c&&t("div",{children:[e("div",{className:"md:hidden flex justify-end pt-2 -mb-2",children:e(he,{onClick:S,icon:"mdi:close",children:null===(m=null==g?void 0:g.UI)||void 0===m?void 0:m.HIDE_FILTERS})}),n&&l&&e(K,{label:"Sort by",sortOptions:l,view:Zt}),null==c?void 0:c.map((({field:t,label:a,view:i})=>e($,{field:t,label:a,view:i},t)))]}),bodyContent:e(X,{shouldTrackClickThrough:!1,resultView:t=>e(sa,Object.assign({},t,{as:r,cardMap:o})),className:"list-none p-0 m-0",view:t=>e(na,Object.assign({},t,{gridClasses:p}))}),bodyHeader:t(a,{children:[n&&h&&e(Q,{view:ta}),n&&i&&e(Z,{view:ea,options:i}),n&&l&&u&&e(K,{label:"Sort by",sortOptions:l,view:Zt}),n&&!u&&e("div",{className:"block md:hidden",children:e(he,{rounded:!0,onClick:S,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e(J,{view:Jt})})})})}})})}function ca({className:a,label:i,onChange:n,options:l}){const r=l.map((e=>({value:e.value,label:`${e.value} (${e.count})`})));return t("fieldset",{className:u("m-0 p-0 mt-4 mb-2 border-none",a),children:[e(ke,{className:"text-sm",transform:Ee.UPPERCASE,children:i}),e(pt,{id:i,options:r,onChange:e=>n(e.target.value)})]})}function ua({className:a,label:i,onRemove:n,onSelect:l,options:r}){const o=r.filter((e=>e.selected)).map((e=>e.value))[0];return e("fieldset",{className:u("m-0 p-0 mt-4 mb-2 border-none",a),children:t("div",{children:[e(ke,{transform:Ee.UPPERCASE,children:i}),t("ul",{className:"ul list-none p-0",children:[o&&t("li",{className:"m-0 flex justify-between items-center flex-1",children:[la(o),e("span",{className:"ml-1 px-1",children:e(he,{onClick:()=>n(o),size:ue.SMALL,rounded:!0,children:e(oe,{name:"mdi:close"})})})]}),!o&&r.map((a=>{const n=la(a.value);return t("li",{className:"m-0 flex justify-between",children:[e("a",{className:"no-underline visited:text-bodyText","data-transaction-name":`facet - ${i}`,href:"/",onClick:e=>{e.preventDefault(),l(a.value)},children:e("label",{className:"label pl-0 leading-none text-bodyText dark:text-darkBodyText",children:n})}),e(Ae,{as:Se.SPAN,size:ye.MEDIUM,children:a.count.toLocaleString("en")})]},n)}))]})]})})}function ma({className:i,label:n,onMoreClick:l,onRemove:r,onSelect:o,options:s,showMore:d,showSearch:c,onSearch:m,searchPlaceholder:h}){return s?t("fieldset",{className:u("m-0 p-0 mt-4 mb-2 border-none",i),children:[e(ke,{className:"text-sm",transform:Ee.UPPERCASE,children:n}),c&&e("div",{className:"mt-1",children:e(Ge,{type:He.SEARCH,placeholder:h||"Search",onChange:e=>{m(e.target.value)}})}),t("div",{className:"my-4",children:[(null==s?void 0:s.length)<1&&e("div",{children:"No matching options"}),null==s?void 0:s.map((a=>{const i=a.selected,l=a.value,s=la(l);return t("div",{className:"flex justify-between pb-2",children:[e(ve,{id:`facet_${n}${s}`,"data-transaction-name":`facet - ${n}`,checked:i,onChange:()=>i?r(l):o(l),label:s}),e(Ae,{as:Se.SPAN,size:ye.SMALL,children:a.count.toLocaleString("en")})]},s)}))]}),d&&e(he,{size:ue.SMALL,variant:ce.TERTIARY,onClick:l,"aria-label":"Show more options",children:"+ More"})]}):e(a,{children:"Options required"})}$t.displayName="OTPInput",function(e){e.BASIC="basic",e.MEDIA="media",e.VIDEO="video",e.ICON="icon",e.HORZ="horz",e.DATA="data"}(Xt||(Xt={})),function(e){e.cardBasic="cardBasic",e.cardMedia="cardMedia",e.cardVideo="cardVideo"}(Qt||(Qt={})),Zt.displayName="Sorting",Jt.displayName="Paging",ea.displayName="ResultsPerPage",ta.displayName="PagingInfo",aa.displayName="SearchBox",ia.displayName="Layout",na.displayName="Results",sa.displayName="Result",ca.displayName="SingleSelectFacet",ua.displayName="SingleLinksFacet",ma.displayName="MultiCheckboxFacet";const ha=({handleSubmit:t})=>e("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e(mt,{onSubmit:t,submit:We.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e(ft,{name:"password",type:ht.PASSWORD,label:We.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:Tt})})});ha.displayName="ResetPasswordForm";const pa=({testID:a,initialValues:i,handleSubmit:n})=>e("div",{"data-testid":a||'"ProfileForm"',className:"form-wrapper",children:t(mt,{onSubmit:n,submit:We.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:i,children:[e("div",{className:"mb-4 items-center justify-center flex",children:e(ze,{name:"avatar",initValue:null==i?void 0:i.avatar})}),e(ft,{name:"firstName",type:ht.TEXT,label:We.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e(ft,{name:"lastName",type:ht.TEXT,label:We.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e(ft,{name:"email",type:ht.EMAIL,label:We.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:It})]})});pa.displayName="ProfileForm";const fa=({testID:a,children:i,showHeader:n=!0,showFooter:l=!0,image:r,showOverlay:o=!0,isFlush:s})=>t("div",{"data-testid":a||'"Screen"',className:"h-full flex flex-col min-h-full overflow-x-hidden",children:[n&&e(Kt,{className:u({"fixed top-0 left-0 right-0 bg-opacity-50 dark:bg-opacity-50 z-50":s})}),t("main",{className:u("flex flex-1",{"pt-24 md:pt-32 lg:pt-40":r},{"pt-8 md:pt-12 lg:pt-12":!r&&!s}),children:[r&&t("div",{className:"absolute w-full aspect-[16/5] opacity-50 z-0 top-0 left-0 right-0",children:[e(we,{src:r,alt:"background",sizes:"100vw",style:{objectFit:"cover"}}),o&&e("div",{className:"absolute w-full h-full bg-gradient-to-b from-transparent to-bodyBackground dark:to-darkBodyBackground"})]}),e(yt,{padded:!s,isFlush:s,children:e("div",{className:"flex flex-col gap-8",children:i})})]}),l&&e(qt,{})]});fa.displayName="Screen";const va=({testID:a,title:i,image:n,user:l,logoutCallback:r,menu:o})=>{var s;const d=et();return t(fa,{"data-testid":a||"AccountScreen",image:n,children:[i&&e(ut,{text:i}),t("div",{children:[e("div",{className:"flex items-center justify-center",children:e(ze,{initValue:null===(s=null==l?void 0:l.profile)||void 0===s?void 0:s.picture,isEditable:!1})}),o&&e("div",{children:e(Me,{className:"flex items-center flex-col justify-center gap-2",children:null==o?void 0:o.map(((t,a)=>e(Ue,{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:[t("div",{className:"flex items-center flex-col justify-center gap-1",children:[e(Le,{tag:Ie.H5,flush:!0,children:d.UI.SHARE}),t("div",{className:"flex gap-2",children:[e(L,{url:process.env.APP_SHARE_URL,children:e(oe,{name:"mdi:facebook"})}),e(x,{url:process.env.APP_SHARE_URL,children:e(oe,{name:"mdi:twitter"})}),e(D,{url:process.env.APP_SHARE_URL,children:e(oe,{name:"mdi:linkedin"})}),e(w,{url:process.env.APP_SHARE_URL,children:e(oe,{name:"mdi:whatsapp"})})]})]}),e(he,{onClick:r,icon:"mdi:logout",children:null==d?void 0:d.UI.LOGOUT})]})]})]})};va.displayName="AccountScreen";const ga=({testID:a,title:i,image:n,formProps:l})=>t(fa,{"data-testid":a||"AuthScreen",image:n,children:[i&&e(ut,{text:i}),e("div",{className:"flex justify-center",children:e(wt,Object.assign({},l))})]});ga.displayName="AuthScreen";const ba=({testID:a,title:i,image:n,data:l,onPressCallback:r,isLoading:o})=>t(fa,{"data-testid":a||"CardGridScreen",image:n,children:[i&&e(ut,{text:i}),t("div",{children:[o&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(me,{})}),l&&e(Gt,{data:l,onPressCallback:r})]})]});ba.displayName="CardGridScreen";const Ea=({testID:a,title:i,image:n,searchProps:l})=>t(fa,{"data-testid":a||"CatalogueScreen",image:n,children:[i&&e(ut,{text:i}),e("div",{children:e(da,Object.assign({},l))})]});Ea.displayName="CatalogueScreen";const Na=({testID:a,title:i,image:n,data:l,isLoading:r,onPressCallback:o})=>t(fa,{"data-testid":a||"ChallengeLibraryScreen",image:n,children:[i&&e(ut,{text:i}),r&&e("div",{className:"",children:e(me,{})}),l&&e("div",{children:e(Gt,{data:l,onPressCallback:o})})]});Na.displayName="ChallengeLibraryScreen";const ya="MMMM dd, yyyy",Sa="HH:mm",Aa=({testID:a,title:i,image:l,created:r=0,body:o,days:s,price:d,puchaseLabel:c,hasAccess:u=!1,onPressCallback:m,purchaseCallback:h})=>{const p=et(),f=n((()=>ie(new Date(1e3*r),ya)),[r]);return t(fa,{"data-testid":a||"ChallengeScreen",image:l,children:[t("div",{children:[i&&e(ut,{text:i}),t(ke,{children:[p.UI.CREATED,": ",f]}),!u&&t("div",{className:"flex flex-col gap-2 mb-4",children:[e(Ae,{bold:!0,className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e(Ae,{className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e("div",{children:e(he,{variant:ce.PRIMARY,onClick:h,children:c})}),t(Ae,{size:ye.SMALL,className:"mb-0",children:["** ",p.GLOBAL.SCREENS.CHALLENGE.PAYMENT_NOTE]})]})]}),e("div",{children:o&&e($e,{data:o})}),e("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:null==s?void 0:s.map((t=>e(ct,{variant:Xt.MEDIA,data:{id:t.id,title:t.title,image:{src:t.image,alt:t.title},raised:!0,onClick:u?()=>m(t.id):void 0,accessRestriced:!u}},t.id)))})]})};Aa.displayName="ChallengeScreen";const Ca=({testID:a,title:i,image:n,updated:l,content:r})=>{var o;const s=et(),d=l?ie(new Date(1e3*l),"MMMM dd, yyyy HH:mm"):void 0;return t(fa,{"data-testid":a||"ContentScreen",image:n,children:[i&&e(ut,{text:i}),l&&e("div",{children:t(Ae,{children:[null===(o=null==s?void 0:s.UI)||void 0===o?void 0:o.UPDATED,": ",d]})}),e("div",{children:e($e,{data:r})})]})};Ca.displayName="ContentScreen";const Oa=({testID:a,title:i,image:n,user:l,latestData:r,recentdata:o,stats:s,promo:d,news:c,statsIsLoading:u,promosIsLoading:m,dataIsLoading:h,handleLatestDataPress:p,handleRecentDataPress:f,handleNewsDataPress:v})=>{var g,b,E,N,y,S;const A=et();return t(fa,{"data-testid":a||"DashboardScreen",image:n,children:[i&&e(ut,{text:i}),e("div",{children:t(Ae,{children:[null===(g=null==A?void 0:A.UI)||void 0===g?void 0:g.WELCOME," ",null==l?void 0:l.name]})}),u&&e("div",{children:e(me,{})}),!u&&s&&t("div",{className:"mb-8",children:[e(Le,{tag:Ie.H4,children:null===(b=null==A?void 0:A.UI)||void 0===b?void 0:b.ACTIVITY}),e("div",{className:"flex flex-row gap-4",children:s.map(((t,a)=>e("div",{children:e(ct,{variant:t.variant,data:t.data})},`${t.data.id}-${a}`)))})]}),h&&e("div",{children:e(me,{})}),!h&&r&&t("div",{children:[e(Le,{tag:Ie.H4,children:null===(E=null==A?void 0:A.UI)||void 0===E?void 0:E.LATEST_WORKOUTS}),e("div",{children:e(_t,{data:r,onPressCallback:p,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),m&&e("div",{children:e(me,{})}),!m&&d&&t("div",{children:[e(Le,{tag:Ie.H4,flush:!0,children:null===(N=null==A?void 0:A.UI)||void 0===N?void 0:N.WHATS_NEWS}),e(Bt,Object.assign({},d,{withBg:!0,spacing:Mt.ATOM}))]}),h&&e("div",{children:e(me,{})}),!h&&o&&t("div",{children:[e(Le,{tag:Ie.H4,children:null===(y=null==A?void 0:A.UI)||void 0===y?void 0:y.RECENTLY_ADDED}),e("div",{children:e(_t,{data:o,onPressCallback:f,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),m&&e("div",{children:e(me,{})}),!m&&c&&t("div",{children:[e(Le,{tag:Ie.H4,children:null===(S=null==A?void 0:A.UI)||void 0===S?void 0:S.WHATS_NEW}),e("div",{children:e(_t,{data:c,onPressCallback:v,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]})]})};Oa.displayName="DashboardScreen";const Ia=({title:a,isOpen:i})=>t("div",{className:u("flex flex-row items-center justify-between p-2 border border-solid border-tertiary transition-all rounded mb-2",{"bg-tertiary":i}),children:[e(Le,{flush:!0,tag:Ie.H4,className:u("transition-all",{"text-white":i}),children:a}),e("div",{className:"",children:e(oe,{name:i?"mdi:chevron-up":"mdi:chevron-down"})})]}),Ta=({testID:t,data:a,titleKey:i="title",contentKey:n="content"})=>e("div",{"data-testid":t||'"Accordion"',children:a.map((t=>e(ne,{triggerTagName:"div",easing:"ease-out",triggerWhenOpen:e(Ia,{title:t[i],isOpen:!0}),trigger:e(Ia,{title:t[i],isOpen:!1}),children:e("div",{className:"p-2",children:e(Ae,{children:t[n]})})},t[i])))});Ta.displayName="Accordion";const Ra=({testID:a,title:i,image:n,data:l,isLoading:r})=>t(fa,{"data-testid":a||"FAQScreen",image:n,children:[i&&e(ut,{text:i}),!l&&r&&e("div",{className:"flex flex-1 items-center justify-center min-h-[125px]",children:e(me,{})}),l&&e(Ta,{data:null==l?void 0:l.map((e=>({title:e.title||"",content:e.answer||""})))})]});Ra.displayName="FAQScreen";const La=({testID:a,image:i,panelVideoProps:n,panelFeatureProps:l,panelCardsProps:r,panelHerosProps:o,panelDataCardsProps:s,panelProductProps:d})=>t(fa,{"data-testid":a||"HomeScreen",image:i,isFlush:!0,children:[n&&e(Ht,Object.assign({},n)),t(yt,{children:[l&&e(Ut,Object.assign({},l)),r&&e(Pt,Object.assign({},r)),null==o?void 0:o.map(((t,a)=>e(Bt,Object.assign({},t),a))),s&&e(Pt,Object.assign({},s)),d&&e(jt,Object.assign({},d))]})]});La.displayName="HomeScreen";const xa=({testID:a,title:i,image:n,menu:l,isLoading:r=!1})=>t(fa,{"data-testid":a||"MenuScreen",image:n,children:[i&&e(ut,{text:i}),r&&e("div",{className:"flex flex-1 justify-center items-center min-h-[125px]",children:e(me,{})}),l&&e(Me,{children:l.map((t=>e(Ue,{as:"div",icon:t.icon,onClick:t.onPress,title:t.title},t.title)))})]});xa.displayName="MenuScreen";const wa=({testID:a,title:i,image:n,user:l,handleProfileSubmit:r})=>t(fa,{"data-testid":a||"ProfileScreen",image:n,children:[i&&e(ut,{text:i}),e(pa,{initialValues:null==l?void 0:l.profile,handleSubmit:r})]});wa.displayName="ProfileScreen";const ka=({testID:a,end:i,live:l,start:r,title:o})=>{const s=n((()=>ie(new Date(1e3*r),ya)),[r]),d=n((()=>ie(new Date(1e3*r),Sa)),[r]),c=n((()=>ie(new Date(1e3*i),Sa)),[i]);return t("div",{"data-testid":a||'"ScheduleItem"',className:"foo-bar",children:[e(Le,{tag:Ie.H4,children:o}),t(ke,{children:[s,": ",d," - ",c]}),l&&e("div",{children:e(Ft,{url:l,isYoutube:!0})})]})};ka.displayName="ScheduleItem";const Da=({testID:a,raised:l=!1,scheduleItems:o,hasAccess:s})=>{var d,c,u,m;const h=et(),[p,f]=i.useState(0),[v,g]=i.useState([]),b=n((()=>{var t;return null===(t=null==o?void 0:o.days)||void 0===t?void 0:t.map(((t,a)=>{var i,n;const l=Object.keys(t)[0],r=null===(i=t[l])||void 0===i?void 0:i[0];return r?{day:l.charAt(0).toUpperCase()+l.slice(1),component:e(ka,{title:r.title,live:r.live,start:r.start,end:r.end})}:{day:l.charAt(0).toUpperCase()+l.slice(1),component:e("div",{children:e(Le,{tag:Ie.H4,children:null===(n=null==h?void 0:h.UI)||void 0===n?void 0:n.NO_CLASS})})}}))}),[o]);r((()=>{const e=function(){const e=new Date,t=e.getDay(),a=new Date(e);a.setDate(e.getDate()-t);const i=[];for(let t=0;t<7;t++){const n=new Date(a);n.setDate(a.getDate()+t),i.push({date:n,isToday:n.toDateString()===e.toDateString()})}return i}(),t=e.findIndex((e=>e.isToday));f(t),g(e)}),[]);const E=n((()=>v.map(((e,t)=>{const a=e.date.toLocaleString("en-US",{weekday:"short"}),i=e.date.toLocaleString("en-US",{day:"numeric"}),n=p===t;return{variant:Xt.BASIC,data:{id:`${t}`,title:a,description:i,raised:!0},className:n?"bg-tertiary":"bg-bodyBackground"}}))),[v,p]),N=n((()=>null==b?void 0:b.find((e=>{var t;return e.day===(null===(t=null==v?void 0:v[p])||void 0===t?void 0:t.date.toLocaleString("en-US",{weekday:"long"}))}))),[b,v,p]);return t("div",{"data-testid":a||'"Schedule"',children:[t("div",{children:[e(Le,{tag:Ie.H5,transform:Re.UPPERCASE,children:null===(d=null==h?void 0:h.UI)||void 0===d?void 0:d.THIS_WEEK}),e("div",{children:e(_t,{data:E,onPressCallback:e=>{f(Number(e))},count:7,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500,onSnapToItem:()=>{},shouldScrollOnClick:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:7}},{breakpoint:600,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:3}}]}})})]}),t("div",{children:[e(Le,{tag:Ie.H5,transform:Re.UPPERCASE,children:null===(c=null==h?void 0:h.UI)||void 0===c?void 0:c.TODAYS_ITEMS}),!s&&t("div",{children:[e(Le,{tag:Ie.H2,children:null===(u=null==h?void 0:h.UI)||void 0===u?void 0:u.ACCESS_RESTRICTED}),e(Ae,{children:null===(m=null==h?void 0:h.UI)||void 0===m?void 0:m.UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE})]}),s&&(null==N?void 0:N.component)]})]})};Da.displayName="Schedule";const _a=({testID:a,title:i,image:n,scheduleData:l,isLoading:r=!1})=>t(fa,{"data-testid":a||"ScheduleScreen",image:n,children:[i&&e(ut,{text:i}),!l&&r&&e("div",{className:"flex flex-1 justify-center items-center min-h-[125px]",children:e(me,{})}),l&&e("div",{children:e(Da,Object.assign({},l))})]});_a.displayName="ScheduleScreen";const Ma=({testID:a,initialValues:i,handleSubmit:n,isDisabled:l=!0})=>{const r=et();return e("div",{"data-testid":a||'"SubscriptionForm"',className:"form-wrapper",children:t(mt,{onSubmit:n,isDisabled:l,disabledSubmitWithReturn:!0,initialValues:i,children:[e(ft,{name:"status",type:ht.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_STATUS_LABEL,disabled:l}),e(ft,{name:"plan",type:ht.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_PLAN_LABEL,disabled:l}),e(ft,{name:"price",type:ht.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_PRICE_LABEL,disabled:l}),e(ft,{name:"billingDate",type:ht.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_BILLING_DATE_LABEL,required:!0,disabled:l})]})})};Ma.displayName="SubscriptionForm";const Pa=({testID:a,title:i,image:n,user:l,handleSubscriptionSubmit:r,subscriptionCallback:o})=>{var s,d,c,u;const m=et();return t(fa,{"data-testid":a||"SubscriptionScreen",image:n,children:[i&&e(ut,{text:i}),!(null===(s=null==l?void 0:l.subscription)||void 0===s?void 0:s.status)&&e(yt,{padded:!0,children:t("div",{children:[e(Le,{tag:Ie.H4,children:m.UI.NO_ACTIVE_SUBSCRIPTION}),e(Ae,{children:null===(d=null==m?void 0:m.UI)||void 0===d?void 0:d.NO_SUBSCRIPTION_DETAILS})]})}),(null===(c=null==l?void 0:l.subscription)||void 0===c?void 0:c.status)&&e("div",{children:e(Ma,{initialValues:null==l?void 0:l.subscription,handleSubmit:r})}),o&&e("div",{children:e(he,{onClick:o,icon:"help",children:null===(u=null==m?void 0:m.UI)||void 0===u?void 0:u.QUESTION})})]})};Pa.displayName="SubscriptionScreen";const Ua=({testID:l,id:r,title:o,image:s,description:d,created:c=0,duration:u="PT0M",level:m,section:h,uuid:p,video:f,category:v,type:g,likeCallback:b,completedCallback:E,favouriteCallback:N,isLiked:y,isCompleted:S,isFavourite:C,relatedWorkouts:O,isLoading:I,hasActiveSubscription:T,htmlDetails:R})=>{var L,x;console.log("video",f);const w=et(),[k,D]=i.useState(!1);i.useState(2);const _=n((()=>ie(new Date(1e3*c),ya)),[c]),M=n((()=>function(e){const t=A(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(", ")}(u)),[u]);return console.log("video",f),t(fa,{"data-testid":l||"WorkoutScreen",image:s,children:[t("div",{children:[o&&e(ut,{text:o}),e("div",{children:t(ke,{children:[w.UI.CREATED,": ",_]})}),e("div",{children:t(ke,{children:[w.UI.DURATION,": ",M]})})]}),!T&&t("div",{children:[e(Le,{tag:Ie.H4,children:w.UI.NO_ACTIVE_SUBSCRIPTION}),e(Ae,{children:null===(L=null==w?void 0:w.UI)||void 0===L?void 0:L.NO_SUBSCRIPTION_DETAILS})]}),e("div",{children:e(he,{onClick:()=>{D(!0)},icon:"mdi:play",iconFirst:!0,disabled:!T,children:w.UI.START_WORKOUT})}),t("div",{className:"flex gap-2",children:[e("div",{children:e(he,{onClick:()=>{r&&b&&"function"==typeof b&&(b(r),le.info(y?w.UI.REMOVED_LIKE:w.UI.ADDED_LIKE))},icon:y?"mdi:heart":"mdi:heart-outline",disabled:!T,rounded:!0})}),e("div",{children:e(he,{onClick:()=>{r&&N&&"function"==typeof N&&(N(r),le.info(C?w.UI.REMOVED_FAVORITE:w.UI.ADDED_FAVORITE))},icon:C?"mdi:bookmark":"mdi:bookmark-outline",disabled:!T,rounded:!0})}),e("div",{children:e(he,{onClick:()=>{r&&E&&"function"==typeof E&&(E(r),le.info(S?w.UI.MARKED_INCOMPLETE:w.UI.MARKED_COMPLETE))},icon:S?"mdi:battery":"mdi:battery-outline",disabled:!T,rounded:!0})})]}),!R&&d&&e("div",{children:e(Ae,{children:d})}),R&&d&&e("div",{children:e($e,{data:d})}),t("div",{className:"flex gap-4 flex-wrap",children:[m&&t(ke,{children:[w.UI.LEVEL,": ",m]}),h&&t(ke,{children:[w.UI.SECTION,": ",h]}),v&&t(ke,{children:[w.UI.CATEGORY,": ",v]}),g&&t(ke,{children:[w.UI.TYPE,": ",g]})]}),O&&e(a,{children:e(yt,{isNarrow:!0,padded:!0,children:e("div",{children:e(Le,{children:null===(x=null==w?void 0:w.UI)||void 0===x?void 0:x.RELATED})})})}),k&&e("div",{className:"opacity-0",children:e(Ft,{fullScreenOnly:!0,options:{autoplay:!0},sources:[{src:f,type:"application/x-mpegURL"}],onExitFullScreenCallback:()=>{console.log("onExitFullScreenCallback exit full screen"),D(!1)}})})]})};Ua.displayName="WorkoutScreen";const Fa={colors:{white:"#FFFFFF",black:"#000000",primary:"#222222",secondary:"#666666",tertiary:"#EEEEEE",accent:"#1FB2A6",neutral:"#191D24",info:"#3ABFF8",success:"#36D399",warning:"#FBBD23",error:"#F87272",opacityDark10:"rgba(0, 0, 0, 0.1)",opacityDark20:"rgba(0, 0, 0, 0.2)",opacityDark30:"rgba(0, 0, 0, 0.3)",opacityDark40:"rgba(0, 0, 0, 0.4)",opacityDark50:"rgba(0, 0, 0, 0.5)",opacityDark60:"rgba(0, 0, 0, 0.6)",opacityDark70:"rgba(0, 0, 0, 0.7)",opacityDark80:"rgba(0, 0, 0, 0.8)",opacityDark90:"rgba(0, 0, 0, 0.9)",opacityLight10:"rgba(255, 255, 255, 0.1)",opacityLight20:"rgba(255, 255, 255, 0.2)",opacityLight30:"rgba(255, 255, 255, 0.3)",opacityLight40:"rgba(255, 255, 255, 0.4)",opacityLight50:"rgba(255, 255, 255, 0.5)",opacityLight60:"rgba(255, 255, 255, 0.6)",opacityLight70:"rgba(255, 255, 255, 0.7)",opacityLight80:"rgba(255, 255, 255, 0.8)",opacityLight90:"rgba(255, 255, 255, 0.9)",primary50:"#F2F2F2",primary100:"#E6E6E6",primary200:"#CCCCCC",primary300:"#B3B3B3",primary400:"#999999",primary500:"#808080",primary600:"#666666",primary700:"#4D4D4D",primary800:"#333333",primary900:"#1A1A1A",secondary50:"#FDFDFD",secondary100:"#FBFBFB",secondary200:"#F8F8F8",secondary300:"#F5F5F5",secondary400:"#F2F2F2",secondary500:"#EFEFEF",secondary600:"#ECECEC",secondary700:"#E9E9E9",secondary800:"#E6E6E6",secondary900:"#E3E3E3",tertiary50:"#F8F8F8",tertiary100:"#F1F1F1",tertiary200:"#EAEAEA",tertiary300:"#E3E3E3",tertiary400:"#DCDCDC",tertiary500:"#D5D5D5",tertiary600:"#CECECE",tertiary700:"#C7C7C7",tertiary800:"#C0C0C0",tertiary900:"#B9B9B9",accent50:"#E5F8F6",accent100:"#CCEFF0",accent200:"#B2E6E6",accent300:"#99DDDD",accent400:"#7FD4D4",accent500:"#66CBCB",accent600:"#4DB2B2",accent700:"#339999",accent800:"#1A8080",accent900:"#006666",neutral50:"#F8F8F8",neutral100:"#F1F1F1",neutral200:"#EAEAEA",neutral300:"#E3E3E3",neutral400:"#DCDCDC",neutral500:"#D5D5D5",neutral600:"#CECECE",neutral700:"#C7C7C7",neutral800:"#C0C0C0",neutral900:"#B9B9B9",info50:"#E6F9FD",info100:"#CFF3FB",info200:"#B8EDF8",info300:"#A1E7F6",info400:"#8AE1F3",info500:"#73DBF1",info600:"#5CC5DA",info700:"#469EB3",info800:"#2F788C",info900:"#195165",success50:"#E6FDEE",success100:"#CFFBDD",success200:"#B8F8CC",success300:"#A1F6BB",success400:"#8AEDAA",success500:"#73E499",success600:"#5CC482",success700:"#469E6C",success800:"#2F784F",success900:"#195133",warning50:"#FEF9E6",warning100:"#FDF3CD",warning200:"#FCECB4",warning300:"#FBDF8B",warning400:"#FAD262",warning500:"#F9C639",warning600:"#E0AD32",warning700:"#B78C27",warning800:"#8E6B1D",warning900:"#654A13",error50:"#FCE6E6",error100:"#F9CDCD",error200:"#F6B4B4",error300:"#F29999",error400:"#EF8080",error500:"#EC6666",error600:"#D95252",error700:"#B34040",error800:"#8E2E2E",error900:"#6B1B1B",grey50:"#F8F8F8",grey100:"#F1F1F1",grey200:"#EAEAEA",grey300:"#E3E3E3",grey400:"#DCDCDC",grey500:"#C0C0C0",grey600:"#A9A9A9",grey700:"#8C8C8C",grey800:"#666666",grey900:"#404040",purple50:"#ede9f4",purple100:"#c8b9de",purple200:"#ae98ce",purple300:"#8968b7",purple400:"#724ba9",purple500:"#4f1e94",purple600:"#481b87",purple700:"#381569",purple800:"#2b1151",purple900:"#210d3e"},screens:{sm:"480px",md:"768px",lg:"976px",xl:"1440px"},spacing:{px:"1px",0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",11:"2.75rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem",40:"10rem",48:"12rem",56:"14rem",64:"16rem",128:"32rem"},borderRadius:{none:"0",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"3.25rem"}],"6xl":["3.75rem",{lineHeight:"4rem"}],"7xl":["4.5rem",{lineHeight:"5rem"}],"8xl":["6rem",{lineHeight:"7rem"}],"9xl":["8rem",{lineHeight:"9rem"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},extend:{gridTemplateColumns:{headerMd:"200px auto 200px",headerSd:"125px auto 125px",headerXs:"auto 175px",searchLayout:"1fr",searchLayoutWithSidebar:"1fr 3fr"}}};function Ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ja={exports:{}},Ha={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ga={exports:{}},Wa=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))},za=Array.prototype.concat,Ya=Array.prototype.slice,Va=Ga.exports=function(e){for(var t=[],a=0,i=e.length;a<i;a++){var n=e[a];Wa(n)?t=za.call(t,Ya.call(n)):t.push(n)}return t};Va.wrap=function(e){return function(){return e(Va(arguments))}};var qa=Ga.exports,Ka=Ha,$a=qa,Xa=Object.hasOwnProperty,Qa=Object.create(null);for(var Za in Ka)Xa.call(Ka,Za)&&(Qa[Ka[Za]]=Za);var Ja=ja.exports={to:{},get:{}};function ei(e,t,a){return Math.min(Math.max(t,e),a)}function ti(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}Ja.get=function(e){var t,a;switch(e.substring(0,3).toLowerCase()){case"hsl":t=Ja.get.hsl(e),a="hsl";break;case"hwb":t=Ja.get.hwb(e),a="hwb";break;default:t=Ja.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},Ja.get.rgb=function(e){if(!e)return null;var t,a,i,n=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],a=0;a<3;a++){var l=2*a;n[a]=parseInt(t.slice(l,l+2),16)}i&&(n[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],a=0;a<3;a++)n[a]=parseInt(t[a]+t[a],16);i&&(n[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)n[a]=parseInt(t[a+1],0);t[4]&&(t[5]?n[3]=.01*parseFloat(t[4]):n[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:Xa.call(Ka,t[1])?((n=Ka[t[1]])[3]=1,n):null:null;for(a=0;a<3;a++)n[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(t[5]?n[3]=.01*parseFloat(t[4]):n[3]=parseFloat(t[4]))}for(a=0;a<3;a++)n[a]=ei(n[a],0,255);return n[3]=ei(n[3],0,1),n},Ja.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,ei(parseFloat(t[2]),0,100),ei(parseFloat(t[3]),0,100),ei(isNaN(a)?1:a,0,1)]}return null},Ja.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,ei(parseFloat(t[2]),0,100),ei(parseFloat(t[3]),0,100),ei(isNaN(a)?1:a,0,1)]}return null},Ja.to.hex=function(){var e=$a(arguments);return"#"+ti(e[0])+ti(e[1])+ti(e[2])+(e[3]<1?ti(Math.round(255*e[3])):"")},Ja.to.rgb=function(){var e=$a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},Ja.to.rgb.percent=function(){var e=$a(arguments),t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+a+"%, "+i+"%)":"rgba("+t+"%, "+a+"%, "+i+"%, "+e[3]+")"},Ja.to.hsl=function(){var e=$a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Ja.to.hwb=function(){var e=$a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Ja.to.keyword=function(e){return Qa[e.slice(0,3)]};var ai=ja.exports;const ii=Ha,ni={};for(const e of Object.keys(ii))ni[ii[e]]=e;const li={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var ri=li;for(const e of Object.keys(li)){if(!("channels"in li[e]))throw new Error("missing channels property: "+e);if(!("labels"in li[e]))throw new Error("missing channel labels property: "+e);if(li[e].labels.length!==li[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:a}=li[e];delete li[e].channels,delete li[e].labels,Object.defineProperty(li[e],"channels",{value:t}),Object.defineProperty(li[e],"labels",{value:a})}li.rgb.hsl=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,n=Math.min(t,a,i),l=Math.max(t,a,i),r=l-n;let o,s;l===n?o=0:t===l?o=(a-i)/r:a===l?o=2+(i-t)/r:i===l&&(o=4+(t-a)/r),o=Math.min(60*o,360),o<0&&(o+=360);const d=(n+l)/2;return s=l===n?0:d<=.5?r/(l+n):r/(2-l-n),[o,100*s,100*d]},li.rgb.hsv=function(e){let t,a,i,n,l;const r=e[0]/255,o=e[1]/255,s=e[2]/255,d=Math.max(r,o,s),c=d-Math.min(r,o,s),u=function(e){return(d-e)/6/c+.5};return 0===c?(n=0,l=0):(l=c/d,t=u(r),a=u(o),i=u(s),r===d?n=i-a:o===d?n=1/3+t-i:s===d&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*l,100*d]},li.rgb.hwb=function(e){const t=e[0],a=e[1];let i=e[2];const n=li.rgb.hsl(e)[0],l=1/255*Math.min(t,Math.min(a,i));return i=1-1/255*Math.max(t,Math.max(a,i)),[n,100*l,100*i]},li.rgb.cmyk=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,n=Math.min(1-t,1-a,1-i);return[100*((1-t-n)/(1-n)||0),100*((1-a-n)/(1-n)||0),100*((1-i-n)/(1-n)||0),100*n]},li.rgb.keyword=function(e){const t=ni[e];if(t)return t;let a,i=1/0;for(const t of Object.keys(ii)){const r=(l=ii[t],((n=e)[0]-l[0])**2+(n[1]-l[1])**2+(n[2]-l[2])**2);r<i&&(i=r,a=t)}var n,l;return a},li.keyword.rgb=function(e){return ii[e]},li.rgb.xyz=function(e){let t=e[0]/255,a=e[1]/255,i=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;return[100*(.4124*t+.3576*a+.1805*i),100*(.2126*t+.7152*a+.0722*i),100*(.0193*t+.1192*a+.9505*i)]},li.rgb.lab=function(e){const t=li.rgb.xyz(e);let a=t[0],i=t[1],n=t[2];a/=95.047,i/=100,n/=108.883,a=a>.008856?a**(1/3):7.787*a+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*i-16,500*(a-i),200*(i-n)]},li.hsl.rgb=function(e){const t=e[0]/360,a=e[1]/100,i=e[2]/100;let n,l,r;if(0===a)return r=255*i,[r,r,r];n=i<.5?i*(1+a):i+a-i*a;const o=2*i-n,s=[0,0,0];for(let e=0;e<3;e++)l=t+1/3*-(e-1),l<0&&l++,l>1&&l--,r=6*l<1?o+6*(n-o)*l:2*l<1?n:3*l<2?o+(n-o)*(2/3-l)*6:o,s[e]=255*r;return s},li.hsl.hsv=function(e){const t=e[0];let a=e[1]/100,i=e[2]/100,n=a;const l=Math.max(i,.01);i*=2,a*=i<=1?i:2-i,n*=l<=1?l:2-l;return[t,100*(0===i?2*n/(l+n):2*a/(i+a)),100*((i+a)/2)]},li.hsv.rgb=function(e){const t=e[0]/60,a=e[1]/100;let i=e[2]/100;const n=Math.floor(t)%6,l=t-Math.floor(t),r=255*i*(1-a),o=255*i*(1-a*l),s=255*i*(1-a*(1-l));switch(i*=255,n){case 0:return[i,s,r];case 1:return[o,i,r];case 2:return[r,i,s];case 3:return[r,o,i];case 4:return[s,r,i];case 5:return[i,r,o]}},li.hsv.hsl=function(e){const t=e[0],a=e[1]/100,i=e[2]/100,n=Math.max(i,.01);let l,r;r=(2-a)*i;const o=(2-a)*n;return l=a*n,l/=o<=1?o:2-o,l=l||0,r/=2,[t,100*l,100*r]},li.hwb.rgb=function(e){const t=e[0]/360;let a=e[1]/100,i=e[2]/100;const n=a+i;let l;n>1&&(a/=n,i/=n);const r=Math.floor(6*t),o=1-i;l=6*t-r,1&r&&(l=1-l);const s=a+l*(o-a);let d,c,u;switch(r){default:case 6:case 0:d=o,c=s,u=a;break;case 1:d=s,c=o,u=a;break;case 2:d=a,c=o,u=s;break;case 3:d=a,c=s,u=o;break;case 4:d=s,c=a,u=o;break;case 5:d=o,c=a,u=s}return[255*d,255*c,255*u]},li.cmyk.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n)),255*(1-Math.min(1,i*(1-n)+n))]},li.xyz.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100;let n,l,r;return n=3.2406*t+-1.5372*a+-.4986*i,l=-.9689*t+1.8758*a+.0415*i,r=.0557*t+-.204*a+1.057*i,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=Math.min(Math.max(0,n),1),l=Math.min(Math.max(0,l),1),r=Math.min(Math.max(0,r),1),[255*n,255*l,255*r]},li.xyz.lab=function(e){let t=e[0],a=e[1],i=e[2];t/=95.047,a/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*a-16,500*(t-a),200*(a-i)]},li.lab.xyz=function(e){let t,a,i;a=(e[0]+16)/116,t=e[1]/500+a,i=a-e[2]/200;const n=a**3,l=t**3,r=i**3;return a=n>.008856?n:(a-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,i=r>.008856?r:(i-16/116)/7.787,t*=95.047,a*=100,i*=108.883,[t,a,i]},li.lab.lch=function(e){const t=e[0],a=e[1],i=e[2];let n;n=360*Math.atan2(i,a)/2/Math.PI,n<0&&(n+=360);return[t,Math.sqrt(a*a+i*i),n]},li.lch.lab=function(e){const t=e[0],a=e[1],i=e[2]/360*2*Math.PI;return[t,a*Math.cos(i),a*Math.sin(i)]},li.rgb.ansi16=function(e,t=null){const[a,i,n]=e;let l=null===t?li.rgb.hsv(e)[2]:t;if(l=Math.round(l/50),0===l)return 30;let r=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(a/255));return 2===l&&(r+=60),r},li.hsv.ansi16=function(e){return li.rgb.ansi16(li.hsv.rgb(e),e[2])},li.rgb.ansi256=function(e){const t=e[0],a=e[1],i=e[2];if(t===a&&a===i)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(i/255*5)},li.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const a=.5*(1+~~(e>50));return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},li.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},li.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},li.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let a=t[0];3===t[0].length&&(a=a.split("").map((e=>e+e)).join(""));const i=parseInt(a,16);return[i>>16&255,i>>8&255,255&i]},li.rgb.hcg=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,n=Math.max(Math.max(t,a),i),l=Math.min(Math.min(t,a),i),r=n-l;let o,s;return o=r<1?l/(1-r):0,s=r<=0?0:n===t?(a-i)/r%6:n===a?2+(i-t)/r:4+(t-a)/r,s/=6,s%=1,[360*s,100*r,100*o]},li.hsl.hcg=function(e){const t=e[1]/100,a=e[2]/100,i=a<.5?2*t*a:2*t*(1-a);let n=0;return i<1&&(n=(a-.5*i)/(1-i)),[e[0],100*i,100*n]},li.hsv.hcg=function(e){const t=e[1]/100,a=e[2]/100,i=t*a;let n=0;return i<1&&(n=(a-i)/(1-i)),[e[0],100*i,100*n]},li.hcg.rgb=function(e){const t=e[0]/360,a=e[1]/100,i=e[2]/100;if(0===a)return[255*i,255*i,255*i];const n=[0,0,0],l=t%1*6,r=l%1,o=1-r;let s=0;switch(Math.floor(l)){case 0:n[0]=1,n[1]=r,n[2]=0;break;case 1:n[0]=o,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=r;break;case 3:n[0]=0,n[1]=o,n[2]=1;break;case 4:n[0]=r,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=o}return s=(1-a)*i,[255*(a*n[0]+s),255*(a*n[1]+s),255*(a*n[2]+s)]},li.hcg.hsv=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);let i=0;return a>0&&(i=t/a),[e[0],100*i,100*a]},li.hcg.hsl=function(e){const t=e[1]/100,a=e[2]/100*(1-t)+.5*t;let i=0;return a>0&&a<.5?i=t/(2*a):a>=.5&&a<1&&(i=t/(2*(1-a))),[e[0],100*i,100*a]},li.hcg.hwb=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],100*(a-t),100*(1-a)]},li.hwb.hcg=function(e){const t=e[1]/100,a=1-e[2]/100,i=a-t;let n=0;return i<1&&(n=(a-i)/(1-i)),[e[0],100*i,100*n]},li.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},li.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},li.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},li.gray.hsl=function(e){return[0,0,e[0]]},li.gray.hsv=li.gray.hsl,li.gray.hwb=function(e){return[0,100,e[0]]},li.gray.cmyk=function(e){return[0,0,0,e[0]]},li.gray.lab=function(e){return[e[0],0,0]},li.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},li.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const oi=ri;function si(e){const t=function(){const e={},t=Object.keys(oi);for(let a=t.length,i=0;i<a;i++)e[t[i]]={distance:-1,parent:null};return e}(),a=[e];for(t[e].distance=0;a.length;){const e=a.pop(),i=Object.keys(oi[e]);for(let n=i.length,l=0;l<n;l++){const n=i[l],r=t[n];-1===r.distance&&(r.distance=t[e].distance+1,r.parent=e,a.unshift(n))}}return t}function di(e,t){return function(a){return t(e(a))}}function ci(e,t){const a=[t[e].parent,e];let i=oi[t[e].parent][e],n=t[e].parent;for(;t[n].parent;)a.unshift(t[n].parent),i=di(oi[t[n].parent][n],i),n=t[n].parent;return i.conversion=a,i}const ui=ri,mi=function(e){const t=si(e),a={},i=Object.keys(t);for(let e=i.length,n=0;n<e;n++){const e=i[n];null!==t[e].parent&&(a[e]=ci(e,t))}return a},hi={};Object.keys(ui).forEach((e=>{hi[e]={},Object.defineProperty(hi[e],"channels",{value:ui[e].channels}),Object.defineProperty(hi[e],"labels",{value:ui[e].labels});const t=mi(e);Object.keys(t).forEach((a=>{const i=t[a];hi[e][a]=function(e){const t=function(...t){const a=t[0];if(null==a)return a;a.length>1&&(t=a);const i=e(t);if("object"==typeof i)for(let e=i.length,t=0;t<e;t++)i[t]=Math.round(i[t]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}(i),hi[e][a].raw=function(e){const t=function(...t){const a=t[0];return null==a?a:(a.length>1&&(t=a),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)}))}));const pi=ai,fi=hi,vi=["keyword","gray","hex"],gi={};for(const e of Object.keys(fi))gi[[...fi[e].labels].sort().join("")]=e;const bi={};function Ei(e,t){if(!(this instanceof Ei))return new Ei(e,t);if(t&&t in vi&&(t=null),t&&!(t in fi))throw new Error("Unknown model: "+t);let a,i;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Ei)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=pi.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,i=fi[this.model].channels,this.color=t.value.slice(0,i),this.valpha="number"==typeof t.value[i]?t.value[i]:1}else if(e.length>0){this.model=t||"rgb",i=fi[this.model].channels;const a=Array.prototype.slice.call(e,0,i);this.color=Ai(a,i),this.valpha="number"==typeof e[i]?e[i]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const i=t.sort().join("");if(!(i in gi))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=gi[i];const{labels:n}=fi[this.model],l=[];for(a=0;a<n.length;a++)l.push(e[n[a]]);this.color=Ai(l)}if(bi[this.model])for(i=fi[this.model].channels,a=0;a<i;a++){const e=bi[this.model][a];e&&(this.color[a]=e(this.color[a]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Ei.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in pi.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const a=1===t.valpha?t.color:[...t.color,this.valpha];return pi.to[t.model](a)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),a=1===t.valpha?t.color:[...t.color,this.valpha];return pi.to.rgb.percent(a)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=fi[this.model],{labels:a}=fi[this.model];for(let i=0;i<t;i++)e[a[i]]=this.color[i];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new Ei([...this.color.map(Ni(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new Ei([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:yi("rgb",0,Si(255)),green:yi("rgb",1,Si(255)),blue:yi("rgb",2,Si(255)),hue:yi(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:yi("hsl",1,Si(100)),lightness:yi("hsl",2,Si(100)),saturationv:yi("hsv",1,Si(100)),value:yi("hsv",2,Si(100)),chroma:yi("hcg",1,Si(100)),gray:yi("hcg",2,Si(100)),white:yi("hwb",1,Si(100)),wblack:yi("hwb",2,Si(100)),cyan:yi("cmyk",0,Si(100)),magenta:yi("cmyk",1,Si(100)),yellow:yi("cmyk",2,Si(100)),black:yi("cmyk",3,Si(100)),x:yi("xyz",0,Si(95.047)),y:yi("xyz",1,Si(100)),z:yi("xyz",2,Si(108.833)),l:yi("lab",0,Si(100)),a:yi("lab",1),b:yi("lab",2),keyword(e){return void 0!==e?new Ei(e):fi[this.model].keyword(this.color)},hex(e){return void 0!==e?new Ei(e):pi.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new Ei(e);const t=this.rgb().round().color;let a=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===a.length&&(a="0"+a),pi.to.hex(t)+a},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[a,i]of e.entries()){const e=i/255;t[a]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),a=e.luminosity();return t>a?(t+.05)/(a+.05):(a+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return Ei.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let a=t.color[0];return a=(a+e)%360,a=a<0?360+a:a,t.color[0]=a,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const a=e.rgb(),i=this.rgb(),n=void 0===t?.5:t,l=2*n-1,r=a.alpha()-i.alpha(),o=((l*r==-1?l:(l+r)/(1+l*r))+1)/2,s=1-o;return Ei.rgb(o*a.red()+s*i.red(),o*a.green()+s*i.green(),o*a.blue()+s*i.blue(),a.alpha()*n+i.alpha()*(1-n))}};for(const e of Object.keys(fi)){if(vi.includes(e))continue;const{channels:t}=fi[e];Ei.prototype[e]=function(...t){return this.model===e?new Ei(this):t.length>0?new Ei(t,e):new Ei([...(a=fi[this.model][e].raw(this.color),Array.isArray(a)?a:[a]),this.valpha],e);var a},Ei[e]=function(...a){let i=a[0];return"number"==typeof i&&(i=Ai(a,t)),new Ei(i,e)}}function Ni(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function yi(e,t,a){e=Array.isArray(e)?e:[e];for(const i of e)(bi[i]||(bi[i]=[]))[t]=a;return e=e[0],function(i){let n;return void 0!==i?(a&&(i=a(i)),n=this[e](),n.color[t]=i,n):(n=this[e]().color[t],a&&(n=a(n)),n)}}function Si(e){return function(t){return Math.max(0,Math.min(e,t))}}function Ai(e,t){for(let a=0;a<t;a++)"number"!=typeof e[a]&&(e[a]=0);return e}var Ci=Ba(Ei);const Oi=(e,t)=>Ci(e).darken(t).rgb().string(),Ii=Object.assign({inherit:"inherit",transparent:"transparent",black:Fa.colors.black,white:Fa.colors.white,bodyBackground:Fa.colors.white,darkBodyBackground:Fa.colors.primary,bodyText:Fa.colors.primary,bodyTextInverted:Fa.colors.primary50,darkBodyText:Fa.colors.primary50,display:Fa.colors.black,darkDisplay:Fa.colors.white},Object.assign({},...Object.keys(Fa.colors).map((e=>{const t=Fa.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,Ci(a).lighten(i).rgb().string()),darker:Oi(t,.1)}};var a,i})))),Ti=Object.assign(Object.assign({},Fa),{colors:Object.assign(Object.assign({},Fa.colors),{primary:"#001e5a",secondary:"#fcb700",tertiary:"#a3b0ca",quaternary:"#0f71b1",primary50:"#e6e9ef",primary100:"#b0b9cc",primary200:"#8a98b3",primary300:"#546890",primary400:"#334b7b",primary500:"#001e5a",primary600:"#001b52",primary700:"#001540",primary800:"#001132",primary900:"#000d26",secondary50:"#fff8e6",secondary100:"#fee9b0",secondary200:"#fede8a",secondary300:"#fdcf54",secondary400:"#fdc533",secondary500:"#fcb700",secondary600:"#e5a700",secondary700:"#b38200",secondary800:"#8b6500",secondary900:"#6a4d00",tertiary50:"#f6f7fa",tertiary100:"#e2e7ef",tertiary200:"#d5dbe7",tertiary300:"#c1cadb",tertiary400:"#b5c0d5",tertiary500:"#a3b0ca",tertiary600:"#94a0b8",tertiary700:"#747d8f",tertiary800:"#5a616f",tertiary900:"#444a55",quaternary50:"#e7f1f7",quaternary100:"#b5d3e7",quaternary200:"#91bedb",quaternary300:"#5ea0cb",quaternary400:"#3f8dc1",quaternary500:"#0f71b1",quaternary600:"#0e67a1",quaternary700:"#0b507e",quaternary800:"#083e61",quaternary900:"#062f4a"}),borderRadius:Object.assign({},Fa.borderRadius),fontWeight:Object.assign(Object.assign({},Fa.fontWeight),{light:"300",normal:"400",bold:"700"})}),Ri=(e,t)=>Ci(e).darken(t).rgb().string(),Li=Object.assign(Object.assign(Object.assign({},Ii),{bodyBackground:Ti.colors.primary700,darkBodyBackground:Ti.colors.primary800,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(Ti.colors).map((e=>{const t=Ti.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,Ci(a).lighten(i).rgb().string()),darker:Ri(t,.1)}};var a,i})))),xi=Object.assign(Object.assign({},{sans:["sans-serif"],serif:["serif"],mono:["monospace"],display:["monospace","sans-serif"],body:["var(--font-body)"],heading:["var(--font-heading)"]}),{body:["ProximaNova-Regular","sans-serif"],heading:["ProximaNova-Bold","sans-serif"]}),wi=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),ki={colors:Object.assign({},Li),fontFamily:Object.assign({},xi),fontSize:Object.assign({},null==Ti?void 0:Ti.fontSize),fontWeight:Object.assign({},null==Ti?void 0:Ti.fontWeight),buttons:Object.assign({},wi),screens:Object.assign({},null==Ti?void 0:Ti.screens),borderRadius:Object.assign({},null==Ti?void 0:Ti.borderRadius),spacing:Object.assign({},null==Ti?void 0:Ti.spacing),extend:Object.assign({},null==Ti?void 0:Ti.extend)};export{va as AccountScreen,re as AnimationCounter,At as AnimationSet1,Je as AppContext,Je as AppProvider,ga as AuthScreen,wt as Authenticator,ze as Avatar,ue as BTN_SIZES,de as BTN_TYPES,ce as BTN_VARIANTS,se as Blockquote,he as Button,Ye as ButtonGroup,be as COPY_ALIGN,Ne as COPY_CONTEXTUAL,ye as COPY_SIZE,Se as COPY_TAG,Ee as COPY_TRANSFORM,Wt as CPL_SPACING,Yt as CRL_SIZE,ct as Card,Gt as CardGrid,ba as CardGridScreen,Xt as CardVariant,_t as Carousel,Ea as CatalogueScreen,Na as ChallengeLibraryScreen,Aa as ChallengeScreen,ve as Checkbox,Ce as Chip,yt as Container,zt as ContentPageLayout,Vt as ContentRowsLayout,Ca as ContentScreen,Ae as Copy,Oa as DashboardScreen,ut as DisplayHeading,Ra as FAQScreen,ht as FIELD_TYPES,Oe as FileUpload,qt as Footer,xt as ForgotPasswordForm,mt as Form,ft as FormField,pt as FormSelect,Te as HEADING_ALIGN,Ie as HEADING_TAGS,Re as HEADING_TRANSFORM,Kt as Header,Le as Heading,St as Hero,La as HomeScreen,xe as Hr,$e as HtmlContent,oe as Icon,we as Image,ke as Label,ge as Link,Me as List,Ue as ListItem,_e as ListTag,me as Loader,Rt as LoginForm,Pe as Logo,Et as Menu,xa as MenuScreen,ma as MultiCheckboxFacet,Fe as Notice,$t as OTPInput,Pt as PanelCards,Ut as PanelFeature,Bt as PanelHero,jt as PanelProduct,Ht as PanelVideo,pa as ProfileForm,wa as ProfileScreen,Be as Radio,Lt as RegisterForm,ha as ResetPasswordForm,Qt as ResultAsTypes,We as STRINGS_EN,_a as ScheduleScreen,da as Search,vt as Share,ua as SingleLinksFacet,ca as SingleSelectFacet,Pa as SubscriptionScreen,je as Switch,gt as Tabs,Ge as TextInput,at as ThemeContext,it as ThemeProvider,De as Variants,Ft as Video,bt as VisitUs,Ua as WorkoutScreen,tt as defaultTheme,ki as theme,et as useLanguage,nt as useTheme};
|
|
16
|
+
function ve(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(a[i[n]]=e[i[n]])}return a}function fe(e,t,a,i){return new(a||(a=Promise))((function(t,n){function l(e){try{o(i.next(e))}catch(e){n(e)}}function r(e){try{o(i.throw(e))}catch(e){n(e)}}function o(e){var i;e.done?t(e.value):(i=e.value,i instanceof a?i:new a((function(e){e(i)}))).then(l,r)}o((i=i.apply(e,[])).next())}))}pe.displayName="Button";const ge=i.forwardRef((function(a,i){var{id:n,label:l,required:r,className:o,disabled:s}=a,d=ve(a,["id","label","required","className","disabled"]);return t("div",{"data-testid":"Checkbox",className:u("flex items-center",o),children:[t("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e("input",Object.assign({id:n,ref:i,disabled:s,type:"checkbox",className:"form-item checkbox m-0 appearance-none peer h-full w-full shrink-0 focus:ring-2",required:r},d)),e("span",{className:"absolute transition-opacity opacity-0 pointer-events-none peer-checked:opacity-100 w-full h-full flex items-center justify-center top-0 left-0",children:e(se,{name:"mdi:check-bold",size:12})})]}),l&&e("label",{className:"label pl-2 leading-none text-sm text-bodyText dark:text-darkBodyText",htmlFor:n,children:l})]})}));ge.displayName="Checkbox";const be=({href:a,children:n,onClick:l=(()=>{}),history:r,target:o,id:s,testID:d,className:c,prefetch:m,hideExternalIcon:h=!1})=>{const p=u("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",c);if(!h&&a&&a.startsWith("http"))return t("span",{children:[e("a",{"data-testid":d||s||"Link",className:u(p),href:a,target:"_blank",rel:"noopener noreferrer",children:n}),e(se,{name:"mdi:external-link",className:"inline-block w-4 h-4 ml-1 mb-0"})]});try{const e=require("next/link").default;if(!e)throw new Error("Next.js Image not found");return i.createElement(e,{href:a||"#",onClick:l,"data-testid":d||s||"Link",className:p,target:o||"_self",prefetch:m||!1},n)}catch(t){return e("a",{"data-testid":d||s||"Link",className:p,href:a,onClick:e=>{l?l(e):!0!==e.defaultPrevented&&r&&a&&(e.preventDefault(),r.push(a))},target:o,children:n})}};var Ee,Ne,ye,Se,Ae;be.displayName="Link",function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(Ee||(Ee={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(Ne||(Ne={})),function(e){e.INVERTED="inverted",e.MUTED="muted"}(ye||(ye={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.INTRO="intro"}(Se||(Se={})),function(e){e.P="p",e.SPAN="span",e.DIV="div",e.SMALL="small"}(Ae||(Ae={}));const Ce=({children:t,as:a=Ae.P,size:i,bold:n,align:l,transform:r,underlined:o,id:s,className:d,testID:c})=>{const m=u({[`text-${l}`]:l},{"font-bold":n},{"text-base mb-3 mt-0":"p"===a},{"text-sm":"small"===a},{"text-sm":"small"===i},{"text-base":"medium"===i},{"text-lg":"large"===i},{"text-2xl":"intro"===i},{underline:o},r,d);return e(a,{"data-testid":c||s||"Copy",className:E(m),children:t})};Ce.displayName="Copy";const Oe=({testID:a,text:i,outline:l,rounded:r,variant:o,size:s="medium",icon:d,iconFirst:c,onClick:m})=>{const h=n((()=>{switch(s){case"small":return{iconSize:16,copySize:Se.SMALL};case"medium":default:return{iconSize:20,copySize:Se.MEDIUM};case"large":return{iconSize:28,copySize:Se.LARGE}}}),[s]),p=E(u("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"===o},{"bg-secondary text-white":"secondary"===o},{"bg-tertiary text-white":"tertiary"===o},{"bg-info text-white":"info"===o},{"bg-success text-white":"success"===o},{"bg-warning text-white":"warning"===o},{"bg-error text-white":"error"===o},{"py-1 px-3":"small"===s},{"py-2 px-4":"medium"===s},{"py-3 px-6":"large"===s}));return m&&"function"==typeof m?t(be,{"data-testid":a||"Chip",className:p,onClick:m,children:[e(Ce,{className:"mb-0",as:Ae.SPAN,size:h.copySize,children:i}),d&&e("div",{className:"flex items-center justify-center",children:e(se,{name:d,size:h.iconSize})})]}):t("div",{"data-testid":a||"Chip",className:p,children:[e(Ce,{className:"mb-0",as:Ae.SPAN,size:h.copySize,children:i}),d&&e("div",{className:"flex items-center justify-center",children:e(se,{name:d,size:h.iconSize})})]})};Oe.displayName="Chip";const Ie=i.forwardRef((function(t,a){var{id:i,name:n,required:l,disabled:r,className:o,onChangeCallback:s,onChange:d}=t,c=ve(t,["id","name","required","disabled","className","onChangeCallback","onChange"]);return e("div",{"data-testid":"FileUpload",className:o,children:e("input",Object.assign({ref:a,className:u("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":n,type:"file",disabled:r,required:l,name:n,id:i,onChange:e=>{s&&"function"==typeof s&&s(e),d&&"function"==typeof d&&d({target:{value:e.target.value,name:n}})}},c))})}));var Te,Re,Le;Ie.displayName="FileUpload",function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5"}(Te||(Te={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(Re||(Re={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize",e.NORMAL_CASE="normal-case"}(Le||(Le={}));const xe=({children:t,tag:a=Te.H2,transform:i,align:n,id:l,testID:r,flush:o,className:s,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"}})(),h=a,p=u(`m-0 p-0 font-heading ${m}`,{"font-bold":c},{[`text-${n}`]:n},{"mb-2":!o},{"m-0":o},{"whitespace-nowrap text-ellipsis overflow-hidden":d},i,s);return e(h,{"data-testid":r||l||"Heading",className:p,children:t})};xe.displayName="Heading";const we=({size:t="small"})=>e("hr",{className:u("border-0 border-b border-darkBodyText dark:border-darkBodyText",{"mt-4 mb-4":"small"===t,"mt-8 mb-8":"medium"===t,"mt-16 mb-16 ":"large"===t})});we.displayName="Hr";const ke=a=>{var{src:i,alt:n,title:r,caption:o,figure:s=!1,onLoad:d,id:c,className:m,sizes:h="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:p}=a,v=ve(a,["src","alt","title","caption","figure","onLoad","id","className","sizes","testID"]);try{const e=require("next/image").default;if(!e)throw new Error("Next.js Image not found");const t=!v.width,a=t?{sizes:h}:{};return l(e,Object.assign(Object.assign({src:i,alt:n,title:r,fill:t,onLoad:d,className:m},a),v))}catch(a){const l=u("m-0"),h=E(u("w-full h-full",m));return s||o?t("figure",{"data-testid":p||c||"Image",className:l,children:[e("img",{onLoad:d,src:i,alt:n,title:r,className:h}),o&&e("figcaption",{children:o})]}):e("img",{"data-testid":p||c||"Image",onLoad:d,src:i,alt:n,title:r,className:h})}};ke.displayName="Image";const De=({children:t,id:a,transform:i,className:n})=>e("label",{"data-testid":"Label",className:E(u("label mb-2 text-bodyText dark:text-darkBodyText",i,n)),htmlFor:a,children:t});var _e,Me;De.displayName="Label",function(e){e.UNSTYLED="unstyled",e.INLINE="inline",e.SMALL="small",e.LARGE="large"}(_e||(_e={})),function(e){e.OL="ol",e.UL="ul",e.DL="dl",e.DIV="div",e.DT="dt",e.DD="dd",e.LI="li"}(Me||(Me={}));const Pe=({variants:t,children:a,as:i=Me.UL,id:n,testID:l,className:r})=>{const o=t?t.map((e=>`list--${e}`)):null;return e(i,{"data-testid":l||n||"List",className:u(o,r),children:a})};Pe.displayName="List";const Ue=({testID:t,logo:a,className:i,aspectRatioClass:n="aspect-[1/1]"})=>e("div",{"data-testid":t||"Logo",className:u("relative w-full",n,i),children:e(ke,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});Ue.displayName="Logo";const Fe=({onClick:a,title:i,icon:n,children:l,as:r="li",id:o,testID:s,className:d})=>t(r,{"data-testid":s||o||"ListItem",className:u({"list-item":"div"!==r},d),children:[a&&t(pe,{variant:ue.LINK,onClick:a,children:[t("div",{className:"",children:[n&&e("div",{children:e(se,{name:n,size:24})}),i&&e("div",{children:e(xe,{flush:!0,tag:Te.H4,singleLine:!0,children:i})}),l&&e("div",{children:l})]}),e("div",{children:e(se,{name:"mdi:chevron-right",size:24})})]}),!a&&e("div",{className:"",children:l&&e("div",{children:l})})]});Fe.displayName="ListItem";const Be=({id:a,testID:i,title:n,text:l,icon:r,type:o,onCloseCallback:s,onClickCallback:d,actionText:c})=>{const m=u("p-4 rounded relative",{"bg-info text-white":"info"===o,"bg-success text-white":"success"===o,"bg-warning text-black":"warning"===o,"bg-error text-white":"error"===o});return e("div",{"data-testid":i||a||"Notice",className:m,children:t("div",{className:"flex gap-2",children:[r&&e("div",{className:"mr-2",children:e(se,{name:r})}),t("div",{children:[n&&e(xe,{tag:Te.H3,children:n}),e(Ce,{className:"mb-0",children:l})]}),d&&c&&e("div",{className:"ml-auto flex items-end",children:e(pe,{variant:ue.PRIMARY,onClick:d,"aria-label":"Action",size:me.SMALL,children:c})}),s&&e("div",{className:"absolute top-2 right-4",children:e(pe,{variant:ue.LINK,icon:"mdi:close",onClick:s,"aria-label":"Close"})})]})})};Be.displayName="Notice";const je=i.forwardRef((function(a,i){var{name:n,required:l,className:r,options:o}=a,s=ve(a,["name","required","className","options"]);return e("div",{"data-testid":"Radio",className:u("flex items-center",r),children:e("div",{className:u("flex flex-col gap-2",r),children:null==o?void 0:o.map((a=>{var r;const o=(null===(r=null==a?void 0:a.value)||void 0===r?void 0:r.toString())||void 0;return t("div",{className:"flex items-center relative",children:[t("div",{className:"relative flex items-center",children:[e("input",Object.assign({ref:i,name:n,type:"radio",required:l,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4"},s,{id:o,value:o})),e("div",{className:"form-icon opacity-0 peer-checked:opacity-100 absolute w-4 h-4 flex items-center justify-center top-0 left-0 pointer-events-none",children:e(se,{name:"mdi:circle",size:12})})]}),e("label",{className:"label pl-2 leading-none",htmlFor:o,children:a.label})]},o)}))})})}));je.displayName="Radio";const He=i.forwardRef((function(a,i){var{id:n,name:l,required:r,disabled:o,className:s}=a,d=ve(a,["id","name","required","disabled","className"]);return t("label",{"data-testid":"Switch",className:u("inline-flex items-center cursor-pointer",s),children:[e("input",Object.assign({ref:i,id:n,name:l,type:"checkbox",value:"",className:"sr-only peer",disabled:o,required:r},d)),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 We;He.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"}(We||(We={}));const Ge=i.forwardRef((function(a,n){var{type:l=We.TEXT,required:r=!1,className:o,onChange:s,placeholder:d,icon:c,disabled:m=!1,name:h,autoComplete:p}=a,v=ve(a,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);i.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const f="date"===l?"dd/mm/yyyy".toUpperCase():d;return l===We.TEXTAREA?e("div",{"data-testid":"TextInput",className:"relative",children:e("textarea",Object.assign({ref:n,id:h,autoComplete:h,required:r,"aria-required":r,disabled:m,placeholder:f,onChange:s,rows:4,className:u("form-item text-input resize-none",o)},v))}):t("div",{"data-testid":"TextInput",className:"relative",children:[c&&e("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e(se,{name:c})}),e("input",Object.assign({ref:n,id:h,type:l,autoComplete:p,required:r,"aria-required":r,disabled:m,placeholder:f,onChange:s,className:u("form-item text-input",{"pl-12":c},o)},v))]})}));Ge.displayName="TextInput";const ze={GLOBAL:{SCREENS:{ACCOUNT:{TITLE:"Account"},CATALOGUE_LIST:{TITLE:"Catalogue"},CHALLENGE:{TITLE:"Challenge",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",CLICK_TO_ENTER:"Click the buy button below to enter the challenge.",PAYMENT_NOTE:"Please note we automatically take payment from the registered payment option saved on your profile."},CHALLENGES_LIST:{TITLE:"Challenges"},DASHBOARD:{TITLE:"Dashboard"},LIVE_SCHEDULE:{TITLE:"Live"},LOGIN:{TITLE:"Login"},REGISTER:{TITLE:"Register"},PROFILE:{TITLE:"Profile"},SUBSCRIPTION:{TITLE:"Subscription"},WORKOUT:{TITLE:"Workout"},FORGOT_PASSWORD:{TITLE:"Forgot Password"},RESET_PASSWORD:{TITLE:"Reset Password"},HOME:{TITLE:"Home"},CATALOGUE:{TITLE:"Catalogue"},CHALLENGES:{TITLE:"Challenges"},LIVE:{TITLE:"Live"},SCHEDULE:{TITLE:"Schedule"},SETTINGS:{TITLE:"Settings"},HELP:{TITLE:"Help"},LEGAL_INFO:{TITLE:"Legal & Information"},CONTENT:{TITLE:"Content"},FAVOURITES:{TITLE:"Favourites"}}},FORMS:{LOGIN_FORM:{TITLE:"Login",SUBMIT:"Login",FORGOT_PASSWORD:"Forgot password?",REGISTER:"Register",EMAIL:"Email",PASSWORD:"Password"},REGISTER_FORM:{TITLE:"Register",SUBMIT:"Register",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},FORGOT_PASSWORD_FORM:{TITLE:"Forgot Password",SUBMIT:"Send Reset Email",EMAIL:"Email"},RESET_PASSWORD_FORM:{TITLE:"Reset Password",SUBMIT:"Reset Password",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm Password"},PROFILE_FORM:{TITLE:"Profile",SUBMIT:"Save",FIRST_NAME:"First Name",LAST_NAME:"Last Name",AVATAR:"Avatar",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},ACCOUNT:{SUBMIT_LABEL:"Update",EMAIL_LABEL:"Email",PASSWORD_LABEL:"Password",FIRST_NAME_LABEL:"First name",LAST_NAME_LABEL:"Last name",DOB_LABEL:"Date of birth",TERMS_AND_CONDITIONS_LABEL:"Terms & Conditions",TERMS_AND_CONDITIONS_DESCRIPTION:"Read our terms & conditions from the link in the footer. ",CONTACT_PREFERENCES_LABEL:"Yes/No",CONTACT_PREFERENCES_DESCRIPTION:"Happy for us to email you about the latest features, information and offers?",SKIP_LABEL:"Skip step",SUCCESS_MESSAGE:"Account updated",SUBSCRIPTION_STATUS_LABEL:"Subscription status",SUBSCRIPTION_PLAN_LABEL:"Plan",SUBSCRIPTION_PRICE_LABEL:"Price (£)",SUBSCRIPTION_BILLING_DATE_LABEL:"Next Billing Date",SUBSCRIPTION_PAYMENT_TYPE_LABEL:"Card Type",SUBSCRIPTION_CARD_NUMBER_LABEL:"Card Number",SUBSCRIPTION_CARD_EXPIRY_LABEL:"Card Expiry Date",SUBSCRIPTION_LAST_UPDATED_LABEL:"Last Updated"}},VALIDATION:{UNKNOWN_SUBMISSION_ERROR:"Sorry, something bad happened! Please try again later.",REQUIRED_FIELD:"Required",TOO_SHORT:"Must be at least {count}",TOO_LONG:"Sorry, that's too long",INVALID_EMAIL:"Oops that email address doesn't look quite right",LOGIN_DENIED:"Your username and password do not match our records",LOGIN_ERROR:"Sorry something went wrong, please try again later",ACCOUNT_FIRST_NAME:"We need to know your name for ongoing communication",ACCOUNT_LAST_NAME:"We need to know your full name for your orders and if you need to contact support",CHARACTERS_ONLY:"You can only use letters",PASSWORD_DESCRIPTION:"Password must be between {count} and 30 characters and contain at least 1 uppercase, 1 lowercase, 1 number and a symbol (eg. @$%).",PASSWORD_CASE_MESSAGE:"Password must have one capital letter",PASSWORD_LOWERCASE_MESSAGE:"Password must have one lowercase letter",PASSWORD_LENGTH_MESSAGE:"Password must be at least 8 characters",PASSWORD_NUMERIC_MESSAGE:"Password must have at least one number",PASSWORD_SPECIAL_MESSAGE:"Password must have at least one special character (eg. @$%)",AUTH_API_ERROR:"An account with the given email already exists.: Conflict",AUTH_ACCOUNT_EXISTS_MESSAGE:"An account with the given email already exists. Please sign in"},UI:{SHOW:"Show",NO_IMAGE:"No image",UPLOAD:"Upload",SAVE:"Save",CANCEL:"Cancel",DELETE:"Delete",CONTINUE_WITH_SOCIAL:"Continue with Social Account",SINGLE_SIGNON:"Single Sign-On",LOGIN_WITH_GOOGLE:"Login with Google",LOGIN_WITH_APPLE:"Login with Apple",SIGNUP_WITH_GOOGLE:"Signup with Google",SIGNUP_WITH_APPLE:"Signup with Apple",BACK_TO_LOGIN:"Back to Login",FORGOT_PASSWORD:"Forgot Password?",SUBMIT:"Submit",LOGIN:"Login",LOGOUT:"Logout",REGISTER:"Register",SOCIAL:{GOOGLE:"Google",FACEBOOK:"Facebook",TWITTER:"Twitter",EMAIL:"Email"},READ_MORE:"Read more",READ_LESS:"Show less",CLOSE:"Close",BACK:"Back",SHARE:"Share",DOWNLOAD:"Download",FORMAT_HOUR:"{hour}hr",FORMAT_HOURS:"{hours}hrs",FORMAT_MINUTE:"{minute}min",FORMAT_MINUTES:"{minutes}mins",LOAD_MORE_LABEL:"Load more",NO_MORE_RESULTS:"That's all folks.",UNKNOWN_ERROR_TITLE:"Unknown error",UNKNOWN_ERROR_MESSAGE:"Sorry, something bad happened! Please try again.",CONTENT_SORT_TITLE:"Sort by",CONTENT_FILTERS_TITLE:"Filters",CONTENT_FILTERS_LABEL:"Filter",CLOSE_FILTERS_LABEL:"Done",CLEAR_ALL_FILTERS_LABEL:"Clear All",CLEAR_FILTERS_LABEL:"Clear",MORE_ITEMS_LABEL:"Next items",PREVIOUS_ITEMS_LABEL:"Previous items",CHOOSE_BTN_LABEL:"Choose",ADD_BTN_LABEL:"Add",SEND_BTN_LABEL:"Send",CANCEL_BTN_LABEL:"Cancel",DONE_BTN_LABEL:"Done",EDIT_BTN_LABEL:"Edit",CHANGE_BTN_LABEL:"Change",REMOVE_BTN_LABEL:"Remove",MESSAGE_PROMPT_BTN_LABEL:"Add one",SELECT_FILE_BTN_LABEL:"Select file",TOO_MANY_REQUESTS_MESSAGE:"Too many requests. Please try again later.",COPYRIGHT:"Copyright",ALL_RIGHTS_RESERVED:"All rights reserved",APP_CAMERA_PERMISSION:"Camera permission",APP_CAMERA_PERMISSION_DENIED:"Camera permission denied",APP_NEED_ACCESS_CAMERA:"This app needs access to your camera",ASK_ME_LATER:"Ask me later",PRIVACY_POLICY:"Privacy Policy",CREATE_ACCOUNT:"Create account",COMPLETE:"Complete",EDIT:"Edit",PREV:"Prev",NEXT:"Next",GET_STARTED:"Get started",START_SEARCH:"Start search",READ_MORE_LABEL:"Read more",READ_LESS_LABEL:"Show less",CLOSE_LABEL:"Close",CLOSE_HINT:"Close this entry",BACK_LABEL:"Back",SHARE_LABEL:"Share",VIEW_MORE_LABEL:"View more",VIEW_LESS_LABEL:"View less",GOT_IT:"Got it",MORE:"More",MORE_DETAILS:"More details",MORE_INFO:"More info",LEARN_MORE:"Learn more",LOW:"Low",MEDIUM:"Medium",HIGH:"High",VERY_HIGH:"Very high",VERY_LOW:"Very low",GOOD:"Good",BAD:"Bad",STRONG:"Strong",SAVE_CONTINUE:"Save and Continue",SAVE_FINISH:"Save and Finish",FINISH:"Finish",SKIP:"Skip",ADD:"Add",ADDED:"Added",ADD_ANOTHER:"Add another",CREATE_PROFILE:"Create profile",CONTINUE_NO_ACCOUNT:"Continue without account",REQUIRED_MISSING:"Required field missing",RESET:"Reset",APPLY_FILTER:"Apply filter",START:"Start",END:"End",HELP:"Help",WHAT_IS_THIS:"What is this?",CARD_VIEW:"Card view",LIST_VIEW:"List view",FILTER:"Filter",NO_RESULTS:"No results",CONTINUE:"Continue",CONTINUE_BROWSING:"Continue browsing",VIEW:"View",INFORMATION:"Information",DELETE_HINT:"Delete this entry",VISIT_WEBSITE:"Visit website",TAKE_AGAIN:"Take again",ADD_MORE:"Add more",REQUEST_SENT:"Request sent",CUSTOMISE:"Customize",SET_LOCATION:"Set location",COUNTY_NOT_FOUND:"County not found",NO_RESOURCES_FOUND:"No resources found",PATHWAY:"Pathway",CLICK_TO_NAVIGATE:"Click to navigate",INPUT_FIELD:"Input field",GO_BACK:"Go back",NAVIGATES_PREV:"Navigates to the previous screen",REMOVE:"Remove",NO_INTERNET_CONNECTION:"No internet connection",CHECK_CONNECTION:"Please check your internet connection and try again.",EXPLORE:"Explore",NO_ACCOUNT:"No account?",START_WORKOUT:"Start workout",START_MEDIA:"Start media",LAUNCH:"Launch",PUBLISHED:"Published",CREATED:"Created",UPDATED:"Updated",DURATION:"Duration",LEVEL:"Level",SECTION:"Section",DOWNLOADING:"Downloading",DOWNLOAD_COMPLETE:"Download complete",DOWNLOAD_FAILED:"Download failed",DOWNLOAD_CANCELLED:"Download cancelled",DOWNLOADING_MEDIA:"Downloading media",DOWNLOADING_MEDIA_FAILED:"Downloading media failed",DOWNLOADING_MEDIA_CANCELLED:"Downloading media cancelled",DOWNLOADING_MEDIA_COMPLETE:"Downloading media complete",DOWNLOADING_MEDIA_CANCEL:"Cancel download",DOWNLOADING_MEDIA_RETRY:"Retry download",DOWNLOADING_MEDIA_PAUSE:"Pause download",DOWNLOADING_MEDIA_RESUME:"Resume download",DOWNLOADING_MEDIA_CONTINUE:"Continue download",DOWNLOADING_MEDIA_START:"Start download",DOWNLOADING_MEDIA_CONFIRM:"Confirm download",DOWNLOAD_REMOVED:"Download removed",DOWNLOAD_REMOVE_ERROR:"Error removing download",CATEGORY:"Category",TYPE:"Type",WORKOUT_TYPE:"Workout type",MEDIA_TYPE:"Media type",WORKOUT:"Workout",MEDIA:"Media",WORKOUTS:"Workouts",WORKOUT_CATEGORY:"Workout category",MEDIA_CATEGORY:"Media category",ADDED_LIKE:"Added like",REMOVED_LIKE:"Removed like",ADDED_FAVORITE:"Added favorite",REMOVED_FAVORITE:"Removed favorite",ADDED_BOOKMARK:"Added bookmark",REMOVED_BOOKMARK:"Removed bookmark",ADDED_WATCHLIST:"Added watchlist",REMOVED_WATCHLIST:"Removed watchlist",ADDED_PLAYLIST:"Added playlist",REMOVED_PLAYLIST:"Removed playlist",ADDED_SUBSCRIPTION:"Added subscription",REMOVED_SUBSCRIPTION:"Removed subscription",ADDED_FOLLOW:"Added follow",REMOVED_FOLLOW:"Removed follow",ADDED_FRIEND:"Added friend",REMOVED_FRIEND:"Removed friend",ADDED_CONNECTION:"Added connection",REMOVED_CONNECTION:"Removed connection",MARKED_COMPLETE:"Marked complete",MARKED_INCOMPLETE:"Marked incomplete",MUSIC_ENABLED:"Music enabled",MUSIC_DISABLED:"Music disabled",SHARED:"Shared",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",PURCHASE_TO_ACCESS:"Purchase to access",SHOW_FILTERS:"Show filters",HIDE_FILTERS:"Hide filters",THIS_WEEK:"This week",TODAYS_ITEMS:"Today's items",START_TRIAL_LABEL:"Start Free Trial",START_WORKOUTS_LABEL:"Start Workouts Now",UPDATE_LABEL:"Update now",SESSION_EXPIRED:"Session expired. Please log in.",NO_VALID_SUB:"No valid subscription found. Please subscribe or contact us if you believe this is an error.",SUBSCRIPTION_ERROR:"There's a problem with your account. No valid subscription found.",SUCCESS:"Success",UPLOAD_IMAGE:"Upload Image",UPLOAD_VIDEO:"Upload Video",UPLOAD_AUDIO:"Upload Audio",UPLOAD_DOCUMENT:"Upload Document",UPLOAD_MEDIA:"Upload Media",UPLOAD_MEDIA_FILE:"Upload Media File",UPLOAD_SUCCESS:"Upload successful",UPLOAD_FAILED:"Upload failed",UPLOADING:"Uploading",SHARE_DESCRIPTION:"Share this with your friends",SHARE_TITLE:"Share",ALREADY_RATED:"You have already rated this",RATE:"Rate",VERSION:"Version",APP_VERSION:"App Version",WELCOME:"Welcome",LATEST_WORKOUTS:"Latest Workouts",RECENTLY_VIEWED:"Recently Viewed",RECENTLY_ADDED:"Recently Added",RECENTLY_COMPLETED:"Recently Completed",WORKOUTS_LIKED:"Workouts Liked",WORKOUTS_FAVORITED:"Workouts Favorited",WORKOUTS_BOOKMARKED:"Workouts Bookmarked",WORKOUTS_COMPLETED:"Workouts Completed",WORKOUTS_DONE:"Workouts Done",LIKED:"Liked",FAVORITED:"Favorited",BOOKMARKED:"Bookmarked",COMPLETED:"Completed",DONE:"Done",STATS:"Stats",STATISTICS:"Statistics",ACTIVITY:"Activity",RECENT_ACTIVITY:"Recent Activity",NEWS:"News",UPDATES:"Updates",LATEST_NEWS:"Latest News",WHATS_NEW:"What's New",WHATS_NEWS:"What's News",GOOD_MORNING:"Good Morning",GOOD_AFTERNOON:"Good Afternoon",GOOD_EVENING:"Good Evening",NO_CLASS:"No class",RELATED:"Related",RELATED_WORKOUTS:"Related Workouts",RELATED_CHALLENGES:"Related Challenges",RELATED_VIDEOS:"Related Videos",RELATED_MEDIA:"Related Media",CHALLENGES_ENTERED:"Challenges Entered",UPGRADE_TO_PREMIUM_PLUS:"Upgrade to Premium+",UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE:"Upgrade to Premium+ for unlimited access to the live streamed classes",UPGRADE_TO_PREMIUM:"Upgrade to Premium",PUSH_NOTIFICATIONS:"Push Notifications",PUSH_NOTIFICATIONS_ENABLED:"Push notifications enabled",PUSH_NOTIFICATIONS_DISABLED:"Push notifications disabled",EMAIL_NOTIFICATIONS:"Email Notifications",EMAIL_NOTIFICATIONS_ENABLED:"Email notifications enabled",EMAIL_NOTIFICATIONS_DISABLED:"Email notifications disabled",SMS_NOTIFICATIONS:"SMS Notifications",SMS_NOTIFICATIONS_ENABLED:"SMS notifications enabled",SMS_NOTIFICATIONS_DISABLED:"SMS notifications disabled",NOTIFICATIONS:"Notifications",PUSH_NOTIFICATIONS_DESCRIPTION:"Receive push notifications for new content and updates",EMAIL_NOTIFICATIONS_DESCRIPTION:"Receive email notifications for new content and updates",SMS_NOTIFICATIONS_DESCRIPTION:"Receive SMS notifications for new content and updates",OPEN_SETTINGS:"Open settings",NOTIFICATION_SETTINGS:"Notification settings",NOTIFICATION_SETTINGS_DESCRIPTION:"Manage your notification settings",CAMERA_ACCESS:"Camera access",CAMERA_PERMISSION_DENIED:"Camera permission denied",CAMERA_PERMISSION_REQUIRED:"Camera permission required",CAMERA_PERMISSION_DESCRIPTION:"Allow access to your camera to take a profile picture and personalize your account",DISABLE_PERMISSION_IN_SETTINGS:"You can disable in main system settings",DARK_MODE:"Dark mode",LIGHT_MODE:"Light mode",SYSTEM_MODE:"System mode",DARK_MODE_ENABLED:"Dark mode enabled",LIGHT_MODE_ENABLED:"Light mode enabled",SYSTEM_MODE_ENABLED:"System mode enabled",DARK_MODE_DESCRIPTION:"Enable dark mode for better viewing experience",LIGHT_MODE_DESCRIPTION:"Enable light mode for better viewing experience",SYSTEM_MODE_DESCRIPTION:"Enable system mode for better viewing experience",REQUEST_INFO:"Request info",REQUEST_INFORMATION:"Request information",GET_INFO:"Get info",GET_IN_TOUCH:"Get in touch",CONTACT_US:"Contact us",ERROR:"Error",LAST_UPDATED:"Last updated",NO_UPDATES:"No updates",RATED:"Rated",RATE_SUCCESS:"Rating successful",RATE_FAILED:"Rating failed",RATE_CANCELLED:"Rating cancelled",QUESTION:"Question",QUESTION_ABOUT_SUBSCRIPTION:"Question about subscription",LOGOUT_SUCCESS:"Logout successful",NO_ACTIVE_SUBSCRIPTION:"No active subscription",SUBSCRIPTION_EXPIRED:"Subscription expired",NO_SUBSCRIPTION_DETAILS:"You currently do not have an active subscription. If you believe this is an error, please contact our support team for assistance."},ERRORS:{GENERIC_ERROR:"An error occurred",COULD_NOT_FETCH_DATA:"Could not fetch data",COULD_NOT_UPDATE_DATA:"Could not update data",COULD_NOT_DELETE_DATA:"Could not delete data",COULD_NOT_UPDATE_LIKES:"Could not update likes",COULD_NOT_UPDATE_FAVORITES:"Could not update favorites",COULD_NOT_UPDATE_BOOKMARKS:"Could not update bookmarks",COULD_NOT_UPDATE_WATCHLIST:"Could not update watchlist",COULD_NOT_UPDATE_PLAYLIST:"Could not update playlist",COULD_NOT_UPDATE_SUBSCRIPTION:"Could not update subscription",COULD_NOT_UPDATE_FOLLOW:"Could not update follow",COULD_NOT_UPDATE_FRIEND:"Could not update friend",COULD_NOT_UPDATE_CONNECTION:"Could not update connection",ISSUE_CHECKING_PERMISSIONS:"Issue checking permissions",ISSUE_OPENING_SETTINGS:"Issue opening settings"}},Ve=({testID:n,name:l="avatar",isEditable:o=!0,initValue:s})=>{const[d,c]=i.useState(s);return r((()=>{s&&c(s)}),[s]),t("div",{"data-testid":n||'"Avatar"',className:"relative",children:[t("div",{className:"relative w-[200px] aspect-1 rounded-full border border-solid overflow-hidden flex items-center justify-center m-4",children:[d&&t(a,{children:[e(ke,{src:d,alt:l,width:200,height:200}),o&&e("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e(pe,{size:me.SMALL,rounded:!0,onClick:()=>{c(void 0)},children:ze.UI.REMOVE_BTN_LABEL})})]}),!d&&e(a,{children:o&&e("div",{className:"absolute w-full h-full flex items-center justify-center",children:e(De,{id:l,className:"button cursor-pointer mb-0",children:e(Ce,{className:"mb-0",children:ze.UI.UPLOAD})})})})]}),e("input",{type:"file",id:l,name:l,className:"hidden",onChange:e=>{var t;const a=null===(t=e.target.files)||void 0===t?void 0:t[0];if(a){const e=URL.createObjectURL(a);c(e)}}})]})};Ve.displayName="Avatar";const Ye=({testID:t,buttonData:a})=>e("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:null==a?void 0:a.map(((t,i)=>{const n=i>0&&i<a.length-1,l=0===i,r=i===a.length-1,o=u({"rounded-none":n},{"rounded-r":l,"rounded-l":r});return e("div",{children:e(pe,Object.assign({},t,{className:o,children:t.children}))},t.id)}))});Ye.displayName="ButtonGroup";const qe="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-bodyBackground text-bodyText dark:bg-darkBodyBackground dark:text-darkBodyText hover:bg-primary hover:text-bodyTextInverted group",Ke="transition duration-500 ease-in-out ",$e={replace(t){if("a"===t.name){const a=y(t.attribs);return e(be,Object.assign({},a,{children:S(t.children,$e)}))}if(t.attribs&&"p"===t.name){const a=y(t.attribs);return e(Ce,Object.assign({},a,{children:S(t.children,$e)}))}return t}},Xe=({testID:t,data:a,align:i,className:n})=>e("span",{"data-testid":t||'"HtmlContent"',className:u("relative",{"text-right":"right"===i},{"text-center":"center"===i},{"text-left":"left"===i},n),children:N(a,$e)});function Qe(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}function Ze(e){const t=A(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 Je(e){var t;if(e&&0!==e.length)return null===(t=null==e?void 0:e.map((e=>e)))||void 0===t?void 0:t[Math.floor(Math.random()*(null==e?void 0:e.map((e=>e)).length))]}Xe.displayName="HtmlContent";const et=({id:a,title:i,description:n,image:l,className:r,metaData:o,actions:s,padded:d,scaleOnHover:c,onClick:m=(()=>{}),htmlDetails:h})=>t("div",{id:a,"data-testid":"CardBasic",className:E(u(Ke,qe,{"p-4":d},{"hover:scale-100":!c},r)),onClick:m,children:[l&&e("div",{className:E(u("relative w-full overflow-hidden aspect-[16/9]",{rounded:d},l.aspectRatio)),children:e(ke,{fill:!0,src:null==l?void 0:l.src,sizes:"100vh",alt:null==l?void 0:l.alt,className:u("absolute inset-0 object-cover group-hover:scale-110 dura",Ke)})}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:u({"p-3":!d},{"pt-3":d}),children:[e("div",{children:i&&e(xe,{tag:Te.H4,singleLine:!0,children:i})}),!h&&n&&e("div",{children:e(Ce,{className:"mb-0",children:Qe(n)})}),h&&n&&e("div",{children:e(Xe,{className:"mb-0",data:Qe(n)})}),t("div",{className:"flex items-center justify-between gap-2",children:[o&&e("div",{className:"flex shrink-0 mt-2",children:o.map(((e,a)=>0===a?t(Ce,{className:"text-xs",as:Ae.SMALL,children:[e," ·"]},e):a===o.length-1?t(Ce,{className:"text-xs",as:Ae.SMALL,children:[" ",e]},e):t(Ce,{className:"text-xs",as:Ae.SMALL,children:[" ",e," ·"]},e)))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(pe,{variant:ue.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.like)||void 0===t?void 0:t.onClick)&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(pe,{variant:ue.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.share)||void 0===t?void 0:t.onClick)&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(pe,{variant:ue.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.save)||void 0===t?void 0:t.onClick)&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(pe,{variant:ue.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(pe,{variant:ue.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(pe,{variant:ue.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.report)||void 0===t?void 0:t.onClick)&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(pe,{variant:ue.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(pe,{variant:ue.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.download)||void 0===t?void 0:t.onClick)&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(pe,{variant:ue.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(pe,{variant:ue.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof s.delete.onClick&&s.delete.onClick({id:a})}})]})]})]})})]});et.displayName="CardBasic";const tt=o({brand:void 0,header:void 0,footer:void 0,locale:void 0,app:void 0,images:void 0}),at=({children:t,value:a})=>e(tt.Provider,{value:a,children:t});function it(){var e;return null===(e=s(tt).locale)||void 0===e||e.lang,ze}const nt={isDarkTheme:!1,toggleTheme:()=>{}},lt=i.createContext(nt),rt=({children:t,theme:a})=>e(lt.Provider,{value:a,children:t});function ot(){return s(lt)}const st=({id:a,title:i,description:n,image:l,className:r,metaData:o,actions:s,onClick:d=(()=>{}),playCallback:c,htmlDetails:m,accessRestriced:h})=>{const p=it();return t("div",{id:a,"data-testid":"CardBasic",className:u(Ke,qe,r),onClick:d,children:[l&&t("div",{className:u("relative w-full overflow-hidden aspect-[16/9]",l.aspectRatio),children:[e(ke,{fill:!0,src:null==l?void 0:l.src,sizes:"100vh",alt:null==l?void 0:l.alt,className:u("absolute inset-0 object-cover group-hover:scale-110",Ke)}),h&&e("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e(Ce,{bold:!0,transform:Ne.UPPERCASE,children:p.UI.PURCHASE_TO_ACCESS})}),c&&e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(pe,{variant:ue.PRIMARY,icon:"mdi:play",size:me.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(xe,{tag:Te.H5,singleLine:!0,flush:!0,children:i})}),!m&&n&&e("div",{children:e(Ce,{className:"mb-0",children:Qe(n)})}),m&&n&&e("div",{children:e(Xe,{className:"mb-0",data:Qe(n)})}),t("div",{className:"flex items-center justify-between gap-2",children:[o&&e("div",{className:"flex shrink-0",children:o.map(((e,a)=>0===a?t(Ce,{className:"text-xs",as:Ae.SMALL,children:[e," ·"]},e):a===o.length-1?t(Ce,{className:"text-xs",as:Ae.SMALL,children:[" ",e]},e):t(Ce,{className:"text-xs",as:Ae.SMALL,children:[" ",e," ·"]},e)))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(pe,{variant:ue.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.like)||void 0===t?void 0:t.onClick)&&"function"==typeof s.like.onClick&&s.like.onClick({id:a})}}),s.share&&e(pe,{variant:ue.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.share)||void 0===t?void 0:t.onClick)&&"function"==typeof s.share.onClick&&s.share.onClick({id:a})}}),s.save&&e(pe,{variant:ue.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.save)||void 0===t?void 0:t.onClick)&&"function"==typeof s.save.onClick&&s.save.onClick({id:a})}}),s.comment&&e(pe,{variant:ue.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof s.comment.onClick&&s.comment.onClick({id:a})}}),s.bookmark&&e(pe,{variant:ue.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof s.bookmark.onClick&&s.bookmark.onClick({id:a})}}),s.report&&e(pe,{variant:ue.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.report)||void 0===t?void 0:t.onClick)&&"function"==typeof s.report.onClick&&s.report.onClick({id:a})}}),s.follow&&e(pe,{variant:ue.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof s.follow.onClick&&s.follow.onClick({id:a})}}),s.download&&e(pe,{variant:ue.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.download)||void 0===t?void 0:t.onClick)&&"function"==typeof s.download.onClick&&s.download.onClick({id:a})}}),s.edit&&e(pe,{variant:ue.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof s.edit.onClick&&s.edit.onClick({id:a})}}),s.delete&&e(pe,{variant:ue.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==s?void 0:s.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof s.delete.onClick&&s.delete.onClick({id:a})}})]})]})]})})]})};st.displayName="CardMedia";const dt=({video:a,isMuted:i=!0,id:n,title:l,description:r,image:o,className:s,metaData:d,actions:c,onClick:m=(()=>{}),htmlDetails:h})=>t("div",{id:n,"data-testid":"CardVideo",className:u(Ke,qe,s),onClick:m,children:[o&&a&&e("div",{className:u("relative w-full h-full aspect-[16/9]",o.aspectRatio),children:e(C,{videoId:`video--${n}`,playbackStartDelay:1e3,videoSrc:e("source",{src:a,type:"video/mp4"}),videoClassName:u("hls-hover-video w-full aspect-[16/9]",o.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:i,className:u("w-full overflow-hidden aspect-[16/9]",o.aspectRatio),pausedOverlay:e("div",{className:u("relative w-full overflow-hidden aspect-[16/9]",o.aspectRatio),children:e(ke,{fill:!0,src:null==o?void 0:o.src,width:0,height:0,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})}),loadingOverlay:e("div",{className:u("w-full flex items-center justify-center aspect-[16/9]",o.aspectRatio),children:e("div",{className:"",children:e(he,{})})})},`${n}--card`)}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:"p-3",children:[e("div",{children:l&&e(xe,{tag:Te.H5,singleLine:!0,flush:!0,children:l})}),!h&&r&&e("div",{children:e(Ce,{className:"mb-0",children:Qe(r)})}),h&&r&&e("div",{children:e(Xe,{className:"mb-0",data:Qe(r)})}),t("div",{className:"flex items-center justify-between gap-2",children:[d&&e("div",{className:"flex shrink-0",children:d.map(((e,a)=>0===a?t(Ce,{className:"text-xs",as:Ae.SMALL,children:[e," ·"]},e):a===d.length-1?t(Ce,{className:"text-xs",as:Ae.SMALL,children:[" ",e]},e):t(Ce,{className:"text-xs",as:Ae.SMALL,children:[" ",e," ·"]},e)))}),c&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[c.like&&e(pe,{variant:ue.PRIMARY,icon:c.like.isActive?"mdi:like":"mdi:like-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.like)||void 0===t?void 0:t.onClick)&&"function"==typeof c.like.onClick&&c.like.onClick({id:n})}}),c.share&&e(pe,{variant:ue.PRIMARY,icon:c.share.isActive?"mdi:share":"mdi:share-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.share)||void 0===t?void 0:t.onClick)&&"function"==typeof c.share.onClick&&c.share.onClick({id:n})}}),c.save&&e(pe,{variant:ue.PRIMARY,icon:c.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.save)||void 0===t?void 0:t.onClick)&&"function"==typeof c.save.onClick&&c.save.onClick({id:n})}}),c.comment&&e(pe,{variant:ue.PRIMARY,icon:c.comment.isActive?"mdi:comment":"mdi:comment-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof c.comment.onClick&&c.comment.onClick({id:n})}}),c.bookmark&&e(pe,{variant:ue.PRIMARY,icon:c.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof c.bookmark.onClick&&c.bookmark.onClick({id:n})}}),c.report&&e(pe,{variant:ue.PRIMARY,icon:c.report.isActive?"mdi:flag":"mdi:flag-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.report)||void 0===t?void 0:t.onClick)&&"function"==typeof c.report.onClick&&c.report.onClick({id:n})}}),c.follow&&e(pe,{variant:ue.PRIMARY,icon:c.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof c.follow.onClick&&c.follow.onClick({id:n})}}),c.download&&e(pe,{variant:ue.PRIMARY,icon:c.download.isActive?"mdi:download":"mdi:download-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.download)||void 0===t?void 0:t.onClick)&&"function"==typeof c.download.onClick&&c.download.onClick({id:n})}}),c.edit&&e(pe,{variant:ue.PRIMARY,icon:c.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof c.edit.onClick&&c.edit.onClick({id:n})}}),c.delete&&e(pe,{variant:ue.PRIMARY,icon:c.delete.isActive?"mdi:delete":"mdi:delete-outline",size:me.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==c?void 0:c.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof c.delete.onClick&&c.delete.onClick({id:n})}})]})]})]})})]});dt.displayName="CardVideo";const ct=({id:a,title:i,description:n,icon:l,className:r,onClick:o,moreTitle:s,align:d})=>t("div",{id:a,"data-testid":"CardIcon",className:E(u(Ke,o?qe:"","p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===d},{"items-center":"center"===d},{"items-end":"right"===d},r)),children:[l&&e("div",{className:u("relative"),children:e(se,{name:l,size:48})}),t("div",{className:u({"text-left":"left"===d},{"text-center":"center"===d},{"text-right":"right"===d}),children:[e("div",{children:i&&e(xe,{tag:Te.H5,singleLine:!0,children:i})}),e("div",{children:n&&e(Ce,{align:d,children:n})})]}),o&&e("div",{className:"flex items-center justify-start gap-2",children:e(pe,{icon:"mdi:arrow-right",variant:ue.LINK,onClick:o,children:s})})]});ct.displayName="CardIcon";const ut=({testID:a,id:i,title:n,description:l,image:r,onClick:o,className:s,padded:d,icon:c,raised:m=!0,htmlDetails:h})=>t("div",{id:i,"data-testid":a||"CardHorz",className:u("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":d},{"shadow hover:shadow-lg":m},s),onClick:o,children:[r&&e("div",{className:"w-1/3 aspect-[1/1]",children:e("div",{className:E(u("relative w-full overflow-hidden h-full",r.aspectRatio)),children:e(ke,{fill:!0,src:null==r?void 0:r.src,alt:null==r?void 0:r.alt,className:"absolute inset-0 object-cover"})})}),c&&!r&&e("div",{className:"py-2 pl-2",children:e(se,{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:[n&&e("div",{className:"",children:e(xe,{tag:Te.H4,children:n})}),!h&&l&&e("div",{children:e(Ce,{className:"mb-0",children:Qe(l)})}),h&&l&&e("div",{children:e(Xe,{className:"mb-0",data:Qe(l)})})]})})]});ut.displayName="CardHorz";const mt=({testID:i,className:n,data:l,padded:o,shadow:s=!0})=>{const d=v(0);return r((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||p(d,200,{duration:.5})}),[d]),l?t("div",{"data-testid":i||"CardData",className:E(u("relative rounded-lg overflow-hidden flex flex-col items-center gap-4 p-2 bg-bodyBackground dark:bg-darkBodyBackground",{"p-4":o},{shadow:s},n)),children:[(null==l?void 0:l.animateNumber)&&t("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e(oe,{from:l.numberData.from,to:l.numberData.to,numDecimals:l.numberData.numDecimals}),e("span",{children:null==l?void 0:l.item})]}),!(null==l?void 0:l.animateNumber)&&e("div",{className:"text-lg",children:e(xe,{tag:Te.H2,flush:!0,children:null==l?void 0:l.item})}),e("div",{children:e(Ce,{className:"mb-0",children:null==l?void 0:l.label})})]}):e(a,{})};mt.displayName="CardData";const ht=t=>{var{variant:a,className:i,data:n}=t,l=ve(t,["variant","className","data"]);switch(a){case"basic":default:return e(et,Object.assign({className:i},n,l));case"media":return e(st,Object.assign({className:i},n,l));case"video":return e(dt,Object.assign({className:i},n,l));case"icon":return e(ct,Object.assign({className:i},n,l));case"horz":return e(ut,Object.assign({className:i},n,l));case"data":return e(mt,Object.assign({className:i},n,l))}};ht.displayName="Card";const pt=({text:i,flush:n,tag:l=Te.H1})=>{const r=i.split(" ");return e("div",{"data-testid":"DisplayHeading",className:"relative",children:e(xe,{tag:l,flush:n,children:r.map(((i,n)=>{const l=n===r.length-1,o=`${i}-${n}`;return t("span",{children:[e("span",{className:u({"display-heading relative font-heading":!l},{"inline-block relative font-heading":l}),children:t(a,{children:[l&&t(a,{children:[e("div",{className:"display-heading--emphasis z-0"}),e("span",{className:"display-heading--lastword relative",children:i})]}),!l&&e("span",{className:"relative z-10",children:i})]})}),!l&&" "]},o)}))})})};pt.displayName="DisplayHeading";const vt=({children:a,className:i,submit:n,onSubmit:l=(()=>{}),onChange:o,hideSubmit:s,ariaSubmitLabel:d,submitID:c,submitVariant:m=ue.PRIMARY,initialValues:h={},isBoxed:p=!1,submitType:v=ce.SUBMIT,disabledSubmitWithReturn:f=!1,isDisabled:g=!1})=>{const b=O({defaultValues:h,mode:"onBlur",reValidateMode:"onChange"});r((()=>{if(o&&"function"==typeof o){const e=b.watch(((e,t)=>{o(e,t)}));return()=>e.unsubscribe()}}),[]);const E=u({"sr-only":s}),{formState:{isSubmitting:N,isDirty:y,isValid:S}}=b;return e(I,Object.assign({},b,{children:e("div",{"data-testid":"Form",className:u("w-full max-w-s @containers @form"),children:t("form",{onSubmit:b.handleSubmit(l),onKeyDown:e=>{f&&"Enter"===e.key&&e.preventDefault()},className:u("w-2xs relative",{"form px-8 pt-6 pb-8 ":p},{"opacity-50":N},i),children:[a,n&&e("div",{className:"flex items-center justify-end",children:e(pe,{id:c||n,className:E,ariaLabel:d||n||"Submit",type:v,outline:!0,isLoading:N,disabled:N||!S||!y||g,variant:m,children:n})})]})})}))};var ft;vt.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"}(ft||(ft={}));const gt=i.forwardRef((function(a,i){var{id:n,name:l,options:r,required:o,className:s,disabled:d}=a,c=ve(a,["id","name","options","required","className","disabled"]);if(!r)throw new Error("FormSelect requires options prop");return e("div",{id:n,className:u("pb-2 min-w-20",s),children:t("div",{className:"relative",children:[e("select",Object.assign({ref:i,name:l,disabled:d,required:o,className:"form-item text-input pr-10"},c,{children:r.map(((t,a)=>{var i,n;return e("option",{value:null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.toString(),disabled:t.disabled,className:"bg-bodyBackground dark:bg-darkBodyBackground",children:t.label},`${null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.toString()}--${a}`)}))})),e("div",{className:"form-icon absolute inset-0 z-10 pointer-events-none h-full w-12 items-center justify-center top-0 right-0 left-auto flex",children:e(se,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));gt.displayName="FormSelect";const bt=({name:a,type:i,label:n,required:l,className:r,icon:o,options:s,disabled:c,description:m,showPasswordLabel:h,hidePasswordLabel:p,validations:v={},fileUploadCallback:f=(()=>{}),autoComplete:g})=>{var b,E;const[N,y]=d(!1),{control:S,formState:A}=T(),{errors:C}=A,O=n&&i!==ft.CHECKBOX,I=l||Boolean(v.required)?`${n} *`:n;return e("div",{className:"relative",children:t("div",{"data-testid":"FormField",className:"mb-4",children:[O&&e("div",{className:"flex items-baseline justify-between",children:e(De,{id:a,children:I})}),e("div",{className:"mb-1",children:e(R,{defaultValue:"",name:a,control:S,rules:v,render:({field:d})=>((i,d)=>{switch(i){case ft.HIDDEN:return e("input",Object.assign({type:We.HIDDEN,disabled:c},d));case ft.TEXT:return e(Ge,Object.assign({type:We.TEXT,required:l||Boolean(v.required),icon:o,className:r,disabled:c,autoComplete:g},d));case ft.PASSWORD:{const a=N?We.TEXT:We.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:()=>y((e=>!e)),role:"button",tabIndex:0,children:e("button",N?{type:"button","aria-label":p,className:u(i,"form-icon"),children:e(se,{name:"mdi:eye-off",size:24})}:{type:"button","aria-label":h,className:u(i,"form-icon"),children:e(se,{name:"mdi:eye",size:24})})}),e(Ge,Object.assign({type:a,required:l||Boolean(v.required),icon:o,className:r,disabled:c,autoComplete:g},d))]})}case ft.TEXTAREA:return e(Ge,Object.assign({type:We.TEXTAREA,required:l||Boolean(v.required),icon:o,className:r,disabled:c},d));case ft.EMAIL:return e(Ge,Object.assign({type:We.EMAIL,required:l||Boolean(v.required),icon:o,className:r,disabled:c,autoComplete:g},d));case ft.DATE:return e(Ge,Object.assign({type:We.DATE,required:l||Boolean(v.required),icon:o,className:r,disabled:c},d));case ft.DATETIME:return e(Ge,Object.assign({type:We.DATETIME,required:l||Boolean(v.required),icon:o,className:r,disabled:c},d));case ft.NUMBER:return e(Ge,Object.assign({type:We.NUMBER,required:l||Boolean(v.required),icon:o,className:r,disabled:c},d));case ft.CHECKBOX:return e(ge,Object.assign({required:l||Boolean(v.required),id:a,className:r,label:n,disabled:c},d));case ft.RADIO:return e(je,Object.assign({required:l||Boolean(v.required),id:a,className:r,options:s,disabled:c},d));case ft.SWITCH:return e(He,Object.assign({id:a,required:l||Boolean(v.required),className:r,disabled:c},d));case ft.SELECT:return e(gt,Object.assign({required:l||Boolean(v.required),id:a,className:r,disabled:c,label:n,options:s},d));case ft.FILE:return e(Ie,Object.assign({required:l||Boolean(v.required),id:a,className:r,disabled:c,onChangeCallback:e=>{f(e)}},d));default:return e(Ge,Object.assign({type:We.TEXT,required:l||Boolean(v.required),disabled:c,icon:o,className:r},d))}})(i,d)})}),m&&e("div",{className:"formfield-description",children:e(Ce,{size:Se.SMALL,className:"mb-0",children:m})}),C[a]&&e("div",{className:"formfield-error text-error italic",children:e(Ce,{size:Se.SMALL,className:"mb-0",children:null===(E=null===(b=null==C?void 0:C[a])||void 0===b?void 0:b.message)||void 0===E?void 0:E.toString()})})]})})};bt.displayName="FormField";const Et=({testID:a,url:i,title:n="Share",enabled:l={facebook:!0,twitter:!0}})=>t("div",{"data-testid":a||"Share",className:"flex gap-2 items-center ",children:[e("div",{children:t(Ce,{as:Ae.P,className:"mb-0",children:[ze.UI.SHARE,":"]})}),(null==l?void 0:l.facebook)&&e(L,{url:i,title:n,className:"",children:e(se,{name:"mdi:facebook"})}),(null==l?void 0:l.twitter)&&e(x,{url:i,title:n,className:"",children:e(se,{name:"mdi:twitter"})}),(null==l?void 0:l.whatsapp)&&e(w,{url:i,title:n,className:"",children:e(se,{name:"mdi:whatsapp"})}),(null==l?void 0:l.email)&&e(k,{url:i,title:n,className:"",children:e(se,{name:"mdi:email"})}),(null==l?void 0:l.linkedin)&&e(D,{url:i,title:n,className:"",children:e(se,{name:"mdi:linkedin"})})]});Et.displayName="Share";const Nt=({data:n})=>{const[l,r]=i.useState(0);return n?e("div",{"data-testid":"Tabs",children:t(_,{onSelect:e=>r(e),children:[e(M,{className:"mb-8 flex p-0",children:n.map(((t,a)=>e(P,{className:u("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(Ce,{className:"m-0 text-center",children:t.title})},a)))}),n.map(((t,a)=>e(U,{className:"",children:t.content},a)))]})}):e(a,{})};Nt.displayName="Tabs";const yt=({testID:a,facebook:i,twitter:n,instagram:l,linkedin:r})=>t("div",{"data-testid":a||'"VisitUs"',className:"flex gap-2",children:[i&&e(pe,{variant:ue.PRIMARY,size:me.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(i.url)}),n&&e(pe,{variant:ue.PRIMARY,size:me.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(n.url)}),l&&e(pe,{variant:ue.PRIMARY,size:me.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(l.url)}),r&&e(pe,{variant:ue.PRIMARY,size:me.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(r.url)})]});yt.displayName="VisitUs";const St=({testID:a,title:i,links:n,inline:l=!0,separators:r=!1,className:o})=>t("div",{"data-testid":a||'"Menu"',className:E(u("flex flex-col gap-2",o)),children:[i&&e("div",{children:e(xe,{tag:Te.H3,children:i})}),e("div",{className:u("flex gap-0 items-center md:items-start",{"flex-row ":l},{"flex-col ":!l}),children:null==n?void 0:n.map(((a,i)=>{const l=`${a.id}--${i}`;return t("div",{className:"flex gap-0",children:[e("div",{className:"relative py-2",children:t(be,{href:a.url,className:"flex gap-1",children:[a.icon&&e(se,{name:a.icon}),a.title&&e("div",{children:a.title})]})}),r&&i+1<n.length&&e("div",{className:"h-full flex self-center px-2",children:e(se,{name:"mdi:dot",className:"opacity-50"})})]},l)}))})]});var At;St.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(At||(At={}));const Ct=({children:t,className:a,spacing:i,padded:n,isNarrow:l,isCentered:r,isFlush:o,direction:s=At.COLUMN})=>{const d=E(u("container relative mx-auto my-0",{"px-2 md:px-4 lg:px-4":n},{"py-40":"feature"===i},{"py-24":"component"===i},{"py-16":"module"===i},{"py-10":"element"===i},{"py-4":"atom"===i},{"py-0":"none"===i},{"max-w-3xl":l},{"flex items-center justify-center flex-col":r},{"px-0 max-w-full mx-0":o},{"flex flex-col":s===At.COLUMN},{"flex-row":s===At.ROW})),c=u("w-full",a);return e("div",{"data-testid":"Container",className:d,children:e("div",{className:c,children:t})})};Ct.displayName="Container";const Ot=({testID:a,children:i,withBg:n=!0,inversed:l=!1})=>t("div",{"data-testid":a||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[n&&e("div",{className:u("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!l,"-top-24 left-0":l})}),e(Ct,{children:i})]});Ot.displayName="Hero";const It=({testID:a,bgAsset:i,focalAsset1:n,focalAsset2:l,focalAsset3:r})=>{c(null);const o={opacity:.001,rotate:0,scale:1,x:200,y:0},s={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,transition:{damping:60,delay:0,mass:1.2,stiffness:300,type:"spring"},x:0,y:0};return t("div",{"data-testid":a||"AnimationSet1",className:u("relative w-full h-full"),children:[i&&e(f.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(ke,{src:i.src,alt:i.alt,fill:!0})}),(n||l)&&t(f.div,{className:"absolute right-0 top-1/2 z-10 overflow-visible w-3/4 aspect-[0.78/1]",style:{transform:"translateY(-50%)"},children:[n&&e(f.div,{className:"absolute w-1/2 aspect-[0.35/1] right-16 top-0",initial:o,animate:s,children:e(ke,{src:n.src,alt:n.alt,fill:!0})}),l&&e(f.div,{className:"absolute w-1/2 aspect-[0.5/1] -left-4 top-20",initial:o,animate:Object.assign(Object.assign({},s),{transition:Object.assign(Object.assign({},s.transition),{delay:.3})}),children:e(ke,{src:l.src,alt:l.alt,fill:!0})})]}),r&&e("div",{className:"absolute w-1/4 aspect-[0.5/1] flex flex-col flex-nowrap p-0 top-16 z-20 items-end justify-end left-0",children:e(f.div,{className:"relative w-full overflow-visible aspect-[1.2/1]",initial:{opacity:.001,rotate:0,scale:1,x:100,y:0},animate:{opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,transition:{damping:60,delay:.6,mass:1.2,stiffness:300,type:"spring"},x:0,y:0},children:e(ke,{src:r.src,fill:!0,alt:r.alt})})})]})};It.displayName="AnimationSet1";const Tt=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,Rt=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,Lt={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},xt={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."}},wt=({handleSubmit:i,initialValues:n,showSocialButtons:l=!1})=>t("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[t(vt,{onSubmit:i,submit:ze.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:n,children:[e(bt,{name:"email",type:ft.EMAIL,label:ze.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:Lt,autoComplete:"email"}),e(bt,{name:"password",type:ft.PASSWORD,label:ze.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),l&&t(a,{children:[e(we,{}),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:()=>window.location.assign(Tt),variant:ue.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ze.UI.LOGIN_WITH_GOOGLE}),e(pe,{onClick:()=>window.location.assign(Rt),variant:ue.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ze.UI.LOGIN_WITH_APPLE})]})})]})]});wt.displayName="LoginForm";const kt=({handleSubmit:i,showSocialButtons:n=!1})=>t("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[t(vt,{onSubmit:i,submit:ze.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e(bt,{name:"email",type:ft.EMAIL,label:ze.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:Lt,autoComplete:"email"}),e(bt,{name:"password",type:ft.PASSWORD,label:ze.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:ze.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:xt,autoComplete:"new-password"})]}),n&&t(a,{children:[e(we,{}),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:()=>window.location.assign(Tt),variant:ue.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ze.UI.SIGNUP_WITH_GOOGLE}),e(pe,{onClick:()=>window.location.assign(Rt),variant:ue.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ze.UI.SIGNUP_WITH_APPLE})]})})]})]});kt.displayName="RegisterForm";const Dt=({handleSubmit:t})=>e("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e(vt,{onSubmit:t,submit:ze.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e(bt,{name:"email",type:ft.EMAIL,label:ze.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:Lt})})});Dt.displayName="ForgotPasswordForm";const _t=({loginSubmit:a,registerSubmit:n,passwordForgotSubmit:l,handleTokenCallback:o,showSocialLogin:s=!1})=>{const[d,c]=i.useState(!1);return r((()=>{!function(){fe(this,0,void 0,(function*(){if(!process.env.AWS_COGNITO_USERPOOL_DOMAIN||!process.env.AWS_COGNITO_CLIENT_ID||!process.env.AWS_COGNITO_REDIRECT_URI)return;const e=new URLSearchParams(window.location.search).get("code");if(e){const t=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/token`,a=new URLSearchParams;a.append("grant_type","authorization_code"),a.append("client_id",process.env.AWS_COGNITO_CLIENT_ID),a.append("code",e),a.append("redirect_uri",process.env.AWS_COGNITO_REDIRECT_URI);const i=yield fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a}),n=yield i.json();n&&o&&"function"==typeof o&&o(n)}}))}()}),[]),t("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-128",children:[!d&&e(Nt,{data:[{title:"Login",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(wt,{handleSubmit:a,showSocialButtons:s}),e("div",{className:"mt-4",children:e(pe,{variant:ue.LINK,onClick:()=>c(!d),children:d?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e("div",{className:"flex flex-col gap-4 items-center",children:e(kt,{handleSubmit:n,showSocialButtons:s})})}]}),d&&e(Nt,{data:[{title:"Forgot Password",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(Dt,{handleSubmit:l}),e("div",{className:"mt-4",children:e(pe,{variant:ue.LINK,onClick:()=>c(!d),children:d?"Back to Login":"Forgot Password?"})})]})}]})]})};function Mt({className:t,onClick:a}){return e(pe,{className:"absolute -right-2 top-1/2 -translate-y-1/2 z-10",onClick:a,icon:"mdi:navigate-next",rounded:!0})}function Pt({className:t,onClick:a}){return e(pe,{className:"absolute -left-2 top-1/2 -translate-y-1/2 z-10",onClick:a,icon:"mdi:navigate-before",rounded:!0})}_t.displayName="Authenticator";const Ut=({testID:t,data:a,onPressCallback:i=(()=>{}),count:n=5,isCentered:l=!1,carouselOptions:r={loop:!1,scrollAnimationDuration:500,showDots:!1,showArrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:n}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}]}})=>{const o=a.length<=n;return e("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e(F,{arrows:!o&&r.showArrows,nextArrow:e(Mt,{}),prevArrow:e(Pt,{}),centerMode:l,responsive:r.responsive,slidesToScroll:1,slidesToShow:n,dots:!o&&r.showDots,infinite:!o&&r.loop,speed:r.scrollAnimationDuration,children:a.map(((t,a)=>e("div",{className:"px-2",children:e(ht,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>{i(t.data.id)}}),className:t.className},a)},a)))})})};var Ft;Ut.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"}(Ft||(Ft={}));const Bt=({testID:a,cardData:i,title:n,description:l,withSeparators:r,spacing:o=Ft.MODULE})=>{const s=c(null),d=m(s,{once:!0});return t("div",{ref:s,"data-testid":a||"PanelCards",className:u("relative m-auto w-full flex flex-col flex-none flex-nowrap",o),children:[(n||l)&&t("div",{className:"relative text-center py-8",children:[n&&e(pt,{text:n}),l&&e(Ce,{align:Ee.CENTER,children:l})]}),e("div",{className:"flex gap-8 items-center justify-center flex-col md:flex-row",children:null==i?void 0:i.map(((a,n)=>t("span",{className:"flex gap-8 justify-between items-center",children:[e("div",{className:u("relative flex flex-1 items-center justify-center",{"":r}),style:{transform:d?"none":"translateY(200px)",opacity:d?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*n}s`},children:e(ht,Object.assign({},a))}),r&&n<i.length-1&&e("div",{className:"w-1 h-10 border-0 border-r border-solid border-primary500"},`separator-${n}`)]},`card-${n}`)))})]})};Bt.displayName="PanelCards";const jt=({testID:a,title:i,description:n,inversed:l,assets:r,buttonData:o,withBg:s=!0,spacing:d=Ft.DEFAULT,chips:c})=>t("div",{"data-testid":a||"PanelFeature",className:u("relative m-auto w-full flex flex-none flex-nowrap px-4 md:px-0",d),children:[s&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -top-24 -left-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e(Ct,{children:t("div",{className:u("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":l}),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(pt,{text:i,flush:!0})}),e("div",{className:"relative text-center md:text-left",children:e(Ce,{className:"mb-0",children:n})}),c&&e("div",{className:"grid grid-cols-3 gap-2 mx-auto md:mx-0",children:null==c?void 0:c.map(((t,a)=>e(Oe,{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,Object.assign({},o))})]}),e("div",{className:"w-full md:w-1/2 flex items-center justify-center",children:e("div",{className:"w-full aspect-[1/1] flex items-center justify-center",children:e(It,{bgAsset:r.bgAsset,focalAsset1:r.focalAsset1,focalAsset2:r.focalAsset2,focalAsset3:r.focalAsset3})})})]})})]});jt.displayName="PanelFeature";const Ht=({url:t,sources:a,onReady:l,onExitFullScreenCallback:o,className:s,options:d={},isYoutube:c=!1,defaultAudioTrack:m="No Music",rounded:h=!0,aspectRatioValue:p,fullScreenOnly:v=!1})=>{const f=i.useRef(null),g=i.useRef(null),b=i.useRef(null),N=n((()=>{switch(console.log("aspectRatioValue",p),p){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]"}}}),[p]);return r((()=>{var e;if(c)return;const t=Object.assign(Object.assign({autoplay:!0,controls:!0,muted:!1,playsinline:!1,preferFullWindow:!0,responsive:!0,fill:!0,fluid:!0,aspectRatio:N.aspectRatio||"16:9",controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},d),{sources:a});if(console.log("videoOptions",t),b.current){const e=b.current;e.autoplay(d.autoplay),e.src(d.sources)}else{const a=document.createElement("video-js");a.classList.add("vjs-big-play-centered"),null===(e=null==g?void 0:g.current)||void 0===e||e.appendChild(a);const i=b.current=j(a,t,(()=>{j.log("player is ready",i),l&&l(i)}));v&&i.requestFullscreen(),i.on("loadedmetadata",(function(){const e=i.audioTracks();for(let t=0;t<e.length;t++)e[t].label===m&&(e[t].enabled=!0)})),i.on("fullscreenchange",(function(){i.isFullscreen()?console.log("Player is in fullscreen"):(console.log("Player is not in fullscreen"),o&&"function"==typeof o&&o())}))}}),[d,g]),r((()=>{if(c)return;const e=b.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),b.current=null)}}),[b]),c&&t?e("div",{"data-testid":"Video",className:u("relative w-full h-full aspect-[16/9]",s),children:e(B,{ref:f,className:"react-player",url:t,width:"100%",height:"100%",controls:!0,onReady:l})}):(console.log("aspectRatioConfig",N),e("div",{className:E(u("relative w-full overflow-hidden h-full aspect-[16/9] bg-black object-cover",{rouded:h},N.className,s)),children:e("div",{"data-vjs-player":!0,children:e("div",{ref:g,className:"object-cover"})})}))};Ht.displayName="Video";const Wt=({testID:a,title:i,contentComponent:l,description:o,image:s,buttonData:d,inversed:h=!1,withBg:p=!0,spacing:v,video:b,headingTag:N,className:y})=>{const S=g(),A=c(null),C=m(A),O={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};r((()=>{C&&S.start((e=>({transform:"none",transition:Object.assign(Object.assign({},O),{delay:.1*e})})))}),[S,C]);const I=n((()=>{switch(null==b?void 0:b.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]"}}),[b]),T=h?"translateX(100px)":"translateX(-100px)";return t("div",{"data-testid":a||"PanelHero",className:E(u("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",v,y)),children:[p&&e("div",{className:u("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-b md:bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!h,"-top-24 left-0":h})}),e(Ct,{children:t("div",{className:u("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":h}),children:[e("div",{ref:A,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:t("div",{className:u("relative flex flex-col gap-4 from-bodyBackground dark:from-darkBodyBackground p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!h},{"text-left bg-gradient-to-t md:bg-gradient-to-r":h}),children:[e(f.div,{initial:{transform:T},custom:0,animate:S,children:e(pt,{text:i,tag:N})}),l&&e(f.div,{initial:{transform:T},custom:1,animate:S,children:l}),o&&e(f.div,{initial:{transform:T},custom:1,animate:S,children:e(Xe,{className:"mb-0",align:h?Ee.LEFT:Ee.RIGHT,data:o})}),d&&e(f.div,{initial:{transform:T},custom:2,animate:S,children:e("div",{className:u("flex items-center",{"justify-end":!h,"justify-start":h}),children:e(pe,Object.assign({},d))})})]})}),e("div",{className:"relative w-full md:w-1/2 z-0",children:t("div",{className:u("relative scale-[1.35] rounded overflow-hidden shadow",I),children:[s&&e(ke,{src:s,alt:i,fill:!0}),b&&e(Ht,{sources:b.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:b.aspectRatioValue})]})})]})})]})};Wt.displayName="PanelHero";const Gt=({testID:a,title:i,description:n,image1:l,image2:r,iosLink:o="#",androidLink:s="#",inversed:d=!1,withBg:c=!0,spacing:m=Ft.MODULE})=>t("div",{"data-testid":a||"PanelFeature",className:u("relative m-auto w-full flex flex-none flex-nowrap",m),children:[c&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -bottom-24 -right-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e(Ct,{children:t("div",{className:u("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-tertiary dark:bg-secondary rounded p-8 shadow",{"flex-row-reverse":d}),children:[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-1/3",children:e(ke,{src:r,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-1/2",children:e(ke,{src:l,alt:i})})]}),t("div",{className:"w-full md:w-1/2",children:[e("div",{children:e(pt,{text:i})}),e("div",{children:e(Ce,{children:n})}),t("div",{className:"flex items-center justify-start gap-4",children:[e("div",{className:"relative w-[150px] h-[50px]",children:e(be,{href:o,target:"_blank",hideExternalIcon:!0,children:e(ke,{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(be,{href:s,target:"_blank",hideExternalIcon:!0,children:e(ke,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});Gt.displayName="PanelProduct";const zt=({testID:a,className:i,title:n,description:l,spacing:r=Ft.NONE,videoProps:o})=>t("div",{"data-testid":a||'"PanelVideo"',className:E(u("relative m-auto w-full flex flex-none flex-nowrap overflow-hidden items-center justify-center",`md:aspect-[${o.aspectRatioValue}]`,r,i)),children:[e(Ht,{rounded:!1,aspectRatioValue:o.aspectRatioValue,options:Object.assign({autoplay:!0,muted:!0,controls:!1,loop:!0},null==o?void 0:o.options),sources:null==o?void 0:o.sources}),t("div",{className:"absolute top-0 left-0 w-full h-full z-10",children:[e("div",{className:"absolute top-0 left-0 w-full h-full bg-gradient-to-r from-transparent to-black opacity-50"}),t("div",{className:"absolute top-0 left-2 md:left-0 w-full h-full flex flex-col items-end justify-center pr-24 text-white",children:[n&&e(f.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(pt,{text:n})})}),l&&e(f.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(Ce,{children:l})})})]})]})]});zt.displayName="PanelVideo";const Vt=({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(ht,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>i(t.data.id)})},a)))});var Yt;Vt.displayName="CardGrid",function(e){e.NONE="none",e.ATOM="atom",e.DEFAULT="default",e.ELEMENT="element",e.COMPONENT="component",e.MODULE="module",e.FEATURE="feature"}(Yt||(Yt={}));const qt=({spacing:t=Yt.DEFAULT,children:a,narrow:i,flush:n,className:l})=>{const r=u("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":n},l);return e("div",{"data-testid":"ContentPageLayout",className:r,children:a})};var Kt;qt.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"}(Kt||(Kt={}));const $t=({className:t,children:a,size:i=Kt.DEFAULT})=>{const n=u("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:n,children:a})};$t.displayName="ContentRowsLayout";const Xt=({testID:a,className:i})=>{var n,l,r,o,d,c,m,h,p,v,f,g,b,E;const N=s(tt);return e("footer",{className:u("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8",i),children:t(Ct,{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:[(null===(n=null==N?void 0:N.brand)||void 0===n?void 0:n.logo)&&e("div",{className:"relative w-24",children:e(Ue,{logo:null===(l=null==N?void 0:N.brand)||void 0===l?void 0:l.logo,aspectRatioClass:null===(r=null==N?void 0:N.brand)||void 0===r?void 0:r.logoAspectRatio})}),(null===(o=N.footer)||void 0===o?void 0:o.about)&&e("div",{children:e(Ce,{children:N.footer.about})}),e("div",{children:e(yt,{facebook:null===(c=null===(d=N.footer)||void 0===d?void 0:d.visitUs)||void 0===c?void 0:c.facebook,twitter:null===(h=null===(m=N.footer)||void 0===m?void 0:m.visitUs)||void 0===h?void 0:h.twitter,instagram:null===(v=null===(p=N.footer)||void 0===p?void 0:p.visitUs)||void 0===v?void 0:v.instagram,linkedin:null===(g=null===(f=N.footer)||void 0===f?void 0:f.visitUs)||void 0===g?void 0:g.linkedin})})]}),(null===(b=N.footer)||void 0===b?void 0:b.menus)&&e("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:N.footer.menus.map(((t,a)=>e("div",{className:"flex flex-1",children:e(St,{title:t.title,links:t.links,inline:!1})},`${t.title}--${a}`)))})]}),t("div",{className:"flex items-center justify-center flex-col",children:[t(Ce,{align:Ee.CENTER,as:Ae.SMALL,children:["© ",(new Date).getFullYear()," ",ze.UI.COPYRIGHT," ",null===(E=N.brand)||void 0===E?void 0:E.name]}),e(Ce,{align:Ee.CENTER,as:Ae.SMALL,children:ze.UI.ALL_RIGHTS_RESERVED})]})]})})};Xt.displayName="Footer";const Qt=({testID:a,hideMenu:i=!1,className:n,logoOnly:l})=>{var r,o,c,m,h,p,v,f,g,b,N,y,S,A,C,O,I,T,R,L,x,w;const k=s(tt),D=it(),[_,M]=d("hidden"),[P,U]=d(!1),F=()=>{M("hidden"===_?"block":"hidden")};return e("header",l?{"data-testid":a||'"Header"',className:E(u("relative z-10 w-full m-auto py-4 bg-bodyBackground dark:bg-darkBodyBackground",n)),children:e("div",{className:"relative w-full flex justify-center items-center",children:(null===(r=null==k?void 0:k.brand)||void 0===r?void 0:r.logo)&&e("div",{className:"relative w-56",children:e(be,{href:"/",children:e(Ue,{logo:null===(o=null==k?void 0:k.brand)||void 0===o?void 0:o.logo,aspectRatioClass:null===(c=null==k?void 0:k.brand)||void 0===c?void 0:c.logoAspectRatio})})})})}:{"data-testid":a||'"Header"',className:E(u("relative w-full m-auto py-4 bg-bodyBackground dark:bg-darkBodyBackground",n)),children:t(Ct,{padded:!0,children:[t("div",{className:"relative w-full flex",children:[(null===(m=null==k?void 0:k.brand)||void 0===m?void 0:m.logo)&&e("div",{className:"relative w-32",children:e(be,{href:"/",children:e(Ue,{logo:null===(h=null==k?void 0:k.brand)||void 0===h?void 0:h.logo,aspectRatioClass:null===(p=null==k?void 0:k.brand)||void 0===p?void 0:p.logoAspectRatio})})}),e("div",{className:"flex-1 hidden md:flex items-center justify-center",children:(null===(v=null==k?void 0:k.header)||void 0===v?void 0:v.nav)&&e(St,{links:k.header.nav,separators:!0})}),t("div",{className:"hidden md:flex flex-col justify-center",children:[!(null===(f=null==k?void 0:k.app)||void 0===f?void 0:f.isAuthenticated)&&(null===(g=null==k?void 0:k.app)||void 0===g?void 0:g.loginCallback)&&e("div",{className:"w-32 flex justify-end",children:e(pe,{onClick:null===(b=null==k?void 0:k.app)||void 0===b?void 0:b.loginCallback,children:D.UI.LOGIN})}),!(null===(N=null==k?void 0:k.app)||void 0===N?void 0:N.isAuthenticated)&&!(null===(y=null==k?void 0:k.app)||void 0===y?void 0:y.loginCallback)&&e("div",{className:"w-32 flex justify-end"}),(null===(S=null==k?void 0:k.app)||void 0===S?void 0:S.isAuthenticated)&&t("div",{className:"relative",children:[e(pe,{onClick:()=>U(!P),icon:P?"mdi:user-outline":"mdi:user"}),e("div",{onClick:()=>U(!1),className:u("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!P}),children:(null===(A=null==k?void 0:k.header)||void 0===A?void 0:A.profile)&&e(St,{links:k.header.profile,inline:!1})})]})]}),e("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e(pe,{variant:ue.PRIMARY,icon:"mdi:menu",onClick:F})})]}),t("div",{className:u("navbar-menu relative z-50",_,{hidden:i}),children:[e("div",{className:"navbar-backdrop fixed inset-0 bg-black opacity-25"}),t("nav",{className:"fixed top-0 left-0 bottom-0 flex flex-col w-5/6 max-w-sm py-4 px-4 bg-bodyBackground dark:bg-darkBodyBackground border-r overflow-y-auto",children:[t("div",{className:"flex justify-between",children:[e("div",{className:"relative w-32",children:(null===(C=null==k?void 0:k.brand)||void 0===C?void 0:C.logo)&&e("div",{className:"relative w-32",children:e(Ue,{logo:null===(O=null==k?void 0:k.brand)||void 0===O?void 0:O.logo,aspectRatioClass:null===(I=null==k?void 0:k.brand)||void 0===I?void 0:I.logoAspectRatio})})}),e("div",{children:e(pe,{variant:ue.PRIMARY,icon:"mdi:close",onClick:F})})]}),t("div",{className:"flex flex-col flex-1 gap-4",children:[(null===(T=null==k?void 0:k.app)||void 0===T?void 0:T.isAuthenticated)&&e("div",{className:"md:hidden flex justify-center",children:e(Ce,{children:"User profile avatar and details here."})}),e("div",{className:"flex flex-1 justify-center pt-4",children:(null===(R=null==k?void 0:k.header)||void 0===R?void 0:R.nav)&&e(St,{links:k.header.nav,inline:!1})}),(null===(L=null==k?void 0:k.app)||void 0===L?void 0:L.isAuthenticated)&&e("div",{className:"md:hidden flex justify-center",children:e(pe,{onClick:null===(x=null==k?void 0:k.app)||void 0===x?void 0:x.logoutCallback,children:D.UI.LOGOUT})}),!(null===(w=null==k?void 0:k.app)||void 0===w?void 0:w.isAuthenticated)&&e("div",{className:"md:hidden flex justify-center",children:e(pe,{onClick:()=>{var e;null===(e=null==k?void 0:k.app)||void 0===e||e.loginCallback(),F()},children:D.UI.LOGIN})})]})]})]})]})})};Qt.displayName="Header";const Zt=({testID:t,inputCallback:a,seperator:l,numInputs:r=4,shouldAutoFocus:o=!1,size:s="medium"})=>{const[c,m]=d("");i.useEffect((()=>{c&&4===c.length&&void 0!==a&&"function"==typeof a&&a(c)}),[c]);const h=n((()=>{switch(s){case"small":return{width:"2.5rem",height:"3rem"};case"medium":return{width:"3.5rem",height:"4rem"};case"large":return{width:"4.5rem",height:"5rem"};default:return{width:"2.5rem",height:"2.5rem"}}}),[s]);return e("div",{"data-testid":t||'"OTPInput"',className:"foo-bar",children:e(H,{value:c,onChange:m,inputType:"number",numInputs:r,shouldAutoFocus:o,renderSeparator:l?()=>e("div",{className:"flex items-center justify-center",children:e(se,{name:"mdi:dot",className:"opacity-50"})}):e("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e("input",Object.assign({},t,{className:u("remove-arrow form-item text-input w-12")})),inputStyle:{width:h.width,height:h.height}})})};var Jt,ea;function ta({className:a,label:i,onChange:n,options:l}){return l?t("div",{className:u("m-0 p-0 mb-2 border-none",a),children:[e(De,{className:"text-sm",transform:Ne.UPPERCASE,children:i}),e(gt,{id:i||"Sorting",options:l,onChange:e=>n(e.target.value)})]}):null}function aa(t){var{className:a,current:i,resultsPerPage:n=10,onChange:l,totalPages:r}=t,o=ve(t,["className","current","resultsPerPage","onChange","totalPages"]);return e(ee,Object.assign({current:i,onChange:l,simple:!0,pageSize:n,total:r*n,className:u("m-0 p-0 list-none text-bodyTextInverted flex gap-2 text-center items-center [&>li>span]:px-2 [&>li>input]:text-black [&>li>input]:rounded [&>li>input]:text-center",a),locale:te,prevIcon:e("div",{className:"text-bodyText",children:e(se,{name:"mdi:chevron-left"})}),nextIcon:e("div",{className:"text-bodyText",children:e(se,{name:"mdi:chevron-right"})})},o))}function ia({className:i,onChange:n,options:l,label:r}){return l?t("div",{className:u("m-0 p-0 mb-2 border-none",i),children:[e(De,{className:"text-sm mr-2",transform:Ne.UPPERCASE,children:ze.UI.SHOW}),e(gt,{id:r||"ResultsPerPage",options:l.map((e=>({label:e.toString(),value:e}))),onChange:e=>n(e.target.value),className:"min-w-20"})]}):e(a,{})}function na(i){var{className:n,end:l,searchTerm:r,start:o,totalResults:s}=i,d=ve(i,["className","end","searchTerm","start","totalResults"]);return t("div",Object.assign({className:u("m-0 p-0 flex-1",n)},d,{children:["Showing"," ",t("strong",{children:[o," - ",l]})," ","out of ",e("strong",{children:s}),r&&t(a,{children:[" ","for: ",e("em",{children:r})]})]}))}function la({className:a,onChange:i,onSubmit:n,wasSearched:l,placeholder:r,allowReset:o=!1,resetTrigger:d=(()=>{})}){return s(G),e("div",{className:u("m-0 md:px-48",a),children:t("form",{onSubmit:e=>n(e),className:"flex items-center",children:[e("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e(Ge,{name:"SearchBoxInput",type:We.TEXT,placeholder:r||"Search now...",onChange:e=>{var t;i(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)}})}),e("div",{className:"pl-4",children:t("div",{className:"flex flex-row gap-2",children:[l&&o&&e(pe,{type:ce.BUTTON,onClick:()=>d("",{shouldClearFilters:!1}),variant:ue.SECONDARY,icon:"mdi:restore"}),e(pe,{type:ce.SUBMIT,variant:ue.PRIMARY,icon:"mdi:magnify"})]})})]})})}function ra({className:i,children:n,header:l,bodyContent:r,bodyFooter:o,bodyHeader:s,sideContent:d,showSidebar:c}){const m=u("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:u("w-full flex flex-col",i),children:[e("div",{className:"m-auto md:py-0 w-full",children:l}),t("div",{className:u("md:grid m-auto md:py-0 w-full",{"md:grid-cols-searchLayout":!d,"md:grid-cols-searchLayoutWithSidebar":d}),children:[!ae&&e("div",{className:m,children:d}),t("div",{className:u("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:s}),e("div",{className:"relative",children:n||r}),e("div",{className:"flex items-center justify-around",children:o})]})]})]}),ae&&c&&e("div",{className:"fixed z-10 w-full top-0 left-0 right-0 bottom-0 bg-bodyBackground px-4 overflow-scroll",children:d})]})}function oa(t){var{children:a,className:i,gridClasses:n}=t,l=ve(t,["children","className","gridClasses"]);const r=n||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return e("ul",Object.assign({className:u("relative grid gap-4 mb-4",r,i)},l,{children:a}))}function sa(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function da(e,t){if(e)return e[t]}function ca(e){const t=da(e,"snippet")||(a=function(e){return da(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 ua({className:t,result:a,as:i,cardMap:n={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:l,titleField:r,imageField:o,videoField:s,descriptionField:d,metaDataFields:c,cardProps:m}=n,h=l&&ca(a[l.fieldName]),p=r&&ca(a[r.fieldName]),v=o&&ca(a[o.fieldName]),f=s&&s.formatter?s.formatter(ca(a[s.fieldName])):s&&ca(a[s.fieldName]),g=d&&ca(a[d.fieldName]),b=c&&c.map((e=>{const t=ca(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)}));return e("li",{className:u("relative",t),children:(()=>{const t={id:h,title:p,image:{src:v||"",alt:p||"",title:p||"",width:500,height:500},video:f,description:g,metaData:b,actions:n.actionsData,onClick:n.onClickLink};switch(i){case ea.cardMedia:return e(ht,Object.assign({variant:Jt.MEDIA,data:t},m));case ea.cardVideo:return e(ht,Object.assign({variant:Jt.VIDEO,data:t},m,{isMuted:!1}));default:return e(ht,Object.assign({variant:Jt.BASIC,data:t},m))}})()})}function ma({showOptions:i,sortOptions:l,resultAs:r=ea.cardBasic,ResultFieldMap:o,config:s={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:c=[],noSidebar:u=!1,customConnector:m,showPagingInfo:h,gridClasses:p,initialState:v={},showTextSearch:f=!0}){const g=it(),b=n((()=>{const e={host:process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""};return new W(m||e)}),[]),E=n((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:!0,apiConnector:b,hasA11yNotifications:!0,searchQuery:{filters:s.filters||[],search_fields:s.searchFields||{},result_fields:s.resultsFields||{},facets:s.facets},autocompleteQuery:{results:{search_fields:{title:{},description:{}},resultsPerPage:5,result_fields:{title:{snippet:{size:100,fallback:!0}}}}},initialState:Object.assign({resultsPerPage:(null==i?void 0:i[0])||8},v)})),[s]),[N,y]=d(!1),S=()=>{y((e=>!e))};return e(z,{config:E,children:e(V,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:n,setSearchTerm:d})=>{var m;return e(a,{children:e(Y,{children:e(ra,{noSidebar:u,showSidebar:N,header:f&&e(q,{view:t=>e(la,Object.assign({},t,{wasSearched:n,placeholder:s.initialPlaceholder,allowReset:!0,resetTrigger:d}))}),sideContent:!u&&c&&t("div",{children:[e("div",{className:"md:hidden flex justify-end pt-2 -mb-2",children:e(pe,{onClick:S,icon:"mdi:close",children:null===(m=null==g?void 0:g.UI)||void 0===m?void 0:m.HIDE_FILTERS})}),n&&l&&e(K,{label:"Sort by",sortOptions:l,view:ta}),null==c?void 0:c.map((({field:t,label:a,view:i})=>e($,{field:t,label:a,view:i},t)))]}),bodyContent:e(X,{shouldTrackClickThrough:!1,resultView:t=>e(ua,Object.assign({},t,{as:r,cardMap:o})),className:"list-none p-0 m-0",view:t=>e(oa,Object.assign({},t,{gridClasses:p}))}),bodyHeader:t(a,{children:[n&&h&&e(Q,{view:na}),n&&i&&e(Z,{view:ia,options:i}),n&&l&&u&&e(K,{label:"Sort by",sortOptions:l,view:ta}),n&&!u&&e("div",{className:"block md:hidden",children:e(pe,{rounded:!0,onClick:S,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e(J,{view:aa})})})})}})})}function ha({className:a,label:i,onChange:n,options:l}){const r=l.map((e=>({value:e.value,label:`${e.value} (${e.count})`})));return t("fieldset",{className:u("m-0 p-0 mt-4 mb-2 border-none",a),children:[e(De,{className:"text-sm",transform:Ne.UPPERCASE,children:i}),e(gt,{id:i,options:r,onChange:e=>n(e.target.value)})]})}function pa({className:a,label:i,onRemove:n,onSelect:l,options:r}){const o=r.filter((e=>e.selected)).map((e=>e.value))[0];return e("fieldset",{className:u("m-0 p-0 mt-4 mb-2 border-none",a),children:t("div",{children:[e(De,{transform:Ne.UPPERCASE,children:i}),t("ul",{className:"ul list-none p-0",children:[o&&t("li",{className:"m-0 flex justify-between items-center flex-1",children:[sa(o),e("span",{className:"ml-1 px-1",children:e(pe,{onClick:()=>n(o),size:me.SMALL,rounded:!0,children:e(se,{name:"mdi:close"})})})]}),!o&&r.map((a=>{const n=sa(a.value);return t("li",{className:"m-0 flex justify-between",children:[e("a",{className:"no-underline visited:text-bodyText","data-transaction-name":`facet - ${i}`,href:"/",onClick:e=>{e.preventDefault(),l(a.value)},children:e("label",{className:"label pl-0 leading-none text-bodyText dark:text-darkBodyText",children:n})}),e(Ce,{as:Ae.SPAN,size:Se.MEDIUM,children:a.count.toLocaleString("en")})]},n)}))]})]})})}function va({className:i,label:n,onMoreClick:l,onRemove:r,onSelect:o,options:s,showMore:d,showSearch:c,onSearch:m,searchPlaceholder:h}){return s?t("fieldset",{className:u("m-0 p-0 mt-4 mb-2 border-none",i),children:[e(De,{className:"text-sm",transform:Ne.UPPERCASE,children:n}),c&&e("div",{className:"mt-1",children:e(Ge,{type:We.SEARCH,placeholder:h||"Search",onChange:e=>{m(e.target.value)}})}),t("div",{className:"my-4",children:[(null==s?void 0:s.length)<1&&e("div",{children:"No matching options"}),null==s?void 0:s.map((a=>{const i=a.selected,l=a.value,s=sa(l);return t("div",{className:"flex justify-between pb-2",children:[e(ge,{id:`facet_${n}${s}`,"data-transaction-name":`facet - ${n}`,checked:i,onChange:()=>i?r(l):o(l),label:s}),e(Ce,{as:Ae.SPAN,size:Se.SMALL,children:a.count.toLocaleString("en")})]},s)}))]}),d&&e(pe,{size:me.SMALL,variant:ue.TERTIARY,onClick:l,"aria-label":"Show more options",children:"+ More"})]}):e(a,{children:"Options required"})}Zt.displayName="OTPInput",function(e){e.BASIC="basic",e.MEDIA="media",e.VIDEO="video",e.ICON="icon",e.HORZ="horz",e.DATA="data"}(Jt||(Jt={})),function(e){e.cardBasic="cardBasic",e.cardMedia="cardMedia",e.cardVideo="cardVideo"}(ea||(ea={})),ta.displayName="Sorting",aa.displayName="Paging",ia.displayName="ResultsPerPage",na.displayName="PagingInfo",la.displayName="SearchBox",ra.displayName="Layout",oa.displayName="Results",ua.displayName="Result",ha.displayName="SingleSelectFacet",pa.displayName="SingleLinksFacet",va.displayName="MultiCheckboxFacet";const fa=({handleSubmit:t})=>e("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e(vt,{onSubmit:t,submit:ze.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e(bt,{name:"password",type:ft.PASSWORD,label:ze.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:xt})})});fa.displayName="ResetPasswordForm";const ga=({testID:a,initialValues:i,handleSubmit:n})=>e("div",{"data-testid":a||'"ProfileForm"',className:"form-wrapper",children:t(vt,{onSubmit:n,submit:ze.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:i,children:[e("div",{className:"mb-4 items-center justify-center flex",children:e(Ve,{name:"avatar",initValue:null==i?void 0:i.avatar})}),e(bt,{name:"firstName",type:ft.TEXT,label:ze.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e(bt,{name:"lastName",type:ft.TEXT,label:ze.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e(bt,{name:"email",type:ft.EMAIL,label:ze.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:Lt})]})});ga.displayName="ProfileForm";const ba=o({config:void 0}),Ea=({children:t,value:a})=>(r((()=>{var e,t,i,n,l,r,o,s,d,c,u,m,h,p,v,f,g,b;a.config&&ie.configure({Auth:{region:null===(e=null==a?void 0:a.config)||void 0===e?void 0:e.region,userPoolId:null===(t=null==a?void 0:a.config)||void 0===t?void 0:t.userPoolId,userPoolWebClientId:null===(i=null==a?void 0:a.config)||void 0===i?void 0:i.userPoolWebClientId,signUpVerificationMethod:(null===(n=null==a?void 0:a.config)||void 0===n?void 0:n.signUpVerificationMethod)||"code",oauth:{domain:null===(r=null===(l=null==a?void 0:a.config)||void 0===l?void 0:l.oauth)||void 0===r?void 0:r.domain,scope:(null===(s=null===(o=null==a?void 0:a.config)||void 0===o?void 0:o.oauth)||void 0===s?void 0:s.scope)||["email","profile","openid","aws.cognito.signin.user.admin"],redirectSignIn:null===(c=null===(d=null==a?void 0:a.config)||void 0===d?void 0:d.oauth)||void 0===c?void 0:c.redirectSignIn,redirectSignOut:null===(m=null===(u=null==a?void 0:a.config)||void 0===u?void 0:u.oauth)||void 0===m?void 0:m.redirectSignOut,responseType:(null===(p=null===(h=null==a?void 0:a.config)||void 0===h?void 0:h.oauth)||void 0===p?void 0:p.responseType)||"code"},cookieStorage:{domain:null===(f=null===(v=null==a?void 0:a.config)||void 0===v?void 0:v.cookieStorage)||void 0===f?void 0:f.domain,secure:null===(b=null===(g=null==a?void 0:a.config)||void 0===g?void 0:g.cookieStorage)||void 0===b?void 0:b.secure}}})}),[a.config]),e(ba.Provider,{value:a,children:t})),Na=({testID:a,children:i,showHeader:n=!0,showFooter:l=!0,image:r,showOverlay:o=!0,isFlush:s})=>t("div",{"data-testid":a||'"Screen"',className:"h-full flex flex-1 flex-col min-h-full overflow-x-hidden",children:[n&&e(Qt,{className:u({"fixed top-0 left-0 right-0 bg-opacity-50 dark:bg-opacity-50 z-50":s})}),t("main",{className:u("relative flex flex-1",{"pt-24 md:pt-32 lg:pt-40":r},{"pt-8 md:pt-12 lg:pt-12":!r&&!s}),children:[r&&t("div",{className:"absolute w-full aspect-[16/5] opacity-50 z-0 top-0 left-0 right-0",children:[e(ke,{src:r,alt:"background",sizes:"100vw",style:{objectFit:"cover"}}),o&&e("div",{className:"absolute w-full h-full bg-gradient-to-b from-transparent to-bodyBackground dark:to-darkBodyBackground"})]}),e(Ct,{padded:!s,isFlush:s,children:e("div",{className:"flex flex-col gap-8",children:i})})]}),l&&e(Xt,{})]});Na.displayName="Screen";const ya=({testID:a,title:i,image:n,user:l,logoutCallback:r,menu:o})=>{var s;const d=it();return t(Na,{"data-testid":a||"AccountScreen",image:n,children:[i&&e(pt,{text:i}),t("div",{children:[e("div",{className:"flex items-center justify-center",children:e(Ve,{initValue:null===(s=null==l?void 0:l.profile)||void 0===s?void 0:s.picture,isEditable:!1})}),o&&e("div",{children:e(Pe,{className:"flex items-center flex-col justify-center gap-2",children:null==o?void 0:o.map(((t,a)=>e(Fe,{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:[t("div",{className:"flex items-center flex-col justify-center gap-1",children:[e(xe,{tag:Te.H5,flush:!0,children:d.UI.SHARE}),t("div",{className:"flex gap-2",children:[e(L,{url:process.env.APP_SHARE_URL,children:e(se,{name:"mdi:facebook"})}),e(x,{url:process.env.APP_SHARE_URL,children:e(se,{name:"mdi:twitter"})}),e(D,{url:process.env.APP_SHARE_URL,children:e(se,{name:"mdi:linkedin"})}),e(w,{url:process.env.APP_SHARE_URL,children:e(se,{name:"mdi:whatsapp"})})]})]}),e(pe,{onClick:r,icon:"mdi:logout",children:null==d?void 0:d.UI.LOGOUT})]})]})]})};ya.displayName="AccountScreen";const Sa=({testID:a,title:i,image:n,formProps:l})=>t(Na,{"data-testid":a||"AuthScreen",image:n,children:[i&&e(pt,{text:i}),e("div",{className:"flex justify-center",children:e(_t,Object.assign({},l))})]});Sa.displayName="AuthScreen";const Aa=({testID:a,title:i,image:n,data:l,onPressCallback:r,isLoading:o})=>t(Na,{"data-testid":a||"CardGridScreen",image:n,children:[i&&e(pt,{text:i}),t("div",{children:[o&&e("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e(he,{})}),l&&e(Vt,{data:l,onPressCallback:r})]})]});Aa.displayName="CardGridScreen";const Ca=({testID:a,title:i,image:n,searchProps:l})=>t(Na,{"data-testid":a||"CatalogueScreen",image:n,children:[i&&e(pt,{text:i}),e("div",{children:e(ma,Object.assign({},l))})]});Ca.displayName="CatalogueScreen";const Oa=({testID:a,title:i,image:n,data:l,isLoading:r,onPressCallback:o})=>t(Na,{"data-testid":a||"ChallengeLibraryScreen",image:n,children:[i&&e(pt,{text:i}),r&&e("div",{className:"",children:e(he,{})}),l&&e("div",{children:e(Vt,{data:l,onPressCallback:o})})]});Oa.displayName="ChallengeLibraryScreen";const Ia="MMMM dd, yyyy",Ta="HH:mm",Ra=({testID:a,title:i,image:l,created:r=0,body:o,days:s,price:d,puchaseLabel:c,hasAccess:u=!1,onPressCallback:m,purchaseCallback:h})=>{const p=it(),v=n((()=>ne(new Date(1e3*r),Ia)),[r]);return t(Na,{"data-testid":a||"ChallengeScreen",image:l,children:[t("div",{children:[i&&e(pt,{text:i}),t(De,{children:[p.UI.CREATED,": ",v]}),!u&&t("div",{className:"flex flex-col gap-2 mb-4",children:[e(Ce,{bold:!0,className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e(Ce,{className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e("div",{children:e(pe,{variant:ue.PRIMARY,onClick:h,children:c})}),t(Ce,{size:Se.SMALL,className:"mb-0",children:["** ",p.GLOBAL.SCREENS.CHALLENGE.PAYMENT_NOTE]})]})]}),e("div",{children:o&&e(Xe,{data:o})}),e("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:null==s?void 0:s.map((t=>e(ht,{variant:Jt.MEDIA,data:{id:t.id,title:t.title,image:{src:t.image,alt:t.title},raised:!0,onClick:u?()=>m(t.id):void 0,accessRestriced:!u}},t.id)))})]})};Ra.displayName="ChallengeScreen";const La=({testID:a,title:i,image:n,updated:l,content:r})=>{var o;const s=it(),d=l?ne(new Date(1e3*l),"MMMM dd, yyyy HH:mm"):void 0;return t(Na,{"data-testid":a||"ContentScreen",image:n,children:[i&&e(pt,{text:i}),l&&e("div",{children:t(Ce,{children:[null===(o=null==s?void 0:s.UI)||void 0===o?void 0:o.UPDATED,": ",d]})}),e("div",{children:e(Xe,{data:r})})]})};La.displayName="ContentScreen";const xa=({testID:a,title:i,image:n,user:l,latestData:r,recentdata:o,stats:s,promo:d,news:c,statsIsLoading:u,promosIsLoading:m,dataIsLoading:h,handleLatestDataPress:p,handleRecentDataPress:v,handleNewsDataPress:f})=>{var g,b,E,N,y,S;const A=it();return t(Na,{"data-testid":a||"DashboardScreen",image:n,children:[i&&e(pt,{text:i}),e("div",{children:t(Ce,{children:[null===(g=null==A?void 0:A.UI)||void 0===g?void 0:g.WELCOME," ",null==l?void 0:l.name]})}),u&&e("div",{children:e(he,{})}),!u&&s&&t("div",{className:"mb-8",children:[e(xe,{tag:Te.H4,children:null===(b=null==A?void 0:A.UI)||void 0===b?void 0:b.ACTIVITY}),e("div",{className:"flex flex-row gap-4",children:s.map(((t,a)=>e("div",{children:e(ht,{variant:t.variant,data:t.data})},`${t.data.id}-${a}`)))})]}),h&&e("div",{children:e(he,{})}),!h&&r&&t("div",{children:[e(xe,{tag:Te.H4,children:null===(E=null==A?void 0:A.UI)||void 0===E?void 0:E.LATEST_WORKOUTS}),e("div",{children:e(Ut,{data:r,onPressCallback:p,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),m&&e("div",{children:e(he,{})}),!m&&d&&t("div",{children:[e(xe,{tag:Te.H4,flush:!0,children:null===(N=null==A?void 0:A.UI)||void 0===N?void 0:N.WHATS_NEWS}),e(Wt,Object.assign({},d,{withBg:!0,spacing:Ft.ATOM}))]}),h&&e("div",{children:e(he,{})}),!h&&o&&t("div",{children:[e(xe,{tag:Te.H4,children:null===(y=null==A?void 0:A.UI)||void 0===y?void 0:y.RECENTLY_ADDED}),e("div",{children:e(Ut,{data:o,onPressCallback:v,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),m&&e("div",{children:e(he,{})}),!m&&c&&t("div",{children:[e(xe,{tag:Te.H4,children:null===(S=null==A?void 0:A.UI)||void 0===S?void 0:S.WHATS_NEW}),e("div",{children:e(Ut,{data:c,onPressCallback:f,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]})]})};xa.displayName="DashboardScreen";const wa=({title:a,isOpen:i})=>t("div",{className:u("flex flex-row items-center justify-between p-2 border border-solid border-tertiary transition-all rounded mb-2",{"bg-tertiary":i}),children:[e(xe,{flush:!0,tag:Te.H4,className:u("transition-all",{"text-white":i}),children:a}),e("div",{className:"",children:e(se,{name:i?"mdi:chevron-up":"mdi:chevron-down"})})]}),ka=({testID:t,data:a,titleKey:i="title",contentKey:n="content"})=>e("div",{"data-testid":t||'"Accordion"',children:a.map((t=>e(le,{triggerTagName:"div",easing:"ease-out",triggerWhenOpen:e(wa,{title:t[i],isOpen:!0}),trigger:e(wa,{title:t[i],isOpen:!1}),children:e("div",{className:"p-2",children:e(Ce,{children:t[n]})})},t[i])))});ka.displayName="Accordion";const Da=({testID:a,title:i,image:n,data:l,isLoading:r})=>t(Na,{"data-testid":a||"FAQScreen",image:n,children:[i&&e(pt,{text:i}),!l&&r&&e("div",{className:"flex flex-1 items-center justify-center min-h-[125px]",children:e(he,{})}),l&&e(ka,{data:null==l?void 0:l.map((e=>({title:e.title||"",content:e.answer||""})))})]});Da.displayName="FAQScreen";const _a=({testID:a,image:i,panelVideoProps:n,panelFeatureProps:l,panelCardsProps:r,panelHerosProps:o,panelDataCardsProps:s,panelProductProps:d})=>t(Na,{"data-testid":a||"HomeScreen",image:i,isFlush:!0,children:[n&&e(zt,Object.assign({},n)),t(Ct,{children:[l&&e(jt,Object.assign({},l)),r&&e(Bt,Object.assign({},r)),null==o?void 0:o.map(((t,a)=>e(Wt,Object.assign({},t),a))),s&&e(Bt,Object.assign({},s)),d&&e(Gt,Object.assign({},d))]})]});_a.displayName="HomeScreen";const Ma=({testID:a,title:i,image:n,menu:l,isLoading:r=!1})=>t(Na,{"data-testid":a||"MenuScreen",image:n,children:[i&&e(pt,{text:i}),r&&e("div",{className:"flex flex-1 justify-center items-center min-h-[125px]",children:e(he,{})}),l&&e(Pe,{children:l.map((t=>e(Fe,{as:"div",icon:t.icon,onClick:t.onPress,title:t.title},t.title)))})]});Ma.displayName="MenuScreen";const Pa=({testID:a,title:i,image:n,user:l,handleProfileSubmit:r})=>t(Na,{"data-testid":a||"ProfileScreen",image:n,children:[i&&e(pt,{text:i}),e(ga,{initialValues:null==l?void 0:l.profile,handleSubmit:r})]});Pa.displayName="ProfileScreen";const Ua=({testID:a,end:i,live:l,start:r,title:o})=>{const s=n((()=>ne(new Date(1e3*r),Ia)),[r]),d=n((()=>ne(new Date(1e3*r),Ta)),[r]),c=n((()=>ne(new Date(1e3*i),Ta)),[i]);return t("div",{"data-testid":a||'"ScheduleItem"',className:"foo-bar",children:[e(xe,{tag:Te.H4,children:o}),t(De,{children:[s,": ",d," - ",c]}),l&&e("div",{children:e(Ht,{url:l,isYoutube:!0})})]})};Ua.displayName="ScheduleItem";const Fa=({testID:a,raised:l=!1,scheduleItems:o,hasAccess:s})=>{var d,c,u,m;const h=it(),[p,v]=i.useState(0),[f,g]=i.useState([]),b=n((()=>{var t;return null===(t=null==o?void 0:o.days)||void 0===t?void 0:t.map(((t,a)=>{var i,n;const l=Object.keys(t)[0],r=null===(i=t[l])||void 0===i?void 0:i[0];return r?{day:l.charAt(0).toUpperCase()+l.slice(1),component:e(Ua,{title:r.title,live:r.live,start:r.start,end:r.end})}:{day:l.charAt(0).toUpperCase()+l.slice(1),component:e("div",{children:e(xe,{tag:Te.H4,children:null===(n=null==h?void 0:h.UI)||void 0===n?void 0:n.NO_CLASS})})}}))}),[o]);r((()=>{const e=function(){const e=new Date,t=e.getDay(),a=new Date(e);a.setDate(e.getDate()-t);const i=[];for(let t=0;t<7;t++){const n=new Date(a);n.setDate(a.getDate()+t),i.push({date:n,isToday:n.toDateString()===e.toDateString()})}return i}(),t=e.findIndex((e=>e.isToday));v(t),g(e)}),[]);const E=n((()=>f.map(((e,t)=>{const a=e.date.toLocaleString("en-US",{weekday:"short"}),i=e.date.toLocaleString("en-US",{day:"numeric"}),n=p===t;return{variant:Jt.BASIC,data:{id:`${t}`,title:a,description:i,raised:!0},className:n?"bg-tertiary":"bg-bodyBackground"}}))),[f,p]),N=n((()=>null==b?void 0:b.find((e=>{var t;return e.day===(null===(t=null==f?void 0:f[p])||void 0===t?void 0:t.date.toLocaleString("en-US",{weekday:"long"}))}))),[b,f,p]);return t("div",{"data-testid":a||'"Schedule"',children:[t("div",{children:[e(xe,{tag:Te.H5,transform:Le.UPPERCASE,children:null===(d=null==h?void 0:h.UI)||void 0===d?void 0:d.THIS_WEEK}),e("div",{children:e(Ut,{data:E,onPressCallback:e=>{v(Number(e))},count:7,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500,onSnapToItem:()=>{},shouldScrollOnClick:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:7}},{breakpoint:600,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:3}}]}})})]}),t("div",{children:[e(xe,{tag:Te.H5,transform:Le.UPPERCASE,children:null===(c=null==h?void 0:h.UI)||void 0===c?void 0:c.TODAYS_ITEMS}),!s&&t("div",{children:[e(xe,{tag:Te.H2,children:null===(u=null==h?void 0:h.UI)||void 0===u?void 0:u.ACCESS_RESTRICTED}),e(Ce,{children:null===(m=null==h?void 0:h.UI)||void 0===m?void 0:m.UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE})]}),s&&(null==N?void 0:N.component)]})]})};Fa.displayName="Schedule";const Ba=({testID:a,title:i,image:n,scheduleData:l,isLoading:r=!1})=>t(Na,{"data-testid":a||"ScheduleScreen",image:n,children:[i&&e(pt,{text:i}),!l&&r&&e("div",{className:"flex flex-1 justify-center items-center min-h-[125px]",children:e(he,{})}),l&&e("div",{children:e(Fa,Object.assign({},l))})]});Ba.displayName="ScheduleScreen";const ja=({testID:a,initialValues:i,handleSubmit:n,isDisabled:l=!0})=>{const r=it();return e("div",{"data-testid":a||'"SubscriptionForm"',className:"form-wrapper",children:t(vt,{onSubmit:n,isDisabled:l,disabledSubmitWithReturn:!0,initialValues:i,children:[e(bt,{name:"status",type:ft.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_STATUS_LABEL,disabled:l}),e(bt,{name:"plan",type:ft.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_PLAN_LABEL,disabled:l}),e(bt,{name:"price",type:ft.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_PRICE_LABEL,disabled:l}),e(bt,{name:"billingDate",type:ft.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_BILLING_DATE_LABEL,required:!0,disabled:l})]})})};ja.displayName="SubscriptionForm";const Ha=({testID:a,title:i,image:n,user:l,handleSubscriptionSubmit:r,subscriptionCallback:o})=>{var s,d,c,u;const m=it();return t(Na,{"data-testid":a||"SubscriptionScreen",image:n,children:[i&&e(pt,{text:i}),!(null===(s=null==l?void 0:l.subscription)||void 0===s?void 0:s.status)&&e(Ct,{padded:!0,children:t("div",{children:[e(xe,{tag:Te.H4,children:m.UI.NO_ACTIVE_SUBSCRIPTION}),e(Ce,{children:null===(d=null==m?void 0:m.UI)||void 0===d?void 0:d.NO_SUBSCRIPTION_DETAILS})]})}),(null===(c=null==l?void 0:l.subscription)||void 0===c?void 0:c.status)&&e("div",{children:e(ja,{initialValues:null==l?void 0:l.subscription,handleSubmit:r})}),o&&e("div",{children:e(pe,{onClick:o,icon:"help",children:null===(u=null==m?void 0:m.UI)||void 0===u?void 0:u.QUESTION})})]})};Ha.displayName="SubscriptionScreen";const Wa=({testID:l,id:r,title:o,image:s,description:d,created:c=0,duration:u="PT0M",level:m,section:h,uuid:p,video:v,category:f,type:g,likeCallback:b,completedCallback:E,favouriteCallback:N,isLiked:y,isCompleted:S,isFavourite:A,relatedWorkouts:C,isLoading:O,hasActiveSubscription:I,htmlDetails:T})=>{var R,L;console.log("video",v);const x=it(),[w,k]=i.useState(!1);i.useState(2);const D=n((()=>ne(new Date(1e3*c),Ia)),[c]),_=n((()=>Ze(u)),[u]);return console.log("video",v),t(Na,{"data-testid":l||"WorkoutScreen",image:s,children:[t("div",{children:[o&&e(pt,{text:o}),e("div",{children:t(De,{children:[x.UI.CREATED,": ",D]})}),e("div",{children:t(De,{children:[x.UI.DURATION,": ",_]})})]}),!I&&t("div",{children:[e(xe,{tag:Te.H4,children:x.UI.NO_ACTIVE_SUBSCRIPTION}),e(Ce,{children:null===(R=null==x?void 0:x.UI)||void 0===R?void 0:R.NO_SUBSCRIPTION_DETAILS})]}),e("div",{children:e(pe,{onClick:()=>{k(!0)},icon:"mdi:play",iconFirst:!0,disabled:!I,children:x.UI.START_WORKOUT})}),t("div",{className:"flex gap-2",children:[e("div",{children:e(pe,{onClick:()=>{r&&b&&"function"==typeof b&&(b(r),re.info(y?x.UI.REMOVED_LIKE:x.UI.ADDED_LIKE))},icon:y?"mdi:heart":"mdi:heart-outline",disabled:!I,rounded:!0})}),e("div",{children:e(pe,{onClick:()=>{r&&N&&"function"==typeof N&&(N(r),re.info(A?x.UI.REMOVED_FAVORITE:x.UI.ADDED_FAVORITE))},icon:A?"mdi:bookmark":"mdi:bookmark-outline",disabled:!I,rounded:!0})}),e("div",{children:e(pe,{onClick:()=>{r&&E&&"function"==typeof E&&(E(r),re.info(S?x.UI.MARKED_INCOMPLETE:x.UI.MARKED_COMPLETE))},icon:S?"mdi:battery":"mdi:battery-outline",disabled:!I,rounded:!0})})]}),!T&&d&&e("div",{children:e(Ce,{children:d})}),T&&d&&e("div",{children:e(Xe,{data:d})}),t("div",{className:"flex gap-4 flex-wrap",children:[m&&t(De,{children:[x.UI.LEVEL,": ",m]}),h&&t(De,{children:[x.UI.SECTION,": ",h]}),f&&t(De,{children:[x.UI.CATEGORY,": ",f]}),g&&t(De,{children:[x.UI.TYPE,": ",g]})]}),C&&e(a,{children:e(Ct,{isNarrow:!0,padded:!0,children:e("div",{children:e(xe,{children:null===(L=null==x?void 0:x.UI)||void 0===L?void 0:L.RELATED})})})}),w&&e("div",{className:"opacity-0",children:e(Ht,{fullScreenOnly:!0,options:{autoplay:!0},sources:[{src:v,type:"application/x-mpegURL"}],onExitFullScreenCallback:()=>{console.log("onExitFullScreenCallback exit full screen"),k(!1)}})})]})};Wa.displayName="WorkoutScreen";const Ga={colors:{white:"#FFFFFF",black:"#000000",primary:"#222222",secondary:"#666666",tertiary:"#EEEEEE",accent:"#1FB2A6",neutral:"#191D24",info:"#3ABFF8",success:"#36D399",warning:"#FBBD23",error:"#F87272",opacityDark10:"rgba(0, 0, 0, 0.1)",opacityDark20:"rgba(0, 0, 0, 0.2)",opacityDark30:"rgba(0, 0, 0, 0.3)",opacityDark40:"rgba(0, 0, 0, 0.4)",opacityDark50:"rgba(0, 0, 0, 0.5)",opacityDark60:"rgba(0, 0, 0, 0.6)",opacityDark70:"rgba(0, 0, 0, 0.7)",opacityDark80:"rgba(0, 0, 0, 0.8)",opacityDark90:"rgba(0, 0, 0, 0.9)",opacityLight10:"rgba(255, 255, 255, 0.1)",opacityLight20:"rgba(255, 255, 255, 0.2)",opacityLight30:"rgba(255, 255, 255, 0.3)",opacityLight40:"rgba(255, 255, 255, 0.4)",opacityLight50:"rgba(255, 255, 255, 0.5)",opacityLight60:"rgba(255, 255, 255, 0.6)",opacityLight70:"rgba(255, 255, 255, 0.7)",opacityLight80:"rgba(255, 255, 255, 0.8)",opacityLight90:"rgba(255, 255, 255, 0.9)",primary50:"#F2F2F2",primary100:"#E6E6E6",primary200:"#CCCCCC",primary300:"#B3B3B3",primary400:"#999999",primary500:"#808080",primary600:"#666666",primary700:"#4D4D4D",primary800:"#333333",primary900:"#1A1A1A",secondary50:"#FDFDFD",secondary100:"#FBFBFB",secondary200:"#F8F8F8",secondary300:"#F5F5F5",secondary400:"#F2F2F2",secondary500:"#EFEFEF",secondary600:"#ECECEC",secondary700:"#E9E9E9",secondary800:"#E6E6E6",secondary900:"#E3E3E3",tertiary50:"#F8F8F8",tertiary100:"#F1F1F1",tertiary200:"#EAEAEA",tertiary300:"#E3E3E3",tertiary400:"#DCDCDC",tertiary500:"#D5D5D5",tertiary600:"#CECECE",tertiary700:"#C7C7C7",tertiary800:"#C0C0C0",tertiary900:"#B9B9B9",accent50:"#E5F8F6",accent100:"#CCEFF0",accent200:"#B2E6E6",accent300:"#99DDDD",accent400:"#7FD4D4",accent500:"#66CBCB",accent600:"#4DB2B2",accent700:"#339999",accent800:"#1A8080",accent900:"#006666",neutral50:"#F8F8F8",neutral100:"#F1F1F1",neutral200:"#EAEAEA",neutral300:"#E3E3E3",neutral400:"#DCDCDC",neutral500:"#D5D5D5",neutral600:"#CECECE",neutral700:"#C7C7C7",neutral800:"#C0C0C0",neutral900:"#B9B9B9",info50:"#E6F9FD",info100:"#CFF3FB",info200:"#B8EDF8",info300:"#A1E7F6",info400:"#8AE1F3",info500:"#73DBF1",info600:"#5CC5DA",info700:"#469EB3",info800:"#2F788C",info900:"#195165",success50:"#E6FDEE",success100:"#CFFBDD",success200:"#B8F8CC",success300:"#A1F6BB",success400:"#8AEDAA",success500:"#73E499",success600:"#5CC482",success700:"#469E6C",success800:"#2F784F",success900:"#195133",warning50:"#FEF9E6",warning100:"#FDF3CD",warning200:"#FCECB4",warning300:"#FBDF8B",warning400:"#FAD262",warning500:"#F9C639",warning600:"#E0AD32",warning700:"#B78C27",warning800:"#8E6B1D",warning900:"#654A13",error50:"#FCE6E6",error100:"#F9CDCD",error200:"#F6B4B4",error300:"#F29999",error400:"#EF8080",error500:"#EC6666",error600:"#D95252",error700:"#B34040",error800:"#8E2E2E",error900:"#6B1B1B",grey50:"#F8F8F8",grey100:"#F1F1F1",grey200:"#EAEAEA",grey300:"#E3E3E3",grey400:"#DCDCDC",grey500:"#C0C0C0",grey600:"#A9A9A9",grey700:"#8C8C8C",grey800:"#666666",grey900:"#404040",purple50:"#ede9f4",purple100:"#c8b9de",purple200:"#ae98ce",purple300:"#8968b7",purple400:"#724ba9",purple500:"#4f1e94",purple600:"#481b87",purple700:"#381569",purple800:"#2b1151",purple900:"#210d3e"},screens:{sm:"480px",md:"768px",lg:"976px",xl:"1440px"},spacing:{px:"1px",0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",11:"2.75rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem",40:"10rem",48:"12rem",56:"14rem",64:"16rem",128:"32rem"},borderRadius:{none:"0",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"3.25rem"}],"6xl":["3.75rem",{lineHeight:"4rem"}],"7xl":["4.5rem",{lineHeight:"5rem"}],"8xl":["6rem",{lineHeight:"7rem"}],"9xl":["8rem",{lineHeight:"9rem"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},extend:{gridTemplateColumns:{headerMd:"200px auto 200px",headerSd:"125px auto 125px",headerXs:"auto 175px",searchLayout:"1fr",searchLayoutWithSidebar:"1fr 3fr"}}};function za(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Va={exports:{}},Ya={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},qa={exports:{}},Ka=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))},$a=Array.prototype.concat,Xa=Array.prototype.slice,Qa=qa.exports=function(e){for(var t=[],a=0,i=e.length;a<i;a++){var n=e[a];Ka(n)?t=$a.call(t,Xa.call(n)):t.push(n)}return t};Qa.wrap=function(e){return function(){return e(Qa(arguments))}};var Za=qa.exports,Ja=Ya,ei=Za,ti=Object.hasOwnProperty,ai=Object.create(null);for(var ii in Ja)ti.call(Ja,ii)&&(ai[Ja[ii]]=ii);var ni=Va.exports={to:{},get:{}};function li(e,t,a){return Math.min(Math.max(t,e),a)}function ri(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}ni.get=function(e){var t,a;switch(e.substring(0,3).toLowerCase()){case"hsl":t=ni.get.hsl(e),a="hsl";break;case"hwb":t=ni.get.hwb(e),a="hwb";break;default:t=ni.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},ni.get.rgb=function(e){if(!e)return null;var t,a,i,n=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],a=0;a<3;a++){var l=2*a;n[a]=parseInt(t.slice(l,l+2),16)}i&&(n[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],a=0;a<3;a++)n[a]=parseInt(t[a]+t[a],16);i&&(n[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)n[a]=parseInt(t[a+1],0);t[4]&&(t[5]?n[3]=.01*parseFloat(t[4]):n[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:ti.call(Ja,t[1])?((n=Ja[t[1]])[3]=1,n):null:null;for(a=0;a<3;a++)n[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(t[5]?n[3]=.01*parseFloat(t[4]):n[3]=parseFloat(t[4]))}for(a=0;a<3;a++)n[a]=li(n[a],0,255);return n[3]=li(n[3],0,1),n},ni.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,li(parseFloat(t[2]),0,100),li(parseFloat(t[3]),0,100),li(isNaN(a)?1:a,0,1)]}return null},ni.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,li(parseFloat(t[2]),0,100),li(parseFloat(t[3]),0,100),li(isNaN(a)?1:a,0,1)]}return null},ni.to.hex=function(){var e=ei(arguments);return"#"+ri(e[0])+ri(e[1])+ri(e[2])+(e[3]<1?ri(Math.round(255*e[3])):"")},ni.to.rgb=function(){var e=ei(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},ni.to.rgb.percent=function(){var e=ei(arguments),t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+a+"%, "+i+"%)":"rgba("+t+"%, "+a+"%, "+i+"%, "+e[3]+")"},ni.to.hsl=function(){var e=ei(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},ni.to.hwb=function(){var e=ei(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},ni.to.keyword=function(e){return ai[e.slice(0,3)]};var oi=Va.exports;const si=Ya,di={};for(const e of Object.keys(si))di[si[e]]=e;const ci={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var ui=ci;for(const e of Object.keys(ci)){if(!("channels"in ci[e]))throw new Error("missing channels property: "+e);if(!("labels"in ci[e]))throw new Error("missing channel labels property: "+e);if(ci[e].labels.length!==ci[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:a}=ci[e];delete ci[e].channels,delete ci[e].labels,Object.defineProperty(ci[e],"channels",{value:t}),Object.defineProperty(ci[e],"labels",{value:a})}ci.rgb.hsl=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,n=Math.min(t,a,i),l=Math.max(t,a,i),r=l-n;let o,s;l===n?o=0:t===l?o=(a-i)/r:a===l?o=2+(i-t)/r:i===l&&(o=4+(t-a)/r),o=Math.min(60*o,360),o<0&&(o+=360);const d=(n+l)/2;return s=l===n?0:d<=.5?r/(l+n):r/(2-l-n),[o,100*s,100*d]},ci.rgb.hsv=function(e){let t,a,i,n,l;const r=e[0]/255,o=e[1]/255,s=e[2]/255,d=Math.max(r,o,s),c=d-Math.min(r,o,s),u=function(e){return(d-e)/6/c+.5};return 0===c?(n=0,l=0):(l=c/d,t=u(r),a=u(o),i=u(s),r===d?n=i-a:o===d?n=1/3+t-i:s===d&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*l,100*d]},ci.rgb.hwb=function(e){const t=e[0],a=e[1];let i=e[2];const n=ci.rgb.hsl(e)[0],l=1/255*Math.min(t,Math.min(a,i));return i=1-1/255*Math.max(t,Math.max(a,i)),[n,100*l,100*i]},ci.rgb.cmyk=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,n=Math.min(1-t,1-a,1-i);return[100*((1-t-n)/(1-n)||0),100*((1-a-n)/(1-n)||0),100*((1-i-n)/(1-n)||0),100*n]},ci.rgb.keyword=function(e){const t=di[e];if(t)return t;let a,i=1/0;for(const t of Object.keys(si)){const r=(l=si[t],((n=e)[0]-l[0])**2+(n[1]-l[1])**2+(n[2]-l[2])**2);r<i&&(i=r,a=t)}var n,l;return a},ci.keyword.rgb=function(e){return si[e]},ci.rgb.xyz=function(e){let t=e[0]/255,a=e[1]/255,i=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;return[100*(.4124*t+.3576*a+.1805*i),100*(.2126*t+.7152*a+.0722*i),100*(.0193*t+.1192*a+.9505*i)]},ci.rgb.lab=function(e){const t=ci.rgb.xyz(e);let a=t[0],i=t[1],n=t[2];a/=95.047,i/=100,n/=108.883,a=a>.008856?a**(1/3):7.787*a+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*i-16,500*(a-i),200*(i-n)]},ci.hsl.rgb=function(e){const t=e[0]/360,a=e[1]/100,i=e[2]/100;let n,l,r;if(0===a)return r=255*i,[r,r,r];n=i<.5?i*(1+a):i+a-i*a;const o=2*i-n,s=[0,0,0];for(let e=0;e<3;e++)l=t+1/3*-(e-1),l<0&&l++,l>1&&l--,r=6*l<1?o+6*(n-o)*l:2*l<1?n:3*l<2?o+(n-o)*(2/3-l)*6:o,s[e]=255*r;return s},ci.hsl.hsv=function(e){const t=e[0];let a=e[1]/100,i=e[2]/100,n=a;const l=Math.max(i,.01);i*=2,a*=i<=1?i:2-i,n*=l<=1?l:2-l;return[t,100*(0===i?2*n/(l+n):2*a/(i+a)),100*((i+a)/2)]},ci.hsv.rgb=function(e){const t=e[0]/60,a=e[1]/100;let i=e[2]/100;const n=Math.floor(t)%6,l=t-Math.floor(t),r=255*i*(1-a),o=255*i*(1-a*l),s=255*i*(1-a*(1-l));switch(i*=255,n){case 0:return[i,s,r];case 1:return[o,i,r];case 2:return[r,i,s];case 3:return[r,o,i];case 4:return[s,r,i];case 5:return[i,r,o]}},ci.hsv.hsl=function(e){const t=e[0],a=e[1]/100,i=e[2]/100,n=Math.max(i,.01);let l,r;r=(2-a)*i;const o=(2-a)*n;return l=a*n,l/=o<=1?o:2-o,l=l||0,r/=2,[t,100*l,100*r]},ci.hwb.rgb=function(e){const t=e[0]/360;let a=e[1]/100,i=e[2]/100;const n=a+i;let l;n>1&&(a/=n,i/=n);const r=Math.floor(6*t),o=1-i;l=6*t-r,1&r&&(l=1-l);const s=a+l*(o-a);let d,c,u;switch(r){default:case 6:case 0:d=o,c=s,u=a;break;case 1:d=s,c=o,u=a;break;case 2:d=a,c=o,u=s;break;case 3:d=a,c=s,u=o;break;case 4:d=s,c=a,u=o;break;case 5:d=o,c=a,u=s}return[255*d,255*c,255*u]},ci.cmyk.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n)),255*(1-Math.min(1,i*(1-n)+n))]},ci.xyz.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100;let n,l,r;return n=3.2406*t+-1.5372*a+-.4986*i,l=-.9689*t+1.8758*a+.0415*i,r=.0557*t+-.204*a+1.057*i,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=Math.min(Math.max(0,n),1),l=Math.min(Math.max(0,l),1),r=Math.min(Math.max(0,r),1),[255*n,255*l,255*r]},ci.xyz.lab=function(e){let t=e[0],a=e[1],i=e[2];t/=95.047,a/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*a-16,500*(t-a),200*(a-i)]},ci.lab.xyz=function(e){let t,a,i;a=(e[0]+16)/116,t=e[1]/500+a,i=a-e[2]/200;const n=a**3,l=t**3,r=i**3;return a=n>.008856?n:(a-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,i=r>.008856?r:(i-16/116)/7.787,t*=95.047,a*=100,i*=108.883,[t,a,i]},ci.lab.lch=function(e){const t=e[0],a=e[1],i=e[2];let n;n=360*Math.atan2(i,a)/2/Math.PI,n<0&&(n+=360);return[t,Math.sqrt(a*a+i*i),n]},ci.lch.lab=function(e){const t=e[0],a=e[1],i=e[2]/360*2*Math.PI;return[t,a*Math.cos(i),a*Math.sin(i)]},ci.rgb.ansi16=function(e,t=null){const[a,i,n]=e;let l=null===t?ci.rgb.hsv(e)[2]:t;if(l=Math.round(l/50),0===l)return 30;let r=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(a/255));return 2===l&&(r+=60),r},ci.hsv.ansi16=function(e){return ci.rgb.ansi16(ci.hsv.rgb(e),e[2])},ci.rgb.ansi256=function(e){const t=e[0],a=e[1],i=e[2];if(t===a&&a===i)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(i/255*5)},ci.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const a=.5*(1+~~(e>50));return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},ci.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},ci.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},ci.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let a=t[0];3===t[0].length&&(a=a.split("").map((e=>e+e)).join(""));const i=parseInt(a,16);return[i>>16&255,i>>8&255,255&i]},ci.rgb.hcg=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,n=Math.max(Math.max(t,a),i),l=Math.min(Math.min(t,a),i),r=n-l;let o,s;return o=r<1?l/(1-r):0,s=r<=0?0:n===t?(a-i)/r%6:n===a?2+(i-t)/r:4+(t-a)/r,s/=6,s%=1,[360*s,100*r,100*o]},ci.hsl.hcg=function(e){const t=e[1]/100,a=e[2]/100,i=a<.5?2*t*a:2*t*(1-a);let n=0;return i<1&&(n=(a-.5*i)/(1-i)),[e[0],100*i,100*n]},ci.hsv.hcg=function(e){const t=e[1]/100,a=e[2]/100,i=t*a;let n=0;return i<1&&(n=(a-i)/(1-i)),[e[0],100*i,100*n]},ci.hcg.rgb=function(e){const t=e[0]/360,a=e[1]/100,i=e[2]/100;if(0===a)return[255*i,255*i,255*i];const n=[0,0,0],l=t%1*6,r=l%1,o=1-r;let s=0;switch(Math.floor(l)){case 0:n[0]=1,n[1]=r,n[2]=0;break;case 1:n[0]=o,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=r;break;case 3:n[0]=0,n[1]=o,n[2]=1;break;case 4:n[0]=r,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=o}return s=(1-a)*i,[255*(a*n[0]+s),255*(a*n[1]+s),255*(a*n[2]+s)]},ci.hcg.hsv=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);let i=0;return a>0&&(i=t/a),[e[0],100*i,100*a]},ci.hcg.hsl=function(e){const t=e[1]/100,a=e[2]/100*(1-t)+.5*t;let i=0;return a>0&&a<.5?i=t/(2*a):a>=.5&&a<1&&(i=t/(2*(1-a))),[e[0],100*i,100*a]},ci.hcg.hwb=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],100*(a-t),100*(1-a)]},ci.hwb.hcg=function(e){const t=e[1]/100,a=1-e[2]/100,i=a-t;let n=0;return i<1&&(n=(a-i)/(1-i)),[e[0],100*i,100*n]},ci.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},ci.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},ci.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},ci.gray.hsl=function(e){return[0,0,e[0]]},ci.gray.hsv=ci.gray.hsl,ci.gray.hwb=function(e){return[0,100,e[0]]},ci.gray.cmyk=function(e){return[0,0,0,e[0]]},ci.gray.lab=function(e){return[e[0],0,0]},ci.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},ci.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const mi=ui;function hi(e){const t=function(){const e={},t=Object.keys(mi);for(let a=t.length,i=0;i<a;i++)e[t[i]]={distance:-1,parent:null};return e}(),a=[e];for(t[e].distance=0;a.length;){const e=a.pop(),i=Object.keys(mi[e]);for(let n=i.length,l=0;l<n;l++){const n=i[l],r=t[n];-1===r.distance&&(r.distance=t[e].distance+1,r.parent=e,a.unshift(n))}}return t}function pi(e,t){return function(a){return t(e(a))}}function vi(e,t){const a=[t[e].parent,e];let i=mi[t[e].parent][e],n=t[e].parent;for(;t[n].parent;)a.unshift(t[n].parent),i=pi(mi[t[n].parent][n],i),n=t[n].parent;return i.conversion=a,i}const fi=ui,gi=function(e){const t=hi(e),a={},i=Object.keys(t);for(let e=i.length,n=0;n<e;n++){const e=i[n];null!==t[e].parent&&(a[e]=vi(e,t))}return a},bi={};Object.keys(fi).forEach((e=>{bi[e]={},Object.defineProperty(bi[e],"channels",{value:fi[e].channels}),Object.defineProperty(bi[e],"labels",{value:fi[e].labels});const t=gi(e);Object.keys(t).forEach((a=>{const i=t[a];bi[e][a]=function(e){const t=function(...t){const a=t[0];if(null==a)return a;a.length>1&&(t=a);const i=e(t);if("object"==typeof i)for(let e=i.length,t=0;t<e;t++)i[t]=Math.round(i[t]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}(i),bi[e][a].raw=function(e){const t=function(...t){const a=t[0];return null==a?a:(a.length>1&&(t=a),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)}))}));const Ei=oi,Ni=bi,yi=["keyword","gray","hex"],Si={};for(const e of Object.keys(Ni))Si[[...Ni[e].labels].sort().join("")]=e;const Ai={};function Ci(e,t){if(!(this instanceof Ci))return new Ci(e,t);if(t&&t in yi&&(t=null),t&&!(t in Ni))throw new Error("Unknown model: "+t);let a,i;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Ci)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=Ei.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,i=Ni[this.model].channels,this.color=t.value.slice(0,i),this.valpha="number"==typeof t.value[i]?t.value[i]:1}else if(e.length>0){this.model=t||"rgb",i=Ni[this.model].channels;const a=Array.prototype.slice.call(e,0,i);this.color=Ri(a,i),this.valpha="number"==typeof e[i]?e[i]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const i=t.sort().join("");if(!(i in Si))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Si[i];const{labels:n}=Ni[this.model],l=[];for(a=0;a<n.length;a++)l.push(e[n[a]]);this.color=Ri(l)}if(Ai[this.model])for(i=Ni[this.model].channels,a=0;a<i;a++){const e=Ai[this.model][a];e&&(this.color[a]=e(this.color[a]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Ci.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Ei.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const a=1===t.valpha?t.color:[...t.color,this.valpha];return Ei.to[t.model](a)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),a=1===t.valpha?t.color:[...t.color,this.valpha];return Ei.to.rgb.percent(a)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Ni[this.model],{labels:a}=Ni[this.model];for(let i=0;i<t;i++)e[a[i]]=this.color[i];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new Ci([...this.color.map(Oi(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new Ci([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Ii("rgb",0,Ti(255)),green:Ii("rgb",1,Ti(255)),blue:Ii("rgb",2,Ti(255)),hue:Ii(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:Ii("hsl",1,Ti(100)),lightness:Ii("hsl",2,Ti(100)),saturationv:Ii("hsv",1,Ti(100)),value:Ii("hsv",2,Ti(100)),chroma:Ii("hcg",1,Ti(100)),gray:Ii("hcg",2,Ti(100)),white:Ii("hwb",1,Ti(100)),wblack:Ii("hwb",2,Ti(100)),cyan:Ii("cmyk",0,Ti(100)),magenta:Ii("cmyk",1,Ti(100)),yellow:Ii("cmyk",2,Ti(100)),black:Ii("cmyk",3,Ti(100)),x:Ii("xyz",0,Ti(95.047)),y:Ii("xyz",1,Ti(100)),z:Ii("xyz",2,Ti(108.833)),l:Ii("lab",0,Ti(100)),a:Ii("lab",1),b:Ii("lab",2),keyword(e){return void 0!==e?new Ci(e):Ni[this.model].keyword(this.color)},hex(e){return void 0!==e?new Ci(e):Ei.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new Ci(e);const t=this.rgb().round().color;let a=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===a.length&&(a="0"+a),Ei.to.hex(t)+a},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[a,i]of e.entries()){const e=i/255;t[a]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),a=e.luminosity();return t>a?(t+.05)/(a+.05):(a+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return Ci.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let a=t.color[0];return a=(a+e)%360,a=a<0?360+a:a,t.color[0]=a,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const a=e.rgb(),i=this.rgb(),n=void 0===t?.5:t,l=2*n-1,r=a.alpha()-i.alpha(),o=((l*r==-1?l:(l+r)/(1+l*r))+1)/2,s=1-o;return Ci.rgb(o*a.red()+s*i.red(),o*a.green()+s*i.green(),o*a.blue()+s*i.blue(),a.alpha()*n+i.alpha()*(1-n))}};for(const e of Object.keys(Ni)){if(yi.includes(e))continue;const{channels:t}=Ni[e];Ci.prototype[e]=function(...t){return this.model===e?new Ci(this):t.length>0?new Ci(t,e):new Ci([...(a=Ni[this.model][e].raw(this.color),Array.isArray(a)?a:[a]),this.valpha],e);var a},Ci[e]=function(...a){let i=a[0];return"number"==typeof i&&(i=Ri(a,t)),new Ci(i,e)}}function Oi(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function Ii(e,t,a){e=Array.isArray(e)?e:[e];for(const i of e)(Ai[i]||(Ai[i]=[]))[t]=a;return e=e[0],function(i){let n;return void 0!==i?(a&&(i=a(i)),n=this[e](),n.color[t]=i,n):(n=this[e]().color[t],a&&(n=a(n)),n)}}function Ti(e){return function(t){return Math.max(0,Math.min(e,t))}}function Ri(e,t){for(let a=0;a<t;a++)"number"!=typeof e[a]&&(e[a]=0);return e}var Li=za(Ci);const xi=(e,t)=>Li(e).darken(t).rgb().string(),wi=Object.assign({inherit:"inherit",transparent:"transparent",black:Ga.colors.black,white:Ga.colors.white,bodyBackground:Ga.colors.white,darkBodyBackground:Ga.colors.primary,bodyText:Ga.colors.primary,bodyTextInverted:Ga.colors.primary50,darkBodyText:Ga.colors.primary50,display:Ga.colors.black,darkDisplay:Ga.colors.white},Object.assign({},...Object.keys(Ga.colors).map((e=>{const t=Ga.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,Li(a).lighten(i).rgb().string()),darker:xi(t,.1)}};var a,i})))),ki=Object.assign(Object.assign({},Ga),{colors:Object.assign(Object.assign({},Ga.colors),{primary:"#001e5a",secondary:"#fcb700",tertiary:"#a3b0ca",quaternary:"#0f71b1",primary50:"#e6e9ef",primary100:"#b0b9cc",primary200:"#8a98b3",primary300:"#546890",primary400:"#334b7b",primary500:"#001e5a",primary600:"#001b52",primary700:"#001540",primary800:"#001132",primary900:"#000d26",secondary50:"#fff8e6",secondary100:"#fee9b0",secondary200:"#fede8a",secondary300:"#fdcf54",secondary400:"#fdc533",secondary500:"#fcb700",secondary600:"#e5a700",secondary700:"#b38200",secondary800:"#8b6500",secondary900:"#6a4d00",tertiary50:"#f6f7fa",tertiary100:"#e2e7ef",tertiary200:"#d5dbe7",tertiary300:"#c1cadb",tertiary400:"#b5c0d5",tertiary500:"#a3b0ca",tertiary600:"#94a0b8",tertiary700:"#747d8f",tertiary800:"#5a616f",tertiary900:"#444a55",quaternary50:"#e7f1f7",quaternary100:"#b5d3e7",quaternary200:"#91bedb",quaternary300:"#5ea0cb",quaternary400:"#3f8dc1",quaternary500:"#0f71b1",quaternary600:"#0e67a1",quaternary700:"#0b507e",quaternary800:"#083e61",quaternary900:"#062f4a"}),borderRadius:Object.assign({},Ga.borderRadius),fontWeight:Object.assign(Object.assign({},Ga.fontWeight),{light:"300",normal:"400",bold:"700"})}),Di=(e,t)=>Li(e).darken(t).rgb().string(),_i=Object.assign(Object.assign(Object.assign({},wi),{bodyBackground:ki.colors.primary700,darkBodyBackground:ki.colors.primary800,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(ki.colors).map((e=>{const t=ki.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,Li(a).lighten(i).rgb().string()),darker:Di(t,.1)}};var a,i})))),Mi=Object.assign(Object.assign({},{sans:["sans-serif"],serif:["serif"],mono:["monospace"],display:["monospace","sans-serif"],body:["var(--font-body)"],heading:["var(--font-heading)"]}),{body:["ProximaNova-Regular","sans-serif"],heading:["ProximaNova-Bold","sans-serif"]}),Pi=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),Ui={colors:Object.assign({},_i),fontFamily:Object.assign({},Mi),fontSize:Object.assign({},null==ki?void 0:ki.fontSize),fontWeight:Object.assign({},null==ki?void 0:ki.fontWeight),buttons:Object.assign({},Pi),screens:Object.assign({},null==ki?void 0:ki.screens),borderRadius:Object.assign({},null==ki?void 0:ki.borderRadius),spacing:Object.assign({},null==ki?void 0:ki.spacing),extend:Object.assign({},null==ki?void 0:ki.extend)};export{ya as AccountScreen,ba as AmplifyContext,Ea as AmplifyProvider,oe as AnimationCounter,It as AnimationSet1,tt as AppContext,at as AppProvider,Sa as AuthScreen,_t as Authenticator,Ve as Avatar,me as BTN_SIZES,ce as BTN_TYPES,ue as BTN_VARIANTS,de as Blockquote,pe as Button,Ye as ButtonGroup,Ee as COPY_ALIGN,ye as COPY_CONTEXTUAL,Se as COPY_SIZE,Ae as COPY_TAG,Ne as COPY_TRANSFORM,Yt as CPL_SPACING,Kt as CRL_SIZE,ht as Card,Vt as CardGrid,Aa as CardGridScreen,Jt as CardVariant,Ut as Carousel,Ca as CatalogueScreen,Oa as ChallengeLibraryScreen,Ra as ChallengeScreen,ge as Checkbox,Oe as Chip,Ct as Container,qt as ContentPageLayout,$t as ContentRowsLayout,La as ContentScreen,Ce as Copy,xa as DashboardScreen,pt as DisplayHeading,Da as FAQScreen,ft as FIELD_TYPES,Ie as FileUpload,Xt as Footer,Dt as ForgotPasswordForm,vt as Form,bt as FormField,gt as FormSelect,Re as HEADING_ALIGN,Te as HEADING_TAGS,Le as HEADING_TRANSFORM,Qt as Header,xe as Heading,Ot as Hero,_a as HomeScreen,we as Hr,Xe as HtmlContent,se as Icon,ke as Image,De as Label,be as Link,Pe as List,Fe as ListItem,Me as ListTag,he as Loader,wt as LoginForm,Ue as Logo,St as Menu,Ma as MenuScreen,va as MultiCheckboxFacet,Be as Notice,Zt as OTPInput,Bt as PanelCards,jt as PanelFeature,Wt as PanelHero,Gt as PanelProduct,zt as PanelVideo,ga as ProfileForm,Pa as ProfileScreen,je as Radio,kt as RegisterForm,fa as ResetPasswordForm,ea as ResultAsTypes,Ft as SPACING,ze as STRINGS_EN,Ba as ScheduleScreen,ma as Search,Et as Share,pa as SingleLinksFacet,ha as SingleSelectFacet,Ha as SubscriptionScreen,He as Switch,Nt as Tabs,Ge as TextInput,lt as ThemeContext,rt as ThemeProvider,_e as Variants,Ht as Video,yt as VisitUs,Wa as WorkoutScreen,nt as defaultTheme,Ze as formatDuration,Je as getRandomImageFromArray,Ui as theme,Qe as truncateString,it as useLanguage,ot as useTheme};
|