@4alldigital/foundation-ui--gamma 1.47.0 → 1.49.0

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.
Files changed (83) hide show
  1. package/dist/foundation-ui.css +1 -1
  2. package/dist/index.esm.js +2 -2
  3. package/dist/index.js +2 -2
  4. package/dist/types/lib/components/Accordion/Accordion.d.ts +8 -0
  5. package/dist/types/lib/components/Accordion/Accordion.types.d.ts +8 -0
  6. package/dist/types/lib/components/Accordion/index.d.ts +1 -0
  7. package/dist/types/lib/components/Card/Card.types.d.ts +1 -0
  8. package/dist/types/lib/components/Card/types/CardMedia/CardMedia.d.ts +1 -1
  9. package/dist/types/lib/components/CardGrid/CardGrid.d.ts +8 -0
  10. package/dist/types/lib/components/CardGrid/CardGrid.types.d.ts +6 -0
  11. package/dist/types/lib/components/CardGrid/index.d.ts +1 -0
  12. package/dist/types/lib/components/Carousel/Carousel.types.d.ts +7 -1
  13. package/dist/types/lib/components/Header/Header.d.ts +1 -1
  14. package/dist/types/lib/components/Schedule/Schedule.d.ts +8 -0
  15. package/dist/types/lib/components/Schedule/Schedule.types.d.ts +73 -0
  16. package/dist/types/lib/components/Schedule/index.d.ts +1 -0
  17. package/dist/types/lib/components/ScheduleItem/ScheduleItem.d.ts +8 -0
  18. package/dist/types/lib/components/ScheduleItem/ScheduleItem.types.d.ts +8 -0
  19. package/dist/types/lib/components/ScheduleItem/index.d.ts +1 -0
  20. package/dist/types/lib/components/Screen/Screen.d.ts +8 -0
  21. package/dist/types/lib/components/Screen/Screen.types.d.ts +12 -0
  22. package/dist/types/lib/components/Screen/index.d.ts +1 -0
  23. package/dist/types/lib/components/Video/Video.types.d.ts +1 -1
  24. package/dist/types/lib/components/index.d.ts +4 -0
  25. package/dist/types/lib/constants/index.d.ts +3 -0
  26. package/dist/types/lib/context/App/index.d.ts +5 -0
  27. package/dist/types/lib/features/Search/views/Layout/Layout.d.ts +1 -1
  28. package/dist/types/lib/features/Search/views/Layout/Layout.types.d.ts +1 -0
  29. package/dist/types/lib/features/Search/views/SearchBox/SearchBox.d.ts +1 -1
  30. package/dist/types/lib/features/Search/views/SearchBox/SearchBox.types.d.ts +2 -0
  31. package/dist/types/lib/forms/SubscriptionForm/SubscriptionForm.d.ts +8 -0
  32. package/dist/types/lib/forms/SubscriptionForm/SubscriptionForm.types.d.ts +6 -0
  33. package/dist/types/lib/forms/SubscriptionForm/index.d.ts +1 -0
  34. package/dist/types/lib/index.d.ts +1 -0
  35. package/dist/types/lib/templates/AccountScreen/AccountScreen.d.ts +8 -0
  36. package/dist/types/lib/templates/AccountScreen/AccountScreen.types.d.ts +29 -0
  37. package/dist/types/lib/templates/AccountScreen/index.d.ts +1 -0
  38. package/dist/types/lib/templates/AuthScreen/AuthScreen.d.ts +8 -0
  39. package/dist/types/lib/templates/AuthScreen/AuthScreen.types.d.ts +8 -0
  40. package/dist/types/lib/templates/AuthScreen/index.d.ts +1 -0
  41. package/dist/types/lib/templates/CardGridScreen/CardGridScreen.d.ts +8 -0
  42. package/dist/types/lib/templates/CardGridScreen/CardGridScreen.types.d.ts +9 -0
  43. package/dist/types/lib/templates/CardGridScreen/index.d.ts +1 -0
  44. package/dist/types/lib/templates/CatalogueScreen/CatalogueScreen.d.ts +8 -0
  45. package/dist/types/lib/templates/CatalogueScreen/CatalogueScreen.types.d.ts +7 -0
  46. package/dist/types/lib/templates/CatalogueScreen/index.d.ts +1 -0
  47. package/dist/types/lib/templates/ChallengeLibraryScreen/ChallengeLibraryScreen.d.ts +8 -0
  48. package/dist/types/lib/templates/ChallengeLibraryScreen/ChallengeLibraryScreen.types.d.ts +9 -0
  49. package/dist/types/lib/templates/ChallengeLibraryScreen/index.d.ts +1 -0
  50. package/dist/types/lib/templates/ChallengeScreen/ChallengeScreen.d.ts +8 -0
  51. package/dist/types/lib/templates/ChallengeScreen/ChallengeScreen.types.d.ts +19 -0
  52. package/dist/types/lib/templates/ChallengeScreen/index.d.ts +1 -0
  53. package/dist/types/lib/templates/ContentScreen/ContentScreen.d.ts +8 -0
  54. package/dist/types/lib/templates/ContentScreen/ContentScreen.types.d.ts +7 -0
  55. package/dist/types/lib/templates/ContentScreen/index.d.ts +1 -0
  56. package/dist/types/lib/templates/DashboardScreen/DashboardScreen.d.ts +8 -0
  57. package/dist/types/lib/templates/DashboardScreen/DashboardScreen.types.d.ts +25 -0
  58. package/dist/types/lib/templates/DashboardScreen/index.d.ts +1 -0
  59. package/dist/types/lib/templates/FAQScreen/FAQScreen.d.ts +8 -0
  60. package/dist/types/lib/templates/FAQScreen/FAQScreen.types.d.ts +14 -0
  61. package/dist/types/lib/templates/FAQScreen/index.d.ts +1 -0
  62. package/dist/types/lib/templates/HomeScreen/HomeScreen.d.ts +8 -0
  63. package/dist/types/lib/templates/HomeScreen/HomeScreen.types.d.ts +5 -0
  64. package/dist/types/lib/templates/HomeScreen/index.d.ts +1 -0
  65. package/dist/types/lib/templates/MenuScreen/MenuScreen.d.ts +8 -0
  66. package/dist/types/lib/templates/MenuScreen/MenuScreen.types.d.ts +11 -0
  67. package/dist/types/lib/templates/MenuScreen/index.d.ts +1 -0
  68. package/dist/types/lib/templates/ProfileScreen/ProfileScreen.d.ts +8 -0
  69. package/dist/types/lib/templates/ProfileScreen/ProfileScreen.types.d.ts +23 -0
  70. package/dist/types/lib/templates/ProfileScreen/index.d.ts +1 -0
  71. package/dist/types/lib/templates/ScheduleScreen/ScheduleScreen.d.ts +8 -0
  72. package/dist/types/lib/templates/ScheduleScreen/ScheduleScreen.types.d.ts +8 -0
  73. package/dist/types/lib/templates/ScheduleScreen/index.d.ts +1 -0
  74. package/dist/types/lib/templates/SubscriptionScreen/SubscriptionScreen.d.ts +8 -0
  75. package/dist/types/lib/templates/SubscriptionScreen/SubscriptionScreen.types.d.ts +25 -0
  76. package/dist/types/lib/templates/SubscriptionScreen/index.d.ts +1 -0
  77. package/dist/types/lib/templates/WorkoutScreen/WorkoutScreen.d.ts +8 -0
  78. package/dist/types/lib/templates/WorkoutScreen/WorkoutScreen.types.d.ts +29 -0
  79. package/dist/types/lib/templates/WorkoutScreen/index.d.ts +1 -0
  80. package/dist/types/lib/templates/index.d.ts +30 -0
  81. package/dist/types/lib/translations/en.d.ts +4 -0
  82. package/dist/types/lib/utils/index.d.ts +1 -0
  83. package/package.json +5 -4
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("react"),a=require("classnames"),s=require("framer-motion"),i=require("@iconify/react"),r=require("tailwind-merge"),n=require("html-react-parser"),o=require("react-hover-video-player"),l=require("react-hook-form"),c=require("react-share"),d=require("react-tabs");require("libphonenumber-js");var u=require("react-slick"),m=require("react-player/youtube"),p=require("video.js"),x=require("react-otp-input"),h=require("@elastic/search-ui-elasticsearch-connector"),f=require("@elastic/react-search-ui"),N=require("rc-pagination"),E=require("rc-pagination/lib/locale/en_US");const v=({testID:i,from:r,to:n,animationOptions:o,className:l,numDecimals:c=0})=>{const d=t.useRef(null),u=s.useInView(d,{once:!0});return s.useIsomorphicLayoutEffect((()=>{const e=d.current;if(!e||!u)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=n.toString());e.textContent=r.toString();const t=s.animate(r,n,Object.assign(Object.assign({duration:1,ease:"easeOut"},o),{onUpdate:t=>{e.textContent=t.toFixed(c)}}));return()=>{t.stop()}}),[d,u,r,n,o]),e.jsx("span",{ref:d,"data-testid":i||"AnimationCounter",className:a("relative",l)})};v.displayName="AnimationCounter";const g=({name:t,size:a=24,color:s,id:r,className:n,testID:o})=>e.jsx(i.Icon,{"data-testid":o||r||"Icon",icon:t,width:a,height:a,color:s||"currentColor",className:n});g.displayName="Icon";const A=({text:t,citation:s,className:i,citationAttribute:r,showIcon:n=!0})=>{const o=a("text-xl italic font-bold",i);return e.jsxs("blockquote",{"data-testid":"Blockquote",className:o,children:[n&&e.jsx(g,{name:"mdi:comment-quote",size:42}),e.jsx("div",{children:t}),s&&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:s}),r&&e.jsx("cite",{className:"pl-3 text-sm font-light",children:r})]})})]})};var S,b,T;A.displayName="Blockquote",exports.BTN_TYPES=void 0,(S=exports.BTN_TYPES||(exports.BTN_TYPES={})).SUBMIT="submit",S.RESET="reset",S.BUTTON="button",exports.BTN_VARIANTS=void 0,(b=exports.BTN_VARIANTS||(exports.BTN_VARIANTS={})).PRIMARY="primary",b.SECONDARY="secondary",b.TERTIARY="tertiary",b.LINK="link",exports.BTN_SIZES=void 0,(T=exports.BTN_SIZES||(exports.BTN_SIZES={})).SMALL="small",T.MEDIUM="medium",T.LARGE="large";const I=({color:t,size:a=8,thickness:s=4})=>{const i=a?`w-${a} h-${a}`:"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 ${i} 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:s}),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..."})]})})};I.displayName="Loader";const O=({variant:t=exports.BTN_VARIANTS.PRIMARY,size:s=exports.BTN_SIZES.MEDIUM,type:i=exports.BTN_TYPES.BUTTON,wide:n=!1,rounded:o=!1,raised:l=!1,uppercase:c,children:d,id:u,disabled:m,ariaLabel:p,onClick:x,icon:h,external:f,iconFirst:N,outline:E,testID:v,className:A,isLoading:S})=>{var b,T,O,C;const y={small:{x:d&&!o?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&&!o?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&&!o?n?"px-11":"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},j=r.twMerge(a("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":E},{"border-primary300 dark:border-primary400 hover:border-primary400 dark:hover:border-primary500":E},{shadow:l},{uppercase:c},{"auto-cols-auto grid-cols-2 gap-4":S||h||f},{"rounded-full":o},{"flex-row-reverse":N},{"opacity-50 cursor-not-allowed":m},`${null===(b=null==y?void 0:y[s])||void 0===b?void 0:b.y} ${null===(T=null==y?void 0:y[s])||void 0===T?void 0:T.x} ${null===(O=null==y?void 0:y[s])||void 0===O?void 0:O.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},A)),R=a(null===(C=null==y?void 0:y[s])||void 0===C?void 0:C.icon);return e.jsx("button",{id:u,"data-testid":v||u||"Button",onClick:x,className:j,type:i,disabled:m,"aria-label":p,role:"button",children:e.jsxs(e.Fragment,{children:[d,h&&!f&&e.jsx("span",{className:"flex items-center",children:e.jsx(g,{name:h,className:R})}),f&&e.jsx("span",{className:"flex items-center",children:e.jsx(g,{name:"carbon:launch",className:R})}),S&&e.jsx("div",{className:"flex items-center",children:e.jsx(I,{size:4})})]})})};
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("react"),s=require("classnames"),a=require("framer-motion"),i=require("@iconify/react"),r=require("tailwind-merge"),n=require("html-react-parser"),o=require("iso8601-duration"),l=require("react-hover-video-player"),d=require("react-hook-form"),c=require("react-share"),u=require("react-tabs");require("libphonenumber-js");var m=require("react-slick"),p=require("react-player/youtube"),x=require("video.js"),h=require("react-otp-input"),v=require("@elastic/search-ui-elasticsearch-connector"),f=require("@elastic/react-search-ui"),N=require("rc-pagination"),g=require("rc-pagination/lib/locale/en_US"),E=require("react-device-detect"),S=require("date-fns"),A=require("react-collapsible");const b=({testID:i,from:r,to:n,animationOptions:o,className:l,numDecimals:d=0})=>{const c=t.useRef(null),u=a.useInView(c,{once:!0});return a.useIsomorphicLayoutEffect((()=>{const e=c.current;if(!e||!u)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void(e.textContent=n.toString());e.textContent=r.toString();const t=a.animate(r,n,Object.assign(Object.assign({duration:1,ease:"easeOut"},o),{onUpdate:t=>{e.textContent=t.toFixed(d)}}));return()=>{t.stop()}}),[c,u,r,n,o]),e.jsx("span",{ref:c,"data-testid":i||"AnimationCounter",className:s("relative",l)})};b.displayName="AnimationCounter";const T=({name:t,size:s=24,color:a,id:r,className:n,testID:o})=>e.jsx(i.Icon,{"data-testid":o||r||"Icon",icon:t,width:s,height:s,color:a||"currentColor",className:n});T.displayName="Icon";const j=({text:t,citation:a,className:i,citationAttribute:r,showIcon:n=!0})=>{const o=s("text-xl italic font-bold",i);return e.jsxs("blockquote",{"data-testid":"Blockquote",className:o,children:[n&&e.jsx(T,{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}),r&&e.jsx("cite",{className:"pl-3 text-sm font-light",children:r})]})})]})};var I,C,y;j.displayName="Blockquote",exports.BTN_TYPES=void 0,(I=exports.BTN_TYPES||(exports.BTN_TYPES={})).SUBMIT="submit",I.RESET="reset",I.BUTTON="button",exports.BTN_VARIANTS=void 0,(C=exports.BTN_VARIANTS||(exports.BTN_VARIANTS={})).PRIMARY="primary",C.SECONDARY="secondary",C.TERTIARY="tertiary",C.LINK="link",exports.BTN_SIZES=void 0,(y=exports.BTN_SIZES||(exports.BTN_SIZES={})).SMALL="small",y.MEDIUM="medium",y.LARGE="large";const O=({color:t,size:s=8,thickness:a=4})=>{const i=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 ${i} 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..."})]})})};O.displayName="Loader";const _=({variant:t=exports.BTN_VARIANTS.PRIMARY,size:a=exports.BTN_SIZES.MEDIUM,type:i=exports.BTN_TYPES.BUTTON,wide:n=!1,rounded:o=!1,raised:l=!1,uppercase:d,children:c,id:u,disabled:m,ariaLabel:p,onClick:x,icon:h,external:v,iconFirst:f,outline:N,testID:g,className:E,isLoading:S})=>{var A,b,j,I;const C={small:{x:c&&!o?n?"px-5":"px-3":"px-1",y:"py-1",space:"space-x-2",text:"text-sm",icon:"w-3 h-3"},medium:{x:c&&!o?n?"px-8":"px-4":"px-2",y:"py-2",space:"space-x-3",text:"text-base",icon:"w-5 h-5"},large:{x:c&&!o?n?"px-11":"px-5":"px-3",y:"py-3",space:"space-x-4",text:"text-lg",icon:"w-6 h-6"}},y=r.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":N},{"border-primary300 dark:border-primary400 hover:border-primary400 dark:hover:border-primary500":N},{shadow:l},{uppercase:d},{"auto-cols-auto grid-cols-2 gap-4":S||h||v},{"rounded-full":o},{"flex-row-reverse":f},{"opacity-50 cursor-not-allowed":m},`${null===(A=null==C?void 0:C[a])||void 0===A?void 0:A.y} ${null===(b=null==C?void 0:C[a])||void 0===b?void 0:b.x} ${null===(j=null==C?void 0:C[a])||void 0===j?void 0:j.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)),_=s(null===(I=null==C?void 0:C[a])||void 0===I?void 0:I.icon);return e.jsx("button",{id:u,"data-testid":g||u||"Button",onClick:x,className:y,type:i,disabled:m,"aria-label":p,role:"button",children:e.jsxs(e.Fragment,{children:[c,h&&!v&&e.jsx("span",{className:"flex items-center",children:e.jsx(T,{name:h,className:_})}),v&&e.jsx("span",{className:"flex items-center",children:e.jsx(T,{name:"carbon:launch",className:_})}),S&&e.jsx("div",{className:"flex items-center",children:e.jsx(O,{size:4})})]})})};
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,4 +13,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- function C(e,t){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(a[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(a[s[i]]=e[s[i]])}return a}function y(e,t,a,s){return new(a||(a=Promise))((function(t,i){function r(e){try{o(s.next(e))}catch(e){i(e)}}function n(e){try{o(s.throw(e))}catch(e){i(e)}}function o(e){var s;e.done?t(e.value):(s=e.value,s instanceof a?s:new a((function(e){e(s)}))).then(r,n)}o((s=s.apply(e,[])).next())}))}O.displayName="Button";const j=t.forwardRef((function(t,s){var{id:i,label:r,required:n,className:o,disabled:l}=t,c=C(t,["id","label","required","className","disabled"]);return e.jsxs("div",{"data-testid":"Checkbox",className:a("flex items-center",o),children:[e.jsxs("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e.jsx("input",Object.assign({id:i,ref:s,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(g,{name:"mdi:check-bold",size:12})})]}),r&&e.jsx("label",{className:"label pl-2 leading-none text-sm",htmlFor:i,children:r})]})}));j.displayName="Checkbox";const R=({href:s,children:i,onClick:r=(()=>{}),history:n,target:o,id:l,testID:c,className:d,prefetch:u,hideExternalIcon:m=!1})=>{const p=a("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",d);if(!m&&s&&s.startsWith("http"))return e.jsxs("span",{children:[e.jsx("a",{"data-testid":c||l||"Link",className:a(p),href:s,target:"_blank",rel:"noopener noreferrer",children:i}),e.jsx(g,{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:s||"#",onClick:r,"data-testid":c||l||"Link",className:p,target:o||"_self",prefetch:u||!1},i)}catch(t){const a=e=>{r?r(e):!0!==e.defaultPrevented&&n&&s&&(e.preventDefault(),n.push(s))};return e.jsx("a",{"data-testid":c||l||"Link",className:p,href:s,onClick:a,target:o,children:i})}};var _,L,w,D,k;R.displayName="Link",exports.COPY_ALIGN=void 0,(_=exports.COPY_ALIGN||(exports.COPY_ALIGN={})).LEFT="left",_.CENTER="center",_.RIGHT="right",_.JUSTIFY="justify",_.NOWRAP="nowrap",exports.COPY_TRANSFORM=void 0,(L=exports.COPY_TRANSFORM||(exports.COPY_TRANSFORM={})).LOWERCASE="lowercase",L.UPPERCASE="uppercase",L.CAPITALIZE="capitalize",exports.COPY_CONTEXTUAL=void 0,(w=exports.COPY_CONTEXTUAL||(exports.COPY_CONTEXTUAL={})).INVERTED="inverted",w.MUTED="muted",exports.COPY_SIZE=void 0,(D=exports.COPY_SIZE||(exports.COPY_SIZE={})).SMALL="small",D.MEDIUM="medium",D.LARGE="large",D.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 P=({children:t,as:s=exports.COPY_TAG.P,size:i,bold:n,align:o,transform:l,underlined:c,id:d,className:u,testID:m})=>{const p=a({[`text-${o}`]:o},{"font-bold":n},{"text-sm":"small"===i},{"text-base":"medium"===i},{"text-lg":"large"===i},{"text-2xl":"intro"===i},{"text-base mb-3 mt-0":"p"===s},{"text-sm":"small"===s},{underline:c},l,u);return e.jsx(s,{"data-testid":m||d||"Copy",className:r.twMerge(p),children:t})};P.displayName="Copy";const M=({testID:s,text:i,outline:n,rounded:o,variant:l,size:c="medium",icon:d,iconFirst:u,onClick:m})=>{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=r.twMerge(a("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":n},{"rounded-full":o},{"flex-row-reverse":u},{"bg-primary text-white":"primary"===l},{"bg-secondary text-white":"secondary"===l},{"bg-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 m&&"function"==typeof m?e.jsxs(R,{"data-testid":s||"Chip",className:x,onClick:m,children:[e.jsx(P,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),d&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(g,{name:d,size:p.iconSize})})]}):e.jsxs("div",{"data-testid":s||"Chip",className:x,children:[e.jsx(P,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),d&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(g,{name:d,size:p.iconSize})})]})};M.displayName="Chip";const F=t.forwardRef((function(t,s){var{id:i,name:r,required:n,disabled:o,className:l,onChangeCallback:c,onChange:d}=t,u=C(t,["id","name","required","disabled","className","onChangeCallback","onChange"]);return e.jsx("div",{"data-testid":"FileUpload",className:l,children:e.jsx("input",Object.assign({ref:s,className:a("form-item text-input file-upload p-0 relative m-0 min-w-0 flex-auto appearance-none block box-border bg-clip-padding file:p-3 file:cursor-pointer file:mr-3 file:overflow-hidden cursor-pointer file:border-0 file:rounded-none file:border-solid file:border-inherit file:transition file:duration-150 file:ease-in-out file:[border-inline-end-width:1px] file:[margin-inline-end:0.75rem] "),"aria-describedby":r,type:"file",disabled:o,required:n,name:r,id:i,onChange:e=>{c&&"function"==typeof c&&c(e),d&&"function"==typeof d&&d({target:{value:e.target.value,name:r}})}},u))})}));var B,U,G;F.displayName="FileUpload",exports.HEADING_TAGS=void 0,(B=exports.HEADING_TAGS||(exports.HEADING_TAGS={})).H1="h1",B.H2="h2",B.H3="h3",B.H4="h4",B.H5="h5",exports.HEADING_ALIGN=void 0,(U=exports.HEADING_ALIGN||(exports.HEADING_ALIGN={})).LEFT="left",U.CENTER="center",U.RIGHT="right",U.JUSTIFY="justify",U.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:s=exports.HEADING_TAGS.H2,transform:i,align:r,id:n,testID:o,flush:l,className:c,singleLine:d,bold:u=!0})=>{const m=(()=>{switch(s){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=s,x=a(`m-0 p-0 font-heading ${m}`,{"font-bold":u},{[`text-${r}`]:r},{"mb-2":!l},{"m-0":l},{"whitespace-nowrap text-ellipsis overflow-hidden":d},i,c);return e.jsx(p,{"data-testid":o||n||"Heading",className:x,children:t})};Y.displayName="Heading";const H=({size:t="small"})=>e.jsx("hr",{className:a("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})});H.displayName="Hr";const V=s=>{var{src:i,alt:n,title:o,caption:l,figure:c=!1,onLoad:d,id:u,className:m,sizes:p="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:x}=s,h=C(s,["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 a=!h.width,s=a?{sizes:p}:{};return t.createElement(e,Object.assign(Object.assign({src:i,alt:n,title:o,fill:a,onLoad:d,className:m},s),h))}catch(t){const s=a("m-0"),p=r.twMerge(a("w-full h-full",m));return c||l?e.jsxs("figure",{"data-testid":x||u||"Image",className:s,children:[e.jsx("img",{onLoad:d,src:i,alt:n,title:o,className:p}),l&&e.jsx("figcaption",{children:l})]}):e.jsx("img",{"data-testid":x||u||"Image",onLoad:d,src:i,alt:n,title:o,className:p})}};V.displayName="Image";const W=({children:t,id:s,transform:i,className:n})=>e.jsx("label",{"data-testid":"Label",className:r.twMerge(a("label mb-2",i,n)),htmlFor:s,children:t});var z,q;W.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,(q=exports.ListTag||(exports.ListTag={})).OL="ol",q.UL="ul",q.DL="dl",q.DIV="div",q.DT="dt",q.DD="dd",q.LI="li";const K=({variants:t,children:s,as:i=exports.ListTag.UL,id:r,testID:n,className:o})=>{const l=t?t.map((e=>`list--${e}`)):null,c=i;return e.jsx(c,{"data-testid":n||r||"List",className:a(l,o),children:s})};K.displayName="List";const Z=({testID:t,logo:s,className:i,aspectRatioClass:r="aspect-[1/1]"})=>e.jsx("div",{"data-testid":t||"Logo",className:a("relative w-full",r,i),children:e.jsx(V,{src:s,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});Z.displayName="Logo";const $=({onClick:t,title:s,icon:i,children:r,as:n="li",id:o,testID:l,className:c})=>e.jsxs(n,{"data-testid":l||o||"ListItem",className:a({"list-item":"div"!==n},c),children:[t&&e.jsxs(O,{variant:exports.BTN_VARIANTS.LINK,onClick:t,children:[e.jsxs("div",{className:"",children:[i&&e.jsx("div",{children:e.jsx(g,{name:i,size:24})}),s&&e.jsx("div",{children:e.jsx(Y,{flush:!0,tag:exports.HEADING_TAGS.H4,singleLine:!0,children:s})}),r&&e.jsx("div",{children:r})]}),e.jsx("div",{children:e.jsx(g,{name:"mdi:chevron-right",size:24})})]}),!t&&e.jsx("div",{className:"",children:r&&e.jsx("div",{children:r})})]});$.displayName="ListItem";const X=({id:t,testID:s,title:i,text:r,icon:n,type:o,onCloseCallback:l,onClickCallback:c,actionText:d})=>{const u=a("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":s||t||"Notice",className:u,children:e.jsxs("div",{className:"flex gap-2",children:[n&&e.jsx("div",{className:"mr-2",children:e.jsx(g,{name:n})}),e.jsxs("div",{children:[i&&e.jsx(Y,{tag:exports.HEADING_TAGS.H3,children:i}),e.jsx(P,{className:"mb-0",children:r})]}),c&&d&&e.jsx("div",{className:"ml-auto flex items-end",children:e.jsx(O,{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(O,{variant:exports.BTN_VARIANTS.LINK,icon:"mdi:close",onClick:l,"aria-label":"Close"})})]})})};X.displayName="Notice";const Q=t.forwardRef((function(t,s){var{name:i,required:r,className:n,options:o}=t,l=C(t,["name","required","className","options"]);return e.jsx("div",{"data-testid":"Radio",className:a("flex items-center",n),children:e.jsx("div",{className:a("flex flex-col gap-2",n),children:null==o?void 0:o.map((t=>{var a;const n=(null===(a=null==t?void 0:t.value)||void 0===a?void 0:a.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:s,name:i,type:"radio",required:r,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4"},l,{id:n,value:n})),e.jsx("div",{className:"form-icon opacity-0 peer-checked:opacity-100 absolute w-4 h-4 flex items-center justify-center top-0 left-0 pointer-events-none",children:e.jsx(g,{name:"mdi:circle",size:12})})]}),e.jsx("label",{className:"label pl-2 leading-none",htmlFor:n,children:t.label})]},n)}))})})}));Q.displayName="Radio";const J=t.forwardRef((function(t,s){var{id:i,name:r,required:n,disabled:o,className:l}=t,c=C(t,["id","name","required","disabled","className"]);return e.jsxs("label",{"data-testid":"Switch",className:a("inline-flex items-center cursor-pointer",l),children:[e.jsx("input",Object.assign({ref:s,id:i,name:r,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 ee;J.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"}(ee||(ee={}));const te=t.forwardRef((function(s,i){var{type:r=ee.TEXT,required:n=!1,className:o,onChange:l,placeholder:c,icon:d,disabled:u=!1,name:m,autoComplete:p}=s,x=C(s,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);t.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const h="date"===r?"dd/mm/yyyy".toUpperCase():c;return r===ee.TEXTAREA?e.jsx("div",{"data-testid":"TextInput",className:"relative",children:e.jsx("textarea",Object.assign({ref:i,id:m,autoComplete:m,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,rows:4,className:a("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(g,{name:d})}),e.jsx("input",Object.assign({ref:i,id:m,type:r,autoComplete:p,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,className:a("form-item text-input",{"pl-12":d},o)},x))]})}));te.displayName="TextInput";const ae={GLOBAL:{SCREENS:{ACCOUNT:{TITLE:"Account"},CATALOGUE_LIST:{TITLE:"Catalogue"},CHALLENGE:{TITLE:"Challenge"},CHALLENGES_LIST:{TITLE:"Challenges"},DASHBOARD:{TITLE:"Dashboard"},LIVE_SCHEDULE:{TITLE:"Live"},LOGIN:{TITLE:"Login"},REGISTER:{TITLE:"Register"},PROFILE:{TITLE:"Profile"},SUBSCRIPTION:{TITLE:"Subscription"},WORKOUT:{TITLE:"Workout"},FORGOT_PASSWORD:{TITLE:"Forgot Password"},RESET_PASSWORD:{TITLE:"Reset Password"},HOME:{TITLE:"Home"},CATALOGUE:{TITLE:"Catalogue"},CHALLENGES:{TITLE:"Challenges"},LIVE:{TITLE:"Live"},SCHEDULE:{TITLE:"Schedule"},SETTINGS:{TITLE:"Settings"},HELP:{TITLE:"Help"},LEGAL_INFO:{TITLE:"Legal & Information"},CONTENT:{TITLE:"Content"},FAVOURITES:{TITLE:"Favourites"}}},FORMS:{LOGIN_FORM:{TITLE:"Login",SUBMIT:"Login",FORGOT_PASSWORD:"Forgot password?",REGISTER:"Register",EMAIL:"Email",PASSWORD:"Password"},REGISTER_FORM:{TITLE:"Register",SUBMIT:"Register",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},FORGOT_PASSWORD_FORM:{TITLE:"Forgot Password",SUBMIT:"Send Reset Email",EMAIL:"Email"},RESET_PASSWORD_FORM:{TITLE:"Reset Password",SUBMIT:"Reset Password",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm Password"},PROFILE_FORM:{TITLE:"Profile",SUBMIT:"Save",FIRST_NAME:"First Name",LAST_NAME:"Last Name",AVATAR:"Avatar",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},ACCOUNT:{SUBMIT_LABEL:"Update",EMAIL_LABEL:"Email",PASSWORD_LABEL:"Password",FIRST_NAME_LABEL:"First name",LAST_NAME_LABEL:"Last name",DOB_LABEL:"Date of birth",TERMS_AND_CONDITIONS_LABEL:"Terms & Conditions",TERMS_AND_CONDITIONS_DESCRIPTION:"Read our terms & conditions from the link in the footer. ",CONTACT_PREFERENCES_LABEL:"Yes/No",CONTACT_PREFERENCES_DESCRIPTION:"Happy for us to email you about the latest features, information and offers?",SKIP_LABEL:"Skip step",SUCCESS_MESSAGE:"Account updated",SUBSCRIPTION_STATUS_LABEL:"Subscription status",SUBSCRIPTION_PLAN_LABEL:"Plan",SUBSCRIPTION_PRICE_LABEL:"Price (£)",SUBSCRIPTION_BILLING_DATE_LABEL:"Next Billing Date",SUBSCRIPTION_PAYMENT_TYPE_LABEL:"Card Type",SUBSCRIPTION_CARD_NUMBER_LABEL:"Card Number",SUBSCRIPTION_CARD_EXPIRY_LABEL:"Card Expiry Date",SUBSCRIPTION_LAST_UPDATED_LABEL:"Last Updated"}},VALIDATION:{UNKNOWN_SUBMISSION_ERROR:"Sorry, something bad happened! Please try again later.",REQUIRED_FIELD:"Required",TOO_SHORT:"Must be at least {count}",TOO_LONG:"Sorry, that's too long",INVALID_EMAIL:"Oops that email address doesn't look quite right",LOGIN_DENIED:"Your username and password do not match our records",LOGIN_ERROR:"Sorry something went wrong, please try again later",ACCOUNT_FIRST_NAME:"We need to know your name for ongoing communication",ACCOUNT_LAST_NAME:"We need to know your full name for your orders and if you need to contact support",CHARACTERS_ONLY:"You can only use letters",PASSWORD_DESCRIPTION:"Password must be between {count} and 30 characters and contain at least 1 uppercase, 1 lowercase, 1 number and a symbol (eg. @$%).",PASSWORD_CASE_MESSAGE:"Password must have one capital letter",PASSWORD_LOWERCASE_MESSAGE:"Password must have one lowercase letter",PASSWORD_LENGTH_MESSAGE:"Password must be at least 8 characters",PASSWORD_NUMERIC_MESSAGE:"Password must have at least one number",PASSWORD_SPECIAL_MESSAGE:"Password must have at least one special character (eg. @$%)",AUTH_API_ERROR:"An account with the given email already exists.: Conflict",AUTH_ACCOUNT_EXISTS_MESSAGE:"An account with the given email already exists. Please sign in"},UI:{SHOW:"Show",NO_IMAGE:"No image",UPLOAD:"Upload",SAVE:"Save",CANCEL:"Cancel",DELETE:"Delete",CONTINUE_WITH_SOCIAL:"Continue with Social Account",SINGLE_SIGNON:"Single Sign-On",LOGIN_WITH_GOOGLE:"Login with Google",LOGIN_WITH_APPLE:"Login with Apple",SIGNUP_WITH_GOOGLE:"Signup with Google",SIGNUP_WITH_APPLE:"Signup with Apple",BACK_TO_LOGIN:"Back to Login",FORGOT_PASSWORD:"Forgot Password?",SUBMIT:"Submit",LOGIN:"Login",LOGOUT:"Logout",REGISTER:"Register",SOCIAL:{GOOGLE:"Google",FACEBOOK:"Facebook",TWITTER:"Twitter",EMAIL:"Email"},READ_MORE:"Read more",READ_LESS:"Show less",CLOSE:"Close",BACK:"Back",SHARE:"Share",DOWNLOAD:"Download",FORMAT_HOUR:"{hour}hr",FORMAT_HOURS:"{hours}hrs",FORMAT_MINUTE:"{minute}min",FORMAT_MINUTES:"{minutes}mins",LOAD_MORE_LABEL:"Load more",NO_MORE_RESULTS:"That's all folks.",UNKNOWN_ERROR_TITLE:"Unknown error",UNKNOWN_ERROR_MESSAGE:"Sorry, something bad happened! Please try again.",CONTENT_SORT_TITLE:"Sort by",CONTENT_FILTERS_TITLE:"Filters",CONTENT_FILTERS_LABEL:"Filter",CLOSE_FILTERS_LABEL:"Done",CLEAR_ALL_FILTERS_LABEL:"Clear All",CLEAR_FILTERS_LABEL:"Clear",MORE_ITEMS_LABEL:"Next items",PREVIOUS_ITEMS_LABEL:"Previous items",CHOOSE_BTN_LABEL:"Choose",ADD_BTN_LABEL:"Add",SEND_BTN_LABEL:"Send",CANCEL_BTN_LABEL:"Cancel",DONE_BTN_LABEL:"Done",EDIT_BTN_LABEL:"Edit",CHANGE_BTN_LABEL:"Change",REMOVE_BTN_LABEL:"Remove",MESSAGE_PROMPT_BTN_LABEL:"Add one",SELECT_FILE_BTN_LABEL:"Select file",TOO_MANY_REQUESTS_MESSAGE:"Too many requests. Please try again later.",COPYRIGHT:"Copyright",ALL_RIGHTS_RESERVED:"All rights reserved",APP_CAMERA_PERMISSION:"Camera permission",APP_CAMERA_PERMISSION_DENIED:"Camera permission denied",APP_NEED_ACCESS_CAMERA:"This app needs access to your camera",ASK_ME_LATER:"Ask me later",PRIVACY_POLICY:"Privacy Policy",CREATE_ACCOUNT:"Create account",COMPLETE:"Complete",EDIT:"Edit",PREV:"Prev",NEXT:"Next",GET_STARTED:"Get started",START_SEARCH:"Start search",READ_MORE_LABEL:"Read more",READ_LESS_LABEL:"Show less",CLOSE_LABEL:"Close",CLOSE_HINT:"Close this entry",BACK_LABEL:"Back",SHARE_LABEL:"Share",VIEW_MORE_LABEL:"View more",VIEW_LESS_LABEL:"View less",GOT_IT:"Got it",MORE:"More",MORE_DETAILS:"More details",MORE_INFO:"More info",LEARN_MORE:"Learn more",LOW:"Low",MEDIUM:"Medium",HIGH:"High",VERY_HIGH:"Very high",VERY_LOW:"Very low",GOOD:"Good",BAD:"Bad",STRONG:"Strong",SAVE_CONTINUE:"Save and Continue",SAVE_FINISH:"Save and Finish",FINISH:"Finish",SKIP:"Skip",ADD:"Add",ADDED:"Added",ADD_ANOTHER:"Add another",CREATE_PROFILE:"Create profile",CONTINUE_NO_ACCOUNT:"Continue without account",REQUIRED_MISSING:"Required field missing",RESET:"Reset",APPLY_FILTER:"Apply filter",START:"Start",END:"End",HELP:"Help",WHAT_IS_THIS:"What is this?",CARD_VIEW:"Card view",LIST_VIEW:"List view",FILTER:"Filter",NO_RESULTS:"No results",CONTINUE:"Continue",CONTINUE_BROWSING:"Continue browsing",VIEW:"View",INFORMATION:"Information",DELETE_HINT:"Delete this entry",VISIT_WEBSITE:"Visit website",TAKE_AGAIN:"Take again",ADD_MORE:"Add more",REQUEST_SENT:"Request sent",CUSTOMISE:"Customize",SET_LOCATION:"Set location",COUNTY_NOT_FOUND:"County not found",NO_RESOURCES_FOUND:"No resources found",PATHWAY:"Pathway",CLICK_TO_NAVIGATE:"Click to navigate",INPUT_FIELD:"Input field",GO_BACK:"Go back",NAVIGATES_PREV:"Navigates to the previous screen",REMOVE:"Remove",NO_INTERNET_CONNECTION:"No internet connection",CHECK_CONNECTION:"Please check your internet connection and try again.",EXPLORE:"Explore",NO_ACCOUNT:"No account?",START_WORKOUT:"Start workout",START_MEDIA:"Start media",LAUNCH:"Launch",PUBLISHED:"Published",CREATED:"Created",UPDATED:"Updated",DURATION:"Duration",LEVEL:"Level",SECTION:"Section",DOWNLOADING:"Downloading",DOWNLOAD_COMPLETE:"Download complete",DOWNLOAD_FAILED:"Download failed",DOWNLOAD_CANCELLED:"Download cancelled",DOWNLOADING_MEDIA:"Downloading media",DOWNLOADING_MEDIA_FAILED:"Downloading media failed",DOWNLOADING_MEDIA_CANCELLED:"Downloading media cancelled",DOWNLOADING_MEDIA_COMPLETE:"Downloading media complete",DOWNLOADING_MEDIA_CANCEL:"Cancel download",DOWNLOADING_MEDIA_RETRY:"Retry download",DOWNLOADING_MEDIA_PAUSE:"Pause download",DOWNLOADING_MEDIA_RESUME:"Resume download",DOWNLOADING_MEDIA_CONTINUE:"Continue download",DOWNLOADING_MEDIA_START:"Start download",DOWNLOADING_MEDIA_CONFIRM:"Confirm download",DOWNLOAD_REMOVED:"Download removed",DOWNLOAD_REMOVE_ERROR:"Error removing download",CATEGORY:"Category",TYPE:"Type",WORKOUT_TYPE:"Workout type",MEDIA_TYPE:"Media type",WORKOUT:"Workout",MEDIA:"Media",WORKOUTS:"Workouts",WORKOUT_CATEGORY:"Workout category",MEDIA_CATEGORY:"Media category",ADDED_LIKE:"Added like",REMOVED_LIKE:"Removed like",ADDED_FAVORITE:"Added favorite",REMOVED_FAVORITE:"Removed favorite",ADDED_BOOKMARK:"Added bookmark",REMOVED_BOOKMARK:"Removed bookmark",ADDED_WATCHLIST:"Added watchlist",REMOVED_WATCHLIST:"Removed watchlist",ADDED_PLAYLIST:"Added playlist",REMOVED_PLAYLIST:"Removed playlist",ADDED_SUBSCRIPTION:"Added subscription",REMOVED_SUBSCRIPTION:"Removed subscription",ADDED_FOLLOW:"Added follow",REMOVED_FOLLOW:"Removed follow",ADDED_FRIEND:"Added friend",REMOVED_FRIEND:"Removed friend",ADDED_CONNECTION:"Added connection",REMOVED_CONNECTION:"Removed connection",MARKED_COMPLETE:"Marked complete",MARKED_INCOMPLETE:"Marked incomplete",MUSIC_ENABLED:"Music enabled",MUSIC_DISABLED:"Music disabled",SHARED:"Shared",NOT_ENTERED_IN_CHALLENGE:"You are note entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",SHOW_FILTERS:"Show filters",HIDE_FILTERS:"Hide filters",THIS_WEEK:"This week",TODAYS_ITEMS:"Today's items",START_TRIAL_LABEL:"Start Free Trial",START_WORKOUTS_LABEL:"Start Workouts Now",UPDATE_LABEL:"Update now",SESSION_EXPIRED:"Session expired. Please log in.",NO_VALID_SUB:"No valid subscription found. Please subscribe or contact us if you believe this is an error.",SUBSCRIPTION_ERROR:"There's a problem with your account. No valid subscription found.",SUCCESS:"Success",UPLOAD_IMAGE:"Upload Image",UPLOAD_VIDEO:"Upload Video",UPLOAD_AUDIO:"Upload Audio",UPLOAD_DOCUMENT:"Upload Document",UPLOAD_MEDIA:"Upload Media",UPLOAD_MEDIA_FILE:"Upload Media File",UPLOAD_SUCCESS:"Upload successful",UPLOAD_FAILED:"Upload failed",UPLOADING:"Uploading",SHARE_DESCRIPTION:"Share this with your friends",SHARE_TITLE:"Share",ALREADY_RATED:"You have already rated this",RATE:"Rate",VERSION:"Version",APP_VERSION:"App Version",WELCOME:"Welcome",LATEST_WORKOUTS:"Latest Workouts",RECENTLY_VIEWED:"Recently Viewed",RECENTLY_ADDED:"Recently Added",RECENTLY_COMPLETED:"Recently Completed",WORKOUTS_LIKED:"Workouts Liked",WORKOUTS_FAVORITED:"Workouts Favorited",WORKOUTS_BOOKMARKED:"Workouts Bookmarked",WORKOUTS_COMPLETED:"Workouts Completed",WORKOUTS_DONE:"Workouts Done",LIKED:"Liked",FAVORITED:"Favorited",BOOKMARKED:"Bookmarked",COMPLETED:"Completed",DONE:"Done",STATS:"Stats",STATISTICS:"Statistics",ACTIVITY:"Activity",RECENT_ACTIVITY:"Recent Activity",NEWS:"News",UPDATES:"Updates",LATEST_NEWS:"Latest News",WHATS_NEW:"What's New",WHATS_NEWS:"What's News",GOOD_MORNING:"Good Morning",GOOD_AFTERNOON:"Good Afternoon",GOOD_EVENING:"Good Evening",NO_CLASS:"No class",RELATED:"Related",RELATED_WORKOUTS:"Related Workouts",RELATED_CHALLENGES:"Related Challenges",RELATED_VIDEOS:"Related Videos",RELATED_MEDIA:"Related Media",CHALLENGES_ENTERED:"Challenges Entered",UPGRADE_TO_PREMIUM_PLUS:"Upgrade to Premium+",UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE:"Upgrade to Premium+ for unlimited access to the live streamed classes",UPGRADE_TO_PREMIUM:"Upgrade to Premium",PUSH_NOTIFICATIONS:"Push Notifications",PUSH_NOTIFICATIONS_ENABLED:"Push notifications enabled",PUSH_NOTIFICATIONS_DISABLED:"Push notifications disabled",EMAIL_NOTIFICATIONS:"Email Notifications",EMAIL_NOTIFICATIONS_ENABLED:"Email notifications enabled",EMAIL_NOTIFICATIONS_DISABLED:"Email notifications disabled",SMS_NOTIFICATIONS:"SMS Notifications",SMS_NOTIFICATIONS_ENABLED:"SMS notifications enabled",SMS_NOTIFICATIONS_DISABLED:"SMS notifications disabled",NOTIFICATIONS:"Notifications",PUSH_NOTIFICATIONS_DESCRIPTION:"Receive push notifications for new content and updates",EMAIL_NOTIFICATIONS_DESCRIPTION:"Receive email notifications for new content and updates",SMS_NOTIFICATIONS_DESCRIPTION:"Receive SMS notifications for new content and updates",OPEN_SETTINGS:"Open settings",NOTIFICATION_SETTINGS:"Notification settings",NOTIFICATION_SETTINGS_DESCRIPTION:"Manage your notification settings",CAMERA_ACCESS:"Camera access",CAMERA_PERMISSION_DENIED:"Camera permission denied",CAMERA_PERMISSION_REQUIRED:"Camera permission required",CAMERA_PERMISSION_DESCRIPTION:"Allow access to your camera to take a profile picture and personalize your account",DISABLE_PERMISSION_IN_SETTINGS:"You can disable in main system settings",DARK_MODE:"Dark mode",LIGHT_MODE:"Light mode",SYSTEM_MODE:"System mode",DARK_MODE_ENABLED:"Dark mode enabled",LIGHT_MODE_ENABLED:"Light mode enabled",SYSTEM_MODE_ENABLED:"System mode enabled",DARK_MODE_DESCRIPTION:"Enable dark mode for better viewing experience",LIGHT_MODE_DESCRIPTION:"Enable light mode for better viewing experience",SYSTEM_MODE_DESCRIPTION:"Enable system mode for better viewing experience",REQUEST_INFO:"Request info",REQUEST_INFORMATION:"Request information",GET_INFO:"Get info",GET_IN_TOUCH:"Get in touch",CONTACT_US:"Contact us",ERROR:"Error",LAST_UPDATED:"Last updated",NO_UPDATES:"No updates",RATED:"Rated",RATE_SUCCESS:"Rating successful",RATE_FAILED:"Rating failed",RATE_CANCELLED:"Rating cancelled",QUESTION:"Question",QUESTION_ABOUT_SUBSCRIPTION:"Question about subscription",LOGOUT_SUCCESS:"Logout successful",NO_ACTIVE_SUBSCRIPTION:"No active subscription",SUBSCRIPTION_EXPIRED:"Subscription expired",NO_SUBSCRIPTION_DETAILS:"You currently do not have an active subscription. If you believe this is an error, please contact our support team for assistance."},ERRORS:{GENERIC_ERROR:"An error occurred",COULD_NOT_FETCH_DATA:"Could not fetch data",COULD_NOT_UPDATE_DATA:"Could not update data",COULD_NOT_DELETE_DATA:"Could not delete data",COULD_NOT_UPDATE_LIKES:"Could not update likes",COULD_NOT_UPDATE_FAVORITES:"Could not update favorites",COULD_NOT_UPDATE_BOOKMARKS:"Could not update bookmarks",COULD_NOT_UPDATE_WATCHLIST:"Could not update watchlist",COULD_NOT_UPDATE_PLAYLIST:"Could not update playlist",COULD_NOT_UPDATE_SUBSCRIPTION:"Could not update subscription",COULD_NOT_UPDATE_FOLLOW:"Could not update follow",COULD_NOT_UPDATE_FRIEND:"Could not update friend",COULD_NOT_UPDATE_CONNECTION:"Could not update connection",ISSUE_CHECKING_PERMISSIONS:"Issue checking permissions",ISSUE_OPENING_SETTINGS:"Issue opening settings"}},se=({testID:a,name:s="avatar",isEditable:i=!0,initValue:r})=>{const[n,o]=t.useState(r);return t.useEffect((()=>{r&&o(r)}),[r]),e.jsxs("div",{"data-testid":a||'"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(V,{src:n,alt:s,width:200,height:200}),i&&e.jsx("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e.jsx(O,{size:exports.BTN_SIZES.SMALL,rounded:!0,onClick:()=>{o(void 0)},children:ae.UI.REMOVE_BTN_LABEL})})]}),!n&&e.jsx(e.Fragment,{children:i&&e.jsx("div",{className:"absolute w-full h-full flex items-center justify-center",children:e.jsx(W,{id:s,className:"button cursor-pointer mb-0",children:e.jsx(P,{className:"mb-0",children:ae.UI.UPLOAD})})})})]}),e.jsx("input",{type:"file",id:s,name:s,className:"hidden",onChange:e=>{var t;const a=null===(t=e.target.files)||void 0===t?void 0:t[0];if(a){const e=URL.createObjectURL(a);o(e)}}})]})};se.displayName="Avatar";const ie=({testID:t,buttonData:s})=>e.jsx("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:null==s?void 0:s.map(((t,i)=>{const r=i>0&&i<s.length-1,n=0===i,o=i===s.length-1,l=a({"rounded-none":r},{"rounded-r":n,"rounded-l":o});return e.jsx("div",{children:e.jsx(O,Object.assign({},t,{className:l,children:t.children}))},t.id)}))});ie.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",ne="transition duration-500 ease-in-out ",oe={replace(t){if("a"===t.name){const a=n.attributesToProps(t.attribs);return e.jsx(R,Object.assign({},a,{children:n.domToReact(t.children,oe)}))}if(t.attribs&&"p"===t.name){const a=n.attributesToProps(t.attribs);return e.jsx(P,Object.assign({},a,{children:n.domToReact(t.children,oe)}))}return t}},le=({testID:t,data:s,align:i,className:r})=>e.jsx("span",{"data-testid":t||'"HtmlContent"',className:a("relative",{"text-right":"right"===i},{"text-center":"center"===i},{"text-left":"left"===i},r),children:n(s,oe)});function ce(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}le.displayName="HtmlContent";const de=({id:t,title:s,description:i,image:n,className:o,metaData:l,actions:c,padded:d,scaleOnHover:u,onClick:m=(()=>{}),htmlDetails:p})=>e.jsxs("div",{id:t,"data-testid":"CardBasic",className:r.twMerge(a(ne,re,{"p-4":d},{"hover:scale-100":!u},o)),onClick:m,children:[n&&e.jsx("div",{className:r.twMerge(a("relative w-full overflow-hidden aspect-[16/9]",{rounded:d},n.aspectRatio)),children:e.jsx(V,{fill:!0,src:null==n?void 0:n.src,sizes:"100vh",alt:null==n?void 0:n.alt,className:a("absolute inset-0 object-cover group-hover:scale-110 dura",ne)})}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:a({"p-3":!d},{"pt-3":d}),children:[e.jsx("div",{children:s&&e.jsx(Y,{tag:exports.HEADING_TAGS.H4,singleLine:!0,children:s})}),!p&&i&&e.jsx("div",{children:e.jsx(P,{className:"mb-0",children:ce(i)})}),p&&i&&e.jsx("div",{children:e.jsx(le,{className:"mb-0",data:ce(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l&&e.jsx("div",{className:"flex shrink-0 mt-2",children:l.map(((t,a)=>0===a?e.jsxs(P,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):a===l.length-1?e.jsxs(P,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(P,{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(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==c?void 0:c.like)||void 0===a?void 0:a.onClick)&&"function"==typeof c.like.onClick&&c.like.onClick({id:t})}}),c.share&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==c?void 0:c.share)||void 0===a?void 0:a.onClick)&&"function"==typeof c.share.onClick&&c.share.onClick({id:t})}}),c.save&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==c?void 0:c.save)||void 0===a?void 0:a.onClick)&&"function"==typeof c.save.onClick&&c.save.onClick({id:t})}}),c.comment&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==c?void 0:c.comment)||void 0===a?void 0:a.onClick)&&"function"==typeof c.comment.onClick&&c.comment.onClick({id:t})}}),c.bookmark&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==c?void 0:c.bookmark)||void 0===a?void 0:a.onClick)&&"function"==typeof c.bookmark.onClick&&c.bookmark.onClick({id:t})}}),c.report&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==c?void 0:c.report)||void 0===a?void 0:a.onClick)&&"function"==typeof c.report.onClick&&c.report.onClick({id:t})}}),c.follow&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==c?void 0:c.follow)||void 0===a?void 0:a.onClick)&&"function"==typeof c.follow.onClick&&c.follow.onClick({id:t})}}),c.download&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==c?void 0:c.download)||void 0===a?void 0:a.onClick)&&"function"==typeof c.download.onClick&&c.download.onClick({id:t})}}),c.edit&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==c?void 0:c.edit)||void 0===a?void 0:a.onClick)&&"function"==typeof c.edit.onClick&&c.edit.onClick({id:t})}}),c.delete&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:c.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==c?void 0:c.delete)||void 0===a?void 0:a.onClick)&&"function"==typeof c.delete.onClick&&c.delete.onClick({id:t})}})]})]})]})})]});de.displayName="CardBasic";const ue=({id:t,title:s,description:i,image:r,className:n,metaData:o,actions:l,onClick:c=(()=>{}),playCallback:d,htmlDetails:u})=>e.jsxs("div",{id:t,"data-testid":"CardBasic",className:a(ne,re,n),onClick:c,children:[r&&e.jsxs("div",{className:a("relative w-full overflow-hidden aspect-[16/9]",r.aspectRatio),children:[e.jsx(V,{fill:!0,src:null==r?void 0:r.src,sizes:"100vh",alt:null==r?void 0:r.alt,className:a("absolute inset-0 object-cover group-hover:scale-110",ne)}),d&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx(O,{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:s&&e.jsx(Y,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:s})}),!u&&i&&e.jsx("div",{children:e.jsx(P,{className:"mb-0",children:ce(i)})}),u&&i&&e.jsx("div",{children:e.jsx(le,{className:"mb-0",data:ce(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o&&e.jsx("div",{className:"flex shrink-0",children:o.map(((t,a)=>0===a?e.jsxs(P,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):a===o.length-1?e.jsxs(P,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(P,{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(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==l?void 0:l.like)||void 0===a?void 0:a.onClick)&&"function"==typeof l.like.onClick&&l.like.onClick({id:t})}}),l.share&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==l?void 0:l.share)||void 0===a?void 0:a.onClick)&&"function"==typeof l.share.onClick&&l.share.onClick({id:t})}}),l.save&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==l?void 0:l.save)||void 0===a?void 0:a.onClick)&&"function"==typeof l.save.onClick&&l.save.onClick({id:t})}}),l.comment&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==l?void 0:l.comment)||void 0===a?void 0:a.onClick)&&"function"==typeof l.comment.onClick&&l.comment.onClick({id:t})}}),l.bookmark&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==l?void 0:l.bookmark)||void 0===a?void 0:a.onClick)&&"function"==typeof l.bookmark.onClick&&l.bookmark.onClick({id:t})}}),l.report&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==l?void 0:l.report)||void 0===a?void 0:a.onClick)&&"function"==typeof l.report.onClick&&l.report.onClick({id:t})}}),l.follow&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==l?void 0:l.follow)||void 0===a?void 0:a.onClick)&&"function"==typeof l.follow.onClick&&l.follow.onClick({id:t})}}),l.download&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==l?void 0:l.download)||void 0===a?void 0:a.onClick)&&"function"==typeof l.download.onClick&&l.download.onClick({id:t})}}),l.edit&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==l?void 0:l.edit)||void 0===a?void 0:a.onClick)&&"function"==typeof l.edit.onClick&&l.edit.onClick({id:t})}}),l.delete&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:l.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var a;e.stopPropagation(),(null===(a=null==l?void 0:l.delete)||void 0===a?void 0:a.onClick)&&"function"==typeof l.delete.onClick&&l.delete.onClick({id:t})}})]})]})]})})]});ue.displayName="CardMedia";const me=({video:t,isMuted:s=!0,id:i,title:r,description:n,image:l,className:c,metaData:d,actions:u,onClick:m=(()=>{}),htmlDetails:p})=>e.jsxs("div",{id:i,"data-testid":"CardVideo",className:a(ne,re,c),onClick:m,children:[l&&t&&e.jsx("div",{className:a("relative w-full h-full aspect-[16/9]",l.aspectRatio),children:e.jsx(o,{videoId:`video--${i}`,playbackStartDelay:1e3,videoSrc:e.jsx("source",{src:t,type:"video/mp4"}),videoClassName:a("hls-hover-video w-full aspect-[16/9]",l.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:s,className:a("w-full overflow-hidden aspect-[16/9]",l.aspectRatio),pausedOverlay:e.jsx("div",{className:a("relative w-full overflow-hidden aspect-[16/9]",l.aspectRatio),children:e.jsx(V,{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:a("w-full flex items-center justify-center aspect-[16/9]",l.aspectRatio),children:e.jsx("div",{className:"",children:e.jsx(I,{})})})},`${i}--card`)}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:r&&e.jsx(Y,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:r})}),!p&&n&&e.jsx("div",{children:e.jsx(P,{className:"mb-0",children:ce(n)})}),p&&n&&e.jsx("div",{children:e.jsx(le,{className:"mb-0",data:ce(n)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[d&&e.jsx("div",{className:"flex shrink-0",children:d.map(((t,a)=>0===a?e.jsxs(P,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):a===d.length-1?e.jsxs(P,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(P,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),u&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[u.like&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.like)||void 0===t?void 0:t.onClick)&&"function"==typeof u.like.onClick&&u.like.onClick({id:i})}}),u.share&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.share)||void 0===t?void 0:t.onClick)&&"function"==typeof u.share.onClick&&u.share.onClick({id:i})}}),u.save&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.save)||void 0===t?void 0:t.onClick)&&"function"==typeof u.save.onClick&&u.save.onClick({id:i})}}),u.comment&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof u.comment.onClick&&u.comment.onClick({id:i})}}),u.bookmark&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof u.bookmark.onClick&&u.bookmark.onClick({id:i})}}),u.report&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.report)||void 0===t?void 0:t.onClick)&&"function"==typeof u.report.onClick&&u.report.onClick({id:i})}}),u.follow&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof u.follow.onClick&&u.follow.onClick({id:i})}}),u.download&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.download)||void 0===t?void 0:t.onClick)&&"function"==typeof u.download.onClick&&u.download.onClick({id:i})}}),u.edit&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof u.edit.onClick&&u.edit.onClick({id:i})}}),u.delete&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof u.delete.onClick&&u.delete.onClick({id:i})}})]})]})]})})]});me.displayName="CardVideo";const pe=({id:t,title:s,description:i,icon:n,className:o,onClick:l,moreTitle:c,align:d})=>{const u=l?re:"";return e.jsxs("div",{id:t,"data-testid":"CardIcon",className:r.twMerge(a(ne,u,"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:a("relative"),children:e.jsx(g,{name:n,size:48})}),e.jsxs("div",{className:a({"text-left":"left"===d},{"text-center":"center"===d},{"text-right":"right"===d}),children:[e.jsx("div",{children:s&&e.jsx(Y,{tag:exports.HEADING_TAGS.H5,singleLine:!0,children:s})}),e.jsx("div",{children:i&&e.jsx(P,{align:d,children:i})})]}),l&&e.jsx("div",{className:"flex items-center justify-start gap-2",children:e.jsx(O,{icon:"mdi:arrow-right",variant:exports.BTN_VARIANTS.LINK,onClick:l,children:c})})]})};pe.displayName="CardIcon";const xe=({testID:t,id:s,title:i,description:n,image:o,onClick:l,className:c,padded:d,icon:u,raised:m=!0,htmlDetails:p})=>e.jsxs("div",{id:s,"data-testid":t||"CardHorz",className:a("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":d},{"shadow hover:shadow-lg":m},c),onClick:l,children:[o&&e.jsx("div",{className:"w-1/3 aspect-[1/1]",children:e.jsx("div",{className:r.twMerge(a("relative w-full overflow-hidden h-full",o.aspectRatio)),children:e.jsx(V,{fill:!0,src:null==o?void 0:o.src,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})})}),u&&!o&&e.jsx("div",{className:"py-2 pl-2",children:e.jsx(g,{name:u,size:30})}),e.jsx("div",{className:"flex flex-1 overflow-hidden h-min",children:e.jsxs("div",{className:"flex-col gap-2 py-2 pr-2 overflow-hidden",children:[i&&e.jsx("div",{className:"",children:e.jsx(Y,{tag:exports.HEADING_TAGS.H4,children:i})}),!p&&n&&e.jsx("div",{children:e.jsx(P,{className:"mb-0",children:ce(n)})}),p&&n&&e.jsx("div",{children:e.jsx(le,{className:"mb-0",data:ce(n)})})]})})]});xe.displayName="CardHorz";const he=({testID:i,className:n,data:o,padded:l,shadow:c=!0})=>{const d=s.motionValue(0);return t.useEffect((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||s.animate(d,200,{duration:.5})}),[d]),o?e.jsxs("div",{"data-testid":i||"CardData",className:r.twMerge(a("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(P,{className:"mb-0",children:null==o?void 0:o.label})})]}):e.jsx(e.Fragment,{})};he.displayName="CardData";const fe=t=>{var{variant:a,className:s,data:i}=t,r=C(t,["variant","className","data"]);switch(a){case"basic":default:return e.jsx(de,Object.assign({className:s},i,r));case"media":return e.jsx(ue,Object.assign({className:s},i,r));case"video":return e.jsx(me,Object.assign({className:s},i,r));case"icon":return e.jsx(pe,Object.assign({className:s},i,r));case"horz":return e.jsx(xe,Object.assign({className:s},i,r));case"data":return e.jsx(he,Object.assign({className:s},i,r))}};fe.displayName="Card";const Ne=({text:t,tag:s=exports.HEADING_TAGS.H1})=>{const i=t.split(" ");return e.jsx("div",{"data-testid":"DisplayHeading",className:"relative",children:e.jsx(Y,{tag:s,className:"",children:i.map(((t,s)=>{const r=s===i.length-1,n=`${t}-${s}`;return e.jsxs("span",{children:[e.jsx("span",{className:a({"display-heading relative font-heading":!r},{"inline-block relative font-heading":r}),children:e.jsxs(e.Fragment,{children:[r&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"display-heading--emphasis"}),e.jsx("span",{className:"display-heading--lastword",children:t})]}),!r&&e.jsx("span",{children:t})]})}),!r&&" "]},n)}))})})};Ne.displayName="DisplayHeading";const Ee=({children:s,className:i,submit:r,onSubmit:n=(()=>{}),onChange:o,hideSubmit:c,ariaSubmitLabel:d,submitID:u,submitVariant:m=exports.BTN_VARIANTS.PRIMARY,initialValues:p={},isBoxed:x=!1,submitType:h=exports.BTN_TYPES.SUBMIT,disabledSubmitWithReturn:f=!1,isDisabled:N=!1})=>{const E=l.useForm({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"});t.useEffect((()=>{if(o&&"function"==typeof o){const e=E.watch(((e,t)=>{o(e,t)}));return()=>e.unsubscribe()}}),[]);const v=a({"sr-only":c}),{formState:{isSubmitting:g,isDirty:A,isValid:S}}=E;return e.jsx(l.FormProvider,Object.assign({},E,{children:e.jsx("div",{"data-testid":"Form",className:a("w-full max-w-s @containers @form"),children:e.jsxs("form",{onSubmit:E.handleSubmit(n),onKeyDown:e=>{f&&"Enter"===e.key&&e.preventDefault()},className:a("w-2xs relative",{"form px-8 pt-6 pb-8 ":x},{"opacity-50":g},i),children:[s,r&&e.jsx("div",{className:"flex items-center justify-end",children:e.jsx(O,{id:u||r,className:v,ariaLabel:d||r||"Submit",type:h,outline:!0,isLoading:g,disabled:g||!S||!A||N,variant:m,children:r})})]})})}))};var ve;Ee.displayName="Form",exports.FIELD_TYPES=void 0,(ve=exports.FIELD_TYPES||(exports.FIELD_TYPES={})).TEXT="text",ve.TEXTAREA="textarea",ve.SELECT="select",ve.CHECKBOX="checkbox",ve.RADIO="radio",ve.SWITCH="switch",ve.DATE="date",ve.TIME="time",ve.DATETIME="datetime",ve.FILE="file",ve.PASSWORD="password",ve.EMAIL="email",ve.NUMBER="number",ve.TEL="tel",ve.URL="url",ve.SEARCH="search",ve.HIDDEN="hidden";const ge=t.forwardRef((function(t,s){var{id:i,name:r,options:n,required:o,className:l,disabled:c}=t,d=C(t,["id","name","options","required","className","disabled"]);if(!n)throw new Error("FormSelect requires options prop");return e.jsx("div",{id:i,className:a("pb-2 min-w-20",l),children:e.jsxs("div",{className:"relative",children:[e.jsx("select",Object.assign({ref:s,name:r,disabled:c,required:o,className:"form-item text-input pr-10"},d,{children:n.map(((t,a)=>{var s,i;return e.jsx("option",{value:null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.toString(),disabled:t.disabled,className:"bg-bodyBackground dark:bg-darkBodyBackground",children:t.label},`${null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.toString()}--${a}`)}))})),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(g,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));ge.displayName="FormSelect";const Ae=({name:s,type:i,label:r,required:n,className:o,icon:c,options:d,disabled:u,description:m,showPasswordLabel:p,hidePasswordLabel:x,validations:h={},fileUploadCallback:f=(()=>{}),autoComplete:N})=>{var E,v;const[A,S]=t.useState(!1),{control:b,formState:T}=l.useFormContext(),{errors:I}=T,O=r&&i!==exports.FIELD_TYPES.CHECKBOX,C=n||Boolean(h.required)?`${r} *`:r;return e.jsx("div",{className:"relative",children:e.jsxs("div",{"data-testid":"FormField",className:"mb-4",children:[O&&e.jsx("div",{className:"flex items-baseline justify-between",children:e.jsx(W,{id:s,children:C})}),e.jsx("div",{className:"mb-1",children:e.jsx(l.Controller,{defaultValue:"",name:s,control:b,rules:h,render:({field:t})=>((t,i)=>{switch(t){case exports.FIELD_TYPES.HIDDEN:return e.jsx("input",Object.assign({type:ee.HIDDEN,disabled:u},i));case exports.FIELD_TYPES.TEXT:return e.jsx(te,Object.assign({type:ee.TEXT,required:n||Boolean(h.required),icon:c,className:o,disabled:u,autoComplete:N},i));case exports.FIELD_TYPES.PASSWORD:{const t=A?ee.TEXT:ee.PASSWORD,s="appearance-none border-none bg-transparent flex items-center";return e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute right-0 top-0 flex items-center justify-center h-full z-10 pr-2",onClick:()=>S((e=>!e)),role:"button",tabIndex:0,children:A?e.jsx("button",{type:"button","aria-label":x,className:a(s,"form-icon"),children:e.jsx(g,{name:"mdi:eye-off",size:24})}):e.jsx("button",{type:"button","aria-label":p,className:a(s,"form-icon"),children:e.jsx(g,{name:"mdi:eye",size:24})})}),e.jsx(te,Object.assign({type:t,required:n||Boolean(h.required),icon:c,className:o,disabled:u,autoComplete:N},i))]})}case exports.FIELD_TYPES.TEXTAREA:return e.jsx(te,Object.assign({type:ee.TEXTAREA,required:n||Boolean(h.required),icon:c,className:o,disabled:u},i));case exports.FIELD_TYPES.EMAIL:return e.jsx(te,Object.assign({type:ee.EMAIL,required:n||Boolean(h.required),icon:c,className:o,disabled:u,autoComplete:N},i));case exports.FIELD_TYPES.DATE:return e.jsx(te,Object.assign({type:ee.DATE,required:n||Boolean(h.required),icon:c,className:o,disabled:u},i));case exports.FIELD_TYPES.DATETIME:return e.jsx(te,Object.assign({type:ee.DATETIME,required:n||Boolean(h.required),icon:c,className:o,disabled:u},i));case exports.FIELD_TYPES.NUMBER:return e.jsx(te,Object.assign({type:ee.NUMBER,required:n||Boolean(h.required),icon:c,className:o,disabled:u},i));case exports.FIELD_TYPES.CHECKBOX:return e.jsx(j,Object.assign({required:n||Boolean(h.required),id:s,className:o,label:r,disabled:u},i));case exports.FIELD_TYPES.RADIO:return e.jsx(Q,Object.assign({required:n||Boolean(h.required),id:s,className:o,options:d,disabled:u},i));case exports.FIELD_TYPES.SWITCH:return e.jsx(J,Object.assign({id:s,required:n||Boolean(h.required),className:o,disabled:u},i));case exports.FIELD_TYPES.SELECT:return e.jsx(ge,Object.assign({required:n||Boolean(h.required),id:s,className:o,disabled:u,label:r,options:d},i));case exports.FIELD_TYPES.FILE:return e.jsx(F,Object.assign({required:n||Boolean(h.required),id:s,className:o,disabled:u,onChangeCallback:e=>{f(e)}},i));default:return e.jsx(te,Object.assign({type:ee.TEXT,required:n||Boolean(h.required),disabled:u,icon:c,className:o},i))}})(i,t)})}),m&&e.jsx("div",{className:"formfield-description",children:e.jsx(P,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:m})}),I[s]&&e.jsx("div",{className:"formfield-error text-error italic",children:e.jsx(P,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:null===(v=null===(E=null==I?void 0:I[s])||void 0===E?void 0:E.message)||void 0===v?void 0:v.toString()})})]})})};Ae.displayName="FormField";const Se=({testID:t,url:a,title:s="Share",enabled:i={facebook:!0,twitter:!0}})=>e.jsxs("div",{"data-testid":t||"Share",className:"flex gap-2 items-center ",children:[e.jsx("div",{children:e.jsxs(P,{as:exports.COPY_TAG.P,className:"mb-0",children:[ae.UI.SHARE,":"]})}),(null==i?void 0:i.facebook)&&e.jsx(c.FacebookShareButton,{url:a,title:s,className:"",children:e.jsx(g,{name:"mdi:facebook"})}),(null==i?void 0:i.twitter)&&e.jsx(c.TwitterShareButton,{url:a,title:s,className:"",children:e.jsx(g,{name:"mdi:twitter"})}),(null==i?void 0:i.whatsapp)&&e.jsx(c.WhatsappShareButton,{url:a,title:s,className:"",children:e.jsx(g,{name:"mdi:whatsapp"})}),(null==i?void 0:i.email)&&e.jsx(c.EmailShareButton,{url:a,title:s,className:"",children:e.jsx(g,{name:"mdi:email"})}),(null==i?void 0:i.linkedin)&&e.jsx(c.LinkedinShareButton,{url:a,title:s,className:"",children:e.jsx(g,{name:"mdi:linkedin"})})]});Se.displayName="Share";const be=({data:s})=>{const[i,r]=t.useState(0);return s?e.jsx("div",{"data-testid":"Tabs",children:e.jsxs(d.Tabs,{onSelect:e=>r(e),children:[e.jsx(d.TabList,{className:"mb-8 flex p-0",children:s.map(((t,s)=>e.jsx(d.Tab,{className:a("list-none rel ative cursor-pointer inline-block flex-1 items-center justify-center p-4",{"border-transparent border-solid border-0 border-b-2":i!==s,"border-primary border-solid border-0 border-b-2":i===s}),children:e.jsx(P,{className:"m-0 text-center",children:t.title})},s)))}),s.map(((t,a)=>e.jsx(d.TabPanel,{className:"",children:t.content},a)))]})}):e.jsx(e.Fragment,{})};be.displayName="Tabs";const Te=({testID:t,facebook:a,twitter:s,instagram:i,linkedin:r})=>e.jsxs("div",{"data-testid":t||'"VisitUs"',className:"flex gap-2",children:[a&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(a.url)}),s&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(s.url)}),i&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(i.url)}),r&&e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(r.url)})]});Te.displayName="VisitUs";const Ie=({testID:t,title:s,links:i,inline:n=!0,separators:o=!1,className:l})=>e.jsxs("div",{"data-testid":t||'"Menu"',className:r.twMerge(a("flex flex-col gap-2",l)),children:[s&&e.jsx("div",{children:e.jsx(Y,{tag:exports.HEADING_TAGS.H3,children:s})}),e.jsx("div",{className:a("flex gap-0 items-center md:items-start",{"flex-row ":n},{"flex-col ":!n}),children:null==i?void 0:i.map(((t,a)=>{const s=`${t.id}--${a}`;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(g,{name:t.icon}),t.title&&e.jsx("div",{children:t.title})]})}),o&&a+1<i.length&&e.jsx("div",{className:"h-full flex self-center px-2",children:e.jsx(g,{name:"mdi:dot",className:"opacity-50"})})]},s)}))})]});var Oe;Ie.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(Oe||(Oe={}));const Ce=({children:t,className:s,spacing:i,padded:n,isNarrow:o,isCentered:l,isFlush:c,direction:d=Oe.COLUMN})=>{const u=r.twMerge(a("container relative mx-auto my-0",{"px-4":n},{"py-40":"feature"===i},{"py-24":"component"===i},{"py-16":"module"===i},{"py-10":"element"===i},{"py-4":"atom"===i},{"py-0":"none"===i},{"max-w-3xl":o},{"flex items-center justify-center flex-col":l},{"px-0 max-w-full mx-0":c},{"flex flex-col":d===Oe.COLUMN},{"flex-row":d===Oe.ROW})),m=a("mx-4 md:mx-0 w-full",s);return e.jsx("div",{"data-testid":"Container",className:u,children:e.jsx("div",{className:m,children:t})})};Ce.displayName="Container";const ye=({testID:t,children:s,withBg:i=!0,inversed:r=!1})=>e.jsxs("div",{"data-testid":t||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[i&&e.jsx("div",{className:a("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!r,"-top-24 left-0":r})}),e.jsx(Ce,{children:s})]});ye.displayName="Hero";const je=({testID:i,bgAsset:r,focalAsset1:n,focalAsset2:o,focalAsset3:l})=>{const c=t.useRef(null);s.useInView(c);const d={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":i||"AnimationSet1",className:a("relative w-full h-full"),children:[r&&e.jsx(s.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(V,{src:r.src,alt:r.alt,fill:!0})}),(n||o)&&e.jsxs(s.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(s.motion.div,{className:"absolute w-1/2 aspect-[0.35/1] right-16 top-0",initial:d,animate:u,children:e.jsx(V,{src:n.src,alt:n.alt,fill:!0})}),o&&e.jsx(s.motion.div,{className:"absolute w-1/2 aspect-[0.5/1] left-0 top-20",initial:d,animate:Object.assign(Object.assign({},u),{transition:Object.assign(Object.assign({},u.transition),{delay:.3})}),children:e.jsx(V,{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(s.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(V,{src:l.src,fill:!0,alt:l.alt})})})]})};je.displayName="AnimationSet1";const 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=Google&redirect_uri=${process.env.AWS_COGNITO_REDIRECT_URI}`,_e=`${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}`,Le={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."}},De=({handleSubmit:t,initialValues:a,showSocialButtons:s=!1})=>e.jsxs("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[e.jsxs(Ee,{onSubmit:t,submit:ae.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:a,children:[e.jsx(Ae,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ae.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:Le,autoComplete:"email"}),e.jsx(Ae,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ae.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),s&&e.jsxs(e.Fragment,{children:[e.jsx(H,{}),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(O,{onClick:()=>window.location.assign(Re),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ae.UI.LOGIN_WITH_GOOGLE}),e.jsx(O,{onClick:()=>window.location.assign(_e),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ae.UI.LOGIN_WITH_APPLE})]})})]})]});De.displayName="LoginForm";const ke=({handleSubmit:t,showSocialButtons:a=!1})=>e.jsxs("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[e.jsxs(Ee,{onSubmit:t,submit:ae.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e.jsx(Ae,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ae.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:Le,autoComplete:"email"}),e.jsx(Ae,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ae.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:ae.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:we,autoComplete:"new-password"})]}),a&&e.jsxs(e.Fragment,{children:[e.jsx(H,{}),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(O,{onClick:()=>window.location.assign(Re),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ae.UI.SIGNUP_WITH_GOOGLE}),e.jsx(O,{onClick:()=>window.location.assign(_e),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ae.UI.SIGNUP_WITH_APPLE})]})})]})]});ke.displayName="RegisterForm";const Pe=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e.jsx(Ee,{onSubmit:t,submit:ae.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(Ae,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ae.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:Le})})});Pe.displayName="ForgotPasswordForm";const Me=({loginSubmit:a,registerSubmit:s,passwordForgotSubmit:i,handleTokenCallback:r,showSocialLogin:n=!1})=>{const[o,l]=t.useState(!1);return t.useEffect((()=>{!function(){y(this,0,void 0,(function*(){if(!process.env.AWS_COGNITO_USERPOOL_DOMAIN||!process.env.AWS_COGNITO_CLIENT_ID||!process.env.AWS_COGNITO_REDIRECT_URI)return;const e=new URLSearchParams(window.location.search).get("code");if(e){const t=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/token`,a=new URLSearchParams;a.append("grant_type","authorization_code"),a.append("client_id",process.env.AWS_COGNITO_CLIENT_ID),a.append("code",e),a.append("redirect_uri",process.env.AWS_COGNITO_REDIRECT_URI);const s=yield fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a}),i=yield s.json();i&&r&&"function"==typeof r&&r(i)}}))}()}),[]),e.jsxs("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-128",children:[!o&&e.jsx(be,{data:[{title:"Login",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(De,{handleSubmit:a,showSocialButtons:n}),e.jsx("div",{className:"mt-4",children:e.jsx(O,{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(ke,{handleSubmit:s,showSocialButtons:n})})}]}),o&&e.jsx(be,{data:[{title:"Forgot Password",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(Pe,{handleSubmit:i}),e.jsx("div",{className:"mt-4",children:e.jsx(O,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};function Fe({className:t,onClick:a}){return e.jsx(O,{className:"absolute -right-2 top-1/2 -translate-y-1/2 z-10",onClick:a,icon:"mdi:navigate-next",rounded:!0})}function Be({className:t,onClick:a}){return e.jsx(O,{className:"absolute -left-2 top-1/2 -translate-y-1/2 z-10",onClick:a,icon:"mdi:navigate-before",rounded:!0})}Me.displayName="Authenticator";const Ue=({testID:t,data:a,onPressCallback:s=(()=>{}),count:i=5,isCentered:r=!1,carouselOptions:n={loop:!1,scrollAnimationDuration:500,showDots:!1,showArrows:!0}})=>{const o=a.length<=i;return e.jsx("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e.jsx(u,{arrows:!o&&n.showArrows,nextArrow:e.jsx(Fe,{}),prevArrow:e.jsx(Be,{}),centerMode:r,responsive:[{breakpoint:1024,settings:{slidesToShow:i}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}],slidesToScroll:1,slidesToShow:i,dots:!o&&n.showDots,infinite:!o&&n.loop,speed:n.scrollAnimationDuration,children:a.map(((t,a)=>e.jsx("div",{className:"px-2",children:e.jsx(fe,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>{s(t.data.id)}})},a)},a)))})})};var Ge;Ue.displayName="Carousel",function(e){e.NONE="py-0",e.ATOM="py-8",e.DEFAULT="py-16",e.ELEMENT="py-24",e.COMPONENT="py-32",e.MODULE="py-40",e.FEATURE="py-64"}(Ge||(Ge={}));const Ye=({testID:i,cardData:r,title:n,description:o,withSeparators:l,spacing:c=Ge.MODULE})=>{const d=t.useRef(null),u=s.useInView(d,{once:!0});return e.jsxs("div",{ref:d,"data-testid":i||"PanelCards",className:a("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(Ne,{text:n}),o&&e.jsx(P,{align:exports.COPY_ALIGN.CENTER,children:o})]}),e.jsx("div",{className:"flex gap-8",children:null==r?void 0:r.map(((t,s)=>e.jsxs("span",{className:"flex gap-8 justify-between",children:[e.jsx("div",{className:a("relative flex flex-1 items-center justify-center",{"":l}),style:{transform:u?"none":"translateY(200px)",opacity:u?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*s}s`},children:e.jsx(fe,Object.assign({},t))}),l&&s<r.length-1&&e.jsx("div",{className:"w-1 h-10 border-0 border-r border-solid border-primary500"},`separator-${s}`)]},`card-${s}`)))})]})};Ye.displayName="PanelCards";const He=({testID:t,title:s,description:i,inversed:r,assets:n,buttonData:o,withBg:l=!0,spacing:c=Ge.DEFAULT})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:a("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(Ce,{children:e.jsxs("div",{className:a("relative flex sm:flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-16",{"flex-row-reverse":r}),children:[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(Ne,{text:s}),e.jsx(P,{className:"mb-0",children:i})]}),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(O,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(je,{bgAsset:n.bgAsset,focalAsset1:n.focalAsset1,focalAsset2:n.focalAsset2,focalAsset3:n.focalAsset3})})})]})})]});He.displayName="PanelFeature";const Ve=({url:s,sources:i,onReady:n,className:o,options:l={},isYoutube:c=!1,defaultAudioTrack:d="No Music",rounded:u=!0,aspectRatioValue:x})=>{const h=t.useRef(null),f=t.useRef(null),N=t.useRef(null),E=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:E.aspectRatio||"16:9",controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},l),{sources:i});if(!N.current){const a=document.createElement("video-js");a.classList.add("vjs-big-play-centered"),null===(e=null==f?void 0:f.current)||void 0===e||e.appendChild(a);const s=N.current=p(a,t,(()=>{p.log("player is ready",s),n&&n(s)}));s.on("loadedmetadata",(function(){const e=s.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=N.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),N.current=null)}}),[N]),c&&s?e.jsx("div",{"data-testid":"Video",className:a("relative w-full h-full aspect-[16/9]",o),children:e.jsx(m,{ref:h,className:"react-player",url:s,width:"100%",height:"100%",controls:!0,onReady:n})}):e.jsx("div",{className:r.twMerge(a("relative w-full overflow-hidden h-full aspect-[16/9] bg-black object-cover",{rouded:u},E.className,o)),children:e.jsx("div",{"data-vjs-player":!0,children:e.jsx("div",{ref:f,className:"object-cover"})})})};Ve.displayName="Video";const We=({testID:i,title:n,contentComponent:o,description:l,image:c,buttonData:d,inversed:u=!1,withBg:m=!0,spacing:p,video:x,headingTag:h,className:f})=>{const N=s.useAnimation(),E=t.useRef(null),v=s.useInView(E),g={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};t.useEffect((()=>{v&&N.start((e=>({transform:"none",transition:Object.assign(Object.assign({},g),{delay:.1*e})})))}),[N,v]);const A=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]),S=u?"translateX(100px)":"translateX(-100px)";return e.jsxs("div",{"data-testid":i||"PanelHero",className:r.twMerge(a("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",p,f)),children:[m&&e.jsx("div",{className:a("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-b md:bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!u,"-top-24 left-0":u})}),e.jsx(Ce,{children:e.jsxs("div",{className:a("relative flex flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-0 md:gap-16",{"md:flex-row-reverse":u}),children:[e.jsx("div",{ref:E,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:e.jsxs("div",{className:a("relative flex flex-col gap-4 from-bodyBackground p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!u},{"text-left bg-gradient-to-t md:bg-gradient-to-r":u}),children:[e.jsx(s.motion.div,{initial:{transform:S},custom:0,animate:N,children:e.jsx(Ne,{text:n,tag:h})}),o&&e.jsx(s.motion.div,{initial:{transform:S},custom:1,animate:N,children:o}),l&&e.jsx(s.motion.div,{initial:{transform:S},custom:1,animate:N,children:e.jsx(le,{className:"mb-0",align:u?exports.COPY_ALIGN.LEFT:exports.COPY_ALIGN.RIGHT,data:l})}),d&&e.jsx(s.motion.div,{initial:{transform:S},custom:2,animate:N,children:e.jsx("div",{className:a("flex items-center",{"justify-end":!u,"justify-start":u}),children:e.jsx(O,Object.assign({},d))})})]})}),e.jsx("div",{className:"relative w-full md:w-1/2 z-0",children:e.jsxs("div",{className:a("relative scale-[1.35] rounded overflow-hidden shadow",A),children:[c&&e.jsx(V,{src:c,alt:n,fill:!0}),x&&e.jsx(Ve,{sources:x.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:x.aspectRatioValue})]})})]})})]})};We.displayName="PanelHero";const ze=({testID:t,title:s,description:i,image1:r,image2:n,iosLink:o="#",androidLink:l="#",inversed:c=!1,withBg:d=!0,spacing:u=Ge.MODULE})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:a("relative m-auto w-full flex flex-none flex-nowrap",u),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(Ce,{children:e.jsxs("div",{className:a("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(V,{src:n,alt:s})}),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(V,{src:r,alt:s})})]}),e.jsxs("div",{className:"w-full md:w-1/2",children:[e.jsx("div",{children:e.jsx(Ne,{text:s})}),e.jsx("div",{children:e.jsx(P,{children:i})}),e.jsxs("div",{className:"flex items-center justify-start gap-4",children:[e.jsx("div",{className:"relative w-[150px] h-[50px]",children:e.jsx(R,{href:o,target:"_blank",hideExternalIcon:!0,children:e.jsx(V,{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(V,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});ze.displayName="PanelProduct";const qe=({testID:t,className:i,title:r,description:n,spacing:o=Ge.NONE,videoProps:l})=>e.jsxs("div",{"data-testid":t||'"PanelVideo"',className:a("relative m-auto w-full flex flex-none flex-nowrap aspect-[16/6.6]",o,i),children:[e.jsx(Ve,{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:[r&&e.jsx(s.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:r})})}),n&&e.jsx(s.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(P,{children:n})})})]})]})]});var Ke;qe.displayName="PanelVideo",exports.CPL_SPACING=void 0,(Ke=exports.CPL_SPACING||(exports.CPL_SPACING={})).NONE="none",Ke.ATOM="atom",Ke.DEFAULT="default",Ke.ELEMENT="element",Ke.COMPONENT="component",Ke.MODULE="module",Ke.FEATURE="feature";const Ze=({spacing:t=exports.CPL_SPACING.DEFAULT,children:s,narrow:i,flush:r,className:n})=>{const o=a("flex","flex-col","flex-1","relative",{"py-40":"feature"===t},{"py-24":"component"===t},{"py-16":"module"===t},{"py-10":"element"===t},{"py-8":"default"===t},{"py-4":"atom"===t},{"py-0":"none"===t},{"max-w-5xl":i},{"p-0":r},n);return e.jsx("div",{"data-testid":"ContentPageLayout",className:o,children:s})};var $e;Ze.displayName="ContentPageLayout",exports.CRL_SIZE=void 0,($e=exports.CRL_SIZE||(exports.CRL_SIZE={})).NONE="none",$e.ATOM="atom",$e.DEFAULT="default",$e.ELEMENT="element",$e.COMPONENT="component",$e.MODULE="module",$e.FEATURE="feature";const Xe=({className:t,children:s,size:i=exports.CRL_SIZE.DEFAULT})=>{const r=a("grid","auto-rows-min","grid-cols-1","gap-x-4",{"gap-y-0 mb-0":"none"===i},{"gap-y-2 mb-2":"atom"===i},{"gap-y-4 mb-4":"default"===i},{"gap-y-8 mb-8":"element"===i},{"gap-y-16 mb-16":"module"===i},{"gap-y-24 mb-24":"component"===i},{"gap-y-40 mb-40":"feature"===i},t);return e.jsx("div",{"data-testid":"ContentRowsLayout",className:r,children:s})};Xe.displayName="ContentRowsLayout";const Qe=t.createContext({brand:void 0,header:void 0,footer:void 0,locale:void 0}),Je=({children:t,value:a})=>e.jsx(Qe.Provider,{value:a,children:t}),et=({testID:s,className:i})=>{var r,n,o,l,c,d,u,m,p,x,h,f,N,E;const v=t.useContext(Qe);return e.jsx("footer",{className:a("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8 md:px-2 lg:px-0",i),children:e.jsxs(Ce,{children:[e.jsxs("div",{"data-testid":s||'"Footer"',className:"footer flex flex-col md:flex-row py-8 gap-8",children:[e.jsxs("div",{className:"relative w-full md:w-1/3 flex flex-col gap-4 items-center md:items-start",children:[(null===(r=null==v?void 0:v.brand)||void 0===r?void 0:r.logo)&&e.jsx("div",{className:"relative w-24",children:e.jsx(Z,{logo:null===(n=null==v?void 0:v.brand)||void 0===n?void 0:n.logo,aspectRatioClass:null===(o=null==v?void 0:v.brand)||void 0===o?void 0:o.logoAspectRatio})}),(null===(l=v.footer)||void 0===l?void 0:l.about)&&e.jsx("div",{children:e.jsx(P,{children:v.footer.about})}),e.jsx("div",{children:e.jsx(Te,{facebook:null===(d=null===(c=v.footer)||void 0===c?void 0:c.visitUs)||void 0===d?void 0:d.facebook,twitter:null===(m=null===(u=v.footer)||void 0===u?void 0:u.visitUs)||void 0===m?void 0:m.twitter,instagram:null===(x=null===(p=v.footer)||void 0===p?void 0:p.visitUs)||void 0===x?void 0:x.instagram,linkedin:null===(f=null===(h=v.footer)||void 0===h?void 0:h.visitUs)||void 0===f?void 0:f.linkedin})})]}),(null===(N=v.footer)||void 0===N?void 0:N.menus)&&e.jsx("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:v.footer.menus.map(((t,a)=>e.jsx("div",{className:"flex flex-1",children:e.jsx(Ie,{title:t.title,links:t.links,inline:!1})},`${t.title}--${a}`)))})]}),e.jsxs("div",{className:"flex items-center justify-center flex-col",children:[e.jsxs(P,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:["© ",(new Date).getFullYear()," ",ae.UI.COPYRIGHT," ",null===(E=v.brand)||void 0===E?void 0:E.name]}),e.jsx(P,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:ae.UI.ALL_RIGHTS_RESERVED})]})]})})};function tt(){var e;return null===(e=t.useContext(Qe).locale)||void 0===e||e.lang,ae}et.displayName="Footer";const at={isDarkTheme:!1,toggleTheme:()=>{}},st=t.createContext(at);const it=({testID:s,loginCallback:i,logoutCallback:r,isAuthenticated:n=!1,hideMenu:o=!1,className:l,logoOnly:c})=>{var d,u,m,p,x,h,f,N,E,v,g;const A=t.useContext(Qe),S=tt(),[b,T]=t.useState("hidden"),[I,C]=t.useState(!1),y=()=>{T("hidden"===b?"block":"hidden")};return c?e.jsx("header",{"data-testid":s||'"Header"',className:a("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0",l),children:e.jsx("div",{className:"relative w-full flex justify-center items-center",children:(null===(d=null==A?void 0:A.brand)||void 0===d?void 0:d.logo)&&e.jsx("div",{className:"relative w-56",children:e.jsx(R,{href:"/",children:e.jsx(Z,{logo:null===(u=null==A?void 0:A.brand)||void 0===u?void 0:u.logo,aspectRatioClass:null===(m=null==A?void 0:A.brand)||void 0===m?void 0:m.logoAspectRatio})})})})}):e.jsx("header",{"data-testid":s||'"Header"',className:a("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0",l),children:e.jsxs(Ce,{children:[e.jsxs("div",{className:"relative w-full flex",children:[(null===(p=null==A?void 0:A.brand)||void 0===p?void 0:p.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(R,{href:"/",children:e.jsx(Z,{logo:null===(x=null==A?void 0:A.brand)||void 0===x?void 0:x.logo,aspectRatioClass:null===(h=null==A?void 0:A.brand)||void 0===h?void 0:h.logoAspectRatio})})}),e.jsx("div",{className:"flex-1 hidden md:flex items-center justify-center",children:(null===(f=null==A?void 0:A.header)||void 0===f?void 0:f.nav)&&e.jsx(Ie,{links:A.header.nav,separators:!0})}),e.jsxs("div",{className:"hidden md:flex flex-col justify-center",children:[!n&&i&&e.jsx("div",{className:"w-32 flex justify-end",children:e.jsx(O,{onClick:i,children:S.UI.LOGIN})}),!n&&!i&&e.jsx("div",{className:"w-32 flex justify-end"}),n&&e.jsxs("div",{className:"relative",children:[e.jsx(O,{onClick:()=>C(!I),icon:I?"mdi:user-outline":"mdi:user"}),e.jsx("div",{onClick:()=>C(!1),className:a("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!I}),children:(null===(N=null==A?void 0:A.header)||void 0===N?void 0:N.profile)&&e.jsx(Ie,{links:A.header.profile,inline:!1})})]})]}),e.jsx("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:menu",onClick:y})})]}),e.jsxs("div",{className:a("navbar-menu relative z-50",b,{hidden:o}),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===(E=null==A?void 0:A.brand)||void 0===E?void 0:E.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(Z,{logo:null===(v=null==A?void 0:A.brand)||void 0===v?void 0:v.logo,aspectRatioClass:"aspect-[16/9]"})})}),e.jsx("div",{children:e.jsx(O,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:close",onClick:y})})]}),e.jsxs("div",{className:"flex flex-col flex-1 gap-4",children:[n&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(P,{children:"User profile avatar and details here."})}),e.jsx("div",{className:"flex flex-1 justify-center pt-4",children:(null===(g=null==A?void 0:A.header)||void 0===g?void 0:g.nav)&&e.jsx(Ie,{links:A.header.nav,inline:!1})}),n&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(O,{onClick:r,children:S.UI.LOGOUT})}),!n&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(O,{onClick:()=>{i(),y()},children:S.UI.LOGIN})})]})]})]})]})})};it.displayName="Header";const rt=({testID:s,inputCallback:i,seperator:r,numInputs:n=4,shouldAutoFocus:o=!1,size:l="medium"})=>{const[c,d]=t.useState("");t.useEffect((()=>{c&&4===c.length&&void 0!==i&&"function"==typeof i&&i(c)}),[c]);const u=t.useMemo((()=>{switch(l){case"small":return{width:"2.5rem",height:"3rem"};case"medium":return{width:"3.5rem",height:"4rem"};case"large":return{width:"4.5rem",height:"5rem"};default:return{width:"2.5rem",height:"2.5rem"}}}),[l]);return e.jsx("div",{"data-testid":s||'"OTPInput"',className:"foo-bar",children:e.jsx(x,{value:c,onChange:d,inputType:"number",numInputs:n,shouldAutoFocus:o,renderSeparator:r?()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(g,{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:a("remove-arrow form-item text-input w-12")})),inputStyle:{width:u.width,height:u.height}})})};var nt,ot;function lt(t){var{className:s,current:i,resultsPerPage:r=10,onChange:n,totalPages:o}=t,l=C(t,["className","current","resultsPerPage","onChange","totalPages"]);return e.jsx(N,Object.assign({current:i,onChange:n,simple:!0,pageSize:r,total:o*r,className:a("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",s),locale:E,prevIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(g,{name:"mdi:chevron-left"})}),nextIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(g,{name:"mdi:chevron-right"})})},l))}function ct({className:t,onChange:s,options:i,label:r}){return i?e.jsxs("div",{className:a("m-0 p-0 mb-2 border-none",t),children:[e.jsx(W,{className:"text-sm mr-2",transform:exports.COPY_TRANSFORM.UPPERCASE,children:ae.UI.SHOW}),e.jsx(ge,{id:r||"ResultsPerPage",options:i.map((e=>({label:e.toString(),value:e}))),onChange:e=>s(e.target.value),className:"min-w-20"})]}):e.jsx(e.Fragment,{})}function dt(t){var{className:s,end:i,searchTerm:r,start:n,totalResults:o}=t,l=C(t,["className","end","searchTerm","start","totalResults"]);return e.jsxs("div",Object.assign({className:a("m-0 p-0 flex-1",s)},l,{children:["Showing"," ",e.jsxs("strong",{children:[n," - ",i]})," ","out of ",e.jsx("strong",{children:o}),r&&e.jsxs(e.Fragment,{children:[" ","for: ",e.jsx("em",{children:r})]})]}))}function ut({className:s,onChange:i,onSubmit:r,wasSearched:n,placeholder:o}){const l=t.useContext(f.SearchContext);return e.jsx("div",{className:a("m-0 md:px-48",s),children:e.jsxs("form",{onSubmit:e=>r(e),className:"flex items-center",children:[e.jsx("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e.jsx(te,{name:"SearchBoxInput",type:ee.TEXT,placeholder:o||"Search now...",onChange:e=>{var t;i(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)}})}),e.jsx("div",{className:"pl-4",children:e.jsxs("div",{className:"flex flex-row gap-2",children:[n&&e.jsx(O,{type:exports.BTN_TYPES.BUTTON,onClick:()=>l.driver.reset(),variant:exports.BTN_VARIANTS.SECONDARY,children:"Reset"}),e.jsx(O,{type:exports.BTN_TYPES.SUBMIT,variant:exports.BTN_VARIANTS.PRIMARY,children:"Search"})]})})]})})}function mt({className:t,children:s,header:i,bodyContent:r,bodyFooter:n,bodyHeader:o,sideContent:l}){const c=a("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:a("w-full flex flex-col",t),children:[e.jsx("div",{className:"m-auto md:py-0 w-full",children:i}),e.jsxs("div",{className:a("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:a("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:s||r}),e.jsx("div",{className:"flex items-center justify-around",children:n})]})]})]})}function pt(t){var{children:s,className:i,gridClasses:r}=t,n=C(t,["children","className","gridClasses"]);const o=r||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return e.jsx("ul",Object.assign({className:a("relative grid gap-4 mb-4",o,i)},n,{children:s}))}function xt(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function ht(e,t){if(e)return e[t]}function ft(e){const t=ht(e,"snippet")||(a=function(e){return ht(e,"raw")}(e),a?String(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):"");var a;return Array.isArray(t)?t.join(", "):t}function Nt({className:t,result:s,as:i,cardMap:r={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:n,titleField:o,imageField:l,videoField:c,descriptionField:d,metaDataFields:u,cardProps:m}=r,p=n&&ft(s[n.fieldName]),x=o&&ft(s[o.fieldName]),h=l&&ft(s[l.fieldName]),f=c&&c.formatter?c.formatter(ft(s[c.fieldName])):c&&ft(s[c.fieldName]),N=d&&ft(s[d.fieldName]),E=u&&u.map((e=>{const t=ft(s[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)}));return e.jsx("li",{className:a("relative",t),children:(()=>{const t={id:p,title:x,image:{src:h||"",alt:x||"",title:x||"",width:500,height:500},video:f,description:N,metaData:E,actions:r.actionsData,onClick:r.onClickLink};switch(i){case exports.ResultAsTypes.cardMedia:return e.jsx(fe,Object.assign({variant:exports.CardVariant.MEDIA,data:t},m));case exports.ResultAsTypes.cardVideo:return e.jsx(fe,Object.assign({variant:exports.CardVariant.VIDEO,data:t},m,{isMuted:!1}));default:return e.jsx(fe,Object.assign({variant:exports.CardVariant.BASIC,data:t},m))}})()})}function Et({className:t,label:s,onChange:i,options:r}){const n=r.map((e=>({value:e.value,label:`${e.value} (${e.count})`})));return e.jsxs("fieldset",{className:a("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(W,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:s}),e.jsx(ge,{id:s,options:n,onChange:e=>i(e.target.value)})]})}function vt({className:t,label:s,onRemove:i,onSelect:r,options:n}){const o=n.filter((e=>e.selected)).map((e=>e.value))[0];return e.jsx("fieldset",{className:a("m-0 p-0 mt-4 mb-2 border-none",t),children:e.jsxs("div",{children:[e.jsx(W,{transform:exports.COPY_TRANSFORM.UPPERCASE,children:s}),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:[xt(o),e.jsx("span",{className:"ml-1 px-1",children:e.jsx(O,{onClick:()=>i(o),size:exports.BTN_SIZES.SMALL,rounded:!0,children:e.jsx(g,{name:"mdi:close"})})})]}),!o&&n.map((t=>{const a=xt(t.value);return e.jsxs("li",{className:"m-0 flex justify-between",children:[e.jsx("a",{className:"no-underline visited:text-bodyText","data-transaction-name":`facet - ${s}`,href:"/",onClick:e=>{e.preventDefault(),r(t.value)},children:e.jsx("label",{className:"label pl-0 leading-none",children:a})}),e.jsx(P,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.MEDIUM,children:t.count.toLocaleString("en")})]},a)}))]})]})})}function gt({className:t,label:s,onMoreClick:i,onRemove:r,onSelect:n,options:o,showMore:l,showSearch:c,onSearch:d,searchPlaceholder:u}){return o?e.jsxs("fieldset",{className:a("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(W,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:s}),c&&e.jsx("div",{className:"mt-1",children:e.jsx(te,{type:ee.SEARCH,placeholder:u||"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 a=t.selected,i=t.value,o=xt(i);return e.jsxs("div",{className:"flex justify-between pb-2",children:[e.jsx(j,{id:`facet_${s}${o}`,"data-transaction-name":`facet - ${s}`,checked:a,onChange:()=>a?r(i):n(i),label:o}),e.jsx(P,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.SMALL,children:t.count.toLocaleString("en")})]},o)}))]}),l&&e.jsx(O,{size:exports.BTN_SIZES.SMALL,variant:exports.BTN_VARIANTS.TERTIARY,onClick:i,"aria-label":"Show more options",children:"+ More"})]}):e.jsx(e.Fragment,{children:"Options required"})}rt.displayName="OTPInput",exports.CardVariant=void 0,(nt=exports.CardVariant||(exports.CardVariant={})).BASIC="basic",nt.MEDIA="media",nt.VIDEO="video",nt.ICON="icon",nt.HORZ="horz",nt.DATA="data",exports.ResultAsTypes=void 0,(ot=exports.ResultAsTypes||(exports.ResultAsTypes={})).cardBasic="cardBasic",ot.cardMedia="cardMedia",ot.cardVideo="cardVideo",lt.displayName="Paging",ct.displayName="ResultsPerPage",dt.displayName="PagingInfo",ut.displayName="SearchBox",mt.displayName="Layout",pt.displayName="Results",Nt.displayName="Result",Et.displayName="SingleSelectFacet",vt.displayName="SingleLinksFacet",gt.displayName="MultiCheckboxFacet";const At=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e.jsx(Ee,{onSubmit:t,submit:ae.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(Ae,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ae.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:we})})});At.displayName="ResetPasswordForm";const St=({testID:t,initialValues:a,handleSubmit:s})=>e.jsx("div",{"data-testid":t||'"ProfileForm"',className:"form-wrapper",children:e.jsxs(Ee,{onSubmit:s,submit:ae.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:a,children:[e.jsx("div",{className:"mb-4 items-center justify-center flex",children:e.jsx(se,{name:"avatar",initValue:null==a?void 0:a.avatar})}),e.jsx(Ae,{name:"firstName",type:exports.FIELD_TYPES.TEXT,label:ae.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e.jsx(Ae,{name:"lastName",type:exports.FIELD_TYPES.TEXT,label:ae.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e.jsx(Ae,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ae.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:Le})]})});St.displayName="ProfileForm";const bt={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 Tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It={exports:{}},Ot={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]},Ct={exports:{}},yt=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))},jt=Array.prototype.concat,Rt=Array.prototype.slice,_t=Ct.exports=function(e){for(var t=[],a=0,s=e.length;a<s;a++){var i=e[a];yt(i)?t=jt.call(t,Rt.call(i)):t.push(i)}return t};_t.wrap=function(e){return function(){return e(_t(arguments))}};var Lt=Ct.exports,wt=Ot,Dt=Lt,kt=Object.hasOwnProperty,Pt=Object.create(null);for(var Mt in wt)kt.call(wt,Mt)&&(Pt[wt[Mt]]=Mt);var Ft=It.exports={to:{},get:{}};function Bt(e,t,a){return Math.min(Math.max(t,e),a)}function Ut(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}Ft.get=function(e){var t,a;switch(e.substring(0,3).toLowerCase()){case"hsl":t=Ft.get.hsl(e),a="hsl";break;case"hwb":t=Ft.get.hwb(e),a="hwb";break;default:t=Ft.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},Ft.get.rgb=function(e){if(!e)return null;var t,a,s,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(s=t[2],t=t[1],a=0;a<3;a++){var r=2*a;i[a]=parseInt(t.slice(r,r+2),16)}s&&(i[3]=parseInt(s,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(s=(t=t[1])[3],a=0;a<3;a++)i[a]=parseInt(t[a]+t[a],16);s&&(i[3]=parseInt(s+s,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)i[a]=parseInt(t[a+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:kt.call(wt,t[1])?((i=wt[t[1]])[3]=1,i):null:null;for(a=0;a<3;a++)i[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(a=0;a<3;a++)i[a]=Bt(i[a],0,255);return i[3]=Bt(i[3],0,1),i},Ft.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,Bt(parseFloat(t[2]),0,100),Bt(parseFloat(t[3]),0,100),Bt(isNaN(a)?1:a,0,1)]}return null},Ft.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,Bt(parseFloat(t[2]),0,100),Bt(parseFloat(t[3]),0,100),Bt(isNaN(a)?1:a,0,1)]}return null},Ft.to.hex=function(){var e=Dt(arguments);return"#"+Ut(e[0])+Ut(e[1])+Ut(e[2])+(e[3]<1?Ut(Math.round(255*e[3])):"")},Ft.to.rgb=function(){var e=Dt(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]+")"},Ft.to.rgb.percent=function(){var e=Dt(arguments),t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),s=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+a+"%, "+s+"%)":"rgba("+t+"%, "+a+"%, "+s+"%, "+e[3]+")"},Ft.to.hsl=function(){var e=Dt(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Ft.to.hwb=function(){var e=Dt(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Ft.to.keyword=function(e){return Pt[e.slice(0,3)]};var Gt=It.exports;const Yt=Ot,Ht={};for(const e of Object.keys(Yt))Ht[Yt[e]]=e;const Vt={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 Wt=Vt;for(const e of Object.keys(Vt)){if(!("channels"in Vt[e]))throw new Error("missing channels property: "+e);if(!("labels"in Vt[e]))throw new Error("missing channel labels property: "+e);if(Vt[e].labels.length!==Vt[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:a}=Vt[e];delete Vt[e].channels,delete Vt[e].labels,Object.defineProperty(Vt[e],"channels",{value:t}),Object.defineProperty(Vt[e],"labels",{value:a})}Vt.rgb.hsl=function(e){const t=e[0]/255,a=e[1]/255,s=e[2]/255,i=Math.min(t,a,s),r=Math.max(t,a,s),n=r-i;let o,l;r===i?o=0:t===r?o=(a-s)/n:a===r?o=2+(s-t)/n:s===r&&(o=4+(t-a)/n),o=Math.min(60*o,360),o<0&&(o+=360);const c=(i+r)/2;return l=r===i?0:c<=.5?n/(r+i):n/(2-r-i),[o,100*l,100*c]},Vt.rgb.hsv=function(e){let t,a,s,i,r;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),u=function(e){return(c-e)/6/d+.5};return 0===d?(i=0,r=0):(r=d/c,t=u(n),a=u(o),s=u(l),n===c?i=s-a:o===c?i=1/3+t-s:l===c&&(i=2/3+a-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*r,100*c]},Vt.rgb.hwb=function(e){const t=e[0],a=e[1];let s=e[2];const i=Vt.rgb.hsl(e)[0],r=1/255*Math.min(t,Math.min(a,s));return s=1-1/255*Math.max(t,Math.max(a,s)),[i,100*r,100*s]},Vt.rgb.cmyk=function(e){const t=e[0]/255,a=e[1]/255,s=e[2]/255,i=Math.min(1-t,1-a,1-s);return[100*((1-t-i)/(1-i)||0),100*((1-a-i)/(1-i)||0),100*((1-s-i)/(1-i)||0),100*i]},Vt.rgb.keyword=function(e){const t=Ht[e];if(t)return t;let a,s=1/0;for(const t of Object.keys(Yt)){const n=(r=Yt[t],((i=e)[0]-r[0])**2+(i[1]-r[1])**2+(i[2]-r[2])**2);n<s&&(s=n,a=t)}var i,r;return a},Vt.keyword.rgb=function(e){return Yt[e]},Vt.rgb.xyz=function(e){let t=e[0]/255,a=e[1]/255,s=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;return[100*(.4124*t+.3576*a+.1805*s),100*(.2126*t+.7152*a+.0722*s),100*(.0193*t+.1192*a+.9505*s)]},Vt.rgb.lab=function(e){const t=Vt.rgb.xyz(e);let a=t[0],s=t[1],i=t[2];a/=95.047,s/=100,i/=108.883,a=a>.008856?a**(1/3):7.787*a+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*s-16,500*(a-s),200*(s-i)]},Vt.hsl.rgb=function(e){const t=e[0]/360,a=e[1]/100,s=e[2]/100;let i,r,n;if(0===a)return n=255*s,[n,n,n];i=s<.5?s*(1+a):s+a-s*a;const o=2*s-i,l=[0,0,0];for(let e=0;e<3;e++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,n=6*r<1?o+6*(i-o)*r:2*r<1?i:3*r<2?o+(i-o)*(2/3-r)*6:o,l[e]=255*n;return l},Vt.hsl.hsv=function(e){const t=e[0];let a=e[1]/100,s=e[2]/100,i=a;const r=Math.max(s,.01);s*=2,a*=s<=1?s:2-s,i*=r<=1?r:2-r;return[t,100*(0===s?2*i/(r+i):2*a/(s+a)),100*((s+a)/2)]},Vt.hsv.rgb=function(e){const t=e[0]/60,a=e[1]/100;let s=e[2]/100;const i=Math.floor(t)%6,r=t-Math.floor(t),n=255*s*(1-a),o=255*s*(1-a*r),l=255*s*(1-a*(1-r));switch(s*=255,i){case 0:return[s,l,n];case 1:return[o,s,n];case 2:return[n,s,l];case 3:return[n,o,s];case 4:return[l,n,s];case 5:return[s,n,o]}},Vt.hsv.hsl=function(e){const t=e[0],a=e[1]/100,s=e[2]/100,i=Math.max(s,.01);let r,n;n=(2-a)*s;const o=(2-a)*i;return r=a*i,r/=o<=1?o:2-o,r=r||0,n/=2,[t,100*r,100*n]},Vt.hwb.rgb=function(e){const t=e[0]/360;let a=e[1]/100,s=e[2]/100;const i=a+s;let r;i>1&&(a/=i,s/=i);const n=Math.floor(6*t),o=1-s;r=6*t-n,1&n&&(r=1-r);const l=a+r*(o-a);let c,d,u;switch(n){default:case 6:case 0:c=o,d=l,u=a;break;case 1:c=l,d=o,u=a;break;case 2:c=a,d=o,u=l;break;case 3:c=a,d=l,u=o;break;case 4:c=l,d=a,u=o;break;case 5:c=o,d=a,u=l}return[255*c,255*d,255*u]},Vt.cmyk.rgb=function(e){const t=e[0]/100,a=e[1]/100,s=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,a*(1-i)+i)),255*(1-Math.min(1,s*(1-i)+i))]},Vt.xyz.rgb=function(e){const t=e[0]/100,a=e[1]/100,s=e[2]/100;let i,r,n;return i=3.2406*t+-1.5372*a+-.4986*s,r=-.9689*t+1.8758*a+.0415*s,n=.0557*t+-.204*a+1.057*s,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*i,255*r,255*n]},Vt.xyz.lab=function(e){let t=e[0],a=e[1],s=e[2];t/=95.047,a/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;return[116*a-16,500*(t-a),200*(a-s)]},Vt.lab.xyz=function(e){let t,a,s;a=(e[0]+16)/116,t=e[1]/500+a,s=a-e[2]/200;const i=a**3,r=t**3,n=s**3;return a=i>.008856?i:(a-16/116)/7.787,t=r>.008856?r:(t-16/116)/7.787,s=n>.008856?n:(s-16/116)/7.787,t*=95.047,a*=100,s*=108.883,[t,a,s]},Vt.lab.lch=function(e){const t=e[0],a=e[1],s=e[2];let i;i=360*Math.atan2(s,a)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(a*a+s*s),i]},Vt.lch.lab=function(e){const t=e[0],a=e[1],s=e[2]/360*2*Math.PI;return[t,a*Math.cos(s),a*Math.sin(s)]},Vt.rgb.ansi16=function(e,t=null){const[a,s,i]=e;let r=null===t?Vt.rgb.hsv(e)[2]:t;if(r=Math.round(r/50),0===r)return 30;let n=30+(Math.round(i/255)<<2|Math.round(s/255)<<1|Math.round(a/255));return 2===r&&(n+=60),n},Vt.hsv.ansi16=function(e){return Vt.rgb.ansi16(Vt.hsv.rgb(e),e[2])},Vt.rgb.ansi256=function(e){const t=e[0],a=e[1],s=e[2];if(t===a&&a===s)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(s/255*5)},Vt.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const a=.5*(1+~~(e>50));return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},Vt.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]},Vt.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},Vt.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let a=t[0];3===t[0].length&&(a=a.split("").map((e=>e+e)).join(""));const s=parseInt(a,16);return[s>>16&255,s>>8&255,255&s]},Vt.rgb.hcg=function(e){const t=e[0]/255,a=e[1]/255,s=e[2]/255,i=Math.max(Math.max(t,a),s),r=Math.min(Math.min(t,a),s),n=i-r;let o,l;return o=n<1?r/(1-n):0,l=n<=0?0:i===t?(a-s)/n%6:i===a?2+(s-t)/n:4+(t-a)/n,l/=6,l%=1,[360*l,100*n,100*o]},Vt.hsl.hcg=function(e){const t=e[1]/100,a=e[2]/100,s=a<.5?2*t*a:2*t*(1-a);let i=0;return s<1&&(i=(a-.5*s)/(1-s)),[e[0],100*s,100*i]},Vt.hsv.hcg=function(e){const t=e[1]/100,a=e[2]/100,s=t*a;let i=0;return s<1&&(i=(a-s)/(1-s)),[e[0],100*s,100*i]},Vt.hcg.rgb=function(e){const t=e[0]/360,a=e[1]/100,s=e[2]/100;if(0===a)return[255*s,255*s,255*s];const i=[0,0,0],r=t%1*6,n=r%1,o=1-n;let l=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=n,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=n;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=n,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-a)*s,[255*(a*i[0]+l),255*(a*i[1]+l),255*(a*i[2]+l)]},Vt.hcg.hsv=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);let s=0;return a>0&&(s=t/a),[e[0],100*s,100*a]},Vt.hcg.hsl=function(e){const t=e[1]/100,a=e[2]/100*(1-t)+.5*t;let s=0;return a>0&&a<.5?s=t/(2*a):a>=.5&&a<1&&(s=t/(2*(1-a))),[e[0],100*s,100*a]},Vt.hcg.hwb=function(e){const t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],100*(a-t),100*(1-a)]},Vt.hwb.hcg=function(e){const t=e[1]/100,a=1-e[2]/100,s=a-t;let i=0;return s<1&&(i=(a-s)/(1-s)),[e[0],100*s,100*i]},Vt.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Vt.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Vt.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Vt.gray.hsl=function(e){return[0,0,e[0]]},Vt.gray.hsv=Vt.gray.hsl,Vt.gray.hwb=function(e){return[0,100,e[0]]},Vt.gray.cmyk=function(e){return[0,0,0,e[0]]},Vt.gray.lab=function(e){return[e[0],0,0]},Vt.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},Vt.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const zt=Wt;function qt(e){const t=function(){const e={},t=Object.keys(zt);for(let a=t.length,s=0;s<a;s++)e[t[s]]={distance:-1,parent:null};return e}(),a=[e];for(t[e].distance=0;a.length;){const e=a.pop(),s=Object.keys(zt[e]);for(let i=s.length,r=0;r<i;r++){const i=s[r],n=t[i];-1===n.distance&&(n.distance=t[e].distance+1,n.parent=e,a.unshift(i))}}return t}function Kt(e,t){return function(a){return t(e(a))}}function Zt(e,t){const a=[t[e].parent,e];let s=zt[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)a.unshift(t[i].parent),s=Kt(zt[t[i].parent][i],s),i=t[i].parent;return s.conversion=a,s}const $t=Wt,Xt=function(e){const t=qt(e),a={},s=Object.keys(t);for(let e=s.length,i=0;i<e;i++){const e=s[i];null!==t[e].parent&&(a[e]=Zt(e,t))}return a},Qt={};Object.keys($t).forEach((e=>{Qt[e]={},Object.defineProperty(Qt[e],"channels",{value:$t[e].channels}),Object.defineProperty(Qt[e],"labels",{value:$t[e].labels});const t=Xt(e);Object.keys(t).forEach((a=>{const s=t[a];Qt[e][a]=function(e){const t=function(...t){const a=t[0];if(null==a)return a;a.length>1&&(t=a);const s=e(t);if("object"==typeof s)for(let e=s.length,t=0;t<e;t++)s[t]=Math.round(s[t]);return s};return"conversion"in e&&(t.conversion=e.conversion),t}(s),Qt[e][a].raw=function(e){const t=function(...t){const a=t[0];return null==a?a:(a.length>1&&(t=a),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(s)}))}));const Jt=Gt,ea=Qt,ta=["keyword","gray","hex"],aa={};for(const e of Object.keys(ea))aa[[...ea[e].labels].sort().join("")]=e;const sa={};function ia(e,t){if(!(this instanceof ia))return new ia(e,t);if(t&&t in ta&&(t=null),t&&!(t in ea))throw new Error("Unknown model: "+t);let a,s;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof ia)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=Jt.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,s=ea[this.model].channels,this.color=t.value.slice(0,s),this.valpha="number"==typeof t.value[s]?t.value[s]:1}else if(e.length>0){this.model=t||"rgb",s=ea[this.model].channels;const a=Array.prototype.slice.call(e,0,s);this.color=la(a,s),this.valpha="number"==typeof e[s]?e[s]: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 s=t.sort().join("");if(!(s in aa))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=aa[s];const{labels:i}=ea[this.model],r=[];for(a=0;a<i.length;a++)r.push(e[i[a]]);this.color=la(r)}if(sa[this.model])for(s=ea[this.model].channels,a=0;a<s;a++){const e=sa[this.model][a];e&&(this.color[a]=e(this.color[a]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ia.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Jt.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const a=1===t.valpha?t.color:[...t.color,this.valpha];return Jt.to[t.model](a)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),a=1===t.valpha?t.color:[...t.color,this.valpha];return Jt.to.rgb.percent(a)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=ea[this.model],{labels:a}=ea[this.model];for(let s=0;s<t;s++)e[a[s]]=this.color[s];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 ia([...this.color.map(ra(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new ia([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:na("rgb",0,oa(255)),green:na("rgb",1,oa(255)),blue:na("rgb",2,oa(255)),hue:na(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:na("hsl",1,oa(100)),lightness:na("hsl",2,oa(100)),saturationv:na("hsv",1,oa(100)),value:na("hsv",2,oa(100)),chroma:na("hcg",1,oa(100)),gray:na("hcg",2,oa(100)),white:na("hwb",1,oa(100)),wblack:na("hwb",2,oa(100)),cyan:na("cmyk",0,oa(100)),magenta:na("cmyk",1,oa(100)),yellow:na("cmyk",2,oa(100)),black:na("cmyk",3,oa(100)),x:na("xyz",0,oa(95.047)),y:na("xyz",1,oa(100)),z:na("xyz",2,oa(108.833)),l:na("lab",0,oa(100)),a:na("lab",1),b:na("lab",2),keyword(e){return void 0!==e?new ia(e):ea[this.model].keyword(this.color)},hex(e){return void 0!==e?new ia(e):Jt.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new ia(e);const t=this.rgb().round().color;let a=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===a.length&&(a="0"+a),Jt.to.hex(t)+a},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[a,s]of e.entries()){const e=s/255;t[a]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),a=e.luminosity();return t>a?(t+.05)/(a+.05):(a+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return ia.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let a=t.color[0];return a=(a+e)%360,a=a<0?360+a:a,t.color[0]=a,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const a=e.rgb(),s=this.rgb(),i=void 0===t?.5:t,r=2*i-1,n=a.alpha()-s.alpha(),o=((r*n==-1?r:(r+n)/(1+r*n))+1)/2,l=1-o;return ia.rgb(o*a.red()+l*s.red(),o*a.green()+l*s.green(),o*a.blue()+l*s.blue(),a.alpha()*i+s.alpha()*(1-i))}};for(const e of Object.keys(ea)){if(ta.includes(e))continue;const{channels:t}=ea[e];ia.prototype[e]=function(...t){return this.model===e?new ia(this):t.length>0?new ia(t,e):new ia([...(a=ea[this.model][e].raw(this.color),Array.isArray(a)?a:[a]),this.valpha],e);var a},ia[e]=function(...a){let s=a[0];return"number"==typeof s&&(s=la(a,t)),new ia(s,e)}}function ra(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function na(e,t,a){e=Array.isArray(e)?e:[e];for(const s of e)(sa[s]||(sa[s]=[]))[t]=a;return e=e[0],function(s){let i;return void 0!==s?(a&&(s=a(s)),i=this[e](),i.color[t]=s,i):(i=this[e]().color[t],a&&(i=a(i)),i)}}function oa(e){return function(t){return Math.max(0,Math.min(e,t))}}function la(e,t){for(let a=0;a<t;a++)"number"!=typeof e[a]&&(e[a]=0);return e}var ca=Tt(ia);const da=(e,t)=>ca(e).darken(t).rgb().string(),ua=Object.assign({inherit:"inherit",transparent:"transparent",black:bt.colors.black,white:bt.colors.white,bodyBackground:bt.colors.white,darkBodyBackground:bt.colors.primary,bodyText:bt.colors.primary,bodyTextInverted:bt.colors.primary50,darkBodyText:bt.colors.primary50,display:bt.colors.black,darkDisplay:bt.colors.white},Object.assign({},...Object.keys(bt.colors).map((e=>{const t=bt.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,s=.1,ca(a).lighten(s).rgb().string()),darker:da(t,.1)}};var a,s})))),ma=Object.assign(Object.assign({},bt),{colors:Object.assign(Object.assign({},bt.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({},bt.borderRadius),fontWeight:Object.assign(Object.assign({},bt.fontWeight),{light:"300",normal:"400",bold:"700"})}),pa=(e,t)=>ca(e).darken(t).rgb().string(),xa=Object.assign(Object.assign(Object.assign({},ua),{bodyBackground:ma.colors.primary700,darkBodyBackground:ma.colors.primary800,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(ma.colors).map((e=>{const t=ma.colors[e];return{[e]:{DEFAULT:t,lighter:(a=t,s=.1,ca(a).lighten(s).rgb().string()),darker:pa(t,.1)}};var a,s})))),ha=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"]}),fa=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),Na={colors:Object.assign({},xa),fontFamily:Object.assign({},ha),fontSize:Object.assign({},null==ma?void 0:ma.fontSize),fontWeight:Object.assign({},null==ma?void 0:ma.fontWeight),buttons:Object.assign({},fa),screens:Object.assign({},null==ma?void 0:ma.screens),borderRadius:Object.assign({},null==ma?void 0:ma.borderRadius),spacing:Object.assign({},null==ma?void 0:ma.spacing),extend:Object.assign({},null==ma?void 0:ma.extend)};exports.AnimationCounter=v,exports.AnimationSet1=je,exports.AppContext=Je,exports.AppProvider=Je,exports.Authenticator=Me,exports.Avatar=se,exports.Blockquote=A,exports.Button=O,exports.ButtonGroup=ie,exports.Card=fe,exports.Carousel=Ue,exports.Checkbox=j,exports.Chip=M,exports.Container=Ce,exports.ContentPageLayout=Ze,exports.ContentRowsLayout=Xe,exports.Copy=P,exports.DisplayHeading=Ne,exports.FileUpload=F,exports.Footer=et,exports.ForgotPasswordForm=Pe,exports.Form=Ee,exports.FormField=Ae,exports.FormSelect=ge,exports.Header=it,exports.Heading=Y,exports.Hero=ye,exports.Hr=H,exports.HtmlContent=le,exports.Icon=g,exports.Image=V,exports.Label=W,exports.Link=R,exports.List=K,exports.ListItem=$,exports.Loader=I,exports.LoginForm=De,exports.Logo=Z,exports.Menu=Ie,exports.MultiCheckboxFacet=gt,exports.Notice=X,exports.OTPInput=rt,exports.PanelCards=Ye,exports.PanelFeature=He,exports.PanelHero=We,exports.PanelProduct=ze,exports.PanelVideo=qe,exports.ProfileForm=St,exports.Radio=Q,exports.RegisterForm=ke,exports.ResetPasswordForm=At,exports.STRINGS_EN=ae,exports.Search=function({showOptions:a,sortOptions:s,resultAs:i=exports.ResultAsTypes.cardBasic,ResultFieldMap:r,config:n={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:o=[],noSidebar:l=!1,customConnector:c,showPagingInfo:d,gridClasses:u,initialState:m={},showTextSearch:p=!0}){const x=t.useMemo((()=>{const e={host:process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""};return new h(c||e)}),[]),N=t.useMemo((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:n.alwaysSearchOnInitialLoad,apiConnector:x,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==a?void 0:a[0])||8},m)})),[n]);return e.jsx(f.SearchProvider,{config:N,children:e.jsx(f.WithSearch,{mapContextToProps:({wasSearched:e})=>({wasSearched:e}),children:({wasSearched:s})=>e.jsx(t.Fragment,{children:e.jsx(f.ErrorBoundary,{children:e.jsx(mt,{header:p&&e.jsx(f.SearchBox,{view:t=>e.jsx(ut,Object.assign({},t,{wasSearched:s,placeholder:n.initialPlaceholder}))}),sideContent:!l&&o&&e.jsx(t.Fragment,{children:null==o?void 0:o.map((({field:t,label:a,view:s})=>e.jsx(f.Facet,{field:t,label:a,view:s},t)))}),bodyContent:e.jsx(f.Results,{shouldTrackClickThrough:!1,resultView:t=>e.jsx(Nt,Object.assign({},t,{as:i,cardMap:r})),className:"list-none p-0 m-0",view:t=>e.jsx(pt,Object.assign({},t,{gridClasses:u}))}),bodyHeader:e.jsxs(t.Fragment,{children:[s&&d&&e.jsx(f.PagingInfo,{view:dt}),s&&a&&e.jsx(f.ResultsPerPage,{view:ct,options:a})]}),bodyFooter:e.jsx(f.Paging,{view:lt}),noSidebar:l})})})})})},exports.Share=Se,exports.SingleLinksFacet=vt,exports.SingleSelectFacet=Et,exports.Switch=J,exports.Tabs=be,exports.TextInput=te,exports.ThemeContext=st,exports.ThemeProvider=({children:t,theme:a})=>e.jsx(st.Provider,{value:a,children:t}),exports.Video=Ve,exports.VisitUs=Te,exports.defaultTheme=at,exports.theme=Na,exports.useLanguage=tt,exports.useTheme=function(){return t.useContext(st)};
16
+ function R(e,t){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(s[a[i]]=e[a[i]])}return s}function L(e,t,s,a){return new(s||(s=Promise))((function(t,i){function r(e){try{o(a.next(e))}catch(e){i(e)}}function n(e){try{o(a.throw(e))}catch(e){i(e)}}function o(e){var a;e.done?t(e.value):(a=e.value,a instanceof s?a:new s((function(e){e(a)}))).then(r,n)}o((a=a.apply(e,[])).next())}))}_.displayName="Button";const w=t.forwardRef((function(t,a){var{id:i,label:r,required:n,className:o,disabled:l}=t,d=R(t,["id","label","required","className","disabled"]);return e.jsxs("div",{"data-testid":"Checkbox",className:s("flex items-center",o),children:[e.jsxs("div",{className:"relative bg-none w-5 h-5 flex justify-center items-center",children:[e.jsx("input",Object.assign({id:i,ref:a,disabled:l,type:"checkbox",className:"form-item checkbox m-0 appearance-none peer h-full w-full shrink-0 focus:ring-2",required:n},d)),e.jsx("span",{className:"absolute transition-opacity opacity-0 pointer-events-none peer-checked:opacity-100 w-full h-full flex items-center justify-center top-0 left-0",children:e.jsx(T,{name:"mdi:check-bold",size:12})})]}),r&&e.jsx("label",{className:"label pl-2 leading-none text-sm text-bodyText dark:text-darkBodyText",htmlFor:i,children:r})]})}));w.displayName="Checkbox";const D=({href:a,children:i,onClick:r=(()=>{}),history:n,target:o,id:l,testID:d,className:c,prefetch:u,hideExternalIcon:m=!1})=>{const p=s("link cursor-pointer no-underline text-bodyText dark:text-darkBodyText",c);if(!m&&a&&a.startsWith("http"))return e.jsxs("span",{children:[e.jsx("a",{"data-testid":d||l||"Link",className:s(p),href:a,target:"_blank",rel:"noopener noreferrer",children:i}),e.jsx(T,{name:"mdi:external-link",className:"inline-block w-4 h-4 ml-1 mb-0"})]});try{const e=require("next/link").default;if(!e)throw new Error("Next.js Image not found");return t.createElement(e,{href:a||"#",onClick:r,"data-testid":d||l||"Link",className:p,target:o||"_self",prefetch:u||!1},i)}catch(t){const s=e=>{r?r(e):!0!==e.defaultPrevented&&n&&a&&(e.preventDefault(),n.push(a))};return e.jsx("a",{"data-testid":d||l||"Link",className:p,href:a,onClick:s,target:o,children:i})}};var k,P,M,F,B;D.displayName="Link",exports.COPY_ALIGN=void 0,(k=exports.COPY_ALIGN||(exports.COPY_ALIGN={})).LEFT="left",k.CENTER="center",k.RIGHT="right",k.JUSTIFY="justify",k.NOWRAP="nowrap",exports.COPY_TRANSFORM=void 0,(P=exports.COPY_TRANSFORM||(exports.COPY_TRANSFORM={})).LOWERCASE="lowercase",P.UPPERCASE="uppercase",P.CAPITALIZE="capitalize",exports.COPY_CONTEXTUAL=void 0,(M=exports.COPY_CONTEXTUAL||(exports.COPY_CONTEXTUAL={})).INVERTED="inverted",M.MUTED="muted",exports.COPY_SIZE=void 0,(F=exports.COPY_SIZE||(exports.COPY_SIZE={})).SMALL="small",F.MEDIUM="medium",F.LARGE="large",F.INTRO="intro",exports.COPY_TAG=void 0,(B=exports.COPY_TAG||(exports.COPY_TAG={})).P="p",B.SPAN="span",B.DIV="div",B.SMALL="small";const U=({children:t,as:a=exports.COPY_TAG.P,size:i,bold:n,align:o,transform:l,underlined:d,id:c,className:u,testID:m})=>{const p=s({[`text-${o}`]:o},{"font-bold":n},{"text-base mb-3 mt-0":"p"===a},{"text-sm":"small"===a},{"text-sm":"small"===i},{"text-base":"medium"===i},{"text-lg":"large"===i},{"text-2xl":"intro"===i},{underline:d},l,u);return e.jsx(a,{"data-testid":m||c||"Copy",className:r.twMerge(p),children:t})};U.displayName="Copy";const G=({testID:a,text:i,outline:n,rounded:o,variant:l,size:d="medium",icon:c,iconFirst:u,onClick:m})=>{const p=t.useMemo((()=>{switch(d){case"small":return{iconSize:16,copySize:exports.COPY_SIZE.SMALL};case"medium":default:return{iconSize:20,copySize:exports.COPY_SIZE.MEDIUM};case"large":return{iconSize:28,copySize:exports.COPY_SIZE.LARGE}}}),[d]),x=r.twMerge(s("flex inline-flex items-center justify-center rounded select-none gap-2",{"border border-solid border-primary":n},{"rounded-full":o},{"flex-row-reverse":u},{"bg-primary text-white":"primary"===l},{"bg-secondary text-white":"secondary"===l},{"bg-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"===d},{"py-2 px-4":"medium"===d},{"py-3 px-6":"large"===d}));return m&&"function"==typeof m?e.jsxs(D,{"data-testid":a||"Chip",className:x,onClick:m,children:[e.jsx(U,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),c&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(T,{name:c,size:p.iconSize})})]}):e.jsxs("div",{"data-testid":a||"Chip",className:x,children:[e.jsx(U,{className:"mb-0",as:exports.COPY_TAG.SPAN,size:p.copySize,children:i}),c&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(T,{name:c,size:p.iconSize})})]})};G.displayName="Chip";const H=t.forwardRef((function(t,a){var{id:i,name:r,required:n,disabled:o,className:l,onChangeCallback:d,onChange:c}=t,u=R(t,["id","name","required","disabled","className","onChangeCallback","onChange"]);return e.jsx("div",{"data-testid":"FileUpload",className:l,children:e.jsx("input",Object.assign({ref:a,className:s("form-item text-input file-upload p-0 relative m-0 min-w-0 flex-auto appearance-none block box-border bg-clip-padding file:p-3 file:cursor-pointer file:mr-3 file:overflow-hidden cursor-pointer file:border-0 file:rounded-none file:border-solid file:border-inherit file:transition file:duration-150 file:ease-in-out file:[border-inline-end-width:1px] file:[margin-inline-end:0.75rem] "),"aria-describedby":r,type:"file",disabled:o,required:n,name:r,id:i,onChange:e=>{d&&"function"==typeof d&&d(e),c&&"function"==typeof c&&c({target:{value:e.target.value,name:r}})}},u))})}));var Y,V,W;H.displayName="FileUpload",exports.HEADING_TAGS=void 0,(Y=exports.HEADING_TAGS||(exports.HEADING_TAGS={})).H1="h1",Y.H2="h2",Y.H3="h3",Y.H4="h4",Y.H5="h5",exports.HEADING_ALIGN=void 0,(V=exports.HEADING_ALIGN||(exports.HEADING_ALIGN={})).LEFT="left",V.CENTER="center",V.RIGHT="right",V.JUSTIFY="justify",V.NOWRAP="nowrap",exports.HEADING_TRANSFORM=void 0,(W=exports.HEADING_TRANSFORM||(exports.HEADING_TRANSFORM={})).LOWERCASE="lowercase",W.UPPERCASE="uppercase",W.CAPITALIZE="capitalize",W.NORMAL_CASE="normal-case";const z=({children:t,tag:a=exports.HEADING_TAGS.H2,transform:i,align:r,id:n,testID:o,flush:l,className:d,singleLine:c,bold:u=!0})=>{const m=(()=>{switch(a){case"h1":return"text-3xl md:text-4xl lg:text-5xl";case"h2":return"text-3xl md:text-4xl lg:text-4xl";case"h3":return"text-xl md:text-2xl lg:text-2xl";case"h4":return"text-lg md:text-lg lg:text-xl";case"h5":return"text-base md:text-base lg:text-lg";default:return"text-2xl md:text-2xl lg:text-4xl"}})(),p=a,x=s(`m-0 p-0 font-heading ${m}`,{"font-bold":u},{[`text-${r}`]:r},{"mb-2":!l},{"m-0":l},{"whitespace-nowrap text-ellipsis overflow-hidden":c},i,d);return e.jsx(p,{"data-testid":o||n||"Heading",className:x,children:t})};z.displayName="Heading";const q=({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})});q.displayName="Hr";const K=a=>{var{src:i,alt:n,title:o,caption:l,figure:d=!1,onLoad:c,id:u,className:m,sizes:p="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",testID:x}=a,h=R(a,["src","alt","title","caption","figure","onLoad","id","className","sizes","testID"]);try{const e=require("next/image").default;if(!e)throw new Error("Next.js Image not found");const s=!h.width,a=s?{sizes:p}:{};return t.createElement(e,Object.assign(Object.assign({src:i,alt:n,title:o,fill:s,onLoad:c,className:m},a),h))}catch(t){const a=s("m-0"),p=r.twMerge(s("w-full h-full",m));return d||l?e.jsxs("figure",{"data-testid":x||u||"Image",className:a,children:[e.jsx("img",{onLoad:c,src:i,alt:n,title:o,className:p}),l&&e.jsx("figcaption",{children:l})]}):e.jsx("img",{"data-testid":x||u||"Image",onLoad:c,src:i,alt:n,title:o,className:p})}};K.displayName="Image";const Z=({children:t,id:a,transform:i,className:n})=>e.jsx("label",{"data-testid":"Label",className:r.twMerge(s("label mb-2 text-bodyText dark:text-darkBodyText",i,n)),htmlFor:a,children:t});var $,X;Z.displayName="Label",exports.Variants=void 0,($=exports.Variants||(exports.Variants={})).UNSTYLED="unstyled",$.INLINE="inline",$.SMALL="small",$.LARGE="large",exports.ListTag=void 0,(X=exports.ListTag||(exports.ListTag={})).OL="ol",X.UL="ul",X.DL="dl",X.DIV="div",X.DT="dt",X.DD="dd",X.LI="li";const Q=({variants:t,children:a,as:i=exports.ListTag.UL,id:r,testID:n,className:o})=>{const l=t?t.map((e=>`list--${e}`)):null,d=i;return e.jsx(d,{"data-testid":n||r||"List",className:s(l,o),children:a})};Q.displayName="List";const J=({testID:t,logo:a,className:i,aspectRatioClass:r="aspect-[1/1]"})=>e.jsx("div",{"data-testid":t||"Logo",className:s("relative w-full",r,i),children:e.jsx(K,{src:a,alt:"logo",fill:!0,sizes:"(max-width: 600px) 100px, 200px",priority:!0})});J.displayName="Logo";const ee=({onClick:t,title:a,icon:i,children:r,as:n="li",id:o,testID:l,className:d})=>e.jsxs(n,{"data-testid":l||o||"ListItem",className:s({"list-item":"div"!==n},d),children:[t&&e.jsxs(_,{variant:exports.BTN_VARIANTS.LINK,onClick:t,children:[e.jsxs("div",{className:"",children:[i&&e.jsx("div",{children:e.jsx(T,{name:i,size:24})}),a&&e.jsx("div",{children:e.jsx(z,{flush:!0,tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),r&&e.jsx("div",{children:r})]}),e.jsx("div",{children:e.jsx(T,{name:"mdi:chevron-right",size:24})})]}),!t&&e.jsx("div",{className:"",children:r&&e.jsx("div",{children:r})})]});ee.displayName="ListItem";const te=({id:t,testID:a,title:i,text:r,icon:n,type:o,onCloseCallback:l,onClickCallback:d,actionText:c})=>{const u=s("p-4 rounded relative",{"bg-info text-white":"info"===o,"bg-success text-white":"success"===o,"bg-warning text-black":"warning"===o,"bg-error text-white":"error"===o});return e.jsx("div",{"data-testid":a||t||"Notice",className:u,children:e.jsxs("div",{className:"flex gap-2",children:[n&&e.jsx("div",{className:"mr-2",children:e.jsx(T,{name:n})}),e.jsxs("div",{children:[i&&e.jsx(z,{tag:exports.HEADING_TAGS.H3,children:i}),e.jsx(U,{className:"mb-0",children:r})]}),d&&c&&e.jsx("div",{className:"ml-auto flex items-end",children:e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:d,"aria-label":"Action",size:exports.BTN_SIZES.SMALL,children:c})}),l&&e.jsx("div",{className:"absolute top-2 right-4",children:e.jsx(_,{variant:exports.BTN_VARIANTS.LINK,icon:"mdi:close",onClick:l,"aria-label":"Close"})})]})})};te.displayName="Notice";const se=t.forwardRef((function(t,a){var{name:i,required:r,className:n,options:o}=t,l=R(t,["name","required","className","options"]);return e.jsx("div",{"data-testid":"Radio",className:s("flex items-center",n),children:e.jsx("div",{className:s("flex flex-col gap-2",n),children:null==o?void 0:o.map((t=>{var s;const n=(null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.toString())||void 0;return e.jsxs("div",{className:"flex items-center relative",children:[e.jsxs("div",{className:"relative flex items-center",children:[e.jsx("input",Object.assign({ref:a,name:i,type:"radio",required:r,className:"form-item radio peer appearance-none m-0 p-0 w-4 h-4"},l,{id:n,value:n})),e.jsx("div",{className:"form-icon opacity-0 peer-checked:opacity-100 absolute w-4 h-4 flex items-center justify-center top-0 left-0 pointer-events-none",children:e.jsx(T,{name:"mdi:circle",size:12})})]}),e.jsx("label",{className:"label pl-2 leading-none",htmlFor:n,children:t.label})]},n)}))})})}));se.displayName="Radio";const ae=t.forwardRef((function(t,a){var{id:i,name:r,required:n,disabled:o,className:l}=t,d=R(t,["id","name","required","disabled","className"]);return e.jsxs("label",{"data-testid":"Switch",className:s("inline-flex items-center cursor-pointer",l),children:[e.jsx("input",Object.assign({ref:a,id:i,name:r,type:"checkbox",value:"",className:"sr-only peer",disabled:o,required:n},d)),e.jsx("div",{className:"form-item switch peer-focus:ring-info dark:peer-focus:ring-info relative w-11 h-6 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[1px] after:start-[1px] after:bg-white after:border after:rounded-full after:h-5 after:w-5 after:transition-all transition-all"})]})}));var ie;ae.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"}(ie||(ie={}));const re=t.forwardRef((function(a,i){var{type:r=ie.TEXT,required:n=!1,className:o,onChange:l,placeholder:d,icon:c,disabled:u=!1,name:m,autoComplete:p}=a,x=R(a,["type","required","className","onChange","placeholder","icon","disabled","name","autoComplete"]);t.useEffect((()=>{"undefined"!=typeof window&&require("date-input-polyfill")}),[]);const h="date"===r?"dd/mm/yyyy".toUpperCase():d;return r===ie.TEXTAREA?e.jsx("div",{"data-testid":"TextInput",className:"relative",children:e.jsx("textarea",Object.assign({ref:i,id:m,autoComplete:m,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,rows:4,className:s("form-item text-input resize-none",o)},x))}):e.jsxs("div",{"data-testid":"TextInput",className:"relative",children:[c&&e.jsx("div",{className:"form-icon absolute inset-y-0 start-3 flex items-center ps-3.5 pointer-events-none",children:e.jsx(T,{name:c})}),e.jsx("input",Object.assign({ref:i,id:m,type:r,autoComplete:p,required:n,"aria-required":n,disabled:u,placeholder:h,onChange:l,className:s("form-item text-input",{"pl-12":c},o)},x))]})}));re.displayName="TextInput";const ne={GLOBAL:{SCREENS:{ACCOUNT:{TITLE:"Account"},CATALOGUE_LIST:{TITLE:"Catalogue"},CHALLENGE:{TITLE:"Challenge",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",CLICK_TO_ENTER:"Click the buy button below to enter the challenge.",PAYMENT_NOTE:"Please note we automatically take payment from the registered payment option saved on your profile."},CHALLENGES_LIST:{TITLE:"Challenges"},DASHBOARD:{TITLE:"Dashboard"},LIVE_SCHEDULE:{TITLE:"Live"},LOGIN:{TITLE:"Login"},REGISTER:{TITLE:"Register"},PROFILE:{TITLE:"Profile"},SUBSCRIPTION:{TITLE:"Subscription"},WORKOUT:{TITLE:"Workout"},FORGOT_PASSWORD:{TITLE:"Forgot Password"},RESET_PASSWORD:{TITLE:"Reset Password"},HOME:{TITLE:"Home"},CATALOGUE:{TITLE:"Catalogue"},CHALLENGES:{TITLE:"Challenges"},LIVE:{TITLE:"Live"},SCHEDULE:{TITLE:"Schedule"},SETTINGS:{TITLE:"Settings"},HELP:{TITLE:"Help"},LEGAL_INFO:{TITLE:"Legal & Information"},CONTENT:{TITLE:"Content"},FAVOURITES:{TITLE:"Favourites"}}},FORMS:{LOGIN_FORM:{TITLE:"Login",SUBMIT:"Login",FORGOT_PASSWORD:"Forgot password?",REGISTER:"Register",EMAIL:"Email",PASSWORD:"Password"},REGISTER_FORM:{TITLE:"Register",SUBMIT:"Register",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},FORGOT_PASSWORD_FORM:{TITLE:"Forgot Password",SUBMIT:"Send Reset Email",EMAIL:"Email"},RESET_PASSWORD_FORM:{TITLE:"Reset Password",SUBMIT:"Reset Password",PASSWORD:"Password",CONFIRM_PASSWORD:"Confirm Password"},PROFILE_FORM:{TITLE:"Profile",SUBMIT:"Save",FIRST_NAME:"First Name",LAST_NAME:"Last Name",AVATAR:"Avatar",EMAIL:"Email",PASSWORD:"Password",PASSWORD_DESCRIPTION:"Password must be at least 8 characters long and contain at least one number, one uppercase letter, one lowercase letter, and one special character."},ACCOUNT:{SUBMIT_LABEL:"Update",EMAIL_LABEL:"Email",PASSWORD_LABEL:"Password",FIRST_NAME_LABEL:"First name",LAST_NAME_LABEL:"Last name",DOB_LABEL:"Date of birth",TERMS_AND_CONDITIONS_LABEL:"Terms & Conditions",TERMS_AND_CONDITIONS_DESCRIPTION:"Read our terms & conditions from the link in the footer. ",CONTACT_PREFERENCES_LABEL:"Yes/No",CONTACT_PREFERENCES_DESCRIPTION:"Happy for us to email you about the latest features, information and offers?",SKIP_LABEL:"Skip step",SUCCESS_MESSAGE:"Account updated",SUBSCRIPTION_STATUS_LABEL:"Subscription status",SUBSCRIPTION_PLAN_LABEL:"Plan",SUBSCRIPTION_PRICE_LABEL:"Price (£)",SUBSCRIPTION_BILLING_DATE_LABEL:"Next Billing Date",SUBSCRIPTION_PAYMENT_TYPE_LABEL:"Card Type",SUBSCRIPTION_CARD_NUMBER_LABEL:"Card Number",SUBSCRIPTION_CARD_EXPIRY_LABEL:"Card Expiry Date",SUBSCRIPTION_LAST_UPDATED_LABEL:"Last Updated"}},VALIDATION:{UNKNOWN_SUBMISSION_ERROR:"Sorry, something bad happened! Please try again later.",REQUIRED_FIELD:"Required",TOO_SHORT:"Must be at least {count}",TOO_LONG:"Sorry, that's too long",INVALID_EMAIL:"Oops that email address doesn't look quite right",LOGIN_DENIED:"Your username and password do not match our records",LOGIN_ERROR:"Sorry something went wrong, please try again later",ACCOUNT_FIRST_NAME:"We need to know your name for ongoing communication",ACCOUNT_LAST_NAME:"We need to know your full name for your orders and if you need to contact support",CHARACTERS_ONLY:"You can only use letters",PASSWORD_DESCRIPTION:"Password must be between {count} and 30 characters and contain at least 1 uppercase, 1 lowercase, 1 number and a symbol (eg. @$%).",PASSWORD_CASE_MESSAGE:"Password must have one capital letter",PASSWORD_LOWERCASE_MESSAGE:"Password must have one lowercase letter",PASSWORD_LENGTH_MESSAGE:"Password must be at least 8 characters",PASSWORD_NUMERIC_MESSAGE:"Password must have at least one number",PASSWORD_SPECIAL_MESSAGE:"Password must have at least one special character (eg. @$%)",AUTH_API_ERROR:"An account with the given email already exists.: Conflict",AUTH_ACCOUNT_EXISTS_MESSAGE:"An account with the given email already exists. Please sign in"},UI:{SHOW:"Show",NO_IMAGE:"No image",UPLOAD:"Upload",SAVE:"Save",CANCEL:"Cancel",DELETE:"Delete",CONTINUE_WITH_SOCIAL:"Continue with Social Account",SINGLE_SIGNON:"Single Sign-On",LOGIN_WITH_GOOGLE:"Login with Google",LOGIN_WITH_APPLE:"Login with Apple",SIGNUP_WITH_GOOGLE:"Signup with Google",SIGNUP_WITH_APPLE:"Signup with Apple",BACK_TO_LOGIN:"Back to Login",FORGOT_PASSWORD:"Forgot Password?",SUBMIT:"Submit",LOGIN:"Login",LOGOUT:"Logout",REGISTER:"Register",SOCIAL:{GOOGLE:"Google",FACEBOOK:"Facebook",TWITTER:"Twitter",EMAIL:"Email"},READ_MORE:"Read more",READ_LESS:"Show less",CLOSE:"Close",BACK:"Back",SHARE:"Share",DOWNLOAD:"Download",FORMAT_HOUR:"{hour}hr",FORMAT_HOURS:"{hours}hrs",FORMAT_MINUTE:"{minute}min",FORMAT_MINUTES:"{minutes}mins",LOAD_MORE_LABEL:"Load more",NO_MORE_RESULTS:"That's all folks.",UNKNOWN_ERROR_TITLE:"Unknown error",UNKNOWN_ERROR_MESSAGE:"Sorry, something bad happened! Please try again.",CONTENT_SORT_TITLE:"Sort by",CONTENT_FILTERS_TITLE:"Filters",CONTENT_FILTERS_LABEL:"Filter",CLOSE_FILTERS_LABEL:"Done",CLEAR_ALL_FILTERS_LABEL:"Clear All",CLEAR_FILTERS_LABEL:"Clear",MORE_ITEMS_LABEL:"Next items",PREVIOUS_ITEMS_LABEL:"Previous items",CHOOSE_BTN_LABEL:"Choose",ADD_BTN_LABEL:"Add",SEND_BTN_LABEL:"Send",CANCEL_BTN_LABEL:"Cancel",DONE_BTN_LABEL:"Done",EDIT_BTN_LABEL:"Edit",CHANGE_BTN_LABEL:"Change",REMOVE_BTN_LABEL:"Remove",MESSAGE_PROMPT_BTN_LABEL:"Add one",SELECT_FILE_BTN_LABEL:"Select file",TOO_MANY_REQUESTS_MESSAGE:"Too many requests. Please try again later.",COPYRIGHT:"Copyright",ALL_RIGHTS_RESERVED:"All rights reserved",APP_CAMERA_PERMISSION:"Camera permission",APP_CAMERA_PERMISSION_DENIED:"Camera permission denied",APP_NEED_ACCESS_CAMERA:"This app needs access to your camera",ASK_ME_LATER:"Ask me later",PRIVACY_POLICY:"Privacy Policy",CREATE_ACCOUNT:"Create account",COMPLETE:"Complete",EDIT:"Edit",PREV:"Prev",NEXT:"Next",GET_STARTED:"Get started",START_SEARCH:"Start search",READ_MORE_LABEL:"Read more",READ_LESS_LABEL:"Show less",CLOSE_LABEL:"Close",CLOSE_HINT:"Close this entry",BACK_LABEL:"Back",SHARE_LABEL:"Share",VIEW_MORE_LABEL:"View more",VIEW_LESS_LABEL:"View less",GOT_IT:"Got it",MORE:"More",MORE_DETAILS:"More details",MORE_INFO:"More info",LEARN_MORE:"Learn more",LOW:"Low",MEDIUM:"Medium",HIGH:"High",VERY_HIGH:"Very high",VERY_LOW:"Very low",GOOD:"Good",BAD:"Bad",STRONG:"Strong",SAVE_CONTINUE:"Save and Continue",SAVE_FINISH:"Save and Finish",FINISH:"Finish",SKIP:"Skip",ADD:"Add",ADDED:"Added",ADD_ANOTHER:"Add another",CREATE_PROFILE:"Create profile",CONTINUE_NO_ACCOUNT:"Continue without account",REQUIRED_MISSING:"Required field missing",RESET:"Reset",APPLY_FILTER:"Apply filter",START:"Start",END:"End",HELP:"Help",WHAT_IS_THIS:"What is this?",CARD_VIEW:"Card view",LIST_VIEW:"List view",FILTER:"Filter",NO_RESULTS:"No results",CONTINUE:"Continue",CONTINUE_BROWSING:"Continue browsing",VIEW:"View",INFORMATION:"Information",DELETE_HINT:"Delete this entry",VISIT_WEBSITE:"Visit website",TAKE_AGAIN:"Take again",ADD_MORE:"Add more",REQUEST_SENT:"Request sent",CUSTOMISE:"Customize",SET_LOCATION:"Set location",COUNTY_NOT_FOUND:"County not found",NO_RESOURCES_FOUND:"No resources found",PATHWAY:"Pathway",CLICK_TO_NAVIGATE:"Click to navigate",INPUT_FIELD:"Input field",GO_BACK:"Go back",NAVIGATES_PREV:"Navigates to the previous screen",REMOVE:"Remove",NO_INTERNET_CONNECTION:"No internet connection",CHECK_CONNECTION:"Please check your internet connection and try again.",EXPLORE:"Explore",NO_ACCOUNT:"No account?",START_WORKOUT:"Start workout",START_MEDIA:"Start media",LAUNCH:"Launch",PUBLISHED:"Published",CREATED:"Created",UPDATED:"Updated",DURATION:"Duration",LEVEL:"Level",SECTION:"Section",DOWNLOADING:"Downloading",DOWNLOAD_COMPLETE:"Download complete",DOWNLOAD_FAILED:"Download failed",DOWNLOAD_CANCELLED:"Download cancelled",DOWNLOADING_MEDIA:"Downloading media",DOWNLOADING_MEDIA_FAILED:"Downloading media failed",DOWNLOADING_MEDIA_CANCELLED:"Downloading media cancelled",DOWNLOADING_MEDIA_COMPLETE:"Downloading media complete",DOWNLOADING_MEDIA_CANCEL:"Cancel download",DOWNLOADING_MEDIA_RETRY:"Retry download",DOWNLOADING_MEDIA_PAUSE:"Pause download",DOWNLOADING_MEDIA_RESUME:"Resume download",DOWNLOADING_MEDIA_CONTINUE:"Continue download",DOWNLOADING_MEDIA_START:"Start download",DOWNLOADING_MEDIA_CONFIRM:"Confirm download",DOWNLOAD_REMOVED:"Download removed",DOWNLOAD_REMOVE_ERROR:"Error removing download",CATEGORY:"Category",TYPE:"Type",WORKOUT_TYPE:"Workout type",MEDIA_TYPE:"Media type",WORKOUT:"Workout",MEDIA:"Media",WORKOUTS:"Workouts",WORKOUT_CATEGORY:"Workout category",MEDIA_CATEGORY:"Media category",ADDED_LIKE:"Added like",REMOVED_LIKE:"Removed like",ADDED_FAVORITE:"Added favorite",REMOVED_FAVORITE:"Removed favorite",ADDED_BOOKMARK:"Added bookmark",REMOVED_BOOKMARK:"Removed bookmark",ADDED_WATCHLIST:"Added watchlist",REMOVED_WATCHLIST:"Removed watchlist",ADDED_PLAYLIST:"Added playlist",REMOVED_PLAYLIST:"Removed playlist",ADDED_SUBSCRIPTION:"Added subscription",REMOVED_SUBSCRIPTION:"Removed subscription",ADDED_FOLLOW:"Added follow",REMOVED_FOLLOW:"Removed follow",ADDED_FRIEND:"Added friend",REMOVED_FRIEND:"Removed friend",ADDED_CONNECTION:"Added connection",REMOVED_CONNECTION:"Removed connection",MARKED_COMPLETE:"Marked complete",MARKED_INCOMPLETE:"Marked incomplete",MUSIC_ENABLED:"Music enabled",MUSIC_DISABLED:"Music disabled",SHARED:"Shared",NOT_ENTERED_IN_CHALLENGE:"You are not entered in this challenge yet.",ACCESS_RESTRICTED:"Access restricted",PURCHASE_TO_ACCESS:"Purchase to access",SHOW_FILTERS:"Show filters",HIDE_FILTERS:"Hide filters",THIS_WEEK:"This week",TODAYS_ITEMS:"Today's items",START_TRIAL_LABEL:"Start Free Trial",START_WORKOUTS_LABEL:"Start Workouts Now",UPDATE_LABEL:"Update now",SESSION_EXPIRED:"Session expired. Please log in.",NO_VALID_SUB:"No valid subscription found. Please subscribe or contact us if you believe this is an error.",SUBSCRIPTION_ERROR:"There's a problem with your account. No valid subscription found.",SUCCESS:"Success",UPLOAD_IMAGE:"Upload Image",UPLOAD_VIDEO:"Upload Video",UPLOAD_AUDIO:"Upload Audio",UPLOAD_DOCUMENT:"Upload Document",UPLOAD_MEDIA:"Upload Media",UPLOAD_MEDIA_FILE:"Upload Media File",UPLOAD_SUCCESS:"Upload successful",UPLOAD_FAILED:"Upload failed",UPLOADING:"Uploading",SHARE_DESCRIPTION:"Share this with your friends",SHARE_TITLE:"Share",ALREADY_RATED:"You have already rated this",RATE:"Rate",VERSION:"Version",APP_VERSION:"App Version",WELCOME:"Welcome",LATEST_WORKOUTS:"Latest Workouts",RECENTLY_VIEWED:"Recently Viewed",RECENTLY_ADDED:"Recently Added",RECENTLY_COMPLETED:"Recently Completed",WORKOUTS_LIKED:"Workouts Liked",WORKOUTS_FAVORITED:"Workouts Favorited",WORKOUTS_BOOKMARKED:"Workouts Bookmarked",WORKOUTS_COMPLETED:"Workouts Completed",WORKOUTS_DONE:"Workouts Done",LIKED:"Liked",FAVORITED:"Favorited",BOOKMARKED:"Bookmarked",COMPLETED:"Completed",DONE:"Done",STATS:"Stats",STATISTICS:"Statistics",ACTIVITY:"Activity",RECENT_ACTIVITY:"Recent Activity",NEWS:"News",UPDATES:"Updates",LATEST_NEWS:"Latest News",WHATS_NEW:"What's New",WHATS_NEWS:"What's News",GOOD_MORNING:"Good Morning",GOOD_AFTERNOON:"Good Afternoon",GOOD_EVENING:"Good Evening",NO_CLASS:"No class",RELATED:"Related",RELATED_WORKOUTS:"Related Workouts",RELATED_CHALLENGES:"Related Challenges",RELATED_VIDEOS:"Related Videos",RELATED_MEDIA:"Related Media",CHALLENGES_ENTERED:"Challenges Entered",UPGRADE_TO_PREMIUM_PLUS:"Upgrade to Premium+",UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE:"Upgrade to Premium+ for unlimited access to the live streamed classes",UPGRADE_TO_PREMIUM:"Upgrade to Premium",PUSH_NOTIFICATIONS:"Push Notifications",PUSH_NOTIFICATIONS_ENABLED:"Push notifications enabled",PUSH_NOTIFICATIONS_DISABLED:"Push notifications disabled",EMAIL_NOTIFICATIONS:"Email Notifications",EMAIL_NOTIFICATIONS_ENABLED:"Email notifications enabled",EMAIL_NOTIFICATIONS_DISABLED:"Email notifications disabled",SMS_NOTIFICATIONS:"SMS Notifications",SMS_NOTIFICATIONS_ENABLED:"SMS notifications enabled",SMS_NOTIFICATIONS_DISABLED:"SMS notifications disabled",NOTIFICATIONS:"Notifications",PUSH_NOTIFICATIONS_DESCRIPTION:"Receive push notifications for new content and updates",EMAIL_NOTIFICATIONS_DESCRIPTION:"Receive email notifications for new content and updates",SMS_NOTIFICATIONS_DESCRIPTION:"Receive SMS notifications for new content and updates",OPEN_SETTINGS:"Open settings",NOTIFICATION_SETTINGS:"Notification settings",NOTIFICATION_SETTINGS_DESCRIPTION:"Manage your notification settings",CAMERA_ACCESS:"Camera access",CAMERA_PERMISSION_DENIED:"Camera permission denied",CAMERA_PERMISSION_REQUIRED:"Camera permission required",CAMERA_PERMISSION_DESCRIPTION:"Allow access to your camera to take a profile picture and personalize your account",DISABLE_PERMISSION_IN_SETTINGS:"You can disable in main system settings",DARK_MODE:"Dark mode",LIGHT_MODE:"Light mode",SYSTEM_MODE:"System mode",DARK_MODE_ENABLED:"Dark mode enabled",LIGHT_MODE_ENABLED:"Light mode enabled",SYSTEM_MODE_ENABLED:"System mode enabled",DARK_MODE_DESCRIPTION:"Enable dark mode for better viewing experience",LIGHT_MODE_DESCRIPTION:"Enable light mode for better viewing experience",SYSTEM_MODE_DESCRIPTION:"Enable system mode for better viewing experience",REQUEST_INFO:"Request info",REQUEST_INFORMATION:"Request information",GET_INFO:"Get info",GET_IN_TOUCH:"Get in touch",CONTACT_US:"Contact us",ERROR:"Error",LAST_UPDATED:"Last updated",NO_UPDATES:"No updates",RATED:"Rated",RATE_SUCCESS:"Rating successful",RATE_FAILED:"Rating failed",RATE_CANCELLED:"Rating cancelled",QUESTION:"Question",QUESTION_ABOUT_SUBSCRIPTION:"Question about subscription",LOGOUT_SUCCESS:"Logout successful",NO_ACTIVE_SUBSCRIPTION:"No active subscription",SUBSCRIPTION_EXPIRED:"Subscription expired",NO_SUBSCRIPTION_DETAILS:"You currently do not have an active subscription. If you believe this is an error, please contact our support team for assistance."},ERRORS:{GENERIC_ERROR:"An error occurred",COULD_NOT_FETCH_DATA:"Could not fetch data",COULD_NOT_UPDATE_DATA:"Could not update data",COULD_NOT_DELETE_DATA:"Could not delete data",COULD_NOT_UPDATE_LIKES:"Could not update likes",COULD_NOT_UPDATE_FAVORITES:"Could not update favorites",COULD_NOT_UPDATE_BOOKMARKS:"Could not update bookmarks",COULD_NOT_UPDATE_WATCHLIST:"Could not update watchlist",COULD_NOT_UPDATE_PLAYLIST:"Could not update playlist",COULD_NOT_UPDATE_SUBSCRIPTION:"Could not update subscription",COULD_NOT_UPDATE_FOLLOW:"Could not update follow",COULD_NOT_UPDATE_FRIEND:"Could not update friend",COULD_NOT_UPDATE_CONNECTION:"Could not update connection",ISSUE_CHECKING_PERMISSIONS:"Issue checking permissions",ISSUE_OPENING_SETTINGS:"Issue opening settings"}},oe=({testID:s,name:a="avatar",isEditable:i=!0,initValue:r})=>{const[n,o]=t.useState(r);return t.useEffect((()=>{r&&o(r)}),[r]),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(K,{src:n,alt:a,width:200,height:200}),i&&e.jsx("div",{className:"absolute w-full h-full flex items-end justify-center bottom-4",children:e.jsx(_,{size:exports.BTN_SIZES.SMALL,rounded:!0,onClick:()=>{o(void 0)},children:ne.UI.REMOVE_BTN_LABEL})})]}),!n&&e.jsx(e.Fragment,{children:i&&e.jsx("div",{className:"absolute w-full h-full flex items-center justify-center",children:e.jsx(Z,{id:a,className:"button cursor-pointer mb-0",children:e.jsx(U,{className:"mb-0",children:ne.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)}}})]})};oe.displayName="Avatar";const le=({testID:t,buttonData:a})=>e.jsx("div",{"data-testid":t||"ButtonGroup",className:"inline-flex rounded",role:"group",children:null==a?void 0:a.map(((t,i)=>{const r=i>0&&i<a.length-1,n=0===i,o=i===a.length-1,l=s({"rounded-none":r},{"rounded-r":n,"rounded-l":o});return e.jsx("div",{children:e.jsx(_,Object.assign({},t,{className:l,children:t.children}))},t.id)}))});le.displayName="ButtonGroup";const de="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",ce="transition duration-500 ease-in-out ",ue={replace(t){if("a"===t.name){const s=n.attributesToProps(t.attribs);return e.jsx(D,Object.assign({},s,{children:n.domToReact(t.children,ue)}))}if(t.attribs&&"p"===t.name){const s=n.attributesToProps(t.attribs);return e.jsx(U,Object.assign({},s,{children:n.domToReact(t.children,ue)}))}return t}},me=({testID:t,data:a,align:i,className:r})=>e.jsx("span",{"data-testid":t||'"HtmlContent"',className:s("relative",{"text-right":"right"===i},{"text-center":"center"===i},{"text-left":"left"===i},r),children:n(a,ue)});function pe(e,t=60){return e.length>t?e.slice(0,t-1).trim()+"...":e}me.displayName="HtmlContent";const xe=({id:t,title:a,description:i,image:n,className:o,metaData:l,actions:d,padded:c,scaleOnHover:u,onClick:m=(()=>{}),htmlDetails:p})=>e.jsxs("div",{id:t,"data-testid":"CardBasic",className:r.twMerge(s(ce,de,{"p-4":c},{"hover:scale-100":!u},o)),onClick:m,children:[n&&e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden aspect-[16/9]",{rounded:c},n.aspectRatio)),children:e.jsx(K,{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",ce)})}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:s({"p-3":!c},{"pt-3":c}),children:[e.jsx("div",{children:a&&e.jsx(z,{tag:exports.HEADING_TAGS.H4,singleLine:!0,children:a})}),!p&&i&&e.jsx("div",{children:e.jsx(U,{className:"mb-0",children:pe(i)})}),p&&i&&e.jsx("div",{children:e.jsx(me,{className:"mb-0",data:pe(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l&&e.jsx("div",{className:"flex shrink-0 mt-2",children:l.map(((t,s)=>0===s?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===l.length-1?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),d&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[d.like&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.like)||void 0===s?void 0:s.onClick)&&"function"==typeof d.like.onClick&&d.like.onClick({id:t})}}),d.share&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.share)||void 0===s?void 0:s.onClick)&&"function"==typeof d.share.onClick&&d.share.onClick({id:t})}}),d.save&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.save)||void 0===s?void 0:s.onClick)&&"function"==typeof d.save.onClick&&d.save.onClick({id:t})}}),d.comment&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.comment)||void 0===s?void 0:s.onClick)&&"function"==typeof d.comment.onClick&&d.comment.onClick({id:t})}}),d.bookmark&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.bookmark)||void 0===s?void 0:s.onClick)&&"function"==typeof d.bookmark.onClick&&d.bookmark.onClick({id:t})}}),d.report&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.report)||void 0===s?void 0:s.onClick)&&"function"==typeof d.report.onClick&&d.report.onClick({id:t})}}),d.follow&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.follow)||void 0===s?void 0:s.onClick)&&"function"==typeof d.follow.onClick&&d.follow.onClick({id:t})}}),d.download&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.download)||void 0===s?void 0:s.onClick)&&"function"==typeof d.download.onClick&&d.download.onClick({id:t})}}),d.edit&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.edit)||void 0===s?void 0:s.onClick)&&"function"==typeof d.edit.onClick&&d.edit.onClick({id:t})}}),d.delete&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:d.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var s;e.stopPropagation(),(null===(s=null==d?void 0:d.delete)||void 0===s?void 0:s.onClick)&&"function"==typeof d.delete.onClick&&d.delete.onClick({id:t})}})]})]})]})})]});xe.displayName="CardBasic";const he=t.createContext({brand:void 0,header:void 0,footer:void 0,locale:void 0,app:void 0}),ve=({children:t,value:s})=>e.jsx(he.Provider,{value:s,children:t});function fe(){var e;return null===(e=t.useContext(he).locale)||void 0===e||e.lang,ne}const Ne={isDarkTheme:!1,toggleTheme:()=>{}},ge=t.createContext(Ne);const Ee=({id:t,title:a,description:i,image:r,className:n,metaData:o,actions:l,onClick:d=(()=>{}),playCallback:c,htmlDetails:u,accessRestriced:m})=>{const p=fe();return e.jsxs("div",{id:t,"data-testid":"CardBasic",className:s(ce,de,n),onClick:d,children:[r&&e.jsxs("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",r.aspectRatio),children:[e.jsx(K,{fill:!0,src:null==r?void 0:r.src,sizes:"100vh",alt:null==r?void 0:r.alt,className:s("absolute inset-0 object-cover group-hover:scale-110",ce)}),m&&e.jsx("div",{className:"absolute top-0 left-0 right-0 bottom-0 bg-bodyBackground bg-opacity-50 flex items-center justify-center",children:e.jsx(U,{bold:!0,transform:exports.COPY_TRANSFORM.UPPERCASE,children:p.UI.PURCHASE_TO_ACCESS})}),c&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:play",size:exports.BTN_SIZES.LARGE,onClick:e=>{e.stopPropagation(),"function"==typeof c&&c(e)}})})]}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:a&&e.jsx(z,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:a})}),!u&&i&&e.jsx("div",{children:e.jsx(U,{className:"mb-0",children:pe(i)})}),u&&i&&e.jsx("div",{children:e.jsx(me,{className:"mb-0",data:pe(i)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[o&&e.jsx("div",{className:"flex shrink-0",children:o.map(((t,s)=>0===s?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===o.length-1?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(U,{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(_,{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(_,{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(_,{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(_,{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(_,{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(_,{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(_,{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(_,{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(_,{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(_,{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})}})]})]})]})})]})};Ee.displayName="CardMedia";const Se=({video:t,isMuted:a=!0,id:i,title:r,description:n,image:o,className:d,metaData:c,actions:u,onClick:m=(()=>{}),htmlDetails:p})=>e.jsxs("div",{id:i,"data-testid":"CardVideo",className:s(ce,de,d),onClick:m,children:[o&&t&&e.jsx("div",{className:s("relative w-full h-full aspect-[16/9]",o.aspectRatio),children:e.jsx(l,{videoId:`video--${i}`,playbackStartDelay:1e3,videoSrc:e.jsx("source",{src:t,type:"video/mp4"}),videoClassName:s("hls-hover-video w-full aspect-[16/9]",o.aspectRatio),sizingMode:"overlay",preload:"none",loop:!1,muted:a,className:s("w-full overflow-hidden aspect-[16/9]",o.aspectRatio),pausedOverlay:e.jsx("div",{className:s("relative w-full overflow-hidden aspect-[16/9]",o.aspectRatio),children:e.jsx(K,{fill:!0,src:null==o?void 0:o.src,width:0,height:0,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})}),loadingOverlay:e.jsx("div",{className:s("w-full flex items-center justify-center aspect-[16/9]",o.aspectRatio),children:e.jsx("div",{className:"",children:e.jsx(O,{})})})},`${i}--card`)}),e.jsx("div",{className:"w-full flex flex-col gap-1",children:e.jsxs("div",{className:"p-3",children:[e.jsx("div",{children:r&&e.jsx(z,{tag:exports.HEADING_TAGS.H5,singleLine:!0,flush:!0,children:r})}),!p&&n&&e.jsx("div",{children:e.jsx(U,{className:"mb-0",children:pe(n)})}),p&&n&&e.jsx("div",{children:e.jsx(me,{className:"mb-0",data:pe(n)})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c&&e.jsx("div",{className:"flex shrink-0",children:c.map(((t,s)=>0===s?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[t," ·"]},t):s===c.length-1?e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t]},t):e.jsxs(U,{className:"text-xs",as:exports.COPY_TAG.SMALL,children:[" ",t," ·"]},t)))}),u&&e.jsxs("div",{className:"flex items-center gap-1 flex-wrap",children:[u.like&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.like.isActive?"mdi:like":"mdi:like-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.like)||void 0===t?void 0:t.onClick)&&"function"==typeof u.like.onClick&&u.like.onClick({id:i})}}),u.share&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.share.isActive?"mdi:share":"mdi:share-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.share)||void 0===t?void 0:t.onClick)&&"function"==typeof u.share.onClick&&u.share.onClick({id:i})}}),u.save&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.save.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.save)||void 0===t?void 0:t.onClick)&&"function"==typeof u.save.onClick&&u.save.onClick({id:i})}}),u.comment&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.comment.isActive?"mdi:comment":"mdi:comment-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.comment)||void 0===t?void 0:t.onClick)&&"function"==typeof u.comment.onClick&&u.comment.onClick({id:i})}}),u.bookmark&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.bookmark.isActive?"mdi:bookmark":"mdi:bookmark-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.bookmark)||void 0===t?void 0:t.onClick)&&"function"==typeof u.bookmark.onClick&&u.bookmark.onClick({id:i})}}),u.report&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.report.isActive?"mdi:flag":"mdi:flag-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.report)||void 0===t?void 0:t.onClick)&&"function"==typeof u.report.onClick&&u.report.onClick({id:i})}}),u.follow&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.follow.isActive?"mdi:account-plus":"mdi:account-plus-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.follow)||void 0===t?void 0:t.onClick)&&"function"==typeof u.follow.onClick&&u.follow.onClick({id:i})}}),u.download&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.download.isActive?"mdi:download":"mdi:download-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.download)||void 0===t?void 0:t.onClick)&&"function"==typeof u.download.onClick&&u.download.onClick({id:i})}}),u.edit&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.edit.isActive?"mdi:pencil":"mdi:pencil-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.edit)||void 0===t?void 0:t.onClick)&&"function"==typeof u.edit.onClick&&u.edit.onClick({id:i})}}),u.delete&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:u.delete.isActive?"mdi:delete":"mdi:delete-outline",size:exports.BTN_SIZES.SMALL,onClick:e=>{var t;e.stopPropagation(),(null===(t=null==u?void 0:u.delete)||void 0===t?void 0:t.onClick)&&"function"==typeof u.delete.onClick&&u.delete.onClick({id:i})}})]})]})]})})]});Se.displayName="CardVideo";const Ae=({id:t,title:a,description:i,icon:n,className:o,onClick:l,moreTitle:d,align:c})=>{const u=l?de:"";return e.jsxs("div",{id:t,"data-testid":"CardIcon",className:r.twMerge(s(ce,u,"p-8 group gap-4 flex flex-col cursor-default",{"items-start":"left"===c},{"items-center":"center"===c},{"items-end":"right"===c},o)),children:[n&&e.jsx("div",{className:s("relative"),children:e.jsx(T,{name:n,size:48})}),e.jsxs("div",{className:s({"text-left":"left"===c},{"text-center":"center"===c},{"text-right":"right"===c}),children:[e.jsx("div",{children:a&&e.jsx(z,{tag:exports.HEADING_TAGS.H5,singleLine:!0,children:a})}),e.jsx("div",{children:i&&e.jsx(U,{align:c,children:i})})]}),l&&e.jsx("div",{className:"flex items-center justify-start gap-2",children:e.jsx(_,{icon:"mdi:arrow-right",variant:exports.BTN_VARIANTS.LINK,onClick:l,children:d})})]})};Ae.displayName="CardIcon";const be=({testID:t,id:a,title:i,description:n,image:o,onClick:l,className:d,padded:c,icon:u,raised:m=!0,htmlDetails:p})=>e.jsxs("div",{id:a,"data-testid":t||"CardHorz",className:s("relative rounded-lg overflow-hidden flex gap-4 cursor-pointer",{"p-4":c},{"shadow hover:shadow-lg":m},d),onClick:l,children:[o&&e.jsx("div",{className:"w-1/3 aspect-[1/1]",children:e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden h-full",o.aspectRatio)),children:e.jsx(K,{fill:!0,src:null==o?void 0:o.src,alt:null==o?void 0:o.alt,className:"absolute inset-0 object-cover"})})}),u&&!o&&e.jsx("div",{className:"py-2 pl-2",children:e.jsx(T,{name:u,size:30})}),e.jsx("div",{className:"flex flex-1 overflow-hidden h-min",children:e.jsxs("div",{className:"flex-col gap-2 py-2 pr-2 overflow-hidden",children:[i&&e.jsx("div",{className:"",children:e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:i})}),!p&&n&&e.jsx("div",{children:e.jsx(U,{className:"mb-0",children:pe(n)})}),p&&n&&e.jsx("div",{children:e.jsx(me,{className:"mb-0",data:pe(n)})})]})})]});be.displayName="CardHorz";const Te=({testID:i,className:n,data:o,padded:l,shadow:d=!0})=>{const c=a.motionValue(0);return t.useEffect((()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||a.animate(c,200,{duration:.5})}),[c]),o?e.jsxs("div",{"data-testid":i||"CardData",className:r.twMerge(s("relative rounded-lg overflow-hidden flex flex-col items-center gap-4 p-2 bg-bodyBackground dark:bg-darkBodyBackground",{"p-4":l},{shadow:d},n)),children:[(null==o?void 0:o.animateNumber)&&e.jsxs("div",{className:"font-heading text-4xl md:text-4xl lg:text-4xl font-bold",children:[e.jsx(b,{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(z,{tag:exports.HEADING_TAGS.H2,flush:!0,children:null==o?void 0:o.item})}),e.jsx("div",{children:e.jsx(U,{className:"mb-0",children:null==o?void 0:o.label})})]}):e.jsx(e.Fragment,{})};Te.displayName="CardData";const je=t=>{var{variant:s,className:a,data:i}=t,r=R(t,["variant","className","data"]);switch(s){case"basic":default:return e.jsx(xe,Object.assign({className:a},i,r));case"media":return e.jsx(Ee,Object.assign({className:a},i,r));case"video":return e.jsx(Se,Object.assign({className:a},i,r));case"icon":return e.jsx(Ae,Object.assign({className:a},i,r));case"horz":return e.jsx(be,Object.assign({className:a},i,r));case"data":return e.jsx(Te,Object.assign({className:a},i,r))}};je.displayName="Card";const Ie=({text:t,tag:a=exports.HEADING_TAGS.H1})=>{const i=t.split(" ");return e.jsx("div",{"data-testid":"DisplayHeading",className:"relative",children:e.jsx(z,{tag:a,children:i.map(((t,a)=>{const r=a===i.length-1,n=`${t}-${a}`;return e.jsxs("span",{children:[e.jsx("span",{className:s({"display-heading relative font-heading":!r},{"inline-block relative font-heading":r}),children:e.jsxs(e.Fragment,{children:[r&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"display-heading--emphasis"}),e.jsx("span",{className:"display-heading--lastword",children:t})]}),!r&&e.jsx("span",{children:t})]})}),!r&&" "]},n)}))})})};Ie.displayName="DisplayHeading";const Ce=({children:a,className:i,submit:r,onSubmit:n=(()=>{}),onChange:o,hideSubmit:l,ariaSubmitLabel:c,submitID:u,submitVariant:m=exports.BTN_VARIANTS.PRIMARY,initialValues:p={},isBoxed:x=!1,submitType:h=exports.BTN_TYPES.SUBMIT,disabledSubmitWithReturn:v=!1,isDisabled:f=!1})=>{const N=d.useForm({defaultValues:p,mode:"onBlur",reValidateMode:"onChange"});t.useEffect((()=>{if(o&&"function"==typeof o){const e=N.watch(((e,t)=>{o(e,t)}));return()=>e.unsubscribe()}}),[]);const g=s({"sr-only":l}),{formState:{isSubmitting:E,isDirty:S,isValid:A}}=N;return e.jsx(d.FormProvider,Object.assign({},N,{children:e.jsx("div",{"data-testid":"Form",className:s("w-full max-w-s @containers @form"),children:e.jsxs("form",{onSubmit:N.handleSubmit(n),onKeyDown:e=>{v&&"Enter"===e.key&&e.preventDefault()},className:s("w-2xs relative",{"form px-8 pt-6 pb-8 ":x},{"opacity-50":E},i),children:[a,r&&e.jsx("div",{className:"flex items-center justify-end",children:e.jsx(_,{id:u||r,className:g,ariaLabel:c||r||"Submit",type:h,outline:!0,isLoading:E,disabled:E||!A||!S||f,variant:m,children:r})})]})})}))};var ye;Ce.displayName="Form",exports.FIELD_TYPES=void 0,(ye=exports.FIELD_TYPES||(exports.FIELD_TYPES={})).TEXT="text",ye.TEXTAREA="textarea",ye.SELECT="select",ye.CHECKBOX="checkbox",ye.RADIO="radio",ye.SWITCH="switch",ye.DATE="date",ye.TIME="time",ye.DATETIME="datetime",ye.FILE="file",ye.PASSWORD="password",ye.EMAIL="email",ye.NUMBER="number",ye.TEL="tel",ye.URL="url",ye.SEARCH="search",ye.HIDDEN="hidden";const Oe=t.forwardRef((function(t,a){var{id:i,name:r,options:n,required:o,className:l,disabled:d}=t,c=R(t,["id","name","options","required","className","disabled"]);if(!n)throw new Error("FormSelect requires options prop");return e.jsx("div",{id:i,className:s("pb-2 min-w-20",l),children:e.jsxs("div",{className:"relative",children:[e.jsx("select",Object.assign({ref:a,name:r,disabled:d,required:o,className:"form-item text-input pr-10"},c,{children:n.map(((t,s)=>{var a,i;return e.jsx("option",{value:null===(a=null==t?void 0:t.value)||void 0===a?void 0:a.toString(),disabled:t.disabled,className:"bg-bodyBackground dark:bg-darkBodyBackground",children:t.label},`${null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.toString()}--${s}`)}))})),e.jsx("div",{className:"form-icon absolute inset-0 z-10 pointer-events-none h-full w-12 items-center justify-center top-0 right-0 left-auto flex",children:e.jsx(T,{name:"mdi:chevron-down",size:24,className:"pointer-events-none"})})]})})}));Oe.displayName="FormSelect";const _e=({name:a,type:i,label:r,required:n,className:o,icon:l,options:c,disabled:u,description:m,showPasswordLabel:p,hidePasswordLabel:x,validations:h={},fileUploadCallback:v=(()=>{}),autoComplete:f})=>{var N,g;const[E,S]=t.useState(!1),{control:A,formState:b}=d.useFormContext(),{errors:j}=b,I=r&&i!==exports.FIELD_TYPES.CHECKBOX,C=n||Boolean(h.required)?`${r} *`:r;return e.jsx("div",{className:"relative",children:e.jsxs("div",{"data-testid":"FormField",className:"mb-4",children:[I&&e.jsx("div",{className:"flex items-baseline justify-between",children:e.jsx(Z,{id:a,children:C})}),e.jsx("div",{className:"mb-1",children:e.jsx(d.Controller,{defaultValue:"",name:a,control:A,rules:h,render:({field:t})=>((t,i)=>{switch(t){case exports.FIELD_TYPES.HIDDEN:return e.jsx("input",Object.assign({type:ie.HIDDEN,disabled:u},i));case exports.FIELD_TYPES.TEXT:return e.jsx(re,Object.assign({type:ie.TEXT,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i));case exports.FIELD_TYPES.PASSWORD:{const t=E?ie.TEXT:ie.PASSWORD,a="appearance-none border-none bg-transparent flex items-center";return e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute right-0 top-0 flex items-center justify-center h-full z-10 pr-2",onClick:()=>S((e=>!e)),role:"button",tabIndex:0,children:E?e.jsx("button",{type:"button","aria-label":x,className:s(a,"form-icon"),children:e.jsx(T,{name:"mdi:eye-off",size:24})}):e.jsx("button",{type:"button","aria-label":p,className:s(a,"form-icon"),children:e.jsx(T,{name:"mdi:eye",size:24})})}),e.jsx(re,Object.assign({type:t,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i))]})}case exports.FIELD_TYPES.TEXTAREA:return e.jsx(re,Object.assign({type:ie.TEXTAREA,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.EMAIL:return e.jsx(re,Object.assign({type:ie.EMAIL,required:n||Boolean(h.required),icon:l,className:o,disabled:u,autoComplete:f},i));case exports.FIELD_TYPES.DATE:return e.jsx(re,Object.assign({type:ie.DATE,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.DATETIME:return e.jsx(re,Object.assign({type:ie.DATETIME,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.NUMBER:return e.jsx(re,Object.assign({type:ie.NUMBER,required:n||Boolean(h.required),icon:l,className:o,disabled:u},i));case exports.FIELD_TYPES.CHECKBOX:return e.jsx(w,Object.assign({required:n||Boolean(h.required),id:a,className:o,label:r,disabled:u},i));case exports.FIELD_TYPES.RADIO:return e.jsx(se,Object.assign({required:n||Boolean(h.required),id:a,className:o,options:c,disabled:u},i));case exports.FIELD_TYPES.SWITCH:return e.jsx(ae,Object.assign({id:a,required:n||Boolean(h.required),className:o,disabled:u},i));case exports.FIELD_TYPES.SELECT:return e.jsx(Oe,Object.assign({required:n||Boolean(h.required),id:a,className:o,disabled:u,label:r,options:c},i));case exports.FIELD_TYPES.FILE:return e.jsx(H,Object.assign({required:n||Boolean(h.required),id:a,className:o,disabled:u,onChangeCallback:e=>{v(e)}},i));default:return e.jsx(re,Object.assign({type:ie.TEXT,required:n||Boolean(h.required),disabled:u,icon:l,className:o},i))}})(i,t)})}),m&&e.jsx("div",{className:"formfield-description",children:e.jsx(U,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:m})}),j[a]&&e.jsx("div",{className:"formfield-error text-error italic",children:e.jsx(U,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:null===(g=null===(N=null==j?void 0:j[a])||void 0===N?void 0:N.message)||void 0===g?void 0:g.toString()})})]})})};_e.displayName="FormField";const Re=({testID:t,url:s,title:a="Share",enabled:i={facebook:!0,twitter:!0}})=>e.jsxs("div",{"data-testid":t||"Share",className:"flex gap-2 items-center ",children:[e.jsx("div",{children:e.jsxs(U,{as:exports.COPY_TAG.P,className:"mb-0",children:[ne.UI.SHARE,":"]})}),(null==i?void 0:i.facebook)&&e.jsx(c.FacebookShareButton,{url:s,title:a,className:"",children:e.jsx(T,{name:"mdi:facebook"})}),(null==i?void 0:i.twitter)&&e.jsx(c.TwitterShareButton,{url:s,title:a,className:"",children:e.jsx(T,{name:"mdi:twitter"})}),(null==i?void 0:i.whatsapp)&&e.jsx(c.WhatsappShareButton,{url:s,title:a,className:"",children:e.jsx(T,{name:"mdi:whatsapp"})}),(null==i?void 0:i.email)&&e.jsx(c.EmailShareButton,{url:s,title:a,className:"",children:e.jsx(T,{name:"mdi:email"})}),(null==i?void 0:i.linkedin)&&e.jsx(c.LinkedinShareButton,{url:s,title:a,className:"",children:e.jsx(T,{name:"mdi:linkedin"})})]});Re.displayName="Share";const Le=({data:a})=>{const[i,r]=t.useState(0);return a?e.jsx("div",{"data-testid":"Tabs",children:e.jsxs(u.Tabs,{onSelect:e=>r(e),children:[e.jsx(u.TabList,{className:"mb-8 flex p-0",children:a.map(((t,a)=>e.jsx(u.Tab,{className:s("list-none rel ative cursor-pointer inline-block flex-1 items-center justify-center p-4",{"border-transparent border-solid border-0 border-b-2":i!==a,"border-primary border-solid border-0 border-b-2":i===a}),children:e.jsx(U,{className:"m-0 text-center",children:t.title})},a)))}),a.map(((t,s)=>e.jsx(u.TabPanel,{className:"",children:t.content},s)))]})}):e.jsx(e.Fragment,{})};Le.displayName="Tabs";const we=({testID:t,facebook:s,twitter:a,instagram:i,linkedin:r})=>e.jsxs("div",{"data-testid":t||'"VisitUs"',className:"flex gap-2",children:[s&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:facebook",onClick:()=>window.open(s.url)}),a&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:twitter",onClick:()=>window.open(a.url)}),i&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:instagram",onClick:()=>window.open(i.url)}),r&&e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,size:exports.BTN_SIZES.MEDIUM,icon:"mdi:linkedin",onClick:()=>window.open(r.url)})]});we.displayName="VisitUs";const De=({testID:t,title:a,links:i,inline:n=!0,separators:o=!1,className:l})=>e.jsxs("div",{"data-testid":t||'"Menu"',className:r.twMerge(s("flex flex-col gap-2",l)),children:[a&&e.jsx("div",{children:e.jsx(z,{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==i?void 0:i.map(((t,s)=>{const a=`${t.id}--${s}`;return e.jsxs("div",{className:"flex gap-0",children:[e.jsx("div",{className:"relative py-2",children:e.jsxs(D,{href:t.url,className:"flex gap-1",children:[t.icon&&e.jsx(T,{name:t.icon}),t.title&&e.jsx("div",{children:t.title})]})}),o&&s+1<i.length&&e.jsx("div",{className:"h-full flex self-center px-2",children:e.jsx(T,{name:"mdi:dot",className:"opacity-50"})})]},a)}))})]});var ke;De.displayName="Menu",function(e){e.ROW="row",e.COLUMN="column"}(ke||(ke={}));const Pe=({children:t,className:a,spacing:i,padded:n,isNarrow:o,isCentered:l,isFlush:d,direction:c=ke.COLUMN})=>{const u=r.twMerge(s("container relative mx-auto my-0",{"px-2 md:px-4 lg:px-4":n},{"py-40":"feature"===i},{"py-24":"component"===i},{"py-16":"module"===i},{"py-10":"element"===i},{"py-4":"atom"===i},{"py-0":"none"===i},{"max-w-3xl":o},{"flex items-center justify-center flex-col":l},{"px-0 max-w-full mx-0":d},{"flex flex-col":c===ke.COLUMN},{"flex-row":c===ke.ROW})),m=s("w-full",a);return e.jsx("div",{"data-testid":"Container",className:u,children:e.jsx("div",{className:m,children:t})})};Pe.displayName="Container";const Me=({testID:t,children:a,withBg:i=!0,inversed:r=!1})=>e.jsxs("div",{"data-testid":t||"PanelHero",className:"relative py-8 m-auto w-full flex flex-none flex-nowrap",children:[i&&e.jsx("div",{className:s("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!r,"-top-24 left-0":r})}),e.jsx(Pe,{children:a})]});Me.displayName="Hero";const Fe=({testID:i,bgAsset:r,focalAsset1:n,focalAsset2:o,focalAsset3:l})=>{const d=t.useRef(null);a.useInView(d);const c={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":i||"AnimationSet1",className:s("relative w-full h-full"),children:[r&&e.jsx(a.motion.div,{className:"absolute left-1/2 top-1/2 w-full h-full",initial:{opacity:.001,rotate:0,scale:.5,x:0,y:0,perspective:"1200px",translateX:"-50%",translateY:"-50%"},animate:{opacity:.5,rotate:0,rotateX:0,rotateY:0,scale:1.25,transition:{damping:60,delay:.7,mass:1.2,stiffness:300,type:"spring"},perspective:"1200px",translateX:"-50%",translateY:"-50%",x:0,y:0},transition:{duration:.5},children:e.jsx(K,{src:r.src,alt:r.alt,fill:!0})}),(n||o)&&e.jsxs(a.motion.div,{className:"absolute right-0 top-1/2 z-10 overflow-visible w-3/4 aspect-[0.78/1]",style:{transform:"translateY(-50%)"},children:[n&&e.jsx(a.motion.div,{className:"absolute w-1/2 aspect-[0.35/1] right-16 top-0",initial:c,animate:u,children:e.jsx(K,{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:c,animate:Object.assign(Object.assign({},u),{transition:Object.assign(Object.assign({},u.transition),{delay:.3})}),children:e.jsx(K,{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(K,{src:l.src,fill:!0,alt:l.alt})})})]})};Fe.displayName="AnimationSet1";const Be=`${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}`,Ue=`${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}`,Ge={required:"Email required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},He={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."}},Ye=({handleSubmit:t,initialValues:s,showSocialButtons:a=!1})=>e.jsxs("div",{"data-testid":"LoginForm",className:"form-wrapper",children:[e.jsxs(Ce,{onSubmit:t,submit:ne.FORMS.LOGIN_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx(_e,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ne.FORMS.LOGIN_FORM.EMAIL,required:!0,validations:Ge,autoComplete:"email"}),e.jsx(_e,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ne.FORMS.LOGIN_FORM.PASSWORD,required:!0,autoComplete:"current-password"})]}),a&&e.jsxs(e.Fragment,{children:[e.jsx(q,{}),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(_,{onClick:()=>window.location.assign(Be),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ne.UI.LOGIN_WITH_GOOGLE}),e.jsx(_,{onClick:()=>window.location.assign(Ue),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ne.UI.LOGIN_WITH_APPLE})]})})]})]});Ye.displayName="LoginForm";const Ve=({handleSubmit:t,showSocialButtons:s=!1})=>e.jsxs("div",{"data-testid":"RegisterForm",className:"form-wrapper",children:[e.jsxs(Ce,{onSubmit:t,submit:ne.FORMS.REGISTER_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:[e.jsx(_e,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ne.FORMS.REGISTER_FORM.EMAIL,required:!0,validations:Ge,autoComplete:"email"}),e.jsx(_e,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ne.FORMS.REGISTER_FORM.PASSWORD,required:!0,description:ne.FORMS.REGISTER_FORM.PASSWORD_DESCRIPTION,validations:He,autoComplete:"new-password"})]}),s&&e.jsxs(e.Fragment,{children:[e.jsx(q,{}),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(_,{onClick:()=>window.location.assign(Be),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:google",children:ne.UI.SIGNUP_WITH_GOOGLE}),e.jsx(_,{onClick:()=>window.location.assign(Ue),variant:exports.BTN_VARIANTS.PRIMARY,iconFirst:!0,icon:"mdi:apple",children:ne.UI.SIGNUP_WITH_APPLE})]})})]})]});Ve.displayName="RegisterForm";const We=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ForgotPasswordForm",className:"form-wrapper",children:e.jsx(Ce,{onSubmit:t,submit:ne.FORMS.FORGOT_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(_e,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ne.FORMS.FORGOT_PASSWORD_FORM.EMAIL,required:!0,validations:Ge})})});We.displayName="ForgotPasswordForm";const ze=({loginSubmit:s,registerSubmit:a,passwordForgotSubmit:i,handleTokenCallback:r,showSocialLogin:n=!1})=>{const[o,l]=t.useState(!1);return t.useEffect((()=>{!function(){L(this,0,void 0,(function*(){if(!process.env.AWS_COGNITO_USERPOOL_DOMAIN||!process.env.AWS_COGNITO_CLIENT_ID||!process.env.AWS_COGNITO_REDIRECT_URI)return;const e=new URLSearchParams(window.location.search).get("code");if(e){const t=`${process.env.AWS_COGNITO_USERPOOL_DOMAIN}/oauth2/token`,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}),i=yield a.json();i&&r&&"function"==typeof r&&r(i)}}))}()}),[]),e.jsxs("div",{"data-testid":"Authenticator",className:"w-[300px] md:w-128",children:[!o&&e.jsx(Le,{data:[{title:"Login",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(Ye,{handleSubmit:s,showSocialButtons:n}),e.jsx("div",{className:"mt-4",children:e.jsx(_,{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(Ve,{handleSubmit:a,showSocialButtons:n})})}]}),o&&e.jsx(Le,{data:[{title:"Forgot Password",content:e.jsxs("div",{className:"flex flex-col gap-4 items-center",children:[e.jsx(We,{handleSubmit:i}),e.jsx("div",{className:"mt-4",children:e.jsx(_,{variant:exports.BTN_VARIANTS.LINK,onClick:()=>l(!o),children:o?"Back to Login":"Forgot Password?"})})]})}]})]})};function qe({className:t,onClick:s}){return e.jsx(_,{className:"absolute -right-2 top-1/2 -translate-y-1/2 z-10",onClick:s,icon:"mdi:navigate-next",rounded:!0})}function Ke({className:t,onClick:s}){return e.jsx(_,{className:"absolute -left-2 top-1/2 -translate-y-1/2 z-10",onClick:s,icon:"mdi:navigate-before",rounded:!0})}ze.displayName="Authenticator";const Ze=({testID:t,data:s,onPressCallback:a=(()=>{}),count:i=5,isCentered:r=!1,carouselOptions:n={loop:!1,scrollAnimationDuration:500,showDots:!1,showArrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:i}},{breakpoint:600,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}]}})=>{const o=s.length<=i;return e.jsx("div",{"data-testid":t||'"Carousel"',className:"mb-4",children:e.jsx(m,{arrows:!o&&n.showArrows,nextArrow:e.jsx(qe,{}),prevArrow:e.jsx(Ke,{}),centerMode:r,responsive:n.responsive,slidesToScroll:1,slidesToShow:i,dots:!o&&n.showDots,infinite:!o&&n.loop,speed:n.scrollAnimationDuration,children:s.map(((t,s)=>e.jsx("div",{className:"px-2",children:e.jsx(je,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>{a(t.data.id)}}),className:t.className},s)},s)))})})};var $e;Ze.displayName="Carousel",function(e){e.NONE="py-0",e.ATOM="py-8",e.DEFAULT="py-16",e.ELEMENT="py-24",e.COMPONENT="py-32",e.MODULE="py-40",e.FEATURE="py-64"}($e||($e={}));const Xe=({testID:i,cardData:r,title:n,description:o,withSeparators:l,spacing:d=$e.MODULE})=>{const c=t.useRef(null),u=a.useInView(c,{once:!0});return e.jsxs("div",{ref:c,"data-testid":i||"PanelCards",className:s("relative m-auto w-full flex flex-col flex-none flex-nowrap",d),children:[(n||o)&&e.jsxs("div",{className:"relative text-center py-8",children:[n&&e.jsx(Ie,{text:n}),o&&e.jsx(U,{align:exports.COPY_ALIGN.CENTER,children:o})]}),e.jsx("div",{className:"flex gap-8",children:null==r?void 0:r.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:u?"none":"translateY(200px)",opacity:u?1:0,transition:`all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1) ${.1*a}s`},children:e.jsx(je,Object.assign({},t))}),l&&a<r.length-1&&e.jsx("div",{className:"w-1 h-10 border-0 border-r border-solid border-primary500"},`separator-${a}`)]},`card-${a}`)))})]})};Xe.displayName="PanelCards";const Qe=({testID:t,title:a,description:i,inversed:r,assets:n,buttonData:o,withBg:l=!0,spacing:d=$e.DEFAULT})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap",d),children:[l&&e.jsx("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -top-24 -left-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e.jsx(Pe,{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":r}),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(Ie,{text:a}),e.jsx(U,{className:"mb-0",children:i})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 my-8",children:[e.jsx(G,{rounded:!0,text:"New",variant:"info"}),e.jsx(G,{rounded:!0,text:"Trending",variant:"info"}),e.jsx(G,{rounded:!0,text:"Popular",variant:"info"})]}),e.jsx("div",{className:"",children:e.jsx(_,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(Fe,{bgAsset:n.bgAsset,focalAsset1:n.focalAsset1,focalAsset2:n.focalAsset2,focalAsset3:n.focalAsset3})})})]})})]});Qe.displayName="PanelFeature";const Je=({url:a,sources:i,onReady:n,className:o,options:l={},isYoutube:d=!1,defaultAudioTrack:c="No Music",rounded:u=!0,aspectRatioValue:m})=>{const h=t.useRef(null),v=t.useRef(null),f=t.useRef(null),N=t.useMemo((()=>{switch(m){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]"}}}),[m]);return t.useEffect((()=>{var e;if(d)return;const t=Object.assign(Object.assign({autoplay:!0,controls:!0,muted:!1,responsive:!0,fill:!0,fluid:!0,aspectRatio:N.aspectRatio||"16:9",controlBar:{skipButtons:{forward:30,backward:30},volumePanel:{inline:!0}},html5:{hls:{enableLowInitialPlaylist:!0}}},l),{sources:i});if(console.log("videoOptions",t),f.current){const e=f.current;e.autoplay(l.autoplay),e.src(l.sources)}else{const s=document.createElement("video-js");s.classList.add("vjs-big-play-centered"),null===(e=null==v?void 0:v.current)||void 0===e||e.appendChild(s);const a=f.current=x(s,t,(()=>{x.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===c&&(e[t].enabled=!0)}))}}),[l,v]),t.useEffect((()=>{if(d)return;const e=f.current;return()=>{e&&!e.isDisposed()&&(e.dispose(),f.current=null)}}),[f]),d&&a?e.jsx("div",{"data-testid":"Video",className:s("relative w-full h-full aspect-[16/9]",o),children:e.jsx(p,{ref:h,className:"react-player",url:a,width:"100%",height:"100%",controls:!0,onReady:n})}):e.jsx("div",{className:r.twMerge(s("relative w-full overflow-hidden h-full aspect-[16/9] bg-black object-cover",{rouded:u},N.className,o)),children:e.jsx("div",{"data-vjs-player":!0,children:e.jsx("div",{ref:v,className:"object-cover"})})})};Je.displayName="Video";const et=({testID:i,title:n,contentComponent:o,description:l,image:d,buttonData:c,inversed:u=!1,withBg:m=!0,spacing:p,video:x,headingTag:h,className:v})=>{const f=a.useAnimation(),N=t.useRef(null),g=a.useInView(N),E={damping:30,delay:0,mass:1.2,stiffness:200,type:"spring",duration:.5};t.useEffect((()=>{g&&f.start((e=>({transform:"none",transition:Object.assign(Object.assign({},E),{delay:.1*e})})))}),[f,g]);const S=t.useMemo((()=>{switch(null==x?void 0:x.aspectRatioValue){case"4/3":return"aspect-[4/3]";case"1/1":return"aspect-[1/1]";case"3/4":return"aspect-[3/4]";case"9/16":return"aspect-[9/16]";case"16/7":return"aspect-[16/7]";case"16/5":return"aspect-[16/5]";default:return"aspect-[16/9]"}}),[x]),A=u?"translateX(100px)":"translateX(-100px)";return e.jsxs("div",{"data-testid":i||"PanelHero",className:r.twMerge(s("relative m-auto w-full flex flex-none flex-nowrap py-16 sm:py-24 md:py-32 lg:py-40",p,v)),children:[m&&e.jsx("div",{className:s("rounded-full blur-[200px] flex flex-none aspect-1 absolute w-[700px] opacity-20 bg-gradient-to-b md:bg-gradient-to-r from-primary-darker to-primary-lighter z-0",{"-bottom-24 right-0":!u,"-top-24 left-0":u})}),e.jsx(Pe,{children:e.jsxs("div",{className:s("relative flex flex-col md:flex-row flex-nowrap w-full h-min justify-between overflow-visible p-0 items-center gap-0 md:gap-16",{"md:flex-row-reverse":u}),children:[e.jsx("div",{ref:N,className:"w-full md:w-1/2 flex flex-col items-start justify-center z-10",children:e.jsxs("div",{className:s("relative flex flex-col gap-4 from-bodyBackground dark:from-darkBodyBackground p-4 rounded",{"text-right bg-gradient-to-t md:bg-gradient-to-l":!u},{"text-left bg-gradient-to-t md:bg-gradient-to-r":u}),children:[e.jsx(a.motion.div,{initial:{transform:A},custom:0,animate:f,children:e.jsx(Ie,{text:n,tag:h})}),o&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:f,children:o}),l&&e.jsx(a.motion.div,{initial:{transform:A},custom:1,animate:f,children:e.jsx(me,{className:"mb-0",align:u?exports.COPY_ALIGN.LEFT:exports.COPY_ALIGN.RIGHT,data:l})}),c&&e.jsx(a.motion.div,{initial:{transform:A},custom:2,animate:f,children:e.jsx("div",{className:s("flex items-center",{"justify-end":!u,"justify-start":u}),children:e.jsx(_,Object.assign({},c))})})]})}),e.jsx("div",{className:"relative w-full md:w-1/2 z-0",children:e.jsxs("div",{className:s("relative scale-[1.35] rounded overflow-hidden shadow",S),children:[d&&e.jsx(K,{src:d,alt:n,fill:!0}),x&&e.jsx(Je,{sources:x.sources,options:{autoplay:!0,muted:!0,controls:!1},aspectRatioValue:x.aspectRatioValue})]})})]})})]})};et.displayName="PanelHero";const tt=({testID:t,title:a,description:i,image1:r,image2:n,iosLink:o="#",androidLink:l="#",inversed:d=!1,withBg:c=!0,spacing:u=$e.MODULE})=>e.jsxs("div",{"data-testid":t||"PanelFeature",className:s("relative m-auto w-full flex flex-none flex-nowrap",u),children:[c&&e.jsx("div",{className:"rounded-full blur-[250px] flex flex-none aspect-1 absolute -bottom-24 -right-48 w-[500px] opacity-20 bg-gradient-to-r from-primary-darker to-primary-lighter"}),e.jsx(Pe,{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":d}),children:[e.jsxs("div",{className:"w-full md:w-1/2 top-0 relative",children:[e.jsx("div",{className:"absolute aspect-[8/17] -rotate-12 w-[135px] left-1/3 top-4 md:w-[180px] md:left-1/3 md:top-4 lg:w-[210px] lg:left-1/2 lg:-top-1/3",children:e.jsx(K,{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(K,{src:r,alt:a})})]}),e.jsxs("div",{className:"w-full md:w-1/2",children:[e.jsx("div",{children:e.jsx(Ie,{text:a})}),e.jsx("div",{children:e.jsx(U,{children:i})}),e.jsxs("div",{className:"flex items-center justify-start gap-4",children:[e.jsx("div",{className:"relative w-[150px] h-[50px]",children:e.jsx(D,{href:o,target:"_blank",hideExternalIcon:!0,children:e.jsx(K,{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(D,{href:l,target:"_blank",hideExternalIcon:!0,children:e.jsx(K,{src:"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png",alt:"Google Play"})})})]})]})]})})]});tt.displayName="PanelProduct";const st=({testID:t,className:i,title:r,description:n,spacing:o=$e.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,i),children:[e.jsx(Je,{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:[r&&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(z,{tag:exports.HEADING_TAGS.H2,children:r})})}),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(U,{children:n})})})]})]})]});st.displayName="PanelVideo";const at=({testID:t,data:s,onPressCallback:a})=>e.jsx("div",{"data-testid":t||'"CardGrid"',className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:s.map(((t,s)=>e.jsx(je,{variant:t.variant,data:Object.assign(Object.assign({},t.data),{onClick:()=>a(t.data.id)})},s)))});var it;at.displayName="CardGrid",exports.CPL_SPACING=void 0,(it=exports.CPL_SPACING||(exports.CPL_SPACING={})).NONE="none",it.ATOM="atom",it.DEFAULT="default",it.ELEMENT="element",it.COMPONENT="component",it.MODULE="module",it.FEATURE="feature";const rt=({spacing:t=exports.CPL_SPACING.DEFAULT,children:a,narrow:i,flush:r,className:n})=>{const o=s("flex","flex-col","flex-1","relative",{"py-40":"feature"===t},{"py-24":"component"===t},{"py-16":"module"===t},{"py-10":"element"===t},{"py-8":"default"===t},{"py-4":"atom"===t},{"py-0":"none"===t},{"max-w-5xl":i},{"p-0":r},n);return e.jsx("div",{"data-testid":"ContentPageLayout",className:o,children:a})};var nt;rt.displayName="ContentPageLayout",exports.CRL_SIZE=void 0,(nt=exports.CRL_SIZE||(exports.CRL_SIZE={})).NONE="none",nt.ATOM="atom",nt.DEFAULT="default",nt.ELEMENT="element",nt.COMPONENT="component",nt.MODULE="module",nt.FEATURE="feature";const ot=({className:t,children:a,size:i=exports.CRL_SIZE.DEFAULT})=>{const r=s("grid","auto-rows-min","grid-cols-1","gap-x-4",{"gap-y-0 mb-0":"none"===i},{"gap-y-2 mb-2":"atom"===i},{"gap-y-4 mb-4":"default"===i},{"gap-y-8 mb-8":"element"===i},{"gap-y-16 mb-16":"module"===i},{"gap-y-24 mb-24":"component"===i},{"gap-y-40 mb-40":"feature"===i},t);return e.jsx("div",{"data-testid":"ContentRowsLayout",className:r,children:a})};ot.displayName="ContentRowsLayout";const lt=({testID:a,className:i})=>{var r,n,o,l,d,c,u,m,p,x,h,v,f,N;const g=t.useContext(he);return e.jsx("footer",{className:s("w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto pt-16 pb-8",i),children:e.jsxs(Pe,{padded:!0,children:[e.jsxs("div",{"data-testid":a||'"Footer"',className:"footer flex flex-col md:flex-row py-8 gap-8",children:[e.jsxs("div",{className:"relative w-full md:w-1/3 flex flex-col gap-4 items-center md:items-start",children:[(null===(r=null==g?void 0:g.brand)||void 0===r?void 0:r.logo)&&e.jsx("div",{className:"relative w-24",children:e.jsx(J,{logo:null===(n=null==g?void 0:g.brand)||void 0===n?void 0:n.logo,aspectRatioClass:null===(o=null==g?void 0:g.brand)||void 0===o?void 0:o.logoAspectRatio})}),(null===(l=g.footer)||void 0===l?void 0:l.about)&&e.jsx("div",{children:e.jsx(U,{children:g.footer.about})}),e.jsx("div",{children:e.jsx(we,{facebook:null===(c=null===(d=g.footer)||void 0===d?void 0:d.visitUs)||void 0===c?void 0:c.facebook,twitter:null===(m=null===(u=g.footer)||void 0===u?void 0:u.visitUs)||void 0===m?void 0:m.twitter,instagram:null===(x=null===(p=g.footer)||void 0===p?void 0:p.visitUs)||void 0===x?void 0:x.instagram,linkedin:null===(v=null===(h=g.footer)||void 0===h?void 0:h.visitUs)||void 0===v?void 0:v.linkedin})})]}),(null===(f=g.footer)||void 0===f?void 0:f.menus)&&e.jsx("div",{className:"flex gap-4 flex-1 flex-col md:flex-row items-center md:items-start",children:g.footer.menus.map(((t,s)=>e.jsx("div",{className:"flex flex-1",children:e.jsx(De,{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(U,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:["© ",(new Date).getFullYear()," ",ne.UI.COPYRIGHT," ",null===(N=g.brand)||void 0===N?void 0:N.name]}),e.jsx(U,{align:exports.COPY_ALIGN.CENTER,as:exports.COPY_TAG.SMALL,children:ne.UI.ALL_RIGHTS_RESERVED})]})]})})};lt.displayName="Footer";const dt=({testID:a,hideMenu:i=!1,className:r,logoOnly:n})=>{var o,l,d,c,u,m,p,x,h,v,f,N,g,E,S,A,b,T,j,I,C,y;const O=t.useContext(he),R=fe(),[L,w]=t.useState("hidden"),[k,P]=t.useState(!1),M=()=>{w("hidden"===L?"block":"hidden")};return n?e.jsx("header",{"data-testid":a||'"Header"',className:s("relative z-10 w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4 px-4 md:px-2 lg:px-0 bg-bodyBackground",r),children:e.jsx("div",{className:"relative w-full flex justify-center items-center",children:(null===(o=null==O?void 0:O.brand)||void 0===o?void 0:o.logo)&&e.jsx("div",{className:"relative w-56",children:e.jsx(D,{href:"/",children:e.jsx(J,{logo:null===(l=null==O?void 0:O.brand)||void 0===l?void 0:l.logo,aspectRatioClass:null===(d=null==O?void 0:O.brand)||void 0===d?void 0:d.logoAspectRatio})})})})}):e.jsx("header",{"data-testid":a||'"Header"',className:s("relative z-10 w-full md:max-w-screen-lg lg:max-w-screen-xl m-auto py-4",r),children:e.jsxs(Pe,{padded:!0,children:[e.jsxs("div",{className:"relative w-full flex",children:[(null===(c=null==O?void 0:O.brand)||void 0===c?void 0:c.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(D,{href:"/",children:e.jsx(J,{logo:null===(u=null==O?void 0:O.brand)||void 0===u?void 0:u.logo,aspectRatioClass:null===(m=null==O?void 0:O.brand)||void 0===m?void 0:m.logoAspectRatio})})}),e.jsx("div",{className:"flex-1 hidden md:flex items-center justify-center",children:(null===(p=null==O?void 0:O.header)||void 0===p?void 0:p.nav)&&e.jsx(De,{links:O.header.nav,separators:!0})}),e.jsxs("div",{className:"hidden md:flex flex-col justify-center",children:[!(null===(x=null==O?void 0:O.app)||void 0===x?void 0:x.isAuthenticated)&&(null===(h=null==O?void 0:O.app)||void 0===h?void 0:h.loginCallback)&&e.jsx("div",{className:"w-32 flex justify-end",children:e.jsx(_,{onClick:null===(v=null==O?void 0:O.app)||void 0===v?void 0:v.loginCallback,children:R.UI.LOGIN})}),!(null===(f=null==O?void 0:O.app)||void 0===f?void 0:f.isAuthenticated)&&!(null===(N=null==O?void 0:O.app)||void 0===N?void 0:N.loginCallback)&&e.jsx("div",{className:"w-32 flex justify-end"}),(null===(g=null==O?void 0:O.app)||void 0===g?void 0:g.isAuthenticated)&&e.jsxs("div",{className:"relative",children:[e.jsx(_,{onClick:()=>P(!k),icon:k?"mdi:user-outline":"mdi:user"}),e.jsx("div",{onClick:()=>P(!1),className:s("absolute bg-bodyBackground dark:bg-darkBodyBackground shadow rounded py-2 px-4 right-0 top-12 w-24 z-20",{hidden:!k}),children:(null===(E=null==O?void 0:O.header)||void 0===E?void 0:E.profile)&&e.jsx(De,{links:O.header.profile,inline:!1})})]})]}),e.jsx("div",{className:"flex md:hidden flex-col justify-center flex-1 items-end",children:e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:menu",onClick:M})})]}),e.jsxs("div",{className:s("navbar-menu relative z-50",L,{hidden:i}),children:[e.jsx("div",{className:"navbar-backdrop fixed inset-0 bg-black opacity-25"}),e.jsxs("nav",{className:"fixed top-0 left-0 bottom-0 flex flex-col w-5/6 max-w-sm py-4 px-4 bg-bodyBackground dark:bg-darkBodyBackground border-r overflow-y-auto",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("div",{className:"relative w-32",children:(null===(S=null==O?void 0:O.brand)||void 0===S?void 0:S.logo)&&e.jsx("div",{className:"relative w-32",children:e.jsx(J,{logo:null===(A=null==O?void 0:O.brand)||void 0===A?void 0:A.logo,aspectRatioClass:null===(b=null==O?void 0:O.brand)||void 0===b?void 0:b.logoAspectRatio})})}),e.jsx("div",{children:e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:close",onClick:M})})]}),e.jsxs("div",{className:"flex flex-col flex-1 gap-4",children:[(null===(T=null==O?void 0:O.app)||void 0===T?void 0:T.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(U,{children:"User profile avatar and details here."})}),e.jsx("div",{className:"flex flex-1 justify-center pt-4",children:(null===(j=null==O?void 0:O.header)||void 0===j?void 0:j.nav)&&e.jsx(De,{links:O.header.nav,inline:!1})}),(null===(I=null==O?void 0:O.app)||void 0===I?void 0:I.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(_,{onClick:null===(C=null==O?void 0:O.app)||void 0===C?void 0:C.logoutCallback,children:R.UI.LOGOUT})}),!(null===(y=null==O?void 0:O.app)||void 0===y?void 0:y.isAuthenticated)&&e.jsx("div",{className:"md:hidden flex justify-center",children:e.jsx(_,{onClick:()=>{var e;null===(e=null==O?void 0:O.app)||void 0===e||e.loginCallback(),M()},children:R.UI.LOGIN})})]})]})]})]})})};dt.displayName="Header";const ct=({testID:a,inputCallback:i,seperator:r,numInputs:n=4,shouldAutoFocus:o=!1,size:l="medium"})=>{const[d,c]=t.useState("");t.useEffect((()=>{d&&4===d.length&&void 0!==i&&"function"==typeof i&&i(d)}),[d]);const u=t.useMemo((()=>{switch(l){case"small":return{width:"2.5rem",height:"3rem"};case"medium":return{width:"3.5rem",height:"4rem"};case"large":return{width:"4.5rem",height:"5rem"};default:return{width:"2.5rem",height:"2.5rem"}}}),[l]);return e.jsx("div",{"data-testid":a||'"OTPInput"',className:"foo-bar",children:e.jsx(h,{value:d,onChange:c,inputType:"number",numInputs:n,shouldAutoFocus:o,renderSeparator:r?()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(T,{name:"mdi:dot",className:"opacity-50"})}):e.jsx("div",{className:"flex items-center justify-center w-4"}),renderInput:t=>e.jsx("input",Object.assign({},t,{className:s("remove-arrow form-item text-input w-12")})),inputStyle:{width:u.width,height:u.height}})})};var ut,mt;function pt({className:t,label:a,onChange:i,options:r}){return r?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(Z,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(Oe,{id:a||"Sorting",options:r,onChange:e=>i(e.target.value)})]}):null}function xt(t){var{className:a,current:i,resultsPerPage:r=10,onChange:n,totalPages:o}=t,l=R(t,["className","current","resultsPerPage","onChange","totalPages"]);return e.jsx(N,Object.assign({current:i,onChange:n,simple:!0,pageSize:r,total:o*r,className:s("m-0 p-0 list-none text-bodyTextInverted flex gap-2 text-center items-center [&>li>span]:px-2 [&>li>input]:text-black [&>li>input]:rounded [&>li>input]:text-center",a),locale:g,prevIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(T,{name:"mdi:chevron-left"})}),nextIcon:e.jsx("div",{className:"text-bodyText",children:e.jsx(T,{name:"mdi:chevron-right"})})},l))}function ht({className:t,onChange:a,options:i,label:r}){return i?e.jsxs("div",{className:s("m-0 p-0 mb-2 border-none",t),children:[e.jsx(Z,{className:"text-sm mr-2",transform:exports.COPY_TRANSFORM.UPPERCASE,children:ne.UI.SHOW}),e.jsx(Oe,{id:r||"ResultsPerPage",options:i.map((e=>({label:e.toString(),value:e}))),onChange:e=>a(e.target.value),className:"min-w-20"})]}):e.jsx(e.Fragment,{})}function vt(t){var{className:a,end:i,searchTerm:r,start:n,totalResults:o}=t,l=R(t,["className","end","searchTerm","start","totalResults"]);return e.jsxs("div",Object.assign({className:s("m-0 p-0 flex-1",a)},l,{children:["Showing"," ",e.jsxs("strong",{children:[n," - ",i]})," ","out of ",e.jsx("strong",{children:o}),r&&e.jsxs(e.Fragment,{children:[" ","for: ",e.jsx("em",{children:r})]})]}))}function ft({className:a,onChange:i,onSubmit:r,wasSearched:n,placeholder:o,allowReset:l=!1,resetTrigger:d=(()=>{})}){return t.useContext(f.SearchContext),e.jsx("div",{className:s("m-0 md:px-48",a),children:e.jsxs("form",{onSubmit:e=>r(e),className:"flex items-center",children:[e.jsx("div",{className:"flex-1 bg-bodyBackground dark:bg-darkBodyBackground bg-opacity-80 rounded",children:e.jsx(re,{name:"SearchBoxInput",type:ie.TEXT,placeholder:o||"Search now...",onChange:e=>{var t;i(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)}})}),e.jsx("div",{className:"pl-4",children:e.jsxs("div",{className:"flex flex-row gap-2",children:[n&&l&&e.jsx(_,{type:exports.BTN_TYPES.BUTTON,onClick:()=>d("",{shouldClearFilters:!1}),variant:exports.BTN_VARIANTS.SECONDARY,icon:"mdi:restore"}),e.jsx(_,{type:exports.BTN_TYPES.SUBMIT,variant:exports.BTN_VARIANTS.PRIMARY,icon:"mdi:magnify"})]})})]})})}function Nt({className:t,children:a,header:i,bodyContent:r,bodyFooter:n,bodyHeader:o,sideContent:l,showSidebar:d}){const c=s("hidden md:block fixed md:relative w-full h-full left-0 md:left-auto top-0 md:top-auto px-2 pb-4 md:pt-6 md:px-6 md:pb-auto md:pl-0",{"hidden md:hidden":!l});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s("w-full flex flex-col",t),children:[e.jsx("div",{className:"m-auto md:py-0 w-full",children:i}),e.jsxs("div",{className:s("md:grid m-auto md:py-0 w-full",{"md:grid-cols-searchLayout":!l,"md:grid-cols-searchLayoutWithSidebar":l}),children:[!E.isMobile&&e.jsx("div",{className:c,children:l}),e.jsxs("div",{className:s("p-0 pt-2 md:p-6 md:pr-0",{"md:pl-0":!l}),children:[e.jsx("div",{className:"flex flex-row gap-8 items-center justify-end",children:o}),e.jsx("div",{className:"relative",children:a||r}),e.jsx("div",{className:"flex items-center justify-around",children:n})]})]})]}),E.isMobile&&d&&e.jsx("div",{className:"fixed z-10 w-full top-0 left-0 right-0 bottom-0 bg-bodyBackground px-4 overflow-scroll",children:l})]})}function gt(t){var{children:a,className:i,gridClasses:r}=t,n=R(t,["children","className","gridClasses"]);const o=r||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return e.jsx("ul",Object.assign({className:s("relative grid gap-4 mb-4",o,i)},n,{children:a}))}function Et(e){return null==e?"":Object.prototype.hasOwnProperty.call(e,"name")?e.name:String(e)}function St(e,t){if(e)return e[t]}function At(e){const t=St(e,"snippet")||(s=function(e){return St(e,"raw")}(e),s?String(s).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):"");var s;return Array.isArray(t)?t.join(", "):t}function bt({className:t,result:a,as:i,cardMap:r={idField:{fieldName:"uuid"},titleField:{fieldName:"title"},descriptionField:{fieldName:"description"},imageField:{fieldName:"image"}}}){const{idField:n,titleField:o,imageField:l,videoField:d,descriptionField:c,metaDataFields:u,cardProps:m}=r,p=n&&At(a[n.fieldName]),x=o&&At(a[o.fieldName]),h=l&&At(a[l.fieldName]),v=d&&d.formatter?d.formatter(At(a[d.fieldName])):d&&At(a[d.fieldName]),f=c&&At(a[c.fieldName]),N=u&&u.map((e=>{const t=At(a[e.fieldName]);if(e.formatter&&"function"==typeof e.formatter)return e.formatter(t)}));return e.jsx("li",{className:s("relative",t),children:(()=>{const t={id:p,title:x,image:{src:h||"",alt:x||"",title:x||"",width:500,height:500},video:v,description:f,metaData:N,actions:r.actionsData,onClick:r.onClickLink};switch(i){case exports.ResultAsTypes.cardMedia:return e.jsx(je,Object.assign({variant:exports.CardVariant.MEDIA,data:t},m));case exports.ResultAsTypes.cardVideo:return e.jsx(je,Object.assign({variant:exports.CardVariant.VIDEO,data:t},m,{isMuted:!1}));default:return e.jsx(je,Object.assign({variant:exports.CardVariant.BASIC,data:t},m))}})()})}function Tt({showOptions:s,sortOptions:a,resultAs:i=exports.ResultAsTypes.cardBasic,ResultFieldMap:r,config:n={filters:[],facets:{},searchFields:{},resultsFields:{},alwaysSearchOnInitialLoad:!0,initialPlaceholder:"Search..."},facetDisplay:o=[],noSidebar:l=!1,customConnector:d,showPagingInfo:c,gridClasses:u,initialState:m={},showTextSearch:p=!0}){const x=fe(),h=t.useMemo((()=>{const e={host:process.env.REACT_APP_ELASTICSEARCH_HOST||process.env.STORYBOOK_ELASTICSEARCH_HOST||"http://localhost:9200",index:process.env.REACT_APP_ELASTICSEARCH_INDEX||process.env.STORYBOOK_ELASTICSEARCH_INDEX||"",apiKey:process.env.REACT_APP_ELASTICSEARCH_API_KEY||process.env.STORYBOOK_ELASTICSEARCH_API_KEY||""};return new v(d||e)}),[]),N=t.useMemo((()=>({debug:"development"===process.env.NODE_ENV,alwaysSearchOnInitialLoad:!0,apiConnector:h,hasA11yNotifications:!0,searchQuery:{filters:n.filters||[],search_fields:n.searchFields||{},result_fields:n.resultsFields||{},facets:n.facets},autocompleteQuery:{results:{search_fields:{title:{},description:{}},resultsPerPage:5,result_fields:{title:{snippet:{size:100,fallback:!0}}}}},initialState:Object.assign({resultsPerPage:(null==s?void 0:s[0])||8},m)})),[n]),[g,E]=t.useState(!1),S=()=>{E((e=>!e))};return e.jsx(f.SearchProvider,{config:N,children:e.jsx(f.WithSearch,{mapContextToProps:({wasSearched:e,setSearchTerm:t})=>({wasSearched:e,setSearchTerm:t}),children:({wasSearched:t,setSearchTerm:d})=>{var m;return e.jsx(e.Fragment,{children:e.jsx(f.ErrorBoundary,{children:e.jsx(Nt,{noSidebar:l,showSidebar:g,header:p&&e.jsx(f.SearchBox,{view:s=>e.jsx(ft,Object.assign({},s,{wasSearched:t,placeholder:n.initialPlaceholder,allowReset:!0,resetTrigger:d}))}),sideContent:!l&&o&&e.jsxs("div",{children:[e.jsx("div",{className:"md:hidden flex justify-end pt-2 -mb-2",children:e.jsx(_,{onClick:S,icon:"mdi:close",children:null===(m=null==x?void 0:x.UI)||void 0===m?void 0:m.HIDE_FILTERS})}),t&&a&&e.jsx(f.Sorting,{label:"Sort by",sortOptions:a,view:pt}),null==o?void 0:o.map((({field:t,label:s,view:a})=>e.jsx(f.Facet,{field:t,label:s,view:a},t)))]}),bodyContent:e.jsx(f.Results,{shouldTrackClickThrough:!1,resultView:t=>e.jsx(bt,Object.assign({},t,{as:i,cardMap:r})),className:"list-none p-0 m-0",view:t=>e.jsx(gt,Object.assign({},t,{gridClasses:u}))}),bodyHeader:e.jsxs(e.Fragment,{children:[t&&c&&e.jsx(f.PagingInfo,{view:vt}),t&&s&&e.jsx(f.ResultsPerPage,{view:ht,options:s}),t&&a&&l&&e.jsx(f.Sorting,{label:"Sort by",sortOptions:a,view:pt}),t&&!l&&e.jsx("div",{className:"block md:hidden",children:e.jsx(_,{rounded:!0,onClick:S,icon:"mdi:filter-variant-plus"})})]}),bodyFooter:e.jsx(f.Paging,{view:xt})})})})}})})}function jt({className:t,label:a,onChange:i,options:r}){const n=r.map((e=>({value:e.value,label:`${e.value} (${e.count})`})));return e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(Z,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),e.jsx(Oe,{id:a,options:n,onChange:e=>i(e.target.value)})]})}function It({className:t,label:a,onRemove:i,onSelect:r,options:n}){const o=n.filter((e=>e.selected)).map((e=>e.value))[0];return e.jsx("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:e.jsxs("div",{children:[e.jsx(Z,{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:[Et(o),e.jsx("span",{className:"ml-1 px-1",children:e.jsx(_,{onClick:()=>i(o),size:exports.BTN_SIZES.SMALL,rounded:!0,children:e.jsx(T,{name:"mdi:close"})})})]}),!o&&n.map((t=>{const s=Et(t.value);return e.jsxs("li",{className:"m-0 flex justify-between",children:[e.jsx("a",{className:"no-underline visited:text-bodyText","data-transaction-name":`facet - ${a}`,href:"/",onClick:e=>{e.preventDefault(),r(t.value)},children:e.jsx("label",{className:"label pl-0 leading-none text-bodyText dark:text-darkBodyText",children:s})}),e.jsx(U,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.MEDIUM,children:t.count.toLocaleString("en")})]},s)}))]})]})})}function Ct({className:t,label:a,onMoreClick:i,onRemove:r,onSelect:n,options:o,showMore:l,showSearch:d,onSearch:c,searchPlaceholder:u}){return o?e.jsxs("fieldset",{className:s("m-0 p-0 mt-4 mb-2 border-none",t),children:[e.jsx(Z,{className:"text-sm",transform:exports.COPY_TRANSFORM.UPPERCASE,children:a}),d&&e.jsx("div",{className:"mt-1",children:e.jsx(re,{type:ie.SEARCH,placeholder:u||"Search",onChange:e=>{c(e.target.value)}})}),e.jsxs("div",{className:"my-4",children:[(null==o?void 0:o.length)<1&&e.jsx("div",{children:"No matching options"}),null==o?void 0:o.map((t=>{const s=t.selected,i=t.value,o=Et(i);return e.jsxs("div",{className:"flex justify-between pb-2",children:[e.jsx(w,{id:`facet_${a}${o}`,"data-transaction-name":`facet - ${a}`,checked:s,onChange:()=>s?r(i):n(i),label:o}),e.jsx(U,{as:exports.COPY_TAG.SPAN,size:exports.COPY_SIZE.SMALL,children:t.count.toLocaleString("en")})]},o)}))]}),l&&e.jsx(_,{size:exports.BTN_SIZES.SMALL,variant:exports.BTN_VARIANTS.TERTIARY,onClick:i,"aria-label":"Show more options",children:"+ More"})]}):e.jsx(e.Fragment,{children:"Options required"})}ct.displayName="OTPInput",exports.CardVariant=void 0,(ut=exports.CardVariant||(exports.CardVariant={})).BASIC="basic",ut.MEDIA="media",ut.VIDEO="video",ut.ICON="icon",ut.HORZ="horz",ut.DATA="data",exports.ResultAsTypes=void 0,(mt=exports.ResultAsTypes||(exports.ResultAsTypes={})).cardBasic="cardBasic",mt.cardMedia="cardMedia",mt.cardVideo="cardVideo",pt.displayName="Sorting",xt.displayName="Paging",ht.displayName="ResultsPerPage",vt.displayName="PagingInfo",ft.displayName="SearchBox",Nt.displayName="Layout",gt.displayName="Results",bt.displayName="Result",jt.displayName="SingleSelectFacet",It.displayName="SingleLinksFacet",Ct.displayName="MultiCheckboxFacet";const yt=({handleSubmit:t})=>e.jsx("div",{"data-testid":"ResetPasswordForm",className:"form-wrapper",children:e.jsx(Ce,{onSubmit:t,submit:ne.FORMS.RESET_PASSWORD_FORM.SUBMIT,disabledSubmitWithReturn:!0,children:e.jsx(_e,{name:"password",type:exports.FIELD_TYPES.PASSWORD,label:ne.FORMS.RESET_PASSWORD_FORM.PASSWORD,required:!0,validations:He})})});yt.displayName="ResetPasswordForm";const Ot=({testID:t,initialValues:s,handleSubmit:a})=>e.jsx("div",{"data-testid":t||'"ProfileForm"',className:"form-wrapper",children:e.jsxs(Ce,{onSubmit:a,submit:ne.FORMS.PROFILE_FORM.SUBMIT,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx("div",{className:"mb-4 items-center justify-center flex",children:e.jsx(oe,{name:"avatar",initValue:null==s?void 0:s.avatar})}),e.jsx(_e,{name:"firstName",type:exports.FIELD_TYPES.TEXT,label:ne.FORMS.PROFILE_FORM.FIRST_NAME,required:!0}),e.jsx(_e,{name:"lastName",type:exports.FIELD_TYPES.TEXT,label:ne.FORMS.PROFILE_FORM.LAST_NAME,required:!0}),e.jsx(_e,{name:"email",type:exports.FIELD_TYPES.EMAIL,label:ne.FORMS.PROFILE_FORM.EMAIL,required:!0,validations:Ge})]})});Ot.displayName="ProfileForm";const _t=({testID:t,children:a,showHeader:i=!0,showFooter:r=!0,headerProps:n,footerProps:o={},image:l,showOverlay:d=!0})=>e.jsxs("div",{"data-testid":t||'"Screen"',className:"h-full flex flex-col min-h-full",children:[i&&e.jsx(dt,Object.assign({},n)),e.jsxs("main",{className:s("flex flex-1",{"pt-24 md:pt-32 lg:pt-40":l},{"pt-8 md:pt-12 lg:pt-12":!l}),children:[l&&e.jsxs("div",{className:"absolute w-full aspect-[16/5] opacity-50 z-0 top-0 left-0 right-0",children:[e.jsx(K,{src:l,alt:"background",sizes:"100vw",style:{objectFit:"cover"}}),d&&e.jsx("div",{className:"absolute w-full h-full bg-gradient-to-b from-transparent to-bodyBackground dark:to-darkBodyBackground"})]}),e.jsx(Pe,{padded:!0,children:e.jsx("div",{className:"flex flex-col gap-8",children:a})})]}),r&&e.jsx(lt,Object.assign({},o))]});_t.displayName="Screen";const Rt=({testID:t,title:s,image:a,user:i,logoutCallback:r,menu:n})=>{var o;const l=fe();return e.jsxs(_t,{"data-testid":t||"AccountScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(oe,{initValue:null===(o=null==i?void 0:i.profile)||void 0===o?void 0:o.picture,isEditable:!1})}),n&&e.jsx("div",{children:e.jsx(Q,{className:"flex items-center flex-col justify-center gap-2",children:null==n?void 0:n.map(((t,s)=>e.jsx(ee,{as:"div",title:t.title,icon:t.icon,onClick:t.onClick},s)))})}),e.jsxs("div",{className:"my-4 flex flex-col gap-8 justify-center items-center",children:[e.jsxs("div",{className:"flex items-center flex-col justify-center gap-1",children:[e.jsx(z,{tag:exports.HEADING_TAGS.H5,flush:!0,children:l.UI.SHARE}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(c.FacebookShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(T,{name:"mdi:facebook"})}),e.jsx(c.TwitterShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(T,{name:"mdi:twitter"})}),e.jsx(c.LinkedinShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(T,{name:"mdi:linkedin"})}),e.jsx(c.WhatsappShareButton,{url:process.env.APP_SHARE_URL,children:e.jsx(T,{name:"mdi:whatsapp"})})]})]}),e.jsx(_,{onClick:r,icon:"mdi:logout",children:null==l?void 0:l.UI.LOGOUT})]})]})]})};Rt.displayName="AccountScreen";const Lt=({testID:t,title:s,image:a,formProps:i})=>e.jsxs(_t,{"data-testid":t||"AuthScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsx("div",{className:"flex justify-center",children:e.jsx(ze,Object.assign({},i))})]});Lt.displayName="AuthScreen";const wt=({testID:t,title:s,image:a,data:i,onPressCallback:r,isLoading:n})=>e.jsxs(_t,{"data-testid":t||"CardGridScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsxs("div",{children:[n&&e.jsx("div",{className:"flex flex-1 min-h-[125px] items-center justify-center",children:e.jsx(O,{})}),i&&e.jsx(at,{data:i,onPressCallback:r})]})]});wt.displayName="CardGridScreen";const Dt=({testID:t,title:s,image:a,searchProps:i})=>e.jsxs(_t,{"data-testid":t||"CatalogueScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsx("div",{children:e.jsx(Tt,Object.assign({},i))})]});Dt.displayName="CatalogueScreen";const kt=({testID:t,title:s,image:a,data:i,isLoading:r,onPressCallback:n})=>e.jsxs(_t,{"data-testid":t||"ChallengeLibraryScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),r&&e.jsx("div",{className:"",children:e.jsx(O,{})}),i&&e.jsx("div",{children:e.jsx(at,{data:i,onPressCallback:n})})]});kt.displayName="ChallengeLibraryScreen";const Pt="MMMM dd, yyyy",Mt="HH:mm",Ft=({testID:s,title:a,image:i,created:r=0,body:n,days:o,price:l,puchaseLabel:d,hasAccess:c=!1,onPressCallback:u,purchaseCallback:m})=>{const p=fe(),x=t.useMemo((()=>S.format(new Date(1e3*r),Pt)),[r]);return e.jsxs(_t,{"data-testid":s||"ChallengeScreen",image:i,children:[e.jsxs("div",{children:[a&&e.jsx(Ie,{text:a}),e.jsxs(Z,{children:[p.UI.CREATED,": ",x]}),!c&&e.jsxs("div",{className:"flex flex-col gap-2 mb-4",children:[e.jsx(U,{bold:!0,className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.NOT_ENTERED_IN_CHALLENGE}),e.jsx(U,{className:"mb-0",children:p.GLOBAL.SCREENS.CHALLENGE.CLICK_TO_ENTER}),e.jsx("div",{children:e.jsx(_,{variant:exports.BTN_VARIANTS.PRIMARY,onClick:m,children:d})}),e.jsxs(U,{size:exports.COPY_SIZE.SMALL,className:"mb-0",children:["** ",p.GLOBAL.SCREENS.CHALLENGE.PAYMENT_NOTE]})]})]}),e.jsx("div",{children:n&&e.jsx(me,{data:n})}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:null==o?void 0:o.map((t=>e.jsx(je,{variant:exports.CardVariant.MEDIA,data:{id:t.id,title:t.title,image:{src:t.image,alt:t.title},raised:!0,onClick:c?()=>u(t.id):void 0,accessRestriced:!c}},t.id)))})]})};Ft.displayName="ChallengeScreen";const Bt=({testID:t,title:s,image:a,updated:i,content:r})=>{var n;const o=fe(),l=i?S.format(new Date(1e3*i),"MMMM dd, yyyy HH:mm"):void 0;return e.jsxs(_t,{"data-testid":t||"ContentScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),i&&e.jsx("div",{children:e.jsxs(U,{children:[null===(n=null==o?void 0:o.UI)||void 0===n?void 0:n.UPDATED,": ",l]})}),e.jsx("div",{children:e.jsx(me,{data:r})})]})};Bt.displayName="ContentScreen";const Ut=({testID:t,title:s,image:a,user:i,latestData:r,recentdata:n,stats:o,promo:l,news:d,statsIsLoading:c,promosIsLoading:u,dataIsLoading:m,handleLatestDataPress:p,handleRecentDataPress:x,handleNewsDataPress:h})=>{var v,f,N,g,E,S;const A=fe();return e.jsxs(_t,{"data-testid":t||"DashboardScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsx("div",{children:e.jsxs(U,{children:[null===(v=null==A?void 0:A.UI)||void 0===v?void 0:v.WELCOME," ",null==i?void 0:i.name]})}),c&&e.jsx("div",{children:e.jsx(O,{})}),!c&&o&&e.jsxs("div",{className:"mb-8",children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:null===(f=null==A?void 0:A.UI)||void 0===f?void 0:f.ACTIVITY}),e.jsx("div",{className:"flex flex-row gap-4",children:o.map(((t,s)=>e.jsx("div",{children:e.jsx(je,{variant:t.variant,data:t.data})},`${t.data.id}-${s}`)))})]}),m&&e.jsx("div",{children:e.jsx(O,{})}),!m&&r&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:null===(N=null==A?void 0:A.UI)||void 0===N?void 0:N.LATEST_WORKOUTS}),e.jsx("div",{children:e.jsx(Ze,{data:r,onPressCallback:p,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),u&&e.jsx("div",{children:e.jsx(O,{})}),!u&&l&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,flush:!0,children:null===(g=null==A?void 0:A.UI)||void 0===g?void 0:g.WHATS_NEWS}),e.jsx(et,Object.assign({},l,{withBg:!0,spacing:$e.ATOM}))]}),m&&e.jsx("div",{children:e.jsx(O,{})}),!m&&n&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:null===(E=null==A?void 0:A.UI)||void 0===E?void 0:E.RECENTLY_ADDED}),e.jsx("div",{children:e.jsx(Ze,{data:n,onPressCallback:x,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]}),u&&e.jsx("div",{children:e.jsx(O,{})}),!u&&d&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:null===(S=null==A?void 0:A.UI)||void 0===S?void 0:S.WHATS_NEW}),e.jsx("div",{children:e.jsx(Ze,{data:d,onPressCallback:h,count:4,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500}})})]})]})};Ut.displayName="DashboardScreen";const Gt=({title:t,isOpen:a})=>e.jsxs("div",{className:s("flex flex-row items-center justify-between p-2 border border-solid border-tertiary transition-all rounded mb-2",{"bg-tertiary":a}),children:[e.jsx(z,{flush:!0,tag:exports.HEADING_TAGS.H4,className:s("transition-all",{"text-white":a}),children:t}),e.jsx("div",{className:"",children:e.jsx(T,{name:a?"mdi:chevron-up":"mdi:chevron-down"})})]}),Ht=({testID:t,data:s,titleKey:a="title",contentKey:i="content"})=>e.jsx("div",{"data-testid":t||'"Accordion"',children:s.map((t=>e.jsx(A,{triggerTagName:"div",easing:"ease-out",triggerWhenOpen:e.jsx(Gt,{title:t[a],isOpen:!0}),trigger:e.jsx(Gt,{title:t[a],isOpen:!1}),children:e.jsx("div",{className:"p-2",children:e.jsx(U,{children:t[i]})})},t[a])))});Ht.displayName="Accordion";const Yt=({testID:t,title:s,image:a,data:i,isLoading:r})=>e.jsxs(_t,{"data-testid":t||"FAQScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),!i&&r&&e.jsx("div",{className:"flex flex-1 items-center justify-center min-h-[125px]",children:e.jsx(O,{})}),i&&e.jsx(Ht,{data:null==i?void 0:i.map((e=>({title:e.title||"",content:e.answer||""})))})]});Yt.displayName="FAQScreen";const Vt=({testID:t,title:s,image:a})=>e.jsx(_t,{"data-testid":t||"HomeScreen",image:a,children:e.jsx(Pe,{children:e.jsx("div",{className:"flex flex-col gap-8 pt-8",children:s&&e.jsx("div",{children:e.jsx(z,{children:s})})})})});Vt.displayName="HomeScreen";const Wt=({testID:t,title:s,image:a,menu:i,isLoading:r=!1})=>e.jsxs(_t,{"data-testid":t||"MenuScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),r&&e.jsx("div",{className:"flex flex-1 justify-center items-center min-h-[125px]",children:e.jsx(O,{})}),i&&e.jsx(Q,{children:i.map((t=>e.jsx(ee,{as:"div",icon:t.icon,onClick:t.onPress,title:t.title},t.title)))})]});Wt.displayName="MenuScreen";const zt=({testID:t,title:s,image:a,user:i,handleProfileSubmit:r})=>e.jsxs(_t,{"data-testid":t||"ProfileScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),e.jsx(Ot,{initialValues:null==i?void 0:i.profile,handleSubmit:r})]});zt.displayName="ProfileScreen";const qt=({testID:s,end:a,live:i,start:r,title:n})=>{const o=t.useMemo((()=>S.format(new Date(1e3*r),Pt)),[r]),l=t.useMemo((()=>S.format(new Date(1e3*r),Mt)),[r]),d=t.useMemo((()=>S.format(new Date(1e3*a),Mt)),[a]);return e.jsxs("div",{"data-testid":s||'"ScheduleItem"',className:"foo-bar",children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:n}),e.jsxs(Z,{children:[o,": ",l," - ",d]}),i&&e.jsx("div",{children:e.jsx(Je,{url:i,isYoutube:!0})})]})};qt.displayName="ScheduleItem";const Kt=({testID:s,raised:a=!1,scheduleItems:i,hasAccess:r})=>{var n,o,l,d;const c=fe(),[u,m]=t.useState(0),[p,x]=t.useState([]),h=t.useMemo((()=>{var t;return null===(t=null==i?void 0:i.days)||void 0===t?void 0:t.map(((t,s)=>{var a,i;const r=Object.keys(t)[0],n=null===(a=t[r])||void 0===a?void 0:a[0];return n?{day:r.charAt(0).toUpperCase()+r.slice(1),component:e.jsx(qt,{title:n.title,live:n.live,start:n.start,end:n.end})}:{day:r.charAt(0).toUpperCase()+r.slice(1),component:e.jsx("div",{children:e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:null===(i=null==c?void 0:c.UI)||void 0===i?void 0:i.NO_CLASS})})}}))}),[i]);t.useEffect((()=>{const e=function(){const e=new Date,t=e.getDay(),s=new Date(e);s.setDate(e.getDate()-t);const a=[];for(let t=0;t<7;t++){const i=new Date(s);i.setDate(s.getDate()+t),a.push({date:i,isToday:i.toDateString()===e.toDateString()})}return a}(),t=e.findIndex((e=>e.isToday));m(t),x(e)}),[]);const v=t.useMemo((()=>p.map(((e,t)=>{const s=e.date.toLocaleString("en-US",{weekday:"short"}),a=e.date.toLocaleString("en-US",{day:"numeric"}),i=u===t;return{variant:exports.CardVariant.BASIC,data:{id:`${t}`,title:s,description:a,raised:!0},className:i?"bg-tertiary":"bg-bodyBackground"}}))),[p,u]),f=t.useMemo((()=>null==h?void 0:h.find((e=>{var t;return e.day===(null===(t=null==p?void 0:p[u])||void 0===t?void 0:t.date.toLocaleString("en-US",{weekday:"long"}))}))),[h,p,u]);return e.jsxs("div",{"data-testid":s||'"Schedule"',children:[e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H5,transform:exports.HEADING_TRANSFORM.UPPERCASE,children:null===(n=null==c?void 0:c.UI)||void 0===n?void 0:n.THIS_WEEK}),e.jsx("div",{children:e.jsx(Ze,{data:v,onPressCallback:e=>{m(Number(e))},count:7,carouselOptions:{loop:!1,autoPlay:!1,scrollAnimationDuration:500,onSnapToItem:()=>{},shouldScrollOnClick:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:7}},{breakpoint:600,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:3}}]}})})]}),e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H5,transform:exports.HEADING_TRANSFORM.UPPERCASE,children:null===(o=null==c?void 0:c.UI)||void 0===o?void 0:o.TODAYS_ITEMS}),!r&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H2,children:null===(l=null==c?void 0:c.UI)||void 0===l?void 0:l.ACCESS_RESTRICTED}),e.jsx(U,{children:null===(d=null==c?void 0:c.UI)||void 0===d?void 0:d.UPGRADE_TO_PREMIUM_PLUS_ACCESS_LIVE})]}),r&&(null==f?void 0:f.component)]})]})};Kt.displayName="Schedule";const Zt=({testID:t,title:s,image:a,scheduleData:i,isLoading:r=!1})=>e.jsxs(_t,{"data-testid":t||"ScheduleScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),!i&&r&&e.jsx("div",{className:"flex flex-1 justify-center items-center min-h-[125px]",children:e.jsx(O,{})}),i&&e.jsx("div",{children:e.jsx(Kt,Object.assign({},i))})]});Zt.displayName="ScheduleScreen";const $t=({testID:t,initialValues:s,handleSubmit:a,isDisabled:i=!0})=>{const r=fe();return e.jsx("div",{"data-testid":t||'"SubscriptionForm"',className:"form-wrapper",children:e.jsxs(Ce,{onSubmit:a,isDisabled:i,disabledSubmitWithReturn:!0,initialValues:s,children:[e.jsx(_e,{name:"status",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_STATUS_LABEL,disabled:i}),e.jsx(_e,{name:"plan",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_PLAN_LABEL,disabled:i}),e.jsx(_e,{name:"price",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_PRICE_LABEL,disabled:i}),e.jsx(_e,{name:"billingDate",type:exports.FIELD_TYPES.TEXT,label:r.FORMS.ACCOUNT.SUBSCRIPTION_BILLING_DATE_LABEL,required:!0,disabled:i})]})})};$t.displayName="SubscriptionForm";const Xt=({testID:t,title:s,image:a,user:i,handleSubscriptionSubmit:r,subscriptionCallback:n})=>{var o,l,d,c;const u=fe();return e.jsxs(_t,{"data-testid":t||"SubscriptionScreen",image:a,children:[s&&e.jsx(Ie,{text:s}),!(null===(o=null==i?void 0:i.subscription)||void 0===o?void 0:o.status)&&e.jsx(Pe,{padded:!0,children:e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:u.UI.NO_ACTIVE_SUBSCRIPTION}),e.jsx(U,{children:null===(l=null==u?void 0:u.UI)||void 0===l?void 0:l.NO_SUBSCRIPTION_DETAILS})]})}),(null===(d=null==i?void 0:i.subscription)||void 0===d?void 0:d.status)&&e.jsx("div",{children:e.jsx($t,{initialValues:null==i?void 0:i.subscription,handleSubmit:r})}),n&&e.jsx("div",{children:e.jsx(_,{onClick:n,icon:"help",children:null===(c=null==u?void 0:u.UI)||void 0===c?void 0:c.QUESTION})})]})};Xt.displayName="SubscriptionScreen";const Qt=({testID:s,id:a,title:i,image:r,description:n,created:l=0,duration:d="PT0M",level:c,section:u,uuid:m,video:p,category:x,type:h,likeCallback:v,completedCallback:f,favouriteCallback:N,isLiked:g,isCompleted:E,isFavourite:A,relatedWorkouts:b,isLoading:T,hasActiveSubscription:j})=>{var I,C;const y=fe(),[O,R]=t.useState(!1),[L,w]=t.useState(null),[D,k]=t.useState(2);t.useMemo((()=>L?{uri:L,type:"video/mp4"}:{uri:p,type:"application/x-mpegURL"}),[p,L]);const P=t.useMemo((()=>S.format(new Date(1e3*l),Pt)),[l]),M=t.useMemo((()=>function(e){const t=o.parse(e),s=[];return t.years&&s.push(`${t.years} years`),t.months&&s.push(`${t.months} months`),t.weeks&&s.push(`${t.weeks} weeks`),t.days&&s.push(`${t.days} days`),t.hours&&s.push(`${t.hours} hours`),t.minutes&&s.push(`${t.minutes} minutes`),t.seconds&&s.push(`${t.seconds} seconds`),s.join(", ")}(d)),[d]);return console.log("video",p),e.jsxs(_t,{"data-testid":s||"WorkoutScreen",image:r,children:[e.jsxs("div",{children:[i&&e.jsx(Ie,{text:i}),e.jsx("div",{children:e.jsxs(Z,{children:[y.UI.CREATED,": ",P]})}),e.jsx("div",{children:e.jsxs(Z,{children:[y.UI.DURATION,": ",M]})})]}),!j&&e.jsxs("div",{children:[e.jsx(z,{tag:exports.HEADING_TAGS.H4,children:y.UI.NO_ACTIVE_SUBSCRIPTION}),e.jsx(U,{children:null===(I=null==y?void 0:y.UI)||void 0===I?void 0:I.NO_SUBSCRIPTION_DETAILS})]}),e.jsx("div",{children:e.jsx(_,{onClick:()=>{R(!0)},icon:"mdi:play",iconFirst:!0,disabled:!j,children:y.UI.START_WORKOUT})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("div",{children:e.jsx(_,{onClick:()=>{a&&v&&"function"==typeof v&&v(a)},icon:g?"mdi:heart":"mdi:heart-outline",disabled:!j,rounded:!0})}),e.jsx("div",{children:e.jsx(_,{onClick:()=>{a&&N&&"function"==typeof N&&N(a)},icon:A?"mdi:bookmark":"mdi:bookmark-outline",disabled:!j,rounded:!0})}),e.jsx("div",{children:e.jsx(_,{onClick:()=>{a&&f&&"function"==typeof f&&f(a)},icon:E?"mdi:battery":"mdi:battery-outline",disabled:!j,rounded:!0})}),e.jsx("div",{children:e.jsx(_,{onClick:()=>{k(0===D?2:0)},icon:2===D?"mdi:music-note-off":"mdi:music-note",disabled:!j,rounded:!0})})]}),e.jsx(U,{className:"mb-0",children:n}),e.jsxs("div",{className:"flex gap-4 flex-wrap",children:[c&&e.jsxs(Z,{children:[y.UI.LEVEL,": ",c]}),u&&e.jsxs(Z,{children:[y.UI.SECTION,": ",u]}),x&&e.jsxs(Z,{children:[y.UI.CATEGORY,": ",x]}),h&&e.jsxs(Z,{children:[y.UI.TYPE,": ",h]})]}),b&&e.jsx(e.Fragment,{children:e.jsx(Pe,{isNarrow:!0,padded:!0,children:e.jsx("div",{children:e.jsx(z,{children:null===(C=null==y?void 0:y.UI)||void 0===C?void 0:C.RELATED})})})}),O&&e.jsx("div",{children:e.jsx(Je,{options:{autoplay:!0},sources:[{src:p,type:"application/x-mpegURL"}]})})]})};Qt.displayName="WorkoutScreen";const Jt={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 es(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ts={exports:{}},ss={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]},as={exports:{}},is=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))},rs=Array.prototype.concat,ns=Array.prototype.slice,os=as.exports=function(e){for(var t=[],s=0,a=e.length;s<a;s++){var i=e[s];is(i)?t=rs.call(t,ns.call(i)):t.push(i)}return t};os.wrap=function(e){return function(){return e(os(arguments))}};var ls=as.exports,ds=ss,cs=ls,us=Object.hasOwnProperty,ms=Object.create(null);for(var ps in ds)us.call(ds,ps)&&(ms[ds[ps]]=ps);var xs=ts.exports={to:{},get:{}};function hs(e,t,s){return Math.min(Math.max(t,e),s)}function vs(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}xs.get=function(e){var t,s;switch(e.substring(0,3).toLowerCase()){case"hsl":t=xs.get.hsl(e),s="hsl";break;case"hwb":t=xs.get.hwb(e),s="hwb";break;default:t=xs.get.rgb(e),s="rgb"}return t?{model:s,value:t}:null},xs.get.rgb=function(e){if(!e)return null;var t,s,a,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],s=0;s<3;s++){var r=2*s;i[s]=parseInt(t.slice(r,r+2),16)}a&&(i[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],s=0;s<3;s++)i[s]=parseInt(t[s]+t[s],16);a&&(i[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)i[s]=parseInt(t[s+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:us.call(ds,t[1])?((i=ds[t[1]])[3]=1,i):null:null;for(s=0;s<3;s++)i[s]=Math.round(2.55*parseFloat(t[s+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(s=0;s<3;s++)i[s]=hs(i[s],0,255);return i[3]=hs(i[3],0,1),i},xs.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,hs(parseFloat(t[2]),0,100),hs(parseFloat(t[3]),0,100),hs(isNaN(s)?1:s,0,1)]}return null},xs.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,hs(parseFloat(t[2]),0,100),hs(parseFloat(t[3]),0,100),hs(isNaN(s)?1:s,0,1)]}return null},xs.to.hex=function(){var e=cs(arguments);return"#"+vs(e[0])+vs(e[1])+vs(e[2])+(e[3]<1?vs(Math.round(255*e[3])):"")},xs.to.rgb=function(){var e=cs(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]+")"},xs.to.rgb.percent=function(){var e=cs(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]+")"},xs.to.hsl=function(){var e=cs(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},xs.to.hwb=function(){var e=cs(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},xs.to.keyword=function(e){return ms[e.slice(0,3)]};var fs=ts.exports;const Ns=ss,gs={};for(const e of Object.keys(Ns))gs[Ns[e]]=e;const Es={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 Ss=Es;for(const e of Object.keys(Es)){if(!("channels"in Es[e]))throw new Error("missing channels property: "+e);if(!("labels"in Es[e]))throw new Error("missing channel labels property: "+e);if(Es[e].labels.length!==Es[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:s}=Es[e];delete Es[e].channels,delete Es[e].labels,Object.defineProperty(Es[e],"channels",{value:t}),Object.defineProperty(Es[e],"labels",{value:s})}Es.rgb.hsl=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.min(t,s,a),r=Math.max(t,s,a),n=r-i;let o,l;r===i?o=0:t===r?o=(s-a)/n:s===r?o=2+(a-t)/n:a===r&&(o=4+(t-s)/n),o=Math.min(60*o,360),o<0&&(o+=360);const d=(i+r)/2;return l=r===i?0:d<=.5?n/(r+i):n/(2-r-i),[o,100*l,100*d]},Es.rgb.hsv=function(e){let t,s,a,i,r;const n=e[0]/255,o=e[1]/255,l=e[2]/255,d=Math.max(n,o,l),c=d-Math.min(n,o,l),u=function(e){return(d-e)/6/c+.5};return 0===c?(i=0,r=0):(r=c/d,t=u(n),s=u(o),a=u(l),n===d?i=a-s:o===d?i=1/3+t-a:l===d&&(i=2/3+s-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*r,100*d]},Es.rgb.hwb=function(e){const t=e[0],s=e[1];let a=e[2];const i=Es.rgb.hsl(e)[0],r=1/255*Math.min(t,Math.min(s,a));return a=1-1/255*Math.max(t,Math.max(s,a)),[i,100*r,100*a]},Es.rgb.cmyk=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.min(1-t,1-s,1-a);return[100*((1-t-i)/(1-i)||0),100*((1-s-i)/(1-i)||0),100*((1-a-i)/(1-i)||0),100*i]},Es.rgb.keyword=function(e){const t=gs[e];if(t)return t;let s,a=1/0;for(const t of Object.keys(Ns)){const n=(r=Ns[t],((i=e)[0]-r[0])**2+(i[1]-r[1])**2+(i[2]-r[2])**2);n<a&&(a=n,s=t)}var i,r;return s},Es.keyword.rgb=function(e){return Ns[e]},Es.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)]},Es.rgb.lab=function(e){const t=Es.rgb.xyz(e);let s=t[0],a=t[1],i=t[2];s/=95.047,a/=100,i/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*a-16,500*(s-a),200*(a-i)]},Es.hsl.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;let i,r,n;if(0===s)return n=255*a,[n,n,n];i=a<.5?a*(1+s):a+s-a*s;const o=2*a-i,l=[0,0,0];for(let e=0;e<3;e++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,n=6*r<1?o+6*(i-o)*r:2*r<1?i:3*r<2?o+(i-o)*(2/3-r)*6:o,l[e]=255*n;return l},Es.hsl.hsv=function(e){const t=e[0];let s=e[1]/100,a=e[2]/100,i=s;const r=Math.max(a,.01);a*=2,s*=a<=1?a:2-a,i*=r<=1?r:2-r;return[t,100*(0===a?2*i/(r+i):2*s/(a+s)),100*((a+s)/2)]},Es.hsv.rgb=function(e){const t=e[0]/60,s=e[1]/100;let a=e[2]/100;const i=Math.floor(t)%6,r=t-Math.floor(t),n=255*a*(1-s),o=255*a*(1-s*r),l=255*a*(1-s*(1-r));switch(a*=255,i){case 0:return[a,l,n];case 1:return[o,a,n];case 2:return[n,a,l];case 3:return[n,o,a];case 4:return[l,n,a];case 5:return[a,n,o]}},Es.hsv.hsl=function(e){const t=e[0],s=e[1]/100,a=e[2]/100,i=Math.max(a,.01);let r,n;n=(2-s)*a;const o=(2-s)*i;return r=s*i,r/=o<=1?o:2-o,r=r||0,n/=2,[t,100*r,100*n]},Es.hwb.rgb=function(e){const t=e[0]/360;let s=e[1]/100,a=e[2]/100;const i=s+a;let r;i>1&&(s/=i,a/=i);const n=Math.floor(6*t),o=1-a;r=6*t-n,1&n&&(r=1-r);const l=s+r*(o-s);let d,c,u;switch(n){default:case 6:case 0:d=o,c=l,u=s;break;case 1:d=l,c=o,u=s;break;case 2:d=s,c=o,u=l;break;case 3:d=s,c=l,u=o;break;case 4:d=l,c=s,u=o;break;case 5:d=o,c=s,u=l}return[255*d,255*c,255*u]},Es.cmyk.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,s*(1-i)+i)),255*(1-Math.min(1,a*(1-i)+i))]},Es.xyz.rgb=function(e){const t=e[0]/100,s=e[1]/100,a=e[2]/100;let i,r,n;return i=3.2406*t+-1.5372*s+-.4986*a,r=-.9689*t+1.8758*s+.0415*a,n=.0557*t+-.204*s+1.057*a,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*i,255*r,255*n]},Es.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)]},Es.lab.xyz=function(e){let t,s,a;s=(e[0]+16)/116,t=e[1]/500+s,a=s-e[2]/200;const i=s**3,r=t**3,n=a**3;return s=i>.008856?i:(s-16/116)/7.787,t=r>.008856?r:(t-16/116)/7.787,a=n>.008856?n:(a-16/116)/7.787,t*=95.047,s*=100,a*=108.883,[t,s,a]},Es.lab.lch=function(e){const t=e[0],s=e[1],a=e[2];let i;i=360*Math.atan2(a,s)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(s*s+a*a),i]},Es.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)]},Es.rgb.ansi16=function(e,t=null){const[s,a,i]=e;let r=null===t?Es.rgb.hsv(e)[2]:t;if(r=Math.round(r/50),0===r)return 30;let n=30+(Math.round(i/255)<<2|Math.round(a/255)<<1|Math.round(s/255));return 2===r&&(n+=60),n},Es.hsv.ansi16=function(e){return Es.rgb.ansi16(Es.hsv.rgb(e),e[2])},Es.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)},Es.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]},Es.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]},Es.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},Es.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]},Es.rgb.hcg=function(e){const t=e[0]/255,s=e[1]/255,a=e[2]/255,i=Math.max(Math.max(t,s),a),r=Math.min(Math.min(t,s),a),n=i-r;let o,l;return o=n<1?r/(1-n):0,l=n<=0?0:i===t?(s-a)/n%6:i===s?2+(a-t)/n:4+(t-s)/n,l/=6,l%=1,[360*l,100*n,100*o]},Es.hsl.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=s<.5?2*t*s:2*t*(1-s);let i=0;return a<1&&(i=(s-.5*a)/(1-a)),[e[0],100*a,100*i]},Es.hsv.hcg=function(e){const t=e[1]/100,s=e[2]/100,a=t*s;let i=0;return a<1&&(i=(s-a)/(1-a)),[e[0],100*a,100*i]},Es.hcg.rgb=function(e){const t=e[0]/360,s=e[1]/100,a=e[2]/100;if(0===s)return[255*a,255*a,255*a];const i=[0,0,0],r=t%1*6,n=r%1,o=1-n;let l=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=n,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=n;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=n,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-s)*a,[255*(s*i[0]+l),255*(s*i[1]+l),255*(s*i[2]+l)]},Es.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]},Es.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]},Es.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)]},Es.hwb.hcg=function(e){const t=e[1]/100,s=1-e[2]/100,a=s-t;let i=0;return a<1&&(i=(s-a)/(1-a)),[e[0],100*a,100*i]},Es.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Es.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Es.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Es.gray.hsl=function(e){return[0,0,e[0]]},Es.gray.hsv=Es.gray.hsl,Es.gray.hwb=function(e){return[0,100,e[0]]},Es.gray.cmyk=function(e){return[0,0,0,e[0]]},Es.gray.lab=function(e){return[e[0],0,0]},Es.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},Es.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const As=Ss;function bs(e){const t=function(){const e={},t=Object.keys(As);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(As[e]);for(let i=a.length,r=0;r<i;r++){const i=a[r],n=t[i];-1===n.distance&&(n.distance=t[e].distance+1,n.parent=e,s.unshift(i))}}return t}function Ts(e,t){return function(s){return t(e(s))}}function js(e,t){const s=[t[e].parent,e];let a=As[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)s.unshift(t[i].parent),a=Ts(As[t[i].parent][i],a),i=t[i].parent;return a.conversion=s,a}const Is=Ss,Cs=function(e){const t=bs(e),s={},a=Object.keys(t);for(let e=a.length,i=0;i<e;i++){const e=a[i];null!==t[e].parent&&(s[e]=js(e,t))}return s},ys={};Object.keys(Is).forEach((e=>{ys[e]={},Object.defineProperty(ys[e],"channels",{value:Is[e].channels}),Object.defineProperty(ys[e],"labels",{value:Is[e].labels});const t=Cs(e);Object.keys(t).forEach((s=>{const a=t[s];ys[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),ys[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 Os=fs,_s=ys,Rs=["keyword","gray","hex"],Ls={};for(const e of Object.keys(_s))Ls[[..._s[e].labels].sort().join("")]=e;const ws={};function Ds(e,t){if(!(this instanceof Ds))return new Ds(e,t);if(t&&t in Rs&&(t=null),t&&!(t in _s))throw new Error("Unknown model: "+t);let s,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Ds)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=Os.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,a=_s[this.model].channels,this.color=t.value.slice(0,a),this.valpha="number"==typeof t.value[a]?t.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=_s[this.model].channels;const s=Array.prototype.slice.call(e,0,a);this.color=Fs(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 Ls))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Ls[a];const{labels:i}=_s[this.model],r=[];for(s=0;s<i.length;s++)r.push(e[i[s]]);this.color=Fs(r)}if(ws[this.model])for(a=_s[this.model].channels,s=0;s<a;s++){const e=ws[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)}Ds.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Os.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const s=1===t.valpha?t.color:[...t.color,this.valpha];return Os.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 Os.to.rgb.percent(s)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=_s[this.model],{labels:s}=_s[this.model];for(let a=0;a<t;a++)e[s[a]]=this.color[a];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new Ds([...this.color.map(ks(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new Ds([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Ps("rgb",0,Ms(255)),green:Ps("rgb",1,Ms(255)),blue:Ps("rgb",2,Ms(255)),hue:Ps(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:Ps("hsl",1,Ms(100)),lightness:Ps("hsl",2,Ms(100)),saturationv:Ps("hsv",1,Ms(100)),value:Ps("hsv",2,Ms(100)),chroma:Ps("hcg",1,Ms(100)),gray:Ps("hcg",2,Ms(100)),white:Ps("hwb",1,Ms(100)),wblack:Ps("hwb",2,Ms(100)),cyan:Ps("cmyk",0,Ms(100)),magenta:Ps("cmyk",1,Ms(100)),yellow:Ps("cmyk",2,Ms(100)),black:Ps("cmyk",3,Ms(100)),x:Ps("xyz",0,Ms(95.047)),y:Ps("xyz",1,Ms(100)),z:Ps("xyz",2,Ms(108.833)),l:Ps("lab",0,Ms(100)),a:Ps("lab",1),b:Ps("lab",2),keyword(e){return void 0!==e?new Ds(e):_s[this.model].keyword(this.color)},hex(e){return void 0!==e?new Ds(e):Os.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new Ds(e);const t=this.rgb().round().color;let s=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===s.length&&(s="0"+s),Os.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 Ds.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let s=t.color[0];return s=(s+e)%360,s=s<0?360+s:s,t.color[0]=s,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const s=e.rgb(),a=this.rgb(),i=void 0===t?.5:t,r=2*i-1,n=s.alpha()-a.alpha(),o=((r*n==-1?r:(r+n)/(1+r*n))+1)/2,l=1-o;return Ds.rgb(o*s.red()+l*a.red(),o*s.green()+l*a.green(),o*s.blue()+l*a.blue(),s.alpha()*i+a.alpha()*(1-i))}};for(const e of Object.keys(_s)){if(Rs.includes(e))continue;const{channels:t}=_s[e];Ds.prototype[e]=function(...t){return this.model===e?new Ds(this):t.length>0?new Ds(t,e):new Ds([...(s=_s[this.model][e].raw(this.color),Array.isArray(s)?s:[s]),this.valpha],e);var s},Ds[e]=function(...s){let a=s[0];return"number"==typeof a&&(a=Fs(s,t)),new Ds(a,e)}}function ks(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function Ps(e,t,s){e=Array.isArray(e)?e:[e];for(const a of e)(ws[a]||(ws[a]=[]))[t]=s;return e=e[0],function(a){let i;return void 0!==a?(s&&(a=s(a)),i=this[e](),i.color[t]=a,i):(i=this[e]().color[t],s&&(i=s(i)),i)}}function Ms(e){return function(t){return Math.max(0,Math.min(e,t))}}function Fs(e,t){for(let s=0;s<t;s++)"number"!=typeof e[s]&&(e[s]=0);return e}var Bs=es(Ds);const Us=(e,t)=>Bs(e).darken(t).rgb().string(),Gs=Object.assign({inherit:"inherit",transparent:"transparent",black:Jt.colors.black,white:Jt.colors.white,bodyBackground:Jt.colors.white,darkBodyBackground:Jt.colors.primary,bodyText:Jt.colors.primary,bodyTextInverted:Jt.colors.primary50,darkBodyText:Jt.colors.primary50,display:Jt.colors.black,darkDisplay:Jt.colors.white},Object.assign({},...Object.keys(Jt.colors).map((e=>{const t=Jt.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,Bs(s).lighten(a).rgb().string()),darker:Us(t,.1)}};var s,a})))),Hs=Object.assign(Object.assign({},Jt),{colors:Object.assign(Object.assign({},Jt.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({},Jt.borderRadius),fontWeight:Object.assign(Object.assign({},Jt.fontWeight),{light:"300",normal:"400",bold:"700"})}),Ys=(e,t)=>Bs(e).darken(t).rgb().string(),Vs=Object.assign(Object.assign(Object.assign({},Gs),{bodyBackground:Hs.colors.primary700,darkBodyBackground:Hs.colors.primary800,bodyText:"#FFFFFF",darkBodyText:"#EEEEEE"}),Object.assign({},...Object.keys(Hs.colors).map((e=>{const t=Hs.colors[e];return{[e]:{DEFAULT:t,lighter:(s=t,a=.1,Bs(s).lighten(a).rgb().string()),darker:Ys(t,.1)}};var s,a})))),Ws=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"]}),zs=Object.assign(Object.assign({},{raised:!1}),{raised:!1}),qs={colors:Object.assign({},Vs),fontFamily:Object.assign({},Ws),fontSize:Object.assign({},null==Hs?void 0:Hs.fontSize),fontWeight:Object.assign({},null==Hs?void 0:Hs.fontWeight),buttons:Object.assign({},zs),screens:Object.assign({},null==Hs?void 0:Hs.screens),borderRadius:Object.assign({},null==Hs?void 0:Hs.borderRadius),spacing:Object.assign({},null==Hs?void 0:Hs.spacing),extend:Object.assign({},null==Hs?void 0:Hs.extend)};exports.AccountScreen=Rt,exports.AnimationCounter=b,exports.AnimationSet1=Fe,exports.AppContext=ve,exports.AppProvider=ve,exports.AuthScreen=Lt,exports.Authenticator=ze,exports.Avatar=oe,exports.Blockquote=j,exports.Button=_,exports.ButtonGroup=le,exports.Card=je,exports.CardGrid=at,exports.CardGridScreen=wt,exports.Carousel=Ze,exports.CatalogueScreen=Dt,exports.ChallengeLibraryScreen=kt,exports.ChallengeScreen=Ft,exports.Checkbox=w,exports.Chip=G,exports.Container=Pe,exports.ContentPageLayout=rt,exports.ContentRowsLayout=ot,exports.ContentScreen=Bt,exports.Copy=U,exports.DashboardScreen=Ut,exports.DisplayHeading=Ie,exports.FAQScreen=Yt,exports.FileUpload=H,exports.Footer=lt,exports.ForgotPasswordForm=We,exports.Form=Ce,exports.FormField=_e,exports.FormSelect=Oe,exports.Header=dt,exports.Heading=z,exports.Hero=Me,exports.HomeScreen=Vt,exports.Hr=q,exports.HtmlContent=me,exports.Icon=T,exports.Image=K,exports.Label=Z,exports.Link=D,exports.List=Q,exports.ListItem=ee,exports.Loader=O,exports.LoginForm=Ye,exports.Logo=J,exports.Menu=De,exports.MenuScreen=Wt,exports.MultiCheckboxFacet=Ct,exports.Notice=te,exports.OTPInput=ct,exports.PanelCards=Xe,exports.PanelFeature=Qe,exports.PanelHero=et,exports.PanelProduct=tt,exports.PanelVideo=st,exports.ProfileForm=Ot,exports.ProfileScreen=zt,exports.Radio=se,exports.RegisterForm=Ve,exports.ResetPasswordForm=yt,exports.STRINGS_EN=ne,exports.ScheduleScreen=Zt,exports.Search=Tt,exports.Share=Re,exports.SingleLinksFacet=It,exports.SingleSelectFacet=jt,exports.SubscriptionScreen=Xt,exports.Switch=ae,exports.Tabs=Le,exports.TextInput=re,exports.ThemeContext=ge,exports.ThemeProvider=({children:t,theme:s})=>e.jsx(ge.Provider,{value:s,children:t}),exports.Video=Je,exports.VisitUs=we,exports.WorkoutScreen=Qt,exports.defaultTheme=Ne,exports.theme=qs,exports.useLanguage=fe,exports.useTheme=function(){return t.useContext(ge)};