@kingsimba/nc-ui 0.1.35 → 0.1.37

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.js CHANGED
@@ -1,14 +1,14 @@
1
- var pt = Object.defineProperty;
2
- var ft = (e, t, n) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var oe = (e, t, n) => ft(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { jsx as s, jsxs as N, Fragment as Te } from "react/jsx-runtime";
5
- import { d as Ee, E as ht, R as mt, T as gt, g as bt, V as vt, b as wt, a as yt, c as xt } from "./GeneratedIcons-HFZmBTBT.js";
6
- import Le, { useState as T, useRef as O, useEffect as D, useMemo as Ce, createContext as be, useContext as ce, Children as kt, isValidElement as Nt, forwardRef as At, useImperativeHandle as St, useCallback as Y, Suspense as Ct } from "react";
7
- import { createPortal as ke } from "react-dom";
8
- import { useTranslation as ne } from "react-i18next";
9
- import $t from "i18next";
10
- import { c as Mt } from "./clsx-OuTLNxxd.js";
11
- function Je({
1
+ var ht = Object.defineProperty;
2
+ var mt = (e, t, n) => t in e ? ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var oe = (e, t, n) => mt(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { jsx as s, jsxs as N, Fragment as Le } from "react/jsx-runtime";
5
+ import { d as Pe, E as gt, R as bt, T as vt, g as wt, V as yt, b as xt, a as kt, c as Nt } from "./GeneratedIcons-HFZmBTBT.js";
6
+ import ze, { useState as R, useRef as F, useEffect as D, useMemo as Me, createContext as ge, useContext as ce, Children as At, isValidElement as St, forwardRef as Ct, useImperativeHandle as $t, useCallback as Y, Suspense as Mt } from "react";
7
+ import { createPortal as Ae } from "react-dom";
8
+ import { useTranslation as re } from "react-i18next";
9
+ import It from "i18next";
10
+ import { c as Rt } from "./clsx-OuTLNxxd.js";
11
+ function Qe({
12
12
  size: e = "default",
13
13
  color: t,
14
14
  overlay: n = !1,
@@ -37,7 +37,7 @@ function Je({
37
37
  );
38
38
  return n ? /* @__PURE__ */ s("div", { className: "nc-activity-indicator-overlay", children: o }) : o;
39
39
  }
40
- function ee({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: a, loading: c, onClick: l, children: u, ...f }) {
40
+ function te({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: a, loading: c, onClick: l, children: u, ...f }) {
41
41
  const b = [
42
42
  "nc-button",
43
43
  e !== "default" ? `nc-${e}` : "",
@@ -68,7 +68,7 @@ function ee({ variant: e = "default", block: t, size: n = "default", appearance:
68
68
  ...f,
69
69
  children: [
70
70
  c && /* @__PURE__ */ s(
71
- Je,
71
+ Qe,
72
72
  {
73
73
  size: "small",
74
74
  className: "nc-button-spinner",
@@ -80,14 +80,14 @@ function ee({ variant: e = "default", block: t, size: n = "default", appearance:
80
80
  }
81
81
  );
82
82
  }
83
- const It = {
83
+ const Tt = {
84
84
  info: "primary",
85
85
  success: "success",
86
86
  warning: "warning",
87
87
  error: "danger",
88
88
  danger: "danger"
89
89
  };
90
- function Gn({
90
+ function Kn({
91
91
  code: e,
92
92
  text: t,
93
93
  type: n,
@@ -98,7 +98,7 @@ function Gn({
98
98
  className: c = "",
99
99
  style: l
100
100
  }) {
101
- const u = i ?? /* @__PURE__ */ N(Te, { children: [
101
+ const u = i ?? /* @__PURE__ */ N(Le, { children: [
102
102
  e !== void 0 && /* @__PURE__ */ s("span", { className: "nc-alert-code", children: e }),
103
103
  t
104
104
  ] });
@@ -112,22 +112,22 @@ function Gn({
112
112
  className: "nc-alert-close",
113
113
  "aria-label": "Close alert",
114
114
  onClick: a,
115
- children: /* @__PURE__ */ s(Ee, { size: 16 })
115
+ children: /* @__PURE__ */ s(Pe, { size: 16 })
116
116
  }
117
117
  )
118
118
  ] }),
119
119
  r && /* @__PURE__ */ s("span", { className: "nc-alert-action", children: /* @__PURE__ */ s(
120
- ee,
120
+ te,
121
121
  {
122
122
  size: "small",
123
- variant: r.variant ?? It[n],
123
+ variant: r.variant ?? Tt[n],
124
124
  onClick: o,
125
125
  children: r.text
126
126
  }
127
127
  ) })
128
128
  ] });
129
129
  }
130
- function Yn({
130
+ function _n({
131
131
  percentage: e = 0.5,
132
132
  status: t = "discharging",
133
133
  darkMode: n = !1,
@@ -135,15 +135,15 @@ function Yn({
135
135
  }) {
136
136
  const o = Math.max(0, Math.min(1, Number(e) || 0)), i = o === 0 ? "-" : String(Math.round(o * 100));
137
137
  let a;
138
- r ? o < 0.1 ? a = "var(--nc-danger)" : o < 0.2 ? a = "var(--nc-warning)" : a = "var(--nc-success)" : a = n ? "#ffffff" : "#000000";
139
- const c = "var(--nc-battery-shell-bg)", l = 24, u = 14, f = 2, b = 0, d = 12, m = 0, A = 0, v = 0, w = l, y = u, h = y - m * 2, p = w - m * 2, g = Math.max(1, Math.min(4, y / 4)), x = o === 0 ? 0 : 0.05 + o * 0.95, $ = l + f + d, R = 20, E = 0.65, S = Math.max(u, R * E), L = l + f + 1, k = (u - R * E) / 2;
138
+ r ? o < 0.1 ? a = "var(--nc-danger)" : o < 0.2 ? a = "var(--nc-warning)" : a = "var(--nc-success)" : a = n ? "rgba(255,255,255,0.35)" : "#000000";
139
+ const c = "var(--nc-battery-shell-bg)", l = 24, u = 14, f = 2, b = 0, d = 12, m = 0, A = 0, v = 0, w = l, y = u, h = y - m * 2, p = w - m * 2, g = Math.max(1, Math.min(4, y / 4)), x = o === 0 ? 0 : 0.05 + o * 0.95, C = l + f + d, T = 20, E = 0.65, S = Math.max(u, T * E), L = l + f + 1, k = (u - T * E) / 2;
140
140
  return /* @__PURE__ */ N(
141
141
  "svg",
142
142
  {
143
143
  className: "nc-battery",
144
- width: $,
144
+ width: C,
145
145
  height: S,
146
- viewBox: `0 0 ${$} ${S}`,
146
+ viewBox: `0 0 ${C} ${S}`,
147
147
  role: "img",
148
148
  "aria-label": `Battery ${i === "-" ? "-" : `${i}%`} ${t}`,
149
149
  children: [
@@ -202,7 +202,7 @@ function Yn({
202
202
  }
203
203
  );
204
204
  }
205
- function Kn({
205
+ function Un({
206
206
  value: e,
207
207
  onChange: t,
208
208
  options: n,
@@ -224,7 +224,7 @@ function Kn({
224
224
  );
225
225
  }) });
226
226
  }
227
- function Rt({ size: e }) {
227
+ function Et({ size: e }) {
228
228
  return /* @__PURE__ */ s("svg", { className: `nc-checkbox-icon ${e === "small" ? "nc-small" : ""}`, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ s(
229
229
  "path",
230
230
  {
@@ -236,7 +236,7 @@ function Rt({ size: e }) {
236
236
  }
237
237
  ) });
238
238
  }
239
- function _n({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: a, className: c = "" }) {
239
+ function qn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: a, className: c = "" }) {
240
240
  const l = o === "small";
241
241
  return /* @__PURE__ */ N(
242
242
  "label",
@@ -257,7 +257,7 @@ function _n({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
257
257
  onKeyDown: (u) => {
258
258
  n || (u.key === "Enter" || u.key === " ") && (u.preventDefault(), t(!e));
259
259
  },
260
- children: e && /* @__PURE__ */ s(Rt, { size: o })
260
+ children: e && /* @__PURE__ */ s(Et, { size: o })
261
261
  }
262
262
  ),
263
263
  r && /* @__PURE__ */ s("span", { className: "nc-checkbox-text", style: i ? { color: i } : void 0, children: r })
@@ -265,23 +265,27 @@ function _n({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
265
265
  }
266
266
  );
267
267
  }
268
- function Tt({ option: e, onChange: t, selected: n, highlighted: r, small: o, renderOption: i, index: a }) {
269
- const c = O(null), { t: l } = ne();
268
+ function Lt({ option: e, onChange: t, selected: n, highlighted: r, small: o, renderOption: i, index: a }) {
269
+ const c = F(null), { t: l } = re(), u = e.disabled === !0;
270
270
  return D(() => {
271
271
  r && c.current && c.current.scrollIntoView({ block: "nearest" });
272
272
  }, [r]), /* @__PURE__ */ s(
273
273
  "div",
274
274
  {
275
275
  ref: c,
276
- className: `nc-combo-dropdown-option ${o ? "nc-small" : ""} ${r ? "nc-highlighted" : ""}`,
276
+ className: `nc-combo-dropdown-option ${o ? "nc-small" : ""} ${r ? "nc-highlighted" : ""} ${u ? "nc-disabled" : ""}`,
277
277
  role: "option",
278
- onClick: () => t(e.value, e.label),
278
+ onClick: () => {
279
+ u || t(e.value, e.label);
280
+ },
279
281
  "aria-selected": n,
282
+ "aria-disabled": u,
280
283
  style: {
281
- cursor: "pointer",
282
- background: r ? "rgba(59,130,246,0.18)" : n ? "rgba(59,130,246,0.12)" : void 0
284
+ cursor: u ? "default" : "pointer",
285
+ opacity: u ? 0.4 : void 0,
286
+ background: r && !u ? "rgba(59,130,246,0.18)" : n && !u ? "rgba(59,130,246,0.12)" : void 0
283
287
  },
284
- children: i ? i(e, a, !!r) : /* @__PURE__ */ N(Te, { children: [
288
+ children: i ? i(e, a, !!r) : /* @__PURE__ */ N(Le, { children: [
285
289
  e.label,
286
290
  e.default && /* @__PURE__ */ N("span", { style: { fontSize: "0.85em", color: "var(--nc-text-weak)", marginLeft: 6 }, children: [
287
291
  "(",
@@ -292,7 +296,7 @@ function Tt({ option: e, onChange: t, selected: n, highlighted: r, small: o, ren
292
296
  }
293
297
  );
294
298
  }
295
- function Et({
299
+ function Pt({
296
300
  isOpen: e,
297
301
  options: t,
298
302
  onSelect: n,
@@ -303,7 +307,7 @@ function Et({
303
307
  highlightedIndex: c = -1,
304
308
  renderOption: l
305
309
  }) {
306
- const [u, f] = T({ top: 0, left: 0, width: 0 }), [b, d] = T(o), { t: m } = ne();
310
+ const [u, f] = R({ top: 0, left: 0, width: 0 }), [b, d] = R(o), { t: m } = re();
307
311
  if (D(() => {
308
312
  if (e && i.current) {
309
313
  const v = i.current.getBoundingClientRect();
@@ -334,12 +338,12 @@ function Et({
334
338
  maxHeight: 300,
335
339
  overflowY: "auto"
336
340
  },
337
- children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: m("common.noResults") }) : t.map((v, w) => /* @__PURE__ */ s(Tt, { option: v, onChange: n, selected: v.value === r, highlighted: w === c, small: a, renderOption: l, index: w }, v.value))
341
+ children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: m("common.noResults") }) : t.map((v, w) => /* @__PURE__ */ s(Lt, { option: v, onChange: n, selected: v.value === r, highlighted: w === c, small: a, renderOption: l, index: w }, v.value))
338
342
  }
339
343
  );
340
- return ke(A, document.body);
344
+ return Ae(A, document.body);
341
345
  }
342
- function Lt({ onClick: e, small: t }) {
346
+ function zt({ onClick: e, small: t }) {
343
347
  return /* @__PURE__ */ s(
344
348
  "span",
345
349
  {
@@ -358,7 +362,7 @@ function Lt({ onClick: e, small: t }) {
358
362
  }
359
363
  );
360
364
  }
361
- function Pt({ open: e, small: t }) {
365
+ function Bt({ open: e, small: t }) {
362
366
  return /* @__PURE__ */ s(
363
367
  "span",
364
368
  {
@@ -368,7 +372,7 @@ function Pt({ open: e, small: t }) {
368
372
  }
369
373
  );
370
374
  }
371
- function Un({
375
+ function Xn({
372
376
  value: e,
373
377
  onChange: t,
374
378
  placeholder: n = "Select…",
@@ -388,86 +392,100 @@ function Un({
388
392
  style: w,
389
393
  className: y
390
394
  }) {
391
- const [h, p] = T(!1), [g, x] = T(""), [$, R] = T(-1), E = O(null), S = O(null), L = O(null), k = m === "small", { t: C } = ne(), z = !!o, H = b || z, [j, G] = T([]), [X, U] = T(() => {
395
+ const [h, p] = R(!1), [g, x] = R(""), [C, T] = R(-1), E = F(null), S = F(null), L = F(null), k = m === "small", { t: $ } = re(), P = !!o, H = b || P, [ae, X] = R([]), [K, _] = R(() => {
392
396
  if (r && e) {
393
- const I = r.find((B) => B.value === e);
397
+ const I = r.find((W) => W.value === e);
394
398
  return I ? I.label : "";
395
399
  }
396
400
  return o && e ? e : "";
397
401
  });
398
402
  D(() => {
399
403
  if (!e) {
400
- U("");
404
+ _("");
401
405
  return;
402
406
  }
403
407
  if (r) {
404
- const I = r.find((B) => B.value === e);
405
- I && U(I.label);
406
- } else o && U(e);
408
+ const I = r.find((W) => W.value === e);
409
+ I && _(I.label);
410
+ } else o && _(e);
407
411
  }, [e, r, o]);
408
- const _ = (I, B = !1) => {
412
+ const U = (I, W = !1) => {
409
413
  if (!o) return;
410
414
  L.current && clearTimeout(L.current);
411
- const V = async () => {
415
+ const B = async () => {
412
416
  try {
413
- const J = await o(I);
414
- G(J), R(-1);
417
+ const G = await o(I);
418
+ X(G), T(-1);
415
419
  } catch {
416
- G([]);
420
+ X([]);
417
421
  }
418
422
  };
419
- B ? V() : L.current = setTimeout(V, 200);
420
- }, F = Ce(() => {
421
- if (z) return j;
423
+ W ? B() : L.current = setTimeout(B, 200);
424
+ }, j = Me(() => {
425
+ if (P) return ae;
422
426
  const I = g.toLowerCase();
423
- return H ? (r || []).filter((B) => B.label.toLowerCase().includes(I)) : r || [];
424
- }, [r, g, H, z, j]);
427
+ return H ? (r || []).filter((W) => W.label.toLowerCase().includes(I)) : r || [];
428
+ }, [r, g, H, P, ae]);
425
429
  D(() => {
426
- h && R(-1);
427
- }, [h, F]), D(() => {
430
+ h && T(-1);
431
+ }, [h, j]), D(() => {
428
432
  if (!f && !e && r && r.length > 0 && t) {
429
- const I = r.find((B) => B.default) || r[0];
433
+ const I = r.find((W) => W.default) || r[0];
430
434
  t(I.value);
431
435
  }
432
436
  }, [f, e, r, t]), D(() => {
433
- function I(B) {
434
- var V;
435
- B.target instanceof Node && E.current && ((V = E.current.parentElement) != null && V.contains(B.target) || p(!1));
437
+ function I(W) {
438
+ var B;
439
+ W.target instanceof Node && E.current && ((B = E.current.parentElement) != null && B.contains(W.target) || p(!1));
436
440
  }
437
441
  return document.addEventListener("mousedown", I), () => document.removeEventListener("mousedown", I);
438
442
  }, []);
439
- const P = c ?? (r ? r.find((I) => I.value === e) : e ? { label: X, value: e } : void 0), re = P && f, de = !l && !re, ae = `nc-align-${v}`, ue = !(h && H) && !!P, pe = (I, B, V = !1) => {
440
- var J;
441
- U(B), t == null || t(I), p(!1), x(""), V && ((J = E.current) == null || J.blur());
442
- }, fe = () => {
443
+ const z = c ?? (r ? r.find((I) => I.value === e) : e ? { label: K, value: e } : void 0), q = z && f, le = !l && !q, pe = `nc-align-${v}`, ve = !(h && H) && !!z, de = (I, W, B = !1) => {
444
+ var G;
445
+ _(W), t == null || t(I), p(!1), x(""), B && ((G = E.current) == null || G.blur());
446
+ }, we = () => {
443
447
  t == null || t(void 0), x(""), p(!1);
444
- }, De = (I) => {
448
+ }, ye = (I) => {
445
449
  if (!h) {
446
450
  (I.key === "ArrowDown" || I.key === "ArrowUp") && (p(!0), I.preventDefault());
447
451
  return;
448
452
  }
453
+ const W = (B, G) => {
454
+ if (G === 1) {
455
+ for (let V = B; V < j.length; V++)
456
+ if (!j[V].disabled) return V;
457
+ for (let V = 0; V < B; V++)
458
+ if (!j[V].disabled) return V;
459
+ } else {
460
+ for (let V = B; V >= 0; V--)
461
+ if (!j[V].disabled) return V;
462
+ for (let V = j.length - 1; V > B; V--)
463
+ if (!j[V].disabled) return V;
464
+ }
465
+ return B;
466
+ };
449
467
  switch (I.key) {
450
468
  case "ArrowDown":
451
- I.preventDefault(), R((B) => {
452
- const V = B + 1;
453
- return V >= F.length ? 0 : V;
469
+ I.preventDefault(), T((B) => {
470
+ const G = B + 1, V = G >= j.length ? 0 : G;
471
+ return W(V, 1);
454
472
  });
455
473
  break;
456
474
  case "ArrowUp":
457
- I.preventDefault(), R((B) => {
458
- const V = B - 1;
459
- return V < 0 ? F.length - 1 : V;
475
+ I.preventDefault(), T((B) => {
476
+ const G = B - 1, V = G < 0 ? j.length - 1 : G;
477
+ return W(V, -1);
460
478
  });
461
479
  break;
462
480
  case "Enter":
463
- I.preventDefault(), $ >= 0 && $ < F.length && pe(F[$].value, F[$].label, !0);
481
+ I.preventDefault(), C >= 0 && C < j.length && !j[C].disabled && de(j[C].value, j[C].label, !0);
464
482
  break;
465
483
  case "Escape":
466
484
  I.preventDefault(), p(!1), x("");
467
485
  break;
468
486
  }
469
487
  };
470
- return /* @__PURE__ */ N("div", { className: `nc-combo-container ${A === "transparent" ? "nc-transparent" : ""} ${A === "plain" ? "nc-plain" : ""} ${h ? "nc-open" : ""} ${ae} ${y || ""}`.trim(), style: { position: "relative", ...w }, children: [
488
+ return /* @__PURE__ */ N("div", { className: `nc-combo-container ${A === "transparent" ? "nc-transparent" : ""} ${A === "plain" ? "nc-plain" : ""} ${h ? "nc-open" : ""} ${pe} ${y || ""}`.trim(), style: { position: "relative", ...w }, children: [
471
489
  u && /* @__PURE__ */ s("span", { className: `nc-label ${k ? "nc-small" : ""}`, children: u }),
472
490
  /* @__PURE__ */ N(
473
491
  "div",
@@ -476,14 +494,14 @@ function Un({
476
494
  style: { position: "relative", display: "flex", alignItems: "center" },
477
495
  onMouseDown: (I) => {
478
496
  if (l || H && I.target === E.current) return;
479
- const B = !h;
480
- if (p((V) => (!V && H && P && x(P.label), !V)), z && B) {
481
- const V = H && P ? P.label : "";
482
- G([]), setTimeout(() => _(V, !0), 0);
497
+ const W = !h;
498
+ if (p((B) => (!B && H && z && x(z.label), !B)), P && W) {
499
+ const B = H && z ? z.label : "";
500
+ X([]), setTimeout(() => U(B, !0), 0);
483
501
  }
484
502
  H && !h && setTimeout(() => {
485
- var V, J;
486
- (V = E.current) == null || V.focus(), (J = E.current) == null || J.select();
503
+ var B, G;
504
+ (B = E.current) == null || B.focus(), (G = E.current) == null || G.select();
487
505
  }, 0);
488
506
  },
489
507
  children: [
@@ -496,39 +514,39 @@ function Un({
496
514
  onFocus: () => {
497
515
  if (!l && H) {
498
516
  p(!0);
499
- const I = P ? P.label : "";
500
- P && (x(I), setTimeout(() => {
501
- var B;
502
- return (B = E.current) == null ? void 0 : B.select();
503
- }, 0)), z && (G([]), _(I, !0));
517
+ const I = z ? z.label : "";
518
+ z && (x(I), setTimeout(() => {
519
+ var W;
520
+ return (W = E.current) == null ? void 0 : W.select();
521
+ }, 0)), P && (X([]), U(I, !0));
504
522
  }
505
523
  },
506
524
  onChange: (I) => {
507
- const B = I.target.value;
508
- H && (x(B), z && _(B));
525
+ const W = I.target.value;
526
+ H && (x(W), P && U(W));
509
527
  },
510
- onKeyDown: De,
511
- value: h && H ? g : (P == null ? void 0 : P.label) || "",
528
+ onKeyDown: ye,
529
+ value: h && H ? g : (z == null ? void 0 : z.label) || "",
512
530
  readOnly: l || !H,
513
531
  style: {
514
532
  width: "100%",
515
- paddingRight: de || re ? k ? 32 : 44 : 12,
533
+ paddingRight: le || q ? k ? 32 : 44 : 12,
516
534
  caretColor: b ? void 0 : "transparent",
517
535
  cursor: b ? void 0 : "pointer",
518
536
  userSelect: b ? void 0 : "none",
519
- color: ue ? "transparent" : "var(--nc-text)"
537
+ color: ve ? "transparent" : "var(--nc-text)"
520
538
  }
521
539
  }
522
540
  ),
523
- ue && /* @__PURE__ */ s(
541
+ ve && /* @__PURE__ */ s(
524
542
  "div",
525
543
  {
526
544
  "aria-hidden": !0,
527
- className: `nc-combo-overlay ${ae}`,
545
+ className: `nc-combo-overlay ${pe}`,
528
546
  style: {
529
547
  position: "absolute",
530
548
  left: k ? 8 : 12,
531
- right: de || re ? k ? 12 : 24 : k ? 8 : 12,
549
+ right: le || q ? k ? 12 : 24 : k ? 8 : 12,
532
550
  top: "50%",
533
551
  transform: "translateY(-50%)",
534
552
  pointerEvents: "none",
@@ -536,25 +554,25 @@ function Un({
536
554
  alignItems: "center",
537
555
  gap: 6
538
556
  },
539
- children: a && P ? a(P) : /* @__PURE__ */ N(Te, { children: [
540
- /* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${k ? "nc-small" : ""}`, children: P == null ? void 0 : P.label }),
541
- (P == null ? void 0 : P.default) && /* @__PURE__ */ N("span", { className: `nc-combo-overlay-default ${k ? "nc-small" : ""}`, children: [
557
+ children: a && z ? a(z) : /* @__PURE__ */ N(Le, { children: [
558
+ /* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${k ? "nc-small" : ""}`, children: z == null ? void 0 : z.label }),
559
+ (z == null ? void 0 : z.default) && /* @__PURE__ */ N("span", { className: `nc-combo-overlay-default ${k ? "nc-small" : ""}`, children: [
542
560
  "(",
543
- C("common.default"),
561
+ $("common.default"),
544
562
  ")"
545
563
  ] })
546
564
  ] })
547
565
  }
548
566
  ),
549
- re && /* @__PURE__ */ s(Lt, { onClick: fe, small: k }),
550
- de && /* @__PURE__ */ s(Pt, { open: h, small: k })
567
+ q && /* @__PURE__ */ s(zt, { onClick: we, small: k }),
568
+ le && /* @__PURE__ */ s(Bt, { open: h, small: k })
551
569
  ]
552
570
  }
553
571
  ),
554
- /* @__PURE__ */ s(Et, { isOpen: h, options: F, onSelect: pe, selectedValue: e, placement: d, anchorRef: S, small: k, highlightedIndex: $, renderOption: i })
572
+ /* @__PURE__ */ s(Pt, { isOpen: h, options: j, onSelect: de, selectedValue: e, placement: d, anchorRef: S, small: k, highlightedIndex: C, renderOption: i })
555
573
  ] });
556
574
  }
557
- function qn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
575
+ function Jn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
558
576
  return /* @__PURE__ */ s(
559
577
  "button",
560
578
  {
@@ -564,11 +582,11 @@ function qn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default"
564
582
  title: o ?? (t ? "Refreshing..." : "Refresh"),
565
583
  "aria-label": i ?? (t ? "Refreshing" : "Refresh"),
566
584
  "data-size": r,
567
- children: /* @__PURE__ */ s(mt, { size: r === "small" ? 14 : r === "large" ? 20 : 18, className: t ? "nc-spinning" : "" })
585
+ children: /* @__PURE__ */ s(bt, { size: r === "small" ? 14 : r === "large" ? 20 : 18, className: t ? "nc-spinning" : "" })
568
586
  }
569
587
  );
570
588
  }
571
- function Qe({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Close", "aria-label": o = "Close" }) {
589
+ function Ze({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Close", "aria-label": o = "Close" }) {
572
590
  return /* @__PURE__ */ s(
573
591
  "button",
574
592
  {
@@ -578,11 +596,11 @@ function Qe({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Clo
578
596
  title: r,
579
597
  "aria-label": o,
580
598
  "data-size": n,
581
- children: /* @__PURE__ */ s(Ee, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
599
+ children: /* @__PURE__ */ s(Pe, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
582
600
  }
583
601
  );
584
602
  }
585
- function Xn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edit", "aria-label": o = "Edit" }) {
603
+ function Qn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edit", "aria-label": o = "Edit" }) {
586
604
  return /* @__PURE__ */ s(
587
605
  "button",
588
606
  {
@@ -592,11 +610,11 @@ function Xn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edi
592
610
  title: r,
593
611
  "aria-label": o,
594
612
  "data-size": n,
595
- children: /* @__PURE__ */ s(ht, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
613
+ children: /* @__PURE__ */ s(gt, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
596
614
  }
597
615
  );
598
616
  }
599
- function Jn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Delete", "aria-label": o = "Delete" }) {
617
+ function Zn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Delete", "aria-label": o = "Delete" }) {
600
618
  return /* @__PURE__ */ s(
601
619
  "button",
602
620
  {
@@ -606,11 +624,11 @@ function Jn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Del
606
624
  title: r,
607
625
  "aria-label": o,
608
626
  "data-size": n,
609
- children: /* @__PURE__ */ s(gt, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
627
+ children: /* @__PURE__ */ s(vt, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
610
628
  }
611
629
  );
612
630
  }
613
- function Qn({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label": o, size: i = "default" }) {
631
+ function er({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label": o, size: i = "default" }) {
614
632
  return /* @__PURE__ */ s(
615
633
  "button",
616
634
  {
@@ -624,7 +642,7 @@ function Qn({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label":
624
642
  }
625
643
  );
626
644
  }
627
- function Zn({
645
+ function tr({
628
646
  open: e,
629
647
  onClose: t,
630
648
  options: n,
@@ -632,7 +650,7 @@ function Zn({
632
650
  anchor: o,
633
651
  preferredDirection: i = "down"
634
652
  }) {
635
- const a = O(null), [c, l] = T({ top: 0, left: 0 }), u = o || (r == null ? void 0 : r.current);
653
+ const a = F(null), [c, l] = R({ top: 0, left: 0 }), u = o || (r == null ? void 0 : r.current);
636
654
  if (D(() => {
637
655
  if (!e || !u || !a.current) return;
638
656
  const d = u.getBoundingClientRect(), m = a.current.getBoundingClientRect(), A = window.innerHeight, v = window.innerWidth, w = d.bottom + 8, y = w + m.height <= A - 8;
@@ -661,7 +679,7 @@ function Zn({
661
679
  const f = (d) => {
662
680
  d.type !== "separator" && !d.disabled && d.onClick && (d.onClick(), t());
663
681
  }, b = n.some((d) => d.icon);
664
- return ke(
682
+ return Ae(
665
683
  /* @__PURE__ */ s(
666
684
  "div",
667
685
  {
@@ -710,20 +728,20 @@ function Zn({
710
728
  document.body
711
729
  );
712
730
  }
713
- const Ze = be(null);
714
- function zt() {
715
- const e = ce(Ze);
731
+ const et = ge(null);
732
+ function Dt() {
733
+ const e = ce(et);
716
734
  if (!e)
717
735
  throw new Error("useDialog must be used inside a Dialog component");
718
736
  return e;
719
737
  }
720
- function he({ children: e, onClick: t, ...n }) {
721
- const { close: r } = zt(), { t: o } = ne();
722
- return /* @__PURE__ */ s(ee, { onClick: (a) => {
738
+ function fe({ children: e, onClick: t, ...n }) {
739
+ const { close: r } = Dt(), { t: o } = re();
740
+ return /* @__PURE__ */ s(te, { onClick: (a) => {
723
741
  t == null || t(a), r();
724
742
  }, ...n, children: e ?? o("common.close") });
725
743
  }
726
- function er({
744
+ function nr({
727
745
  open: e,
728
746
  onClose: t,
729
747
  title: n,
@@ -743,7 +761,7 @@ function er({
743
761
  className: w = "",
744
762
  onContentHeightChange: y
745
763
  }) {
746
- const h = O(null), p = O(null), { t: g } = ne(), x = { close: t }, $ = (S) => {
764
+ const h = F(null), p = F(null), { t: g } = re(), x = { close: t }, C = (S) => {
747
765
  d && S.target === S.currentTarget && t();
748
766
  };
749
767
  if (D(() => {
@@ -752,42 +770,42 @@ function er({
752
770
  if (!y || !p.current) return;
753
771
  const S = new ResizeObserver((L) => {
754
772
  for (const k of L) {
755
- const C = k.contentRect.height;
756
- y(C);
773
+ const $ = k.contentRect.height;
774
+ y($);
757
775
  }
758
776
  });
759
777
  return S.observe(p.current), () => {
760
778
  S.disconnect();
761
779
  };
762
780
  }, [y]), !e) return null;
763
- const R = () => {
781
+ const T = () => {
764
782
  switch (i) {
765
783
  case "ok":
766
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(ee, { variant: "primary", onClick: c ?? t, disabled: m, children: g("common.ok") }) });
784
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(te, { variant: "primary", onClick: c ?? t, disabled: m, children: g("common.ok") }) });
767
785
  case "ok-cancel":
768
786
  return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
769
- /* @__PURE__ */ s(he, { onClick: f, children: g("common.cancel") }),
770
- /* @__PURE__ */ s(ee, { variant: "primary", onClick: c ?? t, disabled: m, children: g("common.ok") })
787
+ /* @__PURE__ */ s(fe, { onClick: f, children: g("common.cancel") }),
788
+ /* @__PURE__ */ s(te, { variant: "primary", onClick: c ?? t, disabled: m, children: g("common.ok") })
771
789
  ] });
772
790
  case "save-cancel":
773
791
  return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
774
- /* @__PURE__ */ s(he, { onClick: f, children: g("common.cancel") }),
775
- /* @__PURE__ */ s(ee, { variant: "primary", onClick: l, disabled: m, children: g("common.save") })
792
+ /* @__PURE__ */ s(fe, { onClick: f, children: g("common.cancel") }),
793
+ /* @__PURE__ */ s(te, { variant: "primary", onClick: l, disabled: m, children: g("common.save") })
776
794
  ] });
777
795
  case "delete-cancel":
778
796
  return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
779
- /* @__PURE__ */ s(he, { onClick: f, children: g("common.cancel") }),
780
- /* @__PURE__ */ s(ee, { variant: "danger", onClick: u, disabled: m, children: g("common.delete") })
797
+ /* @__PURE__ */ s(fe, { onClick: f, children: g("common.cancel") }),
798
+ /* @__PURE__ */ s(te, { variant: "danger", onClick: u, disabled: m, children: g("common.delete") })
781
799
  ] });
782
800
  case "connect":
783
801
  return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
784
- /* @__PURE__ */ s(he, { onClick: f, children: g("common.cancel") }),
785
- /* @__PURE__ */ s(ee, { variant: "primary", onClick: b, disabled: m, children: g("common.connect") })
802
+ /* @__PURE__ */ s(fe, { onClick: f, children: g("common.cancel") }),
803
+ /* @__PURE__ */ s(te, { variant: "primary", onClick: b, disabled: m, children: g("common.connect") })
786
804
  ] });
787
805
  case "close":
788
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(he, { variant: "primary" }) });
806
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(fe, { variant: "primary" }) });
789
807
  case "gotit":
790
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(he, { variant: "primary", children: g("common.gotit") }) });
808
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(fe, { variant: "primary", children: g("common.gotit") }) });
791
809
  case "custom":
792
810
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: a });
793
811
  case "none":
@@ -795,7 +813,7 @@ function er({
795
813
  default:
796
814
  return null;
797
815
  }
798
- }, E = /* @__PURE__ */ s(Ze.Provider, { value: x, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${A ? " nc-fullscreen" : ""}`, onClick: $, children: /* @__PURE__ */ N(
816
+ }, E = /* @__PURE__ */ s(et.Provider, { value: x, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${A ? " nc-fullscreen" : ""}`, onClick: C, children: /* @__PURE__ */ N(
799
817
  "div",
800
818
  {
801
819
  ref: h,
@@ -808,16 +826,16 @@ function er({
808
826
  children: [
809
827
  !v && /* @__PURE__ */ N("div", { className: "nc-dialog-header", children: [
810
828
  /* @__PURE__ */ s("h3", { id: "nc-dialog-title", className: "nc-dialog-title", children: n }),
811
- /* @__PURE__ */ s(Qe, { onClick: t, "aria-label": "Close dialog" })
829
+ /* @__PURE__ */ s(Ze, { onClick: t, "aria-label": "Close dialog" })
812
830
  ] }),
813
831
  /* @__PURE__ */ s("div", { ref: p, className: "nc-dialog-content", children: r }),
814
- R()
832
+ T()
815
833
  ]
816
834
  }
817
835
  ) }) });
818
- return A ? ke(E, document.body) : E;
836
+ return A ? Ae(E, document.body) : E;
819
837
  }
820
- function Bt({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
838
+ function Wt({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
821
839
  const r = t === "small" ? 28 : 34;
822
840
  return /* @__PURE__ */ s(
823
841
  "button",
@@ -846,7 +864,7 @@ function Bt({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
846
864
  }
847
865
  );
848
866
  }
849
- function Dt({ visible: e, onClick: t, size: n = "default" }) {
867
+ function Ht({ visible: e, onClick: t, size: n = "default" }) {
850
868
  const r = n === "small" ? 28 : 34, o = n === "small" ? 16 : 18;
851
869
  return /* @__PURE__ */ s(
852
870
  "button",
@@ -870,11 +888,11 @@ function Dt({ visible: e, onClick: t, size: n = "default" }) {
870
888
  alignItems: "center",
871
889
  justifyContent: "center"
872
890
  },
873
- children: e ? /* @__PURE__ */ s(bt, { size: o }) : /* @__PURE__ */ s(vt, { size: o })
891
+ children: e ? /* @__PURE__ */ s(wt, { size: o }) : /* @__PURE__ */ s(yt, { size: o })
874
892
  }
875
893
  );
876
894
  }
877
- function tr({
895
+ function rr({
878
896
  value: e,
879
897
  defaultValue: t = "",
880
898
  onChange: n,
@@ -897,113 +915,122 @@ function tr({
897
915
  validator: p,
898
916
  showErrorMessage: g = !0
899
917
  }) {
900
- const x = O(null), $ = O(null), R = O(!1), [E, S] = T(!1), [L, k] = T(!1), C = e !== void 0, [z, H] = T(t), j = C ? e : z, [G, X] = T(j), U = p ? p(j) : null, _ = !!U, F = !y && m === "plain", P = F && L, re = P ? G : j;
918
+ const x = F(null), C = F(null), T = F(!1), [E, S] = R(!1), [L, k] = R(!1), [$, P] = R(!1), H = e !== void 0, [ae, X] = R(t), K = H ? e : ae, [_, U] = R(K), j = p ? p(K) : null, z = !!j, q = !y && m === "plain", le = q && L, pe = le ? _ : K;
901
919
  D(() => {
902
- P || X(j);
903
- }, [j, P]);
904
- const de = f === "password", ae = de && w && !c && !y, ue = u && re && !c && L, pe = d === "small" ? 32 : 44;
905
- let fe = 12;
906
- ue && ae ? fe = pe * 2 : (ue || ae) && (fe = pe);
907
- const I = v ? d === "small" ? 28 : 34 : void 0, B = () => {
908
- if (!F)
909
- return j;
910
- const K = G !== j;
911
- return C || H(G), K && (n == null || n(G), r == null || r(G)), G;
920
+ le || U(K);
921
+ }, [K, le]);
922
+ const ve = f === "password", de = ve && w && !c && !y, we = u && pe && !c && (L || $), ye = d === "small" ? 32 : 44;
923
+ let I = 12;
924
+ we && de ? I = ye * 2 : (we || de) && (I = ye);
925
+ const B = v ? d === "small" ? 28 : 34 : void 0, G = () => {
926
+ if (!q)
927
+ return K;
928
+ const J = _ !== K;
929
+ return H || X(_), J && (n == null || n(_), r == null || r(_)), _;
912
930
  }, V = () => {
913
- X(j);
914
- }, J = () => {
915
- var K, Q, je;
916
- if (F) {
917
- X(""), i == null || i(), (K = x.current) == null || K.focus();
931
+ U(K);
932
+ }, ft = () => {
933
+ var J, Z, Ge;
934
+ if (q) {
935
+ U(""), i == null || i(), (J = x.current) == null || J.focus();
918
936
  return;
919
937
  }
920
- C || H(""), n == null || n(""), i == null || i(), y ? (Q = $.current) == null || Q.focus() : (je = x.current) == null || je.focus();
921
- }, We = (K) => {
922
- if (F && K.key === "Escape") {
923
- K.preventDefault(), R.current = !0, V(), K.currentTarget.blur();
938
+ H || X(""), n == null || n(""), i == null || i(), y ? (Z = C.current) == null || Z.focus() : (Ge = x.current) == null || Ge.focus();
939
+ }, He = (J) => {
940
+ if (q && J.key === "Escape") {
941
+ J.preventDefault(), T.current = !0, V(), J.currentTarget.blur();
924
942
  return;
925
943
  }
926
- if (K.key === "Enter" && !y) {
927
- const Q = F ? B() : j;
928
- F && (K.preventDefault(), R.current = !0, K.currentTarget.blur()), o == null || o(Q);
944
+ if (J.key === "Enter" && !y) {
945
+ const Z = q ? G() : K;
946
+ q && (J.preventDefault(), T.current = !0, J.currentTarget.blur()), o == null || o(Z);
929
947
  }
930
- }, He = (K) => {
931
- const Q = K.target.value;
932
- if (F) {
933
- X(Q), n == null || n(Q);
948
+ }, Ve = (J) => {
949
+ const Z = J.target.value;
950
+ if (q) {
951
+ U(Z), n == null || n(Z);
934
952
  return;
935
953
  }
936
- C || H(Q), n == null || n(Q);
937
- }, Ve = () => {
938
- k(!0), F && X(j);
954
+ H || X(Z), n == null || n(Z);
939
955
  }, Oe = () => {
940
- if (F && R.current) {
941
- R.current = !1, k(!1);
956
+ k(!0), q && U(K);
957
+ }, Fe = () => {
958
+ if (q && T.current) {
959
+ T.current = !1, k(!1);
942
960
  return;
943
961
  }
944
- F && B(), k(!1);
945
- }, Fe = `nc-input ${d === "small" ? "nc-small " : ""}${!y && m === "plain" ? "nc-plain " : ""}${_ ? "nc-error " : ""}${b}`;
946
- return /* @__PURE__ */ N("div", { className: "nc-col", style: { position: "relative", flex: 1, ...A }, children: [
947
- l && /* @__PURE__ */ s("span", { className: "nc-label", children: l }),
948
- /* @__PURE__ */ N("div", { style: { position: "relative", display: "flex", alignItems: y ? "flex-start" : "center" }, children: [
949
- v && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: y ? void 0 : "100%", top: y ? 10 : void 0 }, children: v }),
950
- y ? /* @__PURE__ */ s(
951
- "textarea",
952
- {
953
- ref: $,
954
- className: Fe,
955
- placeholder: a,
956
- value: re,
957
- onChange: He,
958
- onKeyDown: We,
959
- onFocus: Ve,
960
- onBlur: Oe,
961
- readOnly: c,
962
- "aria-disabled": c,
963
- tabIndex: c ? -1 : void 0,
964
- rows: h,
965
- style: {
966
- width: "100%",
967
- paddingRight: fe,
968
- ...I !== void 0 ? { paddingLeft: I } : {}
969
- }
970
- }
971
- ) : /* @__PURE__ */ s(
972
- "input",
973
- {
974
- ref: x,
975
- type: de && E ? "text" : f,
976
- className: Fe,
977
- placeholder: a,
978
- value: re,
979
- onChange: He,
980
- onKeyDown: We,
981
- onFocus: Ve,
982
- onBlur: Oe,
983
- readOnly: c,
984
- "aria-disabled": c,
985
- tabIndex: c ? -1 : void 0,
986
- style: {
987
- width: "100%",
988
- paddingRight: fe,
989
- ...I !== void 0 ? { paddingLeft: I } : {}
990
- }
991
- }
992
- ),
993
- ue && /* @__PURE__ */ s(Bt, { onClick: J, size: d, rightOffset: ae ? pe + 4 : 4 }),
994
- ae && /* @__PURE__ */ s(Dt, { visible: E, onClick: () => S(!E), size: d })
995
- ] }),
996
- _ && g && /* @__PURE__ */ s("span", { className: "nc-error-message", children: U })
997
- ] });
962
+ q && G(), k(!1);
963
+ }, je = `nc-input ${d === "small" ? "nc-small " : ""}${!y && m === "plain" ? "nc-plain " : ""}${z ? "nc-error " : ""}${b}`;
964
+ return /* @__PURE__ */ N(
965
+ "div",
966
+ {
967
+ className: "nc-col",
968
+ style: { position: "relative", flex: 1, ...A },
969
+ onMouseEnter: () => P(!0),
970
+ onMouseLeave: () => P(!1),
971
+ children: [
972
+ l && /* @__PURE__ */ s("span", { className: "nc-label", children: l }),
973
+ /* @__PURE__ */ N("div", { style: { position: "relative", display: "flex", alignItems: y ? "flex-start" : "center" }, children: [
974
+ v && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: y ? void 0 : "100%", top: y ? 10 : void 0 }, children: v }),
975
+ y ? /* @__PURE__ */ s(
976
+ "textarea",
977
+ {
978
+ ref: C,
979
+ className: je,
980
+ placeholder: a,
981
+ value: pe,
982
+ onChange: Ve,
983
+ onKeyDown: He,
984
+ onFocus: Oe,
985
+ onBlur: Fe,
986
+ readOnly: c,
987
+ "aria-disabled": c,
988
+ tabIndex: c ? -1 : void 0,
989
+ rows: h,
990
+ style: {
991
+ width: "100%",
992
+ paddingRight: I,
993
+ ...B !== void 0 ? { paddingLeft: B } : {}
994
+ }
995
+ }
996
+ ) : /* @__PURE__ */ s(
997
+ "input",
998
+ {
999
+ ref: x,
1000
+ type: ve && E ? "text" : f,
1001
+ className: je,
1002
+ placeholder: a,
1003
+ value: pe,
1004
+ onChange: Ve,
1005
+ onKeyDown: He,
1006
+ onFocus: Oe,
1007
+ onBlur: Fe,
1008
+ readOnly: c,
1009
+ "aria-disabled": c,
1010
+ tabIndex: c ? -1 : void 0,
1011
+ style: {
1012
+ width: "100%",
1013
+ paddingRight: I,
1014
+ ...B !== void 0 ? { paddingLeft: B } : {}
1015
+ }
1016
+ }
1017
+ ),
1018
+ we && /* @__PURE__ */ s(Wt, { onClick: ft, size: d, rightOffset: de ? ye + 4 : 4 }),
1019
+ de && /* @__PURE__ */ s(Ht, { visible: E, onClick: () => S(!E), size: d })
1020
+ ] }),
1021
+ z && g && /* @__PURE__ */ s("span", { className: "nc-error-message", children: j })
1022
+ ]
1023
+ }
1024
+ );
998
1025
  }
999
- function nr({
1026
+ function or({
1000
1027
  children: e,
1001
1028
  onClick: t,
1002
1029
  showBorder: n = !0,
1003
1030
  selectable: r = !1,
1004
1031
  style: o
1005
1032
  }) {
1006
- const [i, a] = Le.useState(!1);
1033
+ const [i, a] = ze.useState(!1);
1007
1034
  return /* @__PURE__ */ s(
1008
1035
  "div",
1009
1036
  {
@@ -1031,7 +1058,7 @@ function nr({
1031
1058
  }
1032
1059
  );
1033
1060
  }
1034
- function rr({ title: e, titleTools: t, children: n, style: r }) {
1061
+ function sr({ title: e, titleTools: t, children: n, style: r }) {
1035
1062
  return /* @__PURE__ */ N("div", { className: "nc-list-group", style: r, children: [
1036
1063
  (e || t) && /* @__PURE__ */ N("div", { className: "nc-list-group-title", children: [
1037
1064
  /* @__PURE__ */ s("div", { children: e }),
@@ -1046,8 +1073,8 @@ function rr({ title: e, titleTools: t, children: n, style: r }) {
1046
1073
  )
1047
1074
  ] });
1048
1075
  }
1049
- function or({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
1050
- const [i, a] = T(!1), [c, l] = T(""), u = O(null), f = Ce(() => n.filter((d) => d.label.toLowerCase().includes(c.toLowerCase())), [n, c]);
1076
+ function ir({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
1077
+ const [i, a] = R(!1), [c, l] = R(""), u = F(null), f = Me(() => n.filter((d) => d.label.toLowerCase().includes(c.toLowerCase())), [n, c]);
1051
1078
  D(() => {
1052
1079
  function d(m) {
1053
1080
  !(m.target instanceof Node) || !u.current || u.current.contains(m.target) || a(!1);
@@ -1100,7 +1127,7 @@ function or({ values: e, onChange: t, options: n, placeholder: r = "Select…",
1100
1127
  ] })
1101
1128
  ] });
1102
1129
  }
1103
- function Ne(e) {
1130
+ function Se(e) {
1104
1131
  if (!e) return null;
1105
1132
  const t = /^\d{2}-\d{1,2}$/, n = /^\d{4}-\d{1,2}$/;
1106
1133
  if (!t.test(e) && !n.test(e))
@@ -1108,7 +1135,7 @@ function Ne(e) {
1108
1135
  const r = e.split("-"), o = parseInt(r[1], 10);
1109
1136
  return o < 1 || o > 12 ? "Month must be between 1 and 12" : null;
1110
1137
  }
1111
- function xe(e) {
1138
+ function Ne(e) {
1112
1139
  if (!e) return "";
1113
1140
  const t = e.split("-");
1114
1141
  if (t.length !== 2) return e;
@@ -1120,18 +1147,18 @@ function xe(e) {
1120
1147
  }
1121
1148
  return `${n}-${r}`;
1122
1149
  }
1123
- function Ge(e) {
1150
+ function Ye(e) {
1124
1151
  if (!e) return "";
1125
- const t = xe(e);
1152
+ const t = Ne(e);
1126
1153
  if (!/^\d{4}-\d{2}$/.test(t)) return e;
1127
1154
  const [n, r] = t.split("-");
1128
1155
  return `${n}/${r}`;
1129
1156
  }
1130
- function Ye() {
1157
+ function Ke() {
1131
1158
  const e = /* @__PURE__ */ new Date(), t = e.getFullYear(), n = String(e.getMonth() + 1).padStart(2, "0");
1132
1159
  return `${t}-${n}`;
1133
1160
  }
1134
- function sr({
1161
+ function cr({
1135
1162
  startMonth: e,
1136
1163
  endMonth: t,
1137
1164
  onChange: n,
@@ -1140,41 +1167,41 @@ function sr({
1140
1167
  disabled: i = !1,
1141
1168
  size: a = "default"
1142
1169
  }) {
1143
- const [c, l] = T(!1), [u, f] = T(""), [b, d] = T(""), [m, A] = T({ top: 0, left: 0, width: 0, right: void 0 }), v = O(null), w = O(null);
1170
+ const [c, l] = R(!1), [u, f] = R(""), [b, d] = R(""), [m, A] = R({ top: 0, left: 0, width: 0, right: void 0 }), v = F(null), w = F(null);
1144
1171
  D(() => {
1145
1172
  if (c && v.current) {
1146
- const k = v.current.getBoundingClientRect(), z = Math.max(k.width, 400);
1147
- window.innerWidth - k.left < z && k.right >= z ? A({
1173
+ const k = v.current.getBoundingClientRect(), P = Math.max(k.width, 400);
1174
+ window.innerWidth - k.left < P && k.right >= P ? A({
1148
1175
  top: k.bottom + 4,
1149
1176
  left: 0,
1150
1177
  // Not used but type needs it, let's just use 0
1151
1178
  right: window.innerWidth - k.right,
1152
- width: z
1179
+ width: P
1153
1180
  }) : A({
1154
1181
  top: k.bottom + 4,
1155
1182
  left: k.left,
1156
1183
  right: void 0,
1157
- width: z
1184
+ width: P
1158
1185
  });
1159
1186
  }
1160
1187
  }, [c]), D(() => {
1161
1188
  if (!c) return;
1162
- const k = (C) => {
1163
- v.current && !v.current.contains(C.target) && w.current && !w.current.contains(C.target) && l(!1);
1189
+ const k = ($) => {
1190
+ v.current && !v.current.contains($.target) && w.current && !w.current.contains($.target) && l(!1);
1164
1191
  };
1165
1192
  return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
1166
1193
  }, [c]);
1167
1194
  const y = () => {
1168
- f(e || Ye()), d(t || Ye()), l(!0);
1195
+ f(e || Ke()), d(t || Ke()), l(!0);
1169
1196
  }, h = () => {
1170
1197
  l(!1);
1171
1198
  }, p = () => {
1172
- const k = Ne(u), C = Ne(b);
1173
- if (k || C)
1199
+ const k = Se(u), $ = Se(b);
1200
+ if (k || $)
1174
1201
  return;
1175
- const z = xe(u), H = xe(b);
1176
- z && H && (n == null || n(z, H)), l(!1);
1177
- }, g = e && t ? `${Ge(e)} - ${Ge(t)}` : "Select month range", x = Ne(u), $ = Ne(b), R = xe(u), E = xe(b), S = R && E && R > E, L = c ? ke(
1202
+ const P = Ne(u), H = Ne(b);
1203
+ P && H && (n == null || n(P, H)), l(!1);
1204
+ }, g = e && t ? `${Ye(e)} - ${Ye(t)}` : "Select month range", x = Se(u), C = Se(b), T = Ne(u), E = Ne(b), S = T && E && T > E, L = c ? Ae(
1178
1205
  /* @__PURE__ */ s(
1179
1206
  "div",
1180
1207
  {
@@ -1209,27 +1236,27 @@ function sr({
1209
1236
  "input",
1210
1237
  {
1211
1238
  type: "text",
1212
- className: `nc-month-input ${$ ? "nc-error" : ""}`,
1239
+ className: `nc-month-input ${C ? "nc-error" : ""}`,
1213
1240
  value: b,
1214
1241
  onChange: (k) => d(k.target.value),
1215
1242
  placeholder: "YY-M(M) or YYYY-M(M)"
1216
1243
  }
1217
1244
  ),
1218
- $ && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: $ })
1245
+ C && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: C })
1219
1246
  ] })
1220
1247
  ] }),
1221
- S && !x && !$ && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1248
+ S && !x && !C && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1222
1249
  /* @__PURE__ */ N("div", { className: "nc-month-range-picker-footer", children: [
1223
1250
  /* @__PURE__ */ s(
1224
- ee,
1251
+ te,
1225
1252
  {
1226
1253
  variant: "primary",
1227
1254
  onClick: p,
1228
- disabled: !u || !b || !!x || !!$ || !!S,
1255
+ disabled: !u || !b || !!x || !!C || !!S,
1229
1256
  children: "Apply"
1230
1257
  }
1231
1258
  ),
1232
- /* @__PURE__ */ s(ee, { variant: "ghost", onClick: h, children: "Cancel" })
1259
+ /* @__PURE__ */ s(te, { variant: "ghost", onClick: h, children: "Cancel" })
1233
1260
  ] })
1234
1261
  ] })
1235
1262
  }
@@ -1251,7 +1278,7 @@ function sr({
1251
1278
  L
1252
1279
  ] });
1253
1280
  }
1254
- function ir({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: a, size: c = "default" }) {
1281
+ function ar({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: a, size: c = "default" }) {
1255
1282
  const l = c === "small", u = () => {
1256
1283
  const d = e - o;
1257
1284
  n !== void 0 && d < n || t(parseFloat(d.toFixed(10)));
@@ -1299,7 +1326,7 @@ function ir({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1299
1326
  ] })
1300
1327
  ] });
1301
1328
  }
1302
- function cr({
1329
+ function lr({
1303
1330
  value: e,
1304
1331
  onChange: t,
1305
1332
  min: n = 0,
@@ -1351,13 +1378,13 @@ function cr({
1351
1378
  ] })
1352
1379
  ] });
1353
1380
  }
1354
- const Wt = ({ size: e = 24, className: t, style: n }) => /* @__PURE__ */ s("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", className: t, style: n, children: /* @__PURE__ */ s("polyline", { points: "18 15 12 9 6 15" }) });
1355
- function Ht({ children: e, className: t = "", style: n }) {
1381
+ const Vt = ({ size: e = 24, className: t, style: n }) => /* @__PURE__ */ s("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", className: t, style: n, children: /* @__PURE__ */ s("polyline", { points: "18 15 12 9 6 15" }) });
1382
+ function Ot({ children: e, className: t = "", style: n }) {
1356
1383
  return /* @__PURE__ */ s("div", { className: `nc-tab-panel ${t}`, style: n, children: e });
1357
1384
  }
1358
- function ar({ active: e, children: t, keepMounted: n = !1, className: r = "", style: o }) {
1359
- const i = kt.toArray(t).filter(
1360
- (c) => Nt(c) && (c.type === Ht || c.type.displayName === "TabPanel")
1385
+ function dr({ active: e, children: t, keepMounted: n = !1, className: r = "", style: o }) {
1386
+ const i = At.toArray(t).filter(
1387
+ (c) => St(c) && (c.type === Ot || c.type.displayName === "TabPanel")
1361
1388
  );
1362
1389
  if (n)
1363
1390
  return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: i.map((c) => {
@@ -1376,17 +1403,17 @@ function ar({ active: e, children: t, keepMounted: n = !1, className: r = "", st
1376
1403
  const a = i.find((c) => c.props.tab === e);
1377
1404
  return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: a });
1378
1405
  }
1379
- function lr({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: a, multiline: c, orientation: l = "horizontal", style: u }) {
1380
- const f = O(null), [b, d] = T(!1), [m, A] = T(!1), v = l === "verticalLeft" || l === "verticalRight", w = O(!1), y = O(0), h = O(0), p = O(!1);
1406
+ function ur({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: a, multiline: c, orientation: l = "horizontal", style: u }) {
1407
+ const f = F(null), [b, d] = R(!1), [m, A] = R(!1), v = l === "verticalLeft" || l === "verticalRight", w = F(!1), y = F(0), h = F(0), p = F(!1);
1381
1408
  D(() => {
1382
1409
  const S = () => {
1383
1410
  if (f.current)
1384
1411
  if (v) {
1385
- const { scrollTop: k, scrollHeight: C, clientHeight: z } = f.current;
1386
- d(k > 1), A(k < C - z - 1);
1412
+ const { scrollTop: k, scrollHeight: $, clientHeight: P } = f.current;
1413
+ d(k > 1), A(k < $ - P - 1);
1387
1414
  } else {
1388
- const { scrollLeft: k, scrollWidth: C, clientWidth: z } = f.current;
1389
- d(k > 1), A(k < C - z - 1);
1415
+ const { scrollLeft: k, scrollWidth: $, clientWidth: P } = f.current;
1416
+ d(k > 1), A(k < $ - P - 1);
1390
1417
  }
1391
1418
  }, L = f.current;
1392
1419
  if (L)
@@ -1400,10 +1427,10 @@ function lr({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1400
1427
  if (!w.current || !f.current) return;
1401
1428
  const L = v ? S.clientY : S.clientX, k = y.current - L;
1402
1429
  Math.abs(k) > 3 && (p.current = !0), v ? f.current.scrollTop = h.current + k : f.current.scrollLeft = h.current + k;
1403
- }, $ = () => {
1430
+ }, C = () => {
1404
1431
  f.current && (w.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1405
- }, R = () => {
1406
- $();
1432
+ }, T = () => {
1433
+ C();
1407
1434
  };
1408
1435
  D(() => {
1409
1436
  const S = f.current;
@@ -1420,7 +1447,7 @@ function lr({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1420
1447
  };
1421
1448
  return /* @__PURE__ */ N("div", { className: `nc-tab-container ${v ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: u, children: [
1422
1449
  /* @__PURE__ */ N("div", { className: "nc-tab-scroll-wrapper", children: [
1423
- b && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${v ? "nc-top" : "nc-left"}`, children: v ? /* @__PURE__ */ s(Wt, { size: 16 }) : /* @__PURE__ */ s(wt, { size: 16 }) }),
1450
+ b && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${v ? "nc-top" : "nc-left"}`, children: v ? /* @__PURE__ */ s(Vt, { size: 16 }) : /* @__PURE__ */ s(xt, { size: 16 }) }),
1424
1451
  /* @__PURE__ */ s(
1425
1452
  "div",
1426
1453
  {
@@ -1428,35 +1455,35 @@ function lr({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1428
1455
  className: `nc-tab-scroll ${c ? "nc-multiline" : ""}`,
1429
1456
  onMouseDown: g,
1430
1457
  onMouseMove: x,
1431
- onMouseUp: $,
1432
- onMouseLeave: R,
1458
+ onMouseUp: C,
1459
+ onMouseLeave: T,
1433
1460
  style: { cursor: "grab" },
1434
1461
  children: e.map((S) => {
1435
- const L = typeof S == "string" ? S : S.id, k = typeof S == "string" ? S : S.label, C = r && !(o != null && o.includes(L));
1462
+ const L = typeof S == "string" ? S : S.id, k = typeof S == "string" ? S : S.label, $ = r && !(o != null && o.includes(L));
1436
1463
  return /* @__PURE__ */ N(
1437
1464
  "div",
1438
1465
  {
1439
- className: `nc-tab-item ${t === L ? "nc-active" : ""} ${C ? "nc-closable" : ""}`,
1466
+ className: `nc-tab-item ${t === L ? "nc-active" : ""} ${$ ? "nc-closable" : ""}`,
1440
1467
  onClick: () => E(L),
1441
1468
  role: "button",
1442
1469
  tabIndex: 0,
1443
- onKeyDown: (z) => {
1444
- (z.key === "Enter" || z.key === " ") && n(L);
1470
+ onKeyDown: (P) => {
1471
+ (P.key === "Enter" || P.key === " ") && n(L);
1445
1472
  },
1446
1473
  children: [
1447
1474
  /* @__PURE__ */ s("span", { className: "nc-tab-label", children: v ? k : typeof k == "string" ? k.toUpperCase() : k }),
1448
- C && /* @__PURE__ */ s(
1475
+ $ && /* @__PURE__ */ s(
1449
1476
  "span",
1450
1477
  {
1451
1478
  className: "nc-tab-close",
1452
1479
  role: "button",
1453
1480
  tabIndex: 0,
1454
1481
  "aria-label": `Close ${typeof k == "string" ? k : L}`,
1455
- onClick: (z) => {
1456
- z.stopPropagation(), r(L);
1482
+ onClick: (P) => {
1483
+ P.stopPropagation(), r(L);
1457
1484
  },
1458
- onKeyDown: (z) => {
1459
- (z.key === "Enter" || z.key === " ") && (z.stopPropagation(), r(L));
1485
+ onKeyDown: (P) => {
1486
+ (P.key === "Enter" || P.key === " ") && (P.stopPropagation(), r(L));
1460
1487
  },
1461
1488
  children: /* @__PURE__ */ N("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1462
1489
  /* @__PURE__ */ s("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
@@ -1471,12 +1498,12 @@ function lr({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1471
1498
  })
1472
1499
  }
1473
1500
  ),
1474
- m && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${v ? "nc-bottom" : "nc-right"}`, children: v ? /* @__PURE__ */ s(yt, { size: 16 }) : /* @__PURE__ */ s(xt, { size: 16 }) })
1501
+ m && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${v ? "nc-bottom" : "nc-right"}`, children: v ? /* @__PURE__ */ s(kt, { size: 16 }) : /* @__PURE__ */ s(Nt, { size: 16 }) })
1475
1502
  ] }),
1476
1503
  a && /* @__PURE__ */ s("div", { className: "nc-tab-toolbar", children: a })
1477
1504
  ] });
1478
1505
  }
1479
- function dr({ checked: e, onChange: t, disabled: n, label: r }) {
1506
+ function pr({ checked: e, onChange: t, disabled: n, label: r }) {
1480
1507
  return /* @__PURE__ */ N(
1481
1508
  "label",
1482
1509
  {
@@ -1528,7 +1555,7 @@ function dr({ checked: e, onChange: t, disabled: n, label: r }) {
1528
1555
  }
1529
1556
  );
1530
1557
  }
1531
- const Ke = [
1558
+ const _e = [
1532
1559
  "var(--nc-csv-col-0)",
1533
1560
  "var(--nc-csv-col-1)",
1534
1561
  "var(--nc-csv-col-2)",
@@ -1540,12 +1567,12 @@ const Ke = [
1540
1567
  "var(--nc-csv-col-8)",
1541
1568
  "var(--nc-csv-col-9)"
1542
1569
  ];
1543
- function Vt(e, t) {
1570
+ function Ft(e, t) {
1544
1571
  const r = e.slice(0, t).split(`
1545
1572
  `), o = r.length, a = r[o - 1].split(" "), c = a.length, l = a[c - 1].length + 1;
1546
1573
  return { line: o, column: c, character: l, offset: t };
1547
1574
  }
1548
- function Ot(e, t, n, r) {
1575
+ function jt(e, t, n, r) {
1549
1576
  const o = e.split(`
1550
1577
  `), i = Math.max(1, Math.min(t, o.length));
1551
1578
  let a = 0;
@@ -1557,7 +1584,7 @@ function Ot(e, t, n, r) {
1557
1584
  const f = Math.max(1, Math.min(r, l[u - 1].length + 1));
1558
1585
  return a += f - 1, a;
1559
1586
  }
1560
- function Ft(e, t) {
1587
+ function Gt(e, t) {
1561
1588
  const n = e.split(`
1562
1589
  `), r = Math.max(1, Math.min(t, n.length));
1563
1590
  let o = 0;
@@ -1565,14 +1592,14 @@ function Ft(e, t) {
1565
1592
  o += n[i].length + 1;
1566
1593
  return o;
1567
1594
  }
1568
- const ur = At(
1595
+ const fr = Ct(
1569
1596
  function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: a = !1, onCursorChange: c, highlightLine: l }, u) {
1570
- const f = O(null), b = O(null), d = O(null);
1571
- St(u, () => ({
1597
+ const f = F(null), b = F(null), d = F(null);
1598
+ $t(u, () => ({
1572
1599
  goToLine(h) {
1573
1600
  const p = f.current;
1574
1601
  if (!p) return;
1575
- const g = Ft(t, h);
1602
+ const g = Gt(t, h);
1576
1603
  p.focus(), p.setSelectionRange(g, g);
1577
1604
  const x = parseFloat(getComputedStyle(p).lineHeight) || 18;
1578
1605
  p.scrollTop = (Math.max(1, h) - 1) * x, A(), m();
@@ -1580,15 +1607,15 @@ const ur = At(
1580
1607
  goToPosition(h, p, g) {
1581
1608
  const x = f.current;
1582
1609
  if (!x) return;
1583
- const $ = Ot(t, h, p, g);
1584
- x.focus(), x.setSelectionRange($, $);
1585
- const R = parseFloat(getComputedStyle(x).lineHeight) || 18;
1586
- x.scrollTop = (Math.max(1, h) - 1) * R, A(), m();
1610
+ const C = jt(t, h, p, g);
1611
+ x.focus(), x.setSelectionRange(C, C);
1612
+ const T = parseFloat(getComputedStyle(x).lineHeight) || 18;
1613
+ x.scrollTop = (Math.max(1, h) - 1) * T, A(), m();
1587
1614
  }
1588
1615
  }), [t]);
1589
1616
  const m = Y(() => {
1590
1617
  if (!c || !f.current) return;
1591
- const h = Vt(t, f.current.selectionStart);
1618
+ const h = Ft(t, f.current.selectionStart);
1592
1619
  c(h);
1593
1620
  }, [c, t]), A = Y(() => {
1594
1621
  const h = f.current;
@@ -1601,7 +1628,7 @@ const ur = At(
1601
1628
  const p = parseFloat(getComputedStyle(h).lineHeight) || 18, g = (l - 1) * p, x = g + p;
1602
1629
  (g < h.scrollTop || x > h.scrollTop + h.clientHeight) && (h.scrollTop = g - h.clientHeight / 2 + p / 2), A();
1603
1630
  }, [l]);
1604
- const v = Ce(() => t.split(`
1631
+ const v = Me(() => t.split(`
1605
1632
  `).length, [t]), w = () => {
1606
1633
  const h = [];
1607
1634
  for (let p = 1; p <= v; p++)
@@ -1611,11 +1638,11 @@ const ur = At(
1611
1638
  return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: d, children: h });
1612
1639
  }, y = (h) => h ? h.split(`
1613
1640
  `).map((g, x) => {
1614
- const $ = g.split(" ");
1641
+ const C = g.split(" ");
1615
1642
  return /* @__PURE__ */ N("div", { className: `nc-csv-line ${l === x + 1 ? "nc-csv-highlight" : ""}`, children: [
1616
- $.map((R, E) => /* @__PURE__ */ N("span", { children: [
1643
+ C.map((T, E) => /* @__PURE__ */ N("span", { children: [
1617
1644
  E > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
1618
- /* @__PURE__ */ s("span", { style: { color: Ke[E % Ke.length] }, children: R })
1645
+ /* @__PURE__ */ s("span", { style: { color: _e[E % _e.length] }, children: T })
1619
1646
  ] }, E)),
1620
1647
  g === "" && `
1621
1648
  `
@@ -1648,27 +1675,27 @@ const ur = At(
1648
1675
  ] });
1649
1676
  }
1650
1677
  );
1651
- let le = { notifications: [] };
1652
- const Me = /* @__PURE__ */ new Set(), _e = /* @__PURE__ */ new Map();
1653
- function Ie() {
1654
- const e = le.notifications.slice();
1655
- for (const t of Array.from(Me))
1678
+ let ue = { notifications: [] };
1679
+ const Re = /* @__PURE__ */ new Set(), Ue = /* @__PURE__ */ new Map();
1680
+ function Te() {
1681
+ const e = ue.notifications.slice();
1682
+ for (const t of Array.from(Re))
1656
1683
  try {
1657
1684
  t(e);
1658
1685
  } catch {
1659
1686
  }
1660
1687
  }
1661
- function jt(e) {
1662
- Me.add(e);
1688
+ function Yt(e) {
1689
+ Re.add(e);
1663
1690
  try {
1664
- e(le.notifications.slice());
1691
+ e(ue.notifications.slice());
1665
1692
  } catch {
1666
1693
  }
1667
1694
  return () => {
1668
- Me.delete(e);
1695
+ Re.delete(e);
1669
1696
  };
1670
1697
  }
1671
- function Gt(e) {
1698
+ function Kt(e) {
1672
1699
  const t = `notification-${Date.now()}-${Math.random()}`, { duration: n, type: r, ...o } = e, i = {
1673
1700
  id: t,
1674
1701
  dismissible: !0,
@@ -1676,20 +1703,20 @@ function Gt(e) {
1676
1703
  type: r === "error" ? "danger" : r ?? "info",
1677
1704
  duration: n ?? 5e3
1678
1705
  };
1679
- return le.notifications = [i, ...le.notifications], Ie(), i.duration && i.duration > 0 && setTimeout(() => {
1680
- et(t);
1706
+ return ue.notifications = [i, ...ue.notifications], Te(), i.duration && i.duration > 0 && setTimeout(() => {
1707
+ tt(t);
1681
1708
  }, i.duration), t;
1682
1709
  }
1683
- function et(e) {
1684
- const t = le.notifications.find((r) => r.id === e);
1710
+ function tt(e) {
1711
+ const t = ue.notifications.find((r) => r.id === e);
1685
1712
  if (!t) return;
1686
- t.isRemoving = !0, Ie();
1713
+ t.isRemoving = !0, Te();
1687
1714
  const n = window.setTimeout(() => {
1688
- le.notifications = le.notifications.filter((r) => r.id !== e), Ie(), _e.delete(e);
1715
+ ue.notifications = ue.notifications.filter((r) => r.id !== e), Te(), Ue.delete(e);
1689
1716
  }, 300);
1690
- _e.set(e, n);
1717
+ Ue.set(e, n);
1691
1718
  }
1692
- function Yt({ type: e }) {
1719
+ function _t({ type: e }) {
1693
1720
  switch (e) {
1694
1721
  case "success":
1695
1722
  return /* @__PURE__ */ s("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ s(
@@ -1730,8 +1757,8 @@ function Yt({ type: e }) {
1730
1757
  ] });
1731
1758
  }
1732
1759
  }
1733
- function Kt({ notification: e }) {
1734
- const { t } = ne(), n = e.type || "info", r = () => {
1760
+ function Ut({ notification: e }) {
1761
+ const { t } = re(), n = e.type || "info", r = () => {
1735
1762
  if (e.title) return e.title;
1736
1763
  switch (n) {
1737
1764
  case "success":
@@ -1744,14 +1771,14 @@ function Kt({ notification: e }) {
1744
1771
  return t("common.info");
1745
1772
  }
1746
1773
  }, o = () => {
1747
- et(e.id);
1774
+ tt(e.id);
1748
1775
  };
1749
1776
  return /* @__PURE__ */ s(
1750
1777
  "div",
1751
1778
  {
1752
1779
  className: `nc-notification nc-notification-${n}`,
1753
1780
  children: /* @__PURE__ */ N("div", { className: "nc-notification-content", children: [
1754
- /* @__PURE__ */ s("div", { className: `nc-notification-icon nc-notification-icon-${n}`, children: /* @__PURE__ */ s(Yt, { type: n }) }),
1781
+ /* @__PURE__ */ s("div", { className: `nc-notification-icon nc-notification-icon-${n}`, children: /* @__PURE__ */ s(_t, { type: n }) }),
1755
1782
  /* @__PURE__ */ N("div", { className: "nc-notification-body", children: [
1756
1783
  /* @__PURE__ */ s("div", { className: "nc-notification-title", children: r() }),
1757
1784
  /* @__PURE__ */ s("div", { className: "nc-notification-message", children: e.message })
@@ -1762,16 +1789,16 @@ function Kt({ notification: e }) {
1762
1789
  className: "nc-notification-dismiss",
1763
1790
  onClick: o,
1764
1791
  "aria-label": t("common.close"),
1765
- children: /* @__PURE__ */ s(Ee, { size: 16 })
1792
+ children: /* @__PURE__ */ s(Pe, { size: 16 })
1766
1793
  }
1767
1794
  )
1768
1795
  ] })
1769
1796
  }
1770
1797
  );
1771
1798
  }
1772
- function pr() {
1773
- const [e, t] = T([]), [n, r] = T(/* @__PURE__ */ new Map()), [o, i] = T(/* @__PURE__ */ new Set()), a = O(null), c = O([]);
1774
- return D(() => jt((u) => {
1799
+ function hr() {
1800
+ const [e, t] = R([]), [n, r] = R(/* @__PURE__ */ new Map()), [o, i] = R(/* @__PURE__ */ new Set()), a = F(null), c = F([]);
1801
+ return D(() => Yt((u) => {
1775
1802
  const f = new Set(c.current.map((d) => d.id)), b = u.filter((d) => !f.has(d.id)).map((d) => d.id);
1776
1803
  b.length > 0 ? (t(u), i(new Set(b)), requestAnimationFrame(() => {
1777
1804
  requestAnimationFrame(() => {
@@ -1824,7 +1851,7 @@ function pr() {
1824
1851
  opacity: f ? 0 : 1,
1825
1852
  width: "100%"
1826
1853
  },
1827
- children: /* @__PURE__ */ s(Kt, { notification: l })
1854
+ children: /* @__PURE__ */ s(Ut, { notification: l })
1828
1855
  },
1829
1856
  l.id
1830
1857
  );
@@ -1834,14 +1861,14 @@ function pr() {
1834
1861
  }
1835
1862
  );
1836
1863
  }
1837
- function _t(e) {
1838
- return Gt(e);
1864
+ function qt(e) {
1865
+ return Kt(e);
1839
1866
  }
1840
- const fr = {
1841
- show: (e) => _t(e)
1867
+ const mr = {
1868
+ show: (e) => qt(e)
1842
1869
  };
1843
- function hr(e) {
1844
- const t = $t.createInstance(), n = {};
1870
+ function gr(e) {
1871
+ const t = It.createInstance(), n = {};
1845
1872
  for (const o in e)
1846
1873
  n[o] = { translation: e[o] };
1847
1874
  const r = typeof document < "u" && document.documentElement.lang || "en";
@@ -1861,7 +1888,7 @@ function hr(e) {
1861
1888
  }
1862
1889
  }).observe(document.documentElement, { attributes: !0 }), t;
1863
1890
  }
1864
- class Ut {
1891
+ class Xt {
1865
1892
  constructor() {
1866
1893
  oe(this, "apps", /* @__PURE__ */ new Map());
1867
1894
  }
@@ -1901,8 +1928,8 @@ class Ut {
1901
1928
  return this.apps.has(t);
1902
1929
  }
1903
1930
  }
1904
- const ge = new Ut(), Ue = "nc-ui-app-state";
1905
- class qt {
1931
+ const me = new Xt(), qe = "nc-ui-app-state";
1932
+ class Jt {
1906
1933
  constructor() {
1907
1934
  oe(this, "state");
1908
1935
  oe(this, "listeners", /* @__PURE__ */ new Map());
@@ -1910,7 +1937,7 @@ class qt {
1910
1937
  }
1911
1938
  loadState() {
1912
1939
  try {
1913
- const t = localStorage.getItem(Ue);
1940
+ const t = localStorage.getItem(qe);
1914
1941
  if (t)
1915
1942
  return JSON.parse(t);
1916
1943
  } catch {
@@ -1919,7 +1946,7 @@ class qt {
1919
1946
  }
1920
1947
  saveState() {
1921
1948
  try {
1922
- localStorage.setItem(Ue, JSON.stringify(this.state));
1949
+ localStorage.setItem(qe, JSON.stringify(this.state));
1923
1950
  } catch {
1924
1951
  }
1925
1952
  }
@@ -1949,8 +1976,8 @@ class qt {
1949
1976
  (r = this.listeners.get(t)) == null || r.forEach((o) => o(n));
1950
1977
  }
1951
1978
  }
1952
- const te = new qt();
1953
- class Xt {
1979
+ const ne = new Jt();
1980
+ class Qt {
1954
1981
  constructor() {
1955
1982
  oe(this, "apps", []);
1956
1983
  oe(this, "activeAppId", null);
@@ -1967,16 +1994,16 @@ class Xt {
1967
1994
  */
1968
1995
  async launchApp(t, n) {
1969
1996
  const { launchInBackground: r = !1 } = n || {};
1970
- if (!ge.has(t))
1997
+ if (!me.has(t))
1971
1998
  return console.error(`Cannot launch app "${t}": not registered`), null;
1972
1999
  const o = this.apps.find((a) => a.appId === t);
1973
2000
  if (o)
1974
- return r || (this.setActiveApp(t), te._setActiveAppId(t)), o.ref ? o : this.waitForRef(t);
2001
+ return r || (this.setActiveApp(t), ne._setActiveAppId(t)), o.ref ? o : this.waitForRef(t);
1975
2002
  const i = {
1976
2003
  appId: t,
1977
2004
  launchedAt: Date.now()
1978
2005
  };
1979
- return this.apps.push(i), r || (this.activeAppId = t, te._setActiveAppId(t)), this.notify(), this.waitForRef(t);
2006
+ return this.apps.push(i), r || (this.activeAppId = t, ne._setActiveAppId(t)), this.notify(), this.waitForRef(t);
1980
2007
  }
1981
2008
  waitForRef(t) {
1982
2009
  return new Promise((n) => {
@@ -2013,7 +2040,7 @@ class Xt {
2013
2040
  const r = this.apps[n];
2014
2041
  if (r.ref && (r.ref = void 0), this.apps.splice(n, 1), this.activeAppId === t) {
2015
2042
  const o = window.innerWidth >= 768;
2016
- this.activeAppId = o && this.apps.length > 0 ? this.apps[this.apps.length - 1].appId : null, te._setActiveAppId(this.activeAppId);
2043
+ this.activeAppId = o && this.apps.length > 0 ? this.apps[this.apps.length - 1].appId : null, ne._setActiveAppId(this.activeAppId);
2017
2044
  }
2018
2045
  this.notify();
2019
2046
  }
@@ -2025,7 +2052,7 @@ class Xt {
2025
2052
  console.warn(`Cannot activate app "${t}": not running`);
2026
2053
  return;
2027
2054
  }
2028
- this.activeAppId !== t && (this.activeAppId = t, this.notify(), te._setActiveAppId(t));
2055
+ this.activeAppId !== t && (this.activeAppId = t, this.notify(), ne._setActiveAppId(t));
2029
2056
  }
2030
2057
  /**
2031
2058
  * Toggle an app: if active, deactivate; if inactive, activate.
@@ -2043,7 +2070,7 @@ class Xt {
2043
2070
  * Get the currently active app definition.
2044
2071
  */
2045
2072
  getActiveApp() {
2046
- return this.activeAppId ? ge.get(this.activeAppId) ?? null : null;
2073
+ return this.activeAppId ? me.get(this.activeAppId) ?? null : null;
2047
2074
  }
2048
2075
  /**
2049
2076
  * Get all running apps.
@@ -2069,14 +2096,14 @@ class Xt {
2069
2096
  this.listeners.forEach((t) => t());
2070
2097
  }
2071
2098
  }
2072
- const q = new Xt(), tt = be(null);
2073
- function Jt() {
2074
- const e = ce(tt);
2099
+ const Q = new Qt(), nt = ge(null);
2100
+ function Zt() {
2101
+ const e = ce(nt);
2075
2102
  if (!e)
2076
2103
  throw new Error("useApp must be used inside an App");
2077
2104
  return e;
2078
2105
  }
2079
- function Qt({ size: e = 16 }) {
2106
+ function en({ size: e = 16 }) {
2080
2107
  return /* @__PURE__ */ N(
2081
2108
  "svg",
2082
2109
  {
@@ -2095,7 +2122,7 @@ function Qt({ size: e = 16 }) {
2095
2122
  }
2096
2123
  );
2097
2124
  }
2098
- function Zt({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
2125
+ function tn({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
2099
2126
  return /* @__PURE__ */ N("div", { className: "nc-app-title-bar", children: [
2100
2127
  /* @__PURE__ */ N("div", { className: "nc-app-title-bar-left", children: [
2101
2128
  n && !o && /* @__PURE__ */ s(
@@ -2105,18 +2132,18 @@ function Zt({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o })
2105
2132
  onClick: n,
2106
2133
  title: "Back",
2107
2134
  "aria-label": "Go back",
2108
- children: /* @__PURE__ */ s(Qt, { size: 16 })
2135
+ children: /* @__PURE__ */ s(en, { size: 16 })
2109
2136
  }
2110
2137
  ),
2111
2138
  /* @__PURE__ */ s("span", { className: "nc-app-title-bar-title", children: e })
2112
2139
  ] }),
2113
2140
  /* @__PURE__ */ N("div", { className: "nc-app-title-bar-right", children: [
2114
2141
  r && /* @__PURE__ */ s("div", { className: "nc-app-title-bar-toolbar", children: r }),
2115
- /* @__PURE__ */ s(Qe, { onClick: t, "aria-label": "Close application" })
2142
+ /* @__PURE__ */ s(Ze, { onClick: t, "aria-label": "Close application" })
2116
2143
  ] })
2117
2144
  ] });
2118
2145
  }
2119
- class en extends Le.Component {
2146
+ class nn extends ze.Component {
2120
2147
  constructor(t) {
2121
2148
  super(t), this.state = { hasError: !1 };
2122
2149
  }
@@ -2127,31 +2154,15 @@ class en extends Le.Component {
2127
2154
  console.error(`Error loading app ${this.props.appId}:`, t, n);
2128
2155
  }
2129
2156
  render() {
2130
- return this.state.hasError ? /* @__PURE__ */ N(
2131
- "div",
2132
- {
2133
- style: {
2134
- display: "flex",
2135
- alignItems: "center",
2136
- justifyContent: "center",
2137
- flex: 1,
2138
- flexDirection: "column",
2139
- gap: "16px",
2140
- padding: "20px",
2141
- textAlign: "center",
2142
- color: "var(--text-secondary)"
2143
- },
2144
- children: [
2145
- /* @__PURE__ */ s("div", { children: "Failed to load app" }),
2146
- this.state.error && /* @__PURE__ */ s("div", { style: { fontSize: "12px", opacity: 0.7 }, children: this.state.error.message })
2147
- ]
2148
- }
2149
- ) : this.props.children;
2157
+ return this.state.hasError ? /* @__PURE__ */ N("div", { className: "nc-app-error", children: [
2158
+ /* @__PURE__ */ s("div", { children: "Failed to load app" }),
2159
+ this.state.error && /* @__PURE__ */ s("div", { style: { fontSize: "12px", opacity: 0.7 }, children: this.state.error.message })
2160
+ ] }) : this.props.children;
2150
2161
  }
2151
2162
  }
2152
- function nt({ appId: e, isActive: t, onClose: n }) {
2153
- const { t: r } = ne(), o = ge.get(e), [i, a] = T(""), [c, l] = T(null), [u, f] = T(null), [b, d] = T(!1), [m, A] = T(!1);
2154
- Le.useEffect(() => {
2163
+ function rt({ appId: e, isActive: t, onClose: n }) {
2164
+ const { t: r } = re(), o = me.get(e), [i, a] = R(""), [c, l] = R(null), [u, f] = R(null), [b, d] = R(!1), [m, A] = R(!1);
2165
+ ze.useEffect(() => {
2155
2166
  o != null && o.titleKey && a(r(o.titleKey));
2156
2167
  }, [o, r]);
2157
2168
  const v = Y((S) => {
@@ -2168,7 +2179,7 @@ function nt({ appId: e, isActive: t, onClose: n }) {
2168
2179
  d(S);
2169
2180
  }, []), x = Y((S) => {
2170
2181
  A(S);
2171
- }, []), $ = Ce(() => ({
2182
+ }, []), C = Me(() => ({
2172
2183
  setTitle: v,
2173
2184
  setBackHandler: w,
2174
2185
  clearBackHandler: y,
@@ -2180,19 +2191,14 @@ function nt({ appId: e, isActive: t, onClose: n }) {
2180
2191
  }), [v, w, y, h, p, g, x, n]);
2181
2192
  if (!o)
2182
2193
  return null;
2183
- const R = o.component, E = !o.hideTitleBar && !m;
2194
+ const T = o.component, E = !o.hideTitleBar && !m;
2184
2195
  return /* @__PURE__ */ N(
2185
2196
  "div",
2186
2197
  {
2187
- style: {
2188
- display: t ? "flex" : "none",
2189
- flexDirection: "column",
2190
- flex: 1,
2191
- minHeight: 0
2192
- },
2198
+ className: `nc-app-container${t ? "" : " nc-hidden"}`,
2193
2199
  children: [
2194
2200
  E && /* @__PURE__ */ s(
2195
- Zt,
2201
+ tn,
2196
2202
  {
2197
2203
  title: i,
2198
2204
  onClose: n,
@@ -2204,32 +2210,16 @@ function nt({ appId: e, isActive: t, onClose: n }) {
2204
2210
  /* @__PURE__ */ s(
2205
2211
  "div",
2206
2212
  {
2207
- className: E ? "nc-app-content-wrapper" : "",
2213
+ className: "nc-app-content-wrapper",
2208
2214
  style: {
2209
2215
  padding: o.padding,
2210
- flex: 1,
2211
- minHeight: 0,
2212
- display: "flex",
2213
- flexDirection: "column",
2214
- backgroundColor: "var(--nc-bg-tertiary)",
2215
- position: "relative"
2216
+ overflowY: E ? "auto" : void 0
2216
2217
  },
2217
- children: /* @__PURE__ */ s(tt.Provider, { value: $, children: /* @__PURE__ */ s(en, { appId: e, children: /* @__PURE__ */ s(
2218
- Ct,
2218
+ children: /* @__PURE__ */ s(nt.Provider, { value: C, children: /* @__PURE__ */ s(nn, { appId: e, children: /* @__PURE__ */ s(
2219
+ Mt,
2219
2220
  {
2220
- fallback: /* @__PURE__ */ s(
2221
- "div",
2222
- {
2223
- style: {
2224
- display: "flex",
2225
- alignItems: "center",
2226
- justifyContent: "center",
2227
- flex: 1
2228
- },
2229
- children: /* @__PURE__ */ s(Je, {})
2230
- }
2231
- ),
2232
- children: /* @__PURE__ */ s(R, {})
2221
+ fallback: /* @__PURE__ */ s("div", { className: "nc-app-loading", children: /* @__PURE__ */ s(Qe, {}) }),
2222
+ children: /* @__PURE__ */ s(T, {})
2233
2223
  }
2234
2224
  ) }) })
2235
2225
  }
@@ -2238,21 +2228,21 @@ function nt({ appId: e, isActive: t, onClose: n }) {
2238
2228
  }
2239
2229
  );
2240
2230
  }
2241
- const Ae = 768, Se = 1024, rt = {
2231
+ const Ce = 768, $e = 1024, ot = {
2242
2232
  isMobile: !1,
2243
2233
  isTablet: !1,
2244
2234
  isDesktop: !0,
2245
2235
  width: typeof window < "u" ? window.innerWidth : 1024,
2246
2236
  height: typeof window < "u" ? window.innerHeight : 768
2247
- }, ot = be(rt);
2248
- function mr({ children: e }) {
2249
- const [t, n] = T(() => {
2250
- if (typeof window > "u") return rt;
2237
+ }, st = ge(ot);
2238
+ function br({ children: e }) {
2239
+ const [t, n] = R(() => {
2240
+ if (typeof window > "u") return ot;
2251
2241
  const r = window.innerWidth, o = window.innerHeight;
2252
2242
  return {
2253
- isMobile: r < Ae,
2254
- isTablet: r >= Ae && r < Se,
2255
- isDesktop: r >= Se,
2243
+ isMobile: r < Ce,
2244
+ isTablet: r >= Ce && r < $e,
2245
+ isDesktop: r >= $e,
2256
2246
  width: r,
2257
2247
  height: o
2258
2248
  };
@@ -2261,54 +2251,54 @@ function mr({ children: e }) {
2261
2251
  const r = () => {
2262
2252
  const o = window.innerWidth, i = window.innerHeight;
2263
2253
  n({
2264
- isMobile: o < Ae,
2265
- isTablet: o >= Ae && o < Se,
2266
- isDesktop: o >= Se,
2254
+ isMobile: o < Ce,
2255
+ isTablet: o >= Ce && o < $e,
2256
+ isDesktop: o >= $e,
2267
2257
  width: o,
2268
2258
  height: i
2269
2259
  });
2270
2260
  };
2271
2261
  return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
2272
- }, []), /* @__PURE__ */ s(ot.Provider, { value: t, children: e });
2262
+ }, []), /* @__PURE__ */ s(st.Provider, { value: t, children: e });
2273
2263
  }
2274
- function st() {
2275
- return ce(ot);
2264
+ function it() {
2265
+ return ce(st);
2276
2266
  }
2277
- const Pe = "-", tn = (e) => {
2278
- const t = rn(e), {
2267
+ const Be = "-", rn = (e) => {
2268
+ const t = sn(e), {
2279
2269
  conflictingClassGroups: n,
2280
2270
  conflictingClassGroupModifiers: r
2281
2271
  } = e;
2282
2272
  return {
2283
2273
  getClassGroupId: (a) => {
2284
- const c = a.split(Pe);
2285
- return c[0] === "" && c.length !== 1 && c.shift(), it(c, t) || nn(a);
2274
+ const c = a.split(Be);
2275
+ return c[0] === "" && c.length !== 1 && c.shift(), ct(c, t) || on(a);
2286
2276
  },
2287
2277
  getConflictingClassGroupIds: (a, c) => {
2288
2278
  const l = n[a] || [];
2289
2279
  return c && r[a] ? [...l, ...r[a]] : l;
2290
2280
  }
2291
2281
  };
2292
- }, it = (e, t) => {
2282
+ }, ct = (e, t) => {
2293
2283
  var a;
2294
2284
  if (e.length === 0)
2295
2285
  return t.classGroupId;
2296
- const n = e[0], r = t.nextPart.get(n), o = r ? it(e.slice(1), r) : void 0;
2286
+ const n = e[0], r = t.nextPart.get(n), o = r ? ct(e.slice(1), r) : void 0;
2297
2287
  if (o)
2298
2288
  return o;
2299
2289
  if (t.validators.length === 0)
2300
2290
  return;
2301
- const i = e.join(Pe);
2291
+ const i = e.join(Be);
2302
2292
  return (a = t.validators.find(({
2303
2293
  validator: c
2304
2294
  }) => c(i))) == null ? void 0 : a.classGroupId;
2305
- }, qe = /^\[(.+)\]$/, nn = (e) => {
2306
- if (qe.test(e)) {
2307
- const t = qe.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
2295
+ }, Xe = /^\[(.+)\]$/, on = (e) => {
2296
+ if (Xe.test(e)) {
2297
+ const t = Xe.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
2308
2298
  if (n)
2309
2299
  return "arbitrary.." + n;
2310
2300
  }
2311
- }, rn = (e) => {
2301
+ }, sn = (e) => {
2312
2302
  const {
2313
2303
  theme: t,
2314
2304
  prefix: n
@@ -2316,19 +2306,19 @@ const Pe = "-", tn = (e) => {
2316
2306
  nextPart: /* @__PURE__ */ new Map(),
2317
2307
  validators: []
2318
2308
  };
2319
- return sn(Object.entries(e.classGroups), n).forEach(([i, a]) => {
2320
- Re(a, r, i, t);
2309
+ return an(Object.entries(e.classGroups), n).forEach(([i, a]) => {
2310
+ Ee(a, r, i, t);
2321
2311
  }), r;
2322
- }, Re = (e, t, n, r) => {
2312
+ }, Ee = (e, t, n, r) => {
2323
2313
  e.forEach((o) => {
2324
2314
  if (typeof o == "string") {
2325
- const i = o === "" ? t : Xe(t, o);
2315
+ const i = o === "" ? t : Je(t, o);
2326
2316
  i.classGroupId = n;
2327
2317
  return;
2328
2318
  }
2329
2319
  if (typeof o == "function") {
2330
- if (on(o)) {
2331
- Re(o(r), t, n, r);
2320
+ if (cn(o)) {
2321
+ Ee(o(r), t, n, r);
2332
2322
  return;
2333
2323
  }
2334
2324
  t.validators.push({
@@ -2338,21 +2328,21 @@ const Pe = "-", tn = (e) => {
2338
2328
  return;
2339
2329
  }
2340
2330
  Object.entries(o).forEach(([i, a]) => {
2341
- Re(a, Xe(t, i), n, r);
2331
+ Ee(a, Je(t, i), n, r);
2342
2332
  });
2343
2333
  });
2344
- }, Xe = (e, t) => {
2334
+ }, Je = (e, t) => {
2345
2335
  let n = e;
2346
- return t.split(Pe).forEach((r) => {
2336
+ return t.split(Be).forEach((r) => {
2347
2337
  n.nextPart.has(r) || n.nextPart.set(r, {
2348
2338
  nextPart: /* @__PURE__ */ new Map(),
2349
2339
  validators: []
2350
2340
  }), n = n.nextPart.get(r);
2351
2341
  }), n;
2352
- }, on = (e) => e.isThemeGetter, sn = (e, t) => t ? e.map(([n, r]) => {
2342
+ }, cn = (e) => e.isThemeGetter, an = (e, t) => t ? e.map(([n, r]) => {
2353
2343
  const o = r.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([a, c]) => [t + a, c])) : i);
2354
2344
  return [n, o];
2355
- }) : e, cn = (e) => {
2345
+ }) : e, ln = (e) => {
2356
2346
  if (e < 1)
2357
2347
  return {
2358
2348
  get: () => {
@@ -2376,7 +2366,7 @@ const Pe = "-", tn = (e) => {
2376
2366
  n.has(i) ? n.set(i, a) : o(i, a);
2377
2367
  }
2378
2368
  };
2379
- }, ct = "!", an = (e) => {
2369
+ }, at = "!", dn = (e) => {
2380
2370
  const {
2381
2371
  separator: t,
2382
2372
  experimentalParseClassName: n
@@ -2397,7 +2387,7 @@ const Pe = "-", tn = (e) => {
2397
2387
  }
2398
2388
  y === "[" ? u++ : y === "]" && u--;
2399
2389
  }
2400
- const d = l.length === 0 ? c : c.substring(f), m = d.startsWith(ct), A = m ? d.substring(1) : d, v = b && b > f ? b - f : void 0;
2390
+ const d = l.length === 0 ? c : c.substring(f), m = d.startsWith(at), A = m ? d.substring(1) : d, v = b && b > f ? b - f : void 0;
2401
2391
  return {
2402
2392
  modifiers: l,
2403
2393
  hasImportantModifier: m,
@@ -2409,7 +2399,7 @@ const Pe = "-", tn = (e) => {
2409
2399
  className: c,
2410
2400
  parseClassName: a
2411
2401
  }) : a;
2412
- }, ln = (e) => {
2402
+ }, un = (e) => {
2413
2403
  if (e.length <= 1)
2414
2404
  return e;
2415
2405
  const t = [];
@@ -2417,16 +2407,16 @@ const Pe = "-", tn = (e) => {
2417
2407
  return e.forEach((r) => {
2418
2408
  r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r);
2419
2409
  }), t.push(...n.sort()), t;
2420
- }, dn = (e) => ({
2421
- cache: cn(e.cacheSize),
2422
- parseClassName: an(e),
2423
- ...tn(e)
2424
- }), un = /\s+/, pn = (e, t) => {
2410
+ }, pn = (e) => ({
2411
+ cache: ln(e.cacheSize),
2412
+ parseClassName: dn(e),
2413
+ ...rn(e)
2414
+ }), fn = /\s+/, hn = (e, t) => {
2425
2415
  const {
2426
2416
  parseClassName: n,
2427
2417
  getClassGroupId: r,
2428
2418
  getConflictingClassGroupIds: o
2429
- } = t, i = [], a = e.trim().split(un);
2419
+ } = t, i = [], a = e.trim().split(fn);
2430
2420
  let c = "";
2431
2421
  for (let l = a.length - 1; l >= 0; l -= 1) {
2432
2422
  const u = a[l], {
@@ -2447,7 +2437,7 @@ const Pe = "-", tn = (e) => {
2447
2437
  }
2448
2438
  A = !1;
2449
2439
  }
2450
- const w = ln(f).join(":"), y = b ? w + ct : w, h = y + v;
2440
+ const w = un(f).join(":"), y = b ? w + at : w, h = y + v;
2451
2441
  if (i.includes(h))
2452
2442
  continue;
2453
2443
  i.push(h);
@@ -2460,79 +2450,79 @@ const Pe = "-", tn = (e) => {
2460
2450
  }
2461
2451
  return c;
2462
2452
  };
2463
- function fn() {
2453
+ function mn() {
2464
2454
  let e = 0, t, n, r = "";
2465
2455
  for (; e < arguments.length; )
2466
- (t = arguments[e++]) && (n = at(t)) && (r && (r += " "), r += n);
2456
+ (t = arguments[e++]) && (n = lt(t)) && (r && (r += " "), r += n);
2467
2457
  return r;
2468
2458
  }
2469
- const at = (e) => {
2459
+ const lt = (e) => {
2470
2460
  if (typeof e == "string")
2471
2461
  return e;
2472
2462
  let t, n = "";
2473
2463
  for (let r = 0; r < e.length; r++)
2474
- e[r] && (t = at(e[r])) && (n && (n += " "), n += t);
2464
+ e[r] && (t = lt(e[r])) && (n && (n += " "), n += t);
2475
2465
  return n;
2476
2466
  };
2477
- function hn(e, ...t) {
2467
+ function gn(e, ...t) {
2478
2468
  let n, r, o, i = a;
2479
2469
  function a(l) {
2480
2470
  const u = t.reduce((f, b) => b(f), e());
2481
- return n = dn(u), r = n.cache.get, o = n.cache.set, i = c, c(l);
2471
+ return n = pn(u), r = n.cache.get, o = n.cache.set, i = c, c(l);
2482
2472
  }
2483
2473
  function c(l) {
2484
2474
  const u = r(l);
2485
2475
  if (u)
2486
2476
  return u;
2487
- const f = pn(l, n);
2477
+ const f = hn(l, n);
2488
2478
  return o(l, f), f;
2489
2479
  }
2490
2480
  return function() {
2491
- return i(fn.apply(null, arguments));
2481
+ return i(mn.apply(null, arguments));
2492
2482
  };
2493
2483
  }
2494
- const W = (e) => {
2484
+ const O = (e) => {
2495
2485
  const t = (n) => n[e] || [];
2496
2486
  return t.isThemeGetter = !0, t;
2497
- }, lt = /^\[(?:([a-z-]+):)?(.+)\]$/i, mn = /^\d+\/\d+$/, gn = /* @__PURE__ */ new Set(["px", "full", "screen"]), bn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, vn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, wn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, yn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, xn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Z = (e) => me(e) || gn.has(e) || mn.test(e), se = (e) => ve(e, "length", In), me = (e) => !!e && !Number.isNaN(Number(e)), $e = (e) => ve(e, "number", me), we = (e) => !!e && Number.isInteger(Number(e)), kn = (e) => e.endsWith("%") && me(e.slice(0, -1)), M = (e) => lt.test(e), ie = (e) => bn.test(e), Nn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), An = (e) => ve(e, Nn, dt), Sn = (e) => ve(e, "position", dt), Cn = /* @__PURE__ */ new Set(["image", "url"]), $n = (e) => ve(e, Cn, Tn), Mn = (e) => ve(e, "", Rn), ye = () => !0, ve = (e, t, n) => {
2498
- const r = lt.exec(e);
2487
+ }, dt = /^\[(?:([a-z-]+):)?(.+)\]$/i, bn = /^\d+\/\d+$/, vn = /* @__PURE__ */ new Set(["px", "full", "screen"]), wn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, yn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, kn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Nn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => he(e) || vn.has(e) || bn.test(e), se = (e) => be(e, "length", Tn), he = (e) => !!e && !Number.isNaN(Number(e)), Ie = (e) => be(e, "number", he), xe = (e) => !!e && Number.isInteger(Number(e)), An = (e) => e.endsWith("%") && he(e.slice(0, -1)), M = (e) => dt.test(e), ie = (e) => wn.test(e), Sn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Cn = (e) => be(e, Sn, ut), $n = (e) => be(e, "position", ut), Mn = /* @__PURE__ */ new Set(["image", "url"]), In = (e) => be(e, Mn, Ln), Rn = (e) => be(e, "", En), ke = () => !0, be = (e, t, n) => {
2488
+ const r = dt.exec(e);
2499
2489
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
2500
- }, In = (e) => (
2490
+ }, Tn = (e) => (
2501
2491
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
2502
2492
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2503
2493
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2504
- vn.test(e) && !wn.test(e)
2505
- ), dt = () => !1, Rn = (e) => yn.test(e), Tn = (e) => xn.test(e), En = () => {
2506
- const e = W("colors"), t = W("spacing"), n = W("blur"), r = W("brightness"), o = W("borderColor"), i = W("borderRadius"), a = W("borderSpacing"), c = W("borderWidth"), l = W("contrast"), u = W("grayscale"), f = W("hueRotate"), b = W("invert"), d = W("gap"), m = W("gradientColorStops"), A = W("gradientColorStopPositions"), v = W("inset"), w = W("margin"), y = W("opacity"), h = W("padding"), p = W("saturate"), g = W("scale"), x = W("sepia"), $ = W("skew"), R = W("space"), E = W("translate"), S = () => ["auto", "contain", "none"], L = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", M, t], C = () => [M, t], z = () => ["", Z, se], H = () => ["auto", me, M], j = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["solid", "dashed", "dotted", "double", "none"], X = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], _ = () => ["", "0", M], F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [me, M];
2494
+ yn.test(e) && !xn.test(e)
2495
+ ), ut = () => !1, En = (e) => kn.test(e), Ln = (e) => Nn.test(e), Pn = () => {
2496
+ const e = O("colors"), t = O("spacing"), n = O("blur"), r = O("brightness"), o = O("borderColor"), i = O("borderRadius"), a = O("borderSpacing"), c = O("borderWidth"), l = O("contrast"), u = O("grayscale"), f = O("hueRotate"), b = O("invert"), d = O("gap"), m = O("gradientColorStops"), A = O("gradientColorStopPositions"), v = O("inset"), w = O("margin"), y = O("opacity"), h = O("padding"), p = O("saturate"), g = O("scale"), x = O("sepia"), C = O("skew"), T = O("space"), E = O("translate"), S = () => ["auto", "contain", "none"], L = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", M, t], $ = () => [M, t], P = () => ["", ee, se], H = () => ["auto", he, M], ae = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], X = () => ["solid", "dashed", "dotted", "double", "none"], K = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], _ = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], U = () => ["", "0", M], j = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], z = () => [he, M];
2507
2497
  return {
2508
2498
  cacheSize: 500,
2509
2499
  separator: ":",
2510
2500
  theme: {
2511
- colors: [ye],
2512
- spacing: [Z, se],
2501
+ colors: [ke],
2502
+ spacing: [ee, se],
2513
2503
  blur: ["none", "", ie, M],
2514
- brightness: P(),
2504
+ brightness: z(),
2515
2505
  borderColor: [e],
2516
2506
  borderRadius: ["none", "", "full", ie, M],
2517
- borderSpacing: C(),
2518
- borderWidth: z(),
2519
- contrast: P(),
2520
- grayscale: _(),
2521
- hueRotate: P(),
2522
- invert: _(),
2523
- gap: C(),
2507
+ borderSpacing: $(),
2508
+ borderWidth: P(),
2509
+ contrast: z(),
2510
+ grayscale: U(),
2511
+ hueRotate: z(),
2512
+ invert: U(),
2513
+ gap: $(),
2524
2514
  gradientColorStops: [e],
2525
- gradientColorStopPositions: [kn, se],
2515
+ gradientColorStopPositions: [An, se],
2526
2516
  inset: k(),
2527
2517
  margin: k(),
2528
- opacity: P(),
2529
- padding: C(),
2530
- saturate: P(),
2531
- scale: P(),
2532
- sepia: _(),
2533
- skew: P(),
2534
- space: C(),
2535
- translate: C()
2518
+ opacity: z(),
2519
+ padding: $(),
2520
+ saturate: z(),
2521
+ scale: z(),
2522
+ sepia: U(),
2523
+ skew: z(),
2524
+ space: $(),
2525
+ translate: $()
2536
2526
  },
2537
2527
  classGroups: {
2538
2528
  // Layout
@@ -2560,14 +2550,14 @@ const W = (e) => {
2560
2550
  * @see https://tailwindcss.com/docs/break-after
2561
2551
  */
2562
2552
  "break-after": [{
2563
- "break-after": F()
2553
+ "break-after": j()
2564
2554
  }],
2565
2555
  /**
2566
2556
  * Break Before
2567
2557
  * @see https://tailwindcss.com/docs/break-before
2568
2558
  */
2569
2559
  "break-before": [{
2570
- "break-before": F()
2560
+ "break-before": j()
2571
2561
  }],
2572
2562
  /**
2573
2563
  * Break Inside
@@ -2626,7 +2616,7 @@ const W = (e) => {
2626
2616
  * @see https://tailwindcss.com/docs/object-position
2627
2617
  */
2628
2618
  "object-position": [{
2629
- object: [...j(), M]
2619
+ object: [...ae(), M]
2630
2620
  }],
2631
2621
  /**
2632
2622
  * Overflow
@@ -2748,7 +2738,7 @@ const W = (e) => {
2748
2738
  * @see https://tailwindcss.com/docs/z-index
2749
2739
  */
2750
2740
  z: [{
2751
- z: ["auto", we, M]
2741
+ z: ["auto", xe, M]
2752
2742
  }],
2753
2743
  // Flexbox and Grid
2754
2744
  /**
@@ -2784,28 +2774,28 @@ const W = (e) => {
2784
2774
  * @see https://tailwindcss.com/docs/flex-grow
2785
2775
  */
2786
2776
  grow: [{
2787
- grow: _()
2777
+ grow: U()
2788
2778
  }],
2789
2779
  /**
2790
2780
  * Flex Shrink
2791
2781
  * @see https://tailwindcss.com/docs/flex-shrink
2792
2782
  */
2793
2783
  shrink: [{
2794
- shrink: _()
2784
+ shrink: U()
2795
2785
  }],
2796
2786
  /**
2797
2787
  * Order
2798
2788
  * @see https://tailwindcss.com/docs/order
2799
2789
  */
2800
2790
  order: [{
2801
- order: ["first", "last", "none", we, M]
2791
+ order: ["first", "last", "none", xe, M]
2802
2792
  }],
2803
2793
  /**
2804
2794
  * Grid Template Columns
2805
2795
  * @see https://tailwindcss.com/docs/grid-template-columns
2806
2796
  */
2807
2797
  "grid-cols": [{
2808
- "grid-cols": [ye]
2798
+ "grid-cols": [ke]
2809
2799
  }],
2810
2800
  /**
2811
2801
  * Grid Column Start / End
@@ -2813,7 +2803,7 @@ const W = (e) => {
2813
2803
  */
2814
2804
  "col-start-end": [{
2815
2805
  col: ["auto", {
2816
- span: ["full", we, M]
2806
+ span: ["full", xe, M]
2817
2807
  }, M]
2818
2808
  }],
2819
2809
  /**
@@ -2835,7 +2825,7 @@ const W = (e) => {
2835
2825
  * @see https://tailwindcss.com/docs/grid-template-rows
2836
2826
  */
2837
2827
  "grid-rows": [{
2838
- "grid-rows": [ye]
2828
+ "grid-rows": [ke]
2839
2829
  }],
2840
2830
  /**
2841
2831
  * Grid Row Start / End
@@ -2843,7 +2833,7 @@ const W = (e) => {
2843
2833
  */
2844
2834
  "row-start-end": [{
2845
2835
  row: ["auto", {
2846
- span: [we, M]
2836
+ span: [xe, M]
2847
2837
  }, M]
2848
2838
  }],
2849
2839
  /**
@@ -2907,7 +2897,7 @@ const W = (e) => {
2907
2897
  * @see https://tailwindcss.com/docs/justify-content
2908
2898
  */
2909
2899
  "justify-content": [{
2910
- justify: ["normal", ...U()]
2900
+ justify: ["normal", ..._()]
2911
2901
  }],
2912
2902
  /**
2913
2903
  * Justify Items
@@ -2928,7 +2918,7 @@ const W = (e) => {
2928
2918
  * @see https://tailwindcss.com/docs/align-content
2929
2919
  */
2930
2920
  "align-content": [{
2931
- content: ["normal", ...U(), "baseline"]
2921
+ content: ["normal", ..._(), "baseline"]
2932
2922
  }],
2933
2923
  /**
2934
2924
  * Align Items
@@ -2949,7 +2939,7 @@ const W = (e) => {
2949
2939
  * @see https://tailwindcss.com/docs/place-content
2950
2940
  */
2951
2941
  "place-content": [{
2952
- "place-content": [...U(), "baseline"]
2942
+ "place-content": [..._(), "baseline"]
2953
2943
  }],
2954
2944
  /**
2955
2945
  * Place Items
@@ -3097,7 +3087,7 @@ const W = (e) => {
3097
3087
  * @see https://tailwindcss.com/docs/space
3098
3088
  */
3099
3089
  "space-x": [{
3100
- "space-x": [R]
3090
+ "space-x": [T]
3101
3091
  }],
3102
3092
  /**
3103
3093
  * Space Between X Reverse
@@ -3109,7 +3099,7 @@ const W = (e) => {
3109
3099
  * @see https://tailwindcss.com/docs/space
3110
3100
  */
3111
3101
  "space-y": [{
3112
- "space-y": [R]
3102
+ "space-y": [T]
3113
3103
  }],
3114
3104
  /**
3115
3105
  * Space Between Y Reverse
@@ -3191,14 +3181,14 @@ const W = (e) => {
3191
3181
  * @see https://tailwindcss.com/docs/font-weight
3192
3182
  */
3193
3183
  "font-weight": [{
3194
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", $e]
3184
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Ie]
3195
3185
  }],
3196
3186
  /**
3197
3187
  * Font Family
3198
3188
  * @see https://tailwindcss.com/docs/font-family
3199
3189
  */
3200
3190
  "font-family": [{
3201
- font: [ye]
3191
+ font: [ke]
3202
3192
  }],
3203
3193
  /**
3204
3194
  * Font Variant Numeric
@@ -3242,14 +3232,14 @@ const W = (e) => {
3242
3232
  * @see https://tailwindcss.com/docs/line-clamp
3243
3233
  */
3244
3234
  "line-clamp": [{
3245
- "line-clamp": ["none", me, $e]
3235
+ "line-clamp": ["none", he, Ie]
3246
3236
  }],
3247
3237
  /**
3248
3238
  * Line Height
3249
3239
  * @see https://tailwindcss.com/docs/line-height
3250
3240
  */
3251
3241
  leading: [{
3252
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Z, M]
3242
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ee, M]
3253
3243
  }],
3254
3244
  /**
3255
3245
  * List Style Image
@@ -3318,21 +3308,21 @@ const W = (e) => {
3318
3308
  * @see https://tailwindcss.com/docs/text-decoration-style
3319
3309
  */
3320
3310
  "text-decoration-style": [{
3321
- decoration: [...G(), "wavy"]
3311
+ decoration: [...X(), "wavy"]
3322
3312
  }],
3323
3313
  /**
3324
3314
  * Text Decoration Thickness
3325
3315
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3326
3316
  */
3327
3317
  "text-decoration-thickness": [{
3328
- decoration: ["auto", "from-font", Z, se]
3318
+ decoration: ["auto", "from-font", ee, se]
3329
3319
  }],
3330
3320
  /**
3331
3321
  * Text Underline Offset
3332
3322
  * @see https://tailwindcss.com/docs/text-underline-offset
3333
3323
  */
3334
3324
  "underline-offset": [{
3335
- "underline-offset": ["auto", Z, M]
3325
+ "underline-offset": ["auto", ee, M]
3336
3326
  }],
3337
3327
  /**
3338
3328
  * Text Decoration Color
@@ -3363,7 +3353,7 @@ const W = (e) => {
3363
3353
  * @see https://tailwindcss.com/docs/text-indent
3364
3354
  */
3365
3355
  indent: [{
3366
- indent: C()
3356
+ indent: $()
3367
3357
  }],
3368
3358
  /**
3369
3359
  * Vertical Alignment
@@ -3435,7 +3425,7 @@ const W = (e) => {
3435
3425
  * @see https://tailwindcss.com/docs/background-position
3436
3426
  */
3437
3427
  "bg-position": [{
3438
- bg: [...j(), Sn]
3428
+ bg: [...ae(), $n]
3439
3429
  }],
3440
3430
  /**
3441
3431
  * Background Repeat
@@ -3451,7 +3441,7 @@ const W = (e) => {
3451
3441
  * @see https://tailwindcss.com/docs/background-size
3452
3442
  */
3453
3443
  "bg-size": [{
3454
- bg: ["auto", "cover", "contain", An]
3444
+ bg: ["auto", "cover", "contain", Cn]
3455
3445
  }],
3456
3446
  /**
3457
3447
  * Background Image
@@ -3460,7 +3450,7 @@ const W = (e) => {
3460
3450
  "bg-image": [{
3461
3451
  bg: ["none", {
3462
3452
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
3463
- }, $n]
3453
+ }, In]
3464
3454
  }],
3465
3455
  /**
3466
3456
  * Background Color
@@ -3692,7 +3682,7 @@ const W = (e) => {
3692
3682
  * @see https://tailwindcss.com/docs/border-style
3693
3683
  */
3694
3684
  "border-style": [{
3695
- border: [...G(), "hidden"]
3685
+ border: [...X(), "hidden"]
3696
3686
  }],
3697
3687
  /**
3698
3688
  * Divide Width X
@@ -3730,7 +3720,7 @@ const W = (e) => {
3730
3720
  * @see https://tailwindcss.com/docs/divide-style
3731
3721
  */
3732
3722
  "divide-style": [{
3733
- divide: G()
3723
+ divide: X()
3734
3724
  }],
3735
3725
  /**
3736
3726
  * Border Color
@@ -3807,21 +3797,21 @@ const W = (e) => {
3807
3797
  * @see https://tailwindcss.com/docs/outline-style
3808
3798
  */
3809
3799
  "outline-style": [{
3810
- outline: ["", ...G()]
3800
+ outline: ["", ...X()]
3811
3801
  }],
3812
3802
  /**
3813
3803
  * Outline Offset
3814
3804
  * @see https://tailwindcss.com/docs/outline-offset
3815
3805
  */
3816
3806
  "outline-offset": [{
3817
- "outline-offset": [Z, M]
3807
+ "outline-offset": [ee, M]
3818
3808
  }],
3819
3809
  /**
3820
3810
  * Outline Width
3821
3811
  * @see https://tailwindcss.com/docs/outline-width
3822
3812
  */
3823
3813
  "outline-w": [{
3824
- outline: [Z, se]
3814
+ outline: [ee, se]
3825
3815
  }],
3826
3816
  /**
3827
3817
  * Outline Color
@@ -3835,7 +3825,7 @@ const W = (e) => {
3835
3825
  * @see https://tailwindcss.com/docs/ring-width
3836
3826
  */
3837
3827
  "ring-w": [{
3838
- ring: z()
3828
+ ring: P()
3839
3829
  }],
3840
3830
  /**
3841
3831
  * Ring Width Inset
@@ -3861,7 +3851,7 @@ const W = (e) => {
3861
3851
  * @see https://tailwindcss.com/docs/ring-offset-width
3862
3852
  */
3863
3853
  "ring-offset-w": [{
3864
- "ring-offset": [Z, se]
3854
+ "ring-offset": [ee, se]
3865
3855
  }],
3866
3856
  /**
3867
3857
  * Ring Offset Color
@@ -3876,14 +3866,14 @@ const W = (e) => {
3876
3866
  * @see https://tailwindcss.com/docs/box-shadow
3877
3867
  */
3878
3868
  shadow: [{
3879
- shadow: ["", "inner", "none", ie, Mn]
3869
+ shadow: ["", "inner", "none", ie, Rn]
3880
3870
  }],
3881
3871
  /**
3882
3872
  * Box Shadow Color
3883
3873
  * @see https://tailwindcss.com/docs/box-shadow-color
3884
3874
  */
3885
3875
  "shadow-color": [{
3886
- shadow: [ye]
3876
+ shadow: [ke]
3887
3877
  }],
3888
3878
  /**
3889
3879
  * Opacity
@@ -3897,14 +3887,14 @@ const W = (e) => {
3897
3887
  * @see https://tailwindcss.com/docs/mix-blend-mode
3898
3888
  */
3899
3889
  "mix-blend": [{
3900
- "mix-blend": [...X(), "plus-lighter", "plus-darker"]
3890
+ "mix-blend": [...K(), "plus-lighter", "plus-darker"]
3901
3891
  }],
3902
3892
  /**
3903
3893
  * Background Blend Mode
3904
3894
  * @see https://tailwindcss.com/docs/background-blend-mode
3905
3895
  */
3906
3896
  "bg-blend": [{
3907
- "bg-blend": X()
3897
+ "bg-blend": K()
3908
3898
  }],
3909
3899
  // Filters
3910
3900
  /**
@@ -4105,7 +4095,7 @@ const W = (e) => {
4105
4095
  * @see https://tailwindcss.com/docs/transition-duration
4106
4096
  */
4107
4097
  duration: [{
4108
- duration: P()
4098
+ duration: z()
4109
4099
  }],
4110
4100
  /**
4111
4101
  * Transition Timing Function
@@ -4119,7 +4109,7 @@ const W = (e) => {
4119
4109
  * @see https://tailwindcss.com/docs/transition-delay
4120
4110
  */
4121
4111
  delay: [{
4122
- delay: P()
4112
+ delay: z()
4123
4113
  }],
4124
4114
  /**
4125
4115
  * Animation
@@ -4162,7 +4152,7 @@ const W = (e) => {
4162
4152
  * @see https://tailwindcss.com/docs/rotate
4163
4153
  */
4164
4154
  rotate: [{
4165
- rotate: [we, M]
4155
+ rotate: [xe, M]
4166
4156
  }],
4167
4157
  /**
4168
4158
  * Translate X
@@ -4183,14 +4173,14 @@ const W = (e) => {
4183
4173
  * @see https://tailwindcss.com/docs/skew
4184
4174
  */
4185
4175
  "skew-x": [{
4186
- "skew-x": [$]
4176
+ "skew-x": [C]
4187
4177
  }],
4188
4178
  /**
4189
4179
  * Skew Y
4190
4180
  * @see https://tailwindcss.com/docs/skew
4191
4181
  */
4192
4182
  "skew-y": [{
4193
- "skew-y": [$]
4183
+ "skew-y": [C]
4194
4184
  }],
4195
4185
  /**
4196
4186
  * Transform Origin
@@ -4254,126 +4244,126 @@ const W = (e) => {
4254
4244
  * @see https://tailwindcss.com/docs/scroll-margin
4255
4245
  */
4256
4246
  "scroll-m": [{
4257
- "scroll-m": C()
4247
+ "scroll-m": $()
4258
4248
  }],
4259
4249
  /**
4260
4250
  * Scroll Margin X
4261
4251
  * @see https://tailwindcss.com/docs/scroll-margin
4262
4252
  */
4263
4253
  "scroll-mx": [{
4264
- "scroll-mx": C()
4254
+ "scroll-mx": $()
4265
4255
  }],
4266
4256
  /**
4267
4257
  * Scroll Margin Y
4268
4258
  * @see https://tailwindcss.com/docs/scroll-margin
4269
4259
  */
4270
4260
  "scroll-my": [{
4271
- "scroll-my": C()
4261
+ "scroll-my": $()
4272
4262
  }],
4273
4263
  /**
4274
4264
  * Scroll Margin Start
4275
4265
  * @see https://tailwindcss.com/docs/scroll-margin
4276
4266
  */
4277
4267
  "scroll-ms": [{
4278
- "scroll-ms": C()
4268
+ "scroll-ms": $()
4279
4269
  }],
4280
4270
  /**
4281
4271
  * Scroll Margin End
4282
4272
  * @see https://tailwindcss.com/docs/scroll-margin
4283
4273
  */
4284
4274
  "scroll-me": [{
4285
- "scroll-me": C()
4275
+ "scroll-me": $()
4286
4276
  }],
4287
4277
  /**
4288
4278
  * Scroll Margin Top
4289
4279
  * @see https://tailwindcss.com/docs/scroll-margin
4290
4280
  */
4291
4281
  "scroll-mt": [{
4292
- "scroll-mt": C()
4282
+ "scroll-mt": $()
4293
4283
  }],
4294
4284
  /**
4295
4285
  * Scroll Margin Right
4296
4286
  * @see https://tailwindcss.com/docs/scroll-margin
4297
4287
  */
4298
4288
  "scroll-mr": [{
4299
- "scroll-mr": C()
4289
+ "scroll-mr": $()
4300
4290
  }],
4301
4291
  /**
4302
4292
  * Scroll Margin Bottom
4303
4293
  * @see https://tailwindcss.com/docs/scroll-margin
4304
4294
  */
4305
4295
  "scroll-mb": [{
4306
- "scroll-mb": C()
4296
+ "scroll-mb": $()
4307
4297
  }],
4308
4298
  /**
4309
4299
  * Scroll Margin Left
4310
4300
  * @see https://tailwindcss.com/docs/scroll-margin
4311
4301
  */
4312
4302
  "scroll-ml": [{
4313
- "scroll-ml": C()
4303
+ "scroll-ml": $()
4314
4304
  }],
4315
4305
  /**
4316
4306
  * Scroll Padding
4317
4307
  * @see https://tailwindcss.com/docs/scroll-padding
4318
4308
  */
4319
4309
  "scroll-p": [{
4320
- "scroll-p": C()
4310
+ "scroll-p": $()
4321
4311
  }],
4322
4312
  /**
4323
4313
  * Scroll Padding X
4324
4314
  * @see https://tailwindcss.com/docs/scroll-padding
4325
4315
  */
4326
4316
  "scroll-px": [{
4327
- "scroll-px": C()
4317
+ "scroll-px": $()
4328
4318
  }],
4329
4319
  /**
4330
4320
  * Scroll Padding Y
4331
4321
  * @see https://tailwindcss.com/docs/scroll-padding
4332
4322
  */
4333
4323
  "scroll-py": [{
4334
- "scroll-py": C()
4324
+ "scroll-py": $()
4335
4325
  }],
4336
4326
  /**
4337
4327
  * Scroll Padding Start
4338
4328
  * @see https://tailwindcss.com/docs/scroll-padding
4339
4329
  */
4340
4330
  "scroll-ps": [{
4341
- "scroll-ps": C()
4331
+ "scroll-ps": $()
4342
4332
  }],
4343
4333
  /**
4344
4334
  * Scroll Padding End
4345
4335
  * @see https://tailwindcss.com/docs/scroll-padding
4346
4336
  */
4347
4337
  "scroll-pe": [{
4348
- "scroll-pe": C()
4338
+ "scroll-pe": $()
4349
4339
  }],
4350
4340
  /**
4351
4341
  * Scroll Padding Top
4352
4342
  * @see https://tailwindcss.com/docs/scroll-padding
4353
4343
  */
4354
4344
  "scroll-pt": [{
4355
- "scroll-pt": C()
4345
+ "scroll-pt": $()
4356
4346
  }],
4357
4347
  /**
4358
4348
  * Scroll Padding Right
4359
4349
  * @see https://tailwindcss.com/docs/scroll-padding
4360
4350
  */
4361
4351
  "scroll-pr": [{
4362
- "scroll-pr": C()
4352
+ "scroll-pr": $()
4363
4353
  }],
4364
4354
  /**
4365
4355
  * Scroll Padding Bottom
4366
4356
  * @see https://tailwindcss.com/docs/scroll-padding
4367
4357
  */
4368
4358
  "scroll-pb": [{
4369
- "scroll-pb": C()
4359
+ "scroll-pb": $()
4370
4360
  }],
4371
4361
  /**
4372
4362
  * Scroll Padding Left
4373
4363
  * @see https://tailwindcss.com/docs/scroll-padding
4374
4364
  */
4375
4365
  "scroll-pl": [{
4376
- "scroll-pl": C()
4366
+ "scroll-pl": $()
4377
4367
  }],
4378
4368
  /**
4379
4369
  * Scroll Snap Align
@@ -4456,7 +4446,7 @@ const W = (e) => {
4456
4446
  * @see https://tailwindcss.com/docs/stroke-width
4457
4447
  */
4458
4448
  "stroke-w": [{
4459
- stroke: [Z, se, $e]
4449
+ stroke: [ee, se, Ie]
4460
4450
  }],
4461
4451
  /**
4462
4452
  * Stroke
@@ -4531,30 +4521,30 @@ const W = (e) => {
4531
4521
  "font-size": ["leading"]
4532
4522
  }
4533
4523
  };
4534
- }, Ln = /* @__PURE__ */ hn(En);
4535
- function Pn(...e) {
4536
- return Ln(Mt(e));
4524
+ }, zn = /* @__PURE__ */ gn(Pn);
4525
+ function Bn(...e) {
4526
+ return zn(Rt(e));
4537
4527
  }
4538
- function gr({ autoWidth: e = !0, className: t, style: n }) {
4539
- const [r, o] = T(() => te.getActiveAppId()), [i, a] = T(() => q.getRunningApps()), { isMobile: c } = st();
4528
+ function vr({ autoWidth: e = !0, className: t, style: n }) {
4529
+ const [r, o] = R(() => ne.getActiveAppId()), [i, a] = R(() => Q.getRunningApps()), { isMobile: c } = it();
4540
4530
  D(() => {
4541
- const w = te.subscribe("activeAppId", (y) => {
4531
+ const w = ne.subscribe("activeAppId", (y) => {
4542
4532
  o(y);
4543
4533
  });
4544
4534
  return () => {
4545
4535
  w();
4546
4536
  };
4547
- }, []), D(() => q.subscribe(() => {
4548
- a(q.getRunningApps());
4537
+ }, []), D(() => Q.subscribe(() => {
4538
+ a(Q.getRunningApps());
4549
4539
  }), []), D(() => {
4550
4540
  if (!new URLSearchParams(window.location.search).has("app")) {
4551
- const h = te.getActiveAppId();
4552
- h && !q.isRunning(h) && q.launchApp(h);
4541
+ const h = ne.getActiveAppId();
4542
+ h && !Q.isRunning(h) && Q.launchApp(h);
4553
4543
  }
4554
4544
  }, []);
4555
4545
  const l = (w) => {
4556
- q.closeApp(w);
4557
- }, u = r ? ge.get(r) : null, b = (u == null ? void 0 : u.width) ?? 400, d = r !== null, v = { ...{
4546
+ Q.closeApp(w);
4547
+ }, u = r ? me.get(r) : null, b = (u == null ? void 0 : u.width) ?? 400, d = r !== null, v = { ...{
4558
4548
  overflow: "hidden",
4559
4549
  display: d ? "flex" : "none",
4560
4550
  flexDirection: "column",
@@ -4562,8 +4552,8 @@ function gr({ autoWidth: e = !0, className: t, style: n }) {
4562
4552
  // Only set width if autoWidth is enabled
4563
4553
  ...e && d ? { width: c ? "100%" : b } : {}
4564
4554
  }, ...n };
4565
- return /* @__PURE__ */ s("div", { className: Pn("nc-app-panel", t), style: v, children: i.map((w) => /* @__PURE__ */ s(
4566
- nt,
4555
+ return /* @__PURE__ */ s("div", { className: Bn("nc-app-panel", t), style: v, children: i.map((w) => /* @__PURE__ */ s(
4556
+ rt,
4567
4557
  {
4568
4558
  appId: w.appId,
4569
4559
  isActive: r === w.appId,
@@ -4572,27 +4562,27 @@ function gr({ autoWidth: e = !0, className: t, style: n }) {
4572
4562
  w.appId
4573
4563
  )) });
4574
4564
  }
4575
- function br({
4565
+ function wr({
4576
4566
  pinnedAppIds: e,
4577
4567
  className: t = "",
4578
4568
  showIndicators: n = !0,
4579
4569
  side: r = "left",
4580
4570
  getBadge: o
4581
4571
  }) {
4582
- const { t: i } = ne(), { isMobile: a } = st(), [c, l] = T(() => te.getActiveAppId()), [u, f] = T(() => q.getRunningApps());
4572
+ const { t: i } = re(), { isMobile: a } = it(), [c, l] = R(() => ne.getActiveAppId()), [u, f] = R(() => Q.getRunningApps());
4583
4573
  D(() => {
4584
- const p = te.subscribe("activeAppId", (g) => {
4574
+ const p = ne.subscribe("activeAppId", (g) => {
4585
4575
  l(g);
4586
4576
  });
4587
4577
  return () => {
4588
4578
  p();
4589
4579
  };
4590
- }, []), D(() => q.subscribe(() => {
4591
- f(q.getRunningApps());
4580
+ }, []), D(() => Q.subscribe(() => {
4581
+ f(Q.getRunningApps());
4592
4582
  }), []);
4593
4583
  const b = (p) => {
4594
- c === p ? q.setActiveApp(null) : q.launchApp(p);
4595
- }, d = e.map((p) => ge.get(p)).filter((p) => !!p), m = u.filter((p) => !e.includes(p.appId)).map((p) => ({ running: p, def: ge.get(p.appId) })).filter((p) => !!p.def), A = (p) => u.some((g) => g.appId === p), v = (p) => p.titleKey ? String(i(p.titleKey)) : p.id, w = (p) => typeof p == "number" && p > 99 ? "99+" : p, y = (p, g) => {
4584
+ c === p ? Q.setActiveApp(null) : Q.launchApp(p);
4585
+ }, d = e.map((p) => me.get(p)).filter((p) => !!p), m = u.filter((p) => !e.includes(p.appId)).map((p) => ({ running: p, def: me.get(p.appId) })).filter((p) => !!p.def), A = (p) => u.some((g) => g.appId === p), v = (p) => p.titleKey ? String(i(p.titleKey)) : p.id, w = (p) => typeof p == "number" && p > 99 ? "99+" : p, y = (p, g) => {
4596
4586
  const x = o == null ? void 0 : o(p, g);
4597
4587
  return x ? /* @__PURE__ */ s(
4598
4588
  "span",
@@ -4605,17 +4595,17 @@ function br({
4605
4595
  }, h = a ? 24 : 28;
4606
4596
  return /* @__PURE__ */ N("div", { className: `nc-app-taskbar ${a ? "nc-mobile" : "nc-desktop"} nc-${r} ${t}`, children: [
4607
4597
  d.map((p) => {
4608
- const g = p.icon, x = c === p.id, $ = A(p.id), R = { isActive: x, isRunning: $, isPinned: !0 };
4598
+ const g = p.icon, x = c === p.id, C = A(p.id), T = { isActive: x, isRunning: C, isPinned: !0 };
4609
4599
  return /* @__PURE__ */ N(
4610
4600
  "button",
4611
4601
  {
4612
- className: `nc-app-taskbar-button ${x ? "nc-active" : ""} ${$ ? "nc-running" : ""}`,
4602
+ className: `nc-app-taskbar-button ${x ? "nc-active" : ""} ${C ? "nc-running" : ""}`,
4613
4603
  onClick: () => b(p.id),
4614
4604
  title: v(p),
4615
4605
  children: [
4616
4606
  /* @__PURE__ */ s(g, { size: h }),
4617
- y(p, R),
4618
- n && $ && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4607
+ y(p, T),
4608
+ n && C && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4619
4609
  ]
4620
4610
  },
4621
4611
  p.id
@@ -4623,16 +4613,16 @@ function br({
4623
4613
  }),
4624
4614
  m.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4625
4615
  m.map(({ running: p, def: g }) => {
4626
- const x = g.icon, $ = c === p.appId, R = { isActive: $, isRunning: !0, isPinned: !1 };
4616
+ const x = g.icon, C = c === p.appId, T = { isActive: C, isRunning: !0, isPinned: !1 };
4627
4617
  return /* @__PURE__ */ N(
4628
4618
  "button",
4629
4619
  {
4630
- className: `nc-app-taskbar-button ${$ ? "nc-active" : ""} nc-running`,
4620
+ className: `nc-app-taskbar-button ${C ? "nc-active" : ""} nc-running`,
4631
4621
  onClick: () => b(p.appId),
4632
4622
  title: v(g),
4633
4623
  children: [
4634
4624
  /* @__PURE__ */ s(x, { size: h }),
4635
- y(g, R),
4625
+ y(g, T),
4636
4626
  n && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4637
4627
  ]
4638
4628
  },
@@ -4641,7 +4631,7 @@ function br({
4641
4631
  })
4642
4632
  ] });
4643
4633
  }
4644
- function vr({
4634
+ function yr({
4645
4635
  appId: e,
4646
4636
  open: t,
4647
4637
  onClose: n,
@@ -4665,7 +4655,7 @@ function vr({
4665
4655
  style: i,
4666
4656
  onClick: (l) => l.stopPropagation(),
4667
4657
  children: /* @__PURE__ */ s(
4668
- nt,
4658
+ rt,
4669
4659
  {
4670
4660
  appId: e,
4671
4661
  isActive: !0,
@@ -4676,32 +4666,32 @@ function vr({
4676
4666
  )
4677
4667
  }
4678
4668
  );
4679
- return ke(c, document.body);
4669
+ return Ae(c, document.body);
4680
4670
  }
4681
- const ze = be(null), ut = be(null);
4682
- function wr() {
4683
- const e = ce(ze);
4671
+ const De = ge(null), pt = ge(null);
4672
+ function xr() {
4673
+ const e = ce(De);
4684
4674
  if (!e)
4685
4675
  throw new Error("useNavStack must be used within a NavStackProvider");
4686
4676
  return e;
4687
4677
  }
4688
- function yr() {
4689
- const e = ce(ut);
4678
+ function kr() {
4679
+ const e = ce(pt);
4690
4680
  if (!e)
4691
4681
  throw new Error("useNavView must be used within NavStack");
4692
4682
  return e;
4693
4683
  }
4694
- const Be = be(null);
4695
- function xr({ rootView: e, children: t }) {
4696
- const { t: n } = ne(), r = Jt(), [o, i] = T([e]), [a, c] = T([null]), l = Y((g, x) => {
4697
- c(($) => {
4698
- const R = [...$];
4699
- return R[g] = x, R;
4684
+ const We = ge(null);
4685
+ function Nr({ rootView: e, children: t }) {
4686
+ const { t: n } = re(), r = Zt(), [o, i] = R([e]), [a, c] = R([null]), l = Y((g, x) => {
4687
+ c((C) => {
4688
+ const T = [...C];
4689
+ return T[g] = x, T;
4700
4690
  });
4701
4691
  }, []), u = Y((g) => {
4702
4692
  c((x) => {
4703
- const $ = [...x];
4704
- return $[g] = null, $;
4693
+ const C = [...x];
4694
+ return C[g] = null, C;
4705
4695
  });
4706
4696
  }, []), f = Y((g) => {
4707
4697
  i((x) => [...x, g]), c((x) => [...x, null]);
@@ -4732,10 +4722,10 @@ function xr({ rootView: e, children: t }) {
4732
4722
  clearToolbarAt: u,
4733
4723
  topIndex: v
4734
4724
  };
4735
- return /* @__PURE__ */ s(ze.Provider, { value: h, children: /* @__PURE__ */ s(Be.Provider, { value: p, children: t }) });
4725
+ return /* @__PURE__ */ s(De.Provider, { value: h, children: /* @__PURE__ */ s(We.Provider, { value: p, children: t }) });
4736
4726
  }
4737
- function zn({ index: e, children: t }) {
4738
- const n = ce(Be);
4727
+ function Dn({ index: e, children: t }) {
4728
+ const n = ce(We);
4739
4729
  if (!n)
4740
4730
  throw new Error("NavViewProvider must be used within NavStackProvider");
4741
4731
  const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, a = Y((u) => {
@@ -4746,16 +4736,16 @@ function zn({ index: e, children: t }) {
4746
4736
  setToolbar: a,
4747
4737
  clearToolbar: c
4748
4738
  };
4749
- return /* @__PURE__ */ s(ut.Provider, { value: l, children: t });
4739
+ return /* @__PURE__ */ s(pt.Provider, { value: l, children: t });
4750
4740
  }
4751
- function kr() {
4752
- const e = ce(ze), t = ce(Be);
4741
+ function Ar() {
4742
+ const e = ce(De), t = ce(We);
4753
4743
  if (!e || !t)
4754
4744
  throw new Error("NavStackContainer must be used within a NavStackProvider");
4755
4745
  const { stack: n } = t;
4756
4746
  return /* @__PURE__ */ s("div", { className: "nav-stack-container", children: /* @__PURE__ */ s("div", { className: "nav-stack-content", children: n.map((r, o) => {
4757
4747
  const i = o === n.length - 1;
4758
- return /* @__PURE__ */ s(zn, { index: o, children: /* @__PURE__ */ s(
4748
+ return /* @__PURE__ */ s(Dn, { index: o, children: /* @__PURE__ */ s(
4759
4749
  "div",
4760
4750
  {
4761
4751
  style: { display: i ? "flex" : "none", flexDirection: "column", height: "100%" },
@@ -4765,55 +4755,55 @@ function kr() {
4765
4755
  }) }) });
4766
4756
  }
4767
4757
  export {
4768
- Je as ActivityIndicator,
4769
- Gn as Alert,
4770
- nt as AppContainer,
4771
- tt as AppContext,
4772
- vr as AppDialog,
4773
- gr as AppPanel,
4774
- br as AppTaskbar,
4775
- Zt as AppTitleBar,
4776
- Yn as Battery,
4777
- ee as Button,
4778
- Kn as ButtonGroup,
4779
- _n as Checkbox,
4780
- Qe as CloseButton,
4781
- Un as ComboBox,
4782
- Zn as ContextMenu,
4783
- ur as CsvTextArea,
4784
- er as Dialog,
4785
- he as DialogClose,
4786
- Xn as EditButton,
4787
- Qn as Hyperlink,
4788
- tr as Input,
4789
- rr as ListGroup,
4790
- nr as ListGroupItem,
4791
- sr as MonthRangePicker,
4792
- or as MultiSelect,
4793
- kr as NavStackContainer,
4794
- xr as NavStackProvider,
4795
- Kt as Notification,
4796
- pr as NotificationContainer,
4797
- ir as NumberInput,
4798
- qn as RefreshButton,
4799
- cr as Slider,
4800
- Ht as TabPanel,
4801
- ar as TabPanels,
4802
- lr as Tabs,
4803
- dr as Toggle,
4804
- Jn as TrashButton,
4805
- mr as ViewportProvider,
4806
- ge as appRegistry,
4807
- te as appStateStore,
4808
- Pn as cn,
4809
- hr as createAppI18nFactory,
4810
- fr as notificationManager,
4811
- q as runningAppsStore,
4812
- _t as showNotification,
4813
- Jt as useApp,
4814
- zt as useDialog,
4815
- wr as useNavStack,
4816
- yr as useNavView,
4817
- st as useViewport
4758
+ Qe as ActivityIndicator,
4759
+ Kn as Alert,
4760
+ rt as AppContainer,
4761
+ nt as AppContext,
4762
+ yr as AppDialog,
4763
+ vr as AppPanel,
4764
+ wr as AppTaskbar,
4765
+ tn as AppTitleBar,
4766
+ _n as Battery,
4767
+ te as Button,
4768
+ Un as ButtonGroup,
4769
+ qn as Checkbox,
4770
+ Ze as CloseButton,
4771
+ Xn as ComboBox,
4772
+ tr as ContextMenu,
4773
+ fr as CsvTextArea,
4774
+ nr as Dialog,
4775
+ fe as DialogClose,
4776
+ Qn as EditButton,
4777
+ er as Hyperlink,
4778
+ rr as Input,
4779
+ sr as ListGroup,
4780
+ or as ListGroupItem,
4781
+ cr as MonthRangePicker,
4782
+ ir as MultiSelect,
4783
+ Ar as NavStackContainer,
4784
+ Nr as NavStackProvider,
4785
+ Ut as Notification,
4786
+ hr as NotificationContainer,
4787
+ ar as NumberInput,
4788
+ Jn as RefreshButton,
4789
+ lr as Slider,
4790
+ Ot as TabPanel,
4791
+ dr as TabPanels,
4792
+ ur as Tabs,
4793
+ pr as Toggle,
4794
+ Zn as TrashButton,
4795
+ br as ViewportProvider,
4796
+ me as appRegistry,
4797
+ ne as appStateStore,
4798
+ Bn as cn,
4799
+ gr as createAppI18nFactory,
4800
+ mr as notificationManager,
4801
+ Q as runningAppsStore,
4802
+ qt as showNotification,
4803
+ Zt as useApp,
4804
+ Dt as useDialog,
4805
+ xr as useNavStack,
4806
+ kr as useNavView,
4807
+ it as useViewport
4818
4808
  };
4819
4809
  //# sourceMappingURL=index.js.map