@dnotrever2/super-kit 0.1.15 → 0.1.16

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
@@ -32,6 +32,94 @@ import "@dnotrever2/super-kit/dist/styles/index.css";
32
32
 
33
33
  ## Components
34
34
 
35
+ ### Accordion
36
+
37
+ Expandable content sections with single or multiple open items.
38
+
39
+ ```tsx
40
+ import { Accordion, Badge } from "@dnotrever2/super-kit";
41
+
42
+ <Accordion
43
+ defaultValue="deploy"
44
+ items={[
45
+ {
46
+ value: "deploy",
47
+ title: "Deploy pipeline",
48
+ content: "Build, test, and publish the current release."
49
+ },
50
+ {
51
+ value: "limits",
52
+ title: <>Usage limits <Badge variant="warning" pill>3</Badge></>,
53
+ content: "Requests are throttled when the workspace reaches its quota."
54
+ }
55
+ ]}
56
+ />
57
+
58
+ <Accordion
59
+ defaultValue={["deploy", "access"]}
60
+ items={items}
61
+ />
62
+
63
+ <Accordion
64
+ multiple={false}
65
+ indicator="plus-minus"
66
+ border="divider"
67
+ radius="square"
68
+ highlight="header"
69
+ spacing={0}
70
+ defaultValue="deploy"
71
+ items={items}
72
+ />
73
+
74
+ <Accordion
75
+ highlight="item"
76
+ hoverHighlight={false}
77
+ headerStyle={{ minHeight: 46, padding: "12px 16px" }}
78
+ bodyStyle={{ padding: "0 16px", color: "var(--fg-2)" }}
79
+ items={items}
80
+ />
81
+ ```
82
+
83
+ | Prop | Type | Default |
84
+ | ------------------ | ------------------------------------- | ------------------ |
85
+ | `items` | `AccordionItem[]` | required |
86
+ | `value` | `string \| string[]` | — controlled |
87
+ | `defaultValue` | `string \| string[]` | `""` or `[]` |
88
+ | `onValueChange` | `(value: string \| string[]) => void` | — |
89
+ | `multiple` | `boolean` | `true` |
90
+ | `hideIndicator` | `boolean` | `false` |
91
+ | `indicator` | `"chevron" \| "plus-minus"` | `"chevron"` |
92
+ | `border` | `"boxed" \| "none" \| "divider"` | `"boxed"` |
93
+ | `highlight` | `"none" \| "item" \| "header"` | `"none"` |
94
+ | `radius` | `"rounded" \| "square"` | `"rounded"` |
95
+ | `hoverHighlight` | `boolean` | `true` |
96
+ | `spacing` | `number \| string` | `8` |
97
+ | `disabled` | `boolean` | `false` |
98
+ | `itemClassName` | `string` | — |
99
+ | `headerClassName` | `string` | — |
100
+ | `headerStyle` | `CSSProperties` | — |
101
+ | `bodyClassName` | `string` | — |
102
+ | `bodyStyle` | `CSSProperties` | — |
103
+ | `triggerClassName` | `string` | — |
104
+ | `contentClassName` | `string` | — |
105
+
106
+ **AccordionItem fields**
107
+
108
+ | Field | Type |
109
+ | -------------- | ----------------------------------------- |
110
+ | `value` | `string` |
111
+ | `title` | `ReactNode` |
112
+ | `content` | `ReactNode` |
113
+ | `disabled` | `boolean` |
114
+ | `icon` | `ReactNode` |
115
+ | `className` | `string` |
116
+ | `triggerProps` | `ButtonHTMLAttributes<HTMLButtonElement>` |
117
+ | `contentProps` | `HTMLAttributes<HTMLDivElement>` |
118
+
119
+ By default, opening one item does not close the others. Use `multiple={false}` when only one item should stay open. Use `hideIndicator` to remove the arrow, or `indicator="plus-minus"` to show a small `+`/`-` indicator. Use `border="none"` to remove borders, `border="divider"` to show only separators between items, and `spacing` to control the gap between items. Use `radius="square"` for square corners. Use `highlight="item"` to highlight the whole open item, or `highlight="header"` to highlight only the header. Use `hoverHighlight={false}` to disable hover highlight. Use `headerClassName`/`headerStyle` and `bodyClassName`/`bodyStyle` to customize colors, height, width, padding, margin, and other layout styles.
120
+
121
+ ---
122
+
35
123
  ### Badge
36
124
 
37
125
  Status labels and tags.
@@ -0,0 +1,42 @@
1
+ import { ButtonHTMLAttributes, CSSProperties, HTMLAttributes, ReactNode } from 'react';
2
+ export type AccordionValue = string | string[];
3
+ export type AccordionIndicator = "chevron" | "plus-minus";
4
+ export type AccordionBorder = "boxed" | "none" | "divider";
5
+ export type AccordionHighlight = "none" | "item" | "header";
6
+ export type AccordionRadius = "rounded" | "square";
7
+ export type AccordionItem = {
8
+ value: string;
9
+ title: ReactNode;
10
+ content: ReactNode;
11
+ disabled?: boolean;
12
+ icon?: ReactNode;
13
+ className?: string;
14
+ triggerProps?: ButtonHTMLAttributes<HTMLButtonElement>;
15
+ contentProps?: HTMLAttributes<HTMLDivElement>;
16
+ };
17
+ export type AccordionProps = Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & {
18
+ items: AccordionItem[];
19
+ value?: AccordionValue;
20
+ defaultValue?: AccordionValue;
21
+ onValueChange?: (value: AccordionValue) => void;
22
+ multiple?: boolean;
23
+ hideIndicator?: boolean;
24
+ indicator?: AccordionIndicator;
25
+ border?: AccordionBorder;
26
+ highlight?: AccordionHighlight;
27
+ radius?: AccordionRadius;
28
+ hoverHighlight?: boolean;
29
+ spacing?: number | string;
30
+ disabled?: boolean;
31
+ itemClassName?: string;
32
+ headerClassName?: string;
33
+ headerStyle?: CSSProperties;
34
+ bodyClassName?: string;
35
+ bodyStyle?: CSSProperties;
36
+ triggerClassName?: string;
37
+ contentClassName?: string;
38
+ };
39
+ export declare function Accordion({ items, value, defaultValue, onValueChange, multiple, hideIndicator, indicator, border, highlight, radius, hoverHighlight, spacing, disabled, itemClassName, headerClassName, headerStyle, bodyClassName, bodyStyle, triggerClassName, contentClassName, className, style, ...props }: AccordionProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare namespace Accordion {
41
+ var displayName: string;
42
+ }
@@ -0,0 +1 @@
1
+ export * from './Accordion';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './Accordion';
1
2
  export * from './Badge';
2
3
  export * from './Breadcrumb';
3
4
  export * from './Scrollable';
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("react"),ss=require("react-dom"),ts="_badge_12rpd_1",ns="_secondary_12rpd_25",ls="_primary_12rpd_35",as="_ghost_12rpd_44",os="_outline_12rpd_54",cs="_success_12rpd_61",is="_warning_12rpd_70",rs="_danger_12rpd_79",ds="_coloredText_12rpd_88",_s="_indicator_12rpd_98",us="_label_12rpd_119",hs="_dismiss_12rpd_143",fs="_dismissBtn_12rpd_147",ms="_pill_12rpd_161",H={badge:ts,secondary:ns,primary:ls,ghost:as,outline:os,success:cs,warning:is,danger:rs,coloredText:ds,indicator:_s,label:us,"label-right":"_label-right_12rpd_124","label-left":"_label-left_12rpd_133",dismiss:hs,dismissBtn:fs,pill:ms},xs=()=>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 Ne({variant:s="secondary",icon:o,pill:n=!1,outline:c=!1,coloredText:t=!1,indicator:i=!1,label:l=!1,labelDirection:r="right",dismissable:a=!1,onDismiss:_,children:j,className:x,...h}){const u=[H.badge,H[s],c?H.outline:null,t?H.coloredText:null,i?H.indicator:null,n?H.pill:null,l&&!i?H.label:null,l&&!i?H[`label-${r}`]:null,a&&!i?H.dismiss:null,x].filter(Boolean).join(" ");return e.jsxs("span",{...h,className:u,children:[!i&&o?o:null,i?null:j,a&&!i&&e.jsx("button",{type:"button",className:H.dismissBtn,"aria-label":"Remove",onClick:_,children:e.jsx(xs,{})})]})}Ne.displayName="Badge";const js="_breadcrumb_1y22n_1",bs="_list_1y22n_7",gs="_item_1y22n_17",vs="_separator_1y22n_23",ks="_link_1y22n_33",Ns="_current_1y22n_34",ys="_button_1y22n_68",ws="_disabled_1y22n_79",ee={breadcrumb:js,list:bs,item:gs,separator:vs,link:ks,current:Ns,button:ys,disabled:ws},ps=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",width:"12",height:"12",children:e.jsx("path",{d:"m9 18 6-6-6-6"})});function ue({items:s,separator:o=e.jsx(ps,{}),label:n="Breadcrumb",className:c,...t}){const i=[ee.breadcrumb,c].filter(Boolean).join(" ");return e.jsx("nav",{...t,className:i,"aria-label":n,children:e.jsx("ol",{className:ee.list,children:s.map((l,r)=>{var x,h;const a=r===s.length-1,_=l.current??a,j=l.disabled||_;return e.jsxs("li",{className:ee.item,children:[r>0&&e.jsx("span",{className:ee.separator,"aria-hidden":"true",children:o}),l.href&&!j?e.jsx("a",{...l.linkProps,className:[ee.link,(x=l.linkProps)==null?void 0:x.className].filter(Boolean).join(" "),href:l.href,children:l.label}):l.onClick&&!j?e.jsx("button",{...l.buttonProps,type:"button",className:[ee.link,ee.button,(h=l.buttonProps)==null?void 0:h.className].filter(Boolean).join(" "),onClick:l.onClick,children:l.label}):e.jsx("span",{className:[ee.current,l.disabled?ee.disabled:null].filter(Boolean).join(" "),"aria-current":_?"page":void 0,children:l.label})]},r)})})})}ue.displayName="Breadcrumb";const Bs=ue;function ye({direction:s="vertical",track:o=!1,arrows:n=!1,autoHide:c=!1,expand:t=!1,scrollbarSize:i,height:l,children:r,className:a,style:_,...j}){const x=["sb",o?"sb-track":null,n?"sb-arrows":null,c?"sb-auto-hide":null,t?"sb-expand":null,a].filter(Boolean).join(" "),h=s==="vertical"?{overflowY:"auto",overflowX:"hidden"}:s==="horizontal"?{overflowX:"auto",overflowY:"hidden"}:{overflow:"auto"},u=i!==void 0?{"--sb-w":`${i}px`}:void 0;return e.jsx("div",{...j,className:x,style:{height:l,...h,...u,..._},children:r})}ye.displayName="Scrollable";const Cs="_btn_1nul4_1",$s="_icon_1nul4_33",Is="_primary_1nul4_42",Ts="_secondary_1nul4_50",Ls="_ghost_1nul4_60",Ms="_danger_1nul4_70",Ss="_success_1nul4_78",Rs="_warning_1nul4_86",Ds="_rounded_1nul4_95",qs="_outline_1nul4_99",As="_coloredText_1nul4_103",Os="_sm_1nul4_194",Es="_md_1nul4_202",Fs="_lg_1nul4_204",ae={btn:Cs,icon:$s,primary:Is,secondary:Ts,ghost:Ls,danger:Ms,success:Ss,warning:Rs,rounded:Ds,outline:qs,coloredText:As,sm:Os,md:Es,lg:Fs},we=g.forwardRef(({type:s="button",variant:o="secondary",size:n="md",icon:c,outline:t=!1,rounded:i=!1,coloredText:l=!1,children:r,className:a,disabled:_,...j},x)=>{const h=[ae.btn,ae[o],ae[n],t?ae.outline:null,i?ae.rounded:null,l?ae.coloredText:null,a].filter(Boolean).join(" ");return e.jsxs("button",{ref:x,type:s,disabled:_,className:h,...j,children:[c?e.jsx("span",{className:ae.icon,children:c}):null,r]})});we.displayName="Button";const Ws="_card_wlcwa_1",Vs="_bordered_wlcwa_8",zs="_tilt_wlcwa_12",Xs="_closeBtn_wlcwa_26",Gs="_padSm_wlcwa_47",Us="_padMd_wlcwa_48",Hs="_padLg_wlcwa_49",Ks="_padNone_wlcwa_50",Ys="_header_wlcwa_53",Zs="_headerIcon_wlcwa_60",Js="_title_wlcwa_69",Qs="_subtitle_wlcwa_75",Ps="_stat_wlcwa_82",et="_statValue_wlcwa_89",st="_statUnit_wlcwa_97",tt="_statDelta_wlcwa_103",nt="_deltaPositive_wlcwa_108",lt="_deltaNegative_wlcwa_109",at="_deltaNeutral_wlcwa_110",S={card:Ws,bordered:Vs,tilt:zs,closeBtn:Xs,padSm:Gs,padMd:Us,padLg:Hs,padNone:Ks,header:Ys,headerIcon:Zs,title:Js,subtitle:Qs,stat:Ps,statValue:et,statUnit:st,statDelta:tt,deltaPositive:nt,deltaNegative:lt,deltaNeutral:at},ot={none:S.padNone,sm:S.padSm,md:S.padMd,lg:S.padLg},ct=()=>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 pe({padding:s="md",bordered:o=!1,tilt:n=!1,onClose:c,closeBtnProps:t,children:i,className:l,...r}){const a=[S.card,ot[s],o?S.bordered:null,n?S.tilt:null,l].filter(Boolean).join(" ");return e.jsxs("div",{...r,className:a,children:[c&&e.jsx("button",{type:"button","aria-label":"Close",...t,className:[S.closeBtn,t==null?void 0:t.className].filter(Boolean).join(" "),onClick:c,children:e.jsx(ct,{})}),i]})}pe.displayName="Card";function Be({icon:s,title:o,subtitle:n,className:c,...t}){return e.jsxs("div",{...t,className:[S.header,c].filter(Boolean).join(" "),children:[s&&e.jsx("span",{className:S.headerIcon,children:s}),e.jsxs("div",{children:[e.jsx("div",{className:S.title,children:o}),n&&e.jsx("div",{className:S.subtitle,children:n})]})]})}Be.displayName="CardHeader";function Ce({value:s,unit:o,delta:n,deltaDirection:c="positive",className:t,...i}){const l=[S.statDelta,c==="positive"?S.deltaPositive:c==="negative"?S.deltaNegative:S.deltaNeutral].filter(Boolean).join(" ");return e.jsxs("div",{...i,className:[S.stat,t].filter(Boolean).join(" "),children:[e.jsxs("span",{className:S.statValue,children:[s,o&&e.jsxs("span",{className:S.statUnit,children:[" ",o]})]}),n&&e.jsx("span",{className:l,children:n})]})}Ce.displayName="CardStat";function ie(s,o,n){const[c,t]=g.useState(o),i=s!==void 0,l=i?s:c,r=g.useCallback(a=>{i||t(a),n==null||n(a)},[i,n]);return[l,r,i]}const it="X",rt=/[a-zA-Z0-9]/;function he(s,o={}){const n=o.allowedPattern??rt;return s.split("").filter(c=>n.test(c)).join("")}function $e(s,o,n={}){const c=n.placeholder??it,t=he(s,n);let i=0,l="";for(const r of o){if(i>=t.length)break;if(r===c){l+=t[i],i+=1;continue}l+=r}return l}const dt="_wrapper_25x8h_1",_t="_field_25x8h_7",ut="_label_25x8h_13",ht="_input_25x8h_22",ft="_hasIcon_25x8h_52",mt="_hasIconRight_25x8h_55",xt="_hasClear_25x8h_58",jt="_hasClearAndIconRight_25x8h_61",bt="_iconSlot_25x8h_64",gt="_iconSlotRight_25x8h_78",vt="_iconSlotRightWithClear_25x8h_92",kt="_clearBtn_25x8h_95",W={wrapper:dt,field:_t,label:ut,input:ht,hasIcon:ft,hasIconRight:mt,hasClear:xt,hasClearAndIconRight:jt,iconSlot:bt,iconSlotRight:gt,iconSlotRightWithClear:vt,clearBtn:kt},Nt=()=>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"})}),Ie=g.forwardRef(({label:s,icon:o,iconPosition:n="left",clearable:c=!1,clearButtonProps:t,clearLabel:i,defaultValue:l="",disabled:r,mask:a,maskAllowedPattern:_,maskPlaceholder:j,selectOnFocus:x=!1,textAlign:h,inputProps:u,onChange:w,onValueChange:L,value:C,wrapperProps:N,fieldProps:b,className:v,style:q,...k},G)=>{const Z=g.useRef(null),[J,f]=ie(C,l,p=>{L==null||L({value:p,rawValue:a?he(p,{allowedPattern:_}):p})});g.useImperativeHandle(G,()=>Z.current);const $=g.useCallback(p=>a?$e(p,a,{allowedPattern:_,placeholder:j}):p,[a,_,j]),B=p=>{var le;const ne=$(p.target.value);p.target.value=ne,f(ne),w==null||w(p),(le=u==null?void 0:u.onChange)==null||le.call(u,p)},I=()=>{var p;f(""),(p=Z.current)==null||p.focus()},y=o&&n==="right",M=o&&n==="left",Q=[W.input,M?W.hasIcon:null,y?W.hasIconRight:null,c&&y?W.hasClearAndIconRight:c?W.hasClear:null,v,u==null?void 0:u.className].filter(Boolean).join(" "),P=p=>{var ne,le;x&&p.target.select(),(ne=k.onFocus)==null||ne.call(k,p),(le=u==null?void 0:u.onFocus)==null||le.call(u,p)},R={...q,...u==null?void 0:u.style,...h?{textAlign:h}:null},V=r||(u==null?void 0:u.disabled),A=e.jsx("input",{...k,...u,ref:Z,disabled:V,value:$(J),onChange:B,onFocus:P,className:Q,style:R}),T=[W.wrapper,N==null?void 0:N.className].filter(Boolean).join(" "),F=e.jsxs("span",{...N,className:T,children:[M?e.jsx("span",{className:W.iconSlot,children:o}):null,A,y?e.jsx("span",{className:[W.iconSlotRight,c?W.iconSlotRightWithClear:null].filter(Boolean).join(" "),children:o}):null,c?e.jsx("button",{type:"button","aria-label":"Clear",title:"Clear",disabled:V||J.length===0,onClick:I,className:W.clearBtn,...t,children:(t==null?void 0:t.children)??e.jsx(Nt,{})}):null]});return!s&&!b?F:e.jsxs("div",{...b,className:[W.field,b==null?void 0:b.className].filter(Boolean).join(" "),children:[s?e.jsx("label",{className:W.label,children:s}):null,F]})});Ie.displayName="Input";const yt="_checkbox_7kjwa_2",wt="_checkboxBox_7kjwa_13",pt="_checked_7kjwa_33",Bt="_indeterminate_7kjwa_42",Ct="_disabled_7kjwa_55",$t="_radio_7kjwa_61",It="_radioDot_7kjwa_72",Tt="_radioChecked_7kjwa_85",Lt="_radioDisabled_7kjwa_97",Mt="_radioGroup_7kjwa_102",St="_switchWrap_7kjwa_109",Rt="_switchTrack_7kjwa_120",Dt="_switchOn_7kjwa_143",qt="_switchDisabled_7kjwa_153",E={checkbox:yt,checkboxBox:wt,checked:pt,indeterminate:Bt,disabled:Ct,radio:$t,radioDot:It,radioChecked:Tt,radioDisabled:Lt,radioGroup:Mt,switchWrap:St,switchTrack:Rt,switchOn:Dt,switchDisabled:qt},At=()=>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 Te({label:s,checked:o,defaultChecked:n,indeterminate:c=!1,disabled:t=!1,onChange:i,className:l,...r}){const a=o??n??!1,_=[E.checkbox,a&&!c?E.checked:null,c?E.indeterminate:null,t?E.disabled:null,l].filter(Boolean).join(" ");return e.jsxs("label",{className:_,children:[e.jsx("input",{...r,type:"checkbox",checked:a,disabled:t,style:{display:"none"},onChange:j=>i==null?void 0:i(j.currentTarget.checked)}),e.jsx("span",{className:E.checkboxBox,children:!c&&e.jsx(At,{})}),s]})}Te.displayName="Checkbox";function Le({label:s,checked:o=!1,disabled:n=!1,onChange:c,value:t,className:i,...l}){const r=[E.radio,o?E.radioChecked:null,n?E.radioDisabled:null,i].filter(Boolean).join(" ");return e.jsxs("label",{className:r,children:[e.jsx("input",{...l,type:"radio",checked:o,disabled:n,value:t,style:{display:"none"},onChange:a=>c==null?void 0:c(a.currentTarget.value)}),e.jsx("span",{className:E.radioDot}),s]})}Le.displayName="Radio";function Me({children:s,className:o,...n}){const c=[E.radioGroup,o].filter(Boolean).join(" ");return e.jsx("div",{...n,className:c,role:"radiogroup",children:s})}Me.displayName="RadioGroup";function Se({label:s,checked:o,defaultChecked:n,disabled:c=!1,onChange:t,className:i,...l}){const r=o??n??!1,a=[E.switchWrap,r?E.switchOn:null,c?E.switchDisabled:null,i].filter(Boolean).join(" ");return e.jsxs("label",{className:a,children:[e.jsx("input",{...l,type:"checkbox",checked:r,disabled:c,style:{display:"none"},onChange:_=>t==null?void 0:t(_.currentTarget.checked)}),e.jsx("span",{className:E.switchTrack}),s]})}Se.displayName="Switch";const Ot="_menu_pga52_1",Et="_item_pga52_13",Ft="_active_pga52_41",Wt="_danger_pga52_53",Vt="_disabled_pga52_65",zt="_kbd_pga52_71",Xt="_separator_pga52_79",oe={menu:Ot,item:Et,active:Ft,danger:Wt,disabled:Vt,kbd:zt,separator:Xt};function Re({children:s,className:o,...n}){const c=[oe.menu,o].filter(Boolean).join(" ");return e.jsx("div",{...n,className:c,role:"menu",children:s})}Re.displayName="Menu";function De({icon:s,kbd:o,active:n=!1,danger:c=!1,disabled:t=!1,children:i,className:l,...r}){const a=[oe.item,n?oe.active:null,c?oe.danger:null,t?oe.disabled:null,l].filter(Boolean).join(" ");return e.jsxs("button",{...r,type:"button",className:a,disabled:t,role:"menuitem",children:[s,i,o&&e.jsx("span",{className:oe.kbd,children:o})]})}De.displayName="MenuItem";function qe({className:s,...o}){const n=[oe.separator,s].filter(Boolean).join(" ");return e.jsx("div",{...o,className:n,role:"separator"})}qe.displayName="MenuSeparator";const Gt="_backdrop_pya14_1",Ut="_modal_pya14_23",Ht="_header_pya14_37",Kt="_titleBlock_pya14_45",Yt="_title_pya14_45",Zt="_subtitle_pya14_58",Jt="_closeBtn_pya14_64",Qt="_body_pya14_86",Pt="_footer_pya14_92",se={backdrop:Gt,modal:Ut,header:Ht,titleBlock:Kt,title:Yt,subtitle:Zt,closeBtn:Jt,body:Qt,footer:Pt},en=()=>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"})}),Ae=g.forwardRef(({open:s,title:o,subtitle:n,children:c,footer:t,closeOnBackdrop:i=!0,showCloseButton:l=!0,backdropProps:r,modalProps:a,headerProps:_,bodyProps:j,footerProps:x,closeButtonProps:h,onOpenChange:u,onClose:w},L)=>{const C=g.useRef(null);g.useImperativeHandle(L,()=>C.current),g.useEffect(()=>{if(!s)return;const k=G=>{G.key==="Escape"&&N()};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[s]);const N=()=>{u==null||u(!1),w==null||w()},b=k=>{i&&k.target===k.currentTarget&&N()};if(!s)return null;const v=[se.backdrop,r==null?void 0:r.className].filter(Boolean).join(" "),q=[se.modal,a==null?void 0:a.className].filter(Boolean).join(" ");return e.jsx("div",{...r,className:v,onClick:b,role:"presentation",children:e.jsxs("div",{ref:C,...a,className:q,role:"dialog","aria-modal":"true",children:[(o||l)&&e.jsxs("header",{..._,className:[se.header,_==null?void 0:_.className].filter(Boolean).join(" "),children:[e.jsxs("div",{className:se.titleBlock,children:[o?e.jsx("div",{className:se.title,children:o}):null,n?e.jsx("div",{className:se.subtitle,children:n}):null]}),l&&e.jsx("button",{type:"button","aria-label":"Close",className:se.closeBtn,onClick:N,...h,children:(h==null?void 0:h.children)??e.jsx(en,{})})]}),e.jsx("section",{...j,className:[se.body,j==null?void 0:j.className].filter(Boolean).join(" "),children:c}),t&&e.jsx("footer",{...x,className:[se.footer,x==null?void 0:x.className].filter(Boolean).join(" "),children:t})]})})});Ae.displayName="Modal";const sn="_wrapper_10d4l_1",tn="_pop_10d4l_8",nn="_sideRight_10d4l_22",ln="_sideTop_10d4l_27",an="_arrow_10d4l_34",on="_head_10d4l_60",cn="_title_10d4l_67",rn="_closeBtn_10d4l_74",dn="_body_10d4l_105",te={wrapper:sn,pop:tn,sideRight:nn,sideTop:ln,arrow:an,head:on,title:cn,closeBtn:rn,body:dn},_n=()=>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 Oe({open:s,defaultOpen:o=!1,title:n,children:c,trigger:t,side:i="bottom-start",showCloseButton:l=!0,onOpenChange:r,popProps:a}){const[_,j]=g.useState(o),x=s!==void 0,h=x?s:_,u=g.useRef(null);function w(b){x||j(b),r==null||r(b)}g.useEffect(()=>{function b(v){u.current&&!u.current.contains(v.target)&&w(!1)}return h&&document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[h]);const L=i.startsWith("top"),C=i.endsWith("end"),N=[te.pop,C?te.sideRight:null,L?te.sideTop:null,a==null?void 0:a.className].filter(Boolean).join(" ");return e.jsxs("div",{ref:u,className:te.wrapper,children:[t&&e.jsx("div",{onClick:()=>w(!h),style:{display:"inline-flex"},children:t}),h&&e.jsxs("div",{...a,className:N,children:[e.jsx("span",{className:te.arrow}),(n||l)&&e.jsxs("div",{className:te.head,children:[n&&e.jsx("span",{className:te.title,children:n}),l&&e.jsx("button",{type:"button",className:te.closeBtn,"aria-label":"Close",onClick:()=>w(!1),children:e.jsx(_n,{})})]}),e.jsx("div",{className:te.body,children:c})]})]})}Oe.displayName="Popover";const un="_progress_1sdsr_1",hn="_circular_1sdsr_10",fn="_header_1sdsr_15",mn="_label_1sdsr_23",xn="_value_1sdsr_33",jn="_track_1sdsr_41",bn="_fill_1sdsr_55",gn="_accent_1sdsr_63",vn="_success_1sdsr_64",kn="_warning_1sdsr_65",Nn="_danger_1sdsr_66",yn="_info_1sdsr_67",wn="_neutral_1sdsr_68",pn="_indeterminate_1sdsr_72",Bn="_progressSlide_1sdsr_1",Cn="_circleLabel_1sdsr_84",$n="_circle_1sdsr_84",In="_circleValue_1sdsr_132",Tn="_indeterminateCircle_1sdsr_146",Ln="_progressSpin_1sdsr_1",Mn="_progressSpinReverse_1sdsr_1",O={progress:un,circular:hn,header:fn,label:mn,value:xn,track:jn,"bar-sm":"_bar-sm_1sdsr_51","bar-md":"_bar-md_1sdsr_52","bar-lg":"_bar-lg_1sdsr_53",fill:bn,accent:gn,success:vn,warning:kn,danger:Nn,info:yn,neutral:wn,indeterminate:pn,progressSlide:Bn,circleLabel:Cn,circle:$n,"circle-sm":"_circle-sm_1sdsr_117","circle-md":"_circle-md_1sdsr_122","circle-lg":"_circle-lg_1sdsr_127",circleValue:In,indeterminateCircle:Tn,progressSpin:Ln,progressSpinReverse:Mn};function Sn(s,o,n){return Math.min(Math.max(s,o),n)}function Ee({value:s,max:o=100,variant:n="accent",size:c="md",shape:t="bar",label:i,valueLabel:l,showValue:r,indeterminate:a=!1,className:_,...j}){const x=o>0?o:100,h=a||typeof s!="number",u=typeof s=="number"?Sn(s,0,x):0,w=Math.round(u/x*100),L=r??t==="circle",C=[O.progress,O[n],t==="circle"?O.circular:null,_].filter(Boolean).join(" "),N={role:"progressbar","aria-valuemin":h?void 0:0,"aria-valuemax":h?void 0:x,"aria-valuenow":h?void 0:u,"aria-valuetext":l};if(t==="circle"){const v=[O.circle,O[`circle-${c}`],h?O.indeterminateCircle:null].filter(Boolean).join(" ");return e.jsxs("div",{...j,className:C,children:[i&&e.jsx("span",{className:O.circleLabel,children:i}),e.jsx("div",{className:v,style:{"--progress-percent":`${w}%`},...N,children:L&&e.jsx("span",{className:O.circleValue,children:l??(h?"Loading":`${w}%`)})})]})}const b=[O.track,O[`bar-${c}`],h?O.indeterminate:null].filter(Boolean).join(" ");return e.jsxs("div",{...j,className:C,children:[(i||L)&&e.jsxs("div",{className:O.header,children:[i&&e.jsx("span",{className:O.label,children:i}),L&&e.jsx("span",{className:O.value,children:l??(h?"Loading":`${w}%`)})]}),e.jsx("div",{className:b,...N,children:e.jsx("span",{className:O.fill,style:h?void 0:{width:`${w}%`}})})]})}Ee.displayName="Progress";const Rn="_group_1ltkm_1",Dn="_pb_1ltkm_11",qn="_on_1ltkm_40",An="_accent_1ltkm_45",On="_solo_1ltkm_50",En="_disabled_1ltkm_65",ce={group:Rn,pb:Dn,on:qn,accent:An,solo:On,disabled:En};function Fe({children:s,className:o,...n}){const c=[ce.group,o].filter(Boolean).join(" ");return e.jsx("div",{...n,className:c,role:"group",children:s})}Fe.displayName="PushButtonGroup";function We({on:s=!1,accent:o=!1,solo:n=!1,icon:c,children:t,disabled:i=!1,className:l,...r}){const a=[ce.pb,s?ce.on:null,s&&o?ce.accent:null,n?ce.solo:null,i?ce.disabled:null,l].filter(Boolean).join(" ");return e.jsxs("button",{...r,type:"button",className:a,disabled:i,children:[c,t]})}We.displayName="PushButton";const Fn="_root_qhol4_1",Wn="_field_qhol4_6",Vn="_label_qhol4_12",zn="_labelMeta_qhol4_24",Xn="_trigger_qhol4_33",Gn="_triggerOpen_qhol4_59",Un="_triggerConnectedBottom_qhol4_64",Hn="_triggerConnectedTop_qhol4_69",Kn="_triggerValue_qhol4_74",Yn="_triggerPlaceholder_qhol4_83",Zn="_chevron_qhol4_85",Jn="_chevronOpen_qhol4_94",Qn="_chips_qhol4_97",Pn="_chip_qhol4_97",el="_chipOverflow_qhol4_120",sl="_clearBtn_qhol4_123",tl="_popover_qhol4_143",nl="_popoverBottom_qhol4_154",ll="_popoverTop_qhol4_162",al="_search_qhol4_181",ol="_searchIcon_qhol4_188",cl="_searchInput_qhol4_195",il="_list_qhol4_209",rl="_item_qhol4_217",dl="_itemAlignLeft_qhol4_230",_l="_itemAlignCenter_qhol4_231",ul="_itemAlignRight_qhol4_232",hl="_itemActive_qhol4_235",fl="_itemDisabled_qhol4_243",ml="_itemMeta_qhol4_245",xl="_checkbox_qhol4_254",jl="_checkboxChecked_qhol4_266",bl="_checkIcon_qhol4_278",gl="_emptyState_qhol4_299",vl="_popFooter_qhol4_307",kl="_popFooterBtn_qhol4_317",m={root:Fn,field:Wn,label:Vn,labelMeta:zn,trigger:Xn,triggerOpen:Gn,triggerConnectedBottom:Un,triggerConnectedTop:Hn,triggerValue:Kn,triggerPlaceholder:Yn,chevron:Zn,chevronOpen:Jn,chips:Qn,chip:Pn,chipOverflow:el,clearBtn:sl,popover:tl,popoverBottom:nl,popoverTop:ll,search:al,searchIcon:ol,searchInput:cl,list:il,item:rl,itemAlignLeft:dl,itemAlignCenter:_l,itemAlignRight:ul,itemActive:hl,itemDisabled:fl,itemMeta:ml,checkbox:xl,checkboxChecked:jl,checkIcon:bl,emptyState:gl,popFooter:vl,popFooterBtn:kl},Nl=()=>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"})}),ke=()=>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"})}),yl=()=>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"})]}),de=()=>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"})}),wl=(s,o)=>{const n=o.trim().toLowerCase();return n?s.filter(c=>String(c.label).toLowerCase().includes(n)):s},Ve=g.forwardRef(({label:s,clearable:o=!1,defaultValue:n=null,disabled:c=!1,emptyLabel:t="No options found",filterOptions:i=wl,isLoading:l=!1,loadingLabel:r="Loading...",multiple:a=!1,onSearchChange:_,onValueChange:j,options:x,optionsAlign:h="left",optionsPosition:u="bottom",placeholder:w="Select",searchable:L=!1,searchPlaceholder:C="Search...",showSelectedCount:N=!0,showClearAll:b=!0,showSelectedValues:v=!0,closeOnSelect:q,selectProps:k,value:G,className:Z,...J},f)=>{const[$,B]=g.useState(!1),[I,y]=g.useState(""),M=g.useRef(null),[Q,P]=ie(G,n,d=>{const D=x.filter(U=>Array.isArray(d)?d.includes(U.value):U.value===d);j==null||j(d,D)}),R=g.useMemo(()=>Array.isArray(Q)?Q:Q?[Q]:[],[Q]),V=g.useMemo(()=>x.filter(d=>R.includes(d.value)),[x,R]),A=g.useMemo(()=>i(x,I),[i,x,I]);g.useEffect(()=>{if(!$)return;const d=D=>{M.current&&!M.current.contains(D.target)&&B(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[$]);const T=d=>{y(d),_==null||_(d)},F=d=>{if(!d.disabled){if(a){const D=R.includes(d.value)?R.filter(U=>U!==d.value):[...R,d.value];P(D),q&&B(!1);return}P(d.value),(q??!0)&&B(!1)}},p=()=>{P(a?[]:null),T("")},ne=()=>{if(R.length>0){p();return}P(x.filter(d=>!d.disabled).map(d=>d.value))},le=d=>{var D;(D=k==null?void 0:k.onClick)==null||D.call(k,d),!d.defaultPrevented&&!c&&B(U=>!U)},Ke=d=>{var D;(D=k==null?void 0:k.onKeyDown)==null||D.call(k,d),!d.defaultPrevented&&((d.key==="Enter"||d.key===" ")&&(d.preventDefault(),B(U=>!U)),d.key==="Escape"&&B(!1))},xe=u==="top",Ye=[m.trigger,$?m.triggerOpen:null,$?xe?m.triggerConnectedTop:m.triggerConnectedBottom:null,k==null?void 0:k.className].filter(Boolean).join(" "),Ze=!a||v,Je=a&&v&&V.length>0,re=a,Qe=a&&(R.length>0||b),je=Ze&&V.length>0,be=2,ge=V.length-be,Pe=[m.root,Z].filter(Boolean).join(" "),es={left:m.itemAlignLeft,center:m.itemAlignCenter,right:m.itemAlignRight}[h],ve=e.jsxs("div",{ref:M,...J,className:Pe,children:[e.jsxs("button",{...k,type:"button",className:Ye,disabled:c,"aria-haspopup":"listbox","aria-expanded":$,onClick:le,onKeyDown:Ke,children:[Je?e.jsxs("div",{className:m.chips,children:[V.slice(0,be).map(d=>e.jsx("span",{className:m.chip,children:d.label},d.value)),ge>0&&e.jsxs("span",{className:[m.chip,m.chipOverflow].join(" "),children:["+",ge]})]}):e.jsx("span",{className:[m.triggerValue,je?null:m.triggerPlaceholder].filter(Boolean).join(" "),children:je?V.map(d=>d.label).join(", "):w}),o&&R.length>0&&e.jsx("button",{type:"button","aria-label":"Clear",className:m.clearBtn,disabled:c,onClick:d=>{d.stopPropagation(),p()},children:e.jsx(ke,{})}),e.jsx("span",{className:[m.chevron,$?m.chevronOpen:null].filter(Boolean).join(" "),children:e.jsx(Nl,{})})]}),$&&e.jsxs("div",{className:[m.popover,xe?m.popoverTop:m.popoverBottom].join(" "),role:"listbox","aria-multiselectable":a||void 0,children:[L&&e.jsxs("div",{className:m.search,children:[e.jsx("span",{className:m.searchIcon,children:e.jsx(yl,{})}),e.jsx("input",{autoFocus:!0,value:I,placeholder:C,className:m.searchInput,onChange:d=>T(d.target.value)}),I&&e.jsx("button",{className:m.clearBtn,onClick:()=>T(""),children:e.jsx(ke,{})})]}),e.jsxs("ul",{className:[m.list,"sb"].join(" "),children:[l&&e.jsx("li",{className:m.emptyState,children:r}),!l&&A.length===0&&e.jsx("li",{className:m.emptyState,children:t}),!l&&A.map(d=>{const D=R.includes(d.value),U=[m.item,es,D?m.itemActive:null,d.disabled?m.itemDisabled:null].filter(Boolean).join(" ");return e.jsxs("li",{className:U,role:"option","aria-selected":D,onClick:()=>F(d),children:[!re&&h==="right"&&D&&e.jsx("span",{className:m.checkIcon,children:e.jsx(de,{})}),re?e.jsx("span",{className:[m.checkbox,D?m.checkboxChecked:null].filter(Boolean).join(" "),children:D&&e.jsx(de,{})}):null,e.jsx("span",{children:d.label}),d.meta&&e.jsx("span",{className:m.itemMeta,children:d.meta}),!re&&h!=="right"&&D&&e.jsx("span",{className:m.checkIcon,children:e.jsx(de,{})})]},d.value)})]}),Qe&&(N||b)&&e.jsxs("div",{className:m.popFooter,children:[N&&e.jsxs("span",{children:[R.length," selected"]}),b&&e.jsx("button",{className:m.popFooterBtn,onClick:ne,children:R.length>0?"Clear all":"Check all"})]})]})]});return s?e.jsxs("div",{className:m.field,children:[e.jsxs("label",{className:m.label,children:[s,a&&N&&R.length>0&&e.jsxs("span",{className:m.labelMeta,children:["· ",R.length," selected"]})]}),ve]}):ve});Ve.displayName="Select";const pl="_ring_mxe7t_2",Bl="_spin_mxe7t_1",Cl="_ringMuted_mxe7t_12",$l="_sm_mxe7t_14",Il="_md_mxe7t_15",Tl="_lg_mxe7t_16",Ll="_onAccent_mxe7t_19",Ml="_dots_mxe7t_29",Sl="_dot_mxe7t_29",Rl="_dotPulse_mxe7t_1",Dl="_bar_mxe7t_52",ql="_barFill_mxe7t_62",Al="_barSlide_mxe7t_1",K={ring:pl,spin:Bl,ringMuted:Cl,sm:$l,md:Il,lg:Tl,onAccent:Ll,dots:Ml,dot:Sl,dotPulse:Rl,bar:Dl,barFill:ql,barSlide:Al};function fe({variant:s="ring",size:o="md",muted:n=!1,onAccent:c=!1,className:t,...i}){if(s==="dots"){const r=[K.dots,t].filter(Boolean).join(" ");return e.jsxs("span",{...i,className:r,role:"status","aria-label":"Loading",children:[e.jsx("span",{className:K.dot}),e.jsx("span",{className:K.dot}),e.jsx("span",{className:K.dot})]})}if(s==="bar"){const r=[K.bar,t].filter(Boolean).join(" ");return e.jsx("span",{...i,className:r,role:"status","aria-label":"Loading",children:e.jsx("span",{className:K.barFill})})}const l=[K.ring,K[o],n?K.ringMuted:null,c?K.onAccent:null,t].filter(Boolean).join(" ");return e.jsx("span",{...i,className:l,role:"status","aria-label":"Loading"})}fe.displayName="Spinner";const Ol="_tabs_wiau5_1",El="_list_wiau5_9",Fl="_tabItem_wiau5_21",Wl="_tab_wiau5_1",Vl="_closable_wiau5_54",zl="_disabled_wiau5_58",Xl="_closeBtn_wiau5_77",Gl="_panel_wiau5_106",Ul="_raised_wiau5_112",Hl="_inactiveTransparent_wiau5_136",Kl="_rounded_wiau5_145",Yl="_underline_wiau5_186",Zl="_transparent_wiau5_218",z={tabs:Ol,list:El,tabItem:Fl,tab:Wl,closable:Vl,disabled:zl,closeBtn:Xl,panel:Gl,raised:Ul,inactiveTransparent:Hl,rounded:Kl,underline:Yl,transparent:Zl},Jl=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",width:"11",height:"11",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})});function Ql(s){var o,n;return((o=s.find(c=>!c.disabled))==null?void 0:o.value)??((n=s[0])==null?void 0:n.value)??""}function ze({items:s,value:o,defaultValue:n,onValueChange:c,variant:t="raised",ariaLabel:i="Tabs",disabled:l=!1,closable:r=!1,closeLabel:a="Close tab",onTabClose:_,tabClassName:j,tabItemClassName:x,transparent:h=!1,inactiveTransparent:u=!1,className:w,...L}){var J;const C=g.useId(),N=g.useRef([]),[b,v]=ie(o,n??Ql(s),c),q=s.find(f=>f.value===b),k=[z.tabs,z[t],h?z.transparent:null,u?z.inactiveTransparent:null,w].filter(Boolean).join(" "),G=(f,$)=>{var B,I;if(s.length!==0)for(let y=1;y<=s.length;y+=1){const M=(f+y*$+s.length)%s.length;if(!((B=s[M])!=null&&B.disabled)&&!l){(I=N.current[M])==null||I.focus(),v(s[M].value);return}}},Z=(f,$)=>{var B,I;if(f.key==="ArrowRight"){f.preventDefault(),G($,1);return}if(f.key==="ArrowLeft"){f.preventDefault(),G($,-1);return}if(f.key==="Home"){f.preventDefault();const y=l?-1:s.findIndex(M=>!M.disabled);y>=0&&((B=N.current[y])==null||B.focus(),v(s[y].value));return}if(f.key==="End"){f.preventDefault();const y=l?-1:s.map(M=>!M.disabled).lastIndexOf(!0);y>=0&&((I=N.current[y])==null||I.focus(),v(s[y].value))}};return e.jsxs("div",{...L,className:k,children:[e.jsx("div",{className:z.list,role:"tablist","aria-label":i,children:s.map((f,$)=>{var P,R,V;const B=f.value===b,I=l||f.disabled,y=!I&&(f.closable??r),M=`${C}-${f.value}-tab`,Q=`${C}-${f.value}-panel`;return e.jsxs("span",{role:"presentation",className:[z.tabItem,y?z.closable:null,I?z.disabled:null,x,f.className].filter(Boolean).join(" "),"data-selected":B?"true":void 0,children:[e.jsx("button",{...f.tabProps,ref:A=>{N.current[$]=A},type:"button",role:"tab",id:M,"aria-selected":B,"aria-controls":Q,tabIndex:B?0:-1,disabled:I,className:[z.tab,j,(P=f.tabProps)==null?void 0:P.className].filter(Boolean).join(" "),onClick:A=>{var T,F;(F=(T=f.tabProps)==null?void 0:T.onClick)==null||F.call(T,A),A.defaultPrevented||v(f.value)},onKeyDown:A=>{var T,F;(F=(T=f.tabProps)==null?void 0:T.onKeyDown)==null||F.call(T,A),A.defaultPrevented||Z(A,$)},children:f.label}),y&&e.jsx("button",{...f.closeButtonProps,type:"button",className:[z.closeBtn,(R=f.closeButtonProps)==null?void 0:R.className].filter(Boolean).join(" "),"aria-label":f.closeLabel??a,disabled:I,onClick:A=>{var T,F,p;(F=(T=f.closeButtonProps)==null?void 0:T.onClick)==null||F.call(T,A),!A.defaultPrevented&&((p=f.onClose)==null||p.call(f,f.value),_==null||_(f.value))},children:((V=f.closeButtonProps)==null?void 0:V.children)??e.jsx(Jl,{})})]},f.value)})}),(q==null?void 0:q.content)!==void 0&&e.jsx("div",{...q.panelProps,className:[z.panel,(J=q.panelProps)==null?void 0:J.className].filter(Boolean).join(" "),role:"tabpanel",id:`${C}-${q.value}-panel`,"aria-labelledby":`${C}-${q.value}-tab`,children:q.content})]})}ze.displayName="Tabs";const Pl="_field_fazrx_1",ea="_label_fazrx_7",sa="_wrapper_fazrx_16",ta="_textarea_fazrx_20",na="_mono_fazrx_53",la="_hasClear_fazrx_59",aa="_clearBtn_fazrx_62",oa="_footer_fazrx_84",ca="_helpText_fazrx_92",ia="_charCount_fazrx_94",ra="_charCountOver_fazrx_100",X={field:Pl,label:ea,wrapper:sa,textarea:ta,mono:na,hasClear:la,clearBtn:aa,footer:oa,helpText:ca,charCount:ia,charCountOver:ra},da=()=>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"})}),Xe=g.forwardRef(({label:s,helpText:o,maxLength:n,clearable:c=!1,mono:t=!1,value:i,defaultValue:l="",disabled:r,textareaProps:a,wrapperProps:_,fieldProps:j,clearButtonProps:x,onChange:h,onValueChange:u,className:w,style:L,...C},N)=>{const[b,v]=ie(i,l,y=>u==null?void 0:u(y)),q=y=>{var M;v(y.target.value),h==null||h(y),(M=a==null?void 0:a.onChange)==null||M.call(a,y)},k=()=>{v("")},G=n!==void 0&&b.length>n,Z=[X.textarea,"sb",t?X.mono:null,c?X.hasClear:null,w,a==null?void 0:a.className].filter(Boolean).join(" "),J=[X.wrapper,_==null?void 0:_.className].filter(Boolean).join(" "),f=[X.field,j==null?void 0:j.className].filter(Boolean).join(" "),$={...L,...a==null?void 0:a.style},B=r||(a==null?void 0:a.disabled),I=e.jsxs("div",{..._,className:J,children:[e.jsx("textarea",{...C,...a,ref:N,disabled:B,maxLength:n,value:b,onChange:q,className:Z,style:$}),c&&e.jsx("button",{type:"button",className:X.clearBtn,disabled:B||b.length===0,"aria-label":"Clear",onClick:k,...x,children:(x==null?void 0:x.children)??e.jsx(da,{})})]});return!s&&!o&&n===void 0?I:e.jsxs("div",{...j,className:f,children:[s&&e.jsx("label",{className:X.label,children:s}),I,(o||n!==void 0)&&e.jsxs("div",{className:X.footer,children:[o&&e.jsx("span",{className:X.helpText,children:o}),n!==void 0&&e.jsxs("span",{className:[X.charCount,G?X.charCountOver:null].filter(Boolean).join(" "),children:[b.length," / ",n]})]})]})});Xe.displayName="Textarea";const _a="_toast_4d9rv_1",ua="_slideUp_4d9rv_1",ha="_toastExiting_4d9rv_27",fa="_slideOut_4d9rv_1",ma="_lead_4d9rv_31",xa="_body_4d9rv_41",ja="_title_4d9rv_49",ba="_message_4d9rv_55",ga="_closeBtn_4d9rv_60",va="_ok_4d9rv_83",ka="_error_4d9rv_86",Na="_warning_4d9rv_89",ya="_info_4d9rv_92",wa="_loading_4d9rv_95",pa="_overlay_4d9rv_99",Ba="_stack_4d9rv_108",Y={toast:_a,slideUp:ua,toastExiting:ha,slideOut:fa,lead:ma,body:xa,title:ja,message:ba,closeBtn:ga,ok:va,error:ka,warning:Na,info:ya,loading:wa,overlay:pa,stack:Ba},Ca=()=>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"})}),Ge=({size:s=11})=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:s,height:s,children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),$a=()=>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"})]}),Ia=()=>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"})]}),Ta={ok:e.jsx(Ca,{}),error:e.jsx(Ge,{size:18}),warning:e.jsx($a,{}),info:e.jsx(Ia,{}),loading:e.jsx(fe,{size:"sm",muted:!0})};function me({variant:s="ok",title:o,message:n,overlay:c=!1,onDismiss:t,className:i,...l}){const r=s==="loading",a=[Y.toast,Y[s],i].filter(Boolean).join(" "),_=e.jsxs("div",{...l,className:a,role:"alert",children:[e.jsx("span",{className:Y.lead,children:Ta[s]}),e.jsxs("div",{className:Y.body,children:[e.jsx("div",{className:Y.title,children:o}),n&&e.jsx("div",{className:Y.message,children:n})]}),t&&!r&&e.jsx("button",{type:"button",className:Y.closeBtn,"aria-label":"Dismiss",onClick:t,children:e.jsx(Ge,{})})]});return!c||!r?_:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:Y.overlay,"aria-hidden":"true"}),_]})}me.displayName="Toast";const Ue=g.createContext(null);function La({children:s}){const[o,n]=g.useState([]),c=g.useCallback(l=>{n(r=>r.filter(a=>a.id!==l))},[]),t=g.useCallback(l=>{const r=Math.random().toString(36).slice(2),a=l.duration??(l.variant==="loading"?0:4e3);return n(_=>[..._,{...l,id:r}]),a>0&&setTimeout(()=>c(r),a),r},[c]),i=o.some(l=>l.variant==="loading"&&l.overlay);return e.jsxs(Ue.Provider,{value:{toast:t,dismiss:c},children:[s,typeof document<"u"&&ss.createPortal(e.jsxs(e.Fragment,{children:[i&&e.jsx("div",{className:Y.overlay,"aria-hidden":"true"}),e.jsx("div",{className:Y.stack,children:o.map(l=>e.jsx(me,{variant:l.variant,title:l.title,message:l.message,onDismiss:()=>c(l.id)},l.id))})]}),document.body)]})}function Ma(){const s=g.useContext(Ue);if(!s)throw new Error("useToast must be used within a ToastProvider");return s}const Sa="_wrapper_1pjxy_1",Ra="_tooltip_1pjxy_6",Da="_fadeIn_1pjxy_1",qa="_top_1pjxy_33",Aa="_bottom_1pjxy_52",Oa="_left_1pjxy_72",Ea="_right_1pjxy_94",Fa="_kbd_1pjxy_115",_e={wrapper:Sa,tooltip:Ra,fadeIn:Da,top:qa,bottom:Aa,left:Oa,right:Ea,kbd:Fa},Wa=800;function He({content:s,side:o="top",delay:n=Wa,children:c,wrapperProps:t,disabled:i=!1}){const[l,r]=g.useState(!1),a=g.useRef(null),_=()=>{a.current!==null&&(window.clearTimeout(a.current),a.current=null)};if(g.useEffect(()=>_,[]),i)return e.jsx(e.Fragment,{children:c});const j=()=>{if(_(),n<=0){r(!0);return}a.current=window.setTimeout(()=>{r(!0),a.current=null},n)},x=()=>{_(),r(!1)},h=b=>{var v;(v=t==null?void 0:t.onMouseEnter)==null||v.call(t,b),j()},u=b=>{var v;(v=t==null?void 0:t.onMouseLeave)==null||v.call(t,b),x()},w=b=>{var v;(v=t==null?void 0:t.onFocus)==null||v.call(t,b),j()},L=b=>{var v;(v=t==null?void 0:t.onBlur)==null||v.call(t,b),x()},C=[_e.tooltip,_e[o]].filter(Boolean).join(" "),N=[_e.wrapper,t==null?void 0:t.className].filter(Boolean).join(" ");return e.jsxs("span",{...t,className:N,onMouseEnter:h,onMouseLeave:u,onFocus:w,onBlur:L,children:[c,l&&e.jsx("span",{className:C,role:"tooltip",children:s})]})}He.displayName="Tooltip";exports.Badge=Ne;exports.BreadCrumb=Bs;exports.Breadcrumb=ue;exports.Button=we;exports.Card=pe;exports.CardHeader=Be;exports.CardStat=Ce;exports.Checkbox=Te;exports.Input=Ie;exports.Menu=Re;exports.MenuItem=De;exports.MenuSeparator=qe;exports.Modal=Ae;exports.Popover=Oe;exports.Progress=Ee;exports.PushButton=We;exports.PushButtonGroup=Fe;exports.Radio=Le;exports.RadioGroup=Me;exports.Scrollable=ye;exports.Select=Ve;exports.Spinner=fe;exports.Switch=Se;exports.Tabs=ze;exports.Textarea=Xe;exports.Toast=me;exports.ToastProvider=La;exports.Tooltip=He;exports.applyMask=$e;exports.getRawMaskValue=he;exports.useControlledState=ie;exports.useToast=Ma;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),v=require("react"),ln=require("react-dom");function ie(n,l,t){const[a,s]=v.useState(l),r=n!==void 0,o=r?n:a,i=v.useCallback(c=>{r||s(c),t==null||t(c)},[r,t]);return[o,i,r]}const on="_accordion_5r0y2_1",an="_item_5r0y2_11",cn="_boxed_5r0y2_23",rn="_square_5r0y2_29",dn="_disabled_5r0y2_33",_n="_noHoverHighlight_5r0y2_38",un="_open_5r0y2_43",hn="_none_5r0y2_54",fn="_divider_5r0y2_73",xn="_highlightItem_5r0y2_113",mn="_highlightHeader_5r0y2_130",jn="_trigger_5r0y2_134",gn="_icon_5r0y2_171",bn="_title_5r0y2_186",vn="_indicator_5r0y2_192",kn="_chevron_5r0y2_205",yn="_plusMinus_5r0y2_210",Nn="_contentWrap_5r0y2_242",pn="_content_5r0y2_242",O={accordion:on,item:an,boxed:cn,square:rn,disabled:dn,noHoverHighlight:_n,open:un,none:hn,divider:fn,highlightItem:xn,highlightHeader:mn,trigger:jn,icon:gn,title:bn,indicator:vn,chevron:kn,plusMinus:yn,contentWrap:Nn,content:pn},wn=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",width:"14",height:"14","aria-hidden":"true",children:e.jsx("path",{d:"m6 9 6 6 6-6"})}),Bn=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",width:"13",height:"13","aria-hidden":"true",children:e.jsx("path",{d:"M12 5v14M5 12h14"})}),Cn=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",width:"13",height:"13","aria-hidden":"true",children:e.jsx("path",{d:"M5 12h14"})});function $n(n,l){return n!==void 0?n:l?[]:""}function Ne(n,l,t){return t&&Array.isArray(n)?n.includes(l):n===l}function In(n,l,t){const a=Ne(n,l,t);if(t){const s=Array.isArray(n)?n:n?[n]:[];return a?s.filter(r=>r!==l):[...s,l]}return a?"":l}function Ln(n){return typeof n=="number"?`${n}px`:n}function pe({items:n,value:l,defaultValue:t,onValueChange:a,multiple:s=!0,hideIndicator:r=!1,indicator:o="chevron",border:i="boxed",highlight:c="none",radius:d="rounded",hoverHighlight:j=!0,spacing:x,disabled:h=!1,itemClassName:u,headerClassName:B,headerStyle:T,bodyClassName:I,bodyStyle:w,triggerClassName:b,contentClassName:k,className:R,style:N,...z}){const V=v.useId(),[X,f]=ie(l,$n(t,s),a),L=[O.accordion,O[i],d==="square"?O.square:null,c==="item"?O.highlightItem:null,c==="header"?O.highlightHeader:null,j?null:O.noHoverHighlight,R].filter(Boolean).join(" "),C={...N,...x!==void 0?{"--accordion-gap":Ln(x)}:null};return e.jsx("div",{...z,className:L,style:C,children:n.map(g=>{var S,F,D,$;const y=Ne(X,g.value,s),M=h||g.disabled,G=`${V}-${g.value}-trigger`,U=`${V}-${g.value}-content`;return e.jsxs("section",{className:[O.item,y?O.open:null,M?O.disabled:null,u,g.className].filter(Boolean).join(" "),"data-open":y?"true":void 0,children:[e.jsxs("button",{...g.triggerProps,type:"button",id:G,className:[O.trigger,b,B,(S=g.triggerProps)==null?void 0:S.className].filter(Boolean).join(" "),style:{...T,...(F=g.triggerProps)==null?void 0:F.style},"aria-expanded":y,"aria-controls":U,disabled:M,onClick:W=>{var p,J;(J=(p=g.triggerProps)==null?void 0:p.onClick)==null||J.call(p,W),W.defaultPrevented||f(In(X,g.value,s))},children:[g.icon&&e.jsx("span",{className:O.icon,children:g.icon}),e.jsx("span",{className:O.title,children:g.title}),!r&&e.jsx("span",{className:[O.indicator,o==="plus-minus"?O.plusMinus:O.chevron].filter(Boolean).join(" "),children:o==="plus-minus"?y?e.jsx(Cn,{}):e.jsx(Bn,{}):e.jsx(wn,{})})]}),e.jsx("div",{id:U,className:O.contentWrap,role:"region","aria-labelledby":G,"aria-hidden":!y,children:e.jsx("div",{...g.contentProps,className:[O.content,k,I,(D=g.contentProps)==null?void 0:D.className].filter(Boolean).join(" "),style:{...w,...($=g.contentProps)==null?void 0:$.style},children:g.content})})]},g.value)})})}pe.displayName="Accordion";const Mn="_badge_12rpd_1",Tn="_secondary_12rpd_25",Sn="_primary_12rpd_35",Rn="_ghost_12rpd_44",Dn="_outline_12rpd_54",qn="_success_12rpd_61",An="_warning_12rpd_70",On="_danger_12rpd_79",Wn="_coloredText_12rpd_88",En="_indicator_12rpd_98",Fn="_label_12rpd_119",Hn="_dismiss_12rpd_143",zn="_dismissBtn_12rpd_147",Vn="_pill_12rpd_161",P={badge:Mn,secondary:Tn,primary:Sn,ghost:Rn,outline:Dn,success:qn,warning:An,danger:On,coloredText:Wn,indicator:En,label:Fn,"label-right":"_label-right_12rpd_124","label-left":"_label-left_12rpd_133",dismiss:Hn,dismissBtn:zn,pill:Vn},Xn=()=>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 we({variant:n="secondary",icon:l,pill:t=!1,outline:a=!1,coloredText:s=!1,indicator:r=!1,label:o=!1,labelDirection:i="right",dismissable:c=!1,onDismiss:d,children:j,className:x,...h}){const u=[P.badge,P[n],a?P.outline:null,s?P.coloredText:null,r?P.indicator:null,t?P.pill:null,o&&!r?P.label:null,o&&!r?P[`label-${i}`]:null,c&&!r?P.dismiss:null,x].filter(Boolean).join(" ");return e.jsxs("span",{...h,className:u,children:[!r&&l?l:null,r?null:j,c&&!r&&e.jsx("button",{type:"button",className:P.dismissBtn,"aria-label":"Remove",onClick:d,children:e.jsx(Xn,{})})]})}we.displayName="Badge";const Gn="_breadcrumb_1y22n_1",Un="_list_1y22n_7",Kn="_item_1y22n_17",Yn="_separator_1y22n_23",Zn="_link_1y22n_33",Jn="_current_1y22n_34",Qn="_button_1y22n_68",Pn="_disabled_1y22n_79",se={breadcrumb:Gn,list:Un,item:Kn,separator:Yn,link:Zn,current:Jn,button:Qn,disabled:Pn},es=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",width:"12",height:"12",children:e.jsx("path",{d:"m9 18 6-6-6-6"})});function he({items:n,separator:l=e.jsx(es,{}),label:t="Breadcrumb",className:a,...s}){const r=[se.breadcrumb,a].filter(Boolean).join(" ");return e.jsx("nav",{...s,className:r,"aria-label":t,children:e.jsx("ol",{className:se.list,children:n.map((o,i)=>{var x,h;const c=i===n.length-1,d=o.current??c,j=o.disabled||d;return e.jsxs("li",{className:se.item,children:[i>0&&e.jsx("span",{className:se.separator,"aria-hidden":"true",children:l}),o.href&&!j?e.jsx("a",{...o.linkProps,className:[se.link,(x=o.linkProps)==null?void 0:x.className].filter(Boolean).join(" "),href:o.href,children:o.label}):o.onClick&&!j?e.jsx("button",{...o.buttonProps,type:"button",className:[se.link,se.button,(h=o.buttonProps)==null?void 0:h.className].filter(Boolean).join(" "),onClick:o.onClick,children:o.label}):e.jsx("span",{className:[se.current,o.disabled?se.disabled:null].filter(Boolean).join(" "),"aria-current":d?"page":void 0,children:o.label})]},i)})})})}he.displayName="Breadcrumb";const ns=he;function Be({direction:n="vertical",track:l=!1,arrows:t=!1,autoHide:a=!1,expand:s=!1,scrollbarSize:r,height:o,children:i,className:c,style:d,...j}){const x=["sb",l?"sb-track":null,t?"sb-arrows":null,a?"sb-auto-hide":null,s?"sb-expand":null,c].filter(Boolean).join(" "),h=n==="vertical"?{overflowY:"auto",overflowX:"hidden"}:n==="horizontal"?{overflowX:"auto",overflowY:"hidden"}:{overflow:"auto"},u=r!==void 0?{"--sb-w":`${r}px`}:void 0;return e.jsx("div",{...j,className:x,style:{height:o,...h,...u,...d},children:i})}Be.displayName="Scrollable";const ss="_btn_1nul4_1",ts="_icon_1nul4_33",ls="_primary_1nul4_42",os="_secondary_1nul4_50",as="_ghost_1nul4_60",cs="_danger_1nul4_70",rs="_success_1nul4_78",is="_warning_1nul4_86",ds="_rounded_1nul4_95",_s="_outline_1nul4_99",us="_coloredText_1nul4_103",hs="_sm_1nul4_194",fs="_md_1nul4_202",xs="_lg_1nul4_204",ae={btn:ss,icon:ts,primary:ls,secondary:os,ghost:as,danger:cs,success:rs,warning:is,rounded:ds,outline:_s,coloredText:us,sm:hs,md:fs,lg:xs},Ce=v.forwardRef(({type:n="button",variant:l="secondary",size:t="md",icon:a,outline:s=!1,rounded:r=!1,coloredText:o=!1,children:i,className:c,disabled:d,...j},x)=>{const h=[ae.btn,ae[l],ae[t],s?ae.outline:null,r?ae.rounded:null,o?ae.coloredText:null,c].filter(Boolean).join(" ");return e.jsxs("button",{ref:x,type:n,disabled:d,className:h,...j,children:[a?e.jsx("span",{className:ae.icon,children:a}):null,i]})});Ce.displayName="Button";const ms="_card_wlcwa_1",js="_bordered_wlcwa_8",gs="_tilt_wlcwa_12",bs="_closeBtn_wlcwa_26",vs="_padSm_wlcwa_47",ks="_padMd_wlcwa_48",ys="_padLg_wlcwa_49",Ns="_padNone_wlcwa_50",ps="_header_wlcwa_53",ws="_headerIcon_wlcwa_60",Bs="_title_wlcwa_69",Cs="_subtitle_wlcwa_75",$s="_stat_wlcwa_82",Is="_statValue_wlcwa_89",Ls="_statUnit_wlcwa_97",Ms="_statDelta_wlcwa_103",Ts="_deltaPositive_wlcwa_108",Ss="_deltaNegative_wlcwa_109",Rs="_deltaNeutral_wlcwa_110",q={card:ms,bordered:js,tilt:gs,closeBtn:bs,padSm:vs,padMd:ks,padLg:ys,padNone:Ns,header:ps,headerIcon:ws,title:Bs,subtitle:Cs,stat:$s,statValue:Is,statUnit:Ls,statDelta:Ms,deltaPositive:Ts,deltaNegative:Ss,deltaNeutral:Rs},Ds={none:q.padNone,sm:q.padSm,md:q.padMd,lg:q.padLg},qs=()=>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 $e({padding:n="md",bordered:l=!1,tilt:t=!1,onClose:a,closeBtnProps:s,children:r,className:o,...i}){const c=[q.card,Ds[n],l?q.bordered:null,t?q.tilt:null,o].filter(Boolean).join(" ");return e.jsxs("div",{...i,className:c,children:[a&&e.jsx("button",{type:"button","aria-label":"Close",...s,className:[q.closeBtn,s==null?void 0:s.className].filter(Boolean).join(" "),onClick:a,children:e.jsx(qs,{})}),r]})}$e.displayName="Card";function Ie({icon:n,title:l,subtitle:t,className:a,...s}){return e.jsxs("div",{...s,className:[q.header,a].filter(Boolean).join(" "),children:[n&&e.jsx("span",{className:q.headerIcon,children:n}),e.jsxs("div",{children:[e.jsx("div",{className:q.title,children:l}),t&&e.jsx("div",{className:q.subtitle,children:t})]})]})}Ie.displayName="CardHeader";function Le({value:n,unit:l,delta:t,deltaDirection:a="positive",className:s,...r}){const o=[q.statDelta,a==="positive"?q.deltaPositive:a==="negative"?q.deltaNegative:q.deltaNeutral].filter(Boolean).join(" ");return e.jsxs("div",{...r,className:[q.stat,s].filter(Boolean).join(" "),children:[e.jsxs("span",{className:q.statValue,children:[n,l&&e.jsxs("span",{className:q.statUnit,children:[" ",l]})]}),t&&e.jsx("span",{className:o,children:t})]})}Le.displayName="CardStat";const As="X",Os=/[a-zA-Z0-9]/;function fe(n,l={}){const t=l.allowedPattern??Os;return n.split("").filter(a=>t.test(a)).join("")}function Me(n,l,t={}){const a=t.placeholder??As,s=fe(n,t);let r=0,o="";for(const i of l){if(r>=s.length)break;if(i===a){o+=s[r],r+=1;continue}o+=i}return o}const Ws="_wrapper_25x8h_1",Es="_field_25x8h_7",Fs="_label_25x8h_13",Hs="_input_25x8h_22",zs="_hasIcon_25x8h_52",Vs="_hasIconRight_25x8h_55",Xs="_hasClear_25x8h_58",Gs="_hasClearAndIconRight_25x8h_61",Us="_iconSlot_25x8h_64",Ks="_iconSlotRight_25x8h_78",Ys="_iconSlotRightWithClear_25x8h_92",Zs="_clearBtn_25x8h_95",K={wrapper:Ws,field:Es,label:Fs,input:Hs,hasIcon:zs,hasIconRight:Vs,hasClear:Xs,hasClearAndIconRight:Gs,iconSlot:Us,iconSlotRight:Ks,iconSlotRightWithClear:Ys,clearBtn:Zs},Js=()=>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=v.forwardRef(({label:n,icon:l,iconPosition:t="left",clearable:a=!1,clearButtonProps:s,clearLabel:r,defaultValue:o="",disabled:i,mask:c,maskAllowedPattern:d,maskPlaceholder:j,selectOnFocus:x=!1,textAlign:h,inputProps:u,onChange:B,onValueChange:T,value:I,wrapperProps:w,fieldProps:b,className:k,style:R,...N},z)=>{const V=v.useRef(null),[X,f]=ie(I,o,p=>{T==null||T({value:p,rawValue:c?fe(p,{allowedPattern:d}):p})});v.useImperativeHandle(z,()=>V.current);const L=v.useCallback(p=>c?Me(p,c,{allowedPattern:d,placeholder:j}):p,[c,d,j]),C=p=>{var oe;const J=L(p.target.value);p.target.value=J,f(J),B==null||B(p),(oe=u==null?void 0:u.onChange)==null||oe.call(u,p)},g=()=>{var p;f(""),(p=V.current)==null||p.focus()},y=l&&t==="right",M=l&&t==="left",G=[K.input,M?K.hasIcon:null,y?K.hasIconRight:null,a&&y?K.hasClearAndIconRight:a?K.hasClear:null,k,u==null?void 0:u.className].filter(Boolean).join(" "),U=p=>{var J,oe;x&&p.target.select(),(J=N.onFocus)==null||J.call(N,p),(oe=u==null?void 0:u.onFocus)==null||oe.call(u,p)},S={...R,...u==null?void 0:u.style,...h?{textAlign:h}:null},F=i||(u==null?void 0:u.disabled),D=e.jsx("input",{...N,...u,ref:V,disabled:F,value:L(X),onChange:C,onFocus:U,className:G,style:S}),$=[K.wrapper,w==null?void 0:w.className].filter(Boolean).join(" "),W=e.jsxs("span",{...w,className:$,children:[M?e.jsx("span",{className:K.iconSlot,children:l}):null,D,y?e.jsx("span",{className:[K.iconSlotRight,a?K.iconSlotRightWithClear:null].filter(Boolean).join(" "),children:l}):null,a?e.jsx("button",{type:"button","aria-label":"Clear",title:"Clear",disabled:F||X.length===0,onClick:g,className:K.clearBtn,...s,children:(s==null?void 0:s.children)??e.jsx(Js,{})}):null]});return!n&&!b?W:e.jsxs("div",{...b,className:[K.field,b==null?void 0:b.className].filter(Boolean).join(" "),children:[n?e.jsx("label",{className:K.label,children:n}):null,W]})});Te.displayName="Input";const Qs="_checkbox_7kjwa_2",Ps="_checkboxBox_7kjwa_13",et="_checked_7kjwa_33",nt="_indeterminate_7kjwa_42",st="_disabled_7kjwa_55",tt="_radio_7kjwa_61",lt="_radioDot_7kjwa_72",ot="_radioChecked_7kjwa_85",at="_radioDisabled_7kjwa_97",ct="_radioGroup_7kjwa_102",rt="_switchWrap_7kjwa_109",it="_switchTrack_7kjwa_120",dt="_switchOn_7kjwa_143",_t="_switchDisabled_7kjwa_153",H={checkbox:Qs,checkboxBox:Ps,checked:et,indeterminate:nt,disabled:st,radio:tt,radioDot:lt,radioChecked:ot,radioDisabled:at,radioGroup:ct,switchWrap:rt,switchTrack:it,switchOn:dt,switchDisabled:_t},ut=()=>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 Se({label:n,checked:l,defaultChecked:t,indeterminate:a=!1,disabled:s=!1,onChange:r,className:o,...i}){const c=l??t??!1,d=[H.checkbox,c&&!a?H.checked:null,a?H.indeterminate:null,s?H.disabled:null,o].filter(Boolean).join(" ");return e.jsxs("label",{className:d,children:[e.jsx("input",{...i,type:"checkbox",checked:c,disabled:s,style:{display:"none"},onChange:j=>r==null?void 0:r(j.currentTarget.checked)}),e.jsx("span",{className:H.checkboxBox,children:!a&&e.jsx(ut,{})}),n]})}Se.displayName="Checkbox";function Re({label:n,checked:l=!1,disabled:t=!1,onChange:a,value:s,className:r,...o}){const i=[H.radio,l?H.radioChecked:null,t?H.radioDisabled:null,r].filter(Boolean).join(" ");return e.jsxs("label",{className:i,children:[e.jsx("input",{...o,type:"radio",checked:l,disabled:t,value:s,style:{display:"none"},onChange:c=>a==null?void 0:a(c.currentTarget.value)}),e.jsx("span",{className:H.radioDot}),n]})}Re.displayName="Radio";function De({children:n,className:l,...t}){const a=[H.radioGroup,l].filter(Boolean).join(" ");return e.jsx("div",{...t,className:a,role:"radiogroup",children:n})}De.displayName="RadioGroup";function qe({label:n,checked:l,defaultChecked:t,disabled:a=!1,onChange:s,className:r,...o}){const i=l??t??!1,c=[H.switchWrap,i?H.switchOn:null,a?H.switchDisabled:null,r].filter(Boolean).join(" ");return e.jsxs("label",{className:c,children:[e.jsx("input",{...o,type:"checkbox",checked:i,disabled:a,style:{display:"none"},onChange:d=>s==null?void 0:s(d.currentTarget.checked)}),e.jsx("span",{className:H.switchTrack}),n]})}qe.displayName="Switch";const ht="_menu_pga52_1",ft="_item_pga52_13",xt="_active_pga52_41",mt="_danger_pga52_53",jt="_disabled_pga52_65",gt="_kbd_pga52_71",bt="_separator_pga52_79",ce={menu:ht,item:ft,active:xt,danger:mt,disabled:jt,kbd:gt,separator:bt};function Ae({children:n,className:l,...t}){const a=[ce.menu,l].filter(Boolean).join(" ");return e.jsx("div",{...t,className:a,role:"menu",children:n})}Ae.displayName="Menu";function Oe({icon:n,kbd:l,active:t=!1,danger:a=!1,disabled:s=!1,children:r,className:o,...i}){const c=[ce.item,t?ce.active:null,a?ce.danger:null,s?ce.disabled:null,o].filter(Boolean).join(" ");return e.jsxs("button",{...i,type:"button",className:c,disabled:s,role:"menuitem",children:[n,r,l&&e.jsx("span",{className:ce.kbd,children:l})]})}Oe.displayName="MenuItem";function We({className:n,...l}){const t=[ce.separator,n].filter(Boolean).join(" ");return e.jsx("div",{...l,className:t,role:"separator"})}We.displayName="MenuSeparator";const vt="_backdrop_pya14_1",kt="_modal_pya14_23",yt="_header_pya14_37",Nt="_titleBlock_pya14_45",pt="_title_pya14_45",wt="_subtitle_pya14_58",Bt="_closeBtn_pya14_64",Ct="_body_pya14_86",$t="_footer_pya14_92",te={backdrop:vt,modal:kt,header:yt,titleBlock:Nt,title:pt,subtitle:wt,closeBtn:Bt,body:Ct,footer:$t},It=()=>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"})}),Ee=v.forwardRef(({open:n,title:l,subtitle:t,children:a,footer:s,closeOnBackdrop:r=!0,showCloseButton:o=!0,backdropProps:i,modalProps:c,headerProps:d,bodyProps:j,footerProps:x,closeButtonProps:h,onOpenChange:u,onClose:B},T)=>{const I=v.useRef(null);v.useImperativeHandle(T,()=>I.current),v.useEffect(()=>{if(!n)return;const N=z=>{z.key==="Escape"&&w()};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[n]);const w=()=>{u==null||u(!1),B==null||B()},b=N=>{r&&N.target===N.currentTarget&&w()};if(!n)return null;const k=[te.backdrop,i==null?void 0:i.className].filter(Boolean).join(" "),R=[te.modal,c==null?void 0:c.className].filter(Boolean).join(" ");return e.jsx("div",{...i,className:k,onClick:b,role:"presentation",children:e.jsxs("div",{ref:I,...c,className:R,role:"dialog","aria-modal":"true",children:[(l||o)&&e.jsxs("header",{...d,className:[te.header,d==null?void 0:d.className].filter(Boolean).join(" "),children:[e.jsxs("div",{className:te.titleBlock,children:[l?e.jsx("div",{className:te.title,children:l}):null,t?e.jsx("div",{className:te.subtitle,children:t}):null]}),o&&e.jsx("button",{type:"button","aria-label":"Close",className:te.closeBtn,onClick:w,...h,children:(h==null?void 0:h.children)??e.jsx(It,{})})]}),e.jsx("section",{...j,className:[te.body,j==null?void 0:j.className].filter(Boolean).join(" "),children:a}),s&&e.jsx("footer",{...x,className:[te.footer,x==null?void 0:x.className].filter(Boolean).join(" "),children:s})]})})});Ee.displayName="Modal";const Lt="_wrapper_10d4l_1",Mt="_pop_10d4l_8",Tt="_sideRight_10d4l_22",St="_sideTop_10d4l_27",Rt="_arrow_10d4l_34",Dt="_head_10d4l_60",qt="_title_10d4l_67",At="_closeBtn_10d4l_74",Ot="_body_10d4l_105",le={wrapper:Lt,pop:Mt,sideRight:Tt,sideTop:St,arrow:Rt,head:Dt,title:qt,closeBtn:At,body:Ot},Wt=()=>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 Fe({open:n,defaultOpen:l=!1,title:t,children:a,trigger:s,side:r="bottom-start",showCloseButton:o=!0,onOpenChange:i,popProps:c}){const[d,j]=v.useState(l),x=n!==void 0,h=x?n:d,u=v.useRef(null);function B(b){x||j(b),i==null||i(b)}v.useEffect(()=>{function b(k){u.current&&!u.current.contains(k.target)&&B(!1)}return h&&document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[h]);const T=r.startsWith("top"),I=r.endsWith("end"),w=[le.pop,I?le.sideRight:null,T?le.sideTop:null,c==null?void 0:c.className].filter(Boolean).join(" ");return e.jsxs("div",{ref:u,className:le.wrapper,children:[s&&e.jsx("div",{onClick:()=>B(!h),style:{display:"inline-flex"},children:s}),h&&e.jsxs("div",{...c,className:w,children:[e.jsx("span",{className:le.arrow}),(t||o)&&e.jsxs("div",{className:le.head,children:[t&&e.jsx("span",{className:le.title,children:t}),o&&e.jsx("button",{type:"button",className:le.closeBtn,"aria-label":"Close",onClick:()=>B(!1),children:e.jsx(Wt,{})})]}),e.jsx("div",{className:le.body,children:a})]})]})}Fe.displayName="Popover";const Et="_progress_1sdsr_1",Ft="_circular_1sdsr_10",Ht="_header_1sdsr_15",zt="_label_1sdsr_23",Vt="_value_1sdsr_33",Xt="_track_1sdsr_41",Gt="_fill_1sdsr_55",Ut="_accent_1sdsr_63",Kt="_success_1sdsr_64",Yt="_warning_1sdsr_65",Zt="_danger_1sdsr_66",Jt="_info_1sdsr_67",Qt="_neutral_1sdsr_68",Pt="_indeterminate_1sdsr_72",el="_progressSlide_1sdsr_1",nl="_circleLabel_1sdsr_84",sl="_circle_1sdsr_84",tl="_circleValue_1sdsr_132",ll="_indeterminateCircle_1sdsr_146",ol="_progressSpin_1sdsr_1",al="_progressSpinReverse_1sdsr_1",E={progress:Et,circular:Ft,header:Ht,label:zt,value:Vt,track:Xt,"bar-sm":"_bar-sm_1sdsr_51","bar-md":"_bar-md_1sdsr_52","bar-lg":"_bar-lg_1sdsr_53",fill:Gt,accent:Ut,success:Kt,warning:Yt,danger:Zt,info:Jt,neutral:Qt,indeterminate:Pt,progressSlide:el,circleLabel:nl,circle:sl,"circle-sm":"_circle-sm_1sdsr_117","circle-md":"_circle-md_1sdsr_122","circle-lg":"_circle-lg_1sdsr_127",circleValue:tl,indeterminateCircle:ll,progressSpin:ol,progressSpinReverse:al};function cl(n,l,t){return Math.min(Math.max(n,l),t)}function He({value:n,max:l=100,variant:t="accent",size:a="md",shape:s="bar",label:r,valueLabel:o,showValue:i,indeterminate:c=!1,className:d,...j}){const x=l>0?l:100,h=c||typeof n!="number",u=typeof n=="number"?cl(n,0,x):0,B=Math.round(u/x*100),T=i??s==="circle",I=[E.progress,E[t],s==="circle"?E.circular:null,d].filter(Boolean).join(" "),w={role:"progressbar","aria-valuemin":h?void 0:0,"aria-valuemax":h?void 0:x,"aria-valuenow":h?void 0:u,"aria-valuetext":o};if(s==="circle"){const k=[E.circle,E[`circle-${a}`],h?E.indeterminateCircle:null].filter(Boolean).join(" ");return e.jsxs("div",{...j,className:I,children:[r&&e.jsx("span",{className:E.circleLabel,children:r}),e.jsx("div",{className:k,style:{"--progress-percent":`${B}%`},...w,children:T&&e.jsx("span",{className:E.circleValue,children:o??(h?"Loading":`${B}%`)})})]})}const b=[E.track,E[`bar-${a}`],h?E.indeterminate:null].filter(Boolean).join(" ");return e.jsxs("div",{...j,className:I,children:[(r||T)&&e.jsxs("div",{className:E.header,children:[r&&e.jsx("span",{className:E.label,children:r}),T&&e.jsx("span",{className:E.value,children:o??(h?"Loading":`${B}%`)})]}),e.jsx("div",{className:b,...w,children:e.jsx("span",{className:E.fill,style:h?void 0:{width:`${B}%`}})})]})}He.displayName="Progress";const rl="_group_1ltkm_1",il="_pb_1ltkm_11",dl="_on_1ltkm_40",_l="_accent_1ltkm_45",ul="_solo_1ltkm_50",hl="_disabled_1ltkm_65",re={group:rl,pb:il,on:dl,accent:_l,solo:ul,disabled:hl};function ze({children:n,className:l,...t}){const a=[re.group,l].filter(Boolean).join(" ");return e.jsx("div",{...t,className:a,role:"group",children:n})}ze.displayName="PushButtonGroup";function Ve({on:n=!1,accent:l=!1,solo:t=!1,icon:a,children:s,disabled:r=!1,className:o,...i}){const c=[re.pb,n?re.on:null,n&&l?re.accent:null,t?re.solo:null,r?re.disabled:null,o].filter(Boolean).join(" ");return e.jsxs("button",{...i,type:"button",className:c,disabled:r,children:[a,s]})}Ve.displayName="PushButton";const fl="_root_qhol4_1",xl="_field_qhol4_6",ml="_label_qhol4_12",jl="_labelMeta_qhol4_24",gl="_trigger_qhol4_33",bl="_triggerOpen_qhol4_59",vl="_triggerConnectedBottom_qhol4_64",kl="_triggerConnectedTop_qhol4_69",yl="_triggerValue_qhol4_74",Nl="_triggerPlaceholder_qhol4_83",pl="_chevron_qhol4_85",wl="_chevronOpen_qhol4_94",Bl="_chips_qhol4_97",Cl="_chip_qhol4_97",$l="_chipOverflow_qhol4_120",Il="_clearBtn_qhol4_123",Ll="_popover_qhol4_143",Ml="_popoverBottom_qhol4_154",Tl="_popoverTop_qhol4_162",Sl="_search_qhol4_181",Rl="_searchIcon_qhol4_188",Dl="_searchInput_qhol4_195",ql="_list_qhol4_209",Al="_item_qhol4_217",Ol="_itemAlignLeft_qhol4_230",Wl="_itemAlignCenter_qhol4_231",El="_itemAlignRight_qhol4_232",Fl="_itemActive_qhol4_235",Hl="_itemDisabled_qhol4_243",zl="_itemMeta_qhol4_245",Vl="_checkbox_qhol4_254",Xl="_checkboxChecked_qhol4_266",Gl="_checkIcon_qhol4_278",Ul="_emptyState_qhol4_299",Kl="_popFooter_qhol4_307",Yl="_popFooterBtn_qhol4_317",m={root:fl,field:xl,label:ml,labelMeta:jl,trigger:gl,triggerOpen:bl,triggerConnectedBottom:vl,triggerConnectedTop:kl,triggerValue:yl,triggerPlaceholder:Nl,chevron:pl,chevronOpen:wl,chips:Bl,chip:Cl,chipOverflow:$l,clearBtn:Il,popover:Ll,popoverBottom:Ml,popoverTop:Tl,search:Sl,searchIcon:Rl,searchInput:Dl,list:ql,item:Al,itemAlignLeft:Ol,itemAlignCenter:Wl,itemAlignRight:El,itemActive:Fl,itemDisabled:Hl,itemMeta:zl,checkbox:Vl,checkboxChecked:Xl,checkIcon:Gl,emptyState:Ul,popFooter:Kl,popFooterBtn:Yl},Zl=()=>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"})}),ye=()=>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"})}),Jl=()=>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"})]}),_e=()=>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"})}),Ql=(n,l)=>{const t=l.trim().toLowerCase();return t?n.filter(a=>String(a.label).toLowerCase().includes(t)):n},Xe=v.forwardRef(({label:n,clearable:l=!1,defaultValue:t=null,disabled:a=!1,emptyLabel:s="No options found",filterOptions:r=Ql,isLoading:o=!1,loadingLabel:i="Loading...",multiple:c=!1,onSearchChange:d,onValueChange:j,options:x,optionsAlign:h="left",optionsPosition:u="bottom",placeholder:B="Select",searchable:T=!1,searchPlaceholder:I="Search...",showSelectedCount:w=!0,showClearAll:b=!0,showSelectedValues:k=!0,closeOnSelect:R,selectProps:N,value:z,className:V,...X},f)=>{const[L,C]=v.useState(!1),[g,y]=v.useState(""),M=v.useRef(null),[G,U]=ie(z,t,_=>{const A=x.filter(Q=>Array.isArray(_)?_.includes(Q.value):Q.value===_);j==null||j(_,A)}),S=v.useMemo(()=>Array.isArray(G)?G:G?[G]:[],[G]),F=v.useMemo(()=>x.filter(_=>S.includes(_.value)),[x,S]),D=v.useMemo(()=>r(x,g),[r,x,g]);v.useEffect(()=>{if(!L)return;const _=A=>{M.current&&!M.current.contains(A.target)&&C(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[L]);const $=_=>{y(_),d==null||d(_)},W=_=>{if(!_.disabled){if(c){const A=S.includes(_.value)?S.filter(Q=>Q!==_.value):[...S,_.value];U(A),R&&C(!1);return}U(_.value),(R??!0)&&C(!1)}},p=()=>{U(c?[]:null),$("")},J=()=>{if(S.length>0){p();return}U(x.filter(_=>!_.disabled).map(_=>_.value))},oe=_=>{var A;(A=N==null?void 0:N.onClick)==null||A.call(N,_),!_.defaultPrevented&&!a&&C(Q=>!Q)},Je=_=>{var A;(A=N==null?void 0:N.onKeyDown)==null||A.call(N,_),!_.defaultPrevented&&((_.key==="Enter"||_.key===" ")&&(_.preventDefault(),C(Q=>!Q)),_.key==="Escape"&&C(!1))},je=u==="top",Qe=[m.trigger,L?m.triggerOpen:null,L?je?m.triggerConnectedTop:m.triggerConnectedBottom:null,N==null?void 0:N.className].filter(Boolean).join(" "),Pe=!c||k,en=c&&k&&F.length>0,de=c,nn=c&&(S.length>0||b),ge=Pe&&F.length>0,be=2,ve=F.length-be,sn=[m.root,V].filter(Boolean).join(" "),tn={left:m.itemAlignLeft,center:m.itemAlignCenter,right:m.itemAlignRight}[h],ke=e.jsxs("div",{ref:M,...X,className:sn,children:[e.jsxs("button",{...N,type:"button",className:Qe,disabled:a,"aria-haspopup":"listbox","aria-expanded":L,onClick:oe,onKeyDown:Je,children:[en?e.jsxs("div",{className:m.chips,children:[F.slice(0,be).map(_=>e.jsx("span",{className:m.chip,children:_.label},_.value)),ve>0&&e.jsxs("span",{className:[m.chip,m.chipOverflow].join(" "),children:["+",ve]})]}):e.jsx("span",{className:[m.triggerValue,ge?null:m.triggerPlaceholder].filter(Boolean).join(" "),children:ge?F.map(_=>_.label).join(", "):B}),l&&S.length>0&&e.jsx("button",{type:"button","aria-label":"Clear",className:m.clearBtn,disabled:a,onClick:_=>{_.stopPropagation(),p()},children:e.jsx(ye,{})}),e.jsx("span",{className:[m.chevron,L?m.chevronOpen:null].filter(Boolean).join(" "),children:e.jsx(Zl,{})})]}),L&&e.jsxs("div",{className:[m.popover,je?m.popoverTop:m.popoverBottom].join(" "),role:"listbox","aria-multiselectable":c||void 0,children:[T&&e.jsxs("div",{className:m.search,children:[e.jsx("span",{className:m.searchIcon,children:e.jsx(Jl,{})}),e.jsx("input",{autoFocus:!0,value:g,placeholder:I,className:m.searchInput,onChange:_=>$(_.target.value)}),g&&e.jsx("button",{className:m.clearBtn,onClick:()=>$(""),children:e.jsx(ye,{})})]}),e.jsxs("ul",{className:[m.list,"sb"].join(" "),children:[o&&e.jsx("li",{className:m.emptyState,children:i}),!o&&D.length===0&&e.jsx("li",{className:m.emptyState,children:s}),!o&&D.map(_=>{const A=S.includes(_.value),Q=[m.item,tn,A?m.itemActive:null,_.disabled?m.itemDisabled:null].filter(Boolean).join(" ");return e.jsxs("li",{className:Q,role:"option","aria-selected":A,onClick:()=>W(_),children:[!de&&h==="right"&&A&&e.jsx("span",{className:m.checkIcon,children:e.jsx(_e,{})}),de?e.jsx("span",{className:[m.checkbox,A?m.checkboxChecked:null].filter(Boolean).join(" "),children:A&&e.jsx(_e,{})}):null,e.jsx("span",{children:_.label}),_.meta&&e.jsx("span",{className:m.itemMeta,children:_.meta}),!de&&h!=="right"&&A&&e.jsx("span",{className:m.checkIcon,children:e.jsx(_e,{})})]},_.value)})]}),nn&&(w||b)&&e.jsxs("div",{className:m.popFooter,children:[w&&e.jsxs("span",{children:[S.length," selected"]}),b&&e.jsx("button",{className:m.popFooterBtn,onClick:J,children:S.length>0?"Clear all":"Check all"})]})]})]});return n?e.jsxs("div",{className:m.field,children:[e.jsxs("label",{className:m.label,children:[n,c&&w&&S.length>0&&e.jsxs("span",{className:m.labelMeta,children:["· ",S.length," selected"]})]}),ke]}):ke});Xe.displayName="Select";const Pl="_ring_mxe7t_2",eo="_spin_mxe7t_1",no="_ringMuted_mxe7t_12",so="_sm_mxe7t_14",to="_md_mxe7t_15",lo="_lg_mxe7t_16",oo="_onAccent_mxe7t_19",ao="_dots_mxe7t_29",co="_dot_mxe7t_29",ro="_dotPulse_mxe7t_1",io="_bar_mxe7t_52",_o="_barFill_mxe7t_62",uo="_barSlide_mxe7t_1",ee={ring:Pl,spin:eo,ringMuted:no,sm:so,md:to,lg:lo,onAccent:oo,dots:ao,dot:co,dotPulse:ro,bar:io,barFill:_o,barSlide:uo};function xe({variant:n="ring",size:l="md",muted:t=!1,onAccent:a=!1,className:s,...r}){if(n==="dots"){const i=[ee.dots,s].filter(Boolean).join(" ");return e.jsxs("span",{...r,className:i,role:"status","aria-label":"Loading",children:[e.jsx("span",{className:ee.dot}),e.jsx("span",{className:ee.dot}),e.jsx("span",{className:ee.dot})]})}if(n==="bar"){const i=[ee.bar,s].filter(Boolean).join(" ");return e.jsx("span",{...r,className:i,role:"status","aria-label":"Loading",children:e.jsx("span",{className:ee.barFill})})}const o=[ee.ring,ee[l],t?ee.ringMuted:null,a?ee.onAccent:null,s].filter(Boolean).join(" ");return e.jsx("span",{...r,className:o,role:"status","aria-label":"Loading"})}xe.displayName="Spinner";const ho="_tabs_wiau5_1",fo="_list_wiau5_9",xo="_tabItem_wiau5_21",mo="_tab_wiau5_1",jo="_closable_wiau5_54",go="_disabled_wiau5_58",bo="_closeBtn_wiau5_77",vo="_panel_wiau5_106",ko="_raised_wiau5_112",yo="_inactiveTransparent_wiau5_136",No="_rounded_wiau5_145",po="_underline_wiau5_186",wo="_transparent_wiau5_218",Y={tabs:ho,list:fo,tabItem:xo,tab:mo,closable:jo,disabled:go,closeBtn:bo,panel:vo,raised:ko,inactiveTransparent:yo,rounded:No,underline:po,transparent:wo},Bo=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",width:"11",height:"11",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})});function Co(n){var l,t;return((l=n.find(a=>!a.disabled))==null?void 0:l.value)??((t=n[0])==null?void 0:t.value)??""}function Ge({items:n,value:l,defaultValue:t,onValueChange:a,variant:s="raised",ariaLabel:r="Tabs",disabled:o=!1,closable:i=!1,closeLabel:c="Close tab",onTabClose:d,tabClassName:j,tabItemClassName:x,transparent:h=!1,inactiveTransparent:u=!1,className:B,...T}){var X;const I=v.useId(),w=v.useRef([]),[b,k]=ie(l,t??Co(n),a),R=n.find(f=>f.value===b),N=[Y.tabs,Y[s],h?Y.transparent:null,u?Y.inactiveTransparent:null,B].filter(Boolean).join(" "),z=(f,L)=>{var C,g;if(n.length!==0)for(let y=1;y<=n.length;y+=1){const M=(f+y*L+n.length)%n.length;if(!((C=n[M])!=null&&C.disabled)&&!o){(g=w.current[M])==null||g.focus(),k(n[M].value);return}}},V=(f,L)=>{var C,g;if(f.key==="ArrowRight"){f.preventDefault(),z(L,1);return}if(f.key==="ArrowLeft"){f.preventDefault(),z(L,-1);return}if(f.key==="Home"){f.preventDefault();const y=o?-1:n.findIndex(M=>!M.disabled);y>=0&&((C=w.current[y])==null||C.focus(),k(n[y].value));return}if(f.key==="End"){f.preventDefault();const y=o?-1:n.map(M=>!M.disabled).lastIndexOf(!0);y>=0&&((g=w.current[y])==null||g.focus(),k(n[y].value))}};return e.jsxs("div",{...T,className:N,children:[e.jsx("div",{className:Y.list,role:"tablist","aria-label":r,children:n.map((f,L)=>{var U,S,F;const C=f.value===b,g=o||f.disabled,y=!g&&(f.closable??i),M=`${I}-${f.value}-tab`,G=`${I}-${f.value}-panel`;return e.jsxs("span",{role:"presentation",className:[Y.tabItem,y?Y.closable:null,g?Y.disabled:null,x,f.className].filter(Boolean).join(" "),"data-selected":C?"true":void 0,children:[e.jsx("button",{...f.tabProps,ref:D=>{w.current[L]=D},type:"button",role:"tab",id:M,"aria-selected":C,"aria-controls":G,tabIndex:C?0:-1,disabled:g,className:[Y.tab,j,(U=f.tabProps)==null?void 0:U.className].filter(Boolean).join(" "),onClick:D=>{var $,W;(W=($=f.tabProps)==null?void 0:$.onClick)==null||W.call($,D),D.defaultPrevented||k(f.value)},onKeyDown:D=>{var $,W;(W=($=f.tabProps)==null?void 0:$.onKeyDown)==null||W.call($,D),D.defaultPrevented||V(D,L)},children:f.label}),y&&e.jsx("button",{...f.closeButtonProps,type:"button",className:[Y.closeBtn,(S=f.closeButtonProps)==null?void 0:S.className].filter(Boolean).join(" "),"aria-label":f.closeLabel??c,disabled:g,onClick:D=>{var $,W,p;(W=($=f.closeButtonProps)==null?void 0:$.onClick)==null||W.call($,D),!D.defaultPrevented&&((p=f.onClose)==null||p.call(f,f.value),d==null||d(f.value))},children:((F=f.closeButtonProps)==null?void 0:F.children)??e.jsx(Bo,{})})]},f.value)})}),(R==null?void 0:R.content)!==void 0&&e.jsx("div",{...R.panelProps,className:[Y.panel,(X=R.panelProps)==null?void 0:X.className].filter(Boolean).join(" "),role:"tabpanel",id:`${I}-${R.value}-panel`,"aria-labelledby":`${I}-${R.value}-tab`,children:R.content})]})}Ge.displayName="Tabs";const $o="_field_fazrx_1",Io="_label_fazrx_7",Lo="_wrapper_fazrx_16",Mo="_textarea_fazrx_20",To="_mono_fazrx_53",So="_hasClear_fazrx_59",Ro="_clearBtn_fazrx_62",Do="_footer_fazrx_84",qo="_helpText_fazrx_92",Ao="_charCount_fazrx_94",Oo="_charCountOver_fazrx_100",Z={field:$o,label:Io,wrapper:Lo,textarea:Mo,mono:To,hasClear:So,clearBtn:Ro,footer:Do,helpText:qo,charCount:Ao,charCountOver:Oo},Wo=()=>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"})}),Ue=v.forwardRef(({label:n,helpText:l,maxLength:t,clearable:a=!1,mono:s=!1,value:r,defaultValue:o="",disabled:i,textareaProps:c,wrapperProps:d,fieldProps:j,clearButtonProps:x,onChange:h,onValueChange:u,className:B,style:T,...I},w)=>{const[b,k]=ie(r,o,y=>u==null?void 0:u(y)),R=y=>{var M;k(y.target.value),h==null||h(y),(M=c==null?void 0:c.onChange)==null||M.call(c,y)},N=()=>{k("")},z=t!==void 0&&b.length>t,V=[Z.textarea,"sb",s?Z.mono:null,a?Z.hasClear:null,B,c==null?void 0:c.className].filter(Boolean).join(" "),X=[Z.wrapper,d==null?void 0:d.className].filter(Boolean).join(" "),f=[Z.field,j==null?void 0:j.className].filter(Boolean).join(" "),L={...T,...c==null?void 0:c.style},C=i||(c==null?void 0:c.disabled),g=e.jsxs("div",{...d,className:X,children:[e.jsx("textarea",{...I,...c,ref:w,disabled:C,maxLength:t,value:b,onChange:R,className:V,style:L}),a&&e.jsx("button",{type:"button",className:Z.clearBtn,disabled:C||b.length===0,"aria-label":"Clear",onClick:N,...x,children:(x==null?void 0:x.children)??e.jsx(Wo,{})})]});return!n&&!l&&t===void 0?g:e.jsxs("div",{...j,className:f,children:[n&&e.jsx("label",{className:Z.label,children:n}),g,(l||t!==void 0)&&e.jsxs("div",{className:Z.footer,children:[l&&e.jsx("span",{className:Z.helpText,children:l}),t!==void 0&&e.jsxs("span",{className:[Z.charCount,z?Z.charCountOver:null].filter(Boolean).join(" "),children:[b.length," / ",t]})]})]})});Ue.displayName="Textarea";const Eo="_toast_4d9rv_1",Fo="_slideUp_4d9rv_1",Ho="_toastExiting_4d9rv_27",zo="_slideOut_4d9rv_1",Vo="_lead_4d9rv_31",Xo="_body_4d9rv_41",Go="_title_4d9rv_49",Uo="_message_4d9rv_55",Ko="_closeBtn_4d9rv_60",Yo="_ok_4d9rv_83",Zo="_error_4d9rv_86",Jo="_warning_4d9rv_89",Qo="_info_4d9rv_92",Po="_loading_4d9rv_95",ea="_overlay_4d9rv_99",na="_stack_4d9rv_108",ne={toast:Eo,slideUp:Fo,toastExiting:Ho,slideOut:zo,lead:Vo,body:Xo,title:Go,message:Uo,closeBtn:Ko,ok:Yo,error:Zo,warning:Jo,info:Qo,loading:Po,overlay:ea,stack:na},sa=()=>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"})}),Ke=({size:n=11})=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:n,height:n,children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),ta=()=>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"})]}),la=()=>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"})]}),oa={ok:e.jsx(sa,{}),error:e.jsx(Ke,{size:18}),warning:e.jsx(ta,{}),info:e.jsx(la,{}),loading:e.jsx(xe,{size:"sm",muted:!0})};function me({variant:n="ok",title:l,message:t,overlay:a=!1,onDismiss:s,className:r,...o}){const i=n==="loading",c=[ne.toast,ne[n],r].filter(Boolean).join(" "),d=e.jsxs("div",{...o,className:c,role:"alert",children:[e.jsx("span",{className:ne.lead,children:oa[n]}),e.jsxs("div",{className:ne.body,children:[e.jsx("div",{className:ne.title,children:l}),t&&e.jsx("div",{className:ne.message,children:t})]}),s&&!i&&e.jsx("button",{type:"button",className:ne.closeBtn,"aria-label":"Dismiss",onClick:s,children:e.jsx(Ke,{})})]});return!a||!i?d:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:ne.overlay,"aria-hidden":"true"}),d]})}me.displayName="Toast";const Ye=v.createContext(null);function aa({children:n}){const[l,t]=v.useState([]),a=v.useCallback(o=>{t(i=>i.filter(c=>c.id!==o))},[]),s=v.useCallback(o=>{const i=Math.random().toString(36).slice(2),c=o.duration??(o.variant==="loading"?0:4e3);return t(d=>[...d,{...o,id:i}]),c>0&&setTimeout(()=>a(i),c),i},[a]),r=l.some(o=>o.variant==="loading"&&o.overlay);return e.jsxs(Ye.Provider,{value:{toast:s,dismiss:a},children:[n,typeof document<"u"&&ln.createPortal(e.jsxs(e.Fragment,{children:[r&&e.jsx("div",{className:ne.overlay,"aria-hidden":"true"}),e.jsx("div",{className:ne.stack,children:l.map(o=>e.jsx(me,{variant:o.variant,title:o.title,message:o.message,onDismiss:()=>a(o.id)},o.id))})]}),document.body)]})}function ca(){const n=v.useContext(Ye);if(!n)throw new Error("useToast must be used within a ToastProvider");return n}const ra="_wrapper_1pjxy_1",ia="_tooltip_1pjxy_6",da="_fadeIn_1pjxy_1",_a="_top_1pjxy_33",ua="_bottom_1pjxy_52",ha="_left_1pjxy_72",fa="_right_1pjxy_94",xa="_kbd_1pjxy_115",ue={wrapper:ra,tooltip:ia,fadeIn:da,top:_a,bottom:ua,left:ha,right:fa,kbd:xa},ma=800;function Ze({content:n,side:l="top",delay:t=ma,children:a,wrapperProps:s,disabled:r=!1}){const[o,i]=v.useState(!1),c=v.useRef(null),d=()=>{c.current!==null&&(window.clearTimeout(c.current),c.current=null)};if(v.useEffect(()=>d,[]),r)return e.jsx(e.Fragment,{children:a});const j=()=>{if(d(),t<=0){i(!0);return}c.current=window.setTimeout(()=>{i(!0),c.current=null},t)},x=()=>{d(),i(!1)},h=b=>{var k;(k=s==null?void 0:s.onMouseEnter)==null||k.call(s,b),j()},u=b=>{var k;(k=s==null?void 0:s.onMouseLeave)==null||k.call(s,b),x()},B=b=>{var k;(k=s==null?void 0:s.onFocus)==null||k.call(s,b),j()},T=b=>{var k;(k=s==null?void 0:s.onBlur)==null||k.call(s,b),x()},I=[ue.tooltip,ue[l]].filter(Boolean).join(" "),w=[ue.wrapper,s==null?void 0:s.className].filter(Boolean).join(" ");return e.jsxs("span",{...s,className:w,onMouseEnter:h,onMouseLeave:u,onFocus:B,onBlur:T,children:[a,o&&e.jsx("span",{className:I,role:"tooltip",children:n})]})}Ze.displayName="Tooltip";exports.Accordion=pe;exports.Badge=we;exports.BreadCrumb=ns;exports.Breadcrumb=he;exports.Button=Ce;exports.Card=$e;exports.CardHeader=Ie;exports.CardStat=Le;exports.Checkbox=Se;exports.Input=Te;exports.Menu=Ae;exports.MenuItem=Oe;exports.MenuSeparator=We;exports.Modal=Ee;exports.Popover=Fe;exports.Progress=He;exports.PushButton=Ve;exports.PushButtonGroup=ze;exports.Radio=Re;exports.RadioGroup=De;exports.Scrollable=Be;exports.Select=Xe;exports.Spinner=xe;exports.Switch=qe;exports.Tabs=Ge;exports.Textarea=Ue;exports.Toast=me;exports.ToastProvider=aa;exports.Tooltip=Ze;exports.applyMask=Me;exports.getRawMaskValue=fe;exports.useControlledState=ie;exports.useToast=ca;
2
2
  //# sourceMappingURL=super-kit.cjs.map