@handamade/psi-react 0.25.0 → 0.27.0

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 (42) hide show
  1. package/README.md +23 -1
  2. package/dist/Checkbox/Checkbox.d.ts +11 -2
  3. package/dist/Checkbox/Checkbox.d.ts.map +1 -1
  4. package/dist/Dialog/Dialog.d.ts +17 -3
  5. package/dist/Dialog/Dialog.d.ts.map +1 -1
  6. package/dist/Field/Field.d.ts +3 -0
  7. package/dist/Field/Field.d.ts.map +1 -1
  8. package/dist/Menu/Menu.d.ts +11 -2
  9. package/dist/Menu/Menu.d.ts.map +1 -1
  10. package/dist/Menu/useMenuKeyboard.d.ts +5 -1
  11. package/dist/Menu/useMenuKeyboard.d.ts.map +1 -1
  12. package/dist/RadioGroup/Radio.d.ts +17 -0
  13. package/dist/RadioGroup/Radio.d.ts.map +1 -0
  14. package/dist/RadioGroup/RadioGroup.d.ts +40 -0
  15. package/dist/RadioGroup/RadioGroup.d.ts.map +1 -0
  16. package/dist/Stack/Stack.d.ts +19 -0
  17. package/dist/Stack/Stack.d.ts.map +1 -0
  18. package/dist/Table/TableSelectionCell.d.ts.map +1 -1
  19. package/dist/Text/Text.d.ts +24 -0
  20. package/dist/Text/Text.d.ts.map +1 -0
  21. package/dist/Textarea/Textarea.d.ts +25 -0
  22. package/dist/Textarea/Textarea.d.ts.map +1 -0
  23. package/dist/Tooltip/Tooltip.d.ts +1 -1
  24. package/dist/Tooltip/Tooltip.d.ts.map +1 -1
  25. package/dist/a11y-meta.d.ts.map +1 -1
  26. package/dist/index.d.ts +11 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +1393 -1188
  29. package/dist/manifest.json +345 -5
  30. package/dist/patterns.json +153 -6
  31. package/dist/styles.css +1 -1
  32. package/docs/Checkbox.md +2 -1
  33. package/docs/Dialog.md +5 -2
  34. package/docs/Menu.md +4 -1
  35. package/docs/Radio.md +40 -0
  36. package/docs/RadioGroup.md +46 -0
  37. package/docs/Stack.md +40 -0
  38. package/docs/Text.md +42 -0
  39. package/docs/Textarea.md +43 -0
  40. package/docs/Tooltip.md +1 -1
  41. package/llms.txt +12 -5
  42. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,353 +1,353 @@
1
- import { jsx as t, jsxs as _, Fragment as se } from "react/jsx-runtime";
2
- import { Children as P, useId as R, isValidElement as Y, Fragment as pe, cloneElement as de, createContext as Z, useContext as j, useRef as L, useEffect as C, useState as ae, useCallback as x, useMemo as ce, useLayoutEffect as Pe } from "react";
3
- const Re = "_button_1rxq8_3", He = "_disabled_1rxq8_45", Ve = "_size24_1rxq8_70", Oe = "_size32_1rxq8_88", Fe = "_size40_1rxq8_106", Ke = "_size48_1rxq8_124", Ue = "_accent_1rxq8_145", Ge = "_accentSubtle_1rxq8_157", Ye = "_neutral_1rxq8_169", Ze = "_neutralSubtle_1rxq8_181", Xe = "_ghost_1rxq8_193", Je = "_danger_1rxq8_205", Qe = "_dangerSubtle_1rxq8_217", en = "_outline_1rxq8_229", B = {
4
- button: Re,
5
- disabled: He,
6
- size24: Ve,
7
- size32: Oe,
8
- size40: Fe,
9
- size48: Ke,
10
- accent: Ue,
11
- accentSubtle: Ge,
12
- neutral: Ye,
13
- neutralSubtle: Ze,
14
- ghost: Xe,
15
- danger: Je,
16
- dangerSubtle: Qe,
17
- outline: en
18
- }, nn = {
19
- accent: B.accent,
20
- "accent-subtle": B.accentSubtle,
21
- neutral: B.neutral,
22
- "neutral-subtle": B.neutralSubtle,
23
- ghost: B.ghost,
24
- danger: B.danger,
25
- "danger-subtle": B.dangerSubtle,
26
- outline: B.outline
27
- }, tn = {
28
- 24: B.size24,
29
- 32: B.size32,
30
- 40: B.size40,
31
- 48: B.size48
1
+ import { jsx as t, jsxs as h, Fragment as fe } from "react/jsx-runtime";
2
+ import { Children as F, useId as R, isValidElement as te, Fragment as ye, cloneElement as pe, createContext as U, useContext as $, useRef as B, useEffect as z, useLayoutEffect as ze, useState as re, useCallback as k, useMemo as ge } from "react";
3
+ const Fe = "_button_1rxq8_3", Ue = "_disabled_1rxq8_45", Ge = "_size24_1rxq8_70", Ye = "_size32_1rxq8_88", Ze = "_size40_1rxq8_106", Xe = "_size48_1rxq8_124", Je = "_accent_1rxq8_145", Qe = "_accentSubtle_1rxq8_157", en = "_neutral_1rxq8_169", nn = "_neutralSubtle_1rxq8_181", tn = "_ghost_1rxq8_193", rn = "_danger_1rxq8_205", on = "_dangerSubtle_1rxq8_217", sn = "_outline_1rxq8_229", L = {
4
+ button: Fe,
5
+ disabled: Ue,
6
+ size24: Ge,
7
+ size32: Ye,
8
+ size40: Ze,
9
+ size48: Xe,
10
+ accent: Je,
11
+ accentSubtle: Qe,
12
+ neutral: en,
13
+ neutralSubtle: nn,
14
+ ghost: tn,
15
+ danger: rn,
16
+ dangerSubtle: on,
17
+ outline: sn
18
+ }, an = {
19
+ accent: L.accent,
20
+ "accent-subtle": L.accentSubtle,
21
+ neutral: L.neutral,
22
+ "neutral-subtle": L.neutralSubtle,
23
+ ghost: L.ghost,
24
+ danger: L.danger,
25
+ "danger-subtle": L.dangerSubtle,
26
+ outline: L.outline
27
+ }, cn = {
28
+ 24: L.size24,
29
+ 32: L.size32,
30
+ 40: L.size40,
31
+ 48: L.size48
32
32
  };
33
- function le({
33
+ function ce({
34
34
  variant: e = "neutral",
35
35
  size: n = 32,
36
36
  href: i,
37
- target: a,
38
- rel: s,
39
- disabled: r,
40
- className: o,
37
+ target: s,
38
+ rel: a,
39
+ disabled: o,
40
+ className: r,
41
41
  onClick: c,
42
- ref: d,
43
- ...l
42
+ ref: l,
43
+ ...d
44
44
  }) {
45
- const u = [
46
- B.button,
47
- nn[e],
48
- tn[n],
49
- i !== void 0 && r ? B.disabled : void 0,
50
- o
45
+ const _ = [
46
+ L.button,
47
+ an[e],
48
+ cn[n],
49
+ i !== void 0 && o ? L.disabled : void 0,
50
+ r
51
51
  ].filter(Boolean).join(" ");
52
52
  return i !== void 0 ? /* @__PURE__ */ t(
53
53
  "a",
54
54
  {
55
- ref: d,
56
- className: u,
57
- href: r ? void 0 : i,
58
- target: a,
59
- rel: s,
60
- "aria-disabled": r || void 0,
61
- onClick: r ? void 0 : c,
62
- ...l
55
+ ref: l,
56
+ className: _,
57
+ href: o ? void 0 : i,
58
+ target: s,
59
+ rel: a,
60
+ "aria-disabled": o || void 0,
61
+ onClick: o ? void 0 : c,
62
+ ...d
63
63
  }
64
64
  ) : /* @__PURE__ */ t(
65
65
  "button",
66
66
  {
67
- ref: d,
68
- className: u,
69
- disabled: r,
67
+ ref: l,
68
+ className: _,
69
+ disabled: o,
70
70
  onClick: c,
71
- ...l
71
+ ...d
72
72
  }
73
73
  );
74
74
  }
75
- const on = "_iconButton_1q4hx_3", rn = "_disabled_1q4hx_29", sn = "_size24_1q4hx_37", an = "_size32_1q4hx_42", cn = "_size40_1q4hx_47", ln = "_size48_1q4hx_52", dn = "_accent_1q4hx_60", un = "_neutral_1q4hx_72", hn = "_ghost_1q4hx_84", _n = "_danger_1q4hx_96", E = {
76
- iconButton: on,
77
- disabled: rn,
78
- size24: sn,
79
- size32: an,
80
- size40: cn,
81
- size48: ln,
82
- accent: dn,
83
- neutral: un,
84
- ghost: hn,
85
- danger: _n
86
- }, fn = {
87
- accent: E.accent,
88
- neutral: E.neutral,
89
- ghost: E.ghost,
90
- danger: E.danger
91
- }, pn = {
92
- 24: E.size24,
93
- 32: E.size32,
94
- 40: E.size40,
95
- 48: E.size48
75
+ const ln = "_iconButton_1q4hx_3", dn = "_disabled_1q4hx_29", un = "_size24_1q4hx_37", _n = "_size32_1q4hx_42", hn = "_size40_1q4hx_47", fn = "_size48_1q4hx_52", gn = "_accent_1q4hx_60", pn = "_neutral_1q4hx_72", mn = "_ghost_1q4hx_84", vn = "_danger_1q4hx_96", W = {
76
+ iconButton: ln,
77
+ disabled: dn,
78
+ size24: un,
79
+ size32: _n,
80
+ size40: hn,
81
+ size48: fn,
82
+ accent: gn,
83
+ neutral: pn,
84
+ ghost: mn,
85
+ danger: vn
86
+ }, bn = {
87
+ accent: W.accent,
88
+ neutral: W.neutral,
89
+ ghost: W.ghost,
90
+ danger: W.danger
91
+ }, yn = {
92
+ 24: W.size24,
93
+ 32: W.size32,
94
+ 40: W.size40,
95
+ 48: W.size48
96
96
  };
97
- function te({
97
+ function le({
98
98
  variant: e = "neutral",
99
99
  size: n = 32,
100
100
  href: i,
101
- target: a,
102
- rel: s,
103
- disabled: r,
104
- className: o,
101
+ target: s,
102
+ rel: a,
103
+ disabled: o,
104
+ className: r,
105
105
  onClick: c,
106
- ref: d,
107
- ...l
106
+ ref: l,
107
+ ...d
108
108
  }) {
109
- const u = [
110
- E.iconButton,
111
- fn[e],
112
- pn[n],
113
- i !== void 0 && r ? E.disabled : void 0,
114
- o
109
+ const _ = [
110
+ W.iconButton,
111
+ bn[e],
112
+ yn[n],
113
+ i !== void 0 && o ? W.disabled : void 0,
114
+ r
115
115
  ].filter(Boolean).join(" ");
116
116
  return i !== void 0 ? /* @__PURE__ */ t(
117
117
  "a",
118
118
  {
119
- ref: d,
120
- className: u,
121
- href: r ? void 0 : i,
122
- target: a,
123
- rel: s,
124
- "aria-disabled": r || void 0,
125
- onClick: r ? void 0 : c,
126
- ...l
119
+ ref: l,
120
+ className: _,
121
+ href: o ? void 0 : i,
122
+ target: s,
123
+ rel: a,
124
+ "aria-disabled": o || void 0,
125
+ onClick: o ? void 0 : c,
126
+ ...d
127
127
  }
128
128
  ) : /* @__PURE__ */ t(
129
129
  "button",
130
130
  {
131
- ref: d,
132
- className: u,
133
- disabled: r,
131
+ ref: l,
132
+ className: _,
133
+ disabled: o,
134
134
  onClick: c,
135
- ...l
135
+ ...d
136
136
  }
137
137
  );
138
138
  }
139
- const gn = "_card_1btb3_1", mn = "_stacked_1btb3_8", bn = "_featured_1btb3_10", vn = "_media_1btb3_22", yn = "_body_1btb3_23", xn = "_hoverLift_1btb3_31", H = {
140
- card: gn,
141
- stacked: mn,
142
- featured: bn,
143
- media: vn,
144
- body: yn,
145
- hoverLift: xn
139
+ const wn = "_card_1btb3_1", xn = "_stacked_1btb3_8", kn = "_featured_1btb3_10", Nn = "_media_1btb3_22", $n = "_body_1btb3_23", Bn = "_hoverLift_1btb3_31", Y = {
140
+ card: wn,
141
+ stacked: xn,
142
+ featured: kn,
143
+ media: Nn,
144
+ body: $n,
145
+ hoverLift: Bn
146
146
  };
147
- function Fr({
147
+ function ji({
148
148
  variant: e = "stacked",
149
149
  media: n,
150
150
  hoverLift: i = !1,
151
- className: a,
152
- children: s,
153
- ref: r,
154
- ...o
151
+ className: s,
152
+ children: a,
153
+ ref: o,
154
+ ...r
155
155
  }) {
156
156
  const c = [
157
- H.card,
158
- e === "featured" ? H.featured : H.stacked,
159
- i ? H.hoverLift : void 0,
160
- a
157
+ Y.card,
158
+ e === "featured" ? Y.featured : Y.stacked,
159
+ i ? Y.hoverLift : void 0,
160
+ s
161
161
  ].filter(Boolean).join(" ");
162
- return /* @__PURE__ */ _("div", { ref: r, className: c, ...o, children: [
163
- n != null && /* @__PURE__ */ t("div", { className: H.media, children: n }),
164
- /* @__PURE__ */ t("div", { className: H.body, children: s })
162
+ return /* @__PURE__ */ h("div", { ref: o, className: c, ...r, children: [
163
+ n != null && /* @__PURE__ */ t("div", { className: Y.media, children: n }),
164
+ /* @__PURE__ */ t("div", { className: Y.body, children: a })
165
165
  ] });
166
166
  }
167
- const wn = "_panel_jn8w4_1", kn = "_padding16_jn8w4_8", ke = {
168
- panel: wn,
169
- padding16: kn
167
+ const Sn = "_panel_jn8w4_1", Cn = "_padding16_jn8w4_8", Ce = {
168
+ panel: Sn,
169
+ padding16: Cn
170
170
  };
171
- function Kr({ padding: e = 24, className: n, children: i, ref: a, ...s }) {
172
- const r = [ke.panel, e === 16 ? ke.padding16 : void 0, n].filter(Boolean).join(" ");
173
- return /* @__PURE__ */ t("div", { ref: a, className: r, ...s, children: i });
174
- }
175
- const Nn = "_list_1lh3q_8", $n = "_item_1lh3q_26", Bn = "_term_1lh3q_44", Ln = "_value_1lh3q_50", ie = {
176
- list: Nn,
177
- item: $n,
178
- term: Bn,
179
- value: Ln
171
+ function Ti({ padding: e = 24, className: n, children: i, ref: s, ...a }) {
172
+ const o = [Ce.panel, e === 16 ? Ce.padding16 : void 0, n].filter(Boolean).join(" ");
173
+ return /* @__PURE__ */ t("div", { ref: s, className: o, ...a, children: i });
174
+ }
175
+ const Ln = "_list_1lh3q_8", jn = "_item_1lh3q_26", Tn = "_term_1lh3q_44", In = "_value_1lh3q_50", he = {
176
+ list: Ln,
177
+ item: jn,
178
+ term: Tn,
179
+ value: In
180
180
  };
181
- function Ur({
181
+ function Ii({
182
182
  layout: e = "stacked",
183
183
  gap: n = 12,
184
184
  className: i,
185
- children: a,
186
- ref: s,
187
- ...r
185
+ children: s,
186
+ ref: a,
187
+ ...o
188
188
  }) {
189
189
  return /* @__PURE__ */ t(
190
190
  "dl",
191
191
  {
192
- ref: s,
193
- className: [ie.list, i].filter(Boolean).join(" "),
192
+ ref: a,
193
+ className: [he.list, i].filter(Boolean).join(" "),
194
194
  "data-layout": e,
195
195
  "data-gap": n,
196
- ...r,
197
- children: a
196
+ ...o,
197
+ children: s
198
198
  }
199
199
  );
200
200
  }
201
- function Gr({ term: e, className: n, children: i, ref: a, ...s }) {
202
- return /* @__PURE__ */ _("div", { ref: a, className: [ie.item, n].filter(Boolean).join(" "), ...s, children: [
203
- /* @__PURE__ */ t("dt", { className: ie.term, children: e }),
204
- /* @__PURE__ */ t("dd", { className: ie.value, children: i })
201
+ function zi({ term: e, className: n, children: i, ref: s, ...a }) {
202
+ return /* @__PURE__ */ h("div", { ref: s, className: [he.item, n].filter(Boolean).join(" "), ...a, children: [
203
+ /* @__PURE__ */ t("dt", { className: he.term, children: e }),
204
+ /* @__PURE__ */ t("dd", { className: he.value, children: i })
205
205
  ] });
206
206
  }
207
- const Cn = "_navbar_1w24e_1", Sn = "_inner_1w24e_12", jn = "_fluid_1w24e_20", Tn = "_brand_1w24e_22", zn = "_links_1w24e_23", In = "_actions_1w24e_53", V = {
208
- navbar: Cn,
209
- inner: Sn,
210
- fluid: jn,
211
- brand: Tn,
212
- links: zn,
213
- actions: In
207
+ const zn = "_navbar_1w24e_1", qn = "_inner_1w24e_12", Mn = "_fluid_1w24e_20", En = "_brand_1w24e_22", Dn = "_links_1w24e_23", Wn = "_actions_1w24e_53", Z = {
208
+ navbar: zn,
209
+ inner: qn,
210
+ fluid: Mn,
211
+ brand: En,
212
+ links: Dn,
213
+ actions: Wn
214
214
  };
215
- function Yr({ brand: e, actions: n, children: i, navLabel: a, fluid: s = !1, className: r, ref: o, ...c }) {
216
- const d = [V.navbar, r].filter(Boolean).join(" "), l = P.toArray(i).length > 0;
217
- return /* @__PURE__ */ t("header", { ref: o, className: d, ...c, children: /* @__PURE__ */ _("div", { className: `${s ? V.fluid : "psi-container"} ${V.inner}`, children: [
218
- e != null && /* @__PURE__ */ t("div", { className: V.brand, children: e }),
219
- l && /* @__PURE__ */ t("nav", { className: V.links, "aria-label": a, children: i }),
220
- n != null && /* @__PURE__ */ t("div", { className: V.actions, children: n })
215
+ function qi({ brand: e, actions: n, children: i, navLabel: s, fluid: a = !1, className: o, ref: r, ...c }) {
216
+ const l = [Z.navbar, o].filter(Boolean).join(" "), d = F.toArray(i).length > 0;
217
+ return /* @__PURE__ */ t("header", { ref: r, className: l, ...c, children: /* @__PURE__ */ h("div", { className: `${a ? Z.fluid : "psi-container"} ${Z.inner}`, children: [
218
+ e != null && /* @__PURE__ */ t("div", { className: Z.brand, children: e }),
219
+ d && /* @__PURE__ */ t("nav", { className: Z.links, "aria-label": s, children: i }),
220
+ n != null && /* @__PURE__ */ t("div", { className: Z.actions, children: n })
221
221
  ] }) });
222
222
  }
223
- const En = "_skipLink_1fn0y_4", qn = {
224
- skipLink: En
223
+ const Pn = "_skipLink_1fn0y_4", An = {
224
+ skipLink: Pn
225
225
  };
226
- function Zr({ className: e, ref: n, children: i, ...a }) {
227
- const s = [qn.skipLink, e].filter(Boolean).join(" ");
228
- return /* @__PURE__ */ t("a", { ref: n, className: s, ...a, children: i });
229
- }
230
- const Mn = "_navTree_1ktoe_7", An = "_list_1ktoe_11", Wn = "_groupList_1ktoe_12", Dn = "_item_1ktoe_23", Pn = "_groupButton_1ktoe_79", Rn = "_groupLabel_1ktoe_108", Hn = "_chevron_1ktoe_112", W = {
231
- navTree: Mn,
232
- list: An,
233
- groupList: Wn,
234
- item: Dn,
235
- groupButton: Pn,
236
- groupLabel: Rn,
237
- chevron: Hn
226
+ function Mi({ className: e, ref: n, children: i, ...s }) {
227
+ const a = [An.skipLink, e].filter(Boolean).join(" ");
228
+ return /* @__PURE__ */ t("a", { ref: n, className: a, ...s, children: i });
229
+ }
230
+ const Rn = "_navTree_1ktoe_7", Hn = "_list_1ktoe_11", Vn = "_groupList_1ktoe_12", On = "_item_1ktoe_23", Kn = "_groupButton_1ktoe_79", Fn = "_groupLabel_1ktoe_108", Un = "_chevron_1ktoe_112", V = {
231
+ navTree: Rn,
232
+ list: Hn,
233
+ groupList: Vn,
234
+ item: On,
235
+ groupButton: Kn,
236
+ groupLabel: Fn,
237
+ chevron: Un
238
238
  };
239
- function Xr({ children: e, className: n, ref: i, ...a }) {
240
- const s = [W.navTree, n].filter(Boolean).join(" ");
241
- return /* @__PURE__ */ t("nav", { ref: i, className: s, ...a, children: /* @__PURE__ */ t("ul", { className: W.list, children: e }) });
239
+ function Ei({ children: e, className: n, ref: i, ...s }) {
240
+ const a = [V.navTree, n].filter(Boolean).join(" ");
241
+ return /* @__PURE__ */ t("nav", { ref: i, className: a, ...s, children: /* @__PURE__ */ t("ul", { className: V.list, children: e }) });
242
242
  }
243
- function Vn({ size: e = 20, ...n }) {
243
+ function Gn({ size: e = 20, ...n }) {
244
244
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "6 9 12 15 18 9" }) });
245
245
  }
246
- function Jr({ label: e, open: n, onOpenChange: i, children: a, className: s }) {
247
- const r = R(), o = [W.group, s].filter(Boolean).join(" ");
248
- return /* @__PURE__ */ _("li", { className: o, children: [
249
- /* @__PURE__ */ _(
246
+ function Di({ label: e, open: n, onOpenChange: i, children: s, className: a }) {
247
+ const o = R(), r = [V.group, a].filter(Boolean).join(" ");
248
+ return /* @__PURE__ */ h("li", { className: r, children: [
249
+ /* @__PURE__ */ h(
250
250
  "button",
251
251
  {
252
252
  type: "button",
253
- className: W.groupButton,
253
+ className: V.groupButton,
254
254
  "aria-expanded": n,
255
- "aria-controls": r,
255
+ "aria-controls": o,
256
256
  onClick: () => i(!n),
257
257
  children: [
258
- /* @__PURE__ */ t("span", { className: W.groupLabel, children: e }),
259
- /* @__PURE__ */ t(Vn, { size: 16, className: W.chevron, "aria-hidden": "true" })
258
+ /* @__PURE__ */ t("span", { className: V.groupLabel, children: e }),
259
+ /* @__PURE__ */ t(Gn, { size: 16, className: V.chevron, "aria-hidden": "true" })
260
260
  ]
261
261
  }
262
262
  ),
263
- /* @__PURE__ */ t("ul", { id: r, className: W.groupList, hidden: !n, children: a })
263
+ /* @__PURE__ */ t("ul", { id: o, className: V.groupList, hidden: !n, children: s })
264
264
  ] });
265
265
  }
266
- function Qr({ children: e, href: n, current: i, className: a, ref: s, ...r }) {
267
- const o = [W.item, a].filter(Boolean).join(" "), c = n === void 0 && i && Y(e) && e.type !== pe ? e : null;
268
- return /* @__PURE__ */ t("li", { ref: s, className: o, ...r, children: n !== void 0 ? /* @__PURE__ */ t("a", { href: n, "aria-current": i ? "page" : void 0, children: e }) : c ? de(c, { "aria-current": "page" }) : e });
266
+ function Wi({ children: e, href: n, current: i, className: s, ref: a, ...o }) {
267
+ const r = [V.item, s].filter(Boolean).join(" "), c = n === void 0 && i && te(e) && e.type !== ye ? e : null;
268
+ return /* @__PURE__ */ t("li", { ref: a, className: r, ...o, children: n !== void 0 ? /* @__PURE__ */ t("a", { href: n, "aria-current": i ? "page" : void 0, children: e }) : c ? pe(c, { "aria-current": "page" }) : e });
269
269
  }
270
- const On = "_appShell_i1tds_10", Fn = "_sidebarClosed_i1tds_18", Kn = "_header_i1tds_22", Un = "_sidebar_i1tds_18", Gn = "_main_i1tds_45", Q = {
271
- appShell: On,
272
- sidebarClosed: Fn,
273
- header: Kn,
274
- sidebar: Un,
275
- main: Gn
270
+ const Yn = "_appShell_i1tds_10", Zn = "_sidebarClosed_i1tds_18", Xn = "_header_i1tds_22", Jn = "_sidebar_i1tds_18", Qn = "_main_i1tds_45", ie = {
271
+ appShell: Yn,
272
+ sidebarClosed: Zn,
273
+ header: Xn,
274
+ sidebar: Jn,
275
+ main: Qn
276
276
  };
277
- function ei({
277
+ function Pi({
278
278
  skipLink: e,
279
279
  header: n,
280
280
  sidebar: i,
281
- children: a,
282
- sidebarOpen: s = !0,
283
- sidebarTheme: r,
284
- sidebarId: o = "sidebar",
281
+ children: s,
282
+ sidebarOpen: a = !0,
283
+ sidebarTheme: o,
284
+ sidebarId: r = "sidebar",
285
285
  mainId: c = "main",
286
- className: d,
287
- ref: l,
288
- ...u
286
+ className: l,
287
+ ref: d,
288
+ ..._
289
289
  }) {
290
- const h = s && i != null, f = [Q.appShell, !h && Q.sidebarClosed, d].filter(Boolean).join(" ");
291
- return /* @__PURE__ */ _("div", { ref: l, className: f, ...u, children: [
290
+ const u = a && i != null, f = [ie.appShell, !u && ie.sidebarClosed, l].filter(Boolean).join(" ");
291
+ return /* @__PURE__ */ h("div", { ref: d, className: f, ..._, children: [
292
292
  e,
293
- n != null && /* @__PURE__ */ t("div", { className: Q.header, children: n }),
294
- /* @__PURE__ */ t("div", { id: o, className: Q.sidebar, hidden: !h, "data-psi-theme": r, children: i }),
295
- /* @__PURE__ */ t("main", { id: c, className: Q.main, tabIndex: -1, children: a })
293
+ n != null && /* @__PURE__ */ t("div", { className: ie.header, children: n }),
294
+ /* @__PURE__ */ t("div", { id: r, className: ie.sidebar, hidden: !u, "data-psi-theme": o, children: i }),
295
+ /* @__PURE__ */ t("main", { id: c, className: ie.main, tabIndex: -1, children: s })
296
296
  ] });
297
297
  }
298
- const Yn = "_frame_et4fc_1", Zn = {
299
- frame: Yn
298
+ const et = "_frame_et4fc_1", nt = {
299
+ frame: et
300
300
  };
301
- function ni({ ratio: e, className: n, style: i, children: a, ref: s, ...r }) {
302
- const o = [Zn.frame, n].filter(Boolean).join(" ");
303
- return /* @__PURE__ */ t("div", { ref: s, className: o, style: { aspectRatio: String(e), ...i }, ...r, children: a });
304
- }
305
- const Xn = "_field_x989o_1", Jn = "_label_x989o_10", Qn = "_marker_x989o_19", et = "_requiredText_x989o_25", nt = "_message_x989o_30", tt = "_invalid_x989o_36", D = {
306
- field: Xn,
307
- label: Jn,
308
- marker: Qn,
309
- requiredText: et,
310
- message: nt,
311
- invalid: tt
312
- }, ue = Z(null);
313
- function ti({
301
+ function Ai({ ratio: e, className: n, style: i, children: s, ref: a, ...o }) {
302
+ const r = [nt.frame, n].filter(Boolean).join(" ");
303
+ return /* @__PURE__ */ t("div", { ref: a, className: r, style: { aspectRatio: String(e), ...i }, ...o, children: s });
304
+ }
305
+ const tt = "_field_x989o_1", rt = "_label_x989o_10", ot = "_marker_x989o_19", it = "_requiredText_x989o_25", st = "_message_x989o_30", at = "_invalid_x989o_36", O = {
306
+ field: tt,
307
+ label: rt,
308
+ marker: ot,
309
+ requiredText: it,
310
+ message: st,
311
+ invalid: at
312
+ }, G = U(null);
313
+ function Ri({
314
314
  label: e,
315
315
  description: n,
316
316
  error: i,
317
- required: a = !1,
318
- requiredText: s,
319
- group: r = !1,
320
- htmlFor: o,
317
+ required: s = !1,
318
+ requiredText: a,
319
+ group: o = !1,
320
+ htmlFor: r,
321
321
  announce: c = !0,
322
- className: d,
323
- children: l,
324
- ref: u,
325
- ...h
322
+ className: l,
323
+ children: d,
324
+ ref: _,
325
+ ...u
326
326
  }) {
327
- const f = R(), g = o ?? f, b = !!i, v = b ? i : n, N = v != null && v !== !1 ? `${g}-message` : void 0, y = e != null && !r ? `${g}-label` : void 0, w = [D.field, b && D.invalid, d].filter(Boolean).join(" "), q = e != null ? /* @__PURE__ */ _(se, { children: [
327
+ const f = R(), g = r ?? f, m = !!i, b = m ? i : n, x = b != null && b !== !1 ? `${g}-message` : void 0, j = e != null && !o ? `${g}-label` : void 0, S = [O.field, m && O.invalid, l].filter(Boolean).join(" "), T = e != null ? /* @__PURE__ */ h(fe, { children: [
328
328
  e,
329
- a && (s !== void 0 ? /* @__PURE__ */ _("span", { "aria-hidden": "true", className: D.requiredText, children: [
329
+ s && (a !== void 0 ? /* @__PURE__ */ h("span", { "aria-hidden": "true", className: O.requiredText, children: [
330
330
  " ",
331
- s
332
- ] }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className: D.marker, children: " *" }))
333
- ] }) : null, J = /* @__PURE__ */ _(se, { children: [
334
- q != null && (r ? /* @__PURE__ */ t("legend", { className: D.label, children: q }) : /* @__PURE__ */ t("label", { id: y, className: D.label, htmlFor: g, children: q })),
335
- /* @__PURE__ */ t(ue.Provider, { value: { id: g, labelId: y, describedBy: N, invalid: b, required: a }, children: l }),
336
- N && /* @__PURE__ */ t("p", { id: N, className: D.message, "aria-live": c ? "polite" : void 0, children: v })
331
+ a
332
+ ] }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className: O.marker, children: " *" }))
333
+ ] }) : null, y = /* @__PURE__ */ h(fe, { children: [
334
+ T != null && (o ? /* @__PURE__ */ t("legend", { className: O.label, children: T }) : /* @__PURE__ */ t("label", { id: j, className: O.label, htmlFor: g, children: T })),
335
+ /* @__PURE__ */ t(G.Provider, { value: { id: g, labelId: j, describedBy: x, invalid: m, required: s, group: o }, children: d }),
336
+ x && /* @__PURE__ */ t("p", { id: x, className: O.message, "aria-live": c ? "polite" : void 0, children: b })
337
337
  ] });
338
- return r ? /* @__PURE__ */ t(
338
+ return o ? /* @__PURE__ */ t(
339
339
  "fieldset",
340
340
  {
341
- ref: u,
342
- className: w,
343
- "aria-describedby": N,
344
- ...h,
345
- children: J
341
+ ref: _,
342
+ className: S,
343
+ "aria-describedby": x,
344
+ ...u,
345
+ children: y
346
346
  }
347
- ) : /* @__PURE__ */ t("div", { ref: u, className: w, ...h, children: J });
347
+ ) : /* @__PURE__ */ t("div", { ref: _, className: S, ...u, children: y });
348
348
  }
349
- function oi() {
350
- const e = j(ue);
349
+ function Hi() {
350
+ const e = $(G);
351
351
  return e ? {
352
352
  id: e.id,
353
353
  ...e.labelId ? { "aria-labelledby": e.labelId } : {},
@@ -356,89 +356,89 @@ function oi() {
356
356
  ...e.required ? { "aria-required": !0, required: !0 } : {}
357
357
  } : {};
358
358
  }
359
- function ri({ size: e = 20, ...n }) {
360
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
359
+ function Vi({ size: e = 20, ...n }) {
360
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
361
361
  /* @__PURE__ */ t("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
362
362
  /* @__PURE__ */ t("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
363
363
  ] });
364
364
  }
365
- function ii({ size: e = 20, ...n }) {
365
+ function Oi({ size: e = 20, ...n }) {
366
366
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) });
367
367
  }
368
- function me({ size: e = 20, ...n }) {
369
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
368
+ function xe({ size: e = 20, ...n }) {
369
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
370
370
  /* @__PURE__ */ t("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
371
371
  /* @__PURE__ */ t("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
372
372
  ] });
373
373
  }
374
- function ot({ size: e = 20, ...n }) {
374
+ function ct({ size: e = 20, ...n }) {
375
375
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "20 6 9 17 4 12" }) });
376
376
  }
377
- function rt({ size: e = 20, ...n }) {
377
+ function lt({ size: e = 20, ...n }) {
378
378
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "9 18 15 12 9 6" }) });
379
379
  }
380
- function it({ size: e = 20, ...n }) {
380
+ function dt({ size: e = 20, ...n }) {
381
381
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("polyline", { points: "15 18 9 12 15 6" }) });
382
382
  }
383
- function si({ size: e = 20, ...n }) {
384
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
383
+ function Ki({ size: e = 20, ...n }) {
384
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
385
385
  /* @__PURE__ */ t("circle", { cx: "11", cy: "11", r: "8" }),
386
386
  /* @__PURE__ */ t("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
387
387
  ] });
388
388
  }
389
- function ai({ size: e = 20, ...n }) {
390
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
389
+ function Fi({ size: e = 20, ...n }) {
390
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
391
391
  /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" }),
392
392
  /* @__PURE__ */ t("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })
393
393
  ] });
394
394
  }
395
- function ci({ size: e = 20, ...n }) {
396
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
395
+ function Ui({ size: e = 20, ...n }) {
396
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
397
397
  /* @__PURE__ */ t("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
398
398
  /* @__PURE__ */ t("circle", { cx: "12", cy: "7", r: "4" })
399
399
  ] });
400
400
  }
401
- function li({ size: e = 20, ...n }) {
402
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
401
+ function Gi({ size: e = 20, ...n }) {
402
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
403
403
  /* @__PURE__ */ t("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
404
404
  /* @__PURE__ */ t("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
405
405
  ] });
406
406
  }
407
- function di({ size: e = 20, ...n }) {
408
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
407
+ function Yi({ size: e = 20, ...n }) {
408
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
409
409
  /* @__PURE__ */ t("polyline", { points: "3 6 5 6 21 6" }),
410
410
  /* @__PURE__ */ t("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
411
411
  ] });
412
412
  }
413
- function st({ size: e = 20, ...n }) {
414
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
413
+ function ut({ size: e = 20, ...n }) {
414
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
415
415
  /* @__PURE__ */ t("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
416
416
  /* @__PURE__ */ t("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
417
417
  ] });
418
418
  }
419
- function ui({ size: e = 20, ...n }) {
420
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
419
+ function Zi({ size: e = 20, ...n }) {
420
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
421
421
  /* @__PURE__ */ t("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
422
422
  /* @__PURE__ */ t("polyline", { points: "15 3 21 3 21 9" }),
423
423
  /* @__PURE__ */ t("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
424
424
  ] });
425
425
  }
426
- function hi({ size: e = 20, ...n }) {
427
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
426
+ function Xi({ size: e = 20, ...n }) {
427
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
428
428
  /* @__PURE__ */ t("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
429
429
  /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" })
430
430
  ] });
431
431
  }
432
- function _i({ size: e = 20, ...n }) {
433
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
432
+ function Ji({ size: e = 20, ...n }) {
433
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
434
434
  /* @__PURE__ */ t("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94" }),
435
435
  /* @__PURE__ */ t("path", { d: "M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19" }),
436
436
  /* @__PURE__ */ t("path", { d: "M14.12 14.12a3 3 0 1 1-4.24-4.24" }),
437
437
  /* @__PURE__ */ t("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
438
438
  ] });
439
439
  }
440
- function fi({ size: e = 20, ...n }) {
441
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
440
+ function Qi({ size: e = 20, ...n }) {
441
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
442
442
  /* @__PURE__ */ t("line", { x1: "12", y1: "2", x2: "12", y2: "6" }),
443
443
  /* @__PURE__ */ t("line", { x1: "12", y1: "18", x2: "12", y2: "22" }),
444
444
  /* @__PURE__ */ t("line", { x1: "4.93", y1: "4.93", x2: "7.76", y2: "7.76" }),
@@ -449,343 +449,531 @@ function fi({ size: e = 20, ...n }) {
449
449
  /* @__PURE__ */ t("line", { x1: "16.24", y1: "7.76", x2: "19.07", y2: "4.93" })
450
450
  ] });
451
451
  }
452
- function pi({ size: e = 20, ...n }) {
453
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
452
+ function es({ size: e = 20, ...n }) {
453
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
454
454
  /* @__PURE__ */ t("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
455
455
  /* @__PURE__ */ t("polyline", { points: "19 12 12 19 5 12" })
456
456
  ] });
457
457
  }
458
- function gi({ size: e = 20, ...n }) {
459
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
458
+ function ns({ size: e = 20, ...n }) {
459
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
460
460
  /* @__PURE__ */ t("line", { x1: "7", y1: "17", x2: "17", y2: "7" }),
461
461
  /* @__PURE__ */ t("polyline", { points: "7 7 17 7 17 17" })
462
462
  ] });
463
463
  }
464
- function mi({ size: e = 20, ...n }) {
464
+ function ts({ size: e = 20, ...n }) {
465
465
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) });
466
466
  }
467
- function bi({ size: e = 20, ...n }) {
467
+ function rs({ size: e = 20, ...n }) {
468
468
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }) });
469
469
  }
470
- function vi({ size: e = 20, ...n }) {
470
+ function os({ size: e = 20, ...n }) {
471
471
  return /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", ...n, children: /* @__PURE__ */ t("path", { d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z" }) });
472
472
  }
473
- function yi({ size: e = 20, ...n }) {
474
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
473
+ function is({ size: e = 20, ...n }) {
474
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
475
475
  /* @__PURE__ */ t("rect", { x: "2", y: "2", width: "20", height: "20", rx: "5", ry: "5" }),
476
476
  /* @__PURE__ */ t("path", { d: "M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" }),
477
477
  /* @__PURE__ */ t("line", { x1: "17.5", y1: "6.5", x2: "17.51", y2: "6.5" })
478
478
  ] });
479
479
  }
480
- function at({ size: e = 20, ...n }) {
481
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
480
+ function _t({ size: e = 20, ...n }) {
481
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
482
482
  /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
483
483
  /* @__PURE__ */ t("line", { x1: "12", y1: "11", x2: "12", y2: "16" }),
484
484
  /* @__PURE__ */ t("line", { x1: "12", y1: "8", x2: "12", y2: "8" })
485
485
  ] });
486
486
  }
487
- function ct({ size: e = 20, ...n }) {
488
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
487
+ function ht({ size: e = 20, ...n }) {
488
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
489
489
  /* @__PURE__ */ t("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z" }),
490
490
  /* @__PURE__ */ t("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
491
491
  /* @__PURE__ */ t("line", { x1: "12", y1: "17", x2: "12", y2: "17" })
492
492
  ] });
493
493
  }
494
- function lt({ size: e = 20, ...n }) {
495
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
494
+ function ft({ size: e = 20, ...n }) {
495
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
496
496
  /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
497
497
  /* @__PURE__ */ t("line", { x1: "12", y1: "8", x2: "12", y2: "12" }),
498
498
  /* @__PURE__ */ t("line", { x1: "12", y1: "16", x2: "12", y2: "16" })
499
499
  ] });
500
500
  }
501
- function xi({ size: e = 20, ...n }) {
502
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
501
+ function ss({ size: e = 20, ...n }) {
502
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
503
503
  /* @__PURE__ */ t("circle", { cx: "5", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" }),
504
504
  /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" }),
505
505
  /* @__PURE__ */ t("circle", { cx: "19", cy: "12", r: "1.5", fill: "currentColor", stroke: "none" })
506
506
  ] });
507
507
  }
508
- function wi({ size: e = 20, ...n }) {
509
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
508
+ function as({ size: e = 20, ...n }) {
509
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
510
510
  /* @__PURE__ */ t("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
511
511
  /* @__PURE__ */ t("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
512
512
  /* @__PURE__ */ t("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
513
513
  ] });
514
514
  }
515
- function ki({ size: e = 20, ...n }) {
516
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
515
+ function cs({ size: e = 20, ...n }) {
516
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
517
517
  /* @__PURE__ */ t("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }),
518
518
  /* @__PURE__ */ t("polyline", { points: "16 17 21 12 16 7" }),
519
519
  /* @__PURE__ */ t("line", { x1: "21", y1: "12", x2: "9", y2: "12" })
520
520
  ] });
521
521
  }
522
- function Ni({ size: e = 20, ...n }) {
523
- return /* @__PURE__ */ _("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
522
+ function ls({ size: e = 20, ...n }) {
523
+ return /* @__PURE__ */ h("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", ...n, children: [
524
524
  /* @__PURE__ */ t("path", { d: "M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z" }),
525
525
  /* @__PURE__ */ t("rect", { x: "8", y: "11", width: "8", height: "7", rx: "1" }),
526
526
  /* @__PURE__ */ t("line", { x1: "12", y1: "11", x2: "12", y2: "18" })
527
527
  ] });
528
528
  }
529
- const dt = "_dialog_qg38y_2", ut = "_panel_qg38y_20", ht = "_center_qg38y_42", _t = "_inlineStart_qg38y_50", ft = "_inlineEnd_qg38y_51", pt = "_w400_qg38y_100", gt = "_w560_qg38y_101", mt = "_w720_qg38y_102", bt = "_header_qg38y_124", vt = "_title_qg38y_131", yt = "_footer_qg38y_137", z = {
530
- dialog: dt,
531
- panel: ut,
532
- center: ht,
533
- inlineStart: _t,
534
- inlineEnd: ft,
535
- w400: pt,
536
- w560: gt,
537
- w720: mt,
538
- header: bt,
539
- title: vt,
540
- footer: yt
541
- }, xt = {
542
- 400: z.w400,
543
- 560: z.w560,
544
- 720: z.w720
545
- }, wt = {
546
- center: z.center,
547
- "inline-start": z.inlineStart,
548
- "inline-end": z.inlineEnd
529
+ const gt = "_dialog_qg38y_2", pt = "_panel_qg38y_20", mt = "_center_qg38y_42", vt = "_inlineStart_qg38y_50", bt = "_inlineEnd_qg38y_51", yt = "_w400_qg38y_100", wt = "_w560_qg38y_101", xt = "_w720_qg38y_102", kt = "_header_qg38y_124", Nt = "_title_qg38y_131", $t = "_footer_qg38y_137", q = {
530
+ dialog: gt,
531
+ panel: pt,
532
+ center: mt,
533
+ inlineStart: vt,
534
+ inlineEnd: bt,
535
+ w400: yt,
536
+ w560: wt,
537
+ w720: xt,
538
+ header: kt,
539
+ title: Nt,
540
+ footer: $t
541
+ }, Bt = {
542
+ 400: q.w400,
543
+ 560: q.w560,
544
+ 720: q.w720
545
+ }, St = {
546
+ center: q.center,
547
+ "inline-start": q.inlineStart,
548
+ "inline-end": q.inlineEnd
549
549
  };
550
- function $i({
550
+ function ds({
551
551
  open: e,
552
552
  onClose: n,
553
553
  title: i,
554
- footer: a,
555
- width: s = 560,
556
- placement: r = "center",
557
- dismissible: o = !0,
558
- className: c,
559
- children: d,
560
- ref: l,
561
- ...u
554
+ footer: s,
555
+ width: a = 560,
556
+ placement: o = "center",
557
+ dismissible: r = !0,
558
+ closeOnEscape: c,
559
+ initialFocus: l,
560
+ closeLabel: d,
561
+ className: _,
562
+ children: u,
563
+ ref: f,
564
+ ...g
562
565
  }) {
563
- const h = L(null), f = R(), g = (y) => {
564
- h.current = y, typeof l == "function" ? l(y) : l && (l.current = y);
566
+ const m = B(null), b = R(), x = (y) => {
567
+ m.current = y, typeof f == "function" ? f(y) : f && (f.current = y);
565
568
  };
566
- C(() => {
567
- const y = h.current;
568
- y && (e && !y.open ? y.showModal() : !e && y.open && y.close());
569
- }, [e]), C(() => {
569
+ z(() => {
570
+ var H;
571
+ const y = m.current;
572
+ y && (e && !y.open ? (y.showModal(), (H = l == null ? void 0 : l.current) == null || H.focus()) : !e && y.open && y.close());
573
+ }, [e]), z(() => {
570
574
  if (!e) return;
571
575
  const y = document.body.style.overflow;
572
576
  return document.body.style.overflow = "hidden", () => {
573
577
  document.body.style.overflow = y;
574
578
  };
575
579
  }, [e]);
576
- const b = (y) => {
577
- y.preventDefault(), o && n("esc");
578
- }, v = (y) => {
579
- o && y.target === h.current && n("backdrop");
580
- }, N = [z.dialog, xt[s], wt[r], c].filter(Boolean).join(" ");
580
+ const j = (y) => {
581
+ y.preventDefault(), (c ?? r) && n("esc");
582
+ }, S = (y) => {
583
+ r && y.target === m.current && n("backdrop");
584
+ }, T = [q.dialog, Bt[a], St[o], _].filter(Boolean).join(" ");
581
585
  return /* @__PURE__ */ t(
582
586
  "dialog",
583
587
  {
584
- ref: g,
585
- className: N,
586
- "data-placement": r,
587
- "aria-labelledby": i != null ? f : void 0,
588
- onCancel: b,
589
- onClick: v,
590
- ...u,
591
- children: /* @__PURE__ */ _("div", { className: z.panel, children: [
592
- (i != null || o) && /* @__PURE__ */ _("div", { className: z.header, children: [
593
- i != null && /* @__PURE__ */ t("h2", { id: f, className: z.title, children: i }),
594
- o && /* @__PURE__ */ t(
595
- te,
588
+ ref: x,
589
+ className: T,
590
+ "data-placement": o,
591
+ "aria-labelledby": i != null ? b : void 0,
592
+ onCancel: j,
593
+ onClick: S,
594
+ ...g,
595
+ children: /* @__PURE__ */ h("div", { className: q.panel, children: [
596
+ (i != null || r) && /* @__PURE__ */ h("div", { className: q.header, children: [
597
+ i != null && /* @__PURE__ */ t("h2", { id: b, className: q.title, children: i }),
598
+ r && (d != null ? /* @__PURE__ */ t(ce, { variant: "ghost", size: 32, onClick: () => n("close-button"), children: d }) : /* @__PURE__ */ t(
599
+ le,
596
600
  {
597
601
  variant: "ghost",
598
602
  size: 32,
599
603
  "aria-label": "Close dialog",
600
604
  onClick: () => n("close-button"),
601
- children: /* @__PURE__ */ t(me, { "aria-hidden": "true" })
605
+ children: /* @__PURE__ */ t(xe, { "aria-hidden": "true" })
602
606
  }
603
- )
607
+ ))
604
608
  ] }),
605
- d,
606
- a != null && /* @__PURE__ */ t("div", { className: z.footer, children: a })
609
+ u,
610
+ s != null && /* @__PURE__ */ t("div", { className: q.footer, children: s })
607
611
  ] })
608
612
  }
609
613
  );
610
614
  }
611
- const kt = "_input_pmr7w_3", Nt = "_size24_pmr7w_43", $t = "_size32_pmr7w_49", Bt = "_size40_pmr7w_55", Lt = "_size48_pmr7w_61", Ct = "_error_pmr7w_69", F = {
612
- input: kt,
613
- size24: Nt,
614
- size32: $t,
615
- size40: Bt,
616
- size48: Lt,
617
- error: Ct
618
- }, St = {
619
- 24: F.size24,
620
- 32: F.size32,
621
- 40: F.size40,
622
- 48: F.size48
615
+ const Ct = "_input_pmr7w_3", Lt = "_size24_pmr7w_43", jt = "_size32_pmr7w_49", Tt = "_size40_pmr7w_55", It = "_size48_pmr7w_61", zt = "_error_pmr7w_69", J = {
616
+ input: Ct,
617
+ size24: Lt,
618
+ size32: jt,
619
+ size40: Tt,
620
+ size48: It,
621
+ error: zt
622
+ }, qt = {
623
+ 24: J.size24,
624
+ 32: J.size32,
625
+ 40: J.size40,
626
+ 48: J.size48
623
627
  };
624
- function Bi({ size: e = 32, error: n = !1, type: i = "text", className: a, ref: s, ...r }) {
625
- const o = j(ue), c = n || ((o == null ? void 0 : o.invalid) ?? !1), d = [o == null ? void 0 : o.describedBy, r["aria-describedby"]].filter(Boolean).join(" ") || void 0, l = [F.input, St[e], c && F.error, a].filter(Boolean).join(" ");
628
+ function us({ size: e = 32, error: n = !1, type: i = "text", className: s, ref: a, ...o }) {
629
+ const r = $(G), c = n || ((r == null ? void 0 : r.invalid) ?? !1), l = [r == null ? void 0 : r.describedBy, o["aria-describedby"]].filter(Boolean).join(" ") || void 0, d = [J.input, qt[e], c && J.error, s].filter(Boolean).join(" ");
626
630
  return /* @__PURE__ */ t(
627
631
  "input",
628
632
  {
629
- ref: s,
630
- className: l,
631
- id: r.id ?? (o == null ? void 0 : o.id),
632
- required: r.required ?? ((o == null ? void 0 : o.required) || void 0),
633
- "aria-invalid": (o == null ? void 0 : o.invalid) || void 0,
633
+ ref: a,
634
+ className: d,
635
+ id: o.id ?? (r == null ? void 0 : r.id),
636
+ required: o.required ?? ((r == null ? void 0 : r.required) || void 0),
637
+ "aria-invalid": (r == null ? void 0 : r.invalid) || void 0,
634
638
  type: i,
635
- ...r,
636
- "aria-describedby": d
639
+ ...o,
640
+ "aria-describedby": l
637
641
  }
638
642
  );
639
643
  }
640
- const jt = "_select_1eqz1_3", Tt = "_size24_1eqz1_57", zt = "_size32_1eqz1_67", It = "_size40_1eqz1_77", Et = "_size48_1eqz1_87", qt = "_error_1eqz1_99", K = {
641
- select: jt,
642
- size24: Tt,
643
- size32: zt,
644
- size40: It,
645
- size48: Et,
646
- error: qt
647
- }, Mt = {
648
- 24: K.size24,
649
- 32: K.size32,
650
- 40: K.size40,
651
- 48: K.size48
644
+ const Mt = "_select_1eqz1_3", Et = "_size24_1eqz1_57", Dt = "_size32_1eqz1_67", Wt = "_size40_1eqz1_77", Pt = "_size48_1eqz1_87", At = "_error_1eqz1_99", Q = {
645
+ select: Mt,
646
+ size24: Et,
647
+ size32: Dt,
648
+ size40: Wt,
649
+ size48: Pt,
650
+ error: At
651
+ }, Rt = {
652
+ 24: Q.size24,
653
+ 32: Q.size32,
654
+ 40: Q.size40,
655
+ 48: Q.size48
652
656
  };
653
- function Li({
657
+ function _s({
654
658
  size: e = 32,
655
659
  error: n = !1,
656
660
  className: i,
657
- ref: a,
658
- children: s,
659
- ...r
661
+ ref: s,
662
+ children: a,
663
+ ...o
660
664
  }) {
661
- const o = j(ue), c = n || ((o == null ? void 0 : o.invalid) ?? !1), d = [o == null ? void 0 : o.describedBy, r["aria-describedby"]].filter(Boolean).join(" ") || void 0, l = [
662
- K.select,
663
- Mt[e],
664
- c && K.error,
665
+ const r = $(G), c = n || ((r == null ? void 0 : r.invalid) ?? !1), l = [r == null ? void 0 : r.describedBy, o["aria-describedby"]].filter(Boolean).join(" ") || void 0, d = [
666
+ Q.select,
667
+ Rt[e],
668
+ c && Q.error,
665
669
  i
666
670
  ].filter(Boolean).join(" ");
667
671
  return /* @__PURE__ */ t(
668
672
  "select",
669
673
  {
670
- ref: a,
671
- className: l,
672
- id: r.id ?? (o == null ? void 0 : o.id),
673
- required: r.required ?? ((o == null ? void 0 : o.required) || void 0),
674
- "aria-invalid": (o == null ? void 0 : o.invalid) || void 0,
675
- ...r,
676
- "aria-describedby": d,
677
- children: s
674
+ ref: s,
675
+ className: d,
676
+ id: o.id ?? (r == null ? void 0 : r.id),
677
+ required: o.required ?? ((r == null ? void 0 : r.required) || void 0),
678
+ "aria-invalid": (r == null ? void 0 : r.invalid) || void 0,
679
+ ...o,
680
+ "aria-describedby": l,
681
+ children: a
678
682
  }
679
683
  );
680
684
  }
681
- const At = "_label_1jm35_3", Wt = "_disabled_1jm35_13", Dt = "_indicator_1jm35_26", Pt = "_input_1jm35_42", Rt = "_text_1jm35_67", ee = {
682
- label: At,
683
- disabled: Wt,
684
- indicator: Dt,
685
- input: Pt,
686
- text: Rt
685
+ const Ht = "_label_10kne_3", Vt = "_disabled_10kne_13", Ot = "_indicator_10kne_26", Kt = "_input_10kne_42", Ft = "_text_10kne_97", se = {
686
+ label: Ht,
687
+ disabled: Vt,
688
+ indicator: Ot,
689
+ input: Kt,
690
+ text: Ft
687
691
  };
688
- function Ce({
692
+ function qe({
689
693
  children: e,
690
694
  className: n,
691
695
  disabled: i,
696
+ indeterminate: s,
692
697
  ref: a,
693
- ...s
698
+ ...o
694
699
  }) {
695
- const r = [ee.label, i && ee.disabled, n].filter(Boolean).join(" ");
696
- return /* @__PURE__ */ _("label", { className: r, children: [
700
+ const r = $(G), c = (r == null ? void 0 : r.group) && r.invalid || void 0, l = B(null), d = (u) => {
701
+ l.current = u, typeof a == "function" ? a(u) : a && (a.current = u);
702
+ };
703
+ ze(() => {
704
+ s !== void 0 && l.current && (l.current.indeterminate = s);
705
+ });
706
+ const _ = [se.label, i && se.disabled, n].filter(Boolean).join(" ");
707
+ return /* @__PURE__ */ h("label", { className: _, children: [
697
708
  /* @__PURE__ */ t(
698
709
  "input",
699
710
  {
700
- ref: a,
711
+ ref: d,
701
712
  type: "checkbox",
702
- className: `psi-sr-only ${ee.input}`,
713
+ className: `psi-sr-only ${se.input}`,
703
714
  disabled: i,
704
- ...s
715
+ "aria-invalid": c,
716
+ ...o
705
717
  }
706
718
  ),
707
- /* @__PURE__ */ t("span", { className: ee.indicator, "aria-hidden": "true" }),
708
- e && /* @__PURE__ */ t("span", { className: ee.text, children: e })
719
+ /* @__PURE__ */ t("span", { className: se.indicator, "aria-hidden": "true" }),
720
+ e && /* @__PURE__ */ t("span", { className: se.text, children: e })
709
721
  ] });
710
722
  }
711
- const Ht = "_label_yv464_3", Vt = "_disabled_yv464_13", Ot = "_track_yv464_26", Ft = "_input_yv464_38", Kt = "_thumb_yv464_50", Ut = "_text_yv464_67", O = {
712
- label: Ht,
713
- disabled: Vt,
714
- track: Ot,
715
- input: Ft,
716
- thumb: Kt,
717
- text: Ut
723
+ const Ut = "_label_yv464_3", Gt = "_disabled_yv464_13", Yt = "_track_yv464_26", Zt = "_input_yv464_38", Xt = "_thumb_yv464_50", Jt = "_text_yv464_67", X = {
724
+ label: Ut,
725
+ disabled: Gt,
726
+ track: Yt,
727
+ input: Zt,
728
+ thumb: Xt,
729
+ text: Jt
718
730
  };
719
- function Ci({
731
+ function hs({
720
732
  children: e,
721
733
  className: n,
722
734
  disabled: i,
723
- ref: a,
724
- ...s
735
+ ref: s,
736
+ ...a
725
737
  }) {
726
- const r = [O.label, i && O.disabled, n].filter(Boolean).join(" ");
727
- return /* @__PURE__ */ _("label", { className: r, children: [
738
+ const o = [X.label, i && X.disabled, n].filter(Boolean).join(" ");
739
+ return /* @__PURE__ */ h("label", { className: o, children: [
728
740
  /* @__PURE__ */ t(
729
741
  "input",
730
742
  {
731
- ref: a,
743
+ ref: s,
732
744
  type: "checkbox",
733
745
  role: "switch",
734
- className: `psi-sr-only ${O.input}`,
746
+ className: `psi-sr-only ${X.input}`,
735
747
  disabled: i,
736
- ...s
748
+ ...a
749
+ }
750
+ ),
751
+ /* @__PURE__ */ t("span", { className: X.track, "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: X.thumb }) }),
752
+ e && /* @__PURE__ */ t("span", { className: X.text, children: e })
753
+ ] });
754
+ }
755
+ const Qt = "_stack_49uys_4", er = "_gap4_49uys_9", nr = "_gap8_49uys_10", tr = "_gap12_49uys_11", rr = "_gap16_49uys_12", or = "_gap24_49uys_13", ir = "_gap32_49uys_14", sr = "_alignStart_49uys_16", ar = "_alignCenter_49uys_17", cr = "_alignEnd_49uys_18", D = {
756
+ stack: Qt,
757
+ gap4: er,
758
+ gap8: nr,
759
+ gap12: tr,
760
+ gap16: rr,
761
+ gap24: or,
762
+ gap32: ir,
763
+ alignStart: sr,
764
+ alignCenter: ar,
765
+ alignEnd: cr
766
+ }, lr = {
767
+ 4: D.gap4,
768
+ 8: D.gap8,
769
+ 12: D.gap12,
770
+ 16: D.gap16,
771
+ 24: D.gap24,
772
+ 32: D.gap32
773
+ }, dr = {
774
+ stretch: void 0,
775
+ start: D.alignStart,
776
+ center: D.alignCenter,
777
+ end: D.alignEnd
778
+ };
779
+ function fs({ gap: e = 16, align: n = "stretch", className: i, children: s, ref: a, ...o }) {
780
+ const r = [D.stack, lr[e], dr[n], i].filter(Boolean).join(" ");
781
+ return /* @__PURE__ */ t("div", { ref: a, className: r, ...o, children: s });
782
+ }
783
+ const ur = "_text_14u60_4", _r = "_s12Regular_14u60_9", hr = "_s12Medium_14u60_10", fr = "_s14Regular_14u60_11", gr = "_s14Medium_14u60_12", pr = "_s16Regular_14u60_13", mr = "_s16Medium_14u60_14", vr = "_s18Regular_14u60_15", br = "_s18Medium_14u60_16", yr = "_secondary_14u60_18", E = {
784
+ text: ur,
785
+ s12Regular: _r,
786
+ s12Medium: hr,
787
+ s14Regular: fr,
788
+ s14Medium: gr,
789
+ s16Regular: pr,
790
+ s16Medium: mr,
791
+ s18Regular: vr,
792
+ s18Medium: br,
793
+ secondary: yr
794
+ }, wr = {
795
+ "12regular": E.s12Regular,
796
+ "12medium": E.s12Medium,
797
+ "14regular": E.s14Regular,
798
+ "14medium": E.s14Medium,
799
+ "16regular": E.s16Regular,
800
+ "16medium": E.s16Medium,
801
+ "18regular": E.s18Regular,
802
+ "18medium": E.s18Medium
803
+ };
804
+ function gs({
805
+ as: e = "p",
806
+ size: n = 14,
807
+ weight: i = "regular",
808
+ tone: s = "primary",
809
+ className: a,
810
+ children: o,
811
+ ref: r,
812
+ ...c
813
+ }) {
814
+ const l = [E.text, wr[`${n}${i}`], s === "secondary" && E.secondary, a].filter(Boolean).join(" ");
815
+ return /* @__PURE__ */ t(e, { ref: r, className: l, ...c, children: o });
816
+ }
817
+ const xr = "_wrap_1twws_6", kr = "_textarea_1twws_11", Nr = "_error_1twws_49", $r = "_counter_1twws_55", _e = {
818
+ wrap: xr,
819
+ textarea: kr,
820
+ error: Nr,
821
+ counter: $r
822
+ };
823
+ function ps({
824
+ rows: e = 3,
825
+ error: n = !1,
826
+ showCounter: i = !0,
827
+ maxLength: s,
828
+ className: a,
829
+ onChange: o,
830
+ ref: r,
831
+ ...c
832
+ }) {
833
+ const l = $(G), d = `${R()}-counter`, _ = n || ((l == null ? void 0 : l.invalid) ?? !1), u = c.value !== void 0, [f, g] = re(() => String(c.defaultValue ?? "").length), m = u ? String(c.value ?? "").length : f, b = s !== void 0 && i, x = [l == null ? void 0 : l.describedBy, b ? d : void 0, c["aria-describedby"]].filter(Boolean).join(" ") || void 0, j = [_e.textarea, _ && _e.error, a].filter(Boolean).join(" "), S = (y) => {
834
+ u || g(y.target.value.length), o == null || o(y);
835
+ }, T = /* @__PURE__ */ t(
836
+ "textarea",
837
+ {
838
+ ref: r,
839
+ className: j,
840
+ rows: e,
841
+ maxLength: s,
842
+ id: c.id ?? (l == null ? void 0 : l.id),
843
+ required: c.required ?? ((l == null ? void 0 : l.required) || void 0),
844
+ "aria-invalid": (l == null ? void 0 : l.invalid) || void 0,
845
+ ...c,
846
+ onChange: S,
847
+ "aria-describedby": x
848
+ }
849
+ );
850
+ return b ? /* @__PURE__ */ h("div", { className: _e.wrap, children: [
851
+ T,
852
+ /* @__PURE__ */ h("div", { id: d, className: _e.counter, "data-psi-textarea-counter": !0, children: [
853
+ m,
854
+ " / ",
855
+ s,
856
+ /* @__PURE__ */ t("span", { className: "psi-sr-only", children: " characters" })
857
+ ] })
858
+ ] }) : T;
859
+ }
860
+ const Br = "_group_wwg2k_5", Sr = "_horizontal_wwg2k_12", Cr = "_label_wwg2k_18", Lr = "_disabled_wwg2k_28", jr = "_circle_wwg2k_35", Tr = "_input_wwg2k_51", Ir = "_text_wwg2k_79", K = {
861
+ group: Br,
862
+ horizontal: Sr,
863
+ label: Cr,
864
+ disabled: Lr,
865
+ circle: jr,
866
+ input: Tr,
867
+ text: Ir
868
+ }, Me = U(null);
869
+ function ms({
870
+ children: e,
871
+ name: n,
872
+ value: i,
873
+ defaultValue: s,
874
+ onValueChange: a,
875
+ disabled: o = !1,
876
+ orientation: r = "vertical",
877
+ className: c,
878
+ ref: l,
879
+ ...d
880
+ }) {
881
+ const _ = $(G), u = R(), [f, g] = re(s), m = i !== void 0 ? i : f, b = (_ == null ? void 0 : _.group) === !0, x = (S) => {
882
+ i === void 0 && g(S), a == null || a(S);
883
+ }, j = [K.group, r === "horizontal" && K.horizontal, c].filter(Boolean).join(" ");
884
+ return /* @__PURE__ */ t(
885
+ "div",
886
+ {
887
+ ...d,
888
+ ref: l,
889
+ className: j,
890
+ role: b ? void 0 : "radiogroup",
891
+ "data-psi-radio-group": !0,
892
+ children: /* @__PURE__ */ t(
893
+ Me.Provider,
894
+ {
895
+ value: {
896
+ name: n ?? u,
897
+ value: m,
898
+ select: x,
899
+ disabled: o,
900
+ required: (_ == null ? void 0 : _.required) ?? !1,
901
+ invalid: (_ == null ? void 0 : _.invalid) ?? !1
902
+ },
903
+ children: e
904
+ }
905
+ )
906
+ }
907
+ );
908
+ }
909
+ function vs({ value: e, children: n, disabled: i, className: s, ref: a }) {
910
+ const o = $(Me), r = i || (o == null ? void 0 : o.disabled) || !1, c = [K.label, r && K.disabled, s].filter(Boolean).join(" ");
911
+ return /* @__PURE__ */ h("label", { className: c, children: [
912
+ /* @__PURE__ */ t(
913
+ "input",
914
+ {
915
+ ref: a,
916
+ type: "radio",
917
+ className: `psi-sr-only ${K.input}`,
918
+ name: o == null ? void 0 : o.name,
919
+ value: e,
920
+ checked: o ? o.value === e : void 0,
921
+ onChange: () => o == null ? void 0 : o.select(e),
922
+ disabled: r,
923
+ required: (o == null ? void 0 : o.required) || void 0,
924
+ "aria-invalid": (o == null ? void 0 : o.invalid) || void 0
737
925
  }
738
926
  ),
739
- /* @__PURE__ */ t("span", { className: O.track, "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: O.thumb }) }),
740
- e && /* @__PURE__ */ t("span", { className: O.text, children: e })
927
+ /* @__PURE__ */ t("span", { className: K.circle, "aria-hidden": "true" }),
928
+ n && /* @__PURE__ */ t("span", { className: K.text, children: n })
741
929
  ] });
742
930
  }
743
- const Gt = "_tag_1r2xw_3", Yt = "_dismiss_1r2xw_17", Zt = "_neutral_1r2xw_43", Xt = "_accent_1r2xw_48", Jt = "_success_1r2xw_53", Qt = "_warning_1r2xw_58", eo = "_danger_1r2xw_63", no = "_neutralSubtle_1r2xw_70", to = "_accentSubtle_1r2xw_75", oo = "_successSubtle_1r2xw_80", ro = "_warningSubtle_1r2xw_85", io = "_dangerSubtle_1r2xw_90", S = {
744
- tag: Gt,
745
- dismiss: Yt,
746
- neutral: Zt,
747
- accent: Xt,
748
- success: Jt,
749
- warning: Qt,
750
- danger: eo,
751
- neutralSubtle: no,
752
- accentSubtle: to,
753
- successSubtle: oo,
754
- warningSubtle: ro,
755
- dangerSubtle: io
756
- }, so = {
757
- neutral: S.neutral,
758
- accent: S.accent,
759
- success: S.success,
760
- warning: S.warning,
761
- danger: S.danger
762
- }, ao = {
763
- neutral: S.neutralSubtle,
764
- accent: S.accentSubtle,
765
- success: S.successSubtle,
766
- warning: S.warningSubtle,
767
- danger: S.dangerSubtle
931
+ const zr = "_tag_1r2xw_3", qr = "_dismiss_1r2xw_17", Mr = "_neutral_1r2xw_43", Er = "_accent_1r2xw_48", Dr = "_success_1r2xw_53", Wr = "_warning_1r2xw_58", Pr = "_danger_1r2xw_63", Ar = "_neutralSubtle_1r2xw_70", Rr = "_accentSubtle_1r2xw_75", Hr = "_successSubtle_1r2xw_80", Vr = "_warningSubtle_1r2xw_85", Or = "_dangerSubtle_1r2xw_90", I = {
932
+ tag: zr,
933
+ dismiss: qr,
934
+ neutral: Mr,
935
+ accent: Er,
936
+ success: Dr,
937
+ warning: Wr,
938
+ danger: Pr,
939
+ neutralSubtle: Ar,
940
+ accentSubtle: Rr,
941
+ successSubtle: Hr,
942
+ warningSubtle: Vr,
943
+ dangerSubtle: Or
944
+ }, Kr = {
945
+ neutral: I.neutral,
946
+ accent: I.accent,
947
+ success: I.success,
948
+ warning: I.warning,
949
+ danger: I.danger
950
+ }, Fr = {
951
+ neutral: I.neutralSubtle,
952
+ accent: I.accentSubtle,
953
+ success: I.successSubtle,
954
+ warning: I.warningSubtle,
955
+ danger: I.dangerSubtle
768
956
  };
769
- function Si({
957
+ function bs({
770
958
  variant: e = "neutral",
771
959
  subtle: n = !1,
772
960
  onDismiss: i,
773
- className: a,
774
- children: s,
775
- ref: r,
776
- ...o
961
+ className: s,
962
+ children: a,
963
+ ref: o,
964
+ ...r
777
965
  }) {
778
- const c = n ? ao : so, d = [S.tag, c[e], a].filter(Boolean).join(" ");
779
- return /* @__PURE__ */ _("span", { ref: r, className: d, ...o, children: [
780
- s,
966
+ const c = n ? Fr : Kr, l = [I.tag, c[e], s].filter(Boolean).join(" ");
967
+ return /* @__PURE__ */ h("span", { ref: o, className: l, ...r, children: [
968
+ a,
781
969
  i && /* @__PURE__ */ t(
782
970
  "button",
783
971
  {
784
972
  type: "button",
785
- className: S.dismiss,
973
+ className: I.dismiss,
786
974
  onClick: i,
787
975
  "aria-label": "Dismiss",
788
- children: /* @__PURE__ */ _(
976
+ children: /* @__PURE__ */ h(
789
977
  "svg",
790
978
  {
791
979
  width: "12",
@@ -807,255 +995,270 @@ function Si({
807
995
  )
808
996
  ] });
809
997
  }
810
- const co = "_wrapper_1eu6z_3", lo = "_tooltip_1eu6z_10", uo = "_top_1eu6z_24", ho = "_bottom_1eu6z_31", _o = "_left_1eu6z_38", fo = "_right_1eu6z_45", U = {
811
- wrapper: co,
812
- tooltip: lo,
813
- top: uo,
814
- bottom: ho,
815
- left: _o,
816
- right: fo
817
- }, po = {
818
- top: U.top,
819
- bottom: U.bottom,
820
- left: U.left,
821
- right: U.right
822
- }, go = 150;
823
- function ji({
998
+ const Ur = "_wrapper_15o1w_3", Gr = "_tooltip_15o1w_10", Yr = "_top_15o1w_32", Zr = "_bottom_15o1w_45", Xr = "_left_15o1w_58", Jr = "_right_15o1w_71", ee = {
999
+ wrapper: Ur,
1000
+ tooltip: Gr,
1001
+ top: Yr,
1002
+ bottom: Zr,
1003
+ left: Xr,
1004
+ right: Jr
1005
+ }, Qr = {
1006
+ top: ee.top,
1007
+ bottom: ee.bottom,
1008
+ left: ee.left,
1009
+ right: ee.right
1010
+ }, eo = 150;
1011
+ function ys({
824
1012
  content: e,
825
1013
  children: n,
826
1014
  placement: i = "top"
827
1015
  }) {
828
- const [a, s] = ae(!1), r = R(), o = L(void 0), c = x(() => {
829
- o.current !== void 0 && (window.clearTimeout(o.current), o.current = void 0);
830
- }, []), d = x(() => s(!0), []), l = x(() => s(!1), []);
831
- C(() => c, [c]), C(() => {
832
- if (!a) return;
833
- const h = (f) => {
834
- f.key === "Escape" && l();
1016
+ const [s, a] = re(!1), o = R(), r = B(void 0), c = k(() => {
1017
+ r.current !== void 0 && (window.clearTimeout(r.current), r.current = void 0);
1018
+ }, []), l = k(() => a(!0), []), d = k(() => a(!1), []);
1019
+ z(() => c, [c]), z(() => {
1020
+ if (!s) return;
1021
+ const g = (m) => {
1022
+ m.key === "Escape" && d();
835
1023
  };
836
- return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
837
- }, [a, l]);
838
- const u = de(n, {
839
- "aria-describedby": a ? r : void 0,
840
- onMouseEnter: (h) => {
841
- c(), o.current = window.setTimeout(d, go);
842
- const f = n.props.onMouseEnter;
843
- f == null || f(h);
1024
+ return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
1025
+ }, [s, d]);
1026
+ const _ = () => {
1027
+ c(), r.current = window.setTimeout(l, eo);
1028
+ }, u = () => {
1029
+ c(), d();
1030
+ }, f = pe(n, {
1031
+ "aria-describedby": s ? o : void 0,
1032
+ onFocus: (g) => {
1033
+ l();
1034
+ const m = n.props.onFocus;
1035
+ m == null || m(g);
844
1036
  },
845
- onMouseLeave: (h) => {
846
- c(), l();
847
- const f = n.props.onMouseLeave;
848
- f == null || f(h);
849
- },
850
- onFocus: (h) => {
851
- d();
852
- const f = n.props.onFocus;
853
- f == null || f(h);
854
- },
855
- onBlur: (h) => {
856
- c(), l();
857
- const f = n.props.onBlur;
858
- f == null || f(h);
1037
+ onBlur: (g) => {
1038
+ c(), d();
1039
+ const m = n.props.onBlur;
1040
+ m == null || m(g);
859
1041
  }
860
1042
  });
861
- return /* @__PURE__ */ _("span", { className: U.wrapper, children: [
862
- u,
863
- a && /* @__PURE__ */ t(
864
- "span",
865
- {
866
- id: r,
867
- role: "tooltip",
868
- className: [U.tooltip, po[i]].filter(Boolean).join(" "),
869
- children: e
870
- }
871
- )
872
- ] });
1043
+ return /* @__PURE__ */ h(
1044
+ "span",
1045
+ {
1046
+ className: ee.wrapper,
1047
+ onMouseEnter: _,
1048
+ onMouseLeave: u,
1049
+ children: [
1050
+ f,
1051
+ s && /* @__PURE__ */ t(
1052
+ "span",
1053
+ {
1054
+ id: o,
1055
+ role: "tooltip",
1056
+ className: [ee.tooltip, Qr[i]].filter(Boolean).join(" "),
1057
+ children: e
1058
+ }
1059
+ )
1060
+ ]
1061
+ }
1062
+ );
873
1063
  }
874
- const mo = "_toolbar_8bwkv_1", bo = "_gap8_8bwkv_7", vo = "_gap12_8bwkv_8", yo = "_gap16_8bwkv_9", xo = "_alignEnd_8bwkv_13", wo = "_alignStart_8bwkv_19", G = {
875
- toolbar: mo,
876
- gap8: bo,
877
- gap12: vo,
878
- gap16: yo,
879
- alignEnd: xo,
880
- alignStart: wo
881
- }, ko = { 8: G.gap8, 12: G.gap12, 16: G.gap16 }, No = {
1064
+ const no = "_toolbar_8bwkv_1", to = "_gap8_8bwkv_7", ro = "_gap12_8bwkv_8", oo = "_gap16_8bwkv_9", io = "_alignEnd_8bwkv_13", so = "_alignStart_8bwkv_19", ne = {
1065
+ toolbar: no,
1066
+ gap8: to,
1067
+ gap12: ro,
1068
+ gap16: oo,
1069
+ alignEnd: io,
1070
+ alignStart: so
1071
+ }, ao = { 8: ne.gap8, 12: ne.gap12, 16: ne.gap16 }, co = {
882
1072
  center: void 0,
883
- end: G.alignEnd,
884
- start: G.alignStart
1073
+ end: ne.alignEnd,
1074
+ start: ne.alignStart
885
1075
  };
886
- function Ti({ gap: e = 8, align: n = "center", as: i = "div", className: a, children: s, ref: r, ...o }) {
887
- const c = [G.toolbar, ko[e], No[n], a].filter(Boolean).join(" ");
888
- return i === "form" ? /* @__PURE__ */ t("form", { ref: r, className: c, ...o, children: s }) : /* @__PURE__ */ t(
1076
+ function ws({ gap: e = 8, align: n = "center", as: i = "div", className: s, children: a, ref: o, ...r }) {
1077
+ const c = [ne.toolbar, ao[e], co[n], s].filter(Boolean).join(" ");
1078
+ return i === "form" ? /* @__PURE__ */ t("form", { ref: o, className: c, ...r, children: a }) : /* @__PURE__ */ t(
889
1079
  "div",
890
1080
  {
891
- ref: r,
892
- role: o["aria-label"] != null ? "group" : void 0,
1081
+ ref: o,
1082
+ role: r["aria-label"] != null ? "group" : void 0,
893
1083
  className: c,
894
- ...o,
895
- children: s
1084
+ ...r,
1085
+ children: a
896
1086
  }
897
1087
  );
898
1088
  }
899
- const $o = "_trigger_pivae_4", Bo = "_menu_pivae_16", Lo = "_item_pivae_37", Co = "_text_pivae_85", So = "_separator_pivae_93", oe = {
900
- trigger: $o,
901
- menu: Bo,
902
- item: Lo,
903
- text: Co,
904
- separator: So
905
- }, jo = 500;
906
- function To({ popoverRef: e, triggerRef: n, open: i, onEsc: a }) {
907
- const s = L(""), r = L(0), o = x(() => {
908
- const l = e.current;
909
- return l ? Array.from(
910
- l.querySelectorAll('[data-psi-menu-item]:not([aria-disabled="true"])')
1089
+ const lo = "_trigger_pivae_4", uo = "_menu_pivae_16", _o = "_item_pivae_37", ho = "_text_pivae_85", fo = "_separator_pivae_93", de = {
1090
+ trigger: lo,
1091
+ menu: uo,
1092
+ item: _o,
1093
+ text: ho,
1094
+ separator: fo
1095
+ }, go = 500;
1096
+ function po({ popoverRef: e, triggerRef: n, open: i, openAtRef: s, onEsc: a, onTab: o }) {
1097
+ const r = B(""), c = B(0), l = k(() => {
1098
+ const u = e.current;
1099
+ return u ? Array.from(
1100
+ u.querySelectorAll('[data-psi-menu-item]:not([aria-disabled="true"])')
911
1101
  ) : [];
912
- }, [e]), c = x(
913
- (l) => {
914
- if (l) {
915
- for (const u of o()) u.tabIndex = u === l ? 0 : -1;
916
- l.focus();
1102
+ }, [e]), d = k(
1103
+ (u) => {
1104
+ if (u) {
1105
+ for (const f of l()) f.tabIndex = f === u ? 0 : -1;
1106
+ u.focus();
917
1107
  }
918
1108
  },
919
- [o]
920
- ), d = x(() => {
921
- var u;
922
- const l = (u = n.current) == null ? void 0 : u.querySelector("button, a, [tabindex]");
923
- l == null || l.focus();
1109
+ [l]
1110
+ ), _ = k(() => {
1111
+ var f;
1112
+ const u = (f = n.current) == null ? void 0 : f.querySelector("button, a, [tabindex]");
1113
+ u == null || u.focus();
924
1114
  }, [n]);
925
- return C(() => {
1115
+ return z(() => {
926
1116
  if (!i) return;
927
- const l = o();
928
- return c(l[0]), () => {
929
- var u;
930
- (u = e.current) != null && u.contains(document.activeElement) && d();
1117
+ const u = l(), f = (s == null ? void 0 : s.current) === "last";
1118
+ return s && (s.current = "first"), d(f ? u[u.length - 1] : u[0]), () => {
1119
+ var g;
1120
+ (g = e.current) != null && g.contains(document.activeElement) && _();
931
1121
  };
932
- }, [i, e, o, c, d]), x(
933
- (l) => {
934
- if (l.key === "Escape") {
935
- l.preventDefault(), a();
1122
+ }, [i, e, s, l, d, _]), k(
1123
+ (u) => {
1124
+ if (u.key === "Escape") {
1125
+ u.preventDefault(), a();
936
1126
  return;
937
1127
  }
938
- const u = o();
939
- if (u.length === 0) return;
940
- const h = u.indexOf(document.activeElement);
941
- switch (l.key) {
1128
+ if (u.key === "Tab") {
1129
+ o == null || o();
1130
+ return;
1131
+ }
1132
+ const f = l();
1133
+ if (f.length === 0) return;
1134
+ const g = f.indexOf(document.activeElement);
1135
+ switch (u.key) {
942
1136
  case "ArrowDown":
943
- l.preventDefault(), c(u[(h + 1 + u.length) % u.length]);
1137
+ u.preventDefault(), d(f[(g + 1 + f.length) % f.length]);
944
1138
  return;
945
1139
  case "ArrowUp":
946
- l.preventDefault(), c(u[h <= 0 ? u.length - 1 : h - 1]);
1140
+ u.preventDefault(), d(f[g <= 0 ? f.length - 1 : g - 1]);
947
1141
  return;
948
1142
  case "Home":
949
- l.preventDefault(), c(u[0]);
1143
+ u.preventDefault(), d(f[0]);
950
1144
  return;
951
1145
  case "End":
952
- l.preventDefault(), c(u[u.length - 1]);
1146
+ u.preventDefault(), d(f[f.length - 1]);
953
1147
  return;
954
1148
  }
955
- if (l.key.length !== 1 || l.metaKey || l.ctrlKey || l.altKey) return;
956
- const f = Date.now();
957
- s.current = f - r.current > jo ? l.key.toLowerCase() : s.current + l.key.toLowerCase(), r.current = f;
958
- const g = u.find(
959
- (b) => (b.textContent ?? "").trim().toLowerCase().startsWith(s.current)
1149
+ if (u.key.length !== 1 || u.metaKey || u.ctrlKey || u.altKey) return;
1150
+ const m = Date.now();
1151
+ r.current = m - c.current > go ? u.key.toLowerCase() : r.current + u.key.toLowerCase(), c.current = m;
1152
+ const b = f.find(
1153
+ (x) => (x.textContent ?? "").trim().toLowerCase().startsWith(r.current)
960
1154
  );
961
- g && (l.preventDefault(), c(g));
1155
+ b && (u.preventDefault(), d(b));
962
1156
  },
963
- [o, c, a]
1157
+ [l, d, a, o]
964
1158
  );
965
1159
  }
966
- function zo() {
1160
+ function mo() {
967
1161
  return typeof CSS < "u" && CSS.supports("anchor-name", "--x");
968
1162
  }
969
- function Io({ popoverRef: e, triggerRef: n, open: i, placement: a, anchorName: s }) {
970
- C(() => {
971
- const r = n.current, o = e.current;
972
- !r || !o || (r.style.setProperty("anchor-name", s), o.style.setProperty("position-anchor", s));
973
- }, [e, n, s]), C(() => {
974
- if (!i || zo()) return;
975
- const r = n.current, o = e.current;
976
- if (!r || !o) return;
1163
+ function vo({ popoverRef: e, triggerRef: n, open: i, placement: s, anchorName: a }) {
1164
+ z(() => {
1165
+ const o = n.current, r = e.current;
1166
+ !o || !r || (o.style.setProperty("anchor-name", a), r.style.setProperty("position-anchor", a));
1167
+ }, [e, n, a]), z(() => {
1168
+ if (!i || mo()) return;
1169
+ const o = n.current, r = e.current;
1170
+ if (!o || !r) return;
977
1171
  const c = () => {
978
- const d = r.getBoundingClientRect(), l = a.startsWith("bottom"), u = a.endsWith("end"), h = getComputedStyle(r).direction === "rtl", f = u !== h;
979
- o.style.position = "fixed", o.style.top = l ? `${d.bottom}px` : "", o.style.bottom = l ? "" : `${window.innerHeight - d.top}px`, o.style.left = f ? "" : `${d.left}px`, o.style.right = f ? `${window.innerWidth - d.right}px` : "";
1172
+ const l = o.getBoundingClientRect(), d = s.startsWith("bottom"), _ = s.endsWith("end"), u = getComputedStyle(o).direction === "rtl", f = _ !== u;
1173
+ r.style.position = "fixed", r.style.top = d ? `${l.bottom}px` : "", r.style.bottom = d ? "" : `${window.innerHeight - l.top}px`, r.style.left = f ? "" : `${l.left}px`, r.style.right = f ? `${window.innerWidth - l.right}px` : "";
980
1174
  };
981
1175
  return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), () => {
982
1176
  window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c);
983
1177
  };
984
- }, [i, a, e, n]);
1178
+ }, [i, s, e, n]);
985
1179
  }
986
- const Se = Z({ close: () => {
1180
+ const Ee = U({ close: () => {
987
1181
  } });
988
- function Ne(e) {
1182
+ function Le(e) {
989
1183
  return e.hasAttribute("data-open") || e.matches(":popover-open");
990
1184
  }
991
- function zi({
1185
+ function xs({
992
1186
  open: e,
993
1187
  onClose: n,
994
1188
  trigger: i,
995
- placement: a = "bottom-start",
996
- children: s,
997
- className: r,
998
- ref: o,
999
- ...c
1189
+ placement: s = "bottom-start",
1190
+ children: a,
1191
+ className: o,
1192
+ id: r,
1193
+ ref: c,
1194
+ ...l
1000
1195
  }) {
1001
- const d = L(null), l = L(null), u = L(!1), h = `--psi-menu-${R().replace(/:/g, "")}`;
1002
- Io({ popoverRef: d, triggerRef: l, open: e, placement: a, anchorName: h });
1003
- const f = (w) => {
1004
- d.current = w, typeof o == "function" ? o(w) : o && (o.current = w);
1196
+ const d = B(null), _ = B(null), u = B(!1), f = R().replace(/:/g, ""), g = `--psi-menu-${f}`, m = r ?? `psi-menu-${f}`, b = B("first");
1197
+ vo({ popoverRef: d, triggerRef: _, open: e, placement: s, anchorName: g });
1198
+ const x = (p) => {
1199
+ d.current = p, typeof c == "function" ? c(p) : c && (c.current = p);
1005
1200
  };
1006
- C(() => {
1007
- const w = d.current;
1008
- if (!w) return;
1009
- const q = Ne(w);
1010
- e && !q ? w.showPopover() : !e && q && (u.current = !0, w.hidePopover());
1201
+ z(() => {
1202
+ const p = d.current;
1203
+ if (!p) return;
1204
+ const w = Le(p);
1205
+ e && !w ? p.showPopover() : !e && w && (u.current = !0, p.hidePopover());
1011
1206
  }, [e]);
1012
- const g = x(() => {
1013
- const w = d.current;
1014
- if (w) {
1207
+ const j = k(() => {
1208
+ const p = d.current;
1209
+ if (p) {
1015
1210
  if (u.current) {
1016
1211
  u.current = !1;
1017
1212
  return;
1018
1213
  }
1019
- Ne(w) || e && n("outside");
1214
+ Le(p) || e && n("outside");
1020
1215
  }
1021
- }, [n, e]), b = To({
1216
+ }, [n, e]), S = po({
1022
1217
  popoverRef: d,
1023
- triggerRef: l,
1218
+ triggerRef: _,
1024
1219
  open: e,
1025
- onEsc: () => n("esc")
1026
- }), v = x(
1027
- (w) => {
1028
- n(w);
1220
+ openAtRef: b,
1221
+ onEsc: () => n("esc"),
1222
+ onTab: () => n("tab")
1223
+ }), T = (p) => {
1224
+ var C;
1225
+ if (e || p.key !== "ArrowDown" && p.key !== "ArrowUp") return;
1226
+ const w = (C = _.current) == null ? void 0 : C.querySelector("button, a, [tabindex]");
1227
+ w && (p.preventDefault(), b.current = p.key === "ArrowUp" ? "last" : "first", w.click());
1228
+ }, y = k(
1229
+ (p) => {
1230
+ n(p);
1029
1231
  },
1030
1232
  [n]
1031
- ), N = Y(i);
1032
- C(() => {
1033
- N || console.warn(
1233
+ ), H = te(i);
1234
+ z(() => {
1235
+ H || console.warn(
1034
1236
  "Psi Menu: `trigger` must be a single React element that forwards props to a focusable node. Menu clones it to attach aria-haspopup and aria-expanded; a string, fragment or array cannot carry them, so the menu renders without its trigger ARIA."
1035
1237
  );
1036
- }, [N]);
1037
- const y = N ? de(i, { "aria-haspopup": "menu", "aria-expanded": e }) : i;
1038
- return /* @__PURE__ */ _(se, { children: [
1039
- /* @__PURE__ */ t("div", { ref: l, className: oe.trigger, "data-psi-menu-trigger": !0, children: y }),
1238
+ }, [H]);
1239
+ const v = H ? pe(i, { "aria-haspopup": "menu", "aria-expanded": e, "aria-controls": m }) : i;
1240
+ return /* @__PURE__ */ h(fe, { children: [
1241
+ /* @__PURE__ */ t("div", { ref: _, className: de.trigger, "data-psi-menu-trigger": !0, onKeyDown: T, children: v }),
1040
1242
  /* @__PURE__ */ t(
1041
1243
  "div",
1042
1244
  {
1043
- ...c,
1044
- ref: f,
1245
+ ...l,
1246
+ id: m,
1247
+ ref: x,
1045
1248
  popover: "auto",
1046
1249
  role: "menu",
1047
1250
  "data-psi-menu": !0,
1048
- "data-placement": a,
1049
- className: [oe.menu, r].filter(Boolean).join(" "),
1050
- onToggle: g,
1051
- onKeyDown: b,
1052
- children: /* @__PURE__ */ t(Se.Provider, { value: { close: v }, children: s })
1251
+ "data-placement": s,
1252
+ className: [de.menu, o].filter(Boolean).join(" "),
1253
+ onToggle: j,
1254
+ onKeyDown: S,
1255
+ children: /* @__PURE__ */ t(Ee.Provider, { value: { close: y }, children: a })
1053
1256
  }
1054
1257
  )
1055
1258
  ] });
1056
1259
  }
1057
- function Ii({ children: e, onSelect: n, variant: i = "neutral", disabled: a = !1 }) {
1058
- const { close: s } = j(Se);
1260
+ function ks({ children: e, onSelect: n, variant: i = "neutral", disabled: s = !1 }) {
1261
+ const { close: a } = $(Ee);
1059
1262
  return /* @__PURE__ */ t(
1060
1263
  "button",
1061
1264
  {
@@ -1063,868 +1266,870 @@ function Ii({ children: e, onSelect: n, variant: i = "neutral", disabled: a = !1
1063
1266
  role: "menuitem",
1064
1267
  "data-psi-menu-item": !0,
1065
1268
  "data-variant": i,
1066
- "aria-disabled": a || void 0,
1269
+ "aria-disabled": s || void 0,
1067
1270
  tabIndex: -1,
1068
- className: oe.item,
1271
+ className: de.item,
1069
1272
  onClick: () => {
1070
- a || (n(), s("item-select"));
1273
+ s || (n(), a("item-select"));
1071
1274
  },
1072
1275
  children: e
1073
1276
  }
1074
1277
  );
1075
1278
  }
1076
- function Ei() {
1077
- return /* @__PURE__ */ t("div", { role: "separator", "data-psi-menu-separator": !0, className: oe.separator });
1078
- }
1079
- function qi({ children: e, id: n }) {
1080
- return /* @__PURE__ */ t("div", { id: n, "data-psi-menu-text": !0, className: oe.text, children: e });
1081
- }
1082
- const Eo = "_table_1maek_3", qo = "_caption_1maek_19", Mo = "_captionDetail_1maek_27", Ao = "_headerCell_1maek_38", Wo = "_cell_1maek_44", Do = "_rowHeader_1maek_51", Po = "_sortButton_1maek_62", Ro = "_sortIndicator_1maek_79", Ho = "_selectCell_1maek_123", Vo = "_body_1maek_130", Oo = "_row_1maek_51", Fo = "_sticky_1maek_155", $ = {
1083
- table: Eo,
1084
- caption: qo,
1085
- captionDetail: Mo,
1086
- headerCell: Ao,
1087
- cell: Wo,
1088
- rowHeader: Do,
1089
- sortButton: Po,
1090
- sortIndicator: Ro,
1091
- selectCell: Ho,
1092
- body: Vo,
1093
- row: Oo,
1094
- sticky: Fo
1095
- }, je = /* @__PURE__ */ new Set(), X = Z({
1279
+ function Ns() {
1280
+ return /* @__PURE__ */ t("div", { role: "separator", "data-psi-menu-separator": !0, className: de.separator });
1281
+ }
1282
+ function $s({ children: e, id: n }) {
1283
+ return /* @__PURE__ */ t("div", { id: n, "data-psi-menu-text": !0, className: de.text, children: e });
1284
+ }
1285
+ const bo = "_table_1maek_3", yo = "_caption_1maek_19", wo = "_captionDetail_1maek_27", xo = "_headerCell_1maek_38", ko = "_cell_1maek_44", No = "_rowHeader_1maek_51", $o = "_sortButton_1maek_62", Bo = "_sortIndicator_1maek_79", So = "_selectCell_1maek_123", Co = "_body_1maek_130", Lo = "_row_1maek_51", jo = "_sticky_1maek_155", N = {
1286
+ table: bo,
1287
+ caption: yo,
1288
+ captionDetail: wo,
1289
+ headerCell: xo,
1290
+ cell: ko,
1291
+ rowHeader: No,
1292
+ sortButton: $o,
1293
+ sortIndicator: Bo,
1294
+ selectCell: So,
1295
+ body: Co,
1296
+ row: Lo,
1297
+ sticky: jo
1298
+ }, De = /* @__PURE__ */ new Set(), oe = U({
1096
1299
  size: 40,
1097
1300
  sortable: !1,
1098
1301
  sort: null,
1099
1302
  selectable: !1,
1100
- selected: je
1101
- }), Te = Z([]);
1102
- function Ko({ children: e, className: n, ref: i, ...a }) {
1103
- return /* @__PURE__ */ t("tbody", { ...a, ref: i, className: [$.body, n].filter(Boolean).join(" "), children: e });
1303
+ selected: De
1304
+ }), We = U([]);
1305
+ function To({ children: e, className: n, ref: i, ...s }) {
1306
+ return /* @__PURE__ */ t("tbody", { ...s, ref: i, className: [N.body, n].filter(Boolean).join(" "), children: e });
1104
1307
  }
1105
- function Uo(e) {
1308
+ function Io(e) {
1106
1309
  const n = [];
1107
- let i = !1, a = !1;
1108
- const s = (r) => {
1109
- P.forEach(r, function o(c) {
1110
- if (!Y(c)) return;
1111
- if (c.type === pe) {
1112
- P.forEach(c.props.children, o);
1310
+ let i = !1, s = !1;
1311
+ const a = (o) => {
1312
+ F.forEach(o, function r(c) {
1313
+ if (!te(c)) return;
1314
+ if (c.type === ye) {
1315
+ F.forEach(c.props.children, r);
1113
1316
  return;
1114
1317
  }
1115
- const d = c.props.rowId;
1116
- typeof d == "string" ? n.push(d) : a = !0;
1318
+ const l = c.props.rowId;
1319
+ typeof l == "string" ? n.push(l) : s = !0;
1117
1320
  });
1118
1321
  };
1119
- return P.forEach(e, function r(o) {
1120
- if (Y(o)) {
1121
- if (o.type === pe) {
1122
- P.forEach(o.props.children, r);
1322
+ return F.forEach(e, function o(r) {
1323
+ if (te(r)) {
1324
+ if (r.type === ye) {
1325
+ F.forEach(r.props.children, o);
1123
1326
  return;
1124
1327
  }
1125
- o.type === Ko && (i = !0, s(o.props.children));
1328
+ r.type === To && (i = !0, a(r.props.children));
1126
1329
  }
1127
- }), { ids: n, sawBody: i, hasRowWithoutId: a };
1330
+ }), { ids: n, sawBody: i, hasRowWithoutId: s };
1128
1331
  }
1129
- function Mi({
1332
+ function Bs({
1130
1333
  size: e = 40,
1131
1334
  stickyHeader: n,
1132
1335
  sortable: i = !1,
1133
- sort: a = null,
1134
- onSortChange: s,
1135
- selectable: r = !1,
1136
- selected: o = je,
1336
+ sort: s = null,
1337
+ onSortChange: a,
1338
+ selectable: o = !1,
1339
+ selected: r = De,
1137
1340
  onSelectionChange: c,
1138
- children: d,
1139
- className: l,
1140
- ref: u,
1141
- ...h
1341
+ children: l,
1342
+ className: d,
1343
+ ref: _,
1344
+ ...u
1142
1345
  }) {
1143
- const f = [$.table, n && $.sticky, l].filter(Boolean).join(" "), { ids: g, sawBody: b, hasRowWithoutId: v } = ce(() => Uo(d), [d]);
1144
- return process.env.NODE_ENV !== "production" && (i && !s && console.warn("Psi Table: `sortable` is set without `onSortChange`; sorting will not respond."), r && !c && console.warn("Psi Table: `selectable` is set without `onSelectionChange`; selection will not respond."), r && !b && console.warn("Psi Table: `selectable` is set but no `TableBody` is visible to `Table`. Wrapping `TableBody` in a component other than a Fragment hides its rows, and select-all will clear the selection instead of filling it."), r && v && console.warn("Psi Table: `selectable` is set but a row in `TableBody` has no `rowId`. That row will render without a selection checkbox and select-all will not include it.")), /* @__PURE__ */ t(X.Provider, { value: { size: e, sortable: i, sort: a, onSortChange: s, selectable: r, selected: o, onSelectionChange: c }, children: /* @__PURE__ */ t(Te.Provider, { value: g, children: /* @__PURE__ */ t("table", { ...h, ref: u, className: f, "data-size": e, children: d }) }) });
1346
+ const f = [N.table, n && N.sticky, d].filter(Boolean).join(" "), { ids: g, sawBody: m, hasRowWithoutId: b } = ge(() => Io(l), [l]);
1347
+ return process.env.NODE_ENV !== "production" && (i && !a && console.warn("Psi Table: `sortable` is set without `onSortChange`; sorting will not respond."), o && !c && console.warn("Psi Table: `selectable` is set without `onSelectionChange`; selection will not respond."), o && !m && console.warn("Psi Table: `selectable` is set but no `TableBody` is visible to `Table`. Wrapping `TableBody` in a component other than a Fragment hides its rows, and select-all will clear the selection instead of filling it."), o && b && console.warn("Psi Table: `selectable` is set but a row in `TableBody` has no `rowId`. That row will render without a selection checkbox and select-all will not include it.")), /* @__PURE__ */ t(oe.Provider, { value: { size: e, sortable: i, sort: s, onSortChange: a, selectable: o, selected: r, onSelectionChange: c }, children: /* @__PURE__ */ t(We.Provider, { value: g, children: /* @__PURE__ */ t("table", { ...u, ref: _, className: f, "data-size": e, children: l }) }) });
1145
1348
  }
1146
- function Go({ rowId: e, label: n }) {
1147
- const { selected: i, onSelectionChange: a } = j(X), s = () => {
1148
- const r = new Set(i);
1149
- r.has(e) ? r.delete(e) : r.add(e), a == null || a(r);
1349
+ function zo({ rowId: e, label: n }) {
1350
+ const { selected: i, onSelectionChange: s } = $(oe), a = () => {
1351
+ const o = new Set(i);
1352
+ o.has(e) ? o.delete(e) : o.add(e), s == null || s(o);
1150
1353
  };
1151
- return /* @__PURE__ */ t("td", { className: `${$.cell} ${$.selectCell}`, children: /* @__PURE__ */ t(Ce, { "aria-label": n, checked: i.has(e), onChange: s }) });
1152
- }
1153
- function Yo() {
1154
- const { selected: e, onSelectionChange: n } = j(X), i = j(Te), a = L(null), s = i.length > 0 && i.every((c) => e.has(c)), r = i.some((c) => e.has(c));
1155
- C(() => {
1156
- a.current && (a.current.indeterminate = r && !s);
1157
- }, [r, s]);
1158
- const o = () => {
1159
- const c = new Set(e);
1160
- s ? i.forEach((d) => c.delete(d)) : i.forEach((d) => c.add(d)), n == null || n(c);
1354
+ return /* @__PURE__ */ t("td", { className: `${N.cell} ${N.selectCell}`, children: /* @__PURE__ */ t(qe, { "aria-label": n, checked: i.has(e), onChange: a }) });
1355
+ }
1356
+ function qo() {
1357
+ const { selected: e, onSelectionChange: n } = $(oe), i = $(We), s = i.length > 0 && i.every((r) => e.has(r)), a = i.some((r) => e.has(r)), o = () => {
1358
+ const r = new Set(e);
1359
+ s ? i.forEach((c) => r.delete(c)) : i.forEach((c) => r.add(c)), n == null || n(r);
1161
1360
  };
1162
- return /* @__PURE__ */ t("th", { scope: "col", className: `${$.headerCell} ${$.selectCell}`, children: /* @__PURE__ */ t(Ce, { ref: a, "aria-label": "Select all rows", checked: s, onChange: o }) });
1163
- }
1164
- function Ai({ children: e, className: n, ref: i, ...a }) {
1165
- const { selectable: s } = j(X);
1166
- let r = !1;
1167
- const o = s ? P.map(e, (c) => {
1168
- if (r || !Y(c)) return c;
1169
- r = !0;
1170
- const d = c;
1171
- return de(
1172
- d,
1361
+ return /* @__PURE__ */ t("th", { scope: "col", className: `${N.headerCell} ${N.selectCell}`, children: /* @__PURE__ */ t(qe, { "aria-label": "Select all rows", checked: s, indeterminate: a && !s, onChange: o }) });
1362
+ }
1363
+ function Ss({ children: e, className: n, ref: i, ...s }) {
1364
+ const { selectable: a } = $(oe);
1365
+ let o = !1;
1366
+ const r = a ? F.map(e, (c) => {
1367
+ if (o || !te(c)) return c;
1368
+ o = !0;
1369
+ const l = c;
1370
+ return pe(
1371
+ l,
1173
1372
  void 0,
1174
- /* @__PURE__ */ _(se, { children: [
1175
- /* @__PURE__ */ t(Yo, {}),
1176
- d.props.children
1373
+ /* @__PURE__ */ h(fe, { children: [
1374
+ /* @__PURE__ */ t(qo, {}),
1375
+ l.props.children
1177
1376
  ] })
1178
1377
  );
1179
1378
  }) : e;
1180
- return /* @__PURE__ */ t("thead", { ...a, ref: i, className: [$.head, n].filter(Boolean).join(" "), children: o });
1379
+ return /* @__PURE__ */ t("thead", { ...s, ref: i, className: [N.head, n].filter(Boolean).join(" "), children: r });
1181
1380
  }
1182
- function Wi({ rowId: e, selectLabel: n, children: i, className: a, ref: s, ...r }) {
1183
- const { selectable: o, selected: c } = j(X), d = e !== void 0 && c.has(e);
1184
- return /* @__PURE__ */ _(
1381
+ function Cs({ rowId: e, selectLabel: n, children: i, className: s, ref: a, ...o }) {
1382
+ const { selectable: r, selected: c } = $(oe), l = e !== void 0 && c.has(e);
1383
+ return /* @__PURE__ */ h(
1185
1384
  "tr",
1186
1385
  {
1187
- ...r,
1188
- ref: s,
1189
- className: [$.row, a].filter(Boolean).join(" "),
1386
+ ...o,
1387
+ ref: a,
1388
+ className: [N.row, s].filter(Boolean).join(" "),
1190
1389
  "data-row-id": e,
1191
- "data-selected": d || void 0,
1390
+ "data-selected": l || void 0,
1192
1391
  children: [
1193
- o && e !== void 0 && /* @__PURE__ */ t(Go, { rowId: e, label: n ?? `Select row ${e}` }),
1392
+ r && e !== void 0 && /* @__PURE__ */ t(zo, { rowId: e, label: n ?? `Select row ${e}` }),
1194
1393
  i
1195
1394
  ]
1196
1395
  }
1197
1396
  );
1198
1397
  }
1199
- function Di({ sortKey: e, numeric: n, children: i, className: a, ref: s, ...r }) {
1200
- const { sortable: o, sort: c, onSortChange: d } = j(X), l = o && e !== void 0, u = l && (c == null ? void 0 : c.key) === e, h = l ? u ? c.direction === "asc" ? "ascending" : "descending" : "none" : void 0, f = () => {
1398
+ function Ls({ sortKey: e, numeric: n, children: i, className: s, ref: a, ...o }) {
1399
+ const { sortable: r, sort: c, onSortChange: l } = $(oe), d = r && e !== void 0, _ = d && (c == null ? void 0 : c.key) === e, u = d ? _ ? c.direction === "asc" ? "ascending" : "descending" : "none" : void 0, f = () => {
1201
1400
  if (!e) return;
1202
- const g = u && c.direction === "asc" ? "desc" : "asc";
1203
- d == null || d({ key: e, direction: g });
1401
+ const g = _ && c.direction === "asc" ? "desc" : "asc";
1402
+ l == null || l({ key: e, direction: g });
1204
1403
  };
1205
1404
  return /* @__PURE__ */ t(
1206
1405
  "th",
1207
1406
  {
1208
- ...r,
1209
- ref: s,
1407
+ ...o,
1408
+ ref: a,
1210
1409
  scope: "col",
1211
- className: [$.headerCell, a].filter(Boolean).join(" "),
1410
+ className: [N.headerCell, s].filter(Boolean).join(" "),
1212
1411
  "data-numeric": n || void 0,
1213
- "aria-sort": h,
1214
- children: l ? /* @__PURE__ */ _("button", { type: "button", className: $.sortButton, onClick: f, children: [
1412
+ "aria-sort": u,
1413
+ children: d ? /* @__PURE__ */ h("button", { type: "button", className: N.sortButton, onClick: f, children: [
1215
1414
  i,
1216
- /* @__PURE__ */ t("span", { className: $.sortIndicator, "aria-hidden": "true", children: u ? c.direction === "asc" ? "↑" : "↓" : "" })
1415
+ /* @__PURE__ */ t("span", { className: N.sortIndicator, "aria-hidden": "true", children: _ ? c.direction === "asc" ? "↑" : "↓" : "" })
1217
1416
  ] }) : i
1218
1417
  }
1219
1418
  );
1220
1419
  }
1221
- function Pi({ numeric: e, colSpan: n, rowHeader: i, children: a, className: s, ref: r, ...o }) {
1222
- const c = [$.cell, i && $.rowHeader, s].filter(Boolean).join(" ");
1223
- return i ? /* @__PURE__ */ t("th", { ...o, ref: r, scope: "row", colSpan: n, className: c, "data-numeric": e || void 0, children: a }) : /* @__PURE__ */ t("td", { ...o, ref: r, colSpan: n, className: c, "data-numeric": e || void 0, children: a });
1420
+ function js({ numeric: e, colSpan: n, rowHeader: i, children: s, className: a, ref: o, ...r }) {
1421
+ const c = [N.cell, i && N.rowHeader, a].filter(Boolean).join(" ");
1422
+ return i ? /* @__PURE__ */ t("th", { ...r, ref: o, scope: "row", colSpan: n, className: c, "data-numeric": e || void 0, children: s }) : /* @__PURE__ */ t("td", { ...r, ref: o, colSpan: n, className: c, "data-numeric": e || void 0, children: s });
1224
1423
  }
1225
- function Ri({ children: e, detail: n, className: i, ref: a, ...s }) {
1226
- return /* @__PURE__ */ _("caption", { ...s, ref: a, className: [$.caption, i].filter(Boolean).join(" "), children: [
1424
+ function Ts({ children: e, detail: n, className: i, ref: s, ...a }) {
1425
+ return /* @__PURE__ */ h("caption", { ...a, ref: s, className: [N.caption, i].filter(Boolean).join(" "), children: [
1227
1426
  e,
1228
- n != null && /* @__PURE__ */ t("span", { className: $.captionDetail, children: n })
1427
+ n != null && /* @__PURE__ */ t("span", { className: N.captionDetail, children: n })
1229
1428
  ] });
1230
1429
  }
1231
- const Zo = "_nav_166vs_6", Xo = "_ellipsis_166vs_12", $e = {
1232
- nav: Zo,
1233
- ellipsis: Xo
1430
+ const Mo = "_nav_166vs_6", Eo = "_ellipsis_166vs_12", je = {
1431
+ nav: Mo,
1432
+ ellipsis: Eo
1234
1433
  };
1235
- function ne(e, n) {
1236
- return Array.from({ length: n - e + 1 }, (i, a) => e + a);
1237
- }
1238
- function Jo(e, n, i) {
1239
- const a = Math.max(0, i), s = a * 2 + 1, r = s + 4;
1240
- if (n <= r)
1241
- return ne(1, n);
1242
- const o = Math.max(e - a, 1), c = Math.min(e + a, n), d = o > 3, l = c < n - 2;
1243
- if (!d && l) {
1244
- const u = Math.max(c, s);
1245
- return [...ne(1, u), "ellipsis", n];
1434
+ function ae(e, n) {
1435
+ return Array.from({ length: n - e + 1 }, (i, s) => e + s);
1436
+ }
1437
+ function Do(e, n, i) {
1438
+ const s = Math.max(0, i), a = s * 2 + 1, o = a + 4;
1439
+ if (n <= o)
1440
+ return ae(1, n);
1441
+ const r = Math.max(e - s, 1), c = Math.min(e + s, n), l = r > 3, d = c < n - 2;
1442
+ if (!l && d) {
1443
+ const _ = Math.max(c, a);
1444
+ return [...ae(1, _), "ellipsis", n];
1246
1445
  }
1247
- if (d && !l) {
1248
- const u = Math.min(o, n - s + 1);
1249
- return [1, "ellipsis", ...ne(u, n)];
1446
+ if (l && !d) {
1447
+ const _ = Math.min(r, n - a + 1);
1448
+ return [1, "ellipsis", ...ae(_, n)];
1250
1449
  }
1251
- return d && l ? [1, "ellipsis", ...ne(o, c), "ellipsis", n] : ne(1, n);
1450
+ return l && d ? [1, "ellipsis", ...ae(r, c), "ellipsis", n] : ae(1, n);
1252
1451
  }
1253
- function Hi({
1452
+ function Is({
1254
1453
  page: e,
1255
1454
  pageCount: n,
1256
1455
  onPageChange: i,
1257
- siblingCount: a = 1,
1258
- "aria-label": s = "Pagination",
1259
- className: r
1456
+ siblingCount: s = 1,
1457
+ "aria-label": a = "Pagination",
1458
+ className: o
1260
1459
  }) {
1261
- const o = n >= 1, c = Number.isFinite(e) ? e : 1, d = o ? Math.min(Math.max(c, 1), n) : 0;
1262
- process.env.NODE_ENV !== "production" && (!o || e !== d) && console.warn(
1263
- `Psi Pagination: \`page\` ${e} is out of range for \`pageCount\` ${n}; rendering page ${o ? d : "none"}. Clamp \`page\` when \`pageCount\` shrinks — e.g. after filtering.`
1460
+ const r = n >= 1, c = Number.isFinite(e) ? e : 1, l = r ? Math.min(Math.max(c, 1), n) : 0;
1461
+ process.env.NODE_ENV !== "production" && (!r || e !== l) && console.warn(
1462
+ `Psi Pagination: \`page\` ${e} is out of range for \`pageCount\` ${n}; rendering page ${r ? l : "none"}. Clamp \`page\` when \`pageCount\` shrinks — e.g. after filtering.`
1264
1463
  );
1265
- const l = o ? Jo(d, n, a) : [];
1266
- return /* @__PURE__ */ _("nav", { "aria-label": s, className: [$e.nav, r].filter(Boolean).join(" "), children: [
1464
+ const d = r ? Do(l, n, s) : [];
1465
+ return /* @__PURE__ */ h("nav", { "aria-label": a, className: [je.nav, o].filter(Boolean).join(" "), children: [
1267
1466
  /* @__PURE__ */ t(
1268
- te,
1467
+ le,
1269
1468
  {
1270
1469
  "aria-label": "Previous page",
1271
1470
  size: 32,
1272
1471
  variant: "ghost",
1273
- disabled: !o || d <= 1,
1274
- onClick: () => i(d - 1),
1472
+ disabled: !r || l <= 1,
1473
+ onClick: () => i(l - 1),
1275
1474
  children: /* @__PURE__ */ t("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", width: "16", height: "16", children: /* @__PURE__ */ t("path", { d: "M10 3 5 8l5 5", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }) })
1276
1475
  }
1277
1476
  ),
1278
- l.map(
1279
- (u, h) => u === "ellipsis" ? /* @__PURE__ */ t("span", { className: $e.ellipsis, "aria-hidden": "true", children: "…" }, `e${h}`) : /* @__PURE__ */ t(
1280
- le,
1477
+ d.map(
1478
+ (_, u) => _ === "ellipsis" ? /* @__PURE__ */ t("span", { className: je.ellipsis, "aria-hidden": "true", children: "…" }, `e${u}`) : /* @__PURE__ */ t(
1479
+ ce,
1281
1480
  {
1282
1481
  size: 32,
1283
- variant: u === d ? "accent-subtle" : "ghost",
1284
- "aria-current": u === d ? "page" : void 0,
1285
- onClick: () => i(u),
1286
- children: String(u)
1482
+ variant: _ === l ? "accent-subtle" : "ghost",
1483
+ "aria-current": _ === l ? "page" : void 0,
1484
+ onClick: () => i(_),
1485
+ children: String(_)
1287
1486
  },
1288
- u
1487
+ _
1289
1488
  )
1290
1489
  ),
1291
1490
  /* @__PURE__ */ t(
1292
- te,
1491
+ le,
1293
1492
  {
1294
1493
  "aria-label": "Next page",
1295
1494
  size: 32,
1296
1495
  variant: "ghost",
1297
- disabled: !o || d >= n,
1298
- onClick: () => i(d + 1),
1496
+ disabled: !r || l >= n,
1497
+ onClick: () => i(l + 1),
1299
1498
  children: /* @__PURE__ */ t("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", width: "16", height: "16", children: /* @__PURE__ */ t("path", { d: "m6 3 5 5-5 5", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }) })
1300
1499
  }
1301
1500
  )
1302
1501
  ] });
1303
1502
  }
1304
- const Qo = "_nav_jbhk1_5", er = {
1305
- nav: Qo
1503
+ const Wo = "_nav_jbhk1_5", Po = {
1504
+ nav: Wo
1306
1505
  };
1307
- function Vi({
1506
+ function zs({
1308
1507
  hasPrevious: e,
1309
1508
  hasNext: n,
1310
1509
  onPrevious: i,
1311
- onNext: a,
1312
- previousLabel: s = "Previous",
1313
- nextLabel: r = "Next",
1314
- size: o = 32,
1510
+ onNext: s,
1511
+ previousLabel: a = "Previous",
1512
+ nextLabel: o = "Next",
1513
+ size: r = 32,
1315
1514
  "aria-label": c = "Pagination",
1316
- className: d
1515
+ className: l
1317
1516
  }) {
1318
- return /* @__PURE__ */ _("nav", { "aria-label": c, className: [er.nav, d].filter(Boolean).join(" "), children: [
1319
- /* @__PURE__ */ _(le, { variant: "ghost", size: o, disabled: !e, onClick: i, children: [
1320
- /* @__PURE__ */ t(it, { size: 16, "aria-hidden": "true" }),
1321
- /* @__PURE__ */ t("span", { children: s })
1517
+ return /* @__PURE__ */ h("nav", { "aria-label": c, className: [Po.nav, l].filter(Boolean).join(" "), children: [
1518
+ /* @__PURE__ */ h(ce, { variant: "ghost", size: r, disabled: !e, onClick: i, children: [
1519
+ /* @__PURE__ */ t(dt, { size: 16, "aria-hidden": "true" }),
1520
+ /* @__PURE__ */ t("span", { children: a })
1322
1521
  ] }),
1323
- /* @__PURE__ */ _(le, { variant: "ghost", size: o, disabled: !n, onClick: a, children: [
1324
- /* @__PURE__ */ t("span", { children: r }),
1325
- /* @__PURE__ */ t(rt, { size: 16, "aria-hidden": "true" })
1522
+ /* @__PURE__ */ h(ce, { variant: "ghost", size: r, disabled: !n, onClick: s, children: [
1523
+ /* @__PURE__ */ t("span", { children: o }),
1524
+ /* @__PURE__ */ t(lt, { size: 16, "aria-hidden": "true" })
1326
1525
  ] })
1327
1526
  ] });
1328
1527
  }
1329
- const be = {
1330
- neutral: at,
1331
- success: ot,
1332
- warning: ct,
1333
- danger: lt
1334
- }, nr = {
1528
+ const ke = {
1529
+ neutral: _t,
1530
+ success: ct,
1531
+ warning: ht,
1532
+ danger: ft
1533
+ }, Ao = {
1335
1534
  neutral: null,
1336
1535
  success: "Success:",
1337
1536
  warning: "Warning:",
1338
1537
  danger: "Error:"
1339
1538
  };
1340
- function ve(e, n) {
1341
- return n === void 0 ? nr[e] : n;
1342
- }
1343
- const tr = "_toast_1gxg8_10", or = "_icon_1gxg8_39", rr = "_iconNeutral_1gxg8_44", ir = "_iconSuccess_1gxg8_45", sr = "_iconWarning_1gxg8_46", ar = "_iconDanger_1gxg8_47", cr = "_body_1gxg8_51", lr = "_action_1gxg8_55", dr = "_region_1gxg8_61", ur = "_live_1gxg8_91", I = {
1344
- toast: tr,
1345
- icon: or,
1346
- iconNeutral: rr,
1347
- iconSuccess: ir,
1348
- iconWarning: sr,
1349
- iconDanger: ar,
1350
- body: cr,
1351
- action: lr,
1352
- region: dr,
1353
- live: ur
1354
- }, hr = {
1355
- neutral: I.iconNeutral,
1356
- success: I.iconSuccess,
1357
- warning: I.iconWarning,
1358
- danger: I.iconDanger
1539
+ function Ne(e, n) {
1540
+ return n === void 0 ? Ao[e] : n;
1541
+ }
1542
+ const Ro = "_toast_1gxg8_10", Ho = "_icon_1gxg8_39", Vo = "_iconNeutral_1gxg8_44", Oo = "_iconSuccess_1gxg8_45", Ko = "_iconWarning_1gxg8_46", Fo = "_iconDanger_1gxg8_47", Uo = "_body_1gxg8_51", Go = "_action_1gxg8_55", Yo = "_region_1gxg8_61", Zo = "_live_1gxg8_91", M = {
1543
+ toast: Ro,
1544
+ icon: Ho,
1545
+ iconNeutral: Vo,
1546
+ iconSuccess: Oo,
1547
+ iconWarning: Ko,
1548
+ iconDanger: Fo,
1549
+ body: Uo,
1550
+ action: Go,
1551
+ region: Yo,
1552
+ live: Zo
1553
+ }, Xo = {
1554
+ neutral: M.iconNeutral,
1555
+ success: M.iconSuccess,
1556
+ warning: M.iconWarning,
1557
+ danger: M.iconDanger
1359
1558
  };
1360
- function ge({
1559
+ function we({
1361
1560
  variant: e = "neutral",
1362
1561
  children: n,
1363
1562
  action: i,
1364
- onDismiss: a,
1365
- statusLabel: s,
1366
- className: r,
1367
- ref: o
1563
+ onDismiss: s,
1564
+ statusLabel: a,
1565
+ className: o,
1566
+ ref: r
1368
1567
  }) {
1369
- const c = be[e], d = ve(e, s), l = [I.toast, r].filter(Boolean).join(" ");
1370
- return /* @__PURE__ */ _("div", { ref: o, className: l, "data-variant": e, "data-psi-toast": !0, children: [
1371
- /* @__PURE__ */ t("span", { className: [I.icon, hr[e]].join(" "), children: /* @__PURE__ */ t(c, { size: 20, "aria-hidden": "true" }) }),
1372
- /* @__PURE__ */ _("div", { className: I.body, children: [
1373
- d && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: d }),
1568
+ const c = ke[e], l = Ne(e, a), d = [M.toast, o].filter(Boolean).join(" ");
1569
+ return /* @__PURE__ */ h("div", { ref: r, className: d, "data-variant": e, "data-psi-toast": !0, children: [
1570
+ /* @__PURE__ */ t("span", { className: [M.icon, Xo[e]].join(" "), children: /* @__PURE__ */ t(c, { size: 20, "aria-hidden": "true" }) }),
1571
+ /* @__PURE__ */ h("div", { className: M.body, children: [
1572
+ l && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: l }),
1374
1573
  n
1375
1574
  ] }),
1376
- i != null && /* @__PURE__ */ t("div", { className: I.action, children: i }),
1377
- a && /* @__PURE__ */ t(
1378
- te,
1575
+ i != null && /* @__PURE__ */ t("div", { className: M.action, children: i }),
1576
+ s && /* @__PURE__ */ t(
1577
+ le,
1379
1578
  {
1380
1579
  variant: "ghost",
1381
1580
  size: 32,
1382
1581
  "aria-label": "Dismiss notification",
1383
- onClick: a,
1384
- children: /* @__PURE__ */ t(me, { "aria-hidden": "true" })
1582
+ onClick: s,
1583
+ children: /* @__PURE__ */ t(xe, { "aria-hidden": "true" })
1385
1584
  }
1386
1585
  )
1387
1586
  ] });
1388
1587
  }
1389
- function ze({ children: e }) {
1588
+ function Pe({ children: e }) {
1390
1589
  return /* @__PURE__ */ t("div", { className: "psi-sr-only", "data-psi-announcement": !0, children: e });
1391
1590
  }
1392
- const _r = /* @__PURE__ */ new Set(["warning", "danger"]);
1393
- function Be(e) {
1394
- if (!Y(e) || e.type !== ge && e.type !== ze) return !1;
1591
+ const Jo = /* @__PURE__ */ new Set(["warning", "danger"]);
1592
+ function Te(e) {
1593
+ if (!te(e) || e.type !== we && e.type !== Pe) return !1;
1395
1594
  const { politeness: n, variant: i } = e.props;
1396
- return n !== void 0 ? n === "assertive" : e.type === ge && _r.has(i ?? "neutral");
1595
+ return n !== void 0 ? n === "assertive" : e.type === we && Jo.has(i ?? "neutral");
1397
1596
  }
1398
- function fr({
1597
+ function Qo({
1399
1598
  placement: e = "bottom-end",
1400
1599
  "aria-label": n = "Notifications",
1401
1600
  children: i,
1402
- className: a,
1403
- ref: s,
1404
- ...r
1601
+ className: s,
1602
+ ref: a,
1603
+ ...o
1405
1604
  }) {
1406
- const o = L(null), c = (h) => {
1407
- o.current = h, typeof s == "function" ? s(h) : s && (s.current = h);
1605
+ const r = B(null), c = (u) => {
1606
+ r.current = u, typeof a == "function" ? a(u) : a && (a.current = u);
1408
1607
  };
1409
- C(() => {
1608
+ z(() => {
1410
1609
  var f;
1411
- const h = o.current;
1412
- if (h)
1413
- return (f = h.showPopover) == null || f.call(h), () => {
1610
+ const u = r.current;
1611
+ if (u)
1612
+ return (f = u.showPopover) == null || f.call(u), () => {
1414
1613
  var g;
1415
- (g = h.hidePopover) == null || g.call(h);
1614
+ (g = u.hidePopover) == null || g.call(u);
1416
1615
  };
1417
1616
  }, []);
1418
- const d = P.toArray(i), l = d.filter(Be), u = d.filter((h) => !Be(h));
1419
- return /* @__PURE__ */ _(
1617
+ const l = F.toArray(i), d = l.filter(Te), _ = l.filter((u) => !Te(u));
1618
+ return /* @__PURE__ */ h(
1420
1619
  "div",
1421
1620
  {
1422
- ...r,
1621
+ ...o,
1423
1622
  ref: c,
1424
1623
  role: "region",
1425
1624
  popover: "manual",
1426
1625
  "aria-label": n,
1427
1626
  "data-placement": e,
1428
1627
  "data-psi-toast-region": !0,
1429
- className: [I.region, a].filter(Boolean).join(" "),
1628
+ className: [M.region, s].filter(Boolean).join(" "),
1430
1629
  children: [
1431
- /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", "aria-atomic": "false", className: I.live, children: u }),
1432
- /* @__PURE__ */ t("div", { role: "alert", "aria-live": "assertive", "aria-atomic": "false", className: I.live, children: l })
1630
+ /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", "aria-atomic": "false", className: M.live, children: _ }),
1631
+ /* @__PURE__ */ t("div", { role: "alert", "aria-live": "assertive", "aria-atomic": "false", className: M.live, children: d })
1433
1632
  ]
1434
1633
  }
1435
1634
  );
1436
1635
  }
1437
- const Ie = Z(null);
1438
- function Oi() {
1439
- const e = j(Ie);
1636
+ const Ae = U(null);
1637
+ function qs() {
1638
+ const e = $(Ae);
1440
1639
  if (!e)
1441
1640
  throw new Error(
1442
1641
  "Psi useToast: no ToastProvider found. Wrap your app (or the subtree that raises toasts) in <ToastProvider> — it owns the queue, the auto-dismiss timers and the single ToastRegion."
1443
1642
  );
1444
1643
  return e;
1445
1644
  }
1446
- const pr = 1e3;
1447
- function Fi({
1645
+ const ei = 1e3;
1646
+ function Ms({
1448
1647
  limit: e = 3,
1449
1648
  duration: n = 5e3,
1450
1649
  actionDuration: i = 1e4,
1451
- placement: a = "bottom-end",
1452
- children: s,
1453
- ...r
1650
+ placement: s = "bottom-end",
1651
+ children: a,
1652
+ ...o
1454
1653
  }) {
1455
- const [o, c] = ae([]), [d, l] = ae([]), u = L(/* @__PURE__ */ new Map()), h = L(!1), f = L(0), g = R(), b = x((p) => {
1456
- const m = u.current.get(p);
1457
- (m == null ? void 0 : m.handle) !== void 0 && clearTimeout(m.handle), u.current.delete(p), c((k) => k.some((T) => T.id === p) ? k.filter((T) => T.id !== p) : k), l((k) => k.some((T) => T.id === p) ? k.filter((T) => T.id !== p) : k);
1458
- }, []), v = x(
1459
- (p, m) => {
1460
- const k = h.current ? { handle: void 0, remaining: m, startedAt: void 0 } : { handle: setTimeout(() => b(p), m), remaining: m, startedAt: Date.now() };
1461
- u.current.set(p, k);
1654
+ const [r, c] = re([]), [l, d] = re([]), _ = B(/* @__PURE__ */ new Map()), u = B(!1), f = B(0), g = R(), m = k((v) => {
1655
+ const p = _.current.get(v);
1656
+ (p == null ? void 0 : p.handle) !== void 0 && clearTimeout(p.handle), _.current.delete(v), c((w) => w.some((C) => C.id === v) ? w.filter((C) => C.id !== v) : w), d((w) => w.some((C) => C.id === v) ? w.filter((C) => C.id !== v) : w);
1657
+ }, []), b = k(
1658
+ (v, p) => {
1659
+ const w = u.current ? { handle: void 0, remaining: p, startedAt: void 0 } : { handle: setTimeout(() => m(v), p), remaining: p, startedAt: Date.now() };
1660
+ _.current.set(v, w);
1462
1661
  },
1463
- [b]
1464
- ), N = x(
1465
- ({ variant: p = "neutral", message: m, action: k, politeness: T, statusLabel: We }) => {
1466
- const _e = `${g}-${f.current++}`, xe = k != null ? i : n;
1467
- return c((De) => {
1468
- const fe = [
1469
- ...De,
1470
- { id: _e, variant: p, message: m, action: k, politeness: T, statusLabel: We, duration: xe }
1662
+ [m]
1663
+ ), x = k(
1664
+ ({ variant: v = "neutral", message: p, action: w, politeness: C, statusLabel: Oe }) => {
1665
+ const ve = `${g}-${f.current++}`, Be = w != null ? i : n;
1666
+ return c((Ke) => {
1667
+ const be = [
1668
+ ...Ke,
1669
+ { id: ve, variant: v, message: p, action: w, politeness: C, statusLabel: Oe, duration: Be }
1471
1670
  ];
1472
- for (; fe.length > e; ) {
1473
- const we = fe.shift(), re = u.current.get(we.id);
1474
- (re == null ? void 0 : re.handle) !== void 0 && clearTimeout(re.handle), u.current.delete(we.id);
1671
+ for (; be.length > e; ) {
1672
+ const Se = be.shift(), ue = _.current.get(Se.id);
1673
+ (ue == null ? void 0 : ue.handle) !== void 0 && clearTimeout(ue.handle), _.current.delete(Se.id);
1475
1674
  }
1476
- return fe;
1477
- }), v(_e, xe), _e;
1675
+ return be;
1676
+ }), b(ve, Be), ve;
1478
1677
  },
1479
- [i, v, n, g, e]
1480
- ), y = x(
1481
- (p, { politeness: m = "polite" } = {}) => {
1482
- const k = `${g}-${f.current++}`;
1483
- return l((T) => [...T, { id: k, message: p, politeness: m }]), v(k, pr), k;
1678
+ [i, b, n, g, e]
1679
+ ), j = k(
1680
+ (v, { politeness: p = "polite" } = {}) => {
1681
+ const w = `${g}-${f.current++}`;
1682
+ return d((C) => [...C, { id: w, message: v, politeness: p }]), b(w, ei), w;
1484
1683
  },
1485
- [v, g]
1486
- ), w = x(() => {
1487
- for (const p of u.current.values())
1488
- p.handle !== void 0 && clearTimeout(p.handle);
1489
- u.current.clear(), c([]), l([]);
1490
- }, []), q = x(() => {
1491
- if (!h.current) {
1492
- h.current = !0;
1493
- for (const [p, m] of u.current) {
1494
- if (m.handle === void 0) continue;
1495
- clearTimeout(m.handle);
1496
- const k = m.startedAt === void 0 ? 0 : Date.now() - m.startedAt;
1497
- u.current.set(p, {
1684
+ [b, g]
1685
+ ), S = k(() => {
1686
+ for (const v of _.current.values())
1687
+ v.handle !== void 0 && clearTimeout(v.handle);
1688
+ _.current.clear(), c([]), d([]);
1689
+ }, []), T = k(() => {
1690
+ if (!u.current) {
1691
+ u.current = !0;
1692
+ for (const [v, p] of _.current) {
1693
+ if (p.handle === void 0) continue;
1694
+ clearTimeout(p.handle);
1695
+ const w = p.startedAt === void 0 ? 0 : Date.now() - p.startedAt;
1696
+ _.current.set(v, {
1498
1697
  handle: void 0,
1499
- remaining: Math.max(0, m.remaining - k),
1698
+ remaining: Math.max(0, p.remaining - w),
1500
1699
  startedAt: void 0
1501
1700
  });
1502
1701
  }
1503
1702
  }
1504
- }, []), J = x(() => {
1505
- if (h.current) {
1506
- h.current = !1;
1507
- for (const [p, m] of u.current)
1508
- m.handle === void 0 && u.current.set(p, {
1509
- handle: setTimeout(() => b(p), m.remaining),
1510
- remaining: m.remaining,
1703
+ }, []), y = k(() => {
1704
+ if (u.current) {
1705
+ u.current = !1;
1706
+ for (const [v, p] of _.current)
1707
+ p.handle === void 0 && _.current.set(v, {
1708
+ handle: setTimeout(() => m(v), p.remaining),
1709
+ remaining: p.remaining,
1511
1710
  startedAt: Date.now()
1512
1711
  });
1513
1712
  }
1514
- }, [b]);
1515
- C(() => {
1516
- const p = u.current;
1713
+ }, [m]);
1714
+ z(() => {
1715
+ const v = _.current;
1517
1716
  return () => {
1518
- for (const m of p.values())
1519
- m.handle !== void 0 && clearTimeout(m.handle);
1520
- p.clear();
1717
+ for (const p of v.values())
1718
+ p.handle !== void 0 && clearTimeout(p.handle);
1719
+ v.clear();
1521
1720
  };
1522
1721
  }, []);
1523
- const Ae = ce(
1524
- () => ({ show: N, announce: y, dismiss: b, clear: w }),
1525
- [N, y, b, w]
1722
+ const H = ge(
1723
+ () => ({ show: x, announce: j, dismiss: m, clear: S }),
1724
+ [x, j, m, S]
1526
1725
  );
1527
- return /* @__PURE__ */ _(Ie.Provider, { value: Ae, children: [
1528
- s,
1726
+ return /* @__PURE__ */ h(Ae.Provider, { value: H, children: [
1727
+ a,
1529
1728
  /* @__PURE__ */ t(
1530
1729
  "div",
1531
1730
  {
1532
- onPointerEnter: q,
1533
- onPointerLeave: J,
1534
- onFocusCapture: q,
1535
- onBlurCapture: J,
1536
- children: /* @__PURE__ */ _(fr, { ...r, placement: a, children: [
1537
- o.map((p) => /* @__PURE__ */ t(
1538
- ge,
1731
+ onPointerEnter: T,
1732
+ onPointerLeave: y,
1733
+ onFocusCapture: T,
1734
+ onBlurCapture: y,
1735
+ children: /* @__PURE__ */ h(Qo, { ...o, placement: s, children: [
1736
+ r.map((v) => /* @__PURE__ */ t(
1737
+ we,
1539
1738
  {
1540
- variant: p.variant,
1541
- action: p.action,
1542
- politeness: p.politeness,
1543
- statusLabel: p.statusLabel,
1544
- onDismiss: () => b(p.id),
1545
- children: p.message
1739
+ variant: v.variant,
1740
+ action: v.action,
1741
+ politeness: v.politeness,
1742
+ statusLabel: v.statusLabel,
1743
+ onDismiss: () => m(v.id),
1744
+ children: v.message
1546
1745
  },
1547
- p.id
1746
+ v.id
1548
1747
  )),
1549
- d.map((p) => /* @__PURE__ */ t(ze, { politeness: p.politeness, children: p.message }, p.id))
1748
+ l.map((v) => /* @__PURE__ */ t(Pe, { politeness: v.politeness, children: v.message }, v.id))
1550
1749
  ] })
1551
1750
  }
1552
1751
  )
1553
1752
  ] });
1554
1753
  }
1555
- const gr = "_banner_15y1f_7", mr = "_icon_15y1f_26", br = "_iconNeutral_15y1f_31", vr = "_iconSuccess_15y1f_32", yr = "_iconWarning_15y1f_33", xr = "_iconDanger_15y1f_34", wr = "_body_15y1f_36", kr = "_title_15y1f_50", Nr = "_action_15y1f_55", M = {
1556
- banner: gr,
1557
- icon: mr,
1558
- iconNeutral: br,
1559
- iconSuccess: vr,
1560
- iconWarning: yr,
1561
- iconDanger: xr,
1562
- body: wr,
1563
- title: kr,
1564
- action: Nr
1565
- }, $r = {
1566
- neutral: M.iconNeutral,
1567
- success: M.iconSuccess,
1568
- warning: M.iconWarning,
1569
- danger: M.iconDanger
1754
+ const ni = "_banner_15y1f_7", ti = "_icon_15y1f_26", ri = "_iconNeutral_15y1f_31", oi = "_iconSuccess_15y1f_32", ii = "_iconWarning_15y1f_33", si = "_iconDanger_15y1f_34", ai = "_body_15y1f_36", ci = "_title_15y1f_50", li = "_action_15y1f_55", P = {
1755
+ banner: ni,
1756
+ icon: ti,
1757
+ iconNeutral: ri,
1758
+ iconSuccess: oi,
1759
+ iconWarning: ii,
1760
+ iconDanger: si,
1761
+ body: ai,
1762
+ title: ci,
1763
+ action: li
1764
+ }, di = {
1765
+ neutral: P.iconNeutral,
1766
+ success: P.iconSuccess,
1767
+ warning: P.iconWarning,
1768
+ danger: P.iconDanger
1570
1769
  };
1571
- function Ki({
1770
+ function Es({
1572
1771
  variant: e = "neutral",
1573
1772
  title: n,
1574
1773
  children: i,
1575
- action: a,
1576
- onDismiss: s,
1577
- statusLabel: r,
1578
- className: o,
1774
+ action: s,
1775
+ onDismiss: a,
1776
+ statusLabel: o,
1777
+ className: r,
1579
1778
  ref: c,
1580
- ...d
1779
+ ...l
1581
1780
  }) {
1582
- const l = be[e], u = ve(e, r), h = [M.banner, o].filter(Boolean).join(" ");
1583
- return /* @__PURE__ */ _("div", { ...d, ref: c, className: h, "data-variant": e, "data-psi-banner": !0, children: [
1584
- /* @__PURE__ */ t("span", { className: [M.icon, $r[e]].join(" "), children: /* @__PURE__ */ t(l, { size: 20, "aria-hidden": "true" }) }),
1585
- /* @__PURE__ */ _("div", { className: M.body, children: [
1586
- u && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: u }),
1587
- n != null && /* @__PURE__ */ t("strong", { className: M.title, children: n }),
1781
+ const d = ke[e], _ = Ne(e, o), u = [P.banner, r].filter(Boolean).join(" ");
1782
+ return /* @__PURE__ */ h("div", { ...l, ref: c, className: u, "data-variant": e, "data-psi-banner": !0, children: [
1783
+ /* @__PURE__ */ t("span", { className: [P.icon, di[e]].join(" "), children: /* @__PURE__ */ t(d, { size: 20, "aria-hidden": "true" }) }),
1784
+ /* @__PURE__ */ h("div", { className: P.body, children: [
1785
+ _ && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: _ }),
1786
+ n != null && /* @__PURE__ */ t("strong", { className: P.title, children: n }),
1588
1787
  i
1589
1788
  ] }),
1590
- a != null && /* @__PURE__ */ t("div", { className: M.action, children: a }),
1591
- s && /* @__PURE__ */ t(te, { variant: "ghost", size: 32, "aria-label": "Dismiss", onClick: s, children: /* @__PURE__ */ t(me, { "aria-hidden": "true" }) })
1789
+ s != null && /* @__PURE__ */ t("div", { className: P.action, children: s }),
1790
+ a && /* @__PURE__ */ t(le, { variant: "ghost", size: 32, "aria-label": "Dismiss", onClick: a, children: /* @__PURE__ */ t(xe, { "aria-hidden": "true" }) })
1592
1791
  ] });
1593
1792
  }
1594
- const Br = "_inlineAlert_16390_7", Lr = "_icon_16390_38", Cr = "_iconNeutral_16390_43", Sr = "_iconSuccess_16390_44", jr = "_iconWarning_16390_45", Tr = "_iconDanger_16390_46", zr = "_body_16390_48", Ir = "_title_16390_62", Er = "_action_16390_67", A = {
1595
- inlineAlert: Br,
1596
- icon: Lr,
1597
- iconNeutral: Cr,
1598
- iconSuccess: Sr,
1599
- iconWarning: jr,
1600
- iconDanger: Tr,
1601
- body: zr,
1602
- title: Ir,
1603
- action: Er
1604
- }, qr = {
1793
+ const ui = "_inlineAlert_16390_7", _i = "_icon_16390_38", hi = "_iconNeutral_16390_43", fi = "_iconSuccess_16390_44", gi = "_iconWarning_16390_45", pi = "_iconDanger_16390_46", mi = "_body_16390_48", vi = "_title_16390_62", bi = "_action_16390_67", A = {
1794
+ inlineAlert: ui,
1795
+ icon: _i,
1796
+ iconNeutral: hi,
1797
+ iconSuccess: fi,
1798
+ iconWarning: gi,
1799
+ iconDanger: pi,
1800
+ body: mi,
1801
+ title: vi,
1802
+ action: bi
1803
+ }, yi = {
1605
1804
  neutral: A.iconNeutral,
1606
1805
  success: A.iconSuccess,
1607
1806
  warning: A.iconWarning,
1608
1807
  danger: A.iconDanger
1609
1808
  };
1610
- function Ui({
1809
+ function Ds({
1611
1810
  variant: e = "neutral",
1612
1811
  title: n,
1613
1812
  children: i,
1614
- action: a,
1615
- statusLabel: s,
1616
- className: r,
1617
- ref: o,
1813
+ action: s,
1814
+ statusLabel: a,
1815
+ className: o,
1816
+ ref: r,
1618
1817
  ...c
1619
1818
  }) {
1620
- const d = be[e], l = ve(e, s), u = [A.inlineAlert, r].filter(Boolean).join(" ");
1621
- return /* @__PURE__ */ _("div", { ...c, ref: o, className: u, "data-variant": e, "data-psi-inline-alert": !0, children: [
1622
- /* @__PURE__ */ t("span", { className: [A.icon, qr[e]].join(" "), children: /* @__PURE__ */ t(d, { size: 20, "aria-hidden": "true" }) }),
1623
- /* @__PURE__ */ _("div", { className: A.body, children: [
1624
- l && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: l }),
1819
+ const l = ke[e], d = Ne(e, a), _ = [A.inlineAlert, o].filter(Boolean).join(" ");
1820
+ return /* @__PURE__ */ h("div", { ...c, ref: r, className: _, "data-variant": e, "data-psi-inline-alert": !0, children: [
1821
+ /* @__PURE__ */ t("span", { className: [A.icon, yi[e]].join(" "), children: /* @__PURE__ */ t(l, { size: 20, "aria-hidden": "true" }) }),
1822
+ /* @__PURE__ */ h("div", { className: A.body, children: [
1823
+ d && /* @__PURE__ */ t("span", { className: "psi-sr-only", children: d }),
1625
1824
  n != null && /* @__PURE__ */ t("strong", { className: A.title, children: n }),
1626
1825
  i
1627
1826
  ] }),
1628
- a != null && /* @__PURE__ */ t("div", { className: A.action, children: a })
1827
+ s != null && /* @__PURE__ */ t("div", { className: A.action, children: s })
1629
1828
  ] });
1630
1829
  }
1631
- const Mr = "_skeleton_1yo7t_12", Ar = "_line_1yo7t_28", Le = {
1632
- skeleton: Mr,
1633
- line: Ar
1830
+ const wi = "_skeleton_1yo7t_12", xi = "_line_1yo7t_28", Ie = {
1831
+ skeleton: wi,
1832
+ line: xi
1634
1833
  };
1635
- function Gi({
1834
+ function Ws({
1636
1835
  variant: e = "text",
1637
1836
  lines: n = 1,
1638
1837
  size: i = 40,
1639
- className: a,
1640
- ref: s,
1641
- ...r
1838
+ className: s,
1839
+ ref: a,
1840
+ ...o
1642
1841
  }) {
1643
- const o = [Le.skeleton, a].filter(Boolean).join(" "), c = Math.max(1, Math.floor(n));
1842
+ const r = [Ie.skeleton, s].filter(Boolean).join(" "), c = Math.max(1, Math.floor(n));
1644
1843
  return /* @__PURE__ */ t(
1645
1844
  "div",
1646
1845
  {
1647
- ...r,
1648
- ref: s,
1649
- className: o,
1846
+ ...o,
1847
+ ref: a,
1848
+ className: r,
1650
1849
  "aria-hidden": "true",
1651
1850
  "data-psi-skeleton": !0,
1652
1851
  "data-variant": e,
1653
1852
  "data-size": e === "block" ? i : void 0,
1654
- children: e === "text" && Array.from({ length: c }, (d, l) => /* @__PURE__ */ t("span", { className: Le.line }, l))
1853
+ children: e === "text" && Array.from({ length: c }, (l, d) => /* @__PURE__ */ t("span", { className: Ie.line }, d))
1655
1854
  }
1656
1855
  );
1657
1856
  }
1658
- function Yi({
1857
+ function Ps({
1659
1858
  value: e,
1660
1859
  label: n = "Copy",
1661
1860
  size: i = 32,
1662
- variant: a = "ghost",
1663
- onCopy: s,
1664
- className: r
1861
+ variant: s = "ghost",
1862
+ onCopy: a,
1863
+ className: o
1665
1864
  }) {
1666
- return /* @__PURE__ */ _(
1667
- le,
1865
+ return /* @__PURE__ */ h(
1866
+ ce,
1668
1867
  {
1669
1868
  type: "button",
1670
- variant: a,
1869
+ variant: s,
1671
1870
  size: i,
1672
- className: r,
1871
+ className: o,
1673
1872
  onClick: () => {
1674
- const o = typeof navigator < "u" ? navigator.clipboard : void 0;
1675
- if (!(o != null && o.writeText)) {
1676
- s == null || s("failed");
1873
+ const r = typeof navigator < "u" ? navigator.clipboard : void 0;
1874
+ if (!(r != null && r.writeText)) {
1875
+ a == null || a("failed");
1677
1876
  return;
1678
1877
  }
1679
- o.writeText(e).then(
1680
- () => s == null ? void 0 : s("copied"),
1681
- () => s == null ? void 0 : s("failed")
1878
+ r.writeText(e).then(
1879
+ () => a == null ? void 0 : a("copied"),
1880
+ () => a == null ? void 0 : a("failed")
1682
1881
  );
1683
1882
  },
1684
1883
  children: [
1685
- /* @__PURE__ */ t(st, { size: 16, "aria-hidden": "true" }),
1884
+ /* @__PURE__ */ t(ut, { size: 16, "aria-hidden": "true" }),
1686
1885
  /* @__PURE__ */ t("span", { children: n })
1687
1886
  ]
1688
1887
  }
1689
1888
  );
1690
1889
  }
1691
- const Wr = "_tabs_1x9om_8", Dr = "_list_1x9om_21", Pr = "_tab_1x9om_8", Rr = "_panel_1x9om_99", he = {
1692
- tabs: Wr,
1693
- list: Dr,
1694
- tab: Pr,
1695
- panel: Rr
1696
- }, Ee = Z(null);
1697
- function ye(e) {
1698
- const n = j(Ee);
1890
+ const ki = "_tabs_1x9om_8", Ni = "_list_1x9om_21", $i = "_tab_1x9om_8", Bi = "_panel_1x9om_99", me = {
1891
+ tabs: ki,
1892
+ list: Ni,
1893
+ tab: $i,
1894
+ panel: Bi
1895
+ }, Re = U(null);
1896
+ function $e(e) {
1897
+ const n = $(Re);
1699
1898
  if (!n)
1700
1899
  throw new Error(
1701
1900
  `Psi ${e}: must be rendered inside <Tabs>. Tabs owns the selected value, the orientation and the ids that wire aria-controls and aria-labelledby together.`
1702
1901
  );
1703
1902
  return n;
1704
1903
  }
1705
- function Zi({
1904
+ function As({
1706
1905
  value: e,
1707
1906
  onValueChange: n,
1708
1907
  orientation: i = "horizontal",
1709
- children: a,
1710
- className: s,
1711
- ref: r
1908
+ children: s,
1909
+ className: a,
1910
+ ref: o
1712
1911
  }) {
1713
- const o = R(), [c, d] = ae([]), l = x((g) => (d((b) => [...b, g]), () => d((b) => b.filter((v) => v !== g))), []), { tabStop: u, unmatched: h } = ce(() => {
1912
+ const r = R(), [c, l] = re([]), d = k((g) => (l((m) => [...m, g]), () => l((m) => m.filter((b) => b !== g))), []), { tabStop: _, unmatched: u } = ge(() => {
1714
1913
  if (c.length === 0) return { tabStop: e, unmatched: !1 };
1715
- if (c.some((v) => v.value === e)) return { tabStop: e, unmatched: !1 };
1914
+ if (c.some((b) => b.value === e)) return { tabStop: e, unmatched: !1 };
1716
1915
  const g = [...c].sort(
1717
- (v, N) => v.el && N.el && v.el !== N.el ? v.el.compareDocumentPosition(N.el) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1 : 0
1916
+ (b, x) => b.el && x.el && b.el !== x.el ? b.el.compareDocumentPosition(x.el) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1 : 0
1718
1917
  );
1719
- return { tabStop: (g.find((v) => !v.disabled) ?? g[0]).value, unmatched: !0 };
1918
+ return { tabStop: (g.find((b) => !b.disabled) ?? g[0]).value, unmatched: !0 };
1720
1919
  }, [c, e]);
1721
- C(() => {
1722
- !h || process.env.NODE_ENV === "production" || console.warn(
1920
+ z(() => {
1921
+ !u || process.env.NODE_ENV === "production" || console.warn(
1723
1922
  `Tabs: value "${e}" matches no tab; the first enabled tab takes the tab stop.`
1724
1923
  );
1725
- }, [h, e]);
1726
- const f = ce(
1727
- () => ({ value: e, onValueChange: n, orientation: i, idPrefix: o, tabStop: u, registerTab: l }),
1728
- [e, n, i, o, u, l]
1924
+ }, [u, e]);
1925
+ const f = ge(
1926
+ () => ({ value: e, onValueChange: n, orientation: i, idPrefix: r, tabStop: _, registerTab: d }),
1927
+ [e, n, i, r, _, d]
1729
1928
  );
1730
- return /* @__PURE__ */ t(Ee.Provider, { value: f, children: /* @__PURE__ */ t(
1929
+ return /* @__PURE__ */ t(Re.Provider, { value: f, children: /* @__PURE__ */ t(
1731
1930
  "div",
1732
1931
  {
1733
- ref: r,
1734
- className: [he.tabs, s].filter(Boolean).join(" "),
1932
+ ref: o,
1933
+ className: [me.tabs, a].filter(Boolean).join(" "),
1735
1934
  "data-orientation": i,
1736
- children: a
1935
+ children: s
1737
1936
  }
1738
1937
  ) });
1739
1938
  }
1740
- function qe(e, n) {
1939
+ function He(e, n) {
1741
1940
  return `${e}tab-${n}`;
1742
1941
  }
1743
- function Me(e, n) {
1942
+ function Ve(e, n) {
1744
1943
  return `${e}panel-${n}`;
1745
1944
  }
1746
- function Hr({ listRef: e, orientation: n, onValueChange: i }) {
1747
- const a = x(() => {
1748
- const r = e.current;
1749
- return r ? Array.from(
1750
- r.querySelectorAll('[data-psi-tab]:not([aria-disabled="true"])')
1945
+ function Si({ listRef: e, orientation: n, onValueChange: i }) {
1946
+ const s = k(() => {
1947
+ const o = e.current;
1948
+ return o ? Array.from(
1949
+ o.querySelectorAll('[data-psi-tab]:not([aria-disabled="true"])')
1751
1950
  ) : [];
1752
- }, [e]), s = x(
1753
- (r) => {
1754
- if (!r) return;
1755
- for (const c of a()) c.tabIndex = c === r ? 0 : -1;
1756
- r.focus();
1757
- const o = r.dataset.value;
1758
- o != null && i(o);
1951
+ }, [e]), a = k(
1952
+ (o) => {
1953
+ if (!o) return;
1954
+ for (const c of s()) c.tabIndex = c === o ? 0 : -1;
1955
+ o.focus();
1956
+ const r = o.dataset.value;
1957
+ r != null && i(r);
1759
1958
  },
1760
- [a, i]
1959
+ [s, i]
1761
1960
  );
1762
- return x(
1763
- (r) => {
1764
- const o = a();
1765
- if (o.length === 0) return;
1766
- const [c, d] = n === "vertical" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"], l = o.indexOf(document.activeElement);
1767
- switch (r.key) {
1768
- case d:
1769
- r.preventDefault(), s(o[(l + 1 + o.length) % o.length]);
1961
+ return k(
1962
+ (o) => {
1963
+ const r = s();
1964
+ if (r.length === 0) return;
1965
+ const [c, l] = n === "vertical" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"], d = r.indexOf(document.activeElement);
1966
+ switch (o.key) {
1967
+ case l:
1968
+ o.preventDefault(), a(r[(d + 1 + r.length) % r.length]);
1770
1969
  break;
1771
1970
  case c:
1772
- r.preventDefault(), s(o[(l - 1 + o.length) % o.length]);
1971
+ o.preventDefault(), a(r[(d - 1 + r.length) % r.length]);
1773
1972
  break;
1774
1973
  case "Home":
1775
- r.preventDefault(), s(o[0]);
1974
+ o.preventDefault(), a(r[0]);
1776
1975
  break;
1777
1976
  case "End":
1778
- r.preventDefault(), s(o[o.length - 1]);
1977
+ o.preventDefault(), a(r[r.length - 1]);
1779
1978
  break;
1780
1979
  }
1781
1980
  },
1782
- [s, a, n]
1981
+ [a, s, n]
1783
1982
  );
1784
1983
  }
1785
- function Xi({ "aria-label": e, children: n, className: i, ref: a }) {
1786
- const { orientation: s, onValueChange: r } = ye("TabList"), o = L(null), c = (l) => {
1787
- o.current = l, typeof a == "function" ? a(l) : a && (a.current = l);
1788
- }, d = Hr({ listRef: o, orientation: s, onValueChange: r });
1984
+ function Rs({ "aria-label": e, children: n, className: i, ref: s }) {
1985
+ const { orientation: a, onValueChange: o } = $e("TabList"), r = B(null), c = (d) => {
1986
+ r.current = d, typeof s == "function" ? s(d) : s && (s.current = d);
1987
+ }, l = Si({ listRef: r, orientation: a, onValueChange: o });
1789
1988
  return /* @__PURE__ */ t(
1790
1989
  "div",
1791
1990
  {
1792
1991
  ref: c,
1793
1992
  role: "tablist",
1794
1993
  "aria-label": e,
1795
- "aria-orientation": s,
1796
- className: [he.list, i].filter(Boolean).join(" "),
1797
- onKeyDown: d,
1994
+ "aria-orientation": a,
1995
+ className: [me.list, i].filter(Boolean).join(" "),
1996
+ onKeyDown: l,
1798
1997
  children: n
1799
1998
  }
1800
1999
  );
1801
2000
  }
1802
- function Ji({ value: e, children: n, disabled: i = !1, className: a, ref: s }) {
1803
- const r = ye("Tab"), o = r.value === e, c = L(null), { registerTab: d } = r, l = (u) => {
1804
- c.current = u, typeof s == "function" ? s(u) : s && (s.current = u);
2001
+ function Hs({ value: e, children: n, disabled: i = !1, className: s, ref: a }) {
2002
+ const o = $e("Tab"), r = o.value === e, c = B(null), { registerTab: l } = o, d = (_) => {
2003
+ c.current = _, typeof a == "function" ? a(_) : a && (a.current = _);
1805
2004
  };
1806
- return Pe(
1807
- () => d == null ? void 0 : d({ value: e, disabled: i, el: c.current }),
1808
- [d, e, i]
2005
+ return ze(
2006
+ () => l == null ? void 0 : l({ value: e, disabled: i, el: c.current }),
2007
+ [l, e, i]
1809
2008
  ), /* @__PURE__ */ t(
1810
2009
  "button",
1811
2010
  {
1812
- ref: l,
2011
+ ref: d,
1813
2012
  type: "button",
1814
2013
  role: "tab",
1815
- id: qe(r.idPrefix, e),
2014
+ id: He(o.idPrefix, e),
1816
2015
  "data-psi-tab": !0,
1817
2016
  "data-value": e,
1818
- "aria-selected": o,
1819
- "aria-controls": Me(r.idPrefix, e),
2017
+ "aria-selected": r,
2018
+ "aria-controls": Ve(o.idPrefix, e),
1820
2019
  "aria-disabled": i || void 0,
1821
- tabIndex: (r.tabStop ?? r.value) === e ? 0 : -1,
1822
- className: [he.tab, a].filter(Boolean).join(" "),
2020
+ tabIndex: (o.tabStop ?? o.value) === e ? 0 : -1,
2021
+ className: [me.tab, s].filter(Boolean).join(" "),
1823
2022
  onClick: () => {
1824
- i || r.onValueChange(e);
2023
+ i || o.onValueChange(e);
1825
2024
  },
1826
2025
  children: n
1827
2026
  }
1828
2027
  );
1829
2028
  }
1830
- function Qi({ value: e, children: n, className: i, ref: a }) {
1831
- const s = ye("TabPanel"), r = s.value === e;
2029
+ function Vs({ value: e, children: n, className: i, ref: s }) {
2030
+ const a = $e("TabPanel"), o = a.value === e;
1832
2031
  return /* @__PURE__ */ t(
1833
2032
  "div",
1834
2033
  {
1835
- ref: a,
2034
+ ref: s,
1836
2035
  role: "tabpanel",
1837
- id: Me(s.idPrefix, e),
1838
- "aria-labelledby": qe(s.idPrefix, e),
1839
- hidden: !r,
2036
+ id: Ve(a.idPrefix, e),
2037
+ "aria-labelledby": He(a.idPrefix, e),
2038
+ hidden: !o,
1840
2039
  tabIndex: 0,
1841
- className: [he.panel, i].filter(Boolean).join(" "),
2040
+ className: [me.panel, i].filter(Boolean).join(" "),
1842
2041
  children: n
1843
2042
  }
1844
2043
  );
1845
2044
  }
1846
2045
  export {
1847
- ze as Announcement,
1848
- ei as AppShell,
1849
- ni as AspectRatio,
1850
- Ki as Banner,
1851
- le as Button,
1852
- Fr as Card,
1853
- Ce as Checkbox,
1854
- Yi as CopyButton,
1855
- Vi as CursorPagination,
1856
- Gr as DescriptionItem,
1857
- Ur as DescriptionList,
1858
- $i as Dialog,
1859
- ti as Field,
1860
- ue as FieldContext,
1861
- lt as IconAlertCircle,
1862
- ct as IconAlertTriangle,
1863
- pi as IconArrowDown,
1864
- gi as IconArrowUpRight,
1865
- te as IconButton,
1866
- ot as IconCheck,
1867
- Vn as IconChevronDown,
1868
- it as IconChevronLeft,
1869
- rt as IconChevronRight,
1870
- me as IconClose,
1871
- st as IconCopy,
1872
- li as IconEdit,
1873
- ui as IconExternalLink,
1874
- hi as IconEye,
1875
- _i as IconEyeOff,
1876
- bi as IconGitHub,
1877
- at as IconInfo,
1878
- yi as IconInstagram,
1879
- mi as IconLinkedIn,
1880
- fi as IconLoader,
1881
- ki as IconLogOut,
1882
- wi as IconMenu,
1883
- ii as IconMinus,
1884
- xi as IconMoreHorizontal,
1885
- ri as IconPlus,
1886
- si as IconSearch,
1887
- ai as IconSettings,
1888
- Ni as IconSimCard,
1889
- di as IconTrash,
1890
- ci as IconUser,
1891
- vi as IconX,
1892
- Ui as InlineAlert,
1893
- Bi as Input,
1894
- zi as Menu,
1895
- Se as MenuContext,
1896
- Ii as MenuItem,
1897
- Ei as MenuSeparator,
1898
- qi as MenuText,
1899
- Yr as NavBar,
1900
- Jr as NavGroup,
1901
- Qr as NavItem,
1902
- Xr as NavTree,
1903
- Hi as Pagination,
1904
- Kr as Panel,
1905
- Li as Select,
1906
- Gi as Skeleton,
1907
- Zr as SkipLink,
1908
- Ci as Switch,
1909
- Ji as Tab,
1910
- Xi as TabList,
1911
- Qi as TabPanel,
1912
- Mi as Table,
1913
- Ko as TableBody,
1914
- Ri as TableCaption,
1915
- Pi as TableCell,
1916
- Ai as TableHead,
1917
- Di as TableHeaderCell,
1918
- Wi as TableRow,
1919
- Zi as Tabs,
1920
- Ee as TabsContext,
1921
- Si as Tag,
1922
- ge as Toast,
1923
- Ie as ToastContext,
1924
- Fi as ToastProvider,
1925
- fr as ToastRegion,
1926
- Ti as Toolbar,
1927
- ji as Tooltip,
1928
- oi as useFieldControl,
1929
- Oi as useToast
2046
+ Pe as Announcement,
2047
+ Pi as AppShell,
2048
+ Ai as AspectRatio,
2049
+ Es as Banner,
2050
+ ce as Button,
2051
+ ji as Card,
2052
+ qe as Checkbox,
2053
+ Ps as CopyButton,
2054
+ zs as CursorPagination,
2055
+ zi as DescriptionItem,
2056
+ Ii as DescriptionList,
2057
+ ds as Dialog,
2058
+ Ri as Field,
2059
+ G as FieldContext,
2060
+ ft as IconAlertCircle,
2061
+ ht as IconAlertTriangle,
2062
+ es as IconArrowDown,
2063
+ ns as IconArrowUpRight,
2064
+ le as IconButton,
2065
+ ct as IconCheck,
2066
+ Gn as IconChevronDown,
2067
+ dt as IconChevronLeft,
2068
+ lt as IconChevronRight,
2069
+ xe as IconClose,
2070
+ ut as IconCopy,
2071
+ Gi as IconEdit,
2072
+ Zi as IconExternalLink,
2073
+ Xi as IconEye,
2074
+ Ji as IconEyeOff,
2075
+ rs as IconGitHub,
2076
+ _t as IconInfo,
2077
+ is as IconInstagram,
2078
+ ts as IconLinkedIn,
2079
+ Qi as IconLoader,
2080
+ cs as IconLogOut,
2081
+ as as IconMenu,
2082
+ Oi as IconMinus,
2083
+ ss as IconMoreHorizontal,
2084
+ Vi as IconPlus,
2085
+ Ki as IconSearch,
2086
+ Fi as IconSettings,
2087
+ ls as IconSimCard,
2088
+ Yi as IconTrash,
2089
+ Ui as IconUser,
2090
+ os as IconX,
2091
+ Ds as InlineAlert,
2092
+ us as Input,
2093
+ xs as Menu,
2094
+ Ee as MenuContext,
2095
+ ks as MenuItem,
2096
+ Ns as MenuSeparator,
2097
+ $s as MenuText,
2098
+ qi as NavBar,
2099
+ Di as NavGroup,
2100
+ Wi as NavItem,
2101
+ Ei as NavTree,
2102
+ Is as Pagination,
2103
+ Ti as Panel,
2104
+ vs as Radio,
2105
+ ms as RadioGroup,
2106
+ Me as RadioGroupContext,
2107
+ _s as Select,
2108
+ Ws as Skeleton,
2109
+ Mi as SkipLink,
2110
+ fs as Stack,
2111
+ hs as Switch,
2112
+ Hs as Tab,
2113
+ Rs as TabList,
2114
+ Vs as TabPanel,
2115
+ Bs as Table,
2116
+ To as TableBody,
2117
+ Ts as TableCaption,
2118
+ js as TableCell,
2119
+ Ss as TableHead,
2120
+ Ls as TableHeaderCell,
2121
+ Cs as TableRow,
2122
+ As as Tabs,
2123
+ Re as TabsContext,
2124
+ bs as Tag,
2125
+ gs as Text,
2126
+ ps as Textarea,
2127
+ we as Toast,
2128
+ Ae as ToastContext,
2129
+ Ms as ToastProvider,
2130
+ Qo as ToastRegion,
2131
+ ws as Toolbar,
2132
+ ys as Tooltip,
2133
+ Hi as useFieldControl,
2134
+ qs as useToast
1930
2135
  };