@velocityuikit/velocityui 0.1.16 → 0.1.18

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.
Files changed (33) hide show
  1. package/dist/components/Avatar/Avatar.d.ts +2 -0
  2. package/dist/components/Avatar/index.d.ts +1 -1
  3. package/dist/components/Badge/Badge.d.ts +2 -0
  4. package/dist/components/Badge/index.d.ts +1 -1
  5. package/dist/components/Button/Button.d.ts +2 -0
  6. package/dist/components/Button/index.d.ts +1 -1
  7. package/dist/components/ChatAttachment/ChatAttachment.d.ts +12 -0
  8. package/dist/components/ChatAttachment/index.d.ts +2 -0
  9. package/dist/components/ChatBubble/ChatBubble.d.ts +17 -0
  10. package/dist/components/ChatBubble/index.d.ts +2 -0
  11. package/dist/components/ChatHeader/ChatHeader.d.ts +12 -0
  12. package/dist/components/ChatHeader/index.d.ts +2 -0
  13. package/dist/components/ChatInput/ChatInput.d.ts +14 -0
  14. package/dist/components/ChatInput/index.d.ts +2 -0
  15. package/dist/components/ChatList/ChatList.d.ts +18 -0
  16. package/dist/components/ChatList/index.d.ts +2 -0
  17. package/dist/components/ChatReaction/ChatReaction.d.ts +8 -0
  18. package/dist/components/ChatReaction/index.d.ts +2 -0
  19. package/dist/components/ChatStatus/ChatStatus.d.ts +11 -0
  20. package/dist/components/ChatStatus/index.d.ts +2 -0
  21. package/dist/components/ChatThread/ChatThread.d.ts +11 -0
  22. package/dist/components/ChatThread/index.d.ts +2 -0
  23. package/dist/components/ChatTimestamp/ChatTimestamp.d.ts +6 -0
  24. package/dist/components/ChatTimestamp/index.d.ts +2 -0
  25. package/dist/components/ChatWindow/ChatWindow.d.ts +9 -0
  26. package/dist/components/ChatWindow/index.d.ts +2 -0
  27. package/dist/components/TypingIndicator/TypingIndicator.d.ts +6 -0
  28. package/dist/components/TypingIndicator/index.d.ts +2 -0
  29. package/dist/index.cjs +1 -1
  30. package/dist/index.d.ts +25 -3
  31. package/dist/index.js +1902 -1340
  32. package/dist/style.css +1 -1
  33. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,85 +1,91 @@
1
- import { jsxs as h, jsx as e, Fragment as Pe } from "react/jsx-runtime";
2
- import j, { useRef as A, useEffect as he, useState as D, useId as qe, useCallback as $e, useContext as ot, createContext as rt } from "react";
3
- import { createPortal as ze } from "react-dom";
4
- const st = "_button_111na_1", at = "_loading_111na_26", it = "_sm_111na_33", lt = "_md_111na_39", ct = "_lg_111na_45", dt = "_primary_111na_52", _t = "_secondary_111na_65", ut = "_outline_111na_78", pt = "_ghost_111na_90", ht = "_danger_111na_101", mt = "_fullWidth_111na_114", ft = "_spinner_111na_119", bt = "_spin_111na_119", le = {
5
- button: st,
6
- loading: at,
7
- sm: it,
8
- md: lt,
9
- lg: ct,
10
- primary: dt,
11
- secondary: _t,
12
- outline: ut,
13
- ghost: pt,
14
- danger: ht,
15
- fullWidth: mt,
16
- spinner: ft,
17
- spin: bt
18
- }, gt = j.forwardRef(
1
+ import { jsxs as d, jsx as e, Fragment as st } from "react/jsx-runtime";
2
+ import j, { useRef as A, useEffect as ae, useState as O, useId as Pe, useCallback as ke, useContext as bt, createContext as gt } from "react";
3
+ import { createPortal as Ke } from "react-dom";
4
+ const vt = "_button_16l0b_1", wt = "_loading_16l0b_34", $t = "_sm_16l0b_41", yt = "_md_16l0b_47", kt = "_lg_16l0b_53", Nt = "_primary_16l0b_60", xt = "_secondary_16l0b_73", Bt = "_outline_16l0b_86", Lt = "_ghost_16l0b_98", jt = "_danger_16l0b_109", It = "_fullWidth_16l0b_122", Ct = "_pulse_16l0b_126", zt = "_buttonPulse_16l0b_1", Wt = "_shine_16l0b_130", Et = "_buttonShine_16l0b_1", Rt = "_spinner_16l0b_145", St = "_spin_16l0b_145", ce = {
5
+ button: vt,
6
+ loading: wt,
7
+ sm: $t,
8
+ md: yt,
9
+ lg: kt,
10
+ primary: Nt,
11
+ secondary: xt,
12
+ outline: Bt,
13
+ ghost: Lt,
14
+ danger: jt,
15
+ fullWidth: It,
16
+ pulse: Ct,
17
+ buttonPulse: zt,
18
+ shine: Wt,
19
+ buttonShine: Et,
20
+ spinner: Rt,
21
+ spin: St
22
+ }, Tt = j.forwardRef(
19
23
  ({
20
24
  variant: t = "primary",
21
25
  size: o = "md",
22
- loading: n = !1,
26
+ animation: n = "none",
27
+ loading: s = !1,
23
28
  fullWidth: r = !1,
24
- leftIcon: s,
25
- rightIcon: a,
26
- children: l,
27
- className: i,
28
- disabled: c,
29
- ..._
30
- }, p) => {
31
- const m = [
32
- le.button,
33
- le[t],
34
- le[o],
35
- r ? le.fullWidth : "",
36
- n ? le.loading : "",
37
- i ?? ""
29
+ leftIcon: i,
30
+ rightIcon: l,
31
+ children: a,
32
+ className: c,
33
+ disabled: _,
34
+ ...h
35
+ }, m) => {
36
+ const u = [
37
+ ce.button,
38
+ ce[t],
39
+ ce[o],
40
+ n !== "none" ? ce[n] : "",
41
+ r ? ce.fullWidth : "",
42
+ s ? ce.loading : "",
43
+ c ?? ""
38
44
  ].filter(Boolean).join(" ");
39
- return /* @__PURE__ */ h(
45
+ return /* @__PURE__ */ d(
40
46
  "button",
41
47
  {
42
- ref: p,
43
- className: m,
44
- disabled: c || n,
45
- "aria-busy": n,
46
- ..._,
48
+ ref: m,
49
+ className: u,
50
+ disabled: _ || s,
51
+ "aria-busy": s,
52
+ ...h,
47
53
  children: [
48
- n && /* @__PURE__ */ e("span", { className: le.spinner, "aria-hidden": "true" }),
49
- !n && s && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: s }),
50
- l,
51
- !n && a && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: a })
54
+ s && /* @__PURE__ */ e("span", { className: ce.spinner, "aria-hidden": "true" }),
55
+ !s && i && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: i }),
56
+ a,
57
+ !s && l && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: l })
52
58
  ]
53
59
  }
54
60
  );
55
61
  }
56
62
  );
57
- gt.displayName = "Button";
58
- const vt = "_wrapper_1r7em_1", wt = "_label_1r7em_8", $t = "_required_1r7em_15", kt = "_inputWrapper_1r7em_20", yt = "_input_1r7em_20", Nt = "_error_1r7em_55", xt = "_sm_1r7em_64", Lt = "_md_1r7em_70", Bt = "_lg_1r7em_76", jt = "_hasLeft_1r7em_83", It = "_hasRight_1r7em_87", Ct = "_iconLeft_1r7em_91", Et = "_iconRight_1r7em_92", qt = "_hint_1r7em_111", Wt = "_errorText_1r7em_117", Tt = "_floatingWrapper_1r7em_125", Rt = "_inputFloating_1r7em_130", Mt = "_floatingLabelEl_1r7em_149", St = "_floatingLabelSm_1r7em_165", zt = "_floatingLabelMd_1r7em_166", Dt = "_floatingLabelLg_1r7em_167", Ft = "_floatingLabelWithLeft_1r7em_170", At = "_floatingLabelError_1r7em_190", B = {
59
- wrapper: vt,
60
- label: wt,
61
- required: $t,
62
- inputWrapper: kt,
63
- input: yt,
64
- error: Nt,
65
- sm: xt,
66
- md: Lt,
67
- lg: Bt,
68
- hasLeft: jt,
69
- hasRight: It,
70
- iconLeft: Ct,
71
- iconRight: Et,
72
- hint: qt,
73
- errorText: Wt,
74
- floatingWrapper: Tt,
75
- inputFloating: Rt,
76
- floatingLabelEl: Mt,
77
- floatingLabelSm: St,
78
- floatingLabelMd: zt,
79
- floatingLabelLg: Dt,
80
- floatingLabelWithLeft: Ft,
81
- floatingLabelError: At
82
- }, Ht = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e(
63
+ Tt.displayName = "Button";
64
+ const Dt = "_wrapper_1r7em_1", qt = "_label_1r7em_8", Mt = "_required_1r7em_15", Ft = "_inputWrapper_1r7em_20", At = "_input_1r7em_20", Ht = "_error_1r7em_55", Pt = "_sm_1r7em_64", Ot = "_md_1r7em_70", Ut = "_lg_1r7em_76", Vt = "_hasLeft_1r7em_83", Xt = "_hasRight_1r7em_87", Yt = "_iconLeft_1r7em_91", Kt = "_iconRight_1r7em_92", Gt = "_hint_1r7em_111", Jt = "_errorText_1r7em_117", Qt = "_floatingWrapper_1r7em_125", Zt = "_inputFloating_1r7em_130", en = "_floatingLabelEl_1r7em_149", tn = "_floatingLabelSm_1r7em_165", nn = "_floatingLabelMd_1r7em_166", on = "_floatingLabelLg_1r7em_167", sn = "_floatingLabelWithLeft_1r7em_170", rn = "_floatingLabelError_1r7em_190", I = {
65
+ wrapper: Dt,
66
+ label: qt,
67
+ required: Mt,
68
+ inputWrapper: Ft,
69
+ input: At,
70
+ error: Ht,
71
+ sm: Pt,
72
+ md: Ot,
73
+ lg: Ut,
74
+ hasLeft: Vt,
75
+ hasRight: Xt,
76
+ iconLeft: Yt,
77
+ iconRight: Kt,
78
+ hint: Gt,
79
+ errorText: Jt,
80
+ floatingWrapper: Qt,
81
+ inputFloating: Zt,
82
+ floatingLabelEl: en,
83
+ floatingLabelSm: tn,
84
+ floatingLabelMd: nn,
85
+ floatingLabelLg: on,
86
+ floatingLabelWithLeft: sn,
87
+ floatingLabelError: rn
88
+ }, an = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e(
83
89
  "path",
84
90
  {
85
91
  strokeLinecap: "round",
@@ -87,220 +93,227 @@ const vt = "_wrapper_1r7em_1", wt = "_label_1r7em_8", $t = "_required_1r7em_15",
87
93
  strokeWidth: 2,
88
94
  d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
89
95
  }
90
- ) }), Ot = j.forwardRef(
96
+ ) }), ln = j.forwardRef(
91
97
  ({
92
98
  label: t,
93
99
  size: o = "md",
94
100
  error: n,
95
- hint: r,
96
- leftIcon: s,
97
- rightIcon: a,
101
+ hint: s,
102
+ leftIcon: r,
103
+ rightIcon: i,
98
104
  search: l = !1,
99
- searchIcon: i,
105
+ searchIcon: a,
100
106
  searchIconPosition: c = "left",
101
107
  leftIconClassName: _,
102
- rightIconClassName: p,
108
+ rightIconClassName: h,
103
109
  required: m,
104
- fullWidth: d,
110
+ fullWidth: u,
105
111
  floatingLabel: f,
106
- className: g,
107
- id: u,
108
- placeholder: v,
112
+ className: v,
113
+ id: p,
114
+ placeholder: g,
109
115
  ...w
110
- }, L) => {
111
- const $ = u ?? (t ? `vui-input-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), q = $ ? `${$}-error` : void 0, N = $ ? `${$}-hint` : void 0, P = l || !!i, K = i ?? /* @__PURE__ */ e(Ht, {});
112
- let k = s, y = a, V = !1, J = !1;
113
- P && (c === "right" ? y || (y = K, J = !0) : k || (k = K, V = !0));
114
- const ae = [
115
- B.input,
116
- B[o],
117
- f ? B.inputFloating : "",
118
- n ? B.error : "",
119
- k ? B.hasLeft : "",
120
- y ? B.hasRight : "",
121
- g ?? ""
122
- ].filter(Boolean).join(" "), ke = [
123
- B.floatingLabelEl,
124
- B[`floatingLabel${o.charAt(0).toUpperCase() + o.slice(1)}`],
125
- k ? B.floatingLabelWithLeft : "",
126
- n ? B.floatingLabelError : ""
116
+ }, B) => {
117
+ const y = p ?? (t ? `vui-input-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), z = y ? `${y}-error` : void 0, N = y ? `${y}-hint` : void 0, H = l || !!a, x = a ?? /* @__PURE__ */ e(an, {});
118
+ let $ = r, k = i, G = !1, ne = !1;
119
+ H && (c === "right" ? k || (k = x, ne = !0) : $ || ($ = x, G = !0));
120
+ const pe = [
121
+ I.input,
122
+ I[o],
123
+ f ? I.inputFloating : "",
124
+ n ? I.error : "",
125
+ $ ? I.hasLeft : "",
126
+ k ? I.hasRight : "",
127
+ v ?? ""
128
+ ].filter(Boolean).join(" "), ze = [
129
+ I.floatingLabelEl,
130
+ I[`floatingLabel${o.charAt(0).toUpperCase() + o.slice(1)}`],
131
+ $ ? I.floatingLabelWithLeft : "",
132
+ n ? I.floatingLabelError : ""
127
133
  ].filter(Boolean).join(" ");
128
- return /* @__PURE__ */ h("div", { className: B.wrapper, children: [
129
- t && !f && /* @__PURE__ */ h("label", { htmlFor: $, className: B.label, children: [
134
+ return /* @__PURE__ */ d("div", { className: I.wrapper, children: [
135
+ t && !f && /* @__PURE__ */ d("label", { htmlFor: y, className: I.label, children: [
130
136
  t,
131
- m && /* @__PURE__ */ e("span", { className: B.required, "aria-hidden": "true", children: "*" })
137
+ m && /* @__PURE__ */ e("span", { className: I.required, "aria-hidden": "true", children: "*" })
132
138
  ] }),
133
- /* @__PURE__ */ h("div", { className: `${B.inputWrapper}${f ? ` ${B.floatingWrapper}` : ""}`, children: [
134
- k && /* @__PURE__ */ e(
139
+ /* @__PURE__ */ d("div", { className: `${I.inputWrapper}${f ? ` ${I.floatingWrapper}` : ""}`, children: [
140
+ $ && /* @__PURE__ */ e(
135
141
  "span",
136
142
  {
137
- className: [B.iconLeft, _ ?? ""].filter(Boolean).join(" "),
143
+ className: [I.iconLeft, _ ?? ""].filter(Boolean).join(" "),
138
144
  "data-slot": "left-icon",
139
- "data-search-icon": V ? "true" : void 0,
145
+ "data-search-icon": G ? "true" : void 0,
140
146
  "aria-hidden": "true",
141
- children: k
147
+ children: $
142
148
  }
143
149
  ),
144
150
  /* @__PURE__ */ e(
145
151
  "input",
146
152
  {
147
- ref: L,
148
- id: $,
149
- className: ae,
153
+ ref: B,
154
+ id: y,
155
+ className: pe,
150
156
  required: m,
151
157
  "aria-invalid": !!n,
152
- "aria-describedby": [n ? q : null, r ? N : null].filter(Boolean).join(" ") || void 0,
153
- placeholder: f ? " " : v,
158
+ "aria-describedby": [n ? z : null, s ? N : null].filter(Boolean).join(" ") || void 0,
159
+ placeholder: f ? " " : g,
154
160
  ...w
155
161
  }
156
162
  ),
157
- t && f && /* @__PURE__ */ h("label", { htmlFor: $, className: ke, children: [
163
+ t && f && /* @__PURE__ */ d("label", { htmlFor: y, className: ze, children: [
158
164
  t,
159
- m && /* @__PURE__ */ e("span", { className: B.required, "aria-hidden": "true", children: "*" })
165
+ m && /* @__PURE__ */ e("span", { className: I.required, "aria-hidden": "true", children: "*" })
160
166
  ] }),
161
- y && /* @__PURE__ */ e(
167
+ k && /* @__PURE__ */ e(
162
168
  "span",
163
169
  {
164
- className: [B.iconRight, p ?? ""].filter(Boolean).join(" "),
170
+ className: [I.iconRight, h ?? ""].filter(Boolean).join(" "),
165
171
  "data-slot": "right-icon",
166
- "data-search-icon": J ? "true" : void 0,
172
+ "data-search-icon": ne ? "true" : void 0,
167
173
  "aria-hidden": "true",
168
- children: y
174
+ children: k
169
175
  }
170
176
  )
171
177
  ] }),
172
- n && /* @__PURE__ */ e("span", { id: q, className: B.errorText, role: "alert", children: n }),
173
- r && !n && /* @__PURE__ */ e("span", { id: N, className: B.hint, children: r })
178
+ n && /* @__PURE__ */ e("span", { id: z, className: I.errorText, role: "alert", children: n }),
179
+ s && !n && /* @__PURE__ */ e("span", { id: N, className: I.hint, children: s })
174
180
  ] });
175
181
  }
176
182
  );
177
- Ot.displayName = "Input";
178
- const Ut = "_title_1np0f_1", Pt = "_xs_1np0f_9", Vt = "_sm_1np0f_14", Xt = "_md_1np0f_19", Yt = "_lg_1np0f_24", Gt = "_xl_1np0f_29", Kt = "_xxl_1np0f_34", Jt = "_light_1np0f_40", Qt = "_normal_1np0f_44", Zt = "_medium_1np0f_48", en = "_semibold_1np0f_52", tn = "_bold_1np0f_56", nn = "_extrabold_1np0f_60", on = "_left_1np0f_65", rn = "_center_1np0f_69", sn = "_right_1np0f_73", an = "_muted_1np0f_82", ln = "_primary_1np0f_86", cn = "_gradient_1np0f_90", be = {
179
- title: Ut,
180
- xs: Pt,
181
- sm: Vt,
182
- md: Xt,
183
- lg: Yt,
184
- xl: Gt,
185
- xxl: Kt,
186
- light: Jt,
187
- normal: Qt,
188
- medium: Zt,
189
- semibold: en,
190
- bold: tn,
191
- extrabold: nn,
192
- left: on,
193
- center: rn,
194
- right: sn,
183
+ ln.displayName = "Input";
184
+ const cn = "_title_1np0f_1", dn = "_xs_1np0f_9", _n = "_sm_1np0f_14", un = "_md_1np0f_19", pn = "_lg_1np0f_24", hn = "_xl_1np0f_29", mn = "_xxl_1np0f_34", fn = "_light_1np0f_40", bn = "_normal_1np0f_44", gn = "_medium_1np0f_48", vn = "_semibold_1np0f_52", wn = "_bold_1np0f_56", $n = "_extrabold_1np0f_60", yn = "_left_1np0f_65", kn = "_center_1np0f_69", Nn = "_right_1np0f_73", xn = "_muted_1np0f_82", Bn = "_primary_1np0f_86", Ln = "_gradient_1np0f_90", Be = {
185
+ title: cn,
186
+ xs: dn,
187
+ sm: _n,
188
+ md: un,
189
+ lg: pn,
190
+ xl: hn,
191
+ xxl: mn,
192
+ light: fn,
193
+ normal: bn,
194
+ medium: gn,
195
+ semibold: vn,
196
+ bold: wn,
197
+ extrabold: $n,
198
+ left: yn,
199
+ center: kn,
200
+ right: Nn,
195
201
  default: "_default_1np0f_78",
196
- muted: an,
197
- primary: ln,
198
- gradient: cn
199
- }, dn = {
202
+ muted: xn,
203
+ primary: Bn,
204
+ gradient: Ln
205
+ }, jn = {
200
206
  h1: "xxl",
201
207
  h2: "xl",
202
208
  h3: "lg",
203
209
  h4: "md",
204
210
  h5: "sm",
205
211
  h6: "xs"
206
- }, pc = ({
212
+ }, V_ = ({
207
213
  as: t,
208
214
  level: o = "h1",
209
215
  size: n,
210
- weight: r = "bold",
211
- align: s = "left",
212
- color: a = "default",
216
+ weight: s = "bold",
217
+ align: r = "left",
218
+ color: i = "default",
213
219
  children: l,
214
- className: i,
220
+ className: a,
215
221
  ...c
216
222
  }) => {
217
- const _ = t ?? o, p = n ?? dn[_], m = [
218
- be.title,
219
- be[p],
220
- be[r],
221
- be[s],
222
- be[a],
223
- i ?? ""
223
+ const _ = t ?? o, h = n ?? jn[_], m = [
224
+ Be.title,
225
+ Be[h],
226
+ Be[s],
227
+ Be[r],
228
+ Be[i],
229
+ a ?? ""
224
230
  ].filter(Boolean).join(" ");
225
231
  return j.createElement(_, { className: m, ...c }, l);
226
- }, _n = "_badge_8sbva_1", un = "_sm_8sbva_14", pn = "_md_8sbva_19", hn = "_lg_8sbva_24", mn = "_info_8sbva_36", fn = "_success_8sbva_42", bn = "_warning_8sbva_48", gn = "_danger_8sbva_54", vn = "_primary_8sbva_60", wn = "_dot_8sbva_67", Be = {
227
- badge: _n,
228
- sm: un,
229
- md: pn,
230
- lg: hn,
231
- default: "_default_8sbva_30",
232
- info: mn,
233
- success: fn,
234
- warning: bn,
235
- danger: gn,
236
- primary: vn,
237
- dot: wn
238
- }, hc = ({
232
+ }, In = "_badge_1d51m_1", Cn = "_sm_1d51m_24", zn = "_md_1d51m_29", Wn = "_lg_1d51m_34", En = "_info_1d51m_46", Rn = "_success_1d51m_52", Sn = "_warning_1d51m_58", Tn = "_danger_1d51m_64", Dn = "_primary_1d51m_70", qn = "_dot_1d51m_77", Mn = "_pulse_1d51m_85", Fn = "_badgePulse_1d51m_1", An = "_badgeDotPulse_1d51m_1", Hn = "_shine_1d51m_93", Pn = "_badgeShine_1d51m_1", Le = {
233
+ badge: In,
234
+ sm: Cn,
235
+ md: zn,
236
+ lg: Wn,
237
+ default: "_default_1d51m_40",
238
+ info: En,
239
+ success: Rn,
240
+ warning: Sn,
241
+ danger: Tn,
242
+ primary: Dn,
243
+ dot: qn,
244
+ pulse: Mn,
245
+ badgePulse: Fn,
246
+ badgeDotPulse: An,
247
+ shine: Hn,
248
+ badgeShine: Pn
249
+ }, X_ = ({
239
250
  variant: t = "default",
240
251
  size: o = "md",
241
- dot: n = !1,
252
+ animation: n = "none",
253
+ dot: s = !1,
242
254
  leftIcon: r,
243
- children: s,
244
- className: a,
245
- ...l
255
+ children: i,
256
+ className: l,
257
+ ...a
246
258
  }) => {
247
- const i = [
248
- Be.badge,
249
- Be[t],
250
- Be[o],
251
- a ?? ""
259
+ const c = [
260
+ Le.badge,
261
+ Le[t],
262
+ Le[o],
263
+ n !== "none" ? Le[n] : "",
264
+ l ?? ""
252
265
  ].filter(Boolean).join(" ");
253
- return /* @__PURE__ */ h("span", { className: i, ...l, children: [
254
- n && /* @__PURE__ */ e("span", { className: Be.dot, "aria-hidden": "true" }),
255
- !n && r && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: r }),
256
- s
266
+ return /* @__PURE__ */ d("span", { className: c, ...a, children: [
267
+ s && /* @__PURE__ */ e("span", { className: Le.dot, "aria-hidden": "true" }),
268
+ !s && r && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: r }),
269
+ i
257
270
  ] });
258
- }, $n = "_card_1q61w_1", kn = "_bordered_1q61w_11", yn = "_shadow_1q61w_15", Nn = "_elevated_1q61w_19", xn = "_ghost_1q61w_23", Ln = "_sm_1q61w_29", Bn = "_cardHeader_1q61w_29", jn = "_cardBody_1q61w_30", In = "_cardFooter_1q61w_31", Cn = "_md_1q61w_35", En = "_lg_1q61w_41", qn = "_hoverable_1q61w_72", se = {
259
- card: $n,
260
- bordered: kn,
261
- shadow: yn,
262
- elevated: Nn,
263
- ghost: xn,
264
- sm: Ln,
265
- cardHeader: Bn,
266
- cardBody: jn,
267
- cardFooter: In,
268
- md: Cn,
269
- lg: En,
270
- hoverable: qn
271
- }, Ve = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${se.cardHeader} ${o ?? ""}`, ...n, children: t });
272
- Ve.displayName = "Card.Header";
273
- const Xe = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${se.cardBody} ${o ?? ""}`, ...n, children: t });
274
- Xe.displayName = "Card.Body";
275
- const Ye = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${se.cardFooter} ${o ?? ""}`, ...n, children: t });
276
- Ye.displayName = "Card.Footer";
277
- const Wn = ({
271
+ }, On = "_card_1q61w_1", Un = "_bordered_1q61w_11", Vn = "_shadow_1q61w_15", Xn = "_elevated_1q61w_19", Yn = "_ghost_1q61w_23", Kn = "_sm_1q61w_29", Gn = "_cardHeader_1q61w_29", Jn = "_cardBody_1q61w_30", Qn = "_cardFooter_1q61w_31", Zn = "_md_1q61w_35", eo = "_lg_1q61w_41", to = "_hoverable_1q61w_72", ue = {
272
+ card: On,
273
+ bordered: Un,
274
+ shadow: Vn,
275
+ elevated: Xn,
276
+ ghost: Yn,
277
+ sm: Kn,
278
+ cardHeader: Gn,
279
+ cardBody: Jn,
280
+ cardFooter: Qn,
281
+ md: Zn,
282
+ lg: eo,
283
+ hoverable: to
284
+ }, rt = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${ue.cardHeader} ${o ?? ""}`, ...n, children: t });
285
+ rt.displayName = "Card.Header";
286
+ const at = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${ue.cardBody} ${o ?? ""}`, ...n, children: t });
287
+ at.displayName = "Card.Body";
288
+ const it = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${ue.cardFooter} ${o ?? ""}`, ...n, children: t });
289
+ it.displayName = "Card.Footer";
290
+ const no = ({
278
291
  variant: t = "bordered",
279
292
  size: o = "md",
280
293
  hoverable: n = !1,
281
- children: r,
282
- className: s,
283
- ...a
294
+ children: s,
295
+ className: r,
296
+ ...i
284
297
  }) => {
285
298
  const l = [
286
- se.card,
287
- se[t],
288
- se[o],
289
- n ? se.hoverable : "",
290
- s ?? ""
299
+ ue.card,
300
+ ue[t],
301
+ ue[o],
302
+ n ? ue.hoverable : "",
303
+ r ?? ""
291
304
  ].filter(Boolean).join(" ");
292
- return /* @__PURE__ */ e("div", { className: l, ...a, children: r });
293
- }, We = Wn;
294
- We.Header = Ve;
295
- We.Body = Xe;
296
- We.Footer = Ye;
297
- We.displayName = "Card";
298
- const Tn = "_root_y54b0_1", Rn = "_background_y54b0_12", Mn = "_interactive_y54b0_19", Sn = "_content_y54b0_23", je = {
299
- root: Tn,
300
- background: Rn,
301
- interactive: Mn,
302
- content: Sn
303
- }, zn = {
305
+ return /* @__PURE__ */ e("div", { className: l, ...i, children: s });
306
+ }, Oe = no;
307
+ Oe.Header = rt;
308
+ Oe.Body = at;
309
+ Oe.Footer = it;
310
+ Oe.displayName = "Card";
311
+ const oo = "_root_y54b0_1", so = "_background_y54b0_12", ro = "_interactive_y54b0_19", ao = "_content_y54b0_23", Te = {
312
+ root: oo,
313
+ background: so,
314
+ interactive: ro,
315
+ content: ao
316
+ }, io = {
304
317
  subtle: {
305
318
  "--vui-ambient-opacity": "0.62",
306
319
  "--vui-ambient-blur": "88px",
@@ -316,7 +329,7 @@ const Tn = "_root_y54b0_1", Rn = "_background_y54b0_12", Mn = "_interactive_y54b
316
329
  "--vui-ambient-blur": "136px",
317
330
  "--vui-ambient-scale": "1.08"
318
331
  }
319
- }, Dn = {
332
+ }, lo = {
320
333
  slow: {
321
334
  "--vui-ambient-duration": "24s",
322
335
  "--vui-ambient-speed-multiplier": "0.72"
@@ -329,306 +342,306 @@ const Tn = "_root_y54b0_1", Rn = "_background_y54b0_12", Mn = "_interactive_y54b
329
342
  "--vui-ambient-duration": "13s",
330
343
  "--vui-ambient-speed-multiplier": "1.25"
331
344
  }
332
- }, mc = ({
345
+ }, Y_ = ({
333
346
  background: t,
334
347
  contentClassName: o,
335
348
  intensity: n = "medium",
336
- speed: r = "medium",
337
- interactive: s = !1,
338
- className: a,
349
+ speed: s = "medium",
350
+ interactive: r = !1,
351
+ className: i,
339
352
  style: l,
340
- children: i,
353
+ children: a,
341
354
  ...c
342
355
  }) => {
343
356
  const _ = [
344
- je.root,
345
- s ? je.interactive : "",
346
- a ?? ""
347
- ].filter(Boolean).join(" "), p = [je.content, o ?? ""].filter(Boolean).join(" "), m = {
348
- ...zn[n],
349
- ...Dn[r],
357
+ Te.root,
358
+ r ? Te.interactive : "",
359
+ i ?? ""
360
+ ].filter(Boolean).join(" "), h = [Te.content, o ?? ""].filter(Boolean).join(" "), m = {
361
+ ...io[n],
362
+ ...lo[s],
350
363
  ...l
351
364
  };
352
- return /* @__PURE__ */ h("div", { className: _, style: m, ...c, children: [
353
- t ? /* @__PURE__ */ e("div", { className: je.background, children: t }) : null,
354
- /* @__PURE__ */ e("div", { className: p, children: i })
365
+ return /* @__PURE__ */ d("div", { className: _, style: m, ...c, children: [
366
+ t ? /* @__PURE__ */ e("div", { className: Te.background, children: t }) : null,
367
+ /* @__PURE__ */ e("div", { className: h, children: a })
355
368
  ] });
356
- }, Fn = "_root_1h0b6_1", An = "_orb_1h0b6_8", Hn = "_floatOrb_1h0b6_1", On = "_primary_1h0b6_19", Un = "_secondary_1h0b6_25", Pn = "_accent_1h0b6_33", Vn = "_highlight_1h0b6_40", Xn = "_hero_1h0b6_48", Yn = "_diagonal_1h0b6_68", Gn = "_spotlight_1h0b6_88", H = {
357
- root: Fn,
358
- orb: An,
359
- floatOrb: Hn,
360
- primary: On,
361
- secondary: Un,
362
- accent: Pn,
363
- highlight: Vn,
364
- hero: Xn,
365
- diagonal: Yn,
366
- spotlight: Gn
367
- }, fc = ({
369
+ }, co = "_root_1h0b6_1", _o = "_orb_1h0b6_8", uo = "_floatOrb_1h0b6_1", po = "_primary_1h0b6_19", ho = "_secondary_1h0b6_25", mo = "_accent_1h0b6_33", fo = "_highlight_1h0b6_40", bo = "_hero_1h0b6_48", go = "_diagonal_1h0b6_68", vo = "_spotlight_1h0b6_88", X = {
370
+ root: co,
371
+ orb: _o,
372
+ floatOrb: uo,
373
+ primary: po,
374
+ secondary: ho,
375
+ accent: mo,
376
+ highlight: fo,
377
+ hero: bo,
378
+ diagonal: go,
379
+ spotlight: vo
380
+ }, K_ = ({
368
381
  variant: t = "hero",
369
382
  className: o,
370
383
  ...n
371
384
  }) => {
372
- const r = [H.root, H[t], o ?? ""].filter(Boolean).join(" ");
373
- return /* @__PURE__ */ h("div", { className: r, "aria-hidden": "true", ...n, children: [
374
- /* @__PURE__ */ e("span", { className: `${H.orb} ${H.primary}` }),
375
- /* @__PURE__ */ e("span", { className: `${H.orb} ${H.secondary}` }),
376
- /* @__PURE__ */ e("span", { className: `${H.orb} ${H.accent}` }),
377
- /* @__PURE__ */ e("span", { className: `${H.orb} ${H.highlight}` })
385
+ const s = [X.root, X[t], o ?? ""].filter(Boolean).join(" ");
386
+ return /* @__PURE__ */ d("div", { className: s, "aria-hidden": "true", ...n, children: [
387
+ /* @__PURE__ */ e("span", { className: `${X.orb} ${X.primary}` }),
388
+ /* @__PURE__ */ e("span", { className: `${X.orb} ${X.secondary}` }),
389
+ /* @__PURE__ */ e("span", { className: `${X.orb} ${X.accent}` }),
390
+ /* @__PURE__ */ e("span", { className: `${X.orb} ${X.highlight}` })
378
391
  ] });
379
- }, Kn = "_root_3f8d1_1", Jn = "_grid_3f8d1_9", Qn = "_glow_3f8d1_10", Zn = "_beam_3f8d1_11", eo = "_sweepBeam_3f8d1_1", to = "_spotlight_3f8d1_49", no = "_panel_3f8d1_57", ge = {
380
- root: Kn,
381
- grid: Jn,
382
- glow: Qn,
383
- beam: Zn,
384
- sweepBeam: eo,
392
+ }, wo = "_root_3f8d1_1", $o = "_grid_3f8d1_9", yo = "_glow_3f8d1_10", ko = "_beam_3f8d1_11", No = "_sweepBeam_3f8d1_1", xo = "_spotlight_3f8d1_49", Bo = "_panel_3f8d1_57", je = {
393
+ root: wo,
394
+ grid: $o,
395
+ glow: yo,
396
+ beam: ko,
397
+ sweepBeam: No,
385
398
  default: "_default_3f8d1_45",
386
- spotlight: to,
387
- panel: no
388
- }, bc = ({
399
+ spotlight: xo,
400
+ panel: Bo
401
+ }, G_ = ({
389
402
  variant: t = "default",
390
403
  className: o,
391
404
  ...n
392
405
  }) => {
393
- const r = [ge.root, ge[t], o ?? ""].filter(Boolean).join(" ");
394
- return /* @__PURE__ */ h("div", { className: r, "aria-hidden": "true", ...n, children: [
395
- /* @__PURE__ */ e("span", { className: ge.grid }),
396
- /* @__PURE__ */ e("span", { className: ge.glow }),
397
- /* @__PURE__ */ e("span", { className: ge.beam })
406
+ const s = [je.root, je[t], o ?? ""].filter(Boolean).join(" ");
407
+ return /* @__PURE__ */ d("div", { className: s, "aria-hidden": "true", ...n, children: [
408
+ /* @__PURE__ */ e("span", { className: je.grid }),
409
+ /* @__PURE__ */ e("span", { className: je.glow }),
410
+ /* @__PURE__ */ e("span", { className: je.beam })
398
411
  ] });
399
- }, oo = "_wrapper_1xu0d_1", ro = "_wrapperFullWidth_1xu0d_7", so = "_label_1xu0d_11", ao = "_required_1xu0d_18", io = "_textarea_1xu0d_23", lo = "_hasError_1xu0d_53", co = "_sm_1xu0d_62", _o = "_md_1xu0d_67", uo = "_lg_1xu0d_72", po = "_none_1xu0d_78", ho = "_vertical_1xu0d_82", mo = "_horizontal_1xu0d_86", fo = "_both_1xu0d_90", bo = "_fullWidth_1xu0d_94", go = "_hint_1xu0d_98", vo = "_errorText_1xu0d_104", F = {
400
- wrapper: oo,
401
- wrapperFullWidth: ro,
402
- label: so,
403
- required: ao,
404
- textarea: io,
405
- hasError: lo,
406
- sm: co,
407
- md: _o,
408
- lg: uo,
409
- none: po,
410
- vertical: ho,
411
- horizontal: mo,
412
- both: fo,
413
- fullWidth: bo,
414
- hint: go,
415
- errorText: vo
416
- }, wo = j.forwardRef(
412
+ }, Lo = "_wrapper_1xu0d_1", jo = "_wrapperFullWidth_1xu0d_7", Io = "_label_1xu0d_11", Co = "_required_1xu0d_18", zo = "_textarea_1xu0d_23", Wo = "_hasError_1xu0d_53", Eo = "_sm_1xu0d_62", Ro = "_md_1xu0d_67", So = "_lg_1xu0d_72", To = "_none_1xu0d_78", Do = "_vertical_1xu0d_82", qo = "_horizontal_1xu0d_86", Mo = "_both_1xu0d_90", Fo = "_fullWidth_1xu0d_94", Ao = "_hint_1xu0d_98", Ho = "_errorText_1xu0d_104", U = {
413
+ wrapper: Lo,
414
+ wrapperFullWidth: jo,
415
+ label: Io,
416
+ required: Co,
417
+ textarea: zo,
418
+ hasError: Wo,
419
+ sm: Eo,
420
+ md: Ro,
421
+ lg: So,
422
+ none: To,
423
+ vertical: Do,
424
+ horizontal: qo,
425
+ both: Mo,
426
+ fullWidth: Fo,
427
+ hint: Ao,
428
+ errorText: Ho
429
+ }, Po = j.forwardRef(
417
430
  ({
418
431
  label: t,
419
432
  size: o = "md",
420
433
  error: n,
421
- hint: r,
422
- required: s,
423
- fullWidth: a = !1,
434
+ hint: s,
435
+ required: r,
436
+ fullWidth: i = !1,
424
437
  resize: l = "vertical",
425
- className: i,
438
+ className: a,
426
439
  id: c,
427
440
  ..._
428
- }, p) => {
429
- const m = c ?? (t ? `vui-textarea-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), d = m ? `${m}-error` : void 0, f = m ? `${m}-hint` : void 0, g = [
430
- F.textarea,
431
- F[o],
432
- F[l],
433
- n ? F.hasError : "",
434
- a ? F.fullWidth : "",
435
- i ?? ""
441
+ }, h) => {
442
+ const m = c ?? (t ? `vui-textarea-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), u = m ? `${m}-error` : void 0, f = m ? `${m}-hint` : void 0, v = [
443
+ U.textarea,
444
+ U[o],
445
+ U[l],
446
+ n ? U.hasError : "",
447
+ i ? U.fullWidth : "",
448
+ a ?? ""
436
449
  ].filter(Boolean).join(" ");
437
- return /* @__PURE__ */ h("div", { className: `${F.wrapper}${a ? ` ${F.wrapperFullWidth}` : ""}`, children: [
438
- t && /* @__PURE__ */ h("label", { htmlFor: m, className: F.label, children: [
450
+ return /* @__PURE__ */ d("div", { className: `${U.wrapper}${i ? ` ${U.wrapperFullWidth}` : ""}`, children: [
451
+ t && /* @__PURE__ */ d("label", { htmlFor: m, className: U.label, children: [
439
452
  t,
440
- s && /* @__PURE__ */ e("span", { className: F.required, "aria-hidden": "true", children: "*" })
453
+ r && /* @__PURE__ */ e("span", { className: U.required, "aria-hidden": "true", children: "*" })
441
454
  ] }),
442
455
  /* @__PURE__ */ e(
443
456
  "textarea",
444
457
  {
445
- ref: p,
458
+ ref: h,
446
459
  id: m,
447
- className: g,
448
- required: s,
460
+ className: v,
461
+ required: r,
449
462
  "aria-invalid": !!n,
450
- "aria-describedby": [n ? d : null, r && !n ? f : null].filter(Boolean).join(" ") || void 0,
463
+ "aria-describedby": [n ? u : null, s && !n ? f : null].filter(Boolean).join(" ") || void 0,
451
464
  ..._
452
465
  }
453
466
  ),
454
- n && /* @__PURE__ */ e("span", { id: d, className: F.errorText, role: "alert", children: n }),
455
- r && !n && /* @__PURE__ */ e("span", { id: f, className: F.hint, children: r })
467
+ n && /* @__PURE__ */ e("span", { id: u, className: U.errorText, role: "alert", children: n }),
468
+ s && !n && /* @__PURE__ */ e("span", { id: f, className: U.hint, children: s })
456
469
  ] });
457
470
  }
458
471
  );
459
- wo.displayName = "Textarea";
460
- const $o = "_wrapper_1cpn4_1", ko = "_wrapperFullWidth_1cpn4_7", yo = "_label_1cpn4_11", No = "_required_1cpn4_18", xo = "_selectWrapper_1cpn4_23", Lo = "_hiddenSelect_1cpn4_46", Bo = "_trigger_1cpn4_53", jo = "_hasError_1cpn4_103", Io = "_sm_1cpn4_114", Co = "_md_1cpn4_120", Eo = "_lg_1cpn4_126", qo = "_fullWidth_1cpn4_132", Wo = "_valueText_1cpn4_136", To = "_placeholder_1cpn4_144", Ro = "_chevron_1cpn4_148", Mo = "_isOpen_1cpn4_180", So = "_menu_1cpn4_184", zo = "_option_1cpn4_203", Do = "_optionFocused_1cpn4_222", Fo = "_optionSelected_1cpn4_229", Ao = "_optionLabel_1cpn4_238", Ho = "_optionCheck_1cpn4_243", Oo = "_optionCheckVisible_1cpn4_250", Uo = "_hint_1cpn4_260", Po = "_errorText_1cpn4_266", x = {
461
- wrapper: $o,
462
- wrapperFullWidth: ko,
463
- label: yo,
464
- required: No,
465
- selectWrapper: xo,
466
- hiddenSelect: Lo,
467
- trigger: Bo,
468
- hasError: jo,
469
- sm: Io,
470
- md: Co,
471
- lg: Eo,
472
- fullWidth: qo,
473
- valueText: Wo,
474
- placeholder: To,
475
- chevron: Ro,
476
- isOpen: Mo,
477
- menu: So,
478
- option: zo,
479
- optionFocused: Do,
480
- optionSelected: Fo,
481
- optionLabel: Ao,
482
- optionCheck: Ho,
483
- optionCheckVisible: Oo,
484
- hint: Uo,
485
- errorText: Po
472
+ Po.displayName = "Textarea";
473
+ const Oo = "_wrapper_1cpn4_1", Uo = "_wrapperFullWidth_1cpn4_7", Vo = "_label_1cpn4_11", Xo = "_required_1cpn4_18", Yo = "_selectWrapper_1cpn4_23", Ko = "_hiddenSelect_1cpn4_46", Go = "_trigger_1cpn4_53", Jo = "_hasError_1cpn4_103", Qo = "_sm_1cpn4_114", Zo = "_md_1cpn4_120", es = "_lg_1cpn4_126", ts = "_fullWidth_1cpn4_132", ns = "_valueText_1cpn4_136", os = "_placeholder_1cpn4_144", ss = "_chevron_1cpn4_148", rs = "_isOpen_1cpn4_180", as = "_menu_1cpn4_184", is = "_option_1cpn4_203", ls = "_optionFocused_1cpn4_222", cs = "_optionSelected_1cpn4_229", ds = "_optionLabel_1cpn4_238", _s = "_optionCheck_1cpn4_243", us = "_optionCheckVisible_1cpn4_250", ps = "_hint_1cpn4_260", hs = "_errorText_1cpn4_266", L = {
474
+ wrapper: Oo,
475
+ wrapperFullWidth: Uo,
476
+ label: Vo,
477
+ required: Xo,
478
+ selectWrapper: Yo,
479
+ hiddenSelect: Ko,
480
+ trigger: Go,
481
+ hasError: Jo,
482
+ sm: Qo,
483
+ md: Zo,
484
+ lg: es,
485
+ fullWidth: ts,
486
+ valueText: ns,
487
+ placeholder: os,
488
+ chevron: ss,
489
+ isOpen: rs,
490
+ menu: as,
491
+ option: is,
492
+ optionFocused: ls,
493
+ optionSelected: cs,
494
+ optionLabel: ds,
495
+ optionCheck: _s,
496
+ optionCheckVisible: us,
497
+ hint: ps,
498
+ errorText: hs
486
499
  };
487
- function Vo(t) {
500
+ function ms(t) {
488
501
  return j.Children.toArray(t).flatMap((o) => {
489
502
  if (!j.isValidElement(o) || o.type !== "option")
490
503
  return [];
491
- const n = o.props.value, r = typeof o.props.children == "string" ? o.props.children : String(n ?? "");
504
+ const n = o.props.value, s = typeof o.props.children == "string" ? o.props.children : String(n ?? "");
492
505
  return n == null ? [] : [
493
506
  {
494
507
  value: String(n),
495
- label: r,
508
+ label: s,
496
509
  disabled: !!o.props.disabled
497
510
  }
498
511
  ];
499
512
  });
500
513
  }
501
- const Xo = j.forwardRef(
514
+ const fs = j.forwardRef(
502
515
  ({
503
516
  label: t,
504
517
  size: o = "md",
505
518
  error: n,
506
- hint: r,
507
- required: s,
508
- fullWidth: a = !1,
519
+ hint: s,
520
+ required: r,
521
+ fullWidth: i = !1,
509
522
  options: l,
510
- placeholder: i,
523
+ placeholder: a,
511
524
  className: c,
512
525
  id: _,
513
- children: p,
526
+ children: h,
514
527
  value: m,
515
- defaultValue: d,
528
+ defaultValue: u,
516
529
  onChange: f,
517
- onBlur: g,
518
- onFocus: u,
519
- onKeyDown: v,
530
+ onBlur: v,
531
+ onFocus: p,
532
+ onKeyDown: g,
520
533
  disabled: w,
521
- name: L,
522
- autoComplete: $,
523
- form: q,
534
+ name: B,
535
+ autoComplete: y,
536
+ form: z,
524
537
  ...N
525
- }, P) => {
526
- const K = j.useRef(null), k = j.useRef(null);
527
- j.useImperativeHandle(P, () => K.current);
528
- const y = _ ?? (t ? `vui-select-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), V = y ? `${y}-error` : void 0, J = y ? `${y}-hint` : void 0, ae = y ? `${y}-listbox` : void 0, ke = y ? `${y}-label` : void 0, I = j.useMemo(
529
- () => l || Vo(p),
530
- [p, l]
531
- ), ye = m !== void 0, te = I.find((b) => !b.disabled), Ze = String(d ?? (i ? "" : (te == null ? void 0 : te.value) ?? "")), [Re, De] = j.useState(Ze), Ne = String(ye ? m ?? "" : Re), [ne, ie] = j.useState(!1), [me, xe] = j.useState(-1);
538
+ }, H) => {
539
+ const x = j.useRef(null), $ = j.useRef(null);
540
+ j.useImperativeHandle(H, () => x.current);
541
+ const k = _ ?? (t ? `vui-select-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), G = k ? `${k}-error` : void 0, ne = k ? `${k}-hint` : void 0, pe = k ? `${k}-listbox` : void 0, ze = k ? `${k}-label` : void 0, W = j.useMemo(
542
+ () => l || ms(h),
543
+ [h, l]
544
+ ), We = m !== void 0, ie = W.find((b) => !b.disabled), pt = String(u ?? (a ? "" : (ie == null ? void 0 : ie.value) ?? "")), [Ve, Ge] = j.useState(pt), Ee = String(We ? m ?? "" : Ve), [le, he] = j.useState(!1), [Ne, Re] = j.useState(-1);
532
545
  j.useEffect(() => {
533
- if (ye || !I.length) return;
534
- I.some((C) => C.value === Re) || De((te == null ? void 0 : te.value) ?? "");
535
- }, [I, ye, Re, te]), j.useEffect(() => {
536
- const b = (C) => {
537
- k.current && !k.current.contains(C.target) && ie(!1);
546
+ if (We || !W.length) return;
547
+ W.some((E) => E.value === Ve) || Ge((ie == null ? void 0 : ie.value) ?? "");
548
+ }, [W, We, Ve, ie]), j.useEffect(() => {
549
+ const b = (E) => {
550
+ $.current && !$.current.contains(E.target) && he(!1);
538
551
  };
539
552
  return document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
540
553
  }, []);
541
- const Le = I.find((b) => b.value === Ne), et = (Le == null ? void 0 : Le.label) ?? i ?? "", tt = [
542
- x.trigger,
543
- x[o],
544
- n ? x.hasError : "",
545
- a ? x.fullWidth : "",
546
- ne ? x.isOpen : "",
554
+ const Se = W.find((b) => b.value === Ee), ht = (Se == null ? void 0 : Se.label) ?? a ?? "", mt = [
555
+ L.trigger,
556
+ L[o],
557
+ n ? L.hasError : "",
558
+ i ? L.fullWidth : "",
559
+ le ? L.isOpen : "",
547
560
  c ?? ""
548
- ].filter(Boolean).join(" "), Fe = (b) => {
549
- var W;
550
- ye || De(b);
551
- const C = K.current;
552
- if (C) {
553
- const fe = (W = Object.getOwnPropertyDescriptor(
561
+ ].filter(Boolean).join(" "), Je = (b) => {
562
+ var S;
563
+ We || Ge(b);
564
+ const E = x.current;
565
+ if (E) {
566
+ const xe = (S = Object.getOwnPropertyDescriptor(
554
567
  HTMLSelectElement.prototype,
555
568
  "value"
556
- )) == null ? void 0 : W.set;
557
- fe == null || fe.call(C, b), C.dispatchEvent(new Event("change", { bubbles: !0 }));
569
+ )) == null ? void 0 : S.set;
570
+ xe == null || xe.call(E, b), E.dispatchEvent(new Event("change", { bubbles: !0 }));
558
571
  }
559
- }, Me = () => {
560
- if (w || !I.length) return;
561
- ie(!0);
562
- const b = I.findIndex((W) => W.value === Ne && !W.disabled);
572
+ }, Xe = () => {
573
+ if (w || !W.length) return;
574
+ he(!0);
575
+ const b = W.findIndex((S) => S.value === Ee && !S.disabled);
563
576
  if (b >= 0) {
564
- xe(b);
577
+ Re(b);
565
578
  return;
566
579
  }
567
- const C = I.findIndex((W) => !W.disabled);
568
- xe(C);
569
- }, Ae = (b) => {
570
- if (!I.length) return;
571
- let C = me;
572
- for (let W = 0; W < I.length; W += 1)
573
- if (C = (C + b + I.length) % I.length, !I[C].disabled) {
574
- xe(C);
580
+ const E = W.findIndex((S) => !S.disabled);
581
+ Re(E);
582
+ }, Qe = (b) => {
583
+ if (!W.length) return;
584
+ let E = Ne;
585
+ for (let S = 0; S < W.length; S += 1)
586
+ if (E = (E + b + W.length) % W.length, !W[E].disabled) {
587
+ Re(E);
575
588
  return;
576
589
  }
577
- }, nt = (b) => {
578
- if (v == null || v(b), !b.defaultPrevented) {
579
- if (!ne && (b.key === "ArrowDown" || b.key === "ArrowUp")) {
580
- b.preventDefault(), Me();
590
+ }, ft = (b) => {
591
+ if (g == null || g(b), !b.defaultPrevented) {
592
+ if (!le && (b.key === "ArrowDown" || b.key === "ArrowUp")) {
593
+ b.preventDefault(), Xe();
581
594
  return;
582
595
  }
583
- if (!ne && (b.key === "Enter" || b.key === " ")) {
584
- b.preventDefault(), Me();
596
+ if (!le && (b.key === "Enter" || b.key === " ")) {
597
+ b.preventDefault(), Xe();
585
598
  return;
586
599
  }
587
- if (ne) {
600
+ if (le) {
588
601
  if (b.key === "Escape") {
589
- b.preventDefault(), ie(!1);
602
+ b.preventDefault(), he(!1);
590
603
  return;
591
604
  }
592
605
  if (b.key === "ArrowDown") {
593
- b.preventDefault(), Ae(1);
606
+ b.preventDefault(), Qe(1);
594
607
  return;
595
608
  }
596
609
  if (b.key === "ArrowUp") {
597
- b.preventDefault(), Ae(-1);
610
+ b.preventDefault(), Qe(-1);
598
611
  return;
599
612
  }
600
- (b.key === "Enter" || b.key === " ") && (b.preventDefault(), me >= 0 && !I[me].disabled && (Fe(I[me].value), ie(!1)));
613
+ (b.key === "Enter" || b.key === " ") && (b.preventDefault(), Ne >= 0 && !W[Ne].disabled && (Je(W[Ne].value), he(!1)));
601
614
  }
602
615
  }
603
616
  };
604
- return /* @__PURE__ */ h("div", { className: `${x.wrapper}${a ? ` ${x.wrapperFullWidth}` : ""}`, children: [
605
- t && /* @__PURE__ */ h("label", { id: ke, className: x.label, children: [
617
+ return /* @__PURE__ */ d("div", { className: `${L.wrapper}${i ? ` ${L.wrapperFullWidth}` : ""}`, children: [
618
+ t && /* @__PURE__ */ d("label", { id: ze, className: L.label, children: [
606
619
  t,
607
- s && /* @__PURE__ */ e("span", { className: x.required, "aria-hidden": "true", children: "*" })
620
+ r && /* @__PURE__ */ e("span", { className: L.required, "aria-hidden": "true", children: "*" })
608
621
  ] }),
609
- /* @__PURE__ */ h("div", { className: x.selectWrapper, ref: k, children: [
610
- /* @__PURE__ */ h(
622
+ /* @__PURE__ */ d("div", { className: L.selectWrapper, ref: $, children: [
623
+ /* @__PURE__ */ d(
611
624
  "select",
612
625
  {
613
- ref: K,
614
- id: y,
615
- className: x.hiddenSelect,
616
- value: Ne,
617
- required: s,
626
+ ref: x,
627
+ id: k,
628
+ className: L.hiddenSelect,
629
+ value: Ee,
630
+ required: r,
618
631
  disabled: w,
619
- name: L,
620
- form: q,
621
- autoComplete: $,
632
+ name: B,
633
+ form: z,
634
+ autoComplete: y,
622
635
  "aria-invalid": !!n,
623
- "aria-describedby": [n ? V : null, r && !n ? J : null].filter(Boolean).join(" ") || void 0,
636
+ "aria-describedby": [n ? G : null, s && !n ? ne : null].filter(Boolean).join(" ") || void 0,
624
637
  "aria-hidden": "true",
625
638
  tabIndex: -1,
626
639
  onChange: f ?? (() => {
627
640
  }),
628
641
  ...N,
629
642
  children: [
630
- i && /* @__PURE__ */ e("option", { value: "", disabled: s, children: i }),
631
- I.map((b) => /* @__PURE__ */ e("option", { value: b.value, disabled: b.disabled, children: b.label }, b.value))
643
+ a && /* @__PURE__ */ e("option", { value: "", disabled: r, children: a }),
644
+ W.map((b) => /* @__PURE__ */ e("option", { value: b.value, disabled: b.disabled, children: b.label }, b.value))
632
645
  ]
633
646
  }
634
647
  ),
@@ -636,22 +649,22 @@ const Xo = j.forwardRef(
636
649
  "button",
637
650
  {
638
651
  type: "button",
639
- className: tt,
652
+ className: mt,
640
653
  disabled: w,
641
654
  role: "combobox",
642
655
  "aria-invalid": !!n,
643
- "aria-labelledby": ke,
656
+ "aria-labelledby": ze,
644
657
  "aria-haspopup": "listbox",
645
- "aria-expanded": ne,
646
- "aria-controls": ae,
647
- onClick: () => ne ? ie(!1) : Me(),
648
- onKeyDown: nt,
649
- onFocus: (b) => u == null ? void 0 : u(b),
650
- onBlur: (b) => g == null ? void 0 : g(b),
651
- children: /* @__PURE__ */ e("span", { className: `${x.valueText}${Le ? "" : ` ${x.placeholder}`}`, children: et })
658
+ "aria-expanded": le,
659
+ "aria-controls": pe,
660
+ onClick: () => le ? he(!1) : Xe(),
661
+ onKeyDown: ft,
662
+ onFocus: (b) => p == null ? void 0 : p(b),
663
+ onBlur: (b) => v == null ? void 0 : v(b),
664
+ children: /* @__PURE__ */ e("span", { className: `${L.valueText}${Se ? "" : ` ${L.placeholder}`}`, children: ht })
652
665
  }
653
666
  ),
654
- /* @__PURE__ */ e("span", { className: x.chevron, "aria-hidden": "true", children: /* @__PURE__ */ e("svg", { width: "16", height: "16", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
667
+ /* @__PURE__ */ e("span", { className: L.chevron, "aria-hidden": "true", children: /* @__PURE__ */ e("svg", { width: "16", height: "16", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
655
668
  "path",
656
669
  {
657
670
  strokeLinecap: "round",
@@ -660,30 +673,30 @@ const Xo = j.forwardRef(
660
673
  d: "M19 9l-7 7-7-7"
661
674
  }
662
675
  ) }) }),
663
- ne && /* @__PURE__ */ e("ul", { id: ae, role: "listbox", className: x.menu, children: I.map((b, C) => {
664
- const W = b.value === Ne, fe = C === me;
665
- return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ h(
676
+ le && /* @__PURE__ */ e("ul", { id: pe, role: "listbox", className: L.menu, children: W.map((b, E) => {
677
+ const S = b.value === Ee, xe = E === Ne;
678
+ return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(
666
679
  "button",
667
680
  {
668
681
  type: "button",
669
682
  role: "option",
670
- "aria-selected": W,
683
+ "aria-selected": S,
671
684
  className: [
672
- x.option,
673
- W ? x.optionSelected : "",
674
- fe ? x.optionFocused : ""
685
+ L.option,
686
+ S ? L.optionSelected : "",
687
+ xe ? L.optionFocused : ""
675
688
  ].filter(Boolean).join(" "),
676
689
  disabled: b.disabled,
677
- onMouseEnter: () => xe(C),
690
+ onMouseEnter: () => Re(E),
678
691
  onClick: () => {
679
- Fe(b.value), ie(!1);
692
+ Je(b.value), he(!1);
680
693
  },
681
694
  children: [
682
- /* @__PURE__ */ e("span", { className: x.optionLabel, children: b.label }),
695
+ /* @__PURE__ */ e("span", { className: L.optionLabel, children: b.label }),
683
696
  /* @__PURE__ */ e(
684
697
  "span",
685
698
  {
686
- className: `${x.optionCheck}${W ? ` ${x.optionCheckVisible}` : ""}`,
699
+ className: `${L.optionCheck}${S ? ` ${L.optionCheckVisible}` : ""}`,
687
700
  "aria-hidden": "true",
688
701
  children: /* @__PURE__ */ e("svg", { width: "14", height: "14", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
689
702
  "path",
@@ -701,252 +714,252 @@ const Xo = j.forwardRef(
701
714
  ) }, b.value);
702
715
  }) })
703
716
  ] }),
704
- n && /* @__PURE__ */ e("span", { id: V, className: x.errorText, role: "alert", children: n }),
705
- r && !n && /* @__PURE__ */ e("span", { id: J, className: x.hint, children: r })
717
+ n && /* @__PURE__ */ e("span", { id: G, className: L.errorText, role: "alert", children: n }),
718
+ s && !n && /* @__PURE__ */ e("span", { id: ne, className: L.hint, children: s })
706
719
  ] });
707
720
  }
708
721
  );
709
- Xo.displayName = "Select";
710
- const Yo = "_wrapper_iu9cq_1", Go = "_row_iu9cq_7", Ko = "_checkbox_iu9cq_14", Jo = "_hasError_iu9cq_51", Qo = "_sm_iu9cq_60", Zo = "_md_iu9cq_74", er = "_lg_iu9cq_88", tr = "_label_iu9cq_102", nr = "_description_iu9cq_113", or = "_errorText_iu9cq_123", X = {
711
- wrapper: Yo,
712
- row: Go,
713
- checkbox: Ko,
714
- hasError: Jo,
715
- sm: Qo,
716
- md: Zo,
717
- lg: er,
718
- label: tr,
719
- description: nr,
720
- errorText: or
721
- }, rr = j.forwardRef(
722
- ({ label: t, description: o, error: n, size: r = "md", className: s, id: a, ...l }, i) => {
723
- const c = a ?? (t ? `vui-checkbox-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), _ = c ? `${c}-error` : void 0, p = c && o ? `${c}-desc` : void 0, m = [
724
- X.checkbox,
725
- X[r],
726
- n ? X.hasError : "",
727
- s ?? ""
722
+ fs.displayName = "Select";
723
+ const bs = "_wrapper_iu9cq_1", gs = "_row_iu9cq_7", vs = "_checkbox_iu9cq_14", ws = "_hasError_iu9cq_51", $s = "_sm_iu9cq_60", ys = "_md_iu9cq_74", ks = "_lg_iu9cq_88", Ns = "_label_iu9cq_102", xs = "_description_iu9cq_113", Bs = "_errorText_iu9cq_123", J = {
724
+ wrapper: bs,
725
+ row: gs,
726
+ checkbox: vs,
727
+ hasError: ws,
728
+ sm: $s,
729
+ md: ys,
730
+ lg: ks,
731
+ label: Ns,
732
+ description: xs,
733
+ errorText: Bs
734
+ }, Ls = j.forwardRef(
735
+ ({ label: t, description: o, error: n, size: s = "md", className: r, id: i, ...l }, a) => {
736
+ const c = i ?? (t ? `vui-checkbox-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), _ = c ? `${c}-error` : void 0, h = c && o ? `${c}-desc` : void 0, m = [
737
+ J.checkbox,
738
+ J[s],
739
+ n ? J.hasError : "",
740
+ r ?? ""
728
741
  ].filter(Boolean).join(" ");
729
- return /* @__PURE__ */ h("div", { className: `${X.wrapper} ${X[r]}`, children: [
730
- /* @__PURE__ */ h("div", { className: X.row, children: [
742
+ return /* @__PURE__ */ d("div", { className: `${J.wrapper} ${J[s]}`, children: [
743
+ /* @__PURE__ */ d("div", { className: J.row, children: [
731
744
  /* @__PURE__ */ e(
732
745
  "input",
733
746
  {
734
- ref: i,
747
+ ref: a,
735
748
  type: "checkbox",
736
749
  id: c,
737
750
  className: m,
738
751
  "aria-invalid": !!n,
739
- "aria-describedby": [n ? _ : null, p].filter(Boolean).join(" ") || void 0,
752
+ "aria-describedby": [n ? _ : null, h].filter(Boolean).join(" ") || void 0,
740
753
  ...l
741
754
  }
742
755
  ),
743
- t && /* @__PURE__ */ e("label", { htmlFor: c, className: X.label, children: t })
756
+ t && /* @__PURE__ */ e("label", { htmlFor: c, className: J.label, children: t })
744
757
  ] }),
745
- o && !n && /* @__PURE__ */ e("span", { id: p, className: X.description, children: o }),
746
- n && /* @__PURE__ */ e("span", { id: _, className: X.errorText, role: "alert", children: n })
758
+ o && !n && /* @__PURE__ */ e("span", { id: h, className: J.description, children: o }),
759
+ n && /* @__PURE__ */ e("span", { id: _, className: J.errorText, role: "alert", children: n })
747
760
  ] });
748
761
  }
749
762
  );
750
- rr.displayName = "Checkbox";
751
- const sr = "_fieldset_nj7or_1", ar = "_legend_nj7or_10", ir = "_required_nj7or_19", lr = "_group_nj7or_24", cr = "_vertical_nj7or_28", dr = "_horizontal_nj7or_33", _r = "_option_nj7or_39", ur = "_radio_nj7or_46", pr = "_hasError_nj7or_81", hr = "_sm_nj7or_86", mr = "_md_nj7or_87", fr = "_lg_nj7or_88", br = "_optionContent_nj7or_90", gr = "_optionLabel_nj7or_96", vr = "_optionDescription_nj7or_107", wr = "_hint_nj7or_113", $r = "_errorText_nj7or_119", T = {
752
- fieldset: sr,
753
- legend: ar,
754
- required: ir,
755
- group: lr,
756
- vertical: cr,
757
- horizontal: dr,
758
- option: _r,
759
- radio: ur,
760
- hasError: pr,
761
- sm: hr,
762
- md: mr,
763
- lg: fr,
764
- optionContent: br,
765
- optionLabel: gr,
766
- optionDescription: vr,
767
- hint: wr,
768
- errorText: $r
769
- }, gc = ({
763
+ Ls.displayName = "Checkbox";
764
+ const js = "_fieldset_nj7or_1", Is = "_legend_nj7or_10", Cs = "_required_nj7or_19", zs = "_group_nj7or_24", Ws = "_vertical_nj7or_28", Es = "_horizontal_nj7or_33", Rs = "_option_nj7or_39", Ss = "_radio_nj7or_46", Ts = "_hasError_nj7or_81", Ds = "_sm_nj7or_86", qs = "_md_nj7or_87", Ms = "_lg_nj7or_88", Fs = "_optionContent_nj7or_90", As = "_optionLabel_nj7or_96", Hs = "_optionDescription_nj7or_107", Ps = "_hint_nj7or_113", Os = "_errorText_nj7or_119", T = {
765
+ fieldset: js,
766
+ legend: Is,
767
+ required: Cs,
768
+ group: zs,
769
+ vertical: Ws,
770
+ horizontal: Es,
771
+ option: Rs,
772
+ radio: Ss,
773
+ hasError: Ts,
774
+ sm: Ds,
775
+ md: qs,
776
+ lg: Ms,
777
+ optionContent: Fs,
778
+ optionLabel: As,
779
+ optionDescription: Hs,
780
+ hint: Ps,
781
+ errorText: Os
782
+ }, J_ = ({
770
783
  name: t,
771
784
  label: o,
772
785
  options: n,
773
- value: r,
774
- defaultValue: s,
775
- onChange: a,
786
+ value: s,
787
+ defaultValue: r,
788
+ onChange: i,
776
789
  size: l = "md",
777
- orientation: i = "vertical",
790
+ orientation: a = "vertical",
778
791
  error: c,
779
792
  hint: _,
780
- required: p
793
+ required: h
781
794
  }) => {
782
- const m = `vui-radiogroup-${t}`, d = `${m}-error`, f = `${m}-hint`, g = r !== void 0;
783
- return /* @__PURE__ */ h(
795
+ const m = `vui-radiogroup-${t}`, u = `${m}-error`, f = `${m}-hint`, v = s !== void 0;
796
+ return /* @__PURE__ */ d(
784
797
  "fieldset",
785
798
  {
786
799
  className: `${T.fieldset} ${T[l]}`,
787
- "aria-describedby": [c ? d : null, _ && !c ? f : null].filter(Boolean).join(" ") || void 0,
800
+ "aria-describedby": [c ? u : null, _ && !c ? f : null].filter(Boolean).join(" ") || void 0,
788
801
  children: [
789
- o && /* @__PURE__ */ h("legend", { className: T.legend, children: [
802
+ o && /* @__PURE__ */ d("legend", { className: T.legend, children: [
790
803
  o,
791
- p && /* @__PURE__ */ e("span", { className: T.required, "aria-hidden": "true", children: "*" })
804
+ h && /* @__PURE__ */ e("span", { className: T.required, "aria-hidden": "true", children: "*" })
792
805
  ] }),
793
- /* @__PURE__ */ e("div", { className: `${T.group} ${T[i]}`, children: n.map((u) => {
794
- const v = `${m}-${u.value}`, w = g ? { checked: r === u.value } : { defaultChecked: s === u.value };
795
- return /* @__PURE__ */ h("div", { className: T.option, children: [
806
+ /* @__PURE__ */ e("div", { className: `${T.group} ${T[a]}`, children: n.map((p) => {
807
+ const g = `${m}-${p.value}`, w = v ? { checked: s === p.value } : { defaultChecked: r === p.value };
808
+ return /* @__PURE__ */ d("div", { className: T.option, children: [
796
809
  /* @__PURE__ */ e(
797
810
  "input",
798
811
  {
799
812
  type: "radio",
800
- id: v,
813
+ id: g,
801
814
  name: t,
802
- value: u.value,
803
- disabled: u.disabled,
804
- required: p,
805
- onChange: () => a == null ? void 0 : a(u.value),
815
+ value: p.value,
816
+ disabled: p.disabled,
817
+ required: h,
818
+ onChange: () => i == null ? void 0 : i(p.value),
806
819
  className: `${T.radio} ${c ? T.hasError : ""}`,
807
820
  "aria-invalid": c ? !0 : void 0,
808
821
  ...w
809
822
  }
810
823
  ),
811
- /* @__PURE__ */ h("div", { className: T.optionContent, children: [
812
- /* @__PURE__ */ e("label", { htmlFor: v, className: T.optionLabel, children: u.label }),
813
- u.description && /* @__PURE__ */ e("span", { className: T.optionDescription, children: u.description })
824
+ /* @__PURE__ */ d("div", { className: T.optionContent, children: [
825
+ /* @__PURE__ */ e("label", { htmlFor: g, className: T.optionLabel, children: p.label }),
826
+ p.description && /* @__PURE__ */ e("span", { className: T.optionDescription, children: p.description })
814
827
  ] })
815
- ] }, u.value);
828
+ ] }, p.value);
816
829
  }) }),
817
- c && /* @__PURE__ */ e("span", { id: d, className: T.errorText, role: "alert", children: c }),
830
+ c && /* @__PURE__ */ e("span", { id: u, className: T.errorText, role: "alert", children: c }),
818
831
  _ && !c && /* @__PURE__ */ e("span", { id: f, className: T.hint, children: _ })
819
832
  ]
820
833
  }
821
834
  );
822
- }, kr = "_wrapper_okiio_1", yr = "_labelRow_okiio_7", Nr = "_track_okiio_15", xr = "_input_okiio_23", Lr = "_thumb_okiio_32", Br = "_labelText_okiio_65", jr = "_sm_okiio_74", Ir = "_md_okiio_80", Cr = "_lg_okiio_86", Er = "_description_okiio_98", Q = {
823
- wrapper: kr,
824
- labelRow: yr,
825
- track: Nr,
826
- input: xr,
827
- thumb: Lr,
828
- labelText: Br,
829
- sm: jr,
830
- md: Ir,
831
- lg: Cr,
832
- description: Er
833
- }, qr = j.forwardRef(
834
- ({ label: t, description: o, size: n = "md", className: r, id: s, ...a }, l) => {
835
- const i = s ?? (t ? `vui-switch-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), c = i && o ? `${i}-desc` : void 0;
836
- return /* @__PURE__ */ h("div", { className: `${Q.wrapper} ${Q[n]}`, children: [
837
- /* @__PURE__ */ h("label", { className: Q.labelRow, htmlFor: i, children: [
838
- /* @__PURE__ */ h("span", { className: Q.track, children: [
835
+ }, Us = "_wrapper_okiio_1", Vs = "_labelRow_okiio_7", Xs = "_track_okiio_15", Ys = "_input_okiio_23", Ks = "_thumb_okiio_32", Gs = "_labelText_okiio_65", Js = "_sm_okiio_74", Qs = "_md_okiio_80", Zs = "_lg_okiio_86", er = "_description_okiio_98", oe = {
836
+ wrapper: Us,
837
+ labelRow: Vs,
838
+ track: Xs,
839
+ input: Ys,
840
+ thumb: Ks,
841
+ labelText: Gs,
842
+ sm: Js,
843
+ md: Qs,
844
+ lg: Zs,
845
+ description: er
846
+ }, tr = j.forwardRef(
847
+ ({ label: t, description: o, size: n = "md", className: s, id: r, ...i }, l) => {
848
+ const a = r ?? (t ? `vui-switch-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), c = a && o ? `${a}-desc` : void 0;
849
+ return /* @__PURE__ */ d("div", { className: `${oe.wrapper} ${oe[n]}`, children: [
850
+ /* @__PURE__ */ d("label", { className: oe.labelRow, htmlFor: a, children: [
851
+ /* @__PURE__ */ d("span", { className: oe.track, children: [
839
852
  /* @__PURE__ */ e(
840
853
  "input",
841
854
  {
842
855
  ref: l,
843
856
  type: "checkbox",
844
857
  role: "switch",
845
- id: i,
846
- className: `${Q.input} ${r ?? ""}`,
858
+ id: a,
859
+ className: `${oe.input} ${s ?? ""}`,
847
860
  "aria-describedby": c || void 0,
848
- ...a
861
+ ...i
849
862
  }
850
863
  ),
851
- /* @__PURE__ */ e("span", { className: Q.thumb, "aria-hidden": "true" })
864
+ /* @__PURE__ */ e("span", { className: oe.thumb, "aria-hidden": "true" })
852
865
  ] }),
853
- t && /* @__PURE__ */ e("span", { className: Q.labelText, children: t })
866
+ t && /* @__PURE__ */ e("span", { className: oe.labelText, children: t })
854
867
  ] }),
855
- o && /* @__PURE__ */ e("span", { id: c, className: Q.description, children: o })
868
+ o && /* @__PURE__ */ e("span", { id: c, className: oe.description, children: o })
856
869
  ] });
857
870
  }
858
871
  );
859
- qr.displayName = "Switch";
860
- const Wr = "_overlay_gedqr_1", Tr = "_overlayFadeIn_gedqr_1", Rr = "_dialog_gedqr_19", Mr = "_dialogSlideUp_gedqr_1", Sr = "_sm_gedqr_39", zr = "_md_gedqr_40", Dr = "_lg_gedqr_41", Fr = "_xl_gedqr_42", Ar = "_header_gedqr_45", Hr = "_title_gedqr_51", Or = "_description_gedqr_59", Ur = "_body_gedqr_66", Pr = "_footer_gedqr_71", Vr = "_closeBtn_gedqr_81", U = {
861
- overlay: Wr,
862
- overlayFadeIn: Tr,
863
- dialog: Rr,
864
- dialogSlideUp: Mr,
865
- sm: Sr,
866
- md: zr,
867
- lg: Dr,
868
- xl: Fr,
869
- header: Ar,
870
- title: Hr,
871
- description: Or,
872
- body: Ur,
873
- footer: Pr,
874
- closeBtn: Vr
875
- }, He = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])', Ge = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${U.header} ${o ?? ""}`, ...n, children: t });
876
- Ge.displayName = "Dialog.Header";
877
- const Ke = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${U.body} ${o ?? ""}`, ...n, children: t });
878
- Ke.displayName = "Dialog.Body";
879
- const Je = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${U.footer} ${o ?? ""}`, ...n, children: t });
880
- Je.displayName = "Dialog.Footer";
881
- const Oe = { current: 0 }, Xr = ({
872
+ tr.displayName = "Switch";
873
+ const nr = "_overlay_gedqr_1", or = "_overlayFadeIn_gedqr_1", sr = "_dialog_gedqr_19", rr = "_dialogSlideUp_gedqr_1", ar = "_sm_gedqr_39", ir = "_md_gedqr_40", lr = "_lg_gedqr_41", cr = "_xl_gedqr_42", dr = "_header_gedqr_45", _r = "_title_gedqr_51", ur = "_description_gedqr_59", pr = "_body_gedqr_66", hr = "_footer_gedqr_71", mr = "_closeBtn_gedqr_81", K = {
874
+ overlay: nr,
875
+ overlayFadeIn: or,
876
+ dialog: sr,
877
+ dialogSlideUp: rr,
878
+ sm: ar,
879
+ md: ir,
880
+ lg: lr,
881
+ xl: cr,
882
+ header: dr,
883
+ title: _r,
884
+ description: ur,
885
+ body: pr,
886
+ footer: hr,
887
+ closeBtn: mr
888
+ }, Ze = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])', lt = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${K.header} ${o ?? ""}`, ...n, children: t });
889
+ lt.displayName = "Dialog.Header";
890
+ const ct = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${K.body} ${o ?? ""}`, ...n, children: t });
891
+ ct.displayName = "Dialog.Body";
892
+ const dt = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${K.footer} ${o ?? ""}`, ...n, children: t });
893
+ dt.displayName = "Dialog.Footer";
894
+ const et = { current: 0 }, fr = ({
882
895
  open: t,
883
896
  onClose: o,
884
897
  title: n,
885
- description: r,
886
- size: s = "md",
887
- children: a,
898
+ description: s,
899
+ size: r = "md",
900
+ children: i,
888
901
  className: l,
889
- closeOnOverlayClick: i = !0
902
+ closeOnOverlayClick: a = !0
890
903
  }) => {
891
- const c = A(null), _ = A(`vui-dialog-title-${++Oe.current}`).current, p = A(`vui-dialog-desc-${Oe.current}`).current, m = A(null);
892
- if (he(() => {
904
+ const c = A(null), _ = A(`vui-dialog-title-${++et.current}`).current, h = A(`vui-dialog-desc-${et.current}`).current, m = A(null);
905
+ if (ae(() => {
893
906
  if (!t) return;
894
907
  m.current = document.activeElement, document.body.style.overflow = "hidden";
895
- const g = requestAnimationFrame(() => {
896
- var w, L;
897
- const v = (w = c.current) == null ? void 0 : w.querySelectorAll(He);
898
- (L = v == null ? void 0 : v[0]) == null || L.focus();
899
- }), u = (v) => {
900
- if (v.key === "Escape") {
908
+ const v = requestAnimationFrame(() => {
909
+ var w, B;
910
+ const g = (w = c.current) == null ? void 0 : w.querySelectorAll(Ze);
911
+ (B = g == null ? void 0 : g[0]) == null || B.focus();
912
+ }), p = (g) => {
913
+ if (g.key === "Escape") {
901
914
  o();
902
915
  return;
903
916
  }
904
- if (v.key === "Tab" && c.current) {
917
+ if (g.key === "Tab" && c.current) {
905
918
  const w = Array.from(
906
- c.current.querySelectorAll(He)
919
+ c.current.querySelectorAll(Ze)
907
920
  );
908
921
  if (w.length === 0) {
909
- v.preventDefault();
922
+ g.preventDefault();
910
923
  return;
911
924
  }
912
- const L = w[0], $ = w[w.length - 1];
913
- v.shiftKey ? document.activeElement === L && ($.focus(), v.preventDefault()) : document.activeElement === $ && (L.focus(), v.preventDefault());
925
+ const B = w[0], y = w[w.length - 1];
926
+ g.shiftKey ? document.activeElement === B && (y.focus(), g.preventDefault()) : document.activeElement === y && (B.focus(), g.preventDefault());
914
927
  }
915
928
  };
916
- return document.addEventListener("keydown", u), () => {
917
- var v;
918
- cancelAnimationFrame(g), document.removeEventListener("keydown", u), document.body.style.overflow = "", (v = m.current) == null || v.focus();
929
+ return document.addEventListener("keydown", p), () => {
930
+ var g;
931
+ cancelAnimationFrame(v), document.removeEventListener("keydown", p), document.body.style.overflow = "", (g = m.current) == null || g.focus();
919
932
  };
920
933
  }, [t, o]), !t) return null;
921
- const d = (f) => {
922
- i && f.target === f.currentTarget && o();
934
+ const u = (f) => {
935
+ a && f.target === f.currentTarget && o();
923
936
  };
924
937
  return /* @__PURE__ */ e(
925
938
  "div",
926
939
  {
927
- className: U.overlay,
928
- onClick: d,
940
+ className: K.overlay,
941
+ onClick: u,
929
942
  "aria-modal": "true",
930
943
  role: "presentation",
931
- children: /* @__PURE__ */ h(
944
+ children: /* @__PURE__ */ d(
932
945
  "div",
933
946
  {
934
947
  ref: c,
935
948
  role: "dialog",
936
949
  "aria-labelledby": n ? _ : void 0,
937
- "aria-describedby": r ? p : void 0,
938
- className: [U.dialog, U[s], l ?? ""].filter(Boolean).join(" "),
950
+ "aria-describedby": s ? h : void 0,
951
+ className: [K.dialog, K[r], l ?? ""].filter(Boolean).join(" "),
939
952
  children: [
940
- n && /* @__PURE__ */ h("div", { className: U.header, children: [
941
- /* @__PURE__ */ e("p", { id: _, className: U.title, children: n }),
942
- r && /* @__PURE__ */ e("p", { id: p, className: U.description, children: r })
953
+ n && /* @__PURE__ */ d("div", { className: K.header, children: [
954
+ /* @__PURE__ */ e("p", { id: _, className: K.title, children: n }),
955
+ s && /* @__PURE__ */ e("p", { id: h, className: K.description, children: s })
943
956
  ] }),
944
- a,
957
+ i,
945
958
  /* @__PURE__ */ e(
946
959
  "button",
947
960
  {
948
961
  type: "button",
949
- className: U.closeBtn,
962
+ className: K.closeBtn,
950
963
  onClick: o,
951
964
  "aria-label": "Close dialog",
952
965
  children: /* @__PURE__ */ e(
@@ -976,185 +989,185 @@ const Oe = { current: 0 }, Xr = ({
976
989
  )
977
990
  }
978
991
  );
979
- }, Te = Xr;
980
- Te.Header = Ge;
981
- Te.Body = Ke;
982
- Te.Footer = Je;
983
- Te.displayName = "Dialog";
984
- const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25", Jr = "_top_16e9w_30", Qr = "_bottom_16e9w_36", Zr = "_left_16e9w_42", es = "_right_16e9w_48", ts = "_arrow_16e9w_55", ns = "_arrowTop_16e9w_61", os = "_arrowBottom_16e9w_70", rs = "_arrowLeft_16e9w_79", ss = "_arrowRight_16e9w_88", ce = {
985
- wrapper: Yr,
986
- tooltip: Gr,
987
- visible: Kr,
988
- top: Jr,
989
- bottom: Qr,
990
- left: Zr,
991
- right: es,
992
- arrow: ts,
993
- arrowTop: ns,
994
- arrowBottom: os,
995
- arrowLeft: rs,
996
- arrowRight: ss
997
- }, vc = ({
992
+ }, Ue = fr;
993
+ Ue.Header = lt;
994
+ Ue.Body = ct;
995
+ Ue.Footer = dt;
996
+ Ue.displayName = "Dialog";
997
+ const br = "_wrapper_16e9w_1", gr = "_tooltip_16e9w_6", vr = "_visible_16e9w_25", wr = "_top_16e9w_30", $r = "_bottom_16e9w_36", yr = "_left_16e9w_42", kr = "_right_16e9w_48", Nr = "_arrow_16e9w_55", xr = "_arrowTop_16e9w_61", Br = "_arrowBottom_16e9w_70", Lr = "_arrowLeft_16e9w_79", jr = "_arrowRight_16e9w_88", me = {
998
+ wrapper: br,
999
+ tooltip: gr,
1000
+ visible: vr,
1001
+ top: wr,
1002
+ bottom: $r,
1003
+ left: yr,
1004
+ right: kr,
1005
+ arrow: Nr,
1006
+ arrowTop: xr,
1007
+ arrowBottom: Br,
1008
+ arrowLeft: Lr,
1009
+ arrowRight: jr
1010
+ }, Q_ = ({
998
1011
  content: t,
999
1012
  children: o,
1000
1013
  placement: n = "top",
1001
- delay: r = 0
1014
+ delay: s = 0
1002
1015
  }) => {
1003
- const [s, a] = D(!1), i = `vui-tooltip-${qe().replace(/:/g, "")}`, c = j.useRef(null), _ = () => {
1004
- r > 0 ? c.current = setTimeout(() => a(!0), r) : a(!0);
1005
- }, p = () => {
1006
- c.current && clearTimeout(c.current), a(!1);
1016
+ const [r, i] = O(!1), a = `vui-tooltip-${Pe().replace(/:/g, "")}`, c = j.useRef(null), _ = () => {
1017
+ s > 0 ? c.current = setTimeout(() => i(!0), s) : i(!0);
1018
+ }, h = () => {
1019
+ c.current && clearTimeout(c.current), i(!1);
1007
1020
  }, m = j.cloneElement(o, {
1008
- "aria-describedby": s ? i : void 0
1021
+ "aria-describedby": r ? a : void 0
1009
1022
  });
1010
- return /* @__PURE__ */ h(
1023
+ return /* @__PURE__ */ d(
1011
1024
  "span",
1012
1025
  {
1013
- className: ce.wrapper,
1026
+ className: me.wrapper,
1014
1027
  onMouseEnter: _,
1015
- onMouseLeave: p,
1028
+ onMouseLeave: h,
1016
1029
  onFocus: _,
1017
- onBlur: p,
1030
+ onBlur: h,
1018
1031
  children: [
1019
1032
  m,
1020
- /* @__PURE__ */ h(
1033
+ /* @__PURE__ */ d(
1021
1034
  "span",
1022
1035
  {
1023
- id: i,
1036
+ id: a,
1024
1037
  role: "tooltip",
1025
- className: [ce.tooltip, ce[n], s ? ce.visible : ""].filter(Boolean).join(" "),
1026
- "aria-hidden": !s,
1038
+ className: [me.tooltip, me[n], r ? me.visible : ""].filter(Boolean).join(" "),
1039
+ "aria-hidden": !r,
1027
1040
  children: [
1028
1041
  t,
1029
- /* @__PURE__ */ e("span", { className: `${ce.arrow} ${ce[`arrow${n.charAt(0).toUpperCase()}${n.slice(1)}`]}`, "aria-hidden": "true" })
1042
+ /* @__PURE__ */ e("span", { className: `${me.arrow} ${me[`arrow${n.charAt(0).toUpperCase()}${n.slice(1)}`]}`, "aria-hidden": "true" })
1030
1043
  ]
1031
1044
  }
1032
1045
  )
1033
1046
  ]
1034
1047
  }
1035
1048
  );
1036
- }, as = "_tabs_16y0p_1", is = "_tablist_16y0p_8", ls = "_underline_16y0p_14", cs = "_tab_16y0p_1", ds = "_activeTab_16y0p_39", _s = "_pills_16y0p_50", us = "_boxed_16y0p_89", ps = "_panel_16y0p_139", de = {
1037
- tabs: as,
1038
- tablist: is,
1039
- underline: ls,
1040
- tab: cs,
1041
- activeTab: ds,
1042
- pills: _s,
1043
- boxed: us,
1044
- panel: ps
1045
- }, wc = ({
1049
+ }, Ir = "_tabs_16y0p_1", Cr = "_tablist_16y0p_8", zr = "_underline_16y0p_14", Wr = "_tab_16y0p_1", Er = "_activeTab_16y0p_39", Rr = "_pills_16y0p_50", Sr = "_boxed_16y0p_89", Tr = "_panel_16y0p_139", fe = {
1050
+ tabs: Ir,
1051
+ tablist: Cr,
1052
+ underline: zr,
1053
+ tab: Wr,
1054
+ activeTab: Er,
1055
+ pills: Rr,
1056
+ boxed: Sr,
1057
+ panel: Tr
1058
+ }, Z_ = ({
1046
1059
  items: t,
1047
1060
  defaultValue: o,
1048
1061
  value: n,
1049
- onChange: r,
1050
- variant: s = "underline"
1062
+ onChange: s,
1063
+ variant: r = "underline"
1051
1064
  }) => {
1052
- var g;
1053
- const a = n !== void 0, [l, i] = D(
1054
- o ?? ((g = t[0]) == null ? void 0 : g.value) ?? ""
1055
- ), c = a ? n : l, _ = A(null), p = (u) => {
1056
- a || i(u), r == null || r(u);
1057
- }, m = (u, v) => {
1058
- var q;
1059
- const w = t.filter((N) => !N.disabled), L = w.findIndex((N) => N.value === t[v].value);
1060
- let $ = null;
1061
- if (u.key === "ArrowRight" ? $ = (L + 1) % w.length : u.key === "ArrowLeft" ? $ = (L - 1 + w.length) % w.length : u.key === "Home" ? $ = 0 : u.key === "End" && ($ = w.length - 1), $ !== null) {
1062
- u.preventDefault();
1063
- const N = w[$];
1064
- p(N.value);
1065
- const P = (q = _.current) == null ? void 0 : q.querySelector(
1065
+ var v;
1066
+ const i = n !== void 0, [l, a] = O(
1067
+ o ?? ((v = t[0]) == null ? void 0 : v.value) ?? ""
1068
+ ), c = i ? n : l, _ = A(null), h = (p) => {
1069
+ i || a(p), s == null || s(p);
1070
+ }, m = (p, g) => {
1071
+ var z;
1072
+ const w = t.filter((N) => !N.disabled), B = w.findIndex((N) => N.value === t[g].value);
1073
+ let y = null;
1074
+ if (p.key === "ArrowRight" ? y = (B + 1) % w.length : p.key === "ArrowLeft" ? y = (B - 1 + w.length) % w.length : p.key === "Home" ? y = 0 : p.key === "End" && (y = w.length - 1), y !== null) {
1075
+ p.preventDefault();
1076
+ const N = w[y];
1077
+ h(N.value);
1078
+ const H = (z = _.current) == null ? void 0 : z.querySelector(
1066
1079
  `[data-value="${N.value}"]`
1067
1080
  );
1068
- P == null || P.focus();
1081
+ H == null || H.focus();
1069
1082
  }
1070
- }, d = (u) => `vui-tabpanel-${u}`, f = (u) => `vui-tab-${u}`;
1071
- return /* @__PURE__ */ h("div", { className: de.tabs, children: [
1083
+ }, u = (p) => `vui-tabpanel-${p}`, f = (p) => `vui-tab-${p}`;
1084
+ return /* @__PURE__ */ d("div", { className: fe.tabs, children: [
1072
1085
  /* @__PURE__ */ e(
1073
1086
  "div",
1074
1087
  {
1075
1088
  ref: _,
1076
1089
  role: "tablist",
1077
- className: [de.tablist, de[s]].filter(Boolean).join(" "),
1078
- children: t.map((u, v) => /* @__PURE__ */ e(
1090
+ className: [fe.tablist, fe[r]].filter(Boolean).join(" "),
1091
+ children: t.map((p, g) => /* @__PURE__ */ e(
1079
1092
  "button",
1080
1093
  {
1081
- id: f(u.value),
1094
+ id: f(p.value),
1082
1095
  role: "tab",
1083
1096
  type: "button",
1084
- "data-value": u.value,
1085
- "aria-selected": c === u.value,
1086
- "aria-controls": d(u.value),
1087
- disabled: u.disabled,
1088
- tabIndex: c === u.value ? 0 : -1,
1097
+ "data-value": p.value,
1098
+ "aria-selected": c === p.value,
1099
+ "aria-controls": u(p.value),
1100
+ disabled: p.disabled,
1101
+ tabIndex: c === p.value ? 0 : -1,
1089
1102
  className: [
1090
- de.tab,
1091
- c === u.value ? de.activeTab : ""
1103
+ fe.tab,
1104
+ c === p.value ? fe.activeTab : ""
1092
1105
  ].filter(Boolean).join(" "),
1093
- onClick: () => p(u.value),
1094
- onKeyDown: (w) => m(w, v),
1095
- children: u.label
1106
+ onClick: () => h(p.value),
1107
+ onKeyDown: (w) => m(w, g),
1108
+ children: p.label
1096
1109
  },
1097
- u.value
1110
+ p.value
1098
1111
  ))
1099
1112
  }
1100
1113
  ),
1101
- t.map((u) => /* @__PURE__ */ e(
1114
+ t.map((p) => /* @__PURE__ */ e(
1102
1115
  "div",
1103
1116
  {
1104
- id: d(u.value),
1117
+ id: u(p.value),
1105
1118
  role: "tabpanel",
1106
- "aria-labelledby": f(u.value),
1107
- hidden: c !== u.value,
1108
- className: de.panel,
1109
- children: u.children
1119
+ "aria-labelledby": f(p.value),
1120
+ hidden: c !== p.value,
1121
+ className: fe.panel,
1122
+ children: p.children
1110
1123
  },
1111
- u.value
1124
+ p.value
1112
1125
  ))
1113
1126
  ] });
1114
- }, hs = "_accordion_wacbm_1", ms = "_bordered_wacbm_7", fs = "_item_wacbm_13", bs = "_flush_wacbm_17", gs = "_separated_wacbm_21", vs = "_heading_wacbm_35", ws = "_trigger_wacbm_40", $s = "_icon_wacbm_72", ks = "_open_wacbm_80", ys = "_contentOuter_wacbm_85", Ns = "_contentInner_wacbm_95", Y = {
1115
- accordion: hs,
1116
- bordered: ms,
1117
- item: fs,
1118
- flush: bs,
1119
- separated: gs,
1120
- heading: vs,
1121
- trigger: ws,
1122
- icon: $s,
1123
- open: ks,
1124
- contentOuter: ys,
1125
- contentInner: Ns
1126
- }, $c = ({
1127
+ }, Dr = "_accordion_wacbm_1", qr = "_bordered_wacbm_7", Mr = "_item_wacbm_13", Fr = "_flush_wacbm_17", Ar = "_separated_wacbm_21", Hr = "_heading_wacbm_35", Pr = "_trigger_wacbm_40", Or = "_icon_wacbm_72", Ur = "_open_wacbm_80", Vr = "_contentOuter_wacbm_85", Xr = "_contentInner_wacbm_95", Q = {
1128
+ accordion: Dr,
1129
+ bordered: qr,
1130
+ item: Mr,
1131
+ flush: Fr,
1132
+ separated: Ar,
1133
+ heading: Hr,
1134
+ trigger: Pr,
1135
+ icon: Or,
1136
+ open: Ur,
1137
+ contentOuter: Vr,
1138
+ contentInner: Xr
1139
+ }, eu = ({
1127
1140
  items: t,
1128
1141
  defaultValue: o,
1129
1142
  value: n,
1130
- onChange: r,
1131
- multiple: s = !1,
1132
- variant: a = "bordered"
1143
+ onChange: s,
1144
+ multiple: r = !1,
1145
+ variant: i = "bordered"
1133
1146
  }) => {
1134
- const l = n !== void 0, i = (d) => d ? Array.isArray(d) ? d : [d] : [], [c, _] = D(i(o)), p = l ? i(n) : c, m = (d) => {
1147
+ const l = n !== void 0, a = (u) => u ? Array.isArray(u) ? u : [u] : [], [c, _] = O(a(o)), h = l ? a(n) : c, m = (u) => {
1135
1148
  let f;
1136
- p.includes(d) ? f = p.filter((g) => g !== d) : f = s ? [...p, d] : [d], l || _(f), r == null || r(s ? f : f[0] ?? "");
1149
+ h.includes(u) ? f = h.filter((v) => v !== u) : f = r ? [...h, u] : [u], l || _(f), s == null || s(r ? f : f[0] ?? "");
1137
1150
  };
1138
- return /* @__PURE__ */ e("div", { className: [Y.accordion, Y[a]].filter(Boolean).join(" "), children: t.map((d) => {
1139
- const f = p.includes(d.value), g = `vui-accordion-trigger-${d.value}`, u = `vui-accordion-panel-${d.value}`;
1140
- return /* @__PURE__ */ h(
1151
+ return /* @__PURE__ */ e("div", { className: [Q.accordion, Q[i]].filter(Boolean).join(" "), children: t.map((u) => {
1152
+ const f = h.includes(u.value), v = `vui-accordion-trigger-${u.value}`, p = `vui-accordion-panel-${u.value}`;
1153
+ return /* @__PURE__ */ d(
1141
1154
  "div",
1142
1155
  {
1143
- className: [Y.item, f ? Y.open : ""].filter(Boolean).join(" "),
1156
+ className: [Q.item, f ? Q.open : ""].filter(Boolean).join(" "),
1144
1157
  children: [
1145
- /* @__PURE__ */ e("h3", { className: Y.heading, children: /* @__PURE__ */ h(
1158
+ /* @__PURE__ */ e("h3", { className: Q.heading, children: /* @__PURE__ */ d(
1146
1159
  "button",
1147
1160
  {
1148
- id: g,
1161
+ id: v,
1149
1162
  type: "button",
1150
1163
  "aria-expanded": f,
1151
- "aria-controls": u,
1152
- disabled: d.disabled,
1153
- className: Y.trigger,
1154
- onClick: () => !d.disabled && m(d.value),
1164
+ "aria-controls": p,
1165
+ disabled: u.disabled,
1166
+ className: Q.trigger,
1167
+ onClick: () => !u.disabled && m(u.value),
1155
1168
  children: [
1156
- /* @__PURE__ */ e("span", { children: d.title }),
1157
- /* @__PURE__ */ e("span", { className: Y.icon, "aria-hidden": "true", children: /* @__PURE__ */ e(
1169
+ /* @__PURE__ */ e("span", { children: u.title }),
1170
+ /* @__PURE__ */ e("span", { className: Q.icon, "aria-hidden": "true", children: /* @__PURE__ */ e(
1158
1171
  "svg",
1159
1172
  {
1160
1173
  width: "16",
@@ -1179,30 +1192,30 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
1179
1192
  /* @__PURE__ */ e(
1180
1193
  "div",
1181
1194
  {
1182
- id: u,
1195
+ id: p,
1183
1196
  role: "region",
1184
- "aria-labelledby": g,
1185
- className: Y.contentOuter,
1186
- children: /* @__PURE__ */ e("div", { className: Y.contentInner, children: d.content })
1197
+ "aria-labelledby": v,
1198
+ className: Q.contentOuter,
1199
+ children: /* @__PURE__ */ e("div", { className: Q.contentInner, children: u.content })
1187
1200
  }
1188
1201
  )
1189
1202
  ]
1190
1203
  },
1191
- d.value
1204
+ u.value
1192
1205
  );
1193
1206
  }) });
1194
- }, xs = "_alert_b1vtk_1", Ls = "_icon_b1vtk_12", Bs = "_content_b1vtk_19", js = "_title_b1vtk_24", Is = "_body_b1vtk_31", Cs = "_closeBtn_b1vtk_35", Es = "_info_b1vtk_64", qs = "_success_b1vtk_70", Ws = "_warning_b1vtk_76", Ts = "_danger_b1vtk_82", oe = {
1195
- alert: xs,
1196
- icon: Ls,
1197
- content: Bs,
1198
- title: js,
1199
- body: Is,
1200
- closeBtn: Cs,
1201
- info: Es,
1202
- success: qs,
1203
- warning: Ws,
1204
- danger: Ts
1205
- }, Rs = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
1207
+ }, Yr = "_alert_b1vtk_1", Kr = "_icon_b1vtk_12", Gr = "_content_b1vtk_19", Jr = "_title_b1vtk_24", Qr = "_body_b1vtk_31", Zr = "_closeBtn_b1vtk_35", ea = "_info_b1vtk_64", ta = "_success_b1vtk_70", na = "_warning_b1vtk_76", oa = "_danger_b1vtk_82", de = {
1208
+ alert: Yr,
1209
+ icon: Kr,
1210
+ content: Gr,
1211
+ title: Jr,
1212
+ body: Qr,
1213
+ closeBtn: Zr,
1214
+ info: ea,
1215
+ success: ta,
1216
+ warning: na,
1217
+ danger: oa
1218
+ }, sa = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
1206
1219
  "path",
1207
1220
  {
1208
1221
  strokeLinecap: "round",
@@ -1210,7 +1223,7 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
1210
1223
  strokeWidth: 2,
1211
1224
  d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
1212
1225
  }
1213
- ) }), Ms = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
1226
+ ) }), ra = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
1214
1227
  "path",
1215
1228
  {
1216
1229
  strokeLinecap: "round",
@@ -1218,7 +1231,7 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
1218
1231
  strokeWidth: 2,
1219
1232
  d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
1220
1233
  }
1221
- ) }), Ss = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
1234
+ ) }), aa = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
1222
1235
  "path",
1223
1236
  {
1224
1237
  strokeLinecap: "round",
@@ -1226,7 +1239,7 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
1226
1239
  strokeWidth: 2,
1227
1240
  d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
1228
1241
  }
1229
- ) }), zs = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
1242
+ ) }), ia = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
1230
1243
  "path",
1231
1244
  {
1232
1245
  strokeLinecap: "round",
@@ -1234,33 +1247,33 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
1234
1247
  strokeWidth: 2,
1235
1248
  d: "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
1236
1249
  }
1237
- ) }), Ds = {
1238
- info: /* @__PURE__ */ e(Rs, {}),
1239
- success: /* @__PURE__ */ e(Ms, {}),
1240
- warning: /* @__PURE__ */ e(Ss, {}),
1241
- danger: /* @__PURE__ */ e(zs, {})
1242
- }, kc = ({
1250
+ ) }), la = {
1251
+ info: /* @__PURE__ */ e(sa, {}),
1252
+ success: /* @__PURE__ */ e(ra, {}),
1253
+ warning: /* @__PURE__ */ e(aa, {}),
1254
+ danger: /* @__PURE__ */ e(ia, {})
1255
+ }, tu = ({
1243
1256
  variant: t = "info",
1244
1257
  title: o,
1245
1258
  icon: n,
1246
- onClose: r,
1247
- children: s,
1248
- className: a,
1259
+ onClose: s,
1260
+ children: r,
1261
+ className: i,
1249
1262
  ...l
1250
1263
  }) => {
1251
- const i = [oe.alert, oe[t], a ?? ""].filter(Boolean).join(" "), c = n !== void 0 ? n : Ds[t];
1252
- return /* @__PURE__ */ h("div", { className: i, role: "alert", ...l, children: [
1253
- c && /* @__PURE__ */ e("span", { className: oe.icon, "aria-hidden": "true", children: c }),
1254
- /* @__PURE__ */ h("div", { className: oe.content, children: [
1255
- o && /* @__PURE__ */ e("p", { className: oe.title, children: o }),
1256
- /* @__PURE__ */ e("div", { className: oe.body, children: s })
1264
+ const a = [de.alert, de[t], i ?? ""].filter(Boolean).join(" "), c = n !== void 0 ? n : la[t];
1265
+ return /* @__PURE__ */ d("div", { className: a, role: "alert", ...l, children: [
1266
+ c && /* @__PURE__ */ e("span", { className: de.icon, "aria-hidden": "true", children: c }),
1267
+ /* @__PURE__ */ d("div", { className: de.content, children: [
1268
+ o && /* @__PURE__ */ e("p", { className: de.title, children: o }),
1269
+ /* @__PURE__ */ e("div", { className: de.body, children: r })
1257
1270
  ] }),
1258
- r && /* @__PURE__ */ e(
1271
+ s && /* @__PURE__ */ e(
1259
1272
  "button",
1260
1273
  {
1261
1274
  type: "button",
1262
- className: oe.closeBtn,
1263
- onClick: r,
1275
+ className: de.closeBtn,
1276
+ onClick: s,
1264
1277
  "aria-label": "Dismiss alert",
1265
1278
  children: /* @__PURE__ */ e(
1266
1279
  "svg",
@@ -1285,22 +1298,22 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
1285
1298
  }
1286
1299
  )
1287
1300
  ] });
1288
- }, Fs = "_divider_vfae1_1", As = "_horizontal_vfae1_6", Hs = "_vertical_vfae1_12", Os = "_withLabel_vfae1_19", Us = "_label_vfae1_33", Ie = {
1289
- divider: Fs,
1290
- horizontal: As,
1291
- vertical: Hs,
1292
- withLabel: Os,
1293
- label: Us
1294
- }, yc = ({
1301
+ }, ca = "_divider_vfae1_1", da = "_horizontal_vfae1_6", _a = "_vertical_vfae1_12", ua = "_withLabel_vfae1_19", pa = "_label_vfae1_33", De = {
1302
+ divider: ca,
1303
+ horizontal: da,
1304
+ vertical: _a,
1305
+ withLabel: ua,
1306
+ label: pa
1307
+ }, nu = ({
1295
1308
  orientation: t = "horizontal",
1296
1309
  label: o,
1297
1310
  className: n,
1298
- ...r
1311
+ ...s
1299
1312
  }) => {
1300
- const s = [
1301
- Ie.divider,
1302
- Ie[t],
1303
- o ? Ie.withLabel : "",
1313
+ const r = [
1314
+ De.divider,
1315
+ De[t],
1316
+ o ? De.withLabel : "",
1304
1317
  n ?? ""
1305
1318
  ].filter(Boolean).join(" ");
1306
1319
  return /* @__PURE__ */ e(
@@ -1308,35 +1321,35 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
1308
1321
  {
1309
1322
  role: "separator",
1310
1323
  "aria-orientation": t,
1311
- className: s,
1312
- ...r,
1313
- children: o && /* @__PURE__ */ e("span", { className: Ie.label, children: o })
1324
+ className: r,
1325
+ ...s,
1326
+ children: o && /* @__PURE__ */ e("span", { className: De.label, children: o })
1314
1327
  }
1315
1328
  );
1316
- }, Ps = "_spinner_1232t_1", Vs = "_svg_1232t_8", Xs = "_spin_1232t_1", Ys = "_track_1232t_17", Gs = "_arc_1232t_21", Ks = "_sm_1232t_27", Js = "_md_1232t_33", Qs = "_lg_1232t_39", Zs = "_primary_1232t_46", ea = "_muted_1232t_50", ta = "_white_1232t_54", _e = {
1317
- spinner: Ps,
1318
- svg: Vs,
1319
- spin: Xs,
1320
- track: Ys,
1321
- arc: Gs,
1322
- sm: Ks,
1323
- md: Js,
1324
- lg: Qs,
1325
- primary: Zs,
1326
- muted: ea,
1327
- white: ta
1328
- }, Nc = ({
1329
+ }, ha = "_spinner_1232t_1", ma = "_svg_1232t_8", fa = "_spin_1232t_1", ba = "_track_1232t_17", ga = "_arc_1232t_21", va = "_sm_1232t_27", wa = "_md_1232t_33", $a = "_lg_1232t_39", ya = "_primary_1232t_46", ka = "_muted_1232t_50", Na = "_white_1232t_54", be = {
1330
+ spinner: ha,
1331
+ svg: ma,
1332
+ spin: fa,
1333
+ track: ba,
1334
+ arc: ga,
1335
+ sm: va,
1336
+ md: wa,
1337
+ lg: $a,
1338
+ primary: ya,
1339
+ muted: ka,
1340
+ white: Na
1341
+ }, ou = ({
1329
1342
  size: t = "md",
1330
1343
  color: o = "primary",
1331
1344
  label: n = "Loading…",
1332
- className: r,
1333
- ...s
1345
+ className: s,
1346
+ ...r
1334
1347
  }) => {
1335
- const a = [_e.spinner, _e[t], _e[o], r ?? ""].filter(Boolean).join(" ");
1336
- return /* @__PURE__ */ e("span", { className: a, role: "status", "aria-label": n, ...s, children: /* @__PURE__ */ h(
1348
+ const i = [be.spinner, be[t], be[o], s ?? ""].filter(Boolean).join(" ");
1349
+ return /* @__PURE__ */ e("span", { className: i, role: "status", "aria-label": n, ...r, children: /* @__PURE__ */ d(
1337
1350
  "svg",
1338
1351
  {
1339
- className: _e.svg,
1352
+ className: be.svg,
1340
1353
  viewBox: "0 0 24 24",
1341
1354
  fill: "none",
1342
1355
  "aria-hidden": "true",
@@ -1344,7 +1357,7 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
1344
1357
  /* @__PURE__ */ e(
1345
1358
  "circle",
1346
1359
  {
1347
- className: _e.track,
1360
+ className: be.track,
1348
1361
  cx: "12",
1349
1362
  cy: "12",
1350
1363
  r: "10",
@@ -1355,7 +1368,7 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
1355
1368
  /* @__PURE__ */ e(
1356
1369
  "circle",
1357
1370
  {
1358
- className: _e.arc,
1371
+ className: be.arc,
1359
1372
  cx: "12",
1360
1373
  cy: "12",
1361
1374
  r: "10",
@@ -1367,44 +1380,44 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
1367
1380
  ]
1368
1381
  }
1369
1382
  ) });
1370
- }, na = "_block_tuupu_1", oa = "_stack_tuupu_13", Se = {
1371
- block: na,
1372
- stack: oa
1373
- }, re = (t) => {
1383
+ }, xa = "_block_tuupu_1", Ba = "_stack_tuupu_13", Ye = {
1384
+ block: xa,
1385
+ stack: Ba
1386
+ }, _e = (t) => {
1374
1387
  if (t !== void 0)
1375
1388
  return typeof t == "number" ? `${t}px` : t;
1376
- }, xc = ({
1389
+ }, su = ({
1377
1390
  width: t,
1378
1391
  height: o,
1379
1392
  radius: n,
1380
- lines: r,
1381
- gap: s,
1382
- className: a,
1393
+ lines: s,
1394
+ gap: r,
1395
+ className: i,
1383
1396
  style: l,
1384
- ...i
1397
+ ...a
1385
1398
  }) => {
1386
- if (r && r > 1) {
1387
- const c = re(s) ?? "0.5rem";
1399
+ if (s && s > 1) {
1400
+ const c = _e(r) ?? "0.5rem";
1388
1401
  return /* @__PURE__ */ e(
1389
1402
  "span",
1390
1403
  {
1391
- className: [Se.stack, a ?? ""].filter(Boolean).join(" "),
1404
+ className: [Ye.stack, i ?? ""].filter(Boolean).join(" "),
1392
1405
  style: { gap: c, ...l },
1393
1406
  "aria-hidden": "true",
1394
- ...i,
1395
- children: Array.from({ length: r }).map((_, p) => {
1396
- const m = p === r - 1;
1407
+ ...a,
1408
+ children: Array.from({ length: s }).map((_, h) => {
1409
+ const m = h === s - 1;
1397
1410
  return /* @__PURE__ */ e(
1398
1411
  "span",
1399
1412
  {
1400
- className: Se.block,
1413
+ className: Ye.block,
1401
1414
  style: {
1402
- width: m ? "75%" : re(t) ?? "100%",
1403
- height: re(o) ?? "1rem",
1404
- borderRadius: re(n) ?? "var(--vui-radius-sm, 0.375rem)"
1415
+ width: m ? "75%" : _e(t) ?? "100%",
1416
+ height: _e(o) ?? "1rem",
1417
+ borderRadius: _e(n) ?? "var(--vui-radius-sm, 0.375rem)"
1405
1418
  }
1406
1419
  },
1407
- p
1420
+ h
1408
1421
  );
1409
1422
  })
1410
1423
  }
@@ -1413,197 +1426,210 @@ const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25"
1413
1426
  return /* @__PURE__ */ e(
1414
1427
  "span",
1415
1428
  {
1416
- className: [Se.block, a ?? ""].filter(Boolean).join(" "),
1429
+ className: [Ye.block, i ?? ""].filter(Boolean).join(" "),
1417
1430
  style: {
1418
- width: re(t),
1419
- height: re(o) ?? "1rem",
1420
- borderRadius: re(n) ?? "var(--vui-radius-sm, 0.375rem)",
1431
+ width: _e(t),
1432
+ height: _e(o) ?? "1rem",
1433
+ borderRadius: _e(n) ?? "var(--vui-radius-sm, 0.375rem)",
1421
1434
  ...l
1422
1435
  },
1423
1436
  "aria-hidden": "true",
1424
- ...i
1437
+ ...a
1425
1438
  }
1426
1439
  );
1427
- }, ra = "_wrapper_xgu51_1", sa = "_labelRow_xgu51_8", aa = "_label_xgu51_8", ia = "_value_xgu51_20", la = "_track_xgu51_26", ca = "_sm_xgu51_33", da = "_md_xgu51_34", _a = "_lg_xgu51_35", ua = "_bar_xgu51_37", pa = "_primary_xgu51_43", ha = "_success_xgu51_44", ma = "_warning_xgu51_45", fa = "_danger_xgu51_46", Z = {
1428
- wrapper: ra,
1429
- labelRow: sa,
1430
- label: aa,
1431
- value: ia,
1432
- track: la,
1433
- sm: ca,
1434
- md: da,
1435
- lg: _a,
1436
- bar: ua,
1437
- primary: pa,
1438
- success: ha,
1439
- warning: ma,
1440
- danger: fa
1441
- }, Lc = ({
1440
+ }, La = "_wrapper_xgu51_1", ja = "_labelRow_xgu51_8", Ia = "_label_xgu51_8", Ca = "_value_xgu51_20", za = "_track_xgu51_26", Wa = "_sm_xgu51_33", Ea = "_md_xgu51_34", Ra = "_lg_xgu51_35", Sa = "_bar_xgu51_37", Ta = "_primary_xgu51_43", Da = "_success_xgu51_44", qa = "_warning_xgu51_45", Ma = "_danger_xgu51_46", se = {
1441
+ wrapper: La,
1442
+ labelRow: ja,
1443
+ label: Ia,
1444
+ value: Ca,
1445
+ track: za,
1446
+ sm: Wa,
1447
+ md: Ea,
1448
+ lg: Ra,
1449
+ bar: Sa,
1450
+ primary: Ta,
1451
+ success: Da,
1452
+ warning: qa,
1453
+ danger: Ma
1454
+ }, ru = ({
1442
1455
  value: t,
1443
1456
  variant: o = "primary",
1444
1457
  size: n = "md",
1445
- label: r,
1446
- showValue: s = !1,
1447
- className: a,
1458
+ label: s,
1459
+ showValue: r = !1,
1460
+ className: i,
1448
1461
  ...l
1449
1462
  }) => {
1450
- const i = Math.min(100, Math.max(0, t));
1451
- return /* @__PURE__ */ h("div", { className: [Z.wrapper, a ?? ""].filter(Boolean).join(" "), ...l, children: [
1452
- (r || s) && /* @__PURE__ */ h("div", { className: Z.labelRow, children: [
1453
- r && /* @__PURE__ */ e("span", { className: Z.label, children: r }),
1454
- s && /* @__PURE__ */ h("span", { className: Z.value, children: [
1455
- i,
1463
+ const a = Math.min(100, Math.max(0, t));
1464
+ return /* @__PURE__ */ d("div", { className: [se.wrapper, i ?? ""].filter(Boolean).join(" "), ...l, children: [
1465
+ (s || r) && /* @__PURE__ */ d("div", { className: se.labelRow, children: [
1466
+ s && /* @__PURE__ */ e("span", { className: se.label, children: s }),
1467
+ r && /* @__PURE__ */ d("span", { className: se.value, children: [
1468
+ a,
1456
1469
  "%"
1457
1470
  ] })
1458
1471
  ] }),
1459
1472
  /* @__PURE__ */ e(
1460
1473
  "div",
1461
1474
  {
1462
- className: [Z.track, Z[n]].filter(Boolean).join(" "),
1475
+ className: [se.track, se[n]].filter(Boolean).join(" "),
1463
1476
  role: "progressbar",
1464
- "aria-valuenow": i,
1477
+ "aria-valuenow": a,
1465
1478
  "aria-valuemin": 0,
1466
1479
  "aria-valuemax": 100,
1467
- "aria-label": r ?? `${i}%`,
1480
+ "aria-label": s ?? `${a}%`,
1468
1481
  children: /* @__PURE__ */ e(
1469
1482
  "div",
1470
1483
  {
1471
- className: [Z.bar, Z[o]].filter(Boolean).join(" "),
1472
- style: { width: `${i}%` }
1484
+ className: [se.bar, se[o]].filter(Boolean).join(" "),
1485
+ style: { width: `${a}%` }
1473
1486
  }
1474
1487
  )
1475
1488
  }
1476
1489
  )
1477
1490
  ] });
1478
- }, ba = "_container_2etd3_1", ga = "_toast_2etd3_14", va = "_slideUp_2etd3_1", wa = "_message_2etd3_31", $a = "_close_2etd3_38", ka = "_info_2etd3_63", ya = "_success_2etd3_69", Na = "_warning_2etd3_75", xa = "_danger_2etd3_81", we = {
1479
- container: ba,
1480
- toast: ga,
1481
- slideUp: va,
1482
- message: wa,
1483
- close: $a,
1484
- info: ka,
1485
- success: ya,
1486
- warning: Na,
1487
- danger: xa
1488
- }, Qe = rt(null);
1489
- let La = 0;
1490
- const Ba = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }), ja = ({ item: t, onRemove: o }) => {
1491
+ }, Fa = "_container_2etd3_1", Aa = "_toast_2etd3_14", Ha = "_slideUp_2etd3_1", Pa = "_message_2etd3_31", Oa = "_close_2etd3_38", Ua = "_info_2etd3_63", Va = "_success_2etd3_69", Xa = "_warning_2etd3_75", Ya = "_danger_2etd3_81", Ce = {
1492
+ container: Fa,
1493
+ toast: Aa,
1494
+ slideUp: Ha,
1495
+ message: Pa,
1496
+ close: Oa,
1497
+ info: Ua,
1498
+ success: Va,
1499
+ warning: Xa,
1500
+ danger: Ya
1501
+ }, _t = gt(null);
1502
+ let Ka = 0;
1503
+ const Ga = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }), Ja = ({ item: t, onRemove: o }) => {
1491
1504
  const n = A(null);
1492
- he(() => {
1493
- const s = t.duration ?? 4e3;
1494
- return s > 0 && (n.current = setTimeout(() => o(t.id), s)), () => {
1505
+ ae(() => {
1506
+ const r = t.duration ?? 4e3;
1507
+ return r > 0 && (n.current = setTimeout(() => o(t.id), r)), () => {
1495
1508
  n.current && clearTimeout(n.current);
1496
1509
  };
1497
1510
  }, [t.id, t.duration, o]);
1498
- const r = [we.toast, we[t.variant ?? "info"]].filter(Boolean).join(" ");
1499
- return /* @__PURE__ */ h("div", { className: r, role: "alert", "aria-live": "assertive", children: [
1500
- /* @__PURE__ */ e("span", { className: we.message, children: t.message }),
1511
+ const s = [Ce.toast, Ce[t.variant ?? "info"]].filter(Boolean).join(" ");
1512
+ return /* @__PURE__ */ d("div", { className: s, role: "alert", "aria-live": "assertive", children: [
1513
+ /* @__PURE__ */ e("span", { className: Ce.message, children: t.message }),
1501
1514
  /* @__PURE__ */ e(
1502
1515
  "button",
1503
1516
  {
1504
1517
  type: "button",
1505
- className: we.close,
1518
+ className: Ce.close,
1506
1519
  onClick: () => o(t.id),
1507
1520
  "aria-label": "Dismiss notification",
1508
- children: /* @__PURE__ */ e(Ba, {})
1521
+ children: /* @__PURE__ */ e(Ga, {})
1509
1522
  }
1510
1523
  )
1511
1524
  ] });
1512
- }, Bc = ({ children: t }) => {
1513
- const [o, n] = D([]), r = $e((a) => {
1514
- const l = `toast-${++La}`;
1515
- n((i) => [...i, { ...a, id: l }]);
1516
- }, []), s = $e((a) => {
1517
- n((l) => l.filter((i) => i.id !== a));
1525
+ }, au = ({ children: t }) => {
1526
+ const [o, n] = O([]), s = ke((i) => {
1527
+ const l = `toast-${++Ka}`;
1528
+ n((a) => [...a, { ...i, id: l }]);
1529
+ }, []), r = ke((i) => {
1530
+ n((l) => l.filter((a) => a.id !== i));
1518
1531
  }, []);
1519
- return /* @__PURE__ */ h(Qe.Provider, { value: { addToast: r, removeToast: s }, children: [
1532
+ return /* @__PURE__ */ d(_t.Provider, { value: { addToast: s, removeToast: r }, children: [
1520
1533
  t,
1521
- typeof document < "u" && ze(
1522
- /* @__PURE__ */ e("div", { className: we.container, "aria-label": "Notifications", children: o.map((a) => /* @__PURE__ */ e(ja, { item: a, onRemove: s }, a.id)) }),
1534
+ typeof document < "u" && Ke(
1535
+ /* @__PURE__ */ e("div", { className: Ce.container, "aria-label": "Notifications", children: o.map((i) => /* @__PURE__ */ e(Ja, { item: i, onRemove: r }, i.id)) }),
1523
1536
  document.body
1524
1537
  )
1525
1538
  ] });
1526
- }, jc = () => {
1527
- const t = ot(Qe);
1539
+ }, iu = () => {
1540
+ const t = bt(_t);
1528
1541
  if (!t)
1529
1542
  throw new Error("useToast must be used inside <ToastProvider>");
1530
1543
  return t;
1531
- }, Ia = "_avatar_1ado7_1", Ca = "_xs_1ado7_15", Ea = "_sm_1ado7_16", qa = "_md_1ado7_17", Wa = "_lg_1ado7_18", Ta = "_xl_1ado7_19", Ra = "_circle_1ado7_22", Ma = "_square_1ado7_23", Sa = "_img_1ado7_25", za = "_initials_1ado7_32", Da = "_fallbackIcon_1ado7_37", Fa = "_status_1ado7_44", Aa = "_online_1ado7_56", Ha = "_away_1ado7_57", Oa = "_offline_1ado7_58", ee = {
1532
- avatar: Ia,
1533
- xs: Ca,
1534
- sm: Ea,
1535
- md: qa,
1536
- lg: Wa,
1537
- xl: Ta,
1538
- circle: Ra,
1539
- square: Ma,
1540
- img: Sa,
1541
- initials: za,
1542
- fallbackIcon: Da,
1543
- status: Fa,
1544
- online: Aa,
1545
- away: Ha,
1546
- offline: Oa
1544
+ }, Qa = "_avatar_14l02_1", Za = "_xs_14l02_15", ei = "_sm_14l02_16", ti = "_md_14l02_17", ni = "_lg_14l02_18", oi = "_xl_14l02_19", si = "_circle_14l02_22", ri = "_square_14l02_23", ai = "_img_14l02_25", ii = "_initials_14l02_32", li = "_fallbackIcon_14l02_37", ci = "_status_14l02_44", di = "_online_14l02_57", _i = "_away_14l02_58", ui = "_offline_14l02_59", pi = "_statusPulse_14l02_61", hi = "_avatarStatusPulse_14l02_1", Z = {
1545
+ avatar: Qa,
1546
+ xs: Za,
1547
+ sm: ei,
1548
+ md: ti,
1549
+ lg: ni,
1550
+ xl: oi,
1551
+ circle: si,
1552
+ square: ri,
1553
+ img: ai,
1554
+ initials: ii,
1555
+ fallbackIcon: li,
1556
+ status: ci,
1557
+ online: di,
1558
+ away: _i,
1559
+ offline: ui,
1560
+ statusPulse: pi,
1561
+ avatarStatusPulse: hi
1547
1562
  };
1548
- function Ua(t) {
1563
+ function mi(t) {
1549
1564
  const o = t.trim().split(/\s+/);
1550
1565
  return o.length === 1 ? o[0].charAt(0).toUpperCase() : (o[0].charAt(0) + o[o.length - 1].charAt(0)).toUpperCase();
1551
1566
  }
1552
- const Ic = ({
1567
+ const lu = ({
1553
1568
  src: t,
1554
1569
  alt: o,
1555
1570
  name: n,
1556
- size: r = "md",
1557
- shape: s = "circle",
1558
- status: a,
1559
- className: l,
1560
- ...i
1571
+ size: s = "md",
1572
+ shape: r = "circle",
1573
+ status: i,
1574
+ statusAnimation: l = "none",
1575
+ className: a,
1576
+ ...c
1561
1577
  }) => {
1562
- const [c, _] = D(!1), p = [ee.avatar, ee[r], ee[s], l ?? ""].filter(Boolean).join(" "), m = t && !c, d = n ? Ua(n) : null;
1563
- return /* @__PURE__ */ h("span", { className: p, "aria-label": o ?? n, ...i, children: [
1564
- m ? /* @__PURE__ */ e(
1578
+ const [_, h] = O(!1), m = [Z.avatar, Z[s], Z[r], a ?? ""].filter(Boolean).join(" "), u = t && !_, f = n ? mi(n) : null;
1579
+ return /* @__PURE__ */ d("span", { className: m, "aria-label": o ?? n, ...c, children: [
1580
+ u ? /* @__PURE__ */ e(
1565
1581
  "img",
1566
1582
  {
1567
1583
  src: t,
1568
1584
  alt: o ?? n ?? "",
1569
- className: ee.img,
1570
- onError: () => _(!0)
1585
+ className: Z.img,
1586
+ onError: () => h(!0)
1571
1587
  }
1572
- ) : d ? /* @__PURE__ */ e("span", { className: ee.initials, "aria-hidden": "true", children: d }) : /* @__PURE__ */ e("svg", { className: ee.fallbackIcon, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z" }) }),
1573
- a && /* @__PURE__ */ e("span", { className: [ee.status, ee[a]].filter(Boolean).join(" "), "aria-label": a })
1588
+ ) : f ? /* @__PURE__ */ e("span", { className: Z.initials, "aria-hidden": "true", children: f }) : /* @__PURE__ */ e("svg", { className: Z.fallbackIcon, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z" }) }),
1589
+ i && /* @__PURE__ */ e(
1590
+ "span",
1591
+ {
1592
+ className: [
1593
+ Z.status,
1594
+ Z[i],
1595
+ l === "pulse" ? Z.statusPulse : ""
1596
+ ].filter(Boolean).join(" "),
1597
+ "aria-label": i
1598
+ }
1599
+ )
1574
1600
  ] });
1575
- }, Pa = "_tag_13w40_1", Va = "_sm_13w40_14", Xa = "_md_13w40_19", Ya = "_lg_13w40_24", Ga = "_info_13w40_36", Ka = "_success_13w40_42", Ja = "_warning_13w40_48", Qa = "_danger_13w40_54", Za = "_primary_13w40_60", ei = "_label_13w40_66", ti = "_icon_13w40_70", ni = "_close_13w40_75", ue = {
1576
- tag: Pa,
1577
- sm: Va,
1578
- md: Xa,
1579
- lg: Ya,
1601
+ }, fi = "_tag_13w40_1", bi = "_sm_13w40_14", gi = "_md_13w40_19", vi = "_lg_13w40_24", wi = "_info_13w40_36", $i = "_success_13w40_42", yi = "_warning_13w40_48", ki = "_danger_13w40_54", Ni = "_primary_13w40_60", xi = "_label_13w40_66", Bi = "_icon_13w40_70", Li = "_close_13w40_75", ge = {
1602
+ tag: fi,
1603
+ sm: bi,
1604
+ md: gi,
1605
+ lg: vi,
1580
1606
  default: "_default_13w40_30",
1581
- info: Ga,
1582
- success: Ka,
1583
- warning: Ja,
1584
- danger: Qa,
1585
- primary: Za,
1586
- label: ei,
1587
- icon: ti,
1588
- close: ni
1589
- }, Cc = ({
1607
+ info: wi,
1608
+ success: $i,
1609
+ warning: yi,
1610
+ danger: ki,
1611
+ primary: Ni,
1612
+ label: xi,
1613
+ icon: Bi,
1614
+ close: Li
1615
+ }, cu = ({
1590
1616
  variant: t = "default",
1591
1617
  size: o = "md",
1592
1618
  onClose: n,
1593
- leftIcon: r,
1594
- children: s,
1595
- className: a,
1619
+ leftIcon: s,
1620
+ children: r,
1621
+ className: i,
1596
1622
  ...l
1597
1623
  }) => {
1598
- const i = [ue.tag, ue[t], ue[o], a ?? ""].filter(Boolean).join(" ");
1599
- return /* @__PURE__ */ h("span", { className: i, ...l, children: [
1600
- r && /* @__PURE__ */ e("span", { className: ue.icon, "aria-hidden": "true", children: r }),
1601
- /* @__PURE__ */ e("span", { className: ue.label, children: s }),
1624
+ const a = [ge.tag, ge[t], ge[o], i ?? ""].filter(Boolean).join(" ");
1625
+ return /* @__PURE__ */ d("span", { className: a, ...l, children: [
1626
+ s && /* @__PURE__ */ e("span", { className: ge.icon, "aria-hidden": "true", children: s }),
1627
+ /* @__PURE__ */ e("span", { className: ge.label, children: r }),
1602
1628
  n && /* @__PURE__ */ e(
1603
1629
  "button",
1604
1630
  {
1605
1631
  type: "button",
1606
- className: ue.close,
1632
+ className: ge.close,
1607
1633
  onClick: (c) => {
1608
1634
  c.stopPropagation(), n();
1609
1635
  },
@@ -1612,116 +1638,116 @@ const Ic = ({
1612
1638
  }
1613
1639
  )
1614
1640
  ] });
1615
- }, oi = "_root_6ieqa_1", ri = "_icon_6ieqa_11", si = "_title_6ieqa_23", ai = "_description_6ieqa_31", ii = "_action_6ieqa_39", ve = {
1616
- root: oi,
1617
- icon: ri,
1618
- title: si,
1619
- description: ai,
1620
- action: ii
1621
- }, Ec = ({
1641
+ }, ji = "_root_6ieqa_1", Ii = "_icon_6ieqa_11", Ci = "_title_6ieqa_23", zi = "_description_6ieqa_31", Wi = "_action_6ieqa_39", Ie = {
1642
+ root: ji,
1643
+ icon: Ii,
1644
+ title: Ci,
1645
+ description: zi,
1646
+ action: Wi
1647
+ }, du = ({
1622
1648
  icon: t,
1623
1649
  title: o,
1624
1650
  description: n,
1625
- action: r,
1626
- className: s,
1627
- ...a
1628
- }) => /* @__PURE__ */ h("div", { className: [ve.root, s ?? ""].filter(Boolean).join(" "), ...a, children: [
1629
- t && /* @__PURE__ */ e("span", { className: ve.icon, "aria-hidden": "true", children: t }),
1630
- /* @__PURE__ */ e("p", { className: ve.title, children: o }),
1631
- n && /* @__PURE__ */ e("p", { className: ve.description, children: n }),
1632
- r && /* @__PURE__ */ e("div", { className: ve.action, children: r })
1633
- ] }), li = "_nav_1s2na_1", ci = "_list_1s2na_5", di = "_item_1s2na_15", _i = "_separator_1s2na_20", ui = "_crumb_1s2na_27", pi = "_link_1s2na_33", hi = "_current_1s2na_50", G = {
1634
- nav: li,
1635
- list: ci,
1636
- item: di,
1637
- separator: _i,
1638
- crumb: ui,
1639
- link: pi,
1640
- current: hi
1641
- }, mi = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 18l6-6-6-6" }) }), qc = ({
1651
+ action: s,
1652
+ className: r,
1653
+ ...i
1654
+ }) => /* @__PURE__ */ d("div", { className: [Ie.root, r ?? ""].filter(Boolean).join(" "), ...i, children: [
1655
+ t && /* @__PURE__ */ e("span", { className: Ie.icon, "aria-hidden": "true", children: t }),
1656
+ /* @__PURE__ */ e("p", { className: Ie.title, children: o }),
1657
+ n && /* @__PURE__ */ e("p", { className: Ie.description, children: n }),
1658
+ s && /* @__PURE__ */ e("div", { className: Ie.action, children: s })
1659
+ ] }), Ei = "_nav_1s2na_1", Ri = "_list_1s2na_5", Si = "_item_1s2na_15", Ti = "_separator_1s2na_20", Di = "_crumb_1s2na_27", qi = "_link_1s2na_33", Mi = "_current_1s2na_50", ee = {
1660
+ nav: Ei,
1661
+ list: Ri,
1662
+ item: Si,
1663
+ separator: Ti,
1664
+ crumb: Di,
1665
+ link: qi,
1666
+ current: Mi
1667
+ }, Fi = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 18l6-6-6-6" }) }), _u = ({
1642
1668
  items: t,
1643
1669
  separator: o,
1644
1670
  className: n,
1645
- ...r
1671
+ ...s
1646
1672
  }) => {
1647
- const s = o ?? /* @__PURE__ */ e(mi, {});
1648
- return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: [G.nav, n ?? ""].filter(Boolean).join(" "), ...r, children: /* @__PURE__ */ e("ol", { className: G.list, children: t.map((a, l) => {
1649
- const i = l === t.length - 1;
1650
- return /* @__PURE__ */ h("li", { className: G.item, children: [
1651
- l > 0 && /* @__PURE__ */ e("span", { className: G.separator, "aria-hidden": "true", children: s }),
1652
- i || !a.href ? /* @__PURE__ */ e(
1673
+ const r = o ?? /* @__PURE__ */ e(Fi, {});
1674
+ return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: [ee.nav, n ?? ""].filter(Boolean).join(" "), ...s, children: /* @__PURE__ */ e("ol", { className: ee.list, children: t.map((i, l) => {
1675
+ const a = l === t.length - 1;
1676
+ return /* @__PURE__ */ d("li", { className: ee.item, children: [
1677
+ l > 0 && /* @__PURE__ */ e("span", { className: ee.separator, "aria-hidden": "true", children: r }),
1678
+ a || !i.href ? /* @__PURE__ */ e(
1653
1679
  "span",
1654
1680
  {
1655
- className: [G.crumb, i ? G.current : G.link].filter(Boolean).join(" "),
1656
- "aria-current": i ? "page" : void 0,
1657
- children: a.label
1681
+ className: [ee.crumb, a ? ee.current : ee.link].filter(Boolean).join(" "),
1682
+ "aria-current": a ? "page" : void 0,
1683
+ children: i.label
1658
1684
  }
1659
- ) : /* @__PURE__ */ e("a", { href: a.href, className: [G.crumb, G.link].filter(Boolean).join(" "), children: a.label })
1685
+ ) : /* @__PURE__ */ e("a", { href: i.href, className: [ee.crumb, ee.link].filter(Boolean).join(" "), children: i.label })
1660
1686
  ] }, l);
1661
1687
  }) }) });
1662
- }, fi = "_nav_10kny_1", bi = "_list_10kny_5", gi = "_btn_10kny_14", vi = "_disabled_10kny_32", wi = "_active_10kny_32", $i = "_dots_10kny_54", R = {
1663
- nav: fi,
1664
- list: bi,
1665
- btn: gi,
1666
- disabled: vi,
1667
- active: wi,
1668
- dots: $i
1688
+ }, Ai = "_nav_10kny_1", Hi = "_list_10kny_5", Pi = "_btn_10kny_14", Oi = "_disabled_10kny_32", Ui = "_active_10kny_32", Vi = "_dots_10kny_54", q = {
1689
+ nav: Ai,
1690
+ list: Hi,
1691
+ btn: Pi,
1692
+ disabled: Oi,
1693
+ active: Ui,
1694
+ dots: Vi
1669
1695
  };
1670
- function Ce(t, o) {
1696
+ function qe(t, o) {
1671
1697
  const n = o - t + 1;
1672
- return Array.from({ length: n }, (r, s) => t + s);
1698
+ return Array.from({ length: n }, (s, r) => t + r);
1673
1699
  }
1674
- function ki(t, o, n) {
1675
- const r = n * 2 + 5;
1676
- if (o <= r)
1677
- return Ce(1, o);
1678
- const s = Math.max(t - n, 1), a = Math.min(t + n, o), l = s > 2, i = a < o - 1;
1679
- return !l && i ? [...Ce(1, 3 + n * 2), "...", o] : l && !i ? [1, "...", ...Ce(o - (2 + n * 2), o)] : [1, "...", ...Ce(s, a), "...", o];
1700
+ function Xi(t, o, n) {
1701
+ const s = n * 2 + 5;
1702
+ if (o <= s)
1703
+ return qe(1, o);
1704
+ const r = Math.max(t - n, 1), i = Math.min(t + n, o), l = r > 2, a = i < o - 1;
1705
+ return !l && a ? [...qe(1, 3 + n * 2), "...", o] : l && !a ? [1, "...", ...qe(o - (2 + n * 2), o)] : [1, "...", ...qe(r, i), "...", o];
1680
1706
  }
1681
- const yi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 18l-6-6 6-6" }) }), Ni = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 18l6-6-6-6" }) }), xi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 17l-5-5 5-5M18 17l-5-5 5-5" }) }), Li = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 17l5-5-5-5M6 17l5-5-5-5" }) }), Wc = ({
1707
+ const Yi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 18l-6-6 6-6" }) }), Ki = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 18l6-6-6-6" }) }), Gi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 17l-5-5 5-5M18 17l-5-5 5-5" }) }), Ji = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 17l5-5-5-5M6 17l5-5-5-5" }) }), uu = ({
1682
1708
  page: t,
1683
1709
  totalPages: o,
1684
1710
  onChange: n,
1685
- siblingCount: r = 1,
1686
- showFirstLast: s = !0,
1687
- className: a,
1711
+ siblingCount: s = 1,
1712
+ showFirstLast: r = !0,
1713
+ className: i,
1688
1714
  ...l
1689
1715
  }) => {
1690
- const i = ki(t, o, r), c = (_) => {
1716
+ const a = Xi(t, o, s), c = (_) => {
1691
1717
  _ < 1 || _ > o || _ === t || n(_);
1692
1718
  };
1693
1719
  return /* @__PURE__ */ e(
1694
1720
  "nav",
1695
1721
  {
1696
1722
  "aria-label": "Pagination",
1697
- className: [R.nav, a ?? ""].filter(Boolean).join(" "),
1723
+ className: [q.nav, i ?? ""].filter(Boolean).join(" "),
1698
1724
  ...l,
1699
- children: /* @__PURE__ */ h("ul", { className: R.list, children: [
1700
- s && /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
1725
+ children: /* @__PURE__ */ d("ul", { className: q.list, children: [
1726
+ r && /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
1701
1727
  "button",
1702
1728
  {
1703
- className: [R.btn, t === 1 ? R.disabled : ""].filter(Boolean).join(" "),
1729
+ className: [q.btn, t === 1 ? q.disabled : ""].filter(Boolean).join(" "),
1704
1730
  onClick: () => c(1),
1705
1731
  disabled: t === 1,
1706
1732
  "aria-label": "First page",
1707
- children: /* @__PURE__ */ e(xi, {})
1733
+ children: /* @__PURE__ */ e(Gi, {})
1708
1734
  }
1709
1735
  ) }),
1710
1736
  /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
1711
1737
  "button",
1712
1738
  {
1713
- className: [R.btn, t === 1 ? R.disabled : ""].filter(Boolean).join(" "),
1739
+ className: [q.btn, t === 1 ? q.disabled : ""].filter(Boolean).join(" "),
1714
1740
  onClick: () => c(t - 1),
1715
1741
  disabled: t === 1,
1716
1742
  "aria-label": "Previous page",
1717
- children: /* @__PURE__ */ e(yi, {})
1743
+ children: /* @__PURE__ */ e(Yi, {})
1718
1744
  }
1719
1745
  ) }),
1720
- i.map(
1721
- (_, p) => _ === "..." ? /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("span", { className: R.dots, children: "…" }) }, `dots-${p}`) : /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
1746
+ a.map(
1747
+ (_, h) => _ === "..." ? /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("span", { className: q.dots, children: "…" }) }, `dots-${h}`) : /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
1722
1748
  "button",
1723
1749
  {
1724
- className: [R.btn, _ === t ? R.active : ""].filter(Boolean).join(" "),
1750
+ className: [q.btn, _ === t ? q.active : ""].filter(Boolean).join(" "),
1725
1751
  onClick: () => c(_),
1726
1752
  "aria-label": `Page ${_}`,
1727
1753
  "aria-current": _ === t ? "page" : void 0,
@@ -1732,53 +1758,53 @@ const yi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox:
1732
1758
  /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
1733
1759
  "button",
1734
1760
  {
1735
- className: [R.btn, t === o ? R.disabled : ""].filter(Boolean).join(" "),
1761
+ className: [q.btn, t === o ? q.disabled : ""].filter(Boolean).join(" "),
1736
1762
  onClick: () => c(t + 1),
1737
1763
  disabled: t === o,
1738
1764
  "aria-label": "Next page",
1739
- children: /* @__PURE__ */ e(Ni, {})
1765
+ children: /* @__PURE__ */ e(Ki, {})
1740
1766
  }
1741
1767
  ) }),
1742
- s && /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
1768
+ r && /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
1743
1769
  "button",
1744
1770
  {
1745
- className: [R.btn, t === o ? R.disabled : ""].filter(Boolean).join(" "),
1771
+ className: [q.btn, t === o ? q.disabled : ""].filter(Boolean).join(" "),
1746
1772
  onClick: () => c(o),
1747
1773
  disabled: t === o,
1748
1774
  "aria-label": "Last page",
1749
- children: /* @__PURE__ */ e(Li, {})
1775
+ children: /* @__PURE__ */ e(Ji, {})
1750
1776
  }
1751
1777
  ) })
1752
1778
  ] })
1753
1779
  }
1754
1780
  );
1755
- }, Bi = "_root_1wmfi_1", ji = "_horizontal_1wmfi_6", Ii = "_vertical_1wmfi_11", Ci = "_step_1wmfi_16", Ei = "_connector_1wmfi_32", qi = "_indicator_1wmfi_37", Wi = "_circle_1wmfi_55", Ti = "_pending_1wmfi_88", Ri = "_active_1wmfi_94", Mi = "_completed_1wmfi_100", Si = "_content_1wmfi_111", zi = "_label_1wmfi_127", Di = "_description_1wmfi_139", M = {
1756
- root: Bi,
1757
- horizontal: ji,
1758
- vertical: Ii,
1759
- step: Ci,
1760
- connector: Ei,
1761
- indicator: qi,
1762
- circle: Wi,
1763
- pending: Ti,
1764
- active: Ri,
1765
- completed: Mi,
1766
- content: Si,
1767
- label: zi,
1768
- description: Di
1769
- }, Fi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M5 13l4 4L19 7" }) }), Tc = ({
1781
+ }, Qi = "_root_1wmfi_1", Zi = "_horizontal_1wmfi_6", el = "_vertical_1wmfi_11", tl = "_step_1wmfi_16", nl = "_connector_1wmfi_32", ol = "_indicator_1wmfi_37", sl = "_circle_1wmfi_55", rl = "_pending_1wmfi_88", al = "_active_1wmfi_94", il = "_completed_1wmfi_100", ll = "_content_1wmfi_111", cl = "_label_1wmfi_127", dl = "_description_1wmfi_139", M = {
1782
+ root: Qi,
1783
+ horizontal: Zi,
1784
+ vertical: el,
1785
+ step: tl,
1786
+ connector: nl,
1787
+ indicator: ol,
1788
+ circle: sl,
1789
+ pending: rl,
1790
+ active: al,
1791
+ completed: il,
1792
+ content: ll,
1793
+ label: cl,
1794
+ description: dl
1795
+ }, _l = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M5 13l4 4L19 7" }) }), pu = ({
1770
1796
  steps: t,
1771
1797
  currentStep: o,
1772
1798
  orientation: n = "horizontal",
1773
- variant: r = "default",
1774
- className: s,
1775
- ...a
1799
+ variant: s = "default",
1800
+ className: r,
1801
+ ...i
1776
1802
  }) => {
1777
1803
  const l = [
1778
1804
  M.root,
1779
1805
  M[n],
1780
- M[r],
1781
- s ?? ""
1806
+ M[s],
1807
+ r ?? ""
1782
1808
  ].filter(Boolean).join(" ");
1783
1809
  return /* @__PURE__ */ e(
1784
1810
  "div",
@@ -1786,108 +1812,108 @@ const yi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox:
1786
1812
  className: l,
1787
1813
  role: "list",
1788
1814
  "aria-label": "Steps",
1789
- ...a,
1790
- children: t.map((i, c) => {
1791
- const _ = c + 1, p = _ < o, m = _ === o, d = c === t.length - 1, f = [
1815
+ ...i,
1816
+ children: t.map((a, c) => {
1817
+ const _ = c + 1, h = _ < o, m = _ === o, u = c === t.length - 1, f = [
1792
1818
  M.step,
1793
- p ? M.completed : "",
1819
+ h ? M.completed : "",
1794
1820
  m ? M.active : "",
1795
- !p && !m ? M.pending : ""
1821
+ !h && !m ? M.pending : ""
1796
1822
  ].filter(Boolean).join(" ");
1797
- return /* @__PURE__ */ h("div", { className: f, role: "listitem", children: [
1798
- /* @__PURE__ */ h("div", { className: M.indicator, children: [
1799
- /* @__PURE__ */ e("span", { className: M.circle, children: p ? /* @__PURE__ */ e(Fi, {}) : /* @__PURE__ */ e("span", { children: _ }) }),
1800
- !d && /* @__PURE__ */ e("span", { className: M.connector, "aria-hidden": "true" })
1823
+ return /* @__PURE__ */ d("div", { className: f, role: "listitem", children: [
1824
+ /* @__PURE__ */ d("div", { className: M.indicator, children: [
1825
+ /* @__PURE__ */ e("span", { className: M.circle, children: h ? /* @__PURE__ */ e(_l, {}) : /* @__PURE__ */ e("span", { children: _ }) }),
1826
+ !u && /* @__PURE__ */ e("span", { className: M.connector, "aria-hidden": "true" })
1801
1827
  ] }),
1802
- r !== "compact" && /* @__PURE__ */ h("div", { className: M.content, children: [
1803
- /* @__PURE__ */ e("span", { className: M.label, children: i.label }),
1804
- i.description && /* @__PURE__ */ e("span", { className: M.description, children: i.description })
1828
+ s !== "compact" && /* @__PURE__ */ d("div", { className: M.content, children: [
1829
+ /* @__PURE__ */ e("span", { className: M.label, children: a.label }),
1830
+ a.description && /* @__PURE__ */ e("span", { className: M.description, children: a.description })
1805
1831
  ] })
1806
1832
  ] }, c);
1807
1833
  })
1808
1834
  }
1809
1835
  );
1810
- }, Ai = "_triggerWrapper_v2cko_1", Hi = "_popover_v2cko_6", Oi = "_fadeIn_v2cko_1", Ui = "_arrow_v2cko_24", Pi = "_bottom_v2cko_34", Vi = "_top_v2cko_42", Xi = "_right_v2cko_50", Yi = "_left_v2cko_58", Ee = {
1811
- triggerWrapper: Ai,
1812
- popover: Hi,
1813
- fadeIn: Oi,
1814
- arrow: Ui,
1815
- bottom: Pi,
1816
- top: Vi,
1817
- right: Xi,
1818
- left: Yi
1836
+ }, ul = "_triggerWrapper_v2cko_1", pl = "_popover_v2cko_6", hl = "_fadeIn_v2cko_1", ml = "_arrow_v2cko_24", fl = "_bottom_v2cko_34", bl = "_top_v2cko_42", gl = "_right_v2cko_50", vl = "_left_v2cko_58", Me = {
1837
+ triggerWrapper: ul,
1838
+ popover: pl,
1839
+ fadeIn: hl,
1840
+ arrow: ml,
1841
+ bottom: fl,
1842
+ top: bl,
1843
+ right: gl,
1844
+ left: vl
1819
1845
  };
1820
- function Gi(t, o, n) {
1821
- const { top: r, left: s, bottom: a, right: l, width: i, height: c } = t, _ = o.offsetWidth, p = o.offsetHeight, m = 8;
1846
+ function wl(t, o, n) {
1847
+ const { top: s, left: r, bottom: i, right: l, width: a, height: c } = t, _ = o.offsetWidth, h = o.offsetHeight, m = 8;
1822
1848
  switch (n) {
1823
1849
  case "top":
1824
- return { top: r - p - m + window.scrollY, left: s + i / 2 - _ / 2 + window.scrollX };
1850
+ return { top: s - h - m + window.scrollY, left: r + a / 2 - _ / 2 + window.scrollX };
1825
1851
  case "bottom":
1826
- return { top: a + m + window.scrollY, left: s + i / 2 - _ / 2 + window.scrollX };
1852
+ return { top: i + m + window.scrollY, left: r + a / 2 - _ / 2 + window.scrollX };
1827
1853
  case "left":
1828
- return { top: r + c / 2 - p / 2 + window.scrollY, left: s - _ - m + window.scrollX };
1854
+ return { top: s + c / 2 - h / 2 + window.scrollY, left: r - _ - m + window.scrollX };
1829
1855
  case "right":
1830
- return { top: r + c / 2 - p / 2 + window.scrollY, left: l + m + window.scrollX };
1856
+ return { top: s + c / 2 - h / 2 + window.scrollY, left: l + m + window.scrollX };
1831
1857
  }
1832
1858
  }
1833
- const Rc = ({
1859
+ const hu = ({
1834
1860
  trigger: t,
1835
1861
  content: o,
1836
1862
  placement: n = "bottom",
1837
- open: r,
1838
- onOpenChange: s,
1839
- className: a
1863
+ open: s,
1864
+ onOpenChange: r,
1865
+ className: i
1840
1866
  }) => {
1841
- const l = r !== void 0, [i, c] = D(!1), _ = l ? r : i, p = A(null), m = A(null), [d, f] = D({ top: 0, left: 0 }), g = $e(
1867
+ const l = s !== void 0, [a, c] = O(!1), _ = l ? s : a, h = A(null), m = A(null), [u, f] = O({ top: 0, left: 0 }), v = ke(
1842
1868
  (w) => {
1843
- l || c(w), s == null || s(w);
1869
+ l || c(w), r == null || r(w);
1844
1870
  },
1845
- [l, s]
1846
- ), u = $e(() => {
1847
- if (!p.current || !m.current) return;
1848
- const w = p.current.getBoundingClientRect();
1849
- f(Gi(w, m.current, n));
1871
+ [l, r]
1872
+ ), p = ke(() => {
1873
+ if (!h.current || !m.current) return;
1874
+ const w = h.current.getBoundingClientRect();
1875
+ f(wl(w, m.current, n));
1850
1876
  }, [n]);
1851
- he(() => {
1877
+ ae(() => {
1852
1878
  if (_)
1853
- return u(), window.addEventListener("resize", u), window.addEventListener("scroll", u, !0), () => {
1854
- window.removeEventListener("resize", u), window.removeEventListener("scroll", u, !0);
1879
+ return p(), window.addEventListener("resize", p), window.addEventListener("scroll", p, !0), () => {
1880
+ window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0);
1855
1881
  };
1856
- }, [_, u]), he(() => {
1882
+ }, [_, p]), ae(() => {
1857
1883
  if (!_) return;
1858
- const w = ($) => {
1859
- var q, N;
1860
- !((q = p.current) != null && q.contains($.target)) && !((N = m.current) != null && N.contains($.target)) && g(!1);
1861
- }, L = ($) => {
1862
- $.key === "Escape" && g(!1);
1884
+ const w = (y) => {
1885
+ var z, N;
1886
+ !((z = h.current) != null && z.contains(y.target)) && !((N = m.current) != null && N.contains(y.target)) && v(!1);
1887
+ }, B = (y) => {
1888
+ y.key === "Escape" && v(!1);
1863
1889
  };
1864
- return document.addEventListener("mousedown", w), document.addEventListener("keydown", L), () => {
1865
- document.removeEventListener("mousedown", w), document.removeEventListener("keydown", L);
1890
+ return document.addEventListener("mousedown", w), document.addEventListener("keydown", B), () => {
1891
+ document.removeEventListener("mousedown", w), document.removeEventListener("keydown", B);
1866
1892
  };
1867
- }, [_, g]);
1868
- const v = [Ee.popover, Ee[n], a ?? ""].filter(Boolean).join(" ");
1869
- return /* @__PURE__ */ h(Pe, { children: [
1893
+ }, [_, v]);
1894
+ const g = [Me.popover, Me[n], i ?? ""].filter(Boolean).join(" ");
1895
+ return /* @__PURE__ */ d(st, { children: [
1870
1896
  /* @__PURE__ */ e(
1871
1897
  "span",
1872
1898
  {
1873
- ref: p,
1874
- className: Ee.triggerWrapper,
1875
- onClick: () => g(!_),
1899
+ ref: h,
1900
+ className: Me.triggerWrapper,
1901
+ onClick: () => v(!_),
1876
1902
  "aria-expanded": _,
1877
1903
  "aria-haspopup": "true",
1878
1904
  children: t
1879
1905
  }
1880
1906
  ),
1881
- _ && typeof document < "u" && ze(
1882
- /* @__PURE__ */ h(
1907
+ _ && typeof document < "u" && Ke(
1908
+ /* @__PURE__ */ d(
1883
1909
  "div",
1884
1910
  {
1885
1911
  ref: m,
1886
- className: v,
1887
- style: { top: d.top, left: d.left },
1912
+ className: g,
1913
+ style: { top: u.top, left: u.left },
1888
1914
  role: "dialog",
1889
1915
  children: [
1890
- /* @__PURE__ */ e("div", { className: Ee.arrow, "aria-hidden": "true" }),
1916
+ /* @__PURE__ */ e("div", { className: Me.arrow, "aria-hidden": "true" }),
1891
1917
  o
1892
1918
  ]
1893
1919
  }
@@ -1895,97 +1921,97 @@ const Rc = ({
1895
1921
  document.body
1896
1922
  )
1897
1923
  ] });
1898
- }, Ki = "_triggerWrapper_19rgz_1", Ji = "_menu_19rgz_6", Qi = "_item_19rgz_23", Zi = "_itemDisabled_19rgz_41", el = "_itemIcon_19rgz_56", tl = "_separator_19rgz_63", pe = {
1899
- triggerWrapper: Ki,
1900
- menu: Ji,
1901
- item: Qi,
1902
- itemDisabled: Zi,
1903
- itemIcon: el,
1904
- separator: tl
1924
+ }, $l = "_triggerWrapper_19rgz_1", yl = "_menu_19rgz_6", kl = "_item_19rgz_23", Nl = "_itemDisabled_19rgz_41", xl = "_itemIcon_19rgz_56", Bl = "_separator_19rgz_63", ve = {
1925
+ triggerWrapper: $l,
1926
+ menu: yl,
1927
+ item: kl,
1928
+ itemDisabled: Nl,
1929
+ itemIcon: xl,
1930
+ separator: Bl
1905
1931
  };
1906
- function nl(t, o, n) {
1907
- const { top: r, left: s, bottom: a, right: l } = t, i = o.offsetHeight, c = o.offsetWidth, _ = 4;
1932
+ function Ll(t, o, n) {
1933
+ const { top: s, left: r, bottom: i, right: l } = t, a = o.offsetHeight, c = o.offsetWidth, _ = 4;
1908
1934
  switch (n) {
1909
1935
  case "bottom-start":
1910
- return { top: a + _ + window.scrollY, left: s + window.scrollX };
1936
+ return { top: i + _ + window.scrollY, left: r + window.scrollX };
1911
1937
  case "bottom-end":
1912
- return { top: a + _ + window.scrollY, left: l - c + window.scrollX };
1938
+ return { top: i + _ + window.scrollY, left: l - c + window.scrollX };
1913
1939
  case "top-start":
1914
- return { top: r - i - _ + window.scrollY, left: s + window.scrollX };
1940
+ return { top: s - a - _ + window.scrollY, left: r + window.scrollX };
1915
1941
  case "top-end":
1916
- return { top: r - i - _ + window.scrollY, left: l - c + window.scrollX };
1942
+ return { top: s - a - _ + window.scrollY, left: l - c + window.scrollX };
1917
1943
  default:
1918
- return { top: a + _ + window.scrollY, left: s + window.scrollX };
1944
+ return { top: i + _ + window.scrollY, left: r + window.scrollX };
1919
1945
  }
1920
1946
  }
1921
- const Mc = ({
1947
+ const mu = ({
1922
1948
  trigger: t,
1923
1949
  items: o,
1924
1950
  placement: n = "bottom-start",
1925
- className: r
1951
+ className: s
1926
1952
  }) => {
1927
- const [s, a] = D(!1), l = A(null), i = A(null), [c, _] = D({ top: 0, left: 0 }), p = $e(() => {
1928
- if (!l.current || !i.current) return;
1929
- const d = l.current.getBoundingClientRect();
1930
- _(nl(d, i.current, n));
1953
+ const [r, i] = O(!1), l = A(null), a = A(null), [c, _] = O({ top: 0, left: 0 }), h = ke(() => {
1954
+ if (!l.current || !a.current) return;
1955
+ const u = l.current.getBoundingClientRect();
1956
+ _(Ll(u, a.current, n));
1931
1957
  }, [n]);
1932
- he(() => {
1933
- if (s)
1934
- return p(), window.addEventListener("resize", p), window.addEventListener("scroll", p, !0), () => {
1935
- window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0);
1958
+ ae(() => {
1959
+ if (r)
1960
+ return h(), window.addEventListener("resize", h), window.addEventListener("scroll", h, !0), () => {
1961
+ window.removeEventListener("resize", h), window.removeEventListener("scroll", h, !0);
1936
1962
  };
1937
- }, [s, p]), he(() => {
1938
- if (!s) return;
1939
- const d = (g) => {
1940
- var u, v;
1941
- !((u = l.current) != null && u.contains(g.target)) && !((v = i.current) != null && v.contains(g.target)) && a(!1);
1942
- }, f = (g) => {
1943
- var u;
1944
- if (g.key === "Escape") {
1945
- a(!1);
1946
- const v = (u = l.current) == null ? void 0 : u.querySelector("button, a, [tabindex]");
1947
- v == null || v.focus();
1963
+ }, [r, h]), ae(() => {
1964
+ if (!r) return;
1965
+ const u = (v) => {
1966
+ var p, g;
1967
+ !((p = l.current) != null && p.contains(v.target)) && !((g = a.current) != null && g.contains(v.target)) && i(!1);
1968
+ }, f = (v) => {
1969
+ var p;
1970
+ if (v.key === "Escape") {
1971
+ i(!1);
1972
+ const g = (p = l.current) == null ? void 0 : p.querySelector("button, a, [tabindex]");
1973
+ g == null || g.focus();
1948
1974
  }
1949
1975
  };
1950
- return document.addEventListener("mousedown", d), document.addEventListener("keydown", f), () => {
1951
- document.removeEventListener("mousedown", d), document.removeEventListener("keydown", f);
1976
+ return document.addEventListener("mousedown", u), document.addEventListener("keydown", f), () => {
1977
+ document.removeEventListener("mousedown", u), document.removeEventListener("keydown", f);
1952
1978
  };
1953
- }, [s]);
1954
- const m = (d) => {
1979
+ }, [r]);
1980
+ const m = (u) => {
1955
1981
  var f;
1956
- d.disabled || ((f = d.onClick) == null || f.call(d), a(!1));
1982
+ u.disabled || ((f = u.onClick) == null || f.call(u), i(!1));
1957
1983
  };
1958
- return /* @__PURE__ */ h(Pe, { children: [
1984
+ return /* @__PURE__ */ d(st, { children: [
1959
1985
  /* @__PURE__ */ e(
1960
1986
  "span",
1961
1987
  {
1962
1988
  ref: l,
1963
- className: pe.triggerWrapper,
1964
- onClick: () => a((d) => !d),
1989
+ className: ve.triggerWrapper,
1990
+ onClick: () => i((u) => !u),
1965
1991
  "aria-haspopup": "menu",
1966
- "aria-expanded": s,
1992
+ "aria-expanded": r,
1967
1993
  children: t
1968
1994
  }
1969
1995
  ),
1970
- s && typeof document < "u" && ze(
1996
+ r && typeof document < "u" && Ke(
1971
1997
  /* @__PURE__ */ e(
1972
1998
  "div",
1973
1999
  {
1974
- ref: i,
1975
- className: [pe.menu, r ?? ""].filter(Boolean).join(" "),
2000
+ ref: a,
2001
+ className: [ve.menu, s ?? ""].filter(Boolean).join(" "),
1976
2002
  style: { top: c.top, left: c.left },
1977
2003
  role: "menu",
1978
- children: o.map((d, f) => d.separator ? /* @__PURE__ */ e("div", { className: pe.separator, role: "separator" }, f) : /* @__PURE__ */ h(
2004
+ children: o.map((u, f) => u.separator ? /* @__PURE__ */ e("div", { className: ve.separator, role: "separator" }, f) : /* @__PURE__ */ d(
1979
2005
  "button",
1980
2006
  {
1981
2007
  type: "button",
1982
2008
  role: "menuitem",
1983
- className: [pe.item, d.disabled ? pe.itemDisabled : ""].filter(Boolean).join(" "),
1984
- onClick: () => m(d),
1985
- disabled: d.disabled,
2009
+ className: [ve.item, u.disabled ? ve.itemDisabled : ""].filter(Boolean).join(" "),
2010
+ onClick: () => m(u),
2011
+ disabled: u.disabled,
1986
2012
  children: [
1987
- d.icon && /* @__PURE__ */ e("span", { className: pe.itemIcon, "aria-hidden": "true", children: d.icon }),
1988
- /* @__PURE__ */ e("span", { children: d.label })
2013
+ u.icon && /* @__PURE__ */ e("span", { className: ve.itemIcon, "aria-hidden": "true", children: u.icon }),
2014
+ /* @__PURE__ */ e("span", { children: u.label })
1989
2015
  ]
1990
2016
  },
1991
2017
  f
@@ -1995,42 +2021,42 @@ const Mc = ({
1995
2021
  document.body
1996
2022
  )
1997
2023
  ] });
1998
- }, ol = "_wrapper_13j54_1", rl = "_wrapperDisabled_13j54_8", sl = "_labelRow_13j54_13", al = "_label_13j54_13", il = "_valueDisplay_13j54_25", ll = "_trackWrapper_13j54_31", cl = "_sm_13j54_37", dl = "_md_13j54_38", _l = "_lg_13j54_39", ul = "_trackBg_13j54_41", pl = "_trackFill_13j54_51", hl = "_input_13j54_61", O = {
1999
- wrapper: ol,
2000
- wrapperDisabled: rl,
2001
- labelRow: sl,
2002
- label: al,
2003
- valueDisplay: il,
2004
- trackWrapper: ll,
2005
- sm: cl,
2006
- md: dl,
2007
- lg: _l,
2008
- trackBg: ul,
2009
- trackFill: pl,
2010
- input: hl
2011
- }, Sc = ({
2024
+ }, jl = "_wrapper_13j54_1", Il = "_wrapperDisabled_13j54_8", Cl = "_labelRow_13j54_13", zl = "_label_13j54_13", Wl = "_valueDisplay_13j54_25", El = "_trackWrapper_13j54_31", Rl = "_sm_13j54_37", Sl = "_md_13j54_38", Tl = "_lg_13j54_39", Dl = "_trackBg_13j54_41", ql = "_trackFill_13j54_51", Ml = "_input_13j54_61", Y = {
2025
+ wrapper: jl,
2026
+ wrapperDisabled: Il,
2027
+ labelRow: Cl,
2028
+ label: zl,
2029
+ valueDisplay: Wl,
2030
+ trackWrapper: El,
2031
+ sm: Rl,
2032
+ md: Sl,
2033
+ lg: Tl,
2034
+ trackBg: Dl,
2035
+ trackFill: ql,
2036
+ input: Ml
2037
+ }, fu = ({
2012
2038
  min: t = 0,
2013
2039
  max: o = 100,
2014
2040
  step: n = 1,
2015
- value: r,
2016
- onChange: s,
2017
- label: a,
2041
+ value: s,
2042
+ onChange: r,
2043
+ label: i,
2018
2044
  showValue: l = !1,
2019
- size: i = "md",
2045
+ size: a = "md",
2020
2046
  disabled: c,
2021
2047
  className: _,
2022
- id: p,
2048
+ id: h,
2023
2049
  ...m
2024
2050
  }) => {
2025
- const d = qe(), f = p ?? d, g = r !== void 0 ? (r - t) / (o - t) * 100 : 0;
2026
- return /* @__PURE__ */ h("div", { className: [O.wrapper, c ? O.wrapperDisabled : "", _ ?? ""].filter(Boolean).join(" "), children: [
2027
- (a || l) && /* @__PURE__ */ h("div", { className: O.labelRow, children: [
2028
- a && /* @__PURE__ */ e("label", { htmlFor: f, className: O.label, children: a }),
2029
- l && r !== void 0 && /* @__PURE__ */ e("span", { className: O.valueDisplay, children: r })
2051
+ const u = Pe(), f = h ?? u, v = s !== void 0 ? (s - t) / (o - t) * 100 : 0;
2052
+ return /* @__PURE__ */ d("div", { className: [Y.wrapper, c ? Y.wrapperDisabled : "", _ ?? ""].filter(Boolean).join(" "), children: [
2053
+ (i || l) && /* @__PURE__ */ d("div", { className: Y.labelRow, children: [
2054
+ i && /* @__PURE__ */ e("label", { htmlFor: f, className: Y.label, children: i }),
2055
+ l && s !== void 0 && /* @__PURE__ */ e("span", { className: Y.valueDisplay, children: s })
2030
2056
  ] }),
2031
- /* @__PURE__ */ h("div", { className: [O.trackWrapper, O[i]].filter(Boolean).join(" "), children: [
2032
- /* @__PURE__ */ e("div", { className: O.trackBg }),
2033
- /* @__PURE__ */ e("div", { className: O.trackFill, style: { width: `${g}%` } }),
2057
+ /* @__PURE__ */ d("div", { className: [Y.trackWrapper, Y[a]].filter(Boolean).join(" "), children: [
2058
+ /* @__PURE__ */ e("div", { className: Y.trackBg }),
2059
+ /* @__PURE__ */ e("div", { className: Y.trackFill, style: { width: `${v}%` } }),
2034
2060
  /* @__PURE__ */ e(
2035
2061
  "input",
2036
2062
  {
@@ -2039,73 +2065,73 @@ const Mc = ({
2039
2065
  min: t,
2040
2066
  max: o,
2041
2067
  step: n,
2042
- value: r,
2068
+ value: s,
2043
2069
  disabled: c,
2044
- onChange: (u) => s == null ? void 0 : s(Number(u.target.value)),
2045
- className: O.input,
2070
+ onChange: (p) => r == null ? void 0 : r(Number(p.target.value)),
2071
+ className: Y.input,
2046
2072
  "aria-valuemin": t,
2047
2073
  "aria-valuemax": o,
2048
- "aria-valuenow": r,
2074
+ "aria-valuenow": s,
2049
2075
  ...m
2050
2076
  }
2051
2077
  )
2052
2078
  ] })
2053
2079
  ] });
2054
- }, ml = "_root_q5j4f_1", fl = "_label_q5j4f_7", bl = "_required_q5j4f_14", gl = "_wrapper_q5j4f_18", vl = "_hasError_q5j4f_33", wl = "_disabled_q5j4f_41", $l = "_sm_q5j4f_47", kl = "_md_q5j4f_48", yl = "_lg_q5j4f_49", Nl = "_input_q5j4f_51", xl = "_stepBtn_q5j4f_72", Ll = "_errorMsg_q5j4f_96", Bl = "_hintMsg_q5j4f_103", z = {
2055
- root: ml,
2056
- label: fl,
2057
- required: bl,
2058
- wrapper: gl,
2059
- hasError: vl,
2060
- disabled: wl,
2061
- sm: $l,
2062
- md: kl,
2063
- lg: yl,
2064
- input: Nl,
2065
- stepBtn: xl,
2066
- errorMsg: Ll,
2067
- hintMsg: Bl
2068
- }, zc = ({
2080
+ }, Fl = "_root_q5j4f_1", Al = "_label_q5j4f_7", Hl = "_required_q5j4f_14", Pl = "_wrapper_q5j4f_18", Ol = "_hasError_q5j4f_33", Ul = "_disabled_q5j4f_41", Vl = "_sm_q5j4f_47", Xl = "_md_q5j4f_48", Yl = "_lg_q5j4f_49", Kl = "_input_q5j4f_51", Gl = "_stepBtn_q5j4f_72", Jl = "_errorMsg_q5j4f_96", Ql = "_hintMsg_q5j4f_103", P = {
2081
+ root: Fl,
2082
+ label: Al,
2083
+ required: Hl,
2084
+ wrapper: Pl,
2085
+ hasError: Ol,
2086
+ disabled: Ul,
2087
+ sm: Vl,
2088
+ md: Xl,
2089
+ lg: Yl,
2090
+ input: Kl,
2091
+ stepBtn: Gl,
2092
+ errorMsg: Jl,
2093
+ hintMsg: Ql
2094
+ }, bu = ({
2069
2095
  value: t,
2070
2096
  onChange: o,
2071
2097
  min: n,
2072
- max: r,
2073
- step: s = 1,
2074
- label: a,
2098
+ max: s,
2099
+ step: r = 1,
2100
+ label: i,
2075
2101
  error: l,
2076
- hint: i,
2102
+ hint: a,
2077
2103
  size: c = "md",
2078
2104
  disabled: _,
2079
- required: p,
2105
+ required: h,
2080
2106
  id: m,
2081
- className: d,
2107
+ className: u,
2082
2108
  ...f
2083
2109
  }) => {
2084
- const g = qe(), u = m ?? g, v = `${u}-hint`, w = `${u}-error`, L = () => {
2085
- const N = (t ?? 0) - s;
2110
+ const v = Pe(), p = m ?? v, g = `${p}-hint`, w = `${p}-error`, B = () => {
2111
+ const N = (t ?? 0) - r;
2086
2112
  n !== void 0 && N < n || o == null || o(N);
2087
- }, $ = () => {
2088
- const N = (t ?? 0) + s;
2089
- r !== void 0 && N > r || o == null || o(N);
2090
- }, q = [
2091
- z.wrapper,
2092
- z[c],
2093
- l ? z.hasError : "",
2094
- _ ? z.disabled : "",
2095
- d ?? ""
2113
+ }, y = () => {
2114
+ const N = (t ?? 0) + r;
2115
+ s !== void 0 && N > s || o == null || o(N);
2116
+ }, z = [
2117
+ P.wrapper,
2118
+ P[c],
2119
+ l ? P.hasError : "",
2120
+ _ ? P.disabled : "",
2121
+ u ?? ""
2096
2122
  ].filter(Boolean).join(" ");
2097
- return /* @__PURE__ */ h("div", { className: z.root, children: [
2098
- a && /* @__PURE__ */ h("label", { htmlFor: u, className: z.label, children: [
2099
- a,
2100
- p && /* @__PURE__ */ e("span", { className: z.required, "aria-hidden": "true", children: " *" })
2123
+ return /* @__PURE__ */ d("div", { className: P.root, children: [
2124
+ i && /* @__PURE__ */ d("label", { htmlFor: p, className: P.label, children: [
2125
+ i,
2126
+ h && /* @__PURE__ */ e("span", { className: P.required, "aria-hidden": "true", children: " *" })
2101
2127
  ] }),
2102
- /* @__PURE__ */ h("div", { className: q, children: [
2128
+ /* @__PURE__ */ d("div", { className: z, children: [
2103
2129
  /* @__PURE__ */ e(
2104
2130
  "button",
2105
2131
  {
2106
2132
  type: "button",
2107
- className: z.stepBtn,
2108
- onClick: L,
2133
+ className: P.stepBtn,
2134
+ onClick: B,
2109
2135
  disabled: _ || n !== void 0 && (t ?? 0) <= n,
2110
2136
  "aria-label": "Decrease value",
2111
2137
  tabIndex: -1,
@@ -2115,17 +2141,17 @@ const Mc = ({
2115
2141
  /* @__PURE__ */ e(
2116
2142
  "input",
2117
2143
  {
2118
- id: u,
2144
+ id: p,
2119
2145
  type: "number",
2120
- className: z.input,
2146
+ className: P.input,
2121
2147
  value: t,
2122
2148
  min: n,
2123
- max: r,
2124
- step: s,
2149
+ max: s,
2150
+ step: r,
2125
2151
  disabled: _,
2126
- required: p,
2152
+ required: h,
2127
2153
  "aria-invalid": !!l,
2128
- "aria-describedby": l ? w : i ? v : void 0,
2154
+ "aria-describedby": l ? w : a ? g : void 0,
2129
2155
  onChange: (N) => o == null ? void 0 : o(N.target.valueAsNumber),
2130
2156
  ...f
2131
2157
  }
@@ -2134,232 +2160,768 @@ const Mc = ({
2134
2160
  "button",
2135
2161
  {
2136
2162
  type: "button",
2137
- className: z.stepBtn,
2138
- onClick: $,
2139
- disabled: _ || r !== void 0 && (t ?? 0) >= r,
2163
+ className: P.stepBtn,
2164
+ onClick: y,
2165
+ disabled: _ || s !== void 0 && (t ?? 0) >= s,
2140
2166
  "aria-label": "Increase value",
2141
2167
  tabIndex: -1,
2142
2168
  children: /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M12 5v14M5 12h14" }) })
2143
2169
  }
2144
2170
  )
2145
2171
  ] }),
2146
- l && /* @__PURE__ */ e("p", { id: w, className: z.errorMsg, role: "alert", children: l }),
2147
- !l && i && /* @__PURE__ */ e("p", { id: v, className: z.hintMsg, children: i })
2172
+ l && /* @__PURE__ */ e("p", { id: w, className: P.errorMsg, role: "alert", children: l }),
2173
+ !l && a && /* @__PURE__ */ e("p", { id: g, className: P.hintMsg, children: a })
2148
2174
  ] });
2149
- }, jl = "_root_10bwd_1", Il = "_label_10bwd_7", Cl = "_zone_10bwd_14", El = "_zoneDisabled_10bwd_29", ql = "_dragging_10bwd_34", Wl = "_zoneError_10bwd_39", Tl = "_hiddenInput_10bwd_48", Rl = "_uploadIcon_10bwd_52", Ml = "_zoneText_10bwd_56", Sl = "_zoneLink_10bwd_61", zl = "_zoneHint_10bwd_68", Dl = "_errorMsg_10bwd_73", Fl = "_fileList_10bwd_79", Al = "_fileItem_10bwd_88", Hl = "_fileName_10bwd_98", Ol = "_fileSize_10bwd_108", Ul = "_removeBtn_10bwd_114", E = {
2150
- root: jl,
2151
- label: Il,
2152
- zone: Cl,
2153
- zoneDisabled: El,
2154
- dragging: ql,
2155
- zoneError: Wl,
2156
- hiddenInput: Tl,
2157
- uploadIcon: Rl,
2158
- zoneText: Ml,
2159
- zoneLink: Sl,
2160
- zoneHint: zl,
2161
- errorMsg: Dl,
2162
- fileList: Fl,
2163
- fileItem: Al,
2164
- fileName: Hl,
2165
- fileSize: Ol,
2166
- removeBtn: Ul
2167
- }, Pl = () => /* @__PURE__ */ e("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" }) });
2168
- function Ue(t) {
2175
+ }, Zl = "_root_10bwd_1", ec = "_label_10bwd_7", tc = "_zone_10bwd_14", nc = "_zoneDisabled_10bwd_29", oc = "_dragging_10bwd_34", sc = "_zoneError_10bwd_39", rc = "_hiddenInput_10bwd_48", ac = "_uploadIcon_10bwd_52", ic = "_zoneText_10bwd_56", lc = "_zoneLink_10bwd_61", cc = "_zoneHint_10bwd_68", dc = "_errorMsg_10bwd_73", _c = "_fileList_10bwd_79", uc = "_fileItem_10bwd_88", pc = "_fileName_10bwd_98", hc = "_fileSize_10bwd_108", mc = "_removeBtn_10bwd_114", R = {
2176
+ root: Zl,
2177
+ label: ec,
2178
+ zone: tc,
2179
+ zoneDisabled: nc,
2180
+ dragging: oc,
2181
+ zoneError: sc,
2182
+ hiddenInput: rc,
2183
+ uploadIcon: ac,
2184
+ zoneText: ic,
2185
+ zoneLink: lc,
2186
+ zoneHint: cc,
2187
+ errorMsg: dc,
2188
+ fileList: _c,
2189
+ fileItem: uc,
2190
+ fileName: pc,
2191
+ fileSize: hc,
2192
+ removeBtn: mc
2193
+ }, fc = () => /* @__PURE__ */ e("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" }) });
2194
+ function tt(t) {
2169
2195
  return t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : `${(t / (1024 * 1024)).toFixed(1)} MB`;
2170
2196
  }
2171
- const Dc = ({
2197
+ const gu = ({
2172
2198
  accept: t,
2173
2199
  multiple: o = !1,
2174
2200
  maxSize: n,
2175
- onChange: r,
2176
- label: s,
2177
- hint: a,
2201
+ onChange: s,
2202
+ label: r,
2203
+ hint: i,
2178
2204
  error: l,
2179
- disabled: i = !1,
2205
+ disabled: a = !1,
2180
2206
  className: c,
2181
2207
  id: _
2182
2208
  }) => {
2183
- const p = qe(), m = _ ?? p, d = A(null), [f, g] = D(!1), [u, v] = D([]), [w, L] = D(null), $ = l ?? w, q = (k) => {
2184
- if (!k) return;
2185
- const y = Array.from(k);
2186
- if (n && y.filter((ae) => ae.size > n).length > 0) {
2187
- L(`File exceeds maximum size of ${Ue(n)}.`);
2209
+ const h = Pe(), m = _ ?? h, u = A(null), [f, v] = O(!1), [p, g] = O([]), [w, B] = O(null), y = l ?? w, z = ($) => {
2210
+ if (!$) return;
2211
+ const k = Array.from($);
2212
+ if (n && k.filter((pe) => pe.size > n).length > 0) {
2213
+ B(`File exceeds maximum size of ${tt(n)}.`);
2188
2214
  return;
2189
2215
  }
2190
- L(null);
2191
- const V = o ? y : y.slice(0, 1);
2192
- v(V), r == null || r(V);
2193
- }, N = (k) => {
2194
- k.preventDefault(), g(!1), i || q(k.dataTransfer.files);
2195
- }, P = (k) => {
2196
- const y = u.filter((V, J) => J !== k);
2197
- v(y), r == null || r(y);
2198
- }, K = [
2199
- E.zone,
2200
- f ? E.dragging : "",
2201
- $ ? E.zoneError : "",
2202
- i ? E.zoneDisabled : ""
2216
+ B(null);
2217
+ const G = o ? k : k.slice(0, 1);
2218
+ g(G), s == null || s(G);
2219
+ }, N = ($) => {
2220
+ $.preventDefault(), v(!1), a || z($.dataTransfer.files);
2221
+ }, H = ($) => {
2222
+ const k = p.filter((G, ne) => ne !== $);
2223
+ g(k), s == null || s(k);
2224
+ }, x = [
2225
+ R.zone,
2226
+ f ? R.dragging : "",
2227
+ y ? R.zoneError : "",
2228
+ a ? R.zoneDisabled : ""
2203
2229
  ].filter(Boolean).join(" ");
2204
- return /* @__PURE__ */ h("div", { className: [E.root, c ?? ""].filter(Boolean).join(" "), children: [
2205
- s && /* @__PURE__ */ e("span", { className: E.label, children: s }),
2206
- /* @__PURE__ */ h(
2230
+ return /* @__PURE__ */ d("div", { className: [R.root, c ?? ""].filter(Boolean).join(" "), children: [
2231
+ r && /* @__PURE__ */ e("span", { className: R.label, children: r }),
2232
+ /* @__PURE__ */ d(
2207
2233
  "label",
2208
2234
  {
2209
2235
  htmlFor: m,
2210
- className: K,
2211
- onDragOver: (k) => {
2212
- k.preventDefault(), i || g(!0);
2236
+ className: x,
2237
+ onDragOver: ($) => {
2238
+ $.preventDefault(), a || v(!0);
2213
2239
  },
2214
- onDragLeave: () => g(!1),
2240
+ onDragLeave: () => v(!1),
2215
2241
  onDrop: N,
2216
2242
  children: [
2217
2243
  /* @__PURE__ */ e(
2218
2244
  "input",
2219
2245
  {
2220
- ref: d,
2246
+ ref: u,
2221
2247
  id: m,
2222
2248
  type: "file",
2223
2249
  accept: t,
2224
2250
  multiple: o,
2225
- disabled: i,
2226
- className: E.hiddenInput,
2227
- onChange: (k) => q(k.target.files)
2251
+ disabled: a,
2252
+ className: R.hiddenInput,
2253
+ onChange: ($) => z($.target.files)
2228
2254
  }
2229
2255
  ),
2230
- /* @__PURE__ */ e("span", { className: E.uploadIcon, children: /* @__PURE__ */ e(Pl, {}) }),
2231
- /* @__PURE__ */ h("span", { className: E.zoneText, children: [
2232
- /* @__PURE__ */ e("span", { className: E.zoneLink, children: "Choose files" }),
2256
+ /* @__PURE__ */ e("span", { className: R.uploadIcon, children: /* @__PURE__ */ e(fc, {}) }),
2257
+ /* @__PURE__ */ d("span", { className: R.zoneText, children: [
2258
+ /* @__PURE__ */ e("span", { className: R.zoneLink, children: "Choose files" }),
2233
2259
  " or drag and drop"
2234
2260
  ] }),
2235
- a && /* @__PURE__ */ e("span", { className: E.zoneHint, children: a })
2261
+ i && /* @__PURE__ */ e("span", { className: R.zoneHint, children: i })
2236
2262
  ]
2237
2263
  }
2238
2264
  ),
2239
- $ && /* @__PURE__ */ e("p", { className: E.errorMsg, role: "alert", children: $ }),
2240
- u.length > 0 && /* @__PURE__ */ e("ul", { className: E.fileList, children: u.map((k, y) => /* @__PURE__ */ h("li", { className: E.fileItem, children: [
2241
- /* @__PURE__ */ e("span", { className: E.fileName, children: k.name }),
2242
- /* @__PURE__ */ e("span", { className: E.fileSize, children: Ue(k.size) }),
2265
+ y && /* @__PURE__ */ e("p", { className: R.errorMsg, role: "alert", children: y }),
2266
+ p.length > 0 && /* @__PURE__ */ e("ul", { className: R.fileList, children: p.map(($, k) => /* @__PURE__ */ d("li", { className: R.fileItem, children: [
2267
+ /* @__PURE__ */ e("span", { className: R.fileName, children: $.name }),
2268
+ /* @__PURE__ */ e("span", { className: R.fileSize, children: tt($.size) }),
2243
2269
  /* @__PURE__ */ e(
2244
2270
  "button",
2245
2271
  {
2246
2272
  type: "button",
2247
- className: E.removeBtn,
2248
- onClick: () => P(y),
2249
- "aria-label": `Remove ${k.name}`,
2273
+ className: R.removeBtn,
2274
+ onClick: () => H(k),
2275
+ "aria-label": `Remove ${$.name}`,
2250
2276
  children: /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M6 18L18 6M6 6l12 12" }) })
2251
2277
  }
2252
2278
  )
2253
- ] }, y)) })
2279
+ ] }, k)) })
2254
2280
  ] });
2255
- }, Vl = "_wrapper_i5kin_1", Xl = "_table_i5kin_8", Yl = "_sm_i5kin_15", Gl = "_th_i5kin_15", Kl = "_td_i5kin_16", Jl = "_md_i5kin_21", Ql = "_lg_i5kin_27", Zl = "_thContent_i5kin_43", ec = "_sortable_i5kin_49", tc = "_sortActive_i5kin_58", nc = "_sortIcon_i5kin_62", oc = "_tr_i5kin_72", rc = "_striped_i5kin_91", sc = "_bordered_i5kin_100", ac = "_empty_i5kin_105", S = {
2256
- wrapper: Vl,
2257
- table: Xl,
2258
- sm: Yl,
2259
- th: Gl,
2260
- td: Kl,
2261
- md: Jl,
2262
- lg: Ql,
2263
- thContent: Zl,
2264
- sortable: ec,
2265
- sortActive: tc,
2266
- sortIcon: nc,
2267
- tr: oc,
2268
- striped: rc,
2269
- bordered: sc,
2270
- empty: ac
2271
- }, ic = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 15l7-7 7 7" }) }), lc = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }), cc = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 9l4-4 4 4M16 15l-4 4-4-4" }) });
2272
- function Fc({
2281
+ }, bc = "_wrapper_i5kin_1", gc = "_table_i5kin_8", vc = "_sm_i5kin_15", wc = "_th_i5kin_15", $c = "_td_i5kin_16", yc = "_md_i5kin_21", kc = "_lg_i5kin_27", Nc = "_thContent_i5kin_43", xc = "_sortable_i5kin_49", Bc = "_sortActive_i5kin_58", Lc = "_sortIcon_i5kin_62", jc = "_tr_i5kin_72", Ic = "_striped_i5kin_91", Cc = "_bordered_i5kin_100", zc = "_empty_i5kin_105", F = {
2282
+ wrapper: bc,
2283
+ table: gc,
2284
+ sm: vc,
2285
+ th: wc,
2286
+ td: $c,
2287
+ md: yc,
2288
+ lg: kc,
2289
+ thContent: Nc,
2290
+ sortable: xc,
2291
+ sortActive: Bc,
2292
+ sortIcon: Lc,
2293
+ tr: jc,
2294
+ striped: Ic,
2295
+ bordered: Cc,
2296
+ empty: zc
2297
+ }, Wc = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 15l7-7 7 7" }) }), Ec = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }), Rc = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 9l4-4 4 4M16 15l-4 4-4-4" }) });
2298
+ function vu({
2273
2299
  columns: t,
2274
2300
  data: o,
2275
2301
  sortKey: n,
2276
- sortDir: r,
2277
- onSort: s,
2278
- striped: a = !1,
2302
+ sortDir: s,
2303
+ onSort: r,
2304
+ striped: i = !1,
2279
2305
  bordered: l = !1,
2280
- size: i = "md",
2306
+ size: a = "md",
2281
2307
  className: c,
2282
2308
  ..._
2283
2309
  }) {
2284
- const p = (d) => {
2285
- if (!d.sortable || !s) return;
2286
- const f = n === d.key && r === "asc" ? "desc" : "asc";
2287
- s(d.key, f);
2310
+ const h = (u) => {
2311
+ if (!u.sortable || !r) return;
2312
+ const f = n === u.key && s === "asc" ? "desc" : "asc";
2313
+ r(u.key, f);
2288
2314
  }, m = [
2289
- S.table,
2290
- S[i],
2291
- a ? S.striped : "",
2292
- l ? S.bordered : ""
2315
+ F.table,
2316
+ F[a],
2317
+ i ? F.striped : "",
2318
+ l ? F.bordered : ""
2293
2319
  ].filter(Boolean).join(" ");
2294
2320
  return /* @__PURE__ */ e(
2295
2321
  "div",
2296
2322
  {
2297
- className: [S.wrapper, c ?? ""].filter(Boolean).join(" "),
2323
+ className: [F.wrapper, c ?? ""].filter(Boolean).join(" "),
2298
2324
  ..._,
2299
- children: /* @__PURE__ */ h("table", { className: m, children: [
2300
- /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: t.map((d) => {
2301
- const f = n === d.key, g = [
2302
- S.th,
2303
- d.sortable ? S.sortable : "",
2304
- f ? S.sortActive : ""
2325
+ children: /* @__PURE__ */ d("table", { className: m, children: [
2326
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: t.map((u) => {
2327
+ const f = n === u.key, v = [
2328
+ F.th,
2329
+ u.sortable ? F.sortable : "",
2330
+ f ? F.sortActive : ""
2305
2331
  ].filter(Boolean).join(" ");
2306
2332
  return /* @__PURE__ */ e(
2307
2333
  "th",
2308
2334
  {
2309
- className: g,
2310
- onClick: () => p(d),
2311
- "aria-sort": f ? r === "asc" ? "ascending" : "descending" : d.sortable ? "none" : void 0,
2312
- children: /* @__PURE__ */ h("span", { className: S.thContent, children: [
2313
- d.header,
2314
- d.sortable && /* @__PURE__ */ e("span", { className: S.sortIcon, children: f ? r === "asc" ? /* @__PURE__ */ e(ic, {}) : /* @__PURE__ */ e(lc, {}) : /* @__PURE__ */ e(cc, {}) })
2335
+ className: v,
2336
+ onClick: () => h(u),
2337
+ "aria-sort": f ? s === "asc" ? "ascending" : "descending" : u.sortable ? "none" : void 0,
2338
+ children: /* @__PURE__ */ d("span", { className: F.thContent, children: [
2339
+ u.header,
2340
+ u.sortable && /* @__PURE__ */ e("span", { className: F.sortIcon, children: f ? s === "asc" ? /* @__PURE__ */ e(Wc, {}) : /* @__PURE__ */ e(Ec, {}) : /* @__PURE__ */ e(Rc, {}) })
2315
2341
  ] })
2316
2342
  },
2317
- d.key
2343
+ u.key
2318
2344
  );
2319
2345
  }) }) }),
2320
- /* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length, className: S.empty, children: "No data available." }) }) : o.map((d, f) => /* @__PURE__ */ e("tr", { className: S.tr, children: t.map((g) => {
2321
- const u = d[g.key], v = g.render ? g.render(u, d, f) : u;
2322
- return /* @__PURE__ */ e("td", { className: S.td, children: v }, g.key);
2346
+ /* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length, className: F.empty, children: "No data available." }) }) : o.map((u, f) => /* @__PURE__ */ e("tr", { className: F.tr, children: t.map((v) => {
2347
+ const p = u[v.key], g = v.render ? v.render(p, u, f) : p;
2348
+ return /* @__PURE__ */ e("td", { className: F.td, children: g }, v.key);
2323
2349
  }) }, f)) })
2324
2350
  ] })
2325
2351
  }
2326
2352
  );
2327
2353
  }
2354
+ const Sc = "_root_d7z0d_1", Tc = "_sent_d7z0d_9", Dc = "_received_d7z0d_13", qc = "_ai_d7z0d_14", Mc = "_system_d7z0d_18", Fc = "_avatarSlot_d7z0d_23", Ac = "_avatar_d7z0d_23", Hc = "_avatarSpacer_d7z0d_37", Pc = "_content_d7z0d_42", Oc = "_header_d7z0d_60", Uc = "_username_d7z0d_67", Vc = "_time_d7z0d_73", Xc = "_bubble_d7z0d_79", Yc = "_first_d7z0d_107", Kc = "_middle_d7z0d_111", Gc = "_last_d7z0d_115", Jc = "_systemText_d7z0d_141", Qc = "_body_d7z0d_150", Zc = "_cursor_d7z0d_155", ed = "_cursorBlink_d7z0d_1", td = "_footer_d7z0d_166", nd = "_actions_d7z0d_173", od = "_status_d7z0d_178", sd = "_statusRead_d7z0d_183", C = {
2355
+ root: Sc,
2356
+ sent: Tc,
2357
+ received: Dc,
2358
+ ai: qc,
2359
+ system: Mc,
2360
+ avatarSlot: Fc,
2361
+ avatar: Ac,
2362
+ avatarSpacer: Hc,
2363
+ content: Pc,
2364
+ header: Oc,
2365
+ username: Uc,
2366
+ time: Vc,
2367
+ bubble: Xc,
2368
+ first: Yc,
2369
+ middle: Kc,
2370
+ last: Gc,
2371
+ systemText: Jc,
2372
+ body: Qc,
2373
+ cursor: Zc,
2374
+ cursorBlink: ed,
2375
+ footer: td,
2376
+ actions: nd,
2377
+ status: od,
2378
+ statusRead: sd
2379
+ };
2380
+ function rd() {
2381
+ return /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("polyline", { points: "20 6 9 17 4 12" }) });
2382
+ }
2383
+ function nt() {
2384
+ return /* @__PURE__ */ d("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", children: [
2385
+ /* @__PURE__ */ e("path", { d: "M18 6 7 17l-5-5" }),
2386
+ /* @__PURE__ */ e("path", { d: "m22 10-9.5 9.5L10 17" })
2387
+ ] });
2388
+ }
2389
+ const ad = {
2390
+ sent: /* @__PURE__ */ e(rd, {}),
2391
+ delivered: /* @__PURE__ */ e(nt, {}),
2392
+ read: /* @__PURE__ */ e(nt, {})
2393
+ }, wu = ({
2394
+ variant: t = "received",
2395
+ avatar: o,
2396
+ username: n,
2397
+ timestamp: s,
2398
+ status: r,
2399
+ grouping: i = "single",
2400
+ isStreaming: l = !1,
2401
+ actions: a,
2402
+ children: c,
2403
+ className: _,
2404
+ ...h
2405
+ }) => {
2406
+ const m = [
2407
+ C.root,
2408
+ C[t],
2409
+ C[i],
2410
+ _ ?? ""
2411
+ ].filter(Boolean).join(" ");
2412
+ if (t === "system")
2413
+ return /* @__PURE__ */ e("div", { className: m, ...h, children: /* @__PURE__ */ e("div", { className: C.systemText, children: c }) });
2414
+ const u = o && (i === "single" || i === "last"), f = (n || s) && (i === "single" || i === "first");
2415
+ return /* @__PURE__ */ d("div", { className: m, ...h, children: [
2416
+ /* @__PURE__ */ e("div", { className: C.avatarSlot, children: u ? /* @__PURE__ */ e("div", { className: C.avatar, children: o }) : /* @__PURE__ */ e("div", { className: C.avatarSpacer }) }),
2417
+ /* @__PURE__ */ d("div", { className: C.content, children: [
2418
+ f && /* @__PURE__ */ d("div", { className: C.header, children: [
2419
+ n && /* @__PURE__ */ e("span", { className: C.username, children: n }),
2420
+ s && /* @__PURE__ */ e("span", { className: C.time, children: s })
2421
+ ] }),
2422
+ /* @__PURE__ */ e("div", { className: C.bubble, children: /* @__PURE__ */ d("div", { className: C.body, children: [
2423
+ c,
2424
+ l && /* @__PURE__ */ e("span", { className: C.cursor, "aria-hidden": "true" })
2425
+ ] }) }),
2426
+ (a || r) && /* @__PURE__ */ d("div", { className: C.footer, children: [
2427
+ a && /* @__PURE__ */ e("div", { className: C.actions, children: a }),
2428
+ r && t === "sent" && /* @__PURE__ */ e("span", { className: `${C.status} ${r === "read" ? C.statusRead : ""}`, "aria-label": r, children: ad[r] })
2429
+ ] })
2430
+ ] })
2431
+ ] });
2432
+ }, id = "_root_1w79c_1", ld = "_disabled_1w79c_17", cd = "_textarea_1w79c_22", dd = "_slot_1w79c_46", _d = "_sendButton_1w79c_52", we = {
2433
+ root: id,
2434
+ disabled: ld,
2435
+ textarea: cd,
2436
+ slot: dd,
2437
+ sendButton: _d
2438
+ };
2439
+ function ud() {
2440
+ return /* @__PURE__ */ d("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
2441
+ /* @__PURE__ */ e("line", { x1: "22", y1: "2", x2: "11", y2: "13" }),
2442
+ /* @__PURE__ */ e("polygon", { points: "22 2 15 22 11 13 2 9 22 2" })
2443
+ ] });
2444
+ }
2445
+ const pd = j.forwardRef(
2446
+ ({
2447
+ value: t,
2448
+ onChange: o,
2449
+ onSend: n,
2450
+ onAttach: s,
2451
+ maxRows: r = 5,
2452
+ leftSlot: i,
2453
+ rightSlot: l,
2454
+ showSendButton: a = !0,
2455
+ sendOnEnter: c = !0,
2456
+ placeholder: _ = "Type a message…",
2457
+ disabled: h,
2458
+ className: m,
2459
+ ...u
2460
+ }, f) => {
2461
+ var H;
2462
+ const v = A(null), p = f ?? v, g = ke(() => {
2463
+ const x = p.current;
2464
+ if (!x) return;
2465
+ x.style.height = "auto";
2466
+ const k = (parseFloat(getComputedStyle(x).lineHeight) || 20) * r;
2467
+ x.style.height = `${Math.min(x.scrollHeight, k)}px`;
2468
+ }, [r, p]);
2469
+ ae(() => {
2470
+ g();
2471
+ }, [t, g]);
2472
+ const w = (x) => {
2473
+ o == null || o(x.target.value), g();
2474
+ }, B = () => {
2475
+ var $;
2476
+ const x = (($ = p.current) == null ? void 0 : $.value) ?? t ?? "";
2477
+ x.trim() && n && n(x.trim());
2478
+ }, y = (x) => {
2479
+ var $;
2480
+ c && x.key === "Enter" && !x.shiftKey && (x.preventDefault(), B()), ($ = u.onKeyDown) == null || $.call(u, x);
2481
+ }, z = [we.root, h ? we.disabled : "", m ?? ""].filter(Boolean).join(" "), N = (t ?? ((H = p.current) == null ? void 0 : H.value) ?? "").trim().length > 0;
2482
+ return /* @__PURE__ */ d("div", { className: z, children: [
2483
+ i && /* @__PURE__ */ e("div", { className: we.slot, children: i }),
2484
+ /* @__PURE__ */ e(
2485
+ "textarea",
2486
+ {
2487
+ ref: p,
2488
+ className: we.textarea,
2489
+ value: t,
2490
+ onChange: w,
2491
+ onKeyDown: y,
2492
+ placeholder: _,
2493
+ disabled: h,
2494
+ rows: 1,
2495
+ ...u
2496
+ }
2497
+ ),
2498
+ l && /* @__PURE__ */ e("div", { className: we.slot, children: l }),
2499
+ a && /* @__PURE__ */ e(
2500
+ "button",
2501
+ {
2502
+ type: "button",
2503
+ className: we.sendButton,
2504
+ onClick: B,
2505
+ disabled: h || !N,
2506
+ "aria-label": "Send message",
2507
+ children: /* @__PURE__ */ e(ud, {})
2508
+ }
2509
+ )
2510
+ ] });
2511
+ }
2512
+ );
2513
+ pd.displayName = "ChatInput";
2514
+ const hd = "_list_u1347_1", md = "_empty_u1347_7", fd = "_item_u1347_14", bd = "_active_u1347_38", gd = "_avatarWrapper_u1347_46", vd = "_avatar_u1347_46", wd = "_avatarFallback_u1347_61", $d = "_onlineDot_u1347_74", yd = "_info_u1347_85", kd = "_topRow_u1347_93", Nd = "_name_u1347_100", xd = "_time_u1347_109", Bd = "_lastMessage_u1347_116", Ld = "_unread_u1347_125", D = {
2515
+ list: hd,
2516
+ empty: md,
2517
+ item: fd,
2518
+ active: bd,
2519
+ avatarWrapper: gd,
2520
+ avatar: vd,
2521
+ avatarFallback: wd,
2522
+ onlineDot: $d,
2523
+ info: yd,
2524
+ topRow: kd,
2525
+ name: Nd,
2526
+ time: xd,
2527
+ lastMessage: Bd,
2528
+ unread: Ld
2529
+ }, $u = ({
2530
+ conversations: t,
2531
+ activeId: o,
2532
+ onSelect: n,
2533
+ emptyText: s = "No conversations",
2534
+ className: r,
2535
+ ...i
2536
+ }) => {
2537
+ const l = [D.list, r ?? ""].filter(Boolean).join(" ");
2538
+ return t.length === 0 ? /* @__PURE__ */ e("div", { className: l, ...i, children: /* @__PURE__ */ e("p", { className: D.empty, children: s }) }) : /* @__PURE__ */ e("div", { className: l, role: "listbox", "aria-label": "Conversations", ...i, children: t.map((a) => {
2539
+ const c = a.id === o, _ = [D.item, c ? D.active : ""].filter(Boolean).join(" ");
2540
+ return /* @__PURE__ */ d(
2541
+ "button",
2542
+ {
2543
+ type: "button",
2544
+ role: "option",
2545
+ "aria-selected": c,
2546
+ className: _,
2547
+ onClick: () => n == null ? void 0 : n(a.id),
2548
+ children: [
2549
+ /* @__PURE__ */ d("div", { className: D.avatarWrapper, children: [
2550
+ a.avatar ? /* @__PURE__ */ e("div", { className: D.avatar, children: a.avatar }) : /* @__PURE__ */ e("div", { className: D.avatarFallback, "aria-hidden": "true", children: a.name.charAt(0).toUpperCase() }),
2551
+ a.online && /* @__PURE__ */ e("span", { className: D.onlineDot, "aria-label": "Online" })
2552
+ ] }),
2553
+ /* @__PURE__ */ d("div", { className: D.info, children: [
2554
+ /* @__PURE__ */ d("div", { className: D.topRow, children: [
2555
+ /* @__PURE__ */ e("span", { className: D.name, children: a.name }),
2556
+ a.timestamp && /* @__PURE__ */ e("span", { className: D.time, children: a.timestamp })
2557
+ ] }),
2558
+ a.lastMessage && /* @__PURE__ */ e("p", { className: D.lastMessage, children: a.lastMessage })
2559
+ ] }),
2560
+ a.unread != null && a.unread > 0 && /* @__PURE__ */ e("span", { className: D.unread, "aria-label": `${a.unread} unread`, children: a.unread > 99 ? "99+" : a.unread })
2561
+ ]
2562
+ },
2563
+ a.id
2564
+ );
2565
+ }) });
2566
+ }, jd = "_window_171g8_1", Id = "_header_171g8_11", Cd = "_messages_171g8_15", zd = "_footer_171g8_24", Fe = {
2567
+ window: jd,
2568
+ header: Id,
2569
+ messages: Cd,
2570
+ footer: zd
2571
+ }, Wd = j.forwardRef(
2572
+ ({ header: t, footer: o, autoScroll: n = !0, children: s, className: r, ...i }, l) => {
2573
+ const a = A(null);
2574
+ ae(() => {
2575
+ n && a.current && (a.current.scrollTop = a.current.scrollHeight);
2576
+ }, [s, n]);
2577
+ const c = [Fe.window, r ?? ""].filter(Boolean).join(" ");
2578
+ return /* @__PURE__ */ d("div", { ref: l, className: c, ...i, children: [
2579
+ t && /* @__PURE__ */ e("div", { className: Fe.header, children: t }),
2580
+ /* @__PURE__ */ e("div", { ref: a, className: Fe.messages, children: s }),
2581
+ o && /* @__PURE__ */ e("div", { className: Fe.footer, children: o })
2582
+ ] });
2583
+ }
2584
+ );
2585
+ Wd.displayName = "ChatWindow";
2586
+ const Ed = "_header_1xu0b_1", Rd = "_left_1xu0b_12", Sd = "_backButton_1xu0b_20", Td = "_avatarWrapper_1xu0b_45", Dd = "_avatar_1xu0b_45", qd = "_statusDot_1xu0b_60", Md = "_online_1xu0b_70", Fd = "_offline_1xu0b_74", Ad = "_away_1xu0b_78", Hd = "_info_1xu0b_82", Pd = "_title_1xu0b_88", Od = "_subtitle_1xu0b_97", Ud = "_actions_1xu0b_105", V = {
2587
+ header: Ed,
2588
+ left: Rd,
2589
+ backButton: Sd,
2590
+ avatarWrapper: Td,
2591
+ avatar: Dd,
2592
+ statusDot: qd,
2593
+ online: Md,
2594
+ offline: Fd,
2595
+ away: Ad,
2596
+ info: Hd,
2597
+ title: Pd,
2598
+ subtitle: Od,
2599
+ actions: Ud
2600
+ };
2601
+ function Vd() {
2602
+ return /* @__PURE__ */ d("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
2603
+ /* @__PURE__ */ e("line", { x1: "19", y1: "12", x2: "5", y2: "12" }),
2604
+ /* @__PURE__ */ e("polyline", { points: "12 19 5 12 12 5" })
2605
+ ] });
2606
+ }
2607
+ const yu = ({
2608
+ title: t,
2609
+ subtitle: o,
2610
+ avatar: n,
2611
+ status: s,
2612
+ actions: r,
2613
+ onBack: i,
2614
+ className: l,
2615
+ ...a
2616
+ }) => {
2617
+ const c = [V.header, l ?? ""].filter(Boolean).join(" ");
2618
+ return /* @__PURE__ */ d("div", { className: c, ...a, children: [
2619
+ /* @__PURE__ */ d("div", { className: V.left, children: [
2620
+ i && /* @__PURE__ */ e("button", { type: "button", className: V.backButton, onClick: i, "aria-label": "Go back", children: /* @__PURE__ */ e(Vd, {}) }),
2621
+ n && /* @__PURE__ */ d("div", { className: V.avatarWrapper, children: [
2622
+ /* @__PURE__ */ e("div", { className: V.avatar, children: n }),
2623
+ s && /* @__PURE__ */ e("span", { className: `${V.statusDot} ${V[s]}`, "aria-label": s })
2624
+ ] }),
2625
+ /* @__PURE__ */ d("div", { className: V.info, children: [
2626
+ /* @__PURE__ */ e("span", { className: V.title, children: t }),
2627
+ o && /* @__PURE__ */ e("span", { className: V.subtitle, children: o })
2628
+ ] })
2629
+ ] }),
2630
+ r && /* @__PURE__ */ e("div", { className: V.actions, children: r })
2631
+ ] });
2632
+ }, Xd = "_indicator_1c024_1", Yd = "_dots_1c024_8", Kd = "_dot_1c024_8", Gd = "_text_1c024_34", $e = {
2633
+ indicator: Xd,
2634
+ dots: Yd,
2635
+ dot: Kd,
2636
+ text: Gd
2637
+ };
2638
+ function Jd(t) {
2639
+ return t.length === 0 ? "" : t.length === 1 ? `${t[0]} is typing` : t.length === 2 ? `${t[0]} and ${t[1]} are typing` : `${t[0]} and ${t.length - 1} others are typing`;
2640
+ }
2641
+ const ku = ({
2642
+ users: t = [],
2643
+ className: o,
2644
+ ...n
2645
+ }) => {
2646
+ const s = [$e.indicator, o ?? ""].filter(Boolean).join(" "), r = Jd(t);
2647
+ return /* @__PURE__ */ d("div", { className: s, role: "status", "aria-label": r || "Someone is typing", ...n, children: [
2648
+ /* @__PURE__ */ d("span", { className: $e.dots, "aria-hidden": "true", children: [
2649
+ /* @__PURE__ */ e("span", { className: $e.dot }),
2650
+ /* @__PURE__ */ e("span", { className: $e.dot }),
2651
+ /* @__PURE__ */ e("span", { className: $e.dot })
2652
+ ] }),
2653
+ r && /* @__PURE__ */ e("span", { className: $e.text, children: r })
2654
+ ] });
2655
+ }, Qd = "_timestamp_1ddjc_1", Zd = "_line_1ddjc_9", e_ = "_text_1ddjc_15", Ae = {
2656
+ timestamp: Qd,
2657
+ line: Zd,
2658
+ text: e_
2659
+ }, Nu = ({
2660
+ children: t,
2661
+ className: o,
2662
+ ...n
2663
+ }) => {
2664
+ const s = [Ae.timestamp, o ?? ""].filter(Boolean).join(" ");
2665
+ return /* @__PURE__ */ d("div", { className: s, role: "separator", "aria-label": typeof t == "string" ? t : void 0, ...n, children: [
2666
+ /* @__PURE__ */ e("span", { className: Ae.line, "aria-hidden": "true" }),
2667
+ /* @__PURE__ */ e("span", { className: Ae.text, children: t }),
2668
+ /* @__PURE__ */ e("span", { className: Ae.line, "aria-hidden": "true" })
2669
+ ] });
2670
+ }, t_ = "_reaction_1wf9z_1", n_ = "_active_1wf9z_25", o_ = "_emoji_1wf9z_35", s_ = "_count_1wf9z_40", He = {
2671
+ reaction: t_,
2672
+ active: n_,
2673
+ emoji: o_,
2674
+ count: s_
2675
+ }, r_ = j.forwardRef(
2676
+ ({ emoji: t, count: o = 1, active: n = !1, className: s, ...r }, i) => {
2677
+ const l = [
2678
+ He.reaction,
2679
+ n ? He.active : "",
2680
+ s ?? ""
2681
+ ].filter(Boolean).join(" ");
2682
+ return /* @__PURE__ */ d(
2683
+ "button",
2684
+ {
2685
+ ref: i,
2686
+ type: "button",
2687
+ className: l,
2688
+ "aria-pressed": n,
2689
+ "aria-label": `${t} ${o}`,
2690
+ ...r,
2691
+ children: [
2692
+ /* @__PURE__ */ e("span", { className: He.emoji, children: t }),
2693
+ /* @__PURE__ */ e("span", { className: He.count, children: o })
2694
+ ]
2695
+ }
2696
+ );
2697
+ }
2698
+ );
2699
+ r_.displayName = "ChatReaction";
2700
+ const a_ = "_attachment_hawg9_1", i_ = "_file_hawg9_9", l_ = "_video_hawg9_10", c_ = "_audio_hawg9_11", d_ = "_icon_hawg9_18", __ = "_info_hawg9_30", u_ = "_fileName_hawg9_38", p_ = "_fileSize_hawg9_47", h_ = "_downloadButton_hawg9_52", m_ = "_image_hawg9_78", f_ = "_imageButton_hawg9_86", te = {
2701
+ attachment: a_,
2702
+ file: i_,
2703
+ video: l_,
2704
+ audio: c_,
2705
+ icon: d_,
2706
+ info: __,
2707
+ fileName: u_,
2708
+ fileSize: p_,
2709
+ downloadButton: h_,
2710
+ image: m_,
2711
+ imageButton: f_
2712
+ };
2713
+ function ut() {
2714
+ return /* @__PURE__ */ d("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
2715
+ /* @__PURE__ */ e("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
2716
+ /* @__PURE__ */ e("polyline", { points: "14 2 14 8 20 8" })
2717
+ ] });
2718
+ }
2719
+ function b_() {
2720
+ return /* @__PURE__ */ e("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("polygon", { points: "5 3 19 12 5 21 5 3" }) });
2721
+ }
2722
+ function g_() {
2723
+ return /* @__PURE__ */ d("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
2724
+ /* @__PURE__ */ e("path", { d: "M9 18V5l12-2v13" }),
2725
+ /* @__PURE__ */ e("circle", { cx: "6", cy: "18", r: "3" }),
2726
+ /* @__PURE__ */ e("circle", { cx: "18", cy: "16", r: "3" })
2727
+ ] });
2728
+ }
2729
+ function v_() {
2730
+ return /* @__PURE__ */ d("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
2731
+ /* @__PURE__ */ e("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
2732
+ /* @__PURE__ */ e("polyline", { points: "7 10 12 15 17 10" }),
2733
+ /* @__PURE__ */ e("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
2734
+ ] });
2735
+ }
2736
+ const w_ = {
2737
+ file: ut,
2738
+ video: b_,
2739
+ audio: g_
2740
+ }, xu = ({
2741
+ variant: t = "file",
2742
+ src: o,
2743
+ fileName: n,
2744
+ fileSize: s,
2745
+ onDownload: r,
2746
+ onPreview: i,
2747
+ className: l,
2748
+ ...a
2749
+ }) => {
2750
+ const c = [te.attachment, te[t], l ?? ""].filter(Boolean).join(" ");
2751
+ if (t === "image" && o)
2752
+ return /* @__PURE__ */ e("div", { className: c, ...a, children: /* @__PURE__ */ e(
2753
+ "button",
2754
+ {
2755
+ type: "button",
2756
+ className: te.imageButton,
2757
+ onClick: i,
2758
+ "aria-label": n ? `Preview ${n}` : "Preview image",
2759
+ children: /* @__PURE__ */ e("img", { src: o, alt: n ?? "Attachment", className: te.image, loading: "lazy" })
2760
+ }
2761
+ ) });
2762
+ const _ = w_[t] ?? ut;
2763
+ return /* @__PURE__ */ d("div", { className: c, ...a, children: [
2764
+ /* @__PURE__ */ e("span", { className: te.icon, "aria-hidden": "true", children: /* @__PURE__ */ e(_, {}) }),
2765
+ /* @__PURE__ */ d("div", { className: te.info, children: [
2766
+ /* @__PURE__ */ e("span", { className: te.fileName, children: n ?? "File" }),
2767
+ s && /* @__PURE__ */ e("span", { className: te.fileSize, children: s })
2768
+ ] }),
2769
+ r && /* @__PURE__ */ e(
2770
+ "button",
2771
+ {
2772
+ type: "button",
2773
+ className: te.downloadButton,
2774
+ onClick: r,
2775
+ "aria-label": `Download ${n ?? "file"}`,
2776
+ children: /* @__PURE__ */ e(v_, {})
2777
+ }
2778
+ )
2779
+ ] });
2780
+ }, $_ = "_status_1h1yp_1", y_ = "_dot_1h1yp_8", k_ = "_label_1h1yp_14", N_ = "_sm_1h1yp_20", x_ = "_md_1h1yp_25", B_ = "_lg_1h1yp_30", L_ = "_online_1h1yp_36", j_ = "_offline_1h1yp_40", I_ = "_away_1h1yp_44", C_ = "_busy_1h1yp_48", z_ = "_dnd_1h1yp_52", W_ = "_pulse_1h1yp_57", E_ = "_statusPulse_1h1yp_1", ye = {
2781
+ status: $_,
2782
+ dot: y_,
2783
+ label: k_,
2784
+ sm: N_,
2785
+ md: x_,
2786
+ lg: B_,
2787
+ online: L_,
2788
+ offline: j_,
2789
+ away: I_,
2790
+ busy: C_,
2791
+ dnd: z_,
2792
+ pulse: W_,
2793
+ statusPulse: E_
2794
+ }, ot = {
2795
+ online: "Online",
2796
+ offline: "Offline",
2797
+ away: "Away",
2798
+ busy: "Busy",
2799
+ dnd: "Do not disturb"
2800
+ }, Bu = ({
2801
+ variant: t = "offline",
2802
+ size: o = "md",
2803
+ showLabel: n = !1,
2804
+ pulse: s = !1,
2805
+ className: r,
2806
+ ...i
2807
+ }) => {
2808
+ const l = [
2809
+ ye.status,
2810
+ ye[t],
2811
+ ye[o],
2812
+ s && t === "online" ? ye.pulse : "",
2813
+ r ?? ""
2814
+ ].filter(Boolean).join(" ");
2815
+ return /* @__PURE__ */ d("span", { className: l, role: "status", "aria-label": ot[t], ...i, children: [
2816
+ /* @__PURE__ */ e("span", { className: ye.dot, "aria-hidden": "true" }),
2817
+ n && /* @__PURE__ */ e("span", { className: ye.label, children: ot[t] })
2818
+ ] });
2819
+ }, R_ = "_thread_fnasz_1", S_ = "_summary_fnasz_7", T_ = "_participants_fnasz_30", D_ = "_participant_fnasz_30", q_ = "_replyText_fnasz_50", M_ = "_lastReply_fnasz_57", F_ = "_content_fnasz_63", A_ = "_expanded_fnasz_70", re = {
2820
+ thread: R_,
2821
+ summary: S_,
2822
+ participants: T_,
2823
+ participant: D_,
2824
+ replyText: q_,
2825
+ lastReply: M_,
2826
+ content: F_,
2827
+ expanded: A_
2828
+ };
2829
+ function H_({ expanded: t }) {
2830
+ return /* @__PURE__ */ e(
2831
+ "svg",
2832
+ {
2833
+ width: "14",
2834
+ height: "14",
2835
+ viewBox: "0 0 24 24",
2836
+ fill: "none",
2837
+ stroke: "currentColor",
2838
+ strokeWidth: 2,
2839
+ strokeLinecap: "round",
2840
+ strokeLinejoin: "round",
2841
+ style: { transition: "transform 0.2s", transform: t ? "rotate(90deg)" : "rotate(0deg)" },
2842
+ children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
2843
+ }
2844
+ );
2845
+ }
2846
+ const Lu = ({
2847
+ replyCount: t = 0,
2848
+ lastReplyTimestamp: o,
2849
+ participants: n = [],
2850
+ expanded: s = !1,
2851
+ onToggle: r,
2852
+ children: i,
2853
+ className: l,
2854
+ ...a
2855
+ }) => {
2856
+ const c = [re.thread, s ? re.expanded : "", l ?? ""].filter(Boolean).join(" ");
2857
+ return /* @__PURE__ */ d("div", { className: c, ...a, children: [
2858
+ /* @__PURE__ */ d(
2859
+ "button",
2860
+ {
2861
+ type: "button",
2862
+ className: re.summary,
2863
+ onClick: r,
2864
+ "aria-expanded": s,
2865
+ children: [
2866
+ n.length > 0 && /* @__PURE__ */ e("div", { className: re.participants, children: n.slice(0, 3).map((_, h) => /* @__PURE__ */ e("span", { className: re.participant, "aria-hidden": "true", children: _ }, h)) }),
2867
+ /* @__PURE__ */ e("span", { className: re.replyText, children: t === 1 ? "1 reply" : `${t} replies` }),
2868
+ o && /* @__PURE__ */ d("span", { className: re.lastReply, children: [
2869
+ "Last reply ",
2870
+ o
2871
+ ] }),
2872
+ /* @__PURE__ */ e(H_, { expanded: s })
2873
+ ]
2874
+ }
2875
+ ),
2876
+ s && i && /* @__PURE__ */ e("div", { className: re.content, children: i })
2877
+ ] });
2878
+ };
2328
2879
  export {
2329
- $c as Accordion,
2330
- kc as Alert,
2331
- mc as AnimatedBackground,
2332
- Ic as Avatar,
2333
- hc as Badge,
2334
- qc as Breadcrumb,
2335
- gt as Button,
2336
- We as Card,
2337
- rr as Checkbox,
2338
- Te as Dialog,
2339
- yc as Divider,
2340
- Mc as Dropdown,
2341
- Ec as EmptyState,
2342
- Dc as FileUpload,
2343
- fc as GradientOrbs,
2344
- bc as GridGlow,
2345
- Ot as Input,
2346
- zc as NumberInput,
2347
- Wc as Pagination,
2348
- Rc as Popover,
2349
- Lc as Progress,
2350
- gc as RadioGroup,
2351
- Xo as Select,
2352
- xc as Skeleton,
2353
- Sc as Slider,
2354
- Nc as Spinner,
2355
- Tc as Stepper,
2356
- qr as Switch,
2357
- Fc as Table,
2358
- wc as Tabs,
2359
- Cc as Tag,
2360
- wo as Textarea,
2361
- pc as Title,
2362
- Bc as ToastProvider,
2363
- vc as Tooltip,
2364
- jc as useToast
2880
+ eu as Accordion,
2881
+ tu as Alert,
2882
+ Y_ as AnimatedBackground,
2883
+ lu as Avatar,
2884
+ X_ as Badge,
2885
+ _u as Breadcrumb,
2886
+ Tt as Button,
2887
+ Oe as Card,
2888
+ xu as ChatAttachment,
2889
+ wu as ChatBubble,
2890
+ yu as ChatHeader,
2891
+ pd as ChatInput,
2892
+ $u as ChatList,
2893
+ r_ as ChatReaction,
2894
+ Bu as ChatStatus,
2895
+ Lu as ChatThread,
2896
+ Nu as ChatTimestamp,
2897
+ Wd as ChatWindow,
2898
+ Ls as Checkbox,
2899
+ Ue as Dialog,
2900
+ nu as Divider,
2901
+ mu as Dropdown,
2902
+ du as EmptyState,
2903
+ gu as FileUpload,
2904
+ K_ as GradientOrbs,
2905
+ G_ as GridGlow,
2906
+ ln as Input,
2907
+ bu as NumberInput,
2908
+ uu as Pagination,
2909
+ hu as Popover,
2910
+ ru as Progress,
2911
+ J_ as RadioGroup,
2912
+ fs as Select,
2913
+ su as Skeleton,
2914
+ fu as Slider,
2915
+ ou as Spinner,
2916
+ pu as Stepper,
2917
+ tr as Switch,
2918
+ vu as Table,
2919
+ Z_ as Tabs,
2920
+ cu as Tag,
2921
+ Po as Textarea,
2922
+ V_ as Title,
2923
+ au as ToastProvider,
2924
+ Q_ as Tooltip,
2925
+ ku as TypingIndicator,
2926
+ iu as useToast
2365
2927
  };