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