@dnotrever2/super-kit 0.1.7 → 0.1.8

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/README.md CHANGED
@@ -425,6 +425,8 @@ const options = [
425
425
  | `loadingLabel` | `string` | `"Loading..."` |
426
426
  | `emptyLabel` | `string` | `"No options found"` |
427
427
 
428
+ In multiple mode, the footer action toggles between `Clear all` and `Check all`.
429
+
428
430
  Forwards a `ref` to the root `<div>`.
429
431
 
430
432
  ---
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),Ue=require("react-dom"),He="_badge_lyltm_1",Ke="_neutral_lyltm_18",Ye="_accent_lyltm_24",Ze="_outline_lyltm_29",Je="_success_lyltm_35",Qe="_warning_lyltm_40",Pe="_danger_lyltm_45",et="_info_lyltm_50",tt="_count_lyltm_55",st="_mono_lyltm_63",nt="_version_lyltm_71",ot="_dismiss_lyltm_80",lt="_dismissBtn_lyltm_84",at="_dot_lyltm_98",ct="_dotIndicator_lyltm_111",it="_pill_lyltm_119",z={badge:He,neutral:Ke,accent:Ye,outline:Ze,success:Je,warning:Qe,danger:Pe,info:et,count:tt,mono:st,version:nt,dismiss:ot,dismissBtn:lt,dot:at,dotIndicator:ct,pill:it},rt=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"10",height:"10",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})});function he({variant:n="neutral",icon:o,pill:t=!1,dismissable:s=!1,onDismiss:a,dotColor:l,children:c,className:r,...i}){if(n==="dot"){const x=[z.badge,z.dot,r].filter(Boolean).join(" ");return e.jsxs("span",{...i,className:x,children:[e.jsx("span",{className:z.dotIndicator,style:{background:l??"var(--accent)"}}),c]})}const h=[z.badge,z[n],t?z.pill:null,s?z.dismiss:null,r].filter(Boolean).join(" ");return e.jsxs("span",{...i,className:h,children:[o||null,c,s&&e.jsx("button",{type:"button",className:z.dismissBtn,"aria-label":"Remove",onClick:a,children:e.jsx(rt,{})})]})}he.displayName="Badge";function xe({direction:n="vertical",track:o=!1,arrows:t=!1,autoHide:s=!1,expand:a=!1,scrollbarSize:l,height:c,children:r,className:i,style:h,...x}){const p=["sb",o?"sb-track":null,t?"sb-arrows":null,s?"sb-auto-hide":null,a?"sb-expand":null,i].filter(Boolean).join(" "),m=n==="vertical"?{overflowY:"auto",overflowX:"hidden"}:n==="horizontal"?{overflowX:"auto",overflowY:"hidden"}:{overflow:"auto"},f=l!==void 0?{"--sb-w":`${l}px`}:void 0;return e.jsx("div",{...x,className:p,style:{height:c,...m,...f,...h},children:r})}xe.displayName="Scrollable";const dt="_btn_8cdvn_1",_t="_icon_8cdvn_34",ut="_primary_8cdvn_43",ht="_secondary_8cdvn_51",xt="_ghost_8cdvn_61",mt="_danger_8cdvn_71",ft="_success_8cdvn_79",pt="_warning_8cdvn_87",jt="_sm_8cdvn_96",gt="_md_8cdvn_104",vt="_lg_8cdvn_106",Q={btn:dt,icon:_t,primary:ut,secondary:ht,ghost:xt,danger:mt,success:ft,warning:pt,sm:jt,md:gt,lg:vt},me=u.forwardRef(({type:n="button",variant:o="secondary",size:t="md",icon:s,loading:a=!1,children:l,className:c,disabled:r,...i},h)=>{const x=[Q.btn,Q[o],Q[t],c].filter(Boolean).join(" ");return e.jsxs("button",{ref:h,type:n,disabled:r||a,className:x,...i,children:[s?e.jsx("span",{className:Q.icon,children:s}):null,l]})});me.displayName="Button";const bt="_card_1gxgi_1",kt="_bordered_1gxgi_8",Nt="_tilt_1gxgi_12",yt="_closeBtn_1gxgi_20",wt="_padSm_1gxgi_41",Bt="_padMd_1gxgi_42",Ct="_padLg_1gxgi_43",It="_padNone_1gxgi_44",$t="_header_1gxgi_47",Mt="_headerIcon_1gxgi_54",St="_title_1gxgi_63",Lt="_subtitle_1gxgi_69",Rt="_stat_1gxgi_76",Tt="_statValue_1gxgi_83",At="_statUnit_1gxgi_91",Dt="_statDelta_1gxgi_97",Ot="_deltaPositive_1gxgi_102",Et="_deltaNegative_1gxgi_103",Wt="_deltaNeutral_1gxgi_104",g={card:bt,bordered:kt,tilt:Nt,closeBtn:yt,padSm:wt,padMd:Bt,padLg:Ct,padNone:It,header:$t,headerIcon:Mt,title:St,subtitle:Lt,stat:Rt,statValue:Tt,statUnit:At,statDelta:Dt,deltaPositive:Ot,deltaNegative:Et,deltaNeutral:Wt},Ft={none:g.padNone,sm:g.padSm,md:g.padMd,lg:g.padLg},zt=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",width:"10",height:"10",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})});function fe({padding:n="md",bordered:o=!1,tilt:t=!1,onClose:s,closeBtnProps:a,children:l,className:c,...r}){const i=[g.card,Ft[n],o?g.bordered:null,t?g.tilt:null,c].filter(Boolean).join(" ");return e.jsxs("div",{...r,className:i,children:[s&&e.jsx("button",{type:"button","aria-label":"Close",...a,className:[g.closeBtn,a==null?void 0:a.className].filter(Boolean).join(" "),onClick:s,children:e.jsx(zt,{})}),l]})}fe.displayName="Card";function pe({icon:n,title:o,subtitle:t,className:s,...a}){return e.jsxs("div",{...a,className:[g.header,s].filter(Boolean).join(" "),children:[n&&e.jsx("span",{className:g.headerIcon,children:n}),e.jsxs("div",{children:[e.jsx("div",{className:g.title,children:o}),t&&e.jsx("div",{className:g.subtitle,children:t})]})]})}pe.displayName="CardHeader";function je({value:n,unit:o,delta:t,deltaDirection:s="positive",className:a,...l}){const c=[g.statDelta,s==="positive"?g.deltaPositive:s==="negative"?g.deltaNegative:g.deltaNeutral].filter(Boolean).join(" ");return e.jsxs("div",{...l,className:[g.stat,a].filter(Boolean).join(" "),children:[e.jsxs("span",{className:g.statValue,children:[n,o&&e.jsxs("span",{className:g.statUnit,children:[" ",o]})]}),t&&e.jsx("span",{className:c,children:t})]})}je.displayName="CardStat";function P(n,o,t){const[s,a]=u.useState(o),l=n!==void 0,c=l?n:s,r=u.useCallback(i=>{l||a(i),t==null||t(i)},[l,t]);return[c,r,l]}const Vt="X",Xt=/[a-zA-Z0-9]/;function oe(n,o={}){const t=o.allowedPattern??Xt;return n.split("").filter(s=>t.test(s)).join("")}function ge(n,o,t={}){const s=t.placeholder??Vt,a=oe(n,t);let l=0,c="";for(const r of o){if(l>=a.length)break;if(r===s){c+=a[l],l+=1;continue}c+=r}return c}const qt="_wrapper_25x8h_1",Gt="_field_25x8h_7",Ut="_label_25x8h_13",Ht="_input_25x8h_22",Kt="_hasIcon_25x8h_52",Yt="_hasIconRight_25x8h_55",Zt="_hasClear_25x8h_58",Jt="_hasClearAndIconRight_25x8h_61",Qt="_iconSlot_25x8h_64",Pt="_iconSlotRight_25x8h_78",es="_iconSlotRightWithClear_25x8h_92",ts="_clearBtn_25x8h_95",I={wrapper:qt,field:Gt,label:Ut,input:Ht,hasIcon:Kt,hasIconRight:Yt,hasClear:Zt,hasClearAndIconRight:Jt,iconSlot:Qt,iconSlotRight:Pt,iconSlotRightWithClear:es,clearBtn:ts},ss=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"12",height:"12",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),ve=u.forwardRef(({label:n,icon:o,iconPosition:t="left",clearable:s=!1,clearButtonProps:a,clearLabel:l,defaultValue:c="",disabled:r,mask:i,maskAllowedPattern:h,maskPlaceholder:x,selectOnFocus:p=!1,textAlign:m,onChange:f,onValueChange:b,value:R,wrapperProps:B,fieldProps:v,className:N,...k},$)=>{const M=u.useRef(null),[G,Z]=P(R,c,j=>{b==null||b({value:j,rawValue:i?oe(j,{allowedPattern:h}):j})});u.useImperativeHandle($,()=>M.current);const ee=u.useCallback(j=>i?ge(j,i,{allowedPattern:h,placeholder:x}):j,[i,h,x]),T=j=>{const A=ee(j.target.value);j.target.value=A,Z(A),f==null||f(j)},E=()=>{var j;Z(""),(j=M.current)==null||j.focus()},W=o&&t==="right",J=o&&t==="left",K=[I.input,J?I.hasIcon:null,W?I.hasIconRight:null,s&&W?I.hasClearAndIconRight:s?I.hasClear:null,N].filter(Boolean).join(" "),X=j=>{var A;p&&j.target.select(),(A=k.onFocus)==null||A.call(k,j)},Y=e.jsx("input",{ref:M,disabled:r,value:ee(G),onChange:T,onFocus:X,className:K,style:m?{textAlign:m,...k.style}:k.style,...k}),C=[I.wrapper,B==null?void 0:B.className].filter(Boolean).join(" "),F=e.jsxs("span",{...B,className:C,children:[J?e.jsx("span",{className:I.iconSlot,children:o}):null,Y,W?e.jsx("span",{className:[I.iconSlotRight,s?I.iconSlotRightWithClear:null].filter(Boolean).join(" "),children:o}):null,s?e.jsx("button",{type:"button","aria-label":"Clear",title:"Clear",disabled:r||G.length===0,onClick:E,className:I.clearBtn,...a,children:(a==null?void 0:a.children)??e.jsx(ss,{})}):null]});return!n&&!v?F:e.jsxs("div",{...v,className:[I.field,v==null?void 0:v.className].filter(Boolean).join(" "),children:[n?e.jsx("label",{className:I.label,children:n}):null,F]})});ve.displayName="Input";const ns="_checkbox_7kjwa_2",os="_checkboxBox_7kjwa_13",ls="_checked_7kjwa_33",as="_indeterminate_7kjwa_42",cs="_disabled_7kjwa_55",is="_radio_7kjwa_61",rs="_radioDot_7kjwa_72",ds="_radioChecked_7kjwa_85",_s="_radioDisabled_7kjwa_97",us="_radioGroup_7kjwa_102",hs="_switchWrap_7kjwa_109",xs="_switchTrack_7kjwa_120",ms="_switchOn_7kjwa_143",fs="_switchDisabled_7kjwa_153",w={checkbox:ns,checkboxBox:os,checked:ls,indeterminate:as,disabled:cs,radio:is,radioDot:rs,radioChecked:ds,radioDisabled:_s,radioGroup:us,switchWrap:hs,switchTrack:xs,switchOn:ms,switchDisabled:fs},ps=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})});function be({label:n,checked:o,defaultChecked:t,indeterminate:s=!1,disabled:a=!1,onChange:l,className:c,...r}){const i=o??t??!1,h=[w.checkbox,i&&!s?w.checked:null,s?w.indeterminate:null,a?w.disabled:null,c].filter(Boolean).join(" ");return e.jsxs("label",{className:h,children:[e.jsx("input",{...r,type:"checkbox",checked:i,disabled:a,style:{display:"none"},onChange:x=>l==null?void 0:l(x.currentTarget.checked)}),e.jsx("span",{className:w.checkboxBox,children:!s&&e.jsx(ps,{})}),n]})}be.displayName="Checkbox";function ke({label:n,checked:o=!1,disabled:t=!1,onChange:s,value:a,className:l,...c}){const r=[w.radio,o?w.radioChecked:null,t?w.radioDisabled:null,l].filter(Boolean).join(" ");return e.jsxs("label",{className:r,children:[e.jsx("input",{...c,type:"radio",checked:o,disabled:t,value:a,style:{display:"none"},onChange:i=>s==null?void 0:s(i.currentTarget.value)}),e.jsx("span",{className:w.radioDot}),n]})}ke.displayName="Radio";function Ne({children:n,className:o,...t}){const s=[w.radioGroup,o].filter(Boolean).join(" ");return e.jsx("div",{...t,className:s,role:"radiogroup",children:n})}Ne.displayName="RadioGroup";function ye({label:n,checked:o,defaultChecked:t,disabled:s=!1,onChange:a,className:l,...c}){const r=o??t??!1,i=[w.switchWrap,r?w.switchOn:null,s?w.switchDisabled:null,l].filter(Boolean).join(" ");return e.jsxs("label",{className:i,children:[e.jsx("input",{...c,type:"checkbox",checked:r,disabled:s,style:{display:"none"},onChange:h=>a==null?void 0:a(h.currentTarget.checked)}),e.jsx("span",{className:w.switchTrack}),n]})}ye.displayName="Switch";const js="_menu_pga52_1",gs="_item_pga52_13",vs="_active_pga52_41",bs="_danger_pga52_53",ks="_disabled_pga52_65",Ns="_kbd_pga52_71",ys="_separator_pga52_79",q={menu:js,item:gs,active:vs,danger:bs,disabled:ks,kbd:Ns,separator:ys};function we({children:n,className:o,...t}){const s=[q.menu,o].filter(Boolean).join(" ");return e.jsx("div",{...t,className:s,role:"menu",children:n})}we.displayName="Menu";function Be({icon:n,kbd:o,active:t=!1,danger:s=!1,disabled:a=!1,children:l,className:c,...r}){const i=[q.item,t?q.active:null,s?q.danger:null,a?q.disabled:null,c].filter(Boolean).join(" ");return e.jsxs("button",{...r,type:"button",className:i,disabled:a,role:"menuitem",children:[n,l,o&&e.jsx("span",{className:q.kbd,children:o})]})}Be.displayName="MenuItem";function Ce({className:n,...o}){const t=[q.separator,n].filter(Boolean).join(" ");return e.jsx("div",{...o,className:t,role:"separator"})}Ce.displayName="MenuSeparator";const ws="_backdrop_pya14_1",Bs="_modal_pya14_23",Cs="_header_pya14_37",Is="_titleBlock_pya14_45",$s="_title_pya14_45",Ms="_subtitle_pya14_58",Ss="_closeBtn_pya14_64",Ls="_body_pya14_86",Rs="_footer_pya14_92",D={backdrop:ws,modal:Bs,header:Cs,titleBlock:Is,title:$s,subtitle:Ms,closeBtn:Ss,body:Ls,footer:Rs},Ts=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"11",height:"11",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Ie=u.forwardRef(({open:n,title:o,subtitle:t,children:s,footer:a,closeOnBackdrop:l=!0,showCloseButton:c=!0,backdropProps:r,modalProps:i,headerProps:h,bodyProps:x,footerProps:p,closeButtonProps:m,onOpenChange:f,onClose:b},R)=>{const B=u.useRef(null);u.useImperativeHandle(R,()=>B.current),u.useEffect(()=>{if(!n)return;const M=G=>{G.key==="Escape"&&v()};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[n]);const v=()=>{f==null||f(!1),b==null||b()},N=M=>{l&&M.target===M.currentTarget&&v()};if(!n)return null;const k=[D.backdrop,r==null?void 0:r.className].filter(Boolean).join(" "),$=[D.modal,i==null?void 0:i.className].filter(Boolean).join(" ");return e.jsx("div",{...r,className:k,onClick:N,role:"presentation",children:e.jsxs("div",{ref:B,...i,className:$,role:"dialog","aria-modal":"true",children:[(o||c)&&e.jsxs("header",{...h,className:[D.header,h==null?void 0:h.className].filter(Boolean).join(" "),children:[e.jsxs("div",{className:D.titleBlock,children:[o?e.jsx("div",{className:D.title,children:o}):null,t?e.jsx("div",{className:D.subtitle,children:t}):null]}),c&&e.jsx("button",{type:"button","aria-label":"Close",className:D.closeBtn,onClick:v,...m,children:(m==null?void 0:m.children)??e.jsx(Ts,{})})]}),e.jsx("section",{...x,className:[D.body,x==null?void 0:x.className].filter(Boolean).join(" "),children:s}),a&&e.jsx("footer",{...p,className:[D.footer,p==null?void 0:p.className].filter(Boolean).join(" "),children:a})]})})});Ie.displayName="Modal";const As="_wrapper_10d4l_1",Ds="_pop_10d4l_8",Os="_sideRight_10d4l_22",Es="_sideTop_10d4l_27",Ws="_arrow_10d4l_34",Fs="_head_10d4l_60",zs="_title_10d4l_67",Vs="_closeBtn_10d4l_74",Xs="_body_10d4l_105",O={wrapper:As,pop:Ds,sideRight:Os,sideTop:Es,arrow:Ws,head:Fs,title:zs,closeBtn:Vs,body:Xs},qs=()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});function $e({open:n,defaultOpen:o=!1,title:t,children:s,trigger:a,side:l="bottom-start",showCloseButton:c=!0,onOpenChange:r,popProps:i}){const[h,x]=u.useState(o),p=n!==void 0,m=p?n:h,f=u.useRef(null);function b(N){p||x(N),r==null||r(N)}u.useEffect(()=>{function N(k){f.current&&!f.current.contains(k.target)&&b(!1)}return m&&document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[m]);const R=l.startsWith("top"),B=l.endsWith("end"),v=[O.pop,B?O.sideRight:null,R?O.sideTop:null,i==null?void 0:i.className].filter(Boolean).join(" ");return e.jsxs("div",{ref:f,className:O.wrapper,children:[a&&e.jsx("div",{onClick:()=>b(!m),style:{display:"inline-flex"},children:a}),m&&e.jsxs("div",{...i,className:v,children:[e.jsx("span",{className:O.arrow}),(t||c)&&e.jsxs("div",{className:O.head,children:[t&&e.jsx("span",{className:O.title,children:t}),c&&e.jsx("button",{type:"button",className:O.closeBtn,"aria-label":"Close",onClick:()=>b(!1),children:e.jsx(qs,{})})]}),e.jsx("div",{className:O.body,children:s})]})]})}$e.displayName="Popover";const Gs="_group_1ehqf_1",Us="_pb_1ehqf_9",Hs="_on_1ehqf_37",Ks="_accent_1ehqf_42",Ys="_solo_1ehqf_47",Zs="_disabled_1ehqf_62",H={group:Gs,pb:Us,on:Hs,accent:Ks,solo:Ys,disabled:Zs};function Me({children:n,className:o,...t}){const s=[H.group,o].filter(Boolean).join(" ");return e.jsx("div",{...t,className:s,role:"group",children:n})}Me.displayName="PushButtonGroup";function Se({on:n=!1,accent:o=!1,solo:t=!1,icon:s,children:a,disabled:l=!1,className:c,...r}){const i=[H.pb,n?H.on:null,n&&o?H.accent:null,t?H.solo:null,l?H.disabled:null,c].filter(Boolean).join(" ");return e.jsxs("button",{...r,type:"button",className:i,disabled:l,children:[s,a]})}Se.displayName="PushButton";const Js="_root_15t75_1",Qs="_field_15t75_6",Ps="_label_15t75_12",en="_labelMeta_15t75_24",tn="_trigger_15t75_33",sn="_triggerOpen_15t75_59",nn="_triggerConnectedBottom_15t75_64",on="_triggerConnectedTop_15t75_69",ln="_triggerValue_15t75_74",an="_triggerPlaceholder_15t75_83",cn="_chevron_15t75_85",rn="_chevronOpen_15t75_94",dn="_chips_15t75_97",_n="_chip_15t75_97",un="_chipOverflow_15t75_120",hn="_clearBtn_15t75_123",xn="_popover_15t75_143",mn="_popoverBottom_15t75_154",fn="_popoverTop_15t75_162",pn="_search_15t75_181",jn="_searchIcon_15t75_188",gn="_searchInput_15t75_195",vn="_list_15t75_209",bn="_item_15t75_217",kn="_itemAlignLeft_15t75_230",Nn="_itemAlignCenter_15t75_231",yn="_itemAlignRight_15t75_232",wn="_itemActive_15t75_235",Bn="_itemDisabled_15t75_243",Cn="_itemMeta_15t75_245",In="_checkbox_15t75_254",$n="_checkboxChecked_15t75_266",Mn="_checkIcon_15t75_272",Sn="_emptyState_15t75_293",Ln="_popFooter_15t75_301",Rn="_popFooterBtn_15t75_311",_={root:Js,field:Qs,label:Ps,labelMeta:en,trigger:tn,triggerOpen:sn,triggerConnectedBottom:nn,triggerConnectedTop:on,triggerValue:ln,triggerPlaceholder:an,chevron:cn,chevronOpen:rn,chips:dn,chip:_n,chipOverflow:un,clearBtn:hn,popover:xn,popoverBottom:mn,popoverTop:fn,search:pn,searchIcon:jn,searchInput:gn,list:vn,item:bn,itemAlignLeft:kn,itemAlignCenter:Nn,itemAlignRight:yn,itemActive:wn,itemDisabled:Bn,itemMeta:Cn,checkbox:In,checkboxChecked:$n,checkIcon:Mn,emptyState:Sn,popFooter:Ln,popFooterBtn:Rn},Tn=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"14",height:"14",children:e.jsx("path",{d:"m6 9 6 6 6-6"})}),ue=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"12",height:"12",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),An=()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"11",cy:"11",r:"7"}),e.jsx("path",{d:"m20 20-3.5-3.5"})]}),se=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",width:"10",height:"10",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})}),Dn=(n,o)=>{const t=o.trim().toLowerCase();return t?n.filter(s=>String(s.label).toLowerCase().includes(t)):n},Le=u.forwardRef(({label:n,clearable:o=!1,defaultValue:t=null,disabled:s=!1,emptyLabel:a="No options found",filterOptions:l=Dn,isLoading:c=!1,loadingLabel:r="Loading...",multiple:i=!1,onSearchChange:h,onValueChange:x,options:p,optionsAlign:m="left",optionsPosition:f="bottom",placeholder:b="Select",searchable:R=!1,searchPlaceholder:B="Search...",showSelectedCount:v=!0,showClearAll:N=!0,showSelectedValues:k=!0,closeOnSelect:$,value:M,className:G,...Z},ee)=>{const[T,E]=u.useState(!1),[W,J]=u.useState(""),K=u.useRef(null),[X,Y]=P(M,t,d=>{const y=p.filter(U=>Array.isArray(d)?d.includes(U.value):U.value===d);x==null||x(d,y)}),C=u.useMemo(()=>Array.isArray(X)?X:X?[X]:[],[X]),F=u.useMemo(()=>p.filter(d=>C.includes(d.value)),[p,C]),j=u.useMemo(()=>l(p,W),[l,p,W]);u.useEffect(()=>{if(!T)return;const d=y=>{K.current&&!K.current.contains(y.target)&&E(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[T]);const A=d=>{J(d),h==null||h(d)},Ee=d=>{if(!d.disabled){if(i){const y=C.includes(d.value)?C.filter(U=>U!==d.value):[...C,d.value];Y(y),$&&E(!1);return}Y(d.value),($??!0)&&E(!1)}},ae=()=>{Y(i?[]:null),A("")},We=d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),E(y=>!y)),d.key==="Escape"&&E(!1)},ce=f==="top",Fe=[_.trigger,T?_.triggerOpen:null,T?ce?_.triggerConnectedTop:_.triggerConnectedBottom:null].filter(Boolean).join(" "),ze=!i||k,Ve=i&&k&&F.length>0,te=i,Xe=i&&C.length>0,ie=ze&&F.length>0,re=2,de=F.length-re,qe=[_.root,G].filter(Boolean).join(" "),Ge={left:_.itemAlignLeft,center:_.itemAlignCenter,right:_.itemAlignRight}[m],_e=e.jsxs("div",{ref:K,...Z,className:qe,children:[e.jsxs("button",{type:"button",className:Fe,disabled:s,"aria-haspopup":"listbox","aria-expanded":T,onClick:()=>!s&&E(d=>!d),onKeyDown:We,children:[Ve?e.jsxs("div",{className:_.chips,children:[F.slice(0,re).map(d=>e.jsx("span",{className:_.chip,children:d.label},d.value)),de>0&&e.jsxs("span",{className:[_.chip,_.chipOverflow].join(" "),children:["+",de]})]}):e.jsx("span",{className:[_.triggerValue,ie?null:_.triggerPlaceholder].filter(Boolean).join(" "),children:ie?F.map(d=>d.label).join(", "):b}),o&&C.length>0&&e.jsx("button",{type:"button","aria-label":"Clear",className:_.clearBtn,disabled:s,onClick:d=>{d.stopPropagation(),ae()},children:e.jsx(ue,{})}),e.jsx("span",{className:[_.chevron,T?_.chevronOpen:null].filter(Boolean).join(" "),children:e.jsx(Tn,{})})]}),T&&e.jsxs("div",{className:[_.popover,ce?_.popoverTop:_.popoverBottom].join(" "),role:"listbox","aria-multiselectable":i||void 0,children:[R&&e.jsxs("div",{className:_.search,children:[e.jsx("span",{className:_.searchIcon,children:e.jsx(An,{})}),e.jsx("input",{autoFocus:!0,value:W,placeholder:B,className:_.searchInput,onChange:d=>A(d.target.value)}),W&&e.jsx("button",{className:_.clearBtn,onClick:()=>A(""),children:e.jsx(ue,{})})]}),e.jsxs("ul",{className:[_.list,"sb"].join(" "),children:[c&&e.jsx("li",{className:_.emptyState,children:r}),!c&&j.length===0&&e.jsx("li",{className:_.emptyState,children:a}),!c&&j.map(d=>{const y=C.includes(d.value),U=[_.item,Ge,y?_.itemActive:null,d.disabled?_.itemDisabled:null].filter(Boolean).join(" ");return e.jsxs("li",{className:U,role:"option","aria-selected":y,onClick:()=>Ee(d),children:[!te&&m==="right"&&y&&e.jsx("span",{className:_.checkIcon,children:e.jsx(se,{})}),te?e.jsx("span",{className:[_.checkbox,y?_.checkboxChecked:null].filter(Boolean).join(" "),children:y&&e.jsx(se,{})}):null,e.jsx("span",{children:d.label}),d.meta&&e.jsx("span",{className:_.itemMeta,children:d.meta}),!te&&m!=="right"&&y&&e.jsx("span",{className:_.checkIcon,children:e.jsx(se,{})})]},d.value)})]}),Xe&&(v||N)&&e.jsxs("div",{className:_.popFooter,children:[v&&e.jsxs("span",{children:[C.length," selected"]}),N&&e.jsx("button",{className:_.popFooterBtn,onClick:ae,children:"Clear all"})]})]})]});return n?e.jsxs("div",{className:_.field,children:[e.jsxs("label",{className:_.label,children:[n,i&&v&&C.length>0&&e.jsxs("span",{className:_.labelMeta,children:["· ",C.length," selected"]})]}),_e]}):_e});Le.displayName="Select";const On="_ring_mxe7t_2",En="_spin_mxe7t_1",Wn="_ringMuted_mxe7t_12",Fn="_sm_mxe7t_14",zn="_md_mxe7t_15",Vn="_lg_mxe7t_16",Xn="_onAccent_mxe7t_19",qn="_dots_mxe7t_29",Gn="_dot_mxe7t_29",Un="_dotPulse_mxe7t_1",Hn="_bar_mxe7t_52",Kn="_barFill_mxe7t_62",Yn="_barSlide_mxe7t_1",L={ring:On,spin:En,ringMuted:Wn,sm:Fn,md:zn,lg:Vn,onAccent:Xn,dots:qn,dot:Gn,dotPulse:Un,bar:Hn,barFill:Kn,barSlide:Yn};function Re({variant:n="ring",size:o="md",muted:t=!1,onAccent:s=!1,className:a,...l}){if(n==="dots"){const r=[L.dots,a].filter(Boolean).join(" ");return e.jsxs("span",{...l,className:r,role:"status","aria-label":"Loading",children:[e.jsx("span",{className:L.dot}),e.jsx("span",{className:L.dot}),e.jsx("span",{className:L.dot})]})}if(n==="bar"){const r=[L.bar,a].filter(Boolean).join(" ");return e.jsx("span",{...l,className:r,role:"status","aria-label":"Loading",children:e.jsx("span",{className:L.barFill})})}const c=[L.ring,L[o],t?L.ringMuted:null,s?L.onAccent:null,a].filter(Boolean).join(" ");return e.jsx("span",{...l,className:c,role:"status","aria-label":"Loading"})}Re.displayName="Spinner";const Zn="_field_fazrx_1",Jn="_label_fazrx_7",Qn="_wrapper_fazrx_16",Pn="_textarea_fazrx_20",eo="_mono_fazrx_53",to="_hasClear_fazrx_59",so="_clearBtn_fazrx_62",no="_footer_fazrx_84",oo="_helpText_fazrx_92",lo="_charCount_fazrx_94",ao="_charCountOver_fazrx_100",S={field:Zn,label:Jn,wrapper:Qn,textarea:Pn,mono:eo,hasClear:to,clearBtn:so,footer:no,helpText:oo,charCount:lo,charCountOver:ao},co=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"12",height:"12",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Te=u.forwardRef(({label:n,helpText:o,maxLength:t,clearable:s=!1,mono:a=!1,value:l,defaultValue:c="",disabled:r,onChange:i,onValueChange:h,className:x,...p},m)=>{const[f,b]=P(l,c,$=>h==null?void 0:h($)),R=$=>{b($.target.value),i==null||i($)},B=()=>{b("")},v=t!==void 0&&f.length>t,N=[S.textarea,"sb",a?S.mono:null,s?S.hasClear:null,x].filter(Boolean).join(" "),k=e.jsxs("div",{className:S.wrapper,children:[e.jsx("textarea",{ref:m,disabled:r,maxLength:t,value:f,onChange:R,className:N,...p}),s&&e.jsx("button",{type:"button",className:S.clearBtn,disabled:r||f.length===0,"aria-label":"Clear",onClick:B,children:e.jsx(co,{})})]});return!n&&!o&&t===void 0?k:e.jsxs("div",{className:S.field,children:[n&&e.jsx("label",{className:S.label,children:n}),k,(o||t!==void 0)&&e.jsxs("div",{className:S.footer,children:[o&&e.jsx("span",{className:S.helpText,children:o}),t!==void 0&&e.jsxs("span",{className:[S.charCount,v?S.charCountOver:null].filter(Boolean).join(" "),children:[f.length," / ",t]})]})]})});Te.displayName="Textarea";const io="_toast_d6t69_1",ro="_slideUp_d6t69_1",_o="_toastExiting_d6t69_26",uo="_slideOut_d6t69_1",ho="_lead_d6t69_30",xo="_body_d6t69_37",mo="_title_d6t69_45",fo="_message_d6t69_51",po="_closeBtn_d6t69_56",jo="_ok_d6t69_79",go="_error_d6t69_82",vo="_warning_d6t69_85",bo="_info_d6t69_88",ko="_stack_d6t69_92",V={toast:io,slideUp:ro,toastExiting:_o,slideOut:uo,lead:ho,body:xo,title:mo,message:fo,closeBtn:po,ok:jo,error:go,warning:vo,info:bo,stack:ko},No=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",width:"16",height:"16",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})}),Ae=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"11",height:"11",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),yo=()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"16",height:"16",children:[e.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),e.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),e.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),wo=()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"16",height:"16",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]}),Bo={ok:e.jsx(No,{}),error:e.jsx(Ae,{}),warning:e.jsx(yo,{}),info:e.jsx(wo,{})};function le({variant:n="ok",title:o,message:t,onDismiss:s,className:a,...l}){const c=[V.toast,V[n],a].filter(Boolean).join(" ");return e.jsxs("div",{...l,className:c,role:"alert",children:[e.jsx("span",{className:V.lead,children:Bo[n]}),e.jsxs("div",{className:V.body,children:[e.jsx("div",{className:V.title,children:o}),t&&e.jsx("div",{className:V.message,children:t})]}),s&&e.jsx("button",{type:"button",className:V.closeBtn,"aria-label":"Dismiss",onClick:s,children:e.jsx(Ae,{})})]})}le.displayName="Toast";const De=u.createContext(null);function Co({children:n}){const[o,t]=u.useState([]),s=u.useCallback(l=>{t(c=>c.filter(r=>r.id!==l))},[]),a=u.useCallback(l=>{const c=Math.random().toString(36).slice(2),r=l.duration??4e3;return t(i=>[...i,{...l,id:c}]),r>0&&setTimeout(()=>s(c),r),c},[s]);return e.jsxs(De.Provider,{value:{toast:a,dismiss:s},children:[n,typeof document<"u"&&Ue.createPortal(e.jsx("div",{className:V.stack,children:o.map(l=>e.jsx(le,{variant:l.variant,title:l.title,message:l.message,onDismiss:()=>s(l.id)},l.id))}),document.body)]})}function Io(){const n=u.useContext(De);if(!n)throw new Error("useToast must be used within a ToastProvider");return n}const $o="_wrapper_18lxw_1",Mo="_tooltip_18lxw_6",So="_fadeIn_18lxw_1",Lo="_top_18lxw_33",Ro="_bottom_18lxw_52",To="_kbd_18lxw_72",ne={wrapper:$o,tooltip:Mo,fadeIn:So,top:Lo,bottom:Ro,kbd:To};function Oe({content:n,side:o="top",children:t,wrapperProps:s,disabled:a=!1}){const[l,c]=u.useState(!1);if(a)return e.jsx(e.Fragment,{children:t});const r=[ne.tooltip,ne[o]].filter(Boolean).join(" "),i=[ne.wrapper,s==null?void 0:s.className].filter(Boolean).join(" ");return e.jsxs("span",{...s,className:i,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),children:[t,l&&e.jsx("span",{className:r,role:"tooltip",children:n})]})}Oe.displayName="Tooltip";exports.Badge=he;exports.Button=me;exports.Card=fe;exports.CardHeader=pe;exports.CardStat=je;exports.Checkbox=be;exports.Input=ve;exports.Menu=we;exports.MenuItem=Be;exports.MenuSeparator=Ce;exports.Modal=Ie;exports.Popover=$e;exports.PushButton=Se;exports.PushButtonGroup=Me;exports.Radio=ke;exports.RadioGroup=Ne;exports.Scrollable=xe;exports.Select=Le;exports.Spinner=Re;exports.Switch=ye;exports.Textarea=Te;exports.Toast=le;exports.ToastProvider=Co;exports.Tooltip=Oe;exports.applyMask=ge;exports.getRawMaskValue=oe;exports.useControlledState=P;exports.useToast=Io;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),He=require("react-dom"),Ke="_badge_lyltm_1",Ye="_neutral_lyltm_18",Ze="_accent_lyltm_24",Je="_outline_lyltm_29",Qe="_success_lyltm_35",Pe="_warning_lyltm_40",et="_danger_lyltm_45",tt="_info_lyltm_50",st="_count_lyltm_55",nt="_mono_lyltm_63",ot="_version_lyltm_71",lt="_dismiss_lyltm_80",at="_dismissBtn_lyltm_84",ct="_dot_lyltm_98",it="_dotIndicator_lyltm_111",rt="_pill_lyltm_119",z={badge:Ke,neutral:Ye,accent:Ze,outline:Je,success:Qe,warning:Pe,danger:et,info:tt,count:st,mono:nt,version:ot,dismiss:lt,dismissBtn:at,dot:ct,dotIndicator:it,pill:rt},dt=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"10",height:"10",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})});function he({variant:n="neutral",icon:o,pill:t=!1,dismissable:s=!1,onDismiss:a,dotColor:l,children:c,className:r,...i}){if(n==="dot"){const x=[z.badge,z.dot,r].filter(Boolean).join(" ");return e.jsxs("span",{...i,className:x,children:[e.jsx("span",{className:z.dotIndicator,style:{background:l??"var(--accent)"}}),c]})}const h=[z.badge,z[n],t?z.pill:null,s?z.dismiss:null,r].filter(Boolean).join(" ");return e.jsxs("span",{...i,className:h,children:[o||null,c,s&&e.jsx("button",{type:"button",className:z.dismissBtn,"aria-label":"Remove",onClick:a,children:e.jsx(dt,{})})]})}he.displayName="Badge";function xe({direction:n="vertical",track:o=!1,arrows:t=!1,autoHide:s=!1,expand:a=!1,scrollbarSize:l,height:c,children:r,className:i,style:h,...x}){const m=["sb",o?"sb-track":null,t?"sb-arrows":null,s?"sb-auto-hide":null,a?"sb-expand":null,i].filter(Boolean).join(" "),f=n==="vertical"?{overflowY:"auto",overflowX:"hidden"}:n==="horizontal"?{overflowX:"auto",overflowY:"hidden"}:{overflow:"auto"},p=l!==void 0?{"--sb-w":`${l}px`}:void 0;return e.jsx("div",{...x,className:m,style:{height:c,...f,...p,...h},children:r})}xe.displayName="Scrollable";const _t="_btn_8cdvn_1",ut="_icon_8cdvn_34",ht="_primary_8cdvn_43",xt="_secondary_8cdvn_51",mt="_ghost_8cdvn_61",ft="_danger_8cdvn_71",pt="_success_8cdvn_79",jt="_warning_8cdvn_87",gt="_sm_8cdvn_96",vt="_md_8cdvn_104",bt="_lg_8cdvn_106",Q={btn:_t,icon:ut,primary:ht,secondary:xt,ghost:mt,danger:ft,success:pt,warning:jt,sm:gt,md:vt,lg:bt},me=u.forwardRef(({type:n="button",variant:o="secondary",size:t="md",icon:s,loading:a=!1,children:l,className:c,disabled:r,...i},h)=>{const x=[Q.btn,Q[o],Q[t],c].filter(Boolean).join(" ");return e.jsxs("button",{ref:h,type:n,disabled:r||a,className:x,...i,children:[s?e.jsx("span",{className:Q.icon,children:s}):null,l]})});me.displayName="Button";const kt="_card_1gxgi_1",Nt="_bordered_1gxgi_8",yt="_tilt_1gxgi_12",wt="_closeBtn_1gxgi_20",Bt="_padSm_1gxgi_41",Ct="_padMd_1gxgi_42",It="_padLg_1gxgi_43",$t="_padNone_1gxgi_44",Mt="_header_1gxgi_47",St="_headerIcon_1gxgi_54",Lt="_title_1gxgi_63",Rt="_subtitle_1gxgi_69",Tt="_stat_1gxgi_76",At="_statValue_1gxgi_83",Dt="_statUnit_1gxgi_91",Ot="_statDelta_1gxgi_97",Et="_deltaPositive_1gxgi_102",Wt="_deltaNegative_1gxgi_103",Ft="_deltaNeutral_1gxgi_104",g={card:kt,bordered:Nt,tilt:yt,closeBtn:wt,padSm:Bt,padMd:Ct,padLg:It,padNone:$t,header:Mt,headerIcon:St,title:Lt,subtitle:Rt,stat:Tt,statValue:At,statUnit:Dt,statDelta:Ot,deltaPositive:Et,deltaNegative:Wt,deltaNeutral:Ft},zt={none:g.padNone,sm:g.padSm,md:g.padMd,lg:g.padLg},Vt=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",width:"10",height:"10",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})});function fe({padding:n="md",bordered:o=!1,tilt:t=!1,onClose:s,closeBtnProps:a,children:l,className:c,...r}){const i=[g.card,zt[n],o?g.bordered:null,t?g.tilt:null,c].filter(Boolean).join(" ");return e.jsxs("div",{...r,className:i,children:[s&&e.jsx("button",{type:"button","aria-label":"Close",...a,className:[g.closeBtn,a==null?void 0:a.className].filter(Boolean).join(" "),onClick:s,children:e.jsx(Vt,{})}),l]})}fe.displayName="Card";function pe({icon:n,title:o,subtitle:t,className:s,...a}){return e.jsxs("div",{...a,className:[g.header,s].filter(Boolean).join(" "),children:[n&&e.jsx("span",{className:g.headerIcon,children:n}),e.jsxs("div",{children:[e.jsx("div",{className:g.title,children:o}),t&&e.jsx("div",{className:g.subtitle,children:t})]})]})}pe.displayName="CardHeader";function je({value:n,unit:o,delta:t,deltaDirection:s="positive",className:a,...l}){const c=[g.statDelta,s==="positive"?g.deltaPositive:s==="negative"?g.deltaNegative:g.deltaNeutral].filter(Boolean).join(" ");return e.jsxs("div",{...l,className:[g.stat,a].filter(Boolean).join(" "),children:[e.jsxs("span",{className:g.statValue,children:[n,o&&e.jsxs("span",{className:g.statUnit,children:[" ",o]})]}),t&&e.jsx("span",{className:c,children:t})]})}je.displayName="CardStat";function P(n,o,t){const[s,a]=u.useState(o),l=n!==void 0,c=l?n:s,r=u.useCallback(i=>{l||a(i),t==null||t(i)},[l,t]);return[c,r,l]}const Xt="X",qt=/[a-zA-Z0-9]/;function oe(n,o={}){const t=o.allowedPattern??qt;return n.split("").filter(s=>t.test(s)).join("")}function ge(n,o,t={}){const s=t.placeholder??Xt,a=oe(n,t);let l=0,c="";for(const r of o){if(l>=a.length)break;if(r===s){c+=a[l],l+=1;continue}c+=r}return c}const Gt="_wrapper_25x8h_1",Ut="_field_25x8h_7",Ht="_label_25x8h_13",Kt="_input_25x8h_22",Yt="_hasIcon_25x8h_52",Zt="_hasIconRight_25x8h_55",Jt="_hasClear_25x8h_58",Qt="_hasClearAndIconRight_25x8h_61",Pt="_iconSlot_25x8h_64",es="_iconSlotRight_25x8h_78",ts="_iconSlotRightWithClear_25x8h_92",ss="_clearBtn_25x8h_95",I={wrapper:Gt,field:Ut,label:Ht,input:Kt,hasIcon:Yt,hasIconRight:Zt,hasClear:Jt,hasClearAndIconRight:Qt,iconSlot:Pt,iconSlotRight:es,iconSlotRightWithClear:ts,clearBtn:ss},ns=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"12",height:"12",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),ve=u.forwardRef(({label:n,icon:o,iconPosition:t="left",clearable:s=!1,clearButtonProps:a,clearLabel:l,defaultValue:c="",disabled:r,mask:i,maskAllowedPattern:h,maskPlaceholder:x,selectOnFocus:m=!1,textAlign:f,onChange:p,onValueChange:b,value:R,wrapperProps:C,fieldProps:v,className:N,...k},$)=>{const M=u.useRef(null),[G,Z]=P(R,c,j=>{b==null||b({value:j,rawValue:i?oe(j,{allowedPattern:h}):j})});u.useImperativeHandle($,()=>M.current);const ee=u.useCallback(j=>i?ge(j,i,{allowedPattern:h,placeholder:x}):j,[i,h,x]),T=j=>{const A=ee(j.target.value);j.target.value=A,Z(A),p==null||p(j)},E=()=>{var j;Z(""),(j=M.current)==null||j.focus()},W=o&&t==="right",J=o&&t==="left",Y=[I.input,J?I.hasIcon:null,W?I.hasIconRight:null,s&&W?I.hasClearAndIconRight:s?I.hasClear:null,N].filter(Boolean).join(" "),X=j=>{var A;m&&j.target.select(),(A=k.onFocus)==null||A.call(k,j)},U=e.jsx("input",{ref:M,disabled:r,value:ee(G),onChange:T,onFocus:X,className:Y,style:f?{textAlign:f,...k.style}:k.style,...k}),y=[I.wrapper,C==null?void 0:C.className].filter(Boolean).join(" "),F=e.jsxs("span",{...C,className:y,children:[J?e.jsx("span",{className:I.iconSlot,children:o}):null,U,W?e.jsx("span",{className:[I.iconSlotRight,s?I.iconSlotRightWithClear:null].filter(Boolean).join(" "),children:o}):null,s?e.jsx("button",{type:"button","aria-label":"Clear",title:"Clear",disabled:r||G.length===0,onClick:E,className:I.clearBtn,...a,children:(a==null?void 0:a.children)??e.jsx(ns,{})}):null]});return!n&&!v?F:e.jsxs("div",{...v,className:[I.field,v==null?void 0:v.className].filter(Boolean).join(" "),children:[n?e.jsx("label",{className:I.label,children:n}):null,F]})});ve.displayName="Input";const os="_checkbox_7kjwa_2",ls="_checkboxBox_7kjwa_13",as="_checked_7kjwa_33",cs="_indeterminate_7kjwa_42",is="_disabled_7kjwa_55",rs="_radio_7kjwa_61",ds="_radioDot_7kjwa_72",_s="_radioChecked_7kjwa_85",us="_radioDisabled_7kjwa_97",hs="_radioGroup_7kjwa_102",xs="_switchWrap_7kjwa_109",ms="_switchTrack_7kjwa_120",fs="_switchOn_7kjwa_143",ps="_switchDisabled_7kjwa_153",B={checkbox:os,checkboxBox:ls,checked:as,indeterminate:cs,disabled:is,radio:rs,radioDot:ds,radioChecked:_s,radioDisabled:us,radioGroup:hs,switchWrap:xs,switchTrack:ms,switchOn:fs,switchDisabled:ps},js=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})});function be({label:n,checked:o,defaultChecked:t,indeterminate:s=!1,disabled:a=!1,onChange:l,className:c,...r}){const i=o??t??!1,h=[B.checkbox,i&&!s?B.checked:null,s?B.indeterminate:null,a?B.disabled:null,c].filter(Boolean).join(" ");return e.jsxs("label",{className:h,children:[e.jsx("input",{...r,type:"checkbox",checked:i,disabled:a,style:{display:"none"},onChange:x=>l==null?void 0:l(x.currentTarget.checked)}),e.jsx("span",{className:B.checkboxBox,children:!s&&e.jsx(js,{})}),n]})}be.displayName="Checkbox";function ke({label:n,checked:o=!1,disabled:t=!1,onChange:s,value:a,className:l,...c}){const r=[B.radio,o?B.radioChecked:null,t?B.radioDisabled:null,l].filter(Boolean).join(" ");return e.jsxs("label",{className:r,children:[e.jsx("input",{...c,type:"radio",checked:o,disabled:t,value:a,style:{display:"none"},onChange:i=>s==null?void 0:s(i.currentTarget.value)}),e.jsx("span",{className:B.radioDot}),n]})}ke.displayName="Radio";function Ne({children:n,className:o,...t}){const s=[B.radioGroup,o].filter(Boolean).join(" ");return e.jsx("div",{...t,className:s,role:"radiogroup",children:n})}Ne.displayName="RadioGroup";function ye({label:n,checked:o,defaultChecked:t,disabled:s=!1,onChange:a,className:l,...c}){const r=o??t??!1,i=[B.switchWrap,r?B.switchOn:null,s?B.switchDisabled:null,l].filter(Boolean).join(" ");return e.jsxs("label",{className:i,children:[e.jsx("input",{...c,type:"checkbox",checked:r,disabled:s,style:{display:"none"},onChange:h=>a==null?void 0:a(h.currentTarget.checked)}),e.jsx("span",{className:B.switchTrack}),n]})}ye.displayName="Switch";const gs="_menu_pga52_1",vs="_item_pga52_13",bs="_active_pga52_41",ks="_danger_pga52_53",Ns="_disabled_pga52_65",ys="_kbd_pga52_71",ws="_separator_pga52_79",q={menu:gs,item:vs,active:bs,danger:ks,disabled:Ns,kbd:ys,separator:ws};function we({children:n,className:o,...t}){const s=[q.menu,o].filter(Boolean).join(" ");return e.jsx("div",{...t,className:s,role:"menu",children:n})}we.displayName="Menu";function Be({icon:n,kbd:o,active:t=!1,danger:s=!1,disabled:a=!1,children:l,className:c,...r}){const i=[q.item,t?q.active:null,s?q.danger:null,a?q.disabled:null,c].filter(Boolean).join(" ");return e.jsxs("button",{...r,type:"button",className:i,disabled:a,role:"menuitem",children:[n,l,o&&e.jsx("span",{className:q.kbd,children:o})]})}Be.displayName="MenuItem";function Ce({className:n,...o}){const t=[q.separator,n].filter(Boolean).join(" ");return e.jsx("div",{...o,className:t,role:"separator"})}Ce.displayName="MenuSeparator";const Bs="_backdrop_pya14_1",Cs="_modal_pya14_23",Is="_header_pya14_37",$s="_titleBlock_pya14_45",Ms="_title_pya14_45",Ss="_subtitle_pya14_58",Ls="_closeBtn_pya14_64",Rs="_body_pya14_86",Ts="_footer_pya14_92",D={backdrop:Bs,modal:Cs,header:Is,titleBlock:$s,title:Ms,subtitle:Ss,closeBtn:Ls,body:Rs,footer:Ts},As=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"11",height:"11",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Ie=u.forwardRef(({open:n,title:o,subtitle:t,children:s,footer:a,closeOnBackdrop:l=!0,showCloseButton:c=!0,backdropProps:r,modalProps:i,headerProps:h,bodyProps:x,footerProps:m,closeButtonProps:f,onOpenChange:p,onClose:b},R)=>{const C=u.useRef(null);u.useImperativeHandle(R,()=>C.current),u.useEffect(()=>{if(!n)return;const M=G=>{G.key==="Escape"&&v()};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[n]);const v=()=>{p==null||p(!1),b==null||b()},N=M=>{l&&M.target===M.currentTarget&&v()};if(!n)return null;const k=[D.backdrop,r==null?void 0:r.className].filter(Boolean).join(" "),$=[D.modal,i==null?void 0:i.className].filter(Boolean).join(" ");return e.jsx("div",{...r,className:k,onClick:N,role:"presentation",children:e.jsxs("div",{ref:C,...i,className:$,role:"dialog","aria-modal":"true",children:[(o||c)&&e.jsxs("header",{...h,className:[D.header,h==null?void 0:h.className].filter(Boolean).join(" "),children:[e.jsxs("div",{className:D.titleBlock,children:[o?e.jsx("div",{className:D.title,children:o}):null,t?e.jsx("div",{className:D.subtitle,children:t}):null]}),c&&e.jsx("button",{type:"button","aria-label":"Close",className:D.closeBtn,onClick:v,...f,children:(f==null?void 0:f.children)??e.jsx(As,{})})]}),e.jsx("section",{...x,className:[D.body,x==null?void 0:x.className].filter(Boolean).join(" "),children:s}),a&&e.jsx("footer",{...m,className:[D.footer,m==null?void 0:m.className].filter(Boolean).join(" "),children:a})]})})});Ie.displayName="Modal";const Ds="_wrapper_10d4l_1",Os="_pop_10d4l_8",Es="_sideRight_10d4l_22",Ws="_sideTop_10d4l_27",Fs="_arrow_10d4l_34",zs="_head_10d4l_60",Vs="_title_10d4l_67",Xs="_closeBtn_10d4l_74",qs="_body_10d4l_105",O={wrapper:Ds,pop:Os,sideRight:Es,sideTop:Ws,arrow:Fs,head:zs,title:Vs,closeBtn:Xs,body:qs},Gs=()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});function $e({open:n,defaultOpen:o=!1,title:t,children:s,trigger:a,side:l="bottom-start",showCloseButton:c=!0,onOpenChange:r,popProps:i}){const[h,x]=u.useState(o),m=n!==void 0,f=m?n:h,p=u.useRef(null);function b(N){m||x(N),r==null||r(N)}u.useEffect(()=>{function N(k){p.current&&!p.current.contains(k.target)&&b(!1)}return f&&document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[f]);const R=l.startsWith("top"),C=l.endsWith("end"),v=[O.pop,C?O.sideRight:null,R?O.sideTop:null,i==null?void 0:i.className].filter(Boolean).join(" ");return e.jsxs("div",{ref:p,className:O.wrapper,children:[a&&e.jsx("div",{onClick:()=>b(!f),style:{display:"inline-flex"},children:a}),f&&e.jsxs("div",{...i,className:v,children:[e.jsx("span",{className:O.arrow}),(t||c)&&e.jsxs("div",{className:O.head,children:[t&&e.jsx("span",{className:O.title,children:t}),c&&e.jsx("button",{type:"button",className:O.closeBtn,"aria-label":"Close",onClick:()=>b(!1),children:e.jsx(Gs,{})})]}),e.jsx("div",{className:O.body,children:s})]})]})}$e.displayName="Popover";const Us="_group_1ehqf_1",Hs="_pb_1ehqf_9",Ks="_on_1ehqf_37",Ys="_accent_1ehqf_42",Zs="_solo_1ehqf_47",Js="_disabled_1ehqf_62",K={group:Us,pb:Hs,on:Ks,accent:Ys,solo:Zs,disabled:Js};function Me({children:n,className:o,...t}){const s=[K.group,o].filter(Boolean).join(" ");return e.jsx("div",{...t,className:s,role:"group",children:n})}Me.displayName="PushButtonGroup";function Se({on:n=!1,accent:o=!1,solo:t=!1,icon:s,children:a,disabled:l=!1,className:c,...r}){const i=[K.pb,n?K.on:null,n&&o?K.accent:null,t?K.solo:null,l?K.disabled:null,c].filter(Boolean).join(" ");return e.jsxs("button",{...r,type:"button",className:i,disabled:l,children:[s,a]})}Se.displayName="PushButton";const Qs="_root_15t75_1",Ps="_field_15t75_6",en="_label_15t75_12",tn="_labelMeta_15t75_24",sn="_trigger_15t75_33",nn="_triggerOpen_15t75_59",on="_triggerConnectedBottom_15t75_64",ln="_triggerConnectedTop_15t75_69",an="_triggerValue_15t75_74",cn="_triggerPlaceholder_15t75_83",rn="_chevron_15t75_85",dn="_chevronOpen_15t75_94",_n="_chips_15t75_97",un="_chip_15t75_97",hn="_chipOverflow_15t75_120",xn="_clearBtn_15t75_123",mn="_popover_15t75_143",fn="_popoverBottom_15t75_154",pn="_popoverTop_15t75_162",jn="_search_15t75_181",gn="_searchIcon_15t75_188",vn="_searchInput_15t75_195",bn="_list_15t75_209",kn="_item_15t75_217",Nn="_itemAlignLeft_15t75_230",yn="_itemAlignCenter_15t75_231",wn="_itemAlignRight_15t75_232",Bn="_itemActive_15t75_235",Cn="_itemDisabled_15t75_243",In="_itemMeta_15t75_245",$n="_checkbox_15t75_254",Mn="_checkboxChecked_15t75_266",Sn="_checkIcon_15t75_272",Ln="_emptyState_15t75_293",Rn="_popFooter_15t75_301",Tn="_popFooterBtn_15t75_311",_={root:Qs,field:Ps,label:en,labelMeta:tn,trigger:sn,triggerOpen:nn,triggerConnectedBottom:on,triggerConnectedTop:ln,triggerValue:an,triggerPlaceholder:cn,chevron:rn,chevronOpen:dn,chips:_n,chip:un,chipOverflow:hn,clearBtn:xn,popover:mn,popoverBottom:fn,popoverTop:pn,search:jn,searchIcon:gn,searchInput:vn,list:bn,item:kn,itemAlignLeft:Nn,itemAlignCenter:yn,itemAlignRight:wn,itemActive:Bn,itemDisabled:Cn,itemMeta:In,checkbox:$n,checkboxChecked:Mn,checkIcon:Sn,emptyState:Ln,popFooter:Rn,popFooterBtn:Tn},An=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"14",height:"14",children:e.jsx("path",{d:"m6 9 6 6 6-6"})}),ue=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"12",height:"12",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Dn=()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"11",cy:"11",r:"7"}),e.jsx("path",{d:"m20 20-3.5-3.5"})]}),se=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",width:"10",height:"10",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})}),On=(n,o)=>{const t=o.trim().toLowerCase();return t?n.filter(s=>String(s.label).toLowerCase().includes(t)):n},Le=u.forwardRef(({label:n,clearable:o=!1,defaultValue:t=null,disabled:s=!1,emptyLabel:a="No options found",filterOptions:l=On,isLoading:c=!1,loadingLabel:r="Loading...",multiple:i=!1,onSearchChange:h,onValueChange:x,options:m,optionsAlign:f="left",optionsPosition:p="bottom",placeholder:b="Select",searchable:R=!1,searchPlaceholder:C="Search...",showSelectedCount:v=!0,showClearAll:N=!0,showSelectedValues:k=!0,closeOnSelect:$,value:M,className:G,...Z},ee)=>{const[T,E]=u.useState(!1),[W,J]=u.useState(""),Y=u.useRef(null),[X,U]=P(M,t,d=>{const w=m.filter(H=>Array.isArray(d)?d.includes(H.value):H.value===d);x==null||x(d,w)}),y=u.useMemo(()=>Array.isArray(X)?X:X?[X]:[],[X]),F=u.useMemo(()=>m.filter(d=>y.includes(d.value)),[m,y]),j=u.useMemo(()=>l(m,W),[l,m,W]);u.useEffect(()=>{if(!T)return;const d=w=>{Y.current&&!Y.current.contains(w.target)&&E(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[T]);const A=d=>{J(d),h==null||h(d)},Ee=d=>{if(!d.disabled){if(i){const w=y.includes(d.value)?y.filter(H=>H!==d.value):[...y,d.value];U(w),$&&E(!1);return}U(d.value),($??!0)&&E(!1)}},ae=()=>{U(i?[]:null),A("")},We=()=>{if(y.length>0){ae();return}U(m.filter(d=>!d.disabled).map(d=>d.value))},Fe=d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),E(w=>!w)),d.key==="Escape"&&E(!1)},ce=p==="top",ze=[_.trigger,T?_.triggerOpen:null,T?ce?_.triggerConnectedTop:_.triggerConnectedBottom:null].filter(Boolean).join(" "),Ve=!i||k,Xe=i&&k&&F.length>0,te=i,qe=i&&(y.length>0||N),ie=Ve&&F.length>0,re=2,de=F.length-re,Ge=[_.root,G].filter(Boolean).join(" "),Ue={left:_.itemAlignLeft,center:_.itemAlignCenter,right:_.itemAlignRight}[f],_e=e.jsxs("div",{ref:Y,...Z,className:Ge,children:[e.jsxs("button",{type:"button",className:ze,disabled:s,"aria-haspopup":"listbox","aria-expanded":T,onClick:()=>!s&&E(d=>!d),onKeyDown:Fe,children:[Xe?e.jsxs("div",{className:_.chips,children:[F.slice(0,re).map(d=>e.jsx("span",{className:_.chip,children:d.label},d.value)),de>0&&e.jsxs("span",{className:[_.chip,_.chipOverflow].join(" "),children:["+",de]})]}):e.jsx("span",{className:[_.triggerValue,ie?null:_.triggerPlaceholder].filter(Boolean).join(" "),children:ie?F.map(d=>d.label).join(", "):b}),o&&y.length>0&&e.jsx("button",{type:"button","aria-label":"Clear",className:_.clearBtn,disabled:s,onClick:d=>{d.stopPropagation(),ae()},children:e.jsx(ue,{})}),e.jsx("span",{className:[_.chevron,T?_.chevronOpen:null].filter(Boolean).join(" "),children:e.jsx(An,{})})]}),T&&e.jsxs("div",{className:[_.popover,ce?_.popoverTop:_.popoverBottom].join(" "),role:"listbox","aria-multiselectable":i||void 0,children:[R&&e.jsxs("div",{className:_.search,children:[e.jsx("span",{className:_.searchIcon,children:e.jsx(Dn,{})}),e.jsx("input",{autoFocus:!0,value:W,placeholder:C,className:_.searchInput,onChange:d=>A(d.target.value)}),W&&e.jsx("button",{className:_.clearBtn,onClick:()=>A(""),children:e.jsx(ue,{})})]}),e.jsxs("ul",{className:[_.list,"sb"].join(" "),children:[c&&e.jsx("li",{className:_.emptyState,children:r}),!c&&j.length===0&&e.jsx("li",{className:_.emptyState,children:a}),!c&&j.map(d=>{const w=y.includes(d.value),H=[_.item,Ue,w?_.itemActive:null,d.disabled?_.itemDisabled:null].filter(Boolean).join(" ");return e.jsxs("li",{className:H,role:"option","aria-selected":w,onClick:()=>Ee(d),children:[!te&&f==="right"&&w&&e.jsx("span",{className:_.checkIcon,children:e.jsx(se,{})}),te?e.jsx("span",{className:[_.checkbox,w?_.checkboxChecked:null].filter(Boolean).join(" "),children:w&&e.jsx(se,{})}):null,e.jsx("span",{children:d.label}),d.meta&&e.jsx("span",{className:_.itemMeta,children:d.meta}),!te&&f!=="right"&&w&&e.jsx("span",{className:_.checkIcon,children:e.jsx(se,{})})]},d.value)})]}),qe&&(v||N)&&e.jsxs("div",{className:_.popFooter,children:[v&&e.jsxs("span",{children:[y.length," selected"]}),N&&e.jsx("button",{className:_.popFooterBtn,onClick:We,children:y.length>0?"Clear all":"Check all"})]})]})]});return n?e.jsxs("div",{className:_.field,children:[e.jsxs("label",{className:_.label,children:[n,i&&v&&y.length>0&&e.jsxs("span",{className:_.labelMeta,children:["· ",y.length," selected"]})]}),_e]}):_e});Le.displayName="Select";const En="_ring_mxe7t_2",Wn="_spin_mxe7t_1",Fn="_ringMuted_mxe7t_12",zn="_sm_mxe7t_14",Vn="_md_mxe7t_15",Xn="_lg_mxe7t_16",qn="_onAccent_mxe7t_19",Gn="_dots_mxe7t_29",Un="_dot_mxe7t_29",Hn="_dotPulse_mxe7t_1",Kn="_bar_mxe7t_52",Yn="_barFill_mxe7t_62",Zn="_barSlide_mxe7t_1",L={ring:En,spin:Wn,ringMuted:Fn,sm:zn,md:Vn,lg:Xn,onAccent:qn,dots:Gn,dot:Un,dotPulse:Hn,bar:Kn,barFill:Yn,barSlide:Zn};function Re({variant:n="ring",size:o="md",muted:t=!1,onAccent:s=!1,className:a,...l}){if(n==="dots"){const r=[L.dots,a].filter(Boolean).join(" ");return e.jsxs("span",{...l,className:r,role:"status","aria-label":"Loading",children:[e.jsx("span",{className:L.dot}),e.jsx("span",{className:L.dot}),e.jsx("span",{className:L.dot})]})}if(n==="bar"){const r=[L.bar,a].filter(Boolean).join(" ");return e.jsx("span",{...l,className:r,role:"status","aria-label":"Loading",children:e.jsx("span",{className:L.barFill})})}const c=[L.ring,L[o],t?L.ringMuted:null,s?L.onAccent:null,a].filter(Boolean).join(" ");return e.jsx("span",{...l,className:c,role:"status","aria-label":"Loading"})}Re.displayName="Spinner";const Jn="_field_fazrx_1",Qn="_label_fazrx_7",Pn="_wrapper_fazrx_16",eo="_textarea_fazrx_20",to="_mono_fazrx_53",so="_hasClear_fazrx_59",no="_clearBtn_fazrx_62",oo="_footer_fazrx_84",lo="_helpText_fazrx_92",ao="_charCount_fazrx_94",co="_charCountOver_fazrx_100",S={field:Jn,label:Qn,wrapper:Pn,textarea:eo,mono:to,hasClear:so,clearBtn:no,footer:oo,helpText:lo,charCount:ao,charCountOver:co},io=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"12",height:"12",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Te=u.forwardRef(({label:n,helpText:o,maxLength:t,clearable:s=!1,mono:a=!1,value:l,defaultValue:c="",disabled:r,onChange:i,onValueChange:h,className:x,...m},f)=>{const[p,b]=P(l,c,$=>h==null?void 0:h($)),R=$=>{b($.target.value),i==null||i($)},C=()=>{b("")},v=t!==void 0&&p.length>t,N=[S.textarea,"sb",a?S.mono:null,s?S.hasClear:null,x].filter(Boolean).join(" "),k=e.jsxs("div",{className:S.wrapper,children:[e.jsx("textarea",{ref:f,disabled:r,maxLength:t,value:p,onChange:R,className:N,...m}),s&&e.jsx("button",{type:"button",className:S.clearBtn,disabled:r||p.length===0,"aria-label":"Clear",onClick:C,children:e.jsx(io,{})})]});return!n&&!o&&t===void 0?k:e.jsxs("div",{className:S.field,children:[n&&e.jsx("label",{className:S.label,children:n}),k,(o||t!==void 0)&&e.jsxs("div",{className:S.footer,children:[o&&e.jsx("span",{className:S.helpText,children:o}),t!==void 0&&e.jsxs("span",{className:[S.charCount,v?S.charCountOver:null].filter(Boolean).join(" "),children:[p.length," / ",t]})]})]})});Te.displayName="Textarea";const ro="_toast_d6t69_1",_o="_slideUp_d6t69_1",uo="_toastExiting_d6t69_26",ho="_slideOut_d6t69_1",xo="_lead_d6t69_30",mo="_body_d6t69_37",fo="_title_d6t69_45",po="_message_d6t69_51",jo="_closeBtn_d6t69_56",go="_ok_d6t69_79",vo="_error_d6t69_82",bo="_warning_d6t69_85",ko="_info_d6t69_88",No="_stack_d6t69_92",V={toast:ro,slideUp:_o,toastExiting:uo,slideOut:ho,lead:xo,body:mo,title:fo,message:po,closeBtn:jo,ok:go,error:vo,warning:bo,info:ko,stack:No},yo=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",width:"16",height:"16",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})}),Ae=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"11",height:"11",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),wo=()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"16",height:"16",children:[e.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),e.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),e.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),Bo=()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"16",height:"16",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]}),Co={ok:e.jsx(yo,{}),error:e.jsx(Ae,{}),warning:e.jsx(wo,{}),info:e.jsx(Bo,{})};function le({variant:n="ok",title:o,message:t,onDismiss:s,className:a,...l}){const c=[V.toast,V[n],a].filter(Boolean).join(" ");return e.jsxs("div",{...l,className:c,role:"alert",children:[e.jsx("span",{className:V.lead,children:Co[n]}),e.jsxs("div",{className:V.body,children:[e.jsx("div",{className:V.title,children:o}),t&&e.jsx("div",{className:V.message,children:t})]}),s&&e.jsx("button",{type:"button",className:V.closeBtn,"aria-label":"Dismiss",onClick:s,children:e.jsx(Ae,{})})]})}le.displayName="Toast";const De=u.createContext(null);function Io({children:n}){const[o,t]=u.useState([]),s=u.useCallback(l=>{t(c=>c.filter(r=>r.id!==l))},[]),a=u.useCallback(l=>{const c=Math.random().toString(36).slice(2),r=l.duration??4e3;return t(i=>[...i,{...l,id:c}]),r>0&&setTimeout(()=>s(c),r),c},[s]);return e.jsxs(De.Provider,{value:{toast:a,dismiss:s},children:[n,typeof document<"u"&&He.createPortal(e.jsx("div",{className:V.stack,children:o.map(l=>e.jsx(le,{variant:l.variant,title:l.title,message:l.message,onDismiss:()=>s(l.id)},l.id))}),document.body)]})}function $o(){const n=u.useContext(De);if(!n)throw new Error("useToast must be used within a ToastProvider");return n}const Mo="_wrapper_18lxw_1",So="_tooltip_18lxw_6",Lo="_fadeIn_18lxw_1",Ro="_top_18lxw_33",To="_bottom_18lxw_52",Ao="_kbd_18lxw_72",ne={wrapper:Mo,tooltip:So,fadeIn:Lo,top:Ro,bottom:To,kbd:Ao};function Oe({content:n,side:o="top",children:t,wrapperProps:s,disabled:a=!1}){const[l,c]=u.useState(!1);if(a)return e.jsx(e.Fragment,{children:t});const r=[ne.tooltip,ne[o]].filter(Boolean).join(" "),i=[ne.wrapper,s==null?void 0:s.className].filter(Boolean).join(" ");return e.jsxs("span",{...s,className:i,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),children:[t,l&&e.jsx("span",{className:r,role:"tooltip",children:n})]})}Oe.displayName="Tooltip";exports.Badge=he;exports.Button=me;exports.Card=fe;exports.CardHeader=pe;exports.CardStat=je;exports.Checkbox=be;exports.Input=ve;exports.Menu=we;exports.MenuItem=Be;exports.MenuSeparator=Ce;exports.Modal=Ie;exports.Popover=$e;exports.PushButton=Se;exports.PushButtonGroup=Me;exports.Radio=ke;exports.RadioGroup=Ne;exports.Scrollable=xe;exports.Select=Le;exports.Spinner=Re;exports.Switch=ye;exports.Textarea=Te;exports.Toast=le;exports.ToastProvider=Io;exports.Tooltip=Oe;exports.applyMask=ge;exports.getRawMaskValue=oe;exports.useControlledState=P;exports.useToast=$o;
2
2
  //# sourceMappingURL=super-kit.cjs.map