@kingsimba/nc-ui 0.1.36 → 0.1.38

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,12 +1,12 @@
1
1
  var ht = Object.defineProperty;
2
2
  var mt = (e, t, n) => t in e ? ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
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";
4
+ import { jsx as s, jsxs as k, Fragment as Ee } from "react/jsx-runtime";
5
+ import { d as Le, 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 P, useRef as F, useEffect as D, useMemo as Ie, createContext as ge, useContext as ce, Children as At, isValidElement as St, forwardRef as Ct, useImperativeHandle as Mt, useCallback as G, Suspense as It } from "react";
7
7
  import { createPortal as Ae } from "react-dom";
8
8
  import { useTranslation as re } from "react-i18next";
9
- import It from "i18next";
9
+ import $t from "i18next";
10
10
  import { c as Rt } from "./clsx-OuTLNxxd.js";
11
11
  function Qe({
12
12
  size: e = "default",
@@ -37,8 +37,8 @@ function Qe({
37
37
  );
38
38
  return n ? /* @__PURE__ */ s("div", { className: "nc-activity-indicator-overlay", children: o }) : o;
39
39
  }
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
- const b = [
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: d, ...h }) {
41
+ const w = [
42
42
  "nc-button",
43
43
  e !== "default" ? `nc-${e}` : "",
44
44
  t ? "nc-block" : "",
@@ -50,22 +50,22 @@ function te({ variant: e = "default", block: t, size: n = "default", appearance:
50
50
  c ? "nc-loading" : "",
51
51
  o ?? ""
52
52
  ].filter(Boolean).join(" ");
53
- return /* @__PURE__ */ N(
53
+ return /* @__PURE__ */ k(
54
54
  "button",
55
55
  {
56
- className: b,
56
+ className: w,
57
57
  disabled: i || c,
58
- onClick: (m) => {
58
+ onClick: (b) => {
59
59
  if (!c) {
60
60
  if (a) {
61
61
  const A = window.getSelection();
62
62
  if (A && A.toString().length > 0)
63
63
  return;
64
64
  }
65
- l == null || l(m);
65
+ l == null || l(b);
66
66
  }
67
67
  },
68
- ...f,
68
+ ...h,
69
69
  children: [
70
70
  c && /* @__PURE__ */ s(
71
71
  Qe,
@@ -75,7 +75,7 @@ function te({ variant: e = "default", block: t, size: n = "default", appearance:
75
75
  color: r === "transparent" || e !== "default" && e !== "ghost" ? "white" : void 0
76
76
  }
77
77
  ),
78
- u
78
+ d
79
79
  ]
80
80
  }
81
81
  );
@@ -87,7 +87,7 @@ const Tt = {
87
87
  error: "danger",
88
88
  danger: "danger"
89
89
  };
90
- function Kn({
90
+ function Un({
91
91
  code: e,
92
92
  text: t,
93
93
  type: n,
@@ -98,13 +98,13 @@ function Kn({
98
98
  className: c = "",
99
99
  style: l
100
100
  }) {
101
- const u = i ?? /* @__PURE__ */ N(Le, { children: [
101
+ const d = i ?? /* @__PURE__ */ k(Ee, { children: [
102
102
  e !== void 0 && /* @__PURE__ */ s("span", { className: "nc-alert-code", children: e }),
103
103
  t
104
104
  ] });
105
- return /* @__PURE__ */ N("div", { className: `nc-alert nc-${n} ${c}`.trim(), style: l, children: [
106
- /* @__PURE__ */ N("div", { className: "nc-alert-main", children: [
107
- /* @__PURE__ */ s("div", { className: `nc-alert-message nc-${n}`, children: u }),
105
+ return /* @__PURE__ */ k("div", { className: `nc-alert nc-${n} ${c}`.trim(), style: l, children: [
106
+ /* @__PURE__ */ k("div", { className: "nc-alert-main", children: [
107
+ /* @__PURE__ */ s("div", { className: `nc-alert-message nc-${n}`, children: d }),
108
108
  a && /* @__PURE__ */ s(
109
109
  "button",
110
110
  {
@@ -112,7 +112,7 @@ function Kn({
112
112
  className: "nc-alert-close",
113
113
  "aria-label": "Close alert",
114
114
  onClick: a,
115
- children: /* @__PURE__ */ s(Pe, { size: 16 })
115
+ children: /* @__PURE__ */ s(Le, { size: 16 })
116
116
  }
117
117
  )
118
118
  ] }),
@@ -127,7 +127,7 @@ function Kn({
127
127
  ) })
128
128
  ] });
129
129
  }
130
- function _n({
130
+ function qn({
131
131
  percentage: e = 0.5,
132
132
  status: t = "discharging",
133
133
  darkMode: n = !1,
@@ -135,9 +135,9 @@ function _n({
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, 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
- return /* @__PURE__ */ N(
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, d = 14, h = 2, w = 0, u = 12, b = 0, A = 0, v = 0, y = l, x = d, m = x - b * 2, f = y - b * 2, p = Math.max(1, Math.min(4, x / 4)), g = o === 0 ? 0 : 0.05 + o * 0.95, C = l + h + u, T = 20, M = 0.65, S = Math.max(d, T * M), E = l + h + 1, N = (d - T * M) / 2;
140
+ return /* @__PURE__ */ k(
141
141
  "svg",
142
142
  {
143
143
  className: "nc-battery",
@@ -147,37 +147,37 @@ function _n({
147
147
  role: "img",
148
148
  "aria-label": `Battery ${i === "-" ? "-" : `${i}%`} ${t}`,
149
149
  children: [
150
- /* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: p * x, height: h, fill: "white" }) }) }),
150
+ /* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: f * g, height: m, fill: "white" }) }) }),
151
151
  /* @__PURE__ */ s(
152
152
  "rect",
153
153
  {
154
154
  x: A,
155
155
  y: v,
156
- rx: g,
157
- ry: g,
158
- width: w,
159
- height: y,
156
+ rx: p,
157
+ ry: p,
158
+ width: y,
159
+ height: x,
160
160
  fill: c
161
161
  }
162
162
  ),
163
163
  /* @__PURE__ */ s(
164
164
  "rect",
165
165
  {
166
- x: A + m,
167
- y: v + m,
168
- width: p,
169
- height: h,
166
+ x: A + b,
167
+ y: v + b,
168
+ width: f,
169
+ height: m,
170
170
  fill: a,
171
- rx: g,
172
- ry: g,
171
+ rx: p,
172
+ ry: p,
173
173
  mask: `url(#nc-battery-fill-mask-${o})`
174
174
  }
175
175
  ),
176
176
  /* @__PURE__ */ s(
177
177
  "text",
178
178
  {
179
- x: A + w / 2,
180
- y: u - 3,
179
+ x: A + y / 2,
180
+ y: d - 3,
181
181
  fontSize: 11,
182
182
  fontWeight: "bold",
183
183
  fill: "var(--nc-battery-text-contrast)",
@@ -188,21 +188,21 @@ function _n({
188
188
  /* @__PURE__ */ s(
189
189
  "rect",
190
190
  {
191
- x: l + b,
192
- y: u * 0.26,
193
- width: f,
194
- height: u * 0.48,
191
+ x: l + w,
192
+ y: d * 0.26,
193
+ width: h,
194
+ height: d * 0.48,
195
195
  rx: 0.8,
196
196
  ry: 0.8,
197
197
  fill: o === 1 ? a : c
198
198
  }
199
199
  ),
200
- t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${L}, ${k}) scale(${E})`, fill: a, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
200
+ t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${E}, ${N}) scale(${M})`, fill: a, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
201
201
  ]
202
202
  }
203
203
  );
204
204
  }
205
- function Un({
205
+ function Xn({
206
206
  value: e,
207
207
  onChange: t,
208
208
  options: n,
@@ -224,7 +224,7 @@ function Un({
224
224
  );
225
225
  }) });
226
226
  }
227
- function Et({ size: e }) {
227
+ function Pt({ 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,15 +236,15 @@ function Et({ size: e }) {
236
236
  }
237
237
  ) });
238
238
  }
239
- function qn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: a, className: c = "" }) {
239
+ function Jn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: a, className: c = "" }) {
240
240
  const l = o === "small";
241
- return /* @__PURE__ */ N(
241
+ return /* @__PURE__ */ k(
242
242
  "label",
243
243
  {
244
244
  className: `nc-checkbox-label ${l ? "nc-small" : ""} ${n ? "nc-disabled" : ""} ${c}`.trim(),
245
245
  style: a,
246
- onClick: (u) => {
247
- n || (u.preventDefault(), t(!e));
246
+ onClick: (d) => {
247
+ n || (d.preventDefault(), t(!e));
248
248
  },
249
249
  children: [
250
250
  /* @__PURE__ */ s(
@@ -254,10 +254,10 @@ function qn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
254
254
  "aria-checked": e,
255
255
  tabIndex: 0,
256
256
  className: `nc-checkbox-box ${l ? "nc-small" : ""} ${e ? "nc-checked" : ""}`,
257
- onKeyDown: (u) => {
258
- n || (u.key === "Enter" || u.key === " ") && (u.preventDefault(), t(!e));
257
+ onKeyDown: (d) => {
258
+ n || (d.key === "Enter" || d.key === " ") && (d.preventDefault(), t(!e));
259
259
  },
260
- children: e && /* @__PURE__ */ s(Et, { size: o })
260
+ children: e && /* @__PURE__ */ s(Pt, { 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,29 +265,29 @@ function qn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
265
265
  }
266
266
  );
267
267
  }
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;
268
+ function Et({ option: e, onChange: t, selected: n, highlighted: r, small: o, renderOption: i, index: a }) {
269
+ const c = F(null), { t: l } = re(), d = 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" : ""} ${u ? "nc-disabled" : ""}`,
276
+ className: `nc-combo-dropdown-option ${o ? "nc-small" : ""} ${r ? "nc-highlighted" : ""} ${d ? "nc-disabled" : ""}`,
277
277
  role: "option",
278
278
  onClick: () => {
279
- u || t(e.value, e.label);
279
+ d || t(e.value, e.label);
280
280
  },
281
281
  "aria-selected": n,
282
- "aria-disabled": u,
282
+ "aria-disabled": d,
283
283
  style: {
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
284
+ cursor: d ? "default" : "pointer",
285
+ opacity: d ? 0.4 : void 0,
286
+ background: r && !d ? "rgba(59,130,246,0.18)" : n && !d ? "rgba(59,130,246,0.12)" : void 0
287
287
  },
288
- children: i ? i(e, a, !!r) : /* @__PURE__ */ N(Le, { children: [
288
+ children: i ? i(e, a, !!r) : /* @__PURE__ */ k(Ee, { children: [
289
289
  e.label,
290
- e.default && /* @__PURE__ */ N("span", { style: { fontSize: "0.85em", color: "var(--nc-text-weak)", marginLeft: 6 }, children: [
290
+ e.default && /* @__PURE__ */ k("span", { style: { fontSize: "0.85em", color: "var(--nc-text-weak)", marginLeft: 6 }, children: [
291
291
  "(",
292
292
  l("common.default"),
293
293
  ")"
@@ -296,7 +296,7 @@ function Lt({ option: e, onChange: t, selected: n, highlighted: r, small: o, ren
296
296
  }
297
297
  );
298
298
  }
299
- function Pt({
299
+ function Lt({
300
300
  isOpen: e,
301
301
  options: t,
302
302
  onSelect: n,
@@ -307,17 +307,17 @@ function Pt({
307
307
  highlightedIndex: c = -1,
308
308
  renderOption: l
309
309
  }) {
310
- const [u, f] = R({ top: 0, left: 0, width: 0 }), [b, d] = R(o), { t: m } = re();
310
+ const [d, h] = P({ top: 0, left: 0, width: 0 }), [w, u] = P(o), { t: b } = re();
311
311
  if (D(() => {
312
312
  if (e && i.current) {
313
313
  const v = i.current.getBoundingClientRect();
314
- let w = o;
314
+ let y = o;
315
315
  if (o === "bottom") {
316
- const y = window.innerHeight - v.bottom, h = v.top;
317
- y < 320 && h > y && (w = "top");
316
+ const x = window.innerHeight - v.bottom, m = v.top;
317
+ x < 320 && m > x && (y = "top");
318
318
  }
319
- d(w), f({
320
- top: w === "top" ? v.top - 4 : v.bottom + 4,
319
+ u(y), h({
320
+ top: y === "top" ? v.top - 4 : v.bottom + 4,
321
321
  left: v.left,
322
322
  width: v.width
323
323
  });
@@ -330,15 +330,15 @@ function Pt({
330
330
  onMouseDown: (v) => v.stopPropagation(),
331
331
  style: {
332
332
  position: "fixed",
333
- top: b === "top" ? void 0 : u.top,
334
- bottom: b === "top" ? window.innerHeight - u.top : void 0,
335
- left: u.left,
336
- width: u.width,
333
+ top: w === "top" ? void 0 : d.top,
334
+ bottom: w === "top" ? window.innerHeight - d.top : void 0,
335
+ left: d.left,
336
+ width: d.width,
337
337
  zIndex: 1e3,
338
338
  maxHeight: 300,
339
339
  overflowY: "auto"
340
340
  },
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))
341
+ children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: b("common.noResults") }) : t.map((v, y) => /* @__PURE__ */ s(Et, { option: v, onChange: n, selected: v.value === r, highlighted: y === c, small: a, renderOption: l, index: y }, v.value))
342
342
  }
343
343
  );
344
344
  return Ae(A, document.body);
@@ -372,7 +372,7 @@ function Bt({ open: e, small: t }) {
372
372
  }
373
373
  );
374
374
  }
375
- function Xn({
375
+ function Qn({
376
376
  value: e,
377
377
  onChange: t,
378
378
  placeholder: n = "Select…",
@@ -382,20 +382,20 @@ function Xn({
382
382
  renderSelected: a,
383
383
  selectedOption: c,
384
384
  disabled: l,
385
- label: u,
386
- clearable: f = !0,
387
- allowTyping: b = !1,
388
- placement: d = "bottom",
389
- size: m = "default",
385
+ label: d,
386
+ clearable: h = !0,
387
+ allowTyping: w = !1,
388
+ placement: u = "bottom",
389
+ size: b = "default",
390
390
  appearance: A = "default",
391
391
  textAlign: v = "left",
392
- style: w,
393
- className: y
392
+ style: y,
393
+ className: x
394
394
  }) {
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(() => {
395
+ const [m, f] = P(!1), [p, g] = P(""), [C, T] = P(-1), M = F(null), S = F(null), E = F(null), N = b === "small", { t: I } = re(), L = !!o, H = w || L, [ae, X] = P([]), [K, _] = P(() => {
396
396
  if (r && e) {
397
- const I = r.find((W) => W.value === e);
398
- return I ? I.label : "";
397
+ const R = r.find((W) => W.value === e);
398
+ return R ? R.label : "";
399
399
  }
400
400
  return o && e ? e : "";
401
401
  });
@@ -405,53 +405,53 @@ function Xn({
405
405
  return;
406
406
  }
407
407
  if (r) {
408
- const I = r.find((W) => W.value === e);
409
- I && _(I.label);
408
+ const R = r.find((W) => W.value === e);
409
+ R && _(R.label);
410
410
  } else o && _(e);
411
411
  }, [e, r, o]);
412
- const U = (I, W = !1) => {
412
+ const U = (R, W = !1) => {
413
413
  if (!o) return;
414
- L.current && clearTimeout(L.current);
414
+ E.current && clearTimeout(E.current);
415
415
  const B = async () => {
416
416
  try {
417
- const G = await o(I);
418
- X(G), T(-1);
417
+ const Y = await o(R);
418
+ X(Y), T(-1);
419
419
  } catch {
420
420
  X([]);
421
421
  }
422
422
  };
423
- W ? B() : L.current = setTimeout(B, 200);
424
- }, j = Me(() => {
425
- if (P) return ae;
426
- const I = g.toLowerCase();
427
- return H ? (r || []).filter((W) => W.label.toLowerCase().includes(I)) : r || [];
428
- }, [r, g, H, P, ae]);
423
+ W ? B() : E.current = setTimeout(B, 200);
424
+ }, j = Ie(() => {
425
+ if (L) return ae;
426
+ const R = p.toLowerCase();
427
+ return H ? (r || []).filter((W) => W.label.toLowerCase().includes(R)) : r || [];
428
+ }, [r, p, H, L, ae]);
429
429
  D(() => {
430
- h && T(-1);
431
- }, [h, j]), D(() => {
432
- if (!f && !e && r && r.length > 0 && t) {
433
- const I = r.find((W) => W.default) || r[0];
434
- t(I.value);
430
+ m && T(-1);
431
+ }, [m, j]), D(() => {
432
+ if (!h && !e && r && r.length > 0 && t) {
433
+ const R = r.find((W) => W.default) || r[0];
434
+ t(R.value);
435
435
  }
436
- }, [f, e, r, t]), D(() => {
437
- function I(W) {
436
+ }, [h, e, r, t]), D(() => {
437
+ function R(W) {
438
438
  var B;
439
- W.target instanceof Node && E.current && ((B = E.current.parentElement) != null && B.contains(W.target) || p(!1));
439
+ W.target instanceof Node && M.current && ((B = M.current.parentElement) != null && B.contains(W.target) || f(!1));
440
440
  }
441
- return document.addEventListener("mousedown", I), () => document.removeEventListener("mousedown", I);
441
+ return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
442
442
  }, []);
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());
443
+ const z = c ?? (r ? r.find((R) => R.value === e) : e ? { label: K, value: e } : void 0), q = z && h, le = !l && !q, pe = `nc-align-${v}`, ve = !(m && H) && !!z, de = (R, W, B = !1) => {
444
+ var Y;
445
+ _(W), t == null || t(R), f(!1), g(""), B && ((Y = M.current) == null || Y.blur());
446
446
  }, we = () => {
447
- t == null || t(void 0), x(""), p(!1);
448
- }, ye = (I) => {
449
- if (!h) {
450
- (I.key === "ArrowDown" || I.key === "ArrowUp") && (p(!0), I.preventDefault());
447
+ t == null || t(void 0), g(""), f(!1);
448
+ }, ye = (R) => {
449
+ if (!m) {
450
+ (R.key === "ArrowDown" || R.key === "ArrowUp") && (f(!0), R.preventDefault());
451
451
  return;
452
452
  }
453
- const W = (B, G) => {
454
- if (G === 1) {
453
+ const W = (B, Y) => {
454
+ if (Y === 1) {
455
455
  for (let V = B; V < j.length; V++)
456
456
  if (!j[V].disabled) return V;
457
457
  for (let V = 0; V < B; V++)
@@ -464,76 +464,76 @@ function Xn({
464
464
  }
465
465
  return B;
466
466
  };
467
- switch (I.key) {
467
+ switch (R.key) {
468
468
  case "ArrowDown":
469
- I.preventDefault(), T((B) => {
470
- const G = B + 1, V = G >= j.length ? 0 : G;
469
+ R.preventDefault(), T((B) => {
470
+ const Y = B + 1, V = Y >= j.length ? 0 : Y;
471
471
  return W(V, 1);
472
472
  });
473
473
  break;
474
474
  case "ArrowUp":
475
- I.preventDefault(), T((B) => {
476
- const G = B - 1, V = G < 0 ? j.length - 1 : G;
475
+ R.preventDefault(), T((B) => {
476
+ const Y = B - 1, V = Y < 0 ? j.length - 1 : Y;
477
477
  return W(V, -1);
478
478
  });
479
479
  break;
480
480
  case "Enter":
481
- I.preventDefault(), C >= 0 && C < j.length && !j[C].disabled && de(j[C].value, j[C].label, !0);
481
+ R.preventDefault(), C >= 0 && C < j.length && !j[C].disabled && de(j[C].value, j[C].label, !0);
482
482
  break;
483
483
  case "Escape":
484
- I.preventDefault(), p(!1), x("");
484
+ R.preventDefault(), f(!1), g("");
485
485
  break;
486
486
  }
487
487
  };
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: [
489
- u && /* @__PURE__ */ s("span", { className: `nc-label ${k ? "nc-small" : ""}`, children: u }),
490
- /* @__PURE__ */ N(
488
+ return /* @__PURE__ */ k("div", { className: `nc-combo-container ${A === "transparent" ? "nc-transparent" : ""} ${A === "plain" ? "nc-plain" : ""} ${m ? "nc-open" : ""} ${pe} ${x || ""}`.trim(), style: { position: "relative", ...y }, children: [
489
+ d && /* @__PURE__ */ s("span", { className: `nc-label ${N ? "nc-small" : ""}`, children: d }),
490
+ /* @__PURE__ */ k(
491
491
  "div",
492
492
  {
493
493
  ref: S,
494
494
  style: { position: "relative", display: "flex", alignItems: "center" },
495
- onMouseDown: (I) => {
496
- if (l || H && I.target === E.current) return;
497
- const W = !h;
498
- if (p((B) => (!B && H && z && x(z.label), !B)), P && W) {
495
+ onMouseDown: (R) => {
496
+ if (l || H && R.target === M.current) return;
497
+ const W = !m;
498
+ if (f((B) => (!B && H && z && g(z.label), !B)), L && W) {
499
499
  const B = H && z ? z.label : "";
500
500
  X([]), setTimeout(() => U(B, !0), 0);
501
501
  }
502
- H && !h && setTimeout(() => {
503
- var B, G;
504
- (B = E.current) == null || B.focus(), (G = E.current) == null || G.select();
502
+ H && !m && setTimeout(() => {
503
+ var B, Y;
504
+ (B = M.current) == null || B.focus(), (Y = M.current) == null || Y.select();
505
505
  }, 0);
506
506
  },
507
507
  children: [
508
508
  /* @__PURE__ */ s(
509
509
  "input",
510
510
  {
511
- ref: E,
512
- className: `nc-input ${k ? "nc-small" : ""}`,
511
+ ref: M,
512
+ className: `nc-input ${N ? "nc-small" : ""}`,
513
513
  placeholder: n,
514
514
  onFocus: () => {
515
515
  if (!l && H) {
516
- p(!0);
517
- const I = z ? z.label : "";
518
- z && (x(I), setTimeout(() => {
516
+ f(!0);
517
+ const R = z ? z.label : "";
518
+ z && (g(R), setTimeout(() => {
519
519
  var W;
520
- return (W = E.current) == null ? void 0 : W.select();
521
- }, 0)), P && (X([]), U(I, !0));
520
+ return (W = M.current) == null ? void 0 : W.select();
521
+ }, 0)), L && (X([]), U(R, !0));
522
522
  }
523
523
  },
524
- onChange: (I) => {
525
- const W = I.target.value;
526
- H && (x(W), P && U(W));
524
+ onChange: (R) => {
525
+ const W = R.target.value;
526
+ H && (g(W), L && U(W));
527
527
  },
528
528
  onKeyDown: ye,
529
- value: h && H ? g : (z == null ? void 0 : z.label) || "",
529
+ value: m && H ? p : (z == null ? void 0 : z.label) || "",
530
530
  readOnly: l || !H,
531
531
  style: {
532
532
  width: "100%",
533
- paddingRight: le || q ? k ? 32 : 44 : 12,
534
- caretColor: b ? void 0 : "transparent",
535
- cursor: b ? void 0 : "pointer",
536
- userSelect: b ? void 0 : "none",
533
+ paddingRight: le || q ? N ? 32 : 44 : 12,
534
+ caretColor: w ? void 0 : "transparent",
535
+ cursor: w ? void 0 : "pointer",
536
+ userSelect: w ? void 0 : "none",
537
537
  color: ve ? "transparent" : "var(--nc-text)"
538
538
  }
539
539
  }
@@ -545,8 +545,8 @@ function Xn({
545
545
  className: `nc-combo-overlay ${pe}`,
546
546
  style: {
547
547
  position: "absolute",
548
- left: k ? 8 : 12,
549
- right: le || q ? k ? 12 : 24 : k ? 8 : 12,
548
+ left: N ? 8 : 12,
549
+ right: le || q ? N ? 12 : 24 : N ? 8 : 12,
550
550
  top: "50%",
551
551
  transform: "translateY(-50%)",
552
552
  pointerEvents: "none",
@@ -554,25 +554,25 @@ function Xn({
554
554
  alignItems: "center",
555
555
  gap: 6
556
556
  },
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: [
557
+ children: a && z ? a(z) : /* @__PURE__ */ k(Ee, { children: [
558
+ /* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${N ? "nc-small" : ""}`, children: z == null ? void 0 : z.label }),
559
+ (z == null ? void 0 : z.default) && /* @__PURE__ */ k("span", { className: `nc-combo-overlay-default ${N ? "nc-small" : ""}`, children: [
560
560
  "(",
561
- $("common.default"),
561
+ I("common.default"),
562
562
  ")"
563
563
  ] })
564
564
  ] })
565
565
  }
566
566
  ),
567
- q && /* @__PURE__ */ s(zt, { onClick: we, small: k }),
568
- le && /* @__PURE__ */ s(Bt, { open: h, small: k })
567
+ q && /* @__PURE__ */ s(zt, { onClick: we, small: N }),
568
+ le && /* @__PURE__ */ s(Bt, { open: m, small: N })
569
569
  ]
570
570
  }
571
571
  ),
572
- /* @__PURE__ */ s(Pt, { isOpen: h, options: j, onSelect: de, selectedValue: e, placement: d, anchorRef: S, small: k, highlightedIndex: C, renderOption: i })
572
+ /* @__PURE__ */ s(Lt, { isOpen: m, options: j, onSelect: de, selectedValue: e, placement: u, anchorRef: S, small: N, highlightedIndex: C, renderOption: i })
573
573
  ] });
574
574
  }
575
- function Jn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
575
+ function Zn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
576
576
  return /* @__PURE__ */ s(
577
577
  "button",
578
578
  {
@@ -596,11 +596,11 @@ function Ze({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Clo
596
596
  title: r,
597
597
  "aria-label": o,
598
598
  "data-size": n,
599
- children: /* @__PURE__ */ s(Pe, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
599
+ children: /* @__PURE__ */ s(Le, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
600
600
  }
601
601
  );
602
602
  }
603
- function Qn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edit", "aria-label": o = "Edit" }) {
603
+ function er({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edit", "aria-label": o = "Edit" }) {
604
604
  return /* @__PURE__ */ s(
605
605
  "button",
606
606
  {
@@ -614,7 +614,7 @@ function Qn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edi
614
614
  }
615
615
  );
616
616
  }
617
- function Zn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Delete", "aria-label": o = "Delete" }) {
617
+ function tr({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Delete", "aria-label": o = "Delete" }) {
618
618
  return /* @__PURE__ */ s(
619
619
  "button",
620
620
  {
@@ -628,7 +628,7 @@ function Zn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Del
628
628
  }
629
629
  );
630
630
  }
631
- function er({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label": o, size: i = "default" }) {
631
+ function nr({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label": o, size: i = "default" }) {
632
632
  return /* @__PURE__ */ s(
633
633
  "button",
634
634
  {
@@ -642,7 +642,7 @@ function er({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label":
642
642
  }
643
643
  );
644
644
  }
645
- function tr({
645
+ function rr({
646
646
  open: e,
647
647
  onClose: t,
648
648
  options: n,
@@ -650,35 +650,35 @@ function tr({
650
650
  anchor: o,
651
651
  preferredDirection: i = "down"
652
652
  }) {
653
- const a = F(null), [c, l] = R({ top: 0, left: 0 }), u = o || (r == null ? void 0 : r.current);
653
+ const a = F(null), [c, l] = P({ top: 0, left: 0 }), d = o || (r == null ? void 0 : r.current);
654
654
  if (D(() => {
655
- if (!e || !u || !a.current) return;
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;
657
- let h = i;
658
- (!y && i === "down" || i === "up" && y) && (h = "up");
659
- let p;
660
- h === "down" ? p = w : p = d.top - m.height - 8;
661
- let g = d.left;
662
- g + m.width > v - 8 && (g = d.right - m.width), l({
663
- top: Math.max(8, p),
655
+ if (!e || !d || !a.current) return;
656
+ const u = d.getBoundingClientRect(), b = a.current.getBoundingClientRect(), A = window.innerHeight, v = window.innerWidth, y = u.bottom + 8, x = y + b.height <= A - 8;
657
+ let m = i;
658
+ (!x && i === "down" || i === "up" && x) && (m = "up");
659
+ let f;
660
+ m === "down" ? f = y : f = u.top - b.height - 8;
661
+ let p = u.left;
662
+ p + b.width > v - 8 && (p = u.right - b.width), l({
663
+ top: Math.max(8, f),
664
664
  // Ensure minimum 8px from top
665
- left: Math.max(8, g)
665
+ left: Math.max(8, p)
666
666
  // Ensure minimum 8px from left
667
667
  });
668
- }, [e, u, i]), D(() => {
668
+ }, [e, d, i]), D(() => {
669
669
  if (!e) return;
670
- const d = (A) => {
671
- a.current && !a.current.contains(A.target) && u && !u.contains(A.target) && t();
672
- }, m = (A) => {
670
+ const u = (A) => {
671
+ a.current && !a.current.contains(A.target) && d && !d.contains(A.target) && t();
672
+ }, b = (A) => {
673
673
  A.key === "Escape" && t();
674
674
  };
675
- return document.addEventListener("mousedown", d), document.addEventListener("keydown", m), () => {
676
- document.removeEventListener("mousedown", d), document.removeEventListener("keydown", m);
675
+ return document.addEventListener("mousedown", u), document.addEventListener("keydown", b), () => {
676
+ document.removeEventListener("mousedown", u), document.removeEventListener("keydown", b);
677
677
  };
678
- }, [e, t, u]), !e) return null;
679
- const f = (d) => {
680
- d.type !== "separator" && !d.disabled && d.onClick && (d.onClick(), t());
681
- }, b = n.some((d) => d.icon);
678
+ }, [e, t, d]), !e) return null;
679
+ const h = (u) => {
680
+ u.type !== "separator" && !u.disabled && u.onClick && (u.onClick(), t());
681
+ }, w = n.some((u) => u.icon);
682
682
  return Ae(
683
683
  /* @__PURE__ */ s(
684
684
  "div",
@@ -692,35 +692,35 @@ function tr({
692
692
  zIndex: 1e4
693
693
  },
694
694
  role: "menu",
695
- children: n.map((d) => {
696
- if (d.type === "separator")
695
+ children: n.map((u) => {
696
+ if (u.type === "separator")
697
697
  return /* @__PURE__ */ s(
698
698
  "div",
699
699
  {
700
700
  className: "nc-context-menu-separator",
701
701
  role: "separator"
702
702
  },
703
- d.id
703
+ u.id
704
704
  );
705
- const m = [
705
+ const b = [
706
706
  "nc-context-menu-item",
707
- d.variant && d.variant !== "default" ? `nc-${d.variant}` : "",
708
- d.disabled ? "nc-disabled" : "",
709
- b && !d.icon ? "nc-indented" : ""
707
+ u.variant && u.variant !== "default" ? `nc-${u.variant}` : "",
708
+ u.disabled ? "nc-disabled" : "",
709
+ w && !u.icon ? "nc-indented" : ""
710
710
  ].filter(Boolean).join(" ");
711
- return /* @__PURE__ */ N(
711
+ return /* @__PURE__ */ k(
712
712
  "button",
713
713
  {
714
- className: m,
715
- onClick: () => f(d),
716
- disabled: d.disabled,
714
+ className: b,
715
+ onClick: () => h(u),
716
+ disabled: u.disabled,
717
717
  role: "menuitem",
718
718
  children: [
719
- d.icon && /* @__PURE__ */ s("span", { className: "nc-context-menu-icon", children: d.icon }),
720
- /* @__PURE__ */ s("span", { className: "nc-context-menu-label", children: d.label })
719
+ u.icon && /* @__PURE__ */ s("span", { className: "nc-context-menu-icon", children: u.icon }),
720
+ /* @__PURE__ */ s("span", { className: "nc-context-menu-label", children: u.label })
721
721
  ]
722
722
  },
723
- d.id
723
+ u.id
724
724
  );
725
725
  })
726
726
  }
@@ -741,7 +741,7 @@ function fe({ children: e, onClick: t, ...n }) {
741
741
  t == null || t(a), r();
742
742
  }, ...n, children: e ?? o("common.close") });
743
743
  }
744
- function nr({
744
+ function or({
745
745
  open: e,
746
746
  onClose: t,
747
747
  title: n,
@@ -751,61 +751,61 @@ function nr({
751
751
  footer: a,
752
752
  onOk: c,
753
753
  onSave: l,
754
- onDelete: u,
755
- onCancel: f,
756
- onConnect: b,
757
- closeOnOverlay: d = !0,
758
- primaryDisabled: m = !1,
754
+ onDelete: d,
755
+ onCancel: h,
756
+ onConnect: w,
757
+ closeOnOverlay: u = !0,
758
+ primaryDisabled: b = !1,
759
759
  fullScreen: A = !1,
760
760
  hideTitleBar: v = !1,
761
- className: w = "",
762
- onContentHeightChange: y
761
+ className: y = "",
762
+ onContentHeightChange: x
763
763
  }) {
764
- const h = F(null), p = F(null), { t: g } = re(), x = { close: t }, C = (S) => {
765
- d && S.target === S.currentTarget && t();
764
+ const m = F(null), f = F(null), { t: p } = re(), g = { close: t }, C = (S) => {
765
+ u && S.target === S.currentTarget && t();
766
766
  };
767
767
  if (D(() => {
768
- e && h.current && h.current.focus();
768
+ e && m.current && m.current.focus();
769
769
  }, [e]), D(() => {
770
- if (!y || !p.current) return;
771
- const S = new ResizeObserver((L) => {
772
- for (const k of L) {
773
- const $ = k.contentRect.height;
774
- y($);
770
+ if (!x || !f.current) return;
771
+ const S = new ResizeObserver((E) => {
772
+ for (const N of E) {
773
+ const I = N.contentRect.height;
774
+ x(I);
775
775
  }
776
776
  });
777
- return S.observe(p.current), () => {
777
+ return S.observe(f.current), () => {
778
778
  S.disconnect();
779
779
  };
780
- }, [y]), !e) return null;
780
+ }, [x]), !e) return null;
781
781
  const T = () => {
782
782
  switch (i) {
783
783
  case "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") }) });
784
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(te, { variant: "primary", onClick: c ?? t, disabled: b, children: p("common.ok") }) });
785
785
  case "ok-cancel":
786
- return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
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") })
786
+ return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
787
+ /* @__PURE__ */ s(fe, { onClick: h, children: p("common.cancel") }),
788
+ /* @__PURE__ */ s(te, { variant: "primary", onClick: c ?? t, disabled: b, children: p("common.ok") })
789
789
  ] });
790
790
  case "save-cancel":
791
- return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
792
- /* @__PURE__ */ s(fe, { onClick: f, children: g("common.cancel") }),
793
- /* @__PURE__ */ s(te, { variant: "primary", onClick: l, disabled: m, children: g("common.save") })
791
+ return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
792
+ /* @__PURE__ */ s(fe, { onClick: h, children: p("common.cancel") }),
793
+ /* @__PURE__ */ s(te, { variant: "primary", onClick: l, disabled: b, children: p("common.save") })
794
794
  ] });
795
795
  case "delete-cancel":
796
- return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
797
- /* @__PURE__ */ s(fe, { onClick: f, children: g("common.cancel") }),
798
- /* @__PURE__ */ s(te, { variant: "danger", onClick: u, disabled: m, children: g("common.delete") })
796
+ return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
797
+ /* @__PURE__ */ s(fe, { onClick: h, children: p("common.cancel") }),
798
+ /* @__PURE__ */ s(te, { variant: "danger", onClick: d, disabled: b, children: p("common.delete") })
799
799
  ] });
800
800
  case "connect":
801
- return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
802
- /* @__PURE__ */ s(fe, { onClick: f, children: g("common.cancel") }),
803
- /* @__PURE__ */ s(te, { variant: "primary", onClick: b, disabled: m, children: g("common.connect") })
801
+ return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
802
+ /* @__PURE__ */ s(fe, { onClick: h, children: p("common.cancel") }),
803
+ /* @__PURE__ */ s(te, { variant: "primary", onClick: w, disabled: b, children: p("common.connect") })
804
804
  ] });
805
805
  case "close":
806
806
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(fe, { variant: "primary" }) });
807
807
  case "gotit":
808
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(fe, { variant: "primary", children: g("common.gotit") }) });
808
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(fe, { variant: "primary", children: p("common.gotit") }) });
809
809
  case "custom":
810
810
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: a });
811
811
  case "none":
@@ -813,27 +813,27 @@ function nr({
813
813
  default:
814
814
  return null;
815
815
  }
816
- }, E = /* @__PURE__ */ s(et.Provider, { value: x, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${A ? " nc-fullscreen" : ""}`, onClick: C, children: /* @__PURE__ */ N(
816
+ }, M = /* @__PURE__ */ s(et.Provider, { value: g, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${A ? " nc-fullscreen" : ""}`, onClick: C, children: /* @__PURE__ */ k(
817
817
  "div",
818
818
  {
819
- ref: h,
820
- className: `nc-dialog-container ${w}`,
819
+ ref: m,
820
+ className: `nc-dialog-container ${y}`,
821
821
  style: o,
822
822
  tabIndex: -1,
823
823
  role: "dialog",
824
824
  "aria-modal": "true",
825
825
  "aria-labelledby": v ? void 0 : "nc-dialog-title",
826
826
  children: [
827
- !v && /* @__PURE__ */ N("div", { className: "nc-dialog-header", children: [
827
+ !v && /* @__PURE__ */ k("div", { className: "nc-dialog-header", children: [
828
828
  /* @__PURE__ */ s("h3", { id: "nc-dialog-title", className: "nc-dialog-title", children: n }),
829
829
  /* @__PURE__ */ s(Ze, { onClick: t, "aria-label": "Close dialog" })
830
830
  ] }),
831
- /* @__PURE__ */ s("div", { ref: p, className: "nc-dialog-content", children: r }),
831
+ /* @__PURE__ */ s("div", { ref: f, className: "nc-dialog-content", children: r }),
832
832
  T()
833
833
  ]
834
834
  }
835
835
  ) }) });
836
- return A ? Ae(E, document.body) : E;
836
+ return A ? Ae(M, document.body) : M;
837
837
  }
838
838
  function Wt({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
839
839
  const r = t === "small" ? 28 : 34;
@@ -892,7 +892,7 @@ function Ht({ visible: e, onClick: t, size: n = "default" }) {
892
892
  }
893
893
  );
894
894
  }
895
- function rr({
895
+ function sr({
896
896
  value: e,
897
897
  defaultValue: t = "",
898
898
  onChange: n,
@@ -902,27 +902,27 @@ function rr({
902
902
  placeholder: a,
903
903
  disabled: c,
904
904
  label: l,
905
- clearable: u = !0,
906
- type: f = "text",
907
- className: b = "",
908
- size: d = "default",
909
- appearance: m = "default",
905
+ clearable: d = !0,
906
+ type: h = "text",
907
+ className: w = "",
908
+ size: u = "default",
909
+ appearance: b = "default",
910
910
  style: A,
911
911
  leadingIcon: v,
912
- showPasswordToggle: w = !1,
913
- multiline: y = !1,
914
- rows: h = 3,
915
- validator: p,
916
- showErrorMessage: g = !0
912
+ showPasswordToggle: y = !1,
913
+ multiline: x = !1,
914
+ rows: m = 3,
915
+ validator: f,
916
+ showErrorMessage: p = !0
917
917
  }) {
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;
918
+ const g = F(null), C = F(null), T = F(!1), [M, S] = P(!1), [E, N] = P(!1), [I, L] = P(!1), H = e !== void 0, [ae, X] = P(t), K = H ? e : ae, [_, U] = P(K), j = f ? f(K) : null, z = !!j, q = !x && b === "plain", le = q && E, pe = le ? _ : K;
919
919
  D(() => {
920
920
  le || U(K);
921
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 = () => {
922
+ const ve = h === "password", de = ve && y && !c && !x, we = d && pe && !c && (E || I), ye = u === "small" ? 32 : 44;
923
+ let R = 12;
924
+ we && de ? R = ye * 2 : (we || de) && (R = ye);
925
+ const B = v ? u === "small" ? 28 : 34 : void 0, Y = () => {
926
926
  if (!q)
927
927
  return K;
928
928
  const J = _ !== K;
@@ -930,19 +930,19 @@ function rr({
930
930
  }, V = () => {
931
931
  U(K);
932
932
  }, ft = () => {
933
- var J, Z, Ge;
933
+ var J, Z, Ye;
934
934
  if (q) {
935
- U(""), i == null || i(), (J = x.current) == null || J.focus();
935
+ U(""), i == null || i(), (J = g.current) == null || J.focus();
936
936
  return;
937
937
  }
938
- H || X(""), n == null || n(""), i == null || i(), y ? (Z = C.current) == null || Z.focus() : (Ge = x.current) == null || Ge.focus();
938
+ H || X(""), n == null || n(""), i == null || i(), x ? (Z = C.current) == null || Z.focus() : (Ye = g.current) == null || Ye.focus();
939
939
  }, He = (J) => {
940
940
  if (q && J.key === "Escape") {
941
941
  J.preventDefault(), T.current = !0, V(), J.currentTarget.blur();
942
942
  return;
943
943
  }
944
- if (J.key === "Enter" && !y) {
945
- const Z = q ? G() : K;
944
+ if (J.key === "Enter" && !x) {
945
+ const Z = q ? Y() : K;
946
946
  q && (J.preventDefault(), T.current = !0, J.currentTarget.blur()), o == null || o(Z);
947
947
  }
948
948
  }, Ve = (J) => {
@@ -953,26 +953,26 @@ function rr({
953
953
  }
954
954
  H || X(Z), n == null || n(Z);
955
955
  }, Oe = () => {
956
- k(!0), q && U(K);
956
+ N(!0), q && U(K);
957
957
  }, Fe = () => {
958
958
  if (q && T.current) {
959
- T.current = !1, k(!1);
959
+ T.current = !1, N(!1);
960
960
  return;
961
961
  }
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(
962
+ q && Y(), N(!1);
963
+ }, je = `nc-input ${u === "small" ? "nc-small " : ""}${!x && b === "plain" ? "nc-plain " : ""}${z ? "nc-error " : ""}${w}`;
964
+ return /* @__PURE__ */ k(
965
965
  "div",
966
966
  {
967
967
  className: "nc-col",
968
968
  style: { position: "relative", flex: 1, ...A },
969
- onMouseEnter: () => P(!0),
970
- onMouseLeave: () => P(!1),
969
+ onMouseEnter: () => L(!0),
970
+ onMouseLeave: () => L(!1),
971
971
  children: [
972
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(
973
+ /* @__PURE__ */ k("div", { style: { position: "relative", display: "flex", alignItems: x ? "flex-start" : "center" }, children: [
974
+ v && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: x ? void 0 : "100%", top: x ? 10 : void 0 }, children: v }),
975
+ x ? /* @__PURE__ */ s(
976
976
  "textarea",
977
977
  {
978
978
  ref: C,
@@ -986,18 +986,18 @@ function rr({
986
986
  readOnly: c,
987
987
  "aria-disabled": c,
988
988
  tabIndex: c ? -1 : void 0,
989
- rows: h,
989
+ rows: m,
990
990
  style: {
991
991
  width: "100%",
992
- paddingRight: I,
992
+ paddingRight: R,
993
993
  ...B !== void 0 ? { paddingLeft: B } : {}
994
994
  }
995
995
  }
996
996
  ) : /* @__PURE__ */ s(
997
997
  "input",
998
998
  {
999
- ref: x,
1000
- type: ve && E ? "text" : f,
999
+ ref: g,
1000
+ type: ve && M ? "text" : h,
1001
1001
  className: je,
1002
1002
  placeholder: a,
1003
1003
  value: pe,
@@ -1010,20 +1010,20 @@ function rr({
1010
1010
  tabIndex: c ? -1 : void 0,
1011
1011
  style: {
1012
1012
  width: "100%",
1013
- paddingRight: I,
1013
+ paddingRight: R,
1014
1014
  ...B !== void 0 ? { paddingLeft: B } : {}
1015
1015
  }
1016
1016
  }
1017
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 })
1018
+ we && /* @__PURE__ */ s(Wt, { onClick: ft, size: u, rightOffset: de ? ye + 4 : 4 }),
1019
+ de && /* @__PURE__ */ s(Ht, { visible: M, onClick: () => S(!M), size: u })
1020
1020
  ] }),
1021
- z && g && /* @__PURE__ */ s("span", { className: "nc-error-message", children: j })
1021
+ z && p && /* @__PURE__ */ s("span", { className: "nc-error-message", children: j })
1022
1022
  ]
1023
1023
  }
1024
1024
  );
1025
1025
  }
1026
- function or({
1026
+ function ir({
1027
1027
  children: e,
1028
1028
  onClick: t,
1029
1029
  showBorder: n = !0,
@@ -1037,8 +1037,8 @@ function or({
1037
1037
  onClick: (l) => {
1038
1038
  if (t) {
1039
1039
  if (r) {
1040
- const u = window.getSelection();
1041
- if (u && u.toString().length > 0)
1040
+ const d = window.getSelection();
1041
+ if (d && d.toString().length > 0)
1042
1042
  return;
1043
1043
  }
1044
1044
  t(l);
@@ -1058,9 +1058,9 @@ function or({
1058
1058
  }
1059
1059
  );
1060
1060
  }
1061
- function sr({ title: e, titleTools: t, children: n, style: r }) {
1062
- return /* @__PURE__ */ N("div", { className: "nc-list-group", style: r, children: [
1063
- (e || t) && /* @__PURE__ */ N("div", { className: "nc-list-group-title", children: [
1061
+ function cr({ title: e, titleTools: t, children: n, style: r }) {
1062
+ return /* @__PURE__ */ k("div", { className: "nc-list-group", style: r, children: [
1063
+ (e || t) && /* @__PURE__ */ k("div", { className: "nc-list-group-title", children: [
1064
1064
  /* @__PURE__ */ s("div", { children: e }),
1065
1065
  t && /* @__PURE__ */ s("div", { className: "nc-list-group-title-tools", children: t })
1066
1066
  ] }),
@@ -1073,57 +1073,57 @@ function sr({ title: e, titleTools: t, children: n, style: r }) {
1073
1073
  )
1074
1074
  ] });
1075
1075
  }
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]);
1076
+ function ar({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
1077
+ const [i, a] = P(!1), [c, l] = P(""), d = F(null), h = Ie(() => n.filter((u) => u.label.toLowerCase().includes(c.toLowerCase())), [n, c]);
1078
1078
  D(() => {
1079
- function d(m) {
1080
- !(m.target instanceof Node) || !u.current || u.current.contains(m.target) || a(!1);
1079
+ function u(b) {
1080
+ !(b.target instanceof Node) || !d.current || d.current.contains(b.target) || a(!1);
1081
1081
  }
1082
- return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
1082
+ return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
1083
1083
  }, []);
1084
- const b = (d) => {
1085
- e.includes(d) ? t(e.filter((m) => m !== d)) : t([...e, d]);
1084
+ const w = (u) => {
1085
+ e.includes(u) ? t(e.filter((b) => b !== u)) : t([...e, u]);
1086
1086
  };
1087
- return /* @__PURE__ */ N("div", { ref: u, className: "nc-col", style: { position: "relative" }, children: [
1087
+ return /* @__PURE__ */ k("div", { ref: d, className: "nc-col", style: { position: "relative" }, children: [
1088
1088
  o && /* @__PURE__ */ s("span", { className: "nc-label", children: o }),
1089
- /* @__PURE__ */ N("div", { className: "nc-row", style: { flexWrap: "wrap", gap: 6, minHeight: 42, alignItems: "center", border: "1px solid var(--nc-button-border)", borderRadius: 8, background: "var(--nc-button-bg)", padding: "4px 8px" }, children: [
1089
+ /* @__PURE__ */ k("div", { className: "nc-row", style: { flexWrap: "wrap", gap: 6, minHeight: 42, alignItems: "center", border: "1px solid var(--nc-button-border)", borderRadius: 8, background: "var(--nc-button-bg)", padding: "4px 8px" }, children: [
1090
1090
  e.length === 0 && /* @__PURE__ */ s("span", { className: "nc-label", children: r }),
1091
- e.map((d) => {
1092
- const m = n.find((A) => A.value === d);
1093
- return m ? /* @__PURE__ */ N("span", { style: { padding: "4px 8px", borderRadius: 6, display: "inline-flex", alignItems: "center", gap: 4, background: "var(--nc-button-bg)", border: "1px solid var(--nc-button-border)" }, children: [
1094
- m.label,
1091
+ e.map((u) => {
1092
+ const b = n.find((A) => A.value === u);
1093
+ return b ? /* @__PURE__ */ k("span", { style: { padding: "4px 8px", borderRadius: 6, display: "inline-flex", alignItems: "center", gap: 4, background: "var(--nc-button-bg)", border: "1px solid var(--nc-button-border)" }, children: [
1094
+ b.label,
1095
1095
  /* @__PURE__ */ s(
1096
1096
  "button",
1097
1097
  {
1098
1098
  className: "nc-button nc-ghost",
1099
1099
  style: { padding: 0, minHeight: 0, height: 20, width: 20, display: "inline-flex", alignItems: "center", justifyContent: "center", border: "none" },
1100
- onClick: () => b(d),
1101
- "aria-label": `Remove ${m.label}`,
1100
+ onClick: () => w(u),
1101
+ "aria-label": `Remove ${b.label}`,
1102
1102
  children: "✕"
1103
1103
  }
1104
1104
  )
1105
- ] }, d) : null;
1105
+ ] }, u) : null;
1106
1106
  }),
1107
1107
  /* @__PURE__ */ s(
1108
1108
  "input",
1109
1109
  {
1110
1110
  className: "nc-input",
1111
1111
  value: c,
1112
- onChange: (d) => l(d.target.value),
1112
+ onChange: (u) => l(u.target.value),
1113
1113
  onFocus: () => a(!0),
1114
1114
  style: { minWidth: 50, border: "none", background: "transparent", padding: 4, minHeight: 32, flex: 1 }
1115
1115
  }
1116
1116
  )
1117
1117
  ] }),
1118
- i && /* @__PURE__ */ N("div", { className: "nc-combo-dropdown", style: { position: "absolute", top: "100%", left: 0, right: 0, zIndex: 10, marginTop: 4, boxShadow: "0 4px 12px var(--nc-shadow)" }, children: [
1119
- f.map((d) => {
1120
- const m = e.includes(d.value);
1121
- return /* @__PURE__ */ N("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => b(d.value), children: [
1122
- /* @__PURE__ */ s("span", { children: d.label }),
1123
- /* @__PURE__ */ s("span", { children: m ? "✔️" : "" })
1124
- ] }, d.value);
1118
+ i && /* @__PURE__ */ k("div", { className: "nc-combo-dropdown", style: { position: "absolute", top: "100%", left: 0, right: 0, zIndex: 10, marginTop: 4, boxShadow: "0 4px 12px var(--nc-shadow)" }, children: [
1119
+ h.map((u) => {
1120
+ const b = e.includes(u.value);
1121
+ return /* @__PURE__ */ k("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => w(u.value), children: [
1122
+ /* @__PURE__ */ s("span", { children: u.label }),
1123
+ /* @__PURE__ */ s("span", { children: b ? "✔️" : "" })
1124
+ ] }, u.value);
1125
1125
  }),
1126
- f.length === 0 && /* @__PURE__ */ s("div", { className: "nc-section nc-label", children: "No results" })
1126
+ h.length === 0 && /* @__PURE__ */ s("div", { className: "nc-section nc-label", children: "No results" })
1127
1127
  ] })
1128
1128
  ] });
1129
1129
  }
@@ -1147,7 +1147,7 @@ function Ne(e) {
1147
1147
  }
1148
1148
  return `${n}-${r}`;
1149
1149
  }
1150
- function Ye(e) {
1150
+ function Ge(e) {
1151
1151
  if (!e) return "";
1152
1152
  const t = Ne(e);
1153
1153
  if (!/^\d{4}-\d{2}$/.test(t)) return e;
@@ -1158,7 +1158,7 @@ function Ke() {
1158
1158
  const e = /* @__PURE__ */ new Date(), t = e.getFullYear(), n = String(e.getMonth() + 1).padStart(2, "0");
1159
1159
  return `${t}-${n}`;
1160
1160
  }
1161
- function cr({
1161
+ function lr({
1162
1162
  startMonth: e,
1163
1163
  endMonth: t,
1164
1164
  onChange: n,
@@ -1167,166 +1167,210 @@ function cr({
1167
1167
  disabled: i = !1,
1168
1168
  size: a = "default"
1169
1169
  }) {
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);
1170
+ const [c, l] = P(!1), [d, h] = P(""), [w, u] = P(""), [b, A] = P({ top: 0, left: 0, width: 0, right: void 0 }), v = F(null), y = F(null);
1171
1171
  D(() => {
1172
1172
  if (c && v.current) {
1173
- const k = v.current.getBoundingClientRect(), P = Math.max(k.width, 400);
1174
- window.innerWidth - k.left < P && k.right >= P ? A({
1175
- top: k.bottom + 4,
1173
+ const N = v.current.getBoundingClientRect(), L = Math.max(N.width, 400);
1174
+ window.innerWidth - N.left < L && N.right >= L ? A({
1175
+ top: N.bottom + 4,
1176
1176
  left: 0,
1177
1177
  // Not used but type needs it, let's just use 0
1178
- right: window.innerWidth - k.right,
1179
- width: P
1178
+ right: window.innerWidth - N.right,
1179
+ width: L
1180
1180
  }) : A({
1181
- top: k.bottom + 4,
1182
- left: k.left,
1181
+ top: N.bottom + 4,
1182
+ left: N.left,
1183
1183
  right: void 0,
1184
- width: P
1184
+ width: L
1185
1185
  });
1186
1186
  }
1187
1187
  }, [c]), D(() => {
1188
1188
  if (!c) return;
1189
- const k = ($) => {
1190
- v.current && !v.current.contains($.target) && w.current && !w.current.contains($.target) && l(!1);
1189
+ const N = (I) => {
1190
+ v.current && !v.current.contains(I.target) && y.current && !y.current.contains(I.target) && l(!1);
1191
1191
  };
1192
- return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
1192
+ return document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
1193
1193
  }, [c]);
1194
- const y = () => {
1195
- f(e || Ke()), d(t || Ke()), l(!0);
1196
- }, h = () => {
1194
+ const x = () => {
1195
+ h(e || Ke()), u(t || Ke()), l(!0);
1196
+ }, m = () => {
1197
1197
  l(!1);
1198
- }, p = () => {
1199
- const k = Se(u), $ = Se(b);
1200
- if (k || $)
1198
+ }, f = () => {
1199
+ const N = Se(d), I = Se(w);
1200
+ if (N || I)
1201
1201
  return;
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(
1202
+ const L = Ne(d), H = Ne(w);
1203
+ L && H && (n == null || n(L, H)), l(!1);
1204
+ }, p = e && t ? `${Ge(e)} - ${Ge(t)}` : "Select month range", g = Se(d), C = Se(w), T = Ne(d), M = Ne(w), S = T && M && T > M, E = c ? Ae(
1205
1205
  /* @__PURE__ */ s(
1206
1206
  "div",
1207
1207
  {
1208
- ref: w,
1208
+ ref: y,
1209
1209
  className: "nc-month-range-picker-popup",
1210
1210
  style: {
1211
1211
  position: "fixed",
1212
- top: m.top,
1213
- ...m.right !== void 0 ? { right: m.right } : { left: m.left },
1214
- width: m.width,
1212
+ top: b.top,
1213
+ ...b.right !== void 0 ? { right: b.right } : { left: b.left },
1214
+ width: b.width,
1215
1215
  zIndex: 1e3
1216
1216
  },
1217
- children: /* @__PURE__ */ N("div", { className: "nc-month-range-picker-content", children: [
1218
- /* @__PURE__ */ N("div", { className: "nc-month-range-picker-row", children: [
1219
- /* @__PURE__ */ N("div", { className: "nc-month-range-picker-column", children: [
1217
+ children: /* @__PURE__ */ k("div", { className: "nc-month-range-picker-content", children: [
1218
+ /* @__PURE__ */ k("div", { className: "nc-month-range-picker-row", children: [
1219
+ /* @__PURE__ */ k("div", { className: "nc-month-range-picker-column", children: [
1220
1220
  /* @__PURE__ */ s("label", { className: "nc-label", children: "Start Month" }),
1221
1221
  /* @__PURE__ */ s(
1222
1222
  "input",
1223
1223
  {
1224
1224
  type: "text",
1225
- className: `nc-month-input ${x ? "nc-error" : ""}`,
1226
- value: u,
1227
- onChange: (k) => f(k.target.value),
1225
+ className: `nc-month-input ${g ? "nc-error" : ""}`,
1226
+ value: d,
1227
+ onChange: (N) => h(N.target.value),
1228
1228
  placeholder: "YY-M(M) or YYYY-M(M)"
1229
1229
  }
1230
1230
  ),
1231
- x && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: x })
1231
+ g && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: g })
1232
1232
  ] }),
1233
- /* @__PURE__ */ N("div", { className: "nc-month-range-picker-column", children: [
1233
+ /* @__PURE__ */ k("div", { className: "nc-month-range-picker-column", children: [
1234
1234
  /* @__PURE__ */ s("label", { className: "nc-label", children: "End Month" }),
1235
1235
  /* @__PURE__ */ s(
1236
1236
  "input",
1237
1237
  {
1238
1238
  type: "text",
1239
1239
  className: `nc-month-input ${C ? "nc-error" : ""}`,
1240
- value: b,
1241
- onChange: (k) => d(k.target.value),
1240
+ value: w,
1241
+ onChange: (N) => u(N.target.value),
1242
1242
  placeholder: "YY-M(M) or YYYY-M(M)"
1243
1243
  }
1244
1244
  ),
1245
1245
  C && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: C })
1246
1246
  ] })
1247
1247
  ] }),
1248
- S && !x && !C && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1249
- /* @__PURE__ */ N("div", { className: "nc-month-range-picker-footer", children: [
1248
+ S && !g && !C && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1249
+ /* @__PURE__ */ k("div", { className: "nc-month-range-picker-footer", children: [
1250
1250
  /* @__PURE__ */ s(
1251
1251
  te,
1252
1252
  {
1253
1253
  variant: "primary",
1254
- onClick: p,
1255
- disabled: !u || !b || !!x || !!C || !!S,
1254
+ onClick: f,
1255
+ disabled: !d || !w || !!g || !!C || !!S,
1256
1256
  children: "Apply"
1257
1257
  }
1258
1258
  ),
1259
- /* @__PURE__ */ s(te, { variant: "ghost", onClick: h, children: "Cancel" })
1259
+ /* @__PURE__ */ s(te, { variant: "ghost", onClick: m, children: "Cancel" })
1260
1260
  ] })
1261
1261
  ] })
1262
1262
  }
1263
1263
  ),
1264
1264
  document.body
1265
1265
  ) : null;
1266
- return /* @__PURE__ */ N("div", { className: `nc-month-range-picker ${a === "small" ? "nc-small " : ""}${o}`, children: [
1266
+ return /* @__PURE__ */ k("div", { className: `nc-month-range-picker ${a === "small" ? "nc-small " : ""}${o}`, children: [
1267
1267
  r && /* @__PURE__ */ s("label", { className: `nc-label${a === "small" ? " nc-small" : ""}`, children: r }),
1268
1268
  /* @__PURE__ */ s(
1269
1269
  "button",
1270
1270
  {
1271
1271
  ref: v,
1272
1272
  className: `nc-month-range-picker-input${a === "small" ? " nc-small" : ""}`,
1273
- onClick: y,
1273
+ onClick: x,
1274
1274
  disabled: i,
1275
- children: g
1275
+ children: p
1276
1276
  }
1277
1277
  ),
1278
- L
1278
+ E
1279
1279
  ] });
1280
1280
  }
1281
- function ar({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: a, size: c = "default" }) {
1282
- const l = c === "small", u = () => {
1283
- const d = e - o;
1284
- n !== void 0 && d < n || t(parseFloat(d.toFixed(10)));
1285
- }, f = () => {
1286
- const d = e + o;
1287
- r !== void 0 && d > r || t(parseFloat(d.toFixed(10)));
1281
+ const Vt = 5, Ot = 3;
1282
+ function dr({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: a, size: c = "default" }) {
1283
+ const l = c === "small", d = F(null), h = F(!1), [w, u] = P(!1), b = () => {
1284
+ const p = e - o;
1285
+ n !== void 0 && p < n || t(parseFloat(p.toFixed(10)));
1286
+ }, A = () => {
1287
+ const p = e + o;
1288
+ r !== void 0 && p > r || t(parseFloat(p.toFixed(10)));
1289
+ }, v = (p) => {
1290
+ const g = parseFloat(p.target.value);
1291
+ isNaN(g) || n !== void 0 && g < n || r !== void 0 && g > r || t(g);
1292
+ }, y = (p) => {
1293
+ a || p.button !== 0 || (h.current = !1, d.current = {
1294
+ startY: p.clientY,
1295
+ startValue: e,
1296
+ pointerId: p.pointerId,
1297
+ hasMoved: !1,
1298
+ lastValue: e
1299
+ }, p.currentTarget.setPointerCapture(p.pointerId));
1300
+ }, x = (p) => {
1301
+ const g = d.current;
1302
+ if (!g || g.pointerId !== p.pointerId) return;
1303
+ const C = g.startY - p.clientY;
1304
+ if (Math.abs(C) >= Ot && (g.hasMoved = !0, h.current = !0, u(!0)), !g.hasMoved) return;
1305
+ const T = Math.trunc(C / Vt);
1306
+ let M = g.startValue + T * o;
1307
+ n !== void 0 && (M = Math.max(n, M)), r !== void 0 && (M = Math.min(r, M)), M = parseFloat(M.toFixed(10)), M !== g.lastValue && (g.lastValue = M, t(M));
1308
+ }, m = (p) => {
1309
+ const g = d.current;
1310
+ !g || g.pointerId !== p.pointerId || (p.currentTarget.hasPointerCapture(p.pointerId) && p.currentTarget.releasePointerCapture(p.pointerId), d.current = null, u(!1));
1311
+ }, f = (p) => (g) => {
1312
+ if (h.current) {
1313
+ h.current = !1, g.preventDefault();
1314
+ return;
1315
+ }
1316
+ p();
1288
1317
  };
1289
- return /* @__PURE__ */ N("div", { className: `nc-col nc-number-input-col ${l ? "nc-small" : ""}`, children: [
1318
+ return /* @__PURE__ */ k("div", { className: `nc-col nc-number-input-col ${l ? "nc-small" : ""}`, children: [
1290
1319
  i && /* @__PURE__ */ s("span", { className: `nc-label ${l ? "nc-small" : ""}`, children: i }),
1291
- /* @__PURE__ */ N("div", { className: `nc-number-input-container ${l ? "nc-small" : ""}`, children: [
1320
+ /* @__PURE__ */ k("div", { className: `nc-number-input-container ${l ? "nc-small" : ""}`, children: [
1292
1321
  /* @__PURE__ */ s(
1293
1322
  "input",
1294
1323
  {
1295
1324
  className: `nc-input nc-number-input ${l ? "nc-small" : ""}`,
1296
1325
  type: "number",
1297
1326
  value: e,
1298
- onChange: (d) => {
1299
- const m = parseFloat(d.target.value);
1300
- isNaN(m) || n !== void 0 && m < n || r !== void 0 && m > r || t(m);
1301
- },
1327
+ onChange: v,
1302
1328
  min: n,
1303
1329
  max: r,
1304
1330
  step: o,
1305
1331
  disabled: a
1306
1332
  }
1307
1333
  ),
1308
- /* @__PURE__ */ s(
1309
- "button",
1310
- {
1311
- className: `nc-button nc-ghost nc-number-input-button ${l ? "nc-small" : ""}`,
1312
- onClick: u,
1313
- disabled: a || n !== void 0 && e <= n,
1314
- children: "−"
1315
- }
1316
- ),
1317
- /* @__PURE__ */ s(
1318
- "button",
1334
+ /* @__PURE__ */ k(
1335
+ "div",
1319
1336
  {
1320
- className: `nc-button nc-ghost nc-number-input-button ${l ? "nc-small" : ""}`,
1321
- onClick: f,
1322
- disabled: a || r !== void 0 && e >= r,
1323
- children: "+"
1337
+ className: `nc-number-input-spinners ${l ? "nc-small" : ""} ${a ? "nc-disabled" : ""} ${w ? "nc-dragging" : ""}`,
1338
+ children: [
1339
+ /* @__PURE__ */ s(
1340
+ "button",
1341
+ {
1342
+ className: `nc-number-input-spin nc-number-input-spin-up ${l ? "nc-small" : ""}`,
1343
+ onClick: f(A),
1344
+ onPointerDown: y,
1345
+ onPointerMove: x,
1346
+ onPointerUp: m,
1347
+ onPointerCancel: m,
1348
+ disabled: a || r !== void 0 && e >= r,
1349
+ tabIndex: -1,
1350
+ children: "▲"
1351
+ }
1352
+ ),
1353
+ /* @__PURE__ */ s(
1354
+ "button",
1355
+ {
1356
+ className: `nc-number-input-spin nc-number-input-spin-down ${l ? "nc-small" : ""}`,
1357
+ onClick: f(b),
1358
+ onPointerDown: y,
1359
+ onPointerMove: x,
1360
+ onPointerUp: m,
1361
+ onPointerCancel: m,
1362
+ disabled: a || n !== void 0 && e <= n,
1363
+ tabIndex: -1,
1364
+ children: "▼"
1365
+ }
1366
+ )
1367
+ ]
1324
1368
  }
1325
1369
  )
1326
1370
  ] })
1327
1371
  ] });
1328
1372
  }
1329
- function lr({
1373
+ function ur({
1330
1374
  value: e,
1331
1375
  onChange: t,
1332
1376
  min: n = 0,
@@ -1335,30 +1379,30 @@ function lr({
1335
1379
  label: i,
1336
1380
  disabled: a,
1337
1381
  showValue: c = !0,
1338
- formatValue: l = (f) => f.toString(),
1339
- width: u = 200
1382
+ formatValue: l = (h) => h.toString(),
1383
+ width: d = 200
1340
1384
  }) {
1341
- const f = (d) => {
1342
- const m = parseFloat(d.target.value);
1343
- t(m);
1344
- }, b = (e - n) / (r - n) * 100;
1345
- return /* @__PURE__ */ N("div", { className: "nc-col", style: { gap: 6 }, children: [
1385
+ const h = (u) => {
1386
+ const b = parseFloat(u.target.value);
1387
+ t(b);
1388
+ }, w = (e - n) / (r - n) * 100;
1389
+ return /* @__PURE__ */ k("div", { className: "nc-col", style: { gap: 6 }, children: [
1346
1390
  i && /* @__PURE__ */ s("span", { className: "nc-label", children: i }),
1347
- /* @__PURE__ */ N("div", { style: { display: "flex", gap: 12, alignItems: "center" }, children: [
1391
+ /* @__PURE__ */ k("div", { style: { display: "flex", gap: 12, alignItems: "center" }, children: [
1348
1392
  /* @__PURE__ */ s(
1349
1393
  "input",
1350
1394
  {
1351
1395
  type: "range",
1352
1396
  className: "nc-slider",
1353
1397
  value: e,
1354
- onChange: f,
1398
+ onChange: h,
1355
1399
  min: n,
1356
1400
  max: r,
1357
1401
  step: o,
1358
1402
  disabled: a,
1359
1403
  style: {
1360
- width: u,
1361
- "--nc-slider-percentage": `${b}%`
1404
+ width: d,
1405
+ "--nc-slider-percentage": `${w}%`
1362
1406
  }
1363
1407
  }
1364
1408
  ),
@@ -1378,13 +1422,13 @@ function lr({
1378
1422
  ] })
1379
1423
  ] });
1380
1424
  }
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 }) {
1425
+ const Ft = ({ 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" }) });
1426
+ function jt({ children: e, className: t = "", style: n }) {
1383
1427
  return /* @__PURE__ */ s("div", { className: `nc-tab-panel ${t}`, style: n, children: e });
1384
1428
  }
1385
- function dr({ active: e, children: t, keepMounted: n = !1, className: r = "", style: o }) {
1429
+ function pr({ active: e, children: t, keepMounted: n = !1, className: r = "", style: o }) {
1386
1430
  const i = At.toArray(t).filter(
1387
- (c) => St(c) && (c.type === Ot || c.type.displayName === "TabPanel")
1431
+ (c) => St(c) && (c.type === jt || c.type.displayName === "TabPanel")
1388
1432
  );
1389
1433
  if (n)
1390
1434
  return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: i.map((c) => {
@@ -1403,89 +1447,89 @@ function dr({ active: e, children: t, keepMounted: n = !1, className: r = "", st
1403
1447
  const a = i.find((c) => c.props.tab === e);
1404
1448
  return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: a });
1405
1449
  }
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);
1450
+ function fr({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: a, multiline: c, orientation: l = "horizontal", style: d }) {
1451
+ const h = F(null), [w, u] = P(!1), [b, A] = P(!1), v = l === "verticalLeft" || l === "verticalRight", y = F(!1), x = F(0), m = F(0), f = F(!1);
1408
1452
  D(() => {
1409
1453
  const S = () => {
1410
- if (f.current)
1454
+ if (h.current)
1411
1455
  if (v) {
1412
- const { scrollTop: k, scrollHeight: $, clientHeight: P } = f.current;
1413
- d(k > 1), A(k < $ - P - 1);
1456
+ const { scrollTop: N, scrollHeight: I, clientHeight: L } = h.current;
1457
+ u(N > 1), A(N < I - L - 1);
1414
1458
  } else {
1415
- const { scrollLeft: k, scrollWidth: $, clientWidth: P } = f.current;
1416
- d(k > 1), A(k < $ - P - 1);
1459
+ const { scrollLeft: N, scrollWidth: I, clientWidth: L } = h.current;
1460
+ u(N > 1), A(N < I - L - 1);
1417
1461
  }
1418
- }, L = f.current;
1419
- if (L)
1420
- return S(), L.addEventListener("scroll", S), window.addEventListener("resize", S), () => {
1421
- L.removeEventListener("scroll", S), window.removeEventListener("resize", S);
1462
+ }, E = h.current;
1463
+ if (E)
1464
+ return S(), E.addEventListener("scroll", S), window.addEventListener("resize", S), () => {
1465
+ E.removeEventListener("scroll", S), window.removeEventListener("resize", S);
1422
1466
  };
1423
1467
  }, [e, v]);
1424
- const g = (S) => {
1425
- f.current && (w.current = !0, p.current = !1, y.current = v ? S.clientY : S.clientX, h.current = v ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1426
- }, x = (S) => {
1427
- if (!w.current || !f.current) return;
1428
- const L = v ? S.clientY : S.clientX, k = y.current - L;
1429
- Math.abs(k) > 3 && (p.current = !0), v ? f.current.scrollTop = h.current + k : f.current.scrollLeft = h.current + k;
1468
+ const p = (S) => {
1469
+ h.current && (y.current = !0, f.current = !1, x.current = v ? S.clientY : S.clientX, m.current = v ? h.current.scrollTop : h.current.scrollLeft, h.current.style.cursor = "grabbing", h.current.style.userSelect = "none");
1470
+ }, g = (S) => {
1471
+ if (!y.current || !h.current) return;
1472
+ const E = v ? S.clientY : S.clientX, N = x.current - E;
1473
+ Math.abs(N) > 3 && (f.current = !0), v ? h.current.scrollTop = m.current + N : h.current.scrollLeft = m.current + N;
1430
1474
  }, C = () => {
1431
- f.current && (w.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1475
+ h.current && (y.current = !1, h.current.style.cursor = "", h.current.style.userSelect = "");
1432
1476
  }, T = () => {
1433
1477
  C();
1434
1478
  };
1435
1479
  D(() => {
1436
- const S = f.current;
1480
+ const S = h.current;
1437
1481
  if (!S || v) return;
1438
- const L = (k) => {
1439
- k.deltaY !== 0 && (k.preventDefault(), S.scrollLeft += k.deltaY * 0.3);
1482
+ const E = (N) => {
1483
+ N.deltaY !== 0 && (N.preventDefault(), S.scrollLeft += N.deltaY * 0.3);
1440
1484
  };
1441
- return S.addEventListener("wheel", L, { passive: !1 }), () => {
1442
- S.removeEventListener("wheel", L);
1485
+ return S.addEventListener("wheel", E, { passive: !1 }), () => {
1486
+ S.removeEventListener("wheel", E);
1443
1487
  };
1444
1488
  }, [v]);
1445
- const E = (S) => {
1446
- p.current || n(S);
1489
+ const M = (S) => {
1490
+ f.current || n(S);
1447
1491
  };
1448
- return /* @__PURE__ */ N("div", { className: `nc-tab-container ${v ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: u, children: [
1449
- /* @__PURE__ */ N("div", { className: "nc-tab-scroll-wrapper", children: [
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 }) }),
1492
+ return /* @__PURE__ */ k("div", { className: `nc-tab-container ${v ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: d, children: [
1493
+ /* @__PURE__ */ k("div", { className: "nc-tab-scroll-wrapper", children: [
1494
+ w && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${v ? "nc-top" : "nc-left"}`, children: v ? /* @__PURE__ */ s(Ft, { size: 16 }) : /* @__PURE__ */ s(xt, { size: 16 }) }),
1451
1495
  /* @__PURE__ */ s(
1452
1496
  "div",
1453
1497
  {
1454
- ref: f,
1498
+ ref: h,
1455
1499
  className: `nc-tab-scroll ${c ? "nc-multiline" : ""}`,
1456
- onMouseDown: g,
1457
- onMouseMove: x,
1500
+ onMouseDown: p,
1501
+ onMouseMove: g,
1458
1502
  onMouseUp: C,
1459
1503
  onMouseLeave: T,
1460
1504
  style: { cursor: "grab" },
1461
1505
  children: e.map((S) => {
1462
- const L = typeof S == "string" ? S : S.id, k = typeof S == "string" ? S : S.label, $ = r && !(o != null && o.includes(L));
1463
- return /* @__PURE__ */ N(
1506
+ const E = typeof S == "string" ? S : S.id, N = typeof S == "string" ? S : S.label, I = r && !(o != null && o.includes(E));
1507
+ return /* @__PURE__ */ k(
1464
1508
  "div",
1465
1509
  {
1466
- className: `nc-tab-item ${t === L ? "nc-active" : ""} ${$ ? "nc-closable" : ""}`,
1467
- onClick: () => E(L),
1510
+ className: `nc-tab-item ${t === E ? "nc-active" : ""} ${I ? "nc-closable" : ""}`,
1511
+ onClick: () => M(E),
1468
1512
  role: "button",
1469
1513
  tabIndex: 0,
1470
- onKeyDown: (P) => {
1471
- (P.key === "Enter" || P.key === " ") && n(L);
1514
+ onKeyDown: (L) => {
1515
+ (L.key === "Enter" || L.key === " ") && n(E);
1472
1516
  },
1473
1517
  children: [
1474
- /* @__PURE__ */ s("span", { className: "nc-tab-label", children: v ? k : typeof k == "string" ? k.toUpperCase() : k }),
1475
- $ && /* @__PURE__ */ s(
1518
+ /* @__PURE__ */ s("span", { className: "nc-tab-label", children: v ? N : typeof N == "string" ? N.toUpperCase() : N }),
1519
+ I && /* @__PURE__ */ s(
1476
1520
  "span",
1477
1521
  {
1478
1522
  className: "nc-tab-close",
1479
1523
  role: "button",
1480
1524
  tabIndex: 0,
1481
- "aria-label": `Close ${typeof k == "string" ? k : L}`,
1482
- onClick: (P) => {
1483
- P.stopPropagation(), r(L);
1525
+ "aria-label": `Close ${typeof N == "string" ? N : E}`,
1526
+ onClick: (L) => {
1527
+ L.stopPropagation(), r(E);
1484
1528
  },
1485
- onKeyDown: (P) => {
1486
- (P.key === "Enter" || P.key === " ") && (P.stopPropagation(), r(L));
1529
+ onKeyDown: (L) => {
1530
+ (L.key === "Enter" || L.key === " ") && (L.stopPropagation(), r(E));
1487
1531
  },
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: [
1532
+ children: /* @__PURE__ */ k("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1489
1533
  /* @__PURE__ */ s("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
1490
1534
  /* @__PURE__ */ s("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
1491
1535
  ] })
@@ -1493,18 +1537,18 @@ function ur({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1493
1537
  )
1494
1538
  ]
1495
1539
  },
1496
- L
1540
+ E
1497
1541
  );
1498
1542
  })
1499
1543
  }
1500
1544
  ),
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 }) })
1545
+ b && /* @__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 }) })
1502
1546
  ] }),
1503
1547
  a && /* @__PURE__ */ s("div", { className: "nc-tab-toolbar", children: a })
1504
1548
  ] });
1505
1549
  }
1506
- function pr({ checked: e, onChange: t, disabled: n, label: r }) {
1507
- return /* @__PURE__ */ N(
1550
+ function hr({ checked: e, onChange: t, disabled: n, label: r }) {
1551
+ return /* @__PURE__ */ k(
1508
1552
  "label",
1509
1553
  {
1510
1554
  className: "nc-row",
@@ -1567,24 +1611,24 @@ const _e = [
1567
1611
  "var(--nc-csv-col-8)",
1568
1612
  "var(--nc-csv-col-9)"
1569
1613
  ];
1570
- function Ft(e, t) {
1614
+ function Yt(e, t) {
1571
1615
  const r = e.slice(0, t).split(`
1572
1616
  `), o = r.length, a = r[o - 1].split(" "), c = a.length, l = a[c - 1].length + 1;
1573
1617
  return { line: o, column: c, character: l, offset: t };
1574
1618
  }
1575
- function jt(e, t, n, r) {
1619
+ function Gt(e, t, n, r) {
1576
1620
  const o = e.split(`
1577
1621
  `), i = Math.max(1, Math.min(t, o.length));
1578
1622
  let a = 0;
1579
- for (let b = 0; b < i - 1; b++)
1580
- a += o[b].length + 1;
1581
- const l = o[i - 1].split(" "), u = Math.max(1, Math.min(n, l.length));
1582
- for (let b = 0; b < u - 1; b++)
1583
- a += l[b].length + 1;
1584
- const f = Math.max(1, Math.min(r, l[u - 1].length + 1));
1585
- return a += f - 1, a;
1623
+ for (let w = 0; w < i - 1; w++)
1624
+ a += o[w].length + 1;
1625
+ const l = o[i - 1].split(" "), d = Math.max(1, Math.min(n, l.length));
1626
+ for (let w = 0; w < d - 1; w++)
1627
+ a += l[w].length + 1;
1628
+ const h = Math.max(1, Math.min(r, l[d - 1].length + 1));
1629
+ return a += h - 1, a;
1586
1630
  }
1587
- function Gt(e, t) {
1631
+ function Kt(e, t) {
1588
1632
  const n = e.split(`
1589
1633
  `), r = Math.max(1, Math.min(t, n.length));
1590
1634
  let o = 0;
@@ -1592,79 +1636,79 @@ function Gt(e, t) {
1592
1636
  o += n[i].length + 1;
1593
1637
  return o;
1594
1638
  }
1595
- const fr = Ct(
1596
- function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: a = !1, onCursorChange: c, highlightLine: l }, u) {
1597
- const f = F(null), b = F(null), d = F(null);
1598
- $t(u, () => ({
1599
- goToLine(h) {
1600
- const p = f.current;
1601
- if (!p) return;
1602
- const g = Gt(t, h);
1603
- p.focus(), p.setSelectionRange(g, g);
1604
- const x = parseFloat(getComputedStyle(p).lineHeight) || 18;
1605
- p.scrollTop = (Math.max(1, h) - 1) * x, A(), m();
1639
+ const mr = Ct(
1640
+ function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: a = !1, onCursorChange: c, highlightLine: l }, d) {
1641
+ const h = F(null), w = F(null), u = F(null);
1642
+ Mt(d, () => ({
1643
+ goToLine(m) {
1644
+ const f = h.current;
1645
+ if (!f) return;
1646
+ const p = Kt(t, m);
1647
+ f.focus(), f.setSelectionRange(p, p);
1648
+ const g = parseFloat(getComputedStyle(f).lineHeight) || 18;
1649
+ f.scrollTop = (Math.max(1, m) - 1) * g, A(), b();
1606
1650
  },
1607
- goToPosition(h, p, g) {
1608
- const x = f.current;
1609
- if (!x) return;
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();
1651
+ goToPosition(m, f, p) {
1652
+ const g = h.current;
1653
+ if (!g) return;
1654
+ const C = Gt(t, m, f, p);
1655
+ g.focus(), g.setSelectionRange(C, C);
1656
+ const T = parseFloat(getComputedStyle(g).lineHeight) || 18;
1657
+ g.scrollTop = (Math.max(1, m) - 1) * T, A(), b();
1614
1658
  }
1615
1659
  }), [t]);
1616
- const m = Y(() => {
1617
- if (!c || !f.current) return;
1618
- const h = Ft(t, f.current.selectionStart);
1619
- c(h);
1620
- }, [c, t]), A = Y(() => {
1621
- const h = f.current;
1622
- h && (b.current && (b.current.scrollTop = h.scrollTop, b.current.scrollLeft = h.scrollLeft), d.current && (d.current.scrollTop = h.scrollTop));
1660
+ const b = G(() => {
1661
+ if (!c || !h.current) return;
1662
+ const m = Yt(t, h.current.selectionStart);
1663
+ c(m);
1664
+ }, [c, t]), A = G(() => {
1665
+ const m = h.current;
1666
+ m && (w.current && (w.current.scrollTop = m.scrollTop, w.current.scrollLeft = m.scrollLeft), u.current && (u.current.scrollTop = m.scrollTop));
1623
1667
  }, []);
1624
1668
  D(() => {
1625
1669
  if (l == null || l < 1) return;
1626
- const h = f.current;
1627
- if (!h) return;
1628
- const p = parseFloat(getComputedStyle(h).lineHeight) || 18, g = (l - 1) * p, x = g + p;
1629
- (g < h.scrollTop || x > h.scrollTop + h.clientHeight) && (h.scrollTop = g - h.clientHeight / 2 + p / 2), A();
1670
+ const m = h.current;
1671
+ if (!m) return;
1672
+ const f = parseFloat(getComputedStyle(m).lineHeight) || 18, p = (l - 1) * f, g = p + f;
1673
+ (p < m.scrollTop || g > m.scrollTop + m.clientHeight) && (m.scrollTop = p - m.clientHeight / 2 + f / 2), A();
1630
1674
  }, [l]);
1631
- const v = Me(() => t.split(`
1632
- `).length, [t]), w = () => {
1633
- const h = [];
1634
- for (let p = 1; p <= v; p++)
1635
- h.push(
1636
- /* @__PURE__ */ s("div", { className: `nc-csv-line-number ${l === p ? "nc-csv-highlight" : ""}`, children: p }, p)
1675
+ const v = Ie(() => t.split(`
1676
+ `).length, [t]), y = () => {
1677
+ const m = [];
1678
+ for (let f = 1; f <= v; f++)
1679
+ m.push(
1680
+ /* @__PURE__ */ s("div", { className: `nc-csv-line-number ${l === f ? "nc-csv-highlight" : ""}`, children: f }, f)
1637
1681
  );
1638
- return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: d, children: h });
1639
- }, y = (h) => h ? h.split(`
1640
- `).map((g, x) => {
1641
- const C = g.split(" ");
1642
- return /* @__PURE__ */ N("div", { className: `nc-csv-line ${l === x + 1 ? "nc-csv-highlight" : ""}`, children: [
1643
- C.map((T, E) => /* @__PURE__ */ N("span", { children: [
1644
- E > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
1645
- /* @__PURE__ */ s("span", { style: { color: _e[E % _e.length] }, children: T })
1646
- ] }, E)),
1647
- g === "" && `
1682
+ return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: u, children: m });
1683
+ }, x = (m) => m ? m.split(`
1684
+ `).map((p, g) => {
1685
+ const C = p.split(" ");
1686
+ return /* @__PURE__ */ k("div", { className: `nc-csv-line ${l === g + 1 ? "nc-csv-highlight" : ""}`, children: [
1687
+ C.map((T, M) => /* @__PURE__ */ k("span", { children: [
1688
+ M > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
1689
+ /* @__PURE__ */ s("span", { style: { color: _e[M % _e.length] }, children: T })
1690
+ ] }, M)),
1691
+ p === "" && `
1648
1692
  `
1649
- ] }, x);
1693
+ ] }, g);
1650
1694
  }) : null;
1651
- return /* @__PURE__ */ N("div", { className: `nc-csv-textarea-container ${a ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1652
- a && w(),
1653
- /* @__PURE__ */ N("div", { className: "nc-csv-textarea-editor", children: [
1654
- /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: b, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: y(t) }) }),
1695
+ return /* @__PURE__ */ k("div", { className: `nc-csv-textarea-container ${a ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1696
+ a && y(),
1697
+ /* @__PURE__ */ k("div", { className: "nc-csv-textarea-editor", children: [
1698
+ /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: w, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: x(t) }) }),
1655
1699
  /* @__PURE__ */ s(
1656
1700
  "textarea",
1657
1701
  {
1658
- ref: f,
1702
+ ref: h,
1659
1703
  className: "nc-csv-textarea-input",
1660
1704
  value: t,
1661
- onChange: (h) => {
1662
- n(h.target.value), requestAnimationFrame(m);
1705
+ onChange: (m) => {
1706
+ n(m.target.value), requestAnimationFrame(b);
1663
1707
  },
1664
1708
  onScroll: A,
1665
- onSelect: m,
1666
- onKeyUp: m,
1667
- onClick: m,
1709
+ onSelect: b,
1710
+ onKeyUp: b,
1711
+ onClick: b,
1668
1712
  placeholder: r,
1669
1713
  spellCheck: !1,
1670
1714
  autoComplete: "off",
@@ -1685,7 +1729,7 @@ function Te() {
1685
1729
  } catch {
1686
1730
  }
1687
1731
  }
1688
- function Yt(e) {
1732
+ function _t(e) {
1689
1733
  Re.add(e);
1690
1734
  try {
1691
1735
  e(ue.notifications.slice());
@@ -1695,7 +1739,7 @@ function Yt(e) {
1695
1739
  Re.delete(e);
1696
1740
  };
1697
1741
  }
1698
- function Kt(e) {
1742
+ function Ut(e) {
1699
1743
  const t = `notification-${Date.now()}-${Math.random()}`, { duration: n, type: r, ...o } = e, i = {
1700
1744
  id: t,
1701
1745
  dismissible: !0,
@@ -1716,7 +1760,7 @@ function tt(e) {
1716
1760
  }, 300);
1717
1761
  Ue.set(e, n);
1718
1762
  }
1719
- function _t({ type: e }) {
1763
+ function qt({ type: e }) {
1720
1764
  switch (e) {
1721
1765
  case "success":
1722
1766
  return /* @__PURE__ */ s("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ s(
@@ -1730,13 +1774,13 @@ function _t({ type: e }) {
1730
1774
  }
1731
1775
  ) });
1732
1776
  case "danger":
1733
- return /* @__PURE__ */ N("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1777
+ return /* @__PURE__ */ k("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1734
1778
  /* @__PURE__ */ s("circle", { cx: "10", cy: "10", r: "7", stroke: "currentColor", strokeWidth: "2" }),
1735
1779
  /* @__PURE__ */ s("path", { d: "M10 6.5v4.25", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
1736
1780
  /* @__PURE__ */ s("circle", { cx: "10", cy: "13.75", r: "1", fill: "currentColor" })
1737
1781
  ] });
1738
1782
  case "warning":
1739
- return /* @__PURE__ */ N("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1783
+ return /* @__PURE__ */ k("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1740
1784
  /* @__PURE__ */ s(
1741
1785
  "path",
1742
1786
  {
@@ -1750,14 +1794,14 @@ function _t({ type: e }) {
1750
1794
  /* @__PURE__ */ s("circle", { cx: "10", cy: "13.25", r: "1", fill: "currentColor" })
1751
1795
  ] });
1752
1796
  default:
1753
- return /* @__PURE__ */ N("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1797
+ return /* @__PURE__ */ k("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1754
1798
  /* @__PURE__ */ s("circle", { cx: "10", cy: "10", r: "7", stroke: "currentColor", strokeWidth: "2" }),
1755
1799
  /* @__PURE__ */ s("path", { d: "M10 9v4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
1756
1800
  /* @__PURE__ */ s("circle", { cx: "10", cy: "6.5", r: "1", fill: "currentColor" })
1757
1801
  ] });
1758
1802
  }
1759
1803
  }
1760
- function Ut({ notification: e }) {
1804
+ function Xt({ notification: e }) {
1761
1805
  const { t } = re(), n = e.type || "info", r = () => {
1762
1806
  if (e.title) return e.title;
1763
1807
  switch (n) {
@@ -1777,9 +1821,9 @@ function Ut({ notification: e }) {
1777
1821
  "div",
1778
1822
  {
1779
1823
  className: `nc-notification nc-notification-${n}`,
1780
- children: /* @__PURE__ */ N("div", { className: "nc-notification-content", children: [
1781
- /* @__PURE__ */ s("div", { className: `nc-notification-icon nc-notification-icon-${n}`, children: /* @__PURE__ */ s(_t, { type: n }) }),
1782
- /* @__PURE__ */ N("div", { className: "nc-notification-body", children: [
1824
+ children: /* @__PURE__ */ k("div", { className: "nc-notification-content", children: [
1825
+ /* @__PURE__ */ s("div", { className: `nc-notification-icon nc-notification-icon-${n}`, children: /* @__PURE__ */ s(qt, { type: n }) }),
1826
+ /* @__PURE__ */ k("div", { className: "nc-notification-body", children: [
1783
1827
  /* @__PURE__ */ s("div", { className: "nc-notification-title", children: r() }),
1784
1828
  /* @__PURE__ */ s("div", { className: "nc-notification-message", children: e.message })
1785
1829
  ] }),
@@ -1789,31 +1833,31 @@ function Ut({ notification: e }) {
1789
1833
  className: "nc-notification-dismiss",
1790
1834
  onClick: o,
1791
1835
  "aria-label": t("common.close"),
1792
- children: /* @__PURE__ */ s(Pe, { size: 16 })
1836
+ children: /* @__PURE__ */ s(Le, { size: 16 })
1793
1837
  }
1794
1838
  )
1795
1839
  ] })
1796
1840
  }
1797
1841
  );
1798
1842
  }
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) => {
1802
- const f = new Set(c.current.map((d) => d.id)), b = u.filter((d) => !f.has(d.id)).map((d) => d.id);
1803
- b.length > 0 ? (t(u), i(new Set(b)), requestAnimationFrame(() => {
1843
+ function gr() {
1844
+ const [e, t] = P([]), [n, r] = P(/* @__PURE__ */ new Map()), [o, i] = P(/* @__PURE__ */ new Set()), a = F(null), c = F([]);
1845
+ return D(() => _t((d) => {
1846
+ const h = new Set(c.current.map((u) => u.id)), w = d.filter((u) => !h.has(u.id)).map((u) => u.id);
1847
+ w.length > 0 ? (t(d), i(new Set(w)), requestAnimationFrame(() => {
1804
1848
  requestAnimationFrame(() => {
1805
1849
  i(/* @__PURE__ */ new Set());
1806
1850
  });
1807
- })) : t(u), c.current = u;
1851
+ })) : t(d), c.current = d;
1808
1852
  }), []), D(() => {
1809
1853
  if (!a.current) return;
1810
1854
  const l = /* @__PURE__ */ new Map();
1811
- let u = 0;
1812
- const f = a.current.children;
1813
- e.forEach((b, d) => {
1814
- if (l.set(b.id, u), f[d]) {
1815
- const m = f[d].offsetHeight;
1816
- b.isRemoving || (u += m + 12);
1855
+ let d = 0;
1856
+ const h = a.current.children;
1857
+ e.forEach((w, u) => {
1858
+ if (l.set(w.id, d), h[u]) {
1859
+ const b = h[u].offsetHeight;
1860
+ w.isRemoving || (d += b + 12);
1817
1861
  }
1818
1862
  }), r(l);
1819
1863
  }, [e]), /* @__PURE__ */ s(
@@ -1837,7 +1881,7 @@ function hr() {
1837
1881
  width: "100%"
1838
1882
  },
1839
1883
  children: e.map((l) => {
1840
- const u = o.has(l.id), f = l.isRemoving, b = n.get(l.id) || 0;
1884
+ const d = o.has(l.id), h = l.isRemoving, w = n.get(l.id) || 0;
1841
1885
  return /* @__PURE__ */ s(
1842
1886
  "div",
1843
1887
  {
@@ -1845,13 +1889,13 @@ function hr() {
1845
1889
  position: "absolute",
1846
1890
  top: 0,
1847
1891
  left: 0,
1848
- transform: u ? `translate3d(-40px, ${b}px, 0)` : `translate3d(0, ${b}px, 0)`,
1892
+ transform: d ? `translate3d(-40px, ${w}px, 0)` : `translate3d(0, ${w}px, 0)`,
1849
1893
  // Only animate transform when not leaving, animate opacity always
1850
- transition: f ? "opacity 300ms ease-out" : "transform 300ms ease-out, opacity 300ms ease-out",
1851
- opacity: f ? 0 : 1,
1894
+ transition: h ? "opacity 300ms ease-out" : "transform 300ms ease-out, opacity 300ms ease-out",
1895
+ opacity: h ? 0 : 1,
1852
1896
  width: "100%"
1853
1897
  },
1854
- children: /* @__PURE__ */ s(Ut, { notification: l })
1898
+ children: /* @__PURE__ */ s(Xt, { notification: l })
1855
1899
  },
1856
1900
  l.id
1857
1901
  );
@@ -1861,14 +1905,14 @@ function hr() {
1861
1905
  }
1862
1906
  );
1863
1907
  }
1864
- function qt(e) {
1865
- return Kt(e);
1908
+ function Jt(e) {
1909
+ return Ut(e);
1866
1910
  }
1867
- const mr = {
1868
- show: (e) => qt(e)
1911
+ const br = {
1912
+ show: (e) => Jt(e)
1869
1913
  };
1870
- function gr(e) {
1871
- const t = It.createInstance(), n = {};
1914
+ function vr(e) {
1915
+ const t = $t.createInstance(), n = {};
1872
1916
  for (const o in e)
1873
1917
  n[o] = { translation: e[o] };
1874
1918
  const r = typeof document < "u" && document.documentElement.lang || "en";
@@ -1888,7 +1932,7 @@ function gr(e) {
1888
1932
  }
1889
1933
  }).observe(document.documentElement, { attributes: !0 }), t;
1890
1934
  }
1891
- class Xt {
1935
+ class Qt {
1892
1936
  constructor() {
1893
1937
  oe(this, "apps", /* @__PURE__ */ new Map());
1894
1938
  }
@@ -1928,8 +1972,8 @@ class Xt {
1928
1972
  return this.apps.has(t);
1929
1973
  }
1930
1974
  }
1931
- const me = new Xt(), qe = "nc-ui-app-state";
1932
- class Jt {
1975
+ const me = new Qt(), qe = "nc-ui-app-state";
1976
+ class Zt {
1933
1977
  constructor() {
1934
1978
  oe(this, "state");
1935
1979
  oe(this, "listeners", /* @__PURE__ */ new Map());
@@ -1976,8 +2020,8 @@ class Jt {
1976
2020
  (r = this.listeners.get(t)) == null || r.forEach((o) => o(n));
1977
2021
  }
1978
2022
  }
1979
- const ne = new Jt();
1980
- class Qt {
2023
+ const ne = new Zt();
2024
+ class en {
1981
2025
  constructor() {
1982
2026
  oe(this, "apps", []);
1983
2027
  oe(this, "activeAppId", null);
@@ -2096,15 +2140,15 @@ class Qt {
2096
2140
  this.listeners.forEach((t) => t());
2097
2141
  }
2098
2142
  }
2099
- const Q = new Qt(), nt = ge(null);
2100
- function Zt() {
2143
+ const Q = new en(), nt = ge(null);
2144
+ function tn() {
2101
2145
  const e = ce(nt);
2102
2146
  if (!e)
2103
2147
  throw new Error("useApp must be used inside an App");
2104
2148
  return e;
2105
2149
  }
2106
- function en({ size: e = 16 }) {
2107
- return /* @__PURE__ */ N(
2150
+ function nn({ size: e = 16 }) {
2151
+ return /* @__PURE__ */ k(
2108
2152
  "svg",
2109
2153
  {
2110
2154
  width: e,
@@ -2122,9 +2166,9 @@ function en({ size: e = 16 }) {
2122
2166
  }
2123
2167
  );
2124
2168
  }
2125
- function tn({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
2126
- return /* @__PURE__ */ N("div", { className: "nc-app-title-bar", children: [
2127
- /* @__PURE__ */ N("div", { className: "nc-app-title-bar-left", children: [
2169
+ function rn({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
2170
+ return /* @__PURE__ */ k("div", { className: "nc-app-title-bar", children: [
2171
+ /* @__PURE__ */ k("div", { className: "nc-app-title-bar-left", children: [
2128
2172
  n && !o && /* @__PURE__ */ s(
2129
2173
  "button",
2130
2174
  {
@@ -2132,18 +2176,18 @@ function tn({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o })
2132
2176
  onClick: n,
2133
2177
  title: "Back",
2134
2178
  "aria-label": "Go back",
2135
- children: /* @__PURE__ */ s(en, { size: 16 })
2179
+ children: /* @__PURE__ */ s(nn, { size: 16 })
2136
2180
  }
2137
2181
  ),
2138
2182
  /* @__PURE__ */ s("span", { className: "nc-app-title-bar-title", children: e })
2139
2183
  ] }),
2140
- /* @__PURE__ */ N("div", { className: "nc-app-title-bar-right", children: [
2184
+ /* @__PURE__ */ k("div", { className: "nc-app-title-bar-right", children: [
2141
2185
  r && /* @__PURE__ */ s("div", { className: "nc-app-title-bar-toolbar", children: r }),
2142
2186
  /* @__PURE__ */ s(Ze, { onClick: t, "aria-label": "Close application" })
2143
2187
  ] })
2144
2188
  ] });
2145
2189
  }
2146
- class nn extends ze.Component {
2190
+ class on extends ze.Component {
2147
2191
  constructor(t) {
2148
2192
  super(t), this.state = { hasError: !1 };
2149
2193
  }
@@ -2154,108 +2198,71 @@ class nn extends ze.Component {
2154
2198
  console.error(`Error loading app ${this.props.appId}:`, t, n);
2155
2199
  }
2156
2200
  render() {
2157
- return this.state.hasError ? /* @__PURE__ */ N(
2158
- "div",
2159
- {
2160
- style: {
2161
- display: "flex",
2162
- alignItems: "center",
2163
- justifyContent: "center",
2164
- flex: 1,
2165
- flexDirection: "column",
2166
- gap: "16px",
2167
- padding: "20px",
2168
- textAlign: "center",
2169
- color: "var(--text-secondary)"
2170
- },
2171
- children: [
2172
- /* @__PURE__ */ s("div", { children: "Failed to load app" }),
2173
- this.state.error && /* @__PURE__ */ s("div", { style: { fontSize: "12px", opacity: 0.7 }, children: this.state.error.message })
2174
- ]
2175
- }
2176
- ) : this.props.children;
2201
+ return this.state.hasError ? /* @__PURE__ */ k("div", { className: "nc-app-error", children: [
2202
+ /* @__PURE__ */ s("div", { children: "Failed to load app" }),
2203
+ this.state.error && /* @__PURE__ */ s("div", { style: { fontSize: "12px", opacity: 0.7 }, children: this.state.error.message })
2204
+ ] }) : this.props.children;
2177
2205
  }
2178
2206
  }
2179
2207
  function rt({ appId: e, isActive: t, onClose: n }) {
2180
- 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);
2208
+ const { t: r } = re(), o = me.get(e), [i, a] = P(""), [c, l] = P(null), [d, h] = P(null), [w, u] = P(!1), [b, A] = P(!1);
2181
2209
  ze.useEffect(() => {
2182
2210
  o != null && o.titleKey && a(r(o.titleKey));
2183
2211
  }, [o, r]);
2184
- const v = Y((S) => {
2212
+ const v = G((S) => {
2185
2213
  a(S);
2186
- }, []), w = Y((S) => {
2214
+ }, []), y = G((S) => {
2187
2215
  l(() => S);
2188
- }, []), y = Y(() => {
2216
+ }, []), x = G(() => {
2189
2217
  l(null);
2190
- }, []), h = Y((S) => {
2191
- f(S);
2192
- }, []), p = Y(() => {
2193
- f(null);
2194
- }, []), g = Y((S) => {
2195
- d(S);
2196
- }, []), x = Y((S) => {
2218
+ }, []), m = G((S) => {
2219
+ h(S);
2220
+ }, []), f = G(() => {
2221
+ h(null);
2222
+ }, []), p = G((S) => {
2223
+ u(S);
2224
+ }, []), g = G((S) => {
2197
2225
  A(S);
2198
- }, []), C = Me(() => ({
2226
+ }, []), C = Ie(() => ({
2199
2227
  setTitle: v,
2200
- setBackHandler: w,
2201
- clearBackHandler: y,
2202
- setToolbar: h,
2203
- clearToolbar: p,
2204
- setHideBackButton: g,
2205
- setHideTitleBar: x,
2228
+ setBackHandler: y,
2229
+ clearBackHandler: x,
2230
+ setToolbar: m,
2231
+ clearToolbar: f,
2232
+ setHideBackButton: p,
2233
+ setHideTitleBar: g,
2206
2234
  close: n
2207
- }), [v, w, y, h, p, g, x, n]);
2235
+ }), [v, y, x, m, f, p, g, n]);
2208
2236
  if (!o)
2209
2237
  return null;
2210
- const T = o.component, E = !o.hideTitleBar && !m;
2211
- return /* @__PURE__ */ N(
2238
+ const T = o.component, M = !o.hideTitleBar && !b;
2239
+ return /* @__PURE__ */ k(
2212
2240
  "div",
2213
2241
  {
2214
- style: {
2215
- display: t ? "flex" : "none",
2216
- flexDirection: "column",
2217
- flex: 1,
2218
- minHeight: 0
2219
- },
2242
+ className: `nc-app-container${t ? "" : " nc-hidden"}`,
2220
2243
  children: [
2221
- E && /* @__PURE__ */ s(
2222
- tn,
2244
+ M && /* @__PURE__ */ s(
2245
+ rn,
2223
2246
  {
2224
2247
  title: i,
2225
2248
  onClose: n,
2226
2249
  onBack: c ?? void 0,
2227
- toolbar: u,
2228
- hideBackButton: b
2250
+ toolbar: d,
2251
+ hideBackButton: w
2229
2252
  }
2230
2253
  ),
2231
2254
  /* @__PURE__ */ s(
2232
2255
  "div",
2233
2256
  {
2234
- className: E ? "nc-app-content-wrapper" : "",
2257
+ className: "nc-app-content-wrapper",
2235
2258
  style: {
2236
2259
  padding: o.padding,
2237
- flex: 1,
2238
- minHeight: 0,
2239
- display: "flex",
2240
- flexDirection: "column",
2241
- backgroundColor: "var(--nc-bg-tertiary)",
2242
- position: "relative"
2260
+ overflowY: M ? "auto" : void 0
2243
2261
  },
2244
- children: /* @__PURE__ */ s(nt.Provider, { value: C, children: /* @__PURE__ */ s(nn, { appId: e, children: /* @__PURE__ */ s(
2245
- Mt,
2262
+ children: /* @__PURE__ */ s(nt.Provider, { value: C, children: /* @__PURE__ */ s(on, { appId: e, children: /* @__PURE__ */ s(
2263
+ It,
2246
2264
  {
2247
- fallback: /* @__PURE__ */ s(
2248
- "div",
2249
- {
2250
- style: {
2251
- display: "flex",
2252
- alignItems: "center",
2253
- justifyContent: "center",
2254
- flex: 1
2255
- },
2256
- children: /* @__PURE__ */ s(Qe, {})
2257
- }
2258
- ),
2265
+ fallback: /* @__PURE__ */ s("div", { className: "nc-app-loading", children: /* @__PURE__ */ s(Qe, {}) }),
2259
2266
  children: /* @__PURE__ */ s(T, {})
2260
2267
  }
2261
2268
  ) }) })
@@ -2265,21 +2272,21 @@ function rt({ appId: e, isActive: t, onClose: n }) {
2265
2272
  }
2266
2273
  );
2267
2274
  }
2268
- const Ce = 768, $e = 1024, ot = {
2275
+ const Ce = 768, Me = 1024, ot = {
2269
2276
  isMobile: !1,
2270
2277
  isTablet: !1,
2271
2278
  isDesktop: !0,
2272
2279
  width: typeof window < "u" ? window.innerWidth : 1024,
2273
2280
  height: typeof window < "u" ? window.innerHeight : 768
2274
2281
  }, st = ge(ot);
2275
- function br({ children: e }) {
2276
- const [t, n] = R(() => {
2282
+ function wr({ children: e }) {
2283
+ const [t, n] = P(() => {
2277
2284
  if (typeof window > "u") return ot;
2278
2285
  const r = window.innerWidth, o = window.innerHeight;
2279
2286
  return {
2280
2287
  isMobile: r < Ce,
2281
- isTablet: r >= Ce && r < $e,
2282
- isDesktop: r >= $e,
2288
+ isTablet: r >= Ce && r < Me,
2289
+ isDesktop: r >= Me,
2283
2290
  width: r,
2284
2291
  height: o
2285
2292
  };
@@ -2289,8 +2296,8 @@ function br({ children: e }) {
2289
2296
  const o = window.innerWidth, i = window.innerHeight;
2290
2297
  n({
2291
2298
  isMobile: o < Ce,
2292
- isTablet: o >= Ce && o < $e,
2293
- isDesktop: o >= $e,
2299
+ isTablet: o >= Ce && o < Me,
2300
+ isDesktop: o >= Me,
2294
2301
  width: o,
2295
2302
  height: i
2296
2303
  });
@@ -2301,15 +2308,15 @@ function br({ children: e }) {
2301
2308
  function it() {
2302
2309
  return ce(st);
2303
2310
  }
2304
- const Be = "-", rn = (e) => {
2305
- const t = sn(e), {
2311
+ const Be = "-", sn = (e) => {
2312
+ const t = an(e), {
2306
2313
  conflictingClassGroups: n,
2307
2314
  conflictingClassGroupModifiers: r
2308
2315
  } = e;
2309
2316
  return {
2310
2317
  getClassGroupId: (a) => {
2311
2318
  const c = a.split(Be);
2312
- return c[0] === "" && c.length !== 1 && c.shift(), ct(c, t) || on(a);
2319
+ return c[0] === "" && c.length !== 1 && c.shift(), ct(c, t) || cn(a);
2313
2320
  },
2314
2321
  getConflictingClassGroupIds: (a, c) => {
2315
2322
  const l = n[a] || [];
@@ -2329,13 +2336,13 @@ const Be = "-", rn = (e) => {
2329
2336
  return (a = t.validators.find(({
2330
2337
  validator: c
2331
2338
  }) => c(i))) == null ? void 0 : a.classGroupId;
2332
- }, Xe = /^\[(.+)\]$/, on = (e) => {
2339
+ }, Xe = /^\[(.+)\]$/, cn = (e) => {
2333
2340
  if (Xe.test(e)) {
2334
2341
  const t = Xe.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
2335
2342
  if (n)
2336
2343
  return "arbitrary.." + n;
2337
2344
  }
2338
- }, sn = (e) => {
2345
+ }, an = (e) => {
2339
2346
  const {
2340
2347
  theme: t,
2341
2348
  prefix: n
@@ -2343,10 +2350,10 @@ const Be = "-", rn = (e) => {
2343
2350
  nextPart: /* @__PURE__ */ new Map(),
2344
2351
  validators: []
2345
2352
  };
2346
- return an(Object.entries(e.classGroups), n).forEach(([i, a]) => {
2347
- Ee(a, r, i, t);
2353
+ return dn(Object.entries(e.classGroups), n).forEach(([i, a]) => {
2354
+ Pe(a, r, i, t);
2348
2355
  }), r;
2349
- }, Ee = (e, t, n, r) => {
2356
+ }, Pe = (e, t, n, r) => {
2350
2357
  e.forEach((o) => {
2351
2358
  if (typeof o == "string") {
2352
2359
  const i = o === "" ? t : Je(t, o);
@@ -2354,8 +2361,8 @@ const Be = "-", rn = (e) => {
2354
2361
  return;
2355
2362
  }
2356
2363
  if (typeof o == "function") {
2357
- if (cn(o)) {
2358
- Ee(o(r), t, n, r);
2364
+ if (ln(o)) {
2365
+ Pe(o(r), t, n, r);
2359
2366
  return;
2360
2367
  }
2361
2368
  t.validators.push({
@@ -2365,7 +2372,7 @@ const Be = "-", rn = (e) => {
2365
2372
  return;
2366
2373
  }
2367
2374
  Object.entries(o).forEach(([i, a]) => {
2368
- Ee(a, Je(t, i), n, r);
2375
+ Pe(a, Je(t, i), n, r);
2369
2376
  });
2370
2377
  });
2371
2378
  }, Je = (e, t) => {
@@ -2376,10 +2383,10 @@ const Be = "-", rn = (e) => {
2376
2383
  validators: []
2377
2384
  }), n = n.nextPart.get(r);
2378
2385
  }), n;
2379
- }, cn = (e) => e.isThemeGetter, an = (e, t) => t ? e.map(([n, r]) => {
2386
+ }, ln = (e) => e.isThemeGetter, dn = (e, t) => t ? e.map(([n, r]) => {
2380
2387
  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);
2381
2388
  return [n, o];
2382
- }) : e, ln = (e) => {
2389
+ }) : e, un = (e) => {
2383
2390
  if (e < 1)
2384
2391
  return {
2385
2392
  get: () => {
@@ -2403,31 +2410,31 @@ const Be = "-", rn = (e) => {
2403
2410
  n.has(i) ? n.set(i, a) : o(i, a);
2404
2411
  }
2405
2412
  };
2406
- }, at = "!", dn = (e) => {
2413
+ }, at = "!", pn = (e) => {
2407
2414
  const {
2408
2415
  separator: t,
2409
2416
  experimentalParseClassName: n
2410
2417
  } = e, r = t.length === 1, o = t[0], i = t.length, a = (c) => {
2411
2418
  const l = [];
2412
- let u = 0, f = 0, b;
2413
- for (let w = 0; w < c.length; w++) {
2414
- let y = c[w];
2415
- if (u === 0) {
2416
- if (y === o && (r || c.slice(w, w + i) === t)) {
2417
- l.push(c.slice(f, w)), f = w + i;
2419
+ let d = 0, h = 0, w;
2420
+ for (let y = 0; y < c.length; y++) {
2421
+ let x = c[y];
2422
+ if (d === 0) {
2423
+ if (x === o && (r || c.slice(y, y + i) === t)) {
2424
+ l.push(c.slice(h, y)), h = y + i;
2418
2425
  continue;
2419
2426
  }
2420
- if (y === "/") {
2421
- b = w;
2427
+ if (x === "/") {
2428
+ w = y;
2422
2429
  continue;
2423
2430
  }
2424
2431
  }
2425
- y === "[" ? u++ : y === "]" && u--;
2432
+ x === "[" ? d++ : x === "]" && d--;
2426
2433
  }
2427
- 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;
2434
+ const u = l.length === 0 ? c : c.substring(h), b = u.startsWith(at), A = b ? u.substring(1) : u, v = w && w > h ? w - h : void 0;
2428
2435
  return {
2429
2436
  modifiers: l,
2430
- hasImportantModifier: m,
2437
+ hasImportantModifier: b,
2431
2438
  baseClassName: A,
2432
2439
  maybePostfixModifierPosition: v
2433
2440
  };
@@ -2436,7 +2443,7 @@ const Be = "-", rn = (e) => {
2436
2443
  className: c,
2437
2444
  parseClassName: a
2438
2445
  }) : a;
2439
- }, un = (e) => {
2446
+ }, fn = (e) => {
2440
2447
  if (e.length <= 1)
2441
2448
  return e;
2442
2449
  const t = [];
@@ -2444,50 +2451,50 @@ const Be = "-", rn = (e) => {
2444
2451
  return e.forEach((r) => {
2445
2452
  r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r);
2446
2453
  }), t.push(...n.sort()), t;
2447
- }, pn = (e) => ({
2448
- cache: ln(e.cacheSize),
2449
- parseClassName: dn(e),
2450
- ...rn(e)
2451
- }), fn = /\s+/, hn = (e, t) => {
2454
+ }, hn = (e) => ({
2455
+ cache: un(e.cacheSize),
2456
+ parseClassName: pn(e),
2457
+ ...sn(e)
2458
+ }), mn = /\s+/, gn = (e, t) => {
2452
2459
  const {
2453
2460
  parseClassName: n,
2454
2461
  getClassGroupId: r,
2455
2462
  getConflictingClassGroupIds: o
2456
- } = t, i = [], a = e.trim().split(fn);
2463
+ } = t, i = [], a = e.trim().split(mn);
2457
2464
  let c = "";
2458
2465
  for (let l = a.length - 1; l >= 0; l -= 1) {
2459
- const u = a[l], {
2460
- modifiers: f,
2461
- hasImportantModifier: b,
2462
- baseClassName: d,
2463
- maybePostfixModifierPosition: m
2464
- } = n(u);
2465
- let A = !!m, v = r(A ? d.substring(0, m) : d);
2466
+ const d = a[l], {
2467
+ modifiers: h,
2468
+ hasImportantModifier: w,
2469
+ baseClassName: u,
2470
+ maybePostfixModifierPosition: b
2471
+ } = n(d);
2472
+ let A = !!b, v = r(A ? u.substring(0, b) : u);
2466
2473
  if (!v) {
2467
2474
  if (!A) {
2468
- c = u + (c.length > 0 ? " " + c : c);
2475
+ c = d + (c.length > 0 ? " " + c : c);
2469
2476
  continue;
2470
2477
  }
2471
- if (v = r(d), !v) {
2472
- c = u + (c.length > 0 ? " " + c : c);
2478
+ if (v = r(u), !v) {
2479
+ c = d + (c.length > 0 ? " " + c : c);
2473
2480
  continue;
2474
2481
  }
2475
2482
  A = !1;
2476
2483
  }
2477
- const w = un(f).join(":"), y = b ? w + at : w, h = y + v;
2478
- if (i.includes(h))
2484
+ const y = fn(h).join(":"), x = w ? y + at : y, m = x + v;
2485
+ if (i.includes(m))
2479
2486
  continue;
2480
- i.push(h);
2481
- const p = o(v, A);
2482
- for (let g = 0; g < p.length; ++g) {
2483
- const x = p[g];
2484
- i.push(y + x);
2487
+ i.push(m);
2488
+ const f = o(v, A);
2489
+ for (let p = 0; p < f.length; ++p) {
2490
+ const g = f[p];
2491
+ i.push(x + g);
2485
2492
  }
2486
- c = u + (c.length > 0 ? " " + c : c);
2493
+ c = d + (c.length > 0 ? " " + c : c);
2487
2494
  }
2488
2495
  return c;
2489
2496
  };
2490
- function mn() {
2497
+ function bn() {
2491
2498
  let e = 0, t, n, r = "";
2492
2499
  for (; e < arguments.length; )
2493
2500
  (t = arguments[e++]) && (n = lt(t)) && (r && (r += " "), r += n);
@@ -2501,65 +2508,65 @@ const lt = (e) => {
2501
2508
  e[r] && (t = lt(e[r])) && (n && (n += " "), n += t);
2502
2509
  return n;
2503
2510
  };
2504
- function gn(e, ...t) {
2511
+ function vn(e, ...t) {
2505
2512
  let n, r, o, i = a;
2506
2513
  function a(l) {
2507
- const u = t.reduce((f, b) => b(f), e());
2508
- return n = pn(u), r = n.cache.get, o = n.cache.set, i = c, c(l);
2514
+ const d = t.reduce((h, w) => w(h), e());
2515
+ return n = hn(d), r = n.cache.get, o = n.cache.set, i = c, c(l);
2509
2516
  }
2510
2517
  function c(l) {
2511
- const u = r(l);
2512
- if (u)
2513
- return u;
2514
- const f = hn(l, n);
2515
- return o(l, f), f;
2518
+ const d = r(l);
2519
+ if (d)
2520
+ return d;
2521
+ const h = gn(l, n);
2522
+ return o(l, h), h;
2516
2523
  }
2517
2524
  return function() {
2518
- return i(mn.apply(null, arguments));
2525
+ return i(bn.apply(null, arguments));
2519
2526
  };
2520
2527
  }
2521
2528
  const O = (e) => {
2522
2529
  const t = (n) => n[e] || [];
2523
2530
  return t.isThemeGetter = !0, t;
2524
- }, 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) => {
2531
+ }, dt = /^\[(?:([a-z-]+):)?(.+)\]$/i, wn = /^\d+\/\d+$/, yn = /* @__PURE__ */ new Set(["px", "full", "screen"]), xn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, kn = /\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$/, Nn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, An = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Sn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => he(e) || yn.has(e) || wn.test(e), se = (e) => be(e, "length", En), he = (e) => !!e && !Number.isNaN(Number(e)), $e = (e) => be(e, "number", he), xe = (e) => !!e && Number.isInteger(Number(e)), Cn = (e) => e.endsWith("%") && he(e.slice(0, -1)), $ = (e) => dt.test(e), ie = (e) => xn.test(e), Mn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), In = (e) => be(e, Mn, ut), $n = (e) => be(e, "position", ut), Rn = /* @__PURE__ */ new Set(["image", "url"]), Tn = (e) => be(e, Rn, zn), Pn = (e) => be(e, "", Ln), ke = () => !0, be = (e, t, n) => {
2525
2532
  const r = dt.exec(e);
2526
2533
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
2527
- }, Tn = (e) => (
2534
+ }, En = (e) => (
2528
2535
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
2529
2536
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2530
2537
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2531
- yn.test(e) && !xn.test(e)
2532
- ), ut = () => !1, En = (e) => kn.test(e), Ln = (e) => Nn.test(e), Pn = () => {
2533
- 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];
2538
+ kn.test(e) && !Nn.test(e)
2539
+ ), ut = () => !1, Ln = (e) => An.test(e), zn = (e) => Sn.test(e), Bn = () => {
2540
+ 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"), d = O("grayscale"), h = O("hueRotate"), w = O("invert"), u = O("gap"), b = O("gradientColorStops"), A = O("gradientColorStopPositions"), v = O("inset"), y = O("margin"), x = O("opacity"), m = O("padding"), f = O("saturate"), p = O("scale"), g = O("sepia"), C = O("skew"), T = O("space"), M = O("translate"), S = () => ["auto", "contain", "none"], E = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", $, t], I = () => [$, t], L = () => ["", ee, se], H = () => ["auto", he, $], 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", $], j = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], z = () => [he, $];
2534
2541
  return {
2535
2542
  cacheSize: 500,
2536
2543
  separator: ":",
2537
2544
  theme: {
2538
2545
  colors: [ke],
2539
2546
  spacing: [ee, se],
2540
- blur: ["none", "", ie, M],
2547
+ blur: ["none", "", ie, $],
2541
2548
  brightness: z(),
2542
2549
  borderColor: [e],
2543
- borderRadius: ["none", "", "full", ie, M],
2544
- borderSpacing: $(),
2545
- borderWidth: P(),
2550
+ borderRadius: ["none", "", "full", ie, $],
2551
+ borderSpacing: I(),
2552
+ borderWidth: L(),
2546
2553
  contrast: z(),
2547
2554
  grayscale: U(),
2548
2555
  hueRotate: z(),
2549
2556
  invert: U(),
2550
- gap: $(),
2557
+ gap: I(),
2551
2558
  gradientColorStops: [e],
2552
- gradientColorStopPositions: [An, se],
2553
- inset: k(),
2554
- margin: k(),
2559
+ gradientColorStopPositions: [Cn, se],
2560
+ inset: N(),
2561
+ margin: N(),
2555
2562
  opacity: z(),
2556
- padding: $(),
2563
+ padding: I(),
2557
2564
  saturate: z(),
2558
2565
  scale: z(),
2559
2566
  sepia: U(),
2560
2567
  skew: z(),
2561
- space: $(),
2562
- translate: $()
2568
+ space: I(),
2569
+ translate: I()
2563
2570
  },
2564
2571
  classGroups: {
2565
2572
  // Layout
@@ -2568,7 +2575,7 @@ const O = (e) => {
2568
2575
  * @see https://tailwindcss.com/docs/aspect-ratio
2569
2576
  */
2570
2577
  aspect: [{
2571
- aspect: ["auto", "square", "video", M]
2578
+ aspect: ["auto", "square", "video", $]
2572
2579
  }],
2573
2580
  /**
2574
2581
  * Container
@@ -2653,28 +2660,28 @@ const O = (e) => {
2653
2660
  * @see https://tailwindcss.com/docs/object-position
2654
2661
  */
2655
2662
  "object-position": [{
2656
- object: [...ae(), M]
2663
+ object: [...ae(), $]
2657
2664
  }],
2658
2665
  /**
2659
2666
  * Overflow
2660
2667
  * @see https://tailwindcss.com/docs/overflow
2661
2668
  */
2662
2669
  overflow: [{
2663
- overflow: L()
2670
+ overflow: E()
2664
2671
  }],
2665
2672
  /**
2666
2673
  * Overflow X
2667
2674
  * @see https://tailwindcss.com/docs/overflow
2668
2675
  */
2669
2676
  "overflow-x": [{
2670
- "overflow-x": L()
2677
+ "overflow-x": E()
2671
2678
  }],
2672
2679
  /**
2673
2680
  * Overflow Y
2674
2681
  * @see https://tailwindcss.com/docs/overflow
2675
2682
  */
2676
2683
  "overflow-y": [{
2677
- "overflow-y": L()
2684
+ "overflow-y": E()
2678
2685
  }],
2679
2686
  /**
2680
2687
  * Overscroll Behavior
@@ -2775,7 +2782,7 @@ const O = (e) => {
2775
2782
  * @see https://tailwindcss.com/docs/z-index
2776
2783
  */
2777
2784
  z: [{
2778
- z: ["auto", xe, M]
2785
+ z: ["auto", xe, $]
2779
2786
  }],
2780
2787
  // Flexbox and Grid
2781
2788
  /**
@@ -2783,7 +2790,7 @@ const O = (e) => {
2783
2790
  * @see https://tailwindcss.com/docs/flex-basis
2784
2791
  */
2785
2792
  basis: [{
2786
- basis: k()
2793
+ basis: N()
2787
2794
  }],
2788
2795
  /**
2789
2796
  * Flex Direction
@@ -2804,7 +2811,7 @@ const O = (e) => {
2804
2811
  * @see https://tailwindcss.com/docs/flex
2805
2812
  */
2806
2813
  flex: [{
2807
- flex: ["1", "auto", "initial", "none", M]
2814
+ flex: ["1", "auto", "initial", "none", $]
2808
2815
  }],
2809
2816
  /**
2810
2817
  * Flex Grow
@@ -2825,7 +2832,7 @@ const O = (e) => {
2825
2832
  * @see https://tailwindcss.com/docs/order
2826
2833
  */
2827
2834
  order: [{
2828
- order: ["first", "last", "none", xe, M]
2835
+ order: ["first", "last", "none", xe, $]
2829
2836
  }],
2830
2837
  /**
2831
2838
  * Grid Template Columns
@@ -2840,8 +2847,8 @@ const O = (e) => {
2840
2847
  */
2841
2848
  "col-start-end": [{
2842
2849
  col: ["auto", {
2843
- span: ["full", xe, M]
2844
- }, M]
2850
+ span: ["full", xe, $]
2851
+ }, $]
2845
2852
  }],
2846
2853
  /**
2847
2854
  * Grid Column Start
@@ -2870,8 +2877,8 @@ const O = (e) => {
2870
2877
  */
2871
2878
  "row-start-end": [{
2872
2879
  row: ["auto", {
2873
- span: [xe, M]
2874
- }, M]
2880
+ span: [xe, $]
2881
+ }, $]
2875
2882
  }],
2876
2883
  /**
2877
2884
  * Grid Row Start
@@ -2899,35 +2906,35 @@ const O = (e) => {
2899
2906
  * @see https://tailwindcss.com/docs/grid-auto-columns
2900
2907
  */
2901
2908
  "auto-cols": [{
2902
- "auto-cols": ["auto", "min", "max", "fr", M]
2909
+ "auto-cols": ["auto", "min", "max", "fr", $]
2903
2910
  }],
2904
2911
  /**
2905
2912
  * Grid Auto Rows
2906
2913
  * @see https://tailwindcss.com/docs/grid-auto-rows
2907
2914
  */
2908
2915
  "auto-rows": [{
2909
- "auto-rows": ["auto", "min", "max", "fr", M]
2916
+ "auto-rows": ["auto", "min", "max", "fr", $]
2910
2917
  }],
2911
2918
  /**
2912
2919
  * Gap
2913
2920
  * @see https://tailwindcss.com/docs/gap
2914
2921
  */
2915
2922
  gap: [{
2916
- gap: [d]
2923
+ gap: [u]
2917
2924
  }],
2918
2925
  /**
2919
2926
  * Gap X
2920
2927
  * @see https://tailwindcss.com/docs/gap
2921
2928
  */
2922
2929
  "gap-x": [{
2923
- "gap-x": [d]
2930
+ "gap-x": [u]
2924
2931
  }],
2925
2932
  /**
2926
2933
  * Gap Y
2927
2934
  * @see https://tailwindcss.com/docs/gap
2928
2935
  */
2929
2936
  "gap-y": [{
2930
- "gap-y": [d]
2937
+ "gap-y": [u]
2931
2938
  }],
2932
2939
  /**
2933
2940
  * Justify Content
@@ -2998,126 +3005,126 @@ const O = (e) => {
2998
3005
  * @see https://tailwindcss.com/docs/padding
2999
3006
  */
3000
3007
  p: [{
3001
- p: [h]
3008
+ p: [m]
3002
3009
  }],
3003
3010
  /**
3004
3011
  * Padding X
3005
3012
  * @see https://tailwindcss.com/docs/padding
3006
3013
  */
3007
3014
  px: [{
3008
- px: [h]
3015
+ px: [m]
3009
3016
  }],
3010
3017
  /**
3011
3018
  * Padding Y
3012
3019
  * @see https://tailwindcss.com/docs/padding
3013
3020
  */
3014
3021
  py: [{
3015
- py: [h]
3022
+ py: [m]
3016
3023
  }],
3017
3024
  /**
3018
3025
  * Padding Start
3019
3026
  * @see https://tailwindcss.com/docs/padding
3020
3027
  */
3021
3028
  ps: [{
3022
- ps: [h]
3029
+ ps: [m]
3023
3030
  }],
3024
3031
  /**
3025
3032
  * Padding End
3026
3033
  * @see https://tailwindcss.com/docs/padding
3027
3034
  */
3028
3035
  pe: [{
3029
- pe: [h]
3036
+ pe: [m]
3030
3037
  }],
3031
3038
  /**
3032
3039
  * Padding Top
3033
3040
  * @see https://tailwindcss.com/docs/padding
3034
3041
  */
3035
3042
  pt: [{
3036
- pt: [h]
3043
+ pt: [m]
3037
3044
  }],
3038
3045
  /**
3039
3046
  * Padding Right
3040
3047
  * @see https://tailwindcss.com/docs/padding
3041
3048
  */
3042
3049
  pr: [{
3043
- pr: [h]
3050
+ pr: [m]
3044
3051
  }],
3045
3052
  /**
3046
3053
  * Padding Bottom
3047
3054
  * @see https://tailwindcss.com/docs/padding
3048
3055
  */
3049
3056
  pb: [{
3050
- pb: [h]
3057
+ pb: [m]
3051
3058
  }],
3052
3059
  /**
3053
3060
  * Padding Left
3054
3061
  * @see https://tailwindcss.com/docs/padding
3055
3062
  */
3056
3063
  pl: [{
3057
- pl: [h]
3064
+ pl: [m]
3058
3065
  }],
3059
3066
  /**
3060
3067
  * Margin
3061
3068
  * @see https://tailwindcss.com/docs/margin
3062
3069
  */
3063
3070
  m: [{
3064
- m: [w]
3071
+ m: [y]
3065
3072
  }],
3066
3073
  /**
3067
3074
  * Margin X
3068
3075
  * @see https://tailwindcss.com/docs/margin
3069
3076
  */
3070
3077
  mx: [{
3071
- mx: [w]
3078
+ mx: [y]
3072
3079
  }],
3073
3080
  /**
3074
3081
  * Margin Y
3075
3082
  * @see https://tailwindcss.com/docs/margin
3076
3083
  */
3077
3084
  my: [{
3078
- my: [w]
3085
+ my: [y]
3079
3086
  }],
3080
3087
  /**
3081
3088
  * Margin Start
3082
3089
  * @see https://tailwindcss.com/docs/margin
3083
3090
  */
3084
3091
  ms: [{
3085
- ms: [w]
3092
+ ms: [y]
3086
3093
  }],
3087
3094
  /**
3088
3095
  * Margin End
3089
3096
  * @see https://tailwindcss.com/docs/margin
3090
3097
  */
3091
3098
  me: [{
3092
- me: [w]
3099
+ me: [y]
3093
3100
  }],
3094
3101
  /**
3095
3102
  * Margin Top
3096
3103
  * @see https://tailwindcss.com/docs/margin
3097
3104
  */
3098
3105
  mt: [{
3099
- mt: [w]
3106
+ mt: [y]
3100
3107
  }],
3101
3108
  /**
3102
3109
  * Margin Right
3103
3110
  * @see https://tailwindcss.com/docs/margin
3104
3111
  */
3105
3112
  mr: [{
3106
- mr: [w]
3113
+ mr: [y]
3107
3114
  }],
3108
3115
  /**
3109
3116
  * Margin Bottom
3110
3117
  * @see https://tailwindcss.com/docs/margin
3111
3118
  */
3112
3119
  mb: [{
3113
- mb: [w]
3120
+ mb: [y]
3114
3121
  }],
3115
3122
  /**
3116
3123
  * Margin Left
3117
3124
  * @see https://tailwindcss.com/docs/margin
3118
3125
  */
3119
3126
  ml: [{
3120
- ml: [w]
3127
+ ml: [y]
3121
3128
  }],
3122
3129
  /**
3123
3130
  * Space Between X
@@ -3149,21 +3156,21 @@ const O = (e) => {
3149
3156
  * @see https://tailwindcss.com/docs/width
3150
3157
  */
3151
3158
  w: [{
3152
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", M, t]
3159
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", $, t]
3153
3160
  }],
3154
3161
  /**
3155
3162
  * Min-Width
3156
3163
  * @see https://tailwindcss.com/docs/min-width
3157
3164
  */
3158
3165
  "min-w": [{
3159
- "min-w": [M, t, "min", "max", "fit"]
3166
+ "min-w": [$, t, "min", "max", "fit"]
3160
3167
  }],
3161
3168
  /**
3162
3169
  * Max-Width
3163
3170
  * @see https://tailwindcss.com/docs/max-width
3164
3171
  */
3165
3172
  "max-w": [{
3166
- "max-w": [M, t, "none", "full", "min", "max", "fit", "prose", {
3173
+ "max-w": [$, t, "none", "full", "min", "max", "fit", "prose", {
3167
3174
  screen: [ie]
3168
3175
  }, ie]
3169
3176
  }],
@@ -3172,28 +3179,28 @@ const O = (e) => {
3172
3179
  * @see https://tailwindcss.com/docs/height
3173
3180
  */
3174
3181
  h: [{
3175
- h: [M, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
3182
+ h: [$, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
3176
3183
  }],
3177
3184
  /**
3178
3185
  * Min-Height
3179
3186
  * @see https://tailwindcss.com/docs/min-height
3180
3187
  */
3181
3188
  "min-h": [{
3182
- "min-h": [M, t, "min", "max", "fit", "svh", "lvh", "dvh"]
3189
+ "min-h": [$, t, "min", "max", "fit", "svh", "lvh", "dvh"]
3183
3190
  }],
3184
3191
  /**
3185
3192
  * Max-Height
3186
3193
  * @see https://tailwindcss.com/docs/max-height
3187
3194
  */
3188
3195
  "max-h": [{
3189
- "max-h": [M, t, "min", "max", "fit", "svh", "lvh", "dvh"]
3196
+ "max-h": [$, t, "min", "max", "fit", "svh", "lvh", "dvh"]
3190
3197
  }],
3191
3198
  /**
3192
3199
  * Size
3193
3200
  * @see https://tailwindcss.com/docs/size
3194
3201
  */
3195
3202
  size: [{
3196
- size: [M, t, "auto", "min", "max", "fit"]
3203
+ size: [$, t, "auto", "min", "max", "fit"]
3197
3204
  }],
3198
3205
  // Typography
3199
3206
  /**
@@ -3218,7 +3225,7 @@ const O = (e) => {
3218
3225
  * @see https://tailwindcss.com/docs/font-weight
3219
3226
  */
3220
3227
  "font-weight": [{
3221
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Ie]
3228
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", $e]
3222
3229
  }],
3223
3230
  /**
3224
3231
  * Font Family
@@ -3262,35 +3269,35 @@ const O = (e) => {
3262
3269
  * @see https://tailwindcss.com/docs/letter-spacing
3263
3270
  */
3264
3271
  tracking: [{
3265
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", M]
3272
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", $]
3266
3273
  }],
3267
3274
  /**
3268
3275
  * Line Clamp
3269
3276
  * @see https://tailwindcss.com/docs/line-clamp
3270
3277
  */
3271
3278
  "line-clamp": [{
3272
- "line-clamp": ["none", he, Ie]
3279
+ "line-clamp": ["none", he, $e]
3273
3280
  }],
3274
3281
  /**
3275
3282
  * Line Height
3276
3283
  * @see https://tailwindcss.com/docs/line-height
3277
3284
  */
3278
3285
  leading: [{
3279
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ee, M]
3286
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ee, $]
3280
3287
  }],
3281
3288
  /**
3282
3289
  * List Style Image
3283
3290
  * @see https://tailwindcss.com/docs/list-style-image
3284
3291
  */
3285
3292
  "list-image": [{
3286
- "list-image": ["none", M]
3293
+ "list-image": ["none", $]
3287
3294
  }],
3288
3295
  /**
3289
3296
  * List Style Type
3290
3297
  * @see https://tailwindcss.com/docs/list-style-type
3291
3298
  */
3292
3299
  "list-style-type": [{
3293
- list: ["none", "disc", "decimal", M]
3300
+ list: ["none", "disc", "decimal", $]
3294
3301
  }],
3295
3302
  /**
3296
3303
  * List Style Position
@@ -3312,7 +3319,7 @@ const O = (e) => {
3312
3319
  * @see https://tailwindcss.com/docs/placeholder-opacity
3313
3320
  */
3314
3321
  "placeholder-opacity": [{
3315
- "placeholder-opacity": [y]
3322
+ "placeholder-opacity": [x]
3316
3323
  }],
3317
3324
  /**
3318
3325
  * Text Alignment
@@ -3333,7 +3340,7 @@ const O = (e) => {
3333
3340
  * @see https://tailwindcss.com/docs/text-opacity
3334
3341
  */
3335
3342
  "text-opacity": [{
3336
- "text-opacity": [y]
3343
+ "text-opacity": [x]
3337
3344
  }],
3338
3345
  /**
3339
3346
  * Text Decoration
@@ -3359,7 +3366,7 @@ const O = (e) => {
3359
3366
  * @see https://tailwindcss.com/docs/text-underline-offset
3360
3367
  */
3361
3368
  "underline-offset": [{
3362
- "underline-offset": ["auto", ee, M]
3369
+ "underline-offset": ["auto", ee, $]
3363
3370
  }],
3364
3371
  /**
3365
3372
  * Text Decoration Color
@@ -3390,14 +3397,14 @@ const O = (e) => {
3390
3397
  * @see https://tailwindcss.com/docs/text-indent
3391
3398
  */
3392
3399
  indent: [{
3393
- indent: $()
3400
+ indent: I()
3394
3401
  }],
3395
3402
  /**
3396
3403
  * Vertical Alignment
3397
3404
  * @see https://tailwindcss.com/docs/vertical-align
3398
3405
  */
3399
3406
  "vertical-align": [{
3400
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", M]
3407
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", $]
3401
3408
  }],
3402
3409
  /**
3403
3410
  * Whitespace
@@ -3425,7 +3432,7 @@ const O = (e) => {
3425
3432
  * @see https://tailwindcss.com/docs/content
3426
3433
  */
3427
3434
  content: [{
3428
- content: ["none", M]
3435
+ content: ["none", $]
3429
3436
  }],
3430
3437
  // Backgrounds
3431
3438
  /**
@@ -3448,7 +3455,7 @@ const O = (e) => {
3448
3455
  * @see https://tailwindcss.com/docs/background-opacity
3449
3456
  */
3450
3457
  "bg-opacity": [{
3451
- "bg-opacity": [y]
3458
+ "bg-opacity": [x]
3452
3459
  }],
3453
3460
  /**
3454
3461
  * Background Origin
@@ -3478,7 +3485,7 @@ const O = (e) => {
3478
3485
  * @see https://tailwindcss.com/docs/background-size
3479
3486
  */
3480
3487
  "bg-size": [{
3481
- bg: ["auto", "cover", "contain", Cn]
3488
+ bg: ["auto", "cover", "contain", In]
3482
3489
  }],
3483
3490
  /**
3484
3491
  * Background Image
@@ -3487,7 +3494,7 @@ const O = (e) => {
3487
3494
  "bg-image": [{
3488
3495
  bg: ["none", {
3489
3496
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
3490
- }, In]
3497
+ }, Tn]
3491
3498
  }],
3492
3499
  /**
3493
3500
  * Background Color
@@ -3522,21 +3529,21 @@ const O = (e) => {
3522
3529
  * @see https://tailwindcss.com/docs/gradient-color-stops
3523
3530
  */
3524
3531
  "gradient-from": [{
3525
- from: [m]
3532
+ from: [b]
3526
3533
  }],
3527
3534
  /**
3528
3535
  * Gradient Color Stops Via
3529
3536
  * @see https://tailwindcss.com/docs/gradient-color-stops
3530
3537
  */
3531
3538
  "gradient-via": [{
3532
- via: [m]
3539
+ via: [b]
3533
3540
  }],
3534
3541
  /**
3535
3542
  * Gradient Color Stops To
3536
3543
  * @see https://tailwindcss.com/docs/gradient-color-stops
3537
3544
  */
3538
3545
  "gradient-to": [{
3539
- to: [m]
3546
+ to: [b]
3540
3547
  }],
3541
3548
  // Borders
3542
3549
  /**
@@ -3712,7 +3719,7 @@ const O = (e) => {
3712
3719
  * @see https://tailwindcss.com/docs/border-opacity
3713
3720
  */
3714
3721
  "border-opacity": [{
3715
- "border-opacity": [y]
3722
+ "border-opacity": [x]
3716
3723
  }],
3717
3724
  /**
3718
3725
  * Border Style
@@ -3750,7 +3757,7 @@ const O = (e) => {
3750
3757
  * @see https://tailwindcss.com/docs/divide-opacity
3751
3758
  */
3752
3759
  "divide-opacity": [{
3753
- "divide-opacity": [y]
3760
+ "divide-opacity": [x]
3754
3761
  }],
3755
3762
  /**
3756
3763
  * Divide Style
@@ -3841,7 +3848,7 @@ const O = (e) => {
3841
3848
  * @see https://tailwindcss.com/docs/outline-offset
3842
3849
  */
3843
3850
  "outline-offset": [{
3844
- "outline-offset": [ee, M]
3851
+ "outline-offset": [ee, $]
3845
3852
  }],
3846
3853
  /**
3847
3854
  * Outline Width
@@ -3862,7 +3869,7 @@ const O = (e) => {
3862
3869
  * @see https://tailwindcss.com/docs/ring-width
3863
3870
  */
3864
3871
  "ring-w": [{
3865
- ring: P()
3872
+ ring: L()
3866
3873
  }],
3867
3874
  /**
3868
3875
  * Ring Width Inset
@@ -3881,7 +3888,7 @@ const O = (e) => {
3881
3888
  * @see https://tailwindcss.com/docs/ring-opacity
3882
3889
  */
3883
3890
  "ring-opacity": [{
3884
- "ring-opacity": [y]
3891
+ "ring-opacity": [x]
3885
3892
  }],
3886
3893
  /**
3887
3894
  * Ring Offset Width
@@ -3903,7 +3910,7 @@ const O = (e) => {
3903
3910
  * @see https://tailwindcss.com/docs/box-shadow
3904
3911
  */
3905
3912
  shadow: [{
3906
- shadow: ["", "inner", "none", ie, Rn]
3913
+ shadow: ["", "inner", "none", ie, Pn]
3907
3914
  }],
3908
3915
  /**
3909
3916
  * Box Shadow Color
@@ -3917,7 +3924,7 @@ const O = (e) => {
3917
3924
  * @see https://tailwindcss.com/docs/opacity
3918
3925
  */
3919
3926
  opacity: [{
3920
- opacity: [y]
3927
+ opacity: [x]
3921
3928
  }],
3922
3929
  /**
3923
3930
  * Mix Blend Mode
@@ -3968,42 +3975,42 @@ const O = (e) => {
3968
3975
  * @see https://tailwindcss.com/docs/drop-shadow
3969
3976
  */
3970
3977
  "drop-shadow": [{
3971
- "drop-shadow": ["", "none", ie, M]
3978
+ "drop-shadow": ["", "none", ie, $]
3972
3979
  }],
3973
3980
  /**
3974
3981
  * Grayscale
3975
3982
  * @see https://tailwindcss.com/docs/grayscale
3976
3983
  */
3977
3984
  grayscale: [{
3978
- grayscale: [u]
3985
+ grayscale: [d]
3979
3986
  }],
3980
3987
  /**
3981
3988
  * Hue Rotate
3982
3989
  * @see https://tailwindcss.com/docs/hue-rotate
3983
3990
  */
3984
3991
  "hue-rotate": [{
3985
- "hue-rotate": [f]
3992
+ "hue-rotate": [h]
3986
3993
  }],
3987
3994
  /**
3988
3995
  * Invert
3989
3996
  * @see https://tailwindcss.com/docs/invert
3990
3997
  */
3991
3998
  invert: [{
3992
- invert: [b]
3999
+ invert: [w]
3993
4000
  }],
3994
4001
  /**
3995
4002
  * Saturate
3996
4003
  * @see https://tailwindcss.com/docs/saturate
3997
4004
  */
3998
4005
  saturate: [{
3999
- saturate: [p]
4006
+ saturate: [f]
4000
4007
  }],
4001
4008
  /**
4002
4009
  * Sepia
4003
4010
  * @see https://tailwindcss.com/docs/sepia
4004
4011
  */
4005
4012
  sepia: [{
4006
- sepia: [x]
4013
+ sepia: [g]
4007
4014
  }],
4008
4015
  /**
4009
4016
  * Backdrop Filter
@@ -4039,42 +4046,42 @@ const O = (e) => {
4039
4046
  * @see https://tailwindcss.com/docs/backdrop-grayscale
4040
4047
  */
4041
4048
  "backdrop-grayscale": [{
4042
- "backdrop-grayscale": [u]
4049
+ "backdrop-grayscale": [d]
4043
4050
  }],
4044
4051
  /**
4045
4052
  * Backdrop Hue Rotate
4046
4053
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
4047
4054
  */
4048
4055
  "backdrop-hue-rotate": [{
4049
- "backdrop-hue-rotate": [f]
4056
+ "backdrop-hue-rotate": [h]
4050
4057
  }],
4051
4058
  /**
4052
4059
  * Backdrop Invert
4053
4060
  * @see https://tailwindcss.com/docs/backdrop-invert
4054
4061
  */
4055
4062
  "backdrop-invert": [{
4056
- "backdrop-invert": [b]
4063
+ "backdrop-invert": [w]
4057
4064
  }],
4058
4065
  /**
4059
4066
  * Backdrop Opacity
4060
4067
  * @see https://tailwindcss.com/docs/backdrop-opacity
4061
4068
  */
4062
4069
  "backdrop-opacity": [{
4063
- "backdrop-opacity": [y]
4070
+ "backdrop-opacity": [x]
4064
4071
  }],
4065
4072
  /**
4066
4073
  * Backdrop Saturate
4067
4074
  * @see https://tailwindcss.com/docs/backdrop-saturate
4068
4075
  */
4069
4076
  "backdrop-saturate": [{
4070
- "backdrop-saturate": [p]
4077
+ "backdrop-saturate": [f]
4071
4078
  }],
4072
4079
  /**
4073
4080
  * Backdrop Sepia
4074
4081
  * @see https://tailwindcss.com/docs/backdrop-sepia
4075
4082
  */
4076
4083
  "backdrop-sepia": [{
4077
- "backdrop-sepia": [x]
4084
+ "backdrop-sepia": [g]
4078
4085
  }],
4079
4086
  // Tables
4080
4087
  /**
@@ -4125,7 +4132,7 @@ const O = (e) => {
4125
4132
  * @see https://tailwindcss.com/docs/transition-property
4126
4133
  */
4127
4134
  transition: [{
4128
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", M]
4135
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", $]
4129
4136
  }],
4130
4137
  /**
4131
4138
  * Transition Duration
@@ -4139,7 +4146,7 @@ const O = (e) => {
4139
4146
  * @see https://tailwindcss.com/docs/transition-timing-function
4140
4147
  */
4141
4148
  ease: [{
4142
- ease: ["linear", "in", "out", "in-out", M]
4149
+ ease: ["linear", "in", "out", "in-out", $]
4143
4150
  }],
4144
4151
  /**
4145
4152
  * Transition Delay
@@ -4153,7 +4160,7 @@ const O = (e) => {
4153
4160
  * @see https://tailwindcss.com/docs/animation
4154
4161
  */
4155
4162
  animate: [{
4156
- animate: ["none", "spin", "ping", "pulse", "bounce", M]
4163
+ animate: ["none", "spin", "ping", "pulse", "bounce", $]
4157
4164
  }],
4158
4165
  // Transforms
4159
4166
  /**
@@ -4168,42 +4175,42 @@ const O = (e) => {
4168
4175
  * @see https://tailwindcss.com/docs/scale
4169
4176
  */
4170
4177
  scale: [{
4171
- scale: [g]
4178
+ scale: [p]
4172
4179
  }],
4173
4180
  /**
4174
4181
  * Scale X
4175
4182
  * @see https://tailwindcss.com/docs/scale
4176
4183
  */
4177
4184
  "scale-x": [{
4178
- "scale-x": [g]
4185
+ "scale-x": [p]
4179
4186
  }],
4180
4187
  /**
4181
4188
  * Scale Y
4182
4189
  * @see https://tailwindcss.com/docs/scale
4183
4190
  */
4184
4191
  "scale-y": [{
4185
- "scale-y": [g]
4192
+ "scale-y": [p]
4186
4193
  }],
4187
4194
  /**
4188
4195
  * Rotate
4189
4196
  * @see https://tailwindcss.com/docs/rotate
4190
4197
  */
4191
4198
  rotate: [{
4192
- rotate: [xe, M]
4199
+ rotate: [xe, $]
4193
4200
  }],
4194
4201
  /**
4195
4202
  * Translate X
4196
4203
  * @see https://tailwindcss.com/docs/translate
4197
4204
  */
4198
4205
  "translate-x": [{
4199
- "translate-x": [E]
4206
+ "translate-x": [M]
4200
4207
  }],
4201
4208
  /**
4202
4209
  * Translate Y
4203
4210
  * @see https://tailwindcss.com/docs/translate
4204
4211
  */
4205
4212
  "translate-y": [{
4206
- "translate-y": [E]
4213
+ "translate-y": [M]
4207
4214
  }],
4208
4215
  /**
4209
4216
  * Skew X
@@ -4224,7 +4231,7 @@ const O = (e) => {
4224
4231
  * @see https://tailwindcss.com/docs/transform-origin
4225
4232
  */
4226
4233
  "transform-origin": [{
4227
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", M]
4234
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", $]
4228
4235
  }],
4229
4236
  // Interactivity
4230
4237
  /**
@@ -4246,7 +4253,7 @@ const O = (e) => {
4246
4253
  * @see https://tailwindcss.com/docs/cursor
4247
4254
  */
4248
4255
  cursor: [{
4249
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", M]
4256
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", $]
4250
4257
  }],
4251
4258
  /**
4252
4259
  * Caret Color
@@ -4281,126 +4288,126 @@ const O = (e) => {
4281
4288
  * @see https://tailwindcss.com/docs/scroll-margin
4282
4289
  */
4283
4290
  "scroll-m": [{
4284
- "scroll-m": $()
4291
+ "scroll-m": I()
4285
4292
  }],
4286
4293
  /**
4287
4294
  * Scroll Margin X
4288
4295
  * @see https://tailwindcss.com/docs/scroll-margin
4289
4296
  */
4290
4297
  "scroll-mx": [{
4291
- "scroll-mx": $()
4298
+ "scroll-mx": I()
4292
4299
  }],
4293
4300
  /**
4294
4301
  * Scroll Margin Y
4295
4302
  * @see https://tailwindcss.com/docs/scroll-margin
4296
4303
  */
4297
4304
  "scroll-my": [{
4298
- "scroll-my": $()
4305
+ "scroll-my": I()
4299
4306
  }],
4300
4307
  /**
4301
4308
  * Scroll Margin Start
4302
4309
  * @see https://tailwindcss.com/docs/scroll-margin
4303
4310
  */
4304
4311
  "scroll-ms": [{
4305
- "scroll-ms": $()
4312
+ "scroll-ms": I()
4306
4313
  }],
4307
4314
  /**
4308
4315
  * Scroll Margin End
4309
4316
  * @see https://tailwindcss.com/docs/scroll-margin
4310
4317
  */
4311
4318
  "scroll-me": [{
4312
- "scroll-me": $()
4319
+ "scroll-me": I()
4313
4320
  }],
4314
4321
  /**
4315
4322
  * Scroll Margin Top
4316
4323
  * @see https://tailwindcss.com/docs/scroll-margin
4317
4324
  */
4318
4325
  "scroll-mt": [{
4319
- "scroll-mt": $()
4326
+ "scroll-mt": I()
4320
4327
  }],
4321
4328
  /**
4322
4329
  * Scroll Margin Right
4323
4330
  * @see https://tailwindcss.com/docs/scroll-margin
4324
4331
  */
4325
4332
  "scroll-mr": [{
4326
- "scroll-mr": $()
4333
+ "scroll-mr": I()
4327
4334
  }],
4328
4335
  /**
4329
4336
  * Scroll Margin Bottom
4330
4337
  * @see https://tailwindcss.com/docs/scroll-margin
4331
4338
  */
4332
4339
  "scroll-mb": [{
4333
- "scroll-mb": $()
4340
+ "scroll-mb": I()
4334
4341
  }],
4335
4342
  /**
4336
4343
  * Scroll Margin Left
4337
4344
  * @see https://tailwindcss.com/docs/scroll-margin
4338
4345
  */
4339
4346
  "scroll-ml": [{
4340
- "scroll-ml": $()
4347
+ "scroll-ml": I()
4341
4348
  }],
4342
4349
  /**
4343
4350
  * Scroll Padding
4344
4351
  * @see https://tailwindcss.com/docs/scroll-padding
4345
4352
  */
4346
4353
  "scroll-p": [{
4347
- "scroll-p": $()
4354
+ "scroll-p": I()
4348
4355
  }],
4349
4356
  /**
4350
4357
  * Scroll Padding X
4351
4358
  * @see https://tailwindcss.com/docs/scroll-padding
4352
4359
  */
4353
4360
  "scroll-px": [{
4354
- "scroll-px": $()
4361
+ "scroll-px": I()
4355
4362
  }],
4356
4363
  /**
4357
4364
  * Scroll Padding Y
4358
4365
  * @see https://tailwindcss.com/docs/scroll-padding
4359
4366
  */
4360
4367
  "scroll-py": [{
4361
- "scroll-py": $()
4368
+ "scroll-py": I()
4362
4369
  }],
4363
4370
  /**
4364
4371
  * Scroll Padding Start
4365
4372
  * @see https://tailwindcss.com/docs/scroll-padding
4366
4373
  */
4367
4374
  "scroll-ps": [{
4368
- "scroll-ps": $()
4375
+ "scroll-ps": I()
4369
4376
  }],
4370
4377
  /**
4371
4378
  * Scroll Padding End
4372
4379
  * @see https://tailwindcss.com/docs/scroll-padding
4373
4380
  */
4374
4381
  "scroll-pe": [{
4375
- "scroll-pe": $()
4382
+ "scroll-pe": I()
4376
4383
  }],
4377
4384
  /**
4378
4385
  * Scroll Padding Top
4379
4386
  * @see https://tailwindcss.com/docs/scroll-padding
4380
4387
  */
4381
4388
  "scroll-pt": [{
4382
- "scroll-pt": $()
4389
+ "scroll-pt": I()
4383
4390
  }],
4384
4391
  /**
4385
4392
  * Scroll Padding Right
4386
4393
  * @see https://tailwindcss.com/docs/scroll-padding
4387
4394
  */
4388
4395
  "scroll-pr": [{
4389
- "scroll-pr": $()
4396
+ "scroll-pr": I()
4390
4397
  }],
4391
4398
  /**
4392
4399
  * Scroll Padding Bottom
4393
4400
  * @see https://tailwindcss.com/docs/scroll-padding
4394
4401
  */
4395
4402
  "scroll-pb": [{
4396
- "scroll-pb": $()
4403
+ "scroll-pb": I()
4397
4404
  }],
4398
4405
  /**
4399
4406
  * Scroll Padding Left
4400
4407
  * @see https://tailwindcss.com/docs/scroll-padding
4401
4408
  */
4402
4409
  "scroll-pl": [{
4403
- "scroll-pl": $()
4410
+ "scroll-pl": I()
4404
4411
  }],
4405
4412
  /**
4406
4413
  * Scroll Snap Align
@@ -4468,7 +4475,7 @@ const O = (e) => {
4468
4475
  * @see https://tailwindcss.com/docs/will-change
4469
4476
  */
4470
4477
  "will-change": [{
4471
- "will-change": ["auto", "scroll", "contents", "transform", M]
4478
+ "will-change": ["auto", "scroll", "contents", "transform", $]
4472
4479
  }],
4473
4480
  // SVG
4474
4481
  /**
@@ -4483,7 +4490,7 @@ const O = (e) => {
4483
4490
  * @see https://tailwindcss.com/docs/stroke-width
4484
4491
  */
4485
4492
  "stroke-w": [{
4486
- stroke: [ee, se, Ie]
4493
+ stroke: [ee, se, $e]
4487
4494
  }],
4488
4495
  /**
4489
4496
  * Stroke
@@ -4558,117 +4565,117 @@ const O = (e) => {
4558
4565
  "font-size": ["leading"]
4559
4566
  }
4560
4567
  };
4561
- }, zn = /* @__PURE__ */ gn(Pn);
4562
- function Bn(...e) {
4563
- return zn(Rt(e));
4568
+ }, Dn = /* @__PURE__ */ vn(Bn);
4569
+ function Wn(...e) {
4570
+ return Dn(Rt(e));
4564
4571
  }
4565
- function vr({ autoWidth: e = !0, className: t, style: n }) {
4566
- const [r, o] = R(() => ne.getActiveAppId()), [i, a] = R(() => Q.getRunningApps()), { isMobile: c } = it();
4572
+ function yr({ autoWidth: e = !0, className: t, style: n }) {
4573
+ const [r, o] = P(() => ne.getActiveAppId()), [i, a] = P(() => Q.getRunningApps()), { isMobile: c } = it();
4567
4574
  D(() => {
4568
- const w = ne.subscribe("activeAppId", (y) => {
4569
- o(y);
4575
+ const y = ne.subscribe("activeAppId", (x) => {
4576
+ o(x);
4570
4577
  });
4571
4578
  return () => {
4572
- w();
4579
+ y();
4573
4580
  };
4574
4581
  }, []), D(() => Q.subscribe(() => {
4575
4582
  a(Q.getRunningApps());
4576
4583
  }), []), D(() => {
4577
4584
  if (!new URLSearchParams(window.location.search).has("app")) {
4578
- const h = ne.getActiveAppId();
4579
- h && !Q.isRunning(h) && Q.launchApp(h);
4585
+ const m = ne.getActiveAppId();
4586
+ m && !Q.isRunning(m) && Q.launchApp(m);
4580
4587
  }
4581
4588
  }, []);
4582
- const l = (w) => {
4583
- Q.closeApp(w);
4584
- }, u = r ? me.get(r) : null, b = (u == null ? void 0 : u.width) ?? 400, d = r !== null, v = { ...{
4589
+ const l = (y) => {
4590
+ Q.closeApp(y);
4591
+ }, d = r ? me.get(r) : null, w = (d == null ? void 0 : d.width) ?? 400, u = r !== null, v = { ...{
4585
4592
  overflow: "hidden",
4586
- display: d ? "flex" : "none",
4593
+ display: u ? "flex" : "none",
4587
4594
  flexDirection: "column",
4588
4595
  flexShrink: 0,
4589
4596
  // Only set width if autoWidth is enabled
4590
- ...e && d ? { width: c ? "100%" : b } : {}
4597
+ ...e && u ? { width: c ? "100%" : w } : {}
4591
4598
  }, ...n };
4592
- return /* @__PURE__ */ s("div", { className: Bn("nc-app-panel", t), style: v, children: i.map((w) => /* @__PURE__ */ s(
4599
+ return /* @__PURE__ */ s("div", { className: Wn("nc-app-panel", t), style: v, children: i.map((y) => /* @__PURE__ */ s(
4593
4600
  rt,
4594
4601
  {
4595
- appId: w.appId,
4596
- isActive: r === w.appId,
4597
- onClose: () => l(w.appId)
4602
+ appId: y.appId,
4603
+ isActive: r === y.appId,
4604
+ onClose: () => l(y.appId)
4598
4605
  },
4599
- w.appId
4606
+ y.appId
4600
4607
  )) });
4601
4608
  }
4602
- function wr({
4609
+ function xr({
4603
4610
  pinnedAppIds: e,
4604
4611
  className: t = "",
4605
4612
  showIndicators: n = !0,
4606
4613
  side: r = "left",
4607
4614
  getBadge: o
4608
4615
  }) {
4609
- const { t: i } = re(), { isMobile: a } = it(), [c, l] = R(() => ne.getActiveAppId()), [u, f] = R(() => Q.getRunningApps());
4616
+ const { t: i } = re(), { isMobile: a } = it(), [c, l] = P(() => ne.getActiveAppId()), [d, h] = P(() => Q.getRunningApps());
4610
4617
  D(() => {
4611
- const p = ne.subscribe("activeAppId", (g) => {
4612
- l(g);
4618
+ const f = ne.subscribe("activeAppId", (p) => {
4619
+ l(p);
4613
4620
  });
4614
4621
  return () => {
4615
- p();
4622
+ f();
4616
4623
  };
4617
4624
  }, []), D(() => Q.subscribe(() => {
4618
- f(Q.getRunningApps());
4625
+ h(Q.getRunningApps());
4619
4626
  }), []);
4620
- const b = (p) => {
4621
- c === p ? Q.setActiveApp(null) : Q.launchApp(p);
4622
- }, 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) => {
4623
- const x = o == null ? void 0 : o(p, g);
4624
- return x ? /* @__PURE__ */ s(
4627
+ const w = (f) => {
4628
+ c === f ? Q.setActiveApp(null) : Q.launchApp(f);
4629
+ }, u = e.map((f) => me.get(f)).filter((f) => !!f), b = d.filter((f) => !e.includes(f.appId)).map((f) => ({ running: f, def: me.get(f.appId) })).filter((f) => !!f.def), A = (f) => d.some((p) => p.appId === f), v = (f) => f.titleKey ? String(i(f.titleKey)) : f.id, y = (f) => typeof f == "number" && f > 99 ? "99+" : f, x = (f, p) => {
4630
+ const g = o == null ? void 0 : o(f, p);
4631
+ return g ? /* @__PURE__ */ s(
4625
4632
  "span",
4626
4633
  {
4627
- className: `nc-app-taskbar-badge nc-${x.tone ?? "default"}`,
4628
- "aria-label": x.ariaLabel,
4629
- children: w(x.content)
4634
+ className: `nc-app-taskbar-badge nc-${g.tone ?? "default"}`,
4635
+ "aria-label": g.ariaLabel,
4636
+ children: y(g.content)
4630
4637
  }
4631
4638
  ) : null;
4632
- }, h = a ? 24 : 28;
4633
- return /* @__PURE__ */ N("div", { className: `nc-app-taskbar ${a ? "nc-mobile" : "nc-desktop"} nc-${r} ${t}`, children: [
4634
- d.map((p) => {
4635
- const g = p.icon, x = c === p.id, C = A(p.id), T = { isActive: x, isRunning: C, isPinned: !0 };
4636
- return /* @__PURE__ */ N(
4639
+ }, m = a ? 24 : 28;
4640
+ return /* @__PURE__ */ k("div", { className: `nc-app-taskbar ${a ? "nc-mobile" : "nc-desktop"} nc-${r} ${t}`, children: [
4641
+ u.map((f) => {
4642
+ const p = f.icon, g = c === f.id, C = A(f.id), T = { isActive: g, isRunning: C, isPinned: !0 };
4643
+ return /* @__PURE__ */ k(
4637
4644
  "button",
4638
4645
  {
4639
- className: `nc-app-taskbar-button ${x ? "nc-active" : ""} ${C ? "nc-running" : ""}`,
4640
- onClick: () => b(p.id),
4641
- title: v(p),
4646
+ className: `nc-app-taskbar-button ${g ? "nc-active" : ""} ${C ? "nc-running" : ""}`,
4647
+ onClick: () => w(f.id),
4648
+ title: v(f),
4642
4649
  children: [
4643
- /* @__PURE__ */ s(g, { size: h }),
4644
- y(p, T),
4650
+ /* @__PURE__ */ s(p, { size: m }),
4651
+ x(f, T),
4645
4652
  n && C && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4646
4653
  ]
4647
4654
  },
4648
- p.id
4655
+ f.id
4649
4656
  );
4650
4657
  }),
4651
- m.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4652
- m.map(({ running: p, def: g }) => {
4653
- const x = g.icon, C = c === p.appId, T = { isActive: C, isRunning: !0, isPinned: !1 };
4654
- return /* @__PURE__ */ N(
4658
+ b.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4659
+ b.map(({ running: f, def: p }) => {
4660
+ const g = p.icon, C = c === f.appId, T = { isActive: C, isRunning: !0, isPinned: !1 };
4661
+ return /* @__PURE__ */ k(
4655
4662
  "button",
4656
4663
  {
4657
4664
  className: `nc-app-taskbar-button ${C ? "nc-active" : ""} nc-running`,
4658
- onClick: () => b(p.appId),
4659
- title: v(g),
4665
+ onClick: () => w(f.appId),
4666
+ title: v(p),
4660
4667
  children: [
4661
- /* @__PURE__ */ s(x, { size: h }),
4662
- y(g, T),
4668
+ /* @__PURE__ */ s(g, { size: m }),
4669
+ x(p, T),
4663
4670
  n && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4664
4671
  ]
4665
4672
  },
4666
- p.appId
4673
+ f.appId
4667
4674
  );
4668
4675
  })
4669
4676
  ] });
4670
4677
  }
4671
- function yr({
4678
+ function kr({
4672
4679
  appId: e,
4673
4680
  open: t,
4674
4681
  onClose: n,
@@ -4706,68 +4713,68 @@ function yr({
4706
4713
  return Ae(c, document.body);
4707
4714
  }
4708
4715
  const De = ge(null), pt = ge(null);
4709
- function xr() {
4716
+ function Nr() {
4710
4717
  const e = ce(De);
4711
4718
  if (!e)
4712
4719
  throw new Error("useNavStack must be used within a NavStackProvider");
4713
4720
  return e;
4714
4721
  }
4715
- function kr() {
4722
+ function Ar() {
4716
4723
  const e = ce(pt);
4717
4724
  if (!e)
4718
4725
  throw new Error("useNavView must be used within NavStack");
4719
4726
  return e;
4720
4727
  }
4721
4728
  const We = ge(null);
4722
- function Nr({ rootView: e, children: t }) {
4723
- const { t: n } = re(), r = Zt(), [o, i] = R([e]), [a, c] = R([null]), l = Y((g, x) => {
4729
+ function Sr({ rootView: e, children: t }) {
4730
+ const { t: n } = re(), r = tn(), [o, i] = P([e]), [a, c] = P([null]), l = G((p, g) => {
4724
4731
  c((C) => {
4725
4732
  const T = [...C];
4726
- return T[g] = x, T;
4733
+ return T[p] = g, T;
4727
4734
  });
4728
- }, []), u = Y((g) => {
4729
- c((x) => {
4730
- const C = [...x];
4731
- return C[g] = null, C;
4735
+ }, []), d = G((p) => {
4736
+ c((g) => {
4737
+ const C = [...g];
4738
+ return C[p] = null, C;
4732
4739
  });
4733
- }, []), f = Y((g) => {
4734
- i((x) => [...x, g]), c((x) => [...x, null]);
4735
- }, []), b = Y(() => {
4736
- i((g) => g.length <= 1 ? g : g.slice(0, -1)), c((g) => g.slice(0, -1));
4737
- }, []), d = Y(() => {
4740
+ }, []), h = G((p) => {
4741
+ i((g) => [...g, p]), c((g) => [...g, null]);
4742
+ }, []), w = G(() => {
4743
+ i((p) => p.length <= 1 ? p : p.slice(0, -1)), c((p) => p.slice(0, -1));
4744
+ }, []), u = G(() => {
4738
4745
  i([e]), c([null]);
4739
- }, [e]), m = o.length, A = m > 1, v = o.length - 1, w = o[o.length - 1], y = w != null && w.titleKey ? n(w.titleKey) : (w == null ? void 0 : w.title) ?? "";
4746
+ }, [e]), b = o.length, A = b > 1, v = o.length - 1, y = o[o.length - 1], x = y != null && y.titleKey ? n(y.titleKey) : (y == null ? void 0 : y.title) ?? "";
4740
4747
  D(() => {
4741
- r.setTitle(y);
4742
- }, [y, r]), D(() => {
4743
- A ? r.setBackHandler(b) : r.clearBackHandler();
4744
- }, [A, b, r]), D(() => {
4745
- const g = a[a.length - 1];
4746
- g ? r.setToolbar(g) : r.clearToolbar();
4748
+ r.setTitle(x);
4749
+ }, [x, r]), D(() => {
4750
+ A ? r.setBackHandler(w) : r.clearBackHandler();
4751
+ }, [A, w, r]), D(() => {
4752
+ const p = a[a.length - 1];
4753
+ p ? r.setToolbar(p) : r.clearToolbar();
4747
4754
  }, [a, r]);
4748
- const h = {
4749
- push: f,
4750
- pop: b,
4751
- reset: d,
4752
- depth: m,
4755
+ const m = {
4756
+ push: h,
4757
+ pop: w,
4758
+ reset: u,
4759
+ depth: b,
4753
4760
  canGoBack: A,
4754
- currentTitle: y
4755
- }, p = {
4761
+ currentTitle: x
4762
+ }, f = {
4756
4763
  stack: o,
4757
4764
  toolbarStack: a,
4758
4765
  updateToolbar: l,
4759
- clearToolbarAt: u,
4766
+ clearToolbarAt: d,
4760
4767
  topIndex: v
4761
4768
  };
4762
- return /* @__PURE__ */ s(De.Provider, { value: h, children: /* @__PURE__ */ s(We.Provider, { value: p, children: t }) });
4769
+ return /* @__PURE__ */ s(De.Provider, { value: m, children: /* @__PURE__ */ s(We.Provider, { value: f, children: t }) });
4763
4770
  }
4764
- function Dn({ index: e, children: t }) {
4771
+ function Hn({ index: e, children: t }) {
4765
4772
  const n = ce(We);
4766
4773
  if (!n)
4767
4774
  throw new Error("NavViewProvider must be used within NavStackProvider");
4768
- const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, a = Y((u) => {
4769
- e === i && r(e, u);
4770
- }, [e, i, r]), c = Y(() => {
4775
+ const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, a = G((d) => {
4776
+ e === i && r(e, d);
4777
+ }, [e, i, r]), c = G(() => {
4771
4778
  e === i && o(e);
4772
4779
  }, [e, i, o]), l = {
4773
4780
  setToolbar: a,
@@ -4775,14 +4782,14 @@ function Dn({ index: e, children: t }) {
4775
4782
  };
4776
4783
  return /* @__PURE__ */ s(pt.Provider, { value: l, children: t });
4777
4784
  }
4778
- function Ar() {
4785
+ function Cr() {
4779
4786
  const e = ce(De), t = ce(We);
4780
4787
  if (!e || !t)
4781
4788
  throw new Error("NavStackContainer must be used within a NavStackProvider");
4782
4789
  const { stack: n } = t;
4783
4790
  return /* @__PURE__ */ s("div", { className: "nav-stack-container", children: /* @__PURE__ */ s("div", { className: "nav-stack-content", children: n.map((r, o) => {
4784
4791
  const i = o === n.length - 1;
4785
- return /* @__PURE__ */ s(Dn, { index: o, children: /* @__PURE__ */ s(
4792
+ return /* @__PURE__ */ s(Hn, { index: o, children: /* @__PURE__ */ s(
4786
4793
  "div",
4787
4794
  {
4788
4795
  style: { display: i ? "flex" : "none", flexDirection: "column", height: "100%" },
@@ -4793,54 +4800,54 @@ function Ar() {
4793
4800
  }
4794
4801
  export {
4795
4802
  Qe as ActivityIndicator,
4796
- Kn as Alert,
4803
+ Un as Alert,
4797
4804
  rt as AppContainer,
4798
4805
  nt as AppContext,
4799
- yr as AppDialog,
4800
- vr as AppPanel,
4801
- wr as AppTaskbar,
4802
- tn as AppTitleBar,
4803
- _n as Battery,
4806
+ kr as AppDialog,
4807
+ yr as AppPanel,
4808
+ xr as AppTaskbar,
4809
+ rn as AppTitleBar,
4810
+ qn as Battery,
4804
4811
  te as Button,
4805
- Un as ButtonGroup,
4806
- qn as Checkbox,
4812
+ Xn as ButtonGroup,
4813
+ Jn as Checkbox,
4807
4814
  Ze as CloseButton,
4808
- Xn as ComboBox,
4809
- tr as ContextMenu,
4810
- fr as CsvTextArea,
4811
- nr as Dialog,
4815
+ Qn as ComboBox,
4816
+ rr as ContextMenu,
4817
+ mr as CsvTextArea,
4818
+ or as Dialog,
4812
4819
  fe as DialogClose,
4813
- Qn as EditButton,
4814
- er as Hyperlink,
4815
- rr as Input,
4816
- sr as ListGroup,
4817
- or as ListGroupItem,
4818
- cr as MonthRangePicker,
4819
- ir as MultiSelect,
4820
- Ar as NavStackContainer,
4821
- Nr as NavStackProvider,
4822
- Ut as Notification,
4823
- hr as NotificationContainer,
4824
- ar as NumberInput,
4825
- Jn as RefreshButton,
4826
- lr as Slider,
4827
- Ot as TabPanel,
4828
- dr as TabPanels,
4829
- ur as Tabs,
4830
- pr as Toggle,
4831
- Zn as TrashButton,
4832
- br as ViewportProvider,
4820
+ er as EditButton,
4821
+ nr as Hyperlink,
4822
+ sr as Input,
4823
+ cr as ListGroup,
4824
+ ir as ListGroupItem,
4825
+ lr as MonthRangePicker,
4826
+ ar as MultiSelect,
4827
+ Cr as NavStackContainer,
4828
+ Sr as NavStackProvider,
4829
+ Xt as Notification,
4830
+ gr as NotificationContainer,
4831
+ dr as NumberInput,
4832
+ Zn as RefreshButton,
4833
+ ur as Slider,
4834
+ jt as TabPanel,
4835
+ pr as TabPanels,
4836
+ fr as Tabs,
4837
+ hr as Toggle,
4838
+ tr as TrashButton,
4839
+ wr as ViewportProvider,
4833
4840
  me as appRegistry,
4834
4841
  ne as appStateStore,
4835
- Bn as cn,
4836
- gr as createAppI18nFactory,
4837
- mr as notificationManager,
4842
+ Wn as cn,
4843
+ vr as createAppI18nFactory,
4844
+ br as notificationManager,
4838
4845
  Q as runningAppsStore,
4839
- qt as showNotification,
4840
- Zt as useApp,
4846
+ Jt as showNotification,
4847
+ tn as useApp,
4841
4848
  Dt as useDialog,
4842
- xr as useNavStack,
4843
- kr as useNavView,
4849
+ Nr as useNavStack,
4850
+ Ar as useNavView,
4844
4851
  it as useViewport
4845
4852
  };
4846
4853
  //# sourceMappingURL=index.js.map