@4alldigital/foundation-ui--gamma 1.46.2 → 1.46.3
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/types/lib/translations/en.d.ts +97 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),s=require("classnames"),a=require("framer-motion"),r=require("@iconify/react"),i=require("tailwind-merge"),n=require("react-hover-video-player"),o=require("react-hook-form"),l=require("react-share"),c=require("react-tabs"),d=require("html-react-parser");require("libphonenumber-js");var m=require("react-player/youtube"),u=require("video.js"),p=require("react-otp-input"),x=require("@elastic/search-ui-elasticsearch-connector"),h=require("@elastic/react-search-ui"),f=require("rc-pagination"),g=require("rc-pagination/lib/locale/en_US");const v=({testID:r,from:i,to:n,animationOptions:o,className:l,numDecimals:c=0})=>{const d=t.useRef(null),m=a.useInView(d,{once:!0});return a.useIsomorphicLayoutEffect((()=>{const e=d.current;if(!e||!m)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=n.toString());e.textContent=i.toString();const t=a.animate(i,n,Object.assign(Object.assign({duration:1,ease:"easeOut"},o),{onUpdate:t=>{e.textContent=t.toFixed(c)}}));return()=>{t.stop()}}),[d,m,i,n,o]),e.jsx("span",{ref:d,"data-testid":r||"AnimationCounter",className:s("relative",l)})};v.displayName="AnimationCounter";const N=({name:t,size:s=24,color:a,id:i,className:n,testID:o})=>e.jsx(r.Icon,{"data-testid":o||i||"Icon",icon:t,width:s,height:s,color:a||"currentColor",className:n});N.displayName="Icon";const b=({text:t,citation:a,className:r,citationAttribute:i,showIcon:n=!0})=>{const o=s("text-xl italic font-bold",r);return e.jsxs("blockquote",{"data-testid":"Blockquote",className:o,children:[n&&e.jsx(N,{name:"mdi:comment-quote",size:42}),e.jsx("div",{children:t}),a&&e.jsx("figcaption",{className:"flex flex-start items-center mt-6 space-x-3",children:e.jsxs("div",{className:"flex items-center divide-x-2",children:[e.jsx("cite",{className:"pr-3 font-medium",children:a}),i&&e.jsx("cite",{className:"pl-3 text-sm font-light",children:i})]})})]})};var E,A,j;b.displayName="Blockquote",exports.BTN_TYPES=void 0,(E=exports.BTN_TYPES||(exports.BTN_TYPES={})).SUBMIT="submit",E.RESET="reset",E.BUTTON="button",exports.BTN_VARIANTS=void 0,(A=exports.BTN_VARIANTS||(exports.BTN_VARIANTS={})).PRIMARY="primary",A.SECONDARY="secondary",A.TERTIARY="tertiary",A.LINK="link",exports.BTN_SIZES=void 0,(j=exports.BTN_SIZES||(exports.BTN_SIZES={})).SMALL="small",j.MEDIUM="medium",j.LARGE="large";const y=({color:t,size:s=8,thickness:a=4})=>{const r=s?`w-${s} h-${s}`:"w-8 h-8";return e.jsx("div",{"data-testid":"Loader",className:"flex items-center justify-center",children:e.jsxs("div",{role:"status",className:"flex items-center",children:[e.jsxs("svg",{className:`animate-spin ${r} text-white`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:t||"currentColor",strokeWidth:a}),e.jsx("path",{className:"opacity-75",fill:t||"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e.jsx("span",{className:"sr-only",children:"Loading..."})]})})};y.displayName="Loader";const S=({variant:t=exports.BTN_VARIANTS.PRIMARY,size:a=exports.BTN_SIZES.MEDIUM,type:r=exports.BTN_TYPES.BUTTON,wide:n=!1,rounded:o=!1,raised:l=!1,uppercase:c,children:d,id:m,disabled:u,ariaLabel:p,onClick:x,icon:h,external:f,iconFirst:g,outline:v,testID:b,className:E,isLoading:A})=>{var j,S,T,C;const I={small:{x:d?n?"px-5":"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:d?n?"px-8":"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:d?n?"px-11":"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},R=i.twMerge(s("appearance-none font-body flex items-center transition-all duration-200 transform active:scale-95 justify-around border-solid border rounded cursor-pointer outline-none focus:outline-none focus-visible:outline-none",{"border-primary":v},{"border-primary300 dark:border-primary400 hover:border-primary400 dark:hover:border-primary500":v},{shadow:l},{uppercase:c},{"auto-cols-auto grid-cols-2 gap-4":A||h||f},{"rounded-full":o},{"flex-row-reverse":g},{"opacity-50 cursor-not-allowed":u},`${null===(j=null==I?void 0:I[a])||void 0===j?void 0:j.y} ${null===(S=null==I?void 0:I[a])||void 0===S?void 0:S.x} ${null===(T=null==I?void 0:I[a])||void 0===T?void 0:T.text}`,{"text-white border-primary bg-primary hover:bg-primary-darker":t===exports.BTN_VARIANTS.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":t===exports.BTN_VARIANTS.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":t===exports.BTN_VARIANTS.TERTIARY},{"px-0 text-primary border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert":t===exports.BTN_VARIANTS.LINK},E)),w=s(null===(C=null==I?void 0:I[a])||void 0===C?void 0:C.icon);return e.jsx("button",{id:m,"data-testid":b||m||"Button",onClick:x,className:R,type:r,disabled:u,"aria-label":p,role:"button",children:e.jsxs(e.Fragment,{children:[d,h&&!f&&e.jsx("span",{className:"flex items-center",children:e.jsx(N,{name:h,className:w})}),f&&e.jsx("span",{className:"flex items-center",children:e.jsx(N,{name:"carbon:launch",className:w})}),A&&e.jsx("div",{className:"flex items-center",children:e.jsx(y,{size:4})})]})})};function T(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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(s[a[r]]=e[a[r]])}return s}function C(e,t,s,a){return new(s||(s=Promise))((function(r,i){function n(e){try{l(a.next(e))}catch(e){i(e)}}function o(e){try{l(a.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(n,o)}l((a=a.apply(e,t||[])).next())}))}S.displayName="Button","function"==typeof SuppressedError&&SuppressedError;const I=t.forwardRef((function(t,a){var{id:r,label:i,required:n,className:o,disabled:l}=t,c=T(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:r,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},c)),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(N,{name:"mdi:check-bold",size:12})})]}),i&&e.jsx("label",{className:"label pl-2 leading-none text-sm",htmlFor:r,children:i})]})}));I.displayName="Checkbox";const R=({href:a,children:r,onClick:i=(()=>console.log("Link clicked")),history:n,target:o,id:l,testID:c,className:d,prefetch:m,hideExternalIcon:u=!1})=>{const p=s("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",d);if(!u&&a&&a.startsWith("http"))return e.jsxs("span",{children:[e.jsx("a",{"data-testid":c||l||"Link",className:s(p),href:a,target:"_blank",rel:"noopener noreferrer",children:r}),e.jsx(N,{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:i,"data-testid":c||l||"Link",className:p,target:o||"_self",prefetch:m||!1},r)}catch(t){console.log("Not using Next Link.");const s=e=>{i?i(e):!0!==e.defaultPrevented&&n&&a&&(e.preventDefault(),n.push(a))};return e.jsx("a",{"data-testid":c||l||"Link",className:p,href:a,onClick:s,target:o,children:r})}};var w,O,_,L,k;R.displayName="Link",exports.COPY_ALIGN=void 0,(w=exports.COPY_ALIGN||(exports.COPY_ALIGN={})).LEFT="left",w.CENTER="center",w.RIGHT="right",w.JUSTIFY="justify",w.NOWRAP="nowrap",exports.COPY_TRANSFORM=void 0,(O=exports.COPY_TRANSFORM||(exports.COPY_TRANSFORM={})).LOWERCASE="lowercase",O.UPPERCASE="uppercase",O.CAPITALIZE="capitalize",exports.COPY_CONTEXTUAL=void 0,(_=exports.COPY_CONTEXTUAL||(exports.COPY_CONTEXTUAL={})).INVERTED="inverted",_.MUTED="muted",exports.COPY_SIZE=void 0,(L=exports.COPY_SIZE||(exports.COPY_SIZE={})).SMALL="small",L.MEDIUM="medium",L.LARGE="large",L.INTRO="intro",exports.COPY_TAG=void 0,(k=exports.COPY_TAG||(exports.COPY_TAG={})).P="p",k.SPAN="span",k.DIV="div",k.SMALL="small";const D=({children:t,as:a=exports.COPY_TAG.P,size:r,bold:n,align:o,transform:l,underlined:c,id:d,className:m,testID:u})=>{const p=s({[`text-${o}`]:o},{"font-bold":n},{"text-sm":"small"===r},{"text-base":"medium"===r},{"text-lg":"large"===r},{"text-2xl":"intro"===r},{"text-base mb-3 mt-0":"p"===a},{"text-sm":"small"===a},{underline:c},l,m);return e.jsx(a,{"data-testid":u||d||"Copy",className:i.twMerge(p),children:t})};D.displayName="Copy";const M=({testID:a,text:r,outline:n,rounded:o,variant:l,size:c="medium",icon:d,iconFirst:m,onClick:u})=>{const p=t.useMemo((()=>{switch(c){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}}}),[c]),x=i.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":m},{"bg-primary text-white":"primary"===l},{"bg-secondary text-white":"secondary"===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-2":"small"===c},{"py-2 px-4":"medium"===c},{"py-3 px-6":"large"===c}));return u&&"function"==typeof u?e.jsxs(R,{"data-testid":a||"Chip",className:x,onClick:u,children:[e.jsx(D,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:r}),d&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(N,{name:d,size:p.iconSize})})]}):e.jsxs("div",{"data-testid":a||"Chip",className:x,children:[e.jsx(D,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:r}),d&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(N,{name:d,size:p.iconSize})})]})};M.displayName="Chip";const P=t.forwardRef((function(t,a){var{id:r,name:i,required:n,disabled:o,className:l,onChangeCallback:c,onChange:d}=t,m=T(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":i,type:"file",disabled:o,required:n,name:i,id:r,onChange:e=>{c&&"function"==typeof c&&c(e),d&&"function"==typeof d&&d({target:{value:e.target.value,name:i}})}},m))})}));var F,B,G;P.displayName="FileUpload",exports.HEADING_TAGS=void 0,(F=exports.HEADING_TAGS||(exports.HEADING_TAGS={})).H1="h1",F.H2="h2",F.H3="h3",F.H4="h4",F.H5="h5",exports.HEADING_ALIGN=void 0,(B=exports.HEADING_ALIGN||(exports.HEADING_ALIGN={})).LEFT="left",B.CENTER="center",B.RIGHT="right",B.JUSTIFY="justify",B.NOWRAP="nowrap",exports.HEADING_TRANSFORM=void 0,(G=exports.HEADING_TRANSFORM||(exports.HEADING_TRANSFORM={})).LOWERCASE="lowercase",G.UPPERCASE="uppercase",G.CAPITALIZE="capitalize",G.NORMAL_CASE="normal-case";const Y=({children:t,tag:a=exports.HEADING_TAGS.H2,transform:r,align:i,id:n,testID:o,flush:l,className:c,singleLine:d,bold:m=!0})=>{const u=(()=>{switch(a){case"h1":return"text-3xl md:text-4xl lg:text-5xl";case"h2":return"text-3xl md:text-4xl lg:text-4xl";case"h3":return"text-2xl md:text-3xl lg:text-3xl";case"h4":return"text-xl md:text-2xl lg:text-2xl";case"h5":return"text-lg md:text-lg lg:text-xl";default:return"text-2xl md:text-2xl lg:text-4xl"}})();console.log("bold",m);const p=a,x=s(`m-0 p-0 font-heading ${u}`,{"font-bold":m},{[`text-${i}`]:i},{"mb-2":!l},{"m-0":l},{"whitespace-nowrap text-ellipsis overflow-hidden":d},r,c);return e.jsx(p,{"data-testid":o||n||"Heading",className:x,children:t})};Y.displayName="Heading";const U=({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})});U.displayName="Hr";const H=a=>{var{src:r,alt:n,title:o,caption:l,figure:c=!1,onLoad:d,id:m,className:u,sizes:p="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:x}=a,h=T(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:r,alt:n,title:o,fill:s,onLoad:d,className:u},a),h))}catch(t){const a=s("m-0"),p=i.twMerge(s("w-full h-full",u));return c||l?e.jsxs("figure",{"data-testid":x||m||"Image",className:a,children:[e.jsx("img",{onLoad:d,src:r,alt:n,title:o,className:p}),l&&e.jsx("figcaption",{children:l})]}):e.jsx("img",{"data-testid":x||m||"Image",onLoad:d,src:r,alt:n,title:o,className:p})}};H.displayName="Image";const V=({children:t,id:a,transform:r,className:n})=>e.jsx("label",{"data-testid":"Label",className:i.twMerge(s("label mb-2",r,n)),htmlFor:a,children:t});var z,W;V.displayName="Label",exports.Variants=void 0,(z=exports.Variants||(exports.Variants={})).UNSTYLED="unstyled",z.INLINE="inline",z.SMALL="small",z.LARGE="large",exports.ListTag=void 0,(W=exports.ListTag||(exports.ListTag={})).OL="ol",W.UL="ul",W.DL="dl",W.DIV="div",W.DT="dt",W.DD="dd",W.LI="li";const q=({variants:t,children:a,as:r=exports.ListTag.UL,id:i,testID:n,className:o})=>{const l=t?t.map((e=>`list--${e}`)):null,c=r;return e.jsx(c,{"data-testid":n||i||"List",className:s(l,o),children:a})};q.displayName="List";const Z=({testID:t,logo:a,className:r,aspectRatioClass:i="aspect-[1/1]"})=>e.jsx("div",{"data-testid":t||"Logo",className:s("relative w-full",i,r),children:e.jsx(H,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});Z.displayName="Logo";const $=({children:t,as:a="li",id:r,testID:i,className:n})=>e.jsx(a,{"data-testid":i||r||"ListItem",className:s("list-item",n),children:t});$.displayName="ListItem";const K=({id:t,testID:a,title:r,text:i,icon:n,type:o,onCloseCallback:l,onClickCallback:c,actionText:d})=>{const m=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:m,children:e.jsxs("div",{className:"flex gap-2",children:[n&&e.jsx("div",{className:"mr-2",children:e.jsx(N,{name:n})}),e.jsxs("div",{children:[r&&e.jsx(Y,{tag:exports.HEADING_TAGS.H3,children:r}),e.jsx(D,{className:"mb-0",children:i})]}),c&&d&&e.jsx("div",{className:"ml-auto flex items-end",children:e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:c,"aria-label":"Action",size:exports.BTN_SIZES.SMALL,children:d})}),l&&e.jsx("div",{className:"absolute top-2 right-4",children:e.jsx(S,{variant:exports.BTN_VARIANTS.LINK,icon:"mdi:close",onClick:l,"aria-label":"Close"})})]})})};K.displayName="Notice";const X=t.forwardRef((function(t,a){var{name:r,required:i,className:n,options:o}=t,l=T(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:r,type:"radio",required:i,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4"},l,{id:n,value:n})),e.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(N,{name:"mdi:circle",size:12})})]}),e.jsx("label",{className:"label pl-2 leading-none",htmlFor:n,children:t.label})]},n)}))})})}));X.displayName="Radio";const Q=t.forwardRef((function(t,a){var{id:r,name:i,required:n,disabled:o,className:l}=t,c=T(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:r,name:i,type:"checkbox",value:"",className:"sr-only peer",disabled:o,required:n},c)),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 J;Q.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"}(J||(J={}));const ee=t.forwardRef((function(a,r){var{type:i=J.TEXT,required:n=!1,className:o,onChange:l,placeholder:c,icon:d,disabled:m=!1,name:u,autoComplete:p}=a,x=T(a,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);t.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const h="date"===i?"dd/mm/yyyy".toUpperCase():c;return i===J.TEXTAREA?e.jsx("div",{"data-testid":"TextInput",className:"relative",children:e.jsx("textarea",Object.assign({ref:r,id:u,autoComplete:u,required:n,"aria-required":n,disabled:m,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:[d&&e.jsx("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e.jsx(N,{name:d})}),e.jsx("input",Object.assign({ref:r,id:u,type:i,autoComplete:p,required:n,"aria-required":n,disabled:m,placeholder:h,onChange:l,className:s("form-item text-input",{"pl-12":d},o)},x))]})}));ee.displayName="TextInput";const te={GLOBAL:{},FORMS:{LOGIN_FORM:{TITLE:"Login",SUBMIT:"Login",FORGOT_PASSWORD:"Forgot password?",REGISTER:"Register",EMAIL:"Email",PASSWORD:"Password"},REGISTER_FORM:{TITLE:"Register",SUBMIT:"Register",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},FORGOT_PASSWORD_FORM:{TITLE:"Forgot Password",SUBMIT:"Send Reset Email",EMAIL:"Email"},RESET_PASSWORD_FORM:{TITLE:"Reset Password",SUBMIT:"Reset Password",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm Password"},PROFILE_FORM:{TITLE:"Profile",SUBMIT:"Save",FIRST_NAME:"First Name",LAST_NAME:"Last Name",AVATAR:"Avatar",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."}},UI:{SHOW:"Show",NO_IMAGE:"No image",UPLOAD:"Upload",SAVE:"Save",CANCEL:"Cancel",DELETE:"Delete",CONTINUE_WITH_SOCIAL:"Continue with Social Account",SINGLE_SIGNON:"Single Sign-On",LOGIN_WITH_GOOGLE:"Login with Google",LOGIN_WITH_APPLE:"Login with Apple",SIGNUP_WITH_GOOGLE:"Signup with Google",SIGNUP_WITH_APPLE:"Signup with Apple",BACK_TO_LOGIN:"Back to Login",FORGOT_PASSWORD:"Forgot Password?",SUBMIT:"Submit",LOGIN:"Login",LOGOUT:"Logout",REGISTER:"Register",SOCIAL:{GOOGLE:"Google",FACEBOOK:"Facebook",TWITTER:"Twitter",EMAIL:"Email"},READ_MORE:"Read more",READ_LESS:"Show less",CLOSE:"Close",BACK:"Back",SHARE:"Share",DOWNLOAD:"Download",FORMAT_HOUR:"{hour}hr",FORMAT_HOURS:"{hours}hrs",FORMAT_MINUTE:"{minute}min",FORMAT_MINUTES:"{minutes}mins",LOAD_MORE_LABEL:"Load more",NO_MORE_RESULTS:"That's all folks.",UNKNOWN_ERROR_TITLE:"Unknown error",UNKNOWN_ERROR_MESSAGE:"Sorry, something bad happened! Please try again.",CONTENT_SORT_TITLE:"Sort by",CONTENT_FILTERS_TITLE:"Filters",CONTENT_FILTERS_LABEL:"Filter",CLOSE_FILTERS_LABEL:"Done",CLEAR_ALL_FILTERS_LABEL:"Clear All",CLEAR_FILTERS_LABEL:"Clear",MORE_ITEMS_LABEL:"Next items",PREVIOUS_ITEMS_LABEL:"Previous items",CHOOSE_BTN_LABEL:"Choose",ADD_BTN_LABEL:"Add",SEND_BTN_LABEL:"Send",CANCEL_BTN_LABEL:"Cancel",DONE_BTN_LABEL:"Done",EDIT_BTN_LABEL:"Edit",CHANGE_BTN_LABEL:"Change",REMOVE_BTN_LABEL:"Remove",MESSAGE_PROMPT_BTN_LABEL:"Add one",SELECT_FILE_BTN_LABEL:"Select file",TOO_MANY_REQUESTS_MESSAGE:"Too many requests. Please try again later.",COPYRIGHT:"Copyright",ALL_RIGHTS_RESERVED:"All rights reserved",APP_CAMERA_PERMISSION:"Camera permission",APP_CAMERA_PERMISSION_DENIED:"Camera permission denied",APP_NEED_ACCESS_CAMERA:"This app needs access to your camera",ASK_ME_LATER:"Ask me later",PRIVACY_POLICY:"Privacy Policy",CREATE_ACCOUNT:"Create account",COMPLETE:"Complete",EDIT:"Edit",PREV:"Prev",NEXT:"Next",GET_STARTED:"Get started",START_SEARCH:"Start search",READ_MORE_LABEL:"Read more",READ_LESS_LABEL:"Show less",CLOSE_LABEL:"Close",CLOSE_HINT:"Close this entry",BACK_LABEL:"Back",SHARE_LABEL:"Share",VIEW_MORE_LABEL:"View more",VIEW_LESS_LABEL:"View less",GOT_IT:"Got it",MORE:"More",MORE_DETAILS:"More details",MORE_INFO:"More info",LEARN_MORE:"Learn more",LOW:"Low",MEDIUM:"Medium",HIGH:"High",VERY_HIGH:"Very high",VERY_LOW:"Very low",GOOD:"Good",BAD:"Bad",STRONG:"Strong",SAVE_CONTINUE:"Save and Continue",SAVE_FINISH:"Save and Finish",FINISH:"Finish",SKIP:"Skip",ADD:"Add",ADDED:"Added",ADD_ANOTHER:"Add another",CREATE_PROFILE:"Create profile",CONTINUE_NO_ACCOUNT:"Continue without account",REQUIRED_MISSING:"Required field missing",RESET:"Reset",APPLY_FILTER:"Apply filter",START:"Start",END:"End",HELP:"Help",WHAT_IS_THIS:"What is this?",CARD_VIEW:"Card view",LIST_VIEW:"List view",FILTER:"Filter",NO_RESULTS:"No results",CONTINUE:"Continue",CONTINUE_BROWSING:"Continue browsing",VIEW:"View",INFORMATION:"Information",DELETE_HINT:"Delete this entry",VISIT_WEBSITE:"Visit website",TAKE_AGAIN:"Take again",ADD_MORE:"Add more",REQUEST_SENT:"Request sent",CUSTOMISE:"Customize",SET_LOCATION:"Set location",COUNTY_NOT_FOUND:"County not found",NO_RESOURCES_FOUND:"No resources found",PATHWAY:"Pathway",CLICK_TO_NAVIGATE:"Click to navigate",INPUT_FIELD:"Input field",GO_BACK:"Go back",NAVIGATES_PREV:"Navigates to the previous screen",REMOVE:"Remove",NO_INTERNET_CONNECTION:"No internet connection",CHECK_CONNECTION:"Please check your internet connection and try again.",EXPLORE:"Explore",NO_ACCOUNT:"No account?",START_WORKOUT:"Start workout",START_MEDIA:"Start media",LAUNCH:"Launch",PUBLISHED:"Published",CREATED:"Created",UPDATED:"Updated",DURATION:"Duration",LEVEL:"Level",SECTION:"Section",DOWNLOADING:"Downloading",DOWNLOAD_COMPLETE:"Download complete",DOWNLOAD_FAILED:"Download failed",DOWNLOAD_CANCELLED:"Download cancelled",DOWNLOADING_MEDIA:"Downloading media",DOWNLOADING_MEDIA_FAILED:"Downloading media failed",DOWNLOADING_MEDIA_CANCELLED:"Downloading media cancelled",DOWNLOADING_MEDIA_COMPLETE:"Downloading media complete",DOWNLOADING_MEDIA_CANCEL:"Cancel download",DOWNLOADING_MEDIA_RETRY:"Retry download",DOWNLOADING_MEDIA_PAUSE:"Pause download",DOWNLOADING_MEDIA_RESUME:"Resume download",DOWNLOADING_MEDIA_CONTINUE:"Continue download",DOWNLOADING_MEDIA_START:"Start download",DOWNLOADING_MEDIA_CONFIRM:"Confirm download",DOWNLOAD_REMOVED:"Download removed",DOWNLOAD_REMOVE_ERROR:"Error removing download",CATEGORY:"Category",TYPE:"Type",WORKOUT_TYPE:"Workout type",MEDIA_TYPE:"Media type",WORKOUT:"Workout",MEDIA:"Media",WORKOUTS:"Workouts",WORKOUT_CATEGORY:"Workout category",MEDIA_CATEGORY:"Media category",ADDED_LIKE:"Added like",REMOVED_LIKE:"Removed like",ADDED_FAVORITE:"Added favorite",REMOVED_FAVORITE:"Removed favorite",ADDED_BOOKMARK:"Added bookmark",REMOVED_BOOKMARK:"Removed bookmark",ADDED_WATCHLIST:"Added watchlist",REMOVED_WATCHLIST:"Removed watchlist",ADDED_PLAYLIST:"Added playlist",REMOVED_PLAYLIST:"Removed playlist",ADDED_SUBSCRIPTION:"Added subscription",REMOVED_SUBSCRIPTION:"Removed subscription",ADDED_FOLLOW:"Added follow",REMOVED_FOLLOW:"Removed follow",ADDED_FRIEND:"Added friend",REMOVED_FRIEND:"Removed friend",ADDED_CONNECTION:"Added connection",REMOVED_CONNECTION:"Removed connection",MARKED_COMPLETE:"Marked complete",MARKED_INCOMPLETE:"Marked incomplete",MUSIC_ENABLED:"Music enabled",MUSIC_DISABLED:"Music disabled",SHARED:"Shared",NOT_ENTERED_IN_CHALLENGE:"You are note entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",SHOW_FILTERS:"Show filters",HIDE_FILTERS:"Hide filters",THIS_WEEK:"This week",TODAYS_ITEMS:"Today's items"},ERRORS:{}},se=({testID:s,name:a="avatar",isEditable:r=!0,initValue:i})=>{const[n,o]=t.useState(i);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:[n&&e.jsxs(e.Fragment,{children:[e.jsx(H,{src:n,alt:a,width:200,height:200}),r&&e.jsx("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e.jsx(S,{size:exports.BTN_SIZES.SMALL,rounded:!0,onClick:()=>{o(void 0)},children:te.UI.REMOVE_BTN_LABEL})})]}),!n&&e.jsx(e.Fragment,{children:r&&e.jsx("div",{className:"absolute w-full h-full flex items-center justify-center",children:e.jsx(V,{id:a,className:"button cursor-pointer mb-0",children:e.jsx(D,{className:"mb-0",children:te.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);o(e)}}})]})};se.displayName="Avatar";const ae=({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,r)=>{const i=r>0&&r<a.length-1,n=0===r,o=r===a.length-1,l=s({"rounded-none":i},{"rounded-r":n,"rounded-l":o});return e.jsx("div",{children:e.jsx(S,Object.assign({},t,{className:l,children:t.children}))},t.id)}))});ae.displayName="ButtonGroup";const re="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-bodyBackground text-bodyText dark:bg-darkBodyBackground dark:text-darkBodyText hover:bg-primary hover:text-bodyTextInverted group",ie="transition duration-500 ease-in-out ",ne=({id:t,title:a,description:r,image:n,className:o,metaData:l,actions:c,padded:d,scaleOnHover:m,onClick:u=(()=>{})})=>e.jsxs("div",{id:t,"data-testid":"CardBasic",className:i.twMerge(s(ie,re,{"p-4":d},{"hover:scale-100":!m},o)),onClick:u,children:[n&&e.jsx("div",{className:i.twMerge(s("relative w-full overflow-hidden aspect-[16/9]",{rounded:d},n.aspectRatio)),children:e.jsx(H,{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",ie)})}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:s({"p-3":!d},{"pt-3":d}),children:[e.jsx("div",{children:a&&e.jsx(Y,{tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),e.jsx("div",{children:r&&e.jsx(D,{className:"mb-0",children:r})}),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(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===l.length-1?e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),c&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[c.like&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.like)||void 0===s?void 0:s.onClick)&&"function"==typeof c.like.onClick&&c.like.onClick({id:t})}}),c.share&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.share)||void 0===s?void 0:s.onClick)&&"function"==typeof c.share.onClick&&c.share.onClick({id:t})}}),c.save&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.save)||void 0===s?void 0:s.onClick)&&"function"==typeof c.save.onClick&&c.save.onClick({id:t})}}),c.comment&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.comment)||void 0===s?void 0:s.onClick)&&"function"==typeof c.comment.onClick&&c.comment.onClick({id:t})}}),c.bookmark&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.bookmark)||void 0===s?void 0:s.onClick)&&"function"==typeof c.bookmark.onClick&&c.bookmark.onClick({id:t})}}),c.report&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.report)||void 0===s?void 0:s.onClick)&&"function"==typeof c.report.onClick&&c.report.onClick({id:t})}}),c.follow&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.follow)||void 0===s?void 0:s.onClick)&&"function"==typeof c.follow.onClick&&c.follow.onClick({id:t})}}),c.download&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.download)||void 0===s?void 0:s.onClick)&&"function"==typeof c.download.onClick&&c.download.onClick({id:t})}}),c.edit&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.edit)||void 0===s?void 0:s.onClick)&&"function"==typeof c.edit.onClick&&c.edit.onClick({id:t})}}),c.delete&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.delete)||void 0===s?void 0:s.onClick)&&"function"==typeof c.delete.onClick&&c.delete.onClick({id:t})}})]})]})]})})]});ne.displayName="CardBasic";const oe=({id:t,title:a,description:r,image:i,className:n,metaData:o,actions:l,onClick:c=(()=>{}),playCallback:d})=>e.jsxs("div",{id:t,"data-testid":"CardBasic",className:s(ie,re,n),onClick:c,children:[i&&e.jsxs("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",i.aspectRatio),children:[e.jsx(H,{fill:!0,src:null==i?void 0:i.src,sizes:"100vh",alt:null==i?void 0:i.alt,className:s("absolute inset-0 object-cover group-hover:scale-110",ie)}),d&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:play",size:exports.BTN_SIZES.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof d&&d(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(Y,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:a})}),e.jsx("div",{children:r&&e.jsx(D,{children:r})}),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(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===o.length-1?e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(D,{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(S,{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(S,{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(S,{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(S,{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(S,{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(S,{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(S,{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(S,{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(S,{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(S,{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})}})]})]})]})})]});oe.displayName="CardMedia";const le=({video:t,isMuted:a=!0,id:r,title:i,description:o,image:l,className:c,metaData:d,actions:m,onClick:u=(()=>{})})=>e.jsxs("div",{id:r,"data-testid":"CardVideo",className:s(ie,re,c),onClick:u,children:[l&&t&&e.jsx("div",{className:s("relative w-full h-full aspect-[16/9]",l.aspectRatio),children:e.jsx(n,{videoId:`video--${r}`,playbackStartDelay:1e3,videoSrc:e.jsx("source",{src:t,type:"video/mp4"}),videoClassName:s("hls-hover-video w-full aspect-[16/9]",l.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:a,className:s("w-full overflow-hidden aspect-[16/9]",l.aspectRatio),pausedOverlay:e.jsx("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",l.aspectRatio),children:e.jsx(H,{fill:!0,src:null==l?void 0:l.src,width:0,height:0,alt:null==l?void 0:l.alt,className:"absolute inset-0 object-cover"})}),loadingOverlay:e.jsx("div",{className:s("w-full flex items-center justify-center aspect-[16/9]",l.aspectRatio),children:e.jsx("div",{className:"",children:e.jsx(y,{})})})},`${r}--card`)}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:i&&e.jsx(Y,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:i})}),e.jsx("div",{children:o&&e.jsx(D,{children:o})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[d&&e.jsx("div",{className:"flex shrink-0",children:d.map(((t,s)=>0===s?e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===d.length-1?e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),m&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[m.like&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.like)||void 0===t?void 0:t.onClick)&&"function"==typeof m.like.onClick&&m.like.onClick({id:r})}}),m.share&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.share)||void 0===t?void 0:t.onClick)&&"function"==typeof m.share.onClick&&m.share.onClick({id:r})}}),m.save&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.save)||void 0===t?void 0:t.onClick)&&"function"==typeof m.save.onClick&&m.save.onClick({id:r})}}),m.comment&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof m.comment.onClick&&m.comment.onClick({id:r})}}),m.bookmark&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof m.bookmark.onClick&&m.bookmark.onClick({id:r})}}),m.report&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.report)||void 0===t?void 0:t.onClick)&&"function"==typeof m.report.onClick&&m.report.onClick({id:r})}}),m.follow&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof m.follow.onClick&&m.follow.onClick({id:r})}}),m.download&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.download)||void 0===t?void 0:t.onClick)&&"function"==typeof m.download.onClick&&m.download.onClick({id:r})}}),m.edit&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof m.edit.onClick&&m.edit.onClick({id:r})}}),m.delete&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof m.delete.onClick&&m.delete.onClick({id:r})}})]})]})]})})]});le.displayName="CardVideo";const ce=({id:t,title:a,description:r,icon:n,className:o,onClick:l,moreTitle:c,align:d})=>{const m=l?re:"";return e.jsxs("div",{id:t,"data-testid":"CardIcon",className:i.twMerge(s(ie,m,"p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===d},{"items-center":"center"===d},{"items-end":"right"===d},o)),children:[n&&e.jsx("div",{className:s("relative"),children:e.jsx(N,{name:n,size:48})}),e.jsxs("div",{className:s({"text-left":"left"===d},{"text-center":"center"===d},{"text-right":"right"===d}),children:[e.jsx("div",{children:a&&e.jsx(Y,{tag:exports.HEADING_TAGS.H5,singleLine:!0,children:a})}),e.jsx("div",{children:r&&e.jsx(D,{align:d,children:r})})]}),l&&e.jsx("div",{className:"flex items-center justify-start gap-2",children:e.jsx(S,{icon:"mdi:arrow-right",variant:exports.BTN_VARIANTS.LINK,onClick:l,children:c})})]})};ce.displayName="CardIcon";const de=({testID:t,id:a,title:r,description:n,image:o,onClick:l,className:c,padded:d,icon:m,raised:u=!0})=>e.jsxs("div",{id:a,"data-testid":t||"CardHorz",className:s("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":d},{"shadow hover:shadow-lg":u},c),onClick:l,children:[o&&e.jsx("div",{className:"w-1/3 aspect-[1/1]",children:e.jsx("div",{className:i.twMerge(s("relative w-full overflow-hidden h-full",o.aspectRatio)),children:e.jsx(H,{fill:!0,src:null==o?void 0:o.src,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})})}),m&&!o&&e.jsx("div",{className:"py-2 pl-2",children:e.jsx(N,{name:m,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:[r&&e.jsx("div",{className:"",children:e.jsx(Y,{tag:exports.HEADING_TAGS.H4,children:r})}),n&&e.jsx("div",{children:e.jsx(D,{className:"mb-0",children:n})})]})})]});de.displayName="CardHorz";const me=({testID:r,className:n,data:o,padded:l,shadow:c=!0})=>{const d=a.motionValue(0);return t.useEffect((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||a.animate(d,200,{duration:.5})}),[d]),o?e.jsxs("div",{"data-testid":r||"CardData",className:i.twMerge(s("relative rounded-lg overflow-hidden flex flex-col items-center gap-4 p-2",{"p-4":l},{shadow:c},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(v,{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(Y,{tag:exports.HEADING_TAGS.H2,flush:!0,children:null==o?void 0:o.item})}),e.jsx("div",{children:e.jsx(D,{className:"mb-0",children:null==o?void 0:o.label})})]}):e.jsx(e.Fragment,{})};me.displayName="CardData";const ue=t=>{var{variant:s,className:a,data:r}=t,i=T(t,["variant","className","data"]);switch(s){case"basic":default:return e.jsx(ne,Object.assign({className:a},r,i));case"media":return e.jsx(oe,Object.assign({className:a},r,i));case"video":return e.jsx(le,Object.assign({className:a},r,i));case"icon":return e.jsx(ce,Object.assign({className:a},r,i));case"horz":return e.jsx(de,Object.assign({className:a},r,i));case"data":return e.jsx(me,Object.assign({className:a},r,i))}};ue.displayName="Card";const pe=({text:t,tag:a=exports.HEADING_TAGS.H1})=>{const r=t.split(" ");return e.jsx("div",{"data-testid":"DisplayHeading",className:"relative",children:e.jsx(Y,{tag:a,className:"",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"}),e.jsx("span",{className:"display-heading--lastword",children:t})]}),!i&&e.jsx("span",{children:t})]})}),!i&&" "]},n)}))})})};pe.displayName="DisplayHeading";const xe=({children:a,className:r,submit:i,onSubmit:n=(()=>{}),onChange:l,hideSubmit:c,ariaSubmitLabel:d,submitID:m,submitVariant:u=exports.BTN_VARIANTS.PRIMARY,initialValues:p={},isBoxed:x=!1,submitType:h=exports.BTN_TYPES.SUBMIT,disabledSubmitWithReturn:f=!1,isDisabled:g=!1})=>{const v=o.useForm({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"});t.useEffect((()=>{if(l&&"function"==typeof l){const e=v.watch(((e,t)=>{l(e,t)}));return()=>e.unsubscribe()}}),[]);const N=s({"sr-only":c}),{formState:{isSubmitting:b,isDirty:E,isValid:A}}=v;return e.jsx(o.FormProvider,Object.assign({},v,{children:e.jsx("div",{"data-testid":"Form",className:s("w-full max-w-s @containers @form"),children:e.jsxs("form",{onSubmit:v.handleSubmit(n),onKeyDown:e=>{f&&"Enter"===e.key&&e.preventDefault()},className:s("w-2xs relative",{"form px-8 pt-6 pb-8 ":x},{"opacity-50":b},r),children:[a,i&&e.jsx("div",{className:"flex items-center justify-end",children:e.jsx(S,{id:m||i,className:N,ariaLabel:d||i||"Submit",type:h,outline:!0,isLoading:b,disabled:b||!A||!E||g,variant:u,children:i})})]})})}))};var he;xe.displayName="Form",exports.FIELD_TYPES=void 0,(he=exports.FIELD_TYPES||(exports.FIELD_TYPES={})).TEXT="text",he.TEXTAREA="textarea",he.SELECT="select",he.CHECKBOX="checkbox",he.RADIO="radio",he.SWITCH="switch",he.DATE="date",he.TIME="time",he.DATETIME="datetime",he.FILE="file",he.PASSWORD="password",he.EMAIL="email",he.NUMBER="number",he.TEL="tel",he.URL="url",he.SEARCH="search",he.HIDDEN="hidden";const fe=t.forwardRef((function(t,a){var{id:r,name:i,options:n,required:o,className:l,disabled:c}=t,d=T(t,["id","name","options","required","className","disabled"]);if(!n)throw new Error("FormSelect requires options prop");return e.jsx("div",{id:r,className:s("pb-2 min-w-20",l),children:e.jsxs("div",{className:"relative",children:[e.jsx("select",Object.assign({ref:a,name:i,disabled:c,required:o,className:"form-item text-input pr-10"},d,{children:n.map(((t,s)=>{var a,r;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===(r=null==t?void 0:t.value)||void 0===r?void 0:r.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(N,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));fe.displayName="FormSelect";const ge=({name:a,type:r,label:i,required:n,className:l,icon:c,options:d,disabled:m,description:u,showPasswordLabel:p,hidePasswordLabel:x,validations:h={},fileUploadCallback:f=(()=>{}),autoComplete:g})=>{var v,b;const[E,A]=t.useState(!1),{control:j,formState:y}=o.useFormContext(),{errors:S}=y,T=i&&r!==exports.FIELD_TYPES.CHECKBOX,C=n||Boolean(h.required)?`${i} *`:i;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(V,{id:a,children:C})}),e.jsx("div",{className:"mb-1",children:e.jsx(o.Controller,{defaultValue:"",name:a,control:j,rules:h,render:({field:t})=>((t,r)=>{switch(t){case exports.FIELD_TYPES.HIDDEN:return e.jsx("input",Object.assign({type:J.HIDDEN,disabled:m},r));case exports.FIELD_TYPES.TEXT:return e.jsx(ee,Object.assign({type:J.TEXT,required:n||Boolean(h.required),icon:c,className:l,disabled:m,autoComplete:g},r));case exports.FIELD_TYPES.PASSWORD:{const t=E?J.TEXT:J.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:()=>A((e=>!e)),role:"button",tabIndex:0,children:E?e.jsx("button",{type:"button","aria-label":x,className:s(a,"form-icon"),children:e.jsx(N,{name:"mdi:eye-off",size:24})}):e.jsx("button",{type:"button","aria-label":p,className:s(a,"form-icon"),children:e.jsx(N,{name:"mdi:eye",size:24})})}),e.jsx(ee,Object.assign({type:t,required:n||Boolean(h.required),icon:c,className:l,disabled:m,autoComplete:g},r))]})}case exports.FIELD_TYPES.TEXTAREA:return e.jsx(ee,Object.assign({type:J.TEXTAREA,required:n||Boolean(h.required),icon:c,className:l,disabled:m},r));case exports.FIELD_TYPES.EMAIL:return e.jsx(ee,Object.assign({type:J.EMAIL,required:n||Boolean(h.required),icon:c,className:l,disabled:m,autoComplete:g},r));case exports.FIELD_TYPES.DATE:return e.jsx(ee,Object.assign({type:J.DATE,required:n||Boolean(h.required),icon:c,className:l,disabled:m},r));case exports.FIELD_TYPES.DATETIME:return e.jsx(ee,Object.assign({type:J.DATETIME,required:n||Boolean(h.required),icon:c,className:l,disabled:m},r));case exports.FIELD_TYPES.NUMBER:return e.jsx(ee,Object.assign({type:J.NUMBER,required:n||Boolean(h.required),icon:c,className:l,disabled:m},r));case exports.FIELD_TYPES.CHECKBOX:return e.jsx(I,Object.assign({required:n||Boolean(h.required),id:a,className:l,label:i,disabled:m},r));case exports.FIELD_TYPES.RADIO:return e.jsx(X,Object.assign({required:n||Boolean(h.required),id:a,className:l,options:d,disabled:m},r));case exports.FIELD_TYPES.SWITCH:return e.jsx(Q,Object.assign({id:a,required:n||Boolean(h.required),className:l,disabled:m},r));case exports.FIELD_TYPES.SELECT:return e.jsx(fe,Object.assign({required:n||Boolean(h.required),id:a,className:l,disabled:m,label:i,options:d},r));case exports.FIELD_TYPES.FILE:return e.jsx(P,Object.assign({required:n||Boolean(h.required),id:a,className:l,disabled:m,onChangeCallback:e=>{f(e)}},r));default:return e.jsx(ee,Object.assign({type:J.TEXT,required:n||Boolean(h.required),disabled:m,icon:c,className:l},r))}})(r,t)})}),u&&e.jsx("div",{className:"formfield-description",children:e.jsx(D,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:u})}),S[a]&&e.jsx("div",{className:"formfield-error text-error italic",children:e.jsx(D,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:null===(b=null===(v=null==S?void 0:S[a])||void 0===v?void 0:v.message)||void 0===b?void 0:b.toString()})})]})})};ge.displayName="FormField";const ve=({testID:t,url:s,title:a="Share",enabled:r={facebook:!0,twitter:!0}})=>e.jsxs("div",{"data-testid":t||"Share",className:"flex gap-2 items-center ",children:[e.jsx("div",{children:e.jsxs(D,{as:exports.COPY_TAG.P,className:"mb-0",children:[te.UI.SHARE,":"]})}),(null==r?void 0:r.facebook)&&e.jsx(l.FacebookShareButton,{url:s,title:a,className:"",children:e.jsx(N,{name:"mdi:facebook"})}),(null==r?void 0:r.twitter)&&e.jsx(l.TwitterShareButton,{url:s,title:a,className:"",children:e.jsx(N,{name:"mdi:twitter"})}),(null==r?void 0:r.whatsapp)&&e.jsx(l.WhatsappShareButton,{url:s,title:a,className:"",children:e.jsx(N,{name:"mdi:whatsapp"})}),(null==r?void 0:r.email)&&e.jsx(l.EmailShareButton,{url:s,title:a,className:"",children:e.jsx(N,{name:"mdi:email"})}),(null==r?void 0:r.linkedin)&&e.jsx(l.LinkedinShareButton,{url:s,title:a,className:"",children:e.jsx(N,{name:"mdi:linkedin"})})]});ve.displayName="Share";const Ne=({data:a})=>{const[r,i]=t.useState(0);return a?e.jsx("div",{"data-testid":"Tabs",children:e.jsxs(c.Tabs,{onSelect:e=>i(e),children:[e.jsx(c.TabList,{className:"mb-8 flex p-0",children:a.map(((t,a)=>e.jsx(c.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":r!==a,"border-primary border-solid border-0 border-b-2":r===a}),children:e.jsx(D,{className:"m-0 text-center",children:t.title})},a)))}),a.map(((t,s)=>e.jsx(c.TabPanel,{className:"",children:t.content},s)))]})}):e.jsx(e.Fragment,{})};Ne.displayName="Tabs";const be=({testID:t,facebook:s,twitter:a,instagram:r,linkedin:i})=>e.jsxs("div",{"data-testid":t||'"VisitUs"',className:"flex gap-2",children:[s&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(s.url)}),a&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(a.url)}),r&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(r.url)}),i&&e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(i.url)})]});be.displayName="VisitUs";const Ee=({testID:t,title:a,links:r,inline:n=!0,separators:o=!1,className:l})=>e.jsxs("div",{"data-testid":t||'"Menu"',className:i.twMerge(s("flex flex-col gap-2",l)),children:[a&&e.jsx("div",{children:e.jsx(Y,{tag:exports.HEADING_TAGS.H3,children:a})}),e.jsx("div",{className:s("flex gap-0 items-center md:items-start",{"flex-row ":n},{"flex-col ":!n}),children:null==r?void 0:r.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(R,{href:t.url,className:"flex gap-1",children:[t.icon&&e.jsx(N,{name:t.icon}),t.title&&e.jsx("div",{children:t.title})]})}),o&&s+1<r.length&&e.jsx("div",{className:"h-full flex self-center px-2",children:e.jsx(N,{name:"mdi:dot",className:"opacity-50"})})]},a)}))})]});var Ae;Ee.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(Ae||(Ae={}));const je=({children:t,className:a,spacing:r,padded:n,isNarrow:o,isCentered:l,isFlush:c,direction:d=Ae.COLUMN})=>{const m=i.twMerge(s("container mx-auto my-0",{"px-4":n},{"py-40":"feature"===r},{"py-24":"component"===r},{"py-16":"module"===r},{"py-10":"element"===r},{"py-4":"atom"===r},{"py-0":"none"===r},{"max-w-3xl":o},{"flex items-center justify-center flex-col":l},{"px-0 max-w-full mx-0":c},{"flex flex-col":d===Ae.COLUMN},{"flex-row":d===Ae.ROW})),u=s("mx-4 md:mx-0",a);return e.jsx("div",{"data-testid":"Container",className:m,children:e.jsx("div",{className:u,children:t})})};je.displayName="Container";const ye=({testID:t,children:a,withBg:r=!0,inversed:i=!1})=>e.jsxs("div",{"data-testid":t||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[r&&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":!i,"-top-24 left-0":i})}),e.jsx(je,{children:a})]});ye.displayName="Hero";const Se={replace(t){if("a"===t.name){const s=d.attributesToProps(t.attribs);return e.jsx(R,Object.assign({},s,{children:d.domToReact(t.children,Se)}))}if(t.attribs&&"p"===t.name){const s=d.attributesToProps(t.attribs);return e.jsx(D,Object.assign({},s,{children:d.domToReact(t.children,Se)}))}return t}},Te=({testID:t,data:a,align:r,className:i})=>e.jsx("span",{"data-testid":t||'"HtmlContent"',className:s("relative",{"text-right":"right"===r},{"text-center":"center"===r},{"text-left":"left"===r},i),children:d(a,Se)});Te.displayName="HtmlContent";const Ce=({testID:r,bgAsset:i,focalAsset1:n,focalAsset2:o,focalAsset3:l})=>{const c=t.useRef(null),d=a.useInView(c);console.log("isInView",d);const m={opacity:.001,rotate:0,scale:1,x:200,y:0},u={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":r||"AnimationSet1",className:s("relative w-full h-full"),children:[i&&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(H,{src:i.src,alt:i.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:m,animate:u,children:e.jsx(H,{src:n.src,alt:n.alt,fill:!0})}),o&&e.jsx(a.motion.div,{className:"absolute w-1/2 aspect-[0.5/1] left-0 top-20",initial:m,animate:Object.assign(Object.assign({},u),{transition:Object.assign(Object.assign({},u.transition),{delay:.3})}),children:e.jsx(H,{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-10 z-20 items-end justify-end left-10",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(H,{src:l.src,fill:!0,alt:l.alt})})})]})};Ce.displayName="AnimationSet1";const Ie=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,Re=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,we={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},Oe={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."}},_e=({handleSubmit:t,initialValues:s,showSocialButtons:a=!1})=>e.jsxs("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[e.jsxs(xe,{onSubmit:t,submit:te.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx(ge,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:te.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:we,autoComplete:"email"}),e.jsx(ge,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:te.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),a&&e.jsxs(e.Fragment,{children:[e.jsx(U,{}),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(S,{onClick:()=>window.location.assign(Ie),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:te.UI.LOGIN_WITH_GOOGLE}),e.jsx(S,{onClick:()=>window.location.assign(Re),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:te.UI.LOGIN_WITH_APPLE})]})})]})]});_e.displayName="LoginForm";const Le=({handleSubmit:t,showSocialButtons:s=!1})=>e.jsxs("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[e.jsxs(xe,{onSubmit:t,submit:te.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e.jsx(ge,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:te.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:we,autoComplete:"email"}),e.jsx(ge,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:te.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:te.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:Oe,autoComplete:"new-password"})]}),s&&e.jsxs(e.Fragment,{children:[e.jsx(U,{}),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(S,{onClick:()=>window.location.assign(Ie),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:te.UI.SIGNUP_WITH_GOOGLE}),e.jsx(S,{onClick:()=>window.location.assign(Re),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:te.UI.SIGNUP_WITH_APPLE})]})})]})]});Le.displayName="RegisterForm";const ke=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e.jsx(xe,{onSubmit:t,submit:te.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(ge,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:te.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:we})})});ke.displayName="ForgotPasswordForm";const De=({loginSubmit:s,registerSubmit:a,passwordForgotSubmit:r,handleTokenCallback:i,showSocialLogin:n=!1})=>{const[o,l]=t.useState(!1);return t.useEffect((()=>{console.log("Authenticator useEffect",process.env),function(){C(this,void 0,void 0,(function*(){if(!process.env.AWS_COGNITO_USERPOOL_DOMAIN||!process.env.AWS_COGNITO_CLIENT_ID||!process.env.AWS_COGNITO_REDIRECT_URI)return;const e=new URLSearchParams(window.location.search).get("code");if(e){const t=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/token`,s=new URLSearchParams;s.append("grant_type","authorization_code"),s.append("client_id",process.env.AWS_COGNITO_CLIENT_ID),s.append("code",e),s.append("redirect_uri",process.env.AWS_COGNITO_REDIRECT_URI);const a=yield fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s}),r=yield a.json();r&&i&&"function"==typeof i&&i(r)}}))}()}),[]),e.jsxs("div",{"data-testid":"Authenticator",className:"w-full",children:[!o&&e.jsx(Ne,{data:[{title:"Login",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(_e,{handleSubmit:s,showSocialButtons:n}),e.jsx("div",{className:"mt-4",children:e.jsx(S,{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(Le,{handleSubmit:a,showSocialButtons:n})})}]}),o&&e.jsx(Ne,{data:[{title:"Forgot Password",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(ke,{handleSubmit:r}),e.jsx("div",{className:"mt-4",children:e.jsx(S,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};var Me;De.displayName="Authenticator",function(e){e.NONE="py-0",e.ATOM="py-8",e.DEFAULT="py-16",e.ELEMENT="py-24",e.COMPONENT="py-32",e.MODULE="py-40",e.FEATURE="py-64"}(Me||(Me={}));const Pe=({testID:r,cardData:i,title:n,description:o,withSeparators:l,spacing:c=Me.MODULE})=>{const d=t.useRef(null),m=a.useInView(d,{once:!0});return e.jsxs("div",{ref:d,"data-testid":r||"PanelCards",className:s("relative m-auto w-full flex flex-col flex-none flex-nowrap",c),children:[(n||o)&&e.jsxs("div",{className:"relative text-center py-8",children:[n&&e.jsx(pe,{text:n}),o&&e.jsx(D,{align:exports.COPY_ALIGN.CENTER,children:o})]}),e.jsx("div",{className:"flex gap-8",children:null==i?void 0:i.map(((t,a)=>e.jsxs("span",{className:"flex gap-8 justify-between",children:[e.jsx("div",{className:s("relative flex flex-1 items-center justify-center",{"":l}),style:{transform:m?"none":"translateY(200px)",opacity:m?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*a}s`},children:e.jsx(ue,Object.assign({},t))}),l&&a<i.length-1&&e.jsx("div",{className:"w-1 h-10 border-0 border-r border-solid border-primary500"},`separator-${a}`)]},`card-${a}`)))})]})};Pe.displayName="PanelCards";const Fe=({testID:t,title:a,description:r,inversed:i,assets:n,buttonData:o,withBg:l=!0,spacing:c=Me.DEFAULT})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap",c),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(je,{children:e.jsxs("div",{className:s("relative flex sm:flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-16",{"flex-row-reverse":i}),children:[e.jsxs("div",{className:"w-1/2 flex flex-col items-start justify-center",children:[e.jsxs("div",{className:"relative text-left",children:[e.jsx(pe,{text:a}),e.jsx(D,{className:"mb-0",children:r})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 my-8",children:[e.jsx(M,{rounded:!0,text:"New",variant:"info"}),e.jsx(M,{rounded:!0,text:"Trending",variant:"info"}),e.jsx(M,{rounded:!0,text:"Popular",variant:"info"})]}),e.jsx("div",{className:"",children:e.jsx(S,Object.assign({},o))})]}),e.jsx("div",{className:"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(Ce,{bgAsset:n.bgAsset,focalAsset1:n.focalAsset1,focalAsset2:n.focalAsset2,focalAsset3:n.focalAsset3})})})]})})]});Fe.displayName="PanelFeature";const Be=({url:a,sources:r,onReady:n,className:o,options:l={},isYoutube:c=!1,defaultAudioTrack:d="No Music",rounded:p=!0,aspectRatioValue:x})=>{const h=t.useRef(null),f=t.useRef(null),g=t.useRef(null),v=t.useMemo((()=>{switch(x){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]"}}}),[x]);return t.useEffect((()=>{var e;if(c)return;const t=Object.assign(Object.assign({autoplay:!0,controls:!0,muted:!1,responsive:!0,fill:!0,fluid:!0,aspectRatio:v.aspectRatio||"16:9",controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},l),{sources:r});if(!g.current){const s=document.createElement("video-js");s.classList.add("vjs-big-play-centered"),null===(e=null==f?void 0:f.current)||void 0===e||e.appendChild(s);const a=g.current=u(s,t,(()=>{u.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===d&&(e[t].enabled=!0)}))}}),[l,f]),t.useEffect((()=>{if(c)return;const e=g.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),g.current=null)}}),[g]),c&&a?e.jsx("div",{"data-testid":"Video",className:s("relative w-full h-full aspect-[16/9]",o),children:e.jsx(m,{ref:h,className:"react-player",url:a,width:"100%",height:"100%",controls:!0,onReady:n})}):e.jsx("div",{className:i.twMerge(s("relative w-full overflow-hidden h-full aspect-[16/9] bg-black object-cover",{rouded:p},v.className,o)),children:e.jsx("div",{"data-vjs-player":!0,children:e.jsx("div",{ref:f,className:"object-cover"})})})};Be.displayName="Video";const Ge=({testID:r,title:n,contentComponent:o,description:l,image:c,buttonData:d,inversed:m=!1,withBg:u=!0,spacing:p,video:x,headingTag:h,className:f})=>{const g=a.useAnimation(),v=t.useRef(null),N=a.useInView(v),b={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};t.useEffect((()=>{N&&g.start((e=>({transform:"none",transition:Object.assign(Object.assign({},b),{delay:.1*e})})))}),[g,N]);const E=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=m?"translateX(100px)":"translateX(-100px)";return e.jsxs("div",{"data-testid":r||"PanelHero",className:i.twMerge(s("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",p,f)),children:[u&&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":!m,"-top-24 left-0":m})}),e.jsx(je,{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":m}),children:[e.jsx("div",{ref:v,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-primary-darker p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!m},{"text-left bg-gradient-to-t md:bg-gradient-to-r":m}),children:[e.jsx(a.motion.div,{initial:{transform:A},custom:0,animate:g,children:e.jsx(pe,{text:n,tag:h})}),o&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:g,children:o}),l&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:g,children:e.jsx(Te,{className:"mb-0",align:m?exports.COPY_ALIGN.LEFT:exports.COPY_ALIGN.RIGHT,data:l})}),d&&e.jsx(a.motion.div,{initial:{transform:A},custom:2,animate:g,children:e.jsx("div",{className:s("flex items-center",{"justify-end":!m,"justify-start":m}),children:e.jsx(S,Object.assign({},d))})})]})}),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",E),children:[c&&e.jsx(H,{src:c,alt:n,fill:!0}),x&&e.jsx(Be,{sources:x.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:x.aspectRatioValue})]})})]})})]})};Ge.displayName="PanelHero";const Ye=({testID:t,title:a,description:r,image1:i,image2:n,iosLink:o="#",androidLink:l="#",inversed:c=!1,withBg:d=!0,spacing:m=Me.MODULE})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap",m),children:[d&&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(je,{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-primary bg-opacity-10 backdrop-blur-lg rounded border-opacityDark20 p-8",{"flex-row-reverse":c}),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(H,{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(H,{src:i,alt:a})})]}),e.jsxs("div",{className:"w-full md:w-1/2",children:[e.jsx("div",{children:e.jsx(pe,{text:a})}),e.jsx("div",{children:e.jsx(D,{children:r})}),e.jsxs("div",{className:"flex items-center justify-start gap-4",children:[e.jsx("div",{className:"relative w-[150px] h-[50px]",children:e.jsx(R,{href:o,target:"_blank",hideExternalIcon:!0,children:e.jsx(H,{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(R,{href:l,target:"_blank",hideExternalIcon:!0,children:e.jsx(H,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});Ye.displayName="PanelProduct";const Ue=({testID:t,className:r,title:i,description:n,spacing:o=Me.NONE,videoProps:l})=>e.jsxs("div",{"data-testid":t||'"PanelVideo"',className:s("relative m-auto w-full flex flex-none flex-nowrap aspect-[16/6.6]",o,r),children:[e.jsx(Be,{rounded:!1,options:Object.assign({autoplay:!0,muted:!0,controls:!1,loop:!0},null==l?void 0:l.options),sources:null==l?void 0:l.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-0 w-full h-full flex flex-col items-end justify-center pr-24 text-white",children:[i&&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(Y,{tag:exports.HEADING_TAGS.H2,children:i})})}),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(D,{children:n})})})]})]})]});var He;Ue.displayName="PanelVideo",exports.CPL_SPACING=void 0,(He=exports.CPL_SPACING||(exports.CPL_SPACING={})).NONE="none",He.ATOM="atom",He.DEFAULT="default",He.ELEMENT="element",He.COMPONENT="component",He.MODULE="module",He.FEATURE="feature";const Ve=({spacing:t=exports.CPL_SPACING.DEFAULT,children:a,narrow:r,flush:i,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":r},{"p-0":i},n);return e.jsx("div",{"data-testid":"ContentPageLayout",className:o,children:a})};var ze;Ve.displayName="ContentPageLayout",exports.CRL_SIZE=void 0,(ze=exports.CRL_SIZE||(exports.CRL_SIZE={})).NONE="none",ze.ATOM="atom",ze.DEFAULT="default",ze.ELEMENT="element",ze.COMPONENT="component",ze.MODULE="module",ze.FEATURE="feature";const We=({className:t,children:a,size:r=exports.CRL_SIZE.DEFAULT})=>{const i=s("grid","auto-rows-min","grid-cols-1","gap-x-4",{"gap-y-0 mb-0":"none"===r},{"gap-y-2 mb-2":"atom"===r},{"gap-y-4 mb-4":"default"===r},{"gap-y-8 mb-8":"element"===r},{"gap-y-16 mb-16":"module"===r},{"gap-y-24 mb-24":"component"===r},{"gap-y-40 mb-40":"feature"===r},t);return e.jsx("div",{"data-testid":"ContentRowsLayout",className:i,children:a})};We.displayName="ContentRowsLayout";const qe=t.createContext({brand:void 0,header:void 0,footer:void 0,locale:void 0}),Ze=({children:t,value:s})=>e.jsx(qe.Provider,{value:s,children:t}),$e=({testID:a,className:r,logoAspectRatio:i="aspect-[16/9]"})=>{var n,o,l,c,d,m,u,p,x,h,f,g,v;const N=t.useContext(qe);return e.jsxs("footer",{className:s("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8",r),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===(n=null==N?void 0:N.brand)||void 0===n?void 0:n.logo)&&e.jsx("div",{className:"relative w-24",children:e.jsx(Z,{logo:null===(o=null==N?void 0:N.brand)||void 0===o?void 0:o.logo,aspectRatioClass:i})}),(null===(l=N.footer)||void 0===l?void 0:l.about)&&e.jsx("div",{children:e.jsx(D,{children:N.footer.about})}),e.jsx("div",{children:e.jsx(be,{facebook:null===(d=null===(c=N.footer)||void 0===c?void 0:c.visitUs)||void 0===d?void 0:d.facebook,twitter:null===(u=null===(m=N.footer)||void 0===m?void 0:m.visitUs)||void 0===u?void 0:u.twitter,instagram:null===(x=null===(p=N.footer)||void 0===p?void 0:p.visitUs)||void 0===x?void 0:x.instagram,linkedin:null===(f=null===(h=N.footer)||void 0===h?void 0:h.visitUs)||void 0===f?void 0:f.linkedin})})]}),(null===(g=N.footer)||void 0===g?void 0:g.menus)&&e.jsx("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:N.footer.menus.map(((t,s)=>e.jsx("div",{className:"flex flex-1",children:e.jsx(Ee,{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(D,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:["© ",(new Date).getFullYear()," ",te.UI.COPYRIGHT," ",null===(v=N.brand)||void 0===v?void 0:v.name]}),e.jsx(D,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:te.UI.ALL_RIGHTS_RESERVED})]})]})};$e.displayName="Footer";const Ke=({testID:a,menuLinks:r,profileLinks:i,loginCallback:n,logoutCallback:o,isAuthenticated:l=!1,hideMenu:c=!1,logoAspectRatio:d="aspect-[16/9]",className:m,logoOnly:u})=>{var p,x,h,f,g,v;const N=t.useContext(qe),[b,E]=t.useState("hidden"),[A,j]=t.useState(!1),y=()=>{E("hidden"===b?"block":"hidden")};return u?e.jsx("header",{"data-testid":a||'"Header"',className:s("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0",m),children:e.jsx("div",{className:"relative w-full flex justify-center items-center",children:(null===(p=null==N?void 0:N.brand)||void 0===p?void 0:p.logo)&&e.jsx("div",{className:"relative w-56",children:e.jsx(R,{href:"/",children:e.jsx(Z,{logo:null===(x=null==N?void 0:N.brand)||void 0===x?void 0:x.logo,aspectRatioClass:d})})})})}):e.jsxs("header",{"data-testid":a||'"Header"',className:s("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0",m),children:[e.jsxs("div",{className:"relative w-full flex",children:[(null===(h=null==N?void 0:N.brand)||void 0===h?void 0:h.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(R,{href:"/",children:e.jsx(Z,{logo:null===(f=null==N?void 0:N.brand)||void 0===f?void 0:f.logo,aspectRatioClass:d})})}),e.jsx("div",{className:"flex-1 hidden md:flex items-center justify-center",children:e.jsx(Ee,{links:r,separators:!0})}),e.jsxs("div",{className:"hidden md:flex flex-col justify-center",children:[!l&&n&&e.jsx(S,{onClick:n,children:te.UI.LOGIN}),l&&e.jsxs("div",{className:"relative",children:[e.jsx(S,{onClick:()=>j(!A),icon:A?"mdi:user-outline":"mdi:user"}),e.jsx("div",{onClick:()=>j(!1),className:s("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!A}),children:e.jsx(Ee,{links:i,inline:!1})})]})]}),e.jsx("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:menu",onClick:y})})]}),e.jsxs("div",{className:s("navbar-menu relative z-50",b,{hidden:c}),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===(g=null==N?void 0:N.brand)||void 0===g?void 0:g.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(Z,{logo:null===(v=null==N?void 0:N.brand)||void 0===v?void 0:v.logo,aspectRatioClass:"aspect-[16/9]"})})}),e.jsx("div",{children:e.jsx(S,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:close",onClick:y})})]}),e.jsxs("div",{className:"flex flex-col flex-1 gap-4",children:[l&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(D,{children:"User profile avatar and details here."})}),e.jsx("div",{className:"flex flex-1 justify-center pt-4",children:e.jsx(Ee,{links:r,inline:!1})}),l&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(S,{onClick:o,children:te.UI.LOGOUT})}),!l&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(S,{onClick:()=>{n(),y()},children:te.UI.LOGIN})})]})]})]})]})};Ke.displayName="Header";const Xe=({testID:a,inputCallback:r,seperator:i,numInputs:n=4,shouldAutoFocus:o=!1,size:l="medium"})=>{const[c,d]=t.useState("");t.useEffect((()=>{c&&4===c.length&&void 0!==r&&"function"==typeof r&&r(c)}),[c]);const m=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(p,{value:c,onChange:d,inputType:"number",numInputs:n,shouldAutoFocus:o,renderSeparator:i?()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(N,{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:m.width,height:m.height}})})};var Qe,Je;function et({className:t,label:a,onChange:r,options:i}){return e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(V,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(fe,{id:a||"Sorting",options:i,onChange:e=>r(e.target.value)})]})}function tt(t){var{className:a,current:r,resultsPerPage:i=10,onChange:n,totalPages:o}=t,l=T(t,["className","current","resultsPerPage","onChange","totalPages"]);return e.jsx(f,Object.assign({current:r,onChange:n,simple:!0,pageSize:i,total:o*i,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:g,prevIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(N,{name:"mdi:chevron-left"})}),nextIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(N,{name:"mdi:chevron-right"})})},l))}function st({className:t,onChange:a,options:r,label:i}){return r?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(V,{className:"text-sm mr-2",transform:exports.COPY_TRANSFORM.UPPERCASE,children:te.UI.SHOW}),e.jsx(fe,{id:i||"ResultsPerPage",options:r.map((e=>({label:e.toString(),value:e}))),onChange:e=>a(e.target.value),className:"min-w-20"})]}):e.jsx(e.Fragment,{})}function at(t){var{className:a,end:r,searchTerm:i,start:n,totalResults:o}=t,l=T(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," - ",r]})," ","out of ",e.jsx("strong",{children:o}),i&&e.jsxs(e.Fragment,{children:[" ","for: ",e.jsx("em",{children:i})]})]}))}function rt({className:a,onChange:r,onSubmit:i,wasSearched:n,placeholder:o}){const l=t.useContext(h.SearchContext);return e.jsx("div",{className:s("m-0 px-48",a),children:e.jsxs("form",{onSubmit:e=>i(e),className:"flex items-center",children:[e.jsx("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e.jsx(ee,{name:"SearchBoxInput",type:J.TEXT,placeholder:o||"Search now...",onChange:e=>{var t;r(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&&e.jsx(S,{type:exports.BTN_TYPES.BUTTON,onClick:()=>l.driver.reset(),variant:exports.BTN_VARIANTS.SECONDARY,children:"Reset"}),e.jsx(S,{type:exports.BTN_TYPES.SUBMIT,variant:exports.BTN_VARIANTS.PRIMARY,children:"Search"})]})})]})})}function it({className:t,children:a,header:r,bodyContent:i,bodyFooter:n,bodyHeader:o,sideContent:l}){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("div",{className:s("w-full flex flex-col",t),children:[e.jsx("div",{className:"m-auto md:py-0 w-full",children:r}),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:[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||i}),e.jsx("div",{className:"flex items-center justify-around",children:n})]})]})]})}function nt(t){var{children:a,className:r,gridClasses:i}=t,n=T(t,["children","className","gridClasses"]);const o=i||"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,r)},n,{children:a}))}function ot(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function lt(e,t){if(e)return e[t]}function ct(e){const t=lt(e,"snippet")||(s=function(e){return lt(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 dt({className:t,result:a,as:r,cardMap:i={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:n,titleField:o,imageField:l,videoField:c,descriptionField:d,metaDataFields:m,cardProps:u}=i,p=n&&ct(a[n.fieldName]),x=o&&ct(a[o.fieldName]),h=l&&ct(a[l.fieldName]),f=c&&c.formatter?c.formatter(ct(a[c.fieldName])):c&&ct(a[c.fieldName]),g=d&&ct(a[d.fieldName]),v=m&&m.map((e=>{const t=ct(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:f,description:g,metaData:v,actions:i.actionsData,onClick:i.onClickLink};switch(r){case exports.ResultAsTypes.cardMedia:return e.jsx(ue,Object.assign({variant:exports.CardVariant.MEDIA,data:t},u));case exports.ResultAsTypes.cardVideo:return e.jsx(ue,Object.assign({variant:exports.CardVariant.VIDEO,data:t},u,{isMuted:!1}));default:return e.jsx(ue,Object.assign({variant:exports.CardVariant.BASIC,data:t},u))}})()})}function mt({className:t,label:a,onChange:r,options:i}){const n=i.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(V,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(fe,{id:a,options:n,onChange:e=>r(e.target.value)})]})}function ut({className:t,label:a,onRemove:r,onSelect:i,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(V,{className:"text-sm",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:[ot(o),e.jsx("span",{className:"ml-1 px-1",children:e.jsx(S,{onClick:()=>r(o),children:e.jsx(N,{name:"mdi:close"})})})]}),!o&&n.map((t=>{const s=ot(t.value);return e.jsxs("li",{className:"m-0 flex justify-between",children:[e.jsx("a",{className:"no-underline text-sm visited:text-bodyText","data-transaction-name":`facet - ${a}`,href:"/",onClick:e=>{e.preventDefault(),i(t.value)},children:e.jsx("label",{className:"label pl-0 leading-none text-sm",children:s})}),e.jsx(D,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.SMALL,children:t.count.toLocaleString("en")})]},s)}))]})]})})}function pt({className:t,label:a,onMoreClick:r,onRemove:i,onSelect:n,options:o,showMore:l,showSearch:c,onSearch:d,searchPlaceholder:m}){return o?e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(V,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),c&&e.jsx("div",{className:"mt-1",children:e.jsx(ee,{type:J.SEARCH,placeholder:m||"Search",onChange:e=>{d(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,r=t.value,o=ot(r);return e.jsxs("div",{className:"flex justify-between pb-2",children:[e.jsx(I,{id:`facet_${a}${o}`,"data-transaction-name":`facet - ${a}`,checked:s,onChange:()=>s?i(r):n(r),label:o}),e.jsx(D,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.SMALL,children:t.count.toLocaleString("en")})]},o)}))]}),l&&e.jsx(S,{size:exports.BTN_SIZES.SMALL,variant:exports.BTN_VARIANTS.TERTIARY,onClick:r,"aria-label":"Show more options",children:"+ More"})]}):e.jsx(e.Fragment,{children:"Options required"})}Xe.displayName="OTPInput",exports.CardVariant=void 0,(Qe=exports.CardVariant||(exports.CardVariant={})).BASIC="basic",Qe.MEDIA="media",Qe.VIDEO="video",Qe.ICON="icon",Qe.HORZ="horz",Qe.DATA="data",exports.ResultAsTypes=void 0,(Je=exports.ResultAsTypes||(exports.ResultAsTypes={})).cardBasic="cardBasic",Je.cardMedia="cardMedia",Je.cardVideo="cardVideo",et.displayName="Sorting",tt.displayName="Paging",st.displayName="ResultsPerPage",at.displayName="PagingInfo",rt.displayName="SearchBox",it.displayName="Layout",nt.displayName="Results",dt.displayName="Result",mt.displayName="SingleSelectFacet",ut.displayName="SingleLinksFacet",pt.displayName="MultiCheckboxFacet";const xt=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e.jsx(xe,{onSubmit:t,submit:te.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(ge,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:te.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:Oe})})});xt.displayName="ResetPasswordForm";const ht=({testID:t,initialValues:s,handleSubmit:a})=>e.jsx("div",{"data-testid":t||'"ProfileForm"',className:"form-wrapper",children:e.jsxs(xe,{onSubmit:a,submit:te.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx("div",{className:"mb-4 items-center justify-center flex",children:e.jsx(se,{name:"avatar",initValue:null==s?void 0:s.avatar})}),e.jsx(ge,{name:"firstName",type:exports.FIELD_TYPES.TEXT,label:te.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e.jsx(ge,{name:"lastName",type:exports.FIELD_TYPES.TEXT,label:te.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e.jsx(ge,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:te.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:we})]})});ht.displayName="ProfileForm";const ft={isDarkTheme:!1,toggleTheme:()=>console.log("toggleTheme")},gt=t.createContext(ft);const vt={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 Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bt={exports:{}},Et={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]},At={exports:{}},jt=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))},yt=Array.prototype.concat,St=Array.prototype.slice,Tt=At.exports=function(e){for(var t=[],s=0,a=e.length;s<a;s++){var r=e[s];jt(r)?t=yt.call(t,St.call(r)):t.push(r)}return t};Tt.wrap=function(e){return function(){return e(Tt(arguments))}};var Ct=At.exports,It=Et,Rt=Ct,wt=Object.hasOwnProperty,Ot=Object.create(null);for(var _t in It)wt.call(It,_t)&&(Ot[It[_t]]=_t);var Lt=bt.exports={to:{},get:{}};function kt(e,t,s){return Math.min(Math.max(t,e),s)}function Dt(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}Lt.get=function(e){var t,s;switch(e.substring(0,3).toLowerCase()){case"hsl":t=Lt.get.hsl(e),s="hsl";break;case"hwb":t=Lt.get.hwb(e),s="hwb";break;default:t=Lt.get.rgb(e),s="rgb"}return t?{model:s,value:t}:null},Lt.get.rgb=function(e){if(!e)return null;var t,s,a,r=[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 i=2*s;r[s]=parseInt(t.slice(i,i+2),16)}a&&(r[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++)r[s]=parseInt(t[s]+t[s],16);a&&(r[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++)r[s]=parseInt(t[s+1],0);t[4]&&(t[5]?r[3]=.01*parseFloat(t[4]):r[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]:wt.call(It,t[1])?((r=It[t[1]])[3]=1,r):null:null;for(s=0;s<3;s++)r[s]=Math.round(2.55*parseFloat(t[s+1]));t[4]&&(t[5]?r[3]=.01*parseFloat(t[4]):r[3]=parseFloat(t[4]))}for(s=0;s<3;s++)r[s]=kt(r[s],0,255);return r[3]=kt(r[3],0,1),r},Lt.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,kt(parseFloat(t[2]),0,100),kt(parseFloat(t[3]),0,100),kt(isNaN(s)?1:s,0,1)]}return null},Lt.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,kt(parseFloat(t[2]),0,100),kt(parseFloat(t[3]),0,100),kt(isNaN(s)?1:s,0,1)]}return null},Lt.to.hex=function(){var e=Rt(arguments);return"#"+Dt(e[0])+Dt(e[1])+Dt(e[2])+(e[3]<1?Dt(Math.round(255*e[3])):"")},Lt.to.rgb=function(){var e=Rt(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]+")"},Lt.to.rgb.percent=function(){var e=Rt(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]+")"},Lt.to.hsl=function(){var e=Rt(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Lt.to.hwb=function(){var e=Rt(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Lt.to.keyword=function(e){return Ot[e.slice(0,3)]};var Mt=bt.exports;const Pt=Et,Ft={};for(const e of Object.keys(Pt))Ft[Pt[e]]=e;const Bt={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 Gt=Bt;for(const e of Object.keys(Bt)){if(!("channels"in Bt[e]))throw new Error("missing channels property: "+e);if(!("labels"in Bt[e]))throw new Error("missing channel labels property: "+e);if(Bt[e].labels.length!==Bt[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:s}=Bt[e];delete Bt[e].channels,delete Bt[e].labels,Object.defineProperty(Bt[e],"channels",{value:t}),Object.defineProperty(Bt[e],"labels",{value:s})}Bt.rgb.hsl=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,r=Math.min(t,s,a),i=Math.max(t,s,a),n=i-r;let o,l;i===r?o=0:t===i?o=(s-a)/n:s===i?o=2+(a-t)/n:a===i&&(o=4+(t-s)/n),o=Math.min(60*o,360),o<0&&(o+=360);const c=(r+i)/2;return l=i===r?0:c<=.5?n/(i+r):n/(2-i-r),[o,100*l,100*c]},Bt.rgb.hsv=function(e){let t,s,a,r,i;const n=e[0]/255,o=e[1]/255,l=e[2]/255,c=Math.max(n,o,l),d=c-Math.min(n,o,l),m=function(e){return(c-e)/6/d+.5};return 0===d?(r=0,i=0):(i=d/c,t=m(n),s=m(o),a=m(l),n===c?r=a-s:o===c?r=1/3+t-a:l===c&&(r=2/3+s-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*i,100*c]},Bt.rgb.hwb=function(e){const t=e[0],s=e[1];let a=e[2];const r=Bt.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(s,a));return a=1-1/255*Math.max(t,Math.max(s,a)),[r,100*i,100*a]},Bt.rgb.cmyk=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,r=Math.min(1-t,1-s,1-a);return[100*((1-t-r)/(1-r)||0),100*((1-s-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*r]},Bt.rgb.keyword=function(e){const t=Ft[e];if(t)return t;let s,a=1/0;for(const t of Object.keys(Pt)){const n=(i=Pt[t],((r=e)[0]-i[0])**2+(r[1]-i[1])**2+(r[2]-i[2])**2);n<a&&(a=n,s=t)}var r,i;return s},Bt.keyword.rgb=function(e){return Pt[e]},Bt.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)]},Bt.rgb.lab=function(e){const t=Bt.rgb.xyz(e);let s=t[0],a=t[1],r=t[2];s/=95.047,a/=100,r/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*a-16,500*(s-a),200*(a-r)]},Bt.hsl.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;let r,i,n;if(0===s)return n=255*a,[n,n,n];r=a<.5?a*(1+s):a+s-a*s;const o=2*a-r,l=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,n=6*i<1?o+6*(r-o)*i:2*i<1?r:3*i<2?o+(r-o)*(2/3-i)*6:o,l[e]=255*n;return l},Bt.hsl.hsv=function(e){const t=e[0];let s=e[1]/100,a=e[2]/100,r=s;const i=Math.max(a,.01);a*=2,s*=a<=1?a:2-a,r*=i<=1?i:2-i;return[t,100*(0===a?2*r/(i+r):2*s/(a+s)),100*((a+s)/2)]},Bt.hsv.rgb=function(e){const t=e[0]/60,s=e[1]/100;let a=e[2]/100;const r=Math.floor(t)%6,i=t-Math.floor(t),n=255*a*(1-s),o=255*a*(1-s*i),l=255*a*(1-s*(1-i));switch(a*=255,r){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]}},Bt.hsv.hsl=function(e){const t=e[0],s=e[1]/100,a=e[2]/100,r=Math.max(a,.01);let i,n;n=(2-s)*a;const o=(2-s)*r;return i=s*r,i/=o<=1?o:2-o,i=i||0,n/=2,[t,100*i,100*n]},Bt.hwb.rgb=function(e){const t=e[0]/360;let s=e[1]/100,a=e[2]/100;const r=s+a;let i;r>1&&(s/=r,a/=r);const n=Math.floor(6*t),o=1-a;i=6*t-n,1&n&&(i=1-i);const l=s+i*(o-s);let c,d,m;switch(n){default:case 6:case 0:c=o,d=l,m=s;break;case 1:c=l,d=o,m=s;break;case 2:c=s,d=o,m=l;break;case 3:c=s,d=l,m=o;break;case 4:c=l,d=s,m=o;break;case 5:c=o,d=s,m=l}return[255*c,255*d,255*m]},Bt.cmyk.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,s*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},Bt.xyz.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100;let r,i,n;return r=3.2406*t+-1.5372*s+-.4986*a,i=-.9689*t+1.8758*s+.0415*a,n=.0557*t+-.204*s+1.057*a,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,r=Math.min(Math.max(0,r),1),i=Math.min(Math.max(0,i),1),n=Math.min(Math.max(0,n),1),[255*r,255*i,255*n]},Bt.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)]},Bt.lab.xyz=function(e){let t,s,a;s=(e[0]+16)/116,t=e[1]/500+s,a=s-e[2]/200;const r=s**3,i=t**3,n=a**3;return s=r>.008856?r:(s-16/116)/7.787,t=i>.008856?i:(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]},Bt.lab.lch=function(e){const t=e[0],s=e[1],a=e[2];let r;r=360*Math.atan2(a,s)/2/Math.PI,r<0&&(r+=360);return[t,Math.sqrt(s*s+a*a),r]},Bt.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)]},Bt.rgb.ansi16=function(e,t=null){const[s,a,r]=e;let i=null===t?Bt.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let n=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(s/255));return 2===i&&(n+=60),n},Bt.hsv.ansi16=function(e){return Bt.rgb.ansi16(Bt.hsv.rgb(e),e[2])},Bt.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)},Bt.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]},Bt.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]},Bt.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},Bt.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]},Bt.rgb.hcg=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,r=Math.max(Math.max(t,s),a),i=Math.min(Math.min(t,s),a),n=r-i;let o,l;return o=n<1?i/(1-n):0,l=n<=0?0:r===t?(s-a)/n%6:r===s?2+(a-t)/n:4+(t-s)/n,l/=6,l%=1,[360*l,100*n,100*o]},Bt.hsl.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=s<.5?2*t*s:2*t*(1-s);let r=0;return a<1&&(r=(s-.5*a)/(1-a)),[e[0],100*a,100*r]},Bt.hsv.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=t*s;let r=0;return a<1&&(r=(s-a)/(1-a)),[e[0],100*a,100*r]},Bt.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 r=[0,0,0],i=t%1*6,n=i%1,o=1-n;let l=0;switch(Math.floor(i)){case 0:r[0]=1,r[1]=n,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=n;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=n,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return l=(1-s)*a,[255*(s*r[0]+l),255*(s*r[1]+l),255*(s*r[2]+l)]},Bt.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]},Bt.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]},Bt.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)]},Bt.hwb.hcg=function(e){const t=e[1]/100,s=1-e[2]/100,a=s-t;let r=0;return a<1&&(r=(s-a)/(1-a)),[e[0],100*a,100*r]},Bt.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Bt.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Bt.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Bt.gray.hsl=function(e){return[0,0,e[0]]},Bt.gray.hsv=Bt.gray.hsl,Bt.gray.hwb=function(e){return[0,100,e[0]]},Bt.gray.cmyk=function(e){return[0,0,0,e[0]]},Bt.gray.lab=function(e){return[e[0],0,0]},Bt.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},Bt.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Yt=Gt;function Ut(e){const t=function(){const e={},t=Object.keys(Yt);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(Yt[e]);for(let r=a.length,i=0;i<r;i++){const r=a[i],n=t[r];-1===n.distance&&(n.distance=t[e].distance+1,n.parent=e,s.unshift(r))}}return t}function Ht(e,t){return function(s){return t(e(s))}}function Vt(e,t){const s=[t[e].parent,e];let a=Yt[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)s.unshift(t[r].parent),a=Ht(Yt[t[r].parent][r],a),r=t[r].parent;return a.conversion=s,a}const zt=Gt,Wt=function(e){const t=Ut(e),s={},a=Object.keys(t);for(let e=a.length,r=0;r<e;r++){const e=a[r];null!==t[e].parent&&(s[e]=Vt(e,t))}return s},qt={};Object.keys(zt).forEach((e=>{qt[e]={},Object.defineProperty(qt[e],"channels",{value:zt[e].channels}),Object.defineProperty(qt[e],"labels",{value:zt[e].labels});const t=Wt(e);Object.keys(t).forEach((s=>{const a=t[s];qt[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),qt[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 Zt=Mt,$t=qt,Kt=["keyword","gray","hex"],Xt={};for(const e of Object.keys($t))Xt[[...$t[e].labels].sort().join("")]=e;const Qt={};function Jt(e,t){if(!(this instanceof Jt))return new Jt(e,t);if(t&&t in Kt&&(t=null),t&&!(t in $t))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 Jt)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=Zt.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,a=$t[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=$t[this.model].channels;const s=Array.prototype.slice.call(e,0,a);this.color=as(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 Xt))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Xt[a];const{labels:r}=$t[this.model],i=[];for(s=0;s<r.length;s++)i.push(e[r[s]]);this.color=as(i)}if(Qt[this.model])for(a=$t[this.model].channels,s=0;s<a;s++){const e=Qt[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)}Jt.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Zt.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const s=1===t.valpha?t.color:[...t.color,this.valpha];return Zt.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 Zt.to.rgb.percent(s)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=$t[this.model],{labels:s}=$t[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 Jt([...this.color.map(es(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new Jt([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:ts("rgb",0,ss(255)),green:ts("rgb",1,ss(255)),blue:ts("rgb",2,ss(255)),hue:ts(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:ts("hsl",1,ss(100)),lightness:ts("hsl",2,ss(100)),saturationv:ts("hsv",1,ss(100)),value:ts("hsv",2,ss(100)),chroma:ts("hcg",1,ss(100)),gray:ts("hcg",2,ss(100)),white:ts("hwb",1,ss(100)),wblack:ts("hwb",2,ss(100)),cyan:ts("cmyk",0,ss(100)),magenta:ts("cmyk",1,ss(100)),yellow:ts("cmyk",2,ss(100)),black:ts("cmyk",3,ss(100)),x:ts("xyz",0,ss(95.047)),y:ts("xyz",1,ss(100)),z:ts("xyz",2,ss(108.833)),l:ts("lab",0,ss(100)),a:ts("lab",1),b:ts("lab",2),keyword(e){return void 0!==e?new Jt(e):$t[this.model].keyword(this.color)},hex(e){return void 0!==e?new Jt(e):Zt.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new Jt(e);const t=this.rgb().round().color;let s=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===s.length&&(s="0"+s),Zt.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 Jt.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(),r=void 0===t?.5:t,i=2*r-1,n=s.alpha()-a.alpha(),o=((i*n==-1?i:(i+n)/(1+i*n))+1)/2,l=1-o;return Jt.rgb(o*s.red()+l*a.red(),o*s.green()+l*a.green(),o*s.blue()+l*a.blue(),s.alpha()*r+a.alpha()*(1-r))}};for(const e of Object.keys($t)){if(Kt.includes(e))continue;const{channels:t}=$t[e];Jt.prototype[e]=function(...t){return this.model===e?new Jt(this):t.length>0?new Jt(t,e):new Jt([...(s=$t[this.model][e].raw(this.color),Array.isArray(s)?s:[s]),this.valpha],e);var s},Jt[e]=function(...s){let a=s[0];return"number"==typeof a&&(a=as(s,t)),new Jt(a,e)}}function es(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function ts(e,t,s){e=Array.isArray(e)?e:[e];for(const a of e)(Qt[a]||(Qt[a]=[]))[t]=s;return e=e[0],function(a){let r;return void 0!==a?(s&&(a=s(a)),r=this[e](),r.color[t]=a,r):(r=this[e]().color[t],s&&(r=s(r)),r)}}function ss(e){return function(t){return Math.max(0,Math.min(e,t))}}function as(e,t){for(let s=0;s<t;s++)"number"!=typeof e[s]&&(e[s]=0);return e}var rs=Nt(Jt);const is=(e,t)=>rs(e).darken(t).rgb().string(),ns=Object.assign({inherit:"inherit",transparent:"transparent",black:vt.colors.black,white:vt.colors.white,bodyBackground:vt.colors.white,darkBodyBackground:vt.colors.primary,bodyText:vt.colors.primary,bodyTextInverted:vt.colors.primary50,darkBodyText:vt.colors.primary50,display:vt.colors.black,darkDisplay:vt.colors.white},Object.assign({},...Object.keys(vt.colors).map((e=>{const t=vt.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,rs(s).lighten(a).rgb().string()),darker:is(t,.1)}};var s,a})))),os=Object.assign(Object.assign({},vt),{colors:Object.assign(Object.assign({},vt.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({},vt.borderRadius),fontWeight:Object.assign(Object.assign({},vt.fontWeight),{light:"300",normal:"400",bold:"700"})}),ls=(e,t)=>rs(e).darken(t).rgb().string(),cs=Object.assign(Object.assign(Object.assign({},ns),{bodyBackground:os.colors.primary700,darkBodyBackground:os.colors.primary800,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(os.colors).map((e=>{const t=os.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,rs(s).lighten(a).rgb().string()),darker:ls(t,.1)}};var s,a})))),ds=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"]}),ms=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),us={colors:Object.assign({},cs),fontFamily:Object.assign({},ds),fontSize:Object.assign({},null==os?void 0:os.fontSize),fontWeight:Object.assign({},null==os?void 0:os.fontWeight),buttons:Object.assign({},ms),screens:Object.assign({},null==os?void 0:os.screens),borderRadius:Object.assign({},null==os?void 0:os.borderRadius),spacing:Object.assign({},null==os?void 0:os.spacing),extend:Object.assign({},null==os?void 0:os.extend)};exports.AnimationCounter=v,exports.AnimationSet1=Ce,exports.AppContext=Ze,exports.AppProvider=Ze,exports.Authenticator=De,exports.Avatar=se,exports.Blockquote=b,exports.Button=S,exports.ButtonGroup=ae,exports.Card=ue,exports.Checkbox=I,exports.Chip=M,exports.Container=je,exports.ContentPageLayout=Ve,exports.ContentRowsLayout=We,exports.Copy=D,exports.DisplayHeading=pe,exports.FileUpload=P,exports.Footer=$e,exports.ForgotPasswordForm=ke,exports.Form=xe,exports.FormField=ge,exports.FormSelect=fe,exports.Header=Ke,exports.Heading=Y,exports.Hero=ye,exports.Hr=U,exports.HtmlContent=Te,exports.Icon=N,exports.Image=H,exports.Label=V,exports.Link=R,exports.List=q,exports.ListItem=$,exports.Loader=y,exports.LoginForm=_e,exports.Logo=Z,exports.Menu=Ee,exports.MultiCheckboxFacet=pt,exports.Notice=K,exports.OTPInput=Xe,exports.PanelCards=Pe,exports.PanelFeature=Fe,exports.PanelHero=Ge,exports.PanelProduct=Ye,exports.PanelVideo=Ue,exports.ProfileForm=ht,exports.Radio=X,exports.RegisterForm=Le,exports.ResetPasswordForm=xt,exports.STRINGS_EN=te,exports.Search=function({showOptions:s,sortOptions:a,resultAs:r=exports.ResultAsTypes.cardBasic,ResultFieldMap:i,config:n={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:o=[],noSidebar:l=!1,customConnector:c,showPagingInfo:d,gridClasses:m,initialState:u={},showTextSearch:p=!0}){const f=t.useMemo((()=>{const e=(console.log("getDefaultConnectConfig STORYBOOK_ELASTICSEARCH_INDEX",process.env.STORYBOOK_ELASTICSEARCH_INDEX),console.log("getDefaultConnectConfig REACT_APP_ELASTICSEARCH_INDEX",process.env.REACT_APP_ELASTICSEARCH_INDEX),{host:process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""});return new x(c||e)}),[]),g=t.useMemo((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:n.alwaysSearchOnInitialLoad,apiConnector:f,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},u)})),[n]);return e.jsx(h.SearchProvider,{config:g,children:e.jsx(h.WithSearch,{mapContextToProps:({wasSearched:e})=>({wasSearched:e}),children:({wasSearched:c})=>e.jsx(t.Fragment,{children:e.jsx(h.ErrorBoundary,{children:e.jsx(it,{header:p&&e.jsx(h.SearchBox,{view:t=>e.jsx(rt,Object.assign({},t,{wasSearched:c,placeholder:n.initialPlaceholder}))}),sideContent:!l&&o&&e.jsxs(t.Fragment,{children:[c&&e.jsx(h.Sorting,{label:"Sort by",sortOptions:a,view:et}),null==o?void 0:o.map((({field:t,label:s,view:a})=>e.jsx(h.Facet,{field:t,label:s,view:a},t)))]}),bodyContent:e.jsx(h.Results,{shouldTrackClickThrough:!1,resultView:t=>e.jsx(dt,Object.assign({},t,{as:r,cardMap:i})),className:"list-none p-0 m-0",view:t=>e.jsx(nt,Object.assign({},t,{gridClasses:m}))}),bodyHeader:e.jsxs(t.Fragment,{children:[c&&d&&e.jsx(h.PagingInfo,{view:at}),c&&s&&e.jsx(h.ResultsPerPage,{view:st,options:s}),c&&a&&l&&e.jsx(h.Sorting,{label:"Sort by",sortOptions:a,view:et})]}),bodyFooter:e.jsx(h.Paging,{view:tt}),noSidebar:l})})})})})},exports.Share=ve,exports.SingleLinksFacet=ut,exports.SingleSelectFacet=mt,exports.Switch=Q,exports.Tabs=Ne,exports.TextInput=ee,exports.ThemeContext=gt,exports.ThemeProvider=({children:t,theme:s})=>e.jsx(gt.Provider,{value:s,children:t}),exports.Video=Be,exports.VisitUs=be,exports.defaultTheme=ft,exports.theme=us,exports.useLanguage=function(){var e;return null===(e=t.useContext(qe).locale)||void 0===e||e.lang,te},exports.useTheme=function(){return t.useContext(gt)};
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),s=require("classnames"),a=require("framer-motion"),r=require("@iconify/react"),i=require("tailwind-merge"),n=require("react-hover-video-player"),o=require("react-hook-form"),l=require("react-share"),c=require("react-tabs"),d=require("html-react-parser");require("libphonenumber-js");var m=require("react-player/youtube"),u=require("video.js"),p=require("react-otp-input"),x=require("@elastic/search-ui-elasticsearch-connector"),h=require("@elastic/react-search-ui"),f=require("rc-pagination"),g=require("rc-pagination/lib/locale/en_US");const v=({testID:r,from:i,to:n,animationOptions:o,className:l,numDecimals:c=0})=>{const d=t.useRef(null),m=a.useInView(d,{once:!0});return a.useIsomorphicLayoutEffect((()=>{const e=d.current;if(!e||!m)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=n.toString());e.textContent=i.toString();const t=a.animate(i,n,Object.assign(Object.assign({duration:1,ease:"easeOut"},o),{onUpdate:t=>{e.textContent=t.toFixed(c)}}));return()=>{t.stop()}}),[d,m,i,n,o]),e.jsx("span",{ref:d,"data-testid":r||"AnimationCounter",className:s("relative",l)})};v.displayName="AnimationCounter";const N=({name:t,size:s=24,color:a,id:i,className:n,testID:o})=>e.jsx(r.Icon,{"data-testid":o||i||"Icon",icon:t,width:s,height:s,color:a||"currentColor",className:n});N.displayName="Icon";const b=({text:t,citation:a,className:r,citationAttribute:i,showIcon:n=!0})=>{const o=s("text-xl italic font-bold",r);return e.jsxs("blockquote",{"data-testid":"Blockquote",className:o,children:[n&&e.jsx(N,{name:"mdi:comment-quote",size:42}),e.jsx("div",{children:t}),a&&e.jsx("figcaption",{className:"flex flex-start items-center mt-6 space-x-3",children:e.jsxs("div",{className:"flex items-center divide-x-2",children:[e.jsx("cite",{className:"pr-3 font-medium",children:a}),i&&e.jsx("cite",{className:"pl-3 text-sm font-light",children:i})]})})]})};var E,A,S;b.displayName="Blockquote",exports.BTN_TYPES=void 0,(E=exports.BTN_TYPES||(exports.BTN_TYPES={})).SUBMIT="submit",E.RESET="reset",E.BUTTON="button",exports.BTN_VARIANTS=void 0,(A=exports.BTN_VARIANTS||(exports.BTN_VARIANTS={})).PRIMARY="primary",A.SECONDARY="secondary",A.TERTIARY="tertiary",A.LINK="link",exports.BTN_SIZES=void 0,(S=exports.BTN_SIZES||(exports.BTN_SIZES={})).SMALL="small",S.MEDIUM="medium",S.LARGE="large";const y=({color:t,size:s=8,thickness:a=4})=>{const r=s?`w-${s} h-${s}`:"w-8 h-8";return e.jsx("div",{"data-testid":"Loader",className:"flex items-center justify-center",children:e.jsxs("div",{role:"status",className:"flex items-center",children:[e.jsxs("svg",{className:`animate-spin ${r} text-white`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:t||"currentColor",strokeWidth:a}),e.jsx("path",{className:"opacity-75",fill:t||"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e.jsx("span",{className:"sr-only",children:"Loading..."})]})})};y.displayName="Loader";const j=({variant:t=exports.BTN_VARIANTS.PRIMARY,size:a=exports.BTN_SIZES.MEDIUM,type:r=exports.BTN_TYPES.BUTTON,wide:n=!1,rounded:o=!1,raised:l=!1,uppercase:c,children:d,id:m,disabled:u,ariaLabel:p,onClick:x,icon:h,external:f,iconFirst:g,outline:v,testID:b,className:E,isLoading:A})=>{var S,j,T,I;const C={small:{x:d?n?"px-5":"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:d?n?"px-8":"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:d?n?"px-11":"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},R=i.twMerge(s("appearance-none font-body flex items-center transition-all duration-200 transform active:scale-95 justify-around border-solid border rounded cursor-pointer outline-none focus:outline-none focus-visible:outline-none",{"border-primary":v},{"border-primary300 dark:border-primary400 hover:border-primary400 dark:hover:border-primary500":v},{shadow:l},{uppercase:c},{"auto-cols-auto grid-cols-2 gap-4":A||h||f},{"rounded-full":o},{"flex-row-reverse":g},{"opacity-50 cursor-not-allowed":u},`${null===(S=null==C?void 0:C[a])||void 0===S?void 0:S.y} ${null===(j=null==C?void 0:C[a])||void 0===j?void 0:j.x} ${null===(T=null==C?void 0:C[a])||void 0===T?void 0:T.text}`,{"text-white border-primary bg-primary hover:bg-primary-darker":t===exports.BTN_VARIANTS.PRIMARY},{"text-white border-secondary bg-secondary hover:bg-secondary-darker":t===exports.BTN_VARIANTS.SECONDARY},{"text-black border-tertiary bg-tertiary hover:bg-tertiary-darker":t===exports.BTN_VARIANTS.TERTIARY},{"px-0 text-primary border-transparent bg-transparent hover:bg-transparent shadow-none group-hover:invert":t===exports.BTN_VARIANTS.LINK},E)),O=s(null===(I=null==C?void 0:C[a])||void 0===I?void 0:I.icon);return e.jsx("button",{id:m,"data-testid":b||m||"Button",onClick:x,className:R,type:r,disabled:u,"aria-label":p,role:"button",children:e.jsxs(e.Fragment,{children:[d,h&&!f&&e.jsx("span",{className:"flex items-center",children:e.jsx(N,{name:h,className:O})}),f&&e.jsx("span",{className:"flex items-center",children:e.jsx(N,{name:"carbon:launch",className:O})}),A&&e.jsx("div",{className:"flex items-center",children:e.jsx(y,{size:4})})]})})};function T(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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(s[a[r]]=e[a[r]])}return s}function I(e,t,s,a){return new(s||(s=Promise))((function(r,i){function n(e){try{l(a.next(e))}catch(e){i(e)}}function o(e){try{l(a.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(n,o)}l((a=a.apply(e,t||[])).next())}))}j.displayName="Button","function"==typeof SuppressedError&&SuppressedError;const C=t.forwardRef((function(t,a){var{id:r,label:i,required:n,className:o,disabled:l}=t,c=T(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:r,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},c)),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(N,{name:"mdi:check-bold",size:12})})]}),i&&e.jsx("label",{className:"label pl-2 leading-none text-sm",htmlFor:r,children:i})]})}));C.displayName="Checkbox";const R=({href:a,children:r,onClick:i=(()=>console.log("Link clicked")),history:n,target:o,id:l,testID:c,className:d,prefetch:m,hideExternalIcon:u=!1})=>{const p=s("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",d);if(!u&&a&&a.startsWith("http"))return e.jsxs("span",{children:[e.jsx("a",{"data-testid":c||l||"Link",className:s(p),href:a,target:"_blank",rel:"noopener noreferrer",children:r}),e.jsx(N,{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:i,"data-testid":c||l||"Link",className:p,target:o||"_self",prefetch:m||!1},r)}catch(t){console.log("Not using Next Link.");const s=e=>{i?i(e):!0!==e.defaultPrevented&&n&&a&&(e.preventDefault(),n.push(a))};return e.jsx("a",{"data-testid":c||l||"Link",className:p,href:a,onClick:s,target:o,children:r})}};var O,w,_,L,k;R.displayName="Link",exports.COPY_ALIGN=void 0,(O=exports.COPY_ALIGN||(exports.COPY_ALIGN={})).LEFT="left",O.CENTER="center",O.RIGHT="right",O.JUSTIFY="justify",O.NOWRAP="nowrap",exports.COPY_TRANSFORM=void 0,(w=exports.COPY_TRANSFORM||(exports.COPY_TRANSFORM={})).LOWERCASE="lowercase",w.UPPERCASE="uppercase",w.CAPITALIZE="capitalize",exports.COPY_CONTEXTUAL=void 0,(_=exports.COPY_CONTEXTUAL||(exports.COPY_CONTEXTUAL={})).INVERTED="inverted",_.MUTED="muted",exports.COPY_SIZE=void 0,(L=exports.COPY_SIZE||(exports.COPY_SIZE={})).SMALL="small",L.MEDIUM="medium",L.LARGE="large",L.INTRO="intro",exports.COPY_TAG=void 0,(k=exports.COPY_TAG||(exports.COPY_TAG={})).P="p",k.SPAN="span",k.DIV="div",k.SMALL="small";const D=({children:t,as:a=exports.COPY_TAG.P,size:r,bold:n,align:o,transform:l,underlined:c,id:d,className:m,testID:u})=>{const p=s({[`text-${o}`]:o},{"font-bold":n},{"text-sm":"small"===r},{"text-base":"medium"===r},{"text-lg":"large"===r},{"text-2xl":"intro"===r},{"text-base mb-3 mt-0":"p"===a},{"text-sm":"small"===a},{underline:c},l,m);return e.jsx(a,{"data-testid":u||d||"Copy",className:i.twMerge(p),children:t})};D.displayName="Copy";const P=({testID:a,text:r,outline:n,rounded:o,variant:l,size:c="medium",icon:d,iconFirst:m,onClick:u})=>{const p=t.useMemo((()=>{switch(c){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}}}),[c]),x=i.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":m},{"bg-primary text-white":"primary"===l},{"bg-secondary text-white":"secondary"===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-2":"small"===c},{"py-2 px-4":"medium"===c},{"py-3 px-6":"large"===c}));return u&&"function"==typeof u?e.jsxs(R,{"data-testid":a||"Chip",className:x,onClick:u,children:[e.jsx(D,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:r}),d&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(N,{name:d,size:p.iconSize})})]}):e.jsxs("div",{"data-testid":a||"Chip",className:x,children:[e.jsx(D,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:r}),d&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(N,{name:d,size:p.iconSize})})]})};P.displayName="Chip";const M=t.forwardRef((function(t,a){var{id:r,name:i,required:n,disabled:o,className:l,onChangeCallback:c,onChange:d}=t,m=T(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":i,type:"file",disabled:o,required:n,name:i,id:r,onChange:e=>{c&&"function"==typeof c&&c(e),d&&"function"==typeof d&&d({target:{value:e.target.value,name:i}})}},m))})}));var F,B,U;M.displayName="FileUpload",exports.HEADING_TAGS=void 0,(F=exports.HEADING_TAGS||(exports.HEADING_TAGS={})).H1="h1",F.H2="h2",F.H3="h3",F.H4="h4",F.H5="h5",exports.HEADING_ALIGN=void 0,(B=exports.HEADING_ALIGN||(exports.HEADING_ALIGN={})).LEFT="left",B.CENTER="center",B.RIGHT="right",B.JUSTIFY="justify",B.NOWRAP="nowrap",exports.HEADING_TRANSFORM=void 0,(U=exports.HEADING_TRANSFORM||(exports.HEADING_TRANSFORM={})).LOWERCASE="lowercase",U.UPPERCASE="uppercase",U.CAPITALIZE="capitalize",U.NORMAL_CASE="normal-case";const G=({children:t,tag:a=exports.HEADING_TAGS.H2,transform:r,align:i,id:n,testID:o,flush:l,className:c,singleLine:d,bold:m=!0})=>{const u=(()=>{switch(a){case"h1":return"text-3xl md:text-4xl lg:text-5xl";case"h2":return"text-3xl md:text-4xl lg:text-4xl";case"h3":return"text-2xl md:text-3xl lg:text-3xl";case"h4":return"text-xl md:text-2xl lg:text-2xl";case"h5":return"text-lg md:text-lg lg:text-xl";default:return"text-2xl md:text-2xl lg:text-4xl"}})(),p=a,x=s(`m-0 p-0 font-heading ${u}`,{"font-bold":m},{[`text-${i}`]:i},{"mb-2":!l},{"m-0":l},{"whitespace-nowrap text-ellipsis overflow-hidden":d},r,c);return e.jsx(p,{"data-testid":o||n||"Heading",className:x,children:t})};G.displayName="Heading";const Y=({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})});Y.displayName="Hr";const H=a=>{var{src:r,alt:n,title:o,caption:l,figure:c=!1,onLoad:d,id:m,className:u,sizes:p="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:x}=a,h=T(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:r,alt:n,title:o,fill:s,onLoad:d,className:u},a),h))}catch(t){const a=s("m-0"),p=i.twMerge(s("w-full h-full",u));return c||l?e.jsxs("figure",{"data-testid":x||m||"Image",className:a,children:[e.jsx("img",{onLoad:d,src:r,alt:n,title:o,className:p}),l&&e.jsx("figcaption",{children:l})]}):e.jsx("img",{"data-testid":x||m||"Image",onLoad:d,src:r,alt:n,title:o,className:p})}};H.displayName="Image";const V=({children:t,id:a,transform:r,className:n})=>e.jsx("label",{"data-testid":"Label",className:i.twMerge(s("label mb-2",r,n)),htmlFor:a,children:t});var W,z;V.displayName="Label",exports.Variants=void 0,(W=exports.Variants||(exports.Variants={})).UNSTYLED="unstyled",W.INLINE="inline",W.SMALL="small",W.LARGE="large",exports.ListTag=void 0,(z=exports.ListTag||(exports.ListTag={})).OL="ol",z.UL="ul",z.DL="dl",z.DIV="div",z.DT="dt",z.DD="dd",z.LI="li";const q=({variants:t,children:a,as:r=exports.ListTag.UL,id:i,testID:n,className:o})=>{const l=t?t.map((e=>`list--${e}`)):null,c=r;return e.jsx(c,{"data-testid":n||i||"List",className:s(l,o),children:a})};q.displayName="List";const Z=({testID:t,logo:a,className:r,aspectRatioClass:i="aspect-[1/1]"})=>e.jsx("div",{"data-testid":t||"Logo",className:s("relative w-full",i,r),children:e.jsx(H,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});Z.displayName="Logo";const K=({children:t,as:a="li",id:r,testID:i,className:n})=>e.jsx(a,{"data-testid":i||r||"ListItem",className:s("list-item",n),children:t});K.displayName="ListItem";const $=({id:t,testID:a,title:r,text:i,icon:n,type:o,onCloseCallback:l,onClickCallback:c,actionText:d})=>{const m=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:m,children:e.jsxs("div",{className:"flex gap-2",children:[n&&e.jsx("div",{className:"mr-2",children:e.jsx(N,{name:n})}),e.jsxs("div",{children:[r&&e.jsx(G,{tag:exports.HEADING_TAGS.H3,children:r}),e.jsx(D,{className:"mb-0",children:i})]}),c&&d&&e.jsx("div",{className:"ml-auto flex items-end",children:e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:c,"aria-label":"Action",size:exports.BTN_SIZES.SMALL,children:d})}),l&&e.jsx("div",{className:"absolute top-2 right-4",children:e.jsx(j,{variant:exports.BTN_VARIANTS.LINK,icon:"mdi:close",onClick:l,"aria-label":"Close"})})]})})};$.displayName="Notice";const X=t.forwardRef((function(t,a){var{name:r,required:i,className:n,options:o}=t,l=T(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:r,type:"radio",required:i,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4"},l,{id:n,value:n})),e.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(N,{name:"mdi:circle",size:12})})]}),e.jsx("label",{className:"label pl-2 leading-none",htmlFor:n,children:t.label})]},n)}))})})}));X.displayName="Radio";const Q=t.forwardRef((function(t,a){var{id:r,name:i,required:n,disabled:o,className:l}=t,c=T(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:r,name:i,type:"checkbox",value:"",className:"sr-only peer",disabled:o,required:n},c)),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 J;Q.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"}(J||(J={}));const ee=t.forwardRef((function(a,r){var{type:i=J.TEXT,required:n=!1,className:o,onChange:l,placeholder:c,icon:d,disabled:m=!1,name:u,autoComplete:p}=a,x=T(a,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);t.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const h="date"===i?"dd/mm/yyyy".toUpperCase():c;return i===J.TEXTAREA?e.jsx("div",{"data-testid":"TextInput",className:"relative",children:e.jsx("textarea",Object.assign({ref:r,id:u,autoComplete:u,required:n,"aria-required":n,disabled:m,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:[d&&e.jsx("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e.jsx(N,{name:d})}),e.jsx("input",Object.assign({ref:r,id:u,type:i,autoComplete:p,required:n,"aria-required":n,disabled:m,placeholder:h,onChange:l,className:s("form-item text-input",{"pl-12":d},o)},x))]})}));ee.displayName="TextInput";const te={GLOBAL:{SCREENS:{HOME:{TITLE:"Home"},LOGIN:{TITLE:"Login"},REGISTER:{TITLE:"Register"},FORGOT_PASSWORD:{TITLE:"Forgot Password"},RESET_PASSWORD:{TITLE:"Reset Password"},ACCOUNT:{TITLE:"Profile",TAB_PROFILE:"Profile",TAB_SUBSCRIPTION:"Subscription"},CATALOGUE:{TITLE:"Catalogue"},CHALLENGES:{TITLE:"Challenges"},WORKOUT:{TITLE:"Workout"},LIVE:{TITLE:"Live"},SCHEDULE:{TITLE:"Schedule"}}},FORMS:{LOGIN_FORM:{TITLE:"Login",SUBMIT:"Login",FORGOT_PASSWORD:"Forgot password?",REGISTER:"Register",EMAIL:"Email",PASSWORD:"Password"},REGISTER_FORM:{TITLE:"Register",SUBMIT:"Register",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},FORGOT_PASSWORD_FORM:{TITLE:"Forgot Password",SUBMIT:"Send Reset Email",EMAIL:"Email"},RESET_PASSWORD_FORM:{TITLE:"Reset Password",SUBMIT:"Reset Password",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm Password"},PROFILE_FORM:{TITLE:"Profile",SUBMIT:"Save",FIRST_NAME:"First Name",LAST_NAME:"Last Name",AVATAR:"Avatar",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},ACCOUNT:{SUBMIT_LABEL:"Update",EMAIL_LABEL:"Email",PASSWORD_LABEL:"Password",FIRST_NAME_LABEL:"First name",LAST_NAME_LABEL:"Last name",DOB_LABEL:"Date of birth",TERMS_AND_CONDITIONS_LABEL:"Terms & Conditions",TERMS_AND_CONDITIONS_DESCRIPTION:"Read our terms & conditions from the link in the footer. ",CONTACT_PREFERENCES_LABEL:"Yes/No",CONTACT_PREFERENCES_DESCRIPTION:"Happy for us to email you about the latest features, information and offers?",SKIP_LABEL:"Skip step",SUCCESS_MESSAGE:"Account updated",SUBSCRIPTION_STATUS_LABEL:"Subscription status",SUBSCRIPTION_PLAN_LABEL:"Plan",SUBSCRIPTION_PRICE_LABEL:"Price (£)",SUBSCRIPTION_BILLING_DATE_LABEL:"Next Billing Date",SUBSCRIPTION_PAYMENT_TYPE_LABEL:"Card Type",SUBSCRIPTION_CARD_NUMBER_LABEL:"Card Number",SUBSCRIPTION_CARD_EXPIRY_LABEL:"Card Expiry Date",SUBSCRIPTION_LAST_UPDATED_LABEL:"Last Updated"}},VALIDATION:{UNKNOWN_SUBMISSION_ERROR:"Sorry, something bad happened! Please try again later.",REQUIRED_FIELD:"Required",TOO_SHORT:"Must be at least {count}",TOO_LONG:"Sorry, that's too long",INVALID_EMAIL:"Oops that email address doesn't look quite right",LOGIN_DENIED:"Your username and password do not match our records",LOGIN_ERROR:"Sorry something went wrong, please try again later",ACCOUNT_FIRST_NAME:"We need to know your name for ongoing communication",ACCOUNT_LAST_NAME:"We need to know your full name for your orders and if you need to contact support",CHARACTERS_ONLY:"You can only use letters",PASSWORD_DESCRIPTION:"Password must be between {count} and 30 characters and contain at least 1 uppercase, 1 lowercase, 1 number and a symbol (eg. @$%).",PASSWORD_CASE_MESSAGE:"Password must have one capital letter",PASSWORD_LOWERCASE_MESSAGE:"Password must have one lowercase letter",PASSWORD_LENGTH_MESSAGE:"Password must be at least 8 characters",PASSWORD_NUMERIC_MESSAGE:"Password must have at least one number",PASSWORD_SPECIAL_MESSAGE:"Password must have at least one special character (eg. @$%)",AUTH_API_ERROR:"An account with the given email already exists.: Conflict",AUTH_ACCOUNT_EXISTS_MESSAGE:"An account with the given email already exists. Please sign in"},UI:{SHOW:"Show",NO_IMAGE:"No image",UPLOAD:"Upload",SAVE:"Save",CANCEL:"Cancel",DELETE:"Delete",CONTINUE_WITH_SOCIAL:"Continue with Social Account",SINGLE_SIGNON:"Single Sign-On",LOGIN_WITH_GOOGLE:"Login with Google",LOGIN_WITH_APPLE:"Login with Apple",SIGNUP_WITH_GOOGLE:"Signup with Google",SIGNUP_WITH_APPLE:"Signup with Apple",BACK_TO_LOGIN:"Back to Login",FORGOT_PASSWORD:"Forgot Password?",SUBMIT:"Submit",LOGIN:"Login",LOGOUT:"Logout",REGISTER:"Register",SOCIAL:{GOOGLE:"Google",FACEBOOK:"Facebook",TWITTER:"Twitter",EMAIL:"Email"},READ_MORE:"Read more",READ_LESS:"Show less",CLOSE:"Close",BACK:"Back",SHARE:"Share",DOWNLOAD:"Download",FORMAT_HOUR:"{hour}hr",FORMAT_HOURS:"{hours}hrs",FORMAT_MINUTE:"{minute}min",FORMAT_MINUTES:"{minutes}mins",LOAD_MORE_LABEL:"Load more",NO_MORE_RESULTS:"That's all folks.",UNKNOWN_ERROR_TITLE:"Unknown error",UNKNOWN_ERROR_MESSAGE:"Sorry, something bad happened! Please try again.",CONTENT_SORT_TITLE:"Sort by",CONTENT_FILTERS_TITLE:"Filters",CONTENT_FILTERS_LABEL:"Filter",CLOSE_FILTERS_LABEL:"Done",CLEAR_ALL_FILTERS_LABEL:"Clear All",CLEAR_FILTERS_LABEL:"Clear",MORE_ITEMS_LABEL:"Next items",PREVIOUS_ITEMS_LABEL:"Previous items",CHOOSE_BTN_LABEL:"Choose",ADD_BTN_LABEL:"Add",SEND_BTN_LABEL:"Send",CANCEL_BTN_LABEL:"Cancel",DONE_BTN_LABEL:"Done",EDIT_BTN_LABEL:"Edit",CHANGE_BTN_LABEL:"Change",REMOVE_BTN_LABEL:"Remove",MESSAGE_PROMPT_BTN_LABEL:"Add one",SELECT_FILE_BTN_LABEL:"Select file",TOO_MANY_REQUESTS_MESSAGE:"Too many requests. Please try again later.",COPYRIGHT:"Copyright",ALL_RIGHTS_RESERVED:"All rights reserved",APP_CAMERA_PERMISSION:"Camera permission",APP_CAMERA_PERMISSION_DENIED:"Camera permission denied",APP_NEED_ACCESS_CAMERA:"This app needs access to your camera",ASK_ME_LATER:"Ask me later",PRIVACY_POLICY:"Privacy Policy",CREATE_ACCOUNT:"Create account",COMPLETE:"Complete",EDIT:"Edit",PREV:"Prev",NEXT:"Next",GET_STARTED:"Get started",START_SEARCH:"Start search",READ_MORE_LABEL:"Read more",READ_LESS_LABEL:"Show less",CLOSE_LABEL:"Close",CLOSE_HINT:"Close this entry",BACK_LABEL:"Back",SHARE_LABEL:"Share",VIEW_MORE_LABEL:"View more",VIEW_LESS_LABEL:"View less",GOT_IT:"Got it",MORE:"More",MORE_DETAILS:"More details",MORE_INFO:"More info",LEARN_MORE:"Learn more",LOW:"Low",MEDIUM:"Medium",HIGH:"High",VERY_HIGH:"Very high",VERY_LOW:"Very low",GOOD:"Good",BAD:"Bad",STRONG:"Strong",SAVE_CONTINUE:"Save and Continue",SAVE_FINISH:"Save and Finish",FINISH:"Finish",SKIP:"Skip",ADD:"Add",ADDED:"Added",ADD_ANOTHER:"Add another",CREATE_PROFILE:"Create profile",CONTINUE_NO_ACCOUNT:"Continue without account",REQUIRED_MISSING:"Required field missing",RESET:"Reset",APPLY_FILTER:"Apply filter",START:"Start",END:"End",HELP:"Help",WHAT_IS_THIS:"What is this?",CARD_VIEW:"Card view",LIST_VIEW:"List view",FILTER:"Filter",NO_RESULTS:"No results",CONTINUE:"Continue",CONTINUE_BROWSING:"Continue browsing",VIEW:"View",INFORMATION:"Information",DELETE_HINT:"Delete this entry",VISIT_WEBSITE:"Visit website",TAKE_AGAIN:"Take again",ADD_MORE:"Add more",REQUEST_SENT:"Request sent",CUSTOMISE:"Customize",SET_LOCATION:"Set location",COUNTY_NOT_FOUND:"County not found",NO_RESOURCES_FOUND:"No resources found",PATHWAY:"Pathway",CLICK_TO_NAVIGATE:"Click to navigate",INPUT_FIELD:"Input field",GO_BACK:"Go back",NAVIGATES_PREV:"Navigates to the previous screen",REMOVE:"Remove",NO_INTERNET_CONNECTION:"No internet connection",CHECK_CONNECTION:"Please check your internet connection and try again.",EXPLORE:"Explore",NO_ACCOUNT:"No account?",START_WORKOUT:"Start workout",START_MEDIA:"Start media",LAUNCH:"Launch",PUBLISHED:"Published",CREATED:"Created",UPDATED:"Updated",DURATION:"Duration",LEVEL:"Level",SECTION:"Section",DOWNLOADING:"Downloading",DOWNLOAD_COMPLETE:"Download complete",DOWNLOAD_FAILED:"Download failed",DOWNLOAD_CANCELLED:"Download cancelled",DOWNLOADING_MEDIA:"Downloading media",DOWNLOADING_MEDIA_FAILED:"Downloading media failed",DOWNLOADING_MEDIA_CANCELLED:"Downloading media cancelled",DOWNLOADING_MEDIA_COMPLETE:"Downloading media complete",DOWNLOADING_MEDIA_CANCEL:"Cancel download",DOWNLOADING_MEDIA_RETRY:"Retry download",DOWNLOADING_MEDIA_PAUSE:"Pause download",DOWNLOADING_MEDIA_RESUME:"Resume download",DOWNLOADING_MEDIA_CONTINUE:"Continue download",DOWNLOADING_MEDIA_START:"Start download",DOWNLOADING_MEDIA_CONFIRM:"Confirm download",DOWNLOAD_REMOVED:"Download removed",DOWNLOAD_REMOVE_ERROR:"Error removing download",CATEGORY:"Category",TYPE:"Type",WORKOUT_TYPE:"Workout type",MEDIA_TYPE:"Media type",WORKOUT:"Workout",MEDIA:"Media",WORKOUTS:"Workouts",WORKOUT_CATEGORY:"Workout category",MEDIA_CATEGORY:"Media category",ADDED_LIKE:"Added like",REMOVED_LIKE:"Removed like",ADDED_FAVORITE:"Added favorite",REMOVED_FAVORITE:"Removed favorite",ADDED_BOOKMARK:"Added bookmark",REMOVED_BOOKMARK:"Removed bookmark",ADDED_WATCHLIST:"Added watchlist",REMOVED_WATCHLIST:"Removed watchlist",ADDED_PLAYLIST:"Added playlist",REMOVED_PLAYLIST:"Removed playlist",ADDED_SUBSCRIPTION:"Added subscription",REMOVED_SUBSCRIPTION:"Removed subscription",ADDED_FOLLOW:"Added follow",REMOVED_FOLLOW:"Removed follow",ADDED_FRIEND:"Added friend",REMOVED_FRIEND:"Removed friend",ADDED_CONNECTION:"Added connection",REMOVED_CONNECTION:"Removed connection",MARKED_COMPLETE:"Marked complete",MARKED_INCOMPLETE:"Marked incomplete",MUSIC_ENABLED:"Music enabled",MUSIC_DISABLED:"Music disabled",SHARED:"Shared",NOT_ENTERED_IN_CHALLENGE:"You are note entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",SHOW_FILTERS:"Show filters",HIDE_FILTERS:"Hide filters",THIS_WEEK:"This week",TODAYS_ITEMS:"Today's items",START_TRIAL_LABEL:"Start Free Trial",START_WORKOUTS_LABEL:"Start Workouts Now",UPDATE_LABEL:"Update now",SESSION_EXPIRED:"Session expired. Please log in.",NO_VALID_SUB:"No valid subscription found. Please subscribe or contact us if you believe this is an error.",SUBSCRIPTION_ERROR:"There's a problem with your account. No valid subscription found.",SUCCESS:"Success",UPLOAD_IMAGE:"Upload Image",UPLOAD_VIDEO:"Upload Video",UPLOAD_AUDIO:"Upload Audio",UPLOAD_DOCUMENT:"Upload Document",UPLOAD_MEDIA:"Upload Media",UPLOAD_MEDIA_FILE:"Upload Media File",UPLOAD_SUCCESS:"Upload successful",UPLOAD_FAILED:"Upload failed",UPLOADING:"Uploading"},ERRORS:{}},se=({testID:s,name:a="avatar",isEditable:r=!0,initValue:i})=>{const[n,o]=t.useState(i);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:[n&&e.jsxs(e.Fragment,{children:[e.jsx(H,{src:n,alt:a,width:200,height:200}),r&&e.jsx("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e.jsx(j,{size:exports.BTN_SIZES.SMALL,rounded:!0,onClick:()=>{o(void 0)},children:te.UI.REMOVE_BTN_LABEL})})]}),!n&&e.jsx(e.Fragment,{children:r&&e.jsx("div",{className:"absolute w-full h-full flex items-center justify-center",children:e.jsx(V,{id:a,className:"button cursor-pointer mb-0",children:e.jsx(D,{className:"mb-0",children:te.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);o(e)}}})]})};se.displayName="Avatar";const ae=({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,r)=>{const i=r>0&&r<a.length-1,n=0===r,o=r===a.length-1,l=s({"rounded-none":i},{"rounded-r":n,"rounded-l":o});return e.jsx("div",{children:e.jsx(j,Object.assign({},t,{className:l,children:t.children}))},t.id)}))});ae.displayName="ButtonGroup";const re="relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-bodyBackground text-bodyText dark:bg-darkBodyBackground dark:text-darkBodyText hover:bg-primary hover:text-bodyTextInverted group",ie="transition duration-500 ease-in-out ",ne=({id:t,title:a,description:r,image:n,className:o,metaData:l,actions:c,padded:d,scaleOnHover:m,onClick:u=(()=>{})})=>e.jsxs("div",{id:t,"data-testid":"CardBasic",className:i.twMerge(s(ie,re,{"p-4":d},{"hover:scale-100":!m},o)),onClick:u,children:[n&&e.jsx("div",{className:i.twMerge(s("relative w-full overflow-hidden aspect-[16/9]",{rounded:d},n.aspectRatio)),children:e.jsx(H,{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",ie)})}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:s({"p-3":!d},{"pt-3":d}),children:[e.jsx("div",{children:a&&e.jsx(G,{tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),e.jsx("div",{children:r&&e.jsx(D,{className:"mb-0",children:r})}),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(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===l.length-1?e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),c&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[c.like&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.like)||void 0===s?void 0:s.onClick)&&"function"==typeof c.like.onClick&&c.like.onClick({id:t})}}),c.share&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.share)||void 0===s?void 0:s.onClick)&&"function"==typeof c.share.onClick&&c.share.onClick({id:t})}}),c.save&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.save)||void 0===s?void 0:s.onClick)&&"function"==typeof c.save.onClick&&c.save.onClick({id:t})}}),c.comment&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.comment)||void 0===s?void 0:s.onClick)&&"function"==typeof c.comment.onClick&&c.comment.onClick({id:t})}}),c.bookmark&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.bookmark)||void 0===s?void 0:s.onClick)&&"function"==typeof c.bookmark.onClick&&c.bookmark.onClick({id:t})}}),c.report&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.report)||void 0===s?void 0:s.onClick)&&"function"==typeof c.report.onClick&&c.report.onClick({id:t})}}),c.follow&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.follow)||void 0===s?void 0:s.onClick)&&"function"==typeof c.follow.onClick&&c.follow.onClick({id:t})}}),c.download&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.download)||void 0===s?void 0:s.onClick)&&"function"==typeof c.download.onClick&&c.download.onClick({id:t})}}),c.edit&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.edit)||void 0===s?void 0:s.onClick)&&"function"==typeof c.edit.onClick&&c.edit.onClick({id:t})}}),c.delete&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==c?void 0:c.delete)||void 0===s?void 0:s.onClick)&&"function"==typeof c.delete.onClick&&c.delete.onClick({id:t})}})]})]})]})})]});ne.displayName="CardBasic";const oe=({id:t,title:a,description:r,image:i,className:n,metaData:o,actions:l,onClick:c=(()=>{}),playCallback:d})=>e.jsxs("div",{id:t,"data-testid":"CardBasic",className:s(ie,re,n),onClick:c,children:[i&&e.jsxs("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",i.aspectRatio),children:[e.jsx(H,{fill:!0,src:null==i?void 0:i.src,sizes:"100vh",alt:null==i?void 0:i.alt,className:s("absolute inset-0 object-cover group-hover:scale-110",ie)}),d&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:play",size:exports.BTN_SIZES.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof d&&d(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(G,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:a})}),e.jsx("div",{children:r&&e.jsx(D,{children:r})}),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(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===o.length-1?e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(D,{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(j,{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(j,{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(j,{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(j,{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(j,{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(j,{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(j,{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(j,{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(j,{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(j,{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})}})]})]})]})})]});oe.displayName="CardMedia";const le=({video:t,isMuted:a=!0,id:r,title:i,description:o,image:l,className:c,metaData:d,actions:m,onClick:u=(()=>{})})=>e.jsxs("div",{id:r,"data-testid":"CardVideo",className:s(ie,re,c),onClick:u,children:[l&&t&&e.jsx("div",{className:s("relative w-full h-full aspect-[16/9]",l.aspectRatio),children:e.jsx(n,{videoId:`video--${r}`,playbackStartDelay:1e3,videoSrc:e.jsx("source",{src:t,type:"video/mp4"}),videoClassName:s("hls-hover-video w-full aspect-[16/9]",l.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:a,className:s("w-full overflow-hidden aspect-[16/9]",l.aspectRatio),pausedOverlay:e.jsx("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",l.aspectRatio),children:e.jsx(H,{fill:!0,src:null==l?void 0:l.src,width:0,height:0,alt:null==l?void 0:l.alt,className:"absolute inset-0 object-cover"})}),loadingOverlay:e.jsx("div",{className:s("w-full flex items-center justify-center aspect-[16/9]",l.aspectRatio),children:e.jsx("div",{className:"",children:e.jsx(y,{})})})},`${r}--card`)}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:i&&e.jsx(G,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:i})}),e.jsx("div",{children:o&&e.jsx(D,{children:o})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[d&&e.jsx("div",{className:"flex shrink-0",children:d.map(((t,s)=>0===s?e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===d.length-1?e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(D,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),m&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[m.like&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.like)||void 0===t?void 0:t.onClick)&&"function"==typeof m.like.onClick&&m.like.onClick({id:r})}}),m.share&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.share)||void 0===t?void 0:t.onClick)&&"function"==typeof m.share.onClick&&m.share.onClick({id:r})}}),m.save&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.save)||void 0===t?void 0:t.onClick)&&"function"==typeof m.save.onClick&&m.save.onClick({id:r})}}),m.comment&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof m.comment.onClick&&m.comment.onClick({id:r})}}),m.bookmark&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof m.bookmark.onClick&&m.bookmark.onClick({id:r})}}),m.report&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.report)||void 0===t?void 0:t.onClick)&&"function"==typeof m.report.onClick&&m.report.onClick({id:r})}}),m.follow&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof m.follow.onClick&&m.follow.onClick({id:r})}}),m.download&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.download)||void 0===t?void 0:t.onClick)&&"function"==typeof m.download.onClick&&m.download.onClick({id:r})}}),m.edit&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof m.edit.onClick&&m.edit.onClick({id:r})}}),m.delete&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:m.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==m?void 0:m.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof m.delete.onClick&&m.delete.onClick({id:r})}})]})]})]})})]});le.displayName="CardVideo";const ce=({id:t,title:a,description:r,icon:n,className:o,onClick:l,moreTitle:c,align:d})=>{const m=l?re:"";return e.jsxs("div",{id:t,"data-testid":"CardIcon",className:i.twMerge(s(ie,m,"p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===d},{"items-center":"center"===d},{"items-end":"right"===d},o)),children:[n&&e.jsx("div",{className:s("relative"),children:e.jsx(N,{name:n,size:48})}),e.jsxs("div",{className:s({"text-left":"left"===d},{"text-center":"center"===d},{"text-right":"right"===d}),children:[e.jsx("div",{children:a&&e.jsx(G,{tag:exports.HEADING_TAGS.H5,singleLine:!0,children:a})}),e.jsx("div",{children:r&&e.jsx(D,{align:d,children:r})})]}),l&&e.jsx("div",{className:"flex items-center justify-start gap-2",children:e.jsx(j,{icon:"mdi:arrow-right",variant:exports.BTN_VARIANTS.LINK,onClick:l,children:c})})]})};ce.displayName="CardIcon";const de=({testID:t,id:a,title:r,description:n,image:o,onClick:l,className:c,padded:d,icon:m,raised:u=!0})=>e.jsxs("div",{id:a,"data-testid":t||"CardHorz",className:s("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":d},{"shadow hover:shadow-lg":u},c),onClick:l,children:[o&&e.jsx("div",{className:"w-1/3 aspect-[1/1]",children:e.jsx("div",{className:i.twMerge(s("relative w-full overflow-hidden h-full",o.aspectRatio)),children:e.jsx(H,{fill:!0,src:null==o?void 0:o.src,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})})}),m&&!o&&e.jsx("div",{className:"py-2 pl-2",children:e.jsx(N,{name:m,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:[r&&e.jsx("div",{className:"",children:e.jsx(G,{tag:exports.HEADING_TAGS.H4,children:r})}),n&&e.jsx("div",{children:e.jsx(D,{className:"mb-0",children:n})})]})})]});de.displayName="CardHorz";const me=({testID:r,className:n,data:o,padded:l,shadow:c=!0})=>{const d=a.motionValue(0);return t.useEffect((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||a.animate(d,200,{duration:.5})}),[d]),o?e.jsxs("div",{"data-testid":r||"CardData",className:i.twMerge(s("relative rounded-lg overflow-hidden flex flex-col items-center gap-4 p-2",{"p-4":l},{shadow:c},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(v,{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(G,{tag:exports.HEADING_TAGS.H2,flush:!0,children:null==o?void 0:o.item})}),e.jsx("div",{children:e.jsx(D,{className:"mb-0",children:null==o?void 0:o.label})})]}):e.jsx(e.Fragment,{})};me.displayName="CardData";const ue=t=>{var{variant:s,className:a,data:r}=t,i=T(t,["variant","className","data"]);switch(s){case"basic":default:return e.jsx(ne,Object.assign({className:a},r,i));case"media":return e.jsx(oe,Object.assign({className:a},r,i));case"video":return e.jsx(le,Object.assign({className:a},r,i));case"icon":return e.jsx(ce,Object.assign({className:a},r,i));case"horz":return e.jsx(de,Object.assign({className:a},r,i));case"data":return e.jsx(me,Object.assign({className:a},r,i))}};ue.displayName="Card";const pe=({text:t,tag:a=exports.HEADING_TAGS.H1})=>{const r=t.split(" ");return e.jsx("div",{"data-testid":"DisplayHeading",className:"relative",children:e.jsx(G,{tag:a,className:"",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"}),e.jsx("span",{className:"display-heading--lastword",children:t})]}),!i&&e.jsx("span",{children:t})]})}),!i&&" "]},n)}))})})};pe.displayName="DisplayHeading";const xe=({children:a,className:r,submit:i,onSubmit:n=(()=>{}),onChange:l,hideSubmit:c,ariaSubmitLabel:d,submitID:m,submitVariant:u=exports.BTN_VARIANTS.PRIMARY,initialValues:p={},isBoxed:x=!1,submitType:h=exports.BTN_TYPES.SUBMIT,disabledSubmitWithReturn:f=!1,isDisabled:g=!1})=>{const v=o.useForm({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"});t.useEffect((()=>{if(l&&"function"==typeof l){const e=v.watch(((e,t)=>{l(e,t)}));return()=>e.unsubscribe()}}),[]);const N=s({"sr-only":c}),{formState:{isSubmitting:b,isDirty:E,isValid:A}}=v;return e.jsx(o.FormProvider,Object.assign({},v,{children:e.jsx("div",{"data-testid":"Form",className:s("w-full max-w-s @containers @form"),children:e.jsxs("form",{onSubmit:v.handleSubmit(n),onKeyDown:e=>{f&&"Enter"===e.key&&e.preventDefault()},className:s("w-2xs relative",{"form px-8 pt-6 pb-8 ":x},{"opacity-50":b},r),children:[a,i&&e.jsx("div",{className:"flex items-center justify-end",children:e.jsx(j,{id:m||i,className:N,ariaLabel:d||i||"Submit",type:h,outline:!0,isLoading:b,disabled:b||!A||!E||g,variant:u,children:i})})]})})}))};var he;xe.displayName="Form",exports.FIELD_TYPES=void 0,(he=exports.FIELD_TYPES||(exports.FIELD_TYPES={})).TEXT="text",he.TEXTAREA="textarea",he.SELECT="select",he.CHECKBOX="checkbox",he.RADIO="radio",he.SWITCH="switch",he.DATE="date",he.TIME="time",he.DATETIME="datetime",he.FILE="file",he.PASSWORD="password",he.EMAIL="email",he.NUMBER="number",he.TEL="tel",he.URL="url",he.SEARCH="search",he.HIDDEN="hidden";const fe=t.forwardRef((function(t,a){var{id:r,name:i,options:n,required:o,className:l,disabled:c}=t,d=T(t,["id","name","options","required","className","disabled"]);if(!n)throw new Error("FormSelect requires options prop");return e.jsx("div",{id:r,className:s("pb-2 min-w-20",l),children:e.jsxs("div",{className:"relative",children:[e.jsx("select",Object.assign({ref:a,name:i,disabled:c,required:o,className:"form-item text-input pr-10"},d,{children:n.map(((t,s)=>{var a,r;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===(r=null==t?void 0:t.value)||void 0===r?void 0:r.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(N,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));fe.displayName="FormSelect";const ge=({name:a,type:r,label:i,required:n,className:l,icon:c,options:d,disabled:m,description:u,showPasswordLabel:p,hidePasswordLabel:x,validations:h={},fileUploadCallback:f=(()=>{}),autoComplete:g})=>{var v,b;const[E,A]=t.useState(!1),{control:S,formState:y}=o.useFormContext(),{errors:j}=y,T=i&&r!==exports.FIELD_TYPES.CHECKBOX,I=n||Boolean(h.required)?`${i} *`:i;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(V,{id:a,children:I})}),e.jsx("div",{className:"mb-1",children:e.jsx(o.Controller,{defaultValue:"",name:a,control:S,rules:h,render:({field:t})=>((t,r)=>{switch(t){case exports.FIELD_TYPES.HIDDEN:return e.jsx("input",Object.assign({type:J.HIDDEN,disabled:m},r));case exports.FIELD_TYPES.TEXT:return e.jsx(ee,Object.assign({type:J.TEXT,required:n||Boolean(h.required),icon:c,className:l,disabled:m,autoComplete:g},r));case exports.FIELD_TYPES.PASSWORD:{const t=E?J.TEXT:J.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:()=>A((e=>!e)),role:"button",tabIndex:0,children:E?e.jsx("button",{type:"button","aria-label":x,className:s(a,"form-icon"),children:e.jsx(N,{name:"mdi:eye-off",size:24})}):e.jsx("button",{type:"button","aria-label":p,className:s(a,"form-icon"),children:e.jsx(N,{name:"mdi:eye",size:24})})}),e.jsx(ee,Object.assign({type:t,required:n||Boolean(h.required),icon:c,className:l,disabled:m,autoComplete:g},r))]})}case exports.FIELD_TYPES.TEXTAREA:return e.jsx(ee,Object.assign({type:J.TEXTAREA,required:n||Boolean(h.required),icon:c,className:l,disabled:m},r));case exports.FIELD_TYPES.EMAIL:return e.jsx(ee,Object.assign({type:J.EMAIL,required:n||Boolean(h.required),icon:c,className:l,disabled:m,autoComplete:g},r));case exports.FIELD_TYPES.DATE:return e.jsx(ee,Object.assign({type:J.DATE,required:n||Boolean(h.required),icon:c,className:l,disabled:m},r));case exports.FIELD_TYPES.DATETIME:return e.jsx(ee,Object.assign({type:J.DATETIME,required:n||Boolean(h.required),icon:c,className:l,disabled:m},r));case exports.FIELD_TYPES.NUMBER:return e.jsx(ee,Object.assign({type:J.NUMBER,required:n||Boolean(h.required),icon:c,className:l,disabled:m},r));case exports.FIELD_TYPES.CHECKBOX:return e.jsx(C,Object.assign({required:n||Boolean(h.required),id:a,className:l,label:i,disabled:m},r));case exports.FIELD_TYPES.RADIO:return e.jsx(X,Object.assign({required:n||Boolean(h.required),id:a,className:l,options:d,disabled:m},r));case exports.FIELD_TYPES.SWITCH:return e.jsx(Q,Object.assign({id:a,required:n||Boolean(h.required),className:l,disabled:m},r));case exports.FIELD_TYPES.SELECT:return e.jsx(fe,Object.assign({required:n||Boolean(h.required),id:a,className:l,disabled:m,label:i,options:d},r));case exports.FIELD_TYPES.FILE:return e.jsx(M,Object.assign({required:n||Boolean(h.required),id:a,className:l,disabled:m,onChangeCallback:e=>{f(e)}},r));default:return e.jsx(ee,Object.assign({type:J.TEXT,required:n||Boolean(h.required),disabled:m,icon:c,className:l},r))}})(r,t)})}),u&&e.jsx("div",{className:"formfield-description",children:e.jsx(D,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:u})}),j[a]&&e.jsx("div",{className:"formfield-error text-error italic",children:e.jsx(D,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:null===(b=null===(v=null==j?void 0:j[a])||void 0===v?void 0:v.message)||void 0===b?void 0:b.toString()})})]})})};ge.displayName="FormField";const ve=({testID:t,url:s,title:a="Share",enabled:r={facebook:!0,twitter:!0}})=>e.jsxs("div",{"data-testid":t||"Share",className:"flex gap-2 items-center ",children:[e.jsx("div",{children:e.jsxs(D,{as:exports.COPY_TAG.P,className:"mb-0",children:[te.UI.SHARE,":"]})}),(null==r?void 0:r.facebook)&&e.jsx(l.FacebookShareButton,{url:s,title:a,className:"",children:e.jsx(N,{name:"mdi:facebook"})}),(null==r?void 0:r.twitter)&&e.jsx(l.TwitterShareButton,{url:s,title:a,className:"",children:e.jsx(N,{name:"mdi:twitter"})}),(null==r?void 0:r.whatsapp)&&e.jsx(l.WhatsappShareButton,{url:s,title:a,className:"",children:e.jsx(N,{name:"mdi:whatsapp"})}),(null==r?void 0:r.email)&&e.jsx(l.EmailShareButton,{url:s,title:a,className:"",children:e.jsx(N,{name:"mdi:email"})}),(null==r?void 0:r.linkedin)&&e.jsx(l.LinkedinShareButton,{url:s,title:a,className:"",children:e.jsx(N,{name:"mdi:linkedin"})})]});ve.displayName="Share";const Ne=({data:a})=>{const[r,i]=t.useState(0);return a?e.jsx("div",{"data-testid":"Tabs",children:e.jsxs(c.Tabs,{onSelect:e=>i(e),children:[e.jsx(c.TabList,{className:"mb-8 flex p-0",children:a.map(((t,a)=>e.jsx(c.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":r!==a,"border-primary border-solid border-0 border-b-2":r===a}),children:e.jsx(D,{className:"m-0 text-center",children:t.title})},a)))}),a.map(((t,s)=>e.jsx(c.TabPanel,{className:"",children:t.content},s)))]})}):e.jsx(e.Fragment,{})};Ne.displayName="Tabs";const be=({testID:t,facebook:s,twitter:a,instagram:r,linkedin:i})=>e.jsxs("div",{"data-testid":t||'"VisitUs"',className:"flex gap-2",children:[s&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(s.url)}),a&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(a.url)}),r&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(r.url)}),i&&e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(i.url)})]});be.displayName="VisitUs";const Ee=({testID:t,title:a,links:r,inline:n=!0,separators:o=!1,className:l})=>e.jsxs("div",{"data-testid":t||'"Menu"',className:i.twMerge(s("flex flex-col gap-2",l)),children:[a&&e.jsx("div",{children:e.jsx(G,{tag:exports.HEADING_TAGS.H3,children:a})}),e.jsx("div",{className:s("flex gap-0 items-center md:items-start",{"flex-row ":n},{"flex-col ":!n}),children:null==r?void 0:r.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(R,{href:t.url,className:"flex gap-1",children:[t.icon&&e.jsx(N,{name:t.icon}),t.title&&e.jsx("div",{children:t.title})]})}),o&&s+1<r.length&&e.jsx("div",{className:"h-full flex self-center px-2",children:e.jsx(N,{name:"mdi:dot",className:"opacity-50"})})]},a)}))})]});var Ae;Ee.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(Ae||(Ae={}));const Se=({children:t,className:a,spacing:r,padded:n,isNarrow:o,isCentered:l,isFlush:c,direction:d=Ae.COLUMN})=>{const m=i.twMerge(s("container mx-auto my-0",{"px-4":n},{"py-40":"feature"===r},{"py-24":"component"===r},{"py-16":"module"===r},{"py-10":"element"===r},{"py-4":"atom"===r},{"py-0":"none"===r},{"max-w-3xl":o},{"flex items-center justify-center flex-col":l},{"px-0 max-w-full mx-0":c},{"flex flex-col":d===Ae.COLUMN},{"flex-row":d===Ae.ROW})),u=s("mx-4 md:mx-0",a);return e.jsx("div",{"data-testid":"Container",className:m,children:e.jsx("div",{className:u,children:t})})};Se.displayName="Container";const ye=({testID:t,children:a,withBg:r=!0,inversed:i=!1})=>e.jsxs("div",{"data-testid":t||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[r&&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":!i,"-top-24 left-0":i})}),e.jsx(Se,{children:a})]});ye.displayName="Hero";const je={replace(t){if("a"===t.name){const s=d.attributesToProps(t.attribs);return e.jsx(R,Object.assign({},s,{children:d.domToReact(t.children,je)}))}if(t.attribs&&"p"===t.name){const s=d.attributesToProps(t.attribs);return e.jsx(D,Object.assign({},s,{children:d.domToReact(t.children,je)}))}return t}},Te=({testID:t,data:a,align:r,className:i})=>e.jsx("span",{"data-testid":t||'"HtmlContent"',className:s("relative",{"text-right":"right"===r},{"text-center":"center"===r},{"text-left":"left"===r},i),children:d(a,je)});Te.displayName="HtmlContent";const Ie=({testID:r,bgAsset:i,focalAsset1:n,focalAsset2:o,focalAsset3:l})=>{const c=t.useRef(null),d=a.useInView(c);console.log("isInView",d);const m={opacity:.001,rotate:0,scale:1,x:200,y:0},u={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":r||"AnimationSet1",className:s("relative w-full h-full"),children:[i&&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(H,{src:i.src,alt:i.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:m,animate:u,children:e.jsx(H,{src:n.src,alt:n.alt,fill:!0})}),o&&e.jsx(a.motion.div,{className:"absolute w-1/2 aspect-[0.5/1] left-0 top-20",initial:m,animate:Object.assign(Object.assign({},u),{transition:Object.assign(Object.assign({},u.transition),{delay:.3})}),children:e.jsx(H,{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-10 z-20 items-end justify-end left-10",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(H,{src:l.src,fill:!0,alt:l.alt})})})]})};Ie.displayName="AnimationSet1";const Ce=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=Google&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,Re=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/authorize?client_id=${process.env.AWS_COGNITO_CLIENT_ID}&response_type=CODE&scope=aws.cognito.signin.user.admin+email+openid+profile&identity_provider=SignInWithApple&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,Oe={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},we={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."}},_e=({handleSubmit:t,initialValues:s,showSocialButtons:a=!1})=>e.jsxs("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[e.jsxs(xe,{onSubmit:t,submit:te.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx(ge,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:te.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:Oe,autoComplete:"email"}),e.jsx(ge,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:te.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),a&&e.jsxs(e.Fragment,{children:[e.jsx(Y,{}),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(j,{onClick:()=>window.location.assign(Ce),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:te.UI.LOGIN_WITH_GOOGLE}),e.jsx(j,{onClick:()=>window.location.assign(Re),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:te.UI.LOGIN_WITH_APPLE})]})})]})]});_e.displayName="LoginForm";const Le=({handleSubmit:t,showSocialButtons:s=!1})=>e.jsxs("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[e.jsxs(xe,{onSubmit:t,submit:te.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e.jsx(ge,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:te.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:Oe,autoComplete:"email"}),e.jsx(ge,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:te.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:te.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:we,autoComplete:"new-password"})]}),s&&e.jsxs(e.Fragment,{children:[e.jsx(Y,{}),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(j,{onClick:()=>window.location.assign(Ce),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:te.UI.SIGNUP_WITH_GOOGLE}),e.jsx(j,{onClick:()=>window.location.assign(Re),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:te.UI.SIGNUP_WITH_APPLE})]})})]})]});Le.displayName="RegisterForm";const ke=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e.jsx(xe,{onSubmit:t,submit:te.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(ge,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:te.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:Oe})})});ke.displayName="ForgotPasswordForm";const De=({loginSubmit:s,registerSubmit:a,passwordForgotSubmit:r,handleTokenCallback:i,showSocialLogin:n=!1})=>{const[o,l]=t.useState(!1);return t.useEffect((()=>{console.log("Authenticator useEffect",process.env),function(){I(this,void 0,void 0,(function*(){if(!process.env.AWS_COGNITO_USERPOOL_DOMAIN||!process.env.AWS_COGNITO_CLIENT_ID||!process.env.AWS_COGNITO_REDIRECT_URI)return;const e=new URLSearchParams(window.location.search).get("code");if(e){const t=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/token`,s=new URLSearchParams;s.append("grant_type","authorization_code"),s.append("client_id",process.env.AWS_COGNITO_CLIENT_ID),s.append("code",e),s.append("redirect_uri",process.env.AWS_COGNITO_REDIRECT_URI);const a=yield fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s}),r=yield a.json();r&&i&&"function"==typeof i&&i(r)}}))}()}),[]),e.jsxs("div",{"data-testid":"Authenticator",className:"w-full",children:[!o&&e.jsx(Ne,{data:[{title:"Login",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(_e,{handleSubmit:s,showSocialButtons:n}),e.jsx("div",{className:"mt-4",children:e.jsx(j,{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(Le,{handleSubmit:a,showSocialButtons:n})})}]}),o&&e.jsx(Ne,{data:[{title:"Forgot Password",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(ke,{handleSubmit:r}),e.jsx("div",{className:"mt-4",children:e.jsx(j,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};var Pe;De.displayName="Authenticator",function(e){e.NONE="py-0",e.ATOM="py-8",e.DEFAULT="py-16",e.ELEMENT="py-24",e.COMPONENT="py-32",e.MODULE="py-40",e.FEATURE="py-64"}(Pe||(Pe={}));const Me=({testID:r,cardData:i,title:n,description:o,withSeparators:l,spacing:c=Pe.MODULE})=>{const d=t.useRef(null),m=a.useInView(d,{once:!0});return e.jsxs("div",{ref:d,"data-testid":r||"PanelCards",className:s("relative m-auto w-full flex flex-col flex-none flex-nowrap",c),children:[(n||o)&&e.jsxs("div",{className:"relative text-center py-8",children:[n&&e.jsx(pe,{text:n}),o&&e.jsx(D,{align:exports.COPY_ALIGN.CENTER,children:o})]}),e.jsx("div",{className:"flex gap-8",children:null==i?void 0:i.map(((t,a)=>e.jsxs("span",{className:"flex gap-8 justify-between",children:[e.jsx("div",{className:s("relative flex flex-1 items-center justify-center",{"":l}),style:{transform:m?"none":"translateY(200px)",opacity:m?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*a}s`},children:e.jsx(ue,Object.assign({},t))}),l&&a<i.length-1&&e.jsx("div",{className:"w-1 h-10 border-0 border-r border-solid border-primary500"},`separator-${a}`)]},`card-${a}`)))})]})};Me.displayName="PanelCards";const Fe=({testID:t,title:a,description:r,inversed:i,assets:n,buttonData:o,withBg:l=!0,spacing:c=Pe.DEFAULT})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap",c),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(Se,{children:e.jsxs("div",{className:s("relative flex sm:flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-16",{"flex-row-reverse":i}),children:[e.jsxs("div",{className:"w-1/2 flex flex-col items-start justify-center",children:[e.jsxs("div",{className:"relative text-left",children:[e.jsx(pe,{text:a}),e.jsx(D,{className:"mb-0",children:r})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 my-8",children:[e.jsx(P,{rounded:!0,text:"New",variant:"info"}),e.jsx(P,{rounded:!0,text:"Trending",variant:"info"}),e.jsx(P,{rounded:!0,text:"Popular",variant:"info"})]}),e.jsx("div",{className:"",children:e.jsx(j,Object.assign({},o))})]}),e.jsx("div",{className:"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(Ie,{bgAsset:n.bgAsset,focalAsset1:n.focalAsset1,focalAsset2:n.focalAsset2,focalAsset3:n.focalAsset3})})})]})})]});Fe.displayName="PanelFeature";const Be=({url:a,sources:r,onReady:n,className:o,options:l={},isYoutube:c=!1,defaultAudioTrack:d="No Music",rounded:p=!0,aspectRatioValue:x})=>{const h=t.useRef(null),f=t.useRef(null),g=t.useRef(null),v=t.useMemo((()=>{switch(x){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]"}}}),[x]);return t.useEffect((()=>{var e;if(c)return;const t=Object.assign(Object.assign({autoplay:!0,controls:!0,muted:!1,responsive:!0,fill:!0,fluid:!0,aspectRatio:v.aspectRatio||"16:9",controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},l),{sources:r});if(!g.current){const s=document.createElement("video-js");s.classList.add("vjs-big-play-centered"),null===(e=null==f?void 0:f.current)||void 0===e||e.appendChild(s);const a=g.current=u(s,t,(()=>{u.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===d&&(e[t].enabled=!0)}))}}),[l,f]),t.useEffect((()=>{if(c)return;const e=g.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),g.current=null)}}),[g]),c&&a?e.jsx("div",{"data-testid":"Video",className:s("relative w-full h-full aspect-[16/9]",o),children:e.jsx(m,{ref:h,className:"react-player",url:a,width:"100%",height:"100%",controls:!0,onReady:n})}):e.jsx("div",{className:i.twMerge(s("relative w-full overflow-hidden h-full aspect-[16/9] bg-black object-cover",{rouded:p},v.className,o)),children:e.jsx("div",{"data-vjs-player":!0,children:e.jsx("div",{ref:f,className:"object-cover"})})})};Be.displayName="Video";const Ue=({testID:r,title:n,contentComponent:o,description:l,image:c,buttonData:d,inversed:m=!1,withBg:u=!0,spacing:p,video:x,headingTag:h,className:f})=>{const g=a.useAnimation(),v=t.useRef(null),N=a.useInView(v),b={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};t.useEffect((()=>{N&&g.start((e=>({transform:"none",transition:Object.assign(Object.assign({},b),{delay:.1*e})})))}),[g,N]);const E=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=m?"translateX(100px)":"translateX(-100px)";return e.jsxs("div",{"data-testid":r||"PanelHero",className:i.twMerge(s("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",p,f)),children:[u&&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":!m,"-top-24 left-0":m})}),e.jsx(Se,{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":m}),children:[e.jsx("div",{ref:v,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-primary-darker p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!m},{"text-left bg-gradient-to-t md:bg-gradient-to-r":m}),children:[e.jsx(a.motion.div,{initial:{transform:A},custom:0,animate:g,children:e.jsx(pe,{text:n,tag:h})}),o&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:g,children:o}),l&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:g,children:e.jsx(Te,{className:"mb-0",align:m?exports.COPY_ALIGN.LEFT:exports.COPY_ALIGN.RIGHT,data:l})}),d&&e.jsx(a.motion.div,{initial:{transform:A},custom:2,animate:g,children:e.jsx("div",{className:s("flex items-center",{"justify-end":!m,"justify-start":m}),children:e.jsx(j,Object.assign({},d))})})]})}),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",E),children:[c&&e.jsx(H,{src:c,alt:n,fill:!0}),x&&e.jsx(Be,{sources:x.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:x.aspectRatioValue})]})})]})})]})};Ue.displayName="PanelHero";const Ge=({testID:t,title:a,description:r,image1:i,image2:n,iosLink:o="#",androidLink:l="#",inversed:c=!1,withBg:d=!0,spacing:m=Pe.MODULE})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap",m),children:[d&&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(Se,{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-primary bg-opacity-10 backdrop-blur-lg rounded border-opacityDark20 p-8",{"flex-row-reverse":c}),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(H,{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(H,{src:i,alt:a})})]}),e.jsxs("div",{className:"w-full md:w-1/2",children:[e.jsx("div",{children:e.jsx(pe,{text:a})}),e.jsx("div",{children:e.jsx(D,{children:r})}),e.jsxs("div",{className:"flex items-center justify-start gap-4",children:[e.jsx("div",{className:"relative w-[150px] h-[50px]",children:e.jsx(R,{href:o,target:"_blank",hideExternalIcon:!0,children:e.jsx(H,{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(R,{href:l,target:"_blank",hideExternalIcon:!0,children:e.jsx(H,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});Ge.displayName="PanelProduct";const Ye=({testID:t,className:r,title:i,description:n,spacing:o=Pe.NONE,videoProps:l})=>e.jsxs("div",{"data-testid":t||'"PanelVideo"',className:s("relative m-auto w-full flex flex-none flex-nowrap aspect-[16/6.6]",o,r),children:[e.jsx(Be,{rounded:!1,options:Object.assign({autoplay:!0,muted:!0,controls:!1,loop:!0},null==l?void 0:l.options),sources:null==l?void 0:l.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-0 w-full h-full flex flex-col items-end justify-center pr-24 text-white",children:[i&&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(G,{tag:exports.HEADING_TAGS.H2,children:i})})}),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(D,{children:n})})})]})]})]});var He;Ye.displayName="PanelVideo",exports.CPL_SPACING=void 0,(He=exports.CPL_SPACING||(exports.CPL_SPACING={})).NONE="none",He.ATOM="atom",He.DEFAULT="default",He.ELEMENT="element",He.COMPONENT="component",He.MODULE="module",He.FEATURE="feature";const Ve=({spacing:t=exports.CPL_SPACING.DEFAULT,children:a,narrow:r,flush:i,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":r},{"p-0":i},n);return e.jsx("div",{"data-testid":"ContentPageLayout",className:o,children:a})};var We;Ve.displayName="ContentPageLayout",exports.CRL_SIZE=void 0,(We=exports.CRL_SIZE||(exports.CRL_SIZE={})).NONE="none",We.ATOM="atom",We.DEFAULT="default",We.ELEMENT="element",We.COMPONENT="component",We.MODULE="module",We.FEATURE="feature";const ze=({className:t,children:a,size:r=exports.CRL_SIZE.DEFAULT})=>{const i=s("grid","auto-rows-min","grid-cols-1","gap-x-4",{"gap-y-0 mb-0":"none"===r},{"gap-y-2 mb-2":"atom"===r},{"gap-y-4 mb-4":"default"===r},{"gap-y-8 mb-8":"element"===r},{"gap-y-16 mb-16":"module"===r},{"gap-y-24 mb-24":"component"===r},{"gap-y-40 mb-40":"feature"===r},t);return e.jsx("div",{"data-testid":"ContentRowsLayout",className:i,children:a})};ze.displayName="ContentRowsLayout";const qe=t.createContext({brand:void 0,header:void 0,footer:void 0,locale:void 0}),Ze=({children:t,value:s})=>e.jsx(qe.Provider,{value:s,children:t}),Ke=({testID:a,className:r,logoAspectRatio:i="aspect-[16/9]"})=>{var n,o,l,c,d,m,u,p,x,h,f,g,v;const N=t.useContext(qe);return e.jsxs("footer",{className:s("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8",r),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===(n=null==N?void 0:N.brand)||void 0===n?void 0:n.logo)&&e.jsx("div",{className:"relative w-24",children:e.jsx(Z,{logo:null===(o=null==N?void 0:N.brand)||void 0===o?void 0:o.logo,aspectRatioClass:i})}),(null===(l=N.footer)||void 0===l?void 0:l.about)&&e.jsx("div",{children:e.jsx(D,{children:N.footer.about})}),e.jsx("div",{children:e.jsx(be,{facebook:null===(d=null===(c=N.footer)||void 0===c?void 0:c.visitUs)||void 0===d?void 0:d.facebook,twitter:null===(u=null===(m=N.footer)||void 0===m?void 0:m.visitUs)||void 0===u?void 0:u.twitter,instagram:null===(x=null===(p=N.footer)||void 0===p?void 0:p.visitUs)||void 0===x?void 0:x.instagram,linkedin:null===(f=null===(h=N.footer)||void 0===h?void 0:h.visitUs)||void 0===f?void 0:f.linkedin})})]}),(null===(g=N.footer)||void 0===g?void 0:g.menus)&&e.jsx("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:N.footer.menus.map(((t,s)=>e.jsx("div",{className:"flex flex-1",children:e.jsx(Ee,{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(D,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:["© ",(new Date).getFullYear()," ",te.UI.COPYRIGHT," ",null===(v=N.brand)||void 0===v?void 0:v.name]}),e.jsx(D,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:te.UI.ALL_RIGHTS_RESERVED})]})]})};Ke.displayName="Footer";const $e=({testID:a,menuLinks:r,profileLinks:i,loginCallback:n,logoutCallback:o,isAuthenticated:l=!1,hideMenu:c=!1,logoAspectRatio:d="aspect-[16/9]",className:m,logoOnly:u})=>{var p,x,h,f,g,v;const N=t.useContext(qe),[b,E]=t.useState("hidden"),[A,S]=t.useState(!1),y=()=>{E("hidden"===b?"block":"hidden")};return u?e.jsx("header",{"data-testid":a||'"Header"',className:s("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0",m),children:e.jsx("div",{className:"relative w-full flex justify-center items-center",children:(null===(p=null==N?void 0:N.brand)||void 0===p?void 0:p.logo)&&e.jsx("div",{className:"relative w-56",children:e.jsx(R,{href:"/",children:e.jsx(Z,{logo:null===(x=null==N?void 0:N.brand)||void 0===x?void 0:x.logo,aspectRatioClass:d})})})})}):e.jsxs("header",{"data-testid":a||'"Header"',className:s("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0",m),children:[e.jsxs("div",{className:"relative w-full flex",children:[(null===(h=null==N?void 0:N.brand)||void 0===h?void 0:h.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(R,{href:"/",children:e.jsx(Z,{logo:null===(f=null==N?void 0:N.brand)||void 0===f?void 0:f.logo,aspectRatioClass:d})})}),e.jsx("div",{className:"flex-1 hidden md:flex items-center justify-center",children:e.jsx(Ee,{links:r,separators:!0})}),e.jsxs("div",{className:"hidden md:flex flex-col justify-center",children:[!l&&n&&e.jsx(j,{onClick:n,children:te.UI.LOGIN}),l&&e.jsxs("div",{className:"relative",children:[e.jsx(j,{onClick:()=>S(!A),icon:A?"mdi:user-outline":"mdi:user"}),e.jsx("div",{onClick:()=>S(!1),className:s("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!A}),children:e.jsx(Ee,{links:i,inline:!1})})]})]}),e.jsx("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:menu",onClick:y})})]}),e.jsxs("div",{className:s("navbar-menu relative z-50",b,{hidden:c}),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===(g=null==N?void 0:N.brand)||void 0===g?void 0:g.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(Z,{logo:null===(v=null==N?void 0:N.brand)||void 0===v?void 0:v.logo,aspectRatioClass:"aspect-[16/9]"})})}),e.jsx("div",{children:e.jsx(j,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:close",onClick:y})})]}),e.jsxs("div",{className:"flex flex-col flex-1 gap-4",children:[l&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(D,{children:"User profile avatar and details here."})}),e.jsx("div",{className:"flex flex-1 justify-center pt-4",children:e.jsx(Ee,{links:r,inline:!1})}),l&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(j,{onClick:o,children:te.UI.LOGOUT})}),!l&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(j,{onClick:()=>{n(),y()},children:te.UI.LOGIN})})]})]})]})]})};$e.displayName="Header";const Xe=({testID:a,inputCallback:r,seperator:i,numInputs:n=4,shouldAutoFocus:o=!1,size:l="medium"})=>{const[c,d]=t.useState("");t.useEffect((()=>{c&&4===c.length&&void 0!==r&&"function"==typeof r&&r(c)}),[c]);const m=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(p,{value:c,onChange:d,inputType:"number",numInputs:n,shouldAutoFocus:o,renderSeparator:i?()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(N,{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:m.width,height:m.height}})})};var Qe,Je;function et({className:t,label:a,onChange:r,options:i}){return e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(V,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(fe,{id:a||"Sorting",options:i,onChange:e=>r(e.target.value)})]})}function tt(t){var{className:a,current:r,resultsPerPage:i=10,onChange:n,totalPages:o}=t,l=T(t,["className","current","resultsPerPage","onChange","totalPages"]);return e.jsx(f,Object.assign({current:r,onChange:n,simple:!0,pageSize:i,total:o*i,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:g,prevIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(N,{name:"mdi:chevron-left"})}),nextIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(N,{name:"mdi:chevron-right"})})},l))}function st({className:t,onChange:a,options:r,label:i}){return r?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(V,{className:"text-sm mr-2",transform:exports.COPY_TRANSFORM.UPPERCASE,children:te.UI.SHOW}),e.jsx(fe,{id:i||"ResultsPerPage",options:r.map((e=>({label:e.toString(),value:e}))),onChange:e=>a(e.target.value),className:"min-w-20"})]}):e.jsx(e.Fragment,{})}function at(t){var{className:a,end:r,searchTerm:i,start:n,totalResults:o}=t,l=T(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," - ",r]})," ","out of ",e.jsx("strong",{children:o}),i&&e.jsxs(e.Fragment,{children:[" ","for: ",e.jsx("em",{children:i})]})]}))}function rt({className:a,onChange:r,onSubmit:i,wasSearched:n,placeholder:o}){const l=t.useContext(h.SearchContext);return e.jsx("div",{className:s("m-0 px-48",a),children:e.jsxs("form",{onSubmit:e=>i(e),className:"flex items-center",children:[e.jsx("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e.jsx(ee,{name:"SearchBoxInput",type:J.TEXT,placeholder:o||"Search now...",onChange:e=>{var t;r(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&&e.jsx(j,{type:exports.BTN_TYPES.BUTTON,onClick:()=>l.driver.reset(),variant:exports.BTN_VARIANTS.SECONDARY,children:"Reset"}),e.jsx(j,{type:exports.BTN_TYPES.SUBMIT,variant:exports.BTN_VARIANTS.PRIMARY,children:"Search"})]})})]})})}function it({className:t,children:a,header:r,bodyContent:i,bodyFooter:n,bodyHeader:o,sideContent:l}){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("div",{className:s("w-full flex flex-col",t),children:[e.jsx("div",{className:"m-auto md:py-0 w-full",children:r}),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:[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||i}),e.jsx("div",{className:"flex items-center justify-around",children:n})]})]})]})}function nt(t){var{children:a,className:r,gridClasses:i}=t,n=T(t,["children","className","gridClasses"]);const o=i||"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,r)},n,{children:a}))}function ot(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function lt(e,t){if(e)return e[t]}function ct(e){const t=lt(e,"snippet")||(s=function(e){return lt(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 dt({className:t,result:a,as:r,cardMap:i={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:n,titleField:o,imageField:l,videoField:c,descriptionField:d,metaDataFields:m,cardProps:u}=i,p=n&&ct(a[n.fieldName]),x=o&&ct(a[o.fieldName]),h=l&&ct(a[l.fieldName]),f=c&&c.formatter?c.formatter(ct(a[c.fieldName])):c&&ct(a[c.fieldName]),g=d&&ct(a[d.fieldName]),v=m&&m.map((e=>{const t=ct(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:f,description:g,metaData:v,actions:i.actionsData,onClick:i.onClickLink};switch(r){case exports.ResultAsTypes.cardMedia:return e.jsx(ue,Object.assign({variant:exports.CardVariant.MEDIA,data:t},u));case exports.ResultAsTypes.cardVideo:return e.jsx(ue,Object.assign({variant:exports.CardVariant.VIDEO,data:t},u,{isMuted:!1}));default:return e.jsx(ue,Object.assign({variant:exports.CardVariant.BASIC,data:t},u))}})()})}function mt({className:t,label:a,onChange:r,options:i}){const n=i.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(V,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(fe,{id:a,options:n,onChange:e=>r(e.target.value)})]})}function ut({className:t,label:a,onRemove:r,onSelect:i,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(V,{className:"text-sm",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:[ot(o),e.jsx("span",{className:"ml-1 px-1",children:e.jsx(j,{onClick:()=>r(o),children:e.jsx(N,{name:"mdi:close"})})})]}),!o&&n.map((t=>{const s=ot(t.value);return e.jsxs("li",{className:"m-0 flex justify-between",children:[e.jsx("a",{className:"no-underline text-sm visited:text-bodyText","data-transaction-name":`facet - ${a}`,href:"/",onClick:e=>{e.preventDefault(),i(t.value)},children:e.jsx("label",{className:"label pl-0 leading-none text-sm",children:s})}),e.jsx(D,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.SMALL,children:t.count.toLocaleString("en")})]},s)}))]})]})})}function pt({className:t,label:a,onMoreClick:r,onRemove:i,onSelect:n,options:o,showMore:l,showSearch:c,onSearch:d,searchPlaceholder:m}){return o?e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(V,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),c&&e.jsx("div",{className:"mt-1",children:e.jsx(ee,{type:J.SEARCH,placeholder:m||"Search",onChange:e=>{d(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,r=t.value,o=ot(r);return e.jsxs("div",{className:"flex justify-between pb-2",children:[e.jsx(C,{id:`facet_${a}${o}`,"data-transaction-name":`facet - ${a}`,checked:s,onChange:()=>s?i(r):n(r),label:o}),e.jsx(D,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.SMALL,children:t.count.toLocaleString("en")})]},o)}))]}),l&&e.jsx(j,{size:exports.BTN_SIZES.SMALL,variant:exports.BTN_VARIANTS.TERTIARY,onClick:r,"aria-label":"Show more options",children:"+ More"})]}):e.jsx(e.Fragment,{children:"Options required"})}Xe.displayName="OTPInput",exports.CardVariant=void 0,(Qe=exports.CardVariant||(exports.CardVariant={})).BASIC="basic",Qe.MEDIA="media",Qe.VIDEO="video",Qe.ICON="icon",Qe.HORZ="horz",Qe.DATA="data",exports.ResultAsTypes=void 0,(Je=exports.ResultAsTypes||(exports.ResultAsTypes={})).cardBasic="cardBasic",Je.cardMedia="cardMedia",Je.cardVideo="cardVideo",et.displayName="Sorting",tt.displayName="Paging",st.displayName="ResultsPerPage",at.displayName="PagingInfo",rt.displayName="SearchBox",it.displayName="Layout",nt.displayName="Results",dt.displayName="Result",mt.displayName="SingleSelectFacet",ut.displayName="SingleLinksFacet",pt.displayName="MultiCheckboxFacet";const xt=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e.jsx(xe,{onSubmit:t,submit:te.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(ge,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:te.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:we})})});xt.displayName="ResetPasswordForm";const ht=({testID:t,initialValues:s,handleSubmit:a})=>e.jsx("div",{"data-testid":t||'"ProfileForm"',className:"form-wrapper",children:e.jsxs(xe,{onSubmit:a,submit:te.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx("div",{className:"mb-4 items-center justify-center flex",children:e.jsx(se,{name:"avatar",initValue:null==s?void 0:s.avatar})}),e.jsx(ge,{name:"firstName",type:exports.FIELD_TYPES.TEXT,label:te.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e.jsx(ge,{name:"lastName",type:exports.FIELD_TYPES.TEXT,label:te.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e.jsx(ge,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:te.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:Oe})]})});ht.displayName="ProfileForm";const ft={isDarkTheme:!1,toggleTheme:()=>console.log("toggleTheme")},gt=t.createContext(ft);const vt={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 Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bt={exports:{}},Et={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]},At={exports:{}},St=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))},yt=Array.prototype.concat,jt=Array.prototype.slice,Tt=At.exports=function(e){for(var t=[],s=0,a=e.length;s<a;s++){var r=e[s];St(r)?t=yt.call(t,jt.call(r)):t.push(r)}return t};Tt.wrap=function(e){return function(){return e(Tt(arguments))}};var It=At.exports,Ct=Et,Rt=It,Ot=Object.hasOwnProperty,wt=Object.create(null);for(var _t in Ct)Ot.call(Ct,_t)&&(wt[Ct[_t]]=_t);var Lt=bt.exports={to:{},get:{}};function kt(e,t,s){return Math.min(Math.max(t,e),s)}function Dt(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}Lt.get=function(e){var t,s;switch(e.substring(0,3).toLowerCase()){case"hsl":t=Lt.get.hsl(e),s="hsl";break;case"hwb":t=Lt.get.hwb(e),s="hwb";break;default:t=Lt.get.rgb(e),s="rgb"}return t?{model:s,value:t}:null},Lt.get.rgb=function(e){if(!e)return null;var t,s,a,r=[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 i=2*s;r[s]=parseInt(t.slice(i,i+2),16)}a&&(r[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++)r[s]=parseInt(t[s]+t[s],16);a&&(r[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++)r[s]=parseInt(t[s+1],0);t[4]&&(t[5]?r[3]=.01*parseFloat(t[4]):r[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]:Ot.call(Ct,t[1])?((r=Ct[t[1]])[3]=1,r):null:null;for(s=0;s<3;s++)r[s]=Math.round(2.55*parseFloat(t[s+1]));t[4]&&(t[5]?r[3]=.01*parseFloat(t[4]):r[3]=parseFloat(t[4]))}for(s=0;s<3;s++)r[s]=kt(r[s],0,255);return r[3]=kt(r[3],0,1),r},Lt.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,kt(parseFloat(t[2]),0,100),kt(parseFloat(t[3]),0,100),kt(isNaN(s)?1:s,0,1)]}return null},Lt.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,kt(parseFloat(t[2]),0,100),kt(parseFloat(t[3]),0,100),kt(isNaN(s)?1:s,0,1)]}return null},Lt.to.hex=function(){var e=Rt(arguments);return"#"+Dt(e[0])+Dt(e[1])+Dt(e[2])+(e[3]<1?Dt(Math.round(255*e[3])):"")},Lt.to.rgb=function(){var e=Rt(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]+")"},Lt.to.rgb.percent=function(){var e=Rt(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]+")"},Lt.to.hsl=function(){var e=Rt(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Lt.to.hwb=function(){var e=Rt(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Lt.to.keyword=function(e){return wt[e.slice(0,3)]};var Pt=bt.exports;const Mt=Et,Ft={};for(const e of Object.keys(Mt))Ft[Mt[e]]=e;const Bt={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 Ut=Bt;for(const e of Object.keys(Bt)){if(!("channels"in Bt[e]))throw new Error("missing channels property: "+e);if(!("labels"in Bt[e]))throw new Error("missing channel labels property: "+e);if(Bt[e].labels.length!==Bt[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:s}=Bt[e];delete Bt[e].channels,delete Bt[e].labels,Object.defineProperty(Bt[e],"channels",{value:t}),Object.defineProperty(Bt[e],"labels",{value:s})}Bt.rgb.hsl=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,r=Math.min(t,s,a),i=Math.max(t,s,a),n=i-r;let o,l;i===r?o=0:t===i?o=(s-a)/n:s===i?o=2+(a-t)/n:a===i&&(o=4+(t-s)/n),o=Math.min(60*o,360),o<0&&(o+=360);const c=(r+i)/2;return l=i===r?0:c<=.5?n/(i+r):n/(2-i-r),[o,100*l,100*c]},Bt.rgb.hsv=function(e){let t,s,a,r,i;const n=e[0]/255,o=e[1]/255,l=e[2]/255,c=Math.max(n,o,l),d=c-Math.min(n,o,l),m=function(e){return(c-e)/6/d+.5};return 0===d?(r=0,i=0):(i=d/c,t=m(n),s=m(o),a=m(l),n===c?r=a-s:o===c?r=1/3+t-a:l===c&&(r=2/3+s-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*i,100*c]},Bt.rgb.hwb=function(e){const t=e[0],s=e[1];let a=e[2];const r=Bt.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(s,a));return a=1-1/255*Math.max(t,Math.max(s,a)),[r,100*i,100*a]},Bt.rgb.cmyk=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,r=Math.min(1-t,1-s,1-a);return[100*((1-t-r)/(1-r)||0),100*((1-s-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*r]},Bt.rgb.keyword=function(e){const t=Ft[e];if(t)return t;let s,a=1/0;for(const t of Object.keys(Mt)){const n=(i=Mt[t],((r=e)[0]-i[0])**2+(r[1]-i[1])**2+(r[2]-i[2])**2);n<a&&(a=n,s=t)}var r,i;return s},Bt.keyword.rgb=function(e){return Mt[e]},Bt.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)]},Bt.rgb.lab=function(e){const t=Bt.rgb.xyz(e);let s=t[0],a=t[1],r=t[2];s/=95.047,a/=100,r/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*a-16,500*(s-a),200*(a-r)]},Bt.hsl.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;let r,i,n;if(0===s)return n=255*a,[n,n,n];r=a<.5?a*(1+s):a+s-a*s;const o=2*a-r,l=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,n=6*i<1?o+6*(r-o)*i:2*i<1?r:3*i<2?o+(r-o)*(2/3-i)*6:o,l[e]=255*n;return l},Bt.hsl.hsv=function(e){const t=e[0];let s=e[1]/100,a=e[2]/100,r=s;const i=Math.max(a,.01);a*=2,s*=a<=1?a:2-a,r*=i<=1?i:2-i;return[t,100*(0===a?2*r/(i+r):2*s/(a+s)),100*((a+s)/2)]},Bt.hsv.rgb=function(e){const t=e[0]/60,s=e[1]/100;let a=e[2]/100;const r=Math.floor(t)%6,i=t-Math.floor(t),n=255*a*(1-s),o=255*a*(1-s*i),l=255*a*(1-s*(1-i));switch(a*=255,r){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]}},Bt.hsv.hsl=function(e){const t=e[0],s=e[1]/100,a=e[2]/100,r=Math.max(a,.01);let i,n;n=(2-s)*a;const o=(2-s)*r;return i=s*r,i/=o<=1?o:2-o,i=i||0,n/=2,[t,100*i,100*n]},Bt.hwb.rgb=function(e){const t=e[0]/360;let s=e[1]/100,a=e[2]/100;const r=s+a;let i;r>1&&(s/=r,a/=r);const n=Math.floor(6*t),o=1-a;i=6*t-n,1&n&&(i=1-i);const l=s+i*(o-s);let c,d,m;switch(n){default:case 6:case 0:c=o,d=l,m=s;break;case 1:c=l,d=o,m=s;break;case 2:c=s,d=o,m=l;break;case 3:c=s,d=l,m=o;break;case 4:c=l,d=s,m=o;break;case 5:c=o,d=s,m=l}return[255*c,255*d,255*m]},Bt.cmyk.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,s*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},Bt.xyz.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100;let r,i,n;return r=3.2406*t+-1.5372*s+-.4986*a,i=-.9689*t+1.8758*s+.0415*a,n=.0557*t+-.204*s+1.057*a,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,r=Math.min(Math.max(0,r),1),i=Math.min(Math.max(0,i),1),n=Math.min(Math.max(0,n),1),[255*r,255*i,255*n]},Bt.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)]},Bt.lab.xyz=function(e){let t,s,a;s=(e[0]+16)/116,t=e[1]/500+s,a=s-e[2]/200;const r=s**3,i=t**3,n=a**3;return s=r>.008856?r:(s-16/116)/7.787,t=i>.008856?i:(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]},Bt.lab.lch=function(e){const t=e[0],s=e[1],a=e[2];let r;r=360*Math.atan2(a,s)/2/Math.PI,r<0&&(r+=360);return[t,Math.sqrt(s*s+a*a),r]},Bt.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)]},Bt.rgb.ansi16=function(e,t=null){const[s,a,r]=e;let i=null===t?Bt.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let n=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(s/255));return 2===i&&(n+=60),n},Bt.hsv.ansi16=function(e){return Bt.rgb.ansi16(Bt.hsv.rgb(e),e[2])},Bt.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)},Bt.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]},Bt.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]},Bt.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},Bt.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]},Bt.rgb.hcg=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,r=Math.max(Math.max(t,s),a),i=Math.min(Math.min(t,s),a),n=r-i;let o,l;return o=n<1?i/(1-n):0,l=n<=0?0:r===t?(s-a)/n%6:r===s?2+(a-t)/n:4+(t-s)/n,l/=6,l%=1,[360*l,100*n,100*o]},Bt.hsl.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=s<.5?2*t*s:2*t*(1-s);let r=0;return a<1&&(r=(s-.5*a)/(1-a)),[e[0],100*a,100*r]},Bt.hsv.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=t*s;let r=0;return a<1&&(r=(s-a)/(1-a)),[e[0],100*a,100*r]},Bt.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 r=[0,0,0],i=t%1*6,n=i%1,o=1-n;let l=0;switch(Math.floor(i)){case 0:r[0]=1,r[1]=n,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=n;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=n,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return l=(1-s)*a,[255*(s*r[0]+l),255*(s*r[1]+l),255*(s*r[2]+l)]},Bt.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]},Bt.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]},Bt.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)]},Bt.hwb.hcg=function(e){const t=e[1]/100,s=1-e[2]/100,a=s-t;let r=0;return a<1&&(r=(s-a)/(1-a)),[e[0],100*a,100*r]},Bt.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Bt.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Bt.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Bt.gray.hsl=function(e){return[0,0,e[0]]},Bt.gray.hsv=Bt.gray.hsl,Bt.gray.hwb=function(e){return[0,100,e[0]]},Bt.gray.cmyk=function(e){return[0,0,0,e[0]]},Bt.gray.lab=function(e){return[e[0],0,0]},Bt.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},Bt.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Gt=Ut;function Yt(e){const t=function(){const e={},t=Object.keys(Gt);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(Gt[e]);for(let r=a.length,i=0;i<r;i++){const r=a[i],n=t[r];-1===n.distance&&(n.distance=t[e].distance+1,n.parent=e,s.unshift(r))}}return t}function Ht(e,t){return function(s){return t(e(s))}}function Vt(e,t){const s=[t[e].parent,e];let a=Gt[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)s.unshift(t[r].parent),a=Ht(Gt[t[r].parent][r],a),r=t[r].parent;return a.conversion=s,a}const Wt=Ut,zt=function(e){const t=Yt(e),s={},a=Object.keys(t);for(let e=a.length,r=0;r<e;r++){const e=a[r];null!==t[e].parent&&(s[e]=Vt(e,t))}return s},qt={};Object.keys(Wt).forEach((e=>{qt[e]={},Object.defineProperty(qt[e],"channels",{value:Wt[e].channels}),Object.defineProperty(qt[e],"labels",{value:Wt[e].labels});const t=zt(e);Object.keys(t).forEach((s=>{const a=t[s];qt[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),qt[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 Zt=Pt,Kt=qt,$t=["keyword","gray","hex"],Xt={};for(const e of Object.keys(Kt))Xt[[...Kt[e].labels].sort().join("")]=e;const Qt={};function Jt(e,t){if(!(this instanceof Jt))return new Jt(e,t);if(t&&t in $t&&(t=null),t&&!(t in Kt))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 Jt)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=Zt.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,a=Kt[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=Kt[this.model].channels;const s=Array.prototype.slice.call(e,0,a);this.color=as(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 Xt))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Xt[a];const{labels:r}=Kt[this.model],i=[];for(s=0;s<r.length;s++)i.push(e[r[s]]);this.color=as(i)}if(Qt[this.model])for(a=Kt[this.model].channels,s=0;s<a;s++){const e=Qt[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)}Jt.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Zt.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const s=1===t.valpha?t.color:[...t.color,this.valpha];return Zt.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 Zt.to.rgb.percent(s)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Kt[this.model],{labels:s}=Kt[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 Jt([...this.color.map(es(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new Jt([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:ts("rgb",0,ss(255)),green:ts("rgb",1,ss(255)),blue:ts("rgb",2,ss(255)),hue:ts(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:ts("hsl",1,ss(100)),lightness:ts("hsl",2,ss(100)),saturationv:ts("hsv",1,ss(100)),value:ts("hsv",2,ss(100)),chroma:ts("hcg",1,ss(100)),gray:ts("hcg",2,ss(100)),white:ts("hwb",1,ss(100)),wblack:ts("hwb",2,ss(100)),cyan:ts("cmyk",0,ss(100)),magenta:ts("cmyk",1,ss(100)),yellow:ts("cmyk",2,ss(100)),black:ts("cmyk",3,ss(100)),x:ts("xyz",0,ss(95.047)),y:ts("xyz",1,ss(100)),z:ts("xyz",2,ss(108.833)),l:ts("lab",0,ss(100)),a:ts("lab",1),b:ts("lab",2),keyword(e){return void 0!==e?new Jt(e):Kt[this.model].keyword(this.color)},hex(e){return void 0!==e?new Jt(e):Zt.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new Jt(e);const t=this.rgb().round().color;let s=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===s.length&&(s="0"+s),Zt.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 Jt.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(),r=void 0===t?.5:t,i=2*r-1,n=s.alpha()-a.alpha(),o=((i*n==-1?i:(i+n)/(1+i*n))+1)/2,l=1-o;return Jt.rgb(o*s.red()+l*a.red(),o*s.green()+l*a.green(),o*s.blue()+l*a.blue(),s.alpha()*r+a.alpha()*(1-r))}};for(const e of Object.keys(Kt)){if($t.includes(e))continue;const{channels:t}=Kt[e];Jt.prototype[e]=function(...t){return this.model===e?new Jt(this):t.length>0?new Jt(t,e):new Jt([...(s=Kt[this.model][e].raw(this.color),Array.isArray(s)?s:[s]),this.valpha],e);var s},Jt[e]=function(...s){let a=s[0];return"number"==typeof a&&(a=as(s,t)),new Jt(a,e)}}function es(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function ts(e,t,s){e=Array.isArray(e)?e:[e];for(const a of e)(Qt[a]||(Qt[a]=[]))[t]=s;return e=e[0],function(a){let r;return void 0!==a?(s&&(a=s(a)),r=this[e](),r.color[t]=a,r):(r=this[e]().color[t],s&&(r=s(r)),r)}}function ss(e){return function(t){return Math.max(0,Math.min(e,t))}}function as(e,t){for(let s=0;s<t;s++)"number"!=typeof e[s]&&(e[s]=0);return e}var rs=Nt(Jt);const is=(e,t)=>rs(e).darken(t).rgb().string(),ns=Object.assign({inherit:"inherit",transparent:"transparent",black:vt.colors.black,white:vt.colors.white,bodyBackground:vt.colors.white,darkBodyBackground:vt.colors.primary,bodyText:vt.colors.primary,bodyTextInverted:vt.colors.primary50,darkBodyText:vt.colors.primary50,display:vt.colors.black,darkDisplay:vt.colors.white},Object.assign({},...Object.keys(vt.colors).map((e=>{const t=vt.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,rs(s).lighten(a).rgb().string()),darker:is(t,.1)}};var s,a})))),os=Object.assign(Object.assign({},vt),{colors:Object.assign(Object.assign({},vt.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({},vt.borderRadius),fontWeight:Object.assign(Object.assign({},vt.fontWeight),{light:"300",normal:"400",bold:"700"})}),ls=(e,t)=>rs(e).darken(t).rgb().string(),cs=Object.assign(Object.assign(Object.assign({},ns),{bodyBackground:os.colors.primary700,darkBodyBackground:os.colors.primary800,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(os.colors).map((e=>{const t=os.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,rs(s).lighten(a).rgb().string()),darker:ls(t,.1)}};var s,a})))),ds=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"]}),ms=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),us={colors:Object.assign({},cs),fontFamily:Object.assign({},ds),fontSize:Object.assign({},null==os?void 0:os.fontSize),fontWeight:Object.assign({},null==os?void 0:os.fontWeight),buttons:Object.assign({},ms),screens:Object.assign({},null==os?void 0:os.screens),borderRadius:Object.assign({},null==os?void 0:os.borderRadius),spacing:Object.assign({},null==os?void 0:os.spacing),extend:Object.assign({},null==os?void 0:os.extend)};exports.AnimationCounter=v,exports.AnimationSet1=Ie,exports.AppContext=Ze,exports.AppProvider=Ze,exports.Authenticator=De,exports.Avatar=se,exports.Blockquote=b,exports.Button=j,exports.ButtonGroup=ae,exports.Card=ue,exports.Checkbox=C,exports.Chip=P,exports.Container=Se,exports.ContentPageLayout=Ve,exports.ContentRowsLayout=ze,exports.Copy=D,exports.DisplayHeading=pe,exports.FileUpload=M,exports.Footer=Ke,exports.ForgotPasswordForm=ke,exports.Form=xe,exports.FormField=ge,exports.FormSelect=fe,exports.Header=$e,exports.Heading=G,exports.Hero=ye,exports.Hr=Y,exports.HtmlContent=Te,exports.Icon=N,exports.Image=H,exports.Label=V,exports.Link=R,exports.List=q,exports.ListItem=K,exports.Loader=y,exports.LoginForm=_e,exports.Logo=Z,exports.Menu=Ee,exports.MultiCheckboxFacet=pt,exports.Notice=$,exports.OTPInput=Xe,exports.PanelCards=Me,exports.PanelFeature=Fe,exports.PanelHero=Ue,exports.PanelProduct=Ge,exports.PanelVideo=Ye,exports.ProfileForm=ht,exports.Radio=X,exports.RegisterForm=Le,exports.ResetPasswordForm=xt,exports.STRINGS_EN=te,exports.Search=function({showOptions:s,sortOptions:a,resultAs:r=exports.ResultAsTypes.cardBasic,ResultFieldMap:i,config:n={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:o=[],noSidebar:l=!1,customConnector:c,showPagingInfo:d,gridClasses:m,initialState:u={},showTextSearch:p=!0}){const f=t.useMemo((()=>{const e=(console.log("getDefaultConnectConfig STORYBOOK_ELASTICSEARCH_INDEX",process.env.STORYBOOK_ELASTICSEARCH_INDEX),console.log("getDefaultConnectConfig REACT_APP_ELASTICSEARCH_INDEX",process.env.REACT_APP_ELASTICSEARCH_INDEX),{host:process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""});return new x(c||e)}),[]),g=t.useMemo((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:n.alwaysSearchOnInitialLoad,apiConnector:f,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},u)})),[n]);return e.jsx(h.SearchProvider,{config:g,children:e.jsx(h.WithSearch,{mapContextToProps:({wasSearched:e})=>({wasSearched:e}),children:({wasSearched:c})=>e.jsx(t.Fragment,{children:e.jsx(h.ErrorBoundary,{children:e.jsx(it,{header:p&&e.jsx(h.SearchBox,{view:t=>e.jsx(rt,Object.assign({},t,{wasSearched:c,placeholder:n.initialPlaceholder}))}),sideContent:!l&&o&&e.jsxs(t.Fragment,{children:[c&&e.jsx(h.Sorting,{label:"Sort by",sortOptions:a,view:et}),null==o?void 0:o.map((({field:t,label:s,view:a})=>e.jsx(h.Facet,{field:t,label:s,view:a},t)))]}),bodyContent:e.jsx(h.Results,{shouldTrackClickThrough:!1,resultView:t=>e.jsx(dt,Object.assign({},t,{as:r,cardMap:i})),className:"list-none p-0 m-0",view:t=>e.jsx(nt,Object.assign({},t,{gridClasses:m}))}),bodyHeader:e.jsxs(t.Fragment,{children:[c&&d&&e.jsx(h.PagingInfo,{view:at}),c&&s&&e.jsx(h.ResultsPerPage,{view:st,options:s}),c&&a&&l&&e.jsx(h.Sorting,{label:"Sort by",sortOptions:a,view:et})]}),bodyFooter:e.jsx(h.Paging,{view:tt}),noSidebar:l})})})})})},exports.Share=ve,exports.SingleLinksFacet=ut,exports.SingleSelectFacet=mt,exports.Switch=Q,exports.Tabs=Ne,exports.TextInput=ee,exports.ThemeContext=gt,exports.ThemeProvider=({children:t,theme:s})=>e.jsx(gt.Provider,{value:s,children:t}),exports.Video=Be,exports.VisitUs=be,exports.defaultTheme=ft,exports.theme=us,exports.useLanguage=function(){var e;return null===(e=t.useContext(qe).locale)||void 0===e||e.lang,te},exports.useTheme=function(){return t.useContext(gt)};
|