sodtrack-web-ui 0.72.3 → 0.72.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ import {c as c$1}from'./chunk-KKWH3QUT.mjs';import {f,b,c,e,d}from'./chunk-4HYLZVI5.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import {useState}from'react';import {tv}from'tailwind-variants';import {jsxs,jsx}from'react/jsx-runtime';var w=tv({slots:{container:"flex shrink-0 rounded-lg py-3 pr-3 pl-4",icon:"mr-3 h-5.5 w-5.5 shrink-0",closeIcon:"-mt-1 ml-4 h-4.5 w-4.5 shrink-0 cursor-pointer",title:"font-inter my-auto text-sm leading-[130%] text-neutral-900",description:"font-inter mt-1 text-sm leading-[130%] text-neutral-700"},variants:{hasCloseButton:{true:{}},variant:{warning:{container:"bg-warning-100",icon:"text-warning-500"},success:{container:"bg-success-100",icon:"text-success-500"},error:{container:"bg-error-100",icon:"text-error-500"},info:{container:"bg-info-100",icon:"text-info-500"}}},defaultVariants:{variant:"info",size:"md",hasCloseButton:true}}),z=({variant:t,className:g,description:s,title:N,hasCloseButton:l=true,actionButton:o})=>{let[d$1,x]=useState(true),{container:y,icon:a$1,closeIcon:h,title:v,description:I}=w({variant:t,hasCloseButton:l});return jsxs("div",{className:a(y(),g,!d$1&&"hidden"),children:[jsxs("div",{className:"flex flex-1",children:[t==="warning"&&jsx(f,{className:a$1({className:!s&&"my-auto"})}),t==="success"&&jsx(b,{className:a$1({className:!s&&"my-auto"})}),t==="error"&&jsx(c,{className:a$1({className:!s&&"my-auto"})}),t==="info"&&jsx(e,{className:a$1({className:!s&&"my-auto"})}),jsxs("div",{className:"flex flex-col",children:[jsx("h6",{className:v({className:s&&"font-semibold"}),children:N}),s&&jsx("p",{className:I(),children:s})]})]}),o&&jsx(c$1,{...o,variant:"white",className:a("my-auto ml-2",o.className),size:"md"}),l&&jsx(d,{className:h(),onClick:()=>x(false)})]})};export{z as a};
@@ -1 +1 @@
1
- import {c as c$3}from'./chunk-35JUETHD.mjs';import {a as a$4}from'./chunk-KTRSJBA4.mjs';import {a as a$3}from'./chunk-5JYXZUPM.mjs';import {c as c$2}from'./chunk-ASMH3P7K.mjs';import {d}from'./chunk-KTTNV2CJ.mjs';import {a}from'./chunk-T2IU5QUU.mjs';import {a as a$2}from'./chunk-SXEHG5TZ.mjs';import {c}from'./chunk-KKWH3QUT.mjs';import {c as c$1,h}from'./chunk-4HYLZVI5.mjs';import {a as a$1}from'./chunk-BO6XI5BE.mjs';import be,{createContext,useMemo,useCallback,useContext,useRef,useEffect,useState,useId}from'react';import*as Oe from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var qe=({title:e,titleLines:i=2,description:t,descriptionLines:o=1,Icon:p,iconAsColumn:l=true,className:n,...r})=>jsxs("div",{className:a$1("flex gap-2 py-4 pl-4 pr-6",l&&"flex-col items-center gap-1",!l&&!t&&"items-center"),...r,children:[p&&jsx(p,{className:a$1("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$1("flex flex-col gap-1",l&&"text-center"),children:[jsx("p",{className:a$1("leading-[130%] text-neutral-500",!!t&&"font-medium"),style:i?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:i}:void 0,children:e}),t&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:t})]})]}),ne=qe;var Ke=be.memo(({handleSelect:e,NoResultsIcon:i,noResultsLabel:t,noResultsDescription:o,noResultsDescriptionLines:p,noResultsAsColumn:l,noResultsButtonOnClick:n,optionDescriptionLines:r,noResultsButtonLabel:s,filteredOptions:c$1,inputRect:u,inputRef:b,popoverPosition:R,optionsListRef:v,selectedOption:h,options:g,setFilteredOptions:C})=>jsx(Oe.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:u?{width:`${u.width}px`,left:u.left,top:R==="bottom"?`${u.bottom}px`:void 0,bottom:R==="top"?`${window.innerHeight-u.top}px`:void 0}:void 0,children:[c$1.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(ne,{title:t,description:o,Icon:i,iconAsColumn:l,descriptionLines:p}),n&&jsxs(Fragment,{children:[jsx(a,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:a=>{v.current.style.display="none",b.current.value="",C(g),n();},children:s})]})]}),c$1.map(a=>jsx(Ie,{title:a.label,disabled:a.disabled,description:a.description,descriptionLines:r,onClick:()=>e(a),className:a$1(h?.value===a.value&&"bg-primary-200")},a.key??a.value))]})})),we=Ke;var Ye=336,oo=({options:e,defaultSelectedOption:i,onSelect:t,onClick:o,onInputChange:p,error:l,helperText:n,label:r,placeholder:s,value:c,size:u="md",optionDescriptionLines:b=1,noResultsLabel:R,noResultsIcon:v,noResultsDescription:h,noResultsDescriptionLines:g,noResultsAsColumn:C,noResultsButtonOnClick:a,noResultsButtonLabel:N,className:L,disabled:P})=>{let[m,A]=useState(i??null),O=useRef(null),d=useRef(null),[le,se]=useState(),[pe,B]=useState([]),[ue,z]=useState("bottom"),[X,j]=useState(),U=Ye,W=useCallback(x=>{O.current.style.display="none",d.current.value=x.label,A(x),t?.(x);},[t]),w=useCallback(()=>{if(!d?.current)return;let x=d.current.getBoundingClientRect();se(x);let E=X?X.height:U,I=window.innerHeight-x.bottom>E,ee=x.top>E;z(I?"bottom":ee?"top":"bottom");},[X?.height]),q=useCallback(()=>{let x=e.filter(E=>E.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(B(x),O?.current){let E=O.current.getBoundingClientRect();j(E);}},[e]);return useEffect(()=>{B(e);},[e]),useEffect(()=>{if(!c){A(null),d.current&&(d.current.value="");return}(!d.current?.value||m?.value!==c.value)&&(A(c),d.current.value=c.label);},[c]),a$4(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",q),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{d.current?.removeEventListener("mousedown",w),d.current?.removeEventListener("input",q),window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[w,q]),jsxs("div",{className:a$1("relative",L),children:[jsx(a$3,{ref:d,autoComplete:"off",list:"",selectMode:true,onChange:x=>{x.target.value||(A(null),t?.(null)),p?.(x);},onClean:()=>{A(null),B(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:s,size:u,error:l,disabled:P}),jsx(we,{handleSelect:W,noResultsLabel:R,NoResultsIcon:v,optionDescriptionLines:b,noResultsAsColumn:C,noResultsButtonLabel:N,noResultsButtonOnClick:a,noResultsDescription:h,noResultsDescriptionLines:g,filteredOptions:pe,inputRect:le,inputRef:d,popoverPosition:ue,optionsListRef:O,selectedOption:m,options:e,setFilteredOptions:B})]})};var je=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,disabled:l=false,className:n,...r})=>jsxs("div",{className:"flex w-full flex-col gap-1",...r,children:[jsx("p",{className:a$1("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$1("text-xs leading-[130%]",l?"text-neutral-400":"text-neutral-700"),style:p?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:p}:void 0,children:o})]}),T=je;var bo=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,startIcon:l,badgeContent:n,hasDivider:r=false,disabled:s=false,onSelect:c,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:s,onClick:c,hasDivider:r,className:a$1(!s&&"cursor-pointer",u),...b,children:[l&&be.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:s}),jsxs("div",{className:"ml-4 flex gap-2",children:[n&&jsx(a$2,{content:n,size:"lg",variant:"alert",className:a$1("self-center",s&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var De=({children:e,title:i,titleLines:t=1,description:o="",descriptionLines:p,startIcon:l,hasDivider:n=false,disabled:r=false,checked:s,onCheckedChange:c,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:r,hasDivider:n,...b,className:a$1("pr-6",u),children:[l&&be.cloneElement(l,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:r}),jsx(c$2,{size:"sm",checked:s,onCheckedChange:c,className:"ml-4 self-center",disabled:r})]});var k=336,He=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:k,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),F=()=>{let e=useContext(He);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Ne=({children:e})=>{let i=useRef(null),t=useRef(null),o=useId(),[p,l]=useState(),[n,r]=useState(true),[s,c]=useState([]),[u,b]=useState(-1),[R,v]=useState("bottom"),[h,g]=useState(),[C,a]=useState(k);return jsx(He.Provider,{value:{optionsListRef:i,inputRef:t,autocompleteId:o,inputRect:p,showChips:n,filteredOptions:s,currentFocus:u,popoverPosition:R,setFilteredOptions:c,setCurrentFocus:b,setShowChips:r,setPopoverPosition:v,setInputRect:l,optionsListHeight:C,optionsListRect:h,setOptionsListRect:g,setOptionsListHeight:a},children:e})};var ct=({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})},Se=ct;var ft=150,bt=be.memo(({selectedOptions:e,error:i,onCleanSelectedOptions:t,disabled:o,size:p})=>{let{autocompleteId:l,inputRect:n,inputRef:r,optionsListRef:s}=F(),c=be.useRef(null),[u,b]=be.useState(new Map),R=useMemo(()=>{if(!n?.width)return [];let h=0,g=n.width-ft,C=0;for(let a=0;a<e.length&&(C+=u.get(a)??0,!(C>g));a++)h++;return e.slice(0,h)},[n?.width,e,u]),v=useCallback(()=>{o||(r?.current?.focus(),s.current.style.display="flex");},[o]);return jsxs("div",{onClick:v,className:a$1("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:c,children:R.map((h,g)=>jsx(Se,{option:h,onMountWidth:C=>b(a=>new Map(a).set(g,C)),size:p},`chip-input-${l}-${h.value}`))}),e.length>R.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!i&&jsx(a$2,{content:String(e.length),size:p}),i&&e.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:h=>{h.stopPropagation(),t();}})]})}),Be=bt;var vt=be.memo(({option:e,index:i,onPressOption:t,isSelected:o,optionDescriptionLines:p})=>{let{currentFocus:l,inputRef:n}=F();return jsx(De,{title:e.label,checked:o,disabled:e.disabled,className:l===i?"bg-primary-200":void 0,onMouseDown:r=>{e.disabled||(n?.current?.value&&r.preventDefault(),t?.(e,r));},description:e.description,descriptionLines:p})}),he=vt;var Mt=be.memo(({selectedOptions:e,handleSelect:i,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:p,noResultsDescriptionLines:l,noResultsAsColumn:n,noResultsButtonOnClick:r,optionDescriptionLines:s,noResultsButtonLabel:c$1})=>{let{popoverPosition:u,optionsListRef:b,filteredOptions:R,inputRect:v,autocompleteId:h,inputRef:g,optionsListHeight:C}=F(),a$1=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(Oe.Root,{asChild:true,children:jsxs("div",{ref:b,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:u==="bottom"?`${v.bottom}px`:void 0,bottom:u==="top"?`${window.innerHeight-v.top}px`:void 0,maxHeight:C+"px"}:void 0,children:[R.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(ne,{title:o,description:p,Icon:t,iconAsColumn:n,descriptionLines:l}),r&&jsxs(Fragment,{children:[jsx(a,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:L=>{b.current.style.display="none",g.current.value="",r();},children:c$1})]})]}),N.map((L,P)=>jsx(he,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$1(L),optionDescriptionLines:s},`autocomplete-option-${h}-${L.key??L.value}`)),R.map((L,P)=>!e.some(m=>m.value===L.value)&&jsx(he,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$1(L),optionDescriptionLines:s},`autocomplete-option-${h}-${L.key??L.value}`))]})})}),We=Mt;var wt=be.memo(({selectedOptions:e,onSelect:i,error:t,helperText:o,label:p,placeholder:l,options:n,onInputChange:r,size:s,disabled:c})=>{let{setCurrentFocus:u,setFilteredOptions:b,optionsListRef:R,inputRef:v}=F();return jsx(a$3,{ref:v,autoComplete:"off",list:"",disabled:c,selectMode:true,onChange:h=>{u(-1),r?.(h.target.value);},onClean:()=>{u(-1),b(n),i?.(null,e);},onClick:()=>{c||(R.current.style.display="flex");},error:t,helperText:o,label:p,placeholder:l,fixedTopLabel:e.length>0,size:s})}),Ve=wt;var Ge=({options:e,defaultSelectedOptions:i,onSelect:t,error:o,helperText:p,label:l,placeholder:n,noResultsLabel:r,noResultsIcon:s,noResultsDescription:c,noResultsDescriptionLines:u,noResultsAsColumn:b,noResultsButtonOnClick:R,noResultsButtonLabel:v,className:h,onInputChange:g,value:C,loading:a,size:N="md",optionDescriptionLines:L=1,disabled:P})=>{let{inputRef:m,optionsListRef:A,setFilteredOptions:O,setShowChips:d,setInputRect:le,setPopoverPosition:se,setCurrentFocus:pe,showChips:B,setOptionsListRect:ue,optionsListRect:z,setOptionsListHeight:X}=F(),j=useRef(false),[U,W]=useState(i??[]),w=useCallback(M=>{W(y=>{let D,J=y.findIndex(Ue=>Ue.value===M.value);return J===-1?(D=y.concat(M),t?.(M,D),D):(D=y.toSpliced(J,1),t?.(M,D),D)});},[t]),q=useCallback(()=>{W([]),O(e),t?.(null,[]);},[]),x=useCallback(()=>{d(false);},[]),E=useCallback(()=>{d(true);},[]),I=useCallback(()=>{if(!m?.current)return;let M=m.current.getBoundingClientRect();le(M);let y=z?z.height>k?k:z.height:k,D=window.innerHeight-M.bottom>y,J=M.top>y;se(D?"bottom":J?"top":"bottom"),X(J?k:window.innerHeight-M.bottom>k?k:window.innerHeight-M.bottom);},[z?.height]),ee=useCallback(()=>{let M=e.filter(y=>y.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(O(M),A?.current){let y=A.current.getBoundingClientRect();ue(y);}},[e,A?.current]);return useEffect(()=>{O(e);},[e]),a$4(A,()=>{A.current.style.display="none",pe(-1);}),useEffect(()=>{if(m?.current)return I(),m.current.addEventListener("mousedown",I),m.current.addEventListener("input",ee),m.current.addEventListener("focusin",x),m.current.addEventListener("focusout",E),window.addEventListener("scroll",I,true),window.addEventListener("resize",I),()=>{m.current?.removeEventListener("mousedown",I),m.current?.removeEventListener("input",I),m.current?.removeEventListener("focusout",E),m.current?.removeEventListener("focusin",x),window.removeEventListener("scroll",I,true),window.removeEventListener("resize",I);}},[I,E,x,ee]),useEffect(()=>{C&&(W(C),d(true));},[C]),useEffect(()=>{a||i&&i.length&&!j.current&&(W(i),j.current=true,d(true));},[i,a]),jsxs("div",{className:a$1("relative",h),children:[jsx(Ve,{selectedOptions:U,onSelect:t,error:o,helperText:p,label:l,placeholder:n,handleSelect:w,options:e,onInputChange:g,size:N,disabled:P}),B&&jsx(Be,{selectedOptions:U,disabled:P,error:o,onCleanSelectedOptions:q,size:N}),jsx(We,{handleSelect:w,selectedOptions:U,noResultsLabel:r,NoResultsIcon:s,optionDescriptionLines:L,noResultsAsColumn:b,noResultsButtonLabel:v,noResultsButtonOnClick:R,noResultsDescription:c,noResultsDescriptionLines:u})]})};var Ei=e=>jsx(Ne,{children:jsx(Ge,{...e})});var Bi=({children:e,title:i,titleLines:t=1,description:o,descriptionLines:p=1,StartIcon:l,hasDivider:n=false,disabled:r=false,actionButton:s,isSelected:c$1=false,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:r,hasDivider:n,isSelected:c$1,...b,className:u,children:[l&&jsx(l,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:r}),s&&jsx(Fragment,{children:s.isIcon?jsx(c$3,{...s,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:r??s.disabled}):jsx(c,{...s,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:r??s.disabled})})]});var Dt=({children:e,hasDescription:i=false,disabled:t=false,hasDivider:o=false,className:p,isSelected:l,onClick:n,...r})=>jsxs(Fragment,{children:[jsx("div",{className:a$1("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",l&&"bg-primary-200",p),onClick:s=>{t||n?.(s);},...r,children:e}),o&&jsx(a,{})]}),H=Dt;var Ie=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,startIcon:l,endIcon:n,hasDivider:r=false,disabled:s=false,isSelected:c=false,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:s,hasDivider:r,className:u,isSelected:c,...b,children:[l&&be.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:s}),n&&be.cloneElement(n,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{oo as a,Ie as b,bo as c,De as d,Ei as e,Bi as f};
1
+ import {c as c$3}from'./chunk-35JUETHD.mjs';import {d}from'./chunk-KTTNV2CJ.mjs';import {a as a$4}from'./chunk-KTRSJBA4.mjs';import {a as a$3}from'./chunk-5JYXZUPM.mjs';import {c as c$2}from'./chunk-ASMH3P7K.mjs';import {a}from'./chunk-T2IU5QUU.mjs';import {a as a$2}from'./chunk-SXEHG5TZ.mjs';import {c}from'./chunk-KKWH3QUT.mjs';import {c as c$1,h}from'./chunk-4HYLZVI5.mjs';import {a as a$1}from'./chunk-BO6XI5BE.mjs';import be,{createContext,useMemo,useCallback,useContext,useRef,useEffect,useState,useId}from'react';import*as Oe from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var qe=({title:e,titleLines:i=2,description:t,descriptionLines:o=1,Icon:p,iconAsColumn:l=true,className:n,...r})=>jsxs("div",{className:a$1("flex gap-2 py-4 pl-4 pr-6",l&&"flex-col items-center gap-1",!l&&!t&&"items-center"),...r,children:[p&&jsx(p,{className:a$1("shrink-0 text-neutral-300"),size:24}),jsxs("div",{className:a$1("flex flex-col gap-1",l&&"text-center"),children:[jsx("p",{className:a$1("leading-[130%] text-neutral-500",!!t&&"font-medium"),style:i?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:i}:void 0,children:e}),t&&jsx("p",{className:"text-sm leading-[130%] text-neutral-500",style:o?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:void 0,children:t})]})]}),ne=qe;var Ke=be.memo(({handleSelect:e,NoResultsIcon:i,noResultsLabel:t,noResultsDescription:o,noResultsDescriptionLines:p,noResultsAsColumn:l,noResultsButtonOnClick:n,optionDescriptionLines:r,noResultsButtonLabel:s,filteredOptions:c$1,inputRect:u,inputRef:b,popoverPosition:R,optionsListRef:v,selectedOption:h,options:g,setFilteredOptions:C})=>jsx(Oe.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:u?{width:`${u.width}px`,left:u.left,top:R==="bottom"?`${u.bottom}px`:void 0,bottom:R==="top"?`${window.innerHeight-u.top}px`:void 0}:void 0,children:[c$1.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(ne,{title:t,description:o,Icon:i,iconAsColumn:l,descriptionLines:p}),n&&jsxs(Fragment,{children:[jsx(a,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:a=>{v.current.style.display="none",b.current.value="",C(g),n();},children:s})]})]}),c$1.map(a=>jsx(Ie,{title:a.label,disabled:a.disabled,description:a.description,descriptionLines:r,onClick:()=>e(a),className:a$1(h?.value===a.value&&"bg-primary-200")},a.key??a.value))]})})),we=Ke;var Ye=336,oo=({options:e,defaultSelectedOption:i,onSelect:t,onClick:o,onInputChange:p,error:l,helperText:n,label:r,placeholder:s,value:c,size:u="md",optionDescriptionLines:b=1,noResultsLabel:R,noResultsIcon:v,noResultsDescription:h,noResultsDescriptionLines:g,noResultsAsColumn:C,noResultsButtonOnClick:a,noResultsButtonLabel:N,className:L,disabled:P})=>{let[m,A]=useState(i??null),O=useRef(null),d=useRef(null),[le,se]=useState(),[pe,B]=useState([]),[ue,z]=useState("bottom"),[X,j]=useState(),U=Ye,W=useCallback(x=>{O.current.style.display="none",d.current.value=x.label,A(x),t?.(x);},[t]),w=useCallback(()=>{if(!d?.current)return;let x=d.current.getBoundingClientRect();se(x);let E=X?X.height:U,I=window.innerHeight-x.bottom>E,ee=x.top>E;z(I?"bottom":ee?"top":"bottom");},[X?.height]),q=useCallback(()=>{let x=e.filter(E=>E.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(B(x),O?.current){let E=O.current.getBoundingClientRect();j(E);}},[e]);return useEffect(()=>{B(e);},[e]),useEffect(()=>{if(!c){A(null),d.current&&(d.current.value="");return}(!d.current?.value||m?.value!==c.value)&&(A(c),d.current.value=c.label);},[c]),a$4(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",q),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{d.current?.removeEventListener("mousedown",w),d.current?.removeEventListener("input",q),window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[w,q]),jsxs("div",{className:a$1("relative",L),children:[jsx(a$3,{ref:d,autoComplete:"off",list:"",selectMode:true,onChange:x=>{x.target.value||(A(null),t?.(null)),p?.(x);},onClean:()=>{A(null),B(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:s,size:u,error:l,disabled:P}),jsx(we,{handleSelect:W,noResultsLabel:R,NoResultsIcon:v,optionDescriptionLines:b,noResultsAsColumn:C,noResultsButtonLabel:N,noResultsButtonOnClick:a,noResultsDescription:h,noResultsDescriptionLines:g,filteredOptions:pe,inputRect:le,inputRef:d,popoverPosition:ue,optionsListRef:O,selectedOption:m,options:e,setFilteredOptions:B})]})};var je=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,disabled:l=false,className:n,...r})=>jsxs("div",{className:"flex w-full flex-col gap-1",...r,children:[jsx("p",{className:a$1("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$1("text-xs leading-[130%]",l?"text-neutral-400":"text-neutral-700"),style:p?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:p}:void 0,children:o})]}),T=je;var bo=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,startIcon:l,badgeContent:n,hasDivider:r=false,disabled:s=false,onSelect:c,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:s,onClick:c,hasDivider:r,className:a$1(!s&&"cursor-pointer",u),...b,children:[l&&be.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:s}),jsxs("div",{className:"ml-4 flex gap-2",children:[n&&jsx(a$2,{content:n,size:"lg",variant:"alert",className:a$1("self-center",s&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var De=({children:e,title:i,titleLines:t=1,description:o="",descriptionLines:p,startIcon:l,hasDivider:n=false,disabled:r=false,checked:s,onCheckedChange:c,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:r,hasDivider:n,...b,className:a$1("pr-6",u),children:[l&&be.cloneElement(l,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:r}),jsx(c$2,{size:"sm",checked:s,onCheckedChange:c,className:"ml-4 self-center",disabled:r})]});var k=336,He=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:k,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),F=()=>{let e=useContext(He);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Ne=({children:e})=>{let i=useRef(null),t=useRef(null),o=useId(),[p,l]=useState(),[n,r]=useState(true),[s,c]=useState([]),[u,b]=useState(-1),[R,v]=useState("bottom"),[h,g]=useState(),[C,a]=useState(k);return jsx(He.Provider,{value:{optionsListRef:i,inputRef:t,autocompleteId:o,inputRect:p,showChips:n,filteredOptions:s,currentFocus:u,popoverPosition:R,setFilteredOptions:c,setCurrentFocus:b,setShowChips:r,setPopoverPosition:v,setInputRect:l,optionsListHeight:C,optionsListRect:h,setOptionsListRect:g,setOptionsListHeight:a},children:e})};var ct=({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})},Se=ct;var ft=150,bt=be.memo(({selectedOptions:e,error:i,onCleanSelectedOptions:t,disabled:o,size:p})=>{let{autocompleteId:l,inputRect:n,inputRef:r,optionsListRef:s}=F(),c=be.useRef(null),[u,b]=be.useState(new Map),R=useMemo(()=>{if(!n?.width)return [];let h=0,g=n.width-ft,C=0;for(let a=0;a<e.length&&(C+=u.get(a)??0,!(C>g));a++)h++;return e.slice(0,h)},[n?.width,e,u]),v=useCallback(()=>{o||(r?.current?.focus(),s.current.style.display="flex");},[o]);return jsxs("div",{onClick:v,className:a$1("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:c,children:R.map((h,g)=>jsx(Se,{option:h,onMountWidth:C=>b(a=>new Map(a).set(g,C)),size:p},`chip-input-${l}-${h.value}`))}),e.length>R.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!i&&jsx(a$2,{content:String(e.length),size:p}),i&&e.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:h=>{h.stopPropagation(),t();}})]})}),Be=bt;var vt=be.memo(({option:e,index:i,onPressOption:t,isSelected:o,optionDescriptionLines:p})=>{let{currentFocus:l,inputRef:n}=F();return jsx(De,{title:e.label,checked:o,disabled:e.disabled,className:l===i?"bg-primary-200":void 0,onMouseDown:r=>{e.disabled||(n?.current?.value&&r.preventDefault(),t?.(e,r));},description:e.description,descriptionLines:p})}),he=vt;var Mt=be.memo(({selectedOptions:e,handleSelect:i,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:p,noResultsDescriptionLines:l,noResultsAsColumn:n,noResultsButtonOnClick:r,optionDescriptionLines:s,noResultsButtonLabel:c$1})=>{let{popoverPosition:u,optionsListRef:b,filteredOptions:R,inputRect:v,autocompleteId:h,inputRef:g,optionsListHeight:C}=F(),a$1=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(Oe.Root,{asChild:true,children:jsxs("div",{ref:b,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:u==="bottom"?`${v.bottom}px`:void 0,bottom:u==="top"?`${window.innerHeight-v.top}px`:void 0,maxHeight:C+"px"}:void 0,children:[R.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(ne,{title:o,description:p,Icon:t,iconAsColumn:n,descriptionLines:l}),r&&jsxs(Fragment,{children:[jsx(a,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:L=>{b.current.style.display="none",g.current.value="",r();},children:c$1})]})]}),N.map((L,P)=>jsx(he,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$1(L),optionDescriptionLines:s},`autocomplete-option-${h}-${L.key??L.value}`)),R.map((L,P)=>!e.some(m=>m.value===L.value)&&jsx(he,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$1(L),optionDescriptionLines:s},`autocomplete-option-${h}-${L.key??L.value}`))]})})}),We=Mt;var wt=be.memo(({selectedOptions:e,onSelect:i,error:t,helperText:o,label:p,placeholder:l,options:n,onInputChange:r,size:s,disabled:c})=>{let{setCurrentFocus:u,setFilteredOptions:b,optionsListRef:R,inputRef:v}=F();return jsx(a$3,{ref:v,autoComplete:"off",list:"",disabled:c,selectMode:true,onChange:h=>{u(-1),r?.(h.target.value);},onClean:()=>{u(-1),b(n),i?.(null,e);},onClick:()=>{c||(R.current.style.display="flex");},error:t,helperText:o,label:p,placeholder:l,fixedTopLabel:e.length>0,size:s})}),Ve=wt;var Ge=({options:e,defaultSelectedOptions:i,onSelect:t,error:o,helperText:p,label:l,placeholder:n,noResultsLabel:r,noResultsIcon:s,noResultsDescription:c,noResultsDescriptionLines:u,noResultsAsColumn:b,noResultsButtonOnClick:R,noResultsButtonLabel:v,className:h,onInputChange:g,value:C,loading:a,size:N="md",optionDescriptionLines:L=1,disabled:P})=>{let{inputRef:m,optionsListRef:A,setFilteredOptions:O,setShowChips:d,setInputRect:le,setPopoverPosition:se,setCurrentFocus:pe,showChips:B,setOptionsListRect:ue,optionsListRect:z,setOptionsListHeight:X}=F(),j=useRef(false),[U,W]=useState(i??[]),w=useCallback(M=>{W(y=>{let D,J=y.findIndex(Ue=>Ue.value===M.value);return J===-1?(D=y.concat(M),t?.(M,D),D):(D=y.toSpliced(J,1),t?.(M,D),D)});},[t]),q=useCallback(()=>{W([]),O(e),t?.(null,[]);},[]),x=useCallback(()=>{d(false);},[]),E=useCallback(()=>{d(true);},[]),I=useCallback(()=>{if(!m?.current)return;let M=m.current.getBoundingClientRect();le(M);let y=z?z.height>k?k:z.height:k,D=window.innerHeight-M.bottom>y,J=M.top>y;se(D?"bottom":J?"top":"bottom"),X(J?k:window.innerHeight-M.bottom>k?k:window.innerHeight-M.bottom);},[z?.height]),ee=useCallback(()=>{let M=e.filter(y=>y.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(O(M),A?.current){let y=A.current.getBoundingClientRect();ue(y);}},[e,A?.current]);return useEffect(()=>{O(e);},[e]),a$4(A,()=>{A.current.style.display="none",pe(-1);}),useEffect(()=>{if(m?.current)return I(),m.current.addEventListener("mousedown",I),m.current.addEventListener("input",ee),m.current.addEventListener("focusin",x),m.current.addEventListener("focusout",E),window.addEventListener("scroll",I,true),window.addEventListener("resize",I),()=>{m.current?.removeEventListener("mousedown",I),m.current?.removeEventListener("input",I),m.current?.removeEventListener("focusout",E),m.current?.removeEventListener("focusin",x),window.removeEventListener("scroll",I,true),window.removeEventListener("resize",I);}},[I,E,x,ee]),useEffect(()=>{C&&(W(C),d(true));},[C]),useEffect(()=>{a||i&&i.length&&!j.current&&(W(i),j.current=true,d(true));},[i,a]),jsxs("div",{className:a$1("relative",h),children:[jsx(Ve,{selectedOptions:U,onSelect:t,error:o,helperText:p,label:l,placeholder:n,handleSelect:w,options:e,onInputChange:g,size:N,disabled:P}),B&&jsx(Be,{selectedOptions:U,disabled:P,error:o,onCleanSelectedOptions:q,size:N}),jsx(We,{handleSelect:w,selectedOptions:U,noResultsLabel:r,NoResultsIcon:s,optionDescriptionLines:L,noResultsAsColumn:b,noResultsButtonLabel:v,noResultsButtonOnClick:R,noResultsDescription:c,noResultsDescriptionLines:u})]})};var Ei=e=>jsx(Ne,{children:jsx(Ge,{...e})});var Bi=({children:e,title:i,titleLines:t=1,description:o,descriptionLines:p=1,StartIcon:l,hasDivider:n=false,disabled:r=false,actionButton:s,isSelected:c$1=false,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:r,hasDivider:n,isSelected:c$1,...b,className:u,children:[l&&jsx(l,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:r}),s&&jsx(Fragment,{children:s.isIcon?jsx(c$3,{...s,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:r??s.disabled}):jsx(c,{...s,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:r??s.disabled})})]});var Dt=({children:e,hasDescription:i=false,disabled:t=false,hasDivider:o=false,className:p,isSelected:l,onClick:n,...r})=>jsxs(Fragment,{children:[jsx("div",{className:a$1("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",l&&"bg-primary-200",p),onClick:s=>{t||n?.(s);},...r,children:e}),o&&jsx(a,{})]}),H=Dt;var Ie=({children:e,title:i,titleLines:t,description:o="",descriptionLines:p,startIcon:l,endIcon:n,hasDivider:r=false,disabled:s=false,isSelected:c=false,className:u,...b})=>jsxs(H,{hasDescription:!!o,disabled:s,hasDivider:r,className:u,isSelected:c,...b,children:[l&&be.cloneElement(l,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(T,{title:i,titleLines:t,description:o,descriptionLines:p,disabled:s}),n&&be.cloneElement(n,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{oo as a,Ie as b,bo as c,De as d,Ei as e,Bi as f};
@@ -1,4 +1,4 @@
1
- 'use strict';var aa=require('react'),tailwindVariants=require('tailwind-variants'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var aa__default=/*#__PURE__*/_interopDefault(aa);var ye=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),oa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,t,a)=>a?a.toUpperCase():t.toLowerCase()),ie=e=>{let o=oa(e);return o.charAt(0).toUpperCase()+o.slice(1)},le=(...e)=>e.filter((o,t,a)=>!!o&&o.trim()!==""&&a.indexOf(o)===t).join(" ").trim(),Be=e=>{for(let o in e)if(o.startsWith("aria-")||o==="role"||o==="title")return true};var Me={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 De=aa.forwardRef(({color:e="currentColor",size:o=24,strokeWidth:t=2,absoluteStrokeWidth:a,className:d="",children:r,iconNode:s,...p},c)=>aa.createElement("svg",{ref:c,...Me,width:o,height:o,stroke:e,strokeWidth:a?Number(t)*24/Number(o):t,className:le("lucide",d),...!r&&!Be(p)&&{"aria-hidden":"true"},...p},[...s.map(([m,L])=>aa.createElement(m,L)),...Array.isArray(r)?r:[r]]));var k=(e,o)=>{let t=aa.forwardRef(({className:a,...d},r)=>aa.createElement(De,{ref:r,iconNode:o,className:le(`lucide-${ye(ie(e))}`,`lucide-${e}`,a),...d}));return t.displayName=ie(e),t};var ra=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],B=k("circle-check",ra);var sa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],M=k("circle-x",sa);var fa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],J=k("info",fa);var ia=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],F=k("loader-circle",ia);var ca=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],D=k("triangle-alert",ca);var na=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Q=k("x",na);var Re=F,Te=B,ve=M,qe=Q,Ue=J,Oe=D;function He(e){var o,t,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(o=0;o<d;o++)e[o]&&(t=He(e[o]))&&(a&&(a+=" "),a+=t);}else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function Ge(){for(var e,o,t=0,a="",d=arguments.length;t<d;t++)(e=arguments[t])&&(o=He(e))&&(a&&(a+=" "),a+=o);return a}var xe="-",pa=e=>{let o=La(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=e;return {getClassGroupId:s=>{let p=s.split(xe);return p[0]===""&&p.length!==1&&p.shift(),Xe(p,o)||ma(s)},getConflictingClassGroupIds:(s,p)=>{let c=t[s]||[];return p&&a[s]?[...c,...a[s]]:c}}},Xe=(e,o)=>{if(e.length===0)return o.classGroupId;let t=e[0],a=o.nextPart.get(t),d=a?Xe(e.slice(1),a):void 0;if(d)return d;if(o.validators.length===0)return;let r=e.join(xe);return o.validators.find(({validator:s})=>s(r))?.classGroupId},ze=/^\[(.+)\]$/,ma=e=>{if(ze.test(e)){let o=ze.exec(e)[1],t=o?.substring(0,o.indexOf(":"));if(t)return "arbitrary.."+t}},La=e=>{let{theme:o,classGroups:t}=e,a={nextPart:new Map,validators:[]};for(let d in t)pe(t[d],a,d,o);return a},pe=(e,o,t,a)=>{e.forEach(d=>{if(typeof d=="string"){let r=d===""?o:Ve(o,d);r.classGroupId=t;return}if(typeof d=="function"){if(xa(d)){pe(d(a),o,t,a);return}o.validators.push({validator:d,classGroupId:t});return}Object.entries(d).forEach(([r,s])=>{pe(s,Ve(o,r),t,a);});});},Ve=(e,o)=>{let t=e;return o.split(xe).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a);}),t},xa=e=>e.isThemeGetter,Ia=e=>{if(e<1)return {get:()=>{},set:()=>{}};let o=0,t=new Map,a=new Map,d=(r,s)=>{t.set(r,s),o++,o>e&&(o=0,a=t,t=new Map);};return {get(r){let s=t.get(r);if(s!==void 0)return s;if((s=a.get(r))!==void 0)return d(r,s),s},set(r,s){t.has(r)?t.set(r,s):d(r,s);}}},me="!",Le=":",Ca=Le.length,ga=e=>{let{prefix:o,experimentalParseClassName:t}=e,a=d=>{let r=[],s=0,p=0,c=0,m;for(let C=0;C<d.length;C++){let h=d[C];if(s===0&&p===0){if(h===Le){r.push(d.slice(c,C)),c=C+Ca;continue}if(h==="/"){m=C;continue}}h==="["?s++:h==="]"?s--:h==="("?p++:h===")"&&p--;}let L=r.length===0?d:d.substring(c),w=ha(L),P=w!==L,v=m&&m>c?m-c:void 0;return {modifiers:r,hasImportantModifier:P,baseClassName:w,maybePostfixModifierPosition:v}};if(o){let d=o+Le,r=a;a=s=>s.startsWith(d)?r(s.substring(d.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:s,maybePostfixModifierPosition:void 0};}if(t){let d=a;a=r=>t({className:r,parseClassName:d});}return a},ha=e=>e.endsWith(me)?e.substring(0,e.length-1):e.startsWith(me)?e.substring(1):e,Sa=e=>{let o=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,true]));return a=>{if(a.length<=1)return a;let d=[],r=[];return a.forEach(s=>{s[0]==="["||o[s]?(d.push(...r.sort(),s),r=[]):r.push(s);}),d.push(...r.sort()),d}},wa=e=>({cache:Ia(e.cacheSize),parseClassName:ga(e),sortModifiers:Sa(e),...pa(e)}),ka=/\s+/,Pa=(e,o)=>{let{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:d,sortModifiers:r}=o,s=[],p=e.trim().split(ka),c="";for(let m=p.length-1;m>=0;m-=1){let L=p[m],{isExternal:w,modifiers:P,hasImportantModifier:v,baseClassName:C,maybePostfixModifierPosition:h}=t(L);if(w){c=L+(c.length>0?" "+c:c);continue}let G=!!h,q=a(G?C.substring(0,h):C);if(!q){if(!G){c=L+(c.length>0?" "+c:c);continue}if(q=a(C),!q){c=L+(c.length>0?" "+c:c);continue}G=false;}let Y=r(P).join(":"),K=v?Y+me:Y,z=K+q;if(s.includes(z))continue;s.push(z);let V=d(q,G);for(let U=0;U<V.length;++U){let Z=V[U];s.push(K+Z);}c=L+(c.length>0?" "+c:c);}return c};function ba(){let e=0,o,t,a="";for(;e<arguments.length;)(o=arguments[e++])&&(t=Ne(o))&&(a&&(a+=" "),a+=t);return a}var Ne=e=>{if(typeof e=="string")return e;let o,t="";for(let a=0;a<e.length;a++)e[a]&&(o=Ne(e[a]))&&(t&&(t+=" "),t+=o);return t};function Aa(e,...o){let t,a,d,r=s;function s(c){let m=o.reduce((L,w)=>w(L),e());return t=wa(m),a=t.cache.get,d=t.cache.set,r=p,p(c)}function p(c){let m=a(c);if(m)return m;let L=Pa(c,t);return d(c,L),L}return function(){return r(ba.apply(null,arguments))}}var x=e=>{let o=t=>t[e]||[];return o.isThemeGetter=true,o},Ke=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ze=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ya=/^\d+\/\d+$/,Ba=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ma=/\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$/,Fa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Da=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ra=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,W=e=>ya.test(e),n=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),ce=e=>e.endsWith("%")&&n(e.slice(0,-1)),y=e=>Ba.test(e),Ta=()=>true,va=e=>Ma.test(e)&&!Fa.test(e),Je=()=>false,qa=e=>Da.test(e),Ua=e=>Ra.test(e),Oa=e=>!l(e)&&!u(e),Ha=e=>X(e,je,Je),l=e=>Ke.test(e),H=e=>X(e,Ye,va),ne=e=>X(e,Wa,n),Ee=e=>X(e,Qe,Je),Ga=e=>X(e,_e,Ua),ue=e=>X(e,$e,qa),u=e=>Ze.test(e),_=e=>N(e,Ye),za=e=>N(e,Xa),We=e=>N(e,Qe),Va=e=>N(e,je),Ea=e=>N(e,_e),de=e=>N(e,$e,true),X=(e,o,t)=>{let a=Ke.exec(e);return a?a[1]?o(a[1]):t(a[2]):false},N=(e,o,t=false)=>{let a=Ze.exec(e);return a?a[1]?o(a[1]):t:false},Qe=e=>e==="position"||e==="percentage",_e=e=>e==="image"||e==="url",je=e=>e==="length"||e==="size"||e==="bg-size",Ye=e=>e==="length",Wa=e=>e==="number",Xa=e=>e==="family-name",$e=e=>e==="shadow";var Na=()=>{let e=x("color"),o=x("font"),t=x("text"),a=x("font-weight"),d=x("tracking"),r=x("leading"),s=x("breakpoint"),p=x("container"),c=x("spacing"),m=x("radius"),L=x("shadow"),w=x("inset-shadow"),P=x("text-shadow"),v=x("drop-shadow"),C=x("blur"),h=x("perspective"),G=x("aspect"),q=x("ease"),Y=x("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"],V=()=>[...z(),u,l],U=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],i=()=>[u,l,c],b=()=>[W,"full","auto",...i()],ge=()=>[R,"none","subgrid",u,l],he=()=>["auto",{span:["full",R,u,l]},R,u,l],$=()=>[R,"auto",u,l],Se=()=>["auto","min","max","fr",u,l],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...i()],O=()=>[W,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],f=()=>[e,u,l],we=()=>[...z(),We,Ee,{position:[u,l]}],ke=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",Va,Ha,{size:[u,l]}],se=()=>[ce,_,H],g=()=>["","none","full",m,u,l],S=()=>["",n,_,H],ee=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[n,ce,We,Ee],Ae=()=>["","none",C,u,l],ae=()=>["none",n,u,l],te=()=>["none",n,u,l],fe=()=>[n,u,l],oe=()=>[W,"full",...i()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[y],breakpoint:[y],color:[Ta],container:[y],"drop-shadow":[y],ease:["in","out","in-out"],font:[Oa],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[y],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[y],shadow:[y],spacing:["px",n],text:[y],"text-shadow":[y],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",W,l,u,G]}],container:["container"],columns:[{columns:[n,l,u,p]}],"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:V()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],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:[R,"auto",u,l]}],basis:[{basis:[W,"full","auto",p,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[n,W,"auto","initial","none",l]}],grow:[{grow:["",n,u,l]}],shrink:[{shrink:["",n,u,l]}],order:[{order:[R,"first","last","none",u,l]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[p,"screen",...O()]}],"min-w":[{"min-w":[p,"screen","none",...O()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[s]},...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",t,_,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,u,ne]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ce,l]}],"font-family":[{font:[za,l,o]}],"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:[d,u,l]}],"line-clamp":[{"line-clamp":[n,"none",u,ne]}],leading:[{leading:[r,...i()]}],"list-image":[{"list-image":["none",u,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,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:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[n,"from-font","auto",u,H]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[n,"auto",u,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,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",u,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:we()}],"bg-repeat":[{bg:ke()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,u,l],radial:["",u,l],conic:[R,u,l]},Ea,Ga]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:g()}],"rounded-s":[{"rounded-s":g()}],"rounded-e":[{"rounded-e":g()}],"rounded-t":[{"rounded-t":g()}],"rounded-r":[{"rounded-r":g()}],"rounded-b":[{"rounded-b":g()}],"rounded-l":[{"rounded-l":g()}],"rounded-ss":[{"rounded-ss":g()}],"rounded-se":[{"rounded-se":g()}],"rounded-ee":[{"rounded-ee":g()}],"rounded-es":[{"rounded-es":g()}],"rounded-tl":[{"rounded-tl":g()}],"rounded-tr":[{"rounded-tr":g()}],"rounded-br":[{"rounded-br":g()}],"rounded-bl":[{"rounded-bl":g()}],"border-w":[{border:S()}],"border-w-x":[{"border-x":S()}],"border-w-y":[{"border-y":S()}],"border-w-s":[{"border-s":S()}],"border-w-e":[{"border-e":S()}],"border-w-t":[{"border-t":S()}],"border-w-r":[{"border-r":S()}],"border-w-b":[{"border-b":S()}],"border-w-l":[{"border-l":S()}],"divide-x":[{"divide-x":S()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":S()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"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:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[n,u,l]}],"outline-w":[{outline:["",n,_,H]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",L,de,ue]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",w,de,ue]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[n,H]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":S()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",P,de,ue]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[n,u,l]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"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":[n]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"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":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"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":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"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":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"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":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"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":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"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":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[u,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"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":[n]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"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:we()}],"mask-repeat":[{mask:ke()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,l]}],filter:[{filter:["","none",u,l]}],blur:[{blur:Ae()}],brightness:[{brightness:[n,u,l]}],contrast:[{contrast:[n,u,l]}],"drop-shadow":[{"drop-shadow":["","none",v,de,ue]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",n,u,l]}],"hue-rotate":[{"hue-rotate":[n,u,l]}],invert:[{invert:["",n,u,l]}],saturate:[{saturate:[n,u,l]}],sepia:[{sepia:["",n,u,l]}],"backdrop-filter":[{"backdrop-filter":["","none",u,l]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[n,u,l]}],"backdrop-contrast":[{"backdrop-contrast":[n,u,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",n,u,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[n,u,l]}],"backdrop-invert":[{"backdrop-invert":["",n,u,l]}],"backdrop-opacity":[{"backdrop-opacity":[n,u,l]}],"backdrop-saturate":[{"backdrop-saturate":[n,u,l]}],"backdrop-sepia":[{"backdrop-sepia":["",n,u,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[n,"initial",u,l]}],ease:[{ease:["linear","initial",q,u,l]}],delay:[{delay:[n,u,l]}],animate:[{animate:["none",Y,u,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,u,l]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[u,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"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",u,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":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"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,l]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[n,_,H,ne]}],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 ea=Aa(Na);function j(...e){return ea(Ge(e))}var Ja=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}}),ta=aa.forwardRef(({children:e,className:o,variant:t,size:a,startIcon:d,endIcon:r,loading:s,disabled:p,type:c="button",StartIcon:m,EndIcon:L,...w},P)=>{let{button:v,icon:C,loadingIcon:h}=Ja({variant:t,size:a,loading:s});return jsxRuntime.jsxs("button",{...w,ref:P,disabled:s||p,className:j(v(),o),type:c,children:[s&&jsxRuntime.jsx(Re,{className:h()}),d&&aa__default.default.cloneElement(d,{className:C()}),m&&jsxRuntime.jsx(m,{className:C()}),e,r&&aa__default.default.cloneElement(r,{className:C()}),L&&jsxRuntime.jsx(L,{className:C()})]})});var Ya=tailwindVariants.tv({slots:{container:"flex shrink-0 rounded-lg py-3 pl-4 pr-3",icon:"mr-3 h-5.5 w-5.5 shrink-0",closeIcon:"-mt-1 ml-4 h-4.5 w-4.5 shrink-0 cursor-pointer",title:"my-auto break-all font-inter text-sm leading-[130%] text-neutral-900",description:"mt-1 font-inter text-sm leading-[130%] text-neutral-700"},variants:{hasCloseButton:{true:{}},variant:{warning:{container:"bg-warning-100",icon:"text-warning-500"},success:{container:"bg-success-100",icon:"text-success-500"},error:{container:"bg-error-100",icon:"text-error-500"},info:{container:"bg-info-100",icon:"text-info-500"}}},defaultVariants:{variant:"info",size:"md",hasCloseButton:true}}),xo=({variant:e,className:o,description:t,title:a,hasCloseButton:d=true,actionButton:r})=>{let[s,p]=aa.useState(true),{container:c,icon:m,closeIcon:L,title:w,description:P}=Ya({variant:e,hasCloseButton:d});return jsxRuntime.jsxs("div",{className:j(c(),o,!s&&"hidden"),children:[jsxRuntime.jsxs("div",{className:"flex flex-1",children:[e==="warning"&&jsxRuntime.jsx(Oe,{className:m({className:!t&&"my-auto"})}),e==="success"&&jsxRuntime.jsx(Te,{className:m({className:!t&&"my-auto"})}),e==="error"&&jsxRuntime.jsx(ve,{className:m({className:!t&&"my-auto"})}),e==="info"&&jsxRuntime.jsx(Ue,{className:m({className:!t&&"my-auto"})}),jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("h6",{className:w({className:t&&"font-semibold"}),children:a}),t&&jsxRuntime.jsx("p",{className:P(),children:t})]})]}),r&&jsxRuntime.jsx(ta,{...r,variant:"white",className:j("my-auto ml-2",r.className),size:"md"}),d&&jsxRuntime.jsx(qe,{className:L(),onClick:()=>p(false)})]})};/*! Bundled license information:
1
+ 'use strict';var aa=require('react'),tailwindVariants=require('tailwind-variants'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var aa__default=/*#__PURE__*/_interopDefault(aa);var ye=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),oa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,t,a)=>a?a.toUpperCase():t.toLowerCase()),ie=e=>{let o=oa(e);return o.charAt(0).toUpperCase()+o.slice(1)},le=(...e)=>e.filter((o,t,a)=>!!o&&o.trim()!==""&&a.indexOf(o)===t).join(" ").trim(),Be=e=>{for(let o in e)if(o.startsWith("aria-")||o==="role"||o==="title")return true};var Me={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 De=aa.forwardRef(({color:e="currentColor",size:o=24,strokeWidth:t=2,absoluteStrokeWidth:a,className:d="",children:r,iconNode:s,...p},c)=>aa.createElement("svg",{ref:c,...Me,width:o,height:o,stroke:e,strokeWidth:a?Number(t)*24/Number(o):t,className:le("lucide",d),...!r&&!Be(p)&&{"aria-hidden":"true"},...p},[...s.map(([m,L])=>aa.createElement(m,L)),...Array.isArray(r)?r:[r]]));var k=(e,o)=>{let t=aa.forwardRef(({className:a,...d},r)=>aa.createElement(De,{ref:r,iconNode:o,className:le(`lucide-${ye(ie(e))}`,`lucide-${e}`,a),...d}));return t.displayName=ie(e),t};var ra=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],B=k("circle-check",ra);var sa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],M=k("circle-x",sa);var fa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],J=k("info",fa);var ia=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],F=k("loader-circle",ia);var ca=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],D=k("triangle-alert",ca);var na=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Q=k("x",na);var Re=F,Te=B,ve=M,qe=Q,Ue=J,Oe=D;function He(e){var o,t,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(o=0;o<d;o++)e[o]&&(t=He(e[o]))&&(a&&(a+=" "),a+=t);}else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function Ge(){for(var e,o,t=0,a="",d=arguments.length;t<d;t++)(e=arguments[t])&&(o=He(e))&&(a&&(a+=" "),a+=o);return a}var xe="-",pa=e=>{let o=La(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=e;return {getClassGroupId:s=>{let p=s.split(xe);return p[0]===""&&p.length!==1&&p.shift(),Xe(p,o)||ma(s)},getConflictingClassGroupIds:(s,p)=>{let c=t[s]||[];return p&&a[s]?[...c,...a[s]]:c}}},Xe=(e,o)=>{if(e.length===0)return o.classGroupId;let t=e[0],a=o.nextPart.get(t),d=a?Xe(e.slice(1),a):void 0;if(d)return d;if(o.validators.length===0)return;let r=e.join(xe);return o.validators.find(({validator:s})=>s(r))?.classGroupId},ze=/^\[(.+)\]$/,ma=e=>{if(ze.test(e)){let o=ze.exec(e)[1],t=o?.substring(0,o.indexOf(":"));if(t)return "arbitrary.."+t}},La=e=>{let{theme:o,classGroups:t}=e,a={nextPart:new Map,validators:[]};for(let d in t)pe(t[d],a,d,o);return a},pe=(e,o,t,a)=>{e.forEach(d=>{if(typeof d=="string"){let r=d===""?o:Ve(o,d);r.classGroupId=t;return}if(typeof d=="function"){if(xa(d)){pe(d(a),o,t,a);return}o.validators.push({validator:d,classGroupId:t});return}Object.entries(d).forEach(([r,s])=>{pe(s,Ve(o,r),t,a);});});},Ve=(e,o)=>{let t=e;return o.split(xe).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a);}),t},xa=e=>e.isThemeGetter,Ia=e=>{if(e<1)return {get:()=>{},set:()=>{}};let o=0,t=new Map,a=new Map,d=(r,s)=>{t.set(r,s),o++,o>e&&(o=0,a=t,t=new Map);};return {get(r){let s=t.get(r);if(s!==void 0)return s;if((s=a.get(r))!==void 0)return d(r,s),s},set(r,s){t.has(r)?t.set(r,s):d(r,s);}}},me="!",Le=":",Ca=Le.length,ga=e=>{let{prefix:o,experimentalParseClassName:t}=e,a=d=>{let r=[],s=0,p=0,c=0,m;for(let C=0;C<d.length;C++){let h=d[C];if(s===0&&p===0){if(h===Le){r.push(d.slice(c,C)),c=C+Ca;continue}if(h==="/"){m=C;continue}}h==="["?s++:h==="]"?s--:h==="("?p++:h===")"&&p--;}let L=r.length===0?d:d.substring(c),w=ha(L),P=w!==L,v=m&&m>c?m-c:void 0;return {modifiers:r,hasImportantModifier:P,baseClassName:w,maybePostfixModifierPosition:v}};if(o){let d=o+Le,r=a;a=s=>s.startsWith(d)?r(s.substring(d.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:s,maybePostfixModifierPosition:void 0};}if(t){let d=a;a=r=>t({className:r,parseClassName:d});}return a},ha=e=>e.endsWith(me)?e.substring(0,e.length-1):e.startsWith(me)?e.substring(1):e,Sa=e=>{let o=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,true]));return a=>{if(a.length<=1)return a;let d=[],r=[];return a.forEach(s=>{s[0]==="["||o[s]?(d.push(...r.sort(),s),r=[]):r.push(s);}),d.push(...r.sort()),d}},wa=e=>({cache:Ia(e.cacheSize),parseClassName:ga(e),sortModifiers:Sa(e),...pa(e)}),ka=/\s+/,Pa=(e,o)=>{let{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:d,sortModifiers:r}=o,s=[],p=e.trim().split(ka),c="";for(let m=p.length-1;m>=0;m-=1){let L=p[m],{isExternal:w,modifiers:P,hasImportantModifier:v,baseClassName:C,maybePostfixModifierPosition:h}=t(L);if(w){c=L+(c.length>0?" "+c:c);continue}let G=!!h,q=a(G?C.substring(0,h):C);if(!q){if(!G){c=L+(c.length>0?" "+c:c);continue}if(q=a(C),!q){c=L+(c.length>0?" "+c:c);continue}G=false;}let Y=r(P).join(":"),K=v?Y+me:Y,z=K+q;if(s.includes(z))continue;s.push(z);let V=d(q,G);for(let U=0;U<V.length;++U){let Z=V[U];s.push(K+Z);}c=L+(c.length>0?" "+c:c);}return c};function ba(){let e=0,o,t,a="";for(;e<arguments.length;)(o=arguments[e++])&&(t=Ne(o))&&(a&&(a+=" "),a+=t);return a}var Ne=e=>{if(typeof e=="string")return e;let o,t="";for(let a=0;a<e.length;a++)e[a]&&(o=Ne(e[a]))&&(t&&(t+=" "),t+=o);return t};function Aa(e,...o){let t,a,d,r=s;function s(c){let m=o.reduce((L,w)=>w(L),e());return t=wa(m),a=t.cache.get,d=t.cache.set,r=p,p(c)}function p(c){let m=a(c);if(m)return m;let L=Pa(c,t);return d(c,L),L}return function(){return r(ba.apply(null,arguments))}}var x=e=>{let o=t=>t[e]||[];return o.isThemeGetter=true,o},Ke=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ze=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ya=/^\d+\/\d+$/,Ba=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ma=/\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$/,Fa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Da=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ra=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,W=e=>ya.test(e),n=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),ce=e=>e.endsWith("%")&&n(e.slice(0,-1)),y=e=>Ba.test(e),Ta=()=>true,va=e=>Ma.test(e)&&!Fa.test(e),Je=()=>false,qa=e=>Da.test(e),Ua=e=>Ra.test(e),Oa=e=>!l(e)&&!u(e),Ha=e=>X(e,je,Je),l=e=>Ke.test(e),H=e=>X(e,Ye,va),ne=e=>X(e,Wa,n),Ee=e=>X(e,Qe,Je),Ga=e=>X(e,_e,Ua),ue=e=>X(e,$e,qa),u=e=>Ze.test(e),_=e=>N(e,Ye),za=e=>N(e,Xa),We=e=>N(e,Qe),Va=e=>N(e,je),Ea=e=>N(e,_e),de=e=>N(e,$e,true),X=(e,o,t)=>{let a=Ke.exec(e);return a?a[1]?o(a[1]):t(a[2]):false},N=(e,o,t=false)=>{let a=Ze.exec(e);return a?a[1]?o(a[1]):t:false},Qe=e=>e==="position"||e==="percentage",_e=e=>e==="image"||e==="url",je=e=>e==="length"||e==="size"||e==="bg-size",Ye=e=>e==="length",Wa=e=>e==="number",Xa=e=>e==="family-name",$e=e=>e==="shadow";var Na=()=>{let e=x("color"),o=x("font"),t=x("text"),a=x("font-weight"),d=x("tracking"),r=x("leading"),s=x("breakpoint"),p=x("container"),c=x("spacing"),m=x("radius"),L=x("shadow"),w=x("inset-shadow"),P=x("text-shadow"),v=x("drop-shadow"),C=x("blur"),h=x("perspective"),G=x("aspect"),q=x("ease"),Y=x("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"],V=()=>[...z(),u,l],U=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],i=()=>[u,l,c],b=()=>[W,"full","auto",...i()],ge=()=>[R,"none","subgrid",u,l],he=()=>["auto",{span:["full",R,u,l]},R,u,l],$=()=>[R,"auto",u,l],Se=()=>["auto","min","max","fr",u,l],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...i()],O=()=>[W,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],f=()=>[e,u,l],we=()=>[...z(),We,Ee,{position:[u,l]}],ke=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",Va,Ha,{size:[u,l]}],se=()=>[ce,_,H],g=()=>["","none","full",m,u,l],S=()=>["",n,_,H],ee=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[n,ce,We,Ee],Ae=()=>["","none",C,u,l],ae=()=>["none",n,u,l],te=()=>["none",n,u,l],fe=()=>[n,u,l],oe=()=>[W,"full",...i()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[y],breakpoint:[y],color:[Ta],container:[y],"drop-shadow":[y],ease:["in","out","in-out"],font:[Oa],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[y],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[y],shadow:[y],spacing:["px",n],text:[y],"text-shadow":[y],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",W,l,u,G]}],container:["container"],columns:[{columns:[n,l,u,p]}],"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:V()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],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:[R,"auto",u,l]}],basis:[{basis:[W,"full","auto",p,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[n,W,"auto","initial","none",l]}],grow:[{grow:["",n,u,l]}],shrink:[{shrink:["",n,u,l]}],order:[{order:[R,"first","last","none",u,l]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[p,"screen",...O()]}],"min-w":[{"min-w":[p,"screen","none",...O()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[s]},...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",t,_,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,u,ne]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ce,l]}],"font-family":[{font:[za,l,o]}],"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:[d,u,l]}],"line-clamp":[{"line-clamp":[n,"none",u,ne]}],leading:[{leading:[r,...i()]}],"list-image":[{"list-image":["none",u,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,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:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[n,"from-font","auto",u,H]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[n,"auto",u,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,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",u,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:we()}],"bg-repeat":[{bg:ke()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,u,l],radial:["",u,l],conic:[R,u,l]},Ea,Ga]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:g()}],"rounded-s":[{"rounded-s":g()}],"rounded-e":[{"rounded-e":g()}],"rounded-t":[{"rounded-t":g()}],"rounded-r":[{"rounded-r":g()}],"rounded-b":[{"rounded-b":g()}],"rounded-l":[{"rounded-l":g()}],"rounded-ss":[{"rounded-ss":g()}],"rounded-se":[{"rounded-se":g()}],"rounded-ee":[{"rounded-ee":g()}],"rounded-es":[{"rounded-es":g()}],"rounded-tl":[{"rounded-tl":g()}],"rounded-tr":[{"rounded-tr":g()}],"rounded-br":[{"rounded-br":g()}],"rounded-bl":[{"rounded-bl":g()}],"border-w":[{border:S()}],"border-w-x":[{"border-x":S()}],"border-w-y":[{"border-y":S()}],"border-w-s":[{"border-s":S()}],"border-w-e":[{"border-e":S()}],"border-w-t":[{"border-t":S()}],"border-w-r":[{"border-r":S()}],"border-w-b":[{"border-b":S()}],"border-w-l":[{"border-l":S()}],"divide-x":[{"divide-x":S()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":S()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"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:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[n,u,l]}],"outline-w":[{outline:["",n,_,H]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",L,de,ue]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",w,de,ue]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[n,H]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":S()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",P,de,ue]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[n,u,l]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"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":[n]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"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":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"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":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"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":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"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":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"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":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"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":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[u,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"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":[n]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"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:we()}],"mask-repeat":[{mask:ke()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,l]}],filter:[{filter:["","none",u,l]}],blur:[{blur:Ae()}],brightness:[{brightness:[n,u,l]}],contrast:[{contrast:[n,u,l]}],"drop-shadow":[{"drop-shadow":["","none",v,de,ue]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",n,u,l]}],"hue-rotate":[{"hue-rotate":[n,u,l]}],invert:[{invert:["",n,u,l]}],saturate:[{saturate:[n,u,l]}],sepia:[{sepia:["",n,u,l]}],"backdrop-filter":[{"backdrop-filter":["","none",u,l]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[n,u,l]}],"backdrop-contrast":[{"backdrop-contrast":[n,u,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",n,u,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[n,u,l]}],"backdrop-invert":[{"backdrop-invert":["",n,u,l]}],"backdrop-opacity":[{"backdrop-opacity":[n,u,l]}],"backdrop-saturate":[{"backdrop-saturate":[n,u,l]}],"backdrop-sepia":[{"backdrop-sepia":["",n,u,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[n,"initial",u,l]}],ease:[{ease:["linear","initial",q,u,l]}],delay:[{delay:[n,u,l]}],animate:[{animate:["none",Y,u,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,u,l]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[u,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"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",u,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":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"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,l]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[n,_,H,ne]}],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 ea=Aa(Na);function j(...e){return ea(Ge(e))}var Ja=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}}),ta=aa.forwardRef(({children:e,className:o,variant:t,size:a,startIcon:d,endIcon:r,loading:s,disabled:p,type:c="button",StartIcon:m,EndIcon:L,...w},P)=>{let{button:v,icon:C,loadingIcon:h}=Ja({variant:t,size:a,loading:s});return jsxRuntime.jsxs("button",{...w,ref:P,disabled:s||p,className:j(v(),o),type:c,children:[s&&jsxRuntime.jsx(Re,{className:h()}),d&&aa__default.default.cloneElement(d,{className:C()}),m&&jsxRuntime.jsx(m,{className:C()}),e,r&&aa__default.default.cloneElement(r,{className:C()}),L&&jsxRuntime.jsx(L,{className:C()})]})});var Ya=tailwindVariants.tv({slots:{container:"flex shrink-0 rounded-lg py-3 pr-3 pl-4",icon:"mr-3 h-5.5 w-5.5 shrink-0",closeIcon:"-mt-1 ml-4 h-4.5 w-4.5 shrink-0 cursor-pointer",title:"font-inter my-auto text-sm leading-[130%] text-neutral-900",description:"font-inter mt-1 text-sm leading-[130%] text-neutral-700"},variants:{hasCloseButton:{true:{}},variant:{warning:{container:"bg-warning-100",icon:"text-warning-500"},success:{container:"bg-success-100",icon:"text-success-500"},error:{container:"bg-error-100",icon:"text-error-500"},info:{container:"bg-info-100",icon:"text-info-500"}}},defaultVariants:{variant:"info",size:"md",hasCloseButton:true}}),xo=({variant:e,className:o,description:t,title:a,hasCloseButton:d=true,actionButton:r})=>{let[s,p]=aa.useState(true),{container:c,icon:m,closeIcon:L,title:w,description:P}=Ya({variant:e,hasCloseButton:d});return jsxRuntime.jsxs("div",{className:j(c(),o,!s&&"hidden"),children:[jsxRuntime.jsxs("div",{className:"flex flex-1",children:[e==="warning"&&jsxRuntime.jsx(Oe,{className:m({className:!t&&"my-auto"})}),e==="success"&&jsxRuntime.jsx(Te,{className:m({className:!t&&"my-auto"})}),e==="error"&&jsxRuntime.jsx(ve,{className:m({className:!t&&"my-auto"})}),e==="info"&&jsxRuntime.jsx(Ue,{className:m({className:!t&&"my-auto"})}),jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("h6",{className:w({className:t&&"font-semibold"}),children:a}),t&&jsxRuntime.jsx("p",{className:P(),children:t})]})]}),r&&jsxRuntime.jsx(ta,{...r,variant:"white",className:j("my-auto ml-2",r.className),size:"md"}),d&&jsxRuntime.jsx(qe,{className:L(),onClick:()=>p(false)})]})};/*! Bundled license information:
2
2
 
3
3
  lucide-react/dist/esm/shared/src/utils.js:
4
4
  lucide-react/dist/esm/defaultAttributes.js:
@@ -1 +1 @@
1
- export{a as AlertMessage}from'../chunk-SF5ZRPGY.mjs';import'../chunk-KKWH3QUT.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-BO6XI5BE.mjs';
1
+ export{a as AlertMessage}from'../chunk-G262XYV7.mjs';import'../chunk-KKWH3QUT.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-BO6XI5BE.mjs';