sodtrack-web-ui 0.74.15 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ERR4CIFD.mjs → chunk-7DZXTSLA.mjs} +1 -1
- package/dist/{chunk-3LNYDH6Z.mjs → chunk-B7K2HKYO.mjs} +1 -1
- package/dist/{chunk-FERU7XG4.mjs → chunk-D4T5LV6D.mjs} +1 -1
- package/dist/{chunk-MNT76J6I.mjs → chunk-DLRA36N6.mjs} +1 -1
- package/dist/chunk-EC4MRIVM.mjs +1 -0
- package/dist/{chunk-GZV7JVQ3.mjs → chunk-UARWHSVD.mjs} +1 -1
- package/dist/chunk-XZZKINUR.mjs +1 -0
- package/dist/components/accordion-form.mjs +1 -1
- package/dist/components/accordion.mjs +1 -1
- package/dist/components/card-expandable.mjs +1 -1
- package/dist/components/card-form.d.mts +1 -1
- package/dist/components/card-form.d.ts +1 -1
- package/dist/components/card-form.js +1 -1
- package/dist/components/card-form.mjs +1 -1
- package/dist/components/data-table.d.mts +1 -1
- package/dist/components/data-table.d.ts +1 -1
- package/dist/components/data-table.js +4 -2
- package/dist/components/data-table.mjs +1 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/components/list-item-arrow.mjs +1 -1
- package/dist/components/list-item-button.mjs +1 -1
- package/dist/components/list-item-checkbox-left.js +1 -1
- package/dist/components/list-item-checkbox-left.mjs +1 -1
- package/dist/components/list-item-checkbox.js +1 -1
- package/dist/components/list-item-checkbox.mjs +1 -1
- package/dist/components/list-item.mjs +1 -1
- package/dist/components/tab.mjs +1 -1
- package/dist/components/table.d.mts +1 -1
- package/dist/components/table.d.ts +1 -1
- package/dist/{data-table-CbbFV6I5.d.mts → data-table-DfqlaNv3.d.mts} +15 -2
- package/dist/{data-table-B5WIrr-Y.d.ts → data-table-DoL1dJyd.d.ts} +15 -2
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-6ZWXNDAJ.mjs +0 -1
- package/dist/chunk-OUAQ2CF7.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-FAMLJ6AJ.mjs';import {
|
|
1
|
+
import {d}from'./chunk-FAMLJ6AJ.mjs';import {a as a$1}from'./chunk-SXEHG5TZ.mjs';import {g}from'./chunk-4HYLZVI5.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import*as c from'react';import*as e from'@radix-ui/react-accordion';export{e as a };import {jsx,jsxs}from'react/jsx-runtime';var S=["sm","md"],k=c.forwardRef(({className:i,children:r,size:o="md",hasBorder:a$1=false,...s},m)=>jsx(e.Root,{"data-border":a$1,"data-size":o,className:a("group/root space-y-2",i),...s,ref:m,children:r})),y=c.forwardRef(({className:i,...r},o)=>jsx(e.Item,{ref:o,className:a("rounded-lg bg-neutral-50","group-data-[border=true]/root:ring-1 group-data-[border=true]/root:ring-neutral-200 group-data-[border=true]/root:ring-inset",i),...r}));y.displayName="AccordionItem";var P=c.forwardRef(({className:i,children:r,...o},a$1)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{ref:a$1,className:a("group flex flex-1 items-center justify-between p-4 transition-all [&[data-state=open]>svg]:rotate-180",i),...o,children:[r,jsx(g,{className:"h-6 w-6 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]})}));P.displayName=e.Trigger.displayName;var x=c.forwardRef(({className:i,title:r,description:o,onEndButtonClick:a$2,StartIcon:s,EndIcon:m,children:N,badgeNumber:g$1,chipStatus:p,...v},A)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{title:r,ref:A,className:a("group hover:not-disabled:bg-primary-100 flex flex-1 items-center justify-between gap-3 rounded-lg p-2 pl-3 transition-all [&[data-state=open]>div>.chevron-icon]:rotate-180",a(!o&&"min-h-12",o&&"group-data-[size=md]/root:min-h-15.75 group-data-[size=sm]/root:min-h-12"),i),...v,children:[jsxs("div",{className:"flex",children:[s&&jsx(s,{className:"mr-2 h-4.5 w-4.5 text-neutral-900 group-disabled:text-neutral-500 group-data-[size=md]/root:h-4.5 group-data-[size=md]/root:w-4.5 group-data-[size=sm]:h-3.5 group-data-[size=sm]/root:w-3.5"}),jsxs("div",{children:[jsx("p",{className:"text-left text-base leading-[125%]! font-semibold text-neutral-900 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-sm",children:r}),jsx("p",{className:"text-left text-sm leading-[130%] font-normal tracking-[0.28px] text-neutral-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-xs",children:o})]})]}),jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[p&&jsx(d,{variant:p.variant,type:p.type,size:"xs",className:"shrink-0",children:p.text}),g$1?.toString()&&jsx(a$1,{variant:"alert",size:"md",content:g$1.toString()}),m&&jsx(m,{className:"m-1.75 text-neutral-900 group-disabled:text-neutral-500",size:18,onClick:R=>{R.stopPropagation(),a$2?.();}}),jsx(g,{className:"chevron-icon h-4.5 w-4.5 shrink-0 transition-transform duration-200 group-disabled:text-neutral-500"})]})]})}));x.displayName=e.Trigger.displayName;var h=c.forwardRef(({className:i,children:r,...o},a$1)=>jsx(e.Content,{ref:a$1,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden",...o,children:jsx("div",{className:a("pr-2 pl-3 group-data-[size=md]/root:py-4 group-data-[size=sm]/root:py-2",i),children:r})}));h.displayName=e.Content.displayName;export{S as b,k as c,y as d,P as e,x as f,h as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c as c$2}from'./chunk-AI4D6AOK.mjs';import {c}from'./chunk-ASMH3P7K.mjs';import {c as c$1}from'./chunk-GBBE3RHT.mjs';import {d}from'./chunk-FAMLJ6AJ.mjs';import {
|
|
1
|
+
import {c as c$2}from'./chunk-AI4D6AOK.mjs';import {c}from'./chunk-ASMH3P7K.mjs';import {c as c$1}from'./chunk-GBBE3RHT.mjs';import {d}from'./chunk-FAMLJ6AJ.mjs';import {b}from'./chunk-PF2FHSIC.mjs';import {c as c$3}from'./chunk-KKWH3QUT.mjs';import {s,t}from'./chunk-4HYLZVI5.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import {createElement,useCallback}from'react';import {tv}from'tailwind-variants';import {useCollapsibleContext,Collapsible}from'@ark-ui/react/collapsible';import {jsxs,jsx}from'react/jsx-runtime';var C=tv({slots:{root:"bg-neutral-80 ring-expandable-card-border group/expandable-card flex h-fit flex-col rounded-lg ring transition-all duration-200 ease-in-out ring-inset",header:"flex pt-3 pr-1 pb-2 pl-3",headerLabel:"text-sm leading-[130%] font-semibold empty:hidden",headerValue:"",content:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up border-expandable-card-border overflow-hidden group-data-[state=open]/expandable-card:border-t",contentInner:"px-3 pt-4 pb-6",fixedContent:"border-expandable-card-border border-t px-3 pt-6 pb-4"},variants:{headerAlign:{vertical:{},horizontal:{}}},compoundVariants:[{headerAlign:"vertical",className:{header:"gap-2",headerValue:"text-xs leading-[130%] text-neutral-700",headerLabel:"line-clamp-1"}},{headerAlign:"horizontal",className:{header:"items-center justify-between gap-3",headerValue:"line-clamp-1 text-sm leading-[130%] text-neutral-900",headerLabel:"mr-3"}}]}),Y=({headerLabel:r,headerValue:a$1,className:o,action:t$1,chipStatus:n,chipExpandable:l,iconButtons:m,headerAlign:T="horizontal",checkbox:i,...E})=>{let{header:P,headerLabel:y,headerValue:H}=C({headerAlign:T}),L=useCollapsibleContext();return T==="horizontal"?jsxs("div",{...E,className:P({className:o}),children:[jsxs("div",{className:"flex items-center gap-2",children:[i&&jsx(c,{...i,className:a("m-1",i.className),size:"sm"}),jsxs("p",{className:H(),children:[jsx("b",{className:y(),children:r}),a$1]})]}),jsxs("div",{className:"flex items-center gap-2",children:[n&&jsx(d,{...n,size:"xs",type:"light"}),l&&jsx(c$1,{...l,type:"light"}),m?.map((b,x)=>createElement(c$2,{...b,key:x,variant:"standard",size:"xs"})),t$1&&jsx(b,{size:"sm",content:t$1.tooltipContent,disabled:!t$1.tooltipContent,children:jsx(c$3,{...t$1,size:"xs",variant:"standard"})}),jsx(Collapsible.Trigger,{asChild:true,children:jsx(c$2,{Icon:L.open?s:t,variant:"standard",size:"xs"})})]})]}):jsxs("div",{...E,className:P({className:o}),children:[i&&jsx(c,{...i,className:a("m-1",i.className),size:"sm"}),jsxs("div",{className:"grid flex-1 grid-cols-[1fr_auto] grid-rows-[auto_auto] gap-x-2 gap-y-1",children:[jsx("p",{className:a("col-start-1 row-start-1",y()),children:r}),jsxs("div",{className:"col-start-2 row-start-1 flex items-center gap-2",children:[n&&jsx(d,{...n,size:"xs",type:"light"}),l&&jsx(c$1,{...l,type:"light"}),m?.map((b,x)=>createElement(c$2,{...b,key:x,variant:"standard",size:"xs"})),t$1&&jsx(b,{size:"sm",content:t$1.tooltipContent,disabled:!t$1.tooltipContent,children:jsx(c$3,{...t$1,size:"xs",variant:"standard"})}),jsx(Collapsible.Trigger,{asChild:true,children:jsx(c$2,{Icon:L.open?s:t,variant:"standard",size:"xs"})})]}),jsx("p",{className:a("col-span-2 row-start-2",H()),children:a$1})]})]})},Z=({className:r,...a})=>{let{contentInner:o,content:t}=C();return jsx(Collapsible.Content,{className:t(),children:jsx("div",{...a,className:o({className:r})})})},$=({className:r,...a})=>{let{fixedContent:o}=C();return jsx("div",{...a,className:o({className:r})})},ee=({className:r,onOpenChange:a,children:o,...t})=>{let{root:n}=C(),l=useCallback(m=>{a?.(m);},[a]);return jsx(Collapsible.Root,{onOpenChange:l,className:n({className:r}),...t,children:o})};export{Y as a,Z as b,$ as c,ee as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-FAMLJ6AJ.mjs';import {
|
|
1
|
+
import {d}from'./chunk-FAMLJ6AJ.mjs';import {a as a$1}from'./chunk-SXEHG5TZ.mjs';import {g}from'./chunk-4HYLZVI5.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import*as n from'react';import*as e from'@radix-ui/react-accordion';import {jsx,jsxs}from'react/jsx-runtime';var b=["sm","md"],w=n.forwardRef(({className:i,children:o,size:r="md",...a$1},d)=>jsx(e.Root,{"data-size":r,className:a("group/root space-y-2",i),...a$1,ref:d,children:o})),y=n.forwardRef(({className:i,...o},r)=>jsx(e.Item,{ref:r,className:i,...o}));y.displayName="AccordionFormItem";var R=n.forwardRef(({className:i,title:o,onEndButtonClick:r,StartIcon:a$2,children:d$1,badgeNumber:p,chipStatus:c,...g$1},u)=>jsx(e.Header,{className:"flex",children:jsxs(e.Trigger,{title:o,ref:u,className:a("group flex h-8 items-center gap-4 [&[data-state=open]>div>.chevron-icon]:rotate-180",i),...g$1,children:[jsxs("div",{className:"group flex items-center",children:[a$2&&jsx(a$2,{className:"mr-2 h-4.5 w-4.5 shrink-0 text-primary-500 transition-colors group-enabled:group-hover:text-primary-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:h-3.5 group-data-[size=sm]/root:w-3.5"}),jsx("div",{children:jsx("p",{className:"line-clamp-1 text-left text-base font-semibold leading-[130%]! text-primary-500 transition-colors group-enabled:group-hover:text-primary-700 group-disabled:text-neutral-500 group-data-[size=sm]/root:text-sm",children:o})})]}),jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[c&&jsx(d,{variant:c.variant,type:c.type,size:"xs",className:"shrink-0",children:c.text}),p?.toString()&&jsx(a$1,{variant:"alert",size:"md",content:p.toString()}),jsx(g,{className:"chevron-icon h-4.5 w-4.5 shrink-0 text-primary-500 transition-transform group-enabled:group-hover:text-primary-700 group-disabled:text-neutral-500"})]})]})}));R.displayName=e.Trigger.displayName;var A=n.forwardRef(({className:i,children:o,...r},a)=>jsx(e.Content,{ref:a,className:"overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:jsx("div",{className:i,children:o})}));A.displayName=e.Content.displayName;export{b as a,w as b,y as c,R as d,A as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {a as a$1}from'./chunk-SXEHG5TZ.mjs';import {d}from'./chunk-4HYLZVI5.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import*as e from'@radix-ui/react-tabs';import o from'react';import {cva}from'cva';import {jsx,jsxs}from'react/jsx-runtime';var k=["ghost","fill","fillWithCloseButton"],D=["sm","md"],y=cva({base:"group relative shrink-0 px-4 leading-[130%] text-neutral-900 transition-all disabled:text-neutral-500",variants:{variant:{ghost:"not-disabled:hover:bg-primary-100 rounded-sm font-semibold",fill:"[&:not(:disabled)]:aria-selected:elevation-10 not-disabled:hover:border-primary-300 not-disabled:hover:text-primary-700 not-disabled:aria-selected:text-primary-500 rounded-lg rounded-b-none! border-1 border-b-0! border-transparent aria-selected:bg-neutral-50 aria-selected:font-semibold",fillWithCloseButton:"[&:not(:disabled)]:aria-selected:elevation-10 bg-primary-100 not-disabled:hover:border-primary-300 not-disabled:hover:bg-primary-100 not-disabled:hover:text-primary-700 not-disabled:aria-selected:text-primary-500 rounded-lg rounded-b-none! border-1 border-b-0! border-transparent aria-selected:font-semibold not-disabled:not-[&:hover]:aria-selected:bg-neutral-50 not-disabled:hover:aria-selected:border-transparent not-disabled:hover:aria-selected:bg-neutral-50"},size:{sm:"h-10 text-sm",md:"h-12 text-base"}}}),P=cva({base:"mr-2 flex shrink-0 transition-all ease-linear group-aria-selected:not-disabled:text-neutral-900",variants:{size:{sm:"",md:""}}}),C=cva({base:"group-aria-selected:bg-primary-500 absolute bottom-0 h-0 w-full rounded-sm transition-all group-disabled:bg-neutral-500 group-aria-selected:h-1 group-disabled:group-aria-selected:h-0",variants:{variant:{ghost:"flex",fill:"hidden",fillWithCloseButton:"hidden"}}}),R=cva({variants:{variant:{ghost:"",fill:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:right-0 before:left-0 before:h-5 before:rounded-lg before:rounded-b-none before:bg-neutral-50 before:content-['']",fillWithCloseButton:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:right-0 before:left-0 before:h-5 before:rounded-lg before:rounded-b-none before:bg-neutral-50 before:content-['']"},size:{sm:"",md:""}},compoundVariants:[{variant:"fill",size:"sm",className:"before:top-10"},{variant:"fill",size:"md",className:"before:top-12"},{variant:"fillWithCloseButton",size:"sm",className:"before:top-10"},{variant:"fillWithCloseButton",size:"md",className:"before:top-12"}]}),f=o.createContext({}),I=o.forwardRef(({className:i,size:a$1="sm",variant:t="ghost",...s},l)=>jsx(f.Provider,{value:{size:a$1,variant:t},children:jsx(e.Root,{"data-tab-variant":t,ref:l,...s,className:a(i,"relative")})})),N=o.forwardRef(({className:i,...a$1},t)=>{let{variant:s}=o.useContext(f);return jsx(e.List,{ref:t,...a$1,className:a("no-scrollbar flex max-w-full space-x-2 overflow-x-scroll",s!=="ghost"&&"px-6",i)})});N.displayName=e.List.displayName;var z=o.forwardRef(({className:i,badgeNumber:a$2,disabled:t,variant:s,StartIcon:l,onClose:T,...v},h)=>{let{size:d$1,variant:x}=o.useContext(f),n=s??x;return jsx(e.Trigger,{"data-tab-variant":n,ref:h,disabled:t,className:y({size:d$1,variant:n,className:i}),...v,children:jsxs("div",{className:"flex flex-col items-center justify-center",children:[jsxs("div",{className:"flex items-center justify-center",children:[l&&jsx(l,{className:P({size:d$1}),size:d$1==="sm"?12:14}),v.children,jsxs("div",{className:a("flex items-center gap-1 empty:hidden",n==="ghost"&&"ml-1",n==="fill"&&"ml-3",n==="fillWithCloseButton"&&"ml-3"),children:[!t&&a$2&&jsx(a$1,{variant:"alert",size:d$1==="sm"?"sm":"md",content:String(a$2)}),n==="fillWithCloseButton"&&jsx(d,{onPointerDown:p=>{p.preventDefault(),p.stopPropagation(),T?.(p);},className:"transition-colors group-aria-selected:not-disabled:text-neutral-900",size:14})]})]}),jsx("div",{className:C({variant:n})})]})})});z.displayName=e.Trigger.displayName;var W=o.forwardRef(({className:i,...a},t)=>{let{variant:s,size:l}=o.useContext(f);return jsx(e.Content,{ref:t,className:R({variant:s,size:l,className:i}),...a})});W.displayName=e.Content.displayName;export{k as a,D as b,I as c,N as d,z as e,W as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {e,i,a,b as b$1,c as c$1,g,h,d,j,f}from'./chunk-2UWUPQW7.mjs';import {c}from'./chunk-ASMH3P7K.mjs';import {b}from'./chunk-PF2FHSIC.mjs';import {e as e$1}from'./chunk-4HYLZVI5.mjs';import {useState,useRef,useEffect,useMemo,memo}from'react';import {flexRender,useReactTable,getPaginationRowModel,getCoreRowModel}from'@tanstack/react-table';import {jsx,jsxs}from'react/jsx-runtime';function Fe({columns:D,data:f$1,rowsCount:m,pagination:b$2,onPaginationChange:I,noResults:oe,rowsPerPageText:ne="Rows per page",ofText:ae="of",onNextPageClick:ie,onPreviousPageClick:re,disableNextPage:O,disablePreviousPage:_,className:se,onRowsPerPageChange:le,columnOrder:ce,columnVisibility:ge,rowsPerPageOptions:de,enableRowSelection:P=false,getRowId:E,selectedRowIds:r,onSelectedRowIdsChange:y,onSelectedRowDataByIdChange:d$1,isRowSelectable:p,rowSelectionTooltip:h$1,...pe}){let[g$1,k]=useState(new Map),V=useRef(r),B=useRef(g$1);useEffect(()=>{V.current=r;},[r]),useEffect(()=>{B.current=g$1;},[g$1]),useEffect(()=>{let e=Array.isArray(r)?new Set(r.map(String)):new Set(Array.from(r??[]).map(String));if(!g$1.size)return;let t=new Map;g$1.forEach((o,n)=>{e.has(n)&&t.set(n,o);}),t.size!==g$1.size&&(k(t),d$1?.(t));},[r,g$1,d$1]);let w=(e,t)=>{if(E)return E(e);let o=e?.id;if(o!=null)return String(o);if(P)throw new Error("DataTable requires getRowId or rows with an 'id' field when row selection is enabled");return String(t??"")},z=useMemo(()=>r?Array.isArray(r)?new Set(r.map(String)):new Set(Array.from(r).map(String)):new Set,[r]),L=useMemo(()=>{let e={};return f$1.forEach((t,o)=>{let n=w(t,o);z.has(n)&&(e[n]=true);}),e},[f$1,z]),ue=useMemo(()=>P?[{id:"__select__",size:48,header:({table:t})=>{let o=t.getRowModel().rows,n=p?o.filter(s=>p(s.original)):o,c$1=n.length,i=0;for(let s of n)s.getIsSelected()&&i++;return jsx(c,{size:"sm",checked:c$1===0||i===0?false:i===c$1?true:"indeterminate",disabled:c$1===0,onCheckedChange:s=>{let M=V.current,R=new Set(Array.isArray(M)?M.map(String):Array.from(M??[]).map(String)),Se=s===true||s==="indeterminate";for(let N of n){let u=String(N.id);Se?R.add(u):R.delete(u);}if(y?.(R),d$1){let N=B.current,u=new Map(N),be=s===true||s==="indeterminate";for(let G of n){let W=String(G.id);be?u.set(W,G.original):u.delete(W);}k(u),d$1(u);}}})},cell:({row:t})=>{let o=p?!p(t.original):false,n=jsx(c,{size:"sm",checked:t.getIsSelected(),onCheckedChange:i=>t.toggleSelected(i===true),disabled:o}),c$1=h$1?.content(t.original);return c$1?jsx(b,{className:"w-fit",size:h$1?.size,content:c$1,positioning:h$1?.positioning??{placement:"right"},children:n}):n},enableSorting:false},...D]:D,[P,D,y,d$1,p,h$1]),fe=useMemo(()=>memo(({row:e$1,isSelected:t})=>jsx(e,{"data-state":t&&"selected",children:e$1.getVisibleCells().map(o=>jsx(i,{children:flexRender(o.column.columnDef.cell,o.getContext())},o.id))}),(e,t)=>{if(e.row.id!==t.row.id||e.isSelected!==t.isSelected||e.row.original!==t.row.original)return false;let o=e.row.getVisibleCells().length,n=t.row.getVisibleCells().length;return o===n}),[]),l=useReactTable({data:f$1,columns:ue,rowCount:m,state:{pagination:b$2,columnOrder:ce,columnVisibility:ge,rowSelection:L},onPaginationChange:I,manualPagination:true,getCoreRowModel:getCoreRowModel(),getPaginationRowModel:getPaginationRowModel(),enableRowSelection:p?e=>p(e.original):P,getRowId:(e,t)=>w(e,t),onRowSelectionChange:e=>{let o=typeof e=="function"?e(L):e,n=new Set(f$1.map((i,T)=>w(i,T))),c=new Set(z);for(let i of n)!!o[i]?c.add(String(i)):c.delete(String(i));if(y?.(c),d$1){let i=new Map(g$1);f$1.forEach((T,F)=>{let s=w(T,F);o[s]?i.set(String(s),T):i.delete(String(s));}),k(i),d$1(i);}}}),me=useMemo(()=>_||!!m&&!l.getCanPreviousPage(),[_,m,b$2?.pageIndex]),Te=useMemo(()=>O||!!m&&!l.getCanNextPage(),[O,m,b$2?.pageIndex]);return l.getRowModel().rows?.length?jsxs(a,{className:se,...pe,children:[jsxs(b$1,{children:[jsx("colgroup",{children:l.getHeaderGroups()[0].headers.map(e=>{let t=e.column.getSize()/l.getHeaderGroups()[0].headers.reduce((o,n)=>o+n.getSize(),0)*100;return jsx("col",{span:1,style:{width:`${t}%`,minWidth:`${e.column.getSize()}px`}},e.id)})}),jsx(c$1,{children:l.getHeaderGroups().map(e=>jsx(g,{children:e.headers.map(t=>{let o=t.column.columnDef;return jsx(h,{children:jsxs("div",{className:"flex items-center",children:[t.isPlaceholder?null:t.column.id==="__select__"||o.headerTooltip===false?jsx("span",{className:"line-clamp-1 text-xs leading-[130%] uppercase",children:flexRender(o.header,t.getContext())}):jsx(b,{size:o.headerTooltipSize,content:typeof o.headerTooltip=="boolean"||o.headerTooltip===void 0?flexRender(o.header,t.getContext()):o.headerTooltip,contentClassName:"font-normal normal-case",children:jsx("span",{className:"line-clamp-1 text-xs leading-[130%] uppercase",children:flexRender(o.header,t.getContext())})}),o.headerInfoTooltip&&jsx(b,{size:o.headerInfoTooltipSize,content:o.headerInfoTooltip,contentClassName:"font-normal normal-case",children:jsx(e$1,{className:"ml-1 w-[0.875rem] shrink-0"})})]})},t.id)})},e.id))}),jsx(d,{children:l.getRowModel().rows.map(e=>jsx(fe,{row:e,isSelected:e.getIsSelected()},e.id))})]}),b$2&&I&&f$1.length>0&&jsx(j,{rowsPerPageOptions:de,rowsCount:m,pagination:b$2,onRowsPerPageChange:e=>{l.setPageSize(e),l.setPageIndex(0),le?.(e);},onPreviousPageClick:()=>{l.previousPage(),re?.();},onNextPageClick:()=>{l.nextPage(),ie?.();},disableNextPage:Te,disablePreviousPage:me,ofText:ae,rowsPerPageText:ne})]}):jsx(f,{...oe})}export{Fe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-463DMFCV.mjs';import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {a as a$4}from'./chunk-5JYXZUPM.mjs';import {c as c$3}from'./chunk-AI4D6AOK.mjs';import {c as c$2}from'./chunk-ASMH3P7K.mjs';import {c as c$4}from'./chunk-GBBE3RHT.mjs';import {d as d$1}from'./chunk-FAMLJ6AJ.mjs';import {a as a$1}from'./chunk-T2IU5QUU.mjs';import {c}from'./chunk-KKWH3QUT.mjs';import {a}from'./chunk-JEPSI76M.mjs';import {c as c$1,h}from'./chunk-4HYLZVI5.mjs';import {a as a$3}from'./chunk-SXEHG5TZ.mjs';import {a as a$2}from'./chunk-BO6XI5BE.mjs';import be,{createContext,useMemo,useCallback,useContext,useRef,useEffect,useState,useId}from'react';import*as Ie from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var Qe=be.memo(({handleSelect:e,NoResultsIcon:i,noResultsLabel:t,noResultsDescription:o,noResultsDescriptionLines:s,noResultsAsColumn:p,noResultsButtonOnClick:n,optionDescriptionLines:r,noResultsButtonLabel:l,filteredOptions:u,inputRect:c$1,inputRef:f,popoverPosition:C,optionsListRef:v,selectedOption:b,options:g,setFilteredOptions:R})=>jsx(Ie.Root,{asChild:true,children:jsxs("div",{ref:v,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:c$1?{width:`${c$1.width}px`,left:c$1.left,top:C==="bottom"?`${c$1.bottom}px`:void 0,bottom:C==="top"?`${window.innerHeight-c$1.top}px`:void 0}:void 0,children:[u.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:o,Icon:i,iconAsColumn:p,descriptionLines:s}),n&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:a=>{v.current.style.display="none",f.current.value="",R(g),n();},children:l})]})]}),u.map(a=>jsx(ke,{title:a.label,disabled:a.disabled,description:a.description,descriptionLines:r,onClick:()=>e(a),className:a$2(b?.value===a.value&&"bg-primary-200")},a.key??a.value))]})})),Pe=Qe;var Ze=336,eo=({options:e,defaultSelectedOption:i,onSelect:t,onClick:o,onInputChange:s,error:p,helperText:n,label:r,placeholder:l,value:u,size:c="md",optionDescriptionLines:f=1,noResultsLabel:C,noResultsIcon:v,noResultsDescription:b,noResultsDescriptionLines:g,noResultsAsColumn:R,noResultsButtonOnClick:a,noResultsButtonLabel:N,className:L,disabled:P})=>{let[m,M]=useState(i??null),O=useRef(null),d=useRef(null),[pe,ue]=useState(),[ce,z]=useState([]),[me,W]=useState("bottom"),[U,ee]=useState(),q=Ze,V=useCallback(x=>{O.current.style.display="none",d.current.value=x.label,M(x),t?.(x);},[t]),w=useCallback(()=>{if(!d?.current)return;let x=d.current.getBoundingClientRect();ue(x);let k=U?U.height:q,I=window.innerHeight-x.bottom>k,te=x.top>k;W(I?"bottom":te?"top":"bottom");},[U?.height]),J=useCallback(()=>{let x=e.filter(k=>k.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(z(x),O?.current){let k=O.current.getBoundingClientRect();ee(k);}},[e]);return useEffect(()=>{z(e);},[e]),useEffect(()=>{if(!u){M(null),d.current&&(d.current.value="");return}(!d.current?.value||m?.value!==u.value)&&(M(u),d.current.value=u.label);},[u]),a$5(O,()=>{O.current.style.display="none",m&&d.current&&(d.current.value=m.label);}),useEffect(()=>{if(d?.current)return w(),d.current.addEventListener("mousedown",w),d.current.addEventListener("input",J),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{d.current?.removeEventListener("mousedown",w),d.current?.removeEventListener("input",J),window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[w,J]),jsxs("div",{className:a$2("relative",L),children:[jsx(a$4,{ref:d,autoComplete:"off",list:"",selectMode:true,onChange:x=>{x.target.value||(M(null),t?.(null)),s?.(x);},onClean:()=>{M(null),z(e),t?.(null);},onClick:x=>{O.current.style.display="flex",o?.(x);},onBlur:()=>{m&&d.current&&(d.current.value=m.label);},label:r,helperText:n,placeholder:l,size:c,error:p,disabled:P}),jsx(Pe,{handleSelect:V,noResultsLabel:C,NoResultsIcon:v,optionDescriptionLines:f,noResultsAsColumn:R,noResultsButtonLabel:N,noResultsButtonOnClick:a,noResultsDescription:b,noResultsDescriptionLines:g,filteredOptions:ce,inputRect:pe,inputRef:d,popoverPosition:me,optionsListRef:O,selectedOption:m,options:e,setFilteredOptions:z})]})};var et=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,disabled:p=false,className:n,...r})=>jsxs("div",{className:"flex w-full flex-col gap-1",...r,children:[jsx("p",{className:a$2("break-all text-sm leading-[130%]",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:i}),o&&jsx("p",{className:a$2("text-xs leading-[130%]",p?"text-neutral-400":"text-neutral-700"),style:s?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s}:void 0,children:o})]}),H=et;var ao=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,startIcon:p,badgeContent:n,hasDivider:r=false,disabled:l=false,onSelect:u,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:l,onClick:u,hasDivider:r,className:a$2(!l&&"cursor-pointer",c),...f,children:[p&&be.cloneElement(p,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:l}),jsxs("div",{className:"ml-4 flex gap-2",children:[n&&jsx(a$3,{content:n,size:"lg",variant:"alert",className:a$2("self-center",l&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var He=({children:e,title:i,titleLines:t=1,description:o="",descriptionLines:s,startIcon:p,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:u,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:r,hasDivider:n,...f,className:a$2("pr-6",c),children:[p&&be.cloneElement(p,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:r}),jsx(c$2,{size:"sm",checked:l,onCheckedChange:u,className:"ml-4 self-center",disabled:r})]});var F=336,Se=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:F,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),D=()=>{let e=useContext(Se);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Be=({children:e})=>{let i=useRef(null),t=useRef(null),o=useId(),[s,p]=useState(),[n,r]=useState(true),[l,u]=useState([]),[c,f]=useState(-1),[C,v]=useState("bottom"),[b,g]=useState(),[R,a]=useState(F);return jsx(Se.Provider,{value:{optionsListRef:i,inputRef:t,autocompleteId:o,inputRect:s,showChips:n,filteredOptions:l,currentFocus:c,popoverPosition:C,setFilteredOptions:u,setCurrentFocus:f,setShowChips:r,setPopoverPosition:v,setInputRect:p,optionsListHeight:R,optionsListRect:b,setOptionsListRect:g,setOptionsListHeight:a},children:e})};var mt=({option:e,onMountWidth:i,size:t})=>{let o=useRef(null);return useEffect(()=>{o.current&&i?.(o.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:o,className:"shrink-0",size:t==="md"?"xs":"sm",hasCloseIcon:false,children:e.label})},ze=mt;var ht=150,bt=be.memo(({selectedOptions:e,error:i,onCleanSelectedOptions:t,disabled:o,size:s})=>{let{autocompleteId:p,inputRect:n,inputRef:r,optionsListRef:l}=D(),u=be.useRef(null),[c,f]=be.useState(new Map),C=useMemo(()=>{if(!n?.width)return [];let b=0,g=n.width-ht,R=0;for(let a=0;a<e.length&&(R+=c.get(a)??0,!(R>g));a++)b++;return e.slice(0,b)},[n?.width,e,c]),v=useCallback(()=>{o||(r?.current?.focus(),l.current.style.display="flex");},[o]);return jsxs("div",{onClick:v,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",o&&"cursor-not-allowed"),style:{maxWidth:n?.width?n?.width:void 0,height:n?.height?n?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:u,children:C.map((b,g)=>jsx(ze,{option:b,onMountWidth:R=>f(a=>new Map(a).set(g,R)),size:s},`chip-input-${p}-${b.value}`))}),e.length>C.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!i&&jsx(a$3,{content:String(e.length),size:s}),i&&e.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:b=>{b.stopPropagation(),t();}})]})}),We=bt;var xt=be.memo(({option:e,index:i,onPressOption:t,isSelected:o,optionDescriptionLines:s})=>{let{currentFocus:p,inputRef:n}=D();return jsx(He,{title:e.label,checked:o,disabled:e.disabled,className:p===i?"bg-primary-200":void 0,onMouseDown:r=>{e.disabled||(n?.current?.value&&r.preventDefault(),t?.(e,r));},description:e.description,descriptionLines:s})}),Le=xt;var Mt=be.memo(({selectedOptions:e,handleSelect:i,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:s,noResultsDescriptionLines:p,noResultsAsColumn:n,noResultsButtonOnClick:r,optionDescriptionLines:l,noResultsButtonLabel:u})=>{let{popoverPosition:c$1,optionsListRef:f,filteredOptions:C,inputRect:v,autocompleteId:b,inputRef:g,optionsListHeight:R}=D(),a$2=useCallback(L=>e.some(P=>P.value===L.value),[e]),N=useMemo(()=>e.filter(L=>L.label.toLowerCase().includes(g?.current?.value.toLowerCase()??"")),[e,g?.current?.value]);return jsx(Ie.Root,{asChild:true,children:jsxs("div",{ref:f,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:v?{width:`${v.width}px`,left:v.left,top:c$1==="bottom"?`${v.bottom}px`:void 0,bottom:c$1==="top"?`${window.innerHeight-v.top}px`:void 0,maxHeight:R+"px"}:void 0,children:[C.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:o,description:s,Icon:t,iconAsColumn:n,descriptionLines:p}),r&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:L=>{f.current.style.display="none",g.current.value="",r();},children:u})]})]}),N.map((L,P)=>jsx(Le,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$2(L),optionDescriptionLines:l},`autocomplete-option-${b}-${L.key??L.value}`)),C.map((L,P)=>!e.some(m=>m.value===L.value)&&jsx(Le,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$2(L),optionDescriptionLines:l},`autocomplete-option-${b}-${L.key??L.value}`))]})})}),$e=Mt;var It=be.memo(({selectedOptions:e,onSelect:i,error:t,helperText:o,label:s,placeholder:p,options:n,onInputChange:r,size:l,disabled:u})=>{let{setCurrentFocus:c,setFilteredOptions:f,optionsListRef:C,inputRef:v}=D();return jsx(a$4,{ref:v,autoComplete:"off",list:"",disabled:u,selectMode:true,onChange:b=>{c(-1),r?.(b.target.value);},onClean:()=>{c(-1),f(n),i?.(null,e);},onClick:()=>{u||(C.current.style.display="flex");},error:t,helperText:o,label:s,placeholder:p,fixedTopLabel:e.length>0,size:l})}),Ge=It;var _e=({options:e,defaultSelectedOptions:i,onSelect:t,error:o,helperText:s,label:p,placeholder:n,noResultsLabel:r,noResultsIcon:l,noResultsDescription:u,noResultsDescriptionLines:c,noResultsAsColumn:f,noResultsButtonOnClick:C,noResultsButtonLabel:v,className:b,onInputChange:g,value:R,loading:a,size:N="md",optionDescriptionLines:L=1,disabled:P})=>{let{inputRef:m,optionsListRef:M,setFilteredOptions:O,setShowChips:d,setInputRect:pe,setPopoverPosition:ue,setCurrentFocus:ce,showChips:z,setOptionsListRect:me,optionsListRect:W,setOptionsListHeight:U}=D(),ee=useRef(false),[q,V]=useState(i??[]),w=useCallback(A=>{V(E=>{let T,K=E.findIndex(Je=>Je.value===A.value);return K===-1?(T=E.concat(A),t?.(A,T),T):(T=E.toSpliced(K,1),t?.(A,T),T)});},[t]),J=useCallback(()=>{V([]),O(e),t?.(null,[]);},[]),x=useCallback(()=>{d(false);},[]),k=useCallback(()=>{d(true);},[]),I=useCallback(()=>{if(!m?.current)return;let A=m.current.getBoundingClientRect();pe(A);let E=W?W.height>F?F:W.height:F,T=window.innerHeight-A.bottom>E,K=A.top>E;ue(T?"bottom":K?"top":"bottom"),U(K?F:window.innerHeight-A.bottom>F?F:window.innerHeight-A.bottom);},[W?.height]),te=useCallback(()=>{let A=e.filter(E=>E.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(O(A),M?.current){let E=M.current.getBoundingClientRect();me(E);}},[e,M?.current]);return useEffect(()=>{O(e);},[e]),a$5(M,()=>{M.current.style.display="none",ce(-1);}),useEffect(()=>{if(m?.current)return I(),m.current.addEventListener("mousedown",I),m.current.addEventListener("input",te),m.current.addEventListener("focusin",x),m.current.addEventListener("focusout",k),window.addEventListener("scroll",I,true),window.addEventListener("resize",I),()=>{m.current?.removeEventListener("mousedown",I),m.current?.removeEventListener("input",I),m.current?.removeEventListener("focusout",k),m.current?.removeEventListener("focusin",x),window.removeEventListener("scroll",I,true),window.removeEventListener("resize",I);}},[I,k,x,te]),useEffect(()=>{R&&(V(R),d(true));},[R]),useEffect(()=>{a||i&&i.length&&!ee.current&&(V(i),ee.current=true,d(true));},[i,a]),jsxs("div",{className:a$2("relative",b),children:[jsx(Ge,{selectedOptions:q,onSelect:t,error:o,helperText:s,label:p,placeholder:n,handleSelect:w,options:e,onInputChange:g,size:N,disabled:P}),z&&jsx(We,{selectedOptions:q,disabled:P,error:o,onCleanSelectedOptions:J,size:N}),jsx($e,{handleSelect:w,selectedOptions:q,noResultsLabel:r,NoResultsIcon:l,optionDescriptionLines:L,noResultsAsColumn:f,noResultsButtonLabel:v,noResultsButtonOnClick:C,noResultsDescription:u,noResultsDescriptionLines:c})]})};var Ii=e=>jsx(Be,{children:jsx(_e,{...e})});var Ni=({children:e,title:i,titleLines:t=1,description:o,descriptionLines:s=1,StartIcon:p,hasDivider:n=false,disabled:r=false,actionButton:l,isSelected:u=false,className:c$1,...f})=>jsxs(y,{hasDescription:!!o,disabled:r,hasDivider:n,isSelected:u,...f,className:c$1,children:[p&&jsx(p,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:r}),l&&jsx(Fragment,{children:l.isIcon?jsx(c$3,{...l,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:r??l.disabled}):jsx(c,{...l,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:r??l.disabled})})]});var qi=({title:e,description:i="",descriptionLines:t,hasDivider:o=false,disabled:s=false,checked:p,onCheckedChange:n,className:r,chipStatus:l,chipExpandable:u,...c})=>jsxs(y,{hasDescription:!!i,disabled:s,hasDivider:o,...c,className:a$2("pr-6",r),children:[jsx(c$2,{size:"sm",checked:p,onCheckedChange:n,className:"mr-4 self-center",disabled:s}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!i&&"font-medium"),children:e}),u&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$4,{...u})}),l&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$1,{...l,size:"xs",className:"shrink-0"})})]}),i&&jsx("p",{className:a$2("text-xs leading-[130%]",s?"text-neutral-400":"text-neutral-700",{"line-clamp-1":t===1,"line-clamp-2":t===2,"line-clamp-3":t===3,"line-clamp-4":t===4}),children:i})]})]});var Tt=({children:e,hasDescription:i=false,disabled:t=false,hasDivider:o=false,className:s,isSelected:p,onClick:n,...r})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",i?"py-3":"py-3.5",t?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",p&&"bg-primary-200",s),onClick:l=>{t||n?.(l);},...r,children:e}),o&&jsx(a$1,{})]}),y=Tt;var ke=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,startIcon:p,endIcon:n,hasDivider:r=false,disabled:l=false,isSelected:u=false,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:l,hasDivider:r,className:c,isSelected:u,...f,children:[p&&be.cloneElement(p,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:l}),n&&be.cloneElement(n,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{eo as a,ke as b,ao as c,He as d,Ii as e,Ni as f,qi as g};
|
|
1
|
+
import {d}from'./chunk-463DMFCV.mjs';import {a as a$5}from'./chunk-KTRSJBA4.mjs';import {a as a$4}from'./chunk-5JYXZUPM.mjs';import {c as c$3}from'./chunk-AI4D6AOK.mjs';import {c as c$2}from'./chunk-ASMH3P7K.mjs';import {c as c$4}from'./chunk-GBBE3RHT.mjs';import {d as d$1}from'./chunk-FAMLJ6AJ.mjs';import {a as a$1}from'./chunk-T2IU5QUU.mjs';import {a}from'./chunk-JEPSI76M.mjs';import {a as a$3}from'./chunk-SXEHG5TZ.mjs';import {c}from'./chunk-KKWH3QUT.mjs';import {c as c$1,h}from'./chunk-4HYLZVI5.mjs';import {a as a$2}from'./chunk-BO6XI5BE.mjs';import be,{createContext,useMemo,useCallback,useContext,useRef,useEffect,useState,useId}from'react';import*as Ie from'@radix-ui/react-portal';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var Qe=be.memo(({handleSelect:e,NoResultsIcon:i,noResultsLabel:t,noResultsDescription:o,noResultsDescriptionLines:s,noResultsAsColumn:p,noResultsButtonOnClick:n,optionDescriptionLines:r,noResultsButtonLabel:l,filteredOptions:u,inputRect:c$1,inputRef:f,popoverPosition:C,optionsListRef:v,selectedOption:b,options:g,setFilteredOptions:R})=>jsx(Ie.Root,{asChild:true,children:jsxs("div",{ref:v,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden max-h-[336px] w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:c$1?{width:`${c$1.width}px`,left:c$1.left,top:C==="bottom"?`${c$1.bottom}px`:void 0,bottom:C==="top"?`${window.innerHeight-c$1.top}px`:void 0}:void 0,children:[u.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:t,description:o,Icon:i,iconAsColumn:p,descriptionLines:s}),n&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:a=>{v.current.style.display="none",f.current.value="",R(g),n();},children:l})]})]}),u.map(a=>jsx(ke,{title:a.label,disabled:a.disabled,description:a.description,descriptionLines:r,onClick:()=>e(a),className:a$2(b?.value===a.value&&"bg-primary-200")},a.key??a.value))]})})),Pe=Qe;var Ze=336,eo=({options:e,defaultSelectedOption:i,onSelect:t,onClick:o,onInputChange:s,error:p,helperText:n,label:r,placeholder:l,value:u,size:c="md",optionDescriptionLines:f=1,noResultsLabel:C,noResultsIcon:v,noResultsDescription:b,noResultsDescriptionLines:g,noResultsAsColumn:R,noResultsButtonOnClick:a,noResultsButtonLabel:N,className:L,disabled:P})=>{let[m,M]=useState(i??null),O=useRef(null),d=useRef(null),[pe,ue]=useState(),[ce,z]=useState([]),[me,W]=useState("bottom"),[U,ee]=useState(),q=Ze,V=useCallback(x=>{O.current.style.display="none",d.current.value=x.label,M(x),t?.(x);},[t]),w=useCallback(()=>{if(!d?.current)return;let x=d.current.getBoundingClientRect();ue(x);let k=U?U.height:q,I=window.innerHeight-x.bottom>k,te=x.top>k;W(I?"bottom":te?"top":"bottom");},[U?.height]),J=useCallback(()=>{let x=e.filter(k=>k.label.toLowerCase().includes(d?.current?.value.toLowerCase()??""));if(z(x),O?.current){let k=O.current.getBoundingClientRect();ee(k);}},[e]);return useEffect(()=>{z(e);},[e]),useEffect(()=>{if(!u){M(null),d.current&&(d.current.value="");return}(!d.current?.value||m?.value!==u.value)&&(M(u),d.current.value=u.label);},[u]),a$5(O,()=>{O.current.style.display="none",m&&d.current&&(d.current.value=m.label);}),useEffect(()=>{if(d?.current)return w(),d.current.addEventListener("mousedown",w),d.current.addEventListener("input",J),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{d.current?.removeEventListener("mousedown",w),d.current?.removeEventListener("input",J),window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[w,J]),jsxs("div",{className:a$2("relative",L),children:[jsx(a$4,{ref:d,autoComplete:"off",list:"",selectMode:true,onChange:x=>{x.target.value||(M(null),t?.(null)),s?.(x);},onClean:()=>{M(null),z(e),t?.(null);},onClick:x=>{O.current.style.display="flex",o?.(x);},onBlur:()=>{m&&d.current&&(d.current.value=m.label);},label:r,helperText:n,placeholder:l,size:c,error:p,disabled:P}),jsx(Pe,{handleSelect:V,noResultsLabel:C,NoResultsIcon:v,optionDescriptionLines:f,noResultsAsColumn:R,noResultsButtonLabel:N,noResultsButtonOnClick:a,noResultsDescription:b,noResultsDescriptionLines:g,filteredOptions:ce,inputRect:pe,inputRef:d,popoverPosition:me,optionsListRef:O,selectedOption:m,options:e,setFilteredOptions:z})]})};var et=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,disabled:p=false,className:n,...r})=>jsxs("div",{className:"flex w-full flex-col gap-1",...r,children:[jsx("p",{className:a$2("break-all text-sm leading-[130%]",!!o&&"font-medium"),style:t?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:t}:void 0,children:i}),o&&jsx("p",{className:a$2("text-xs leading-[130%]",p?"text-neutral-400":"text-neutral-700"),style:s?{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s}:void 0,children:o})]}),H=et;var ao=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,startIcon:p,badgeContent:n,hasDivider:r=false,disabled:l=false,onSelect:u,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:l,onClick:u,hasDivider:r,className:a$2(!l&&"cursor-pointer",c),...f,children:[p&&be.cloneElement(p,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:l}),jsxs("div",{className:"ml-4 flex gap-2",children:[n&&jsx(a$3,{content:n,size:"lg",variant:"alert",className:a$2("self-center",l&&"bg-neutral-400")}),jsx(h,{className:"h-4.5 w-4.5 self-center"})]})]});var He=({children:e,title:i,titleLines:t=1,description:o="",descriptionLines:s,startIcon:p,hasDivider:n=false,disabled:r=false,checked:l,onCheckedChange:u,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:r,hasDivider:n,...f,className:a$2("pr-6",c),children:[p&&be.cloneElement(p,{className:"shrink-0 w-4.5 h-4.5 mr-2"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:r}),jsx(c$2,{size:"sm",checked:l,onCheckedChange:u,className:"ml-4 self-center",disabled:r})]});var F=336,Se=createContext({inputRef:null,optionsListRef:null,autocompleteId:"",inputRect:void 0,showChips:false,filteredOptions:[],currentFocus:-1,popoverPosition:"bottom",setFilteredOptions:()=>{},setCurrentFocus:()=>{},setShowChips:()=>{},setPopoverPosition:()=>{},setInputRect:()=>{},optionsListHeight:F,setOptionsListHeight:()=>{},optionsListRect:void 0,setOptionsListRect:()=>{}}),D=()=>{let e=useContext(Se);if(e===null)throw new Error("useAutocompleteMultipleContext must be used within a AutocompleteMultipleProvider");return e},Be=({children:e})=>{let i=useRef(null),t=useRef(null),o=useId(),[s,p]=useState(),[n,r]=useState(true),[l,u]=useState([]),[c,f]=useState(-1),[C,v]=useState("bottom"),[b,g]=useState(),[R,a]=useState(F);return jsx(Se.Provider,{value:{optionsListRef:i,inputRef:t,autocompleteId:o,inputRect:s,showChips:n,filteredOptions:l,currentFocus:c,popoverPosition:C,setFilteredOptions:u,setCurrentFocus:f,setShowChips:r,setPopoverPosition:v,setInputRect:p,optionsListHeight:R,optionsListRect:b,setOptionsListRect:g,setOptionsListHeight:a},children:e})};var mt=({option:e,onMountWidth:i,size:t})=>{let o=useRef(null);return useEffect(()=>{o.current&&i?.(o.current.clientWidth);},[]),jsx(d,{type:"fill",variant:"standard",ref:o,className:"shrink-0",size:t==="md"?"xs":"sm",hasCloseIcon:false,children:e.label})},ze=mt;var ht=150,bt=be.memo(({selectedOptions:e,error:i,onCleanSelectedOptions:t,disabled:o,size:s})=>{let{autocompleteId:p,inputRect:n,inputRef:r,optionsListRef:l}=D(),u=be.useRef(null),[c,f]=be.useState(new Map),C=useMemo(()=>{if(!n?.width)return [];let b=0,g=n.width-ht,R=0;for(let a=0;a<e.length&&(R+=c.get(a)??0,!(R>g));a++)b++;return e.slice(0,b)},[n?.width,e,c]),v=useCallback(()=>{o||(r?.current?.focus(),l.current.style.display="flex");},[o]);return jsxs("div",{onClick:v,className:a$2("absolute top-0 z-30 flex w-full cursor-pointer flex-nowrap items-center gap-2 pl-3 pr-12",o&&"cursor-not-allowed"),style:{maxWidth:n?.width?n?.width:void 0,height:n?.height?n?.height:void 0},children:[jsx("div",{className:"flex flex-1 gap-1 overflow-hidden",ref:u,children:C.map((b,g)=>jsx(ze,{option:b,onMountWidth:R=>f(a=>new Map(a).set(g,R)),size:s},`chip-input-${p}-${b.value}`))}),e.length>C.length&&jsx("span",{className:"text-base",children:"..."}),e.length>0&&!i&&jsx(a$3,{content:String(e.length),size:s}),i&&e.length>0&&jsx(c$1,{className:"h-6 w-6 text-error-700",onClick:b=>{b.stopPropagation(),t();}})]})}),We=bt;var xt=be.memo(({option:e,index:i,onPressOption:t,isSelected:o,optionDescriptionLines:s})=>{let{currentFocus:p,inputRef:n}=D();return jsx(He,{title:e.label,checked:o,disabled:e.disabled,className:p===i?"bg-primary-200":void 0,onMouseDown:r=>{e.disabled||(n?.current?.value&&r.preventDefault(),t?.(e,r));},description:e.description,descriptionLines:s})}),Le=xt;var Mt=be.memo(({selectedOptions:e,handleSelect:i,NoResultsIcon:t,noResultsLabel:o,noResultsDescription:s,noResultsDescriptionLines:p,noResultsAsColumn:n,noResultsButtonOnClick:r,optionDescriptionLines:l,noResultsButtonLabel:u})=>{let{popoverPosition:c$1,optionsListRef:f,filteredOptions:C,inputRect:v,autocompleteId:b,inputRef:g,optionsListHeight:R}=D(),a$2=useCallback(L=>e.some(P=>P.value===L.value),[e]),N=useMemo(()=>e.filter(L=>L.label.toLowerCase().includes(g?.current?.value.toLowerCase()??"")),[e,g?.current?.value]);return jsx(Ie.Root,{asChild:true,children:jsxs("div",{ref:f,className:"elevation-8 pointer-events-auto fixed z-50 mb-2 hidden w-full flex-col overflow-y-auto rounded-lg bg-neutral-50",style:v?{width:`${v.width}px`,left:v.left,top:c$1==="bottom"?`${v.bottom}px`:void 0,bottom:c$1==="top"?`${window.innerHeight-v.top}px`:void 0,maxHeight:R+"px"}:void 0,children:[C.length===0&&jsxs("div",{className:"elevation-8 max-h-88 flex flex-1 flex-col justify-center rounded-lg bg-neutral-50",children:[jsx(a,{title:o,description:s,Icon:t,iconAsColumn:n,descriptionLines:p}),r&&jsxs(Fragment,{children:[jsx(a$1,{}),jsx(c,{variant:"ghost",className:"my-3 w-fit self-center",onClick:L=>{f.current.style.display="none",g.current.value="",r();},children:u})]})]}),N.map((L,P)=>jsx(Le,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$2(L),optionDescriptionLines:l},`autocomplete-option-${b}-${L.key??L.value}`)),C.map((L,P)=>!e.some(m=>m.value===L.value)&&jsx(Le,{option:L,index:P,onPressOption:m=>i(m),isSelected:a$2(L),optionDescriptionLines:l},`autocomplete-option-${b}-${L.key??L.value}`))]})})}),$e=Mt;var It=be.memo(({selectedOptions:e,onSelect:i,error:t,helperText:o,label:s,placeholder:p,options:n,onInputChange:r,size:l,disabled:u})=>{let{setCurrentFocus:c,setFilteredOptions:f,optionsListRef:C,inputRef:v}=D();return jsx(a$4,{ref:v,autoComplete:"off",list:"",disabled:u,selectMode:true,onChange:b=>{c(-1),r?.(b.target.value);},onClean:()=>{c(-1),f(n),i?.(null,e);},onClick:()=>{u||(C.current.style.display="flex");},error:t,helperText:o,label:s,placeholder:p,fixedTopLabel:e.length>0,size:l})}),Ge=It;var _e=({options:e,defaultSelectedOptions:i,onSelect:t,error:o,helperText:s,label:p,placeholder:n,noResultsLabel:r,noResultsIcon:l,noResultsDescription:u,noResultsDescriptionLines:c,noResultsAsColumn:f,noResultsButtonOnClick:C,noResultsButtonLabel:v,className:b,onInputChange:g,value:R,loading:a,size:N="md",optionDescriptionLines:L=1,disabled:P})=>{let{inputRef:m,optionsListRef:M,setFilteredOptions:O,setShowChips:d,setInputRect:pe,setPopoverPosition:ue,setCurrentFocus:ce,showChips:z,setOptionsListRect:me,optionsListRect:W,setOptionsListHeight:U}=D(),ee=useRef(false),[q,V]=useState(i??[]),w=useCallback(A=>{V(E=>{let T,K=E.findIndex(Je=>Je.value===A.value);return K===-1?(T=E.concat(A),t?.(A,T),T):(T=E.toSpliced(K,1),t?.(A,T),T)});},[t]),J=useCallback(()=>{V([]),O(e),t?.(null,[]);},[]),x=useCallback(()=>{d(false);},[]),k=useCallback(()=>{d(true);},[]),I=useCallback(()=>{if(!m?.current)return;let A=m.current.getBoundingClientRect();pe(A);let E=W?W.height>F?F:W.height:F,T=window.innerHeight-A.bottom>E,K=A.top>E;ue(T?"bottom":K?"top":"bottom"),U(K?F:window.innerHeight-A.bottom>F?F:window.innerHeight-A.bottom);},[W?.height]),te=useCallback(()=>{let A=e.filter(E=>E.label.toLowerCase().includes(m?.current?.value.toLowerCase()??""));if(O(A),M?.current){let E=M.current.getBoundingClientRect();me(E);}},[e,M?.current]);return useEffect(()=>{O(e);},[e]),a$5(M,()=>{M.current.style.display="none",ce(-1);}),useEffect(()=>{if(m?.current)return I(),m.current.addEventListener("mousedown",I),m.current.addEventListener("input",te),m.current.addEventListener("focusin",x),m.current.addEventListener("focusout",k),window.addEventListener("scroll",I,true),window.addEventListener("resize",I),()=>{m.current?.removeEventListener("mousedown",I),m.current?.removeEventListener("input",I),m.current?.removeEventListener("focusout",k),m.current?.removeEventListener("focusin",x),window.removeEventListener("scroll",I,true),window.removeEventListener("resize",I);}},[I,k,x,te]),useEffect(()=>{R&&(V(R),d(true));},[R]),useEffect(()=>{a||i&&i.length&&!ee.current&&(V(i),ee.current=true,d(true));},[i,a]),jsxs("div",{className:a$2("relative",b),children:[jsx(Ge,{selectedOptions:q,onSelect:t,error:o,helperText:s,label:p,placeholder:n,handleSelect:w,options:e,onInputChange:g,size:N,disabled:P}),z&&jsx(We,{selectedOptions:q,disabled:P,error:o,onCleanSelectedOptions:J,size:N}),jsx($e,{handleSelect:w,selectedOptions:q,noResultsLabel:r,NoResultsIcon:l,optionDescriptionLines:L,noResultsAsColumn:f,noResultsButtonLabel:v,noResultsButtonOnClick:C,noResultsDescription:u,noResultsDescriptionLines:c})]})};var Ii=e=>jsx(Be,{children:jsx(_e,{...e})});var Ni=({children:e,title:i,titleLines:t=1,description:o,descriptionLines:s=1,StartIcon:p,hasDivider:n=false,disabled:r=false,actionButton:l,isSelected:u=false,className:c$1,...f})=>jsxs(y,{hasDescription:!!o,disabled:r,hasDivider:n,isSelected:u,...f,className:c$1,children:[p&&jsx(p,{className:"mr-2 h-4.5 w-4.5 shrink-0 grow-0"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:r}),l&&jsx(Fragment,{children:l.isIcon?jsx(c$3,{...l,className:"ml-4 self-center",variant:"ghost",size:"sm",disabled:r??l.disabled}):jsx(c,{...l,className:"ml-4 self-center",size:"sm",variant:"ghost",disabled:r??l.disabled})})]});var qi=({title:e,description:i="",descriptionLines:t,hasDivider:o=false,disabled:s=false,checked:p,onCheckedChange:n,className:r,chipStatus:l,chipExpandable:u,...c})=>jsxs(y,{hasDescription:!!i,disabled:s,hasDivider:o,...c,className:a$2("pr-6",r),children:[jsx(c$2,{size:"sm",checked:p,onCheckedChange:n,className:"mr-4 self-center",disabled:s}),jsxs("div",{className:"flex-1",children:[jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsx("p",{className:a$2("line-clamp-1 text-sm leading-[130%] break-all",!!i&&"font-medium"),children:e}),u&&jsx("div",{className:"ml-auto flex min-w-0 flex-shrink-0 items-center justify-end",children:jsx(c$4,{...u})}),l&&jsx("div",{className:"ml-4 flex shrink-0 items-center gap-1",children:jsx(d$1,{...l,size:"xs",className:"shrink-0"})})]}),i&&jsx("p",{className:a$2("text-xs leading-[130%]",s?"text-neutral-400":"text-neutral-700",{"line-clamp-1":t===1,"line-clamp-2":t===2,"line-clamp-3":t===3,"line-clamp-4":t===4}),children:i})]})]});var Tt=({children:e,hasDescription:i=false,disabled:t=false,hasDivider:o=false,className:s,isSelected:p,onClick:n,...r})=>jsxs(Fragment,{children:[jsx("div",{className:a$2("flex flex-row px-3 py-4 text-neutral-900 transition-colors",i?"py-3":"py-3.5",t?"cursor-not-allowed text-neutral-400":"hover:bg-primary-100 focus:bg-primary-200",p&&"bg-primary-200",s),onClick:l=>{t||n?.(l);},...r,children:e}),o&&jsx(a$1,{})]}),y=Tt;var ke=({children:e,title:i,titleLines:t,description:o="",descriptionLines:s,startIcon:p,endIcon:n,hasDivider:r=false,disabled:l=false,isSelected:u=false,className:c,...f})=>jsxs(y,{hasDescription:!!o,disabled:l,hasDivider:r,className:c,isSelected:u,...f,children:[p&&be.cloneElement(p,{className:"shrink-0 mr-2 h-4.5 w-4.5"}),jsx(H,{title:i,titleLines:t,description:o,descriptionLines:s,disabled:l}),n&&be.cloneElement(n,{className:"min-h-4.5 min-w-4.5 self-center ml-4"})]});export{eo as a,ke as b,ao as c,He as d,Ii as e,Ni as f,qi as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-T2IU5QUU.mjs';import {c}from'./chunk-KKWH3QUT.mjs';import {a}from'./chunk-BO6XI5BE.mjs';import {jsx,jsxs}from'react/jsx-runtime';var v=({children:e,className:r,...o})=>jsx("div",{...o,className:a("bg-neutral-80 @container rounded-lg border border-neutral-200",r),children:e}),u=({title:e,buttons:r,...o})=>jsxs("div",{...o,children:[jsxs("div",{className:"flex items-center justify-between gap-2.5 px-3 py-2 empty:hidden",children:[!!e&&jsx("h2",{className:"text-lg font-medium",children:e}),!!r&&r?.length>0&&jsx("div",{className:"ml-auto flex gap-2",children:r?.map((i,p)=>jsx(c,{...i,size:"sm"},p))})]}),jsx(a$1,{})]}),P=({children:e,className:r,...o})=>jsx("div",{...o,className:a("px-3 py-4",r),children:e}),y=({children:e,ignorePadding:r=false,innerClassName:o,...i})=>jsxs("div",{...i,children:[jsx(a$1,{}),jsx("div",{className:a(o,!r&&"px-3 py-4"),children:e})]});export{v as a,u as b,P as c,y as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'../chunk-
|
|
1
|
+
export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'../chunk-D4T5LV6D.mjs';import'../chunk-FAMLJ6AJ.mjs';import'../chunk-SXEHG5TZ.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-BO6XI5BE.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as Accordion,g as AccordionContent,d as AccordionItem,a as AccordionPrimitive,b as AccordionSizes,f as AccordionTrigger,e as AccordionTriggerEmpty}from'../chunk-
|
|
1
|
+
export{c as Accordion,g as AccordionContent,d as AccordionItem,a as AccordionPrimitive,b as AccordionSizes,f as AccordionTrigger,e as AccordionTriggerEmpty}from'../chunk-7DZXTSLA.mjs';import'../chunk-FAMLJ6AJ.mjs';import'../chunk-SXEHG5TZ.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-BO6XI5BE.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as CardExpandable,b as CardExpandableContent,c as CardExpandableFixedContent,a as CardExpandableHeader}from'../chunk-
|
|
1
|
+
export{d as CardExpandable,b as CardExpandableContent,c as CardExpandableFixedContent,a as CardExpandableHeader}from'../chunk-B7K2HKYO.mjs';import'../chunk-AI4D6AOK.mjs';import'../chunk-ASMH3P7K.mjs';import'../chunk-GBBE3RHT.mjs';import'../chunk-FAMLJ6AJ.mjs';import'../chunk-PF2FHSIC.mjs';import'../chunk-KKWH3QUT.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-BO6XI5BE.mjs';
|
|
@@ -6,7 +6,7 @@ import 'lucide-react';
|
|
|
6
6
|
type CardFormProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
7
7
|
declare const CardForm: FC<CardFormProps>;
|
|
8
8
|
type CardFormHeaderProps = {
|
|
9
|
-
title
|
|
9
|
+
title?: string;
|
|
10
10
|
buttons?: ButtonProps[];
|
|
11
11
|
} & HTMLAttributes<HTMLDivElement>;
|
|
12
12
|
declare const CardFormHeader: FC<CardFormHeaderProps>;
|
|
@@ -6,7 +6,7 @@ import 'lucide-react';
|
|
|
6
6
|
type CardFormProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
7
7
|
declare const CardForm: FC<CardFormProps>;
|
|
8
8
|
type CardFormHeaderProps = {
|
|
9
|
-
title
|
|
9
|
+
title?: string;
|
|
10
10
|
buttons?: ButtonProps[];
|
|
11
11
|
} & HTMLAttributes<HTMLDivElement>;
|
|
12
12
|
declare const CardFormHeader: FC<CardFormHeaderProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var Ze=require('react'),tailwindVariants=require('tailwind-variants'),jsxRuntime=require('react/jsx-runtime'),pe=require('@radix-ui/react-separator');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Ze__namespace=/*#__PURE__*/_interopNamespace(Ze);var pe__namespace=/*#__PURE__*/_interopNamespace(pe);function ke(e){var a,o,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(a=0;a<d;a++)e[a]&&(o=ke(e[a]))&&(t&&(t+=" "),t+=o);}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function Pe(){for(var e,a,o=0,t="",d=arguments.length;o<d;o++)(e=arguments[o])&&(a=ke(e))&&(t&&(t+=" "),t+=a);return t}var ie="-",_e=e=>{let a=Ye(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:r=>{let p=r.split(ie);return p[0]===""&&p.length!==1&&p.shift(),Me(p,a)||je(r)},getConflictingClassGroupIds:(r,p)=>{let n=o[r]||[];return p&&t[r]?[...n,...t[r]]:n}}},Me=(e,a)=>{if(e.length===0)return a.classGroupId;let o=e[0],t=a.nextPart.get(o),d=t?Me(e.slice(1),t):void 0;if(d)return d;if(a.validators.length===0)return;let f=e.join(ie);return a.validators.find(({validator:r})=>r(f))?.classGroupId},be=/^\[(.+)\]$/,je=e=>{if(be.test(e)){let a=be.exec(e)[1],o=a?.substring(0,a.indexOf(":"));if(o)return "arbitrary.."+o}},Ye=e=>{let{theme:a,classGroups:o}=e,t={nextPart:new Map,validators:[]};for(let d in o)re(o[d],t,d,a);return t},re=(e,a,o,t)=>{e.forEach(d=>{if(typeof d=="string"){let f=d===""?a:Ae(a,d);f.classGroupId=o;return}if(typeof d=="function"){if($e(d)){re(d(t),a,o,t);return}a.validators.push({validator:d,classGroupId:o});return}Object.entries(d).forEach(([f,r])=>{re(r,Ae(a,f),o,t);});});},Ae=(e,a)=>{let o=e;return a.split(ie).forEach(t=>{o.nextPart.has(t)||o.nextPart.set(t,{nextPart:new Map,validators:[]}),o=o.nextPart.get(t);}),o},$e=e=>e.isThemeGetter,ea=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=new Map,t=new Map,d=(f,r)=>{o.set(f,r),a++,a>e&&(a=0,t=o,o=new Map);};return {get(f){let r=o.get(f);if(r!==void 0)return r;if((r=t.get(f))!==void 0)return d(f,r),r},set(f,r){o.has(f)?o.set(f,r):d(f,r);}}},se="!",fe=":",aa=fe.length,ta=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=d=>{let f=[],r=0,p=0,n=0,m;for(let C=0;C<d.length;C++){let h=d[C];if(r===0&&p===0){if(h===fe){f.push(d.slice(n,C)),n=C+aa;continue}if(h==="/"){m=C;continue}}h==="["?r++:h==="]"?r--:h==="("?p++:h===")"&&p--;}let L=f.length===0?d:d.substring(n),w=oa(L),F=w!==L,D=m&&m>n?m-n:void 0;return {modifiers:f,hasImportantModifier:F,baseClassName:w,maybePostfixModifierPosition:D}};if(a){let d=a+fe,f=t;t=r=>r.startsWith(d)?f(r.substring(d.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:r,maybePostfixModifierPosition:void 0};}if(o){let d=t;t=f=>o({className:f,parseClassName:d});}return t},oa=e=>e.endsWith(se)?e.substring(0,e.length-1):e.startsWith(se)?e.substring(1):e,la=e=>{let a=Object.fromEntries(e.orderSensitiveModifiers.map(t=>[t,true]));return t=>{if(t.length<=1)return t;let d=[],f=[];return t.forEach(r=>{r[0]==="["||a[r]?(d.push(...f.sort(),r),f=[]):f.push(r);}),d.push(...f.sort()),d}},ua=e=>({cache:ea(e.cacheSize),parseClassName:ta(e),sortModifiers:la(e),..._e(e)}),da=/\s+/,ra=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:d,sortModifiers:f}=a,r=[],p=e.trim().split(da),n="";for(let m=p.length-1;m>=0;m-=1){let L=p[m],{isExternal:w,modifiers:F,hasImportantModifier:D,baseClassName:C,maybePostfixModifierPosition:h}=o(L);if(w){n=L+(n.length>0?" "+n:n);continue}let U=!!h,R=t(U?C.substring(0,h):C);if(!R){if(!U){n=L+(n.length>0?" "+n:n);continue}if(R=t(C),!R){n=L+(n.length>0?" "+n:n);continue}U=false;}let K=f(F).join(":"),W=D?K+se:K,O=W+R;if(r.includes(O))continue;r.push(O);let H=d(R,U);for(let T=0;T<H.length;++T){let X=H[T];r.push(W+X);}n=L+(n.length>0?" "+n:n);}return n};function sa(){let e=0,a,o,t="";for(;e<arguments.length;)(a=arguments[e++])&&(o=Fe(a))&&(t&&(t+=" "),t+=o);return t}var Fe=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=Fe(e[t]))&&(o&&(o+=" "),o+=a);return o};function fa(e,...a){let o,t,d,f=r;function r(n){let m=a.reduce((L,w)=>w(L),e());return o=ua(m),t=o.cache.get,d=o.cache.set,f=p,p(n)}function p(n){let m=t(n);if(m)return m;let L=ra(n,o);return d(n,L),L}return function(){return f(sa.apply(null,arguments))}}var x=e=>{let a=o=>o[e]||[];return a.isThemeGetter=true,a},De=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Re=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ia=/^\d+\/\d+$/,na=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ca=/\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$/,pa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ma=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,La=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>ia.test(e),c=e=>!!e&&!Number.isNaN(Number(e)),A=e=>!!e&&Number.isInteger(Number(e)),ue=e=>e.endsWith("%")&&c(e.slice(0,-1)),b=e=>na.test(e),xa=()=>true,Ia=e=>ca.test(e)&&!pa.test(e),Te=()=>false,Ca=e=>ma.test(e),ga=e=>La.test(e),ha=e=>!l(e)&&!u(e),Sa=e=>V(e,Ue,Te),l=e=>De.test(e),q=e=>V(e,Oe,Ia),de=e=>V(e,Aa,c),Be=e=>V(e,ve,Te),wa=e=>V(e,qe,ga),Y=e=>V(e,He,Ca),u=e=>Re.test(e),N=e=>E(e,Oe),ka=e=>E(e,Ba),ye=e=>E(e,ve),Pa=e=>E(e,Ue),ba=e=>E(e,qe),$=e=>E(e,He,true),V=(e,a,o)=>{let t=De.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},E=(e,a,o=false)=>{let t=Re.exec(e);return t?t[1]?a(t[1]):o:false},ve=e=>e==="position"||e==="percentage",qe=e=>e==="image"||e==="url",Ue=e=>e==="length"||e==="size"||e==="bg-size",Oe=e=>e==="length",Aa=e=>e==="number",Ba=e=>e==="family-name",He=e=>e==="shadow";var ya=()=>{let e=x("color"),a=x("font"),o=x("text"),t=x("font-weight"),d=x("tracking"),f=x("leading"),r=x("breakpoint"),p=x("container"),n=x("spacing"),m=x("radius"),L=x("shadow"),w=x("inset-shadow"),F=x("text-shadow"),D=x("drop-shadow"),C=x("blur"),h=x("perspective"),U=x("aspect"),R=x("ease"),K=x("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],H=()=>[...O(),u,l],T=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],i=()=>[u,l,n],k=()=>[z,"full","auto",...i()],Le=()=>[A,"none","subgrid",u,l],xe=()=>["auto",{span:["full",A,u,l]},A,u,l],Z=()=>[A,"auto",u,l],Ie=()=>["auto","min","max","fr",u,l],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...i()],v=()=>[z,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],s=()=>[e,u,l],Ce=()=>[...O(),ye,Be,{position:[u,l]}],ge=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",Pa,Sa,{size:[u,l]}],oe=()=>[ue,N,q],g=()=>["","none","full",m,u,l],S=()=>["",c,N,q],J=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[c,ue,ye,Be],we=()=>["","none",C,u,l],Q=()=>["none",c,u,l],_=()=>["none",c,u,l],le=()=>[c,u,l],j=()=>[z,"full",...i()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[b],breakpoint:[b],color:[xa],container:[b],"drop-shadow":[b],ease:["in","out","in-out"],font:[ha],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[b],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[b],shadow:[b],spacing:["px",c],text:[b],"text-shadow":[b],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",z,l,u,U]}],container:["container"],columns:[{columns:[c,l,u,p]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"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:H()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[A,"auto",u,l]}],basis:[{basis:[z,"full","auto",p,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[c,z,"auto","initial","none",l]}],grow:[{grow:["",c,u,l]}],shrink:[{shrink:["",c,u,l]}],order:[{order:[A,"first","last","none",u,l]}],"grid-cols":[{"grid-cols":Le()}],"col-start-end":[{col:xe()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":Le()}],"row-start-end":[{row:xe()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ie()}],"auto-rows":[{"auto-rows":Ie()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],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:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:v()}],w:[{w:[p,"screen",...v()]}],"min-w":[{"min-w":[p,"screen","none",...v()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[r]},...v()]}],h:[{h:["screen","lh",...v()]}],"min-h":[{"min-h":["screen","lh","none",...v()]}],"max-h":[{"max-h":["screen","lh",...v()]}],"font-size":[{text:["base",o,N,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,u,de]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ue,l]}],"font-family":[{font:[ka,l,a]}],"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":[c,"none",u,de]}],leading:[{leading:[f,...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:s()}],"text-color":[{text:s()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[c,"from-font","auto",u,q]}],"text-decoration-color":[{decoration:s()}],"underline-offset":[{"underline-offset":[c,"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:Ce()}],"bg-repeat":[{bg:ge()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},A,u,l],radial:["",u,l],conic:[A,u,l]},ba,wa]}],"bg-color":[{bg:s()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:s()}],"gradient-via":[{via:s()}],"gradient-to":[{to:s()}],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:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:s()}],"border-color-x":[{"border-x":s()}],"border-color-y":[{"border-y":s()}],"border-color-s":[{"border-s":s()}],"border-color-e":[{"border-e":s()}],"border-color-t":[{"border-t":s()}],"border-color-r":[{"border-r":s()}],"border-color-b":[{"border-b":s()}],"border-color-l":[{"border-l":s()}],"divide-color":[{divide:s()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[c,u,l]}],"outline-w":[{outline:["",c,N,q]}],"outline-color":[{outline:s()}],shadow:[{shadow:["","none",L,$,Y]}],"shadow-color":[{shadow:s()}],"inset-shadow":[{"inset-shadow":["none",w,$,Y]}],"inset-shadow-color":[{"inset-shadow":s()}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:s()}],"ring-offset-w":[{"ring-offset":[c,q]}],"ring-offset-color":[{"ring-offset":s()}],"inset-ring-w":[{"inset-ring":S()}],"inset-ring-color":[{"inset-ring":s()}],"text-shadow":[{"text-shadow":["none",F,$,Y]}],"text-shadow-color":[{"text-shadow":s()}],opacity:[{opacity:[c,u,l]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"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":[c]}],"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":s()}],"mask-image-linear-to-color":[{"mask-linear-to":s()}],"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":s()}],"mask-image-t-to-color":[{"mask-t-to":s()}],"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":s()}],"mask-image-r-to-color":[{"mask-r-to":s()}],"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":s()}],"mask-image-b-to-color":[{"mask-b-to":s()}],"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":s()}],"mask-image-l-to-color":[{"mask-l-to":s()}],"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":s()}],"mask-image-x-to-color":[{"mask-x-to":s()}],"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":s()}],"mask-image-y-to-color":[{"mask-y-to":s()}],"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":s()}],"mask-image-radial-to-color":[{"mask-radial-to":s()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[c]}],"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":s()}],"mask-image-conic-to-color":[{"mask-conic-to":s()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ce()}],"mask-repeat":[{mask:ge()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,l]}],filter:[{filter:["","none",u,l]}],blur:[{blur:we()}],brightness:[{brightness:[c,u,l]}],contrast:[{contrast:[c,u,l]}],"drop-shadow":[{"drop-shadow":["","none",D,$,Y]}],"drop-shadow-color":[{"drop-shadow":s()}],grayscale:[{grayscale:["",c,u,l]}],"hue-rotate":[{"hue-rotate":[c,u,l]}],invert:[{invert:["",c,u,l]}],saturate:[{saturate:[c,u,l]}],sepia:[{sepia:["",c,u,l]}],"backdrop-filter":[{"backdrop-filter":["","none",u,l]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[c,u,l]}],"backdrop-contrast":[{"backdrop-contrast":[c,u,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",c,u,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c,u,l]}],"backdrop-invert":[{"backdrop-invert":["",c,u,l]}],"backdrop-opacity":[{"backdrop-opacity":[c,u,l]}],"backdrop-saturate":[{"backdrop-saturate":[c,u,l]}],"backdrop-sepia":[{"backdrop-sepia":["",c,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:[c,"initial",u,l]}],ease:[{ease:["linear","initial",R,u,l]}],delay:[{delay:[c,u,l]}],animate:[{animate:["none",K,u,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,u,l]}],"perspective-origin":[{"perspective-origin":H()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[u,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:H()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:j()}],"translate-x":[{"translate-x":j()}],"translate-y":[{"translate-y":j()}],"translate-z":[{"translate-z":j()}],"translate-none":["translate-none"],accent:[{accent:s()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:s()}],"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",...s()]}],"stroke-w":[{stroke:[c,N,q,de]}],stroke:[{stroke:["none",...s()]}],"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 Ge=fa(ya);function B(...e){return Ge(Pe(e))}var ze=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ma=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),ne=e=>{let a=Ma(e);return a.charAt(0).toUpperCase()+a.slice(1)},ee=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),Ve=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var Ee={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 Xe=Ze.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:d="",children:f,iconNode:r,...p},n)=>Ze.createElement("svg",{ref:n,...Ee,width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:ee("lucide",d),...!f&&!Ve(p)&&{"aria-hidden":"true"},...p},[...r.map(([m,L])=>Ze.createElement(m,L)),...Array.isArray(f)?f:[f]]));var Ne=(e,a)=>{let o=Ze.forwardRef(({className:t,...d},f)=>Ze.createElement(Xe,{ref:f,iconNode:a,className:ee(`lucide-${ze(ne(e))}`,`lucide-${e}`,t),...d}));return o.displayName=ne(e),o};var Ta=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],y=Ne("loader-circle",Ta);var Ke=y;var Ua=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}}),Je=Ze.forwardRef(({children:e,className:a,variant:o,size:t,startIcon:d,endIcon:f,loading:r,disabled:p,type:n="button",StartIcon:m,EndIcon:L,...w},F)=>{let{button:D,icon:C,loadingIcon:h}=Ua({variant:o,size:t,loading:r});return jsxRuntime.jsxs("button",{...w,ref:F,disabled:r||p,className:B(D(),a),type:n,children:[r&&jsxRuntime.jsx(Ke,{className:h()}),d&&Ze__namespace.default.cloneElement(d,{className:C()}),m&&jsxRuntime.jsx(m,{className:C()}),e,f&&Ze__namespace.default.cloneElement(f,{className:C()}),L&&jsxRuntime.jsx(L,{className:C()})]})});var ae=Ze__namespace.forwardRef(({className:e,orientation:a="horizontal",decorative:o=true,...t},d)=>jsxRuntime.jsx(pe__namespace.Root,{ref:d,decorative:o,orientation:a,className:B("shrink-0 bg-neutral-200",a==="horizontal"?"h-px w-full":"h-full w-px",e),...t}));ae.displayName=pe__namespace.Root.displayName;var Et=({children:e,className:a,...o})=>jsxRuntime.jsx("div",{...o,className:B("bg-neutral-80 @container rounded-lg border border-neutral-200",a),children:e}),Wt=({title:e,buttons:a,...o})=>jsxRuntime.jsxs("div",{...o,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2.5 px-3 py-2 empty:hidden",children:[jsxRuntime.jsx("h3",{className:"font-inter line-clamp-1 text-base font-semibold",children:e}),!!a&&a?.length>0&&jsxRuntime.jsx("div",{className:"flex gap-2",children:a?.map((t,d)=>jsxRuntime.jsx(Je,{...t,size:"sm"},d))})]}),jsxRuntime.jsx(ae,{})]}),Xt=({children:e,className:a,...o})=>jsxRuntime.jsx("div",{...o,className:B("px-3 py-4",a),children:e}),Nt=({children:e,ignorePadding:a=false,innerClassName:o,...t})=>jsxRuntime.jsxs("div",{...t,children:[jsxRuntime.jsx(ae,{}),jsxRuntime.jsx("div",{className:B(o,!a&&"px-3 py-4"),children:e})]});/*! Bundled license information:
|
|
1
|
+
'use strict';var Ze=require('react'),tailwindVariants=require('tailwind-variants'),jsxRuntime=require('react/jsx-runtime'),pe=require('@radix-ui/react-separator');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Ze__namespace=/*#__PURE__*/_interopNamespace(Ze);var pe__namespace=/*#__PURE__*/_interopNamespace(pe);function ke(e){var a,o,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(a=0;a<d;a++)e[a]&&(o=ke(e[a]))&&(t&&(t+=" "),t+=o);}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function Pe(){for(var e,a,o=0,t="",d=arguments.length;o<d;o++)(e=arguments[o])&&(a=ke(e))&&(t&&(t+=" "),t+=a);return t}var ie="-",_e=e=>{let a=Ye(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:r=>{let p=r.split(ie);return p[0]===""&&p.length!==1&&p.shift(),Me(p,a)||je(r)},getConflictingClassGroupIds:(r,p)=>{let n=o[r]||[];return p&&t[r]?[...n,...t[r]]:n}}},Me=(e,a)=>{if(e.length===0)return a.classGroupId;let o=e[0],t=a.nextPart.get(o),d=t?Me(e.slice(1),t):void 0;if(d)return d;if(a.validators.length===0)return;let f=e.join(ie);return a.validators.find(({validator:r})=>r(f))?.classGroupId},be=/^\[(.+)\]$/,je=e=>{if(be.test(e)){let a=be.exec(e)[1],o=a?.substring(0,a.indexOf(":"));if(o)return "arbitrary.."+o}},Ye=e=>{let{theme:a,classGroups:o}=e,t={nextPart:new Map,validators:[]};for(let d in o)re(o[d],t,d,a);return t},re=(e,a,o,t)=>{e.forEach(d=>{if(typeof d=="string"){let f=d===""?a:Ae(a,d);f.classGroupId=o;return}if(typeof d=="function"){if($e(d)){re(d(t),a,o,t);return}a.validators.push({validator:d,classGroupId:o});return}Object.entries(d).forEach(([f,r])=>{re(r,Ae(a,f),o,t);});});},Ae=(e,a)=>{let o=e;return a.split(ie).forEach(t=>{o.nextPart.has(t)||o.nextPart.set(t,{nextPart:new Map,validators:[]}),o=o.nextPart.get(t);}),o},$e=e=>e.isThemeGetter,ea=e=>{if(e<1)return {get:()=>{},set:()=>{}};let a=0,o=new Map,t=new Map,d=(f,r)=>{o.set(f,r),a++,a>e&&(a=0,t=o,o=new Map);};return {get(f){let r=o.get(f);if(r!==void 0)return r;if((r=t.get(f))!==void 0)return d(f,r),r},set(f,r){o.has(f)?o.set(f,r):d(f,r);}}},se="!",fe=":",aa=fe.length,ta=e=>{let{prefix:a,experimentalParseClassName:o}=e,t=d=>{let f=[],r=0,p=0,n=0,m;for(let C=0;C<d.length;C++){let h=d[C];if(r===0&&p===0){if(h===fe){f.push(d.slice(n,C)),n=C+aa;continue}if(h==="/"){m=C;continue}}h==="["?r++:h==="]"?r--:h==="("?p++:h===")"&&p--;}let L=f.length===0?d:d.substring(n),w=oa(L),F=w!==L,D=m&&m>n?m-n:void 0;return {modifiers:f,hasImportantModifier:F,baseClassName:w,maybePostfixModifierPosition:D}};if(a){let d=a+fe,f=t;t=r=>r.startsWith(d)?f(r.substring(d.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:r,maybePostfixModifierPosition:void 0};}if(o){let d=t;t=f=>o({className:f,parseClassName:d});}return t},oa=e=>e.endsWith(se)?e.substring(0,e.length-1):e.startsWith(se)?e.substring(1):e,la=e=>{let a=Object.fromEntries(e.orderSensitiveModifiers.map(t=>[t,true]));return t=>{if(t.length<=1)return t;let d=[],f=[];return t.forEach(r=>{r[0]==="["||a[r]?(d.push(...f.sort(),r),f=[]):f.push(r);}),d.push(...f.sort()),d}},ua=e=>({cache:ea(e.cacheSize),parseClassName:ta(e),sortModifiers:la(e),..._e(e)}),da=/\s+/,ra=(e,a)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:d,sortModifiers:f}=a,r=[],p=e.trim().split(da),n="";for(let m=p.length-1;m>=0;m-=1){let L=p[m],{isExternal:w,modifiers:F,hasImportantModifier:D,baseClassName:C,maybePostfixModifierPosition:h}=o(L);if(w){n=L+(n.length>0?" "+n:n);continue}let U=!!h,R=t(U?C.substring(0,h):C);if(!R){if(!U){n=L+(n.length>0?" "+n:n);continue}if(R=t(C),!R){n=L+(n.length>0?" "+n:n);continue}U=false;}let K=f(F).join(":"),W=D?K+se:K,O=W+R;if(r.includes(O))continue;r.push(O);let H=d(R,U);for(let T=0;T<H.length;++T){let X=H[T];r.push(W+X);}n=L+(n.length>0?" "+n:n);}return n};function sa(){let e=0,a,o,t="";for(;e<arguments.length;)(a=arguments[e++])&&(o=Fe(a))&&(t&&(t+=" "),t+=o);return t}var Fe=e=>{if(typeof e=="string")return e;let a,o="";for(let t=0;t<e.length;t++)e[t]&&(a=Fe(e[t]))&&(o&&(o+=" "),o+=a);return o};function fa(e,...a){let o,t,d,f=r;function r(n){let m=a.reduce((L,w)=>w(L),e());return o=ua(m),t=o.cache.get,d=o.cache.set,f=p,p(n)}function p(n){let m=t(n);if(m)return m;let L=ra(n,o);return d(n,L),L}return function(){return f(sa.apply(null,arguments))}}var x=e=>{let a=o=>o[e]||[];return a.isThemeGetter=true,a},De=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Re=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ia=/^\d+\/\d+$/,na=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ca=/\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$/,pa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ma=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,La=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>ia.test(e),c=e=>!!e&&!Number.isNaN(Number(e)),A=e=>!!e&&Number.isInteger(Number(e)),ue=e=>e.endsWith("%")&&c(e.slice(0,-1)),b=e=>na.test(e),xa=()=>true,Ia=e=>ca.test(e)&&!pa.test(e),Te=()=>false,Ca=e=>ma.test(e),ga=e=>La.test(e),ha=e=>!l(e)&&!u(e),Sa=e=>V(e,Ue,Te),l=e=>De.test(e),q=e=>V(e,Oe,Ia),de=e=>V(e,Aa,c),Be=e=>V(e,ve,Te),wa=e=>V(e,qe,ga),Y=e=>V(e,He,Ca),u=e=>Re.test(e),N=e=>E(e,Oe),ka=e=>E(e,Ba),ye=e=>E(e,ve),Pa=e=>E(e,Ue),ba=e=>E(e,qe),$=e=>E(e,He,true),V=(e,a,o)=>{let t=De.exec(e);return t?t[1]?a(t[1]):o(t[2]):false},E=(e,a,o=false)=>{let t=Re.exec(e);return t?t[1]?a(t[1]):o:false},ve=e=>e==="position"||e==="percentage",qe=e=>e==="image"||e==="url",Ue=e=>e==="length"||e==="size"||e==="bg-size",Oe=e=>e==="length",Aa=e=>e==="number",Ba=e=>e==="family-name",He=e=>e==="shadow";var ya=()=>{let e=x("color"),a=x("font"),o=x("text"),t=x("font-weight"),d=x("tracking"),f=x("leading"),r=x("breakpoint"),p=x("container"),n=x("spacing"),m=x("radius"),L=x("shadow"),w=x("inset-shadow"),F=x("text-shadow"),D=x("drop-shadow"),C=x("blur"),h=x("perspective"),U=x("aspect"),R=x("ease"),K=x("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],H=()=>[...O(),u,l],T=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],i=()=>[u,l,n],k=()=>[z,"full","auto",...i()],Le=()=>[A,"none","subgrid",u,l],xe=()=>["auto",{span:["full",A,u,l]},A,u,l],Z=()=>[A,"auto",u,l],Ie=()=>["auto","min","max","fr",u,l],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...i()],v=()=>[z,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],s=()=>[e,u,l],Ce=()=>[...O(),ye,Be,{position:[u,l]}],ge=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",Pa,Sa,{size:[u,l]}],oe=()=>[ue,N,q],g=()=>["","none","full",m,u,l],S=()=>["",c,N,q],J=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[c,ue,ye,Be],we=()=>["","none",C,u,l],Q=()=>["none",c,u,l],_=()=>["none",c,u,l],le=()=>[c,u,l],j=()=>[z,"full",...i()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[b],breakpoint:[b],color:[xa],container:[b],"drop-shadow":[b],ease:["in","out","in-out"],font:[ha],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[b],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[b],shadow:[b],spacing:["px",c],text:[b],"text-shadow":[b],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",z,l,u,U]}],container:["container"],columns:[{columns:[c,l,u,p]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"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:H()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[A,"auto",u,l]}],basis:[{basis:[z,"full","auto",p,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[c,z,"auto","initial","none",l]}],grow:[{grow:["",c,u,l]}],shrink:[{shrink:["",c,u,l]}],order:[{order:[A,"first","last","none",u,l]}],"grid-cols":[{"grid-cols":Le()}],"col-start-end":[{col:xe()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":Le()}],"row-start-end":[{row:xe()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ie()}],"auto-rows":[{"auto-rows":Ie()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],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:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:v()}],w:[{w:[p,"screen",...v()]}],"min-w":[{"min-w":[p,"screen","none",...v()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[r]},...v()]}],h:[{h:["screen","lh",...v()]}],"min-h":[{"min-h":["screen","lh","none",...v()]}],"max-h":[{"max-h":["screen","lh",...v()]}],"font-size":[{text:["base",o,N,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,u,de]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ue,l]}],"font-family":[{font:[ka,l,a]}],"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":[c,"none",u,de]}],leading:[{leading:[f,...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:s()}],"text-color":[{text:s()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[c,"from-font","auto",u,q]}],"text-decoration-color":[{decoration:s()}],"underline-offset":[{"underline-offset":[c,"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:Ce()}],"bg-repeat":[{bg:ge()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},A,u,l],radial:["",u,l],conic:[A,u,l]},ba,wa]}],"bg-color":[{bg:s()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:s()}],"gradient-via":[{via:s()}],"gradient-to":[{to:s()}],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:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:s()}],"border-color-x":[{"border-x":s()}],"border-color-y":[{"border-y":s()}],"border-color-s":[{"border-s":s()}],"border-color-e":[{"border-e":s()}],"border-color-t":[{"border-t":s()}],"border-color-r":[{"border-r":s()}],"border-color-b":[{"border-b":s()}],"border-color-l":[{"border-l":s()}],"divide-color":[{divide:s()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[c,u,l]}],"outline-w":[{outline:["",c,N,q]}],"outline-color":[{outline:s()}],shadow:[{shadow:["","none",L,$,Y]}],"shadow-color":[{shadow:s()}],"inset-shadow":[{"inset-shadow":["none",w,$,Y]}],"inset-shadow-color":[{"inset-shadow":s()}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:s()}],"ring-offset-w":[{"ring-offset":[c,q]}],"ring-offset-color":[{"ring-offset":s()}],"inset-ring-w":[{"inset-ring":S()}],"inset-ring-color":[{"inset-ring":s()}],"text-shadow":[{"text-shadow":["none",F,$,Y]}],"text-shadow-color":[{"text-shadow":s()}],opacity:[{opacity:[c,u,l]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"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":[c]}],"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":s()}],"mask-image-linear-to-color":[{"mask-linear-to":s()}],"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":s()}],"mask-image-t-to-color":[{"mask-t-to":s()}],"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":s()}],"mask-image-r-to-color":[{"mask-r-to":s()}],"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":s()}],"mask-image-b-to-color":[{"mask-b-to":s()}],"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":s()}],"mask-image-l-to-color":[{"mask-l-to":s()}],"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":s()}],"mask-image-x-to-color":[{"mask-x-to":s()}],"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":s()}],"mask-image-y-to-color":[{"mask-y-to":s()}],"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":s()}],"mask-image-radial-to-color":[{"mask-radial-to":s()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[c]}],"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":s()}],"mask-image-conic-to-color":[{"mask-conic-to":s()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ce()}],"mask-repeat":[{mask:ge()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,l]}],filter:[{filter:["","none",u,l]}],blur:[{blur:we()}],brightness:[{brightness:[c,u,l]}],contrast:[{contrast:[c,u,l]}],"drop-shadow":[{"drop-shadow":["","none",D,$,Y]}],"drop-shadow-color":[{"drop-shadow":s()}],grayscale:[{grayscale:["",c,u,l]}],"hue-rotate":[{"hue-rotate":[c,u,l]}],invert:[{invert:["",c,u,l]}],saturate:[{saturate:[c,u,l]}],sepia:[{sepia:["",c,u,l]}],"backdrop-filter":[{"backdrop-filter":["","none",u,l]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[c,u,l]}],"backdrop-contrast":[{"backdrop-contrast":[c,u,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",c,u,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c,u,l]}],"backdrop-invert":[{"backdrop-invert":["",c,u,l]}],"backdrop-opacity":[{"backdrop-opacity":[c,u,l]}],"backdrop-saturate":[{"backdrop-saturate":[c,u,l]}],"backdrop-sepia":[{"backdrop-sepia":["",c,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:[c,"initial",u,l]}],ease:[{ease:["linear","initial",R,u,l]}],delay:[{delay:[c,u,l]}],animate:[{animate:["none",K,u,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,u,l]}],"perspective-origin":[{"perspective-origin":H()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[u,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:H()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:j()}],"translate-x":[{"translate-x":j()}],"translate-y":[{"translate-y":j()}],"translate-z":[{"translate-z":j()}],"translate-none":["translate-none"],accent:[{accent:s()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:s()}],"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",...s()]}],"stroke-w":[{stroke:[c,N,q,de]}],stroke:[{stroke:["none",...s()]}],"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 Ge=fa(ya);function B(...e){return Ge(Pe(e))}var ze=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ma=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,t)=>t?t.toUpperCase():o.toLowerCase()),ne=e=>{let a=Ma(e);return a.charAt(0).toUpperCase()+a.slice(1)},ee=(...e)=>e.filter((a,o,t)=>!!a&&a.trim()!==""&&t.indexOf(a)===o).join(" ").trim(),Ve=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return true};var Ee={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 Xe=Ze.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:d="",children:f,iconNode:r,...p},n)=>Ze.createElement("svg",{ref:n,...Ee,width:a,height:a,stroke:e,strokeWidth:t?Number(o)*24/Number(a):o,className:ee("lucide",d),...!f&&!Ve(p)&&{"aria-hidden":"true"},...p},[...r.map(([m,L])=>Ze.createElement(m,L)),...Array.isArray(f)?f:[f]]));var Ne=(e,a)=>{let o=Ze.forwardRef(({className:t,...d},f)=>Ze.createElement(Xe,{ref:f,iconNode:a,className:ee(`lucide-${ze(ne(e))}`,`lucide-${e}`,t),...d}));return o.displayName=ne(e),o};var Ta=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],y=Ne("loader-circle",Ta);var Ke=y;var Ua=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}}),Je=Ze.forwardRef(({children:e,className:a,variant:o,size:t,startIcon:d,endIcon:f,loading:r,disabled:p,type:n="button",StartIcon:m,EndIcon:L,...w},F)=>{let{button:D,icon:C,loadingIcon:h}=Ua({variant:o,size:t,loading:r});return jsxRuntime.jsxs("button",{...w,ref:F,disabled:r||p,className:B(D(),a),type:n,children:[r&&jsxRuntime.jsx(Ke,{className:h()}),d&&Ze__namespace.default.cloneElement(d,{className:C()}),m&&jsxRuntime.jsx(m,{className:C()}),e,f&&Ze__namespace.default.cloneElement(f,{className:C()}),L&&jsxRuntime.jsx(L,{className:C()})]})});var ae=Ze__namespace.forwardRef(({className:e,orientation:a="horizontal",decorative:o=true,...t},d)=>jsxRuntime.jsx(pe__namespace.Root,{ref:d,decorative:o,orientation:a,className:B("shrink-0 bg-neutral-200",a==="horizontal"?"h-px w-full":"h-full w-px",e),...t}));ae.displayName=pe__namespace.Root.displayName;var Et=({children:e,className:a,...o})=>jsxRuntime.jsx("div",{...o,className:B("bg-neutral-80 @container rounded-lg border border-neutral-200",a),children:e}),Wt=({title:e,buttons:a,...o})=>jsxRuntime.jsxs("div",{...o,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2.5 px-3 py-2 empty:hidden",children:[!!e&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:e}),!!a&&a?.length>0&&jsxRuntime.jsx("div",{className:"ml-auto flex gap-2",children:a?.map((t,d)=>jsxRuntime.jsx(Je,{...t,size:"sm"},d))})]}),jsxRuntime.jsx(ae,{})]}),Xt=({children:e,className:a,...o})=>jsxRuntime.jsx("div",{...o,className:B("px-3 py-4",a),children:e}),Nt=({children:e,ignorePadding:a=false,innerClassName:o,...t})=>jsxRuntime.jsxs("div",{...t,children:[jsxRuntime.jsx(ae,{}),jsxRuntime.jsx("div",{className:B(o,!a&&"px-3 py-4"),children:e})]});/*! 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 CardForm,c as CardFormBody,d as CardFormFooter,b as CardFormHeader}from'../chunk-
|
|
1
|
+
export{a as CardForm,c as CardFormBody,d as CardFormFooter,b as CardFormHeader}from'../chunk-XZZKINUR.mjs';import'../chunk-T2IU5QUU.mjs';import'../chunk-KKWH3QUT.mjs';import'../chunk-4HYLZVI5.mjs';import'../chunk-BO6XI5BE.mjs';
|
|
@@ -2,7 +2,7 @@ import 'react/jsx-runtime';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tanstack/react-table';
|
|
4
4
|
import './tooltip.mjs';
|
|
5
|
-
export { C as ColumnDef, a as DataTable, D as DataTableProps, P as PaginationState } from '../data-table-
|
|
5
|
+
export { C as ColumnDef, a as DataTable, D as DataTableProps, P as PaginationState } from '../data-table-DfqlaNv3.mjs';
|
|
6
6
|
import '@ark-ui/react/tooltip';
|
|
7
7
|
import 'lucide-react';
|
|
8
8
|
import './button.mjs';
|
|
@@ -2,7 +2,7 @@ import 'react/jsx-runtime';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@tanstack/react-table';
|
|
4
4
|
import './tooltip.js';
|
|
5
|
-
export { C as ColumnDef, a as DataTable, D as DataTableProps, P as PaginationState } from '../data-table-
|
|
5
|
+
export { C as ColumnDef, a as DataTable, D as DataTableProps, P as PaginationState } from '../data-table-DoL1dJyd.js';
|
|
6
6
|
import '@ark-ui/react/tooltip';
|
|
7
7
|
import 'lucide-react';
|
|
8
8
|
import './button.js';
|