@kingsimba/nc-ui 0.1.21 → 0.1.22

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
@@ -37,8 +37,8 @@ function He({
37
37
  );
38
38
  return n ? /* @__PURE__ */ s("div", { className: "nc-activity-indicator-overlay", children: o }) : o;
39
39
  }
40
- function K({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: l, loading: c, onClick: d, children: p, ...f }) {
41
- const m = [
40
+ function K({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: a, loading: c, onClick: d, children: p, ...f }) {
41
+ const b = [
42
42
  "nc-button",
43
43
  e !== "default" ? `nc-${e}` : "",
44
44
  t ? "nc-block" : "",
@@ -46,23 +46,23 @@ function K({ variant: e = "default", block: t, size: n = "default", appearance:
46
46
  n === "large" ? "nc-large" : "",
47
47
  r === "transparent" ? "nc-transparent" : "",
48
48
  i || c ? "nc-disabled" : "",
49
- l ? "nc-text-selectable" : "",
49
+ a ? "nc-text-selectable" : "",
50
50
  c ? "nc-loading" : "",
51
51
  o ?? ""
52
52
  ].filter(Boolean).join(" ");
53
53
  return /* @__PURE__ */ x(
54
54
  "button",
55
55
  {
56
- className: m,
56
+ className: b,
57
57
  disabled: i || c,
58
- onClick: (u) => {
58
+ onClick: (l) => {
59
59
  if (!c) {
60
- if (l) {
61
- const v = window.getSelection();
62
- if (v && v.toString().length > 0)
60
+ if (a) {
61
+ const m = window.getSelection();
62
+ if (m && m.toString().length > 0)
63
63
  return;
64
64
  }
65
- d == null || d(u);
65
+ d == null || d(l);
66
66
  }
67
67
  },
68
68
  ...f,
@@ -94,7 +94,7 @@ function Tn({
94
94
  button: r,
95
95
  onAction: o,
96
96
  children: i,
97
- onClose: l,
97
+ onClose: a,
98
98
  className: c = "",
99
99
  style: d
100
100
  }) {
@@ -105,13 +105,13 @@ function Tn({
105
105
  return /* @__PURE__ */ x("div", { className: `nc-alert nc-${n} ${c}`.trim(), style: d, children: [
106
106
  /* @__PURE__ */ x("div", { className: "nc-alert-main", children: [
107
107
  /* @__PURE__ */ s("div", { className: `nc-alert-message nc-${n}`, children: p }),
108
- l && /* @__PURE__ */ s(
108
+ a && /* @__PURE__ */ s(
109
109
  "button",
110
110
  {
111
111
  type: "button",
112
112
  className: "nc-alert-close",
113
113
  "aria-label": "Close alert",
114
- onClick: l,
114
+ onClick: a,
115
115
  children: /* @__PURE__ */ s(xe, { size: 16 })
116
116
  }
117
117
  )
@@ -136,7 +136,7 @@ function zn({
136
136
  const o = Math.max(0, Math.min(1, Number(e) || 0));
137
137
  let i;
138
138
  r ? o < 0.1 ? i = "var(--nc-danger)" : o < 0.2 ? i = "var(--nc-warning)" : i = "var(--nc-success)" : i = n ? "#ffffff" : "#000000";
139
- const l = n ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.2)", c = 24, d = 14, p = 2, f = 0, m = 12, a = 0, u = 0, v = 0, h = c, g = d, A = g - a * 2, b = h - a * 2, y = Math.max(1, Math.min(4, g / 4)), w = o === 0 ? 0 : 0.05 + o * 0.95, k = c + p + m, E = 20, z = 0.65, M = Math.max(d, E * z), N = c + p + 1, R = (d - E * z) / 2;
139
+ const a = n ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.2)", c = 24, d = 14, p = 2, f = 0, b = 12, u = 0, l = 0, m = 0, g = c, h = d, A = h - u * 2, v = g - u * 2, y = Math.max(1, Math.min(4, h / 4)), w = o === 0 ? 0 : 0.05 + o * 0.95, k = c + p + b, E = 20, z = 0.65, M = Math.max(d, E * z), N = c + p + 1, R = (d - E * z) / 2;
140
140
  return /* @__PURE__ */ x(
141
141
  "svg",
142
142
  {
@@ -148,31 +148,31 @@ function zn({
148
148
  "aria-label": `Battery ${o === 0 ? "-" : Math.round(o * 100) + "%"} ${t}`,
149
149
  children: [
150
150
  /* @__PURE__ */ x("defs", { children: [
151
- /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: b * w, height: A, fill: "white" }) }),
151
+ /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: v * w, height: A, fill: "white" }) }),
152
152
  /* @__PURE__ */ x("mask", { id: `nc-battery-text-mask-${o}`, children: [
153
153
  /* @__PURE__ */ s("rect", { x: "0", y: "0", width: k, height: M, fill: "white" }),
154
- /* @__PURE__ */ s("text", { x: u + h / 2, y: d - 3, fontSize: 11, fontWeight: "bold", fill: "black", textAnchor: "middle", children: o === 0 ? "-" : Math.round(o * 100) })
154
+ /* @__PURE__ */ s("text", { x: l + g / 2, y: d - 3, fontSize: 11, fontWeight: "bold", fill: "black", textAnchor: "middle", children: o === 0 ? "-" : Math.round(o * 100) })
155
155
  ] })
156
156
  ] }),
157
157
  /* @__PURE__ */ x("g", { mask: `url(#nc-battery-text-mask-${o})`, children: [
158
158
  /* @__PURE__ */ s(
159
159
  "rect",
160
160
  {
161
- x: u,
162
- y: v,
161
+ x: l,
162
+ y: m,
163
163
  rx: y,
164
164
  ry: y,
165
- width: h,
166
- height: g,
167
- fill: l
165
+ width: g,
166
+ height: h,
167
+ fill: a
168
168
  }
169
169
  ),
170
170
  /* @__PURE__ */ s(
171
171
  "rect",
172
172
  {
173
- x: u + a,
174
- y: v + a,
175
- width: b,
173
+ x: l + u,
174
+ y: m + u,
175
+ width: v,
176
176
  height: A,
177
177
  fill: i,
178
178
  rx: y,
@@ -189,7 +189,7 @@ function zn({
189
189
  height: d * 0.48,
190
190
  rx: 0.8,
191
191
  ry: 0.8,
192
- fill: o === 1 ? i : l
192
+ fill: o === 1 ? i : a
193
193
  }
194
194
  ),
195
195
  t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${N}, ${R}) scale(${z})`, fill: i, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
@@ -205,12 +205,12 @@ function Pn({
205
205
  disabled: r,
206
206
  size: o = "default"
207
207
  }) {
208
- return /* @__PURE__ */ s("div", { className: `nc-button-group ${o === "small" ? "nc-small" : ""}`, children: n.map((i, l) => {
208
+ return /* @__PURE__ */ s("div", { className: `nc-button-group ${o === "small" ? "nc-small" : ""}`, children: n.map((i, a) => {
209
209
  const c = r || !!i.disabled;
210
210
  return /* @__PURE__ */ s(
211
211
  "button",
212
212
  {
213
- className: `nc-button-group-item ${e === i.key ? "nc-active" : ""} ${l < n.length - 1 ? "nc-has-border" : ""}`,
213
+ className: `nc-button-group-item ${e === i.key ? "nc-active" : ""} ${a < n.length - 1 ? "nc-has-border" : ""}`,
214
214
  onClick: () => !c && t(i.key),
215
215
  disabled: c,
216
216
  children: i.label
@@ -231,13 +231,13 @@ function wt({ size: e }) {
231
231
  }
232
232
  ) });
233
233
  }
234
- function Ln({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: l, className: c = "" }) {
234
+ function Ln({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: a, className: c = "" }) {
235
235
  const d = o === "small";
236
236
  return /* @__PURE__ */ x(
237
237
  "label",
238
238
  {
239
239
  className: `nc-checkbox-label ${d ? "nc-small" : ""} ${n ? "nc-disabled" : ""} ${c}`.trim(),
240
- style: l,
240
+ style: a,
241
241
  onClick: (p) => {
242
242
  n || (p.preventDefault(), t(!e));
243
243
  },
@@ -261,7 +261,7 @@ function Ln({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
261
261
  );
262
262
  }
263
263
  function yt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
264
- const i = W(null), { t: l } = Q();
264
+ const i = W(null), { t: a } = Q();
265
265
  return B(() => {
266
266
  r && i.current && i.current.scrollIntoView({ block: "nearest" });
267
267
  }, [r]), /* @__PURE__ */ x(
@@ -280,7 +280,7 @@ function yt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
280
280
  e.label,
281
281
  e.default && /* @__PURE__ */ x("span", { style: { fontSize: "0.85em", color: "var(--nc-text-weak)", marginLeft: 6 }, children: [
282
282
  "(",
283
- l("common.default"),
283
+ a("common.default"),
284
284
  ")"
285
285
  ] })
286
286
  ]
@@ -294,26 +294,26 @@ function xt({
294
294
  selectedValue: r,
295
295
  placement: o = "bottom",
296
296
  anchorRef: i,
297
- small: l,
297
+ small: a,
298
298
  highlightedIndex: c = -1
299
299
  }) {
300
- const [d, p] = T({ top: 0, left: 0, width: 0 }), [f, m] = T(o), { t: a } = Q();
300
+ const [d, p] = T({ top: 0, left: 0, width: 0 }), [f, b] = T(o), { t: u } = Q();
301
301
  if (B(() => {
302
302
  if (e && i.current) {
303
- const v = i.current.getBoundingClientRect();
304
- let h = o;
303
+ const m = i.current.getBoundingClientRect();
304
+ let g = o;
305
305
  if (o === "bottom") {
306
- const g = window.innerHeight - v.bottom, A = v.top;
307
- g < 320 && A > g && (h = "top");
306
+ const h = window.innerHeight - m.bottom, A = m.top;
307
+ h < 320 && A > h && (g = "top");
308
308
  }
309
- m(h), p({
310
- top: h === "top" ? v.top - 4 : v.bottom + 4,
311
- left: v.left,
312
- width: v.width
309
+ b(g), p({
310
+ top: g === "top" ? m.top - 4 : m.bottom + 4,
311
+ left: m.left,
312
+ width: m.width
313
313
  });
314
314
  }
315
315
  }, [e, i, o]), !e) return null;
316
- const u = /* @__PURE__ */ s(
316
+ const l = /* @__PURE__ */ s(
317
317
  "div",
318
318
  {
319
319
  className: "nc-combo-dropdown",
@@ -327,10 +327,10 @@ function xt({
327
327
  maxHeight: 300,
328
328
  overflowY: "auto"
329
329
  },
330
- children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${l ? "nc-small" : ""}`, children: a("common.noResults") }) : t.map((v, h) => /* @__PURE__ */ s(yt, { option: v, onChange: n, selected: v.value === r, highlighted: h === c, small: l }, v.value))
330
+ children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: u("common.noResults") }) : t.map((m, g) => /* @__PURE__ */ s(yt, { option: m, onChange: n, selected: m.value === r, highlighted: g === c, small: a }, m.value))
331
331
  }
332
332
  );
333
- return ue(u, document.body);
333
+ return ue(l, document.body);
334
334
  }
335
335
  function kt({ onClick: e, small: t }) {
336
336
  return /* @__PURE__ */ s(
@@ -363,51 +363,51 @@ function Bn({
363
363
  options: r,
364
364
  disabled: o,
365
365
  label: i,
366
- clearable: l = !0,
366
+ clearable: a = !0,
367
367
  allowTyping: c = !1,
368
368
  placement: d = "bottom",
369
369
  size: p = "default",
370
370
  appearance: f = "default",
371
- style: m,
372
- className: a
371
+ style: b,
372
+ className: u
373
373
  }) {
374
- const [u, v] = T(!1), [h, g] = T(""), [A, b] = T(-1), y = W(null), w = W(null), k = p === "small", { t: E } = Q(), z = me(() => {
375
- const $ = h.toLowerCase();
374
+ const [l, m] = T(!1), [g, h] = T(""), [A, v] = T(-1), y = W(null), w = W(null), k = p === "small", { t: E } = Q(), z = me(() => {
375
+ const $ = g.toLowerCase();
376
376
  return c ? r.filter((P) => P.label.toLowerCase().includes($)) : r;
377
- }, [r, h, c]);
377
+ }, [r, g, c]);
378
378
  B(() => {
379
- u && b(-1);
380
- }, [u, z]), B(() => {
381
- if (!l && !e && r.length > 0 && t) {
379
+ l && v(-1);
380
+ }, [l, z]), B(() => {
381
+ if (!a && !e && r.length > 0 && t) {
382
382
  const $ = r.find((P) => P.default) || r[0];
383
383
  t($.value);
384
384
  }
385
- }, [l, e, r, t]), B(() => {
385
+ }, [a, e, r, t]), B(() => {
386
386
  function $(P) {
387
387
  var H;
388
- P.target instanceof Node && y.current && ((H = y.current.parentElement) != null && H.contains(P.target) || v(!1));
388
+ P.target instanceof Node && y.current && ((H = y.current.parentElement) != null && H.contains(P.target) || m(!1));
389
389
  }
390
390
  return document.addEventListener("mousedown", $), () => document.removeEventListener("mousedown", $);
391
391
  }, []);
392
- const M = r.find(($) => $.value === e), N = M && l, R = !o && !N, C = !(u && c) && !!M, S = ($, P = !1) => {
392
+ const M = r.find(($) => $.value === e), N = M && a, R = !o && !N, C = !(l && c) && !!M, S = ($, P = !1) => {
393
393
  var H;
394
- t == null || t($), v(!1), g(""), P && ((H = y.current) == null || H.blur());
394
+ t == null || t($), m(!1), h(""), P && ((H = y.current) == null || H.blur());
395
395
  }, L = () => {
396
- t == null || t(void 0), g(""), v(!1);
396
+ t == null || t(void 0), h(""), m(!1);
397
397
  }, V = ($) => {
398
- if (!u) {
399
- ($.key === "ArrowDown" || $.key === "ArrowUp") && (v(!0), $.preventDefault());
398
+ if (!l) {
399
+ ($.key === "ArrowDown" || $.key === "ArrowUp") && (m(!0), $.preventDefault());
400
400
  return;
401
401
  }
402
402
  switch ($.key) {
403
403
  case "ArrowDown":
404
- $.preventDefault(), b((P) => {
404
+ $.preventDefault(), v((P) => {
405
405
  const H = P + 1;
406
406
  return H >= z.length ? 0 : H;
407
407
  });
408
408
  break;
409
409
  case "ArrowUp":
410
- $.preventDefault(), b((P) => {
410
+ $.preventDefault(), v((P) => {
411
411
  const H = P - 1;
412
412
  return H < 0 ? z.length - 1 : H;
413
413
  });
@@ -416,11 +416,11 @@ function Bn({
416
416
  $.preventDefault(), A >= 0 && A < z.length && S(z[A].value, !0);
417
417
  break;
418
418
  case "Escape":
419
- $.preventDefault(), v(!1), g("");
419
+ $.preventDefault(), m(!1), h("");
420
420
  break;
421
421
  }
422
422
  };
423
- return /* @__PURE__ */ x("div", { className: `nc-combo-container ${f === "transparent" ? "nc-transparent" : ""} ${a || ""}`.trim(), style: { position: "relative", ...m }, children: [
423
+ return /* @__PURE__ */ x("div", { className: `nc-combo-container ${f === "transparent" ? "nc-transparent" : ""} ${u || ""}`.trim(), style: { position: "relative", ...b }, children: [
424
424
  i && /* @__PURE__ */ s("span", { className: `nc-label ${k ? "nc-small" : ""}`, children: i }),
425
425
  /* @__PURE__ */ x(
426
426
  "div",
@@ -428,7 +428,7 @@ function Bn({
428
428
  ref: w,
429
429
  style: { position: "relative", display: "flex", alignItems: "center" },
430
430
  onMouseDown: ($) => {
431
- o || c && $.target === y.current || (v((P) => (!P && c && M && g(M.label), !P)), c && !u && setTimeout(() => {
431
+ o || c && $.target === y.current || (m((P) => (!P && c && M && h(M.label), !P)), c && !l && setTimeout(() => {
432
432
  var P, H;
433
433
  (P = y.current) == null || P.focus(), (H = y.current) == null || H.select();
434
434
  }, 0));
@@ -442,14 +442,14 @@ function Bn({
442
442
  placeholder: n,
443
443
  onFocus: () => {
444
444
  var $;
445
- !o && c && (v(!0), M && (g(M.label), setTimeout(() => {
445
+ !o && c && (m(!0), M && (h(M.label), setTimeout(() => {
446
446
  var P;
447
447
  return (P = y.current) == null ? void 0 : P.select();
448
448
  }, 0))), c || ($ = y.current) == null || $.blur();
449
449
  },
450
- onChange: ($) => c && g($.target.value),
450
+ onChange: ($) => c && h($.target.value),
451
451
  onKeyDown: V,
452
- value: u && c ? h : (M == null ? void 0 : M.label) || "",
452
+ value: l && c ? g : (M == null ? void 0 : M.label) || "",
453
453
  readOnly: o || !c,
454
454
  style: {
455
455
  width: "100%",
@@ -490,11 +490,11 @@ function Bn({
490
490
  }
491
491
  ),
492
492
  N && /* @__PURE__ */ s(kt, { onClick: L, small: k }),
493
- R && /* @__PURE__ */ s(Nt, { open: u, onClick: () => v(($) => !$), small: k })
493
+ R && /* @__PURE__ */ s(Nt, { open: l, onClick: () => m(($) => !$), small: k })
494
494
  ]
495
495
  }
496
496
  ),
497
- /* @__PURE__ */ s(xt, { isOpen: u, options: z, onSelect: S, selectedValue: e, placement: d, anchorRef: w, small: k, highlightedIndex: A })
497
+ /* @__PURE__ */ s(xt, { isOpen: l, options: z, onSelect: S, selectedValue: e, placement: d, anchorRef: w, small: k, highlightedIndex: A })
498
498
  ] });
499
499
  }
500
500
  function Dn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
@@ -575,16 +575,16 @@ function Fn({
575
575
  anchor: o,
576
576
  preferredDirection: i = "down"
577
577
  }) {
578
- const l = W(null), [c, d] = T({ top: 0, left: 0 }), p = o || (r == null ? void 0 : r.current);
578
+ const a = W(null), [c, d] = T({ top: 0, left: 0 }), p = o || (r == null ? void 0 : r.current);
579
579
  if (B(() => {
580
- if (!e || !p || !l.current) return;
581
- const a = p.getBoundingClientRect(), u = l.current.getBoundingClientRect(), v = window.innerHeight, h = window.innerWidth, g = a.bottom + 8, A = g + u.height <= v - 8;
582
- let b = i;
583
- (!A && i === "down" || i === "up" && A) && (b = "up");
580
+ if (!e || !p || !a.current) return;
581
+ const u = p.getBoundingClientRect(), l = a.current.getBoundingClientRect(), m = window.innerHeight, g = window.innerWidth, h = u.bottom + 8, A = h + l.height <= m - 8;
582
+ let v = i;
583
+ (!A && i === "down" || i === "up" && A) && (v = "up");
584
584
  let y;
585
- b === "down" ? y = g : y = a.top - u.height - 8;
586
- let w = a.left;
587
- w + u.width > h - 8 && (w = a.right - u.width), d({
585
+ v === "down" ? y = h : y = u.top - l.height - 8;
586
+ let w = u.left;
587
+ w + l.width > g - 8 && (w = u.right - l.width), d({
588
588
  top: Math.max(8, y),
589
589
  // Ensure minimum 8px from top
590
590
  left: Math.max(8, w)
@@ -592,23 +592,23 @@ function Fn({
592
592
  });
593
593
  }, [e, p, i]), B(() => {
594
594
  if (!e) return;
595
- const a = (v) => {
596
- l.current && !l.current.contains(v.target) && p && !p.contains(v.target) && t();
597
- }, u = (v) => {
598
- v.key === "Escape" && t();
595
+ const u = (m) => {
596
+ a.current && !a.current.contains(m.target) && p && !p.contains(m.target) && t();
597
+ }, l = (m) => {
598
+ m.key === "Escape" && t();
599
599
  };
600
- return document.addEventListener("mousedown", a), document.addEventListener("keydown", u), () => {
601
- document.removeEventListener("mousedown", a), document.removeEventListener("keydown", u);
600
+ return document.addEventListener("mousedown", u), document.addEventListener("keydown", l), () => {
601
+ document.removeEventListener("mousedown", u), document.removeEventListener("keydown", l);
602
602
  };
603
603
  }, [e, t, p]), !e) return null;
604
- const f = (a) => {
605
- a.type !== "separator" && !a.disabled && a.onClick && (a.onClick(), t());
606
- }, m = n.some((a) => a.icon);
604
+ const f = (u) => {
605
+ u.type !== "separator" && !u.disabled && u.onClick && (u.onClick(), t());
606
+ }, b = n.some((u) => u.icon);
607
607
  return ue(
608
608
  /* @__PURE__ */ s(
609
609
  "div",
610
610
  {
611
- ref: l,
611
+ ref: a,
612
612
  className: "nc-context-menu",
613
613
  style: {
614
614
  position: "fixed",
@@ -617,35 +617,35 @@ function Fn({
617
617
  zIndex: 1e4
618
618
  },
619
619
  role: "menu",
620
- children: n.map((a) => {
621
- if (a.type === "separator")
620
+ children: n.map((u) => {
621
+ if (u.type === "separator")
622
622
  return /* @__PURE__ */ s(
623
623
  "div",
624
624
  {
625
625
  className: "nc-context-menu-separator",
626
626
  role: "separator"
627
627
  },
628
- a.id
628
+ u.id
629
629
  );
630
- const u = [
630
+ const l = [
631
631
  "nc-context-menu-item",
632
- a.variant && a.variant !== "default" ? `nc-${a.variant}` : "",
633
- a.disabled ? "nc-disabled" : "",
634
- m && !a.icon ? "nc-indented" : ""
632
+ u.variant && u.variant !== "default" ? `nc-${u.variant}` : "",
633
+ u.disabled ? "nc-disabled" : "",
634
+ b && !u.icon ? "nc-indented" : ""
635
635
  ].filter(Boolean).join(" ");
636
636
  return /* @__PURE__ */ x(
637
637
  "button",
638
638
  {
639
- className: u,
640
- onClick: () => f(a),
641
- disabled: a.disabled,
639
+ className: l,
640
+ onClick: () => f(u),
641
+ disabled: u.disabled,
642
642
  role: "menuitem",
643
643
  children: [
644
- a.icon && /* @__PURE__ */ s("span", { className: "nc-context-menu-icon", children: a.icon }),
645
- /* @__PURE__ */ s("span", { className: "nc-context-menu-label", children: a.label })
644
+ u.icon && /* @__PURE__ */ s("span", { className: "nc-context-menu-icon", children: u.icon }),
645
+ /* @__PURE__ */ s("span", { className: "nc-context-menu-label", children: u.label })
646
646
  ]
647
647
  },
648
- a.id
648
+ u.id
649
649
  );
650
650
  })
651
651
  }
@@ -662,8 +662,8 @@ function At() {
662
662
  }
663
663
  function ne({ children: e, onClick: t, ...n }) {
664
664
  const { close: r } = At(), { t: o } = Q();
665
- return /* @__PURE__ */ s(K, { onClick: (l) => {
666
- t == null || t(l), r();
665
+ return /* @__PURE__ */ s(K, { onClick: (a) => {
666
+ t == null || t(a), r();
667
667
  }, ...n, children: e ?? o("common.close") });
668
668
  }
669
669
  function Vn({
@@ -673,24 +673,24 @@ function Vn({
673
673
  children: r,
674
674
  style: o,
675
675
  footerType: i = "ok-cancel",
676
- footer: l,
676
+ footer: a,
677
677
  onOk: c,
678
678
  onSave: d,
679
679
  onDelete: p,
680
680
  onCancel: f,
681
- onConnect: m,
682
- closeOnOverlay: a = !0,
683
- primaryDisabled: u = !1,
684
- fullScreen: v = !1,
685
- hideTitleBar: h = !1,
686
- className: g = "",
681
+ onConnect: b,
682
+ closeOnOverlay: u = !0,
683
+ primaryDisabled: l = !1,
684
+ fullScreen: m = !1,
685
+ hideTitleBar: g = !1,
686
+ className: h = "",
687
687
  onContentHeightChange: A
688
688
  }) {
689
- const b = W(null), y = W(null), { t: w } = Q(), k = { close: t }, E = (N) => {
690
- a && N.target === N.currentTarget && t();
689
+ const v = W(null), y = W(null), { t: w } = Q(), k = { close: t }, E = (N) => {
690
+ u && N.target === N.currentTarget && t();
691
691
  };
692
692
  if (B(() => {
693
- e && b.current && b.current.focus();
693
+ e && v.current && v.current.focus();
694
694
  }, [e]), B(() => {
695
695
  if (!A || !y.current) return;
696
696
  const N = new ResizeObserver((R) => {
@@ -706,25 +706,25 @@ function Vn({
706
706
  const z = () => {
707
707
  switch (i) {
708
708
  case "ok":
709
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: u, children: w("common.ok") }) });
709
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: l, children: w("common.ok") }) });
710
710
  case "ok-cancel":
711
711
  return /* @__PURE__ */ x("div", { className: "nc-dialog-footer", children: [
712
- /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: u, children: w("common.ok") }),
712
+ /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: l, children: w("common.ok") }),
713
713
  /* @__PURE__ */ s(ne, { onClick: f, children: w("common.cancel") })
714
714
  ] });
715
715
  case "save-cancel":
716
716
  return /* @__PURE__ */ x("div", { className: "nc-dialog-footer", children: [
717
- /* @__PURE__ */ s(K, { variant: "primary", onClick: d, disabled: u, children: w("common.save") }),
717
+ /* @__PURE__ */ s(K, { variant: "primary", onClick: d, disabled: l, children: w("common.save") }),
718
718
  /* @__PURE__ */ s(ne, { onClick: f, children: w("common.cancel") })
719
719
  ] });
720
720
  case "delete-cancel":
721
721
  return /* @__PURE__ */ x("div", { className: "nc-dialog-footer", children: [
722
- /* @__PURE__ */ s(K, { variant: "danger", onClick: p, disabled: u, children: w("common.delete") }),
722
+ /* @__PURE__ */ s(K, { variant: "danger", onClick: p, disabled: l, children: w("common.delete") }),
723
723
  /* @__PURE__ */ s(ne, { onClick: f, children: w("common.cancel") })
724
724
  ] });
725
725
  case "connect":
726
726
  return /* @__PURE__ */ x("div", { className: "nc-dialog-footer", children: [
727
- /* @__PURE__ */ s(K, { variant: "primary", onClick: m, disabled: u, children: w("common.connect") }),
727
+ /* @__PURE__ */ s(K, { variant: "primary", onClick: b, disabled: l, children: w("common.connect") }),
728
728
  /* @__PURE__ */ s(ne, { onClick: f, children: w("common.cancel") })
729
729
  ] });
730
730
  case "close":
@@ -732,24 +732,24 @@ function Vn({
732
732
  case "gotit":
733
733
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(ne, { variant: "primary", children: w("common.gotit") }) });
734
734
  case "custom":
735
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: l });
735
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: a });
736
736
  case "none":
737
737
  return null;
738
738
  default:
739
739
  return null;
740
740
  }
741
- }, M = /* @__PURE__ */ s(Oe.Provider, { value: k, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${v ? " nc-fullscreen" : ""}`, onClick: E, children: /* @__PURE__ */ x(
741
+ }, M = /* @__PURE__ */ s(Oe.Provider, { value: k, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${m ? " nc-fullscreen" : ""}`, onClick: E, children: /* @__PURE__ */ x(
742
742
  "div",
743
743
  {
744
- ref: b,
745
- className: `nc-dialog-container ${g}`,
744
+ ref: v,
745
+ className: `nc-dialog-container ${h}`,
746
746
  style: o,
747
747
  tabIndex: -1,
748
748
  role: "dialog",
749
749
  "aria-modal": "true",
750
- "aria-labelledby": h ? void 0 : "nc-dialog-title",
750
+ "aria-labelledby": g ? void 0 : "nc-dialog-title",
751
751
  children: [
752
- !h && /* @__PURE__ */ x("div", { className: "nc-dialog-header", children: [
752
+ !g && /* @__PURE__ */ x("div", { className: "nc-dialog-header", children: [
753
753
  /* @__PURE__ */ s("h3", { id: "nc-dialog-title", className: "nc-dialog-title", children: n }),
754
754
  /* @__PURE__ */ s(We, { onClick: t, "aria-label": "Close dialog" })
755
755
  ] }),
@@ -758,7 +758,7 @@ function Vn({
758
758
  ]
759
759
  }
760
760
  ) }) });
761
- return v ? ue(M, document.body) : M;
761
+ return m ? ue(M, document.body) : M;
762
762
  }
763
763
  function Ct({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
764
764
  const r = t === "small" ? 28 : 34;
@@ -824,28 +824,28 @@ function Gn({
824
824
  onEnter: r,
825
825
  onClear: o,
826
826
  placeholder: i,
827
- disabled: l,
827
+ disabled: a,
828
828
  label: c,
829
829
  clearable: d = !0,
830
830
  type: p = "text",
831
831
  className: f = "",
832
- size: m = "default",
833
- style: a,
834
- leadingIcon: u,
835
- showPasswordToggle: v = !1,
836
- multiline: h = !1,
837
- rows: g = 3,
832
+ size: b = "default",
833
+ style: u,
834
+ leadingIcon: l,
835
+ showPasswordToggle: m = !1,
836
+ multiline: g = !1,
837
+ rows: h = 3,
838
838
  validator: A,
839
- showErrorMessage: b = !0
839
+ showErrorMessage: v = !0
840
840
  }) {
841
- const y = W(null), w = W(null), [k, E] = T(!1), [z, M] = T(!1), N = e !== void 0, [R, C] = T(t), S = N ? e : R, L = A ? A(S) : null, V = !!L, $ = p === "password", P = $ && v && !l && !h, H = d && S && !l && z, Z = m === "small" ? 32 : 44;
841
+ const y = W(null), w = W(null), [k, E] = T(!1), [z, M] = T(!1), N = e !== void 0, [R, C] = T(t), S = N ? e : R, L = A ? A(S) : null, V = !!L, $ = p === "password", P = $ && m && !a && !g, H = d && S && !a && z, Z = b === "small" ? 32 : 44;
842
842
  let Y = 12;
843
843
  H && P ? Y = Z * 2 : (H || P) && (Y = Z);
844
- const F = u ? m === "small" ? 28 : 34 : void 0, Ze = () => {
844
+ const F = l ? b === "small" ? 28 : 34 : void 0, Ze = () => {
845
845
  var te, ce;
846
- N || C(""), n == null || n(""), o == null || o(), h ? (te = w.current) == null || te.focus() : (ce = y.current) == null || ce.focus();
846
+ N || C(""), n == null || n(""), o == null || o(), g ? (te = w.current) == null || te.focus() : (ce = y.current) == null || ce.focus();
847
847
  }, Se = (te) => {
848
- te.key === "Enter" && !h && (r == null || r());
848
+ te.key === "Enter" && !g && (r == null || r());
849
849
  }, Ie = (te) => {
850
850
  const ce = te.target.value;
851
851
  N || C(ce), n == null || n(ce);
@@ -853,12 +853,12 @@ function Gn({
853
853
  M(!0);
854
854
  }, $e = () => {
855
855
  M(!1);
856
- }, Re = `nc-input ${m === "small" ? "nc-small " : ""} ${V ? "nc-error " : ""}${f}`;
857
- return /* @__PURE__ */ x("div", { className: "nc-col", style: { position: "relative", flex: 1, ...a }, children: [
856
+ }, Re = `nc-input ${b === "small" ? "nc-small " : ""} ${V ? "nc-error " : ""}${f}`;
857
+ return /* @__PURE__ */ x("div", { className: "nc-col", style: { position: "relative", flex: 1, ...u }, children: [
858
858
  c && /* @__PURE__ */ s("span", { className: "nc-label", children: c }),
859
- /* @__PURE__ */ x("div", { style: { position: "relative", display: "flex", alignItems: h ? "flex-start" : "center" }, children: [
860
- u && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: h ? void 0 : "100%", top: h ? 10 : void 0 }, children: u }),
861
- h ? /* @__PURE__ */ s(
859
+ /* @__PURE__ */ x("div", { style: { position: "relative", display: "flex", alignItems: g ? "flex-start" : "center" }, children: [
860
+ l && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: g ? void 0 : "100%", top: g ? 10 : void 0 }, children: l }),
861
+ g ? /* @__PURE__ */ s(
862
862
  "textarea",
863
863
  {
864
864
  ref: w,
@@ -869,10 +869,10 @@ function Gn({
869
869
  onKeyDown: Se,
870
870
  onFocus: Me,
871
871
  onBlur: $e,
872
- readOnly: l,
873
- "aria-disabled": l,
874
- tabIndex: l ? -1 : void 0,
875
- rows: g,
872
+ readOnly: a,
873
+ "aria-disabled": a,
874
+ tabIndex: a ? -1 : void 0,
875
+ rows: h,
876
876
  style: {
877
877
  width: "100%",
878
878
  paddingRight: Y,
@@ -891,9 +891,9 @@ function Gn({
891
891
  onKeyDown: Se,
892
892
  onFocus: Me,
893
893
  onBlur: $e,
894
- readOnly: l,
895
- "aria-disabled": l,
896
- tabIndex: l ? -1 : void 0,
894
+ readOnly: a,
895
+ "aria-disabled": a,
896
+ tabIndex: a ? -1 : void 0,
897
897
  style: {
898
898
  width: "100%",
899
899
  paddingRight: Y,
@@ -901,10 +901,10 @@ function Gn({
901
901
  }
902
902
  }
903
903
  ),
904
- H && /* @__PURE__ */ s(Ct, { onClick: Ze, size: m, rightOffset: P ? Z + 4 : 4 }),
905
- P && /* @__PURE__ */ s(St, { visible: k, onClick: () => E(!k), size: m })
904
+ H && /* @__PURE__ */ s(Ct, { onClick: Ze, size: b, rightOffset: P ? Z + 4 : 4 }),
905
+ P && /* @__PURE__ */ s(St, { visible: k, onClick: () => E(!k), size: b })
906
906
  ] }),
907
- V && b && /* @__PURE__ */ s("span", { className: "nc-error-message", children: L })
907
+ V && v && /* @__PURE__ */ s("span", { className: "nc-error-message", children: L })
908
908
  ] });
909
909
  }
910
910
  function Yn({
@@ -914,7 +914,7 @@ function Yn({
914
914
  selectable: r = !1,
915
915
  style: o
916
916
  }) {
917
- const [i, l] = ke.useState(!1);
917
+ const [i, a] = ke.useState(!1);
918
918
  return /* @__PURE__ */ s(
919
919
  "div",
920
920
  {
@@ -928,9 +928,9 @@ function Yn({
928
928
  t(d);
929
929
  }
930
930
  },
931
- onMouseDown: () => t && l(!0),
932
- onMouseUp: () => l(!1),
933
- onMouseLeave: () => l(!1),
931
+ onMouseDown: () => t && a(!0),
932
+ onMouseUp: () => a(!1),
933
+ onMouseLeave: () => a(!1),
934
934
  style: {
935
935
  cursor: t ? "pointer" : "default",
936
936
  userSelect: r ? "text" : void 0,
@@ -958,54 +958,54 @@ function jn({ title: e, titleTools: t, children: n, style: r }) {
958
958
  ] });
959
959
  }
960
960
  function Kn({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
961
- const [i, l] = T(!1), [c, d] = T(""), p = W(null), f = me(() => n.filter((a) => a.label.toLowerCase().includes(c.toLowerCase())), [n, c]);
961
+ const [i, a] = T(!1), [c, d] = T(""), p = W(null), f = me(() => n.filter((u) => u.label.toLowerCase().includes(c.toLowerCase())), [n, c]);
962
962
  B(() => {
963
- function a(u) {
964
- !(u.target instanceof Node) || !p.current || p.current.contains(u.target) || l(!1);
963
+ function u(l) {
964
+ !(l.target instanceof Node) || !p.current || p.current.contains(l.target) || a(!1);
965
965
  }
966
- return document.addEventListener("mousedown", a), () => document.removeEventListener("mousedown", a);
966
+ return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
967
967
  }, []);
968
- const m = (a) => {
969
- e.includes(a) ? t(e.filter((u) => u !== a)) : t([...e, a]);
968
+ const b = (u) => {
969
+ e.includes(u) ? t(e.filter((l) => l !== u)) : t([...e, u]);
970
970
  };
971
971
  return /* @__PURE__ */ x("div", { ref: p, className: "nc-col", style: { position: "relative" }, children: [
972
972
  o && /* @__PURE__ */ s("span", { className: "nc-label", children: o }),
973
973
  /* @__PURE__ */ x("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: [
974
974
  e.length === 0 && /* @__PURE__ */ s("span", { className: "nc-label", children: r }),
975
- e.map((a) => {
976
- const u = n.find((v) => v.value === a);
977
- return u ? /* @__PURE__ */ x("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: [
978
- u.label,
975
+ e.map((u) => {
976
+ const l = n.find((m) => m.value === u);
977
+ return l ? /* @__PURE__ */ x("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: [
978
+ l.label,
979
979
  /* @__PURE__ */ s(
980
980
  "button",
981
981
  {
982
982
  className: "nc-button nc-ghost",
983
983
  style: { padding: 0, minHeight: 0, height: 20, width: 20, display: "inline-flex", alignItems: "center", justifyContent: "center", border: "none" },
984
- onClick: () => m(a),
985
- "aria-label": `Remove ${u.label}`,
984
+ onClick: () => b(u),
985
+ "aria-label": `Remove ${l.label}`,
986
986
  children: "✕"
987
987
  }
988
988
  )
989
- ] }, a) : null;
989
+ ] }, u) : null;
990
990
  }),
991
991
  /* @__PURE__ */ s(
992
992
  "input",
993
993
  {
994
994
  className: "nc-input",
995
995
  value: c,
996
- onChange: (a) => d(a.target.value),
997
- onFocus: () => l(!0),
996
+ onChange: (u) => d(u.target.value),
997
+ onFocus: () => a(!0),
998
998
  style: { minWidth: 50, border: "none", background: "transparent", padding: 4, minHeight: 32, flex: 1 }
999
999
  }
1000
1000
  )
1001
1001
  ] }),
1002
1002
  i && /* @__PURE__ */ x("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: [
1003
- f.map((a) => {
1004
- const u = e.includes(a.value);
1005
- return /* @__PURE__ */ x("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => m(a.value), children: [
1006
- /* @__PURE__ */ s("span", { children: a.label }),
1007
- /* @__PURE__ */ s("span", { children: u ? "✔️" : "" })
1008
- ] }, a.value);
1003
+ f.map((u) => {
1004
+ const l = e.includes(u.value);
1005
+ return /* @__PURE__ */ x("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => b(u.value), children: [
1006
+ /* @__PURE__ */ s("span", { children: u.label }),
1007
+ /* @__PURE__ */ s("span", { children: l ? "✔️" : "" })
1008
+ ] }, u.value);
1009
1009
  }),
1010
1010
  f.length === 0 && /* @__PURE__ */ s("div", { className: "nc-section nc-label", children: "No results" })
1011
1011
  ] })
@@ -1049,19 +1049,19 @@ function _n({
1049
1049
  label: r,
1050
1050
  className: o = "",
1051
1051
  disabled: i = !1,
1052
- size: l = "default"
1052
+ size: a = "default"
1053
1053
  }) {
1054
- const [c, d] = T(!1), [p, f] = T(""), [m, a] = T(""), [u, v] = T({ top: 0, left: 0, width: 0, right: void 0 }), h = W(null), g = W(null);
1054
+ const [c, d] = T(!1), [p, f] = T(""), [b, u] = T(""), [l, m] = T({ top: 0, left: 0, width: 0, right: void 0 }), g = W(null), h = W(null);
1055
1055
  B(() => {
1056
- if (c && h.current) {
1057
- const C = h.current.getBoundingClientRect(), L = Math.max(C.width, 400);
1058
- window.innerWidth - C.left < L && C.right >= L ? v({
1056
+ if (c && g.current) {
1057
+ const C = g.current.getBoundingClientRect(), L = Math.max(C.width, 400);
1058
+ window.innerWidth - C.left < L && C.right >= L ? m({
1059
1059
  top: C.bottom + 4,
1060
1060
  left: 0,
1061
1061
  // Not used but type needs it, let's just use 0
1062
1062
  right: window.innerWidth - C.right,
1063
1063
  width: L
1064
- }) : v({
1064
+ }) : m({
1065
1065
  top: C.bottom + 4,
1066
1066
  left: C.left,
1067
1067
  right: void 0,
@@ -1071,31 +1071,31 @@ function _n({
1071
1071
  }, [c]), B(() => {
1072
1072
  if (!c) return;
1073
1073
  const C = (S) => {
1074
- h.current && !h.current.contains(S.target) && g.current && !g.current.contains(S.target) && d(!1);
1074
+ g.current && !g.current.contains(S.target) && h.current && !h.current.contains(S.target) && d(!1);
1075
1075
  };
1076
1076
  return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
1077
1077
  }, [c]);
1078
1078
  const A = () => {
1079
- f(e || Te()), a(t || Te()), d(!0);
1080
- }, b = () => {
1079
+ f(e || Te()), u(t || Te()), d(!0);
1080
+ }, v = () => {
1081
1081
  d(!1);
1082
1082
  }, y = () => {
1083
- const C = pe(p), S = pe(m);
1083
+ const C = pe(p), S = pe(b);
1084
1084
  if (C || S)
1085
1085
  return;
1086
- const L = de(p), V = de(m);
1086
+ const L = de(p), V = de(b);
1087
1087
  L && V && (n == null || n(L, V)), d(!1);
1088
- }, w = e && t ? `${Ee(e)} - ${Ee(t)}` : "Select month range", k = pe(p), E = pe(m), z = de(p), M = de(m), N = z && M && z > M, R = c ? ue(
1088
+ }, w = e && t ? `${Ee(e)} - ${Ee(t)}` : "Select month range", k = pe(p), E = pe(b), z = de(p), M = de(b), N = z && M && z > M, R = c ? ue(
1089
1089
  /* @__PURE__ */ s(
1090
1090
  "div",
1091
1091
  {
1092
- ref: g,
1092
+ ref: h,
1093
1093
  className: "nc-month-range-picker-popup",
1094
1094
  style: {
1095
1095
  position: "fixed",
1096
- top: u.top,
1097
- ...u.right !== void 0 ? { right: u.right } : { left: u.left },
1098
- width: u.width,
1096
+ top: l.top,
1097
+ ...l.right !== void 0 ? { right: l.right } : { left: l.left },
1098
+ width: l.width,
1099
1099
  zIndex: 1e3
1100
1100
  },
1101
1101
  children: /* @__PURE__ */ x("div", { className: "nc-month-range-picker-content", children: [
@@ -1121,8 +1121,8 @@ function _n({
1121
1121
  {
1122
1122
  type: "text",
1123
1123
  className: `nc-month-input ${E ? "nc-error" : ""}`,
1124
- value: m,
1125
- onChange: (C) => a(C.target.value),
1124
+ value: b,
1125
+ onChange: (C) => u(C.target.value),
1126
1126
  placeholder: "YY-M(M) or YYYY-M(M)"
1127
1127
  }
1128
1128
  ),
@@ -1136,24 +1136,24 @@ function _n({
1136
1136
  {
1137
1137
  variant: "primary",
1138
1138
  onClick: y,
1139
- disabled: !p || !m || !!k || !!E || !!N,
1139
+ disabled: !p || !b || !!k || !!E || !!N,
1140
1140
  children: "Apply"
1141
1141
  }
1142
1142
  ),
1143
- /* @__PURE__ */ s(K, { variant: "ghost", onClick: b, children: "Cancel" })
1143
+ /* @__PURE__ */ s(K, { variant: "ghost", onClick: v, children: "Cancel" })
1144
1144
  ] })
1145
1145
  ] })
1146
1146
  }
1147
1147
  ),
1148
1148
  document.body
1149
1149
  ) : null;
1150
- return /* @__PURE__ */ x("div", { className: `nc-month-range-picker ${l === "small" ? "nc-small " : ""}${o}`, children: [
1151
- r && /* @__PURE__ */ s("label", { className: `nc-label${l === "small" ? " nc-small" : ""}`, children: r }),
1150
+ return /* @__PURE__ */ x("div", { className: `nc-month-range-picker ${a === "small" ? "nc-small " : ""}${o}`, children: [
1151
+ r && /* @__PURE__ */ s("label", { className: `nc-label${a === "small" ? " nc-small" : ""}`, children: r }),
1152
1152
  /* @__PURE__ */ s(
1153
1153
  "button",
1154
1154
  {
1155
- ref: h,
1156
- className: `nc-month-range-picker-input${l === "small" ? " nc-small" : ""}`,
1155
+ ref: g,
1156
+ className: `nc-month-range-picker-input${a === "small" ? " nc-small" : ""}`,
1157
1157
  onClick: A,
1158
1158
  disabled: i,
1159
1159
  children: w
@@ -1162,13 +1162,13 @@ function _n({
1162
1162
  R
1163
1163
  ] });
1164
1164
  }
1165
- function Un({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: l, size: c = "default" }) {
1165
+ function Un({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: a, size: c = "default" }) {
1166
1166
  const d = c === "small", p = () => {
1167
- const a = e - o;
1168
- n !== void 0 && a < n || t(parseFloat(a.toFixed(10)));
1167
+ const u = e - o;
1168
+ n !== void 0 && u < n || t(parseFloat(u.toFixed(10)));
1169
1169
  }, f = () => {
1170
- const a = e + o;
1171
- r !== void 0 && a > r || t(parseFloat(a.toFixed(10)));
1170
+ const u = e + o;
1171
+ r !== void 0 && u > r || t(parseFloat(u.toFixed(10)));
1172
1172
  };
1173
1173
  return /* @__PURE__ */ x("div", { className: `nc-col nc-number-input-col ${d ? "nc-small" : ""}`, children: [
1174
1174
  i && /* @__PURE__ */ s("span", { className: `nc-label ${d ? "nc-small" : ""}`, children: i }),
@@ -1179,14 +1179,14 @@ function Un({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1179
1179
  className: `nc-input nc-number-input ${d ? "nc-small" : ""}`,
1180
1180
  type: "number",
1181
1181
  value: e,
1182
- onChange: (a) => {
1183
- const u = parseFloat(a.target.value);
1184
- isNaN(u) || n !== void 0 && u < n || r !== void 0 && u > r || t(u);
1182
+ onChange: (u) => {
1183
+ const l = parseFloat(u.target.value);
1184
+ isNaN(l) || n !== void 0 && l < n || r !== void 0 && l > r || t(l);
1185
1185
  },
1186
1186
  min: n,
1187
1187
  max: r,
1188
1188
  step: o,
1189
- disabled: l
1189
+ disabled: a
1190
1190
  }
1191
1191
  ),
1192
1192
  /* @__PURE__ */ s(
@@ -1194,7 +1194,7 @@ function Un({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1194
1194
  {
1195
1195
  className: `nc-button nc-ghost nc-number-input-button ${d ? "nc-small" : ""}`,
1196
1196
  onClick: p,
1197
- disabled: l || n !== void 0 && e <= n,
1197
+ disabled: a || n !== void 0 && e <= n,
1198
1198
  children: "−"
1199
1199
  }
1200
1200
  ),
@@ -1203,7 +1203,7 @@ function Un({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1203
1203
  {
1204
1204
  className: `nc-button nc-ghost nc-number-input-button ${d ? "nc-small" : ""}`,
1205
1205
  onClick: f,
1206
- disabled: l || r !== void 0 && e >= r,
1206
+ disabled: a || r !== void 0 && e >= r,
1207
1207
  children: "+"
1208
1208
  }
1209
1209
  )
@@ -1217,15 +1217,15 @@ function qn({
1217
1217
  max: r = 100,
1218
1218
  step: o = 1,
1219
1219
  label: i,
1220
- disabled: l,
1220
+ disabled: a,
1221
1221
  showValue: c = !0,
1222
1222
  formatValue: d = (f) => f.toString(),
1223
1223
  width: p = 200
1224
1224
  }) {
1225
- const f = (a) => {
1226
- const u = parseFloat(a.target.value);
1227
- t(u);
1228
- }, m = (e - n) / (r - n) * 100;
1225
+ const f = (u) => {
1226
+ const l = parseFloat(u.target.value);
1227
+ t(l);
1228
+ }, b = (e - n) / (r - n) * 100;
1229
1229
  return /* @__PURE__ */ x("div", { className: "nc-col", style: { gap: 6 }, children: [
1230
1230
  i && /* @__PURE__ */ s("span", { className: "nc-label", children: i }),
1231
1231
  /* @__PURE__ */ x("div", { style: { display: "flex", gap: 12, alignItems: "center" }, children: [
@@ -1239,10 +1239,10 @@ function qn({
1239
1239
  min: n,
1240
1240
  max: r,
1241
1241
  step: o,
1242
- disabled: l,
1242
+ disabled: a,
1243
1243
  style: {
1244
1244
  width: p,
1245
- "--nc-slider-percentage": `${m}%`
1245
+ "--nc-slider-percentage": `${b}%`
1246
1246
  }
1247
1247
  }
1248
1248
  ),
@@ -1284,54 +1284,54 @@ function Xn({ active: e, children: t, keepMounted: n = !1, className: r = "", st
1284
1284
  c.props.tab
1285
1285
  );
1286
1286
  }) });
1287
- const l = i.find((c) => c.props.tab === e);
1288
- return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: l });
1287
+ const a = i.find((c) => c.props.tab === e);
1288
+ return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: a });
1289
1289
  }
1290
- function Jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: l, multiline: c, orientation: d = "horizontal", style: p }) {
1291
- const f = W(null), [m, a] = T(!1), [u, v] = T(!1), h = d === "verticalLeft" || d === "verticalRight", g = W(!1), A = W(0), b = W(0), y = W(!1);
1290
+ function Jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: a, multiline: c, orientation: d = "horizontal", style: p }) {
1291
+ const f = W(null), [b, u] = T(!1), [l, m] = T(!1), g = d === "verticalLeft" || d === "verticalRight", h = W(!1), A = W(0), v = W(0), y = W(!1);
1292
1292
  B(() => {
1293
1293
  const N = () => {
1294
1294
  if (f.current)
1295
- if (h) {
1295
+ if (g) {
1296
1296
  const { scrollTop: C, scrollHeight: S, clientHeight: L } = f.current;
1297
- a(C > 1), v(C < S - L - 1);
1297
+ u(C > 1), m(C < S - L - 1);
1298
1298
  } else {
1299
1299
  const { scrollLeft: C, scrollWidth: S, clientWidth: L } = f.current;
1300
- a(C > 1), v(C < S - L - 1);
1300
+ u(C > 1), m(C < S - L - 1);
1301
1301
  }
1302
1302
  }, R = f.current;
1303
1303
  if (R)
1304
1304
  return N(), R.addEventListener("scroll", N), window.addEventListener("resize", N), () => {
1305
1305
  R.removeEventListener("scroll", N), window.removeEventListener("resize", N);
1306
1306
  };
1307
- }, [e, h]);
1307
+ }, [e, g]);
1308
1308
  const w = (N) => {
1309
- f.current && (g.current = !0, y.current = !1, A.current = h ? N.clientY : N.clientX, b.current = h ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1309
+ f.current && (h.current = !0, y.current = !1, A.current = g ? N.clientY : N.clientX, v.current = g ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1310
1310
  }, k = (N) => {
1311
- if (!g.current || !f.current) return;
1312
- const R = h ? N.clientY : N.clientX, C = A.current - R;
1313
- Math.abs(C) > 3 && (y.current = !0), h ? f.current.scrollTop = b.current + C : f.current.scrollLeft = b.current + C;
1311
+ if (!h.current || !f.current) return;
1312
+ const R = g ? N.clientY : N.clientX, C = A.current - R;
1313
+ Math.abs(C) > 3 && (y.current = !0), g ? f.current.scrollTop = v.current + C : f.current.scrollLeft = v.current + C;
1314
1314
  }, E = () => {
1315
- f.current && (g.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1315
+ f.current && (h.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1316
1316
  }, z = () => {
1317
1317
  E();
1318
1318
  };
1319
1319
  B(() => {
1320
1320
  const N = f.current;
1321
- if (!N || h) return;
1321
+ if (!N || g) return;
1322
1322
  const R = (C) => {
1323
1323
  C.deltaY !== 0 && (C.preventDefault(), N.scrollLeft += C.deltaY * 0.3);
1324
1324
  };
1325
1325
  return N.addEventListener("wheel", R, { passive: !1 }), () => {
1326
1326
  N.removeEventListener("wheel", R);
1327
1327
  };
1328
- }, [h]);
1328
+ }, [g]);
1329
1329
  const M = (N) => {
1330
1330
  y.current || n(N);
1331
1331
  };
1332
- return /* @__PURE__ */ x("div", { className: `nc-tab-container ${h ? `nc-vertical nc-${d}` : ""} ${i || ""}`, style: p, children: [
1332
+ return /* @__PURE__ */ x("div", { className: `nc-tab-container ${g ? `nc-vertical nc-${d}` : ""} ${i || ""}`, style: p, children: [
1333
1333
  /* @__PURE__ */ x("div", { className: "nc-tab-scroll-wrapper", children: [
1334
- m && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${h ? "nc-top" : "nc-left"}`, children: h ? /* @__PURE__ */ s(It, { size: 16 }) : /* @__PURE__ */ s(at, { size: 16 }) }),
1334
+ b && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${g ? "nc-top" : "nc-left"}`, children: g ? /* @__PURE__ */ s(It, { size: 16 }) : /* @__PURE__ */ s(at, { size: 16 }) }),
1335
1335
  /* @__PURE__ */ s(
1336
1336
  "div",
1337
1337
  {
@@ -1355,7 +1355,7 @@ function Jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1355
1355
  (L.key === "Enter" || L.key === " ") && n(R);
1356
1356
  },
1357
1357
  children: [
1358
- /* @__PURE__ */ s("span", { className: "nc-tab-label", children: h ? C : typeof C == "string" ? C.toUpperCase() : C }),
1358
+ /* @__PURE__ */ s("span", { className: "nc-tab-label", children: g ? C : typeof C == "string" ? C.toUpperCase() : C }),
1359
1359
  S && /* @__PURE__ */ s(
1360
1360
  "span",
1361
1361
  {
@@ -1382,9 +1382,9 @@ function Jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1382
1382
  })
1383
1383
  }
1384
1384
  ),
1385
- u && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${h ? "nc-bottom" : "nc-right"}`, children: h ? /* @__PURE__ */ s(lt, { size: 16 }) : /* @__PURE__ */ s(dt, { size: 16 }) })
1385
+ l && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${g ? "nc-bottom" : "nc-right"}`, children: g ? /* @__PURE__ */ s(lt, { size: 16 }) : /* @__PURE__ */ s(dt, { size: 16 }) })
1386
1386
  ] }),
1387
- l && /* @__PURE__ */ s("div", { className: "nc-tab-toolbar", children: l })
1387
+ a && /* @__PURE__ */ s("div", { className: "nc-tab-toolbar", children: a })
1388
1388
  ] });
1389
1389
  }
1390
1390
  function Qn({ checked: e, onChange: t, disabled: n, label: r }) {
@@ -1453,20 +1453,20 @@ const ze = [
1453
1453
  ];
1454
1454
  function $t(e, t) {
1455
1455
  const r = e.slice(0, t).split(`
1456
- `), o = r.length, l = r[o - 1].split(" "), c = l.length, d = l[c - 1].length + 1;
1456
+ `), o = r.length, a = r[o - 1].split(" "), c = a.length, d = a[c - 1].length + 1;
1457
1457
  return { line: o, column: c, character: d, offset: t };
1458
1458
  }
1459
1459
  function Rt(e, t, n, r) {
1460
1460
  const o = e.split(`
1461
1461
  `), i = Math.max(1, Math.min(t, o.length));
1462
- let l = 0;
1463
- for (let m = 0; m < i - 1; m++)
1464
- l += o[m].length + 1;
1462
+ let a = 0;
1463
+ for (let b = 0; b < i - 1; b++)
1464
+ a += o[b].length + 1;
1465
1465
  const d = o[i - 1].split(" "), p = Math.max(1, Math.min(n, d.length));
1466
- for (let m = 0; m < p - 1; m++)
1467
- l += d[m].length + 1;
1466
+ for (let b = 0; b < p - 1; b++)
1467
+ a += d[b].length + 1;
1468
1468
  const f = Math.max(1, Math.min(r, d[p - 1].length + 1));
1469
- return l += f - 1, l;
1469
+ return a += f - 1, a;
1470
1470
  }
1471
1471
  function Et(e, t) {
1472
1472
  const n = e.split(`
@@ -1477,50 +1477,50 @@ function Et(e, t) {
1477
1477
  return o;
1478
1478
  }
1479
1479
  const Zn = ft(
1480
- function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: l = !1, onCursorChange: c, highlightLine: d }, p) {
1481
- const f = W(null), m = W(null), a = W(null);
1480
+ function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: a = !1, onCursorChange: c, highlightLine: d }, p) {
1481
+ const f = W(null), b = W(null), u = W(null);
1482
1482
  ht(p, () => ({
1483
- goToLine(b) {
1483
+ goToLine(v) {
1484
1484
  const y = f.current;
1485
1485
  if (!y) return;
1486
- const w = Et(t, b);
1486
+ const w = Et(t, v);
1487
1487
  y.focus(), y.setSelectionRange(w, w);
1488
1488
  const k = parseFloat(getComputedStyle(y).lineHeight) || 18;
1489
- y.scrollTop = (Math.max(1, b) - 1) * k, v(), u();
1489
+ y.scrollTop = (Math.max(1, v) - 1) * k, m(), l();
1490
1490
  },
1491
- goToPosition(b, y, w) {
1491
+ goToPosition(v, y, w) {
1492
1492
  const k = f.current;
1493
1493
  if (!k) return;
1494
- const E = Rt(t, b, y, w);
1494
+ const E = Rt(t, v, y, w);
1495
1495
  k.focus(), k.setSelectionRange(E, E);
1496
1496
  const z = parseFloat(getComputedStyle(k).lineHeight) || 18;
1497
- k.scrollTop = (Math.max(1, b) - 1) * z, v(), u();
1497
+ k.scrollTop = (Math.max(1, v) - 1) * z, m(), l();
1498
1498
  }
1499
1499
  }), [t]);
1500
- const u = O(() => {
1500
+ const l = O(() => {
1501
1501
  if (!c || !f.current) return;
1502
- const b = $t(t, f.current.selectionStart);
1503
- c(b);
1504
- }, [c, t]), v = O(() => {
1505
- const b = f.current;
1506
- b && (m.current && (m.current.scrollTop = b.scrollTop, m.current.scrollLeft = b.scrollLeft), a.current && (a.current.scrollTop = b.scrollTop));
1502
+ const v = $t(t, f.current.selectionStart);
1503
+ c(v);
1504
+ }, [c, t]), m = O(() => {
1505
+ const v = f.current;
1506
+ v && (b.current && (b.current.scrollTop = v.scrollTop, b.current.scrollLeft = v.scrollLeft), u.current && (u.current.scrollTop = v.scrollTop));
1507
1507
  }, []);
1508
1508
  B(() => {
1509
1509
  if (d == null || d < 1) return;
1510
- const b = f.current;
1511
- if (!b) return;
1512
- const y = parseFloat(getComputedStyle(b).lineHeight) || 18, w = (d - 1) * y, k = w + y;
1513
- (w < b.scrollTop || k > b.scrollTop + b.clientHeight) && (b.scrollTop = w - b.clientHeight / 2 + y / 2), v();
1510
+ const v = f.current;
1511
+ if (!v) return;
1512
+ const y = parseFloat(getComputedStyle(v).lineHeight) || 18, w = (d - 1) * y, k = w + y;
1513
+ (w < v.scrollTop || k > v.scrollTop + v.clientHeight) && (v.scrollTop = w - v.clientHeight / 2 + y / 2), m();
1514
1514
  }, [d]);
1515
- const h = me(() => t.split(`
1516
- `).length, [t]), g = () => {
1517
- const b = [];
1518
- for (let y = 1; y <= h; y++)
1519
- b.push(
1515
+ const g = me(() => t.split(`
1516
+ `).length, [t]), h = () => {
1517
+ const v = [];
1518
+ for (let y = 1; y <= g; y++)
1519
+ v.push(
1520
1520
  /* @__PURE__ */ s("div", { className: `nc-csv-line-number ${d === y ? "nc-csv-highlight" : ""}`, children: y }, y)
1521
1521
  );
1522
- return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: a, children: b });
1523
- }, A = (b) => b ? b.split(`
1522
+ return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: u, children: v });
1523
+ }, A = (v) => v ? v.split(`
1524
1524
  `).map((w, k) => {
1525
1525
  const E = w.split(" ");
1526
1526
  return /* @__PURE__ */ x("div", { className: `nc-csv-line ${d === k + 1 ? "nc-csv-highlight" : ""}`, children: [
@@ -1532,23 +1532,23 @@ const Zn = ft(
1532
1532
  `
1533
1533
  ] }, k);
1534
1534
  }) : null;
1535
- return /* @__PURE__ */ x("div", { className: `nc-csv-textarea-container ${l ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1536
- l && g(),
1535
+ return /* @__PURE__ */ x("div", { className: `nc-csv-textarea-container ${a ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1536
+ a && h(),
1537
1537
  /* @__PURE__ */ x("div", { className: "nc-csv-textarea-editor", children: [
1538
- /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: m, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: A(t) }) }),
1538
+ /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: b, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: A(t) }) }),
1539
1539
  /* @__PURE__ */ s(
1540
1540
  "textarea",
1541
1541
  {
1542
1542
  ref: f,
1543
1543
  className: "nc-csv-textarea-input",
1544
1544
  value: t,
1545
- onChange: (b) => {
1546
- n(b.target.value), requestAnimationFrame(u);
1545
+ onChange: (v) => {
1546
+ n(v.target.value), requestAnimationFrame(l);
1547
1547
  },
1548
- onScroll: v,
1549
- onSelect: u,
1550
- onKeyUp: u,
1551
- onClick: u,
1548
+ onScroll: m,
1549
+ onSelect: l,
1550
+ onKeyUp: l,
1551
+ onClick: l,
1552
1552
  placeholder: r,
1553
1553
  spellCheck: !1,
1554
1554
  autoComplete: "off",
@@ -1638,23 +1638,23 @@ function Pt({ notification: e }) {
1638
1638
  );
1639
1639
  }
1640
1640
  function er() {
1641
- const [e, t] = T([]), [n, r] = T(/* @__PURE__ */ new Map()), [o, i] = T(/* @__PURE__ */ new Set()), l = W(null), c = W([]);
1641
+ const [e, t] = T([]), [n, r] = T(/* @__PURE__ */ new Map()), [o, i] = T(/* @__PURE__ */ new Set()), a = W(null), c = W([]);
1642
1642
  return B(() => Tt((p) => {
1643
- const f = new Set(c.current.map((a) => a.id)), m = p.filter((a) => !f.has(a.id)).map((a) => a.id);
1644
- m.length > 0 ? (t(p), i(new Set(m)), requestAnimationFrame(() => {
1643
+ const f = new Set(c.current.map((u) => u.id)), b = p.filter((u) => !f.has(u.id)).map((u) => u.id);
1644
+ b.length > 0 ? (t(p), i(new Set(b)), requestAnimationFrame(() => {
1645
1645
  requestAnimationFrame(() => {
1646
1646
  i(/* @__PURE__ */ new Set());
1647
1647
  });
1648
1648
  })) : t(p), c.current = p;
1649
1649
  }), []), B(() => {
1650
- if (!l.current) return;
1650
+ if (!a.current) return;
1651
1651
  const d = /* @__PURE__ */ new Map();
1652
1652
  let p = 0;
1653
- const f = l.current.children;
1654
- e.forEach((m, a) => {
1655
- if (d.set(m.id, p), f[a]) {
1656
- const u = f[a].offsetHeight;
1657
- m.isRemoving || (p += u + 12);
1653
+ const f = a.current.children;
1654
+ e.forEach((b, u) => {
1655
+ if (d.set(b.id, p), f[u]) {
1656
+ const l = f[u].offsetHeight;
1657
+ b.isRemoving || (p += l + 12);
1658
1658
  }
1659
1659
  }), r(d);
1660
1660
  }, [e]), /* @__PURE__ */ s(
@@ -1670,13 +1670,13 @@ function er() {
1670
1670
  children: /* @__PURE__ */ s(
1671
1671
  "div",
1672
1672
  {
1673
- ref: l,
1673
+ ref: a,
1674
1674
  style: {
1675
1675
  pointerEvents: "auto",
1676
1676
  position: "relative"
1677
1677
  },
1678
1678
  children: e.map((d) => {
1679
- const p = o.has(d.id), f = d.isRemoving, m = n.get(d.id) || 0;
1679
+ const p = o.has(d.id), f = d.isRemoving, b = n.get(d.id) || 0;
1680
1680
  return /* @__PURE__ */ s(
1681
1681
  "div",
1682
1682
  {
@@ -1684,7 +1684,7 @@ function er() {
1684
1684
  position: "absolute",
1685
1685
  top: 0,
1686
1686
  left: 0,
1687
- transform: p ? "translateY(-120px)" : `translateY(${m}px)`,
1687
+ transform: p ? "translateY(-120px)" : `translateY(${b}px)`,
1688
1688
  // Only animate transform when not leaving, animate opacity always
1689
1689
  transition: f ? "opacity 300ms ease-out" : "transform 300ms ease-out, opacity 300ms ease-out",
1690
1690
  opacity: f ? 0 : 1,
@@ -1720,8 +1720,8 @@ function nr(e) {
1720
1720
  // React already escapes by default
1721
1721
  }
1722
1722
  }), typeof MutationObserver < "u" && typeof document < "u" && new MutationObserver((i) => {
1723
- for (const l of i)
1724
- if (l.type === "attributes" && l.attributeName === "lang") {
1723
+ for (const a of i)
1724
+ if (a.type === "attributes" && a.attributeName === "lang") {
1725
1725
  const c = document.documentElement.lang || "en";
1726
1726
  t.changeLanguage(c);
1727
1727
  }
@@ -1835,7 +1835,7 @@ class Ht {
1835
1835
  const { launchInBackground: r = !1 } = n || {};
1836
1836
  if (!oe.has(t))
1837
1837
  return console.error(`Cannot launch app "${t}": not registered`), null;
1838
- const o = this.apps.find((l) => l.appId === t);
1838
+ const o = this.apps.find((a) => a.appId === t);
1839
1839
  if (o)
1840
1840
  return r || (this.setActiveApp(t), _._setActiveAppId(t)), o.ref ? o : this.waitForRef(t);
1841
1841
  const i = {
@@ -2016,37 +2016,37 @@ class Vt extends ke.Component {
2016
2016
  }
2017
2017
  }
2018
2018
  function Ge({ appId: e, isActive: t, onClose: n }) {
2019
- const { t: r } = Q(), o = oe.get(e), [i, l] = T(""), [c, d] = T(null), [p, f] = T(null), [m, a] = T(!1), [u, v] = T(!1);
2019
+ const { t: r } = Q(), o = oe.get(e), [i, a] = T(""), [c, d] = T(null), [p, f] = T(null), [b, u] = T(!1), [l, m] = T(!1);
2020
2020
  ke.useEffect(() => {
2021
- o != null && o.titleKey && l(r(o.titleKey));
2021
+ o != null && o.titleKey && a(r(o.titleKey));
2022
2022
  }, [o, r]);
2023
- const h = O((N) => {
2024
- l(N);
2025
- }, []), g = O((N) => {
2023
+ const g = O((N) => {
2024
+ a(N);
2025
+ }, []), h = O((N) => {
2026
2026
  d(() => N);
2027
2027
  }, []), A = O(() => {
2028
2028
  d(null);
2029
- }, []), b = O((N) => {
2029
+ }, []), v = O((N) => {
2030
2030
  f(N);
2031
2031
  }, []), y = O(() => {
2032
2032
  f(null);
2033
2033
  }, []), w = O((N) => {
2034
- a(N);
2034
+ u(N);
2035
2035
  }, []), k = O((N) => {
2036
- v(N);
2036
+ m(N);
2037
2037
  }, []), E = me(() => ({
2038
- setTitle: h,
2039
- setBackHandler: g,
2038
+ setTitle: g,
2039
+ setBackHandler: h,
2040
2040
  clearBackHandler: A,
2041
- setToolbar: b,
2041
+ setToolbar: v,
2042
2042
  clearToolbar: y,
2043
2043
  setHideBackButton: w,
2044
2044
  setHideTitleBar: k,
2045
2045
  close: n
2046
- }), [h, g, A, b, y, w, k, n]);
2046
+ }), [g, h, A, v, y, w, k, n]);
2047
2047
  if (!o)
2048
2048
  return null;
2049
- const z = o.component, M = !o.hideTitleBar && !u;
2049
+ const z = o.component, M = !o.hideTitleBar && !l;
2050
2050
  return /* @__PURE__ */ x(
2051
2051
  "div",
2052
2052
  {
@@ -2064,7 +2064,7 @@ function Ge({ appId: e, isActive: t, onClose: n }) {
2064
2064
  onClose: n,
2065
2065
  onBack: c ?? void 0,
2066
2066
  toolbar: p,
2067
- hideBackButton: m
2067
+ hideBackButton: b
2068
2068
  }
2069
2069
  ),
2070
2070
  /* @__PURE__ */ s(
@@ -2146,17 +2146,17 @@ const Ne = "-", Gt = (e) => {
2146
2146
  conflictingClassGroupModifiers: r
2147
2147
  } = e;
2148
2148
  return {
2149
- getClassGroupId: (l) => {
2150
- const c = l.split(Ne);
2151
- return c[0] === "" && c.length !== 1 && c.shift(), _e(c, t) || Yt(l);
2149
+ getClassGroupId: (a) => {
2150
+ const c = a.split(Ne);
2151
+ return c[0] === "" && c.length !== 1 && c.shift(), _e(c, t) || Yt(a);
2152
2152
  },
2153
- getConflictingClassGroupIds: (l, c) => {
2154
- const d = n[l] || [];
2155
- return c && r[l] ? [...d, ...r[l]] : d;
2153
+ getConflictingClassGroupIds: (a, c) => {
2154
+ const d = n[a] || [];
2155
+ return c && r[a] ? [...d, ...r[a]] : d;
2156
2156
  }
2157
2157
  };
2158
2158
  }, _e = (e, t) => {
2159
- var l;
2159
+ var a;
2160
2160
  if (e.length === 0)
2161
2161
  return t.classGroupId;
2162
2162
  const n = e[0], r = t.nextPart.get(n), o = r ? _e(e.slice(1), r) : void 0;
@@ -2165,9 +2165,9 @@ const Ne = "-", Gt = (e) => {
2165
2165
  if (t.validators.length === 0)
2166
2166
  return;
2167
2167
  const i = e.join(Ne);
2168
- return (l = t.validators.find(({
2168
+ return (a = t.validators.find(({
2169
2169
  validator: c
2170
- }) => c(i))) == null ? void 0 : l.classGroupId;
2170
+ }) => c(i))) == null ? void 0 : a.classGroupId;
2171
2171
  }, Be = /^\[(.+)\]$/, Yt = (e) => {
2172
2172
  if (Be.test(e)) {
2173
2173
  const t = Be.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
@@ -2182,8 +2182,8 @@ const Ne = "-", Gt = (e) => {
2182
2182
  nextPart: /* @__PURE__ */ new Map(),
2183
2183
  validators: []
2184
2184
  };
2185
- return _t(Object.entries(e.classGroups), n).forEach(([i, l]) => {
2186
- ye(l, r, i, t);
2185
+ return _t(Object.entries(e.classGroups), n).forEach(([i, a]) => {
2186
+ ye(a, r, i, t);
2187
2187
  }), r;
2188
2188
  }, ye = (e, t, n, r) => {
2189
2189
  e.forEach((o) => {
@@ -2203,8 +2203,8 @@ const Ne = "-", Gt = (e) => {
2203
2203
  });
2204
2204
  return;
2205
2205
  }
2206
- Object.entries(o).forEach(([i, l]) => {
2207
- ye(l, De(t, i), n, r);
2206
+ Object.entries(o).forEach(([i, a]) => {
2207
+ ye(a, De(t, i), n, r);
2208
2208
  });
2209
2209
  });
2210
2210
  }, De = (e, t) => {
@@ -2216,7 +2216,7 @@ const Ne = "-", Gt = (e) => {
2216
2216
  }), n = n.nextPart.get(r);
2217
2217
  }), n;
2218
2218
  }, Kt = (e) => e.isThemeGetter, _t = (e, t) => t ? e.map(([n, r]) => {
2219
- const o = r.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([l, c]) => [t + l, c])) : i);
2219
+ 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);
2220
2220
  return [n, o];
2221
2221
  }) : e, Ut = (e) => {
2222
2222
  if (e < 1)
@@ -2227,54 +2227,54 @@ const Ne = "-", Gt = (e) => {
2227
2227
  }
2228
2228
  };
2229
2229
  let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
2230
- const o = (i, l) => {
2231
- n.set(i, l), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
2230
+ const o = (i, a) => {
2231
+ n.set(i, a), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
2232
2232
  };
2233
2233
  return {
2234
2234
  get(i) {
2235
- let l = n.get(i);
2236
- if (l !== void 0)
2237
- return l;
2238
- if ((l = r.get(i)) !== void 0)
2239
- return o(i, l), l;
2235
+ let a = n.get(i);
2236
+ if (a !== void 0)
2237
+ return a;
2238
+ if ((a = r.get(i)) !== void 0)
2239
+ return o(i, a), a;
2240
2240
  },
2241
- set(i, l) {
2242
- n.has(i) ? n.set(i, l) : o(i, l);
2241
+ set(i, a) {
2242
+ n.has(i) ? n.set(i, a) : o(i, a);
2243
2243
  }
2244
2244
  };
2245
2245
  }, Ue = "!", qt = (e) => {
2246
2246
  const {
2247
2247
  separator: t,
2248
2248
  experimentalParseClassName: n
2249
- } = e, r = t.length === 1, o = t[0], i = t.length, l = (c) => {
2249
+ } = e, r = t.length === 1, o = t[0], i = t.length, a = (c) => {
2250
2250
  const d = [];
2251
- let p = 0, f = 0, m;
2252
- for (let g = 0; g < c.length; g++) {
2253
- let A = c[g];
2251
+ let p = 0, f = 0, b;
2252
+ for (let h = 0; h < c.length; h++) {
2253
+ let A = c[h];
2254
2254
  if (p === 0) {
2255
- if (A === o && (r || c.slice(g, g + i) === t)) {
2256
- d.push(c.slice(f, g)), f = g + i;
2255
+ if (A === o && (r || c.slice(h, h + i) === t)) {
2256
+ d.push(c.slice(f, h)), f = h + i;
2257
2257
  continue;
2258
2258
  }
2259
2259
  if (A === "/") {
2260
- m = g;
2260
+ b = h;
2261
2261
  continue;
2262
2262
  }
2263
2263
  }
2264
2264
  A === "[" ? p++ : A === "]" && p--;
2265
2265
  }
2266
- const a = d.length === 0 ? c : c.substring(f), u = a.startsWith(Ue), v = u ? a.substring(1) : a, h = m && m > f ? m - f : void 0;
2266
+ const u = d.length === 0 ? c : c.substring(f), l = u.startsWith(Ue), m = l ? u.substring(1) : u, g = b && b > f ? b - f : void 0;
2267
2267
  return {
2268
2268
  modifiers: d,
2269
- hasImportantModifier: u,
2270
- baseClassName: v,
2271
- maybePostfixModifierPosition: h
2269
+ hasImportantModifier: l,
2270
+ baseClassName: m,
2271
+ maybePostfixModifierPosition: g
2272
2272
  };
2273
2273
  };
2274
2274
  return n ? (c) => n({
2275
2275
  className: c,
2276
- parseClassName: l
2277
- }) : l;
2276
+ parseClassName: a
2277
+ }) : a;
2278
2278
  }, Xt = (e) => {
2279
2279
  if (e.length <= 1)
2280
2280
  return e;
@@ -2292,32 +2292,32 @@ const Ne = "-", Gt = (e) => {
2292
2292
  parseClassName: n,
2293
2293
  getClassGroupId: r,
2294
2294
  getConflictingClassGroupIds: o
2295
- } = t, i = [], l = e.trim().split(Qt);
2295
+ } = t, i = [], a = e.trim().split(Qt);
2296
2296
  let c = "";
2297
- for (let d = l.length - 1; d >= 0; d -= 1) {
2298
- const p = l[d], {
2297
+ for (let d = a.length - 1; d >= 0; d -= 1) {
2298
+ const p = a[d], {
2299
2299
  modifiers: f,
2300
- hasImportantModifier: m,
2301
- baseClassName: a,
2302
- maybePostfixModifierPosition: u
2300
+ hasImportantModifier: b,
2301
+ baseClassName: u,
2302
+ maybePostfixModifierPosition: l
2303
2303
  } = n(p);
2304
- let v = !!u, h = r(v ? a.substring(0, u) : a);
2305
- if (!h) {
2306
- if (!v) {
2304
+ let m = !!l, g = r(m ? u.substring(0, l) : u);
2305
+ if (!g) {
2306
+ if (!m) {
2307
2307
  c = p + (c.length > 0 ? " " + c : c);
2308
2308
  continue;
2309
2309
  }
2310
- if (h = r(a), !h) {
2310
+ if (g = r(u), !g) {
2311
2311
  c = p + (c.length > 0 ? " " + c : c);
2312
2312
  continue;
2313
2313
  }
2314
- v = !1;
2314
+ m = !1;
2315
2315
  }
2316
- const g = Xt(f).join(":"), A = m ? g + Ue : g, b = A + h;
2317
- if (i.includes(b))
2316
+ const h = Xt(f).join(":"), A = b ? h + Ue : h, v = A + g;
2317
+ if (i.includes(v))
2318
2318
  continue;
2319
- i.push(b);
2320
- const y = o(h, v);
2319
+ i.push(v);
2320
+ const y = o(g, m);
2321
2321
  for (let w = 0; w < y.length; ++w) {
2322
2322
  const k = y[w];
2323
2323
  i.push(A + k);
@@ -2341,9 +2341,9 @@ const qe = (e) => {
2341
2341
  return n;
2342
2342
  };
2343
2343
  function tn(e, ...t) {
2344
- let n, r, o, i = l;
2345
- function l(d) {
2346
- const p = t.reduce((f, m) => m(f), e());
2344
+ let n, r, o, i = a;
2345
+ function a(d) {
2346
+ const p = t.reduce((f, b) => b(f), e());
2347
2347
  return n = Jt(p), r = n.cache.get, o = n.cache.set, i = c, c(d);
2348
2348
  }
2349
2349
  function c(d) {
@@ -2369,7 +2369,7 @@ const D = (e) => {
2369
2369
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2370
2370
  sn.test(e) && !cn.test(e)
2371
2371
  ), Je = () => !1, vn = (e) => an.test(e), wn = (e) => ln.test(e), yn = () => {
2372
- const e = D("colors"), t = D("spacing"), n = D("blur"), r = D("brightness"), o = D("borderColor"), i = D("borderRadius"), l = D("borderSpacing"), c = D("borderWidth"), d = D("contrast"), p = D("grayscale"), f = D("hueRotate"), m = D("invert"), a = D("gap"), u = D("gradientColorStops"), v = D("gradientColorStopPositions"), h = D("inset"), g = D("margin"), A = D("opacity"), b = D("padding"), y = D("saturate"), w = D("scale"), k = D("sepia"), E = D("skew"), z = D("space"), M = D("translate"), N = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", I, t], S = () => [I, t], L = () => ["", j, q], V = () => ["auto", re, I], $ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], P = () => ["solid", "dashed", "dotted", "double", "none"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Y = () => ["", "0", I], ge = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [re, I];
2372
+ const e = D("colors"), t = D("spacing"), n = D("blur"), r = D("brightness"), o = D("borderColor"), i = D("borderRadius"), a = D("borderSpacing"), c = D("borderWidth"), d = D("contrast"), p = D("grayscale"), f = D("hueRotate"), b = D("invert"), u = D("gap"), l = D("gradientColorStops"), m = D("gradientColorStopPositions"), g = D("inset"), h = D("margin"), A = D("opacity"), v = D("padding"), y = D("saturate"), w = D("scale"), k = D("sepia"), E = D("skew"), z = D("space"), M = D("translate"), N = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", I, t], S = () => [I, t], L = () => ["", j, q], V = () => ["auto", re, I], $ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], P = () => ["solid", "dashed", "dotted", "double", "none"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Y = () => ["", "0", I], ge = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [re, I];
2373
2373
  return {
2374
2374
  cacheSize: 500,
2375
2375
  separator: ":",
@@ -2546,63 +2546,63 @@ const D = (e) => {
2546
2546
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2547
2547
  */
2548
2548
  inset: [{
2549
- inset: [h]
2549
+ inset: [g]
2550
2550
  }],
2551
2551
  /**
2552
2552
  * Right / Left
2553
2553
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2554
2554
  */
2555
2555
  "inset-x": [{
2556
- "inset-x": [h]
2556
+ "inset-x": [g]
2557
2557
  }],
2558
2558
  /**
2559
2559
  * Top / Bottom
2560
2560
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2561
2561
  */
2562
2562
  "inset-y": [{
2563
- "inset-y": [h]
2563
+ "inset-y": [g]
2564
2564
  }],
2565
2565
  /**
2566
2566
  * Start
2567
2567
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2568
2568
  */
2569
2569
  start: [{
2570
- start: [h]
2570
+ start: [g]
2571
2571
  }],
2572
2572
  /**
2573
2573
  * End
2574
2574
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2575
2575
  */
2576
2576
  end: [{
2577
- end: [h]
2577
+ end: [g]
2578
2578
  }],
2579
2579
  /**
2580
2580
  * Top
2581
2581
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2582
2582
  */
2583
2583
  top: [{
2584
- top: [h]
2584
+ top: [g]
2585
2585
  }],
2586
2586
  /**
2587
2587
  * Right
2588
2588
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2589
2589
  */
2590
2590
  right: [{
2591
- right: [h]
2591
+ right: [g]
2592
2592
  }],
2593
2593
  /**
2594
2594
  * Bottom
2595
2595
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2596
2596
  */
2597
2597
  bottom: [{
2598
- bottom: [h]
2598
+ bottom: [g]
2599
2599
  }],
2600
2600
  /**
2601
2601
  * Left
2602
2602
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2603
2603
  */
2604
2604
  left: [{
2605
- left: [h]
2605
+ left: [g]
2606
2606
  }],
2607
2607
  /**
2608
2608
  * Visibility
@@ -2752,21 +2752,21 @@ const D = (e) => {
2752
2752
  * @see https://tailwindcss.com/docs/gap
2753
2753
  */
2754
2754
  gap: [{
2755
- gap: [a]
2755
+ gap: [u]
2756
2756
  }],
2757
2757
  /**
2758
2758
  * Gap X
2759
2759
  * @see https://tailwindcss.com/docs/gap
2760
2760
  */
2761
2761
  "gap-x": [{
2762
- "gap-x": [a]
2762
+ "gap-x": [u]
2763
2763
  }],
2764
2764
  /**
2765
2765
  * Gap Y
2766
2766
  * @see https://tailwindcss.com/docs/gap
2767
2767
  */
2768
2768
  "gap-y": [{
2769
- "gap-y": [a]
2769
+ "gap-y": [u]
2770
2770
  }],
2771
2771
  /**
2772
2772
  * Justify Content
@@ -2837,126 +2837,126 @@ const D = (e) => {
2837
2837
  * @see https://tailwindcss.com/docs/padding
2838
2838
  */
2839
2839
  p: [{
2840
- p: [b]
2840
+ p: [v]
2841
2841
  }],
2842
2842
  /**
2843
2843
  * Padding X
2844
2844
  * @see https://tailwindcss.com/docs/padding
2845
2845
  */
2846
2846
  px: [{
2847
- px: [b]
2847
+ px: [v]
2848
2848
  }],
2849
2849
  /**
2850
2850
  * Padding Y
2851
2851
  * @see https://tailwindcss.com/docs/padding
2852
2852
  */
2853
2853
  py: [{
2854
- py: [b]
2854
+ py: [v]
2855
2855
  }],
2856
2856
  /**
2857
2857
  * Padding Start
2858
2858
  * @see https://tailwindcss.com/docs/padding
2859
2859
  */
2860
2860
  ps: [{
2861
- ps: [b]
2861
+ ps: [v]
2862
2862
  }],
2863
2863
  /**
2864
2864
  * Padding End
2865
2865
  * @see https://tailwindcss.com/docs/padding
2866
2866
  */
2867
2867
  pe: [{
2868
- pe: [b]
2868
+ pe: [v]
2869
2869
  }],
2870
2870
  /**
2871
2871
  * Padding Top
2872
2872
  * @see https://tailwindcss.com/docs/padding
2873
2873
  */
2874
2874
  pt: [{
2875
- pt: [b]
2875
+ pt: [v]
2876
2876
  }],
2877
2877
  /**
2878
2878
  * Padding Right
2879
2879
  * @see https://tailwindcss.com/docs/padding
2880
2880
  */
2881
2881
  pr: [{
2882
- pr: [b]
2882
+ pr: [v]
2883
2883
  }],
2884
2884
  /**
2885
2885
  * Padding Bottom
2886
2886
  * @see https://tailwindcss.com/docs/padding
2887
2887
  */
2888
2888
  pb: [{
2889
- pb: [b]
2889
+ pb: [v]
2890
2890
  }],
2891
2891
  /**
2892
2892
  * Padding Left
2893
2893
  * @see https://tailwindcss.com/docs/padding
2894
2894
  */
2895
2895
  pl: [{
2896
- pl: [b]
2896
+ pl: [v]
2897
2897
  }],
2898
2898
  /**
2899
2899
  * Margin
2900
2900
  * @see https://tailwindcss.com/docs/margin
2901
2901
  */
2902
2902
  m: [{
2903
- m: [g]
2903
+ m: [h]
2904
2904
  }],
2905
2905
  /**
2906
2906
  * Margin X
2907
2907
  * @see https://tailwindcss.com/docs/margin
2908
2908
  */
2909
2909
  mx: [{
2910
- mx: [g]
2910
+ mx: [h]
2911
2911
  }],
2912
2912
  /**
2913
2913
  * Margin Y
2914
2914
  * @see https://tailwindcss.com/docs/margin
2915
2915
  */
2916
2916
  my: [{
2917
- my: [g]
2917
+ my: [h]
2918
2918
  }],
2919
2919
  /**
2920
2920
  * Margin Start
2921
2921
  * @see https://tailwindcss.com/docs/margin
2922
2922
  */
2923
2923
  ms: [{
2924
- ms: [g]
2924
+ ms: [h]
2925
2925
  }],
2926
2926
  /**
2927
2927
  * Margin End
2928
2928
  * @see https://tailwindcss.com/docs/margin
2929
2929
  */
2930
2930
  me: [{
2931
- me: [g]
2931
+ me: [h]
2932
2932
  }],
2933
2933
  /**
2934
2934
  * Margin Top
2935
2935
  * @see https://tailwindcss.com/docs/margin
2936
2936
  */
2937
2937
  mt: [{
2938
- mt: [g]
2938
+ mt: [h]
2939
2939
  }],
2940
2940
  /**
2941
2941
  * Margin Right
2942
2942
  * @see https://tailwindcss.com/docs/margin
2943
2943
  */
2944
2944
  mr: [{
2945
- mr: [g]
2945
+ mr: [h]
2946
2946
  }],
2947
2947
  /**
2948
2948
  * Margin Bottom
2949
2949
  * @see https://tailwindcss.com/docs/margin
2950
2950
  */
2951
2951
  mb: [{
2952
- mb: [g]
2952
+ mb: [h]
2953
2953
  }],
2954
2954
  /**
2955
2955
  * Margin Left
2956
2956
  * @see https://tailwindcss.com/docs/margin
2957
2957
  */
2958
2958
  ml: [{
2959
- ml: [g]
2959
+ ml: [h]
2960
2960
  }],
2961
2961
  /**
2962
2962
  * Space Between X
@@ -3340,42 +3340,42 @@ const D = (e) => {
3340
3340
  * @see https://tailwindcss.com/docs/gradient-color-stops
3341
3341
  */
3342
3342
  "gradient-from-pos": [{
3343
- from: [v]
3343
+ from: [m]
3344
3344
  }],
3345
3345
  /**
3346
3346
  * Gradient Color Stops Via Position
3347
3347
  * @see https://tailwindcss.com/docs/gradient-color-stops
3348
3348
  */
3349
3349
  "gradient-via-pos": [{
3350
- via: [v]
3350
+ via: [m]
3351
3351
  }],
3352
3352
  /**
3353
3353
  * Gradient Color Stops To Position
3354
3354
  * @see https://tailwindcss.com/docs/gradient-color-stops
3355
3355
  */
3356
3356
  "gradient-to-pos": [{
3357
- to: [v]
3357
+ to: [m]
3358
3358
  }],
3359
3359
  /**
3360
3360
  * Gradient Color Stops From
3361
3361
  * @see https://tailwindcss.com/docs/gradient-color-stops
3362
3362
  */
3363
3363
  "gradient-from": [{
3364
- from: [u]
3364
+ from: [l]
3365
3365
  }],
3366
3366
  /**
3367
3367
  * Gradient Color Stops Via
3368
3368
  * @see https://tailwindcss.com/docs/gradient-color-stops
3369
3369
  */
3370
3370
  "gradient-via": [{
3371
- via: [u]
3371
+ via: [l]
3372
3372
  }],
3373
3373
  /**
3374
3374
  * Gradient Color Stops To
3375
3375
  * @see https://tailwindcss.com/docs/gradient-color-stops
3376
3376
  */
3377
3377
  "gradient-to": [{
3378
- to: [u]
3378
+ to: [l]
3379
3379
  }],
3380
3380
  // Borders
3381
3381
  /**
@@ -3828,7 +3828,7 @@ const D = (e) => {
3828
3828
  * @see https://tailwindcss.com/docs/invert
3829
3829
  */
3830
3830
  invert: [{
3831
- invert: [m]
3831
+ invert: [b]
3832
3832
  }],
3833
3833
  /**
3834
3834
  * Saturate
@@ -3892,7 +3892,7 @@ const D = (e) => {
3892
3892
  * @see https://tailwindcss.com/docs/backdrop-invert
3893
3893
  */
3894
3894
  "backdrop-invert": [{
3895
- "backdrop-invert": [m]
3895
+ "backdrop-invert": [b]
3896
3896
  }],
3897
3897
  /**
3898
3898
  * Backdrop Opacity
@@ -3928,21 +3928,21 @@ const D = (e) => {
3928
3928
  * @see https://tailwindcss.com/docs/border-spacing
3929
3929
  */
3930
3930
  "border-spacing": [{
3931
- "border-spacing": [l]
3931
+ "border-spacing": [a]
3932
3932
  }],
3933
3933
  /**
3934
3934
  * Border Spacing X
3935
3935
  * @see https://tailwindcss.com/docs/border-spacing
3936
3936
  */
3937
3937
  "border-spacing-x": [{
3938
- "border-spacing-x": [l]
3938
+ "border-spacing-x": [a]
3939
3939
  }],
3940
3940
  /**
3941
3941
  * Border Spacing Y
3942
3942
  * @see https://tailwindcss.com/docs/border-spacing
3943
3943
  */
3944
3944
  "border-spacing-y": [{
3945
- "border-spacing-y": [l]
3945
+ "border-spacing-y": [a]
3946
3946
  }],
3947
3947
  /**
3948
3948
  * Table Layout
@@ -4402,89 +4402,93 @@ function kn(...e) {
4402
4402
  return xn(bt(e));
4403
4403
  }
4404
4404
  function or({ autoWidth: e = !0, className: t, style: n }) {
4405
- const [r, o] = T(() => _.getActiveAppId()), [i, l] = T(() => G.getRunningApps()), { isMobile: c } = Ke();
4405
+ const [r, o] = T(() => _.getActiveAppId()), [i, a] = T(() => G.getRunningApps()), { isMobile: c } = Ke();
4406
4406
  B(() => {
4407
- const g = _.subscribe("activeAppId", (A) => {
4407
+ const h = _.subscribe("activeAppId", (A) => {
4408
4408
  o(A);
4409
4409
  });
4410
4410
  return () => {
4411
- g();
4411
+ h();
4412
4412
  };
4413
4413
  }, []), B(() => G.subscribe(() => {
4414
- l(G.getRunningApps());
4414
+ a(G.getRunningApps());
4415
4415
  }), []), B(() => {
4416
4416
  if (!new URLSearchParams(window.location.search).has("app")) {
4417
- const b = _.getActiveAppId();
4418
- b && !G.isRunning(b) && G.launchApp(b);
4417
+ const v = _.getActiveAppId();
4418
+ v && !G.isRunning(v) && G.launchApp(v);
4419
4419
  }
4420
4420
  }, []);
4421
- const d = (g) => {
4422
- G.closeApp(g);
4423
- }, p = r ? oe.get(r) : null, m = (p == null ? void 0 : p.width) ?? 400, a = r !== null, h = { ...{
4421
+ const d = (h) => {
4422
+ G.closeApp(h);
4423
+ }, p = r ? oe.get(r) : null, b = (p == null ? void 0 : p.width) ?? 400, u = r !== null, g = { ...{
4424
4424
  overflow: "hidden",
4425
- display: a ? "flex" : "none",
4425
+ display: u ? "flex" : "none",
4426
4426
  flexDirection: "column",
4427
4427
  flexShrink: 0,
4428
4428
  // Only set width if autoWidth is enabled
4429
- ...e && a ? { width: c ? "100%" : m } : {}
4429
+ ...e && u ? { width: c ? "100%" : b } : {}
4430
4430
  }, ...n };
4431
- return /* @__PURE__ */ s("div", { className: kn("nc-app-panel", t), style: h, children: i.map((g) => /* @__PURE__ */ s(
4431
+ return /* @__PURE__ */ s("div", { className: kn("nc-app-panel", t), style: g, children: i.map((h) => /* @__PURE__ */ s(
4432
4432
  Ge,
4433
4433
  {
4434
- appId: g.appId,
4435
- isActive: r === g.appId,
4436
- onClose: () => d(g.appId)
4434
+ appId: h.appId,
4435
+ isActive: r === h.appId,
4436
+ onClose: () => d(h.appId)
4437
4437
  },
4438
- g.appId
4438
+ h.appId
4439
4439
  )) });
4440
4440
  }
4441
- function sr({ pinnedAppIds: e, className: t = "" }) {
4442
- const { isMobile: n } = Ke(), [r, o] = T(() => _.getActiveAppId()), [i, l] = T(() => G.getRunningApps());
4441
+ function sr({
4442
+ pinnedAppIds: e,
4443
+ className: t = "",
4444
+ showIndicators: n = !0
4445
+ }) {
4446
+ const { isMobile: r } = Ke(), [o, i] = T(() => _.getActiveAppId()), [a, c] = T(() => G.getRunningApps());
4443
4447
  B(() => {
4444
- const a = _.subscribe("activeAppId", (u) => {
4445
- o(u);
4448
+ const l = _.subscribe("activeAppId", (m) => {
4449
+ i(m);
4446
4450
  });
4447
4451
  return () => {
4448
- a();
4452
+ l();
4449
4453
  };
4450
4454
  }, []), B(() => G.subscribe(() => {
4451
- l(G.getRunningApps());
4455
+ c(G.getRunningApps());
4452
4456
  }), []);
4453
- const c = (a) => {
4454
- r === a ? G.setActiveApp(null) : G.launchApp(a);
4455
- }, d = e.map((a) => oe.get(a)).filter((a) => !!a), p = i.filter((a) => !e.includes(a.appId)).map((a) => ({ running: a, def: oe.get(a.appId) })).filter((a) => !!a.def), f = (a) => i.some((u) => u.appId === a), m = n ? 24 : 28;
4456
- return /* @__PURE__ */ x("div", { className: `nc-app-taskbar ${n ? "nc-mobile" : "nc-desktop"} ${t}`, children: [
4457
- d.map((a) => {
4458
- const u = a.icon, v = r === a.id, h = f(a.id);
4457
+ const d = (l) => {
4458
+ o === l ? G.setActiveApp(null) : G.launchApp(l);
4459
+ }, p = e.map((l) => oe.get(l)).filter((l) => !!l), f = a.filter((l) => !e.includes(l.appId)).map((l) => ({ running: l, def: oe.get(l.appId) })).filter((l) => !!l.def), b = (l) => a.some((m) => m.appId === l), u = r ? 24 : 28;
4460
+ return /* @__PURE__ */ x("div", { className: `nc-app-taskbar ${r ? "nc-mobile" : "nc-desktop"} ${t}`, children: [
4461
+ p.map((l) => {
4462
+ const m = l.icon, g = o === l.id, h = b(l.id);
4459
4463
  return /* @__PURE__ */ x(
4460
4464
  "button",
4461
4465
  {
4462
- className: `nc-app-taskbar-button ${v ? "nc-active" : ""} ${h ? "nc-running" : ""}`,
4463
- onClick: () => c(a.id),
4464
- title: a.titleKey || a.id,
4466
+ className: `nc-app-taskbar-button ${g ? "nc-active" : ""} ${h ? "nc-running" : ""}`,
4467
+ onClick: () => d(l.id),
4468
+ title: l.titleKey || l.id,
4465
4469
  children: [
4466
- /* @__PURE__ */ s(u, { size: m }),
4467
- h && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4470
+ /* @__PURE__ */ s(m, { size: u }),
4471
+ n && h && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4468
4472
  ]
4469
4473
  },
4470
- a.id
4474
+ l.id
4471
4475
  );
4472
4476
  }),
4473
- p.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4474
- p.map(({ running: a, def: u }) => {
4475
- const v = u.icon, h = r === a.appId;
4477
+ f.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4478
+ f.map(({ running: l, def: m }) => {
4479
+ const g = m.icon, h = o === l.appId;
4476
4480
  return /* @__PURE__ */ x(
4477
4481
  "button",
4478
4482
  {
4479
4483
  className: `nc-app-taskbar-button ${h ? "nc-active" : ""} nc-running`,
4480
- onClick: () => c(a.appId),
4481
- title: u.titleKey || u.id,
4484
+ onClick: () => d(l.appId),
4485
+ title: m.titleKey || m.id,
4482
4486
  children: [
4483
- /* @__PURE__ */ s(v, { size: m }),
4484
- /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4487
+ /* @__PURE__ */ s(g, { size: u }),
4488
+ n && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4485
4489
  ]
4486
4490
  },
4487
- a.appId
4491
+ l.appId
4488
4492
  );
4489
4493
  })
4490
4494
  ] });
@@ -4497,7 +4501,7 @@ function ir({
4497
4501
  className: o = "",
4498
4502
  style: i
4499
4503
  }) {
4500
- const l = (d) => {
4504
+ const a = (d) => {
4501
4505
  r && d.target === d.currentTarget && n();
4502
4506
  };
4503
4507
  if (!t) return null;
@@ -4505,7 +4509,7 @@ function ir({
4505
4509
  "div",
4506
4510
  {
4507
4511
  className: "nc-dialog-overlay nc-fullscreen",
4508
- onClick: l,
4512
+ onClick: a,
4509
4513
  children: /* @__PURE__ */ s(
4510
4514
  "div",
4511
4515
  {
@@ -4541,7 +4545,7 @@ function ar() {
4541
4545
  }
4542
4546
  const Ce = se(null);
4543
4547
  function lr({ rootView: e, children: t }) {
4544
- const { t: n } = Q(), r = Wt(), [o, i] = T([e]), [l, c] = T([null]), d = O((w, k) => {
4548
+ const { t: n } = Q(), r = Wt(), [o, i] = T([e]), [a, c] = T([null]), d = O((w, k) => {
4545
4549
  c((E) => {
4546
4550
  const z = [...E];
4547
4551
  return z[w] = k, z;
@@ -4553,45 +4557,45 @@ function lr({ rootView: e, children: t }) {
4553
4557
  });
4554
4558
  }, []), f = O((w) => {
4555
4559
  i((k) => [...k, w]), c((k) => [...k, null]);
4556
- }, []), m = O(() => {
4560
+ }, []), b = O(() => {
4557
4561
  i((w) => w.length <= 1 ? w : w.slice(0, -1)), c((w) => w.slice(0, -1));
4558
- }, []), a = O(() => {
4562
+ }, []), u = O(() => {
4559
4563
  i([e]), c([null]);
4560
- }, [e]), u = o.length, v = u > 1, h = o.length - 1, g = o[o.length - 1], A = g != null && g.titleKey ? n(g.titleKey) : (g == null ? void 0 : g.title) ?? "";
4564
+ }, [e]), l = o.length, m = l > 1, g = o.length - 1, h = o[o.length - 1], A = h != null && h.titleKey ? n(h.titleKey) : (h == null ? void 0 : h.title) ?? "";
4561
4565
  B(() => {
4562
4566
  r.setTitle(A);
4563
4567
  }, [A, r]), B(() => {
4564
- v ? r.setBackHandler(m) : r.clearBackHandler();
4565
- }, [v, m, r]), B(() => {
4566
- const w = l[l.length - 1];
4568
+ m ? r.setBackHandler(b) : r.clearBackHandler();
4569
+ }, [m, b, r]), B(() => {
4570
+ const w = a[a.length - 1];
4567
4571
  w ? r.setToolbar(w) : r.clearToolbar();
4568
- }, [l, r]);
4569
- const b = {
4572
+ }, [a, r]);
4573
+ const v = {
4570
4574
  push: f,
4571
- pop: m,
4572
- reset: a,
4573
- depth: u,
4574
- canGoBack: v,
4575
+ pop: b,
4576
+ reset: u,
4577
+ depth: l,
4578
+ canGoBack: m,
4575
4579
  currentTitle: A
4576
4580
  }, y = {
4577
4581
  stack: o,
4578
- toolbarStack: l,
4582
+ toolbarStack: a,
4579
4583
  updateToolbar: d,
4580
4584
  clearToolbarAt: p,
4581
- topIndex: h
4585
+ topIndex: g
4582
4586
  };
4583
- return /* @__PURE__ */ s(Ae.Provider, { value: b, children: /* @__PURE__ */ s(Ce.Provider, { value: y, children: t }) });
4587
+ return /* @__PURE__ */ s(Ae.Provider, { value: v, children: /* @__PURE__ */ s(Ce.Provider, { value: y, children: t }) });
4584
4588
  }
4585
4589
  function Nn({ index: e, children: t }) {
4586
4590
  const n = J(Ce);
4587
4591
  if (!n)
4588
4592
  throw new Error("NavViewProvider must be used within NavStackProvider");
4589
- const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, l = O((p) => {
4593
+ const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, a = O((p) => {
4590
4594
  e === i && r(e, p);
4591
4595
  }, [e, i, r]), c = O(() => {
4592
4596
  e === i && o(e);
4593
4597
  }, [e, i, o]), d = {
4594
- setToolbar: l,
4598
+ setToolbar: a,
4595
4599
  clearToolbar: c
4596
4600
  };
4597
4601
  return /* @__PURE__ */ s(Qe.Provider, { value: d, children: t });