@webority/ui-react 0.17.2 → 0.17.4

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/ui-react.js CHANGED
@@ -758,7 +758,10 @@ function Be({ children: e, variant: t = "primary", size: n = "md", type: r = "bu
758
758
  o ? "w-100" : "",
759
759
  i ? "is-loading" : "",
760
760
  p
761
- ].filter(Boolean).join(" "), _ = (m.as === void 0 || m.as === "button") && l === void 0 && m.to === void 0, v = _ ? {} : { role: void 0 };
761
+ ].filter(Boolean).join(" "), _ = (m.as === void 0 || m.as === "button") && l === void 0 && m.to === void 0, v = _ ? {} : {
762
+ role: void 0,
763
+ tabIndex: a || i ? -1 : void 0
764
+ };
762
765
  return q(/* @__PURE__ */ D(g, {
763
766
  type: _ ? r : void 0,
764
767
  href: l,
@@ -1696,35 +1699,137 @@ function Et({ value: e = "#000000", onChange: t, label: n, required: r = !1, err
1696
1699
  });
1697
1700
  }
1698
1701
  //#endregion
1702
+ //#region src/components/AppDropdown.jsx
1703
+ var Dt = !1;
1704
+ function Ot() {
1705
+ let e = !0;
1706
+ try {
1707
+ e = process.env.NODE_ENV !== "production";
1708
+ } catch {
1709
+ e = !0;
1710
+ }
1711
+ !e || Dt || (Dt = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
1712
+ }
1713
+ function kt({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: s = [], menuClassName: c = "", linkComponent: l, children: u, trigger: d, ...p }) {
1714
+ W("AppDropdown", p), !d && !i && !r && Ot();
1715
+ let m = n ?? (d ? "wui-dropdown-trigger" : "topbar-icon-btn"), [h, g] = f(!1);
1716
+ return o(() => {
1717
+ if (!h) return;
1718
+ let e = () => g(!1);
1719
+ return window.addEventListener("scroll", e, {
1720
+ capture: !0,
1721
+ passive: !0
1722
+ }), window.addEventListener("resize", e), () => {
1723
+ window.removeEventListener("scroll", e, { capture: !0 }), window.removeEventListener("resize", e);
1724
+ };
1725
+ }, [h]), /* @__PURE__ */ D(v, {
1726
+ align: a,
1727
+ show: h,
1728
+ onToggle: (e) => g(e),
1729
+ ...p,
1730
+ children: [/* @__PURE__ */ E(v.Toggle, {
1731
+ as: At,
1732
+ icon: e,
1733
+ iconSize: t,
1734
+ btnClassName: m,
1735
+ trigger: d,
1736
+ title: r,
1737
+ "aria-label": i ?? (d ? void 0 : r)
1738
+ }), /* @__PURE__ */ E(v.Menu, {
1739
+ className: c,
1740
+ renderOnMount: !0,
1741
+ popperConfig: { strategy: "fixed" },
1742
+ children: u ?? s.map((e) => {
1743
+ if (e.divider) return /* @__PURE__ */ E(v.Divider, {}, e.key);
1744
+ let t = e.to ? l ? {
1745
+ as: l,
1746
+ to: e.to
1747
+ } : {
1748
+ as: "a",
1749
+ href: e.to
1750
+ } : {
1751
+ as: "button",
1752
+ type: "button"
1753
+ };
1754
+ return /* @__PURE__ */ D(v.Item, {
1755
+ ...t,
1756
+ onClick: e.onClick,
1757
+ className: e.danger ? "danger" : void 0,
1758
+ children: [e.image ? /* @__PURE__ */ E("img", {
1759
+ src: e.image,
1760
+ alt: ""
1761
+ }) : X(e.icon, { size: 16 }), e.label]
1762
+ }, e.key);
1763
+ })
1764
+ })]
1765
+ });
1766
+ }
1767
+ var At = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
1768
+ return /* @__PURE__ */ E("button", {
1769
+ ref: s,
1770
+ type: "button",
1771
+ className: n,
1772
+ "aria-label": i,
1773
+ ...o,
1774
+ children: r ?? /* @__PURE__ */ E(Y, {
1775
+ name: e,
1776
+ size: t
1777
+ })
1778
+ });
1779
+ });
1780
+ //#endregion
1781
+ //#region src/components/AppColumnMenu.jsx
1782
+ function jt({ columns: e, hiddenColumns: t = [], onToggle: n, label: r = "Columns", className: i = "", ...a }) {
1783
+ W("AppColumnMenu", a);
1784
+ let o = e.filter((e) => e.hideable);
1785
+ return /* @__PURE__ */ D(kt, {
1786
+ icon: "layout-grid",
1787
+ label: r,
1788
+ menuClassName: `wui-column-menu${i ? ` ${i}` : ""}`,
1789
+ children: [/* @__PURE__ */ E("div", {
1790
+ className: "wui-column-menu-title",
1791
+ children: r
1792
+ }), o.map((e) => /* @__PURE__ */ D("label", {
1793
+ className: "wui-column-menu-item",
1794
+ children: [/* @__PURE__ */ E("input", {
1795
+ type: "checkbox",
1796
+ className: "wui-check",
1797
+ checked: !t.includes(e.key),
1798
+ onChange: () => n(e.key)
1799
+ }), e.label]
1800
+ }, e.key))]
1801
+ });
1802
+ }
1803
+ //#endregion
1699
1804
  //#region src/components/AppModal.jsx
1700
- var Dt = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", Ot = {
1805
+ var Mt = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", Nt = {
1701
1806
  sm: 380,
1702
1807
  md: 440,
1703
1808
  lg: 640,
1704
1809
  xl: 880
1705
- }, kt = !1;
1706
- function At() {
1810
+ }, Pt = !1;
1811
+ function Ft() {
1707
1812
  let e = !0;
1708
1813
  try {
1709
1814
  e = process.env.NODE_ENV !== "production";
1710
1815
  } catch {
1711
1816
  e = !0;
1712
1817
  }
1713
- !e || kt || (kt = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
1818
+ !e || Pt || (Pt = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
1714
1819
  }
1715
- function jt({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a = "default", dismissible: s = !0, onClose: c, footer: l, size: u = "md", placement: f = "center", hideHeader: p = !1, staticBackdrop: m = !1, ariaLabel: h, className: g = "", children: _, ...v }) {
1716
- W("AppModal", v), G("AppModal", "size", typeof u == "string" ? u : null, Object.keys(Ot));
1820
+ function It({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a = "default", dismissible: s = !0, onClose: c, footer: l, size: u = "md", placement: f = "center", hideHeader: p = !1, staticBackdrop: m = !1, ariaLabel: h, className: g = "", children: _, ...v }) {
1821
+ W("AppModal", v), G("AppModal", "size", typeof u == "string" ? u : null, Object.keys(Nt));
1717
1822
  let { style: y, ...x } = v;
1718
- p && !h && typeof n != "string" && At();
1823
+ p && !h && typeof n != "string" && Ft();
1719
1824
  let S = d(null);
1720
1825
  o(() => {
1721
1826
  if (!e) return;
1722
1827
  let t = S.current?.closest(".modal-content");
1723
1828
  if (!t) return;
1724
- let n = () => Array.from(t.querySelectorAll(Dt));
1829
+ let n = () => Array.from(t.querySelectorAll(Mt));
1725
1830
  (t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("wui-modal-close")) || n()[0] || t).focus?.();
1726
1831
  }, [e]);
1727
- let C = typeof u == "number" ? u : Ot[u] ?? Ot.md, w = [
1832
+ let C = typeof u == "number" ? u : Nt[u] ?? Nt.md, w = [
1728
1833
  "wui-modal",
1729
1834
  a === "default" ? "" : `tone-${a}`,
1730
1835
  g
@@ -1809,19 +1914,19 @@ function jt({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a
1809
1914
  }
1810
1915
  //#endregion
1811
1916
  //#region src/components/AppCommandPalette.jsx
1812
- var Mt = "lg";
1813
- function Nt({ open: e, onClose: t, query: n = "", onQueryChange: r, placeholder: i = "Search…", groups: a = [], loading: o = !1, emptyText: c = "No results", footer: l, ariaLabel: u = "Search", highlight: d = !0, id: f, className: p = "", ...m }) {
1917
+ var Lt = "lg";
1918
+ function Rt({ open: e, onClose: t, query: n = "", onQueryChange: r, placeholder: i = "Search…", groups: a = [], loading: o = !1, emptyText: c = "No results", footer: l, ariaLabel: u = "Search", highlight: d = !0, id: f, className: p = "", ...m }) {
1814
1919
  W("AppCommandPalette", m);
1815
1920
  let h = s(), g = f || h;
1816
- return /* @__PURE__ */ E(jt, {
1921
+ return /* @__PURE__ */ E(It, {
1817
1922
  open: e,
1818
1923
  onClose: t,
1819
1924
  hideHeader: !0,
1820
1925
  placement: "top",
1821
- size: Mt,
1926
+ size: Lt,
1822
1927
  ariaLabel: u,
1823
1928
  className: `wui-cmd-card${p ? ` ${p}` : ""}`,
1824
- children: /* @__PURE__ */ E(Pt, {
1929
+ children: /* @__PURE__ */ E(zt, {
1825
1930
  baseId: g,
1826
1931
  query: n,
1827
1932
  onQueryChange: r,
@@ -1837,7 +1942,7 @@ function Nt({ open: e, onClose: t, query: n = "", onQueryChange: r, placeholder:
1837
1942
  })
1838
1943
  });
1839
1944
  }
1840
- function Pt({ baseId: e, query: t, onQueryChange: n, placeholder: r, groups: i, loading: a, emptyText: s, footer: c, ariaLabel: u, highlight: f, onClose: p, rest: m }) {
1945
+ function zt({ baseId: e, query: t, onQueryChange: n, placeholder: r, groups: i, loading: a, emptyText: s, footer: c, ariaLabel: u, highlight: f, onClose: p, rest: m }) {
1841
1946
  let h = d(null), g = `${e}-list`, _ = i.filter((e) => e.items?.length), v = !a && t.trim() !== "" && _.length === 0;
1842
1947
  return l(() => {
1843
1948
  h.current?.refresh?.();
@@ -1891,7 +1996,7 @@ function Pt({ baseId: e, query: t, onQueryChange: n, placeholder: r, groups: i,
1891
1996
  "aria-busy": a ? "true" : void 0,
1892
1997
  hidden: _.length === 0,
1893
1998
  children: _.map((n) => {
1894
- let r = `${e}-${It(n.key)}`;
1999
+ let r = `${e}-${Vt(n.key)}`;
1895
2000
  return /* @__PURE__ */ D("div", {
1896
2001
  className: "wui-cmd-group",
1897
2002
  role: "group",
@@ -1904,7 +2009,7 @@ function Pt({ baseId: e, query: t, onQueryChange: n, placeholder: r, groups: i,
1904
2009
  }), n.items.map((e) => /* @__PURE__ */ D("div", {
1905
2010
  className: "wui-cmd-item",
1906
2011
  role: "option",
1907
- id: `${r}-${It(e.key)}`,
2012
+ id: `${r}-${Vt(e.key)}`,
1908
2013
  "data-group-key": String(n.key),
1909
2014
  "data-key": String(e.key),
1910
2015
  children: [
@@ -1917,7 +2022,7 @@ function Pt({ baseId: e, query: t, onQueryChange: n, placeholder: r, groups: i,
1917
2022
  className: "wui-cmd-item-text",
1918
2023
  children: [/* @__PURE__ */ E("span", {
1919
2024
  className: "wui-cmd-item-label",
1920
- children: f ? Ft(e.label, t) : e.label
2025
+ children: f ? Bt(e.label, t) : e.label
1921
2026
  }), e.description != null && /* @__PURE__ */ E("span", {
1922
2027
  className: "wui-cmd-item-desc",
1923
2028
  children: e.description
@@ -1944,7 +2049,7 @@ function Pt({ baseId: e, query: t, onQueryChange: n, placeholder: r, groups: i,
1944
2049
  ]
1945
2050
  });
1946
2051
  }
1947
- function Ft(e, n) {
2052
+ function Bt(e, n) {
1948
2053
  if (typeof e != "string") return e;
1949
2054
  let r = I(e, n);
1950
2055
  if (r.length === 1 && !r[0].match) return e;
@@ -1957,17 +2062,17 @@ function Ft(e, n) {
1957
2062
  }, n) : /* @__PURE__ */ E(t, { children: e.text }, n);
1958
2063
  });
1959
2064
  }
1960
- function It(e) {
2065
+ function Vt(e) {
1961
2066
  return String(e).replace(/\s+/g, "_");
1962
2067
  }
1963
2068
  //#endregion
1964
2069
  //#region src/lib/emptyValue.js
1965
- function Lt(e) {
2070
+ function Ht(e) {
1966
2071
  return e == null || e === "";
1967
2072
  }
1968
2073
  //#endregion
1969
2074
  //#region src/components/AppCompareTable.jsx
1970
- function Rt({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
2075
+ function Ut({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
1971
2076
  W("AppCompareTable", i);
1972
2077
  let a = (e) => e === !0 ? /* @__PURE__ */ E("span", {
1973
2078
  className: "compare-yes",
@@ -2004,7 +2109,7 @@ function Rt({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i
2004
2109
  }
2005
2110
  //#endregion
2006
2111
  //#region src/components/AppInput.jsx
2007
- var zt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", type: c = "text", size: l = "md", leftIcon: u, rightIcon: p, onRightIconClick: m, rightIconLabel: h, unit: g, id: _, name: v, className: b = "", fieldClassName: x = "", disabled: S = !1, clearable: C = !1, showCount: w = !1, maxLength: T, prefix: O, suffix: k, action: A, floatingLabel: j = !1, variant: M, passwordRequirements: P = !1, requirementsPlacement: F = "auto", ...I }, L) {
2112
+ var Wt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", type: c = "text", size: l = "md", leftIcon: u, rightIcon: p, onRightIconClick: m, rightIconLabel: h, unit: g, id: _, name: v, className: b = "", fieldClassName: x = "", disabled: S = !1, clearable: C = !1, showCount: w = !1, maxLength: T, prefix: O, suffix: k, action: A, floatingLabel: j = !1, variant: M, passwordRequirements: P = !1, requirementsPlacement: F = "auto", ...I }, L) {
2008
2113
  W("AppInput", I);
2009
2114
  let [R, z] = f(!1), B = s(), V = _ || B, H = c === "password", ee = H && R ? "text" : c, U = d(null), te = (e) => {
2010
2115
  U.current = e, typeof L == "function" ? L(e) : L && (L.current = e);
@@ -2232,31 +2337,31 @@ var zt = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
2232
2337
  })
2233
2338
  ]
2234
2339
  });
2235
- }), Bt = (e) => function({ size: t = 72 }) {
2340
+ }), Gt = (e) => function({ size: t = 72 }) {
2236
2341
  return /* @__PURE__ */ E("wui-status-icon", {
2237
2342
  tone: e,
2238
2343
  size: t
2239
2344
  });
2240
- }, Vt = {
2241
- success: Bt("success"),
2242
- error: Bt("error"),
2243
- warning: Bt("warning"),
2244
- info: Bt("info"),
2245
- delete: Bt("delete"),
2246
- primary: Bt("primary")
2345
+ }, Kt = {
2346
+ success: Gt("success"),
2347
+ error: Gt("error"),
2348
+ warning: Gt("warning"),
2349
+ info: Gt("info"),
2350
+ delete: Gt("delete"),
2351
+ primary: Gt("primary")
2247
2352
  };
2248
2353
  //#endregion
2249
2354
  //#region src/components/AppConfirmDialog.jsx
2250
- function Ht({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", danger: a = !1, tone: s, image: c, iconSize: l, confirmPhrase: u, onConfirm: d, onClose: p, loading: m = !1, staticBackdrop: h = !1, placement: g = "center", size: _ = "md", className: v = "", ...y }) {
2355
+ function qt({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", danger: a = !1, tone: s, image: c, iconSize: l, confirmPhrase: u, onConfirm: d, onClose: p, loading: m = !1, staticBackdrop: h = !1, placement: g = "center", size: _ = "md", className: v = "", ...y }) {
2251
2356
  W("AppConfirmDialog", y);
2252
2357
  let [b, x] = f("");
2253
2358
  if (o(() => {
2254
2359
  e || x("");
2255
2360
  }, [e]), !e) return null;
2256
- let S = !!u && b.trim() !== u, C = c ? null : Vt[s || (a ? "delete" : "info")], w = l > 0 ? { "--wui-confirm-icon-size": `${l}px` } : void 0, O = () => {
2361
+ let S = !!u && b.trim() !== u, C = c ? null : Kt[s || (a ? "delete" : "info")], w = l > 0 ? { "--wui-confirm-icon-size": `${l}px` } : void 0, O = () => {
2257
2362
  m || p?.();
2258
2363
  };
2259
- return /* @__PURE__ */ E(jt, {
2364
+ return /* @__PURE__ */ E(It, {
2260
2365
  ...y,
2261
2366
  open: e,
2262
2367
  hideHeader: !0,
@@ -2307,7 +2412,7 @@ function Ht({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
2307
2412
  className: "wui-confirm-msg",
2308
2413
  children: n
2309
2414
  }),
2310
- u && /* @__PURE__ */ E(zt, {
2415
+ u && /* @__PURE__ */ E(Wt, {
2311
2416
  fieldClassName: "mt-3 mb-0 w-100 text-start",
2312
2417
  label: /* @__PURE__ */ D(T, { children: [
2313
2418
  "Type ",
@@ -2325,9 +2430,9 @@ function Ht({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
2325
2430
  }
2326
2431
  //#endregion
2327
2432
  //#region src/components/AppConsentBanner.jsx
2328
- var Ut = ["bottom-left", "bottom-right"];
2329
- function Wt({ heading: e, description: t, policyHref: n, policyLabel: r, analyticsDescription: i, functionalDescription: a, marketingDescription: s, position: c = "bottom-left", standalone: l = !1, className: u = "", style: d, ...f }) {
2330
- W("AppConsentBanner", f), G("AppConsentBanner", "position", c, Ut);
2433
+ var Jt = ["bottom-left", "bottom-right"];
2434
+ function Yt({ heading: e, description: t, policyHref: n, policyLabel: r, analyticsDescription: i, functionalDescription: a, marketingDescription: s, position: c = "bottom-left", standalone: l = !1, className: u = "", style: d, ...f }) {
2435
+ W("AppConsentBanner", f), G("AppConsentBanner", "position", c, Jt);
2331
2436
  let { setRef: p, innerRef: m } = Q({ on: { "wui-consent-save": (e) => {
2332
2437
  z(e.detail), m.current && (m.current.preferences = R());
2333
2438
  } } });
@@ -2354,13 +2459,13 @@ function Wt({ heading: e, description: t, policyHref: n, policyLabel: r, analyti
2354
2459
  }
2355
2460
  //#endregion
2356
2461
  //#region src/components/AppCopyButton.jsx
2357
- var Gt = {
2462
+ var Xt = {
2358
2463
  sm: 14,
2359
2464
  md: 16,
2360
2465
  lg: 20
2361
2466
  };
2362
- function Kt({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: s = "ghost", onCopied: c, className: l = "", tooltip: u, tooltipPlacement: p, ...m }) {
2363
- W("AppCopyButton", m), G("AppCopyButton", "size", i, Object.keys(Gt));
2467
+ function Zt({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: s = "ghost", onCopied: c, className: l = "", tooltip: u, tooltipPlacement: p, ...m }) {
2468
+ W("AppCopyButton", m), G("AppCopyButton", "size", i, Object.keys(Xt));
2364
2469
  let [h, g] = f(!1), _ = d(null);
2365
2470
  o(() => () => clearTimeout(_.current), []);
2366
2471
  let v = a(async () => {
@@ -2369,7 +2474,7 @@ function Kt({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
2369
2474
  return q(r ? /* @__PURE__ */ E(je, {
2370
2475
  icon: b,
2371
2476
  label: y,
2372
- size: Gt[i] ?? Gt.md,
2477
+ size: Xt[i] ?? Xt.md,
2373
2478
  onClick: v,
2374
2479
  className: l,
2375
2480
  ...m
@@ -2386,12 +2491,12 @@ function Kt({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
2386
2491
  }
2387
2492
  //#endregion
2388
2493
  //#region src/components/AppCountrySelect.jsx
2389
- var qt = [
2494
+ var Qt = [
2390
2495
  "sm",
2391
2496
  "md",
2392
2497
  "lg"
2393
- ], Jt = i(function({ value: e, onChange: t, countries: n, placeholder: r = "Select country", searchPlaceholder: i = "Search countries...", searchable: a = !0, clearable: o = !1, size: c = "md", floatingLabel: l = !1, disabled: u, label: d, required: f = !1, error: p, hint: m, help: h, helpLabel: g = "More information", id: _, name: v, className: y = "", fieldClassName: b = "", "aria-label": x, "aria-labelledby": S, "aria-describedby": C, ...w }, T) {
2394
- W("AppCountrySelect", w), G("AppCountrySelect", "size", c, qt);
2498
+ ], $t = i(function({ value: e, onChange: t, countries: n, placeholder: r = "Select country", searchPlaceholder: i = "Search countries...", searchable: a = !0, clearable: o = !1, size: c = "md", floatingLabel: l = !1, disabled: u, label: d, required: f = !1, error: p, hint: m, help: h, helpLabel: g = "More information", id: _, name: v, className: y = "", fieldClassName: b = "", "aria-label": x, "aria-labelledby": S, "aria-describedby": C, ...w }, T) {
2499
+ W("AppCountrySelect", w), G("AppCountrySelect", "size", c, Qt);
2395
2500
  let O = s(), { setRef: k } = Q({
2396
2501
  ref: T,
2397
2502
  value: e ?? "",
@@ -2452,7 +2557,7 @@ var qt = [
2452
2557
  });
2453
2558
  //#endregion
2454
2559
  //#region src/components/AppSkeleton.jsx
2455
- function Yt({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
2560
+ function en({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
2456
2561
  return W("AppSkeleton", a), /* @__PURE__ */ E("span", {
2457
2562
  className: `skeleton${r ? ` ${r}` : ""}`,
2458
2563
  "aria-hidden": "true",
@@ -2465,28 +2570,28 @@ function Yt({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "
2465
2570
  ...a
2466
2571
  });
2467
2572
  }
2468
- function Xt({ rows: e = 4, cols: t = 5 }) {
2469
- return Array.from({ length: e }).map((e, n) => /* @__PURE__ */ E("tr", { children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ E("td", { children: /* @__PURE__ */ E(Yt, {
2573
+ function tn({ rows: e = 4, cols: t = 5 }) {
2574
+ return Array.from({ length: e }).map((e, n) => /* @__PURE__ */ E("tr", { children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ E("td", { children: /* @__PURE__ */ E(en, {
2470
2575
  width: t === 0 ? "70%" : "50%",
2471
2576
  height: 12
2472
2577
  }) }, `col-${t}`)) }, `row-${n}`));
2473
2578
  }
2474
2579
  //#endregion
2475
2580
  //#region src/lib/pageWindow.js
2476
- var Zt = (e, t) => {
2581
+ var nn = (e, t) => {
2477
2582
  let n = [];
2478
2583
  for (let r = e; r <= t; r += 1) n.push(r);
2479
2584
  return n;
2480
2585
  };
2481
- function Qt(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
2586
+ function rn(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
2482
2587
  let i = Math.max(1, t), a = Math.min(Math.max(1, e), i);
2483
- if (i <= n * 2 + 3 + r * 2) return Zt(1, i);
2484
- let o = Math.max(a - n, r + 2), s = Math.min(a + n, i - r - 1), c = o > r + 2, l = s < i - r - 1, u = Zt(1, r);
2485
- return u.push(...c ? ["ellipsis-left"] : Zt(r + 1, o - 1)), u.push(...Zt(o, s)), u.push(...l ? ["ellipsis-right"] : Zt(s + 1, i - r)), u.push(...Zt(i - r + 1, i)), u;
2588
+ if (i <= n * 2 + 3 + r * 2) return nn(1, i);
2589
+ let o = Math.max(a - n, r + 2), s = Math.min(a + n, i - r - 1), c = o > r + 2, l = s < i - r - 1, u = nn(1, r);
2590
+ return u.push(...c ? ["ellipsis-left"] : nn(r + 1, o - 1)), u.push(...nn(o, s)), u.push(...l ? ["ellipsis-right"] : nn(s + 1, i - r)), u.push(...nn(i - r + 1, i)), u;
2486
2591
  }
2487
2592
  //#endregion
2488
2593
  //#region src/components/AppSelectMini.jsx
2489
- function $t({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", name: i, ariaLabel: a, id: s, disabled: c, size: l, icon: u, prefix: d, className: f, ...p }) {
2594
+ function an({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", name: i, ariaLabel: a, id: s, disabled: c, size: l, icon: u, prefix: d, className: f, ...p }) {
2490
2595
  W("AppSelectMini", p);
2491
2596
  let { setRef: m, innerRef: h } = Q({
2492
2597
  value: e ?? "",
@@ -2523,39 +2628,38 @@ function $t({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
2523
2628
  }
2524
2629
  //#endregion
2525
2630
  //#region src/components/AppTablePagination.jsx
2526
- var en = [
2631
+ var on = [
2527
2632
  5,
2528
2633
  10,
2529
2634
  25,
2530
2635
  50
2531
2636
  ];
2532
- function tn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = en, mode: l = "prev-next", showPageSize: u = !0, className: d = "", ...f }) {
2533
- W("AppTablePagination", f);
2534
- let p = l === "numbered", m = p ? Qt(e, t) : null;
2637
+ function sn({ page: e, totalPages: t, pageSize: n, onPageChange: r, onPageSizeChange: i, pageSizes: a = on, mode: o = "numbered", showPageSize: s = !0, className: c = "", ...l }) {
2638
+ W("AppTablePagination", l);
2639
+ let u = o === "numbered", d = u ? rn(e, t) : null;
2535
2640
  return /* @__PURE__ */ D("div", {
2536
- className: `table-pagination${d ? ` ${d}` : ""}`,
2537
- ...f,
2641
+ className: `table-pagination${c ? ` ${c}` : ""}`,
2642
+ ...l,
2538
2643
  children: [
2539
- u && /* @__PURE__ */ D("span", {
2644
+ s && /* @__PURE__ */ E("span", {
2540
2645
  className: "tpg-rows",
2541
- children: ["Rows per page:", /* @__PURE__ */ E($t, {
2646
+ children: /* @__PURE__ */ E(an, {
2542
2647
  value: n,
2543
- onChange: (e) => s(Number(e)),
2648
+ onChange: (e) => i(Number(e)),
2544
2649
  ariaLabel: "Rows per page",
2545
- options: c.map((e) => ({
2650
+ options: a.map((e) => ({
2546
2651
  value: e,
2547
- label: String(e)
2652
+ label: `${e} per page`
2548
2653
  }))
2549
- })]
2654
+ })
2550
2655
  }),
2551
- /* @__PURE__ */ D("span", {
2656
+ !u && /* @__PURE__ */ D("span", {
2552
2657
  className: "tpg-range",
2553
2658
  children: [
2554
- i,
2555
- "–",
2556
- a,
2659
+ "Page ",
2660
+ e,
2557
2661
  " of ",
2558
- r
2662
+ t
2559
2663
  ]
2560
2664
  }),
2561
2665
  /* @__PURE__ */ D("div", {
@@ -2564,7 +2668,7 @@ function tn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
2564
2668
  /* @__PURE__ */ E("button", {
2565
2669
  type: "button",
2566
2670
  className: "tpg-arrow",
2567
- onClick: () => o(Math.max(1, e - 1)),
2671
+ onClick: () => r(Math.max(1, e - 1)),
2568
2672
  disabled: e <= 1,
2569
2673
  "aria-label": "Previous page",
2570
2674
  children: /* @__PURE__ */ E(Y, {
@@ -2572,10 +2676,10 @@ function tn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
2572
2676
  size: 18
2573
2677
  })
2574
2678
  }),
2575
- p && m.map((t) => typeof t == "number" ? /* @__PURE__ */ E("button", {
2679
+ u && d.map((t) => typeof t == "number" ? /* @__PURE__ */ E("button", {
2576
2680
  type: "button",
2577
2681
  className: `tpg-page${t === e ? " is-active" : ""}`,
2578
- onClick: () => o(t),
2682
+ onClick: () => r(t),
2579
2683
  "aria-current": t === e ? "page" : void 0,
2580
2684
  "aria-label": `Page ${t}`,
2581
2685
  children: t
@@ -2587,7 +2691,7 @@ function tn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
2587
2691
  /* @__PURE__ */ E("button", {
2588
2692
  type: "button",
2589
2693
  className: "tpg-arrow",
2590
- onClick: () => o(Math.min(t, e + 1)),
2694
+ onClick: () => r(Math.min(t, e + 1)),
2591
2695
  disabled: e >= t,
2592
2696
  "aria-label": "Next page",
2593
2697
  children: /* @__PURE__ */ E(Y, {
@@ -2602,151 +2706,212 @@ function tn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
2602
2706
  }
2603
2707
  //#endregion
2604
2708
  //#region src/components/AppDataTable.jsx
2605
- function nn(e) {
2709
+ var cn = [
2710
+ "comfortable",
2711
+ "cozy",
2712
+ "compact"
2713
+ ];
2714
+ function ln(e) {
2606
2715
  return e === "end" ? "wui-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
2607
2716
  }
2608
- function rn(e) {
2717
+ function un(e) {
2609
2718
  return e == null || e === "" ? "-" : typeof e == "boolean" ? String(e) : e;
2610
2719
  }
2611
- function an({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a, loading: o = !1, skeletonRows: s = 5, empty: c = "No records found.", emptyFiltered: l, sourceCount: u, rowActions: d, rowActionsLabel: p, pagination: m, ariaLabel: h, className: g = "", wrapperClassName: _ = "", selectable: v = !1, selectedIds: y, onToggleRow: b, onToggleAll: x, renderExpanded: S, ...C }) {
2612
- W("AppDataTable", C);
2613
- let w = typeof S == "function", [O, k] = f(() => /* @__PURE__ */ new Set()), A = (e) => k((t) => {
2720
+ function dn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a, loading: s = !1, skeletonRows: c = 5, empty: l = "No records found.", emptyFiltered: u, sourceCount: p, rowActions: m, rowActionsLabel: h, pagination: g, ariaLabel: _, className: v = "", wrapperClassName: y = "", selectable: b = !1, selectedIds: x, onToggleRow: S, onToggleAll: C, renderExpanded: w, density: O = "comfortable", striped: k = !1, maxHeight: A, stickyFirstColumn: j = !1, stackOnMobile: M = !1, hiddenColumns: N, rowStatus: P, rowHref: F, onRowClick: I, ...L }) {
2721
+ W("AppDataTable", L);
2722
+ let R = N?.length ? new Set(N) : null;
2723
+ e = R ? e.filter((e) => !(e.hideable && R.has(e.key))) : e, G("AppDataTable", "density", O, cn);
2724
+ let z = [
2725
+ "table table-ledger",
2726
+ O === "cozy" || O === "compact" ? `wui-table-${O}` : "",
2727
+ k ? "wui-table-striped" : "",
2728
+ j ? "wui-table-sticky-first" : "",
2729
+ M ? "wui-table-stack" : "",
2730
+ v
2731
+ ].filter(Boolean).join(" "), B = typeof w == "function", [V, H] = f(() => /* @__PURE__ */ new Set()), ee = (e) => H((t) => {
2614
2732
  let n = new Set(t);
2615
2733
  return n.has(e) ? n.delete(e) : n.add(e), n;
2616
- }), j = Math.max(1, e.length + +!!d + +!!v + +!!w), M = v && n ? n.reduce((e, t, n) => e + +!!y?.has(r(t, n)), 0) : 0, N = v && n && n.length > 0 && M === n.length, P = M > 0 && !N, F = (e) => {
2617
- e && (e.indeterminate = P);
2618
- }, I = l !== void 0 && u > 0 ? l : c;
2734
+ }), U = e.some((e) => typeof e.footer == "function"), te = typeof F == "function" || typeof I == "function", ne = (e) => !!e.target.closest("a, button, input, select, textarea, label, [role='menu'], [role='menuitem'], .dropdown"), re = (e, t) => {
2735
+ if (ne(t) || (I && I(e), !F)) return;
2736
+ let n = F(e);
2737
+ n && (t.ctrlKey || t.metaKey || t.button === 1 ? window.open(n, "_blank", "noopener") : window.location.assign(n));
2738
+ }, ie = A !== void 0, ae = [
2739
+ "table-wrap",
2740
+ ie ? "wui-table-scroll" : "",
2741
+ y
2742
+ ].filter(Boolean).join(" "), oe = ie ? { maxHeight: A } : void 0, se = Math.max(1, e.length + +!!m + +!!b + +!!B), K = b && n ? n.reduce((e, t, n) => e + +!!x?.has(r(t, n)), 0) : 0, ce = b && n && n.length > 0 && K === n.length, q = K > 0 && !ce, le = (e) => {
2743
+ e && (e.indeterminate = q);
2744
+ }, ue = d(null);
2745
+ o(() => {
2746
+ let e = ue.current;
2747
+ if (!e) return;
2748
+ let t = (e) => {
2749
+ let t = e.target.closest?.(".u-name");
2750
+ t && !t.title && (t.scrollWidth > t.clientWidth || t.scrollHeight > t.clientHeight) && (t.title = t.textContent.trim());
2751
+ };
2752
+ return e.addEventListener("mouseover", t), e.addEventListener("focusin", t), () => {
2753
+ e.removeEventListener("mouseover", t), e.removeEventListener("focusin", t);
2754
+ };
2755
+ }, []);
2756
+ let de = u !== void 0 && p > 0 ? u : l;
2619
2757
  return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("div", {
2620
- className: `table-wrap${_ ? ` ${_}` : ""}`,
2758
+ ref: ue,
2759
+ className: ae,
2760
+ style: oe,
2621
2761
  tabIndex: 0,
2622
- ...C,
2762
+ ...L,
2623
2763
  children: [/* @__PURE__ */ D("table", {
2624
- className: `table table-ledger${g ? ` ${g}` : ""}`,
2625
- "aria-label": h,
2626
- children: [/* @__PURE__ */ E("thead", { children: /* @__PURE__ */ D("tr", { children: [
2627
- w && /* @__PURE__ */ E("th", {
2628
- className: "wui-expand-cell",
2629
- children: /* @__PURE__ */ E("span", {
2630
- className: "visually-hidden",
2631
- children: "Expand"
2632
- })
2633
- }),
2634
- v && /* @__PURE__ */ E("th", {
2635
- className: "wui-select-cell",
2636
- children: /* @__PURE__ */ E("input", {
2637
- ref: F,
2638
- type: "checkbox",
2639
- className: "wui-check",
2640
- checked: N,
2641
- onChange: (e) => x?.(e.target.checked),
2642
- "aria-label": "Select all rows"
2643
- })
2644
- }),
2645
- e.map((e, t) => {
2646
- let n = !!(e.sortable && a), r = i && i.key === e.key;
2647
- return /* @__PURE__ */ D("th", {
2648
- className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + nn(e.align),
2649
- style: e.width ? { width: e.width } : void 0,
2650
- tabIndex: n ? 0 : void 0,
2651
- "aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
2652
- onClick: n ? () => a(e.key) : void 0,
2653
- onKeyDown: n ? (t) => {
2654
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), a(e.key));
2655
- } : void 0,
2656
- children: [e.label, n && /* @__PURE__ */ E("span", {
2657
- className: "sort-icon",
2764
+ className: z,
2765
+ "aria-label": _,
2766
+ children: [
2767
+ /* @__PURE__ */ E("thead", { children: /* @__PURE__ */ D("tr", { children: [
2768
+ B && /* @__PURE__ */ E("th", {
2769
+ className: "wui-expand-cell",
2770
+ children: /* @__PURE__ */ E("span", {
2771
+ className: "visually-hidden",
2772
+ children: "Expand"
2773
+ })
2774
+ }),
2775
+ b && /* @__PURE__ */ E("th", {
2776
+ className: "wui-select-cell",
2777
+ children: /* @__PURE__ */ E("input", {
2778
+ ref: le,
2779
+ type: "checkbox",
2780
+ className: "wui-check",
2781
+ checked: ce,
2782
+ onChange: (e) => C?.(e.target.checked),
2783
+ "aria-label": "Select all rows"
2784
+ })
2785
+ }),
2786
+ e.map((e, t) => {
2787
+ let n = !!(e.sortable && a), r = i && i.key === e.key, o = e.align === "num" || e.align === "end", s = n && /* @__PURE__ */ E("span", {
2788
+ className: `sort-icon${o ? " wui-sort-lead" : ""}`,
2658
2789
  children: /* @__PURE__ */ E(Y, {
2659
2790
  name: "chevrons-up-down",
2660
2791
  size: 14
2661
2792
  })
2662
- })]
2663
- }, e.key);
2664
- }),
2665
- d && (p ? /* @__PURE__ */ E("th", {
2666
- className: "wui-cell-end",
2667
- children: p
2668
- }) : /* @__PURE__ */ E("th", {
2669
- className: "wui-cell-end",
2670
- children: /* @__PURE__ */ E("span", {
2671
- className: "visually-hidden",
2672
- children: "Actions"
2673
- })
2674
- }))
2675
- ] }) }), /* @__PURE__ */ E("tbody", { children: o ? /* @__PURE__ */ E(Xt, {
2676
- rows: s,
2677
- cols: j
2678
- }) : n?.length ? n.map((n, i) => {
2679
- let a = r(n, i), o = w && O.has(a), s = String(a).replace(/[^a-z0-9]/gi, "_");
2680
- return /* @__PURE__ */ D(t, { children: [/* @__PURE__ */ D("tr", {
2681
- className: v && y?.has(a) ? "is-selected" : void 0,
2682
- children: [
2683
- w && /* @__PURE__ */ E("td", {
2684
- className: "wui-expand-cell",
2685
- children: /* @__PURE__ */ E("button", {
2686
- type: "button",
2687
- className: `wui-expand-toggle${o ? " is-open" : ""}`,
2688
- "aria-expanded": o,
2689
- "aria-controls": o ? `${s}-expanded` : void 0,
2690
- "aria-label": o ? "Collapse row" : "Expand row",
2691
- onClick: () => A(a),
2692
- children: /* @__PURE__ */ E(Y, {
2693
- name: "chevron-down",
2694
- size: 16
2793
+ });
2794
+ return /* @__PURE__ */ D("th", {
2795
+ className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + (e.nowrap ? "text-nowrap " : "") + ln(e.align),
2796
+ style: e.width || e.minWidth ? {
2797
+ width: e.width,
2798
+ minWidth: e.minWidth
2799
+ } : void 0,
2800
+ tabIndex: n ? 0 : void 0,
2801
+ "aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
2802
+ onClick: n ? () => a(e.key) : void 0,
2803
+ onKeyDown: n ? (t) => {
2804
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), a(e.key));
2805
+ } : void 0,
2806
+ children: [
2807
+ o && s,
2808
+ e.label,
2809
+ !o && s
2810
+ ]
2811
+ }, e.key);
2812
+ }),
2813
+ m && (h ? /* @__PURE__ */ E("th", {
2814
+ className: "wui-cell-end",
2815
+ children: h
2816
+ }) : /* @__PURE__ */ E("th", {
2817
+ className: "wui-cell-end",
2818
+ children: /* @__PURE__ */ E("span", {
2819
+ className: "visually-hidden",
2820
+ children: "Actions"
2821
+ })
2822
+ }))
2823
+ ] }) }),
2824
+ /* @__PURE__ */ E("tbody", { children: s ? /* @__PURE__ */ E(tn, {
2825
+ rows: c,
2826
+ cols: se
2827
+ }) : n?.length ? n.map((n, i) => {
2828
+ let a = r(n, i), o = B && V.has(a), s = String(a).replace(/[^a-z0-9]/gi, "_");
2829
+ return /* @__PURE__ */ D(t, { children: [/* @__PURE__ */ D("tr", {
2830
+ className: [b && x?.has(a) ? "is-selected" : "", te ? "wui-row-link" : ""].filter(Boolean).join(" ") || void 0,
2831
+ "data-status": P?.(n) || void 0,
2832
+ "data-href": F?.(n) || void 0,
2833
+ tabIndex: te ? 0 : void 0,
2834
+ onClick: te ? (e) => re(n, e) : void 0,
2835
+ onAuxClick: te && F ? (e) => e.button === 1 && re(n, e) : void 0,
2836
+ onKeyDown: te ? (e) => {
2837
+ e.key === "Enter" && e.target === e.currentTarget && re(n, e);
2838
+ } : void 0,
2839
+ children: [
2840
+ B && /* @__PURE__ */ E("td", {
2841
+ className: "wui-expand-cell",
2842
+ children: /* @__PURE__ */ E("button", {
2843
+ type: "button",
2844
+ className: `wui-expand-toggle${o ? " is-open" : ""}`,
2845
+ "aria-expanded": o,
2846
+ "aria-controls": o ? `${s}-expanded` : void 0,
2847
+ "aria-label": o ? "Collapse row" : "Expand row",
2848
+ onClick: () => ee(a),
2849
+ children: /* @__PURE__ */ E(Y, {
2850
+ name: "chevron-down",
2851
+ size: 16
2852
+ })
2695
2853
  })
2696
- })
2697
- }),
2698
- v && /* @__PURE__ */ E("td", {
2699
- className: "wui-select-cell",
2700
- children: /* @__PURE__ */ E("input", {
2701
- type: "checkbox",
2702
- className: "wui-check",
2703
- checked: y?.has(a) || !1,
2704
- onChange: () => b?.(a),
2705
- "aria-label": "Select row"
2706
- })
2707
- }),
2708
- e.map((e, t) => /* @__PURE__ */ E("td", {
2709
- className: (t === 0 ? "wui-name-cell " : "") + nn(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
2710
- style: e.cellStyle,
2711
- children: e.render ? e.render(n) : rn(n[e.key])
2712
- }, e.key)),
2713
- d && /* @__PURE__ */ E("td", { children: /* @__PURE__ */ E("div", {
2714
- className: "u-row-actions",
2715
- children: d(n)
2716
- }) })
2717
- ]
2718
- }), o && /* @__PURE__ */ E("tr", {
2719
- className: "wui-row-expanded",
2720
- children: /* @__PURE__ */ E("td", {
2721
- id: `${s}-expanded`,
2722
- colSpan: j,
2723
- children: S(n)
2724
- })
2725
- })] }, a);
2726
- }) : null })]
2727
- }), !o && !n?.length && /* @__PURE__ */ E("div", {
2854
+ }),
2855
+ b && /* @__PURE__ */ E("td", {
2856
+ className: "wui-select-cell",
2857
+ children: /* @__PURE__ */ E("input", {
2858
+ type: "checkbox",
2859
+ className: "wui-check",
2860
+ checked: x?.has(a) || !1,
2861
+ onChange: () => S?.(a),
2862
+ "aria-label": "Select row"
2863
+ })
2864
+ }),
2865
+ e.map((e, t) => /* @__PURE__ */ E("td", {
2866
+ className: (t === 0 ? "wui-name-cell " : "") + (e.nowrap ? "text-nowrap " : "") + ln(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
2867
+ style: e.cellStyle,
2868
+ "data-label": M && typeof e.label == "string" ? e.label : void 0,
2869
+ children: e.render ? e.render(n) : un(n[e.key])
2870
+ }, e.key)),
2871
+ m && /* @__PURE__ */ E("td", { children: /* @__PURE__ */ E("div", {
2872
+ className: "u-row-actions",
2873
+ children: m(n)
2874
+ }) })
2875
+ ]
2876
+ }), o && /* @__PURE__ */ E("tr", {
2877
+ className: "wui-row-expanded",
2878
+ children: /* @__PURE__ */ E("td", {
2879
+ id: `${s}-expanded`,
2880
+ colSpan: se,
2881
+ children: w(n)
2882
+ })
2883
+ })] }, a);
2884
+ }) : null }),
2885
+ U && !s && n?.length > 0 && /* @__PURE__ */ E("tfoot", { children: /* @__PURE__ */ D("tr", { children: [
2886
+ B && /* @__PURE__ */ E("td", { className: "wui-expand-cell" }),
2887
+ b && /* @__PURE__ */ E("td", { className: "wui-select-cell" }),
2888
+ e.map((e, t) => /* @__PURE__ */ E("td", {
2889
+ className: (t === 0 ? "wui-name-cell " : "") + (e.nowrap ? "text-nowrap " : "") + ln(e.align),
2890
+ children: e.footer ? e.footer(n) : null
2891
+ }, e.key)),
2892
+ m && /* @__PURE__ */ E("td", {})
2893
+ ] }) })
2894
+ ]
2895
+ }), !s && !n?.length && /* @__PURE__ */ E("div", {
2728
2896
  className: "tbl-empty-block",
2729
- children: typeof I == "string" ? /* @__PURE__ */ E("div", {
2897
+ children: typeof de == "string" ? /* @__PURE__ */ E("div", {
2730
2898
  className: "tbl-empty-plain",
2731
- children: I
2732
- }) : I
2899
+ children: de
2900
+ }) : de
2733
2901
  })]
2734
- }), m && m.total > 0 && /* @__PURE__ */ E(tn, {
2735
- page: m.page,
2736
- totalPages: m.totalPages,
2737
- pageSize: m.pageSize,
2738
- total: m.total,
2739
- firstRow: m.firstRow,
2740
- lastRow: m.lastRow,
2741
- onPageChange: m.setPage,
2742
- onPageSizeChange: m.setPageSize,
2743
- pageSizes: m.pageSizes,
2744
- mode: m.mode
2902
+ }), g && g.total > 0 && /* @__PURE__ */ E(sn, {
2903
+ page: g.page,
2904
+ totalPages: g.totalPages,
2905
+ pageSize: g.pageSize,
2906
+ onPageChange: g.setPage,
2907
+ onPageSizeChange: g.setPageSize,
2908
+ pageSizes: g.pageSizes,
2909
+ mode: g.mode
2745
2910
  })] });
2746
2911
  }
2747
2912
  //#endregion
2748
2913
  //#region src/components/AppDatePicker.jsx
2749
- var on = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, placeholder: u = "Enter Date", disabled: d, size: f, firstDay: p, id: m, ariaLabel: h, className: g = "", fieldClassName: _ = "", ...v }, y) {
2914
+ var fn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, placeholder: u = "Enter Date", disabled: d, size: f, firstDay: p, id: m, ariaLabel: h, className: g = "", fieldClassName: _ = "", ...v }, y) {
2750
2915
  W("AppDatePicker", v);
2751
2916
  let b = s(), x = m || b, { setRef: S } = Q({
2752
2917
  ref: y,
@@ -2790,7 +2955,7 @@ var on = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
2790
2955
  })
2791
2956
  ]
2792
2957
  });
2793
- }), sn = i(function({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: a, error: c, startName: l, endName: u, min: d, max: f, placeholder: p = "Start – End", disabled: m, size: h, firstDay: g, id: _, ariaLabel: v, className: y = "", fieldClassName: b = "", ...x }, S) {
2958
+ }), pn = i(function({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: a, error: c, startName: l, endName: u, min: d, max: f, placeholder: p = "Start – End", disabled: m, size: h, firstDay: g, id: _, ariaLabel: v, className: y = "", fieldClassName: b = "", ...x }, S) {
2794
2959
  W("AppDateRangePicker", x);
2795
2960
  let C = s(), w = _ || C, { setRef: T, innerRef: O } = Q({
2796
2961
  ref: S,
@@ -2851,7 +3016,7 @@ var on = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
2851
3016
  });
2852
3017
  //#endregion
2853
3018
  //#region src/components/AppDescriptions.jsx
2854
- function cn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
3019
+ function mn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
2855
3020
  return W("AppDescriptions", o), /* @__PURE__ */ D("div", {
2856
3021
  className: [
2857
3022
  "descs",
@@ -2867,7 +3032,7 @@ function cn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
2867
3032
  }), /* @__PURE__ */ E("dl", {
2868
3033
  className: "descs-list",
2869
3034
  children: e.map((e, t) => {
2870
- let n = Lt(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
3035
+ let n = Ht(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
2871
3036
  return /* @__PURE__ */ D("div", {
2872
3037
  className: "descs-item",
2873
3038
  style: { "--descs-span": r },
@@ -2884,96 +3049,17 @@ function cn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
2884
3049
  });
2885
3050
  }
2886
3051
  //#endregion
2887
- //#region src/components/AppDropdown.jsx
2888
- var ln = !1;
2889
- function un() {
2890
- let e = !0;
2891
- try {
2892
- e = process.env.NODE_ENV !== "production";
2893
- } catch {
2894
- e = !0;
2895
- }
2896
- !e || ln || (ln = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
2897
- }
2898
- function dn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: s = [], menuClassName: c = "", linkComponent: l, children: u, trigger: d, ...p }) {
2899
- W("AppDropdown", p), !d && !i && !r && un();
2900
- let m = n ?? (d ? "wui-dropdown-trigger" : "topbar-icon-btn"), [h, g] = f(!1);
2901
- return o(() => {
2902
- if (!h) return;
2903
- let e = () => g(!1);
2904
- return window.addEventListener("scroll", e, {
2905
- capture: !0,
2906
- passive: !0
2907
- }), window.addEventListener("resize", e), () => {
2908
- window.removeEventListener("scroll", e, { capture: !0 }), window.removeEventListener("resize", e);
2909
- };
2910
- }, [h]), /* @__PURE__ */ D(v, {
2911
- align: a,
2912
- show: h,
2913
- onToggle: (e) => g(e),
2914
- ...p,
2915
- children: [/* @__PURE__ */ E(v.Toggle, {
2916
- as: fn,
2917
- icon: e,
2918
- iconSize: t,
2919
- btnClassName: m,
2920
- trigger: d,
2921
- title: r,
2922
- "aria-label": i ?? (d ? void 0 : r)
2923
- }), /* @__PURE__ */ E(v.Menu, {
2924
- className: c,
2925
- renderOnMount: !0,
2926
- popperConfig: { strategy: "fixed" },
2927
- children: u ?? s.map((e) => {
2928
- if (e.divider) return /* @__PURE__ */ E(v.Divider, {}, e.key);
2929
- let t = e.to ? l ? {
2930
- as: l,
2931
- to: e.to
2932
- } : {
2933
- as: "a",
2934
- href: e.to
2935
- } : {
2936
- as: "button",
2937
- type: "button"
2938
- };
2939
- return /* @__PURE__ */ D(v.Item, {
2940
- ...t,
2941
- onClick: e.onClick,
2942
- className: e.danger ? "danger" : void 0,
2943
- children: [e.image ? /* @__PURE__ */ E("img", {
2944
- src: e.image,
2945
- alt: ""
2946
- }) : X(e.icon, { size: 16 }), e.label]
2947
- }, e.key);
2948
- })
2949
- })]
2950
- });
2951
- }
2952
- var fn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
2953
- return /* @__PURE__ */ E("button", {
2954
- ref: s,
2955
- type: "button",
2956
- className: n,
2957
- "aria-label": i,
2958
- ...o,
2959
- children: r ?? /* @__PURE__ */ E(Y, {
2960
- name: e,
2961
- size: t
2962
- })
2963
- });
2964
- });
2965
- //#endregion
2966
3052
  //#region src/lib/fileItem.js
2967
- function pn(e) {
3053
+ function hn(e) {
2968
3054
  return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
2969
3055
  }
2970
- function mn(e) {
3056
+ function gn(e) {
2971
3057
  return e instanceof File ? e.name : e?.name;
2972
3058
  }
2973
- function hn(e) {
3059
+ function _n(e) {
2974
3060
  return e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
2975
3061
  }
2976
- function gn(e, t) {
3062
+ function vn(e, t) {
2977
3063
  let [n, r] = f(null);
2978
3064
  return o(() => {
2979
3065
  if (!t) {
@@ -2989,8 +3075,8 @@ function gn(e, t) {
2989
3075
  }
2990
3076
  //#endregion
2991
3077
  //#region src/lib/FileItemRow.jsx
2992
- function _n({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
2993
- let i = gn(e, t), a = mn(e), o = hn(e);
3078
+ function yn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
3079
+ let i = vn(e, t), a = gn(e), o = _n(e);
2994
3080
  return /* @__PURE__ */ D("div", {
2995
3081
  className: "attach-item",
2996
3082
  children: [
@@ -3029,9 +3115,9 @@ function _n({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
3029
3115
  }
3030
3116
  //#endregion
3031
3117
  //#region src/components/AppFileAttachment.jsx
3032
- function vn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = k, maxSizeMb: o = A, optional: c = !1, validate: l = !0, error: u, id: d, ...p }) {
3118
+ function bn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = k, maxSizeMb: o = A, optional: c = !1, validate: l = !0, error: u, id: d, ...p }) {
3033
3119
  W("AppFileAttachment", p);
3034
- let m = s(), h = d || m, [g, _] = f(""), v = i && Array.isArray(t) ? t : t ? [t] : [], y = F(a), b = (e) => e instanceof File ? P(e) : y || P(e), x = !i && v.length === 1 && b(v[0]), S = yn(a, o);
3120
+ let m = s(), h = d || m, [g, _] = f(""), v = i && Array.isArray(t) ? t : t ? [t] : [], y = F(a), b = (e) => e instanceof File ? P(e) : y || P(e), x = !i && v.length === 1 && b(v[0]), S = xn(a, o);
3035
3121
  function C(e) {
3036
3122
  let n = Array.from(e.target.files || []);
3037
3123
  if (e.target.value = "", !n.length) return;
@@ -3048,8 +3134,8 @@ function vn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
3048
3134
  s.push(e);
3049
3135
  }
3050
3136
  if (_(c), s.length) if (i) {
3051
- let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(pn));
3052
- r(e.concat(s.filter((e) => !n.has(pn(e)))));
3137
+ let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(hn));
3138
+ r(e.concat(s.filter((e) => !n.has(hn(e)))));
3053
3139
  } else r(s[0]);
3054
3140
  }
3055
3141
  function w(e) {
@@ -3104,17 +3190,17 @@ function vn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
3104
3190
  onChange: C,
3105
3191
  ...p
3106
3192
  })] }),
3107
- x ? /* @__PURE__ */ E(bn, {
3193
+ x ? /* @__PURE__ */ E(Sn, {
3108
3194
  item: v[0],
3109
3195
  isImage: !0,
3110
3196
  onRemove: () => w(0)
3111
3197
  }) : v.length > 0 && /* @__PURE__ */ E("div", {
3112
3198
  className: "attach-list",
3113
- children: v.map((e, t) => /* @__PURE__ */ E(_n, {
3199
+ children: v.map((e, t) => /* @__PURE__ */ E(yn, {
3114
3200
  item: e,
3115
3201
  isImage: b(e),
3116
3202
  onRemove: () => w(t)
3117
- }, pn(e)))
3203
+ }, hn(e)))
3118
3204
  }),
3119
3205
  O && /* @__PURE__ */ E("div", {
3120
3206
  className: "field-error",
@@ -3124,12 +3210,12 @@ function vn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
3124
3210
  ]
3125
3211
  });
3126
3212
  }
3127
- function yn(e, t) {
3213
+ function xn(e, t) {
3128
3214
  let n = e?.trim() ? j(e) : "", r = t > 0 ? `up to ${t} MB` : "";
3129
3215
  return n && r ? `${n}, ${r}` : r ? `Up to ${t} MB` : n;
3130
3216
  }
3131
- function bn({ item: e, isImage: t, onRemove: n }) {
3132
- let r = gn(e, t), i = mn(e), a = hn(e);
3217
+ function Sn({ item: e, isImage: t, onRemove: n }) {
3218
+ let r = vn(e, t), i = gn(e), a = _n(e);
3133
3219
  return /* @__PURE__ */ D("div", {
3134
3220
  className: "attach-preview",
3135
3221
  children: [/* @__PURE__ */ D("div", {
@@ -3161,7 +3247,7 @@ function bn({ item: e, isImage: t, onRemove: n }) {
3161
3247
  }
3162
3248
  //#endregion
3163
3249
  //#region src/components/AppFilePicker.jsx
3164
- function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, maxFiles: c, accept: l = ".jpg,.jpeg,.png", maxSizeMb: u = A, required: p, error: m, hint: h, loading: g = !1, className: _ = "", fieldClassName: v = "", style: y, ...b }) {
3250
+ function Cn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, maxFiles: c, accept: l = ".jpg,.jpeg,.png", maxSizeMb: u = A, required: p, error: m, hint: h, loading: g = !1, className: _ = "", fieldClassName: v = "", style: y, ...b }) {
3165
3251
  W("AppFilePicker", b);
3166
3252
  let [x, S] = f(null), [C, w] = f(!1), [T, O] = f(""), k = d(null), M = s(), N = r || M;
3167
3253
  o(() => {
@@ -3180,7 +3266,7 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
3180
3266
  }, se = (e) => {
3181
3267
  let n = Array.from(e || []);
3182
3268
  if (!n.length) return;
3183
- let r = Array.isArray(t) ? t : t ? [t] : [], a = new Set(r.map(pn)), o = "", s = [];
3269
+ let r = Array.isArray(t) ? t : t ? [t] : [], a = new Set(r.map(hn)), o = "", s = [];
3184
3270
  for (let e of n) {
3185
3271
  let t = L(e, {
3186
3272
  accept: l,
@@ -3190,7 +3276,7 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
3190
3276
  o ||= t;
3191
3277
  continue;
3192
3278
  }
3193
- a.has(pn(e)) || (a.add(pn(e)), s.push(e));
3279
+ a.has(hn(e)) || (a.add(hn(e)), s.push(e));
3194
3280
  }
3195
3281
  let d = r.concat(s);
3196
3282
  c && d.length > c && (d = d.slice(0, c), o ||= `Up to ${c} files.`), O(o), i(d);
@@ -3335,12 +3421,12 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
3335
3421
  de,
3336
3422
  a && I.length > 0 && /* @__PURE__ */ E("div", {
3337
3423
  className: "attach-list",
3338
- children: I.map((e, t) => /* @__PURE__ */ E(_n, {
3424
+ children: I.map((e, t) => /* @__PURE__ */ E(yn, {
3339
3425
  item: e,
3340
3426
  isImage: e instanceof File ? P(e) : H || P(e),
3341
3427
  noun: "file",
3342
3428
  onRemove: () => le(t)
3343
- }, pn(e)))
3429
+ }, hn(e)))
3344
3430
  })
3345
3431
  ]
3346
3432
  }),
@@ -3358,7 +3444,7 @@ function xn({ label: e, value: t, name: n, id: r, onPick: i, multiple: a = !1, m
3358
3444
  }
3359
3445
  //#endregion
3360
3446
  //#region src/components/AppFloatingDock.jsx
3361
- function Sn({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
3447
+ function wn({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
3362
3448
  return W("AppFloatingDock", s), /* @__PURE__ */ E("wui-dock", {
3363
3449
  role: "navigation",
3364
3450
  "aria-label": n,
@@ -3400,7 +3486,7 @@ function Sn({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation"
3400
3486
  }
3401
3487
  //#endregion
3402
3488
  //#region src/components/AppFormActions.jsx
3403
- function Cn({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
3489
+ function Tn({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
3404
3490
  return W("AppFormActions", i), /* @__PURE__ */ E("div", {
3405
3491
  className: [
3406
3492
  "form-actions",
@@ -3414,7 +3500,7 @@ function Cn({ children: e, sticky: t = !1, align: n = "end", className: r = "",
3414
3500
  }
3415
3501
  //#endregion
3416
3502
  //#region src/components/AppFormRow.jsx
3417
- function wn({ children: e, columns: t = 2, className: n = "", ...r }) {
3503
+ function En({ children: e, columns: t = 2, className: n = "", ...r }) {
3418
3504
  W("AppFormRow", r);
3419
3505
  let { style: i, ...a } = r;
3420
3506
  return /* @__PURE__ */ E("div", {
@@ -3429,7 +3515,7 @@ function wn({ children: e, columns: t = 2, className: n = "", ...r }) {
3429
3515
  }
3430
3516
  //#endregion
3431
3517
  //#region src/components/AppFormSection.jsx
3432
- function Tn({ children: e, title: t, description: n, className: r = "", ...i }) {
3518
+ function Dn({ children: e, title: t, description: n, className: r = "", ...i }) {
3433
3519
  return W("AppFormSection", i), /* @__PURE__ */ D("section", {
3434
3520
  className: ["form-section", r].filter(Boolean).join(" "),
3435
3521
  ...i,
@@ -3450,12 +3536,12 @@ function Tn({ children: e, title: t, description: n, className: r = "", ...i })
3450
3536
  }
3451
3537
  //#endregion
3452
3538
  //#region src/components/AppInfoList.jsx
3453
- function En({ items: e = [], className: t = "", ...n }) {
3539
+ function On({ items: e = [], className: t = "", ...n }) {
3454
3540
  return W("AppInfoList", n), /* @__PURE__ */ E("div", {
3455
3541
  className: `info-list${t ? ` ${t}` : ""}`,
3456
3542
  ...n,
3457
3543
  children: e.map((e, t) => {
3458
- let n = Lt(e.value), r = /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
3544
+ let n = Ht(e.value), r = /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
3459
3545
  className: "info-icon",
3460
3546
  children: X(e.icon, { size: 16 })
3461
3547
  }), /* @__PURE__ */ D("span", {
@@ -3481,23 +3567,23 @@ function En({ items: e = [], className: t = "", ...n }) {
3481
3567
  }
3482
3568
  //#endregion
3483
3569
  //#region src/components/AppKpiTile.jsx
3484
- var Dn = 48, On = 16;
3485
- function kn(e) {
3486
- if (!e || e.length < 2) return `0,${On / 2} ${Dn},${On / 2}`;
3487
- let t = Math.min(...e), n = Math.max(...e) - t, r = Dn / (e.length - 1);
3488
- return e.map((e, i) => `${i * r},${n === 0 ? On / 2 : On - (e - t) / n * On}`).join(" ");
3570
+ var kn = 48, An = 16;
3571
+ function jn(e) {
3572
+ if (!e || e.length < 2) return `0,${An / 2} ${kn},${An / 2}`;
3573
+ let t = Math.min(...e), n = Math.max(...e) - t, r = kn / (e.length - 1);
3574
+ return e.map((e, i) => `${i * r},${n === 0 ? An / 2 : An - (e - t) / n * An}`).join(" ");
3489
3575
  }
3490
- function An(e) {
3576
+ function Mn(e) {
3491
3577
  if (typeof e != "string") return "flat";
3492
3578
  let t = e.trim();
3493
3579
  return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
3494
3580
  }
3495
- function jn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, deltaDirection: o, sparkline: s, variant: c = "plain", size: l = "md", valueSize: u, inline: d = !1, attention: f = !1, href: p, linkComponent: m, className: h = "", style: g, iconClassName: _ = "", labelClassName: v = "", valueClassName: y = "", captionClassName: b = "", deltaClassName: x = "", sparklineClassName: S = "", ...C }) {
3581
+ function Nn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, deltaDirection: o, sparkline: s, variant: c = "plain", size: l = "md", valueSize: u, inline: d = !1, attention: f = !1, href: p, linkComponent: m, className: h = "", style: g, iconClassName: _ = "", labelClassName: v = "", valueClassName: y = "", captionClassName: b = "", deltaClassName: x = "", sparklineClassName: S = "", ...C }) {
3496
3582
  W("AppKpiTile", C);
3497
3583
  let w = `kpi${d ? " kpi-inline" : ""}${c === "filled" ? " kpi-filled" : c === "accent" ? " kpi-accent" : c === "spotlight" ? " kpi-spotlight" : ""}${l === "lg" ? " kpi-lg" : l === "sm" ? " kpi-sm" : ""}${f ? " kpi-attention" : ""}${h ? ` ${h}` : ""}`, T = typeof u == "number" && u > 0 ? {
3498
3584
  ...g,
3499
3585
  "--wui-kpi-value-size": `${u}px`
3500
- } : g, O = o ?? An(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
3586
+ } : g, O = o ?? Mn(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
3501
3587
  return p != null && (A = m ? {
3502
3588
  as: m,
3503
3589
  to: p
@@ -3535,12 +3621,12 @@ function jn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
3535
3621
  }),
3536
3622
  s && s.length > 0 && /* @__PURE__ */ E("svg", {
3537
3623
  className: `kpi-sparkline${S ? ` ${S}` : ""}`,
3538
- width: Dn,
3539
- height: On,
3540
- viewBox: `0 0 ${Dn} ${On}`,
3624
+ width: kn,
3625
+ height: An,
3626
+ viewBox: `0 0 ${kn} ${An}`,
3541
3627
  "aria-hidden": "true",
3542
3628
  children: /* @__PURE__ */ E("polyline", {
3543
- points: kn(s),
3629
+ points: jn(s),
3544
3630
  stroke: "currentColor",
3545
3631
  fill: "none"
3546
3632
  })
@@ -3550,11 +3636,11 @@ function jn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
3550
3636
  }
3551
3637
  //#endregion
3552
3638
  //#region src/components/AppLink.jsx
3553
- var Mn = {
3639
+ var Pn = {
3554
3640
  sm: 13,
3555
3641
  md: 15,
3556
3642
  lg: 18
3557
- }, Nn = [
3643
+ }, Fn = [
3558
3644
  "underline",
3559
3645
  "underline-center",
3560
3646
  "static",
@@ -3568,35 +3654,35 @@ var Mn = {
3568
3654
  "shine",
3569
3655
  "none"
3570
3656
  ];
3571
- function Pn(e, t, n) {
3657
+ function In(e, t, n) {
3572
3658
  if (!e) return null;
3573
3659
  let r = `wui-link__ic wui-link__ic--${t}`;
3574
3660
  return typeof e == "string" ? /* @__PURE__ */ E("span", {
3575
3661
  className: r,
3576
3662
  children: /* @__PURE__ */ E(Y, {
3577
3663
  name: e,
3578
- size: Mn[n] ?? Mn.md
3664
+ size: Pn[n] ?? Pn.md
3579
3665
  })
3580
3666
  }) : /* @__PURE__ */ E("span", {
3581
3667
  className: r,
3582
3668
  children: e
3583
3669
  });
3584
3670
  }
3585
- function Fn({ children: e, label: t, href: n, animation: r = "underline", leftIcon: i = null, rightIcon: a = null, size: o = "md", external: s = !1, disabled: c = !1, linkComponent: l, className: u = "", ...d }) {
3586
- W("AppLink", d), G("AppLink", "animation", r, Nn), G("AppLink", "size", o, Object.keys(Mn));
3587
- let f = Nn.includes(r) ? r : "underline", p = f === "icon" && !a && !i ? "arrow-right" : a, m = [
3671
+ function Ln({ children: e, label: t, href: n, animation: r = "underline", leftIcon: i = null, rightIcon: a = null, size: o = "md", external: s = !1, disabled: c = !1, linkComponent: l, className: u = "", ...d }) {
3672
+ W("AppLink", d), G("AppLink", "animation", r, Fn), G("AppLink", "size", o, Object.keys(Pn));
3673
+ let f = Fn.includes(r) ? r : "underline", p = f === "icon" && !a && !i ? "arrow-right" : a, m = [
3588
3674
  "wui-link",
3589
3675
  `wui-link--${f}`,
3590
3676
  o === "md" ? "" : `wui-link--${o}`,
3591
3677
  c ? "is-disabled" : "",
3592
3678
  u
3593
3679
  ].filter(Boolean).join(" "), h = /* @__PURE__ */ D(T, { children: [
3594
- Pn(i, "left", o),
3680
+ In(i, "left", o),
3595
3681
  /* @__PURE__ */ E("span", {
3596
3682
  className: "wui-link__label",
3597
3683
  children: e ?? t
3598
3684
  }),
3599
- Pn(p, "right", o)
3685
+ In(p, "right", o)
3600
3686
  ] });
3601
3687
  return c ? /* @__PURE__ */ E("span", {
3602
3688
  className: m,
@@ -3619,13 +3705,13 @@ function Fn({ children: e, label: t, href: n, animation: r = "underline", leftIc
3619
3705
  }
3620
3706
  //#endregion
3621
3707
  //#region src/components/AppLogoPicker.jsx
3622
- var In = {
3708
+ var Rn = {
3623
3709
  sm: 72,
3624
3710
  md: 120,
3625
3711
  lg: 160
3626
3712
  };
3627
- function Ln({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a = !1, disabled: c = !1, accept: l = "image/png,image/jpeg,image/webp", maxSizeMb: u = A, overlayIcon: p = "image", overlayLabel: m = "Update photo", ariaLabel: h = "Upload photo", label: g, hint: _, error: v, layout: y = "stacked", title: b, subtitle: x, required: S = !1, variant: C = "initials", size: w = "md", shape: T = "circle", className: O = "", ...k }) {
3628
- W("AppLogoPicker", k), G("AppLogoPicker", "size", typeof w == "string" ? w : null, Object.keys(In));
3713
+ function zn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a = !1, disabled: c = !1, accept: l = "image/png,image/jpeg,image/webp", maxSizeMb: u = A, overlayIcon: p = "image", overlayLabel: m = "Update photo", ariaLabel: h = "Upload photo", label: g, hint: _, error: v, layout: y = "stacked", title: b, subtitle: x, required: S = !1, variant: C = "initials", size: w = "md", shape: T = "circle", className: O = "", ...k }) {
3714
+ W("AppLogoPicker", k), G("AppLogoPicker", "size", typeof w == "string" ? w : null, Object.keys(Rn));
3629
3715
  let j = d(null), M = s(), [N, P] = f(null), [F, I] = f(""), [R, z] = f(!1), [B, V] = f(!1);
3630
3716
  o(() => () => N && URL.revokeObjectURL(N), [N]), o(() => {
3631
3717
  P(null), z(!1);
@@ -3651,7 +3737,7 @@ function Ln({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
3651
3737
  t && ae(t);
3652
3738
  }, K = () => {
3653
3739
  P(null), I(""), z(!1), j.current && (j.current.value = ""), i?.();
3654
- }, ce = typeof w == "number" ? w : In[w] ?? In.md, le = Math.max(14, Math.round(ce * .18)), ue = Math.round(ce * .5), de = [
3740
+ }, ce = typeof w == "number" ? w : Rn[w] ?? Rn.md, le = Math.max(14, Math.round(ce * .18)), ue = Math.round(ce * .5), de = [
3655
3741
  "set-uploader",
3656
3742
  C === "avatar" ? "set-uploader--avatar" : "",
3657
3743
  T === "rounded" ? "set-uploader--rounded" : T === "square" ? "set-uploader--square" : "",
@@ -3781,27 +3867,27 @@ function Ln({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
3781
3867
  }
3782
3868
  //#endregion
3783
3869
  //#region src/components/AppMeter.jsx
3784
- var Rn = [
3870
+ var Bn = [
3785
3871
  "info",
3786
3872
  "success",
3787
3873
  "warning",
3788
3874
  "danger",
3789
3875
  "neutral"
3790
3876
  ];
3791
- function zn(e, t, n) {
3877
+ function Vn(e, t, n) {
3792
3878
  let r = n - t;
3793
3879
  if (!(r > 0)) return 0;
3794
3880
  let i = Math.min(100, Math.max(0, (e - t) / r * 100));
3795
3881
  return Number(i.toFixed(2));
3796
3882
  }
3797
- function Bn(e, t, n, r, i) {
3883
+ function Hn(e, t, n, r, i) {
3798
3884
  if (t == null && n == null) return i;
3799
3885
  let a = "mid";
3800
3886
  return t != null && e <= t ? a = "low" : n != null && e >= n && (a = "high"), r === "low" ? a === "low" ? "success" : a === "high" ? "danger" : "warning" : a === "high" ? "success" : a === "low" ? "danger" : "warning";
3801
3887
  }
3802
- function Vn({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum: i = "high", low: a, high: o, size: s = "md", label: c, showLabel: l = !1, className: u = "", ...d }) {
3888
+ function Un({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum: i = "high", low: a, high: o, size: s = "md", label: c, showLabel: l = !1, className: u = "", ...d }) {
3803
3889
  W("AppMeter", d);
3804
- let f = Bn(e, a, o, i, Rn.includes(r) ? r : "info"), p = zn(e, t, n);
3890
+ let f = Hn(e, a, o, i, Bn.includes(r) ? r : "info"), p = Vn(e, t, n);
3805
3891
  return /* @__PURE__ */ E("div", {
3806
3892
  className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
3807
3893
  role: "meter",
@@ -3819,7 +3905,7 @@ function Vn({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
3819
3905
  }
3820
3906
  //#endregion
3821
3907
  //#region src/components/AppMultiSelect.jsx
3822
- var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Select…", searchPlaceholder: i = "Search…", searchable: a = !0, disabled: c = !1, icon: l, size: u, collapseChips: d = !1, allowCustom: f = !1, validateCustom: p, customPattern: m, customInvalidMessage: h, name: g, id: _, label: v, error: y, hint: b, required: x = !1, help: S, helpLabel: C = "More information", fieldClassName: w = "", ...T }, O) {
3908
+ var Wn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Select…", searchPlaceholder: i = "Search…", searchable: a = !0, disabled: c = !1, icon: l, size: u, collapseChips: d = !1, allowCustom: f = !1, validateCustom: p, customPattern: m, customInvalidMessage: h, name: g, id: _, label: v, error: y, hint: b, required: x = !1, help: S, helpLabel: C = "More information", fieldClassName: w = "", ...T }, O) {
3823
3909
  W("AppMultiSelect", T);
3824
3910
  let k = s(), A = _ || k, { setRef: j, innerRef: M } = Q({
3825
3911
  ref: O,
@@ -3882,7 +3968,7 @@ var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
3882
3968
  }) : null
3883
3969
  ]
3884
3970
  });
3885
- }), Un = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: c, onChange: l, min: u, max: d, step: p = 1, precision: m = 0, unit: h, size: g = "md", id: _, name: v, className: b = "", fieldClassName: x = "", disabled: S = !1, ...C }, w) {
3971
+ }), Gn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: c, onChange: l, min: u, max: d, step: p = 1, precision: m = 0, unit: h, size: g = "md", id: _, name: v, className: b = "", fieldClassName: x = "", disabled: S = !1, ...C }, w) {
3886
3972
  W("AppNumberInput", C);
3887
3973
  let T = s(), O = _ || T, k = (e) => {
3888
3974
  if (m === 0) return Math.round(e);
@@ -4005,7 +4091,7 @@ var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
4005
4091
  }) : null
4006
4092
  ]
4007
4093
  });
4008
- }), Wn = i(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: o = !1, hint: c, error: l, disabled: u = !1, name: d, id: f, className: p = "", fieldClassName: m = "", ...h }, g) {
4094
+ }), Kn = i(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: o = !1, hint: c, error: l, disabled: u = !1, name: d, id: f, className: p = "", fieldClassName: m = "", ...h }, g) {
4009
4095
  W("AppOtpInput", h);
4010
4096
  let _ = s(), v = f || _, y = l ? `${v}-error` : void 0, b = c ? `${v}-hint` : void 0, x = y || b, { setRef: S } = Q({
4011
4097
  ref: g,
@@ -4050,7 +4136,7 @@ var Hn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
4050
4136
  });
4051
4137
  //#endregion
4052
4138
  //#region src/components/AppPageHeader.jsx
4053
- function Gn({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", status: a, breadcrumbs: o, actions: s, size: c = "md", align: l = "start", divider: u = !1, sticky: d = !1, className: f = "", ...p }) {
4139
+ function qn({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", status: a, breadcrumbs: o, actions: s, size: c = "md", align: l = "start", divider: u = !1, sticky: d = !1, className: f = "", ...p }) {
4054
4140
  W("AppPageHeader", p);
4055
4141
  let m = [
4056
4142
  "page-header",
@@ -4109,9 +4195,9 @@ function Gn({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", s
4109
4195
  }
4110
4196
  //#endregion
4111
4197
  //#region src/components/AppPagination.jsx
4112
- function Kn({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
4198
+ function Jn({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
4113
4199
  if (W("AppPagination", s), t <= 1) return null;
4114
- let c = Qt(e, t, { siblingCount: r });
4200
+ let c = rn(e, t, { siblingCount: r });
4115
4201
  return /* @__PURE__ */ E("nav", {
4116
4202
  className: [
4117
4203
  "pagination-nav",
@@ -4169,7 +4255,7 @@ function Kn({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
4169
4255
  }
4170
4256
  //#endregion
4171
4257
  //#region src/components/AppPhoneNumberInput.jsx
4172
- var qn = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, id: a, label: o = "Phone number", placeholder: c, required: l = !1, error: u, showFlag: d = !0, showDialCode: f = !0, size: p = "md", fieldClassName: m = "", ...h }, g) {
4258
+ var Yn = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, id: a, label: o = "Phone number", placeholder: c, required: l = !1, error: u, showFlag: d = !0, showDialCode: f = !0, size: p = "md", fieldClassName: m = "", ...h }, g) {
4173
4259
  W("AppPhoneNumberInput", h);
4174
4260
  let _ = s(), v = a || _, y = u && v ? `${v}-error` : void 0, { setRef: b } = Q({
4175
4261
  ref: g,
@@ -4210,7 +4296,7 @@ var qn = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name:
4210
4296
  });
4211
4297
  //#endregion
4212
4298
  //#region src/components/AppPricingCard.jsx
4213
- function Jn({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a, featured: o = !1, current: s = !1, badge: c = "Most popular", className: l = "", ...u }) {
4299
+ function Xn({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a, featured: o = !1, current: s = !1, badge: c = "Most popular", className: l = "", ...u }) {
4214
4300
  return W("AppPricingCard", u), /* @__PURE__ */ D("div", {
4215
4301
  className: [
4216
4302
  "plan-card",
@@ -4264,21 +4350,21 @@ function Jn({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
4264
4350
  }
4265
4351
  //#endregion
4266
4352
  //#region src/components/AppProgress.jsx
4267
- var Yn = [
4353
+ var Zn = [
4268
4354
  "info",
4269
4355
  "success",
4270
4356
  "warning",
4271
4357
  "danger",
4272
4358
  "neutral"
4273
4359
  ];
4274
- function Xn(e, t) {
4360
+ function Qn(e, t) {
4275
4361
  if (!(t > 0)) return 0;
4276
4362
  let n = Math.min(100, Math.max(0, e / t * 100));
4277
4363
  return Number(n.toFixed(2));
4278
4364
  }
4279
- function Zn({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", label: i, showLabel: a = !1, striped: o = !1, animated: s = !1, indeterminate: c = !1, className: l = "", ...u }) {
4365
+ function $n({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", label: i, showLabel: a = !1, striped: o = !1, animated: s = !1, indeterminate: c = !1, className: l = "", ...u }) {
4280
4366
  W("AppProgress", u);
4281
- let d = Yn.includes(n) ? n : "info", f = Xn(e, t), p = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, m = [
4367
+ let d = Zn.includes(n) ? n : "info", f = Qn(e, t), p = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, m = [
4282
4368
  "progress-bar",
4283
4369
  `wui-progress-${d}`,
4284
4370
  o || s ? "progress-bar-striped" : "",
@@ -4302,7 +4388,7 @@ function Zn({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
4302
4388
  }
4303
4389
  //#endregion
4304
4390
  //#region src/components/AppRadio.jsx
4305
- var Qn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
4391
+ var er = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
4306
4392
  return W("AppRadio", o), /* @__PURE__ */ E(vt, {
4307
4393
  ref: s,
4308
4394
  label: e,
@@ -4318,7 +4404,7 @@ var Qn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
4318
4404
  });
4319
4405
  //#endregion
4320
4406
  //#region src/components/AppRepeater.jsx
4321
- function $n({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, addLabel: a = "Add another", addVariant: o = "secondary", removeLabel: s = "Remove row", emptyText: c, min: l = 0, max: u, numbered: d = !0, className: f = "", ...p }) {
4407
+ function tr({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, addLabel: a = "Add another", addVariant: o = "secondary", removeLabel: s = "Remove row", emptyText: c, min: l = 0, max: u, numbered: d = !0, className: f = "", ...p }) {
4322
4408
  W("AppRepeater", p);
4323
4409
  let m = typeof u == "number" && e.length >= u, h = !!i && e.length > l;
4324
4410
  return /* @__PURE__ */ D("div", {
@@ -4370,7 +4456,7 @@ function $n({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, ad
4370
4456
  }
4371
4457
  //#endregion
4372
4458
  //#region src/components/AppResourceCard.jsx
4373
- function er({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
4459
+ function nr({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
4374
4460
  W("AppResourceCard", s);
4375
4461
  let c = /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
4376
4462
  className: "res-card-icon",
@@ -4404,7 +4490,7 @@ function er({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
4404
4490
  }
4405
4491
  //#endregion
4406
4492
  //#region src/components/AppResult.jsx
4407
- var tr = {
4493
+ var rr = {
4408
4494
  success: {
4409
4495
  icon: "check-circle",
4410
4496
  tone: "success"
@@ -4425,9 +4511,9 @@ var tr = {
4425
4511
  404: { tone: "muted" },
4426
4512
  500: { tone: "muted" }
4427
4513
  };
4428
- function nr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
4429
- W("AppResult", s), G("AppResult", "status", e, Object.keys(tr));
4430
- let c = tr[e] || tr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
4514
+ function ir({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
4515
+ W("AppResult", s), G("AppResult", "status", e, Object.keys(rr));
4516
+ let c = rr[e] || rr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
4431
4517
  return /* @__PURE__ */ D("div", {
4432
4518
  className: [
4433
4519
  "result",
@@ -4465,7 +4551,7 @@ function nr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
4465
4551
  }
4466
4552
  //#endregion
4467
4553
  //#region src/components/AppScrollbar.jsx
4468
- function rr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
4554
+ function ar({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
4469
4555
  return W("AppScrollbar", i), /* @__PURE__ */ E("div", {
4470
4556
  className: t ? `wui-scroll ${t}` : "wui-scroll",
4471
4557
  style: n == null ? r : {
@@ -4478,7 +4564,7 @@ function rr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
4478
4564
  }
4479
4565
  //#endregion
4480
4566
  //#region src/components/AppSearch.jsx
4481
- function ir({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search…", ariaLabel: i, iconSize: a = 18, size: o, loading: s = !1, disabled: c = !1, className: l = "", ...u }) {
4567
+ function or({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search…", ariaLabel: i, iconSize: a = 18, size: o, loading: s = !1, disabled: c = !1, className: l = "", ...u }) {
4482
4568
  W("AppSearch", u);
4483
4569
  let d = t || n;
4484
4570
  return /* @__PURE__ */ D("div", {
@@ -4525,17 +4611,17 @@ function ir({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
4525
4611
  }
4526
4612
  //#endregion
4527
4613
  //#region src/components/AppSegmented.jsx
4528
- var ar = {
4614
+ var sr = {
4529
4615
  sm: "segmented-sm",
4530
4616
  md: "",
4531
4617
  lg: "segmented-lg",
4532
4618
  xl: "wui-segmented-xl"
4533
4619
  };
4534
- function or({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: c = !1, bordered: u = !0, disabled: f = !1, className: p = "", ...m }) {
4535
- W("AppSegmented", m), G("AppSegmented", "size", a, Object.keys(ar));
4620
+ function cr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: c = !1, bordered: u = !0, disabled: f = !1, className: p = "", ...m }) {
4621
+ W("AppSegmented", m), G("AppSegmented", "size", a, Object.keys(sr));
4536
4622
  let h = s(), g = i || h, _ = d(null), v = d(null), y = [
4537
4623
  "segmented",
4538
- ar[a] ?? "",
4624
+ sr[a] ?? "",
4539
4625
  c ? "segmented-full" : "",
4540
4626
  u ? "" : "wui-segmented-borderless",
4541
4627
  f ? "is-disabled" : "",
@@ -4606,7 +4692,7 @@ function or({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
4606
4692
  }
4607
4693
  //#endregion
4608
4694
  //#region src/components/AppSelect.jsx
4609
- var sr = (e) => e == null ? "" : e.label ?? e.text ?? "", cr = i(function({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", searchPlaceholder: i = "Search...", searchable: a = !1, clearable: c = !1, size: l, icon: u, prefix: d, suffix: f, floatingLabel: p = !1, disabled: m, label: h, required: g = !1, error: _, hint: v, help: y, helpLabel: b = "More information", id: x, name: S, className: C = "", fieldClassName: w = "", "aria-label": T, "aria-labelledby": O, "aria-describedby": k, ...A }, j) {
4695
+ var lr = (e) => e == null ? "" : e.label ?? e.text ?? "", ur = i(function({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", searchPlaceholder: i = "Search...", searchable: a = !1, clearable: c = !1, size: l, icon: u, prefix: d, suffix: f, floatingLabel: p = !1, disabled: m, label: h, required: g = !1, error: _, hint: v, help: y, helpLabel: b = "More information", id: x, name: S, className: C = "", fieldClassName: w = "", "aria-label": T, "aria-labelledby": O, "aria-describedby": k, ...A }, j) {
4610
4696
  W("AppSelect", A);
4611
4697
  let M = s(), { setRef: N, innerRef: P } = Q({
4612
4698
  ref: j,
@@ -4618,7 +4704,7 @@ var sr = (e) => e == null ? "" : e.label ?? e.text ?? "", cr = i(function({ valu
4618
4704
  if (!e) return;
4619
4705
  let t = n.map((e) => ({
4620
4706
  value: e.value,
4621
- label: sr(e),
4707
+ label: lr(e),
4622
4708
  icon: e.icon
4623
4709
  }));
4624
4710
  Ze(t, e.options) || (e.options = t);
@@ -4692,7 +4778,7 @@ var sr = (e) => e == null ? "" : e.label ?? e.text ?? "", cr = i(function({ valu
4692
4778
  });
4693
4779
  //#endregion
4694
4780
  //#region src/components/AppShell.jsx
4695
- function lr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r, sidebarFooter: i, topbarStart: a, topbarEnd: s, footer: c, children: l, collapsed: u, onCollapsedChange: d, noSidebar: p = !1, navLabel: m = "Main navigation", linkComponent: h, className: g = "", ..._ }) {
4781
+ function dr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r, sidebarFooter: i, topbarStart: a, topbarEnd: s, footer: c, children: l, collapsed: u, onCollapsedChange: d, noSidebar: p = !1, navLabel: m = "Main navigation", linkComponent: h, className: g = "", ..._ }) {
4696
4782
  W("AppShell", _);
4697
4783
  let [v, y] = f(!1), [b, x] = f(!1), [S, C] = f(!1), w = u ?? v, T = () => {
4698
4784
  let e = !w;
@@ -4740,7 +4826,7 @@ function lr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
4740
4826
  children: [e.label && /* @__PURE__ */ E("div", {
4741
4827
  className: "app-nav-group-label",
4742
4828
  children: e.label
4743
- }), e.items.map((e) => /* @__PURE__ */ E(ur, {
4829
+ }), e.items.map((e) => /* @__PURE__ */ E(fr, {
4744
4830
  item: e,
4745
4831
  linkComponent: h,
4746
4832
  onNavigate: () => x(!1)
@@ -4807,7 +4893,7 @@ function lr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
4807
4893
  ]
4808
4894
  });
4809
4895
  }
4810
- function ur({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
4896
+ function fr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
4811
4897
  let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [s, c] = f(a);
4812
4898
  o(() => {
4813
4899
  a && !s && c(!0);
@@ -4849,7 +4935,7 @@ function ur({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
4849
4935
  "aria-hidden": !s || void 0,
4850
4936
  children: /* @__PURE__ */ E("div", {
4851
4937
  className: "app-nav-sub-inner",
4852
- children: e.children.map((e) => /* @__PURE__ */ E(ur, {
4938
+ children: e.children.map((e) => /* @__PURE__ */ E(fr, {
4853
4939
  item: e,
4854
4940
  linkComponent: t,
4855
4941
  onNavigate: n,
@@ -4890,7 +4976,7 @@ function ur({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
4890
4976
  }
4891
4977
  //#endregion
4892
4978
  //#region src/components/AppSidebarMenu.jsx
4893
- var dr = {
4979
+ var pr = {
4894
4980
  left: "start",
4895
4981
  right: "end",
4896
4982
  start: "start",
@@ -4898,9 +4984,9 @@ var dr = {
4898
4984
  top: "top",
4899
4985
  bottom: "bottom"
4900
4986
  };
4901
- function fr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, header: a, children: o, footer: s, width: c, maxWidth: l, backdrop: u = !0, scroll: d = !1, keyboard: f = !0, closeButton: p = !0, responsive: m, className: h = "", bodyClassName: g = "", ariaLabel: _, ...v }) {
4902
- W("AppSidebarMenu", v), G("AppSidebarMenu", "side", n, Object.keys(dr));
4903
- let { style: y, ...b } = v, S = dr[n] || "end", C = c || l || y ? {
4987
+ function mr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, header: a, children: o, footer: s, width: c, maxWidth: l, backdrop: u = !0, scroll: d = !1, keyboard: f = !0, closeButton: p = !0, responsive: m, className: h = "", bodyClassName: g = "", ariaLabel: _, ...v }) {
4988
+ W("AppSidebarMenu", v), G("AppSidebarMenu", "side", n, Object.keys(pr));
4989
+ let { style: y, ...b } = v, S = pr[n] || "end", C = c || l || y ? {
4904
4990
  ...c && { "--asm-width": c },
4905
4991
  ...l && { "--asm-max-width": l },
4906
4992
  ...y
@@ -4961,7 +5047,7 @@ function fr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
4961
5047
  }
4962
5048
  //#endregion
4963
5049
  //#region src/components/AppSlider.jsx
4964
- var pr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, label: a, required: c = !1, hint: l, error: u, name: d, startName: f, endName: p, min: m = 0, max: h = 100, step: g = 1, disabled: _, size: v, showValue: y, unit: b, id: x, ariaLabel: S, className: C = "", fieldClassName: w = "", ...T }, O) {
5050
+ var hr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, label: a, required: c = !1, hint: l, error: u, name: d, startName: f, endName: p, min: m = 0, max: h = 100, step: g = 1, disabled: _, size: v, showValue: y, unit: b, id: x, ariaLabel: S, className: C = "", fieldClassName: w = "", ...T }, O) {
4965
5051
  W("AppSlider", T);
4966
5052
  let k = s(), A = x || k, j = r, { setRef: M, innerRef: N } = Q({
4967
5053
  ref: O,
@@ -5022,14 +5108,14 @@ var pr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, la
5022
5108
  })
5023
5109
  ]
5024
5110
  });
5025
- }), mr = {
5111
+ }), gr = {
5026
5112
  sm: 44,
5027
5113
  md: 56,
5028
5114
  lg: 72
5029
5115
  };
5030
- function hr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
5031
- W("AppSplash", c), G("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(mr));
5032
- let { style: l, ...u } = c, d = typeof a == "number" ? a : mr[a] ?? mr.md, f = i === "ring" ? /* @__PURE__ */ E("span", {
5116
+ function _r({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
5117
+ W("AppSplash", c), G("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(gr));
5118
+ let { style: l, ...u } = c, d = typeof a == "number" ? a : gr[a] ?? gr.md, f = i === "ring" ? /* @__PURE__ */ E("span", {
5033
5119
  className: "splash-ring",
5034
5120
  "aria-hidden": "true"
5035
5121
  }) : i === "dots" ? /* @__PURE__ */ D("span", {
@@ -5076,7 +5162,7 @@ function hr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
5076
5162
  }
5077
5163
  //#endregion
5078
5164
  //#region src/components/AppStatusBadge.jsx
5079
- function gr({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tooltipPlacement: i, ...a }) {
5165
+ function vr({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tooltipPlacement: i, ...a }) {
5080
5166
  return W("AppStatusBadge", a), e == null || e === "" ? "-" : q(/* @__PURE__ */ E("span", {
5081
5167
  className: `status-label ${t}${n ? ` ${n}` : ""}`,
5082
5168
  ...a,
@@ -5085,7 +5171,7 @@ function gr({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tool
5085
5171
  }
5086
5172
  //#endregion
5087
5173
  //#region src/components/AppStepper.jsx
5088
- function _r({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
5174
+ function yr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
5089
5175
  W("AppStepper", c);
5090
5176
  let l = t === "journey";
5091
5177
  return /* @__PURE__ */ E("nav", {
@@ -5098,7 +5184,7 @@ function _r({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
5098
5184
  "aria-label": a,
5099
5185
  ...c,
5100
5186
  children: e.map((t, n) => {
5101
- let a = t.status || vr(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
5187
+ let a = t.status || br(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
5102
5188
  c = a === "done" ? /* @__PURE__ */ E(Y, {
5103
5189
  name: "check",
5104
5190
  size: 14
@@ -5162,12 +5248,12 @@ function _r({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
5162
5248
  })
5163
5249
  });
5164
5250
  }
5165
- function vr(e, t) {
5251
+ function br(e, t) {
5166
5252
  return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
5167
5253
  }
5168
5254
  //#endregion
5169
5255
  //#region src/components/AppSwitch.jsx
5170
- var yr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "round", className: o = "", ...s }, c) {
5256
+ var xr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "round", className: o = "", ...s }, c) {
5171
5257
  return W("AppSwitch", s), /* @__PURE__ */ E(vt, {
5172
5258
  ref: c,
5173
5259
  label: e,
@@ -5183,7 +5269,7 @@ var yr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "r
5183
5269
  });
5184
5270
  //#endregion
5185
5271
  //#region src/components/AppTableEmptyState.jsx
5186
- function br({ icon: e, title: t, text: n, action: r, ...i }) {
5272
+ function Sr({ icon: e, title: t, text: n, action: r, ...i }) {
5187
5273
  return W("AppTableEmptyState", i), /* @__PURE__ */ D("div", {
5188
5274
  className: "tbl-empty",
5189
5275
  ...i,
@@ -5208,9 +5294,47 @@ function br({ icon: e, title: t, text: n, action: r, ...i }) {
5208
5294
  });
5209
5295
  }
5210
5296
  //#endregion
5297
+ //#region src/components/AppTableToolbar.jsx
5298
+ function Cr({ filters: e, actions: t, selectedCount: n = 0, bulkActions: r, onClearSelection: i, className: a = "", ...o }) {
5299
+ W("AppTableToolbar", o);
5300
+ let s = n > 0;
5301
+ return /* @__PURE__ */ D("div", {
5302
+ className: `wui-table-toolbar${a ? ` ${a}` : ""}`,
5303
+ ...o,
5304
+ children: [/* @__PURE__ */ D("div", {
5305
+ className: "wui-table-toolbar-main",
5306
+ hidden: s,
5307
+ children: [/* @__PURE__ */ E("div", {
5308
+ className: "wui-table-toolbar-filters",
5309
+ children: e
5310
+ }), /* @__PURE__ */ E("div", {
5311
+ className: "wui-table-toolbar-actions",
5312
+ children: t
5313
+ })]
5314
+ }), /* @__PURE__ */ D("div", {
5315
+ className: "wui-table-toolbar-bulk",
5316
+ hidden: !s,
5317
+ children: [
5318
+ /* @__PURE__ */ D("span", {
5319
+ className: "wui-table-toolbar-count",
5320
+ "aria-live": "polite",
5321
+ children: [n, " selected"]
5322
+ }),
5323
+ r,
5324
+ i && /* @__PURE__ */ E("button", {
5325
+ type: "button",
5326
+ className: "btn btn-ghost btn-sm wui-table-toolbar-clear",
5327
+ onClick: i,
5328
+ children: "Clear"
5329
+ })
5330
+ ]
5331
+ })]
5332
+ });
5333
+ }
5334
+ //#endregion
5211
5335
  //#region src/components/AppTabs.jsx
5212
- var xr = 1, Sr = 28, Cr = .7;
5213
- function wr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "underline", orientation: s = "horizontal", size: c = "md", fitted: u = !1, activation: p = "automatic", ariaLabel: m, className: h = "", style: g, ..._ }) {
5336
+ var wr = 1, Tr = 28, Er = .7;
5337
+ function Dr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "underline", orientation: s = "horizontal", size: c = "md", fitted: u = !1, activation: p = "automatic", ariaLabel: m, className: h = "", style: g, ..._ }) {
5214
5338
  W("AppTabs", _);
5215
5339
  let v = d(null), y = d(null), b = s === "vertical", [x, S] = f(t);
5216
5340
  o(() => {
@@ -5222,7 +5346,7 @@ function wr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
5222
5346
  let e = v.current, t = y.current;
5223
5347
  if (!e || !t || b) return;
5224
5348
  let n = e.scrollWidth - e.clientWidth;
5225
- t.classList.toggle("is-overflow-start", e.scrollLeft > xr), t.classList.toggle("is-overflow-end", n > xr && e.scrollLeft < n - xr);
5349
+ t.classList.toggle("is-overflow-start", e.scrollLeft > wr), t.classList.toggle("is-overflow-end", n > wr && e.scrollLeft < n - wr);
5226
5350
  }, [b]), M = a(() => {
5227
5351
  let n = v.current;
5228
5352
  if (!n) return;
@@ -5238,7 +5362,7 @@ function wr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
5238
5362
  if (!e || b) return;
5239
5363
  let t = e.querySelector(".app-tab.active");
5240
5364
  if (!t) return;
5241
- let n = Sr, r = t.offsetLeft, i = r + t.offsetWidth;
5365
+ let n = Tr, r = t.offsetLeft, i = r + t.offsetWidth;
5242
5366
  r - n < e.scrollLeft ? e.scrollLeft = Math.max(0, r - n) : i + n > e.scrollLeft + e.clientWidth && (e.scrollLeft = i + n - e.clientWidth);
5243
5367
  }, [b]);
5244
5368
  l(() => {
@@ -5273,7 +5397,7 @@ function wr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
5273
5397
  }
5274
5398
  let I = (e) => {
5275
5399
  let t = v.current;
5276
- t && t.scrollBy({ left: e * t.clientWidth * Cr });
5400
+ t && t.scrollBy({ left: e * t.clientWidth * Er });
5277
5401
  }, L = [
5278
5402
  "app-tabs",
5279
5403
  i === "pills" ? "app-tabs-pills" : "",
@@ -5386,7 +5510,7 @@ function wr({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
5386
5510
  }
5387
5511
  //#endregion
5388
5512
  //#region src/components/AppTagInput.jsx
5389
- var Tr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r, label: i, error: a, hint: o, required: c = !1, size: l, maxTags: u, allowDuplicates: d = !1, disabled: f = !1, id: p, ariaLabel: m, className: h = "", fieldClassName: g = "", help: _, helpLabel: v = "More information", ...y }, b) {
5513
+ var Or = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r, label: i, error: a, hint: o, required: c = !1, size: l, maxTags: u, allowDuplicates: d = !1, disabled: f = !1, id: p, ariaLabel: m, className: h = "", fieldClassName: g = "", help: _, helpLabel: v = "More information", ...y }, b) {
5390
5514
  W("AppTagInput", y);
5391
5515
  let x = s(), S = p || x, { setRef: C } = Q({
5392
5516
  ref: b,
@@ -5437,7 +5561,7 @@ var Tr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
5437
5561
  }) : null
5438
5562
  ]
5439
5563
  });
5440
- }), Er = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: c = "More information", id: u, name: p, rows: m = 4, autoGrow: h = !1, showCount: g = !1, maxLength: _, className: v = "", fieldClassName: b = "", ...x }, S) {
5564
+ }), kr = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: c = "More information", id: u, name: p, rows: m = 4, autoGrow: h = !1, showCount: g = !1, maxLength: _, className: v = "", fieldClassName: b = "", ...x }, S) {
5441
5565
  W("AppTextarea", x);
5442
5566
  let C = s(), w = u || C, T = [
5443
5567
  "textarea",
@@ -5508,7 +5632,7 @@ var Tr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
5508
5632
  })
5509
5633
  ]
5510
5634
  });
5511
- }), Dr = {
5635
+ }), Ar = {
5512
5636
  done: "check",
5513
5637
  current: "clock",
5514
5638
  "on-hold": "lock",
@@ -5517,7 +5641,7 @@ var Tr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
5517
5641
  skipped: "arrow-right",
5518
5642
  upcoming: null
5519
5643
  };
5520
- function Or({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
5644
+ function jr({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
5521
5645
  W("AppTimeline", o);
5522
5646
  let s = t === "progress", c = `timeline${s ? " timeline--progress" : ""}${n === "horizontal" ? " timeline--horizontal" : ""}${i ? ` ${i}` : ""}`, l = typeof r == "number" && r > 0 ? r : void 0, u = l ? Math.round(l * .54) : s ? 13 : 12;
5523
5647
  return /* @__PURE__ */ E("ol", {
@@ -5528,7 +5652,7 @@ function Or({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
5528
5652
  } : a,
5529
5653
  ...o,
5530
5654
  children: e.map((e, t) => {
5531
- let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? Dr[n] : void 0) : e.icon || "circle";
5655
+ let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? Ar[n] : void 0) : e.icon || "circle";
5532
5656
  return /* @__PURE__ */ D("li", {
5533
5657
  className: `timeline-item${r}${i}`,
5534
5658
  children: [/* @__PURE__ */ E("span", {
@@ -5598,7 +5722,7 @@ function Or({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
5598
5722
  }
5599
5723
  //#endregion
5600
5724
  //#region src/components/AppTimePicker.jsx
5601
- var kr = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, step: u, format: d = "24", placeholder: f = "Select time", disabled: p, size: m, id: h, ariaLabel: g, className: _ = "", fieldClassName: v = "", ...y }, b) {
5725
+ var Mr = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, step: u, format: d = "24", placeholder: f = "Select time", disabled: p, size: m, id: h, ariaLabel: g, className: _ = "", fieldClassName: v = "", ...y }, b) {
5602
5726
  W("AppTimePicker", y);
5603
5727
  let x = s(), S = h || o || x, { setRef: C } = Q({
5604
5728
  ref: b,
@@ -5643,35 +5767,35 @@ var kr = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
5643
5767
  })
5644
5768
  ]
5645
5769
  });
5646
- }), Ar = 6, $ = [], jr = /* @__PURE__ */ new Set(), Mr = /* @__PURE__ */ new Map(), Nr = /* @__PURE__ */ new Set(), Pr = 0;
5647
- function Fr() {
5648
- for (let e of jr) e($);
5770
+ }), Nr = 6, $ = [], Pr = /* @__PURE__ */ new Set(), Fr = /* @__PURE__ */ new Map(), Ir = /* @__PURE__ */ new Set(), Lr = 0;
5771
+ function Rr() {
5772
+ for (let e of Pr) e($);
5649
5773
  }
5650
- function Ir(e) {
5651
- let t = Mr.get(e);
5652
- t !== void 0 && (clearTimeout(t), Mr.delete(e));
5774
+ function zr(e) {
5775
+ let t = Fr.get(e);
5776
+ t !== void 0 && (clearTimeout(t), Fr.delete(e));
5653
5777
  }
5654
- function Lr(e, t) {
5655
- if (e.length <= Ar) return e;
5778
+ function Br(e, t) {
5779
+ if (e.length <= Nr) return e;
5656
5780
  let n = [...e], r = [];
5657
- for (; n.length > Ar;) {
5781
+ for (; n.length > Nr;) {
5658
5782
  let e = n.findIndex((e) => e.id !== t && e.duration !== 0);
5659
5783
  r.push(n.splice(e === -1 ? n.findIndex((e) => e.id !== t) : e, 1)[0]);
5660
5784
  }
5661
- for (let e of r) Ir(e.id), Nr.delete(e.id);
5785
+ for (let e of r) zr(e.id), Ir.delete(e.id);
5662
5786
  return n;
5663
5787
  }
5664
- function Rr(e) {
5665
- return jr.add(e), e($), () => {
5666
- if (jr.delete(e), jr.size === 0) for (let e of $) e.duration > 0 && !Mr.has(e.id) && (Nr.delete(e.id), Mr.set(e.id, setTimeout(() => Vr(e.id), e.duration)));
5788
+ function Vr(e) {
5789
+ return Pr.add(e), e($), () => {
5790
+ if (Pr.delete(e), Pr.size === 0) for (let e of $) e.duration > 0 && !Fr.has(e.id) && (Ir.delete(e.id), Fr.set(e.id, setTimeout(() => Wr(e.id), e.duration)));
5667
5791
  };
5668
5792
  }
5669
- function zr(e, t, n = {}) {
5793
+ function Hr(e, t, n = {}) {
5670
5794
  let r = n.id, i = r || typeof e != "string" ? void 0 : `${t}:${e}`;
5671
5795
  if (r) {
5672
5796
  let i = $.find((e) => e.externalId === r);
5673
5797
  if (i) {
5674
- Ir(i.id);
5798
+ zr(i.id);
5675
5799
  let r = n.duration === void 0 ? 5e3 : n.duration;
5676
5800
  $ = $.map((a) => a.id === i.id ? {
5677
5801
  ...a,
@@ -5684,12 +5808,12 @@ function zr(e, t, n = {}) {
5684
5808
  shape: n.shape,
5685
5809
  surface: n.surface,
5686
5810
  progress: n.progress
5687
- } : a), Fr(), r > 0 && !Nr.has(i.id) && Mr.set(i.id, setTimeout(() => Vr(i.id), r));
5811
+ } : a), Rr(), r > 0 && !Ir.has(i.id) && Fr.set(i.id, setTimeout(() => Wr(i.id), r));
5688
5812
  return;
5689
5813
  }
5690
5814
  } else if (i && $.some((e) => e.key === i)) return;
5691
- let a = ++Pr, o = n.duration === void 0 ? 5e3 : n.duration;
5692
- $ = Lr([...$, {
5815
+ let a = ++Lr, o = n.duration === void 0 ? 5e3 : n.duration;
5816
+ $ = Br([...$, {
5693
5817
  id: a,
5694
5818
  externalId: r,
5695
5819
  message: e,
@@ -5702,25 +5826,25 @@ function zr(e, t, n = {}) {
5702
5826
  surface: n.surface,
5703
5827
  progress: n.progress,
5704
5828
  key: i
5705
- }], a), Fr(), o > 0 && Mr.set(a, setTimeout(() => Vr(a), o));
5829
+ }], a), Rr(), o > 0 && Fr.set(a, setTimeout(() => Wr(a), o));
5706
5830
  }
5707
- function Br(e) {
5708
- Ir(e), Nr.add(e);
5831
+ function Ur(e) {
5832
+ zr(e), Ir.add(e);
5709
5833
  }
5710
- function Vr(e) {
5711
- Ir(e), Nr.delete(e);
5834
+ function Wr(e) {
5835
+ zr(e), Ir.delete(e);
5712
5836
  let t = $.filter((t) => t.id !== e);
5713
- t.length !== $.length && ($ = t, Fr());
5837
+ t.length !== $.length && ($ = t, Rr());
5714
5838
  }
5715
- function Hr() {
5716
- if (!($.length === 0 && Mr.size === 0 && Nr.size === 0)) {
5717
- for (let e of Mr.values()) clearTimeout(e);
5718
- Mr.clear(), Nr.clear(), $.length !== 0 && ($ = [], Fr());
5839
+ function Gr() {
5840
+ if (!($.length === 0 && Fr.size === 0 && Ir.size === 0)) {
5841
+ for (let e of Fr.values()) clearTimeout(e);
5842
+ Fr.clear(), Ir.clear(), $.length !== 0 && ($ = [], Rr());
5719
5843
  }
5720
5844
  }
5721
5845
  //#endregion
5722
5846
  //#region src/components/AppToast.jsx
5723
- var Ur = {
5847
+ var Kr = {
5724
5848
  success: {
5725
5849
  icon: "check-circle",
5726
5850
  assertive: !1
@@ -5737,7 +5861,7 @@ var Ur = {
5737
5861
  icon: "alert-circle",
5738
5862
  assertive: !0
5739
5863
  }
5740
- }, Wr = {
5864
+ }, qr = {
5741
5865
  "top-start": "top-0 start-0",
5742
5866
  "top-center": "top-0 start-50 translate-middle-x",
5743
5867
  "top-end": "top-0 end-0",
@@ -5745,21 +5869,21 @@ var Ur = {
5745
5869
  "bottom-start": "bottom-0 start-0",
5746
5870
  "bottom-center": "bottom-0 start-50 translate-middle-x",
5747
5871
  "bottom-end": "bottom-0 end-0"
5748
- }, Gr = 64, Kr = /* @__PURE__ */ new Set([
5872
+ }, Jr = 64, Yr = /* @__PURE__ */ new Set([
5749
5873
  "rise",
5750
5874
  "organic",
5751
5875
  "jelly",
5752
5876
  "spring"
5753
- ]), qr = /* @__PURE__ */ new Set([
5877
+ ]), Xr = /* @__PURE__ */ new Set([
5754
5878
  "rounded",
5755
5879
  "pill",
5756
5880
  "sharp"
5757
- ]), Jr = /* @__PURE__ */ new Set(["auto", "inverse"]);
5758
- function Yr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...s }) {
5759
- W("AppToast", s), G("AppToast", "position", e, Object.keys(Wr)), G("AppToast", "animation", n, Kr), G("AppToast", "shape", r, qr), G("AppToast", "surface", i, Jr);
5881
+ ]), Zr = /* @__PURE__ */ new Set(["auto", "inverse"]);
5882
+ function Qr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...s }) {
5883
+ W("AppToast", s), G("AppToast", "position", e, Object.keys(qr)), G("AppToast", "animation", n, Yr), G("AppToast", "shape", r, Xr), G("AppToast", "surface", i, Zr);
5760
5884
  let [c, l] = f([]);
5761
- o(() => Rr(l), []);
5762
- let u = Math.max(0, c.length - t), d = u ? c.slice(u) : c, p = Wr[e] ?? Wr["bottom-end"];
5885
+ o(() => Vr(l), []);
5886
+ let u = Math.max(0, c.length - t), d = u ? c.slice(u) : c, p = qr[e] ?? qr["bottom-end"];
5763
5887
  return /* @__PURE__ */ D("div", {
5764
5888
  ...s,
5765
5889
  className: `wui-toast-container toast-container position-fixed ${p} p-3 ${a}`.trim(),
@@ -5771,7 +5895,7 @@ function Yr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
5771
5895
  u,
5772
5896
  " more"
5773
5897
  ]
5774
- }), d.map((e) => /* @__PURE__ */ E(Xr, {
5898
+ }), d.map((e) => /* @__PURE__ */ E($r, {
5775
5899
  toast: e,
5776
5900
  defaultAnimation: n,
5777
5901
  defaultShape: r,
@@ -5779,14 +5903,14 @@ function Yr({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
5779
5903
  }, e.id))]
5780
5904
  });
5781
5905
  }
5782
- function Xr({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
5783
- let i = Ur[e.variant] ?? Ur.success, a = Kr.has(e.animation) ? e.animation : t, s = qr.has(e.shape) ? e.shape : n, c = Jr.has(e.surface) ? e.surface : r, l = (a !== "rise" && Kr.has(a) ? ` wui-toast--anim-${a}` : "") + (s !== "rounded" && qr.has(s) ? ` wui-toast--shape-${s}` : "") + (c === "inverse" ? " wui-toast--surface-inverse" : ""), u = e.duration === 0, [p, m] = f(0), [h, g] = f(!1), _ = d(null), v = () => Vr(e.id), y = d(null);
5906
+ function $r({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
5907
+ let i = Kr[e.variant] ?? Kr.success, a = Yr.has(e.animation) ? e.animation : t, s = Xr.has(e.shape) ? e.shape : n, c = Zr.has(e.surface) ? e.surface : r, l = (a !== "rise" && Yr.has(a) ? ` wui-toast--anim-${a}` : "") + (s !== "rounded" && Xr.has(s) ? ` wui-toast--shape-${s}` : "") + (c === "inverse" ? " wui-toast--surface-inverse" : ""), u = e.duration === 0, [p, m] = f(0), [h, g] = f(!1), _ = d(null), v = () => Wr(e.id), y = d(null);
5784
5908
  o(() => {
5785
5909
  if (e.duration === 0) return;
5786
- Br(e.id);
5910
+ Ur(e.id);
5787
5911
  let t = y.current, n = t == null ? "" : getComputedStyle(t).animationName;
5788
5912
  if (t != null && (typeof t.getAnimations == "function" ? t.getAnimations().length > 0 : n !== "" && n !== "none")) return;
5789
- let r = setTimeout(() => Vr(e.id), e.duration);
5913
+ let r = setTimeout(() => Wr(e.id), e.duration);
5790
5914
  return () => clearTimeout(r);
5791
5915
  }, [e.id, e.duration]);
5792
5916
  let b = (e) => {
@@ -5798,7 +5922,7 @@ function Xr({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
5798
5922
  }, C = (e) => {
5799
5923
  if (_.current === null) return;
5800
5924
  let t = e.clientX - _.current;
5801
- if (Math.abs(t) > Gr) {
5925
+ if (Math.abs(t) > Jr) {
5802
5926
  v();
5803
5927
  return;
5804
5928
  }
@@ -5882,7 +6006,7 @@ function Xr({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
5882
6006
  }
5883
6007
  //#endregion
5884
6008
  //#region src/components/AppToolbar.jsx
5885
- function Zr({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
6009
+ function ei({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
5886
6010
  W("AppToolbar", u);
5887
6011
  let d = s(), p = o || d, [m, h] = f(r), g = n === void 0 ? m : n;
5888
6012
  return /* @__PURE__ */ D("div", {
@@ -5940,7 +6064,7 @@ function Zr({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
5940
6064
  }
5941
6065
  //#endregion
5942
6066
  //#region src/components/AppWizard.jsx
5943
- var Qr = i(function({ steps: t = [], children: n, active: r, defaultActive: i = 0, onStepChange: a, onFinish: s, onSkip: c, beforeNext: l, onInvalid: u, variant: f = "steps", tone: p, orientation: m = "horizontal", skippable: h = !1, nonLinear: g = !1, hideStepper: _ = !1, disabled: v = !1, label: y = "Progress", backLabel: b = "Back", nextLabel: x = "Next", skipLabel: S = "Skip", finishLabel: C = "Finish", className: w = "", ...T }, D) {
6067
+ var ti = i(function({ steps: t = [], children: n, active: r, defaultActive: i = 0, onStepChange: a, onFinish: s, onSkip: c, beforeNext: l, onInvalid: u, variant: f = "steps", tone: p, orientation: m = "horizontal", skippable: h = !1, nonLinear: g = !1, hideStepper: _ = !1, disabled: v = !1, label: y = "Progress", backLabel: b = "Back", nextLabel: x = "Next", skipLabel: S = "Skip", finishLabel: C = "Finish", className: w = "", ...T }, D) {
5944
6068
  W("AppWizard", T);
5945
6069
  let O = d(null), k = (e) => {
5946
6070
  O.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
@@ -5992,13 +6116,13 @@ var Qr = i(function({ steps: t = [], children: n, active: r, defaultActive: i =
5992
6116
  children: A[t]
5993
6117
  }, e.key ?? `${e.label}-${t}`))
5994
6118
  });
5995
- }), $r = /* @__PURE__ */ new Set([
6119
+ }), ni = /* @__PURE__ */ new Set([
5996
6120
  "ArrowUp",
5997
6121
  "ArrowDown",
5998
6122
  "ArrowLeft",
5999
6123
  "ArrowRight"
6000
6124
  ]);
6001
- function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAction: i, linkComponent: a, searchable: s = !1, onCreate: c, canCreate: l = !1, createLabel: p = "Create workspace", compact: m = !1, size: h = "md", ariaLabel: g, ..._ }) {
6125
+ function ri({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAction: i, linkComponent: a, searchable: s = !1, onCreate: c, canCreate: l = !1, createLabel: p = "Create workspace", compact: m = !1, size: h = "md", ariaLabel: g, ..._ }) {
6002
6126
  let { onToggle: y, ...b } = _;
6003
6127
  W("AppWorkspaceSwitcher", b);
6004
6128
  let [x, S] = f(""), [C, w] = f(!1), T = d(null), O = (e, t) => {
@@ -6018,7 +6142,7 @@ function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
6018
6142
  let e = T.current;
6019
6143
  if (!e) return;
6020
6144
  let t = (e) => {
6021
- if ($r.has(e.key)) {
6145
+ if (ni.has(e.key)) {
6022
6146
  e.stopPropagation();
6023
6147
  return;
6024
6148
  }
@@ -6036,7 +6160,7 @@ function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
6036
6160
  onToggle: O,
6037
6161
  ...b,
6038
6162
  children: [/* @__PURE__ */ E(v.Toggle, {
6039
- as: ii,
6163
+ as: si,
6040
6164
  compact: m,
6041
6165
  tenant: k,
6042
6166
  "aria-label": M
@@ -6071,7 +6195,7 @@ function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
6071
6195
  className: `workspace-switcher-option${e.id === k?.id ? " is-active" : ""}`,
6072
6196
  onClick: () => n?.(e),
6073
6197
  children: [
6074
- /* @__PURE__ */ E(ni, { tenant: e }),
6198
+ /* @__PURE__ */ E(ai, { tenant: e }),
6075
6199
  /* @__PURE__ */ E("span", {
6076
6200
  className: "workspace-switcher-option-name",
6077
6201
  children: e.name
@@ -6103,17 +6227,17 @@ function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
6103
6227
  }) : null,
6104
6228
  i ? /* @__PURE__ */ E("div", {
6105
6229
  className: "workspace-switcher-footer",
6106
- children: ri(i, a)
6230
+ children: oi(i, a)
6107
6231
  }) : null
6108
6232
  ]
6109
6233
  })]
6110
6234
  });
6111
6235
  }
6112
- function ti(e) {
6236
+ function ii(e) {
6113
6237
  let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
6114
6238
  return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
6115
6239
  }
6116
- function ni({ tenant: e }) {
6240
+ function ai({ tenant: e }) {
6117
6241
  return e?.logoUrl ? /* @__PURE__ */ E("img", {
6118
6242
  className: "workspace-switcher-mark",
6119
6243
  src: e.logoUrl,
@@ -6121,10 +6245,10 @@ function ni({ tenant: e }) {
6121
6245
  loading: "lazy"
6122
6246
  }) : /* @__PURE__ */ E("span", {
6123
6247
  className: "workspace-switcher-mark",
6124
- children: ti(e?.name)
6248
+ children: ii(e?.name)
6125
6249
  });
6126
6250
  }
6127
- function ri(e, t) {
6251
+ function oi(e, t) {
6128
6252
  if (typeof e != "object" || !e || !("label" in e)) return e;
6129
6253
  let { label: n, icon: r, href: i } = e;
6130
6254
  return /* @__PURE__ */ D(i ? t ?? "a" : "button", {
@@ -6136,7 +6260,7 @@ function ri(e, t) {
6136
6260
  }) : null, n]
6137
6261
  });
6138
6262
  }
6139
- var ii = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
6263
+ var si = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
6140
6264
  return /* @__PURE__ */ D("button", {
6141
6265
  ref: a,
6142
6266
  type: "button",
@@ -6144,7 +6268,7 @@ var ii = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
6144
6268
  "aria-haspopup": "true",
6145
6269
  "aria-label": n,
6146
6270
  ...i,
6147
- children: [/* @__PURE__ */ E(ni, { tenant: t }), e ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
6271
+ children: [/* @__PURE__ */ E(ai, { tenant: t }), e ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
6148
6272
  className: "workspace-switcher-trigger-name",
6149
6273
  children: t?.name
6150
6274
  }), /* @__PURE__ */ E(Y, {
@@ -6156,36 +6280,36 @@ var ii = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
6156
6280
  });
6157
6281
  //#endregion
6158
6282
  //#region src/components/toast.js
6159
- function ai() {
6160
- Hr();
6283
+ function ci() {
6284
+ Gr();
6161
6285
  }
6162
- var oi = /* @__PURE__ */ new Set([
6286
+ var li = /* @__PURE__ */ new Set([
6163
6287
  "success",
6164
6288
  "info",
6165
6289
  "warning",
6166
6290
  "danger"
6167
6291
  ]);
6168
- function si(e, t = "info") {
6292
+ function ui(e, t = "info") {
6169
6293
  let n = "info", r = {};
6170
- typeof t == "string" ? n = oi.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = oi.has(r.variant) ? r.variant : "info"), zr(e, n, r);
6294
+ typeof t == "string" ? n = li.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = li.has(r.variant) ? r.variant : "info"), Hr(e, n, r);
6171
6295
  }
6172
- function ci(e, t = {}) {
6173
- zr(e, "danger", t);
6296
+ function di(e, t = {}) {
6297
+ Hr(e, "danger", t);
6174
6298
  }
6175
- si.promise = (e, t, n = {}) => {
6299
+ ui.promise = (e, t, n = {}) => {
6176
6300
  let r = n.id || `promise-${Date.now()}-${Math.random()}`;
6177
- return si(t.loading || "Loading...", {
6301
+ return ui(t.loading || "Loading...", {
6178
6302
  ...n,
6179
6303
  variant: "info",
6180
6304
  id: r,
6181
6305
  duration: 0
6182
- }), e.then((e) => (si((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
6306
+ }), e.then((e) => (ui((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
6183
6307
  ...n,
6184
6308
  variant: "success",
6185
6309
  id: r,
6186
6310
  duration: n.duration === void 0 ? 5e3 : n.duration
6187
6311
  }), e)).catch((e) => {
6188
- throw si((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
6312
+ throw ui((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
6189
6313
  ...n,
6190
6314
  variant: "danger",
6191
6315
  id: r,
@@ -6195,7 +6319,7 @@ si.promise = (e, t, n = {}) => {
6195
6319
  };
6196
6320
  //#endregion
6197
6321
  //#region src/lib/useCommandPaletteShortcut.js
6198
- function li(e, { key: t = "k" } = {}) {
6322
+ function fi(e, { key: t = "k" } = {}) {
6199
6323
  let n = d(e);
6200
6324
  o(() => {
6201
6325
  n.current = e;
@@ -6208,7 +6332,7 @@ function li(e, { key: t = "k" } = {}) {
6208
6332
  }
6209
6333
  //#endregion
6210
6334
  //#region src/lib/usePagination.js
6211
- function ui(e, t = 10) {
6335
+ function pi(e, t = 10) {
6212
6336
  let [n, r] = f(1), [i, a] = f(t), s = e.length, c = Math.max(1, Math.ceil(s / i));
6213
6337
  o(() => {
6214
6338
  n > c && r(c);
@@ -6234,4 +6358,44 @@ function ui(e, t = 10) {
6234
6358
  };
6235
6359
  }
6236
6360
  //#endregion
6237
- export { ke as AppAccordion, je as AppActionIcon, Ie as AppAlert, Ue as AppAsyncBlock, nt as AppAutocomplete, ct as AppAvatar, dt as AppAvatarGroup, ft as AppBadge, mt as AppBanner, ht as AppBreadcrumbs, Be as AppButton, _t as AppCard, yt as AppCheckbox, bt as AppChip, wt as AppChoiceCard, Tt as AppChoiceChip, Et as AppColorField, Nt as AppCommandPalette, Rt as AppCompareTable, Ht as AppConfirmDialog, Wt as AppConsentBanner, Kt as AppCopyButton, Jt as AppCountrySelect, an as AppDataTable, on as AppDatePicker, sn as AppDateRangePicker, cn as AppDescriptions, dn as AppDropdown, Ve as AppEmptyState, vn as AppFileAttachment, xn as AppFilePicker, Sn as AppFloatingDock, Cn as AppFormActions, wn as AppFormRow, Tn as AppFormSection, Y as AppIcon, En as AppInfoList, qe as AppInfoTip, zt as AppInput, jn as AppKpiTile, Fn as AppLink, Ln as AppLogoPicker, Vn as AppMeter, jt as AppModal, Hn as AppMultiSelect, Un as AppNumberInput, Wn as AppOtpInput, Gn as AppPageHeader, Kn as AppPagination, qn as AppPhoneNumberInput, Ge as AppPopover, Jn as AppPricingCard, Zn as AppProgress, Qn as AppRadio, $n as AppRepeater, Z as AppRequiredMark, er as AppResourceCard, nr as AppResult, rr as AppScrollbar, ir as AppSearch, or as AppSegmented, cr as AppSelect, $t as AppSelectMini, lr as AppShell, fr as AppSidebarMenu, Yt as AppSkeleton, Xt as AppSkeletonRows, pr as AppSlider, He as AppSpinner, hr as AppSplash, gr as AppStatusBadge, _r as AppStepper, yr as AppSwitch, br as AppTableEmptyState, tn as AppTablePagination, wr as AppTabs, Tr as AppTagInput, Er as AppTextarea, kr as AppTimePicker, Or as AppTimeline, Yr as AppToast, Zr as AppToolbar, ce as AppTooltip, Qr as AppWizard, ei as AppWorkspaceSwitcher, Vt as MODAL_ICONS, ai as dismissAll, ci as errorToast, Ee as iconNames, Oe as registerIcons, si as toast, li as useCommandPaletteShortcut, ui as usePagination };
6361
+ //#region src/lib/useTableView.js
6362
+ var mi = (e) => `wui-view:${e}`;
6363
+ function hi(e, t) {
6364
+ try {
6365
+ let n = window.localStorage.getItem(mi(e));
6366
+ if (!n) return t;
6367
+ let r = JSON.parse(n);
6368
+ return {
6369
+ hidden: Array.isArray(r.hidden) ? r.hidden : t.hidden,
6370
+ sort: r.sort && typeof r.sort.key == "string" ? r.sort : t.sort
6371
+ };
6372
+ } catch {
6373
+ return t;
6374
+ }
6375
+ }
6376
+ function gi(e, { sort: t } = {}) {
6377
+ let [n, r] = f(() => hi(e, {
6378
+ hidden: [],
6379
+ sort: t
6380
+ }));
6381
+ o(() => {
6382
+ try {
6383
+ window.localStorage.setItem(mi(e), JSON.stringify(n));
6384
+ } catch {}
6385
+ }, [e, n]);
6386
+ let i = a((e) => r((t) => ({
6387
+ ...t,
6388
+ hidden: t.hidden.includes(e) ? t.hidden.filter((t) => t !== e) : [...t.hidden, e]
6389
+ })), []), s = a((e) => r((t) => ({
6390
+ ...t,
6391
+ sort: typeof e == "function" ? e(t.sort) : e
6392
+ })), []);
6393
+ return {
6394
+ hiddenColumns: n.hidden,
6395
+ toggleColumn: i,
6396
+ sort: n.sort,
6397
+ setSort: s
6398
+ };
6399
+ }
6400
+ //#endregion
6401
+ export { ke as AppAccordion, je as AppActionIcon, Ie as AppAlert, Ue as AppAsyncBlock, nt as AppAutocomplete, ct as AppAvatar, dt as AppAvatarGroup, ft as AppBadge, mt as AppBanner, ht as AppBreadcrumbs, Be as AppButton, _t as AppCard, yt as AppCheckbox, bt as AppChip, wt as AppChoiceCard, Tt as AppChoiceChip, Et as AppColorField, jt as AppColumnMenu, Rt as AppCommandPalette, Ut as AppCompareTable, qt as AppConfirmDialog, Yt as AppConsentBanner, Zt as AppCopyButton, $t as AppCountrySelect, dn as AppDataTable, fn as AppDatePicker, pn as AppDateRangePicker, mn as AppDescriptions, kt as AppDropdown, Ve as AppEmptyState, bn as AppFileAttachment, Cn as AppFilePicker, wn as AppFloatingDock, Tn as AppFormActions, En as AppFormRow, Dn as AppFormSection, Y as AppIcon, On as AppInfoList, qe as AppInfoTip, Wt as AppInput, Nn as AppKpiTile, Ln as AppLink, zn as AppLogoPicker, Un as AppMeter, It as AppModal, Wn as AppMultiSelect, Gn as AppNumberInput, Kn as AppOtpInput, qn as AppPageHeader, Jn as AppPagination, Yn as AppPhoneNumberInput, Ge as AppPopover, Xn as AppPricingCard, $n as AppProgress, er as AppRadio, tr as AppRepeater, Z as AppRequiredMark, nr as AppResourceCard, ir as AppResult, ar as AppScrollbar, or as AppSearch, cr as AppSegmented, ur as AppSelect, an as AppSelectMini, dr as AppShell, mr as AppSidebarMenu, en as AppSkeleton, tn as AppSkeletonRows, hr as AppSlider, He as AppSpinner, _r as AppSplash, vr as AppStatusBadge, yr as AppStepper, xr as AppSwitch, Sr as AppTableEmptyState, sn as AppTablePagination, Cr as AppTableToolbar, Dr as AppTabs, Or as AppTagInput, kr as AppTextarea, Mr as AppTimePicker, jr as AppTimeline, Qr as AppToast, ei as AppToolbar, ce as AppTooltip, ti as AppWizard, ri as AppWorkspaceSwitcher, Kt as MODAL_ICONS, ci as dismissAll, di as errorToast, Ee as iconNames, Oe as registerIcons, ui as toast, fi as useCommandPaletteShortcut, pi as usePagination, gi as useTableView };