@dendelion/func-ui 0.3.0 → 0.5.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.
package/dist/index.mjs CHANGED
@@ -1,34 +1,34 @@
1
1
  "use client";
2
- import { clsx as Ve } from "clsx";
3
- import { twMerge as Je } from "tailwind-merge";
4
- import { jsx as e, jsxs as f, Fragment as K } from "react/jsx-runtime";
5
- import { useId as R, useState as O, useMemo as Re, forwardRef as E, useRef as C, useCallback as Ke, useEffect as ee, useLayoutEffect as Qe, Children as et, cloneElement as tt, createContext as ot, useContext as nt } from "react";
6
- import { createPortal as Ce } from "react-dom";
7
- function d(...o) {
8
- return Je(Ve(o));
2
+ import { clsx as Je } from "clsx";
3
+ import { twMerge as Qe } from "tailwind-merge";
4
+ import { jsx as e, jsxs as b, Fragment as P } from "react/jsx-runtime";
5
+ import { useId as R, useState as Y, useMemo as Re, forwardRef as z, useRef as E, useCallback as Pe, useEffect as le, useLayoutEffect as et, Children as tt, cloneElement as He, createContext as ot, useContext as nt, isValidElement as lt } from "react";
6
+ import { createPortal as ze } from "react-dom";
7
+ function _(...o) {
8
+ return Qe(Je(o));
9
9
  }
10
- const lt = "grain-module__grain___sp9ca", st = {
11
- grain: lt
10
+ const st = "grain-module__grain___sp9ca", at = {
11
+ grain: st
12
12
  };
13
- function at({ opacity: o, className: t, style: n, ...s }) {
14
- const l = o != null ? { "--fui-grain-opacity": String(o) } : void 0;
13
+ function ct({ opacity: o, className: t, style: n, ...l }) {
14
+ const s = o != null ? { "--fui-grain-opacity": String(o) } : void 0;
15
15
  return /* @__PURE__ */ e(
16
16
  "div",
17
17
  {
18
18
  "aria-hidden": !0,
19
- className: d(st.grain, t),
20
- style: { ...l, ...n },
21
- ...s
19
+ className: _(at.grain, t),
20
+ style: { ...s, ...n },
21
+ ...l
22
22
  }
23
23
  );
24
24
  }
25
- const ct = "glow-module__glow___kEcKf", rt = "glow-module__blob___b1llZ", _t = "glow-module__wobble___kfp96", dt = "glow-module__botBlob___XG8Xf", we = {
26
- glow: ct,
27
- blob: rt,
28
- wobble: _t,
29
- botBlob: dt
25
+ const rt = "glow-module__glow___kEcKf", _t = "glow-module__blob___b1llZ", dt = "glow-module__wobble___kfp96", it = "glow-module__botBlob___XG8Xf", Ne = {
26
+ glow: rt,
27
+ blob: _t,
28
+ wobble: dt,
29
+ botBlob: it
30
30
  };
31
- function it(o) {
31
+ function ut(o) {
32
32
  let t = o | 0;
33
33
  return () => {
34
34
  t = t + 1831565813 | 0;
@@ -36,94 +36,94 @@ function it(o) {
36
36
  return n = n + Math.imul(n ^ n >>> 7, 61 | n) ^ n, ((n ^ n >>> 14) >>> 0) / 4294967296;
37
37
  };
38
38
  }
39
- function Ge(o, t, n, s) {
40
- const l = 6 + Math.floor(o() * 4), a = 0.12 + o() * 0.28, i = 0.85 + o() * 0.4, r = 0.85 + o() * 0.4, p = o() * Math.PI * 2, m = [];
41
- for (let h = 0; h < l; h++) {
42
- const u = p + h / l * Math.PI * 2, v = s * (1 - a + o() * a * 2);
43
- m.push([t + Math.cos(u) * v * i, n + Math.sin(u) * v * r]);
39
+ function Ge(o, t, n, l) {
40
+ const s = 6 + Math.floor(o() * 4), a = 0.12 + o() * 0.28, d = 0.85 + o() * 0.4, r = 0.85 + o() * 0.4, u = o() * Math.PI * 2, m = [];
41
+ for (let p = 0; p < s; p++) {
42
+ const i = u + p / s * Math.PI * 2, v = l * (1 - a + o() * a * 2);
43
+ m.push([t + Math.cos(i) * v * d, n + Math.sin(i) * v * r]);
44
44
  }
45
- let _ = `M${m[0][0].toFixed(1)},${m[0][1].toFixed(1)}`;
46
- for (let h = 0; h < l; h++) {
47
- const u = m[(h - 1 + l) % l], v = m[h], b = m[(h + 1) % l], y = m[(h + 2) % l], g = v[0] + (b[0] - u[0]) / 6, k = v[1] + (b[1] - u[1]) / 6, w = b[0] - (y[0] - v[0]) / 6, x = b[1] - (y[1] - v[1]) / 6;
48
- _ += `C${g.toFixed(1)},${k.toFixed(1)} ${w.toFixed(1)},${x.toFixed(1)} ${b[0].toFixed(1)},${b[1].toFixed(1)}`;
45
+ let c = `M${m[0][0].toFixed(1)},${m[0][1].toFixed(1)}`;
46
+ for (let p = 0; p < s; p++) {
47
+ const i = m[(p - 1 + s) % s], v = m[p], h = m[(p + 1) % s], g = m[(p + 2) % s], y = v[0] + (h[0] - i[0]) / 6, N = v[1] + (h[1] - i[1]) / 6, $ = h[0] - (g[0] - v[0]) / 6, M = h[1] - (g[1] - v[1]) / 6;
48
+ c += `C${y.toFixed(1)},${N.toFixed(1)} ${$.toFixed(1)},${M.toFixed(1)} ${h[0].toFixed(1)},${h[1].toFixed(1)}`;
49
49
  }
50
- return `${_}Z`;
50
+ return `${c}Z`;
51
51
  }
52
- function ut(o) {
53
- const t = it(o), n = 4 + Math.floor(t() * 2), s = [];
54
- for (let i = 0; i < n; i++) {
55
- const r = 13 + t() * 8, p = 270 + t() * 50, m = 350 + t() * 24, _ = 24 + t() * 28, h = 6 + t() * 8, u = 196 + t() * 42;
56
- s.push({
57
- d: Ge(t, p, m, r),
52
+ function mt(o) {
53
+ const t = ut(o), n = 4 + Math.floor(t() * 2), l = [];
54
+ for (let d = 0; d < n; d++) {
55
+ const r = 13 + t() * 8, u = 270 + t() * 50, m = 350 + t() * 24, c = 24 + t() * 28, p = 6 + t() * 8, i = 196 + t() * 42;
56
+ l.push({
57
+ d: Ge(t, u, m, r),
58
58
  opacity: 0.6 + t() * 0.4,
59
- dur: _,
59
+ dur: c,
60
60
  // Stratified phases: blob i starts i/count of the way through its
61
61
  // cycle (± jitter), so the wax stays spread through the lamp instead
62
62
  // of randomly clumping into one goo column mid-flight.
63
- delay: -((i + t() * 0.6) / n * _),
64
- rise: m - u,
65
- wobbleDur: h,
66
- wobbleDelay: -(t() * h),
63
+ delay: -((d + t() * 0.6) / n * c),
64
+ rise: m - i,
65
+ wobbleDur: p,
66
+ wobbleDelay: -(t() * p),
67
67
  sway: 3 + t() * 5
68
68
  });
69
69
  }
70
- const l = 3 + Math.floor(t() * 2), a = [];
71
- for (let i = 0; i < l; i++) {
72
- const r = 12 + t() * 6, p = 268 + t() * 54, m = 352 + t() * 24, _ = 36 + t() * 30, h = 9 + t() * 8, u = 205 + t() * 45;
70
+ const s = 3 + Math.floor(t() * 2), a = [];
71
+ for (let d = 0; d < s; d++) {
72
+ const r = 12 + t() * 6, u = 268 + t() * 54, m = 352 + t() * 24, c = 36 + t() * 30, p = 9 + t() * 8, i = 205 + t() * 45;
73
73
  a.push({
74
- d: Ge(t, p, m, r),
74
+ d: Ge(t, u, m, r),
75
75
  // Near-full alpha INTO the filter — the goo threshold erases dim input.
76
76
  // The layer is faded as a whole, after filtering, in the JSX.
77
77
  opacity: 0.85 + t() * 0.15,
78
- dur: _,
79
- delay: -((i + t() * 0.6) / l * _),
80
- rise: m - u,
81
- wobbleDur: h,
82
- wobbleDelay: -(t() * h),
78
+ dur: c,
79
+ delay: -((d + t() * 0.6) / s * c),
80
+ rise: m - i,
81
+ wobbleDur: p,
82
+ wobbleDelay: -(t() * p),
83
83
  sway: 2 + t() * 3
84
84
  });
85
85
  }
86
- return { blobs: s, depthBlobs: a };
86
+ return { blobs: l, depthBlobs: a };
87
87
  }
88
- function mt({ className: o, seed: t }) {
89
- const n = R().replace(/:/g, ""), s = `goo-${n}`, l = `goo-soft-${n}`, a = `clip-${n}`, i = `grad-${n}`, [r] = O(() => Math.floor(Math.random() * 2 ** 31)), { blobs: p, depthBlobs: m } = Re(
90
- () => ut(t ?? r),
88
+ function pt({ className: o, seed: t }) {
89
+ const n = R().replace(/:/g, ""), l = `goo-${n}`, s = `goo-soft-${n}`, a = `clip-${n}`, d = `grad-${n}`, [r] = Y(() => Math.floor(Math.random() * 2 ** 31)), { blobs: u, depthBlobs: m } = Re(
90
+ () => mt(t ?? r),
91
91
  [t, r]
92
- ), _ = (h) => h.map((u) => /* @__PURE__ */ e(
92
+ ), c = (p) => p.map((i) => /* @__PURE__ */ e(
93
93
  "g",
94
94
  {
95
- className: we.blob,
95
+ className: Ne.blob,
96
96
  style: {
97
- opacity: u.opacity,
98
- "--lava-dur": `${u.dur.toFixed(1)}s`,
99
- "--lava-delay": `${u.delay.toFixed(1)}s`,
100
- "--lava-rise": `${u.rise.toFixed(0)}px`
97
+ opacity: i.opacity,
98
+ "--lava-dur": `${i.dur.toFixed(1)}s`,
99
+ "--lava-delay": `${i.delay.toFixed(1)}s`,
100
+ "--lava-rise": `${i.rise.toFixed(0)}px`
101
101
  },
102
102
  children: /* @__PURE__ */ e(
103
103
  "path",
104
104
  {
105
- className: we.wobble,
106
- d: u.d,
105
+ className: Ne.wobble,
106
+ d: i.d,
107
107
  style: {
108
- "--lava-wdur": `${u.wobbleDur.toFixed(1)}s`,
109
- "--lava-wdelay": `${u.wobbleDelay.toFixed(1)}s`,
110
- "--lava-sway": `${u.sway.toFixed(1)}px`
108
+ "--lava-wdur": `${i.wobbleDur.toFixed(1)}s`,
109
+ "--lava-wdelay": `${i.wobbleDelay.toFixed(1)}s`,
110
+ "--lava-sway": `${i.sway.toFixed(1)}px`
111
111
  }
112
112
  }
113
113
  )
114
114
  },
115
- u.d
115
+ i.d
116
116
  ));
117
- return /* @__PURE__ */ f(
117
+ return /* @__PURE__ */ b(
118
118
  "svg",
119
119
  {
120
- className: d(we.glow, o),
120
+ className: _(Ne.glow, o),
121
121
  viewBox: "0 0 600 600",
122
122
  "aria-hidden": !0,
123
123
  role: "presentation",
124
124
  children: [
125
- /* @__PURE__ */ f("defs", { children: [
126
- /* @__PURE__ */ f("filter", { id: s, colorInterpolationFilters: "sRGB", children: [
125
+ /* @__PURE__ */ b("defs", { children: [
126
+ /* @__PURE__ */ b("filter", { id: l, colorInterpolationFilters: "sRGB", children: [
127
127
  /* @__PURE__ */ e("feGaussianBlur", { in: "SourceGraphic", stdDeviation: "8", result: "blur" }),
128
128
  /* @__PURE__ */ e(
129
129
  "feColorMatrix",
@@ -136,7 +136,7 @@ function mt({ className: o, seed: t }) {
136
136
  ),
137
137
  /* @__PURE__ */ e("feBlend", {})
138
138
  ] }),
139
- /* @__PURE__ */ f("filter", { id: l, colorInterpolationFilters: "sRGB", children: [
139
+ /* @__PURE__ */ b("filter", { id: s, colorInterpolationFilters: "sRGB", children: [
140
140
  /* @__PURE__ */ e("feGaussianBlur", { in: "SourceGraphic", stdDeviation: "10", result: "blur" }),
141
141
  /* @__PURE__ */ e(
142
142
  "feColorMatrix",
@@ -148,7 +148,7 @@ function mt({ className: o, seed: t }) {
148
148
  )
149
149
  ] }),
150
150
  /* @__PURE__ */ e("clipPath", { id: a, children: /* @__PURE__ */ e("path", { d: "M262,174h60l33.5,182.3c0,0,2.7,12.8,2.5,22.8c-7.5,0-131,0-131,0s-0.7-9.3,0-18C227.6,352.9,262,174,262,174z" }) }),
151
- /* @__PURE__ */ f("radialGradient", { id: i, cx: "300", cy: "300", r: "400", gradientUnits: "userSpaceOnUse", children: [
151
+ /* @__PURE__ */ b("radialGradient", { id: d, cx: "300", cy: "300", r: "400", gradientUnits: "userSpaceOnUse", children: [
152
152
  /* @__PURE__ */ e("stop", { offset: "0.0714", stopColor: "currentColor", stopOpacity: "0.19" }),
153
153
  /* @__PURE__ */ e("stop", { offset: "0.3107", stopColor: "currentColor", stopOpacity: "0.13" }),
154
154
  /* @__PURE__ */ e("stop", { offset: "0.553", stopColor: "currentColor", stopOpacity: "0.06" }),
@@ -156,14 +156,14 @@ function mt({ className: o, seed: t }) {
156
156
  /* @__PURE__ */ e("stop", { offset: "0.9847", stopColor: "currentColor", stopOpacity: "0" })
157
157
  ] })
158
158
  ] }),
159
- /* @__PURE__ */ e("rect", { fill: `url(#${i})`, width: "600", height: "600" }),
160
- /* @__PURE__ */ e("g", { filter: `url(#${l})`, clipPath: `url(#${a})`, fill: "currentColor", opacity: 0.2, children: _(m) }),
161
- /* @__PURE__ */ f("g", { filter: `url(#${s})`, clipPath: `url(#${a})`, fill: "currentColor", children: [
162
- _(p),
159
+ /* @__PURE__ */ e("rect", { fill: `url(#${d})`, width: "600", height: "600" }),
160
+ /* @__PURE__ */ e("g", { filter: `url(#${s})`, clipPath: `url(#${a})`, fill: "currentColor", opacity: 0.2, children: c(m) }),
161
+ /* @__PURE__ */ b("g", { filter: `url(#${l})`, clipPath: `url(#${a})`, fill: "currentColor", children: [
162
+ c(u),
163
163
  /* @__PURE__ */ e(
164
164
  "path",
165
165
  {
166
- className: we.botBlob,
166
+ className: Ne.botBlob,
167
167
  d: "M354,381.2c6.8,3.4,5.4,7.4-5.6,10.4c-10.7,3.1-31.1,5.1-54.4,8.4c-23.3,3.3-43.7,0.8-54.4-2.4c-11-3.4-12.4-7.6-5.6-13.8c6.8-7,18.9-14.6,29.6-17.4c11-3.3,20.6-1.8,30.4-1.4c9.8,0.4,19.4,5.1,30.4,8.3C335.1,376.8,347.2,378.6,354,381.2z"
168
168
  }
169
169
  )
@@ -172,327 +172,328 @@ function mt({ className: o, seed: t }) {
172
172
  }
173
173
  );
174
174
  }
175
- const pt = "backdrop-module__backdrop___CoxJ-", ht = "backdrop-module__glowLayer___esKR8", bt = "backdrop-module__grainLayer___44u-y", ft = "backdrop-module__content___W2hOD", ke = {
176
- backdrop: pt,
177
- glowLayer: ht,
178
- grainLayer: bt,
179
- content: ft
175
+ const ht = "backdrop-module__backdrop___CoxJ-", bt = "backdrop-module__glowLayer___esKR8", ft = "backdrop-module__grainLayer___44u-y", vt = "backdrop-module__content___W2hOD", xe = {
176
+ backdrop: ht,
177
+ glowLayer: bt,
178
+ grainLayer: ft,
179
+ content: vt
180
180
  };
181
- function __({ grain: o = !0, glow: t = !0, className: n, children: s }) {
182
- return /* @__PURE__ */ f("div", { className: d(ke.backdrop, n), children: [
183
- t && /* @__PURE__ */ e("div", { className: ke.glowLayer, children: /* @__PURE__ */ e(mt, {}) }),
184
- o && /* @__PURE__ */ e(at, { className: ke.grainLayer }),
185
- /* @__PURE__ */ e("div", { className: ke.content, children: s })
181
+ function h_({ grain: o = !0, glow: t = !0, className: n, children: l }) {
182
+ return /* @__PURE__ */ b("div", { className: _(xe.backdrop, n), children: [
183
+ t && /* @__PURE__ */ e("div", { className: xe.glowLayer, children: /* @__PURE__ */ e(pt, {}) }),
184
+ o && /* @__PURE__ */ e(ct, { className: xe.grainLayer }),
185
+ /* @__PURE__ */ e("div", { className: xe.content, children: l })
186
186
  ] });
187
187
  }
188
- const vt = "glass-module__glass___Z6fy2", gt = {
189
- glass: vt
190
- }, d_ = E(function({ blur: t, className: n, style: s, children: l, ...a }, i) {
188
+ const gt = "glass-module__glass___Z6fy2", yt = {
189
+ glass: gt
190
+ }, b_ = z(function({ blur: t, className: n, style: l, children: s, ...a }, d) {
191
191
  const r = t === 0 ? { "--fui-glass-backdrop": "none" } : t != null ? { "--fui-glass-blur": `${t}px` } : void 0;
192
- return /* @__PURE__ */ e("div", { ref: i, className: d(gt.glass, n), style: { ...r, ...s }, ...a, children: l });
193
- }), yt = "button-module__button___Z331g", $t = "button-module__active___weXhI", wt = "button-module__primary___ppbyq", kt = "button-module__secondary___esy5L", Nt = "button-module__ghost___NisA0", xt = "button-module__danger___Wnvuq", Mt = "button-module__md___REpcP", Dt = "button-module__sm___QYj0l", It = "button-module__fullWidth___H0P0F", Bt = "button-module__iconSlot___BGOaK", ne = {
194
- button: yt,
195
- active: $t,
196
- primary: wt,
197
- secondary: kt,
198
- ghost: Nt,
199
- danger: xt,
200
- md: Mt,
201
- sm: Dt,
202
- fullWidth: It,
203
- iconSlot: Bt
204
- }, i_ = E(function({
192
+ return /* @__PURE__ */ e("div", { ref: d, className: _(yt.glass, n), style: { ...r, ...l }, ...a, children: s });
193
+ }), $t = "button-module__button___Z331g", wt = "button-module__active___weXhI", kt = "button-module__primary___ppbyq", Nt = "button-module__secondary___esy5L", xt = "button-module__ghost___NisA0", Mt = "button-module__danger___Wnvuq", Dt = "button-module__lit___gDeak", It = "button-module__md___REpcP", Bt = "button-module__sm___QYj0l", Lt = "button-module__fullWidth___H0P0F", St = "button-module__iconSlot___BGOaK", ce = {
194
+ button: $t,
195
+ active: wt,
196
+ primary: kt,
197
+ secondary: Nt,
198
+ ghost: xt,
199
+ danger: Mt,
200
+ lit: Dt,
201
+ md: It,
202
+ sm: Bt,
203
+ fullWidth: Lt,
204
+ iconSlot: St
205
+ }, f_ = z(function({
205
206
  variant: t = "primary",
206
207
  size: n = "md",
207
- fullWidth: s = !1,
208
- icon: l,
208
+ fullWidth: l = !1,
209
+ icon: s,
209
210
  iconRight: a,
210
- isActive: i = !1,
211
+ isActive: d = !1,
211
212
  className: r,
212
- children: p,
213
+ children: u,
213
214
  ...m
214
- }, _) {
215
- return /* @__PURE__ */ f(
215
+ }, c) {
216
+ return /* @__PURE__ */ b(
216
217
  "button",
217
218
  {
218
- ref: _,
219
+ ref: c,
219
220
  type: "button",
220
- "aria-pressed": i || void 0,
221
- className: d(
222
- ne.button,
223
- ne[t],
224
- ne[n],
225
- s && ne.fullWidth,
226
- i && ne.active,
221
+ "aria-pressed": d || void 0,
222
+ className: _(
223
+ ce.button,
224
+ ce[t],
225
+ ce[n],
226
+ l && ce.fullWidth,
227
+ d && ce.active,
227
228
  r
228
229
  ),
229
230
  ...m,
230
231
  children: [
231
- l && /* @__PURE__ */ e("span", { className: ne.iconSlot, children: l }),
232
- p,
233
- a && /* @__PURE__ */ e("span", { className: ne.iconSlot, children: a })
232
+ s && /* @__PURE__ */ e("span", { className: ce.iconSlot, children: s }),
233
+ u,
234
+ a && /* @__PURE__ */ e("span", { className: ce.iconSlot, children: a })
234
235
  ]
235
236
  }
236
237
  );
237
- }), Lt = "icon-button-module__iconButton___avg6i", St = "icon-button-module__active___XaJ4h", Ct = "icon-button-module__ghost___Wbxog", Et = "icon-button-module__danger___p0Xz5", zt = "icon-button-module__sm___4l7PX", Tt = "icon-button-module__md___48iuw", Ne = {
238
- iconButton: Lt,
238
+ }), Ct = "icon-button-module__iconButton___avg6i", Et = "icon-button-module__active___XaJ4h", zt = "icon-button-module__ghost___Wbxog", Tt = "icon-button-module__danger___p0Xz5", Ft = "icon-button-module__sm___4l7PX", Kt = "icon-button-module__md___48iuw", Me = {
239
+ iconButton: Ct,
239
240
  default: "icon-button-module__default___9frNR",
240
- active: St,
241
- ghost: Ct,
242
- danger: Et,
243
- sm: zt,
244
- md: Tt
245
- }, u_ = E(function({ icon: t, label: n, variant: s = "default", size: l = "md", isActive: a = !1, className: i, ...r }, p) {
241
+ active: Et,
242
+ ghost: zt,
243
+ danger: Tt,
244
+ sm: Ft,
245
+ md: Kt
246
+ }, v_ = z(function({ icon: t, label: n, variant: l = "default", size: s = "md", isActive: a = !1, className: d, ...r }, u) {
246
247
  return /* @__PURE__ */ e(
247
248
  "button",
248
249
  {
249
- ref: p,
250
+ ref: u,
250
251
  type: "button",
251
252
  "aria-label": n,
252
253
  title: n,
253
254
  "aria-pressed": a || void 0,
254
- className: d(
255
- Ne.iconButton,
256
- Ne[s],
257
- Ne[l],
258
- a && Ne.active,
259
- i
255
+ className: _(
256
+ Me.iconButton,
257
+ Me[l],
258
+ Me[s],
259
+ a && Me.active,
260
+ d
260
261
  ),
261
262
  ...r,
262
263
  children: t
263
264
  }
264
265
  );
265
- }), Ft = "lamp-button-module__lampButton___vLS18", Kt = "lamp-button-module__bezel___U-EXI", Rt = "lamp-button-module__socket___Jyed-", Pt = "lamp-button-module__surface___8dOFO", At = "lamp-button-module__green___GAW2z", Ot = "lamp-button-module__yellow___-edHR", Gt = "lamp-button-module__gray___m7yXy", jt = "lamp-button-module__red___4wFVi", Yt = "lamp-button-module__dark___ZKc5R", Ht = "lamp-button-module__content___YGpBr", qt = "lamp-button-module__inkLight___6beGg", Ut = "lamp-button-module__inkDark___tnNFq", Wt = "lamp-button-module__icon___IBRdm", Zt = "lamp-button-module__sm___bjzzW", Xt = "lamp-button-module__full___pf8ue", Vt = "lamp-button-module__half___VL0GN", Jt = "lamp-button-module__md___Hwseh", Qt = "lamp-button-module__lg___-yjxW", G = {
266
- lampButton: Ft,
267
- bezel: Kt,
268
- socket: Rt,
269
- surface: Pt,
270
- green: At,
271
- yellow: Ot,
272
- gray: Gt,
273
- red: jt,
274
- dark: Yt,
275
- content: Ht,
276
- inkLight: qt,
277
- inkDark: Ut,
278
- icon: Wt,
279
- sm: Zt,
280
- full: Xt,
281
- half: Vt,
282
- md: Jt,
283
- lg: Qt
284
- }, m_ = E(function({ tone: t = "gray", size: n = "md", rounded: s = "full", icon: l, className: a, children: i, disabled: r, ...p }, m) {
285
- const _ = r ? "dark" : t;
286
- return /* @__PURE__ */ f(
266
+ }), Pt = "lamp-button-module__lampButton___vLS18", Rt = "lamp-button-module__bezel___U-EXI", Ot = "lamp-button-module__socket___Jyed-", At = "lamp-button-module__surface___8dOFO", Gt = "lamp-button-module__green___GAW2z", jt = "lamp-button-module__yellow___-edHR", Yt = "lamp-button-module__gray___m7yXy", Ht = "lamp-button-module__red___4wFVi", qt = "lamp-button-module__dark___ZKc5R", Ut = "lamp-button-module__content___YGpBr", Wt = "lamp-button-module__inkLight___6beGg", Zt = "lamp-button-module__inkDark___tnNFq", Vt = "lamp-button-module__icon___IBRdm", Xt = "lamp-button-module__sm___bjzzW", Jt = "lamp-button-module__full___pf8ue", Qt = "lamp-button-module__half___VL0GN", eo = "lamp-button-module__md___Hwseh", to = "lamp-button-module__lg___-yjxW", H = {
267
+ lampButton: Pt,
268
+ bezel: Rt,
269
+ socket: Ot,
270
+ surface: At,
271
+ green: Gt,
272
+ yellow: jt,
273
+ gray: Yt,
274
+ red: Ht,
275
+ dark: qt,
276
+ content: Ut,
277
+ inkLight: Wt,
278
+ inkDark: Zt,
279
+ icon: Vt,
280
+ sm: Xt,
281
+ full: Jt,
282
+ half: Qt,
283
+ md: eo,
284
+ lg: to
285
+ }, g_ = z(function({ tone: t = "gray", size: n = "md", rounded: l = "full", icon: s, className: a, children: d, disabled: r, ...u }, m) {
286
+ const c = r ? "dark" : t;
287
+ return /* @__PURE__ */ b(
287
288
  "button",
288
289
  {
289
290
  ref: m,
290
291
  type: "button",
291
292
  disabled: r,
292
- className: d(G.lampButton, G[n], G[s], a),
293
- ...p,
293
+ className: _(H.lampButton, H[n], H[l], a),
294
+ ...u,
294
295
  children: [
295
- /* @__PURE__ */ e("span", { className: G.bezel }),
296
- /* @__PURE__ */ e("span", { className: G.socket }),
297
- /* @__PURE__ */ e("span", { className: d(G.surface, G[_]) }),
298
- /* @__PURE__ */ f("span", { className: d(G.content, _ === "gray" ? G.inkDark : G.inkLight), children: [
299
- l && /* @__PURE__ */ e("span", { className: G.icon, children: l }),
300
- i
296
+ /* @__PURE__ */ e("span", { className: H.bezel }),
297
+ /* @__PURE__ */ e("span", { className: H.socket }),
298
+ /* @__PURE__ */ e("span", { className: _(H.surface, H[c]) }),
299
+ /* @__PURE__ */ b("span", { className: _(H.content, c === "gray" ? H.inkDark : H.inkLight), children: [
300
+ s && /* @__PURE__ */ e("span", { className: H.icon, children: s }),
301
+ d
301
302
  ] })
302
303
  ]
303
304
  }
304
305
  );
305
- }), eo = "lamp-icon-button-module__lampIconButton___1xZo8", to = "lamp-icon-button-module__bezel___Z9Kq8", oo = "lamp-icon-button-module__socket___OzfA4", no = "lamp-icon-button-module__surface___Eabnu", lo = "lamp-icon-button-module__green___Bc3bQ", so = "lamp-icon-button-module__yellow___9j8ol", ao = "lamp-icon-button-module__gray___NgxOh", co = "lamp-icon-button-module__red___2yAmf", ro = "lamp-icon-button-module__dark___2KgXc", _o = "lamp-icon-button-module__icon___NglMS", io = "lamp-icon-button-module__inkLight___Ea5Is", uo = "lamp-icon-button-module__inkDark___5F-Vy", mo = "lamp-icon-button-module__sm___HpAmU", po = "lamp-icon-button-module__md___xYNb1", ho = "lamp-icon-button-module__lg___V4xGx", V = {
306
- lampIconButton: eo,
307
- bezel: to,
308
- socket: oo,
309
- surface: no,
310
- green: lo,
311
- yellow: so,
312
- gray: ao,
313
- red: co,
314
- dark: ro,
315
- icon: _o,
316
- inkLight: io,
317
- inkDark: uo,
318
- sm: mo,
319
- md: po,
320
- lg: ho
321
- }, p_ = E(
322
- function({ icon: t, label: n, tone: s = "gray", size: l = "md", className: a, disabled: i, ...r }, p) {
323
- const m = i ? "dark" : s;
324
- return /* @__PURE__ */ f(
306
+ }), oo = "lamp-icon-button-module__lampIconButton___1xZo8", no = "lamp-icon-button-module__bezel___Z9Kq8", lo = "lamp-icon-button-module__socket___OzfA4", so = "lamp-icon-button-module__surface___Eabnu", ao = "lamp-icon-button-module__green___Bc3bQ", co = "lamp-icon-button-module__yellow___9j8ol", ro = "lamp-icon-button-module__gray___NgxOh", _o = "lamp-icon-button-module__red___2yAmf", io = "lamp-icon-button-module__dark___2KgXc", uo = "lamp-icon-button-module__icon___NglMS", mo = "lamp-icon-button-module__inkLight___Ea5Is", po = "lamp-icon-button-module__inkDark___5F-Vy", ho = "lamp-icon-button-module__sm___HpAmU", bo = "lamp-icon-button-module__md___xYNb1", fo = "lamp-icon-button-module__lg___V4xGx", ee = {
307
+ lampIconButton: oo,
308
+ bezel: no,
309
+ socket: lo,
310
+ surface: so,
311
+ green: ao,
312
+ yellow: co,
313
+ gray: ro,
314
+ red: _o,
315
+ dark: io,
316
+ icon: uo,
317
+ inkLight: mo,
318
+ inkDark: po,
319
+ sm: ho,
320
+ md: bo,
321
+ lg: fo
322
+ }, y_ = z(
323
+ function({ icon: t, label: n, tone: l = "gray", size: s = "md", className: a, disabled: d, ...r }, u) {
324
+ const m = d ? "dark" : l;
325
+ return /* @__PURE__ */ b(
325
326
  "button",
326
327
  {
327
- ref: p,
328
+ ref: u,
328
329
  type: "button",
329
330
  "aria-label": n,
330
331
  title: n,
331
- disabled: i,
332
- className: d(V.lampIconButton, V[l], a),
332
+ disabled: d,
333
+ className: _(ee.lampIconButton, ee[s], a),
333
334
  ...r,
334
335
  children: [
335
- /* @__PURE__ */ e("span", { className: V.bezel }),
336
- /* @__PURE__ */ e("span", { className: V.socket }),
337
- /* @__PURE__ */ e("span", { className: d(V.surface, V[m]) }),
338
- /* @__PURE__ */ e("span", { className: d(V.icon, m === "gray" ? V.inkDark : V.inkLight), children: t })
336
+ /* @__PURE__ */ e("span", { className: ee.bezel }),
337
+ /* @__PURE__ */ e("span", { className: ee.socket }),
338
+ /* @__PURE__ */ e("span", { className: _(ee.surface, ee[m]) }),
339
+ /* @__PURE__ */ e("span", { className: _(ee.icon, m === "gray" ? ee.inkDark : ee.inkLight), children: t })
339
340
  ]
340
341
  }
341
342
  );
342
343
  }
343
- ), bo = "lamp-switch-module__control___WEQSl", fo = "lamp-switch-module__disabled___TUW9S", vo = "lamp-switch-module__input___WYweb", go = "lamp-switch-module__bezel___pZzrv", yo = "lamp-switch-module__socket___BIITV", $o = "lamp-switch-module__glow___IwjxL", wo = "lamp-switch-module__knob___L-MKD", ko = "lamp-switch-module__labels___DRwFx", No = "lamp-switch-module__off___fk-7m", xo = "lamp-switch-module__on___heTFC", Mo = "lamp-switch-module__divider___KxXb9", Do = "lamp-switch-module__text___xb6i5", Io = "lamp-switch-module__green___o-64B", Bo = "lamp-switch-module__yellow___68h4h", Lo = "lamp-switch-module__gray___omIlV", So = "lamp-switch-module__red___1NqKe", Co = "lamp-switch-module__dark___muS53", Eo = "lamp-switch-module__sm___iu8wH", zo = "lamp-switch-module__md___xcpKC", To = "lamp-switch-module__lg___vpOur", F = {
344
- control: bo,
345
- disabled: fo,
346
- input: vo,
344
+ ), vo = "lamp-switch-module__control___WEQSl", go = "lamp-switch-module__disabled___TUW9S", yo = "lamp-switch-module__input___WYweb", $o = "lamp-switch-module__bezel___pZzrv", wo = "lamp-switch-module__socket___BIITV", ko = "lamp-switch-module__glow___IwjxL", No = "lamp-switch-module__knob___L-MKD", xo = "lamp-switch-module__labels___DRwFx", Mo = "lamp-switch-module__off___fk-7m", Do = "lamp-switch-module__on___heTFC", Io = "lamp-switch-module__divider___KxXb9", Bo = "lamp-switch-module__text___xb6i5", Lo = "lamp-switch-module__green___o-64B", So = "lamp-switch-module__yellow___68h4h", Co = "lamp-switch-module__gray___omIlV", Eo = "lamp-switch-module__red___1NqKe", zo = "lamp-switch-module__dark___muS53", To = "lamp-switch-module__sm___iu8wH", Fo = "lamp-switch-module__md___xcpKC", Ko = "lamp-switch-module__lg___vpOur", K = {
345
+ control: vo,
346
+ disabled: go,
347
+ input: yo,
347
348
  switch: "lamp-switch-module__switch___kZ7oI",
348
- bezel: go,
349
- socket: yo,
350
- glow: $o,
351
- knob: wo,
352
- labels: ko,
353
- off: No,
354
- on: xo,
355
- divider: Mo,
356
- text: Do,
357
- green: Io,
358
- yellow: Bo,
359
- gray: Lo,
360
- red: So,
361
- dark: Co,
362
- sm: Eo,
363
- md: zo,
364
- lg: To
365
- }, h_ = E(function({ tone: t = "green", size: n = "md", label: s, id: l, className: a, disabled: i, ...r }, p) {
366
- const m = R(), _ = l ?? `fui-lamp-switch-${m}`;
367
- return /* @__PURE__ */ f("label", { htmlFor: _, className: d(F.control, i && F.disabled, a), children: [
349
+ bezel: $o,
350
+ socket: wo,
351
+ glow: ko,
352
+ knob: No,
353
+ labels: xo,
354
+ off: Mo,
355
+ on: Do,
356
+ divider: Io,
357
+ text: Bo,
358
+ green: Lo,
359
+ yellow: So,
360
+ gray: Co,
361
+ red: Eo,
362
+ dark: zo,
363
+ sm: To,
364
+ md: Fo,
365
+ lg: Ko
366
+ }, $_ = z(function({ tone: t = "green", size: n = "md", label: l, id: s, className: a, disabled: d, ...r }, u) {
367
+ const m = R(), c = s ?? `fui-lamp-switch-${m}`;
368
+ return /* @__PURE__ */ b("label", { htmlFor: c, className: _(K.control, d && K.disabled, a), children: [
368
369
  /* @__PURE__ */ e(
369
370
  "input",
370
371
  {
371
- ref: p,
372
- id: _,
372
+ ref: u,
373
+ id: c,
373
374
  type: "checkbox",
374
- className: F.input,
375
- disabled: i,
375
+ className: K.input,
376
+ disabled: d,
376
377
  ...r
377
378
  }
378
379
  ),
379
- /* @__PURE__ */ f("span", { className: d(F.switch, F[n], F[t]), "aria-hidden": "true", children: [
380
- /* @__PURE__ */ e("span", { className: F.bezel }),
381
- /* @__PURE__ */ e("span", { className: F.socket }),
382
- /* @__PURE__ */ e("span", { className: F.glow }),
383
- /* @__PURE__ */ e("span", { className: F.knob }),
384
- /* @__PURE__ */ f("span", { className: F.labels, children: [
385
- /* @__PURE__ */ e("span", { className: F.off, children: "O" }),
386
- /* @__PURE__ */ e("span", { className: F.on, children: "I" })
380
+ /* @__PURE__ */ b("span", { className: _(K.switch, K[n], K[t]), "aria-hidden": "true", children: [
381
+ /* @__PURE__ */ e("span", { className: K.bezel }),
382
+ /* @__PURE__ */ e("span", { className: K.socket }),
383
+ /* @__PURE__ */ e("span", { className: K.glow }),
384
+ /* @__PURE__ */ e("span", { className: K.knob }),
385
+ /* @__PURE__ */ b("span", { className: K.labels, children: [
386
+ /* @__PURE__ */ e("span", { className: K.off, children: "O" }),
387
+ /* @__PURE__ */ e("span", { className: K.on, children: "I" })
387
388
  ] }),
388
- /* @__PURE__ */ e("span", { className: F.divider })
389
+ /* @__PURE__ */ e("span", { className: K.divider })
389
390
  ] }),
390
- s && /* @__PURE__ */ e("span", { className: F.text, children: s })
391
+ l && /* @__PURE__ */ e("span", { className: K.text, children: l })
391
392
  ] });
392
- }), Fo = "lamp-status-module__lampStatus___RQuyf", Ko = "lamp-status-module__lamp___4-Pqb", Ro = "lamp-status-module__bezel___iW-i1", Po = "lamp-status-module__socket___XVX5p", Ao = "lamp-status-module__surface___s0XbK", Oo = "lamp-status-module__green___2Ftjw", Go = "lamp-status-module__yellow___UPxo-", jo = "lamp-status-module__red___DEvbK", Yo = "lamp-status-module__dark___mc6PP", Ho = "lamp-status-module__pulse___j6DB9", qo = "lamp-status-module__fui-lamp-pulse___d9PZT", Uo = "lamp-status-module__text___2b1w4", J = {
393
- lampStatus: Fo,
394
- lamp: Ko,
395
- bezel: Ro,
396
- socket: Po,
397
- surface: Ao,
398
- green: Oo,
399
- yellow: Go,
400
- red: jo,
401
- dark: Yo,
402
- pulse: Ho,
403
- fuiLampPulse: qo,
404
- text: Uo
405
- }, Wo = {
393
+ }), Po = "lamp-status-module__lampStatus___RQuyf", Ro = "lamp-status-module__lamp___4-Pqb", Oo = "lamp-status-module__bezel___iW-i1", Ao = "lamp-status-module__socket___XVX5p", Go = "lamp-status-module__surface___s0XbK", jo = "lamp-status-module__green___2Ftjw", Yo = "lamp-status-module__yellow___UPxo-", Ho = "lamp-status-module__red___DEvbK", qo = "lamp-status-module__dark___mc6PP", Uo = "lamp-status-module__pulse___j6DB9", Wo = "lamp-status-module__fui-lamp-pulse___d9PZT", Zo = "lamp-status-module__text___2b1w4", te = {
394
+ lampStatus: Po,
395
+ lamp: Ro,
396
+ bezel: Oo,
397
+ socket: Ao,
398
+ surface: Go,
399
+ green: jo,
400
+ yellow: Yo,
401
+ red: Ho,
402
+ dark: qo,
403
+ pulse: Uo,
404
+ fuiLampPulse: Wo,
405
+ text: Zo
406
+ }, Vo = {
406
407
  running: { tone: "green", label: "Running", pulse: !0 },
407
408
  stopped: { tone: "dark", label: "Stopped", pulse: !1 },
408
409
  error: { tone: "red", label: "Error", pulse: !1 },
409
410
  initializing: { tone: "yellow", label: "Starting", pulse: !0 }
410
411
  };
411
- function b_({ status: o, label: t, className: n, ...s }) {
412
- const l = Wo[o];
413
- return /* @__PURE__ */ f("output", { className: d(J.lampStatus, n), ...s, children: [
414
- /* @__PURE__ */ f("span", { className: J.lamp, children: [
415
- /* @__PURE__ */ e("span", { className: J.bezel }),
416
- /* @__PURE__ */ e("span", { className: J.socket }),
417
- /* @__PURE__ */ e("span", { className: d(J.surface, J[l.tone], l.pulse && J.pulse) })
412
+ function w_({ status: o, label: t, className: n, ...l }) {
413
+ const s = Vo[o];
414
+ return /* @__PURE__ */ b("output", { className: _(te.lampStatus, n), ...l, children: [
415
+ /* @__PURE__ */ b("span", { className: te.lamp, children: [
416
+ /* @__PURE__ */ e("span", { className: te.bezel }),
417
+ /* @__PURE__ */ e("span", { className: te.socket }),
418
+ /* @__PURE__ */ e("span", { className: _(te.surface, te[s.tone], s.pulse && te.pulse) })
418
419
  ] }),
419
- /* @__PURE__ */ e("span", { className: d(J.text, J[l.tone]), children: t ?? l.label })
420
+ /* @__PURE__ */ e("span", { className: _(te.text, te[s.tone]), children: t ?? s.label })
420
421
  ] });
421
422
  }
422
- const Zo = "lamp-meter-module__lampMeter___KJEsA", Xo = "lamp-meter-module__header___mcKTY", Vo = "lamp-meter-module__label___8YEo9", Jo = "lamp-meter-module__value___kL376", Qo = "lamp-meter-module__bar___tYmz5", en = "lamp-meter-module__bezel___yUT9m", tn = "lamp-meter-module__track___qwoyr", on = "lamp-meter-module__lamps___nE9i-", nn = "lamp-meter-module__lamp___jRJoT", ln = "lamp-meter-module__green___Vz-8B", sn = "lamp-meter-module__lit___WUO1g", an = "lamp-meter-module__partial___3-Om7", cn = "lamp-meter-module__yellow___xzkCV", rn = "lamp-meter-module__gray___EyYCs", _n = "lamp-meter-module__red___jhoIm", dn = "lamp-meter-module__dark___Dcxyc", un = "lamp-meter-module__sm___iYqDJ", mn = "lamp-meter-module__md___XPzch", pn = "lamp-meter-module__lg___NJDT4", hn = "lamp-meter-module__fullWidth___qlY91", P = {
423
- lampMeter: Zo,
424
- header: Xo,
425
- label: Vo,
426
- value: Jo,
427
- bar: Qo,
428
- bezel: en,
429
- track: tn,
430
- lamps: on,
431
- lamp: nn,
432
- green: ln,
433
- lit: sn,
434
- partial: an,
435
- yellow: cn,
436
- gray: rn,
437
- red: _n,
438
- dark: dn,
439
- sm: un,
440
- md: mn,
441
- lg: pn,
442
- fullWidth: hn
423
+ const Xo = "lamp-meter-module__lampMeter___KJEsA", Jo = "lamp-meter-module__header___mcKTY", Qo = "lamp-meter-module__label___8YEo9", en = "lamp-meter-module__value___kL376", tn = "lamp-meter-module__bar___tYmz5", on = "lamp-meter-module__bezel___yUT9m", nn = "lamp-meter-module__track___qwoyr", ln = "lamp-meter-module__lamps___nE9i-", sn = "lamp-meter-module__lamp___jRJoT", an = "lamp-meter-module__green___Vz-8B", cn = "lamp-meter-module__lit___WUO1g", rn = "lamp-meter-module__partial___3-Om7", _n = "lamp-meter-module__yellow___xzkCV", dn = "lamp-meter-module__gray___EyYCs", un = "lamp-meter-module__red___jhoIm", mn = "lamp-meter-module__dark___Dcxyc", pn = "lamp-meter-module__sm___iYqDJ", hn = "lamp-meter-module__md___XPzch", bn = "lamp-meter-module__lg___NJDT4", fn = "lamp-meter-module__fullWidth___qlY91", G = {
424
+ lampMeter: Xo,
425
+ header: Jo,
426
+ label: Qo,
427
+ value: en,
428
+ bar: tn,
429
+ bezel: on,
430
+ track: nn,
431
+ lamps: ln,
432
+ lamp: sn,
433
+ green: an,
434
+ lit: cn,
435
+ partial: rn,
436
+ yellow: _n,
437
+ gray: dn,
438
+ red: un,
439
+ dark: mn,
440
+ sm: pn,
441
+ md: hn,
442
+ lg: bn,
443
+ fullWidth: fn
443
444
  };
444
- function f_({
445
+ function k_({
445
446
  value: o,
446
447
  max: t = 100,
447
448
  tone: n = "green",
448
- size: s = "md",
449
- lampCount: l = 10,
449
+ size: l = "md",
450
+ lampCount: s = 10,
450
451
  label: a,
451
- showValue: i = !1,
452
+ showValue: d = !1,
452
453
  fullWidth: r = !1,
453
- className: p,
454
+ className: u,
454
455
  style: m,
455
- ..._
456
+ ...c
456
457
  }) {
457
- const h = t > 0 ? Math.max(0, Math.min(o, t)) : 0, u = t > 0 ? h / t : 0, v = Math.round(u * 100), b = u * l, y = Math.floor(b), g = b - y, k = Array.from({ length: l }, (w, x) => ({
458
- id: `lamp-${x}`,
459
- index: x
458
+ const p = t > 0 ? Math.max(0, Math.min(o, t)) : 0, i = t > 0 ? p / t : 0, v = Math.round(i * 100), h = i * s, g = Math.floor(h), y = h - g, N = Array.from({ length: s }, ($, M) => ({
459
+ id: `lamp-${M}`,
460
+ index: M
460
461
  }));
461
- return /* @__PURE__ */ f(
462
+ return /* @__PURE__ */ b(
462
463
  "span",
463
464
  {
464
465
  role: "progressbar",
465
466
  "aria-label": a ?? "Progress",
466
467
  "aria-valuemin": 0,
467
468
  "aria-valuemax": t,
468
- "aria-valuenow": h,
469
- className: d(P.lampMeter, r && P.fullWidth, p),
470
- style: { "--fui-lamp-count": l, ...m },
471
- ..._,
469
+ "aria-valuenow": p,
470
+ className: _(G.lampMeter, r && G.fullWidth, u),
471
+ style: { "--fui-lamp-count": s, ...m },
472
+ ...c,
472
473
  children: [
473
- (a != null || i) && /* @__PURE__ */ f("span", { className: P.header, children: [
474
- /* @__PURE__ */ e("span", { className: P.label, children: a }),
475
- i && /* @__PURE__ */ f("span", { className: P.value, children: [
474
+ (a != null || d) && /* @__PURE__ */ b("span", { className: G.header, children: [
475
+ /* @__PURE__ */ e("span", { className: G.label, children: a }),
476
+ d && /* @__PURE__ */ b("span", { className: G.value, children: [
476
477
  v,
477
478
  "%"
478
479
  ] })
479
480
  ] }),
480
- /* @__PURE__ */ f("span", { className: d(P.bar, P[s]), children: [
481
- /* @__PURE__ */ e("span", { className: P.bezel }),
482
- /* @__PURE__ */ e("span", { className: P.track, children: /* @__PURE__ */ e("span", { className: P.lamps, children: k.map((w) => {
483
- const x = w.index === y && g > 0;
481
+ /* @__PURE__ */ b("span", { className: _(G.bar, G[l]), children: [
482
+ /* @__PURE__ */ e("span", { className: G.bezel }),
483
+ /* @__PURE__ */ e("span", { className: G.track, children: /* @__PURE__ */ e("span", { className: G.lamps, children: N.map(($) => {
484
+ const M = $.index === g && y > 0;
484
485
  return /* @__PURE__ */ e(
485
486
  "span",
486
487
  {
487
- className: d(
488
- P.lamp,
489
- P[n],
490
- w.index < y && P.lit,
491
- x && P.partial
488
+ className: _(
489
+ G.lamp,
490
+ G[n],
491
+ $.index < g && G.lit,
492
+ M && G.partial
492
493
  ),
493
- style: x ? { opacity: 0.3 + g * 0.7 } : void 0
494
+ style: M ? { opacity: 0.3 + y * 0.7 } : void 0
494
495
  },
495
- w.id
496
+ $.id
496
497
  );
497
498
  }) }) })
498
499
  ] })
@@ -500,136 +501,136 @@ function f_({
500
501
  }
501
502
  );
502
503
  }
503
- const bn = "link-button-module__linkButton___q-Uot", fn = "link-button-module__inherit___7pKrk", vn = "link-button-module__accent___rgB7A", gn = "link-button-module__sm___zPqj6", yn = "link-button-module__md___M0cWx", $n = "link-button-module__lg___ZoNuc", wn = "link-button-module__iconSlot___-fGhm", me = {
504
- linkButton: bn,
505
- inherit: fn,
506
- accent: vn,
507
- sm: gn,
508
- md: yn,
509
- lg: $n,
510
- iconSlot: wn
511
- }, v_ = E(function({ color: t = "accent", size: n = "md", icon: s, iconRight: l, className: a, children: i, ...r }, p) {
512
- return /* @__PURE__ */ f(
504
+ const vn = "link-button-module__linkButton___q-Uot", gn = "link-button-module__inherit___7pKrk", yn = "link-button-module__accent___rgB7A", $n = "link-button-module__sm___zPqj6", wn = "link-button-module__md___M0cWx", kn = "link-button-module__lg___ZoNuc", Nn = "link-button-module__iconSlot___-fGhm", be = {
505
+ linkButton: vn,
506
+ inherit: gn,
507
+ accent: yn,
508
+ sm: $n,
509
+ md: wn,
510
+ lg: kn,
511
+ iconSlot: Nn
512
+ }, N_ = z(function({ color: t = "accent", size: n = "md", icon: l, iconRight: s, className: a, children: d, ...r }, u) {
513
+ return /* @__PURE__ */ b(
513
514
  "button",
514
515
  {
515
- ref: p,
516
+ ref: u,
516
517
  type: "button",
517
- className: d(me.linkButton, me[t], me[n], a),
518
+ className: _(be.linkButton, be[t], be[n], a),
518
519
  ...r,
519
520
  children: [
520
- s && /* @__PURE__ */ e("span", { className: me.iconSlot, children: s }),
521
- i,
522
- l && /* @__PURE__ */ e("span", { className: me.iconSlot, children: l })
521
+ l && /* @__PURE__ */ e("span", { className: be.iconSlot, children: l }),
522
+ d,
523
+ s && /* @__PURE__ */ e("span", { className: be.iconSlot, children: s })
523
524
  ]
524
525
  }
525
526
  );
526
- }), kn = "stamp-module__stamp___5qaNY", Nn = "stamp-module__dot___qZyCR", xn = "stamp-module__neutral___6CXei", Mn = "stamp-module__info___hH0OA", Dn = "stamp-module__success___vtscx", In = "stamp-module__warning___H6sZS", Bn = "stamp-module__error___G-HEQ", Ln = "stamp-module__sm___N-jia", Sn = "stamp-module__md___Cz5Vg", xe = {
527
- stamp: kn,
528
- dot: Nn,
529
- neutral: xn,
530
- info: Mn,
531
- success: Dn,
532
- warning: In,
533
- error: Bn,
534
- sm: Ln,
535
- md: Sn
527
+ }), xn = "stamp-module__stamp___5qaNY", Mn = "stamp-module__dot___qZyCR", Dn = "stamp-module__neutral___6CXei", In = "stamp-module__info___hH0OA", Bn = "stamp-module__success___vtscx", Ln = "stamp-module__warning___H6sZS", Sn = "stamp-module__error___G-HEQ", Cn = "stamp-module__sm___N-jia", En = "stamp-module__md___Cz5Vg", De = {
528
+ stamp: xn,
529
+ dot: Mn,
530
+ neutral: Dn,
531
+ info: In,
532
+ success: Bn,
533
+ warning: Ln,
534
+ error: Sn,
535
+ sm: Cn,
536
+ md: En
536
537
  };
537
- function g_({
538
+ function x_({
538
539
  variant: o = "neutral",
539
540
  size: t = "sm",
540
541
  dot: n = !1,
541
- fillColor: s,
542
- textColor: l,
542
+ fillColor: l,
543
+ textColor: s,
543
544
  onClick: a,
544
- className: i,
545
+ className: d,
545
546
  style: r,
546
- children: p,
547
+ children: u,
547
548
  ...m
548
549
  }) {
549
- const _ = a ? "button" : "span", h = s || l ? { backgroundColor: s, color: l } : void 0;
550
- return /* @__PURE__ */ f(
551
- _,
550
+ const c = a ? "button" : "span", p = l || s ? { backgroundColor: l, color: s } : void 0;
551
+ return /* @__PURE__ */ b(
552
+ c,
552
553
  {
553
554
  type: a ? "button" : void 0,
554
555
  onClick: a,
555
- className: d(xe.stamp, xe[o], xe[t], i),
556
- style: { ...h, ...r },
556
+ className: _(De.stamp, De[o], De[t], d),
557
+ style: { ...p, ...r },
557
558
  ...m,
558
559
  children: [
559
- n && /* @__PURE__ */ e("span", { className: xe.dot, "aria-hidden": !0 }),
560
- p
560
+ n && /* @__PURE__ */ e("span", { className: De.dot, "aria-hidden": !0 }),
561
+ u
561
562
  ]
562
563
  }
563
564
  );
564
565
  }
565
- const Cn = "tooltip-module__tooltip___e-rkz", En = "tooltip-module__ready___LI2J6", je = {
566
- tooltip: Cn,
567
- ready: En
568
- }, Me = 8, De = 8;
569
- function Ie(o, t) {
566
+ const zn = "tooltip-module__tooltip___e-rkz", Tn = "tooltip-module__ready___LI2J6", je = {
567
+ tooltip: zn,
568
+ ready: Tn
569
+ }, Ie = 8, Be = 8;
570
+ function Le(o, t) {
570
571
  return (n) => {
571
572
  typeof o == "function" && o(n), t(n);
572
573
  };
573
574
  }
574
- function y_({ content: o, children: t, placement: n = "top", delay: s = 300 }) {
575
- const l = R(), [a, i] = O(!1), [r, p] = O(null), m = C(null), _ = C(null), h = C(void 0), u = Ke(() => {
576
- window.clearTimeout(h.current), i(!1), p(null);
575
+ function M_({ content: o, children: t, placement: n = "top", delay: l = 300 }) {
576
+ const s = R(), [a, d] = Y(!1), [r, u] = Y(null), m = E(null), c = E(null), p = E(void 0), i = Pe(() => {
577
+ window.clearTimeout(p.current), d(!1), u(null);
577
578
  }, []);
578
- ee(() => () => window.clearTimeout(h.current), []), ee(() => {
579
+ le(() => () => window.clearTimeout(p.current), []), le(() => {
579
580
  if (!a) return;
580
- const w = (x) => {
581
- x.key === "Escape" && u();
581
+ const $ = (M) => {
582
+ M.key === "Escape" && i();
582
583
  };
583
- return window.addEventListener("keydown", w), window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
584
- window.removeEventListener("keydown", w), window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
584
+ return window.addEventListener("keydown", $), window.addEventListener("scroll", i, !0), window.addEventListener("resize", i), () => {
585
+ window.removeEventListener("keydown", $), window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", i);
585
586
  };
586
- }, [a, u]), Qe(() => {
587
+ }, [a, i]), et(() => {
587
588
  if (!a) return;
588
- const w = _.current, x = m.current;
589
- if (!w || !x) return;
590
- const D = x.getBoundingClientRect();
591
- let B, L;
589
+ const $ = c.current, M = m.current;
590
+ if (!$ || !M) return;
591
+ const D = M.getBoundingClientRect();
592
+ let S, C;
592
593
  switch (n) {
593
594
  case "bottom":
594
- B = w.bottom + Me, L = w.left + w.width / 2 - D.width / 2;
595
+ S = $.bottom + Ie, C = $.left + $.width / 2 - D.width / 2;
595
596
  break;
596
597
  case "left":
597
- B = w.top + w.height / 2 - D.height / 2, L = w.left - D.width - Me;
598
+ S = $.top + $.height / 2 - D.height / 2, C = $.left - D.width - Ie;
598
599
  break;
599
600
  case "right":
600
- B = w.top + w.height / 2 - D.height / 2, L = w.right + Me;
601
+ S = $.top + $.height / 2 - D.height / 2, C = $.right + Ie;
601
602
  break;
602
603
  default:
603
- B = w.top - D.height - Me, L = w.left + w.width / 2 - D.width / 2;
604
+ S = $.top - D.height - Ie, C = $.left + $.width / 2 - D.width / 2;
604
605
  }
605
- L = Math.min(Math.max(L, De), window.innerWidth - D.width - De), B = Math.min(Math.max(B, De), window.innerHeight - D.height - De), p({ top: B, left: L });
606
+ C = Math.min(Math.max(C, Be), window.innerWidth - D.width - Be), S = Math.min(Math.max(S, Be), window.innerHeight - D.height - Be), u({ top: S, left: C });
606
607
  }, [a, n]);
607
- const v = o == null || o === !1 || o === "", b = et.only(t), y = b.props, g = (w) => {
608
- _.current = w.getBoundingClientRect(), i(!0);
608
+ const v = o == null || o === !1 || o === "", h = tt.only(t), g = h.props, y = ($) => {
609
+ c.current = $.getBoundingClientRect(), d(!0);
609
610
  };
610
611
  if (v) return t;
611
- const k = tt(b, {
612
- onMouseEnter: Ie(y.onMouseEnter, (w) => {
613
- const x = w.currentTarget;
614
- window.clearTimeout(h.current), h.current = window.setTimeout(() => g(x), s);
612
+ const N = He(h, {
613
+ onMouseEnter: Le(g.onMouseEnter, ($) => {
614
+ const M = $.currentTarget;
615
+ window.clearTimeout(p.current), p.current = window.setTimeout(() => y(M), l);
615
616
  }),
616
- onMouseLeave: Ie(y.onMouseLeave, u),
617
- onFocus: Ie(y.onFocus, (w) => {
618
- g(w.currentTarget);
617
+ onMouseLeave: Le(g.onMouseLeave, i),
618
+ onFocus: Le(g.onFocus, ($) => {
619
+ y($.currentTarget);
619
620
  }),
620
- onBlur: Ie(y.onBlur, u),
621
- "aria-describedby": a ? l : y["aria-describedby"]
621
+ onBlur: Le(g.onBlur, i),
622
+ "aria-describedby": a ? s : g["aria-describedby"]
622
623
  });
623
- return /* @__PURE__ */ f(K, { children: [
624
- k,
625
- a && Ce(
624
+ return /* @__PURE__ */ b(P, { children: [
625
+ N,
626
+ a && ze(
626
627
  /* @__PURE__ */ e(
627
628
  "div",
628
629
  {
629
630
  ref: m,
630
- id: l,
631
+ id: s,
631
632
  role: "tooltip",
632
- className: d(je.tooltip, r && je.ready),
633
+ className: _(je.tooltip, r && je.ready),
633
634
  style: r ? { top: r.top, left: r.left } : void 0,
634
635
  children: o
635
636
  }
@@ -638,576 +639,576 @@ function y_({ content: o, children: t, placement: n = "top", delay: s = 300 }) {
638
639
  )
639
640
  ] });
640
641
  }
641
- const He = ot(null), zn = "toast-module__stack___hDi0s", Tn = "toast-module__top-left___rIwtH", Fn = "toast-module__top-center___OapVt", Kn = "toast-module__top-right___Ci4Ki", Rn = "toast-module__bottom-left___y6xhK", Pn = "toast-module__bottom-center___yYVrc", An = "toast-module__bottom-right___JeMil", On = "toast-module__toast___y1lVX", Gn = "toast-module__toast-in___TYYwQ", jn = "toast-module__title___1Oqh8", Yn = "toast-module__description___eiUSB", Hn = "toast-module__close___IDukn", qn = "toast-module__info___Nh8S9", Un = "toast-module__success___hlKLc", Wn = "toast-module__warning___XUMJt", Zn = "toast-module__error___pSFFC", le = {
642
- stack: zn,
643
- topLeft: Tn,
644
- topCenter: Fn,
645
- topRight: Kn,
646
- bottomLeft: Rn,
647
- bottomCenter: Pn,
648
- bottomRight: An,
649
- toast: On,
650
- toastIn: Gn,
651
- title: jn,
652
- description: Yn,
653
- close: Hn,
654
- info: qn,
655
- success: Un,
656
- warning: Wn,
657
- error: Zn
642
+ const qe = ot(null), Fn = "toast-module__stack___hDi0s", Kn = "toast-module__top-left___rIwtH", Pn = "toast-module__top-center___OapVt", Rn = "toast-module__top-right___Ci4Ki", On = "toast-module__bottom-left___y6xhK", An = "toast-module__bottom-center___yYVrc", Gn = "toast-module__bottom-right___JeMil", jn = "toast-module__toast___y1lVX", Yn = "toast-module__toast-in___TYYwQ", Hn = "toast-module__title___1Oqh8", qn = "toast-module__description___eiUSB", Un = "toast-module__close___IDukn", Wn = "toast-module__info___Nh8S9", Zn = "toast-module__success___hlKLc", Vn = "toast-module__warning___XUMJt", Xn = "toast-module__error___pSFFC", re = {
643
+ stack: Fn,
644
+ topLeft: Kn,
645
+ topCenter: Pn,
646
+ topRight: Rn,
647
+ bottomLeft: On,
648
+ bottomCenter: An,
649
+ bottomRight: Gn,
650
+ toast: jn,
651
+ toastIn: Yn,
652
+ title: Hn,
653
+ description: qn,
654
+ close: Un,
655
+ info: Wn,
656
+ success: Zn,
657
+ warning: Vn,
658
+ error: Xn
658
659
  };
659
- function $_({
660
+ function D_({
660
661
  children: o,
661
662
  position: t = "bottom-right",
662
663
  defaultDuration: n = 5e3
663
664
  }) {
664
- const [s, l] = O([]), a = C(/* @__PURE__ */ new Map()), i = C(0), r = Ke((_) => {
665
- l((u) => u.filter((v) => v.id !== _));
666
- const h = a.current.get(_);
667
- h !== void 0 && (window.clearTimeout(h), a.current.delete(_));
668
- }, []), p = Ke(
669
- (_) => {
670
- i.current += 1;
671
- const h = `fui-toast-${i.current}`;
672
- l((v) => [
665
+ const [l, s] = Y([]), a = E(/* @__PURE__ */ new Map()), d = E(0), r = Pe((c) => {
666
+ s((i) => i.filter((v) => v.id !== c));
667
+ const p = a.current.get(c);
668
+ p !== void 0 && (window.clearTimeout(p), a.current.delete(c));
669
+ }, []), u = Pe(
670
+ (c) => {
671
+ d.current += 1;
672
+ const p = `fui-toast-${d.current}`;
673
+ s((v) => [
673
674
  ...v,
674
675
  {
675
- id: h,
676
- title: _.title,
677
- description: _.description,
678
- variant: _.variant ?? "info"
676
+ id: p,
677
+ title: c.title,
678
+ description: c.description,
679
+ variant: c.variant ?? "info"
679
680
  }
680
681
  ]);
681
- const u = _.duration ?? n;
682
- return u > 0 && a.current.set(
683
- h,
684
- window.setTimeout(() => r(h), u)
685
- ), h;
682
+ const i = c.duration ?? n;
683
+ return i > 0 && a.current.set(
684
+ p,
685
+ window.setTimeout(() => r(p), i)
686
+ ), p;
686
687
  },
687
688
  [n, r]
688
689
  );
689
- ee(() => {
690
- const _ = a.current;
690
+ le(() => {
691
+ const c = a.current;
691
692
  return () => {
692
- for (const h of _.values()) window.clearTimeout(h);
693
+ for (const p of c.values()) window.clearTimeout(p);
693
694
  };
694
695
  }, []);
695
- const m = Re(() => ({ toast: p, dismiss: r }), [p, r]);
696
- return /* @__PURE__ */ f(He.Provider, { value: m, children: [
696
+ const m = Re(() => ({ toast: u, dismiss: r }), [u, r]);
697
+ return /* @__PURE__ */ b(qe.Provider, { value: m, children: [
697
698
  o,
698
- Ce(
699
- /* @__PURE__ */ e("div", { className: d(le.stack, le[t]), children: s.map((_) => /* @__PURE__ */ f(
699
+ ze(
700
+ /* @__PURE__ */ e("div", { className: _(re.stack, re[t]), children: l.map((c) => /* @__PURE__ */ b(
700
701
  "div",
701
702
  {
702
- role: _.variant === "error" ? "alert" : "status",
703
- className: d(le.toast, le[_.variant]),
703
+ role: c.variant === "error" ? "alert" : "status",
704
+ className: _(re.toast, re[c.variant]),
704
705
  children: [
705
- _.title && /* @__PURE__ */ e("p", { className: le.title, children: _.title }),
706
- _.description && /* @__PURE__ */ e("p", { className: le.description, children: _.description }),
706
+ c.title && /* @__PURE__ */ e("p", { className: re.title, children: c.title }),
707
+ c.description && /* @__PURE__ */ e("p", { className: re.description, children: c.description }),
707
708
  /* @__PURE__ */ e(
708
709
  "button",
709
710
  {
710
711
  type: "button",
711
712
  "aria-label": "Dismiss",
712
- className: le.close,
713
- onClick: () => r(_.id),
713
+ className: re.close,
714
+ onClick: () => r(c.id),
714
715
  children: "×"
715
716
  }
716
717
  )
717
718
  ]
718
719
  },
719
- _.id
720
+ c.id
720
721
  )) }),
721
722
  document.body
722
723
  )
723
724
  ] });
724
725
  }
725
- function w_() {
726
- const o = nt(He);
726
+ function I_() {
727
+ const o = nt(qe);
727
728
  if (!o) throw new Error("useToast must be used within a <ToastProvider>");
728
729
  return o;
729
730
  }
730
- const Xn = "card-module__card___HG0v6", Vn = "card-module__interactive___lCSFj", Jn = "card-module__sm___ug17X", Qn = "card-module__md___BAzpC", el = "card-module__title___9LIjW", tl = "card-module__body___b17cz", fe = {
731
- card: Xn,
732
- interactive: Vn,
733
- sm: Jn,
734
- md: Qn,
735
- title: el,
736
- body: tl
731
+ const Jn = "card-module__card___HG0v6", Qn = "card-module__interactive___lCSFj", el = "card-module__sm___ug17X", tl = "card-module__md___BAzpC", ol = "card-module__title___9LIjW", nl = "card-module__body___b17cz", ye = {
732
+ card: Jn,
733
+ interactive: Qn,
734
+ sm: el,
735
+ md: tl,
736
+ title: ol,
737
+ body: nl
737
738
  };
738
- function ol(o) {
739
+ function ll(o) {
739
740
  o.target === o.currentTarget && (o.key === "Enter" || o.key === " ") && (o.preventDefault(), o.currentTarget.click());
740
741
  }
741
- function nl({ size: o = "md", onClick: t, className: n, children: s, ...l }) {
742
+ function sl({ size: o = "md", onClick: t, className: n, children: l, ...s }) {
742
743
  const a = t != null;
743
744
  return /* @__PURE__ */ e(
744
745
  "div",
745
746
  {
746
- className: d(fe.card, fe[o], a && fe.interactive, n),
747
+ className: _(ye.card, ye[o], a && ye.interactive, n),
747
748
  onClick: t,
748
- ...a ? { role: "button", tabIndex: 0, onKeyDown: ol } : void 0,
749
- ...l,
750
- children: s
749
+ ...a ? { role: "button", tabIndex: 0, onKeyDown: ll } : void 0,
750
+ ...s,
751
+ children: l
751
752
  }
752
753
  );
753
754
  }
754
- function ll({ className: o, children: t, ...n }) {
755
- return /* @__PURE__ */ e("h3", { className: d(fe.title, o), ...n, children: t });
755
+ function al({ className: o, children: t, ...n }) {
756
+ return /* @__PURE__ */ e("h3", { className: _(ye.title, o), ...n, children: t });
756
757
  }
757
- function sl({ className: o, children: t, ...n }) {
758
- return /* @__PURE__ */ e("p", { className: d(fe.body, o), ...n, children: t });
758
+ function cl({ className: o, children: t, ...n }) {
759
+ return /* @__PURE__ */ e("p", { className: _(ye.body, o), ...n, children: t });
759
760
  }
760
- const k_ = Object.assign(nl, { Title: ll, Body: sl }), al = "input-module__field___khFpX", cl = "input-module__label___lu7R1", rl = "input-module__input___h7K-F", _l = "input-module__invalid___Iaiq7", dl = "input-module__md___-HF8v", il = "input-module__sm___YZFhc", ul = "input-module__message___0KmBb", ml = "input-module__error___QDqga", se = {
761
- field: al,
762
- label: cl,
763
- input: rl,
764
- invalid: _l,
765
- md: dl,
766
- sm: il,
767
- message: ul,
768
- error: ml
769
- }, N_ = E(function({ label: t, helperText: n, error: s, size: l = "md", id: a, className: i, ...r }, p) {
770
- const m = R(), _ = a ?? `fui-input-${m}`, h = `fui-input-message-${m}`, u = s != null, v = u ? s : n;
771
- return /* @__PURE__ */ f("div", { className: d(se.field, i), children: [
772
- t && /* @__PURE__ */ e("label", { htmlFor: _, className: se.label, children: t }),
761
+ const B_ = Object.assign(sl, { Title: al, Body: cl }), rl = "input-module__field___khFpX", _l = "input-module__label___lu7R1", dl = "input-module__input___h7K-F", il = "input-module__invalid___Iaiq7", ul = "input-module__md___-HF8v", ml = "input-module__sm___YZFhc", pl = "input-module__message___0KmBb", hl = "input-module__error___QDqga", _e = {
762
+ field: rl,
763
+ label: _l,
764
+ input: dl,
765
+ invalid: il,
766
+ md: ul,
767
+ sm: ml,
768
+ message: pl,
769
+ error: hl
770
+ }, L_ = z(function({ label: t, helperText: n, error: l, size: s = "md", id: a, className: d, ...r }, u) {
771
+ const m = R(), c = a ?? `fui-input-${m}`, p = `fui-input-message-${m}`, i = l != null, v = i ? l : n;
772
+ return /* @__PURE__ */ b("div", { className: _(_e.field, d), children: [
773
+ t && /* @__PURE__ */ e("label", { htmlFor: c, className: _e.label, children: t }),
773
774
  /* @__PURE__ */ e(
774
775
  "input",
775
776
  {
776
- ref: p,
777
- id: _,
778
- className: d(se.input, se[l], u && se.invalid),
779
- "aria-invalid": u || void 0,
780
- "aria-describedby": v != null ? h : void 0,
777
+ ref: u,
778
+ id: c,
779
+ className: _(_e.input, _e[s], i && _e.invalid),
780
+ "aria-invalid": i || void 0,
781
+ "aria-describedby": v != null ? p : void 0,
781
782
  ...r
782
783
  }
783
784
  ),
784
- v != null && /* @__PURE__ */ e("p", { id: h, className: d(se.message, u && se.error), children: v })
785
+ v != null && /* @__PURE__ */ e("p", { id: p, className: _(_e.message, i && _e.error), children: v })
785
786
  ] });
786
- }), pl = "textarea-module__field___KluQf", hl = "textarea-module__label___ejhyZ", bl = "textarea-module__textarea___0y-7v", fl = "textarea-module__invalid___71TQR", vl = "textarea-module__md___88VHx", gl = "textarea-module__sm___W7F60", yl = "textarea-module__message___G-p-4", $l = "textarea-module__error___EkXKJ", ae = {
787
- field: pl,
788
- label: hl,
789
- textarea: bl,
790
- invalid: fl,
791
- md: vl,
792
- sm: gl,
793
- message: yl,
794
- error: $l
795
- }, x_ = E(function({ label: t, helperText: n, error: s, size: l = "md", id: a, className: i, ...r }, p) {
796
- const m = R(), _ = a ?? `fui-textarea-${m}`, h = `fui-textarea-message-${m}`, u = s != null, v = u ? s : n;
797
- return /* @__PURE__ */ f("div", { className: d(ae.field, i), children: [
798
- t && /* @__PURE__ */ e("label", { htmlFor: _, className: ae.label, children: t }),
787
+ }), bl = "textarea-module__field___KluQf", fl = "textarea-module__label___ejhyZ", vl = "textarea-module__textarea___0y-7v", gl = "textarea-module__invalid___71TQR", yl = "textarea-module__md___88VHx", $l = "textarea-module__sm___W7F60", wl = "textarea-module__message___G-p-4", kl = "textarea-module__error___EkXKJ", de = {
788
+ field: bl,
789
+ label: fl,
790
+ textarea: vl,
791
+ invalid: gl,
792
+ md: yl,
793
+ sm: $l,
794
+ message: wl,
795
+ error: kl
796
+ }, S_ = z(function({ label: t, helperText: n, error: l, size: s = "md", id: a, className: d, ...r }, u) {
797
+ const m = R(), c = a ?? `fui-textarea-${m}`, p = `fui-textarea-message-${m}`, i = l != null, v = i ? l : n;
798
+ return /* @__PURE__ */ b("div", { className: _(de.field, d), children: [
799
+ t && /* @__PURE__ */ e("label", { htmlFor: c, className: de.label, children: t }),
799
800
  /* @__PURE__ */ e(
800
801
  "textarea",
801
802
  {
802
- ref: p,
803
- id: _,
804
- className: d(ae.textarea, ae[l], u && ae.invalid),
805
- "aria-invalid": u || void 0,
806
- "aria-describedby": v != null ? h : void 0,
803
+ ref: u,
804
+ id: c,
805
+ className: _(de.textarea, de[s], i && de.invalid),
806
+ "aria-invalid": i || void 0,
807
+ "aria-describedby": v != null ? p : void 0,
807
808
  ...r
808
809
  }
809
810
  ),
810
- v != null && /* @__PURE__ */ e("p", { id: h, className: d(ae.message, u && ae.error), children: v })
811
+ v != null && /* @__PURE__ */ e("p", { id: p, className: _(de.message, i && de.error), children: v })
811
812
  ] });
812
- }), wl = "select-module__field___8gAFH", kl = "select-module__label___ay-3s", Nl = "select-module__control___gJhql", xl = "select-module__trigger___xMYHi", Ml = "select-module__placeholder___0VOFP", Dl = "select-module__value___S3Cae", Il = "select-module__arrow___i1IUe", Bl = "select-module__invalid___xa4uh", Ll = "select-module__md___R2uu2", Sl = "select-module__sm___cCEld", Cl = "select-module__list___o8hVj", El = "select-module__option___vNnue", zl = "select-module__active___055r4", Tl = "select-module__optionDisabled___ex2zq", Fl = "select-module__native___O1NJL", Kl = "select-module__message___9ddQu", Rl = "select-module__error___P5RBk", z = {
813
- field: wl,
814
- label: kl,
815
- control: Nl,
816
- trigger: xl,
817
- placeholder: Ml,
818
- value: Dl,
819
- arrow: Il,
820
- invalid: Bl,
821
- md: Ll,
822
- sm: Sl,
823
- list: Cl,
824
- option: El,
825
- active: zl,
826
- optionDisabled: Tl,
827
- native: Fl,
828
- message: Kl,
829
- error: Rl
830
- }, M_ = E(function({
813
+ }), Nl = "select-module__field___8gAFH", xl = "select-module__label___ay-3s", Ml = "select-module__control___gJhql", Dl = "select-module__trigger___xMYHi", Il = "select-module__placeholder___0VOFP", Bl = "select-module__value___S3Cae", Ll = "select-module__arrow___i1IUe", Sl = "select-module__invalid___xa4uh", Cl = "select-module__md___R2uu2", El = "select-module__sm___cCEld", zl = "select-module__list___o8hVj", Tl = "select-module__option___vNnue", Fl = "select-module__active___055r4", Kl = "select-module__optionDisabled___ex2zq", Pl = "select-module__native___O1NJL", Rl = "select-module__message___9ddQu", Ol = "select-module__error___P5RBk", T = {
814
+ field: Nl,
815
+ label: xl,
816
+ control: Ml,
817
+ trigger: Dl,
818
+ placeholder: Il,
819
+ value: Bl,
820
+ arrow: Ll,
821
+ invalid: Sl,
822
+ md: Cl,
823
+ sm: El,
824
+ list: zl,
825
+ option: Tl,
826
+ active: Fl,
827
+ optionDisabled: Kl,
828
+ native: Pl,
829
+ message: Rl,
830
+ error: Ol
831
+ }, C_ = z(function({
831
832
  options: t,
832
833
  value: n,
833
- defaultValue: s,
834
- onChange: l,
834
+ defaultValue: l,
835
+ onChange: s,
835
836
  label: a,
836
- helperText: i,
837
+ helperText: d,
837
838
  error: r,
838
- size: p = "md",
839
+ size: u = "md",
839
840
  placeholder: m = "Select…",
840
- disabled: _ = !1,
841
- name: h,
842
- required: u,
841
+ disabled: c = !1,
842
+ name: p,
843
+ required: i,
843
844
  id: v,
844
- className: b
845
- }, y) {
846
- const g = R(), k = v ?? `fui-select-${g}`, w = `fui-select-list-${g}`, x = `fui-select-message-${g}`, D = (N) => `${k}-option-${N}`, B = n !== void 0, [L, H] = O(s ?? ""), A = B ? n : L, [c, $] = O(!1), [M, S] = O(-1), _e = C(null), Pe = C(null), ve = r != null, Ee = ve ? r : i, ge = t.findIndex((N) => N.value === A), ye = ge >= 0 ? t[ge] : void 0, Ae = () => t.findIndex((N) => !N.disabled), Ue = () => {
847
- for (let N = t.length - 1; N >= 0; N--) if (!t[N].disabled) return N;
845
+ className: h
846
+ }, g) {
847
+ const y = R(), N = v ?? `fui-select-${y}`, $ = `fui-select-list-${y}`, M = `fui-select-message-${y}`, D = (x) => `${N}-option-${x}`, S = n !== void 0, [C, O] = Y(l ?? ""), j = S ? n : C, [I, w] = Y(!1), [B, f] = Y(-1), k = E(null), A = E(null), ae = r != null, W = ae ? r : d, $e = t.findIndex((x) => x.value === j), we = $e >= 0 ? t[$e] : void 0, Oe = () => t.findIndex((x) => !x.disabled), We = () => {
848
+ for (let x = t.length - 1; x >= 0; x--) if (!t[x].disabled) return x;
848
849
  return -1;
849
- }, We = (N) => {
850
- for (let I = N + 1; I < t.length; I++) if (!t[I].disabled) return I;
851
- return N;
852
- }, Ze = (N) => {
853
- for (let I = N - 1; I >= 0; I--) if (!t[I].disabled) return I;
854
- return N;
850
+ }, Ze = (x) => {
851
+ for (let L = x + 1; L < t.length; L++) if (!t[L].disabled) return L;
852
+ return x;
853
+ }, Ve = (x) => {
854
+ for (let L = x - 1; L >= 0; L--) if (!t[L].disabled) return L;
855
+ return x;
855
856
  };
856
- ee(() => {
857
- if (!c) return;
858
- const N = (I) => {
859
- var Oe;
860
- (Oe = _e.current) != null && Oe.contains(I.target) || $(!1);
857
+ le(() => {
858
+ if (!I) return;
859
+ const x = (L) => {
860
+ var Ae;
861
+ (Ae = k.current) != null && Ae.contains(L.target) || w(!1);
861
862
  };
862
- return window.addEventListener("pointerdown", N), () => window.removeEventListener("pointerdown", N);
863
- }, [c]);
864
- const $e = () => {
865
- S(ge >= 0 ? ge : Ae()), $(!0);
866
- }, ze = (N) => {
867
- var I;
868
- B || H(N), l == null || l(N), $(!1), (I = Pe.current) == null || I.focus();
869
- }, Xe = (N) => {
870
- switch (N.key) {
863
+ return window.addEventListener("pointerdown", x), () => window.removeEventListener("pointerdown", x);
864
+ }, [I]);
865
+ const ke = () => {
866
+ f($e >= 0 ? $e : Oe()), w(!0);
867
+ }, Te = (x) => {
868
+ var L;
869
+ S || O(x), s == null || s(x), w(!1), (L = A.current) == null || L.focus();
870
+ }, Xe = (x) => {
871
+ switch (x.key) {
871
872
  case "ArrowDown":
872
- N.preventDefault(), c ? S((I) => We(I)) : $e();
873
+ x.preventDefault(), I ? f((L) => Ze(L)) : ke();
873
874
  break;
874
875
  case "ArrowUp":
875
- N.preventDefault(), c ? S((I) => Ze(I)) : $e();
876
+ x.preventDefault(), I ? f((L) => Ve(L)) : ke();
876
877
  break;
877
878
  case "Home":
878
- c && (N.preventDefault(), S(Ae()));
879
+ I && (x.preventDefault(), f(Oe()));
879
880
  break;
880
881
  case "End":
881
- c && (N.preventDefault(), S(Ue()));
882
+ I && (x.preventDefault(), f(We()));
882
883
  break;
883
884
  case "Enter":
884
885
  case " ":
885
- N.preventDefault(), c && M >= 0 ? ze(t[M].value) : $e();
886
+ x.preventDefault(), I && B >= 0 ? Te(t[B].value) : ke();
886
887
  break;
887
888
  case "Escape":
888
- c && (N.preventDefault(), $(!1));
889
+ I && (x.preventDefault(), w(!1));
889
890
  break;
890
891
  case "Tab":
891
- c && $(!1);
892
+ I && w(!1);
892
893
  break;
893
894
  }
894
895
  };
895
- return /* @__PURE__ */ f("div", { ref: _e, className: d(z.field, b), children: [
896
- a && /* @__PURE__ */ e("label", { htmlFor: k, className: z.label, children: a }),
897
- /* @__PURE__ */ f("div", { className: z.control, children: [
898
- /* @__PURE__ */ f(
896
+ return /* @__PURE__ */ b("div", { ref: k, className: _(T.field, h), children: [
897
+ a && /* @__PURE__ */ e("label", { htmlFor: N, className: T.label, children: a }),
898
+ /* @__PURE__ */ b("div", { className: T.control, children: [
899
+ /* @__PURE__ */ b(
899
900
  "button",
900
901
  {
901
- ref: Pe,
902
+ ref: A,
902
903
  type: "button",
903
- id: k,
904
+ id: N,
904
905
  role: "combobox",
905
906
  "aria-haspopup": "listbox",
906
- "aria-expanded": c,
907
- "aria-controls": w,
908
- "aria-activedescendant": c && M >= 0 ? D(M) : void 0,
909
- "aria-invalid": ve || void 0,
910
- "aria-describedby": Ee != null ? x : void 0,
911
- disabled: _,
912
- className: d(
913
- z.trigger,
914
- z[p],
915
- ve && z.invalid,
916
- !ye && z.placeholder
907
+ "aria-expanded": I,
908
+ "aria-controls": $,
909
+ "aria-activedescendant": I && B >= 0 ? D(B) : void 0,
910
+ "aria-invalid": ae || void 0,
911
+ "aria-describedby": W != null ? M : void 0,
912
+ disabled: c,
913
+ className: _(
914
+ T.trigger,
915
+ T[u],
916
+ ae && T.invalid,
917
+ !we && T.placeholder
917
918
  ),
918
- onClick: () => c ? $(!1) : $e(),
919
+ onClick: () => I ? w(!1) : ke(),
919
920
  onKeyDown: Xe,
920
921
  children: [
921
- /* @__PURE__ */ e("span", { className: z.value, children: ye ? ye.label : m }),
922
- /* @__PURE__ */ e("span", { className: z.arrow, "aria-hidden": "true" })
922
+ /* @__PURE__ */ e("span", { className: T.value, children: we ? we.label : m }),
923
+ /* @__PURE__ */ e("span", { className: T.arrow, "aria-hidden": "true" })
923
924
  ]
924
925
  }
925
926
  ),
926
- c && /* @__PURE__ */ e("div", { id: w, role: "listbox", tabIndex: -1, className: z.list, children: t.map((N, I) => /* @__PURE__ */ e(
927
+ I && /* @__PURE__ */ e("div", { id: $, role: "listbox", tabIndex: -1, className: T.list, children: t.map((x, L) => /* @__PURE__ */ e(
927
928
  "button",
928
929
  {
929
930
  type: "button",
930
- id: D(I),
931
+ id: D(L),
931
932
  role: "option",
932
933
  tabIndex: -1,
933
- "aria-selected": N.value === A,
934
- disabled: N.disabled,
935
- className: d(
936
- z.option,
937
- I === M && z.active,
938
- N.disabled && z.optionDisabled
934
+ "aria-selected": x.value === j,
935
+ disabled: x.disabled,
936
+ className: _(
937
+ T.option,
938
+ L === B && T.active,
939
+ x.disabled && T.optionDisabled
939
940
  ),
940
- onPointerMove: () => !N.disabled && S(I),
941
- onClick: () => ze(N.value),
942
- children: N.label
941
+ onPointerMove: () => !x.disabled && f(L),
942
+ onClick: () => Te(x.value),
943
+ children: x.label
943
944
  },
944
- N.value
945
+ x.value
945
946
  )) })
946
947
  ] }),
947
- /* @__PURE__ */ f(
948
+ /* @__PURE__ */ b(
948
949
  "select",
949
950
  {
950
- ref: y,
951
- name: h,
952
- value: A,
953
- required: u,
954
- disabled: _,
951
+ ref: g,
952
+ name: p,
953
+ value: j,
954
+ required: i,
955
+ disabled: c,
955
956
  "aria-hidden": "true",
956
957
  tabIndex: -1,
957
- className: z.native,
958
- onChange: (N) => ze(N.target.value),
958
+ className: T.native,
959
+ onChange: (x) => Te(x.target.value),
959
960
  children: [
960
- !ye && /* @__PURE__ */ e("option", { value: A }),
961
- t.map((N) => /* @__PURE__ */ e("option", { value: N.value, disabled: N.disabled, children: N.label }, N.value))
961
+ !we && /* @__PURE__ */ e("option", { value: j }),
962
+ t.map((x) => /* @__PURE__ */ e("option", { value: x.value, disabled: x.disabled, children: x.label }, x.value))
962
963
  ]
963
964
  }
964
965
  ),
965
- Ee != null && /* @__PURE__ */ e("p", { id: x, className: d(z.message, ve && z.error), children: Ee })
966
+ W != null && /* @__PURE__ */ e("p", { id: M, className: _(T.message, ae && T.error), children: W })
966
967
  ] });
967
- }), Pl = "checkbox-module__field___RelhS", Al = "checkbox-module__control___byZMh", Ol = "checkbox-module__disabled___Ba3GC", Gl = "checkbox-module__input___Ptgt7", jl = "checkbox-module__box___yAh-r", Yl = "checkbox-module__text___YbsL3", Hl = "checkbox-module__invalid___-QWUO", ql = "checkbox-module__md___b-TNq", Ul = "checkbox-module__sm___uCkXv", Wl = "checkbox-module__message___CKZrQ", Zl = "checkbox-module__error___9UaCv", q = {
968
- field: Pl,
969
- control: Al,
970
- disabled: Ol,
971
- input: Gl,
972
- box: jl,
973
- text: Yl,
974
- invalid: Hl,
975
- md: ql,
976
- sm: Ul,
977
- message: Wl,
978
- error: Zl
979
- }, D_ = E(function({ label: t, helperText: n, error: s, size: l = "md", id: a, className: i, disabled: r, ...p }, m) {
980
- const _ = R(), h = a ?? `fui-checkbox-${_}`, u = `fui-checkbox-message-${_}`, v = s != null, b = v ? s : n;
981
- return /* @__PURE__ */ f("div", { className: d(q.field, i), children: [
982
- /* @__PURE__ */ f(
968
+ }), Al = "checkbox-module__field___RelhS", Gl = "checkbox-module__control___byZMh", jl = "checkbox-module__disabled___Ba3GC", Yl = "checkbox-module__input___Ptgt7", Hl = "checkbox-module__box___yAh-r", ql = "checkbox-module__text___YbsL3", Ul = "checkbox-module__invalid___-QWUO", Wl = "checkbox-module__md___b-TNq", Zl = "checkbox-module__sm___uCkXv", Vl = "checkbox-module__message___CKZrQ", Xl = "checkbox-module__error___9UaCv", Z = {
969
+ field: Al,
970
+ control: Gl,
971
+ disabled: jl,
972
+ input: Yl,
973
+ box: Hl,
974
+ text: ql,
975
+ invalid: Ul,
976
+ md: Wl,
977
+ sm: Zl,
978
+ message: Vl,
979
+ error: Xl
980
+ }, E_ = z(function({ label: t, helperText: n, error: l, size: s = "md", id: a, className: d, disabled: r, ...u }, m) {
981
+ const c = R(), p = a ?? `fui-checkbox-${c}`, i = `fui-checkbox-message-${c}`, v = l != null, h = v ? l : n;
982
+ return /* @__PURE__ */ b("div", { className: _(Z.field, d), children: [
983
+ /* @__PURE__ */ b(
983
984
  "label",
984
985
  {
985
- htmlFor: h,
986
- className: d(q.control, q[l], r && q.disabled),
986
+ htmlFor: p,
987
+ className: _(Z.control, Z[s], r && Z.disabled),
987
988
  children: [
988
989
  /* @__PURE__ */ e(
989
990
  "input",
990
991
  {
991
992
  ref: m,
992
- id: h,
993
+ id: p,
993
994
  type: "checkbox",
994
- className: q.input,
995
+ className: Z.input,
995
996
  disabled: r,
996
997
  "aria-invalid": v || void 0,
997
- "aria-describedby": b != null ? u : void 0,
998
- ...p
998
+ "aria-describedby": h != null ? i : void 0,
999
+ ...u
999
1000
  }
1000
1001
  ),
1001
- /* @__PURE__ */ e("span", { className: d(q.box, v && q.invalid), "aria-hidden": "true" }),
1002
- t && /* @__PURE__ */ e("span", { className: q.text, children: t })
1002
+ /* @__PURE__ */ e("span", { className: _(Z.box, v && Z.invalid), "aria-hidden": "true" }),
1003
+ t && /* @__PURE__ */ e("span", { className: Z.text, children: t })
1003
1004
  ]
1004
1005
  }
1005
1006
  ),
1006
- b != null && /* @__PURE__ */ e("p", { id: u, className: d(q.message, v && q.error), children: b })
1007
+ h != null && /* @__PURE__ */ e("p", { id: i, className: _(Z.message, v && Z.error), children: h })
1007
1008
  ] });
1008
- }), Xl = "radio-module__field___zfiOx", Vl = "radio-module__control___E2qkU", Jl = "radio-module__disabled___cBUku", Ql = "radio-module__input___M2nFJ", es = "radio-module__dot___jVJ-d", ts = "radio-module__text___wcXr-", os = "radio-module__invalid___wV1rf", ns = "radio-module__md___UQmih", ls = "radio-module__sm___7xAyp", ss = "radio-module__message___WSx2O", as = "radio-module__error___Mi15v", U = {
1009
- field: Xl,
1010
- control: Vl,
1011
- disabled: Jl,
1012
- input: Ql,
1013
- dot: es,
1014
- text: ts,
1015
- invalid: os,
1016
- md: ns,
1017
- sm: ls,
1018
- message: ss,
1019
- error: as
1020
- }, cs = E(function({ label: t, helperText: n, error: s, size: l = "md", id: a, className: i, disabled: r, ...p }, m) {
1021
- const _ = R(), h = a ?? `fui-radio-${_}`, u = `fui-radio-message-${_}`, v = s != null, b = v ? s : n;
1022
- return /* @__PURE__ */ f("div", { className: d(U.field, i), children: [
1023
- /* @__PURE__ */ f(
1009
+ }), Jl = "radio-module__field___zfiOx", Ql = "radio-module__control___E2qkU", es = "radio-module__disabled___cBUku", ts = "radio-module__input___M2nFJ", os = "radio-module__dot___jVJ-d", ns = "radio-module__text___wcXr-", ls = "radio-module__invalid___wV1rf", ss = "radio-module__md___UQmih", as = "radio-module__sm___7xAyp", cs = "radio-module__message___WSx2O", rs = "radio-module__error___Mi15v", V = {
1010
+ field: Jl,
1011
+ control: Ql,
1012
+ disabled: es,
1013
+ input: ts,
1014
+ dot: os,
1015
+ text: ns,
1016
+ invalid: ls,
1017
+ md: ss,
1018
+ sm: as,
1019
+ message: cs,
1020
+ error: rs
1021
+ }, _s = z(function({ label: t, helperText: n, error: l, size: s = "md", id: a, className: d, disabled: r, ...u }, m) {
1022
+ const c = R(), p = a ?? `fui-radio-${c}`, i = `fui-radio-message-${c}`, v = l != null, h = v ? l : n;
1023
+ return /* @__PURE__ */ b("div", { className: _(V.field, d), children: [
1024
+ /* @__PURE__ */ b(
1024
1025
  "label",
1025
1026
  {
1026
- htmlFor: h,
1027
- className: d(U.control, U[l], r && U.disabled),
1027
+ htmlFor: p,
1028
+ className: _(V.control, V[s], r && V.disabled),
1028
1029
  children: [
1029
1030
  /* @__PURE__ */ e(
1030
1031
  "input",
1031
1032
  {
1032
1033
  ref: m,
1033
- id: h,
1034
+ id: p,
1034
1035
  type: "radio",
1035
- className: U.input,
1036
+ className: V.input,
1036
1037
  disabled: r,
1037
1038
  "aria-invalid": v || void 0,
1038
- "aria-describedby": b != null ? u : void 0,
1039
- ...p
1039
+ "aria-describedby": h != null ? i : void 0,
1040
+ ...u
1040
1041
  }
1041
1042
  ),
1042
- /* @__PURE__ */ e("span", { className: d(U.dot, v && U.invalid), "aria-hidden": "true" }),
1043
- t && /* @__PURE__ */ e("span", { className: U.text, children: t })
1043
+ /* @__PURE__ */ e("span", { className: _(V.dot, v && V.invalid), "aria-hidden": "true" }),
1044
+ t && /* @__PURE__ */ e("span", { className: V.text, children: t })
1044
1045
  ]
1045
1046
  }
1046
1047
  ),
1047
- b != null && /* @__PURE__ */ e("p", { id: u, className: d(U.message, v && U.error), children: b })
1048
+ h != null && /* @__PURE__ */ e("p", { id: i, className: _(V.message, v && V.error), children: h })
1048
1049
  ] });
1049
- }), rs = "radio-group-module__group___PqCH0", _s = "radio-group-module__legend___PlUYS", ds = "radio-group-module__options___5BrnU", is = "radio-group-module__vertical___3Vhsy", us = "radio-group-module__horizontal___Y5vdI", ms = "radio-group-module__message___R5JZm", ps = "radio-group-module__error___NRRJw", de = {
1050
- group: rs,
1051
- legend: _s,
1052
- options: ds,
1053
- vertical: is,
1054
- horizontal: us,
1055
- message: ms,
1056
- error: ps
1050
+ }), ds = "radio-group-module__group___PqCH0", is = "radio-group-module__legend___PlUYS", us = "radio-group-module__options___5BrnU", ms = "radio-group-module__vertical___3Vhsy", ps = "radio-group-module__horizontal___Y5vdI", hs = "radio-group-module__message___R5JZm", bs = "radio-group-module__error___NRRJw", pe = {
1051
+ group: ds,
1052
+ legend: is,
1053
+ options: us,
1054
+ vertical: ms,
1055
+ horizontal: ps,
1056
+ message: hs,
1057
+ error: bs
1057
1058
  };
1058
- function I_({
1059
+ function z_({
1059
1060
  options: o,
1060
1061
  value: t,
1061
1062
  onChange: n,
1062
- name: s,
1063
- legend: l,
1063
+ name: l,
1064
+ legend: s,
1064
1065
  orientation: a = "vertical",
1065
- size: i = "md",
1066
+ size: d = "md",
1066
1067
  helperText: r,
1067
- error: p,
1068
+ error: u,
1068
1069
  disabled: m,
1069
- className: _,
1070
- ...h
1070
+ className: c,
1071
+ ...p
1071
1072
  }) {
1072
- const u = R(), v = s ?? `fui-radio-group-${u}`, b = `fui-radio-group-message-${u}`, y = p != null, g = y ? p : r;
1073
- return /* @__PURE__ */ f(
1073
+ const i = R(), v = l ?? `fui-radio-group-${i}`, h = `fui-radio-group-message-${i}`, g = u != null, y = g ? u : r;
1074
+ return /* @__PURE__ */ b(
1074
1075
  "fieldset",
1075
1076
  {
1076
- className: d(de.group, _),
1077
+ className: _(pe.group, c),
1077
1078
  disabled: m,
1078
- "aria-invalid": y || void 0,
1079
- "aria-describedby": g != null ? b : void 0,
1080
- ...h,
1079
+ "aria-invalid": g || void 0,
1080
+ "aria-describedby": y != null ? h : void 0,
1081
+ ...p,
1081
1082
  children: [
1082
- l != null && /* @__PURE__ */ e("legend", { className: de.legend, children: l }),
1083
- /* @__PURE__ */ e("div", { className: d(de.options, de[a]), children: o.map((k) => /* @__PURE__ */ e(
1084
- cs,
1083
+ s != null && /* @__PURE__ */ e("legend", { className: pe.legend, children: s }),
1084
+ /* @__PURE__ */ e("div", { className: _(pe.options, pe[a]), children: o.map((N) => /* @__PURE__ */ e(
1085
+ _s,
1085
1086
  {
1086
1087
  name: v,
1087
- value: k.value,
1088
- checked: k.value === t,
1089
- disabled: k.disabled,
1090
- label: k.label,
1091
- helperText: k.helperText,
1092
- size: i,
1093
- onChange: () => n(k.value)
1088
+ value: N.value,
1089
+ checked: N.value === t,
1090
+ disabled: N.disabled,
1091
+ label: N.label,
1092
+ helperText: N.helperText,
1093
+ size: d,
1094
+ onChange: () => n(N.value)
1094
1095
  },
1095
- k.value
1096
+ N.value
1096
1097
  )) }),
1097
- g != null && /* @__PURE__ */ e("p", { id: b, className: d(de.message, y && de.error), children: g })
1098
+ y != null && /* @__PURE__ */ e("p", { id: h, className: _(pe.message, g && pe.error), children: y })
1098
1099
  ]
1099
1100
  }
1100
1101
  );
1101
1102
  }
1102
- const hs = "switch-module__field___zh7DJ", bs = "switch-module__control___g0N-0", fs = "switch-module__disabled___LQtR1", vs = "switch-module__input___YKZRj", gs = "switch-module__track___QNvnO", ys = "switch-module__knob___ayTTe", $s = "switch-module__text___RCdR5", ws = "switch-module__invalid___9wtmg", ks = "switch-module__md___bJSQP", Ns = "switch-module__sm___TIccZ", xs = "switch-module__message___X9193", Ms = "switch-module__error___brY-r", j = {
1103
- field: hs,
1104
- control: bs,
1105
- disabled: fs,
1106
- input: vs,
1107
- track: gs,
1108
- knob: ys,
1109
- text: $s,
1110
- invalid: ws,
1111
- md: ks,
1112
- sm: Ns,
1113
- message: xs,
1114
- error: Ms
1115
- }, B_ = E(function({ label: t, helperText: n, error: s, size: l = "md", id: a, className: i, disabled: r, ...p }, m) {
1116
- const _ = R(), h = a ?? `fui-switch-${_}`, u = `fui-switch-message-${_}`, v = s != null, b = v ? s : n;
1117
- return /* @__PURE__ */ f("div", { className: d(j.field, i), children: [
1118
- /* @__PURE__ */ f(
1103
+ const fs = "switch-module__field___zh7DJ", vs = "switch-module__control___g0N-0", gs = "switch-module__disabled___LQtR1", ys = "switch-module__input___YKZRj", $s = "switch-module__track___QNvnO", ws = "switch-module__knob___ayTTe", ks = "switch-module__text___RCdR5", Ns = "switch-module__invalid___9wtmg", xs = "switch-module__md___bJSQP", Ms = "switch-module__sm___TIccZ", Ds = "switch-module__message___X9193", Is = "switch-module__error___brY-r", q = {
1104
+ field: fs,
1105
+ control: vs,
1106
+ disabled: gs,
1107
+ input: ys,
1108
+ track: $s,
1109
+ knob: ws,
1110
+ text: ks,
1111
+ invalid: Ns,
1112
+ md: xs,
1113
+ sm: Ms,
1114
+ message: Ds,
1115
+ error: Is
1116
+ }, T_ = z(function({ label: t, helperText: n, error: l, size: s = "md", id: a, className: d, disabled: r, ...u }, m) {
1117
+ const c = R(), p = a ?? `fui-switch-${c}`, i = `fui-switch-message-${c}`, v = l != null, h = v ? l : n;
1118
+ return /* @__PURE__ */ b("div", { className: _(q.field, d), children: [
1119
+ /* @__PURE__ */ b(
1119
1120
  "label",
1120
1121
  {
1121
- htmlFor: h,
1122
- className: d(j.control, j[l], r && j.disabled),
1122
+ htmlFor: p,
1123
+ className: _(q.control, q[s], r && q.disabled),
1123
1124
  children: [
1124
1125
  /* @__PURE__ */ e(
1125
1126
  "input",
1126
1127
  {
1127
1128
  ref: m,
1128
- id: h,
1129
+ id: p,
1129
1130
  type: "checkbox",
1130
- className: j.input,
1131
+ className: q.input,
1131
1132
  disabled: r,
1132
1133
  "aria-invalid": v || void 0,
1133
- "aria-describedby": b != null ? u : void 0,
1134
- ...p
1134
+ "aria-describedby": h != null ? i : void 0,
1135
+ ...u
1135
1136
  }
1136
1137
  ),
1137
- /* @__PURE__ */ e("span", { className: d(j.track, v && j.invalid), "aria-hidden": "true", children: /* @__PURE__ */ e("span", { className: j.knob }) }),
1138
- t && /* @__PURE__ */ e("span", { className: j.text, children: t })
1138
+ /* @__PURE__ */ e("span", { className: _(q.track, v && q.invalid), "aria-hidden": "true", children: /* @__PURE__ */ e("span", { className: q.knob }) }),
1139
+ t && /* @__PURE__ */ e("span", { className: q.text, children: t })
1139
1140
  ]
1140
1141
  }
1141
1142
  ),
1142
- b != null && /* @__PURE__ */ e("p", { id: u, className: d(j.message, v && j.error), children: b })
1143
+ h != null && /* @__PURE__ */ e("p", { id: i, className: _(q.message, v && q.error), children: h })
1143
1144
  ] });
1144
- }), Ds = "modal-module__overlay___a52Ni", Is = "modal-module__backdrop___RS4yj", Bs = "modal-module__panel___uPXuE", Ls = "modal-module__sm___DOlEI", Ss = "modal-module__md___-evKM", Cs = "modal-module__lg___AvEqd", Es = "modal-module__header___iP09B", zs = "modal-module__title___nj06m", Ts = "modal-module__close___gQou9", Fs = "modal-module__body___Y-EdA", Ks = "modal-module__footer___z9JqA", Rs = "modal-module__errorText___cjMEM", X = {
1145
- overlay: Ds,
1146
- backdrop: Is,
1147
- panel: Bs,
1148
- sm: Ls,
1149
- md: Ss,
1150
- lg: Cs,
1151
- header: Es,
1152
- title: zs,
1153
- close: Ts,
1154
- body: Fs,
1155
- footer: Ks,
1156
- errorText: Rs
1157
- }, Ps = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
1158
- function As({ open: o, onClose: t, title: n, size: s = "md", children: l, className: a }) {
1159
- const r = `fui-modal-title-${R()}`, p = C(null), m = C(null), _ = C(t);
1160
- return _.current = t, ee(() => {
1145
+ }), Bs = "modal-module__overlay___a52Ni", Ls = "modal-module__backdrop___RS4yj", Ss = "modal-module__panel___uPXuE", Cs = "modal-module__sm___DOlEI", Es = "modal-module__md___-evKM", zs = "modal-module__lg___AvEqd", Ts = "modal-module__header___iP09B", Fs = "modal-module__title___nj06m", Ks = "modal-module__close___gQou9", Ps = "modal-module__body___Y-EdA", Rs = "modal-module__footer___z9JqA", Os = "modal-module__errorText___cjMEM", Q = {
1146
+ overlay: Bs,
1147
+ backdrop: Ls,
1148
+ panel: Ss,
1149
+ sm: Cs,
1150
+ md: Es,
1151
+ lg: zs,
1152
+ header: Ts,
1153
+ title: Fs,
1154
+ close: Ks,
1155
+ body: Ps,
1156
+ footer: Rs,
1157
+ errorText: Os
1158
+ }, As = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
1159
+ function Gs({ open: o, onClose: t, title: n, size: l = "md", children: s, className: a }) {
1160
+ const r = `fui-modal-title-${R()}`, u = E(null), m = E(null), c = E(t);
1161
+ return c.current = t, le(() => {
1161
1162
  var v;
1162
1163
  if (!o) return;
1163
- m.current = document.activeElement, (v = p.current) == null || v.focus();
1164
- const h = (b) => {
1165
- var w, x;
1166
- if (b.key === "Escape") {
1167
- b.preventDefault(), _.current();
1164
+ m.current = document.activeElement, (v = u.current) == null || v.focus();
1165
+ const p = (h) => {
1166
+ var $, M;
1167
+ if (h.key === "Escape") {
1168
+ h.preventDefault(), c.current();
1168
1169
  return;
1169
1170
  }
1170
- if (b.key !== "Tab") return;
1171
- const y = (w = p.current) == null ? void 0 : w.querySelectorAll(Ps);
1172
- if (!y || y.length === 0) {
1173
- b.preventDefault(), (x = p.current) == null || x.focus();
1171
+ if (h.key !== "Tab") return;
1172
+ const g = ($ = u.current) == null ? void 0 : $.querySelectorAll(As);
1173
+ if (!g || g.length === 0) {
1174
+ h.preventDefault(), (M = u.current) == null || M.focus();
1174
1175
  return;
1175
1176
  }
1176
- const g = y[0], k = y[y.length - 1];
1177
- b.shiftKey && document.activeElement === g ? (b.preventDefault(), k.focus()) : !b.shiftKey && document.activeElement === k && (b.preventDefault(), g.focus());
1177
+ const y = g[0], N = g[g.length - 1];
1178
+ h.shiftKey && document.activeElement === y ? (h.preventDefault(), N.focus()) : !h.shiftKey && document.activeElement === N && (h.preventDefault(), y.focus());
1178
1179
  };
1179
- document.addEventListener("keydown", h);
1180
- const u = document.body.style.overflow;
1180
+ document.addEventListener("keydown", p);
1181
+ const i = document.body.style.overflow;
1181
1182
  return document.body.style.overflow = "hidden", () => {
1182
- var b;
1183
- document.removeEventListener("keydown", h), document.body.style.overflow = u, (b = m.current) == null || b.focus();
1183
+ var h;
1184
+ document.removeEventListener("keydown", p), document.body.style.overflow = i, (h = m.current) == null || h.focus();
1184
1185
  };
1185
- }, [o]), !o || typeof document > "u" ? null : Ce(
1186
- /* @__PURE__ */ f("div", { className: X.overlay, children: [
1186
+ }, [o]), !o || typeof document > "u" ? null : ze(
1187
+ /* @__PURE__ */ b("div", { className: Q.overlay, children: [
1187
1188
  /* @__PURE__ */ e(
1188
1189
  "button",
1189
1190
  {
1190
1191
  type: "button",
1191
- className: X.backdrop,
1192
+ className: Q.backdrop,
1192
1193
  "aria-label": "Close modal",
1193
1194
  onClick: t
1194
1195
  }
1195
1196
  ),
1196
- /* @__PURE__ */ f(
1197
+ /* @__PURE__ */ b(
1197
1198
  "div",
1198
1199
  {
1199
- ref: p,
1200
- className: d(X.panel, X[s], a),
1200
+ ref: u,
1201
+ className: _(Q.panel, Q[l], a),
1201
1202
  role: "dialog",
1202
1203
  "aria-modal": "true",
1203
1204
  "aria-labelledby": n ? r : void 0,
1204
1205
  tabIndex: -1,
1205
1206
  children: [
1206
- /* @__PURE__ */ f("div", { className: X.header, children: [
1207
- n && /* @__PURE__ */ e("h2", { id: r, className: X.title, children: n }),
1208
- /* @__PURE__ */ e("button", { type: "button", className: X.close, "aria-label": "Close modal", onClick: t, children: "×" })
1207
+ /* @__PURE__ */ b("div", { className: Q.header, children: [
1208
+ n && /* @__PURE__ */ e("h2", { id: r, className: Q.title, children: n }),
1209
+ /* @__PURE__ */ e("button", { type: "button", className: Q.close, "aria-label": "Close modal", onClick: t, children: "×" })
1209
1210
  ] }),
1210
- l
1211
+ s
1211
1212
  ]
1212
1213
  }
1213
1214
  )
@@ -1215,104 +1216,104 @@ function As({ open: o, onClose: t, title: n, size: s = "md", children: l, classN
1215
1216
  document.body
1216
1217
  );
1217
1218
  }
1218
- function Os({ children: o, className: t }) {
1219
- return /* @__PURE__ */ e("div", { className: d(X.body, t), children: o });
1219
+ function js({ children: o, className: t }) {
1220
+ return /* @__PURE__ */ e("div", { className: _(Q.body, t), children: o });
1220
1221
  }
1221
- function Gs({ children: o, className: t }) {
1222
- return /* @__PURE__ */ e("div", { className: d(X.footer, t), children: o });
1222
+ function Ys({ children: o, className: t }) {
1223
+ return /* @__PURE__ */ e("div", { className: _(Q.footer, t), children: o });
1223
1224
  }
1224
- function js({ children: o, className: t }) {
1225
- return o ? /* @__PURE__ */ e("p", { role: "alert", className: d(X.errorText, t), children: o }) : null;
1225
+ function Hs({ children: o, className: t }) {
1226
+ return o ? /* @__PURE__ */ e("p", { role: "alert", className: _(Q.errorText, t), children: o }) : null;
1226
1227
  }
1227
- const L_ = Object.assign(As, {
1228
- Body: Os,
1229
- Footer: Gs,
1230
- Error: js
1231
- }), Ys = "drawer-module__overlay___Cv-ju", Hs = "drawer-module__left___4tJTY", qs = "drawer-module__right___NA7oF", Us = "drawer-module__top___SiK4I", Ws = "drawer-module__bottom___RBjGY", Zs = "drawer-module__backdrop___kai--", Xs = "drawer-module__fui-drawer-fade___YtfHP", Vs = "drawer-module__panel___WEKZm", Js = "drawer-module__sm___KAlYn", Qs = "drawer-module__md___waKLn", ea = "drawer-module__lg___DTfq5", ta = "drawer-module__fui-drawer-in-left___PN8lB", oa = "drawer-module__fui-drawer-in-right___eQ9wk", na = "drawer-module__fui-drawer-in-top___ax1Au", la = "drawer-module__fui-drawer-in-bottom___Cyf5m", sa = "drawer-module__header___IrV2g", aa = "drawer-module__title___-Oex-", ca = "drawer-module__close___9urOR", ra = "drawer-module__body___fGi7v", _a = "drawer-module__footer___avfH-", Y = {
1232
- overlay: Ys,
1233
- left: Hs,
1234
- right: qs,
1235
- top: Us,
1236
- bottom: Ws,
1237
- backdrop: Zs,
1238
- fuiDrawerFade: Xs,
1239
- panel: Vs,
1240
- sm: Js,
1241
- md: Qs,
1242
- lg: ea,
1243
- fuiDrawerInLeft: ta,
1244
- fuiDrawerInRight: oa,
1245
- fuiDrawerInTop: na,
1246
- fuiDrawerInBottom: la,
1247
- header: sa,
1248
- title: aa,
1249
- close: ca,
1250
- body: ra,
1251
- footer: _a
1252
- }, da = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
1253
- function ia({
1228
+ const F_ = Object.assign(Gs, {
1229
+ Body: js,
1230
+ Footer: Ys,
1231
+ Error: Hs
1232
+ }), qs = "drawer-module__overlay___Cv-ju", Us = "drawer-module__left___4tJTY", Ws = "drawer-module__right___NA7oF", Zs = "drawer-module__top___SiK4I", Vs = "drawer-module__bottom___RBjGY", Xs = "drawer-module__backdrop___kai--", Js = "drawer-module__fui-drawer-fade___YtfHP", Qs = "drawer-module__panel___WEKZm", ea = "drawer-module__sm___KAlYn", ta = "drawer-module__md___waKLn", oa = "drawer-module__lg___DTfq5", na = "drawer-module__fui-drawer-in-left___PN8lB", la = "drawer-module__fui-drawer-in-right___eQ9wk", sa = "drawer-module__fui-drawer-in-top___ax1Au", aa = "drawer-module__fui-drawer-in-bottom___Cyf5m", ca = "drawer-module__header___IrV2g", ra = "drawer-module__title___-Oex-", _a = "drawer-module__close___9urOR", da = "drawer-module__body___fGi7v", ia = "drawer-module__footer___avfH-", U = {
1233
+ overlay: qs,
1234
+ left: Us,
1235
+ right: Ws,
1236
+ top: Zs,
1237
+ bottom: Vs,
1238
+ backdrop: Xs,
1239
+ fuiDrawerFade: Js,
1240
+ panel: Qs,
1241
+ sm: ea,
1242
+ md: ta,
1243
+ lg: oa,
1244
+ fuiDrawerInLeft: na,
1245
+ fuiDrawerInRight: la,
1246
+ fuiDrawerInTop: sa,
1247
+ fuiDrawerInBottom: aa,
1248
+ header: ca,
1249
+ title: ra,
1250
+ close: _a,
1251
+ body: da,
1252
+ footer: ia
1253
+ }, ua = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
1254
+ function ma({
1254
1255
  open: o,
1255
1256
  onClose: t,
1256
1257
  side: n = "right",
1257
- title: s,
1258
- size: l = "md",
1258
+ title: l,
1259
+ size: s = "md",
1259
1260
  children: a,
1260
- className: i
1261
+ className: d
1261
1262
  }) {
1262
- const p = `fui-drawer-title-${R()}`, m = C(null), _ = C(null), h = C(t);
1263
- return h.current = t, ee(() => {
1264
- var b;
1263
+ const u = `fui-drawer-title-${R()}`, m = E(null), c = E(null), p = E(t);
1264
+ return p.current = t, le(() => {
1265
+ var h;
1265
1266
  if (!o) return;
1266
- _.current = document.activeElement, (b = m.current) == null || b.focus();
1267
- const u = (y) => {
1268
- var x, D;
1269
- if (y.key === "Escape") {
1270
- y.preventDefault(), h.current();
1267
+ c.current = document.activeElement, (h = m.current) == null || h.focus();
1268
+ const i = (g) => {
1269
+ var M, D;
1270
+ if (g.key === "Escape") {
1271
+ g.preventDefault(), p.current();
1271
1272
  return;
1272
1273
  }
1273
- if (y.key !== "Tab") return;
1274
- const g = (x = m.current) == null ? void 0 : x.querySelectorAll(da);
1275
- if (!g || g.length === 0) {
1276
- y.preventDefault(), (D = m.current) == null || D.focus();
1274
+ if (g.key !== "Tab") return;
1275
+ const y = (M = m.current) == null ? void 0 : M.querySelectorAll(ua);
1276
+ if (!y || y.length === 0) {
1277
+ g.preventDefault(), (D = m.current) == null || D.focus();
1277
1278
  return;
1278
1279
  }
1279
- const k = g[0], w = g[g.length - 1];
1280
- y.shiftKey && document.activeElement === k ? (y.preventDefault(), w.focus()) : !y.shiftKey && document.activeElement === w && (y.preventDefault(), k.focus());
1280
+ const N = y[0], $ = y[y.length - 1];
1281
+ g.shiftKey && document.activeElement === N ? (g.preventDefault(), $.focus()) : !g.shiftKey && document.activeElement === $ && (g.preventDefault(), N.focus());
1281
1282
  };
1282
- document.addEventListener("keydown", u);
1283
+ document.addEventListener("keydown", i);
1283
1284
  const v = document.body.style.overflow;
1284
1285
  return document.body.style.overflow = "hidden", () => {
1285
- var y;
1286
- document.removeEventListener("keydown", u), document.body.style.overflow = v, (y = _.current) == null || y.focus();
1286
+ var g;
1287
+ document.removeEventListener("keydown", i), document.body.style.overflow = v, (g = c.current) == null || g.focus();
1287
1288
  };
1288
- }, [o]), !o || typeof document > "u" ? null : Ce(
1289
- /* @__PURE__ */ f("div", { className: d(Y.overlay, Y[n]), children: [
1289
+ }, [o]), !o || typeof document > "u" ? null : ze(
1290
+ /* @__PURE__ */ b("div", { className: _(U.overlay, U[n]), children: [
1290
1291
  /* @__PURE__ */ e(
1291
1292
  "button",
1292
1293
  {
1293
1294
  type: "button",
1294
- className: Y.backdrop,
1295
+ className: U.backdrop,
1295
1296
  "aria-label": "Close drawer",
1296
1297
  onClick: t
1297
1298
  }
1298
1299
  ),
1299
- /* @__PURE__ */ f(
1300
+ /* @__PURE__ */ b(
1300
1301
  "div",
1301
1302
  {
1302
1303
  ref: m,
1303
- className: d(Y.panel, Y[n], Y[l], i),
1304
+ className: _(U.panel, U[n], U[s], d),
1304
1305
  role: "dialog",
1305
1306
  "aria-modal": "true",
1306
- "aria-labelledby": s ? p : void 0,
1307
+ "aria-labelledby": l ? u : void 0,
1307
1308
  tabIndex: -1,
1308
1309
  children: [
1309
- /* @__PURE__ */ f("div", { className: Y.header, children: [
1310
- s && /* @__PURE__ */ e("h2", { id: p, className: Y.title, children: s }),
1310
+ /* @__PURE__ */ b("div", { className: U.header, children: [
1311
+ l && /* @__PURE__ */ e("h2", { id: u, className: U.title, children: l }),
1311
1312
  /* @__PURE__ */ e(
1312
1313
  "button",
1313
1314
  {
1314
1315
  type: "button",
1315
- className: Y.close,
1316
+ className: U.close,
1316
1317
  "aria-label": "Close drawer",
1317
1318
  onClick: t,
1318
1319
  children: "×"
@@ -1327,938 +1328,995 @@ function ia({
1327
1328
  document.body
1328
1329
  );
1329
1330
  }
1330
- function ua({ children: o, className: t }) {
1331
- return /* @__PURE__ */ e("div", { className: d(Y.body, t), children: o });
1331
+ function pa({ children: o, className: t }) {
1332
+ return /* @__PURE__ */ e("div", { className: _(U.body, t), children: o });
1332
1333
  }
1333
- function ma({ children: o, className: t }) {
1334
- return /* @__PURE__ */ e("div", { className: d(Y.footer, t), children: o });
1334
+ function ha({ children: o, className: t }) {
1335
+ return /* @__PURE__ */ e("div", { className: _(U.footer, t), children: o });
1335
1336
  }
1336
- const S_ = Object.assign(ia, {
1337
- Body: ua,
1338
- Footer: ma
1339
- }), pa = "list-item-module__item___KvZj7", ha = "list-item-module__active___UsL8O", ba = "list-item-module__icon___2b4wU", fa = "list-item-module__content___e9u66", va = "list-item-module__action___qGh0-", ga = "list-item-module__md___dpf7n", ya = "list-item-module__sm___6fwmf", ie = {
1340
- item: pa,
1341
- active: ha,
1342
- icon: ba,
1343
- content: fa,
1344
- action: va,
1345
- md: ga,
1346
- sm: ya
1347
- }, C_ = E(function({ size: t = "md", active: n = !1, icon: s, action: l, className: a, children: i, ...r }, p) {
1348
- return /* @__PURE__ */ f(
1337
+ const K_ = Object.assign(ma, {
1338
+ Body: pa,
1339
+ Footer: ha
1340
+ }), ba = "list-item-module__item___KvZj7", fa = "list-item-module__active___UsL8O", va = "list-item-module__warn___LRPus", ga = "list-item-module__alert___OroeF", ya = "list-item-module__icon___2b4wU", $a = "list-item-module__content___e9u66", wa = "list-item-module__action___qGh0-", ka = "list-item-module__md___dpf7n", Na = "list-item-module__sm___6fwmf", ie = {
1341
+ item: ba,
1342
+ active: fa,
1343
+ warn: va,
1344
+ alert: ga,
1345
+ icon: ya,
1346
+ content: $a,
1347
+ action: wa,
1348
+ md: ka,
1349
+ sm: Na
1350
+ }, P_ = z(function({ size: t = "md", active: n = !1, tone: l = "default", icon: s, action: a, className: d, children: r, ...u }, m) {
1351
+ return /* @__PURE__ */ b(
1349
1352
  "button",
1350
1353
  {
1351
- ref: p,
1354
+ ref: m,
1352
1355
  type: "button",
1353
1356
  "aria-current": n || void 0,
1354
- className: d(ie.item, ie[t], n && ie.active, a),
1355
- ...r,
1357
+ className: _(
1358
+ ie.item,
1359
+ ie[t],
1360
+ n && ie.active,
1361
+ l !== "default" && ie[l],
1362
+ d
1363
+ ),
1364
+ ...u,
1356
1365
  children: [
1357
1366
  s && /* @__PURE__ */ e("span", { className: ie.icon, children: s }),
1358
- /* @__PURE__ */ e("span", { className: ie.content, children: i }),
1359
- l && /* @__PURE__ */ e("span", { className: ie.action, children: l })
1367
+ /* @__PURE__ */ e("span", { className: ie.content, children: r }),
1368
+ a && /* @__PURE__ */ e("span", { className: ie.action, children: a })
1360
1369
  ]
1361
1370
  }
1362
1371
  );
1363
- }), $a = "alert-module__alert___j7ZRS", wa = "alert-module__icon___vbZHd", ka = "alert-module__message___klR2U", Na = "alert-module__dismiss___f2uoG", xa = "alert-module__info___PBo1l", Ma = "alert-module__success___AVBKS", Da = "alert-module__warning___zkMaJ", Ia = "alert-module__error___cxg96", pe = {
1364
- alert: $a,
1365
- icon: wa,
1366
- message: ka,
1367
- dismiss: Na,
1368
- info: xa,
1369
- success: Ma,
1370
- warning: Da,
1371
- error: Ia
1372
- }, Ba = {
1372
+ }), xa = "alert-module__alert___j7ZRS", Ma = "alert-module__icon___vbZHd", Da = "alert-module__message___klR2U", Ia = "alert-module__dismiss___f2uoG", Ba = "alert-module__info___PBo1l", La = "alert-module__success___AVBKS", Sa = "alert-module__warning___zkMaJ", Ca = "alert-module__error___cxg96", fe = {
1373
+ alert: xa,
1374
+ icon: Ma,
1375
+ message: Da,
1376
+ dismiss: Ia,
1377
+ info: Ba,
1378
+ success: La,
1379
+ warning: Sa,
1380
+ error: Ca
1381
+ }, Ea = {
1373
1382
  info: /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M8 0a8 8 0 100 16A8 8 0 008 0zm1 12H7V7h2v5zM8 5.5A1.25 1.25 0 118 3a1.25 1.25 0 010 2.5z" }) }),
1374
1383
  success: /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 5.7l-4.4 4.4a1 1 0 01-1.4 0L3.7 8.3l1.4-1.4L6.6 8.4l3.7-3.7 1.4 1z" }) }),
1375
1384
  warning: /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M7.1 1.5a1 1 0 011.8 0l6.4 12A1 1 0 0114.4 15H1.6a1 1 0 01-.9-1.5l6.4-12zM7 6v4h2V6H7zm0 5v2h2v-2H7z" }) }),
1376
1385
  error: /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M8 0a8 8 0 100 16A8 8 0 008 0zm3 10.6L9.4 12 8 10.6 6.6 12 5 10.6 6.6 9 5 7.4 6.6 6 8 7.4 9.4 6 11 7.4 9.4 9 11 10.6z" }) })
1377
1386
  };
1378
- function E_({
1387
+ function R_({
1379
1388
  variant: o = "info",
1380
1389
  dismissible: t = !1,
1381
1390
  onDismiss: n,
1382
- className: s,
1383
- children: l,
1391
+ className: l,
1392
+ children: s,
1384
1393
  ...a
1385
1394
  }) {
1386
- return /* @__PURE__ */ f(
1395
+ return /* @__PURE__ */ b(
1387
1396
  "div",
1388
1397
  {
1389
1398
  role: o === "error" || o === "warning" ? "alert" : "status",
1390
- className: d(pe.alert, pe[o], s),
1399
+ className: _(fe.alert, fe[o], l),
1391
1400
  ...a,
1392
1401
  children: [
1393
- /* @__PURE__ */ e("span", { className: pe.icon, children: Ba[o] }),
1394
- /* @__PURE__ */ e("div", { className: pe.message, children: l }),
1395
- t && /* @__PURE__ */ e("button", { type: "button", "aria-label": "Dismiss", className: pe.dismiss, onClick: n, children: "×" })
1402
+ /* @__PURE__ */ e("span", { className: fe.icon, children: Ea[o] }),
1403
+ /* @__PURE__ */ e("div", { className: fe.message, children: s }),
1404
+ t && /* @__PURE__ */ e("button", { type: "button", "aria-label": "Dismiss", className: fe.dismiss, onClick: n, children: "×" })
1396
1405
  ]
1397
1406
  }
1398
1407
  );
1399
1408
  }
1400
- const La = "divider-module__divider___0NYwg", Sa = "divider-module__horizontal___tP3rG", Ca = "divider-module__vertical___wBSrT", Ea = "divider-module__labelled___KyGIY", za = "divider-module__line___KnBes", Ta = "divider-module__label___WiUwZ", ce = {
1401
- divider: La,
1402
- horizontal: Sa,
1403
- vertical: Ca,
1404
- labelled: Ea,
1405
- line: za,
1406
- label: Ta
1409
+ const za = "divider-module__divider___0NYwg", Ta = "divider-module__horizontal___tP3rG", Fa = "divider-module__vertical___wBSrT", Ka = "divider-module__labelled___KyGIY", Pa = "divider-module__line___KnBes", Ra = "divider-module__label___WiUwZ", ue = {
1410
+ divider: za,
1411
+ horizontal: Ta,
1412
+ vertical: Fa,
1413
+ labelled: Ka,
1414
+ line: Pa,
1415
+ label: Ra
1407
1416
  };
1408
- function z_({ orientation: o = "horizontal", label: t, className: n, ...s }) {
1409
- return o === "horizontal" && t != null ? /* @__PURE__ */ f("div", { className: d(ce.divider, ce.labelled, n), ...s, children: [
1410
- /* @__PURE__ */ e("hr", { className: ce.line }),
1411
- /* @__PURE__ */ e("span", { className: ce.label, children: t }),
1412
- /* @__PURE__ */ e("hr", { className: ce.line })
1417
+ function O_({ orientation: o = "horizontal", label: t, className: n, ...l }) {
1418
+ return o === "horizontal" && t != null ? /* @__PURE__ */ b("div", { className: _(ue.divider, ue.labelled, n), ...l, children: [
1419
+ /* @__PURE__ */ e("hr", { className: ue.line }),
1420
+ /* @__PURE__ */ e("span", { className: ue.label, children: t }),
1421
+ /* @__PURE__ */ e("hr", { className: ue.line })
1413
1422
  ] }) : /* @__PURE__ */ e(
1414
1423
  "hr",
1415
1424
  {
1416
1425
  "aria-orientation": o,
1417
- className: d(ce.divider, ce[o], n),
1418
- ...s
1426
+ className: _(ue.divider, ue[o], n),
1427
+ ...l
1419
1428
  }
1420
1429
  );
1421
1430
  }
1422
- const Fa = "spinner-module__spinner___FDTk2", Ka = "spinner-module__ring___nRx6n", Ra = "spinner-module__fui-spin___YstYB", Pa = "spinner-module__sm___kDPMi", Aa = "spinner-module__md___6Pg-i", Oa = "spinner-module__lg___zIxGh", Te = {
1423
- spinner: Fa,
1424
- ring: Ka,
1425
- fuiSpin: Ra,
1426
- sm: Pa,
1427
- md: Aa,
1428
- lg: Oa
1431
+ const Oa = "spinner-module__spinner___FDTk2", Aa = "spinner-module__ring___nRx6n", Ga = "spinner-module__fui-spin___YstYB", ja = "spinner-module__sm___kDPMi", Ya = "spinner-module__md___6Pg-i", Ha = "spinner-module__lg___zIxGh", Fe = {
1432
+ spinner: Oa,
1433
+ ring: Aa,
1434
+ fuiSpin: Ga,
1435
+ sm: ja,
1436
+ md: Ya,
1437
+ lg: Ha
1429
1438
  };
1430
- function Ga({ size: o = "md", label: t = "Loading", className: n, ...s }) {
1431
- return /* @__PURE__ */ e("output", { "aria-label": t, className: d(Te.spinner, Te[o], n), ...s, children: /* @__PURE__ */ e("span", { className: Te.ring }) });
1439
+ function qa({ size: o = "md", label: t = "Loading", className: n, ...l }) {
1440
+ return /* @__PURE__ */ e("output", { "aria-label": t, className: _(Fe.spinner, Fe[o], n), ...l, children: /* @__PURE__ */ e("span", { className: Fe.ring }) });
1432
1441
  }
1433
- const ja = "progress-module__progress___ubcWE", Ya = {
1434
- progress: ja
1442
+ const Ua = "progress-module__progress___ubcWE", Wa = {
1443
+ progress: Ua
1435
1444
  };
1436
- function T_({
1445
+ function A_({
1437
1446
  value: o,
1438
1447
  max: t = 100,
1439
1448
  color: n,
1440
- height: s = 8,
1441
- className: l,
1449
+ height: l = 8,
1450
+ className: s,
1442
1451
  style: a,
1443
- ...i
1452
+ ...d
1444
1453
  }) {
1445
- const r = t > 0 ? Math.max(0, Math.min(o, t)) : 0, p = n ? { "--fui-progress-fill": n } : void 0;
1454
+ const r = t > 0 ? Math.max(0, Math.min(o, t)) : 0, u = n ? { "--fui-progress-fill": n } : void 0;
1446
1455
  return /* @__PURE__ */ e(
1447
1456
  "progress",
1448
1457
  {
1449
1458
  value: r,
1450
1459
  max: t,
1451
- className: d(Ya.progress, l),
1452
- style: { height: s, ...p, ...a },
1453
- ...i
1460
+ className: _(Wa.progress, s),
1461
+ style: { height: l, ...u, ...a },
1462
+ ...d
1454
1463
  }
1455
1464
  );
1456
1465
  }
1457
- const Ha = "slider-module__field___b0KsE", qa = "slider-module__vertical___AAIJT", Ua = "slider-module__header___KTPLs", Wa = "slider-module__label___5Ygr5", Za = "slider-module__value___SK9Q0", Xa = "slider-module__input___jU-Oj", Va = "slider-module__sm___caMde", Ja = "slider-module__md___rW4JV", Qa = "slider-module__invalid___U5heB", ec = "slider-module__message___PTD43", tc = "slider-module__error___ZOqs4", W = {
1458
- field: Ha,
1459
- vertical: qa,
1460
- header: Ua,
1461
- label: Wa,
1462
- value: Za,
1463
- input: Xa,
1464
- sm: Va,
1465
- md: Ja,
1466
- invalid: Qa,
1467
- message: ec,
1468
- error: tc
1469
- }, F_ = E(function({
1466
+ const Za = "slider-module__field___b0KsE", Va = "slider-module__vertical___AAIJT", Xa = "slider-module__header___KTPLs", Ja = "slider-module__label___5Ygr5", Qa = "slider-module__value___SK9Q0", ec = "slider-module__input___jU-Oj", tc = "slider-module__sm___caMde", oc = "slider-module__md___rW4JV", nc = "slider-module__invalid___U5heB", lc = "slider-module__message___PTD43", sc = "slider-module__error___ZOqs4", X = {
1467
+ field: Za,
1468
+ vertical: Va,
1469
+ header: Xa,
1470
+ label: Ja,
1471
+ value: Qa,
1472
+ input: ec,
1473
+ sm: tc,
1474
+ md: oc,
1475
+ invalid: nc,
1476
+ message: lc,
1477
+ error: sc
1478
+ }, G_ = z(function({
1470
1479
  value: t,
1471
1480
  onChange: n,
1472
- min: s = 0,
1473
- max: l = 100,
1481
+ min: l = 0,
1482
+ max: s = 100,
1474
1483
  step: a = 1,
1475
- orientation: i = "horizontal",
1484
+ orientation: d = "horizontal",
1476
1485
  length: r,
1477
- label: p,
1486
+ label: u,
1478
1487
  helperText: m,
1479
- error: _,
1480
- size: h = "md",
1481
- showValue: u = !1,
1488
+ error: c,
1489
+ size: p = "md",
1490
+ showValue: i = !1,
1482
1491
  formatValue: v,
1483
- id: b,
1484
- className: y,
1485
- style: g,
1486
- disabled: k,
1487
- ...w
1488
- }, x) {
1489
- const D = R(), B = b ?? `fui-slider-${D}`, L = `fui-slider-message-${D}`, H = _ != null, A = H ? _ : m, c = i === "vertical", $ = Math.max(s, Math.min(t, l)), M = l > s ? ($ - s) / (l - s) : 0, S = r != null ? typeof r == "number" ? `${r}px` : r : void 0;
1490
- return /* @__PURE__ */ f(
1492
+ id: h,
1493
+ className: g,
1494
+ style: y,
1495
+ disabled: N,
1496
+ ...$
1497
+ }, M) {
1498
+ const D = R(), S = h ?? `fui-slider-${D}`, C = `fui-slider-message-${D}`, O = c != null, j = O ? c : m, I = d === "vertical", w = Math.max(l, Math.min(t, s)), B = s > l ? (w - l) / (s - l) : 0, f = r != null ? typeof r == "number" ? `${r}px` : r : void 0;
1499
+ return /* @__PURE__ */ b(
1491
1500
  "div",
1492
1501
  {
1493
- className: d(W.field, c && W.vertical, y),
1494
- style: { "--fui-slider-length": S, ...g },
1502
+ className: _(X.field, I && X.vertical, g),
1503
+ style: { "--fui-slider-length": f, ...y },
1495
1504
  children: [
1496
- (p || u) && /* @__PURE__ */ f("div", { className: W.header, children: [
1497
- p && /* @__PURE__ */ e("label", { htmlFor: B, className: W.label, children: p }),
1498
- u && /* @__PURE__ */ e("span", { className: W.value, children: v ? v($) : $ })
1505
+ (u || i) && /* @__PURE__ */ b("div", { className: X.header, children: [
1506
+ u && /* @__PURE__ */ e("label", { htmlFor: S, className: X.label, children: u }),
1507
+ i && /* @__PURE__ */ e("span", { className: X.value, children: v ? v(w) : w })
1499
1508
  ] }),
1500
1509
  /* @__PURE__ */ e(
1501
1510
  "input",
1502
1511
  {
1503
- ref: x,
1504
- id: B,
1512
+ ref: M,
1513
+ id: S,
1505
1514
  type: "range",
1506
- min: s,
1507
- max: l,
1515
+ min: l,
1516
+ max: s,
1508
1517
  step: a,
1509
- value: $,
1510
- disabled: k,
1511
- "aria-invalid": H || void 0,
1512
- "aria-describedby": A != null ? L : void 0,
1513
- "aria-orientation": c ? "vertical" : void 0,
1514
- className: d(W.input, W[h], H && W.invalid),
1515
- style: { "--fui-slider-fill": `${M * 100}%` },
1516
- onChange: (_e) => n(_e.target.valueAsNumber),
1517
- ...w
1518
+ value: w,
1519
+ disabled: N,
1520
+ "aria-invalid": O || void 0,
1521
+ "aria-describedby": j != null ? C : void 0,
1522
+ "aria-orientation": I ? "vertical" : void 0,
1523
+ className: _(X.input, X[p], O && X.invalid),
1524
+ style: { "--fui-slider-fill": `${B * 100}%` },
1525
+ onChange: (k) => n(k.target.valueAsNumber),
1526
+ ...$
1518
1527
  }
1519
1528
  ),
1520
- A != null && /* @__PURE__ */ e("p", { id: L, className: d(W.message, H && W.error), children: A })
1529
+ j != null && /* @__PURE__ */ e("p", { id: C, className: _(X.message, O && X.error), children: j })
1521
1530
  ]
1522
1531
  }
1523
1532
  );
1524
- }), oc = "circular-progress-module__root___aWkwH", nc = "circular-progress-module__svg___r2eFj", lc = "circular-progress-module__track___bnGG2", sc = "circular-progress-module__value___kfD8M", ac = "circular-progress-module__glow___GB6Sf", cc = "circular-progress-module__indeterminate___y-ZZh", rc = "circular-progress-module__text___KMVXP", re = {
1525
- root: oc,
1526
- svg: nc,
1527
- track: lc,
1528
- value: sc,
1529
- glow: ac,
1530
- indeterminate: cc,
1531
- text: rc
1533
+ }), ac = "circular-progress-module__root___aWkwH", cc = "circular-progress-module__svg___r2eFj", rc = "circular-progress-module__track___bnGG2", _c = "circular-progress-module__value___kfD8M", dc = "circular-progress-module__glow___GB6Sf", ic = "circular-progress-module__indeterminate___y-ZZh", uc = "circular-progress-module__text___KMVXP", me = {
1534
+ root: ac,
1535
+ svg: cc,
1536
+ track: rc,
1537
+ value: _c,
1538
+ glow: dc,
1539
+ indeterminate: ic,
1540
+ text: uc
1532
1541
  };
1533
- function K_({
1542
+ function j_({
1534
1543
  value: o,
1535
1544
  max: t = 100,
1536
1545
  size: n = 48,
1537
- strokeWidth: s = 4,
1538
- color: l,
1546
+ strokeWidth: l = 4,
1547
+ color: s,
1539
1548
  label: a = "Loading",
1540
- showValue: i = !1,
1549
+ showValue: d = !1,
1541
1550
  glow: r = !1,
1542
- formatValue: p,
1551
+ formatValue: u,
1543
1552
  className: m,
1544
- style: _,
1545
- ...h
1553
+ style: c,
1554
+ ...p
1546
1555
  }) {
1547
- const u = o == null, v = u || t <= 0 ? 0 : Math.max(0, Math.min(o, t)), b = u || t <= 0 ? 0 : v / t, y = Math.round(b * 100), g = (n - s) / 2, k = 2 * Math.PI * g, w = u ? `${k * 0.25} ${k * 0.75}` : `${k * b} ${k}`, x = l ? { "--fui-circular-fill": l } : void 0;
1548
- return /* @__PURE__ */ f(
1556
+ const i = o == null, v = i || t <= 0 ? 0 : Math.max(0, Math.min(o, t)), h = i || t <= 0 ? 0 : v / t, g = Math.round(h * 100), y = (n - l) / 2, N = 2 * Math.PI * y, $ = i ? `${N * 0.25} ${N * 0.75}` : `${N * h} ${N}`, M = s ? { "--fui-circular-fill": s } : void 0;
1557
+ return /* @__PURE__ */ b(
1549
1558
  "span",
1550
1559
  {
1551
1560
  role: "progressbar",
1552
1561
  "aria-label": a,
1553
- "aria-valuemin": u ? void 0 : 0,
1554
- "aria-valuemax": u ? void 0 : t,
1555
- "aria-valuenow": u ? void 0 : v,
1556
- className: d(
1557
- re.root,
1558
- u && re.indeterminate,
1559
- r && re.glow,
1562
+ "aria-valuemin": i ? void 0 : 0,
1563
+ "aria-valuemax": i ? void 0 : t,
1564
+ "aria-valuenow": i ? void 0 : v,
1565
+ className: _(
1566
+ me.root,
1567
+ i && me.indeterminate,
1568
+ r && me.glow,
1560
1569
  m
1561
1570
  ),
1562
- style: { width: n, height: n, ...x, ..._ },
1563
- ...h,
1571
+ style: { width: n, height: n, ...M, ...c },
1572
+ ...p,
1564
1573
  children: [
1565
- /* @__PURE__ */ f("svg", { className: re.svg, viewBox: `0 0 ${n} ${n}`, "aria-hidden": "true", children: [
1574
+ /* @__PURE__ */ b("svg", { className: me.svg, viewBox: `0 0 ${n} ${n}`, "aria-hidden": "true", children: [
1566
1575
  /* @__PURE__ */ e(
1567
1576
  "circle",
1568
1577
  {
1569
- className: re.track,
1578
+ className: me.track,
1570
1579
  cx: n / 2,
1571
1580
  cy: n / 2,
1572
- r: g,
1573
- strokeWidth: s
1581
+ r: y,
1582
+ strokeWidth: l
1574
1583
  }
1575
1584
  ),
1576
1585
  /* @__PURE__ */ e(
1577
1586
  "circle",
1578
1587
  {
1579
- className: re.value,
1588
+ className: me.value,
1580
1589
  cx: n / 2,
1581
1590
  cy: n / 2,
1582
- r: g,
1583
- strokeWidth: s,
1584
- strokeDasharray: w
1591
+ r: y,
1592
+ strokeWidth: l,
1593
+ strokeDasharray: $
1585
1594
  }
1586
1595
  )
1587
1596
  ] }),
1588
- i && !u && /* @__PURE__ */ e("span", { className: re.text, children: p ? p(y, v) : `${y}%` })
1597
+ d && !i && /* @__PURE__ */ e("span", { className: me.text, children: u ? u(g, v) : `${g}%` })
1589
1598
  ]
1590
1599
  }
1591
1600
  );
1592
1601
  }
1593
- const _c = "skeleton-module__skeleton___HCSvg", dc = "skeleton-module__fui-skeleton-shimmer___nfepz", ic = "skeleton-module__text___v17Nv", uc = "skeleton-module__rect___wqIJy", mc = "skeleton-module__circle___RCmyR", Ye = {
1594
- skeleton: _c,
1595
- fuiSkeletonShimmer: dc,
1596
- text: ic,
1597
- rect: uc,
1598
- circle: mc
1602
+ const mc = "skeleton-module__skeleton___HCSvg", pc = "skeleton-module__fui-skeleton-shimmer___nfepz", hc = "skeleton-module__text___v17Nv", bc = "skeleton-module__rect___wqIJy", fc = "skeleton-module__circle___RCmyR", Ye = {
1603
+ skeleton: mc,
1604
+ fuiSkeletonShimmer: pc,
1605
+ text: hc,
1606
+ rect: bc,
1607
+ circle: fc
1599
1608
  };
1600
- function pc({
1609
+ function vc({
1601
1610
  variant: o = "text",
1602
1611
  width: t,
1603
1612
  height: n,
1604
- className: s,
1605
- style: l,
1613
+ className: l,
1614
+ style: s,
1606
1615
  ...a
1607
1616
  }) {
1608
1617
  return /* @__PURE__ */ e(
1609
1618
  "span",
1610
1619
  {
1611
1620
  "aria-hidden": "true",
1612
- className: d(Ye.skeleton, Ye[o], s),
1613
- style: { width: t, height: n, ...l },
1621
+ className: _(Ye.skeleton, Ye[o], l),
1622
+ style: { width: t, height: n, ...s },
1614
1623
  ...a
1615
1624
  }
1616
1625
  );
1617
1626
  }
1618
- const hc = "empty-state-module__emptyState___3o3ah", bc = "empty-state-module__visual___cNQYf", fc = "empty-state-module__title___U2LkM", vc = "empty-state-module__description___WwXjp", gc = "empty-state-module__action___y0erA", yc = "empty-state-module__loading___kI0uT", $c = "empty-state-module__error___vXXTm", ue = {
1619
- emptyState: hc,
1620
- visual: bc,
1621
- title: fc,
1622
- description: vc,
1623
- action: gc,
1624
- loading: yc,
1625
- error: $c
1626
- }, wc = {
1627
+ const gc = "empty-state-module__emptyState___3o3ah", yc = "empty-state-module__visual___cNQYf", $c = "empty-state-module__title___U2LkM", wc = "empty-state-module__description___WwXjp", kc = "empty-state-module__action___y0erA", Nc = "empty-state-module__loading___kI0uT", xc = "empty-state-module__error___vXXTm", he = {
1628
+ emptyState: gc,
1629
+ visual: yc,
1630
+ title: $c,
1631
+ description: wc,
1632
+ action: kc,
1633
+ loading: Nc,
1634
+ error: xc
1635
+ }, Mc = {
1627
1636
  loading: "status",
1628
1637
  empty: "status",
1629
1638
  error: "alert"
1630
1639
  };
1631
- function R_({
1640
+ function Y_({
1632
1641
  status: o = "empty",
1633
1642
  icon: t,
1634
1643
  title: n,
1635
- description: s,
1636
- action: l,
1644
+ description: l,
1645
+ action: s,
1637
1646
  className: a,
1638
- children: i,
1647
+ children: d,
1639
1648
  ...r
1640
1649
  }) {
1641
- const p = t ?? (o === "loading" ? /* @__PURE__ */ e(Ga, { size: "lg" }) : null);
1642
- return /* @__PURE__ */ f(
1650
+ const u = t ?? (o === "loading" ? /* @__PURE__ */ e(qa, { size: "lg" }) : null);
1651
+ return /* @__PURE__ */ b(
1643
1652
  "div",
1644
1653
  {
1645
- role: wc[o],
1654
+ role: Mc[o],
1646
1655
  "aria-busy": o === "loading" || void 0,
1647
- className: d(ue.emptyState, ue[o], a),
1656
+ className: _(he.emptyState, he[o], a),
1648
1657
  ...r,
1649
1658
  children: [
1650
- p && /* @__PURE__ */ e("div", { className: ue.visual, children: p }),
1651
- n && /* @__PURE__ */ e("p", { className: ue.title, children: n }),
1652
- s && /* @__PURE__ */ e("p", { className: ue.description, children: s }),
1653
- i,
1654
- l && /* @__PURE__ */ e("div", { className: ue.action, children: l })
1659
+ u && /* @__PURE__ */ e("div", { className: he.visual, children: u }),
1660
+ n && /* @__PURE__ */ e("p", { className: he.title, children: n }),
1661
+ l && /* @__PURE__ */ e("p", { className: he.description, children: l }),
1662
+ d,
1663
+ s && /* @__PURE__ */ e("div", { className: he.action, children: s })
1655
1664
  ]
1656
1665
  }
1657
1666
  );
1658
1667
  }
1659
- const kc = "status-dot-module__statusDot___ohD-u", Nc = "status-dot-module__sm___OB37e", xc = "status-dot-module__md___gx9L0", Mc = "status-dot-module__pulse___ck8O4", Dc = "status-dot-module__fui-status-pulse___N3Zei", Ic = "status-dot-module__neutral___OHH9F", Bc = "status-dot-module__info___M48Xe", Lc = "status-dot-module__success___UiZOI", Sc = "status-dot-module__warning___5i46X", Cc = "status-dot-module__error___lDxeD", Be = {
1660
- statusDot: kc,
1661
- sm: Nc,
1662
- md: xc,
1663
- pulse: Mc,
1664
- fuiStatusPulse: Dc,
1665
- neutral: Ic,
1666
- info: Bc,
1667
- success: Lc,
1668
- warning: Sc,
1669
- error: Cc
1668
+ const Dc = "status-dot-module__statusDot___ohD-u", Ic = "status-dot-module__sm___OB37e", Bc = "status-dot-module__md___gx9L0", Lc = "status-dot-module__pulse___ck8O4", Sc = "status-dot-module__fui-status-pulse___N3Zei", Cc = "status-dot-module__neutral___OHH9F", Ec = "status-dot-module__info___M48Xe", zc = "status-dot-module__success___UiZOI", Tc = "status-dot-module__warning___5i46X", Fc = "status-dot-module__error___lDxeD", Se = {
1669
+ statusDot: Dc,
1670
+ sm: Ic,
1671
+ md: Bc,
1672
+ pulse: Lc,
1673
+ fuiStatusPulse: Sc,
1674
+ neutral: Cc,
1675
+ info: Ec,
1676
+ success: zc,
1677
+ warning: Tc,
1678
+ error: Fc
1670
1679
  };
1671
- function P_({
1680
+ function H_({
1672
1681
  variant: o = "neutral",
1673
1682
  size: t = "sm",
1674
1683
  pulse: n = !1,
1675
- label: s,
1676
- className: l,
1684
+ label: l,
1685
+ className: s,
1677
1686
  ...a
1678
1687
  }) {
1679
1688
  return /* @__PURE__ */ e(
1680
1689
  "span",
1681
1690
  {
1682
- role: s ? "status" : void 0,
1683
- "aria-label": s,
1684
- "aria-hidden": s ? void 0 : !0,
1685
- className: d(
1686
- Be.statusDot,
1687
- Be[o],
1688
- Be[t],
1689
- n && Be.pulse,
1690
- l
1691
+ role: l ? "status" : void 0,
1692
+ "aria-label": l,
1693
+ "aria-hidden": l ? void 0 : !0,
1694
+ className: _(
1695
+ Se.statusDot,
1696
+ Se[o],
1697
+ Se[t],
1698
+ n && Se.pulse,
1699
+ s
1691
1700
  ),
1692
1701
  ...a
1693
1702
  }
1694
1703
  );
1695
1704
  }
1696
- const Ec = "chip-module__chip___U3kfP", zc = "chip-module__selected___n8qWx", Tc = "chip-module__sm___lA7fZ", Fc = "chip-module__md___1W8-i", Kc = "chip-module__icon___folVQ", Le = {
1697
- chip: Ec,
1698
- selected: zc,
1699
- sm: Tc,
1700
- md: Fc,
1701
- icon: Kc
1702
- }, A_ = E(function({ selected: t = !1, size: n = "md", icon: s, onToggle: l, onClick: a, className: i, children: r, ...p }, m) {
1703
- return /* @__PURE__ */ f(
1705
+ const Kc = "chip-module__chip___U3kfP", Pc = "chip-module__selected___n8qWx", Rc = "chip-module__sm___lA7fZ", Oc = "chip-module__md___1W8-i", Ac = "chip-module__icon___folVQ", Ce = {
1706
+ chip: Kc,
1707
+ selected: Pc,
1708
+ sm: Rc,
1709
+ md: Oc,
1710
+ icon: Ac
1711
+ }, q_ = z(function({ selected: t = !1, size: n = "md", icon: l, onToggle: s, onClick: a, className: d, children: r, ...u }, m) {
1712
+ return /* @__PURE__ */ b(
1704
1713
  "button",
1705
1714
  {
1706
1715
  ref: m,
1707
1716
  type: "button",
1708
1717
  "aria-pressed": t,
1709
- className: d(Le.chip, Le[n], t && Le.selected, i),
1710
- onClick: (_) => {
1711
- a == null || a(_), l == null || l(!t);
1718
+ className: _(Ce.chip, Ce[n], t && Ce.selected, d),
1719
+ onClick: (c) => {
1720
+ a == null || a(c), s == null || s(!t);
1712
1721
  },
1713
- ...p,
1722
+ ...u,
1714
1723
  children: [
1715
- s && /* @__PURE__ */ e("span", { className: Le.icon, "aria-hidden": "true", children: s }),
1724
+ l && /* @__PURE__ */ e("span", { className: Ce.icon, "aria-hidden": "true", children: l }),
1716
1725
  r
1717
1726
  ]
1718
1727
  }
1719
1728
  );
1720
- }), Rc = "segmented-control-module__group___Sme2r", Pc = "segmented-control-module__segment___NMDSl", Ac = "segmented-control-module__active___V3sJ9", Oc = "segmented-control-module__sm___D7s4Q", Gc = "segmented-control-module__md___C1BNb", jc = "segmented-control-module__icon___pYElm", he = {
1721
- group: Rc,
1722
- segment: Pc,
1723
- active: Ac,
1724
- sm: Oc,
1725
- md: Gc,
1726
- icon: jc
1729
+ }), Gc = "segmented-control-module__group___Sme2r", jc = "segmented-control-module__segment___NMDSl", Yc = "segmented-control-module__active___V3sJ9", Hc = "segmented-control-module__sm___D7s4Q", qc = "segmented-control-module__md___C1BNb", Uc = "segmented-control-module__icon___pYElm", ve = {
1730
+ group: Gc,
1731
+ segment: jc,
1732
+ active: Yc,
1733
+ sm: Hc,
1734
+ md: qc,
1735
+ icon: Uc
1727
1736
  };
1728
- function O_({
1737
+ function U_({
1729
1738
  options: o,
1730
1739
  value: t,
1731
1740
  onChange: n,
1732
- size: s = "md",
1733
- className: l,
1741
+ size: l = "md",
1742
+ className: s,
1734
1743
  ...a
1735
1744
  }) {
1736
- return /* @__PURE__ */ e("fieldset", { className: d(he.group, he[s], l), ...a, children: o.map((i) => {
1737
- const r = i.value === t;
1738
- return /* @__PURE__ */ f(
1745
+ return /* @__PURE__ */ e("fieldset", { className: _(ve.group, ve[l], s), ...a, children: o.map((d) => {
1746
+ const r = d.value === t;
1747
+ return /* @__PURE__ */ b(
1739
1748
  "button",
1740
1749
  {
1741
1750
  type: "button",
1742
1751
  "aria-pressed": r,
1743
- disabled: i.disabled,
1744
- className: d(he.segment, r && he.active),
1745
- onClick: () => n(i.value),
1752
+ disabled: d.disabled,
1753
+ className: _(ve.segment, r && ve.active),
1754
+ onClick: () => n(d.value),
1746
1755
  children: [
1747
- i.icon && /* @__PURE__ */ e("span", { className: he.icon, "aria-hidden": "true", children: i.icon }),
1748
- i.label
1756
+ d.icon && /* @__PURE__ */ e("span", { className: ve.icon, "aria-hidden": "true", children: d.icon }),
1757
+ d.label
1749
1758
  ]
1750
1759
  },
1751
- i.value
1760
+ d.value
1752
1761
  );
1753
1762
  }) });
1754
1763
  }
1755
- const Yc = "tabs-module__tabs___UMeM9", Hc = "tabs-module__horizontal___BEa1a", qc = "tabs-module__vertical___knHVr", Uc = "tabs-module__tablist___sKiEs", Wc = "tabs-module__tab___qi523", Zc = "tabs-module__active___PvUYu", Xc = "tabs-module__sm___kb5rQ", Vc = "tabs-module__md___0kG2U", Jc = "tabs-module__icon___YnQYW", Qc = "tabs-module__panel___G8tI0", te = {
1756
- tabs: Yc,
1757
- horizontal: Hc,
1758
- vertical: qc,
1759
- tablist: Uc,
1760
- tab: Wc,
1761
- active: Zc,
1762
- sm: Xc,
1763
- md: Vc,
1764
- icon: Jc,
1765
- panel: Qc
1764
+ const Wc = "tabs-module__tabs___UMeM9", Zc = "tabs-module__horizontal___BEa1a", Vc = "tabs-module__vertical___knHVr", Xc = "tabs-module__tablist___sKiEs", Jc = "tabs-module__tab___qi523", Qc = "tabs-module__active___PvUYu", er = "tabs-module__sm___kb5rQ", tr = "tabs-module__md___0kG2U", or = "tabs-module__icon___YnQYW", nr = "tabs-module__panel___G8tI0", lr = "tabs-module__ghost___zy5eg", oe = {
1765
+ tabs: Wc,
1766
+ horizontal: Zc,
1767
+ vertical: Vc,
1768
+ tablist: Xc,
1769
+ tab: Jc,
1770
+ active: Qc,
1771
+ sm: er,
1772
+ md: tr,
1773
+ icon: or,
1774
+ panel: nr,
1775
+ ghost: lr
1766
1776
  };
1767
- function G_({
1777
+ function W_({
1768
1778
  items: o,
1769
1779
  value: t,
1770
1780
  defaultValue: n,
1771
- onChange: s,
1772
- orientation: l = "horizontal",
1781
+ onChange: l,
1782
+ orientation: s = "horizontal",
1773
1783
  size: a = "md",
1774
- activation: i = "automatic",
1775
- tablistLabel: r,
1776
- className: p,
1777
- ...m
1784
+ variant: d = "underline",
1785
+ activation: r = "automatic",
1786
+ tablistLabel: u,
1787
+ className: m,
1788
+ ...c
1778
1789
  }) {
1779
- var A;
1780
- const _ = R(), h = (c) => `fui-tab-${_}-${c.value}`, u = (c) => `fui-tabpanel-${_}-${c.value}`, v = (A = o.find((c) => !c.disabled)) == null ? void 0 : A.value, [b, y] = O(n ?? v ?? ""), g = t ?? b, k = o.find((c) => c.value === g), w = C(/* @__PURE__ */ new Map()), x = (c) => {
1781
- t == null && y(c), c !== g && (s == null || s(c));
1782
- }, D = (c, $) => {
1783
- for (let M = 1; M <= o.length; M++) {
1784
- const S = (c + $ * M + o.length * M) % o.length;
1785
- if (!o[S].disabled) return S;
1790
+ var I;
1791
+ const p = R(), i = (w) => `fui-tab-${p}-${w.value}`, v = (w) => `fui-tabpanel-${p}-${w.value}`, h = (I = o.find((w) => !w.disabled)) == null ? void 0 : I.value, [g, y] = Y(n ?? h ?? ""), N = t ?? g, $ = o.find((w) => w.value === N), M = E(/* @__PURE__ */ new Map()), D = (w) => {
1792
+ t == null && y(w), w !== N && (l == null || l(w));
1793
+ }, S = (w, B) => {
1794
+ for (let f = 1; f <= o.length; f++) {
1795
+ const k = (w + B * f + o.length * f) % o.length;
1796
+ if (!o[k].disabled) return k;
1786
1797
  }
1787
- return c;
1788
- }, B = (c) => {
1789
- const M = (c ? [...o].reverse() : o).find((S) => !S.disabled);
1790
- return M ? o.indexOf(M) : -1;
1791
- }, L = (c) => {
1792
- var M;
1793
- const $ = o[c];
1794
- $ && ((M = w.current.get($.value)) == null || M.focus(), i === "automatic" && x($.value));
1795
- }, H = (c, $) => {
1796
- const M = l === "vertical", S = M ? "ArrowUp" : "ArrowLeft", _e = M ? "ArrowDown" : "ArrowRight";
1797
- switch (c.key) {
1798
- case S:
1799
- c.preventDefault(), L(D($, -1));
1798
+ return w;
1799
+ }, C = (w) => {
1800
+ const f = (w ? [...o].reverse() : o).find((k) => !k.disabled);
1801
+ return f ? o.indexOf(f) : -1;
1802
+ }, O = (w) => {
1803
+ var f;
1804
+ const B = o[w];
1805
+ B && ((f = M.current.get(B.value)) == null || f.focus(), r === "automatic" && D(B.value));
1806
+ }, j = (w, B) => {
1807
+ const f = s === "vertical", k = f ? "ArrowUp" : "ArrowLeft", A = f ? "ArrowDown" : "ArrowRight";
1808
+ switch (w.key) {
1809
+ case k:
1810
+ w.preventDefault(), O(S(B, -1));
1800
1811
  break;
1801
- case _e:
1802
- c.preventDefault(), L(D($, 1));
1812
+ case A:
1813
+ w.preventDefault(), O(S(B, 1));
1803
1814
  break;
1804
1815
  case "Home":
1805
- c.preventDefault(), L(B(!1));
1816
+ w.preventDefault(), O(C(!1));
1806
1817
  break;
1807
1818
  case "End":
1808
- c.preventDefault(), L(B(!0));
1819
+ w.preventDefault(), O(C(!0));
1809
1820
  break;
1810
1821
  case "Enter":
1811
1822
  case " ":
1812
- i === "manual" && (c.preventDefault(), x(o[$].value));
1823
+ r === "manual" && (w.preventDefault(), D(o[B].value));
1813
1824
  break;
1814
1825
  }
1815
1826
  };
1816
- return /* @__PURE__ */ f("div", { className: d(te.tabs, te[l], p), ...m, children: [
1817
- /* @__PURE__ */ e(
1818
- "div",
1819
- {
1820
- role: "tablist",
1821
- "aria-label": r,
1822
- "aria-orientation": l,
1823
- className: d(te.tablist, te[a]),
1824
- children: o.map((c, $) => {
1825
- const M = c.value === g;
1826
- return /* @__PURE__ */ f(
1827
- "button",
1828
- {
1829
- ref: (S) => {
1830
- S ? w.current.set(c.value, S) : w.current.delete(c.value);
1831
- },
1832
- type: "button",
1833
- role: "tab",
1834
- id: h(c),
1835
- "aria-selected": M,
1836
- "aria-controls": c.content != null ? u(c) : void 0,
1837
- tabIndex: M ? 0 : -1,
1838
- disabled: c.disabled,
1839
- className: d(te.tab, M && te.active),
1840
- onClick: () => x(c.value),
1841
- onKeyDown: (S) => H(S, $),
1842
- children: [
1843
- c.icon && /* @__PURE__ */ e("span", { className: te.icon, "aria-hidden": "true", children: c.icon }),
1844
- c.label
1845
- ]
1846
- },
1847
- c.value
1848
- );
1849
- })
1850
- }
1851
- ),
1852
- (k == null ? void 0 : k.content) != null && /* @__PURE__ */ e(
1853
- "div",
1854
- {
1855
- role: "tabpanel",
1856
- id: u(k),
1857
- "aria-labelledby": h(k),
1858
- tabIndex: 0,
1859
- className: te.panel,
1860
- children: k.content
1861
- }
1862
- )
1863
- ] });
1827
+ return /* @__PURE__ */ b(
1828
+ "div",
1829
+ {
1830
+ className: _(
1831
+ oe.tabs,
1832
+ oe[s],
1833
+ d === "ghost" && oe.ghost,
1834
+ m
1835
+ ),
1836
+ ...c,
1837
+ children: [
1838
+ /* @__PURE__ */ e(
1839
+ "div",
1840
+ {
1841
+ role: "tablist",
1842
+ "aria-label": u,
1843
+ "aria-orientation": s,
1844
+ className: _(oe.tablist, oe[a]),
1845
+ children: o.map((w, B) => {
1846
+ const f = w.value === N;
1847
+ return /* @__PURE__ */ b(
1848
+ "button",
1849
+ {
1850
+ ref: (k) => {
1851
+ k ? M.current.set(w.value, k) : M.current.delete(w.value);
1852
+ },
1853
+ type: "button",
1854
+ role: "tab",
1855
+ id: i(w),
1856
+ "aria-selected": f,
1857
+ "aria-controls": w.content != null ? v(w) : void 0,
1858
+ tabIndex: f ? 0 : -1,
1859
+ disabled: w.disabled,
1860
+ className: _(oe.tab, f && oe.active),
1861
+ onClick: () => D(w.value),
1862
+ onKeyDown: (k) => j(k, B),
1863
+ children: [
1864
+ w.icon && /* @__PURE__ */ e("span", { className: oe.icon, "aria-hidden": "true", children: w.icon }),
1865
+ w.label
1866
+ ]
1867
+ },
1868
+ w.value
1869
+ );
1870
+ })
1871
+ }
1872
+ ),
1873
+ ($ == null ? void 0 : $.content) != null && /* @__PURE__ */ e(
1874
+ "div",
1875
+ {
1876
+ role: "tabpanel",
1877
+ id: v($),
1878
+ "aria-labelledby": i($),
1879
+ tabIndex: 0,
1880
+ className: oe.panel,
1881
+ children: $.content
1882
+ }
1883
+ )
1884
+ ]
1885
+ }
1886
+ );
1864
1887
  }
1865
- const er = "kbd-module__kbd___dYNx-", tr = {
1866
- kbd: er
1888
+ const sr = "kbd-module__kbd___dYNx-", ar = {
1889
+ kbd: sr
1867
1890
  };
1868
- function j_({ className: o, children: t, ...n }) {
1869
- return /* @__PURE__ */ e("kbd", { className: d(tr.kbd, o), ...n, children: t });
1891
+ function Z_({ className: o, children: t, ...n }) {
1892
+ return /* @__PURE__ */ e("kbd", { className: _(ar.kbd, o), ...n, children: t });
1870
1893
  }
1871
- const or = "inline-code-module__inlineCode___JoxCb", nr = {
1872
- inlineCode: or
1894
+ const cr = "inline-code-module__inlineCode___JoxCb", rr = {
1895
+ inlineCode: cr
1873
1896
  };
1874
- function Y_({ className: o, children: t, ...n }) {
1875
- return /* @__PURE__ */ e("code", { className: d(nr.inlineCode, o), ...n, children: t });
1897
+ function V_({ className: o, children: t, ...n }) {
1898
+ return /* @__PURE__ */ e("code", { className: _(rr.inlineCode, o), ...n, children: t });
1876
1899
  }
1877
- const lr = "code-block-module__codeBlock___dq28o", sr = "code-block-module__header___42Fek", ar = "code-block-module__filename___TowWy", cr = "code-block-module__copy___zsnCK", rr = "code-block-module__pre___zXzLZ", _r = "code-block-module__line___wmWd9", dr = "code-block-module__marker___M0q-B", ir = "code-block-module__content___-zI10", ur = "code-block-module__add___4rhem", mr = "code-block-module__remove___5a-wi", Q = {
1878
- codeBlock: lr,
1879
- header: sr,
1880
- filename: ar,
1881
- copy: cr,
1882
- pre: rr,
1883
- line: _r,
1884
- marker: dr,
1885
- content: ir,
1886
- add: ur,
1887
- remove: mr
1888
- }, pr = { add: "+", remove: "-" };
1889
- function H_({
1900
+ const _r = "code-block-module__codeBlock___dq28o", dr = "code-block-module__header___42Fek", ir = "code-block-module__filename___TowWy", ur = "code-block-module__copy___zsnCK", mr = "code-block-module__pre___zXzLZ", pr = "code-block-module__line___wmWd9", hr = "code-block-module__marker___M0q-B", br = "code-block-module__content___-zI10", fr = "code-block-module__add___4rhem", vr = "code-block-module__remove___5a-wi", ne = {
1901
+ codeBlock: _r,
1902
+ header: dr,
1903
+ filename: ir,
1904
+ copy: ur,
1905
+ pre: mr,
1906
+ line: pr,
1907
+ marker: hr,
1908
+ content: br,
1909
+ add: fr,
1910
+ remove: vr
1911
+ }, gr = { add: "+", remove: "-" };
1912
+ function X_({
1890
1913
  code: o,
1891
1914
  lines: t,
1892
1915
  filename: n,
1893
- copyable: s = !0,
1894
- className: l,
1916
+ copyable: l = !0,
1917
+ className: s,
1895
1918
  ...a
1896
1919
  }) {
1897
- const [i, r] = O(!1), p = t ?? (o != null ? o.split(`
1898
- `).map((b) => ({ content: b })) : []), m = p.map((b) => b.content).join(`
1899
- `), _ = p.some((b) => b.diff != null), h = () => {
1900
- var y;
1901
- const b = (y = navigator.clipboard) == null ? void 0 : y.writeText(m);
1902
- b && b.then(
1920
+ const [d, r] = Y(!1), u = t ?? (o != null ? o.split(`
1921
+ `).map((h) => ({ content: h })) : []), m = u.map((h) => h.content).join(`
1922
+ `), c = u.some((h) => h.diff != null), p = () => {
1923
+ var g;
1924
+ const h = (g = navigator.clipboard) == null ? void 0 : g.writeText(m);
1925
+ h && h.then(
1903
1926
  () => {
1904
1927
  r(!0), window.setTimeout(() => r(!1), 2e3);
1905
1928
  },
1906
1929
  () => r(!1)
1907
1930
  );
1908
- }, u = /* @__PURE__ */ new Map(), v = p.map((b) => {
1909
- const y = `${b.diff ?? ""}\0${b.content}`, g = u.get(y) ?? 0;
1910
- return u.set(y, g + 1), { line: b, key: `${y}\0${g}` };
1931
+ }, i = /* @__PURE__ */ new Map(), v = u.map((h) => {
1932
+ const g = `${h.diff ?? ""}\0${h.content}`, y = i.get(g) ?? 0;
1933
+ return i.set(g, y + 1), { line: h, key: `${g}\0${y}` };
1911
1934
  });
1912
- return /* @__PURE__ */ f("div", { className: d(Q.codeBlock, l), ...a, children: [
1913
- (n || s) && /* @__PURE__ */ f("div", { className: Q.header, children: [
1914
- n && /* @__PURE__ */ e("span", { className: Q.filename, children: n }),
1915
- s && /* @__PURE__ */ e(
1935
+ return /* @__PURE__ */ b("div", { className: _(ne.codeBlock, s), ...a, children: [
1936
+ (n || l) && /* @__PURE__ */ b("div", { className: ne.header, children: [
1937
+ n && /* @__PURE__ */ e("span", { className: ne.filename, children: n }),
1938
+ l && /* @__PURE__ */ e(
1916
1939
  "button",
1917
1940
  {
1918
1941
  type: "button",
1919
- className: Q.copy,
1920
- "aria-label": i ? "Copied" : "Copy code",
1921
- onClick: h,
1922
- children: i ? "copied" : "copy"
1942
+ className: ne.copy,
1943
+ "aria-label": d ? "Copied" : "Copy code",
1944
+ onClick: p,
1945
+ children: d ? "copied" : "copy"
1923
1946
  }
1924
1947
  )
1925
1948
  ] }),
1926
- /* @__PURE__ */ e("pre", { className: Q.pre, children: /* @__PURE__ */ e("code", { children: v.map(({ line: b, key: y }) => /* @__PURE__ */ f("span", { className: d(Q.line, b.diff && Q[b.diff]), children: [
1927
- _ && /* @__PURE__ */ e("span", { className: Q.marker, "aria-hidden": "true", children: b.diff ? pr[b.diff] : "" }),
1928
- /* @__PURE__ */ e("span", { className: Q.content, children: b.content })
1929
- ] }, y)) }) })
1949
+ /* @__PURE__ */ e("pre", { className: ne.pre, children: /* @__PURE__ */ e("code", { children: v.map(({ line: h, key: g }) => /* @__PURE__ */ b("span", { className: _(ne.line, h.diff && ne[h.diff]), children: [
1950
+ c && /* @__PURE__ */ e("span", { className: ne.marker, "aria-hidden": "true", children: h.diff ? gr[h.diff] : "" }),
1951
+ /* @__PURE__ */ e("span", { className: ne.content, children: h.content })
1952
+ ] }, g)) }) })
1930
1953
  ] });
1931
1954
  }
1932
- const hr = "copy-button-module__copyButton___-hTo4", br = "copy-button-module__copied___XlHFr", fr = "copy-button-module__icon___4B9mp", Fe = {
1933
- copyButton: hr,
1934
- copied: br,
1935
- icon: fr
1936
- }, q_ = E(function({
1955
+ const yr = "copy-button-module__copyButton___-hTo4", $r = "copy-button-module__copied___XlHFr", wr = "copy-button-module__icon___4B9mp", Ke = {
1956
+ copyButton: yr,
1957
+ copied: $r,
1958
+ icon: wr
1959
+ }, J_ = z(function({
1937
1960
  value: t,
1938
1961
  label: n = "copy",
1939
- copiedLabel: s = "copied",
1940
- icon: l,
1962
+ copiedLabel: l = "copied",
1963
+ icon: s,
1941
1964
  copiedIcon: a,
1942
- timeout: i = 2e3,
1965
+ timeout: d = 2e3,
1943
1966
  onCopy: r,
1944
- onClick: p,
1967
+ onClick: u,
1945
1968
  className: m,
1946
- ..._
1947
- }, h) {
1948
- const [u, v] = O(!1), b = C();
1949
- ee(() => () => window.clearTimeout(b.current), []);
1950
- const y = (w) => {
1969
+ ...c
1970
+ }, p) {
1971
+ const [i, v] = Y(!1), h = E();
1972
+ le(() => () => window.clearTimeout(h.current), []);
1973
+ const g = ($) => {
1951
1974
  var D;
1952
- p == null || p(w);
1953
- const x = (D = navigator.clipboard) == null ? void 0 : D.writeText(t);
1954
- x && x.then(
1975
+ u == null || u($);
1976
+ const M = (D = navigator.clipboard) == null ? void 0 : D.writeText(t);
1977
+ M && M.then(
1955
1978
  () => {
1956
- v(!0), r == null || r(), window.clearTimeout(b.current), b.current = window.setTimeout(() => v(!1), i);
1979
+ v(!0), r == null || r(), window.clearTimeout(h.current), h.current = window.setTimeout(() => v(!1), d);
1957
1980
  },
1958
1981
  () => v(!1)
1959
1982
  );
1960
- }, g = u ? a ?? l : l, k = u ? s : n;
1961
- return /* @__PURE__ */ f(
1983
+ }, y = i ? a ?? s : s, N = i ? l : n;
1984
+ return /* @__PURE__ */ b(
1962
1985
  "button",
1963
1986
  {
1964
- ref: h,
1987
+ ref: p,
1965
1988
  type: "button",
1966
- "aria-label": k,
1967
- className: d(Fe.copyButton, u && Fe.copied, m),
1968
- onClick: y,
1969
- ..._,
1989
+ "aria-label": N,
1990
+ className: _(Ke.copyButton, i && Ke.copied, m),
1991
+ onClick: g,
1992
+ ...c,
1970
1993
  children: [
1971
- g && /* @__PURE__ */ e("span", { className: Fe.icon, "aria-hidden": "true", children: g }),
1972
- /* @__PURE__ */ e("span", { children: k })
1994
+ y && /* @__PURE__ */ e("span", { className: Ke.icon, "aria-hidden": "true", children: y }),
1995
+ /* @__PURE__ */ e("span", { children: N })
1973
1996
  ]
1974
1997
  }
1975
1998
  );
1976
- }), vr = "data-table-module__wrapper___UTyMr", gr = "data-table-module__table___Fuoei", yr = "data-table-module__caption___QjcZG", $r = "data-table-module__head___g-ix3", wr = "data-table-module__th___GLSnD", kr = "data-table-module__td___Z6bns", Nr = "data-table-module__row___ZyAGw", xr = "data-table-module__striped___QXV4j", Mr = "data-table-module__hoverable___zuaEp", Dr = "data-table-module__clickable___npv-C", Ir = "data-table-module__empty___vSmGc", Br = "data-table-module__left___H3aIX", Lr = "data-table-module__center___OEedB", Sr = "data-table-module__right___d0MIh", Cr = "data-table-module__compact___R6xaO", T = {
1977
- wrapper: vr,
1978
- table: gr,
1979
- caption: yr,
1980
- head: $r,
1981
- th: wr,
1982
- td: kr,
1983
- row: Nr,
1984
- striped: xr,
1985
- hoverable: Mr,
1986
- clickable: Dr,
1987
- empty: Ir,
1988
- left: Br,
1989
- center: Lr,
1990
- right: Sr,
1991
- compact: Cr
1999
+ }), kr = "data-table-module__wrapper___UTyMr", Nr = "data-table-module__table___Fuoei", xr = "data-table-module__caption___QjcZG", Mr = "data-table-module__head___g-ix3", Dr = "data-table-module__th___GLSnD", Ir = "data-table-module__td___Z6bns", Br = "data-table-module__row___ZyAGw", Lr = "data-table-module__striped___QXV4j", Sr = "data-table-module__hoverable___zuaEp", Cr = "data-table-module__clickable___npv-C", Er = "data-table-module__empty___vSmGc", zr = "data-table-module__left___H3aIX", Tr = "data-table-module__center___OEedB", Fr = "data-table-module__right___d0MIh", Kr = "data-table-module__compact___R6xaO", F = {
2000
+ wrapper: kr,
2001
+ table: Nr,
2002
+ caption: xr,
2003
+ head: Mr,
2004
+ th: Dr,
2005
+ td: Ir,
2006
+ row: Br,
2007
+ striped: Lr,
2008
+ hoverable: Sr,
2009
+ clickable: Cr,
2010
+ empty: Er,
2011
+ left: zr,
2012
+ center: Tr,
2013
+ right: Fr,
2014
+ compact: Kr
1992
2015
  };
1993
- function U_({
2016
+ function Q_({
1994
2017
  data: o,
1995
2018
  columns: t,
1996
2019
  keyExtractor: n,
1997
- striped: s = !0,
1998
- hoverable: l = !0,
2020
+ striped: l = !0,
2021
+ hoverable: s = !0,
1999
2022
  compact: a = !1,
2000
- loading: i = !1,
2023
+ loading: d = !1,
2001
2024
  loadingRows: r = 3,
2002
- emptyMessage: p = "No data",
2025
+ emptyMessage: u = "No data",
2003
2026
  caption: m,
2004
- rowClassName: _,
2005
- onRowClick: h,
2006
- className: u,
2027
+ rowClassName: c,
2028
+ onRowClick: p,
2029
+ className: i,
2007
2030
  ...v
2008
2031
  }) {
2009
- const b = (g) => g ? T[g] : void 0, y = Re(
2010
- () => Array.from({ length: r }, (g, k) => `fui-data-table-loading-${k}`),
2032
+ const h = (y) => y ? F[y] : void 0, g = Re(
2033
+ () => Array.from({ length: r }, (y, N) => `fui-data-table-loading-${N}`),
2011
2034
  [r]
2012
2035
  );
2013
- return /* @__PURE__ */ e("div", { className: d(T.wrapper, u), ...v, children: /* @__PURE__ */ f("table", { className: d(T.table, a && T.compact), children: [
2014
- m != null && /* @__PURE__ */ e("caption", { className: T.caption, children: m }),
2015
- /* @__PURE__ */ e("thead", { className: T.head, children: /* @__PURE__ */ e("tr", { children: t.map((g) => /* @__PURE__ */ e(
2036
+ return /* @__PURE__ */ e("div", { className: _(F.wrapper, i), ...v, children: /* @__PURE__ */ b("table", { className: _(F.table, a && F.compact), children: [
2037
+ m != null && /* @__PURE__ */ e("caption", { className: F.caption, children: m }),
2038
+ /* @__PURE__ */ e("thead", { className: F.head, children: /* @__PURE__ */ e("tr", { children: t.map((y) => /* @__PURE__ */ e(
2016
2039
  "th",
2017
2040
  {
2018
2041
  scope: "col",
2019
- className: d(T.th, b(g.align)),
2020
- style: { width: g.width },
2021
- children: g.header
2042
+ className: _(F.th, h(y.align)),
2043
+ style: { width: y.width },
2044
+ children: y.header
2022
2045
  },
2023
- g.key
2046
+ y.key
2024
2047
  )) }) }),
2025
- /* @__PURE__ */ f("tbody", { children: [
2026
- i && y.map((g) => /* @__PURE__ */ e("tr", { className: T.row, children: t.map((k) => /* @__PURE__ */ e("td", { className: d(T.td, b(k.align)), children: /* @__PURE__ */ e(pc, { width: "70%" }) }, k.key)) }, g)),
2027
- !i && o.length === 0 && /* @__PURE__ */ e("tr", { className: T.row, children: /* @__PURE__ */ e("td", { colSpan: t.length, className: T.empty, children: p }) }),
2028
- !i && o.map((g, k) => {
2029
- const w = n(g);
2048
+ /* @__PURE__ */ b("tbody", { children: [
2049
+ d && g.map((y) => /* @__PURE__ */ e("tr", { className: F.row, children: t.map((N) => /* @__PURE__ */ e("td", { className: _(F.td, h(N.align)), children: /* @__PURE__ */ e(vc, { width: "70%" }) }, N.key)) }, y)),
2050
+ !d && o.length === 0 && /* @__PURE__ */ e("tr", { className: F.row, children: /* @__PURE__ */ e("td", { colSpan: t.length, className: F.empty, children: u }) }),
2051
+ !d && o.map((y, N) => {
2052
+ const $ = n(y);
2030
2053
  return /* @__PURE__ */ e(
2031
2054
  "tr",
2032
2055
  {
2033
- className: d(
2034
- T.row,
2035
- s && k % 2 === 1 && T.striped,
2036
- l && T.hoverable,
2037
- h && T.clickable,
2038
- typeof _ == "function" ? _(g) : _
2056
+ className: _(
2057
+ F.row,
2058
+ l && N % 2 === 1 && F.striped,
2059
+ s && F.hoverable,
2060
+ p && F.clickable,
2061
+ typeof c == "function" ? c(y) : c
2039
2062
  ),
2040
- tabIndex: h ? 0 : void 0,
2041
- onClick: h ? () => h(g) : void 0,
2042
- onKeyDown: h ? (x) => {
2043
- (x.key === "Enter" || x.key === " ") && (x.preventDefault(), h(g));
2063
+ tabIndex: p ? 0 : void 0,
2064
+ onClick: p ? () => p(y) : void 0,
2065
+ onKeyDown: p ? (M) => {
2066
+ (M.key === "Enter" || M.key === " ") && (M.preventDefault(), p(y));
2044
2067
  } : void 0,
2045
- children: t.map((x) => /* @__PURE__ */ e(
2068
+ children: t.map((M) => /* @__PURE__ */ e(
2046
2069
  "td",
2047
2070
  {
2048
- className: d(T.td, b(x.align)),
2049
- children: x.cell(g)
2071
+ className: _(F.td, h(M.align)),
2072
+ children: M.cell(y)
2050
2073
  },
2051
- `${w}-${x.key}`
2074
+ `${$}-${M.key}`
2052
2075
  ))
2053
2076
  },
2054
- w
2077
+ $
2055
2078
  );
2056
2079
  })
2057
2080
  ] })
2058
2081
  ] }) });
2059
2082
  }
2060
- const Er = "breadcrumb-module__breadcrumb___r-ILp", zr = "breadcrumb-module__list___V3YFy", Tr = "breadcrumb-module__item___dDwYf", Fr = "breadcrumb-module__link___CHC9k", Kr = "breadcrumb-module__current___dprI9", Rr = "breadcrumb-module__separator___uLhtn", oe = {
2061
- breadcrumb: Er,
2062
- list: zr,
2063
- item: Tr,
2064
- link: Fr,
2065
- current: Kr,
2066
- separator: Rr
2083
+ const Pr = "breadcrumb-module__breadcrumb___r-ILp", Rr = "breadcrumb-module__list___V3YFy", Or = "breadcrumb-module__item___dDwYf", Ar = "breadcrumb-module__link___CHC9k", Gr = "breadcrumb-module__current___dprI9", jr = "breadcrumb-module__separator___uLhtn", se = {
2084
+ breadcrumb: Pr,
2085
+ list: Rr,
2086
+ item: Or,
2087
+ link: Ar,
2088
+ current: Gr,
2089
+ separator: jr
2067
2090
  };
2068
- function Pr({ item: o, current: t }) {
2069
- return t ? /* @__PURE__ */ e("span", { className: oe.current, "aria-current": "page", children: o.label }) : o.href ? /* @__PURE__ */ e("a", { className: oe.link, href: o.href, onClick: o.onClick, children: o.label }) : o.onClick ? /* @__PURE__ */ e("button", { type: "button", className: oe.link, onClick: o.onClick, children: o.label }) : /* @__PURE__ */ e("span", { className: oe.link, children: o.label });
2091
+ function Yr({ item: o, current: t }) {
2092
+ return t ? /* @__PURE__ */ e("span", { className: se.current, "aria-current": "page", children: o.label }) : o.href ? /* @__PURE__ */ e("a", { className: se.link, href: o.href, onClick: o.onClick, children: o.label }) : o.onClick ? /* @__PURE__ */ e("button", { type: "button", className: se.link, onClick: o.onClick, children: o.label }) : /* @__PURE__ */ e("span", { className: se.link, children: o.label });
2070
2093
  }
2071
- function W_({ items: o, separator: t = "/", className: n, ...s }) {
2072
- const l = /* @__PURE__ */ new Map();
2073
- return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: d(oe.breadcrumb, n), ...s, children: /* @__PURE__ */ e("ol", { className: oe.list, children: o.map((a, i) => {
2074
- const r = i === o.length - 1, p = a.current ?? r, m = a.href ?? (typeof a.label == "string" ? a.label : ""), _ = l.get(m) ?? 0;
2075
- return l.set(m, _ + 1), /* @__PURE__ */ f("li", { className: oe.item, children: [
2076
- /* @__PURE__ */ e(Pr, { item: a, current: p }),
2077
- !r && /* @__PURE__ */ e("span", { className: oe.separator, "aria-hidden": "true", children: t })
2078
- ] }, `${m} ${_}`);
2094
+ function ed({ items: o, separator: t = "/", className: n, ...l }) {
2095
+ const s = /* @__PURE__ */ new Map();
2096
+ return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: _(se.breadcrumb, n), ...l, children: /* @__PURE__ */ e("ol", { className: se.list, children: o.map((a, d) => {
2097
+ const r = d === o.length - 1, u = a.current ?? r, m = a.href ?? (typeof a.label == "string" ? a.label : ""), c = s.get(m) ?? 0;
2098
+ return s.set(m, c + 1), /* @__PURE__ */ b("li", { className: se.item, children: [
2099
+ /* @__PURE__ */ e(Yr, { item: a, current: u }),
2100
+ !r && /* @__PURE__ */ e("span", { className: se.separator, "aria-hidden": "true", children: t })
2101
+ ] }, `${m} ${c}`);
2079
2102
  }) }) });
2080
2103
  }
2081
- const Ar = "menu-module__menu___i40Wj", Or = "menu-module__trigger___FBppm", Gr = "menu-module__list___YjCfD", jr = "menu-module__start___fmDPf", Yr = "menu-module__end___a7S-M", Hr = "menu-module__item___aqcgg", qr = "menu-module__active___JMLGb", Ur = "menu-module__danger___p9oZo", Wr = "menu-module__icon___1qUvA", Zr = "menu-module__separator___g2uay", Xr = "menu-module__selected___YvGDq", Z = {
2082
- menu: Ar,
2083
- trigger: Or,
2084
- list: Gr,
2085
- start: jr,
2086
- end: Yr,
2087
- item: Hr,
2088
- active: qr,
2089
- danger: Ur,
2090
- icon: Wr,
2091
- separator: Zr,
2092
- selected: Xr
2104
+ const Hr = "menu-module__menu___i40Wj", qr = "menu-module__trigger___FBppm", Ur = "menu-module__list___YjCfD", Wr = "menu-module__start___fmDPf", Zr = "menu-module__end___a7S-M", Vr = "menu-module__item___aqcgg", Xr = "menu-module__active___JMLGb", Jr = "menu-module__danger___p9oZo", Qr = "menu-module__icon___1qUvA", e_ = "menu-module__separator___g2uay", t_ = "menu-module__selected___YvGDq", J = {
2105
+ menu: Hr,
2106
+ trigger: qr,
2107
+ list: Ur,
2108
+ start: Wr,
2109
+ end: Zr,
2110
+ item: Vr,
2111
+ active: Xr,
2112
+ danger: Jr,
2113
+ icon: Qr,
2114
+ separator: e_,
2115
+ selected: t_
2093
2116
  };
2094
- function qe(o) {
2117
+ function Ue(o) {
2095
2118
  return "separator" in o;
2096
2119
  }
2097
- function be(o) {
2098
- return !qe(o) && !o.disabled;
2120
+ function ge(o) {
2121
+ return !Ue(o) && !o.disabled;
2099
2122
  }
2100
- function Z_({ trigger: o, items: t, triggerLabel: n, align: s = "start", className: l }) {
2101
- const a = R(), i = `fui-menu-trigger-${a}`, r = `fui-menu-${a}`, p = (c) => `${r}-item-${c}`, [m, _] = O(!1), [h, u] = O(-1), v = C(null), b = C(null), y = C(null), g = () => t.findIndex(be), k = () => {
2102
- for (let c = t.length - 1; c >= 0; c--) if (be(t[c])) return c;
2123
+ function o_(...o) {
2124
+ return (t) => {
2125
+ for (const n of o)
2126
+ typeof n == "function" ? n(t) : n && (n.current = t);
2127
+ };
2128
+ }
2129
+ function td({
2130
+ trigger: o,
2131
+ items: t,
2132
+ asChild: n,
2133
+ triggerLabel: l,
2134
+ align: s = "start",
2135
+ className: a
2136
+ }) {
2137
+ const d = R(), r = `fui-menu-trigger-${d}`, u = `fui-menu-${d}`, m = (f) => `${u}-item-${f}`, [c, p] = Y(!1), [i, v] = Y(-1), h = E(null), g = E(null), y = E(null), N = () => t.findIndex(ge), $ = () => {
2138
+ for (let f = t.length - 1; f >= 0; f--) if (ge(t[f])) return f;
2103
2139
  return -1;
2104
- }, w = (c) => {
2105
- for (let $ = c + 1; $ < t.length; $++) if (be(t[$])) return $;
2106
- return c;
2107
- }, x = (c) => {
2108
- for (let $ = c - 1; $ >= 0; $--) if (be(t[$])) return $;
2109
- return c;
2140
+ }, M = (f) => {
2141
+ for (let k = f + 1; k < t.length; k++) if (ge(t[k])) return k;
2142
+ return f;
2143
+ }, D = (f) => {
2144
+ for (let k = f - 1; k >= 0; k--) if (ge(t[k])) return k;
2145
+ return f;
2110
2146
  };
2111
- ee(() => {
2112
- var c;
2113
- m && ((c = y.current) == null || c.focus());
2114
- }, [m]), ee(() => {
2115
- if (!m) return;
2116
- const c = ($) => {
2117
- var M;
2118
- (M = v.current) != null && M.contains($.target) || _(!1);
2147
+ le(() => {
2148
+ var f;
2149
+ c && ((f = y.current) == null || f.focus());
2150
+ }, [c]), le(() => {
2151
+ if (!c) return;
2152
+ const f = (k) => {
2153
+ var A;
2154
+ (A = h.current) != null && A.contains(k.target) || p(!1);
2119
2155
  };
2120
- return window.addEventListener("pointerdown", c), () => window.removeEventListener("pointerdown", c);
2121
- }, [m]);
2122
- const D = (c) => {
2123
- u(c), _(!0);
2124
- }, B = (c = !0) => {
2125
- var $;
2126
- _(!1), c && (($ = b.current) == null || $.focus());
2127
- }, L = (c) => {
2128
- var M;
2129
- const $ = t[c];
2130
- !$ || !be($) || ((M = $.onSelect) == null || M.call($), B());
2131
- }, H = (c) => {
2132
- switch (c.key) {
2156
+ return window.addEventListener("pointerdown", f), () => window.removeEventListener("pointerdown", f);
2157
+ }, [c]);
2158
+ const S = (f) => {
2159
+ v(f), p(!0);
2160
+ }, C = (f = !0) => {
2161
+ var k;
2162
+ p(!1), f && ((k = g.current) == null || k.focus());
2163
+ }, O = (f) => {
2164
+ var A;
2165
+ const k = t[f];
2166
+ !k || !ge(k) || ((A = k.onSelect) == null || A.call(k), C());
2167
+ }, j = () => {
2168
+ c ? C() : S(N());
2169
+ }, I = (f) => {
2170
+ switch (f.key) {
2133
2171
  case "ArrowDown":
2134
2172
  case "Enter":
2135
2173
  case " ":
2136
- c.preventDefault(), m || D(g());
2174
+ f.preventDefault(), c || S(N());
2137
2175
  break;
2138
2176
  case "ArrowUp":
2139
- c.preventDefault(), m || D(k());
2177
+ f.preventDefault(), c || S($());
2140
2178
  break;
2141
2179
  }
2142
- }, A = (c) => {
2143
- switch (c.key) {
2180
+ }, w = (f) => {
2181
+ switch (f.key) {
2144
2182
  case "ArrowDown":
2145
- c.preventDefault(), u(($) => w($));
2183
+ f.preventDefault(), v((k) => M(k));
2146
2184
  break;
2147
2185
  case "ArrowUp":
2148
- c.preventDefault(), u(($) => x($));
2186
+ f.preventDefault(), v((k) => D(k));
2149
2187
  break;
2150
2188
  case "Home":
2151
- c.preventDefault(), u(g());
2189
+ f.preventDefault(), v(N());
2152
2190
  break;
2153
2191
  case "End":
2154
- c.preventDefault(), u(k());
2192
+ f.preventDefault(), v($());
2155
2193
  break;
2156
2194
  case "Enter":
2157
2195
  case " ":
2158
- c.preventDefault(), h >= 0 && L(h);
2196
+ f.preventDefault(), i >= 0 && O(i);
2159
2197
  break;
2160
2198
  case "Escape":
2161
- c.preventDefault(), B();
2199
+ f.preventDefault(), C();
2162
2200
  break;
2163
2201
  case "Tab":
2164
- _(!1);
2202
+ p(!1);
2165
2203
  break;
2166
2204
  }
2167
- };
2168
- return /* @__PURE__ */ f("div", { ref: v, className: d(Z.menu, l), children: [
2169
- /* @__PURE__ */ e(
2205
+ }, B = () => {
2206
+ if (n && lt(o)) {
2207
+ const f = o, { onClick: k, onKeyDown: A } = f.props, ae = {
2208
+ ref: o_(g, f.ref),
2209
+ id: r,
2210
+ "aria-haspopup": "menu",
2211
+ "aria-expanded": c,
2212
+ "aria-controls": c ? u : void 0,
2213
+ onClick: (W) => {
2214
+ k == null || k(W), W.defaultPrevented || j();
2215
+ },
2216
+ onKeyDown: (W) => {
2217
+ A == null || A(W), W.defaultPrevented || I(W);
2218
+ }
2219
+ };
2220
+ return l != null && (ae["aria-label"] = l), He(f, ae);
2221
+ }
2222
+ return /* @__PURE__ */ e(
2170
2223
  "button",
2171
2224
  {
2172
- ref: b,
2225
+ ref: (f) => {
2226
+ g.current = f;
2227
+ },
2173
2228
  type: "button",
2174
- id: i,
2229
+ id: r,
2175
2230
  "aria-haspopup": "menu",
2176
- "aria-expanded": m,
2177
- "aria-controls": m ? r : void 0,
2178
- "aria-label": n,
2179
- className: Z.trigger,
2180
- onClick: () => m ? B() : D(g()),
2181
- onKeyDown: H,
2231
+ "aria-expanded": c,
2232
+ "aria-controls": c ? u : void 0,
2233
+ "aria-label": l,
2234
+ className: J.trigger,
2235
+ onClick: j,
2236
+ onKeyDown: I,
2182
2237
  children: o
2183
2238
  }
2184
- ),
2185
- m && /* @__PURE__ */ e(
2239
+ );
2240
+ };
2241
+ return /* @__PURE__ */ b("div", { ref: h, className: _(J.menu, a), children: [
2242
+ B(),
2243
+ c && /* @__PURE__ */ e(
2186
2244
  "div",
2187
2245
  {
2188
2246
  ref: y,
2189
- id: r,
2247
+ id: u,
2190
2248
  role: "menu",
2191
- "aria-labelledby": i,
2192
- "aria-activedescendant": h >= 0 ? p(h) : void 0,
2249
+ "aria-labelledby": r,
2250
+ "aria-activedescendant": i >= 0 ? m(i) : void 0,
2193
2251
  tabIndex: -1,
2194
- className: d(Z.list, Z[s]),
2195
- onKeyDown: A,
2252
+ className: _(J.list, J[s]),
2253
+ onKeyDown: w,
2196
2254
  children: t.map(
2197
- (c, $) => qe(c) ? /* @__PURE__ */ e("hr", { className: Z.separator }, p($)) : /* @__PURE__ */ f(
2255
+ (f, k) => Ue(f) ? /* @__PURE__ */ e("hr", { className: J.separator }, m(k)) : /* @__PURE__ */ b(
2198
2256
  "button",
2199
2257
  {
2200
2258
  type: "button",
2201
- id: p($),
2202
- role: c.selected == null ? "menuitem" : "menuitemradio",
2203
- "aria-checked": c.selected,
2259
+ id: m(k),
2260
+ role: f.selected == null ? "menuitem" : "menuitemradio",
2261
+ "aria-checked": f.selected,
2204
2262
  tabIndex: -1,
2205
- disabled: c.disabled,
2206
- className: d(
2207
- Z.item,
2208
- c.danger && Z.danger,
2209
- c.selected && Z.selected,
2210
- $ === h && Z.active
2263
+ disabled: f.disabled,
2264
+ className: _(
2265
+ J.item,
2266
+ f.danger && J.danger,
2267
+ f.selected && J.selected,
2268
+ k === i && J.active
2211
2269
  ),
2212
- onPointerMove: () => !c.disabled && u($),
2213
- onClick: () => L($),
2270
+ onPointerMove: () => !f.disabled && v(k),
2271
+ onClick: () => O(k),
2214
2272
  children: [
2215
- c.icon && /* @__PURE__ */ e("span", { className: Z.icon, "aria-hidden": "true", children: c.icon }),
2216
- c.label
2273
+ f.icon && /* @__PURE__ */ e("span", { className: J.icon, "aria-hidden": "true", children: f.icon }),
2274
+ f.label
2217
2275
  ]
2218
2276
  },
2219
- p($)
2277
+ m(k)
2220
2278
  )
2221
2279
  )
2222
2280
  }
2223
2281
  )
2224
2282
  ] });
2225
2283
  }
2226
- const Vr = "file-button-module__fileButton___aK91Q", Jr = "file-button-module__disabled___RF3Ox", Qr = "file-button-module__input___Z5bit", e_ = "file-button-module__icon___Tkeo1", Se = {
2227
- fileButton: Vr,
2228
- disabled: Jr,
2229
- input: Qr,
2230
- icon: e_
2231
- }, X_ = E(function({ onFiles: t, icon: n, children: s, disabled: l, className: a, ...i }, r) {
2232
- return /* @__PURE__ */ f("label", { className: d(Se.fileButton, l && Se.disabled, a), children: [
2284
+ const n_ = "file-button-module__fileButton___aK91Q", l_ = "file-button-module__disabled___RF3Ox", s_ = "file-button-module__input___Z5bit", a_ = "file-button-module__icon___Tkeo1", Ee = {
2285
+ fileButton: n_,
2286
+ disabled: l_,
2287
+ input: s_,
2288
+ icon: a_
2289
+ }, od = z(function({ onFiles: t, icon: n, children: l, disabled: s, className: a, ...d }, r) {
2290
+ return /* @__PURE__ */ b("label", { className: _(Ee.fileButton, s && Ee.disabled, a), children: [
2233
2291
  /* @__PURE__ */ e(
2234
2292
  "input",
2235
2293
  {
2236
2294
  ref: r,
2237
2295
  type: "file",
2238
- className: Se.input,
2239
- disabled: l,
2240
- onChange: (p) => {
2241
- const { files: m } = p.target;
2296
+ className: Ee.input,
2297
+ disabled: s,
2298
+ onChange: (u) => {
2299
+ const { files: m } = u.target;
2242
2300
  m && m.length > 0 && t(m);
2243
2301
  },
2244
- ...i
2302
+ ...d
2245
2303
  }
2246
2304
  ),
2247
- n && /* @__PURE__ */ e("span", { className: Se.icon, "aria-hidden": "true", children: n }),
2248
- s
2305
+ n && /* @__PURE__ */ e("span", { className: Ee.icon, "aria-hidden": "true", children: n }),
2306
+ l
2249
2307
  ] });
2250
- }), t_ = "icon-module__icon___2vrJz", o_ = {
2251
- icon: t_
2252
- }, n_ = {
2308
+ }), c_ = "icon-module__icon___2vrJz", r_ = {
2309
+ icon: c_
2310
+ }, __ = {
2253
2311
  close: /* @__PURE__ */ e("path", { d: "M6 6l12 12M18 6L6 18" }),
2254
2312
  check: /* @__PURE__ */ e("path", { d: "M5 13l4 4L19 7" }),
2255
- copy: /* @__PURE__ */ f(K, { children: [
2313
+ copy: /* @__PURE__ */ b(P, { children: [
2256
2314
  /* @__PURE__ */ e("rect", { x: "8", y: "8", width: "12", height: "12", rx: "2" }),
2257
2315
  /* @__PURE__ */ e("path", { d: "M16 8V6a2 2 0 00-2-2H6a2 2 0 00-2 2v8a2 2 0 002 2h2" })
2258
2316
  ] }),
2259
2317
  plus: /* @__PURE__ */ e("path", { d: "M12 5v14M5 12h14" }),
2260
2318
  folder: /* @__PURE__ */ e("path", { d: "M3 6a2 2 0 012-2h4l2 2h8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2V6z" }),
2261
- lightbulb: /* @__PURE__ */ f(K, { children: [
2319
+ lightbulb: /* @__PURE__ */ b(P, { children: [
2262
2320
  /* @__PURE__ */ e("path", { d: "M9 18h6" }),
2263
2321
  /* @__PURE__ */ e("path", { d: "M10 21h4" }),
2264
2322
  /* @__PURE__ */ e("path", { d: "M12 3a6 6 0 00-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0012 3z" })
@@ -2268,58 +2326,58 @@ const Vr = "file-button-module__fileButton___aK91Q", Jr = "file-button-module__d
2268
2326
  "chevron-left": /* @__PURE__ */ e("path", { d: "M15 6l-6 6 6 6" }),
2269
2327
  "chevron-right": /* @__PURE__ */ e("path", { d: "M9 6l6 6-6 6" }),
2270
2328
  play: /* @__PURE__ */ e("path", { d: "M8 5v14l11-7z" }),
2271
- flag: /* @__PURE__ */ f(K, { children: [
2329
+ flag: /* @__PURE__ */ b(P, { children: [
2272
2330
  /* @__PURE__ */ e("path", { d: "M5 21V4" }),
2273
2331
  /* @__PURE__ */ e("path", { d: "M5 4h11l-2 4 2 4H5" })
2274
2332
  ] }),
2275
- "sort-asc": /* @__PURE__ */ f(K, { children: [
2333
+ "sort-asc": /* @__PURE__ */ b(P, { children: [
2276
2334
  /* @__PURE__ */ e("path", { d: "M12 5v14" }),
2277
2335
  /* @__PURE__ */ e("path", { d: "M8 9l4-4 4 4" })
2278
2336
  ] }),
2279
- "sort-desc": /* @__PURE__ */ f(K, { children: [
2337
+ "sort-desc": /* @__PURE__ */ b(P, { children: [
2280
2338
  /* @__PURE__ */ e("path", { d: "M12 5v14" }),
2281
2339
  /* @__PURE__ */ e("path", { d: "M8 15l4 4 4-4" })
2282
2340
  ] }),
2283
- refresh: /* @__PURE__ */ f(K, { children: [
2341
+ refresh: /* @__PURE__ */ b(P, { children: [
2284
2342
  /* @__PURE__ */ e("path", { d: "M3 12a9 9 0 019-9 9 9 0 016.7 3L21 8" }),
2285
2343
  /* @__PURE__ */ e("path", { d: "M21 3v5h-5" }),
2286
2344
  /* @__PURE__ */ e("path", { d: "M21 12a9 9 0 01-9 9 9 9 0 01-6.7-3L3 16" }),
2287
2345
  /* @__PURE__ */ e("path", { d: "M3 21v-5h5" })
2288
2346
  ] }),
2289
- more: /* @__PURE__ */ f(K, { children: [
2347
+ more: /* @__PURE__ */ b(P, { children: [
2290
2348
  /* @__PURE__ */ e("circle", { cx: "5", cy: "12", r: "1.6", fill: "currentColor", stroke: "none" }),
2291
2349
  /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "1.6", fill: "currentColor", stroke: "none" }),
2292
2350
  /* @__PURE__ */ e("circle", { cx: "19", cy: "12", r: "1.6", fill: "currentColor", stroke: "none" })
2293
2351
  ] }),
2294
- wand: /* @__PURE__ */ f(K, { children: [
2352
+ wand: /* @__PURE__ */ b(P, { children: [
2295
2353
  /* @__PURE__ */ e("path", { d: "M3 21l12-12" }),
2296
2354
  /* @__PURE__ */ e("path", { d: "M12.5 6.5l5 5" }),
2297
2355
  /* @__PURE__ */ e("path", { d: "M18 3v4M16 5h4" })
2298
2356
  ] }),
2299
- merge: /* @__PURE__ */ f(K, { children: [
2357
+ merge: /* @__PURE__ */ b(P, { children: [
2300
2358
  /* @__PURE__ */ e("circle", { cx: "6", cy: "6", r: "3" }),
2301
2359
  /* @__PURE__ */ e("circle", { cx: "18", cy: "18", r: "3" }),
2302
2360
  /* @__PURE__ */ e("path", { d: "M6 9v12" }),
2303
2361
  /* @__PURE__ */ e("path", { d: "M6 9a9 9 0 009 9" })
2304
2362
  ] }),
2305
- push: /* @__PURE__ */ f(K, { children: [
2363
+ push: /* @__PURE__ */ b(P, { children: [
2306
2364
  /* @__PURE__ */ e("path", { d: "M5 4h14" }),
2307
2365
  /* @__PURE__ */ e("path", { d: "M12 19V8" }),
2308
2366
  /* @__PURE__ */ e("path", { d: "M7 13l5-5 5 5" })
2309
2367
  ] }),
2310
- pull: /* @__PURE__ */ f(K, { children: [
2368
+ pull: /* @__PURE__ */ b(P, { children: [
2311
2369
  /* @__PURE__ */ e("path", { d: "M5 20h14" }),
2312
2370
  /* @__PURE__ */ e("path", { d: "M12 5v11" }),
2313
2371
  /* @__PURE__ */ e("path", { d: "M7 11l5 5 5-5" })
2314
2372
  ] }),
2315
- shuffle: /* @__PURE__ */ f(K, { children: [
2373
+ shuffle: /* @__PURE__ */ b(P, { children: [
2316
2374
  /* @__PURE__ */ e("path", { d: "M16 3h5v5" }),
2317
2375
  /* @__PURE__ */ e("path", { d: "M4 20L21 3" }),
2318
2376
  /* @__PURE__ */ e("path", { d: "M21 16v5h-5" }),
2319
2377
  /* @__PURE__ */ e("path", { d: "M15 15l6 6" }),
2320
2378
  /* @__PURE__ */ e("path", { d: "M4 4l5 5" })
2321
2379
  ] }),
2322
- commit: /* @__PURE__ */ f(K, { children: [
2380
+ commit: /* @__PURE__ */ b(P, { children: [
2323
2381
  /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "4" }),
2324
2382
  /* @__PURE__ */ e("path", { d: "M2 12h6" }),
2325
2383
  /* @__PURE__ */ e("path", { d: "M16 12h6" })
@@ -2332,14 +2390,14 @@ const Vr = "file-button-module__fileButton___aK91Q", Jr = "file-button-module__d
2332
2390
  d: "M12 .5C5.37.5 0 5.78 0 12.29c0 5.2 3.44 9.6 8.2 11.16.6.1.82-.25.82-.56v-2c-3.34.72-4.04-1.6-4.04-1.6-.55-1.37-1.34-1.74-1.34-1.74-1.1-.74.08-.73.08-.73 1.2.08 1.84 1.22 1.84 1.22 1.07 1.8 2.8 1.29 3.5.98.1-.77.42-1.3.76-1.6-2.67-.3-5.47-1.31-5.47-5.83 0-1.29.47-2.34 1.24-3.17-.13-.3-.54-1.52.12-3.17 0 0 1.01-.32 3.3 1.21a11.5 11.5 0 016 0c2.28-1.53 3.29-1.21 3.29-1.21.66 1.65.25 2.87.12 3.17.77.83 1.24 1.88 1.24 3.17 0 4.53-2.81 5.53-5.49 5.82.43.37.81 1.1.81 2.22v3.29c0 .32.21.68.82.56A12.02 12.02 0 0024 12.29C24 5.78 18.63.5 12 .5z"
2333
2391
  }
2334
2392
  ),
2335
- note: /* @__PURE__ */ f(K, { children: [
2393
+ note: /* @__PURE__ */ b(P, { children: [
2336
2394
  /* @__PURE__ */ e("path", { d: "M6 3h9l4 4v13a1 1 0 01-1 1H6a1 1 0 01-1-1V4a1 1 0 011-1z" }),
2337
2395
  /* @__PURE__ */ e("path", { d: "M14 3v5h5" }),
2338
2396
  /* @__PURE__ */ e("path", { d: "M9 13h6M9 17h6" })
2339
2397
  ] })
2340
2398
  };
2341
- function V_({ name: o, size: t = 24, title: n, className: s, ...l }) {
2342
- return /* @__PURE__ */ f(
2399
+ function nd({ name: o, size: t = 24, title: n, className: l, ...s }) {
2400
+ return /* @__PURE__ */ b(
2343
2401
  "svg",
2344
2402
  {
2345
2403
  viewBox: "0 0 24 24",
@@ -2353,64 +2411,64 @@ function V_({ name: o, size: t = 24, title: n, className: s, ...l }) {
2353
2411
  role: n ? "img" : void 0,
2354
2412
  "aria-hidden": n ? void 0 : !0,
2355
2413
  "aria-label": n,
2356
- className: d(o_.icon, s),
2357
- ...l,
2414
+ className: _(r_.icon, l),
2415
+ ...s,
2358
2416
  children: [
2359
2417
  n && /* @__PURE__ */ e("title", { children: n }),
2360
- n_[o]
2418
+ __[o]
2361
2419
  ]
2362
2420
  }
2363
2421
  );
2364
2422
  }
2365
2423
  export {
2366
- E_ as Alert,
2367
- __ as Backdrop,
2368
- W_ as Breadcrumb,
2369
- i_ as Button,
2370
- k_ as Card,
2371
- D_ as Checkbox,
2372
- A_ as Chip,
2373
- K_ as CircularProgress,
2374
- H_ as CodeBlock,
2375
- q_ as CopyButton,
2376
- U_ as DataTable,
2377
- z_ as Divider,
2378
- S_ as Drawer,
2379
- R_ as EmptyState,
2380
- X_ as FileButton,
2381
- d_ as Glass,
2382
- mt as Glow,
2383
- at as Grain,
2384
- V_ as Icon,
2385
- u_ as IconButton,
2386
- Y_ as InlineCode,
2387
- N_ as Input,
2388
- j_ as Kbd,
2389
- m_ as LampButton,
2390
- p_ as LampIconButton,
2391
- f_ as LampMeter,
2392
- b_ as LampStatus,
2393
- h_ as LampSwitch,
2394
- v_ as LinkButton,
2395
- C_ as ListItem,
2396
- Z_ as Menu,
2397
- L_ as Modal,
2398
- T_ as Progress,
2399
- cs as Radio,
2400
- I_ as RadioGroup,
2401
- O_ as SegmentedControl,
2402
- M_ as Select,
2403
- pc as Skeleton,
2404
- F_ as Slider,
2405
- Ga as Spinner,
2406
- g_ as Stamp,
2407
- P_ as StatusDot,
2408
- B_ as Switch,
2409
- G_ as Tabs,
2410
- x_ as Textarea,
2411
- $_ as ToastProvider,
2412
- y_ as Tooltip,
2413
- d as cn,
2414
- w_ as useToast
2424
+ R_ as Alert,
2425
+ h_ as Backdrop,
2426
+ ed as Breadcrumb,
2427
+ f_ as Button,
2428
+ B_ as Card,
2429
+ E_ as Checkbox,
2430
+ q_ as Chip,
2431
+ j_ as CircularProgress,
2432
+ X_ as CodeBlock,
2433
+ J_ as CopyButton,
2434
+ Q_ as DataTable,
2435
+ O_ as Divider,
2436
+ K_ as Drawer,
2437
+ Y_ as EmptyState,
2438
+ od as FileButton,
2439
+ b_ as Glass,
2440
+ pt as Glow,
2441
+ ct as Grain,
2442
+ nd as Icon,
2443
+ v_ as IconButton,
2444
+ V_ as InlineCode,
2445
+ L_ as Input,
2446
+ Z_ as Kbd,
2447
+ g_ as LampButton,
2448
+ y_ as LampIconButton,
2449
+ k_ as LampMeter,
2450
+ w_ as LampStatus,
2451
+ $_ as LampSwitch,
2452
+ N_ as LinkButton,
2453
+ P_ as ListItem,
2454
+ td as Menu,
2455
+ F_ as Modal,
2456
+ A_ as Progress,
2457
+ _s as Radio,
2458
+ z_ as RadioGroup,
2459
+ U_ as SegmentedControl,
2460
+ C_ as Select,
2461
+ vc as Skeleton,
2462
+ G_ as Slider,
2463
+ qa as Spinner,
2464
+ x_ as Stamp,
2465
+ H_ as StatusDot,
2466
+ T_ as Switch,
2467
+ W_ as Tabs,
2468
+ S_ as Textarea,
2469
+ D_ as ToastProvider,
2470
+ M_ as Tooltip,
2471
+ _ as cn,
2472
+ I_ as useToast
2415
2473
  };
2416
2474
  //# sourceMappingURL=index.mjs.map