sodtrack-web-ui 0.80.1 → 0.81.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/dist/{chunk-7DZXTSLA.mjs → chunk-ERR4CIFD.mjs} +1 -1
- package/dist/{chunk-D4T5LV6D.mjs → chunk-FERU7XG4.mjs} +1 -1
- package/dist/chunk-GYI5CLJW.mjs +1 -0
- package/dist/{chunk-DLRA36N6.mjs → chunk-MNT76J6I.mjs} +1 -1
- package/dist/{chunk-BNWDSGUY.mjs → chunk-Y5LJTWVX.mjs} +1 -1
- package/dist/components/accordion-form.mjs +1 -1
- package/dist/components/accordion.mjs +1 -1
- package/dist/components/card-expandable.d.mts +10 -6
- package/dist/components/card-expandable.d.ts +10 -6
- package/dist/components/card-expandable.js +3 -2
- package/dist/components/card-expandable.mjs +1 -1
- package/dist/components/chip-form-complementary.d.mts +3 -3
- package/dist/components/chip-form-complementary.d.ts +3 -3
- package/dist/components/chip-form.d.mts +6 -6
- package/dist/components/chip-form.d.ts +6 -6
- package/dist/components/chip-status-complementary.d.mts +1 -1
- package/dist/components/chip-status-complementary.d.ts +1 -1
- package/dist/components/chip-status-table.d.mts +1 -1
- package/dist/components/chip-status-table.d.ts +1 -1
- package/dist/components/data-table.mjs +1 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/components/list-item-arrow.mjs +1 -1
- package/dist/components/list-item-button.mjs +1 -1
- package/dist/components/list-item-checkbox-left.mjs +1 -1
- package/dist/components/list-item-checkbox.mjs +1 -1
- package/dist/components/list-item.mjs +1 -1
- package/dist/components/tab.d.mts +2 -2
- package/dist/components/tab.d.ts +2 -2
- package/dist/components/tab.mjs +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +8 -8
- package/dist/chunk-GEW7GXTH.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-FAMLJ6AJ.mjs';import {
|
|
1
|
+
import {d}from'./chunk-FAMLJ6AJ.mjs';import {g}from'./chunk-4HYLZVI5.mjs';import {a as a$1}from'./chunk-SXEHG5TZ.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import*as c from'react';import*as e from'@radix-ui/react-accordion';export{e as a };import {jsx,jsxs}from'react/jsx-runtime';var S=["sm","md"],k=c.forwardRef(({className:i,children:r,size:o="md",hasBorder:a$1=false,...s},m)=>jsx(e.Root,{"data-border":a$1,"data-size":o,className:a("group/root space-y-2",i),...s,ref:m,children:r})),y=c.forwardRef(({className:i,...r},o)=>jsx(e.Item,{ref:o,className:a("rounded-lg bg-neutral-50","group-data-[border=true]/root:ring-1 group-data-[border=true]/root:ring-neutral-200 group-data-[border=true]/root:ring-inset",i),...r}));y.displayName="AccordionItem";var P=c.forwardRef(({className:i,children:r,...o},a$1)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{ref:a$1,className:a("group flex flex-1 items-center justify-between p-4 transition-all [&[data-state=open]>svg]:rotate-180",i),...o,children:[r,jsx(g,{className:"h-6 w-6 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]})}));P.displayName=e.Trigger.displayName;var x=c.forwardRef(({className:i,title:r,description:o,onEndButtonClick:a$2,StartIcon:s,EndIcon:m,children:N,badgeNumber:g$1,chipStatus:p,...v},A)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{title:r,ref:A,className:a("group hover:not-disabled:bg-primary-100 flex flex-1 items-center justify-between gap-3 rounded-lg p-2 pl-3 transition-all [&[data-state=open]>div>.chevron-icon]:rotate-180",a(!o&&"min-h-12",o&&"group-data-[size=md]/root:min-h-15.75 group-data-[size=sm]/root:min-h-12"),i),...v,children:[jsxs("div",{className:"flex",children:[s&&jsx(s,{className:"mr-2 h-4.5 w-4.5 text-neutral-900 group-disabled:text-neutral-500 group-data-[size=md]/root:h-4.5 group-data-[size=md]/root:w-4.5 group-data-[size=sm]:h-3.5 group-data-[size=sm]/root:w-3.5"}),jsxs("div",{children:[jsx("p",{className:"text-left text-base leading-[125%]! font-semibold text-neutral-900 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-sm",children:r}),jsx("p",{className:"text-left text-sm leading-[130%] font-normal tracking-[0.28px] text-neutral-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-xs",children:o})]})]}),jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[p&&jsx(d,{variant:p.variant,type:p.type,size:"xs",className:"shrink-0",children:p.text}),g$1?.toString()&&jsx(a$1,{variant:"alert",size:"md",content:g$1.toString()}),m&&jsx(m,{className:"m-1.75 text-neutral-900 group-disabled:text-neutral-500",size:18,onClick:R=>{R.stopPropagation(),a$2?.();}}),jsx(g,{className:"chevron-icon h-4.5 w-4.5 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]})]})}));x.displayName=e.Trigger.displayName;var h=c.forwardRef(({className:i,children:r,...o},a$1)=>jsx(e.Content,{ref:a$1,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden",...o,children:jsx("div",{className:a("pr-2 pl-3 group-data-[size=md]/root:py-4 group-data-[size=sm]/root:py-2",i),children:r})}));h.displayName=e.Content.displayName;export{S as b,k as c,y as d,P as e,x as f,h as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-FAMLJ6AJ.mjs';import {
|
|
1
|
+
import {d}from'./chunk-FAMLJ6AJ.mjs';import {g}from'./chunk-4HYLZVI5.mjs';import {a as a$1}from'./chunk-SXEHG5TZ.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import*as n from'react';import*as e from'@radix-ui/react-accordion';import {jsx,jsxs}from'react/jsx-runtime';var b=["sm","md"],w=n.forwardRef(({className:i,children:o,size:r="md",...a$1},d)=>jsx(e.Root,{"data-size":r,className:a("group/root space-y-2",i),...a$1,ref:d,children:o})),y=n.forwardRef(({className:i,...o},r)=>jsx(e.Item,{ref:r,className:i,...o}));y.displayName="AccordionFormItem";var R=n.forwardRef(({className:i,title:o,onEndButtonClick:r,StartIcon:a$2,children:d$1,badgeNumber:p,chipStatus:c,...g$1},u)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{title:o,ref:u,className:a("group flex h-8 items-center gap-4 [&[data-state=open]>div>.chevron-icon]:rotate-180",i),...g$1,children:[jsxs("div",{className:"group flex items-center",children:[a$2&&jsx(a$2,{className:"mr-2 h-4.5 w-4.5 shrink-0 text-primary-500 transition-colors group-enabled:group-hover:text-primary-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:h-3.5 group-data-[size=sm]/root:w-3.5"}),jsx("div",{children:jsx("p",{className:"line-clamp-1 text-left text-base font-semibold leading-[130%]! text-primary-500 transition-colors group-enabled:group-hover:text-primary-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-sm",children:o})})]}),jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[c&&jsx(d,{variant:c.variant,type:c.type,size:"xs",className:"shrink-0",children:c.text}),p?.toString()&&jsx(a$1,{variant:"alert",size:"md",content:p.toString()}),jsx(g,{className:"chevron-icon h-4.5 w-4.5 shrink-0 text-primary-500 transition-transform group-enabled:group-hover:text-primary-700 group-disabled:text-neutral-500"})]})]})}));R.displayName=e.Trigger.displayName;var A=n.forwardRef(({className:i,children:o,...r},a)=>jsx(e.Content,{ref:a,className:"overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:jsx("div",{className:i,children:o})}));A.displayName=e.Content.displayName;export{b as a,w as b,y as c,R as d,A as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {c as c$2}from'./chunk-AI4D6AOK.mjs';import {c as c$1}from'./chunk-GBBE3RHT.mjs';import {c}from'./chunk-WRCFKTIJ.mjs';import {d as d$1}from'./chunk-FAMLJ6AJ.mjs';import {c as c$3}from'./chunk-KKWH3QUT.mjs';import {a as a$1}from'./chunk-EJBCWOLG.mjs';import {e,s,t}from'./chunk-4HYLZVI5.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import {createElement,useCallback}from'react';import {tv}from'tailwind-variants';import {useCollapsibleContext,Collapsible}from'@ark-ui/react/collapsible';import {jsxs,jsx}from'react/jsx-runtime';var d=tv({slots:{root:"ring-expandable-card-border group/expandable-card flex h-fit flex-col rounded-lg ring transition-all duration-200 ease-in-out ring-inset",header:"flex pt-3 pr-1 pb-2 pl-3",headerLabel:"text-sm leading-[130%] font-semibold empty:hidden",complementaryText:"line-clamp-1 text-xs leading-[130%] text-neutral-900",subtitle:"line-clamp-1 text-xs leading-[130%] text-neutral-700",content:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up border-expandable-card-border overflow-hidden group-data-[state=open]/expandable-card:border-t",contentInner:"px-3 pt-4 pb-6",fixedContent:"border-expandable-card-border border-t px-3 pt-6 pb-4"},variants:{background:{white:{root:"bg-neutral-50"},gray:{root:"bg-neutral-100"}}},defaultVariants:{background:"white"}}),te=({headerLabel:o,complementaryText:t$1,subtitle:a$2,headerTooltip:n,className:c$4,action:l,chipStatus:i,chipExpandable:p,Icon:f,iconButtons:L,checkbox:m,...H})=>{let{header:I,headerLabel:k,complementaryText:w,subtitle:z}=d(),M=useCollapsibleContext();return jsxs("div",{...H,className:a(I(),c$4),children:[m&&jsx(c,{...m,className:a("m-1",m.className),size:"sm"}),jsxs("div",{className:"flex flex-1 flex-col gap-1",children:[jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxs("div",{className:"flex items-center gap-2",children:[f&&jsx(f,{className:"h-3.5 w-3.5 shrink-0"}),jsxs("p",{className:"flex items-center gap-2",children:[jsx("b",{className:k(),children:o}),t$1&&jsx("span",{className:w(),children:t$1}),n&&jsx(a$1,{content:n,contentClassName:"font-normal normal-case",children:jsx(e,{className:"h-3.5 w-3.5 shrink-0"})})]})]}),jsxs("div",{className:"flex items-center gap-2",children:[i&&jsx(d$1,{...i,size:"xs",type:"light"}),p&&jsx(c$1,{...p,type:"light"}),L?.map((s,b)=>createElement(c$2,{...s,key:s["aria-label"]?.toString()??b,variant:"standard",size:"xs"})),l&&(()=>{let{tooltipContent:s,...b}=l;return jsx(a$1,{content:s,disabled:!s,children:jsx(c$3,{...b,size:"xs",variant:"standard"})})})(),jsx(Collapsible.Trigger,{asChild:true,children:jsx(c$2,{Icon:M.open?s:t,variant:"standard",size:"xs"})})]})]}),a$2&&jsx("p",{className:z(),children:a$2})]})]})},ae=({className:o,...t})=>{let{contentInner:a,content:n}=d();return jsx(Collapsible.Content,{className:n(),children:jsx("div",{...t,className:a({className:o})})})},oe=({className:o,...t})=>{let{fixedContent:a}=d();return jsx("div",{...t,className:a({className:o})})},ne=({className:o,onOpenChange:t,children:a,background:n="white",...c})=>{let{root:l}=d({background:n}),i=useCallback(p=>{t?.(p);},[t]);return jsx(Collapsible.Root,{onOpenChange:i,className:l({className:o}),...c,children:a})};export{te as a,ae as b,oe as c,ne as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {d}from'./chunk-4HYLZVI5.mjs';import {a as a$1}from'./chunk-SXEHG5TZ.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import*as e from'@radix-ui/react-tabs';import o from'react';import {cva}from'cva';import {jsx,jsxs}from'react/jsx-runtime';var k=["ghost","fill","fillWithCloseButton"],D=["sm","md"],y=cva({base:"group relative shrink-0 px-4 leading-[130%] text-neutral-900 transition-all disabled:text-neutral-500",variants:{variant:{ghost:"not-disabled:hover:bg-primary-100 rounded-sm font-semibold",fill:"[&:not(:disabled)]:aria-selected:elevation-10 not-disabled:hover:border-primary-300 not-disabled:hover:text-primary-700 not-disabled:aria-selected:text-primary-500 rounded-lg rounded-b-none! border-1 border-b-0! border-transparent aria-selected:bg-neutral-50 aria-selected:font-semibold",fillWithCloseButton:"[&:not(:disabled)]:aria-selected:elevation-10 bg-primary-100 not-disabled:hover:border-primary-300 not-disabled:hover:bg-primary-100 not-disabled:hover:text-primary-700 not-disabled:aria-selected:text-primary-500 rounded-lg rounded-b-none! border-1 border-b-0! border-transparent aria-selected:font-semibold not-disabled:not-[&:hover]:aria-selected:bg-neutral-50 not-disabled:hover:aria-selected:border-transparent not-disabled:hover:aria-selected:bg-neutral-50"},size:{sm:"h-10 text-sm",md:"h-12 text-base"}}}),P=cva({base:"mr-2 flex shrink-0 transition-all ease-linear group-aria-selected:not-disabled:text-neutral-900",variants:{size:{sm:"",md:""}}}),C=cva({base:"group-aria-selected:bg-primary-500 absolute bottom-0 h-0 w-full rounded-sm transition-all group-disabled:bg-neutral-500 group-aria-selected:h-1 group-disabled:group-aria-selected:h-0",variants:{variant:{ghost:"flex",fill:"hidden",fillWithCloseButton:"hidden"}}}),R=cva({variants:{variant:{ghost:"",fill:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:right-0 before:left-0 before:h-5 before:rounded-lg before:rounded-b-none before:bg-neutral-50 before:content-['']",fillWithCloseButton:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:right-0 before:left-0 before:h-5 before:rounded-lg before:rounded-b-none before:bg-neutral-50 before:content-['']"},size:{sm:"",md:""}},compoundVariants:[{variant:"fill",size:"sm",className:"before:top-10"},{variant:"fill",size:"md",className:"before:top-12"},{variant:"fillWithCloseButton",size:"sm",className:"before:top-10"},{variant:"fillWithCloseButton",size:"md",className:"before:top-12"}]}),f=o.createContext({}),I=o.forwardRef(({className:i,size:a$1="sm",variant:t="ghost",...s},l)=>jsx(f.Provider,{value:{size:a$1,variant:t},children:jsx(e.Root,{"data-tab-variant":t,ref:l,...s,className:a(i,"relative")})})),N=o.forwardRef(({className:i,...a$1},t)=>{let{variant:s}=o.useContext(f);return jsx(e.List,{ref:t,...a$1,className:a("no-scrollbar flex max-w-full space-x-2 overflow-x-scroll",s!=="ghost"&&"px-6",i)})});N.displayName=e.List.displayName;var z=o.forwardRef(({className:i,badgeNumber:a$2,disabled:t,variant:s,StartIcon:l,onClose:T,...v},h)=>{let{size:d$1,variant:x}=o.useContext(f),n=s??x;return jsx(e.Trigger,{"data-tab-variant":n,ref:h,disabled:t,className:y({size:d$1,variant:n,className:i}),...v,children:jsxs("div",{className:"flex flex-col items-center justify-center",children:[jsxs("div",{className:"flex items-center justify-center",children:[l&&jsx(l,{className:P({size:d$1}),size:d$1==="sm"?12:14}),v.children,jsxs("div",{className:a("flex items-center gap-1 empty:hidden",n==="ghost"&&"ml-1",n==="fill"&&"ml-3",n==="fillWithCloseButton"&&"ml-3"),children:[!t&&a$2&&jsx(a$1,{variant:"alert",size:d$1==="sm"?"sm":"md",content:String(a$2)}),n==="fillWithCloseButton"&&jsx(d,{onPointerDown:p=>{p.preventDefault(),p.stopPropagation(),T?.(p);},className:"transition-colors group-aria-selected:not-disabled:text-neutral-900",size:14})]})]}),jsx("div",{className:C({variant:n})})]})})});z.displayName=e.Trigger.displayName;var W=o.forwardRef(({className:i,...a},t)=>{let{variant:s,size:l}=o.useContext(f);return jsx(e.Content,{ref:t,className:R({variant:s,size:l,className:i}),...a})});W.displayName=e.Content.displayName;export{k as a,D as b,I as c,N as d,z as e,W as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-463DMFCV.mjs';import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {a as a$4}from'./chunk-5JYXZUPM.mjs';import {c as c$3}from'./chunk-AI4D6AOK.mjs';import {c as c$2}from'./chunk-WRCFKTIJ.mjs';import {c as c$4}from'./chunk-GBBE3RHT.mjs';import {d as d$1}from'./chunk-FAMLJ6AJ.mjs';import {a as a$1}from'./chunk-T2IU5QUU.mjs';import {a}from'./chunk-WOQHGX7V.mjs';import {a as a$3}from'./chunk-SXEHG5TZ.mjs';import {c}from'./chunk-KKWH3QUT.mjs';import {c as c$1,h}from'./chunk-4HYLZVI5.mjs';import {a as a$2}from'./chunk-BO6XI5BE.mjs';import be,{createContext,useMemo,useCallback,useContext,useRef,useEffect,useState,useId}from'react';import*as Ie from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var Qe=be.memo(({handleSelect:e,NoResultsIcon:i,noResultsLabel:t,noResultsDescription:o,noResultsDescriptionLines:s,noResultsAsColumn:p,noResultsButtonOnClick:n,optionDescriptionLines:r,noResultsButtonLabel:l,filteredOptions:u,inputRect:c$1,inputRef:f,popoverPosition:C,optionsListRef:v,selectedOption:b,options:g,setFilteredOptions:R})=>jsx(Ie.Root,{asChild:true,children:jsxs("div",{ref:v,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:c$1?{width:`${c$1.width}px`,left:c$1.left,top:C==="bottom"?`${c$1.bottom}px`:void 0,bottom:C==="top"?`${window.innerHeight-c$1.top}px`:void 0}:void 0,children:[u.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:o,Icon:i,iconAsColumn:p,descriptionLines:s}),n&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:a=>{v.current.style.display="none",f.current.value="",R(g),n();},children:l})]})]}),u.map(a=>jsx(ke,{title:a.label,disabled:a.disabled,description:a.description,descriptionLines:r,onClick:()=>e(a),className:a$2(b?.value===a.value&&"bg-primary-200")},a.key??a.value))]})})),Pe=Qe;var Ze=336,eo=({options:e,defaultSelectedOption:i,onSelect:t,onClick:o,onInputChange:s,error:p,helperText:n,label:r,placeholder:l,value:u,size:c="md",optionDescriptionLines:f=1,noResultsLabel:C,noResultsIcon:v,noResultsDescription:b,noResultsDescriptionLines:g,noResultsAsColumn:R,noResultsButtonOnClick:a,noResultsButtonLabel:N,className:L,disabled:P})=>{let[m,M]=useState(i??null),O=useRef(null),d=useRef(null),[pe,ue]=useState(),[ce,z]=useState([]),[me,W]=useState("bottom"),[U,ee]=useState(),q=Ze,V=useCallback(x=>{O.current.style.display="none",d.current.value=x.label,M(x),t?.(x);},[t]),w=useCallback(()=>{if(!d?.current)return;let x=d.current.getBoundingClientRect();ue(x);let k=U?U.height:q,I=window.innerHeight-x.bottom>k,te=x.top>k;W(I?"bottom":te?"top":"bottom");},[U?.height]),J=useCallback(()=>{let x=e.filter(k=>k.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(z(x),O?.current){let k=O.current.getBoundingClientRect();ee(k);}},[e]);return useEffect(()=>{z(e);},[e]),useEffect(()=>{if(!u){M(null),d.current&&(d.current.value="");return}(!d.current?.value||m?.value!==u.value)&&(M(u),d.current.value=u.label);},[u]),a$5(O,()=>{O.current.style.display="none",m&&d.current&&(d.current.value=m.label);}),useEffect(()=>{if(d?.current)return w(),d.current.addEventListener("mousedown",w),d.current.addEventListener("input",J),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{d.current?.removeEventListener("mousedown",w),d.current?.removeEventListener("input",J),window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[w,J]),jsxs("div",{className:a$2("relative",L),children:[jsx(a$4,{ref:d,autoComplete:"off",list:"",selectMode:true,onChange:x=>{x.target.value||(M(null),t?.(null)),s?.(x);},onClean:()=>{M(null),z(e),t?.(null);},onClick:x=>{O.current.style.display="flex",o?.(x);},onBlur:()=>{m&&d.current&&(d.current.value=m.label);},label:r,helperText:n,placeholder:l,size:c,error:p,disabled:P}),jsx(Pe,{handleSelect:V,noResultsLabel:C,NoResultsIcon:v,optionDescriptionLines:f,noResultsAsColumn:R,noResultsButtonLabel:N,noResultsButtonOnClick:a,noResultsDescription:b,noResultsDescriptionLines:g,filteredOptions:ce,inputRect:pe,inputRef:d,popoverPosition:me,optionsListRef:O,selectedOption:m,options:e,setFilteredOptions:z})]})};var et=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,disabled:p=false,className:n,...r})=>jsxs("div",{className:"flex w-full flex-col gap-1",...r,children:[jsx("p",{className:a$2("break-all text-sm leading-[130%]",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:i}),o&&jsx("p",{className:a$2("text-xs leading-[130%]",p?"text-neutral-400":"text-neutral-700"),style:s?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s}:void 0,children:o})]}),H=et;var ao=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,startIcon:p,badgeContent:n,hasDivider:r=false,disabled:l=false,onSelect:u,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:l,onClick:u,hasDivider:r,className:a$2(!l&&"cursor-pointer",c),...f,children:[p&&be.cloneElement(p,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:l}),jsxs("div",{className:"ml-4 flex gap-2",children:[n&&jsx(a$3,{content:n,size:"lg",variant:"alert",className:a$2("self-center",l&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var He=({children:e,title:i,titleLines:t=1,description:o="",descriptionLines:s,startIcon:p,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:u,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:r,hasDivider:n,...f,className:a$2("pr-6",c),children:[p&&be.cloneElement(p,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:r}),jsx(c$2,{size:"sm",checked:l,onCheckedChange:u,className:"ml-4 self-center",disabled:r})]});var F=336,Se=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:F,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),D=()=>{let e=useContext(Se);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Be=({children:e})=>{let i=useRef(null),t=useRef(null),o=useId(),[s,p]=useState(),[n,r]=useState(true),[l,u]=useState([]),[c,f]=useState(-1),[C,v]=useState("bottom"),[b,g]=useState(),[R,a]=useState(F);return jsx(Se.Provider,{value:{optionsListRef:i,inputRef:t,autocompleteId:o,inputRect:s,showChips:n,filteredOptions:l,currentFocus:c,popoverPosition:C,setFilteredOptions:u,setCurrentFocus:f,setShowChips:r,setPopoverPosition:v,setInputRect:p,optionsListHeight:R,optionsListRect:b,setOptionsListRect:g,setOptionsListHeight:a},children:e})};var mt=({option:e,onMountWidth:i,size:t})=>{let o=useRef(null);return useEffect(()=>{o.current&&i?.(o.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:o,className:"shrink-0",size:t==="md"?"xs":"sm",hasCloseIcon:false,children:e.label})},ze=mt;var ht=150,bt=be.memo(({selectedOptions:e,error:i,onCleanSelectedOptions:t,disabled:o,size:s})=>{let{autocompleteId:p,inputRect:n,inputRef:r,optionsListRef:l}=D(),u=be.useRef(null),[c,f]=be.useState(new Map),C=useMemo(()=>{if(!n?.width)return [];let b=0,g=n.width-ht,R=0;for(let a=0;a<e.length&&(R+=c.get(a)??0,!(R>g));a++)b++;return e.slice(0,b)},[n?.width,e,c]),v=useCallback(()=>{o||(r?.current?.focus(),l.current.style.display="flex");},[o]);return jsxs("div",{onClick:v,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",o&&"cursor-not-allowed"),style:{maxWidth:n?.width?n?.width:void 0,height:n?.height?n?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:u,children:C.map((b,g)=>jsx(ze,{option:b,onMountWidth:R=>f(a=>new Map(a).set(g,R)),size:s},`chip-input-${p}-${b.value}`))}),e.length>C.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!i&&jsx(a$3,{content:String(e.length),size:s}),i&&e.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:b=>{b.stopPropagation(),t();}})]})}),We=bt;var xt=be.memo(({option:e,index:i,onPressOption:t,isSelected:o,optionDescriptionLines:s})=>{let{currentFocus:p,inputRef:n}=D();return jsx(He,{title:e.label,checked:o,disabled:e.disabled,className:p===i?"bg-primary-200":void 0,onMouseDown:r=>{e.disabled||(n?.current?.value&&r.preventDefault(),t?.(e,r));},description:e.description,descriptionLines:s})}),Le=xt;var Mt=be.memo(({selectedOptions:e,handleSelect:i,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:s,noResultsDescriptionLines:p,noResultsAsColumn:n,noResultsButtonOnClick:r,optionDescriptionLines:l,noResultsButtonLabel:u})=>{let{popoverPosition:c$1,optionsListRef:f,filteredOptions:C,inputRect:v,autocompleteId:b,inputRef:g,optionsListHeight:R}=D(),a$2=useCallback(L=>e.some(P=>P.value===L.value),[e]),N=useMemo(()=>e.filter(L=>L.label.toLowerCase().includes(g?.current?.value.toLowerCase()??"")),[e,g?.current?.value]);return jsx(Ie.Root,{asChild:true,children:jsxs("div",{ref:f,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:v?{width:`${v.width}px`,left:v.left,top:c$1==="bottom"?`${v.bottom}px`:void 0,bottom:c$1==="top"?`${window.innerHeight-v.top}px`:void 0,maxHeight:R+"px"}:void 0,children:[C.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:o,description:s,Icon:t,iconAsColumn:n,descriptionLines:p}),r&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:L=>{f.current.style.display="none",g.current.value="",r();},children:u})]})]}),N.map((L,P)=>jsx(Le,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$2(L),optionDescriptionLines:l},`autocomplete-option-${b}-${L.key??L.value}`)),C.map((L,P)=>!e.some(m=>m.value===L.value)&&jsx(Le,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$2(L),optionDescriptionLines:l},`autocomplete-option-${b}-${L.key??L.value}`))]})})}),$e=Mt;var It=be.memo(({selectedOptions:e,onSelect:i,error:t,helperText:o,label:s,placeholder:p,options:n,onInputChange:r,size:l,disabled:u})=>{let{setCurrentFocus:c,setFilteredOptions:f,optionsListRef:C,inputRef:v}=D();return jsx(a$4,{ref:v,autoComplete:"off",list:"",disabled:u,selectMode:true,onChange:b=>{c(-1),r?.(b.target.value);},onClean:()=>{c(-1),f(n),i?.(null,e);},onClick:()=>{u||(C.current.style.display="flex");},error:t,helperText:o,label:s,placeholder:p,fixedTopLabel:e.length>0,size:l})}),Ge=It;var _e=({options:e,defaultSelectedOptions:i,onSelect:t,error:o,helperText:s,label:p,placeholder:n,noResultsLabel:r,noResultsIcon:l,noResultsDescription:u,noResultsDescriptionLines:c,noResultsAsColumn:f,noResultsButtonOnClick:C,noResultsButtonLabel:v,className:b,onInputChange:g,value:R,loading:a,size:N="md",optionDescriptionLines:L=1,disabled:P})=>{let{inputRef:m,optionsListRef:M,setFilteredOptions:O,setShowChips:d,setInputRect:pe,setPopoverPosition:ue,setCurrentFocus:ce,showChips:z,setOptionsListRect:me,optionsListRect:W,setOptionsListHeight:U}=D(),ee=useRef(false),[q,V]=useState(i??[]),w=useCallback(A=>{V(E=>{let T,K=E.findIndex(Je=>Je.value===A.value);return K===-1?(T=E.concat(A),t?.(A,T),T):(T=E.toSpliced(K,1),t?.(A,T),T)});},[t]),J=useCallback(()=>{V([]),O(e),t?.(null,[]);},[]),x=useCallback(()=>{d(false);},[]),k=useCallback(()=>{d(true);},[]),I=useCallback(()=>{if(!m?.current)return;let A=m.current.getBoundingClientRect();pe(A);let E=W?W.height>F?F:W.height:F,T=window.innerHeight-A.bottom>E,K=A.top>E;ue(T?"bottom":K?"top":"bottom"),U(K?F:window.innerHeight-A.bottom>F?F:window.innerHeight-A.bottom);},[W?.height]),te=useCallback(()=>{let A=e.filter(E=>E.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(O(A),M?.current){let E=M.current.getBoundingClientRect();me(E);}},[e,M?.current]);return useEffect(()=>{O(e);},[e]),a$5(M,()=>{M.current.style.display="none",ce(-1);}),useEffect(()=>{if(m?.current)return I(),m.current.addEventListener("mousedown",I),m.current.addEventListener("input",te),m.current.addEventListener("focusin",x),m.current.addEventListener("focusout",k),window.addEventListener("scroll",I,true),window.addEventListener("resize",I),()=>{m.current?.removeEventListener("mousedown",I),m.current?.removeEventListener("input",I),m.current?.removeEventListener("focusout",k),m.current?.removeEventListener("focusin",x),window.removeEventListener("scroll",I,true),window.removeEventListener("resize",I);}},[I,k,x,te]),useEffect(()=>{R&&(V(R),d(true));},[R]),useEffect(()=>{a||i&&i.length&&!ee.current&&(V(i),ee.current=true,d(true));},[i,a]),jsxs("div",{className:a$2("relative",b),children:[jsx(Ge,{selectedOptions:q,onSelect:t,error:o,helperText:s,label:p,placeholder:n,handleSelect:w,options:e,onInputChange:g,size:N,disabled:P}),z&&jsx(We,{selectedOptions:q,disabled:P,error:o,onCleanSelectedOptions:J,size:N}),jsx($e,{handleSelect:w,selectedOptions:q,noResultsLabel:r,NoResultsIcon:l,optionDescriptionLines:L,noResultsAsColumn:f,noResultsButtonLabel:v,noResultsButtonOnClick:C,noResultsDescription:u,noResultsDescriptionLines:c})]})};var Ii=e=>jsx(Be,{children:jsx(_e,{...e})});var Ni=({children:e,title:i,titleLines:t=1,description:o,descriptionLines:s=1,StartIcon:p,hasDivider:n=false,disabled:r=false,actionButton:l,isSelected:u=false,className:c$1,...f})=>jsxs(y,{hasDescription:!!o,disabled:r,hasDivider:n,isSelected:u,...f,className:c$1,children:[p&&jsx(p,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:r}),l&&jsx(Fragment,{children:l.isIcon?jsx(c$3,{...l,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:r??l.disabled}):jsx(c,{...l,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:r??l.disabled})})]});var qi=({title:e,description:i="",descriptionLines:t,hasDivider:o=false,disabled:s=false,checked:p,onCheckedChange:n,className:r,chipStatus:l,chipExpandable:u,...c})=>jsxs(y,{hasDescription:!!i,disabled:s,hasDivider:o,...c,className:a$2("pr-6",r),children:[jsx(c$2,{size:"sm",checked:p,onCheckedChange:n,className:"mr-4 self-center",disabled:s}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!i&&"font-medium"),children:e}),u&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$4,{...u})}),l&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$1,{...l,size:"xs",className:"shrink-0"})})]}),i&&jsx("p",{className:a$2("text-xs leading-[130%]",s?"text-neutral-400":"text-neutral-700",{"line-clamp-1":t===1,"line-clamp-2":t===2,"line-clamp-3":t===3,"line-clamp-4":t===4}),children:i})]})]});var Tt=({children:e,hasDescription:i=false,disabled:t=false,hasDivider:o=false,className:s,isSelected:p,onClick:n,...r})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",i?"py-3":"py-3.5",t?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",p&&"bg-primary-200",s),onClick:l=>{t||n?.(l);},...r,children:e}),o&&jsx(a$1,{})]}),y=Tt;var ke=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,startIcon:p,endIcon:n,hasDivider:r=false,disabled:l=false,isSelected:u=false,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:l,hasDivider:r,className:c,isSelected:u,...f,children:[p&&be.cloneElement(p,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:l}),n&&be.cloneElement(n,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{eo as a,ke as b,ao as c,He as d,Ii as e,Ni as f,qi as g};
|
|
1
|
+
import {d}from'./chunk-463DMFCV.mjs';import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {a as a$4}from'./chunk-5JYXZUPM.mjs';import {c as c$3}from'./chunk-AI4D6AOK.mjs';import {c as c$4}from'./chunk-GBBE3RHT.mjs';import {c as c$2}from'./chunk-WRCFKTIJ.mjs';import {d as d$1}from'./chunk-FAMLJ6AJ.mjs';import {a as a$1}from'./chunk-T2IU5QUU.mjs';import {c}from'./chunk-KKWH3QUT.mjs';import {a}from'./chunk-WOQHGX7V.mjs';import {c as c$1,h}from'./chunk-4HYLZVI5.mjs';import {a as a$3}from'./chunk-SXEHG5TZ.mjs';import {a as a$2}from'./chunk-BO6XI5BE.mjs';import be,{createContext,useMemo,useCallback,useContext,useRef,useEffect,useState,useId}from'react';import*as Ie from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var Qe=be.memo(({handleSelect:e,NoResultsIcon:i,noResultsLabel:t,noResultsDescription:o,noResultsDescriptionLines:s,noResultsAsColumn:p,noResultsButtonOnClick:n,optionDescriptionLines:r,noResultsButtonLabel:l,filteredOptions:u,inputRect:c$1,inputRef:f,popoverPosition:C,optionsListRef:v,selectedOption:b,options:g,setFilteredOptions:R})=>jsx(Ie.Root,{asChild:true,children:jsxs("div",{ref:v,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:c$1?{width:`${c$1.width}px`,left:c$1.left,top:C==="bottom"?`${c$1.bottom}px`:void 0,bottom:C==="top"?`${window.innerHeight-c$1.top}px`:void 0}:void 0,children:[u.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:o,Icon:i,iconAsColumn:p,descriptionLines:s}),n&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:a=>{v.current.style.display="none",f.current.value="",R(g),n();},children:l})]})]}),u.map(a=>jsx(ke,{title:a.label,disabled:a.disabled,description:a.description,descriptionLines:r,onClick:()=>e(a),className:a$2(b?.value===a.value&&"bg-primary-200")},a.key??a.value))]})})),Pe=Qe;var Ze=336,eo=({options:e,defaultSelectedOption:i,onSelect:t,onClick:o,onInputChange:s,error:p,helperText:n,label:r,placeholder:l,value:u,size:c="md",optionDescriptionLines:f=1,noResultsLabel:C,noResultsIcon:v,noResultsDescription:b,noResultsDescriptionLines:g,noResultsAsColumn:R,noResultsButtonOnClick:a,noResultsButtonLabel:N,className:L,disabled:P})=>{let[m,M]=useState(i??null),O=useRef(null),d=useRef(null),[pe,ue]=useState(),[ce,z]=useState([]),[me,W]=useState("bottom"),[U,ee]=useState(),q=Ze,V=useCallback(x=>{O.current.style.display="none",d.current.value=x.label,M(x),t?.(x);},[t]),w=useCallback(()=>{if(!d?.current)return;let x=d.current.getBoundingClientRect();ue(x);let k=U?U.height:q,I=window.innerHeight-x.bottom>k,te=x.top>k;W(I?"bottom":te?"top":"bottom");},[U?.height]),J=useCallback(()=>{let x=e.filter(k=>k.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(z(x),O?.current){let k=O.current.getBoundingClientRect();ee(k);}},[e]);return useEffect(()=>{z(e);},[e]),useEffect(()=>{if(!u){M(null),d.current&&(d.current.value="");return}(!d.current?.value||m?.value!==u.value)&&(M(u),d.current.value=u.label);},[u]),a$5(O,()=>{O.current.style.display="none",m&&d.current&&(d.current.value=m.label);}),useEffect(()=>{if(d?.current)return w(),d.current.addEventListener("mousedown",w),d.current.addEventListener("input",J),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{d.current?.removeEventListener("mousedown",w),d.current?.removeEventListener("input",J),window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[w,J]),jsxs("div",{className:a$2("relative",L),children:[jsx(a$4,{ref:d,autoComplete:"off",list:"",selectMode:true,onChange:x=>{x.target.value||(M(null),t?.(null)),s?.(x);},onClean:()=>{M(null),z(e),t?.(null);},onClick:x=>{O.current.style.display="flex",o?.(x);},onBlur:()=>{m&&d.current&&(d.current.value=m.label);},label:r,helperText:n,placeholder:l,size:c,error:p,disabled:P}),jsx(Pe,{handleSelect:V,noResultsLabel:C,NoResultsIcon:v,optionDescriptionLines:f,noResultsAsColumn:R,noResultsButtonLabel:N,noResultsButtonOnClick:a,noResultsDescription:b,noResultsDescriptionLines:g,filteredOptions:ce,inputRect:pe,inputRef:d,popoverPosition:me,optionsListRef:O,selectedOption:m,options:e,setFilteredOptions:z})]})};var et=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,disabled:p=false,className:n,...r})=>jsxs("div",{className:"flex w-full flex-col gap-1",...r,children:[jsx("p",{className:a$2("break-all text-sm leading-[130%]",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:i}),o&&jsx("p",{className:a$2("text-xs leading-[130%]",p?"text-neutral-400":"text-neutral-700"),style:s?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s}:void 0,children:o})]}),H=et;var ao=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,startIcon:p,badgeContent:n,hasDivider:r=false,disabled:l=false,onSelect:u,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:l,onClick:u,hasDivider:r,className:a$2(!l&&"cursor-pointer",c),...f,children:[p&&be.cloneElement(p,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:l}),jsxs("div",{className:"ml-4 flex gap-2",children:[n&&jsx(a$3,{content:n,size:"lg",variant:"alert",className:a$2("self-center",l&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var He=({children:e,title:i,titleLines:t=1,description:o="",descriptionLines:s,startIcon:p,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:u,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:r,hasDivider:n,...f,className:a$2("pr-6",c),children:[p&&be.cloneElement(p,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:r}),jsx(c$2,{size:"sm",checked:l,onCheckedChange:u,className:"ml-4 self-center",disabled:r})]});var F=336,Se=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:F,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),D=()=>{let e=useContext(Se);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Be=({children:e})=>{let i=useRef(null),t=useRef(null),o=useId(),[s,p]=useState(),[n,r]=useState(true),[l,u]=useState([]),[c,f]=useState(-1),[C,v]=useState("bottom"),[b,g]=useState(),[R,a]=useState(F);return jsx(Se.Provider,{value:{optionsListRef:i,inputRef:t,autocompleteId:o,inputRect:s,showChips:n,filteredOptions:l,currentFocus:c,popoverPosition:C,setFilteredOptions:u,setCurrentFocus:f,setShowChips:r,setPopoverPosition:v,setInputRect:p,optionsListHeight:R,optionsListRect:b,setOptionsListRect:g,setOptionsListHeight:a},children:e})};var mt=({option:e,onMountWidth:i,size:t})=>{let o=useRef(null);return useEffect(()=>{o.current&&i?.(o.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:o,className:"shrink-0",size:t==="md"?"xs":"sm",hasCloseIcon:false,children:e.label})},ze=mt;var ht=150,bt=be.memo(({selectedOptions:e,error:i,onCleanSelectedOptions:t,disabled:o,size:s})=>{let{autocompleteId:p,inputRect:n,inputRef:r,optionsListRef:l}=D(),u=be.useRef(null),[c,f]=be.useState(new Map),C=useMemo(()=>{if(!n?.width)return [];let b=0,g=n.width-ht,R=0;for(let a=0;a<e.length&&(R+=c.get(a)??0,!(R>g));a++)b++;return e.slice(0,b)},[n?.width,e,c]),v=useCallback(()=>{o||(r?.current?.focus(),l.current.style.display="flex");},[o]);return jsxs("div",{onClick:v,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",o&&"cursor-not-allowed"),style:{maxWidth:n?.width?n?.width:void 0,height:n?.height?n?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:u,children:C.map((b,g)=>jsx(ze,{option:b,onMountWidth:R=>f(a=>new Map(a).set(g,R)),size:s},`chip-input-${p}-${b.value}`))}),e.length>C.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!i&&jsx(a$3,{content:String(e.length),size:s}),i&&e.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:b=>{b.stopPropagation(),t();}})]})}),We=bt;var xt=be.memo(({option:e,index:i,onPressOption:t,isSelected:o,optionDescriptionLines:s})=>{let{currentFocus:p,inputRef:n}=D();return jsx(He,{title:e.label,checked:o,disabled:e.disabled,className:p===i?"bg-primary-200":void 0,onMouseDown:r=>{e.disabled||(n?.current?.value&&r.preventDefault(),t?.(e,r));},description:e.description,descriptionLines:s})}),Le=xt;var Mt=be.memo(({selectedOptions:e,handleSelect:i,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:s,noResultsDescriptionLines:p,noResultsAsColumn:n,noResultsButtonOnClick:r,optionDescriptionLines:l,noResultsButtonLabel:u})=>{let{popoverPosition:c$1,optionsListRef:f,filteredOptions:C,inputRect:v,autocompleteId:b,inputRef:g,optionsListHeight:R}=D(),a$2=useCallback(L=>e.some(P=>P.value===L.value),[e]),N=useMemo(()=>e.filter(L=>L.label.toLowerCase().includes(g?.current?.value.toLowerCase()??"")),[e,g?.current?.value]);return jsx(Ie.Root,{asChild:true,children:jsxs("div",{ref:f,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:v?{width:`${v.width}px`,left:v.left,top:c$1==="bottom"?`${v.bottom}px`:void 0,bottom:c$1==="top"?`${window.innerHeight-v.top}px`:void 0,maxHeight:R+"px"}:void 0,children:[C.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:o,description:s,Icon:t,iconAsColumn:n,descriptionLines:p}),r&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:L=>{f.current.style.display="none",g.current.value="",r();},children:u})]})]}),N.map((L,P)=>jsx(Le,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$2(L),optionDescriptionLines:l},`autocomplete-option-${b}-${L.key??L.value}`)),C.map((L,P)=>!e.some(m=>m.value===L.value)&&jsx(Le,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$2(L),optionDescriptionLines:l},`autocomplete-option-${b}-${L.key??L.value}`))]})})}),$e=Mt;var It=be.memo(({selectedOptions:e,onSelect:i,error:t,helperText:o,label:s,placeholder:p,options:n,onInputChange:r,size:l,disabled:u})=>{let{setCurrentFocus:c,setFilteredOptions:f,optionsListRef:C,inputRef:v}=D();return jsx(a$4,{ref:v,autoComplete:"off",list:"",disabled:u,selectMode:true,onChange:b=>{c(-1),r?.(b.target.value);},onClean:()=>{c(-1),f(n),i?.(null,e);},onClick:()=>{u||(C.current.style.display="flex");},error:t,helperText:o,label:s,placeholder:p,fixedTopLabel:e.length>0,size:l})}),Ge=It;var _e=({options:e,defaultSelectedOptions:i,onSelect:t,error:o,helperText:s,label:p,placeholder:n,noResultsLabel:r,noResultsIcon:l,noResultsDescription:u,noResultsDescriptionLines:c,noResultsAsColumn:f,noResultsButtonOnClick:C,noResultsButtonLabel:v,className:b,onInputChange:g,value:R,loading:a,size:N="md",optionDescriptionLines:L=1,disabled:P})=>{let{inputRef:m,optionsListRef:M,setFilteredOptions:O,setShowChips:d,setInputRect:pe,setPopoverPosition:ue,setCurrentFocus:ce,showChips:z,setOptionsListRect:me,optionsListRect:W,setOptionsListHeight:U}=D(),ee=useRef(false),[q,V]=useState(i??[]),w=useCallback(A=>{V(E=>{let T,K=E.findIndex(Je=>Je.value===A.value);return K===-1?(T=E.concat(A),t?.(A,T),T):(T=E.toSpliced(K,1),t?.(A,T),T)});},[t]),J=useCallback(()=>{V([]),O(e),t?.(null,[]);},[]),x=useCallback(()=>{d(false);},[]),k=useCallback(()=>{d(true);},[]),I=useCallback(()=>{if(!m?.current)return;let A=m.current.getBoundingClientRect();pe(A);let E=W?W.height>F?F:W.height:F,T=window.innerHeight-A.bottom>E,K=A.top>E;ue(T?"bottom":K?"top":"bottom"),U(K?F:window.innerHeight-A.bottom>F?F:window.innerHeight-A.bottom);},[W?.height]),te=useCallback(()=>{let A=e.filter(E=>E.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(O(A),M?.current){let E=M.current.getBoundingClientRect();me(E);}},[e,M?.current]);return useEffect(()=>{O(e);},[e]),a$5(M,()=>{M.current.style.display="none",ce(-1);}),useEffect(()=>{if(m?.current)return I(),m.current.addEventListener("mousedown",I),m.current.addEventListener("input",te),m.current.addEventListener("focusin",x),m.current.addEventListener("focusout",k),window.addEventListener("scroll",I,true),window.addEventListener("resize",I),()=>{m.current?.removeEventListener("mousedown",I),m.current?.removeEventListener("input",I),m.current?.removeEventListener("focusout",k),m.current?.removeEventListener("focusin",x),window.removeEventListener("scroll",I,true),window.removeEventListener("resize",I);}},[I,k,x,te]),useEffect(()=>{R&&(V(R),d(true));},[R]),useEffect(()=>{a||i&&i.length&&!ee.current&&(V(i),ee.current=true,d(true));},[i,a]),jsxs("div",{className:a$2("relative",b),children:[jsx(Ge,{selectedOptions:q,onSelect:t,error:o,helperText:s,label:p,placeholder:n,handleSelect:w,options:e,onInputChange:g,size:N,disabled:P}),z&&jsx(We,{selectedOptions:q,disabled:P,error:o,onCleanSelectedOptions:J,size:N}),jsx($e,{handleSelect:w,selectedOptions:q,noResultsLabel:r,NoResultsIcon:l,optionDescriptionLines:L,noResultsAsColumn:f,noResultsButtonLabel:v,noResultsButtonOnClick:C,noResultsDescription:u,noResultsDescriptionLines:c})]})};var Ii=e=>jsx(Be,{children:jsx(_e,{...e})});var Ni=({children:e,title:i,titleLines:t=1,description:o,descriptionLines:s=1,StartIcon:p,hasDivider:n=false,disabled:r=false,actionButton:l,isSelected:u=false,className:c$1,...f})=>jsxs(y,{hasDescription:!!o,disabled:r,hasDivider:n,isSelected:u,...f,className:c$1,children:[p&&jsx(p,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:r}),l&&jsx(Fragment,{children:l.isIcon?jsx(c$3,{...l,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:r??l.disabled}):jsx(c,{...l,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:r??l.disabled})})]});var qi=({title:e,description:i="",descriptionLines:t,hasDivider:o=false,disabled:s=false,checked:p,onCheckedChange:n,className:r,chipStatus:l,chipExpandable:u,...c})=>jsxs(y,{hasDescription:!!i,disabled:s,hasDivider:o,...c,className:a$2("pr-6",r),children:[jsx(c$2,{size:"sm",checked:p,onCheckedChange:n,className:"mr-4 self-center",disabled:s}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!i&&"font-medium"),children:e}),u&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$4,{...u})}),l&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$1,{...l,size:"xs",className:"shrink-0"})})]}),i&&jsx("p",{className:a$2("text-xs leading-[130%]",s?"text-neutral-400":"text-neutral-700",{"line-clamp-1":t===1,"line-clamp-2":t===2,"line-clamp-3":t===3,"line-clamp-4":t===4}),children:i})]})]});var Tt=({children:e,hasDescription:i=false,disabled:t=false,hasDivider:o=false,className:s,isSelected:p,onClick:n,...r})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",i?"py-3":"py-3.5",t?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",p&&"bg-primary-200",s),onClick:l=>{t||n?.(l);},...r,children:e}),o&&jsx(a$1,{})]}),y=Tt;var ke=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,startIcon:p,endIcon:n,hasDivider:r=false,disabled:l=false,isSelected:u=false,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:l,hasDivider:r,className:c,isSelected:u,...f,children:[p&&be.cloneElement(p,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:l}),n&&be.cloneElement(n,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{eo as a,ke as b,ao as c,He as d,Ii as e,Ni as f,qi as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'../chunk-
|
|
1
|
+
export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'../chunk-FERU7XG4.mjs';import'../chunk-FAMLJ6AJ.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-SXEHG5TZ.mjs';import'../chunk-BO6XI5BE.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as Accordion,g as AccordionContent,d as AccordionItem,a as AccordionPrimitive,b as AccordionSizes,f as AccordionTrigger,e as AccordionTriggerEmpty}from'../chunk-
|
|
1
|
+
export{c as Accordion,g as AccordionContent,d as AccordionItem,a as AccordionPrimitive,b as AccordionSizes,f as AccordionTrigger,e as AccordionTriggerEmpty}from'../chunk-ERR4CIFD.mjs';import'../chunk-FAMLJ6AJ.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-SXEHG5TZ.mjs';import'../chunk-BO6XI5BE.mjs';
|
|
@@ -5,23 +5,27 @@ import { ChipStatusProps } from './chip-status.mjs';
|
|
|
5
5
|
import { IconButtonProps } from './icon-button.mjs';
|
|
6
6
|
import { ChipExpandableProps } from './chip-expandable.mjs';
|
|
7
7
|
import { CheckboxProps } from './checkbox.mjs';
|
|
8
|
+
import { LucideIcon } from 'lucide-react';
|
|
8
9
|
import 'tailwind-variants';
|
|
9
|
-
import 'lucide-react';
|
|
10
10
|
import 'cva';
|
|
11
11
|
import '@ark-ui/react';
|
|
12
12
|
|
|
13
|
-
type
|
|
14
|
-
type CardExpandableProps = CollapsibleRootProps
|
|
13
|
+
type CardExpandableBackground = "white" | "gray";
|
|
14
|
+
type CardExpandableProps = CollapsibleRootProps & {
|
|
15
|
+
background?: CardExpandableBackground;
|
|
16
|
+
};
|
|
15
17
|
type CardExpandableHeaderProps = {
|
|
16
18
|
headerLabel?: string;
|
|
17
|
-
|
|
19
|
+
complementaryText?: string;
|
|
20
|
+
subtitle?: string;
|
|
21
|
+
headerTooltip?: string;
|
|
18
22
|
action?: Omit<ButtonProps, "variant" | "size"> & {
|
|
19
23
|
tooltipContent?: string;
|
|
20
24
|
};
|
|
21
25
|
chipStatus?: Omit<ChipStatusProps, "size" | "type">;
|
|
22
26
|
chipExpandable?: Omit<ChipExpandableProps, "size" | "type">;
|
|
27
|
+
Icon?: LucideIcon;
|
|
23
28
|
iconButtons?: (IconButtonProps & Omit<HTMLAttributes<HTMLDivElement>, "size" | "variant">)[];
|
|
24
|
-
headerAlign?: CardExpandableHeaderAlign;
|
|
25
29
|
checkbox?: Omit<CheckboxProps, "size">;
|
|
26
30
|
} & HTMLAttributes<HTMLDivElement>;
|
|
27
31
|
declare const CardExpandableHeader: FC<CardExpandableHeaderProps>;
|
|
@@ -29,4 +33,4 @@ declare const CardExpandableContent: FC<HTMLAttributes<HTMLDivElement>>;
|
|
|
29
33
|
declare const CardExpandableFixedContent: FC<HTMLAttributes<HTMLDivElement>>;
|
|
30
34
|
declare const CardExpandable: FC<CardExpandableProps>;
|
|
31
35
|
|
|
32
|
-
export { CardExpandable, CardExpandableContent, CardExpandableFixedContent, CardExpandableHeader, type
|
|
36
|
+
export { CardExpandable, type CardExpandableBackground, CardExpandableContent, CardExpandableFixedContent, CardExpandableHeader, type CardExpandableHeaderProps, type CardExpandableProps };
|
|
@@ -5,23 +5,27 @@ import { ChipStatusProps } from './chip-status.js';
|
|
|
5
5
|
import { IconButtonProps } from './icon-button.js';
|
|
6
6
|
import { ChipExpandableProps } from './chip-expandable.js';
|
|
7
7
|
import { CheckboxProps } from './checkbox.js';
|
|
8
|
+
import { LucideIcon } from 'lucide-react';
|
|
8
9
|
import 'tailwind-variants';
|
|
9
|
-
import 'lucide-react';
|
|
10
10
|
import 'cva';
|
|
11
11
|
import '@ark-ui/react';
|
|
12
12
|
|
|
13
|
-
type
|
|
14
|
-
type CardExpandableProps = CollapsibleRootProps
|
|
13
|
+
type CardExpandableBackground = "white" | "gray";
|
|
14
|
+
type CardExpandableProps = CollapsibleRootProps & {
|
|
15
|
+
background?: CardExpandableBackground;
|
|
16
|
+
};
|
|
15
17
|
type CardExpandableHeaderProps = {
|
|
16
18
|
headerLabel?: string;
|
|
17
|
-
|
|
19
|
+
complementaryText?: string;
|
|
20
|
+
subtitle?: string;
|
|
21
|
+
headerTooltip?: string;
|
|
18
22
|
action?: Omit<ButtonProps, "variant" | "size"> & {
|
|
19
23
|
tooltipContent?: string;
|
|
20
24
|
};
|
|
21
25
|
chipStatus?: Omit<ChipStatusProps, "size" | "type">;
|
|
22
26
|
chipExpandable?: Omit<ChipExpandableProps, "size" | "type">;
|
|
27
|
+
Icon?: LucideIcon;
|
|
23
28
|
iconButtons?: (IconButtonProps & Omit<HTMLAttributes<HTMLDivElement>, "size" | "variant">)[];
|
|
24
|
-
headerAlign?: CardExpandableHeaderAlign;
|
|
25
29
|
checkbox?: Omit<CheckboxProps, "size">;
|
|
26
30
|
} & HTMLAttributes<HTMLDivElement>;
|
|
27
31
|
declare const CardExpandableHeader: FC<CardExpandableHeaderProps>;
|
|
@@ -29,4 +33,4 @@ declare const CardExpandableContent: FC<HTMLAttributes<HTMLDivElement>>;
|
|
|
29
33
|
declare const CardExpandableFixedContent: FC<HTMLAttributes<HTMLDivElement>>;
|
|
30
34
|
declare const CardExpandable: FC<CardExpandableProps>;
|
|
31
35
|
|
|
32
|
-
export { CardExpandable, CardExpandableContent, CardExpandableFixedContent, CardExpandableHeader, type
|
|
36
|
+
export { CardExpandable, type CardExpandableBackground, CardExpandableContent, CardExpandableFixedContent, CardExpandableHeader, type CardExpandableHeaderProps, type CardExpandableProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var ia=require('react'),tailwindVariants=require('tailwind-variants'),collapsible=require('@ark-ui/react/collapsible'),jsxRuntime=require('react/jsx-runtime'),tooltip=require('@ark-ui/react/tooltip'),cva=require('cva'),react=require('@ark-ui/react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var ia__default=/*#__PURE__*/_interopDefault(ia);var ga=tailwindVariants.tv({slots:{container:"font-inter flex items-center justify-center text-base font-semibold transition-all ring-inset",icon:""},variants:{variant:{contained:{},secondary:{},outlined:{},ghost:{},standard:{}},size:{lg:{container:"h-12 w-12 rounded-lg",icon:"h-6 w-6"},md:{container:"h-10 w-10 rounded-lg",icon:"h-6 w-6"},sm:{container:"h-8 w-8 rounded-lg",icon:"h-4.5 w-4.5"},xs:{container:"h-5.5 w-5.5 rounded-sm",icon:"h-4.5 w-4.5"}},disabled:{true:{},false:{}}},compoundVariants:[{disabled:true,className:{container:"cursor-not-allowed text-neutral-400"}},{disabled:false,className:{container:"cursor-pointer"}},{disabled:false,variant:"contained",className:{container:"bg-primary-500 hover:bg-primary-600 focus:bg-primary-500 focus:ring-primary-800 active:bg-primary-700 text-neutral-50 focus:ring-[3px] focus:ring-inset active:ring-0"}},{disabled:true,variant:"contained",className:{container:"bg-neutral-100 ring-0"}},{disabled:false,variant:"secondary",className:{container:"text-primary-500 ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:text-primary-500 focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-primary-700 ring-[1.5px] ring-inset focus:bg-neutral-50/0 focus:ring-[3px] active:ring-[1.5px]"}},{disabled:true,variant:"secondary",className:{container:"ring-neutral-400 disabled:ring-[1.5px]"}},{disabled:false,variant:"outlined",className:{container:"hover:bg-transparent-primary-20 active:bg-transparent-primary-40 text-neutral-900 ring-[1.5px] ring-neutral-900 focus:ring-[3px]"}},{disabled:true,variant:"outlined",className:{container:"text-neutral-400 ring-[1.5px] ring-neutral-400"}},{disabled:false,variant:"ghost",className:{container:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset active:ring-0"}},{disabled:true,variant:"ghost",className:{container:""}},{disabled:false,variant:"standard",className:{container:"hover:bg-transparent-primary-20 focus:bg-opacity-0 focus:ring-primary-800 active:bg-transparent-primary-40 text-neutral-900 focus:bg-neutral-50 focus:ring-[3px] focus:ring-inset active:ring-0"}},{disabled:true,variant:"standard",className:{container:""}}],defaultVariants:{variant:"contained",size:"sm",disabled:false}}),J=ia.forwardRef(({className:e,variant:t,disabled:o,Icon:a,size:r,type:l="button",iconClassName:s,...c},f)=>{let{container:L,icon:m}=ga({variant:t,size:r,disabled:o});return jsxRuntime.jsx("button",{ref:f,disabled:o,className:L({className:e}),type:l,...c,children:jsxRuntime.jsx(a,{className:m({className:s})})})});var ze=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ca=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,a)=>a?a.toUpperCase():o.toLowerCase()),Le=e=>{let t=Ca(e);return t.charAt(0).toUpperCase()+t.slice(1)},ue=(...e)=>e.filter((t,o,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===o).join(" ").trim(),Ge=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return true};var Ve={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Ne=ia.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:r="",children:l,iconNode:s,...c},f)=>ia.createElement("svg",{ref:f,...Ve,width:t,height:t,stroke:e,strokeWidth:a?Number(o)*24/Number(t):o,className:ue("lucide",r),...!l&&!Ge(c)&&{"aria-hidden":"true"},...c},[...s.map(([L,m])=>ia.createElement(L,m)),...Array.isArray(l)?l:[l]]));var A=(e,t)=>{let o=ia.forwardRef(({className:a,...r},l)=>ia.createElement(Ne,{ref:l,iconNode:t,className:ue(`lucide-${ze(Le(e))}`,`lucide-${e}`,a),...r}));return o.displayName=Le(e),o};var ba=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Q=A("check",ba);var ka=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],_=A("chevrons-down-up",ka);var Pa=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],j=A("chevrons-up-down",Pa);var ya=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],D=A("loader-circle",ya);var Aa=[["path",{d:"M5 12h14",key:"1ays0h"}]],Y=A("minus",Aa);var We=D;var Xe=Q,Ke=Y;var xe=_,Ie=j;function Ze(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=Ze(e[t]))&&(a&&(a+=" "),a+=o);}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function Je(){for(var e,t,o=0,a="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Ze(e))&&(a&&(a+=" "),a+=t);return a}var be="-",Ba=e=>{let t=Fa(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return {getClassGroupId:s=>{let c=s.split(be);return c[0]===""&&c.length!==1&&c.shift(),$e(c,t)||Ma(s)},getConflictingClassGroupIds:(s,c)=>{let f=o[s]||[];return c&&a[s]?[...f,...a[s]]:f}}},$e=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),r=a?$e(e.slice(1),a):void 0;if(r)return r;if(t.validators.length===0)return;let l=e.join(be);return t.validators.find(({validator:s})=>s(l))?.classGroupId},Qe=/^\[(.+)\]$/,Ma=e=>{if(Qe.test(e)){let t=Qe.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return "arbitrary.."+o}},Fa=e=>{let{theme:t,classGroups:o}=e,a={nextPart:new Map,validators:[]};for(let r in o)he(o[r],a,r,t);return a},he=(e,t,o,a)=>{e.forEach(r=>{if(typeof r=="string"){let l=r===""?t:_e(t,r);l.classGroupId=o;return}if(typeof r=="function"){if(Da(r)){he(r(a),t,o,a);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([l,s])=>{he(s,_e(t,l),o,a);});});},_e=(e,t)=>{let o=e;return t.split(be).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a);}),o},Da=e=>e.isThemeGetter,va=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,r=(l,s)=>{o.set(l,s),t++,t>e&&(t=0,a=o,o=new Map);};return {get(l){let s=o.get(l);if(s!==void 0)return s;if((s=a.get(l))!==void 0)return r(l,s),s},set(l,s){o.has(l)?o.set(l,s):r(l,s);}}},Se="!",we=":",Ra=we.length,Ta=e=>{let{prefix:t,experimentalParseClassName:o}=e,a=r=>{let l=[],s=0,c=0,f=0,L;for(let x=0;x<r.length;x++){let h=r[x];if(s===0&&c===0){if(h===we){l.push(r.slice(f,x)),f=x+Ra;continue}if(h==="/"){L=x;continue}}h==="["?s++:h==="]"?s--:h==="("?c++:h===")"&&c--;}let m=l.length===0?r:r.substring(f),S=qa(m),P=S!==m,y=L&&L>f?L-f:void 0;return {modifiers:l,hasImportantModifier:P,baseClassName:S,maybePostfixModifierPosition:y}};if(t){let r=t+we,l=a;a=s=>s.startsWith(r)?l(s.substring(r.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:s,maybePostfixModifierPosition:void 0};}if(o){let r=a;a=l=>o({className:l,parseClassName:r});}return a},qa=e=>e.endsWith(Se)?e.substring(0,e.length-1):e.startsWith(Se)?e.substring(1):e,Ua=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,true]));return a=>{if(a.length<=1)return a;let r=[],l=[];return a.forEach(s=>{s[0]==="["||t[s]?(r.push(...l.sort(),s),l=[]):l.push(s);}),r.push(...l.sort()),r}},Oa=e=>({cache:va(e.cacheSize),parseClassName:Ta(e),sortModifiers:Ua(e),...Ba(e)}),Ha=/\s+/,za=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:l}=t,s=[],c=e.trim().split(Ha),f="";for(let L=c.length-1;L>=0;L-=1){let m=c[L],{isExternal:S,modifiers:P,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:h}=o(m);if(S){f=m+(f.length>0?" "+f:f);continue}let H=!!h,R=a(H?x.substring(0,h):x);if(!R){if(!H){f=m+(f.length>0?" "+f:f);continue}if(R=a(x),!R){f=m+(f.length>0?" "+f:f);continue}H=false;}let ae=l(P).join(":"),K=y?ae+Se:ae,z=K+R;if(s.includes(z))continue;s.push(z);let G=r(R,H);for(let T=0;T<G.length;++T){let Z=G[T];s.push(K+Z);}f=m+(f.length>0?" "+f:f);}return f};function Ga(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ea(t))&&(a&&(a+=" "),a+=o);return a}var ea=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=ea(e[a]))&&(o&&(o+=" "),o+=t);return o};function Va(e,...t){let o,a,r,l=s;function s(f){let L=t.reduce((m,S)=>S(m),e());return o=Oa(L),a=o.cache.get,r=o.cache.set,l=c,c(f)}function c(f){let L=a(f);if(L)return L;let m=za(f,o);return r(f,m),m}return function(){return l(Ga.apply(null,arguments))}}var g=e=>{let t=o=>o[e]||[];return t.isThemeGetter=true,t},aa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ta=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ea=/^\d+\/\d+$/,Na=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wa=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ka=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Za=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>Ea.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),v=e=>!!e&&Number.isInteger(Number(e)),ge=e=>e.endsWith("%")&&p(e.slice(0,-1)),F=e=>Na.test(e),Ja=()=>true,Qa=e=>Wa.test(e)&&!Xa.test(e),oa=()=>false,_a=e=>Ka.test(e),ja=e=>Za.test(e),Ya=e=>!d(e)&&!u(e),$a=e=>N(e,da,oa),d=e=>aa.test(e),U=e=>N(e,ua,Qa),Ce=e=>N(e,rt,p),je=e=>N(e,ra,oa),et=e=>N(e,la,ja),se=e=>N(e,sa,_a),u=e=>ta.test(e),$=e=>W(e,ua),at=e=>W(e,lt),Ye=e=>W(e,ra),tt=e=>W(e,da),ot=e=>W(e,la),fe=e=>W(e,sa,true),N=(e,t,o)=>{let a=aa.exec(e);return a?a[1]?t(a[1]):o(a[2]):false},W=(e,t,o=false)=>{let a=ta.exec(e);return a?a[1]?t(a[1]):o:false},ra=e=>e==="position"||e==="percentage",la=e=>e==="image"||e==="url",da=e=>e==="length"||e==="size"||e==="bg-size",ua=e=>e==="length",rt=e=>e==="number",lt=e=>e==="family-name",sa=e=>e==="shadow";var dt=()=>{let e=g("color"),t=g("font"),o=g("text"),a=g("font-weight"),r=g("tracking"),l=g("leading"),s=g("breakpoint"),c=g("container"),f=g("spacing"),L=g("radius"),m=g("shadow"),S=g("inset-shadow"),P=g("text-shadow"),y=g("drop-shadow"),x=g("blur"),h=g("perspective"),H=g("aspect"),R=g("ease"),ae=g("animate"),K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...z(),u,d],T=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],n=()=>[u,d,f],B=()=>[E,"full","auto",...n()],Fe=()=>[v,"none","subgrid",u,d],De=()=>["auto",{span:["full",v,u,d]},v,u,d],te=()=>[v,"auto",u,d],ve=()=>["auto","min","max","fr",u,d],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...n()],q=()=>[E,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...n()],i=()=>[e,u,d],Re=()=>[...z(),Ye,je,{position:[u,d]}],Te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],qe=()=>["auto","cover","contain",tt,$a,{size:[u,d]}],pe=()=>[ge,$,U],b=()=>["","none","full",L,u,d],k=()=>["",p,$,U],oe=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[p,ge,Ye,je],Oe=()=>["","none",x,u,d],re=()=>["none",p,u,d],le=()=>["none",p,u,d],me=()=>[p,u,d],de=()=>[E,"full",...n()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[F],breakpoint:[F],color:[Ja],container:[F],"drop-shadow":[F],ease:["in","out","in-out"],font:[Ya],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[F],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[F],shadow:[F],spacing:["px",p],text:[F],"text-shadow":[F],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",E,d,u,H]}],container:["container"],columns:[{columns:[p,d,u,c]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[v,"auto",u,d]}],basis:[{basis:[E,"full","auto",c,...n()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,E,"auto","initial","none",d]}],grow:[{grow:["",p,u,d]}],shrink:[{shrink:["",p,u,d]}],order:[{order:[v,"first","last","none",u,d]}],"grid-cols":[{"grid-cols":Fe()}],"col-start-end":[{col:De()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":Fe()}],"row-start-end":[{row:De()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:n()}],"gap-x":[{"gap-x":n()}],"gap-y":[{"gap-y":n()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:n()}],px:[{px:n()}],py:[{py:n()}],ps:[{ps:n()}],pe:[{pe:n()}],pt:[{pt:n()}],pr:[{pr:n()}],pb:[{pb:n()}],pl:[{pl:n()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":n()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":n()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[c,"screen",...q()]}],"min-w":[{"min-w":[c,"screen","none",...q()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",o,$,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,u,Ce]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ge,d]}],"font-family":[{font:[at,d,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,u,d]}],"line-clamp":[{"line-clamp":[p,"none",u,Ce]}],leading:[{leading:[l,...n()]}],"list-image":[{"list-image":["none",u,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:i()}],"text-color":[{text:i()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",u,U]}],"text-decoration-color":[{decoration:i()}],"underline-offset":[{"underline-offset":[p,"auto",u,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:n()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Re()}],"bg-repeat":[{bg:Te()}],"bg-size":[{bg:qe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},v,u,d],radial:["",u,d],conic:[v,u,d]},ot,et]}],"bg-color":[{bg:i()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:i()}],"gradient-via":[{via:i()}],"gradient-to":[{to:i()}],rounded:[{rounded:b()}],"rounded-s":[{"rounded-s":b()}],"rounded-e":[{"rounded-e":b()}],"rounded-t":[{"rounded-t":b()}],"rounded-r":[{"rounded-r":b()}],"rounded-b":[{"rounded-b":b()}],"rounded-l":[{"rounded-l":b()}],"rounded-ss":[{"rounded-ss":b()}],"rounded-se":[{"rounded-se":b()}],"rounded-ee":[{"rounded-ee":b()}],"rounded-es":[{"rounded-es":b()}],"rounded-tl":[{"rounded-tl":b()}],"rounded-tr":[{"rounded-tr":b()}],"rounded-br":[{"rounded-br":b()}],"rounded-bl":[{"rounded-bl":b()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:i()}],"border-color-x":[{"border-x":i()}],"border-color-y":[{"border-y":i()}],"border-color-s":[{"border-s":i()}],"border-color-e":[{"border-e":i()}],"border-color-t":[{"border-t":i()}],"border-color-r":[{"border-r":i()}],"border-color-b":[{"border-b":i()}],"border-color-l":[{"border-l":i()}],"divide-color":[{divide:i()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,u,d]}],"outline-w":[{outline:["",p,$,U]}],"outline-color":[{outline:i()}],shadow:[{shadow:["","none",m,fe,se]}],"shadow-color":[{shadow:i()}],"inset-shadow":[{"inset-shadow":["none",S,fe,se]}],"inset-shadow-color":[{"inset-shadow":i()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:i()}],"ring-offset-w":[{"ring-offset":[p,U]}],"ring-offset-color":[{"ring-offset":i()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":i()}],"text-shadow":[{"text-shadow":["none",P,fe,se]}],"text-shadow-color":[{"text-shadow":i()}],opacity:[{opacity:[p,u,d]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":i()}],"mask-image-linear-to-color":[{"mask-linear-to":i()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":i()}],"mask-image-t-to-color":[{"mask-t-to":i()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":i()}],"mask-image-r-to-color":[{"mask-r-to":i()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":i()}],"mask-image-b-to-color":[{"mask-b-to":i()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":i()}],"mask-image-l-to-color":[{"mask-l-to":i()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":i()}],"mask-image-x-to-color":[{"mask-x-to":i()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":i()}],"mask-image-y-to-color":[{"mask-y-to":i()}],"mask-image-radial":[{"mask-radial":[u,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":i()}],"mask-image-radial-to-color":[{"mask-radial-to":i()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":z()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":i()}],"mask-image-conic-to-color":[{"mask-conic-to":i()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Re()}],"mask-repeat":[{mask:Te()}],"mask-size":[{mask:qe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,d]}],filter:[{filter:["","none",u,d]}],blur:[{blur:Oe()}],brightness:[{brightness:[p,u,d]}],contrast:[{contrast:[p,u,d]}],"drop-shadow":[{"drop-shadow":["","none",y,fe,se]}],"drop-shadow-color":[{"drop-shadow":i()}],grayscale:[{grayscale:["",p,u,d]}],"hue-rotate":[{"hue-rotate":[p,u,d]}],invert:[{invert:["",p,u,d]}],saturate:[{saturate:[p,u,d]}],sepia:[{sepia:["",p,u,d]}],"backdrop-filter":[{"backdrop-filter":["","none",u,d]}],"backdrop-blur":[{"backdrop-blur":Oe()}],"backdrop-brightness":[{"backdrop-brightness":[p,u,d]}],"backdrop-contrast":[{"backdrop-contrast":[p,u,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,u,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,u,d]}],"backdrop-invert":[{"backdrop-invert":["",p,u,d]}],"backdrop-opacity":[{"backdrop-opacity":[p,u,d]}],"backdrop-saturate":[{"backdrop-saturate":[p,u,d]}],"backdrop-sepia":[{"backdrop-sepia":["",p,u,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":n()}],"border-spacing-x":[{"border-spacing-x":n()}],"border-spacing-y":[{"border-spacing-y":n()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",u,d]}],ease:[{ease:["linear","initial",R,u,d]}],delay:[{delay:[p,u,d]}],animate:[{animate:["none",ae,u,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,u,d]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[u,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":["translate-none"],accent:[{accent:i()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:i()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u,d]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":n()}],"scroll-mx":[{"scroll-mx":n()}],"scroll-my":[{"scroll-my":n()}],"scroll-ms":[{"scroll-ms":n()}],"scroll-me":[{"scroll-me":n()}],"scroll-mt":[{"scroll-mt":n()}],"scroll-mr":[{"scroll-mr":n()}],"scroll-mb":[{"scroll-mb":n()}],"scroll-ml":[{"scroll-ml":n()}],"scroll-p":[{"scroll-p":n()}],"scroll-px":[{"scroll-px":n()}],"scroll-py":[{"scroll-py":n()}],"scroll-ps":[{"scroll-ps":n()}],"scroll-pe":[{"scroll-pe":n()}],"scroll-pt":[{"scroll-pt":n()}],"scroll-pr":[{"scroll-pr":n()}],"scroll-pb":[{"scroll-pb":n()}],"scroll-pl":[{"scroll-pl":n()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u,d]}],fill:[{fill:["none",...i()]}],"stroke-w":[{stroke:[p,$,U,Ce]}],stroke:[{stroke:["none",...i()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var fa=Va(dt);function w(...e){return fa(Je(e))}var ft=tailwindVariants.tv({slots:{button:"font-inter flex shrink-0 items-center justify-center gap-2 rounded-lg text-base leading-[130%] font-semibold transition-all ease-linear disabled:cursor-not-allowed disabled:ring-0",icon:"",loadingIcon:"absolute animate-spin text-neutral-400"},variants:{size:{lg:{button:"h-12 px-4",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},md:{button:"h-10 px-4 text-sm leading-[130%]",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},sm:{button:"h-8 gap-1 px-3 text-sm leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"},xs:{button:"h-6 gap-1 rounded-[6px] px-3 text-xs leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"}},variant:{contained:{button:"bg-primary-500 hover:bg-primary-600 focus:bg-primary-500 focus:ring-primary-800 active:bg-primary-700 text-neutral-50 focus:ring-[3px] focus:ring-inset active:ring-0 disabled:bg-neutral-100 disabled:text-neutral-400"},secondary:{button:"text-primary-500 ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-primary-700 ring-[1.5px] ring-inset focus:ring-[3px] disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400"},outlined:{button:"focus:bg-opacity-0 focus:ring-primary-900 [&:not([disabled])]:hover:bg-transparent-primary-20 [&:not([disabled])]:active:bg-transparent-primary-40 leading-[130%] text-neutral-900 ring-[1.5px] ring-neutral-900 ring-inset focus:bg-neutral-50 focus:ring-[3px] active:ring-[1.5px] disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400"},ghost:{button:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-opacity-0 focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 disabled:bg-opacity-0 focus:bg-neutral-50 focus:ring-[3px] focus:ring-inset active:ring-0 disabled:bg-neutral-50 disabled:text-neutral-400"},standard:{button:"hover:bg-transparent-primary-20 focus:ring-primary-800 active:bg-transparent-primary-40 disabled:bg-opacity-0 text-neutral-900 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset active:ring-0 disabled:bg-neutral-50 disabled:text-neutral-400"},link:{button:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:text-primary-500 focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 disabled:bg-opacity-0 underline underline-offset-2 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset active:ring-0 disabled:bg-neutral-50 disabled:text-neutral-400"},white:{button:"bg-neutral-50 text-neutral-900"}},loading:{true:{button:"disabled:text-opacity-0 disabled:text-neutral-50"}}},defaultVariants:{variant:"contained",size:"md",loading:false,disabled:false}}),Pe=ia.forwardRef(({children:e,className:t,variant:o,size:a,startIcon:r,endIcon:l,loading:s,disabled:c,type:f="button",StartIcon:L,EndIcon:m,...S},P)=>{let{button:y,icon:x,loadingIcon:h}=ft({variant:o,size:a,loading:s});return jsxRuntime.jsxs("button",{...S,ref:P,disabled:s||c,className:w(y(),t),type:f,children:[s&&jsxRuntime.jsx(We,{className:h()}),r&&ia__default.default.cloneElement(r,{className:x()}),L&&jsxRuntime.jsx(L,{className:x()}),e,l&&ia__default.default.cloneElement(l,{className:x()}),m&&jsxRuntime.jsx(m,{className:x()})]})});var ye=({closeDelay:e=500,closeOnClick:t=true,closeOnEscape:o=true,closeOnPointerDown:a=true,closeOnScroll:r=true,interactive:l=true,lazyMount:s=false,openDelay:c=700,unmountOnExit:f=false,content:L,children:m,asChild:S=true,contentClassName:P,className:y,...x})=>jsxRuntime.jsxs(tooltip.TooltipRoot,{closeDelay:e,closeOnClick:t,closeOnEscape:o,closeOnPointerDown:a,closeOnScroll:r,interactive:l,lazyMount:s,openDelay:c,unmountOnExit:f,...x,children:[jsxRuntime.jsx(tooltip.TooltipTrigger,{asChild:S,className:w("cursor-inherit text-left",y),children:S?jsxRuntime.jsx("div",{children:m}):m}),jsxRuntime.jsx(tooltip.TooltipPositioner,{children:jsxRuntime.jsxs(tooltip.TooltipContent,{className:w("font-inter z-30 rounded-lg bg-neutral-900 px-3 py-2 text-center text-sm leading-[142.86%] whitespace-break-spaces text-neutral-50","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[placement=left]:text-right data-[placement=left-end]:text-right data-[placement=left-start]:text-right","data-[placement=left]:origin-right data-[placement=left-end]:origin-bottom-right data-[placement=left-start]:origin-top-right","data-[placement=right-end]:right-right data-[placement=right]:text-right data-[placement=right-start]:text-right","data-[placement=right]:origin-left data-[placement=right-end]:origin-bottom-left data-[placement=right-start]:origin-top-left","data-[placement=top]:origin-bottom data-[placement=top-end]:origin-bottom-right data-[placement=top-start]:origin-bottom-left","data-[placement=bottom]:origin-top data-[placement=bottom-end]:origin-top-right data-[placement=bottom-start]:origin-top-left","data-[placement=left]:text-right data-[placement=left-end]:text-right data-[placement=left-start]:text-right","data-[placement=right]:text-left data-[placement=right-end]:text-left data-[placement=right-start]:text-left",P),children:[jsxRuntime.jsx(tooltip.TooltipArrow,{children:jsxRuntime.jsx(tooltip.TooltipArrowTip,{})}),L]})})]});var gt=cva.cva({base:"flex w-fit items-center rounded-2xl tracking-normal",variants:{variant:{success:"",info:"",warning:"",error:"",generic:""},size:{xs:"min-h-4.5 rounded-2xl px-2 text-xs leading-[130%]",sm:"min-h-6 rounded-2xl px-2 py-0.75 text-sm leading-[120%]",md:"min-h-8 rounded-3xl px-3 py-1 text-base leading-[130%]"},type:{light:"",full:""},disabled:{true:"bg-neutral-100 text-neutral-400",false:""}},compoundVariants:[{variant:"success",type:"light",disabled:false,className:"bg-success-100 text-success-700"},{variant:"success",type:"full",disabled:false,className:"bg-success-300 text-neutral-50"},{variant:"info",type:"light",disabled:false,className:"bg-info-100 text-info-700"},{variant:"info",type:"full",disabled:false,className:"bg-info-300 text-neutral-50"},{variant:"warning",type:"light",disabled:false,className:"bg-warning-100 text-warning-700"},{variant:"warning",type:"full",disabled:false,className:"bg-warning-500 text-warning-900"},{variant:"error",type:"light",disabled:false,className:"bg-error-100 text-error-700"},{variant:"error",type:"full",disabled:false,className:"bg-error-500 text-neutral-50"},{variant:"generic",type:"light",disabled:false,className:"bg-primary-200 text-primary-600"},{variant:"generic",type:"full",disabled:false,className:"bg-primary-500 text-neutral-50"}],defaultVariants:{disabled:false,size:"sm"}}),Ae=({size:e,variant:t,className:o,type:a,disabled:r,StartIcon:l,children:s,...c})=>jsxRuntime.jsxs("span",{className:gt({variant:t,size:e,type:a,disabled:r,className:o}),...c,children:[l&&jsxRuntime.jsx(l,{size:14,className:"mr-1"}),s]});var wt=tailwindVariants.tv({slots:{container:"group/expandable-chip ml-auto flex h-4.5 w-4.5 min-w-4.5 origin-right items-center justify-center overflow-hidden rounded-full px-0.5 py-0.25 transition-all duration-300 ease-in-out hover:w-fit hover:justify-start hover:px-2",icon:"h-3.5 w-3.5 shrink-0 transition-all duration-300 group-hover/expandable-chip:mr-2",text:"w-0 overflow-hidden text-xs leading-[130%] whitespace-nowrap opacity-0 transition-all duration-300 group-hover/expandable-chip:w-auto group-hover/expandable-chip:opacity-100"},variants:{variant:{success:"",info:"",warning:"",error:"",generic:"",neutral:""},type:{light:"",full:""}},compoundVariants:[{variant:"success",type:"light",className:{container:"bg-success-100 text-success-700",icon:"text-success-700",text:"text-success-700"}},{variant:"success",type:"full",className:{container:"bg-success-300",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"info",type:"light",className:{container:"bg-info-100",icon:"text-info-700",text:"text-info-700"}},{variant:"info",type:"full",className:{container:"bg-info-300",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"warning",type:"light",className:{container:"bg-warning-100",icon:"text-warning-700",text:"text-warning-700"}},{variant:"warning",type:"full",className:{container:"bg-warning-500",icon:"text-warning-900",text:"text-warning-900"}},{variant:"error",type:"light",className:{container:"bg-error-100",icon:"text-error-700",text:"text-error-700"}},{variant:"error",type:"full",className:{container:"bg-error-500",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"generic",type:"light",className:{container:"bg-primary-200",icon:"text-primary-600",text:"text-primary-600"}},{variant:"generic",type:"full",className:{container:"bg-primary-500",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"neutral",type:"light",className:{container:"bg-neutral-100",icon:"text-neutral-700",text:"text-neutral-700"}},{variant:"neutral",type:"full",className:{container:"bg-neutral-300",icon:"text-neutral-100",text:"text-neutral-100"}}]}),Be=({label:e,variant:t,type:o,StartIcon:a})=>{let{container:r,icon:l,text:s}=wt({variant:t,type:o});return jsxRuntime.jsxs("div",{className:r(),children:[a&&jsxRuntime.jsx(a,{className:l()}),jsxRuntime.jsx("span",{className:s(),children:e})]})};var Me=({className:e,label:t,size:o="md",disabled:a=false,onCheckedChange:r,...l})=>{let s=ia.useCallback(c=>{r?.(c.checked);},[r]);return jsxRuntime.jsxs(react.CheckboxRoot,{"data-size":o,className:w("group relative flex h-fit w-fit items-center data-disabled:cursor-not-allowed data-[size=md]:gap-2.5 data-[size=sm]:gap-2",e),disabled:a,onCheckedChange:s,...l,children:[jsxRuntime.jsxs(react.CheckboxControl,{className:w("group-data-[size=md]:mt-0.125 relative flex items-center justify-center rounded-xs ring-1 ring-neutral-900 transition-all ring-inset group-data-[size=sm]:mt-0.25 after:absolute after:rounded-full","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4 group-data-[size=sm]:after:h-6 group-data-[size=sm]:after:w-6","group-data-[size=md]:h-5 group-data-[size=md]:w-5 group-data-[size=md]:after:-top-1.5 group-data-[size=md]:after:-left-1.5 group-data-[size=md]:after:h-8 group-data-[size=md]:after:w-8",!a&&"group-hover:after:bg-transparent-primary-20 data-[state=unchecked]:group-hover:ring-primary-600",!a&&"data-[state=checked]:group-active:bg-primary-700 data-[state=indeterminate]:group-active:bg-primary-700 data-[state=unchecked]:group-active:ring-primary-700",!a&&"data-[state=checked]:bg-primary-500 data-[state=checked]:group-hover:bg-primary-600 data-[state=checked]:ring-0",!a&&"data-[state=indeterminate]:bg-primary-500 data-[state=indeterminate]:group-hover:bg-primary-600 data-[state=indeterminate]:ring-0",a&&"data-[state=checked]:data-disabled:bg-neutral-500 data-[state=checked]:data-disabled:ring-0",a&&"data-[state=unchecked]:data-disabled:ring-neutral-500",a&&"data-[state=indeterminate]:data-disabled:bg-neutral-500 data-[state=indeterminate]:data-disabled:ring-0"),children:[jsxRuntime.jsx(react.CheckboxIndicator,{children:jsxRuntime.jsx(Xe,{className:w("text-neutral-50","group-data-[size=md]:h-4.5 group-data-[size=md]:w-4.5","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4")})}),jsxRuntime.jsx(react.CheckboxIndicator,{indeterminate:true,children:jsxRuntime.jsx(Ke,{className:w("text-neutral-50","group-data-[size=md]:h-4.5 group-data-[size=md]:w-4.5","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4")})})]}),t&&jsxRuntime.jsx(react.CheckboxLabel,{className:w("font-inter text-sm leading-[130%]!",!a&&"text-neutral-900",a&&"text-neutral-500"),children:t}),jsxRuntime.jsx(react.CheckboxHiddenInput,{})]})};var ne=tailwindVariants.tv({slots:{root:"bg-neutral-80 ring-expandable-card-border group/expandable-card flex h-fit flex-col rounded-lg ring transition-all duration-200 ease-in-out ring-inset",header:"flex pt-3 pr-1 pb-2 pl-3",headerLabel:"text-sm leading-[130%] font-semibold empty:hidden",headerValue:"",content:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up border-expandable-card-border overflow-hidden group-data-[state=open]/expandable-card:border-t",contentInner:"px-3 pt-4 pb-6",fixedContent:"border-expandable-card-border border-t px-3 pt-6 pb-4"},variants:{headerAlign:{vertical:{},horizontal:{}}},compoundVariants:[{headerAlign:"vertical",className:{header:"gap-2",headerValue:"text-xs leading-[130%] text-neutral-700",headerLabel:"line-clamp-1"}},{headerAlign:"horizontal",className:{header:"items-center justify-between gap-3",headerValue:"line-clamp-1 text-sm leading-[130%] text-neutral-900",headerLabel:"mr-3"}}]}),Tr=({headerLabel:e,headerValue:t,className:o,action:a,chipStatus:r,chipExpandable:l,iconButtons:s,headerAlign:c="horizontal",checkbox:f,...L})=>{let{header:m,headerLabel:S,headerValue:P}=ne({headerAlign:c}),y=collapsible.useCollapsibleContext();return c==="horizontal"?jsxRuntime.jsxs("div",{...L,className:m({className:o}),children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[f&&jsxRuntime.jsx(Me,{...f,className:w("m-1",f.className),size:"sm"}),jsxRuntime.jsxs("p",{className:P(),children:[jsxRuntime.jsx("b",{className:S(),children:e}),t]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[r&&jsxRuntime.jsx(Ae,{...r,size:"xs",type:"light"}),l&&jsxRuntime.jsx(Be,{...l,type:"light"}),s?.map((x,h)=>ia.createElement(J,{...x,key:h,variant:"standard",size:"xs"})),a&&jsxRuntime.jsx(ye,{content:a.tooltipContent,disabled:!a.tooltipContent,children:jsxRuntime.jsx(Pe,{...a,size:"xs",variant:"standard"})}),jsxRuntime.jsx(collapsible.Collapsible.Trigger,{asChild:true,children:jsxRuntime.jsx(J,{Icon:y.open?xe:Ie,variant:"standard",size:"xs"})})]})]}):jsxRuntime.jsxs("div",{...L,className:m({className:o}),children:[f&&jsxRuntime.jsx(Me,{...f,className:w("m-1",f.className),size:"sm"}),jsxRuntime.jsxs("div",{className:"grid flex-1 grid-cols-[1fr_auto] grid-rows-[auto_auto] gap-x-2 gap-y-1",children:[jsxRuntime.jsx("p",{className:w("col-start-1 row-start-1",S()),children:e}),jsxRuntime.jsxs("div",{className:"col-start-2 row-start-1 flex items-center gap-2",children:[r&&jsxRuntime.jsx(Ae,{...r,size:"xs",type:"light"}),l&&jsxRuntime.jsx(Be,{...l,type:"light"}),s?.map((x,h)=>ia.createElement(J,{...x,key:h,variant:"standard",size:"xs"})),a&&jsxRuntime.jsx(ye,{content:a.tooltipContent,disabled:!a.tooltipContent,children:jsxRuntime.jsx(Pe,{...a,size:"xs",variant:"standard"})}),jsxRuntime.jsx(collapsible.Collapsible.Trigger,{asChild:true,children:jsxRuntime.jsx(J,{Icon:y.open?xe:Ie,variant:"standard",size:"xs"})})]}),jsxRuntime.jsx("p",{className:w("col-span-2 row-start-2",P()),children:t})]})]})},qr=({className:e,...t})=>{let{contentInner:o,content:a}=ne();return jsxRuntime.jsx(collapsible.Collapsible.Content,{className:a(),children:jsxRuntime.jsx("div",{...t,className:o({className:e})})})},Ur=({className:e,...t})=>{let{fixedContent:o}=ne();return jsxRuntime.jsx("div",{...t,className:o({className:e})})},Or=({className:e,onOpenChange:t,children:o,...a})=>{let{root:r}=ne(),l=ia.useCallback(s=>{t?.(s);},[t]);return jsxRuntime.jsx(collapsible.Collapsible.Root,{onOpenChange:l,className:r({className:e}),...a,children:o})};/*! Bundled license information:
|
|
1
|
+
'use strict';var sa=require('react'),tailwindVariants=require('tailwind-variants'),collapsible=require('@ark-ui/react/collapsible'),jsxRuntime=require('react/jsx-runtime'),tooltip=require('@ark-ui/react/tooltip'),cva=require('cva'),react=require('@ark-ui/react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var sa__default=/*#__PURE__*/_interopDefault(sa);var Ca=tailwindVariants.tv({slots:{container:"font-inter flex items-center justify-center text-base font-semibold transition-all ring-inset",icon:""},variants:{variant:{contained:{},secondary:{},outlined:{},ghost:{},standard:{}},size:{lg:{container:"h-12 w-12 rounded-lg",icon:"h-6 w-6"},md:{container:"h-10 w-10 rounded-lg",icon:"h-6 w-6"},sm:{container:"h-8 w-8 rounded-lg",icon:"h-4.5 w-4.5"},xs:{container:"h-5.5 w-5.5 rounded-sm",icon:"h-4.5 w-4.5"}},disabled:{true:{},false:{}}},compoundVariants:[{disabled:true,className:{container:"cursor-not-allowed text-neutral-400"}},{disabled:false,className:{container:"cursor-pointer"}},{disabled:false,variant:"contained",className:{container:"bg-primary-500 hover:bg-primary-600 focus:bg-primary-500 focus:ring-primary-800 active:bg-primary-700 text-neutral-50 focus:ring-[3px] focus:ring-inset active:ring-0"}},{disabled:true,variant:"contained",className:{container:"bg-neutral-100 ring-0"}},{disabled:false,variant:"secondary",className:{container:"text-primary-500 ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:text-primary-500 focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-primary-700 ring-[1.5px] ring-inset focus:bg-neutral-50/0 focus:ring-[3px] active:ring-[1.5px]"}},{disabled:true,variant:"secondary",className:{container:"ring-neutral-400 disabled:ring-[1.5px]"}},{disabled:false,variant:"outlined",className:{container:"hover:bg-transparent-primary-20 active:bg-transparent-primary-40 text-neutral-900 ring-[1.5px] ring-neutral-900 focus:ring-[3px]"}},{disabled:true,variant:"outlined",className:{container:"text-neutral-400 ring-[1.5px] ring-neutral-400"}},{disabled:false,variant:"ghost",className:{container:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset active:ring-0"}},{disabled:true,variant:"ghost",className:{container:""}},{disabled:false,variant:"standard",className:{container:"hover:bg-transparent-primary-20 focus:bg-opacity-0 focus:ring-primary-800 active:bg-transparent-primary-40 text-neutral-900 focus:bg-neutral-50 focus:ring-[3px] focus:ring-inset active:ring-0"}},{disabled:true,variant:"standard",className:{container:""}}],defaultVariants:{variant:"contained",size:"sm",disabled:false}}),me=sa.forwardRef(({className:e,variant:t,disabled:o,Icon:a,size:r,type:s="button",iconClassName:u,...c},i)=>{let{container:L,icon:m}=Ca({variant:t,size:r,disabled:o});return jsxRuntime.jsx("button",{ref:i,disabled:o,className:L({className:e}),type:s,...c,children:jsxRuntime.jsx(a,{className:m({className:u})})})});var Te=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ha=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,o,a)=>a?a.toUpperCase():o.toLowerCase()),Le=e=>{let t=ha(e);return t.charAt(0).toUpperCase()+t.slice(1)},ue=(...e)=>e.filter((t,o,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===o).join(" ").trim(),qe=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return true};var Ue={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var He=sa.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:r="",children:s,iconNode:u,...c},i)=>sa.createElement("svg",{ref:i,...Ue,width:t,height:t,stroke:e,strokeWidth:a?Number(o)*24/Number(t):o,className:ue("lucide",r),...!s&&!qe(c)&&{"aria-hidden":"true"},...c},[...u.map(([L,m])=>sa.createElement(L,m)),...Array.isArray(s)?s:[s]]));var y=(e,t)=>{let o=sa.forwardRef(({className:a,...r},s)=>sa.createElement(He,{ref:s,iconNode:t,className:ue(`lucide-${Te(Le(e))}`,`lucide-${e}`,a),...r}));return o.displayName=Le(e),o};var ka=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Q=y("check",ka);var Pa=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],_=y("chevrons-down-up",Pa);var ya=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],j=y("chevrons-up-down",ya);var Aa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Y=y("info",Aa);var Ba=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],T=y("loader-circle",Ba);var Ma=[["path",{d:"M5 12h14",key:"1ays0h"}]],$=y("minus",Ma);var ze=T;var Ge=Y;var Ee=Q,Ve=$;var Ne=_,We=j;function Xe(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=Xe(e[t]))&&(a&&(a+=" "),a+=o);}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function Ke(){for(var e,t,o=0,a="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Xe(e))&&(a&&(a+=" "),a+=t);return a}var Se="-",Fa=e=>{let t=va(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return {getClassGroupId:u=>{let c=u.split(Se);return c[0]===""&&c.length!==1&&c.shift(),je(c,t)||Da(u)},getConflictingClassGroupIds:(u,c)=>{let i=o[u]||[];return c&&a[u]?[...i,...a[u]]:i}}},je=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),r=a?je(e.slice(1),a):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Se);return t.validators.find(({validator:u})=>u(s))?.classGroupId},Ze=/^\[(.+)\]$/,Da=e=>{if(Ze.test(e)){let t=Ze.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return "arbitrary.."+o}},va=e=>{let{theme:t,classGroups:o}=e,a={nextPart:new Map,validators:[]};for(let r in o)ge(o[r],a,r,t);return a},ge=(e,t,o,a)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Je(t,r);s.classGroupId=o;return}if(typeof r=="function"){if(Ra(r)){ge(r(a),t,o,a);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([s,u])=>{ge(u,Je(t,s),o,a);});});},Je=(e,t)=>{let o=e;return t.split(Se).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a);}),o},Ra=e=>e.isThemeGetter,Ta=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,r=(s,u)=>{o.set(s,u),t++,t>e&&(t=0,a=o,o=new Map);};return {get(s){let u=o.get(s);if(u!==void 0)return u;if((u=a.get(s))!==void 0)return r(s,u),u},set(s,u){o.has(s)?o.set(s,u):r(s,u);}}},Ce="!",he=":",qa=he.length,Ua=e=>{let{prefix:t,experimentalParseClassName:o}=e,a=r=>{let s=[],u=0,c=0,i=0,L;for(let x=0;x<r.length;x++){let S=r[x];if(u===0&&c===0){if(S===he){s.push(r.slice(i,x)),i=x+qa;continue}if(S==="/"){L=x;continue}}S==="["?u++:S==="]"?u--:S==="("?c++:S===")"&&c--;}let m=s.length===0?r:r.substring(i),h=Oa(m),A=h!==m,B=L&&L>i?L-i:void 0;return {modifiers:s,hasImportantModifier:A,baseClassName:h,maybePostfixModifierPosition:B}};if(t){let r=t+he,s=a;a=u=>u.startsWith(r)?s(u.substring(r.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:u,maybePostfixModifierPosition:void 0};}if(o){let r=a;a=s=>o({className:s,parseClassName:r});}return a},Oa=e=>e.endsWith(Ce)?e.substring(0,e.length-1):e.startsWith(Ce)?e.substring(1):e,Ha=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,true]));return a=>{if(a.length<=1)return a;let r=[],s=[];return a.forEach(u=>{u[0]==="["||t[u]?(r.push(...s.sort(),u),s=[]):s.push(u);}),r.push(...s.sort()),r}},za=e=>({cache:Ta(e.cacheSize),parseClassName:Ua(e),sortModifiers:Ha(e),...Fa(e)}),Ga=/\s+/,Ea=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:s}=t,u=[],c=e.trim().split(Ga),i="";for(let L=c.length-1;L>=0;L-=1){let m=c[L],{isExternal:h,modifiers:A,hasImportantModifier:B,baseClassName:x,maybePostfixModifierPosition:S}=o(m);if(h){i=m+(i.length>0?" "+i:i);continue}let v=!!S,k=a(v?x.substring(0,S):x);if(!k){if(!v){i=m+(i.length>0?" "+i:i);continue}if(k=a(x),!k){i=m+(i.length>0?" "+i:i);continue}v=false;}let R=s(A).join(":"),Z=B?R+Ce:R,z=Z+k;if(u.includes(z))continue;u.push(z);let G=r(k,v);for(let U=0;U<G.length;++U){let J=G[U];u.push(Z+J);}i=m+(i.length>0?" "+i:i);}return i};function Va(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Ye(t))&&(a&&(a+=" "),a+=o);return a}var Ye=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Ye(e[a]))&&(o&&(o+=" "),o+=t);return o};function Na(e,...t){let o,a,r,s=u;function u(i){let L=t.reduce((m,h)=>h(m),e());return o=za(L),a=o.cache.get,r=o.cache.set,s=c,c(i)}function c(i){let L=a(i);if(L)return L;let m=Ea(i,o);return r(i,m),m}return function(){return s(Va.apply(null,arguments))}}var I=e=>{let t=o=>o[e]||[];return t.isThemeGetter=true,t},$e=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ea=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Wa=/^\d+\/\d+$/,Xa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ka=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Za=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ja=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,V=e=>Wa.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&p(e.slice(0,-1)),D=e=>Xa.test(e),_a=()=>true,ja=e=>Ka.test(e)&&!Za.test(e),aa=()=>false,Ya=e=>Ja.test(e),$a=e=>Qa.test(e),et=e=>!l(e)&&!d(e),at=e=>N(e,ra,aa),l=e=>$e.test(e),H=e=>N(e,la,ja),Ie=e=>N(e,dt,p),Qe=e=>N(e,ta,aa),tt=e=>N(e,oa,$a),se=e=>N(e,da,Ya),d=e=>ea.test(e),ee=e=>W(e,la),ot=e=>W(e,ut),_e=e=>W(e,ta),rt=e=>W(e,ra),lt=e=>W(e,oa),fe=e=>W(e,da,true),N=(e,t,o)=>{let a=$e.exec(e);return a?a[1]?t(a[1]):o(a[2]):false},W=(e,t,o=false)=>{let a=ea.exec(e);return a?a[1]?t(a[1]):o:false},ta=e=>e==="position"||e==="percentage",oa=e=>e==="image"||e==="url",ra=e=>e==="length"||e==="size"||e==="bg-size",la=e=>e==="length",dt=e=>e==="number",ut=e=>e==="family-name",da=e=>e==="shadow";var st=()=>{let e=I("color"),t=I("font"),o=I("text"),a=I("font-weight"),r=I("tracking"),s=I("leading"),u=I("breakpoint"),c=I("container"),i=I("spacing"),L=I("radius"),m=I("shadow"),h=I("inset-shadow"),A=I("text-shadow"),B=I("drop-shadow"),x=I("blur"),S=I("perspective"),v=I("aspect"),k=I("ease"),R=I("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...z(),d,l],U=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],n=()=>[d,l,i],M=()=>[V,"full","auto",...n()],Pe=()=>[q,"none","subgrid",d,l],ye=()=>["auto",{span:["full",q,d,l]},q,d,l],te=()=>[q,"auto",d,l],Ae=()=>["auto","min","max","fr",d,l],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...n()],O=()=>[V,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...n()],f=()=>[e,d,l],Be=()=>[...z(),_e,Qe,{position:[d,l]}],Me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Fe=()=>["auto","cover","contain",rt,at,{size:[d,l]}],ce=()=>[xe,ee,H],w=()=>["","none","full",L,d,l],P=()=>["",p,ee,H],oe=()=>["solid","dashed","dotted","double"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[p,xe,_e,Qe],ve=()=>["","none",x,d,l],re=()=>["none",p,d,l],le=()=>["none",p,d,l],pe=()=>[p,d,l],de=()=>[V,"full",...n()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[_a],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[et],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[D],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[D],shadow:[D],spacing:["px",p],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",V,l,d,v]}],container:["container"],columns:[{columns:[p,l,d,c]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[q,"auto",d,l]}],basis:[{basis:[V,"full","auto",c,...n()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,V,"auto","initial","none",l]}],grow:[{grow:["",p,d,l]}],shrink:[{shrink:["",p,d,l]}],order:[{order:[q,"first","last","none",d,l]}],"grid-cols":[{"grid-cols":Pe()}],"col-start-end":[{col:ye()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":Pe()}],"row-start-end":[{row:ye()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ae()}],"auto-rows":[{"auto-rows":Ae()}],gap:[{gap:n()}],"gap-x":[{"gap-x":n()}],"gap-y":[{"gap-y":n()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:n()}],px:[{px:n()}],py:[{py:n()}],ps:[{ps:n()}],pe:[{pe:n()}],pt:[{pt:n()}],pr:[{pr:n()}],pb:[{pb:n()}],pl:[{pl:n()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":n()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":n()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[c,"screen",...O()]}],"min-w":[{"min-w":[c,"screen","none",...O()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",o,ee,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,d,Ie]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,l]}],"font-family":[{font:[ot,l,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,d,l]}],"line-clamp":[{"line-clamp":[p,"none",d,Ie]}],leading:[{leading:[s,...n()]}],"list-image":[{"list-image":["none",d,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:f()}],"text-color":[{text:f()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",d,H]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[p,"auto",d,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:n()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Be()}],"bg-repeat":[{bg:Me()}],"bg-size":[{bg:Fe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q,d,l],radial:["",d,l],conic:[q,d,l]},lt,tt]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:w()}],"rounded-s":[{"rounded-s":w()}],"rounded-e":[{"rounded-e":w()}],"rounded-t":[{"rounded-t":w()}],"rounded-r":[{"rounded-r":w()}],"rounded-b":[{"rounded-b":w()}],"rounded-l":[{"rounded-l":w()}],"rounded-ss":[{"rounded-ss":w()}],"rounded-se":[{"rounded-se":w()}],"rounded-ee":[{"rounded-ee":w()}],"rounded-es":[{"rounded-es":w()}],"rounded-tl":[{"rounded-tl":w()}],"rounded-tr":[{"rounded-tr":w()}],"rounded-br":[{"rounded-br":w()}],"rounded-bl":[{"rounded-bl":w()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:f()}],"border-color-x":[{"border-x":f()}],"border-color-y":[{"border-y":f()}],"border-color-s":[{"border-s":f()}],"border-color-e":[{"border-e":f()}],"border-color-t":[{"border-t":f()}],"border-color-r":[{"border-r":f()}],"border-color-b":[{"border-b":f()}],"border-color-l":[{"border-l":f()}],"divide-color":[{divide:f()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,d,l]}],"outline-w":[{outline:["",p,ee,H]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",m,fe,se]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",h,fe,se]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[p,H]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",A,fe,se]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[p,d,l]}],"mix-blend":[{"mix-blend":[...De(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":De()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":f()}],"mask-image-linear-to-color":[{"mask-linear-to":f()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":f()}],"mask-image-t-to-color":[{"mask-t-to":f()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":f()}],"mask-image-r-to-color":[{"mask-r-to":f()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":f()}],"mask-image-b-to-color":[{"mask-b-to":f()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":f()}],"mask-image-l-to-color":[{"mask-l-to":f()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":f()}],"mask-image-x-to-color":[{"mask-x-to":f()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[d,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":f()}],"mask-image-radial-to-color":[{"mask-radial-to":f()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":z()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":f()}],"mask-image-conic-to-color":[{"mask-conic-to":f()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Be()}],"mask-repeat":[{mask:Me()}],"mask-size":[{mask:Fe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,l]}],filter:[{filter:["","none",d,l]}],blur:[{blur:ve()}],brightness:[{brightness:[p,d,l]}],contrast:[{contrast:[p,d,l]}],"drop-shadow":[{"drop-shadow":["","none",B,fe,se]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",p,d,l]}],"hue-rotate":[{"hue-rotate":[p,d,l]}],invert:[{invert:["",p,d,l]}],saturate:[{saturate:[p,d,l]}],sepia:[{sepia:["",p,d,l]}],"backdrop-filter":[{"backdrop-filter":["","none",d,l]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[p,d,l]}],"backdrop-contrast":[{"backdrop-contrast":[p,d,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,d,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,d,l]}],"backdrop-invert":[{"backdrop-invert":["",p,d,l]}],"backdrop-opacity":[{"backdrop-opacity":[p,d,l]}],"backdrop-saturate":[{"backdrop-saturate":[p,d,l]}],"backdrop-sepia":[{"backdrop-sepia":["",p,d,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":n()}],"border-spacing-x":[{"border-spacing-x":n()}],"border-spacing-y":[{"border-spacing-y":n()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",d,l]}],ease:[{ease:["linear","initial",k,d,l]}],delay:[{delay:[p,d,l]}],animate:[{animate:["none",R,d,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,d,l]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[d,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":["translate-none"],accent:[{accent:f()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:f()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":n()}],"scroll-mx":[{"scroll-mx":n()}],"scroll-my":[{"scroll-my":n()}],"scroll-ms":[{"scroll-ms":n()}],"scroll-me":[{"scroll-me":n()}],"scroll-mt":[{"scroll-mt":n()}],"scroll-mr":[{"scroll-mr":n()}],"scroll-mb":[{"scroll-mb":n()}],"scroll-ml":[{"scroll-ml":n()}],"scroll-p":[{"scroll-p":n()}],"scroll-px":[{"scroll-px":n()}],"scroll-py":[{"scroll-py":n()}],"scroll-ps":[{"scroll-ps":n()}],"scroll-pe":[{"scroll-pe":n()}],"scroll-pt":[{"scroll-pt":n()}],"scroll-pr":[{"scroll-pr":n()}],"scroll-pb":[{"scroll-pb":n()}],"scroll-pl":[{"scroll-pl":n()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d,l]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[p,ee,H,Ie]}],stroke:[{stroke:["none",...f()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var ua=Na(st);function b(...e){return ua(Ke(e))}var nt=tailwindVariants.tv({slots:{button:"font-inter flex shrink-0 items-center justify-center gap-2 rounded-lg text-base leading-[130%] font-semibold transition-all ease-linear disabled:cursor-not-allowed disabled:ring-0",icon:"",loadingIcon:"absolute animate-spin text-neutral-400"},variants:{size:{lg:{button:"h-12 px-4",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},md:{button:"h-10 px-4 text-sm leading-[130%]",icon:"h-4.5 w-4.5",loadingIcon:"h-4.5 w-4.5"},sm:{button:"h-8 gap-1 px-3 text-sm leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"},xs:{button:"h-6 gap-1 rounded-[6px] px-3 text-xs leading-[130%]",icon:"h-3.5 w-3.5",loadingIcon:"h-3.5 w-3.5"}},variant:{contained:{button:"bg-primary-500 hover:bg-primary-600 focus:bg-primary-500 focus:ring-primary-800 active:bg-primary-700 text-neutral-50 focus:ring-[3px] focus:ring-inset active:ring-0 disabled:bg-neutral-100 disabled:text-neutral-400"},secondary:{button:"text-primary-500 ring-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 hover:ring-primary-600 focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 active:ring-primary-700 ring-[1.5px] ring-inset focus:ring-[3px] disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400"},outlined:{button:"focus:bg-opacity-0 focus:ring-primary-900 [&:not([disabled])]:hover:bg-transparent-primary-20 [&:not([disabled])]:active:bg-transparent-primary-40 leading-[130%] text-neutral-900 ring-[1.5px] ring-neutral-900 ring-inset focus:bg-neutral-50 focus:ring-[3px] active:ring-[1.5px] disabled:bg-neutral-50/0 disabled:text-neutral-400 disabled:ring-[1.5px] disabled:ring-neutral-400"},ghost:{button:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:bg-opacity-0 focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 disabled:bg-opacity-0 focus:bg-neutral-50 focus:ring-[3px] focus:ring-inset active:ring-0 disabled:bg-neutral-50 disabled:text-neutral-400"},standard:{button:"hover:bg-transparent-primary-20 focus:ring-primary-800 active:bg-transparent-primary-40 disabled:bg-opacity-0 text-neutral-900 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset active:ring-0 disabled:bg-neutral-50 disabled:text-neutral-400"},link:{button:"text-primary-500 hover:bg-transparent-primary-20 hover:text-primary-600 focus:text-primary-500 focus:ring-primary-800 active:bg-transparent-primary-40 active:text-primary-700 disabled:bg-opacity-0 underline underline-offset-2 focus:bg-neutral-50/0 focus:ring-[3px] focus:ring-inset active:ring-0 disabled:bg-neutral-50 disabled:text-neutral-400"},white:{button:"bg-neutral-50 text-neutral-900"}},loading:{true:{button:"disabled:text-opacity-0 disabled:text-neutral-50"}}},defaultVariants:{variant:"contained",size:"md",loading:false,disabled:false}}),fa=sa.forwardRef(({children:e,className:t,variant:o,size:a,startIcon:r,endIcon:s,loading:u,disabled:c,type:i="button",StartIcon:L,EndIcon:m,...h},A)=>{let{button:B,icon:x,loadingIcon:S}=nt({variant:o,size:a,loading:u});return jsxRuntime.jsxs("button",{...h,ref:A,disabled:u||c,className:b(B(),t),type:i,children:[u&&jsxRuntime.jsx(ze,{className:S()}),r&&sa__default.default.cloneElement(r,{className:x()}),L&&jsxRuntime.jsx(L,{className:x()}),e,s&&sa__default.default.cloneElement(s,{className:x()}),m&&jsxRuntime.jsx(m,{className:x()})]})});var be=({closeDelay:e=500,closeOnClick:t=true,closeOnEscape:o=true,closeOnPointerDown:a=true,closeOnScroll:r=true,interactive:s=true,lazyMount:u=false,openDelay:c=700,unmountOnExit:i=false,content:L,children:m,asChild:h=true,contentClassName:A,className:B,...x})=>jsxRuntime.jsxs(tooltip.TooltipRoot,{closeDelay:e,closeOnClick:t,closeOnEscape:o,closeOnPointerDown:a,closeOnScroll:r,interactive:s,lazyMount:u,openDelay:c,unmountOnExit:i,...x,children:[jsxRuntime.jsx(tooltip.TooltipTrigger,{asChild:h,className:b("cursor-inherit text-left",B),children:h?jsxRuntime.jsx("div",{children:m}):m}),jsxRuntime.jsx(tooltip.TooltipPositioner,{children:jsxRuntime.jsxs(tooltip.TooltipContent,{className:b("font-inter z-30 rounded-lg bg-neutral-900 px-3 py-2 text-center text-sm leading-[142.86%] whitespace-break-spaces text-neutral-50","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[placement=left]:text-right data-[placement=left-end]:text-right data-[placement=left-start]:text-right","data-[placement=left]:origin-right data-[placement=left-end]:origin-bottom-right data-[placement=left-start]:origin-top-right","data-[placement=right-end]:right-right data-[placement=right]:text-right data-[placement=right-start]:text-right","data-[placement=right]:origin-left data-[placement=right-end]:origin-bottom-left data-[placement=right-start]:origin-top-left","data-[placement=top]:origin-bottom data-[placement=top-end]:origin-bottom-right data-[placement=top-start]:origin-bottom-left","data-[placement=bottom]:origin-top data-[placement=bottom-end]:origin-top-right data-[placement=bottom-start]:origin-top-left","data-[placement=left]:text-right data-[placement=left-end]:text-right data-[placement=left-start]:text-right","data-[placement=right]:text-left data-[placement=right-end]:text-left data-[placement=right-start]:text-left",A),children:[jsxRuntime.jsx(tooltip.TooltipArrow,{children:jsxRuntime.jsx(tooltip.TooltipArrowTip,{})}),L]})})]});var ht=cva.cva({base:"flex w-fit items-center rounded-2xl tracking-normal",variants:{variant:{success:"",info:"",warning:"",error:"",generic:""},size:{xs:"min-h-4.5 rounded-2xl px-2 text-xs leading-[130%]",sm:"min-h-6 rounded-2xl px-2 py-0.75 text-sm leading-[120%]",md:"min-h-8 rounded-3xl px-3 py-1 text-base leading-[130%]"},type:{light:"",full:""},disabled:{true:"bg-neutral-100 text-neutral-400",false:""}},compoundVariants:[{variant:"success",type:"light",disabled:false,className:"bg-success-100 text-success-700"},{variant:"success",type:"full",disabled:false,className:"bg-success-300 text-neutral-50"},{variant:"info",type:"light",disabled:false,className:"bg-info-100 text-info-700"},{variant:"info",type:"full",disabled:false,className:"bg-info-300 text-neutral-50"},{variant:"warning",type:"light",disabled:false,className:"bg-warning-100 text-warning-700"},{variant:"warning",type:"full",disabled:false,className:"bg-warning-500 text-warning-900"},{variant:"error",type:"light",disabled:false,className:"bg-error-100 text-error-700"},{variant:"error",type:"full",disabled:false,className:"bg-error-500 text-neutral-50"},{variant:"generic",type:"light",disabled:false,className:"bg-primary-200 text-primary-600"},{variant:"generic",type:"full",disabled:false,className:"bg-primary-500 text-neutral-50"}],defaultVariants:{disabled:false,size:"sm"}}),na=({size:e,variant:t,className:o,type:a,disabled:r,StartIcon:s,children:u,...c})=>jsxRuntime.jsxs("span",{className:ht({variant:t,size:e,type:a,disabled:r,className:o}),...c,children:[s&&jsxRuntime.jsx(s,{size:14,className:"mr-1"}),u]});var kt=tailwindVariants.tv({slots:{container:"group/expandable-chip ml-auto flex h-4.5 w-4.5 min-w-4.5 origin-right items-center justify-center overflow-hidden rounded-full px-0.5 py-0.25 transition-all duration-300 ease-in-out hover:w-fit hover:justify-start hover:px-2",icon:"h-3.5 w-3.5 shrink-0 transition-all duration-300 group-hover/expandable-chip:mr-2",text:"w-0 overflow-hidden text-xs leading-[130%] whitespace-nowrap opacity-0 transition-all duration-300 group-hover/expandable-chip:w-auto group-hover/expandable-chip:opacity-100"},variants:{variant:{success:"",info:"",warning:"",error:"",generic:"",neutral:""},type:{light:"",full:""}},compoundVariants:[{variant:"success",type:"light",className:{container:"bg-success-100 text-success-700",icon:"text-success-700",text:"text-success-700"}},{variant:"success",type:"full",className:{container:"bg-success-300",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"info",type:"light",className:{container:"bg-info-100",icon:"text-info-700",text:"text-info-700"}},{variant:"info",type:"full",className:{container:"bg-info-300",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"warning",type:"light",className:{container:"bg-warning-100",icon:"text-warning-700",text:"text-warning-700"}},{variant:"warning",type:"full",className:{container:"bg-warning-500",icon:"text-warning-900",text:"text-warning-900"}},{variant:"error",type:"light",className:{container:"bg-error-100",icon:"text-error-700",text:"text-error-700"}},{variant:"error",type:"full",className:{container:"bg-error-500",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"generic",type:"light",className:{container:"bg-primary-200",icon:"text-primary-600",text:"text-primary-600"}},{variant:"generic",type:"full",className:{container:"bg-primary-500",icon:"text-neutral-50",text:"text-neutral-50"}},{variant:"neutral",type:"light",className:{container:"bg-neutral-100",icon:"text-neutral-700",text:"text-neutral-700"}},{variant:"neutral",type:"full",className:{container:"bg-neutral-300",icon:"text-neutral-100",text:"text-neutral-100"}}]}),pa=({label:e,variant:t,type:o,StartIcon:a})=>{let{container:r,icon:s,text:u}=kt({variant:t,type:o});return jsxRuntime.jsxs("div",{className:r(),children:[a&&jsxRuntime.jsx(a,{className:s()}),jsxRuntime.jsx("span",{className:u(),children:e})]})};var xa=({className:e,label:t,size:o="md",disabled:a=false,onCheckedChange:r,...s})=>{let u=sa.useCallback(c=>{r?.(c.checked);},[r]);return jsxRuntime.jsxs(react.CheckboxRoot,{"data-size":o,className:b("group relative flex h-fit w-fit items-center data-disabled:cursor-not-allowed data-[size=md]:gap-2.5 data-[size=sm]:gap-2",e),disabled:a,onCheckedChange:u,...s,children:[jsxRuntime.jsxs(react.CheckboxControl,{className:b("group-data-[size=md]:mt-0.125 relative flex items-center justify-center rounded-xs ring-1 ring-neutral-900 transition-all ring-inset group-data-[size=sm]:mt-0.25 after:absolute after:rounded-full","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4 group-data-[size=sm]:after:h-6 group-data-[size=sm]:after:w-6","group-data-[size=md]:h-5 group-data-[size=md]:w-5 group-data-[size=md]:after:-top-1.5 group-data-[size=md]:after:-left-1.5 group-data-[size=md]:after:h-8 group-data-[size=md]:after:w-8",!a&&"group-hover:after:bg-transparent-primary-20 data-[state=unchecked]:group-hover:ring-primary-600",!a&&"data-[state=checked]:group-active:bg-primary-700 data-[state=indeterminate]:group-active:bg-primary-700 data-[state=unchecked]:group-active:ring-primary-700",!a&&"data-[state=checked]:bg-primary-500 data-[state=checked]:group-hover:bg-primary-600 data-[state=checked]:ring-0",!a&&"data-[state=indeterminate]:bg-primary-500 data-[state=indeterminate]:group-hover:bg-primary-600 data-[state=indeterminate]:ring-0",a&&"data-[state=checked]:data-disabled:bg-neutral-500 data-[state=checked]:data-disabled:ring-0",a&&"data-[state=unchecked]:data-disabled:ring-neutral-500",a&&"data-[state=indeterminate]:data-disabled:bg-neutral-500 data-[state=indeterminate]:data-disabled:ring-0"),children:[jsxRuntime.jsx(react.CheckboxIndicator,{children:jsxRuntime.jsx(Ee,{className:b("text-neutral-50","group-data-[size=md]:h-4.5 group-data-[size=md]:w-4.5","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4")})}),jsxRuntime.jsx(react.CheckboxIndicator,{indeterminate:true,children:jsxRuntime.jsx(Ve,{className:b("text-neutral-50","group-data-[size=md]:h-4.5 group-data-[size=md]:w-4.5","group-data-[size=sm]:h-4 group-data-[size=sm]:w-4")})})]}),t&&jsxRuntime.jsx(react.CheckboxLabel,{className:b("font-inter text-sm leading-[130%]!",!a&&"text-neutral-900",a&&"text-neutral-500"),children:t}),jsxRuntime.jsx(react.CheckboxHiddenInput,{})]})};var ie=tailwindVariants.tv({slots:{root:"ring-expandable-card-border group/expandable-card flex h-fit flex-col rounded-lg ring transition-all duration-200 ease-in-out ring-inset",header:"flex pt-3 pr-1 pb-2 pl-3",headerLabel:"text-sm leading-[130%] font-semibold empty:hidden",complementaryText:"line-clamp-1 text-xs leading-[130%] text-neutral-900",subtitle:"line-clamp-1 text-xs leading-[130%] text-neutral-700",content:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up border-expandable-card-border overflow-hidden group-data-[state=open]/expandable-card:border-t",contentInner:"px-3 pt-4 pb-6",fixedContent:"border-expandable-card-border border-t px-3 pt-6 pb-4"},variants:{background:{white:{root:"bg-neutral-50"},gray:{root:"bg-neutral-100"}}},defaultVariants:{background:"white"}}),zr=({headerLabel:e,complementaryText:t,subtitle:o,headerTooltip:a,className:r,action:s,chipStatus:u,chipExpandable:c,Icon:i,iconButtons:L,checkbox:m,...h})=>{let{header:A,headerLabel:B,complementaryText:x,subtitle:S}=ie(),v=collapsible.useCollapsibleContext();return jsxRuntime.jsxs("div",{...h,className:b(A(),r),children:[m&&jsxRuntime.jsx(xa,{...m,className:b("m-1",m.className),size:"sm"}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col gap-1",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[i&&jsxRuntime.jsx(i,{className:"h-3.5 w-3.5 shrink-0"}),jsxRuntime.jsxs("p",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("b",{className:B(),children:e}),t&&jsxRuntime.jsx("span",{className:x(),children:t}),a&&jsxRuntime.jsx(be,{content:a,contentClassName:"font-normal normal-case",children:jsxRuntime.jsx(Ge,{className:"h-3.5 w-3.5 shrink-0"})})]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[u&&jsxRuntime.jsx(na,{...u,size:"xs",type:"light"}),c&&jsxRuntime.jsx(pa,{...c,type:"light"}),L?.map((k,R)=>sa.createElement(me,{...k,key:k["aria-label"]?.toString()??R,variant:"standard",size:"xs"})),s&&(()=>{let{tooltipContent:k,...R}=s;return jsxRuntime.jsx(be,{content:k,disabled:!k,children:jsxRuntime.jsx(fa,{...R,size:"xs",variant:"standard"})})})(),jsxRuntime.jsx(collapsible.Collapsible.Trigger,{asChild:true,children:jsxRuntime.jsx(me,{Icon:v.open?Ne:We,variant:"standard",size:"xs"})})]})]}),o&&jsxRuntime.jsx("p",{className:S(),children:o})]})]})},Gr=({className:e,...t})=>{let{contentInner:o,content:a}=ie();return jsxRuntime.jsx(collapsible.Collapsible.Content,{className:a(),children:jsxRuntime.jsx("div",{...t,className:o({className:e})})})},Er=({className:e,...t})=>{let{fixedContent:o}=ie();return jsxRuntime.jsx("div",{...t,className:o({className:e})})},Vr=({className:e,onOpenChange:t,children:o,background:a="white",...r})=>{let{root:s}=ie({background:a}),u=sa.useCallback(c=>{t?.(c);},[t]);return jsxRuntime.jsx(collapsible.Collapsible.Root,{onOpenChange:u,className:s({className:e}),...r,children:o})};/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
4
4
|
lucide-react/dist/esm/defaultAttributes.js:
|
|
@@ -7,6 +7,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
|
7
7
|
lucide-react/dist/esm/icons/check.js:
|
|
8
8
|
lucide-react/dist/esm/icons/chevrons-down-up.js:
|
|
9
9
|
lucide-react/dist/esm/icons/chevrons-up-down.js:
|
|
10
|
+
lucide-react/dist/esm/icons/info.js:
|
|
10
11
|
lucide-react/dist/esm/icons/loader-circle.js:
|
|
11
12
|
lucide-react/dist/esm/icons/minus.js:
|
|
12
13
|
lucide-react/dist/esm/lucide-react.js:
|
|
@@ -16,4 +17,4 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
16
17
|
* This source code is licensed under the ISC license.
|
|
17
18
|
* See the LICENSE file in the root directory of this source tree.
|
|
18
19
|
*)
|
|
19
|
-
*/exports.CardExpandable=
|
|
20
|
+
*/exports.CardExpandable=Vr;exports.CardExpandableContent=Gr;exports.CardExpandableFixedContent=Er;exports.CardExpandableHeader=zr;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as CardExpandable,b as CardExpandableContent,c as CardExpandableFixedContent,a as CardExpandableHeader}from'../chunk-
|
|
1
|
+
export{d as CardExpandable,b as CardExpandableContent,c as CardExpandableFixedContent,a as CardExpandableHeader}from'../chunk-GYI5CLJW.mjs';import'../chunk-AI4D6AOK.mjs';import'../chunk-GBBE3RHT.mjs';import'../chunk-WRCFKTIJ.mjs';import'../chunk-FAMLJ6AJ.mjs';import'../chunk-KKWH3QUT.mjs';import'../chunk-EJBCWOLG.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-BO6XI5BE.mjs';
|
|
@@ -6,7 +6,7 @@ type ChipFormComplementaryVariantsType = (typeof ChipFormComplementaryVariants)[
|
|
|
6
6
|
declare const ChipFormComplementaryVariantsClassNames: Record<ChipFormComplementaryVariantsType, string>;
|
|
7
7
|
declare const chipForm: (props?: ({
|
|
8
8
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "sm" | "md" | undefined;
|
|
10
10
|
selected?: boolean | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
} & ({
|
|
@@ -74,7 +74,7 @@ declare const ChipFormComplementary: React__default.ForwardRefExoticComponent<{
|
|
|
74
74
|
children?: React__default.ReactNode | undefined;
|
|
75
75
|
} & Omit<VariantProps<(props?: ({
|
|
76
76
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
77
|
-
size?: "
|
|
77
|
+
size?: "sm" | "md" | undefined;
|
|
78
78
|
selected?: boolean | undefined;
|
|
79
79
|
disabled?: boolean | undefined;
|
|
80
80
|
} & ({
|
|
@@ -133,7 +133,7 @@ declare const ChipFormComplementary: React__default.ForwardRefExoticComponent<{
|
|
|
133
133
|
} | null | undefined;
|
|
134
134
|
})) | undefined) => string>, "variant"> & Required<Pick<VariantProps<(props?: ({
|
|
135
135
|
variant?: "zoro" | "ussop" | "crocodile" | "silvers" | "buggy" | "nami" | "shanks" | "piiman" | "sanji" | "ace" | "hancock" | "chopper" | "bentham" | "ivankov" | "brook" | "luffy" | "frankie" | "jinbe" | "robin" | "law" | undefined;
|
|
136
|
-
size?: "
|
|
136
|
+
size?: "sm" | "md" | undefined;
|
|
137
137
|
selected?: boolean | undefined;
|
|
138
138
|
disabled?: boolean | undefined;
|
|
139
139
|
} & ({
|