@webority/ui-react 0.9.5 → 0.9.7

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
@@ -172,13 +172,13 @@ function L() {
172
172
  I.clear();
173
173
  }), F;
174
174
  }
175
- var R = new Set(D), z = null, ee = null, B = /* @__PURE__ */ new Set();
175
+ var ee = new Set(D), R = null, z = null, B = /* @__PURE__ */ new Set();
176
176
  function te() {
177
- return ee ||= import("./iconCatalogFull.g-BKUr0SVj.js").then((e) => {
178
- z = e.FULL_GLYPHS;
177
+ return z ||= import("./iconCatalogFull.g-BKUr0SVj.js").then((e) => {
178
+ R = e.FULL_GLYPHS;
179
179
  for (let e of B) e();
180
180
  B.clear();
181
- }), ee;
181
+ }), z;
182
182
  }
183
183
  var ne = {
184
184
  outline: () => import("./iconCatalogFull.outline.g-AOnxJAAj.js"),
@@ -210,10 +210,10 @@ function V({ name: e, size: t = 16, variant: n, tooltip: r, className: i, color:
210
210
  role: "img",
211
211
  "aria-label": r,
212
212
  children: e
213
- }) : e, h = O[e] !== void 0, g = !h && R.has(e), [, _] = d(0);
213
+ }) : e, h = O[e] !== void 0, g = !h && ee.has(e), [, _] = d(0);
214
214
  o(() => {
215
215
  let e = () => _((e) => e + 1);
216
- return l && h && !P && (I.add(e), L()), g && !z && (B.add(e), te()), l && g && !re[n] && ((ae[n] ||= /* @__PURE__ */ new Set()).add(e), oe(n)), () => {
216
+ return l && h && !P && (I.add(e), L()), g && !R && (B.add(e), te()), l && g && !re[n] && ((ae[n] ||= /* @__PURE__ */ new Set()).add(e), oe(n)), () => {
217
217
  I.delete(e), B.delete(e), ae[n]?.delete(e);
218
218
  };
219
219
  }, [
@@ -252,7 +252,7 @@ function V({ name: e, size: t = 16, variant: n, tooltip: r, className: i, color:
252
252
  }), /* @__PURE__ */ p("path", { d: "M3.2 22.5C3.2 17.4 7.5 14.9 11 14.7L12 17.4l1-2.7C16.5 14.9 20.8 17.4 20.8 22.5z" })]
253
253
  })
254
254
  }));
255
- let y = l && (P?.[n]?.[e] || re?.[n]?.[e]) || O[e] || z?.[e];
255
+ let y = l && (P?.[n]?.[e] || re?.[n]?.[e]) || O[e] || R?.[e];
256
256
  return y ? f(/* @__PURE__ */ p("svg", {
257
257
  width: t,
258
258
  height: t,
@@ -387,7 +387,7 @@ function pe(e, t, n, r) {
387
387
  children: e
388
388
  }) : null;
389
389
  }
390
- function U({ variant: e = "info", children: t, title: n, icon: r, image: i, imageAlt: a = "", className: o = "", onClose: s, dismissible: c, bordered: l = !0, role: u = "alert", ...d }) {
390
+ function me({ variant: e = "info", children: t, title: n, icon: r, image: i, imageAlt: a = "", className: o = "", onClose: s, dismissible: c, bordered: l = !0, role: u = "alert", ...d }) {
391
391
  N("AppAlert", d);
392
392
  let g = r === void 0 ? fe[e] : r === "none" ? null : r, _ = !!i || !!g, v = n ? /* @__PURE__ */ p("div", {
393
393
  className: "alert-heading",
@@ -414,7 +414,7 @@ function U({ variant: e = "info", children: t, title: n, icon: r, image: i, imag
414
414
  }
415
415
  //#endregion
416
416
  //#region src/components/warnInvalidValue.js
417
- var me = () => {
417
+ var U = () => {
418
418
  try {
419
419
  return process.env.NODE_ENV !== "production";
420
420
  } catch {
@@ -422,7 +422,7 @@ var me = () => {
422
422
  }
423
423
  }, he = /* @__PURE__ */ new Set();
424
424
  function W(e, t, n, r) {
425
- if (!me() || n == null) return;
425
+ if (!U() || n == null) return;
426
426
  let i = r instanceof Set ? r : new Set(r);
427
427
  if (i.has(n)) return;
428
428
  let a = `${e}.${t}.${String(n)}`;
@@ -436,6 +436,7 @@ var ge = {
436
436
  outline: "outline-primary",
437
437
  ghost: "ghost",
438
438
  danger: "danger",
439
+ success: "success",
439
440
  "secondary-danger": "secondary-danger",
440
441
  "outline-danger": "outline-danger",
441
442
  light: "light",
@@ -459,22 +460,37 @@ function ve(e, t, n) {
459
460
  children: e
460
461
  });
461
462
  }
462
- function ye({ children: e, variant: t = "primary", size: n = "md", type: r = "button", loading: i = !1, disabled: a = !1, block: o = !1, leftIcon: s = null, rightIcon: c = null, href: l, className: u = "", ...d }) {
463
- N("AppButton", d), W("AppButton", "variant", t, Object.keys(ge)), W("AppButton", "size", n, Object.keys(_e));
464
- let f = [
463
+ function ye({ children: e, variant: t = "primary", size: n = "md", type: r = "button", loading: i = !1, disabled: a = !1, block: o = !1, leftIcon: s = null, rightIcon: c = null, href: l, static: u = !1, className: d = "", ...f }) {
464
+ if (N("AppButton", f), W("AppButton", "variant", t, Object.keys(ge)), W("AppButton", "size", n, Object.keys(_e)), u) return /* @__PURE__ */ m("span", {
465
+ className: [
466
+ "btn",
467
+ `btn-${ge[t] ?? "primary"}`,
468
+ n === "sm" ? "btn-sm" : n === "lg" ? "btn-lg" : "",
469
+ o ? "w-100" : "",
470
+ "btn-static",
471
+ d
472
+ ].filter(Boolean).join(" "),
473
+ ...f,
474
+ children: [
475
+ ve(s, "left", n),
476
+ e,
477
+ ve(c, "right", n)
478
+ ]
479
+ });
480
+ let h = [
465
481
  o ? "w-100" : "",
466
482
  i ? "is-loading" : "",
467
- u
483
+ d
468
484
  ].filter(Boolean).join(" ");
469
485
  return /* @__PURE__ */ m(v, {
470
- type: (d.as === void 0 || d.as === "button") && l === void 0 ? r : void 0,
486
+ type: (f.as === void 0 || f.as === "button") && l === void 0 ? r : void 0,
471
487
  href: l,
472
488
  variant: ge[t] ?? "primary",
473
489
  size: n === "md" ? void 0 : n,
474
490
  disabled: a || i,
475
491
  "aria-busy": i || void 0,
476
- className: f || void 0,
477
- ...d,
492
+ className: h || void 0,
493
+ ...f,
478
494
  children: [
479
495
  i && /* @__PURE__ */ p("span", {
480
496
  className: "spinner-border spinner-border-sm me-2",
@@ -601,33 +617,33 @@ var we = class extends HTMLElement {
601
617
  let e = this.getAttribute("tone"), t = Number.parseInt(this.getAttribute("size"), 10) || 72, n = Ce[e] || Ce.info;
602
618
  this.innerHTML = `<svg width="${t}" height="${t}" viewBox="0 0 174 174" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">${n}</svg>`;
603
619
  }
604
- }, Te = 4;
605
- function Ee(e, t, n = {}) {
620
+ }, Te = 4, Ee = 300, De = 400;
621
+ function Oe(e, t, n = {}) {
606
622
  if (!e || !t) return;
607
623
  let r = e.getBoundingClientRect(), i = t.offsetHeight, a = window.innerHeight - r.bottom, o = a < i + Te && r.top > a;
608
- t.classList.toggle("drop-up", o), t.style.position = "fixed", t.style.top = o ? `${Math.max(Te, r.top - i - Te)}px` : `${r.bottom + Te}px`, n.matchWidth && (t.style.minWidth = `${r.width}px`, t.style.width = "max-content", t.style.maxWidth = `${window.innerWidth - Te * 2}px`);
624
+ t.classList.toggle("drop-up", o), t.style.position = "fixed", t.style.top = o ? `${Math.max(Te, r.top - i - Te)}px` : `${r.bottom + Te}px`, n.matchWidth && (r.width >= Ee ? (t.style.minWidth = `${r.width}px`, t.style.width = `${r.width}px`, t.style.maxWidth = `${r.width}px`) : (t.style.minWidth = `${r.width}px`, t.style.width = "max-content", t.style.maxWidth = `${Math.min(De, window.innerWidth - Te * 2)}px`));
609
625
  let s = t.offsetWidth, c = Math.min(r.left, window.innerWidth - s - Te);
610
626
  t.style.left = `${Math.max(Te, c)}px`;
611
627
  }
612
- function De(e, t) {
613
- Oe(e), e._reanchor = t, window.addEventListener("resize", e._reanchor), window.addEventListener("scroll", e._reanchor, !0);
628
+ function ke(e, t) {
629
+ Ae(e), e._reanchor = t, window.addEventListener("resize", e._reanchor), window.addEventListener("scroll", e._reanchor, !0);
614
630
  }
615
- function Oe(e) {
631
+ function Ae(e) {
616
632
  e?._reanchor && (window.removeEventListener("resize", e._reanchor), window.removeEventListener("scroll", e._reanchor, !0), e._reanchor = null);
617
633
  }
618
- var ke = "data-wui-mirror";
634
+ var je = "data-wui-mirror";
619
635
  function G(e, t) {
620
- let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${ke}]`);
636
+ let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${je}]`);
621
637
  if (!n) {
622
638
  r?.remove();
623
639
  return;
624
640
  }
625
- r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(ke, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t);
641
+ r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(je, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t);
626
642
  for (let t of [...r.attributes]) t.name.startsWith("data-val") && !e.hasAttribute(t.name) && r.removeAttribute(t.name);
627
643
  for (let t of e.attributes) t.name.startsWith("data-val") && r.setAttribute(t.name, t.value);
628
644
  r.disabled = e.hasAttribute("disabled");
629
645
  }
630
- var Ae = {
646
+ var Me = {
631
647
  activity: "<path d=\"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"m7.33 14.49 2.38-3.09c.34-.44.97-.52 1.41-.18l1.83 1.44c.44.34 1.07.26 1.41-.17l2.31-2.98\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
632
648
  alarm: "<path d=\"M2 22h20M12 6a9 9 0 0 0-9 9v7h18v-7a9 9 0 0 0-9-9ZM12 2v1M4 4l1 1M20 4l-1 1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
633
649
  "alert-circle": "<path d=\"M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M12 16.2v.1\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
@@ -770,12 +786,12 @@ var Ae = {
770
786
  "zoom-in": "<path d=\"M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
771
787
  "zoom-out": "<path d=\"M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>"
772
788
  };
773
- Object.keys(Ae);
789
+ Object.keys(Me);
774
790
  function K(e, { size: t = 16, className: n = "", style: r = "" } = {}) {
775
- let i = Ae[e];
791
+ let i = Me[e];
776
792
  return i ? `<svg class="${n ? `wui-icon ${n}` : "wui-icon"}" data-icon="${e}" width="${t}" height="${t}" viewBox="0 0 24 24" fill="none" aria-hidden="true" style="vertical-align:-.125em${r ? `;${r}` : ""}">${i}</svg>` : "";
777
793
  }
778
- function je(e) {
794
+ function Ne(e) {
779
795
  let { getVisibleOptions: t, getActive: n, setActive: r, onEnter: i, onEscape: a, onTypeahead: o, typeaheadMs: s = 500 } = e, c = "", l = null, u = () => {
780
796
  clearTimeout(l), l = null, c = "";
781
797
  };
@@ -804,15 +820,15 @@ function je(e) {
804
820
  teardown: u
805
821
  };
806
822
  }
807
- var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), Ne = (e) => {
823
+ var Pe = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), Fe = (e) => {
808
824
  if (!e) return "";
809
825
  let t = String(e).toLowerCase().replace(/[^a-z0-9-]/g, "");
810
826
  return t ? K(t) : "";
811
- }, Pe = (e) => {
827
+ }, Ie = (e) => {
812
828
  if (e == null) return "";
813
- let t = e[Me] ? String(e.label ?? "") : q(e.label), n = Ne(e.icon);
829
+ let t = e[Pe] ? String(e.label ?? "") : q(e.label), n = Fe(e.icon);
814
830
  return n ? `<span class="wui-opt-label">${n}${t}</span>` : t;
815
- }, Fe = class extends HTMLElement {
831
+ }, Le = class extends HTMLElement {
816
832
  static formAssociated = !0;
817
833
  _accessibleName() {
818
834
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
@@ -873,12 +889,12 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
873
889
  set value(e) {
874
890
  this._value = e == null ? "" : String(e), G(this, this._value);
875
891
  let t = this._readOptions().find((e) => String(e.value) === this._value);
876
- this._label = t ? Le(t.label) : "", this._syncInput(), this._renderOptions("");
892
+ this._label = t ? ze(t.label) : "", this._syncInput(), this._renderOptions("");
877
893
  }
878
894
  set options(e) {
879
895
  this._optionsProp = Array.isArray(e) ? e : [];
880
896
  let t = this._readOptions().find((e) => String(e.value) === this._value);
881
- t && (this._label = Le(t.label)), this._renderOptions(), this._syncInput();
897
+ t && (this._label = ze(t.label)), this._renderOptions(), this._syncInput();
882
898
  }
883
899
  get options() {
884
900
  return this._readOptions();
@@ -897,7 +913,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
897
913
  }
898
914
  _matchesKnownOption(e) {
899
915
  let t = e.toLowerCase();
900
- return this._readOptions().some((e) => Le(e.label).toLowerCase() === t || String(e.value ?? "").toLowerCase() === t);
916
+ return this._readOptions().some((e) => ze(e.label).toLowerCase() === t || String(e.value ?? "").toLowerCase() === t);
901
917
  }
902
918
  get _minChars() {
903
919
  return Math.max(0, Number(this.getAttribute("min-chars")) || +!!this._remote);
@@ -915,7 +931,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
915
931
  value: e.getAttribute("value") ?? e.textContent.trim(),
916
932
  label: e.innerHTML,
917
933
  icon: e.getAttribute("icon") || void 0,
918
- [Me]: !0,
934
+ [Pe]: !0,
919
935
  selected: e.hasAttribute("selected")
920
936
  })));
921
937
  }
@@ -929,12 +945,12 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
929
945
  let r = `${this.id}-listbox`;
930
946
  this._listboxId = r, this.innerHTML = `
931
947
  <div class="search-select${n}">
932
- <div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Ie(r)}" aria-label="${Ie(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}>
933
- <input class="search-select-input search-select-ac-input" placeholder="${Ie(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
948
+ <div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Re(r)}" aria-label="${Re(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}>
949
+ <input class="search-select-input search-select-ac-input" placeholder="${Re(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
934
950
  <span class="search-select-spinner spinner-border spinner-border-sm" role="status" aria-hidden="true" hidden></span>
935
951
  <button type="button" class="search-select-clear" aria-label="Clear" hidden>${K("x")}</button>
936
952
  </div>
937
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Ie(r)}" tabindex="-1" hidden>
953
+ <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Re(r)}" tabindex="-1" hidden>
938
954
  <div class="search-select-options"></div>
939
955
  <div class="search-select-empty" hidden>No matches</div>
940
956
  <div class="search-select-hint" hidden>Type to search…</div>
@@ -968,7 +984,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
968
984
  let t = this._refs();
969
985
  if (!t.optionsWrap) return;
970
986
  let n = e ?? (t.input ? t.input.value : ""), r = n.trim().toLowerCase(), i = this._readOptions();
971
- !this._remote && r && (i = i.filter((e) => Le(e.label).toLowerCase().includes(r)));
987
+ !this._remote && r && (i = i.filter((e) => ze(e.label).toLowerCase().includes(r)));
972
988
  let a = n.trim(), o = this._allowCustom && a && !this._matchesKnownOption(a) ? [...i, {
973
989
  value: a,
974
990
  custom: !0
@@ -977,19 +993,19 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
977
993
  let n = `${s}-opt-${t}`;
978
994
  if (e.custom) {
979
995
  let t = `Add “${q(e.value)}”`;
980
- return `<button type="button" role="option" id="${Ie(n)}" class="search-select-option search-select-option-custom" data-value="${Ie(e.value)}" data-custom="true" aria-selected="false">${t}</button>`;
996
+ return `<button type="button" role="option" id="${Re(n)}" class="search-select-option search-select-option-custom" data-value="${Re(e.value)}" data-custom="true" aria-selected="false">${t}</button>`;
981
997
  }
982
998
  let r = String(e.value) === String(this._value);
983
- return `<button type="button" role="option" id="${Ie(n)}" class="search-select-option${r ? " selected" : ""}" data-value="${Ie(e.value)}" aria-selected="${r}">${Pe(e)}</button>`;
999
+ return `<button type="button" role="option" id="${Re(n)}" class="search-select-option${r ? " selected" : ""}" data-value="${Re(e.value)}" aria-selected="${r}">${Ie(e)}</button>`;
984
1000
  }).join(""), this._active = -1, t.control?.removeAttribute("aria-activedescendant");
985
1001
  let c = r.length < this._minChars;
986
- t.hint && (t.hint.hidden = !(this._remote && c && !i.length)), t.empty && (t.empty.hidden = this._loading || o.length > 0 || this._remote && c);
1002
+ t.hint && (t.hint.hidden = !(this._remote && c && !i.length)), t.empty && (t.empty.hidden = this._loading || o.length > 0 || this._remote && c), this._reanchor?.();
987
1003
  }
988
1004
  _wire() {
989
1005
  this._teardown();
990
1006
  let e = this._refs();
991
1007
  if (!e.control || !e.input) return;
992
- let t = () => Ee(e.control, e.menu, { matchWidth: !0 }), n = () => this._optionEls().filter((e) => !e.hidden), r = (t) => {
1008
+ let t = () => Oe(e.control, e.menu, { matchWidth: !0 }), n = () => this._optionEls().filter((e) => !e.hidden), r = (t) => {
993
1009
  let r = n();
994
1010
  this._active = t;
995
1011
  for (let e of this._optionEls()) e.classList.remove("is-active");
@@ -1000,7 +1016,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1000
1016
  e.menu.hidden = !0, e.control.setAttribute("aria-expanded", "false"), e.control.classList.remove("open"), r(-1), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "", this._syncInput();
1001
1017
  }, s = (t) => {
1002
1018
  let n = t.dataset.custom === "true";
1003
- this._value = t.dataset.value, this._label = n ? t.dataset.value : Le(t.innerHTML), G(this, this._value), e.input.value = this._label, this.dispatchEvent(new CustomEvent("change", {
1019
+ this._value = t.dataset.value, this._label = n ? t.dataset.value : ze(t.innerHTML), G(this, this._value), e.input.value = this._label, this.dispatchEvent(new CustomEvent("change", {
1004
1020
  bubbles: !0,
1005
1021
  detail: { isCustom: n }
1006
1022
  })), o(), e.input.focus();
@@ -1023,7 +1039,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1023
1039
  }, this._timer = setTimeout(() => this._fireSearch(t, e), this._debounceMs);
1024
1040
  } else this._renderOptions(t);
1025
1041
  };
1026
- this._navHandler = je({
1042
+ this._navHandler = Ne({
1027
1043
  getVisibleOptions: n,
1028
1044
  getActive: () => this._active,
1029
1045
  setActive: (e) => r(e),
@@ -1067,7 +1083,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1067
1083
  }), this._bindGlobal = () => {
1068
1084
  this._teardown(), this._onDocClick = (e) => {
1069
1085
  i() && !this.contains(e.target) && o();
1070
- }, document.addEventListener("click", this._onDocClick), De(this, () => {
1086
+ }, document.addEventListener("click", this._onDocClick), ke(this, () => {
1071
1087
  i() && t();
1072
1088
  });
1073
1089
  }, this._bindGlobal();
@@ -1082,12 +1098,12 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1082
1098
  }));
1083
1099
  }
1084
1100
  _teardown() {
1085
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Oe(this), clearTimeout(this._timer), this._navHandler?.teardown();
1101
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Ae(this), clearTimeout(this._timer), this._navHandler?.teardown();
1086
1102
  }
1087
1103
  disconnectedCallback() {
1088
1104
  this._teardown();
1089
1105
  }
1090
- }, Ie = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Le = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), Re = [
1106
+ }, Re = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), ze = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), Be = [
1091
1107
  "January",
1092
1108
  "February",
1093
1109
  "March",
@@ -1100,7 +1116,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1100
1116
  "October",
1101
1117
  "November",
1102
1118
  "December"
1103
- ], ze = [
1119
+ ], Ve = [
1104
1120
  "Su",
1105
1121
  "Mo",
1106
1122
  "Tu",
@@ -1108,24 +1124,24 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1108
1124
  "Th",
1109
1125
  "Fr",
1110
1126
  "Sa"
1111
- ], Be = (e) => String(e).padStart(2, "0"), Ve = (e, t, n) => `${e}-${Be(t + 1)}-${Be(n)}`, J = (e) => {
1127
+ ], He = (e) => String(e).padStart(2, "0"), Ue = (e, t, n) => `${e}-${He(t + 1)}-${He(n)}`, J = (e) => {
1112
1128
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e || "");
1113
1129
  return t ? {
1114
1130
  y: +t[1],
1115
1131
  m: t[2] - 1,
1116
1132
  d: +t[3]
1117
1133
  } : null;
1118
- }, He = (e) => {
1134
+ }, We = (e) => {
1119
1135
  let t = J(e);
1120
- return t ? `${Be(t.d)} ${Re[t.m].slice(0, 3)} ${t.y}` : "";
1121
- }, Ue = (e, t) => new Date(e, t + 1, 0).getDate(), We = (e, t) => {
1136
+ return t ? `${He(t.d)} ${Be[t.m].slice(0, 3)} ${t.y}` : "";
1137
+ }, Ge = (e, t) => new Date(e, t + 1, 0).getDate(), Ke = (e, t) => {
1122
1138
  for (; t < 0;) t += 12, --e;
1123
1139
  for (; t > 11;) t -= 12, e += 1;
1124
1140
  return {
1125
1141
  y: e,
1126
1142
  m: t
1127
1143
  };
1128
- }, Ge = class extends HTMLElement {
1144
+ }, qe = class extends HTMLElement {
1129
1145
  static formAssociated = !0;
1130
1146
  static get observedAttributes() {
1131
1147
  return [
@@ -1182,7 +1198,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1182
1198
  this.innerHTML = `
1183
1199
  <div class="datepicker">
1184
1200
  <button type="button" class="input datepicker-trigger${r}${t ? " has-value" : ""}" aria-haspopup="dialog" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${i ? ` aria-label="${q(i)}"` : ""}${a ? ` aria-describedby="${q(a)}"` : ""}>
1185
- <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? He(this._value) : q(e)}</span>
1201
+ <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? We(this._value) : q(e)}</span>
1186
1202
  ${K("calendar-dots")}
1187
1203
  </button>
1188
1204
  <div class="datepicker-pop" role="dialog" aria-modal="false" hidden></div>
@@ -1195,7 +1211,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1195
1211
  let e = this.querySelector(".datepicker-trigger"), t = this.querySelector("[data-trigger-label]");
1196
1212
  if (!t) return;
1197
1213
  let n = J(this._value);
1198
- t.textContent = n ? He(this._value) : this.getAttribute("placeholder") || "Enter Date", t.classList.toggle("search-select-placeholder", !n), e?.classList.toggle("has-value", !!n);
1214
+ t.textContent = n ? We(this._value) : this.getAttribute("placeholder") || "Enter Date", t.classList.toggle("search-select-placeholder", !n), e?.classList.toggle("has-value", !!n);
1199
1215
  }
1200
1216
  _limits() {
1201
1217
  let e = J(this.getAttribute("min")), t = J(this.getAttribute("max")), n = e ? new Date(e.y, e.m, e.d).getTime() : -Infinity, r = t ? new Date(t.y, t.m, t.d).getTime() : Infinity;
@@ -1206,7 +1222,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1206
1222
  },
1207
1223
  monthDisabled: (e, t) => {
1208
1224
  let i = new Date(e, t, 1).getTime();
1209
- return new Date(e, t, Ue(e, t)).getTime() < n || i > r;
1225
+ return new Date(e, t, Ge(e, t)).getTime() < n || i > r;
1210
1226
  },
1211
1227
  yearDisabled: (e) => {
1212
1228
  let t = new Date(e, 0, 1).getTime();
@@ -1219,28 +1235,28 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1219
1235
  e && (this._mode === "months" ? e.innerHTML = this._monthsHtml() : this._mode === "years" ? e.innerHTML = this._yearsHtml() : e.innerHTML = this._daysHtml(), this._focusActive());
1220
1236
  }
1221
1237
  _daysHtml() {
1222
- let e = this._firstDay(), t = (new Date(this._viewY, this._viewM, 1).getDay() - e + 7) % 7, n = Ue(this._viewY, this._viewM), r = J(this._value), i = /* @__PURE__ */ new Date(), { dayDisabled: a } = this._limits(), o = this._focus || r || {
1238
+ let e = this._firstDay(), t = (new Date(this._viewY, this._viewM, 1).getDay() - e + 7) % 7, n = Ge(this._viewY, this._viewM), r = J(this._value), i = /* @__PURE__ */ new Date(), { dayDisabled: a } = this._limits(), o = this._focus || r || {
1223
1239
  y: this._viewY,
1224
1240
  m: this._viewM,
1225
1241
  d: 1
1226
1242
  }, s = (e, t, n, s) => {
1227
- let c = Ve(e, t, n), l = r && r.y === e && r.m === t && r.d === n, u = i.getFullYear() === e && i.getMonth() === t && i.getDate() === n, d = o.y === e && o.m === t && o.d === n, f = a(e, t, n);
1243
+ let c = Ue(e, t, n), l = r && r.y === e && r.m === t && r.d === n, u = i.getFullYear() === e && i.getMonth() === t && i.getDate() === n, d = o.y === e && o.m === t && o.d === n, f = a(e, t, n);
1228
1244
  return `<button type="button" class="${[
1229
1245
  "datepicker-day",
1230
1246
  s ? "is-outside" : "",
1231
1247
  u ? "is-today" : "",
1232
1248
  l ? "is-selected" : ""
1233
1249
  ].filter(Boolean).join(" ")}" data-iso="${c}" role="gridcell" tabindex="${d && !f ? "0" : "-1"}"${l ? " aria-selected=\"true\"" : ""}${f ? " disabled aria-disabled=\"true\"" : ""}>${n}</button>`;
1234
- }, c = "", l = We(this._viewY, this._viewM - 1), u = Ue(l.y, l.m);
1250
+ }, c = "", l = Ke(this._viewY, this._viewM - 1), u = Ge(l.y, l.m);
1235
1251
  for (let e = t - 1; e >= 0; e--) c += s(l.y, l.m, u - e, !0);
1236
1252
  for (let e = 1; e <= n; e++) c += s(this._viewY, this._viewM, e, !1);
1237
- let d = We(this._viewY, this._viewM + 1), f = (7 - (t + n) % 7) % 7;
1253
+ let d = Ke(this._viewY, this._viewM + 1), f = (7 - (t + n) % 7) % 7;
1238
1254
  for (let e = 1; e <= f; e++) c += s(d.y, d.m, e, !0);
1239
- let p = ze.map((t, n) => ze[(n + e) % 7]).map((e) => `<span>${e}</span>`).join("");
1255
+ let p = Ve.map((t, n) => Ve[(n + e) % 7]).map((e) => `<span>${e}</span>`).join("");
1240
1256
  return `
1241
1257
  <div class="datepicker-head">
1242
1258
  <button type="button" class="datepicker-nav-btn" data-nav="-1" aria-label="Previous month">${K("chevron-left")}</button>
1243
- <button type="button" class="datepicker-month" data-view="months" aria-label="Choose month and year">${Re[this._viewM]} ${this._viewY}</button>
1259
+ <button type="button" class="datepicker-month" data-view="months" aria-label="Choose month and year">${Be[this._viewM]} ${this._viewY}</button>
1244
1260
  <button type="button" class="datepicker-nav-btn" data-nav="1" aria-label="Next month">${K("chevron-right")}</button>
1245
1261
  </div>
1246
1262
  <div class="datepicker-weekdays">${p}</div>
@@ -1258,7 +1274,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1258
1274
  o ? "is-today" : "",
1259
1275
  a ? "is-selected" : ""
1260
1276
  ].filter(Boolean).join(" ");
1261
- r += `<button type="button" class="${c}" data-month="${i}"${s ? " disabled" : ""}>${Re[i].slice(0, 3)}</button>`;
1277
+ r += `<button type="button" class="${c}" data-month="${i}"${s ? " disabled" : ""}>${Be[i].slice(0, 3)}</button>`;
1262
1278
  }
1263
1279
  return `
1264
1280
  <div class="datepicker-head">
@@ -1291,17 +1307,17 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1291
1307
  t && e.contains(document.activeElement) && t.focus();
1292
1308
  }
1293
1309
  _position(e, t) {
1294
- Ee(e, t);
1310
+ Oe(e, t);
1295
1311
  }
1296
1312
  _setFocus(e, t, n, r) {
1297
- let { y: i, m: a } = We(e, t);
1313
+ let { y: i, m: a } = Ke(e, t);
1298
1314
  this._focus = {
1299
1315
  y: i,
1300
1316
  m: a,
1301
1317
  d: n
1302
1318
  };
1303
1319
  let o = i !== this._viewY || a !== this._viewM;
1304
- this._viewY = i, this._viewM = a, this._slide = o && r || "", this._renderView(), this._slide = "", this.querySelector(`.datepicker-day[data-iso="${Ve(i, a, n)}"]`)?.focus();
1320
+ this._viewY = i, this._viewM = a, this._slide = o && r || "", this._renderView(), this._slide = "", this.querySelector(`.datepicker-day[data-iso="${Ue(i, a, n)}"]`)?.focus();
1305
1321
  }
1306
1322
  _onKey(e) {
1307
1323
  if (this._mode !== "days") {
@@ -1326,17 +1342,17 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1326
1342
  case "End": return n(6 - (new Date(t.y, t.m, t.d).getDay() - this._firstDay() + 7) % 7, "slide-next");
1327
1343
  case "PageUp": {
1328
1344
  e.preventDefault();
1329
- let n = We(t.y, t.m - (e.shiftKey ? 12 : 1));
1330
- return this._setFocus(n.y, n.m, Math.min(t.d, Ue(n.y, n.m)), "slide-prev");
1345
+ let n = Ke(t.y, t.m - (e.shiftKey ? 12 : 1));
1346
+ return this._setFocus(n.y, n.m, Math.min(t.d, Ge(n.y, n.m)), "slide-prev");
1331
1347
  }
1332
1348
  case "PageDown": {
1333
1349
  e.preventDefault();
1334
- let n = We(t.y, t.m + (e.shiftKey ? 12 : 1));
1335
- return this._setFocus(n.y, n.m, Math.min(t.d, Ue(n.y, n.m)), "slide-next");
1350
+ let n = Ke(t.y, t.m + (e.shiftKey ? 12 : 1));
1351
+ return this._setFocus(n.y, n.m, Math.min(t.d, Ge(n.y, n.m)), "slide-next");
1336
1352
  }
1337
1353
  case "Enter":
1338
1354
  case " ":
1339
- e.preventDefault(), this._limits().dayDisabled(t.y, t.m, t.d) || (this.value = Ve(t.y, t.m, t.d), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close());
1355
+ e.preventDefault(), this._limits().dayDisabled(t.y, t.m, t.d) || (this.value = Ue(t.y, t.m, t.d), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close());
1340
1356
  return;
1341
1357
  case "Escape": return this._close();
1342
1358
  default:
@@ -1363,7 +1379,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1363
1379
  let t = e.target.closest("[data-nav]");
1364
1380
  if (t) {
1365
1381
  this._viewNavigated = !0, this._slide = Number(t.dataset.nav) < 0 ? "slide-prev" : "slide-next";
1366
- let e = We(this._viewY, this._viewM + Number(t.dataset.nav));
1382
+ let e = Ke(this._viewY, this._viewM + Number(t.dataset.nav));
1367
1383
  this._viewY = e.y, this._viewM = e.m, this._focus = {
1368
1384
  y: e.y,
1369
1385
  m: e.m,
@@ -1402,7 +1418,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1402
1418
  }
1403
1419
  if (e.target.closest("[data-today]")) {
1404
1420
  let e = /* @__PURE__ */ new Date();
1405
- this.value = Ve(e.getFullYear(), e.getMonth(), e.getDate()), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close();
1421
+ this.value = Ue(e.getFullYear(), e.getMonth(), e.getDate()), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close();
1406
1422
  return;
1407
1423
  }
1408
1424
  if (e.target.closest("[data-clear]")) {
@@ -1419,18 +1435,18 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1419
1435
  this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
1420
1436
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
1421
1437
  r() && e.key === "Escape" && this._close();
1422
- }, document.addEventListener("keydown", this._onDocKey), De(this, () => {
1438
+ }, document.addEventListener("keydown", this._onDocKey), ke(this, () => {
1423
1439
  r() && this._position(e, t);
1424
1440
  });
1425
1441
  }, this._bindGlobal(), this._syncFormValue();
1426
1442
  }
1427
1443
  _teardown() {
1428
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), Oe(this);
1444
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), Ae(this);
1429
1445
  }
1430
1446
  disconnectedCallback() {
1431
1447
  this._teardown();
1432
1448
  }
1433
- }, Ke = class extends HTMLElement {
1449
+ }, Je = class extends HTMLElement {
1434
1450
  static formAssociated = !0;
1435
1451
  static get observedAttributes() {
1436
1452
  return [
@@ -1489,7 +1505,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1489
1505
  text: e,
1490
1506
  empty: !0
1491
1507
  } : {
1492
- text: `${He(this._start) || "Start"} – ${He(this._end) || "End"}`,
1508
+ text: `${We(this._start) || "Start"} – ${We(this._end) || "End"}`,
1493
1509
  empty: !1
1494
1510
  };
1495
1511
  }
@@ -1536,17 +1552,17 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1536
1552
  };
1537
1553
  }
1538
1554
  _monthHtml(e, t) {
1539
- let n = this._firstDay(), r = (new Date(e, t, 1).getDay() - n + 7) % 7, i = Ue(e, t), a = this._limits(), o = ze.map((e, t) => ze[(t + n) % 7]).map((e) => `<span>${e}</span>`).join(""), s = (e, t, n, r) => {
1540
- let i = Ve(e, t, n), o = a(e, t, n);
1555
+ let n = this._firstDay(), r = (new Date(e, t, 1).getDay() - n + 7) % 7, i = Ge(e, t), a = this._limits(), o = Ve.map((e, t) => Ve[(t + n) % 7]).map((e) => `<span>${e}</span>`).join(""), s = (e, t, n, r) => {
1556
+ let i = Ue(e, t, n), o = a(e, t, n);
1541
1557
  return `<button type="button" class="${["datepicker-day", r ? "is-outside" : ""].filter(Boolean).join(" ")}" data-iso="${i}"${o ? " disabled" : ""}>${n}</button>`;
1542
- }, c = "", l = We(e, t - 1), u = Ue(l.y, l.m);
1558
+ }, c = "", l = Ke(e, t - 1), u = Ge(l.y, l.m);
1543
1559
  for (let e = r - 1; e >= 0; e--) c += s(l.y, l.m, u - e, !0);
1544
1560
  for (let n = 1; n <= i; n++) c += s(e, t, n, !1);
1545
- let d = We(e, t + 1), f = (7 - (r + i) % 7) % 7;
1561
+ let d = Ke(e, t + 1), f = (7 - (r + i) % 7) % 7;
1546
1562
  for (let e = 1; e <= f; e++) c += s(d.y, d.m, e, !0);
1547
1563
  return `
1548
1564
  <div class="daterange-cal">
1549
- <div class="datepicker-month-label">${Re[t]} ${e}</div>
1565
+ <div class="datepicker-month-label">${Be[t]} ${e}</div>
1550
1566
  <div class="datepicker-weekdays">${o}</div>
1551
1567
  <div class="datepicker-grid" role="grid">${c}</div>
1552
1568
  </div>`;
@@ -1554,7 +1570,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1554
1570
  _renderView() {
1555
1571
  let e = this.querySelector(".daterange-pop");
1556
1572
  if (!e) return;
1557
- let t = We(this._viewY, this._viewM + 1);
1573
+ let t = Ke(this._viewY, this._viewM + 1);
1558
1574
  e.innerHTML = `
1559
1575
  <div class="daterange-head">
1560
1576
  <button type="button" class="datepicker-nav-btn" data-nav="-1" aria-label="Previous month">${K("chevron-left")}</button>
@@ -1580,10 +1596,10 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1580
1596
  n.classList.toggle("is-range-start", i), n.classList.toggle("is-range-end", a), n.classList.toggle("in-range", o);
1581
1597
  }
1582
1598
  let i = e.querySelector("[data-range-hint]");
1583
- i && (i.textContent = this._start ? this._end ? `${He(this._start)} – ${He(this._end)}` : "Pick an end date" : "Pick a start date");
1599
+ i && (i.textContent = this._start ? this._end ? `${We(this._start)} – ${We(this._end)}` : "Pick an end date" : "Pick a start date");
1584
1600
  }
1585
1601
  _position(e, t) {
1586
- Ee(e, t);
1602
+ Oe(e, t);
1587
1603
  }
1588
1604
  _pick(e) {
1589
1605
  if (!this._start || this._start && this._end) {
@@ -1615,7 +1631,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1615
1631
  this._popClick = !0;
1616
1632
  let t = e.target.closest("[data-nav]");
1617
1633
  if (t) {
1618
- let e = We(this._viewY, this._viewM + Number(t.dataset.nav));
1634
+ let e = Ke(this._viewY, this._viewM + Number(t.dataset.nav));
1619
1635
  this._viewY = e.y, this._viewM = e.m, this._renderView();
1620
1636
  return;
1621
1637
  }
@@ -1634,18 +1650,18 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1634
1650
  this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
1635
1651
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
1636
1652
  r() && e.key === "Escape" && this._close();
1637
- }, document.addEventListener("keydown", this._onDocKey), De(this, () => {
1653
+ }, document.addEventListener("keydown", this._onDocKey), ke(this, () => {
1638
1654
  r() && this._position(e, t);
1639
1655
  });
1640
1656
  }, this._bindGlobal(), this._syncMirrors();
1641
1657
  }
1642
1658
  _teardown() {
1643
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), Oe(this);
1659
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), Ae(this);
1644
1660
  }
1645
1661
  disconnectedCallback() {
1646
1662
  this._teardown();
1647
1663
  }
1648
- }, qe = class extends HTMLElement {
1664
+ }, Ye = class extends HTMLElement {
1649
1665
  static get observedAttributes() {
1650
1666
  return [
1651
1667
  "static",
@@ -1666,10 +1682,10 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1666
1682
  e === "static" && this.isConnected && this._wire();
1667
1683
  }
1668
1684
  _maxScale() {
1669
- return Je(this.getAttribute("max-scale"), 1.6);
1685
+ return Xe(this.getAttribute("max-scale"), 1.6);
1670
1686
  }
1671
1687
  _radius() {
1672
- return Je(this.getAttribute("radius"), 100);
1688
+ return Xe(this.getAttribute("radius"), 100);
1673
1689
  }
1674
1690
  _magnifyEnabled() {
1675
1691
  return !(this.hasAttribute("static") || typeof matchMedia == "function" && (matchMedia("(pointer: coarse)").matches || matchMedia("(prefers-reduced-motion: reduce)").matches));
@@ -1694,10 +1710,10 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1694
1710
  _teardown() {
1695
1711
  this._pointerMoveListener &&= (this.removeEventListener("pointermove", this._pointerMoveListener), null), this._pointerLeaveListener &&= (this.removeEventListener("pointerleave", this._pointerLeaveListener), null), this._resetMagnification();
1696
1712
  }
1697
- }, Je = (e, t) => {
1713
+ }, Xe = (e, t) => {
1698
1714
  let n = Number.parseFloat(e);
1699
1715
  return Number.isFinite(n) ? n : t;
1700
- }, Ye = class extends HTMLElement {
1716
+ }, Ze = class extends HTMLElement {
1701
1717
  static formAssociated = !0;
1702
1718
  _accessibleName() {
1703
1719
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
@@ -1775,7 +1791,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1775
1791
  value: e.getAttribute("value") ?? e.textContent.trim(),
1776
1792
  label: e.innerHTML,
1777
1793
  icon: e.getAttribute("icon") || void 0,
1778
- [Me]: !0,
1794
+ [Pe]: !0,
1779
1795
  selected: e.hasAttribute("selected")
1780
1796
  })));
1781
1797
  }
@@ -1788,7 +1804,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1788
1804
  }
1789
1805
  _labelHtmlFor(e) {
1790
1806
  let t = this._readOptions().find((t) => String(t.value) === String(e));
1791
- return t ? Pe(t) : q(e);
1807
+ return t ? Ie(t) : q(e);
1792
1808
  }
1793
1809
  render() {
1794
1810
  this._snapshotDeclared();
@@ -1797,13 +1813,13 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1797
1813
  let a = `${this.id}-listbox`;
1798
1814
  this._listboxId = a, this.innerHTML = `
1799
1815
  <div class="search-select${i}">
1800
- <div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Xe(a)}" aria-label="${Xe(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : " tabindex=\"0\""}>
1816
+ <div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Qe(a)}" aria-label="${Qe(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : " tabindex=\"0\""}>
1801
1817
  ${n ? K(n, { className: "search-select-icon" }) : ""}
1802
1818
  <div class="ms-chips" data-chips></div>
1803
1819
  ${K("chevron-down", { className: "search-select-caret" })}
1804
1820
  </div>
1805
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Xe(a)}" aria-multiselectable="true" tabindex="-1" hidden>
1806
- ${e ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${Xe(t)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden>${K("x")}</button></div>` : ""}
1821
+ <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Qe(a)}" aria-multiselectable="true" tabindex="-1" hidden>
1822
+ ${e ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${Qe(t)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden>${K("x")}</button></div>` : ""}
1807
1823
  <div class="search-select-options"></div>
1808
1824
  <div class="search-select-empty" hidden>No matches</div>
1809
1825
  </div>
@@ -1817,7 +1833,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1817
1833
  e.innerHTML = `<span class="search-select-placeholder">${q(t)}</span>`;
1818
1834
  return;
1819
1835
  }
1820
- e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${this._labelHtmlFor(e)}</span><button type="button" class="chip-remove" data-remove="${Xe(e)}" aria-label="Remove ${Xe(Ze(this._labelFor(e)))}">${K("x")}</button></span>`).join(""), this._collapseChips();
1836
+ e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${this._labelHtmlFor(e)}</span><button type="button" class="chip-remove" data-remove="${Qe(e)}" aria-label="Remove ${Qe($e(this._labelFor(e)))}">${K("x")}</button></span>`).join(""), this._collapseChips();
1821
1837
  }
1822
1838
  _collapseChips() {
1823
1839
  let e = this.querySelector("[data-chips]");
@@ -1841,18 +1857,18 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1841
1857
  let t = this.querySelector(".search-select-options"), n = this.querySelector(".search-select-empty");
1842
1858
  if (!t) return;
1843
1859
  let r = (e || "").trim().toLowerCase(), i = this._readOptions();
1844
- r && (i = i.filter((e) => Ze(e.label).toLowerCase().includes(r)));
1860
+ r && (i = i.filter((e) => $e(e.label).toLowerCase().includes(r)));
1845
1861
  let a = this._listboxId || `${this.id || "wui-multiselect"}-listbox`;
1846
1862
  t.innerHTML = i.map((e, t) => {
1847
1863
  let n = this._values.includes(String(e.value));
1848
- return `<button type="button" role="option" id="${Xe(`${a}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${Xe(e.value)}" aria-selected="${n}"><span class="ms-opt-label">${Pe(e)}</span><span class="ms-check">${K("check")}</span></button>`;
1849
- }).join(""), n && (n.hidden = i.length > 0), this._active = -1, this.querySelector(".search-select-control")?.removeAttribute("aria-activedescendant");
1864
+ return `<button type="button" role="option" id="${Qe(`${a}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${Qe(e.value)}" aria-selected="${n}"><span class="ms-opt-label">${Ie(e)}</span><span class="ms-check">${K("check")}</span></button>`;
1865
+ }).join(""), n && (n.hidden = i.length > 0), this._active = -1, this.querySelector(".search-select-control")?.removeAttribute("aria-activedescendant"), this._reanchor?.();
1850
1866
  }
1851
1867
  _wire() {
1852
1868
  this._teardown();
1853
1869
  let e = this.querySelector(".search-select-control"), t = this.querySelector(".search-select-menu"), n = this.querySelector(".search-select-input"), r = this.querySelector(".search-select-clear"), i = this.querySelector(".search-select-options");
1854
1870
  if (!e || !t) return;
1855
- let a = () => this.hasAttribute("disabled"), o = () => Ee(e, t, { matchWidth: !0 }), s = () => [...this.querySelectorAll(".search-select-option")], c = () => s().filter((e) => !e.hidden), l = (t) => {
1871
+ let a = () => this.hasAttribute("disabled"), o = () => Oe(e, t, { matchWidth: !0 }), s = () => [...this.querySelectorAll(".search-select-option")], c = () => s().filter((e) => !e.hidden), l = (t) => {
1856
1872
  let n = c();
1857
1873
  this._active = t;
1858
1874
  for (let e of s()) e.classList.remove("is-active");
@@ -1885,7 +1901,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1885
1901
  t && l(c().indexOf(t));
1886
1902
  }), i.addEventListener("mouseleave", () => l(-1)), n?.addEventListener("input", () => {
1887
1903
  this._renderOptions(n.value), r && (r.hidden = !n.value), l(-1);
1888
- }), this._navHandler = je({
1904
+ }), this._navHandler = Ne({
1889
1905
  getVisibleOptions: c,
1890
1906
  getActive: () => this._active,
1891
1907
  setActive: (e) => l(e),
@@ -1914,18 +1930,18 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1914
1930
  }), this._bindGlobal = () => {
1915
1931
  this._teardown(), !this._ro && typeof ResizeObserver < "u" && (this._ro = new ResizeObserver(() => this._collapseChips()), this._ro.observe(this)), this._onDocClick = (e) => {
1916
1932
  u() && !this.contains(e.target) && f();
1917
- }, document.addEventListener("click", this._onDocClick), De(this, () => {
1933
+ }, document.addEventListener("click", this._onDocClick), ke(this, () => {
1918
1934
  u() && o();
1919
1935
  });
1920
1936
  }, this._bindGlobal();
1921
1937
  }
1922
1938
  _teardown() {
1923
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Oe(this), this._navHandler?.teardown();
1939
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Ae(this), this._navHandler?.teardown();
1924
1940
  }
1925
1941
  disconnectedCallback() {
1926
1942
  this._teardown(), this._ro?.disconnect(), this._ro = null;
1927
1943
  }
1928
- }, Xe = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ze = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), Qe = /[^0-9]/g, $e = /[^0-9a-zA-Z]/g, et = class extends HTMLElement {
1944
+ }, Qe = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), $e = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), et = /[^0-9]/g, tt = /[^0-9a-zA-Z]/g, nt = class extends HTMLElement {
1929
1945
  static formAssociated = !0;
1930
1946
  static get observedAttributes() {
1931
1947
  return [
@@ -1956,7 +1972,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1956
1972
  this._value = this._clean(e), G(this, this._value), this._paint();
1957
1973
  }
1958
1974
  _clean(e) {
1959
- return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ? $e : Qe, "").slice(0, this.length);
1975
+ return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ? tt : et, "").slice(0, this.length);
1960
1976
  }
1961
1977
  constructor() {
1962
1978
  super();
@@ -2047,7 +2063,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
2047
2063
  disconnectedCallback() {
2048
2064
  this._onSelectionChange && document.removeEventListener("selectionchange", this._onSelectionChange);
2049
2065
  }
2050
- }, tt = [
2066
+ }, rt = [
2051
2067
  [
2052
2068
  "AF",
2053
2069
  "Afghanistan",
@@ -3273,20 +3289,20 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
3273
3289
  "Zimbabwe",
3274
3290
  "263"
3275
3291
  ]
3276
- ], nt = (e) => (tt.find((t) => t[0] === e) || [
3292
+ ], it = (e) => (rt.find((t) => t[0] === e) || [
3277
3293
  "",
3278
3294
  "",
3279
3295
  ""
3280
- ])[2], rt = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, Y = null, it = null;
3281
- function at() {
3282
- return Y ? Promise.resolve(Y) : (it ||= Promise.all([import("./libphonenumber-js-BcNT8oq0-DMpMlice.js"), import("./examples.mobile.json-BMXTGiGC-Dl_Tt3py.js")]).then(([e, t]) => (Y = {
3296
+ ])[2], at = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, Y = null, ot = null;
3297
+ function st() {
3298
+ return Y ? Promise.resolve(Y) : (ot ||= Promise.all([import("./libphonenumber-js-BcNT8oq0-DMpMlice.js"), import("./examples.mobile.json-BMXTGiGC-Dl_Tt3py.js")]).then(([e, t]) => (Y = {
3283
3299
  AsYouType: e.AsYouType,
3284
3300
  getExampleNumber: e.getExampleNumber,
3285
3301
  isValidPhoneNumber: e.isValidPhoneNumber,
3286
3302
  examples: t.default || t
3287
- }, Y)).catch(() => null), it);
3303
+ }, Y)).catch(() => null), ot);
3288
3304
  }
3289
- function ot(e, t) {
3305
+ function ct(e, t) {
3290
3306
  if (!Y || !t) return t;
3291
3307
  try {
3292
3308
  return new Y.AsYouType(e).input(t);
@@ -3294,7 +3310,7 @@ function ot(e, t) {
3294
3310
  return t;
3295
3311
  }
3296
3312
  }
3297
- function st(e) {
3313
+ function lt(e) {
3298
3314
  if (!Y) return null;
3299
3315
  try {
3300
3316
  return Y.getExampleNumber(e, Y.examples)?.formatNational() || null;
@@ -3302,7 +3318,7 @@ function st(e) {
3302
3318
  return null;
3303
3319
  }
3304
3320
  }
3305
- function ct(e) {
3321
+ function ut(e) {
3306
3322
  if (!Y || !e) return null;
3307
3323
  try {
3308
3324
  return Y.isValidPhoneNumber(e);
@@ -3310,7 +3326,7 @@ function ct(e) {
3310
3326
  return null;
3311
3327
  }
3312
3328
  }
3313
- function lt(e) {
3329
+ function dt(e) {
3314
3330
  if (!Y) return null;
3315
3331
  try {
3316
3332
  let t = Y.getExampleNumber(e, Y.examples);
@@ -3319,7 +3335,7 @@ function lt(e) {
3319
3335
  return null;
3320
3336
  }
3321
3337
  }
3322
- function ut(e) {
3338
+ function ft(e) {
3323
3339
  if (!Y || !e?.trim().startsWith("+")) return null;
3324
3340
  try {
3325
3341
  let t = new Y.AsYouType();
@@ -3333,7 +3349,7 @@ function ut(e) {
3333
3349
  return null;
3334
3350
  }
3335
3351
  }
3336
- var dt = class extends HTMLElement {
3352
+ var pt = class extends HTMLElement {
3337
3353
  static formAssociated = !0;
3338
3354
  static get observedAttributes() {
3339
3355
  return [
@@ -3367,19 +3383,26 @@ var dt = class extends HTMLElement {
3367
3383
  this.value = n;
3368
3384
  return;
3369
3385
  }
3370
- this._rendered && (e === "country" && (this._country = n || "IN", this._suppressCountryRender) || this.render());
3386
+ if (this._rendered) {
3387
+ if (e === "aria-label" || e === "aria-describedby") {
3388
+ let t = this.querySelector("input[type=tel]");
3389
+ t && (n == null ? t.removeAttribute(e) : t.setAttribute(e, n));
3390
+ return;
3391
+ }
3392
+ e === "country" && (this._country = n || "IN", this._suppressCountryRender) || this.render();
3393
+ }
3371
3394
  }
3372
3395
  formResetCallback() {
3373
3396
  this.value = this._defaultValue || "";
3374
3397
  }
3375
3398
  get value() {
3376
- return this._national ? `+${nt(this._country)}${this._national}` : "";
3399
+ return this._national ? `+${it(this._country)}${this._national}` : "";
3377
3400
  }
3378
3401
  set value(e) {
3379
- let t = String(e ?? "").trim(), n = ut(t);
3402
+ let t = String(e ?? "").trim(), n = ft(t);
3380
3403
  if (n) this._country = n.country, this._national = n.national.replace(/[^0-9]/g, "");
3381
3404
  else if (t.startsWith("+")) {
3382
- let e = t.replace(/[^0-9]/g, ""), n = String(nt(this._country));
3405
+ let e = t.replace(/[^0-9]/g, ""), n = String(it(this._country));
3383
3406
  n && e.startsWith(n) && (e = e.slice(n.length)), this._national = e;
3384
3407
  } else this._national = t.replace(/[^0-9]/g, "");
3385
3408
  n && this.getAttribute("country") !== this._country ? this.setAttribute("country", this._country) : this._rendered && this.render(), this._committedValue = this.value, this._syncMirror();
@@ -3395,25 +3418,25 @@ var dt = class extends HTMLElement {
3395
3418
  }
3396
3419
  render() {
3397
3420
  this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || ""), this._country = this.getAttribute("country") || this._country;
3398
- let e = this.getAttribute("placeholder") || st(this._country) || "Enter phone number";
3421
+ let e = this.getAttribute("placeholder") || lt(this._country) || "Enter phone number";
3399
3422
  this.id ||= `wui-phone-${Math.random().toString(36).slice(2, 9)}`;
3400
3423
  let t = `${this.id}-listbox`;
3401
3424
  this._listboxId = t;
3402
- let n = tt.map(([e, n, r], i) => `<button type="button" role="option" id="${ft(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${rt(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
3425
+ let n = rt.map(([e, n, r], i) => `<button type="button" role="option" id="${mt(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${at(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
3403
3426
  this.innerHTML = `
3404
3427
  <div class="phone-input-wrap">
3405
3428
  <div class="phone-country-adornment">
3406
- <button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${ft(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3407
- <span class="${rt(this._country)}" data-flag aria-hidden="true"></span>
3429
+ <button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${mt(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3430
+ <span class="${at(this._country)}" data-flag aria-hidden="true"></span>
3408
3431
  ${K("chevron-down", { className: "phone-chevron" })}
3409
- <span class="phone-dial" data-dial>+${nt(this._country)}</span>
3432
+ <span class="phone-dial" data-dial>+${it(this._country)}</span>
3410
3433
  </button>
3411
- <div class="country-dropdown-menu" role="listbox" id="${ft(t)}" tabindex="-1" hidden>
3412
- <div class="dropdown-search-wrapper"><span class="dropdown-search-icon">${K("search")}</span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${ft(t)}" aria-autocomplete="list" /></div>
3434
+ <div class="country-dropdown-menu" role="listbox" id="${mt(t)}" tabindex="-1" hidden>
3435
+ <div class="dropdown-search-wrapper"><span class="dropdown-search-icon">${K("search")}</span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${mt(t)}" aria-autocomplete="list" /></div>
3413
3436
  <div class="country-list-scroll">${n}<div class="country-empty" hidden>No countries found</div></div>
3414
3437
  </div>
3415
3438
  </div>
3416
- <input type="tel" class="input" placeholder="${ft(e)}" value="${ft(ot(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${ft(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${ft(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
3439
+ <input type="tel" class="input" placeholder="${mt(e)}" value="${mt(ct(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${mt(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${mt(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
3417
3440
  </div>
3418
3441
  <div class="field-error" data-phone-error hidden></div>`, this._rendered = !0, G(this, this.value), this._wire();
3419
3442
  }
@@ -3427,7 +3450,7 @@ var dt = class extends HTMLElement {
3427
3450
  this._teardown();
3428
3451
  let e = this.querySelector(".country-toggle"), t = this.querySelector(".phone-input-wrap"), n = this.querySelector(".country-dropdown-menu"), r = this.querySelector(".dropdown-search-input"), i = this.querySelector(".country-list-scroll"), a = this.querySelector(".country-empty"), o = this.querySelector("input[type=tel]"), s = this.querySelector("[data-flag]"), c = this.querySelector("[data-dial]");
3429
3452
  if (!e || !n) return;
3430
- let l = () => !n.hidden, u = () => Ee(t || e, n), d = (e) => {
3453
+ let l = () => !n.hidden, u = () => Oe(t || e, n), d = (e) => {
3431
3454
  let t = this._visibleItems();
3432
3455
  this._active = e;
3433
3456
  for (let e of this._itemEls()) e.classList.remove("is-active");
@@ -3444,12 +3467,12 @@ var dt = class extends HTMLElement {
3444
3467
  }
3445
3468
  a && (a.hidden = n > 0);
3446
3469
  }, h = (e) => {
3447
- this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), s && (s.className = rt(e)), c && (c.textContent = `+${nt(e)}`);
3470
+ this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), s && (s.className = at(e)), c && (c.textContent = `+${it(e)}`);
3448
3471
  for (let t of this._itemEls()) {
3449
3472
  let n = t.dataset.iso === e;
3450
3473
  t.classList.toggle("selected", n), t.setAttribute("aria-selected", String(n));
3451
3474
  }
3452
- !this.getAttribute("placeholder") && o && (o.placeholder = st(e) || "Enter phone number"), o && this._national && (o.value = ot(e, this._national)), p(), this._syncMirror(), this._emitChange(), o?.focus();
3475
+ !this.getAttribute("placeholder") && o && (o.placeholder = lt(e) || "Enter phone number"), o && this._national && (o.value = ct(e, this._national)), p(), this._syncMirror(), this._emitChange(), o?.focus();
3453
3476
  }, g = (t) => {
3454
3477
  let n = this._visibleItems();
3455
3478
  if (t.key === "ArrowDown") {
@@ -3483,7 +3506,7 @@ var dt = class extends HTMLElement {
3483
3506
  let _ = this.querySelector("[data-phone-error]"), v = (e) => {
3484
3507
  if (o.classList.toggle("is-invalid", e), e ? o.setAttribute("aria-invalid", "true") : o.removeAttribute("aria-invalid"), _) {
3485
3508
  if (e) {
3486
- let e = st(this._country);
3509
+ let e = lt(this._country);
3487
3510
  _.textContent = e ? `Enter a valid phone number, e.g. ${e}` : "Enter a valid phone number";
3488
3511
  }
3489
3512
  _.hidden = !e;
@@ -3491,26 +3514,26 @@ var dt = class extends HTMLElement {
3491
3514
  };
3492
3515
  o.addEventListener("input", (e) => {
3493
3516
  e.stopPropagation();
3494
- let t = o.value.replace(/[^0-9]/g, ""), n = lt(this._country);
3517
+ let t = o.value.replace(/[^0-9]/g, ""), n = dt(this._country);
3495
3518
  n && t.length > n && (t = t.slice(0, n)), this._national = t;
3496
- let r = ot(this._country, this._national);
3497
- o.value !== r && (o.value = r), this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national || ct(this.value) === !0) && v(!1);
3519
+ let r = ct(this._country, this._national);
3520
+ o.value !== r && (o.value = r), this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national || ut(this.value) === !0) && v(!1);
3498
3521
  }), o.addEventListener("change", (e) => e.stopPropagation()), o.addEventListener("blur", () => {
3499
- v(this._national.length > 0 && ct(this.value) === !1), this.value !== this._committedValue && this._emitChange();
3522
+ v(this._national.length > 0 && ut(this.value) === !1), this.value !== this._committedValue && this._emitChange();
3500
3523
  }), o.addEventListener("paste", (e) => {
3501
- let t = ut(e.clipboardData?.getData("text"));
3502
- t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value = ot(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
3524
+ let t = ft(e.clipboardData?.getData("text"));
3525
+ t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value = ct(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
3503
3526
  }), this._bindGlobal = () => {
3504
3527
  this._teardownGlobals?.(), this._onDocClick = (e) => {
3505
3528
  l() && !this.contains(e.target) && p();
3506
- }, document.addEventListener("click", this._onDocClick), De(this, () => {
3529
+ }, document.addEventListener("click", this._onDocClick), ke(this, () => {
3507
3530
  l() && u();
3508
3531
  });
3509
3532
  }, this._teardownGlobals = () => {
3510
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Oe(this);
3511
- }, this._bindGlobal(), at().then((e) => {
3512
- if (!(!e || !o.isConnected) && (this._national && (o.value = ot(this._country, this._national)), !this.getAttribute("placeholder"))) {
3513
- let e = st(this._country);
3533
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Ae(this);
3534
+ }, this._bindGlobal(), st().then((e) => {
3535
+ if (!(!e || !o.isConnected) && (this._national && (o.value = ct(this._country, this._national)), !this.getAttribute("placeholder"))) {
3536
+ let e = lt(this._country);
3514
3537
  e && (o.placeholder = e);
3515
3538
  }
3516
3539
  }), this._syncMirror();
@@ -3521,7 +3544,7 @@ var dt = class extends HTMLElement {
3521
3544
  disconnectedCallback() {
3522
3545
  this._teardown();
3523
3546
  }
3524
- }, ft = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), pt = class extends HTMLElement {
3547
+ }, mt = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), ht = class extends HTMLElement {
3525
3548
  static formAssociated = !0;
3526
3549
  static get observedAttributes() {
3527
3550
  return [
@@ -3595,7 +3618,7 @@ var dt = class extends HTMLElement {
3595
3618
  value: e.getAttribute("value") ?? e.textContent.trim(),
3596
3619
  label: e.innerHTML,
3597
3620
  icon: e.getAttribute("icon") || void 0,
3598
- [Me]: !0,
3621
+ [Pe]: !0,
3599
3622
  selected: e.hasAttribute("selected")
3600
3623
  })));
3601
3624
  }
@@ -3610,19 +3633,19 @@ var dt = class extends HTMLElement {
3610
3633
  this._listboxId = u;
3611
3634
  let d = e.map((e, t) => {
3612
3635
  let n = String(e.value) === String(this._value);
3613
- return `<button type="button" role="option" id="${mt(`${u}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${mt(e.value)}" aria-selected="${n}">${Pe(e)}</button>`;
3636
+ return `<button type="button" role="option" id="${gt(`${u}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${gt(e.value)}" aria-selected="${n}">${Ie(e)}</button>`;
3614
3637
  }).join("");
3615
3638
  this.innerHTML = `
3616
3639
  <div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}${i}">
3617
- <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${mt(u)}" aria-label="${mt(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""}>
3640
+ <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${gt(u)}" aria-label="${gt(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""}>
3618
3641
  ${a ? K(a, { className: "search-select-icon" }) : ""}
3619
3642
  ${o ? `<span class="search-select-prefix">${q(o)}</span>` : ""}
3620
- <span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? Pe(l) : q(s)}</span>
3643
+ <span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? Ie(l) : q(s)}</span>
3621
3644
  ${n ? `<span class="search-select-reset" role="button" aria-label="Clear selection" hidden>${K("x")}</span>` : ""}
3622
3645
  ${K("chevron-down", { className: "search-select-caret" })}
3623
3646
  </button>
3624
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${mt(u)}" tabindex="-1" hidden>
3625
- ${t ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${mt(c)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden>${K("x")}</button></div>` : ""}
3647
+ <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${gt(u)}" tabindex="-1" hidden>
3648
+ ${t ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${gt(c)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden>${K("x")}</button></div>` : ""}
3626
3649
  <div class="search-select-options">${d}<div class="search-select-empty" hidden>No matches</div></div>
3627
3650
  </div>
3628
3651
  </div>`, this._rendered = !0, G(this, this._value), this._wire(), this._syncReset();
@@ -3651,7 +3674,7 @@ var dt = class extends HTMLElement {
3651
3674
  let t = e.dataset.value === String(this._value);
3652
3675
  e.classList.toggle("selected", t), e.setAttribute("aria-selected", String(t));
3653
3676
  }
3654
- e && (e.innerHTML = t ? Pe(t) : q(this.getAttribute("placeholder") || "Select..."), e.classList.toggle("search-select-placeholder", !t));
3677
+ e && (e.innerHTML = t ? Ie(t) : q(this.getAttribute("placeholder") || "Select..."), e.classList.toggle("search-select-placeholder", !t));
3655
3678
  }
3656
3679
  _syncReset() {
3657
3680
  let { reset: e } = this._refs();
@@ -3664,20 +3687,20 @@ var dt = class extends HTMLElement {
3664
3687
  let t = () => {
3665
3688
  if (this.hasAttribute("compact")) {
3666
3689
  let t = e.control.getBoundingClientRect();
3667
- e.menu.style.width = "max-content", e.menu.style.minWidth = `${t.width}px`, e.menu.style.maxWidth = "280px", Ee(e.control, e.menu);
3668
- } else Ee(e.control, e.menu, { matchWidth: !0 });
3690
+ e.menu.style.width = "max-content", e.menu.style.minWidth = `${t.width}px`, e.menu.style.maxWidth = "280px", Oe(e.control, e.menu);
3691
+ } else Oe(e.control, e.menu, { matchWidth: !0 });
3669
3692
  }, n = (t) => {
3670
3693
  let n = this._visible();
3671
3694
  this._active = t;
3672
3695
  for (let e of this._optionEls()) e.classList.remove("is-active");
3673
3696
  t >= 0 && n[t] ? (n[t].classList.add("is-active"), n[t].scrollIntoView({ block: "nearest" }), e.control.setAttribute("aria-activedescendant", n[t].id)) : e.control.removeAttribute("aria-activedescendant");
3674
- }, r = (t) => {
3675
- let n = t.trim().toLowerCase(), r = 0;
3697
+ }, r = (n) => {
3698
+ let r = n.trim().toLowerCase(), i = 0;
3676
3699
  for (let e of this._optionEls()) {
3677
- let t = !n || e.textContent.toLowerCase().includes(n);
3678
- e.hidden = !t, t && (r += 1);
3700
+ let t = !r || e.textContent.toLowerCase().includes(r);
3701
+ e.hidden = !t, t && (i += 1);
3679
3702
  }
3680
- e.empty && (e.empty.hidden = r > 0), e.clear && (e.clear.hidden = !n);
3703
+ e.empty && (e.empty.hidden = i > 0), e.clear && (e.clear.hidden = !r), e.menu.hidden || t();
3681
3704
  }, i = () => !e.menu.hidden, a = () => {
3682
3705
  e.menu.hidden = !1, e.control.setAttribute("aria-expanded", "true"), e.control.classList.add("open"), t(), e.search && (e.search.value = "", r(""), e.search.focus()), n(this._optionEls().findIndex((e) => e.classList.contains("selected")));
3683
3706
  }, o = () => {
@@ -3685,7 +3708,7 @@ var dt = class extends HTMLElement {
3685
3708
  }, s = (t) => {
3686
3709
  this.value = t.dataset.value, this.dispatchEvent(new Event("change", { bubbles: !0 })), o(), e.control.focus();
3687
3710
  };
3688
- this._navHandler = je({
3711
+ this._navHandler = Ne({
3689
3712
  getVisibleOptions: () => this._visible(),
3690
3713
  getActive: () => this._active,
3691
3714
  setActive: (e) => n(e),
@@ -3716,18 +3739,18 @@ var dt = class extends HTMLElement {
3716
3739
  }), e.menu.addEventListener("keydown", this._navHandler.handler), this._bindGlobal = () => {
3717
3740
  this._teardown(), this._onDocClick = (e) => {
3718
3741
  i() && !this.contains(e.target) && o();
3719
- }, document.addEventListener("click", this._onDocClick), De(this, () => {
3742
+ }, document.addEventListener("click", this._onDocClick), ke(this, () => {
3720
3743
  i() && t();
3721
3744
  });
3722
3745
  }, this._bindGlobal();
3723
3746
  }
3724
3747
  _teardown() {
3725
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Oe(this), this._navHandler?.teardown();
3748
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Ae(this), this._navHandler?.teardown();
3726
3749
  }
3727
3750
  disconnectedCallback() {
3728
3751
  this._teardown();
3729
3752
  }
3730
- }, mt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), ht = class extends HTMLElement {
3753
+ }, gt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), _t = class extends HTMLElement {
3731
3754
  static formAssociated = !0;
3732
3755
  static get observedAttributes() {
3733
3756
  return [
@@ -3767,19 +3790,19 @@ var dt = class extends HTMLElement {
3767
3790
  return this._value;
3768
3791
  }
3769
3792
  set value(e) {
3770
- this._value = this._snapToStep(this._clamp(gt(e, this._value))), this._syncValue(), this._syncMirrors();
3793
+ this._value = this._snapToStep(this._clamp(vt(e, this._value))), this._syncValue(), this._syncMirrors();
3771
3794
  }
3772
3795
  get start() {
3773
3796
  return this._start;
3774
3797
  }
3775
3798
  set start(e) {
3776
- this._start = Math.min(this._snapToStep(this._clamp(gt(e, this._start))), this._end), this._syncValue(), this._syncMirrors();
3799
+ this._start = Math.min(this._snapToStep(this._clamp(vt(e, this._start))), this._end), this._syncValue(), this._syncMirrors();
3777
3800
  }
3778
3801
  get end() {
3779
3802
  return this._end;
3780
3803
  }
3781
3804
  set end(e) {
3782
- this._end = Math.max(this._snapToStep(this._clamp(gt(e, this._end))), this._start), this._syncValue(), this._syncMirrors();
3805
+ this._end = Math.max(this._snapToStep(this._clamp(vt(e, this._end))), this._start), this._syncValue(), this._syncMirrors();
3783
3806
  }
3784
3807
  attributeChangedCallback(e, t, n) {
3785
3808
  if (e === "value" || e === "start" || e === "end" || e === "min" || e === "max" || e === "step") {
@@ -3792,19 +3815,19 @@ var dt = class extends HTMLElement {
3792
3815
  this._isRange() ? this._resetRange() : this._resetSingle();
3793
3816
  }
3794
3817
  _updateFromAttribute(e) {
3795
- e === "value" ? this._value = this._snapToStep(this._clamp(gt(this.getAttribute("value"), this._value))) : e === "start" ? this._start = this._snapToStep(this._clamp(gt(this.getAttribute("start"), this._start))) : e === "end" && (this._end = this._snapToStep(this._clamp(gt(this.getAttribute("end"), this._end))));
3818
+ e === "value" ? this._value = this._snapToStep(this._clamp(vt(this.getAttribute("value"), this._value))) : e === "start" ? this._start = this._snapToStep(this._clamp(vt(this.getAttribute("start"), this._start))) : e === "end" && (this._end = this._snapToStep(this._clamp(vt(this.getAttribute("end"), this._end))));
3796
3819
  }
3797
3820
  _isRange() {
3798
3821
  return this.hasAttribute("range");
3799
3822
  }
3800
3823
  _min() {
3801
- return gt(this.getAttribute("min"), 0);
3824
+ return vt(this.getAttribute("min"), 0);
3802
3825
  }
3803
3826
  _max() {
3804
- return gt(this.getAttribute("max"), 100);
3827
+ return vt(this.getAttribute("max"), 100);
3805
3828
  }
3806
3829
  _step() {
3807
- return gt(this.getAttribute("step"), 1);
3830
+ return vt(this.getAttribute("step"), 1);
3808
3831
  }
3809
3832
  _clamp(e) {
3810
3833
  return Math.max(this._min(), Math.min(e, this._max()));
@@ -3869,7 +3892,7 @@ var dt = class extends HTMLElement {
3869
3892
  aria-valuenow="${this._value}"
3870
3893
  aria-valuetext="${this._formatValue(this._value)}"
3871
3894
  ${a ? "disabled" : ""}
3872
- aria-label="${_t(this.getAttribute("aria-label") || "Value")}"
3895
+ aria-label="${yt(this.getAttribute("aria-label") || "Value")}"
3873
3896
  ></button>
3874
3897
  `}
3875
3898
  ${this.hasAttribute("show-value") ? n ? `<span class="slider-value">${this._formatValue(this._start)} – ${this._formatValue(this._end)}</span>` : `<span class="slider-value">${this._formatValue(this._value)}</span>` : ""}
@@ -3969,10 +3992,10 @@ var dt = class extends HTMLElement {
3969
3992
  disconnectedCallback() {
3970
3993
  this._teardown();
3971
3994
  }
3972
- }, gt = (e, t) => {
3995
+ }, vt = (e, t) => {
3973
3996
  let n = Number.parseFloat(e);
3974
3997
  return Number.isFinite(n) ? n : t;
3975
- }, _t = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), vt = class extends HTMLElement {
3998
+ }, yt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), bt = class extends HTMLElement {
3976
3999
  static formAssociated = !0;
3977
4000
  _accessibleName() {
3978
4001
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Add tags";
@@ -4045,7 +4068,7 @@ var dt = class extends HTMLElement {
4045
4068
  G(this, this._values.join(",")), this.innerHTML = `
4046
4069
  <div class="search-select${t}">
4047
4070
  <div class="input search-select-control search-select-multi"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
4048
- <input type="text" class="ms-input" data-input aria-label="${bt(this._accessibleName())}" placeholder="${bt(this.getAttribute("placeholder") || "Add…")}" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""}/>
4071
+ <input type="text" class="ms-input" data-input aria-label="${St(this._accessibleName())}" placeholder="${St(this.getAttribute("placeholder") || "Add…")}" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""}/>
4049
4072
  <div class="ms-chips" data-chips></div>
4050
4073
  </div>
4051
4074
  </div>`, this._rendered = !0, G(this, this._values.join(",")), this._renderControl(), this._wire();
@@ -4057,7 +4080,7 @@ var dt = class extends HTMLElement {
4057
4080
  e.innerHTML = "";
4058
4081
  return;
4059
4082
  }
4060
- e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${yt(e)}</span><button type="button" class="chip-remove" data-remove="${bt(e)}" aria-label="Remove ${bt(e)}">${K("x")}</button></span>`).join("");
4083
+ e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${xt(e)}</span><button type="button" class="chip-remove" data-remove="${St(e)}" aria-label="Remove ${St(e)}">${K("x")}</button></span>`).join("");
4061
4084
  }
4062
4085
  }
4063
4086
  _wire() {
@@ -4128,18 +4151,18 @@ var dt = class extends HTMLElement {
4128
4151
  disconnectedCallback() {
4129
4152
  this._teardown();
4130
4153
  }
4131
- }, yt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), bt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), xt = (e) => String(e).padStart(2, "0"), St = (e, t) => `${xt(e)}:${xt(t)}`, Ct = (e) => {
4154
+ }, xt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), St = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ct = (e) => String(e).padStart(2, "0"), wt = (e, t) => `${Ct(e)}:${Ct(t)}`, Tt = (e) => {
4132
4155
  let t = /^(\d{2}):(\d{2})$/.exec(e || "");
4133
4156
  return t ? {
4134
4157
  h: +t[1],
4135
4158
  m: +t[2]
4136
4159
  } : null;
4137
- }, wt = (e, t = "24") => {
4160
+ }, Et = (e, t = "24") => {
4138
4161
  if (!e) return "";
4139
- if (t === "24") return St(e.h, e.m);
4162
+ if (t === "24") return wt(e.h, e.m);
4140
4163
  let n = e.h % 12 || 12, r = e.h >= 12 ? "PM" : "AM";
4141
- return `${n}:${xt(e.m)} ${r}`;
4142
- }, Tt = class extends HTMLElement {
4164
+ return `${n}:${Ct(e.m)} ${r}`;
4165
+ }, Dt = class extends HTMLElement {
4143
4166
  static formAssociated = !0;
4144
4167
  static get observedAttributes() {
4145
4168
  return [
@@ -4186,11 +4209,11 @@ var dt = class extends HTMLElement {
4186
4209
  }
4187
4210
  render() {
4188
4211
  this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || "", this._value = this._defaultValue || this._value);
4189
- let e = this.getAttribute("placeholder") || "Select time", t = Ct(this._value), n = this.getAttribute("format") || "24", r = this.getAttribute("size"), i = r === "sm" ? " input-sm" : r === "lg" ? " input-lg" : "", a = this.getAttribute("aria-label"), o = this.getAttribute("aria-describedby");
4212
+ let e = this.getAttribute("placeholder") || "Select time", t = Tt(this._value), n = this.getAttribute("format") || "24", r = this.getAttribute("size"), i = r === "sm" ? " input-sm" : r === "lg" ? " input-lg" : "", a = this.getAttribute("aria-label"), o = this.getAttribute("aria-describedby");
4190
4213
  this.innerHTML = `
4191
4214
  <div class="timepicker">
4192
4215
  <button type="button" class="input timepicker-trigger${i}${t ? " has-value" : ""}" aria-haspopup="listbox" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${a ? ` aria-label="${q(a)}"` : ""}${o ? ` aria-describedby="${q(o)}"` : ""}>
4193
- <span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ? wt(t, n) : q(e)}</span>
4216
+ <span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ? Et(t, n) : q(e)}</span>
4194
4217
  ${K("clock")}
4195
4218
  </button>
4196
4219
  <div class="timepicker-pop" role="listbox" tabindex="-1" hidden></div>
@@ -4202,14 +4225,14 @@ var dt = class extends HTMLElement {
4202
4225
  _syncTrigger() {
4203
4226
  let e = this.querySelector(".timepicker-trigger"), t = this.querySelector("[data-trigger-label]");
4204
4227
  if (!t) return;
4205
- let n = Ct(this._value), r = this.getAttribute("format") || "24";
4206
- t.textContent = n ? wt(n, r) : this.getAttribute("placeholder") || "Select time", t.classList.toggle("timepicker-placeholder", !n), e?.classList.toggle("has-value", !!n);
4228
+ let n = Tt(this._value), r = this.getAttribute("format") || "24";
4229
+ t.textContent = n ? Et(n, r) : this.getAttribute("placeholder") || "Select time", t.classList.toggle("timepicker-placeholder", !n), e?.classList.toggle("has-value", !!n);
4207
4230
  }
4208
4231
  _buildTimes() {
4209
- let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r = Ct(t) || {
4232
+ let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r = Tt(t) || {
4210
4233
  h: 0,
4211
4234
  m: 0
4212
- }, i = Ct(n) || {
4235
+ }, i = Tt(n) || {
4213
4236
  h: 23,
4214
4237
  m: 59
4215
4238
  }, a = [], o = r.h, s = r.m;
@@ -4222,10 +4245,10 @@ var dt = class extends HTMLElement {
4222
4245
  _renderOptions() {
4223
4246
  let e = this.querySelector(".timepicker-pop");
4224
4247
  if (!e) return;
4225
- let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = Ct(this._value), i = this._focus, a = "";
4248
+ let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = Tt(this._value), i = this._focus, a = "";
4226
4249
  for (let e = 0; e < n.length; e++) {
4227
- let o = n[e], s = St(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
4228
- a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${wt(o, t)}</button>`;
4250
+ let o = n[e], s = wt(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
4251
+ a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${Et(o, t)}</button>`;
4229
4252
  }
4230
4253
  e.innerHTML = a, this._focusActive();
4231
4254
  }
@@ -4234,7 +4257,7 @@ var dt = class extends HTMLElement {
4234
4257
  t && !e.hidden && t.focus();
4235
4258
  }
4236
4259
  _position(e, t) {
4237
- Ee(e, t);
4260
+ Oe(e, t);
4238
4261
  }
4239
4262
  _onKey(e) {
4240
4263
  let t = [...this.querySelector(".timepicker-pop").querySelectorAll(".timepicker-option")];
@@ -4312,18 +4335,18 @@ var dt = class extends HTMLElement {
4312
4335
  this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
4313
4336
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
4314
4337
  r() && e.key === "Escape" && this._close();
4315
- }, document.addEventListener("keydown", this._onDocKey), De(this, () => {
4338
+ }, document.addEventListener("keydown", this._onDocKey), ke(this, () => {
4316
4339
  r() && this._position(e, t);
4317
4340
  });
4318
4341
  }, this._bindGlobal(), this._syncFormValue();
4319
4342
  }
4320
4343
  _teardown() {
4321
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), Oe(this), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "";
4344
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), Ae(this), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "";
4322
4345
  }
4323
4346
  disconnectedCallback() {
4324
4347
  this._teardown();
4325
4348
  }
4326
- }, Et = "wui-wizard-step", Dt = class extends HTMLElement {
4349
+ }, Ot = "wui-wizard-step", kt = class extends HTMLElement {
4327
4350
  static get observedAttributes() {
4328
4351
  return [
4329
4352
  "active",
@@ -4357,7 +4380,7 @@ var dt = class extends HTMLElement {
4357
4380
  this._beforeNext = typeof e == "function" ? e : null;
4358
4381
  }
4359
4382
  get _steps() {
4360
- return [...this.querySelectorAll(`:scope > ${Et}`)];
4383
+ return [...this.querySelectorAll(`:scope > ${Ot}`)];
4361
4384
  }
4362
4385
  refresh() {
4363
4386
  this._rendered && this._renderChrome();
@@ -4416,13 +4439,13 @@ var dt = class extends HTMLElement {
4416
4439
  return e.map((e, r) => {
4417
4440
  let a = this._stepStatus(e, r), o = e.getAttribute("label") || "", s = e.getAttribute("description") || "", c = e.getAttribute("icon") || "", l = r + 1, u;
4418
4441
  u = a === "done" ? K("check") : a === "error" ? K("alert-triangle") : a === "skipped" ? K("minus") : c ? K(c) : String(l);
4419
- let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${Ot(s)}</span>` : "", h;
4420
- return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${Ot(o)}</span>${m}</span>` : n ? `<span class="step-circle">${u}</span><span class="step-index">Step ${l}</span><span class="step-label">${Ot(o)}</span>${m}` : `<span class="step-circle">${u}</span><span class="step-label">${Ot(o)}</span>${m}`, p ? `<button type="button" class="${d}" data-step="${r}"${f}>${h}</button>` : `<div class="${d}"${f}>${h}</div>`;
4442
+ let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${At(s)}</span>` : "", h;
4443
+ return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${At(o)}</span>${m}</span>` : n ? `<span class="step-circle">${u}</span><span class="step-index">Step ${l}</span><span class="step-label">${At(o)}</span>${m}` : `<span class="step-circle">${u}</span><span class="step-label">${At(o)}</span>${m}`, p ? `<button type="button" class="${d}" data-step="${r}"${f}>${h}</button>` : `<div class="${d}"${f}>${h}</div>`;
4421
4444
  }).join("");
4422
4445
  }
4423
4446
  _footerHtml(e) {
4424
4447
  let t = this._active, n = e.length - 1, r = this.hasAttribute("disabled") ? " disabled" : "", i = e[t]?.hasAttribute("optional") || this.hasAttribute("skippable"), a = this.getAttribute("back-label") || "Back", o = this.getAttribute("next-label") || "Next", s = this.getAttribute("skip-label") || "Skip", c = this.getAttribute("finish-label") || "Finish";
4425
- return `${t > 0 ? `<button type="button" class="btn btn-secondary" data-nav="back"${r}>${K("arrow-left", { className: "me-2" })}${Ot(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${Ot(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${Ot(o)}${K("arrow-right", { className: "ms-2" })}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${Ot(c)}</button>`}</span>`;
4448
+ return `${t > 0 ? `<button type="button" class="btn btn-secondary" data-nav="back"${r}>${K("arrow-left", { className: "me-2" })}${At(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${At(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${At(o)}${K("arrow-right", { className: "ms-2" })}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${At(c)}</button>`}</span>`;
4426
4449
  }
4427
4450
  _wire() {
4428
4451
  this._teardown(), this._onHeaderClick = (e) => {
@@ -4490,7 +4513,7 @@ var dt = class extends HTMLElement {
4490
4513
  _reflectActive(e) {
4491
4514
  this._reflecting = !0, this.setAttribute("active", String(e)), this._reflecting = !1;
4492
4515
  }
4493
- }, Ot = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), kt = class extends HTMLElement {
4516
+ }, At = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), jt = class extends HTMLElement {
4494
4517
  static get observedAttributes() {
4495
4518
  return [
4496
4519
  "label",
@@ -4504,14 +4527,14 @@ var dt = class extends HTMLElement {
4504
4527
  let e = this.closest("wui-wizard");
4505
4528
  e && typeof e.refresh == "function" && e.refresh();
4506
4529
  }
4507
- }, At = "image/png,image/jpeg,image/webp", jt = {
4530
+ }, Mt = "image/png,image/jpeg,image/webp", Nt = {
4508
4531
  "image/png": [".png"],
4509
4532
  "image/jpeg": [".jpg", ".jpeg"],
4510
4533
  "image/webp": [".webp"],
4511
4534
  "image/gif": [".gif"],
4512
4535
  "image/svg+xml": [".svg"],
4513
4536
  "application/pdf": [".pdf"]
4514
- }, Mt = {
4537
+ }, Pt = {
4515
4538
  "image/png": "PNG",
4516
4539
  "image/jpeg": "JPG",
4517
4540
  "image/webp": "WEBP",
@@ -4525,7 +4548,7 @@ var dt = class extends HTMLElement {
4525
4548
  ".gif": "GIF",
4526
4549
  ".svg": "SVG",
4527
4550
  ".pdf": "PDF"
4528
- }, Nt = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), Pt = [
4551
+ }, Ft = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), It = [
4529
4552
  ".png",
4530
4553
  ".jpg",
4531
4554
  ".jpeg",
@@ -4536,46 +4559,46 @@ var dt = class extends HTMLElement {
4536
4559
  ".avif",
4537
4560
  ".heic"
4538
4561
  ];
4539
- function Ft(e) {
4562
+ function Lt(e) {
4540
4563
  if (!e) return !1;
4541
4564
  let t = typeof e == "object" && e.type ? String(e.type).toLowerCase() : "";
4542
4565
  if (t) return t.startsWith("image/");
4543
4566
  let n = typeof e == "string" ? e : e.name || e.url || "", r = String(n).toLowerCase();
4544
- return Pt.some((e) => r.endsWith(e));
4567
+ return It.some((e) => r.endsWith(e));
4545
4568
  }
4546
- function It(e) {
4547
- let t = Nt(e);
4548
- return t.length ? t.every((e) => e.startsWith(".") ? Pt.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
4569
+ function Rt(e) {
4570
+ let t = Ft(e);
4571
+ return t.length ? t.every((e) => e.startsWith(".") ? It.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
4549
4572
  }
4550
- function Lt(e) {
4573
+ function zt(e) {
4551
4574
  let t = [];
4552
- for (let n of Nt(e)) {
4553
- let e = Mt[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
4575
+ for (let n of Ft(e)) {
4576
+ let e = Pt[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
4554
4577
  t.includes(e) || t.push(e);
4555
4578
  }
4556
4579
  return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
4557
4580
  }
4558
- function Rt(e, t) {
4559
- let n = Nt(t);
4581
+ function Bt(e, t) {
4582
+ let n = Ft(t);
4560
4583
  if (!n.length) return !0;
4561
4584
  let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
4562
- return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (jt[e] || []).some((e) => i.endsWith(e)));
4585
+ return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (Nt[e] || []).some((e) => i.endsWith(e)));
4563
4586
  }
4564
- function zt(e, t = {}) {
4587
+ function Vt(e, t = {}) {
4565
4588
  if (!e) return null;
4566
- let n = t.accept === void 0 ? At : t.accept, r = t.maxSizeMb || 5;
4567
- return Rt(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${Lt(n)} file.`;
4589
+ let n = t.accept === void 0 ? Mt : t.accept, r = t.maxSizeMb || 5;
4590
+ return Bt(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${zt(n)} file.`;
4568
4591
  }
4569
4592
  var X = (e, t) => {
4570
4593
  typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
4571
4594
  };
4572
- function Bt() {
4573
- X("wui-select", pt), X("wui-phone", dt), X("wui-datepicker", Ge), X("wui-date-range", Ke), X("wui-dock", qe), X("wui-slider", ht), X("wui-timepicker", Tt), X("wui-autocomplete", Fe), X("wui-multiselect", Ye), X("wui-taginput", vt), X("wui-otp", et), X("wui-status-icon", we), X("wui-wizard-step", kt), X("wui-wizard", Dt);
4595
+ function Ht() {
4596
+ X("wui-select", ht), X("wui-phone", pt), X("wui-datepicker", qe), X("wui-date-range", Je), X("wui-dock", Ye), X("wui-slider", _t), X("wui-timepicker", Dt), X("wui-autocomplete", Le), X("wui-multiselect", Ze), X("wui-taginput", bt), X("wui-otp", nt), X("wui-status-icon", we), X("wui-wizard-step", jt), X("wui-wizard", kt);
4574
4597
  }
4575
- Bt();
4598
+ Ht();
4576
4599
  //#endregion
4577
4600
  //#region src/components/AppPopover.jsx
4578
- function Vt({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
4601
+ function Ut({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
4579
4602
  N("AppPopover", l);
4580
4603
  let u = s(), [f, h] = d(!1), g = (e) => {
4581
4604
  h(e), o?.(e);
@@ -4610,13 +4633,13 @@ function Vt({ trigger: e, children: t, title: r, placement: i = "bottom", trigge
4610
4633
  }
4611
4634
  //#endregion
4612
4635
  //#region src/components/AppInfoTip.jsx
4613
- function Ht({ label: e, children: t, placement: n = "auto", className: r = "", ...i }) {
4636
+ function Wt({ label: e, children: t, placement: n = "auto", className: r = "", ...i }) {
4614
4637
  N("AppInfoTip", i);
4615
4638
  let [a, o] = d(!1), s = !!e;
4616
4639
  return !s && !t ? null : /* @__PURE__ */ p("span", {
4617
4640
  className: `infotip${r ? ` ${r}` : ""}`,
4618
4641
  ...i,
4619
- children: /* @__PURE__ */ p(Vt, {
4642
+ children: /* @__PURE__ */ p(Ut, {
4620
4643
  trigger: /* @__PURE__ */ p("button", {
4621
4644
  type: "button",
4622
4645
  className: "infotip-btn",
@@ -4646,8 +4669,8 @@ function Z() {
4646
4669
  }
4647
4670
  //#endregion
4648
4671
  //#region src/components/useWuiControl.js
4649
- function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: s = Ut, on: c, syncDeps: l = [] } = {}) {
4650
- let d = u(null), f = r ?? Wt, p = i ?? Gt, m = (s || Ut).join("\0"), h = Object.keys(c ?? {}).join("\0"), g = u({});
4672
+ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: s = Gt, on: c, syncDeps: l = [] } = {}) {
4673
+ let d = u(null), f = r ?? Kt, p = i ?? qt, m = (s || Gt).join("\0"), h = Object.keys(c ?? {}).join("\0"), g = u({});
4651
4674
  g.current = {
4652
4675
  ref: e,
4653
4676
  value: t,
@@ -4665,7 +4688,7 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
4665
4688
  _.current = null;
4666
4689
  }
4667
4690
  }, []), y = a((e) => {
4668
- let t = g.current.eventKey ? g.current.eventKey.split("\0") : Ut, n = Object.keys(g.current.on ?? {}), r = {
4691
+ let t = g.current.eventKey ? g.current.eventKey.split("\0") : Gt, n = Object.keys(g.current.on ?? {}), r = {
4669
4692
  el: e,
4670
4693
  names: t,
4671
4694
  extraNames: n,
@@ -4692,7 +4715,7 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
4692
4715
  ...l
4693
4716
  ]), o(() => {
4694
4717
  let e = d.current, t = _.current;
4695
- !e || !t || (t.names.join("\0") !== (m || Ut.join("\0")) || t.extraNames.join("\0") !== h) && (v(), y(e));
4718
+ !e || !t || (t.names.join("\0") !== (m || Gt.join("\0")) || t.extraNames.join("\0") !== h) && (v(), y(e));
4696
4719
  }, [
4697
4720
  m,
4698
4721
  h,
@@ -4703,39 +4726,39 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
4703
4726
  innerRef: d
4704
4727
  };
4705
4728
  }
4706
- var Ut = ["change"];
4707
- function Wt(e) {
4729
+ var Gt = ["change"];
4730
+ function Kt(e) {
4708
4731
  return e.value;
4709
4732
  }
4710
- function Gt(e, t) {
4733
+ function qt(e, t) {
4711
4734
  let n = t ?? "";
4712
4735
  String(e.value ?? "") !== String(n) && (e.value = n);
4713
4736
  }
4714
- function Kt(e, t) {
4737
+ function Jt(e, t) {
4715
4738
  let n = e || [], r = t || [];
4716
4739
  return n.length === r.length && n.every((e, t) => e?.value === r[t]?.value && e?.label === r[t]?.label);
4717
4740
  }
4718
- function qt(e) {
4741
+ function Yt(e) {
4719
4742
  return e.values;
4720
4743
  }
4721
- function Jt(e, t) {
4744
+ function Xt(e, t) {
4722
4745
  let n = t || [], r = e.values || [];
4723
4746
  (n.length !== r.length || !n.every((e, t) => e === r[t])) && (e.values = n);
4724
4747
  }
4725
- function Yt(e) {
4748
+ function Zt(e) {
4726
4749
  return {
4727
4750
  start: e.start,
4728
4751
  end: e.end
4729
4752
  };
4730
4753
  }
4731
- function Xt(e, t) {
4754
+ function Qt(e, t) {
4732
4755
  if (t === void 0) return;
4733
4756
  let n = Number.parseFloat(t);
4734
4757
  Number.isFinite(n) && e.value !== n && (e.value = n);
4735
4758
  }
4736
4759
  //#endregion
4737
4760
  //#region src/components/AppAutocomplete.jsx
4738
- var Zt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeholder: i = "Search…", minChars: a, debounce: c, disabled: l = !1, size: u, allowCustom: d = !1, name: f, label: h, error: g, hint: _, required: v = !1, help: y, helpLabel: b = "More information", fieldClassName: x = "", ...S }, C) {
4761
+ var $t = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeholder: i = "Search…", minChars: a, debounce: c, disabled: l = !1, size: u, allowCustom: d = !1, name: f, label: h, error: g, hint: _, required: v = !1, help: y, helpLabel: b = "More information", fieldClassName: x = "", ...S }, C) {
4739
4762
  N("AppAutocomplete", S);
4740
4763
  let w = typeof r == "function", T = s(), E = f || T, { setRef: D, innerRef: O } = Q({
4741
4764
  ref: C,
@@ -4784,7 +4807,7 @@ var Zt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4784
4807
  children: [
4785
4808
  h,
4786
4809
  v && /* @__PURE__ */ p(Z, {}),
4787
- y && /* @__PURE__ */ p(Ht, {
4810
+ y && /* @__PURE__ */ p(Wt, {
4788
4811
  label: b,
4789
4812
  children: y
4790
4813
  })
@@ -4818,14 +4841,14 @@ var Zt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4818
4841
  }) : null
4819
4842
  ]
4820
4843
  });
4821
- }), Qt = /* @__PURE__ */ new Set([
4844
+ }), en = /* @__PURE__ */ new Set([
4822
4845
  "xs",
4823
4846
  "sm",
4824
4847
  "md",
4825
4848
  "lg",
4826
4849
  "xl",
4827
4850
  "2xl"
4828
- ]), $t = {
4851
+ ]), tn = {
4829
4852
  xs: 20,
4830
4853
  sm: 24,
4831
4854
  md: 32,
@@ -4833,30 +4856,30 @@ var Zt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4833
4856
  xl: 64,
4834
4857
  "2xl": 96
4835
4858
  };
4836
- function en(e) {
4859
+ function nn(e) {
4837
4860
  let t = (e || "").trim();
4838
4861
  if (!t) return "?";
4839
4862
  let n = t.split(/\s+/).filter(Boolean);
4840
4863
  return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
4841
4864
  }
4842
- function tn(e) {
4865
+ function rn(e) {
4843
4866
  let t = e || "", n = 0;
4844
4867
  for (let e = 0; e < t.length; e += 1) n = Math.imul(n, 31) + t.charCodeAt(e) >>> 0;
4845
4868
  return n % 360;
4846
4869
  }
4847
- function nn(e) {
4870
+ function an(e) {
4848
4871
  if (typeof e == "number") return e;
4849
- if ($t[e] != null) return $t[e];
4872
+ if (tn[e] != null) return tn[e];
4850
4873
  let t = Number.parseInt(e, 10);
4851
4874
  return Number.isNaN(t) ? 32 : t;
4852
4875
  }
4853
- function rn({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "primary", status: a = "none", ring: s = !1, label: c, icon: l, badge: u, href: h, onClick: g, linkComponent: _, className: v = "", ...y }) {
4876
+ function on({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "primary", status: a = "none", ring: s = !1, label: c, icon: l, badge: u, href: h, onClick: g, linkComponent: _, className: v = "", ...y }) {
4854
4877
  N("AppAvatar", y);
4855
4878
  let { style: b, ...x } = y, [S, C] = d(!1);
4856
4879
  o(() => {
4857
4880
  C(!1);
4858
4881
  }, [t]);
4859
- let w = typeof n == "string" && Qt.has(n), T = w ? null : typeof n == "number" || /^\d+$/.test(n) ? `${n}px` : n, E = h != null || g != null, D = t != null && t !== "" && !S, O = [
4882
+ let w = typeof n == "string" && en.has(n), T = w ? null : typeof n == "number" || /^\d+$/.test(n) ? `${n}px` : n, E = h != null || g != null, D = t != null && t !== "" && !S, O = [
4860
4883
  "avatar",
4861
4884
  w && n !== "md" ? `avatar-${n}` : "",
4862
4885
  r === "circle" ? "" : `avatar-${r}`,
@@ -4865,16 +4888,16 @@ function rn({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
4865
4888
  E ? "avatar-clickable" : "",
4866
4889
  v
4867
4890
  ].filter(Boolean).join(" "), k = {};
4868
- T && (k["--avatar-size"] = T), i === "auto" && (k["--avatar-hue"] = tn(e));
4891
+ T && (k["--avatar-size"] = T), i === "auto" && (k["--avatar-hue"] = rn(e));
4869
4892
  let A = Object.keys(k).length || b ? {
4870
4893
  ...k,
4871
4894
  ...b
4872
4895
  } : void 0, j = /* @__PURE__ */ p("span", {
4873
4896
  className: "avatar-face",
4874
4897
  "aria-hidden": "true",
4875
- children: l == null ? en(e) : /* @__PURE__ */ p(V, {
4898
+ children: l == null ? nn(e) : /* @__PURE__ */ p(V, {
4876
4899
  name: l,
4877
- size: Math.round(nn(n) * .55)
4900
+ size: Math.round(an(n) * .55)
4878
4901
  })
4879
4902
  }), M = /* @__PURE__ */ m(f, { children: [
4880
4903
  a !== "none" && /* @__PURE__ */ p("span", {
@@ -4936,7 +4959,7 @@ function rn({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
4936
4959
  }
4937
4960
  //#endregion
4938
4961
  //#region src/components/AppAvatarGroup.jsx
4939
- var an = {
4962
+ var sn = {
4940
4963
  xs: 20,
4941
4964
  sm: 24,
4942
4965
  md: 32,
@@ -4944,16 +4967,16 @@ var an = {
4944
4967
  xl: 64,
4945
4968
  "2xl": 96
4946
4969
  };
4947
- function on(e) {
4948
- return e == null ? null : typeof e == "number" ? `${e}px` : an[e] == null ? /^\d+$/.test(e) ? `${e}px` : e : `${an[e]}px`;
4970
+ function cn(e) {
4971
+ return e == null ? null : typeof e == "number" ? `${e}px` : sn[e] == null ? /^\d+$/.test(e) ? `${e}px` : e : `${sn[e]}px`;
4949
4972
  }
4950
- function sn({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
4973
+ function ln({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
4951
4974
  N("AppAvatarGroup", a);
4952
4975
  let { style: o, ...s } = a, c = [
4953
4976
  "avatar-group",
4954
4977
  n === "normal" ? "" : `avatar-group-${n}`,
4955
4978
  i
4956
- ].filter(Boolean).join(" "), l = on(t), u = l ? {
4979
+ ].filter(Boolean).join(" "), l = cn(t), u = l ? {
4957
4980
  "--avatar-size": l,
4958
4981
  ...o
4959
4982
  } : o, d = typeof r == "string" ? Number.parseInt(r, 10) : r;
@@ -4971,7 +4994,7 @@ function sn({ children: e, size: t, spacing: n = "normal", overflow: r, classNam
4971
4994
  }
4972
4995
  //#endregion
4973
4996
  //#region src/components/AppBadge.jsx
4974
- function cn({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4997
+ function un({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4975
4998
  return N("AppBadge", i), /* @__PURE__ */ p(g, {
4976
4999
  bg: !1,
4977
5000
  className: [
@@ -4985,18 +5008,18 @@ function cn({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4985
5008
  }
4986
5009
  //#endregion
4987
5010
  //#region src/components/AppBanner.jsx
4988
- var ln = [
5011
+ var dn = [
4989
5012
  "info",
4990
5013
  "success",
4991
5014
  "warning",
4992
5015
  "danger",
4993
5016
  "neutral"
4994
5017
  ];
4995
- function un({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
5018
+ function fn({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
4996
5019
  N("AppBanner", o);
4997
5020
  let [s, c] = d(!0);
4998
5021
  if (!s) return null;
4999
- let l = ln.includes(e) ? e : "info", u = () => {
5022
+ let l = dn.includes(e) ? e : "info", u = () => {
5000
5023
  c(!1), i?.();
5001
5024
  };
5002
5025
  return /* @__PURE__ */ m("div", {
@@ -5027,7 +5050,7 @@ function un({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDis
5027
5050
  }
5028
5051
  //#endregion
5029
5052
  //#region src/components/AppBreadcrumbs.jsx
5030
- function dn({ items: e = [], linkComponent: t, className: n = "", ...r }) {
5053
+ function pn({ items: e = [], linkComponent: t, className: n = "", ...r }) {
5031
5054
  return N("AppBreadcrumbs", r), /* @__PURE__ */ p(_, {
5032
5055
  className: n || void 0,
5033
5056
  ...r,
@@ -5046,17 +5069,17 @@ function dn({ items: e = [], linkComponent: t, className: n = "", ...r }) {
5046
5069
  }
5047
5070
  //#endregion
5048
5071
  //#region src/components/AppCallout.jsx
5049
- var fn = {
5072
+ var mn = {
5050
5073
  info: "info",
5051
5074
  success: "check",
5052
5075
  warning: "alert-triangle",
5053
5076
  danger: "x"
5054
5077
  };
5055
- function pn({ children: e, tone: t = "info", title: n, icon: r, image: i, imageAlt: a = "", size: o = "md", bordered: s = !0, action: c, dismissible: l = !1, onDismiss: u, className: f = "", ...h }) {
5078
+ function hn({ children: e, tone: t = "info", title: n, icon: r, image: i, imageAlt: a = "", size: o = "md", bordered: s = !0, action: c, dismissible: l = !1, onDismiss: u, className: f = "", ...h }) {
5056
5079
  N("AppCallout", h);
5057
5080
  let [g, _] = d(!0);
5058
5081
  if (!g) return null;
5059
- let v = r === void 0 ? fn[t] : r === "none" ? null : r, y = !!i, b = y || !!v, x = b && !!n && e != null && e !== !1 && e !== "", S = x ? 13 : 11;
5082
+ let v = r === void 0 ? mn[t] : r === "none" ? null : r, y = !!i, b = y || !!v, x = b && !!n && e != null && e !== !1 && e !== "", S = x ? 13 : 11;
5060
5083
  return /* @__PURE__ */ m("div", {
5061
5084
  className: [
5062
5085
  "info-callout",
@@ -5106,13 +5129,13 @@ function pn({ children: e, tone: t = "info", title: n, icon: r, image: i, imageA
5106
5129
  }
5107
5130
  //#endregion
5108
5131
  //#region src/components/AppCard.jsx
5109
- var mn = {
5132
+ var gn = {
5110
5133
  xs: 320,
5111
5134
  sm: 420,
5112
5135
  md: 560,
5113
5136
  lg: 720
5114
5137
  };
5115
- function hn({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", header: i, headerExtra: a, headerActions: o, footer: s, media: c, children: l, variant: u = "default", tone: d = "primary", padding: h = "md", maxWidth: g, className: _ = "", bodyClassName: v = "", headerClassName: b = "", body: x = !0, lifted: S = !1, href: C, onClick: w, linkComponent: T, ...E }) {
5138
+ function _n({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", header: i, headerExtra: a, headerActions: o, footer: s, media: c, children: l, variant: u = "default", tone: d = "primary", padding: h = "md", maxWidth: g, className: _ = "", bodyClassName: v = "", headerClassName: b = "", body: x = !0, lifted: S = !1, href: C, onClick: w, linkComponent: T, ...E }) {
5116
5139
  N("AppCard", E);
5117
5140
  let { style: D, ...O } = E, k = C != null || w != null, A = [
5118
5141
  u && u !== "default" ? `card-${u}` : "",
@@ -5122,7 +5145,7 @@ function hn({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
5122
5145
  g == null ? "" : "card-constrained",
5123
5146
  k ? "card-clickable" : "",
5124
5147
  _
5125
- ].filter(Boolean).join(" ") || void 0, j = g == null ? void 0 : mn[g] == null ? typeof g == "number" ? `${g}px` : g : `${mn[g]}px`, M = j ? {
5148
+ ].filter(Boolean).join(" ") || void 0, j = g == null ? void 0 : gn[g] == null ? typeof g == "number" ? `${g}px` : g : `${gn[g]}px`, M = j ? {
5126
5149
  "--card-max-width": j,
5127
5150
  ...D
5128
5151
  } : D, P = {};
@@ -5193,7 +5216,7 @@ function hn({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
5193
5216
  }
5194
5217
  //#endregion
5195
5218
  //#region src/lib/CheckField.jsx
5196
- var gn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", rest: o = {}, inputType: c, wrapperClass: l }, u) {
5219
+ var vn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", rest: o = {}, inputType: c, wrapperClass: l }, u) {
5197
5220
  let d = s(), f = t || d;
5198
5221
  return /* @__PURE__ */ m("div", {
5199
5222
  className: `${l}${a ? ` ${a}` : ""}`,
@@ -5221,8 +5244,8 @@ var gn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
5221
5244
  }) : null
5222
5245
  ]
5223
5246
  });
5224
- }), _n = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
5225
- return N("AppCheckbox", o), /* @__PURE__ */ p(gn, {
5247
+ }), yn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
5248
+ return N("AppCheckbox", o), /* @__PURE__ */ p(vn, {
5226
5249
  ref: s,
5227
5250
  label: e,
5228
5251
  id: t,
@@ -5237,7 +5260,7 @@ var gn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
5237
5260
  });
5238
5261
  //#endregion
5239
5262
  //#region src/components/AppChip.jsx
5240
- function vn({ label: e, children: t, tone: n = "neutral", variant: r = "soft", size: i = "md", leadingIcon: a, avatar: o, onRemove: s, onClick: c, disabled: l = !1, removeLabel: u, className: d = "", ...h }) {
5263
+ function bn({ label: e, children: t, tone: n = "neutral", variant: r = "soft", size: i = "md", leadingIcon: a, avatar: o, onRemove: s, onClick: c, disabled: l = !1, removeLabel: u, className: d = "", ...h }) {
5241
5264
  N("AppChip", h);
5242
5265
  let g = e ?? t, _ = [
5243
5266
  "chip",
@@ -5291,7 +5314,7 @@ function vn({ label: e, children: t, tone: n = "neutral", variant: r = "soft", s
5291
5314
  }
5292
5315
  //#endregion
5293
5316
  //#region src/components/AppChoiceCard.jsx
5294
- function yn({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon: a, iconNode: o, iconSize: s = 18, image: c, imageAlt: l = "", children: u, title: d, description: h, checkIcon: g = "check", checkSize: _ = 18, className: v = "", ...y }) {
5317
+ function xn({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon: a, iconNode: o, iconSize: s = 18, image: c, imageAlt: l = "", children: u, title: d, description: h, checkIcon: g = "check", checkSize: _ = 18, className: v = "", ...y }) {
5295
5318
  return N("AppChoiceCard", y), /* @__PURE__ */ m("label", {
5296
5319
  className: `struct-card${c ? " struct-card-img-card" : ""}${r ? " checked" : ""}${v ? ` ${v}` : ""}`,
5297
5320
  ...y,
@@ -5340,7 +5363,7 @@ function yn({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
5340
5363
  }
5341
5364
  //#endregion
5342
5365
  //#region src/components/AppChoiceChip.jsx
5343
- function bn({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, size: c = "md", className: l = "", ...u }) {
5366
+ function Sn({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, size: c = "md", className: l = "", ...u }) {
5344
5367
  return N("AppChoiceChip", u), /* @__PURE__ */ m("label", {
5345
5368
  className: `choice-chip${i ? " checked" : ""}${c === "sm" ? " choice-chip-sm" : c === "lg" ? " choice-chip-lg" : ""}${l ? ` ${l}` : ""}`,
5346
5369
  ...u,
@@ -5362,7 +5385,7 @@ function bn({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChang
5362
5385
  }
5363
5386
  //#endregion
5364
5387
  //#region src/components/AppColorField.jsx
5365
- function xn({ value: e = "#000000", onChange: t, label: n, required: r = !1, error: i, hint: a, name: o, id: c, disabled: l = !1, size: u = "md", className: d = "", ...f }) {
5388
+ function Cn({ value: e = "#000000", onChange: t, label: n, required: r = !1, error: i, hint: a, name: o, id: c, disabled: l = !1, size: u = "md", className: d = "", ...f }) {
5366
5389
  N("AppColorField", f);
5367
5390
  let h = s(), g = c || h, _ = (e) => /^#[0-9a-f]{6}$/i.test(e), v = u === "sm" ? " color-field-sm" : u === "lg" ? " color-field-lg" : "", y = u === "sm" ? " input-sm" : u === "lg" ? " input-lg" : "";
5368
5391
  return /* @__PURE__ */ m("div", {
@@ -5411,7 +5434,7 @@ function xn({ value: e = "#000000", onChange: t, label: n, required: r = !1, err
5411
5434
  }
5412
5435
  //#endregion
5413
5436
  //#region src/components/AppCompareTable.jsx
5414
- function Sn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
5437
+ function wn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
5415
5438
  N("AppCompareTable", i);
5416
5439
  let a = (e) => e === !0 ? /* @__PURE__ */ p("span", {
5417
5440
  className: "compare-yes",
@@ -5448,66 +5471,81 @@ function Sn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i
5448
5471
  }
5449
5472
  //#endregion
5450
5473
  //#region src/components/AppInput.jsx
5451
- var Cn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", type: c = "text", size: l = "md", leftIcon: f, rightIcon: h, onRightIconClick: g, rightIconLabel: _, unit: v, id: y, name: b, className: S = "", fieldClassName: C = "", disabled: w = !1, clearable: T = !1, showCount: E = !1, maxLength: D, prefix: O, suffix: k, floatingLabel: A = !1, variant: j, ...M }, P) {
5452
- N("AppInput", M);
5453
- let [F, I] = d(!1), L = s(), R = y || L, z = c === "password", ee = z && F ? "text" : c, B = u(null), te = (e) => {
5454
- B.current = e, typeof P == "function" ? P(e) : P && (P.current = e);
5455
- }, ne = String(M.value ?? M.defaultValue ?? ""), [re, ie] = d(() => !!ne), [ae, oe] = d(() => ne.length), se = T && !w, ce = T || E;
5474
+ var Tn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", type: c = "text", size: l = "md", leftIcon: f, rightIcon: h, onRightIconClick: g, rightIconLabel: _, unit: v, id: y, name: b, className: S = "", fieldClassName: C = "", disabled: w = !1, clearable: T = !1, showCount: E = !1, maxLength: D, prefix: O, suffix: k, action: A, floatingLabel: j = !1, variant: M, ...P }, F) {
5475
+ N("AppInput", P);
5476
+ let [I, L] = d(!1), ee = s(), R = y || ee, z = c === "password", B = z && I ? "text" : c, te = u(null), ne = (e) => {
5477
+ te.current = e, typeof F == "function" ? F(e) : F && (F.current = e);
5478
+ }, re = String(P.value ?? P.defaultValue ?? ""), [ie, ae] = d(() => !!re), [oe, se] = d(() => re.length), ce = T && !w, le = T || E;
5456
5479
  o(() => {
5457
- if (!ce || M.value === void 0) return;
5458
- let e = String(M.value ?? "");
5459
- ie(!!e), oe(e.length);
5460
- }, [M.value, ce]);
5461
- let le = (e) => {
5462
- ie(!!e.target.value), oe(e.target.value.length), M.onInput?.(e);
5463
- }, ue = se ? /* @__PURE__ */ p("button", {
5480
+ if (!le || P.value === void 0) return;
5481
+ let e = String(P.value ?? "");
5482
+ ae(!!e), se(e.length);
5483
+ }, [P.value, le]);
5484
+ let ue = (e) => {
5485
+ ae(!!e.target.value), se(e.target.value.length), P.onInput?.(e);
5486
+ }, H = ce ? /* @__PURE__ */ p("button", {
5464
5487
  type: "button",
5465
5488
  className: "input-clear",
5466
5489
  onClick: () => {
5467
- let e = B.current;
5490
+ let e = te.current;
5468
5491
  if (!e) return;
5469
5492
  let t = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set;
5470
- t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })), ie(!1), e.focus();
5493
+ t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })), ae(!1), e.focus();
5471
5494
  },
5472
5495
  "aria-label": "Clear",
5473
5496
  tabIndex: -1,
5474
- hidden: !re,
5497
+ hidden: !ie,
5475
5498
  children: /* @__PURE__ */ p(V, {
5476
5499
  name: "x",
5477
5500
  size: 16
5478
5501
  })
5479
- }) : null, H = n && R ? `${R}-error` : void 0, de = r && R ? `${R}-hint` : void 0, fe = H || de, pe = [
5502
+ }) : null, de = n && R ? `${R}-error` : void 0, fe = r && R ? `${R}-hint` : void 0, pe = de || fe, me = [
5480
5503
  "input",
5481
5504
  l === "sm" ? "input-sm" : "",
5482
5505
  l === "lg" ? "input-lg" : "",
5483
5506
  n ? "error" : "",
5484
5507
  z ? "pw" : "",
5485
5508
  v ? "num-input" : "",
5486
- !(A && e || O || k || v || z || h) && T && se ? "has-clear" : "",
5487
- j === "bare" ? "input-bare" : "",
5509
+ !(j && e || O || k || v || z || h) && T && ce ? "has-clear" : "",
5510
+ M === "bare" ? "input-bare" : "",
5488
5511
  S
5489
5512
  ].filter(Boolean).join(" "), U = /* @__PURE__ */ p(x.Control, {
5490
5513
  id: R,
5491
5514
  name: b,
5492
- type: ee,
5493
- className: pe,
5515
+ type: B,
5516
+ className: me,
5494
5517
  disabled: w,
5495
5518
  required: t,
5496
5519
  "aria-invalid": n ? "true" : "false",
5497
- "aria-describedby": fe,
5520
+ "aria-describedby": pe,
5498
5521
  maxLength: D,
5499
- ...M,
5500
- placeholder: A ? " " : M.placeholder,
5501
- ref: te,
5502
- onInput: ce ? le : M.onInput
5503
- }), me;
5504
- return me = A && e ? /* @__PURE__ */ m("div", {
5522
+ ...P,
5523
+ placeholder: j ? " " : P.placeholder,
5524
+ ref: ne,
5525
+ onInput: le ? ue : P.onInput
5526
+ }), he;
5527
+ return he = j && e ? /* @__PURE__ */ m("div", {
5505
5528
  className: "field-float",
5506
5529
  children: [U, /* @__PURE__ */ m("label", {
5507
5530
  className: "float-label",
5508
5531
  htmlFor: R,
5509
5532
  children: [e, t && /* @__PURE__ */ p(Z, {})]
5510
5533
  })]
5534
+ }) : A ? /* @__PURE__ */ m("div", {
5535
+ className: "input-action-row",
5536
+ children: [/* @__PURE__ */ m("div", {
5537
+ className: f ? "input-icon" : "input-wrap",
5538
+ children: [f && /* @__PURE__ */ p("span", {
5539
+ className: "ic",
5540
+ children: /* @__PURE__ */ p(V, {
5541
+ name: f,
5542
+ size: 16
5543
+ })
5544
+ }), U]
5545
+ }), /* @__PURE__ */ p("div", {
5546
+ className: "input-action",
5547
+ children: A
5548
+ })]
5511
5549
  }) : O || k ? /* @__PURE__ */ m("div", {
5512
5550
  className: "input-affixed",
5513
5551
  children: [
@@ -5541,11 +5579,11 @@ var Cn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5541
5579
  /* @__PURE__ */ p("button", {
5542
5580
  type: "button",
5543
5581
  className: "pw-toggle",
5544
- onClick: () => I((e) => !e),
5545
- "aria-label": F ? "Hide password" : "Show password",
5582
+ onClick: () => L((e) => !e),
5583
+ "aria-label": I ? "Hide password" : "Show password",
5546
5584
  tabIndex: -1,
5547
5585
  children: /* @__PURE__ */ p(V, {
5548
- name: F ? "eye-off" : "eye",
5586
+ name: I ? "eye-off" : "eye",
5549
5587
  size: 18
5550
5588
  })
5551
5589
  })
@@ -5575,7 +5613,7 @@ var Cn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5575
5613
  })
5576
5614
  }),
5577
5615
  U,
5578
- ue
5616
+ H
5579
5617
  ]
5580
5618
  }) : f ? /* @__PURE__ */ m("div", {
5581
5619
  className: "input-icon",
@@ -5589,62 +5627,62 @@ var Cn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5589
5627
  }) : U, /* @__PURE__ */ m(x.Group, {
5590
5628
  className: `field${C ? ` ${C}` : ""}`,
5591
5629
  children: [
5592
- e && !A && /* @__PURE__ */ m(x.Label, {
5630
+ e && !j && /* @__PURE__ */ m(x.Label, {
5593
5631
  className: "label",
5594
5632
  htmlFor: R,
5595
5633
  children: [
5596
5634
  e,
5597
5635
  t && /* @__PURE__ */ p(Z, {}),
5598
- i && /* @__PURE__ */ p(Ht, {
5636
+ i && /* @__PURE__ */ p(Wt, {
5599
5637
  label: a,
5600
5638
  children: i
5601
5639
  })
5602
5640
  ]
5603
5641
  }),
5604
- me,
5642
+ he,
5605
5643
  n ? /* @__PURE__ */ p("div", {
5606
5644
  className: "field-error",
5607
- id: H,
5645
+ id: de,
5608
5646
  children: n
5609
5647
  }) : r ? /* @__PURE__ */ p("div", {
5610
5648
  className: "field-hint",
5611
- id: de,
5649
+ id: fe,
5612
5650
  children: r
5613
5651
  }) : null,
5614
5652
  E && /* @__PURE__ */ m("div", {
5615
- className: `field-count${D && ae >= D ? " at-limit" : ""}`,
5616
- children: [ae, D ? ` / ${D}` : ""]
5653
+ className: `field-count${D && oe >= D ? " at-limit" : ""}`,
5654
+ children: [oe, D ? ` / ${D}` : ""]
5617
5655
  })
5618
5656
  ]
5619
5657
  });
5620
- }), wn = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", Tn = {
5658
+ }), En = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", Dn = {
5621
5659
  sm: 380,
5622
5660
  md: 440,
5623
5661
  lg: 640,
5624
5662
  xl: 880
5625
- }, En = !1;
5626
- function Dn() {
5663
+ }, On = !1;
5664
+ function kn() {
5627
5665
  let e = !0;
5628
5666
  try {
5629
5667
  e = process.env.NODE_ENV !== "production";
5630
5668
  } catch {
5631
5669
  e = !0;
5632
5670
  }
5633
- !e || En || (En = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
5671
+ !e || On || (On = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
5634
5672
  }
5635
- function On({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a = "default", dismissible: s = !0, onClose: c, footer: l, size: d = "md", placement: f = "center", hideHeader: h = !1, staticBackdrop: g = !1, ariaLabel: _, className: v = "", children: y, ...b }) {
5636
- N("AppModal", b), W("AppModal", "size", typeof d == "string" ? d : null, Object.keys(Tn));
5673
+ function An({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a = "default", dismissible: s = !0, onClose: c, footer: l, size: d = "md", placement: f = "center", hideHeader: h = !1, staticBackdrop: g = !1, ariaLabel: _, className: v = "", children: y, ...b }) {
5674
+ N("AppModal", b), W("AppModal", "size", typeof d == "string" ? d : null, Object.keys(Dn));
5637
5675
  let { style: x, ...C } = b;
5638
- h && !_ && typeof n != "string" && Dn();
5676
+ h && !_ && typeof n != "string" && kn();
5639
5677
  let w = u(null);
5640
5678
  o(() => {
5641
5679
  if (!e) return;
5642
5680
  let t = w.current?.closest(".modal-content");
5643
5681
  if (!t) return;
5644
- let n = () => Array.from(t.querySelectorAll(wn));
5682
+ let n = () => Array.from(t.querySelectorAll(En));
5645
5683
  (t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("wui-modal-close")) || n()[0] || t).focus?.();
5646
5684
  }, [e]);
5647
- let T = typeof d == "number" ? d : Tn[d] ?? Tn.md, E = [
5685
+ let T = typeof d == "number" ? d : Dn[d] ?? Dn.md, E = [
5648
5686
  "wui-modal",
5649
5687
  a === "default" ? "" : `tone-${a}`,
5650
5688
  v
@@ -5729,30 +5767,30 @@ function On({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a
5729
5767
  }
5730
5768
  //#endregion
5731
5769
  //#region src/components/ModalIcons.jsx
5732
- var kn = (e) => function({ size: t = 72 }) {
5770
+ var jn = (e) => function({ size: t = 72 }) {
5733
5771
  return /* @__PURE__ */ p("wui-status-icon", {
5734
5772
  tone: e,
5735
5773
  size: t
5736
5774
  });
5737
- }, An = {
5738
- success: kn("success"),
5739
- error: kn("error"),
5740
- warning: kn("warning"),
5741
- info: kn("info"),
5742
- delete: kn("delete")
5775
+ }, Mn = {
5776
+ success: jn("success"),
5777
+ error: jn("error"),
5778
+ warning: jn("warning"),
5779
+ info: jn("info"),
5780
+ delete: jn("delete")
5743
5781
  };
5744
5782
  //#endregion
5745
5783
  //#region src/components/AppConfirmDialog.jsx
5746
- function jn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", danger: a = !1, tone: s, confirmPhrase: c, onConfirm: l, onClose: u, loading: h = !1, staticBackdrop: g = !1, placement: _ = "center", className: v = "", ...y }) {
5784
+ function Nn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", danger: a = !1, tone: s, confirmPhrase: c, onConfirm: l, onClose: u, loading: h = !1, staticBackdrop: g = !1, placement: _ = "center", className: v = "", ...y }) {
5747
5785
  N("AppConfirmDialog", y);
5748
5786
  let [b, x] = d("");
5749
5787
  if (o(() => {
5750
5788
  e || x("");
5751
5789
  }, [e]), !e) return null;
5752
- let S = !!c && b.trim() !== c, C = An[s || (a ? "delete" : "info")], w = () => {
5790
+ let S = !!c && b.trim() !== c, C = Mn[s || (a ? "delete" : "info")], w = () => {
5753
5791
  h || u?.();
5754
5792
  };
5755
- return /* @__PURE__ */ p(On, {
5793
+ return /* @__PURE__ */ p(An, {
5756
5794
  ...y,
5757
5795
  open: e,
5758
5796
  hideHeader: !0,
@@ -5793,7 +5831,7 @@ function jn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
5793
5831
  className: "wui-confirm-msg",
5794
5832
  children: n
5795
5833
  }),
5796
- c && /* @__PURE__ */ p(Cn, {
5834
+ c && /* @__PURE__ */ p(Tn, {
5797
5835
  fieldClassName: "mt-3 mb-0 w-100 text-start",
5798
5836
  label: /* @__PURE__ */ m(f, { children: [
5799
5837
  "Type ",
@@ -5811,13 +5849,13 @@ function jn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
5811
5849
  }
5812
5850
  //#endregion
5813
5851
  //#region src/components/AppCopyButton.jsx
5814
- var Mn = {
5852
+ var Pn = {
5815
5853
  sm: 14,
5816
5854
  md: 16,
5817
5855
  lg: 20
5818
5856
  };
5819
- function Nn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: o = "ghost", onCopied: s, className: c = "", ...l }) {
5820
- N("AppCopyButton", l), W("AppCopyButton", "size", i, Object.keys(Mn));
5857
+ function Fn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: o = "ghost", onCopied: s, className: c = "", ...l }) {
5858
+ N("AppCopyButton", l), W("AppCopyButton", "size", i, Object.keys(Pn));
5821
5859
  let [u, f] = d(!1), m = a(async () => {
5822
5860
  try {
5823
5861
  if (navigator.clipboard?.writeText) {
@@ -5835,7 +5873,7 @@ function Nn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
5835
5873
  return r ? /* @__PURE__ */ p(de, {
5836
5874
  icon: g,
5837
5875
  label: h,
5838
- size: Mn[i] ?? Mn.md,
5876
+ size: Pn[i] ?? Pn.md,
5839
5877
  onClick: m,
5840
5878
  className: c,
5841
5879
  ...l
@@ -5852,7 +5890,7 @@ function Nn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
5852
5890
  }
5853
5891
  //#endregion
5854
5892
  //#region src/components/AppSkeleton.jsx
5855
- function Pn({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
5893
+ function In({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
5856
5894
  return N("AppSkeleton", a), /* @__PURE__ */ p("span", {
5857
5895
  className: `skeleton${r ? ` ${r}` : ""}`,
5858
5896
  "aria-hidden": "true",
@@ -5865,28 +5903,28 @@ function Pn({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "
5865
5903
  ...a
5866
5904
  });
5867
5905
  }
5868
- function Fn({ rows: e = 4, cols: t = 5 }) {
5869
- return Array.from({ length: e }).map((e, n) => /* @__PURE__ */ p("tr", { children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ p("td", { children: /* @__PURE__ */ p(Pn, {
5906
+ function Ln({ rows: e = 4, cols: t = 5 }) {
5907
+ return Array.from({ length: e }).map((e, n) => /* @__PURE__ */ p("tr", { children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ p("td", { children: /* @__PURE__ */ p(In, {
5870
5908
  width: t === 0 ? "70%" : "50%",
5871
5909
  height: 12
5872
5910
  }) }, `col-${t}`)) }, `row-${n}`));
5873
5911
  }
5874
5912
  //#endregion
5875
5913
  //#region src/lib/pageWindow.js
5876
- var In = (e, t) => {
5914
+ var Rn = (e, t) => {
5877
5915
  let n = [];
5878
5916
  for (let r = e; r <= t; r += 1) n.push(r);
5879
5917
  return n;
5880
5918
  };
5881
- function Ln(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
5919
+ function zn(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
5882
5920
  let i = Math.max(1, t), a = Math.min(Math.max(1, e), i);
5883
- if (i <= n * 2 + 3 + r * 2) return In(1, i);
5884
- let o = Math.max(a - n, r + 2), s = Math.min(a + n, i - r - 1), c = o > r + 2, l = s < i - r - 1, u = In(1, r);
5885
- return u.push(...c ? ["ellipsis-left"] : In(r + 1, o - 1)), u.push(...In(o, s)), u.push(...l ? ["ellipsis-right"] : In(s + 1, i - r)), u.push(...In(i - r + 1, i)), u;
5921
+ if (i <= n * 2 + 3 + r * 2) return Rn(1, i);
5922
+ let o = Math.max(a - n, r + 2), s = Math.min(a + n, i - r - 1), c = o > r + 2, l = s < i - r - 1, u = Rn(1, r);
5923
+ return u.push(...c ? ["ellipsis-left"] : Rn(r + 1, o - 1)), u.push(...Rn(o, s)), u.push(...l ? ["ellipsis-right"] : Rn(s + 1, i - r)), u.push(...Rn(i - r + 1, i)), u;
5886
5924
  }
5887
5925
  //#endregion
5888
5926
  //#region src/components/AppSelectMini.jsx
5889
- function Rn({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", name: i, ariaLabel: a, id: s, disabled: c, size: l, icon: u, prefix: d, className: f, ...m }) {
5927
+ function Bn({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", name: i, ariaLabel: a, id: s, disabled: c, size: l, icon: u, prefix: d, className: f, ...m }) {
5890
5928
  N("AppSelectMini", m);
5891
5929
  let { setRef: h, innerRef: g } = Q({
5892
5930
  value: e ?? "",
@@ -5900,7 +5938,7 @@ function Rn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5900
5938
  label: e.label ?? e.text ?? "",
5901
5939
  icon: e.icon
5902
5940
  }));
5903
- Kt(t, e.options) || (e.options = t);
5941
+ Jt(t, e.options) || (e.options = t);
5904
5942
  }, [n, g]), o(() => {
5905
5943
  let e = g.current;
5906
5944
  if (e) for (let [t, n] of [["icon", u], ["prefix", d]]) n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n);
@@ -5923,22 +5961,22 @@ function Rn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5923
5961
  }
5924
5962
  //#endregion
5925
5963
  //#region src/components/AppTablePagination.jsx
5926
- var zn = [
5964
+ var Vn = [
5927
5965
  5,
5928
5966
  10,
5929
5967
  25,
5930
5968
  50
5931
5969
  ];
5932
- function Bn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = zn, mode: l = "prev-next", showPageSize: u = !0, className: d = "", ...f }) {
5970
+ function Hn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = Vn, mode: l = "prev-next", showPageSize: u = !0, className: d = "", ...f }) {
5933
5971
  N("AppTablePagination", f);
5934
- let h = l === "numbered", g = h ? Ln(e, t) : null;
5972
+ let h = l === "numbered", g = h ? zn(e, t) : null;
5935
5973
  return /* @__PURE__ */ m("div", {
5936
5974
  className: `table-pagination${d ? ` ${d}` : ""}`,
5937
5975
  ...f,
5938
5976
  children: [
5939
5977
  u && /* @__PURE__ */ m("span", {
5940
5978
  className: "tpg-rows",
5941
- children: ["Rows per page:", /* @__PURE__ */ p(Rn, {
5979
+ children: ["Rows per page:", /* @__PURE__ */ p(Bn, {
5942
5980
  value: n,
5943
5981
  onChange: (e) => s(Number(e)),
5944
5982
  ariaLabel: "Rows per page",
@@ -6002,13 +6040,13 @@ function Bn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
6002
6040
  }
6003
6041
  //#endregion
6004
6042
  //#region src/components/AppDataTable.jsx
6005
- function Vn(e) {
6043
+ function Un(e) {
6006
6044
  return e === "end" ? "wui-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
6007
6045
  }
6008
- function Hn(e) {
6046
+ function Wn(e) {
6009
6047
  return e == null || e === "" ? "—" : typeof e == "boolean" ? String(e) : e;
6010
6048
  }
6011
- function Un({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a, loading: o = !1, skeletonRows: s = 5, empty: c = "No records found.", emptyFiltered: l, sourceCount: u, rowActions: h, rowActionsLabel: g, pagination: _, ariaLabel: v, className: y = "", wrapperClassName: b = "", selectable: x = !1, selectedIds: S, onToggleRow: C, onToggleAll: w, renderExpanded: T, ...E }) {
6049
+ function Gn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a, loading: o = !1, skeletonRows: s = 5, empty: c = "No records found.", emptyFiltered: l, sourceCount: u, rowActions: h, rowActionsLabel: g, pagination: _, ariaLabel: v, className: y = "", wrapperClassName: b = "", selectable: x = !1, selectedIds: S, onToggleRow: C, onToggleAll: w, renderExpanded: T, ...E }) {
6012
6050
  N("AppDataTable", E);
6013
6051
  let D = typeof T == "function", [O, k] = d(() => /* @__PURE__ */ new Set()), A = (e) => k((t) => {
6014
6052
  let n = new Set(t);
@@ -6044,7 +6082,7 @@ function Un({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
6044
6082
  e.map((e, t) => {
6045
6083
  let n = !!(e.sortable && a), r = i && i.key === e.key;
6046
6084
  return /* @__PURE__ */ m("th", {
6047
- className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + Vn(e.align),
6085
+ className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + Un(e.align),
6048
6086
  style: e.width ? { width: e.width } : void 0,
6049
6087
  tabIndex: n ? 0 : void 0,
6050
6088
  "aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
@@ -6071,7 +6109,7 @@ function Un({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
6071
6109
  children: "Actions"
6072
6110
  })
6073
6111
  }))
6074
- ] }) }), /* @__PURE__ */ p("tbody", { children: o ? /* @__PURE__ */ p(Fn, {
6112
+ ] }) }), /* @__PURE__ */ p("tbody", { children: o ? /* @__PURE__ */ p(Ln, {
6075
6113
  rows: s,
6076
6114
  cols: j
6077
6115
  }) : n?.length ? n.map((n, i) => {
@@ -6105,9 +6143,9 @@ function Un({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
6105
6143
  })
6106
6144
  }),
6107
6145
  e.map((e, t) => /* @__PURE__ */ p("td", {
6108
- className: (t === 0 ? "wui-name-cell " : "") + Vn(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
6146
+ className: (t === 0 ? "wui-name-cell " : "") + Un(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
6109
6147
  style: e.cellStyle,
6110
- children: e.render ? e.render(n) : Hn(n[e.key])
6148
+ children: e.render ? e.render(n) : Wn(n[e.key])
6111
6149
  }, e.key)),
6112
6150
  h && /* @__PURE__ */ p("td", { children: /* @__PURE__ */ p("div", {
6113
6151
  className: "u-row-actions",
@@ -6131,7 +6169,7 @@ function Un({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
6131
6169
  }) : L
6132
6170
  }) }) })]
6133
6171
  })
6134
- }), _ && !o && _.total > 0 && /* @__PURE__ */ p(Bn, {
6172
+ }), _ && !o && _.total > 0 && /* @__PURE__ */ p(Hn, {
6135
6173
  page: _.page,
6136
6174
  totalPages: _.totalPages,
6137
6175
  pageSize: _.pageSize,
@@ -6144,7 +6182,7 @@ function Un({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
6144
6182
  }
6145
6183
  //#endregion
6146
6184
  //#region src/components/AppDatePicker.jsx
6147
- var Wn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, placeholder: u = "Enter Date", disabled: d, size: f, firstDay: h, id: g, ariaLabel: _, className: v = "", ...y }, b) {
6185
+ var Kn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, placeholder: u = "Enter Date", disabled: d, size: f, firstDay: h, id: g, ariaLabel: _, className: v = "", ...y }, b) {
6148
6186
  N("AppDatePicker", y);
6149
6187
  let x = s(), S = g || o || x, { setRef: C } = Q({
6150
6188
  ref: b,
@@ -6188,7 +6226,7 @@ var Wn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
6188
6226
  })
6189
6227
  ]
6190
6228
  });
6191
- }), Gn = i(function({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: a, error: c, startName: l, endName: u, min: d, max: f, placeholder: h = "Start – End", disabled: g, size: _, firstDay: v, id: y, ariaLabel: b, className: x = "", ...S }, C) {
6229
+ }), qn = i(function({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: a, error: c, startName: l, endName: u, min: d, max: f, placeholder: h = "Start – End", disabled: g, size: _, firstDay: v, id: y, ariaLabel: b, className: x = "", ...S }, C) {
6192
6230
  N("AppDateRangePicker", S);
6193
6231
  let w = s(), T = y || l || w, { setRef: E, innerRef: D } = Q({
6194
6232
  ref: C,
@@ -6249,12 +6287,12 @@ var Wn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
6249
6287
  });
6250
6288
  //#endregion
6251
6289
  //#region src/lib/emptyValue.js
6252
- function Kn(e) {
6290
+ function Jn(e) {
6253
6291
  return e == null || e === "";
6254
6292
  }
6255
6293
  //#endregion
6256
6294
  //#region src/components/AppDescriptions.jsx
6257
- function qn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
6295
+ function Yn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
6258
6296
  return N("AppDescriptions", o), /* @__PURE__ */ m("div", {
6259
6297
  className: [
6260
6298
  "descs",
@@ -6270,7 +6308,7 @@ function qn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
6270
6308
  }), /* @__PURE__ */ p("dl", {
6271
6309
  className: "descs-list",
6272
6310
  children: e.map((e, t) => {
6273
- let n = Kn(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
6311
+ let n = Jn(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
6274
6312
  return /* @__PURE__ */ m("div", {
6275
6313
  className: "descs-item",
6276
6314
  style: { "--descs-span": r },
@@ -6288,24 +6326,24 @@ function qn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
6288
6326
  }
6289
6327
  //#endregion
6290
6328
  //#region src/components/AppDropdown.jsx
6291
- var Jn = !1;
6292
- function Yn() {
6329
+ var Xn = !1;
6330
+ function Zn() {
6293
6331
  let e = !0;
6294
6332
  try {
6295
6333
  e = process.env.NODE_ENV !== "production";
6296
6334
  } catch {
6297
6335
  e = !0;
6298
6336
  }
6299
- !e || Jn || (Jn = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
6337
+ !e || Xn || (Xn = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
6300
6338
  }
6301
- function Xn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: o = [], menuClassName: s = "", linkComponent: c, children: l, trigger: u, ...d }) {
6302
- N("AppDropdown", d), !u && !i && !r && Yn();
6339
+ function Qn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: o = [], menuClassName: s = "", linkComponent: c, children: l, trigger: u, ...d }) {
6340
+ N("AppDropdown", d), !u && !i && !r && Zn();
6303
6341
  let f = n ?? (u ? "wui-dropdown-trigger" : "topbar-icon-btn");
6304
6342
  return /* @__PURE__ */ m(b, {
6305
6343
  align: a,
6306
6344
  ...d,
6307
6345
  children: [/* @__PURE__ */ p(b.Toggle, {
6308
- as: Zn,
6346
+ as: $n,
6309
6347
  icon: e,
6310
6348
  iconSize: t,
6311
6349
  btnClassName: f,
@@ -6315,6 +6353,7 @@ function Xn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
6315
6353
  }), /* @__PURE__ */ p(b.Menu, {
6316
6354
  className: s,
6317
6355
  renderOnMount: !0,
6356
+ popperConfig: { strategy: "fixed" },
6318
6357
  children: l ?? o.map((e) => {
6319
6358
  if (e.divider) return /* @__PURE__ */ p(b.Divider, {}, e.key);
6320
6359
  let t = e.to ? c ? {
@@ -6340,7 +6379,7 @@ function Xn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
6340
6379
  })]
6341
6380
  });
6342
6381
  }
6343
- var Zn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
6382
+ var $n = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
6344
6383
  return /* @__PURE__ */ p("button", {
6345
6384
  ref: s,
6346
6385
  type: "button",
@@ -6355,16 +6394,16 @@ var Zn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-
6355
6394
  });
6356
6395
  //#endregion
6357
6396
  //#region src/lib/fileItem.js
6358
- function Qn(e) {
6397
+ function er(e) {
6359
6398
  return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
6360
6399
  }
6361
- function $n(e) {
6400
+ function tr(e) {
6362
6401
  return e instanceof File ? e.name : e?.name;
6363
6402
  }
6364
- function er(e) {
6403
+ function nr(e) {
6365
6404
  return e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
6366
6405
  }
6367
- function tr(e, t) {
6406
+ function rr(e, t) {
6368
6407
  let [n, r] = d(null);
6369
6408
  return o(() => {
6370
6409
  if (!t) {
@@ -6380,8 +6419,8 @@ function tr(e, t) {
6380
6419
  }
6381
6420
  //#endregion
6382
6421
  //#region src/lib/FileItemRow.jsx
6383
- function nr({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
6384
- let i = tr(e, t), a = $n(e), o = er(e);
6422
+ function ir({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
6423
+ let i = rr(e, t), a = tr(e), o = nr(e);
6385
6424
  return /* @__PURE__ */ m("div", {
6386
6425
  className: "attach-item",
6387
6426
  children: [
@@ -6420,15 +6459,15 @@ function nr({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
6420
6459
  }
6421
6460
  //#endregion
6422
6461
  //#region src/components/AppFileAttachment.jsx
6423
- function rr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = At, maxSizeMb: o = 5, optional: c = !1, error: l, id: u, ...h }) {
6462
+ function ar({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = Mt, maxSizeMb: o = 5, optional: c = !1, error: l, id: u, ...h }) {
6424
6463
  N("AppFileAttachment", h);
6425
- let g = s(), _ = u || n || g, [v, y] = d(""), b = i && Array.isArray(t) ? t : t ? [t] : [], x = It(a), S = (e) => e instanceof File ? Ft(e) : x || Ft(e), C = !i && b.length === 1 && S(b[0]);
6464
+ let g = s(), _ = u || n || g, [v, y] = d(""), b = i && Array.isArray(t) ? t : t ? [t] : [], x = Rt(a), S = (e) => e instanceof File ? Lt(e) : x || Lt(e), C = !i && b.length === 1 && S(b[0]);
6426
6465
  function w(e) {
6427
6466
  let n = Array.from(e.target.files || []);
6428
6467
  if (e.target.value = "", !n.length) return;
6429
6468
  let s = [], c = "";
6430
6469
  for (let e of n) {
6431
- let t = zt(e, {
6470
+ let t = Vt(e, {
6432
6471
  accept: a,
6433
6472
  maxSizeMb: o
6434
6473
  });
@@ -6439,8 +6478,8 @@ function rr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6439
6478
  s.push(e);
6440
6479
  }
6441
6480
  if (y(c), s.length) if (i) {
6442
- let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(Qn));
6443
- r(e.concat(s.filter((e) => !n.has(Qn(e)))));
6481
+ let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(er));
6482
+ r(e.concat(s.filter((e) => !n.has(er(e)))));
6444
6483
  } else r(s[0]);
6445
6484
  }
6446
6485
  function T(e) {
@@ -6477,7 +6516,7 @@ function rr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6477
6516
  }), /* @__PURE__ */ m("span", {
6478
6517
  className: "attach-drop-hint",
6479
6518
  children: [
6480
- Lt(a),
6519
+ zt(a),
6481
6520
  ", up to ",
6482
6521
  o,
6483
6522
  " MB"
@@ -6499,17 +6538,17 @@ function rr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6499
6538
  onChange: w,
6500
6539
  ...h
6501
6540
  })] }),
6502
- C ? /* @__PURE__ */ p(ir, {
6541
+ C ? /* @__PURE__ */ p(or, {
6503
6542
  item: b[0],
6504
6543
  isImage: !0,
6505
6544
  onRemove: () => T(0)
6506
6545
  }) : b.length > 0 && /* @__PURE__ */ p("div", {
6507
6546
  className: "attach-list",
6508
- children: b.map((e, t) => /* @__PURE__ */ p(nr, {
6547
+ children: b.map((e, t) => /* @__PURE__ */ p(ir, {
6509
6548
  item: e,
6510
6549
  isImage: S(e),
6511
6550
  onRemove: () => T(t)
6512
- }, Qn(e)))
6551
+ }, er(e)))
6513
6552
  }),
6514
6553
  E && /* @__PURE__ */ p("div", {
6515
6554
  className: "field-error",
@@ -6518,8 +6557,8 @@ function rr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6518
6557
  ]
6519
6558
  });
6520
6559
  }
6521
- function ir({ item: e, isImage: t, onRemove: n }) {
6522
- let r = tr(e, t), i = $n(e), a = er(e);
6560
+ function or({ item: e, isImage: t, onRemove: n }) {
6561
+ let r = rr(e, t), i = tr(e), a = nr(e);
6523
6562
  return /* @__PURE__ */ m("div", {
6524
6563
  className: "attach-preview",
6525
6564
  children: [/* @__PURE__ */ m("div", {
@@ -6551,18 +6590,18 @@ function ir({ item: e, isImage: t, onRemove: n }) {
6551
6590
  }
6552
6591
  //#endregion
6553
6592
  //#region src/components/AppFilePicker.jsx
6554
- function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles: a, accept: c = ".jpg,.jpeg,.png", maxSizeMb: l = 5, required: f, error: h, className: g = "", ..._ }) {
6593
+ function sr({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles: a, accept: c = ".jpg,.jpeg,.png", maxSizeMb: l = 5, required: f, error: h, className: g = "", ..._ }) {
6555
6594
  N("AppFilePicker", _);
6556
6595
  let [v, y] = d(null), [b, x] = d(!1), [S, C] = d(""), w = u(null), T = s(), E = n || T;
6557
6596
  o(() => {
6558
- if (!i && t instanceof File && Ft(t)) {
6597
+ if (!i && t instanceof File && Lt(t)) {
6559
6598
  let e = URL.createObjectURL(t);
6560
6599
  return y(e), () => URL.revokeObjectURL(e);
6561
6600
  }
6562
6601
  y(null);
6563
6602
  }, [t, i]);
6564
- let D = i ? Array.isArray(t) ? t : t ? [t] : [] : [], O = h || S, k = It(c), A = !i && !!t, j = A && (t instanceof File ? Ft(t) : k || Ft(t)), M = t?.name, P = j ? t?.url || v : null, F = (e) => {
6565
- let t = zt(e, {
6603
+ let D = i ? Array.isArray(t) ? t : t ? [t] : [] : [], O = h || S, k = Rt(c), A = !i && !!t, j = A && (t instanceof File ? Lt(t) : k || Lt(t)), M = t?.name, P = j ? t?.url || v : null, F = (e) => {
6604
+ let t = Vt(e, {
6566
6605
  accept: c,
6567
6606
  maxSizeMb: l
6568
6607
  });
@@ -6570,9 +6609,9 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6570
6609
  }, I = (e) => {
6571
6610
  let n = Array.from(e || []);
6572
6611
  if (!n.length) return;
6573
- let i = Array.isArray(t) ? t : t ? [t] : [], o = new Set(i.map(Qn)), s = "", u = [];
6612
+ let i = Array.isArray(t) ? t : t ? [t] : [], o = new Set(i.map(er)), s = "", u = [];
6574
6613
  for (let e of n) {
6575
- let t = zt(e, {
6614
+ let t = Vt(e, {
6576
6615
  accept: c,
6577
6616
  maxSizeMb: l
6578
6617
  });
@@ -6580,7 +6619,7 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6580
6619
  s ||= t;
6581
6620
  continue;
6582
6621
  }
6583
- o.has(Qn(e)) || (o.add(Qn(e)), u.push(e));
6622
+ o.has(er(e)) || (o.add(er(e)), u.push(e));
6584
6623
  }
6585
6624
  let d = i.concat(u);
6586
6625
  a && d.length > a && (d = d.slice(0, a), s ||= `Up to ${a} files.`), C(s), r(d);
@@ -6591,16 +6630,16 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6591
6630
  }
6592
6631
  let t = e.target.files?.[0] || null;
6593
6632
  t && (F(t) || (e.target.value = ""));
6594
- }, R = (e) => {
6633
+ }, ee = (e) => {
6595
6634
  if (e.preventDefault(), x(!1), i) {
6596
6635
  I(e.dataTransfer.files);
6597
6636
  return;
6598
6637
  }
6599
6638
  let t = e.dataTransfer.files?.[0];
6600
6639
  t && F(t);
6601
- }, z = (e) => {
6640
+ }, R = (e) => {
6602
6641
  C(""), r(D.filter((t, n) => n !== e));
6603
- }, ee = () => w.current?.click(), B = /* @__PURE__ */ p("input", {
6642
+ }, z = () => w.current?.click(), B = /* @__PURE__ */ p("input", {
6604
6643
  id: E,
6605
6644
  name: n,
6606
6645
  ref: w,
@@ -6629,7 +6668,7 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6629
6668
  type: "button",
6630
6669
  className: "file-preview-open",
6631
6670
  "aria-label": `Change ${e}`,
6632
- onClick: ee,
6671
+ onClick: z,
6633
6672
  children: [j && P ? /* @__PURE__ */ p("img", {
6634
6673
  src: P,
6635
6674
  alt: `${e} preview`,
@@ -6679,7 +6718,7 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6679
6718
  onDragLeave: (e) => {
6680
6719
  e.preventDefault(), x(!1);
6681
6720
  },
6682
- onDrop: R,
6721
+ onDrop: ee,
6683
6722
  children: [
6684
6723
  /* @__PURE__ */ m("label", {
6685
6724
  htmlFor: E,
@@ -6702,7 +6741,7 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6702
6741
  /* @__PURE__ */ m("span", {
6703
6742
  className: "file-input-text",
6704
6743
  children: [
6705
- Lt(c),
6744
+ zt(c),
6706
6745
  " · up to ",
6707
6746
  l,
6708
6747
  " MB"
@@ -6713,12 +6752,12 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6713
6752
  B,
6714
6753
  i && D.length > 0 && /* @__PURE__ */ p("div", {
6715
6754
  className: "attach-list",
6716
- children: D.map((e, t) => /* @__PURE__ */ p(nr, {
6755
+ children: D.map((e, t) => /* @__PURE__ */ p(ir, {
6717
6756
  item: e,
6718
- isImage: e instanceof File ? Ft(e) : k || Ft(e),
6757
+ isImage: e instanceof File ? Lt(e) : k || Lt(e),
6719
6758
  noun: "file",
6720
- onRemove: () => z(t)
6721
- }, Qn(e)))
6759
+ onRemove: () => R(t)
6760
+ }, er(e)))
6722
6761
  })
6723
6762
  ]
6724
6763
  }),
@@ -6731,7 +6770,7 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6731
6770
  }
6732
6771
  //#endregion
6733
6772
  //#region src/components/AppFloatingDock.jsx
6734
- function or({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
6773
+ function cr({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
6735
6774
  return N("AppFloatingDock", s), /* @__PURE__ */ p("wui-dock", {
6736
6775
  role: "navigation",
6737
6776
  "aria-label": n,
@@ -6773,7 +6812,7 @@ function or({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation"
6773
6812
  }
6774
6813
  //#endregion
6775
6814
  //#region src/components/AppFormActions.jsx
6776
- function sr({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
6815
+ function lr({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
6777
6816
  return N("AppFormActions", i), /* @__PURE__ */ p("div", {
6778
6817
  className: [
6779
6818
  "form-actions",
@@ -6787,7 +6826,7 @@ function sr({ children: e, sticky: t = !1, align: n = "end", className: r = "",
6787
6826
  }
6788
6827
  //#endregion
6789
6828
  //#region src/components/AppFormRow.jsx
6790
- function cr({ children: e, columns: t = 2, className: n = "", ...r }) {
6829
+ function ur({ children: e, columns: t = 2, className: n = "", ...r }) {
6791
6830
  N("AppFormRow", r);
6792
6831
  let { style: i, ...a } = r;
6793
6832
  return /* @__PURE__ */ p("div", {
@@ -6802,7 +6841,7 @@ function cr({ children: e, columns: t = 2, className: n = "", ...r }) {
6802
6841
  }
6803
6842
  //#endregion
6804
6843
  //#region src/components/AppFormSection.jsx
6805
- function lr({ children: e, title: t, description: n, className: r = "", ...i }) {
6844
+ function dr({ children: e, title: t, description: n, className: r = "", ...i }) {
6806
6845
  return N("AppFormSection", i), /* @__PURE__ */ m("section", {
6807
6846
  className: ["form-section", r].filter(Boolean).join(" "),
6808
6847
  ...i,
@@ -6823,12 +6862,12 @@ function lr({ children: e, title: t, description: n, className: r = "", ...i })
6823
6862
  }
6824
6863
  //#endregion
6825
6864
  //#region src/components/AppInfoList.jsx
6826
- function ur({ items: e = [], className: t = "", ...n }) {
6865
+ function fr({ items: e = [], className: t = "", ...n }) {
6827
6866
  return N("AppInfoList", n), /* @__PURE__ */ p("div", {
6828
6867
  className: `info-list${t ? ` ${t}` : ""}`,
6829
6868
  ...n,
6830
6869
  children: e.map((e, t) => {
6831
- let n = Kn(e.value), r = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
6870
+ let n = Jn(e.value), r = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
6832
6871
  className: "info-icon",
6833
6872
  children: H(e.icon, { size: 16 })
6834
6873
  }), /* @__PURE__ */ m("span", {
@@ -6854,23 +6893,23 @@ function ur({ items: e = [], className: t = "", ...n }) {
6854
6893
  }
6855
6894
  //#endregion
6856
6895
  //#region src/components/AppKpiTile.jsx
6857
- var dr = 48, fr = 16;
6858
- function pr(e) {
6859
- if (!e || e.length < 2) return `0,${fr / 2} ${dr},${fr / 2}`;
6860
- let t = Math.min(...e), n = Math.max(...e) - t, r = dr / (e.length - 1);
6861
- return e.map((e, i) => `${i * r},${n === 0 ? fr / 2 : fr - (e - t) / n * fr}`).join(" ");
6896
+ var pr = 48, mr = 16;
6897
+ function hr(e) {
6898
+ if (!e || e.length < 2) return `0,${mr / 2} ${pr},${mr / 2}`;
6899
+ let t = Math.min(...e), n = Math.max(...e) - t, r = pr / (e.length - 1);
6900
+ return e.map((e, i) => `${i * r},${n === 0 ? mr / 2 : mr - (e - t) / n * mr}`).join(" ");
6862
6901
  }
6863
- function mr(e) {
6902
+ function gr(e) {
6864
6903
  if (typeof e != "string") return "flat";
6865
6904
  let t = e.trim();
6866
6905
  return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
6867
6906
  }
6868
- function hr({ 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: h, linkComponent: g, className: _ = "", style: v, iconClassName: y = "", labelClassName: b = "", valueClassName: x = "", captionClassName: S = "", deltaClassName: C = "", sparklineClassName: w = "", ...T }) {
6907
+ function _r({ 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: h, linkComponent: g, className: _ = "", style: v, iconClassName: y = "", labelClassName: b = "", valueClassName: x = "", captionClassName: S = "", deltaClassName: C = "", sparklineClassName: w = "", ...T }) {
6869
6908
  N("AppKpiTile", T);
6870
6909
  let E = `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" : ""}${_ ? ` ${_}` : ""}`, D = typeof u == "number" && u > 0 ? {
6871
6910
  ...v,
6872
6911
  "--wui-kpi-value-size": `${u}px`
6873
- } : v, O = o ?? mr(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
6912
+ } : v, O = o ?? gr(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
6874
6913
  return h != null && (A = g ? {
6875
6914
  as: g,
6876
6915
  to: h
@@ -6908,12 +6947,12 @@ function hr({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
6908
6947
  }),
6909
6948
  s && s.length > 0 && /* @__PURE__ */ p("svg", {
6910
6949
  className: `kpi-sparkline${w ? ` ${w}` : ""}`,
6911
- width: dr,
6912
- height: fr,
6913
- viewBox: `0 0 ${dr} ${fr}`,
6950
+ width: pr,
6951
+ height: mr,
6952
+ viewBox: `0 0 ${pr} ${mr}`,
6914
6953
  "aria-hidden": "true",
6915
6954
  children: /* @__PURE__ */ p("polyline", {
6916
- points: pr(s),
6955
+ points: hr(s),
6917
6956
  stroke: "currentColor",
6918
6957
  fill: "none"
6919
6958
  })
@@ -6923,21 +6962,21 @@ function hr({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
6923
6962
  }
6924
6963
  //#endregion
6925
6964
  //#region src/components/AppLogoPicker.jsx
6926
- var gr = {
6965
+ var vr = {
6927
6966
  sm: 72,
6928
6967
  md: 120,
6929
6968
  lg: 160
6930
6969
  };
6931
- function _r({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a = !1, disabled: c = !1, accept: l = "image/png,image/jpeg,image/webp", maxSizeMb: f = 5, overlayIcon: h = "image", overlayLabel: g = "Update photo", ariaLabel: _ = "Upload photo", label: v, hint: y, error: b, layout: x = "stacked", title: S, subtitle: C, required: w = !1, variant: T = "initials", size: E = "md", shape: D = "circle", className: O = "", ...k }) {
6932
- N("AppLogoPicker", k), W("AppLogoPicker", "size", typeof E == "string" ? E : null, Object.keys(gr));
6933
- let A = u(null), j = s(), M = n || j, [P, F] = d(null), [I, L] = d(""), [R, z] = d(!1), [ee, B] = d(!1);
6970
+ function yr({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a = !1, disabled: c = !1, accept: l = "image/png,image/jpeg,image/webp", maxSizeMb: f = 5, overlayIcon: h = "image", overlayLabel: g = "Update photo", ariaLabel: _ = "Upload photo", label: v, hint: y, error: b, layout: x = "stacked", title: S, subtitle: C, required: w = !1, variant: T = "initials", size: E = "md", shape: D = "circle", className: O = "", ...k }) {
6971
+ N("AppLogoPicker", k), W("AppLogoPicker", "size", typeof E == "string" ? E : null, Object.keys(vr));
6972
+ let A = u(null), j = s(), M = n || j, [P, F] = d(null), [I, L] = d(""), [ee, R] = d(!1), [z, B] = d(!1);
6934
6973
  o(() => () => P && URL.revokeObjectURL(P), [P]), o(() => {
6935
- F(null), z(!1);
6974
+ F(null), R(!1);
6936
6975
  }, [e]);
6937
- let te = a || c, ne = P || (e && !R ? e : null), re = b || I, ie = !te && (!!P || !!ne && !!i), ae = () => {
6976
+ let te = a || c, ne = P || (e && !ee ? e : null), re = b || I, ie = !te && (!!P || !!ne && !!i), ae = () => {
6938
6977
  te || A.current?.click();
6939
6978
  }, oe = (e) => {
6940
- let t = zt(e, {
6979
+ let t = Vt(e, {
6941
6980
  accept: l,
6942
6981
  maxSizeMb: f
6943
6982
  });
@@ -6945,7 +6984,7 @@ function _r({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6945
6984
  L(t);
6946
6985
  return;
6947
6986
  }
6948
- L(""), z(!1), F(URL.createObjectURL(e)), r(e);
6987
+ L(""), R(!1), F(URL.createObjectURL(e)), r(e);
6949
6988
  }, se = (e) => {
6950
6989
  let t = e.target.files?.[0];
6951
6990
  e.target.value = "", t && oe(t);
@@ -6954,13 +6993,13 @@ function _r({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6954
6993
  let t = e.dataTransfer.files?.[0];
6955
6994
  t && oe(t);
6956
6995
  }, le = () => {
6957
- F(null), L(""), z(!1), A.current && (A.current.value = ""), i?.();
6958
- }, ue = typeof E == "number" ? E : gr[E] ?? gr.md, H = Math.max(14, Math.round(ue * .18)), de = Math.round(ue * .5), fe = [
6996
+ F(null), L(""), R(!1), A.current && (A.current.value = ""), i?.();
6997
+ }, ue = typeof E == "number" ? E : vr[E] ?? vr.md, H = Math.max(14, Math.round(ue * .18)), de = Math.round(ue * .5), fe = [
6959
6998
  "set-uploader",
6960
6999
  T === "avatar" ? "set-uploader--avatar" : "",
6961
7000
  D === "rounded" ? "set-uploader--rounded" : D === "square" ? "set-uploader--square" : "",
6962
- ee && "is-dragging"
6963
- ].filter(Boolean).join(" "), pe = x === "inline", U = x === "profile", me = /* @__PURE__ */ m("div", {
7001
+ z && "is-dragging"
7002
+ ].filter(Boolean).join(" "), pe = x === "inline", me = x === "profile", U = /* @__PURE__ */ m("div", {
6964
7003
  className: "set-uploader-shell",
6965
7004
  children: [
6966
7005
  /* @__PURE__ */ p("button", {
@@ -6972,7 +7011,7 @@ function _r({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6972
7011
  onClick: ae,
6973
7012
  "aria-label": _,
6974
7013
  onDragOver: (e) => {
6975
- e.preventDefault(), !te && !ee && B(!0);
7014
+ e.preventDefault(), !te && !z && B(!0);
6976
7015
  },
6977
7016
  onDragLeave: (e) => {
6978
7017
  e.preventDefault(), B(!1);
@@ -6986,7 +7025,7 @@ function _r({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6986
7025
  className: "set-uploader-img",
6987
7026
  src: ne,
6988
7027
  alt: "",
6989
- onError: () => z(!0)
7028
+ onError: () => R(!0)
6990
7029
  }) : /* @__PURE__ */ p("span", {
6991
7030
  className: "set-uploader-logo",
6992
7031
  children: t || T === "avatar" && /* @__PURE__ */ p(V, {
@@ -7062,20 +7101,20 @@ function _r({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
7062
7101
  className: `field set-uploader-field set-uploader-field--inline${O ? ` ${O}` : ""}`,
7063
7102
  children: [_e, /* @__PURE__ */ m("div", {
7064
7103
  className: "set-uploader-row",
7065
- children: [me, ve]
7104
+ children: [U, ve]
7066
7105
  })]
7067
- }) : U ? /* @__PURE__ */ m("div", {
7106
+ }) : me ? /* @__PURE__ */ m("div", {
7068
7107
  className: `field set-uploader-field set-uploader-field--profile${O ? ` ${O}` : ""}`,
7069
7108
  children: [
7070
7109
  _e,
7071
- me,
7110
+ U,
7072
7111
  ve
7073
7112
  ]
7074
7113
  }) : /* @__PURE__ */ m("div", {
7075
7114
  className: `field set-uploader-field${O ? ` ${O}` : ""}`,
7076
7115
  children: [
7077
7116
  _e,
7078
- me,
7117
+ U,
7079
7118
  he,
7080
7119
  ge
7081
7120
  ]
@@ -7083,27 +7122,27 @@ function _r({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
7083
7122
  }
7084
7123
  //#endregion
7085
7124
  //#region src/components/AppMeter.jsx
7086
- var vr = [
7125
+ var br = [
7087
7126
  "info",
7088
7127
  "success",
7089
7128
  "warning",
7090
7129
  "danger",
7091
7130
  "neutral"
7092
7131
  ];
7093
- function yr(e, t, n) {
7132
+ function xr(e, t, n) {
7094
7133
  let r = n - t;
7095
7134
  if (!(r > 0)) return 0;
7096
7135
  let i = Math.min(100, Math.max(0, (e - t) / r * 100));
7097
7136
  return Number(i.toFixed(2));
7098
7137
  }
7099
- function br(e, t, n, r, i) {
7138
+ function Sr(e, t, n, r, i) {
7100
7139
  if (t == null && n == null) return i;
7101
7140
  let a = "mid";
7102
7141
  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";
7103
7142
  }
7104
- function xr({ 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 }) {
7143
+ function Cr({ 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 }) {
7105
7144
  N("AppMeter", d);
7106
- let f = br(e, a, o, i, vr.includes(r) ? r : "info"), m = yr(e, t, n);
7145
+ let f = Sr(e, a, o, i, br.includes(r) ? r : "info"), m = xr(e, t, n);
7107
7146
  return /* @__PURE__ */ p("div", {
7108
7147
  className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
7109
7148
  role: "meter",
@@ -7121,20 +7160,20 @@ function xr({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
7121
7160
  }
7122
7161
  //#endregion
7123
7162
  //#region src/components/AppMultiSelect.jsx
7124
- var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Select…", searchPlaceholder: i = "Search…", searchable: a = !0, disabled: c = !1, icon: l, size: u, collapseChips: d = !1, name: f, label: h, error: g, hint: _, required: v = !1, help: y, helpLabel: b = "More information", fieldClassName: x = "", ...S }, C) {
7163
+ var wr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Select…", searchPlaceholder: i = "Search…", searchable: a = !0, disabled: c = !1, icon: l, size: u, collapseChips: d = !1, name: f, label: h, error: g, hint: _, required: v = !1, help: y, helpLabel: b = "More information", fieldClassName: x = "", ...S }, C) {
7125
7164
  N("AppMultiSelect", S);
7126
7165
  let w = s(), T = f || w, { setRef: E, innerRef: D } = Q({
7127
7166
  ref: C,
7128
7167
  value: e,
7129
7168
  onChange: t,
7130
- readValue: qt,
7131
- writeValue: Jt
7169
+ readValue: Yt,
7170
+ writeValue: Xt
7132
7171
  });
7133
7172
  return o(() => {
7134
7173
  let e = D.current;
7135
7174
  if (!e) return;
7136
7175
  let t = n || [];
7137
- Kt(t, e.options) || (e.options = t);
7176
+ Jt(t, e.options) || (e.options = t);
7138
7177
  }, [n, D]), /* @__PURE__ */ m("div", {
7139
7178
  className: `field${x ? ` ${x}` : ""}`,
7140
7179
  children: [
@@ -7144,7 +7183,7 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7144
7183
  children: [
7145
7184
  h,
7146
7185
  v && /* @__PURE__ */ p(Z, {}),
7147
- y && /* @__PURE__ */ p(Ht, {
7186
+ y && /* @__PURE__ */ p(Wt, {
7148
7187
  label: b,
7149
7188
  children: y
7150
7189
  })
@@ -7178,7 +7217,7 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7178
7217
  }) : null
7179
7218
  ]
7180
7219
  });
7181
- }), Cr = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: c, onChange: l, min: u, max: f, step: h = 1, precision: g = 0, unit: _, size: v = "md", id: y, name: b, className: S = "", fieldClassName: C = "", disabled: w = !1, ...T }, E) {
7220
+ }), Tr = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: c, onChange: l, min: u, max: f, step: h = 1, precision: g = 0, unit: _, size: v = "md", id: y, name: b, className: S = "", fieldClassName: C = "", disabled: w = !1, ...T }, E) {
7182
7221
  N("AppNumberInput", T);
7183
7222
  let D = s(), O = y || D, k = (e) => {
7184
7223
  if (g === 0) return Math.round(e);
@@ -7198,7 +7237,7 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7198
7237
  let F = (e) => {
7199
7238
  let t = (j(M) ?? A(0)) + e * h, n = A(k(t));
7200
7239
  P(String(n)), l?.(n);
7201
- }, I = j(M), L = w || I !== null && typeof u == "number" && I <= u, R = w || I !== null && typeof f == "number" && I >= f, z = n && O ? `${O}-error` : void 0, ee = r && O ? `${O}-hint` : void 0, B = z || ee, te = [
7240
+ }, I = j(M), L = w || I !== null && typeof u == "number" && I <= u, ee = w || I !== null && typeof f == "number" && I >= f, R = n && O ? `${O}-error` : void 0, z = r && O ? `${O}-hint` : void 0, B = R || z, te = [
7202
7241
  "input",
7203
7242
  v === "sm" ? "input-sm" : "",
7204
7243
  v === "lg" ? "input-lg" : "",
@@ -7265,7 +7304,7 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7265
7304
  className: "num-btn",
7266
7305
  "aria-label": "Increase",
7267
7306
  tabIndex: -1,
7268
- disabled: R,
7307
+ disabled: ee,
7269
7308
  onClick: () => F(1),
7270
7309
  children: /* @__PURE__ */ p(V, {
7271
7310
  name: "plus",
@@ -7283,7 +7322,7 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7283
7322
  children: [
7284
7323
  e,
7285
7324
  t && /* @__PURE__ */ p(Z, {}),
7286
- i && /* @__PURE__ */ p(Ht, {
7325
+ i && /* @__PURE__ */ p(Wt, {
7287
7326
  label: a,
7288
7327
  children: i
7289
7328
  })
@@ -7292,16 +7331,16 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7292
7331
  oe,
7293
7332
  n ? /* @__PURE__ */ p("div", {
7294
7333
  className: "field-error",
7295
- id: z,
7334
+ id: R,
7296
7335
  children: n
7297
7336
  }) : r ? /* @__PURE__ */ p("div", {
7298
7337
  className: "field-hint",
7299
- id: ee,
7338
+ id: z,
7300
7339
  children: r
7301
7340
  }) : null
7302
7341
  ]
7303
7342
  });
7304
- }), wr = i(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: o = !1, hint: c, error: l, disabled: u = !1, name: d, id: f, className: h = "", ...g }, _) {
7343
+ }), Er = i(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: o = !1, hint: c, error: l, disabled: u = !1, name: d, id: f, className: h = "", ...g }, _) {
7305
7344
  N("AppOtpInput", g);
7306
7345
  let v = s(), y = f || v, { setRef: b } = Q({
7307
7346
  ref: _,
@@ -7342,7 +7381,7 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7342
7381
  });
7343
7382
  //#endregion
7344
7383
  //#region src/components/AppPageHeader.jsx
7345
- function Tr({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", status: a, breadcrumbs: o, actions: s, size: c = "md", align: l = "start", divider: u = !1, sticky: d = !1, className: f = "", ...h }) {
7384
+ function Dr({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", status: a, breadcrumbs: o, actions: s, size: c = "md", align: l = "start", divider: u = !1, sticky: d = !1, className: f = "", ...h }) {
7346
7385
  N("AppPageHeader", h);
7347
7386
  let g = [
7348
7387
  "page-header",
@@ -7401,9 +7440,9 @@ function Tr({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", s
7401
7440
  }
7402
7441
  //#endregion
7403
7442
  //#region src/components/AppPagination.jsx
7404
- function Er({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
7443
+ function Or({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
7405
7444
  if (N("AppPagination", s), t <= 1) return null;
7406
- let c = Ln(e, t, { siblingCount: r });
7445
+ let c = zn(e, t, { siblingCount: r });
7407
7446
  return /* @__PURE__ */ p("nav", {
7408
7447
  className: [
7409
7448
  "pagination-nav",
@@ -7461,7 +7500,7 @@ function Er({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
7461
7500
  }
7462
7501
  //#endregion
7463
7502
  //#region src/components/AppPhoneNumberInput.jsx
7464
- var Dr = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, label: a = "Phone number", placeholder: o, required: c = !1, error: l, showFlag: u = !0, showDialCode: d = !0, size: f = "md", fieldClassName: h = "", ...g }, _) {
7503
+ var kr = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, label: a = "Phone number", placeholder: o, required: c = !1, error: l, showFlag: u = !0, showDialCode: d = !0, size: f = "md", fieldClassName: h = "", ...g }, _) {
7465
7504
  N("AppPhoneNumberInput", g);
7466
7505
  let v = s(), y = i || v, b = l && y ? `${y}-error` : void 0, { setRef: x } = Q({
7467
7506
  ref: _,
@@ -7501,7 +7540,7 @@ var Dr = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name:
7501
7540
  });
7502
7541
  //#endregion
7503
7542
  //#region src/components/AppPricingCard.jsx
7504
- function Or({ 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 }) {
7543
+ function Ar({ 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 }) {
7505
7544
  return N("AppPricingCard", u), /* @__PURE__ */ m("div", {
7506
7545
  className: [
7507
7546
  "plan-card",
@@ -7555,21 +7594,21 @@ function Or({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
7555
7594
  }
7556
7595
  //#endregion
7557
7596
  //#region src/components/AppProgress.jsx
7558
- var kr = [
7597
+ var jr = [
7559
7598
  "info",
7560
7599
  "success",
7561
7600
  "warning",
7562
7601
  "danger",
7563
7602
  "neutral"
7564
7603
  ];
7565
- function Ar(e, t) {
7604
+ function Mr(e, t) {
7566
7605
  if (!(t > 0)) return 0;
7567
7606
  let n = Math.min(100, Math.max(0, e / t * 100));
7568
7607
  return Number(n.toFixed(2));
7569
7608
  }
7570
- function jr({ 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 }) {
7609
+ function Nr({ 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 }) {
7571
7610
  N("AppProgress", u);
7572
- let d = kr.includes(n) ? n : "info", f = Ar(e, t), m = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, h = [
7611
+ let d = jr.includes(n) ? n : "info", f = Mr(e, t), m = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, h = [
7573
7612
  "progress-bar",
7574
7613
  `wui-progress-${d}`,
7575
7614
  o || s ? "progress-bar-striped" : "",
@@ -7593,8 +7632,8 @@ function jr({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
7593
7632
  }
7594
7633
  //#endregion
7595
7634
  //#region src/components/AppRadio.jsx
7596
- var Mr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
7597
- return N("AppRadio", o), /* @__PURE__ */ p(gn, {
7635
+ var Pr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
7636
+ return N("AppRadio", o), /* @__PURE__ */ p(vn, {
7598
7637
  ref: s,
7599
7638
  label: e,
7600
7639
  id: t,
@@ -7609,7 +7648,7 @@ var Mr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
7609
7648
  });
7610
7649
  //#endregion
7611
7650
  //#region src/components/AppRepeater.jsx
7612
- function Nr({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "Add another", removeLabel: a = "Remove row", emptyText: o, min: s = 0, max: c, numbered: l = !0, className: u = "", ...d }) {
7651
+ function Fr({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "Add another", removeLabel: a = "Remove row", emptyText: o, min: s = 0, max: c, numbered: l = !0, className: u = "", ...d }) {
7613
7652
  N("AppRepeater", d);
7614
7653
  let f = typeof c == "number" && e.length >= c, h = !!r && e.length > s;
7615
7654
  return /* @__PURE__ */ m("div", {
@@ -7654,7 +7693,7 @@ function Nr({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "
7654
7693
  }
7655
7694
  //#endregion
7656
7695
  //#region src/components/AppResourceCard.jsx
7657
- function Pr({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
7696
+ function Ir({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
7658
7697
  N("AppResourceCard", s);
7659
7698
  let c = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
7660
7699
  className: "res-card-icon",
@@ -7688,7 +7727,7 @@ function Pr({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
7688
7727
  }
7689
7728
  //#endregion
7690
7729
  //#region src/components/AppResult.jsx
7691
- var Fr = {
7730
+ var Lr = {
7692
7731
  success: {
7693
7732
  icon: "check-circle",
7694
7733
  tone: "success"
@@ -7709,9 +7748,9 @@ var Fr = {
7709
7748
  404: { tone: "muted" },
7710
7749
  500: { tone: "muted" }
7711
7750
  };
7712
- function Ir({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
7713
- N("AppResult", s), W("AppResult", "status", e, Object.keys(Fr));
7714
- let c = Fr[e] || Fr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
7751
+ function Rr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
7752
+ N("AppResult", s), W("AppResult", "status", e, Object.keys(Lr));
7753
+ let c = Lr[e] || Lr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
7715
7754
  return /* @__PURE__ */ m("div", {
7716
7755
  className: [
7717
7756
  "result",
@@ -7749,7 +7788,7 @@ function Ir({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
7749
7788
  }
7750
7789
  //#endregion
7751
7790
  //#region src/components/AppScrollbar.jsx
7752
- function Lr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7791
+ function zr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7753
7792
  return N("AppScrollbar", i), /* @__PURE__ */ p("div", {
7754
7793
  className: t ? `wui-scroll ${t}` : "wui-scroll",
7755
7794
  style: n == null ? r : {
@@ -7762,7 +7801,7 @@ function Lr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7762
7801
  }
7763
7802
  //#endregion
7764
7803
  //#region src/components/AppSearch.jsx
7765
- function Rr({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search…", ariaLabel: i, iconSize: a = 18, size: o, loading: s = !1, disabled: c = !1, className: l = "", ...u }) {
7804
+ function Br({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search…", ariaLabel: i, iconSize: a = 18, size: o, loading: s = !1, disabled: c = !1, className: l = "", ...u }) {
7766
7805
  N("AppSearch", u);
7767
7806
  let d = t || n;
7768
7807
  return /* @__PURE__ */ m("div", {
@@ -7809,7 +7848,7 @@ function Rr({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
7809
7848
  }
7810
7849
  //#endregion
7811
7850
  //#region src/components/AppSegmented.jsx
7812
- function zr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: l = !1, disabled: d = !1, className: f = "", ...h }) {
7851
+ function Vr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: l = !1, disabled: d = !1, className: f = "", ...h }) {
7813
7852
  N("AppSegmented", h);
7814
7853
  let g = s(), _ = i || g, v = u(null), y = u(null), b = [
7815
7854
  "segmented",
@@ -7884,7 +7923,7 @@ function zr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
7884
7923
  }
7885
7924
  //#endregion
7886
7925
  //#region src/components/AppSelect.jsx
7887
- var Br = (e) => e == null ? "" : e.label ?? e.text ?? "", Vr = i(function({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", searchPlaceholder: i = "Search...", searchable: a = !1, clearable: c = !1, size: l, icon: u, floatingLabel: d = !1, disabled: f, label: h, required: g = !1, error: _, hint: v, help: y, helpLabel: b = "More information", id: x, name: S, className: C = "", fieldClassName: w = "", "aria-label": T, "aria-labelledby": E, "aria-describedby": D, ...O }, k) {
7926
+ var Hr = (e) => e == null ? "" : e.label ?? e.text ?? "", Ur = i(function({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", searchPlaceholder: i = "Search...", searchable: a = !1, clearable: c = !1, size: l, icon: u, floatingLabel: d = !1, disabled: f, label: h, required: g = !1, error: _, hint: v, help: y, helpLabel: b = "More information", id: x, name: S, className: C = "", fieldClassName: w = "", "aria-label": T, "aria-labelledby": E, "aria-describedby": D, ...O }, k) {
7888
7927
  N("AppSelect", O);
7889
7928
  let A = s(), { setRef: j, innerRef: M } = Q({
7890
7929
  ref: k,
@@ -7896,12 +7935,12 @@ var Br = (e) => e == null ? "" : e.label ?? e.text ?? "", Vr = i(function({ valu
7896
7935
  if (!e) return;
7897
7936
  let t = n.map((e) => ({
7898
7937
  value: e.value,
7899
- label: Br(e),
7938
+ label: Hr(e),
7900
7939
  icon: e.icon
7901
7940
  }));
7902
- Kt(t, e.options) || (e.options = t);
7941
+ Jt(t, e.options) || (e.options = t);
7903
7942
  }, [n, M]);
7904
- let P = x || S || A, F = d && h, I = _ && P ? `${P}-error` : void 0, L = v && P ? `${P}-hint` : void 0, R = /* @__PURE__ */ p("wui-select", {
7943
+ let P = x || S || A, F = d && h, I = _ && P ? `${P}-error` : void 0, L = v && P ? `${P}-hint` : void 0, ee = /* @__PURE__ */ p("wui-select", {
7905
7944
  "aria-label": T || (typeof h == "string" ? h : void 0),
7906
7945
  "aria-labelledby": E || void 0,
7907
7946
  "aria-describedby": I || L || D || void 0,
@@ -7919,7 +7958,7 @@ var Br = (e) => e == null ? "" : e.label ?? e.text ?? "", Vr = i(function({ valu
7919
7958
  required: g ? "" : void 0,
7920
7959
  ...O
7921
7960
  });
7922
- return !h && !_ && !v ? R : /* @__PURE__ */ m("div", {
7961
+ return !h && !_ && !v ? ee : /* @__PURE__ */ m("div", {
7923
7962
  className: [
7924
7963
  "field",
7925
7964
  C,
@@ -7932,7 +7971,7 @@ var Br = (e) => e == null ? "" : e.label ?? e.text ?? "", Vr = i(function({ valu
7932
7971
  children: [
7933
7972
  h,
7934
7973
  g && /* @__PURE__ */ p(Z, {}),
7935
- y && /* @__PURE__ */ p(Ht, {
7974
+ y && /* @__PURE__ */ p(Wt, {
7936
7975
  label: b,
7937
7976
  children: y
7938
7977
  })
@@ -7940,12 +7979,12 @@ var Br = (e) => e == null ? "" : e.label ?? e.text ?? "", Vr = i(function({ valu
7940
7979
  }),
7941
7980
  F ? /* @__PURE__ */ m("div", {
7942
7981
  className: "field-float",
7943
- children: [R, /* @__PURE__ */ m("label", {
7982
+ children: [ee, /* @__PURE__ */ m("label", {
7944
7983
  className: "float-label",
7945
7984
  htmlFor: P,
7946
7985
  children: [h, g && /* @__PURE__ */ p(Z, {})]
7947
7986
  })]
7948
- }) : R,
7987
+ }) : ee,
7949
7988
  _ ? /* @__PURE__ */ p("div", {
7950
7989
  className: "field-error",
7951
7990
  id: I,
@@ -7960,7 +7999,7 @@ var Br = (e) => e == null ? "" : e.label ?? e.text ?? "", Vr = i(function({ valu
7960
7999
  });
7961
8000
  //#endregion
7962
8001
  //#region src/components/AppShell.jsx
7963
- function Hr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r, sidebarFooter: i, topbarStart: a, topbarEnd: s, footer: c, children: l, collapsed: u, onCollapsedChange: f, noSidebar: h = !1, navLabel: g = "Main navigation", linkComponent: _, className: v = "", ...y }) {
8002
+ function Wr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r, sidebarFooter: i, topbarStart: a, topbarEnd: s, footer: c, children: l, collapsed: u, onCollapsedChange: f, noSidebar: h = !1, navLabel: g = "Main navigation", linkComponent: _, className: v = "", ...y }) {
7964
8003
  N("AppShell", y);
7965
8004
  let [b, x] = d(!1), [S, C] = d(!1), [w, T] = d(!1), E = u ?? b, D = () => {
7966
8005
  let e = !E;
@@ -8008,7 +8047,7 @@ function Hr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
8008
8047
  children: [e.label && /* @__PURE__ */ p("div", {
8009
8048
  className: "app-nav-group-label",
8010
8049
  children: e.label
8011
- }), e.items.map((e) => /* @__PURE__ */ p(Ur, {
8050
+ }), e.items.map((e) => /* @__PURE__ */ p(Gr, {
8012
8051
  item: e,
8013
8052
  linkComponent: _,
8014
8053
  onNavigate: () => C(!1)
@@ -8075,7 +8114,7 @@ function Hr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
8075
8114
  ]
8076
8115
  });
8077
8116
  }
8078
- function Ur({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
8117
+ function Gr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
8079
8118
  let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [s, c] = d(a);
8080
8119
  o(() => {
8081
8120
  a && !s && c(!0);
@@ -8115,7 +8154,7 @@ function Ur({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
8115
8154
  className: `app-nav-sub${s ? " expanded" : ""}`,
8116
8155
  children: /* @__PURE__ */ p("div", {
8117
8156
  className: "app-nav-sub-inner",
8118
- children: e.children.map((e) => /* @__PURE__ */ p(Ur, {
8157
+ children: e.children.map((e) => /* @__PURE__ */ p(Gr, {
8119
8158
  item: e,
8120
8159
  linkComponent: t,
8121
8160
  onNavigate: n,
@@ -8156,7 +8195,7 @@ function Ur({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
8156
8195
  }
8157
8196
  //#endregion
8158
8197
  //#region src/components/AppSidebarMenu.jsx
8159
- var Wr = {
8198
+ var Kr = {
8160
8199
  left: "start",
8161
8200
  right: "end",
8162
8201
  start: "start",
@@ -8164,9 +8203,9 @@ var Wr = {
8164
8203
  top: "top",
8165
8204
  bottom: "bottom"
8166
8205
  };
8167
- function Gr({ 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: h = !0, responsive: g, className: _ = "", bodyClassName: v = "", ariaLabel: y, ...b }) {
8168
- N("AppSidebarMenu", b), W("AppSidebarMenu", "side", n, Object.keys(Wr));
8169
- let { style: x, ...S } = b, w = Wr[n] || "end", T = c || l || x ? {
8206
+ function qr({ 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: h = !0, responsive: g, className: _ = "", bodyClassName: v = "", ariaLabel: y, ...b }) {
8207
+ N("AppSidebarMenu", b), W("AppSidebarMenu", "side", n, Object.keys(Kr));
8208
+ let { style: x, ...S } = b, w = Kr[n] || "end", T = c || l || x ? {
8170
8209
  ...c && { "--asm-width": c },
8171
8210
  ...l && { "--asm-max-width": l },
8172
8211
  ...x
@@ -8219,14 +8258,14 @@ function Gr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
8219
8258
  }
8220
8259
  //#endregion
8221
8260
  //#region src/components/AppSlider.jsx
8222
- var Kr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, label: a, required: c = !1, hint: l, error: u, name: d, startName: f, endName: h, min: g = 0, max: _ = 100, step: v = 1, disabled: y, size: b, showValue: x, unit: S, id: C, ariaLabel: w, className: T = "", ...E }, D) {
8261
+ var Jr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, label: a, required: c = !1, hint: l, error: u, name: d, startName: f, endName: h, min: g = 0, max: _ = 100, step: v = 1, disabled: y, size: b, showValue: x, unit: S, id: C, ariaLabel: w, className: T = "", ...E }, D) {
8223
8262
  N("AppSlider", E);
8224
8263
  let O = s(), k = C || d || r && f || O, A = r, { setRef: j, innerRef: M } = Q({
8225
8264
  ref: D,
8226
8265
  value: A ? void 0 : e,
8227
8266
  onChange: i,
8228
- readValue: A ? Yt : void 0,
8229
- writeValue: A ? void 0 : Xt
8267
+ readValue: A ? Zt : void 0,
8268
+ writeValue: A ? void 0 : Qt
8230
8269
  });
8231
8270
  o(() => {
8232
8271
  if (!A) return;
@@ -8280,14 +8319,14 @@ var Kr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, la
8280
8319
  })
8281
8320
  ]
8282
8321
  });
8283
- }), qr = {
8322
+ }), Yr = {
8284
8323
  sm: 44,
8285
8324
  md: 56,
8286
8325
  lg: 72
8287
8326
  };
8288
- function Jr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
8289
- N("AppSplash", c), W("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(qr));
8290
- let { style: l, ...u } = c, d = typeof a == "number" ? a : qr[a] ?? qr.md, f = i === "ring" ? /* @__PURE__ */ p("span", {
8327
+ function Xr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
8328
+ N("AppSplash", c), W("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(Yr));
8329
+ let { style: l, ...u } = c, d = typeof a == "number" ? a : Yr[a] ?? Yr.md, f = i === "ring" ? /* @__PURE__ */ p("span", {
8291
8330
  className: "splash-ring",
8292
8331
  "aria-hidden": "true"
8293
8332
  }) : i === "dots" ? /* @__PURE__ */ m("span", {
@@ -8334,7 +8373,7 @@ function Jr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
8334
8373
  }
8335
8374
  //#endregion
8336
8375
  //#region src/components/AppStatusBadge.jsx
8337
- function Yr({ label: e, tone: t = "neutral", className: n = "", ...r }) {
8376
+ function Zr({ label: e, tone: t = "neutral", className: n = "", ...r }) {
8338
8377
  return N("AppStatusBadge", r), e == null || e === "" ? "—" : /* @__PURE__ */ p("span", {
8339
8378
  className: `status-label ${t}${n ? ` ${n}` : ""}`,
8340
8379
  ...r,
@@ -8343,7 +8382,7 @@ function Yr({ label: e, tone: t = "neutral", className: n = "", ...r }) {
8343
8382
  }
8344
8383
  //#endregion
8345
8384
  //#region src/components/AppStepper.jsx
8346
- function Xr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
8385
+ function Qr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
8347
8386
  N("AppStepper", c);
8348
8387
  let l = t === "journey";
8349
8388
  return /* @__PURE__ */ p("nav", {
@@ -8356,7 +8395,7 @@ function Xr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
8356
8395
  "aria-label": a,
8357
8396
  ...c,
8358
8397
  children: e.map((t, n) => {
8359
- let a = t.status || Zr(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
8398
+ let a = t.status || $r(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
8360
8399
  c = a === "done" ? /* @__PURE__ */ p(V, {
8361
8400
  name: "check",
8362
8401
  size: 14
@@ -8420,13 +8459,13 @@ function Xr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
8420
8459
  })
8421
8460
  });
8422
8461
  }
8423
- function Zr(e, t) {
8462
+ function $r(e, t) {
8424
8463
  return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
8425
8464
  }
8426
8465
  //#endregion
8427
8466
  //#region src/components/AppSwitch.jsx
8428
- var Qr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
8429
- return N("AppSwitch", s), /* @__PURE__ */ p(gn, {
8467
+ var ei = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
8468
+ return N("AppSwitch", s), /* @__PURE__ */ p(vn, {
8430
8469
  ref: c,
8431
8470
  label: e,
8432
8471
  id: t,
@@ -8441,7 +8480,7 @@ var Qr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "p
8441
8480
  });
8442
8481
  //#endregion
8443
8482
  //#region src/components/AppTableEmptyState.jsx
8444
- function $r({ icon: e, title: t, text: n, action: r, ...i }) {
8483
+ function ti({ icon: e, title: t, text: n, action: r, ...i }) {
8445
8484
  return N("AppTableEmptyState", i), /* @__PURE__ */ m("div", {
8446
8485
  className: "tbl-empty",
8447
8486
  ...i,
@@ -8467,13 +8506,13 @@ function $r({ icon: e, title: t, text: n, action: r, ...i }) {
8467
8506
  }
8468
8507
  //#endregion
8469
8508
  //#region src/components/AppTooltip.jsx
8470
- var ei = {
8509
+ var ni = {
8471
8510
  start: "left",
8472
8511
  end: "right",
8473
8512
  top: "top",
8474
8513
  bottom: "bottom"
8475
8514
  };
8476
- function ti({ content: e, children: t, placement: r = "top", tone: i = "default", size: a = "md", className: o = "", ...c }) {
8515
+ function ri({ content: e, children: t, placement: r = "top", tone: i = "default", size: a = "md", className: o = "", ...c }) {
8477
8516
  N("AppTooltip", c);
8478
8517
  let l = /* @__PURE__ */ p(E, {
8479
8518
  id: s(),
@@ -8487,14 +8526,14 @@ function ti({ content: e, children: t, placement: r = "top", tone: i = "default"
8487
8526
  });
8488
8527
  return /* @__PURE__ */ p(w, {
8489
8528
  trigger: ["hover", "focus"],
8490
- placement: ei[r] || r,
8529
+ placement: ni[r] || r,
8491
8530
  overlay: l,
8492
8531
  children: n(t, c)
8493
8532
  });
8494
8533
  }
8495
8534
  //#endregion
8496
8535
  //#region src/components/AppTabs.jsx
8497
- function ni({ tabs: e, value: t, onChange: n, variant: r = "underline", orientation: i = "horizontal", size: s = "md", fitted: l = !1, activation: f = "automatic", ariaLabel: h, className: g = "", style: _, ...v }) {
8536
+ function ii({ tabs: e, value: t, onChange: n, variant: r = "underline", orientation: i = "horizontal", size: s = "md", fitted: l = !1, activation: f = "automatic", ariaLabel: h, className: g = "", style: _, ...v }) {
8498
8537
  N("AppTabs", v);
8499
8538
  let y = u(null), b = u(null), x = i === "vertical", [S, C] = d(t);
8500
8539
  o(() => {
@@ -8601,7 +8640,7 @@ function ni({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
8601
8640
  })
8602
8641
  ]
8603
8642
  }, e.key);
8604
- return e.tooltip ? /* @__PURE__ */ p(ti, {
8643
+ return e.tooltip ? /* @__PURE__ */ p(ri, {
8605
8644
  content: e.tooltip,
8606
8645
  children: i
8607
8646
  }, e.key) : i;
@@ -8643,14 +8682,14 @@ function ni({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
8643
8682
  }
8644
8683
  //#endregion
8645
8684
  //#region src/components/AppTagInput.jsx
8646
- var ri = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r, label: i, error: a, hint: o, required: c = !1, size: l, maxTags: u, allowDuplicates: d = !1, disabled: f = !1, id: h, ariaLabel: g, className: _ = "", fieldClassName: v = "", help: y, helpLabel: b = "More information", ...x }, S) {
8685
+ var ai = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r, label: i, error: a, hint: o, required: c = !1, size: l, maxTags: u, allowDuplicates: d = !1, disabled: f = !1, id: h, ariaLabel: g, className: _ = "", fieldClassName: v = "", help: y, helpLabel: b = "More information", ...x }, S) {
8647
8686
  N("AppTagInput", x);
8648
8687
  let C = s(), w = h || r || C, { setRef: T } = Q({
8649
8688
  ref: S,
8650
8689
  value: e,
8651
8690
  onChange: t,
8652
- readValue: qt,
8653
- writeValue: Jt
8691
+ readValue: Yt,
8692
+ writeValue: Xt
8654
8693
  });
8655
8694
  return /* @__PURE__ */ m("div", {
8656
8695
  className: `field${v ? ` ${v}` : ""}`,
@@ -8661,7 +8700,7 @@ var ri = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8661
8700
  children: [
8662
8701
  i,
8663
8702
  c && /* @__PURE__ */ p(Z, {}),
8664
- y && /* @__PURE__ */ p(Ht, {
8703
+ y && /* @__PURE__ */ p(Wt, {
8665
8704
  label: b,
8666
8705
  children: y
8667
8706
  })
@@ -8694,69 +8733,78 @@ var ri = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8694
8733
  }) : null
8695
8734
  ]
8696
8735
  });
8697
- }), ii = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: o = "More information", id: l, name: d, rows: f = 4, autoGrow: h = !1, className: g = "", fieldClassName: _ = "", ...v }, y) {
8698
- N("AppTextarea", v);
8699
- let b = s(), S = l || b, C = [
8736
+ }), oi = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: l = "More information", id: f, name: h, rows: g = 4, autoGrow: _ = !1, showCount: v = !1, maxLength: y, className: b = "", fieldClassName: S = "", ...C }, w) {
8737
+ N("AppTextarea", C);
8738
+ let T = s(), E = f || T, D = [
8700
8739
  "textarea",
8701
- h ? "autosize" : "",
8740
+ _ ? "autosize" : "",
8702
8741
  n ? "error" : "",
8703
- g
8704
- ].filter(Boolean).join(" "), w = n && S ? `${S}-error` : void 0, T = r && S ? `${S}-hint` : void 0, E = w || T, D = u(null), O = (e) => {
8705
- D.current = e, typeof y == "function" ? y(e) : y && (y.current = e);
8706
- }, k = a(() => {
8707
- let e = D.current;
8742
+ b
8743
+ ].filter(Boolean).join(" "), O = n && E ? `${E}-error` : void 0, k = r && E ? `${E}-hint` : void 0, A = O || k, j = u(null), M = (e) => {
8744
+ j.current = e, typeof w == "function" ? w(e) : w && (w.current = e);
8745
+ }, P = a(() => {
8746
+ let e = j.current;
8708
8747
  e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
8709
8748
  }, []);
8710
8749
  c(() => {
8711
- h && k();
8750
+ _ && P();
8712
8751
  }, [
8713
- h,
8714
- k,
8715
- v.value
8752
+ _,
8753
+ P,
8754
+ C.value
8716
8755
  ]);
8717
- let A = (e) => {
8718
- h && k(), v.onInput?.(e);
8756
+ let [F, I] = d(() => String(C.value ?? C.defaultValue ?? "").length);
8757
+ o(() => {
8758
+ !v || C.value === void 0 || I(String(C.value ?? "").length);
8759
+ }, [C.value, v]);
8760
+ let L = (e) => {
8761
+ _ && P(), v && I(e.target.value.length), C.onInput?.(e);
8719
8762
  };
8720
8763
  return /* @__PURE__ */ m(x.Group, {
8721
- className: `field${_ ? ` ${_}` : ""}`,
8764
+ className: `field${S ? ` ${S}` : ""}`,
8722
8765
  children: [
8723
8766
  e && /* @__PURE__ */ m(x.Label, {
8724
8767
  className: "label",
8725
- htmlFor: S,
8768
+ htmlFor: E,
8726
8769
  children: [
8727
8770
  e,
8728
8771
  t && /* @__PURE__ */ p(Z, {}),
8729
- i && /* @__PURE__ */ p(Ht, {
8730
- label: o,
8772
+ i && /* @__PURE__ */ p(Wt, {
8773
+ label: l,
8731
8774
  children: i
8732
8775
  })
8733
8776
  ]
8734
8777
  }),
8735
8778
  /* @__PURE__ */ p(x.Control, {
8736
8779
  as: "textarea",
8737
- id: S,
8738
- name: d,
8739
- rows: f,
8740
- className: C,
8780
+ id: E,
8781
+ name: h,
8782
+ rows: g,
8783
+ className: D,
8741
8784
  "aria-invalid": n ? "true" : "false",
8742
- "aria-describedby": E,
8785
+ "aria-describedby": A,
8743
8786
  required: t,
8744
- ...v,
8745
- ref: O,
8746
- onInput: A
8787
+ maxLength: y,
8788
+ ...C,
8789
+ ref: M,
8790
+ onInput: L
8747
8791
  }),
8748
8792
  n ? /* @__PURE__ */ p("div", {
8749
8793
  className: "field-error",
8750
- id: w,
8794
+ id: O,
8751
8795
  children: n
8752
8796
  }) : r ? /* @__PURE__ */ p("div", {
8753
8797
  className: "field-hint",
8754
- id: T,
8798
+ id: k,
8755
8799
  children: r
8756
- }) : null
8800
+ }) : null,
8801
+ v && /* @__PURE__ */ m("div", {
8802
+ className: `field-count${y && F >= y ? " at-limit" : ""}`,
8803
+ children: [F, y ? ` / ${y}` : ""]
8804
+ })
8757
8805
  ]
8758
8806
  });
8759
- }), ai = {
8807
+ }), si = {
8760
8808
  done: "check",
8761
8809
  current: "clock",
8762
8810
  "on-hold": "lock",
@@ -8765,7 +8813,7 @@ var ri = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8765
8813
  skipped: "arrow-right",
8766
8814
  upcoming: null
8767
8815
  };
8768
- function oi({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
8816
+ function ci({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
8769
8817
  N("AppTimeline", o);
8770
8818
  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;
8771
8819
  return /* @__PURE__ */ p("ol", {
@@ -8776,7 +8824,7 @@ function oi({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
8776
8824
  } : a,
8777
8825
  ...o,
8778
8826
  children: e.map((e, t) => {
8779
- let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? ai[n] : void 0) : e.icon || "circle";
8827
+ let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? si[n] : void 0) : e.icon || "circle";
8780
8828
  return /* @__PURE__ */ m("li", {
8781
8829
  className: `timeline-item${r}${i}`,
8782
8830
  children: [/* @__PURE__ */ p("span", {
@@ -8834,7 +8882,7 @@ function oi({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
8834
8882
  }
8835
8883
  //#endregion
8836
8884
  //#region src/components/AppTimePicker.jsx
8837
- var si = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, step: u, format: d = "24", placeholder: f = "Select time", disabled: h, size: g, id: _, ariaLabel: v, className: y = "", ...b }, x) {
8885
+ var li = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, step: u, format: d = "24", placeholder: f = "Select time", disabled: h, size: g, id: _, ariaLabel: v, className: y = "", ...b }, x) {
8838
8886
  N("AppTimePicker", b);
8839
8887
  let S = s(), C = _ || o || S, { setRef: w } = Q({
8840
8888
  ref: x,
@@ -8879,32 +8927,32 @@ var si = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
8879
8927
  })
8880
8928
  ]
8881
8929
  });
8882
- }), ci = 6, $ = [], li = /* @__PURE__ */ new Set(), ui = /* @__PURE__ */ new Map(), di = 0;
8883
- function fi() {
8884
- for (let e of li) e($);
8930
+ }), ui = 6, $ = [], di = /* @__PURE__ */ new Set(), fi = /* @__PURE__ */ new Map(), pi = 0;
8931
+ function mi() {
8932
+ for (let e of di) e($);
8885
8933
  }
8886
- function pi(e) {
8887
- let t = ui.get(e);
8888
- t !== void 0 && (clearTimeout(t), ui.delete(e));
8934
+ function hi(e) {
8935
+ let t = fi.get(e);
8936
+ t !== void 0 && (clearTimeout(t), fi.delete(e));
8889
8937
  }
8890
- function mi(e) {
8891
- if (e.length <= ci) return e;
8938
+ function gi(e) {
8939
+ if (e.length <= ui) return e;
8892
8940
  let t = [...e];
8893
- for (; t.length > ci;) {
8941
+ for (; t.length > ui;) {
8894
8942
  let e = t.findIndex((e) => e.duration !== 0);
8895
8943
  t.splice(e === -1 ? 0 : e, 1);
8896
8944
  }
8897
8945
  return t;
8898
8946
  }
8899
- function hi(e) {
8900
- return li.add(e), e($), () => li.delete(e);
8947
+ function _i(e) {
8948
+ return di.add(e), e($), () => di.delete(e);
8901
8949
  }
8902
- function gi(e, t, n = {}) {
8950
+ function vi(e, t, n = {}) {
8903
8951
  let r = n.id, i = r || typeof e != "string" ? void 0 : `${t}:${e}`;
8904
8952
  if (r) {
8905
8953
  let i = $.find((e) => e.externalId === r);
8906
8954
  if (i) {
8907
- pi(i.id);
8955
+ hi(i.id);
8908
8956
  let r = n.duration === void 0 ? 5e3 : n.duration;
8909
8957
  $ = $.map((a) => a.id === i.id ? {
8910
8958
  ...a,
@@ -8917,12 +8965,12 @@ function gi(e, t, n = {}) {
8917
8965
  shape: n.shape,
8918
8966
  surface: n.surface,
8919
8967
  progress: n.progress
8920
- } : a), fi(), r > 0 && ui.set(i.id, setTimeout(() => _i(i.id), r));
8968
+ } : a), mi(), r > 0 && fi.set(i.id, setTimeout(() => yi(i.id), r));
8921
8969
  return;
8922
8970
  }
8923
8971
  } else if (i && $.some((e) => e.key === i)) return;
8924
- let a = ++di, o = n.duration === void 0 ? 5e3 : n.duration;
8925
- $ = mi([...$, {
8972
+ let a = ++pi, o = n.duration === void 0 ? 5e3 : n.duration;
8973
+ $ = gi([...$, {
8926
8974
  id: a,
8927
8975
  externalId: r,
8928
8976
  message: e,
@@ -8935,19 +8983,19 @@ function gi(e, t, n = {}) {
8935
8983
  surface: n.surface,
8936
8984
  progress: n.progress,
8937
8985
  key: i
8938
- }]), fi(), o > 0 && ui.set(a, setTimeout(() => _i(a), o));
8986
+ }]), mi(), o > 0 && fi.set(a, setTimeout(() => yi(a), o));
8939
8987
  }
8940
- function _i(e) {
8941
- pi(e);
8988
+ function yi(e) {
8989
+ hi(e);
8942
8990
  let t = $.filter((t) => t.id !== e);
8943
- t.length !== $.length && ($ = t, fi());
8991
+ t.length !== $.length && ($ = t, mi());
8944
8992
  }
8945
- function vi() {
8946
- $.length !== 0 && ($ = [], fi());
8993
+ function bi() {
8994
+ $.length !== 0 && ($ = [], mi());
8947
8995
  }
8948
8996
  //#endregion
8949
8997
  //#region src/components/AppToast.jsx
8950
- var yi = {
8998
+ var xi = {
8951
8999
  success: {
8952
9000
  icon: "check-circle",
8953
9001
  assertive: !1
@@ -8964,7 +9012,7 @@ var yi = {
8964
9012
  icon: "alert-circle",
8965
9013
  assertive: !0
8966
9014
  }
8967
- }, bi = {
9015
+ }, Si = {
8968
9016
  "top-start": "top-0 start-0",
8969
9017
  "top-center": "top-0 start-50 translate-middle-x",
8970
9018
  "top-end": "top-0 end-0",
@@ -8972,21 +9020,21 @@ var yi = {
8972
9020
  "bottom-start": "bottom-0 start-0",
8973
9021
  "bottom-center": "bottom-0 start-50 translate-middle-x",
8974
9022
  "bottom-end": "bottom-0 end-0"
8975
- }, xi = 64, Si = /* @__PURE__ */ new Set([
9023
+ }, Ci = 64, wi = /* @__PURE__ */ new Set([
8976
9024
  "rise",
8977
9025
  "organic",
8978
9026
  "jelly",
8979
9027
  "spring"
8980
- ]), Ci = /* @__PURE__ */ new Set([
9028
+ ]), Ti = /* @__PURE__ */ new Set([
8981
9029
  "rounded",
8982
9030
  "pill",
8983
9031
  "sharp"
8984
- ]), wi = /* @__PURE__ */ new Set(["auto", "inverse"]);
8985
- function Ti({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...s }) {
8986
- N("AppToast", s), W("AppToast", "position", e, Object.keys(bi)), W("AppToast", "animation", n, Si), W("AppToast", "shape", r, Ci), W("AppToast", "surface", i, wi);
9032
+ ]), Ei = /* @__PURE__ */ new Set(["auto", "inverse"]);
9033
+ function Di({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...s }) {
9034
+ N("AppToast", s), W("AppToast", "position", e, Object.keys(Si)), W("AppToast", "animation", n, wi), W("AppToast", "shape", r, Ti), W("AppToast", "surface", i, Ei);
8987
9035
  let [c, l] = d([]);
8988
- o(() => hi(l), []);
8989
- let u = Math.max(0, c.length - t), f = u ? c.slice(u) : c, h = bi[e] ?? bi["bottom-end"];
9036
+ o(() => _i(l), []);
9037
+ let u = Math.max(0, c.length - t), f = u ? c.slice(u) : c, h = Si[e] ?? Si["bottom-end"];
8990
9038
  return /* @__PURE__ */ m("div", {
8991
9039
  ...s,
8992
9040
  className: `wui-toast-container toast-container position-fixed ${h} p-3 ${a}`.trim(),
@@ -8998,7 +9046,7 @@ function Ti({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
8998
9046
  u,
8999
9047
  " more"
9000
9048
  ]
9001
- }), f.map((e) => /* @__PURE__ */ p(Ei, {
9049
+ }), f.map((e) => /* @__PURE__ */ p(Oi, {
9002
9050
  toast: e,
9003
9051
  defaultAnimation: n,
9004
9052
  defaultShape: r,
@@ -9006,8 +9054,8 @@ function Ti({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
9006
9054
  }, e.id))]
9007
9055
  });
9008
9056
  }
9009
- function Ei({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
9010
- let i = yi[e.variant] ?? yi.success, a = Si.has(e.animation) ? e.animation : t, o = Ci.has(e.shape) ? e.shape : n, s = wi.has(e.surface) ? e.surface : r, c = (a !== "rise" && Si.has(a) ? ` wui-toast--anim-${a}` : "") + (o !== "rounded" && Ci.has(o) ? ` wui-toast--shape-${o}` : "") + (s === "inverse" ? " wui-toast--surface-inverse" : ""), l = e.duration === 0, [f, h] = d(0), [g, _] = d(!1), v = u(null), y = () => _i(e.id), b = (e) => {
9057
+ function Oi({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
9058
+ let i = xi[e.variant] ?? xi.success, a = wi.has(e.animation) ? e.animation : t, o = Ti.has(e.shape) ? e.shape : n, s = Ei.has(e.surface) ? e.surface : r, c = (a !== "rise" && wi.has(a) ? ` wui-toast--anim-${a}` : "") + (o !== "rounded" && Ti.has(o) ? ` wui-toast--shape-${o}` : "") + (s === "inverse" ? " wui-toast--surface-inverse" : ""), l = e.duration === 0, [f, h] = d(0), [g, _] = d(!1), v = u(null), y = () => yi(e.id), b = (e) => {
9011
9059
  e.button !== 0 || e.target.closest("button") || (v.current = e.clientX, _(!0), e.currentTarget.setPointerCapture?.(e.pointerId));
9012
9060
  }, x = (e) => {
9013
9061
  v.current !== null && h(e.clientX - v.current);
@@ -9016,7 +9064,7 @@ function Ei({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
9016
9064
  }, C = (e) => {
9017
9065
  if (v.current === null) return;
9018
9066
  let t = e.clientX - v.current;
9019
- if (Math.abs(t) > xi) {
9067
+ if (Math.abs(t) > Ci) {
9020
9068
  y();
9021
9069
  return;
9022
9070
  }
@@ -9099,7 +9147,7 @@ function Ei({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
9099
9147
  }
9100
9148
  //#endregion
9101
9149
  //#region src/components/AppToolbar.jsx
9102
- function Di({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
9150
+ function ki({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
9103
9151
  N("AppToolbar", u);
9104
9152
  let f = s(), h = o || f, [g, _] = d(r), v = n === void 0 ? g : n;
9105
9153
  return /* @__PURE__ */ m("div", {
@@ -9157,7 +9205,7 @@ function Di({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
9157
9205
  }
9158
9206
  //#endregion
9159
9207
  //#region src/components/AppWizard.jsx
9160
- var Oi = i(function({ steps: t = [], children: n, active: r, defaultActive: i = 0, onStepChange: a, onFinish: s, onSkip: c, beforeNext: l, onInvalid: d, variant: f = "steps", tone: m, orientation: h = "horizontal", skippable: g = !1, nonLinear: _ = !1, hideStepper: v = !1, disabled: y = !1, label: b = "Progress", backLabel: x = "Back", nextLabel: S = "Next", skipLabel: C = "Skip", finishLabel: w = "Finish", className: T = "", ...E }, D) {
9208
+ var Ai = i(function({ steps: t = [], children: n, active: r, defaultActive: i = 0, onStepChange: a, onFinish: s, onSkip: c, beforeNext: l, onInvalid: d, variant: f = "steps", tone: m, orientation: h = "horizontal", skippable: g = !1, nonLinear: _ = !1, hideStepper: v = !1, disabled: y = !1, label: b = "Progress", backLabel: x = "Back", nextLabel: S = "Next", skipLabel: C = "Skip", finishLabel: w = "Finish", className: T = "", ...E }, D) {
9161
9209
  N("AppWizard", E);
9162
9210
  let O = u(null), k = (e) => {
9163
9211
  O.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
@@ -9212,7 +9260,7 @@ var Oi = i(function({ steps: t = [], children: n, active: r, defaultActive: i =
9212
9260
  });
9213
9261
  //#endregion
9214
9262
  //#region src/components/AppWorkspaceSwitcher.jsx
9215
- function ki({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAction: i, linkComponent: a, searchable: s = !1, onCreate: c, canCreate: f = !1, createLabel: h = "Create workspace", compact: g = !1, size: _ = "md", ariaLabel: v, ...y }) {
9263
+ function ji({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAction: i, linkComponent: a, searchable: s = !1, onCreate: c, canCreate: f = !1, createLabel: h = "Create workspace", compact: g = !1, size: _ = "md", ariaLabel: v, ...y }) {
9216
9264
  let { onToggle: x, ...S } = y;
9217
9265
  N("AppWorkspaceSwitcher", S);
9218
9266
  let [C, w] = d(""), [T, E] = d(!1), D = u(null), O = e.find((e) => e.id === t) ?? e[0], k = l(() => {
@@ -9240,7 +9288,7 @@ function ki({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9240
9288
  },
9241
9289
  ...S,
9242
9290
  children: [/* @__PURE__ */ p(b.Toggle, {
9243
- as: Ni,
9291
+ as: Fi,
9244
9292
  compact: g,
9245
9293
  tenant: O,
9246
9294
  "aria-label": j
@@ -9275,7 +9323,7 @@ function ki({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9275
9323
  className: `workspace-switcher-option${e.id === O?.id ? " is-active" : ""}`,
9276
9324
  onClick: () => n?.(e),
9277
9325
  children: [
9278
- /* @__PURE__ */ p(ji, { tenant: e }),
9326
+ /* @__PURE__ */ p(Ni, { tenant: e }),
9279
9327
  /* @__PURE__ */ p("span", {
9280
9328
  className: "workspace-switcher-option-name",
9281
9329
  children: e.name
@@ -9307,17 +9355,17 @@ function ki({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9307
9355
  }) : null,
9308
9356
  i ? /* @__PURE__ */ p("div", {
9309
9357
  className: "workspace-switcher-footer",
9310
- children: Mi(i, a)
9358
+ children: Pi(i, a)
9311
9359
  }) : null
9312
9360
  ]
9313
9361
  })]
9314
9362
  });
9315
9363
  }
9316
- function Ai(e) {
9364
+ function Mi(e) {
9317
9365
  let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
9318
9366
  return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
9319
9367
  }
9320
- function ji({ tenant: e }) {
9368
+ function Ni({ tenant: e }) {
9321
9369
  return e?.logoUrl ? /* @__PURE__ */ p("img", {
9322
9370
  className: "workspace-switcher-mark",
9323
9371
  src: e.logoUrl,
@@ -9325,10 +9373,10 @@ function ji({ tenant: e }) {
9325
9373
  loading: "lazy"
9326
9374
  }) : /* @__PURE__ */ p("span", {
9327
9375
  className: "workspace-switcher-mark",
9328
- children: Ai(e?.name)
9376
+ children: Mi(e?.name)
9329
9377
  });
9330
9378
  }
9331
- function Mi(e, t) {
9379
+ function Pi(e, t) {
9332
9380
  if (typeof e != "object" || !e || !("label" in e)) return e;
9333
9381
  let { label: n, icon: r, href: i } = e;
9334
9382
  return /* @__PURE__ */ m(i ? t ?? "a" : "button", {
@@ -9340,7 +9388,7 @@ function Mi(e, t) {
9340
9388
  }) : null, n]
9341
9389
  });
9342
9390
  }
9343
- var Ni = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
9391
+ var Fi = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
9344
9392
  return /* @__PURE__ */ m("button", {
9345
9393
  ref: a,
9346
9394
  type: "button",
@@ -9348,7 +9396,7 @@ var Ni = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
9348
9396
  "aria-haspopup": "true",
9349
9397
  "aria-label": n,
9350
9398
  ...i,
9351
- children: [/* @__PURE__ */ p(ji, { tenant: t }), e ? null : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
9399
+ children: [/* @__PURE__ */ p(Ni, { tenant: t }), e ? null : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
9352
9400
  className: "workspace-switcher-trigger-name",
9353
9401
  children: t?.name
9354
9402
  }), /* @__PURE__ */ p(V, {
@@ -9360,36 +9408,36 @@ var Ni = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
9360
9408
  });
9361
9409
  //#endregion
9362
9410
  //#region src/components/toast.js
9363
- function Pi() {
9364
- vi();
9411
+ function Ii() {
9412
+ bi();
9365
9413
  }
9366
- var Fi = /* @__PURE__ */ new Set([
9414
+ var Li = /* @__PURE__ */ new Set([
9367
9415
  "success",
9368
9416
  "info",
9369
9417
  "warning",
9370
9418
  "error"
9371
9419
  ]);
9372
- function Ii(e, t = "info") {
9420
+ function Ri(e, t = "info") {
9373
9421
  let n = "info", r = {};
9374
- typeof t == "string" ? n = Fi.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = Fi.has(r.variant) ? r.variant : "info"), gi(e, n, r);
9422
+ typeof t == "string" ? n = Li.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = Li.has(r.variant) ? r.variant : "info"), vi(e, n, r);
9375
9423
  }
9376
- function Li(e, t = {}) {
9377
- gi(e, "error", t);
9424
+ function zi(e, t = {}) {
9425
+ vi(e, "error", t);
9378
9426
  }
9379
- Ii.promise = (e, t, n = {}) => {
9427
+ Ri.promise = (e, t, n = {}) => {
9380
9428
  let r = n.id || `promise-${Date.now()}-${Math.random()}`;
9381
- return Ii(t.loading || "Loading...", {
9429
+ return Ri(t.loading || "Loading...", {
9382
9430
  ...n,
9383
9431
  variant: "info",
9384
9432
  id: r,
9385
9433
  duration: 0
9386
- }), e.then((e) => (Ii((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
9434
+ }), e.then((e) => (Ri((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
9387
9435
  ...n,
9388
9436
  variant: "success",
9389
9437
  id: r,
9390
9438
  duration: n.duration === void 0 ? 5e3 : n.duration
9391
9439
  }), e)).catch((e) => {
9392
- throw Ii((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
9440
+ throw Ri((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
9393
9441
  ...n,
9394
9442
  variant: "error",
9395
9443
  id: r,
@@ -9399,7 +9447,7 @@ Ii.promise = (e, t, n = {}) => {
9399
9447
  };
9400
9448
  //#endregion
9401
9449
  //#region src/lib/usePagination.js
9402
- function Ri(e, t = 10) {
9450
+ function Bi(e, t = 10) {
9403
9451
  let [n, r] = d(1), [i, a] = d(t), s = e.length, c = Math.max(1, Math.ceil(s / i));
9404
9452
  o(() => {
9405
9453
  n > c && r(c);
@@ -9425,4 +9473,4 @@ function Ri(e, t = 10) {
9425
9473
  };
9426
9474
  }
9427
9475
  //#endregion
9428
- export { ue as AppAccordion, de as AppActionIcon, U as AppAlert, Se as AppAsyncBlock, Zt as AppAutocomplete, rn as AppAvatar, sn as AppAvatarGroup, cn as AppBadge, un as AppBanner, dn as AppBreadcrumbs, ye as AppButton, pn as AppCallout, hn as AppCard, _n as AppCheckbox, vn as AppChip, yn as AppChoiceCard, bn as AppChoiceChip, xn as AppColorField, Sn as AppCompareTable, jn as AppConfirmDialog, Nn as AppCopyButton, Un as AppDataTable, Wn as AppDatePicker, Gn as AppDateRangePicker, qn as AppDescriptions, Xn as AppDropdown, be as AppEmptyState, rr as AppFileAttachment, ar as AppFilePicker, or as AppFloatingDock, sr as AppFormActions, cr as AppFormRow, lr as AppFormSection, V as AppIcon, ur as AppInfoList, Ht as AppInfoTip, Cn as AppInput, hr as AppKpiTile, _r as AppLogoPicker, xr as AppMeter, On as AppModal, Sr as AppMultiSelect, Cr as AppNumberInput, wr as AppOtpInput, Tr as AppPageHeader, Er as AppPagination, Dr as AppPhoneNumberInput, Vt as AppPopover, Or as AppPricingCard, jr as AppProgress, Mr as AppRadio, Nr as AppRepeater, Z as AppRequiredMark, Pr as AppResourceCard, Ir as AppResult, Lr as AppScrollbar, Rr as AppSearch, zr as AppSegmented, Vr as AppSelect, Rn as AppSelectMini, Hr as AppShell, Gr as AppSidebarMenu, Pn as AppSkeleton, Fn as AppSkeletonRows, Kr as AppSlider, xe as AppSpinner, Jr as AppSplash, Yr as AppStatusBadge, Xr as AppStepper, Qr as AppSwitch, $r as AppTableEmptyState, Bn as AppTablePagination, ni as AppTabs, ri as AppTagInput, ii as AppTextarea, si as AppTimePicker, oi as AppTimeline, Ti as AppToast, Di as AppToolbar, ti as AppTooltip, Oi as AppWizard, ki as AppWorkspaceSwitcher, An as MODAL_ICONS, Pi as dismissAll, Li as errorToast, se as iconNames, le as registerIcons, Ii as toast, Ri as usePagination };
9476
+ export { ue as AppAccordion, de as AppActionIcon, me as AppAlert, Se as AppAsyncBlock, $t as AppAutocomplete, on as AppAvatar, ln as AppAvatarGroup, un as AppBadge, fn as AppBanner, pn as AppBreadcrumbs, ye as AppButton, hn as AppCallout, _n as AppCard, yn as AppCheckbox, bn as AppChip, xn as AppChoiceCard, Sn as AppChoiceChip, Cn as AppColorField, wn as AppCompareTable, Nn as AppConfirmDialog, Fn as AppCopyButton, Gn as AppDataTable, Kn as AppDatePicker, qn as AppDateRangePicker, Yn as AppDescriptions, Qn as AppDropdown, be as AppEmptyState, ar as AppFileAttachment, sr as AppFilePicker, cr as AppFloatingDock, lr as AppFormActions, ur as AppFormRow, dr as AppFormSection, V as AppIcon, fr as AppInfoList, Wt as AppInfoTip, Tn as AppInput, _r as AppKpiTile, yr as AppLogoPicker, Cr as AppMeter, An as AppModal, wr as AppMultiSelect, Tr as AppNumberInput, Er as AppOtpInput, Dr as AppPageHeader, Or as AppPagination, kr as AppPhoneNumberInput, Ut as AppPopover, Ar as AppPricingCard, Nr as AppProgress, Pr as AppRadio, Fr as AppRepeater, Z as AppRequiredMark, Ir as AppResourceCard, Rr as AppResult, zr as AppScrollbar, Br as AppSearch, Vr as AppSegmented, Ur as AppSelect, Bn as AppSelectMini, Wr as AppShell, qr as AppSidebarMenu, In as AppSkeleton, Ln as AppSkeletonRows, Jr as AppSlider, xe as AppSpinner, Xr as AppSplash, Zr as AppStatusBadge, Qr as AppStepper, ei as AppSwitch, ti as AppTableEmptyState, Hn as AppTablePagination, ii as AppTabs, ai as AppTagInput, oi as AppTextarea, li as AppTimePicker, ci as AppTimeline, Di as AppToast, ki as AppToolbar, ri as AppTooltip, Ai as AppWizard, ji as AppWorkspaceSwitcher, Mn as MODAL_ICONS, Ii as dismissAll, zi as errorToast, se as iconNames, le as registerIcons, Ri as toast, Bi as usePagination };