@udixio/ui-react 2.4.2 → 2.5.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.
- package/CHANGELOG.md +28 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +1712 -1437
- package/dist/lib/components/Carousel.d.ts +7 -2
- package/dist/lib/components/Carousel.d.ts.map +1 -1
- package/dist/lib/components/CarouselItem.d.ts +1 -1
- package/dist/lib/components/CarouselItem.d.ts.map +1 -1
- package/dist/lib/components/Slider.d.ts.map +1 -1
- package/dist/lib/effects/custom-scroll/custom-scroll.effect.d.ts +1 -1
- package/dist/lib/effects/custom-scroll/custom-scroll.effect.d.ts.map +1 -1
- package/dist/lib/effects/custom-scroll/custom-scroll.interface.d.ts +2 -0
- package/dist/lib/effects/custom-scroll/custom-scroll.interface.d.ts.map +1 -1
- package/dist/lib/effects/custom-scroll/custom-scroll.style.d.ts +4 -0
- package/dist/lib/effects/custom-scroll/custom-scroll.style.d.ts.map +1 -1
- package/dist/lib/interfaces/carousel-item.interface.d.ts +1 -0
- package/dist/lib/interfaces/carousel-item.interface.d.ts.map +1 -1
- package/dist/lib/interfaces/carousel.interface.d.ts +19 -1
- package/dist/lib/interfaces/carousel.interface.d.ts.map +1 -1
- package/dist/lib/styles/carousel-item.style.d.ts +2 -0
- package/dist/lib/styles/carousel-item.style.d.ts.map +1 -1
- package/dist/lib/styles/carousel.style.d.ts +5 -1
- package/dist/lib/styles/carousel.style.d.ts.map +1 -1
- package/dist/lib/styles/icon-button.style.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/lib/components/Carousel.tsx +535 -52
- package/src/lib/components/CarouselItem.tsx +12 -6
- package/src/lib/components/Slider.tsx +25 -28
- package/src/lib/effects/custom-scroll/custom-scroll.effect.tsx +111 -2
- package/src/lib/effects/custom-scroll/custom-scroll.interface.ts +4 -0
- package/src/lib/interfaces/carousel-item.interface.ts +1 -0
- package/src/lib/interfaces/carousel.interface.ts +20 -1
- package/src/lib/styles/carousel-item.style.ts +5 -2
- package/src/lib/styles/carousel.style.ts +1 -3
- package/src/lib/styles/icon-button.style.ts +5 -15
- package/src/lib/styles/slider.style.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## 2.5.0 (2025-10-23)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **carousel:** add live metrics support and restore centering logic ([c0e57df](https://github.com/Udixio/UI/commit/c0e57df))
|
|
6
|
+
- **carousel:** add smooth scroll animation with framer-motion ([8ddf506](https://github.com/Udixio/UI/commit/8ddf506))
|
|
7
|
+
- **markdown:** add markdown renderer with class map support and HTML sanitization ([0ab4ae4](https://github.com/Udixio/UI/commit/0ab4ae4))
|
|
8
|
+
- **carousel:** improve dynamic item width calculation and enhance responsiveness ([0363f14](https://github.com/Udixio/UI/commit/0363f14))
|
|
9
|
+
- **carousel:** enhance `CarouselItem` width behavior and add controlled scroll progress ([fea2674](https://github.com/Udixio/UI/commit/fea2674))
|
|
10
|
+
- **carousel:** add controlled `index` prop and example with navigation buttons ([2179cbc](https://github.com/Udixio/UI/commit/2179cbc))
|
|
11
|
+
- **styles, carousel:** implement customizable themes and enhanced accessibility ([548af98](https://github.com/Udixio/UI/commit/548af98))
|
|
12
|
+
|
|
13
|
+
### 🩹 Fixes
|
|
14
|
+
|
|
15
|
+
- **ui-react:** simplify shape transformation logic in icon-button styles ([1766174](https://github.com/Udixio/UI/commit/1766174))
|
|
16
|
+
- **slider:** add relative positioning to handle for improved style control ([b4cc12f](https://github.com/Udixio/UI/commit/b4cc12f))
|
|
17
|
+
|
|
18
|
+
### ❤️ Thank You
|
|
19
|
+
|
|
20
|
+
- Joël VIGREUX
|
|
21
|
+
|
|
22
|
+
## 2.4.3 (2025-10-17)
|
|
23
|
+
|
|
24
|
+
### 🧱 Updated Dependencies
|
|
25
|
+
|
|
26
|
+
- Updated @udixio/tailwind to 2.3.7
|
|
27
|
+
- Updated @udixio/theme to 2.1.2
|
|
28
|
+
|
|
1
29
|
## 2.4.2 (2025-10-17)
|
|
2
30
|
|
|
3
31
|
### 🧱 Updated Dependencies
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),de=require("clsx"),Xe=require("tailwind-merge"),i=require("react"),k=require("motion/react"),Ye=require("throttle-debounce"),_e=require("motion"),fe=require("react-dom"),Q=require("@udixio/theme"),me=require("@udixio/tailwind"),Ke=require("react-textarea-autosize"),he=Xe.extendTailwindMerge({override:{classGroups:{"text-color":[{text:[e=>!e.startsWith("display-")&&!e.startsWith("headline-")&&!e.startsWith("title-")&&!e.startsWith("body-")&&!e.startsWith("label-")]}]}},extend:{classGroups:{font:[{text:[e=>e.startsWith("display-")||e.startsWith("headline-")||e.startsWith("title-")||e.startsWith("body-")||e.startsWith("label-")]}]},conflictingClassGroups:{font:["font"]}}}),p=(...e)=>he(de.clsx(e)),pe=(...e)=>he(de.clsx(e));function Ge(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}const ye=e=>{const t={};e.classNameList.forEach(o=>{var r;if(o)if(typeof o=="string")(t[r=e.default]??(t[r]=[])).push(o);else{const c=o(e.states);Object.entries(c).map(d=>{const[a,f]=d;(t[a]??(t[a]=[])).push(f)})}});const n=t;return Object.entries(t).map(o=>{let[r,c]=o;c=c.reverse(),r==e.default&&c.unshift("relative"),c.unshift(Ge(r)),n[r]=pe(...c)}),n},F=(e,t)=>n=>ye({classNameList:[n.className,t],default:e,states:n}),xe=F("button",({variant:e,disableTextMargins:t,disabled:n,iconPosition:o,icon:r,isActive:c,loading:d,shape:a,onToggle:f,size:l,allowShapeTransformation:y})=>({button:p(" relative cursor-pointer group outline-none inline-block flex justify-center items-center ",l==="xSmall"&&"text-label-large px-3 py-1.5 gap-1",l==="small"&&"text-label-large px-4 py-2.5 gap-2",l==="medium"&&"text-title-medium px-6 py-4 gap-2",l==="large"&&"text-headline-small px-12 py-8 gap-3",l==="xLarge"&&"text-headline-large px-16 py-12 gap-4",a==="rounded"&&{"rounded-[30px]":l==="xSmall"||l=="small","rounded-[40px]":l==="medium","rounded-[70px]":l==="large"||l=="xLarge"},(a==="squared"||y&&c)&&{"rounded-[12px]":l==="xSmall"||l=="small","rounded-[16px]":l==="medium","rounded-[28px]":l==="large"||l=="xLarge"},y&&!n&&{"active:rounded-[12px]":l==="xSmall"||l=="small","active:rounded-[16px]":l==="medium","active:rounded-[28px]":l==="large"||l=="xLarge"},e==="elevated"&&{"shadow-1 hover:shadow-2":!n,"bg-surface-container-low text-primary":!n&&!c,"bg-primary text-on-primary":!n&&c,"text-on-surface/[38%]":n},e==="filled"&&{"hover:shadow-1":!n,"bg-surface-container text-on-surface-variant":!n&&!c&&f,"bg-primary text-on-primary":!n&&(c&&f||!f),"text-on-surface/[38%]":n},e==="tonal"&&{"hover:shadow-1":!n,"bg-secondary-container text-on-secondary-container":!n&&!c,"bg-secondary text-on-secondary":!n&&c,"text-on-surface/[0.38]":n},e==="outlined"&&[" border",{"border-on-surface/[0.12] text-on-surface/[0.38]":n,"text-primary border-outline focus:border-primary":!n&&!c,"text-inverse-on-surface bg-inverse-surface border-inverse-surface":!n&&c}],e==="text"&&["w-fit",{"text-primary":!n,"text-on-surface/[0.38]":n},t&&[l==="xSmall"&&"-mx-3 ",l==="small"&&"-mx-4 ",l==="medium"&&"-mx-6 ",l==="large"&&"-mx-12",l==="xLarge"&&"-mx-16 "]],n&&"cursor-default"),touchTarget:p("absolute -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2 h-12 w-full"),stateLayer:p("min-h-full min-w-full absolute top-0 left-0 overflow-hidden",e==="elevated"&&{"bg-on-surface/[0.12]":n,"group-state-primary":!n},e==="filled"&&{"bg-on-surface/[0.12]":n,"group-state-on-primary":!n&&!f,"group-state-on-surface-variant":!n&&f},a==="rounded"&&{"rounded-[30px]":l==="xSmall"||l=="small","rounded-[40px]":l==="medium","rounded-[70px]":l==="large"||l=="xLarge"},(a==="squared"||y&&c)&&{"rounded-[12px]":l==="xSmall"||l=="small","rounded-[16px]":l==="medium","rounded-[28px]":l==="large"||l=="xLarge"},y&&!n&&{"group-active:rounded-[12px]":l==="xSmall"||l=="small","group-active:rounded-[16px]":l==="medium","group-active:rounded-[28px]":l==="large"||l=="xLarge"},e==="tonal"&&{"bg-on-surface/[0.12]":n,"group-state-on-secondary-container ":!n},e==="outlined"&&{"group-state-primary group-state-primary":!n},e==="text"&&{"group-state-primary":!n}),label:p({invisible:d}),icon:p({invisible:d},l==="xSmall"&&"size-5",l==="small"&&"size-5",l==="medium"&&"size-6",l==="large"&&"size-8",l==="xLarge"&&"size-10")})),ge=F("card",({variant:e,isInteractive:t})=>({card:p("group/card rounded-xl overflow-hidden z-10",e==="outlined"&&"bg-surface border border-outline-variant",e==="elevated"&&"bg-surface-container-low shadow-1",e==="filled"&&"bg-surface-container-highest"),stateLayer:p(["w-full top-0 left-0 h-full absolute -z-10",{" group-hover/card:hover-state-on-surface group-focus-visible/card:focus-state-on-surface":t}])})),ve=F("carouselItem",()=>({carouselItem:p("rounded-[28px] overflow-hidden flex-none")})),we=F("carousel",()=>({carousel:p(["w-full h-[400px]"]),track:p("grid grid-flow-col h-full transition-transform ease-out w-fit")})),be=F("divider",({orientation:e})=>({divider:p("border-outline-variant ",{"h-fit w-full border-t":e==="horizontal"},{"h-auto self-stretch w-fit border-l":e==="vertical"})})),Se=F("fab",({size:e,variant:t,isExtended:n})=>({fab:p("flex shadow-3 hover:shadow-4 group overflow-hidden outline-none items-center cursor-pointer",{"rounded-[12px]":e=="small"&&!n,"rounded-[16px]":e=="medium"||n,"rounded-[28px]":e=="large"&&!n},{"p-2":e=="small"&&!n,"p-4":e=="medium"||n,"p-[30px]":e=="large"&&!n},t==="surface"&&"bg-surface-container",t==="primary"&&"bg-primary-container",t==="secondary"&&"bg-secondary-container",t==="tertiary"&&"bg-tertiary-container",t==="surface"&&"text-primary",t==="primary"&&"text-on-primary-container",t==="secondary"&&"text-on-secondary-container",t==="tertiary"&&"text-on-tertiary-container"),stateLayer:p("absolute w-full h-full overflow-hidden left-1/2 top-1/2 transform -translate-y-1/2 -translate-x-1/2",t==="surface"&&"group-hover:hover-state-primary group-focus:focus-state-primary",t==="primary"&&"group-hover:hover-state-on-primary-container group-focus-visible:focus-state-on-primary-container",t==="secondary"&&"group-hover:hover-state-on-secondary-container group-focus-visible:focus-state-on-secondary-container",t==="tertiary"&&"group-hover:hover-state-on-tertiary-container group-focus-visible:focus-state-on-tertiary-container"),icon:p({"size-6":e=="small"||e=="medium"||n,"size-9":e=="large"&&!n}),label:p("text-title-medium text-nowrap")})),je=F("iconButton",({variant:e,disabled:t,onToggle:n,isActive:o,size:r,width:c,shape:d,allowShapeTransformation:a})=>({iconButton:p("rounded-full relative flex transition-all duration-300","group cursor-pointer",{"cursor-default":t},(d==="rounded"||d==="squared"&&n&&!t&&o&&a)&&{"rounded-[30px]":r==="xSmall"||r=="small","rounded-[40px]":r==="medium","rounded-[70px]":r==="large"||r=="xLarge"},(d==="squared"||d==="rounded"&&n&&!t&&o&&a)&&{"rounded-[12px]":r==="xSmall"||r=="small","rounded-[16px]":r==="medium","rounded-[28px]":r==="large"||r=="xLarge"},a&&!t&&{"group-active:rounded-[12px]":r==="xSmall"||r=="small","group-active:rounded-[16px]":r==="medium","group-active:rounded-[28px]":r==="large"||r=="xLarge"},e==="filled"&&[!t&&{"bg-surface-container":!o&&!!n,"bg-primary":o||!n},!!t&&"bg-on-surface/[0.12]"],e==="tonal"&&[!t&&{"bg-surface-container":!o&&!!n,"bg-secondary-container":o||!n},!!t&&"bg-on-surface/[0.12]"],e==="outlined"&&[!t&&{"border border-outline":!o,"border border-transparent bg-inverse-surface":o},!!t&&{"border border-on-surface/[0.12]":!o,"border border-transparent bg-on-surface/[0.12]":o}]),touchTarget:p("absolute -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2 h-12 w-full"),stateLayer:p("absolute top-0 left-0 h-full w-full overflow-hidden",(d==="rounded"||d==="squared"&&n&&!t&&o&&a)&&{"rounded-[30px]":r==="xSmall"||r=="small","rounded-[40px]":r==="medium","rounded-[70px]":r==="large"||r=="xLarge"},(d==="squared"||d==="rounded"&&n&&!t&&o&&a)&&{"rounded-[12px]":r==="xSmall"||r=="small","rounded-[16px]":r==="medium","rounded-[28px]":r==="large"||r=="xLarge"},a&&!t&&{"group-active:rounded-[12px]":r==="xSmall"||r=="small","group-active:rounded-[16px]":r==="medium","group-active:rounded-[28px]":r==="large"||r=="xLarge"},!t&&[e==="standard"&&{"state-on-surface-variant":!o,"state-primary":o},e==="filled"&&{"state-primary":!o&&!!n,"state-inverse-on-surface":o||!n},e==="tonal"&&{"state-on-surface-variant":!o&&!!n,"state-on-secondary-container":o||!n},e==="outlined"&&{"state-on-surface-variant":!o,"state-on-primary":o}]),icon:p(" transition-all duration-300",{"size-5 p-1.5":r==="xSmall"},{"size-6 p-2":r==="small"},{"size-6 p-4":r==="medium"},{"size-8 p-8":r==="large"},{"size-10 p-12":r==="xLarge"},c=="narrow"&&[{"px-1":r==="xSmall"},{"px-1":r==="small"},{"px-3":r==="medium"},{"px-4":r==="large"},{"px-8":r==="xLarge"}],c=="wide"&&[{"px-2.5":r==="xSmall"},{"px-3.5":r==="small"},{"px-6":r==="medium"},{"px-12":r==="large"},{"px-[72px]":r==="xLarge"}],!t&&[e==="standard"&&{"text-on-surface-variant":!o,"text-primary":o},e==="filled"&&{"text-primary":!o&&!!n,"text-on-primary":o||!n},e==="tonal"&&{"text-on-surface-variant":!o&&!!n,"text-on-secondary-container":o||!n},e==="outlined"&&{"text-on-surface-variant":!o,"text-inverse-on-surface":o}],!!t&&"text-on-surface/[0.38]")})),Ee=F("progressIndicator",({variant:e,isVisible:t})=>({progressIndicator:p((e==="linear-determinate"||e=="linear-indeterminate")&&"flex w-full h-1"),track:p("h-full rounded-full bg-primary rounded-l-full",{"max-h-0":!t,"max-h-full":t}),activeIndicator:p({"max-h-0":!t,"max-h-full":t},(e==="linear-determinate"||e=="linear-indeterminate")&&"h-full flex-1 rounded-full bg-primary-container",(e==="circular-determinate"||e=="circular-indeterminate")&&["stroke-primary fill-transparent ",{"stroke-[4px]":t,"stroke-[0px]":!t}]),stop:p("absolute top-1/2 -translate-y-1/2 right-0 bg-primary rounded-full size-1",{"max-h-0":!t,"max-h-full":t})})),Le=F("slideSheet",({variant:e,position:t})=>({slideSheet:p("bg-surface flex justify-between max-w-xs z-10",{"flex-row-reverse":t=="right","h-full":e=="standard"},e=="modal"&&["rounded-2xl fixed top-0 m-[1rem] h-[calc(100dvh-2rem)]",{"right-0":t=="right","left-0":t=="left"}]),container:p("w-full overflow-hidden",{}),content:p("w-fit "),header:p("p-4 flex items-center gap-2"),title:p("text-on-surface-variant text-title-large"),closeButton:p("ml-auto"),divider:p({hidden:e=="modal"}),overlay:p("bg-[black]/[0.32] fixed top-0 left-0 w-screen h-screen")})),Ne=F("slider",({isChanging:e})=>({slider:p(["relative w-full h-11 flex items-center rounded gap-x-1.5 cursor-pointer min-w-32"]),activeTrack:p(["h-4 relative transition-all duration-100 bg-primary overflow-hidden rounded-l-full "]),inactiveTrack:p(["h-4 relative transition-all duration-100 bg-primary-container rounded-r-full overflow-hidden"]),handle:p(["transform transition-all duration-100 bg-primary h-full rounded-full ",{"w-0.5":e,"w-1":!e}]),valueIndicator:p(["absolute select-none bg-inverse-surface text-inverse-on-surface py-3 px-4 text-label-large rounded-full bottom-[calc(100%+4px)] transform left-1/2 -translate-x-1/2"]),dot:p(["h-1 w-1 absolute transform -translate-y-1/2 -translate-x-1/2 top-1/2 rounded-full"])})),Ie=F("snackbar",()=>({snackbar:p(" rounded bg-inverse-surface "),container:p("pl-4 pr-2 max-w-full py-1 flex items-center flex-wrap"),supportingText:p("text-body-medium text-inverse-on-surface "),icon:p(" ml-auto mr-0 text-inverse-on-surface block dark")})),Re=F("switch",({isSelected:e,disabled:t,inactiveIcon:n})=>({switch:p("group w-[52px] h-[32px] outline-none rounded-full border-2 flex items-center",{"bg-on-surface/[0.12] border-transparent":t},!t&&["cursor-pointer ",{"bg-primary border-primary":e},{"bg-surface-container border-outline":!e}]),handleContainer:p("flex items-center justify-center absolute",{"left-[14px]":!e},{"right-[14px]":e}),handle:p("transition-all duration-100 z-10 rounded-full flex items-center justify-center",{"w-[16px] h-[16px]":!e&&!n},{"w-[24px] h-[24px]":!(!e&&!n)},!t&&["cursor-pointer group-active:h-[28px] group-active:w-[28px]",{"bg-on-primary group-hover:bg-primary-container":e},{"bg-outline group-hover:bg-on-surface-variant":!e}],{"bg-surface":t}),handleStateLayer:p("w-[40px] h-[40px] -z-10 rounded-full absolute",{"group-state-primary":!t}),icon:p("w-[16px] h-[16px]",!t&&[{"text-on-primary-container":e},{"text-on-primary":!e}],{"text-on-surface/[0.38]":t})})),ke=F("tab",({isSelected:e,icon:t,label:n,variant:o})=>({tab:p("flex-1 group outline-none flex px-4 justify-center items-center cursor-pointer",{"z-10":e},!!(t&&n)&&o==="primary"&&"h-16",!(t&&n&&o==="primary")&&"h-12"),stateLayer:p("absolute w-full h-full overflow-hidden left-1/2 top-1/2 transform -translate-y-1/2 -translate-x-1/2",o==="primary"&&{"group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface":!e,"group-hover:hover-state-primary group-focus-visible:focus-state-primary":e},o==="secondary"&&"group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface"),content:p("flex gap-0.5 h-full justify-center",{relative:o=="primary"},{"":!!(n&&!t)},o==="primary"&&"flex-col items-center",o==="secondary"&&{"flex-col items-center":!(n&&t),"flex-row items-center gap-2":!!(n&&t)}),icon:p("h-6 w-6 p-0.5 !box-border",o==="primary"&&{"text-on-surface-variant":!e,"text-primary":e},o==="secondary"&&{"text-on-surface-variant":!e,"text-on-surface":e}),label:p("text-title-small text-nowrap",o==="primary"&&{"text-on-surface-variant":!e,"text-primary":e},o==="secondary"&&{"text-on-surface-variant":!e,"text-on-surface":e}),underline:p("bg-primary absolute w-full left-0 bottom-0",o==="primary"&&"h-[3px] rounded-t",o==="secondary"&&"h-0.5")})),$e=F("tabs",({scrollable:e})=>({tabs:p("border-b border-surface-container-highest bg-surface","flex relative ",{"overflow-x-auto":e})})),Ce=F("textField",({disabled:e,leadingIcon:t,trailingIcon:n,variant:o,errorText:r,isFocused:c,value:d,suffix:a,textLine:f})=>({textField:p({"opacity-[.38]":e}),content:p("group transition-border duration-200 relative flex items-center ",{"h-14":f=="singleLine"},{"border-on-surface-variant":!(r!=null&&r.length)&&!c&&o=="filled","border-outline":!(r!=null&&r.length)&&!c&&o=="outlined","border-primary":!(r!=null&&r.length)&&c,"border-error":!!(r!=null&&r.length)},{"bg-on-surface/[0.04]":e},o=="filled"&&["rounded-t overflow-hidden border-b",{"bg-surface-container-highest":!e}],o=="outlined"&&["border rounded box-border",{"border-[3px]":c}]),stateLayer:p("absolute -z-10 w-full h-full top-0 left-0",{hidden:o=="outlined"},{"group-state-on-surface":!e,"focus-state-on-surface":c}),label:p("inline-flex outline-none whitespace-nowrap",{"text-on-surface-variant":!e&&!(r!=null&&r.length)},{"text-on-surface":e},{"text-error":!!(r!=null&&r.length)},{"text-primary":!(r!=null&&r.length)&&c}),input:p("w-full resize-none px-4 text-body-large bg-[inherit] outline-none autofill:transition-colors autofill:duration-[5000000ms]",{" text-on-surface placeholder:text-on-surface-variant":!e,"placeholder:text-on-surface text-on-surface":e},{"pr-0":!!a},o=="filled"&&" pb-2 pt-6",o=="outlined"&&"py-4 relative z-10"),activeIndicator:p("absolute w-0 inset-x-0 border-rounded mx-auto bottom-0",o=="filled"&&["h-[2px] transition-all duration-300",{"bg-primary":!(r!=null&&r.length)},{"bg-error":!!(r!=null&&r.length)},{"!w-full":c}]),supportingText:p(" text-body-small px-4 pt-1",{"text-on-surface-variant":!e&&!(r!=null&&r.length)},{"text-on-surface":e},{"!w-full":c},{"text-error":!!(r!=null&&r.length)}),leadingIcon:p(["h-12 ml-3 flex items-center justify-center",{"cursor-text":!i.isValidElement(t)}]),trailingIcon:p("h-12 w-12 flex items-center justify-center",{"cursor-text":!i.isValidElement(n)}),suffix:p("text-on-surface-variant pl-0 pr-4",o=="filled"&&" pb-2 pt-6",o=="outlined"&&"py-4 relative z-10")})),Me=F("toolTip",({position:e,variant:t})=>({toolTip:p(" pointer-events-auto w-max z-10 absolute m-1 w-max-content max-w-[312px]",{"bottom-full left-1/2 -translate-x-1/2":e=="top","top-full left-1/2 -translate-x-1/2":e=="bottom","right-full top-1/2 -translate-y-1/2":e=="left","left-full top-1/2 -translate-y-1/2":e=="right","bottom-full right-full":e=="top-left","bottom-full left-full":e=="top-right","top-full right-full":e=="bottom-left","top-full left-full":e=="bottom-right"}),container:p("pb-2",t=="rich"&&"bg-surface-container rounded-2xl text-on-surface-container px-4 pt-3 shadow-2",t=="plain"&&"bg-inverse-surface rounded text-inverse-on-surface px-2 py-1"),actions:p("flex gap-10 px-1 mt-2",t=="plain"&&"hidden"),subHead:p("text-title-small mb-1",t=="plain"&&"hidden"),supportingText:p("")})),_=({icon:e,colors:t=[],className:n})=>{if(typeof e=="string"){let l=e;return t[0]&&(l=l.replace(/<svg([^>]*)>/,`<svg$1 fill="${t[0]}" color="${t[0]}">`),l=l.replace(/<path([^>]*?)>/g,'<path$1 fill="currentColor">')),u.jsx("div",{className:p("size-5 box-content inline-flex fill-current",n),style:{color:t[0]||"inherit"},dangerouslySetInnerHTML:{__html:l}})}if(e&&typeof e=="object"&&"src"in e){const l=e;return u.jsx("img",{src:l.src,width:l.width,height:l.height,className:p("size-5 box-content",n),style:{filter:t[0]?"brightness(0) saturate(100%) invert(1)":void 0},alt:"","aria-hidden":"true"})}const o=e;if(!(o!=null&&o.prefix))throw new Error(`Invalid icon type: ${typeof e}`);const{icon:r}=o,[c,d,,,a]=r||[],f=l=>{switch(l.length){case 2:return{"--fa-primary-color":l[0]||"inherit","--fa-secondary-color":l[1]||"inherit"};case 1:return{color:l[0]};default:return{}}};return u.jsx("svg",{className:p("size-5 box-content",n),style:{...f(t)},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${c} ${d}`,role:"img","aria-hidden":"true",children:typeof a=="string"?u.jsx("path",{className:"fill-current",d:a}):a.map((l,y)=>u.jsx("path",{d:l},y))})},Pe=({variant:e="linear-determinate",value:t=0,transitionDuration:n=1e3,className:o,...r})=>{const[c,d]=i.useState(t),[a]=i.useState(1.5);i.useEffect(()=>{t>100&&(t=100),t<0&&(t=0),d(t)},[t]);const[f,l]=i.useState(!0),y=()=>f?a:a*.5;i.useEffect(()=>{if((e==="circular-indeterminate"||e==="linear-indeterminate")&&c!==100){const x=setInterval(()=>{d(f?10:90),l(!f)},y()*1e3);return()=>clearInterval(x)}},[e,f,c]);const[h,s]=i.useState(!1);i.useEffect(()=>{if(c>=100){const x=setTimeout(()=>{s(!1)},n);return()=>{clearTimeout(x)}}else s(!0)},[c,n]);const m=Ee({className:o,variant:e,value:t,transitionDuration:n,isVisible:h});return u.jsxs(u.Fragment,{children:[(e==="linear-determinate"||e=="linear-indeterminate")&&u.jsxs("div",{className:m.progressIndicator,...r,children:[u.jsx("div",{style:{width:`${c}%`,transition:`width ${n}ms ease-in-out ${c==100?", max-height 200ms 0.5s ease-in-out":""}`},className:m.track}),u.jsx("div",{style:{marginLeft:c!=100?"6px":"0px",transition:`width ${n}ms ease-in-out ${c==100?`, max-height 200ms 0.5s ease-in-out, margin-left ${n}ms ${n/1.5}ms`:""}`},className:m.activeIndicator}),u.jsx("div",{style:{width:"4 px",transition:`width ${n}ms ease-in-out, max-height 200ms 0.5s ease-in-out`},className:m.stop})]}),(e==="circular-determinate"||e=="circular-indeterminate")&&u.jsx(k.motion.svg,{width:"48",height:"48",viewBox:"0 0 48 48",initial:{rotate:-90},animate:{rotate:270},transition:{repeat:1/0,duration:y(),ease:"linear"},className:m.progressIndicator,...r,children:u.jsx(k.motion.circle,{cx:"50%",cy:"50%",r:h?"calc(50% - 2px)":"50%",style:{strokeLinecap:"round"},initial:"hidden",animate:"visible",className:m.activeIndicator,variants:{hidden:{pathLength:f?10/100:90/100},visible:{pathLength:f?90/100:10/100}},transition:{pathLength:{type:"tween",ease:"linear",duration:y(),bounce:0}}})},f+"")]})},J=({colorName:e="on-surface",triggerRef:t})=>{const n={initial:{opacity:0,borderRadius:"50%",width:"25%",height:"25%"},animate:{opacity:1,borderRadius:0,width:"200%",height:"200%",transition:{duration:.3,borderRadius:{duration:.3,delay:.3}}}},[o,r]=i.useState(!0),[c,d]=i.useState(!1),[a,f]=i.useState({x:0,y:0});i.useEffect(()=>{c&&(r(!0),r(!1))},[c]),i.useEffect(()=>{const s=t==null?void 0:t.current;if(s)return s.addEventListener("mousedown",l),s.addEventListener("mouseup",h),s.addEventListener("mouseleave",y),()=>{s.removeEventListener("mousedown",l),s.removeEventListener("mouseup",h),s.removeEventListener("mouseleave",y)}},[t]);const l=s=>{const m=t==null?void 0:t.current,x=m.getBoundingClientRect();d(!0),f({x:(s.clientX-x.left)/m.clientWidth*100,y:(s.clientY-x.top)/m.clientHeight*100})},y=s=>{d(!1)},h=s=>{d(!1)};return u.jsx(k.AnimatePresence,{mode:"wait",children:(c||!c&&!o)&&u.jsx(k.motion.div,{style:{position:"absolute",width:"100%",height:"100%",top:a.y+"%",left:a.x+"%",background:`color-mix(in srgb, var(--color-${e}) 12%, transparent)`,pointerEvents:"none"},variants:n,initial:"initial",animate:"animate",exit:{opacity:0,transition:{duration:0}},onAnimationComplete:()=>r(!0),className:"transform -translate-x-1/2 -translate-y-1/2"})})},Be=F("customScroll",({orientation:e,draggable:t,isDragging:n})=>({customScroll:p("flex h-full w-full",t&&["[&::-webkit-scrollbar-track]:rounded-full","[&::-webkit-scrollbar-track]:bg-transparent","[&::-webkit-scrollbar-thumb]:rounded-full",{"[&::-webkit-scrollbar-thumb]:bg-outline":n,"[&::-webkit-scrollbar-thumb]:bg-transparent":!n},{"[&::-webkit-scrollbar]:h-2":e==="horizontal"},{"[&::-webkit-scrollbar]:w-2":e==="vertical"}],{"overflow-y-scroll flex-col":e==="vertical","overflow-x-scroll flex-row":e==="horizontal","cursor-grab":t&&!n,"cursor-grabbing":t&&n}),track:p("overflow-hidden flex-none sticky",{"left-0 h-full":e==="horizontal","top-0 w-full":e==="vertical"})})),De=({children:e,orientation:t="vertical",scrollSize:n,onScroll:o,className:r,draggable:c=!1,throttleDuration:d=75})=>{var B,A;const a=i.useRef(null),f=i.useRef(null),[l,y]=i.useState({width:null,height:null});i.useEffect(()=>{if(!a.current)return;const R=new ResizeObserver(W=>{for(const V of W)V.target===a.current&&y({width:V.contentRect.width,height:V.contentRect.height})});return R.observe(a.current),()=>{R.disconnect()}},[a]);const h=i.useRef(null),s=i.useRef(null),m=()=>{const R=f.current;return R?{width:n??R.scrollWidth,height:n??R.scrollHeight}:null},x=()=>{const R=a.current;return R?{width:R.clientWidth,height:R.clientHeight}:null},{scrollYProgress:v,scrollXProgress:w}=k.useScroll({container:a}),L=i.useRef(null);L.current||(L.current=Ye.throttle(d,(R,W)=>{!s.current||!h.current||!a.current||o&&(t==="horizontal"&&W==="x"&&o({scrollProgress:R,scroll:R*(h.current.width-a.current.clientWidth),scrollTotal:h.current.width-a.current.clientWidth,scrollVisible:s.current.width}),t==="vertical"&&W==="y"&&o({scrollProgress:R,scroll:R*(h.current.height-a.current.clientHeight),scrollTotal:h.current.height-a.current.clientHeight,scrollVisible:s.current.height}))}));const j=(R,W)=>{L.current&&L.current(R,W)};i.useEffect(()=>{l.width&&j(w.get(),"x"),l.height&&j(v.get(),"y")},[l]),k.useMotionValueEvent(w,"change",R=>{j(R,"x")}),k.useMotionValueEvent(v,"change",R=>{j(R,"y")});const[M,E]=i.useState(!1);i.useLayoutEffect(()=>{M||!s.current||!h.current||!o||(o({scrollProgress:0,scroll:0,scrollTotal:t=="vertical"?h.current.height:h.current.width,scrollVisible:t=="vertical"?s.current.height:s.current.width}),E(!0))},[s,h,o]),h.current=m(),s.current=x();const[N,$]=i.useState(!1),D=Be({isDragging:N,children:e,className:r,onScroll:o,orientation:t,scrollSize:n,draggable:c,throttleDuration:d}),[P,I]=i.useState(0),[g,C]=i.useState(0),q=R=>{if(!c)return;const W=a.current;if(!W||P==null)return;const Y=(R.pageX-W.offsetLeft-P)*1.5;W.scrollLeft=g-Y},H=R=>{const W=a.current;W&&($(!0),I(R.pageX-W.offsetLeft),C(W.scrollLeft))},X=R=>{N&&(R.preventDefault(),q(R))},O=()=>{$(!1)},K=()=>{$(!1)},S=R=>{R.preventDefault()},b=i.useRef(null);return i.useEffect(()=>()=>{b.current&&clearTimeout(b.current)},[]),u.jsxs("div",{className:D.customScroll,ref:a,onMouseDown:H,onMouseMove:X,onMouseUp:O,onMouseLeave:K,onDragStart:S,onScroll:R=>{N||(I(null),$(!0),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{$(!1)},1e3))},children:[u.jsx("div",{ref:f,style:t==="vertical"?{height:((B=s==null?void 0:s.current)==null?void 0:B.height)??"100%"}:{width:((A=s==null?void 0:s.current)==null?void 0:A.width)??"100%"},className:D.track,children:e}),s.current&&h.current&&u.jsxs(u.Fragment,{children:[t==="vertical"&&h.current.height>s.current.height&&u.jsx(k.motion.div,{className:"flex-none",style:{height:h.current.height-s.current.height}}),t==="horizontal"&&h.current.width>s.current.width&&u.jsx(k.motion.div,{className:"flex-none",style:{width:h.current.width-s.current.width}})]})]})},Je=({onScroll:e,el:t,touch:n=!0})=>{const o=i.useRef(null),r=i.useRef(0),c=i.useRef(0);i.useEffect(()=>{if(!t)return;r.current=t.scrollTop,c.current=t.scrollLeft;const d=s=>{e==null||e(s)},a=s=>{s.preventDefault(),d({type:"intent",source:"wheel",deltaX:s.deltaX,deltaY:s.deltaY,originalEvent:s})},f=s=>{if(!n)return;const m=s.touches[0];m&&(o.current={x:m.clientX,y:m.clientY})},l=s=>{if(!n)return;const m=s.touches[0];if(!m||!o.current)return;s.preventDefault();const x=o.current.x-m.clientX,v=o.current.y-m.clientY;o.current={x:m.clientX,y:m.clientY},d({type:"intent",source:"touch",deltaX:x,deltaY:v,originalEvent:s})},y=()=>{n&&(o.current=null)},h=s=>{const x=t.clientHeight*.9;let v=0,w=0;switch(s.key){case"ArrowDown":w=40;break;case"ArrowUp":w=-40;break;case"ArrowRight":v=40;break;case"ArrowLeft":v=-40;break;case"PageDown":w=x;break;case"PageUp":w=-x;break;case"Home":w=Number.NEGATIVE_INFINITY;break;case"End":w=Number.POSITIVE_INFINITY;break;case" ":w=s.shiftKey?-x:x;break;default:return}s.preventDefault(),d({type:"intent",source:"keyboard",deltaX:v,deltaY:w,originalEvent:s})};return t.addEventListener("wheel",a,{passive:!1}),t.addEventListener("touchstart",f,{passive:!0}),t.addEventListener("touchmove",l,{passive:!1}),t.addEventListener("touchend",y,{passive:!0}),t.addEventListener("keydown",h),()=>{t.removeEventListener("wheel",a),t.removeEventListener("touchstart",f),t.removeEventListener("touchmove",l),t.removeEventListener("touchend",y),t.removeEventListener("keydown",h)}},[e])},Ze=({transition:e,orientation:t="vertical",throttleDuration:n=25})=>{const[o,r]=i.useState(0),[c,d]=i.useState(),a=i.useRef(!1),f=i.useRef(),l=i.useRef(0);i.useEffect(()=>{d(document);const s=document.documentElement.scrollTop;r(s),l.current=s},[]),i.useEffect(()=>{const s=()=>{a.current||r(document.documentElement.scrollTop)};return c==null||c.addEventListener("scroll",s),()=>{f.current&&clearTimeout(f.current),c==null||c.removeEventListener("scroll",s)}},[c]);const y=i.useRef(),h=i.useRef(null);return i.useEffect(()=>{const s=o;if(h.current&&(h.current.stop(),h.current=null),!a.current){y.current=s;return}return h.current=_e.animate(y.current??s,s,{duration:((e==null?void 0:e.duration)??500)/1e3,ease:(e==null?void 0:e.ease)??"easeOut",onUpdate:m=>{f.current&&clearTimeout(f.current),y.current=m;const x=document.documentElement,v=Math.round(m*1e3)/1e3,w=l.current;Math.abs(v-w)<.1||(l.current=v,a.current&&x.scrollTo({top:v}))},onComplete:()=>{f.current=setTimeout(()=>{a.current=!1},300),h.current=null}}),()=>{h.current&&(h.current.stop(),h.current=null)}},[o]),c?u.jsx(Je,{touch:!1,el:c,onScroll:s=>{if("deltaY"in s&&s.deltaY!==0&&c&&o!==null){let m=o+s.deltaY;const x=c.querySelector("html");x&&(m=Math.min(m,x.scrollHeight-x.clientHeight)),m=Math.max(m,0),r(m),a.current=!0}}}):null},Ae=({targetRef:e,children:t})=>{const[n,o]=i.useState(null),r=i.useRef(null),c=()=>{const d=e.current;if(!d)return;const a=d.getBoundingClientRect();o({position:"fixed",top:a.top,left:a.left,width:a.width,height:a.height,pointerEvents:"none",zIndex:999})};return i.useEffect(()=>{const d=e.current;if(d)return c(),window.addEventListener("scroll",c,!0),window.addEventListener("resize",c),r.current=new ResizeObserver(c),r.current.observe(d),()=>{var a;window.removeEventListener("scroll",c,!0),window.removeEventListener("resize",c),(a=r.current)==null||a.disconnect()}},[e]),n?fe.createPortal(u.jsx("div",{style:n,children:t}),document.body):null};function Qe(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)}const ze=({config:e,throttleDelay:t=100,onLoad:n,loadTheme:o=!1})=>{const[r,c]=i.useState(null);i.useEffect(()=>{(async()=>{const s=await Q.loader(e,o);c(s)})()},[]);const[d,a]=i.useState(null),f=i.useRef(null),l=i.useRef(0),y=i.useRef(null);i.useEffect(()=>{if(!r)return;const s={...e,sourceColor:e.sourceColor},m=Date.now(),x=m-l.current,v=async w=>{await h(w)};if(l.current===0||x>=t)f.current&&(clearTimeout(f.current),f.current=null),y.current=null,l.current=m,v(s);else if(y.current=s,!f.current){const w=Math.max(0,t-x);f.current=setTimeout(async()=>{f.current=null;const L=y.current;y.current=null,L&&(l.current=Date.now(),await v(L))},w)}return()=>{}},[e,t,r]);const h=async s=>{if(typeof s.sourceColor=="string"&&!Qe(s.sourceColor))throw new Error("Invalid hex color");if(!r)return;r.context.update(s),await r.load();const m=r==null?void 0:r.plugins.getPlugin(me.TailwindPlugin).getInstance().outputCss;a(m),n==null||n(r)};return i.useEffect(()=>()=>{f.current&&(clearTimeout(f.current),f.current=null)},[]),d?u.jsx("style",{dangerouslySetInnerHTML:{__html:d}}):null};function Te(){if(typeof window>"u")return!1;try{if(window.CSS&&typeof window.CSS.supports=="function")return CSS.supports("animation-timeline: view()")||CSS.supports("animation-timeline: scroll()")||CSS.supports("view-timeline-name: --a")}catch{}return!1}function et(){return typeof window>"u"||!("matchMedia"in window)?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function re(e){if(!(e instanceof HTMLElement))return!1;const t=e.classList;return Array.from(t).some(n=>n.startsWith("anim-")&&n.includes("scroll"))}function ce(e){if(!(e instanceof HTMLElement))return!1;const t=e.classList;return Array.from(t).some(n=>n.startsWith("anim-"))}function T(e,t){if(!re(e))return;if(e.hasAttribute(`data-${t}-scroll`)){const d=(e.getAttribute(`data-${t}-scroll`)||"").trim().toLowerCase(),a=d==="x"||d==="inline"?"inline":d==="y"||d==="block"?"block":"auto";e.classList.contains(`${t}-timeline`)||e.classList.contains(`${t}-timeline-inline`)||e.classList.contains(`${t}-timeline-block`)||e.classList.contains(`${t}-timeline-x`)||e.classList.contains(`${t}-timeline-y`)||(a==="inline"?e.classList.add(`${t}-timeline-inline`):a==="block"?e.classList.add(`${t}-timeline-block`):e.classList.add(`${t}-scroll`))}const n=e.getAttribute(`data-${t}-start`);n&&e.style.setProperty(`--${t}-range-start`,n);const o=e.getAttribute(`data-${t}-end`);o&&e.style.setProperty(`--${t}-range-end`,o);const r=e.hasAttribute(`data-${t}-paused`)||e.classList.contains(`${t}-paused`),c=e.hasAttribute(`data-${t}-run`)||e.classList.contains(`${t}-run`);!r&&!c&&e.setAttribute(`data-${t}-run`,"")}function ee(e=document,t){return Array.from(e.querySelectorAll(`[class*="${t}-"][class*="-scroll"]`)).filter(o=>re(o))}function tt(e=document,t){const n=Array.from(e.querySelectorAll(`[class*="${t}-"]`)),o=new Set([`${t}-run`,`${t}-in`,`${t}-out`,`${t}-in-run`,`${t}-out-run`,`${t}-paused`,`${t}-timeline`,`${t}-timeline-inline`,`${t}-timeline-block`,`${t}-timeline-x`,`${t}-timeline-y`,`${t}-scroll`]);return n.filter(r=>{if(!(r instanceof HTMLElement))return!1;const c=r.classList;return c.contains(`${t}-in`)||c.contains(`${t}-out`)||Array.from(c).some(f=>f.startsWith(`${t}-`)&&!f.includes("scroll")&&!o.has(f))?!0:!re(r)})}function ie(e,t,n){e.setAttribute(`data-${t}-run`,""),e.setAttribute(`data-${t}-${n}-run`,"")}function nt(e,t){const n=e.style.animationName;e.style.animationName="none",e.removeAttribute(`data-${t}-run`),e.removeAttribute(`data-${t}-in-run`),e.removeAttribute(`data-${t}-out-run`),e.offsetWidth,e.style.animationName=n}const rt=[0,.2];function se(e={}){const{prefix:t="anim",once:n=!0}=e;if(et())return()=>{};const o=Te(),r=new WeakSet,c=new IntersectionObserver(y=>{for(const h of y){const s=h.target;if(!ce(s))continue;const m=s.classList.contains(`${t}-out`);!m&&h.isIntersecting?(ie(s,t,"in"),n&&c.unobserve(s)):m&&!h.isIntersecting?(ie(s,t,"out"),n&&c.unobserve(s)):n||nt(s,t)}},{threshold:rt}),d=y=>{const h=tt(y||document,t);for(const s of h)r.has(s)||(r.add(s),c.observe(s))};d();let a,f=null,l=null;if(o)(()=>{l==null&&(l=requestAnimationFrame(()=>{l=null;const h=ee(void 0,t);for(const s of h)T(s,t)}))})(),f=new MutationObserver(h=>{for(const s of h)if(s.type==="attributes"){const m=s.target;m instanceof HTMLElement&&(T(m,t),ce(m)&&(r.has(m)||(r.add(m),c.observe(m))))}else if(s.type==="childList"&&s.addedNodes&&s.addedNodes.length){for(const m of Array.from(s.addedNodes))if(m instanceof HTMLElement){const x=ee(m,t);for(const v of x)T(v,t);d(m)}}}),f.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["class",`data-${t}-scroll`,`data-${t}-start`,`data-${t}-end`,`data-${t}-paused`,`data-${t}-run`]}),a=()=>{l!=null&&cancelAnimationFrame(l),f&&f.disconnect()};else{let y;ee(void 0,t).length>0&&Promise.resolve().then(()=>require("./scrollDriven-DWAu7CR0.cjs")).then(s=>{y=s.initScrollViewFallback({once:n})}),a=()=>{typeof y=="function"&&y()}}return()=>{a&&a(),c.disconnect()}}const st=se,ot=se,We=({variant:e="filled",disabled:t=!1,icon:n,href:o,label:r,disableTextMargins:c,className:d,iconPosition:a="left",loading:f=!1,shape:l="rounded",onClick:y,onToggle:h,activated:s,ref:m,size:x="medium",allowShapeTransformation:v=!0,transition:w,children:L,...j})=>{if(L&&(r=L),!r)throw new Error("Button component requires either a label prop or children content");const M=o?"a":"button",E=i.useRef(null),N=m||E,[$,D]=i.useState(s);i.useEffect(()=>{D(s)},[s]),w={duration:.3,...w};let P;h?h&&(P=C=>{t&&C.preventDefault();const q=!$;D(q),h(q)}):P=C=>{t&&C.preventDefault(),y&&y(C)};const I=xe({allowShapeTransformation:v,size:x,disableTextMargins:c,shape:l,href:o,disabled:t,icon:n,iconPosition:a,loading:f,variant:e,transition:w,className:d,isActive:$??!1,onToggle:h,activated:$,label:r,children:r}),g=n?u.jsx(_,{icon:n,className:I.icon}):u.jsx(u.Fragment,{});return u.jsxs(M,{ref:N,href:o,className:I.button,...j,onClick:P,disabled:t,"aria-pressed":h?$:void 0,style:{transition:w.duration+"s"},children:[u.jsx("div",{className:I.touchTarget}),u.jsx("div",{className:I.stateLayer,style:{transition:w.duration+"s"},children:!t&&u.jsx(J,{colorName:e==="filled"&&h&&"on-surface-variant"||e==="filled"&&!h&&"on-primary"||e==="elevated"&&"primary"||e==="tonal"&&"on-secondary-container"||e==="outlined"&&"primary"||e==="text"&&"primary"||"",triggerRef:N})}),a==="left"&&g,f&&u.jsx("div",{className:"!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",children:u.jsx(Pe,{className:()=>({progressIndicator:"h-6 w-6",activeIndicator:p({"!stroke-primary":e==="elevated"&&!t,"!stroke-on-surface/[38%]":e==="elevated"&&t},{"!stroke-on-primary":e==="filled"&&!t,"!stroke-on-surface/[38%]":e==="filled"&&t},{"!stroke-on-secondary-container":e==="tonal"&&!t,"!stroke-on-surface/[38%]":e==="tonal"&&t},{"!stroke-primary":e==="outlined"&&!t,"!stroke-on-surface/[38%]":e==="outlined"&&t},{"!stroke-primary":e==="text"&&!t,"!stroke-on-surface/[38%]":e==="text"&&t})}),variant:"circular-indeterminate"})}),u.jsx("span",{className:I.label,children:r}),a==="right"&&g]})},lt=({variant:e="outlined",className:t,children:n,isInteractive:o=!1,ref:r,...c})=>{const d=ge({className:t,isInteractive:o,variant:e,children:n}),a=i.useRef(null),f=r||a;return u.jsxs("div",{...c,ref:f,className:d.card,children:[u.jsx("div",{className:d.stateLayer,children:o&&u.jsx(J,{colorName:"on-surface",triggerRef:f})}),n]})},Ve=(e,t,n=[0,1])=>{const[o,r]=t,[c,d]=n,f=(Math.max(o,Math.min(e,r))-o)/(r-o);return c+f*(d-c)},Fe=({className:e,children:t,width:n=1,index:o=0,ref:r,...c})=>{const d=i.useRef(null),a=r||d,f=ve({className:e,index:o,width:n,children:t});return u.jsx(k.motion.div,{ref:a,animate:{width:n+"px"},transition:{duration:.5,ease:"linear"},className:f.carouselItem,...c,children:t})},at=({variant:e="hero",className:t,children:n,ref:o,marginPourcent:r=0,inputRange:c=[.21,.65],outputRange:d=[42,300],gap:a=8,onChange:f,scrollSensitivity:l=1.25,...y})=>{var O,K;const h=i.useRef(null),s=o||h,m=we({className:t,children:n,variant:e,inputRange:c,outputRange:d,marginPourcent:r,onChange:f,gap:a,scrollSensitivity:l}),x=i.Children.toArray(n).filter(S=>i.isValidElement(S)&&S.type===Fe),v=i.useRef(null),[w,L]=i.useState([]),[j,M]=i.useState(null),E=()=>{var W;if(!v.current||!s.current||!j)return[];const{scrollVisible:S,scrollProgress:b}=j;function B(V,Y){return V.map(G=>(G-Y)/Math.abs(V[1]-V[0]))}let A=x.map((V,Y)=>{if(!N[Y].current||!v.current)return 0;let Z=Y/(x.length-1);return Z>1&&(Z=1),Z<0&&(Z=0),Z});A=B(A,b);let R=((((W=s.current)==null?void 0:W.clientWidth)??S)-(d[0]+a))/(d[1]+a);return A.map((V,Y)=>({value:Math.abs(V),originalIndex:Y})).sort((V,Y)=>V.value-Y.value).forEach((V,Y)=>{Y===0&&D(V.originalIndex);let G=Ve(R,[0,1],[0,d[1]]);G<d[0]&&(G=d[0]),R--,A[V.originalIndex]=G}),A},N=i.useRef([]).current,[$,D]=i.useState(0);i.useEffect(()=>{f&&f($)},[$]),N.length!==x.length&&x.forEach((S,b)=>{N[b]||(N[b]=i.createRef())});const P=x.map((S,b)=>i.cloneElement(S,{width:w[b],ref:N[b],key:b,index:b})),I=k.motionValue((j==null?void 0:j.scrollProgress)??0),g=k.useTransform(I,[0,1],[0,1-(((O=s.current)==null?void 0:O.clientWidth)??0)/(((K=v==null?void 0:v.current)==null?void 0:K.clientWidth)??0)]),C=k.useTransform(g,S=>`${-S*100}%`),q=S=>{S.scrollTotal>0&&M(S)};i.useEffect(()=>{const S=E();L(S)},[j]);const[H,X]=i.useState(0);return i.useLayoutEffect(()=>{let S=d[1];j&&S>j.scrollVisible&&(S=j.scrollVisible);const b=(S+a)*P.length/l;X(b)},[s,N,j]),u.jsx("div",{className:m.carousel,ref:s,...y,children:u.jsx(De,{draggable:!0,orientation:"horizontal",onScroll:q,scrollSize:H,children:u.jsx(k.motion.div,{className:m.track,ref:v,style:{transitionDuration:"0.5s",transitionTimingFunction:"ease-out",gap:`${a}px`,x:C},children:P})})})},qe=({orientation:e="horizontal",className:t,...n})=>{const o=be({orientation:e,className:t});return u.jsx("hr",{className:o.divider,...n})},U=[];for(let e=0;e<256;++e)U.push((e+256).toString(16).slice(1));function ct(e,t=0){return(U[e[t+0]]+U[e[t+1]]+U[e[t+2]]+U[e[t+3]]+"-"+U[e[t+4]]+U[e[t+5]]+"-"+U[e[t+6]]+U[e[t+7]]+"-"+U[e[t+8]]+U[e[t+9]]+"-"+U[e[t+10]]+U[e[t+11]]+U[e[t+12]]+U[e[t+13]]+U[e[t+14]]+U[e[t+15]]).toLowerCase()}let te;const it=new Uint8Array(16);function ut(){if(!te){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");te=crypto.getRandomValues.bind(crypto)}return te(it)}const dt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ue={randomUUID:dt};function oe(e,t,n){var r;if(ue.randomUUID&&!e)return ue.randomUUID();e=e||{};const o=e.random??((r=e.rng)==null?void 0:r.call(e))??ut();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,ct(o)}const le=({variant:e="plain",buttons:t,className:n,children:o,title:r,text:c,position:d,targetRef:a,ref:f,trigger:l=["hover","focus"],...y})=>{if(!o&&!a)throw new Error("ToolTip must have a child or a targetRef");Array.isArray(l)||(l=[l]),t&&!Array.isArray(t)&&(t=[t]);const h=i.useRef(null),s=a||h,[m,x]=i.useState(null),[v]=i.useState(oe()),[w,L]=i.useState(!1),j=i.useRef(null);i.useEffect(()=>{const g=C=>{x(C.detail)};return document.addEventListener("tooltip-update",g),()=>{document.removeEventListener("tooltip-update",g)}},[]),i.useEffect(()=>{j.current&&clearTimeout(j.current),m?L(m===v):j.current=setTimeout(()=>{L(!1)},1200)},[m,v]);const M=()=>{if(l.includes("hover")){const g=new CustomEvent("tooltip-update",{detail:v});document.dispatchEvent(g)}},E=()=>{if(l.includes("hover")){const g=new CustomEvent("tooltip-update",{detail:null});document.dispatchEvent(g)}},N=()=>{if(l.includes("click")){const g=new CustomEvent("tooltip-update",{detail:w?null:v});document.dispatchEvent(g)}},$=()=>{if(l.includes("focus")){const g=new CustomEvent("tooltip-update",{detail:v});document.dispatchEvent(g)}},D=()=>{if(l.includes("focus")){const g=new CustomEvent("tooltip-update",{detail:null});document.dispatchEvent(g)}};i.useEffect(()=>{if(s!=null&&s.current){const g=s.current;return g.addEventListener("mouseenter",M),g.addEventListener("mouseleave",E),g.addEventListener("click",N),g.addEventListener("focus",$),g.addEventListener("blur",D),()=>{g.removeEventListener("mouseenter",M),g.removeEventListener("mouseleave",E),g.removeEventListener("click",N),g.removeEventListener("focus",$),g.removeEventListener("blur",D)}}},[s,l,v,w]);const P=!a&&i.isValidElement(o)?i.cloneElement(o,{ref:h}):o;if(!d&&typeof window<"u"&&s!=null&&s.current&&!d){const g=s.current.getBoundingClientRect(),C=window.innerWidth,q=window.innerHeight,H=g.left/C,X=g.top/q;e==="plain"?H<1/3?d="right":H>2/3?d="left":d=X>.5?"top":"bottom":H<1/2&&X<1/2?d="bottom-right":H>1/2&&X<1/2?d="bottom-left":H>1/2&&X>1/2?d="top-left":H<1/2&&X>1/2&&(d="top-right")}const I=Me({variant:e,buttons:t,className:n,title:r,text:c,position:d,trigger:l,targetRef:a,children:o});return u.jsxs(u.Fragment,{children:[P,u.jsx(k.AnimatePresence,{children:w&&u.jsx(Ae,{targetRef:s,children:u.jsx(k.motion.div,{initial:{opacity:m?1:0},animate:{opacity:1},transition:{duration:m?0:.3},exit:{opacity:m?1:0},className:I.toolTip,...y,onMouseEnter:M,onMouseLeave:E,children:u.jsxs(k.motion.div,{className:I.container,layoutId:"tool-tip",transition:{type:"spring",stiffness:200,damping:20},children:[r&&u.jsx("div",{className:I.subHead,children:r}),u.jsx("div",{className:I.supportingText,children:c}),t&&u.jsx("div",{className:I.actions,children:Array.isArray(t)&&t.map((g,C)=>u.jsx(We,{size:"small",variant:"text",...g},C))})]})})})})]})},ne=({className:e,label:t,variant:n="primary",size:o="medium",href:r,type:c,icon:d,isExtended:a=!1,ref:f,transition:l,children:y,...h})=>{if(y&&(t=y),!t)throw new Error("FAB component requires either a label prop or children content");const s=r?"a":"button",m=Se({href:r,icon:d,isExtended:a,label:t,size:o,variant:n,className:e,transition:l,children:t});l={duration:.3,...l};const x=i.useRef(null),v=f||x,w={visible:{width:"auto",marginLeft:12,opacity:1,transition:{...l,opacity:{duration:l.duration/2,delay:l.duration-l.duration/2}}},hidden:{width:0,marginLeft:0,opacity:0,transition:{...l,marginLeft:{duration:l.duration/2,delay:l.duration-l.duration/2}}}};return u.jsxs(s,{...h,ref:v,href:r,"aria-label":a?void 0:t,className:m.fab,children:[u.jsx(le,{trigger:a?null:void 0,text:t,targetRef:v}),u.jsx("span",{className:m.stateLayer,children:u.jsx(J,{colorName:p({primary:n=="surface","on-primary-container":n=="primary","on-secondary-container":n=="secondary","on-tertiary-container":n=="tertiary"}),triggerRef:v})}),u.jsx(_,{icon:d,className:m.icon}),u.jsx(k.AnimatePresence,{children:a&&u.jsx(k.motion.span,{variants:w,initial:"hidden",animate:"visible",exit:"hidden",className:m.label,children:t})})]})},z=({variant:e="standard",href:t,disabled:n=!1,type:o="button",title:r,label:c,onToggle:d,activated:a=!1,onClick:f,icon:l,size:y="medium",iconSelected:h,className:s,ref:m,width:x="default",shape:v="rounded",allowShapeTransformation:w=!0,transition:L,children:j,...M})=>{if(j&&(c=j),!c)throw new Error("IconButton component requires either a label prop or children content to provide an accessible aria-label");r||(r=c);const[E,N]=i.useState(a);let $;d?d&&($=C=>{n&&C.preventDefault(),N(!E),d(!!E)},l=E&&h||l):$=C=>{n&&C.preventDefault(),f&&f(C)},i.useEffect(()=>{N(a)},[a]);const D=t?"a":"button",P=je({transition:L,shape:v,allowShapeTransformation:w,width:x,href:t,activated:E,label:c,iconSelected:h,isActive:E,onToggle:d,disabled:n,icon:l,variant:e,className:s,size:y,children:c,...M}),I=i.useRef(null),g=m||I;return L={duration:.3,...L},u.jsxs(D,{disabled:n,href:t,style:{transition:L.duration+"s"},className:P.iconButton,"aria-label":c,...M,title:void 0,onClick:$,ref:g,children:[u.jsx(le,{targetRef:g,trigger:n?null:void 0,text:r}),u.jsx("div",{className:P.touchTarget}),u.jsx("div",{className:P.stateLayer,style:{transition:L.duration+"s"},children:!n&&u.jsx(J,{colorName:p(e==="standard"&&{"on-surface-variant":!E,primary:E},e==="filled"&&{primary:!E&&!!d,"inverse-on-surface":E||!d},e==="tonal"&&{"on-surface-variant":!E&&!!d,"on-secondary-container":E||!d},e==="outlined"&&{"on-surface-variant":!E,"on-primary":E}),triggerRef:g})}),l&&u.jsx(_,{icon:l,className:P.icon})]})},ft=({className:e,valueFormatter:t,step:n=10,name:o,value:r=0,min:c=0,max:d=100,marks:a=[{value:0,label:"0"},{value:100,label:"100"}],ref:f,onChange:l,...y})=>{const h=S=>{const b=m(),B=s();return S===1/0?100:S===-1/0?0:(S-b)/(B-b)*100},s=(S=!1)=>S?d:d==1/0?a[(a==null?void 0:a.length)-1].value:d,m=(S=!1)=>S?c:c==-1/0?a[0].value:c,x=S=>{const b=m(!1);return(s(!1)-b)*S/100+b},[v,w]=i.useState(!1),L=i.useRef(null),j=f||L,[M,E]=i.useState(r),[N,$]=i.useState(h(r)),[D,P]=i.useState(!1),I=S=>{P(!0),w(!0),q(S)},g=()=>{P(!1),w(!1)};i.useEffect(()=>(D?(window.addEventListener("mouseup",g),window.addEventListener("mousemove",q),window.addEventListener("touchend",g),window.addEventListener("touchmove",q)):(window.removeEventListener("mouseup",g),window.removeEventListener("mousemove",q),window.removeEventListener("touchend",g),window.removeEventListener("touchmove",q)),()=>{window.removeEventListener("mouseup",g),window.removeEventListener("mousemove",q),window.removeEventListener("touchend",g),window.removeEventListener("touchmove",q)}),[D]);const C=Ne({className:e,isChanging:v,marks:a,max:d,min:c,name:o,step:n,value:M,valueFormatter:t,onChange:l}),q=S=>{const b=j==null?void 0:j.current;if(b){const B=b.getBoundingClientRect().left,R=((S.type==="touchmove"||S.type==="touchstart"?S.touches[0].clientX:S.clientX)-B)/b.offsetWidth*100;H({pourcent:R})}},H=({pourcent:S,value:b})=>{if(S){if(S>=100){E(s(!0)),$(100);return}if(S<=0){E(m(!0)),$(0);return}b=x(S),b==m()&&(b=m(!0)),b==s()&&(b=s(!0))}else if(b!=null){if(b>=s()){E(s(!0)),$(100);return}if(b<=m()){E(m(!0)),$(0);return}S=h(b)}else return;n!=null?b=Math.round((b-m())/n)*n+m():a&&(b=a.reduce((B,A,R)=>{let W=A.value===1/0?s():A.value===-1/0?m():A.value,V=B.value===1/0?s():B.value===-1/0?m():B.value;return W=Math.abs(W-b),V=Math.abs(V-b),W<V?A:B}).value),b>=s()&&(b=s(!0)),b<=m()&&(b=m(!0)),S=h(b),E(b),$(S),l&&l(b)},[X,O]=i.useState(0);i.useEffect(()=>{const S=()=>{j.current&&O(j.current.offsetWidth)};return S(),window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[]);const K=S=>{switch(S.key){case"ArrowRight":if(n)H({value:M+n});else if(a){const b=a.find(B=>B.value>M);b&&H({value:b.value})}break;case"ArrowLeft":if(n)H({value:M-n});else if(a){const b=a.slice(0).reverse().find((B,A,R)=>M===1/0?A===1:B.value<M);b&&H({value:b.value})}break;default:return}};return u.jsxs("div",{tabIndex:0,onKeyDown:K,role:"slider","aria-valuemin":m(!0),"aria-valuemax":s(!0),"aria-valuenow":M,"aria-valuetext":M.toString(),className:C.slider,onMouseDown:I,onClick:q,ref:j,onTouchStart:I,onDragStart:S=>S.preventDefault(),...y,children:[u.jsx("input",{type:"hidden",name:o,value:M}),u.jsx("div",{className:C.activeTrack,style:{flex:N/100}}),u.jsx("div",{className:C.handle,children:u.jsx(k.AnimatePresence,{children:v&&u.jsx(k.motion.div,{className:C.valueIndicator,initial:"hidden",animate:"visible",exit:"hidden",style:{translate:"-50%",transformOrigin:"center bottom",textWrap:"nowrap"},variants:{visible:{opacity:1,scale:1},hidden:{opacity:1,scale:0}},transition:{duration:.1},children:t?t(M):M})})}),u.jsx("div",{className:C.inactiveTrack,style:{flex:1-N/100}}),u.jsx("div",{className:"w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",children:a&&a.map((S,b)=>{let B=null;const A=(v?9:10)/X*100,R=h(S.value);return R<=N-A?B=!0:R>=N+A&&(B=!1),u.jsx("div",{className:p(C.dot,{"bg-primary-container":B!=null&&B,"bg-primary":B!=null&&!B}),style:{left:`${h(S.value)}%`}},b)})})]})};/*!
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),$e=require("clsx"),it=require("tailwind-merge"),a=require("react"),D=require("motion/react"),ut=require("motion"),Ce=require("react-dom"),he=require("@udixio/theme"),Pe=require("@udixio/tailwind"),dt=require("react-textarea-autosize"),De=it.extendTailwindMerge({override:{classGroups:{"text-color":[{text:[e=>!e.startsWith("display-")&&!e.startsWith("headline-")&&!e.startsWith("title-")&&!e.startsWith("body-")&&!e.startsWith("label-")]}]}},extend:{classGroups:{font:[{text:[e=>e.startsWith("display-")||e.startsWith("headline-")||e.startsWith("title-")||e.startsWith("body-")||e.startsWith("label-")]}]},conflictingClassGroups:{font:["font"]}}}),x=(...e)=>De($e.clsx(e)),We=(...e)=>De($e.clsx(e));function ft(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}const Ae=e=>{const t={};e.classNameList.forEach(o=>{var r;if(o)if(typeof o=="string")(t[r=e.default]??(t[r]=[])).push(o);else{const u=o(e.states);Object.entries(u).map(i=>{const[c,m]=i;(t[c]??(t[c]=[])).push(m)})}});const n=t;return Object.entries(t).map(o=>{let[r,u]=o;u=u.reverse(),r==e.default&&u.unshift("relative"),u.unshift(ft(r)),n[r]=We(...u)}),n},Y=(e,t)=>n=>Ae({classNameList:[n.className,t],default:e,states:n}),Be=Y("button",({variant:e,disableTextMargins:t,disabled:n,iconPosition:o,icon:r,isActive:u,loading:i,shape:c,onToggle:m,size:s,allowShapeTransformation:p})=>({button:x(" relative cursor-pointer group outline-none inline-block flex justify-center items-center ",s==="xSmall"&&"text-label-large px-3 py-1.5 gap-1",s==="small"&&"text-label-large px-4 py-2.5 gap-2",s==="medium"&&"text-title-medium px-6 py-4 gap-2",s==="large"&&"text-headline-small px-12 py-8 gap-3",s==="xLarge"&&"text-headline-large px-16 py-12 gap-4",c==="rounded"&&{"rounded-[30px]":s==="xSmall"||s=="small","rounded-[40px]":s==="medium","rounded-[70px]":s==="large"||s=="xLarge"},(c==="squared"||p&&u)&&{"rounded-[12px]":s==="xSmall"||s=="small","rounded-[16px]":s==="medium","rounded-[28px]":s==="large"||s=="xLarge"},p&&!n&&{"active:rounded-[12px]":s==="xSmall"||s=="small","active:rounded-[16px]":s==="medium","active:rounded-[28px]":s==="large"||s=="xLarge"},e==="elevated"&&{"shadow-1 hover:shadow-2":!n,"bg-surface-container-low text-primary":!n&&!u,"bg-primary text-on-primary":!n&&u,"text-on-surface/[38%]":n},e==="filled"&&{"hover:shadow-1":!n,"bg-surface-container text-on-surface-variant":!n&&!u&&m,"bg-primary text-on-primary":!n&&(u&&m||!m),"text-on-surface/[38%]":n},e==="tonal"&&{"hover:shadow-1":!n,"bg-secondary-container text-on-secondary-container":!n&&!u,"bg-secondary text-on-secondary":!n&&u,"text-on-surface/[0.38]":n},e==="outlined"&&[" border",{"border-on-surface/[0.12] text-on-surface/[0.38]":n,"text-primary border-outline focus:border-primary":!n&&!u,"text-inverse-on-surface bg-inverse-surface border-inverse-surface":!n&&u}],e==="text"&&["w-fit",{"text-primary":!n,"text-on-surface/[0.38]":n},t&&[s==="xSmall"&&"-mx-3 ",s==="small"&&"-mx-4 ",s==="medium"&&"-mx-6 ",s==="large"&&"-mx-12",s==="xLarge"&&"-mx-16 "]],n&&"cursor-default"),touchTarget:x("absolute -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2 h-12 w-full"),stateLayer:x("min-h-full min-w-full absolute top-0 left-0 overflow-hidden",e==="elevated"&&{"bg-on-surface/[0.12]":n,"group-state-primary":!n},e==="filled"&&{"bg-on-surface/[0.12]":n,"group-state-on-primary":!n&&!m,"group-state-on-surface-variant":!n&&m},c==="rounded"&&{"rounded-[30px]":s==="xSmall"||s=="small","rounded-[40px]":s==="medium","rounded-[70px]":s==="large"||s=="xLarge"},(c==="squared"||p&&u)&&{"rounded-[12px]":s==="xSmall"||s=="small","rounded-[16px]":s==="medium","rounded-[28px]":s==="large"||s=="xLarge"},p&&!n&&{"group-active:rounded-[12px]":s==="xSmall"||s=="small","group-active:rounded-[16px]":s==="medium","group-active:rounded-[28px]":s==="large"||s=="xLarge"},e==="tonal"&&{"bg-on-surface/[0.12]":n,"group-state-on-secondary-container ":!n},e==="outlined"&&{"group-state-primary group-state-primary":!n},e==="text"&&{"group-state-primary":!n}),label:x({invisible:i}),icon:x({invisible:i},s==="xSmall"&&"size-5",s==="small"&&"size-5",s==="medium"&&"size-6",s==="large"&&"size-8",s==="xLarge"&&"size-10")})),Fe=Y("card",({variant:e,isInteractive:t})=>({card:x("group/card rounded-xl overflow-hidden z-10",e==="outlined"&&"bg-surface border border-outline-variant",e==="elevated"&&"bg-surface-container-low shadow-1",e==="filled"&&"bg-surface-container-highest"),stateLayer:x(["w-full top-0 left-0 h-full absolute -z-10",{" group-hover/card:hover-state-on-surface group-focus-visible/card:focus-state-on-surface":t}])})),Ve=Y("carouselItem",({width:e})=>({carouselItem:x("rounded-[28px] overflow-hidden flex-none",{hidden:e===void 0,"flex-1":e==null})})),He=Y("carousel",()=>({carousel:x(["w-full h-[400px]"]),track:x("flex h-full w-full")})),Oe=Y("divider",({orientation:e})=>({divider:x("border-outline-variant ",{"h-fit w-full border-t":e==="horizontal"},{"h-auto self-stretch w-fit border-l":e==="vertical"})})),qe=Y("fab",({size:e,variant:t,isExtended:n})=>({fab:x("flex shadow-3 hover:shadow-4 group overflow-hidden outline-none items-center cursor-pointer",{"rounded-[12px]":e=="small"&&!n,"rounded-[16px]":e=="medium"||n,"rounded-[28px]":e=="large"&&!n},{"p-2":e=="small"&&!n,"p-4":e=="medium"||n,"p-[30px]":e=="large"&&!n},t==="surface"&&"bg-surface-container",t==="primary"&&"bg-primary-container",t==="secondary"&&"bg-secondary-container",t==="tertiary"&&"bg-tertiary-container",t==="surface"&&"text-primary",t==="primary"&&"text-on-primary-container",t==="secondary"&&"text-on-secondary-container",t==="tertiary"&&"text-on-tertiary-container"),stateLayer:x("absolute w-full h-full overflow-hidden left-1/2 top-1/2 transform -translate-y-1/2 -translate-x-1/2",t==="surface"&&"group-hover:hover-state-primary group-focus:focus-state-primary",t==="primary"&&"group-hover:hover-state-on-primary-container group-focus-visible:focus-state-on-primary-container",t==="secondary"&&"group-hover:hover-state-on-secondary-container group-focus-visible:focus-state-on-secondary-container",t==="tertiary"&&"group-hover:hover-state-on-tertiary-container group-focus-visible:focus-state-on-tertiary-container"),icon:x({"size-6":e=="small"||e=="medium"||n,"size-9":e=="large"&&!n}),label:x("text-title-medium text-nowrap")})),Xe=Y("iconButton",({variant:e,disabled:t,onToggle:n,isActive:o,size:r,width:u,shape:i,allowShapeTransformation:c})=>({iconButton:x("rounded-full relative flex transition-all duration-300","group cursor-pointer",{"cursor-default":t},i==="rounded"&&{"rounded-[30px]":r==="xSmall"||r=="small","rounded-[40px]":r==="medium","rounded-[70px]":r==="large"||r=="xLarge"},(i==="squared"||c&&o)&&{"rounded-[12px]":r==="xSmall"||r=="small","rounded-[16px]":r==="medium","rounded-[28px]":r==="large"||r=="xLarge"},c&&!t&&{"active:rounded-[12px]":r==="xSmall"||r=="small","active:rounded-[16px]":r==="medium","active:rounded-[28px]":r==="large"||r=="xLarge"},e==="filled"&&[!t&&{"bg-surface-container":!o&&!!n,"bg-primary":o||!n},!!t&&"bg-on-surface/[0.12]"],e==="tonal"&&[!t&&{"bg-surface-container":!o&&!!n,"bg-secondary-container":o||!n},!!t&&"bg-on-surface/[0.12]"],e==="outlined"&&[!t&&{"border border-outline":!o,"border border-transparent bg-inverse-surface":o},!!t&&{"border border-on-surface/[0.12]":!o,"border border-transparent bg-on-surface/[0.12]":o}]),touchTarget:x("absolute -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2 h-12 w-full"),stateLayer:x("absolute top-0 left-0 h-full w-full overflow-hidden",(i==="rounded"||i==="squared"&&n&&!t&&o&&c)&&{"rounded-[30px]":r==="xSmall"||r=="small","rounded-[40px]":r==="medium","rounded-[70px]":r==="large"||r=="xLarge"},(i==="squared"||i==="rounded"&&n&&!t&&o&&c)&&{"rounded-[12px]":r==="xSmall"||r=="small","rounded-[16px]":r==="medium","rounded-[28px]":r==="large"||r=="xLarge"},c&&!t&&{"group-active:rounded-[12px]":r==="xSmall"||r=="small","group-active:rounded-[16px]":r==="medium","group-active:rounded-[28px]":r==="large"||r=="xLarge"},!t&&[e==="standard"&&{"state-on-surface-variant":!o,"state-primary":o},e==="filled"&&{"state-primary":!o&&!!n,"state-inverse-on-surface":o||!n},e==="tonal"&&{"state-on-surface-variant":!o&&!!n,"state-on-secondary-container":o||!n},e==="outlined"&&{"state-on-surface-variant":!o,"state-on-primary":o}]),icon:x(" transition-all duration-300",{"size-5 p-1.5":r==="xSmall"},{"size-6 p-2":r==="small"},{"size-6 p-4":r==="medium"},{"size-8 p-8":r==="large"},{"size-10 p-12":r==="xLarge"},u=="narrow"&&[{"px-1":r==="xSmall"},{"px-1":r==="small"},{"px-3":r==="medium"},{"px-4":r==="large"},{"px-8":r==="xLarge"}],u=="wide"&&[{"px-2.5":r==="xSmall"},{"px-3.5":r==="small"},{"px-6":r==="medium"},{"px-12":r==="large"},{"px-[72px]":r==="xLarge"}],!t&&[e==="standard"&&{"text-on-surface-variant":!o,"text-primary":o},e==="filled"&&{"text-primary":!o&&!!n,"text-on-primary":o||!n},e==="tonal"&&{"text-on-surface-variant":!o&&!!n,"text-on-secondary-container":o||!n},e==="outlined"&&{"text-on-surface-variant":!o,"text-inverse-on-surface":o}],!!t&&"text-on-surface/[0.38]")})),Ue=Y("progressIndicator",({variant:e,isVisible:t})=>({progressIndicator:x((e==="linear-determinate"||e=="linear-indeterminate")&&"flex w-full h-1"),track:x("h-full rounded-full bg-primary rounded-l-full",{"max-h-0":!t,"max-h-full":t}),activeIndicator:x({"max-h-0":!t,"max-h-full":t},(e==="linear-determinate"||e=="linear-indeterminate")&&"h-full flex-1 rounded-full bg-primary-container",(e==="circular-determinate"||e=="circular-indeterminate")&&["stroke-primary fill-transparent ",{"stroke-[4px]":t,"stroke-[0px]":!t}]),stop:x("absolute top-1/2 -translate-y-1/2 right-0 bg-primary rounded-full size-1",{"max-h-0":!t,"max-h-full":t})})),Ye=Y("slideSheet",({variant:e,position:t})=>({slideSheet:x("bg-surface flex justify-between max-w-xs z-10",{"flex-row-reverse":t=="right","h-full":e=="standard"},e=="modal"&&["rounded-2xl fixed top-0 m-[1rem] h-[calc(100dvh-2rem)]",{"right-0":t=="right","left-0":t=="left"}]),container:x("w-full overflow-hidden",{}),content:x("w-fit "),header:x("p-4 flex items-center gap-2"),title:x("text-on-surface-variant text-title-large"),closeButton:x("ml-auto"),divider:x({hidden:e=="modal"}),overlay:x("bg-[black]/[0.32] fixed top-0 left-0 w-screen h-screen")})),_e=Y("slider",({isChanging:e})=>({slider:x(["relative w-full h-11 flex items-center rounded gap-x-1.5 cursor-pointer min-w-32"]),activeTrack:x(["h-4 relative transition-all duration-100 bg-primary overflow-hidden rounded-l-full "]),inactiveTrack:x(["h-4 relative transition-all duration-100 bg-primary-container rounded-r-full overflow-hidden"]),handle:x(["transform relative transition-all duration-100 bg-primary h-full rounded-full ",{"w-0.5":e,"w-1":!e}]),valueIndicator:x(["absolute select-none bg-inverse-surface text-inverse-on-surface py-3 px-4 text-label-large rounded-full bottom-[calc(100%+4px)] transform left-1/2 -translate-x-1/2"]),dot:x(["h-1 w-1 absolute transform -translate-y-1/2 -translate-x-1/2 top-1/2 rounded-full"])})),Ke=Y("snackbar",()=>({snackbar:x(" rounded bg-inverse-surface "),container:x("pl-4 pr-2 max-w-full py-1 flex items-center flex-wrap"),supportingText:x("text-body-medium text-inverse-on-surface "),icon:x(" ml-auto mr-0 text-inverse-on-surface block dark")})),Ge=Y("switch",({isSelected:e,disabled:t,inactiveIcon:n})=>({switch:x("group w-[52px] h-[32px] outline-none rounded-full border-2 flex items-center",{"bg-on-surface/[0.12] border-transparent":t},!t&&["cursor-pointer ",{"bg-primary border-primary":e},{"bg-surface-container border-outline":!e}]),handleContainer:x("flex items-center justify-center absolute",{"left-[14px]":!e},{"right-[14px]":e}),handle:x("transition-all duration-100 z-10 rounded-full flex items-center justify-center",{"w-[16px] h-[16px]":!e&&!n},{"w-[24px] h-[24px]":!(!e&&!n)},!t&&["cursor-pointer group-active:h-[28px] group-active:w-[28px]",{"bg-on-primary group-hover:bg-primary-container":e},{"bg-outline group-hover:bg-on-surface-variant":!e}],{"bg-surface":t}),handleStateLayer:x("w-[40px] h-[40px] -z-10 rounded-full absolute",{"group-state-primary":!t}),icon:x("w-[16px] h-[16px]",!t&&[{"text-on-primary-container":e},{"text-on-primary":!e}],{"text-on-surface/[0.38]":t})})),Je=Y("tab",({isSelected:e,icon:t,label:n,variant:o})=>({tab:x("flex-1 group outline-none flex px-4 justify-center items-center cursor-pointer",{"z-10":e},!!(t&&n)&&o==="primary"&&"h-16",!(t&&n&&o==="primary")&&"h-12"),stateLayer:x("absolute w-full h-full overflow-hidden left-1/2 top-1/2 transform -translate-y-1/2 -translate-x-1/2",o==="primary"&&{"group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface":!e,"group-hover:hover-state-primary group-focus-visible:focus-state-primary":e},o==="secondary"&&"group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface"),content:x("flex gap-0.5 h-full justify-center",{relative:o=="primary"},{"":!!(n&&!t)},o==="primary"&&"flex-col items-center",o==="secondary"&&{"flex-col items-center":!(n&&t),"flex-row items-center gap-2":!!(n&&t)}),icon:x("h-6 w-6 p-0.5 !box-border",o==="primary"&&{"text-on-surface-variant":!e,"text-primary":e},o==="secondary"&&{"text-on-surface-variant":!e,"text-on-surface":e}),label:x("text-title-small text-nowrap",o==="primary"&&{"text-on-surface-variant":!e,"text-primary":e},o==="secondary"&&{"text-on-surface-variant":!e,"text-on-surface":e}),underline:x("bg-primary absolute w-full left-0 bottom-0",o==="primary"&&"h-[3px] rounded-t",o==="secondary"&&"h-0.5")})),Ze=Y("tabs",({scrollable:e})=>({tabs:x("border-b border-surface-container-highest bg-surface","flex relative ",{"overflow-x-auto":e})})),Qe=Y("textField",({disabled:e,leadingIcon:t,trailingIcon:n,variant:o,errorText:r,isFocused:u,value:i,suffix:c,textLine:m})=>({textField:x({"opacity-[.38]":e}),content:x("group transition-border duration-200 relative flex items-center ",{"h-14":m=="singleLine"},{"border-on-surface-variant":!(r!=null&&r.length)&&!u&&o=="filled","border-outline":!(r!=null&&r.length)&&!u&&o=="outlined","border-primary":!(r!=null&&r.length)&&u,"border-error":!!(r!=null&&r.length)},{"bg-on-surface/[0.04]":e},o=="filled"&&["rounded-t overflow-hidden border-b",{"bg-surface-container-highest":!e}],o=="outlined"&&["border rounded box-border",{"border-[3px]":u}]),stateLayer:x("absolute -z-10 w-full h-full top-0 left-0",{hidden:o=="outlined"},{"group-state-on-surface":!e,"focus-state-on-surface":u}),label:x("inline-flex outline-none whitespace-nowrap",{"text-on-surface-variant":!e&&!(r!=null&&r.length)},{"text-on-surface":e},{"text-error":!!(r!=null&&r.length)},{"text-primary":!(r!=null&&r.length)&&u}),input:x("w-full resize-none px-4 text-body-large bg-[inherit] outline-none autofill:transition-colors autofill:duration-[5000000ms]",{" text-on-surface placeholder:text-on-surface-variant":!e,"placeholder:text-on-surface text-on-surface":e},{"pr-0":!!c},o=="filled"&&" pb-2 pt-6",o=="outlined"&&"py-4 relative z-10"),activeIndicator:x("absolute w-0 inset-x-0 border-rounded mx-auto bottom-0",o=="filled"&&["h-[2px] transition-all duration-300",{"bg-primary":!(r!=null&&r.length)},{"bg-error":!!(r!=null&&r.length)},{"!w-full":u}]),supportingText:x(" text-body-small px-4 pt-1",{"text-on-surface-variant":!e&&!(r!=null&&r.length)},{"text-on-surface":e},{"!w-full":u},{"text-error":!!(r!=null&&r.length)}),leadingIcon:x(["h-12 ml-3 flex items-center justify-center",{"cursor-text":!a.isValidElement(t)}]),trailingIcon:x("h-12 w-12 flex items-center justify-center",{"cursor-text":!a.isValidElement(n)}),suffix:x("text-on-surface-variant pl-0 pr-4",o=="filled"&&" pb-2 pt-6",o=="outlined"&&"py-4 relative z-10")})),Te=Y("toolTip",({position:e,variant:t})=>({toolTip:x(" pointer-events-auto w-max z-10 absolute m-1 w-max-content max-w-[312px]",{"bottom-full left-1/2 -translate-x-1/2":e=="top","top-full left-1/2 -translate-x-1/2":e=="bottom","right-full top-1/2 -translate-y-1/2":e=="left","left-full top-1/2 -translate-y-1/2":e=="right","bottom-full right-full":e=="top-left","bottom-full left-full":e=="top-right","top-full right-full":e=="bottom-left","top-full left-full":e=="bottom-right"}),container:x("pb-2",t=="rich"&&"bg-surface-container rounded-2xl text-on-surface-container px-4 pt-3 shadow-2",t=="plain"&&"bg-inverse-surface rounded text-inverse-on-surface px-2 py-1"),actions:x("flex gap-10 px-1 mt-2",t=="plain"&&"hidden"),subHead:x("text-title-small mb-1",t=="plain"&&"hidden"),supportingText:x("")})),se=({icon:e,colors:t=[],className:n})=>{if(typeof e=="string"){let s=e;return t[0]&&(s=s.replace(/<svg([^>]*)>/,`<svg$1 fill="${t[0]}" color="${t[0]}">`),s=s.replace(/<path([^>]*?)>/g,'<path$1 fill="currentColor">')),d.jsx("div",{className:x("size-5 box-content inline-flex fill-current",n),style:{color:t[0]||"inherit"},dangerouslySetInnerHTML:{__html:s}})}if(e&&typeof e=="object"&&"src"in e){const s=e;return d.jsx("img",{src:s.src,width:s.width,height:s.height,className:x("size-5 box-content",n),style:{filter:t[0]?"brightness(0) saturate(100%) invert(1)":void 0},alt:"","aria-hidden":"true"})}const o=e;if(!(o!=null&&o.prefix))throw new Error(`Invalid icon type: ${typeof e}`);const{icon:r}=o,[u,i,,,c]=r||[],m=s=>{switch(s.length){case 2:return{"--fa-primary-color":s[0]||"inherit","--fa-secondary-color":s[1]||"inherit"};case 1:return{color:s[0]};default:return{}}};return d.jsx("svg",{className:x("size-5 box-content",n),style:{...m(t)},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${u} ${i}`,role:"img","aria-hidden":"true",children:typeof c=="string"?d.jsx("path",{className:"fill-current",d:c}):c.map((s,p)=>d.jsx("path",{d:s},p))})},ze=({variant:e="linear-determinate",value:t=0,transitionDuration:n=1e3,className:o,...r})=>{const[u,i]=a.useState(t),[c]=a.useState(1.5);a.useEffect(()=>{t>100&&(t=100),t<0&&(t=0),i(t)},[t]);const[m,s]=a.useState(!0),p=()=>m?c:c*.5;a.useEffect(()=>{if((e==="circular-indeterminate"||e==="linear-indeterminate")&&u!==100){const h=setInterval(()=>{i(m?10:90),s(!m)},p()*1e3);return()=>clearInterval(h)}},[e,m,u]);const[y,l]=a.useState(!1);a.useEffect(()=>{if(u>=100){const h=setTimeout(()=>{l(!1)},n);return()=>{clearTimeout(h)}}else l(!0)},[u,n]);const f=Ue({className:o,variant:e,value:t,transitionDuration:n,isVisible:y});return d.jsxs(d.Fragment,{children:[(e==="linear-determinate"||e=="linear-indeterminate")&&d.jsxs("div",{className:f.progressIndicator,...r,children:[d.jsx("div",{style:{width:`${u}%`,transition:`width ${n}ms ease-in-out ${u==100?", max-height 200ms 0.5s ease-in-out":""}`},className:f.track}),d.jsx("div",{style:{marginLeft:u!=100?"6px":"0px",transition:`width ${n}ms ease-in-out ${u==100?`, max-height 200ms 0.5s ease-in-out, margin-left ${n}ms ${n/1.5}ms`:""}`},className:f.activeIndicator}),d.jsx("div",{style:{width:"4 px",transition:`width ${n}ms ease-in-out, max-height 200ms 0.5s ease-in-out`},className:f.stop})]}),(e==="circular-determinate"||e=="circular-indeterminate")&&d.jsx(D.motion.svg,{width:"48",height:"48",viewBox:"0 0 48 48",initial:{rotate:-90},animate:{rotate:270},transition:{repeat:1/0,duration:p(),ease:"linear"},className:f.progressIndicator,...r,children:d.jsx(D.motion.circle,{cx:"50%",cy:"50%",r:y?"calc(50% - 2px)":"50%",style:{strokeLinecap:"round"},initial:"hidden",animate:"visible",className:f.activeIndicator,variants:{hidden:{pathLength:m?10/100:90/100},visible:{pathLength:m?90/100:10/100}},transition:{pathLength:{type:"tween",ease:"linear",duration:p(),bounce:0}}})},m+"")]})},ue=({colorName:e="on-surface",triggerRef:t})=>{const n={initial:{opacity:0,borderRadius:"50%",width:"25%",height:"25%"},animate:{opacity:1,borderRadius:0,width:"200%",height:"200%",transition:{duration:.3,borderRadius:{duration:.3,delay:.3}}}},[o,r]=a.useState(!0),[u,i]=a.useState(!1),[c,m]=a.useState({x:0,y:0});a.useEffect(()=>{u&&(r(!0),r(!1))},[u]),a.useEffect(()=>{const l=t==null?void 0:t.current;if(l)return l.addEventListener("mousedown",s),l.addEventListener("mouseup",y),l.addEventListener("mouseleave",p),()=>{l.removeEventListener("mousedown",s),l.removeEventListener("mouseup",y),l.removeEventListener("mouseleave",p)}},[t]);const s=l=>{const f=t==null?void 0:t.current,h=f.getBoundingClientRect();i(!0),m({x:(l.clientX-h.left)/f.clientWidth*100,y:(l.clientY-h.top)/f.clientHeight*100})},p=l=>{i(!1)},y=l=>{i(!1)};return d.jsx(D.AnimatePresence,{mode:"wait",children:(u||!u&&!o)&&d.jsx(D.motion.div,{style:{position:"absolute",width:"100%",height:"100%",top:c.y+"%",left:c.x+"%",background:`color-mix(in srgb, var(--color-${e}) 12%, transparent)`,pointerEvents:"none"},variants:n,initial:"initial",animate:"animate",exit:{opacity:0,transition:{duration:0}},onAnimationComplete:()=>r(!0),className:"transform -translate-x-1/2 -translate-y-1/2"})})},et=Y("customScroll",({orientation:e,draggable:t,isDragging:n})=>({customScroll:x("flex h-full w-full",t&&["[&::-webkit-scrollbar-track]:rounded-full","[&::-webkit-scrollbar-track]:bg-transparent","[&::-webkit-scrollbar-thumb]:rounded-full",{"[&::-webkit-scrollbar-thumb]:bg-outline":n,"[&::-webkit-scrollbar-thumb]:bg-transparent":!n},{"[&::-webkit-scrollbar]:h-2":e==="horizontal"},{"[&::-webkit-scrollbar]:w-2":e==="vertical"}],{"overflow-y-scroll flex-col":e==="vertical","overflow-x-scroll flex-row":e==="horizontal","cursor-grab":t&&!n,"cursor-grabbing":t&&n}),track:x("overflow-hidden flex-none sticky",{"left-0 h-full":e==="horizontal","top-0 w-full":e==="vertical"})}));function mt(e,t){let n=0,o=null,r=null;const u=(i,c)=>{n=Date.now(),t(i,c)};return(i,c)=>{const m=Date.now(),s=e-(m-n);s<=0?(o&&(clearTimeout(o),o=null),u(i,c)):(r={v:i,o:c},o||(o=setTimeout(()=>{o=null;const p=r;r=null,p&&u(p.v,p.o)},s)))}}const tt=({children:e,orientation:t="vertical",scrollSize:n,onScroll:o,className:r,draggable:u=!1,throttleDuration:i=75,scroll:c,setScroll:m})=>{var ne,ae;const s=a.useRef(null),p=a.useRef(null),[y,l]=a.useState({width:null,height:null});a.useEffect(()=>{if(!s.current)return;const N=new ResizeObserver(w=>{for(const P of w)P.target===s.current&&l({width:P.contentRect.width,height:P.contentRect.height})});return N.observe(s.current),()=>{N.disconnect()}},[s]);const f=a.useRef(null),h=a.useRef(null),E=()=>{const N=p.current;return N?{width:n??N.scrollWidth,height:n??N.scrollHeight}:null},g=()=>{const N=s.current;return N?{width:N.clientWidth,height:N.clientHeight}:null},{scrollYProgress:k,scrollXProgress:b}=D.useScroll({container:s}),$=a.useRef(null);$.current||($.current=mt(i,(N,w)=>{!h.current||!f.current||!s.current||(w===(t==="horizontal"?"x":"y")&&(m==null||m(N)),o&&(t==="horizontal"&&w==="x"&&o({scrollProgress:N,scroll:N*(f.current.width-s.current.clientWidth),scrollTotal:f.current.width-s.current.clientWidth,scrollVisible:h.current.width}),t==="vertical"&&w==="y"&&o({scrollProgress:N,scroll:N*(f.current.height-s.current.clientHeight),scrollTotal:f.current.height-s.current.clientHeight,scrollVisible:h.current.height})))}));const L=(N,w)=>{$.current&&$.current(N,w)};a.useEffect(()=>{y.width&&L(b.get(),"x"),y.height&&L(k.get(),"y")},[y]),a.useEffect(()=>{const N=s.current,w=p.current;if(!N||!w||typeof c!="number")return;const P=(A,B,te)=>Math.min(te,Math.max(B,A));if(t==="horizontal"){const A=Math.max(0,(n??w.scrollWidth)-N.clientWidth);N.scrollLeft=P(c*A,0,A)}else{const A=Math.max(0,(n??w.scrollHeight)-N.clientHeight);N.scrollTop=P(c*A,0,A)}},[c,t,n]),D.useMotionValueEvent(b,"change",N=>{L(N,"x")}),D.useMotionValueEvent(k,"change",N=>{L(N,"y")});const[W,S]=a.useState(!1);a.useLayoutEffect(()=>{W||!h.current||!f.current||!o||(o({scrollProgress:0,scroll:0,scrollTotal:t=="vertical"?f.current.height:f.current.width,scrollVisible:t=="vertical"?h.current.height:h.current.width}),S(!0))},[h,f,o]),f.current=E(),h.current=g();const[H,F]=a.useState(!1),R=et({isDragging:H,children:e,className:r,onScroll:o,orientation:t,scrollSize:n,draggable:u,throttleDuration:i}),[v,I]=a.useState(0),[O,_]=a.useState(0),ee=N=>{if(!u)return;const w=s.current;if(!w||v==null)return;const A=(N.pageX-w.offsetLeft-v)*1.5;w.scrollLeft=O-A},U=N=>{const w=s.current;w&&(F(!0),I(N.pageX-w.offsetLeft),_(w.scrollLeft))},T=N=>{H&&(N.preventDefault(),ee(N))},M=()=>{F(!1)},j=()=>{F(!1)},V=N=>{N.preventDefault()},q=a.useRef(null);return a.useEffect(()=>()=>{q.current&&clearTimeout(q.current)},[]),a.useEffect(()=>{const N=s.current;if(!N)return;const w=P=>{var re,z,Z,oe;const A=P.detail,B=s.current;if(!B||!A)return;const te=A.orientation??t;if(typeof A.progress=="number")if(te==="horizontal"){const Q=Math.max(0,(((re=f.current)==null?void 0:re.width)??0)-B.clientWidth);B.scrollLeft=Math.min(Q,Math.max(0,A.progress*Q))}else{const Q=Math.max(0,(((z=f.current)==null?void 0:z.height)??0)-B.clientHeight);B.scrollTop=Math.min(Q,Math.max(0,A.progress*Q))}else if(typeof A.scroll=="number")if(te==="horizontal"){const Q=Math.max(0,(((Z=f.current)==null?void 0:Z.width)??0)-B.clientWidth);B.scrollLeft=Math.min(Q,Math.max(0,A.scroll))}else{const Q=Math.max(0,(((oe=f.current)==null?void 0:oe.height)??0)-B.clientHeight);B.scrollTop=Math.min(Q,Math.max(0,A.scroll))}};return N.addEventListener("udx:customScroll:set",w),()=>{N.removeEventListener("udx:customScroll:set",w)}},[t]),d.jsxs("div",{className:R.customScroll,ref:s,onMouseDown:U,onMouseMove:T,onMouseUp:M,onMouseLeave:j,onDragStart:V,onScroll:N=>{H||(I(null),F(!0),q.current&&clearTimeout(q.current),q.current=setTimeout(()=>{F(!1)},1e3))},children:[d.jsx("div",{ref:p,style:t==="vertical"?{height:((ne=h==null?void 0:h.current)==null?void 0:ne.height)??"100%"}:{width:((ae=h==null?void 0:h.current)==null?void 0:ae.width)??"100%"},className:R.track,children:e}),h.current&&f.current&&d.jsxs(d.Fragment,{children:[t==="vertical"&&f.current.height>h.current.height&&d.jsx(D.motion.div,{className:"flex-none",style:{height:f.current.height-h.current.height}}),t==="horizontal"&&f.current.width>h.current.width&&d.jsx(D.motion.div,{className:"flex-none",style:{width:f.current.width-h.current.width}})]})]})},ht=({onScroll:e,el:t,touch:n=!0})=>{const o=a.useRef(null),r=a.useRef(0),u=a.useRef(0);a.useEffect(()=>{if(!t)return;r.current=t.scrollTop,u.current=t.scrollLeft;const i=l=>{e==null||e(l)},c=l=>{l.preventDefault(),i({type:"intent",source:"wheel",deltaX:l.deltaX,deltaY:l.deltaY,originalEvent:l})},m=l=>{if(!n)return;const f=l.touches[0];f&&(o.current={x:f.clientX,y:f.clientY})},s=l=>{if(!n)return;const f=l.touches[0];if(!f||!o.current)return;l.preventDefault();const h=o.current.x-f.clientX,E=o.current.y-f.clientY;o.current={x:f.clientX,y:f.clientY},i({type:"intent",source:"touch",deltaX:h,deltaY:E,originalEvent:l})},p=()=>{n&&(o.current=null)},y=l=>{const h=t.clientHeight*.9;let E=0,g=0;switch(l.key){case"ArrowDown":g=40;break;case"ArrowUp":g=-40;break;case"ArrowRight":E=40;break;case"ArrowLeft":E=-40;break;case"PageDown":g=h;break;case"PageUp":g=-h;break;case"Home":g=Number.NEGATIVE_INFINITY;break;case"End":g=Number.POSITIVE_INFINITY;break;case" ":g=l.shiftKey?-h:h;break;default:return}l.preventDefault(),i({type:"intent",source:"keyboard",deltaX:E,deltaY:g,originalEvent:l})};return t.addEventListener("wheel",c,{passive:!1}),t.addEventListener("touchstart",m,{passive:!0}),t.addEventListener("touchmove",s,{passive:!1}),t.addEventListener("touchend",p,{passive:!0}),t.addEventListener("keydown",y),()=>{t.removeEventListener("wheel",c),t.removeEventListener("touchstart",m),t.removeEventListener("touchmove",s),t.removeEventListener("touchend",p),t.removeEventListener("keydown",y)}},[e])},pt=({transition:e,orientation:t="vertical",throttleDuration:n=25})=>{const[o,r]=a.useState(0),[u,i]=a.useState(),c=a.useRef(!1),m=a.useRef(),s=a.useRef(0);a.useEffect(()=>{i(document);const l=document.documentElement.scrollTop;r(l),s.current=l},[]),a.useEffect(()=>{const l=()=>{c.current||r(document.documentElement.scrollTop)};return u==null||u.addEventListener("scroll",l),()=>{m.current&&clearTimeout(m.current),u==null||u.removeEventListener("scroll",l)}},[u]);const p=a.useRef(),y=a.useRef(null);return a.useEffect(()=>{const l=o;if(y.current&&(y.current.stop(),y.current=null),!c.current){p.current=l;return}return y.current=ut.animate(p.current??l,l,{duration:((e==null?void 0:e.duration)??500)/1e3,ease:(e==null?void 0:e.ease)??"easeOut",onUpdate:f=>{m.current&&clearTimeout(m.current),p.current=f;const h=document.documentElement,E=Math.round(f*1e3)/1e3,g=s.current;Math.abs(E-g)<.1||(s.current=E,c.current&&h.scrollTo({top:E}))},onComplete:()=>{m.current=setTimeout(()=>{c.current=!1},300),y.current=null}}),()=>{y.current&&(y.current.stop(),y.current=null)}},[o]),u?d.jsx(ht,{touch:!1,el:u,onScroll:l=>{if("deltaY"in l&&l.deltaY!==0&&u&&o!==null){let f=o+l.deltaY;const h=u.querySelector("html");h&&(f=Math.min(f,h.scrollHeight-h.clientHeight)),f=Math.max(f,0),r(f),c.current=!0}}}):null},nt=({targetRef:e,children:t})=>{const[n,o]=a.useState(null),r=a.useRef(null),u=()=>{const i=e.current;if(!i)return;const c=i.getBoundingClientRect();o({position:"fixed",top:c.top,left:c.left,width:c.width,height:c.height,pointerEvents:"none",zIndex:999})};return a.useEffect(()=>{const i=e.current;if(i)return u(),window.addEventListener("scroll",u,!0),window.addEventListener("resize",u),r.current=new ResizeObserver(u),r.current.observe(i),()=>{var c;window.removeEventListener("scroll",u,!0),window.removeEventListener("resize",u),(c=r.current)==null||c.disconnect()}},[e]),n?Ce.createPortal(d.jsx("div",{style:n,children:t}),document.body):null};function xt(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)}const yt=({config:e,throttleDelay:t=100,onLoad:n,loadTheme:o=!1})=>{const[r,u]=a.useState(null);a.useEffect(()=>{(async()=>{const l=await he.loader(e,o);u(l)})()},[]);const[i,c]=a.useState(null),m=a.useRef(null),s=a.useRef(0),p=a.useRef(null);a.useEffect(()=>{if(!r)return;const l={...e,sourceColor:e.sourceColor},f=Date.now(),h=f-s.current,E=async g=>{await y(g)};if(s.current===0||h>=t)m.current&&(clearTimeout(m.current),m.current=null),p.current=null,s.current=f,E(l);else if(p.current=l,!m.current){const g=Math.max(0,t-h);m.current=setTimeout(async()=>{m.current=null;const k=p.current;p.current=null,k&&(s.current=Date.now(),await E(k))},g)}return()=>{}},[e,t,r]);const y=async l=>{if(typeof l.sourceColor=="string"&&!xt(l.sourceColor))throw new Error("Invalid hex color");if(!r)return;r.context.update(l),await r.load();const f=r==null?void 0:r.plugins.getPlugin(Pe.TailwindPlugin).getInstance().outputCss;c(f),n==null||n(r)};return a.useEffect(()=>()=>{m.current&&(clearTimeout(m.current),m.current=null)},[]),i?d.jsx("style",{dangerouslySetInnerHTML:{__html:i}}):null};function vt(){if(typeof window>"u")return!1;try{if(window.CSS&&typeof window.CSS.supports=="function")return CSS.supports("animation-timeline: view()")||CSS.supports("animation-timeline: scroll()")||CSS.supports("view-timeline-name: --a")}catch{}return!1}function wt(){return typeof window>"u"||!("matchMedia"in window)?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Ee(e){if(!(e instanceof HTMLElement))return!1;const t=e.classList;return Array.from(t).some(n=>n.startsWith("anim-")&&n.includes("scroll"))}function ke(e){if(!(e instanceof HTMLElement))return!1;const t=e.classList;return Array.from(t).some(n=>n.startsWith("anim-"))}function ve(e,t){if(!Ee(e))return;if(e.hasAttribute(`data-${t}-scroll`)){const i=(e.getAttribute(`data-${t}-scroll`)||"").trim().toLowerCase(),c=i==="x"||i==="inline"?"inline":i==="y"||i==="block"?"block":"auto";e.classList.contains(`${t}-timeline`)||e.classList.contains(`${t}-timeline-inline`)||e.classList.contains(`${t}-timeline-block`)||e.classList.contains(`${t}-timeline-x`)||e.classList.contains(`${t}-timeline-y`)||(c==="inline"?e.classList.add(`${t}-timeline-inline`):c==="block"?e.classList.add(`${t}-timeline-block`):e.classList.add(`${t}-scroll`))}const n=e.getAttribute(`data-${t}-start`);n&&e.style.setProperty(`--${t}-range-start`,n);const o=e.getAttribute(`data-${t}-end`);o&&e.style.setProperty(`--${t}-range-end`,o);const r=e.hasAttribute(`data-${t}-paused`)||e.classList.contains(`${t}-paused`),u=e.hasAttribute(`data-${t}-run`)||e.classList.contains(`${t}-run`);!r&&!u&&e.setAttribute(`data-${t}-run`,"")}function we(e=document,t){return Array.from(e.querySelectorAll(`[class*="${t}-"][class*="-scroll"]`)).filter(o=>Ee(o))}function gt(e=document,t){const n=Array.from(e.querySelectorAll(`[class*="${t}-"]`)),o=new Set([`${t}-run`,`${t}-in`,`${t}-out`,`${t}-in-run`,`${t}-out-run`,`${t}-paused`,`${t}-timeline`,`${t}-timeline-inline`,`${t}-timeline-block`,`${t}-timeline-x`,`${t}-timeline-y`,`${t}-scroll`]);return n.filter(r=>{if(!(r instanceof HTMLElement))return!1;const u=r.classList;return u.contains(`${t}-in`)||u.contains(`${t}-out`)||Array.from(u).some(m=>m.startsWith(`${t}-`)&&!m.includes("scroll")&&!o.has(m))?!0:!Ee(r)})}function Me(e,t,n){e.setAttribute(`data-${t}-run`,""),e.setAttribute(`data-${t}-${n}-run`,"")}function bt(e,t){const n=e.style.animationName;e.style.animationName="none",e.removeAttribute(`data-${t}-run`),e.removeAttribute(`data-${t}-in-run`),e.removeAttribute(`data-${t}-out-run`),e.offsetWidth,e.style.animationName=n}const Et=[0,.2];function Se(e={}){const{prefix:t="anim",once:n=!0}=e;if(wt())return()=>{};const o=vt(),r=new WeakSet,u=new IntersectionObserver(p=>{for(const y of p){const l=y.target;if(!ke(l))continue;const f=l.classList.contains(`${t}-out`);!f&&y.isIntersecting?(Me(l,t,"in"),n&&u.unobserve(l)):f&&!y.isIntersecting?(Me(l,t,"out"),n&&u.unobserve(l)):n||bt(l,t)}},{threshold:Et}),i=p=>{const y=gt(p||document,t);for(const l of y)r.has(l)||(r.add(l),u.observe(l))};i();let c,m=null,s=null;if(o)(()=>{s==null&&(s=requestAnimationFrame(()=>{s=null;const y=we(void 0,t);for(const l of y)ve(l,t)}))})(),m=new MutationObserver(y=>{for(const l of y)if(l.type==="attributes"){const f=l.target;f instanceof HTMLElement&&(ve(f,t),ke(f)&&(r.has(f)||(r.add(f),u.observe(f))))}else if(l.type==="childList"&&l.addedNodes&&l.addedNodes.length){for(const f of Array.from(l.addedNodes))if(f instanceof HTMLElement){const h=we(f,t);for(const E of h)ve(E,t);i(f)}}}),m.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["class",`data-${t}-scroll`,`data-${t}-start`,`data-${t}-end`,`data-${t}-paused`,`data-${t}-run`]}),c=()=>{s!=null&&cancelAnimationFrame(s),m&&m.disconnect()};else{let p;we(void 0,t).length>0&&Promise.resolve().then(()=>require("./scrollDriven-DWAu7CR0.cjs")).then(l=>{p=l.initScrollViewFallback({once:n})}),c=()=>{typeof p=="function"&&p()}}return()=>{c&&c(),u.disconnect()}}const St=Se,Lt=Se,rt=({variant:e="filled",disabled:t=!1,icon:n,href:o,label:r,disableTextMargins:u,className:i,iconPosition:c="left",loading:m=!1,shape:s="rounded",onClick:p,onToggle:y,activated:l,ref:f,size:h="medium",allowShapeTransformation:E=!0,transition:g,children:k,...b})=>{if(k&&(r=k),!r)throw new Error("Button component requires either a label prop or children content");const $=o?"a":"button",L=a.useRef(null),W=f||L,[S,H]=a.useState(l);a.useEffect(()=>{H(l)},[l]),g={duration:.3,...g};let F;y?y&&(F=I=>{t&&I.preventDefault();const O=!S;H(O),y(O)}):F=I=>{t&&I.preventDefault(),p&&p(I)};const R=Be({allowShapeTransformation:E,size:h,disableTextMargins:u,shape:s,href:o,disabled:t,icon:n,iconPosition:c,loading:m,variant:e,transition:g,className:i,isActive:S??!1,onToggle:y,activated:S,label:r,children:r}),v=n?d.jsx(se,{icon:n,className:R.icon}):d.jsx(d.Fragment,{});return d.jsxs($,{ref:W,href:o,className:R.button,...b,onClick:F,disabled:t,"aria-pressed":y?S:void 0,style:{transition:g.duration+"s"},children:[d.jsx("div",{className:R.touchTarget}),d.jsx("div",{className:R.stateLayer,style:{transition:g.duration+"s"},children:!t&&d.jsx(ue,{colorName:e==="filled"&&y&&"on-surface-variant"||e==="filled"&&!y&&"on-primary"||e==="elevated"&&"primary"||e==="tonal"&&"on-secondary-container"||e==="outlined"&&"primary"||e==="text"&&"primary"||"",triggerRef:W})}),c==="left"&&v,m&&d.jsx("div",{className:"!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",children:d.jsx(ze,{className:()=>({progressIndicator:"h-6 w-6",activeIndicator:x({"!stroke-primary":e==="elevated"&&!t,"!stroke-on-surface/[38%]":e==="elevated"&&t},{"!stroke-on-primary":e==="filled"&&!t,"!stroke-on-surface/[38%]":e==="filled"&&t},{"!stroke-on-secondary-container":e==="tonal"&&!t,"!stroke-on-surface/[38%]":e==="tonal"&&t},{"!stroke-primary":e==="outlined"&&!t,"!stroke-on-surface/[38%]":e==="outlined"&&t},{"!stroke-primary":e==="text"&&!t,"!stroke-on-surface/[38%]":e==="text"&&t})}),variant:"circular-indeterminate"})}),d.jsx("span",{className:R.label,children:r}),c==="right"&&v]})},jt=({variant:e="outlined",className:t,children:n,isInteractive:o=!1,ref:r,...u})=>{const i=Fe({className:t,isInteractive:o,variant:e,children:n}),c=a.useRef(null),m=r||c;return d.jsxs("div",{...u,ref:m,className:i.card,children:[d.jsx("div",{className:i.stateLayer,children:o&&d.jsx(ue,{colorName:"on-surface",triggerRef:m})}),n]})},le=(e,t,n=[0,1])=>{const[o,r]=t,[u,i]=n,m=(Math.max(o,Math.min(e,r))-o)/(r-o);return u+m*(i-u)},st=({className:e,children:t,width:n,index:o=0,outputRange:r,ref:u,...i})=>{const c=a.useRef(null),m=u||c,s=Ve({className:e,index:o,width:n,children:t,outputRange:r});return d.jsx("div",{ref:m,style:{width:n+"px",maxWidth:r[1]+"px",minWidth:r[0]+"px",willChange:"width"},transition:{duration:.5,ease:"linear"},className:s.carouselItem,...i,children:t})},Nt=({variant:e="hero",className:t,children:n,ref:o,marginPourcent:r=0,inputRange:u=[.21,.65],outputRange:i=[42,300],gap:c=8,onChange:m,onMetricsChange:s,index:p,scrollSensitivity:y=1.25,...l})=>{const f=a.useRef(null),h=o||f,[E,g]=a.useState(0),k=He({index:p,className:t,children:n,variant:e,inputRange:u,outputRange:i,marginPourcent:r,onChange:m,gap:c,scrollSensitivity:y}),b=a.Children.toArray(n).filter(w=>a.isValidElement(w)&&w.type===st),$=a.useRef(null),[L,W]=a.useState({}),[S,H]=a.useState(null),F=a.useRef(0),R=a.useRef(null),v=()=>{var fe,ce,de;if(!$.current||!h.current||(S==null?void 0:S.scrollProgress)===void 0)return[];const w=(S==null?void 0:S.scrollVisible)??((fe=h.current)==null?void 0:fe.clientWidth)??0;function P(C,X){return C.map((K,J)=>({itemScrollXCenter:K,relativeIndex:(K-X)/Math.abs(C[1]-C[0]),index:J,width:0}))}const A=b.map((C,X)=>{if(!I[X].current||!$.current)return 0;const J=X/(b.length-1);return le(J,[0,1],[0,1])}),B=P(A,(S==null?void 0:S.scrollProgress)??0).sort((C,X)=>C.index-X.index);let re=((((ce=h.current)==null?void 0:ce.clientWidth)??w)+c)/(i[1]+c);const z=B.sort((C,X)=>Math.abs(C.relativeIndex)-Math.abs(X.relativeIndex)).map((C,X)=>{var J;if(!C)return;X===0&&_(C.index);const K=(J=I[C.index])==null?void 0:J.current;if(!(!h.current||!K)&&!(re<=0))return C.width=i[1],--re,C}).filter(Boolean).sort((C,X)=>C.index-X.index);let Z=(((de=h.current)==null?void 0:de.clientWidth)??w)-c;const oe=z.filter((C,X,K)=>{let J=!1;return C.width==i[1]&&(X===0||X===K.length-1)&&(J=!0),J?!0:(Z-=C.width+c,!1)});oe.forEach(C=>{if(!C)return;const X=le(1-Math.abs(S.scrollProgress-C.itemScrollXCenter),[0,1],[0,1]);C.width=X});let Q=0;return oe.forEach((C,X)=>{if(C)if(X==0){const K=le(C==null?void 0:C.relativeIndex,[-2,C.index==0?0:-1],[0,1]);C.index>=1&&(B.sort((J,xe)=>J.index-xe.index),B[C.index-1].width=i[0],z.unshift(B[C.index-1]),Z-=i[0]+c,Q=le(1-K,[0,1],[0,-(i[0]+c)])),Z-=Q,C.width=le(K,[0,1],[i[0],i[1]]),Z-=C.width}else{let K=C.index,J=K==B.length-1;const xe=K==B.length-2;for(;Z>0;){const ie=B.filter(me=>me.index===K)[0];if(!ie){if(J)throw new Error("dynamicItem not found");J=!0;break}if(z.includes(ie)||z.push(ie),ie.width=le(Z,[i[0],i[1]+(c+i[0])*2],[i[0],i[1]]),Z-=ie.width+c,(xe||J)&&ie.index==B.length-1){let me=1;for(;Z>0;){const ye=z[me],Ie=le(ye.width+Z,[i[0],i[1]],[i[0],i[1]])-ye.width;ye.width+=Ie,Z-=Ie,me--}break}else K++}}}),g(Q),Object.fromEntries(z.map(C=>[C.index,C.width]))},I=a.useRef([]).current,[O,_]=a.useState(0);a.useEffect(()=>{m&&m(O)},[O]),a.useEffect(()=>{typeof p=="number"&&b.length>0&&p!==O&&T(p)},[p,b.length]),a.useEffect(()=>{U(O)},[O]),I.length!==b.length&&b.forEach((w,P)=>{I[P]||(I[P]=a.createRef())});const[ee,U]=a.useState(0),T=(w,P={})=>{if(!b.length)return 0;const A=I[w];if(!A||!A.current||!$.current)return 0;const B=le(w/Math.max(1,b.length-1),[0,1],[0,1]);return U(w),$.current.dispatchEvent(new CustomEvent("udx:customScroll:set",{bubbles:!0,detail:{progress:B,orientation:"horizontal",animate:P.animate!==!1}})),B},M=b.map((w,P)=>{var re;const A=(re=w.props)==null?void 0:re.onClick,B=z=>{A==null||A(z)},te=()=>U(P);return a.cloneElement(w,{width:L[P],outputRange:i,ref:I[P],key:P,index:P,role:"option","aria-selected":O===P,tabIndex:O===P?0:-1,onClick:B,onFocus:te})}),j=w=>{var P;if(w.scrollTotal>0){(P=R.current)==null||P.stop();const A=F.current??0,B=w.scrollProgress??0;R.current=D.animate(A,B,{type:"spring",stiffness:260,damping:32,mass:.6,restDelta:5e-4,onUpdate:te=>{F.current=te,H({...w,scrollProgress:te})}})}};a.useEffect(()=>{const w=v();W(w)},[S]);const V=a.useRef(s);a.useEffect(()=>{V.current=s},[s]);const q=a.useRef(null);a.useEffect(()=>{var X;const w=V.current;if(!w||!(h!=null&&h.current))return;const P=b.length;if(P<=0)return;const A=((X=h.current)==null?void 0:X.clientWidth)??0,B=i[1],te=F.current??(S==null?void 0:S.scrollProgress)??0,re=(A+c)/(B+c),z=Math.max(1,Math.floor(re)),Z=Math.max(1,Math.round(z*(2/3))),oe=Math.min(Math.max(0,O),Math.max(0,P-1)),Q=oe>0,fe=oe<P-1,ce={total:P,selectedIndex:oe,visibleApprox:re,visibleFull:z,stepHalf:Z,canPrev:Q,canNext:fe,scrollProgress:te,viewportWidth:A,itemMaxWidth:B,gap:c},de=q.current;let C=!de;if(!C){for(const K in ce)if(ce[K]!==de[K]){C=!0;break}}C&&(q.current=ce,w(ce))},[h,b.length,O,S,c,i]),a.useEffect(()=>()=>{var w;(w=R.current)==null||w.stop()},[]);const[ne,ae]=a.useState(0);a.useLayoutEffect(()=>{let w=i[1];S&&w>S.scrollVisible&&(w=S.scrollVisible);const P=(w+c)*M.length/y;ae(P)},[h,I,S]);const N=w=>{if(!b.length)return;const P=ee??O;switch(w.key){case"ArrowLeft":w.preventDefault(),T(Math.max(0,P-1));break;case"ArrowRight":w.preventDefault(),T(Math.min(b.length-1,P+1));break;case"Home":w.preventDefault(),T(0);break;case"End":w.preventDefault(),T(b.length-1);break;case"Enter":case" ":w.preventDefault(),T(P);break}};return a.useEffect(()=>{const w=h.current;if(!w)return;const P=A=>{const B=A.detail;B&&typeof B.index=="number"&&T(B.index)};return w.addEventListener("udx:carousel:centerIndex",P),()=>{w.removeEventListener("udx:carousel:centerIndex",P)}},[h,b.length]),d.jsx("div",{className:k.carousel,ref:h,role:"listbox","aria-orientation":"horizontal",onKeyDown:N,...l,children:d.jsx(tt,{draggable:!0,orientation:"horizontal",onScroll:j,scrollSize:ne,children:d.jsx("div",{className:k.track,ref:$,style:{gap:`${c}px`,translate:E,willChange:"translate"},children:M})})})},ot=({orientation:e="horizontal",className:t,...n})=>{const o=Oe({orientation:e,className:t});return d.jsx("hr",{className:o.divider,...n})},G=[];for(let e=0;e<256;++e)G.push((e+256).toString(16).slice(1));function It(e,t=0){return(G[e[t+0]]+G[e[t+1]]+G[e[t+2]]+G[e[t+3]]+"-"+G[e[t+4]]+G[e[t+5]]+"-"+G[e[t+6]]+G[e[t+7]]+"-"+G[e[t+8]]+G[e[t+9]]+"-"+G[e[t+10]]+G[e[t+11]]+G[e[t+12]]+G[e[t+13]]+G[e[t+14]]+G[e[t+15]]).toLowerCase()}let ge;const kt=new Uint8Array(16);function Mt(){if(!ge){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ge=crypto.getRandomValues.bind(crypto)}return ge(kt)}const Rt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Re={randomUUID:Rt};function Le(e,t,n){var r;if(Re.randomUUID&&!e)return Re.randomUUID();e=e||{};const o=e.random??((r=e.rng)==null?void 0:r.call(e))??Mt();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,It(o)}const je=({variant:e="plain",buttons:t,className:n,children:o,title:r,text:u,position:i,targetRef:c,ref:m,trigger:s=["hover","focus"],...p})=>{if(!o&&!c)throw new Error("ToolTip must have a child or a targetRef");Array.isArray(s)||(s=[s]),t&&!Array.isArray(t)&&(t=[t]);const y=a.useRef(null),l=c||y,[f,h]=a.useState(null),[E]=a.useState(Le()),[g,k]=a.useState(!1),b=a.useRef(null);a.useEffect(()=>{const v=I=>{h(I.detail)};return document.addEventListener("tooltip-update",v),()=>{document.removeEventListener("tooltip-update",v)}},[]),a.useEffect(()=>{b.current&&clearTimeout(b.current),f?k(f===E):b.current=setTimeout(()=>{k(!1)},1200)},[f,E]);const $=()=>{if(s.includes("hover")){const v=new CustomEvent("tooltip-update",{detail:E});document.dispatchEvent(v)}},L=()=>{if(s.includes("hover")){const v=new CustomEvent("tooltip-update",{detail:null});document.dispatchEvent(v)}},W=()=>{if(s.includes("click")){const v=new CustomEvent("tooltip-update",{detail:g?null:E});document.dispatchEvent(v)}},S=()=>{if(s.includes("focus")){const v=new CustomEvent("tooltip-update",{detail:E});document.dispatchEvent(v)}},H=()=>{if(s.includes("focus")){const v=new CustomEvent("tooltip-update",{detail:null});document.dispatchEvent(v)}};a.useEffect(()=>{if(l!=null&&l.current){const v=l.current;return v.addEventListener("mouseenter",$),v.addEventListener("mouseleave",L),v.addEventListener("click",W),v.addEventListener("focus",S),v.addEventListener("blur",H),()=>{v.removeEventListener("mouseenter",$),v.removeEventListener("mouseleave",L),v.removeEventListener("click",W),v.removeEventListener("focus",S),v.removeEventListener("blur",H)}}},[l,s,E,g]);const F=!c&&a.isValidElement(o)?a.cloneElement(o,{ref:y}):o;if(!i&&typeof window<"u"&&l!=null&&l.current&&!i){const v=l.current.getBoundingClientRect(),I=window.innerWidth,O=window.innerHeight,_=v.left/I,ee=v.top/O;e==="plain"?_<1/3?i="right":_>2/3?i="left":i=ee>.5?"top":"bottom":_<1/2&&ee<1/2?i="bottom-right":_>1/2&&ee<1/2?i="bottom-left":_>1/2&&ee>1/2?i="top-left":_<1/2&&ee>1/2&&(i="top-right")}const R=Te({variant:e,buttons:t,className:n,title:r,text:u,position:i,trigger:s,targetRef:c,children:o});return d.jsxs(d.Fragment,{children:[F,d.jsx(D.AnimatePresence,{children:g&&d.jsx(nt,{targetRef:l,children:d.jsx(D.motion.div,{initial:{opacity:f?1:0},animate:{opacity:1},transition:{duration:f?0:.3},exit:{opacity:f?1:0},className:R.toolTip,...p,onMouseEnter:$,onMouseLeave:L,children:d.jsxs(D.motion.div,{className:R.container,layoutId:"tool-tip",transition:{type:"spring",stiffness:200,damping:20},children:[r&&d.jsx("div",{className:R.subHead,children:r}),d.jsx("div",{className:R.supportingText,children:u}),t&&d.jsx("div",{className:R.actions,children:Array.isArray(t)&&t.map((v,I)=>d.jsx(rt,{size:"small",variant:"text",...v},I))})]})})})})]})},be=({className:e,label:t,variant:n="primary",size:o="medium",href:r,type:u,icon:i,isExtended:c=!1,ref:m,transition:s,children:p,...y})=>{if(p&&(t=p),!t)throw new Error("FAB component requires either a label prop or children content");const l=r?"a":"button",f=qe({href:r,icon:i,isExtended:c,label:t,size:o,variant:n,className:e,transition:s,children:t});s={duration:.3,...s};const h=a.useRef(null),E=m||h,g={visible:{width:"auto",marginLeft:12,opacity:1,transition:{...s,opacity:{duration:s.duration/2,delay:s.duration-s.duration/2}}},hidden:{width:0,marginLeft:0,opacity:0,transition:{...s,marginLeft:{duration:s.duration/2,delay:s.duration-s.duration/2}}}};return d.jsxs(l,{...y,ref:E,href:r,"aria-label":c?void 0:t,className:f.fab,children:[d.jsx(je,{trigger:c?null:void 0,text:t,targetRef:E}),d.jsx("span",{className:f.stateLayer,children:d.jsx(ue,{colorName:x({primary:n=="surface","on-primary-container":n=="primary","on-secondary-container":n=="secondary","on-tertiary-container":n=="tertiary"}),triggerRef:E})}),d.jsx(se,{icon:i,className:f.icon}),d.jsx(D.AnimatePresence,{children:c&&d.jsx(D.motion.span,{variants:g,initial:"hidden",animate:"visible",exit:"hidden",className:f.label,children:t})})]})},pe=({variant:e="standard",href:t,disabled:n=!1,type:o="button",title:r,label:u,onToggle:i,activated:c=!1,onClick:m,icon:s,size:p="medium",iconSelected:y,className:l,ref:f,width:h="default",shape:E="rounded",allowShapeTransformation:g=!0,transition:k,children:b,...$})=>{if(b&&(u=b),!u)throw new Error("IconButton component requires either a label prop or children content to provide an accessible aria-label");r||(r=u);const[L,W]=a.useState(c);let S;i?i&&(S=I=>{n&&I.preventDefault(),W(!L),i(!!L)},s=L&&y||s):S=I=>{n&&I.preventDefault(),m&&m(I)},a.useEffect(()=>{W(c)},[c]);const H=t?"a":"button",F=Xe({transition:k,shape:E,allowShapeTransformation:g,width:h,href:t,activated:L,label:u,iconSelected:y,isActive:L,onToggle:i,disabled:n,icon:s,variant:e,className:l,size:p,children:u,...$}),R=a.useRef(null),v=f||R;return k={duration:.3,...k},d.jsxs(H,{disabled:n,href:t,style:{transition:k.duration+"s"},className:F.iconButton,"aria-label":u,...$,title:void 0,onClick:S,ref:v,children:[d.jsx(je,{targetRef:v,trigger:n?null:void 0,text:r}),d.jsx("div",{className:F.touchTarget}),d.jsx("div",{className:F.stateLayer,style:{transition:k.duration+"s"},children:!n&&d.jsx(ue,{colorName:x(e==="standard"&&{"on-surface-variant":!L,primary:L},e==="filled"&&{primary:!L&&!!i,"inverse-on-surface":L||!i},e==="tonal"&&{"on-surface-variant":!L&&!!i,"on-secondary-container":L||!i},e==="outlined"&&{"on-surface-variant":!L,"on-primary":L}),triggerRef:v})}),s&&d.jsx(se,{icon:s,className:F.icon})]})},$t=({className:e,valueFormatter:t,step:n=10,name:o,value:r=0,min:u=0,max:i=100,marks:c=[{value:0,label:"0"},{value:100,label:"100"}],ref:m,onChange:s,...p})=>{const y=M=>{const j=f(),V=l();return M===1/0?100:M===-1/0?0:(M-j)/(V-j)*100},l=(M=!1)=>M?i:i==1/0?c[(c==null?void 0:c.length)-1].value:i,f=(M=!1)=>M?u:u==-1/0?c[0].value:u,h=M=>{const j=f(!1);return(l(!1)-j)*M/100+j},[E,g]=a.useState(!1),k=a.useRef(null),b=m||k,[$,L]=a.useState(r),[W,S]=a.useState(y(r)),[H,F]=a.useState(!1),R=M=>{F(!0),g(!0),O(M)},v=()=>{F(!1),g(!1)};a.useEffect(()=>(H?(window.addEventListener("mouseup",v),window.addEventListener("mousemove",O),window.addEventListener("touchend",v),window.addEventListener("touchmove",O)):(window.removeEventListener("mouseup",v),window.removeEventListener("mousemove",O),window.removeEventListener("touchend",v),window.removeEventListener("touchmove",O)),()=>{window.removeEventListener("mouseup",v),window.removeEventListener("mousemove",O),window.removeEventListener("touchend",v),window.removeEventListener("touchmove",O)}),[H]);const I=_e({className:e,isChanging:E,marks:c,max:i,min:u,name:o,step:n,value:$,valueFormatter:t,onChange:s}),O=M=>{const j=b==null?void 0:b.current;if(j){const V=j.getBoundingClientRect().left,ne=((M.type==="touchmove"||M.type==="touchstart"?M.touches[0].clientX:M.clientX)-V)/j.offsetWidth*100;_({percent:ne})}},_=({percent:M,value:j})=>{if(M){if(M>=100){L(l(!0)),S(100);return}if(M<=0){L(f(!0)),S(0);return}j=h(M),j==f()&&(j=f(!0)),j==l()&&(j=l(!0))}else if(j!=null){if(j>=l()){L(l(!0)),S(100);return}if(j<=f()){L(f(!0)),S(0);return}M=y(j)}else return;n!=null?j=Math.round((j-f())/n)*n+f():c&&(j=c.reduce((V,q,ne)=>{let ae=q.value===1/0?l():q.value===-1/0?f():q.value,N=V.value===1/0?l():V.value===-1/0?f():V.value;return ae=Math.abs(ae-j),N=Math.abs(N-j),ae<N?q:V}).value),j>=l()&&(j=l(!0)),j<=f()&&(j=f(!0)),M=y(j),L(j),S(M),s&&s(j)},[ee,U]=a.useState(0);a.useEffect(()=>{const M=()=>{b.current&&U(b.current.offsetWidth)};return M(),window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)}},[]);const T=M=>{switch(M.key){case"ArrowRight":if(n)_({value:$+n});else if(c){const j=c.find(V=>V.value>$);j&&_({value:j.value})}break;case"ArrowLeft":if(n)_({value:$-n});else if(c){const j=c.slice(0).reverse().find((V,q,ne)=>$===1/0?q===1:V.value<$);j&&_({value:j.value})}break;default:return}};return d.jsxs("div",{tabIndex:0,onKeyDown:T,role:"slider","aria-valuemin":f(!0),"aria-valuemax":l(!0),"aria-valuenow":$,"aria-valuetext":$.toString(),className:I.slider,onMouseDown:R,onClick:O,ref:b,onTouchStart:R,onDragStart:M=>M.preventDefault(),...p,children:[d.jsx("input",{type:"hidden",name:o,value:$}),d.jsx("div",{className:I.activeTrack,style:{flex:W/100}}),d.jsx("div",{className:I.handle,children:d.jsx(D.AnimatePresence,{children:E&&d.jsx(D.motion.div,{className:I.valueIndicator,initial:"hidden",animate:"visible",exit:"hidden",style:{translate:"-50%",transformOrigin:"center bottom",textWrap:"nowrap"},variants:{visible:{opacity:1,scale:1},hidden:{opacity:1,scale:0}},transition:{duration:.1},children:t?t($):$})})}),d.jsx("div",{className:I.inactiveTrack,style:{flex:1-W/100}}),d.jsx("div",{className:"w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",children:c&&c.map((M,j)=>{let V=null;const q=(E?9:10)/ee*100,ne=y(M.value);return ne<=W-q?V=!0:ne>=W+q&&(V=!1),d.jsx("div",{className:x(I.dot,{"bg-primary-container":V!=null&&V,"bg-primary":V!=null&&!V}),style:{left:`${y(M.value)}%`}},j)})})]})};/*!
|
|
2
2
|
* Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
|
|
3
3
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
4
4
|
* Copyright 2025 Fonticons, Inc.
|
|
5
|
-
*/var mt={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},ae={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},ht={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]};const pt=({variant:e="standard",className:t,children:n,title:o,position:r="right",extended:c,divider:d,onExtendedChange:a,closeIcon:f=ae,transition:l,...y})=>{l={duration:.3,...l};const[h,s]=i.useState(c??!0),m=Le({transition:l,title:o,position:r,closeIcon:f,className:t,children:n,onExtendedChange:a,divider:d,isExtended:h,extended:h,variant:e});i.useEffect(()=>{a==null||a(h??!1)},[h]),i.useEffect(()=>{c!=null&&s(c)},[c]);const x={close:{width:0},open:{width:"auto"}},v=()=>u.jsxs(u.Fragment,{children:[u.jsx(k.AnimatePresence,{children:e=="modal"&&h&&u.jsx(k.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:l,onClick:()=>s(!1),className:m.overlay})}),u.jsx(k.AnimatePresence,{children:h&&u.jsxs("div",{...y,className:m.slideSheet,style:{transition:l.duration+"s"},children:[u.jsxs(k.motion.div,{variants:x,initial:c===!1?"open":"close",animate:"open",exit:"close",className:m.container,children:[u.jsxs("div",{className:m.header,children:[o&&u.jsx("p",{className:m.title,children:o}),u.jsx(z,{size:"small",label:"close",icon:f,onClick:()=>s(!1),className:m.closeButton})]}),u.jsx("div",{className:m.content,style:{transition:l.duration+"s"},children:n})]}),(d==null&&e=="standard"?!0:d)&&u.jsx(qe,{className:m.divider,orientation:"vertical"})]})})]});return e=="modal"?fe.createPortal(v(),document.body):v()},yt=({message:e,className:t,duration:n,closeIcon:o=ae,onClose:r,...c})=>{const[d,a]=i.useState(!0),f=Ie({className:t,closeIcon:o,duration:n,isVisible:d,onClose:r,message:e});i.useEffect(()=>{n&&setTimeout(()=>{l()},n)},[n]);const l=()=>{a(!1),r==null||r()};return u.jsx(k.AnimatePresence,{children:d&&u.jsx(k.motion.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:.1},className:f.snackbar,...c,children:u.jsxs("div",{className:f.container,children:[u.jsx("p",{className:f.supportingText,children:e}),u.jsx(z,{onClick:()=>l(),className:f.icon,icon:o,label:"close the snackbar"})]})})})},xt=({selected:e=!1,className:t,activeIcon:n,disabled:o=!1,inactiveIcon:r,onChange:c,onClick:d,onKeyDown:a,ref:f,...l})=>{const[y,h]=i.useState(e),s=j=>{o||(x(),d&&d(j))},m=j=>{o||((j.key===" "||j.key==="Enter")&&(j.preventDefault(),x()),a&&a(j))},x=()=>{h(!y),c==null||c(!y)},v=Re({className:t,isSelected:y,activeIcon:n,inactiveIcon:r,disabled:o,selected:y,onChange:c}),w=i.useRef(null),L=f||w;return u.jsxs(k.motion.div,{role:"switch","aria-checked":y,tabIndex:o?-1:0,onKeyDown:m,onClick:s,ref:L,className:v.switch,...l,children:[u.jsx("input",{type:"hidden",value:y?"1":"0"}),u.jsxs(k.motion.div,{layout:!0,style:{translate:y?"50%":"-50%"},transition:{type:"spring",stiffness:700,damping:30},className:v.handleContainer,children:[u.jsx("div",{className:v.handle,children:(y?n:r)&&u.jsx(_,{className:v.icon,icon:y?n:r})}),u.jsx("div",{className:v.handleStateLayer})]})]})},Oe=({className:e,onClick:t,label:n,variant:o="primary",href:r,icon:c,selectedTab:d,setSelectedTab:a,tabsId:f,index:l,onTabSelected:y,scrollable:h=!1,selected:s=!1,ref:m,...x})=>{const v=i.useRef(null),w=m||v,[L,j]=i.useState(s);i.useEffect(()=>{s&&d==null?j(!0):j(d==l&&l!=null)},[d]),i.useEffect(()=>{d==l&&y&&y({ref:w,index:l||0,label:n,icon:c})},[d]);const M=r?"a":"button",E=$=>{a&&a(l??null),t&&t($)},N=ke({className:e,onTabSelected:y,scrollable:h,selectedTab:d,index:l,tabsId:f,selected:L,variant:o,icon:c,label:n,isSelected:L,setSelectedTab:a,href:r});return u.jsxs(M,{...x,role:"tab","aria-selected":L,ref:w,href:r,className:N.tab,onClick:E,...x,children:[u.jsx("span",{className:N.stateLayer,children:u.jsx(J,{colorName:o==="primary"&&L?"primary":"on-surface",triggerRef:w})}),u.jsxs("span",{className:N.content,children:[c&&u.jsx(_,{icon:c,className:N.icon}),u.jsx("span",{className:N.label,children:n}),L&&u.jsx(k.motion.span,{layoutId:`underline-${f}`,className:N.underline,transition:{duration:.3}})]})]})},gt=({variant:e="primary",onTabSelected:t,children:n,className:o,selectedTab:r,setSelectedTab:c,scrollable:d=!1})=>{const[a,f]=i.useState(null);let l;r==0||r!=null?l=r:l=a;const y=c||f,h=i.Children.toArray(n).filter(w=>i.isValidElement(w)&&w.type===Oe),s=i.useRef(null),m=w=>{if(t==null||t(w),d){const L=s.current,j=w.ref.current;if(L&&j){const M=j.offsetLeft+j.offsetWidth/2-L.offsetWidth/2;L.scrollTo({left:M,behavior:"smooth"})}}},x=i.useMemo(()=>oe(),[]),v=$e({children:n,onTabSelected:t,scrollable:d,selectedTab:l,setSelectedTab:y,className:o,variant:e});return u.jsx("div",{ref:s,role:"tablist",className:v.tabs,children:h.map((w,L)=>i.cloneElement(w,{key:L,index:L,variant:e,selectedTab:l,setSelectedTab:y,tabsId:x,onTabSelected:m,scrollable:d}))})},vt=({variant:e="filled",disabled:t=!1,errorText:n,placeholder:o,suffix:r,name:c,label:d,className:a,supportingText:f,trailingIcon:l,leadingIcon:y,type:h="text",textLine:s="singleLine",autoComplete:m="on",onChange:x,value:v,showSupportingText:w=!1,...L})=>{const[j,M]=i.useState(v??""),[E,N]=i.useState(!1),[$,D]=i.useState(!1),[P,I]=i.useState(w);i.useEffect(()=>{M(v??"")},[v]),i.useEffect(()=>{n!=null&&n.length?D(!0):D(!1)},[n]),i.useEffect(()=>{w?I(w):f!=null&&f.length?I(!0):I(!1)},[P,f]),i.useEffect(()=>{E&&D(!1)},[E]);const g=i.useRef(null),C=()=>{g.current&&!E&&g.current.focus()},q=()=>{N(!0)},H=B=>{const A=B.target.value;M(A),D(!1),typeof x=="function"&&x(A)},X=()=>{N(!1)},O=Ce({showSupportingText:P,isFocused:E,showErrorIcon:$,disabled:t,name:c,label:d,autoComplete:m,className:a,onChange:x,placeholder:o,supportingText:f,type:h,leadingIcon:y,trailingIcon:l,variant:e,errorText:n,value:j,suffix:r,textLine:s}),[K]=i.useState(oe());let S,b;switch(s){case"multiLine":b=Ke,S={};break;case"textAreas":b="textarea",S={};break;case"singleLine":default:b="input",S={type:h};break}return u.jsxs("div",{className:O.textField,...L,children:[u.jsxs("fieldset",{onClick:C,className:O.content,children:[u.jsx("div",{className:O.stateLayer}),y&&u.jsx("div",{className:O.leadingIcon,children:i.isValidElement(y)?y:u.jsx(_,{className:"w-5 h-5",icon:y})}),!(!E&&!j.length||e=="filled")&&u.jsx(k.motion.legend,{variants:{hidden:{width:0,padding:0},visible:{width:"auto",padding:"0 8px"}},initial:"hidden",animate:!E&&!j.length?"hidden":"visible",className:"max-w-full ml-2 px-2 text-body-small h-0",transition:{duration:.2},children:u.jsx("span",{className:"transform inline-flex -translate-y-1/2",children:u.jsx(k.motion.span,{className:O.label,transition:{duration:.3},layoutId:K,children:d})})}),u.jsxs("div",{className:"flex-1 relative",children:[(!E&&!j.length||e=="filled")&&u.jsx(k.motion.label,{htmlFor:c,className:p("absolute left-4 transition-all duration-300",{"text-body-small top-2":e=="filled"&&!(!E&&!j.length),"text-body-large top-1/2 transform -translate-y-1/2":!(e=="filled"&&!(!E&&!j.length))}),transition:{duration:.3},children:u.jsx(k.motion.span,{className:O.label,transition:{duration:.3},layoutId:e=="outlined"?K:void 0,children:d})}),u.jsx(b,{ref:g,value:j,onChange:H,className:O.input,id:c,name:c,placeholder:E?o??void 0:"",onFocus:q,onBlur:X,disabled:t,autoComplete:m,"aria-invalid":!!(n!=null&&n.length),"aria-label":d,...S})]}),u.jsx("div",{className:O.activeIndicator}),!$&&u.jsxs(u.Fragment,{children:[l&&u.jsx("div",{onClick:B=>{B.stopPropagation()},className:O.trailingIcon,children:i.isValidElement(l)?l:u.jsx(_,{className:"h-5",icon:l})}),!l&&r&&u.jsx("span",{className:O.suffix,children:r})]}),$&&u.jsx("div",{className:p(O.trailingIcon,{" absolute right-0":!l}),children:u.jsx(_,{className:"h-5 text-error",icon:mt})})]}),P&&u.jsx("p",{className:O.supportingText,children:n!=null&&n.length?n:f!=null&&f.length?f:" "})]})},wt=F("navigationRailItem",({isSelected:e,icon:t,label:n,variant:o})=>({navigationRailItem:p(" group flex flex-col pt-1 pb-1.5 cursor-pointer",{"text-on-surface-variant":!e,"text-on-secondary-container":e,"gap-2 h-[68px]":o=="vertical","gap-0 h-[66px]":o=="horizontal"}),container:p(" w-fit flex justify-center relative rounded-full items-center mx-5",{"bg-secondary-container overflow-hidden":e,"gap-2 ":o=="horizontal","gap-0 ":o=="vertical","p-4":!n},n&&["px-4",{"py-1 ":o=="vertical","py-4 ":o=="horizontal"}]),stateLayer:p(" absolute w-full rounded-full h-full left-0 top-0 ",{"group-state-on-surface":!e,"group-state-on-secondary-container":e}),icon:p("size-6 flex"),label:p("w-fit mx-auto text-nowrap",{"text-label-large ":o=="horizontal","text-label-medium":o=="vertical"})})),He=({label:e})=>u.jsx("div",{className:" h-9 flex items-center mx-9 mt-3",children:u.jsx("p",{className:"text-label-large text-on-surface-variant",children:e})}),Ue=({className:e,onClick:t,label:n,variant:o="vertical",href:r,icon:c,selectedItem:d,setSelectedItem:a,index:f,onItemSelected:l,selected:y=!1,ref:h,transition:s,isExtended:m,iconSelected:x,style:v,extendedOnly:w,children:L,...j})=>{L&&(n=L);const M=i.useRef(null),E=h||M,[N,$]=i.useState(y);i.useEffect(()=>{y&&d==null?$(!0):$(d==f&&f!=null)},[d]),i.useEffect(()=>{d==f&&l&&l({ref:E,index:f||0,label:n,icon:c})},[d]);const D=r?"a":"button",P=g=>{a&&a(f??null),t&&t(g)},I=wt({isExtended:m,extendedOnly:w,className:e,onItemSelected:l,selectedItem:d,index:f,transition:s,selected:N,variant:o,icon:c,label:n,isSelected:N,setSelectedItem:a,href:r,children:n,iconSelected:x});return s={duration:.3,...s},w&&!m?null:u.jsxs(D,{...j,role:"tab","aria-selected":N,ref:E,href:r,className:I.navigationRailItem,onClick:P,style:{transition:s.duration+"s",...v},children:[u.jsxs(k.motion.div,{style:{transition:o=="horizontal"?s.duration+`s, gap ${s.duration/2}s ${s.duration-s.duration/2}s`:s.duration+`s, gap ${s.duration/3}s ${s.duration-s.duration/3}s`},transition:s,className:I.container,children:[u.jsx(k.motion.div,{layout:!0,className:I.stateLayer}),c&&u.jsx(_,{icon:N?x:c,className:I.icon}),u.jsx(k.AnimatePresence,{children:o=="horizontal"&&(()=>{const g={width:0,opacity:0,transition:{...s}},C={width:"auto",opacity:1,transition:{...s,opacity:{duration:s.duration/2,delay:s.duration-s.duration/2}}};return u.jsx(k.motion.span,{initial:g,animate:C,exit:g,className:I.label,children:n})})()})]}),u.jsx(k.AnimatePresence,{children:o=="vertical"&&(()=>{const g={height:0,opacity:0,transition:{...s,opacity:{duration:0}}},C={height:"auto",opacity:1,transition:{...s,opacity:{duration:s.duration/3,delay:s.duration-s.duration/3}}};return u.jsx(k.motion.span,{initial:C,animate:C,exit:g,className:I.label,transition:s,children:n})})()})]})},bt=F("navigationRail",({isExtended:e,alignment:t})=>({navigationRail:p("flex flex-col left-0 h-full top-0 pt-11",{"w-fit max-w-24":!e,"w-fit min-w-[220px] max-w-[360px]":e,"justify-between":t=="middle","justify-start":t=="top"}),header:p("flex flex-col gap-1 items-start"),menuIcon:"mx-5",segments:p(" flex flex-col overflow-auto min-w-full mt-10",{"w-full":!e,"w-fit items-start":e})})),St=({variant:e="standard",onItemSelected:t,children:n,className:o,selectedItem:r,extended:c,alignment:d="top",menu:a={closed:{icon:ht,label:"Open menu"},opened:{icon:ae,label:"Close menu"}},style:f,onExtendedChange:l,transition:y,setSelectedItem:h})=>{const[s,m]=i.useState(null),[x,v]=i.useState(c);let w;r==0||r!=null?w=r:w=s;const L=h||m,j=i.useRef(null),M=I=>{t==null||t(I)};function E(I){const g=[];return i.Children.forEach(I,C=>{i.isValidElement(C)&&C.type===i.Fragment?g.push(...E(C.props.children)):g.push(C)}),g}const N=E(n),$=N.filter(I=>i.isValidElement(I)&&I.type===ne),D=bt({children:n,onItemSelected:t,selectedItem:w,setSelectedItem:L,className:o,variant:e,extended:x,isExtended:x,alignment:d,menu:a,transition:y,onExtendedChange:l});y={duration:.3,...y};const P=i.useRef(!1);return P.current=!1,i.useEffect(()=>{l==null||l(x??!1)},[x]),u.jsxs("div",{style:{transition:y.duration+"s",...f},ref:j,className:D.navigationRail,children:[u.jsxs("div",{className:D.header,children:[u.jsx(z,{onClick:()=>v(!x),label:x?a==null?void 0:a.opened.label:a==null?void 0:a.closed.label,className:D.menuIcon,icon:x?a.opened.icon:a==null?void 0:a.closed.icon}),$.length>0&&i.cloneElement($[0],{transition:y,isExtended:x,className:"!shadow-none mx-5 "+$[0].props.className})]}),u.jsx("div",{className:D.segments,children:(()=>{let I=0;return N.map(g=>i.isValidElement(g)&&g.type===Ue?i.cloneElement(g,{key:I,index:I++,variant:x?"horizontal":"vertical",selectedItem:w,setSelectedItem:L,onItemSelected:M,transition:y,extendedOnly:P.current,isExtended:x}):i.isValidElement(g)&&g.type===ne?null:i.isValidElement(g)&&g.type===He?(P.current=!0,x?i.cloneElement(g,{}):null):g)})()}),u.jsx("div",{className:"flex-1 max-h-[160px]"})]})};function jt(e){return Q.defineConfig({variant:Q.Variants.Udixio,...e,plugins:[new Q.FontPlugin(e),new me.TailwindPlugin(e)]})}exports.AnimateOnScrollInit=st;exports.Button=We;exports.Card=lt;exports.Carousel=at;exports.CarouselItem=Fe;exports.CustomScroll=De;exports.Divider=qe;exports.Fab=ne;exports.Icon=_;exports.IconButton=z;exports.NavigationRail=St;exports.NavigationRailItem=Ue;exports.NavigationRailSection=He;exports.ProgressIndicator=Pe;exports.RippleEffect=J;exports.SideSheet=pt;exports.Slider=ft;exports.SmoothScroll=Ze;exports.Snackbar=yt;exports.Switch=xt;exports.SyncedFixedWrapper=Ae;exports.Tab=Oe;exports.Tabs=gt;exports.TextField=vt;exports.ThemeProvider=ze;exports.ToolTip=le;exports.animateOnScroll=ot;exports.buttonStyle=xe;exports.cardStyle=ge;exports.carouselItemStyle=ve;exports.carouselStyle=we;exports.classNames=p;exports.classnames=pe;exports.customScrollStyle=Be;exports.defaultClassNames=F;exports.defineConfig=jt;exports.dividerStyle=be;exports.fabStyle=Se;exports.getClassNames=ye;exports.iconButtonStyle=je;exports.initAnimateOnScroll=se;exports.normalize=Ve;exports.progressIndicatorStyle=Ee;exports.sideSheetStyle=Le;exports.sliderStyle=Ne;exports.snackbarStyle=Ie;exports.switchStyle=Re;exports.tabStyle=ke;exports.tabsStyle=$e;exports.textFieldStyle=Ce;exports.toolStyle=Me;
|
|
5
|
+
*/var Ct={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},Ne={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},Pt={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]};const Dt=({variant:e="standard",className:t,children:n,title:o,position:r="right",extended:u,divider:i,onExtendedChange:c,closeIcon:m=Ne,transition:s,...p})=>{s={duration:.3,...s};const[y,l]=a.useState(u??!0),f=Ye({transition:s,title:o,position:r,closeIcon:m,className:t,children:n,onExtendedChange:c,divider:i,isExtended:y,extended:y,variant:e});a.useEffect(()=>{c==null||c(y??!1)},[y]),a.useEffect(()=>{u!=null&&l(u)},[u]);const h={close:{width:0},open:{width:"auto"}},E=()=>d.jsxs(d.Fragment,{children:[d.jsx(D.AnimatePresence,{children:e=="modal"&&y&&d.jsx(D.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:s,onClick:()=>l(!1),className:f.overlay})}),d.jsx(D.AnimatePresence,{children:y&&d.jsxs("div",{...p,className:f.slideSheet,style:{transition:s.duration+"s"},children:[d.jsxs(D.motion.div,{variants:h,initial:u===!1?"open":"close",animate:"open",exit:"close",className:f.container,children:[d.jsxs("div",{className:f.header,children:[o&&d.jsx("p",{className:f.title,children:o}),d.jsx(pe,{size:"small",label:"close",icon:m,onClick:()=>l(!1),className:f.closeButton})]}),d.jsx("div",{className:f.content,style:{transition:s.duration+"s"},children:n})]}),(i==null&&e=="standard"?!0:i)&&d.jsx(ot,{className:f.divider,orientation:"vertical"})]})})]});return e=="modal"?Ce.createPortal(E(),document.body):E()},Wt=({message:e,className:t,duration:n,closeIcon:o=Ne,onClose:r,...u})=>{const[i,c]=a.useState(!0),m=Ke({className:t,closeIcon:o,duration:n,isVisible:i,onClose:r,message:e});a.useEffect(()=>{n&&setTimeout(()=>{s()},n)},[n]);const s=()=>{c(!1),r==null||r()};return d.jsx(D.AnimatePresence,{children:i&&d.jsx(D.motion.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:.1},className:m.snackbar,...u,children:d.jsxs("div",{className:m.container,children:[d.jsx("p",{className:m.supportingText,children:e}),d.jsx(pe,{onClick:()=>s(),className:m.icon,icon:o,label:"close the snackbar"})]})})})},At=({selected:e=!1,className:t,activeIcon:n,disabled:o=!1,inactiveIcon:r,onChange:u,onClick:i,onKeyDown:c,ref:m,...s})=>{const[p,y]=a.useState(e),l=b=>{o||(h(),i&&i(b))},f=b=>{o||((b.key===" "||b.key==="Enter")&&(b.preventDefault(),h()),c&&c(b))},h=()=>{y(!p),u==null||u(!p)},E=Ge({className:t,isSelected:p,activeIcon:n,inactiveIcon:r,disabled:o,selected:p,onChange:u}),g=a.useRef(null),k=m||g;return d.jsxs(D.motion.div,{role:"switch","aria-checked":p,tabIndex:o?-1:0,onKeyDown:f,onClick:l,ref:k,className:E.switch,...s,children:[d.jsx("input",{type:"hidden",value:p?"1":"0"}),d.jsxs(D.motion.div,{layout:!0,style:{translate:p?"50%":"-50%"},transition:{type:"spring",stiffness:700,damping:30},className:E.handleContainer,children:[d.jsx("div",{className:E.handle,children:(p?n:r)&&d.jsx(se,{className:E.icon,icon:p?n:r})}),d.jsx("div",{className:E.handleStateLayer})]})]})},lt=({className:e,onClick:t,label:n,variant:o="primary",href:r,icon:u,selectedTab:i,setSelectedTab:c,tabsId:m,index:s,onTabSelected:p,scrollable:y=!1,selected:l=!1,ref:f,...h})=>{const E=a.useRef(null),g=f||E,[k,b]=a.useState(l);a.useEffect(()=>{l&&i==null?b(!0):b(i==s&&s!=null)},[i]),a.useEffect(()=>{i==s&&p&&p({ref:g,index:s||0,label:n,icon:u})},[i]);const $=r?"a":"button",L=S=>{c&&c(s??null),t&&t(S)},W=Je({className:e,onTabSelected:p,scrollable:y,selectedTab:i,index:s,tabsId:m,selected:k,variant:o,icon:u,label:n,isSelected:k,setSelectedTab:c,href:r});return d.jsxs($,{...h,role:"tab","aria-selected":k,ref:g,href:r,className:W.tab,onClick:L,...h,children:[d.jsx("span",{className:W.stateLayer,children:d.jsx(ue,{colorName:o==="primary"&&k?"primary":"on-surface",triggerRef:g})}),d.jsxs("span",{className:W.content,children:[u&&d.jsx(se,{icon:u,className:W.icon}),d.jsx("span",{className:W.label,children:n}),k&&d.jsx(D.motion.span,{layoutId:`underline-${m}`,className:W.underline,transition:{duration:.3}})]})]})},Bt=({variant:e="primary",onTabSelected:t,children:n,className:o,selectedTab:r,setSelectedTab:u,scrollable:i=!1})=>{const[c,m]=a.useState(null);let s;r==0||r!=null?s=r:s=c;const p=u||m,y=a.Children.toArray(n).filter(g=>a.isValidElement(g)&&g.type===lt),l=a.useRef(null),f=g=>{if(t==null||t(g),i){const k=l.current,b=g.ref.current;if(k&&b){const $=b.offsetLeft+b.offsetWidth/2-k.offsetWidth/2;k.scrollTo({left:$,behavior:"smooth"})}}},h=a.useMemo(()=>Le(),[]),E=Ze({children:n,onTabSelected:t,scrollable:i,selectedTab:s,setSelectedTab:p,className:o,variant:e});return d.jsx("div",{ref:l,role:"tablist",className:E.tabs,children:y.map((g,k)=>a.cloneElement(g,{key:k,index:k,variant:e,selectedTab:s,setSelectedTab:p,tabsId:h,onTabSelected:f,scrollable:i}))})},Ft=({variant:e="filled",disabled:t=!1,errorText:n,placeholder:o,suffix:r,name:u,label:i,className:c,supportingText:m,trailingIcon:s,leadingIcon:p,type:y="text",textLine:l="singleLine",autoComplete:f="on",onChange:h,value:E,showSupportingText:g=!1,...k})=>{const[b,$]=a.useState(E??""),[L,W]=a.useState(!1),[S,H]=a.useState(!1),[F,R]=a.useState(g);a.useEffect(()=>{$(E??"")},[E]),a.useEffect(()=>{n!=null&&n.length?H(!0):H(!1)},[n]),a.useEffect(()=>{g?R(g):m!=null&&m.length?R(!0):R(!1)},[F,m]),a.useEffect(()=>{L&&H(!1)},[L]);const v=a.useRef(null),I=()=>{v.current&&!L&&v.current.focus()},O=()=>{W(!0)},_=V=>{const q=V.target.value;$(q),H(!1),typeof h=="function"&&h(q)},ee=()=>{W(!1)},U=Qe({showSupportingText:F,isFocused:L,showErrorIcon:S,disabled:t,name:u,label:i,autoComplete:f,className:c,onChange:h,placeholder:o,supportingText:m,type:y,leadingIcon:p,trailingIcon:s,variant:e,errorText:n,value:b,suffix:r,textLine:l}),[T]=a.useState(Le());let M,j;switch(l){case"multiLine":j=dt,M={};break;case"textAreas":j="textarea",M={};break;case"singleLine":default:j="input",M={type:y};break}return d.jsxs("div",{className:U.textField,...k,children:[d.jsxs("fieldset",{onClick:I,className:U.content,children:[d.jsx("div",{className:U.stateLayer}),p&&d.jsx("div",{className:U.leadingIcon,children:a.isValidElement(p)?p:d.jsx(se,{className:"w-5 h-5",icon:p})}),!(!L&&!b.length||e=="filled")&&d.jsx(D.motion.legend,{variants:{hidden:{width:0,padding:0},visible:{width:"auto",padding:"0 8px"}},initial:"hidden",animate:!L&&!b.length?"hidden":"visible",className:"max-w-full ml-2 px-2 text-body-small h-0",transition:{duration:.2},children:d.jsx("span",{className:"transform inline-flex -translate-y-1/2",children:d.jsx(D.motion.span,{className:U.label,transition:{duration:.3},layoutId:T,children:i})})}),d.jsxs("div",{className:"flex-1 relative",children:[(!L&&!b.length||e=="filled")&&d.jsx(D.motion.label,{htmlFor:u,className:x("absolute left-4 transition-all duration-300",{"text-body-small top-2":e=="filled"&&!(!L&&!b.length),"text-body-large top-1/2 transform -translate-y-1/2":!(e=="filled"&&!(!L&&!b.length))}),transition:{duration:.3},children:d.jsx(D.motion.span,{className:U.label,transition:{duration:.3},layoutId:e=="outlined"?T:void 0,children:i})}),d.jsx(j,{ref:v,value:b,onChange:_,className:U.input,id:u,name:u,placeholder:L?o??void 0:"",onFocus:O,onBlur:ee,disabled:t,autoComplete:f,"aria-invalid":!!(n!=null&&n.length),"aria-label":i,...M})]}),d.jsx("div",{className:U.activeIndicator}),!S&&d.jsxs(d.Fragment,{children:[s&&d.jsx("div",{onClick:V=>{V.stopPropagation()},className:U.trailingIcon,children:a.isValidElement(s)?s:d.jsx(se,{className:"h-5",icon:s})}),!s&&r&&d.jsx("span",{className:U.suffix,children:r})]}),S&&d.jsx("div",{className:x(U.trailingIcon,{" absolute right-0":!s}),children:d.jsx(se,{className:"h-5 text-error",icon:Ct})})]}),F&&d.jsx("p",{className:U.supportingText,children:n!=null&&n.length?n:m!=null&&m.length?m:" "})]})},Vt=Y("navigationRailItem",({isSelected:e,icon:t,label:n,variant:o})=>({navigationRailItem:x(" group flex flex-col pt-1 pb-1.5 cursor-pointer",{"text-on-surface-variant":!e,"text-on-secondary-container":e,"gap-2 h-[68px]":o=="vertical","gap-0 h-[66px]":o=="horizontal"}),container:x(" w-fit flex justify-center relative rounded-full items-center mx-5",{"bg-secondary-container overflow-hidden":e,"gap-2 ":o=="horizontal","gap-0 ":o=="vertical","p-4":!n},n&&["px-4",{"py-1 ":o=="vertical","py-4 ":o=="horizontal"}]),stateLayer:x(" absolute w-full rounded-full h-full left-0 top-0 ",{"group-state-on-surface":!e,"group-state-on-secondary-container":e}),icon:x("size-6 flex"),label:x("w-fit mx-auto text-nowrap",{"text-label-large ":o=="horizontal","text-label-medium":o=="vertical"})})),at=({label:e})=>d.jsx("div",{className:" h-9 flex items-center mx-9 mt-3",children:d.jsx("p",{className:"text-label-large text-on-surface-variant",children:e})}),ct=({className:e,onClick:t,label:n,variant:o="vertical",href:r,icon:u,selectedItem:i,setSelectedItem:c,index:m,onItemSelected:s,selected:p=!1,ref:y,transition:l,isExtended:f,iconSelected:h,style:E,extendedOnly:g,children:k,...b})=>{k&&(n=k);const $=a.useRef(null),L=y||$,[W,S]=a.useState(p);a.useEffect(()=>{p&&i==null?S(!0):S(i==m&&m!=null)},[i]),a.useEffect(()=>{i==m&&s&&s({ref:L,index:m||0,label:n,icon:u})},[i]);const H=r?"a":"button",F=v=>{c&&c(m??null),t&&t(v)},R=Vt({isExtended:f,extendedOnly:g,className:e,onItemSelected:s,selectedItem:i,index:m,transition:l,selected:W,variant:o,icon:u,label:n,isSelected:W,setSelectedItem:c,href:r,children:n,iconSelected:h});return l={duration:.3,...l},g&&!f?null:d.jsxs(H,{...b,role:"tab","aria-selected":W,ref:L,href:r,className:R.navigationRailItem,onClick:F,style:{transition:l.duration+"s",...E},children:[d.jsxs(D.motion.div,{style:{transition:o=="horizontal"?l.duration+`s, gap ${l.duration/2}s ${l.duration-l.duration/2}s`:l.duration+`s, gap ${l.duration/3}s ${l.duration-l.duration/3}s`},transition:l,className:R.container,children:[d.jsx(D.motion.div,{layout:!0,className:R.stateLayer}),u&&d.jsx(se,{icon:W?h:u,className:R.icon}),d.jsx(D.AnimatePresence,{children:o=="horizontal"&&(()=>{const v={width:0,opacity:0,transition:{...l}},I={width:"auto",opacity:1,transition:{...l,opacity:{duration:l.duration/2,delay:l.duration-l.duration/2}}};return d.jsx(D.motion.span,{initial:v,animate:I,exit:v,className:R.label,children:n})})()})]}),d.jsx(D.AnimatePresence,{children:o=="vertical"&&(()=>{const v={height:0,opacity:0,transition:{...l,opacity:{duration:0}}},I={height:"auto",opacity:1,transition:{...l,opacity:{duration:l.duration/3,delay:l.duration-l.duration/3}}};return d.jsx(D.motion.span,{initial:I,animate:I,exit:v,className:R.label,transition:l,children:n})})()})]})},Ht=Y("navigationRail",({isExtended:e,alignment:t})=>({navigationRail:x("flex flex-col left-0 h-full top-0 pt-11",{"w-fit max-w-24":!e,"w-fit min-w-[220px] max-w-[360px]":e,"justify-between":t=="middle","justify-start":t=="top"}),header:x("flex flex-col gap-1 items-start"),menuIcon:"mx-5",segments:x(" flex flex-col overflow-auto min-w-full mt-10",{"w-full":!e,"w-fit items-start":e})})),Ot=({variant:e="standard",onItemSelected:t,children:n,className:o,selectedItem:r,extended:u,alignment:i="top",menu:c={closed:{icon:Pt,label:"Open menu"},opened:{icon:Ne,label:"Close menu"}},style:m,onExtendedChange:s,transition:p,setSelectedItem:y})=>{const[l,f]=a.useState(null),[h,E]=a.useState(u);let g;r==0||r!=null?g=r:g=l;const k=y||f,b=a.useRef(null),$=R=>{t==null||t(R)};function L(R){const v=[];return a.Children.forEach(R,I=>{a.isValidElement(I)&&I.type===a.Fragment?v.push(...L(I.props.children)):v.push(I)}),v}const W=L(n),S=W.filter(R=>a.isValidElement(R)&&R.type===be),H=Ht({children:n,onItemSelected:t,selectedItem:g,setSelectedItem:k,className:o,variant:e,extended:h,isExtended:h,alignment:i,menu:c,transition:p,onExtendedChange:s});p={duration:.3,...p};const F=a.useRef(!1);return F.current=!1,a.useEffect(()=>{s==null||s(h??!1)},[h]),d.jsxs("div",{style:{transition:p.duration+"s",...m},ref:b,className:H.navigationRail,children:[d.jsxs("div",{className:H.header,children:[d.jsx(pe,{onClick:()=>E(!h),label:h?c==null?void 0:c.opened.label:c==null?void 0:c.closed.label,className:H.menuIcon,icon:h?c.opened.icon:c==null?void 0:c.closed.icon}),S.length>0&&a.cloneElement(S[0],{transition:p,isExtended:h,className:"!shadow-none mx-5 "+S[0].props.className})]}),d.jsx("div",{className:H.segments,children:(()=>{let R=0;return W.map(v=>a.isValidElement(v)&&v.type===ct?a.cloneElement(v,{key:R,index:R++,variant:h?"horizontal":"vertical",selectedItem:g,setSelectedItem:k,onItemSelected:$,transition:p,extendedOnly:F.current,isExtended:h}):a.isValidElement(v)&&v.type===be?null:a.isValidElement(v)&&v.type===at?(F.current=!0,h?a.cloneElement(v,{}):null):v)})()}),d.jsx("div",{className:"flex-1 max-h-[160px]"})]})};function qt(e){return he.defineConfig({variant:he.Variants.Udixio,...e,plugins:[new he.FontPlugin(e),new Pe.TailwindPlugin(e)]})}exports.AnimateOnScrollInit=St;exports.Button=rt;exports.Card=jt;exports.Carousel=Nt;exports.CarouselItem=st;exports.CustomScroll=tt;exports.Divider=ot;exports.Fab=be;exports.Icon=se;exports.IconButton=pe;exports.NavigationRail=Ot;exports.NavigationRailItem=ct;exports.NavigationRailSection=at;exports.ProgressIndicator=ze;exports.RippleEffect=ue;exports.SideSheet=Dt;exports.Slider=$t;exports.SmoothScroll=pt;exports.Snackbar=Wt;exports.Switch=At;exports.SyncedFixedWrapper=nt;exports.Tab=lt;exports.Tabs=Bt;exports.TextField=Ft;exports.ThemeProvider=yt;exports.ToolTip=je;exports.animateOnScroll=Lt;exports.buttonStyle=Be;exports.cardStyle=Fe;exports.carouselItemStyle=Ve;exports.carouselStyle=He;exports.classNames=x;exports.classnames=We;exports.customScrollStyle=et;exports.defaultClassNames=Y;exports.defineConfig=qt;exports.dividerStyle=Oe;exports.fabStyle=qe;exports.getClassNames=Ae;exports.iconButtonStyle=Xe;exports.initAnimateOnScroll=Se;exports.normalize=le;exports.progressIndicatorStyle=Ue;exports.sideSheetStyle=Ye;exports.sliderStyle=_e;exports.snackbarStyle=Ke;exports.switchStyle=Ge;exports.tabStyle=Je;exports.tabsStyle=Ze;exports.textFieldStyle=Qe;exports.toolStyle=Te;
|