@dnotrever2/super-kit 0.1.11 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/super-kit.js CHANGED
@@ -1,631 +1,693 @@
1
- import { jsxs as d, jsx as e, Fragment as Me } from "react/jsx-runtime";
2
- import { forwardRef as J, useState as Y, useCallback as te, useRef as ne, useImperativeHandle as ge, useEffect as ie, useMemo as se, useContext as Te, createContext as Se } from "react";
3
- import { createPortal as Re } from "react-dom";
4
- const qe = "_badge_lyltm_1", Ae = "_neutral_lyltm_18", De = "_accent_lyltm_24", Oe = "_outline_lyltm_29", We = "_success_lyltm_35", Ee = "_warning_lyltm_40", Fe = "_danger_lyltm_45", ze = "_info_lyltm_50", Ve = "_count_lyltm_55", Xe = "_mono_lyltm_63", Ue = "_version_lyltm_71", Ge = "_dismiss_lyltm_80", He = "_dismissBtn_lyltm_84", Ke = "_dot_lyltm_98", Ye = "_dotIndicator_lyltm_111", Ze = "_pill_lyltm_119", F = {
5
- badge: qe,
6
- neutral: Ae,
7
- accent: De,
8
- outline: Oe,
9
- success: We,
10
- warning: Ee,
11
- danger: Fe,
12
- info: ze,
13
- count: Ve,
14
- mono: Xe,
15
- version: Ue,
16
- dismiss: Ge,
17
- dismissBtn: He,
18
- dot: Ke,
19
- dotIndicator: Ye,
20
- pill: Ze
21
- }, Je = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) });
22
- function Qe({
23
- variant: o = "neutral",
24
- icon: l,
25
- pill: t = !1,
26
- dismissable: n = !1,
27
- onDismiss: a,
28
- dotColor: s,
29
- children: c,
30
- className: r,
31
- ...i
1
+ import { jsxs as d, jsx as e, Fragment as fe } from "react/jsx-runtime";
2
+ import { forwardRef as oe, useState as te, useCallback as re, useRef as se, useImperativeHandle as Be, useEffect as de, useMemo as he, useContext as De, createContext as Oe } from "react";
3
+ import { createPortal as Ee } from "react-dom";
4
+ const We = "_badge_lyltm_1", Fe = "_neutral_lyltm_18", ze = "_accent_lyltm_24", Ve = "_outline_lyltm_29", Xe = "_success_lyltm_35", Ue = "_warning_lyltm_40", Ge = "_danger_lyltm_45", He = "_info_lyltm_50", Ke = "_count_lyltm_55", Ye = "_mono_lyltm_63", Ze = "_version_lyltm_71", Je = "_dismiss_lyltm_80", Qe = "_dismissBtn_lyltm_84", Pe = "_dot_lyltm_98", et = "_dotIndicator_lyltm_111", tt = "_pill_lyltm_119", U = {
5
+ badge: We,
6
+ neutral: Fe,
7
+ accent: ze,
8
+ outline: Ve,
9
+ success: Xe,
10
+ warning: Ue,
11
+ danger: Ge,
12
+ info: He,
13
+ count: Ke,
14
+ mono: Ye,
15
+ version: Ze,
16
+ dismiss: Je,
17
+ dismissBtn: Qe,
18
+ dot: Pe,
19
+ dotIndicator: et,
20
+ pill: tt
21
+ }, nt = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) });
22
+ function lt({
23
+ variant: n = "neutral",
24
+ icon: a,
25
+ pill: l = !1,
26
+ dismissable: c = !1,
27
+ onDismiss: t,
28
+ dotColor: r,
29
+ children: s,
30
+ className: i,
31
+ ...o
32
32
  }) {
33
- if (o === "dot") {
34
- const m = [F.badge, F.dot, r].filter(Boolean).join(" ");
35
- return /* @__PURE__ */ d("span", { ...i, className: m, children: [
33
+ if (n === "dot") {
34
+ const f = [U.badge, U.dot, i].filter(Boolean).join(" ");
35
+ return /* @__PURE__ */ d("span", { ...o, className: f, children: [
36
36
  /* @__PURE__ */ e(
37
37
  "span",
38
38
  {
39
- className: F.dotIndicator,
40
- style: { background: s ?? "var(--accent)" }
39
+ className: U.dotIndicator,
40
+ style: { background: r ?? "var(--accent)" }
41
41
  }
42
42
  ),
43
- c
43
+ s
44
44
  ] });
45
45
  }
46
46
  const h = [
47
- F.badge,
48
- F[o],
49
- t ? F.pill : null,
50
- n ? F.dismiss : null,
51
- r
47
+ U.badge,
48
+ U[n],
49
+ l ? U.pill : null,
50
+ c ? U.dismiss : null,
51
+ i
52
52
  ].filter(Boolean).join(" ");
53
- return /* @__PURE__ */ d("span", { ...i, className: h, children: [
54
- l || null,
55
- c,
56
- n && /* @__PURE__ */ e(
53
+ return /* @__PURE__ */ d("span", { ...o, className: h, children: [
54
+ a || null,
55
+ s,
56
+ c && /* @__PURE__ */ e(
57
57
  "button",
58
58
  {
59
59
  type: "button",
60
- className: F.dismissBtn,
60
+ className: U.dismissBtn,
61
61
  "aria-label": "Remove",
62
- onClick: a,
63
- children: /* @__PURE__ */ e(Je, {})
62
+ onClick: t,
63
+ children: /* @__PURE__ */ e(nt, {})
64
64
  }
65
65
  )
66
66
  ] });
67
67
  }
68
- Qe.displayName = "Badge";
69
- function Pe({
70
- direction: o = "vertical",
71
- track: l = !1,
72
- arrows: t = !1,
73
- autoHide: n = !1,
74
- expand: a = !1,
75
- scrollbarSize: s,
76
- height: c,
77
- children: r,
78
- className: i,
68
+ lt.displayName = "Badge";
69
+ const ot = "_breadcrumb_1y22n_1", st = "_list_1y22n_7", ct = "_item_1y22n_17", at = "_separator_1y22n_23", it = "_link_1y22n_33", rt = "_current_1y22n_34", dt = "_button_1y22n_68", _t = "_disabled_1y22n_79", W = {
70
+ breadcrumb: ot,
71
+ list: st,
72
+ item: ct,
73
+ separator: at,
74
+ link: it,
75
+ current: rt,
76
+ button: dt,
77
+ disabled: _t
78
+ }, ht = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "m9 18 6-6-6-6" }) });
79
+ function je({
80
+ items: n,
81
+ separator: a = /* @__PURE__ */ e(ht, {}),
82
+ label: l = "Breadcrumb",
83
+ className: c,
84
+ ...t
85
+ }) {
86
+ const r = [W.breadcrumb, c].filter(Boolean).join(" ");
87
+ return /* @__PURE__ */ e("nav", { ...t, className: r, "aria-label": l, children: /* @__PURE__ */ e("ol", { className: W.list, children: n.map((s, i) => {
88
+ var v, b;
89
+ const o = i === n.length - 1, h = s.current ?? o, f = s.disabled || h;
90
+ return /* @__PURE__ */ d("li", { className: W.item, children: [
91
+ i > 0 && /* @__PURE__ */ e("span", { className: W.separator, "aria-hidden": "true", children: a }),
92
+ s.href && !f ? /* @__PURE__ */ e(
93
+ "a",
94
+ {
95
+ ...s.linkProps,
96
+ className: [W.link, (v = s.linkProps) == null ? void 0 : v.className].filter(Boolean).join(" "),
97
+ href: s.href,
98
+ children: s.label
99
+ }
100
+ ) : s.onClick && !f ? /* @__PURE__ */ e(
101
+ "button",
102
+ {
103
+ ...s.buttonProps,
104
+ type: "button",
105
+ className: [W.link, W.button, (b = s.buttonProps) == null ? void 0 : b.className].filter(Boolean).join(" "),
106
+ onClick: s.onClick,
107
+ children: s.label
108
+ }
109
+ ) : /* @__PURE__ */ e(
110
+ "span",
111
+ {
112
+ className: [W.current, s.disabled ? W.disabled : null].filter(Boolean).join(" "),
113
+ "aria-current": h ? "page" : void 0,
114
+ children: s.label
115
+ }
116
+ )
117
+ ] }, i);
118
+ }) }) });
119
+ }
120
+ je.displayName = "Breadcrumb";
121
+ const _s = je;
122
+ function ut({
123
+ direction: n = "vertical",
124
+ track: a = !1,
125
+ arrows: l = !1,
126
+ autoHide: c = !1,
127
+ expand: t = !1,
128
+ scrollbarSize: r,
129
+ height: s,
130
+ children: i,
131
+ className: o,
79
132
  style: h,
80
- ...m
133
+ ...f
81
134
  }) {
82
- const p = [
135
+ const v = [
83
136
  "sb",
84
- l ? "sb-track" : null,
85
- t ? "sb-arrows" : null,
86
- n ? "sb-auto-hide" : null,
87
- a ? "sb-expand" : null,
88
- i
89
- ].filter(Boolean).join(" "), f = o === "vertical" ? { overflowY: "auto", overflowX: "hidden" } : o === "horizontal" ? { overflowX: "auto", overflowY: "hidden" } : { overflow: "auto" }, g = s !== void 0 ? { "--sb-w": `${s}px` } : void 0;
137
+ a ? "sb-track" : null,
138
+ l ? "sb-arrows" : null,
139
+ c ? "sb-auto-hide" : null,
140
+ t ? "sb-expand" : null,
141
+ o
142
+ ].filter(Boolean).join(" "), b = n === "vertical" ? { overflowY: "auto", overflowX: "hidden" } : n === "horizontal" ? { overflowX: "auto", overflowY: "hidden" } : { overflow: "auto" }, m = r !== void 0 ? { "--sb-w": `${r}px` } : void 0;
90
143
  return /* @__PURE__ */ e(
91
144
  "div",
92
145
  {
93
- ...m,
94
- className: p,
95
- style: { height: c, ...f, ...g, ...h },
96
- children: r
146
+ ...f,
147
+ className: v,
148
+ style: { height: s, ...b, ...m, ...h },
149
+ children: i
97
150
  }
98
151
  );
99
152
  }
100
- Pe.displayName = "Scrollable";
101
- const et = "_btn_xuv7s_1", tt = "_icon_xuv7s_33", nt = "_primary_xuv7s_42", ot = "_secondary_xuv7s_50", lt = "_ghost_xuv7s_60", st = "_danger_xuv7s_70", at = "_success_xuv7s_78", ct = "_warning_xuv7s_86", it = "_sm_xuv7s_95", rt = "_md_xuv7s_103", dt = "_lg_xuv7s_105", ee = {
102
- btn: et,
103
- icon: tt,
104
- primary: nt,
105
- secondary: ot,
106
- ghost: lt,
107
- danger: st,
108
- success: at,
109
- warning: ct,
110
- sm: it,
111
- md: rt,
112
- lg: dt
113
- }, _t = J(
153
+ ut.displayName = "Scrollable";
154
+ const mt = "_btn_xuv7s_1", ft = "_icon_xuv7s_33", gt = "_primary_xuv7s_42", vt = "_secondary_xuv7s_50", bt = "_ghost_xuv7s_60", kt = "_danger_xuv7s_70", yt = "_success_xuv7s_78", Nt = "_warning_xuv7s_86", xt = "_sm_xuv7s_95", Bt = "_md_xuv7s_103", jt = "_lg_xuv7s_105", ie = {
155
+ btn: mt,
156
+ icon: ft,
157
+ primary: gt,
158
+ secondary: vt,
159
+ ghost: bt,
160
+ danger: kt,
161
+ success: yt,
162
+ warning: Nt,
163
+ sm: xt,
164
+ md: Bt,
165
+ lg: jt
166
+ }, Ct = oe(
114
167
  ({
115
- type: o = "button",
116
- variant: l = "secondary",
117
- size: t = "md",
118
- icon: n,
119
- loading: a = !1,
120
- children: s,
121
- className: c,
122
- disabled: r,
123
- ...i
168
+ type: n = "button",
169
+ variant: a = "secondary",
170
+ size: l = "md",
171
+ icon: c,
172
+ loading: t = !1,
173
+ children: r,
174
+ className: s,
175
+ disabled: i,
176
+ ...o
124
177
  }, h) => {
125
- const m = [
126
- ee.btn,
127
- ee[l],
128
- ee[t],
129
- c
178
+ const f = [
179
+ ie.btn,
180
+ ie[a],
181
+ ie[l],
182
+ s
130
183
  ].filter(Boolean).join(" ");
131
184
  return /* @__PURE__ */ d(
132
185
  "button",
133
186
  {
134
187
  ref: h,
135
- type: o,
136
- disabled: r || a,
137
- className: m,
138
- ...i,
188
+ type: n,
189
+ disabled: i || t,
190
+ className: f,
191
+ ...o,
139
192
  children: [
140
- n ? /* @__PURE__ */ e("span", { className: ee.icon, children: n }) : null,
141
- s
193
+ c ? /* @__PURE__ */ e("span", { className: ie.icon, children: c }) : null,
194
+ r
142
195
  ]
143
196
  }
144
197
  );
145
198
  }
146
199
  );
147
- _t.displayName = "Button";
148
- const ut = "_card_1gxgi_1", ht = "_bordered_1gxgi_8", mt = "_tilt_1gxgi_12", pt = "_closeBtn_1gxgi_20", ft = "_padSm_1gxgi_41", gt = "_padMd_1gxgi_42", vt = "_padLg_1gxgi_43", kt = "_padNone_1gxgi_44", bt = "_header_1gxgi_47", Nt = "_headerIcon_1gxgi_54", xt = "_title_1gxgi_63", yt = "_subtitle_1gxgi_69", wt = "_stat_1gxgi_76", Bt = "_statValue_1gxgi_83", Ct = "_statUnit_1gxgi_91", jt = "_statDelta_1gxgi_97", It = "_deltaPositive_1gxgi_102", $t = "_deltaNegative_1gxgi_103", Lt = "_deltaNeutral_1gxgi_104", k = {
149
- card: ut,
150
- bordered: ht,
151
- tilt: mt,
152
- closeBtn: pt,
153
- padSm: ft,
154
- padMd: gt,
155
- padLg: vt,
156
- padNone: kt,
157
- header: bt,
158
- headerIcon: Nt,
159
- title: xt,
160
- subtitle: yt,
161
- stat: wt,
162
- statValue: Bt,
163
- statUnit: Ct,
164
- statDelta: jt,
165
- deltaPositive: It,
166
- deltaNegative: $t,
167
- deltaNeutral: Lt
168
- }, Mt = {
169
- none: k.padNone,
170
- sm: k.padSm,
171
- md: k.padMd,
172
- lg: k.padLg
173
- }, Tt = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) });
174
- function St({
175
- padding: o = "md",
176
- bordered: l = !1,
177
- tilt: t = !1,
178
- onClose: n,
179
- closeBtnProps: a,
180
- children: s,
181
- className: c,
182
- ...r
200
+ Ct.displayName = "Button";
201
+ const wt = "_card_1gxgi_1", $t = "_bordered_1gxgi_8", It = "_tilt_1gxgi_12", Lt = "_closeBtn_1gxgi_20", Mt = "_padSm_1gxgi_41", Tt = "_padMd_1gxgi_42", St = "_padLg_1gxgi_43", Rt = "_padNone_1gxgi_44", qt = "_header_1gxgi_47", pt = "_headerIcon_1gxgi_54", At = "_title_1gxgi_63", Dt = "_subtitle_1gxgi_69", Ot = "_stat_1gxgi_76", Et = "_statValue_1gxgi_83", Wt = "_statUnit_1gxgi_91", Ft = "_statDelta_1gxgi_97", zt = "_deltaPositive_1gxgi_102", Vt = "_deltaNegative_1gxgi_103", Xt = "_deltaNeutral_1gxgi_104", x = {
202
+ card: wt,
203
+ bordered: $t,
204
+ tilt: It,
205
+ closeBtn: Lt,
206
+ padSm: Mt,
207
+ padMd: Tt,
208
+ padLg: St,
209
+ padNone: Rt,
210
+ header: qt,
211
+ headerIcon: pt,
212
+ title: At,
213
+ subtitle: Dt,
214
+ stat: Ot,
215
+ statValue: Et,
216
+ statUnit: Wt,
217
+ statDelta: Ft,
218
+ deltaPositive: zt,
219
+ deltaNegative: Vt,
220
+ deltaNeutral: Xt
221
+ }, Ut = {
222
+ none: x.padNone,
223
+ sm: x.padSm,
224
+ md: x.padMd,
225
+ lg: x.padLg
226
+ }, Gt = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) });
227
+ function Ht({
228
+ padding: n = "md",
229
+ bordered: a = !1,
230
+ tilt: l = !1,
231
+ onClose: c,
232
+ closeBtnProps: t,
233
+ children: r,
234
+ className: s,
235
+ ...i
183
236
  }) {
184
- const i = [k.card, Mt[o], l ? k.bordered : null, t ? k.tilt : null, c].filter(Boolean).join(" ");
185
- return /* @__PURE__ */ d("div", { ...r, className: i, children: [
186
- n && /* @__PURE__ */ e(
237
+ const o = [x.card, Ut[n], a ? x.bordered : null, l ? x.tilt : null, s].filter(Boolean).join(" ");
238
+ return /* @__PURE__ */ d("div", { ...i, className: o, children: [
239
+ c && /* @__PURE__ */ e(
187
240
  "button",
188
241
  {
189
242
  type: "button",
190
243
  "aria-label": "Close",
191
- ...a,
192
- className: [k.closeBtn, a == null ? void 0 : a.className].filter(Boolean).join(" "),
193
- onClick: n,
194
- children: /* @__PURE__ */ e(Tt, {})
244
+ ...t,
245
+ className: [x.closeBtn, t == null ? void 0 : t.className].filter(Boolean).join(" "),
246
+ onClick: c,
247
+ children: /* @__PURE__ */ e(Gt, {})
195
248
  }
196
249
  ),
197
- s
250
+ r
198
251
  ] });
199
252
  }
200
- St.displayName = "Card";
201
- function Rt({
202
- icon: o,
203
- title: l,
204
- subtitle: t,
205
- className: n,
206
- ...a
253
+ Ht.displayName = "Card";
254
+ function Kt({
255
+ icon: n,
256
+ title: a,
257
+ subtitle: l,
258
+ className: c,
259
+ ...t
207
260
  }) {
208
- return /* @__PURE__ */ d("div", { ...a, className: [k.header, n].filter(Boolean).join(" "), children: [
209
- o && /* @__PURE__ */ e("span", { className: k.headerIcon, children: o }),
261
+ return /* @__PURE__ */ d("div", { ...t, className: [x.header, c].filter(Boolean).join(" "), children: [
262
+ n && /* @__PURE__ */ e("span", { className: x.headerIcon, children: n }),
210
263
  /* @__PURE__ */ d("div", { children: [
211
- /* @__PURE__ */ e("div", { className: k.title, children: l }),
212
- t && /* @__PURE__ */ e("div", { className: k.subtitle, children: t })
264
+ /* @__PURE__ */ e("div", { className: x.title, children: a }),
265
+ l && /* @__PURE__ */ e("div", { className: x.subtitle, children: l })
213
266
  ] })
214
267
  ] });
215
268
  }
216
- Rt.displayName = "CardHeader";
217
- function qt({
218
- value: o,
219
- unit: l,
220
- delta: t,
221
- deltaDirection: n = "positive",
222
- className: a,
223
- ...s
269
+ Kt.displayName = "CardHeader";
270
+ function Yt({
271
+ value: n,
272
+ unit: a,
273
+ delta: l,
274
+ deltaDirection: c = "positive",
275
+ className: t,
276
+ ...r
224
277
  }) {
225
- const c = [
226
- k.statDelta,
227
- n === "positive" ? k.deltaPositive : n === "negative" ? k.deltaNegative : k.deltaNeutral
278
+ const s = [
279
+ x.statDelta,
280
+ c === "positive" ? x.deltaPositive : c === "negative" ? x.deltaNegative : x.deltaNeutral
228
281
  ].filter(Boolean).join(" ");
229
- return /* @__PURE__ */ d("div", { ...s, className: [k.stat, a].filter(Boolean).join(" "), children: [
230
- /* @__PURE__ */ d("span", { className: k.statValue, children: [
231
- o,
232
- l && /* @__PURE__ */ d("span", { className: k.statUnit, children: [
282
+ return /* @__PURE__ */ d("div", { ...r, className: [x.stat, t].filter(Boolean).join(" "), children: [
283
+ /* @__PURE__ */ d("span", { className: x.statValue, children: [
284
+ n,
285
+ a && /* @__PURE__ */ d("span", { className: x.statUnit, children: [
233
286
  " ",
234
- l
287
+ a
235
288
  ] })
236
289
  ] }),
237
- t && /* @__PURE__ */ e("span", { className: c, children: t })
290
+ l && /* @__PURE__ */ e("span", { className: s, children: l })
238
291
  ] });
239
292
  }
240
- qt.displayName = "CardStat";
241
- function re(o, l, t) {
242
- const [n, a] = Y(l), s = o !== void 0, c = s ? o : n, r = te(
243
- (i) => {
244
- s || a(i), t == null || t(i);
293
+ Yt.displayName = "CardStat";
294
+ function ge(n, a, l) {
295
+ const [c, t] = te(a), r = n !== void 0, s = r ? n : c, i = re(
296
+ (o) => {
297
+ r || t(o), l == null || l(o);
245
298
  },
246
- [s, t]
299
+ [r, l]
247
300
  );
248
- return [c, r, s];
301
+ return [s, i, r];
249
302
  }
250
- const At = "X", Dt = /[a-zA-Z0-9]/;
251
- function ve(o, l = {}) {
252
- const t = l.allowedPattern ?? Dt;
253
- return o.split("").filter((n) => t.test(n)).join("");
303
+ const Zt = "X", Jt = /[a-zA-Z0-9]/;
304
+ function Ce(n, a = {}) {
305
+ const l = a.allowedPattern ?? Jt;
306
+ return n.split("").filter((c) => l.test(c)).join("");
254
307
  }
255
- function Ot(o, l, t = {}) {
256
- const n = t.placeholder ?? At, a = ve(o, t);
257
- let s = 0, c = "";
258
- for (const r of l) {
259
- if (s >= a.length)
308
+ function Qt(n, a, l = {}) {
309
+ const c = l.placeholder ?? Zt, t = Ce(n, l);
310
+ let r = 0, s = "";
311
+ for (const i of a) {
312
+ if (r >= t.length)
260
313
  break;
261
- if (r === n) {
262
- c += a[s], s += 1;
314
+ if (i === c) {
315
+ s += t[r], r += 1;
263
316
  continue;
264
317
  }
265
- c += r;
318
+ s += i;
266
319
  }
267
- return c;
320
+ return s;
268
321
  }
269
- const Wt = "_wrapper_25x8h_1", Et = "_field_25x8h_7", Ft = "_label_25x8h_13", zt = "_input_25x8h_22", Vt = "_hasIcon_25x8h_52", Xt = "_hasIconRight_25x8h_55", Ut = "_hasClear_25x8h_58", Gt = "_hasClearAndIconRight_25x8h_61", Ht = "_iconSlot_25x8h_64", Kt = "_iconSlotRight_25x8h_78", Yt = "_iconSlotRightWithClear_25x8h_92", Zt = "_clearBtn_25x8h_95", I = {
270
- wrapper: Wt,
271
- field: Et,
272
- label: Ft,
273
- input: zt,
274
- hasIcon: Vt,
275
- hasIconRight: Xt,
276
- hasClear: Ut,
277
- hasClearAndIconRight: Gt,
278
- iconSlot: Ht,
279
- iconSlotRight: Kt,
280
- iconSlotRightWithClear: Yt,
281
- clearBtn: Zt
282
- }, Jt = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Qt = J(
322
+ const Pt = "_wrapper_25x8h_1", en = "_field_25x8h_7", tn = "_label_25x8h_13", nn = "_input_25x8h_22", ln = "_hasIcon_25x8h_52", on = "_hasIconRight_25x8h_55", sn = "_hasClear_25x8h_58", cn = "_hasClearAndIconRight_25x8h_61", an = "_iconSlot_25x8h_64", rn = "_iconSlotRight_25x8h_78", dn = "_iconSlotRightWithClear_25x8h_92", _n = "_clearBtn_25x8h_95", T = {
323
+ wrapper: Pt,
324
+ field: en,
325
+ label: tn,
326
+ input: nn,
327
+ hasIcon: ln,
328
+ hasIconRight: on,
329
+ hasClear: sn,
330
+ hasClearAndIconRight: cn,
331
+ iconSlot: an,
332
+ iconSlotRight: rn,
333
+ iconSlotRightWithClear: dn,
334
+ clearBtn: _n
335
+ }, hn = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), un = oe(
283
336
  ({
284
- label: o,
285
- icon: l,
286
- iconPosition: t = "left",
287
- clearable: n = !1,
288
- clearButtonProps: a,
289
- clearLabel: s,
290
- defaultValue: c = "",
291
- disabled: r,
292
- mask: i,
337
+ label: n,
338
+ icon: a,
339
+ iconPosition: l = "left",
340
+ clearable: c = !1,
341
+ clearButtonProps: t,
342
+ clearLabel: r,
343
+ defaultValue: s = "",
344
+ disabled: i,
345
+ mask: o,
293
346
  maskAllowedPattern: h,
294
- maskPlaceholder: m,
295
- selectOnFocus: p = !1,
296
- textAlign: f,
297
- onChange: g,
298
- onValueChange: N,
299
- value: S,
300
- wrapperProps: j,
301
- fieldProps: b,
347
+ maskPlaceholder: f,
348
+ selectOnFocus: v = !1,
349
+ textAlign: b,
350
+ inputProps: m,
351
+ onChange: C,
352
+ onValueChange: I,
353
+ value: L,
354
+ wrapperProps: B,
355
+ fieldProps: g,
302
356
  className: y,
303
- ...x
304
- }, $) => {
305
- const L = ne(null), [U, Q] = re(
306
- S,
307
- c,
308
- (v) => {
309
- N == null || N({
310
- value: v,
311
- rawValue: i ? ve(v, {
357
+ style: V,
358
+ ...k
359
+ }, G) => {
360
+ const H = se(null), [Q, ne] = ge(
361
+ L,
362
+ s,
363
+ (N) => {
364
+ I == null || I({
365
+ value: N,
366
+ rawValue: o ? Ce(N, {
312
367
  allowedPattern: h
313
- }) : v
368
+ }) : N
314
369
  });
315
370
  }
316
371
  );
317
- ge($, () => L.current);
318
- const oe = te(
319
- (v) => i ? Ot(v, i, {
372
+ Be(G, () => H.current);
373
+ const M = re(
374
+ (N) => o ? Qt(N, o, {
320
375
  allowedPattern: h,
321
- placeholder: m
322
- }) : v,
323
- [i, h, m]
324
- ), R = (v) => {
325
- const q = oe(v.target.value);
326
- v.target.value = q, Q(q), g == null || g(v);
376
+ placeholder: f
377
+ }) : N,
378
+ [o, h, f]
379
+ ), S = (N) => {
380
+ var Z;
381
+ const Y = M(N.target.value);
382
+ N.target.value = Y, ne(Y), C == null || C(N), (Z = m == null ? void 0 : m.onChange) == null || Z.call(m, N);
327
383
  }, O = () => {
328
- var v;
329
- Q(""), (v = L.current) == null || v.focus();
330
- }, W = l && t === "right", P = l && t === "left", Z = [
331
- I.input,
332
- P ? I.hasIcon : null,
333
- W ? I.hasIconRight : null,
334
- n && W ? I.hasClearAndIconRight : n ? I.hasClear : null,
335
- y
336
- ].filter(Boolean).join(" "), V = (v) => {
337
- var q;
338
- p && v.target.select(), (q = x.onFocus) == null || q.call(x, v);
339
- }, G = /* @__PURE__ */ e(
384
+ var N;
385
+ ne(""), (N = H.current) == null || N.focus();
386
+ }, R = a && l === "right", E = a && l === "left", K = [
387
+ T.input,
388
+ E ? T.hasIcon : null,
389
+ R ? T.hasIconRight : null,
390
+ c && R ? T.hasClearAndIconRight : c ? T.hasClear : null,
391
+ y,
392
+ m == null ? void 0 : m.className
393
+ ].filter(Boolean).join(" "), P = (N) => {
394
+ var Y, Z;
395
+ v && N.target.select(), (Y = k.onFocus) == null || Y.call(k, N), (Z = m == null ? void 0 : m.onFocus) == null || Z.call(m, N);
396
+ }, w = {
397
+ ...V,
398
+ ...m == null ? void 0 : m.style,
399
+ ...b ? { textAlign: b } : null
400
+ }, X = i || (m == null ? void 0 : m.disabled), ce = /* @__PURE__ */ e(
340
401
  "input",
341
402
  {
342
- ref: L,
343
- disabled: r,
344
- value: oe(U),
345
- onChange: R,
346
- onFocus: V,
347
- className: Z,
348
- style: f ? { textAlign: f, ...x.style } : x.style,
349
- ...x
403
+ ...k,
404
+ ...m,
405
+ ref: H,
406
+ disabled: X,
407
+ value: M(Q),
408
+ onChange: S,
409
+ onFocus: P,
410
+ className: K,
411
+ style: w
350
412
  }
351
- ), w = [I.wrapper, j == null ? void 0 : j.className].filter(Boolean).join(" "), E = /* @__PURE__ */ d("span", { ...j, className: w, children: [
352
- P ? /* @__PURE__ */ e("span", { className: I.iconSlot, children: l }) : null,
353
- G,
354
- W ? /* @__PURE__ */ e("span", { className: [I.iconSlotRight, n ? I.iconSlotRightWithClear : null].filter(Boolean).join(" "), children: l }) : null,
355
- n ? /* @__PURE__ */ e(
413
+ ), le = [T.wrapper, B == null ? void 0 : B.className].filter(Boolean).join(" "), ae = /* @__PURE__ */ d("span", { ...B, className: le, children: [
414
+ E ? /* @__PURE__ */ e("span", { className: T.iconSlot, children: a }) : null,
415
+ ce,
416
+ R ? /* @__PURE__ */ e("span", { className: [T.iconSlotRight, c ? T.iconSlotRightWithClear : null].filter(Boolean).join(" "), children: a }) : null,
417
+ c ? /* @__PURE__ */ e(
356
418
  "button",
357
419
  {
358
420
  type: "button",
359
421
  "aria-label": "Clear",
360
422
  title: "Clear",
361
- disabled: r || U.length === 0,
423
+ disabled: X || Q.length === 0,
362
424
  onClick: O,
363
- className: I.clearBtn,
364
- ...a,
365
- children: (a == null ? void 0 : a.children) ?? /* @__PURE__ */ e(Jt, {})
425
+ className: T.clearBtn,
426
+ ...t,
427
+ children: (t == null ? void 0 : t.children) ?? /* @__PURE__ */ e(hn, {})
366
428
  }
367
429
  ) : null
368
430
  ] });
369
- return !o && !b ? E : /* @__PURE__ */ d("div", { ...b, className: [I.field, b == null ? void 0 : b.className].filter(Boolean).join(" "), children: [
370
- o ? /* @__PURE__ */ e("label", { className: I.label, children: o }) : null,
371
- E
431
+ return !n && !g ? ae : /* @__PURE__ */ d("div", { ...g, className: [T.field, g == null ? void 0 : g.className].filter(Boolean).join(" "), children: [
432
+ n ? /* @__PURE__ */ e("label", { className: T.label, children: n }) : null,
433
+ ae
372
434
  ] });
373
435
  }
374
436
  );
375
- Qt.displayName = "Input";
376
- const Pt = "_checkbox_7kjwa_2", en = "_checkboxBox_7kjwa_13", tn = "_checked_7kjwa_33", nn = "_indeterminate_7kjwa_42", on = "_disabled_7kjwa_55", ln = "_radio_7kjwa_61", sn = "_radioDot_7kjwa_72", an = "_radioChecked_7kjwa_85", cn = "_radioDisabled_7kjwa_97", rn = "_radioGroup_7kjwa_102", dn = "_switchWrap_7kjwa_109", _n = "_switchTrack_7kjwa_120", un = "_switchOn_7kjwa_143", hn = "_switchDisabled_7kjwa_153", C = {
377
- checkbox: Pt,
378
- checkboxBox: en,
379
- checked: tn,
380
- indeterminate: nn,
381
- disabled: on,
382
- radio: ln,
383
- radioDot: sn,
384
- radioChecked: an,
385
- radioDisabled: cn,
386
- radioGroup: rn,
387
- switchWrap: dn,
388
- switchTrack: _n,
389
- switchOn: un,
390
- switchDisabled: hn
391
- }, mn = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) });
392
- function pn({
393
- label: o,
394
- checked: l,
395
- defaultChecked: t,
396
- indeterminate: n = !1,
397
- disabled: a = !1,
398
- onChange: s,
399
- className: c,
400
- ...r
437
+ un.displayName = "Input";
438
+ const mn = "_checkbox_7kjwa_2", fn = "_checkboxBox_7kjwa_13", gn = "_checked_7kjwa_33", vn = "_indeterminate_7kjwa_42", bn = "_disabled_7kjwa_55", kn = "_radio_7kjwa_61", yn = "_radioDot_7kjwa_72", Nn = "_radioChecked_7kjwa_85", xn = "_radioDisabled_7kjwa_97", Bn = "_radioGroup_7kjwa_102", jn = "_switchWrap_7kjwa_109", Cn = "_switchTrack_7kjwa_120", wn = "_switchOn_7kjwa_143", $n = "_switchDisabled_7kjwa_153", $ = {
439
+ checkbox: mn,
440
+ checkboxBox: fn,
441
+ checked: gn,
442
+ indeterminate: vn,
443
+ disabled: bn,
444
+ radio: kn,
445
+ radioDot: yn,
446
+ radioChecked: Nn,
447
+ radioDisabled: xn,
448
+ radioGroup: Bn,
449
+ switchWrap: jn,
450
+ switchTrack: Cn,
451
+ switchOn: wn,
452
+ switchDisabled: $n
453
+ }, In = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) });
454
+ function Ln({
455
+ label: n,
456
+ checked: a,
457
+ defaultChecked: l,
458
+ indeterminate: c = !1,
459
+ disabled: t = !1,
460
+ onChange: r,
461
+ className: s,
462
+ ...i
401
463
  }) {
402
- const i = l ?? t ?? !1, h = [
403
- C.checkbox,
404
- i && !n ? C.checked : null,
405
- n ? C.indeterminate : null,
406
- a ? C.disabled : null,
407
- c
464
+ const o = a ?? l ?? !1, h = [
465
+ $.checkbox,
466
+ o && !c ? $.checked : null,
467
+ c ? $.indeterminate : null,
468
+ t ? $.disabled : null,
469
+ s
408
470
  ].filter(Boolean).join(" ");
409
471
  return /* @__PURE__ */ d("label", { className: h, children: [
410
472
  /* @__PURE__ */ e(
411
473
  "input",
412
474
  {
413
- ...r,
475
+ ...i,
414
476
  type: "checkbox",
415
- checked: i,
416
- disabled: a,
477
+ checked: o,
478
+ disabled: t,
417
479
  style: { display: "none" },
418
- onChange: (m) => s == null ? void 0 : s(m.currentTarget.checked)
480
+ onChange: (f) => r == null ? void 0 : r(f.currentTarget.checked)
419
481
  }
420
482
  ),
421
- /* @__PURE__ */ e("span", { className: C.checkboxBox, children: !n && /* @__PURE__ */ e(mn, {}) }),
422
- o
483
+ /* @__PURE__ */ e("span", { className: $.checkboxBox, children: !c && /* @__PURE__ */ e(In, {}) }),
484
+ n
423
485
  ] });
424
486
  }
425
- pn.displayName = "Checkbox";
426
- function fn({
427
- label: o,
428
- checked: l = !1,
429
- disabled: t = !1,
430
- onChange: n,
431
- value: a,
432
- className: s,
433
- ...c
487
+ Ln.displayName = "Checkbox";
488
+ function Mn({
489
+ label: n,
490
+ checked: a = !1,
491
+ disabled: l = !1,
492
+ onChange: c,
493
+ value: t,
494
+ className: r,
495
+ ...s
434
496
  }) {
435
- const r = [
436
- C.radio,
437
- l ? C.radioChecked : null,
438
- t ? C.radioDisabled : null,
439
- s
497
+ const i = [
498
+ $.radio,
499
+ a ? $.radioChecked : null,
500
+ l ? $.radioDisabled : null,
501
+ r
440
502
  ].filter(Boolean).join(" ");
441
- return /* @__PURE__ */ d("label", { className: r, children: [
503
+ return /* @__PURE__ */ d("label", { className: i, children: [
442
504
  /* @__PURE__ */ e(
443
505
  "input",
444
506
  {
445
- ...c,
507
+ ...s,
446
508
  type: "radio",
447
- checked: l,
448
- disabled: t,
449
- value: a,
509
+ checked: a,
510
+ disabled: l,
511
+ value: t,
450
512
  style: { display: "none" },
451
- onChange: (i) => n == null ? void 0 : n(i.currentTarget.value)
513
+ onChange: (o) => c == null ? void 0 : c(o.currentTarget.value)
452
514
  }
453
515
  ),
454
- /* @__PURE__ */ e("span", { className: C.radioDot }),
455
- o
516
+ /* @__PURE__ */ e("span", { className: $.radioDot }),
517
+ n
456
518
  ] });
457
519
  }
458
- fn.displayName = "Radio";
459
- function gn({ children: o, className: l, ...t }) {
460
- const n = [C.radioGroup, l].filter(Boolean).join(" ");
461
- return /* @__PURE__ */ e("div", { ...t, className: n, role: "radiogroup", children: o });
520
+ Mn.displayName = "Radio";
521
+ function Tn({ children: n, className: a, ...l }) {
522
+ const c = [$.radioGroup, a].filter(Boolean).join(" ");
523
+ return /* @__PURE__ */ e("div", { ...l, className: c, role: "radiogroup", children: n });
462
524
  }
463
- gn.displayName = "RadioGroup";
464
- function vn({
465
- label: o,
466
- checked: l,
467
- defaultChecked: t,
468
- disabled: n = !1,
469
- onChange: a,
470
- className: s,
471
- ...c
525
+ Tn.displayName = "RadioGroup";
526
+ function Sn({
527
+ label: n,
528
+ checked: a,
529
+ defaultChecked: l,
530
+ disabled: c = !1,
531
+ onChange: t,
532
+ className: r,
533
+ ...s
472
534
  }) {
473
- const r = l ?? t ?? !1, i = [
474
- C.switchWrap,
475
- r ? C.switchOn : null,
476
- n ? C.switchDisabled : null,
477
- s
535
+ const i = a ?? l ?? !1, o = [
536
+ $.switchWrap,
537
+ i ? $.switchOn : null,
538
+ c ? $.switchDisabled : null,
539
+ r
478
540
  ].filter(Boolean).join(" ");
479
- return /* @__PURE__ */ d("label", { className: i, children: [
541
+ return /* @__PURE__ */ d("label", { className: o, children: [
480
542
  /* @__PURE__ */ e(
481
543
  "input",
482
544
  {
483
- ...c,
545
+ ...s,
484
546
  type: "checkbox",
485
- checked: r,
486
- disabled: n,
547
+ checked: i,
548
+ disabled: c,
487
549
  style: { display: "none" },
488
- onChange: (h) => a == null ? void 0 : a(h.currentTarget.checked)
550
+ onChange: (h) => t == null ? void 0 : t(h.currentTarget.checked)
489
551
  }
490
552
  ),
491
- /* @__PURE__ */ e("span", { className: C.switchTrack }),
492
- o
553
+ /* @__PURE__ */ e("span", { className: $.switchTrack }),
554
+ n
493
555
  ] });
494
556
  }
495
- vn.displayName = "Switch";
496
- const kn = "_menu_pga52_1", bn = "_item_pga52_13", Nn = "_active_pga52_41", xn = "_danger_pga52_53", yn = "_disabled_pga52_65", wn = "_kbd_pga52_71", Bn = "_separator_pga52_79", X = {
497
- menu: kn,
498
- item: bn,
499
- active: Nn,
500
- danger: xn,
501
- disabled: yn,
502
- kbd: wn,
503
- separator: Bn
557
+ Sn.displayName = "Switch";
558
+ const Rn = "_menu_pga52_1", qn = "_item_pga52_13", pn = "_active_pga52_41", An = "_danger_pga52_53", Dn = "_disabled_pga52_65", On = "_kbd_pga52_71", En = "_separator_pga52_79", J = {
559
+ menu: Rn,
560
+ item: qn,
561
+ active: pn,
562
+ danger: An,
563
+ disabled: Dn,
564
+ kbd: On,
565
+ separator: En
504
566
  };
505
- function Cn({ children: o, className: l, ...t }) {
506
- const n = [X.menu, l].filter(Boolean).join(" ");
507
- return /* @__PURE__ */ e("div", { ...t, className: n, role: "menu", children: o });
567
+ function Wn({ children: n, className: a, ...l }) {
568
+ const c = [J.menu, a].filter(Boolean).join(" ");
569
+ return /* @__PURE__ */ e("div", { ...l, className: c, role: "menu", children: n });
508
570
  }
509
- Cn.displayName = "Menu";
510
- function jn({
511
- icon: o,
512
- kbd: l,
513
- active: t = !1,
514
- danger: n = !1,
515
- disabled: a = !1,
516
- children: s,
517
- className: c,
518
- ...r
571
+ Wn.displayName = "Menu";
572
+ function Fn({
573
+ icon: n,
574
+ kbd: a,
575
+ active: l = !1,
576
+ danger: c = !1,
577
+ disabled: t = !1,
578
+ children: r,
579
+ className: s,
580
+ ...i
519
581
  }) {
520
- const i = [
521
- X.item,
522
- t ? X.active : null,
523
- n ? X.danger : null,
524
- a ? X.disabled : null,
525
- c
582
+ const o = [
583
+ J.item,
584
+ l ? J.active : null,
585
+ c ? J.danger : null,
586
+ t ? J.disabled : null,
587
+ s
526
588
  ].filter(Boolean).join(" ");
527
- return /* @__PURE__ */ d("button", { ...r, type: "button", className: i, disabled: a, role: "menuitem", children: [
528
- o,
529
- s,
530
- l && /* @__PURE__ */ e("span", { className: X.kbd, children: l })
589
+ return /* @__PURE__ */ d("button", { ...i, type: "button", className: o, disabled: t, role: "menuitem", children: [
590
+ n,
591
+ r,
592
+ a && /* @__PURE__ */ e("span", { className: J.kbd, children: a })
531
593
  ] });
532
594
  }
533
- jn.displayName = "MenuItem";
534
- function In({ className: o, ...l }) {
535
- const t = [X.separator, o].filter(Boolean).join(" ");
536
- return /* @__PURE__ */ e("div", { ...l, className: t, role: "separator" });
595
+ Fn.displayName = "MenuItem";
596
+ function zn({ className: n, ...a }) {
597
+ const l = [J.separator, n].filter(Boolean).join(" ");
598
+ return /* @__PURE__ */ e("div", { ...a, className: l, role: "separator" });
537
599
  }
538
- In.displayName = "MenuSeparator";
539
- const $n = "_backdrop_pya14_1", Ln = "_modal_pya14_23", Mn = "_header_pya14_37", Tn = "_titleBlock_pya14_45", Sn = "_title_pya14_45", Rn = "_subtitle_pya14_58", qn = "_closeBtn_pya14_64", An = "_body_pya14_86", Dn = "_footer_pya14_92", A = {
540
- backdrop: $n,
541
- modal: Ln,
542
- header: Mn,
543
- titleBlock: Tn,
544
- title: Sn,
545
- subtitle: Rn,
546
- closeBtn: qn,
547
- body: An,
548
- footer: Dn
549
- }, On = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "11", height: "11", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Wn = J(
600
+ zn.displayName = "MenuSeparator";
601
+ const Vn = "_backdrop_pya14_1", Xn = "_modal_pya14_23", Un = "_header_pya14_37", Gn = "_titleBlock_pya14_45", Hn = "_title_pya14_45", Kn = "_subtitle_pya14_58", Yn = "_closeBtn_pya14_64", Zn = "_body_pya14_86", Jn = "_footer_pya14_92", F = {
602
+ backdrop: Vn,
603
+ modal: Xn,
604
+ header: Un,
605
+ titleBlock: Gn,
606
+ title: Hn,
607
+ subtitle: Kn,
608
+ closeBtn: Yn,
609
+ body: Zn,
610
+ footer: Jn
611
+ }, Qn = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "11", height: "11", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Pn = oe(
550
612
  ({
551
- open: o,
552
- title: l,
553
- subtitle: t,
554
- children: n,
555
- footer: a,
556
- closeOnBackdrop: s = !0,
557
- showCloseButton: c = !0,
558
- backdropProps: r,
559
- modalProps: i,
613
+ open: n,
614
+ title: a,
615
+ subtitle: l,
616
+ children: c,
617
+ footer: t,
618
+ closeOnBackdrop: r = !0,
619
+ showCloseButton: s = !0,
620
+ backdropProps: i,
621
+ modalProps: o,
560
622
  headerProps: h,
561
- bodyProps: m,
562
- footerProps: p,
563
- closeButtonProps: f,
564
- onOpenChange: g,
565
- onClose: N
566
- }, S) => {
567
- const j = ne(null);
568
- ge(S, () => j.current), ie(() => {
569
- if (!o) return;
570
- const L = (U) => {
571
- U.key === "Escape" && b();
623
+ bodyProps: f,
624
+ footerProps: v,
625
+ closeButtonProps: b,
626
+ onOpenChange: m,
627
+ onClose: C
628
+ }, I) => {
629
+ const L = se(null);
630
+ Be(I, () => L.current), de(() => {
631
+ if (!n) return;
632
+ const k = (G) => {
633
+ G.key === "Escape" && B();
572
634
  };
573
- return document.addEventListener("keydown", L), () => document.removeEventListener("keydown", L);
574
- }, [o]);
575
- const b = () => {
576
- g == null || g(!1), N == null || N();
577
- }, y = (L) => {
578
- s && L.target === L.currentTarget && b();
635
+ return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
636
+ }, [n]);
637
+ const B = () => {
638
+ m == null || m(!1), C == null || C();
639
+ }, g = (k) => {
640
+ r && k.target === k.currentTarget && B();
579
641
  };
580
- if (!o) return null;
581
- const x = [A.backdrop, r == null ? void 0 : r.className].filter(Boolean).join(" "), $ = [A.modal, i == null ? void 0 : i.className].filter(Boolean).join(" ");
642
+ if (!n) return null;
643
+ const y = [F.backdrop, i == null ? void 0 : i.className].filter(Boolean).join(" "), V = [F.modal, o == null ? void 0 : o.className].filter(Boolean).join(" ");
582
644
  return /* @__PURE__ */ e(
583
645
  "div",
584
646
  {
585
- ...r,
586
- className: x,
587
- onClick: y,
647
+ ...i,
648
+ className: y,
649
+ onClick: g,
588
650
  role: "presentation",
589
651
  children: /* @__PURE__ */ d(
590
652
  "div",
591
653
  {
592
- ref: j,
593
- ...i,
594
- className: $,
654
+ ref: L,
655
+ ...o,
656
+ className: V,
595
657
  role: "dialog",
596
658
  "aria-modal": "true",
597
659
  children: [
598
- (l || c) && /* @__PURE__ */ d("header", { ...h, className: [A.header, h == null ? void 0 : h.className].filter(Boolean).join(" "), children: [
599
- /* @__PURE__ */ d("div", { className: A.titleBlock, children: [
600
- l ? /* @__PURE__ */ e("div", { className: A.title, children: l }) : null,
601
- t ? /* @__PURE__ */ e("div", { className: A.subtitle, children: t }) : null
660
+ (a || s) && /* @__PURE__ */ d("header", { ...h, className: [F.header, h == null ? void 0 : h.className].filter(Boolean).join(" "), children: [
661
+ /* @__PURE__ */ d("div", { className: F.titleBlock, children: [
662
+ a ? /* @__PURE__ */ e("div", { className: F.title, children: a }) : null,
663
+ l ? /* @__PURE__ */ e("div", { className: F.subtitle, children: l }) : null
602
664
  ] }),
603
- c && /* @__PURE__ */ e(
665
+ s && /* @__PURE__ */ e(
604
666
  "button",
605
667
  {
606
668
  type: "button",
607
669
  "aria-label": "Close",
608
- className: A.closeBtn,
609
- onClick: b,
610
- ...f,
611
- children: (f == null ? void 0 : f.children) ?? /* @__PURE__ */ e(On, {})
670
+ className: F.closeBtn,
671
+ onClick: B,
672
+ ...b,
673
+ children: (b == null ? void 0 : b.children) ?? /* @__PURE__ */ e(Qn, {})
612
674
  }
613
675
  )
614
676
  ] }),
615
677
  /* @__PURE__ */ e(
616
678
  "section",
617
679
  {
618
- ...m,
619
- className: [A.body, m == null ? void 0 : m.className].filter(Boolean).join(" "),
620
- children: n
680
+ ...f,
681
+ className: [F.body, f == null ? void 0 : f.className].filter(Boolean).join(" "),
682
+ children: c
621
683
  }
622
684
  ),
623
- a && /* @__PURE__ */ e(
685
+ t && /* @__PURE__ */ e(
624
686
  "footer",
625
687
  {
626
- ...p,
627
- className: [A.footer, p == null ? void 0 : p.className].filter(Boolean).join(" "),
628
- children: a
688
+ ...v,
689
+ className: [F.footer, v == null ? void 0 : v.className].filter(Boolean).join(" "),
690
+ children: t
629
691
  }
630
692
  )
631
693
  ]
@@ -635,640 +697,699 @@ const $n = "_backdrop_pya14_1", Ln = "_modal_pya14_23", Mn = "_header_pya14_37",
635
697
  );
636
698
  }
637
699
  );
638
- Wn.displayName = "Modal";
639
- const En = "_wrapper_10d4l_1", Fn = "_pop_10d4l_8", zn = "_sideRight_10d4l_22", Vn = "_sideTop_10d4l_27", Xn = "_arrow_10d4l_34", Un = "_head_10d4l_60", Gn = "_title_10d4l_67", Hn = "_closeBtn_10d4l_74", Kn = "_body_10d4l_105", D = {
640
- wrapper: En,
641
- pop: Fn,
642
- sideRight: zn,
643
- sideTop: Vn,
644
- arrow: Xn,
645
- head: Un,
646
- title: Gn,
647
- closeBtn: Hn,
648
- body: Kn
649
- }, Yn = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
700
+ Pn.displayName = "Modal";
701
+ const el = "_wrapper_10d4l_1", tl = "_pop_10d4l_8", nl = "_sideRight_10d4l_22", ll = "_sideTop_10d4l_27", ol = "_arrow_10d4l_34", sl = "_head_10d4l_60", cl = "_title_10d4l_67", al = "_closeBtn_10d4l_74", il = "_body_10d4l_105", z = {
702
+ wrapper: el,
703
+ pop: tl,
704
+ sideRight: nl,
705
+ sideTop: ll,
706
+ arrow: ol,
707
+ head: sl,
708
+ title: cl,
709
+ closeBtn: al,
710
+ body: il
711
+ }, rl = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
650
712
  /* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
651
713
  /* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
652
714
  ] });
653
- function Zn({
654
- open: o,
655
- defaultOpen: l = !1,
656
- title: t,
657
- children: n,
658
- trigger: a,
659
- side: s = "bottom-start",
660
- showCloseButton: c = !0,
661
- onOpenChange: r,
662
- popProps: i
715
+ function dl({
716
+ open: n,
717
+ defaultOpen: a = !1,
718
+ title: l,
719
+ children: c,
720
+ trigger: t,
721
+ side: r = "bottom-start",
722
+ showCloseButton: s = !0,
723
+ onOpenChange: i,
724
+ popProps: o
663
725
  }) {
664
- const [h, m] = Y(l), p = o !== void 0, f = p ? o : h, g = ne(null);
665
- function N(y) {
666
- p || m(y), r == null || r(y);
726
+ const [h, f] = te(a), v = n !== void 0, b = v ? n : h, m = se(null);
727
+ function C(g) {
728
+ v || f(g), i == null || i(g);
667
729
  }
668
- ie(() => {
669
- function y(x) {
670
- g.current && !g.current.contains(x.target) && N(!1);
730
+ de(() => {
731
+ function g(y) {
732
+ m.current && !m.current.contains(y.target) && C(!1);
671
733
  }
672
- return f && document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
673
- }, [f]);
674
- const S = s.startsWith("top"), j = s.endsWith("end"), b = [
675
- D.pop,
676
- j ? D.sideRight : null,
677
- S ? D.sideTop : null,
678
- i == null ? void 0 : i.className
734
+ return b && document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
735
+ }, [b]);
736
+ const I = r.startsWith("top"), L = r.endsWith("end"), B = [
737
+ z.pop,
738
+ L ? z.sideRight : null,
739
+ I ? z.sideTop : null,
740
+ o == null ? void 0 : o.className
679
741
  ].filter(Boolean).join(" ");
680
- return /* @__PURE__ */ d("div", { ref: g, className: D.wrapper, children: [
681
- a && /* @__PURE__ */ e("div", { onClick: () => N(!f), style: { display: "inline-flex" }, children: a }),
682
- f && /* @__PURE__ */ d("div", { ...i, className: b, children: [
683
- /* @__PURE__ */ e("span", { className: D.arrow }),
684
- (t || c) && /* @__PURE__ */ d("div", { className: D.head, children: [
685
- t && /* @__PURE__ */ e("span", { className: D.title, children: t }),
686
- c && /* @__PURE__ */ e(
742
+ return /* @__PURE__ */ d("div", { ref: m, className: z.wrapper, children: [
743
+ t && /* @__PURE__ */ e("div", { onClick: () => C(!b), style: { display: "inline-flex" }, children: t }),
744
+ b && /* @__PURE__ */ d("div", { ...o, className: B, children: [
745
+ /* @__PURE__ */ e("span", { className: z.arrow }),
746
+ (l || s) && /* @__PURE__ */ d("div", { className: z.head, children: [
747
+ l && /* @__PURE__ */ e("span", { className: z.title, children: l }),
748
+ s && /* @__PURE__ */ e(
687
749
  "button",
688
750
  {
689
751
  type: "button",
690
- className: D.closeBtn,
752
+ className: z.closeBtn,
691
753
  "aria-label": "Close",
692
- onClick: () => N(!1),
693
- children: /* @__PURE__ */ e(Yn, {})
754
+ onClick: () => C(!1),
755
+ children: /* @__PURE__ */ e(rl, {})
694
756
  }
695
757
  )
696
758
  ] }),
697
- /* @__PURE__ */ e("div", { className: D.body, children: n })
759
+ /* @__PURE__ */ e("div", { className: z.body, children: c })
698
760
  ] })
699
761
  ] });
700
762
  }
701
- Zn.displayName = "Popover";
702
- const Jn = "_group_1ltkm_1", Qn = "_pb_1ltkm_11", Pn = "_on_1ltkm_40", eo = "_accent_1ltkm_45", to = "_solo_1ltkm_50", no = "_disabled_1ltkm_65", K = {
703
- group: Jn,
704
- pb: Qn,
705
- on: Pn,
706
- accent: eo,
707
- solo: to,
708
- disabled: no
763
+ dl.displayName = "Popover";
764
+ const _l = "_group_1ltkm_1", hl = "_pb_1ltkm_11", ul = "_on_1ltkm_40", ml = "_accent_1ltkm_45", fl = "_solo_1ltkm_50", gl = "_disabled_1ltkm_65", ee = {
765
+ group: _l,
766
+ pb: hl,
767
+ on: ul,
768
+ accent: ml,
769
+ solo: fl,
770
+ disabled: gl
709
771
  };
710
- function oo({ children: o, className: l, ...t }) {
711
- const n = [K.group, l].filter(Boolean).join(" ");
712
- return /* @__PURE__ */ e("div", { ...t, className: n, role: "group", children: o });
772
+ function vl({ children: n, className: a, ...l }) {
773
+ const c = [ee.group, a].filter(Boolean).join(" ");
774
+ return /* @__PURE__ */ e("div", { ...l, className: c, role: "group", children: n });
713
775
  }
714
- oo.displayName = "PushButtonGroup";
715
- function lo({
716
- on: o = !1,
717
- accent: l = !1,
718
- solo: t = !1,
719
- icon: n,
720
- children: a,
721
- disabled: s = !1,
722
- className: c,
723
- ...r
776
+ vl.displayName = "PushButtonGroup";
777
+ function bl({
778
+ on: n = !1,
779
+ accent: a = !1,
780
+ solo: l = !1,
781
+ icon: c,
782
+ children: t,
783
+ disabled: r = !1,
784
+ className: s,
785
+ ...i
724
786
  }) {
725
- const i = [
726
- K.pb,
727
- o ? K.on : null,
728
- o && l ? K.accent : null,
729
- t ? K.solo : null,
730
- s ? K.disabled : null,
731
- c
787
+ const o = [
788
+ ee.pb,
789
+ n ? ee.on : null,
790
+ n && a ? ee.accent : null,
791
+ l ? ee.solo : null,
792
+ r ? ee.disabled : null,
793
+ s
732
794
  ].filter(Boolean).join(" ");
733
- return /* @__PURE__ */ d("button", { ...r, type: "button", className: i, disabled: s, children: [
734
- n,
735
- a
795
+ return /* @__PURE__ */ d("button", { ...i, type: "button", className: o, disabled: r, children: [
796
+ c,
797
+ t
736
798
  ] });
737
799
  }
738
- lo.displayName = "PushButton";
739
- const so = "_root_qhol4_1", ao = "_field_qhol4_6", co = "_label_qhol4_12", io = "_labelMeta_qhol4_24", ro = "_trigger_qhol4_33", _o = "_triggerOpen_qhol4_59", uo = "_triggerConnectedBottom_qhol4_64", ho = "_triggerConnectedTop_qhol4_69", mo = "_triggerValue_qhol4_74", po = "_triggerPlaceholder_qhol4_83", fo = "_chevron_qhol4_85", go = "_chevronOpen_qhol4_94", vo = "_chips_qhol4_97", ko = "_chip_qhol4_97", bo = "_chipOverflow_qhol4_120", No = "_clearBtn_qhol4_123", xo = "_popover_qhol4_143", yo = "_popoverBottom_qhol4_154", wo = "_popoverTop_qhol4_162", Bo = "_search_qhol4_181", Co = "_searchIcon_qhol4_188", jo = "_searchInput_qhol4_195", Io = "_list_qhol4_209", $o = "_item_qhol4_217", Lo = "_itemAlignLeft_qhol4_230", Mo = "_itemAlignCenter_qhol4_231", To = "_itemAlignRight_qhol4_232", So = "_itemActive_qhol4_235", Ro = "_itemDisabled_qhol4_243", qo = "_itemMeta_qhol4_245", Ao = "_checkbox_qhol4_254", Do = "_checkboxChecked_qhol4_266", Oo = "_checkIcon_qhol4_278", Wo = "_emptyState_qhol4_299", Eo = "_popFooter_qhol4_307", Fo = "_popFooterBtn_qhol4_317", u = {
740
- root: so,
741
- field: ao,
742
- label: co,
743
- labelMeta: io,
744
- trigger: ro,
745
- triggerOpen: _o,
746
- triggerConnectedBottom: uo,
747
- triggerConnectedTop: ho,
748
- triggerValue: mo,
749
- triggerPlaceholder: po,
750
- chevron: fo,
751
- chevronOpen: go,
752
- chips: vo,
753
- chip: ko,
754
- chipOverflow: bo,
755
- clearBtn: No,
756
- popover: xo,
757
- popoverBottom: yo,
758
- popoverTop: wo,
759
- search: Bo,
760
- searchIcon: Co,
761
- searchInput: jo,
762
- list: Io,
763
- item: $o,
764
- itemAlignLeft: Lo,
765
- itemAlignCenter: Mo,
766
- itemAlignRight: To,
767
- itemActive: So,
768
- itemDisabled: Ro,
769
- itemMeta: qo,
770
- checkbox: Ao,
771
- checkboxChecked: Do,
772
- checkIcon: Oo,
773
- emptyState: Wo,
774
- popFooter: Eo,
775
- popFooterBtn: Fo
776
- }, zo = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "14", height: "14", children: /* @__PURE__ */ e("path", { d: "m6 9 6 6 6-6" }) }), fe = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Vo = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
800
+ bl.displayName = "PushButton";
801
+ const kl = "_root_qhol4_1", yl = "_field_qhol4_6", Nl = "_label_qhol4_12", xl = "_labelMeta_qhol4_24", Bl = "_trigger_qhol4_33", jl = "_triggerOpen_qhol4_59", Cl = "_triggerConnectedBottom_qhol4_64", wl = "_triggerConnectedTop_qhol4_69", $l = "_triggerValue_qhol4_74", Il = "_triggerPlaceholder_qhol4_83", Ll = "_chevron_qhol4_85", Ml = "_chevronOpen_qhol4_94", Tl = "_chips_qhol4_97", Sl = "_chip_qhol4_97", Rl = "_chipOverflow_qhol4_120", ql = "_clearBtn_qhol4_123", pl = "_popover_qhol4_143", Al = "_popoverBottom_qhol4_154", Dl = "_popoverTop_qhol4_162", Ol = "_search_qhol4_181", El = "_searchIcon_qhol4_188", Wl = "_searchInput_qhol4_195", Fl = "_list_qhol4_209", zl = "_item_qhol4_217", Vl = "_itemAlignLeft_qhol4_230", Xl = "_itemAlignCenter_qhol4_231", Ul = "_itemAlignRight_qhol4_232", Gl = "_itemActive_qhol4_235", Hl = "_itemDisabled_qhol4_243", Kl = "_itemMeta_qhol4_245", Yl = "_checkbox_qhol4_254", Zl = "_checkboxChecked_qhol4_266", Jl = "_checkIcon_qhol4_278", Ql = "_emptyState_qhol4_299", Pl = "_popFooter_qhol4_307", eo = "_popFooterBtn_qhol4_317", u = {
802
+ root: kl,
803
+ field: yl,
804
+ label: Nl,
805
+ labelMeta: xl,
806
+ trigger: Bl,
807
+ triggerOpen: jl,
808
+ triggerConnectedBottom: Cl,
809
+ triggerConnectedTop: wl,
810
+ triggerValue: $l,
811
+ triggerPlaceholder: Il,
812
+ chevron: Ll,
813
+ chevronOpen: Ml,
814
+ chips: Tl,
815
+ chip: Sl,
816
+ chipOverflow: Rl,
817
+ clearBtn: ql,
818
+ popover: pl,
819
+ popoverBottom: Al,
820
+ popoverTop: Dl,
821
+ search: Ol,
822
+ searchIcon: El,
823
+ searchInput: Wl,
824
+ list: Fl,
825
+ item: zl,
826
+ itemAlignLeft: Vl,
827
+ itemAlignCenter: Xl,
828
+ itemAlignRight: Ul,
829
+ itemActive: Gl,
830
+ itemDisabled: Hl,
831
+ itemMeta: Kl,
832
+ checkbox: Yl,
833
+ checkboxChecked: Zl,
834
+ checkIcon: Jl,
835
+ emptyState: Ql,
836
+ popFooter: Pl,
837
+ popFooterBtn: eo
838
+ }, to = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "14", height: "14", children: /* @__PURE__ */ e("path", { d: "m6 9 6 6 6-6" }) }), xe = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), no = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
777
839
  /* @__PURE__ */ e("circle", { cx: "11", cy: "11", r: "7" }),
778
840
  /* @__PURE__ */ e("path", { d: "m20 20-3.5-3.5" })
779
- ] }), ae = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) }), Xo = (o, l) => {
780
- const t = l.trim().toLowerCase();
781
- return t ? o.filter(
782
- (n) => String(n.label).toLowerCase().includes(t)
783
- ) : o;
784
- }, Uo = J(
841
+ ] }), ue = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", width: "10", height: "10", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) }), lo = (n, a) => {
842
+ const l = a.trim().toLowerCase();
843
+ return l ? n.filter(
844
+ (c) => String(c.label).toLowerCase().includes(l)
845
+ ) : n;
846
+ }, oo = oe(
785
847
  ({
786
- label: o,
787
- clearable: l = !1,
788
- defaultValue: t = null,
789
- disabled: n = !1,
790
- emptyLabel: a = "No options found",
791
- filterOptions: s = Xo,
792
- isLoading: c = !1,
793
- loadingLabel: r = "Loading...",
794
- multiple: i = !1,
848
+ label: n,
849
+ clearable: a = !1,
850
+ defaultValue: l = null,
851
+ disabled: c = !1,
852
+ emptyLabel: t = "No options found",
853
+ filterOptions: r = lo,
854
+ isLoading: s = !1,
855
+ loadingLabel: i = "Loading...",
856
+ multiple: o = !1,
795
857
  onSearchChange: h,
796
- onValueChange: m,
797
- options: p,
798
- optionsAlign: f = "left",
799
- optionsPosition: g = "bottom",
800
- placeholder: N = "Select",
801
- searchable: S = !1,
802
- searchPlaceholder: j = "Search...",
803
- showSelectedCount: b = !0,
804
- showClearAll: y = !0,
805
- showSelectedValues: x = !0,
806
- closeOnSelect: $,
807
- value: L,
808
- className: U,
858
+ onValueChange: f,
859
+ options: v,
860
+ optionsAlign: b = "left",
861
+ optionsPosition: m = "bottom",
862
+ placeholder: C = "Select",
863
+ searchable: I = !1,
864
+ searchPlaceholder: L = "Search...",
865
+ showSelectedCount: B = !0,
866
+ showClearAll: g = !0,
867
+ showSelectedValues: y = !0,
868
+ closeOnSelect: V,
869
+ selectProps: k,
870
+ value: G,
871
+ className: H,
809
872
  ...Q
810
- }, oe) => {
811
- const [R, O] = Y(!1), [W, P] = Y(""), Z = ne(null), [V, G] = re(
812
- L,
813
- t,
873
+ }, ne) => {
874
+ const [M, S] = te(!1), [O, R] = te(""), E = se(null), [K, P] = ge(
875
+ G,
876
+ l,
814
877
  (_) => {
815
- const B = p.filter(
816
- (H) => Array.isArray(_) ? _.includes(H.value) : H.value === _
878
+ const j = v.filter(
879
+ (p) => Array.isArray(_) ? _.includes(p.value) : p.value === _
817
880
  );
818
- m == null || m(_, B);
881
+ f == null || f(_, j);
819
882
  }
820
- ), w = se(
821
- () => Array.isArray(V) ? V : V ? [V] : [],
822
- [V]
823
- ), E = se(
824
- () => p.filter((_) => w.includes(_.value)),
825
- [p, w]
826
- ), v = se(
827
- () => s(p, W),
828
- [s, p, W]
883
+ ), w = he(
884
+ () => Array.isArray(K) ? K : K ? [K] : [],
885
+ [K]
886
+ ), X = he(
887
+ () => v.filter((_) => w.includes(_.value)),
888
+ [v, w]
889
+ ), ce = he(
890
+ () => r(v, O),
891
+ [r, v, O]
829
892
  );
830
- ie(() => {
831
- if (!R) return;
832
- const _ = (B) => {
833
- Z.current && !Z.current.contains(B.target) && O(!1);
893
+ de(() => {
894
+ if (!M) return;
895
+ const _ = (j) => {
896
+ E.current && !E.current.contains(j.target) && S(!1);
834
897
  };
835
898
  return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
836
- }, [R]);
837
- const q = (_) => {
838
- P(_), h == null || h(_);
839
- }, xe = (_) => {
899
+ }, [M]);
900
+ const le = (_) => {
901
+ R(_), h == null || h(_);
902
+ }, ae = (_) => {
840
903
  if (!_.disabled) {
841
- if (i) {
842
- const B = w.includes(_.value) ? w.filter((H) => H !== _.value) : [...w, _.value];
843
- G(B), $ && O(!1);
904
+ if (o) {
905
+ const j = w.includes(_.value) ? w.filter((p) => p !== _.value) : [...w, _.value];
906
+ P(j), V && S(!1);
844
907
  return;
845
908
  }
846
- G(_.value), ($ ?? !0) && O(!1);
909
+ P(_.value), (V ?? !0) && S(!1);
847
910
  }
848
- }, de = () => {
849
- G(i ? [] : null), q("");
850
- }, ye = () => {
911
+ }, N = () => {
912
+ P(o ? [] : null), le("");
913
+ }, Y = () => {
851
914
  if (w.length > 0) {
852
- de();
915
+ N();
853
916
  return;
854
917
  }
855
- G(p.filter((_) => !_.disabled).map((_) => _.value));
856
- }, we = (_) => {
857
- (_.key === "Enter" || _.key === " ") && (_.preventDefault(), O((B) => !B)), _.key === "Escape" && O(!1);
858
- }, _e = g === "top", Be = [
918
+ P(v.filter((_) => !_.disabled).map((_) => _.value));
919
+ }, Z = (_) => {
920
+ var j;
921
+ (j = k == null ? void 0 : k.onClick) == null || j.call(k, _), !_.defaultPrevented && !c && S((p) => !p);
922
+ }, Me = (_) => {
923
+ var j;
924
+ (j = k == null ? void 0 : k.onKeyDown) == null || j.call(k, _), !_.defaultPrevented && ((_.key === "Enter" || _.key === " ") && (_.preventDefault(), S((p) => !p)), _.key === "Escape" && S(!1));
925
+ }, ve = m === "top", Te = [
859
926
  u.trigger,
860
- R ? u.triggerOpen : null,
861
- R ? _e ? u.triggerConnectedTop : u.triggerConnectedBottom : null
862
- ].filter(Boolean).join(" "), Ce = !i || x, je = i && x && E.length > 0, le = i, Ie = i && (w.length > 0 || y), ue = Ce && E.length > 0, he = 2, me = E.length - he, $e = [u.root, U].filter(Boolean).join(" "), Le = {
927
+ M ? u.triggerOpen : null,
928
+ M ? ve ? u.triggerConnectedTop : u.triggerConnectedBottom : null,
929
+ k == null ? void 0 : k.className
930
+ ].filter(Boolean).join(" "), Se = !o || y, Re = o && y && X.length > 0, _e = o, qe = o && (w.length > 0 || g), be = Se && X.length > 0, ke = 2, ye = X.length - ke, pe = [u.root, H].filter(Boolean).join(" "), Ae = {
863
931
  left: u.itemAlignLeft,
864
932
  center: u.itemAlignCenter,
865
933
  right: u.itemAlignRight
866
- }[f], pe = /* @__PURE__ */ d("div", { ref: Z, ...Q, className: $e, children: [
934
+ }[b], Ne = /* @__PURE__ */ d("div", { ref: E, ...Q, className: pe, children: [
867
935
  /* @__PURE__ */ d(
868
936
  "button",
869
937
  {
938
+ ...k,
870
939
  type: "button",
871
- className: Be,
872
- disabled: n,
940
+ className: Te,
941
+ disabled: c,
873
942
  "aria-haspopup": "listbox",
874
- "aria-expanded": R,
875
- onClick: () => !n && O((_) => !_),
876
- onKeyDown: we,
943
+ "aria-expanded": M,
944
+ onClick: Z,
945
+ onKeyDown: Me,
877
946
  children: [
878
- je ? /* @__PURE__ */ d("div", { className: u.chips, children: [
879
- E.slice(0, he).map((_) => /* @__PURE__ */ e("span", { className: u.chip, children: _.label }, _.value)),
880
- me > 0 && /* @__PURE__ */ d("span", { className: [u.chip, u.chipOverflow].join(" "), children: [
947
+ Re ? /* @__PURE__ */ d("div", { className: u.chips, children: [
948
+ X.slice(0, ke).map((_) => /* @__PURE__ */ e("span", { className: u.chip, children: _.label }, _.value)),
949
+ ye > 0 && /* @__PURE__ */ d("span", { className: [u.chip, u.chipOverflow].join(" "), children: [
881
950
  "+",
882
- me
951
+ ye
883
952
  ] })
884
- ] }) : /* @__PURE__ */ e("span", { className: [u.triggerValue, ue ? null : u.triggerPlaceholder].filter(Boolean).join(" "), children: ue ? E.map((_) => _.label).join(", ") : N }),
885
- l && w.length > 0 && /* @__PURE__ */ e(
953
+ ] }) : /* @__PURE__ */ e("span", { className: [u.triggerValue, be ? null : u.triggerPlaceholder].filter(Boolean).join(" "), children: be ? X.map((_) => _.label).join(", ") : C }),
954
+ a && w.length > 0 && /* @__PURE__ */ e(
886
955
  "button",
887
956
  {
888
957
  type: "button",
889
958
  "aria-label": "Clear",
890
959
  className: u.clearBtn,
891
- disabled: n,
960
+ disabled: c,
892
961
  onClick: (_) => {
893
- _.stopPropagation(), de();
962
+ _.stopPropagation(), N();
894
963
  },
895
- children: /* @__PURE__ */ e(fe, {})
964
+ children: /* @__PURE__ */ e(xe, {})
896
965
  }
897
966
  ),
898
- /* @__PURE__ */ e("span", { className: [u.chevron, R ? u.chevronOpen : null].filter(Boolean).join(" "), children: /* @__PURE__ */ e(zo, {}) })
967
+ /* @__PURE__ */ e("span", { className: [u.chevron, M ? u.chevronOpen : null].filter(Boolean).join(" "), children: /* @__PURE__ */ e(to, {}) })
899
968
  ]
900
969
  }
901
970
  ),
902
- R && /* @__PURE__ */ d(
971
+ M && /* @__PURE__ */ d(
903
972
  "div",
904
973
  {
905
974
  className: [
906
975
  u.popover,
907
- _e ? u.popoverTop : u.popoverBottom
976
+ ve ? u.popoverTop : u.popoverBottom
908
977
  ].join(" "),
909
978
  role: "listbox",
910
- "aria-multiselectable": i || void 0,
979
+ "aria-multiselectable": o || void 0,
911
980
  children: [
912
- S && /* @__PURE__ */ d("div", { className: u.search, children: [
913
- /* @__PURE__ */ e("span", { className: u.searchIcon, children: /* @__PURE__ */ e(Vo, {}) }),
981
+ I && /* @__PURE__ */ d("div", { className: u.search, children: [
982
+ /* @__PURE__ */ e("span", { className: u.searchIcon, children: /* @__PURE__ */ e(no, {}) }),
914
983
  /* @__PURE__ */ e(
915
984
  "input",
916
985
  {
917
986
  autoFocus: !0,
918
- value: W,
919
- placeholder: j,
987
+ value: O,
988
+ placeholder: L,
920
989
  className: u.searchInput,
921
- onChange: (_) => q(_.target.value)
990
+ onChange: (_) => le(_.target.value)
922
991
  }
923
992
  ),
924
- W && /* @__PURE__ */ e("button", { className: u.clearBtn, onClick: () => q(""), children: /* @__PURE__ */ e(fe, {}) })
993
+ O && /* @__PURE__ */ e("button", { className: u.clearBtn, onClick: () => le(""), children: /* @__PURE__ */ e(xe, {}) })
925
994
  ] }),
926
995
  /* @__PURE__ */ d("ul", { className: [u.list, "sb"].join(" "), children: [
927
- c && /* @__PURE__ */ e("li", { className: u.emptyState, children: r }),
928
- !c && v.length === 0 && /* @__PURE__ */ e("li", { className: u.emptyState, children: a }),
929
- !c && v.map((_) => {
930
- const B = w.includes(_.value), H = [
996
+ s && /* @__PURE__ */ e("li", { className: u.emptyState, children: i }),
997
+ !s && ce.length === 0 && /* @__PURE__ */ e("li", { className: u.emptyState, children: t }),
998
+ !s && ce.map((_) => {
999
+ const j = w.includes(_.value), p = [
931
1000
  u.item,
932
- Le,
933
- B ? u.itemActive : null,
1001
+ Ae,
1002
+ j ? u.itemActive : null,
934
1003
  _.disabled ? u.itemDisabled : null
935
1004
  ].filter(Boolean).join(" ");
936
1005
  return /* @__PURE__ */ d(
937
1006
  "li",
938
1007
  {
939
- className: H,
1008
+ className: p,
940
1009
  role: "option",
941
- "aria-selected": B,
942
- onClick: () => xe(_),
1010
+ "aria-selected": j,
1011
+ onClick: () => ae(_),
943
1012
  children: [
944
- !le && f === "right" && B && /* @__PURE__ */ e("span", { className: u.checkIcon, children: /* @__PURE__ */ e(ae, {}) }),
945
- le ? /* @__PURE__ */ e("span", { className: [u.checkbox, B ? u.checkboxChecked : null].filter(Boolean).join(" "), children: B && /* @__PURE__ */ e(ae, {}) }) : null,
1013
+ !_e && b === "right" && j && /* @__PURE__ */ e("span", { className: u.checkIcon, children: /* @__PURE__ */ e(ue, {}) }),
1014
+ _e ? /* @__PURE__ */ e("span", { className: [u.checkbox, j ? u.checkboxChecked : null].filter(Boolean).join(" "), children: j && /* @__PURE__ */ e(ue, {}) }) : null,
946
1015
  /* @__PURE__ */ e("span", { children: _.label }),
947
1016
  _.meta && /* @__PURE__ */ e("span", { className: u.itemMeta, children: _.meta }),
948
- !le && f !== "right" && B && /* @__PURE__ */ e("span", { className: u.checkIcon, children: /* @__PURE__ */ e(ae, {}) })
1017
+ !_e && b !== "right" && j && /* @__PURE__ */ e("span", { className: u.checkIcon, children: /* @__PURE__ */ e(ue, {}) })
949
1018
  ]
950
1019
  },
951
1020
  _.value
952
1021
  );
953
1022
  })
954
1023
  ] }),
955
- Ie && (b || y) && /* @__PURE__ */ d("div", { className: u.popFooter, children: [
956
- b && /* @__PURE__ */ d("span", { children: [
1024
+ qe && (B || g) && /* @__PURE__ */ d("div", { className: u.popFooter, children: [
1025
+ B && /* @__PURE__ */ d("span", { children: [
957
1026
  w.length,
958
1027
  " selected"
959
1028
  ] }),
960
- y && /* @__PURE__ */ e("button", { className: u.popFooterBtn, onClick: ye, children: w.length > 0 ? "Clear all" : "Check all" })
1029
+ g && /* @__PURE__ */ e("button", { className: u.popFooterBtn, onClick: Y, children: w.length > 0 ? "Clear all" : "Check all" })
961
1030
  ] })
962
1031
  ]
963
1032
  }
964
1033
  )
965
1034
  ] });
966
- return o ? /* @__PURE__ */ d("div", { className: u.field, children: [
1035
+ return n ? /* @__PURE__ */ d("div", { className: u.field, children: [
967
1036
  /* @__PURE__ */ d("label", { className: u.label, children: [
968
- o,
969
- i && b && w.length > 0 && /* @__PURE__ */ d("span", { className: u.labelMeta, children: [
1037
+ n,
1038
+ o && B && w.length > 0 && /* @__PURE__ */ d("span", { className: u.labelMeta, children: [
970
1039
  "· ",
971
1040
  w.length,
972
1041
  " selected"
973
1042
  ] })
974
1043
  ] }),
975
- pe
976
- ] }) : pe;
1044
+ Ne
1045
+ ] }) : Ne;
977
1046
  }
978
1047
  );
979
- Uo.displayName = "Select";
980
- const Go = "_ring_mxe7t_2", Ho = "_spin_mxe7t_1", Ko = "_ringMuted_mxe7t_12", Yo = "_sm_mxe7t_14", Zo = "_md_mxe7t_15", Jo = "_lg_mxe7t_16", Qo = "_onAccent_mxe7t_19", Po = "_dots_mxe7t_29", el = "_dot_mxe7t_29", tl = "_dotPulse_mxe7t_1", nl = "_bar_mxe7t_52", ol = "_barFill_mxe7t_62", ll = "_barSlide_mxe7t_1", T = {
981
- ring: Go,
982
- spin: Ho,
983
- ringMuted: Ko,
984
- sm: Yo,
985
- md: Zo,
986
- lg: Jo,
987
- onAccent: Qo,
988
- dots: Po,
989
- dot: el,
990
- dotPulse: tl,
991
- bar: nl,
992
- barFill: ol,
993
- barSlide: ll
1048
+ oo.displayName = "Select";
1049
+ const so = "_ring_mxe7t_2", co = "_spin_mxe7t_1", ao = "_ringMuted_mxe7t_12", io = "_sm_mxe7t_14", ro = "_md_mxe7t_15", _o = "_lg_mxe7t_16", ho = "_onAccent_mxe7t_19", uo = "_dots_mxe7t_29", mo = "_dot_mxe7t_29", fo = "_dotPulse_mxe7t_1", go = "_bar_mxe7t_52", vo = "_barFill_mxe7t_62", bo = "_barSlide_mxe7t_1", A = {
1050
+ ring: so,
1051
+ spin: co,
1052
+ ringMuted: ao,
1053
+ sm: io,
1054
+ md: ro,
1055
+ lg: _o,
1056
+ onAccent: ho,
1057
+ dots: uo,
1058
+ dot: mo,
1059
+ dotPulse: fo,
1060
+ bar: go,
1061
+ barFill: vo,
1062
+ barSlide: bo
994
1063
  };
995
- function sl({
996
- variant: o = "ring",
997
- size: l = "md",
998
- muted: t = !1,
999
- onAccent: n = !1,
1000
- className: a,
1001
- ...s
1064
+ function we({
1065
+ variant: n = "ring",
1066
+ size: a = "md",
1067
+ muted: l = !1,
1068
+ onAccent: c = !1,
1069
+ className: t,
1070
+ ...r
1002
1071
  }) {
1003
- if (o === "dots") {
1004
- const r = [T.dots, a].filter(Boolean).join(" ");
1005
- return /* @__PURE__ */ d("span", { ...s, className: r, role: "status", "aria-label": "Loading", children: [
1006
- /* @__PURE__ */ e("span", { className: T.dot }),
1007
- /* @__PURE__ */ e("span", { className: T.dot }),
1008
- /* @__PURE__ */ e("span", { className: T.dot })
1072
+ if (n === "dots") {
1073
+ const i = [A.dots, t].filter(Boolean).join(" ");
1074
+ return /* @__PURE__ */ d("span", { ...r, className: i, role: "status", "aria-label": "Loading", children: [
1075
+ /* @__PURE__ */ e("span", { className: A.dot }),
1076
+ /* @__PURE__ */ e("span", { className: A.dot }),
1077
+ /* @__PURE__ */ e("span", { className: A.dot })
1009
1078
  ] });
1010
1079
  }
1011
- if (o === "bar") {
1012
- const r = [T.bar, a].filter(Boolean).join(" ");
1013
- return /* @__PURE__ */ e("span", { ...s, className: r, role: "status", "aria-label": "Loading", children: /* @__PURE__ */ e("span", { className: T.barFill }) });
1080
+ if (n === "bar") {
1081
+ const i = [A.bar, t].filter(Boolean).join(" ");
1082
+ return /* @__PURE__ */ e("span", { ...r, className: i, role: "status", "aria-label": "Loading", children: /* @__PURE__ */ e("span", { className: A.barFill }) });
1014
1083
  }
1015
- const c = [
1016
- T.ring,
1017
- T[l],
1018
- t ? T.ringMuted : null,
1019
- n ? T.onAccent : null,
1020
- a
1084
+ const s = [
1085
+ A.ring,
1086
+ A[a],
1087
+ l ? A.ringMuted : null,
1088
+ c ? A.onAccent : null,
1089
+ t
1021
1090
  ].filter(Boolean).join(" ");
1022
1091
  return /* @__PURE__ */ e(
1023
1092
  "span",
1024
1093
  {
1025
- ...s,
1026
- className: c,
1094
+ ...r,
1095
+ className: s,
1027
1096
  role: "status",
1028
1097
  "aria-label": "Loading"
1029
1098
  }
1030
1099
  );
1031
1100
  }
1032
- sl.displayName = "Spinner";
1033
- const al = "_field_fazrx_1", cl = "_label_fazrx_7", il = "_wrapper_fazrx_16", rl = "_textarea_fazrx_20", dl = "_mono_fazrx_53", _l = "_hasClear_fazrx_59", ul = "_clearBtn_fazrx_62", hl = "_footer_fazrx_84", ml = "_helpText_fazrx_92", pl = "_charCount_fazrx_94", fl = "_charCountOver_fazrx_100", M = {
1034
- field: al,
1035
- label: cl,
1036
- wrapper: il,
1037
- textarea: rl,
1038
- mono: dl,
1039
- hasClear: _l,
1040
- clearBtn: ul,
1041
- footer: hl,
1042
- helpText: ml,
1043
- charCount: pl,
1044
- charCountOver: fl
1045
- }, gl = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), vl = J(
1101
+ we.displayName = "Spinner";
1102
+ const ko = "_field_fazrx_1", yo = "_label_fazrx_7", No = "_wrapper_fazrx_16", xo = "_textarea_fazrx_20", Bo = "_mono_fazrx_53", jo = "_hasClear_fazrx_59", Co = "_clearBtn_fazrx_62", wo = "_footer_fazrx_84", $o = "_helpText_fazrx_92", Io = "_charCount_fazrx_94", Lo = "_charCountOver_fazrx_100", q = {
1103
+ field: ko,
1104
+ label: yo,
1105
+ wrapper: No,
1106
+ textarea: xo,
1107
+ mono: Bo,
1108
+ hasClear: jo,
1109
+ clearBtn: Co,
1110
+ footer: wo,
1111
+ helpText: $o,
1112
+ charCount: Io,
1113
+ charCountOver: Lo
1114
+ }, Mo = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "12", height: "12", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), To = oe(
1046
1115
  ({
1047
- label: o,
1048
- helpText: l,
1049
- maxLength: t,
1050
- clearable: n = !1,
1051
- mono: a = !1,
1052
- value: s,
1053
- defaultValue: c = "",
1054
- disabled: r,
1055
- onChange: i,
1056
- onValueChange: h,
1057
- className: m,
1058
- ...p
1059
- }, f) => {
1060
- const [g, N] = re(
1116
+ label: n,
1117
+ helpText: a,
1118
+ maxLength: l,
1119
+ clearable: c = !1,
1120
+ mono: t = !1,
1121
+ value: r,
1122
+ defaultValue: s = "",
1123
+ disabled: i,
1124
+ textareaProps: o,
1125
+ wrapperProps: h,
1126
+ fieldProps: f,
1127
+ clearButtonProps: v,
1128
+ onChange: b,
1129
+ onValueChange: m,
1130
+ className: C,
1131
+ style: I,
1132
+ ...L
1133
+ }, B) => {
1134
+ const [g, y] = ge(
1135
+ r,
1061
1136
  s,
1062
- c,
1063
- ($) => h == null ? void 0 : h($)
1064
- ), S = ($) => {
1065
- N($.target.value), i == null || i($);
1066
- }, j = () => {
1067
- N("");
1068
- }, b = t !== void 0 && g.length > t, y = [
1069
- M.textarea,
1137
+ (R) => m == null ? void 0 : m(R)
1138
+ ), V = (R) => {
1139
+ var E;
1140
+ y(R.target.value), b == null || b(R), (E = o == null ? void 0 : o.onChange) == null || E.call(o, R);
1141
+ }, k = () => {
1142
+ y("");
1143
+ }, G = l !== void 0 && g.length > l, H = [
1144
+ q.textarea,
1070
1145
  "sb",
1071
- a ? M.mono : null,
1072
- n ? M.hasClear : null,
1073
- m
1074
- ].filter(Boolean).join(" "), x = /* @__PURE__ */ d("div", { className: M.wrapper, children: [
1146
+ t ? q.mono : null,
1147
+ c ? q.hasClear : null,
1148
+ C,
1149
+ o == null ? void 0 : o.className
1150
+ ].filter(Boolean).join(" "), Q = [q.wrapper, h == null ? void 0 : h.className].filter(Boolean).join(" "), ne = [q.field, f == null ? void 0 : f.className].filter(Boolean).join(" "), M = {
1151
+ ...I,
1152
+ ...o == null ? void 0 : o.style
1153
+ }, S = i || (o == null ? void 0 : o.disabled), O = /* @__PURE__ */ d("div", { ...h, className: Q, children: [
1075
1154
  /* @__PURE__ */ e(
1076
1155
  "textarea",
1077
1156
  {
1078
- ref: f,
1079
- disabled: r,
1080
- maxLength: t,
1157
+ ...L,
1158
+ ...o,
1159
+ ref: B,
1160
+ disabled: S,
1161
+ maxLength: l,
1081
1162
  value: g,
1082
- onChange: S,
1083
- className: y,
1084
- ...p
1163
+ onChange: V,
1164
+ className: H,
1165
+ style: M
1085
1166
  }
1086
1167
  ),
1087
- n && /* @__PURE__ */ e(
1168
+ c && /* @__PURE__ */ e(
1088
1169
  "button",
1089
1170
  {
1090
1171
  type: "button",
1091
- className: M.clearBtn,
1092
- disabled: r || g.length === 0,
1172
+ className: q.clearBtn,
1173
+ disabled: S || g.length === 0,
1093
1174
  "aria-label": "Clear",
1094
- onClick: j,
1095
- children: /* @__PURE__ */ e(gl, {})
1175
+ onClick: k,
1176
+ ...v,
1177
+ children: (v == null ? void 0 : v.children) ?? /* @__PURE__ */ e(Mo, {})
1096
1178
  }
1097
1179
  )
1098
1180
  ] });
1099
- return !o && !l && t === void 0 ? x : /* @__PURE__ */ d("div", { className: M.field, children: [
1100
- o && /* @__PURE__ */ e("label", { className: M.label, children: o }),
1101
- x,
1102
- (l || t !== void 0) && /* @__PURE__ */ d("div", { className: M.footer, children: [
1103
- l && /* @__PURE__ */ e("span", { className: M.helpText, children: l }),
1104
- t !== void 0 && /* @__PURE__ */ d("span", { className: [M.charCount, b ? M.charCountOver : null].filter(Boolean).join(" "), children: [
1181
+ return !n && !a && l === void 0 ? O : /* @__PURE__ */ d("div", { ...f, className: ne, children: [
1182
+ n && /* @__PURE__ */ e("label", { className: q.label, children: n }),
1183
+ O,
1184
+ (a || l !== void 0) && /* @__PURE__ */ d("div", { className: q.footer, children: [
1185
+ a && /* @__PURE__ */ e("span", { className: q.helpText, children: a }),
1186
+ l !== void 0 && /* @__PURE__ */ d("span", { className: [q.charCount, G ? q.charCountOver : null].filter(Boolean).join(" "), children: [
1105
1187
  g.length,
1106
1188
  " / ",
1107
- t
1189
+ l
1108
1190
  ] })
1109
1191
  ] })
1110
1192
  ] });
1111
1193
  }
1112
1194
  );
1113
- vl.displayName = "Textarea";
1114
- const kl = "_toast_d6t69_1", bl = "_slideUp_d6t69_1", Nl = "_toastExiting_d6t69_26", xl = "_slideOut_d6t69_1", yl = "_lead_d6t69_30", wl = "_body_d6t69_37", Bl = "_title_d6t69_45", Cl = "_message_d6t69_51", jl = "_closeBtn_d6t69_56", Il = "_ok_d6t69_79", $l = "_error_d6t69_82", Ll = "_warning_d6t69_85", Ml = "_info_d6t69_88", Tl = "_stack_d6t69_92", z = {
1115
- toast: kl,
1116
- slideUp: bl,
1117
- toastExiting: Nl,
1118
- slideOut: xl,
1119
- lead: yl,
1120
- body: wl,
1121
- title: Bl,
1122
- message: Cl,
1123
- closeBtn: jl,
1124
- ok: Il,
1125
- error: $l,
1126
- warning: Ll,
1127
- info: Ml,
1128
- stack: Tl
1129
- }, Sl = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) }), ke = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "11", height: "11", children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Rl = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: [
1195
+ To.displayName = "Textarea";
1196
+ const So = "_toast_4d9rv_1", Ro = "_slideUp_4d9rv_1", qo = "_toastExiting_4d9rv_27", po = "_slideOut_4d9rv_1", Ao = "_lead_4d9rv_31", Do = "_body_4d9rv_41", Oo = "_title_4d9rv_49", Eo = "_message_4d9rv_55", Wo = "_closeBtn_4d9rv_60", Fo = "_ok_4d9rv_83", zo = "_error_4d9rv_86", Vo = "_warning_4d9rv_89", Xo = "_info_4d9rv_92", Uo = "_loading_4d9rv_95", Go = "_overlay_4d9rv_99", Ho = "_stack_4d9rv_108", D = {
1197
+ toast: So,
1198
+ slideUp: Ro,
1199
+ toastExiting: qo,
1200
+ slideOut: po,
1201
+ lead: Ao,
1202
+ body: Do,
1203
+ title: Oo,
1204
+ message: Eo,
1205
+ closeBtn: Wo,
1206
+ ok: Fo,
1207
+ error: zo,
1208
+ warning: Vo,
1209
+ info: Xo,
1210
+ loading: Uo,
1211
+ overlay: Go,
1212
+ stack: Ho
1213
+ }, Ko = () => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" }) }), $e = ({ size: n = 11 }) => /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: n, height: n, children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" }) }), Yo = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: [
1130
1214
  /* @__PURE__ */ e("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" }),
1131
1215
  /* @__PURE__ */ e("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
1132
1216
  /* @__PURE__ */ e("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
1133
- ] }), ql = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: [
1217
+ ] }), Zo = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", width: "16", height: "16", children: [
1134
1218
  /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
1135
1219
  /* @__PURE__ */ e("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
1136
1220
  /* @__PURE__ */ e("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
1137
- ] }), Al = {
1138
- ok: /* @__PURE__ */ e(Sl, {}),
1139
- error: /* @__PURE__ */ e(ke, {}),
1140
- warning: /* @__PURE__ */ e(Rl, {}),
1141
- info: /* @__PURE__ */ e(ql, {})
1221
+ ] }), Jo = {
1222
+ ok: /* @__PURE__ */ e(Ko, {}),
1223
+ error: /* @__PURE__ */ e($e, { size: 18 }),
1224
+ warning: /* @__PURE__ */ e(Yo, {}),
1225
+ info: /* @__PURE__ */ e(Zo, {}),
1226
+ loading: /* @__PURE__ */ e(we, { size: "sm", muted: !0 })
1142
1227
  };
1143
- function be({
1144
- variant: o = "ok",
1145
- title: l,
1146
- message: t,
1147
- onDismiss: n,
1148
- className: a,
1228
+ function Ie({
1229
+ variant: n = "ok",
1230
+ title: a,
1231
+ message: l,
1232
+ overlay: c = !1,
1233
+ onDismiss: t,
1234
+ className: r,
1149
1235
  ...s
1150
1236
  }) {
1151
- const c = [
1152
- z.toast,
1153
- z[o],
1154
- a
1155
- ].filter(Boolean).join(" ");
1156
- return /* @__PURE__ */ d("div", { ...s, className: c, role: "alert", children: [
1157
- /* @__PURE__ */ e("span", { className: z.lead, children: Al[o] }),
1158
- /* @__PURE__ */ d("div", { className: z.body, children: [
1159
- /* @__PURE__ */ e("div", { className: z.title, children: l }),
1160
- t && /* @__PURE__ */ e("div", { className: z.message, children: t })
1237
+ const i = n === "loading", o = [
1238
+ D.toast,
1239
+ D[n],
1240
+ r
1241
+ ].filter(Boolean).join(" "), h = /* @__PURE__ */ d("div", { ...s, className: o, role: "alert", children: [
1242
+ /* @__PURE__ */ e("span", { className: D.lead, children: Jo[n] }),
1243
+ /* @__PURE__ */ d("div", { className: D.body, children: [
1244
+ /* @__PURE__ */ e("div", { className: D.title, children: a }),
1245
+ l && /* @__PURE__ */ e("div", { className: D.message, children: l })
1161
1246
  ] }),
1162
- n && /* @__PURE__ */ e(
1247
+ t && !i && /* @__PURE__ */ e(
1163
1248
  "button",
1164
1249
  {
1165
1250
  type: "button",
1166
- className: z.closeBtn,
1251
+ className: D.closeBtn,
1167
1252
  "aria-label": "Dismiss",
1168
- onClick: n,
1169
- children: /* @__PURE__ */ e(ke, {})
1253
+ onClick: t,
1254
+ children: /* @__PURE__ */ e($e, {})
1170
1255
  }
1171
1256
  )
1172
1257
  ] });
1258
+ return !c || !i ? h : /* @__PURE__ */ d(fe, { children: [
1259
+ /* @__PURE__ */ e("div", { className: D.overlay, "aria-hidden": "true" }),
1260
+ h
1261
+ ] });
1173
1262
  }
1174
- be.displayName = "Toast";
1175
- const Ne = Se(null);
1176
- function Hl({ children: o }) {
1177
- const [l, t] = Y([]), n = te((s) => {
1178
- t((c) => c.filter((r) => r.id !== s));
1179
- }, []), a = te(
1263
+ Ie.displayName = "Toast";
1264
+ const Le = Oe(null);
1265
+ function hs({ children: n }) {
1266
+ const [a, l] = te([]), c = re((s) => {
1267
+ l((i) => i.filter((o) => o.id !== s));
1268
+ }, []), t = re(
1180
1269
  (s) => {
1181
- const c = Math.random().toString(36).slice(2), r = s.duration ?? 4e3;
1182
- return t((i) => [...i, { ...s, id: c }]), r > 0 && setTimeout(() => n(c), r), c;
1270
+ const i = Math.random().toString(36).slice(2), o = s.duration ?? (s.variant === "loading" ? 0 : 4e3);
1271
+ return l((h) => [...h, { ...s, id: i }]), o > 0 && setTimeout(() => c(i), o), i;
1183
1272
  },
1184
- [n]
1185
- );
1186
- return /* @__PURE__ */ d(Ne.Provider, { value: { toast: a, dismiss: n }, children: [
1187
- o,
1188
- typeof document < "u" && Re(
1189
- /* @__PURE__ */ e("div", { className: z.stack, children: l.map((s) => /* @__PURE__ */ e(
1190
- be,
1191
- {
1192
- variant: s.variant,
1193
- title: s.title,
1194
- message: s.message,
1195
- onDismiss: () => n(s.id)
1196
- },
1197
- s.id
1198
- )) }),
1273
+ [c]
1274
+ ), r = a.some((s) => s.variant === "loading" && s.overlay);
1275
+ return /* @__PURE__ */ d(Le.Provider, { value: { toast: t, dismiss: c }, children: [
1276
+ n,
1277
+ typeof document < "u" && Ee(
1278
+ /* @__PURE__ */ d(fe, { children: [
1279
+ r && /* @__PURE__ */ e("div", { className: D.overlay, "aria-hidden": "true" }),
1280
+ /* @__PURE__ */ e("div", { className: D.stack, children: a.map((s) => /* @__PURE__ */ e(
1281
+ Ie,
1282
+ {
1283
+ variant: s.variant,
1284
+ title: s.title,
1285
+ message: s.message,
1286
+ onDismiss: () => c(s.id)
1287
+ },
1288
+ s.id
1289
+ )) })
1290
+ ] }),
1199
1291
  document.body
1200
1292
  )
1201
1293
  ] });
1202
1294
  }
1203
- function Kl() {
1204
- const o = Te(Ne);
1205
- if (!o)
1295
+ function us() {
1296
+ const n = De(Le);
1297
+ if (!n)
1206
1298
  throw new Error("useToast must be used within a ToastProvider");
1207
- return o;
1299
+ return n;
1208
1300
  }
1209
- const Dl = "_wrapper_18lxw_1", Ol = "_tooltip_18lxw_6", Wl = "_fadeIn_18lxw_1", El = "_top_18lxw_33", Fl = "_bottom_18lxw_52", zl = "_kbd_18lxw_72", ce = {
1210
- wrapper: Dl,
1211
- tooltip: Ol,
1212
- fadeIn: Wl,
1213
- top: El,
1214
- bottom: Fl,
1215
- kbd: zl
1216
- };
1217
- function Vl({
1218
- content: o,
1219
- side: l = "top",
1220
- children: t,
1221
- wrapperProps: n,
1222
- disabled: a = !1
1301
+ const Qo = "_wrapper_1pjxy_1", Po = "_tooltip_1pjxy_6", es = "_fadeIn_1pjxy_1", ts = "_top_1pjxy_33", ns = "_bottom_1pjxy_52", ls = "_left_1pjxy_72", os = "_right_1pjxy_94", ss = "_kbd_1pjxy_115", me = {
1302
+ wrapper: Qo,
1303
+ tooltip: Po,
1304
+ fadeIn: es,
1305
+ top: ts,
1306
+ bottom: ns,
1307
+ left: ls,
1308
+ right: os,
1309
+ kbd: ss
1310
+ }, cs = 800;
1311
+ function as({
1312
+ content: n,
1313
+ side: a = "top",
1314
+ delay: l = cs,
1315
+ children: c,
1316
+ wrapperProps: t,
1317
+ disabled: r = !1
1223
1318
  }) {
1224
- const [s, c] = Y(!1);
1225
- if (a) return /* @__PURE__ */ e(Me, { children: t });
1226
- const r = [ce.tooltip, ce[l]].filter(Boolean).join(" "), i = [ce.wrapper, n == null ? void 0 : n.className].filter(Boolean).join(" ");
1319
+ const [s, i] = te(!1), o = se(null), h = () => {
1320
+ o.current !== null && (window.clearTimeout(o.current), o.current = null);
1321
+ };
1322
+ if (de(() => h, []), r) return /* @__PURE__ */ e(fe, { children: c });
1323
+ const f = () => {
1324
+ if (h(), l <= 0) {
1325
+ i(!0);
1326
+ return;
1327
+ }
1328
+ o.current = window.setTimeout(() => {
1329
+ i(!0), o.current = null;
1330
+ }, l);
1331
+ }, v = () => {
1332
+ h(), i(!1);
1333
+ }, b = (g) => {
1334
+ var y;
1335
+ (y = t == null ? void 0 : t.onMouseEnter) == null || y.call(t, g), f();
1336
+ }, m = (g) => {
1337
+ var y;
1338
+ (y = t == null ? void 0 : t.onMouseLeave) == null || y.call(t, g), v();
1339
+ }, C = (g) => {
1340
+ var y;
1341
+ (y = t == null ? void 0 : t.onFocus) == null || y.call(t, g), f();
1342
+ }, I = (g) => {
1343
+ var y;
1344
+ (y = t == null ? void 0 : t.onBlur) == null || y.call(t, g), v();
1345
+ }, L = [me.tooltip, me[a]].filter(Boolean).join(" "), B = [me.wrapper, t == null ? void 0 : t.className].filter(Boolean).join(" ");
1227
1346
  return /* @__PURE__ */ d(
1228
1347
  "span",
1229
1348
  {
1230
- ...n,
1231
- className: i,
1232
- onMouseEnter: () => c(!0),
1233
- onMouseLeave: () => c(!1),
1234
- onFocus: () => c(!0),
1235
- onBlur: () => c(!1),
1349
+ ...t,
1350
+ className: B,
1351
+ onMouseEnter: b,
1352
+ onMouseLeave: m,
1353
+ onFocus: C,
1354
+ onBlur: I,
1236
1355
  children: [
1237
- t,
1238
- s && /* @__PURE__ */ e("span", { className: r, role: "tooltip", children: o })
1356
+ c,
1357
+ s && /* @__PURE__ */ e("span", { className: L, role: "tooltip", children: n })
1239
1358
  ]
1240
1359
  }
1241
1360
  );
1242
1361
  }
1243
- Vl.displayName = "Tooltip";
1362
+ as.displayName = "Tooltip";
1244
1363
  export {
1245
- Qe as Badge,
1246
- _t as Button,
1247
- St as Card,
1248
- Rt as CardHeader,
1249
- qt as CardStat,
1250
- pn as Checkbox,
1251
- Qt as Input,
1252
- Cn as Menu,
1253
- jn as MenuItem,
1254
- In as MenuSeparator,
1255
- Wn as Modal,
1256
- Zn as Popover,
1257
- lo as PushButton,
1258
- oo as PushButtonGroup,
1259
- fn as Radio,
1260
- gn as RadioGroup,
1261
- Pe as Scrollable,
1262
- Uo as Select,
1263
- sl as Spinner,
1264
- vn as Switch,
1265
- vl as Textarea,
1266
- be as Toast,
1267
- Hl as ToastProvider,
1268
- Vl as Tooltip,
1269
- Ot as applyMask,
1270
- ve as getRawMaskValue,
1271
- re as useControlledState,
1272
- Kl as useToast
1364
+ lt as Badge,
1365
+ _s as BreadCrumb,
1366
+ je as Breadcrumb,
1367
+ Ct as Button,
1368
+ Ht as Card,
1369
+ Kt as CardHeader,
1370
+ Yt as CardStat,
1371
+ Ln as Checkbox,
1372
+ un as Input,
1373
+ Wn as Menu,
1374
+ Fn as MenuItem,
1375
+ zn as MenuSeparator,
1376
+ Pn as Modal,
1377
+ dl as Popover,
1378
+ bl as PushButton,
1379
+ vl as PushButtonGroup,
1380
+ Mn as Radio,
1381
+ Tn as RadioGroup,
1382
+ ut as Scrollable,
1383
+ oo as Select,
1384
+ we as Spinner,
1385
+ Sn as Switch,
1386
+ To as Textarea,
1387
+ Ie as Toast,
1388
+ hs as ToastProvider,
1389
+ as as Tooltip,
1390
+ Qt as applyMask,
1391
+ Ce as getRawMaskValue,
1392
+ ge as useControlledState,
1393
+ us as useToast
1273
1394
  };
1274
1395
  //# sourceMappingURL=super-kit.js.map