@kingsimba/nc-ui 0.1.29 → 0.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- var tt = Object.defineProperty;
2
- var nt = (e, t, n) => t in e ? tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var q = (e, t, n) => nt(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { jsx as s, jsxs as k, Fragment as rt } from "react/jsx-runtime";
5
- import { d as ke, E as ot, R as st, T as it, g as ct, V as at, b as lt, a as dt, c as ut } from "./GeneratedIcons-HFZmBTBT.js";
6
- import Ne, { useState as E, useRef as H, useMemo as be, useEffect as B, createContext as ie, useContext as Z, Children as pt, isValidElement as ft, forwardRef as ht, useImperativeHandle as mt, useCallback as O, Suspense as gt } from "react";
1
+ var lt = Object.defineProperty;
2
+ var dt = (e, t, n) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Z = (e, t, n) => dt(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { jsx as s, jsxs as k, Fragment as ut } from "react/jsx-runtime";
5
+ import { d as Ce, E as pt, R as ft, T as ht, g as mt, V as gt, b as bt, a as vt, c as wt } from "./GeneratedIcons-HFZmBTBT.js";
6
+ import $e, { useState as R, useRef as V, useMemo as we, useEffect as B, createContext as ce, useContext as te, Children as yt, isValidElement as xt, forwardRef as kt, useImperativeHandle as Nt, useCallback as O, Suspense as At } from "react";
7
7
  import { createPortal as pe } from "react-dom";
8
- import { useTranslation as U } from "react-i18next";
9
- import bt from "i18next";
10
- import { c as vt } from "./clsx-OuTLNxxd.js";
11
- function He({
8
+ import { useTranslation as X } from "react-i18next";
9
+ import St from "i18next";
10
+ import { c as Ct } from "./clsx-OuTLNxxd.js";
11
+ function Ke({
12
12
  size: e = "default",
13
13
  color: t,
14
14
  overlay: n = !1,
@@ -37,7 +37,7 @@ 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: a, loading: c, onClick: l, children: u, ...f }) {
40
+ function U({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: c, loading: a, onClick: l, children: u, ...f }) {
41
41
  const v = [
42
42
  "nc-button",
43
43
  e !== "default" ? `nc-${e}` : "",
@@ -45,21 +45,21 @@ function K({ variant: e = "default", block: t, size: n = "default", appearance:
45
45
  n === "small" ? "nc-small" : "",
46
46
  n === "large" ? "nc-large" : "",
47
47
  r === "transparent" ? "nc-transparent" : "",
48
- i || c ? "nc-disabled" : "",
49
- a ? "nc-text-selectable" : "",
50
- c ? "nc-loading" : "",
48
+ i || a ? "nc-disabled" : "",
49
+ c ? "nc-text-selectable" : "",
50
+ a ? "nc-loading" : "",
51
51
  o ?? ""
52
52
  ].filter(Boolean).join(" ");
53
53
  return /* @__PURE__ */ k(
54
54
  "button",
55
55
  {
56
56
  className: v,
57
- disabled: i || c,
57
+ disabled: i || a,
58
58
  onClick: (m) => {
59
- if (!c) {
60
- if (a) {
61
- const y = window.getSelection();
62
- if (y && y.toString().length > 0)
59
+ if (!a) {
60
+ if (c) {
61
+ const w = window.getSelection();
62
+ if (w && w.toString().length > 0)
63
63
  return;
64
64
  }
65
65
  l == null || l(m);
@@ -67,8 +67,8 @@ function K({ variant: e = "default", block: t, size: n = "default", appearance:
67
67
  },
68
68
  ...f,
69
69
  children: [
70
- c && /* @__PURE__ */ s(
71
- He,
70
+ a && /* @__PURE__ */ s(
71
+ Ke,
72
72
  {
73
73
  size: "small",
74
74
  className: "nc-button-spinner",
@@ -80,63 +80,63 @@ function K({ variant: e = "default", block: t, size: n = "default", appearance:
80
80
  }
81
81
  );
82
82
  }
83
- const wt = {
83
+ const $t = {
84
84
  info: "primary",
85
85
  success: "success",
86
86
  warning: "warning",
87
87
  error: "danger",
88
88
  danger: "danger"
89
89
  };
90
- function zn({
90
+ function jn({
91
91
  code: e,
92
92
  text: t,
93
93
  type: n,
94
94
  button: r,
95
95
  onAction: o,
96
96
  children: i,
97
- onClose: a,
98
- className: c = "",
97
+ onClose: c,
98
+ className: a = "",
99
99
  style: l
100
100
  }) {
101
- const u = i ?? /* @__PURE__ */ k(rt, { children: [
101
+ const u = i ?? /* @__PURE__ */ k(ut, { children: [
102
102
  e !== void 0 && /* @__PURE__ */ s("span", { className: "nc-alert-code", children: e }),
103
103
  t
104
104
  ] });
105
- return /* @__PURE__ */ k("div", { className: `nc-alert nc-${n} ${c}`.trim(), style: l, children: [
105
+ return /* @__PURE__ */ k("div", { className: `nc-alert nc-${n} ${a}`.trim(), style: l, children: [
106
106
  /* @__PURE__ */ k("div", { className: "nc-alert-main", children: [
107
107
  /* @__PURE__ */ s("div", { className: `nc-alert-message nc-${n}`, children: u }),
108
- a && /* @__PURE__ */ s(
108
+ c && /* @__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: a,
115
- children: /* @__PURE__ */ s(ke, { size: 16 })
114
+ onClick: c,
115
+ children: /* @__PURE__ */ s(Ce, { size: 16 })
116
116
  }
117
117
  )
118
118
  ] }),
119
119
  r && /* @__PURE__ */ s("span", { className: "nc-alert-action", children: /* @__PURE__ */ s(
120
- K,
120
+ U,
121
121
  {
122
122
  size: "small",
123
- variant: r.variant ?? wt[n],
123
+ variant: r.variant ?? $t[n],
124
124
  onClick: o,
125
125
  children: r.text
126
126
  }
127
127
  ) })
128
128
  ] });
129
129
  }
130
- function Pn({
130
+ function Gn({
131
131
  percentage: e = 0.5,
132
132
  status: t = "discharging",
133
133
  darkMode: n = !1,
134
134
  colored: r = !1
135
135
  }) {
136
136
  const o = Math.max(0, Math.min(1, Number(e) || 0)), i = o === 0 ? "-" : String(Math.round(o * 100));
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, v = 0, d = 12, m = 0, y = 0, w = 0, g = l, N = u, b = N - m * 2, p = g - m * 2, h = Math.max(1, Math.min(4, N / 4)), A = o === 0 ? 0 : 0.05 + o * 0.95, C = l + f + d, z = 20, T = 0.65, x = Math.max(u, z * T), I = l + f + 1, S = (u - z * T) / 2;
137
+ let c;
138
+ r ? o < 0.1 ? c = "var(--nc-danger)" : o < 0.2 ? c = "var(--nc-warning)" : c = "var(--nc-success)" : c = n ? "#ffffff" : "#000000";
139
+ const a = "var(--nc-battery-shell-bg)", l = 24, u = 14, f = 2, v = 0, d = 12, m = 0, w = 0, y = 0, g = l, N = u, b = N - m * 2, p = g - m * 2, h = Math.max(1, Math.min(4, N / 4)), A = o === 0 ? 0 : 0.05 + o * 0.95, C = l + f + d, T = 20, L = 0.65, x = Math.max(u, T * L), I = l + f + 1, S = (u - T * L) / 2;
140
140
  return /* @__PURE__ */ k(
141
141
  "svg",
142
142
  {
@@ -151,23 +151,23 @@ function Pn({
151
151
  /* @__PURE__ */ s(
152
152
  "rect",
153
153
  {
154
- x: y,
155
- y: w,
154
+ x: w,
155
+ y,
156
156
  rx: h,
157
157
  ry: h,
158
158
  width: g,
159
159
  height: N,
160
- fill: c
160
+ fill: a
161
161
  }
162
162
  ),
163
163
  /* @__PURE__ */ s(
164
164
  "rect",
165
165
  {
166
- x: y + m,
167
- y: w + m,
166
+ x: w + m,
167
+ y: y + m,
168
168
  width: p,
169
169
  height: b,
170
- fill: a,
170
+ fill: c,
171
171
  rx: h,
172
172
  ry: h,
173
173
  mask: `url(#nc-battery-fill-mask-${o})`
@@ -176,7 +176,7 @@ function Pn({
176
176
  /* @__PURE__ */ s(
177
177
  "text",
178
178
  {
179
- x: y + g / 2,
179
+ x: w + g / 2,
180
180
  y: u - 3,
181
181
  fontSize: 11,
182
182
  fontWeight: "bold",
@@ -194,15 +194,15 @@ function Pn({
194
194
  height: u * 0.48,
195
195
  rx: 0.8,
196
196
  ry: 0.8,
197
- fill: o === 1 ? a : c
197
+ fill: o === 1 ? c : a
198
198
  }
199
199
  ),
200
- t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${I}, ${S}) scale(${T})`, 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(${I}, ${S}) scale(${L})`, fill: c, 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 Bn({
205
+ function Yn({
206
206
  value: e,
207
207
  onChange: t,
208
208
  options: n,
@@ -210,21 +210,21 @@ function Bn({
210
210
  size: o = "default"
211
211
  }) {
212
212
  return /* @__PURE__ */ s("div", { className: `nc-button-group ${o === "small" ? "nc-small" : ""}`, children: n.map((i) => {
213
- const a = r || !!i.disabled;
213
+ const c = r || !!i.disabled;
214
214
  return /* @__PURE__ */ s(
215
215
  "button",
216
216
  {
217
217
  type: "button",
218
218
  className: `nc-button-group-item ${e === i.key ? "nc-active" : ""}`,
219
- onClick: () => !a && t(i.key),
220
- disabled: a,
219
+ onClick: () => !c && t(i.key),
220
+ disabled: c,
221
221
  children: i.label
222
222
  },
223
223
  i.key
224
224
  );
225
225
  }) });
226
226
  }
227
- function yt({ size: e }) {
227
+ function Mt({ 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,13 +236,13 @@ function yt({ size: e }) {
236
236
  }
237
237
  ) });
238
238
  }
239
- function Dn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: a, className: c = "" }) {
239
+ function Kn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: c, className: a = "" }) {
240
240
  const l = o === "small";
241
241
  return /* @__PURE__ */ k(
242
242
  "label",
243
243
  {
244
- className: `nc-checkbox-label ${l ? "nc-small" : ""} ${n ? "nc-disabled" : ""} ${c}`.trim(),
245
- style: a,
244
+ className: `nc-checkbox-label ${l ? "nc-small" : ""} ${n ? "nc-disabled" : ""} ${a}`.trim(),
245
+ style: c,
246
246
  onClick: (u) => {
247
247
  n || (u.preventDefault(), t(!e));
248
248
  },
@@ -257,7 +257,7 @@ function Dn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
257
257
  onKeyDown: (u) => {
258
258
  n || (u.key === "Enter" || u.key === " ") && (u.preventDefault(), t(!e));
259
259
  },
260
- children: e && /* @__PURE__ */ s(yt, { size: o })
260
+ children: e && /* @__PURE__ */ s(Mt, { 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,8 +265,8 @@ function Dn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
265
265
  }
266
266
  );
267
267
  }
268
- function xt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
269
- const i = H(null), { t: a } = U();
268
+ function It({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
269
+ const i = V(null), { t: c } = X();
270
270
  return B(() => {
271
271
  r && i.current && i.current.scrollIntoView({ block: "nearest" });
272
272
  }, [r]), /* @__PURE__ */ k(
@@ -285,36 +285,36 @@ function xt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
285
285
  e.label,
286
286
  e.default && /* @__PURE__ */ k("span", { style: { fontSize: "0.85em", color: "var(--nc-text-weak)", marginLeft: 6 }, children: [
287
287
  "(",
288
- a("common.default"),
288
+ c("common.default"),
289
289
  ")"
290
290
  ] })
291
291
  ]
292
292
  }
293
293
  );
294
294
  }
295
- function kt({
295
+ function Rt({
296
296
  isOpen: e,
297
297
  options: t,
298
298
  onSelect: n,
299
299
  selectedValue: r,
300
300
  placement: o = "bottom",
301
301
  anchorRef: i,
302
- small: a,
303
- highlightedIndex: c = -1
302
+ small: c,
303
+ highlightedIndex: a = -1
304
304
  }) {
305
- const [l, u] = E({ top: 0, left: 0, width: 0 }), [f, v] = E(o), { t: d } = U();
305
+ const [l, u] = R({ top: 0, left: 0, width: 0 }), [f, v] = R(o), { t: d } = X();
306
306
  if (B(() => {
307
307
  if (e && i.current) {
308
- const y = i.current.getBoundingClientRect();
309
- let w = o;
308
+ const w = i.current.getBoundingClientRect();
309
+ let y = o;
310
310
  if (o === "bottom") {
311
- const g = window.innerHeight - y.bottom, N = y.top;
312
- g < 320 && N > g && (w = "top");
311
+ const g = window.innerHeight - w.bottom, N = w.top;
312
+ g < 320 && N > g && (y = "top");
313
313
  }
314
- v(w), u({
315
- top: w === "top" ? y.top - 4 : y.bottom + 4,
316
- left: y.left,
317
- width: y.width
314
+ v(y), u({
315
+ top: y === "top" ? w.top - 4 : w.bottom + 4,
316
+ left: w.left,
317
+ width: w.width
318
318
  });
319
319
  }
320
320
  }, [e, i, o]), !e) return null;
@@ -332,44 +332,49 @@ function kt({
332
332
  maxHeight: 300,
333
333
  overflowY: "auto"
334
334
  },
335
- children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: d("common.noResults") }) : t.map((y, w) => /* @__PURE__ */ s(xt, { option: y, onChange: n, selected: y.value === r, highlighted: w === c, small: a }, y.value))
335
+ children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${c ? "nc-small" : ""}`, children: d("common.noResults") }) : t.map((w, y) => /* @__PURE__ */ s(It, { option: w, onChange: n, selected: w.value === r, highlighted: y === a, small: c }, w.value))
336
336
  }
337
337
  );
338
338
  return pe(m, document.body);
339
339
  }
340
- function Nt({ onClick: e, small: t }) {
340
+ function Et({ onClick: e, small: t }) {
341
341
  return /* @__PURE__ */ s(
342
- "button",
342
+ "span",
343
343
  {
344
- className: `nc-button nc-ghost nc-combo-button nc-combo-clear ${t ? "nc-small" : ""}`,
345
- onClick: e,
344
+ role: "button",
345
+ tabIndex: 0,
346
+ className: `nc-combo-button nc-combo-clear ${t ? "nc-small" : ""}`,
347
+ onClick: (n) => {
348
+ n.stopPropagation(), e();
349
+ },
346
350
  onMouseDown: (n) => n.stopPropagation(),
351
+ onKeyDown: (n) => {
352
+ (n.key === "Enter" || n.key === " ") && (n.preventDefault(), n.stopPropagation(), e());
353
+ },
347
354
  "aria-label": "Clear selection",
348
355
  children: "✕"
349
356
  }
350
357
  );
351
358
  }
352
- function At({ open: e, onClick: t, small: n }) {
359
+ function Tt({ open: e, small: t }) {
353
360
  return /* @__PURE__ */ s(
354
- "button",
361
+ "span",
355
362
  {
356
- className: `nc-button nc-ghost nc-combo-button nc-combo-toggle ${n ? "nc-small" : ""} ${e ? "nc-open" : ""}`,
357
- onClick: t,
358
- onMouseDown: (r) => r.stopPropagation(),
359
- "aria-label": e ? "Close" : "Open",
363
+ "aria-hidden": !0,
364
+ className: `nc-combo-button nc-combo-toggle ${t ? "nc-small" : ""} ${e ? "nc-open" : ""}`,
360
365
  children: "▾"
361
366
  }
362
367
  );
363
368
  }
364
- function Wn({
369
+ function _n({
365
370
  value: e,
366
371
  onChange: t,
367
372
  placeholder: n = "Select…",
368
373
  options: r,
369
374
  disabled: o,
370
375
  label: i,
371
- clearable: a = !0,
372
- allowTyping: c = !1,
376
+ clearable: c = !0,
377
+ allowTyping: a = !1,
373
378
  placement: l = "bottom",
374
379
  size: u = "default",
375
380
  appearance: f = "default",
@@ -377,66 +382,66 @@ function Wn({
377
382
  style: d,
378
383
  className: m
379
384
  }) {
380
- const [y, w] = E(!1), [g, N] = E(""), [b, p] = E(-1), h = H(null), A = H(null), C = u === "small", { t: z } = U(), T = be(() => {
381
- const R = g.toLowerCase();
382
- return c ? r.filter((P) => P.label.toLowerCase().includes(R)) : r;
383
- }, [r, g, c]);
385
+ const [w, y] = R(!1), [g, N] = R(""), [b, p] = R(-1), h = V(null), A = V(null), C = u === "small", { t: T } = X(), L = we(() => {
386
+ const E = g.toLowerCase();
387
+ return a ? r.filter((D) => D.label.toLowerCase().includes(E)) : r;
388
+ }, [r, g, a]);
384
389
  B(() => {
385
- y && p(-1);
386
- }, [y, T]), B(() => {
387
- if (!a && !e && r.length > 0 && t) {
388
- const R = r.find((P) => P.default) || r[0];
389
- t(R.value);
390
+ w && p(-1);
391
+ }, [w, L]), B(() => {
392
+ if (!c && !e && r.length > 0 && t) {
393
+ const E = r.find((D) => D.default) || r[0];
394
+ t(E.value);
390
395
  }
391
- }, [a, e, r, t]), B(() => {
392
- function R(P) {
393
- var W;
394
- P.target instanceof Node && h.current && ((W = h.current.parentElement) != null && W.contains(P.target) || w(!1));
396
+ }, [c, e, r, t]), B(() => {
397
+ function E(D) {
398
+ var P;
399
+ D.target instanceof Node && h.current && ((P = h.current.parentElement) != null && P.contains(D.target) || y(!1));
395
400
  }
396
- return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
401
+ return document.addEventListener("mousedown", E), () => document.removeEventListener("mousedown", E);
397
402
  }, []);
398
- const x = r.find((R) => R.value === e), I = x && a, S = !o && !I, $ = `nc-align-${v}`, L = !(y && c) && !!x, F = (R, P = !1) => {
399
- var W;
400
- t == null || t(R), w(!1), N(""), P && ((W = h.current) == null || W.blur());
401
- }, Q = () => {
402
- t == null || t(void 0), N(""), w(!1);
403
- }, G = (R) => {
404
- if (!y) {
405
- (R.key === "ArrowDown" || R.key === "ArrowUp") && (w(!0), R.preventDefault());
403
+ const x = r.find((E) => E.value === e), I = x && c, S = !o && !I, $ = `nc-align-${v}`, z = !(w && a) && !!x, H = (E, D = !1) => {
404
+ var P;
405
+ t == null || t(E), y(!1), N(""), D && ((P = h.current) == null || P.blur());
406
+ }, K = () => {
407
+ t == null || t(void 0), N(""), y(!1);
408
+ }, j = (E) => {
409
+ if (!w) {
410
+ (E.key === "ArrowDown" || E.key === "ArrowUp") && (y(!0), E.preventDefault());
406
411
  return;
407
412
  }
408
- switch (R.key) {
413
+ switch (E.key) {
409
414
  case "ArrowDown":
410
- R.preventDefault(), p((P) => {
411
- const W = P + 1;
412
- return W >= T.length ? 0 : W;
415
+ E.preventDefault(), p((D) => {
416
+ const P = D + 1;
417
+ return P >= L.length ? 0 : P;
413
418
  });
414
419
  break;
415
420
  case "ArrowUp":
416
- R.preventDefault(), p((P) => {
417
- const W = P - 1;
418
- return W < 0 ? T.length - 1 : W;
421
+ E.preventDefault(), p((D) => {
422
+ const P = D - 1;
423
+ return P < 0 ? L.length - 1 : P;
419
424
  });
420
425
  break;
421
426
  case "Enter":
422
- R.preventDefault(), b >= 0 && b < T.length && F(T[b].value, !0);
427
+ E.preventDefault(), b >= 0 && b < L.length && H(L[b].value, !0);
423
428
  break;
424
429
  case "Escape":
425
- R.preventDefault(), w(!1), N("");
430
+ E.preventDefault(), y(!1), N("");
426
431
  break;
427
432
  }
428
433
  };
429
- return /* @__PURE__ */ k("div", { className: `nc-combo-container ${f === "transparent" ? "nc-transparent" : ""} ${f === "plain" ? "nc-plain" : ""} ${y ? "nc-open" : ""} ${$} ${m || ""}`.trim(), style: { position: "relative", ...d }, children: [
434
+ return /* @__PURE__ */ k("div", { className: `nc-combo-container ${f === "transparent" ? "nc-transparent" : ""} ${f === "plain" ? "nc-plain" : ""} ${w ? "nc-open" : ""} ${$} ${m || ""}`.trim(), style: { position: "relative", ...d }, children: [
430
435
  i && /* @__PURE__ */ s("span", { className: `nc-label ${C ? "nc-small" : ""}`, children: i }),
431
436
  /* @__PURE__ */ k(
432
437
  "div",
433
438
  {
434
439
  ref: A,
435
440
  style: { position: "relative", display: "flex", alignItems: "center" },
436
- onMouseDown: (R) => {
437
- o || c && R.target === h.current || (w((P) => (!P && c && x && N(x.label), !P)), c && !y && setTimeout(() => {
438
- var P, W;
439
- (P = h.current) == null || P.focus(), (W = h.current) == null || W.select();
441
+ onMouseDown: (E) => {
442
+ o || a && E.target === h.current || (y((D) => (!D && a && x && N(x.label), !D)), a && !w && setTimeout(() => {
443
+ var D, P;
444
+ (D = h.current) == null || D.focus(), (P = h.current) == null || P.select();
440
445
  }, 0));
441
446
  },
442
447
  children: [
@@ -447,27 +452,26 @@ function Wn({
447
452
  className: `nc-input ${C ? "nc-small" : ""}`,
448
453
  placeholder: n,
449
454
  onFocus: () => {
450
- var R;
451
- !o && c && (w(!0), x && (N(x.label), setTimeout(() => {
452
- var P;
453
- return (P = h.current) == null ? void 0 : P.select();
454
- }, 0))), c || (R = h.current) == null || R.blur();
455
+ !o && a && (y(!0), x && (N(x.label), setTimeout(() => {
456
+ var E;
457
+ return (E = h.current) == null ? void 0 : E.select();
458
+ }, 0)));
455
459
  },
456
- onChange: (R) => c && N(R.target.value),
457
- onKeyDown: G,
458
- value: y && c ? g : (x == null ? void 0 : x.label) || "",
459
- readOnly: o || !c,
460
+ onChange: (E) => a && N(E.target.value),
461
+ onKeyDown: j,
462
+ value: w && a ? g : (x == null ? void 0 : x.label) || "",
463
+ readOnly: o || !a,
460
464
  style: {
461
465
  width: "100%",
462
466
  paddingRight: S || I ? C ? 32 : 44 : 12,
463
- caretColor: c ? void 0 : "transparent",
464
- cursor: c ? void 0 : "pointer",
465
- userSelect: c ? void 0 : "none",
466
- color: L ? "transparent" : "var(--nc-text)"
467
+ caretColor: a ? void 0 : "transparent",
468
+ cursor: a ? void 0 : "pointer",
469
+ userSelect: a ? void 0 : "none",
470
+ color: z ? "transparent" : "var(--nc-text)"
467
471
  }
468
472
  }
469
473
  ),
470
- L && /* @__PURE__ */ k(
474
+ z && /* @__PURE__ */ k(
471
475
  "div",
472
476
  {
473
477
  "aria-hidden": !0,
@@ -484,21 +488,21 @@ function Wn({
484
488
  /* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${C ? "nc-small" : ""}`, children: x == null ? void 0 : x.label }),
485
489
  (x == null ? void 0 : x.default) && /* @__PURE__ */ k("span", { className: `nc-combo-overlay-default ${C ? "nc-small" : ""}`, children: [
486
490
  "(",
487
- z("common.default"),
491
+ T("common.default"),
488
492
  ")"
489
493
  ] })
490
494
  ]
491
495
  }
492
496
  ),
493
- I && /* @__PURE__ */ s(Nt, { onClick: Q, small: C }),
494
- S && /* @__PURE__ */ s(At, { open: y, onClick: () => w((R) => !R), small: C })
497
+ I && /* @__PURE__ */ s(Et, { onClick: K, small: C }),
498
+ S && /* @__PURE__ */ s(Tt, { open: w, small: C })
495
499
  ]
496
500
  }
497
501
  ),
498
- /* @__PURE__ */ s(kt, { isOpen: y, options: T, onSelect: F, selectedValue: e, placement: l, anchorRef: A, small: C, highlightedIndex: b })
502
+ /* @__PURE__ */ s(Rt, { isOpen: w, options: L, onSelect: H, selectedValue: e, placement: l, anchorRef: A, small: C, highlightedIndex: b })
499
503
  ] });
500
504
  }
501
- function Hn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
505
+ function Un({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
502
506
  return /* @__PURE__ */ s(
503
507
  "button",
504
508
  {
@@ -508,11 +512,11 @@ function Hn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default"
508
512
  title: o ?? (t ? "Refreshing..." : "Refresh"),
509
513
  "aria-label": i ?? (t ? "Refreshing" : "Refresh"),
510
514
  "data-size": r,
511
- children: /* @__PURE__ */ s(st, { size: r === "small" ? 14 : r === "large" ? 20 : 18, className: t ? "nc-spinning" : "" })
515
+ children: /* @__PURE__ */ s(ft, { size: r === "small" ? 14 : r === "large" ? 20 : 18, className: t ? "nc-spinning" : "" })
512
516
  }
513
517
  );
514
518
  }
515
- function Oe({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Close", "aria-label": o = "Close" }) {
519
+ function _e({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Close", "aria-label": o = "Close" }) {
516
520
  return /* @__PURE__ */ s(
517
521
  "button",
518
522
  {
@@ -522,11 +526,11 @@ function Oe({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Clo
522
526
  title: r,
523
527
  "aria-label": o,
524
528
  "data-size": n,
525
- children: /* @__PURE__ */ s(ke, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
529
+ children: /* @__PURE__ */ s(Ce, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
526
530
  }
527
531
  );
528
532
  }
529
- function On({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edit", "aria-label": o = "Edit" }) {
533
+ function qn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edit", "aria-label": o = "Edit" }) {
530
534
  return /* @__PURE__ */ s(
531
535
  "button",
532
536
  {
@@ -536,11 +540,11 @@ function On({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edi
536
540
  title: r,
537
541
  "aria-label": o,
538
542
  "data-size": n,
539
- children: /* @__PURE__ */ s(ot, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
543
+ children: /* @__PURE__ */ s(pt, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
540
544
  }
541
545
  );
542
546
  }
543
- function Fn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Delete", "aria-label": o = "Delete" }) {
547
+ function Xn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Delete", "aria-label": o = "Delete" }) {
544
548
  return /* @__PURE__ */ s(
545
549
  "button",
546
550
  {
@@ -550,11 +554,11 @@ function Fn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Del
550
554
  title: r,
551
555
  "aria-label": o,
552
556
  "data-size": n,
553
- children: /* @__PURE__ */ s(it, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
557
+ children: /* @__PURE__ */ s(ht, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
554
558
  }
555
559
  );
556
560
  }
557
- function Vn({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label": o, size: i = "default" }) {
561
+ function Jn({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label": o, size: i = "default" }) {
558
562
  return /* @__PURE__ */ s(
559
563
  "button",
560
564
  {
@@ -568,7 +572,7 @@ function Vn({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label":
568
572
  }
569
573
  );
570
574
  }
571
- function jn({
575
+ function Zn({
572
576
  open: e,
573
577
  onClose: t,
574
578
  options: n,
@@ -576,16 +580,16 @@ function jn({
576
580
  anchor: o,
577
581
  preferredDirection: i = "down"
578
582
  }) {
579
- const a = H(null), [c, l] = E({ top: 0, left: 0 }), u = o || (r == null ? void 0 : r.current);
583
+ const c = V(null), [a, l] = R({ top: 0, left: 0 }), u = o || (r == null ? void 0 : r.current);
580
584
  if (B(() => {
581
- if (!e || !u || !a.current) return;
582
- const d = u.getBoundingClientRect(), m = a.current.getBoundingClientRect(), y = window.innerHeight, w = window.innerWidth, g = d.bottom + 8, N = g + m.height <= y - 8;
585
+ if (!e || !u || !c.current) return;
586
+ const d = u.getBoundingClientRect(), m = c.current.getBoundingClientRect(), w = window.innerHeight, y = window.innerWidth, g = d.bottom + 8, N = g + m.height <= w - 8;
583
587
  let b = i;
584
588
  (!N && i === "down" || i === "up" && N) && (b = "up");
585
589
  let p;
586
590
  b === "down" ? p = g : p = d.top - m.height - 8;
587
591
  let h = d.left;
588
- h + m.width > w - 8 && (h = d.right - m.width), l({
592
+ h + m.width > y - 8 && (h = d.right - m.width), l({
589
593
  top: Math.max(8, p),
590
594
  // Ensure minimum 8px from top
591
595
  left: Math.max(8, h)
@@ -593,10 +597,10 @@ function jn({
593
597
  });
594
598
  }, [e, u, i]), B(() => {
595
599
  if (!e) return;
596
- const d = (y) => {
597
- a.current && !a.current.contains(y.target) && u && !u.contains(y.target) && t();
598
- }, m = (y) => {
599
- y.key === "Escape" && t();
600
+ const d = (w) => {
601
+ c.current && !c.current.contains(w.target) && u && !u.contains(w.target) && t();
602
+ }, m = (w) => {
603
+ w.key === "Escape" && t();
600
604
  };
601
605
  return document.addEventListener("mousedown", d), document.addEventListener("keydown", m), () => {
602
606
  document.removeEventListener("mousedown", d), document.removeEventListener("keydown", m);
@@ -609,12 +613,12 @@ function jn({
609
613
  /* @__PURE__ */ s(
610
614
  "div",
611
615
  {
612
- ref: a,
616
+ ref: c,
613
617
  className: "nc-context-menu",
614
618
  style: {
615
619
  position: "fixed",
616
- top: `${c.top}px`,
617
- left: `${c.left}px`,
620
+ top: `${a.top}px`,
621
+ left: `${a.left}px`,
618
622
  zIndex: 1e4
619
623
  },
620
624
  role: "menu",
@@ -654,40 +658,40 @@ function jn({
654
658
  document.body
655
659
  );
656
660
  }
657
- const Fe = ie(null);
658
- function Ct() {
659
- const e = Z(Fe);
661
+ const Ue = ce(null);
662
+ function Pt() {
663
+ const e = te(Ue);
660
664
  if (!e)
661
665
  throw new Error("useDialog must be used inside a Dialog component");
662
666
  return e;
663
667
  }
664
- function re({ children: e, onClick: t, ...n }) {
665
- const { close: r } = Ct(), { t: o } = U();
666
- return /* @__PURE__ */ s(K, { onClick: (a) => {
667
- t == null || t(a), r();
668
+ function oe({ children: e, onClick: t, ...n }) {
669
+ const { close: r } = Pt(), { t: o } = X();
670
+ return /* @__PURE__ */ s(U, { onClick: (c) => {
671
+ t == null || t(c), r();
668
672
  }, ...n, children: e ?? o("common.close") });
669
673
  }
670
- function Gn({
674
+ function Qn({
671
675
  open: e,
672
676
  onClose: t,
673
677
  title: n,
674
678
  children: r,
675
679
  style: o,
676
680
  footerType: i = "ok-cancel",
677
- footer: a,
678
- onOk: c,
681
+ footer: c,
682
+ onOk: a,
679
683
  onSave: l,
680
684
  onDelete: u,
681
685
  onCancel: f,
682
686
  onConnect: v,
683
687
  closeOnOverlay: d = !0,
684
688
  primaryDisabled: m = !1,
685
- fullScreen: y = !1,
686
- hideTitleBar: w = !1,
689
+ fullScreen: w = !1,
690
+ hideTitleBar: y = !1,
687
691
  className: g = "",
688
692
  onContentHeightChange: N
689
693
  }) {
690
- const b = H(null), p = H(null), { t: h } = U(), A = { close: t }, C = (x) => {
694
+ const b = V(null), p = V(null), { t: h } = X(), A = { close: t }, C = (x) => {
691
695
  d && x.target === x.currentTarget && t();
692
696
  };
693
697
  if (B(() => {
@@ -704,42 +708,42 @@ function Gn({
704
708
  x.disconnect();
705
709
  };
706
710
  }, [N]), !e) return null;
707
- const z = () => {
711
+ const T = () => {
708
712
  switch (i) {
709
713
  case "ok":
710
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: m, children: h("common.ok") }) });
714
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(U, { variant: "primary", onClick: a ?? t, disabled: m, children: h("common.ok") }) });
711
715
  case "ok-cancel":
712
716
  return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
713
- /* @__PURE__ */ s(re, { onClick: f, children: h("common.cancel") }),
714
- /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: m, children: h("common.ok") })
717
+ /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
718
+ /* @__PURE__ */ s(U, { variant: "primary", onClick: a ?? t, disabled: m, children: h("common.ok") })
715
719
  ] });
716
720
  case "save-cancel":
717
721
  return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
718
- /* @__PURE__ */ s(re, { onClick: f, children: h("common.cancel") }),
719
- /* @__PURE__ */ s(K, { variant: "primary", onClick: l, disabled: m, children: h("common.save") })
722
+ /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
723
+ /* @__PURE__ */ s(U, { variant: "primary", onClick: l, disabled: m, children: h("common.save") })
720
724
  ] });
721
725
  case "delete-cancel":
722
726
  return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
723
- /* @__PURE__ */ s(re, { onClick: f, children: h("common.cancel") }),
724
- /* @__PURE__ */ s(K, { variant: "danger", onClick: u, disabled: m, children: h("common.delete") })
727
+ /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
728
+ /* @__PURE__ */ s(U, { variant: "danger", onClick: u, disabled: m, children: h("common.delete") })
725
729
  ] });
726
730
  case "connect":
727
731
  return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
728
- /* @__PURE__ */ s(re, { onClick: f, children: h("common.cancel") }),
729
- /* @__PURE__ */ s(K, { variant: "primary", onClick: v, disabled: m, children: h("common.connect") })
732
+ /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
733
+ /* @__PURE__ */ s(U, { variant: "primary", onClick: v, disabled: m, children: h("common.connect") })
730
734
  ] });
731
735
  case "close":
732
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(re, { variant: "primary" }) });
736
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(oe, { variant: "primary" }) });
733
737
  case "gotit":
734
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(re, { variant: "primary", children: h("common.gotit") }) });
738
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(oe, { variant: "primary", children: h("common.gotit") }) });
735
739
  case "custom":
736
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: a });
740
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: c });
737
741
  case "none":
738
742
  return null;
739
743
  default:
740
744
  return null;
741
745
  }
742
- }, T = /* @__PURE__ */ s(Fe.Provider, { value: A, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${y ? " nc-fullscreen" : ""}`, onClick: C, children: /* @__PURE__ */ k(
746
+ }, L = /* @__PURE__ */ s(Ue.Provider, { value: A, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${w ? " nc-fullscreen" : ""}`, onClick: C, children: /* @__PURE__ */ k(
743
747
  "div",
744
748
  {
745
749
  ref: b,
@@ -748,20 +752,20 @@ function Gn({
748
752
  tabIndex: -1,
749
753
  role: "dialog",
750
754
  "aria-modal": "true",
751
- "aria-labelledby": w ? void 0 : "nc-dialog-title",
755
+ "aria-labelledby": y ? void 0 : "nc-dialog-title",
752
756
  children: [
753
- !w && /* @__PURE__ */ k("div", { className: "nc-dialog-header", children: [
757
+ !y && /* @__PURE__ */ k("div", { className: "nc-dialog-header", children: [
754
758
  /* @__PURE__ */ s("h3", { id: "nc-dialog-title", className: "nc-dialog-title", children: n }),
755
- /* @__PURE__ */ s(Oe, { onClick: t, "aria-label": "Close dialog" })
759
+ /* @__PURE__ */ s(_e, { onClick: t, "aria-label": "Close dialog" })
756
760
  ] }),
757
761
  /* @__PURE__ */ s("div", { ref: p, className: "nc-dialog-content", children: r }),
758
- z()
762
+ T()
759
763
  ]
760
764
  }
761
765
  ) }) });
762
- return y ? pe(T, document.body) : T;
766
+ return w ? pe(L, document.body) : L;
763
767
  }
764
- function St({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
768
+ function Lt({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
765
769
  const r = t === "small" ? 28 : 34;
766
770
  return /* @__PURE__ */ s(
767
771
  "button",
@@ -790,7 +794,7 @@ function St({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
790
794
  }
791
795
  );
792
796
  }
793
- function $t({ visible: e, onClick: t, size: n = "default" }) {
797
+ function zt({ visible: e, onClick: t, size: n = "default" }) {
794
798
  const r = n === "small" ? 28 : 34, o = n === "small" ? 16 : 18;
795
799
  return /* @__PURE__ */ s(
796
800
  "button",
@@ -814,109 +818,134 @@ function $t({ visible: e, onClick: t, size: n = "default" }) {
814
818
  alignItems: "center",
815
819
  justifyContent: "center"
816
820
  },
817
- children: e ? /* @__PURE__ */ s(ct, { size: o }) : /* @__PURE__ */ s(at, { size: o })
821
+ children: e ? /* @__PURE__ */ s(mt, { size: o }) : /* @__PURE__ */ s(gt, { size: o })
818
822
  }
819
823
  );
820
824
  }
821
- function Yn({
825
+ function er({
822
826
  value: e,
823
827
  defaultValue: t = "",
824
828
  onChange: n,
825
829
  onEnter: r,
826
830
  onClear: o,
827
831
  placeholder: i,
828
- disabled: a,
829
- label: c,
832
+ disabled: c,
833
+ label: a,
830
834
  clearable: l = !0,
831
835
  type: u = "text",
832
836
  className: f = "",
833
837
  size: v = "default",
834
838
  appearance: d = "default",
835
839
  style: m,
836
- leadingIcon: y,
837
- showPasswordToggle: w = !1,
840
+ leadingIcon: w,
841
+ showPasswordToggle: y = !1,
838
842
  multiline: g = !1,
839
843
  rows: N = 3,
840
844
  validator: b,
841
845
  showErrorMessage: p = !0
842
846
  }) {
843
- const h = H(null), A = H(null), [C, z] = E(!1), [T, x] = E(!1), I = e !== void 0, [S, $] = E(t), L = I ? e : S, F = b ? b(L) : null, Q = !!F, G = u === "password", R = G && w && !a && !g, P = l && L && !a && T, W = v === "small" ? 32 : 44;
844
- let ee = 12;
845
- P && R ? ee = W * 2 : (P || R) && (ee = W);
846
- const fe = y ? v === "small" ? 28 : 34 : void 0, et = () => {
847
- var ne, ae;
848
- I || $(""), n == null || n(""), o == null || o(), g ? (ne = A.current) == null || ne.focus() : (ae = h.current) == null || ae.focus();
849
- }, $e = (ne) => {
850
- ne.key === "Enter" && !g && (r == null || r());
851
- }, Me = (ne) => {
852
- const ae = ne.target.value;
853
- I || $(ae), n == null || n(ae);
854
- }, Ie = () => {
855
- x(!0);
856
- }, Re = () => {
857
- x(!1);
858
- }, Ee = `nc-input ${v === "small" ? "nc-small " : ""}${!g && d === "plain" ? "nc-plain " : ""}${Q ? "nc-error " : ""}${f}`;
847
+ const h = V(null), A = V(null), C = V(!1), [T, L] = R(!1), [x, I] = R(!1), S = e !== void 0, [$, z] = R(t), H = S ? e : $, [K, j] = R(H), E = b ? b(H) : null, D = !!E, P = !g && d === "plain", re = P && x, F = re ? K : H;
848
+ B(() => {
849
+ re || j(H);
850
+ }, [H, re]);
851
+ const Ee = u === "password", fe = Ee && y && !c && !g, ye = l && F && !c && x, xe = v === "small" ? 32 : 44;
852
+ let he = 12;
853
+ ye && fe ? he = xe * 2 : (ye || fe) && (he = xe);
854
+ const me = w ? v === "small" ? 28 : 34 : void 0, Te = () => P ? (S || z(K), K !== H && (n == null || n(K)), K) : H, ct = () => {
855
+ j(H);
856
+ }, at = () => {
857
+ var G, J, We;
858
+ if (P) {
859
+ j(""), o == null || o(), (G = h.current) == null || G.focus();
860
+ return;
861
+ }
862
+ S || z(""), n == null || n(""), o == null || o(), g ? (J = A.current) == null || J.focus() : (We = h.current) == null || We.focus();
863
+ }, Pe = (G) => {
864
+ if (P && G.key === "Escape") {
865
+ G.preventDefault(), C.current = !0, ct(), G.currentTarget.blur();
866
+ return;
867
+ }
868
+ if (G.key === "Enter" && !g) {
869
+ const J = P ? Te() : H;
870
+ P && (G.preventDefault(), C.current = !0, G.currentTarget.blur()), r == null || r(J);
871
+ }
872
+ }, Le = (G) => {
873
+ const J = G.target.value;
874
+ if (P) {
875
+ j(J);
876
+ return;
877
+ }
878
+ S || z(J), n == null || n(J);
879
+ }, ze = () => {
880
+ I(!0), P && j(H);
881
+ }, Be = () => {
882
+ if (P && C.current) {
883
+ C.current = !1, I(!1);
884
+ return;
885
+ }
886
+ P && Te(), I(!1);
887
+ }, De = `nc-input ${v === "small" ? "nc-small " : ""}${!g && d === "plain" ? "nc-plain " : ""}${D ? "nc-error " : ""}${f}`;
859
888
  return /* @__PURE__ */ k("div", { className: "nc-col", style: { position: "relative", flex: 1, ...m }, children: [
860
- c && /* @__PURE__ */ s("span", { className: "nc-label", children: c }),
889
+ a && /* @__PURE__ */ s("span", { className: "nc-label", children: a }),
861
890
  /* @__PURE__ */ k("div", { style: { position: "relative", display: "flex", alignItems: g ? "flex-start" : "center" }, children: [
862
- y && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: g ? void 0 : "100%", top: g ? 10 : void 0 }, children: y }),
891
+ w && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: g ? void 0 : "100%", top: g ? 10 : void 0 }, children: w }),
863
892
  g ? /* @__PURE__ */ s(
864
893
  "textarea",
865
894
  {
866
895
  ref: A,
867
- className: Ee,
896
+ className: De,
868
897
  placeholder: i,
869
- value: L,
870
- onChange: Me,
871
- onKeyDown: $e,
872
- onFocus: Ie,
873
- onBlur: Re,
874
- readOnly: a,
875
- "aria-disabled": a,
876
- tabIndex: a ? -1 : void 0,
898
+ value: F,
899
+ onChange: Le,
900
+ onKeyDown: Pe,
901
+ onFocus: ze,
902
+ onBlur: Be,
903
+ readOnly: c,
904
+ "aria-disabled": c,
905
+ tabIndex: c ? -1 : void 0,
877
906
  rows: N,
878
907
  style: {
879
908
  width: "100%",
880
- paddingRight: ee,
881
- ...fe !== void 0 ? { paddingLeft: fe } : {}
909
+ paddingRight: he,
910
+ ...me !== void 0 ? { paddingLeft: me } : {}
882
911
  }
883
912
  }
884
913
  ) : /* @__PURE__ */ s(
885
914
  "input",
886
915
  {
887
916
  ref: h,
888
- type: G && C ? "text" : u,
889
- className: Ee,
917
+ type: Ee && T ? "text" : u,
918
+ className: De,
890
919
  placeholder: i,
891
- value: L,
892
- onChange: Me,
893
- onKeyDown: $e,
894
- onFocus: Ie,
895
- onBlur: Re,
896
- readOnly: a,
897
- "aria-disabled": a,
898
- tabIndex: a ? -1 : void 0,
920
+ value: F,
921
+ onChange: Le,
922
+ onKeyDown: Pe,
923
+ onFocus: ze,
924
+ onBlur: Be,
925
+ readOnly: c,
926
+ "aria-disabled": c,
927
+ tabIndex: c ? -1 : void 0,
899
928
  style: {
900
929
  width: "100%",
901
- paddingRight: ee,
902
- ...fe !== void 0 ? { paddingLeft: fe } : {}
930
+ paddingRight: he,
931
+ ...me !== void 0 ? { paddingLeft: me } : {}
903
932
  }
904
933
  }
905
934
  ),
906
- P && /* @__PURE__ */ s(St, { onClick: et, size: v, rightOffset: R ? W + 4 : 4 }),
907
- R && /* @__PURE__ */ s($t, { visible: C, onClick: () => z(!C), size: v })
935
+ ye && /* @__PURE__ */ s(Lt, { onClick: at, size: v, rightOffset: fe ? xe + 4 : 4 }),
936
+ fe && /* @__PURE__ */ s(zt, { visible: T, onClick: () => L(!T), size: v })
908
937
  ] }),
909
- Q && p && /* @__PURE__ */ s("span", { className: "nc-error-message", children: F })
938
+ D && p && /* @__PURE__ */ s("span", { className: "nc-error-message", children: E })
910
939
  ] });
911
940
  }
912
- function Kn({
941
+ function tr({
913
942
  children: e,
914
943
  onClick: t,
915
944
  showBorder: n = !0,
916
945
  selectable: r = !1,
917
946
  style: o
918
947
  }) {
919
- const [i, a] = Ne.useState(!1);
948
+ const [i, c] = $e.useState(!1);
920
949
  return /* @__PURE__ */ s(
921
950
  "div",
922
951
  {
@@ -930,9 +959,9 @@ function Kn({
930
959
  t(l);
931
960
  }
932
961
  },
933
- onMouseDown: () => t && a(!0),
934
- onMouseUp: () => a(!1),
935
- onMouseLeave: () => a(!1),
962
+ onMouseDown: () => t && c(!0),
963
+ onMouseUp: () => c(!1),
964
+ onMouseLeave: () => c(!1),
936
965
  style: {
937
966
  cursor: t ? "pointer" : "default",
938
967
  userSelect: r ? "text" : void 0,
@@ -944,7 +973,7 @@ function Kn({
944
973
  }
945
974
  );
946
975
  }
947
- function _n({ title: e, titleTools: t, children: n, style: r }) {
976
+ function nr({ title: e, titleTools: t, children: n, style: r }) {
948
977
  return /* @__PURE__ */ k("div", { className: "nc-list-group", style: r, children: [
949
978
  (e || t) && /* @__PURE__ */ k("div", { className: "nc-list-group-title", children: [
950
979
  /* @__PURE__ */ s("div", { children: e }),
@@ -959,11 +988,11 @@ function _n({ title: e, titleTools: t, children: n, style: r }) {
959
988
  )
960
989
  ] });
961
990
  }
962
- function Un({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
963
- const [i, a] = E(!1), [c, l] = E(""), u = H(null), f = be(() => n.filter((d) => d.label.toLowerCase().includes(c.toLowerCase())), [n, c]);
991
+ function rr({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
992
+ const [i, c] = R(!1), [a, l] = R(""), u = V(null), f = we(() => n.filter((d) => d.label.toLowerCase().includes(a.toLowerCase())), [n, a]);
964
993
  B(() => {
965
994
  function d(m) {
966
- !(m.target instanceof Node) || !u.current || u.current.contains(m.target) || a(!1);
995
+ !(m.target instanceof Node) || !u.current || u.current.contains(m.target) || c(!1);
967
996
  }
968
997
  return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
969
998
  }, []);
@@ -975,7 +1004,7 @@ function Un({ values: e, onChange: t, options: n, placeholder: r = "Select…",
975
1004
  /* @__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: [
976
1005
  e.length === 0 && /* @__PURE__ */ s("span", { className: "nc-label", children: r }),
977
1006
  e.map((d) => {
978
- const m = n.find((y) => y.value === d);
1007
+ const m = n.find((w) => w.value === d);
979
1008
  return m ? /* @__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: [
980
1009
  m.label,
981
1010
  /* @__PURE__ */ s(
@@ -994,9 +1023,9 @@ function Un({ values: e, onChange: t, options: n, placeholder: r = "Select…",
994
1023
  "input",
995
1024
  {
996
1025
  className: "nc-input",
997
- value: c,
1026
+ value: a,
998
1027
  onChange: (d) => l(d.target.value),
999
- onFocus: () => a(!0),
1028
+ onFocus: () => c(!0),
1000
1029
  style: { minWidth: 50, border: "none", background: "transparent", padding: 4, minHeight: 32, flex: 1 }
1001
1030
  }
1002
1031
  )
@@ -1013,7 +1042,7 @@ function Un({ values: e, onChange: t, options: n, placeholder: r = "Select…",
1013
1042
  ] })
1014
1043
  ] });
1015
1044
  }
1016
- function he(e) {
1045
+ function ge(e) {
1017
1046
  if (!e) return null;
1018
1047
  const t = /^\d{2}-\d{1,2}$/, n = /^\d{4}-\d{1,2}$/;
1019
1048
  if (!t.test(e) && !n.test(e))
@@ -1033,61 +1062,61 @@ function ue(e) {
1033
1062
  }
1034
1063
  return `${n}-${r}`;
1035
1064
  }
1036
- function Le(e) {
1065
+ function He(e) {
1037
1066
  if (!e) return "";
1038
1067
  const t = ue(e);
1039
1068
  if (!/^\d{4}-\d{2}$/.test(t)) return e;
1040
1069
  const [n, r] = t.split("-");
1041
1070
  return `${n}/${r}`;
1042
1071
  }
1043
- function Te() {
1072
+ function Ve() {
1044
1073
  const e = /* @__PURE__ */ new Date(), t = e.getFullYear(), n = String(e.getMonth() + 1).padStart(2, "0");
1045
1074
  return `${t}-${n}`;
1046
1075
  }
1047
- function qn({
1076
+ function or({
1048
1077
  startMonth: e,
1049
1078
  endMonth: t,
1050
1079
  onChange: n,
1051
1080
  label: r,
1052
1081
  className: o = "",
1053
1082
  disabled: i = !1,
1054
- size: a = "default"
1083
+ size: c = "default"
1055
1084
  }) {
1056
- const [c, l] = E(!1), [u, f] = E(""), [v, d] = E(""), [m, y] = E({ top: 0, left: 0, width: 0, right: void 0 }), w = H(null), g = H(null);
1085
+ const [a, l] = R(!1), [u, f] = R(""), [v, d] = R(""), [m, w] = R({ top: 0, left: 0, width: 0, right: void 0 }), y = V(null), g = V(null);
1057
1086
  B(() => {
1058
- if (c && w.current) {
1059
- const S = w.current.getBoundingClientRect(), L = Math.max(S.width, 400);
1060
- window.innerWidth - S.left < L && S.right >= L ? y({
1087
+ if (a && y.current) {
1088
+ const S = y.current.getBoundingClientRect(), z = Math.max(S.width, 400);
1089
+ window.innerWidth - S.left < z && S.right >= z ? w({
1061
1090
  top: S.bottom + 4,
1062
1091
  left: 0,
1063
1092
  // Not used but type needs it, let's just use 0
1064
1093
  right: window.innerWidth - S.right,
1065
- width: L
1066
- }) : y({
1094
+ width: z
1095
+ }) : w({
1067
1096
  top: S.bottom + 4,
1068
1097
  left: S.left,
1069
1098
  right: void 0,
1070
- width: L
1099
+ width: z
1071
1100
  });
1072
1101
  }
1073
- }, [c]), B(() => {
1074
- if (!c) return;
1102
+ }, [a]), B(() => {
1103
+ if (!a) return;
1075
1104
  const S = ($) => {
1076
- w.current && !w.current.contains($.target) && g.current && !g.current.contains($.target) && l(!1);
1105
+ y.current && !y.current.contains($.target) && g.current && !g.current.contains($.target) && l(!1);
1077
1106
  };
1078
1107
  return document.addEventListener("mousedown", S), () => document.removeEventListener("mousedown", S);
1079
- }, [c]);
1108
+ }, [a]);
1080
1109
  const N = () => {
1081
- f(e || Te()), d(t || Te()), l(!0);
1110
+ f(e || Ve()), d(t || Ve()), l(!0);
1082
1111
  }, b = () => {
1083
1112
  l(!1);
1084
1113
  }, p = () => {
1085
- const S = he(u), $ = he(v);
1114
+ const S = ge(u), $ = ge(v);
1086
1115
  if (S || $)
1087
1116
  return;
1088
- const L = ue(u), F = ue(v);
1089
- L && F && (n == null || n(L, F)), l(!1);
1090
- }, h = e && t ? `${Le(e)} - ${Le(t)}` : "Select month range", A = he(u), C = he(v), z = ue(u), T = ue(v), x = z && T && z > T, I = c ? pe(
1117
+ const z = ue(u), H = ue(v);
1118
+ z && H && (n == null || n(z, H)), l(!1);
1119
+ }, h = e && t ? `${He(e)} - ${He(t)}` : "Select month range", A = ge(u), C = ge(v), T = ue(u), L = ue(v), x = T && L && T > L, I = a ? pe(
1091
1120
  /* @__PURE__ */ s(
1092
1121
  "div",
1093
1122
  {
@@ -1134,7 +1163,7 @@ function qn({
1134
1163
  x && !A && !C && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1135
1164
  /* @__PURE__ */ k("div", { className: "nc-month-range-picker-footer", children: [
1136
1165
  /* @__PURE__ */ s(
1137
- K,
1166
+ U,
1138
1167
  {
1139
1168
  variant: "primary",
1140
1169
  onClick: p,
@@ -1142,20 +1171,20 @@ function qn({
1142
1171
  children: "Apply"
1143
1172
  }
1144
1173
  ),
1145
- /* @__PURE__ */ s(K, { variant: "ghost", onClick: b, children: "Cancel" })
1174
+ /* @__PURE__ */ s(U, { variant: "ghost", onClick: b, children: "Cancel" })
1146
1175
  ] })
1147
1176
  ] })
1148
1177
  }
1149
1178
  ),
1150
1179
  document.body
1151
1180
  ) : null;
1152
- return /* @__PURE__ */ k("div", { className: `nc-month-range-picker ${a === "small" ? "nc-small " : ""}${o}`, children: [
1153
- r && /* @__PURE__ */ s("label", { className: `nc-label${a === "small" ? " nc-small" : ""}`, children: r }),
1181
+ return /* @__PURE__ */ k("div", { className: `nc-month-range-picker ${c === "small" ? "nc-small " : ""}${o}`, children: [
1182
+ r && /* @__PURE__ */ s("label", { className: `nc-label${c === "small" ? " nc-small" : ""}`, children: r }),
1154
1183
  /* @__PURE__ */ s(
1155
1184
  "button",
1156
1185
  {
1157
- ref: w,
1158
- className: `nc-month-range-picker-input${a === "small" ? " nc-small" : ""}`,
1186
+ ref: y,
1187
+ className: `nc-month-range-picker-input${c === "small" ? " nc-small" : ""}`,
1159
1188
  onClick: N,
1160
1189
  disabled: i,
1161
1190
  children: h
@@ -1164,8 +1193,8 @@ function qn({
1164
1193
  I
1165
1194
  ] });
1166
1195
  }
1167
- function Xn({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: a, size: c = "default" }) {
1168
- const l = c === "small", u = () => {
1196
+ function sr({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: c, size: a = "default" }) {
1197
+ const l = a === "small", u = () => {
1169
1198
  const d = e - o;
1170
1199
  n !== void 0 && d < n || t(parseFloat(d.toFixed(10)));
1171
1200
  }, f = () => {
@@ -1188,7 +1217,7 @@ function Xn({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1188
1217
  min: n,
1189
1218
  max: r,
1190
1219
  step: o,
1191
- disabled: a
1220
+ disabled: c
1192
1221
  }
1193
1222
  ),
1194
1223
  /* @__PURE__ */ s(
@@ -1196,7 +1225,7 @@ function Xn({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1196
1225
  {
1197
1226
  className: `nc-button nc-ghost nc-number-input-button ${l ? "nc-small" : ""}`,
1198
1227
  onClick: u,
1199
- disabled: a || n !== void 0 && e <= n,
1228
+ disabled: c || n !== void 0 && e <= n,
1200
1229
  children: "−"
1201
1230
  }
1202
1231
  ),
@@ -1205,22 +1234,22 @@ function Xn({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1205
1234
  {
1206
1235
  className: `nc-button nc-ghost nc-number-input-button ${l ? "nc-small" : ""}`,
1207
1236
  onClick: f,
1208
- disabled: a || r !== void 0 && e >= r,
1237
+ disabled: c || r !== void 0 && e >= r,
1209
1238
  children: "+"
1210
1239
  }
1211
1240
  )
1212
1241
  ] })
1213
1242
  ] });
1214
1243
  }
1215
- function Jn({
1244
+ function ir({
1216
1245
  value: e,
1217
1246
  onChange: t,
1218
1247
  min: n = 0,
1219
1248
  max: r = 100,
1220
1249
  step: o = 1,
1221
1250
  label: i,
1222
- disabled: a,
1223
- showValue: c = !0,
1251
+ disabled: c,
1252
+ showValue: a = !0,
1224
1253
  formatValue: l = (f) => f.toString(),
1225
1254
  width: u = 200
1226
1255
  }) {
@@ -1241,14 +1270,14 @@ function Jn({
1241
1270
  min: n,
1242
1271
  max: r,
1243
1272
  step: o,
1244
- disabled: a,
1273
+ disabled: c,
1245
1274
  style: {
1246
1275
  width: u,
1247
1276
  "--nc-slider-percentage": `${v}%`
1248
1277
  }
1249
1278
  }
1250
1279
  ),
1251
- c && /* @__PURE__ */ s(
1280
+ a && /* @__PURE__ */ s(
1252
1281
  "span",
1253
1282
  {
1254
1283
  style: {
@@ -1264,85 +1293,85 @@ function Jn({
1264
1293
  ] })
1265
1294
  ] });
1266
1295
  }
1267
- const Mt = ({ 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" }) });
1268
- function It({ children: e, className: t = "", style: n }) {
1296
+ const Bt = ({ 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" }) });
1297
+ function Dt({ children: e, className: t = "", style: n }) {
1269
1298
  return /* @__PURE__ */ s("div", { className: `nc-tab-panel ${t}`, style: n, children: e });
1270
1299
  }
1271
- function Zn({ active: e, children: t, keepMounted: n = !1, className: r = "", style: o }) {
1272
- const i = pt.toArray(t).filter(
1273
- (c) => ft(c) && (c.type === It || c.type.displayName === "TabPanel")
1300
+ function cr({ active: e, children: t, keepMounted: n = !1, className: r = "", style: o }) {
1301
+ const i = yt.toArray(t).filter(
1302
+ (a) => xt(a) && (a.type === Dt || a.type.displayName === "TabPanel")
1274
1303
  );
1275
1304
  if (n)
1276
- return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: i.map((c) => {
1277
- const l = c.props.tab === e;
1305
+ return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: i.map((a) => {
1306
+ const l = a.props.tab === e;
1278
1307
  return /* @__PURE__ */ s(
1279
1308
  "div",
1280
1309
  {
1281
1310
  className: `nc-tab-panel-wrapper ${l ? "nc-active" : ""}`,
1282
1311
  style: { display: l ? void 0 : "none" },
1283
1312
  "aria-hidden": !l,
1284
- children: c
1313
+ children: a
1285
1314
  },
1286
- c.props.tab
1315
+ a.props.tab
1287
1316
  );
1288
1317
  }) });
1289
- const a = i.find((c) => c.props.tab === e);
1290
- return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: a });
1318
+ const c = i.find((a) => a.props.tab === e);
1319
+ return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: c });
1291
1320
  }
1292
- function Qn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: a, multiline: c, orientation: l = "horizontal", style: u }) {
1293
- const f = H(null), [v, d] = E(!1), [m, y] = E(!1), w = l === "verticalLeft" || l === "verticalRight", g = H(!1), N = H(0), b = H(0), p = H(!1);
1321
+ function ar({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: c, multiline: a, orientation: l = "horizontal", style: u }) {
1322
+ const f = V(null), [v, d] = R(!1), [m, w] = R(!1), y = l === "verticalLeft" || l === "verticalRight", g = V(!1), N = V(0), b = V(0), p = V(!1);
1294
1323
  B(() => {
1295
1324
  const x = () => {
1296
1325
  if (f.current)
1297
- if (w) {
1298
- const { scrollTop: S, scrollHeight: $, clientHeight: L } = f.current;
1299
- d(S > 1), y(S < $ - L - 1);
1326
+ if (y) {
1327
+ const { scrollTop: S, scrollHeight: $, clientHeight: z } = f.current;
1328
+ d(S > 1), w(S < $ - z - 1);
1300
1329
  } else {
1301
- const { scrollLeft: S, scrollWidth: $, clientWidth: L } = f.current;
1302
- d(S > 1), y(S < $ - L - 1);
1330
+ const { scrollLeft: S, scrollWidth: $, clientWidth: z } = f.current;
1331
+ d(S > 1), w(S < $ - z - 1);
1303
1332
  }
1304
1333
  }, I = f.current;
1305
1334
  if (I)
1306
1335
  return x(), I.addEventListener("scroll", x), window.addEventListener("resize", x), () => {
1307
1336
  I.removeEventListener("scroll", x), window.removeEventListener("resize", x);
1308
1337
  };
1309
- }, [e, w]);
1338
+ }, [e, y]);
1310
1339
  const h = (x) => {
1311
- f.current && (g.current = !0, p.current = !1, N.current = w ? x.clientY : x.clientX, b.current = w ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1340
+ f.current && (g.current = !0, p.current = !1, N.current = y ? x.clientY : x.clientX, b.current = y ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1312
1341
  }, A = (x) => {
1313
1342
  if (!g.current || !f.current) return;
1314
- const I = w ? x.clientY : x.clientX, S = N.current - I;
1315
- Math.abs(S) > 3 && (p.current = !0), w ? f.current.scrollTop = b.current + S : f.current.scrollLeft = b.current + S;
1343
+ const I = y ? x.clientY : x.clientX, S = N.current - I;
1344
+ Math.abs(S) > 3 && (p.current = !0), y ? f.current.scrollTop = b.current + S : f.current.scrollLeft = b.current + S;
1316
1345
  }, C = () => {
1317
1346
  f.current && (g.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1318
- }, z = () => {
1347
+ }, T = () => {
1319
1348
  C();
1320
1349
  };
1321
1350
  B(() => {
1322
1351
  const x = f.current;
1323
- if (!x || w) return;
1352
+ if (!x || y) return;
1324
1353
  const I = (S) => {
1325
1354
  S.deltaY !== 0 && (S.preventDefault(), x.scrollLeft += S.deltaY * 0.3);
1326
1355
  };
1327
1356
  return x.addEventListener("wheel", I, { passive: !1 }), () => {
1328
1357
  x.removeEventListener("wheel", I);
1329
1358
  };
1330
- }, [w]);
1331
- const T = (x) => {
1359
+ }, [y]);
1360
+ const L = (x) => {
1332
1361
  p.current || n(x);
1333
1362
  };
1334
- return /* @__PURE__ */ k("div", { className: `nc-tab-container ${w ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: u, children: [
1363
+ return /* @__PURE__ */ k("div", { className: `nc-tab-container ${y ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: u, children: [
1335
1364
  /* @__PURE__ */ k("div", { className: "nc-tab-scroll-wrapper", children: [
1336
- v && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${w ? "nc-top" : "nc-left"}`, children: w ? /* @__PURE__ */ s(Mt, { size: 16 }) : /* @__PURE__ */ s(lt, { size: 16 }) }),
1365
+ v && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${y ? "nc-top" : "nc-left"}`, children: y ? /* @__PURE__ */ s(Bt, { size: 16 }) : /* @__PURE__ */ s(bt, { size: 16 }) }),
1337
1366
  /* @__PURE__ */ s(
1338
1367
  "div",
1339
1368
  {
1340
1369
  ref: f,
1341
- className: `nc-tab-scroll ${c ? "nc-multiline" : ""}`,
1370
+ className: `nc-tab-scroll ${a ? "nc-multiline" : ""}`,
1342
1371
  onMouseDown: h,
1343
1372
  onMouseMove: A,
1344
1373
  onMouseUp: C,
1345
- onMouseLeave: z,
1374
+ onMouseLeave: T,
1346
1375
  style: { cursor: "grab" },
1347
1376
  children: e.map((x) => {
1348
1377
  const I = typeof x == "string" ? x : x.id, S = typeof x == "string" ? x : x.label, $ = r && !(o != null && o.includes(I));
@@ -1350,14 +1379,14 @@ function Qn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1350
1379
  "div",
1351
1380
  {
1352
1381
  className: `nc-tab-item ${t === I ? "nc-active" : ""} ${$ ? "nc-closable" : ""}`,
1353
- onClick: () => T(I),
1382
+ onClick: () => L(I),
1354
1383
  role: "button",
1355
1384
  tabIndex: 0,
1356
- onKeyDown: (L) => {
1357
- (L.key === "Enter" || L.key === " ") && n(I);
1385
+ onKeyDown: (z) => {
1386
+ (z.key === "Enter" || z.key === " ") && n(I);
1358
1387
  },
1359
1388
  children: [
1360
- /* @__PURE__ */ s("span", { className: "nc-tab-label", children: w ? S : typeof S == "string" ? S.toUpperCase() : S }),
1389
+ /* @__PURE__ */ s("span", { className: "nc-tab-label", children: y ? S : typeof S == "string" ? S.toUpperCase() : S }),
1361
1390
  $ && /* @__PURE__ */ s(
1362
1391
  "span",
1363
1392
  {
@@ -1365,11 +1394,11 @@ function Qn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1365
1394
  role: "button",
1366
1395
  tabIndex: 0,
1367
1396
  "aria-label": `Close ${typeof S == "string" ? S : I}`,
1368
- onClick: (L) => {
1369
- L.stopPropagation(), r(I);
1397
+ onClick: (z) => {
1398
+ z.stopPropagation(), r(I);
1370
1399
  },
1371
- onKeyDown: (L) => {
1372
- (L.key === "Enter" || L.key === " ") && (L.stopPropagation(), r(I));
1400
+ onKeyDown: (z) => {
1401
+ (z.key === "Enter" || z.key === " ") && (z.stopPropagation(), r(I));
1373
1402
  },
1374
1403
  children: /* @__PURE__ */ k("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1375
1404
  /* @__PURE__ */ s("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
@@ -1384,12 +1413,12 @@ function Qn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1384
1413
  })
1385
1414
  }
1386
1415
  ),
1387
- m && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${w ? "nc-bottom" : "nc-right"}`, children: w ? /* @__PURE__ */ s(dt, { size: 16 }) : /* @__PURE__ */ s(ut, { size: 16 }) })
1416
+ m && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${y ? "nc-bottom" : "nc-right"}`, children: y ? /* @__PURE__ */ s(vt, { size: 16 }) : /* @__PURE__ */ s(wt, { size: 16 }) })
1388
1417
  ] }),
1389
- a && /* @__PURE__ */ s("div", { className: "nc-tab-toolbar", children: a })
1418
+ c && /* @__PURE__ */ s("div", { className: "nc-tab-toolbar", children: c })
1390
1419
  ] });
1391
1420
  }
1392
- function er({ checked: e, onChange: t, disabled: n, label: r }) {
1421
+ function lr({ checked: e, onChange: t, disabled: n, label: r }) {
1393
1422
  return /* @__PURE__ */ k(
1394
1423
  "label",
1395
1424
  {
@@ -1441,7 +1470,7 @@ function er({ checked: e, onChange: t, disabled: n, label: r }) {
1441
1470
  }
1442
1471
  );
1443
1472
  }
1444
- const ze = [
1473
+ const Oe = [
1445
1474
  "var(--nc-csv-col-0)",
1446
1475
  "var(--nc-csv-col-1)",
1447
1476
  "var(--nc-csv-col-2)",
@@ -1453,24 +1482,24 @@ const ze = [
1453
1482
  "var(--nc-csv-col-8)",
1454
1483
  "var(--nc-csv-col-9)"
1455
1484
  ];
1456
- function Rt(e, t) {
1485
+ function Wt(e, t) {
1457
1486
  const r = e.slice(0, t).split(`
1458
- `), o = r.length, a = r[o - 1].split(" "), c = a.length, l = a[c - 1].length + 1;
1459
- return { line: o, column: c, character: l, offset: t };
1487
+ `), o = r.length, c = r[o - 1].split(" "), a = c.length, l = c[a - 1].length + 1;
1488
+ return { line: o, column: a, character: l, offset: t };
1460
1489
  }
1461
- function Et(e, t, n, r) {
1490
+ function Ht(e, t, n, r) {
1462
1491
  const o = e.split(`
1463
1492
  `), i = Math.max(1, Math.min(t, o.length));
1464
- let a = 0;
1493
+ let c = 0;
1465
1494
  for (let v = 0; v < i - 1; v++)
1466
- a += o[v].length + 1;
1495
+ c += o[v].length + 1;
1467
1496
  const l = o[i - 1].split(" "), u = Math.max(1, Math.min(n, l.length));
1468
1497
  for (let v = 0; v < u - 1; v++)
1469
- a += l[v].length + 1;
1498
+ c += l[v].length + 1;
1470
1499
  const f = Math.max(1, Math.min(r, l[u - 1].length + 1));
1471
- return a += f - 1, a;
1500
+ return c += f - 1, c;
1472
1501
  }
1473
- function Lt(e, t) {
1502
+ function Vt(e, t) {
1474
1503
  const n = e.split(`
1475
1504
  `), r = Math.max(1, Math.min(t, n.length));
1476
1505
  let o = 0;
@@ -1478,32 +1507,32 @@ function Lt(e, t) {
1478
1507
  o += n[i].length + 1;
1479
1508
  return o;
1480
1509
  }
1481
- const tr = ht(
1482
- function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: a = !1, onCursorChange: c, highlightLine: l }, u) {
1483
- const f = H(null), v = H(null), d = H(null);
1484
- mt(u, () => ({
1510
+ const dr = kt(
1511
+ function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: c = !1, onCursorChange: a, highlightLine: l }, u) {
1512
+ const f = V(null), v = V(null), d = V(null);
1513
+ Nt(u, () => ({
1485
1514
  goToLine(b) {
1486
1515
  const p = f.current;
1487
1516
  if (!p) return;
1488
- const h = Lt(t, b);
1517
+ const h = Vt(t, b);
1489
1518
  p.focus(), p.setSelectionRange(h, h);
1490
1519
  const A = parseFloat(getComputedStyle(p).lineHeight) || 18;
1491
- p.scrollTop = (Math.max(1, b) - 1) * A, y(), m();
1520
+ p.scrollTop = (Math.max(1, b) - 1) * A, w(), m();
1492
1521
  },
1493
1522
  goToPosition(b, p, h) {
1494
1523
  const A = f.current;
1495
1524
  if (!A) return;
1496
- const C = Et(t, b, p, h);
1525
+ const C = Ht(t, b, p, h);
1497
1526
  A.focus(), A.setSelectionRange(C, C);
1498
- const z = parseFloat(getComputedStyle(A).lineHeight) || 18;
1499
- A.scrollTop = (Math.max(1, b) - 1) * z, y(), m();
1527
+ const T = parseFloat(getComputedStyle(A).lineHeight) || 18;
1528
+ A.scrollTop = (Math.max(1, b) - 1) * T, w(), m();
1500
1529
  }
1501
1530
  }), [t]);
1502
1531
  const m = O(() => {
1503
- if (!c || !f.current) return;
1504
- const b = Rt(t, f.current.selectionStart);
1505
- c(b);
1506
- }, [c, t]), y = O(() => {
1532
+ if (!a || !f.current) return;
1533
+ const b = Wt(t, f.current.selectionStart);
1534
+ a(b);
1535
+ }, [a, t]), w = O(() => {
1507
1536
  const b = f.current;
1508
1537
  b && (v.current && (v.current.scrollTop = b.scrollTop, v.current.scrollLeft = b.scrollLeft), d.current && (d.current.scrollTop = b.scrollTop));
1509
1538
  }, []);
@@ -1512,12 +1541,12 @@ const tr = ht(
1512
1541
  const b = f.current;
1513
1542
  if (!b) return;
1514
1543
  const p = parseFloat(getComputedStyle(b).lineHeight) || 18, h = (l - 1) * p, A = h + p;
1515
- (h < b.scrollTop || A > b.scrollTop + b.clientHeight) && (b.scrollTop = h - b.clientHeight / 2 + p / 2), y();
1544
+ (h < b.scrollTop || A > b.scrollTop + b.clientHeight) && (b.scrollTop = h - b.clientHeight / 2 + p / 2), w();
1516
1545
  }, [l]);
1517
- const w = be(() => t.split(`
1546
+ const y = we(() => t.split(`
1518
1547
  `).length, [t]), g = () => {
1519
1548
  const b = [];
1520
- for (let p = 1; p <= w; p++)
1549
+ for (let p = 1; p <= y; p++)
1521
1550
  b.push(
1522
1551
  /* @__PURE__ */ s("div", { className: `nc-csv-line-number ${l === p ? "nc-csv-highlight" : ""}`, children: p }, p)
1523
1552
  );
@@ -1526,16 +1555,16 @@ const tr = ht(
1526
1555
  `).map((h, A) => {
1527
1556
  const C = h.split(" ");
1528
1557
  return /* @__PURE__ */ k("div", { className: `nc-csv-line ${l === A + 1 ? "nc-csv-highlight" : ""}`, children: [
1529
- C.map((z, T) => /* @__PURE__ */ k("span", { children: [
1530
- T > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
1531
- /* @__PURE__ */ s("span", { style: { color: ze[T % ze.length] }, children: z })
1532
- ] }, T)),
1558
+ C.map((T, L) => /* @__PURE__ */ k("span", { children: [
1559
+ L > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
1560
+ /* @__PURE__ */ s("span", { style: { color: Oe[L % Oe.length] }, children: T })
1561
+ ] }, L)),
1533
1562
  h === "" && `
1534
1563
  `
1535
1564
  ] }, A);
1536
1565
  }) : null;
1537
- return /* @__PURE__ */ k("div", { className: `nc-csv-textarea-container ${a ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1538
- a && g(),
1566
+ return /* @__PURE__ */ k("div", { className: `nc-csv-textarea-container ${c ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1567
+ c && g(),
1539
1568
  /* @__PURE__ */ k("div", { className: "nc-csv-textarea-editor", children: [
1540
1569
  /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: v, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: N(t) }) }),
1541
1570
  /* @__PURE__ */ s(
@@ -1547,7 +1576,7 @@ const tr = ht(
1547
1576
  onChange: (b) => {
1548
1577
  n(b.target.value), requestAnimationFrame(m);
1549
1578
  },
1550
- onScroll: y,
1579
+ onScroll: w,
1551
1580
  onSelect: m,
1552
1581
  onKeyUp: m,
1553
1582
  onClick: m,
@@ -1561,27 +1590,27 @@ const tr = ht(
1561
1590
  ] });
1562
1591
  }
1563
1592
  );
1564
- let te = { notifications: [] };
1565
- const we = /* @__PURE__ */ new Set(), Pe = /* @__PURE__ */ new Map();
1566
- function ye() {
1567
- const e = te.notifications.slice();
1568
- for (const t of Array.from(we))
1593
+ let ne = { notifications: [] };
1594
+ const Ne = /* @__PURE__ */ new Set(), Fe = /* @__PURE__ */ new Map();
1595
+ function Ae() {
1596
+ const e = ne.notifications.slice();
1597
+ for (const t of Array.from(Ne))
1569
1598
  try {
1570
1599
  t(e);
1571
1600
  } catch {
1572
1601
  }
1573
1602
  }
1574
- function Tt(e) {
1575
- we.add(e);
1603
+ function Ot(e) {
1604
+ Ne.add(e);
1576
1605
  try {
1577
- e(te.notifications.slice());
1606
+ e(ne.notifications.slice());
1578
1607
  } catch {
1579
1608
  }
1580
1609
  return () => {
1581
- we.delete(e);
1610
+ Ne.delete(e);
1582
1611
  };
1583
1612
  }
1584
- function zt(e) {
1613
+ function Ft(e) {
1585
1614
  const t = `notification-${Date.now()}-${Math.random()}`, { duration: n, type: r, ...o } = e, i = {
1586
1615
  id: t,
1587
1616
  dismissible: !0,
@@ -1589,20 +1618,20 @@ function zt(e) {
1589
1618
  type: r === "error" ? "danger" : r ?? "info",
1590
1619
  duration: n ?? 5e3
1591
1620
  };
1592
- return te.notifications = [i, ...te.notifications], ye(), i.duration && i.duration > 0 && setTimeout(() => {
1593
- Ve(t);
1621
+ return ne.notifications = [i, ...ne.notifications], Ae(), i.duration && i.duration > 0 && setTimeout(() => {
1622
+ qe(t);
1594
1623
  }, i.duration), t;
1595
1624
  }
1596
- function Ve(e) {
1597
- const t = te.notifications.find((r) => r.id === e);
1625
+ function qe(e) {
1626
+ const t = ne.notifications.find((r) => r.id === e);
1598
1627
  if (!t) return;
1599
- t.isRemoving = !0, ye();
1628
+ t.isRemoving = !0, Ae();
1600
1629
  const n = window.setTimeout(() => {
1601
- te.notifications = te.notifications.filter((r) => r.id !== e), ye(), Pe.delete(e);
1630
+ ne.notifications = ne.notifications.filter((r) => r.id !== e), Ae(), Fe.delete(e);
1602
1631
  }, 300);
1603
- Pe.set(e, n);
1632
+ Fe.set(e, n);
1604
1633
  }
1605
- function Pt({ type: e }) {
1634
+ function jt({ type: e }) {
1606
1635
  switch (e) {
1607
1636
  case "success":
1608
1637
  return /* @__PURE__ */ s("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ s(
@@ -1643,8 +1672,8 @@ function Pt({ type: e }) {
1643
1672
  ] });
1644
1673
  }
1645
1674
  }
1646
- function Bt({ notification: e }) {
1647
- const { t } = U(), n = e.type || "info", r = () => {
1675
+ function Gt({ notification: e }) {
1676
+ const { t } = X(), n = e.type || "info", r = () => {
1648
1677
  if (e.title) return e.title;
1649
1678
  switch (n) {
1650
1679
  case "success":
@@ -1657,14 +1686,14 @@ function Bt({ notification: e }) {
1657
1686
  return t("common.info");
1658
1687
  }
1659
1688
  }, o = () => {
1660
- Ve(e.id);
1689
+ qe(e.id);
1661
1690
  };
1662
1691
  return /* @__PURE__ */ s(
1663
1692
  "div",
1664
1693
  {
1665
1694
  className: `nc-notification nc-notification-${n}`,
1666
1695
  children: /* @__PURE__ */ k("div", { className: "nc-notification-content", children: [
1667
- /* @__PURE__ */ s("div", { className: `nc-notification-icon nc-notification-icon-${n}`, children: /* @__PURE__ */ s(Pt, { type: n }) }),
1696
+ /* @__PURE__ */ s("div", { className: `nc-notification-icon nc-notification-icon-${n}`, children: /* @__PURE__ */ s(jt, { type: n }) }),
1668
1697
  /* @__PURE__ */ k("div", { className: "nc-notification-body", children: [
1669
1698
  /* @__PURE__ */ s("div", { className: "nc-notification-title", children: r() }),
1670
1699
  /* @__PURE__ */ s("div", { className: "nc-notification-message", children: e.message })
@@ -1675,27 +1704,27 @@ function Bt({ notification: e }) {
1675
1704
  className: "nc-notification-dismiss",
1676
1705
  onClick: o,
1677
1706
  "aria-label": t("common.close"),
1678
- children: /* @__PURE__ */ s(ke, { size: 16 })
1707
+ children: /* @__PURE__ */ s(Ce, { size: 16 })
1679
1708
  }
1680
1709
  )
1681
1710
  ] })
1682
1711
  }
1683
1712
  );
1684
1713
  }
1685
- function nr() {
1686
- const [e, t] = E([]), [n, r] = E(/* @__PURE__ */ new Map()), [o, i] = E(/* @__PURE__ */ new Set()), a = H(null), c = H([]);
1687
- return B(() => Tt((u) => {
1688
- const f = new Set(c.current.map((d) => d.id)), v = u.filter((d) => !f.has(d.id)).map((d) => d.id);
1714
+ function ur() {
1715
+ const [e, t] = R([]), [n, r] = R(/* @__PURE__ */ new Map()), [o, i] = R(/* @__PURE__ */ new Set()), c = V(null), a = V([]);
1716
+ return B(() => Ot((u) => {
1717
+ const f = new Set(a.current.map((d) => d.id)), v = u.filter((d) => !f.has(d.id)).map((d) => d.id);
1689
1718
  v.length > 0 ? (t(u), i(new Set(v)), requestAnimationFrame(() => {
1690
1719
  requestAnimationFrame(() => {
1691
1720
  i(/* @__PURE__ */ new Set());
1692
1721
  });
1693
- })) : t(u), c.current = u;
1722
+ })) : t(u), a.current = u;
1694
1723
  }), []), B(() => {
1695
- if (!a.current) return;
1724
+ if (!c.current) return;
1696
1725
  const l = /* @__PURE__ */ new Map();
1697
1726
  let u = 0;
1698
- const f = a.current.children;
1727
+ const f = c.current.children;
1699
1728
  e.forEach((v, d) => {
1700
1729
  if (l.set(v.id, u), f[d]) {
1701
1730
  const m = f[d].offsetHeight;
@@ -1716,7 +1745,7 @@ function nr() {
1716
1745
  children: /* @__PURE__ */ s(
1717
1746
  "div",
1718
1747
  {
1719
- ref: a,
1748
+ ref: c,
1720
1749
  style: {
1721
1750
  pointerEvents: "auto",
1722
1751
  position: "relative",
@@ -1737,7 +1766,7 @@ function nr() {
1737
1766
  opacity: f ? 0 : 1,
1738
1767
  width: "100%"
1739
1768
  },
1740
- children: /* @__PURE__ */ s(Bt, { notification: l })
1769
+ children: /* @__PURE__ */ s(Gt, { notification: l })
1741
1770
  },
1742
1771
  l.id
1743
1772
  );
@@ -1747,14 +1776,14 @@ function nr() {
1747
1776
  }
1748
1777
  );
1749
1778
  }
1750
- function Dt(e) {
1751
- return zt(e);
1779
+ function Yt(e) {
1780
+ return Ft(e);
1752
1781
  }
1753
- const rr = {
1754
- show: (e) => Dt(e)
1782
+ const pr = {
1783
+ show: (e) => Yt(e)
1755
1784
  };
1756
- function or(e) {
1757
- const t = bt.createInstance(), n = {};
1785
+ function fr(e) {
1786
+ const t = St.createInstance(), n = {};
1758
1787
  for (const o in e)
1759
1788
  n[o] = { translation: e[o] };
1760
1789
  const r = typeof document < "u" && document.documentElement.lang || "en";
@@ -1767,16 +1796,16 @@ function or(e) {
1767
1796
  // React already escapes by default
1768
1797
  }
1769
1798
  }), typeof MutationObserver < "u" && typeof document < "u" && new MutationObserver((i) => {
1770
- for (const a of i)
1771
- if (a.type === "attributes" && a.attributeName === "lang") {
1772
- const c = document.documentElement.lang || "en";
1773
- t.changeLanguage(c);
1799
+ for (const c of i)
1800
+ if (c.type === "attributes" && c.attributeName === "lang") {
1801
+ const a = document.documentElement.lang || "en";
1802
+ t.changeLanguage(a);
1774
1803
  }
1775
1804
  }).observe(document.documentElement, { attributes: !0 }), t;
1776
1805
  }
1777
- class Wt {
1806
+ class Kt {
1778
1807
  constructor() {
1779
- q(this, "apps", /* @__PURE__ */ new Map());
1808
+ Z(this, "apps", /* @__PURE__ */ new Map());
1780
1809
  }
1781
1810
  /**
1782
1811
  * Register an app definition.
@@ -1814,16 +1843,16 @@ class Wt {
1814
1843
  return this.apps.has(t);
1815
1844
  }
1816
1845
  }
1817
- const se = new Wt(), Be = "nc-ui-app-state";
1818
- class Ht {
1846
+ const ie = new Kt(), je = "nc-ui-app-state";
1847
+ class _t {
1819
1848
  constructor() {
1820
- q(this, "state");
1821
- q(this, "listeners", /* @__PURE__ */ new Map());
1849
+ Z(this, "state");
1850
+ Z(this, "listeners", /* @__PURE__ */ new Map());
1822
1851
  this.state = this.loadState();
1823
1852
  }
1824
1853
  loadState() {
1825
1854
  try {
1826
- const t = localStorage.getItem(Be);
1855
+ const t = localStorage.getItem(je);
1827
1856
  if (t)
1828
1857
  return JSON.parse(t);
1829
1858
  } catch {
@@ -1832,7 +1861,7 @@ class Ht {
1832
1861
  }
1833
1862
  saveState() {
1834
1863
  try {
1835
- localStorage.setItem(Be, JSON.stringify(this.state));
1864
+ localStorage.setItem(je, JSON.stringify(this.state));
1836
1865
  } catch {
1837
1866
  }
1838
1867
  }
@@ -1862,13 +1891,13 @@ class Ht {
1862
1891
  (r = this.listeners.get(t)) == null || r.forEach((o) => o(n));
1863
1892
  }
1864
1893
  }
1865
- const _ = new Ht();
1866
- class Ot {
1894
+ const q = new _t();
1895
+ class Ut {
1867
1896
  constructor() {
1868
- q(this, "apps", []);
1869
- q(this, "activeAppId", null);
1870
- q(this, "listeners", /* @__PURE__ */ new Set());
1871
- q(this, "refReadyResolvers", /* @__PURE__ */ new Map());
1897
+ Z(this, "apps", []);
1898
+ Z(this, "activeAppId", null);
1899
+ Z(this, "listeners", /* @__PURE__ */ new Set());
1900
+ Z(this, "refReadyResolvers", /* @__PURE__ */ new Map());
1872
1901
  }
1873
1902
  /**
1874
1903
  * Launch an app and wait for it to be ready (ref populated).
@@ -1880,16 +1909,16 @@ class Ot {
1880
1909
  */
1881
1910
  async launchApp(t, n) {
1882
1911
  const { launchInBackground: r = !1 } = n || {};
1883
- if (!se.has(t))
1912
+ if (!ie.has(t))
1884
1913
  return console.error(`Cannot launch app "${t}": not registered`), null;
1885
- const o = this.apps.find((a) => a.appId === t);
1914
+ const o = this.apps.find((c) => c.appId === t);
1886
1915
  if (o)
1887
- return r || (this.setActiveApp(t), _._setActiveAppId(t)), o.ref ? o : this.waitForRef(t);
1916
+ return r || (this.setActiveApp(t), q._setActiveAppId(t)), o.ref ? o : this.waitForRef(t);
1888
1917
  const i = {
1889
1918
  appId: t,
1890
1919
  launchedAt: Date.now()
1891
1920
  };
1892
- return this.apps.push(i), r || (this.activeAppId = t, _._setActiveAppId(t)), this.notify(), this.waitForRef(t);
1921
+ return this.apps.push(i), r || (this.activeAppId = t, q._setActiveAppId(t)), this.notify(), this.waitForRef(t);
1893
1922
  }
1894
1923
  waitForRef(t) {
1895
1924
  return new Promise((n) => {
@@ -1926,7 +1955,7 @@ class Ot {
1926
1955
  const r = this.apps[n];
1927
1956
  if (r.ref && (r.ref = void 0), this.apps.splice(n, 1), this.activeAppId === t) {
1928
1957
  const o = window.innerWidth >= 768;
1929
- this.activeAppId = o && this.apps.length > 0 ? this.apps[this.apps.length - 1].appId : null, _._setActiveAppId(this.activeAppId);
1958
+ this.activeAppId = o && this.apps.length > 0 ? this.apps[this.apps.length - 1].appId : null, q._setActiveAppId(this.activeAppId);
1930
1959
  }
1931
1960
  this.notify();
1932
1961
  }
@@ -1938,7 +1967,7 @@ class Ot {
1938
1967
  console.warn(`Cannot activate app "${t}": not running`);
1939
1968
  return;
1940
1969
  }
1941
- this.activeAppId !== t && (this.activeAppId = t, this.notify(), _._setActiveAppId(t));
1970
+ this.activeAppId !== t && (this.activeAppId = t, this.notify(), q._setActiveAppId(t));
1942
1971
  }
1943
1972
  /**
1944
1973
  * Toggle an app: if active, deactivate; if inactive, activate.
@@ -1956,7 +1985,7 @@ class Ot {
1956
1985
  * Get the currently active app definition.
1957
1986
  */
1958
1987
  getActiveApp() {
1959
- return this.activeAppId ? se.get(this.activeAppId) ?? null : null;
1988
+ return this.activeAppId ? ie.get(this.activeAppId) ?? null : null;
1960
1989
  }
1961
1990
  /**
1962
1991
  * Get all running apps.
@@ -1982,14 +2011,14 @@ class Ot {
1982
2011
  this.listeners.forEach((t) => t());
1983
2012
  }
1984
2013
  }
1985
- const V = new Ot(), je = ie(null);
1986
- function Ft() {
1987
- const e = Z(je);
2014
+ const Y = new Ut(), Xe = ce(null);
2015
+ function qt() {
2016
+ const e = te(Xe);
1988
2017
  if (!e)
1989
2018
  throw new Error("useApp must be used inside an App");
1990
2019
  return e;
1991
2020
  }
1992
- function Vt({ size: e = 16 }) {
2021
+ function Xt({ size: e = 16 }) {
1993
2022
  return /* @__PURE__ */ k(
1994
2023
  "svg",
1995
2024
  {
@@ -2008,7 +2037,7 @@ function Vt({ size: e = 16 }) {
2008
2037
  }
2009
2038
  );
2010
2039
  }
2011
- function jt({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
2040
+ function Jt({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
2012
2041
  return /* @__PURE__ */ k("div", { className: "nc-app-title-bar", children: [
2013
2042
  /* @__PURE__ */ k("div", { className: "nc-app-title-bar-left", children: [
2014
2043
  n && !o && /* @__PURE__ */ s(
@@ -2018,18 +2047,18 @@ function jt({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o })
2018
2047
  onClick: n,
2019
2048
  title: "Back",
2020
2049
  "aria-label": "Go back",
2021
- children: /* @__PURE__ */ s(Vt, { size: 16 })
2050
+ children: /* @__PURE__ */ s(Xt, { size: 16 })
2022
2051
  }
2023
2052
  ),
2024
2053
  /* @__PURE__ */ s("span", { className: "nc-app-title-bar-title", children: e })
2025
2054
  ] }),
2026
2055
  /* @__PURE__ */ k("div", { className: "nc-app-title-bar-right", children: [
2027
2056
  r && /* @__PURE__ */ s("div", { className: "nc-app-title-bar-toolbar", children: r }),
2028
- /* @__PURE__ */ s(Oe, { onClick: t, "aria-label": "Close application" })
2057
+ /* @__PURE__ */ s(_e, { onClick: t, "aria-label": "Close application" })
2029
2058
  ] })
2030
2059
  ] });
2031
2060
  }
2032
- class Gt extends Ne.Component {
2061
+ class Zt extends $e.Component {
2033
2062
  constructor(t) {
2034
2063
  super(t), this.state = { hasError: !1 };
2035
2064
  }
@@ -2062,13 +2091,13 @@ class Gt extends Ne.Component {
2062
2091
  ) : this.props.children;
2063
2092
  }
2064
2093
  }
2065
- function Ge({ appId: e, isActive: t, onClose: n }) {
2066
- const { t: r } = U(), o = se.get(e), [i, a] = E(""), [c, l] = E(null), [u, f] = E(null), [v, d] = E(!1), [m, y] = E(!1);
2067
- Ne.useEffect(() => {
2068
- o != null && o.titleKey && a(r(o.titleKey));
2094
+ function Je({ appId: e, isActive: t, onClose: n }) {
2095
+ const { t: r } = X(), o = ie.get(e), [i, c] = R(""), [a, l] = R(null), [u, f] = R(null), [v, d] = R(!1), [m, w] = R(!1);
2096
+ $e.useEffect(() => {
2097
+ o != null && o.titleKey && c(r(o.titleKey));
2069
2098
  }, [o, r]);
2070
- const w = O((x) => {
2071
- a(x);
2099
+ const y = O((x) => {
2100
+ c(x);
2072
2101
  }, []), g = O((x) => {
2073
2102
  l(() => x);
2074
2103
  }, []), N = O(() => {
@@ -2080,9 +2109,9 @@ function Ge({ appId: e, isActive: t, onClose: n }) {
2080
2109
  }, []), h = O((x) => {
2081
2110
  d(x);
2082
2111
  }, []), A = O((x) => {
2083
- y(x);
2084
- }, []), C = be(() => ({
2085
- setTitle: w,
2112
+ w(x);
2113
+ }, []), C = we(() => ({
2114
+ setTitle: y,
2086
2115
  setBackHandler: g,
2087
2116
  clearBackHandler: N,
2088
2117
  setToolbar: b,
@@ -2090,10 +2119,10 @@ function Ge({ appId: e, isActive: t, onClose: n }) {
2090
2119
  setHideBackButton: h,
2091
2120
  setHideTitleBar: A,
2092
2121
  close: n
2093
- }), [w, g, N, b, p, h, A, n]);
2122
+ }), [y, g, N, b, p, h, A, n]);
2094
2123
  if (!o)
2095
2124
  return null;
2096
- const z = o.component, T = !o.hideTitleBar && !m;
2125
+ const T = o.component, L = !o.hideTitleBar && !m;
2097
2126
  return /* @__PURE__ */ k(
2098
2127
  "div",
2099
2128
  {
@@ -2104,12 +2133,12 @@ function Ge({ appId: e, isActive: t, onClose: n }) {
2104
2133
  minHeight: 0
2105
2134
  },
2106
2135
  children: [
2107
- T && /* @__PURE__ */ s(
2108
- jt,
2136
+ L && /* @__PURE__ */ s(
2137
+ Jt,
2109
2138
  {
2110
2139
  title: i,
2111
2140
  onClose: n,
2112
- onBack: c ?? void 0,
2141
+ onBack: a ?? void 0,
2113
2142
  toolbar: u,
2114
2143
  hideBackButton: v
2115
2144
  }
@@ -2117,7 +2146,7 @@ function Ge({ appId: e, isActive: t, onClose: n }) {
2117
2146
  /* @__PURE__ */ s(
2118
2147
  "div",
2119
2148
  {
2120
- className: T ? "nc-app-content-wrapper" : "",
2149
+ className: L ? "nc-app-content-wrapper" : "",
2121
2150
  style: {
2122
2151
  padding: o.padding,
2123
2152
  flex: 1,
@@ -2127,8 +2156,8 @@ function Ge({ appId: e, isActive: t, onClose: n }) {
2127
2156
  backgroundColor: "var(--nc-bg-tertiary)",
2128
2157
  position: "relative"
2129
2158
  },
2130
- children: /* @__PURE__ */ s(je.Provider, { value: C, children: /* @__PURE__ */ s(Gt, { appId: e, children: /* @__PURE__ */ s(
2131
- gt,
2159
+ children: /* @__PURE__ */ s(Xe.Provider, { value: C, children: /* @__PURE__ */ s(Zt, { appId: e, children: /* @__PURE__ */ s(
2160
+ At,
2132
2161
  {
2133
2162
  fallback: /* @__PURE__ */ s(
2134
2163
  "div",
@@ -2139,10 +2168,10 @@ function Ge({ appId: e, isActive: t, onClose: n }) {
2139
2168
  justifyContent: "center",
2140
2169
  flex: 1
2141
2170
  },
2142
- children: /* @__PURE__ */ s(He, {})
2171
+ children: /* @__PURE__ */ s(Ke, {})
2143
2172
  }
2144
2173
  ),
2145
- children: /* @__PURE__ */ s(z, {})
2174
+ children: /* @__PURE__ */ s(T, {})
2146
2175
  }
2147
2176
  ) }) })
2148
2177
  }
@@ -2151,21 +2180,21 @@ function Ge({ appId: e, isActive: t, onClose: n }) {
2151
2180
  }
2152
2181
  );
2153
2182
  }
2154
- const me = 768, ge = 1024, Ye = {
2183
+ const be = 768, ve = 1024, Ze = {
2155
2184
  isMobile: !1,
2156
2185
  isTablet: !1,
2157
2186
  isDesktop: !0,
2158
2187
  width: typeof window < "u" ? window.innerWidth : 1024,
2159
2188
  height: typeof window < "u" ? window.innerHeight : 768
2160
- }, Ke = ie(Ye);
2161
- function sr({ children: e }) {
2162
- const [t, n] = E(() => {
2163
- if (typeof window > "u") return Ye;
2189
+ }, Qe = ce(Ze);
2190
+ function hr({ children: e }) {
2191
+ const [t, n] = R(() => {
2192
+ if (typeof window > "u") return Ze;
2164
2193
  const r = window.innerWidth, o = window.innerHeight;
2165
2194
  return {
2166
- isMobile: r < me,
2167
- isTablet: r >= me && r < ge,
2168
- isDesktop: r >= ge,
2195
+ isMobile: r < be,
2196
+ isTablet: r >= be && r < ve,
2197
+ isDesktop: r >= ve,
2169
2198
  width: r,
2170
2199
  height: o
2171
2200
  };
@@ -2174,54 +2203,54 @@ function sr({ children: e }) {
2174
2203
  const r = () => {
2175
2204
  const o = window.innerWidth, i = window.innerHeight;
2176
2205
  n({
2177
- isMobile: o < me,
2178
- isTablet: o >= me && o < ge,
2179
- isDesktop: o >= ge,
2206
+ isMobile: o < be,
2207
+ isTablet: o >= be && o < ve,
2208
+ isDesktop: o >= ve,
2180
2209
  width: o,
2181
2210
  height: i
2182
2211
  });
2183
2212
  };
2184
2213
  return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
2185
- }, []), /* @__PURE__ */ s(Ke.Provider, { value: t, children: e });
2214
+ }, []), /* @__PURE__ */ s(Qe.Provider, { value: t, children: e });
2186
2215
  }
2187
- function _e() {
2188
- return Z(Ke);
2216
+ function et() {
2217
+ return te(Qe);
2189
2218
  }
2190
- const Ae = "-", Yt = (e) => {
2191
- const t = _t(e), {
2219
+ const Me = "-", Qt = (e) => {
2220
+ const t = tn(e), {
2192
2221
  conflictingClassGroups: n,
2193
2222
  conflictingClassGroupModifiers: r
2194
2223
  } = e;
2195
2224
  return {
2196
- getClassGroupId: (a) => {
2197
- const c = a.split(Ae);
2198
- return c[0] === "" && c.length !== 1 && c.shift(), Ue(c, t) || Kt(a);
2225
+ getClassGroupId: (c) => {
2226
+ const a = c.split(Me);
2227
+ return a[0] === "" && a.length !== 1 && a.shift(), tt(a, t) || en(c);
2199
2228
  },
2200
- getConflictingClassGroupIds: (a, c) => {
2201
- const l = n[a] || [];
2202
- return c && r[a] ? [...l, ...r[a]] : l;
2229
+ getConflictingClassGroupIds: (c, a) => {
2230
+ const l = n[c] || [];
2231
+ return a && r[c] ? [...l, ...r[c]] : l;
2203
2232
  }
2204
2233
  };
2205
- }, Ue = (e, t) => {
2206
- var a;
2234
+ }, tt = (e, t) => {
2235
+ var c;
2207
2236
  if (e.length === 0)
2208
2237
  return t.classGroupId;
2209
- const n = e[0], r = t.nextPart.get(n), o = r ? Ue(e.slice(1), r) : void 0;
2238
+ const n = e[0], r = t.nextPart.get(n), o = r ? tt(e.slice(1), r) : void 0;
2210
2239
  if (o)
2211
2240
  return o;
2212
2241
  if (t.validators.length === 0)
2213
2242
  return;
2214
- const i = e.join(Ae);
2215
- return (a = t.validators.find(({
2216
- validator: c
2217
- }) => c(i))) == null ? void 0 : a.classGroupId;
2218
- }, De = /^\[(.+)\]$/, Kt = (e) => {
2219
- if (De.test(e)) {
2220
- const t = De.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
2243
+ const i = e.join(Me);
2244
+ return (c = t.validators.find(({
2245
+ validator: a
2246
+ }) => a(i))) == null ? void 0 : c.classGroupId;
2247
+ }, Ge = /^\[(.+)\]$/, en = (e) => {
2248
+ if (Ge.test(e)) {
2249
+ const t = Ge.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
2221
2250
  if (n)
2222
2251
  return "arbitrary.." + n;
2223
2252
  }
2224
- }, _t = (e) => {
2253
+ }, tn = (e) => {
2225
2254
  const {
2226
2255
  theme: t,
2227
2256
  prefix: n
@@ -2229,19 +2258,19 @@ const Ae = "-", Yt = (e) => {
2229
2258
  nextPart: /* @__PURE__ */ new Map(),
2230
2259
  validators: []
2231
2260
  };
2232
- return qt(Object.entries(e.classGroups), n).forEach(([i, a]) => {
2233
- xe(a, r, i, t);
2261
+ return rn(Object.entries(e.classGroups), n).forEach(([i, c]) => {
2262
+ Se(c, r, i, t);
2234
2263
  }), r;
2235
- }, xe = (e, t, n, r) => {
2264
+ }, Se = (e, t, n, r) => {
2236
2265
  e.forEach((o) => {
2237
2266
  if (typeof o == "string") {
2238
- const i = o === "" ? t : We(t, o);
2267
+ const i = o === "" ? t : Ye(t, o);
2239
2268
  i.classGroupId = n;
2240
2269
  return;
2241
2270
  }
2242
2271
  if (typeof o == "function") {
2243
- if (Ut(o)) {
2244
- xe(o(r), t, n, r);
2272
+ if (nn(o)) {
2273
+ Se(o(r), t, n, r);
2245
2274
  return;
2246
2275
  }
2247
2276
  t.validators.push({
@@ -2250,22 +2279,22 @@ const Ae = "-", Yt = (e) => {
2250
2279
  });
2251
2280
  return;
2252
2281
  }
2253
- Object.entries(o).forEach(([i, a]) => {
2254
- xe(a, We(t, i), n, r);
2282
+ Object.entries(o).forEach(([i, c]) => {
2283
+ Se(c, Ye(t, i), n, r);
2255
2284
  });
2256
2285
  });
2257
- }, We = (e, t) => {
2286
+ }, Ye = (e, t) => {
2258
2287
  let n = e;
2259
- return t.split(Ae).forEach((r) => {
2288
+ return t.split(Me).forEach((r) => {
2260
2289
  n.nextPart.has(r) || n.nextPart.set(r, {
2261
2290
  nextPart: /* @__PURE__ */ new Map(),
2262
2291
  validators: []
2263
2292
  }), n = n.nextPart.get(r);
2264
2293
  }), n;
2265
- }, Ut = (e) => e.isThemeGetter, qt = (e, t) => t ? e.map(([n, r]) => {
2266
- 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);
2294
+ }, nn = (e) => e.isThemeGetter, rn = (e, t) => t ? e.map(([n, r]) => {
2295
+ const o = r.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([c, a]) => [t + c, a])) : i);
2267
2296
  return [n, o];
2268
- }) : e, Xt = (e) => {
2297
+ }) : e, on = (e) => {
2269
2298
  if (e < 1)
2270
2299
  return {
2271
2300
  get: () => {
@@ -2274,33 +2303,33 @@ const Ae = "-", Yt = (e) => {
2274
2303
  }
2275
2304
  };
2276
2305
  let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
2277
- const o = (i, a) => {
2278
- n.set(i, a), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
2306
+ const o = (i, c) => {
2307
+ n.set(i, c), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
2279
2308
  };
2280
2309
  return {
2281
2310
  get(i) {
2282
- let a = n.get(i);
2283
- if (a !== void 0)
2284
- return a;
2285
- if ((a = r.get(i)) !== void 0)
2286
- return o(i, a), a;
2311
+ let c = n.get(i);
2312
+ if (c !== void 0)
2313
+ return c;
2314
+ if ((c = r.get(i)) !== void 0)
2315
+ return o(i, c), c;
2287
2316
  },
2288
- set(i, a) {
2289
- n.has(i) ? n.set(i, a) : o(i, a);
2317
+ set(i, c) {
2318
+ n.has(i) ? n.set(i, c) : o(i, c);
2290
2319
  }
2291
2320
  };
2292
- }, qe = "!", Jt = (e) => {
2321
+ }, nt = "!", sn = (e) => {
2293
2322
  const {
2294
2323
  separator: t,
2295
2324
  experimentalParseClassName: n
2296
- } = e, r = t.length === 1, o = t[0], i = t.length, a = (c) => {
2325
+ } = e, r = t.length === 1, o = t[0], i = t.length, c = (a) => {
2297
2326
  const l = [];
2298
2327
  let u = 0, f = 0, v;
2299
- for (let g = 0; g < c.length; g++) {
2300
- let N = c[g];
2328
+ for (let g = 0; g < a.length; g++) {
2329
+ let N = a[g];
2301
2330
  if (u === 0) {
2302
- if (N === o && (r || c.slice(g, g + i) === t)) {
2303
- l.push(c.slice(f, g)), f = g + i;
2331
+ if (N === o && (r || a.slice(g, g + i) === t)) {
2332
+ l.push(a.slice(f, g)), f = g + i;
2304
2333
  continue;
2305
2334
  }
2306
2335
  if (N === "/") {
@@ -2310,19 +2339,19 @@ const Ae = "-", Yt = (e) => {
2310
2339
  }
2311
2340
  N === "[" ? u++ : N === "]" && u--;
2312
2341
  }
2313
- const d = l.length === 0 ? c : c.substring(f), m = d.startsWith(qe), y = m ? d.substring(1) : d, w = v && v > f ? v - f : void 0;
2342
+ const d = l.length === 0 ? a : a.substring(f), m = d.startsWith(nt), w = m ? d.substring(1) : d, y = v && v > f ? v - f : void 0;
2314
2343
  return {
2315
2344
  modifiers: l,
2316
2345
  hasImportantModifier: m,
2317
- baseClassName: y,
2318
- maybePostfixModifierPosition: w
2346
+ baseClassName: w,
2347
+ maybePostfixModifierPosition: y
2319
2348
  };
2320
2349
  };
2321
- return n ? (c) => n({
2322
- className: c,
2323
- parseClassName: a
2324
- }) : a;
2325
- }, Zt = (e) => {
2350
+ return n ? (a) => n({
2351
+ className: a,
2352
+ parseClassName: c
2353
+ }) : c;
2354
+ }, cn = (e) => {
2326
2355
  if (e.length <= 1)
2327
2356
  return e;
2328
2357
  const t = [];
@@ -2330,120 +2359,120 @@ const Ae = "-", Yt = (e) => {
2330
2359
  return e.forEach((r) => {
2331
2360
  r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r);
2332
2361
  }), t.push(...n.sort()), t;
2333
- }, Qt = (e) => ({
2334
- cache: Xt(e.cacheSize),
2335
- parseClassName: Jt(e),
2336
- ...Yt(e)
2337
- }), en = /\s+/, tn = (e, t) => {
2362
+ }, an = (e) => ({
2363
+ cache: on(e.cacheSize),
2364
+ parseClassName: sn(e),
2365
+ ...Qt(e)
2366
+ }), ln = /\s+/, dn = (e, t) => {
2338
2367
  const {
2339
2368
  parseClassName: n,
2340
2369
  getClassGroupId: r,
2341
2370
  getConflictingClassGroupIds: o
2342
- } = t, i = [], a = e.trim().split(en);
2343
- let c = "";
2344
- for (let l = a.length - 1; l >= 0; l -= 1) {
2345
- const u = a[l], {
2371
+ } = t, i = [], c = e.trim().split(ln);
2372
+ let a = "";
2373
+ for (let l = c.length - 1; l >= 0; l -= 1) {
2374
+ const u = c[l], {
2346
2375
  modifiers: f,
2347
2376
  hasImportantModifier: v,
2348
2377
  baseClassName: d,
2349
2378
  maybePostfixModifierPosition: m
2350
2379
  } = n(u);
2351
- let y = !!m, w = r(y ? d.substring(0, m) : d);
2352
- if (!w) {
2353
- if (!y) {
2354
- c = u + (c.length > 0 ? " " + c : c);
2380
+ let w = !!m, y = r(w ? d.substring(0, m) : d);
2381
+ if (!y) {
2382
+ if (!w) {
2383
+ a = u + (a.length > 0 ? " " + a : a);
2355
2384
  continue;
2356
2385
  }
2357
- if (w = r(d), !w) {
2358
- c = u + (c.length > 0 ? " " + c : c);
2386
+ if (y = r(d), !y) {
2387
+ a = u + (a.length > 0 ? " " + a : a);
2359
2388
  continue;
2360
2389
  }
2361
- y = !1;
2390
+ w = !1;
2362
2391
  }
2363
- const g = Zt(f).join(":"), N = v ? g + qe : g, b = N + w;
2392
+ const g = cn(f).join(":"), N = v ? g + nt : g, b = N + y;
2364
2393
  if (i.includes(b))
2365
2394
  continue;
2366
2395
  i.push(b);
2367
- const p = o(w, y);
2396
+ const p = o(y, w);
2368
2397
  for (let h = 0; h < p.length; ++h) {
2369
2398
  const A = p[h];
2370
2399
  i.push(N + A);
2371
2400
  }
2372
- c = u + (c.length > 0 ? " " + c : c);
2401
+ a = u + (a.length > 0 ? " " + a : a);
2373
2402
  }
2374
- return c;
2403
+ return a;
2375
2404
  };
2376
- function nn() {
2405
+ function un() {
2377
2406
  let e = 0, t, n, r = "";
2378
2407
  for (; e < arguments.length; )
2379
- (t = arguments[e++]) && (n = Xe(t)) && (r && (r += " "), r += n);
2408
+ (t = arguments[e++]) && (n = rt(t)) && (r && (r += " "), r += n);
2380
2409
  return r;
2381
2410
  }
2382
- const Xe = (e) => {
2411
+ const rt = (e) => {
2383
2412
  if (typeof e == "string")
2384
2413
  return e;
2385
2414
  let t, n = "";
2386
2415
  for (let r = 0; r < e.length; r++)
2387
- e[r] && (t = Xe(e[r])) && (n && (n += " "), n += t);
2416
+ e[r] && (t = rt(e[r])) && (n && (n += " "), n += t);
2388
2417
  return n;
2389
2418
  };
2390
- function rn(e, ...t) {
2391
- let n, r, o, i = a;
2392
- function a(l) {
2419
+ function pn(e, ...t) {
2420
+ let n, r, o, i = c;
2421
+ function c(l) {
2393
2422
  const u = t.reduce((f, v) => v(f), e());
2394
- return n = Qt(u), r = n.cache.get, o = n.cache.set, i = c, c(l);
2423
+ return n = an(u), r = n.cache.get, o = n.cache.set, i = a, a(l);
2395
2424
  }
2396
- function c(l) {
2425
+ function a(l) {
2397
2426
  const u = r(l);
2398
2427
  if (u)
2399
2428
  return u;
2400
- const f = tn(l, n);
2429
+ const f = dn(l, n);
2401
2430
  return o(l, f), f;
2402
2431
  }
2403
2432
  return function() {
2404
- return i(nn.apply(null, arguments));
2433
+ return i(un.apply(null, arguments));
2405
2434
  };
2406
2435
  }
2407
- const D = (e) => {
2436
+ const W = (e) => {
2408
2437
  const t = (n) => n[e] || [];
2409
2438
  return t.isThemeGetter = !0, t;
2410
- }, Je = /^\[(?:([a-z-]+):)?(.+)\]$/i, on = /^\d+\/\d+$/, sn = /* @__PURE__ */ new Set(["px", "full", "screen"]), cn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, an = /\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$/, ln = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, dn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, un = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Y = (e) => oe(e) || sn.has(e) || on.test(e), X = (e) => ce(e, "length", wn), oe = (e) => !!e && !Number.isNaN(Number(e)), ve = (e) => ce(e, "number", oe), le = (e) => !!e && Number.isInteger(Number(e)), pn = (e) => e.endsWith("%") && oe(e.slice(0, -1)), M = (e) => Je.test(e), J = (e) => cn.test(e), fn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), hn = (e) => ce(e, fn, Ze), mn = (e) => ce(e, "position", Ze), gn = /* @__PURE__ */ new Set(["image", "url"]), bn = (e) => ce(e, gn, xn), vn = (e) => ce(e, "", yn), de = () => !0, ce = (e, t, n) => {
2411
- const r = Je.exec(e);
2439
+ }, ot = /^\[(?:([a-z-]+):)?(.+)\]$/i, fn = /^\d+\/\d+$/, hn = /* @__PURE__ */ new Set(["px", "full", "screen"]), mn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, gn = /\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$/, bn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, vn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, _ = (e) => se(e) || hn.has(e) || fn.test(e), Q = (e) => ae(e, "length", $n), se = (e) => !!e && !Number.isNaN(Number(e)), ke = (e) => ae(e, "number", se), le = (e) => !!e && Number.isInteger(Number(e)), yn = (e) => e.endsWith("%") && se(e.slice(0, -1)), M = (e) => ot.test(e), ee = (e) => mn.test(e), xn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), kn = (e) => ae(e, xn, st), Nn = (e) => ae(e, "position", st), An = /* @__PURE__ */ new Set(["image", "url"]), Sn = (e) => ae(e, An, In), Cn = (e) => ae(e, "", Mn), de = () => !0, ae = (e, t, n) => {
2440
+ const r = ot.exec(e);
2412
2441
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
2413
- }, wn = (e) => (
2442
+ }, $n = (e) => (
2414
2443
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
2415
2444
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2416
2445
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2417
- an.test(e) && !ln.test(e)
2418
- ), Ze = () => !1, yn = (e) => dn.test(e), xn = (e) => un.test(e), kn = () => {
2419
- 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"), l = D("contrast"), u = D("grayscale"), f = D("hueRotate"), v = D("invert"), d = D("gap"), m = D("gradientColorStops"), y = D("gradientColorStopPositions"), w = D("inset"), g = D("margin"), N = D("opacity"), b = D("padding"), p = D("saturate"), h = D("scale"), A = D("sepia"), C = D("skew"), z = D("space"), T = D("translate"), x = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", M, t], $ = () => [M, t], L = () => ["", Y, X], F = () => ["auto", oe, M], Q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["solid", "dashed", "dotted", "double", "none"], R = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], W = () => ["", "0", M], ee = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [oe, M];
2446
+ gn.test(e) && !bn.test(e)
2447
+ ), st = () => !1, Mn = (e) => vn.test(e), In = (e) => wn.test(e), Rn = () => {
2448
+ const e = W("colors"), t = W("spacing"), n = W("blur"), r = W("brightness"), o = W("borderColor"), i = W("borderRadius"), c = W("borderSpacing"), a = W("borderWidth"), l = W("contrast"), u = W("grayscale"), f = W("hueRotate"), v = W("invert"), d = W("gap"), m = W("gradientColorStops"), w = W("gradientColorStopPositions"), y = W("inset"), g = W("margin"), N = W("opacity"), b = W("padding"), p = W("saturate"), h = W("scale"), A = W("sepia"), C = W("skew"), T = W("space"), L = W("translate"), x = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", M, t], $ = () => [M, t], z = () => ["", _, Q], H = () => ["auto", se, M], K = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], E = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], P = () => ["", "0", M], re = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [se, M];
2420
2449
  return {
2421
2450
  cacheSize: 500,
2422
2451
  separator: ":",
2423
2452
  theme: {
2424
2453
  colors: [de],
2425
- spacing: [Y, X],
2426
- blur: ["none", "", J, M],
2427
- brightness: j(),
2454
+ spacing: [_, Q],
2455
+ blur: ["none", "", ee, M],
2456
+ brightness: F(),
2428
2457
  borderColor: [e],
2429
- borderRadius: ["none", "", "full", J, M],
2458
+ borderRadius: ["none", "", "full", ee, M],
2430
2459
  borderSpacing: $(),
2431
- borderWidth: L(),
2432
- contrast: j(),
2433
- grayscale: W(),
2434
- hueRotate: j(),
2435
- invert: W(),
2460
+ borderWidth: z(),
2461
+ contrast: F(),
2462
+ grayscale: P(),
2463
+ hueRotate: F(),
2464
+ invert: P(),
2436
2465
  gap: $(),
2437
2466
  gradientColorStops: [e],
2438
- gradientColorStopPositions: [pn, X],
2467
+ gradientColorStopPositions: [yn, Q],
2439
2468
  inset: S(),
2440
2469
  margin: S(),
2441
- opacity: j(),
2470
+ opacity: F(),
2442
2471
  padding: $(),
2443
- saturate: j(),
2444
- scale: j(),
2445
- sepia: W(),
2446
- skew: j(),
2472
+ saturate: F(),
2473
+ scale: F(),
2474
+ sepia: P(),
2475
+ skew: F(),
2447
2476
  space: $(),
2448
2477
  translate: $()
2449
2478
  },
@@ -2466,21 +2495,21 @@ const D = (e) => {
2466
2495
  * @see https://tailwindcss.com/docs/columns
2467
2496
  */
2468
2497
  columns: [{
2469
- columns: [J]
2498
+ columns: [ee]
2470
2499
  }],
2471
2500
  /**
2472
2501
  * Break After
2473
2502
  * @see https://tailwindcss.com/docs/break-after
2474
2503
  */
2475
2504
  "break-after": [{
2476
- "break-after": ee()
2505
+ "break-after": re()
2477
2506
  }],
2478
2507
  /**
2479
2508
  * Break Before
2480
2509
  * @see https://tailwindcss.com/docs/break-before
2481
2510
  */
2482
2511
  "break-before": [{
2483
- "break-before": ee()
2512
+ "break-before": re()
2484
2513
  }],
2485
2514
  /**
2486
2515
  * Break Inside
@@ -2539,7 +2568,7 @@ const D = (e) => {
2539
2568
  * @see https://tailwindcss.com/docs/object-position
2540
2569
  */
2541
2570
  "object-position": [{
2542
- object: [...Q(), M]
2571
+ object: [...K(), M]
2543
2572
  }],
2544
2573
  /**
2545
2574
  * Overflow
@@ -2593,63 +2622,63 @@ const D = (e) => {
2593
2622
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2594
2623
  */
2595
2624
  inset: [{
2596
- inset: [w]
2625
+ inset: [y]
2597
2626
  }],
2598
2627
  /**
2599
2628
  * Right / Left
2600
2629
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2601
2630
  */
2602
2631
  "inset-x": [{
2603
- "inset-x": [w]
2632
+ "inset-x": [y]
2604
2633
  }],
2605
2634
  /**
2606
2635
  * Top / Bottom
2607
2636
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2608
2637
  */
2609
2638
  "inset-y": [{
2610
- "inset-y": [w]
2639
+ "inset-y": [y]
2611
2640
  }],
2612
2641
  /**
2613
2642
  * Start
2614
2643
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2615
2644
  */
2616
2645
  start: [{
2617
- start: [w]
2646
+ start: [y]
2618
2647
  }],
2619
2648
  /**
2620
2649
  * End
2621
2650
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2622
2651
  */
2623
2652
  end: [{
2624
- end: [w]
2653
+ end: [y]
2625
2654
  }],
2626
2655
  /**
2627
2656
  * Top
2628
2657
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2629
2658
  */
2630
2659
  top: [{
2631
- top: [w]
2660
+ top: [y]
2632
2661
  }],
2633
2662
  /**
2634
2663
  * Right
2635
2664
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2636
2665
  */
2637
2666
  right: [{
2638
- right: [w]
2667
+ right: [y]
2639
2668
  }],
2640
2669
  /**
2641
2670
  * Bottom
2642
2671
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2643
2672
  */
2644
2673
  bottom: [{
2645
- bottom: [w]
2674
+ bottom: [y]
2646
2675
  }],
2647
2676
  /**
2648
2677
  * Left
2649
2678
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2650
2679
  */
2651
2680
  left: [{
2652
- left: [w]
2681
+ left: [y]
2653
2682
  }],
2654
2683
  /**
2655
2684
  * Visibility
@@ -2697,14 +2726,14 @@ const D = (e) => {
2697
2726
  * @see https://tailwindcss.com/docs/flex-grow
2698
2727
  */
2699
2728
  grow: [{
2700
- grow: W()
2729
+ grow: P()
2701
2730
  }],
2702
2731
  /**
2703
2732
  * Flex Shrink
2704
2733
  * @see https://tailwindcss.com/docs/flex-shrink
2705
2734
  */
2706
2735
  shrink: [{
2707
- shrink: W()
2736
+ shrink: P()
2708
2737
  }],
2709
2738
  /**
2710
2739
  * Order
@@ -2734,14 +2763,14 @@ const D = (e) => {
2734
2763
  * @see https://tailwindcss.com/docs/grid-column
2735
2764
  */
2736
2765
  "col-start": [{
2737
- "col-start": F()
2766
+ "col-start": H()
2738
2767
  }],
2739
2768
  /**
2740
2769
  * Grid Column End
2741
2770
  * @see https://tailwindcss.com/docs/grid-column
2742
2771
  */
2743
2772
  "col-end": [{
2744
- "col-end": F()
2773
+ "col-end": H()
2745
2774
  }],
2746
2775
  /**
2747
2776
  * Grid Template Rows
@@ -2764,14 +2793,14 @@ const D = (e) => {
2764
2793
  * @see https://tailwindcss.com/docs/grid-row
2765
2794
  */
2766
2795
  "row-start": [{
2767
- "row-start": F()
2796
+ "row-start": H()
2768
2797
  }],
2769
2798
  /**
2770
2799
  * Grid Row End
2771
2800
  * @see https://tailwindcss.com/docs/grid-row
2772
2801
  */
2773
2802
  "row-end": [{
2774
- "row-end": F()
2803
+ "row-end": H()
2775
2804
  }],
2776
2805
  /**
2777
2806
  * Grid Auto Flow
@@ -2820,7 +2849,7 @@ const D = (e) => {
2820
2849
  * @see https://tailwindcss.com/docs/justify-content
2821
2850
  */
2822
2851
  "justify-content": [{
2823
- justify: ["normal", ...P()]
2852
+ justify: ["normal", ...D()]
2824
2853
  }],
2825
2854
  /**
2826
2855
  * Justify Items
@@ -2841,7 +2870,7 @@ const D = (e) => {
2841
2870
  * @see https://tailwindcss.com/docs/align-content
2842
2871
  */
2843
2872
  "align-content": [{
2844
- content: ["normal", ...P(), "baseline"]
2873
+ content: ["normal", ...D(), "baseline"]
2845
2874
  }],
2846
2875
  /**
2847
2876
  * Align Items
@@ -2862,7 +2891,7 @@ const D = (e) => {
2862
2891
  * @see https://tailwindcss.com/docs/place-content
2863
2892
  */
2864
2893
  "place-content": [{
2865
- "place-content": [...P(), "baseline"]
2894
+ "place-content": [...D(), "baseline"]
2866
2895
  }],
2867
2896
  /**
2868
2897
  * Place Items
@@ -3010,7 +3039,7 @@ const D = (e) => {
3010
3039
  * @see https://tailwindcss.com/docs/space
3011
3040
  */
3012
3041
  "space-x": [{
3013
- "space-x": [z]
3042
+ "space-x": [T]
3014
3043
  }],
3015
3044
  /**
3016
3045
  * Space Between X Reverse
@@ -3022,7 +3051,7 @@ const D = (e) => {
3022
3051
  * @see https://tailwindcss.com/docs/space
3023
3052
  */
3024
3053
  "space-y": [{
3025
- "space-y": [z]
3054
+ "space-y": [T]
3026
3055
  }],
3027
3056
  /**
3028
3057
  * Space Between Y Reverse
@@ -3050,8 +3079,8 @@ const D = (e) => {
3050
3079
  */
3051
3080
  "max-w": [{
3052
3081
  "max-w": [M, t, "none", "full", "min", "max", "fit", "prose", {
3053
- screen: [J]
3054
- }, J]
3082
+ screen: [ee]
3083
+ }, ee]
3055
3084
  }],
3056
3085
  /**
3057
3086
  * Height
@@ -3087,7 +3116,7 @@ const D = (e) => {
3087
3116
  * @see https://tailwindcss.com/docs/font-size
3088
3117
  */
3089
3118
  "font-size": [{
3090
- text: ["base", J, X]
3119
+ text: ["base", ee, Q]
3091
3120
  }],
3092
3121
  /**
3093
3122
  * Font Smoothing
@@ -3104,7 +3133,7 @@ const D = (e) => {
3104
3133
  * @see https://tailwindcss.com/docs/font-weight
3105
3134
  */
3106
3135
  "font-weight": [{
3107
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", ve]
3136
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", ke]
3108
3137
  }],
3109
3138
  /**
3110
3139
  * Font Family
@@ -3155,14 +3184,14 @@ const D = (e) => {
3155
3184
  * @see https://tailwindcss.com/docs/line-clamp
3156
3185
  */
3157
3186
  "line-clamp": [{
3158
- "line-clamp": ["none", oe, ve]
3187
+ "line-clamp": ["none", se, ke]
3159
3188
  }],
3160
3189
  /**
3161
3190
  * Line Height
3162
3191
  * @see https://tailwindcss.com/docs/line-height
3163
3192
  */
3164
3193
  leading: [{
3165
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Y, M]
3194
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", _, M]
3166
3195
  }],
3167
3196
  /**
3168
3197
  * List Style Image
@@ -3231,21 +3260,21 @@ const D = (e) => {
3231
3260
  * @see https://tailwindcss.com/docs/text-decoration-style
3232
3261
  */
3233
3262
  "text-decoration-style": [{
3234
- decoration: [...G(), "wavy"]
3263
+ decoration: [...j(), "wavy"]
3235
3264
  }],
3236
3265
  /**
3237
3266
  * Text Decoration Thickness
3238
3267
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3239
3268
  */
3240
3269
  "text-decoration-thickness": [{
3241
- decoration: ["auto", "from-font", Y, X]
3270
+ decoration: ["auto", "from-font", _, Q]
3242
3271
  }],
3243
3272
  /**
3244
3273
  * Text Underline Offset
3245
3274
  * @see https://tailwindcss.com/docs/text-underline-offset
3246
3275
  */
3247
3276
  "underline-offset": [{
3248
- "underline-offset": ["auto", Y, M]
3277
+ "underline-offset": ["auto", _, M]
3249
3278
  }],
3250
3279
  /**
3251
3280
  * Text Decoration Color
@@ -3348,7 +3377,7 @@ const D = (e) => {
3348
3377
  * @see https://tailwindcss.com/docs/background-position
3349
3378
  */
3350
3379
  "bg-position": [{
3351
- bg: [...Q(), mn]
3380
+ bg: [...K(), Nn]
3352
3381
  }],
3353
3382
  /**
3354
3383
  * Background Repeat
@@ -3364,7 +3393,7 @@ const D = (e) => {
3364
3393
  * @see https://tailwindcss.com/docs/background-size
3365
3394
  */
3366
3395
  "bg-size": [{
3367
- bg: ["auto", "cover", "contain", hn]
3396
+ bg: ["auto", "cover", "contain", kn]
3368
3397
  }],
3369
3398
  /**
3370
3399
  * Background Image
@@ -3373,7 +3402,7 @@ const D = (e) => {
3373
3402
  "bg-image": [{
3374
3403
  bg: ["none", {
3375
3404
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
3376
- }, bn]
3405
+ }, Sn]
3377
3406
  }],
3378
3407
  /**
3379
3408
  * Background Color
@@ -3387,21 +3416,21 @@ const D = (e) => {
3387
3416
  * @see https://tailwindcss.com/docs/gradient-color-stops
3388
3417
  */
3389
3418
  "gradient-from-pos": [{
3390
- from: [y]
3419
+ from: [w]
3391
3420
  }],
3392
3421
  /**
3393
3422
  * Gradient Color Stops Via Position
3394
3423
  * @see https://tailwindcss.com/docs/gradient-color-stops
3395
3424
  */
3396
3425
  "gradient-via-pos": [{
3397
- via: [y]
3426
+ via: [w]
3398
3427
  }],
3399
3428
  /**
3400
3429
  * Gradient Color Stops To Position
3401
3430
  * @see https://tailwindcss.com/docs/gradient-color-stops
3402
3431
  */
3403
3432
  "gradient-to-pos": [{
3404
- to: [y]
3433
+ to: [w]
3405
3434
  }],
3406
3435
  /**
3407
3436
  * Gradient Color Stops From
@@ -3535,63 +3564,63 @@ const D = (e) => {
3535
3564
  * @see https://tailwindcss.com/docs/border-width
3536
3565
  */
3537
3566
  "border-w": [{
3538
- border: [c]
3567
+ border: [a]
3539
3568
  }],
3540
3569
  /**
3541
3570
  * Border Width X
3542
3571
  * @see https://tailwindcss.com/docs/border-width
3543
3572
  */
3544
3573
  "border-w-x": [{
3545
- "border-x": [c]
3574
+ "border-x": [a]
3546
3575
  }],
3547
3576
  /**
3548
3577
  * Border Width Y
3549
3578
  * @see https://tailwindcss.com/docs/border-width
3550
3579
  */
3551
3580
  "border-w-y": [{
3552
- "border-y": [c]
3581
+ "border-y": [a]
3553
3582
  }],
3554
3583
  /**
3555
3584
  * Border Width Start
3556
3585
  * @see https://tailwindcss.com/docs/border-width
3557
3586
  */
3558
3587
  "border-w-s": [{
3559
- "border-s": [c]
3588
+ "border-s": [a]
3560
3589
  }],
3561
3590
  /**
3562
3591
  * Border Width End
3563
3592
  * @see https://tailwindcss.com/docs/border-width
3564
3593
  */
3565
3594
  "border-w-e": [{
3566
- "border-e": [c]
3595
+ "border-e": [a]
3567
3596
  }],
3568
3597
  /**
3569
3598
  * Border Width Top
3570
3599
  * @see https://tailwindcss.com/docs/border-width
3571
3600
  */
3572
3601
  "border-w-t": [{
3573
- "border-t": [c]
3602
+ "border-t": [a]
3574
3603
  }],
3575
3604
  /**
3576
3605
  * Border Width Right
3577
3606
  * @see https://tailwindcss.com/docs/border-width
3578
3607
  */
3579
3608
  "border-w-r": [{
3580
- "border-r": [c]
3609
+ "border-r": [a]
3581
3610
  }],
3582
3611
  /**
3583
3612
  * Border Width Bottom
3584
3613
  * @see https://tailwindcss.com/docs/border-width
3585
3614
  */
3586
3615
  "border-w-b": [{
3587
- "border-b": [c]
3616
+ "border-b": [a]
3588
3617
  }],
3589
3618
  /**
3590
3619
  * Border Width Left
3591
3620
  * @see https://tailwindcss.com/docs/border-width
3592
3621
  */
3593
3622
  "border-w-l": [{
3594
- "border-l": [c]
3623
+ "border-l": [a]
3595
3624
  }],
3596
3625
  /**
3597
3626
  * Border Opacity
@@ -3605,14 +3634,14 @@ const D = (e) => {
3605
3634
  * @see https://tailwindcss.com/docs/border-style
3606
3635
  */
3607
3636
  "border-style": [{
3608
- border: [...G(), "hidden"]
3637
+ border: [...j(), "hidden"]
3609
3638
  }],
3610
3639
  /**
3611
3640
  * Divide Width X
3612
3641
  * @see https://tailwindcss.com/docs/divide-width
3613
3642
  */
3614
3643
  "divide-x": [{
3615
- "divide-x": [c]
3644
+ "divide-x": [a]
3616
3645
  }],
3617
3646
  /**
3618
3647
  * Divide Width X Reverse
@@ -3624,7 +3653,7 @@ const D = (e) => {
3624
3653
  * @see https://tailwindcss.com/docs/divide-width
3625
3654
  */
3626
3655
  "divide-y": [{
3627
- "divide-y": [c]
3656
+ "divide-y": [a]
3628
3657
  }],
3629
3658
  /**
3630
3659
  * Divide Width Y Reverse
@@ -3643,7 +3672,7 @@ const D = (e) => {
3643
3672
  * @see https://tailwindcss.com/docs/divide-style
3644
3673
  */
3645
3674
  "divide-style": [{
3646
- divide: G()
3675
+ divide: j()
3647
3676
  }],
3648
3677
  /**
3649
3678
  * Border Color
@@ -3720,21 +3749,21 @@ const D = (e) => {
3720
3749
  * @see https://tailwindcss.com/docs/outline-style
3721
3750
  */
3722
3751
  "outline-style": [{
3723
- outline: ["", ...G()]
3752
+ outline: ["", ...j()]
3724
3753
  }],
3725
3754
  /**
3726
3755
  * Outline Offset
3727
3756
  * @see https://tailwindcss.com/docs/outline-offset
3728
3757
  */
3729
3758
  "outline-offset": [{
3730
- "outline-offset": [Y, M]
3759
+ "outline-offset": [_, M]
3731
3760
  }],
3732
3761
  /**
3733
3762
  * Outline Width
3734
3763
  * @see https://tailwindcss.com/docs/outline-width
3735
3764
  */
3736
3765
  "outline-w": [{
3737
- outline: [Y, X]
3766
+ outline: [_, Q]
3738
3767
  }],
3739
3768
  /**
3740
3769
  * Outline Color
@@ -3748,7 +3777,7 @@ const D = (e) => {
3748
3777
  * @see https://tailwindcss.com/docs/ring-width
3749
3778
  */
3750
3779
  "ring-w": [{
3751
- ring: L()
3780
+ ring: z()
3752
3781
  }],
3753
3782
  /**
3754
3783
  * Ring Width Inset
@@ -3774,7 +3803,7 @@ const D = (e) => {
3774
3803
  * @see https://tailwindcss.com/docs/ring-offset-width
3775
3804
  */
3776
3805
  "ring-offset-w": [{
3777
- "ring-offset": [Y, X]
3806
+ "ring-offset": [_, Q]
3778
3807
  }],
3779
3808
  /**
3780
3809
  * Ring Offset Color
@@ -3789,7 +3818,7 @@ const D = (e) => {
3789
3818
  * @see https://tailwindcss.com/docs/box-shadow
3790
3819
  */
3791
3820
  shadow: [{
3792
- shadow: ["", "inner", "none", J, vn]
3821
+ shadow: ["", "inner", "none", ee, Cn]
3793
3822
  }],
3794
3823
  /**
3795
3824
  * Box Shadow Color
@@ -3810,14 +3839,14 @@ const D = (e) => {
3810
3839
  * @see https://tailwindcss.com/docs/mix-blend-mode
3811
3840
  */
3812
3841
  "mix-blend": [{
3813
- "mix-blend": [...R(), "plus-lighter", "plus-darker"]
3842
+ "mix-blend": [...E(), "plus-lighter", "plus-darker"]
3814
3843
  }],
3815
3844
  /**
3816
3845
  * Background Blend Mode
3817
3846
  * @see https://tailwindcss.com/docs/background-blend-mode
3818
3847
  */
3819
3848
  "bg-blend": [{
3820
- "bg-blend": R()
3849
+ "bg-blend": E()
3821
3850
  }],
3822
3851
  // Filters
3823
3852
  /**
@@ -3854,7 +3883,7 @@ const D = (e) => {
3854
3883
  * @see https://tailwindcss.com/docs/drop-shadow
3855
3884
  */
3856
3885
  "drop-shadow": [{
3857
- "drop-shadow": ["", "none", J, M]
3886
+ "drop-shadow": ["", "none", ee, M]
3858
3887
  }],
3859
3888
  /**
3860
3889
  * Grayscale
@@ -3975,21 +4004,21 @@ const D = (e) => {
3975
4004
  * @see https://tailwindcss.com/docs/border-spacing
3976
4005
  */
3977
4006
  "border-spacing": [{
3978
- "border-spacing": [a]
4007
+ "border-spacing": [c]
3979
4008
  }],
3980
4009
  /**
3981
4010
  * Border Spacing X
3982
4011
  * @see https://tailwindcss.com/docs/border-spacing
3983
4012
  */
3984
4013
  "border-spacing-x": [{
3985
- "border-spacing-x": [a]
4014
+ "border-spacing-x": [c]
3986
4015
  }],
3987
4016
  /**
3988
4017
  * Border Spacing Y
3989
4018
  * @see https://tailwindcss.com/docs/border-spacing
3990
4019
  */
3991
4020
  "border-spacing-y": [{
3992
- "border-spacing-y": [a]
4021
+ "border-spacing-y": [c]
3993
4022
  }],
3994
4023
  /**
3995
4024
  * Table Layout
@@ -4018,7 +4047,7 @@ const D = (e) => {
4018
4047
  * @see https://tailwindcss.com/docs/transition-duration
4019
4048
  */
4020
4049
  duration: [{
4021
- duration: j()
4050
+ duration: F()
4022
4051
  }],
4023
4052
  /**
4024
4053
  * Transition Timing Function
@@ -4032,7 +4061,7 @@ const D = (e) => {
4032
4061
  * @see https://tailwindcss.com/docs/transition-delay
4033
4062
  */
4034
4063
  delay: [{
4035
- delay: j()
4064
+ delay: F()
4036
4065
  }],
4037
4066
  /**
4038
4067
  * Animation
@@ -4082,14 +4111,14 @@ const D = (e) => {
4082
4111
  * @see https://tailwindcss.com/docs/translate
4083
4112
  */
4084
4113
  "translate-x": [{
4085
- "translate-x": [T]
4114
+ "translate-x": [L]
4086
4115
  }],
4087
4116
  /**
4088
4117
  * Translate Y
4089
4118
  * @see https://tailwindcss.com/docs/translate
4090
4119
  */
4091
4120
  "translate-y": [{
4092
- "translate-y": [T]
4121
+ "translate-y": [L]
4093
4122
  }],
4094
4123
  /**
4095
4124
  * Skew X
@@ -4369,7 +4398,7 @@ const D = (e) => {
4369
4398
  * @see https://tailwindcss.com/docs/stroke-width
4370
4399
  */
4371
4400
  "stroke-w": [{
4372
- stroke: [Y, X, ve]
4401
+ stroke: [_, Q, ke]
4373
4402
  }],
4374
4403
  /**
4375
4404
  * Stroke
@@ -4444,39 +4473,39 @@ const D = (e) => {
4444
4473
  "font-size": ["leading"]
4445
4474
  }
4446
4475
  };
4447
- }, Nn = /* @__PURE__ */ rn(kn);
4448
- function An(...e) {
4449
- return Nn(vt(e));
4476
+ }, En = /* @__PURE__ */ pn(Rn);
4477
+ function Tn(...e) {
4478
+ return En(Ct(e));
4450
4479
  }
4451
- function ir({ autoWidth: e = !0, className: t, style: n }) {
4452
- const [r, o] = E(() => _.getActiveAppId()), [i, a] = E(() => V.getRunningApps()), { isMobile: c } = _e();
4480
+ function mr({ autoWidth: e = !0, className: t, style: n }) {
4481
+ const [r, o] = R(() => q.getActiveAppId()), [i, c] = R(() => Y.getRunningApps()), { isMobile: a } = et();
4453
4482
  B(() => {
4454
- const g = _.subscribe("activeAppId", (N) => {
4483
+ const g = q.subscribe("activeAppId", (N) => {
4455
4484
  o(N);
4456
4485
  });
4457
4486
  return () => {
4458
4487
  g();
4459
4488
  };
4460
- }, []), B(() => V.subscribe(() => {
4461
- a(V.getRunningApps());
4489
+ }, []), B(() => Y.subscribe(() => {
4490
+ c(Y.getRunningApps());
4462
4491
  }), []), B(() => {
4463
4492
  if (!new URLSearchParams(window.location.search).has("app")) {
4464
- const b = _.getActiveAppId();
4465
- b && !V.isRunning(b) && V.launchApp(b);
4493
+ const b = q.getActiveAppId();
4494
+ b && !Y.isRunning(b) && Y.launchApp(b);
4466
4495
  }
4467
4496
  }, []);
4468
4497
  const l = (g) => {
4469
- V.closeApp(g);
4470
- }, u = r ? se.get(r) : null, v = (u == null ? void 0 : u.width) ?? 400, d = r !== null, w = { ...{
4498
+ Y.closeApp(g);
4499
+ }, u = r ? ie.get(r) : null, v = (u == null ? void 0 : u.width) ?? 400, d = r !== null, y = { ...{
4471
4500
  overflow: "hidden",
4472
4501
  display: d ? "flex" : "none",
4473
4502
  flexDirection: "column",
4474
4503
  flexShrink: 0,
4475
4504
  // Only set width if autoWidth is enabled
4476
- ...e && d ? { width: c ? "100%" : v } : {}
4505
+ ...e && d ? { width: a ? "100%" : v } : {}
4477
4506
  }, ...n };
4478
- return /* @__PURE__ */ s("div", { className: An("nc-app-panel", t), style: w, children: i.map((g) => /* @__PURE__ */ s(
4479
- Ge,
4507
+ return /* @__PURE__ */ s("div", { className: Tn("nc-app-panel", t), style: y, children: i.map((g) => /* @__PURE__ */ s(
4508
+ Je,
4480
4509
  {
4481
4510
  appId: g.appId,
4482
4511
  isActive: r === g.appId,
@@ -4485,27 +4514,27 @@ function ir({ autoWidth: e = !0, className: t, style: n }) {
4485
4514
  g.appId
4486
4515
  )) });
4487
4516
  }
4488
- function cr({
4517
+ function gr({
4489
4518
  pinnedAppIds: e,
4490
4519
  className: t = "",
4491
4520
  showIndicators: n = !0,
4492
4521
  side: r = "left",
4493
4522
  getBadge: o
4494
4523
  }) {
4495
- const { t: i } = U(), { isMobile: a } = _e(), [c, l] = E(() => _.getActiveAppId()), [u, f] = E(() => V.getRunningApps());
4524
+ const { t: i } = X(), { isMobile: c } = et(), [a, l] = R(() => q.getActiveAppId()), [u, f] = R(() => Y.getRunningApps());
4496
4525
  B(() => {
4497
- const p = _.subscribe("activeAppId", (h) => {
4526
+ const p = q.subscribe("activeAppId", (h) => {
4498
4527
  l(h);
4499
4528
  });
4500
4529
  return () => {
4501
4530
  p();
4502
4531
  };
4503
- }, []), B(() => V.subscribe(() => {
4504
- f(V.getRunningApps());
4532
+ }, []), B(() => Y.subscribe(() => {
4533
+ f(Y.getRunningApps());
4505
4534
  }), []);
4506
4535
  const v = (p) => {
4507
- c === p ? V.setActiveApp(null) : V.launchApp(p);
4508
- }, d = e.map((p) => se.get(p)).filter((p) => !!p), m = u.filter((p) => !e.includes(p.appId)).map((p) => ({ running: p, def: se.get(p.appId) })).filter((p) => !!p.def), y = (p) => u.some((h) => h.appId === p), w = (p) => p.titleKey ? String(i(p.titleKey)) : p.id, g = (p) => typeof p == "number" && p > 99 ? "99+" : p, N = (p, h) => {
4536
+ a === p ? Y.setActiveApp(null) : Y.launchApp(p);
4537
+ }, d = e.map((p) => ie.get(p)).filter((p) => !!p), m = u.filter((p) => !e.includes(p.appId)).map((p) => ({ running: p, def: ie.get(p.appId) })).filter((p) => !!p.def), w = (p) => u.some((h) => h.appId === p), y = (p) => p.titleKey ? String(i(p.titleKey)) : p.id, g = (p) => typeof p == "number" && p > 99 ? "99+" : p, N = (p, h) => {
4509
4538
  const A = o == null ? void 0 : o(p, h);
4510
4539
  return A ? /* @__PURE__ */ s(
4511
4540
  "span",
@@ -4515,19 +4544,19 @@ function cr({
4515
4544
  children: g(A.content)
4516
4545
  }
4517
4546
  ) : null;
4518
- }, b = a ? 24 : 28;
4519
- return /* @__PURE__ */ k("div", { className: `nc-app-taskbar ${a ? "nc-mobile" : "nc-desktop"} nc-${r} ${t}`, children: [
4547
+ }, b = c ? 24 : 28;
4548
+ return /* @__PURE__ */ k("div", { className: `nc-app-taskbar ${c ? "nc-mobile" : "nc-desktop"} nc-${r} ${t}`, children: [
4520
4549
  d.map((p) => {
4521
- const h = p.icon, A = c === p.id, C = y(p.id), z = { isActive: A, isRunning: C, isPinned: !0 };
4550
+ const h = p.icon, A = a === p.id, C = w(p.id), T = { isActive: A, isRunning: C, isPinned: !0 };
4522
4551
  return /* @__PURE__ */ k(
4523
4552
  "button",
4524
4553
  {
4525
4554
  className: `nc-app-taskbar-button ${A ? "nc-active" : ""} ${C ? "nc-running" : ""}`,
4526
4555
  onClick: () => v(p.id),
4527
- title: w(p),
4556
+ title: y(p),
4528
4557
  children: [
4529
4558
  /* @__PURE__ */ s(h, { size: b }),
4530
- N(p, z),
4559
+ N(p, T),
4531
4560
  n && C && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4532
4561
  ]
4533
4562
  },
@@ -4536,16 +4565,16 @@ function cr({
4536
4565
  }),
4537
4566
  m.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4538
4567
  m.map(({ running: p, def: h }) => {
4539
- const A = h.icon, C = c === p.appId, z = { isActive: C, isRunning: !0, isPinned: !1 };
4568
+ const A = h.icon, C = a === p.appId, T = { isActive: C, isRunning: !0, isPinned: !1 };
4540
4569
  return /* @__PURE__ */ k(
4541
4570
  "button",
4542
4571
  {
4543
4572
  className: `nc-app-taskbar-button ${C ? "nc-active" : ""} nc-running`,
4544
4573
  onClick: () => v(p.appId),
4545
- title: w(h),
4574
+ title: y(h),
4546
4575
  children: [
4547
4576
  /* @__PURE__ */ s(A, { size: b }),
4548
- N(h, z),
4577
+ N(h, T),
4549
4578
  n && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4550
4579
  ]
4551
4580
  },
@@ -4554,7 +4583,7 @@ function cr({
4554
4583
  })
4555
4584
  ] });
4556
4585
  }
4557
- function ar({
4586
+ function br({
4558
4587
  appId: e,
4559
4588
  open: t,
4560
4589
  onClose: n,
@@ -4562,15 +4591,15 @@ function ar({
4562
4591
  className: o = "",
4563
4592
  style: i
4564
4593
  }) {
4565
- const a = (l) => {
4594
+ const c = (l) => {
4566
4595
  r && l.target === l.currentTarget && n();
4567
4596
  };
4568
4597
  if (!t) return null;
4569
- const c = /* @__PURE__ */ s(
4598
+ const a = /* @__PURE__ */ s(
4570
4599
  "div",
4571
4600
  {
4572
4601
  className: "nc-dialog-overlay nc-fullscreen",
4573
- onClick: a,
4602
+ onClick: c,
4574
4603
  children: /* @__PURE__ */ s(
4575
4604
  "div",
4576
4605
  {
@@ -4578,7 +4607,7 @@ function ar({
4578
4607
  style: i,
4579
4608
  onClick: (l) => l.stopPropagation(),
4580
4609
  children: /* @__PURE__ */ s(
4581
- Ge,
4610
+ Je,
4582
4611
  {
4583
4612
  appId: e,
4584
4613
  isActive: !0,
@@ -4589,86 +4618,86 @@ function ar({
4589
4618
  )
4590
4619
  }
4591
4620
  );
4592
- return pe(c, document.body);
4621
+ return pe(a, document.body);
4593
4622
  }
4594
- const Ce = ie(null), Qe = ie(null);
4595
- function lr() {
4596
- const e = Z(Ce);
4623
+ const Ie = ce(null), it = ce(null);
4624
+ function vr() {
4625
+ const e = te(Ie);
4597
4626
  if (!e)
4598
4627
  throw new Error("useNavStack must be used within a NavStackProvider");
4599
4628
  return e;
4600
4629
  }
4601
- function dr() {
4602
- const e = Z(Qe);
4630
+ function wr() {
4631
+ const e = te(it);
4603
4632
  if (!e)
4604
4633
  throw new Error("useNavView must be used within NavStack");
4605
4634
  return e;
4606
4635
  }
4607
- const Se = ie(null);
4608
- function ur({ rootView: e, children: t }) {
4609
- const { t: n } = U(), r = Ft(), [o, i] = E([e]), [a, c] = E([null]), l = O((h, A) => {
4610
- c((C) => {
4611
- const z = [...C];
4612
- return z[h] = A, z;
4636
+ const Re = ce(null);
4637
+ function yr({ rootView: e, children: t }) {
4638
+ const { t: n } = X(), r = qt(), [o, i] = R([e]), [c, a] = R([null]), l = O((h, A) => {
4639
+ a((C) => {
4640
+ const T = [...C];
4641
+ return T[h] = A, T;
4613
4642
  });
4614
4643
  }, []), u = O((h) => {
4615
- c((A) => {
4644
+ a((A) => {
4616
4645
  const C = [...A];
4617
4646
  return C[h] = null, C;
4618
4647
  });
4619
4648
  }, []), f = O((h) => {
4620
- i((A) => [...A, h]), c((A) => [...A, null]);
4649
+ i((A) => [...A, h]), a((A) => [...A, null]);
4621
4650
  }, []), v = O(() => {
4622
- i((h) => h.length <= 1 ? h : h.slice(0, -1)), c((h) => h.slice(0, -1));
4651
+ i((h) => h.length <= 1 ? h : h.slice(0, -1)), a((h) => h.slice(0, -1));
4623
4652
  }, []), d = O(() => {
4624
- i([e]), c([null]);
4625
- }, [e]), m = o.length, y = m > 1, w = o.length - 1, g = o[o.length - 1], N = g != null && g.titleKey ? n(g.titleKey) : (g == null ? void 0 : g.title) ?? "";
4653
+ i([e]), a([null]);
4654
+ }, [e]), m = o.length, w = m > 1, y = o.length - 1, g = o[o.length - 1], N = g != null && g.titleKey ? n(g.titleKey) : (g == null ? void 0 : g.title) ?? "";
4626
4655
  B(() => {
4627
4656
  r.setTitle(N);
4628
4657
  }, [N, r]), B(() => {
4629
- y ? r.setBackHandler(v) : r.clearBackHandler();
4630
- }, [y, v, r]), B(() => {
4631
- const h = a[a.length - 1];
4658
+ w ? r.setBackHandler(v) : r.clearBackHandler();
4659
+ }, [w, v, r]), B(() => {
4660
+ const h = c[c.length - 1];
4632
4661
  h ? r.setToolbar(h) : r.clearToolbar();
4633
- }, [a, r]);
4662
+ }, [c, r]);
4634
4663
  const b = {
4635
4664
  push: f,
4636
4665
  pop: v,
4637
4666
  reset: d,
4638
4667
  depth: m,
4639
- canGoBack: y,
4668
+ canGoBack: w,
4640
4669
  currentTitle: N
4641
4670
  }, p = {
4642
4671
  stack: o,
4643
- toolbarStack: a,
4672
+ toolbarStack: c,
4644
4673
  updateToolbar: l,
4645
4674
  clearToolbarAt: u,
4646
- topIndex: w
4675
+ topIndex: y
4647
4676
  };
4648
- return /* @__PURE__ */ s(Ce.Provider, { value: b, children: /* @__PURE__ */ s(Se.Provider, { value: p, children: t }) });
4677
+ return /* @__PURE__ */ s(Ie.Provider, { value: b, children: /* @__PURE__ */ s(Re.Provider, { value: p, children: t }) });
4649
4678
  }
4650
- function Cn({ index: e, children: t }) {
4651
- const n = Z(Se);
4679
+ function Pn({ index: e, children: t }) {
4680
+ const n = te(Re);
4652
4681
  if (!n)
4653
4682
  throw new Error("NavViewProvider must be used within NavStackProvider");
4654
- const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, a = O((u) => {
4683
+ const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, c = O((u) => {
4655
4684
  e === i && r(e, u);
4656
- }, [e, i, r]), c = O(() => {
4685
+ }, [e, i, r]), a = O(() => {
4657
4686
  e === i && o(e);
4658
4687
  }, [e, i, o]), l = {
4659
- setToolbar: a,
4660
- clearToolbar: c
4688
+ setToolbar: c,
4689
+ clearToolbar: a
4661
4690
  };
4662
- return /* @__PURE__ */ s(Qe.Provider, { value: l, children: t });
4691
+ return /* @__PURE__ */ s(it.Provider, { value: l, children: t });
4663
4692
  }
4664
- function pr() {
4665
- const e = Z(Ce), t = Z(Se);
4693
+ function xr() {
4694
+ const e = te(Ie), t = te(Re);
4666
4695
  if (!e || !t)
4667
4696
  throw new Error("NavStackContainer must be used within a NavStackProvider");
4668
4697
  const { stack: n } = t;
4669
4698
  return /* @__PURE__ */ s("div", { className: "nav-stack-container", children: /* @__PURE__ */ s("div", { className: "nav-stack-content", children: n.map((r, o) => {
4670
4699
  const i = o === n.length - 1;
4671
- return /* @__PURE__ */ s(Cn, { index: o, children: /* @__PURE__ */ s(
4700
+ return /* @__PURE__ */ s(Pn, { index: o, children: /* @__PURE__ */ s(
4672
4701
  "div",
4673
4702
  {
4674
4703
  style: { display: i ? "flex" : "none", flexDirection: "column", height: "100%" },
@@ -4678,55 +4707,55 @@ function pr() {
4678
4707
  }) }) });
4679
4708
  }
4680
4709
  export {
4681
- He as ActivityIndicator,
4682
- zn as Alert,
4683
- Ge as AppContainer,
4684
- je as AppContext,
4685
- ar as AppDialog,
4686
- ir as AppPanel,
4687
- cr as AppTaskbar,
4688
- jt as AppTitleBar,
4689
- Pn as Battery,
4690
- K as Button,
4691
- Bn as ButtonGroup,
4692
- Dn as Checkbox,
4693
- Oe as CloseButton,
4694
- Wn as ComboBox,
4695
- jn as ContextMenu,
4696
- tr as CsvTextArea,
4697
- Gn as Dialog,
4698
- re as DialogClose,
4699
- On as EditButton,
4700
- Vn as Hyperlink,
4701
- Yn as Input,
4702
- _n as ListGroup,
4703
- Kn as ListGroupItem,
4704
- qn as MonthRangePicker,
4705
- Un as MultiSelect,
4706
- pr as NavStackContainer,
4707
- ur as NavStackProvider,
4708
- Bt as Notification,
4709
- nr as NotificationContainer,
4710
- Xn as NumberInput,
4711
- Hn as RefreshButton,
4712
- Jn as Slider,
4713
- It as TabPanel,
4714
- Zn as TabPanels,
4715
- Qn as Tabs,
4716
- er as Toggle,
4717
- Fn as TrashButton,
4718
- sr as ViewportProvider,
4719
- se as appRegistry,
4720
- _ as appStateStore,
4721
- An as cn,
4722
- or as createAppI18nFactory,
4723
- rr as notificationManager,
4724
- V as runningAppsStore,
4725
- Dt as showNotification,
4726
- Ft as useApp,
4727
- Ct as useDialog,
4728
- lr as useNavStack,
4729
- dr as useNavView,
4730
- _e as useViewport
4710
+ Ke as ActivityIndicator,
4711
+ jn as Alert,
4712
+ Je as AppContainer,
4713
+ Xe as AppContext,
4714
+ br as AppDialog,
4715
+ mr as AppPanel,
4716
+ gr as AppTaskbar,
4717
+ Jt as AppTitleBar,
4718
+ Gn as Battery,
4719
+ U as Button,
4720
+ Yn as ButtonGroup,
4721
+ Kn as Checkbox,
4722
+ _e as CloseButton,
4723
+ _n as ComboBox,
4724
+ Zn as ContextMenu,
4725
+ dr as CsvTextArea,
4726
+ Qn as Dialog,
4727
+ oe as DialogClose,
4728
+ qn as EditButton,
4729
+ Jn as Hyperlink,
4730
+ er as Input,
4731
+ nr as ListGroup,
4732
+ tr as ListGroupItem,
4733
+ or as MonthRangePicker,
4734
+ rr as MultiSelect,
4735
+ xr as NavStackContainer,
4736
+ yr as NavStackProvider,
4737
+ Gt as Notification,
4738
+ ur as NotificationContainer,
4739
+ sr as NumberInput,
4740
+ Un as RefreshButton,
4741
+ ir as Slider,
4742
+ Dt as TabPanel,
4743
+ cr as TabPanels,
4744
+ ar as Tabs,
4745
+ lr as Toggle,
4746
+ Xn as TrashButton,
4747
+ hr as ViewportProvider,
4748
+ ie as appRegistry,
4749
+ q as appStateStore,
4750
+ Tn as cn,
4751
+ fr as createAppI18nFactory,
4752
+ pr as notificationManager,
4753
+ Y as runningAppsStore,
4754
+ Yt as showNotification,
4755
+ qt as useApp,
4756
+ Pt as useDialog,
4757
+ vr as useNavStack,
4758
+ wr as useNavView,
4759
+ et as useViewport
4731
4760
  };
4732
4761
  //# sourceMappingURL=index.js.map