@webority/ui-react 0.26.1 → 0.27.0

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
@@ -5134,98 +5134,106 @@ var ja = [
5134
5134
  "up",
5135
5135
  "down",
5136
5136
  "flat"
5137
- ];
5138
- function Fa(e) {
5137
+ ], Fa = [
5138
+ "success",
5139
+ "danger",
5140
+ "neutral"
5141
+ ], Ia = {
5142
+ success: " wui-kpi-delta--success",
5143
+ danger: " wui-kpi-delta--danger",
5144
+ neutral: " wui-kpi-delta--neutral"
5145
+ };
5146
+ function La(e) {
5139
5147
  if (typeof e != "string") return "flat";
5140
5148
  let t = e.trim();
5141
5149
  return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
5142
5150
  }
5143
- function Ia({ 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 }) {
5144
- Y("AppKpiTile", C), J("AppKpiTile", "variant", c, ja), J("AppKpiTile", "size", l, Ma), J("AppKpiTile", "iconTone", i, Na), J("AppKpiTile", "deltaDirection", o, Pa);
5145
- 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 ? {
5146
- ...g,
5147
- "--wui-kpi-value-size": `${u}px`
5148
- } : g, E = o ?? Fa(a), D = E === "up" ? "arrow-up" : E === "down" ? "arrow-down" : null, O = {};
5149
- return p != null && (O = m ? {
5150
- as: m,
5151
- to: p
5151
+ function Ra({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, deltaDirection: o, deltaTone: s, sparkline: c, variant: l = "plain", size: u = "md", valueSize: d, inline: f = !1, attention: p = !1, href: m, linkComponent: h, className: g = "", style: _, iconClassName: v = "", labelClassName: y = "", valueClassName: b = "", captionClassName: x = "", deltaClassName: S = "", sparklineClassName: C = "", ...w }) {
5152
+ Y("AppKpiTile", w), J("AppKpiTile", "variant", l, ja), J("AppKpiTile", "size", u, Ma), J("AppKpiTile", "iconTone", i, Na), J("AppKpiTile", "deltaDirection", o, Pa), J("AppKpiTile", "deltaTone", s, Fa);
5153
+ let T = `kpi${f ? " kpi-inline" : ""}${l === "filled" ? " kpi-filled" : l === "accent" ? " kpi-accent" : l === "spotlight" ? " kpi-spotlight" : ""}${u === "lg" ? " kpi-lg" : u === "sm" ? " kpi-sm" : ""}${p ? " kpi-attention" : ""}${g ? ` ${g}` : ""}`, E = typeof d == "number" && d > 0 ? {
5154
+ ..._,
5155
+ "--wui-kpi-value-size": `${d}px`
5156
+ } : _, D = o ?? La(a), O = D === "up" ? "arrow-up" : D === "down" ? "arrow-down" : null, k = Object.hasOwn(Ia, s ?? "") ? Ia[s] : "", A = {};
5157
+ return m != null && (A = h ? {
5158
+ as: h,
5159
+ to: m
5152
5160
  } : {
5153
5161
  as: "a",
5154
- href: p
5155
- }), /* @__PURE__ */ q(O.as || "div", {
5156
- className: w,
5157
- style: T,
5158
- ...C,
5159
- ...O,
5162
+ href: m
5163
+ }), /* @__PURE__ */ q(A.as || "div", {
5164
+ className: T,
5165
+ style: E,
5166
+ ...w,
5167
+ ...A,
5160
5168
  children: [
5161
5169
  r && /* @__PURE__ */ K("span", {
5162
- className: `kpi-icon${i ? ` kpi-icon-${i}` : ""}${_ ? ` ${_}` : ""}`,
5170
+ className: `kpi-icon${i ? ` kpi-icon-${i}` : ""}${v ? ` ${v}` : ""}`,
5163
5171
  children: it(r, { size: 20 })
5164
5172
  }),
5165
5173
  /* @__PURE__ */ K("div", {
5166
- className: `kpi-label${v ? ` ${v}` : ""}`,
5174
+ className: `kpi-label${y ? ` ${y}` : ""}`,
5167
5175
  children: e
5168
5176
  }),
5169
5177
  /* @__PURE__ */ K("div", {
5170
- className: `kpi-value${y ? ` ${y}` : ""}`,
5178
+ className: `kpi-value${b ? ` ${b}` : ""}`,
5171
5179
  children: t
5172
5180
  }),
5173
5181
  n && /* @__PURE__ */ K("div", {
5174
- className: `kpi-caption${b ? ` ${b}` : ""}`,
5182
+ className: `kpi-caption${x ? ` ${x}` : ""}`,
5175
5183
  children: n
5176
5184
  }),
5177
5185
  a && /* @__PURE__ */ q("div", {
5178
- className: `kpi-delta${E === "flat" ? "" : ` ${E}`}${x ? ` ${x}` : ""}`,
5179
- children: [D && /* @__PURE__ */ K(Z, {
5180
- name: D,
5186
+ className: `kpi-delta${D === "flat" ? "" : ` ${D}`}${k}${S ? ` ${S}` : ""}`,
5187
+ children: [O && /* @__PURE__ */ K(Z, {
5188
+ name: O,
5181
5189
  size: 13
5182
5190
  }), a]
5183
5191
  }),
5184
- s && s.length > 0 && /* @__PURE__ */ K(Aa, {
5185
- data: s,
5186
- className: `kpi-sparkline${S ? ` ${S}` : ""}`
5192
+ c && c.length > 0 && /* @__PURE__ */ K(Aa, {
5193
+ data: c,
5194
+ className: `kpi-sparkline${C ? ` ${C}` : ""}`
5187
5195
  })
5188
5196
  ]
5189
5197
  });
5190
5198
  }
5191
5199
  //#endregion
5192
5200
  //#region src/components/AppLineChart.jsx
5193
- var La = [
5201
+ var za = [
5194
5202
  "neutral",
5195
5203
  "info",
5196
5204
  "success",
5197
5205
  "warning",
5198
5206
  "danger"
5199
- ], Ra = 10, za = 6, Ba = 12, Va = (e) => String(e), Ha = (e) => typeof e == "number" && Number.isFinite(e);
5200
- function Ua(e) {
5207
+ ], Ba = 10, Va = 6, Ha = 12, Ua = (e) => String(e), Wa = (e) => typeof e == "number" && Number.isFinite(e);
5208
+ function Ga(e) {
5201
5209
  let t = e / 4, n = 10 ** Math.floor(Math.log10(t)), r = t / n;
5202
5210
  return (r <= 1 ? 1 : r <= 2 ? 2 : r <= 2.5 ? 2.5 : r <= 5 ? 5 : 10) * n;
5203
5211
  }
5204
- var Wa = (e) => Number(e.toFixed(10));
5205
- function Ga(e, t, n, r) {
5206
- let i = [...e.filter(Ha), ...t.map((e) => e.value).filter(Ha)], a = Ha(n) ? n : i.length ? Math.min(...i) : 0, o = Ha(r) ? r : i.length ? Math.max(...i) : 1;
5207
- o > a || (Ha(r) ? a = o - 1 : o = a + 1);
5208
- let s = Ua(o - a);
5209
- Ha(n) || (a = Wa(Math.floor(a / s) * s)), Ha(r) || (o = Wa(Math.ceil(o / s) * s));
5212
+ var Ka = (e) => Number(e.toFixed(10));
5213
+ function qa(e, t, n, r) {
5214
+ let i = [...e.filter(Wa), ...t.map((e) => e.value).filter(Wa)], a = Wa(n) ? n : i.length ? Math.min(...i) : 0, o = Wa(r) ? r : i.length ? Math.max(...i) : 1;
5215
+ o > a || (Wa(r) ? a = o - 1 : o = a + 1);
5216
+ let s = Ga(o - a);
5217
+ Wa(n) || (a = Ka(Math.floor(a / s) * s)), Wa(r) || (o = Ka(Math.ceil(o / s) * s));
5210
5218
  let c = [];
5211
- for (let e = Math.ceil(a / s) * s; e <= o + s / 1e6; e += s) c.push(Wa(e));
5219
+ for (let e = Math.ceil(a / s) * s; e <= o + s / 1e6; e += s) c.push(Ka(e));
5212
5220
  return {
5213
5221
  lo: a,
5214
5222
  hi: o,
5215
5223
  ticks: c
5216
5224
  };
5217
5225
  }
5218
- function Ka({ data: e = [], name: t, yMin: n, yMax: r, bands: i = [], referenceLines: a = [], formatValue: o, height: s = 240, title: c, ariaLabel: l, className: u = "", ...d }) {
5226
+ function Ja({ data: e = [], name: t, yMin: n, yMax: r, bands: i = [], referenceLines: a = [], formatValue: o, height: s = 240, title: c, ariaLabel: l, className: u = "", ...d }) {
5219
5227
  Y("AppLineChart", d);
5220
- for (let e of i) J("AppLineChart", "bands.tone", e.tone, La);
5221
- let f = o ?? Va, p = (e) => Ha(e) ? f(e) : "No data", m = e.length, { lo: h, hi: g, ticks: _ } = Ga(e.map((e) => e.value), a, n, r), v = (e) => Math.min(g, Math.max(h, e)), y = (e) => Number((Ra + (g - v(e)) / (g - h) * (s - Ra * 2)).toFixed(2)), b = (e) => `${Number(((e + .5) / m * 100).toFixed(3))}%`, x = Math.ceil(m / za), S = Math.ceil(m / Ba), C = i.map((e) => {
5228
+ for (let e of i) J("AppLineChart", "bands.tone", e.tone, za);
5229
+ let f = o ?? Ua, p = (e) => Wa(e) ? f(e) : "No data", m = e.length, { lo: h, hi: g, ticks: _ } = qa(e.map((e) => e.value), a, n, r), v = (e) => Math.min(g, Math.max(h, e)), y = (e) => Number((Ba + (g - v(e)) / (g - h) * (s - Ba * 2)).toFixed(2)), b = (e) => `${Number(((e + .5) / m * 100).toFixed(3))}%`, x = Math.ceil(m / Va), S = Math.ceil(m / Ha), C = i.map((e) => {
5222
5230
  let t = y(Math.max(e.from, e.to)), n = y(Math.min(e.from, e.to));
5223
5231
  return {
5224
5232
  ...e,
5225
5233
  top: t,
5226
5234
  size: n - t
5227
5235
  };
5228
- }).filter((e) => e.size > 0), w = a.filter((e) => Ha(e.value) && e.value >= h && e.value <= g), T = c || l, E = (e) => `${t ? `${t}, ` : ""}${e.label}: ${p(e.value)}`;
5236
+ }).filter((e) => e.size > 0), w = a.filter((e) => Wa(e.value) && e.value >= h && e.value <= g), T = c || l, E = (e) => `${t ? `${t}, ` : ""}${e.label}: ${p(e.value)}`;
5229
5237
  return /* @__PURE__ */ q("figure", {
5230
5238
  className: `wui-chart wui-line-chart${u ? ` ${u}` : ""}`,
5231
5239
  "aria-label": c ? void 0 : l || void 0,
@@ -5247,7 +5255,7 @@ function Ka({ data: e = [], name: t, yMin: n, yMax: r, bands: i = [], referenceL
5247
5255
  focusable: "false",
5248
5256
  children: [
5249
5257
  C.map((e) => /* @__PURE__ */ K("rect", {
5250
- className: `wui-chart-band${La.includes(e.tone) && e.tone !== "neutral" ? ` wui-chart-band-${e.tone}` : ""}`,
5258
+ className: `wui-chart-band${za.includes(e.tone) && e.tone !== "neutral" ? ` wui-chart-band-${e.tone}` : ""}`,
5251
5259
  x: "0",
5252
5260
  y: e.top,
5253
5261
  width: "100%",
@@ -5267,7 +5275,7 @@ function Ka({ data: e = [], name: t, yMin: n, yMax: r, bands: i = [], referenceL
5267
5275
  y1: y(e.value),
5268
5276
  y2: y(e.value)
5269
5277
  }, `ref-${e.value}`)),
5270
- e.slice(1).map((t, n) => Ha(e[n].value) && Ha(t.value) ? /* @__PURE__ */ K("line", {
5278
+ e.slice(1).map((t, n) => Wa(e[n].value) && Wa(t.value) ? /* @__PURE__ */ K("line", {
5271
5279
  className: "wui-chart-line",
5272
5280
  x1: b(n),
5273
5281
  y1: y(e[n].value),
@@ -5296,7 +5304,7 @@ function Ka({ data: e = [], name: t, yMin: n, yMax: r, bands: i = [], referenceL
5296
5304
  }, `ref-label-${e.value}`) : null)
5297
5305
  ]
5298
5306
  }),
5299
- e.map((e, t) => Ha(e.value) ? /* @__PURE__ */ q("button", {
5307
+ e.map((e, t) => Wa(e.value) ? /* @__PURE__ */ q("button", {
5300
5308
  type: "button",
5301
5309
  className: `wui-chart-point${t === 0 && m > 1 ? " wui-chart-point-start" : ""}${t === m - 1 && m > 1 ? " wui-chart-point-end" : ""}`,
5302
5310
  style: {
@@ -5348,11 +5356,11 @@ function Ka({ data: e = [], name: t, yMin: n, yMax: r, bands: i = [], referenceL
5348
5356
  }
5349
5357
  //#endregion
5350
5358
  //#region src/components/AppLink.jsx
5351
- var qa = {
5359
+ var Ya = {
5352
5360
  sm: 13,
5353
5361
  md: 15,
5354
5362
  lg: 18
5355
- }, Ja = [
5363
+ }, Xa = [
5356
5364
  "underline",
5357
5365
  "underline-center",
5358
5366
  "static",
@@ -5366,35 +5374,35 @@ var qa = {
5366
5374
  "shine",
5367
5375
  "none"
5368
5376
  ];
5369
- function Ya(e, t, n) {
5377
+ function Za(e, t, n) {
5370
5378
  if (!e) return null;
5371
5379
  let r = `wui-link__ic wui-link__ic--${t}`;
5372
5380
  return typeof e == "string" ? /* @__PURE__ */ K("span", {
5373
5381
  className: r,
5374
5382
  children: /* @__PURE__ */ K(Z, {
5375
5383
  name: e,
5376
- size: qa[n] ?? qa.md
5384
+ size: Ya[n] ?? Ya.md
5377
5385
  })
5378
5386
  }) : /* @__PURE__ */ K("span", {
5379
5387
  className: r,
5380
5388
  children: e
5381
5389
  });
5382
5390
  }
5383
- function Xa({ 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 }) {
5384
- Y("AppLink", d), J("AppLink", "animation", r, Ja), J("AppLink", "size", o, Object.keys(qa));
5385
- let f = Ja.includes(r) ? r : "underline", p = f === "icon" && !a && !i ? "arrow-right" : a, m = [
5391
+ function Qa({ 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 }) {
5392
+ Y("AppLink", d), J("AppLink", "animation", r, Xa), J("AppLink", "size", o, Object.keys(Ya));
5393
+ let f = Xa.includes(r) ? r : "underline", p = f === "icon" && !a && !i ? "arrow-right" : a, m = [
5386
5394
  "wui-link",
5387
5395
  `wui-link--${f}`,
5388
5396
  o === "md" ? "" : `wui-link--${o}`,
5389
5397
  c ? "is-disabled" : "",
5390
5398
  u
5391
5399
  ].filter(Boolean).join(" "), h = /* @__PURE__ */ q(G, { children: [
5392
- Ya(i, "left", o),
5400
+ Za(i, "left", o),
5393
5401
  /* @__PURE__ */ K("span", {
5394
5402
  className: "wui-link__label",
5395
5403
  children: e ?? t
5396
5404
  }),
5397
- Ya(p, "right", o)
5405
+ Za(p, "right", o)
5398
5406
  ] });
5399
5407
  return c ? /* @__PURE__ */ K("span", {
5400
5408
  className: m,
@@ -5417,21 +5425,21 @@ function Xa({ children: e, label: t, href: n, animation: r = "underline", leftIc
5417
5425
  }
5418
5426
  //#endregion
5419
5427
  //#region src/components/AppLogoPicker.jsx
5420
- var Za = [
5428
+ var $a = [
5421
5429
  "stacked",
5422
5430
  "inline",
5423
5431
  "profile"
5424
- ], Qa = ["initials", "avatar"], $a = [
5432
+ ], eo = ["initials", "avatar"], to = [
5425
5433
  "circle",
5426
5434
  "rounded",
5427
5435
  "square"
5428
- ], eo = {
5436
+ ], no = {
5429
5437
  sm: 72,
5430
5438
  md: 120,
5431
5439
  lg: 160
5432
- }, to = "That image could not be cropped. Choose another one.", no = "That image could not be opened. Choose another one.";
5433
- function ro({ value: e, fallback: t, name: r, onPick: i, onRemove: a, loading: o = !1, disabled: s = !1, accept: c = "image/png,image/jpeg,image/webp", maxSizeMb: l = n, crop: u, overlayIcon: d = "image", overlayLabel: f = "Update photo", ariaLabel: p = "Upload photo", label: m, hint: h, error: g, layout: _ = "stacked", title: v, subtitle: y, required: b = !1, variant: x = "initials", size: S = "md", shape: C = "circle", className: w = "", ...T }) {
5434
- Y("AppLogoPicker", T), J("AppLogoPicker", "layout", _, Za), J("AppLogoPicker", "variant", x, Qa), J("AppLogoPicker", "shape", C, $a), J("AppLogoPicker", "size", typeof S == "string" ? S : null, Object.keys(eo));
5440
+ }, ro = "That image could not be cropped. Choose another one.", io = "That image could not be opened. Choose another one.";
5441
+ function ao({ value: e, fallback: t, name: r, onPick: i, onRemove: a, loading: o = !1, disabled: s = !1, accept: c = "image/png,image/jpeg,image/webp", maxSizeMb: l = n, crop: u, overlayIcon: d = "image", overlayLabel: f = "Update photo", ariaLabel: p = "Upload photo", label: m, hint: h, error: g, layout: _ = "stacked", title: v, subtitle: y, required: b = !1, variant: x = "initials", size: S = "md", shape: C = "circle", className: w = "", ...T }) {
5442
+ Y("AppLogoPicker", T), J("AppLogoPicker", "layout", _, $a), J("AppLogoPicker", "variant", x, eo), J("AppLogoPicker", "shape", C, to), J("AppLogoPicker", "size", typeof S == "string" ? S : null, Object.keys(no));
5435
5443
  let E = u === "free" ? null : typeof u == "number" && Number.isFinite(u) && u > 0 ? u : void 0;
5436
5444
  u != null && E === void 0 && J("AppLogoPicker", "crop", String(u), ["free", "a positive number"]);
5437
5445
  let D = V(null), O = V(null), k = z(), [A, j] = H(null), [M, ee] = H(""), [P, te] = H(!1), [ne, F] = H(!1), [I, re] = H(null), [B, ie] = H(!1), [ae, oe] = H("loading"), [se, ce] = H(""), le = L((e) => {
@@ -5479,7 +5487,7 @@ function ro({ value: e, fallback: t, name: r, onPick: i, onRemove: a, loading: o
5479
5487
  t = null;
5480
5488
  }
5481
5489
  if (ie(!1), !t) {
5482
- ce(to);
5490
+ ce(ro);
5483
5491
  return;
5484
5492
  }
5485
5493
  re(null);
@@ -5499,7 +5507,7 @@ function ro({ value: e, fallback: t, name: r, onPick: i, onRemove: a, loading: o
5499
5507
  t && ge(t);
5500
5508
  }, xe = () => {
5501
5509
  j(null), ee(""), te(!1), D.current && (D.current.value = ""), a?.();
5502
- }, Se = typeof S == "number" ? S : eo[S] ?? eo.md, Ce = Math.max(14, Math.round(Se * .18)), we = Math.round(Se * .5), Te = [
5510
+ }, Se = typeof S == "number" ? S : no[S] ?? no.md, Ce = Math.max(14, Math.round(Se * .18)), we = Math.round(Se * .5), Te = [
5503
5511
  "set-uploader",
5504
5512
  x === "avatar" ? "set-uploader--avatar" : "",
5505
5513
  C === "rounded" ? "set-uploader--rounded" : C === "square" ? "set-uploader--square" : "",
@@ -5601,7 +5609,7 @@ function ro({ value: e, fallback: t, name: r, onPick: i, onRemove: a, loading: o
5601
5609
  children: [
5602
5610
  ae === "error" && /* @__PURE__ */ K(ft, {
5603
5611
  variant: "danger",
5604
- children: no
5612
+ children: io
5605
5613
  }),
5606
5614
  se && /* @__PURE__ */ K(ft, {
5607
5615
  variant: "danger",
@@ -5668,27 +5676,27 @@ function ro({ value: e, fallback: t, name: r, onPick: i, onRemove: a, loading: o
5668
5676
  }
5669
5677
  //#endregion
5670
5678
  //#region src/components/AppMeter.jsx
5671
- var io = ["high", "low"], ao = ["sm", "md"], oo = [
5679
+ var oo = ["high", "low"], so = ["sm", "md"], co = [
5672
5680
  "info",
5673
5681
  "success",
5674
5682
  "warning",
5675
5683
  "danger",
5676
5684
  "neutral"
5677
5685
  ];
5678
- function so(e, t, n) {
5686
+ function lo(e, t, n) {
5679
5687
  let r = n - t;
5680
5688
  if (!(r > 0)) return 0;
5681
5689
  let i = Math.min(100, Math.max(0, (e - t) / r * 100));
5682
5690
  return Number(i.toFixed(2));
5683
5691
  }
5684
- function co(e, t, n, r, i) {
5692
+ function uo(e, t, n, r, i) {
5685
5693
  if (t == null && n == null) return i;
5686
5694
  let a = "mid";
5687
5695
  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";
5688
5696
  }
5689
- function lo({ 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 }) {
5690
- Y("AppMeter", d), J("AppMeter", "tone", r, oo), J("AppMeter", "optimum", i, io), J("AppMeter", "size", s, ao);
5691
- let f = co(e, a, o, i, oo.includes(r) ? r : "info"), p = so(e, t, n);
5697
+ function fo({ 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 }) {
5698
+ Y("AppMeter", d), J("AppMeter", "tone", r, co), J("AppMeter", "optimum", i, oo), J("AppMeter", "size", s, so);
5699
+ let f = uo(e, a, o, i, co.includes(r) ? r : "info"), p = lo(e, t, n);
5692
5700
  return /* @__PURE__ */ K("div", {
5693
5701
  className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
5694
5702
  role: "meter",
@@ -5706,12 +5714,12 @@ function lo({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
5706
5714
  }
5707
5715
  //#endregion
5708
5716
  //#region src/components/AppNumberInput.jsx
5709
- var uo = [
5717
+ var po = [
5710
5718
  "sm",
5711
5719
  "md",
5712
5720
  "lg"
5713
- ], fo = I(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: o, onChange: s, min: c, max: l, step: u = 1, precision: d = 0, unit: f, size: p = "md", id: m, name: h, className: g = "", fieldClassName: _ = "", disabled: v = !1, ...y }, b) {
5714
- Y("AppNumberInput", y), J("AppNumberInput", "size", p, uo);
5721
+ ], mo = I(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: o, onChange: s, min: c, max: l, step: u = 1, precision: d = 0, unit: f, size: p = "md", id: m, name: h, className: g = "", fieldClassName: _ = "", disabled: v = !1, ...y }, b) {
5722
+ Y("AppNumberInput", y), J("AppNumberInput", "size", p, po);
5715
5723
  let x = z(), S = m || x, C = (e) => {
5716
5724
  if (d === 0) return Math.round(e);
5717
5725
  let t = 10 ** d;
@@ -5833,8 +5841,8 @@ var uo = [
5833
5841
  }) : null
5834
5842
  ]
5835
5843
  });
5836
- }), po = ["numeric", "alphanumeric"], mo = I(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: o = !1, hint: s, error: c, disabled: l = !1, name: u, id: d, className: f = "", fieldClassName: p = "", ...m }, h) {
5837
- Y("AppOtpInput", m), J("AppOtpInput", "mode", i, po);
5844
+ }), ho = ["numeric", "alphanumeric"], go = I(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: o = !1, hint: s, error: c, disabled: l = !1, name: u, id: d, className: f = "", fieldClassName: p = "", ...m }, h) {
5845
+ Y("AppOtpInput", m), J("AppOtpInput", "mode", i, ho);
5838
5846
  let g = z(), _ = d || g, v = c ? `${_}-error` : void 0, y = s ? `${_}-hint` : void 0, b = v || y, { setRef: x } = $({
5839
5847
  ref: h,
5840
5848
  value: e ?? "",
@@ -5875,17 +5883,17 @@ var uo = [
5875
5883
  })
5876
5884
  ]
5877
5885
  });
5878
- }), ho = [
5886
+ }), _o = [
5879
5887
  "primary",
5880
5888
  "success",
5881
5889
  "warning",
5882
5890
  "danger",
5883
5891
  "info"
5884
- ], go = [
5892
+ ], vo = [
5885
5893
  "sm",
5886
5894
  "md",
5887
5895
  "lg"
5888
- ], _o = ["start", "center"], vo = [
5896
+ ], yo = ["start", "center"], bo = [
5889
5897
  "h1",
5890
5898
  "h2",
5891
5899
  "h3",
@@ -5893,9 +5901,9 @@ var uo = [
5893
5901
  "h5",
5894
5902
  "h6"
5895
5903
  ];
5896
- function yo({ title: e, as: t = "h1", subtitle: n, eyebrow: r, icon: i, tone: a = "primary", status: o, breadcrumbs: s, actions: c, size: l = "md", align: u = "start", divider: d = !1, sticky: f = !1, className: p = "", ...m }) {
5897
- Y("AppPageHeader", m), J("AppPageHeader", "tone", a, ho), J("AppPageHeader", "size", l, go), J("AppPageHeader", "align", u, _o), J("AppPageHeader", "as", t, vo);
5898
- let h = vo.includes(t) ? t : "h1", g = [
5904
+ function xo({ title: e, as: t = "h1", subtitle: n, eyebrow: r, icon: i, tone: a = "primary", status: o, breadcrumbs: s, actions: c, size: l = "md", align: u = "start", divider: d = !1, sticky: f = !1, className: p = "", ...m }) {
5905
+ Y("AppPageHeader", m), J("AppPageHeader", "tone", a, _o), J("AppPageHeader", "size", l, vo), J("AppPageHeader", "align", u, yo), J("AppPageHeader", "as", t, bo);
5906
+ let h = bo.includes(t) ? t : "h1", g = [
5899
5907
  "page-header",
5900
5908
  l && l !== "md" ? `page-header-${l}` : "",
5901
5909
  u === "center" ? "page-header-center" : "",
@@ -5952,9 +5960,9 @@ function yo({ title: e, as: t = "h1", subtitle: n, eyebrow: r, icon: i, tone: a
5952
5960
  }
5953
5961
  //#endregion
5954
5962
  //#region src/components/AppPagination.jsx
5955
- var bo = ["sm", "md"];
5956
- function xo({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
5957
- if (Y("AppPagination", s), J("AppPagination", "size", i, bo), t <= 1) return null;
5963
+ var So = ["sm", "md"];
5964
+ function Co({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
5965
+ if (Y("AppPagination", s), J("AppPagination", "size", i, So), t <= 1) return null;
5958
5966
  let c = Hr(e, t, { siblingCount: r });
5959
5967
  return /* @__PURE__ */ K("nav", {
5960
5968
  className: [
@@ -6013,12 +6021,12 @@ function xo({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
6013
6021
  }
6014
6022
  //#endregion
6015
6023
  //#region src/components/AppPhoneNumberInput.jsx
6016
- var So = [
6024
+ var wo = [
6017
6025
  "sm",
6018
6026
  "md",
6019
6027
  "lg"
6020
- ], Co = I(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, id: a, label: o = "Phone number", placeholder: s, required: c = !1, error: l, showFlag: u = !0, showDialCode: d = !0, size: f = "md", fieldClassName: p = "", ...m }, h) {
6021
- Y("AppPhoneNumberInput", m), J("AppPhoneNumberInput", "size", f, So);
6028
+ ], To = I(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, id: a, label: o = "Phone number", placeholder: s, required: c = !1, error: l, showFlag: u = !0, showDialCode: d = !0, size: f = "md", fieldClassName: p = "", ...m }, h) {
6029
+ Y("AppPhoneNumberInput", m), J("AppPhoneNumberInput", "size", f, wo);
6022
6030
  let g = z(), _ = a || g, v = l && _ ? `${_}-error` : void 0, { setRef: y } = $({
6023
6031
  ref: h,
6024
6032
  value: e ?? "",
@@ -6058,7 +6066,7 @@ var So = [
6058
6066
  });
6059
6067
  //#endregion
6060
6068
  //#region src/components/AppPricingCard.jsx
6061
- function wo({ 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 }) {
6069
+ function Eo({ 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 }) {
6062
6070
  return Y("AppPricingCard", u), /* @__PURE__ */ q("div", {
6063
6071
  className: [
6064
6072
  "plan-card",
@@ -6112,21 +6120,21 @@ function wo({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
6112
6120
  }
6113
6121
  //#endregion
6114
6122
  //#region src/components/AppProgress.jsx
6115
- var To = ["sm", "md"], Eo = [
6123
+ var Do = ["sm", "md"], Oo = [
6116
6124
  "info",
6117
6125
  "success",
6118
6126
  "warning",
6119
6127
  "danger",
6120
6128
  "neutral"
6121
6129
  ];
6122
- function Do(e, t) {
6130
+ function ko(e, t) {
6123
6131
  if (!(t > 0)) return 0;
6124
6132
  let n = Math.min(100, Math.max(0, e / t * 100));
6125
6133
  return Number(n.toFixed(2));
6126
6134
  }
6127
- function Oo({ 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 }) {
6128
- Y("AppProgress", u), J("AppProgress", "tone", n, Eo), J("AppProgress", "size", r, To);
6129
- let d = Eo.includes(n) ? n : "info", f = Do(e, t), p = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, m = [
6135
+ function Ao({ 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 }) {
6136
+ Y("AppProgress", u), J("AppProgress", "tone", n, Oo), J("AppProgress", "size", r, Do);
6137
+ let d = Oo.includes(n) ? n : "info", f = ko(e, t), p = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, m = [
6130
6138
  "progress-bar",
6131
6139
  `wui-progress-${d}`,
6132
6140
  o || s ? "progress-bar-striped" : "",
@@ -6150,22 +6158,22 @@ function Oo({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
6150
6158
  }
6151
6159
  //#endregion
6152
6160
  //#region src/lib/qrCode.js
6153
- var ko = {
6161
+ var jo = {
6154
6162
  L: 0,
6155
6163
  M: 1,
6156
6164
  Q: 2,
6157
6165
  H: 3
6158
- }, Ao = [
6166
+ }, Mo = [
6159
6167
  1,
6160
6168
  0,
6161
6169
  3,
6162
6170
  2
6163
- ], jo = [
6171
+ ], No = [
6164
6172
  "L",
6165
6173
  "M",
6166
6174
  "Q",
6167
6175
  "H"
6168
- ], Mo = 3, No = 3, Po = 40, Fo = 10, Io = [
6176
+ ], Po = 3, Fo = 3, Io = 40, Lo = 10, Ro = [
6169
6177
  [
6170
6178
  -1,
6171
6179
  7,
@@ -6338,7 +6346,7 @@ var ko = {
6338
6346
  30,
6339
6347
  30
6340
6348
  ]
6341
- ], Lo = [
6349
+ ], zo = [
6342
6350
  [
6343
6351
  -1,
6344
6352
  1,
@@ -6512,24 +6520,24 @@ var ko = {
6512
6520
  81
6513
6521
  ]
6514
6522
  ];
6515
- function Ro(e, t = "M", { mask: n = -1, boostEcc: r = !0 } = {}) {
6516
- if (!Object.hasOwn(ko, t)) throw RangeError(`Unknown error correction level "${t}"`);
6523
+ function Bo(e, t = "M", { mask: n = -1, boostEcc: r = !0 } = {}) {
6524
+ if (!Object.hasOwn(jo, t)) throw RangeError(`Unknown error correction level "${t}"`);
6517
6525
  if (!Number.isInteger(n) || n < -1 || n > 7) throw RangeError("Mask must be -1 to 7");
6518
- let i = new TextEncoder().encode(String(e)), a = ko[t], o = 1, s = 0;
6519
- for (; s = Bo(i.length, o), !(s <= Yo(o, a) * 8); o++) if (o >= 40) throw RangeError(`Data too long for a QR code: ${i.length} bytes`);
6520
- for (let e = 1; e <= 3; e++) r && s <= Yo(o, e) * 8 && (a = Math.max(a, e));
6526
+ let i = new TextEncoder().encode(String(e)), a = jo[t], o = 1, s = 0;
6527
+ for (; s = Ho(i.length, o), !(s <= Zo(o, a) * 8); o++) if (o >= 40) throw RangeError(`Data too long for a QR code: ${i.length} bytes`);
6528
+ for (let e = 1; e <= 3; e++) r && s <= Zo(o, e) * 8 && (a = Math.max(a, e));
6521
6529
  let c = [];
6522
- es(4, 4, c), es(i.length, o <= 9 ? 8 : 16, c);
6523
- for (let e of i) es(e, 8, c);
6524
- let l = Yo(o, a) * 8;
6525
- es(0, Math.min(4, l - c.length), c), es(0, (8 - c.length % 8) % 8, c);
6526
- for (let e = 236; c.length < l; e ^= 253) es(e, 8, c);
6530
+ ns(4, 4, c), ns(i.length, o <= 9 ? 8 : 16, c);
6531
+ for (let e of i) ns(e, 8, c);
6532
+ let l = Zo(o, a) * 8;
6533
+ ns(0, Math.min(4, l - c.length), c), ns(0, (8 - c.length % 8) % 8, c);
6534
+ for (let e = 236; c.length < l; e ^= 253) ns(e, 8, c);
6527
6535
  let u = new Uint8Array(c.length / 8);
6528
6536
  return c.forEach((e, t) => {
6529
6537
  u[t >>> 3] |= e << 7 - (t & 7);
6530
- }), Vo(o, a, u, n);
6538
+ }), Uo(o, a, u, n);
6531
6539
  }
6532
- function zo(e, t = 4) {
6540
+ function Vo(e, t = 4) {
6533
6541
  let { size: n } = e, r = "";
6534
6542
  for (let i = 0; i < n; i++) {
6535
6543
  let a = 0;
@@ -6546,22 +6554,22 @@ function zo(e, t = 4) {
6546
6554
  }
6547
6555
  return r;
6548
6556
  }
6549
- function Bo(e, t) {
6557
+ function Ho(e, t) {
6550
6558
  let n = t <= 9 ? 8 : 16;
6551
6559
  return e >= 1 << n ? Infinity : 4 + n + e * 8;
6552
6560
  }
6553
- function Vo(e, t, n, r) {
6561
+ function Uo(e, t, n, r) {
6554
6562
  let i = e * 4 + 17, a = new Uint8Array(i * i), o = new Uint8Array(i * i), s = (e, t, n) => {
6555
6563
  a[t * i + e] = +!!n, o[t * i + e] = 1;
6556
6564
  }, c = (e) => {
6557
- let n = Ao[t] << 3 | e, r = n;
6565
+ let n = Mo[t] << 3 | e, r = n;
6558
6566
  for (let e = 0; e < 10; e++) r = r << 1 ^ (r >>> 9) * 1335;
6559
6567
  let a = (n << 10 | r) ^ 21522;
6560
- for (let e = 0; e <= 5; e++) s(8, e, ts(a, e));
6561
- s(8, 7, ts(a, 6)), s(8, 8, ts(a, 7)), s(7, 8, ts(a, 8));
6562
- for (let e = 9; e < 15; e++) s(14 - e, 8, ts(a, e));
6563
- for (let e = 0; e < 8; e++) s(i - 1 - e, 8, ts(a, e));
6564
- for (let e = 8; e < 15; e++) s(8, i - 15 + e, ts(a, e));
6568
+ for (let e = 0; e <= 5; e++) s(8, e, rs(a, e));
6569
+ s(8, 7, rs(a, 6)), s(8, 8, rs(a, 7)), s(7, 8, rs(a, 8));
6570
+ for (let e = 9; e < 15; e++) s(14 - e, 8, rs(a, e));
6571
+ for (let e = 0; e < 8; e++) s(i - 1 - e, 8, rs(a, e));
6572
+ for (let e = 8; e < 15; e++) s(8, i - 15 + e, rs(a, e));
6565
6573
  s(8, i - 8, !0);
6566
6574
  }, l = (e, t) => {
6567
6575
  for (let n = -4; n <= 4; n++) for (let r = -4; r <= 4; r++) {
@@ -6573,45 +6581,45 @@ function Vo(e, t, n, r) {
6573
6581
  };
6574
6582
  for (let e = 0; e < i; e++) s(6, e, e % 2 == 0), s(e, 6, e % 2 == 0);
6575
6583
  l(3, 3), l(i - 4, 3), l(3, i - 4);
6576
- let d = qo(e, i), f = d.length;
6584
+ let d = Yo(e, i), f = d.length;
6577
6585
  for (let e = 0; e < f; e++) for (let t = 0; t < f; t++) e === 0 && t === 0 || e === 0 && t === f - 1 || e === f - 1 && t === 0 || u(d[e], d[t]);
6578
6586
  if (c(0), e >= 7) {
6579
6587
  let t = e;
6580
6588
  for (let e = 0; e < 12; e++) t = t << 1 ^ (t >>> 11) * 7973;
6581
6589
  let n = e << 12 | t;
6582
6590
  for (let e = 0; e < 18; e++) {
6583
- let t = ts(n, e), r = i - 11 + e % 3, a = Math.floor(e / 3);
6591
+ let t = rs(n, e), r = i - 11 + e % 3, a = Math.floor(e / 3);
6584
6592
  s(r, a, t), s(a, r, t);
6585
6593
  }
6586
6594
  }
6587
- let p = Xo(n, e, t), m = 0, h = p.length * 8;
6595
+ let p = Qo(n, e, t), m = 0, h = p.length * 8;
6588
6596
  for (let e = i - 1; e >= 1; e -= 2) {
6589
6597
  e === 6 && (e = 5);
6590
6598
  for (let t = 0; t < i; t++) for (let n = 0; n < 2; n++) {
6591
6599
  let r = e - n, s = e + 1 & 2 ? t : i - 1 - t;
6592
- !o[s * i + r] && m < h && (a[s * i + r] = +!!ts(p[m >>> 3], 7 - (m & 7)), m++);
6600
+ !o[s * i + r] && m < h && (a[s * i + r] = +!!rs(p[m >>> 3], 7 - (m & 7)), m++);
6593
6601
  }
6594
6602
  }
6595
6603
  let g = (e) => {
6596
- for (let t = 0; t < i; t++) for (let n = 0; n < i; n++) !o[t * i + n] && Ho(e, n, t) && (a[t * i + n] ^= 1);
6604
+ for (let t = 0; t < i; t++) for (let n = 0; n < i; n++) !o[t * i + n] && Wo(e, n, t) && (a[t * i + n] ^= 1);
6597
6605
  }, _ = r;
6598
6606
  if (_ === -1) {
6599
6607
  let e = Infinity;
6600
6608
  for (let t = 0; t < 8; t++) {
6601
6609
  g(t), c(t);
6602
- let n = Uo(a, i);
6610
+ let n = Go(a, i);
6603
6611
  n < e && (_ = t, e = n), g(t);
6604
6612
  }
6605
6613
  }
6606
6614
  return g(_), c(_), Object.freeze({
6607
6615
  size: i,
6608
6616
  version: e,
6609
- ecc: jo[t],
6617
+ ecc: No[t],
6610
6618
  mask: _,
6611
6619
  isDark: (e, t) => e >= 0 && e < i && t >= 0 && t < i && a[e * i + t] === 1
6612
6620
  });
6613
6621
  }
6614
- function Ho(e, t, n) {
6622
+ function Wo(e, t, n) {
6615
6623
  switch (e) {
6616
6624
  case 0: return (t + n) % 2 == 0;
6617
6625
  case 1: return n % 2 == 0;
@@ -6623,7 +6631,7 @@ function Ho(e, t, n) {
6623
6631
  default: return ((t + n) % 2 + t * n % 3) % 2 == 0;
6624
6632
  }
6625
6633
  }
6626
- function Uo(e, t) {
6634
+ function Go(e, t) {
6627
6635
  let n = 0, r = (n, r) => e[r * t + n] === 1;
6628
6636
  for (let e = 0; e < 2; e++) for (let i = 0; i < t; i++) {
6629
6637
  let a = !1, o = 0, s = [
@@ -6637,38 +6645,38 @@ function Uo(e, t) {
6637
6645
  ];
6638
6646
  for (let c = 0; c < t; c++) {
6639
6647
  let l = e === 0 ? r(c, i) : r(i, c);
6640
- l === a ? (o++, o === 5 ? n += Mo : o > 5 && n++) : (Ko(o, s, t), a || (n += Wo(s) * Po), a = l, o = 1);
6648
+ l === a ? (o++, o === 5 ? n += Po : o > 5 && n++) : (Jo(o, s, t), a || (n += Ko(s) * Io), a = l, o = 1);
6641
6649
  }
6642
- n += Go(a, o, s, t) * Po;
6650
+ n += qo(a, o, s, t) * Io;
6643
6651
  }
6644
6652
  for (let e = 0; e < t - 1; e++) for (let i = 0; i < t - 1; i++) {
6645
6653
  let t = r(i, e);
6646
- t === r(i + 1, e) && t === r(i, e + 1) && t === r(i + 1, e + 1) && (n += No);
6654
+ t === r(i + 1, e) && t === r(i, e + 1) && t === r(i + 1, e + 1) && (n += Fo);
6647
6655
  }
6648
6656
  let i = 0;
6649
6657
  for (let t of e) i += t;
6650
6658
  let a = t * t, o = Math.ceil(Math.abs(i * 20 - a * 10) / a) - 1;
6651
- return n += o * Fo, n;
6659
+ return n += o * Lo, n;
6652
6660
  }
6653
- function Wo(e) {
6661
+ function Ko(e) {
6654
6662
  let t = e[1], n = t > 0 && e[2] === t && e[3] === t * 3 && e[4] === t && e[5] === t;
6655
6663
  return (n && e[0] >= t * 4 && e[6] >= t ? 1 : 0) + (n && e[6] >= t * 4 && e[0] >= t ? 1 : 0);
6656
6664
  }
6657
- function Go(e, t, n, r) {
6665
+ function qo(e, t, n, r) {
6658
6666
  let i = t;
6659
- return e && (Ko(i, n, r), i = 0), i += r, Ko(i, n, r), Wo(n);
6667
+ return e && (Jo(i, n, r), i = 0), i += r, Jo(i, n, r), Ko(n);
6660
6668
  }
6661
- function Ko(e, t, n) {
6669
+ function Jo(e, t, n) {
6662
6670
  let r = t[0] === 0 ? e + n : e;
6663
6671
  t.pop(), t.unshift(r);
6664
6672
  }
6665
- function qo(e, t) {
6673
+ function Yo(e, t) {
6666
6674
  if (e === 1) return [];
6667
6675
  let n = Math.floor(e / 7) + 2, r = Math.floor((e * 8 + n * 3 + 5) / (n * 4 - 4)) * 2, i = [6];
6668
6676
  for (let e = t - 7; i.length < n; e -= r) i.splice(1, 0, e);
6669
6677
  return i;
6670
6678
  }
6671
- function Jo(e) {
6679
+ function Xo(e) {
6672
6680
  let t = (16 * e + 128) * e + 64;
6673
6681
  if (e >= 2) {
6674
6682
  let n = Math.floor(e / 7) + 2;
@@ -6676,15 +6684,15 @@ function Jo(e) {
6676
6684
  }
6677
6685
  return t;
6678
6686
  }
6679
- function Yo(e, t) {
6680
- return Math.floor(Jo(e) / 8) - Io[t][e] * Lo[t][e];
6687
+ function Zo(e, t) {
6688
+ return Math.floor(Xo(e) / 8) - Ro[t][e] * zo[t][e];
6681
6689
  }
6682
- function Xo(e, t, n) {
6683
- let r = Lo[n][t], i = Io[n][t], a = Math.floor(Jo(t) / 8), o = r - a % r, s = Math.floor(a / r), c = [], l = Zo(i);
6690
+ function Qo(e, t, n) {
6691
+ let r = zo[n][t], i = Ro[n][t], a = Math.floor(Xo(t) / 8), o = r - a % r, s = Math.floor(a / r), c = [], l = $o(i);
6684
6692
  for (let t = 0, n = 0; t < r; t++) {
6685
6693
  let r = Array.from(e.subarray(n, n + s - i + (t < o ? 0 : 1)));
6686
6694
  n += r.length;
6687
- let a = Qo(r, l);
6695
+ let a = es(r, l);
6688
6696
  t < o && r.push(0), c.push(r.concat(a));
6689
6697
  }
6690
6698
  let u = [];
@@ -6693,48 +6701,48 @@ function Xo(e, t, n) {
6693
6701
  });
6694
6702
  return u;
6695
6703
  }
6696
- function Zo(e) {
6704
+ function $o(e) {
6697
6705
  let t = Array(e).fill(0);
6698
6706
  t[e - 1] = 1;
6699
6707
  let n = 1;
6700
6708
  for (let r = 0; r < e; r++) {
6701
- for (let e = 0; e < t.length; e++) t[e] = $o(t[e], n), e + 1 < t.length && (t[e] ^= t[e + 1]);
6702
- n = $o(n, 2);
6709
+ for (let e = 0; e < t.length; e++) t[e] = ts(t[e], n), e + 1 < t.length && (t[e] ^= t[e + 1]);
6710
+ n = ts(n, 2);
6703
6711
  }
6704
6712
  return t;
6705
6713
  }
6706
- function Qo(e, t) {
6714
+ function es(e, t) {
6707
6715
  let n = t.map(() => 0);
6708
6716
  for (let r of e) {
6709
6717
  let e = r ^ n.shift();
6710
6718
  n.push(0), t.forEach((t, r) => {
6711
- n[r] ^= $o(t, e);
6719
+ n[r] ^= ts(t, e);
6712
6720
  });
6713
6721
  }
6714
6722
  return n;
6715
6723
  }
6716
- function $o(e, t) {
6724
+ function ts(e, t) {
6717
6725
  let n = 0;
6718
6726
  for (let r = 7; r >= 0; r--) n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> r & 1) * e;
6719
6727
  return n;
6720
6728
  }
6721
- function es(e, t, n) {
6729
+ function ns(e, t, n) {
6722
6730
  for (let r = t - 1; r >= 0; r--) n.push(e >>> r & 1);
6723
6731
  }
6724
- function ts(e, t) {
6732
+ function rs(e, t) {
6725
6733
  return (e >>> t & 1) != 0;
6726
6734
  }
6727
6735
  //#endregion
6728
6736
  //#region src/components/AppQrCode.jsx
6729
- var ns = 4;
6730
- function rs({ value: e, size: t = 240, title: n = "QR code", className: r, style: i, ...a }) {
6737
+ var is = 4;
6738
+ function as({ value: e, size: t = 240, title: n = "QR code", className: r, style: i, ...a }) {
6731
6739
  Y("AppQrCode", a);
6732
6740
  let o = ie(() => {
6733
6741
  if (!e) return null;
6734
- let t = Ro(String(e));
6742
+ let t = Bo(String(e));
6735
6743
  return {
6736
- modules: t.size + ns * 2,
6737
- path: zo(t, ns)
6744
+ modules: t.size + is * 2,
6745
+ path: Vo(t, is)
6738
6746
  };
6739
6747
  }, [e]);
6740
6748
  if (!o) return null;
@@ -6761,7 +6769,7 @@ function rs({ value: e, size: t = 240, title: n = "QR code", className: r, style
6761
6769
  }
6762
6770
  //#endregion
6763
6771
  //#region src/components/AppRadio.jsx
6764
- var is = I(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
6772
+ var os = I(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
6765
6773
  return Y("AppRadio", o), /* @__PURE__ */ K(Kn, {
6766
6774
  ref: s,
6767
6775
  label: e,
@@ -6777,7 +6785,7 @@ var is = I(function({ label: e, id: t, name: n, error: r, hint: i, className: a
6777
6785
  });
6778
6786
  //#endregion
6779
6787
  //#region src/components/AppRadioGroup.jsx
6780
- function as({ label: e, options: t = [], name: n, value: r, defaultValue: i, onChange: a, inline: o = !1, required: s = !1, disabled: c = !1, error: l, hint: u, help: d, helpLabel: f = "More information", id: p, className: m = "", fieldClassName: h = "", style: g, ..._ }) {
6788
+ function ss({ label: e, options: t = [], name: n, value: r, defaultValue: i, onChange: a, inline: o = !1, required: s = !1, disabled: c = !1, error: l, hint: u, help: d, helpLabel: f = "More information", id: p, className: m = "", fieldClassName: h = "", style: g, ..._ }) {
6781
6789
  Y("AppRadioGroup", _);
6782
6790
  let v = z(), y = p || v, b = n || y, x = `${y}-error`, S = `${y}-hint`, C = r !== void 0;
6783
6791
  return /* @__PURE__ */ q("div", {
@@ -6850,7 +6858,7 @@ function as({ label: e, options: t = [], name: n, value: r, defaultValue: i, onC
6850
6858
  }
6851
6859
  //#endregion
6852
6860
  //#region src/components/AppRepeater.jsx
6853
- function os({ 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 }) {
6861
+ function cs({ 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 }) {
6854
6862
  Y("AppRepeater", p);
6855
6863
  let m = typeof u == "number" && e.length >= u, h = !!i && e.length > l;
6856
6864
  return /* @__PURE__ */ q("div", {
@@ -6902,7 +6910,7 @@ function os({ rows: e = [], renderRow: t, rowLabel: n, onAdd: r, onRemove: i, ad
6902
6910
  }
6903
6911
  //#endregion
6904
6912
  //#region src/components/AppResourceCard.jsx
6905
- function ss({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
6913
+ function ls({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
6906
6914
  Y("AppResourceCard", s);
6907
6915
  let c = /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("span", {
6908
6916
  className: "res-card-icon",
@@ -6936,7 +6944,7 @@ function ss({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
6936
6944
  }
6937
6945
  //#endregion
6938
6946
  //#region src/components/AppResult.jsx
6939
- var cs = {
6947
+ var us = {
6940
6948
  success: {
6941
6949
  icon: "check-circle",
6942
6950
  tone: "success"
@@ -6957,9 +6965,9 @@ var cs = {
6957
6965
  404: { tone: "muted" },
6958
6966
  500: { tone: "muted" }
6959
6967
  };
6960
- function ls({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
6961
- Y("AppResult", s), J("AppResult", "status", e, Object.keys(cs));
6962
- let c = cs[e] || cs.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
6968
+ function ds({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
6969
+ Y("AppResult", s), J("AppResult", "status", e, Object.keys(us));
6970
+ let c = us[e] || us.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
6963
6971
  return /* @__PURE__ */ q("div", {
6964
6972
  className: [
6965
6973
  "result",
@@ -6997,13 +7005,13 @@ function ls({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
6997
7005
  }
6998
7006
  //#endregion
6999
7007
  //#region src/components/AppRichText.jsx
7000
- var us = ["html", "markdown"], ds = ["input", "change"], fs = "The editor couldn't load. Reload the page and try again.", ps = I(function({ value: e, onChange: t, format: n, placeholder: r, name: i, label: a, error: o, hint: s, required: c = !1, disabled: l = !1, readOnly: u = !1, id: d, ariaLabel: f, className: p = "", fieldClassName: m = "", help: h, helpLabel: g = "More information", ..._ }, v) {
7001
- Y("AppRichText", _), J("AppRichText", "format", n, us);
7008
+ var fs = ["html", "markdown"], ps = ["input", "change"], ms = "The editor couldn't load. Reload the page and try again.", hs = I(function({ value: e, onChange: t, format: n, placeholder: r, name: i, label: a, error: o, hint: s, required: c = !1, disabled: l = !1, readOnly: u = !1, id: d, ariaLabel: f, className: p = "", fieldClassName: m = "", help: h, helpLabel: g = "More information", ..._ }, v) {
7009
+ Y("AppRichText", _), J("AppRichText", "format", n, fs);
7002
7010
  let y = z(), b = d || y, [x, S] = H(!1), { setRef: C } = $({
7003
7011
  ref: v,
7004
7012
  value: e,
7005
7013
  onChange: t,
7006
- events: ds
7014
+ events: ps
7007
7015
  });
7008
7016
  return R(() => {
7009
7017
  let e = !0;
@@ -7030,7 +7038,7 @@ var us = ["html", "markdown"], ds = ["input", "change"], fs = "The editor couldn
7030
7038
  x ? /* @__PURE__ */ K("div", {
7031
7039
  className: "field-error",
7032
7040
  role: "status",
7033
- children: fs
7041
+ children: ms
7034
7042
  }) : /* @__PURE__ */ K("wui-rich-text", {
7035
7043
  ref: C,
7036
7044
  id: b,
@@ -7060,7 +7068,7 @@ var us = ["html", "markdown"], ds = ["input", "change"], fs = "The editor couldn
7060
7068
  });
7061
7069
  //#endregion
7062
7070
  //#region src/components/AppScrollbar.jsx
7063
- function ms({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7071
+ function gs({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7064
7072
  return Y("AppScrollbar", i), /* @__PURE__ */ K("div", {
7065
7073
  className: t ? `wui-scroll ${t}` : "wui-scroll",
7066
7074
  style: n == null ? r : {
@@ -7073,36 +7081,36 @@ function ms({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7073
7081
  }
7074
7082
  //#endregion
7075
7083
  //#region src/lib/navMatch.js
7076
- var hs = /^[a-z][a-z0-9+.-]*:/i;
7077
- function gs(e) {
7084
+ var _s = /^[a-z][a-z0-9+.-]*:/i;
7085
+ function vs(e) {
7078
7086
  if (typeof e != "string" || e.trim() === "") return null;
7079
7087
  let t = e.trim(), n = t.search(/[?#]/);
7080
- if (n >= 0 && (t = t.slice(0, n)), t.startsWith("~/") && (t = t.slice(1)), t === "" || t.startsWith("//") || hs.test(t)) return null;
7088
+ if (n >= 0 && (t = t.slice(0, n)), t.startsWith("~/") && (t = t.slice(1)), t === "" || t.startsWith("//") || _s.test(t)) return null;
7081
7089
  for (t[0] !== "/" && (t = `/${t}`); t.length > 1 && t.endsWith("/");) t = t.slice(0, -1);
7082
7090
  return t;
7083
7091
  }
7084
- function _s(e, t, n) {
7092
+ function ys(e, t, n) {
7085
7093
  return e.toLowerCase() === t.toLowerCase() ? !0 : n || t === "/" ? !1 : e.toLowerCase().startsWith(`${t.toLowerCase()}/`);
7086
7094
  }
7087
- function vs(e, t) {
7095
+ function bs(e, t) {
7088
7096
  return e == null || t == null ? e : e.toLowerCase() === t.toLowerCase() ? "/" : e.toLowerCase().startsWith(`${t.toLowerCase()}/`) ? e.slice(t.length) : e;
7089
7097
  }
7090
- function ys(e, t, { exact: n = !1, also: r, pathBase: i } = {}) {
7091
- let a = gs(e);
7098
+ function xs(e, t, { exact: n = !1, also: r, pathBase: i } = {}) {
7099
+ let a = vs(e);
7092
7100
  if (a == null) return -1;
7093
- let o = gs(i);
7101
+ let o = vs(i);
7094
7102
  o === "/" && (o = null);
7095
7103
  let s = -1, c = (e, t) => {
7096
- e != null && _s(a, e, t) && (s = Math.max(s, e.length));
7104
+ e != null && ys(a, e, t) && (s = Math.max(s, e.length));
7097
7105
  };
7098
- c(vs(gs(t), o), n);
7099
- for (let e of r ?? []) c(vs(gs(e), o), !1);
7106
+ c(bs(vs(t), o), n);
7107
+ for (let e of r ?? []) c(bs(vs(e), o), !1);
7100
7108
  return s;
7101
7109
  }
7102
7110
  //#endregion
7103
7111
  //#region src/lib/shellCookie.js
7104
- var bs = "wui-shell-collapsed", xs = 31536e3;
7105
- function Ss(e = bs, t = document) {
7112
+ var Ss = "wui-shell-collapsed", Cs = 31536e3;
7113
+ function ws(e = Ss, t = document) {
7106
7114
  for (let n of t.cookie.split(";")) {
7107
7115
  let t = n.indexOf("=");
7108
7116
  if (t < 0 || n.slice(0, t).trim() !== e) continue;
@@ -7111,18 +7119,18 @@ function Ss(e = bs, t = document) {
7111
7119
  }
7112
7120
  return null;
7113
7121
  }
7114
- function Cs(e, t = bs, n = document) {
7115
- n.cookie = `${t}=${e ? "1" : "0"}; Path=/; Max-Age=${xs}; SameSite=Lax`;
7122
+ function Ts(e, t = Ss, n = document) {
7123
+ n.cookie = `${t}=${e ? "1" : "0"}; Path=/; Max-Age=${Cs}; SameSite=Lax`;
7116
7124
  }
7117
7125
  //#endregion
7118
7126
  //#region src/components/AppShell.jsx
7119
- var ws = 99, Ts = 4, Es = 5, Ds = ["prefix", "exact"], Os = (e) => e > ws ? `${ws}+` : String(e);
7120
- function ks({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r, sidebarFooter: i, topbarStart: a, topbarEnd: o, footer: s, children: c, collapsed: l, onCollapsedChange: u, noSidebar: d = !1, navLabel: f = "Main navigation", linkComponent: p, currentPath: m, rememberCollapsed: h = !1, collapsedCookie: g = "wui-shell-collapsed", tabBarLabel: _ = "Quick navigation", moreLabel: v = "More", userMenu: y, notifications: b, search: x, className: S = "", ...C }) {
7127
+ var Es = 99, Ds = 4, Os = 5, ks = ["prefix", "exact"], As = (e) => e > Es ? `${Es}+` : String(e);
7128
+ function js({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r, sidebarFooter: i, topbarStart: a, topbarEnd: o, footer: s, children: c, collapsed: l, onCollapsedChange: u, noSidebar: d = !1, navLabel: f = "Main navigation", linkComponent: p, currentPath: m, rememberCollapsed: h = !1, collapsedCookie: g = "wui-shell-collapsed", tabBarLabel: _ = "Quick navigation", moreLabel: v = "More", userMenu: y, notifications: b, search: x, className: S = "", ...C }) {
7121
7129
  Y("AppShell", C);
7122
- let [w, T] = H(() => h && l === void 0 && typeof document < "u" ? Ss(g) ?? !1 : !1), [E, D] = H(!1), [O, k] = H(!1), A = l ?? w, j = () => {
7130
+ let [w, T] = H(() => h && l === void 0 && typeof document < "u" ? ws(g) ?? !1 : !1), [E, D] = H(!1), [O, k] = H(!1), A = l ?? w, j = () => {
7123
7131
  let e = !A;
7124
- l === void 0 && T(e), h && Cs(e, g), u?.(e);
7125
- }, M = ie(() => As(e, m), [e, m]), N = d ? null : js(M);
7132
+ l === void 0 && T(e), h && Ts(e, g), u?.(e);
7133
+ }, M = ie(() => Ms(e, m), [e, m]), N = d ? null : Ns(M);
7126
7134
  return R(() => {
7127
7135
  let e = () => k(window.scrollY > 4);
7128
7136
  return e(), window.addEventListener("scroll", e, { passive: !0 }), () => window.removeEventListener("scroll", e);
@@ -7165,7 +7173,7 @@ function ks({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7165
7173
  children: [e.label && /* @__PURE__ */ K("div", {
7166
7174
  className: "app-nav-group-label",
7167
7175
  children: e.label
7168
- }), e.items.map((e) => /* @__PURE__ */ K(Ns, {
7176
+ }), e.items.map((e) => /* @__PURE__ */ K(Fs, {
7169
7177
  item: e,
7170
7178
  linkComponent: p,
7171
7179
  onNavigate: () => D(!1)
@@ -7209,14 +7217,14 @@ function ks({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7209
7217
  })
7210
7218
  }),
7211
7219
  a,
7212
- x && /* @__PURE__ */ K(Rs, { config: x })
7220
+ x && /* @__PURE__ */ K(Bs, { config: x })
7213
7221
  ]
7214
7222
  }), /* @__PURE__ */ q("div", {
7215
7223
  className: "app-topbar-end",
7216
7224
  children: [
7217
7225
  o,
7218
- b && /* @__PURE__ */ K(Is, { config: b }),
7219
- y && /* @__PURE__ */ K(Fs, {
7226
+ b && /* @__PURE__ */ K(Rs, { config: b }),
7227
+ y && /* @__PURE__ */ K(Ls, {
7220
7228
  config: y,
7221
7229
  linkComponent: p
7222
7230
  })
@@ -7236,7 +7244,7 @@ function ks({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7236
7244
  N && /* @__PURE__ */ q("nav", {
7237
7245
  className: "wui-tabbar",
7238
7246
  "aria-label": _,
7239
- children: [N.tabs.map((e) => /* @__PURE__ */ K(Ms, {
7247
+ children: [N.tabs.map((e) => /* @__PURE__ */ K(Ps, {
7240
7248
  tab: e,
7241
7249
  linkComponent: p
7242
7250
  }, e.key ?? e.href)), N.hasMore && /* @__PURE__ */ q("button", {
@@ -7265,7 +7273,7 @@ function ks({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7265
7273
  ]
7266
7274
  });
7267
7275
  }
7268
- function As(e, t) {
7276
+ function Ms(e, t) {
7269
7277
  let n = (e) => (e ?? []).map((e) => Array.isArray(e.children) ? {
7270
7278
  ...e,
7271
7279
  children: n(e.children)
@@ -7276,13 +7284,13 @@ function As(e, t) {
7276
7284
  for (let t of e) i.push(t), t.children && a(t.children);
7277
7285
  };
7278
7286
  for (let e of r) a(e.items);
7279
- for (let e of i) J("AppShell", "match", e.match, Ds);
7287
+ for (let e of i) J("AppShell", "match", e.match, ks);
7280
7288
  let o = null;
7281
7289
  if (t != null && !i.some((e) => e.active === !0)) {
7282
7290
  let e = -1;
7283
7291
  for (let n of i) {
7284
7292
  if (n.active != null || n.children?.length) continue;
7285
- let r = ys(t, n.href, {
7293
+ let r = xs(t, n.href, {
7286
7294
  exact: n.match === "exact",
7287
7295
  also: n.matchAlso
7288
7296
  });
@@ -7292,14 +7300,14 @@ function As(e, t) {
7292
7300
  for (let e of i) e.active = e.active ?? e === o;
7293
7301
  return r;
7294
7302
  }
7295
- function js(e) {
7303
+ function Ns(e) {
7296
7304
  let t = [], n = (e) => {
7297
7305
  for (let r of e) r.children?.length ? n(r.children) : t.push(r);
7298
7306
  };
7299
7307
  for (let t of e) n(t.items);
7300
7308
  let r = t.filter((e) => e.tab);
7301
7309
  if (r.length === 0) return null;
7302
- let i = r.length < t.length, a = i ? Ts : Es;
7310
+ let i = r.length < t.length, a = i ? Ds : Os;
7303
7311
  if (r.length > a) throw Error(`<AppShell>: ${r.length} items carry tab: true, but the phone tab bar holds ${a} (${i ? "4 plus More, because other items exist" : "5 when every item is a tab"}). Flag fewer items.`);
7304
7312
  return {
7305
7313
  tabs: r,
@@ -7307,7 +7315,7 @@ function js(e) {
7307
7315
  moreActive: t.some((e) => !e.tab && e.active)
7308
7316
  };
7309
7317
  }
7310
- function Ms({ tab: e, linkComponent: t }) {
7318
+ function Ps({ tab: e, linkComponent: t }) {
7311
7319
  let n = `wui-tabbar-item${e.active ? " active" : ""}`, r = /* @__PURE__ */ q(G, { children: [
7312
7320
  e.icon && /* @__PURE__ */ K("span", {
7313
7321
  className: "wui-tabbar-icon",
@@ -7337,7 +7345,7 @@ function Ms({ tab: e, linkComponent: t }) {
7337
7345
  children: r
7338
7346
  });
7339
7347
  }
7340
- function Ns({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7348
+ function Fs({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7341
7349
  let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [o, s] = H(a);
7342
7350
  R(() => {
7343
7351
  a && !o && s(!0);
@@ -7379,7 +7387,7 @@ function Ns({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7379
7387
  "aria-hidden": !o || void 0,
7380
7388
  children: /* @__PURE__ */ K("div", {
7381
7389
  className: "app-nav-sub-inner",
7382
- children: e.children.map((e) => /* @__PURE__ */ K(Ns, {
7390
+ children: e.children.map((e) => /* @__PURE__ */ K(Fs, {
7383
7391
  item: e,
7384
7392
  linkComponent: t,
7385
7393
  onNavigate: n,
@@ -7418,7 +7426,7 @@ function Ns({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7418
7426
  children: f
7419
7427
  });
7420
7428
  }
7421
- function Ps() {
7429
+ function Is() {
7422
7430
  let [e, t] = H(!1), n = V(null);
7423
7431
  return R(() => {
7424
7432
  if (!e) return;
@@ -7436,8 +7444,8 @@ function Ps() {
7436
7444
  ref: n
7437
7445
  };
7438
7446
  }
7439
- function Fs({ config: e, linkComponent: t }) {
7440
- let n = z(), { open: r, setOpen: i, ref: a } = Ps(), { name: o, role: s, photo: c, profileHref: l, profileLabel: u = "My profile", onLogout: d, logoutAction: f, logoutLabel: p = "Sign out", items: m = [] } = e;
7447
+ function Ls({ config: e, linkComponent: t }) {
7448
+ let n = z(), { open: r, setOpen: i, ref: a } = Is(), { name: o, role: s, photo: c, profileHref: l, profileLabel: u = "My profile", onLogout: d, logoutAction: f, logoutLabel: p = "Sign out", items: m = [] } = e;
7441
7449
  if (!o) throw Error("<AppShell> userMenu.name is required; the trigger and the avatar are named from it.");
7442
7450
  let h = () => i(!1), g = (e, n, r, i) => t ? /* @__PURE__ */ K(t, {
7443
7451
  className: "dropdown-item",
@@ -7548,10 +7556,10 @@ function Fs({ config: e, linkComponent: t }) {
7548
7556
  })]
7549
7557
  });
7550
7558
  }
7551
- function Is({ config: e }) {
7552
- let t = z(), { open: n, setOpen: r, ref: i } = Ps(), { unread: a = 0, items: o, loading: s = !1, onOpen: c, onMarkAllRead: l, viewAllHref: u, label: d = "Notifications", emptyText: f = "You are all caught up." } = e, [p, m] = H(""), h = V(a);
7559
+ function Rs({ config: e }) {
7560
+ let t = z(), { open: n, setOpen: r, ref: i } = Is(), { unread: a = 0, items: o, loading: s = !1, onOpen: c, onMarkAllRead: l, viewAllHref: u, label: d = "Notifications", emptyText: f = "You are all caught up." } = e, [p, m] = H(""), h = V(a);
7553
7561
  R(() => {
7554
- h.current !== a && (h.current = a, m(a === 0 ? "No unread notifications" : `${Os(a)} unread notifications`));
7562
+ h.current !== a && (h.current = a, m(a === 0 ? "No unread notifications" : `${As(a)} unread notifications`));
7555
7563
  }, [a]);
7556
7564
  let g = null;
7557
7565
  return o?.length ? g = /* @__PURE__ */ K("div", {
@@ -7613,7 +7621,7 @@ function Is({ config: e }) {
7613
7621
  id: t,
7614
7622
  className: "topbar-icon-btn wui-bell-trigger",
7615
7623
  "aria-expanded": n,
7616
- "aria-label": a === 0 ? d : `${d}, ${Os(a)} unread`,
7624
+ "aria-label": a === 0 ? d : `${d}, ${As(a)} unread`,
7617
7625
  onClick: () => {
7618
7626
  let e = !n;
7619
7627
  r(e), e && c?.();
@@ -7625,7 +7633,7 @@ function Is({ config: e }) {
7625
7633
  className: "wui-bell-count",
7626
7634
  "aria-hidden": "true",
7627
7635
  hidden: a === 0,
7628
- children: Os(a)
7636
+ children: As(a)
7629
7637
  })]
7630
7638
  }),
7631
7639
  /* @__PURE__ */ K("span", {
@@ -7665,8 +7673,8 @@ function Is({ config: e }) {
7665
7673
  ]
7666
7674
  });
7667
7675
  }
7668
- var Ls = (e) => !!e && (e.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));
7669
- function Rs({ config: e }) {
7676
+ var zs = (e) => !!e && (e.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));
7677
+ function Bs({ config: e }) {
7670
7678
  let t = z(), { value: n = "", onChange: r, results: i = null, loading: a = !1, onSelect: o, onSubmit: s, placeholder: c = "Search" } = e, [l, u] = H(!1), [d, f] = H(!1), [p, m] = H({
7671
7679
  results: null,
7672
7680
  index: -1
@@ -7676,7 +7684,7 @@ function Rs({ config: e }) {
7676
7684
  }), _ = V(null), v = V(null), y = V([]), b = ie(() => (i ?? []).flatMap((e) => e.hits ?? []), [i]), x = i != null && !d, S = b.length;
7677
7685
  R(() => {
7678
7686
  let e = (e) => {
7679
- e.key !== "/" || e.ctrlKey || e.metaKey || e.altKey || Ls(e.target) || (e.preventDefault(), u(!0), v.current?.focus());
7687
+ e.key !== "/" || e.ctrlKey || e.metaKey || e.altKey || zs(e.target) || (e.preventDefault(), u(!0), v.current?.focus());
7680
7688
  }, t = (e) => {
7681
7689
  _.current?.contains(e.target) || (f(!0), u(!1));
7682
7690
  };
@@ -7809,7 +7817,7 @@ function Rs({ config: e }) {
7809
7817
  }
7810
7818
  //#endregion
7811
7819
  //#region src/components/AppSidebarMenu.jsx
7812
- var zs = {
7820
+ var Vs = {
7813
7821
  left: "start",
7814
7822
  right: "end",
7815
7823
  start: "start",
@@ -7817,9 +7825,9 @@ var zs = {
7817
7825
  top: "top",
7818
7826
  bottom: "bottom"
7819
7827
  };
7820
- function Bs({ 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, closeLabel: m = "Close", responsive: h, className: g = "", bodyClassName: _ = "", ariaLabel: v, ...y }) {
7821
- Y("AppSidebarMenu", y), J("AppSidebarMenu", "side", n, Object.keys(zs));
7822
- let { style: b, ...x } = y, S = zs[n] || "end", C = c || l || b ? {
7828
+ function Hs({ 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, closeLabel: m = "Close", responsive: h, className: g = "", bodyClassName: _ = "", ariaLabel: v, ...y }) {
7829
+ Y("AppSidebarMenu", y), J("AppSidebarMenu", "side", n, Object.keys(Vs));
7830
+ let { style: b, ...x } = y, S = Vs[n] || "end", C = c || l || b ? {
7823
7831
  ...c && { "--asm-width": c },
7824
7832
  ...l && { "--asm-max-width": l },
7825
7833
  ...b
@@ -7880,12 +7888,12 @@ function Bs({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
7880
7888
  }
7881
7889
  //#endregion
7882
7890
  //#region src/components/AppSlider.jsx
7883
- var Vs = [
7891
+ var Us = [
7884
7892
  "sm",
7885
7893
  "md",
7886
7894
  "lg"
7887
- ], Hs = I(function({ value: e, start: t, end: n, range: r = !1, onChange: i, label: a, required: o = !1, hint: s, error: c, name: l, startName: u, endName: d, min: f = 0, max: p = 100, step: m = 1, disabled: h, size: g, showValue: _, unit: v, id: y, ariaLabel: b, className: x = "", fieldClassName: S = "", ...C }, w) {
7888
- Y("AppSlider", C), J("AppSlider", "size", g, Vs);
7895
+ ], Ws = I(function({ value: e, start: t, end: n, range: r = !1, onChange: i, label: a, required: o = !1, hint: s, error: c, name: l, startName: u, endName: d, min: f = 0, max: p = 100, step: m = 1, disabled: h, size: g, showValue: _, unit: v, id: y, ariaLabel: b, className: x = "", fieldClassName: S = "", ...C }, w) {
7896
+ Y("AppSlider", C), J("AppSlider", "size", g, Us);
7889
7897
  let T = z(), E = y || T, D = r, { setRef: O, innerRef: k } = $({
7890
7898
  ref: w,
7891
7899
  value: D ? void 0 : e,
@@ -7945,12 +7953,12 @@ var Vs = [
7945
7953
  })
7946
7954
  ]
7947
7955
  });
7948
- }), Us = ["vertical", "horizontal"], Ws = (e, t) => {
7956
+ }), Gs = ["vertical", "horizontal"], Ks = (e, t) => {
7949
7957
  e.controlled = !0;
7950
7958
  let n = e.order;
7951
7959
  (n.length !== t.length || t.some((e, t) => e !== n[t])) && (e.order = t);
7952
- }, Gs = I(function({ items: e = [], onReorder: t, ariaLabel: n, handle: r = !1, group: i, name: a, disabled: o = !1, orientation: s = "vertical", className: c = "", ...l }, u) {
7953
- Y("AppSortableList", l), J("AppSortableList", "orientation", s, Us);
7960
+ }, qs = I(function({ items: e = [], onReorder: t, ariaLabel: n, handle: r = !1, group: i, name: a, disabled: o = !1, orientation: s = "vertical", className: c = "", ...l }, u) {
7961
+ Y("AppSortableList", l), J("AppSortableList", "orientation", s, Gs);
7954
7962
  let d = e.map((e) => e.id), f = V(d);
7955
7963
  R(() => {
7956
7964
  f.current = d;
@@ -7958,10 +7966,10 @@ var Vs = [
7958
7966
  let { setRef: p, innerRef: m } = $({
7959
7967
  ref: u,
7960
7968
  value: d,
7961
- writeValue: Ws,
7969
+ writeValue: Ks,
7962
7970
  on: { "wui-sortable:change": (e) => {
7963
7971
  e.target === e.currentTarget && (t?.(e.detail.ids, e.detail), requestAnimationFrame(() => {
7964
- m.current && Ws(m.current, f.current);
7972
+ m.current && Ks(m.current, f.current);
7965
7973
  }));
7966
7974
  } }
7967
7975
  });
@@ -7997,18 +8005,18 @@ var Vs = [
7997
8005
  })]
7998
8006
  }, e.id))
7999
8007
  });
8000
- }), Ks = [
8008
+ }), Js = [
8001
8009
  "bar",
8002
8010
  "ring",
8003
8011
  "dots"
8004
- ], qs = {
8012
+ ], Ys = {
8005
8013
  sm: 44,
8006
8014
  md: 56,
8007
8015
  lg: 72
8008
8016
  };
8009
- function Js({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
8010
- Y("AppSplash", c), J("AppSplash", "variant", i, Ks), J("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(qs));
8011
- let { style: l, ...u } = c, d = typeof a == "number" ? a : qs[a] ?? qs.md, f = i === "ring" ? /* @__PURE__ */ K("span", {
8017
+ function Xs({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
8018
+ Y("AppSplash", c), J("AppSplash", "variant", i, Js), J("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(Ys));
8019
+ let { style: l, ...u } = c, d = typeof a == "number" ? a : Ys[a] ?? Ys.md, f = i === "ring" ? /* @__PURE__ */ K("span", {
8012
8020
  className: "splash-ring",
8013
8021
  "aria-hidden": "true"
8014
8022
  }) : i === "dots" ? /* @__PURE__ */ q("span", {
@@ -8055,7 +8063,7 @@ function Js({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
8055
8063
  }
8056
8064
  //#endregion
8057
8065
  //#region src/components/AppStatusBadge.jsx
8058
- var Ys = [
8066
+ var Zs = [
8059
8067
  "neutral",
8060
8068
  "primary",
8061
8069
  "success",
@@ -8063,8 +8071,8 @@ var Ys = [
8063
8071
  "danger",
8064
8072
  "info"
8065
8073
  ];
8066
- function Xs({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tooltipPlacement: i, ...a }) {
8067
- return Y("AppStatusBadge", a), J("AppStatusBadge", "tone", t, Ys), e == null || e === "" ? "-" : X(/* @__PURE__ */ K("span", {
8074
+ function Qs({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tooltipPlacement: i, ...a }) {
8075
+ return Y("AppStatusBadge", a), J("AppStatusBadge", "tone", t, Zs), e == null || e === "" ? "-" : X(/* @__PURE__ */ K("span", {
8068
8076
  className: `status-label ${t}${n ? ` ${n}` : ""}`,
8069
8077
  ...a,
8070
8078
  children: e
@@ -8072,15 +8080,15 @@ function Xs({ label: e, tone: t = "neutral", className: n = "", tooltip: r, tool
8072
8080
  }
8073
8081
  //#endregion
8074
8082
  //#region src/components/AppStepper.jsx
8075
- var Zs = ["steps", "journey"], Qs = ["horizontal", "vertical"], $s = [
8083
+ var $s = ["steps", "journey"], ec = ["horizontal", "vertical"], tc = [
8076
8084
  "done",
8077
8085
  "active",
8078
8086
  "pending",
8079
8087
  "error"
8080
8088
  ];
8081
- function ec({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
8082
- Y("AppStepper", c), J("AppStepper", "variant", t, Zs), J("AppStepper", "orientation", n, Qs);
8083
- for (let t of e) J("AppStepper", "steps[].status", t.status, $s);
8089
+ function nc({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
8090
+ Y("AppStepper", c), J("AppStepper", "variant", t, $s), J("AppStepper", "orientation", n, ec);
8091
+ for (let t of e) J("AppStepper", "steps[].status", t.status, tc);
8084
8092
  let l = t === "journey";
8085
8093
  return /* @__PURE__ */ K("nav", {
8086
8094
  className: [
@@ -8092,7 +8100,7 @@ function ec({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
8092
8100
  "aria-label": a,
8093
8101
  ...c,
8094
8102
  children: e.map((t, n) => {
8095
- let a = t.status || tc(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
8103
+ let a = t.status || rc(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
8096
8104
  c = a === "done" ? /* @__PURE__ */ K(Z, {
8097
8105
  name: "check",
8098
8106
  size: 14
@@ -8156,17 +8164,17 @@ function ec({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
8156
8164
  })
8157
8165
  });
8158
8166
  }
8159
- function tc(e, t) {
8167
+ function rc(e, t) {
8160
8168
  return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
8161
8169
  }
8162
8170
  //#endregion
8163
8171
  //#region src/components/AppSwitch.jsx
8164
- var nc = [
8172
+ var ic = [
8165
8173
  "round",
8166
8174
  "pill",
8167
8175
  "circle"
8168
- ], rc = I(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "round", className: o = "", ...s }, c) {
8169
- return Y("AppSwitch", s), J("AppSwitch", "shape", a, nc), /* @__PURE__ */ K(Kn, {
8176
+ ], ac = I(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "round", className: o = "", ...s }, c) {
8177
+ return Y("AppSwitch", s), J("AppSwitch", "shape", a, ic), /* @__PURE__ */ K(Kn, {
8170
8178
  ref: c,
8171
8179
  label: e,
8172
8180
  id: t,
@@ -8181,7 +8189,7 @@ var nc = [
8181
8189
  });
8182
8190
  //#endregion
8183
8191
  //#region src/components/AppTableEmptyState.jsx
8184
- function ic({ icon: e, title: t, text: n, action: r, ...i }) {
8192
+ function oc({ icon: e, title: t, text: n, action: r, ...i }) {
8185
8193
  return Y("AppTableEmptyState", i), /* @__PURE__ */ q("div", {
8186
8194
  className: "tbl-empty",
8187
8195
  ...i,
@@ -8207,7 +8215,7 @@ function ic({ icon: e, title: t, text: n, action: r, ...i }) {
8207
8215
  }
8208
8216
  //#endregion
8209
8217
  //#region src/components/AppTableToolbar.jsx
8210
- function ac({ filters: e, actions: t, selectedCount: n = 0, bulkActions: r, onClearSelection: i, className: a = "", ...o }) {
8218
+ function sc({ filters: e, actions: t, selectedCount: n = 0, bulkActions: r, onClearSelection: i, className: a = "", ...o }) {
8211
8219
  Y("AppTableToolbar", o);
8212
8220
  let s = n > 0;
8213
8221
  return /* @__PURE__ */ q("div", {
@@ -8245,19 +8253,19 @@ function ac({ filters: e, actions: t, selectedCount: n = 0, bulkActions: r, onCl
8245
8253
  }
8246
8254
  //#endregion
8247
8255
  //#region src/components/AppTabs.jsx
8248
- var oc = ["underline", "pills"], sc = ["horizontal", "vertical"], cc = [
8256
+ var cc = ["underline", "pills"], lc = ["horizontal", "vertical"], uc = [
8249
8257
  "sm",
8250
8258
  "md",
8251
8259
  "lg"
8252
- ], lc = ["automatic", "manual"], uc = [
8260
+ ], dc = ["automatic", "manual"], fc = [
8253
8261
  "success",
8254
8262
  "warning",
8255
8263
  "danger",
8256
8264
  "info"
8257
- ], dc = 1, fc = 28, pc = .7;
8258
- function mc({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "underline", orientation: a = "horizontal", size: o = "md", fitted: s = !1, activation: c = "automatic", ariaLabel: l, className: u = "", style: d, ...f }) {
8259
- Y("AppTabs", f), J("AppTabs", "variant", i, oc), J("AppTabs", "orientation", a, sc), J("AppTabs", "size", o, cc), J("AppTabs", "activation", c, lc);
8260
- for (let t of e) J("AppTabs", "tabs[].tone", t.tone, uc);
8265
+ ], pc = 1, mc = 28, hc = .7;
8266
+ function gc({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "underline", orientation: a = "horizontal", size: o = "md", fitted: s = !1, activation: c = "automatic", ariaLabel: l, className: u = "", style: d, ...f }) {
8267
+ Y("AppTabs", f), J("AppTabs", "variant", i, cc), J("AppTabs", "orientation", a, lc), J("AppTabs", "size", o, uc), J("AppTabs", "activation", c, dc);
8268
+ for (let t of e) J("AppTabs", "tabs[].tone", t.tone, fc);
8261
8269
  let p = V(null), m = V(null), h = a === "vertical", [g, _] = H(t);
8262
8270
  R(() => {
8263
8271
  _(t);
@@ -8268,7 +8276,7 @@ function mc({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
8268
8276
  let e = p.current, t = m.current;
8269
8277
  if (!e || !t || h) return;
8270
8278
  let n = e.scrollWidth - e.clientWidth;
8271
- t.classList.toggle("is-overflow-start", e.scrollLeft > dc), t.classList.toggle("is-overflow-end", n > dc && e.scrollLeft < n - dc);
8279
+ t.classList.toggle("is-overflow-start", e.scrollLeft > pc), t.classList.toggle("is-overflow-end", n > pc && e.scrollLeft < n - pc);
8272
8280
  }, [h]), w = L(() => {
8273
8281
  let n = p.current;
8274
8282
  if (!n) return;
@@ -8284,7 +8292,7 @@ function mc({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
8284
8292
  if (!e || h) return;
8285
8293
  let t = e.querySelector(".app-tab.active");
8286
8294
  if (!t) return;
8287
- let n = fc, r = t.offsetLeft, i = r + t.offsetWidth;
8295
+ let n = mc, r = t.offsetLeft, i = r + t.offsetWidth;
8288
8296
  r - n < e.scrollLeft ? e.scrollLeft = Math.max(0, r - n) : i + n > e.scrollLeft + e.clientWidth && (e.scrollLeft = i + n - e.clientWidth);
8289
8297
  }, [h]);
8290
8298
  B(() => {
@@ -8319,7 +8327,7 @@ function mc({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
8319
8327
  }
8320
8328
  let O = (e) => {
8321
8329
  let t = p.current;
8322
- t && t.scrollBy({ left: e * t.clientWidth * pc });
8330
+ t && t.scrollBy({ left: e * t.clientWidth * hc });
8323
8331
  }, k = [
8324
8332
  "app-tabs",
8325
8333
  i === "pills" ? "app-tabs-pills" : "",
@@ -8432,8 +8440,8 @@ function mc({ tabs: e, value: t, onChange: n, linkComponent: r, variant: i = "un
8432
8440
  }
8433
8441
  //#endregion
8434
8442
  //#region src/components/AppTagInput.jsx
8435
- var hc = ["sm", "lg"], gc = I(function({ values: e, onChange: t, placeholder: n = "Add…", name: r, label: i, error: a, hint: o, required: s = !1, size: c, maxTags: l, allowDuplicates: u = !1, disabled: d = !1, id: f, ariaLabel: p, className: m = "", fieldClassName: h = "", help: g, helpLabel: _ = "More information", ...v }, y) {
8436
- Y("AppTagInput", v), J("AppTagInput", "size", c, hc);
8443
+ var _c = ["sm", "lg"], vc = I(function({ values: e, onChange: t, placeholder: n = "Add…", name: r, label: i, error: a, hint: o, required: s = !1, size: c, maxTags: l, allowDuplicates: u = !1, disabled: d = !1, id: f, ariaLabel: p, className: m = "", fieldClassName: h = "", help: g, helpLabel: _ = "More information", ...v }, y) {
8444
+ Y("AppTagInput", v), J("AppTagInput", "size", c, _c);
8437
8445
  let b = z(), x = f || b, { setRef: S } = $({
8438
8446
  ref: y,
8439
8447
  value: e,
@@ -8483,7 +8491,7 @@ var hc = ["sm", "lg"], gc = I(function({ values: e, onChange: t, placeholder: n
8483
8491
  }) : null
8484
8492
  ]
8485
8493
  });
8486
- }), _c = I(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", id: o, name: s, rows: c = 4, autoGrow: l = !1, showCount: u = !1, maxLength: d, className: f = "", fieldClassName: p = "", ...m }, h) {
8494
+ }), yc = I(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", id: o, name: s, rows: c = 4, autoGrow: l = !1, showCount: u = !1, maxLength: d, className: f = "", fieldClassName: p = "", ...m }, h) {
8487
8495
  Y("AppTextarea", m);
8488
8496
  let g = z(), _ = o || g, v = [
8489
8497
  "textarea",
@@ -8554,18 +8562,18 @@ var hc = ["sm", "lg"], gc = I(function({ values: e, onChange: t, placeholder: n
8554
8562
  })
8555
8563
  ]
8556
8564
  });
8557
- }), vc = {
8565
+ }), bc = {
8558
8566
  light: "sun",
8559
8567
  dark: "moon",
8560
8568
  auto: "refresh-cw"
8561
- }, yc = ["icon", "segmented"], bc = {
8569
+ }, xc = ["icon", "segmented"], Sc = {
8562
8570
  sm: 16,
8563
8571
  md: 20,
8564
8572
  lg: 24,
8565
8573
  xl: 28
8566
8574
  };
8567
- function xc({ variant: e = "icon", effect: t = r, includeAuto: n = !1, storageKey: a = i, duration: o, label: s = "Theme", lightLabel: c = "Light", darkLabel: l = "Dark", autoLabel: p = "System", name: h, size: g = "md", tooltipPlacement: _ = "auto", onChange: v, className: y = "", ...b }) {
8568
- Y("AppThemeToggle", b), J("AppThemeToggle", "variant", e, yc), J("AppThemeToggle", "effect", t, d), J("AppThemeToggle", "size", g, Object.keys(bc));
8575
+ function Cc({ variant: e = "icon", effect: t = r, includeAuto: n = !1, storageKey: a = i, duration: o, label: s = "Theme", lightLabel: c = "Light", darkLabel: l = "Dark", autoLabel: p = "System", name: h, size: g = "md", tooltipPlacement: _ = "auto", onChange: v, className: y = "", ...b }) {
8576
+ Y("AppThemeToggle", b), J("AppThemeToggle", "variant", e, xc), J("AppThemeToggle", "effect", t, d), J("AppThemeToggle", "size", g, Object.keys(Sc));
8569
8577
  let [x, S] = H(() => typeof window > "u" ? "light" : O(a, { includeAuto: n })), C = z(), w = h || C, E = L((e) => e === "auto" && !n ? k(e) : e, [n]);
8570
8578
  R(() => {
8571
8579
  let e = document.documentElement.getAttribute("data-theme");
@@ -8607,16 +8615,16 @@ function xc({ variant: e = "icon", effect: t = r, includeAuto: n = !1, storageKe
8607
8615
  let e = [{
8608
8616
  value: "light",
8609
8617
  label: c,
8610
- icon: vc.light
8618
+ icon: bc.light
8611
8619
  }, {
8612
8620
  value: "dark",
8613
8621
  label: l,
8614
- icon: vc.dark
8622
+ icon: bc.dark
8615
8623
  }];
8616
8624
  return n && e.push({
8617
8625
  value: "auto",
8618
8626
  label: p,
8619
- icon: vc.auto
8627
+ icon: bc.auto
8620
8628
  }), /* @__PURE__ */ K(zn, {
8621
8629
  options: e,
8622
8630
  value: x,
@@ -8636,9 +8644,9 @@ function xc({ variant: e = "icon", effect: t = r, includeAuto: n = !1, storageKe
8636
8644
  });
8637
8645
  }
8638
8646
  return /* @__PURE__ */ K(ot, {
8639
- icon: vc[x],
8647
+ icon: bc[x],
8640
8648
  label: `${s}: ${x}`,
8641
- size: bc[g] ?? bc.md,
8649
+ size: Sc[g] ?? Sc.md,
8642
8650
  tooltipPlacement: _,
8643
8651
  onClick: (e) => D(T(x, { includeAuto: n }), e.currentTarget, e.currentTarget),
8644
8652
  className: ["wui-theme-toggle", y].filter(Boolean).join(" ")
@@ -8646,13 +8654,13 @@ function xc({ variant: e = "icon", effect: t = r, includeAuto: n = !1, storageKe
8646
8654
  }
8647
8655
  //#endregion
8648
8656
  //#region src/components/AppTimeline.jsx
8649
- var Sc = ["feed", "progress"], Cc = ["vertical", "horizontal"], wc = [
8657
+ var wc = ["feed", "progress"], Tc = ["vertical", "horizontal"], Ec = [
8650
8658
  "neutral",
8651
8659
  "success",
8652
8660
  "warning",
8653
8661
  "danger",
8654
8662
  "info"
8655
- ], Tc = {
8663
+ ], Dc = {
8656
8664
  done: "check",
8657
8665
  current: "clock",
8658
8666
  "on-hold": "lock",
@@ -8661,9 +8669,9 @@ var Sc = ["feed", "progress"], Cc = ["vertical", "horizontal"], wc = [
8661
8669
  skipped: "arrow-right",
8662
8670
  upcoming: null
8663
8671
  };
8664
- function Ec({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
8665
- Y("AppTimeline", o), J("AppTimeline", "variant", t, Sc), J("AppTimeline", "orientation", n, Cc);
8666
- for (let n of e) J("AppTimeline", "items[].tone", n.tone, wc), t === "progress" && J("AppTimeline", "items[].status", n.status, Object.keys(Tc));
8672
+ function Oc({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
8673
+ Y("AppTimeline", o), J("AppTimeline", "variant", t, wc), J("AppTimeline", "orientation", n, Tc);
8674
+ for (let n of e) J("AppTimeline", "items[].tone", n.tone, Ec), t === "progress" && J("AppTimeline", "items[].status", n.status, Object.keys(Dc));
8667
8675
  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;
8668
8676
  return /* @__PURE__ */ K("ol", {
8669
8677
  className: c,
@@ -8673,7 +8681,7 @@ function Ec({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
8673
8681
  } : a,
8674
8682
  ...o,
8675
8683
  children: e.map((e, t) => {
8676
- let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? Tc[n] : void 0) : e.icon || "circle";
8684
+ let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? Dc[n] : void 0) : e.icon || "circle";
8677
8685
  return /* @__PURE__ */ q("li", {
8678
8686
  className: `timeline-item${r}${i}`,
8679
8687
  children: [/* @__PURE__ */ K("span", {
@@ -8743,12 +8751,12 @@ function Ec({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
8743
8751
  }
8744
8752
  //#endregion
8745
8753
  //#region src/components/AppTimePicker.jsx
8746
- var Dc = [
8754
+ var kc = [
8747
8755
  "sm",
8748
8756
  "md",
8749
8757
  "lg"
8750
- ], Oc = ["12", "24"], kc = I(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, help: o, helpLabel: s = "More information", name: c, min: l, max: u, step: d, format: f = "24", placeholder: p = "Select time", disabled: m, size: h, id: g, ariaLabel: _, className: v = "", fieldClassName: y = "", ...b }, x) {
8751
- Y("AppTimePicker", b), J("AppTimePicker", "size", h, Dc), J("AppTimePicker", "format", f, Oc);
8758
+ ], Ac = ["12", "24"], jc = I(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, help: o, helpLabel: s = "More information", name: c, min: l, max: u, step: d, format: f = "24", placeholder: p = "Select time", disabled: m, size: h, id: g, ariaLabel: _, className: v = "", fieldClassName: y = "", ...b }, x) {
8759
+ Y("AppTimePicker", b), J("AppTimePicker", "size", h, kc), J("AppTimePicker", "format", f, Ac);
8752
8760
  let S = z(), C = g || c || S, { setRef: w } = $({
8753
8761
  ref: x,
8754
8762
  value: e ?? "",
@@ -8799,7 +8807,7 @@ var Dc = [
8799
8807
  })
8800
8808
  ]
8801
8809
  });
8802
- }), Ac = {
8810
+ }), Mc = {
8803
8811
  success: {
8804
8812
  icon: "check-circle",
8805
8813
  assertive: !1
@@ -8816,7 +8824,7 @@ var Dc = [
8816
8824
  icon: "alert-circle",
8817
8825
  assertive: !0
8818
8826
  }
8819
- }, jc = {
8827
+ }, Nc = {
8820
8828
  "top-start": "top-0 start-0",
8821
8829
  "top-center": "top-0 start-50 translate-middle-x",
8822
8830
  "top-end": "top-0 end-0",
@@ -8824,21 +8832,21 @@ var Dc = [
8824
8832
  "bottom-start": "bottom-0 start-0",
8825
8833
  "bottom-center": "bottom-0 start-50 translate-middle-x",
8826
8834
  "bottom-end": "bottom-0 end-0"
8827
- }, Mc = 64, Nc = /* @__PURE__ */ new Set([
8835
+ }, Pc = 64, Fc = /* @__PURE__ */ new Set([
8828
8836
  "rise",
8829
8837
  "organic",
8830
8838
  "jelly",
8831
8839
  "spring"
8832
- ]), Pc = /* @__PURE__ */ new Set([
8840
+ ]), Ic = /* @__PURE__ */ new Set([
8833
8841
  "rounded",
8834
8842
  "pill",
8835
8843
  "sharp"
8836
- ]), Fc = /* @__PURE__ */ new Set(["auto", "inverse"]);
8837
- function Ic({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...o }) {
8838
- Y("AppToast", o), J("AppToast", "position", e, Object.keys(jc)), J("AppToast", "animation", n, Nc), J("AppToast", "shape", r, Pc), J("AppToast", "surface", i, Fc);
8844
+ ]), Lc = /* @__PURE__ */ new Set(["auto", "inverse"]);
8845
+ function Rc({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...o }) {
8846
+ Y("AppToast", o), J("AppToast", "position", e, Object.keys(Nc)), J("AppToast", "animation", n, Fc), J("AppToast", "shape", r, Ic), J("AppToast", "surface", i, Lc);
8839
8847
  let [s, c] = H([]);
8840
8848
  R(() => ua(c), []);
8841
- let l = Math.max(0, s.length - t), u = l ? s.slice(l) : s, d = jc[e] ?? jc["bottom-end"];
8849
+ let l = Math.max(0, s.length - t), u = l ? s.slice(l) : s, d = Nc[e] ?? Nc["bottom-end"];
8842
8850
  return /* @__PURE__ */ q("div", {
8843
8851
  ...o,
8844
8852
  className: `wui-toast-container toast-container position-fixed ${d} p-3 ${a}`.trim(),
@@ -8850,7 +8858,7 @@ function Ic({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
8850
8858
  l,
8851
8859
  " more"
8852
8860
  ]
8853
- }), u.map((e) => /* @__PURE__ */ K(Lc, {
8861
+ }), u.map((e) => /* @__PURE__ */ K(zc, {
8854
8862
  toast: e,
8855
8863
  defaultAnimation: n,
8856
8864
  defaultShape: r,
@@ -8858,8 +8866,8 @@ function Ic({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
8858
8866
  }, e.id))]
8859
8867
  });
8860
8868
  }
8861
- function Lc({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
8862
- let i = Ac[e.variant] ?? Ac.success, a = Nc.has(e.animation) ? e.animation : t, o = Pc.has(e.shape) ? e.shape : n, s = Fc.has(e.surface) ? e.surface : r, c = (a !== "rise" && Nc.has(a) ? ` wui-toast--anim-${a}` : "") + (o !== "rounded" && Pc.has(o) ? ` wui-toast--shape-${o}` : "") + (s === "inverse" ? " wui-toast--surface-inverse" : ""), l = e.duration === 0, [u, d] = H(0), [f, p] = H(!1), m = V(null), h = () => pa(e.id), g = V(null);
8869
+ function zc({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
8870
+ let i = Mc[e.variant] ?? Mc.success, a = Fc.has(e.animation) ? e.animation : t, o = Ic.has(e.shape) ? e.shape : n, s = Lc.has(e.surface) ? e.surface : r, c = (a !== "rise" && Fc.has(a) ? ` wui-toast--anim-${a}` : "") + (o !== "rounded" && Ic.has(o) ? ` wui-toast--shape-${o}` : "") + (s === "inverse" ? " wui-toast--surface-inverse" : ""), l = e.duration === 0, [u, d] = H(0), [f, p] = H(!1), m = V(null), h = () => pa(e.id), g = V(null);
8863
8871
  R(() => {
8864
8872
  if (e.duration === 0) return;
8865
8873
  fa(e.id);
@@ -8877,7 +8885,7 @@ function Lc({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
8877
8885
  }, b = (e) => {
8878
8886
  if (m.current === null) return;
8879
8887
  let t = e.clientX - m.current;
8880
- if (Math.abs(t) > Mc) {
8888
+ if (Math.abs(t) > Pc) {
8881
8889
  h();
8882
8890
  return;
8883
8891
  }
@@ -8961,7 +8969,7 @@ function Lc({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
8961
8969
  }
8962
8970
  //#endregion
8963
8971
  //#region src/components/AppToolbar.jsx
8964
- function Rc({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: s = !1, className: c = "", ...l }) {
8972
+ function Bc({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: s = !1, className: c = "", ...l }) {
8965
8973
  Y("AppToolbar", l);
8966
8974
  let u = z(), d = o || u, [f, p] = H(r), m = n === void 0 ? f : n;
8967
8975
  return /* @__PURE__ */ q("div", {
@@ -9019,12 +9027,12 @@ function Rc({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
9019
9027
  }
9020
9028
  //#endregion
9021
9029
  //#region src/components/AppTreeView.jsx
9022
- var zc = [
9030
+ var Vc = [
9023
9031
  "none",
9024
9032
  "single",
9025
9033
  "multiple"
9026
- ], Bc = I(function({ nodes: e, selection: t, selected: n, onSelect: r, checked: i, onCheck: a, loadChildren: o, loadUrl: s, onLoadError: c, name: l, loadingText: u, errorText: d, ariaLabel: f, id: p, className: m = "", ...h }, g) {
9027
- Y("AppTreeView", h), J("AppTreeView", "selection", t, zc);
9034
+ ], Hc = I(function({ nodes: e, selection: t, selected: n, onSelect: r, checked: i, onCheck: a, loadChildren: o, loadUrl: s, onLoadError: c, name: l, loadingText: u, errorText: d, ariaLabel: f, id: p, className: m = "", ...h }, g) {
9035
+ Y("AppTreeView", h), J("AppTreeView", "selection", t, Vc);
9028
9036
  let { setRef: _, innerRef: v } = $({
9029
9037
  ref: g,
9030
9038
  value: i,
@@ -9070,24 +9078,24 @@ var zc = [
9070
9078
  className: m || void 0,
9071
9079
  ...h
9072
9080
  });
9073
- }), Vc = [
9081
+ }), Uc = [
9074
9082
  "steps",
9075
9083
  "journey",
9076
9084
  "icons"
9077
- ], Hc = [
9085
+ ], Wc = [
9078
9086
  "primary",
9079
9087
  "success",
9080
9088
  "warning",
9081
9089
  "danger",
9082
9090
  "info"
9083
- ], Uc = ["horizontal", "vertical"], Wc = [
9091
+ ], Gc = ["horizontal", "vertical"], Kc = [
9084
9092
  "done",
9085
9093
  "active",
9086
9094
  "pending",
9087
9095
  "error"
9088
- ], Gc = I(function({ steps: e = [], children: t, active: n, defaultActive: r = 0, onStepChange: i, onFinish: a, onSkip: o, beforeNext: s, onInvalid: c, variant: l = "steps", tone: u, orientation: d = "horizontal", skippable: f = !1, nonLinear: p = !1, hideStepper: m = !1, disabled: h = !1, label: g = "Progress", backLabel: _ = "Back", nextLabel: v = "Next", skipLabel: y = "Skip", finishLabel: b = "Finish", className: x = "", ...S }, C) {
9089
- Y("AppWizard", S), J("AppWizard", "variant", l, Vc), J("AppWizard", "tone", u, Hc), J("AppWizard", "orientation", d, Uc);
9090
- for (let t of e) J("AppWizard", "steps[].status", t.status, Wc);
9096
+ ], qc = I(function({ steps: e = [], children: t, active: n, defaultActive: r = 0, onStepChange: i, onFinish: a, onSkip: o, beforeNext: s, onInvalid: c, variant: l = "steps", tone: u, orientation: d = "horizontal", skippable: f = !1, nonLinear: p = !1, hideStepper: m = !1, disabled: h = !1, label: g = "Progress", backLabel: _ = "Back", nextLabel: v = "Next", skipLabel: y = "Skip", finishLabel: b = "Finish", className: x = "", ...S }, C) {
9097
+ Y("AppWizard", S), J("AppWizard", "variant", l, Uc), J("AppWizard", "tone", u, Wc), J("AppWizard", "orientation", d, Gc);
9098
+ for (let t of e) J("AppWizard", "steps[].status", t.status, Kc);
9091
9099
  let w = V(null), T = (e) => {
9092
9100
  w.current = e, typeof C == "function" ? C(e) : C && (C.current = e);
9093
9101
  }, E = P.toArray(t), D = [u && `wui-step-tone-${u}`, x].filter(Boolean).join(" ");
@@ -9138,19 +9146,19 @@ var zc = [
9138
9146
  children: E[t]
9139
9147
  }, e.key ?? `${e.label}-${t}`))
9140
9148
  });
9141
- }), Kc = [
9149
+ }), Jc = [
9142
9150
  "sm",
9143
9151
  "md",
9144
9152
  "lg"
9145
- ], qc = /* @__PURE__ */ new Set([
9153
+ ], Yc = /* @__PURE__ */ new Set([
9146
9154
  "ArrowUp",
9147
9155
  "ArrowDown",
9148
9156
  "ArrowLeft",
9149
9157
  "ArrowRight"
9150
9158
  ]);
9151
- function Jc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAction: i, linkComponent: a, searchable: o = !1, onCreate: s, canCreate: c = !1, createLabel: l = "Create workspace", compact: u = !1, size: d = "md", ariaLabel: f, ...p }) {
9159
+ function Xc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAction: i, linkComponent: a, searchable: o = !1, onCreate: s, canCreate: c = !1, createLabel: l = "Create workspace", compact: u = !1, size: d = "md", ariaLabel: f, ...p }) {
9152
9160
  let { onToggle: m, ...h } = p;
9153
- Y("AppWorkspaceSwitcher", h), J("AppWorkspaceSwitcher", "size", d, Kc);
9161
+ Y("AppWorkspaceSwitcher", h), J("AppWorkspaceSwitcher", "size", d, Jc);
9154
9162
  let [g, _] = H(""), [v, y] = H(!1), b = V(null), x = (e, t) => {
9155
9163
  y(e), m?.(e, t);
9156
9164
  }, S = e.find((e) => e.id === t) ?? e[0], C = ie(() => {
@@ -9168,7 +9176,7 @@ function Jc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9168
9176
  let e = b.current;
9169
9177
  if (!e) return;
9170
9178
  let t = (e) => {
9171
- if (qc.has(e.key)) {
9179
+ if (Yc.has(e.key)) {
9172
9180
  e.stopPropagation();
9173
9181
  return;
9174
9182
  }
@@ -9186,7 +9194,7 @@ function Jc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9186
9194
  onToggle: x,
9187
9195
  ...h,
9188
9196
  children: [/* @__PURE__ */ K(U.Toggle, {
9189
- as: Qc,
9197
+ as: el,
9190
9198
  compact: u,
9191
9199
  tenant: S,
9192
9200
  "aria-label": T
@@ -9221,7 +9229,7 @@ function Jc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9221
9229
  className: `workspace-switcher-option${e.id === S?.id ? " is-active" : ""}`,
9222
9230
  onClick: () => n?.(e),
9223
9231
  children: [
9224
- /* @__PURE__ */ K(Xc, { tenant: e }),
9232
+ /* @__PURE__ */ K(Qc, { tenant: e }),
9225
9233
  /* @__PURE__ */ K("span", {
9226
9234
  className: "workspace-switcher-option-name",
9227
9235
  children: e.name
@@ -9253,17 +9261,17 @@ function Jc({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9253
9261
  }) : null,
9254
9262
  i ? /* @__PURE__ */ K("div", {
9255
9263
  className: "workspace-switcher-footer",
9256
- children: Zc(i, a)
9264
+ children: $c(i, a)
9257
9265
  }) : null
9258
9266
  ]
9259
9267
  })]
9260
9268
  });
9261
9269
  }
9262
- function Yc(e) {
9270
+ function Zc(e) {
9263
9271
  let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
9264
9272
  return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
9265
9273
  }
9266
- function Xc({ tenant: e }) {
9274
+ function Qc({ tenant: e }) {
9267
9275
  return e?.logoUrl ? /* @__PURE__ */ K("img", {
9268
9276
  className: "workspace-switcher-mark",
9269
9277
  src: e.logoUrl,
@@ -9271,10 +9279,10 @@ function Xc({ tenant: e }) {
9271
9279
  loading: "lazy"
9272
9280
  }) : /* @__PURE__ */ K("span", {
9273
9281
  className: "workspace-switcher-mark",
9274
- children: Yc(e?.name)
9282
+ children: Zc(e?.name)
9275
9283
  });
9276
9284
  }
9277
- function Zc(e, t) {
9285
+ function $c(e, t) {
9278
9286
  if (typeof e != "object" || !e || !("label" in e)) return e;
9279
9287
  let { label: n, icon: r, href: i } = e;
9280
9288
  return /* @__PURE__ */ q(i ? t ?? "a" : "button", {
@@ -9286,7 +9294,7 @@ function Zc(e, t) {
9286
9294
  }) : null, n]
9287
9295
  });
9288
9296
  }
9289
- var Qc = I(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
9297
+ var el = I(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
9290
9298
  return /* @__PURE__ */ q("button", {
9291
9299
  ref: a,
9292
9300
  type: "button",
@@ -9294,7 +9302,7 @@ var Qc = I(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
9294
9302
  "aria-haspopup": "true",
9295
9303
  "aria-label": n,
9296
9304
  ...i,
9297
- children: [/* @__PURE__ */ K(Xc, { tenant: t }), e ? null : /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("span", {
9305
+ children: [/* @__PURE__ */ K(Qc, { tenant: t }), e ? null : /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("span", {
9298
9306
  className: "workspace-switcher-trigger-name",
9299
9307
  children: t?.name
9300
9308
  }), /* @__PURE__ */ K(Z, {
@@ -9306,7 +9314,7 @@ var Qc = I(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
9306
9314
  });
9307
9315
  //#endregion
9308
9316
  //#region src/lib/useCommandPaletteShortcut.js
9309
- function $c(e, { key: t = "k" } = {}) {
9317
+ function tl(e, { key: t = "k" } = {}) {
9310
9318
  let n = V(e);
9311
9319
  R(() => {
9312
9320
  n.current = e;
@@ -9319,13 +9327,13 @@ function $c(e, { key: t = "k" } = {}) {
9319
9327
  }
9320
9328
  //#endregion
9321
9329
  //#region src/lib/useListQuery.js
9322
- function el(e, t) {
9330
+ function nl(e, t) {
9323
9331
  let n = new URL(window.location.href);
9324
9332
  for (let e of ki(t)) n.searchParams.delete(e);
9325
9333
  for (let [t, r] of Ei(e)) n.searchParams.append(t, r);
9326
9334
  window.history.replaceState(window.history.state, "", `${n.pathname}${n.search}${n.hash}`);
9327
9335
  }
9328
- function tl({ fetchPage: e, facets: t = [], defaults: n, debounceMs: r = 250 }) {
9336
+ function rl({ fetchPage: e, facets: t = [], defaults: n, debounceMs: r = 250 }) {
9329
9337
  let [i, a] = H(() => ji(window.location.search, {
9330
9338
  facets: t,
9331
9339
  defaults: n
@@ -9334,7 +9342,7 @@ function tl({ fetchPage: e, facets: t = [], defaults: n, debounceMs: r = 250 })
9334
9342
  p.current = e, m.current = t, h.current = n;
9335
9343
  });
9336
9344
  let _ = L((e, t = !1) => {
9337
- g.current = t, f.current = e, a(e), el(e, m.current);
9345
+ g.current = t, f.current = e, a(e), nl(e, m.current);
9338
9346
  }, []);
9339
9347
  R(() => {
9340
9348
  let e = () => {
@@ -9436,7 +9444,7 @@ function tl({ fetchPage: e, facets: t = [], defaults: n, debounceMs: r = 250 })
9436
9444
  }
9437
9445
  //#endregion
9438
9446
  //#region src/lib/usePagination.js
9439
- function nl(e, t = 10) {
9447
+ function il(e, t = 10) {
9440
9448
  let [n, r] = H(1), [i, a] = H(t), o = e.length, s = Math.max(1, Math.ceil(o / i));
9441
9449
  R(() => {
9442
9450
  n > s && r(s);
@@ -9463,10 +9471,10 @@ function nl(e, t = 10) {
9463
9471
  }
9464
9472
  //#endregion
9465
9473
  //#region src/lib/useTableView.js
9466
- var rl = (e) => `wui-view:${e}`;
9467
- function il(e, t) {
9474
+ var al = (e) => `wui-view:${e}`;
9475
+ function ol(e, t) {
9468
9476
  try {
9469
- let n = window.localStorage.getItem(rl(e));
9477
+ let n = window.localStorage.getItem(al(e));
9470
9478
  if (!n) return t;
9471
9479
  let r = JSON.parse(n);
9472
9480
  return {
@@ -9477,14 +9485,14 @@ function il(e, t) {
9477
9485
  return t;
9478
9486
  }
9479
9487
  }
9480
- function al(e, { sort: t } = {}) {
9481
- let [n, r] = H(() => il(e, {
9488
+ function sl(e, { sort: t } = {}) {
9489
+ let [n, r] = H(() => ol(e, {
9482
9490
  hidden: [],
9483
9491
  sort: t
9484
9492
  }));
9485
9493
  R(() => {
9486
9494
  try {
9487
- window.localStorage.setItem(rl(e), JSON.stringify(n));
9495
+ window.localStorage.setItem(al(e), JSON.stringify(n));
9488
9496
  } catch {}
9489
9497
  }, [e, n]);
9490
9498
  let i = L((e) => r((t) => ({
@@ -9502,4 +9510,4 @@ function al(e, { sort: t } = {}) {
9502
9510
  };
9503
9511
  }
9504
9512
  //#endregion
9505
- export { rt as AppAccordion, ot as AppActionIcon, ft as AppAlert, xt as AppAsyncBlock, Ft as AppAutocomplete, Wt as AppAvatar, Jt as AppAvatarGroup, Xt as AppBadge, Qt as AppBanner, nn as AppBarChart, rn as AppBreadcrumbs, gt as AppButton, un as AppCalendar, hn as AppCard, Nn as AppChart, Gn as AppChartCard, qn as AppCheckbox, Zn as AppChip, tr as AppChoiceCard, rr as AppChoiceChip, ar as AppColorField, or as AppColumnMenu, gr as AppCommandPalette, xr as AppCompareTable, Or as AppConfirmDialog, Ar as AppConsentBanner, jr as AppContextMenu, Nr as AppCopyButton, Fr as AppCountrySelect, Lr as AppDashboardCell, Rr as AppDashboardGrid, Zr as AppDataTable, $r as AppDatePicker, ti as AppDateRangePicker, ri as AppDescriptions, In as AppDropdown, vt as AppEmptyState, oi as AppErrorSummary, fi as AppFileAttachment, hi as AppFilePicker, yi as AppFileViewer, Ui as AppFilterBar, Gi as AppFloatingDock, qi as AppFormActions, Yi as AppFormRow, $i as AppFormSection, Z as AppIcon, ea as AppInfoList, Tt as AppInfoTip, wr as AppInput, Sa as AppKanban, Ia as AppKpiTile, Ka as AppLineChart, Xa as AppLink, ro as AppLogoPicker, lo as AppMeter, mr as AppModal, Ni as AppMultiSelect, fo as AppNumberInput, mo as AppOtpInput, yo as AppPageHeader, xo as AppPagination, Co as AppPhoneNumberInput, Ct as AppPopover, wo as AppPricingCard, Oo as AppProgress, rs as AppQrCode, is as AppRadio, as as AppRadioGroup, os as AppRepeater, Q as AppRequiredMark, ss as AppResourceCard, ls as AppResult, ps as AppRichText, ms as AppScrollbar, Fi as AppSearch, zn as AppSegmented, Ri as AppSelect, Wr as AppSelectMini, ks as AppShell, Bs as AppSidebarMenu, zr as AppSkeleton, Br as AppSkeletonRows, Hs as AppSlider, Gs as AppSortableList, Aa as AppSparkline, bt as AppSpinner, Js as AppSplash, Xs as AppStatusBadge, ec as AppStepper, rc as AppSwitch, ic as AppTableEmptyState, qr as AppTablePagination, ac as AppTableToolbar, mc as AppTabs, gc as AppTagInput, _c as AppTextarea, xc as AppThemeToggle, kc as AppTimePicker, Ec as AppTimeline, Ic as AppToast, Rc as AppToolbar, Pe as AppTooltip, Bc as AppTreeView, Gc as AppWizard, Jc as AppWorkspaceSwitcher, Er as MODAL_ICONS, Ei as buildListQuery, ha as dismissAll, va as errorToast, et as iconNames, ji as parseListQuery, E as postedMasked, nt as registerIcons, _a as toast, $c as useCommandPaletteShortcut, tl as useListQuery, nl as usePagination, al as useTableView };
9513
+ export { rt as AppAccordion, ot as AppActionIcon, ft as AppAlert, xt as AppAsyncBlock, Ft as AppAutocomplete, Wt as AppAvatar, Jt as AppAvatarGroup, Xt as AppBadge, Qt as AppBanner, nn as AppBarChart, rn as AppBreadcrumbs, gt as AppButton, un as AppCalendar, hn as AppCard, Nn as AppChart, Gn as AppChartCard, qn as AppCheckbox, Zn as AppChip, tr as AppChoiceCard, rr as AppChoiceChip, ar as AppColorField, or as AppColumnMenu, gr as AppCommandPalette, xr as AppCompareTable, Or as AppConfirmDialog, Ar as AppConsentBanner, jr as AppContextMenu, Nr as AppCopyButton, Fr as AppCountrySelect, Lr as AppDashboardCell, Rr as AppDashboardGrid, Zr as AppDataTable, $r as AppDatePicker, ti as AppDateRangePicker, ri as AppDescriptions, In as AppDropdown, vt as AppEmptyState, oi as AppErrorSummary, fi as AppFileAttachment, hi as AppFilePicker, yi as AppFileViewer, Ui as AppFilterBar, Gi as AppFloatingDock, qi as AppFormActions, Yi as AppFormRow, $i as AppFormSection, Z as AppIcon, ea as AppInfoList, Tt as AppInfoTip, wr as AppInput, Sa as AppKanban, Ra as AppKpiTile, Ja as AppLineChart, Qa as AppLink, ao as AppLogoPicker, fo as AppMeter, mr as AppModal, Ni as AppMultiSelect, mo as AppNumberInput, go as AppOtpInput, xo as AppPageHeader, Co as AppPagination, To as AppPhoneNumberInput, Ct as AppPopover, Eo as AppPricingCard, Ao as AppProgress, as as AppQrCode, os as AppRadio, ss as AppRadioGroup, cs as AppRepeater, Q as AppRequiredMark, ls as AppResourceCard, ds as AppResult, hs as AppRichText, gs as AppScrollbar, Fi as AppSearch, zn as AppSegmented, Ri as AppSelect, Wr as AppSelectMini, js as AppShell, Hs as AppSidebarMenu, zr as AppSkeleton, Br as AppSkeletonRows, Ws as AppSlider, qs as AppSortableList, Aa as AppSparkline, bt as AppSpinner, Xs as AppSplash, Qs as AppStatusBadge, nc as AppStepper, ac as AppSwitch, oc as AppTableEmptyState, qr as AppTablePagination, sc as AppTableToolbar, gc as AppTabs, vc as AppTagInput, yc as AppTextarea, Cc as AppThemeToggle, jc as AppTimePicker, Oc as AppTimeline, Rc as AppToast, Bc as AppToolbar, Pe as AppTooltip, Hc as AppTreeView, qc as AppWizard, Xc as AppWorkspaceSwitcher, Er as MODAL_ICONS, Ei as buildListQuery, ha as dismissAll, va as errorToast, et as iconNames, ji as parseListQuery, E as postedMasked, nt as registerIcons, _a as toast, tl as useCommandPaletteShortcut, rl as useListQuery, il as usePagination, sl as useTableView };