@4alldigital/foundation-ui--gamma 1.46.20 → 1.46.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import i,{useMemo as n,createElement as r,useEffect as l,useState as o,useRef as s,createContext as c,useContext as d}from"react";import m from"classnames";import{useInView as u,useIsomorphicLayoutEffect as p,animate as h,motionValue as f,motion as v,useAnimation as g}from"framer-motion";import{Icon as E}from"@iconify/react";import{twMerge as b}from"tailwind-merge";import N from"react-hover-video-player";import{useForm as A,FormProvider as y,useFormContext as S,Controller as O}from"react-hook-form";import{FacebookShareButton as C,TwitterShareButton as I,WhatsappShareButton as R,EmailShareButton as T,LinkedinShareButton as L}from"react-share";import{Tabs as w,TabList as x,Tab as _,TabPanel as D}from"react-tabs";import k,{attributesToProps as M,domToReact as P}from"html-react-parser";import"libphonenumber-js";import F from"react-player/youtube";import U from"video.js";import B from"react-otp-input";import j from"@elastic/search-ui-elasticsearch-connector";import{SearchContext as W,SearchProvider as G,WithSearch as H,ErrorBoundary as z,SearchBox as Y,Sorting as q,Facet as V,Results as K,PagingInfo as $,ResultsPerPage as X,Paging as Q}from"@elastic/react-search-ui";import Z from"rc-pagination";import J from"rc-pagination/lib/locale/en_US";const ee=({testID:t,from:a,to:n,animationOptions:r,className:l,numDecimals:o=0})=>{const s=i.useRef(null),c=u(s,{once:!0});return p((()=>{const e=s.current;if(!e||!c)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=n.toString());e.textContent=a.toString();const t=h(a,n,Object.assign(Object.assign({duration:1,ease:"easeOut"},r),{onUpdate:t=>{e.textContent=t.toFixed(o)}}));return()=>{t.stop()}}),[s,c,a,n,r]),e("span",{ref:s,"data-testid":t||"AnimationCounter",className:m("relative",l)})};ee.displayName="AnimationCounter";const te=({name:t,size:a=24,color:i,id:n,className:r,testID:l})=>e(E,{"data-testid":l||n||"Icon",icon:t,width:a,height:a,color:i||"currentColor",className:r});te.displayName="Icon";const ae=({text:a,citation:i,className:n,citationAttribute:r,showIcon:l=!0})=>{const o=m("text-xl italic font-bold",n);return t("blockquote",{"data-testid":"Blockquote",className:o,children:[l&&e(te,{name:"mdi:comment-quote",size:42}),e("div",{children:a}),i&&e("figcaption",{className:"flex flex-start items-center mt-6 space-x-3",children:t("div",{className:"flex items-center divide-x-2",children:[e("cite",{className:"pr-3 font-medium",children:i}),r&&e("cite",{className:"pl-3 text-sm font-light",children:r})]})})]})};var ie,ne,re;ae.displayName="Blockquote",function(e){e.SUBMIT="submit",e.RESET="reset",e.BUTTON="button"}(ie||(ie={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link"}(ne||(ne={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(re||(re={}));const le=({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..."})]})});le.displayName="Loader";const oe=({variant:i=ne.PRIMARY,size:n=re.MEDIUM,type:r=ie.BUTTON,wide:l=!1,rounded:o=!1,raised:s=!1,uppercase:c,children:d,id:u,disabled:p,ariaLabel:h,onClick:f,icon:v,external:g,iconFirst:E,outline:N,testID:A,className:y,isLoading:S})=>{var O,C,I,R;const T={small:{x:d?l?"px-5":"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:d?l?"px-8":"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:d?l?"px-11":"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},L=b(m("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:c},{"auto-cols-auto grid-cols-2 gap-4":S||v||g},{"rounded-full":o},{"flex-row-reverse":E},{"opacity-50 cursor-not-allowed":p},`${null===(O=null==T?void 0:T[n])||void 0===O?void 0:O.y} ${null===(C=null==T?void 0:T[n])||void 0===C?void 0:C.x} ${null===(I=null==T?void 0:T[n])||void 0===I?void 0:I.text}`,{"text-white border-primary bg-primary hover:bg-primary-darker":i===ne.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":i===ne.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":i===ne.TERTIARY},{"px-0 text-primary border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert":i===ne.LINK},y)),w=m(null===(R=null==T?void 0:T[n])||void 0===R?void 0:R.icon);return e("button",{id:u,"data-testid":A||u||"Button",onClick:f,className:L,type:r,disabled:p,"aria-label":h,role:"button",children:t(a,{children:[d,v&&!g&&e("span",{className:"flex items-center",children:e(te,{name:v,className:w})}),g&&e("span",{className:"flex items-center",children:e(te,{name:"carbon:launch",className:w})}),S&&e("div",{className:"flex items-center",children:e(le,{size:4})})]})})};function se(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 ce(e,t,a,i){return new(a||(a=Promise))((function(n,r){function l(e){try{s(i.next(e))}catch(e){r(e)}}function o(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(l,o)}s((i=i.apply(e,t||[])).next())}))}oe.displayName="Button","function"==typeof SuppressedError&&SuppressedError;const de=i.forwardRef((function(a,i){var{id:n,label:r,required:l,className:o,disabled:s}=a,c=se(a,["id","label","required","className","disabled"]);return t("div",{"data-testid":"Checkbox",className:m("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:l},c)),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(te,{name:"mdi:check-bold",size:12})})]}),r&&e("label",{className:"label pl-2 leading-none text-sm",htmlFor:n,children:r})]})}));de.displayName="Checkbox";const me=({href:a,children:n,onClick:r=(()=>{}),history:l,target:o,id:s,testID:c,className:d,prefetch:u,hideExternalIcon:p=!1})=>{const h=m("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",d);if(!p&&a&&a.startsWith("http"))return t("span",{children:[e("a",{"data-testid":c||s||"Link",className:m(h),href:a,target:"_blank",rel:"noopener noreferrer",children:n}),e(te,{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:r,"data-testid":c||s||"Link",className:h,target:o||"_self",prefetch:u||!1},n)}catch(t){return e("a",{"data-testid":c||s||"Link",className:h,href:a,onClick:e=>{r?r(e):!0!==e.defaultPrevented&&l&&a&&(e.preventDefault(),l.push(a))},target:o,children:n})}};var ue,pe,he,fe,ve;me.displayName="Link",function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(ue||(ue={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(pe||(pe={})),function(e){e.INVERTED="inverted",e.MUTED="muted"}(he||(he={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.INTRO="intro"}(fe||(fe={})),function(e){e.P="p",e.SPAN="span",e.DIV="div",e.SMALL="small"}(ve||(ve={}));const ge=({children:t,as:a=ve.P,size:i,bold:n,align:r,transform:l,underlined:o,id:s,className:c,testID:d})=>{const u=m({[`text-${r}`]:r},{"font-bold":n},{"text-sm":"small"===i},{"text-base":"medium"===i},{"text-lg":"large"===i},{"text-2xl":"intro"===i},{"text-base mb-3 mt-0":"p"===a},{"text-sm":"small"===a},{underline:o},l,c);return e(a,{"data-testid":d||s||"Copy",className:b(u),children:t})};ge.displayName="Copy";const Ee=({testID:a,text:i,outline:r,rounded:l,variant:o,size:s="medium",icon:c,iconFirst:d,onClick:u})=>{const p=n((()=>{switch(s){case"small":return{iconSize:16,copySize:fe.SMALL};case"medium":default:return{iconSize:20,copySize:fe.MEDIUM};case"large":return{iconSize:28,copySize:fe.LARGE}}}),[s]),h=b(m("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":r},{"rounded-full":l},{"flex-row-reverse":d},{"bg-primary text-white":"primary"===o},{"bg-secondary text-white":"secondary"===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-2":"small"===s},{"py-2 px-4":"medium"===s},{"py-3 px-6":"large"===s}));return u&&"function"==typeof u?t(me,{"data-testid":a||"Chip",className:h,onClick:u,children:[e(ge,{className:"mb-0",as:ve.SPAN,size:p.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(te,{name:c,size:p.iconSize})})]}):t("div",{"data-testid":a||"Chip",className:h,children:[e(ge,{className:"mb-0",as:ve.SPAN,size:p.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(te,{name:c,size:p.iconSize})})]})};Ee.displayName="Chip";const be=i.forwardRef((function(t,a){var{id:i,name:n,required:r,disabled:l,className:o,onChangeCallback:s,onChange:c}=t,d=se(t,["id","name","required","disabled","className","onChangeCallback","onChange"]);return e("div",{"data-testid":"FileUpload",className:o,children:e("input",Object.assign({ref:a,className:m("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:l,required:r,name:n,id:i,onChange:e=>{s&&"function"==typeof s&&s(e),c&&"function"==typeof c&&c({target:{value:e.target.value,name:n}})}},d))})}));var Ne,Ae,ye;be.displayName="FileUpload",function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5"}(Ne||(Ne={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(Ae||(Ae={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize",e.NORMAL_CASE="normal-case"}(ye||(ye={}));const Se=({children:t,tag:a=Ne.H2,transform:i,align:n,id:r,testID:l,flush:o,className:s,singleLine:c,bold:d=!0})=>{const u=(()=>{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-2xl md:text-3xl lg:text-3xl";case"h4":return"text-xl md:text-2xl lg:text-2xl";case"h5":return"text-lg md:text-lg lg:text-xl";default:return"text-2xl md:text-2xl lg:text-4xl"}})(),p=a,h=m(`m-0 p-0 font-heading ${u}`,{"font-bold":d},{[`text-${n}`]:n},{"mb-2":!o},{"m-0":o},{"whitespace-nowrap text-ellipsis overflow-hidden":c},i,s);return e(p,{"data-testid":l||r||"Heading",className:h,children:t})};Se.displayName="Heading";const Oe=({size:t="small"})=>e("hr",{className:m("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})});Oe.displayName="Hr";const Ce=a=>{var{src:i,alt:n,title:l,caption:o,figure:s=!1,onLoad:c,id:d,className:u,sizes:p="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:h}=a,f=se(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:p}:{};return r(e,Object.assign(Object.assign({src:i,alt:n,title:l,fill:t,onLoad:c,className:u},a),f))}catch(a){const r=m("m-0"),p=b(m("w-full h-full",u));return s||o?t("figure",{"data-testid":h||d||"Image",className:r,children:[e("img",{onLoad:c,src:i,alt:n,title:l,className:p}),o&&e("figcaption",{children:o})]}):e("img",{"data-testid":h||d||"Image",onLoad:c,src:i,alt:n,title:l,className:p})}};Ce.displayName="Image";const Ie=({children:t,id:a,transform:i,className:n})=>e("label",{"data-testid":"Label",className:b(m("label mb-2",i,n)),htmlFor:a,children:t});var Re,Te;Ie.displayName="Label",function(e){e.UNSTYLED="unstyled",e.INLINE="inline",e.SMALL="small",e.LARGE="large"}(Re||(Re={})),function(e){e.OL="ol",e.UL="ul",e.DL="dl",e.DIV="div",e.DT="dt",e.DD="dd",e.LI="li"}(Te||(Te={}));const Le=({variants:t,children:a,as:i=Te.UL,id:n,testID:r,className:l})=>{const o=t?t.map((e=>`list--${e}`)):null;return e(i,{"data-testid":r||n||"List",className:m(o,l),children:a})};Le.displayName="List";const we=({testID:t,logo:a,className:i,aspectRatioClass:n="aspect-[1/1]"})=>e("div",{"data-testid":t||"Logo",className:m("relative w-full",n,i),children:e(Ce,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});we.displayName="Logo";const xe=({children:t,as:a="li",id:i,testID:n,className:r})=>e(a,{"data-testid":n||i||"ListItem",className:m("list-item",r),children:t});xe.displayName="ListItem";const _e=({id:a,testID:i,title:n,text:r,icon:l,type:o,onCloseCallback:s,onClickCallback:c,actionText:d})=>{const u=m("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:u,children:t("div",{className:"flex gap-2",children:[l&&e("div",{className:"mr-2",children:e(te,{name:l})}),t("div",{children:[n&&e(Se,{tag:Ne.H3,children:n}),e(ge,{className:"mb-0",children:r})]}),c&&d&&e("div",{className:"ml-auto flex items-end",children:e(oe,{variant:ne.PRIMARY,onClick:c,"aria-label":"Action",size:re.SMALL,children:d})}),s&&e("div",{className:"absolute top-2 right-4",children:e(oe,{variant:ne.LINK,icon:"mdi:close",onClick:s,"aria-label":"Close"})})]})})};_e.displayName="Notice";const De=i.forwardRef((function(a,i){var{name:n,required:r,className:l,options:o}=a,s=se(a,["name","required","className","options"]);return e("div",{"data-testid":"Radio",className:m("flex items-center",l),children:e("div",{className:m("flex flex-col gap-2",l),children:null==o?void 0:o.map((a=>{var l;const o=(null===(l=null==a?void 0:a.value)||void 0===l?void 0:l.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:r,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(te,{name:"mdi:circle",size:12})})]}),e("label",{className:"label pl-2 leading-none",htmlFor:o,children:a.label})]},o)}))})})}));De.displayName="Radio";const ke=i.forwardRef((function(a,i){var{id:n,name:r,required:l,disabled:o,className:s}=a,c=se(a,["id","name","required","disabled","className"]);return t("label",{"data-testid":"Switch",className:m("inline-flex items-center cursor-pointer",s),children:[e("input",Object.assign({ref:i,id:n,name:r,type:"checkbox",value:"",className:"sr-only peer",disabled:o,required:l},c)),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 Me;ke.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"}(Me||(Me={}));const Pe=i.forwardRef((function(a,n){var{type:r=Me.TEXT,required:l=!1,className:o,onChange:s,placeholder:c,icon:d,disabled:u=!1,name:p,autoComplete:h}=a,f=se(a,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);i.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const v="date"===r?"dd/mm/yyyy".toUpperCase():c;return r===Me.TEXTAREA?e("div",{"data-testid":"TextInput",className:"relative",children:e("textarea",Object.assign({ref:n,id:p,autoComplete:p,required:l,"aria-required":l,disabled:u,placeholder:v,onChange:s,rows:4,className:m("form-item text-input resize-none",o)},f))}):t("div",{"data-testid":"TextInput",className:"relative",children:[d&&e("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e(te,{name:d})}),e("input",Object.assign({ref:n,id:p,type:r,autoComplete:h,required:l,"aria-required":l,disabled:u,placeholder:v,onChange:s,className:m("form-item text-input",{"pl-12":d},o)},f))]})}));Pe.displayName="TextInput";const Fe={GLOBAL:{SCREENS:{ACCOUNT:{TITLE:"Account"},CATALOGUE_LIST:{TITLE:"Catalogue"},CHALLENGE:{TITLE:"Challenge"},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 note entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",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"},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"}},Ue=({testID:n,name:r="avatar",isEditable:l=!0,initValue:o})=>{const[s,c]=i.useState(o);return 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:[s&&t(a,{children:[e(Ce,{src:s,alt:r,width:200,height:200}),l&&e("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e(oe,{size:re.SMALL,rounded:!0,onClick:()=>{c(void 0)},children:Fe.UI.REMOVE_BTN_LABEL})})]}),!s&&e(a,{children:l&&e("div",{className:"absolute w-full h-full flex items-center justify-center",children:e(Ie,{id:r,className:"button cursor-pointer mb-0",children:e(ge,{className:"mb-0",children:Fe.UI.UPLOAD})})})})]}),e("input",{type:"file",id:r,name:r,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)}}})]})};Ue.displayName="Avatar";const Be=({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,r=0===i,l=i===a.length-1,o=m({"rounded-none":n},{"rounded-r":r,"rounded-l":l});return e("div",{children:e(oe,Object.assign({},t,{className:o,children:t.children}))},t.id)}))});Be.displayName="ButtonGroup";const je="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",We="transition duration-500 ease-in-out ",Ge=({id:a,title:i,description:n,image:r,className:l,metaData:o,actions:s,padded:c,scaleOnHover:d,onClick:u=(()=>{})})=>t("div",{id:a,"data-testid":"CardBasic",className:b(m(We,je,{"p-4":c},{"hover:scale-100":!d},l)),onClick:u,children:[r&&e("div",{className:b(m("relative w-full overflow-hidden aspect-[16/9]",{rounded:c},r.aspectRatio)),children:e(Ce,{fill:!0,src:null==r?void 0:r.src,sizes:"100vh",alt:null==r?void 0:r.alt,className:m("absolute inset-0 object-cover group-hover:scale-110 dura",We)})}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:m({"p-3":!c},{"pt-3":c}),children:[e("div",{children:i&&e(Se,{tag:Ne.H4,singleLine:!0,children:i})}),e("div",{children:n&&e(ge,{className:"mb-0",children: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(ge,{className:"text-xs",as:ve.SMALL,children:[e," ·"]},e):a===o.length-1?t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e]},e):t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e," ·"]},e)))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(oe,{variant:ne.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:re.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})}})]})]})]})})]});Ge.displayName="CardBasic";const He=({id:a,title:i,description:n,image:r,className:l,metaData:o,actions:s,onClick:c=(()=>{}),playCallback:d})=>t("div",{id:a,"data-testid":"CardBasic",className:m(We,je,l),onClick:c,children:[r&&t("div",{className:m("relative w-full overflow-hidden aspect-[16/9]",r.aspectRatio),children:[e(Ce,{fill:!0,src:null==r?void 0:r.src,sizes:"100vh",alt:null==r?void 0:r.alt,className:m("absolute inset-0 object-cover group-hover:scale-110",We)}),d&&e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(oe,{variant:ne.PRIMARY,icon:"mdi:play",size:re.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof d&&d(e)}})})]}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:"p-3",children:[e("div",{children:i&&e(Se,{tag:Ne.H5,singleLine:!0,flush:!0,children:i})}),e("div",{children:n&&e(ge,{children: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(ge,{className:"text-xs",as:ve.SMALL,children:[e," ·"]},e):a===o.length-1?t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e]},e):t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e," ·"]},e)))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(oe,{variant:ne.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:re.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})}})]})]})]})})]});He.displayName="CardMedia";const ze=({video:a,isMuted:i=!0,id:n,title:r,description:l,image:o,className:s,metaData:c,actions:d,onClick:u=(()=>{})})=>t("div",{id:n,"data-testid":"CardVideo",className:m(We,je,s),onClick:u,children:[o&&a&&e("div",{className:m("relative w-full h-full aspect-[16/9]",o.aspectRatio),children:e(N,{videoId:`video--${n}`,playbackStartDelay:1e3,videoSrc:e("source",{src:a,type:"video/mp4"}),videoClassName:m("hls-hover-video w-full aspect-[16/9]",o.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:i,className:m("w-full overflow-hidden aspect-[16/9]",o.aspectRatio),pausedOverlay:e("div",{className:m("relative w-full overflow-hidden aspect-[16/9]",o.aspectRatio),children:e(Ce,{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:m("w-full flex items-center justify-center aspect-[16/9]",o.aspectRatio),children:e("div",{className:"",children:e(le,{})})})},`${n}--card`)}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:"p-3",children:[e("div",{children:r&&e(Se,{tag:Ne.H5,singleLine:!0,flush:!0,children:r})}),e("div",{children:l&&e(ge,{children:l})}),t("div",{className:"flex items-center justify-between gap-2",children:[c&&e("div",{className:"flex shrink-0",children:c.map(((e,a)=>0===a?t(ge,{className:"text-xs",as:ve.SMALL,children:[e," ·"]},e):a===c.length-1?t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e]},e):t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e," ·"]},e)))}),d&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[d.like&&e(oe,{variant:ne.PRIMARY,icon:d.like.isActive?"mdi:like":"mdi:like-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.like)||void 0===t?void 0:t.onClick)&&"function"==typeof d.like.onClick&&d.like.onClick({id:n})}}),d.share&&e(oe,{variant:ne.PRIMARY,icon:d.share.isActive?"mdi:share":"mdi:share-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.share)||void 0===t?void 0:t.onClick)&&"function"==typeof d.share.onClick&&d.share.onClick({id:n})}}),d.save&&e(oe,{variant:ne.PRIMARY,icon:d.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.save)||void 0===t?void 0:t.onClick)&&"function"==typeof d.save.onClick&&d.save.onClick({id:n})}}),d.comment&&e(oe,{variant:ne.PRIMARY,icon:d.comment.isActive?"mdi:comment":"mdi:comment-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof d.comment.onClick&&d.comment.onClick({id:n})}}),d.bookmark&&e(oe,{variant:ne.PRIMARY,icon:d.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof d.bookmark.onClick&&d.bookmark.onClick({id:n})}}),d.report&&e(oe,{variant:ne.PRIMARY,icon:d.report.isActive?"mdi:flag":"mdi:flag-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.report)||void 0===t?void 0:t.onClick)&&"function"==typeof d.report.onClick&&d.report.onClick({id:n})}}),d.follow&&e(oe,{variant:ne.PRIMARY,icon:d.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof d.follow.onClick&&d.follow.onClick({id:n})}}),d.download&&e(oe,{variant:ne.PRIMARY,icon:d.download.isActive?"mdi:download":"mdi:download-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.download)||void 0===t?void 0:t.onClick)&&"function"==typeof d.download.onClick&&d.download.onClick({id:n})}}),d.edit&&e(oe,{variant:ne.PRIMARY,icon:d.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof d.edit.onClick&&d.edit.onClick({id:n})}}),d.delete&&e(oe,{variant:ne.PRIMARY,icon:d.delete.isActive?"mdi:delete":"mdi:delete-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof d.delete.onClick&&d.delete.onClick({id:n})}})]})]})]})})]});ze.displayName="CardVideo";const Ye=({id:a,title:i,description:n,icon:r,className:l,onClick:o,moreTitle:s,align:c})=>t("div",{id:a,"data-testid":"CardIcon",className:b(m(We,o?je:"","p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===c},{"items-center":"center"===c},{"items-end":"right"===c},l)),children:[r&&e("div",{className:m("relative"),children:e(te,{name:r,size:48})}),t("div",{className:m({"text-left":"left"===c},{"text-center":"center"===c},{"text-right":"right"===c}),children:[e("div",{children:i&&e(Se,{tag:Ne.H5,singleLine:!0,children:i})}),e("div",{children:n&&e(ge,{align:c,children:n})})]}),o&&e("div",{className:"flex items-center justify-start gap-2",children:e(oe,{icon:"mdi:arrow-right",variant:ne.LINK,onClick:o,children:s})})]});Ye.displayName="CardIcon";const qe=({testID:a,id:i,title:n,description:r,image:l,onClick:o,className:s,padded:c,icon:d,raised:u=!0})=>t("div",{id:i,"data-testid":a||"CardHorz",className:m("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":c},{"shadow hover:shadow-lg":u},s),onClick:o,children:[l&&e("div",{className:"w-1/3 aspect-[1/1]",children:e("div",{className:b(m("relative w-full overflow-hidden h-full",l.aspectRatio)),children:e(Ce,{fill:!0,src:null==l?void 0:l.src,alt:null==l?void 0:l.alt,className:"absolute inset-0 object-cover"})})}),d&&!l&&e("div",{className:"py-2 pl-2",children:e(te,{name:d,size:30})}),e("div",{className:"flex flex-1 overflow-hidden h-min",children:t("div",{className:"flex-col gap-2 py-2 pr-2 overflow-hidden",children:[n&&e("div",{className:"",children:e(Se,{tag:Ne.H4,children:n})}),r&&e("div",{children:e(ge,{className:"mb-0",children:r})})]})})]});qe.displayName="CardHorz";const Ve=({testID:i,className:n,data:r,padded:o,shadow:s=!0})=>{const c=f(0);return l((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||h(c,200,{duration:.5})}),[c]),r?t("div",{"data-testid":i||"CardData",className:b(m("relative rounded-lg overflow-hidden flex flex-col items-center gap-4 p-2",{"p-4":o},{shadow:s},n)),children:[(null==r?void 0:r.animateNumber)&&t("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e(ee,{from:r.numberData.from,to:r.numberData.to,numDecimals:r.numberData.numDecimals}),e("span",{children:null==r?void 0:r.item})]}),!(null==r?void 0:r.animateNumber)&&e("div",{className:"text-lg",children:e(Se,{tag:Ne.H2,flush:!0,children:null==r?void 0:r.item})}),e("div",{children:e(ge,{className:"mb-0",children:null==r?void 0:r.label})})]}):e(a,{})};Ve.displayName="CardData";const Ke=t=>{var{variant:a,className:i,data:n}=t,r=se(t,["variant","className","data"]);switch(a){case"basic":default:return e(Ge,Object.assign({className:i},n,r));case"media":return e(He,Object.assign({className:i},n,r));case"video":return e(ze,Object.assign({className:i},n,r));case"icon":return e(Ye,Object.assign({className:i},n,r));case"horz":return e(qe,Object.assign({className:i},n,r));case"data":return e(Ve,Object.assign({className:i},n,r))}};Ke.displayName="Card";const $e=({text:i,tag:n=Ne.H1})=>{const r=i.split(" ");return e("div",{"data-testid":"DisplayHeading",className:"relative",children:e(Se,{tag:n,className:"",children:r.map(((i,n)=>{const l=n===r.length-1,o=`${i}-${n}`;return t("span",{children:[e("span",{className:m({"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"}),e("span",{className:"display-heading--lastword",children:i})]}),!l&&e("span",{children:i})]})}),!l&&" "]},o)}))})})};$e.displayName="DisplayHeading";const Xe=({children:a,className:i,submit:n,onSubmit:r=(()=>{}),onChange:o,hideSubmit:s,ariaSubmitLabel:c,submitID:d,submitVariant:u=ne.PRIMARY,initialValues:p={},isBoxed:h=!1,submitType:f=ie.SUBMIT,disabledSubmitWithReturn:v=!1,isDisabled:g=!1})=>{const E=A({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"});l((()=>{if(o&&"function"==typeof o){const e=E.watch(((e,t)=>{o(e,t)}));return()=>e.unsubscribe()}}),[]);const b=m({"sr-only":s}),{formState:{isSubmitting:N,isDirty:S,isValid:O}}=E;return e(y,Object.assign({},E,{children:e("div",{"data-testid":"Form",className:m("w-full max-w-s @containers @form"),children:t("form",{onSubmit:E.handleSubmit(r),onKeyDown:e=>{v&&"Enter"===e.key&&e.preventDefault()},className:m("w-2xs relative",{"form px-8 pt-6 pb-8 ":h},{"opacity-50":N},i),children:[a,n&&e("div",{className:"flex items-center justify-end",children:e(oe,{id:d||n,className:b,ariaLabel:c||n||"Submit",type:f,outline:!0,isLoading:N,disabled:N||!O||!S||g,variant:u,children:n})})]})})}))};var Qe;Xe.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"}(Qe||(Qe={}));const Ze=i.forwardRef((function(a,i){var{id:n,name:r,options:l,required:o,className:s,disabled:c}=a,d=se(a,["id","name","options","required","className","disabled"]);if(!l)throw new Error("FormSelect requires options prop");return e("div",{id:n,className:m("pb-2 min-w-20",s),children:t("div",{className:"relative",children:[e("select",Object.assign({ref:i,name:r,disabled:c,required:o,className:"form-item text-input pr-10"},d,{children:l.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(te,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));Ze.displayName="FormSelect";const Je=({name:a,type:i,label:n,required:r,className:l,icon:s,options:c,disabled:d,description:u,showPasswordLabel:p,hidePasswordLabel:h,validations:f={},fileUploadCallback:v=(()=>{}),autoComplete:g})=>{var E,b;const[N,A]=o(!1),{control:y,formState:C}=S(),{errors:I}=C,R=n&&i!==Qe.CHECKBOX,T=r||Boolean(f.required)?`${n} *`:n;return e("div",{className:"relative",children:t("div",{"data-testid":"FormField",className:"mb-4",children:[R&&e("div",{className:"flex items-baseline justify-between",children:e(Ie,{id:a,children:T})}),e("div",{className:"mb-1",children:e(O,{defaultValue:"",name:a,control:y,rules:f,render:({field:o})=>((i,o)=>{switch(i){case Qe.HIDDEN:return e("input",Object.assign({type:Me.HIDDEN,disabled:d},o));case Qe.TEXT:return e(Pe,Object.assign({type:Me.TEXT,required:r||Boolean(f.required),icon:s,className:l,disabled:d,autoComplete:g},o));case Qe.PASSWORD:{const a=N?Me.TEXT:Me.PASSWORD,i="appearance-none border-none bg-transparent flex items-center";return t("div",{className:"relative",children:[e("span",{className:"absolute right-0 top-0 flex items-center justify-center h-full z-10 pr-2",onClick:()=>A((e=>!e)),role:"button",tabIndex:0,children:e("button",N?{type:"button","aria-label":h,className:m(i,"form-icon"),children:e(te,{name:"mdi:eye-off",size:24})}:{type:"button","aria-label":p,className:m(i,"form-icon"),children:e(te,{name:"mdi:eye",size:24})})}),e(Pe,Object.assign({type:a,required:r||Boolean(f.required),icon:s,className:l,disabled:d,autoComplete:g},o))]})}case Qe.TEXTAREA:return e(Pe,Object.assign({type:Me.TEXTAREA,required:r||Boolean(f.required),icon:s,className:l,disabled:d},o));case Qe.EMAIL:return e(Pe,Object.assign({type:Me.EMAIL,required:r||Boolean(f.required),icon:s,className:l,disabled:d,autoComplete:g},o));case Qe.DATE:return e(Pe,Object.assign({type:Me.DATE,required:r||Boolean(f.required),icon:s,className:l,disabled:d},o));case Qe.DATETIME:return e(Pe,Object.assign({type:Me.DATETIME,required:r||Boolean(f.required),icon:s,className:l,disabled:d},o));case Qe.NUMBER:return e(Pe,Object.assign({type:Me.NUMBER,required:r||Boolean(f.required),icon:s,className:l,disabled:d},o));case Qe.CHECKBOX:return e(de,Object.assign({required:r||Boolean(f.required),id:a,className:l,label:n,disabled:d},o));case Qe.RADIO:return e(De,Object.assign({required:r||Boolean(f.required),id:a,className:l,options:c,disabled:d},o));case Qe.SWITCH:return e(ke,Object.assign({id:a,required:r||Boolean(f.required),className:l,disabled:d},o));case Qe.SELECT:return e(Ze,Object.assign({required:r||Boolean(f.required),id:a,className:l,disabled:d,label:n,options:c},o));case Qe.FILE:return e(be,Object.assign({required:r||Boolean(f.required),id:a,className:l,disabled:d,onChangeCallback:e=>{v(e)}},o));default:return e(Pe,Object.assign({type:Me.TEXT,required:r||Boolean(f.required),disabled:d,icon:s,className:l},o))}})(i,o)})}),u&&e("div",{className:"formfield-description",children:e(ge,{size:fe.SMALL,className:"mb-0",children:u})}),I[a]&&e("div",{className:"formfield-error text-error italic",children:e(ge,{size:fe.SMALL,className:"mb-0",children:null===(b=null===(E=null==I?void 0:I[a])||void 0===E?void 0:E.message)||void 0===b?void 0:b.toString()})})]})})};Je.displayName="FormField";const et=({testID:a,url:i,title:n="Share",enabled:r={facebook:!0,twitter:!0}})=>t("div",{"data-testid":a||"Share",className:"flex gap-2 items-center ",children:[e("div",{children:t(ge,{as:ve.P,className:"mb-0",children:[Fe.UI.SHARE,":"]})}),(null==r?void 0:r.facebook)&&e(C,{url:i,title:n,className:"",children:e(te,{name:"mdi:facebook"})}),(null==r?void 0:r.twitter)&&e(I,{url:i,title:n,className:"",children:e(te,{name:"mdi:twitter"})}),(null==r?void 0:r.whatsapp)&&e(R,{url:i,title:n,className:"",children:e(te,{name:"mdi:whatsapp"})}),(null==r?void 0:r.email)&&e(T,{url:i,title:n,className:"",children:e(te,{name:"mdi:email"})}),(null==r?void 0:r.linkedin)&&e(L,{url:i,title:n,className:"",children:e(te,{name:"mdi:linkedin"})})]});et.displayName="Share";const tt=({data:n})=>{const[r,l]=i.useState(0);return n?e("div",{"data-testid":"Tabs",children:t(w,{onSelect:e=>l(e),children:[e(x,{className:"mb-8 flex p-0",children:n.map(((t,a)=>e(_,{className:m("list-none rel ative cursor-pointer inline-block flex-1 items-center justify-center p-4",{"border-transparent border-solid border-0 border-b-2":r!==a,"border-primary border-solid border-0 border-b-2":r===a}),children:e(ge,{className:"m-0 text-center",children:t.title})},a)))}),n.map(((t,a)=>e(D,{className:"",children:t.content},a)))]})}):e(a,{})};tt.displayName="Tabs";const at=({testID:a,facebook:i,twitter:n,instagram:r,linkedin:l})=>t("div",{"data-testid":a||'"VisitUs"',className:"flex gap-2",children:[i&&e(oe,{variant:ne.PRIMARY,size:re.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(i.url)}),n&&e(oe,{variant:ne.PRIMARY,size:re.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(n.url)}),r&&e(oe,{variant:ne.PRIMARY,size:re.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(r.url)}),l&&e(oe,{variant:ne.PRIMARY,size:re.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(l.url)})]});at.displayName="VisitUs";const it=({testID:a,title:i,links:n,inline:r=!0,separators:l=!1,className:o})=>t("div",{"data-testid":a||'"Menu"',className:b(m("flex flex-col gap-2",o)),children:[i&&e("div",{children:e(Se,{tag:Ne.H3,children:i})}),e("div",{className:m("flex gap-0 items-center md:items-start",{"flex-row ":r},{"flex-col ":!r}),children:null==n?void 0:n.map(((a,i)=>{const r=`${a.id}--${i}`;return t("div",{className:"flex gap-0",children:[e("div",{className:"relative py-2",children:t(me,{href:a.url,className:"flex gap-1",children:[a.icon&&e(te,{name:a.icon}),a.title&&e("div",{children:a.title})]})}),l&&i+1<n.length&&e("div",{className:"h-full flex self-center px-2",children:e(te,{name:"mdi:dot",className:"opacity-50"})})]},r)}))})]});var nt;it.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(nt||(nt={}));const rt=({children:t,className:a,spacing:i,padded:n,isNarrow:r,isCentered:l,isFlush:o,direction:s=nt.COLUMN})=>{const c=b(m("container mx-auto my-0",{"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":r},{"flex items-center justify-center flex-col":l},{"px-0 max-w-full mx-0":o},{"flex flex-col":s===nt.COLUMN},{"flex-row":s===nt.ROW})),d=m("mx-4 md:mx-0",a);return e("div",{"data-testid":"Container",className:c,children:e("div",{className:d,children:t})})};rt.displayName="Container";const lt=({testID:a,children:i,withBg:n=!0,inversed:r=!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:m("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!r,"-top-24 left-0":r})}),e(rt,{children:i})]});lt.displayName="Hero";const ot={replace(t){if("a"===t.name){const a=M(t.attribs);return e(me,Object.assign({},a,{children:P(t.children,ot)}))}if(t.attribs&&"p"===t.name){const a=M(t.attribs);return e(ge,Object.assign({},a,{children:P(t.children,ot)}))}return t}},st=({testID:t,data:a,align:i,className:n})=>e("span",{"data-testid":t||'"HtmlContent"',className:m("relative",{"text-right":"right"===i},{"text-center":"center"===i},{"text-left":"left"===i},n),children:k(a,ot)});st.displayName="HtmlContent";const ct=({testID:a,bgAsset:i,focalAsset1:n,focalAsset2:r,focalAsset3:l})=>{const o=s(null);u(o);const c={opacity:.001,rotate:0,scale:1,x:200,y:0},d={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:m("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(Ce,{src:i.src,alt:i.alt,fill:!0})}),(n||r)&&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:c,animate:d,children:e(Ce,{src:n.src,alt:n.alt,fill:!0})}),r&&e(v.div,{className:"absolute w-1/2 aspect-[0.5/1] left-0 top-20",initial:c,animate:Object.assign(Object.assign({},d),{transition:Object.assign(Object.assign({},d.transition),{delay:.3})}),children:e(Ce,{src:r.src,alt:r.alt,fill:!0})})]}),l&&e("div",{className:"absolute w-1/4 aspect-[0.5/1] flex flex-col flex-nowrap p-0 top-10 z-20 items-end justify-end left-10",children:e(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(Ce,{src:l.src,fill:!0,alt:l.alt})})})]})};ct.displayName="AnimationSet1";const dt=`${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}`,mt=`${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}`,ut={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},pt={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."}},ht=({handleSubmit:i,initialValues:n,showSocialButtons:r=!1})=>t("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[t(Xe,{onSubmit:i,submit:Fe.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:n,children:[e(Je,{name:"email",type:Qe.EMAIL,label:Fe.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:ut,autoComplete:"email"}),e(Je,{name:"password",type:Qe.PASSWORD,label:Fe.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),r&&t(a,{children:[e(Oe,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(oe,{onClick:()=>window.location.assign(dt),variant:ne.PRIMARY,iconFirst:!0,icon:"mdi:google",children:Fe.UI.LOGIN_WITH_GOOGLE}),e(oe,{onClick:()=>window.location.assign(mt),variant:ne.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:Fe.UI.LOGIN_WITH_APPLE})]})})]})]});ht.displayName="LoginForm";const ft=({handleSubmit:i,showSocialButtons:n=!1})=>t("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[t(Xe,{onSubmit:i,submit:Fe.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e(Je,{name:"email",type:Qe.EMAIL,label:Fe.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:ut,autoComplete:"email"}),e(Je,{name:"password",type:Qe.PASSWORD,label:Fe.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:Fe.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:pt,autoComplete:"new-password"})]}),n&&t(a,{children:[e(Oe,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(oe,{onClick:()=>window.location.assign(dt),variant:ne.PRIMARY,iconFirst:!0,icon:"mdi:google",children:Fe.UI.SIGNUP_WITH_GOOGLE}),e(oe,{onClick:()=>window.location.assign(mt),variant:ne.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:Fe.UI.SIGNUP_WITH_APPLE})]})})]})]});ft.displayName="RegisterForm";const vt=({handleSubmit:t})=>e("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e(Xe,{onSubmit:t,submit:Fe.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e(Je,{name:"email",type:Qe.EMAIL,label:Fe.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:ut})})});vt.displayName="ForgotPasswordForm";const gt=({loginSubmit:a,registerSubmit:n,passwordForgotSubmit:r,handleTokenCallback:o,showSocialLogin:s=!1})=>{const[c,d]=i.useState(!1);return l((()=>{!function(){ce(this,void 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-full",children:[!c&&e(tt,{data:[{title:"Login",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(ht,{handleSubmit:a,showSocialButtons:s}),e("div",{className:"mt-4",children:e(oe,{variant:ne.LINK,onClick:()=>d(!c),children:c?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e("div",{className:"flex flex-col gap-4 items-center",children:e(ft,{handleSubmit:n,showSocialButtons:s})})}]}),c&&e(tt,{data:[{title:"Forgot Password",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(vt,{handleSubmit:r}),e("div",{className:"mt-4",children:e(oe,{variant:ne.LINK,onClick:()=>d(!c),children:c?"Back to Login":"Forgot Password?"})})]})}]})]})};var Et;gt.displayName="Authenticator",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"}(Et||(Et={}));const bt=({testID:a,cardData:i,title:n,description:r,withSeparators:l,spacing:o=Et.MODULE})=>{const c=s(null),d=u(c,{once:!0});return t("div",{ref:c,"data-testid":a||"PanelCards",className:m("relative m-auto w-full flex flex-col flex-none flex-nowrap",o),children:[(n||r)&&t("div",{className:"relative text-center py-8",children:[n&&e($e,{text:n}),r&&e(ge,{align:ue.CENTER,children:r})]}),e("div",{className:"flex gap-8",children:null==i?void 0:i.map(((a,n)=>t("span",{className:"flex gap-8 justify-between",children:[e("div",{className:m("relative flex flex-1 items-center justify-center",{"":l}),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(Ke,Object.assign({},a))}),l&&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 Nt=({testID:a,title:i,description:n,inversed:r,assets:l,buttonData:o,withBg:s=!0,spacing:c=Et.DEFAULT})=>t("div",{"data-testid":a||"PanelFeature",className:m("relative m-auto w-full flex flex-none flex-nowrap",c),children:[s&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -top-24 -left-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e(rt,{children:t("div",{className:m("relative flex sm:flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-16",{"flex-row-reverse":r}),children:[t("div",{className:"w-1/2 flex flex-col items-start justify-center",children:[t("div",{className:"relative text-left",children:[e($e,{text:i}),e(ge,{className:"mb-0",children:n})]}),t("div",{className:"grid grid-cols-3 gap-2 my-8",children:[e(Ee,{rounded:!0,text:"New",variant:"info"}),e(Ee,{rounded:!0,text:"Trending",variant:"info"}),e(Ee,{rounded:!0,text:"Popular",variant:"info"})]}),e("div",{className:"",children:e(oe,Object.assign({},o))})]}),e("div",{className:"w-1/2 flex items-center justify-center",children:e("div",{className:"w-full aspect-[1/1] flex items-center justify-center",children:e(ct,{bgAsset:l.bgAsset,focalAsset1:l.focalAsset1,focalAsset2:l.focalAsset2,focalAsset3:l.focalAsset3})})})]})})]});Nt.displayName="PanelFeature";const At=({url:t,sources:a,onReady:r,className:o,options:s={},isYoutube:c=!1,defaultAudioTrack:d="No Music",rounded:u=!0,aspectRatioValue:p})=>{const h=i.useRef(null),f=i.useRef(null),v=i.useRef(null),g=n((()=>{switch(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 l((()=>{var e;if(c)return;const t=Object.assign(Object.assign({autoplay:!0,controls:!0,muted:!1,responsive:!0,fill:!0,fluid:!0,aspectRatio:g.aspectRatio||"16:9",controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},s),{sources:a});if(!v.current){const a=document.createElement("video-js");a.classList.add("vjs-big-play-centered"),null===(e=null==f?void 0:f.current)||void 0===e||e.appendChild(a);const i=v.current=U(a,t,(()=>{U.log("player is ready",i),r&&r(i)}));i.on("loadedmetadata",(function(){const e=i.audioTracks();for(let t=0;t<e.length;t++)e[t].label===d&&(e[t].enabled=!0)}))}}),[s,f]),l((()=>{if(c)return;const e=v.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),v.current=null)}}),[v]),e("div",c&&t?{"data-testid":"Video",className:m("relative w-full h-full aspect-[16/9]",o),children:e(F,{ref:h,className:"react-player",url:t,width:"100%",height:"100%",controls:!0,onReady:r})}:{className:b(m("relative w-full overflow-hidden h-full aspect-[16/9] bg-black object-cover",{rouded:u},g.className,o)),children:e("div",{"data-vjs-player":!0,children:e("div",{ref:f,className:"object-cover"})})})};At.displayName="Video";const yt=({testID:a,title:i,contentComponent:r,description:o,image:c,buttonData:d,inversed:p=!1,withBg:h=!0,spacing:f,video:E,headingTag:N,className:A})=>{const y=g(),S=s(null),O=u(S),C={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};l((()=>{O&&y.start((e=>({transform:"none",transition:Object.assign(Object.assign({},C),{delay:.1*e})})))}),[y,O]);const I=n((()=>{switch(null==E?void 0:E.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]"}}),[E]),R=p?"translateX(100px)":"translateX(-100px)";return t("div",{"data-testid":a||"PanelHero",className:b(m("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",f,A)),children:[h&&e("div",{className:m("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":!p,"-top-24 left-0":p})}),e(rt,{children:t("div",{className:m("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":p}),children:[e("div",{ref:S,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:t("div",{className:m("relative flex flex-col gap-4 from-primary-darker p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!p},{"text-left bg-gradient-to-t md:bg-gradient-to-r":p}),children:[e(v.div,{initial:{transform:R},custom:0,animate:y,children:e($e,{text:i,tag:N})}),r&&e(v.div,{initial:{transform:R},custom:1,animate:y,children:r}),o&&e(v.div,{initial:{transform:R},custom:1,animate:y,children:e(st,{className:"mb-0",align:p?ue.LEFT:ue.RIGHT,data:o})}),d&&e(v.div,{initial:{transform:R},custom:2,animate:y,children:e("div",{className:m("flex items-center",{"justify-end":!p,"justify-start":p}),children:e(oe,Object.assign({},d))})})]})}),e("div",{className:"relative w-full md:w-1/2 z-0",children:t("div",{className:m("relative scale-[1.35] rounded overflow-hidden shadow",I),children:[c&&e(Ce,{src:c,alt:i,fill:!0}),E&&e(At,{sources:E.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:E.aspectRatioValue})]})})]})})]})};yt.displayName="PanelHero";const St=({testID:a,title:i,description:n,image1:r,image2:l,iosLink:o="#",androidLink:s="#",inversed:c=!1,withBg:d=!0,spacing:u=Et.MODULE})=>t("div",{"data-testid":a||"PanelFeature",className:m("relative m-auto w-full flex flex-none flex-nowrap",u),children:[d&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -bottom-24 -right-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e(rt,{children:t("div",{className:m("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-primary bg-opacity-10 backdrop-blur-lg rounded border-opacityDark20 p-8",{"flex-row-reverse":c}),children:[t("div",{className:"w-full md:w-1/2 top-0 relative",children:[e("div",{className:"absolute aspect-[8/17] -rotate-12 w-[135px] left-1/3 top-4 md:w-[180px] md:left-1/3 md:top-4 lg:w-[210px] lg:left-1/2 lg:-top-1/3",children:e(Ce,{src:l,alt:i})}),e("div",{className:"relative md:absolute aspect-[8/17] -rotate-0 w-[150px] left-0 top-0 md:w-[220px] md:left-0 md:-top-6 lg:w-[250px] lg:left-1/4 lg:-top-1/2",children:e(Ce,{src:r,alt:i})})]}),t("div",{className:"w-full md:w-1/2",children:[e("div",{children:e($e,{text:i})}),e("div",{children:e(ge,{children:n})}),t("div",{className:"flex items-center justify-start gap-4",children:[e("div",{className:"relative w-[150px] h-[50px]",children:e(me,{href:o,target:"_blank",hideExternalIcon:!0,children:e(Ce,{src:"https://apple-resources.s3.amazonaws.com/media-badges/download-on-the-app-store/black/en-us.svg",alt:"App Store"})})}),e("div",{className:"relative w-[190px] h-[75px]",children:e(me,{href:s,target:"_blank",hideExternalIcon:!0,children:e(Ce,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});St.displayName="PanelProduct";const Ot=({testID:a,className:i,title:n,description:r,spacing:l=Et.NONE,videoProps:o})=>t("div",{"data-testid":a||'"PanelVideo"',className:m("relative m-auto w-full flex flex-none flex-nowrap aspect-[16/6.6]",l,i),children:[e(At,{rounded:!1,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-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(Se,{tag:Ne.H2,children:n})})}),r&&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(ge,{children:r})})})]})]})]});var Ct;Ot.displayName="PanelVideo",function(e){e.NONE="none",e.ATOM="atom",e.DEFAULT="default",e.ELEMENT="element",e.COMPONENT="component",e.MODULE="module",e.FEATURE="feature"}(Ct||(Ct={}));const It=({spacing:t=Ct.DEFAULT,children:a,narrow:i,flush:n,className:r})=>{const l=m("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},r);return e("div",{"data-testid":"ContentPageLayout",className:l,children:a})};var Rt;It.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"}(Rt||(Rt={}));const Tt=({className:t,children:a,size:i=Rt.DEFAULT})=>{const n=m("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})};Tt.displayName="ContentRowsLayout";const Lt=c({brand:void 0,header:void 0,footer:void 0,locale:void 0}),wt=({children:t,value:a})=>e(Lt.Provider,{value:a,children:t}),xt=({testID:a,className:i,logoAspectRatio:n="aspect-[16/9]"})=>{var r,l,o,s,c,u,p,h,f,v,g,E,b;const N=d(Lt);return t("footer",{className:m("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8",i),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===(r=null==N?void 0:N.brand)||void 0===r?void 0:r.logo)&&e("div",{className:"relative w-24",children:e(we,{logo:null===(l=null==N?void 0:N.brand)||void 0===l?void 0:l.logo,aspectRatioClass:n})}),(null===(o=N.footer)||void 0===o?void 0:o.about)&&e("div",{children:e(ge,{children:N.footer.about})}),e("div",{children:e(at,{facebook:null===(c=null===(s=N.footer)||void 0===s?void 0:s.visitUs)||void 0===c?void 0:c.facebook,twitter:null===(p=null===(u=N.footer)||void 0===u?void 0:u.visitUs)||void 0===p?void 0:p.twitter,instagram:null===(f=null===(h=N.footer)||void 0===h?void 0:h.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===(E=N.footer)||void 0===E?void 0:E.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(it,{title:t.title,links:t.links,inline:!1})},`${t.title}--${a}`)))})]}),t("div",{className:"flex items-center justify-center flex-col",children:[t(ge,{align:ue.CENTER,as:ve.SMALL,children:["© ",(new Date).getFullYear()," ",Fe.UI.COPYRIGHT," ",null===(b=N.brand)||void 0===b?void 0:b.name]}),e(ge,{align:ue.CENTER,as:ve.SMALL,children:Fe.UI.ALL_RIGHTS_RESERVED})]})]})};xt.displayName="Footer";const _t=({testID:a,menuLinks:i,profileLinks:n,loginCallback:r,logoutCallback:l,isAuthenticated:s=!1,hideMenu:c=!1,logoAspectRatio:u="aspect-[16/9]",className:p,logoOnly:h})=>{var f,v,g,E,b,N;const A=d(Lt),[y,S]=o("hidden"),[O,C]=o(!1),I=()=>{S("hidden"===y?"block":"hidden")};return h?e("header",{"data-testid":a||'"Header"',className:m("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0",p),children:e("div",{className:"relative w-full flex justify-center items-center",children:(null===(f=null==A?void 0:A.brand)||void 0===f?void 0:f.logo)&&e("div",{className:"relative w-56",children:e(me,{href:"/",children:e(we,{logo:null===(v=null==A?void 0:A.brand)||void 0===v?void 0:v.logo,aspectRatioClass:u})})})})}):t("header",{"data-testid":a||'"Header"',className:m("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0",p),children:[t("div",{className:"relative w-full flex",children:[(null===(g=null==A?void 0:A.brand)||void 0===g?void 0:g.logo)&&e("div",{className:"relative w-32",children:e(me,{href:"/",children:e(we,{logo:null===(E=null==A?void 0:A.brand)||void 0===E?void 0:E.logo,aspectRatioClass:u})})}),e("div",{className:"flex-1 hidden md:flex items-center justify-center",children:e(it,{links:i,separators:!0})}),t("div",{className:"hidden md:flex flex-col justify-center",children:[!s&&r&&e(oe,{onClick:r,children:Fe.UI.LOGIN}),s&&t("div",{className:"relative",children:[e(oe,{onClick:()=>C(!O),icon:O?"mdi:user-outline":"mdi:user"}),e("div",{onClick:()=>C(!1),className:m("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!O}),children:e(it,{links:n,inline:!1})})]})]}),e("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e(oe,{variant:ne.PRIMARY,icon:"mdi:menu",onClick:I})})]}),t("div",{className:m("navbar-menu relative z-50",y,{hidden:c}),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===(b=null==A?void 0:A.brand)||void 0===b?void 0:b.logo)&&e("div",{className:"relative w-32",children:e(we,{logo:null===(N=null==A?void 0:A.brand)||void 0===N?void 0:N.logo,aspectRatioClass:"aspect-[16/9]"})})}),e("div",{children:e(oe,{variant:ne.PRIMARY,icon:"mdi:close",onClick:I})})]}),t("div",{className:"flex flex-col flex-1 gap-4",children:[s&&e("div",{className:"md:hidden flex justify-center",children:e(ge,{children:"User profile avatar and details here."})}),e("div",{className:"flex flex-1 justify-center pt-4",children:e(it,{links:i,inline:!1})}),s&&e("div",{className:"md:hidden flex justify-center",children:e(oe,{onClick:l,children:Fe.UI.LOGOUT})}),!s&&e("div",{className:"md:hidden flex justify-center",children:e(oe,{onClick:()=>{r(),I()},children:Fe.UI.LOGIN})})]})]})]})]})};_t.displayName="Header";const Dt=({testID:t,inputCallback:a,seperator:r,numInputs:l=4,shouldAutoFocus:s=!1,size:c="medium"})=>{const[d,u]=o("");i.useEffect((()=>{d&&4===d.length&&void 0!==a&&"function"==typeof a&&a(d)}),[d]);const p=n((()=>{switch(c){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"}}}),[c]);return e("div",{"data-testid":t||'"OTPInput"',className:"foo-bar",children:e(B,{value:d,onChange:u,inputType:"number",numInputs:l,shouldAutoFocus:s,renderSeparator:r?()=>e("div",{className:"flex items-center justify-center",children:e(te,{name:"mdi:dot",className:"opacity-50"})}):e("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e("input",Object.assign({},t,{className:m("remove-arrow form-item text-input w-12")})),inputStyle:{width:p.width,height:p.height}})})};var kt,Mt;function Pt({className:a,label:i,onChange:n,options:r}){return t("div",{className:m("m-0 p-0 mb-2 border-none",a),children:[e(Ie,{className:"text-sm",transform:pe.UPPERCASE,children:i}),e(Ze,{id:i||"Sorting",options:r,onChange:e=>n(e.target.value)})]})}function Ft(t){var{className:a,current:i,resultsPerPage:n=10,onChange:r,totalPages:l}=t,o=se(t,["className","current","resultsPerPage","onChange","totalPages"]);return e(Z,Object.assign({current:i,onChange:r,simple:!0,pageSize:n,total:l*n,className:m("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:J,prevIcon:e("div",{className:"text-bodyText",children:e(te,{name:"mdi:chevron-left"})}),nextIcon:e("div",{className:"text-bodyText",children:e(te,{name:"mdi:chevron-right"})})},o))}function Ut({className:i,onChange:n,options:r,label:l}){return r?t("div",{className:m("m-0 p-0 mb-2 border-none",i),children:[e(Ie,{className:"text-sm mr-2",transform:pe.UPPERCASE,children:Fe.UI.SHOW}),e(Ze,{id:l||"ResultsPerPage",options:r.map((e=>({label:e.toString(),value:e}))),onChange:e=>n(e.target.value),className:"min-w-20"})]}):e(a,{})}function Bt(i){var{className:n,end:r,searchTerm:l,start:o,totalResults:s}=i,c=se(i,["className","end","searchTerm","start","totalResults"]);return t("div",Object.assign({className:m("m-0 p-0 flex-1",n)},c,{children:["Showing"," ",t("strong",{children:[o," - ",r]})," ","out of ",e("strong",{children:s}),l&&t(a,{children:[" ","for: ",e("em",{children:l})]})]}))}function jt({className:a,onChange:i,onSubmit:n,wasSearched:r,placeholder:l}){const o=d(W);return e("div",{className:m("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(Pe,{name:"SearchBoxInput",type:Me.TEXT,placeholder:l||"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:[r&&e(oe,{type:ie.BUTTON,onClick:()=>o.driver.reset(),variant:ne.SECONDARY,children:"Reset"}),e(oe,{type:ie.SUBMIT,variant:ne.PRIMARY,children:"Search"})]})})]})})}function Wt({className:a,children:i,header:n,bodyContent:r,bodyFooter:l,bodyHeader:o,sideContent:s}){const c=m("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":!s});return t("div",{className:m("w-full flex flex-col",a),children:[e("div",{className:"m-auto md:py-0 w-full",children:n}),t("div",{className:m("md:grid m-auto md:py-0 w-full",{"md:grid-cols-searchLayout":!s,"md:grid-cols-searchLayoutWithSidebar":s}),children:[e("div",{className:c,children:s}),t("div",{className:m("p-0 pt-2 md:p-6 md:pr-0",{"md:pl-0":!s}),children:[e("div",{className:"flex flex-row gap-8 items-center justify-end",children:o}),e("div",{className:"relative",children:i||r}),e("div",{className:"flex items-center justify-around",children:l})]})]})]})}function Gt(t){var{children:a,className:i,gridClasses:n}=t,r=se(t,["children","className","gridClasses"]);const l=n||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return e("ul",Object.assign({className:m("relative grid gap-4 mb-4",l,i)},r,{children:a}))}function Ht(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function zt(e,t){if(e)return e[t]}function Yt(e){const t=zt(e,"snippet")||(a=function(e){return zt(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 qt({className:t,result:a,as:i,cardMap:n={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:r,titleField:l,imageField:o,videoField:s,descriptionField:c,metaDataFields:d,cardProps:u}=n,p=r&&Yt(a[r.fieldName]),h=l&&Yt(a[l.fieldName]),f=o&&Yt(a[o.fieldName]),v=s&&s.formatter?s.formatter(Yt(a[s.fieldName])):s&&Yt(a[s.fieldName]),g=c&&Yt(a[c.fieldName]),E=d&&d.map((e=>{const t=Yt(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)}));return e("li",{className:m("relative",t),children:(()=>{const t={id:p,title:h,image:{src:f||"",alt:h||"",title:h||"",width:500,height:500},video:v,description:g,metaData:E,actions:n.actionsData,onClick:n.onClickLink};switch(i){case Mt.cardMedia:return e(Ke,Object.assign({variant:kt.MEDIA,data:t},u));case Mt.cardVideo:return e(Ke,Object.assign({variant:kt.VIDEO,data:t},u,{isMuted:!1}));default:return e(Ke,Object.assign({variant:kt.BASIC,data:t},u))}})()})}function Vt({showOptions:a,sortOptions:r,resultAs:l=Mt.cardBasic,ResultFieldMap:o,config:s={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:c=[],noSidebar:d=!1,customConnector:m,showPagingInfo:u,gridClasses:p,initialState:h={},showTextSearch:f=!0}){const v=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 j(m||e)}),[]),g=n((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:s.alwaysSearchOnInitialLoad,apiConnector:v,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==a?void 0:a[0])||8},h)})),[s]);return e(G,{config:g,children:e(H,{mapContextToProps:({wasSearched:e})=>({wasSearched:e}),children:({wasSearched:n})=>e(i.Fragment,{children:e(z,{children:e(Wt,{header:f&&e(Y,{view:t=>e(jt,Object.assign({},t,{wasSearched:n,placeholder:s.initialPlaceholder}))}),sideContent:!d&&c&&t(i.Fragment,{children:[n&&e(q,{label:"Sort by",sortOptions:r,view:Pt}),null==c?void 0:c.map((({field:t,label:a,view:i})=>e(V,{field:t,label:a,view:i},t)))]}),bodyContent:e(K,{shouldTrackClickThrough:!1,resultView:t=>e(qt,Object.assign({},t,{as:l,cardMap:o})),className:"list-none p-0 m-0",view:t=>e(Gt,Object.assign({},t,{gridClasses:p}))}),bodyHeader:t(i.Fragment,{children:[n&&u&&e($,{view:Bt}),n&&a&&e(X,{view:Ut,options:a}),n&&r&&d&&e(q,{label:"Sort by",sortOptions:r,view:Pt})]}),bodyFooter:e(Q,{view:Ft}),noSidebar:d})})})})})}function Kt({className:a,label:i,onChange:n,options:r}){const l=r.map((e=>({value:e.value,label:`${e.value} (${e.count})`})));return t("fieldset",{className:m("m-0 p-0 mt-4 mb-2 border-none",a),children:[e(Ie,{className:"text-sm",transform:pe.UPPERCASE,children:i}),e(Ze,{id:i,options:l,onChange:e=>n(e.target.value)})]})}function $t({className:a,label:i,onRemove:n,onSelect:r,options:l}){const o=l.filter((e=>e.selected)).map((e=>e.value))[0];return e("fieldset",{className:m("m-0 p-0 mt-4 mb-2 border-none",a),children:t("div",{children:[e(Ie,{className:"text-sm",transform:pe.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:[Ht(o),e("span",{className:"ml-1 px-1",children:e(oe,{onClick:()=>n(o),children:e(te,{name:"mdi:close"})})})]}),!o&&l.map((a=>{const n=Ht(a.value);return t("li",{className:"m-0 flex justify-between",children:[e("a",{className:"no-underline text-sm visited:text-bodyText","data-transaction-name":`facet - ${i}`,href:"/",onClick:e=>{e.preventDefault(),r(a.value)},children:e("label",{className:"label pl-0 leading-none text-sm",children:n})}),e(ge,{as:ve.SPAN,size:fe.SMALL,children:a.count.toLocaleString("en")})]},n)}))]})]})})}function Xt({className:i,label:n,onMoreClick:r,onRemove:l,onSelect:o,options:s,showMore:c,showSearch:d,onSearch:u,searchPlaceholder:p}){return s?t("fieldset",{className:m("m-0 p-0 mt-4 mb-2 border-none",i),children:[e(Ie,{className:"text-sm",transform:pe.UPPERCASE,children:n}),d&&e("div",{className:"mt-1",children:e(Pe,{type:Me.SEARCH,placeholder:p||"Search",onChange:e=>{u(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,r=a.value,s=Ht(r);return t("div",{className:"flex justify-between pb-2",children:[e(de,{id:`facet_${n}${s}`,"data-transaction-name":`facet - ${n}`,checked:i,onChange:()=>i?l(r):o(r),label:s}),e(ge,{as:ve.SPAN,size:fe.SMALL,children:a.count.toLocaleString("en")})]},s)}))]}),c&&e(oe,{size:re.SMALL,variant:ne.TERTIARY,onClick:r,"aria-label":"Show more options",children:"+ More"})]}):e(a,{children:"Options required"})}Dt.displayName="OTPInput",function(e){e.BASIC="basic",e.MEDIA="media",e.VIDEO="video",e.ICON="icon",e.HORZ="horz",e.DATA="data"}(kt||(kt={})),function(e){e.cardBasic="cardBasic",e.cardMedia="cardMedia",e.cardVideo="cardVideo"}(Mt||(Mt={})),Pt.displayName="Sorting",Ft.displayName="Paging",Ut.displayName="ResultsPerPage",Bt.displayName="PagingInfo",jt.displayName="SearchBox",Wt.displayName="Layout",Gt.displayName="Results",qt.displayName="Result",Kt.displayName="SingleSelectFacet",$t.displayName="SingleLinksFacet",Xt.displayName="MultiCheckboxFacet";const Qt=({handleSubmit:t})=>e("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e(Xe,{onSubmit:t,submit:Fe.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e(Je,{name:"password",type:Qe.PASSWORD,label:Fe.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:pt})})});Qt.displayName="ResetPasswordForm";const Zt=({testID:a,initialValues:i,handleSubmit:n})=>e("div",{"data-testid":a||'"ProfileForm"',className:"form-wrapper",children:t(Xe,{onSubmit:n,submit:Fe.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:i,children:[e("div",{className:"mb-4 items-center justify-center flex",children:e(Ue,{name:"avatar",initValue:null==i?void 0:i.avatar})}),e(Je,{name:"firstName",type:Qe.TEXT,label:Fe.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e(Je,{name:"lastName",type:Qe.TEXT,label:Fe.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e(Je,{name:"email",type:Qe.EMAIL,label:Fe.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:ut})]})});Zt.displayName="ProfileForm";const Jt={isDarkTheme:!1,toggleTheme:()=>{}},ea=i.createContext(Jt),ta=({children:t,theme:a})=>e(ea.Provider,{value:a,children:t});function aa(){var e;return null===(e=d(Lt).locale)||void 0===e||e.lang,Fe}function ia(){return d(ea)}const na={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 ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var la={exports:{}},oa={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]},sa={exports:{}},ca=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))},da=Array.prototype.concat,ma=Array.prototype.slice,ua=sa.exports=function(e){for(var t=[],a=0,i=e.length;a<i;a++){var n=e[a];ca(n)?t=da.call(t,ma.call(n)):t.push(n)}return t};ua.wrap=function(e){return function(){return e(ua(arguments))}};var pa=sa.exports,ha=oa,fa=pa,va=Object.hasOwnProperty,ga=Object.create(null);for(var Ea in ha)va.call(ha,Ea)&&(ga[ha[Ea]]=Ea);var ba=la.exports={to:{},get:{}};function Na(e,t,a){return Math.min(Math.max(t,e),a)}function Aa(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}ba.get=function(e){var t,a;switch(e.substring(0,3).toLowerCase()){case"hsl":t=ba.get.hsl(e),a="hsl";break;case"hwb":t=ba.get.hwb(e),a="hwb";break;default:t=ba.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},ba.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 r=2*a;n[a]=parseInt(t.slice(r,r+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]:va.call(ha,t[1])?((n=ha[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]=Na(n[a],0,255);return n[3]=Na(n[3],0,1),n},ba.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,Na(parseFloat(t[2]),0,100),Na(parseFloat(t[3]),0,100),Na(isNaN(a)?1:a,0,1)]}return null},ba.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,Na(parseFloat(t[2]),0,100),Na(parseFloat(t[3]),0,100),Na(isNaN(a)?1:a,0,1)]}return null},ba.to.hex=function(){var e=fa(arguments);return"#"+Aa(e[0])+Aa(e[1])+Aa(e[2])+(e[3]<1?Aa(Math.round(255*e[3])):"")},ba.to.rgb=function(){var e=fa(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]+")"},ba.to.rgb.percent=function(){var e=fa(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]+")"},ba.to.hsl=function(){var e=fa(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},ba.to.hwb=function(){var e=fa(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},ba.to.keyword=function(e){return ga[e.slice(0,3)]};var ya=la.exports;const Sa=oa,Oa={};for(const e of Object.keys(Sa))Oa[Sa[e]]=e;const Ca={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 Ia=Ca;for(const e of Object.keys(Ca)){if(!("channels"in Ca[e]))throw new Error("missing channels property: "+e);if(!("labels"in Ca[e]))throw new Error("missing channel labels property: "+e);if(Ca[e].labels.length!==Ca[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:a}=Ca[e];delete Ca[e].channels,delete Ca[e].labels,Object.defineProperty(Ca[e],"channels",{value:t}),Object.defineProperty(Ca[e],"labels",{value:a})}Ca.rgb.hsl=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,n=Math.min(t,a,i),r=Math.max(t,a,i),l=r-n;let o,s;r===n?o=0:t===r?o=(a-i)/l:a===r?o=2+(i-t)/l:i===r&&(o=4+(t-a)/l),o=Math.min(60*o,360),o<0&&(o+=360);const c=(n+r)/2;return s=r===n?0:c<=.5?l/(r+n):l/(2-r-n),[o,100*s,100*c]},Ca.rgb.hsv=function(e){let t,a,i,n,r;const l=e[0]/255,o=e[1]/255,s=e[2]/255,c=Math.max(l,o,s),d=c-Math.min(l,o,s),m=function(e){return(c-e)/6/d+.5};return 0===d?(n=0,r=0):(r=d/c,t=m(l),a=m(o),i=m(s),l===c?n=i-a:o===c?n=1/3+t-i:s===c&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*r,100*c]},Ca.rgb.hwb=function(e){const t=e[0],a=e[1];let i=e[2];const n=Ca.rgb.hsl(e)[0],r=1/255*Math.min(t,Math.min(a,i));return i=1-1/255*Math.max(t,Math.max(a,i)),[n,100*r,100*i]},Ca.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]},Ca.rgb.keyword=function(e){const t=Oa[e];if(t)return t;let a,i=1/0;for(const t of Object.keys(Sa)){const l=(r=Sa[t],((n=e)[0]-r[0])**2+(n[1]-r[1])**2+(n[2]-r[2])**2);l<i&&(i=l,a=t)}var n,r;return a},Ca.keyword.rgb=function(e){return Sa[e]},Ca.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)]},Ca.rgb.lab=function(e){const t=Ca.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)]},Ca.hsl.rgb=function(e){const t=e[0]/360,a=e[1]/100,i=e[2]/100;let n,r,l;if(0===a)return l=255*i,[l,l,l];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++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,l=6*r<1?o+6*(n-o)*r:2*r<1?n:3*r<2?o+(n-o)*(2/3-r)*6:o,s[e]=255*l;return s},Ca.hsl.hsv=function(e){const t=e[0];let a=e[1]/100,i=e[2]/100,n=a;const r=Math.max(i,.01);i*=2,a*=i<=1?i:2-i,n*=r<=1?r:2-r;return[t,100*(0===i?2*n/(r+n):2*a/(i+a)),100*((i+a)/2)]},Ca.hsv.rgb=function(e){const t=e[0]/60,a=e[1]/100;let i=e[2]/100;const n=Math.floor(t)%6,r=t-Math.floor(t),l=255*i*(1-a),o=255*i*(1-a*r),s=255*i*(1-a*(1-r));switch(i*=255,n){case 0:return[i,s,l];case 1:return[o,i,l];case 2:return[l,i,s];case 3:return[l,o,i];case 4:return[s,l,i];case 5:return[i,l,o]}},Ca.hsv.hsl=function(e){const t=e[0],a=e[1]/100,i=e[2]/100,n=Math.max(i,.01);let r,l;l=(2-a)*i;const o=(2-a)*n;return r=a*n,r/=o<=1?o:2-o,r=r||0,l/=2,[t,100*r,100*l]},Ca.hwb.rgb=function(e){const t=e[0]/360;let a=e[1]/100,i=e[2]/100;const n=a+i;let r;n>1&&(a/=n,i/=n);const l=Math.floor(6*t),o=1-i;r=6*t-l,1&l&&(r=1-r);const s=a+r*(o-a);let c,d,m;switch(l){default:case 6:case 0:c=o,d=s,m=a;break;case 1:c=s,d=o,m=a;break;case 2:c=a,d=o,m=s;break;case 3:c=a,d=s,m=o;break;case 4:c=s,d=a,m=o;break;case 5:c=o,d=a,m=s}return[255*c,255*d,255*m]},Ca.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))]},Ca.xyz.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100;let n,r,l;return n=3.2406*t+-1.5372*a+-.4986*i,r=-.9689*t+1.8758*a+.0415*i,l=.0557*t+-.204*a+1.057*i,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),l=Math.min(Math.max(0,l),1),[255*n,255*r,255*l]},Ca.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)]},Ca.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,r=t**3,l=i**3;return a=n>.008856?n:(a-16/116)/7.787,t=r>.008856?r:(t-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,t*=95.047,a*=100,i*=108.883,[t,a,i]},Ca.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]},Ca.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)]},Ca.rgb.ansi16=function(e,t=null){const[a,i,n]=e;let r=null===t?Ca.rgb.hsv(e)[2]:t;if(r=Math.round(r/50),0===r)return 30;let l=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(a/255));return 2===r&&(l+=60),l},Ca.hsv.ansi16=function(e){return Ca.rgb.ansi16(Ca.hsv.rgb(e),e[2])},Ca.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)},Ca.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]},Ca.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]},Ca.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},Ca.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]},Ca.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),r=Math.min(Math.min(t,a),i),l=n-r;let o,s;return o=l<1?r/(1-l):0,s=l<=0?0:n===t?(a-i)/l%6:n===a?2+(i-t)/l:4+(t-a)/l,s/=6,s%=1,[360*s,100*l,100*o]},Ca.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]},Ca.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]},Ca.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],r=t%1*6,l=r%1,o=1-l;let s=0;switch(Math.floor(r)){case 0:n[0]=1,n[1]=l,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]=l;break;case 3:n[0]=0,n[1]=o,n[2]=1;break;case 4:n[0]=l,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)]},Ca.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]},Ca.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]},Ca.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)]},Ca.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]},Ca.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Ca.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Ca.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Ca.gray.hsl=function(e){return[0,0,e[0]]},Ca.gray.hsv=Ca.gray.hsl,Ca.gray.hwb=function(e){return[0,100,e[0]]},Ca.gray.cmyk=function(e){return[0,0,0,e[0]]},Ca.gray.lab=function(e){return[e[0],0,0]},Ca.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},Ca.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Ra=Ia;function Ta(e){const t=function(){const e={},t=Object.keys(Ra);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(Ra[e]);for(let n=i.length,r=0;r<n;r++){const n=i[r],l=t[n];-1===l.distance&&(l.distance=t[e].distance+1,l.parent=e,a.unshift(n))}}return t}function La(e,t){return function(a){return t(e(a))}}function wa(e,t){const a=[t[e].parent,e];let i=Ra[t[e].parent][e],n=t[e].parent;for(;t[n].parent;)a.unshift(t[n].parent),i=La(Ra[t[n].parent][n],i),n=t[n].parent;return i.conversion=a,i}const xa=Ia,_a=function(e){const t=Ta(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]=wa(e,t))}return a},Da={};Object.keys(xa).forEach((e=>{Da[e]={},Object.defineProperty(Da[e],"channels",{value:xa[e].channels}),Object.defineProperty(Da[e],"labels",{value:xa[e].labels});const t=_a(e);Object.keys(t).forEach((a=>{const i=t[a];Da[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),Da[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 ka=ya,Ma=Da,Pa=["keyword","gray","hex"],Fa={};for(const e of Object.keys(Ma))Fa[[...Ma[e].labels].sort().join("")]=e;const Ua={};function Ba(e,t){if(!(this instanceof Ba))return new Ba(e,t);if(t&&t in Pa&&(t=null),t&&!(t in Ma))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 Ba)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=ka.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,i=Ma[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=Ma[this.model].channels;const a=Array.prototype.slice.call(e,0,i);this.color=Ha(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 Fa))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Fa[i];const{labels:n}=Ma[this.model],r=[];for(a=0;a<n.length;a++)r.push(e[n[a]]);this.color=Ha(r)}if(Ua[this.model])for(i=Ma[this.model].channels,a=0;a<i;a++){const e=Ua[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)}Ba.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in ka.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const a=1===t.valpha?t.color:[...t.color,this.valpha];return ka.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 ka.to.rgb.percent(a)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Ma[this.model],{labels:a}=Ma[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 Ba([...this.color.map(ja(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new Ba([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Wa("rgb",0,Ga(255)),green:Wa("rgb",1,Ga(255)),blue:Wa("rgb",2,Ga(255)),hue:Wa(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:Wa("hsl",1,Ga(100)),lightness:Wa("hsl",2,Ga(100)),saturationv:Wa("hsv",1,Ga(100)),value:Wa("hsv",2,Ga(100)),chroma:Wa("hcg",1,Ga(100)),gray:Wa("hcg",2,Ga(100)),white:Wa("hwb",1,Ga(100)),wblack:Wa("hwb",2,Ga(100)),cyan:Wa("cmyk",0,Ga(100)),magenta:Wa("cmyk",1,Ga(100)),yellow:Wa("cmyk",2,Ga(100)),black:Wa("cmyk",3,Ga(100)),x:Wa("xyz",0,Ga(95.047)),y:Wa("xyz",1,Ga(100)),z:Wa("xyz",2,Ga(108.833)),l:Wa("lab",0,Ga(100)),a:Wa("lab",1),b:Wa("lab",2),keyword(e){return void 0!==e?new Ba(e):Ma[this.model].keyword(this.color)},hex(e){return void 0!==e?new Ba(e):ka.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new Ba(e);const t=this.rgb().round().color;let a=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===a.length&&(a="0"+a),ka.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 Ba.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,r=2*n-1,l=a.alpha()-i.alpha(),o=((r*l==-1?r:(r+l)/(1+r*l))+1)/2,s=1-o;return Ba.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(Ma)){if(Pa.includes(e))continue;const{channels:t}=Ma[e];Ba.prototype[e]=function(...t){return this.model===e?new Ba(this):t.length>0?new Ba(t,e):new Ba([...(a=Ma[this.model][e].raw(this.color),Array.isArray(a)?a:[a]),this.valpha],e);var a},Ba[e]=function(...a){let i=a[0];return"number"==typeof i&&(i=Ha(a,t)),new Ba(i,e)}}function ja(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function Wa(e,t,a){e=Array.isArray(e)?e:[e];for(const i of e)(Ua[i]||(Ua[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 Ga(e){return function(t){return Math.max(0,Math.min(e,t))}}function Ha(e,t){for(let a=0;a<t;a++)"number"!=typeof e[a]&&(e[a]=0);return e}var za=ra(Ba);const Ya=(e,t)=>za(e).darken(t).rgb().string(),qa=Object.assign({inherit:"inherit",transparent:"transparent",black:na.colors.black,white:na.colors.white,bodyBackground:na.colors.white,darkBodyBackground:na.colors.primary,bodyText:na.colors.primary,bodyTextInverted:na.colors.primary50,darkBodyText:na.colors.primary50,display:na.colors.black,darkDisplay:na.colors.white},Object.assign({},...Object.keys(na.colors).map((e=>{const t=na.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,za(a).lighten(i).rgb().string()),darker:Ya(t,.1)}};var a,i})))),Va=Object.assign(Object.assign({},na),{colors:Object.assign(Object.assign({},na.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({},na.borderRadius),fontWeight:Object.assign(Object.assign({},na.fontWeight),{light:"300",normal:"400",bold:"700"})}),Ka=(e,t)=>za(e).darken(t).rgb().string(),$a=Object.assign(Object.assign(Object.assign({},qa),{bodyBackground:Va.colors.primary700,darkBodyBackground:Va.colors.primary800,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(Va.colors).map((e=>{const t=Va.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,za(a).lighten(i).rgb().string()),darker:Ka(t,.1)}};var a,i})))),Xa=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"]}),Qa=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),Za={colors:Object.assign({},$a),fontFamily:Object.assign({},Xa),fontSize:Object.assign({},null==Va?void 0:Va.fontSize),fontWeight:Object.assign({},null==Va?void 0:Va.fontWeight),buttons:Object.assign({},Qa),screens:Object.assign({},null==Va?void 0:Va.screens),borderRadius:Object.assign({},null==Va?void 0:Va.borderRadius),spacing:Object.assign({},null==Va?void 0:Va.spacing),extend:Object.assign({},null==Va?void 0:Va.extend)};export{ee as AnimationCounter,ct as AnimationSet1,wt as AppContext,wt as AppProvider,gt as Authenticator,Ue as Avatar,re as BTN_SIZES,ie as BTN_TYPES,ne as BTN_VARIANTS,ae as Blockquote,oe as Button,Be as ButtonGroup,ue as COPY_ALIGN,he as COPY_CONTEXTUAL,fe as COPY_SIZE,ve as COPY_TAG,pe as COPY_TRANSFORM,Ct as CPL_SPACING,Rt as CRL_SIZE,Ke as Card,kt as CardVariant,de as Checkbox,Ee as Chip,rt as Container,It as ContentPageLayout,Tt as ContentRowsLayout,ge as Copy,$e as DisplayHeading,Qe as FIELD_TYPES,be as FileUpload,xt as Footer,vt as ForgotPasswordForm,Xe as Form,Je as FormField,Ze as FormSelect,Ae as HEADING_ALIGN,Ne as HEADING_TAGS,ye as HEADING_TRANSFORM,_t as Header,Se as Heading,lt as Hero,Oe as Hr,st as HtmlContent,te as Icon,Ce as Image,Ie as Label,me as Link,Le as List,xe as ListItem,Te as ListTag,le as Loader,ht as LoginForm,we as Logo,it as Menu,Xt as MultiCheckboxFacet,_e as Notice,Dt as OTPInput,bt as PanelCards,Nt as PanelFeature,yt as PanelHero,St as PanelProduct,Ot as PanelVideo,Zt as ProfileForm,De as Radio,ft as RegisterForm,Qt as ResetPasswordForm,Mt as ResultAsTypes,Fe as STRINGS_EN,Vt as Search,et as Share,$t as SingleLinksFacet,Kt as SingleSelectFacet,ke as Switch,tt as Tabs,Pe as TextInput,ea as ThemeContext,ta as ThemeProvider,Re as Variants,At as Video,at as VisitUs,Jt as defaultTheme,Za as theme,aa as useLanguage,ia as useTheme};
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import i,{useMemo as n,createElement as r,useEffect as l,useState as o,useRef as s,createContext as c,useContext as d}from"react";import m from"classnames";import{useInView as u,useIsomorphicLayoutEffect as p,animate as h,motionValue as f,motion as v,useAnimation as g}from"framer-motion";import{Icon as E}from"@iconify/react";import{twMerge as b}from"tailwind-merge";import N from"react-hover-video-player";import{useForm as A,FormProvider as y,useFormContext as S,Controller as O}from"react-hook-form";import{FacebookShareButton as C,TwitterShareButton as I,WhatsappShareButton as R,EmailShareButton as T,LinkedinShareButton as L}from"react-share";import{Tabs as w,TabList as x,Tab as _,TabPanel as D}from"react-tabs";import k,{attributesToProps as M,domToReact as P}from"html-react-parser";import"libphonenumber-js";import F from"react-player/youtube";import U from"video.js";import B from"react-otp-input";import j from"@elastic/search-ui-elasticsearch-connector";import{SearchContext as W,SearchProvider as G,WithSearch as H,ErrorBoundary as z,SearchBox as Y,Sorting as q,Facet as V,Results as K,PagingInfo as $,ResultsPerPage as X,Paging as Q}from"@elastic/react-search-ui";import Z from"rc-pagination";import J from"rc-pagination/lib/locale/en_US";const ee=({testID:t,from:a,to:n,animationOptions:r,className:l,numDecimals:o=0})=>{const s=i.useRef(null),c=u(s,{once:!0});return p((()=>{const e=s.current;if(!e||!c)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=n.toString());e.textContent=a.toString();const t=h(a,n,Object.assign(Object.assign({duration:1,ease:"easeOut"},r),{onUpdate:t=>{e.textContent=t.toFixed(o)}}));return()=>{t.stop()}}),[s,c,a,n,r]),e("span",{ref:s,"data-testid":t||"AnimationCounter",className:m("relative",l)})};ee.displayName="AnimationCounter";const te=({name:t,size:a=24,color:i,id:n,className:r,testID:l})=>e(E,{"data-testid":l||n||"Icon",icon:t,width:a,height:a,color:i||"currentColor",className:r});te.displayName="Icon";const ae=({text:a,citation:i,className:n,citationAttribute:r,showIcon:l=!0})=>{const o=m("text-xl italic font-bold",n);return t("blockquote",{"data-testid":"Blockquote",className:o,children:[l&&e(te,{name:"mdi:comment-quote",size:42}),e("div",{children:a}),i&&e("figcaption",{className:"flex flex-start items-center mt-6 space-x-3",children:t("div",{className:"flex items-center divide-x-2",children:[e("cite",{className:"pr-3 font-medium",children:i}),r&&e("cite",{className:"pl-3 text-sm font-light",children:r})]})})]})};var ie,ne,re;ae.displayName="Blockquote",function(e){e.SUBMIT="submit",e.RESET="reset",e.BUTTON="button"}(ie||(ie={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link"}(ne||(ne={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(re||(re={}));const le=({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..."})]})});le.displayName="Loader";const oe=({variant:i=ne.PRIMARY,size:n=re.MEDIUM,type:r=ie.BUTTON,wide:l=!1,rounded:o=!1,raised:s=!1,uppercase:c,children:d,id:u,disabled:p,ariaLabel:h,onClick:f,icon:v,external:g,iconFirst:E,outline:N,testID:A,className:y,isLoading:S})=>{var O,C,I,R;const T={small:{x:d?l?"px-5":"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:d?l?"px-8":"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:d?l?"px-11":"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},L=b(m("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:c},{"auto-cols-auto grid-cols-2 gap-4":S||v||g},{"rounded-full":o},{"flex-row-reverse":E},{"opacity-50 cursor-not-allowed":p},`${null===(O=null==T?void 0:T[n])||void 0===O?void 0:O.y} ${null===(C=null==T?void 0:T[n])||void 0===C?void 0:C.x} ${null===(I=null==T?void 0:T[n])||void 0===I?void 0:I.text}`,{"text-white border-primary bg-primary hover:bg-primary-darker":i===ne.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":i===ne.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":i===ne.TERTIARY},{"px-0 text-primary border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert":i===ne.LINK},y)),w=m(null===(R=null==T?void 0:T[n])||void 0===R?void 0:R.icon);return e("button",{id:u,"data-testid":A||u||"Button",onClick:f,className:L,type:r,disabled:p,"aria-label":h,role:"button",children:t(a,{children:[d,v&&!g&&e("span",{className:"flex items-center",children:e(te,{name:v,className:w})}),g&&e("span",{className:"flex items-center",children:e(te,{name:"carbon:launch",className:w})}),S&&e("div",{className:"flex items-center",children:e(le,{size:4})})]})})};function se(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 ce(e,t,a,i){return new(a||(a=Promise))((function(n,r){function l(e){try{s(i.next(e))}catch(e){r(e)}}function o(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(l,o)}s((i=i.apply(e,t||[])).next())}))}oe.displayName="Button","function"==typeof SuppressedError&&SuppressedError;const de=i.forwardRef((function(a,i){var{id:n,label:r,required:l,className:o,disabled:s}=a,c=se(a,["id","label","required","className","disabled"]);return t("div",{"data-testid":"Checkbox",className:m("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:l},c)),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(te,{name:"mdi:check-bold",size:12})})]}),r&&e("label",{className:"label pl-2 leading-none text-sm",htmlFor:n,children:r})]})}));de.displayName="Checkbox";const me=({href:a,children:n,onClick:r=(()=>{}),history:l,target:o,id:s,testID:c,className:d,prefetch:u,hideExternalIcon:p=!1})=>{const h=m("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",d);if(!p&&a&&a.startsWith("http"))return t("span",{children:[e("a",{"data-testid":c||s||"Link",className:m(h),href:a,target:"_blank",rel:"noopener noreferrer",children:n}),e(te,{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:r,"data-testid":c||s||"Link",className:h,target:o||"_self",prefetch:u||!1},n)}catch(t){return e("a",{"data-testid":c||s||"Link",className:h,href:a,onClick:e=>{r?r(e):!0!==e.defaultPrevented&&l&&a&&(e.preventDefault(),l.push(a))},target:o,children:n})}};var ue,pe,he,fe,ve;me.displayName="Link",function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(ue||(ue={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(pe||(pe={})),function(e){e.INVERTED="inverted",e.MUTED="muted"}(he||(he={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.INTRO="intro"}(fe||(fe={})),function(e){e.P="p",e.SPAN="span",e.DIV="div",e.SMALL="small"}(ve||(ve={}));const ge=({children:t,as:a=ve.P,size:i,bold:n,align:r,transform:l,underlined:o,id:s,className:c,testID:d})=>{const u=m({[`text-${r}`]:r},{"font-bold":n},{"text-sm":"small"===i},{"text-base":"medium"===i},{"text-lg":"large"===i},{"text-2xl":"intro"===i},{"text-base mb-3 mt-0":"p"===a},{"text-sm":"small"===a},{underline:o},l,c);return e(a,{"data-testid":d||s||"Copy",className:b(u),children:t})};ge.displayName="Copy";const Ee=({testID:a,text:i,outline:r,rounded:l,variant:o,size:s="medium",icon:c,iconFirst:d,onClick:u})=>{const p=n((()=>{switch(s){case"small":return{iconSize:16,copySize:fe.SMALL};case"medium":default:return{iconSize:20,copySize:fe.MEDIUM};case"large":return{iconSize:28,copySize:fe.LARGE}}}),[s]),h=b(m("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":r},{"rounded-full":l},{"flex-row-reverse":d},{"bg-primary text-white":"primary"===o},{"bg-secondary text-white":"secondary"===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-2":"small"===s},{"py-2 px-4":"medium"===s},{"py-3 px-6":"large"===s}));return u&&"function"==typeof u?t(me,{"data-testid":a||"Chip",className:h,onClick:u,children:[e(ge,{className:"mb-0",as:ve.SPAN,size:p.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(te,{name:c,size:p.iconSize})})]}):t("div",{"data-testid":a||"Chip",className:h,children:[e(ge,{className:"mb-0",as:ve.SPAN,size:p.copySize,children:i}),c&&e("div",{className:"flex items-center justify-center",children:e(te,{name:c,size:p.iconSize})})]})};Ee.displayName="Chip";const be=i.forwardRef((function(t,a){var{id:i,name:n,required:r,disabled:l,className:o,onChangeCallback:s,onChange:c}=t,d=se(t,["id","name","required","disabled","className","onChangeCallback","onChange"]);return e("div",{"data-testid":"FileUpload",className:o,children:e("input",Object.assign({ref:a,className:m("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:l,required:r,name:n,id:i,onChange:e=>{s&&"function"==typeof s&&s(e),c&&"function"==typeof c&&c({target:{value:e.target.value,name:n}})}},d))})}));var Ne,Ae,ye;be.displayName="FileUpload",function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5"}(Ne||(Ne={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.JUSTIFY="justify",e.NOWRAP="nowrap"}(Ae||(Ae={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize",e.NORMAL_CASE="normal-case"}(ye||(ye={}));const Se=({children:t,tag:a=Ne.H2,transform:i,align:n,id:r,testID:l,flush:o,className:s,singleLine:c,bold:d=!0})=>{const u=(()=>{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-2xl md:text-3xl lg:text-3xl";case"h4":return"text-xl md:text-2xl lg:text-2xl";case"h5":return"text-lg md:text-lg lg:text-xl";default:return"text-2xl md:text-2xl lg:text-4xl"}})(),p=a,h=m(`m-0 p-0 font-heading ${u}`,{"font-bold":d},{[`text-${n}`]:n},{"mb-2":!o},{"m-0":o},{"whitespace-nowrap text-ellipsis overflow-hidden":c},i,s);return e(p,{"data-testid":l||r||"Heading",className:h,children:t})};Se.displayName="Heading";const Oe=({size:t="small"})=>e("hr",{className:m("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})});Oe.displayName="Hr";const Ce=a=>{var{src:i,alt:n,title:l,caption:o,figure:s=!1,onLoad:c,id:d,className:u,sizes:p="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:h}=a,f=se(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:p}:{};return r(e,Object.assign(Object.assign({src:i,alt:n,title:l,fill:t,onLoad:c,className:u},a),f))}catch(a){const r=m("m-0"),p=b(m("w-full h-full",u));return s||o?t("figure",{"data-testid":h||d||"Image",className:r,children:[e("img",{onLoad:c,src:i,alt:n,title:l,className:p}),o&&e("figcaption",{children:o})]}):e("img",{"data-testid":h||d||"Image",onLoad:c,src:i,alt:n,title:l,className:p})}};Ce.displayName="Image";const Ie=({children:t,id:a,transform:i,className:n})=>e("label",{"data-testid":"Label",className:b(m("label mb-2",i,n)),htmlFor:a,children:t});var Re,Te;Ie.displayName="Label",function(e){e.UNSTYLED="unstyled",e.INLINE="inline",e.SMALL="small",e.LARGE="large"}(Re||(Re={})),function(e){e.OL="ol",e.UL="ul",e.DL="dl",e.DIV="div",e.DT="dt",e.DD="dd",e.LI="li"}(Te||(Te={}));const Le=({variants:t,children:a,as:i=Te.UL,id:n,testID:r,className:l})=>{const o=t?t.map((e=>`list--${e}`)):null;return e(i,{"data-testid":r||n||"List",className:m(o,l),children:a})};Le.displayName="List";const we=({testID:t,logo:a,className:i,aspectRatioClass:n="aspect-[1/1]"})=>e("div",{"data-testid":t||"Logo",className:m("relative w-full",n,i),children:e(Ce,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});we.displayName="Logo";const xe=({children:t,as:a="li",id:i,testID:n,className:r})=>e(a,{"data-testid":n||i||"ListItem",className:m("list-item",r),children:t});xe.displayName="ListItem";const _e=({id:a,testID:i,title:n,text:r,icon:l,type:o,onCloseCallback:s,onClickCallback:c,actionText:d})=>{const u=m("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:u,children:t("div",{className:"flex gap-2",children:[l&&e("div",{className:"mr-2",children:e(te,{name:l})}),t("div",{children:[n&&e(Se,{tag:Ne.H3,children:n}),e(ge,{className:"mb-0",children:r})]}),c&&d&&e("div",{className:"ml-auto flex items-end",children:e(oe,{variant:ne.PRIMARY,onClick:c,"aria-label":"Action",size:re.SMALL,children:d})}),s&&e("div",{className:"absolute top-2 right-4",children:e(oe,{variant:ne.LINK,icon:"mdi:close",onClick:s,"aria-label":"Close"})})]})})};_e.displayName="Notice";const De=i.forwardRef((function(a,i){var{name:n,required:r,className:l,options:o}=a,s=se(a,["name","required","className","options"]);return e("div",{"data-testid":"Radio",className:m("flex items-center",l),children:e("div",{className:m("flex flex-col gap-2",l),children:null==o?void 0:o.map((a=>{var l;const o=(null===(l=null==a?void 0:a.value)||void 0===l?void 0:l.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:r,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(te,{name:"mdi:circle",size:12})})]}),e("label",{className:"label pl-2 leading-none",htmlFor:o,children:a.label})]},o)}))})})}));De.displayName="Radio";const ke=i.forwardRef((function(a,i){var{id:n,name:r,required:l,disabled:o,className:s}=a,c=se(a,["id","name","required","disabled","className"]);return t("label",{"data-testid":"Switch",className:m("inline-flex items-center cursor-pointer",s),children:[e("input",Object.assign({ref:i,id:n,name:r,type:"checkbox",value:"",className:"sr-only peer",disabled:o,required:l},c)),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 Me;ke.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"}(Me||(Me={}));const Pe=i.forwardRef((function(a,n){var{type:r=Me.TEXT,required:l=!1,className:o,onChange:s,placeholder:c,icon:d,disabled:u=!1,name:p,autoComplete:h}=a,f=se(a,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);i.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const v="date"===r?"dd/mm/yyyy".toUpperCase():c;return r===Me.TEXTAREA?e("div",{"data-testid":"TextInput",className:"relative",children:e("textarea",Object.assign({ref:n,id:p,autoComplete:p,required:l,"aria-required":l,disabled:u,placeholder:v,onChange:s,rows:4,className:m("form-item text-input resize-none",o)},f))}):t("div",{"data-testid":"TextInput",className:"relative",children:[d&&e("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e(te,{name:d})}),e("input",Object.assign({ref:n,id:p,type:r,autoComplete:h,required:l,"aria-required":l,disabled:u,placeholder:v,onChange:s,className:m("form-item text-input",{"pl-12":d},o)},f))]})}));Pe.displayName="TextInput";const Fe={GLOBAL:{SCREENS:{ACCOUNT:{TITLE:"Account"},CATALOGUE_LIST:{TITLE:"Catalogue"},CHALLENGE:{TITLE:"Challenge"},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 note entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",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"},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"}},Ue=({testID:n,name:r="avatar",isEditable:l=!0,initValue:o})=>{const[s,c]=i.useState(o);return 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:[s&&t(a,{children:[e(Ce,{src:s,alt:r,width:200,height:200}),l&&e("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e(oe,{size:re.SMALL,rounded:!0,onClick:()=>{c(void 0)},children:Fe.UI.REMOVE_BTN_LABEL})})]}),!s&&e(a,{children:l&&e("div",{className:"absolute w-full h-full flex items-center justify-center",children:e(Ie,{id:r,className:"button cursor-pointer mb-0",children:e(ge,{className:"mb-0",children:Fe.UI.UPLOAD})})})})]}),e("input",{type:"file",id:r,name:r,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)}}})]})};Ue.displayName="Avatar";const Be=({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,r=0===i,l=i===a.length-1,o=m({"rounded-none":n},{"rounded-r":r,"rounded-l":l});return e("div",{children:e(oe,Object.assign({},t,{className:o,children:t.children}))},t.id)}))});Be.displayName="ButtonGroup";const je="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",We="transition duration-500 ease-in-out ",Ge=({id:a,title:i,description:n,image:r,className:l,metaData:o,actions:s,padded:c,scaleOnHover:d,onClick:u=(()=>{})})=>t("div",{id:a,"data-testid":"CardBasic",className:b(m(We,je,{"p-4":c},{"hover:scale-100":!d},l)),onClick:u,children:[r&&e("div",{className:b(m("relative w-full overflow-hidden aspect-[16/9]",{rounded:c},r.aspectRatio)),children:e(Ce,{fill:!0,src:null==r?void 0:r.src,sizes:"100vh",alt:null==r?void 0:r.alt,className:m("absolute inset-0 object-cover group-hover:scale-110 dura",We)})}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:m({"p-3":!c},{"pt-3":c}),children:[e("div",{children:i&&e(Se,{tag:Ne.H4,singleLine:!0,children:i})}),e("div",{children:n&&e(ge,{className:"mb-0",children: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(ge,{className:"text-xs",as:ve.SMALL,children:[e," ·"]},e):a===o.length-1?t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e]},e):t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e," ·"]},e)))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(oe,{variant:ne.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:re.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})}})]})]})]})})]});Ge.displayName="CardBasic";const He=({id:a,title:i,description:n,image:r,className:l,metaData:o,actions:s,onClick:c=(()=>{}),playCallback:d})=>t("div",{id:a,"data-testid":"CardBasic",className:m(We,je,l),onClick:c,children:[r&&t("div",{className:m("relative w-full overflow-hidden aspect-[16/9]",r.aspectRatio),children:[e(Ce,{fill:!0,src:null==r?void 0:r.src,sizes:"100vh",alt:null==r?void 0:r.alt,className:m("absolute inset-0 object-cover group-hover:scale-110",We)}),d&&e("div",{className:"absolute inset-0 flex items-center justify-center",children:e(oe,{variant:ne.PRIMARY,icon:"mdi:play",size:re.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof d&&d(e)}})})]}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:"p-3",children:[e("div",{children:i&&e(Se,{tag:Ne.H5,singleLine:!0,flush:!0,children:i})}),e("div",{children:n&&e(ge,{children: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(ge,{className:"text-xs",as:ve.SMALL,children:[e," ·"]},e):a===o.length-1?t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e]},e):t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e," ·"]},e)))}),s&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[s.like&&e(oe,{variant:ne.PRIMARY,icon:s.like.isActive?"mdi:like":"mdi:like-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.share.isActive?"mdi:share":"mdi:share-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.comment.isActive?"mdi:comment":"mdi:comment-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.report.isActive?"mdi:flag":"mdi:flag-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.download.isActive?"mdi:download":"mdi:download-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:re.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(oe,{variant:ne.PRIMARY,icon:s.delete.isActive?"mdi:delete":"mdi:delete-outline",size:re.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})}})]})]})]})})]});He.displayName="CardMedia";const ze=({video:a,isMuted:i=!0,id:n,title:r,description:l,image:o,className:s,metaData:c,actions:d,onClick:u=(()=>{})})=>t("div",{id:n,"data-testid":"CardVideo",className:m(We,je,s),onClick:u,children:[o&&a&&e("div",{className:m("relative w-full h-full aspect-[16/9]",o.aspectRatio),children:e(N,{videoId:`video--${n}`,playbackStartDelay:1e3,videoSrc:e("source",{src:a,type:"video/mp4"}),videoClassName:m("hls-hover-video w-full aspect-[16/9]",o.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:i,className:m("w-full overflow-hidden aspect-[16/9]",o.aspectRatio),pausedOverlay:e("div",{className:m("relative w-full overflow-hidden aspect-[16/9]",o.aspectRatio),children:e(Ce,{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:m("w-full flex items-center justify-center aspect-[16/9]",o.aspectRatio),children:e("div",{className:"",children:e(le,{})})})},`${n}--card`)}),e("div",{className:"w-full flex flex-col gap-1",children:t("div",{className:"p-3",children:[e("div",{children:r&&e(Se,{tag:Ne.H5,singleLine:!0,flush:!0,children:r})}),e("div",{children:l&&e(ge,{children:l})}),t("div",{className:"flex items-center justify-between gap-2",children:[c&&e("div",{className:"flex shrink-0",children:c.map(((e,a)=>0===a?t(ge,{className:"text-xs",as:ve.SMALL,children:[e," ·"]},e):a===c.length-1?t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e]},e):t(ge,{className:"text-xs",as:ve.SMALL,children:[" ",e," ·"]},e)))}),d&&t("div",{className:"flex items-center gap-1 flex-wrap",children:[d.like&&e(oe,{variant:ne.PRIMARY,icon:d.like.isActive?"mdi:like":"mdi:like-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.like)||void 0===t?void 0:t.onClick)&&"function"==typeof d.like.onClick&&d.like.onClick({id:n})}}),d.share&&e(oe,{variant:ne.PRIMARY,icon:d.share.isActive?"mdi:share":"mdi:share-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.share)||void 0===t?void 0:t.onClick)&&"function"==typeof d.share.onClick&&d.share.onClick({id:n})}}),d.save&&e(oe,{variant:ne.PRIMARY,icon:d.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.save)||void 0===t?void 0:t.onClick)&&"function"==typeof d.save.onClick&&d.save.onClick({id:n})}}),d.comment&&e(oe,{variant:ne.PRIMARY,icon:d.comment.isActive?"mdi:comment":"mdi:comment-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof d.comment.onClick&&d.comment.onClick({id:n})}}),d.bookmark&&e(oe,{variant:ne.PRIMARY,icon:d.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof d.bookmark.onClick&&d.bookmark.onClick({id:n})}}),d.report&&e(oe,{variant:ne.PRIMARY,icon:d.report.isActive?"mdi:flag":"mdi:flag-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.report)||void 0===t?void 0:t.onClick)&&"function"==typeof d.report.onClick&&d.report.onClick({id:n})}}),d.follow&&e(oe,{variant:ne.PRIMARY,icon:d.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof d.follow.onClick&&d.follow.onClick({id:n})}}),d.download&&e(oe,{variant:ne.PRIMARY,icon:d.download.isActive?"mdi:download":"mdi:download-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.download)||void 0===t?void 0:t.onClick)&&"function"==typeof d.download.onClick&&d.download.onClick({id:n})}}),d.edit&&e(oe,{variant:ne.PRIMARY,icon:d.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof d.edit.onClick&&d.edit.onClick({id:n})}}),d.delete&&e(oe,{variant:ne.PRIMARY,icon:d.delete.isActive?"mdi:delete":"mdi:delete-outline",size:re.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==d?void 0:d.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof d.delete.onClick&&d.delete.onClick({id:n})}})]})]})]})})]});ze.displayName="CardVideo";const Ye=({id:a,title:i,description:n,icon:r,className:l,onClick:o,moreTitle:s,align:c})=>t("div",{id:a,"data-testid":"CardIcon",className:b(m(We,o?je:"","p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===c},{"items-center":"center"===c},{"items-end":"right"===c},l)),children:[r&&e("div",{className:m("relative"),children:e(te,{name:r,size:48})}),t("div",{className:m({"text-left":"left"===c},{"text-center":"center"===c},{"text-right":"right"===c}),children:[e("div",{children:i&&e(Se,{tag:Ne.H5,singleLine:!0,children:i})}),e("div",{children:n&&e(ge,{align:c,children:n})})]}),o&&e("div",{className:"flex items-center justify-start gap-2",children:e(oe,{icon:"mdi:arrow-right",variant:ne.LINK,onClick:o,children:s})})]});Ye.displayName="CardIcon";const qe=({testID:a,id:i,title:n,description:r,image:l,onClick:o,className:s,padded:c,icon:d,raised:u=!0})=>t("div",{id:i,"data-testid":a||"CardHorz",className:m("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":c},{"shadow hover:shadow-lg":u},s),onClick:o,children:[l&&e("div",{className:"w-1/3 aspect-[1/1]",children:e("div",{className:b(m("relative w-full overflow-hidden h-full",l.aspectRatio)),children:e(Ce,{fill:!0,src:null==l?void 0:l.src,alt:null==l?void 0:l.alt,className:"absolute inset-0 object-cover"})})}),d&&!l&&e("div",{className:"py-2 pl-2",children:e(te,{name:d,size:30})}),e("div",{className:"flex flex-1 overflow-hidden h-min",children:t("div",{className:"flex-col gap-2 py-2 pr-2 overflow-hidden",children:[n&&e("div",{className:"",children:e(Se,{tag:Ne.H4,children:n})}),r&&e("div",{children:e(ge,{className:"mb-0",children:r})})]})})]});qe.displayName="CardHorz";const Ve=({testID:i,className:n,data:r,padded:o,shadow:s=!0})=>{const c=f(0);return l((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||h(c,200,{duration:.5})}),[c]),r?t("div",{"data-testid":i||"CardData",className:b(m("relative rounded-lg overflow-hidden flex flex-col items-center gap-4 p-2",{"p-4":o},{shadow:s},n)),children:[(null==r?void 0:r.animateNumber)&&t("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e(ee,{from:r.numberData.from,to:r.numberData.to,numDecimals:r.numberData.numDecimals}),e("span",{children:null==r?void 0:r.item})]}),!(null==r?void 0:r.animateNumber)&&e("div",{className:"text-lg",children:e(Se,{tag:Ne.H2,flush:!0,children:null==r?void 0:r.item})}),e("div",{children:e(ge,{className:"mb-0",children:null==r?void 0:r.label})})]}):e(a,{})};Ve.displayName="CardData";const Ke=t=>{var{variant:a,className:i,data:n}=t,r=se(t,["variant","className","data"]);switch(a){case"basic":default:return e(Ge,Object.assign({className:i},n,r));case"media":return e(He,Object.assign({className:i},n,r));case"video":return e(ze,Object.assign({className:i},n,r));case"icon":return e(Ye,Object.assign({className:i},n,r));case"horz":return e(qe,Object.assign({className:i},n,r));case"data":return e(Ve,Object.assign({className:i},n,r))}};Ke.displayName="Card";const $e=({text:i,tag:n=Ne.H1})=>{const r=i.split(" ");return e("div",{"data-testid":"DisplayHeading",className:"relative",children:e(Se,{tag:n,className:"",children:r.map(((i,n)=>{const l=n===r.length-1,o=`${i}-${n}`;return t("span",{children:[e("span",{className:m({"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"}),e("span",{className:"display-heading--lastword",children:i})]}),!l&&e("span",{children:i})]})}),!l&&" "]},o)}))})})};$e.displayName="DisplayHeading";const Xe=({children:a,className:i,submit:n,onSubmit:r=(()=>{}),onChange:o,hideSubmit:s,ariaSubmitLabel:c,submitID:d,submitVariant:u=ne.PRIMARY,initialValues:p={},isBoxed:h=!1,submitType:f=ie.SUBMIT,disabledSubmitWithReturn:v=!1,isDisabled:g=!1})=>{const E=A({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"});l((()=>{if(o&&"function"==typeof o){const e=E.watch(((e,t)=>{o(e,t)}));return()=>e.unsubscribe()}}),[]);const b=m({"sr-only":s}),{formState:{isSubmitting:N,isDirty:S,isValid:O}}=E;return e(y,Object.assign({},E,{children:e("div",{"data-testid":"Form",className:m("w-full max-w-s @containers @form"),children:t("form",{onSubmit:E.handleSubmit(r),onKeyDown:e=>{v&&"Enter"===e.key&&e.preventDefault()},className:m("w-2xs relative",{"form px-8 pt-6 pb-8 ":h},{"opacity-50":N},i),children:[a,n&&e("div",{className:"flex items-center justify-end",children:e(oe,{id:d||n,className:b,ariaLabel:c||n||"Submit",type:f,outline:!0,isLoading:N,disabled:N||!O||!S||g,variant:u,children:n})})]})})}))};var Qe;Xe.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"}(Qe||(Qe={}));const Ze=i.forwardRef((function(a,i){var{id:n,name:r,options:l,required:o,className:s,disabled:c}=a,d=se(a,["id","name","options","required","className","disabled"]);if(!l)throw new Error("FormSelect requires options prop");return e("div",{id:n,className:m("pb-2 min-w-20",s),children:t("div",{className:"relative",children:[e("select",Object.assign({ref:i,name:r,disabled:c,required:o,className:"form-item text-input pr-10"},d,{children:l.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(te,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));Ze.displayName="FormSelect";const Je=({name:a,type:i,label:n,required:r,className:l,icon:s,options:c,disabled:d,description:u,showPasswordLabel:p,hidePasswordLabel:h,validations:f={},fileUploadCallback:v=(()=>{}),autoComplete:g})=>{var E,b;const[N,A]=o(!1),{control:y,formState:C}=S(),{errors:I}=C,R=n&&i!==Qe.CHECKBOX,T=r||Boolean(f.required)?`${n} *`:n;return e("div",{className:"relative",children:t("div",{"data-testid":"FormField",className:"mb-4",children:[R&&e("div",{className:"flex items-baseline justify-between",children:e(Ie,{id:a,children:T})}),e("div",{className:"mb-1",children:e(O,{defaultValue:"",name:a,control:y,rules:f,render:({field:o})=>((i,o)=>{switch(i){case Qe.HIDDEN:return e("input",Object.assign({type:Me.HIDDEN,disabled:d},o));case Qe.TEXT:return e(Pe,Object.assign({type:Me.TEXT,required:r||Boolean(f.required),icon:s,className:l,disabled:d,autoComplete:g},o));case Qe.PASSWORD:{const a=N?Me.TEXT:Me.PASSWORD,i="appearance-none border-none bg-transparent flex items-center";return t("div",{className:"relative",children:[e("span",{className:"absolute right-0 top-0 flex items-center justify-center h-full z-10 pr-2",onClick:()=>A((e=>!e)),role:"button",tabIndex:0,children:e("button",N?{type:"button","aria-label":h,className:m(i,"form-icon"),children:e(te,{name:"mdi:eye-off",size:24})}:{type:"button","aria-label":p,className:m(i,"form-icon"),children:e(te,{name:"mdi:eye",size:24})})}),e(Pe,Object.assign({type:a,required:r||Boolean(f.required),icon:s,className:l,disabled:d,autoComplete:g},o))]})}case Qe.TEXTAREA:return e(Pe,Object.assign({type:Me.TEXTAREA,required:r||Boolean(f.required),icon:s,className:l,disabled:d},o));case Qe.EMAIL:return e(Pe,Object.assign({type:Me.EMAIL,required:r||Boolean(f.required),icon:s,className:l,disabled:d,autoComplete:g},o));case Qe.DATE:return e(Pe,Object.assign({type:Me.DATE,required:r||Boolean(f.required),icon:s,className:l,disabled:d},o));case Qe.DATETIME:return e(Pe,Object.assign({type:Me.DATETIME,required:r||Boolean(f.required),icon:s,className:l,disabled:d},o));case Qe.NUMBER:return e(Pe,Object.assign({type:Me.NUMBER,required:r||Boolean(f.required),icon:s,className:l,disabled:d},o));case Qe.CHECKBOX:return e(de,Object.assign({required:r||Boolean(f.required),id:a,className:l,label:n,disabled:d},o));case Qe.RADIO:return e(De,Object.assign({required:r||Boolean(f.required),id:a,className:l,options:c,disabled:d},o));case Qe.SWITCH:return e(ke,Object.assign({id:a,required:r||Boolean(f.required),className:l,disabled:d},o));case Qe.SELECT:return e(Ze,Object.assign({required:r||Boolean(f.required),id:a,className:l,disabled:d,label:n,options:c},o));case Qe.FILE:return e(be,Object.assign({required:r||Boolean(f.required),id:a,className:l,disabled:d,onChangeCallback:e=>{v(e)}},o));default:return e(Pe,Object.assign({type:Me.TEXT,required:r||Boolean(f.required),disabled:d,icon:s,className:l},o))}})(i,o)})}),u&&e("div",{className:"formfield-description",children:e(ge,{size:fe.SMALL,className:"mb-0",children:u})}),I[a]&&e("div",{className:"formfield-error text-error italic",children:e(ge,{size:fe.SMALL,className:"mb-0",children:null===(b=null===(E=null==I?void 0:I[a])||void 0===E?void 0:E.message)||void 0===b?void 0:b.toString()})})]})})};Je.displayName="FormField";const et=({testID:a,url:i,title:n="Share",enabled:r={facebook:!0,twitter:!0}})=>t("div",{"data-testid":a||"Share",className:"flex gap-2 items-center ",children:[e("div",{children:t(ge,{as:ve.P,className:"mb-0",children:[Fe.UI.SHARE,":"]})}),(null==r?void 0:r.facebook)&&e(C,{url:i,title:n,className:"",children:e(te,{name:"mdi:facebook"})}),(null==r?void 0:r.twitter)&&e(I,{url:i,title:n,className:"",children:e(te,{name:"mdi:twitter"})}),(null==r?void 0:r.whatsapp)&&e(R,{url:i,title:n,className:"",children:e(te,{name:"mdi:whatsapp"})}),(null==r?void 0:r.email)&&e(T,{url:i,title:n,className:"",children:e(te,{name:"mdi:email"})}),(null==r?void 0:r.linkedin)&&e(L,{url:i,title:n,className:"",children:e(te,{name:"mdi:linkedin"})})]});et.displayName="Share";const tt=({data:n})=>{const[r,l]=i.useState(0);return n?e("div",{"data-testid":"Tabs",children:t(w,{onSelect:e=>l(e),children:[e(x,{className:"mb-8 flex p-0",children:n.map(((t,a)=>e(_,{className:m("list-none rel ative cursor-pointer inline-block flex-1 items-center justify-center p-4",{"border-transparent border-solid border-0 border-b-2":r!==a,"border-primary border-solid border-0 border-b-2":r===a}),children:e(ge,{className:"m-0 text-center",children:t.title})},a)))}),n.map(((t,a)=>e(D,{className:"",children:t.content},a)))]})}):e(a,{})};tt.displayName="Tabs";const at=({testID:a,facebook:i,twitter:n,instagram:r,linkedin:l})=>t("div",{"data-testid":a||'"VisitUs"',className:"flex gap-2",children:[i&&e(oe,{variant:ne.PRIMARY,size:re.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(i.url)}),n&&e(oe,{variant:ne.PRIMARY,size:re.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(n.url)}),r&&e(oe,{variant:ne.PRIMARY,size:re.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(r.url)}),l&&e(oe,{variant:ne.PRIMARY,size:re.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(l.url)})]});at.displayName="VisitUs";const it=({testID:a,title:i,links:n,inline:r=!0,separators:l=!1,className:o})=>t("div",{"data-testid":a||'"Menu"',className:b(m("flex flex-col gap-2",o)),children:[i&&e("div",{children:e(Se,{tag:Ne.H3,children:i})}),e("div",{className:m("flex gap-0 items-center md:items-start",{"flex-row ":r},{"flex-col ":!r}),children:null==n?void 0:n.map(((a,i)=>{const r=`${a.id}--${i}`;return t("div",{className:"flex gap-0",children:[e("div",{className:"relative py-2",children:t(me,{href:a.url,className:"flex gap-1",children:[a.icon&&e(te,{name:a.icon}),a.title&&e("div",{children:a.title})]})}),l&&i+1<n.length&&e("div",{className:"h-full flex self-center px-2",children:e(te,{name:"mdi:dot",className:"opacity-50"})})]},r)}))})]});var nt;it.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(nt||(nt={}));const rt=({children:t,className:a,spacing:i,padded:n,isNarrow:r,isCentered:l,isFlush:o,direction:s=nt.COLUMN})=>{const c=b(m("container mx-auto my-0",{"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":r},{"flex items-center justify-center flex-col":l},{"px-0 max-w-full mx-0":o},{"flex flex-col":s===nt.COLUMN},{"flex-row":s===nt.ROW})),d=m("mx-4 md:mx-0",a);return e("div",{"data-testid":"Container",className:c,children:e("div",{className:d,children:t})})};rt.displayName="Container";const lt=({testID:a,children:i,withBg:n=!0,inversed:r=!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:m("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!r,"-top-24 left-0":r})}),e(rt,{children:i})]});lt.displayName="Hero";const ot={replace(t){if("a"===t.name){const a=M(t.attribs);return e(me,Object.assign({},a,{children:P(t.children,ot)}))}if(t.attribs&&"p"===t.name){const a=M(t.attribs);return e(ge,Object.assign({},a,{children:P(t.children,ot)}))}return t}},st=({testID:t,data:a,align:i,className:n})=>e("span",{"data-testid":t||'"HtmlContent"',className:m("relative",{"text-right":"right"===i},{"text-center":"center"===i},{"text-left":"left"===i},n),children:k(a,ot)});st.displayName="HtmlContent";const ct=({testID:a,bgAsset:i,focalAsset1:n,focalAsset2:r,focalAsset3:l})=>{const o=s(null);u(o);const c={opacity:.001,rotate:0,scale:1,x:200,y:0},d={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:m("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(Ce,{src:i.src,alt:i.alt,fill:!0})}),(n||r)&&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:c,animate:d,children:e(Ce,{src:n.src,alt:n.alt,fill:!0})}),r&&e(v.div,{className:"absolute w-1/2 aspect-[0.5/1] left-0 top-20",initial:c,animate:Object.assign(Object.assign({},d),{transition:Object.assign(Object.assign({},d.transition),{delay:.3})}),children:e(Ce,{src:r.src,alt:r.alt,fill:!0})})]}),l&&e("div",{className:"absolute w-1/4 aspect-[0.5/1] flex flex-col flex-nowrap p-0 top-10 z-20 items-end justify-end left-10",children:e(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(Ce,{src:l.src,fill:!0,alt:l.alt})})})]})};ct.displayName="AnimationSet1";const dt=`${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}`,mt=`${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}`,ut={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},pt={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."}},ht=({handleSubmit:i,initialValues:n,showSocialButtons:r=!1})=>t("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[t(Xe,{onSubmit:i,submit:Fe.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:n,children:[e(Je,{name:"email",type:Qe.EMAIL,label:Fe.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:ut,autoComplete:"email"}),e(Je,{name:"password",type:Qe.PASSWORD,label:Fe.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),r&&t(a,{children:[e(Oe,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(oe,{onClick:()=>window.location.assign(dt),variant:ne.PRIMARY,iconFirst:!0,icon:"mdi:google",children:Fe.UI.LOGIN_WITH_GOOGLE}),e(oe,{onClick:()=>window.location.assign(mt),variant:ne.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:Fe.UI.LOGIN_WITH_APPLE})]})})]})]});ht.displayName="LoginForm";const ft=({handleSubmit:i,showSocialButtons:n=!1})=>t("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[t(Xe,{onSubmit:i,submit:Fe.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e(Je,{name:"email",type:Qe.EMAIL,label:Fe.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:ut,autoComplete:"email"}),e(Je,{name:"password",type:Qe.PASSWORD,label:Fe.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:Fe.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:pt,autoComplete:"new-password"})]}),n&&t(a,{children:[e(Oe,{}),e("div",{className:"flex flex-col gap-4 items-center",children:t("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e(oe,{onClick:()=>window.location.assign(dt),variant:ne.PRIMARY,iconFirst:!0,icon:"mdi:google",children:Fe.UI.SIGNUP_WITH_GOOGLE}),e(oe,{onClick:()=>window.location.assign(mt),variant:ne.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:Fe.UI.SIGNUP_WITH_APPLE})]})})]})]});ft.displayName="RegisterForm";const vt=({handleSubmit:t})=>e("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e(Xe,{onSubmit:t,submit:Fe.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e(Je,{name:"email",type:Qe.EMAIL,label:Fe.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:ut})})});vt.displayName="ForgotPasswordForm";const gt=({loginSubmit:a,registerSubmit:n,passwordForgotSubmit:r,handleTokenCallback:o,showSocialLogin:s=!1})=>{const[c,d]=i.useState(!1);return l((()=>{!function(){ce(this,void 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-full",children:[!c&&e(tt,{data:[{title:"Login",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(ht,{handleSubmit:a,showSocialButtons:s}),e("div",{className:"mt-4",children:e(oe,{variant:ne.LINK,onClick:()=>d(!c),children:c?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e("div",{className:"flex flex-col gap-4 items-center",children:e(ft,{handleSubmit:n,showSocialButtons:s})})}]}),c&&e(tt,{data:[{title:"Forgot Password",content:t("div",{className:"flex flex-col gap-4 items-center",children:[e(vt,{handleSubmit:r}),e("div",{className:"mt-4",children:e(oe,{variant:ne.LINK,onClick:()=>d(!c),children:c?"Back to Login":"Forgot Password?"})})]})}]})]})};var Et;gt.displayName="Authenticator",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"}(Et||(Et={}));const bt=({testID:a,cardData:i,title:n,description:r,withSeparators:l,spacing:o=Et.MODULE})=>{const c=s(null),d=u(c,{once:!0});return t("div",{ref:c,"data-testid":a||"PanelCards",className:m("relative m-auto w-full flex flex-col flex-none flex-nowrap",o),children:[(n||r)&&t("div",{className:"relative text-center py-8",children:[n&&e($e,{text:n}),r&&e(ge,{align:ue.CENTER,children:r})]}),e("div",{className:"flex gap-8",children:null==i?void 0:i.map(((a,n)=>t("span",{className:"flex gap-8 justify-between",children:[e("div",{className:m("relative flex flex-1 items-center justify-center",{"":l}),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(Ke,Object.assign({},a))}),l&&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 Nt=({testID:a,title:i,description:n,inversed:r,assets:l,buttonData:o,withBg:s=!0,spacing:c=Et.DEFAULT})=>t("div",{"data-testid":a||"PanelFeature",className:m("relative m-auto w-full flex flex-none flex-nowrap",c),children:[s&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -top-24 -left-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e(rt,{children:t("div",{className:m("relative flex sm:flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-16",{"flex-row-reverse":r}),children:[t("div",{className:"w-1/2 flex flex-col items-start justify-center",children:[t("div",{className:"relative text-left",children:[e($e,{text:i}),e(ge,{className:"mb-0",children:n})]}),t("div",{className:"grid grid-cols-3 gap-2 my-8",children:[e(Ee,{rounded:!0,text:"New",variant:"info"}),e(Ee,{rounded:!0,text:"Trending",variant:"info"}),e(Ee,{rounded:!0,text:"Popular",variant:"info"})]}),e("div",{className:"",children:e(oe,Object.assign({},o))})]}),e("div",{className:"w-1/2 flex items-center justify-center",children:e("div",{className:"w-full aspect-[1/1] flex items-center justify-center",children:e(ct,{bgAsset:l.bgAsset,focalAsset1:l.focalAsset1,focalAsset2:l.focalAsset2,focalAsset3:l.focalAsset3})})})]})})]});Nt.displayName="PanelFeature";const At=({url:t,sources:a,onReady:r,className:o,options:s={},isYoutube:c=!1,defaultAudioTrack:d="No Music",rounded:u=!0,aspectRatioValue:p})=>{const h=i.useRef(null),f=i.useRef(null),v=i.useRef(null),g=n((()=>{switch(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 l((()=>{var e;if(c)return;const t=Object.assign(Object.assign({autoplay:!0,controls:!0,muted:!1,responsive:!0,fill:!0,fluid:!0,aspectRatio:g.aspectRatio||"16:9",controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},s),{sources:a});if(!v.current){const a=document.createElement("video-js");a.classList.add("vjs-big-play-centered"),null===(e=null==f?void 0:f.current)||void 0===e||e.appendChild(a);const i=v.current=U(a,t,(()=>{U.log("player is ready",i),r&&r(i)}));i.on("loadedmetadata",(function(){const e=i.audioTracks();for(let t=0;t<e.length;t++)e[t].label===d&&(e[t].enabled=!0)}))}}),[s,f]),l((()=>{if(c)return;const e=v.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),v.current=null)}}),[v]),e("div",c&&t?{"data-testid":"Video",className:m("relative w-full h-full aspect-[16/9]",o),children:e(F,{ref:h,className:"react-player",url:t,width:"100%",height:"100%",controls:!0,onReady:r})}:{className:b(m("relative w-full overflow-hidden h-full aspect-[16/9] bg-black object-cover",{rouded:u},g.className,o)),children:e("div",{"data-vjs-player":!0,children:e("div",{ref:f,className:"object-cover"})})})};At.displayName="Video";const yt=({testID:a,title:i,contentComponent:r,description:o,image:c,buttonData:d,inversed:p=!1,withBg:h=!0,spacing:f,video:E,headingTag:N,className:A})=>{const y=g(),S=s(null),O=u(S),C={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};l((()=>{O&&y.start((e=>({transform:"none",transition:Object.assign(Object.assign({},C),{delay:.1*e})})))}),[y,O]);const I=n((()=>{switch(null==E?void 0:E.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]"}}),[E]),R=p?"translateX(100px)":"translateX(-100px)";return t("div",{"data-testid":a||"PanelHero",className:b(m("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",f,A)),children:[h&&e("div",{className:m("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":!p,"-top-24 left-0":p})}),e(rt,{children:t("div",{className:m("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":p}),children:[e("div",{ref:S,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:t("div",{className:m("relative flex flex-col gap-4 from-primary-darker p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!p},{"text-left bg-gradient-to-t md:bg-gradient-to-r":p}),children:[e(v.div,{initial:{transform:R},custom:0,animate:y,children:e($e,{text:i,tag:N})}),r&&e(v.div,{initial:{transform:R},custom:1,animate:y,children:r}),o&&e(v.div,{initial:{transform:R},custom:1,animate:y,children:e(st,{className:"mb-0",align:p?ue.LEFT:ue.RIGHT,data:o})}),d&&e(v.div,{initial:{transform:R},custom:2,animate:y,children:e("div",{className:m("flex items-center",{"justify-end":!p,"justify-start":p}),children:e(oe,Object.assign({},d))})})]})}),e("div",{className:"relative w-full md:w-1/2 z-0",children:t("div",{className:m("relative scale-[1.35] rounded overflow-hidden shadow",I),children:[c&&e(Ce,{src:c,alt:i,fill:!0}),E&&e(At,{sources:E.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:E.aspectRatioValue})]})})]})})]})};yt.displayName="PanelHero";const St=({testID:a,title:i,description:n,image1:r,image2:l,iosLink:o="#",androidLink:s="#",inversed:c=!1,withBg:d=!0,spacing:u=Et.MODULE})=>t("div",{"data-testid":a||"PanelFeature",className:m("relative m-auto w-full flex flex-none flex-nowrap",u),children:[d&&e("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -bottom-24 -right-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e(rt,{children:t("div",{className:m("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-primary bg-opacity-10 backdrop-blur-lg rounded border-opacityDark20 p-8",{"flex-row-reverse":c}),children:[t("div",{className:"w-full md:w-1/2 top-0 relative",children:[e("div",{className:"absolute aspect-[8/17] -rotate-12 w-[135px] left-1/3 top-4 md:w-[180px] md:left-1/3 md:top-4 lg:w-[210px] lg:left-1/2 lg:-top-1/3",children:e(Ce,{src:l,alt:i})}),e("div",{className:"relative md:absolute aspect-[8/17] -rotate-0 w-[150px] left-0 top-0 md:w-[220px] md:left-0 md:-top-6 lg:w-[250px] lg:left-1/4 lg:-top-1/2",children:e(Ce,{src:r,alt:i})})]}),t("div",{className:"w-full md:w-1/2",children:[e("div",{children:e($e,{text:i})}),e("div",{children:e(ge,{children:n})}),t("div",{className:"flex items-center justify-start gap-4",children:[e("div",{className:"relative w-[150px] h-[50px]",children:e(me,{href:o,target:"_blank",hideExternalIcon:!0,children:e(Ce,{src:"https://apple-resources.s3.amazonaws.com/media-badges/download-on-the-app-store/black/en-us.svg",alt:"App Store"})})}),e("div",{className:"relative w-[190px] h-[75px]",children:e(me,{href:s,target:"_blank",hideExternalIcon:!0,children:e(Ce,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});St.displayName="PanelProduct";const Ot=({testID:a,className:i,title:n,description:r,spacing:l=Et.NONE,videoProps:o})=>t("div",{"data-testid":a||'"PanelVideo"',className:m("relative m-auto w-full flex flex-none flex-nowrap aspect-[16/6.6]",l,i),children:[e(At,{rounded:!1,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-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(Se,{tag:Ne.H2,children:n})})}),r&&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(ge,{children:r})})})]})]})]});var Ct;Ot.displayName="PanelVideo",function(e){e.NONE="none",e.ATOM="atom",e.DEFAULT="default",e.ELEMENT="element",e.COMPONENT="component",e.MODULE="module",e.FEATURE="feature"}(Ct||(Ct={}));const It=({spacing:t=Ct.DEFAULT,children:a,narrow:i,flush:n,className:r})=>{const l=m("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},r);return e("div",{"data-testid":"ContentPageLayout",className:l,children:a})};var Rt;It.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"}(Rt||(Rt={}));const Tt=({className:t,children:a,size:i=Rt.DEFAULT})=>{const n=m("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})};Tt.displayName="ContentRowsLayout";const Lt=c({brand:void 0,header:void 0,footer:void 0,locale:void 0}),wt=({children:t,value:a})=>e(Lt.Provider,{value:a,children:t}),xt=({testID:a,className:i,logoAspectRatio:n="aspect-[16/9]"})=>{var r,l,o,s,c,u,p,h,f,v,g,E,b;const N=d(Lt);return t("footer",{className:m("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8",i),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===(r=null==N?void 0:N.brand)||void 0===r?void 0:r.logo)&&e("div",{className:"relative w-24",children:e(we,{logo:null===(l=null==N?void 0:N.brand)||void 0===l?void 0:l.logo,aspectRatioClass:n})}),(null===(o=N.footer)||void 0===o?void 0:o.about)&&e("div",{children:e(ge,{children:N.footer.about})}),e("div",{children:e(at,{facebook:null===(c=null===(s=N.footer)||void 0===s?void 0:s.visitUs)||void 0===c?void 0:c.facebook,twitter:null===(p=null===(u=N.footer)||void 0===u?void 0:u.visitUs)||void 0===p?void 0:p.twitter,instagram:null===(f=null===(h=N.footer)||void 0===h?void 0:h.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===(E=N.footer)||void 0===E?void 0:E.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(it,{title:t.title,links:t.links,inline:!1})},`${t.title}--${a}`)))})]}),t("div",{className:"flex items-center justify-center flex-col",children:[t(ge,{align:ue.CENTER,as:ve.SMALL,children:["© ",(new Date).getFullYear()," ",Fe.UI.COPYRIGHT," ",null===(b=N.brand)||void 0===b?void 0:b.name]}),e(ge,{align:ue.CENTER,as:ve.SMALL,children:Fe.UI.ALL_RIGHTS_RESERVED})]})]})};xt.displayName="Footer";const _t=({testID:a,menuLinks:i,profileLinks:n,loginCallback:r,logoutCallback:l,isAuthenticated:s=!1,hideMenu:c=!1,logoAspectRatio:u="aspect-[16/9]",className:p,logoOnly:h})=>{var f,v,g,E,b,N;const A=d(Lt),[y,S]=o("hidden"),[O,C]=o(!1),I=()=>{S("hidden"===y?"block":"hidden")};return h?e("header",{"data-testid":a||'"Header"',className:m("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0",p),children:e("div",{className:"relative w-full flex justify-center items-center",children:(null===(f=null==A?void 0:A.brand)||void 0===f?void 0:f.logo)&&e("div",{className:"relative w-56",children:e(me,{href:"/",children:e(we,{logo:null===(v=null==A?void 0:A.brand)||void 0===v?void 0:v.logo,aspectRatioClass:u})})})})}):t("header",{"data-testid":a||'"Header"',className:m("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0",p),children:[t("div",{className:"relative w-full flex",children:[(null===(g=null==A?void 0:A.brand)||void 0===g?void 0:g.logo)&&e("div",{className:"relative w-32",children:e(me,{href:"/",children:e(we,{logo:null===(E=null==A?void 0:A.brand)||void 0===E?void 0:E.logo,aspectRatioClass:u})})}),e("div",{className:"flex-1 hidden md:flex items-center justify-center",children:e(it,{links:i,separators:!0})}),t("div",{className:"hidden md:flex flex-col justify-center",children:[!s&&r&&e(oe,{onClick:r,children:Fe.UI.LOGIN}),s&&t("div",{className:"relative",children:[e(oe,{onClick:()=>C(!O),icon:O?"mdi:user-outline":"mdi:user"}),e("div",{onClick:()=>C(!1),className:m("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!O}),children:e(it,{links:n,inline:!1})})]})]}),e("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e(oe,{variant:ne.PRIMARY,icon:"mdi:menu",onClick:I})})]}),t("div",{className:m("navbar-menu relative z-50",y,{hidden:c}),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===(b=null==A?void 0:A.brand)||void 0===b?void 0:b.logo)&&e("div",{className:"relative w-32",children:e(we,{logo:null===(N=null==A?void 0:A.brand)||void 0===N?void 0:N.logo,aspectRatioClass:"aspect-[16/9]"})})}),e("div",{children:e(oe,{variant:ne.PRIMARY,icon:"mdi:close",onClick:I})})]}),t("div",{className:"flex flex-col flex-1 gap-4",children:[s&&e("div",{className:"md:hidden flex justify-center",children:e(ge,{children:"User profile avatar and details here."})}),e("div",{className:"flex flex-1 justify-center pt-4",children:e(it,{links:i,inline:!1})}),s&&e("div",{className:"md:hidden flex justify-center",children:e(oe,{onClick:l,children:Fe.UI.LOGOUT})}),!s&&e("div",{className:"md:hidden flex justify-center",children:e(oe,{onClick:()=>{r(),I()},children:Fe.UI.LOGIN})})]})]})]})]})};_t.displayName="Header";const Dt=({testID:t,inputCallback:a,seperator:r,numInputs:l=4,shouldAutoFocus:s=!1,size:c="medium"})=>{const[d,u]=o("");i.useEffect((()=>{d&&4===d.length&&void 0!==a&&"function"==typeof a&&a(d)}),[d]);const p=n((()=>{switch(c){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"}}}),[c]);return e("div",{"data-testid":t||'"OTPInput"',className:"foo-bar",children:e(B,{value:d,onChange:u,inputType:"number",numInputs:l,shouldAutoFocus:s,renderSeparator:r?()=>e("div",{className:"flex items-center justify-center",children:e(te,{name:"mdi:dot",className:"opacity-50"})}):e("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e("input",Object.assign({},t,{className:m("remove-arrow form-item text-input w-12")})),inputStyle:{width:p.width,height:p.height}})})};var kt,Mt;function Pt({className:a,label:i,onChange:n,options:r}){return t("div",{className:m("m-0 p-0 mb-2 border-none",a),children:[e(Ie,{className:"text-sm",transform:pe.UPPERCASE,children:i}),e(Ze,{id:i||"Sorting",options:r,onChange:e=>n(e.target.value)})]})}function Ft(t){var{className:a,current:i,resultsPerPage:n=10,onChange:r,totalPages:l}=t,o=se(t,["className","current","resultsPerPage","onChange","totalPages"]);return e(Z,Object.assign({current:i,onChange:r,simple:!0,pageSize:n,total:l*n,className:m("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:J,prevIcon:e("div",{className:"text-bodyText",children:e(te,{name:"mdi:chevron-left"})}),nextIcon:e("div",{className:"text-bodyText",children:e(te,{name:"mdi:chevron-right"})})},o))}function Ut({className:i,onChange:n,options:r,label:l}){return r?t("div",{className:m("m-0 p-0 mb-2 border-none",i),children:[e(Ie,{className:"text-sm mr-2",transform:pe.UPPERCASE,children:Fe.UI.SHOW}),e(Ze,{id:l||"ResultsPerPage",options:r.map((e=>({label:e.toString(),value:e}))),onChange:e=>n(e.target.value),className:"min-w-20"})]}):e(a,{})}function Bt(i){var{className:n,end:r,searchTerm:l,start:o,totalResults:s}=i,c=se(i,["className","end","searchTerm","start","totalResults"]);return t("div",Object.assign({className:m("m-0 p-0 flex-1",n)},c,{children:["Showing"," ",t("strong",{children:[o," - ",r]})," ","out of ",e("strong",{children:s}),l&&t(a,{children:[" ","for: ",e("em",{children:l})]})]}))}function jt({className:a,onChange:i,onSubmit:n,wasSearched:r,placeholder:l}){const o=d(W);return e("div",{className:m("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(Pe,{name:"SearchBoxInput",type:Me.TEXT,placeholder:l||"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:[r&&e(oe,{type:ie.BUTTON,onClick:()=>o.driver.reset(),variant:ne.SECONDARY,children:"Reset"}),e(oe,{type:ie.SUBMIT,variant:ne.PRIMARY,children:"Search"})]})})]})})}function Wt({className:a,children:i,header:n,bodyContent:r,bodyFooter:l,bodyHeader:o,sideContent:s}){const c=m("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":!s});return t("div",{className:m("w-full flex flex-col",a),children:[e("div",{className:"m-auto md:py-0 w-full",children:n}),t("div",{className:m("md:grid m-auto md:py-0 w-full",{"md:grid-cols-searchLayout":!s,"md:grid-cols-searchLayoutWithSidebar":s}),children:[e("div",{className:c,children:s}),t("div",{className:m("p-0 pt-2 md:p-6 md:pr-0",{"md:pl-0":!s}),children:[e("div",{className:"flex flex-row gap-8 items-center justify-end",children:o}),e("div",{className:"relative",children:i||r}),e("div",{className:"flex items-center justify-around",children:l})]})]})]})}function Gt(t){var{children:a,className:i,gridClasses:n}=t,r=se(t,["children","className","gridClasses"]);const l=n||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return e("ul",Object.assign({className:m("relative grid gap-4 mb-4",l,i)},r,{children:a}))}function Ht(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function zt(e,t){if(e)return e[t]}function Yt(e){const t=zt(e,"snippet")||(a=function(e){return zt(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 qt({className:t,result:a,as:i,cardMap:n={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:r,titleField:l,imageField:o,videoField:s,descriptionField:c,metaDataFields:d,cardProps:u}=n,p=r&&Yt(a[r.fieldName]),h=l&&Yt(a[l.fieldName]),f=o&&Yt(a[o.fieldName]),v=s&&s.formatter?s.formatter(Yt(a[s.fieldName])):s&&Yt(a[s.fieldName]),g=c&&Yt(a[c.fieldName]),E=d&&d.map((e=>{const t=Yt(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)}));return e("li",{className:m("relative",t),children:(()=>{const t={id:p,title:h,image:{src:f||"",alt:h||"",title:h||"",width:500,height:500},video:v,description:g,metaData:E,actions:n.actionsData,onClick:n.onClickLink};switch(i){case Mt.cardMedia:return e(Ke,Object.assign({variant:kt.MEDIA,data:t},u));case Mt.cardVideo:return e(Ke,Object.assign({variant:kt.VIDEO,data:t},u,{isMuted:!1}));default:return e(Ke,Object.assign({variant:kt.BASIC,data:t},u))}})()})}function Vt({showOptions:a,sortOptions:r,resultAs:l=Mt.cardBasic,ResultFieldMap:o,config:s={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:c=[],noSidebar:d=!1,customConnector:m,showPagingInfo:u,gridClasses:p,initialState:h={},showTextSearch:f=!0}){const v=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 j(m||e)}),[]),g=n((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:s.alwaysSearchOnInitialLoad,apiConnector:v,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==a?void 0:a[0])||8},h)})),[s]);return e(G,{config:g,children:e(H,{mapContextToProps:({wasSearched:e})=>({wasSearched:e}),children:({wasSearched:n})=>e(i.Fragment,{children:e(z,{children:e(Wt,{header:f&&e(Y,{view:t=>e(jt,Object.assign({},t,{wasSearched:n,placeholder:s.initialPlaceholder}))}),sideContent:!d&&c&&t(i.Fragment,{children:[n&&e(q,{label:"Sort by",sortOptions:r,view:Pt}),null==c?void 0:c.map((({field:t,label:a,view:i})=>e(V,{field:t,label:a,view:i},t)))]}),bodyContent:e(K,{shouldTrackClickThrough:!1,resultView:t=>e(qt,Object.assign({},t,{as:l,cardMap:o})),className:"list-none p-0 m-0",view:t=>e(Gt,Object.assign({},t,{gridClasses:p}))}),bodyHeader:t(i.Fragment,{children:[n&&u&&e($,{view:Bt}),n&&a&&e(X,{view:Ut,options:a}),n&&r&&d&&e(q,{label:"Sort by",sortOptions:r,view:Pt})]}),bodyFooter:e(Q,{view:Ft}),noSidebar:d})})})})})}function Kt({className:a,label:i,onChange:n,options:r}){const l=r.map((e=>({value:e.value,label:`${e.value} (${e.count})`})));return t("fieldset",{className:m("m-0 p-0 mt-4 mb-2 border-none",a),children:[e(Ie,{className:"text-sm",transform:pe.UPPERCASE,children:i}),e(Ze,{id:i,options:l,onChange:e=>n(e.target.value)})]})}function $t({className:a,label:i,onRemove:n,onSelect:r,options:l}){const o=l.filter((e=>e.selected)).map((e=>e.value))[0];return e("fieldset",{className:m("m-0 p-0 mt-4 mb-2 border-none",a),children:t("div",{children:[e(Ie,{className:"text-sm",transform:pe.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:[Ht(o),e("span",{className:"ml-1 px-1",children:e(oe,{onClick:()=>n(o),children:e(te,{name:"mdi:close"})})})]}),!o&&l.map((a=>{const n=Ht(a.value);return t("li",{className:"m-0 flex justify-between",children:[e("a",{className:"no-underline text-sm visited:text-bodyText","data-transaction-name":`facet - ${i}`,href:"/",onClick:e=>{e.preventDefault(),r(a.value)},children:e("label",{className:"label pl-0 leading-none text-sm",children:n})}),e(ge,{as:ve.SPAN,size:fe.SMALL,children:a.count.toLocaleString("en")})]},n)}))]})]})})}function Xt({className:i,label:n,onMoreClick:r,onRemove:l,onSelect:o,options:s,showMore:c,showSearch:d,onSearch:u,searchPlaceholder:p}){return s?t("fieldset",{className:m("m-0 p-0 mt-4 mb-2 border-none",i),children:[e(Ie,{className:"text-sm",transform:pe.UPPERCASE,children:n}),d&&e("div",{className:"mt-1",children:e(Pe,{type:Me.SEARCH,placeholder:p||"Search",onChange:e=>{u(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,r=a.value,s=Ht(r);return t("div",{className:"flex justify-between pb-2",children:[e(de,{id:`facet_${n}${s}`,"data-transaction-name":`facet - ${n}`,checked:i,onChange:()=>i?l(r):o(r),label:s}),e(ge,{as:ve.SPAN,size:fe.SMALL,children:a.count.toLocaleString("en")})]},s)}))]}),c&&e(oe,{size:re.SMALL,variant:ne.TERTIARY,onClick:r,"aria-label":"Show more options",children:"+ More"})]}):e(a,{children:"Options required"})}Dt.displayName="OTPInput",function(e){e.BASIC="basic",e.MEDIA="media",e.VIDEO="video",e.ICON="icon",e.HORZ="horz",e.DATA="data"}(kt||(kt={})),function(e){e.cardBasic="cardBasic",e.cardMedia="cardMedia",e.cardVideo="cardVideo"}(Mt||(Mt={})),Pt.displayName="Sorting",Ft.displayName="Paging",Ut.displayName="ResultsPerPage",Bt.displayName="PagingInfo",jt.displayName="SearchBox",Wt.displayName="Layout",Gt.displayName="Results",qt.displayName="Result",Kt.displayName="SingleSelectFacet",$t.displayName="SingleLinksFacet",Xt.displayName="MultiCheckboxFacet";const Qt=({handleSubmit:t})=>e("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e(Xe,{onSubmit:t,submit:Fe.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e(Je,{name:"password",type:Qe.PASSWORD,label:Fe.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:pt})})});Qt.displayName="ResetPasswordForm";const Zt=({testID:a,initialValues:i,handleSubmit:n})=>e("div",{"data-testid":a||'"ProfileForm"',className:"form-wrapper",children:t(Xe,{onSubmit:n,submit:Fe.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:i,children:[e("div",{className:"mb-4 items-center justify-center flex",children:e(Ue,{name:"avatar",initValue:null==i?void 0:i.avatar})}),e(Je,{name:"firstName",type:Qe.TEXT,label:Fe.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e(Je,{name:"lastName",type:Qe.TEXT,label:Fe.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e(Je,{name:"email",type:Qe.EMAIL,label:Fe.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:ut})]})});Zt.displayName="ProfileForm";const Jt={isDarkTheme:!1,toggleTheme:()=>{}},ea=i.createContext(Jt),ta=({children:t,theme:a})=>e(ea.Provider,{value:a,children:t});function aa(){var e;return null===(e=d(Lt).locale)||void 0===e||e.lang,Fe}function ia(){return d(ea)}const na={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 ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var la={exports:{}},oa={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]},sa={exports:{}},ca=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))},da=Array.prototype.concat,ma=Array.prototype.slice,ua=sa.exports=function(e){for(var t=[],a=0,i=e.length;a<i;a++){var n=e[a];ca(n)?t=da.call(t,ma.call(n)):t.push(n)}return t};ua.wrap=function(e){return function(){return e(ua(arguments))}};var pa=sa.exports,ha=oa,fa=pa,va=Object.hasOwnProperty,ga=Object.create(null);for(var Ea in ha)va.call(ha,Ea)&&(ga[ha[Ea]]=Ea);var ba=la.exports={to:{},get:{}};function Na(e,t,a){return Math.min(Math.max(t,e),a)}function Aa(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}ba.get=function(e){var t,a;switch(e.substring(0,3).toLowerCase()){case"hsl":t=ba.get.hsl(e),a="hsl";break;case"hwb":t=ba.get.hwb(e),a="hwb";break;default:t=ba.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},ba.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 r=2*a;n[a]=parseInt(t.slice(r,r+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]:va.call(ha,t[1])?((n=ha[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]=Na(n[a],0,255);return n[3]=Na(n[3],0,1),n},ba.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,Na(parseFloat(t[2]),0,100),Na(parseFloat(t[3]),0,100),Na(isNaN(a)?1:a,0,1)]}return null},ba.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,Na(parseFloat(t[2]),0,100),Na(parseFloat(t[3]),0,100),Na(isNaN(a)?1:a,0,1)]}return null},ba.to.hex=function(){var e=fa(arguments);return"#"+Aa(e[0])+Aa(e[1])+Aa(e[2])+(e[3]<1?Aa(Math.round(255*e[3])):"")},ba.to.rgb=function(){var e=fa(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]+")"},ba.to.rgb.percent=function(){var e=fa(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]+")"},ba.to.hsl=function(){var e=fa(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},ba.to.hwb=function(){var e=fa(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},ba.to.keyword=function(e){return ga[e.slice(0,3)]};var ya=la.exports;const Sa=oa,Oa={};for(const e of Object.keys(Sa))Oa[Sa[e]]=e;const Ca={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 Ia=Ca;for(const e of Object.keys(Ca)){if(!("channels"in Ca[e]))throw new Error("missing channels property: "+e);if(!("labels"in Ca[e]))throw new Error("missing channel labels property: "+e);if(Ca[e].labels.length!==Ca[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:a}=Ca[e];delete Ca[e].channels,delete Ca[e].labels,Object.defineProperty(Ca[e],"channels",{value:t}),Object.defineProperty(Ca[e],"labels",{value:a})}Ca.rgb.hsl=function(e){const t=e[0]/255,a=e[1]/255,i=e[2]/255,n=Math.min(t,a,i),r=Math.max(t,a,i),l=r-n;let o,s;r===n?o=0:t===r?o=(a-i)/l:a===r?o=2+(i-t)/l:i===r&&(o=4+(t-a)/l),o=Math.min(60*o,360),o<0&&(o+=360);const c=(n+r)/2;return s=r===n?0:c<=.5?l/(r+n):l/(2-r-n),[o,100*s,100*c]},Ca.rgb.hsv=function(e){let t,a,i,n,r;const l=e[0]/255,o=e[1]/255,s=e[2]/255,c=Math.max(l,o,s),d=c-Math.min(l,o,s),m=function(e){return(c-e)/6/d+.5};return 0===d?(n=0,r=0):(r=d/c,t=m(l),a=m(o),i=m(s),l===c?n=i-a:o===c?n=1/3+t-i:s===c&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*r,100*c]},Ca.rgb.hwb=function(e){const t=e[0],a=e[1];let i=e[2];const n=Ca.rgb.hsl(e)[0],r=1/255*Math.min(t,Math.min(a,i));return i=1-1/255*Math.max(t,Math.max(a,i)),[n,100*r,100*i]},Ca.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]},Ca.rgb.keyword=function(e){const t=Oa[e];if(t)return t;let a,i=1/0;for(const t of Object.keys(Sa)){const l=(r=Sa[t],((n=e)[0]-r[0])**2+(n[1]-r[1])**2+(n[2]-r[2])**2);l<i&&(i=l,a=t)}var n,r;return a},Ca.keyword.rgb=function(e){return Sa[e]},Ca.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)]},Ca.rgb.lab=function(e){const t=Ca.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)]},Ca.hsl.rgb=function(e){const t=e[0]/360,a=e[1]/100,i=e[2]/100;let n,r,l;if(0===a)return l=255*i,[l,l,l];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++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,l=6*r<1?o+6*(n-o)*r:2*r<1?n:3*r<2?o+(n-o)*(2/3-r)*6:o,s[e]=255*l;return s},Ca.hsl.hsv=function(e){const t=e[0];let a=e[1]/100,i=e[2]/100,n=a;const r=Math.max(i,.01);i*=2,a*=i<=1?i:2-i,n*=r<=1?r:2-r;return[t,100*(0===i?2*n/(r+n):2*a/(i+a)),100*((i+a)/2)]},Ca.hsv.rgb=function(e){const t=e[0]/60,a=e[1]/100;let i=e[2]/100;const n=Math.floor(t)%6,r=t-Math.floor(t),l=255*i*(1-a),o=255*i*(1-a*r),s=255*i*(1-a*(1-r));switch(i*=255,n){case 0:return[i,s,l];case 1:return[o,i,l];case 2:return[l,i,s];case 3:return[l,o,i];case 4:return[s,l,i];case 5:return[i,l,o]}},Ca.hsv.hsl=function(e){const t=e[0],a=e[1]/100,i=e[2]/100,n=Math.max(i,.01);let r,l;l=(2-a)*i;const o=(2-a)*n;return r=a*n,r/=o<=1?o:2-o,r=r||0,l/=2,[t,100*r,100*l]},Ca.hwb.rgb=function(e){const t=e[0]/360;let a=e[1]/100,i=e[2]/100;const n=a+i;let r;n>1&&(a/=n,i/=n);const l=Math.floor(6*t),o=1-i;r=6*t-l,1&l&&(r=1-r);const s=a+r*(o-a);let c,d,m;switch(l){default:case 6:case 0:c=o,d=s,m=a;break;case 1:c=s,d=o,m=a;break;case 2:c=a,d=o,m=s;break;case 3:c=a,d=s,m=o;break;case 4:c=s,d=a,m=o;break;case 5:c=o,d=a,m=s}return[255*c,255*d,255*m]},Ca.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))]},Ca.xyz.rgb=function(e){const t=e[0]/100,a=e[1]/100,i=e[2]/100;let n,r,l;return n=3.2406*t+-1.5372*a+-.4986*i,r=-.9689*t+1.8758*a+.0415*i,l=.0557*t+-.204*a+1.057*i,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),l=Math.min(Math.max(0,l),1),[255*n,255*r,255*l]},Ca.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)]},Ca.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,r=t**3,l=i**3;return a=n>.008856?n:(a-16/116)/7.787,t=r>.008856?r:(t-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,t*=95.047,a*=100,i*=108.883,[t,a,i]},Ca.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]},Ca.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)]},Ca.rgb.ansi16=function(e,t=null){const[a,i,n]=e;let r=null===t?Ca.rgb.hsv(e)[2]:t;if(r=Math.round(r/50),0===r)return 30;let l=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(a/255));return 2===r&&(l+=60),l},Ca.hsv.ansi16=function(e){return Ca.rgb.ansi16(Ca.hsv.rgb(e),e[2])},Ca.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)},Ca.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]},Ca.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]},Ca.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},Ca.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]},Ca.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),r=Math.min(Math.min(t,a),i),l=n-r;let o,s;return o=l<1?r/(1-l):0,s=l<=0?0:n===t?(a-i)/l%6:n===a?2+(i-t)/l:4+(t-a)/l,s/=6,s%=1,[360*s,100*l,100*o]},Ca.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]},Ca.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]},Ca.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],r=t%1*6,l=r%1,o=1-l;let s=0;switch(Math.floor(r)){case 0:n[0]=1,n[1]=l,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]=l;break;case 3:n[0]=0,n[1]=o,n[2]=1;break;case 4:n[0]=l,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)]},Ca.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]},Ca.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]},Ca.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)]},Ca.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]},Ca.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Ca.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Ca.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Ca.gray.hsl=function(e){return[0,0,e[0]]},Ca.gray.hsv=Ca.gray.hsl,Ca.gray.hwb=function(e){return[0,100,e[0]]},Ca.gray.cmyk=function(e){return[0,0,0,e[0]]},Ca.gray.lab=function(e){return[e[0],0,0]},Ca.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},Ca.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Ra=Ia;function Ta(e){const t=function(){const e={},t=Object.keys(Ra);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(Ra[e]);for(let n=i.length,r=0;r<n;r++){const n=i[r],l=t[n];-1===l.distance&&(l.distance=t[e].distance+1,l.parent=e,a.unshift(n))}}return t}function La(e,t){return function(a){return t(e(a))}}function wa(e,t){const a=[t[e].parent,e];let i=Ra[t[e].parent][e],n=t[e].parent;for(;t[n].parent;)a.unshift(t[n].parent),i=La(Ra[t[n].parent][n],i),n=t[n].parent;return i.conversion=a,i}const xa=Ia,_a=function(e){const t=Ta(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]=wa(e,t))}return a},Da={};Object.keys(xa).forEach((e=>{Da[e]={},Object.defineProperty(Da[e],"channels",{value:xa[e].channels}),Object.defineProperty(Da[e],"labels",{value:xa[e].labels});const t=_a(e);Object.keys(t).forEach((a=>{const i=t[a];Da[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),Da[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 ka=ya,Ma=Da,Pa=["keyword","gray","hex"],Fa={};for(const e of Object.keys(Ma))Fa[[...Ma[e].labels].sort().join("")]=e;const Ua={};function Ba(e,t){if(!(this instanceof Ba))return new Ba(e,t);if(t&&t in Pa&&(t=null),t&&!(t in Ma))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 Ba)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=ka.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,i=Ma[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=Ma[this.model].channels;const a=Array.prototype.slice.call(e,0,i);this.color=Ha(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 Fa))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Fa[i];const{labels:n}=Ma[this.model],r=[];for(a=0;a<n.length;a++)r.push(e[n[a]]);this.color=Ha(r)}if(Ua[this.model])for(i=Ma[this.model].channels,a=0;a<i;a++){const e=Ua[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)}Ba.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in ka.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const a=1===t.valpha?t.color:[...t.color,this.valpha];return ka.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 ka.to.rgb.percent(a)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Ma[this.model],{labels:a}=Ma[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 Ba([...this.color.map(ja(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new Ba([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Wa("rgb",0,Ga(255)),green:Wa("rgb",1,Ga(255)),blue:Wa("rgb",2,Ga(255)),hue:Wa(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:Wa("hsl",1,Ga(100)),lightness:Wa("hsl",2,Ga(100)),saturationv:Wa("hsv",1,Ga(100)),value:Wa("hsv",2,Ga(100)),chroma:Wa("hcg",1,Ga(100)),gray:Wa("hcg",2,Ga(100)),white:Wa("hwb",1,Ga(100)),wblack:Wa("hwb",2,Ga(100)),cyan:Wa("cmyk",0,Ga(100)),magenta:Wa("cmyk",1,Ga(100)),yellow:Wa("cmyk",2,Ga(100)),black:Wa("cmyk",3,Ga(100)),x:Wa("xyz",0,Ga(95.047)),y:Wa("xyz",1,Ga(100)),z:Wa("xyz",2,Ga(108.833)),l:Wa("lab",0,Ga(100)),a:Wa("lab",1),b:Wa("lab",2),keyword(e){return void 0!==e?new Ba(e):Ma[this.model].keyword(this.color)},hex(e){return void 0!==e?new Ba(e):ka.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new Ba(e);const t=this.rgb().round().color;let a=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===a.length&&(a="0"+a),ka.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 Ba.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,r=2*n-1,l=a.alpha()-i.alpha(),o=((r*l==-1?r:(r+l)/(1+r*l))+1)/2,s=1-o;return Ba.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(Ma)){if(Pa.includes(e))continue;const{channels:t}=Ma[e];Ba.prototype[e]=function(...t){return this.model===e?new Ba(this):t.length>0?new Ba(t,e):new Ba([...(a=Ma[this.model][e].raw(this.color),Array.isArray(a)?a:[a]),this.valpha],e);var a},Ba[e]=function(...a){let i=a[0];return"number"==typeof i&&(i=Ha(a,t)),new Ba(i,e)}}function ja(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function Wa(e,t,a){e=Array.isArray(e)?e:[e];for(const i of e)(Ua[i]||(Ua[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 Ga(e){return function(t){return Math.max(0,Math.min(e,t))}}function Ha(e,t){for(let a=0;a<t;a++)"number"!=typeof e[a]&&(e[a]=0);return e}var za=ra(Ba);const Ya=(e,t)=>za(e).darken(t).rgb().string(),qa=Object.assign({inherit:"inherit",transparent:"transparent",black:na.colors.black,white:na.colors.white,bodyBackground:na.colors.white,darkBodyBackground:na.colors.primary,bodyText:na.colors.primary,bodyTextInverted:na.colors.primary50,darkBodyText:na.colors.primary50,display:na.colors.black,darkDisplay:na.colors.white},Object.assign({},...Object.keys(na.colors).map((e=>{const t=na.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,za(a).lighten(i).rgb().string()),darker:Ya(t,.1)}};var a,i})))),Va=Object.assign(Object.assign({},na),{colors:Object.assign(Object.assign({},na.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({},na.borderRadius),fontWeight:Object.assign(Object.assign({},na.fontWeight),{light:"300",normal:"400",bold:"700"})}),Ka=(e,t)=>za(e).darken(t).rgb().string(),$a=Object.assign(Object.assign(Object.assign({},qa),{bodyBackground:Va.colors.primary700,darkBodyBackground:Va.colors.primary800,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(Va.colors).map((e=>{const t=Va.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,i=.1,za(a).lighten(i).rgb().string()),darker:Ka(t,.1)}};var a,i})))),Xa=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"]}),Qa=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),Za={colors:Object.assign({},$a),fontFamily:Object.assign({},Xa),fontSize:Object.assign({},null==Va?void 0:Va.fontSize),fontWeight:Object.assign({},null==Va?void 0:Va.fontWeight),buttons:Object.assign({},Qa),screens:Object.assign({},null==Va?void 0:Va.screens),borderRadius:Object.assign({},null==Va?void 0:Va.borderRadius),spacing:Object.assign({},null==Va?void 0:Va.spacing),extend:Object.assign({},null==Va?void 0:Va.extend)};export{ee as AnimationCounter,ct as AnimationSet1,wt as AppContext,wt as AppProvider,gt as Authenticator,Ue as Avatar,re as BTN_SIZES,ie as BTN_TYPES,ne as BTN_VARIANTS,ae as Blockquote,oe as Button,Be as ButtonGroup,ue as COPY_ALIGN,he as COPY_CONTEXTUAL,fe as COPY_SIZE,ve as COPY_TAG,pe as COPY_TRANSFORM,Ct as CPL_SPACING,Rt as CRL_SIZE,Ke as Card,kt as CardVariant,de as Checkbox,Ee as Chip,rt as Container,It as ContentPageLayout,Tt as ContentRowsLayout,ge as Copy,$e as DisplayHeading,Qe as FIELD_TYPES,be as FileUpload,xt as Footer,vt as ForgotPasswordForm,Xe as Form,Je as FormField,Ze as FormSelect,Ae as HEADING_ALIGN,Ne as HEADING_TAGS,ye as HEADING_TRANSFORM,_t as Header,Se as Heading,lt as Hero,Oe as Hr,st as HtmlContent,te as Icon,Ce as Image,Ie as Label,me as Link,Le as List,xe as ListItem,Te as ListTag,le as Loader,ht as LoginForm,we as Logo,it as Menu,Xt as MultiCheckboxFacet,_e as Notice,Dt as OTPInput,bt as PanelCards,Nt as PanelFeature,yt as PanelHero,St as PanelProduct,Ot as PanelVideo,Zt as ProfileForm,De as Radio,ft as RegisterForm,Qt as ResetPasswordForm,Mt as ResultAsTypes,Fe as STRINGS_EN,Vt as Search,et as Share,$t as SingleLinksFacet,Kt as SingleSelectFacet,ke as Switch,tt as Tabs,Pe as TextInput,ea as ThemeContext,ta as ThemeProvider,Re as Variants,At as Video,at as VisitUs,Jt as defaultTheme,Za as theme,aa as useLanguage,ia as useTheme};
|