@4alldigital/foundation-ui--gamma 1.53.3 → 1.53.4
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 +2 -2
- package/dist/index.js +1 -1
- package/dist/types/lib/templates/LogoutScreen/LogoutScreen.d.ts +8 -0
- package/dist/types/lib/templates/LogoutScreen/LogoutScreen.types.d.ts +4 -0
- package/dist/types/lib/templates/LogoutScreen/index.d.ts +1 -0
- package/dist/types/lib/templates/index.d.ts +2 -0
- package/dist/types/lib/translations/en.d.ts +2 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -13,4 +13,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
function P(e,t){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(s[a[i]]=e[a[i]])}return s}function k(e,t,s,a){return new(s||(s=Promise))((function(t,i){function r(e){try{o(a.next(e))}catch(e){i(e)}}function n(e){try{o(a.throw(e))}catch(e){i(e)}}function o(e){var a;e.done?t(e.value):(a=e.value,a instanceof s?a:new s((function(e){e(a)}))).then(r,n)}o((a=a.apply(e,[])).next())}))}D.displayName="Button";const M=t.forwardRef((function(t,a){var{id:i,label:r,required:n,className:o,disabled:l}=t,d=P(t,["id","label","required","className","disabled"]);return e.jsxs("div",{"data-testid":"Checkbox",className:s("flex items-center",o),children:[e.jsxs("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e.jsx("input",Object.assign({id:i,ref:a,disabled:l,type:"checkbox",className:"form-item checkbox m-0 appearance-none peer h-full w-full shrink-0 focus:ring-2",required:n},d)),e.jsx("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.jsx(y,{name:"mdi:check-bold",size:12})})]}),r&&e.jsx("label",{className:"label pl-2 leading-none text-sm text-bodyText dark:text-darkBodyText",htmlFor:i,children:r})]})}));M.displayName="Checkbox";const U=({href:a,children:i,onClick:r=(()=>{}),history:n,target:o,id:l,testID:d,className:c,prefetch:u,hideExternalIcon:m=!1})=>{const p=s("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",c);if(!m&&a&&a.startsWith("http"))return e.jsxs("span",{children:[e.jsx("a",{"data-testid":d||l||"Link",className:s(p),href:a,target:"_blank",rel:"noopener noreferrer",children:i}),e.jsx(y,{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 t.createElement(e,{href:a||"#",onClick:r,"data-testid":d||l||"Link",className:p,target:o||"_self",prefetch:u||!1},i)}catch(t){const s=e=>{r?r(e):!0!==e.defaultPrevented&&n&&a&&(e.preventDefault(),n.push(a))};return e.jsx("a",{"data-testid":d||l||"Link",className:p,href:a,onClick:s,target:o,children:i})}};var F,B,G,H,Y;U.displayName="Link",exports.COPY_ALIGN=void 0,(F=exports.COPY_ALIGN||(exports.COPY_ALIGN={})).LEFT="left",F.CENTER="center",F.RIGHT="right",F.JUSTIFY="justify",F.NOWRAP="nowrap",exports.COPY_TRANSFORM=void 0,(B=exports.COPY_TRANSFORM||(exports.COPY_TRANSFORM={})).LOWERCASE="lowercase",B.UPPERCASE="uppercase",B.CAPITALIZE="capitalize",exports.COPY_CONTEXTUAL=void 0,(G=exports.COPY_CONTEXTUAL||(exports.COPY_CONTEXTUAL={})).INVERTED="inverted",G.MUTED="muted",exports.COPY_SIZE=void 0,(H=exports.COPY_SIZE||(exports.COPY_SIZE={})).SMALL="small",H.MEDIUM="medium",H.LARGE="large",H.INTRO="intro",exports.COPY_TAG=void 0,(Y=exports.COPY_TAG||(exports.COPY_TAG={})).P="p",Y.SPAN="span",Y.DIV="div",Y.SMALL="small";const V=({children:t,as:a=exports.COPY_TAG.P,size:i,bold:n,align:o,transform:l,underlined:d,id:c,className:u,testID:m})=>{const p=s({[`text-${o}`]:o},{"font-bold":n},{"text-base mb-3 mt-0":"p"===a},{"text-sm":"small"===a},{"text-sm":"small"===i},{"text-base":"medium"===i},{"text-lg":"large"===i},{"text-2xl":"intro"===i},{underline:d},l,u);return e.jsx(a,{"data-testid":m||c||"Copy",className:r.twMerge(p),children:t})};V.displayName="Copy";const W=({testID:a,text:i,outline:n,rounded:o,variant:l,size:d="medium",icon:c,iconFirst:u,onClick:m})=>{const p=t.useMemo((()=>{switch(d){case"small":return{iconSize:16,copySize:exports.COPY_SIZE.SMALL};case"medium":default:return{iconSize:20,copySize:exports.COPY_SIZE.MEDIUM};case"large":return{iconSize:28,copySize:exports.COPY_SIZE.LARGE}}}),[d]),x=r.twMerge(s("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":n},{"rounded-full":o},{"flex-row-reverse":u},{"bg-primary text-white":"primary"===l},{"bg-secondary text-white":"secondary"===l},{"bg-tertiary text-white":"tertiary"===l},{"bg-info text-white":"info"===l},{"bg-success text-white":"success"===l},{"bg-warning text-white":"warning"===l},{"bg-error text-white":"error"===l},{"py-1 px-3":"small"===d},{"py-2 px-4":"medium"===d},{"py-3 px-6":"large"===d}));return m&&"function"==typeof m?e.jsxs(U,{"data-testid":a||"Chip",className:x,onClick:m,children:[e.jsx(V,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),c&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(y,{name:c,size:p.iconSize})})]}):e.jsxs("div",{"data-testid":a||"Chip",className:x,children:[e.jsx(V,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),c&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(y,{name:c,size:p.iconSize})})]})};W.displayName="Chip";const z=t.forwardRef((function(t,a){var{id:i,name:r,required:n,disabled:o,className:l,onChangeCallback:d,onChange:c}=t,u=P(t,["id","name","required","disabled","className","onChangeCallback","onChange"]);return e.jsx("div",{"data-testid":"FileUpload",className:l,children:e.jsx("input",Object.assign({ref:a,className:s("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":r,type:"file",disabled:o,required:n,name:r,id:i,onChange:e=>{d&&"function"==typeof d&&d(e),c&&"function"==typeof c&&c({target:{value:e.target.value,name:r}})}},u))})}));var q,K,Z;z.displayName="FileUpload",exports.HEADING_TAGS=void 0,(q=exports.HEADING_TAGS||(exports.HEADING_TAGS={})).H1="h1",q.H2="h2",q.H3="h3",q.H4="h4",q.H5="h5",exports.HEADING_ALIGN=void 0,(K=exports.HEADING_ALIGN||(exports.HEADING_ALIGN={})).LEFT="left",K.CENTER="center",K.RIGHT="right",K.JUSTIFY="justify",K.NOWRAP="nowrap",exports.HEADING_TRANSFORM=void 0,(Z=exports.HEADING_TRANSFORM||(exports.HEADING_TRANSFORM={})).LOWERCASE="lowercase",Z.UPPERCASE="uppercase",Z.CAPITALIZE="capitalize",Z.NORMAL_CASE="normal-case";const $=({children:t,tag:a=exports.HEADING_TAGS.H2,transform:i,align:r,id:n,testID:o,flush:l,className:d,singleLine:c,bold:u=!0})=>{const m=(()=>{switch(a){case"h1":return"text-3xl md:text-4xl lg:text-5xl";case"h2":return"text-3xl md:text-4xl lg:text-4xl";case"h3":return"text-xl md:text-2xl lg:text-2xl";case"h4":return"text-lg md:text-lg lg:text-xl";case"h5":return"text-base md:text-base lg:text-lg";default:return"text-2xl md:text-2xl lg:text-4xl"}})(),p=a,x=s(`m-0 p-0 font-heading ${m}`,{"font-bold":u},{[`text-${r}`]:r},{"mb-2":!l},{"m-0":l},{"whitespace-nowrap text-ellipsis overflow-hidden":c},i,d);return e.jsx(p,{"data-testid":o||n||"Heading",className:x,children:t})};$.displayName="Heading";const X=({size:t="small"})=>e.jsx("hr",{className:s("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})});X.displayName="Hr";const Q=a=>{var{src:i,alt:n,title:o,caption:l,figure:d=!1,onLoad:c,id:u,className:m,sizes:p="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:x}=a,h=P(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 s=!h.width,a=s?{sizes:p}:{};return t.createElement(e,Object.assign(Object.assign({src:i,alt:n,title:o,fill:s,onLoad:c,className:m},a),h))}catch(t){const a=s("m-0"),p=r.twMerge(s("w-full h-full",m));return d||l?e.jsxs("figure",{"data-testid":x||u||"Image",className:a,children:[e.jsx("img",{onLoad:c,src:i,alt:n,title:o,className:p}),l&&e.jsx("figcaption",{children:l})]}):e.jsx("img",{"data-testid":x||u||"Image",onLoad:c,src:i,alt:n,title:o,className:p})}};Q.displayName="Image";const J=({children:t,id:a,transform:i,className:n})=>e.jsx("label",{"data-testid":"Label",className:r.twMerge(s("label mb-2 text-bodyText dark:text-darkBodyText",i,n)),htmlFor:a,children:t});var ee,te;J.displayName="Label",exports.Variants=void 0,(ee=exports.Variants||(exports.Variants={})).UNSTYLED="unstyled",ee.INLINE="inline",ee.SMALL="small",ee.LARGE="large",exports.ListTag=void 0,(te=exports.ListTag||(exports.ListTag={})).OL="ol",te.UL="ul",te.DL="dl",te.DIV="div",te.DT="dt",te.DD="dd",te.LI="li";const se=({variants:t,children:a,as:i=exports.ListTag.UL,id:r,testID:n,className:o})=>{const l=t?t.map((e=>`list--${e}`)):null,d=i;return e.jsx(d,{"data-testid":n||r||"List",className:s(l,o),children:a})};se.displayName="List";const ae=({testID:t,logo:a,className:i,aspectRatioClass:r="aspect-[1/1]"})=>e.jsx("div",{"data-testid":t||"Logo",className:s("relative w-full",r,i),children:e.jsx(Q,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});ae.displayName="Logo";const ie=({onClick:t,title:a,icon:i,children:r,as:n="li",id:o,testID:l,className:d})=>e.jsxs(n,{"data-testid":l||o||"ListItem",className:s({"list-item":"div"!==n},d),children:[t&&e.jsxs(D,{variant:exports.BTN_VARIANTS.LINK,onClick:t,children:[e.jsxs("div",{className:"",children:[i&&e.jsx("div",{children:e.jsx(y,{name:i,size:24})}),a&&e.jsx("div",{children:e.jsx($,{flush:!0,tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),r&&e.jsx("div",{children:r})]}),e.jsx("div",{children:e.jsx(y,{name:"mdi:chevron-right",size:24})})]}),!t&&e.jsx("div",{className:"",children:r&&e.jsx("div",{children:r})})]});ie.displayName="ListItem";const re=({id:t,testID:a,title:i,text:r,icon:n,type:o,onCloseCallback:l,onClickCallback:d,actionText:c})=>{const u=s("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.jsx("div",{"data-testid":a||t||"Notice",className:u,children:e.jsxs("div",{className:"flex gap-2",children:[n&&e.jsx("div",{className:"mr-2",children:e.jsx(y,{name:n})}),e.jsxs("div",{children:[i&&e.jsx($,{tag:exports.HEADING_TAGS.H3,children:i}),e.jsx(V,{className:"mb-0",children:r})]}),d&&c&&e.jsx("div",{className:"ml-auto flex items-end",children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:d,"aria-label":"Action",size:exports.BTN_SIZES.SMALL,children:c})}),l&&e.jsx("div",{className:"absolute top-2 right-4",children:e.jsx(D,{variant:exports.BTN_VARIANTS.LINK,icon:"mdi:close",onClick:l,"aria-label":"Close"})})]})})};re.displayName="Notice";const ne=t.forwardRef((function(t,a){var{name:i,required:r,className:n,options:o}=t,l=P(t,["name","required","className","options"]);return e.jsx("div",{"data-testid":"Radio",className:s("flex items-center",n),children:e.jsx("div",{className:s("flex flex-col gap-2",n),children:null==o?void 0:o.map((t=>{var s;const n=(null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.toString())||void 0;return e.jsxs("div",{className:"flex items-center relative",children:[e.jsxs("div",{className:"relative flex items-center",children:[e.jsx("input",Object.assign({ref:a,name:i,type:"radio",required:r,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4"},l,{id:n,value:n})),e.jsx("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.jsx(y,{name:"mdi:circle",size:12})})]}),e.jsx("label",{className:"label pl-2 leading-none",htmlFor:n,children:t.label})]},n)}))})})}));ne.displayName="Radio";const oe=t.forwardRef((function(t,a){var{id:i,name:r,required:n,disabled:o,className:l}=t,d=P(t,["id","name","required","disabled","className"]);return e.jsxs("label",{"data-testid":"Switch",className:s("inline-flex items-center cursor-pointer",l),children:[e.jsx("input",Object.assign({ref:a,id:i,name:r,type:"checkbox",value:"",className:"sr-only peer",disabled:o,required:n},d)),e.jsx("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 le;oe.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"}(le||(le={}));const de=t.forwardRef((function(a,i){var{type:r=le.TEXT,required:n=!1,className:o,onChange:l,placeholder:d,icon:c,disabled:u=!1,name:m,autoComplete:p}=a,x=P(a,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);t.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const h="date"===r?"dd/mm/yyyy".toUpperCase():d;return r===le.TEXTAREA?e.jsx("div",{"data-testid":"TextInput",className:"relative",children:e.jsx("textarea",Object.assign({ref:i,id:m,autoComplete:m,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,rows:4,className:s("form-item text-input resize-none",o)},x))}):e.jsxs("div",{"data-testid":"TextInput",className:"relative",children:[c&&e.jsx("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e.jsx(y,{name:c})}),e.jsx("input",Object.assign({ref:i,id:m,type:r,autoComplete:p,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,className:s("form-item text-input",{"pl-12":c},o)},x))]})}));de.displayName="TextInput";const ce={GLOBAL:{SCREENS:{ACCOUNT:{TITLE:"Account"},CATALOGUE_LIST:{TITLE:"Catalogue"},CHALLENGE:{TITLE:"Challenge",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",CLICK_TO_ENTER:"Click the buy button below to enter the challenge.",PAYMENT_NOTE:"Please note we automatically take payment from the registered payment option saved on your profile."},CHALLENGES_LIST:{TITLE:"Challenges"},DASHBOARD:{TITLE:"Dashboard"},LIVE_SCHEDULE:{TITLE:"Live"},LOGIN:{TITLE:"Login"},REGISTER:{TITLE:"Register"},PROFILE:{TITLE:"Profile"},SUBSCRIPTION:{TITLE:"Subscription"},WORKOUT:{TITLE:"Workout"},FORGOT_PASSWORD:{TITLE:"Forgot Password"},RESET_PASSWORD:{TITLE:"Reset Password"},HOME:{TITLE:"Home"},CATALOGUE:{TITLE:"Catalogue"},CHALLENGES:{TITLE:"Challenges"},LIVE:{TITLE:"Live"},SCHEDULE:{TITLE:"Schedule"},SETTINGS:{TITLE:"Settings"},HELP:{TITLE:"Help"},LEGAL_INFO:{TITLE:"Legal & Information"},CONTENT:{TITLE:"Content"},FAVOURITES:{TITLE:"Favourites"}}},FORMS:{LOGIN_FORM:{TITLE:"Login",SUBMIT:"Login",FORGOT_PASSWORD:"Forgot password?",REGISTER:"Register",EMAIL:"Email",PASSWORD:"Password"},REGISTER_FORM:{TITLE:"Register",SUBMIT:"Register",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},FORGOT_PASSWORD_FORM:{TITLE:"Forgot Password",SUBMIT:"Send Reset Email",EMAIL:"Email"},RESET_PASSWORD_FORM:{TITLE:"Reset Password",SUBMIT:"Reset Password",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm Password"},RESET_PASSWORD_FORM_AUTH:{TITLE:"Reset Password",SUBMIT:"Reset Password",CURRENT_PASSWORD:"Current Password",NEW_PASSWORD:"New Password"},PROFILE_FORM:{TITLE:"Profile",SUBMIT:"Save",FIRST_NAME:"First Name",LAST_NAME:"Last Name",AVATAR:"Avatar",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},ACCOUNT:{SUBMIT_LABEL:"Update",EMAIL_LABEL:"Email",PASSWORD_LABEL:"Password",FIRST_NAME_LABEL:"First name",LAST_NAME_LABEL:"Last name",DOB_LABEL:"Date of birth",TERMS_AND_CONDITIONS_LABEL:"Terms & Conditions",TERMS_AND_CONDITIONS_DESCRIPTION:"Read our terms & conditions from the link in the footer. ",CONTACT_PREFERENCES_LABEL:"Yes/No",CONTACT_PREFERENCES_DESCRIPTION:"Happy for us to email you about the latest features, information and offers?",SKIP_LABEL:"Skip step",SUCCESS_MESSAGE:"Account updated",SUBSCRIPTION_STATUS_LABEL:"Subscription status",SUBSCRIPTION_PLAN_LABEL:"Plan",SUBSCRIPTION_PRICE_LABEL:"Price (£)",SUBSCRIPTION_BILLING_DATE_LABEL:"Next Billing Date",SUBSCRIPTION_PAYMENT_TYPE_LABEL:"Card Type",SUBSCRIPTION_CARD_NUMBER_LABEL:"Card Number",SUBSCRIPTION_CARD_EXPIRY_LABEL:"Card Expiry Date",SUBSCRIPTION_LAST_UPDATED_LABEL:"Last Updated"}},VALIDATION:{UNKNOWN_SUBMISSION_ERROR:"Sorry, something bad happened! Please try again later.",REQUIRED_FIELD:"Required",TOO_SHORT:"Must be at least {count}",TOO_LONG:"Sorry, that's too long",INVALID_EMAIL:"Oops that email address doesn't look quite right",LOGIN_DENIED:"Your username and password do not match our records",LOGIN_ERROR:"Sorry something went wrong, please try again later",ACCOUNT_FIRST_NAME:"We need to know your name for ongoing communication",ACCOUNT_LAST_NAME:"We need to know your full name for your orders and if you need to contact support",CHARACTERS_ONLY:"You can only use letters",PASSWORD_DESCRIPTION:"Password must be between {count} and 30 characters and contain at least 1 uppercase, 1 lowercase, 1 number and a symbol (eg. @$%).",PASSWORD_CASE_MESSAGE:"Password must have one capital letter",PASSWORD_LOWERCASE_MESSAGE:"Password must have one lowercase letter",PASSWORD_LENGTH_MESSAGE:"Password must be at least 8 characters",PASSWORD_NUMERIC_MESSAGE:"Password must have at least one number",PASSWORD_SPECIAL_MESSAGE:"Password must have at least one special character (eg. @$%)",AUTH_API_ERROR:"An account with the given email already exists.: Conflict",AUTH_ACCOUNT_EXISTS_MESSAGE:"An account with the given email already exists. Please sign in"},UI:{SHOW:"Show",NO_IMAGE:"No image",UPLOAD:"Upload",SAVE:"Save",CANCEL:"Cancel",DELETE:"Delete",CONTINUE_WITH_SOCIAL:"Continue with Social Account",SINGLE_SIGNON:"Single Sign-On",LOGIN_WITH_GOOGLE:"Login with Google",LOGIN_WITH_APPLE:"Login with Apple",SIGNUP_WITH_GOOGLE:"Signup with Google",SIGNUP_WITH_APPLE:"Signup with Apple",BACK_TO_LOGIN:"Back to Login",FORGOT_PASSWORD:"Forgot Password?",SUBMIT:"Submit",LOGIN:"Login",LOGOUT:"Logout",REGISTER:"Register",SOCIAL:{GOOGLE:"Google",FACEBOOK:"Facebook",TWITTER:"Twitter",EMAIL:"Email"},READ_MORE:"Read more",READ_LESS:"Show less",CLOSE:"Close",BACK:"Back",SHARE:"Share",DOWNLOAD:"Download",FORMAT_HOUR:"{hour}hr",FORMAT_HOURS:"{hours}hrs",FORMAT_MINUTE:"{minute}min",FORMAT_MINUTES:"{minutes}mins",LOAD_MORE_LABEL:"Load more",NO_MORE_RESULTS:"That's all folks.",UNKNOWN_ERROR_TITLE:"Unknown error",UNKNOWN_ERROR_MESSAGE:"Sorry, something bad happened! Please try again.",CONTENT_SORT_TITLE:"Sort by",CONTENT_FILTERS_TITLE:"Filters",CONTENT_FILTERS_LABEL:"Filter",CLOSE_FILTERS_LABEL:"Done",CLEAR_ALL_FILTERS_LABEL:"Clear All",CLEAR_FILTERS_LABEL:"Clear",MORE_ITEMS_LABEL:"Next items",PREVIOUS_ITEMS_LABEL:"Previous items",CHOOSE_BTN_LABEL:"Choose",ADD_BTN_LABEL:"Add",SEND_BTN_LABEL:"Send",CANCEL_BTN_LABEL:"Cancel",DONE_BTN_LABEL:"Done",EDIT_BTN_LABEL:"Edit",CHANGE_BTN_LABEL:"Change",REMOVE_BTN_LABEL:"Remove",MESSAGE_PROMPT_BTN_LABEL:"Add one",SELECT_FILE_BTN_LABEL:"Select file",TOO_MANY_REQUESTS_MESSAGE:"Too many requests. Please try again later.",COPYRIGHT:"Copyright",ALL_RIGHTS_RESERVED:"All rights reserved",APP_CAMERA_PERMISSION:"Camera permission",APP_CAMERA_PERMISSION_DENIED:"Camera permission denied",APP_NEED_ACCESS_CAMERA:"This app needs access to your camera",ASK_ME_LATER:"Ask me later",PRIVACY_POLICY:"Privacy Policy",CREATE_ACCOUNT:"Create account",COMPLETE:"Complete",EDIT:"Edit",PREV:"Prev",NEXT:"Next",GET_STARTED:"Get started",START_SEARCH:"Start search",READ_MORE_LABEL:"Read more",READ_LESS_LABEL:"Show less",CLOSE_LABEL:"Close",CLOSE_HINT:"Close this entry",BACK_LABEL:"Back",SHARE_LABEL:"Share",VIEW_MORE_LABEL:"View more",VIEW_LESS_LABEL:"View less",GOT_IT:"Got it",MORE:"More",MORE_DETAILS:"More details",MORE_INFO:"More info",LEARN_MORE:"Learn more",LOW:"Low",MEDIUM:"Medium",HIGH:"High",VERY_HIGH:"Very high",VERY_LOW:"Very low",GOOD:"Good",BAD:"Bad",STRONG:"Strong",SAVE_CONTINUE:"Save and Continue",SAVE_FINISH:"Save and Finish",FINISH:"Finish",SKIP:"Skip",ADD:"Add",ADDED:"Added",ADD_ANOTHER:"Add another",CREATE_PROFILE:"Create profile",CONTINUE_NO_ACCOUNT:"Continue without account",REQUIRED_MISSING:"Required field missing",RESET:"Reset",APPLY_FILTER:"Apply filter",START:"Start",END:"End",HELP:"Help",WHAT_IS_THIS:"What is this?",CARD_VIEW:"Card view",LIST_VIEW:"List view",FILTER:"Filter",NO_RESULTS:"No results",CONTINUE:"Continue",CONTINUE_BROWSING:"Continue browsing",VIEW:"View",INFORMATION:"Information",DELETE_HINT:"Delete this entry",VISIT_WEBSITE:"Visit website",TAKE_AGAIN:"Take again",ADD_MORE:"Add more",REQUEST_SENT:"Request sent",CUSTOMISE:"Customize",SET_LOCATION:"Set location",COUNTY_NOT_FOUND:"County not found",NO_RESOURCES_FOUND:"No resources found",PATHWAY:"Pathway",CLICK_TO_NAVIGATE:"Click to navigate",INPUT_FIELD:"Input field",GO_BACK:"Go back",NAVIGATES_PREV:"Navigates to the previous screen",REMOVE:"Remove",NO_INTERNET_CONNECTION:"No internet connection",CHECK_CONNECTION:"Please check your internet connection and try again.",EXPLORE:"Explore",NO_ACCOUNT:"No account?",START_WORKOUT:"Start workout",START_MEDIA:"Start media",LAUNCH:"Launch",PUBLISHED:"Published",CREATED:"Created",UPDATED:"Updated",DURATION:"Duration",LEVEL:"Level",SECTION:"Section",DOWNLOADING:"Downloading",DOWNLOAD_COMPLETE:"Download complete",DOWNLOAD_FAILED:"Download failed",DOWNLOAD_CANCELLED:"Download cancelled",DOWNLOADING_MEDIA:"Downloading media",DOWNLOADING_MEDIA_FAILED:"Downloading media failed",DOWNLOADING_MEDIA_CANCELLED:"Downloading media cancelled",DOWNLOADING_MEDIA_COMPLETE:"Downloading media complete",DOWNLOADING_MEDIA_CANCEL:"Cancel download",DOWNLOADING_MEDIA_RETRY:"Retry download",DOWNLOADING_MEDIA_PAUSE:"Pause download",DOWNLOADING_MEDIA_RESUME:"Resume download",DOWNLOADING_MEDIA_CONTINUE:"Continue download",DOWNLOADING_MEDIA_START:"Start download",DOWNLOADING_MEDIA_CONFIRM:"Confirm download",DOWNLOAD_REMOVED:"Download removed",DOWNLOAD_REMOVE_ERROR:"Error removing download",CATEGORY:"Category",TYPE:"Type",WORKOUT_TYPE:"Workout type",MEDIA_TYPE:"Media type",WORKOUT:"Workout",MEDIA:"Media",WORKOUTS:"Workouts",WORKOUT_CATEGORY:"Workout category",MEDIA_CATEGORY:"Media category",ADDED_LIKE:"Added like",REMOVED_LIKE:"Removed like",ADDED_FAVORITE:"Added favorite",REMOVED_FAVORITE:"Removed favorite",ADDED_BOOKMARK:"Added bookmark",REMOVED_BOOKMARK:"Removed bookmark",ADDED_WATCHLIST:"Added watchlist",REMOVED_WATCHLIST:"Removed watchlist",ADDED_PLAYLIST:"Added playlist",REMOVED_PLAYLIST:"Removed playlist",ADDED_SUBSCRIPTION:"Added subscription",REMOVED_SUBSCRIPTION:"Removed subscription",ADDED_FOLLOW:"Added follow",REMOVED_FOLLOW:"Removed follow",ADDED_FRIEND:"Added friend",REMOVED_FRIEND:"Removed friend",ADDED_CONNECTION:"Added connection",REMOVED_CONNECTION:"Removed connection",MARKED_COMPLETE:"Marked complete",MARKED_INCOMPLETE:"Marked incomplete",MUSIC_ENABLED:"Music enabled",MUSIC_DISABLED:"Music disabled",SHARED:"Shared",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",PURCHASE_TO_ACCESS:"Purchase to access",SHOW_FILTERS:"Show filters",HIDE_FILTERS:"Hide filters",THIS_WEEK:"This week",TODAYS_ITEMS:"Today's items",START_TRIAL_LABEL:"Start Free Trial",START_WORKOUTS_LABEL:"Start Workouts Now",UPDATE_LABEL:"Update now",SESSION_EXPIRED:"Session expired. Please log in.",NO_VALID_SUB:"No valid subscription found. Please subscribe or contact us if you believe this is an error.",SUBSCRIPTION_ERROR:"There's a problem with your account. No valid subscription found.",SUCCESS:"Success",UPLOAD_IMAGE:"Upload Image",UPLOAD_VIDEO:"Upload Video",UPLOAD_AUDIO:"Upload Audio",UPLOAD_DOCUMENT:"Upload Document",UPLOAD_MEDIA:"Upload Media",UPLOAD_MEDIA_FILE:"Upload Media File",UPLOAD_SUCCESS:"Upload successful",UPLOAD_FAILED:"Upload failed",UPLOADING:"Uploading",SHARE_DESCRIPTION:"Share this with your friends",SHARE_TITLE:"Share",ALREADY_RATED:"You have already rated this",RATE:"Rate",VERSION:"Version",APP_VERSION:"App Version",WELCOME:"Welcome",LATEST_WORKOUTS:"Latest Workouts",RECENTLY_VIEWED:"Recently Viewed",RECENTLY_ADDED:"Recently Added",RECENTLY_COMPLETED:"Recently Completed",WORKOUTS_LIKED:"Workouts Liked",WORKOUTS_FAVORITED:"Workouts Favorited",WORKOUTS_BOOKMARKED:"Workouts Bookmarked",WORKOUTS_COMPLETED:"Workouts Completed",WORKOUTS_DONE:"Workouts Done",LIKED:"Liked",FAVORITED:"Favorited",BOOKMARKED:"Bookmarked",COMPLETED:"Completed",DONE:"Done",STATS:"Stats",STATISTICS:"Statistics",ACTIVITY:"Activity",RECENT_ACTIVITY:"Recent Activity",NEWS:"News",UPDATES:"Updates",LATEST_NEWS:"Latest News",WHATS_NEW:"What's New",WHATS_NEWS:"What's News",GOOD_MORNING:"Good Morning",GOOD_AFTERNOON:"Good Afternoon",GOOD_EVENING:"Good Evening",NO_CLASS:"No class",RELATED:"Related",RELATED_WORKOUTS:"Related Workouts",RELATED_CHALLENGES:"Related Challenges",RELATED_VIDEOS:"Related Videos",RELATED_MEDIA:"Related Media",CHALLENGES_ENTERED:"Challenges Entered",UPGRADE_TO_PREMIUM_PLUS:"Upgrade to Premium+",UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE:"Upgrade to Premium+ for unlimited access to the live streamed classes",UPGRADE_TO_PREMIUM:"Upgrade to Premium",PUSH_NOTIFICATIONS:"Push Notifications",PUSH_NOTIFICATIONS_ENABLED:"Push notifications enabled",PUSH_NOTIFICATIONS_DISABLED:"Push notifications disabled",EMAIL_NOTIFICATIONS:"Email Notifications",EMAIL_NOTIFICATIONS_ENABLED:"Email notifications enabled",EMAIL_NOTIFICATIONS_DISABLED:"Email notifications disabled",SMS_NOTIFICATIONS:"SMS Notifications",SMS_NOTIFICATIONS_ENABLED:"SMS notifications enabled",SMS_NOTIFICATIONS_DISABLED:"SMS notifications disabled",NOTIFICATIONS:"Notifications",PUSH_NOTIFICATIONS_DESCRIPTION:"Receive push notifications for new content and updates",EMAIL_NOTIFICATIONS_DESCRIPTION:"Receive email notifications for new content and updates",SMS_NOTIFICATIONS_DESCRIPTION:"Receive SMS notifications for new content and updates",OPEN_SETTINGS:"Open settings",NOTIFICATION_SETTINGS:"Notification settings",NOTIFICATION_SETTINGS_DESCRIPTION:"Manage your notification settings",CAMERA_ACCESS:"Camera access",CAMERA_PERMISSION_DENIED:"Camera permission denied",CAMERA_PERMISSION_REQUIRED:"Camera permission required",CAMERA_PERMISSION_DESCRIPTION:"Allow access to your camera to take a profile picture and personalize your account",DISABLE_PERMISSION_IN_SETTINGS:"You can disable in main system settings",DARK_MODE:"Dark mode",LIGHT_MODE:"Light mode",SYSTEM_MODE:"System mode",DARK_MODE_ENABLED:"Dark mode enabled",LIGHT_MODE_ENABLED:"Light mode enabled",SYSTEM_MODE_ENABLED:"System mode enabled",DARK_MODE_DESCRIPTION:"Enable dark mode for better viewing experience",LIGHT_MODE_DESCRIPTION:"Enable light mode for better viewing experience",SYSTEM_MODE_DESCRIPTION:"Enable system mode for better viewing experience",REQUEST_INFO:"Request info",REQUEST_INFORMATION:"Request information",GET_INFO:"Get info",GET_IN_TOUCH:"Get in touch",CONTACT_US:"Contact us",ERROR:"Error",LAST_UPDATED:"Last updated",NO_UPDATES:"No updates",RATED:"Rated",RATE_SUCCESS:"Rating successful",RATE_FAILED:"Rating failed",RATE_CANCELLED:"Rating cancelled",QUESTION:"Question",QUESTION_ABOUT_SUBSCRIPTION:"Question about subscription",LOGOUT_SUCCESS:"Logout successful",NO_ACTIVE_SUBSCRIPTION:"No active subscription",SUBSCRIPTION_EXPIRED:"Subscription expired",NO_SUBSCRIPTION_DETAILS:"You currently do not have an active subscription. If you believe this is an error, please contact our support team for assistance.",PASSWORD_RESET_SUCCESS:"Password reset successful",REGISTRATION_SUCCESS:"Registration successful",REQUIRED_DATA_MISSING:"Required data missing",PASSWORD_EMAIL_SENT:"Password reset email sent",MISSING_QUERY_PARAMS:"Missing query parameters",CHALLENGE_ENTRY_SUCCESS:"You've successfully entered the challenge",RESET_PASSWORD:"Reset password",CURRENT_SUBSCRIPTION:"Current subscription",MANAGE_SUBSCRIPTION:"Manage subscription",CURRENT_PLAN:"Current plan",NEXT_BILLING_DATE:"Next billing date",END_DATE:"End date",SUBSCRIPTION_STATUS:"Subscription status",SUBSCRIPTION_PLAN:"Plan",SUBSCRIPTION_PRICE:"Price",BILLED_MONTHLY:"Billed monthly",ALL_SUBS_BILLED_MONTHLY:"All subscriptions are billed monthly",CHANGE_PLAN:"Change plan",PAUSE_SUBSCRIPTION:"Pause subscription",CONFIRM_TO_PAUSE:"Are you sure you want to pause your subscription?",CONFIRM_TO_SUBMIT:"Confirm to submit",CONFIRM_TO_CHANGE_PLAN:"Are you sure you want to change your plan?",ARE_YOU_SURE:"Are you sure?",ARE_YOU_SURE_TO_DO_THIS:"Are you sure you want to do this?",YES:"Yes",NO:"No",PAGE_NOT_FOUND:"Page not found",PAGE_NOT_FOUND_MESSAGE:"The page you are looking for does not exist",PAGE_NOT_FOUND_OOPS:"Oops! We cant find that page.",PAGE_NOT_FOUND_MESSAGE_OOPS:"It seems you’ve wandered off the beaten path. Don’t worry, it happens to the best of us!",WHAT_CAN_YOU_DO:"What can you do?",DOUBLE_CHECK_URL:"Double-check the URL for any typos",RETURN_TO_HOMEPAGE:"Return to our homepage",EXPLORE_SITE:"Explore our site map to find what you’re looking for.",STILL_NEED_HELP:"If you still need help, feel free to contact us. We’re here to help!",SUBSCRIPTON_UPDATED_SUCCESS:"Subscription updated successfully",SUBSCRIPTON_UPDATED_FAILED:"Subscription update failed",SELECT_A_PLAN:"Select a plan",CONFIRM_CHOICE:"Confirm choice",PROVIDE_PAYMENT_DETAILS:"Please provide your payment details",SUBSCRIPTON_TRIALING:"Your subscription is currently in trial",NEED_HELP_WITH_SUBSCRIPTION:"Need help with your subscription? eg. updating payment details",CONTACT_SUPPORT:"Contact support",REGISTRATION_EMAIL_SENT:"Registration email sent",VERIFY_EMAIL:"Registration email sent. Please verify your email account to login.",VERIFICATION_SUCCESS:"Verification successful",SUBSCRIBE:"Subscribe now",NO_DATA_FOUND:"No data found",NO_DATA:"No data",NO_WORKOUTS:"No workouts",NO_MEDIA:"No media",NO_CHALLENGES:"No challenges",NO_LIVE:"No live classes",NO_SCHEDULE:"No schedule",NO_CONTENT:"No content",PROMO_INFO:"Promo info",REQUEST_PROMO_INFO:"Request promotion info"},ERRORS:{GENERIC_ERROR:"An error occurred",COULD_NOT_FETCH_DATA:"Could not fetch data",COULD_NOT_UPDATE_DATA:"Could not update data",COULD_NOT_DELETE_DATA:"Could not delete data",COULD_NOT_UPDATE_LIKES:"Could not update likes",COULD_NOT_UPDATE_FAVORITES:"Could not update favorites",COULD_NOT_UPDATE_BOOKMARKS:"Could not update bookmarks",COULD_NOT_UPDATE_WATCHLIST:"Could not update watchlist",COULD_NOT_UPDATE_PLAYLIST:"Could not update playlist",COULD_NOT_UPDATE_SUBSCRIPTION:"Could not update subscription",COULD_NOT_UPDATE_FOLLOW:"Could not update follow",COULD_NOT_UPDATE_FRIEND:"Could not update friend",COULD_NOT_UPDATE_CONNECTION:"Could not update connection",ISSUE_CHECKING_PERMISSIONS:"Issue checking permissions",ISSUE_OPENING_SETTINGS:"Issue opening settings",USER_NOT_FOUND_MESSAGE:"User not found",INCORRECT_USERNAME_OR_PASSWORD_MESSAGE:"Incorrect username or password",SIGN_OUT_FAILED_MESSAGE:'"Error signing out. Please try again."',PASSWORD_RESET_FAILED:"Password reset failed",REGISTRATION_FAILED:"Registration failed",VERIFICATION_FAILED:"Verification failed",UNKNOWN_ERROR:"Unknown error"}},ue=({testID:s,name:a="avatar",isEditable:i=!0,initValue:r,fileUpdateCallback:n=(()=>k(void 0,0,void 0,(function*(){})))})=>{const[o,l]=t.useState(r);t.useEffect((()=>{r&&l(r)}),[r]);return e.jsxs("div",{"data-testid":s||'"Avatar"',className:"relative",children:[e.jsxs("div",{className:"relative w-[200px] aspect-1 rounded-full border border-solid overflow-hidden flex items-center justify-center m-4",children:[o&&e.jsxs(e.Fragment,{children:[e.jsx(Q,{src:o,alt:a,width:200,height:200}),i&&e.jsx("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e.jsx(D,{size:exports.BTN_SIZES.SMALL,rounded:!0,onClick:()=>{l(void 0)},children:ce.UI.REMOVE_BTN_LABEL})})]}),!o&&e.jsx(e.Fragment,{children:i&&e.jsx("div",{className:"absolute w-full h-full flex items-center justify-center",children:e.jsx(J,{id:a,className:"button cursor-pointer mb-0",children:e.jsx(V,{className:"mb-0",children:ce.UI.UPLOAD})})})})]}),e.jsx("input",{type:"file",id:a,name:a,className:"hidden",onChange:e=>{var t;const s=null===(t=e.target.files)||void 0===t?void 0:t[0];if(s){const e=URL.createObjectURL(s);l(e),a=s,k(void 0,0,void 0,(function*(){n&&"function"==typeof n&&n(a)}))}var a}})]})};ue.displayName="Avatar";const me=({testID:t,buttonData:a})=>e.jsx("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:null==a?void 0:a.map(((t,i)=>{const r=i>0&&i<a.length-1,n=0===i,o=i===a.length-1,l=s({"rounded-none":r},{"rounded-r":n,"rounded-l":o});return e.jsx("div",{children:e.jsx(D,Object.assign({},t,{className:l,children:t.children}))},t.id)}))});me.displayName="ButtonGroup";const pe="relative rounded-lg overflow-hidden shadow bg-cardBackground text-cardText dark:bg-darkCardBackground dark:text-darkCardText group",xe="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-cardBackground text-cardText dark:bg-darkCardBackground dark:text-darkCardText hover:bg-cardText hover:text-cardBackground group",he="transition duration-500 ease-in-out ",ve={replace(t){if("a"===t.name){const s=n.attributesToProps(t.attribs);return e.jsx(U,Object.assign({},s,{children:n.domToReact(t.children,ve)}))}if(t.attribs&&"p"===t.name){const s=n.attributesToProps(t.attribs);return e.jsx(V,Object.assign({},s,{children:n.domToReact(t.children,ve)}))}return t}},fe=({testID:t,data:a,align:i,className:r})=>e.jsx("span",{"data-testid":t||'"HtmlContent"',className:s("relative",{"text-right":"right"===i},{"text-center":"center"===i},{"text-left":"left"===i},r),children:n(a,ve)});fe.displayName="HtmlContent";const Ne={allowMultipleFractions:!0},Ee=[{unit:"years",symbol:"Y"},{unit:"months",symbol:"M"},{unit:"weeks",symbol:"W"},{unit:"days",symbol:"D"},{unit:"hours",symbol:"H"},{unit:"minutes",symbol:"M"},{unit:"seconds",symbol:"S"}],ge=(e,t)=>`((?<${e}>-?\\d*[\\.,]?\\d+)${t})?`,Se=new RegExp(["(?<negative>-)?P",ge("years","Y"),ge("months","M"),ge("weeks","W"),ge("days","D"),"(T",ge("hours","H"),ge("minutes","M"),ge("seconds","S"),")?"].join(""));function Ae(e){if(""!==e&&null!=e)return parseFloat(e.replace(",","."))}const be=new Error("Invalid duration"),Ie=new Error("Multiple fractions specified");function Te(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}function je(e){const t=o.parse(e),s=[];return t.years&&s.push(`${t.years} years`),t.months&&s.push(`${t.months} months`),t.weeks&&s.push(`${t.weeks} weeks`),t.days&&s.push(`${t.days} days`),t.hours&&s.push(`${t.hours} hours`),t.minutes&&s.push(`${t.minutes} minutes`),t.seconds&&s.push(`${t.seconds} seconds`),s.join(", ")}const Ce=({id:t,title:a,description:i,image:n,className:o,metaData:l,actions:d,padded:c,scaleOnHover:u,onClick:m=(()=>{}),htmlDetails:p})=>{const x=m?xe:pe;return e.jsxs("div",{id:t,"data-testid":"CardBasic",className:r.twMerge(s(he,x,{"p-4":c},{"hover:scale-100":!u},o)),onClick:m,children:[n&&e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden aspect-[16/9]",{rounded:c},n.aspectRatio)),children:e.jsx(Q,{fill:!0,src:null==n?void 0:n.src,sizes:"100vh",alt:null==n?void 0:n.alt,className:s("absolute inset-0 object-cover group-hover:scale-110 dura",he)})}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:s({"p-3":!c},{"pt-3":c}),children:[e.jsx("div",{children:a&&e.jsx($,{tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),!p&&i&&e.jsx("div",{children:e.jsx(V,{className:"mb-0",children:Te(i)})}),p&&i&&e.jsx("div",{children:e.jsx(fe,{className:"mb-0",data:Te(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l&&e.jsx("div",{className:"flex shrink-0 mt-2",children:l.map(((t,s)=>0===s?e.jsxs(V,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===l.length-1?e.jsxs(V,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(V,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),d&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[d.like&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.like)||void 0===s?void 0:s.onClick)&&"function"==typeof d.like.onClick&&d.like.onClick({id:t})}}),d.share&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.share)||void 0===s?void 0:s.onClick)&&"function"==typeof d.share.onClick&&d.share.onClick({id:t})}}),d.save&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.save)||void 0===s?void 0:s.onClick)&&"function"==typeof d.save.onClick&&d.save.onClick({id:t})}}),d.comment&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.comment)||void 0===s?void 0:s.onClick)&&"function"==typeof d.comment.onClick&&d.comment.onClick({id:t})}}),d.bookmark&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.bookmark)||void 0===s?void 0:s.onClick)&&"function"==typeof d.bookmark.onClick&&d.bookmark.onClick({id:t})}}),d.report&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.report)||void 0===s?void 0:s.onClick)&&"function"==typeof d.report.onClick&&d.report.onClick({id:t})}}),d.follow&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.follow)||void 0===s?void 0:s.onClick)&&"function"==typeof d.follow.onClick&&d.follow.onClick({id:t})}}),d.download&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.download)||void 0===s?void 0:s.onClick)&&"function"==typeof d.download.onClick&&d.download.onClick({id:t})}}),d.edit&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.edit)||void 0===s?void 0:s.onClick)&&"function"==typeof d.edit.onClick&&d.edit.onClick({id:t})}}),d.delete&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.delete)||void 0===s?void 0:s.onClick)&&"function"==typeof d.delete.onClick&&d.delete.onClick({id:t})}})]})]})]})})]})};Ce.displayName="CardBasic";const ye=t.createContext({brand:void 0,header:void 0,footer:void 0,locale:void 0,app:void 0,images:void 0});function Oe(){var e;return null===(e=t.useContext(ye).locale)||void 0===e||e.lang,ce}const _e={isDarkTheme:!1,toggleTheme:()=>{},theme:void 0},Re=t.createContext(_e);const Le=({id:t,title:a,description:i,image:r,className:n,metaData:o,actions:l,onClick:d=(()=>{}),playCallback:c,htmlDetails:u,accessRestriced:m})=>{const p=Oe(),x=d?xe:pe;return e.jsxs("div",{id:t,"data-testid":"CardBasic",className:s(he,x,n),onClick:d,children:[r&&e.jsxs("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",r.aspectRatio),children:[e.jsx(Q,{fill:!0,src:null==r?void 0:r.src,sizes:"100vh",alt:null==r?void 0:r.alt,className:s("absolute inset-0 object-cover group-hover:scale-110",he)}),m&&e.jsx("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e.jsx(V,{bold:!0,transform:exports.COPY_TRANSFORM.UPPERCASE,children:p.UI.PURCHASE_TO_ACCESS})}),c&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:play",size:exports.BTN_SIZES.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof c&&c(e)}})})]}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:a&&e.jsx($,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:a})}),!u&&i&&e.jsx("div",{children:e.jsx(V,{className:"mb-0",children:Te(i)})}),u&&i&&e.jsx("div",{children:e.jsx(fe,{className:"mb-0",data:Te(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o&&e.jsx("div",{className:"flex shrink-0",children:o.map(((t,s)=>0===s?e.jsxs(V,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===o.length-1?e.jsxs(V,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(V,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),l&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[l.like&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.like)||void 0===s?void 0:s.onClick)&&"function"==typeof l.like.onClick&&l.like.onClick({id:t})}}),l.share&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.share)||void 0===s?void 0:s.onClick)&&"function"==typeof l.share.onClick&&l.share.onClick({id:t})}}),l.save&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.save)||void 0===s?void 0:s.onClick)&&"function"==typeof l.save.onClick&&l.save.onClick({id:t})}}),l.comment&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.comment)||void 0===s?void 0:s.onClick)&&"function"==typeof l.comment.onClick&&l.comment.onClick({id:t})}}),l.bookmark&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.bookmark)||void 0===s?void 0:s.onClick)&&"function"==typeof l.bookmark.onClick&&l.bookmark.onClick({id:t})}}),l.report&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.report)||void 0===s?void 0:s.onClick)&&"function"==typeof l.report.onClick&&l.report.onClick({id:t})}}),l.follow&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.follow)||void 0===s?void 0:s.onClick)&&"function"==typeof l.follow.onClick&&l.follow.onClick({id:t})}}),l.download&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.download)||void 0===s?void 0:s.onClick)&&"function"==typeof l.download.onClick&&l.download.onClick({id:t})}}),l.edit&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.edit)||void 0===s?void 0:s.onClick)&&"function"==typeof l.edit.onClick&&l.edit.onClick({id:t})}}),l.delete&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.delete)||void 0===s?void 0:s.onClick)&&"function"==typeof l.delete.onClick&&l.delete.onClick({id:t})}})]})]})]})})]})};Le.displayName="CardMedia";const we=({video:t,isMuted:a=!0,id:i,title:r,description:n,image:o,className:d,metaData:c,actions:u,onClick:m=(()=>{}),htmlDetails:p})=>{const x=m?xe:pe;return e.jsxs("div",{id:i,"data-testid":"CardVideo",className:s(he,x,d),onClick:m,children:[o&&t&&e.jsx("div",{className:s("relative w-full h-full aspect-[16/9]",o.aspectRatio),children:e.jsx(l,{videoId:`video--${i}`,playbackStartDelay:1e3,videoSrc:e.jsx("source",{src:t,type:"video/mp4"}),videoClassName:s("hls-hover-video w-full aspect-[16/9]",o.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:a,className:s("w-full overflow-hidden aspect-[16/9]",o.aspectRatio),pausedOverlay:e.jsx("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",o.aspectRatio),children:e.jsx(Q,{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.jsx("div",{className:s("w-full flex items-center justify-center aspect-[16/9]",o.aspectRatio),children:e.jsx("div",{className:"",children:e.jsx(w,{})})})},`${i}--card`)}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:r&&e.jsx($,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:r})}),!p&&n&&e.jsx("div",{children:e.jsx(V,{className:"mb-0",children:Te(n)})}),p&&n&&e.jsx("div",{children:e.jsx(fe,{className:"mb-0",data:Te(n)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c&&e.jsx("div",{className:"flex shrink-0",children:c.map(((t,s)=>0===s?e.jsxs(V,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===c.length-1?e.jsxs(V,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(V,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),u&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[u.like&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.like)||void 0===t?void 0:t.onClick)&&"function"==typeof u.like.onClick&&u.like.onClick({id:i})}}),u.share&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.share)||void 0===t?void 0:t.onClick)&&"function"==typeof u.share.onClick&&u.share.onClick({id:i})}}),u.save&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.save)||void 0===t?void 0:t.onClick)&&"function"==typeof u.save.onClick&&u.save.onClick({id:i})}}),u.comment&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof u.comment.onClick&&u.comment.onClick({id:i})}}),u.bookmark&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof u.bookmark.onClick&&u.bookmark.onClick({id:i})}}),u.report&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.report)||void 0===t?void 0:t.onClick)&&"function"==typeof u.report.onClick&&u.report.onClick({id:i})}}),u.follow&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof u.follow.onClick&&u.follow.onClick({id:i})}}),u.download&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.download)||void 0===t?void 0:t.onClick)&&"function"==typeof u.download.onClick&&u.download.onClick({id:i})}}),u.edit&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof u.edit.onClick&&u.edit.onClick({id:i})}}),u.delete&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof u.delete.onClick&&u.delete.onClick({id:i})}})]})]})]})})]})};we.displayName="CardVideo";const De=({id:t,title:a,description:i,icon:n,className:o,onClick:l,moreTitle:d,align:c})=>{const u=l?xe:pe;return e.jsxs("div",{id:t,"data-testid":"CardIcon",className:r.twMerge(s(he,u,"p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===c},{"items-center":"center"===c},{"items-end":"right"===c},o)),children:[n&&e.jsx("div",{className:s("relative"),children:e.jsx(y,{name:n,size:48})}),e.jsxs("div",{className:s({"text-left":"left"===c},{"text-center":"center"===c},{"text-right":"right"===c}),children:[e.jsx("div",{children:a&&e.jsx($,{tag:exports.HEADING_TAGS.H5,singleLine:!0,children:a})}),e.jsx("div",{children:i&&e.jsx(V,{align:c,children:i})})]}),l&&e.jsx(D,{variant:exports.BTN_VARIANTS.LINK,onClick:l,className:"absolute left-0 top-0 w-full h-full cursor-pointer border border-solid",children:d})]})};De.displayName="CardIcon";const Pe=({testID:t,id:a,title:i,description:n,image:o,onClick:l,className:d,padded:c,icon:u,raised:m=!0,htmlDetails:p})=>e.jsxs("div",{id:a,"data-testid":t||"CardHorz",className:s("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":c},{"shadow hover:shadow-lg":m},d),onClick:l,children:[o&&e.jsx("div",{className:"w-1/3 aspect-[1/1]",children:e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden h-full",o.aspectRatio)),children:e.jsx(Q,{fill:!0,src:null==o?void 0:o.src,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})})}),u&&!o&&e.jsx("div",{className:"py-2 pl-2",children:e.jsx(y,{name:u,size:30})}),e.jsx("div",{className:"flex flex-1 overflow-hidden h-min",children:e.jsxs("div",{className:"flex-col gap-2 py-2 pr-2 overflow-hidden",children:[i&&e.jsx("div",{className:"",children:e.jsx($,{tag:exports.HEADING_TAGS.H4,children:i})}),!p&&n&&e.jsx("div",{children:e.jsx(V,{className:"mb-0",children:Te(n)})}),p&&n&&e.jsx("div",{children:e.jsx(fe,{className:"mb-0",data:Te(n)})})]})})]});Pe.displayName="CardHorz";const ke=({testID:i,className:n,data:o,padded:l,shadow:d=!0})=>{const c=a.motionValue(0);return t.useEffect((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||a.animate(c,200,{duration:.5})}),[c]),o?e.jsxs("div",{"data-testid":i||"CardData",className:r.twMerge(s("relative rounded-lg overflow-hidden flex flex-col items-center gap-4 p-2 bg-bodyBackground dark:bg-darkBodyBackground",{"p-4":l},{shadow:d},n)),children:[(null==o?void 0:o.animateNumber)&&e.jsxs("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e.jsx(C,{from:o.numberData.from,to:o.numberData.to,numDecimals:o.numberData.numDecimals}),e.jsx("span",{children:null==o?void 0:o.item})]}),!(null==o?void 0:o.animateNumber)&&e.jsx("div",{className:"text-lg",children:e.jsx($,{tag:exports.HEADING_TAGS.H2,flush:!0,children:null==o?void 0:o.item})}),e.jsx("div",{children:e.jsx(V,{className:"mb-0",children:null==o?void 0:o.label})})]}):e.jsx(e.Fragment,{})};ke.displayName="CardData";const Me=t=>{var{variant:s,className:a,data:i}=t,r=P(t,["variant","className","data"]);switch(s){case"basic":default:return e.jsx(Ce,Object.assign({className:a},i,r));case"media":return e.jsx(Le,Object.assign({className:a},i,r));case"video":return e.jsx(we,Object.assign({className:a},i,r));case"icon":return e.jsx(De,Object.assign({className:a},i,r));case"horz":return e.jsx(Pe,Object.assign({className:a},i,r));case"data":return e.jsx(ke,Object.assign({className:a},i,r))}};Me.displayName="Card";const Ue=({text:t,flush:a,tag:i=exports.HEADING_TAGS.H1})=>{const r=t.split(" ");return e.jsx("div",{"data-testid":"DisplayHeading",className:"relative display-heading-wrapper",children:e.jsx($,{tag:i,flush:a,children:r.map(((t,a)=>{const i=a===r.length-1,n=`${t}-${a}`;return e.jsxs("span",{children:[e.jsx("span",{className:s({"display-heading relative font-heading":!i},{"inline-block relative font-heading":i}),children:e.jsxs(e.Fragment,{children:[i&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"display-heading--emphasis z-0"}),e.jsx("span",{className:"display-heading--lastword relative",children:t})]}),!i&&e.jsx("span",{className:"relative z-10",children:t})]})}),!i&&" "]},n)}))})})};Ue.displayName="DisplayHeading";const Fe=({children:a,className:i,submit:r,onSubmit:n=(()=>{}),onChange:o,hideSubmit:l,ariaSubmitLabel:c,submitID:u,submitVariant:m=exports.BTN_VARIANTS.PRIMARY,initialValues:p={},isBoxed:x=!1,submitType:h=exports.BTN_TYPES.SUBMIT,disabledSubmitWithReturn:v=!1,isDisabled:f=!1})=>{const N=d.useForm({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"}),E=t.useRef(p);t.useEffect((()=>{JSON.stringify(E.current)!==JSON.stringify(p)&&(N.reset(p),E.current=p)}),[p]),t.useEffect((()=>{if(o&&"function"==typeof o){const e=N.watch(((e,t)=>{o(e,t)}));return()=>e.unsubscribe()}}),[]);const g=s({"sr-only":l}),{formState:{isSubmitting:S,isDirty:A,isValid:b}}=N;return e.jsx(d.FormProvider,Object.assign({},N,{children:e.jsx("div",{"data-testid":"Form",className:s("w-full max-w-s @containers @form"),children:e.jsxs("form",{onSubmit:N.handleSubmit(n),onKeyDown:e=>{v&&"Enter"===e.key&&e.preventDefault()},className:s("w-2xs relative",{"form px-8 pt-6 pb-8 ":x},{"opacity-50":S},i),children:[a,r&&e.jsx("div",{className:"flex items-center justify-end",children:e.jsx(D,{id:u||r,className:g,ariaLabel:c||r||"Submit",type:h,outline:!0,isLoading:S,disabled:S||!b||f,variant:m,children:r})})]})})}))};var Be;Fe.displayName="Form",exports.FIELD_TYPES=void 0,(Be=exports.FIELD_TYPES||(exports.FIELD_TYPES={})).TEXT="text",Be.TEXTAREA="textarea",Be.SELECT="select",Be.CHECKBOX="checkbox",Be.RADIO="radio",Be.SWITCH="switch",Be.DATE="date",Be.TIME="time",Be.DATETIME="datetime",Be.FILE="file",Be.PASSWORD="password",Be.EMAIL="email",Be.NUMBER="number",Be.TEL="tel",Be.URL="url",Be.SEARCH="search",Be.HIDDEN="hidden";const Ge=t.forwardRef((function(t,a){var{id:i,name:r,options:n,required:o,className:l,disabled:d}=t,c=P(t,["id","name","options","required","className","disabled"]);if(!n)throw new Error("FormSelect requires options prop");return e.jsx("div",{id:i,className:s("pb-2 min-w-20",l),children:e.jsxs("div",{className:"relative",children:[e.jsx("select",Object.assign({ref:a,name:r,disabled:d,required:o,className:"form-item text-input pr-10"},c,{children:n.map(((t,s)=>{var a,i;return e.jsx("option",{value:null===(a=null==t?void 0:t.value)||void 0===a?void 0:a.toString(),disabled:t.disabled,className:"bg-bodyBackground dark:bg-darkBodyBackground",children:t.label},`${null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.toString()}--${s}`)}))})),e.jsx("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.jsx(y,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));Ge.displayName="FormSelect";const He=({name:a,type:i,label:r,required:n,className:o,icon:l,options:c,disabled:u,description:m,showPasswordLabel:p,hidePasswordLabel:x,validations:h={},fileUploadCallback:v=(()=>{}),autoComplete:f})=>{var N,E;const[g,S]=t.useState(!1),{control:A,formState:b}=d.useFormContext(),{errors:I}=b,T=r&&i!==exports.FIELD_TYPES.CHECKBOX,j=n||Boolean(h.required)?`${r} *`:r;return e.jsx("div",{className:"relative",children:e.jsxs("div",{"data-testid":"FormField",className:"mb-4",children:[T&&e.jsx("div",{className:"flex items-baseline justify-between",children:e.jsx(J,{id:a,children:j})}),e.jsx("div",{className:"mb-1",children:e.jsx(d.Controller,{defaultValue:"",name:a,control:A,rules:h,render:({field:t})=>((t,i)=>{switch(t){case exports.FIELD_TYPES.HIDDEN:return e.jsx("input",Object.assign({type:le.HIDDEN,disabled:u},i));case exports.FIELD_TYPES.TEXT:return e.jsx(de,Object.assign({type:le.TEXT,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i));case exports.FIELD_TYPES.PASSWORD:{const t=g?le.TEXT:le.PASSWORD,a="appearance-none border-none bg-transparent flex items-center";return e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute right-0 top-0 flex items-center justify-center h-full z-10 pr-2",onClick:()=>S((e=>!e)),role:"button",tabIndex:0,children:g?e.jsx("button",{type:"button","aria-label":x,className:s(a,"form-icon"),children:e.jsx(y,{name:"mdi:eye-off",size:24})}):e.jsx("button",{type:"button","aria-label":p,className:s(a,"form-icon"),children:e.jsx(y,{name:"mdi:eye",size:24})})}),e.jsx(de,Object.assign({type:t,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i))]})}case exports.FIELD_TYPES.TEXTAREA:return e.jsx(de,Object.assign({type:le.TEXTAREA,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.EMAIL:return e.jsx(de,Object.assign({type:le.EMAIL,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i));case exports.FIELD_TYPES.DATE:return e.jsx(de,Object.assign({type:le.DATE,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.DATETIME:return e.jsx(de,Object.assign({type:le.DATETIME,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.NUMBER:return e.jsx(de,Object.assign({type:le.NUMBER,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.CHECKBOX:return e.jsx(M,Object.assign({required:n||Boolean(h.required),id:a,className:o,label:r,disabled:u},i));case exports.FIELD_TYPES.RADIO:return e.jsx(ne,Object.assign({required:n||Boolean(h.required),id:a,className:o,options:c,disabled:u},i));case exports.FIELD_TYPES.SWITCH:return e.jsx(oe,Object.assign({id:a,required:n||Boolean(h.required),className:o,disabled:u},i));case exports.FIELD_TYPES.SELECT:return e.jsx(Ge,Object.assign({required:n||Boolean(h.required),id:a,className:o,disabled:u,label:r,options:c},i));case exports.FIELD_TYPES.FILE:return e.jsx(z,Object.assign({required:n||Boolean(h.required),id:a,className:o,disabled:u,onChangeCallback:e=>{v(e)}},i));default:return e.jsx(de,Object.assign({type:le.TEXT,required:n||Boolean(h.required),disabled:u,icon:l,className:o},i))}})(i,t)})}),m&&e.jsx("div",{className:"formfield-description",children:e.jsx(V,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:m})}),I[a]&&e.jsx("div",{className:"formfield-error text-error italic",children:e.jsx(V,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:null===(E=null===(N=null==I?void 0:I[a])||void 0===N?void 0:N.message)||void 0===E?void 0:E.toString()})})]})})};He.displayName="FormField";const Ye=({testID:t,url:s,title:a="Share",enabled:i={facebook:!0,twitter:!0}})=>e.jsxs("div",{"data-testid":t||"Share",className:"flex gap-2 items-center ",children:[e.jsx("div",{children:e.jsxs(V,{as:exports.COPY_TAG.P,className:"mb-0",children:[ce.UI.SHARE,":"]})}),(null==i?void 0:i.facebook)&&e.jsx(c.FacebookShareButton,{url:s,title:a,className:"",children:e.jsx(y,{name:"mdi:facebook"})}),(null==i?void 0:i.twitter)&&e.jsx(c.TwitterShareButton,{url:s,title:a,className:"",children:e.jsx(y,{name:"mdi:twitter"})}),(null==i?void 0:i.whatsapp)&&e.jsx(c.WhatsappShareButton,{url:s,title:a,className:"",children:e.jsx(y,{name:"mdi:whatsapp"})}),(null==i?void 0:i.email)&&e.jsx(c.EmailShareButton,{url:s,title:a,className:"",children:e.jsx(y,{name:"mdi:email"})}),(null==i?void 0:i.linkedin)&&e.jsx(c.LinkedinShareButton,{url:s,title:a,className:"",children:e.jsx(y,{name:"mdi:linkedin"})})]});Ye.displayName="Share";const Ve=({data:a})=>{const[i,r]=t.useState(0);return a?e.jsx("div",{"data-testid":"Tabs",children:e.jsxs(u.Tabs,{onSelect:e=>r(e),children:[e.jsx(u.TabList,{className:"mb-8 flex p-0",children:a.map(((t,a)=>e.jsx(u.Tab,{className:s("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":i!==a,"border-primary border-solid border-0 border-b-2":i===a}),children:e.jsx(V,{className:"m-0 text-center",children:t.title})},a)))}),a.map(((t,s)=>e.jsx(u.TabPanel,{className:"",children:t.content},s)))]})}):e.jsx(e.Fragment,{})};Ve.displayName="Tabs";const We=({testID:t,facebook:s,twitter:a,instagram:i,linkedin:r})=>e.jsxs("div",{"data-testid":t||'"VisitUs"',className:"flex gap-2",children:[s&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(s.url)}),a&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(a.url)}),i&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(i.url)}),r&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(r.url)})]});We.displayName="VisitUs";const ze=({testID:t,title:a,links:i,inline:n=!0,separators:o=!1,className:l})=>e.jsxs("div",{"data-testid":t||'"Menu"',className:r.twMerge(s("flex flex-col gap-2",l)),children:[a&&e.jsx("div",{children:e.jsx($,{tag:exports.HEADING_TAGS.H3,children:a})}),e.jsx("div",{className:s("flex gap-0 items-center md:items-start",{"flex-col md:flex-row ":n},{"flex-col ":!n}),children:null==i?void 0:i.map(((t,s)=>{const a=`${t.id}--${s}`;return e.jsxs("div",{className:"flex gap-0",children:[e.jsx("div",{className:"relative py-2",children:e.jsxs(U,{href:t.url,className:"flex gap-1",children:[t.icon&&e.jsx(y,{name:t.icon}),t.title&&e.jsx("div",{children:t.title})]})}),o&&s+1<i.length&&e.jsx("div",{className:"h-full hidden md:flex self-center px-2",children:e.jsx(y,{name:"mdi:dot",className:"opacity-50"})})]},a)}))})]});var qe;ze.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(qe||(qe={}));const Ke=({children:t,className:a,spacing:i,padded:n,isNarrow:o,isCentered:l,isFlush:d,direction:c=qe.COLUMN})=>{const u=r.twMerge(s("container relative mx-auto my-0",{"px-2 md:px-4 lg:px-4":n},{"py-40":"feature"===i},{"py-24":"component"===i},{"py-16":"module"===i},{"py-10":"element"===i},{"py-4":"atom"===i},{"py-0":"none"===i},{"max-w-3xl":o},{"flex items-center justify-center flex-col":l},{"px-0 max-w-full mx-0":d},{"flex flex-col":c===qe.COLUMN},{"flex-row":c===qe.ROW})),m=s("w-full",a);return e.jsx("div",{"data-testid":"Container",className:u,children:e.jsx("div",{className:m,children:t})})};Ke.displayName="Container";const Ze=({testID:t,children:a,withBg:i=!0,inversed:r=!1})=>e.jsxs("div",{"data-testid":t||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[i&&e.jsx("div",{className:s("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.jsx(Ke,{children:a})]});Ze.displayName="Hero";const $e=({testID:i,bgAsset:r,focalAsset1:n,focalAsset2:o,focalAsset3:l})=>{t.useRef(null);const d={opacity:.001,rotate:0,scale:1,x:200,y:0},c={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,transition:{damping:60,delay:0,mass:1.2,stiffness:300,type:"spring"},x:0,y:0};return e.jsxs("div",{"data-testid":i||"AnimationSet1",className:s("relative w-full h-full"),children:[r&&e.jsx(a.motion.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.jsx(Q,{src:r.src,alt:r.alt,fill:!0})}),(n||o)&&e.jsxs(a.motion.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.jsx(a.motion.div,{className:"absolute w-1/2 aspect-[0.35/1] right-16 top-0",initial:d,animate:c,children:e.jsx(Q,{src:n.src,alt:n.alt,fill:!0})}),o&&e.jsx(a.motion.div,{className:"absolute w-1/2 aspect-[0.5/1] -left-4 top-20",initial:d,animate:Object.assign(Object.assign({},c),{transition:Object.assign(Object.assign({},c.transition),{delay:.3})}),children:e.jsx(Q,{src:o.src,alt:o.alt,fill:!0})})]}),l&&e.jsx("div",{className:"absolute w-1/4 aspect-[0.5/1] flex flex-col flex-nowrap p-0 top-16 z-20 items-end justify-end left-0",children:e.jsx(a.motion.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.jsx(Q,{src:l.src,fill:!0,alt:l.alt})})})]})};$e.displayName="AnimationSet1";const Xe=process.env.AWS_COGNITO_USERPOOL_DOMAIN||process.env.NEXT_PUBLIC_AWS_COGNITO_USERPOOL_DOMAIN,Qe=process.env.AWS_COGNITO_CLIENT_ID||process.env.NEXT_PUBLIC_AWS_COGNITO_CLIENT_ID,Je=process.env.AWS_COGNITO_REDIRECT_URI||process.env.NEXT_PUBLIC_AWS_COGNITO_REDIRECT_URI,et=Xe&&Qe&&Je?`https://${Xe}/oauth2/authorize?client_id=${Qe}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${Je}`:void 0,tt=Xe&&Qe&&Je?`https://${Xe}/oauth2/authorize?client_id=${Qe}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${Je}`:void 0,st={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},at={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."}},it=({handleSubmit:s,initialValues:a,handleTokenCallback:i,showSocialButtons:r=!1})=>{const n=Oe();t.useEffect((()=>m.Hub.listen("auth",(({payload:{event:e,data:t}})=>{switch(e){case"signIn":i&&"function"==typeof i&&i(t.signInUserSession);break;case"signOut":x.toast.success("You have been signed out")}}))),[]);const o=e=>k(void 0,0,void 0,(function*(){var t;try{m.Auth.federatedSignIn({provider:e})}catch(e){console.log(e),x.toast.error(e.message||(null===(t=null==n?void 0:n.ERRORS)||void 0===t?void 0:t.GENERIC_ERROR))}}));return e.jsxs("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[e.jsxs(Fe,{onSubmit:s,submit:ce.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:a,children:[e.jsx(He,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ce.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:st,autoComplete:"email"}),e.jsx(He,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ce.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),r&&e.jsxs(e.Fragment,{children:[e.jsx(X,{}),e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsxs("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[et&&e.jsx(D,{onClick:()=>o(p.CognitoHostedUIIdentityProvider.Google),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ce.UI.LOGIN_WITH_GOOGLE}),tt&&e.jsx(D,{onClick:()=>o(p.CognitoHostedUIIdentityProvider.Apple),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ce.UI.LOGIN_WITH_APPLE})]})})]})]})};it.displayName="LoginForm";const rt=({handleSubmit:s,handleTokenCallback:a,showSocialButtons:i=!1})=>{const r=Oe();t.useEffect((()=>m.Hub.listen("auth",(({payload:{event:e,data:t}})=>{if("signUp"===e)a&&"function"==typeof a&&a(t.signInUserSession)}))),[]);const n=e=>k(void 0,0,void 0,(function*(){var t;try{m.Auth.federatedSignIn({provider:e})}catch(e){console.log(e),x.toast.error(e.message||(null===(t=null==r?void 0:r.ERRORS)||void 0===t?void 0:t.GENERIC_ERROR))}}));return e.jsxs("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[e.jsxs(Fe,{onSubmit:s,submit:ce.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e.jsx(He,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ce.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:st,autoComplete:"email"}),e.jsx(He,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ce.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:ce.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:at,autoComplete:"new-password"})]}),i&&e.jsxs(e.Fragment,{children:[e.jsx(X,{}),e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsxs("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e.jsx(D,{onClick:()=>n(p.CognitoHostedUIIdentityProvider.Google),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ce.UI.SIGNUP_WITH_GOOGLE}),e.jsx(D,{onClick:()=>n(p.CognitoHostedUIIdentityProvider.Apple),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ce.UI.SIGNUP_WITH_APPLE})]})})]})]})};rt.displayName="RegisterForm";const nt=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e.jsx(Fe,{onSubmit:t,submit:ce.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(He,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ce.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:st})})});nt.displayName="ForgotPasswordForm";const ot=({loginSubmit:s,registerSubmit:a,passwordForgotSubmit:i,handleTokenCallback:r,showSocialLogin:n=!1})=>{const[o,l]=t.useState(!1);return e.jsxs("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-128",children:[!o&&e.jsx(Ve,{data:[{title:"Login",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(it,{handleSubmit:s,showSocialButtons:n,handleTokenCallback:r}),e.jsx("div",{className:"mt-4",children:e.jsx(D,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsx(rt,{handleSubmit:a,showSocialButtons:n,handleTokenCallback:r})})}]}),o&&e.jsx(Ve,{data:[{title:"Forgot Password",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(nt,{handleSubmit:i}),e.jsx("div",{className:"mt-4",children:e.jsx(D,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};function lt({className:t,onClick:s}){return e.jsx(D,{className:"absolute -right-2 top-1/2 -translate-y-1/2 z-10",onClick:s,icon:"mdi:navigate-next",rounded:!0})}function dt({className:t,onClick:s}){return e.jsx(D,{className:"absolute -left-2 top-1/2 -translate-y-1/2 z-10",onClick:s,icon:"mdi:navigate-before",rounded:!0})}ot.displayName="Authenticator";const ct=({testID:t,data:s,onPressCallback:a=(()=>{}),count:i=5,isCentered:r=!1,carouselOptions:n={loop:!1,scrollAnimationDuration:500,showDots:!1,showArrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:i}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}]}})=>{const o=s.length<=i;return e.jsx("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e.jsx(h,{arrows:!o&&n.showArrows,nextArrow:e.jsx(lt,{}),prevArrow:e.jsx(dt,{}),centerMode:r,responsive:n.responsive,slidesToScroll:1,slidesToShow:i,dots:!o&&n.showDots,infinite:!o&&n.loop,speed:n.scrollAnimationDuration,children:s.map(((t,s)=>e.jsx("div",{className:"px-2",children:e.jsx(Me,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>{a(t.data.id)}}),className:t.className},s)},s)))})})};var ut;ct.displayName="Carousel",exports.SPACING=void 0,(ut=exports.SPACING||(exports.SPACING={})).NONE="py-0",ut.ATOM="py-8",ut.DEFAULT="py-16",ut.ELEMENT="py-24",ut.COMPONENT="py-32",ut.MODULE="py-40",ut.FEATURE="py-64";const mt=({testID:i,cardData:r,title:n,description:o,withSeparators:l,spacing:d=exports.SPACING.MODULE})=>{const c=t.useRef(null),u=a.useInView(c,{once:!0});return e.jsxs("div",{ref:c,"data-testid":i||"PanelCards",className:s("relative m-auto w-full flex flex-col flex-none flex-nowrap",d),children:[(n||o)&&e.jsxs("div",{className:"relative text-center py-8",children:[n&&e.jsx(Ue,{text:n}),o&&e.jsx(V,{align:exports.COPY_ALIGN.CENTER,children:o})]}),e.jsx("div",{className:"flex gap-8 items-center justify-center flex-col md:flex-row",children:null==r?void 0:r.map(((t,a)=>e.jsxs("span",{className:"flex gap-8 justify-between items-center",children:[e.jsx("div",{className:s("relative flex flex-1 items-center justify-center",{"":l}),style:{transform:u?"none":"translateY(200px)",opacity:u?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*a}s`},children:e.jsx(Me,Object.assign({},t))}),l&&a<r.length-1&&e.jsx("div",{className:"w-1 h-10 border-0 border-r border-solid border-primary500"},`separator-${a}`)]},`card-${a}`)))})]})};mt.displayName="PanelCards";const pt=({testID:t,title:a,description:i,inversed:r,assets:n,buttonData:o,withBg:l=!0,spacing:d=exports.SPACING.DEFAULT,chips:c})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap px-4 md:px-0",d),children:[l&&e.jsx("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.jsx(Ke,{children:e.jsxs("div",{className:s("relative flex flex-col-reverse sm:flex-col md:flex-row lg:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 md:items-center gap-16",{"flex-row-reverse":r}),children:[e.jsxs("div",{className:"w-full md:w-1/2 flex flex-col items-start justify-center gap-8",children:[e.jsx("div",{className:"relative text-center md:text-left",children:e.jsx(Ue,{text:a,flush:!0})}),e.jsx("div",{className:"relative text-center md:text-left",children:e.jsx(V,{className:"mb-0",children:i})}),c&&e.jsx("div",{className:"grid grid-cols-3 gap-2 mx-auto md:mx-0",children:null==c?void 0:c.map(((t,s)=>e.jsx(W,{rounded:!0,iconFirst:!0,text:t.text,icon:t.icon,variant:t.variant},`chip-${s}`)))}),e.jsx("div",{className:"mx-auto md:m-0",children:e.jsx(D,Object.assign({},o))})]}),e.jsx("div",{className:"w-full md:w-1/2 flex items-center justify-center",children:e.jsx("div",{className:"w-full aspect-[1/1] flex items-center justify-center",children:e.jsx($e,{bgAsset:n.bgAsset,focalAsset1:n.focalAsset1,focalAsset2:n.focalAsset2,focalAsset3:n.focalAsset3})})})]})})]});pt.displayName="PanelFeature";const xt=t.forwardRef((function({url:a,sources:i,onReady:n,onExitFullScreenCallback:o,className:l,options:d={playsinline:!1,preferFullWindow:!0},isYoutube:c=!1,defaultAudioTrack:u="No Music",rounded:m=!0,aspectRatioValue:p},x){const h=t.useRef(null),N=t.useRef(null),E=t.useRef(null),g=t.useMemo((()=>{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 t.useEffect((()=>{var e;if(c)return;const t=Object.assign(Object.assign({autoplay:!0,controls:!0,muted:!1,playsinline:d.playsinline,preferFullWindow:d.preferFullWindow,responsive:!0,fill:!0,fluid:!0,controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},d),{sources:i});if(E.current){const e=E.current;e.autoplay(d.autoplay),e.src(d.sources)}else{const s=document.createElement("video-js");null===(e=null==N?void 0:N.current)||void 0===e||e.appendChild(s);const a=E.current=f(s,t,(()=>{f.log("player is ready",a),n&&n(a)}));a.on("loadedmetadata",(function(){const e=a.audioTracks();for(let t=0;t<e.length;t++)e[t].label===u&&(e[t].enabled=!0)})),a.on("fullscreenchange",(function(){a.isFullscreen()?console.log("Player is in fullscreen"):(console.log("Player is not in fullscreen"),o&&"function"==typeof o&&o())}))}}),[d,N]),t.useImperativeHandle(x,(()=>({play:()=>{E.current&&E.current.play()},pause:()=>{E.current&&E.current.pause()},fullscreen:()=>{E.current&&E.current.requestFullscreen()}}))),t.useEffect((()=>{if(c)return;const e=E.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),E.current=null)}}),[E]),c&&a?e.jsx("div",{"data-testid":"Video",className:s("relative w-full h-full aspect-[16/9]",l),children:e.jsx(v,{ref:h,className:"react-player",url:a,width:"100%",height:"100%",controls:!0,onReady:n})}):e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden h-full object-cover",{rouded:m},g.className,l)),children:e.jsx("div",{"data-vjs-player":!0,children:e.jsx("div",{ref:N,className:"object-cover"})})})}));xt.displayName="Video";const ht=({testID:i,title:n,contentComponent:o,description:l,image:d,buttonData:c,inversed:u=!1,withBg:m=!0,spacing:p,video:x,headingTag:h,className:v})=>{const f=a.useAnimation(),N=t.useRef(null),E=a.useInView(N),g={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};t.useEffect((()=>{E&&f.start((e=>({transform:"none",transition:Object.assign(Object.assign({},g),{delay:.1*e})})))}),[f,E]);const S=t.useMemo((()=>{switch(null==x?void 0:x.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]"}}),[x]),A=u?"translateX(100px)":"translateX(-100px)";return e.jsxs("div",{"data-testid":i||"PanelHero",className:r.twMerge(s("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",p,v)),children:[m&&e.jsx("div",{className:s("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":!u,"-top-24 left-0":u})}),e.jsx(Ke,{children:e.jsxs("div",{className:s("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":u}),children:[e.jsx("div",{ref:N,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:e.jsxs("div",{className:s("relative flex flex-col gap-4 from-bodyBackground dark:from-darkBodyBackground p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!u},{"text-left bg-gradient-to-t md:bg-gradient-to-r":u}),children:[e.jsx(a.motion.div,{initial:{transform:A},custom:0,animate:f,children:e.jsx(Ue,{text:n,tag:h})}),o&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:f,children:o}),l&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:f,children:e.jsx(fe,{className:"mb-0",align:u?exports.COPY_ALIGN.LEFT:exports.COPY_ALIGN.RIGHT,data:l})}),c&&e.jsx(a.motion.div,{initial:{transform:A},custom:2,animate:f,children:e.jsx("div",{className:s("flex items-center",{"justify-end":!u,"justify-start":u}),children:e.jsx(D,Object.assign({},c))})})]})}),e.jsx("div",{className:"relative w-full md:w-1/2 z-0",children:e.jsxs("div",{className:s("relative scale-[1.35] rounded overflow-hidden shadow",S),children:[d&&e.jsx(Q,{src:d,alt:n,fill:!0}),x&&e.jsx(xt,{sources:x.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:x.aspectRatioValue})]})})]})})]})};ht.displayName="PanelHero";const vt=({testID:t,title:a,description:i,image1:r,image2:n,iosLink:o="#",androidLink:l="#",inversed:d=!1,withBg:c=!0,spacing:u=exports.SPACING.MODULE})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap",u),children:[c&&e.jsx("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.jsx(Ke,{children:e.jsxs("div",{className:s("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-tertiary dark:bg-secondary rounded p-8 shadow",{"flex-row-reverse":d}),children:[e.jsxs("div",{className:"w-full md:w-1/2 top-0 relative",children:[e.jsx("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.jsx(Q,{src:n,alt:a})}),e.jsx("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.jsx(Q,{src:r,alt:a})})]}),e.jsxs("div",{className:"w-full md:w-1/2",children:[e.jsx("div",{children:e.jsx(Ue,{text:a})}),e.jsx("div",{children:e.jsx(V,{children:i})}),e.jsxs("div",{className:"flex items-center justify-start gap-4",children:[e.jsx("div",{className:"relative w-[150px] h-[50px]",children:e.jsx(U,{href:o,target:"_blank",hideExternalIcon:!0,children:e.jsx(Q,{src:"https://apple-resources.s3.amazonaws.com/media-badges/download-on-the-app-store/black/en-us.svg",alt:"App Store"})})}),e.jsx("div",{className:"relative w-[190px] h-[75px]",children:e.jsx(U,{href:l,target:"_blank",hideExternalIcon:!0,children:e.jsx(Q,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});vt.displayName="PanelProduct";const ft=({testID:t,className:i,title:n,description:o,spacing:l=exports.SPACING.NONE,videoProps:d})=>e.jsxs("div",{"data-testid":t||'"PanelVideo"',className:r.twMerge(s("relative m-auto w-full flex flex-none flex-nowrap overflow-hidden items-center justify-center",`md:aspect-[${d.aspectRatioValue}]`,l,i)),children:[e.jsx(xt,{rounded:!1,aspectRatioValue:d.aspectRatioValue,options:Object.assign({autoplay:!0,muted:!0,controls:!1,loop:!0},null==d?void 0:d.options),sources:null==d?void 0:d.sources}),e.jsxs("div",{className:"absolute top-0 left-0 w-full h-full z-10",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-gradient-to-r from-transparent to-black opacity-50"}),e.jsxs("div",{className:"absolute top-0 left-2 md:left-0 w-full h-full flex flex-col items-end justify-center pr-24 text-white",children:[n&&e.jsx(a.motion.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.jsx("div",{children:e.jsx(Ue,{text:n})})}),o&&e.jsx(a.motion.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.jsx("div",{children:e.jsx(V,{children:o})})})]})]})]});ft.displayName="PanelVideo";const Nt=({testID:t,data:s,onPressCallback:a})=>e.jsx("div",{"data-testid":t||'"CardGrid"',className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:s.map(((t,s)=>e.jsx(Me,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>a(t.data.id)})},s)))});Nt.displayName="CardGrid";const Et=({testID:a,hideMenu:i=!1,className:n,logoOnly:o,userPicture:l})=>{var d,c,u,m,p,x,h,v,f,N,E,g,S,A,b,I,T,j,C,y,O,_,R,L,w,P,k,M;const F=t.useContext(ye),B=Oe(),[G,H]=t.useState("hidden"),[Y,W]=t.useState(!1),z=()=>{H("hidden"===G?"block":"hidden")};return o?e.jsx("header",{"data-testid":a||'"Header"',className:r.twMerge(s("relative z-10 w-full m-auto py-4 bg-bodyBackground dark:bg-darkBodyBackground",n)),children:e.jsx("div",{className:"relative w-full flex flex-col md:flex-row justify-center items-center",children:(null===(d=null==F?void 0:F.brand)||void 0===d?void 0:d.logo)&&e.jsx("div",{className:"relative w-56",children:e.jsx(U,{href:"/",children:e.jsx(ae,{logo:null===(c=null==F?void 0:F.brand)||void 0===c?void 0:c.logo,aspectRatioClass:null===(u=null==F?void 0:F.brand)||void 0===u?void 0:u.logoAspectRatio})})})})}):e.jsx("header",{"data-testid":a||'"Header"',className:r.twMerge(s("relative w-full m-auto py-4 bg-bodyBackground dark:bg-darkBodyBackground",n)),children:e.jsxs(Ke,{padded:!0,children:[e.jsxs("div",{className:"relative w-full flex",children:[(null===(m=null==F?void 0:F.brand)||void 0===m?void 0:m.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(U,{href:"/",children:e.jsx(ae,{logo:null===(p=null==F?void 0:F.brand)||void 0===p?void 0:p.logo,aspectRatioClass:null===(x=null==F?void 0:F.brand)||void 0===x?void 0:x.logoAspectRatio})})}),e.jsxs("div",{className:"flex-1 hidden md:flex items-center justify-center",children:[(null===(h=null==F?void 0:F.app)||void 0===h?void 0:h.isAuthenticated)&&(null===(v=null==F?void 0:F.header)||void 0===v?void 0:v.authNav)&&e.jsx(ze,{links:F.header.authNav,separators:!0}),!(null===(f=null==F?void 0:F.app)||void 0===f?void 0:f.isAuthenticated)&&(null===(N=null==F?void 0:F.header)||void 0===N?void 0:N.anonNav)&&e.jsx(ze,{links:F.header.anonNav,separators:!0})]}),e.jsxs("div",{className:"hidden md:flex flex-col justify-center",children:[!(null===(E=null==F?void 0:F.app)||void 0===E?void 0:E.isAuthenticated)&&(null===(g=null==F?void 0:F.app)||void 0===g?void 0:g.loginCallback)&&e.jsx("div",{className:"w-32 flex justify-end",children:e.jsx(D,{onClick:null===(S=null==F?void 0:F.app)||void 0===S?void 0:S.loginCallback,children:B.UI.LOGIN})}),!(null===(A=null==F?void 0:F.app)||void 0===A?void 0:A.isAuthenticated)&&!(null===(b=null==F?void 0:F.app)||void 0===b?void 0:b.loginCallback)&&e.jsx("div",{className:"w-32 flex justify-end"}),(null===(I=null==F?void 0:F.app)||void 0===I?void 0:I.isAuthenticated)&&e.jsxs("div",{className:"relative",children:[e.jsx(D,{onClick:()=>W(!Y),icon:Y?"mdi:user-outline":"mdi:user"}),e.jsx("div",{onClick:()=>W(!1),className:s("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!Y}),children:(null===(T=null==F?void 0:F.header)||void 0===T?void 0:T.profile)&&e.jsx(ze,{links:F.header.profile,inline:!1})})]})]}),e.jsx("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:menu",onClick:z})})]}),e.jsxs("div",{className:s("navbar-menu relative z-50",G,{hidden:i}),children:[e.jsx("div",{className:"navbar-backdrop fixed inset-0 bg-black opacity-25"}),e.jsxs("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:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("div",{className:"relative w-32",children:(null===(j=null==F?void 0:F.brand)||void 0===j?void 0:j.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(ae,{logo:null===(C=null==F?void 0:F.brand)||void 0===C?void 0:C.logo,aspectRatioClass:null===(y=null==F?void 0:F.brand)||void 0===y?void 0:y.logoAspectRatio})})}),e.jsx("div",{children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:close",onClick:z})})]}),e.jsxs("div",{className:"flex flex-col flex-1 gap-4",children:[l&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ue,{initValue:l,isEditable:!1})}),(null===(O=null==F?void 0:F.app)||void 0===O?void 0:O.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(V,{children:"User profile avatar and details here."})}),e.jsxs("div",{className:"flex flex-1 justify-center pt-4",children:[(null===(_=null==F?void 0:F.app)||void 0===_?void 0:_.isAuthenticated)&&(null===(R=null==F?void 0:F.header)||void 0===R?void 0:R.authNav)&&e.jsx(ze,{links:F.header.authNav,separators:!0}),!(null===(L=null==F?void 0:F.app)||void 0===L?void 0:L.isAuthenticated)&&(null===(w=null==F?void 0:F.header)||void 0===w?void 0:w.anonNav)&&e.jsx(ze,{links:F.header.anonNav,separators:!0})]}),(null===(P=null==F?void 0:F.app)||void 0===P?void 0:P.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(D,{onClick:null===(k=null==F?void 0:F.app)||void 0===k?void 0:k.logoutCallback,children:B.UI.LOGOUT})}),!(null===(M=null==F?void 0:F.app)||void 0===M?void 0:M.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(D,{onClick:()=>{var e;null===(e=null==F?void 0:F.app)||void 0===e||e.loginCallback(),z()},children:B.UI.LOGIN})})]})]})]})]})})};Et.displayName="Header";const gt=({testID:a,className:i})=>{var r,n,o,l,d,c,u,m,p,x,h,v,f,N;const E=t.useContext(ye);return e.jsx("footer",{className:s("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8",i),children:e.jsxs(Ke,{padded:!0,children:[e.jsxs("div",{"data-testid":a||'"Footer"',className:"footer flex flex-col md:flex-row py-8 gap-8",children:[e.jsxs("div",{className:"relative w-full md:w-1/3 flex flex-col gap-4 items-center md:items-start",children:[(null===(r=null==E?void 0:E.brand)||void 0===r?void 0:r.logo)&&e.jsx("div",{className:"relative w-24",children:e.jsx(ae,{logo:null===(n=null==E?void 0:E.brand)||void 0===n?void 0:n.logo,aspectRatioClass:null===(o=null==E?void 0:E.brand)||void 0===o?void 0:o.logoAspectRatio})}),(null===(l=E.footer)||void 0===l?void 0:l.about)&&e.jsx("div",{children:e.jsx(V,{children:E.footer.about})}),e.jsx("div",{children:e.jsx(We,{facebook:null===(c=null===(d=E.footer)||void 0===d?void 0:d.visitUs)||void 0===c?void 0:c.facebook,twitter:null===(m=null===(u=E.footer)||void 0===u?void 0:u.visitUs)||void 0===m?void 0:m.twitter,instagram:null===(x=null===(p=E.footer)||void 0===p?void 0:p.visitUs)||void 0===x?void 0:x.instagram,linkedin:null===(v=null===(h=E.footer)||void 0===h?void 0:h.visitUs)||void 0===v?void 0:v.linkedin})})]}),(null===(f=E.footer)||void 0===f?void 0:f.menus)&&e.jsx("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:E.footer.menus.map(((t,s)=>e.jsx("div",{className:"flex flex-1",children:e.jsx(ze,{title:t.title,links:t.links,inline:!1})},`${t.title}--${s}`)))})]}),e.jsxs("div",{className:"flex items-center justify-center flex-col",children:[e.jsxs(V,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:["© ",(new Date).getFullYear()," ",ce.UI.COPYRIGHT," ",null===(N=E.brand)||void 0===N?void 0:N.name]}),e.jsx(V,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:ce.UI.ALL_RIGHTS_RESERVED})]})]})})};gt.displayName="Footer";const St=({testID:t,children:a,showHeader:i=!0,showFooter:r=!0,image:n,showOverlay:o=!0,isFlush:l})=>e.jsxs("div",{"data-testid":t||'"Screen"',className:"h-full flex flex-1 flex-col min-h-full overflow-x-hidden",children:[i&&e.jsx(Et,{className:s({"fixed top-0 left-0 right-0 bg-opacity-50 dark:bg-opacity-50 z-50":l})}),e.jsxs("main",{className:s("relative flex flex-1",{"pt-24 md:pt-32 lg:pt-40":n},{"pt-8 md:pt-12 lg:pt-12":!n&&!l}),children:[n&&e.jsxs("div",{className:"absolute w-full aspect-[16/5] opacity-50 z-0 top-0 left-0 right-0",children:[e.jsx(Q,{src:n,alt:"background",priority:!0,sizes:"100vw",style:{objectFit:"cover"}}),o&&e.jsx("div",{className:"absolute w-full h-full bg-gradient-to-b from-transparent to-bodyBackground dark:to-darkBodyBackground"})]}),e.jsx(Ke,{padded:!l,isFlush:l,children:e.jsx("div",{className:"flex flex-col gap-8",children:a})})]}),r&&e.jsx(gt,{})]});St.displayName="Screen";const At=({title:t,isOpen:a})=>e.jsxs("div",{className:s("flex flex-row items-center justify-between p-2 border border-solid border-tertiary transition-all rounded mb-2",{"bg-tertiary":a}),children:[e.jsx($,{flush:!0,tag:exports.HEADING_TAGS.H4,className:s("transition-all",{"text-white":a}),children:t}),e.jsx("div",{className:"",children:e.jsx(y,{name:a?"mdi:chevron-up":"mdi:chevron-down"})})]}),bt=({testID:t,data:s,titleKey:a="title",contentKey:i="content"})=>e.jsx("div",{"data-testid":t||'"Accordion"',children:s.map((t=>e.jsx(N,{triggerTagName:"div",easing:"ease-out",triggerWhenOpen:e.jsx(At,{title:t[a],isOpen:!0}),trigger:e.jsx(At,{title:t[a],isOpen:!1}),children:e.jsx("div",{className:"p-2",children:e.jsx(V,{children:t[i]})})},t[a])))});var It;bt.displayName="Accordion",exports.CardVariant=void 0,(It=exports.CardVariant||(exports.CardVariant={})).BASIC="basic",It.MEDIA="media",It.VIDEO="video",It.ICON="icon",It.HORZ="horz",It.DATA="data";const Tt=({testID:a,title:i,children:r,subscription:n,plans:o,changeSubscriptionCallback:l,pauseSubscriptionCallback:d,selectedPlanCallback:c,confirmPlanCallback:u,isLoading:m})=>{var p,x,h,v,f,N,g,S,A,b,I,T;const j=Oe(),[C,y]=t.useState(null==n?void 0:n.id),[O,_]=t.useState(!1),[R,L]=t.useState(!1),P=e=>{y(e),c&&"function"==typeof c&&c(e)};return e.jsxs("div",{"data-testid":a||'"SubscriptionManager"',className:"relative",children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[i&&e.jsx($,{children:i}),!n&&e.jsxs("div",{className:"rounded shadow p-4 bg-bodyBackground dark:bg-darkBodyBackground",children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:j.UI.NO_ACTIVE_SUBSCRIPTION}),e.jsx(V,{children:null===(p=null==j?void 0:j.UI)||void 0===p?void 0:p.NO_SUBSCRIPTION_DETAILS})]}),n&&e.jsxs("div",{className:"rounded shadow p-4 bg-bodyBackground dark:bg-darkBodyBackground m-auto",children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(x=null==j?void 0:j.UI)||void 0===x?void 0:x.CURRENT_SUBSCRIPTION}),e.jsxs("div",{children:[e.jsxs(V,{className:"mb-0",children:[null===(h=null==j?void 0:j.UI)||void 0===h?void 0:h.SUBSCRIPTION_STATUS,": ",n.status]}),e.jsxs(V,{className:"mb-0",children:[null===(v=null==j?void 0:j.UI)||void 0===v?void 0:v.SUBSCRIPTION_PRICE,": ",n.price]}),e.jsxs(V,{className:"mb-0",children:[null===(f=null==j?void 0:j.UI)||void 0===f?void 0:f.CURRENT_PLAN,": ",n.plan]}),e.jsxs(V,{className:"mb-0",children:[null===(N=null==j?void 0:j.UI)||void 0===N?void 0:N.NEXT_BILLING_DATE,": ",n.nextBillingDate]}),n.endDate&&e.jsxs(V,{className:"mb-0",bold:!0,children:[null===(g=null==j?void 0:j.UI)||void 0===g?void 0:g.END_DATE,": ",n.endDate]})]})]}),n&&e.jsxs("div",{className:"flex justify-center gap-4",children:[l&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:()=>_(!O),children:O?null===(S=null==j?void 0:j.UI)||void 0===S?void 0:S.CANCEL:null===(A=null==j?void 0:j.UI)||void 0===A?void 0:A.CHANGE_PLAN}),!n.endDate&&e.jsx(D,{variant:exports.BTN_VARIANTS.SECONDARY,onClick:()=>{var e,t,s,a;_(!1),E.confirmAlert({title:null===(e=null==j?void 0:j.UI)||void 0===e?void 0:e.CONFIRM_TO_SUBMIT,message:null===(t=null==j?void 0:j.UI)||void 0===t?void 0:t.CONFIRM_TO_PAUSE,buttons:[{label:null===(s=null==j?void 0:j.UI)||void 0===s?void 0:s.YES,onClick:d},{label:null===(a=null==j?void 0:j.UI)||void 0===a?void 0:a.NO,onClick:()=>{}}]})},children:null===(b=null==j?void 0:j.UI)||void 0===b?void 0:b.PAUSE_SUBSCRIPTION})]}),O&&o&&r&&e.jsxs("div",{className:"flex items-center flex-col gap-4",children:[!R&&e.jsx("div",{className:"flex flex-col md:flex-row gap-4 justify-center",children:o.map((t=>e.jsx("div",{className:s("flex flex-1 w-[300px]",{"opacity-50":C&&C!==t.id},{hidden:R&&C&&C!==t.id}),children:e.jsx(Me,{variant:exports.CardVariant.ICON,className:s({"rounded border-2 border-primary bg-tertiary":C===t.id},{"border-2 border-cardBackground":C!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>P(t.id)}})},t.id)))}),e.jsx("div",{children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:()=>{var e,t,s,a;E.confirmAlert({title:null===(e=null==j?void 0:j.UI)||void 0===e?void 0:e.CONFIRM_TO_SUBMIT,message:null===(t=null==j?void 0:j.UI)||void 0===t?void 0:t.CONFIRM_TO_CHANGE_PLAN,buttons:[{label:null===(s=null==j?void 0:j.UI)||void 0===s?void 0:s.YES,onClick:()=>{l(C),_(!1)}},{label:null===(a=null==j?void 0:j.UI)||void 0===a?void 0:a.NO,onClick:()=>_(!1)}]})},disabled:C===n.id,children:null===(I=null==j?void 0:j.UI)||void 0===I?void 0:I.CONFIRM_TO_SUBMIT})})]}),!n&&e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center flex-col gap-4",children:[e.jsx("div",{className:"flex flex-col md:flex-row gap-4 justify-center",children:o.map((t=>e.jsx("div",{className:s("flex flex-1 w-[300px]",{"opacity-50":C&&C!==t.id},{hidden:R&&C&&C!==t.id}),children:e.jsx(Me,{variant:exports.CardVariant.ICON,className:s({"rounded border-2 border-primary bg-tertiary":C===t.id},{"border-2 border-cardBackground":C!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>P(t.id)}})},t.id)))}),e.jsx("div",{children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:()=>{L(!0),u&&"function"==typeof u&&u(C)},disabled:!C,children:null===(T=null==j?void 0:j.UI)||void 0===T?void 0:T.CONFIRM_CHOICE})})]}),e.jsx("div",{children:r})]})]}),m&&e.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e.jsx(w,{})})]})};var jt;Tt.displayName="SubscriptionManager",exports.CPL_SPACING=void 0,(jt=exports.CPL_SPACING||(exports.CPL_SPACING={})).NONE="none",jt.ATOM="atom",jt.DEFAULT="default",jt.ELEMENT="element",jt.COMPONENT="component",jt.MODULE="module",jt.FEATURE="feature";const Ct=({spacing:t=exports.CPL_SPACING.DEFAULT,children:a,narrow:i,flush:r,className:n})=>{const o=s("flex","flex-col","flex-1","relative",{"py-40":"feature"===t},{"py-24":"component"===t},{"py-16":"module"===t},{"py-10":"element"===t},{"py-8":"default"===t},{"py-4":"atom"===t},{"py-0":"none"===t},{"max-w-5xl":i},{"p-0":r},n);return e.jsx("div",{"data-testid":"ContentPageLayout",className:o,children:a})};var yt;Ct.displayName="ContentPageLayout",exports.CRL_SIZE=void 0,(yt=exports.CRL_SIZE||(exports.CRL_SIZE={})).NONE="none",yt.ATOM="atom",yt.DEFAULT="default",yt.ELEMENT="element",yt.COMPONENT="component",yt.MODULE="module",yt.FEATURE="feature";const Ot=({className:t,children:a,size:i=exports.CRL_SIZE.DEFAULT})=>{const r=s("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.jsx("div",{"data-testid":"ContentRowsLayout",className:r,children:a})};Ot.displayName="ContentRowsLayout";const _t=({testID:a,inputCallback:i,seperator:r,numInputs:n=4,shouldAutoFocus:o=!1,size:l="medium"})=>{const[d,c]=t.useState("");t.useEffect((()=>{d&&4===d.length&&void 0!==i&&"function"==typeof i&&i(d)}),[d]);const u=t.useMemo((()=>{switch(l){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"}}}),[l]);return e.jsx("div",{"data-testid":a||'"OTPInput"',className:"foo-bar",children:e.jsx(g,{value:d,onChange:c,inputType:"number",numInputs:n,shouldAutoFocus:o,renderSeparator:r?()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(y,{name:"mdi:dot",className:"opacity-50"})}):e.jsx("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e.jsx("input",Object.assign({},t,{className:s("remove-arrow form-item text-input w-12")})),inputStyle:{width:u.width,height:u.height}})})};var Rt;function Lt({className:t,label:a,onChange:i,options:r}){return r?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(J,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(Ge,{id:a||"Sorting",options:r,onChange:e=>i(e.target.value)})]}):null}function wt(t){var{className:a,current:i,resultsPerPage:r=10,onChange:n,totalPages:o}=t,l=P(t,["className","current","resultsPerPage","onChange","totalPages"]);return e.jsx(b,Object.assign({current:i,onChange:n,simple:!0,pageSize:r,total:o*r,className:s("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:I,prevIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(y,{name:"mdi:chevron-left"})}),nextIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(y,{name:"mdi:chevron-right"})})},l))}function Dt({className:t,onChange:a,options:i,label:r}){return i?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(J,{className:"text-sm mr-2",transform:exports.COPY_TRANSFORM.UPPERCASE,children:ce.UI.SHOW}),e.jsx(Ge,{id:r||"ResultsPerPage",options:i.map((e=>({label:e.toString(),value:e}))),onChange:e=>a(e.target.value),className:"min-w-20"})]}):e.jsx(e.Fragment,{})}function Pt(t){var{className:a,end:i,searchTerm:r,start:n,totalResults:o}=t,l=P(t,["className","end","searchTerm","start","totalResults"]);return e.jsxs("div",Object.assign({className:s("m-0 p-0 flex-1",a)},l,{children:["Showing"," ",e.jsxs("strong",{children:[n," - ",i]})," ","out of ",e.jsx("strong",{children:o}),r&&e.jsxs(e.Fragment,{children:[" ","for: ",e.jsx("em",{children:r})]})]}))}function kt({className:a,onChange:i,onSubmit:r,wasSearched:n,placeholder:o,allowReset:l=!1,resetTrigger:d=(()=>{})}){return t.useContext(A.SearchContext),e.jsx("div",{className:s("m-0 md:px-48",a),children:e.jsxs("form",{onSubmit:e=>r(e),className:"flex items-center",children:[e.jsx("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e.jsx(de,{name:"SearchBoxInput",type:le.TEXT,placeholder:o||"Search now...",onChange:e=>{var t;i(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)}})}),e.jsx("div",{className:"pl-4",children:e.jsxs("div",{className:"flex flex-row gap-2",children:[n&&l&&e.jsx(D,{type:exports.BTN_TYPES.BUTTON,onClick:()=>d("",{shouldClearFilters:!1}),variant:exports.BTN_VARIANTS.SECONDARY,icon:"mdi:restore"}),e.jsx(D,{type:exports.BTN_TYPES.SUBMIT,variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:magnify"})]})})]})})}function Mt({className:t,children:a,header:i,bodyContent:r,bodyFooter:n,bodyHeader:o,sideContent:l,showSidebar:d}){const c=s("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":!l});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s("w-full flex flex-col",t),children:[e.jsx("div",{className:"m-auto md:py-0 w-full",children:i}),e.jsxs("div",{className:s("md:grid m-auto md:py-0 w-full",{"md:grid-cols-searchLayout":!l,"md:grid-cols-searchLayoutWithSidebar":l}),children:[!T.isMobile&&e.jsx("div",{className:c,children:l}),e.jsxs("div",{className:s("p-0 pt-2 md:p-6 md:pr-0",{"md:pl-0":!l}),children:[e.jsx("div",{className:"flex flex-row gap-8 items-center justify-end",children:o}),e.jsx("div",{className:"relative",children:a||r}),e.jsx("div",{className:"flex items-center justify-around",children:n})]})]})]}),T.isMobile&&d&&e.jsx("div",{className:"fixed z-10 w-full top-0 left-0 right-0 bottom-0 bg-bodyBackground px-4 overflow-scroll",children:l})]})}function Ut(t){var{children:a,className:i,gridClasses:r}=t,n=P(t,["children","className","gridClasses"]);const o=r||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return e.jsx("ul",Object.assign({className:s("relative grid gap-4 mb-4",o,i)},n,{children:a}))}function Ft(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function Bt(e,t){if(e)return e[t]}function Gt(e){const t=Bt(e,"snippet")||(s=function(e){return Bt(e,"raw")}(e),s?String(s).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):"");var s;return Array.isArray(t)?t.join(", "):t}function Ht({className:t,result:a,as:i,cardMap:r={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:n,titleField:o,imageField:l,videoField:d,descriptionField:c,metaDataFields:u,cardProps:m}=r,p=n&&Gt(a[n.fieldName]),x=o&&Gt(a[o.fieldName]),h=l&&Gt(a[l.fieldName]),v=d&&d.formatter?d.formatter(Gt(a[d.fieldName])):d&&Gt(a[d.fieldName]),f=c&&Gt(a[c.fieldName]),N=u&&u.map((e=>{const t=Gt(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)}));return e.jsx("li",{className:s("relative",t),children:(()=>{const t={id:p,title:x,image:{src:h||"",alt:x||"",title:x||"",width:500,height:500},video:v,description:f,metaData:N,actions:r.actionsData,onClick:r.onClickLink};switch(i){case exports.ResultAsTypes.cardMedia:return e.jsx(Me,Object.assign({variant:exports.CardVariant.MEDIA,data:t},m));case exports.ResultAsTypes.cardVideo:return e.jsx(Me,Object.assign({variant:exports.CardVariant.VIDEO,data:t},m,{isMuted:!1}));default:return e.jsx(Me,Object.assign({variant:exports.CardVariant.BASIC,data:t},m))}})()})}function Yt({showOptions:s,sortOptions:a,resultAs:i=exports.ResultAsTypes.cardBasic,ResultFieldMap:r,config:n={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:o=[],noSidebar:l=!1,customConnector:d,showPagingInfo:c,gridClasses:u,initialState:m={},showTextSearch:p=!0}){const x=Oe(),h=t.useMemo((()=>{const e={host:process.env.NEXT_PUBLIC_ELASTICSEARCH_HOST||process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.NEXT_PUBLIC_ELASTICSEARCH_INDEX||process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.NEXT_PUBLIC_ELASTICSEARCH_API_KEY||process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""};return new S(d||e)}),[]),v=t.useMemo((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:!0,apiConnector:h,hasA11yNotifications:!0,searchQuery:{filters:n.filters||[],search_fields:n.searchFields||{},result_fields:n.resultsFields||{},facets:n.facets},autocompleteQuery:{results:{search_fields:{title:{},description:{}},resultsPerPage:5,result_fields:{title:{snippet:{size:100,fallback:!0}}}}},initialState:Object.assign({resultsPerPage:(null==s?void 0:s[0])||8},m)})),[n]),[f,N]=t.useState(!1),E=()=>{N((e=>!e))};return e.jsx(A.SearchProvider,{config:v,children:e.jsx(A.WithSearch,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:t,setSearchTerm:d})=>{var m;return e.jsx(e.Fragment,{children:e.jsx(A.ErrorBoundary,{children:e.jsx(Mt,{noSidebar:l,showSidebar:f,header:p&&e.jsx(A.SearchBox,{view:s=>e.jsx(kt,Object.assign({},s,{wasSearched:t,placeholder:n.initialPlaceholder,allowReset:!0,resetTrigger:d}))}),sideContent:!l&&o&&e.jsxs("div",{children:[e.jsx("div",{className:"md:hidden flex justify-end pt-2 -mb-2",children:e.jsx(D,{onClick:E,icon:"mdi:close",children:null===(m=null==x?void 0:x.UI)||void 0===m?void 0:m.HIDE_FILTERS})}),t&&a&&e.jsx(A.Sorting,{label:"Sort by",sortOptions:a,view:Lt}),null==o?void 0:o.map((({field:t,label:s,view:a})=>e.jsx(A.Facet,{field:t,label:s,view:a},t)))]}),bodyContent:e.jsx(A.Results,{shouldTrackClickThrough:!1,resultView:t=>e.jsx(Ht,Object.assign({},t,{as:i,cardMap:r})),className:"list-none p-0 m-0",view:t=>e.jsx(Ut,Object.assign({},t,{gridClasses:u}))}),bodyHeader:e.jsxs(e.Fragment,{children:[t&&c&&e.jsx(A.PagingInfo,{view:Pt}),t&&s&&e.jsx(A.ResultsPerPage,{view:Dt,options:s}),t&&a&&l&&e.jsx(A.Sorting,{label:"Sort by",sortOptions:a,view:Lt}),t&&!l&&e.jsx("div",{className:"block md:hidden",children:e.jsx(D,{rounded:!0,onClick:E,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e.jsx(A.Paging,{view:wt})})})})}})})}function Vt({className:t,label:a,onChange:i,options:r}){const n=r.map((e=>({value:e.value,label:`${e.value} (${e.count})`})));return e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(J,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(Ge,{id:a,options:n,onChange:e=>i(e.target.value)})]})}function Wt({className:t,label:a,onRemove:i,onSelect:r,options:n}){const o=n.filter((e=>e.selected)).map((e=>e.value))[0];return e.jsx("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:e.jsxs("div",{children:[e.jsx(J,{transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsxs("ul",{className:"ul list-none p-0",children:[o&&e.jsxs("li",{className:"m-0 flex justify-between items-center flex-1",children:[Ft(o),e.jsx("span",{className:"ml-1 px-1",children:e.jsx(D,{onClick:()=>i(o),size:exports.BTN_SIZES.SMALL,rounded:!0,children:e.jsx(y,{name:"mdi:close"})})})]}),!o&&n.map((t=>{const s=Ft(t.value);return e.jsxs("li",{className:"m-0 flex justify-between",children:[e.jsx("a",{className:"no-underline visited:text-bodyText","data-transaction-name":`facet - ${a}`,href:"/",onClick:e=>{e.preventDefault(),r(t.value)},children:e.jsx("label",{className:"label pl-0 leading-none text-bodyText dark:text-darkBodyText",children:s})}),e.jsx(V,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.MEDIUM,children:t.count.toLocaleString("en")})]},s)}))]})]})})}function zt({className:t,label:a,onMoreClick:i,onRemove:r,onSelect:n,options:o,showMore:l,showSearch:d,onSearch:c,searchPlaceholder:u}){return o?e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(J,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),d&&e.jsx("div",{className:"mt-1",children:e.jsx(de,{type:le.SEARCH,placeholder:u||"Search",onChange:e=>{c(e.target.value)}})}),e.jsxs("div",{className:"my-4",children:[(null==o?void 0:o.length)<1&&e.jsx("div",{children:"No matching options"}),null==o?void 0:o.map((t=>{const s=t.selected,i=t.value,o=Ft(i);return e.jsxs("div",{className:"flex justify-between pb-2",children:[e.jsx(M,{id:`facet_${a}${o}`,"data-transaction-name":`facet - ${a}`,checked:s,onChange:()=>s?r(i):n(i),label:o}),e.jsx(V,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.SMALL,children:t.count.toLocaleString("en")})]},o)}))]}),l&&e.jsx(D,{size:exports.BTN_SIZES.SMALL,variant:exports.BTN_VARIANTS.TERTIARY,onClick:i,"aria-label":"Show more options",children:"+ More"})]}):e.jsx(e.Fragment,{children:"Options required"})}_t.displayName="OTPInput",exports.ResultAsTypes=void 0,(Rt=exports.ResultAsTypes||(exports.ResultAsTypes={})).cardBasic="cardBasic",Rt.cardMedia="cardMedia",Rt.cardVideo="cardVideo",Lt.displayName="Sorting",wt.displayName="Paging",Dt.displayName="ResultsPerPage",Pt.displayName="PagingInfo",kt.displayName="SearchBox",Mt.displayName="Layout",Ut.displayName="Results",Ht.displayName="Result",Vt.displayName="SingleSelectFacet",Wt.displayName="SingleLinksFacet",zt.displayName="MultiCheckboxFacet";const qt=({handleSubmit:t})=>{const s=Oe();return e.jsx("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e.jsx(Fe,{onSubmit:t,submit:s.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(He,{name:"password",autoComplete:"new-password",type:exports.FIELD_TYPES.PASSWORD,label:s.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:at})})})};qt.displayName="ResetPasswordForm";const Kt=({handleSubmit:t})=>{const s=Oe();return e.jsx("div",{"data-testid":"ResetPasswordAuthForm",className:"form-wrapper",children:e.jsxs(Fe,{onSubmit:t,submit:s.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e.jsx(He,{name:"current-password",autoComplete:"current-password",type:exports.FIELD_TYPES.PASSWORD,label:s.FORMS.RESET_PASSWORD_FORM_AUTH.CURRENT_PASSWORD,required:!0,validations:at}),e.jsx(He,{name:"new-password",autoComplete:"new-password",type:exports.FIELD_TYPES.PASSWORD,label:s.FORMS.RESET_PASSWORD_FORM_AUTH.NEW_PASSWORD,required:!0,validations:at})]})})};Kt.displayName="ResetPasswordAuthForm";const Zt=({testID:t,initialValues:s,handleSubmit:a,avatarUpdateCallback:i})=>{const r=Oe();return e.jsx("div",{"data-testid":t||'"ProfileForm"',className:"form-wrapper",children:e.jsxs(Fe,{onSubmit:a,submit:r.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx("div",{className:"mb-4 items-center justify-center flex",children:e.jsx(ue,{name:"avatar",initValue:null==s?void 0:s.picture,fileUpdateCallback:i})}),e.jsx(He,{name:"picture",type:exports.FIELD_TYPES.HIDDEN}),e.jsx(He,{name:"firstName",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e.jsx(He,{name:"lastName",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e.jsx(He,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:r.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:st})]})})};Zt.displayName="ProfileForm";const $t=t.createContext({config:void 0}),Xt=({testID:t,title:s,image:a,user:i,logoutCallback:r,resetPasswordCallback:n,menu:o})=>{var l;const d=Oe();return e.jsxs(St,{"data-testid":t||"AccountScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ue,{initValue:null===(l=null==i?void 0:i.profile)||void 0===l?void 0:l.picture,isEditable:!1})}),o&&e.jsx("div",{children:e.jsx(se,{className:"flex items-center flex-col justify-center gap-2",children:null==o?void 0:o.map(((t,s)=>e.jsx(ie,{as:"div",title:t.title,icon:t.icon,onClick:t.onClick},s)))})}),e.jsxs("div",{className:"my-4 flex flex-col gap-8 justify-center items-center",children:[e.jsxs("div",{className:"flex items-center flex-col justify-center gap-1",children:[e.jsx($,{tag:exports.HEADING_TAGS.H5,flush:!0,children:d.UI.SHARE}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(c.FacebookShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(y,{name:"mdi:facebook"})}),e.jsx(c.TwitterShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(y,{name:"mdi:twitter"})}),e.jsx(c.LinkedinShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(y,{name:"mdi:linkedin"})}),e.jsx(c.WhatsappShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(y,{name:"mdi:whatsapp"})})]})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[n&&e.jsx(D,{onClick:n,icon:"mdi:lock-reset",children:null==d?void 0:d.UI.RESET_PASSWORD}),r&&e.jsx(D,{onClick:r,icon:"mdi:logout",children:null==d?void 0:d.UI.LOGOUT})]})]})]})]})};Xt.displayName="AccountScreen";const Qt=({testID:t,title:s,image:a,formProps:i})=>e.jsxs(St,{"data-testid":t||"AuthScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx("div",{className:"flex justify-center",children:e.jsx(ot,Object.assign({},i))})]});Qt.displayName="AuthScreen";const Jt=({testID:t,title:s,image:a,data:i,onPressCallback:r,isLoading:n,noDataMessage:o})=>{var l;const d=Oe();return e.jsxs(St,{"data-testid":t||"CardGridScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsxs("div",{children:[n&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),i&&e.jsx(Nt,{data:i,onPressCallback:r}),!i&&!n&&e.jsx("div",{children:e.jsx(V,{children:o||(null===(l=null==d?void 0:d.UI)||void 0===l?void 0:l.NO_DATA)})})]})]})};Jt.displayName="CardGridScreen";const es=({testID:t,title:s,image:a,searchProps:i})=>e.jsxs(St,{"data-testid":t||"CatalogueScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx("div",{children:e.jsx(Yt,Object.assign({},i))})]});es.displayName="CatalogueScreen";const ts=({testID:t,title:s,image:a,data:i,isLoading:r,onPressCallback:n})=>e.jsxs(St,{"data-testid":t||"ChallengeLibraryScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),r&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),i&&e.jsx("div",{children:e.jsx(Nt,{data:i,onPressCallback:n})})]});ts.displayName="ChallengeLibraryScreen";const ss="MMMM dd, yyyy",as="HH:mm",is=({testID:s,title:a,image:i,created:r=0,body:n,days:o,puchaseLabel:l,hasAccess:d=!1,onPressCallback:c,purchaseCallback:u,isLoading:m})=>{const p=Oe(),x=t.useMemo((()=>j.format(new Date(1e3*r),ss)),[r]);return e.jsxs(St,{"data-testid":s||"ChallengeScreen",image:i,children:[e.jsxs("div",{children:[a&&e.jsx(Ue,{text:a}),e.jsxs(J,{children:[p.UI.CREATED,": ",x]}),!d&&e.jsxs("div",{className:"flex flex-col gap-2 mb-4",children:[e.jsx(V,{bold:!0,className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e.jsx(V,{className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e.jsx("div",{children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:u,isLoading:m,disabled:m,children:l})}),e.jsxs(V,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:["** ",p.GLOBAL.SCREENS.CHALLENGE.PAYMENT_NOTE]})]})]}),e.jsx("div",{children:n&&e.jsx(fe,{data:n})}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:null==o?void 0:o.map((t=>e.jsx(Me,{variant:exports.CardVariant.MEDIA,data:{id:t.id,title:t.title,image:{src:t.image,alt:t.title},raised:!0,onClick:d?()=>c(t.video):void 0,accessRestriced:!d}},t.id)))})]})};is.displayName="ChallengeScreen";const rs=({testID:t,title:s,image:a,updated:i,content:r,isLoading:n})=>{var o;const l=Oe(),d=i?j.format(new Date(1e3*i),"MMMM dd, yyyy HH:mm"):void 0;return e.jsxs(St,{"data-testid":t||"ContentScreen",image:a,children:[n&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),s&&e.jsx(Ue,{text:s}),i&&e.jsx("div",{children:e.jsxs(V,{children:[null===(o=null==l?void 0:l.UI)||void 0===o?void 0:o.UPDATED,": ",d]})}),r&&e.jsx("div",{children:e.jsx(fe,{data:r})})]})};rs.displayName="ContentScreen";const ns=({testID:t,title:s,image:a,user:i,latestData:r,recentdata:n,stats:o,promo:l,news:d,statsIsLoading:c,promosIsLoading:u,dataIsLoading:m,handleLatestDataPress:p,handleRecentDataPress:x,handleNewsDataPress:h})=>{var v,f,N,E,g,S;const A=Oe();return e.jsxs(St,{"data-testid":t||"DashboardScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx("div",{children:e.jsxs(V,{children:[null===(v=null==A?void 0:A.UI)||void 0===v?void 0:v.WELCOME," ",null==i?void 0:i.name]})}),c&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),!c&&o&&e.jsxs("div",{className:"mb-8",children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(f=null==A?void 0:A.UI)||void 0===f?void 0:f.ACTIVITY}),e.jsx("div",{className:"flex flex-row gap-4",children:o.map(((t,s)=>e.jsx("div",{children:e.jsx(Me,{variant:t.variant,data:t.data})},`${t.data.id}-${s}`)))})]}),m&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),!m&&r&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(N=null==A?void 0:A.UI)||void 0===N?void 0:N.LATEST_WORKOUTS}),e.jsx("div",{children:e.jsx(ct,{data:r,onPressCallback:p,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),u&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),!u&&l&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,flush:!0,children:null===(E=null==A?void 0:A.UI)||void 0===E?void 0:E.WHATS_NEWS}),e.jsx(ht,Object.assign({},l,{withBg:!0,spacing:exports.SPACING.ATOM}))]}),m&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),!m&&n&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(g=null==A?void 0:A.UI)||void 0===g?void 0:g.RECENTLY_ADDED}),e.jsx("div",{children:e.jsx(ct,{data:n,onPressCallback:x,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),u&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),!u&&d&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(S=null==A?void 0:A.UI)||void 0===S?void 0:S.WHATS_NEW}),e.jsx("div",{children:e.jsx(ct,{data:d,onPressCallback:h,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]})]})};ns.displayName="DashboardScreen";const os=({testID:t,title:s,image:a,data:i,isLoading:r})=>e.jsxs(St,{"data-testid":t||"FAQScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),!i&&r&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),i&&e.jsx(bt,{data:null==i?void 0:i.map((e=>({title:e.title||"",content:e.answer||""})))})]});os.displayName="FAQScreen";const ls=({testID:t,image:s,panelVideoProps:a,panelFeatureProps:i,panelCardsProps:r,panelHerosProps:n,panelDataCardsProps:o,panelProductProps:l})=>e.jsxs(St,{"data-testid":t||"HomeScreen",image:s,isFlush:!0,children:[a&&e.jsx(ft,Object.assign({},a)),e.jsxs(Ke,{children:[i&&e.jsx(pt,Object.assign({},i)),r&&e.jsx(mt,Object.assign({},r)),null==n?void 0:n.map(((t,s)=>e.jsx(ht,Object.assign({},t),s))),o&&e.jsx(mt,Object.assign({},o)),l&&e.jsx(vt,Object.assign({},l))]})]});ls.displayName="HomeScreen";const ds=({testID:t,title:s,image:a,menu:i,isLoading:r=!1})=>e.jsxs(St,{"data-testid":t||"MenuScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),r&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),i&&e.jsx(se,{children:i.map((t=>e.jsx(ie,{as:"div",icon:t.icon,onClick:t.onPress,title:t.title},t.title)))})]});ds.displayName="MenuScreen";const cs=({testID:t,title:s,message:a})=>{var i,r,n,o,l,d,c;const u=Oe();return e.jsx(St,{"data-testid":t||'"NotFound"',children:e.jsxs(e.Fragment,{children:[e.jsx(Ue,{text:s||(null===(i=null==u?void 0:u.UI)||void 0===i?void 0:i.PAGE_NOT_FOUND_OOPS)}),e.jsx(V,{children:a||(null===(r=null==u?void 0:u.UI)||void 0===r?void 0:r.PAGE_NOT_FOUND_MESSAGE_OOPS)}),e.jsx($,{tag:exports.HEADING_TAGS.H5,flush:!0,children:e.jsxs("span",{className:"flex flex-row gap-2 items-center",children:[e.jsx(y,{name:"mdi:lightbulb"})," ",null===(n=null==u?void 0:u.UI)||void 0===n?void 0:n.WHAT_CAN_YOU_DO]})}),e.jsxs(se,{as:exports.ListTag.UL,children:[e.jsx(ie,{as:"li",children:null===(o=null==u?void 0:u.UI)||void 0===o?void 0:o.DOUBLE_CHECK_URL}),e.jsx(ie,{as:"li",children:null===(l=null==u?void 0:u.UI)||void 0===l?void 0:l.RETURN_TO_HOMEPAGE}),e.jsxs(ie,{as:"li",children:[null===(d=null==u?void 0:u.UI)||void 0===d?void 0:d.EXPLORE_SITE,"."]})]}),e.jsx(V,{children:null===(c=null==u?void 0:u.UI)||void 0===c?void 0:c.STILL_NEED_HELP})]})})};cs.displayName="NotFoundScreen";const us=({testID:t,title:s,image:a,handleSubmitCallback:i})=>e.jsxs(St,{"data-testid":t||'"PasswordReset"',image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx(qt,{handleSubmit:i})]});us.displayName="PasswordResetScreen";const ms=({testID:t,title:s,image:a,handleSubmitCallback:i})=>e.jsxs(St,{"data-testid":t||"PasswordResetAuthScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx(Kt,{handleSubmit:i})]});ms.displayName="PasswordResetAuthScreen";const ps=({testID:t,title:s,image:a,user:i,handleProfileSubmit:r,profilePicUpdateCallback:n})=>e.jsxs(St,{"data-testid":t||"ProfileScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx(Zt,{initialValues:null==i?void 0:i.profile,handleSubmit:r,avatarUpdateCallback:n})]});ps.displayName="ProfileScreen";const xs=({testID:s,end:a,live:i,start:r,title:n})=>{const o=t.useMemo((()=>j.format(new Date(1e3*r),ss)),[r]),l=t.useMemo((()=>j.format(new Date(1e3*r),as)),[r]),d=t.useMemo((()=>j.format(new Date(1e3*a),as)),[a]);return e.jsxs("div",{"data-testid":s||'"ScheduleItem"',className:"foo-bar",children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:n}),e.jsxs(J,{children:[o,": ",l," - ",d]}),i&&e.jsx("div",{children:e.jsx(xt,{url:i,isYoutube:!0})})]})};xs.displayName="ScheduleItem";const hs=({testID:s,raised:a=!1,scheduleItems:i,hasAccess:r})=>{var n,o,l,d;const c=Oe(),[u,m]=t.useState(0),[p,x]=t.useState([]),h=t.useMemo((()=>{var t;return null===(t=null==i?void 0:i.days)||void 0===t?void 0:t.map(((t,s)=>{var a,i;const r=Object.keys(t)[0],n=null===(a=t[r])||void 0===a?void 0:a[0];return n?{day:r.charAt(0).toUpperCase()+r.slice(1),component:e.jsx(xs,{title:n.title,live:n.live,start:n.start,end:n.end})}:{day:r.charAt(0).toUpperCase()+r.slice(1),component:e.jsx("div",{children:e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(i=null==c?void 0:c.UI)||void 0===i?void 0:i.NO_CLASS})})}}))}),[i]);t.useEffect((()=>{const e=function(){const e=new Date,t=e.getDay(),s=new Date(e);s.setDate(e.getDate()-t);const a=[];for(let t=0;t<7;t++){const i=new Date(s);i.setDate(s.getDate()+t),a.push({date:i,isToday:i.toDateString()===e.toDateString()})}return a}(),t=e.findIndex((e=>e.isToday));m(t),x(e)}),[]);const v=t.useMemo((()=>p.map(((e,t)=>{const s=e.date.toLocaleString("en-US",{weekday:"short"}),a=e.date.toLocaleString("en-US",{day:"numeric"}),i=u===t;return{variant:exports.CardVariant.BASIC,data:{id:`${t}`,title:s,description:a,raised:!0},className:i?"bg-tertiary":"bg-bodyBackground"}}))),[p,u]),f=t.useMemo((()=>null==h?void 0:h.find((e=>{var t;return e.day===(null===(t=null==p?void 0:p[u])||void 0===t?void 0:t.date.toLocaleString("en-US",{weekday:"long"}))}))),[h,p,u]);return e.jsxs("div",{"data-testid":s||'"Schedule"',children:[e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H5,transform:exports.HEADING_TRANSFORM.UPPERCASE,children:null===(n=null==c?void 0:c.UI)||void 0===n?void 0:n.THIS_WEEK}),e.jsx("div",{children:e.jsx(ct,{data:v,onPressCallback:e=>{m(Number(e))},count:7,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500,onSnapToItem:()=>{},shouldScrollOnClick:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:7}},{breakpoint:600,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:3}}]}})})]}),e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H5,transform:exports.HEADING_TRANSFORM.UPPERCASE,children:null===(o=null==c?void 0:c.UI)||void 0===o?void 0:o.TODAYS_ITEMS}),!r&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H2,children:null===(l=null==c?void 0:c.UI)||void 0===l?void 0:l.ACCESS_RESTRICTED}),e.jsx(V,{children:null===(d=null==c?void 0:c.UI)||void 0===d?void 0:d.UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE})]}),r&&(null==f?void 0:f.component)]})]})};hs.displayName="Schedule";const vs=({testID:t,title:s,image:a,scheduleData:i,isLoading:r=!1})=>e.jsxs(St,{"data-testid":t||"ScheduleScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),!i&&r&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),i&&e.jsx("div",{children:e.jsx(hs,Object.assign({},i))})]});vs.displayName="ScheduleScreen";const fs=({testID:t,title:s,image:a,user:i,handleSubscriptionSubmit:r,subscriptionCallback:n,subscriptionManagerProps:o})=>{var l,d;const c=Oe();return e.jsxs(St,{"data-testid":t||"SubscriptionScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),o&&e.jsx("div",{children:e.jsx(Tt,Object.assign({},o))}),n&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(V,{children:null===(l=null==c?void 0:c.UI)||void 0===l?void 0:l.NEED_HELP_WITH_SUBSCRIPTION}),e.jsx("div",{children:e.jsx(D,{icon:"mdi:help",variant:exports.BTN_VARIANTS.SECONDARY,onClick:n,children:null===(d=null==c?void 0:c.UI)||void 0===d?void 0:d.CONTACT_SUPPORT})})]})})]})};fs.displayName="SubscriptionScreen";const Ns=({testID:s,id:a,title:i,image:r,description:n,created:o=0,duration:l="PT0M",level:d,section:c,video:u,category:m,type:p,likeCallback:h,completedCallback:v,favouriteCallback:f,isLiked:N,isCompleted:E,isFavourite:g,relatedWorkouts:S,hasActiveSubscription:A,htmlDetails:b,noSubActionCallback:I})=>{var T,C;const y=Oe();t.useState(2);const O=t.useRef(null),_=t.useMemo((()=>j.format(new Date(1e3*o),ss)),[o]),R=t.useMemo((()=>je(l)),[l]);return e.jsxs(St,{"data-testid":s||"WorkoutScreen",image:r,children:[e.jsxs("div",{children:[i&&e.jsx(Ue,{text:i}),e.jsx("div",{children:e.jsxs(J,{children:[y.UI.CREATED,": ",_]})}),e.jsx("div",{children:e.jsxs(J,{children:[y.UI.DURATION,": ",R]})})]}),!A&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:y.UI.NO_ACTIVE_SUBSCRIPTION}),e.jsx(V,{children:null===(T=null==y?void 0:y.UI)||void 0===T?void 0:T.NO_SUBSCRIPTION_DETAILS}),I&&e.jsx(D,{rounded:!0,onClick:I,icon:"mdi:arrow-right-circle-outline",children:y.UI.SUBSCRIBE})]}),e.jsx("div",{children:e.jsx(D,{onClick:()=>{O.current.play(),O.current.fullscreen()},icon:"mdi:play",iconFirst:!0,disabled:!A,children:y.UI.START_WORKOUT})}),e.jsxs("div",{className:"flex gap-2",children:[h&&e.jsx("div",{children:e.jsx(D,{onClick:()=>{a&&h&&"function"==typeof h&&(h(a),x.toast.info(N?y.UI.REMOVED_LIKE:y.UI.ADDED_LIKE))},icon:N?"mdi:heart":"mdi:heart-outline",disabled:!A,rounded:!0})}),f&&e.jsx("div",{children:e.jsx(D,{onClick:()=>{a&&f&&"function"==typeof f&&(f(a),x.toast.info(g?y.UI.REMOVED_FAVORITE:y.UI.ADDED_FAVORITE))},icon:g?"mdi:bookmark":"mdi:bookmark-outline",disabled:!A,rounded:!0})}),v&&e.jsx("div",{children:e.jsx(D,{onClick:()=>{a&&v&&"function"==typeof v&&(v(a),x.toast.info(E?y.UI.MARKED_INCOMPLETE:y.UI.MARKED_COMPLETE))},icon:E?"mdi:battery":"mdi:battery-outline",disabled:!A,rounded:!0})})]}),!b&&n&&e.jsx("div",{children:e.jsx(V,{children:n})}),b&&n&&e.jsx("div",{children:e.jsx(fe,{data:n})}),e.jsxs("div",{className:"flex gap-4 flex-wrap",children:[d&&e.jsxs(J,{children:[y.UI.LEVEL,": ",d]}),c&&e.jsxs(J,{children:[y.UI.SECTION,": ",c]}),m&&e.jsxs(J,{children:[y.UI.CATEGORY,": ",m]}),p&&e.jsxs(J,{children:[y.UI.TYPE,": ",p]})]}),S&&e.jsx(e.Fragment,{children:e.jsx(Ke,{isNarrow:!0,padded:!0,children:e.jsx("div",{children:e.jsx($,{children:null===(C=null==y?void 0:y.UI)||void 0===C?void 0:C.RELATED})})})}),e.jsx("div",{className:"fixed top-0 left-0 w-0 h-0 overflow-hidden",children:e.jsx(xt,{ref:O,fullScreenOnly:!0,options:{autoplay:!1,playsinline:!1,preferFullWindow:!0},sources:[{src:u,type:"application/x-mpegURL"}],onExitFullScreenCallback:()=>{console.log("onExitFullScreenCallback exit full screen"),O.current.pause()}})})]})};Ns.displayName="WorkoutScreen";const Es={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 gs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ss={exports:{}},As={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]},bs={exports:{}},Is=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))},Ts=Array.prototype.concat,js=Array.prototype.slice,Cs=bs.exports=function(e){for(var t=[],s=0,a=e.length;s<a;s++){var i=e[s];Is(i)?t=Ts.call(t,js.call(i)):t.push(i)}return t};Cs.wrap=function(e){return function(){return e(Cs(arguments))}};var ys=bs.exports,Os=As,_s=ys,Rs=Object.hasOwnProperty,Ls=Object.create(null);for(var ws in Os)Rs.call(Os,ws)&&(Ls[Os[ws]]=ws);var Ds=Ss.exports={to:{},get:{}};function Ps(e,t,s){return Math.min(Math.max(t,e),s)}function ks(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}Ds.get=function(e){var t,s;switch(e.substring(0,3).toLowerCase()){case"hsl":t=Ds.get.hsl(e),s="hsl";break;case"hwb":t=Ds.get.hwb(e),s="hwb";break;default:t=Ds.get.rgb(e),s="rgb"}return t?{model:s,value:t}:null},Ds.get.rgb=function(e){if(!e)return null;var t,s,a,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],s=0;s<3;s++){var r=2*s;i[s]=parseInt(t.slice(r,r+2),16)}a&&(i[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],s=0;s<3;s++)i[s]=parseInt(t[s]+t[s],16);a&&(i[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)i[s]=parseInt(t[s+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[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]:Rs.call(Os,t[1])?((i=Os[t[1]])[3]=1,i):null:null;for(s=0;s<3;s++)i[s]=Math.round(2.55*parseFloat(t[s+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(s=0;s<3;s++)i[s]=Ps(i[s],0,255);return i[3]=Ps(i[3],0,1),i},Ds.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 s=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,Ps(parseFloat(t[2]),0,100),Ps(parseFloat(t[3]),0,100),Ps(isNaN(s)?1:s,0,1)]}return null},Ds.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 s=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,Ps(parseFloat(t[2]),0,100),Ps(parseFloat(t[3]),0,100),Ps(isNaN(s)?1:s,0,1)]}return null},Ds.to.hex=function(){var e=_s(arguments);return"#"+ks(e[0])+ks(e[1])+ks(e[2])+(e[3]<1?ks(Math.round(255*e[3])):"")},Ds.to.rgb=function(){var e=_s(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]+")"},Ds.to.rgb.percent=function(){var e=_s(arguments),t=Math.round(e[0]/255*100),s=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+s+"%, "+a+"%)":"rgba("+t+"%, "+s+"%, "+a+"%, "+e[3]+")"},Ds.to.hsl=function(){var e=_s(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Ds.to.hwb=function(){var e=_s(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Ds.to.keyword=function(e){return Ls[e.slice(0,3)]};var Ms=Ss.exports;const Us=As,Fs={};for(const e of Object.keys(Us))Fs[Us[e]]=e;const Bs={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 Gs=Bs;for(const e of Object.keys(Bs)){if(!("channels"in Bs[e]))throw new Error("missing channels property: "+e);if(!("labels"in Bs[e]))throw new Error("missing channel labels property: "+e);if(Bs[e].labels.length!==Bs[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:s}=Bs[e];delete Bs[e].channels,delete Bs[e].labels,Object.defineProperty(Bs[e],"channels",{value:t}),Object.defineProperty(Bs[e],"labels",{value:s})}Bs.rgb.hsl=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.min(t,s,a),r=Math.max(t,s,a),n=r-i;let o,l;r===i?o=0:t===r?o=(s-a)/n:s===r?o=2+(a-t)/n:a===r&&(o=4+(t-s)/n),o=Math.min(60*o,360),o<0&&(o+=360);const d=(i+r)/2;return l=r===i?0:d<=.5?n/(r+i):n/(2-r-i),[o,100*l,100*d]},Bs.rgb.hsv=function(e){let t,s,a,i,r;const n=e[0]/255,o=e[1]/255,l=e[2]/255,d=Math.max(n,o,l),c=d-Math.min(n,o,l),u=function(e){return(d-e)/6/c+.5};return 0===c?(i=0,r=0):(r=c/d,t=u(n),s=u(o),a=u(l),n===d?i=a-s:o===d?i=1/3+t-a:l===d&&(i=2/3+s-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*r,100*d]},Bs.rgb.hwb=function(e){const t=e[0],s=e[1];let a=e[2];const i=Bs.rgb.hsl(e)[0],r=1/255*Math.min(t,Math.min(s,a));return a=1-1/255*Math.max(t,Math.max(s,a)),[i,100*r,100*a]},Bs.rgb.cmyk=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.min(1-t,1-s,1-a);return[100*((1-t-i)/(1-i)||0),100*((1-s-i)/(1-i)||0),100*((1-a-i)/(1-i)||0),100*i]},Bs.rgb.keyword=function(e){const t=Fs[e];if(t)return t;let s,a=1/0;for(const t of Object.keys(Us)){const n=(r=Us[t],((i=e)[0]-r[0])**2+(i[1]-r[1])**2+(i[2]-r[2])**2);n<a&&(a=n,s=t)}var i,r;return s},Bs.keyword.rgb=function(e){return Us[e]},Bs.rgb.xyz=function(e){let t=e[0]/255,s=e[1]/255,a=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;return[100*(.4124*t+.3576*s+.1805*a),100*(.2126*t+.7152*s+.0722*a),100*(.0193*t+.1192*s+.9505*a)]},Bs.rgb.lab=function(e){const t=Bs.rgb.xyz(e);let s=t[0],a=t[1],i=t[2];s/=95.047,a/=100,i/=108.883,s=s>.008856?s**(1/3):7.787*s+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*(s-a),200*(a-i)]},Bs.hsl.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;let i,r,n;if(0===s)return n=255*a,[n,n,n];i=a<.5?a*(1+s):a+s-a*s;const o=2*a-i,l=[0,0,0];for(let e=0;e<3;e++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,n=6*r<1?o+6*(i-o)*r:2*r<1?i:3*r<2?o+(i-o)*(2/3-r)*6:o,l[e]=255*n;return l},Bs.hsl.hsv=function(e){const t=e[0];let s=e[1]/100,a=e[2]/100,i=s;const r=Math.max(a,.01);a*=2,s*=a<=1?a:2-a,i*=r<=1?r:2-r;return[t,100*(0===a?2*i/(r+i):2*s/(a+s)),100*((a+s)/2)]},Bs.hsv.rgb=function(e){const t=e[0]/60,s=e[1]/100;let a=e[2]/100;const i=Math.floor(t)%6,r=t-Math.floor(t),n=255*a*(1-s),o=255*a*(1-s*r),l=255*a*(1-s*(1-r));switch(a*=255,i){case 0:return[a,l,n];case 1:return[o,a,n];case 2:return[n,a,l];case 3:return[n,o,a];case 4:return[l,n,a];case 5:return[a,n,o]}},Bs.hsv.hsl=function(e){const t=e[0],s=e[1]/100,a=e[2]/100,i=Math.max(a,.01);let r,n;n=(2-s)*a;const o=(2-s)*i;return r=s*i,r/=o<=1?o:2-o,r=r||0,n/=2,[t,100*r,100*n]},Bs.hwb.rgb=function(e){const t=e[0]/360;let s=e[1]/100,a=e[2]/100;const i=s+a;let r;i>1&&(s/=i,a/=i);const n=Math.floor(6*t),o=1-a;r=6*t-n,1&n&&(r=1-r);const l=s+r*(o-s);let d,c,u;switch(n){default:case 6:case 0:d=o,c=l,u=s;break;case 1:d=l,c=o,u=s;break;case 2:d=s,c=o,u=l;break;case 3:d=s,c=l,u=o;break;case 4:d=l,c=s,u=o;break;case 5:d=o,c=s,u=l}return[255*d,255*c,255*u]},Bs.cmyk.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,s*(1-i)+i)),255*(1-Math.min(1,a*(1-i)+i))]},Bs.xyz.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100;let i,r,n;return i=3.2406*t+-1.5372*s+-.4986*a,r=-.9689*t+1.8758*s+.0415*a,n=.0557*t+-.204*s+1.057*a,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*i,255*r,255*n]},Bs.xyz.lab=function(e){let t=e[0],s=e[1],a=e[2];t/=95.047,s/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;return[116*s-16,500*(t-s),200*(s-a)]},Bs.lab.xyz=function(e){let t,s,a;s=(e[0]+16)/116,t=e[1]/500+s,a=s-e[2]/200;const i=s**3,r=t**3,n=a**3;return s=i>.008856?i:(s-16/116)/7.787,t=r>.008856?r:(t-16/116)/7.787,a=n>.008856?n:(a-16/116)/7.787,t*=95.047,s*=100,a*=108.883,[t,s,a]},Bs.lab.lch=function(e){const t=e[0],s=e[1],a=e[2];let i;i=360*Math.atan2(a,s)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(s*s+a*a),i]},Bs.lch.lab=function(e){const t=e[0],s=e[1],a=e[2]/360*2*Math.PI;return[t,s*Math.cos(a),s*Math.sin(a)]},Bs.rgb.ansi16=function(e,t=null){const[s,a,i]=e;let r=null===t?Bs.rgb.hsv(e)[2]:t;if(r=Math.round(r/50),0===r)return 30;let n=30+(Math.round(i/255)<<2|Math.round(a/255)<<1|Math.round(s/255));return 2===r&&(n+=60),n},Bs.hsv.ansi16=function(e){return Bs.rgb.ansi16(Bs.hsv.rgb(e),e[2])},Bs.rgb.ansi256=function(e){const t=e[0],s=e[1],a=e[2];if(t===s&&s===a)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(s/255*5)+Math.round(a/255*5)},Bs.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 s=.5*(1+~~(e>50));return[(1&t)*s*255,(t>>1&1)*s*255,(t>>2&1)*s*255]},Bs.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]},Bs.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},Bs.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 s=t[0];3===t[0].length&&(s=s.split("").map((e=>e+e)).join(""));const a=parseInt(s,16);return[a>>16&255,a>>8&255,255&a]},Bs.rgb.hcg=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.max(Math.max(t,s),a),r=Math.min(Math.min(t,s),a),n=i-r;let o,l;return o=n<1?r/(1-n):0,l=n<=0?0:i===t?(s-a)/n%6:i===s?2+(a-t)/n:4+(t-s)/n,l/=6,l%=1,[360*l,100*n,100*o]},Bs.hsl.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=s<.5?2*t*s:2*t*(1-s);let i=0;return a<1&&(i=(s-.5*a)/(1-a)),[e[0],100*a,100*i]},Bs.hsv.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=t*s;let i=0;return a<1&&(i=(s-a)/(1-a)),[e[0],100*a,100*i]},Bs.hcg.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;if(0===s)return[255*a,255*a,255*a];const i=[0,0,0],r=t%1*6,n=r%1,o=1-n;let l=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=n,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=n;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=n,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-s)*a,[255*(s*i[0]+l),255*(s*i[1]+l),255*(s*i[2]+l)]},Bs.hcg.hsv=function(e){const t=e[1]/100,s=t+e[2]/100*(1-t);let a=0;return s>0&&(a=t/s),[e[0],100*a,100*s]},Bs.hcg.hsl=function(e){const t=e[1]/100,s=e[2]/100*(1-t)+.5*t;let a=0;return s>0&&s<.5?a=t/(2*s):s>=.5&&s<1&&(a=t/(2*(1-s))),[e[0],100*a,100*s]},Bs.hcg.hwb=function(e){const t=e[1]/100,s=t+e[2]/100*(1-t);return[e[0],100*(s-t),100*(1-s)]},Bs.hwb.hcg=function(e){const t=e[1]/100,s=1-e[2]/100,a=s-t;let i=0;return a<1&&(i=(s-a)/(1-a)),[e[0],100*a,100*i]},Bs.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Bs.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Bs.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Bs.gray.hsl=function(e){return[0,0,e[0]]},Bs.gray.hsv=Bs.gray.hsl,Bs.gray.hwb=function(e){return[0,100,e[0]]},Bs.gray.cmyk=function(e){return[0,0,0,e[0]]},Bs.gray.lab=function(e){return[e[0],0,0]},Bs.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),s=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(s.length)+s},Bs.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Hs=Gs;function Ys(e){const t=function(){const e={},t=Object.keys(Hs);for(let s=t.length,a=0;a<s;a++)e[t[a]]={distance:-1,parent:null};return e}(),s=[e];for(t[e].distance=0;s.length;){const e=s.pop(),a=Object.keys(Hs[e]);for(let i=a.length,r=0;r<i;r++){const i=a[r],n=t[i];-1===n.distance&&(n.distance=t[e].distance+1,n.parent=e,s.unshift(i))}}return t}function Vs(e,t){return function(s){return t(e(s))}}function Ws(e,t){const s=[t[e].parent,e];let a=Hs[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)s.unshift(t[i].parent),a=Vs(Hs[t[i].parent][i],a),i=t[i].parent;return a.conversion=s,a}const zs=Gs,qs=function(e){const t=Ys(e),s={},a=Object.keys(t);for(let e=a.length,i=0;i<e;i++){const e=a[i];null!==t[e].parent&&(s[e]=Ws(e,t))}return s},Ks={};Object.keys(zs).forEach((e=>{Ks[e]={},Object.defineProperty(Ks[e],"channels",{value:zs[e].channels}),Object.defineProperty(Ks[e],"labels",{value:zs[e].labels});const t=qs(e);Object.keys(t).forEach((s=>{const a=t[s];Ks[e][s]=function(e){const t=function(...t){const s=t[0];if(null==s)return s;s.length>1&&(t=s);const a=e(t);if("object"==typeof a)for(let e=a.length,t=0;t<e;t++)a[t]=Math.round(a[t]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}(a),Ks[e][s].raw=function(e){const t=function(...t){const s=t[0];return null==s?s:(s.length>1&&(t=s),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))}));const Zs=Ms,$s=Ks,Xs=["keyword","gray","hex"],Qs={};for(const e of Object.keys($s))Qs[[...$s[e].labels].sort().join("")]=e;const Js={};function ea(e,t){if(!(this instanceof ea))return new ea(e,t);if(t&&t in Xs&&(t=null),t&&!(t in $s))throw new Error("Unknown model: "+t);let s,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof ea)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=Zs.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,a=$s[this.model].channels,this.color=t.value.slice(0,a),this.valpha="number"==typeof t.value[a]?t.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=$s[this.model].channels;const s=Array.prototype.slice.call(e,0,a);this.color=ia(s,a),this.valpha="number"==typeof e[a]?e[a]: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 a=t.sort().join("");if(!(a in Qs))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Qs[a];const{labels:i}=$s[this.model],r=[];for(s=0;s<i.length;s++)r.push(e[i[s]]);this.color=ia(r)}if(Js[this.model])for(a=$s[this.model].channels,s=0;s<a;s++){const e=Js[this.model][s];e&&(this.color[s]=e(this.color[s]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ea.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Zs.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const s=1===t.valpha?t.color:[...t.color,this.valpha];return Zs.to[t.model](s)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),s=1===t.valpha?t.color:[...t.color,this.valpha];return Zs.to.rgb.percent(s)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=$s[this.model],{labels:s}=$s[this.model];for(let a=0;a<t;a++)e[s[a]]=this.color[a];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 ea([...this.color.map(ta(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new ea([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:sa("rgb",0,aa(255)),green:sa("rgb",1,aa(255)),blue:sa("rgb",2,aa(255)),hue:sa(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:sa("hsl",1,aa(100)),lightness:sa("hsl",2,aa(100)),saturationv:sa("hsv",1,aa(100)),value:sa("hsv",2,aa(100)),chroma:sa("hcg",1,aa(100)),gray:sa("hcg",2,aa(100)),white:sa("hwb",1,aa(100)),wblack:sa("hwb",2,aa(100)),cyan:sa("cmyk",0,aa(100)),magenta:sa("cmyk",1,aa(100)),yellow:sa("cmyk",2,aa(100)),black:sa("cmyk",3,aa(100)),x:sa("xyz",0,aa(95.047)),y:sa("xyz",1,aa(100)),z:sa("xyz",2,aa(108.833)),l:sa("lab",0,aa(100)),a:sa("lab",1),b:sa("lab",2),keyword(e){return void 0!==e?new ea(e):$s[this.model].keyword(this.color)},hex(e){return void 0!==e?new ea(e):Zs.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new ea(e);const t=this.rgb().round().color;let s=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===s.length&&(s="0"+s),Zs.to.hex(t)+s},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[s,a]of e.entries()){const e=a/255;t[s]=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(),s=e.luminosity();return t>s?(t+.05)/(s+.05):(s+.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 ea.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 s=t.color[0];return s=(s+e)%360,s=s<0?360+s:s,t.color[0]=s,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 s=e.rgb(),a=this.rgb(),i=void 0===t?.5:t,r=2*i-1,n=s.alpha()-a.alpha(),o=((r*n==-1?r:(r+n)/(1+r*n))+1)/2,l=1-o;return ea.rgb(o*s.red()+l*a.red(),o*s.green()+l*a.green(),o*s.blue()+l*a.blue(),s.alpha()*i+a.alpha()*(1-i))}};for(const e of Object.keys($s)){if(Xs.includes(e))continue;const{channels:t}=$s[e];ea.prototype[e]=function(...t){return this.model===e?new ea(this):t.length>0?new ea(t,e):new ea([...(s=$s[this.model][e].raw(this.color),Array.isArray(s)?s:[s]),this.valpha],e);var s},ea[e]=function(...s){let a=s[0];return"number"==typeof a&&(a=ia(s,t)),new ea(a,e)}}function ta(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function sa(e,t,s){e=Array.isArray(e)?e:[e];for(const a of e)(Js[a]||(Js[a]=[]))[t]=s;return e=e[0],function(a){let i;return void 0!==a?(s&&(a=s(a)),i=this[e](),i.color[t]=a,i):(i=this[e]().color[t],s&&(i=s(i)),i)}}function aa(e){return function(t){return Math.max(0,Math.min(e,t))}}function ia(e,t){for(let s=0;s<t;s++)"number"!=typeof e[s]&&(e[s]=0);return e}var ra=gs(ea);const na=(e,t)=>ra(e).darken(t).rgb().string(),oa=Object.assign({inherit:"inherit",transparent:"transparent",black:Es.colors.black,white:Es.colors.white,bodyBackground:Es.colors.white,darkBodyBackground:Es.colors.primary,bodyText:Es.colors.primary,bodyTextInverted:Es.colors.primary50,darkBodyText:Es.colors.primary50,cardBackground:Es.colors.white,cardText:Es.colors.primary900,darkCardBackground:Es.colors.primary900,darkCardText:Es.colors.white,display:Es.colors.black,darkDisplay:Es.colors.white},Object.assign({},...Object.keys(Es.colors).map((e=>{const t=Es.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,ra(s).lighten(a).rgb().string()),darker:na(t,.1)}};var s,a})))),la=Object.assign(Object.assign({},Es),{colors:Object.assign(Object.assign({},Es.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({},Es.borderRadius),fontWeight:Object.assign(Object.assign({},Es.fontWeight),{light:"300",normal:"400",bold:"700"})}),da=(e,t)=>ra(e).darken(t).rgb().string(),ca=Object.assign(Object.assign(Object.assign({},oa),{bodyBackground:la.colors.primary600,darkBodyBackground:la.colors.primary900,cardBackground:la.colors.white,cardText:la.colors.primary900,darkCardBackground:la.colors.primary900,darkCardText:la.colors.white,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(la.colors).map((e=>{const t=la.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,ra(s).lighten(a).rgb().string()),darker:da(t,.1)}};var s,a})))),ua=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"]}),ma=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),pa={colors:Object.assign({},ca),fontFamily:Object.assign({},ua),fontSize:Object.assign({},null==la?void 0:la.fontSize),fontWeight:Object.assign({},null==la?void 0:la.fontWeight),buttons:Object.assign({},ma),screens:Object.assign({},null==la?void 0:la.screens),borderRadius:Object.assign({},null==la?void 0:la.borderRadius),spacing:Object.assign({},null==la?void 0:la.spacing),extend:Object.assign({},null==la?void 0:la.extend)};exports.Accordion=bt,exports.AccountScreen=Xt,exports.AmplifyContext=$t,exports.AmplifyProvider=({children:s,value:a})=>(t.useEffect((()=>{var e,t,s,i,r,n,o,l,d,c,u,p,x,h,v,f,N,E;a.config&&m.Amplify.configure({Auth:{region:null===(e=null==a?void 0:a.config)||void 0===e?void 0:e.region,userPoolId:null===(t=null==a?void 0:a.config)||void 0===t?void 0:t.userPoolId,userPoolWebClientId:null===(s=null==a?void 0:a.config)||void 0===s?void 0:s.userPoolWebClientId,signUpVerificationMethod:(null===(i=null==a?void 0:a.config)||void 0===i?void 0:i.signUpVerificationMethod)||"code",oauth:{domain:null===(n=null===(r=null==a?void 0:a.config)||void 0===r?void 0:r.oauth)||void 0===n?void 0:n.domain,scope:(null===(l=null===(o=null==a?void 0:a.config)||void 0===o?void 0:o.oauth)||void 0===l?void 0:l.scope)||["email","profile","openid","aws.cognito.signin.user.admin"],redirectSignIn:null===(c=null===(d=null==a?void 0:a.config)||void 0===d?void 0:d.oauth)||void 0===c?void 0:c.redirectSignIn,redirectSignOut:null===(p=null===(u=null==a?void 0:a.config)||void 0===u?void 0:u.oauth)||void 0===p?void 0:p.redirectSignOut,responseType:(null===(h=null===(x=null==a?void 0:a.config)||void 0===x?void 0:x.oauth)||void 0===h?void 0:h.responseType)||"code"},cookieStorage:{domain:null===(f=null===(v=null==a?void 0:a.config)||void 0===v?void 0:v.cookieStorage)||void 0===f?void 0:f.domain,secure:"production"===process.env.NODE_ENV||(null===(E=null===(N=null==a?void 0:a.config)||void 0===N?void 0:N.cookieStorage)||void 0===E?void 0:E.secure)}}})}),[a.config]),e.jsx($t.Provider,{value:a,children:s})),exports.AnimationCounter=C,exports.AnimationSet1=$e,exports.AppContext=ye,exports.AppProvider=({children:t,value:s})=>e.jsx(ye.Provider,{value:s,children:t}),exports.AuthScreen=Qt,exports.Authenticator=ot,exports.Avatar=ue,exports.Blockquote=O,exports.Button=D,exports.ButtonGroup=me,exports.Card=Me,exports.CardGrid=Nt,exports.CardGridScreen=Jt,exports.Carousel=ct,exports.CatalogueScreen=es,exports.ChallengeLibraryScreen=ts,exports.ChallengeScreen=is,exports.Checkbox=M,exports.Chip=W,exports.Container=Ke,exports.ContentPageLayout=Ct,exports.ContentRowsLayout=Ot,exports.ContentScreen=rs,exports.Copy=V,exports.DashboardScreen=ns,exports.DisplayHeading=Ue,exports.FAQScreen=os,exports.FileUpload=z,exports.Footer=gt,exports.ForgotPasswordForm=nt,exports.Form=Fe,exports.FormField=He,exports.FormSelect=Ge,exports.Header=Et,exports.Heading=$,exports.Hero=Ze,exports.HomeScreen=ls,exports.Hr=X,exports.HtmlContent=fe,exports.Icon=y,exports.Image=Q,exports.InvalidDurationError=be,exports.Label=J,exports.Link=U,exports.List=se,exports.ListItem=ie,exports.Loader=w,exports.LoginForm=it,exports.Logo=ae,exports.Menu=ze,exports.MenuScreen=ds,exports.MultiCheckboxFacet=zt,exports.MultipleFractionsError=Ie,exports.NotFoundScreen=cs,exports.Notice=re,exports.OTPInput=_t,exports.PanelCards=mt,exports.PanelFeature=pt,exports.PanelHero=ht,exports.PanelProduct=vt,exports.PanelVideo=ft,exports.PasswordResetAuthScreen=ms,exports.PasswordResetScreen=us,exports.ProfileForm=Zt,exports.ProfileScreen=ps,exports.Radio=ne,exports.RegisterForm=rt,exports.ResetPasswordAuthForm=Kt,exports.ResetPasswordForm=qt,exports.STRINGS_EN=ce,exports.ScheduleScreen=vs,exports.Screen=St,exports.Search=Yt,exports.Share=Ye,exports.SingleLinksFacet=Wt,exports.SingleSelectFacet=Vt,exports.SubscriptionManager=Tt,exports.SubscriptionScreen=fs,exports.Switch=oe,exports.Tabs=Ve,exports.TextInput=de,exports.ThemeContext=Re,exports.ThemeProvider=({children:t,theme:s})=>e.jsx(Re.Provider,{value:s,children:t}),exports.Video=xt,exports.VisitUs=We,exports.WorkoutScreen=Ns,exports.defaultTheme=_e,exports.formatDuration=je,exports.getRandomImageFromArray=function(e){var t;if(e&&0!==e.length)return null===(t=null==e?void 0:e.map((e=>e)))||void 0===t?void 0:t[Math.floor(Math.random()*(null==e?void 0:e.map((e=>e)).length))]},exports.parseDuration=function(e,t=Ne){const s=Se.exec(e);if(!s||!s.groups)throw be;let a=!0,i=0;const r={};for(const{unit:e}of Ee)if(s.groups[e]&&(a=!1,r[e]=Ae(s.groups[e]),!t.allowMultipleFractions&&!Number.isInteger(r[e])&&(i++,i>1)))throw Ie;if(a)throw be;const n=r;return s.groups.negative&&(n.negative=!0),n},exports.theme=pa,exports.truncateString=Te,exports.useLanguage=Oe,exports.useTheme=function(){return t.useContext(Re)};
|
|
16
|
+
function P(e,t){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(s[a[i]]=e[a[i]])}return s}function k(e,t,s,a){return new(s||(s=Promise))((function(t,i){function r(e){try{o(a.next(e))}catch(e){i(e)}}function n(e){try{o(a.throw(e))}catch(e){i(e)}}function o(e){var a;e.done?t(e.value):(a=e.value,a instanceof s?a:new s((function(e){e(a)}))).then(r,n)}o((a=a.apply(e,[])).next())}))}D.displayName="Button";const M=t.forwardRef((function(t,a){var{id:i,label:r,required:n,className:o,disabled:l}=t,d=P(t,["id","label","required","className","disabled"]);return e.jsxs("div",{"data-testid":"Checkbox",className:s("flex items-center",o),children:[e.jsxs("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e.jsx("input",Object.assign({id:i,ref:a,disabled:l,type:"checkbox",className:"form-item checkbox m-0 appearance-none peer h-full w-full shrink-0 focus:ring-2",required:n},d)),e.jsx("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.jsx(y,{name:"mdi:check-bold",size:12})})]}),r&&e.jsx("label",{className:"label pl-2 leading-none text-sm text-bodyText dark:text-darkBodyText",htmlFor:i,children:r})]})}));M.displayName="Checkbox";const U=({href:a,children:i,onClick:r=(()=>{}),history:n,target:o,id:l,testID:d,className:c,prefetch:u,hideExternalIcon:m=!1})=>{const p=s("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",c);if(!m&&a&&a.startsWith("http"))return e.jsxs("span",{children:[e.jsx("a",{"data-testid":d||l||"Link",className:s(p),href:a,target:"_blank",rel:"noopener noreferrer",children:i}),e.jsx(y,{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 t.createElement(e,{href:a||"#",onClick:r,"data-testid":d||l||"Link",className:p,target:o||"_self",prefetch:u||!1},i)}catch(t){const s=e=>{r?r(e):!0!==e.defaultPrevented&&n&&a&&(e.preventDefault(),n.push(a))};return e.jsx("a",{"data-testid":d||l||"Link",className:p,href:a,onClick:s,target:o,children:i})}};var F,B,G,H,Y;U.displayName="Link",exports.COPY_ALIGN=void 0,(F=exports.COPY_ALIGN||(exports.COPY_ALIGN={})).LEFT="left",F.CENTER="center",F.RIGHT="right",F.JUSTIFY="justify",F.NOWRAP="nowrap",exports.COPY_TRANSFORM=void 0,(B=exports.COPY_TRANSFORM||(exports.COPY_TRANSFORM={})).LOWERCASE="lowercase",B.UPPERCASE="uppercase",B.CAPITALIZE="capitalize",exports.COPY_CONTEXTUAL=void 0,(G=exports.COPY_CONTEXTUAL||(exports.COPY_CONTEXTUAL={})).INVERTED="inverted",G.MUTED="muted",exports.COPY_SIZE=void 0,(H=exports.COPY_SIZE||(exports.COPY_SIZE={})).SMALL="small",H.MEDIUM="medium",H.LARGE="large",H.INTRO="intro",exports.COPY_TAG=void 0,(Y=exports.COPY_TAG||(exports.COPY_TAG={})).P="p",Y.SPAN="span",Y.DIV="div",Y.SMALL="small";const W=({children:t,as:a=exports.COPY_TAG.P,size:i,bold:n,align:o,transform:l,underlined:d,id:c,className:u,testID:m})=>{const p=s({[`text-${o}`]:o},{"font-bold":n},{"text-base mb-3 mt-0":"p"===a},{"text-sm":"small"===a},{"text-sm":"small"===i},{"text-base":"medium"===i},{"text-lg":"large"===i},{"text-2xl":"intro"===i},{underline:d},l,u);return e.jsx(a,{"data-testid":m||c||"Copy",className:r.twMerge(p),children:t})};W.displayName="Copy";const V=({testID:a,text:i,outline:n,rounded:o,variant:l,size:d="medium",icon:c,iconFirst:u,onClick:m})=>{const p=t.useMemo((()=>{switch(d){case"small":return{iconSize:16,copySize:exports.COPY_SIZE.SMALL};case"medium":default:return{iconSize:20,copySize:exports.COPY_SIZE.MEDIUM};case"large":return{iconSize:28,copySize:exports.COPY_SIZE.LARGE}}}),[d]),x=r.twMerge(s("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":n},{"rounded-full":o},{"flex-row-reverse":u},{"bg-primary text-white":"primary"===l},{"bg-secondary text-white":"secondary"===l},{"bg-tertiary text-white":"tertiary"===l},{"bg-info text-white":"info"===l},{"bg-success text-white":"success"===l},{"bg-warning text-white":"warning"===l},{"bg-error text-white":"error"===l},{"py-1 px-3":"small"===d},{"py-2 px-4":"medium"===d},{"py-3 px-6":"large"===d}));return m&&"function"==typeof m?e.jsxs(U,{"data-testid":a||"Chip",className:x,onClick:m,children:[e.jsx(W,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),c&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(y,{name:c,size:p.iconSize})})]}):e.jsxs("div",{"data-testid":a||"Chip",className:x,children:[e.jsx(W,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),c&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(y,{name:c,size:p.iconSize})})]})};V.displayName="Chip";const z=t.forwardRef((function(t,a){var{id:i,name:r,required:n,disabled:o,className:l,onChangeCallback:d,onChange:c}=t,u=P(t,["id","name","required","disabled","className","onChangeCallback","onChange"]);return e.jsx("div",{"data-testid":"FileUpload",className:l,children:e.jsx("input",Object.assign({ref:a,className:s("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":r,type:"file",disabled:o,required:n,name:r,id:i,onChange:e=>{d&&"function"==typeof d&&d(e),c&&"function"==typeof c&&c({target:{value:e.target.value,name:r}})}},u))})}));var q,K,Z;z.displayName="FileUpload",exports.HEADING_TAGS=void 0,(q=exports.HEADING_TAGS||(exports.HEADING_TAGS={})).H1="h1",q.H2="h2",q.H3="h3",q.H4="h4",q.H5="h5",exports.HEADING_ALIGN=void 0,(K=exports.HEADING_ALIGN||(exports.HEADING_ALIGN={})).LEFT="left",K.CENTER="center",K.RIGHT="right",K.JUSTIFY="justify",K.NOWRAP="nowrap",exports.HEADING_TRANSFORM=void 0,(Z=exports.HEADING_TRANSFORM||(exports.HEADING_TRANSFORM={})).LOWERCASE="lowercase",Z.UPPERCASE="uppercase",Z.CAPITALIZE="capitalize",Z.NORMAL_CASE="normal-case";const $=({children:t,tag:a=exports.HEADING_TAGS.H2,transform:i,align:r,id:n,testID:o,flush:l,className:d,singleLine:c,bold:u=!0})=>{const m=(()=>{switch(a){case"h1":return"text-3xl md:text-4xl lg:text-5xl";case"h2":return"text-3xl md:text-4xl lg:text-4xl";case"h3":return"text-xl md:text-2xl lg:text-2xl";case"h4":return"text-lg md:text-lg lg:text-xl";case"h5":return"text-base md:text-base lg:text-lg";default:return"text-2xl md:text-2xl lg:text-4xl"}})(),p=a,x=s(`m-0 p-0 font-heading ${m}`,{"font-bold":u},{[`text-${r}`]:r},{"mb-2":!l},{"m-0":l},{"whitespace-nowrap text-ellipsis overflow-hidden":c},i,d);return e.jsx(p,{"data-testid":o||n||"Heading",className:x,children:t})};$.displayName="Heading";const X=({size:t="small"})=>e.jsx("hr",{className:s("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})});X.displayName="Hr";const Q=a=>{var{src:i,alt:n,title:o,caption:l,figure:d=!1,onLoad:c,id:u,className:m,sizes:p="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:x}=a,h=P(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 s=!h.width,a=s?{sizes:p}:{};return t.createElement(e,Object.assign(Object.assign({src:i,alt:n,title:o,fill:s,onLoad:c,className:m},a),h))}catch(t){const a=s("m-0"),p=r.twMerge(s("w-full h-full",m));return d||l?e.jsxs("figure",{"data-testid":x||u||"Image",className:a,children:[e.jsx("img",{onLoad:c,src:i,alt:n,title:o,className:p}),l&&e.jsx("figcaption",{children:l})]}):e.jsx("img",{"data-testid":x||u||"Image",onLoad:c,src:i,alt:n,title:o,className:p})}};Q.displayName="Image";const J=({children:t,id:a,transform:i,className:n})=>e.jsx("label",{"data-testid":"Label",className:r.twMerge(s("label mb-2 text-bodyText dark:text-darkBodyText",i,n)),htmlFor:a,children:t});var ee,te;J.displayName="Label",exports.Variants=void 0,(ee=exports.Variants||(exports.Variants={})).UNSTYLED="unstyled",ee.INLINE="inline",ee.SMALL="small",ee.LARGE="large",exports.ListTag=void 0,(te=exports.ListTag||(exports.ListTag={})).OL="ol",te.UL="ul",te.DL="dl",te.DIV="div",te.DT="dt",te.DD="dd",te.LI="li";const se=({variants:t,children:a,as:i=exports.ListTag.UL,id:r,testID:n,className:o})=>{const l=t?t.map((e=>`list--${e}`)):null,d=i;return e.jsx(d,{"data-testid":n||r||"List",className:s(l,o),children:a})};se.displayName="List";const ae=({testID:t,logo:a,className:i,aspectRatioClass:r="aspect-[1/1]"})=>e.jsx("div",{"data-testid":t||"Logo",className:s("relative w-full",r,i),children:e.jsx(Q,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});ae.displayName="Logo";const ie=({onClick:t,title:a,icon:i,children:r,as:n="li",id:o,testID:l,className:d})=>e.jsxs(n,{"data-testid":l||o||"ListItem",className:s({"list-item":"div"!==n},d),children:[t&&e.jsxs(D,{variant:exports.BTN_VARIANTS.LINK,onClick:t,children:[e.jsxs("div",{className:"",children:[i&&e.jsx("div",{children:e.jsx(y,{name:i,size:24})}),a&&e.jsx("div",{children:e.jsx($,{flush:!0,tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),r&&e.jsx("div",{children:r})]}),e.jsx("div",{children:e.jsx(y,{name:"mdi:chevron-right",size:24})})]}),!t&&e.jsx("div",{className:"",children:r&&e.jsx("div",{children:r})})]});ie.displayName="ListItem";const re=({id:t,testID:a,title:i,text:r,icon:n,type:o,onCloseCallback:l,onClickCallback:d,actionText:c})=>{const u=s("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.jsx("div",{"data-testid":a||t||"Notice",className:u,children:e.jsxs("div",{className:"flex gap-2",children:[n&&e.jsx("div",{className:"mr-2",children:e.jsx(y,{name:n})}),e.jsxs("div",{children:[i&&e.jsx($,{tag:exports.HEADING_TAGS.H3,children:i}),e.jsx(W,{className:"mb-0",children:r})]}),d&&c&&e.jsx("div",{className:"ml-auto flex items-end",children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:d,"aria-label":"Action",size:exports.BTN_SIZES.SMALL,children:c})}),l&&e.jsx("div",{className:"absolute top-2 right-4",children:e.jsx(D,{variant:exports.BTN_VARIANTS.LINK,icon:"mdi:close",onClick:l,"aria-label":"Close"})})]})})};re.displayName="Notice";const ne=t.forwardRef((function(t,a){var{name:i,required:r,className:n,options:o}=t,l=P(t,["name","required","className","options"]);return e.jsx("div",{"data-testid":"Radio",className:s("flex items-center",n),children:e.jsx("div",{className:s("flex flex-col gap-2",n),children:null==o?void 0:o.map((t=>{var s;const n=(null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.toString())||void 0;return e.jsxs("div",{className:"flex items-center relative",children:[e.jsxs("div",{className:"relative flex items-center",children:[e.jsx("input",Object.assign({ref:a,name:i,type:"radio",required:r,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4"},l,{id:n,value:n})),e.jsx("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.jsx(y,{name:"mdi:circle",size:12})})]}),e.jsx("label",{className:"label pl-2 leading-none",htmlFor:n,children:t.label})]},n)}))})})}));ne.displayName="Radio";const oe=t.forwardRef((function(t,a){var{id:i,name:r,required:n,disabled:o,className:l}=t,d=P(t,["id","name","required","disabled","className"]);return e.jsxs("label",{"data-testid":"Switch",className:s("inline-flex items-center cursor-pointer",l),children:[e.jsx("input",Object.assign({ref:a,id:i,name:r,type:"checkbox",value:"",className:"sr-only peer",disabled:o,required:n},d)),e.jsx("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 le;oe.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"}(le||(le={}));const de=t.forwardRef((function(a,i){var{type:r=le.TEXT,required:n=!1,className:o,onChange:l,placeholder:d,icon:c,disabled:u=!1,name:m,autoComplete:p}=a,x=P(a,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);t.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const h="date"===r?"dd/mm/yyyy".toUpperCase():d;return r===le.TEXTAREA?e.jsx("div",{"data-testid":"TextInput",className:"relative",children:e.jsx("textarea",Object.assign({ref:i,id:m,autoComplete:m,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,rows:4,className:s("form-item text-input resize-none",o)},x))}):e.jsxs("div",{"data-testid":"TextInput",className:"relative",children:[c&&e.jsx("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e.jsx(y,{name:c})}),e.jsx("input",Object.assign({ref:i,id:m,type:r,autoComplete:p,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,className:s("form-item text-input",{"pl-12":c},o)},x))]})}));de.displayName="TextInput";const ce={GLOBAL:{SCREENS:{ACCOUNT:{TITLE:"Account"},CATALOGUE_LIST:{TITLE:"Catalogue"},CHALLENGE:{TITLE:"Challenge",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",CLICK_TO_ENTER:"Click the buy button below to enter the challenge.",PAYMENT_NOTE:"Please note we automatically take payment from the registered payment option saved on your profile."},CHALLENGES_LIST:{TITLE:"Challenges"},DASHBOARD:{TITLE:"Dashboard"},LIVE_SCHEDULE:{TITLE:"Live"},LOGIN:{TITLE:"Login"},REGISTER:{TITLE:"Register"},PROFILE:{TITLE:"Profile"},SUBSCRIPTION:{TITLE:"Subscription"},WORKOUT:{TITLE:"Workout"},FORGOT_PASSWORD:{TITLE:"Forgot Password"},RESET_PASSWORD:{TITLE:"Reset Password"},HOME:{TITLE:"Home"},CATALOGUE:{TITLE:"Catalogue"},CHALLENGES:{TITLE:"Challenges"},LIVE:{TITLE:"Live"},SCHEDULE:{TITLE:"Schedule"},SETTINGS:{TITLE:"Settings"},HELP:{TITLE:"Help"},LEGAL_INFO:{TITLE:"Legal & Information"},CONTENT:{TITLE:"Content"},FAVOURITES:{TITLE:"Favourites"}}},FORMS:{LOGIN_FORM:{TITLE:"Login",SUBMIT:"Login",FORGOT_PASSWORD:"Forgot password?",REGISTER:"Register",EMAIL:"Email",PASSWORD:"Password"},REGISTER_FORM:{TITLE:"Register",SUBMIT:"Register",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},FORGOT_PASSWORD_FORM:{TITLE:"Forgot Password",SUBMIT:"Send Reset Email",EMAIL:"Email"},RESET_PASSWORD_FORM:{TITLE:"Reset Password",SUBMIT:"Reset Password",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm Password"},RESET_PASSWORD_FORM_AUTH:{TITLE:"Reset Password",SUBMIT:"Reset Password",CURRENT_PASSWORD:"Current Password",NEW_PASSWORD:"New Password"},PROFILE_FORM:{TITLE:"Profile",SUBMIT:"Save",FIRST_NAME:"First Name",LAST_NAME:"Last Name",AVATAR:"Avatar",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},ACCOUNT:{SUBMIT_LABEL:"Update",EMAIL_LABEL:"Email",PASSWORD_LABEL:"Password",FIRST_NAME_LABEL:"First name",LAST_NAME_LABEL:"Last name",DOB_LABEL:"Date of birth",TERMS_AND_CONDITIONS_LABEL:"Terms & Conditions",TERMS_AND_CONDITIONS_DESCRIPTION:"Read our terms & conditions from the link in the footer. ",CONTACT_PREFERENCES_LABEL:"Yes/No",CONTACT_PREFERENCES_DESCRIPTION:"Happy for us to email you about the latest features, information and offers?",SKIP_LABEL:"Skip step",SUCCESS_MESSAGE:"Account updated",SUBSCRIPTION_STATUS_LABEL:"Subscription status",SUBSCRIPTION_PLAN_LABEL:"Plan",SUBSCRIPTION_PRICE_LABEL:"Price (£)",SUBSCRIPTION_BILLING_DATE_LABEL:"Next Billing Date",SUBSCRIPTION_PAYMENT_TYPE_LABEL:"Card Type",SUBSCRIPTION_CARD_NUMBER_LABEL:"Card Number",SUBSCRIPTION_CARD_EXPIRY_LABEL:"Card Expiry Date",SUBSCRIPTION_LAST_UPDATED_LABEL:"Last Updated"}},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",PLEASE_WAIT:"Please wait...",CONTINUE_WITH_SOCIAL:"Continue with Social Account",SINGLE_SIGNON:"Single Sign-On",LOGIN_WITH_GOOGLE:"Login with Google",LOGIN_WITH_APPLE:"Login with Apple",SIGNUP_WITH_GOOGLE:"Signup with Google",SIGNUP_WITH_APPLE:"Signup with Apple",BACK_TO_LOGIN:"Back to Login",FORGOT_PASSWORD:"Forgot Password?",SUBMIT:"Submit",LOGIN:"Login",LOGOUT:"Logout",REGISTER:"Register",SOCIAL:{GOOGLE:"Google",FACEBOOK:"Facebook",TWITTER:"Twitter",EMAIL:"Email"},READ_MORE:"Read more",READ_LESS:"Show less",CLOSE:"Close",BACK:"Back",SHARE:"Share",DOWNLOAD:"Download",FORMAT_HOUR:"{hour}hr",FORMAT_HOURS:"{hours}hrs",FORMAT_MINUTE:"{minute}min",FORMAT_MINUTES:"{minutes}mins",LOAD_MORE_LABEL:"Load more",NO_MORE_RESULTS:"That's all folks.",UNKNOWN_ERROR_TITLE:"Unknown error",UNKNOWN_ERROR_MESSAGE:"Sorry, something bad happened! Please try again.",CONTENT_SORT_TITLE:"Sort by",CONTENT_FILTERS_TITLE:"Filters",CONTENT_FILTERS_LABEL:"Filter",CLOSE_FILTERS_LABEL:"Done",CLEAR_ALL_FILTERS_LABEL:"Clear All",CLEAR_FILTERS_LABEL:"Clear",MORE_ITEMS_LABEL:"Next items",PREVIOUS_ITEMS_LABEL:"Previous items",CHOOSE_BTN_LABEL:"Choose",ADD_BTN_LABEL:"Add",SEND_BTN_LABEL:"Send",CANCEL_BTN_LABEL:"Cancel",DONE_BTN_LABEL:"Done",EDIT_BTN_LABEL:"Edit",CHANGE_BTN_LABEL:"Change",REMOVE_BTN_LABEL:"Remove",MESSAGE_PROMPT_BTN_LABEL:"Add one",SELECT_FILE_BTN_LABEL:"Select file",TOO_MANY_REQUESTS_MESSAGE:"Too many requests. Please try again later.",COPYRIGHT:"Copyright",ALL_RIGHTS_RESERVED:"All rights reserved",APP_CAMERA_PERMISSION:"Camera permission",APP_CAMERA_PERMISSION_DENIED:"Camera permission denied",APP_NEED_ACCESS_CAMERA:"This app needs access to your camera",ASK_ME_LATER:"Ask me later",PRIVACY_POLICY:"Privacy Policy",CREATE_ACCOUNT:"Create account",COMPLETE:"Complete",EDIT:"Edit",PREV:"Prev",NEXT:"Next",GET_STARTED:"Get started",START_SEARCH:"Start search",READ_MORE_LABEL:"Read more",READ_LESS_LABEL:"Show less",CLOSE_LABEL:"Close",CLOSE_HINT:"Close this entry",BACK_LABEL:"Back",SHARE_LABEL:"Share",VIEW_MORE_LABEL:"View more",VIEW_LESS_LABEL:"View less",GOT_IT:"Got it",MORE:"More",MORE_DETAILS:"More details",MORE_INFO:"More info",LEARN_MORE:"Learn more",LOW:"Low",MEDIUM:"Medium",HIGH:"High",VERY_HIGH:"Very high",VERY_LOW:"Very low",GOOD:"Good",BAD:"Bad",STRONG:"Strong",SAVE_CONTINUE:"Save and Continue",SAVE_FINISH:"Save and Finish",FINISH:"Finish",SKIP:"Skip",ADD:"Add",ADDED:"Added",ADD_ANOTHER:"Add another",CREATE_PROFILE:"Create profile",CONTINUE_NO_ACCOUNT:"Continue without account",REQUIRED_MISSING:"Required field missing",RESET:"Reset",APPLY_FILTER:"Apply filter",START:"Start",END:"End",HELP:"Help",WHAT_IS_THIS:"What is this?",CARD_VIEW:"Card view",LIST_VIEW:"List view",FILTER:"Filter",NO_RESULTS:"No results",CONTINUE:"Continue",CONTINUE_BROWSING:"Continue browsing",VIEW:"View",INFORMATION:"Information",DELETE_HINT:"Delete this entry",VISIT_WEBSITE:"Visit website",TAKE_AGAIN:"Take again",ADD_MORE:"Add more",REQUEST_SENT:"Request sent",CUSTOMISE:"Customize",SET_LOCATION:"Set location",COUNTY_NOT_FOUND:"County not found",NO_RESOURCES_FOUND:"No resources found",PATHWAY:"Pathway",CLICK_TO_NAVIGATE:"Click to navigate",INPUT_FIELD:"Input field",GO_BACK:"Go back",NAVIGATES_PREV:"Navigates to the previous screen",REMOVE:"Remove",NO_INTERNET_CONNECTION:"No internet connection",CHECK_CONNECTION:"Please check your internet connection and try again.",EXPLORE:"Explore",NO_ACCOUNT:"No account?",START_WORKOUT:"Start workout",START_MEDIA:"Start media",LAUNCH:"Launch",PUBLISHED:"Published",CREATED:"Created",UPDATED:"Updated",DURATION:"Duration",LEVEL:"Level",SECTION:"Section",DOWNLOADING:"Downloading",DOWNLOAD_COMPLETE:"Download complete",DOWNLOAD_FAILED:"Download failed",DOWNLOAD_CANCELLED:"Download cancelled",DOWNLOADING_MEDIA:"Downloading media",DOWNLOADING_MEDIA_FAILED:"Downloading media failed",DOWNLOADING_MEDIA_CANCELLED:"Downloading media cancelled",DOWNLOADING_MEDIA_COMPLETE:"Downloading media complete",DOWNLOADING_MEDIA_CANCEL:"Cancel download",DOWNLOADING_MEDIA_RETRY:"Retry download",DOWNLOADING_MEDIA_PAUSE:"Pause download",DOWNLOADING_MEDIA_RESUME:"Resume download",DOWNLOADING_MEDIA_CONTINUE:"Continue download",DOWNLOADING_MEDIA_START:"Start download",DOWNLOADING_MEDIA_CONFIRM:"Confirm download",DOWNLOAD_REMOVED:"Download removed",DOWNLOAD_REMOVE_ERROR:"Error removing download",CATEGORY:"Category",TYPE:"Type",WORKOUT_TYPE:"Workout type",MEDIA_TYPE:"Media type",WORKOUT:"Workout",MEDIA:"Media",WORKOUTS:"Workouts",WORKOUT_CATEGORY:"Workout category",MEDIA_CATEGORY:"Media category",ADDED_LIKE:"Added like",REMOVED_LIKE:"Removed like",ADDED_FAVORITE:"Added favorite",REMOVED_FAVORITE:"Removed favorite",ADDED_BOOKMARK:"Added bookmark",REMOVED_BOOKMARK:"Removed bookmark",ADDED_WATCHLIST:"Added watchlist",REMOVED_WATCHLIST:"Removed watchlist",ADDED_PLAYLIST:"Added playlist",REMOVED_PLAYLIST:"Removed playlist",ADDED_SUBSCRIPTION:"Added subscription",REMOVED_SUBSCRIPTION:"Removed subscription",ADDED_FOLLOW:"Added follow",REMOVED_FOLLOW:"Removed follow",ADDED_FRIEND:"Added friend",REMOVED_FRIEND:"Removed friend",ADDED_CONNECTION:"Added connection",REMOVED_CONNECTION:"Removed connection",MARKED_COMPLETE:"Marked complete",MARKED_INCOMPLETE:"Marked incomplete",MUSIC_ENABLED:"Music enabled",MUSIC_DISABLED:"Music disabled",SHARED:"Shared",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",PURCHASE_TO_ACCESS:"Purchase to access",SHOW_FILTERS:"Show filters",HIDE_FILTERS:"Hide filters",THIS_WEEK:"This week",TODAYS_ITEMS:"Today's items",START_TRIAL_LABEL:"Start Free Trial",START_WORKOUTS_LABEL:"Start Workouts Now",UPDATE_LABEL:"Update now",SESSION_EXPIRED:"Session expired. Please log in.",NO_VALID_SUB:"No valid subscription found. Please subscribe or contact us if you believe this is an error.",SUBSCRIPTION_ERROR:"There's a problem with your account. No valid subscription found.",SUCCESS:"Success",UPLOAD_IMAGE:"Upload Image",UPLOAD_VIDEO:"Upload Video",UPLOAD_AUDIO:"Upload Audio",UPLOAD_DOCUMENT:"Upload Document",UPLOAD_MEDIA:"Upload Media",UPLOAD_MEDIA_FILE:"Upload Media File",UPLOAD_SUCCESS:"Upload successful",UPLOAD_FAILED:"Upload failed",UPLOADING:"Uploading",SHARE_DESCRIPTION:"Share this with your friends",SHARE_TITLE:"Share",ALREADY_RATED:"You have already rated this",RATE:"Rate",VERSION:"Version",APP_VERSION:"App Version",WELCOME:"Welcome",LATEST_WORKOUTS:"Latest Workouts",RECENTLY_VIEWED:"Recently Viewed",RECENTLY_ADDED:"Recently Added",RECENTLY_COMPLETED:"Recently Completed",WORKOUTS_LIKED:"Workouts Liked",WORKOUTS_FAVORITED:"Workouts Favorited",WORKOUTS_BOOKMARKED:"Workouts Bookmarked",WORKOUTS_COMPLETED:"Workouts Completed",WORKOUTS_DONE:"Workouts Done",LIKED:"Liked",FAVORITED:"Favorited",BOOKMARKED:"Bookmarked",COMPLETED:"Completed",DONE:"Done",STATS:"Stats",STATISTICS:"Statistics",ACTIVITY:"Activity",RECENT_ACTIVITY:"Recent Activity",NEWS:"News",UPDATES:"Updates",LATEST_NEWS:"Latest News",WHATS_NEW:"What's New",WHATS_NEWS:"What's News",GOOD_MORNING:"Good Morning",GOOD_AFTERNOON:"Good Afternoon",GOOD_EVENING:"Good Evening",NO_CLASS:"No class",RELATED:"Related",RELATED_WORKOUTS:"Related Workouts",RELATED_CHALLENGES:"Related Challenges",RELATED_VIDEOS:"Related Videos",RELATED_MEDIA:"Related Media",CHALLENGES_ENTERED:"Challenges Entered",UPGRADE_TO_PREMIUM_PLUS:"Upgrade to Premium+",UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE:"Upgrade to Premium+ for unlimited access to the live streamed classes",UPGRADE_TO_PREMIUM:"Upgrade to Premium",PUSH_NOTIFICATIONS:"Push Notifications",PUSH_NOTIFICATIONS_ENABLED:"Push notifications enabled",PUSH_NOTIFICATIONS_DISABLED:"Push notifications disabled",EMAIL_NOTIFICATIONS:"Email Notifications",EMAIL_NOTIFICATIONS_ENABLED:"Email notifications enabled",EMAIL_NOTIFICATIONS_DISABLED:"Email notifications disabled",SMS_NOTIFICATIONS:"SMS Notifications",SMS_NOTIFICATIONS_ENABLED:"SMS notifications enabled",SMS_NOTIFICATIONS_DISABLED:"SMS notifications disabled",NOTIFICATIONS:"Notifications",PUSH_NOTIFICATIONS_DESCRIPTION:"Receive push notifications for new content and updates",EMAIL_NOTIFICATIONS_DESCRIPTION:"Receive email notifications for new content and updates",SMS_NOTIFICATIONS_DESCRIPTION:"Receive SMS notifications for new content and updates",OPEN_SETTINGS:"Open settings",NOTIFICATION_SETTINGS:"Notification settings",NOTIFICATION_SETTINGS_DESCRIPTION:"Manage your notification settings",CAMERA_ACCESS:"Camera access",CAMERA_PERMISSION_DENIED:"Camera permission denied",CAMERA_PERMISSION_REQUIRED:"Camera permission required",CAMERA_PERMISSION_DESCRIPTION:"Allow access to your camera to take a profile picture and personalize your account",DISABLE_PERMISSION_IN_SETTINGS:"You can disable in main system settings",DARK_MODE:"Dark mode",LIGHT_MODE:"Light mode",SYSTEM_MODE:"System mode",DARK_MODE_ENABLED:"Dark mode enabled",LIGHT_MODE_ENABLED:"Light mode enabled",SYSTEM_MODE_ENABLED:"System mode enabled",DARK_MODE_DESCRIPTION:"Enable dark mode for better viewing experience",LIGHT_MODE_DESCRIPTION:"Enable light mode for better viewing experience",SYSTEM_MODE_DESCRIPTION:"Enable system mode for better viewing experience",REQUEST_INFO:"Request info",REQUEST_INFORMATION:"Request information",GET_INFO:"Get info",GET_IN_TOUCH:"Get in touch",CONTACT_US:"Contact us",ERROR:"Error",LAST_UPDATED:"Last updated",NO_UPDATES:"No updates",RATED:"Rated",RATE_SUCCESS:"Rating successful",RATE_FAILED:"Rating failed",RATE_CANCELLED:"Rating cancelled",QUESTION:"Question",QUESTION_ABOUT_SUBSCRIPTION:"Question about subscription",LOGOUT_SUCCESS:"Logout successful",NO_ACTIVE_SUBSCRIPTION:"No active subscription",SUBSCRIPTION_EXPIRED:"Subscription expired",NO_SUBSCRIPTION_DETAILS:"You currently do not have an active subscription. If you believe this is an error, please contact our support team for assistance.",PASSWORD_RESET_SUCCESS:"Password reset successful",REGISTRATION_SUCCESS:"Registration successful",REQUIRED_DATA_MISSING:"Required data missing",PASSWORD_EMAIL_SENT:"Password reset email sent",MISSING_QUERY_PARAMS:"Missing query parameters",CHALLENGE_ENTRY_SUCCESS:"You've successfully entered the challenge",RESET_PASSWORD:"Reset password",CURRENT_SUBSCRIPTION:"Current subscription",MANAGE_SUBSCRIPTION:"Manage subscription",CURRENT_PLAN:"Current plan",NEXT_BILLING_DATE:"Next billing date",END_DATE:"End date",SUBSCRIPTION_STATUS:"Subscription status",SUBSCRIPTION_PLAN:"Plan",SUBSCRIPTION_PRICE:"Price",BILLED_MONTHLY:"Billed monthly",ALL_SUBS_BILLED_MONTHLY:"All subscriptions are billed monthly",CHANGE_PLAN:"Change plan",PAUSE_SUBSCRIPTION:"Pause subscription",CONFIRM_TO_PAUSE:"Are you sure you want to pause your subscription?",CONFIRM_TO_SUBMIT:"Confirm to submit",CONFIRM_TO_CHANGE_PLAN:"Are you sure you want to change your plan?",ARE_YOU_SURE:"Are you sure?",ARE_YOU_SURE_TO_DO_THIS:"Are you sure you want to do this?",YES:"Yes",NO:"No",PAGE_NOT_FOUND:"Page not found",PAGE_NOT_FOUND_MESSAGE:"The page you are looking for does not exist",PAGE_NOT_FOUND_OOPS:"Oops! We cant find that page.",PAGE_NOT_FOUND_MESSAGE_OOPS:"It seems you’ve wandered off the beaten path. Don’t worry, it happens to the best of us!",WHAT_CAN_YOU_DO:"What can you do?",DOUBLE_CHECK_URL:"Double-check the URL for any typos",RETURN_TO_HOMEPAGE:"Return to our homepage",EXPLORE_SITE:"Explore our site map to find what you’re looking for.",STILL_NEED_HELP:"If you still need help, feel free to contact us. We’re here to help!",SUBSCRIPTON_UPDATED_SUCCESS:"Subscription updated successfully",SUBSCRIPTON_UPDATED_FAILED:"Subscription update failed",SELECT_A_PLAN:"Select a plan",CONFIRM_CHOICE:"Confirm choice",PROVIDE_PAYMENT_DETAILS:"Please provide your payment details",SUBSCRIPTON_TRIALING:"Your subscription is currently in trial",NEED_HELP_WITH_SUBSCRIPTION:"Need help with your subscription? eg. updating payment details",CONTACT_SUPPORT:"Contact support",REGISTRATION_EMAIL_SENT:"Registration email sent",VERIFY_EMAIL:"Registration email sent. Please verify your email account to login.",VERIFICATION_SUCCESS:"Verification successful",SUBSCRIBE:"Subscribe now",NO_DATA_FOUND:"No data found",NO_DATA:"No data",NO_WORKOUTS:"No workouts",NO_MEDIA:"No media",NO_CHALLENGES:"No challenges",NO_LIVE:"No live classes",NO_SCHEDULE:"No schedule",NO_CONTENT:"No content",PROMO_INFO:"Promo info",REQUEST_PROMO_INFO:"Request promotion info",LOGGING_OUT:"Logging out"},ERRORS:{GENERIC_ERROR:"An error occurred",COULD_NOT_FETCH_DATA:"Could not fetch data",COULD_NOT_UPDATE_DATA:"Could not update data",COULD_NOT_DELETE_DATA:"Could not delete data",COULD_NOT_UPDATE_LIKES:"Could not update likes",COULD_NOT_UPDATE_FAVORITES:"Could not update favorites",COULD_NOT_UPDATE_BOOKMARKS:"Could not update bookmarks",COULD_NOT_UPDATE_WATCHLIST:"Could not update watchlist",COULD_NOT_UPDATE_PLAYLIST:"Could not update playlist",COULD_NOT_UPDATE_SUBSCRIPTION:"Could not update subscription",COULD_NOT_UPDATE_FOLLOW:"Could not update follow",COULD_NOT_UPDATE_FRIEND:"Could not update friend",COULD_NOT_UPDATE_CONNECTION:"Could not update connection",ISSUE_CHECKING_PERMISSIONS:"Issue checking permissions",ISSUE_OPENING_SETTINGS:"Issue opening settings",USER_NOT_FOUND_MESSAGE:"User not found",INCORRECT_USERNAME_OR_PASSWORD_MESSAGE:"Incorrect username or password",SIGN_OUT_FAILED_MESSAGE:'"Error signing out. Please try again."',PASSWORD_RESET_FAILED:"Password reset failed",REGISTRATION_FAILED:"Registration failed",VERIFICATION_FAILED:"Verification failed",UNKNOWN_ERROR:"Unknown error"}},ue=({testID:s,name:a="avatar",isEditable:i=!0,initValue:r,fileUpdateCallback:n=(()=>k(void 0,0,void 0,(function*(){})))})=>{const[o,l]=t.useState(r);t.useEffect((()=>{r&&l(r)}),[r]);return e.jsxs("div",{"data-testid":s||'"Avatar"',className:"relative",children:[e.jsxs("div",{className:"relative w-[200px] aspect-1 rounded-full border border-solid overflow-hidden flex items-center justify-center m-4",children:[o&&e.jsxs(e.Fragment,{children:[e.jsx(Q,{src:o,alt:a,width:200,height:200}),i&&e.jsx("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e.jsx(D,{size:exports.BTN_SIZES.SMALL,rounded:!0,onClick:()=>{l(void 0)},children:ce.UI.REMOVE_BTN_LABEL})})]}),!o&&e.jsx(e.Fragment,{children:i&&e.jsx("div",{className:"absolute w-full h-full flex items-center justify-center",children:e.jsx(J,{id:a,className:"button cursor-pointer mb-0",children:e.jsx(W,{className:"mb-0",children:ce.UI.UPLOAD})})})})]}),e.jsx("input",{type:"file",id:a,name:a,className:"hidden",onChange:e=>{var t;const s=null===(t=e.target.files)||void 0===t?void 0:t[0];if(s){const e=URL.createObjectURL(s);l(e),a=s,k(void 0,0,void 0,(function*(){n&&"function"==typeof n&&n(a)}))}var a}})]})};ue.displayName="Avatar";const me=({testID:t,buttonData:a})=>e.jsx("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:null==a?void 0:a.map(((t,i)=>{const r=i>0&&i<a.length-1,n=0===i,o=i===a.length-1,l=s({"rounded-none":r},{"rounded-r":n,"rounded-l":o});return e.jsx("div",{children:e.jsx(D,Object.assign({},t,{className:l,children:t.children}))},t.id)}))});me.displayName="ButtonGroup";const pe="relative rounded-lg overflow-hidden shadow bg-cardBackground text-cardText dark:bg-darkCardBackground dark:text-darkCardText group",xe="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-cardBackground text-cardText dark:bg-darkCardBackground dark:text-darkCardText hover:bg-cardText hover:text-cardBackground group",he="transition duration-500 ease-in-out ",ve={replace(t){if("a"===t.name){const s=n.attributesToProps(t.attribs);return e.jsx(U,Object.assign({},s,{children:n.domToReact(t.children,ve)}))}if(t.attribs&&"p"===t.name){const s=n.attributesToProps(t.attribs);return e.jsx(W,Object.assign({},s,{children:n.domToReact(t.children,ve)}))}return t}},fe=({testID:t,data:a,align:i,className:r})=>e.jsx("span",{"data-testid":t||'"HtmlContent"',className:s("relative",{"text-right":"right"===i},{"text-center":"center"===i},{"text-left":"left"===i},r),children:n(a,ve)});fe.displayName="HtmlContent";const Ne={allowMultipleFractions:!0},Ee=[{unit:"years",symbol:"Y"},{unit:"months",symbol:"M"},{unit:"weeks",symbol:"W"},{unit:"days",symbol:"D"},{unit:"hours",symbol:"H"},{unit:"minutes",symbol:"M"},{unit:"seconds",symbol:"S"}],ge=(e,t)=>`((?<${e}>-?\\d*[\\.,]?\\d+)${t})?`,Se=new RegExp(["(?<negative>-)?P",ge("years","Y"),ge("months","M"),ge("weeks","W"),ge("days","D"),"(T",ge("hours","H"),ge("minutes","M"),ge("seconds","S"),")?"].join(""));function Ae(e){if(""!==e&&null!=e)return parseFloat(e.replace(",","."))}const be=new Error("Invalid duration"),Ie=new Error("Multiple fractions specified");function Te(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}function je(e){const t=o.parse(e),s=[];return t.years&&s.push(`${t.years} years`),t.months&&s.push(`${t.months} months`),t.weeks&&s.push(`${t.weeks} weeks`),t.days&&s.push(`${t.days} days`),t.hours&&s.push(`${t.hours} hours`),t.minutes&&s.push(`${t.minutes} minutes`),t.seconds&&s.push(`${t.seconds} seconds`),s.join(", ")}const Ce=({id:t,title:a,description:i,image:n,className:o,metaData:l,actions:d,padded:c,scaleOnHover:u,onClick:m=(()=>{}),htmlDetails:p})=>{const x=m?xe:pe;return e.jsxs("div",{id:t,"data-testid":"CardBasic",className:r.twMerge(s(he,x,{"p-4":c},{"hover:scale-100":!u},o)),onClick:m,children:[n&&e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden aspect-[16/9]",{rounded:c},n.aspectRatio)),children:e.jsx(Q,{fill:!0,src:null==n?void 0:n.src,sizes:"100vh",alt:null==n?void 0:n.alt,className:s("absolute inset-0 object-cover group-hover:scale-110 dura",he)})}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:s({"p-3":!c},{"pt-3":c}),children:[e.jsx("div",{children:a&&e.jsx($,{tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),!p&&i&&e.jsx("div",{children:e.jsx(W,{className:"mb-0",children:Te(i)})}),p&&i&&e.jsx("div",{children:e.jsx(fe,{className:"mb-0",data:Te(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l&&e.jsx("div",{className:"flex shrink-0 mt-2",children:l.map(((t,s)=>0===s?e.jsxs(W,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===l.length-1?e.jsxs(W,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(W,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),d&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[d.like&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.like)||void 0===s?void 0:s.onClick)&&"function"==typeof d.like.onClick&&d.like.onClick({id:t})}}),d.share&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.share)||void 0===s?void 0:s.onClick)&&"function"==typeof d.share.onClick&&d.share.onClick({id:t})}}),d.save&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.save)||void 0===s?void 0:s.onClick)&&"function"==typeof d.save.onClick&&d.save.onClick({id:t})}}),d.comment&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.comment)||void 0===s?void 0:s.onClick)&&"function"==typeof d.comment.onClick&&d.comment.onClick({id:t})}}),d.bookmark&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.bookmark)||void 0===s?void 0:s.onClick)&&"function"==typeof d.bookmark.onClick&&d.bookmark.onClick({id:t})}}),d.report&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.report)||void 0===s?void 0:s.onClick)&&"function"==typeof d.report.onClick&&d.report.onClick({id:t})}}),d.follow&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.follow)||void 0===s?void 0:s.onClick)&&"function"==typeof d.follow.onClick&&d.follow.onClick({id:t})}}),d.download&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.download)||void 0===s?void 0:s.onClick)&&"function"==typeof d.download.onClick&&d.download.onClick({id:t})}}),d.edit&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.edit)||void 0===s?void 0:s.onClick)&&"function"==typeof d.edit.onClick&&d.edit.onClick({id:t})}}),d.delete&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.delete)||void 0===s?void 0:s.onClick)&&"function"==typeof d.delete.onClick&&d.delete.onClick({id:t})}})]})]})]})})]})};Ce.displayName="CardBasic";const ye=t.createContext({brand:void 0,header:void 0,footer:void 0,locale:void 0,app:void 0,images:void 0});function Oe(){var e;return null===(e=t.useContext(ye).locale)||void 0===e||e.lang,ce}const _e={isDarkTheme:!1,toggleTheme:()=>{},theme:void 0},Re=t.createContext(_e);const Le=({id:t,title:a,description:i,image:r,className:n,metaData:o,actions:l,onClick:d=(()=>{}),playCallback:c,htmlDetails:u,accessRestriced:m})=>{const p=Oe(),x=d?xe:pe;return e.jsxs("div",{id:t,"data-testid":"CardBasic",className:s(he,x,n),onClick:d,children:[r&&e.jsxs("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",r.aspectRatio),children:[e.jsx(Q,{fill:!0,src:null==r?void 0:r.src,sizes:"100vh",alt:null==r?void 0:r.alt,className:s("absolute inset-0 object-cover group-hover:scale-110",he)}),m&&e.jsx("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e.jsx(W,{bold:!0,transform:exports.COPY_TRANSFORM.UPPERCASE,children:p.UI.PURCHASE_TO_ACCESS})}),c&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:play",size:exports.BTN_SIZES.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof c&&c(e)}})})]}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:a&&e.jsx($,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:a})}),!u&&i&&e.jsx("div",{children:e.jsx(W,{className:"mb-0",children:Te(i)})}),u&&i&&e.jsx("div",{children:e.jsx(fe,{className:"mb-0",data:Te(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o&&e.jsx("div",{className:"flex shrink-0",children:o.map(((t,s)=>0===s?e.jsxs(W,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===o.length-1?e.jsxs(W,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(W,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),l&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[l.like&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.like)||void 0===s?void 0:s.onClick)&&"function"==typeof l.like.onClick&&l.like.onClick({id:t})}}),l.share&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.share)||void 0===s?void 0:s.onClick)&&"function"==typeof l.share.onClick&&l.share.onClick({id:t})}}),l.save&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.save)||void 0===s?void 0:s.onClick)&&"function"==typeof l.save.onClick&&l.save.onClick({id:t})}}),l.comment&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.comment)||void 0===s?void 0:s.onClick)&&"function"==typeof l.comment.onClick&&l.comment.onClick({id:t})}}),l.bookmark&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.bookmark)||void 0===s?void 0:s.onClick)&&"function"==typeof l.bookmark.onClick&&l.bookmark.onClick({id:t})}}),l.report&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.report)||void 0===s?void 0:s.onClick)&&"function"==typeof l.report.onClick&&l.report.onClick({id:t})}}),l.follow&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.follow)||void 0===s?void 0:s.onClick)&&"function"==typeof l.follow.onClick&&l.follow.onClick({id:t})}}),l.download&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.download)||void 0===s?void 0:s.onClick)&&"function"==typeof l.download.onClick&&l.download.onClick({id:t})}}),l.edit&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.edit)||void 0===s?void 0:s.onClick)&&"function"==typeof l.edit.onClick&&l.edit.onClick({id:t})}}),l.delete&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==l?void 0:l.delete)||void 0===s?void 0:s.onClick)&&"function"==typeof l.delete.onClick&&l.delete.onClick({id:t})}})]})]})]})})]})};Le.displayName="CardMedia";const we=({video:t,isMuted:a=!0,id:i,title:r,description:n,image:o,className:d,metaData:c,actions:u,onClick:m=(()=>{}),htmlDetails:p})=>{const x=m?xe:pe;return e.jsxs("div",{id:i,"data-testid":"CardVideo",className:s(he,x,d),onClick:m,children:[o&&t&&e.jsx("div",{className:s("relative w-full h-full aspect-[16/9]",o.aspectRatio),children:e.jsx(l,{videoId:`video--${i}`,playbackStartDelay:1e3,videoSrc:e.jsx("source",{src:t,type:"video/mp4"}),videoClassName:s("hls-hover-video w-full aspect-[16/9]",o.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:a,className:s("w-full overflow-hidden aspect-[16/9]",o.aspectRatio),pausedOverlay:e.jsx("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",o.aspectRatio),children:e.jsx(Q,{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.jsx("div",{className:s("w-full flex items-center justify-center aspect-[16/9]",o.aspectRatio),children:e.jsx("div",{className:"",children:e.jsx(w,{})})})},`${i}--card`)}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:r&&e.jsx($,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:r})}),!p&&n&&e.jsx("div",{children:e.jsx(W,{className:"mb-0",children:Te(n)})}),p&&n&&e.jsx("div",{children:e.jsx(fe,{className:"mb-0",data:Te(n)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c&&e.jsx("div",{className:"flex shrink-0",children:c.map(((t,s)=>0===s?e.jsxs(W,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===c.length-1?e.jsxs(W,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(W,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),u&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[u.like&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.like)||void 0===t?void 0:t.onClick)&&"function"==typeof u.like.onClick&&u.like.onClick({id:i})}}),u.share&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.share)||void 0===t?void 0:t.onClick)&&"function"==typeof u.share.onClick&&u.share.onClick({id:i})}}),u.save&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.save)||void 0===t?void 0:t.onClick)&&"function"==typeof u.save.onClick&&u.save.onClick({id:i})}}),u.comment&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof u.comment.onClick&&u.comment.onClick({id:i})}}),u.bookmark&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof u.bookmark.onClick&&u.bookmark.onClick({id:i})}}),u.report&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.report)||void 0===t?void 0:t.onClick)&&"function"==typeof u.report.onClick&&u.report.onClick({id:i})}}),u.follow&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof u.follow.onClick&&u.follow.onClick({id:i})}}),u.download&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.download)||void 0===t?void 0:t.onClick)&&"function"==typeof u.download.onClick&&u.download.onClick({id:i})}}),u.edit&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof u.edit.onClick&&u.edit.onClick({id:i})}}),u.delete&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof u.delete.onClick&&u.delete.onClick({id:i})}})]})]})]})})]})};we.displayName="CardVideo";const De=({id:t,title:a,description:i,icon:n,className:o,onClick:l,moreTitle:d,align:c})=>{const u=l?xe:pe;return e.jsxs("div",{id:t,"data-testid":"CardIcon",className:r.twMerge(s(he,u,"p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===c},{"items-center":"center"===c},{"items-end":"right"===c},o)),children:[n&&e.jsx("div",{className:s("relative"),children:e.jsx(y,{name:n,size:48})}),e.jsxs("div",{className:s({"text-left":"left"===c},{"text-center":"center"===c},{"text-right":"right"===c}),children:[e.jsx("div",{children:a&&e.jsx($,{tag:exports.HEADING_TAGS.H5,singleLine:!0,children:a})}),e.jsx("div",{children:i&&e.jsx(W,{align:c,children:i})})]}),l&&e.jsx(D,{variant:exports.BTN_VARIANTS.LINK,onClick:l,className:"absolute left-0 top-0 w-full h-full cursor-pointer border border-solid",children:d})]})};De.displayName="CardIcon";const Pe=({testID:t,id:a,title:i,description:n,image:o,onClick:l,className:d,padded:c,icon:u,raised:m=!0,htmlDetails:p})=>e.jsxs("div",{id:a,"data-testid":t||"CardHorz",className:s("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":c},{"shadow hover:shadow-lg":m},d),onClick:l,children:[o&&e.jsx("div",{className:"w-1/3 aspect-[1/1]",children:e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden h-full",o.aspectRatio)),children:e.jsx(Q,{fill:!0,src:null==o?void 0:o.src,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})})}),u&&!o&&e.jsx("div",{className:"py-2 pl-2",children:e.jsx(y,{name:u,size:30})}),e.jsx("div",{className:"flex flex-1 overflow-hidden h-min",children:e.jsxs("div",{className:"flex-col gap-2 py-2 pr-2 overflow-hidden",children:[i&&e.jsx("div",{className:"",children:e.jsx($,{tag:exports.HEADING_TAGS.H4,children:i})}),!p&&n&&e.jsx("div",{children:e.jsx(W,{className:"mb-0",children:Te(n)})}),p&&n&&e.jsx("div",{children:e.jsx(fe,{className:"mb-0",data:Te(n)})})]})})]});Pe.displayName="CardHorz";const ke=({testID:i,className:n,data:o,padded:l,shadow:d=!0})=>{const c=a.motionValue(0);return t.useEffect((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||a.animate(c,200,{duration:.5})}),[c]),o?e.jsxs("div",{"data-testid":i||"CardData",className:r.twMerge(s("relative rounded-lg overflow-hidden flex flex-col items-center gap-4 p-2 bg-bodyBackground dark:bg-darkBodyBackground",{"p-4":l},{shadow:d},n)),children:[(null==o?void 0:o.animateNumber)&&e.jsxs("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e.jsx(C,{from:o.numberData.from,to:o.numberData.to,numDecimals:o.numberData.numDecimals}),e.jsx("span",{children:null==o?void 0:o.item})]}),!(null==o?void 0:o.animateNumber)&&e.jsx("div",{className:"text-lg",children:e.jsx($,{tag:exports.HEADING_TAGS.H2,flush:!0,children:null==o?void 0:o.item})}),e.jsx("div",{children:e.jsx(W,{className:"mb-0",children:null==o?void 0:o.label})})]}):e.jsx(e.Fragment,{})};ke.displayName="CardData";const Me=t=>{var{variant:s,className:a,data:i}=t,r=P(t,["variant","className","data"]);switch(s){case"basic":default:return e.jsx(Ce,Object.assign({className:a},i,r));case"media":return e.jsx(Le,Object.assign({className:a},i,r));case"video":return e.jsx(we,Object.assign({className:a},i,r));case"icon":return e.jsx(De,Object.assign({className:a},i,r));case"horz":return e.jsx(Pe,Object.assign({className:a},i,r));case"data":return e.jsx(ke,Object.assign({className:a},i,r))}};Me.displayName="Card";const Ue=({text:t,flush:a,tag:i=exports.HEADING_TAGS.H1})=>{const r=t.split(" ");return e.jsx("div",{"data-testid":"DisplayHeading",className:"relative display-heading-wrapper",children:e.jsx($,{tag:i,flush:a,children:r.map(((t,a)=>{const i=a===r.length-1,n=`${t}-${a}`;return e.jsxs("span",{children:[e.jsx("span",{className:s({"display-heading relative font-heading":!i},{"inline-block relative font-heading":i}),children:e.jsxs(e.Fragment,{children:[i&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"display-heading--emphasis z-0"}),e.jsx("span",{className:"display-heading--lastword relative",children:t})]}),!i&&e.jsx("span",{className:"relative z-10",children:t})]})}),!i&&" "]},n)}))})})};Ue.displayName="DisplayHeading";const Fe=({children:a,className:i,submit:r,onSubmit:n=(()=>{}),onChange:o,hideSubmit:l,ariaSubmitLabel:c,submitID:u,submitVariant:m=exports.BTN_VARIANTS.PRIMARY,initialValues:p={},isBoxed:x=!1,submitType:h=exports.BTN_TYPES.SUBMIT,disabledSubmitWithReturn:v=!1,isDisabled:f=!1})=>{const N=d.useForm({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"}),E=t.useRef(p);t.useEffect((()=>{JSON.stringify(E.current)!==JSON.stringify(p)&&(N.reset(p),E.current=p)}),[p]),t.useEffect((()=>{if(o&&"function"==typeof o){const e=N.watch(((e,t)=>{o(e,t)}));return()=>e.unsubscribe()}}),[]);const g=s({"sr-only":l}),{formState:{isSubmitting:S,isDirty:A,isValid:b}}=N;return e.jsx(d.FormProvider,Object.assign({},N,{children:e.jsx("div",{"data-testid":"Form",className:s("w-full max-w-s @containers @form"),children:e.jsxs("form",{onSubmit:N.handleSubmit(n),onKeyDown:e=>{v&&"Enter"===e.key&&e.preventDefault()},className:s("w-2xs relative",{"form px-8 pt-6 pb-8 ":x},{"opacity-50":S},i),children:[a,r&&e.jsx("div",{className:"flex items-center justify-end",children:e.jsx(D,{id:u||r,className:g,ariaLabel:c||r||"Submit",type:h,outline:!0,isLoading:S,disabled:S||!b||f,variant:m,children:r})})]})})}))};var Be;Fe.displayName="Form",exports.FIELD_TYPES=void 0,(Be=exports.FIELD_TYPES||(exports.FIELD_TYPES={})).TEXT="text",Be.TEXTAREA="textarea",Be.SELECT="select",Be.CHECKBOX="checkbox",Be.RADIO="radio",Be.SWITCH="switch",Be.DATE="date",Be.TIME="time",Be.DATETIME="datetime",Be.FILE="file",Be.PASSWORD="password",Be.EMAIL="email",Be.NUMBER="number",Be.TEL="tel",Be.URL="url",Be.SEARCH="search",Be.HIDDEN="hidden";const Ge=t.forwardRef((function(t,a){var{id:i,name:r,options:n,required:o,className:l,disabled:d}=t,c=P(t,["id","name","options","required","className","disabled"]);if(!n)throw new Error("FormSelect requires options prop");return e.jsx("div",{id:i,className:s("pb-2 min-w-20",l),children:e.jsxs("div",{className:"relative",children:[e.jsx("select",Object.assign({ref:a,name:r,disabled:d,required:o,className:"form-item text-input pr-10"},c,{children:n.map(((t,s)=>{var a,i;return e.jsx("option",{value:null===(a=null==t?void 0:t.value)||void 0===a?void 0:a.toString(),disabled:t.disabled,className:"bg-bodyBackground dark:bg-darkBodyBackground",children:t.label},`${null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.toString()}--${s}`)}))})),e.jsx("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.jsx(y,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));Ge.displayName="FormSelect";const He=({name:a,type:i,label:r,required:n,className:o,icon:l,options:c,disabled:u,description:m,showPasswordLabel:p,hidePasswordLabel:x,validations:h={},fileUploadCallback:v=(()=>{}),autoComplete:f})=>{var N,E;const[g,S]=t.useState(!1),{control:A,formState:b}=d.useFormContext(),{errors:I}=b,T=r&&i!==exports.FIELD_TYPES.CHECKBOX,j=n||Boolean(h.required)?`${r} *`:r;return e.jsx("div",{className:"relative",children:e.jsxs("div",{"data-testid":"FormField",className:"mb-4",children:[T&&e.jsx("div",{className:"flex items-baseline justify-between",children:e.jsx(J,{id:a,children:j})}),e.jsx("div",{className:"mb-1",children:e.jsx(d.Controller,{defaultValue:"",name:a,control:A,rules:h,render:({field:t})=>((t,i)=>{switch(t){case exports.FIELD_TYPES.HIDDEN:return e.jsx("input",Object.assign({type:le.HIDDEN,disabled:u},i));case exports.FIELD_TYPES.TEXT:return e.jsx(de,Object.assign({type:le.TEXT,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i));case exports.FIELD_TYPES.PASSWORD:{const t=g?le.TEXT:le.PASSWORD,a="appearance-none border-none bg-transparent flex items-center";return e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute right-0 top-0 flex items-center justify-center h-full z-10 pr-2",onClick:()=>S((e=>!e)),role:"button",tabIndex:0,children:g?e.jsx("button",{type:"button","aria-label":x,className:s(a,"form-icon"),children:e.jsx(y,{name:"mdi:eye-off",size:24})}):e.jsx("button",{type:"button","aria-label":p,className:s(a,"form-icon"),children:e.jsx(y,{name:"mdi:eye",size:24})})}),e.jsx(de,Object.assign({type:t,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i))]})}case exports.FIELD_TYPES.TEXTAREA:return e.jsx(de,Object.assign({type:le.TEXTAREA,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.EMAIL:return e.jsx(de,Object.assign({type:le.EMAIL,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i));case exports.FIELD_TYPES.DATE:return e.jsx(de,Object.assign({type:le.DATE,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.DATETIME:return e.jsx(de,Object.assign({type:le.DATETIME,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.NUMBER:return e.jsx(de,Object.assign({type:le.NUMBER,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.CHECKBOX:return e.jsx(M,Object.assign({required:n||Boolean(h.required),id:a,className:o,label:r,disabled:u},i));case exports.FIELD_TYPES.RADIO:return e.jsx(ne,Object.assign({required:n||Boolean(h.required),id:a,className:o,options:c,disabled:u},i));case exports.FIELD_TYPES.SWITCH:return e.jsx(oe,Object.assign({id:a,required:n||Boolean(h.required),className:o,disabled:u},i));case exports.FIELD_TYPES.SELECT:return e.jsx(Ge,Object.assign({required:n||Boolean(h.required),id:a,className:o,disabled:u,label:r,options:c},i));case exports.FIELD_TYPES.FILE:return e.jsx(z,Object.assign({required:n||Boolean(h.required),id:a,className:o,disabled:u,onChangeCallback:e=>{v(e)}},i));default:return e.jsx(de,Object.assign({type:le.TEXT,required:n||Boolean(h.required),disabled:u,icon:l,className:o},i))}})(i,t)})}),m&&e.jsx("div",{className:"formfield-description",children:e.jsx(W,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:m})}),I[a]&&e.jsx("div",{className:"formfield-error text-error italic",children:e.jsx(W,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:null===(E=null===(N=null==I?void 0:I[a])||void 0===N?void 0:N.message)||void 0===E?void 0:E.toString()})})]})})};He.displayName="FormField";const Ye=({testID:t,url:s,title:a="Share",enabled:i={facebook:!0,twitter:!0}})=>e.jsxs("div",{"data-testid":t||"Share",className:"flex gap-2 items-center ",children:[e.jsx("div",{children:e.jsxs(W,{as:exports.COPY_TAG.P,className:"mb-0",children:[ce.UI.SHARE,":"]})}),(null==i?void 0:i.facebook)&&e.jsx(c.FacebookShareButton,{url:s,title:a,className:"",children:e.jsx(y,{name:"mdi:facebook"})}),(null==i?void 0:i.twitter)&&e.jsx(c.TwitterShareButton,{url:s,title:a,className:"",children:e.jsx(y,{name:"mdi:twitter"})}),(null==i?void 0:i.whatsapp)&&e.jsx(c.WhatsappShareButton,{url:s,title:a,className:"",children:e.jsx(y,{name:"mdi:whatsapp"})}),(null==i?void 0:i.email)&&e.jsx(c.EmailShareButton,{url:s,title:a,className:"",children:e.jsx(y,{name:"mdi:email"})}),(null==i?void 0:i.linkedin)&&e.jsx(c.LinkedinShareButton,{url:s,title:a,className:"",children:e.jsx(y,{name:"mdi:linkedin"})})]});Ye.displayName="Share";const We=({data:a})=>{const[i,r]=t.useState(0);return a?e.jsx("div",{"data-testid":"Tabs",children:e.jsxs(u.Tabs,{onSelect:e=>r(e),children:[e.jsx(u.TabList,{className:"mb-8 flex p-0",children:a.map(((t,a)=>e.jsx(u.Tab,{className:s("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":i!==a,"border-primary border-solid border-0 border-b-2":i===a}),children:e.jsx(W,{className:"m-0 text-center",children:t.title})},a)))}),a.map(((t,s)=>e.jsx(u.TabPanel,{className:"",children:t.content},s)))]})}):e.jsx(e.Fragment,{})};We.displayName="Tabs";const Ve=({testID:t,facebook:s,twitter:a,instagram:i,linkedin:r})=>e.jsxs("div",{"data-testid":t||'"VisitUs"',className:"flex gap-2",children:[s&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(s.url)}),a&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(a.url)}),i&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(i.url)}),r&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(r.url)})]});Ve.displayName="VisitUs";const ze=({testID:t,title:a,links:i,inline:n=!0,separators:o=!1,className:l})=>e.jsxs("div",{"data-testid":t||'"Menu"',className:r.twMerge(s("flex flex-col gap-2",l)),children:[a&&e.jsx("div",{children:e.jsx($,{tag:exports.HEADING_TAGS.H3,children:a})}),e.jsx("div",{className:s("flex gap-0 items-center md:items-start",{"flex-col md:flex-row ":n},{"flex-col ":!n}),children:null==i?void 0:i.map(((t,s)=>{const a=`${t.id}--${s}`;return e.jsxs("div",{className:"flex gap-0",children:[e.jsx("div",{className:"relative py-2",children:e.jsxs(U,{href:t.url,className:"flex gap-1",children:[t.icon&&e.jsx(y,{name:t.icon}),t.title&&e.jsx("div",{children:t.title})]})}),o&&s+1<i.length&&e.jsx("div",{className:"h-full hidden md:flex self-center px-2",children:e.jsx(y,{name:"mdi:dot",className:"opacity-50"})})]},a)}))})]});var qe;ze.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(qe||(qe={}));const Ke=({children:t,className:a,spacing:i,padded:n,isNarrow:o,isCentered:l,isFlush:d,direction:c=qe.COLUMN})=>{const u=r.twMerge(s("container relative mx-auto my-0",{"px-2 md:px-4 lg:px-4":n},{"py-40":"feature"===i},{"py-24":"component"===i},{"py-16":"module"===i},{"py-10":"element"===i},{"py-4":"atom"===i},{"py-0":"none"===i},{"max-w-3xl":o},{"flex items-center justify-center flex-col":l},{"px-0 max-w-full mx-0":d},{"flex flex-col":c===qe.COLUMN},{"flex-row":c===qe.ROW})),m=s("w-full",a);return e.jsx("div",{"data-testid":"Container",className:u,children:e.jsx("div",{className:m,children:t})})};Ke.displayName="Container";const Ze=({testID:t,children:a,withBg:i=!0,inversed:r=!1})=>e.jsxs("div",{"data-testid":t||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[i&&e.jsx("div",{className:s("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.jsx(Ke,{children:a})]});Ze.displayName="Hero";const $e=({testID:i,bgAsset:r,focalAsset1:n,focalAsset2:o,focalAsset3:l})=>{t.useRef(null);const d={opacity:.001,rotate:0,scale:1,x:200,y:0},c={opacity:1,rotate:0,rotateX:0,rotateY:0,scale:1,transition:{damping:60,delay:0,mass:1.2,stiffness:300,type:"spring"},x:0,y:0};return e.jsxs("div",{"data-testid":i||"AnimationSet1",className:s("relative w-full h-full"),children:[r&&e.jsx(a.motion.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.jsx(Q,{src:r.src,alt:r.alt,fill:!0})}),(n||o)&&e.jsxs(a.motion.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.jsx(a.motion.div,{className:"absolute w-1/2 aspect-[0.35/1] right-16 top-0",initial:d,animate:c,children:e.jsx(Q,{src:n.src,alt:n.alt,fill:!0})}),o&&e.jsx(a.motion.div,{className:"absolute w-1/2 aspect-[0.5/1] -left-4 top-20",initial:d,animate:Object.assign(Object.assign({},c),{transition:Object.assign(Object.assign({},c.transition),{delay:.3})}),children:e.jsx(Q,{src:o.src,alt:o.alt,fill:!0})})]}),l&&e.jsx("div",{className:"absolute w-1/4 aspect-[0.5/1] flex flex-col flex-nowrap p-0 top-16 z-20 items-end justify-end left-0",children:e.jsx(a.motion.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.jsx(Q,{src:l.src,fill:!0,alt:l.alt})})})]})};$e.displayName="AnimationSet1";const Xe=process.env.AWS_COGNITO_USERPOOL_DOMAIN||process.env.NEXT_PUBLIC_AWS_COGNITO_USERPOOL_DOMAIN,Qe=process.env.AWS_COGNITO_CLIENT_ID||process.env.NEXT_PUBLIC_AWS_COGNITO_CLIENT_ID,Je=process.env.AWS_COGNITO_REDIRECT_URI||process.env.NEXT_PUBLIC_AWS_COGNITO_REDIRECT_URI,et=Xe&&Qe&&Je?`https://${Xe}/oauth2/authorize?client_id=${Qe}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${Je}`:void 0,tt=Xe&&Qe&&Je?`https://${Xe}/oauth2/authorize?client_id=${Qe}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${Je}`:void 0,st={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},at={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."}},it=({handleSubmit:s,initialValues:a,handleTokenCallback:i,showSocialButtons:r=!1})=>{const n=Oe();t.useEffect((()=>m.Hub.listen("auth",(({payload:{event:e,data:t}})=>{switch(e){case"signIn":i&&"function"==typeof i&&i(t.signInUserSession);break;case"signOut":x.toast.success("You have been signed out")}}))),[]);const o=e=>k(void 0,0,void 0,(function*(){var t;try{m.Auth.federatedSignIn({provider:e})}catch(e){console.log(e),x.toast.error(e.message||(null===(t=null==n?void 0:n.ERRORS)||void 0===t?void 0:t.GENERIC_ERROR))}}));return e.jsxs("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[e.jsxs(Fe,{onSubmit:s,submit:ce.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:a,children:[e.jsx(He,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ce.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:st,autoComplete:"email"}),e.jsx(He,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ce.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),r&&e.jsxs(e.Fragment,{children:[e.jsx(X,{}),e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsxs("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[et&&e.jsx(D,{onClick:()=>o(p.CognitoHostedUIIdentityProvider.Google),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ce.UI.LOGIN_WITH_GOOGLE}),tt&&e.jsx(D,{onClick:()=>o(p.CognitoHostedUIIdentityProvider.Apple),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ce.UI.LOGIN_WITH_APPLE})]})})]})]})};it.displayName="LoginForm";const rt=({handleSubmit:s,handleTokenCallback:a,showSocialButtons:i=!1})=>{const r=Oe();t.useEffect((()=>m.Hub.listen("auth",(({payload:{event:e,data:t}})=>{if("signUp"===e)a&&"function"==typeof a&&a(t.signInUserSession)}))),[]);const n=e=>k(void 0,0,void 0,(function*(){var t;try{m.Auth.federatedSignIn({provider:e})}catch(e){console.log(e),x.toast.error(e.message||(null===(t=null==r?void 0:r.ERRORS)||void 0===t?void 0:t.GENERIC_ERROR))}}));return e.jsxs("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[e.jsxs(Fe,{onSubmit:s,submit:ce.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e.jsx(He,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ce.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:st,autoComplete:"email"}),e.jsx(He,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ce.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:ce.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:at,autoComplete:"new-password"})]}),i&&e.jsxs(e.Fragment,{children:[e.jsx(X,{}),e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsxs("div",{className:"flex flex-col gap-4 max-w-[250px]",children:[e.jsx(D,{onClick:()=>n(p.CognitoHostedUIIdentityProvider.Google),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ce.UI.SIGNUP_WITH_GOOGLE}),e.jsx(D,{onClick:()=>n(p.CognitoHostedUIIdentityProvider.Apple),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ce.UI.SIGNUP_WITH_APPLE})]})})]})]})};rt.displayName="RegisterForm";const nt=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e.jsx(Fe,{onSubmit:t,submit:ce.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(He,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ce.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:st})})});nt.displayName="ForgotPasswordForm";const ot=({loginSubmit:s,registerSubmit:a,passwordForgotSubmit:i,handleTokenCallback:r,showSocialLogin:n=!1})=>{const[o,l]=t.useState(!1);return e.jsxs("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-128",children:[!o&&e.jsx(We,{data:[{title:"Login",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(it,{handleSubmit:s,showSocialButtons:n,handleTokenCallback:r}),e.jsx("div",{className:"mt-4",children:e.jsx(D,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})},{title:"Register",content:e.jsx("div",{className:"flex flex-col gap-4 items-center",children:e.jsx(rt,{handleSubmit:a,showSocialButtons:n,handleTokenCallback:r})})}]}),o&&e.jsx(We,{data:[{title:"Forgot Password",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(nt,{handleSubmit:i}),e.jsx("div",{className:"mt-4",children:e.jsx(D,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};function lt({className:t,onClick:s}){return e.jsx(D,{className:"absolute -right-2 top-1/2 -translate-y-1/2 z-10",onClick:s,icon:"mdi:navigate-next",rounded:!0})}function dt({className:t,onClick:s}){return e.jsx(D,{className:"absolute -left-2 top-1/2 -translate-y-1/2 z-10",onClick:s,icon:"mdi:navigate-before",rounded:!0})}ot.displayName="Authenticator";const ct=({testID:t,data:s,onPressCallback:a=(()=>{}),count:i=5,isCentered:r=!1,carouselOptions:n={loop:!1,scrollAnimationDuration:500,showDots:!1,showArrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:i}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}]}})=>{const o=s.length<=i;return e.jsx("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e.jsx(h,{arrows:!o&&n.showArrows,nextArrow:e.jsx(lt,{}),prevArrow:e.jsx(dt,{}),centerMode:r,responsive:n.responsive,slidesToScroll:1,slidesToShow:i,dots:!o&&n.showDots,infinite:!o&&n.loop,speed:n.scrollAnimationDuration,children:s.map(((t,s)=>e.jsx("div",{className:"px-2",children:e.jsx(Me,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>{a(t.data.id)}}),className:t.className},s)},s)))})})};var ut;ct.displayName="Carousel",exports.SPACING=void 0,(ut=exports.SPACING||(exports.SPACING={})).NONE="py-0",ut.ATOM="py-8",ut.DEFAULT="py-16",ut.ELEMENT="py-24",ut.COMPONENT="py-32",ut.MODULE="py-40",ut.FEATURE="py-64";const mt=({testID:i,cardData:r,title:n,description:o,withSeparators:l,spacing:d=exports.SPACING.MODULE})=>{const c=t.useRef(null),u=a.useInView(c,{once:!0});return e.jsxs("div",{ref:c,"data-testid":i||"PanelCards",className:s("relative m-auto w-full flex flex-col flex-none flex-nowrap",d),children:[(n||o)&&e.jsxs("div",{className:"relative text-center py-8",children:[n&&e.jsx(Ue,{text:n}),o&&e.jsx(W,{align:exports.COPY_ALIGN.CENTER,children:o})]}),e.jsx("div",{className:"flex gap-8 items-center justify-center flex-col md:flex-row",children:null==r?void 0:r.map(((t,a)=>e.jsxs("span",{className:"flex gap-8 justify-between items-center",children:[e.jsx("div",{className:s("relative flex flex-1 items-center justify-center",{"":l}),style:{transform:u?"none":"translateY(200px)",opacity:u?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*a}s`},children:e.jsx(Me,Object.assign({},t))}),l&&a<r.length-1&&e.jsx("div",{className:"w-1 h-10 border-0 border-r border-solid border-primary500"},`separator-${a}`)]},`card-${a}`)))})]})};mt.displayName="PanelCards";const pt=({testID:t,title:a,description:i,inversed:r,assets:n,buttonData:o,withBg:l=!0,spacing:d=exports.SPACING.DEFAULT,chips:c})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap px-4 md:px-0",d),children:[l&&e.jsx("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.jsx(Ke,{children:e.jsxs("div",{className:s("relative flex flex-col-reverse sm:flex-col md:flex-row lg:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 md:items-center gap-16",{"flex-row-reverse":r}),children:[e.jsxs("div",{className:"w-full md:w-1/2 flex flex-col items-start justify-center gap-8",children:[e.jsx("div",{className:"relative text-center md:text-left",children:e.jsx(Ue,{text:a,flush:!0})}),e.jsx("div",{className:"relative text-center md:text-left",children:e.jsx(W,{className:"mb-0",children:i})}),c&&e.jsx("div",{className:"grid grid-cols-3 gap-2 mx-auto md:mx-0",children:null==c?void 0:c.map(((t,s)=>e.jsx(V,{rounded:!0,iconFirst:!0,text:t.text,icon:t.icon,variant:t.variant},`chip-${s}`)))}),e.jsx("div",{className:"mx-auto md:m-0",children:e.jsx(D,Object.assign({},o))})]}),e.jsx("div",{className:"w-full md:w-1/2 flex items-center justify-center",children:e.jsx("div",{className:"w-full aspect-[1/1] flex items-center justify-center",children:e.jsx($e,{bgAsset:n.bgAsset,focalAsset1:n.focalAsset1,focalAsset2:n.focalAsset2,focalAsset3:n.focalAsset3})})})]})})]});pt.displayName="PanelFeature";const xt=t.forwardRef((function({url:a,sources:i,onReady:n,onExitFullScreenCallback:o,className:l,options:d={playsinline:!1,preferFullWindow:!0},isYoutube:c=!1,defaultAudioTrack:u="No Music",rounded:m=!0,aspectRatioValue:p},x){const h=t.useRef(null),N=t.useRef(null),E=t.useRef(null),g=t.useMemo((()=>{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 t.useEffect((()=>{var e;if(c)return;const t=Object.assign(Object.assign({autoplay:!0,controls:!0,muted:!1,playsinline:d.playsinline,preferFullWindow:d.preferFullWindow,responsive:!0,fill:!0,fluid:!0,controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},d),{sources:i});if(E.current){const e=E.current;e.autoplay(d.autoplay),e.src(d.sources)}else{const s=document.createElement("video-js");null===(e=null==N?void 0:N.current)||void 0===e||e.appendChild(s);const a=E.current=f(s,t,(()=>{f.log("player is ready",a),n&&n(a)}));a.on("loadedmetadata",(function(){const e=a.audioTracks();for(let t=0;t<e.length;t++)e[t].label===u&&(e[t].enabled=!0)})),a.on("fullscreenchange",(function(){a.isFullscreen()?console.log("Player is in fullscreen"):(console.log("Player is not in fullscreen"),o&&"function"==typeof o&&o())}))}}),[d,N]),t.useImperativeHandle(x,(()=>({play:()=>{E.current&&E.current.play()},pause:()=>{E.current&&E.current.pause()},fullscreen:()=>{E.current&&E.current.requestFullscreen()}}))),t.useEffect((()=>{if(c)return;const e=E.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),E.current=null)}}),[E]),c&&a?e.jsx("div",{"data-testid":"Video",className:s("relative w-full h-full aspect-[16/9]",l),children:e.jsx(v,{ref:h,className:"react-player",url:a,width:"100%",height:"100%",controls:!0,onReady:n})}):e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden h-full object-cover",{rouded:m},g.className,l)),children:e.jsx("div",{"data-vjs-player":!0,children:e.jsx("div",{ref:N,className:"object-cover"})})})}));xt.displayName="Video";const ht=({testID:i,title:n,contentComponent:o,description:l,image:d,buttonData:c,inversed:u=!1,withBg:m=!0,spacing:p,video:x,headingTag:h,className:v})=>{const f=a.useAnimation(),N=t.useRef(null),E=a.useInView(N),g={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};t.useEffect((()=>{E&&f.start((e=>({transform:"none",transition:Object.assign(Object.assign({},g),{delay:.1*e})})))}),[f,E]);const S=t.useMemo((()=>{switch(null==x?void 0:x.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]"}}),[x]),A=u?"translateX(100px)":"translateX(-100px)";return e.jsxs("div",{"data-testid":i||"PanelHero",className:r.twMerge(s("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",p,v)),children:[m&&e.jsx("div",{className:s("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":!u,"-top-24 left-0":u})}),e.jsx(Ke,{children:e.jsxs("div",{className:s("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":u}),children:[e.jsx("div",{ref:N,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:e.jsxs("div",{className:s("relative flex flex-col gap-4 from-bodyBackground dark:from-darkBodyBackground p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!u},{"text-left bg-gradient-to-t md:bg-gradient-to-r":u}),children:[e.jsx(a.motion.div,{initial:{transform:A},custom:0,animate:f,children:e.jsx(Ue,{text:n,tag:h})}),o&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:f,children:o}),l&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:f,children:e.jsx(fe,{className:"mb-0",align:u?exports.COPY_ALIGN.LEFT:exports.COPY_ALIGN.RIGHT,data:l})}),c&&e.jsx(a.motion.div,{initial:{transform:A},custom:2,animate:f,children:e.jsx("div",{className:s("flex items-center",{"justify-end":!u,"justify-start":u}),children:e.jsx(D,Object.assign({},c))})})]})}),e.jsx("div",{className:"relative w-full md:w-1/2 z-0",children:e.jsxs("div",{className:s("relative scale-[1.35] rounded overflow-hidden shadow",S),children:[d&&e.jsx(Q,{src:d,alt:n,fill:!0}),x&&e.jsx(xt,{sources:x.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:x.aspectRatioValue})]})})]})})]})};ht.displayName="PanelHero";const vt=({testID:t,title:a,description:i,image1:r,image2:n,iosLink:o="#",androidLink:l="#",inversed:d=!1,withBg:c=!0,spacing:u=exports.SPACING.MODULE})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap",u),children:[c&&e.jsx("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.jsx(Ke,{children:e.jsxs("div",{className:s("relative flex flex-col md:flex-row flex-nowrap w-full h-full overflow-visible gap-16 border border-solid border-primary bg-tertiary dark:bg-secondary rounded p-8 shadow",{"flex-row-reverse":d}),children:[e.jsxs("div",{className:"w-full md:w-1/2 top-0 relative",children:[e.jsx("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.jsx(Q,{src:n,alt:a})}),e.jsx("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.jsx(Q,{src:r,alt:a})})]}),e.jsxs("div",{className:"w-full md:w-1/2",children:[e.jsx("div",{children:e.jsx(Ue,{text:a})}),e.jsx("div",{children:e.jsx(W,{children:i})}),e.jsxs("div",{className:"flex items-center justify-start gap-4",children:[e.jsx("div",{className:"relative w-[150px] h-[50px]",children:e.jsx(U,{href:o,target:"_blank",hideExternalIcon:!0,children:e.jsx(Q,{src:"https://apple-resources.s3.amazonaws.com/media-badges/download-on-the-app-store/black/en-us.svg",alt:"App Store"})})}),e.jsx("div",{className:"relative w-[190px] h-[75px]",children:e.jsx(U,{href:l,target:"_blank",hideExternalIcon:!0,children:e.jsx(Q,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});vt.displayName="PanelProduct";const ft=({testID:t,className:i,title:n,description:o,spacing:l=exports.SPACING.NONE,videoProps:d})=>e.jsxs("div",{"data-testid":t||'"PanelVideo"',className:r.twMerge(s("relative m-auto w-full flex flex-none flex-nowrap overflow-hidden items-center justify-center",`md:aspect-[${d.aspectRatioValue}]`,l,i)),children:[e.jsx(xt,{rounded:!1,aspectRatioValue:d.aspectRatioValue,options:Object.assign({autoplay:!0,muted:!0,controls:!1,loop:!0},null==d?void 0:d.options),sources:null==d?void 0:d.sources}),e.jsxs("div",{className:"absolute top-0 left-0 w-full h-full z-10",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-gradient-to-r from-transparent to-black opacity-50"}),e.jsxs("div",{className:"absolute top-0 left-2 md:left-0 w-full h-full flex flex-col items-end justify-center pr-24 text-white",children:[n&&e.jsx(a.motion.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.jsx("div",{children:e.jsx(Ue,{text:n})})}),o&&e.jsx(a.motion.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.jsx("div",{children:e.jsx(W,{children:o})})})]})]})]});ft.displayName="PanelVideo";const Nt=({testID:t,data:s,onPressCallback:a})=>e.jsx("div",{"data-testid":t||'"CardGrid"',className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:s.map(((t,s)=>e.jsx(Me,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>a(t.data.id)})},s)))});Nt.displayName="CardGrid";const Et=({testID:a,hideMenu:i=!1,className:n,logoOnly:o,userPicture:l})=>{var d,c,u,m,p,x,h,v,f,N,E,g,S,A,b,I,T,j,C,y,O,_,R,L,w,P,k,M;const F=t.useContext(ye),B=Oe(),[G,H]=t.useState("hidden"),[Y,V]=t.useState(!1),z=()=>{H("hidden"===G?"block":"hidden")};return o?e.jsx("header",{"data-testid":a||'"Header"',className:r.twMerge(s("relative z-10 w-full m-auto py-4 bg-bodyBackground dark:bg-darkBodyBackground",n)),children:e.jsx("div",{className:"relative w-full flex flex-col md:flex-row justify-center items-center",children:(null===(d=null==F?void 0:F.brand)||void 0===d?void 0:d.logo)&&e.jsx("div",{className:"relative w-56",children:e.jsx(U,{href:"/",children:e.jsx(ae,{logo:null===(c=null==F?void 0:F.brand)||void 0===c?void 0:c.logo,aspectRatioClass:null===(u=null==F?void 0:F.brand)||void 0===u?void 0:u.logoAspectRatio})})})})}):e.jsx("header",{"data-testid":a||'"Header"',className:r.twMerge(s("relative w-full m-auto py-4 bg-bodyBackground dark:bg-darkBodyBackground",n)),children:e.jsxs(Ke,{padded:!0,children:[e.jsxs("div",{className:"relative w-full flex",children:[(null===(m=null==F?void 0:F.brand)||void 0===m?void 0:m.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(U,{href:"/",children:e.jsx(ae,{logo:null===(p=null==F?void 0:F.brand)||void 0===p?void 0:p.logo,aspectRatioClass:null===(x=null==F?void 0:F.brand)||void 0===x?void 0:x.logoAspectRatio})})}),e.jsxs("div",{className:"flex-1 hidden md:flex items-center justify-center",children:[(null===(h=null==F?void 0:F.app)||void 0===h?void 0:h.isAuthenticated)&&(null===(v=null==F?void 0:F.header)||void 0===v?void 0:v.authNav)&&e.jsx(ze,{links:F.header.authNav,separators:!0}),!(null===(f=null==F?void 0:F.app)||void 0===f?void 0:f.isAuthenticated)&&(null===(N=null==F?void 0:F.header)||void 0===N?void 0:N.anonNav)&&e.jsx(ze,{links:F.header.anonNav,separators:!0})]}),e.jsxs("div",{className:"hidden md:flex flex-col justify-center",children:[!(null===(E=null==F?void 0:F.app)||void 0===E?void 0:E.isAuthenticated)&&(null===(g=null==F?void 0:F.app)||void 0===g?void 0:g.loginCallback)&&e.jsx("div",{className:"w-32 flex justify-end",children:e.jsx(D,{onClick:null===(S=null==F?void 0:F.app)||void 0===S?void 0:S.loginCallback,children:B.UI.LOGIN})}),!(null===(A=null==F?void 0:F.app)||void 0===A?void 0:A.isAuthenticated)&&!(null===(b=null==F?void 0:F.app)||void 0===b?void 0:b.loginCallback)&&e.jsx("div",{className:"w-32 flex justify-end"}),(null===(I=null==F?void 0:F.app)||void 0===I?void 0:I.isAuthenticated)&&e.jsxs("div",{className:"relative",children:[e.jsx(D,{onClick:()=>V(!Y),icon:Y?"mdi:user-outline":"mdi:user"}),e.jsx("div",{onClick:()=>V(!1),className:s("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!Y}),children:(null===(T=null==F?void 0:F.header)||void 0===T?void 0:T.profile)&&e.jsx(ze,{links:F.header.profile,inline:!1})})]})]}),e.jsx("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:menu",onClick:z})})]}),e.jsxs("div",{className:s("navbar-menu relative z-50",G,{hidden:i}),children:[e.jsx("div",{className:"navbar-backdrop fixed inset-0 bg-black opacity-25"}),e.jsxs("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:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("div",{className:"relative w-32",children:(null===(j=null==F?void 0:F.brand)||void 0===j?void 0:j.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(ae,{logo:null===(C=null==F?void 0:F.brand)||void 0===C?void 0:C.logo,aspectRatioClass:null===(y=null==F?void 0:F.brand)||void 0===y?void 0:y.logoAspectRatio})})}),e.jsx("div",{children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:close",onClick:z})})]}),e.jsxs("div",{className:"flex flex-col flex-1 gap-4",children:[l&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ue,{initValue:l,isEditable:!1})}),(null===(O=null==F?void 0:F.app)||void 0===O?void 0:O.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(W,{children:"User profile avatar and details here."})}),e.jsxs("div",{className:"flex flex-1 justify-center pt-4",children:[(null===(_=null==F?void 0:F.app)||void 0===_?void 0:_.isAuthenticated)&&(null===(R=null==F?void 0:F.header)||void 0===R?void 0:R.authNav)&&e.jsx(ze,{links:F.header.authNav,separators:!0}),!(null===(L=null==F?void 0:F.app)||void 0===L?void 0:L.isAuthenticated)&&(null===(w=null==F?void 0:F.header)||void 0===w?void 0:w.anonNav)&&e.jsx(ze,{links:F.header.anonNav,separators:!0})]}),(null===(P=null==F?void 0:F.app)||void 0===P?void 0:P.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(D,{onClick:null===(k=null==F?void 0:F.app)||void 0===k?void 0:k.logoutCallback,children:B.UI.LOGOUT})}),!(null===(M=null==F?void 0:F.app)||void 0===M?void 0:M.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(D,{onClick:()=>{var e;null===(e=null==F?void 0:F.app)||void 0===e||e.loginCallback(),z()},children:B.UI.LOGIN})})]})]})]})]})})};Et.displayName="Header";const gt=({testID:a,className:i})=>{var r,n,o,l,d,c,u,m,p,x,h,v,f,N;const E=t.useContext(ye);return e.jsx("footer",{className:s("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8",i),children:e.jsxs(Ke,{padded:!0,children:[e.jsxs("div",{"data-testid":a||'"Footer"',className:"footer flex flex-col md:flex-row py-8 gap-8",children:[e.jsxs("div",{className:"relative w-full md:w-1/3 flex flex-col gap-4 items-center md:items-start",children:[(null===(r=null==E?void 0:E.brand)||void 0===r?void 0:r.logo)&&e.jsx("div",{className:"relative w-24",children:e.jsx(ae,{logo:null===(n=null==E?void 0:E.brand)||void 0===n?void 0:n.logo,aspectRatioClass:null===(o=null==E?void 0:E.brand)||void 0===o?void 0:o.logoAspectRatio})}),(null===(l=E.footer)||void 0===l?void 0:l.about)&&e.jsx("div",{children:e.jsx(W,{children:E.footer.about})}),e.jsx("div",{children:e.jsx(Ve,{facebook:null===(c=null===(d=E.footer)||void 0===d?void 0:d.visitUs)||void 0===c?void 0:c.facebook,twitter:null===(m=null===(u=E.footer)||void 0===u?void 0:u.visitUs)||void 0===m?void 0:m.twitter,instagram:null===(x=null===(p=E.footer)||void 0===p?void 0:p.visitUs)||void 0===x?void 0:x.instagram,linkedin:null===(v=null===(h=E.footer)||void 0===h?void 0:h.visitUs)||void 0===v?void 0:v.linkedin})})]}),(null===(f=E.footer)||void 0===f?void 0:f.menus)&&e.jsx("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:E.footer.menus.map(((t,s)=>e.jsx("div",{className:"flex flex-1",children:e.jsx(ze,{title:t.title,links:t.links,inline:!1})},`${t.title}--${s}`)))})]}),e.jsxs("div",{className:"flex items-center justify-center flex-col",children:[e.jsxs(W,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:["© ",(new Date).getFullYear()," ",ce.UI.COPYRIGHT," ",null===(N=E.brand)||void 0===N?void 0:N.name]}),e.jsx(W,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:ce.UI.ALL_RIGHTS_RESERVED})]})]})})};gt.displayName="Footer";const St=({testID:t,children:a,showHeader:i=!0,showFooter:r=!0,image:n,showOverlay:o=!0,isFlush:l})=>e.jsxs("div",{"data-testid":t||'"Screen"',className:"h-full flex flex-1 flex-col min-h-full overflow-x-hidden",children:[i&&e.jsx(Et,{className:s({"fixed top-0 left-0 right-0 bg-opacity-50 dark:bg-opacity-50 z-50":l})}),e.jsxs("main",{className:s("relative flex flex-1",{"pt-24 md:pt-32 lg:pt-40":n},{"pt-8 md:pt-12 lg:pt-12":!n&&!l}),children:[n&&e.jsxs("div",{className:"absolute w-full aspect-[16/5] opacity-50 z-0 top-0 left-0 right-0",children:[e.jsx(Q,{src:n,alt:"background",priority:!0,sizes:"100vw",style:{objectFit:"cover"}}),o&&e.jsx("div",{className:"absolute w-full h-full bg-gradient-to-b from-transparent to-bodyBackground dark:to-darkBodyBackground"})]}),e.jsx(Ke,{padded:!l,isFlush:l,children:e.jsx("div",{className:"flex flex-col gap-8",children:a})})]}),r&&e.jsx(gt,{})]});St.displayName="Screen";const At=({title:t,isOpen:a})=>e.jsxs("div",{className:s("flex flex-row items-center justify-between p-2 border border-solid border-tertiary transition-all rounded mb-2",{"bg-tertiary":a}),children:[e.jsx($,{flush:!0,tag:exports.HEADING_TAGS.H4,className:s("transition-all",{"text-white":a}),children:t}),e.jsx("div",{className:"",children:e.jsx(y,{name:a?"mdi:chevron-up":"mdi:chevron-down"})})]}),bt=({testID:t,data:s,titleKey:a="title",contentKey:i="content"})=>e.jsx("div",{"data-testid":t||'"Accordion"',children:s.map((t=>e.jsx(N,{triggerTagName:"div",easing:"ease-out",triggerWhenOpen:e.jsx(At,{title:t[a],isOpen:!0}),trigger:e.jsx(At,{title:t[a],isOpen:!1}),children:e.jsx("div",{className:"p-2",children:e.jsx(W,{children:t[i]})})},t[a])))});var It;bt.displayName="Accordion",exports.CardVariant=void 0,(It=exports.CardVariant||(exports.CardVariant={})).BASIC="basic",It.MEDIA="media",It.VIDEO="video",It.ICON="icon",It.HORZ="horz",It.DATA="data";const Tt=({testID:a,title:i,children:r,subscription:n,plans:o,changeSubscriptionCallback:l,pauseSubscriptionCallback:d,selectedPlanCallback:c,confirmPlanCallback:u,isLoading:m})=>{var p,x,h,v,f,N,g,S,A,b,I,T;const j=Oe(),[C,y]=t.useState(null==n?void 0:n.id),[O,_]=t.useState(!1),[R,L]=t.useState(!1),P=e=>{y(e),c&&"function"==typeof c&&c(e)};return e.jsxs("div",{"data-testid":a||'"SubscriptionManager"',className:"relative",children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[i&&e.jsx($,{children:i}),!n&&e.jsxs("div",{className:"rounded shadow p-4 bg-bodyBackground dark:bg-darkBodyBackground",children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:j.UI.NO_ACTIVE_SUBSCRIPTION}),e.jsx(W,{children:null===(p=null==j?void 0:j.UI)||void 0===p?void 0:p.NO_SUBSCRIPTION_DETAILS})]}),n&&e.jsxs("div",{className:"rounded shadow p-4 bg-bodyBackground dark:bg-darkBodyBackground m-auto",children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(x=null==j?void 0:j.UI)||void 0===x?void 0:x.CURRENT_SUBSCRIPTION}),e.jsxs("div",{children:[e.jsxs(W,{className:"mb-0",children:[null===(h=null==j?void 0:j.UI)||void 0===h?void 0:h.SUBSCRIPTION_STATUS,": ",n.status]}),e.jsxs(W,{className:"mb-0",children:[null===(v=null==j?void 0:j.UI)||void 0===v?void 0:v.SUBSCRIPTION_PRICE,": ",n.price]}),e.jsxs(W,{className:"mb-0",children:[null===(f=null==j?void 0:j.UI)||void 0===f?void 0:f.CURRENT_PLAN,": ",n.plan]}),e.jsxs(W,{className:"mb-0",children:[null===(N=null==j?void 0:j.UI)||void 0===N?void 0:N.NEXT_BILLING_DATE,": ",n.nextBillingDate]}),n.endDate&&e.jsxs(W,{className:"mb-0",bold:!0,children:[null===(g=null==j?void 0:j.UI)||void 0===g?void 0:g.END_DATE,": ",n.endDate]})]})]}),n&&e.jsxs("div",{className:"flex justify-center gap-4",children:[l&&e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:()=>_(!O),children:O?null===(S=null==j?void 0:j.UI)||void 0===S?void 0:S.CANCEL:null===(A=null==j?void 0:j.UI)||void 0===A?void 0:A.CHANGE_PLAN}),!n.endDate&&e.jsx(D,{variant:exports.BTN_VARIANTS.SECONDARY,onClick:()=>{var e,t,s,a;_(!1),E.confirmAlert({title:null===(e=null==j?void 0:j.UI)||void 0===e?void 0:e.CONFIRM_TO_SUBMIT,message:null===(t=null==j?void 0:j.UI)||void 0===t?void 0:t.CONFIRM_TO_PAUSE,buttons:[{label:null===(s=null==j?void 0:j.UI)||void 0===s?void 0:s.YES,onClick:d},{label:null===(a=null==j?void 0:j.UI)||void 0===a?void 0:a.NO,onClick:()=>{}}]})},children:null===(b=null==j?void 0:j.UI)||void 0===b?void 0:b.PAUSE_SUBSCRIPTION})]}),O&&o&&r&&e.jsxs("div",{className:"flex items-center flex-col gap-4",children:[!R&&e.jsx("div",{className:"flex flex-col md:flex-row gap-4 justify-center",children:o.map((t=>e.jsx("div",{className:s("flex flex-1 w-[300px]",{"opacity-50":C&&C!==t.id},{hidden:R&&C&&C!==t.id}),children:e.jsx(Me,{variant:exports.CardVariant.ICON,className:s({"rounded border-2 border-primary bg-tertiary":C===t.id},{"border-2 border-cardBackground":C!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>P(t.id)}})},t.id)))}),e.jsx("div",{children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:()=>{var e,t,s,a;E.confirmAlert({title:null===(e=null==j?void 0:j.UI)||void 0===e?void 0:e.CONFIRM_TO_SUBMIT,message:null===(t=null==j?void 0:j.UI)||void 0===t?void 0:t.CONFIRM_TO_CHANGE_PLAN,buttons:[{label:null===(s=null==j?void 0:j.UI)||void 0===s?void 0:s.YES,onClick:()=>{l(C),_(!1)}},{label:null===(a=null==j?void 0:j.UI)||void 0===a?void 0:a.NO,onClick:()=>_(!1)}]})},disabled:C===n.id,children:null===(I=null==j?void 0:j.UI)||void 0===I?void 0:I.CONFIRM_TO_SUBMIT})})]}),!n&&e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center flex-col gap-4",children:[e.jsx("div",{className:"flex flex-col md:flex-row gap-4 justify-center",children:o.map((t=>e.jsx("div",{className:s("flex flex-1 w-[300px]",{"opacity-50":C&&C!==t.id},{hidden:R&&C&&C!==t.id}),children:e.jsx(Me,{variant:exports.CardVariant.ICON,className:s({"rounded border-2 border-primary bg-tertiary":C===t.id},{"border-2 border-cardBackground":C!==t.id}),data:{id:t.id,title:t.name,icon:t.icon,description:`${t.description} - ${t.price}`,onClick:()=>P(t.id)}})},t.id)))}),e.jsx("div",{children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:()=>{L(!0),u&&"function"==typeof u&&u(C)},disabled:!C,children:null===(T=null==j?void 0:j.UI)||void 0===T?void 0:T.CONFIRM_CHOICE})})]}),e.jsx("div",{children:r})]})]}),m&&e.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e.jsx(w,{})})]})};var jt;Tt.displayName="SubscriptionManager",exports.CPL_SPACING=void 0,(jt=exports.CPL_SPACING||(exports.CPL_SPACING={})).NONE="none",jt.ATOM="atom",jt.DEFAULT="default",jt.ELEMENT="element",jt.COMPONENT="component",jt.MODULE="module",jt.FEATURE="feature";const Ct=({spacing:t=exports.CPL_SPACING.DEFAULT,children:a,narrow:i,flush:r,className:n})=>{const o=s("flex","flex-col","flex-1","relative",{"py-40":"feature"===t},{"py-24":"component"===t},{"py-16":"module"===t},{"py-10":"element"===t},{"py-8":"default"===t},{"py-4":"atom"===t},{"py-0":"none"===t},{"max-w-5xl":i},{"p-0":r},n);return e.jsx("div",{"data-testid":"ContentPageLayout",className:o,children:a})};var yt;Ct.displayName="ContentPageLayout",exports.CRL_SIZE=void 0,(yt=exports.CRL_SIZE||(exports.CRL_SIZE={})).NONE="none",yt.ATOM="atom",yt.DEFAULT="default",yt.ELEMENT="element",yt.COMPONENT="component",yt.MODULE="module",yt.FEATURE="feature";const Ot=({className:t,children:a,size:i=exports.CRL_SIZE.DEFAULT})=>{const r=s("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.jsx("div",{"data-testid":"ContentRowsLayout",className:r,children:a})};Ot.displayName="ContentRowsLayout";const _t=({testID:a,inputCallback:i,seperator:r,numInputs:n=4,shouldAutoFocus:o=!1,size:l="medium"})=>{const[d,c]=t.useState("");t.useEffect((()=>{d&&4===d.length&&void 0!==i&&"function"==typeof i&&i(d)}),[d]);const u=t.useMemo((()=>{switch(l){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"}}}),[l]);return e.jsx("div",{"data-testid":a||'"OTPInput"',className:"foo-bar",children:e.jsx(g,{value:d,onChange:c,inputType:"number",numInputs:n,shouldAutoFocus:o,renderSeparator:r?()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(y,{name:"mdi:dot",className:"opacity-50"})}):e.jsx("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e.jsx("input",Object.assign({},t,{className:s("remove-arrow form-item text-input w-12")})),inputStyle:{width:u.width,height:u.height}})})};var Rt;function Lt({className:t,label:a,onChange:i,options:r}){return r?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(J,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(Ge,{id:a||"Sorting",options:r,onChange:e=>i(e.target.value)})]}):null}function wt(t){var{className:a,current:i,resultsPerPage:r=10,onChange:n,totalPages:o}=t,l=P(t,["className","current","resultsPerPage","onChange","totalPages"]);return e.jsx(b,Object.assign({current:i,onChange:n,simple:!0,pageSize:r,total:o*r,className:s("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:I,prevIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(y,{name:"mdi:chevron-left"})}),nextIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(y,{name:"mdi:chevron-right"})})},l))}function Dt({className:t,onChange:a,options:i,label:r}){return i?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(J,{className:"text-sm mr-2",transform:exports.COPY_TRANSFORM.UPPERCASE,children:ce.UI.SHOW}),e.jsx(Ge,{id:r||"ResultsPerPage",options:i.map((e=>({label:e.toString(),value:e}))),onChange:e=>a(e.target.value),className:"min-w-20"})]}):e.jsx(e.Fragment,{})}function Pt(t){var{className:a,end:i,searchTerm:r,start:n,totalResults:o}=t,l=P(t,["className","end","searchTerm","start","totalResults"]);return e.jsxs("div",Object.assign({className:s("m-0 p-0 flex-1",a)},l,{children:["Showing"," ",e.jsxs("strong",{children:[n," - ",i]})," ","out of ",e.jsx("strong",{children:o}),r&&e.jsxs(e.Fragment,{children:[" ","for: ",e.jsx("em",{children:r})]})]}))}function kt({className:a,onChange:i,onSubmit:r,wasSearched:n,placeholder:o,allowReset:l=!1,resetTrigger:d=(()=>{})}){return t.useContext(A.SearchContext),e.jsx("div",{className:s("m-0 md:px-48",a),children:e.jsxs("form",{onSubmit:e=>r(e),className:"flex items-center",children:[e.jsx("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e.jsx(de,{name:"SearchBoxInput",type:le.TEXT,placeholder:o||"Search now...",onChange:e=>{var t;i(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)}})}),e.jsx("div",{className:"pl-4",children:e.jsxs("div",{className:"flex flex-row gap-2",children:[n&&l&&e.jsx(D,{type:exports.BTN_TYPES.BUTTON,onClick:()=>d("",{shouldClearFilters:!1}),variant:exports.BTN_VARIANTS.SECONDARY,icon:"mdi:restore"}),e.jsx(D,{type:exports.BTN_TYPES.SUBMIT,variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:magnify"})]})})]})})}function Mt({className:t,children:a,header:i,bodyContent:r,bodyFooter:n,bodyHeader:o,sideContent:l,showSidebar:d}){const c=s("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":!l});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s("w-full flex flex-col",t),children:[e.jsx("div",{className:"m-auto md:py-0 w-full",children:i}),e.jsxs("div",{className:s("md:grid m-auto md:py-0 w-full",{"md:grid-cols-searchLayout":!l,"md:grid-cols-searchLayoutWithSidebar":l}),children:[!T.isMobile&&e.jsx("div",{className:c,children:l}),e.jsxs("div",{className:s("p-0 pt-2 md:p-6 md:pr-0",{"md:pl-0":!l}),children:[e.jsx("div",{className:"flex flex-row gap-8 items-center justify-end",children:o}),e.jsx("div",{className:"relative",children:a||r}),e.jsx("div",{className:"flex items-center justify-around",children:n})]})]})]}),T.isMobile&&d&&e.jsx("div",{className:"fixed z-10 w-full top-0 left-0 right-0 bottom-0 bg-bodyBackground px-4 overflow-scroll",children:l})]})}function Ut(t){var{children:a,className:i,gridClasses:r}=t,n=P(t,["children","className","gridClasses"]);const o=r||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return e.jsx("ul",Object.assign({className:s("relative grid gap-4 mb-4",o,i)},n,{children:a}))}function Ft(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function Bt(e,t){if(e)return e[t]}function Gt(e){const t=Bt(e,"snippet")||(s=function(e){return Bt(e,"raw")}(e),s?String(s).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):"");var s;return Array.isArray(t)?t.join(", "):t}function Ht({className:t,result:a,as:i,cardMap:r={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:n,titleField:o,imageField:l,videoField:d,descriptionField:c,metaDataFields:u,cardProps:m}=r,p=n&&Gt(a[n.fieldName]),x=o&&Gt(a[o.fieldName]),h=l&&Gt(a[l.fieldName]),v=d&&d.formatter?d.formatter(Gt(a[d.fieldName])):d&&Gt(a[d.fieldName]),f=c&&Gt(a[c.fieldName]),N=u&&u.map((e=>{const t=Gt(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)}));return e.jsx("li",{className:s("relative",t),children:(()=>{const t={id:p,title:x,image:{src:h||"",alt:x||"",title:x||"",width:500,height:500},video:v,description:f,metaData:N,actions:r.actionsData,onClick:r.onClickLink};switch(i){case exports.ResultAsTypes.cardMedia:return e.jsx(Me,Object.assign({variant:exports.CardVariant.MEDIA,data:t},m));case exports.ResultAsTypes.cardVideo:return e.jsx(Me,Object.assign({variant:exports.CardVariant.VIDEO,data:t},m,{isMuted:!1}));default:return e.jsx(Me,Object.assign({variant:exports.CardVariant.BASIC,data:t},m))}})()})}function Yt({showOptions:s,sortOptions:a,resultAs:i=exports.ResultAsTypes.cardBasic,ResultFieldMap:r,config:n={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:o=[],noSidebar:l=!1,customConnector:d,showPagingInfo:c,gridClasses:u,initialState:m={},showTextSearch:p=!0}){const x=Oe(),h=t.useMemo((()=>{const e={host:process.env.NEXT_PUBLIC_ELASTICSEARCH_HOST||process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.NEXT_PUBLIC_ELASTICSEARCH_INDEX||process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.NEXT_PUBLIC_ELASTICSEARCH_API_KEY||process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""};return new S(d||e)}),[]),v=t.useMemo((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:!0,apiConnector:h,hasA11yNotifications:!0,searchQuery:{filters:n.filters||[],search_fields:n.searchFields||{},result_fields:n.resultsFields||{},facets:n.facets},autocompleteQuery:{results:{search_fields:{title:{},description:{}},resultsPerPage:5,result_fields:{title:{snippet:{size:100,fallback:!0}}}}},initialState:Object.assign({resultsPerPage:(null==s?void 0:s[0])||8},m)})),[n]),[f,N]=t.useState(!1),E=()=>{N((e=>!e))};return e.jsx(A.SearchProvider,{config:v,children:e.jsx(A.WithSearch,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:t,setSearchTerm:d})=>{var m;return e.jsx(e.Fragment,{children:e.jsx(A.ErrorBoundary,{children:e.jsx(Mt,{noSidebar:l,showSidebar:f,header:p&&e.jsx(A.SearchBox,{view:s=>e.jsx(kt,Object.assign({},s,{wasSearched:t,placeholder:n.initialPlaceholder,allowReset:!0,resetTrigger:d}))}),sideContent:!l&&o&&e.jsxs("div",{children:[e.jsx("div",{className:"md:hidden flex justify-end pt-2 -mb-2",children:e.jsx(D,{onClick:E,icon:"mdi:close",children:null===(m=null==x?void 0:x.UI)||void 0===m?void 0:m.HIDE_FILTERS})}),t&&a&&e.jsx(A.Sorting,{label:"Sort by",sortOptions:a,view:Lt}),null==o?void 0:o.map((({field:t,label:s,view:a})=>e.jsx(A.Facet,{field:t,label:s,view:a},t)))]}),bodyContent:e.jsx(A.Results,{shouldTrackClickThrough:!1,resultView:t=>e.jsx(Ht,Object.assign({},t,{as:i,cardMap:r})),className:"list-none p-0 m-0",view:t=>e.jsx(Ut,Object.assign({},t,{gridClasses:u}))}),bodyHeader:e.jsxs(e.Fragment,{children:[t&&c&&e.jsx(A.PagingInfo,{view:Pt}),t&&s&&e.jsx(A.ResultsPerPage,{view:Dt,options:s}),t&&a&&l&&e.jsx(A.Sorting,{label:"Sort by",sortOptions:a,view:Lt}),t&&!l&&e.jsx("div",{className:"block md:hidden",children:e.jsx(D,{rounded:!0,onClick:E,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e.jsx(A.Paging,{view:wt})})})})}})})}function Wt({className:t,label:a,onChange:i,options:r}){const n=r.map((e=>({value:e.value,label:`${e.value} (${e.count})`})));return e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(J,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(Ge,{id:a,options:n,onChange:e=>i(e.target.value)})]})}function Vt({className:t,label:a,onRemove:i,onSelect:r,options:n}){const o=n.filter((e=>e.selected)).map((e=>e.value))[0];return e.jsx("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:e.jsxs("div",{children:[e.jsx(J,{transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsxs("ul",{className:"ul list-none p-0",children:[o&&e.jsxs("li",{className:"m-0 flex justify-between items-center flex-1",children:[Ft(o),e.jsx("span",{className:"ml-1 px-1",children:e.jsx(D,{onClick:()=>i(o),size:exports.BTN_SIZES.SMALL,rounded:!0,children:e.jsx(y,{name:"mdi:close"})})})]}),!o&&n.map((t=>{const s=Ft(t.value);return e.jsxs("li",{className:"m-0 flex justify-between",children:[e.jsx("a",{className:"no-underline visited:text-bodyText","data-transaction-name":`facet - ${a}`,href:"/",onClick:e=>{e.preventDefault(),r(t.value)},children:e.jsx("label",{className:"label pl-0 leading-none text-bodyText dark:text-darkBodyText",children:s})}),e.jsx(W,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.MEDIUM,children:t.count.toLocaleString("en")})]},s)}))]})]})})}function zt({className:t,label:a,onMoreClick:i,onRemove:r,onSelect:n,options:o,showMore:l,showSearch:d,onSearch:c,searchPlaceholder:u}){return o?e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(J,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),d&&e.jsx("div",{className:"mt-1",children:e.jsx(de,{type:le.SEARCH,placeholder:u||"Search",onChange:e=>{c(e.target.value)}})}),e.jsxs("div",{className:"my-4",children:[(null==o?void 0:o.length)<1&&e.jsx("div",{children:"No matching options"}),null==o?void 0:o.map((t=>{const s=t.selected,i=t.value,o=Ft(i);return e.jsxs("div",{className:"flex justify-between pb-2",children:[e.jsx(M,{id:`facet_${a}${o}`,"data-transaction-name":`facet - ${a}`,checked:s,onChange:()=>s?r(i):n(i),label:o}),e.jsx(W,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.SMALL,children:t.count.toLocaleString("en")})]},o)}))]}),l&&e.jsx(D,{size:exports.BTN_SIZES.SMALL,variant:exports.BTN_VARIANTS.TERTIARY,onClick:i,"aria-label":"Show more options",children:"+ More"})]}):e.jsx(e.Fragment,{children:"Options required"})}_t.displayName="OTPInput",exports.ResultAsTypes=void 0,(Rt=exports.ResultAsTypes||(exports.ResultAsTypes={})).cardBasic="cardBasic",Rt.cardMedia="cardMedia",Rt.cardVideo="cardVideo",Lt.displayName="Sorting",wt.displayName="Paging",Dt.displayName="ResultsPerPage",Pt.displayName="PagingInfo",kt.displayName="SearchBox",Mt.displayName="Layout",Ut.displayName="Results",Ht.displayName="Result",Wt.displayName="SingleSelectFacet",Vt.displayName="SingleLinksFacet",zt.displayName="MultiCheckboxFacet";const qt=({handleSubmit:t})=>{const s=Oe();return e.jsx("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e.jsx(Fe,{onSubmit:t,submit:s.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(He,{name:"password",autoComplete:"new-password",type:exports.FIELD_TYPES.PASSWORD,label:s.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:at})})})};qt.displayName="ResetPasswordForm";const Kt=({handleSubmit:t})=>{const s=Oe();return e.jsx("div",{"data-testid":"ResetPasswordAuthForm",className:"form-wrapper",children:e.jsxs(Fe,{onSubmit:t,submit:s.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e.jsx(He,{name:"current-password",autoComplete:"current-password",type:exports.FIELD_TYPES.PASSWORD,label:s.FORMS.RESET_PASSWORD_FORM_AUTH.CURRENT_PASSWORD,required:!0,validations:at}),e.jsx(He,{name:"new-password",autoComplete:"new-password",type:exports.FIELD_TYPES.PASSWORD,label:s.FORMS.RESET_PASSWORD_FORM_AUTH.NEW_PASSWORD,required:!0,validations:at})]})})};Kt.displayName="ResetPasswordAuthForm";const Zt=({testID:t,initialValues:s,handleSubmit:a,avatarUpdateCallback:i})=>{const r=Oe();return e.jsx("div",{"data-testid":t||'"ProfileForm"',className:"form-wrapper",children:e.jsxs(Fe,{onSubmit:a,submit:r.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx("div",{className:"mb-4 items-center justify-center flex",children:e.jsx(ue,{name:"avatar",initValue:null==s?void 0:s.picture,fileUpdateCallback:i})}),e.jsx(He,{name:"picture",type:exports.FIELD_TYPES.HIDDEN}),e.jsx(He,{name:"firstName",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e.jsx(He,{name:"lastName",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e.jsx(He,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:r.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:st})]})})};Zt.displayName="ProfileForm";const $t=t.createContext({config:void 0}),Xt=({testID:t,title:s,image:a,user:i,logoutCallback:r,resetPasswordCallback:n,menu:o})=>{var l;const d=Oe();return e.jsxs(St,{"data-testid":t||"AccountScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(ue,{initValue:null===(l=null==i?void 0:i.profile)||void 0===l?void 0:l.picture,isEditable:!1})}),o&&e.jsx("div",{children:e.jsx(se,{className:"flex items-center flex-col justify-center gap-2",children:null==o?void 0:o.map(((t,s)=>e.jsx(ie,{as:"div",title:t.title,icon:t.icon,onClick:t.onClick},s)))})}),e.jsxs("div",{className:"my-4 flex flex-col gap-8 justify-center items-center",children:[e.jsxs("div",{className:"flex items-center flex-col justify-center gap-1",children:[e.jsx($,{tag:exports.HEADING_TAGS.H5,flush:!0,children:d.UI.SHARE}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(c.FacebookShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(y,{name:"mdi:facebook"})}),e.jsx(c.TwitterShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(y,{name:"mdi:twitter"})}),e.jsx(c.LinkedinShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(y,{name:"mdi:linkedin"})}),e.jsx(c.WhatsappShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(y,{name:"mdi:whatsapp"})})]})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[n&&e.jsx(D,{onClick:n,icon:"mdi:lock-reset",children:null==d?void 0:d.UI.RESET_PASSWORD}),r&&e.jsx(D,{onClick:r,icon:"mdi:logout",children:null==d?void 0:d.UI.LOGOUT})]})]})]})]})};Xt.displayName="AccountScreen";const Qt=({testID:t,title:s,image:a,formProps:i})=>e.jsxs(St,{"data-testid":t||"AuthScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx("div",{className:"flex justify-center",children:e.jsx(ot,Object.assign({},i))})]});Qt.displayName="AuthScreen";const Jt=({testID:t,title:s,image:a,data:i,onPressCallback:r,isLoading:n,noDataMessage:o})=>{var l;const d=Oe();return e.jsxs(St,{"data-testid":t||"CardGridScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsxs("div",{children:[n&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),i&&e.jsx(Nt,{data:i,onPressCallback:r}),!i&&!n&&e.jsx("div",{children:e.jsx(W,{children:o||(null===(l=null==d?void 0:d.UI)||void 0===l?void 0:l.NO_DATA)})})]})]})};Jt.displayName="CardGridScreen";const es=({testID:t,title:s,image:a,searchProps:i})=>e.jsxs(St,{"data-testid":t||"CatalogueScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx("div",{children:e.jsx(Yt,Object.assign({},i))})]});es.displayName="CatalogueScreen";const ts=({testID:t,title:s,image:a,data:i,isLoading:r,onPressCallback:n})=>e.jsxs(St,{"data-testid":t||"ChallengeLibraryScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),r&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),i&&e.jsx("div",{children:e.jsx(Nt,{data:i,onPressCallback:n})})]});ts.displayName="ChallengeLibraryScreen";const ss="MMMM dd, yyyy",as="HH:mm",is=({testID:s,title:a,image:i,created:r=0,body:n,days:o,puchaseLabel:l,hasAccess:d=!1,onPressCallback:c,purchaseCallback:u,isLoading:m})=>{const p=Oe(),x=t.useMemo((()=>j.format(new Date(1e3*r),ss)),[r]);return e.jsxs(St,{"data-testid":s||"ChallengeScreen",image:i,children:[e.jsxs("div",{children:[a&&e.jsx(Ue,{text:a}),e.jsxs(J,{children:[p.UI.CREATED,": ",x]}),!d&&e.jsxs("div",{className:"flex flex-col gap-2 mb-4",children:[e.jsx(W,{bold:!0,className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e.jsx(W,{className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e.jsx("div",{children:e.jsx(D,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:u,isLoading:m,disabled:m,children:l})}),e.jsxs(W,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:["** ",p.GLOBAL.SCREENS.CHALLENGE.PAYMENT_NOTE]})]})]}),e.jsx("div",{children:n&&e.jsx(fe,{data:n})}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:null==o?void 0:o.map((t=>e.jsx(Me,{variant:exports.CardVariant.MEDIA,data:{id:t.id,title:t.title,image:{src:t.image,alt:t.title},raised:!0,onClick:d?()=>c(t.video):void 0,accessRestriced:!d}},t.id)))})]})};is.displayName="ChallengeScreen";const rs=({testID:t,title:s,image:a,updated:i,content:r,isLoading:n})=>{var o;const l=Oe(),d=i?j.format(new Date(1e3*i),"MMMM dd, yyyy HH:mm"):void 0;return e.jsxs(St,{"data-testid":t||"ContentScreen",image:a,children:[n&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),s&&e.jsx(Ue,{text:s}),i&&e.jsx("div",{children:e.jsxs(W,{children:[null===(o=null==l?void 0:l.UI)||void 0===o?void 0:o.UPDATED,": ",d]})}),r&&e.jsx("div",{children:e.jsx(fe,{data:r})})]})};rs.displayName="ContentScreen";const ns=({testID:t,title:s,image:a,user:i,latestData:r,recentdata:n,stats:o,promo:l,news:d,statsIsLoading:c,promosIsLoading:u,dataIsLoading:m,handleLatestDataPress:p,handleRecentDataPress:x,handleNewsDataPress:h})=>{var v,f,N,E,g,S;const A=Oe();return e.jsxs(St,{"data-testid":t||"DashboardScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx("div",{children:e.jsxs(W,{children:[null===(v=null==A?void 0:A.UI)||void 0===v?void 0:v.WELCOME," ",null==i?void 0:i.name]})}),c&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),!c&&o&&e.jsxs("div",{className:"mb-8",children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(f=null==A?void 0:A.UI)||void 0===f?void 0:f.ACTIVITY}),e.jsx("div",{className:"flex flex-row gap-4",children:o.map(((t,s)=>e.jsx("div",{children:e.jsx(Me,{variant:t.variant,data:t.data})},`${t.data.id}-${s}`)))})]}),m&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),!m&&r&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(N=null==A?void 0:A.UI)||void 0===N?void 0:N.LATEST_WORKOUTS}),e.jsx("div",{children:e.jsx(ct,{data:r,onPressCallback:p,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),u&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),!u&&l&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,flush:!0,children:null===(E=null==A?void 0:A.UI)||void 0===E?void 0:E.WHATS_NEWS}),e.jsx(ht,Object.assign({},l,{withBg:!0,spacing:exports.SPACING.ATOM}))]}),m&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),!m&&n&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(g=null==A?void 0:A.UI)||void 0===g?void 0:g.RECENTLY_ADDED}),e.jsx("div",{children:e.jsx(ct,{data:n,onPressCallback:x,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),u&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),!u&&d&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(S=null==A?void 0:A.UI)||void 0===S?void 0:S.WHATS_NEW}),e.jsx("div",{children:e.jsx(ct,{data:d,onPressCallback:h,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]})]})};ns.displayName="DashboardScreen";const os=({testID:t,title:s,image:a,data:i,isLoading:r})=>e.jsxs(St,{"data-testid":t||"FAQScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),!i&&r&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),i&&e.jsx(bt,{data:null==i?void 0:i.map((e=>({title:e.title||"",content:e.answer||""})))})]});os.displayName="FAQScreen";const ls=({testID:t,image:s,panelVideoProps:a,panelFeatureProps:i,panelCardsProps:r,panelHerosProps:n,panelDataCardsProps:o,panelProductProps:l})=>e.jsxs(St,{"data-testid":t||"HomeScreen",image:s,isFlush:!0,children:[a&&e.jsx(ft,Object.assign({},a)),e.jsxs(Ke,{children:[i&&e.jsx(pt,Object.assign({},i)),r&&e.jsx(mt,Object.assign({},r)),null==n?void 0:n.map(((t,s)=>e.jsx(ht,Object.assign({},t),s))),o&&e.jsx(mt,Object.assign({},o)),l&&e.jsx(vt,Object.assign({},l))]})]});ls.displayName="HomeScreen";const ds=({testID:t,title:s})=>{var a;const i=Oe();return e.jsx(St,{"data-testid":t||"LogoutScreen",children:e.jsxs("div",{children:[s&&e.jsx(Ue,{text:s}),e.jsx(W,{children:null===(a=null==i?void 0:i.UI)||void 0===a?void 0:a.PLEASE_WAIT}),e.jsx(w,{})]})})};ds.displayName="LogoutScreen";const cs=({testID:t,title:s,image:a,menu:i,isLoading:r=!1})=>e.jsxs(St,{"data-testid":t||"MenuScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),r&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),i&&e.jsx(se,{children:i.map((t=>e.jsx(ie,{as:"div",icon:t.icon,onClick:t.onPress,title:t.title},t.title)))})]});cs.displayName="MenuScreen";const us=({testID:t,title:s,message:a})=>{var i,r,n,o,l,d,c;const u=Oe();return e.jsx(St,{"data-testid":t||'"NotFound"',children:e.jsxs(e.Fragment,{children:[e.jsx(Ue,{text:s||(null===(i=null==u?void 0:u.UI)||void 0===i?void 0:i.PAGE_NOT_FOUND_OOPS)}),e.jsx(W,{children:a||(null===(r=null==u?void 0:u.UI)||void 0===r?void 0:r.PAGE_NOT_FOUND_MESSAGE_OOPS)}),e.jsx($,{tag:exports.HEADING_TAGS.H5,flush:!0,children:e.jsxs("span",{className:"flex flex-row gap-2 items-center",children:[e.jsx(y,{name:"mdi:lightbulb"})," ",null===(n=null==u?void 0:u.UI)||void 0===n?void 0:n.WHAT_CAN_YOU_DO]})}),e.jsxs(se,{as:exports.ListTag.UL,children:[e.jsx(ie,{as:"li",children:null===(o=null==u?void 0:u.UI)||void 0===o?void 0:o.DOUBLE_CHECK_URL}),e.jsx(ie,{as:"li",children:null===(l=null==u?void 0:u.UI)||void 0===l?void 0:l.RETURN_TO_HOMEPAGE}),e.jsxs(ie,{as:"li",children:[null===(d=null==u?void 0:u.UI)||void 0===d?void 0:d.EXPLORE_SITE,"."]})]}),e.jsx(W,{children:null===(c=null==u?void 0:u.UI)||void 0===c?void 0:c.STILL_NEED_HELP})]})})};us.displayName="NotFoundScreen";const ms=({testID:t,title:s,image:a,handleSubmitCallback:i})=>e.jsxs(St,{"data-testid":t||'"PasswordReset"',image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx(qt,{handleSubmit:i})]});ms.displayName="PasswordResetScreen";const ps=({testID:t,title:s,image:a,handleSubmitCallback:i})=>e.jsxs(St,{"data-testid":t||"PasswordResetAuthScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx(Kt,{handleSubmit:i})]});ps.displayName="PasswordResetAuthScreen";const xs=({testID:t,title:s,image:a,user:i,handleProfileSubmit:r,profilePicUpdateCallback:n})=>e.jsxs(St,{"data-testid":t||"ProfileScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),e.jsx(Zt,{initialValues:null==i?void 0:i.profile,handleSubmit:r,avatarUpdateCallback:n})]});xs.displayName="ProfileScreen";const hs=({testID:s,end:a,live:i,start:r,title:n})=>{const o=t.useMemo((()=>j.format(new Date(1e3*r),ss)),[r]),l=t.useMemo((()=>j.format(new Date(1e3*r),as)),[r]),d=t.useMemo((()=>j.format(new Date(1e3*a),as)),[a]);return e.jsxs("div",{"data-testid":s||'"ScheduleItem"',className:"foo-bar",children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:n}),e.jsxs(J,{children:[o,": ",l," - ",d]}),i&&e.jsx("div",{children:e.jsx(xt,{url:i,isYoutube:!0})})]})};hs.displayName="ScheduleItem";const vs=({testID:s,raised:a=!1,scheduleItems:i,hasAccess:r})=>{var n,o,l,d;const c=Oe(),[u,m]=t.useState(0),[p,x]=t.useState([]),h=t.useMemo((()=>{var t;return null===(t=null==i?void 0:i.days)||void 0===t?void 0:t.map(((t,s)=>{var a,i;const r=Object.keys(t)[0],n=null===(a=t[r])||void 0===a?void 0:a[0];return n?{day:r.charAt(0).toUpperCase()+r.slice(1),component:e.jsx(hs,{title:n.title,live:n.live,start:n.start,end:n.end})}:{day:r.charAt(0).toUpperCase()+r.slice(1),component:e.jsx("div",{children:e.jsx($,{tag:exports.HEADING_TAGS.H4,children:null===(i=null==c?void 0:c.UI)||void 0===i?void 0:i.NO_CLASS})})}}))}),[i]);t.useEffect((()=>{const e=function(){const e=new Date,t=e.getDay(),s=new Date(e);s.setDate(e.getDate()-t);const a=[];for(let t=0;t<7;t++){const i=new Date(s);i.setDate(s.getDate()+t),a.push({date:i,isToday:i.toDateString()===e.toDateString()})}return a}(),t=e.findIndex((e=>e.isToday));m(t),x(e)}),[]);const v=t.useMemo((()=>p.map(((e,t)=>{const s=e.date.toLocaleString("en-US",{weekday:"short"}),a=e.date.toLocaleString("en-US",{day:"numeric"}),i=u===t;return{variant:exports.CardVariant.BASIC,data:{id:`${t}`,title:s,description:a,raised:!0},className:i?"bg-tertiary":"bg-bodyBackground"}}))),[p,u]),f=t.useMemo((()=>null==h?void 0:h.find((e=>{var t;return e.day===(null===(t=null==p?void 0:p[u])||void 0===t?void 0:t.date.toLocaleString("en-US",{weekday:"long"}))}))),[h,p,u]);return e.jsxs("div",{"data-testid":s||'"Schedule"',children:[e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H5,transform:exports.HEADING_TRANSFORM.UPPERCASE,children:null===(n=null==c?void 0:c.UI)||void 0===n?void 0:n.THIS_WEEK}),e.jsx("div",{children:e.jsx(ct,{data:v,onPressCallback:e=>{m(Number(e))},count:7,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500,onSnapToItem:()=>{},shouldScrollOnClick:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:7}},{breakpoint:600,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:3}}]}})})]}),e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H5,transform:exports.HEADING_TRANSFORM.UPPERCASE,children:null===(o=null==c?void 0:c.UI)||void 0===o?void 0:o.TODAYS_ITEMS}),!r&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H2,children:null===(l=null==c?void 0:c.UI)||void 0===l?void 0:l.ACCESS_RESTRICTED}),e.jsx(W,{children:null===(d=null==c?void 0:c.UI)||void 0===d?void 0:d.UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE})]}),r&&(null==f?void 0:f.component)]})]})};vs.displayName="Schedule";const fs=({testID:t,title:s,image:a,scheduleData:i,isLoading:r=!1})=>e.jsxs(St,{"data-testid":t||"ScheduleScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),!i&&r&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(w,{})}),i&&e.jsx("div",{children:e.jsx(vs,Object.assign({},i))})]});fs.displayName="ScheduleScreen";const Ns=({testID:t,title:s,image:a,user:i,handleSubscriptionSubmit:r,subscriptionCallback:n,subscriptionManagerProps:o})=>{var l,d;const c=Oe();return e.jsxs(St,{"data-testid":t||"SubscriptionScreen",image:a,children:[s&&e.jsx(Ue,{text:s}),o&&e.jsx("div",{children:e.jsx(Tt,Object.assign({},o))}),n&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(W,{children:null===(l=null==c?void 0:c.UI)||void 0===l?void 0:l.NEED_HELP_WITH_SUBSCRIPTION}),e.jsx("div",{children:e.jsx(D,{icon:"mdi:help",variant:exports.BTN_VARIANTS.SECONDARY,onClick:n,children:null===(d=null==c?void 0:c.UI)||void 0===d?void 0:d.CONTACT_SUPPORT})})]})})]})};Ns.displayName="SubscriptionScreen";const Es=({testID:s,id:a,title:i,image:r,description:n,created:o=0,duration:l="PT0M",level:d,section:c,video:u,category:m,type:p,likeCallback:h,completedCallback:v,favouriteCallback:f,isLiked:N,isCompleted:E,isFavourite:g,relatedWorkouts:S,hasActiveSubscription:A,htmlDetails:b,noSubActionCallback:I})=>{var T,C;const y=Oe();t.useState(2);const O=t.useRef(null),_=t.useMemo((()=>j.format(new Date(1e3*o),ss)),[o]),R=t.useMemo((()=>je(l)),[l]);return e.jsxs(St,{"data-testid":s||"WorkoutScreen",image:r,children:[e.jsxs("div",{children:[i&&e.jsx(Ue,{text:i}),e.jsx("div",{children:e.jsxs(J,{children:[y.UI.CREATED,": ",_]})}),e.jsx("div",{children:e.jsxs(J,{children:[y.UI.DURATION,": ",R]})})]}),!A&&e.jsxs("div",{children:[e.jsx($,{tag:exports.HEADING_TAGS.H4,children:y.UI.NO_ACTIVE_SUBSCRIPTION}),e.jsx(W,{children:null===(T=null==y?void 0:y.UI)||void 0===T?void 0:T.NO_SUBSCRIPTION_DETAILS}),I&&e.jsx(D,{rounded:!0,onClick:I,icon:"mdi:arrow-right-circle-outline",children:y.UI.SUBSCRIBE})]}),e.jsx("div",{children:e.jsx(D,{onClick:()=>{O.current.play(),O.current.fullscreen()},icon:"mdi:play",iconFirst:!0,disabled:!A,children:y.UI.START_WORKOUT})}),e.jsxs("div",{className:"flex gap-2",children:[h&&e.jsx("div",{children:e.jsx(D,{onClick:()=>{a&&h&&"function"==typeof h&&(h(a),x.toast.info(N?y.UI.REMOVED_LIKE:y.UI.ADDED_LIKE))},icon:N?"mdi:heart":"mdi:heart-outline",disabled:!A,rounded:!0})}),f&&e.jsx("div",{children:e.jsx(D,{onClick:()=>{a&&f&&"function"==typeof f&&(f(a),x.toast.info(g?y.UI.REMOVED_FAVORITE:y.UI.ADDED_FAVORITE))},icon:g?"mdi:bookmark":"mdi:bookmark-outline",disabled:!A,rounded:!0})}),v&&e.jsx("div",{children:e.jsx(D,{onClick:()=>{a&&v&&"function"==typeof v&&(v(a),x.toast.info(E?y.UI.MARKED_INCOMPLETE:y.UI.MARKED_COMPLETE))},icon:E?"mdi:battery":"mdi:battery-outline",disabled:!A,rounded:!0})})]}),!b&&n&&e.jsx("div",{children:e.jsx(W,{children:n})}),b&&n&&e.jsx("div",{children:e.jsx(fe,{data:n})}),e.jsxs("div",{className:"flex gap-4 flex-wrap",children:[d&&e.jsxs(J,{children:[y.UI.LEVEL,": ",d]}),c&&e.jsxs(J,{children:[y.UI.SECTION,": ",c]}),m&&e.jsxs(J,{children:[y.UI.CATEGORY,": ",m]}),p&&e.jsxs(J,{children:[y.UI.TYPE,": ",p]})]}),S&&e.jsx(e.Fragment,{children:e.jsx(Ke,{isNarrow:!0,padded:!0,children:e.jsx("div",{children:e.jsx($,{children:null===(C=null==y?void 0:y.UI)||void 0===C?void 0:C.RELATED})})})}),e.jsx("div",{className:"fixed top-0 left-0 w-0 h-0 overflow-hidden",children:e.jsx(xt,{ref:O,fullScreenOnly:!0,options:{autoplay:!1,playsinline:!1,preferFullWindow:!0},sources:[{src:u,type:"application/x-mpegURL"}],onExitFullScreenCallback:()=>{console.log("onExitFullScreenCallback exit full screen"),O.current.pause()}})})]})};Es.displayName="WorkoutScreen";const gs={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 Ss(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var As={exports:{}},bs={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]},Is={exports:{}},Ts=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))},js=Array.prototype.concat,Cs=Array.prototype.slice,ys=Is.exports=function(e){for(var t=[],s=0,a=e.length;s<a;s++){var i=e[s];Ts(i)?t=js.call(t,Cs.call(i)):t.push(i)}return t};ys.wrap=function(e){return function(){return e(ys(arguments))}};var Os=Is.exports,_s=bs,Rs=Os,Ls=Object.hasOwnProperty,ws=Object.create(null);for(var Ds in _s)Ls.call(_s,Ds)&&(ws[_s[Ds]]=Ds);var Ps=As.exports={to:{},get:{}};function ks(e,t,s){return Math.min(Math.max(t,e),s)}function Ms(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}Ps.get=function(e){var t,s;switch(e.substring(0,3).toLowerCase()){case"hsl":t=Ps.get.hsl(e),s="hsl";break;case"hwb":t=Ps.get.hwb(e),s="hwb";break;default:t=Ps.get.rgb(e),s="rgb"}return t?{model:s,value:t}:null},Ps.get.rgb=function(e){if(!e)return null;var t,s,a,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],s=0;s<3;s++){var r=2*s;i[s]=parseInt(t.slice(r,r+2),16)}a&&(i[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],s=0;s<3;s++)i[s]=parseInt(t[s]+t[s],16);a&&(i[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)i[s]=parseInt(t[s+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[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]:Ls.call(_s,t[1])?((i=_s[t[1]])[3]=1,i):null:null;for(s=0;s<3;s++)i[s]=Math.round(2.55*parseFloat(t[s+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(s=0;s<3;s++)i[s]=ks(i[s],0,255);return i[3]=ks(i[3],0,1),i},Ps.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 s=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,ks(parseFloat(t[2]),0,100),ks(parseFloat(t[3]),0,100),ks(isNaN(s)?1:s,0,1)]}return null},Ps.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 s=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,ks(parseFloat(t[2]),0,100),ks(parseFloat(t[3]),0,100),ks(isNaN(s)?1:s,0,1)]}return null},Ps.to.hex=function(){var e=Rs(arguments);return"#"+Ms(e[0])+Ms(e[1])+Ms(e[2])+(e[3]<1?Ms(Math.round(255*e[3])):"")},Ps.to.rgb=function(){var e=Rs(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]+")"},Ps.to.rgb.percent=function(){var e=Rs(arguments),t=Math.round(e[0]/255*100),s=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+s+"%, "+a+"%)":"rgba("+t+"%, "+s+"%, "+a+"%, "+e[3]+")"},Ps.to.hsl=function(){var e=Rs(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Ps.to.hwb=function(){var e=Rs(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Ps.to.keyword=function(e){return ws[e.slice(0,3)]};var Us=As.exports;const Fs=bs,Bs={};for(const e of Object.keys(Fs))Bs[Fs[e]]=e;const Gs={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 Hs=Gs;for(const e of Object.keys(Gs)){if(!("channels"in Gs[e]))throw new Error("missing channels property: "+e);if(!("labels"in Gs[e]))throw new Error("missing channel labels property: "+e);if(Gs[e].labels.length!==Gs[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:s}=Gs[e];delete Gs[e].channels,delete Gs[e].labels,Object.defineProperty(Gs[e],"channels",{value:t}),Object.defineProperty(Gs[e],"labels",{value:s})}Gs.rgb.hsl=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.min(t,s,a),r=Math.max(t,s,a),n=r-i;let o,l;r===i?o=0:t===r?o=(s-a)/n:s===r?o=2+(a-t)/n:a===r&&(o=4+(t-s)/n),o=Math.min(60*o,360),o<0&&(o+=360);const d=(i+r)/2;return l=r===i?0:d<=.5?n/(r+i):n/(2-r-i),[o,100*l,100*d]},Gs.rgb.hsv=function(e){let t,s,a,i,r;const n=e[0]/255,o=e[1]/255,l=e[2]/255,d=Math.max(n,o,l),c=d-Math.min(n,o,l),u=function(e){return(d-e)/6/c+.5};return 0===c?(i=0,r=0):(r=c/d,t=u(n),s=u(o),a=u(l),n===d?i=a-s:o===d?i=1/3+t-a:l===d&&(i=2/3+s-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*r,100*d]},Gs.rgb.hwb=function(e){const t=e[0],s=e[1];let a=e[2];const i=Gs.rgb.hsl(e)[0],r=1/255*Math.min(t,Math.min(s,a));return a=1-1/255*Math.max(t,Math.max(s,a)),[i,100*r,100*a]},Gs.rgb.cmyk=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.min(1-t,1-s,1-a);return[100*((1-t-i)/(1-i)||0),100*((1-s-i)/(1-i)||0),100*((1-a-i)/(1-i)||0),100*i]},Gs.rgb.keyword=function(e){const t=Bs[e];if(t)return t;let s,a=1/0;for(const t of Object.keys(Fs)){const n=(r=Fs[t],((i=e)[0]-r[0])**2+(i[1]-r[1])**2+(i[2]-r[2])**2);n<a&&(a=n,s=t)}var i,r;return s},Gs.keyword.rgb=function(e){return Fs[e]},Gs.rgb.xyz=function(e){let t=e[0]/255,s=e[1]/255,a=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;return[100*(.4124*t+.3576*s+.1805*a),100*(.2126*t+.7152*s+.0722*a),100*(.0193*t+.1192*s+.9505*a)]},Gs.rgb.lab=function(e){const t=Gs.rgb.xyz(e);let s=t[0],a=t[1],i=t[2];s/=95.047,a/=100,i/=108.883,s=s>.008856?s**(1/3):7.787*s+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*(s-a),200*(a-i)]},Gs.hsl.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;let i,r,n;if(0===s)return n=255*a,[n,n,n];i=a<.5?a*(1+s):a+s-a*s;const o=2*a-i,l=[0,0,0];for(let e=0;e<3;e++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,n=6*r<1?o+6*(i-o)*r:2*r<1?i:3*r<2?o+(i-o)*(2/3-r)*6:o,l[e]=255*n;return l},Gs.hsl.hsv=function(e){const t=e[0];let s=e[1]/100,a=e[2]/100,i=s;const r=Math.max(a,.01);a*=2,s*=a<=1?a:2-a,i*=r<=1?r:2-r;return[t,100*(0===a?2*i/(r+i):2*s/(a+s)),100*((a+s)/2)]},Gs.hsv.rgb=function(e){const t=e[0]/60,s=e[1]/100;let a=e[2]/100;const i=Math.floor(t)%6,r=t-Math.floor(t),n=255*a*(1-s),o=255*a*(1-s*r),l=255*a*(1-s*(1-r));switch(a*=255,i){case 0:return[a,l,n];case 1:return[o,a,n];case 2:return[n,a,l];case 3:return[n,o,a];case 4:return[l,n,a];case 5:return[a,n,o]}},Gs.hsv.hsl=function(e){const t=e[0],s=e[1]/100,a=e[2]/100,i=Math.max(a,.01);let r,n;n=(2-s)*a;const o=(2-s)*i;return r=s*i,r/=o<=1?o:2-o,r=r||0,n/=2,[t,100*r,100*n]},Gs.hwb.rgb=function(e){const t=e[0]/360;let s=e[1]/100,a=e[2]/100;const i=s+a;let r;i>1&&(s/=i,a/=i);const n=Math.floor(6*t),o=1-a;r=6*t-n,1&n&&(r=1-r);const l=s+r*(o-s);let d,c,u;switch(n){default:case 6:case 0:d=o,c=l,u=s;break;case 1:d=l,c=o,u=s;break;case 2:d=s,c=o,u=l;break;case 3:d=s,c=l,u=o;break;case 4:d=l,c=s,u=o;break;case 5:d=o,c=s,u=l}return[255*d,255*c,255*u]},Gs.cmyk.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,s*(1-i)+i)),255*(1-Math.min(1,a*(1-i)+i))]},Gs.xyz.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100;let i,r,n;return i=3.2406*t+-1.5372*s+-.4986*a,r=-.9689*t+1.8758*s+.0415*a,n=.0557*t+-.204*s+1.057*a,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*i,255*r,255*n]},Gs.xyz.lab=function(e){let t=e[0],s=e[1],a=e[2];t/=95.047,s/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;return[116*s-16,500*(t-s),200*(s-a)]},Gs.lab.xyz=function(e){let t,s,a;s=(e[0]+16)/116,t=e[1]/500+s,a=s-e[2]/200;const i=s**3,r=t**3,n=a**3;return s=i>.008856?i:(s-16/116)/7.787,t=r>.008856?r:(t-16/116)/7.787,a=n>.008856?n:(a-16/116)/7.787,t*=95.047,s*=100,a*=108.883,[t,s,a]},Gs.lab.lch=function(e){const t=e[0],s=e[1],a=e[2];let i;i=360*Math.atan2(a,s)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(s*s+a*a),i]},Gs.lch.lab=function(e){const t=e[0],s=e[1],a=e[2]/360*2*Math.PI;return[t,s*Math.cos(a),s*Math.sin(a)]},Gs.rgb.ansi16=function(e,t=null){const[s,a,i]=e;let r=null===t?Gs.rgb.hsv(e)[2]:t;if(r=Math.round(r/50),0===r)return 30;let n=30+(Math.round(i/255)<<2|Math.round(a/255)<<1|Math.round(s/255));return 2===r&&(n+=60),n},Gs.hsv.ansi16=function(e){return Gs.rgb.ansi16(Gs.hsv.rgb(e),e[2])},Gs.rgb.ansi256=function(e){const t=e[0],s=e[1],a=e[2];if(t===s&&s===a)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(s/255*5)+Math.round(a/255*5)},Gs.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 s=.5*(1+~~(e>50));return[(1&t)*s*255,(t>>1&1)*s*255,(t>>2&1)*s*255]},Gs.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]},Gs.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},Gs.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 s=t[0];3===t[0].length&&(s=s.split("").map((e=>e+e)).join(""));const a=parseInt(s,16);return[a>>16&255,a>>8&255,255&a]},Gs.rgb.hcg=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.max(Math.max(t,s),a),r=Math.min(Math.min(t,s),a),n=i-r;let o,l;return o=n<1?r/(1-n):0,l=n<=0?0:i===t?(s-a)/n%6:i===s?2+(a-t)/n:4+(t-s)/n,l/=6,l%=1,[360*l,100*n,100*o]},Gs.hsl.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=s<.5?2*t*s:2*t*(1-s);let i=0;return a<1&&(i=(s-.5*a)/(1-a)),[e[0],100*a,100*i]},Gs.hsv.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=t*s;let i=0;return a<1&&(i=(s-a)/(1-a)),[e[0],100*a,100*i]},Gs.hcg.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;if(0===s)return[255*a,255*a,255*a];const i=[0,0,0],r=t%1*6,n=r%1,o=1-n;let l=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=n,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=n;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=n,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-s)*a,[255*(s*i[0]+l),255*(s*i[1]+l),255*(s*i[2]+l)]},Gs.hcg.hsv=function(e){const t=e[1]/100,s=t+e[2]/100*(1-t);let a=0;return s>0&&(a=t/s),[e[0],100*a,100*s]},Gs.hcg.hsl=function(e){const t=e[1]/100,s=e[2]/100*(1-t)+.5*t;let a=0;return s>0&&s<.5?a=t/(2*s):s>=.5&&s<1&&(a=t/(2*(1-s))),[e[0],100*a,100*s]},Gs.hcg.hwb=function(e){const t=e[1]/100,s=t+e[2]/100*(1-t);return[e[0],100*(s-t),100*(1-s)]},Gs.hwb.hcg=function(e){const t=e[1]/100,s=1-e[2]/100,a=s-t;let i=0;return a<1&&(i=(s-a)/(1-a)),[e[0],100*a,100*i]},Gs.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Gs.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Gs.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Gs.gray.hsl=function(e){return[0,0,e[0]]},Gs.gray.hsv=Gs.gray.hsl,Gs.gray.hwb=function(e){return[0,100,e[0]]},Gs.gray.cmyk=function(e){return[0,0,0,e[0]]},Gs.gray.lab=function(e){return[e[0],0,0]},Gs.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),s=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(s.length)+s},Gs.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Ys=Hs;function Ws(e){const t=function(){const e={},t=Object.keys(Ys);for(let s=t.length,a=0;a<s;a++)e[t[a]]={distance:-1,parent:null};return e}(),s=[e];for(t[e].distance=0;s.length;){const e=s.pop(),a=Object.keys(Ys[e]);for(let i=a.length,r=0;r<i;r++){const i=a[r],n=t[i];-1===n.distance&&(n.distance=t[e].distance+1,n.parent=e,s.unshift(i))}}return t}function Vs(e,t){return function(s){return t(e(s))}}function zs(e,t){const s=[t[e].parent,e];let a=Ys[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)s.unshift(t[i].parent),a=Vs(Ys[t[i].parent][i],a),i=t[i].parent;return a.conversion=s,a}const qs=Hs,Ks=function(e){const t=Ws(e),s={},a=Object.keys(t);for(let e=a.length,i=0;i<e;i++){const e=a[i];null!==t[e].parent&&(s[e]=zs(e,t))}return s},Zs={};Object.keys(qs).forEach((e=>{Zs[e]={},Object.defineProperty(Zs[e],"channels",{value:qs[e].channels}),Object.defineProperty(Zs[e],"labels",{value:qs[e].labels});const t=Ks(e);Object.keys(t).forEach((s=>{const a=t[s];Zs[e][s]=function(e){const t=function(...t){const s=t[0];if(null==s)return s;s.length>1&&(t=s);const a=e(t);if("object"==typeof a)for(let e=a.length,t=0;t<e;t++)a[t]=Math.round(a[t]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}(a),Zs[e][s].raw=function(e){const t=function(...t){const s=t[0];return null==s?s:(s.length>1&&(t=s),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))}));const $s=Us,Xs=Zs,Qs=["keyword","gray","hex"],Js={};for(const e of Object.keys(Xs))Js[[...Xs[e].labels].sort().join("")]=e;const ea={};function ta(e,t){if(!(this instanceof ta))return new ta(e,t);if(t&&t in Qs&&(t=null),t&&!(t in Xs))throw new Error("Unknown model: "+t);let s,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof ta)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=$s.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,a=Xs[this.model].channels,this.color=t.value.slice(0,a),this.valpha="number"==typeof t.value[a]?t.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=Xs[this.model].channels;const s=Array.prototype.slice.call(e,0,a);this.color=ra(s,a),this.valpha="number"==typeof e[a]?e[a]: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 a=t.sort().join("");if(!(a in Js))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Js[a];const{labels:i}=Xs[this.model],r=[];for(s=0;s<i.length;s++)r.push(e[i[s]]);this.color=ra(r)}if(ea[this.model])for(a=Xs[this.model].channels,s=0;s<a;s++){const e=ea[this.model][s];e&&(this.color[s]=e(this.color[s]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ta.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in $s.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const s=1===t.valpha?t.color:[...t.color,this.valpha];return $s.to[t.model](s)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),s=1===t.valpha?t.color:[...t.color,this.valpha];return $s.to.rgb.percent(s)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Xs[this.model],{labels:s}=Xs[this.model];for(let a=0;a<t;a++)e[s[a]]=this.color[a];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 ta([...this.color.map(sa(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new ta([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:aa("rgb",0,ia(255)),green:aa("rgb",1,ia(255)),blue:aa("rgb",2,ia(255)),hue:aa(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:aa("hsl",1,ia(100)),lightness:aa("hsl",2,ia(100)),saturationv:aa("hsv",1,ia(100)),value:aa("hsv",2,ia(100)),chroma:aa("hcg",1,ia(100)),gray:aa("hcg",2,ia(100)),white:aa("hwb",1,ia(100)),wblack:aa("hwb",2,ia(100)),cyan:aa("cmyk",0,ia(100)),magenta:aa("cmyk",1,ia(100)),yellow:aa("cmyk",2,ia(100)),black:aa("cmyk",3,ia(100)),x:aa("xyz",0,ia(95.047)),y:aa("xyz",1,ia(100)),z:aa("xyz",2,ia(108.833)),l:aa("lab",0,ia(100)),a:aa("lab",1),b:aa("lab",2),keyword(e){return void 0!==e?new ta(e):Xs[this.model].keyword(this.color)},hex(e){return void 0!==e?new ta(e):$s.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new ta(e);const t=this.rgb().round().color;let s=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===s.length&&(s="0"+s),$s.to.hex(t)+s},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[s,a]of e.entries()){const e=a/255;t[s]=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(),s=e.luminosity();return t>s?(t+.05)/(s+.05):(s+.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 ta.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 s=t.color[0];return s=(s+e)%360,s=s<0?360+s:s,t.color[0]=s,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 s=e.rgb(),a=this.rgb(),i=void 0===t?.5:t,r=2*i-1,n=s.alpha()-a.alpha(),o=((r*n==-1?r:(r+n)/(1+r*n))+1)/2,l=1-o;return ta.rgb(o*s.red()+l*a.red(),o*s.green()+l*a.green(),o*s.blue()+l*a.blue(),s.alpha()*i+a.alpha()*(1-i))}};for(const e of Object.keys(Xs)){if(Qs.includes(e))continue;const{channels:t}=Xs[e];ta.prototype[e]=function(...t){return this.model===e?new ta(this):t.length>0?new ta(t,e):new ta([...(s=Xs[this.model][e].raw(this.color),Array.isArray(s)?s:[s]),this.valpha],e);var s},ta[e]=function(...s){let a=s[0];return"number"==typeof a&&(a=ra(s,t)),new ta(a,e)}}function sa(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function aa(e,t,s){e=Array.isArray(e)?e:[e];for(const a of e)(ea[a]||(ea[a]=[]))[t]=s;return e=e[0],function(a){let i;return void 0!==a?(s&&(a=s(a)),i=this[e](),i.color[t]=a,i):(i=this[e]().color[t],s&&(i=s(i)),i)}}function ia(e){return function(t){return Math.max(0,Math.min(e,t))}}function ra(e,t){for(let s=0;s<t;s++)"number"!=typeof e[s]&&(e[s]=0);return e}var na=Ss(ta);const oa=(e,t)=>na(e).darken(t).rgb().string(),la=Object.assign({inherit:"inherit",transparent:"transparent",black:gs.colors.black,white:gs.colors.white,bodyBackground:gs.colors.white,darkBodyBackground:gs.colors.primary,bodyText:gs.colors.primary,bodyTextInverted:gs.colors.primary50,darkBodyText:gs.colors.primary50,cardBackground:gs.colors.white,cardText:gs.colors.primary900,darkCardBackground:gs.colors.primary900,darkCardText:gs.colors.white,display:gs.colors.black,darkDisplay:gs.colors.white},Object.assign({},...Object.keys(gs.colors).map((e=>{const t=gs.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,na(s).lighten(a).rgb().string()),darker:oa(t,.1)}};var s,a})))),da=Object.assign(Object.assign({},gs),{colors:Object.assign(Object.assign({},gs.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({},gs.borderRadius),fontWeight:Object.assign(Object.assign({},gs.fontWeight),{light:"300",normal:"400",bold:"700"})}),ca=(e,t)=>na(e).darken(t).rgb().string(),ua=Object.assign(Object.assign(Object.assign({},la),{bodyBackground:da.colors.primary600,darkBodyBackground:da.colors.primary900,cardBackground:da.colors.white,cardText:da.colors.primary900,darkCardBackground:da.colors.primary900,darkCardText:da.colors.white,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(da.colors).map((e=>{const t=da.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,na(s).lighten(a).rgb().string()),darker:ca(t,.1)}};var s,a})))),ma=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"]}),pa=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),xa={colors:Object.assign({},ua),fontFamily:Object.assign({},ma),fontSize:Object.assign({},null==da?void 0:da.fontSize),fontWeight:Object.assign({},null==da?void 0:da.fontWeight),buttons:Object.assign({},pa),screens:Object.assign({},null==da?void 0:da.screens),borderRadius:Object.assign({},null==da?void 0:da.borderRadius),spacing:Object.assign({},null==da?void 0:da.spacing),extend:Object.assign({},null==da?void 0:da.extend)};exports.Accordion=bt,exports.AccountScreen=Xt,exports.AmplifyContext=$t,exports.AmplifyProvider=({children:s,value:a})=>(t.useEffect((()=>{var e,t,s,i,r,n,o,l,d,c,u,p,x,h,v,f,N,E;a.config&&m.Amplify.configure({Auth:{region:null===(e=null==a?void 0:a.config)||void 0===e?void 0:e.region,userPoolId:null===(t=null==a?void 0:a.config)||void 0===t?void 0:t.userPoolId,userPoolWebClientId:null===(s=null==a?void 0:a.config)||void 0===s?void 0:s.userPoolWebClientId,signUpVerificationMethod:(null===(i=null==a?void 0:a.config)||void 0===i?void 0:i.signUpVerificationMethod)||"code",oauth:{domain:null===(n=null===(r=null==a?void 0:a.config)||void 0===r?void 0:r.oauth)||void 0===n?void 0:n.domain,scope:(null===(l=null===(o=null==a?void 0:a.config)||void 0===o?void 0:o.oauth)||void 0===l?void 0:l.scope)||["email","profile","openid","aws.cognito.signin.user.admin"],redirectSignIn:null===(c=null===(d=null==a?void 0:a.config)||void 0===d?void 0:d.oauth)||void 0===c?void 0:c.redirectSignIn,redirectSignOut:null===(p=null===(u=null==a?void 0:a.config)||void 0===u?void 0:u.oauth)||void 0===p?void 0:p.redirectSignOut,responseType:(null===(h=null===(x=null==a?void 0:a.config)||void 0===x?void 0:x.oauth)||void 0===h?void 0:h.responseType)||"code"},cookieStorage:{domain:null===(f=null===(v=null==a?void 0:a.config)||void 0===v?void 0:v.cookieStorage)||void 0===f?void 0:f.domain,secure:"production"===process.env.NODE_ENV||(null===(E=null===(N=null==a?void 0:a.config)||void 0===N?void 0:N.cookieStorage)||void 0===E?void 0:E.secure)}}})}),[a.config]),e.jsx($t.Provider,{value:a,children:s})),exports.AnimationCounter=C,exports.AnimationSet1=$e,exports.AppContext=ye,exports.AppProvider=({children:t,value:s})=>e.jsx(ye.Provider,{value:s,children:t}),exports.AuthScreen=Qt,exports.Authenticator=ot,exports.Avatar=ue,exports.Blockquote=O,exports.Button=D,exports.ButtonGroup=me,exports.Card=Me,exports.CardGrid=Nt,exports.CardGridScreen=Jt,exports.Carousel=ct,exports.CatalogueScreen=es,exports.ChallengeLibraryScreen=ts,exports.ChallengeScreen=is,exports.Checkbox=M,exports.Chip=V,exports.Container=Ke,exports.ContentPageLayout=Ct,exports.ContentRowsLayout=Ot,exports.ContentScreen=rs,exports.Copy=W,exports.DashboardScreen=ns,exports.DisplayHeading=Ue,exports.FAQScreen=os,exports.FileUpload=z,exports.Footer=gt,exports.ForgotPasswordForm=nt,exports.Form=Fe,exports.FormField=He,exports.FormSelect=Ge,exports.Header=Et,exports.Heading=$,exports.Hero=Ze,exports.HomeScreen=ls,exports.Hr=X,exports.HtmlContent=fe,exports.Icon=y,exports.Image=Q,exports.InvalidDurationError=be,exports.Label=J,exports.Link=U,exports.List=se,exports.ListItem=ie,exports.Loader=w,exports.LoginForm=it,exports.Logo=ae,exports.LogoutScreen=ds,exports.Menu=ze,exports.MenuScreen=cs,exports.MultiCheckboxFacet=zt,exports.MultipleFractionsError=Ie,exports.NotFoundScreen=us,exports.Notice=re,exports.OTPInput=_t,exports.PanelCards=mt,exports.PanelFeature=pt,exports.PanelHero=ht,exports.PanelProduct=vt,exports.PanelVideo=ft,exports.PasswordResetAuthScreen=ps,exports.PasswordResetScreen=ms,exports.ProfileForm=Zt,exports.ProfileScreen=xs,exports.Radio=ne,exports.RegisterForm=rt,exports.ResetPasswordAuthForm=Kt,exports.ResetPasswordForm=qt,exports.STRINGS_EN=ce,exports.ScheduleScreen=fs,exports.Screen=St,exports.Search=Yt,exports.Share=Ye,exports.SingleLinksFacet=Vt,exports.SingleSelectFacet=Wt,exports.SubscriptionManager=Tt,exports.SubscriptionScreen=Ns,exports.Switch=oe,exports.Tabs=We,exports.TextInput=de,exports.ThemeContext=Re,exports.ThemeProvider=({children:t,theme:s})=>e.jsx(Re.Provider,{value:s,children:t}),exports.Video=xt,exports.VisitUs=Ve,exports.WorkoutScreen=Es,exports.defaultTheme=_e,exports.formatDuration=je,exports.getRandomImageFromArray=function(e){var t;if(e&&0!==e.length)return null===(t=null==e?void 0:e.map((e=>e)))||void 0===t?void 0:t[Math.floor(Math.random()*(null==e?void 0:e.map((e=>e)).length))]},exports.parseDuration=function(e,t=Ne){const s=Se.exec(e);if(!s||!s.groups)throw be;let a=!0,i=0;const r={};for(const{unit:e}of Ee)if(s.groups[e]&&(a=!1,r[e]=Ae(s.groups[e]),!t.allowMultipleFractions&&!Number.isInteger(r[e])&&(i++,i>1)))throw Ie;if(a)throw be;const n=r;return s.groups.negative&&(n.negative=!0),n},exports.theme=xa,exports.truncateString=Te,exports.useLanguage=Oe,exports.useTheme=function(){return t.useContext(Re)};
|