@dnotrever2/super-kit 0.1.14 → 0.1.15

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
@@ -34,27 +34,34 @@ import "@dnotrever2/super-kit/dist/styles/index.css";
34
34
 
35
35
  ### Badge
36
36
 
37
- Status labels, tags, counts, and version strings.
37
+ Status labels and tags.
38
38
 
39
39
  ```tsx
40
40
  import { Badge } from "@dnotrever2/super-kit";
41
41
 
42
42
  <Badge variant="success">Deployed</Badge>
43
43
  <Badge variant="danger" pill>Failed</Badge>
44
- <Badge variant="dot" dotColor="var(--success)">Online</Badge>
45
- <Badge variant="count">12</Badge>
46
- <Badge variant="version">v2.4.1</Badge>
44
+ <Badge variant="danger" coloredText>Failed</Badge>
45
+ <Badge variant="danger" outline>Failed</Badge>
46
+ <Badge variant="primary" label labelDirection="left">New</Badge>
47
+ <Badge variant="success" indicator aria-label="Online" />
47
48
  <Badge dismissable onDismiss={() => {}}>api-gateway</Badge>
48
49
  ```
49
50
 
50
51
  | Prop | Type | Default |
51
52
  | ------------- | ------------------------------------------------------------------------------------------------------------------------------- | --------------- |
52
- | `variant` | `"neutral" \| "accent" \| "outline" \| "success" \| "warning" \| "danger" \| "info" \| "count" \| "mono" \| "version" \| "dot"` | `"neutral"` |
53
+ | `variant` | `"primary" \| "secondary" \| "ghost" \| "danger" \| "success" \| "warning"` | `"secondary"` |
53
54
  | `icon` | `ReactNode` | — |
54
55
  | `pill` | `boolean` | `false` |
56
+ | `outline` | `boolean` | `false` |
57
+ | `coloredText` | `boolean` | `false` |
58
+ | `indicator` | `boolean` | `false` |
59
+ | `label` | `boolean` | `false` |
60
+ | `labelDirection` | `"left" \| "right"` | `"right"` |
55
61
  | `dismissable` | `boolean` | `false` |
56
62
  | `onDismiss` | `() => void` | — |
57
- | `dotColor` | `string` | `var(--accent)` |
63
+
64
+ Badge variants match Button variants. Normal semantic badges use a stronger background with white text. Use `coloredText` when the text should follow the badge variant color. Outline badges use the variant color for the text. Use `pill` for the rounded shape. Use `indicator` for a small status dot; provide an accessible label with `aria-label`.
58
65
 
59
66
  ---
60
67
 
@@ -98,16 +105,20 @@ The last item is treated as the current page unless `current` is set explicitly.
98
105
 
99
106
  ### Button
100
107
 
101
- Standard action button with semantic variants and loading state.
108
+ Standard action button with semantic variants.
102
109
 
103
110
  ```tsx
104
- import { Button } from "@dnotrever2/super-kit";
111
+ import { Button, Spinner } from "@dnotrever2/super-kit";
105
112
 
106
113
  <Button variant="primary" onClick={deploy}>Deploy</Button>
107
114
  <Button variant="success" icon={<CheckIcon />}>Approve</Button>
108
115
  <Button variant="danger">Delete</Button>
109
- <Button variant="primary" loading icon={<Spinner size="sm" onAccent />}>
110
- Deploying
116
+ <Button variant="danger" coloredText>Delete</Button>
117
+ <Button variant="primary" outline>Configure</Button>
118
+ <Button variant="primary" rounded>Deploy</Button>
119
+ <Button variant="ghost" icon={<SettingsIcon />} aria-label="Settings" />
120
+ <Button variant="primary" disabled icon={<Spinner size="sm" onAccent />}>
121
+ Loading...
111
122
  </Button>
112
123
  ```
113
124
 
@@ -116,9 +127,15 @@ import { Button } from "@dnotrever2/super-kit";
116
127
  | `variant` | `"primary" \| "secondary" \| "ghost" \| "danger" \| "success" \| "warning"` | `"secondary"` |
117
128
  | `size` | `"sm" \| "md" \| "lg"` | `"md"` |
118
129
  | `icon` | `ReactNode` | — |
119
- | `loading` | `boolean` | `false` |
130
+ | `outline` | `boolean` | `false` |
131
+ | `rounded` | `boolean` | `false` |
132
+ | `coloredText` | `boolean` | `false` |
120
133
  | `disabled` | `boolean` | `false` |
121
134
 
135
+ Normal semantic buttons use a stronger background with white text. Use `coloredText` when the text should follow the button variant color. Outline buttons always use the variant color for the text.
136
+ To create a loading button, pass a `Spinner` as `icon`, use text such as `"Loading..."`, and set `disabled` to block interaction.
137
+ To create an icon button, pass only `icon` and no text. Provide an accessible label with `aria-label`.
138
+
122
139
  Forwards a `ref` to the underlying `<button>`. Accepts all native button attributes.
123
140
 
124
141
  ---
@@ -303,6 +320,7 @@ const [open, setOpen] = useState(false);
303
320
  ### Modal
304
321
 
305
322
  Dialog overlay with backdrop. Renders as a `div`-based panel, not `<dialog>`.
323
+ There is no separate `Dialog` component by design: projects can compose their own dialog patterns using existing design system primitives such as `Modal`, `Button`, `Input`, and `Textarea`.
306
324
 
307
325
  ```tsx
308
326
  import { Modal } from "@dnotrever2/super-kit";
@@ -354,6 +372,35 @@ import { Popover } from "@dnotrever2/super-kit";
354
372
 
355
373
  ---
356
374
 
375
+ ### Progress
376
+
377
+ Determinate or indeterminate progress bar.
378
+
379
+ ```tsx
380
+ import { Progress } from "@dnotrever2/super-kit";
381
+
382
+ <Progress value={64} label="Deploy progress" showValue />
383
+ <Progress shape="circle" value={72} label="Deploy" />
384
+ <Progress indeterminate label="Publishing" showValue />
385
+ <Progress value={82} variant="success" size="lg" />
386
+ ```
387
+
388
+ | Prop | Type | Default |
389
+ | --------------- | ----------------------------------------------------------------- | ---------- |
390
+ | `value` | `number` | — |
391
+ | `max` | `number` | `100` |
392
+ | `variant` | `"accent" \| "success" \| "warning" \| "danger" \| "info" \| "neutral"` | `"accent"` |
393
+ | `size` | `"sm" \| "md" \| "lg"` | `"md"` |
394
+ | `shape` | `"bar" \| "circle"` | `"bar"` |
395
+ | `label` | `ReactNode` | — |
396
+ | `valueLabel` | `string` | — |
397
+ | `showValue` | `boolean` | `false` |
398
+ | `indeterminate` | `boolean` | `false` |
399
+
400
+ When `value` is omitted or `indeterminate` is true, the progress renders in loading mode. Circular progress shows the percentage in the center.
401
+
402
+ ---
403
+
357
404
  ### PushButton
358
405
 
359
406
  Toggle button and grouped toolbar segments.
@@ -471,6 +518,83 @@ Forwards a `ref` to the root `<div>`.
471
518
 
472
519
  ---
473
520
 
521
+ ### Tabs
522
+
523
+ Accessible tab navigation with raised, rounded, or underline styles.
524
+
525
+ ```tsx
526
+ import { Badge, Tabs } from "@dnotrever2/super-kit";
527
+
528
+ <Tabs
529
+ variant="raised"
530
+ items={[
531
+ { value: "overview", label: "Overview", content: <Overview /> },
532
+ {
533
+ value: "deployments",
534
+ label: <>Deployments <Badge variant="primary" pill>4</Badge></>,
535
+ content: <Deployments />
536
+ },
537
+ { value: "settings", label: "Settings", content: <Settings /> }
538
+ ]}
539
+ />
540
+
541
+ <Tabs
542
+ variant="underline"
543
+ transparent
544
+ closable
545
+ onTabClose={(value) => closeTab(value)}
546
+ items={[
547
+ { value: "overview", label: "Overview" },
548
+ { value: "deployments", label: "Deployments" }
549
+ ]}
550
+ />
551
+
552
+ <Tabs
553
+ variant="rounded"
554
+ items={[
555
+ { value: "daily", label: "Daily" },
556
+ { value: "weekly", label: "Weekly" }
557
+ ]}
558
+ />
559
+ ```
560
+
561
+ | Prop | Type | Default |
562
+ | --------------- | ---------------------------- | ------------------- |
563
+ | `items` | `TabItem[]` | required |
564
+ | `variant` | `"raised" \| "underline" \| "rounded"` | `"raised"` |
565
+ | `value` | `string` | — controlled |
566
+ | `defaultValue` | `string` | first enabled item |
567
+ | `onValueChange` | `(value: string) => void` | — |
568
+ | `ariaLabel` | `string` | `"Tabs"` |
569
+ | `disabled` | `boolean` | `false` |
570
+ | `closable` | `boolean` | `false` |
571
+ | `closeLabel` | `string` | `"Close tab"` |
572
+ | `onTabClose` | `(value: string) => void` | — |
573
+ | `tabItemClassName` | `string` | — |
574
+ | `tabClassName` | `string` | — |
575
+ | `transparent` | `boolean` | `false` — underline only |
576
+ | `inactiveTransparent` | `boolean` | `false` — raised/rounded only |
577
+
578
+ **TabItem fields**
579
+
580
+ | Field | Type |
581
+ | ------------ | ----------------------------------------- |
582
+ | `value` | `string` |
583
+ | `label` | `ReactNode` |
584
+ | `content` | `ReactNode` |
585
+ | `disabled` | `boolean` |
586
+ | `closable` | `boolean` |
587
+ | `closeLabel` | `string` |
588
+ | `onClose` | `(value: string) => void` |
589
+ | `className` | `string` — class for the tab wrapper |
590
+ | `tabProps` | `ButtonHTMLAttributes<HTMLButtonElement>` |
591
+ | `closeButtonProps` | `ButtonHTMLAttributes<HTMLButtonElement>` |
592
+ | `panelProps` | `HTMLAttributes<HTMLDivElement>` |
593
+
594
+ Use `tabItemClassName` or `TabItem.className` to customize the tab wrapper dimensions such as height, width, and margin. Use `tabClassName` or `tabProps.className` to customize the inner tab button, such as padding.
595
+
596
+ ---
597
+
474
598
  ### Spinner
475
599
 
476
600
  Loading indicator in three styles.
@@ -483,7 +607,7 @@ import { Spinner } from "@dnotrever2/super-kit";
483
607
  <Spinner variant="bar" />
484
608
 
485
609
  // Inside a primary button (white on accent background)
486
- <Button variant="primary" loading icon={<Spinner size="sm" onAccent />}>
610
+ <Button variant="primary" disabled icon={<Spinner size="sm" onAccent />}>
487
611
  Deploying
488
612
  </Button>
489
613
 
@@ -1,15 +1,19 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
- export type BadgeVariant = "neutral" | "accent" | "outline" | "success" | "warning" | "danger" | "info" | "count" | "mono" | "version" | "dot";
2
+ export type BadgeVariant = "primary" | "secondary" | "ghost" | "danger" | "success" | "warning";
3
3
  export type BadgeProps = HTMLAttributes<HTMLSpanElement> & {
4
4
  variant?: BadgeVariant;
5
5
  icon?: ReactNode;
6
6
  pill?: boolean;
7
+ outline?: boolean;
8
+ coloredText?: boolean;
9
+ indicator?: boolean;
10
+ label?: boolean;
11
+ labelDirection?: "left" | "right";
7
12
  dismissable?: boolean;
8
13
  onDismiss?: () => void;
9
- dotColor?: string;
10
14
  children?: ReactNode;
11
15
  };
12
- export declare function Badge({ variant, icon, pill, dismissable, onDismiss, dotColor, children, className, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function Badge({ variant, icon, pill, outline, coloredText, indicator, label, labelDirection, dismissable, onDismiss, children, className, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
13
17
  export declare namespace Badge {
14
18
  var displayName: string;
15
19
  }
@@ -5,13 +5,17 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
5
5
  variant?: ButtonVariant;
6
6
  size?: ButtonSize;
7
7
  icon?: ReactNode;
8
- loading?: boolean;
8
+ outline?: boolean;
9
+ rounded?: boolean;
10
+ coloredText?: boolean;
9
11
  children?: ReactNode;
10
12
  };
11
13
  export declare const Button: import('react').ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
12
14
  variant?: ButtonVariant;
13
15
  size?: ButtonSize;
14
16
  icon?: ReactNode;
15
- loading?: boolean;
17
+ outline?: boolean;
18
+ rounded?: boolean;
19
+ coloredText?: boolean;
16
20
  children?: ReactNode;
17
21
  } & import('react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,19 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export type ProgressVariant = "accent" | "success" | "warning" | "danger" | "info" | "neutral";
3
+ export type ProgressSize = "sm" | "md" | "lg";
4
+ export type ProgressShape = "bar" | "circle";
5
+ export type ProgressProps = HTMLAttributes<HTMLDivElement> & {
6
+ value?: number;
7
+ max?: number;
8
+ variant?: ProgressVariant;
9
+ size?: ProgressSize;
10
+ shape?: ProgressShape;
11
+ label?: ReactNode;
12
+ valueLabel?: string;
13
+ showValue?: boolean;
14
+ indeterminate?: boolean;
15
+ };
16
+ export declare function Progress({ value, max, variant, size, shape, label, valueLabel, showValue, indeterminate, className, ...props }: ProgressProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare namespace Progress {
18
+ var displayName: string;
19
+ }
@@ -0,0 +1 @@
1
+ export * from './Progress';
@@ -0,0 +1,35 @@
1
+ import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
2
+ export type TabsVariant = "raised" | "underline" | "rounded";
3
+ export type TabItem = {
4
+ value: string;
5
+ label: ReactNode;
6
+ content?: ReactNode;
7
+ disabled?: boolean;
8
+ closable?: boolean;
9
+ closeLabel?: string;
10
+ onClose?: (value: string) => void;
11
+ className?: string;
12
+ tabProps?: ButtonHTMLAttributes<HTMLButtonElement>;
13
+ closeButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
14
+ panelProps?: HTMLAttributes<HTMLDivElement>;
15
+ };
16
+ export type TabsProps = HTMLAttributes<HTMLDivElement> & {
17
+ items: TabItem[];
18
+ value?: string;
19
+ defaultValue?: string;
20
+ onValueChange?: (value: string) => void;
21
+ variant?: TabsVariant;
22
+ ariaLabel?: string;
23
+ disabled?: boolean;
24
+ closable?: boolean;
25
+ closeLabel?: string;
26
+ onTabClose?: (value: string) => void;
27
+ tabClassName?: string;
28
+ tabItemClassName?: string;
29
+ transparent?: boolean;
30
+ inactiveTransparent?: boolean;
31
+ };
32
+ export declare function Tabs({ items, value, defaultValue, onValueChange, variant, ariaLabel, disabled, closable, closeLabel, onTabClose, tabClassName, tabItemClassName, transparent, inactiveTransparent, className, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
33
+ export declare namespace Tabs {
34
+ var displayName: string;
35
+ }
@@ -0,0 +1 @@
1
+ export * from './Tabs';
package/dist/index.d.ts CHANGED
@@ -8,9 +8,11 @@ export * from './Markers';
8
8
  export * from './Menu';
9
9
  export * from './Modal';
10
10
  export * from './Popover';
11
+ export * from './Progress';
11
12
  export * from './PushButton';
12
13
  export * from './Select';
13
14
  export * from './Spinner';
15
+ export * from './Tabs';
14
16
  export * from './Textarea';
15
17
  export * from './Toast';
16
18
  export * from './Tooltip';
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("react"),Je=require("react-dom"),Qe="_badge_lyltm_1",Pe="_neutral_lyltm_18",et="_accent_lyltm_24",tt="_outline_lyltm_29",st="_success_lyltm_35",nt="_warning_lyltm_40",lt="_danger_lyltm_45",ot="_info_lyltm_50",at="_count_lyltm_55",ct="_mono_lyltm_63",it="_version_lyltm_71",rt="_dismiss_lyltm_80",dt="_dismissBtn_lyltm_84",_t="_dot_lyltm_98",ut="_dotIndicator_lyltm_111",ht="_pill_lyltm_119",G={badge:Qe,neutral:Pe,accent:et,outline:tt,success:st,warning:nt,danger:lt,info:ot,count:at,mono:ct,version:it,dismiss:rt,dismissBtn:dt,dot:_t,dotIndicator:ut,pill:ht},mt=()=>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 be({variant:s="neutral",icon:c,pill:n=!1,dismissable:a=!1,onDismiss:t,dotColor:r,children:o,className:i,...l}){if(s==="dot"){const m=[G.badge,G.dot,i].filter(Boolean).join(" ");return e.jsxs("span",{...l,className:m,children:[e.jsx("span",{className:G.dotIndicator,style:{background:r??"var(--accent)"}}),o]})}const _=[G.badge,G[s],n?G.pill:null,a?G.dismiss:null,i].filter(Boolean).join(" ");return e.jsxs("span",{...l,className:_,children:[c||null,o,a&&e.jsx("button",{type:"button",className:G.dismissBtn,"aria-label":"Remove",onClick:t,children:e.jsx(mt,{})})]})}be.displayName="Badge";const xt="_breadcrumb_1y22n_1",ft="_list_1y22n_7",jt="_item_1y22n_17",gt="_separator_1y22n_23",vt="_link_1y22n_33",bt="_current_1y22n_34",kt="_button_1y22n_68",yt="_disabled_1y22n_79",F={breadcrumb:xt,list:ft,item:jt,separator:gt,link:vt,current:bt,button:kt,disabled:yt},Nt=()=>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 de({items:s,separator:c=e.jsx(Nt,{}),label:n="Breadcrumb",className:a,...t}){const r=[F.breadcrumb,a].filter(Boolean).join(" ");return e.jsx("nav",{...t,className:r,"aria-label":n,children:e.jsx("ol",{className:F.list,children:s.map((o,i)=>{var j,g;const l=i===s.length-1,_=o.current??l,m=o.disabled||_;return e.jsxs("li",{className:F.item,children:[i>0&&e.jsx("span",{className:F.separator,"aria-hidden":"true",children:c}),o.href&&!m?e.jsx("a",{...o.linkProps,className:[F.link,(j=o.linkProps)==null?void 0:j.className].filter(Boolean).join(" "),href:o.href,children:o.label}):o.onClick&&!m?e.jsx("button",{...o.buttonProps,type:"button",className:[F.link,F.button,(g=o.buttonProps)==null?void 0:g.className].filter(Boolean).join(" "),onClick:o.onClick,children:o.label}):e.jsx("span",{className:[F.current,o.disabled?F.disabled:null].filter(Boolean).join(" "),"aria-current":_?"page":void 0,children:o.label})]},i)})})})}de.displayName="Breadcrumb";const Bt=de;function ke({direction:s="vertical",track:c=!1,arrows:n=!1,autoHide:a=!1,expand:t=!1,scrollbarSize:r,height:o,children:i,className:l,style:_,...m}){const j=["sb",c?"sb-track":null,n?"sb-arrows":null,a?"sb-auto-hide":null,t?"sb-expand":null,l].filter(Boolean).join(" "),g=s==="vertical"?{overflowY:"auto",overflowX:"hidden"}:s==="horizontal"?{overflowX:"auto",overflowY:"hidden"}:{overflow:"auto"},h=r!==void 0?{"--sb-w":`${r}px`}:void 0;return e.jsx("div",{...m,className:j,style:{height:o,...g,...h,..._},children:i})}ke.displayName="Scrollable";const Ct="_btn_xuv7s_1",wt="_icon_xuv7s_33",It="_primary_xuv7s_42",$t="_secondary_xuv7s_50",Lt="_ghost_xuv7s_60",Mt="_danger_xuv7s_70",Tt="_success_xuv7s_78",St="_warning_xuv7s_86",Rt="_sm_xuv7s_95",pt="_md_xuv7s_103",qt="_lg_xuv7s_105",oe={btn:Ct,icon:wt,primary:It,secondary:$t,ghost:Lt,danger:Mt,success:Tt,warning:St,sm:Rt,md:pt,lg:qt},ye=x.forwardRef(({type:s="button",variant:c="secondary",size:n="md",icon:a,loading:t=!1,children:r,className:o,disabled:i,...l},_)=>{const m=[oe.btn,oe[c],oe[n],o].filter(Boolean).join(" ");return e.jsxs("button",{ref:_,type:s,disabled:i||t,className:m,...l,children:[a?e.jsx("span",{className:oe.icon,children:a}):null,r]})});ye.displayName="Button";const Dt="_card_1gxgi_1",At="_bordered_1gxgi_8",Ot="_tilt_1gxgi_12",Et="_closeBtn_1gxgi_20",Ft="_padSm_1gxgi_41",Wt="_padMd_1gxgi_42",zt="_padLg_1gxgi_43",Vt="_padNone_1gxgi_44",Xt="_header_1gxgi_47",Gt="_headerIcon_1gxgi_54",Ut="_title_1gxgi_63",Ht="_subtitle_1gxgi_69",Kt="_stat_1gxgi_76",Yt="_statValue_1gxgi_83",Zt="_statUnit_1gxgi_91",Jt="_statDelta_1gxgi_97",Qt="_deltaPositive_1gxgi_102",Pt="_deltaNegative_1gxgi_103",es="_deltaNeutral_1gxgi_104",y={card:Dt,bordered:At,tilt:Ot,closeBtn:Et,padSm:Ft,padMd:Wt,padLg:zt,padNone:Vt,header:Xt,headerIcon:Gt,title:Ut,subtitle:Ht,stat:Kt,statValue:Yt,statUnit:Zt,statDelta:Jt,deltaPositive:Qt,deltaNegative:Pt,deltaNeutral:es},ts={none:y.padNone,sm:y.padSm,md:y.padMd,lg:y.padLg},ss=()=>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 Ne({padding:s="md",bordered:c=!1,tilt:n=!1,onClose:a,closeBtnProps:t,children:r,className:o,...i}){const l=[y.card,ts[s],c?y.bordered:null,n?y.tilt:null,o].filter(Boolean).join(" ");return e.jsxs("div",{...i,className:l,children:[a&&e.jsx("button",{type:"button","aria-label":"Close",...t,className:[y.closeBtn,t==null?void 0:t.className].filter(Boolean).join(" "),onClick:a,children:e.jsx(ss,{})}),r]})}Ne.displayName="Card";function Be({icon:s,title:c,subtitle:n,className:a,...t}){return e.jsxs("div",{...t,className:[y.header,a].filter(Boolean).join(" "),children:[s&&e.jsx("span",{className:y.headerIcon,children:s}),e.jsxs("div",{children:[e.jsx("div",{className:y.title,children:c}),n&&e.jsx("div",{className:y.subtitle,children:n})]})]})}Be.displayName="CardHeader";function Ce({value:s,unit:c,delta:n,deltaDirection:a="positive",className:t,...r}){const o=[y.statDelta,a==="positive"?y.deltaPositive:a==="negative"?y.deltaNegative:y.deltaNeutral].filter(Boolean).join(" ");return e.jsxs("div",{...r,className:[y.stat,t].filter(Boolean).join(" "),children:[e.jsxs("span",{className:y.statValue,children:[s,c&&e.jsxs("span",{className:y.statUnit,children:[" ",c]})]}),n&&e.jsx("span",{className:o,children:n})]})}Ce.displayName="CardStat";function ae(s,c,n){const[a,t]=x.useState(c),r=s!==void 0,o=r?s:a,i=x.useCallback(l=>{r||t(l),n==null||n(l)},[r,n]);return[o,i,r]}const ns="X",ls=/[a-zA-Z0-9]/;function _e(s,c={}){const n=c.allowedPattern??ls;return s.split("").filter(a=>n.test(a)).join("")}function we(s,c,n={}){const a=n.placeholder??ns,t=_e(s,n);let r=0,o="";for(const i of c){if(r>=t.length)break;if(i===a){o+=t[r],r+=1;continue}o+=i}return o}const os="_wrapper_25x8h_1",as="_field_25x8h_7",cs="_label_25x8h_13",is="_input_25x8h_22",rs="_hasIcon_25x8h_52",ds="_hasIconRight_25x8h_55",_s="_hasClear_25x8h_58",us="_hasClearAndIconRight_25x8h_61",hs="_iconSlot_25x8h_64",ms="_iconSlotRight_25x8h_78",xs="_iconSlotRightWithClear_25x8h_92",fs="_clearBtn_25x8h_95",T={wrapper:os,field:as,label:cs,input:is,hasIcon:rs,hasIconRight:ds,hasClear:_s,hasClearAndIconRight:us,iconSlot:hs,iconSlotRight:ms,iconSlotRightWithClear:xs,clearBtn:fs},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"})}),Ie=x.forwardRef(({label:s,icon:c,iconPosition:n="left",clearable:a=!1,clearButtonProps:t,clearLabel:r,defaultValue:o="",disabled:i,mask:l,maskAllowedPattern:_,maskPlaceholder:m,selectOnFocus:j=!1,textAlign:g,inputProps:h,onChange:C,onValueChange:$,value:L,wrapperProps:N,fieldProps:f,className:b,style:V,...v},U)=>{const H=x.useRef(null),[Q,te]=ae(L,o,k=>{$==null||$({value:k,rawValue:l?_e(k,{allowedPattern:_}):k})});x.useImperativeHandle(U,()=>H.current);const M=x.useCallback(k=>l?we(k,l,{allowedPattern:_,placeholder:m}):k,[l,_,m]),S=k=>{var Z;const Y=M(k.target.value);k.target.value=Y,te(Y),C==null||C(k),(Z=h==null?void 0:h.onChange)==null||Z.call(h,k)},O=()=>{var k;te(""),(k=H.current)==null||k.focus()},R=c&&n==="right",E=c&&n==="left",K=[T.input,E?T.hasIcon:null,R?T.hasIconRight:null,a&&R?T.hasClearAndIconRight:a?T.hasClear:null,b,h==null?void 0:h.className].filter(Boolean).join(" "),P=k=>{var Y,Z;j&&k.target.select(),(Y=v.onFocus)==null||Y.call(v,k),(Z=h==null?void 0:h.onFocus)==null||Z.call(h,k)},w={...V,...h==null?void 0:h.style,...g?{textAlign:g}:null},X=i||(h==null?void 0:h.disabled),ne=e.jsx("input",{...v,...h,ref:H,disabled:X,value:M(Q),onChange:S,onFocus:P,className:K,style:w}),se=[T.wrapper,N==null?void 0:N.className].filter(Boolean).join(" "),le=e.jsxs("span",{...N,className:se,children:[E?e.jsx("span",{className:T.iconSlot,children:c}):null,ne,R?e.jsx("span",{className:[T.iconSlotRight,a?T.iconSlotRightWithClear:null].filter(Boolean).join(" "),children:c}):null,a?e.jsx("button",{type:"button","aria-label":"Clear",title:"Clear",disabled:X||Q.length===0,onClick:O,className:T.clearBtn,...t,children:(t==null?void 0:t.children)??e.jsx(js,{})}):null]});return!s&&!f?le:e.jsxs("div",{...f,className:[T.field,f==null?void 0:f.className].filter(Boolean).join(" "),children:[s?e.jsx("label",{className:T.label,children:s}):null,le]})});Ie.displayName="Input";const gs="_checkbox_7kjwa_2",vs="_checkboxBox_7kjwa_13",bs="_checked_7kjwa_33",ks="_indeterminate_7kjwa_42",ys="_disabled_7kjwa_55",Ns="_radio_7kjwa_61",Bs="_radioDot_7kjwa_72",Cs="_radioChecked_7kjwa_85",ws="_radioDisabled_7kjwa_97",Is="_radioGroup_7kjwa_102",$s="_switchWrap_7kjwa_109",Ls="_switchTrack_7kjwa_120",Ms="_switchOn_7kjwa_143",Ts="_switchDisabled_7kjwa_153",I={checkbox:gs,checkboxBox:vs,checked:bs,indeterminate:ks,disabled:ys,radio:Ns,radioDot:Bs,radioChecked:Cs,radioDisabled:ws,radioGroup:Is,switchWrap:$s,switchTrack:Ls,switchOn:Ms,switchDisabled:Ts},Ss=()=>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 $e({label:s,checked:c,defaultChecked:n,indeterminate:a=!1,disabled:t=!1,onChange:r,className:o,...i}){const l=c??n??!1,_=[I.checkbox,l&&!a?I.checked:null,a?I.indeterminate:null,t?I.disabled:null,o].filter(Boolean).join(" ");return e.jsxs("label",{className:_,children:[e.jsx("input",{...i,type:"checkbox",checked:l,disabled:t,style:{display:"none"},onChange:m=>r==null?void 0:r(m.currentTarget.checked)}),e.jsx("span",{className:I.checkboxBox,children:!a&&e.jsx(Ss,{})}),s]})}$e.displayName="Checkbox";function Le({label:s,checked:c=!1,disabled:n=!1,onChange:a,value:t,className:r,...o}){const i=[I.radio,c?I.radioChecked:null,n?I.radioDisabled:null,r].filter(Boolean).join(" ");return e.jsxs("label",{className:i,children:[e.jsx("input",{...o,type:"radio",checked:c,disabled:n,value:t,style:{display:"none"},onChange:l=>a==null?void 0:a(l.currentTarget.value)}),e.jsx("span",{className:I.radioDot}),s]})}Le.displayName="Radio";function Me({children:s,className:c,...n}){const a=[I.radioGroup,c].filter(Boolean).join(" ");return e.jsx("div",{...n,className:a,role:"radiogroup",children:s})}Me.displayName="RadioGroup";function Te({label:s,checked:c,defaultChecked:n,disabled:a=!1,onChange:t,className:r,...o}){const i=c??n??!1,l=[I.switchWrap,i?I.switchOn:null,a?I.switchDisabled:null,r].filter(Boolean).join(" ");return e.jsxs("label",{className:l,children:[e.jsx("input",{...o,type:"checkbox",checked:i,disabled:a,style:{display:"none"},onChange:_=>t==null?void 0:t(_.currentTarget.checked)}),e.jsx("span",{className:I.switchTrack}),s]})}Te.displayName="Switch";const Rs="_menu_pga52_1",ps="_item_pga52_13",qs="_active_pga52_41",Ds="_danger_pga52_53",As="_disabled_pga52_65",Os="_kbd_pga52_71",Es="_separator_pga52_79",J={menu:Rs,item:ps,active:qs,danger:Ds,disabled:As,kbd:Os,separator:Es};function Se({children:s,className:c,...n}){const a=[J.menu,c].filter(Boolean).join(" ");return e.jsx("div",{...n,className:a,role:"menu",children:s})}Se.displayName="Menu";function Re({icon:s,kbd:c,active:n=!1,danger:a=!1,disabled:t=!1,children:r,className:o,...i}){const l=[J.item,n?J.active:null,a?J.danger:null,t?J.disabled:null,o].filter(Boolean).join(" ");return e.jsxs("button",{...i,type:"button",className:l,disabled:t,role:"menuitem",children:[s,r,c&&e.jsx("span",{className:J.kbd,children:c})]})}Re.displayName="MenuItem";function pe({className:s,...c}){const n=[J.separator,s].filter(Boolean).join(" ");return e.jsx("div",{...c,className:n,role:"separator"})}pe.displayName="MenuSeparator";const Fs="_backdrop_pya14_1",Ws="_modal_pya14_23",zs="_header_pya14_37",Vs="_titleBlock_pya14_45",Xs="_title_pya14_45",Gs="_subtitle_pya14_58",Us="_closeBtn_pya14_64",Hs="_body_pya14_86",Ks="_footer_pya14_92",W={backdrop:Fs,modal:Ws,header:zs,titleBlock:Vs,title:Xs,subtitle:Gs,closeBtn:Us,body:Hs,footer:Ks},Ys=()=>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"})}),qe=x.forwardRef(({open:s,title:c,subtitle:n,children:a,footer:t,closeOnBackdrop:r=!0,showCloseButton:o=!0,backdropProps:i,modalProps:l,headerProps:_,bodyProps:m,footerProps:j,closeButtonProps:g,onOpenChange:h,onClose:C},$)=>{const L=x.useRef(null);x.useImperativeHandle($,()=>L.current),x.useEffect(()=>{if(!s)return;const v=U=>{U.key==="Escape"&&N()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[s]);const N=()=>{h==null||h(!1),C==null||C()},f=v=>{r&&v.target===v.currentTarget&&N()};if(!s)return null;const b=[W.backdrop,i==null?void 0:i.className].filter(Boolean).join(" "),V=[W.modal,l==null?void 0:l.className].filter(Boolean).join(" ");return e.jsx("div",{...i,className:b,onClick:f,role:"presentation",children:e.jsxs("div",{ref:L,...l,className:V,role:"dialog","aria-modal":"true",children:[(c||o)&&e.jsxs("header",{..._,className:[W.header,_==null?void 0:_.className].filter(Boolean).join(" "),children:[e.jsxs("div",{className:W.titleBlock,children:[c?e.jsx("div",{className:W.title,children:c}):null,n?e.jsx("div",{className:W.subtitle,children:n}):null]}),o&&e.jsx("button",{type:"button","aria-label":"Close",className:W.closeBtn,onClick:N,...g,children:(g==null?void 0:g.children)??e.jsx(Ys,{})})]}),e.jsx("section",{...m,className:[W.body,m==null?void 0:m.className].filter(Boolean).join(" "),children:a}),t&&e.jsx("footer",{...j,className:[W.footer,j==null?void 0:j.className].filter(Boolean).join(" "),children:t})]})})});qe.displayName="Modal";const Zs="_wrapper_10d4l_1",Js="_pop_10d4l_8",Qs="_sideRight_10d4l_22",Ps="_sideTop_10d4l_27",en="_arrow_10d4l_34",tn="_head_10d4l_60",sn="_title_10d4l_67",nn="_closeBtn_10d4l_74",ln="_body_10d4l_105",z={wrapper:Zs,pop:Js,sideRight:Qs,sideTop:Ps,arrow:en,head:tn,title:sn,closeBtn:nn,body:ln},on=()=>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 De({open:s,defaultOpen:c=!1,title:n,children:a,trigger:t,side:r="bottom-start",showCloseButton:o=!0,onOpenChange:i,popProps:l}){const[_,m]=x.useState(c),j=s!==void 0,g=j?s:_,h=x.useRef(null);function C(f){j||m(f),i==null||i(f)}x.useEffect(()=>{function f(b){h.current&&!h.current.contains(b.target)&&C(!1)}return g&&document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[g]);const $=r.startsWith("top"),L=r.endsWith("end"),N=[z.pop,L?z.sideRight:null,$?z.sideTop:null,l==null?void 0:l.className].filter(Boolean).join(" ");return e.jsxs("div",{ref:h,className:z.wrapper,children:[t&&e.jsx("div",{onClick:()=>C(!g),style:{display:"inline-flex"},children:t}),g&&e.jsxs("div",{...l,className:N,children:[e.jsx("span",{className:z.arrow}),(n||o)&&e.jsxs("div",{className:z.head,children:[n&&e.jsx("span",{className:z.title,children:n}),o&&e.jsx("button",{type:"button",className:z.closeBtn,"aria-label":"Close",onClick:()=>C(!1),children:e.jsx(on,{})})]}),e.jsx("div",{className:z.body,children:a})]})]})}De.displayName="Popover";const an="_group_1ltkm_1",cn="_pb_1ltkm_11",rn="_on_1ltkm_40",dn="_accent_1ltkm_45",_n="_solo_1ltkm_50",un="_disabled_1ltkm_65",ee={group:an,pb:cn,on:rn,accent:dn,solo:_n,disabled:un};function Ae({children:s,className:c,...n}){const a=[ee.group,c].filter(Boolean).join(" ");return e.jsx("div",{...n,className:a,role:"group",children:s})}Ae.displayName="PushButtonGroup";function Oe({on:s=!1,accent:c=!1,solo:n=!1,icon:a,children:t,disabled:r=!1,className:o,...i}){const l=[ee.pb,s?ee.on:null,s&&c?ee.accent:null,n?ee.solo:null,r?ee.disabled:null,o].filter(Boolean).join(" ");return e.jsxs("button",{...i,type:"button",className:l,disabled:r,children:[a,t]})}Oe.displayName="PushButton";const hn="_root_qhol4_1",mn="_field_qhol4_6",xn="_label_qhol4_12",fn="_labelMeta_qhol4_24",jn="_trigger_qhol4_33",gn="_triggerOpen_qhol4_59",vn="_triggerConnectedBottom_qhol4_64",bn="_triggerConnectedTop_qhol4_69",kn="_triggerValue_qhol4_74",yn="_triggerPlaceholder_qhol4_83",Nn="_chevron_qhol4_85",Bn="_chevronOpen_qhol4_94",Cn="_chips_qhol4_97",wn="_chip_qhol4_97",In="_chipOverflow_qhol4_120",$n="_clearBtn_qhol4_123",Ln="_popover_qhol4_143",Mn="_popoverBottom_qhol4_154",Tn="_popoverTop_qhol4_162",Sn="_search_qhol4_181",Rn="_searchIcon_qhol4_188",pn="_searchInput_qhol4_195",qn="_list_qhol4_209",Dn="_item_qhol4_217",An="_itemAlignLeft_qhol4_230",On="_itemAlignCenter_qhol4_231",En="_itemAlignRight_qhol4_232",Fn="_itemActive_qhol4_235",Wn="_itemDisabled_qhol4_243",zn="_itemMeta_qhol4_245",Vn="_checkbox_qhol4_254",Xn="_checkboxChecked_qhol4_266",Gn="_checkIcon_qhol4_278",Un="_emptyState_qhol4_299",Hn="_popFooter_qhol4_307",Kn="_popFooterBtn_qhol4_317",u={root:hn,field:mn,label:xn,labelMeta:fn,trigger:jn,triggerOpen:gn,triggerConnectedBottom:vn,triggerConnectedTop:bn,triggerValue:kn,triggerPlaceholder:yn,chevron:Nn,chevronOpen:Bn,chips:Cn,chip:wn,chipOverflow:In,clearBtn:$n,popover:Ln,popoverBottom:Mn,popoverTop:Tn,search:Sn,searchIcon:Rn,searchInput:pn,list:qn,item:Dn,itemAlignLeft:An,itemAlignCenter:On,itemAlignRight:En,itemActive:Fn,itemDisabled:Wn,itemMeta:zn,checkbox:Vn,checkboxChecked:Xn,checkIcon:Gn,emptyState:Un,popFooter:Hn,popFooterBtn:Kn},Yn=()=>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"})}),ve=()=>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"})}),Zn=()=>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"})]}),ie=()=>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"})}),Jn=(s,c)=>{const n=c.trim().toLowerCase();return n?s.filter(a=>String(a.label).toLowerCase().includes(n)):s},Ee=x.forwardRef(({label:s,clearable:c=!1,defaultValue:n=null,disabled:a=!1,emptyLabel:t="No options found",filterOptions:r=Jn,isLoading:o=!1,loadingLabel:i="Loading...",multiple:l=!1,onSearchChange:_,onValueChange:m,options:j,optionsAlign:g="left",optionsPosition:h="bottom",placeholder:C="Select",searchable:$=!1,searchPlaceholder:L="Search...",showSelectedCount:N=!0,showClearAll:f=!0,showSelectedValues:b=!0,closeOnSelect:V,selectProps:v,value:U,className:H,...Q},te)=>{const[M,S]=x.useState(!1),[O,R]=x.useState(""),E=x.useRef(null),[K,P]=ae(U,n,d=>{const B=j.filter(q=>Array.isArray(d)?d.includes(q.value):q.value===d);m==null||m(d,B)}),w=x.useMemo(()=>Array.isArray(K)?K:K?[K]:[],[K]),X=x.useMemo(()=>j.filter(d=>w.includes(d.value)),[j,w]),ne=x.useMemo(()=>r(j,O),[r,j,O]);x.useEffect(()=>{if(!M)return;const d=B=>{E.current&&!E.current.contains(B.target)&&S(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[M]);const se=d=>{R(d),_==null||_(d)},le=d=>{if(!d.disabled){if(l){const B=w.includes(d.value)?w.filter(q=>q!==d.value):[...w,d.value];P(B),V&&S(!1);return}P(d.value),(V??!0)&&S(!1)}},k=()=>{P(l?[]:null),se("")},Y=()=>{if(w.length>0){k();return}P(j.filter(d=>!d.disabled).map(d=>d.value))},Z=d=>{var B;(B=v==null?void 0:v.onClick)==null||B.call(v,d),!d.defaultPrevented&&!a&&S(q=>!q)},Xe=d=>{var B;(B=v==null?void 0:v.onKeyDown)==null||B.call(v,d),!d.defaultPrevented&&((d.key==="Enter"||d.key===" ")&&(d.preventDefault(),S(q=>!q)),d.key==="Escape"&&S(!1))},me=h==="top",Ge=[u.trigger,M?u.triggerOpen:null,M?me?u.triggerConnectedTop:u.triggerConnectedBottom:null,v==null?void 0:v.className].filter(Boolean).join(" "),Ue=!l||b,He=l&&b&&X.length>0,ce=l,Ke=l&&(w.length>0||f),xe=Ue&&X.length>0,fe=2,je=X.length-fe,Ye=[u.root,H].filter(Boolean).join(" "),Ze={left:u.itemAlignLeft,center:u.itemAlignCenter,right:u.itemAlignRight}[g],ge=e.jsxs("div",{ref:E,...Q,className:Ye,children:[e.jsxs("button",{...v,type:"button",className:Ge,disabled:a,"aria-haspopup":"listbox","aria-expanded":M,onClick:Z,onKeyDown:Xe,children:[He?e.jsxs("div",{className:u.chips,children:[X.slice(0,fe).map(d=>e.jsx("span",{className:u.chip,children:d.label},d.value)),je>0&&e.jsxs("span",{className:[u.chip,u.chipOverflow].join(" "),children:["+",je]})]}):e.jsx("span",{className:[u.triggerValue,xe?null:u.triggerPlaceholder].filter(Boolean).join(" "),children:xe?X.map(d=>d.label).join(", "):C}),c&&w.length>0&&e.jsx("button",{type:"button","aria-label":"Clear",className:u.clearBtn,disabled:a,onClick:d=>{d.stopPropagation(),k()},children:e.jsx(ve,{})}),e.jsx("span",{className:[u.chevron,M?u.chevronOpen:null].filter(Boolean).join(" "),children:e.jsx(Yn,{})})]}),M&&e.jsxs("div",{className:[u.popover,me?u.popoverTop:u.popoverBottom].join(" "),role:"listbox","aria-multiselectable":l||void 0,children:[$&&e.jsxs("div",{className:u.search,children:[e.jsx("span",{className:u.searchIcon,children:e.jsx(Zn,{})}),e.jsx("input",{autoFocus:!0,value:O,placeholder:L,className:u.searchInput,onChange:d=>se(d.target.value)}),O&&e.jsx("button",{className:u.clearBtn,onClick:()=>se(""),children:e.jsx(ve,{})})]}),e.jsxs("ul",{className:[u.list,"sb"].join(" "),children:[o&&e.jsx("li",{className:u.emptyState,children:i}),!o&&ne.length===0&&e.jsx("li",{className:u.emptyState,children:t}),!o&&ne.map(d=>{const B=w.includes(d.value),q=[u.item,Ze,B?u.itemActive:null,d.disabled?u.itemDisabled:null].filter(Boolean).join(" ");return e.jsxs("li",{className:q,role:"option","aria-selected":B,onClick:()=>le(d),children:[!ce&&g==="right"&&B&&e.jsx("span",{className:u.checkIcon,children:e.jsx(ie,{})}),ce?e.jsx("span",{className:[u.checkbox,B?u.checkboxChecked:null].filter(Boolean).join(" "),children:B&&e.jsx(ie,{})}):null,e.jsx("span",{children:d.label}),d.meta&&e.jsx("span",{className:u.itemMeta,children:d.meta}),!ce&&g!=="right"&&B&&e.jsx("span",{className:u.checkIcon,children:e.jsx(ie,{})})]},d.value)})]}),Ke&&(N||f)&&e.jsxs("div",{className:u.popFooter,children:[N&&e.jsxs("span",{children:[w.length," selected"]}),f&&e.jsx("button",{className:u.popFooterBtn,onClick:Y,children:w.length>0?"Clear all":"Check all"})]})]})]});return s?e.jsxs("div",{className:u.field,children:[e.jsxs("label",{className:u.label,children:[s,l&&N&&w.length>0&&e.jsxs("span",{className:u.labelMeta,children:["· ",w.length," selected"]})]}),ge]}):ge});Ee.displayName="Select";const Qn="_ring_mxe7t_2",Pn="_spin_mxe7t_1",el="_ringMuted_mxe7t_12",tl="_sm_mxe7t_14",sl="_md_mxe7t_15",nl="_lg_mxe7t_16",ll="_onAccent_mxe7t_19",ol="_dots_mxe7t_29",al="_dot_mxe7t_29",cl="_dotPulse_mxe7t_1",il="_bar_mxe7t_52",rl="_barFill_mxe7t_62",dl="_barSlide_mxe7t_1",D={ring:Qn,spin:Pn,ringMuted:el,sm:tl,md:sl,lg:nl,onAccent:ll,dots:ol,dot:al,dotPulse:cl,bar:il,barFill:rl,barSlide:dl};function ue({variant:s="ring",size:c="md",muted:n=!1,onAccent:a=!1,className:t,...r}){if(s==="dots"){const i=[D.dots,t].filter(Boolean).join(" ");return e.jsxs("span",{...r,className:i,role:"status","aria-label":"Loading",children:[e.jsx("span",{className:D.dot}),e.jsx("span",{className:D.dot}),e.jsx("span",{className:D.dot})]})}if(s==="bar"){const i=[D.bar,t].filter(Boolean).join(" ");return e.jsx("span",{...r,className:i,role:"status","aria-label":"Loading",children:e.jsx("span",{className:D.barFill})})}const o=[D.ring,D[c],n?D.ringMuted:null,a?D.onAccent:null,t].filter(Boolean).join(" ");return e.jsx("span",{...r,className:o,role:"status","aria-label":"Loading"})}ue.displayName="Spinner";const _l="_field_fazrx_1",ul="_label_fazrx_7",hl="_wrapper_fazrx_16",ml="_textarea_fazrx_20",xl="_mono_fazrx_53",fl="_hasClear_fazrx_59",jl="_clearBtn_fazrx_62",gl="_footer_fazrx_84",vl="_helpText_fazrx_92",bl="_charCount_fazrx_94",kl="_charCountOver_fazrx_100",p={field:_l,label:ul,wrapper:hl,textarea:ml,mono:xl,hasClear:fl,clearBtn:jl,footer:gl,helpText:vl,charCount:bl,charCountOver:kl},yl=()=>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"})}),Fe=x.forwardRef(({label:s,helpText:c,maxLength:n,clearable:a=!1,mono:t=!1,value:r,defaultValue:o="",disabled:i,textareaProps:l,wrapperProps:_,fieldProps:m,clearButtonProps:j,onChange:g,onValueChange:h,className:C,style:$,...L},N)=>{const[f,b]=ae(r,o,R=>h==null?void 0:h(R)),V=R=>{var E;b(R.target.value),g==null||g(R),(E=l==null?void 0:l.onChange)==null||E.call(l,R)},v=()=>{b("")},U=n!==void 0&&f.length>n,H=[p.textarea,"sb",t?p.mono:null,a?p.hasClear:null,C,l==null?void 0:l.className].filter(Boolean).join(" "),Q=[p.wrapper,_==null?void 0:_.className].filter(Boolean).join(" "),te=[p.field,m==null?void 0:m.className].filter(Boolean).join(" "),M={...$,...l==null?void 0:l.style},S=i||(l==null?void 0:l.disabled),O=e.jsxs("div",{..._,className:Q,children:[e.jsx("textarea",{...L,...l,ref:N,disabled:S,maxLength:n,value:f,onChange:V,className:H,style:M}),a&&e.jsx("button",{type:"button",className:p.clearBtn,disabled:S||f.length===0,"aria-label":"Clear",onClick:v,...j,children:(j==null?void 0:j.children)??e.jsx(yl,{})})]});return!s&&!c&&n===void 0?O:e.jsxs("div",{...m,className:te,children:[s&&e.jsx("label",{className:p.label,children:s}),O,(c||n!==void 0)&&e.jsxs("div",{className:p.footer,children:[c&&e.jsx("span",{className:p.helpText,children:c}),n!==void 0&&e.jsxs("span",{className:[p.charCount,U?p.charCountOver:null].filter(Boolean).join(" "),children:[f.length," / ",n]})]})]})});Fe.displayName="Textarea";const Nl="_toast_4d9rv_1",Bl="_slideUp_4d9rv_1",Cl="_toastExiting_4d9rv_27",wl="_slideOut_4d9rv_1",Il="_lead_4d9rv_31",$l="_body_4d9rv_41",Ll="_title_4d9rv_49",Ml="_message_4d9rv_55",Tl="_closeBtn_4d9rv_60",Sl="_ok_4d9rv_83",Rl="_error_4d9rv_86",pl="_warning_4d9rv_89",ql="_info_4d9rv_92",Dl="_loading_4d9rv_95",Al="_overlay_4d9rv_99",Ol="_stack_4d9rv_108",A={toast:Nl,slideUp:Bl,toastExiting:Cl,slideOut:wl,lead:Il,body:$l,title:Ll,message:Ml,closeBtn:Tl,ok:Sl,error:Rl,warning:pl,info:ql,loading:Dl,overlay:Al,stack:Ol},El=()=>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"})}),We=({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"})}),Fl=()=>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"})]}),Wl=()=>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"})]}),zl={ok:e.jsx(El,{}),error:e.jsx(We,{size:18}),warning:e.jsx(Fl,{}),info:e.jsx(Wl,{}),loading:e.jsx(ue,{size:"sm",muted:!0})};function he({variant:s="ok",title:c,message:n,overlay:a=!1,onDismiss:t,className:r,...o}){const i=s==="loading",l=[A.toast,A[s],r].filter(Boolean).join(" "),_=e.jsxs("div",{...o,className:l,role:"alert",children:[e.jsx("span",{className:A.lead,children:zl[s]}),e.jsxs("div",{className:A.body,children:[e.jsx("div",{className:A.title,children:c}),n&&e.jsx("div",{className:A.message,children:n})]}),t&&!i&&e.jsx("button",{type:"button",className:A.closeBtn,"aria-label":"Dismiss",onClick:t,children:e.jsx(We,{})})]});return!a||!i?_:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:A.overlay,"aria-hidden":"true"}),_]})}he.displayName="Toast";const ze=x.createContext(null);function Vl({children:s}){const[c,n]=x.useState([]),a=x.useCallback(o=>{n(i=>i.filter(l=>l.id!==o))},[]),t=x.useCallback(o=>{const i=Math.random().toString(36).slice(2),l=o.duration??(o.variant==="loading"?0:4e3);return n(_=>[..._,{...o,id:i}]),l>0&&setTimeout(()=>a(i),l),i},[a]),r=c.some(o=>o.variant==="loading"&&o.overlay);return e.jsxs(ze.Provider,{value:{toast:t,dismiss:a},children:[s,typeof document<"u"&&Je.createPortal(e.jsxs(e.Fragment,{children:[r&&e.jsx("div",{className:A.overlay,"aria-hidden":"true"}),e.jsx("div",{className:A.stack,children:c.map(o=>e.jsx(he,{variant:o.variant,title:o.title,message:o.message,onDismiss:()=>a(o.id)},o.id))})]}),document.body)]})}function Xl(){const s=x.useContext(ze);if(!s)throw new Error("useToast must be used within a ToastProvider");return s}const Gl="_wrapper_1pjxy_1",Ul="_tooltip_1pjxy_6",Hl="_fadeIn_1pjxy_1",Kl="_top_1pjxy_33",Yl="_bottom_1pjxy_52",Zl="_left_1pjxy_72",Jl="_right_1pjxy_94",Ql="_kbd_1pjxy_115",re={wrapper:Gl,tooltip:Ul,fadeIn:Hl,top:Kl,bottom:Yl,left:Zl,right:Jl,kbd:Ql},Pl=800;function Ve({content:s,side:c="top",delay:n=Pl,children:a,wrapperProps:t,disabled:r=!1}){const[o,i]=x.useState(!1),l=x.useRef(null),_=()=>{l.current!==null&&(window.clearTimeout(l.current),l.current=null)};if(x.useEffect(()=>_,[]),r)return e.jsx(e.Fragment,{children:a});const m=()=>{if(_(),n<=0){i(!0);return}l.current=window.setTimeout(()=>{i(!0),l.current=null},n)},j=()=>{_(),i(!1)},g=f=>{var b;(b=t==null?void 0:t.onMouseEnter)==null||b.call(t,f),m()},h=f=>{var b;(b=t==null?void 0:t.onMouseLeave)==null||b.call(t,f),j()},C=f=>{var b;(b=t==null?void 0:t.onFocus)==null||b.call(t,f),m()},$=f=>{var b;(b=t==null?void 0:t.onBlur)==null||b.call(t,f),j()},L=[re.tooltip,re[c]].filter(Boolean).join(" "),N=[re.wrapper,t==null?void 0:t.className].filter(Boolean).join(" ");return e.jsxs("span",{...t,className:N,onMouseEnter:g,onMouseLeave:h,onFocus:C,onBlur:$,children:[a,o&&e.jsx("span",{className:L,role:"tooltip",children:s})]})}Ve.displayName="Tooltip";exports.Badge=be;exports.BreadCrumb=Bt;exports.Breadcrumb=de;exports.Button=ye;exports.Card=Ne;exports.CardHeader=Be;exports.CardStat=Ce;exports.Checkbox=$e;exports.Input=Ie;exports.Menu=Se;exports.MenuItem=Re;exports.MenuSeparator=pe;exports.Modal=qe;exports.Popover=De;exports.PushButton=Oe;exports.PushButtonGroup=Ae;exports.Radio=Le;exports.RadioGroup=Me;exports.Scrollable=ke;exports.Select=Ee;exports.Spinner=ue;exports.Switch=Te;exports.Textarea=Fe;exports.Toast=he;exports.ToastProvider=Vl;exports.Tooltip=Ve;exports.applyMask=we;exports.getRawMaskValue=_e;exports.useControlledState=ae;exports.useToast=Xl;
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;
2
2
  //# sourceMappingURL=super-kit.cjs.map