@webority/ui-react 0.8.2 → 0.8.3

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
@@ -278,36 +278,53 @@ function z({ items: e = [], multiple: t = !1, id: n, className: r = "", ...i })
278
278
  }
279
279
  //#endregion
280
280
  //#region src/components/AppAlert.jsx
281
- function B(e) {
282
- return e ? typeof e == "string" ? /* @__PURE__ */ p("span", {
281
+ var B = {
282
+ info: "info-lg",
283
+ success: "check-lg",
284
+ warning: "exclamation-triangle-fill",
285
+ danger: "x-lg"
286
+ };
287
+ function ee(e, t, n, r) {
288
+ return n ? /* @__PURE__ */ p("span", {
289
+ className: "alert-icon alert-icon-image",
290
+ children: /* @__PURE__ */ p("img", {
291
+ src: n,
292
+ alt: r
293
+ })
294
+ }) : e ? typeof e == "string" ? /* @__PURE__ */ p("span", {
283
295
  className: "alert-icon",
284
296
  children: /* @__PURE__ */ p(I, {
285
297
  name: e,
286
- size: 18
298
+ size: t
287
299
  })
288
300
  }) : /* @__PURE__ */ p("span", {
289
301
  className: "alert-icon",
290
302
  children: e
291
303
  }) : null;
292
304
  }
293
- function ee({ variant: e = "info", children: t, title: n, icon: r, className: i = "", onClose: a, dismissible: o, role: s = "alert", ...c }) {
294
- j("AppAlert", c);
295
- let l = !!r, u = n ? /* @__PURE__ */ p("div", {
305
+ function V({ 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 }) {
306
+ j("AppAlert", d);
307
+ let g = r === void 0 ? B[e] : r === "none" ? null : r, _ = !!i || !!g, v = n ? /* @__PURE__ */ p("div", {
296
308
  className: "alert-heading",
297
309
  children: n
298
- }) : null;
310
+ }) : null, y = _ && !!v && !!t, b = y ? 13 : 11;
299
311
  return /* @__PURE__ */ p(h, {
300
312
  variant: e,
301
- className: [l ? "alert-has-icon" : "", i].filter(Boolean).join(" ") || void 0,
302
- onClose: a,
303
- dismissible: o ?? typeof a == "function",
313
+ className: [
314
+ _ ? "alert-has-icon" : "",
315
+ y ? "alert-stack" : "",
316
+ l ? "" : "alert-borderless",
317
+ o
318
+ ].filter(Boolean).join(" ") || void 0,
319
+ onClose: s,
320
+ dismissible: c ?? typeof s == "function",
304
321
  transition: !1,
305
- role: s,
306
- ...c,
307
- children: l ? /* @__PURE__ */ m(f, { children: [B(r), /* @__PURE__ */ m("div", {
322
+ role: u,
323
+ ...d,
324
+ children: _ ? /* @__PURE__ */ m(f, { children: [ee(g, b, i, a), /* @__PURE__ */ m("div", {
308
325
  className: "alert-content",
309
- children: [u, t]
310
- })] }) : /* @__PURE__ */ m(f, { children: [u, t] })
326
+ children: [v, t]
327
+ })] }) : /* @__PURE__ */ m(f, { children: [v, t] })
311
328
  });
312
329
  }
313
330
  //#endregion
@@ -340,7 +357,7 @@ function re(e, t, n) {
340
357
  children: e
341
358
  });
342
359
  }
343
- function V({ 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 }) {
360
+ function H({ 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 }) {
344
361
  j("AppButton", d);
345
362
  let f = [o ? "w-100" : "", u].filter(Boolean).join(" ");
346
363
  return /* @__PURE__ */ m(v, {
@@ -432,7 +449,7 @@ function oe({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
432
449
  icon: "alert-circle",
433
450
  title: "Something went wrong",
434
451
  text: t,
435
- action: i ? /* @__PURE__ */ p(V, {
452
+ action: i ? /* @__PURE__ */ p(H, {
436
453
  variant: "secondary",
437
454
  onClick: i,
438
455
  children: "Retry"
@@ -478,21 +495,21 @@ var ce = class extends HTMLElement {
478
495
  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>`;
479
496
  }
480
497
  }, le = 4;
481
- function H(e, t, n = {}) {
498
+ function U(e, t, n = {}) {
482
499
  if (!e || !t) return;
483
500
  let r = e.getBoundingClientRect(), i = t.offsetHeight, a = window.innerHeight - r.bottom, o = a < i + le && r.top > a;
484
501
  t.classList.toggle("drop-up", o), t.style.position = "fixed", t.style.top = o ? `${Math.max(le, r.top - i - le)}px` : `${r.bottom + le}px`, n.matchWidth && (t.style.width = `${r.width}px`);
485
502
  let s = t.offsetWidth, c = Math.min(r.left, window.innerWidth - s - le);
486
503
  t.style.left = `${Math.max(le, c)}px`;
487
504
  }
488
- function ue(e, t) {
489
- U(e), e._reanchor = t, window.addEventListener("resize", e._reanchor), window.addEventListener("scroll", e._reanchor, !0);
505
+ function W(e, t) {
506
+ ue(e), e._reanchor = t, window.addEventListener("resize", e._reanchor), window.addEventListener("scroll", e._reanchor, !0);
490
507
  }
491
- function U(e) {
508
+ function ue(e) {
492
509
  e?._reanchor && (window.removeEventListener("resize", e._reanchor), window.removeEventListener("scroll", e._reanchor, !0), e._reanchor = null);
493
510
  }
494
511
  var de = "data-wui-mirror";
495
- function W(e, t) {
512
+ function G(e, t) {
496
513
  let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${de}]`);
497
514
  if (!n) {
498
515
  r?.remove();
@@ -503,7 +520,7 @@ function W(e, t) {
503
520
  for (let t of e.attributes) t.name.startsWith("data-val") && r.setAttribute(t.name, t.value);
504
521
  r.disabled = e.hasAttribute("disabled");
505
522
  }
506
- function G(e) {
523
+ function fe(e) {
507
524
  let { getVisibleOptions: t, getActive: n, setActive: r, onEnter: i, onEscape: a, onTypeahead: o, typeaheadMs: s = 500 } = e, c = "", l = null, u = () => {
508
525
  clearTimeout(l), l = null, c = "";
509
526
  };
@@ -532,15 +549,15 @@ function G(e) {
532
549
  teardown: u
533
550
  };
534
551
  }
535
- var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), pe = (e) => {
552
+ var pe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), me = (e) => {
536
553
  if (!e) return "";
537
554
  let t = String(e).toLowerCase().replace(/[^a-z0-9-]/g, "");
538
555
  return t ? `<i class="bi bi-${t}" aria-hidden="true"></i>` : "";
539
- }, me = (e) => {
556
+ }, he = (e) => {
540
557
  if (e == null) return "";
541
- let t = e[fe] ? String(e.label ?? "") : K(e.label), n = pe(e.icon);
558
+ let t = e[pe] ? String(e.label ?? "") : K(e.label), n = me(e.icon);
542
559
  return n ? `<span class="wui-opt-label">${n}${t}</span>` : t;
543
- }, he = class extends HTMLElement {
560
+ }, ge = class extends HTMLElement {
544
561
  static formAssociated = !0;
545
562
  _accessibleName() {
546
563
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
@@ -590,14 +607,14 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
590
607
  return this._value;
591
608
  }
592
609
  set value(e) {
593
- this._value = e == null ? "" : String(e), W(this, this._value);
610
+ this._value = e == null ? "" : String(e), G(this, this._value);
594
611
  let t = this._readOptions().find((e) => String(e.value) === this._value);
595
- this._label = t ? _e(t.label) : "", this._syncInput(), this._renderOptions("");
612
+ this._label = t ? ve(t.label) : "", this._syncInput(), this._renderOptions("");
596
613
  }
597
614
  set options(e) {
598
615
  this._optionsProp = Array.isArray(e) ? e : [];
599
616
  let t = this._readOptions().find((e) => String(e.value) === this._value);
600
- t && (this._label = _e(t.label)), this._renderOptions(), this._syncInput();
617
+ t && (this._label = ve(t.label)), this._renderOptions(), this._syncInput();
601
618
  }
602
619
  get options() {
603
620
  return this._readOptions();
@@ -616,7 +633,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
616
633
  }
617
634
  _matchesKnownOption(e) {
618
635
  let t = e.toLowerCase();
619
- return this._readOptions().some((e) => _e(e.label).toLowerCase() === t || String(e.value ?? "").toLowerCase() === t);
636
+ return this._readOptions().some((e) => ve(e.label).toLowerCase() === t || String(e.value ?? "").toLowerCase() === t);
620
637
  }
621
638
  get _minChars() {
622
639
  return Math.max(0, Number(this.getAttribute("min-chars")) || +!!this._remote);
@@ -634,7 +651,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
634
651
  value: e.getAttribute("value") ?? e.textContent.trim(),
635
652
  label: e.innerHTML,
636
653
  icon: e.getAttribute("icon") || void 0,
637
- [fe]: !0,
654
+ [pe]: !0,
638
655
  selected: e.hasAttribute("selected")
639
656
  })));
640
657
  }
@@ -648,17 +665,17 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
648
665
  let r = `${this.id}-listbox`;
649
666
  this._listboxId = r, this.innerHTML = `
650
667
  <div class="search-select${n}">
651
- <div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${ge(r)}" aria-label="${ge(this._accessibleName())}">
652
- <input class="search-select-input search-select-ac-input" placeholder="${ge(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
668
+ <div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${_e(r)}" aria-label="${_e(this._accessibleName())}">
669
+ <input class="search-select-input search-select-ac-input" placeholder="${_e(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
653
670
  <span class="search-select-spinner spinner-border spinner-border-sm" role="status" aria-hidden="true" hidden></span>
654
671
  <button type="button" class="search-select-clear" aria-label="Clear" hidden><i class="bi bi-x" aria-hidden="true"></i></button>
655
672
  </div>
656
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${ge(r)}" tabindex="-1" hidden>
673
+ <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${_e(r)}" tabindex="-1" hidden>
657
674
  <div class="search-select-options"></div>
658
675
  <div class="search-select-empty" hidden>No matches</div>
659
676
  <div class="search-select-hint" hidden>Type to search…</div>
660
677
  </div>
661
- </div>`, this._rendered = !0, W(this, this._value), this._wire(), this._syncInput(), this._renderOptions();
678
+ </div>`, this._rendered = !0, G(this, this._value), this._wire(), this._syncInput(), this._renderOptions();
662
679
  }
663
680
  _refs() {
664
681
  return {
@@ -687,7 +704,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
687
704
  let t = this._refs();
688
705
  if (!t.optionsWrap) return;
689
706
  let n = e ?? (t.input ? t.input.value : ""), r = n.trim().toLowerCase(), i = this._readOptions();
690
- !this._remote && r && (i = i.filter((e) => _e(e.label).toLowerCase().includes(r)));
707
+ !this._remote && r && (i = i.filter((e) => ve(e.label).toLowerCase().includes(r)));
691
708
  let a = n.trim(), o = this._allowCustom && a && !this._matchesKnownOption(a) ? [...i, {
692
709
  value: a,
693
710
  custom: !0
@@ -696,10 +713,10 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
696
713
  let n = `${s}-opt-${t}`;
697
714
  if (e.custom) {
698
715
  let t = `Add “${K(e.value)}”`;
699
- return `<button type="button" role="option" id="${ge(n)}" class="search-select-option search-select-option-custom" data-value="${ge(e.value)}" data-custom="true" aria-selected="false">${t}</button>`;
716
+ return `<button type="button" role="option" id="${_e(n)}" class="search-select-option search-select-option-custom" data-value="${_e(e.value)}" data-custom="true" aria-selected="false">${t}</button>`;
700
717
  }
701
718
  let r = String(e.value) === String(this._value);
702
- return `<button type="button" role="option" id="${ge(n)}" class="search-select-option${r ? " selected" : ""}" data-value="${ge(e.value)}" aria-selected="${r}">${me(e)}</button>`;
719
+ return `<button type="button" role="option" id="${_e(n)}" class="search-select-option${r ? " selected" : ""}" data-value="${_e(e.value)}" aria-selected="${r}">${he(e)}</button>`;
703
720
  }).join(""), this._active = -1, t.control?.removeAttribute("aria-activedescendant");
704
721
  let c = r.length < this._minChars;
705
722
  t.hint && (t.hint.hidden = !(this._remote && c && !i.length)), t.empty && (t.empty.hidden = this._loading || o.length > 0 || this._remote && c);
@@ -708,7 +725,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
708
725
  this._teardown();
709
726
  let e = this._refs();
710
727
  if (!e.control || !e.input) return;
711
- let t = () => H(e.control, e.menu, { matchWidth: !0 }), n = () => this._optionEls().filter((e) => !e.hidden), r = (t) => {
728
+ let t = () => U(e.control, e.menu, { matchWidth: !0 }), n = () => this._optionEls().filter((e) => !e.hidden), r = (t) => {
712
729
  let r = n();
713
730
  this._active = t;
714
731
  for (let e of this._optionEls()) e.classList.remove("is-active");
@@ -719,12 +736,12 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
719
736
  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();
720
737
  }, s = (t) => {
721
738
  let n = t.dataset.custom === "true";
722
- this._value = t.dataset.value, this._label = n ? t.dataset.value : _e(t.innerHTML), W(this, this._value), e.input.value = this._label, this.dispatchEvent(new CustomEvent("change", {
739
+ this._value = t.dataset.value, this._label = n ? t.dataset.value : ve(t.innerHTML), G(this, this._value), e.input.value = this._label, this.dispatchEvent(new CustomEvent("change", {
723
740
  bubbles: !0,
724
741
  detail: { isCustom: n }
725
742
  })), o(), e.input.focus();
726
743
  }, c = (t) => {
727
- this._value = t, this._label = t, W(this, t), e.input.value = t, this.dispatchEvent(new CustomEvent("change", {
744
+ this._value = t, this._label = t, G(this, t), e.input.value = t, this.dispatchEvent(new CustomEvent("change", {
728
745
  bubbles: !0,
729
746
  detail: { isCustom: !0 }
730
747
  })), o();
@@ -742,7 +759,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
742
759
  }, this._timer = setTimeout(() => this._fireSearch(t, e), this._debounceMs);
743
760
  } else this._renderOptions(t);
744
761
  };
745
- this._navHandler = G({
762
+ this._navHandler = fe({
746
763
  getVisibleOptions: n,
747
764
  getActive: () => this._active,
748
765
  setActive: (e) => r(e),
@@ -782,11 +799,11 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
782
799
  let t = e.target.closest(".search-select-option");
783
800
  t && r(this._optionEls().indexOf(t));
784
801
  }), e.optionsWrap.addEventListener("mouseleave", () => r(-1)), e.clear?.addEventListener("click", () => {
785
- this._value = "", this._label = "", W(this, ""), e.input.value = "", e.clear.hidden = !0, this._renderOptions(""), this.dispatchEvent(new Event("change", { bubbles: !0 })), e.input.focus();
802
+ this._value = "", this._label = "", G(this, ""), e.input.value = "", e.clear.hidden = !0, this._renderOptions(""), this.dispatchEvent(new Event("change", { bubbles: !0 })), e.input.focus();
786
803
  }), this._bindGlobal = () => {
787
804
  this._teardown(), this._onDocClick = (e) => {
788
805
  i() && !this.contains(e.target) && o();
789
- }, document.addEventListener("click", this._onDocClick), ue(this, () => {
806
+ }, document.addEventListener("click", this._onDocClick), W(this, () => {
790
807
  i() && t();
791
808
  });
792
809
  }, this._bindGlobal();
@@ -801,12 +818,12 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
801
818
  }));
802
819
  }
803
820
  _teardown() {
804
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), U(this), clearTimeout(this._timer), this._navHandler?.teardown();
821
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), ue(this), clearTimeout(this._timer), this._navHandler?.teardown();
805
822
  }
806
823
  disconnectedCallback() {
807
824
  this._teardown();
808
825
  }
809
- }, ge = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), _e = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), ve = [
826
+ }, _e = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), ve = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), ye = [
810
827
  "January",
811
828
  "February",
812
829
  "March",
@@ -819,7 +836,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
819
836
  "October",
820
837
  "November",
821
838
  "December"
822
- ], ye = [
839
+ ], be = [
823
840
  "Su",
824
841
  "Mo",
825
842
  "Tu",
@@ -827,24 +844,24 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
827
844
  "Th",
828
845
  "Fr",
829
846
  "Sa"
830
- ], be = (e) => String(e).padStart(2, "0"), xe = (e, t, n) => `${e}-${be(t + 1)}-${be(n)}`, q = (e) => {
847
+ ], xe = (e) => String(e).padStart(2, "0"), Se = (e, t, n) => `${e}-${xe(t + 1)}-${xe(n)}`, q = (e) => {
831
848
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e || "");
832
849
  return t ? {
833
850
  y: +t[1],
834
851
  m: t[2] - 1,
835
852
  d: +t[3]
836
853
  } : null;
837
- }, Se = (e) => {
854
+ }, Ce = (e) => {
838
855
  let t = q(e);
839
- return t ? `${be(t.d)} ${ve[t.m].slice(0, 3)} ${t.y}` : "";
840
- }, Ce = (e, t) => new Date(e, t + 1, 0).getDate(), J = (e, t) => {
856
+ return t ? `${xe(t.d)} ${ye[t.m].slice(0, 3)} ${t.y}` : "";
857
+ }, we = (e, t) => new Date(e, t + 1, 0).getDate(), J = (e, t) => {
841
858
  for (; t < 0;) t += 12, --e;
842
859
  for (; t > 11;) t -= 12, e += 1;
843
860
  return {
844
861
  y: e,
845
862
  m: t
846
863
  };
847
- }, we = class extends HTMLElement {
864
+ }, Te = class extends HTMLElement {
848
865
  static formAssociated = !0;
849
866
  static get observedAttributes() {
850
867
  return [
@@ -887,7 +904,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
887
904
  return this._value;
888
905
  }
889
906
  set value(e) {
890
- this._value = e || "", W(this, this._value), this._syncTrigger();
907
+ this._value = e || "", G(this, this._value), this._syncTrigger();
891
908
  }
892
909
  _firstDay() {
893
910
  let e = Number.parseInt(this.getAttribute("first-day") ?? "", 10);
@@ -901,20 +918,20 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
901
918
  this.innerHTML = `
902
919
  <div class="datepicker">
903
920
  <button type="button" class="input datepicker-trigger${r}${t ? " has-value" : ""}" aria-haspopup="dialog" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${i ? ` aria-label="${K(i)}"` : ""}${a ? ` aria-describedby="${K(a)}"` : ""}>
904
- <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? Se(this._value) : K(e)}</span>
921
+ <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? Ce(this._value) : K(e)}</span>
905
922
  <i class="bi bi-calendar3" aria-hidden="true"></i>
906
923
  </button>
907
924
  <div class="datepicker-pop" role="dialog" aria-modal="false" hidden></div>
908
- </div>`, this._rendered = !0, W(this, this._value), this._wire();
925
+ </div>`, this._rendered = !0, G(this, this._value), this._wire();
909
926
  }
910
927
  _syncFormValue() {
911
- W(this, this._value);
928
+ G(this, this._value);
912
929
  }
913
930
  _syncTrigger() {
914
931
  let e = this.querySelector(".datepicker-trigger"), t = this.querySelector("[data-trigger-label]");
915
932
  if (!t) return;
916
933
  let n = q(this._value);
917
- t.textContent = n ? Se(this._value) : this.getAttribute("placeholder") || "Enter Date", t.classList.toggle("search-select-placeholder", !n), e?.classList.toggle("has-value", !!n);
934
+ t.textContent = n ? Ce(this._value) : this.getAttribute("placeholder") || "Enter Date", t.classList.toggle("search-select-placeholder", !n), e?.classList.toggle("has-value", !!n);
918
935
  }
919
936
  _limits() {
920
937
  let e = q(this.getAttribute("min")), t = q(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;
@@ -925,7 +942,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
925
942
  },
926
943
  monthDisabled: (e, t) => {
927
944
  let i = new Date(e, t, 1).getTime();
928
- return new Date(e, t, Ce(e, t)).getTime() < n || i > r;
945
+ return new Date(e, t, we(e, t)).getTime() < n || i > r;
929
946
  },
930
947
  yearDisabled: (e) => {
931
948
  let t = new Date(e, 0, 1).getTime();
@@ -938,28 +955,28 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
938
955
  e && (this._mode === "months" ? e.innerHTML = this._monthsHtml() : this._mode === "years" ? e.innerHTML = this._yearsHtml() : e.innerHTML = this._daysHtml(), this._focusActive());
939
956
  }
940
957
  _daysHtml() {
941
- let e = this._firstDay(), t = (new Date(this._viewY, this._viewM, 1).getDay() - e + 7) % 7, n = Ce(this._viewY, this._viewM), r = q(this._value), i = /* @__PURE__ */ new Date(), { dayDisabled: a } = this._limits(), o = this._focus || r || {
958
+ let e = this._firstDay(), t = (new Date(this._viewY, this._viewM, 1).getDay() - e + 7) % 7, n = we(this._viewY, this._viewM), r = q(this._value), i = /* @__PURE__ */ new Date(), { dayDisabled: a } = this._limits(), o = this._focus || r || {
942
959
  y: this._viewY,
943
960
  m: this._viewM,
944
961
  d: 1
945
962
  }, s = (e, t, n, s) => {
946
- let c = xe(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);
963
+ let c = Se(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);
947
964
  return `<button type="button" class="${[
948
965
  "datepicker-day",
949
966
  s ? "is-outside" : "",
950
967
  u ? "is-today" : "",
951
968
  l ? "is-selected" : ""
952
969
  ].filter(Boolean).join(" ")}" data-iso="${c}" role="gridcell" tabindex="${d && !f ? "0" : "-1"}"${l ? " aria-selected=\"true\"" : ""}${f ? " disabled aria-disabled=\"true\"" : ""}>${n}</button>`;
953
- }, c = "", l = J(this._viewY, this._viewM - 1), u = Ce(l.y, l.m);
970
+ }, c = "", l = J(this._viewY, this._viewM - 1), u = we(l.y, l.m);
954
971
  for (let e = t - 1; e >= 0; e--) c += s(l.y, l.m, u - e, !0);
955
972
  for (let e = 1; e <= n; e++) c += s(this._viewY, this._viewM, e, !1);
956
973
  let d = J(this._viewY, this._viewM + 1), f = (7 - (t + n) % 7) % 7;
957
974
  for (let e = 1; e <= f; e++) c += s(d.y, d.m, e, !0);
958
- let p = ye.map((t, n) => ye[(n + e) % 7]).map((e) => `<span>${e}</span>`).join("");
975
+ let p = be.map((t, n) => be[(n + e) % 7]).map((e) => `<span>${e}</span>`).join("");
959
976
  return `
960
977
  <div class="datepicker-head">
961
978
  <button type="button" class="datepicker-nav-btn" data-nav="-1" aria-label="Previous month"><i class="bi bi-chevron-left" aria-hidden="true"></i></button>
962
- <button type="button" class="datepicker-month" data-view="months" aria-label="Choose month and year">${ve[this._viewM]} ${this._viewY}</button>
979
+ <button type="button" class="datepicker-month" data-view="months" aria-label="Choose month and year">${ye[this._viewM]} ${this._viewY}</button>
963
980
  <button type="button" class="datepicker-nav-btn" data-nav="1" aria-label="Next month"><i class="bi bi-chevron-right" aria-hidden="true"></i></button>
964
981
  </div>
965
982
  <div class="datepicker-weekdays">${p}</div>
@@ -977,7 +994,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
977
994
  o ? "is-today" : "",
978
995
  a ? "is-selected" : ""
979
996
  ].filter(Boolean).join(" ");
980
- r += `<button type="button" class="${c}" data-month="${i}"${s ? " disabled" : ""}>${ve[i].slice(0, 3)}</button>`;
997
+ r += `<button type="button" class="${c}" data-month="${i}"${s ? " disabled" : ""}>${ye[i].slice(0, 3)}</button>`;
981
998
  }
982
999
  return `
983
1000
  <div class="datepicker-head">
@@ -1010,7 +1027,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1010
1027
  t && e.contains(document.activeElement) && t.focus();
1011
1028
  }
1012
1029
  _position(e, t) {
1013
- H(e, t);
1030
+ U(e, t);
1014
1031
  }
1015
1032
  _setFocus(e, t, n, r) {
1016
1033
  let { y: i, m: a } = J(e, t);
@@ -1020,7 +1037,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1020
1037
  d: n
1021
1038
  };
1022
1039
  let o = i !== this._viewY || a !== this._viewM;
1023
- this._viewY = i, this._viewM = a, this._slide = o && r || "", this._renderView(), this._slide = "", this.querySelector(`.datepicker-day[data-iso="${xe(i, a, n)}"]`)?.focus();
1040
+ this._viewY = i, this._viewM = a, this._slide = o && r || "", this._renderView(), this._slide = "", this.querySelector(`.datepicker-day[data-iso="${Se(i, a, n)}"]`)?.focus();
1024
1041
  }
1025
1042
  _onKey(e) {
1026
1043
  if (this._mode !== "days") {
@@ -1046,16 +1063,16 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1046
1063
  case "PageUp": {
1047
1064
  e.preventDefault();
1048
1065
  let n = J(t.y, t.m - (e.shiftKey ? 12 : 1));
1049
- return this._setFocus(n.y, n.m, Math.min(t.d, Ce(n.y, n.m)), "slide-prev");
1066
+ return this._setFocus(n.y, n.m, Math.min(t.d, we(n.y, n.m)), "slide-prev");
1050
1067
  }
1051
1068
  case "PageDown": {
1052
1069
  e.preventDefault();
1053
1070
  let n = J(t.y, t.m + (e.shiftKey ? 12 : 1));
1054
- return this._setFocus(n.y, n.m, Math.min(t.d, Ce(n.y, n.m)), "slide-next");
1071
+ return this._setFocus(n.y, n.m, Math.min(t.d, we(n.y, n.m)), "slide-next");
1055
1072
  }
1056
1073
  case "Enter":
1057
1074
  case " ":
1058
- e.preventDefault(), this._limits().dayDisabled(t.y, t.m, t.d) || (this.value = xe(t.y, t.m, t.d), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close());
1075
+ e.preventDefault(), this._limits().dayDisabled(t.y, t.m, t.d) || (this.value = Se(t.y, t.m, t.d), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close());
1059
1076
  return;
1060
1077
  case "Escape": return this._close();
1061
1078
  default:
@@ -1123,7 +1140,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1123
1140
  }
1124
1141
  if (e.target.closest("[data-today]")) {
1125
1142
  let e = /* @__PURE__ */ new Date();
1126
- this.value = xe(e.getFullYear(), e.getMonth(), e.getDate()), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close();
1143
+ this.value = Se(e.getFullYear(), e.getMonth(), e.getDate()), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close();
1127
1144
  return;
1128
1145
  }
1129
1146
  if (e.target.closest("[data-clear]")) {
@@ -1140,18 +1157,18 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1140
1157
  this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
1141
1158
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
1142
1159
  r() && e.key === "Escape" && this._close();
1143
- }, document.addEventListener("keydown", this._onDocKey), ue(this, () => {
1160
+ }, document.addEventListener("keydown", this._onDocKey), W(this, () => {
1144
1161
  r() && this._position(e, t);
1145
1162
  });
1146
1163
  }, this._bindGlobal(), this._syncFormValue();
1147
1164
  }
1148
1165
  _teardown() {
1149
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), U(this);
1166
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), ue(this);
1150
1167
  }
1151
1168
  disconnectedCallback() {
1152
1169
  this._teardown();
1153
1170
  }
1154
- }, Te = class extends HTMLElement {
1171
+ }, Ee = class extends HTMLElement {
1155
1172
  static formAssociated = !0;
1156
1173
  static get observedAttributes() {
1157
1174
  return [
@@ -1210,7 +1227,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1210
1227
  text: e,
1211
1228
  empty: !0
1212
1229
  } : {
1213
- text: `${Se(this._start) || "Start"} – ${Se(this._end) || "End"}`,
1230
+ text: `${Ce(this._start) || "Start"} – ${Ce(this._end) || "End"}`,
1214
1231
  empty: !1
1215
1232
  };
1216
1233
  }
@@ -1257,17 +1274,17 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1257
1274
  };
1258
1275
  }
1259
1276
  _monthHtml(e, t) {
1260
- let n = this._firstDay(), r = (new Date(e, t, 1).getDay() - n + 7) % 7, i = Ce(e, t), a = this._limits(), o = ye.map((e, t) => ye[(t + n) % 7]).map((e) => `<span>${e}</span>`).join(""), s = (e, t, n, r) => {
1261
- let i = xe(e, t, n), o = a(e, t, n);
1277
+ let n = this._firstDay(), r = (new Date(e, t, 1).getDay() - n + 7) % 7, i = we(e, t), a = this._limits(), o = be.map((e, t) => be[(t + n) % 7]).map((e) => `<span>${e}</span>`).join(""), s = (e, t, n, r) => {
1278
+ let i = Se(e, t, n), o = a(e, t, n);
1262
1279
  return `<button type="button" class="${["datepicker-day", r ? "is-outside" : ""].filter(Boolean).join(" ")}" data-iso="${i}"${o ? " disabled" : ""}>${n}</button>`;
1263
- }, c = "", l = J(e, t - 1), u = Ce(l.y, l.m);
1280
+ }, c = "", l = J(e, t - 1), u = we(l.y, l.m);
1264
1281
  for (let e = r - 1; e >= 0; e--) c += s(l.y, l.m, u - e, !0);
1265
1282
  for (let n = 1; n <= i; n++) c += s(e, t, n, !1);
1266
1283
  let d = J(e, t + 1), f = (7 - (r + i) % 7) % 7;
1267
1284
  for (let e = 1; e <= f; e++) c += s(d.y, d.m, e, !0);
1268
1285
  return `
1269
1286
  <div class="daterange-cal">
1270
- <div class="datepicker-month-label">${ve[t]} ${e}</div>
1287
+ <div class="datepicker-month-label">${ye[t]} ${e}</div>
1271
1288
  <div class="datepicker-weekdays">${o}</div>
1272
1289
  <div class="datepicker-grid" role="grid">${c}</div>
1273
1290
  </div>`;
@@ -1301,10 +1318,10 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1301
1318
  n.classList.toggle("is-range-start", i), n.classList.toggle("is-range-end", a), n.classList.toggle("in-range", o);
1302
1319
  }
1303
1320
  let i = e.querySelector("[data-range-hint]");
1304
- i && (i.textContent = this._start ? this._end ? `${Se(this._start)} – ${Se(this._end)}` : "Pick an end date" : "Pick a start date");
1321
+ i && (i.textContent = this._start ? this._end ? `${Ce(this._start)} – ${Ce(this._end)}` : "Pick an end date" : "Pick a start date");
1305
1322
  }
1306
1323
  _position(e, t) {
1307
- H(e, t);
1324
+ U(e, t);
1308
1325
  }
1309
1326
  _pick(e) {
1310
1327
  if (!this._start || this._start && this._end) {
@@ -1355,18 +1372,18 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1355
1372
  this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
1356
1373
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
1357
1374
  r() && e.key === "Escape" && this._close();
1358
- }, document.addEventListener("keydown", this._onDocKey), ue(this, () => {
1375
+ }, document.addEventListener("keydown", this._onDocKey), W(this, () => {
1359
1376
  r() && this._position(e, t);
1360
1377
  });
1361
1378
  }, this._bindGlobal(), this._syncMirrors();
1362
1379
  }
1363
1380
  _teardown() {
1364
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), U(this);
1381
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), ue(this);
1365
1382
  }
1366
1383
  disconnectedCallback() {
1367
1384
  this._teardown();
1368
1385
  }
1369
- }, Ee = class extends HTMLElement {
1386
+ }, De = class extends HTMLElement {
1370
1387
  static get observedAttributes() {
1371
1388
  return [
1372
1389
  "static",
@@ -1387,10 +1404,10 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1387
1404
  e === "static" && this.isConnected && this._wire();
1388
1405
  }
1389
1406
  _maxScale() {
1390
- return De(this.getAttribute("max-scale"), 1.6);
1407
+ return Oe(this.getAttribute("max-scale"), 1.6);
1391
1408
  }
1392
1409
  _radius() {
1393
- return De(this.getAttribute("radius"), 100);
1410
+ return Oe(this.getAttribute("radius"), 100);
1394
1411
  }
1395
1412
  _magnifyEnabled() {
1396
1413
  return !(this.hasAttribute("static") || typeof matchMedia == "function" && (matchMedia("(pointer: coarse)").matches || matchMedia("(prefers-reduced-motion: reduce)").matches));
@@ -1415,10 +1432,10 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1415
1432
  _teardown() {
1416
1433
  this._pointerMoveListener &&= (this.removeEventListener("pointermove", this._pointerMoveListener), null), this._pointerLeaveListener &&= (this.removeEventListener("pointerleave", this._pointerLeaveListener), null), this._resetMagnification();
1417
1434
  }
1418
- }, De = (e, t) => {
1435
+ }, Oe = (e, t) => {
1419
1436
  let n = Number.parseFloat(e);
1420
1437
  return Number.isFinite(n) ? n : t;
1421
- }, Oe = class extends HTMLElement {
1438
+ }, ke = class extends HTMLElement {
1422
1439
  static formAssociated = !0;
1423
1440
  _accessibleName() {
1424
1441
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
@@ -1468,7 +1485,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1468
1485
  return this._values.slice();
1469
1486
  }
1470
1487
  set values(e) {
1471
- if (this._values = Array.isArray(e) ? e.map(String) : [], W(this, this._values.join(",")), this._rendered) {
1488
+ if (this._values = Array.isArray(e) ? e.map(String) : [], G(this, this._values.join(",")), this._rendered) {
1472
1489
  this._renderControl();
1473
1490
  let e = this.querySelector(".search-select-input");
1474
1491
  this._renderOptions(e ? e.value : "");
@@ -1487,7 +1504,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1487
1504
  value: e.getAttribute("value") ?? e.textContent.trim(),
1488
1505
  label: e.innerHTML,
1489
1506
  icon: e.getAttribute("icon") || void 0,
1490
- [fe]: !0,
1507
+ [pe]: !0,
1491
1508
  selected: e.hasAttribute("selected")
1492
1509
  })));
1493
1510
  }
@@ -1500,26 +1517,26 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1500
1517
  }
1501
1518
  _labelHtmlFor(e) {
1502
1519
  let t = this._readOptions().find((t) => String(t.value) === String(e));
1503
- return t ? me(t) : K(e);
1520
+ return t ? he(t) : K(e);
1504
1521
  }
1505
1522
  render() {
1506
1523
  this._snapshotDeclared();
1507
1524
  let e = this.hasAttribute("searchable"), t = this.getAttribute("search-placeholder") || "Search…", n = this.getAttribute("icon"), r = this.getAttribute("size"), i = r === "sm" ? " search-select-sm" : r === "lg" ? " search-select-lg" : "";
1508
- W(this, this._values.join(",")), this.id ||= `wui-multiselect-${Math.random().toString(36).slice(2, 9)}`;
1525
+ G(this, this._values.join(",")), this.id ||= `wui-multiselect-${Math.random().toString(36).slice(2, 9)}`;
1509
1526
  let a = `${this.id}-listbox`;
1510
1527
  this._listboxId = a, this.innerHTML = `
1511
1528
  <div class="search-select${i}">
1512
- <div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${ke(a)}" aria-label="${ke(this._accessibleName())}"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : " tabindex=\"0\""}>
1513
- ${n ? `<i class="bi bi-${ke(n)} search-select-icon" aria-hidden="true"></i>` : ""}
1529
+ <div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Ae(a)}" aria-label="${Ae(this._accessibleName())}"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : " tabindex=\"0\""}>
1530
+ ${n ? `<i class="bi bi-${Ae(n)} search-select-icon" aria-hidden="true"></i>` : ""}
1514
1531
  <div class="ms-chips" data-chips></div>
1515
1532
  <i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
1516
1533
  </div>
1517
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${ke(a)}" aria-multiselectable="true" tabindex="-1" hidden>
1518
- ${e ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${ke(t)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden><i class="bi bi-x" aria-hidden="true"></i></button></div>` : ""}
1534
+ <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Ae(a)}" aria-multiselectable="true" tabindex="-1" hidden>
1535
+ ${e ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${Ae(t)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden><i class="bi bi-x" aria-hidden="true"></i></button></div>` : ""}
1519
1536
  <div class="search-select-options"></div>
1520
1537
  <div class="search-select-empty" hidden>No matches</div>
1521
1538
  </div>
1522
- </div>`, this._rendered = !0, W(this, this._values.join(",")), this._renderControl(), this._renderOptions(), this._wire();
1539
+ </div>`, this._rendered = !0, G(this, this._values.join(",")), this._renderControl(), this._renderOptions(), this._wire();
1523
1540
  }
1524
1541
  _renderControl() {
1525
1542
  let e = this.querySelector("[data-chips]");
@@ -1529,7 +1546,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1529
1546
  e.innerHTML = `<span class="search-select-placeholder">${K(t)}</span>`;
1530
1547
  return;
1531
1548
  }
1532
- 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="${ke(e)}" aria-label="Remove ${ke(Ae(this._labelFor(e)))}"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join(""), this._collapseChips();
1549
+ 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="${Ae(e)}" aria-label="Remove ${Ae(je(this._labelFor(e)))}"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join(""), this._collapseChips();
1533
1550
  }
1534
1551
  _collapseChips() {
1535
1552
  let e = this.querySelector("[data-chips]");
@@ -1553,18 +1570,18 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1553
1570
  let t = this.querySelector(".search-select-options"), n = this.querySelector(".search-select-empty");
1554
1571
  if (!t) return;
1555
1572
  let r = (e || "").trim().toLowerCase(), i = this._readOptions();
1556
- r && (i = i.filter((e) => Ae(e.label).toLowerCase().includes(r)));
1573
+ r && (i = i.filter((e) => je(e.label).toLowerCase().includes(r)));
1557
1574
  let a = this._listboxId || `${this.id || "wui-multiselect"}-listbox`;
1558
1575
  t.innerHTML = i.map((e, t) => {
1559
1576
  let n = this._values.includes(String(e.value));
1560
- return `<button type="button" role="option" id="${ke(`${a}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${ke(e.value)}" aria-selected="${n}"><span class="ms-opt-label">${me(e)}</span><span class="ms-check"><i class="bi bi-check" aria-hidden="true"></i></span></button>`;
1577
+ return `<button type="button" role="option" id="${Ae(`${a}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${Ae(e.value)}" aria-selected="${n}"><span class="ms-opt-label">${he(e)}</span><span class="ms-check"><i class="bi bi-check" aria-hidden="true"></i></span></button>`;
1561
1578
  }).join(""), n && (n.hidden = i.length > 0), this._active = -1, this.querySelector(".search-select-control")?.removeAttribute("aria-activedescendant");
1562
1579
  }
1563
1580
  _wire() {
1564
1581
  this._teardown();
1565
1582
  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");
1566
1583
  if (!e || !t) return;
1567
- let a = () => this.hasAttribute("disabled"), o = () => H(e, t, { matchWidth: !0 }), s = () => [...this.querySelectorAll(".search-select-option")], c = () => s().filter((e) => !e.hidden), l = (t) => {
1584
+ let a = () => this.hasAttribute("disabled"), o = () => U(e, t, { matchWidth: !0 }), s = () => [...this.querySelectorAll(".search-select-option")], c = () => s().filter((e) => !e.hidden), l = (t) => {
1568
1585
  let n = c();
1569
1586
  this._active = t;
1570
1587
  for (let e of s()) e.classList.remove("is-active");
@@ -1574,7 +1591,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1574
1591
  }, f = () => {
1575
1592
  t.hidden = !0, e.setAttribute("aria-expanded", "false"), e.classList.remove("open"), l(-1), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "";
1576
1593
  }, p = () => {
1577
- W(this, this._values.join(",")), this.dispatchEvent(new Event("change", { bubbles: !0 }));
1594
+ G(this, this._values.join(",")), this.dispatchEvent(new Event("change", { bubbles: !0 }));
1578
1595
  }, m = (e) => {
1579
1596
  let t = String(e);
1580
1597
  this._values.includes(t) ? this._values = this._values.filter((e) => e !== t) : this._values = [...this._values, t], this._renderControl(), this._renderOptions(n ? n.value : ""), p();
@@ -1597,7 +1614,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1597
1614
  t && l(c().indexOf(t));
1598
1615
  }), i.addEventListener("mouseleave", () => l(-1)), n?.addEventListener("input", () => {
1599
1616
  this._renderOptions(n.value), r && (r.hidden = !n.value), l(-1);
1600
- }), this._navHandler = G({
1617
+ }), this._navHandler = fe({
1601
1618
  getVisibleOptions: c,
1602
1619
  getActive: () => this._active,
1603
1620
  setActive: (e) => l(e),
@@ -1626,18 +1643,18 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1626
1643
  }), this._bindGlobal = () => {
1627
1644
  this._teardown(), !this._ro && typeof ResizeObserver < "u" && (this._ro = new ResizeObserver(() => this._collapseChips()), this._ro.observe(this)), this._onDocClick = (e) => {
1628
1645
  u() && !this.contains(e.target) && f();
1629
- }, document.addEventListener("click", this._onDocClick), ue(this, () => {
1646
+ }, document.addEventListener("click", this._onDocClick), W(this, () => {
1630
1647
  u() && o();
1631
1648
  });
1632
1649
  }, this._bindGlobal();
1633
1650
  }
1634
1651
  _teardown() {
1635
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), U(this), this._navHandler?.teardown();
1652
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), ue(this), this._navHandler?.teardown();
1636
1653
  }
1637
1654
  disconnectedCallback() {
1638
1655
  this._teardown(), this._ro?.disconnect(), this._ro = null;
1639
1656
  }
1640
- }, ke = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ae = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), je = /[^0-9]/g, Me = /[^0-9a-zA-Z]/g, Ne = class extends HTMLElement {
1657
+ }, Ae = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), je = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), Me = /[^0-9]/g, Ne = /[^0-9a-zA-Z]/g, Pe = class extends HTMLElement {
1641
1658
  static formAssociated = !0;
1642
1659
  static get observedAttributes() {
1643
1660
  return [
@@ -1665,10 +1682,10 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1665
1682
  return this._value ?? "";
1666
1683
  }
1667
1684
  set value(e) {
1668
- this._value = this._clean(e), W(this, this._value), this._paint();
1685
+ this._value = this._clean(e), G(this, this._value), this._paint();
1669
1686
  }
1670
1687
  _clean(e) {
1671
- return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ? Me : je, "").slice(0, this.length);
1688
+ return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ? Ne : Me, "").slice(0, this.length);
1672
1689
  }
1673
1690
  constructor() {
1674
1691
  super();
@@ -1682,10 +1699,10 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1682
1699
  this._rendered ? this._onSelectionChange && document.addEventListener("selectionchange", this._onSelectionChange) : (this._defaultCaptured ||= (this._defaultValue = this._value, !0), this.render());
1683
1700
  }
1684
1701
  formResetCallback() {
1685
- this._value = this._defaultValue || "", W(this, this._value), this._paint();
1702
+ this._value = this._defaultValue || "", G(this, this._value), this._paint();
1686
1703
  }
1687
1704
  attributeChangedCallback(e, t, n) {
1688
- this._rendered && (e === "value" ? (this._value = this._clean(n), W(this, this._value), this._paint()) : this.render());
1705
+ this._rendered && (e === "value" ? (this._value = this._clean(n), G(this, this._value), this._paint()) : this.render());
1689
1706
  }
1690
1707
  render() {
1691
1708
  this._value = this._clean(this.getAttribute("value") ?? this._value);
@@ -1703,7 +1720,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1703
1720
  spellcheck="false"
1704
1721
  ${n ? "disabled" : ""} />
1705
1722
  <div class="otp-slots" aria-hidden="true">${r}</div>
1706
- </div>`, this._rendered = !0, W(this, this._value), this._wire(), this._paint();
1723
+ </div>`, this._rendered = !0, G(this, this._value), this._wire(), this._paint();
1707
1724
  }
1708
1725
  _refs() {
1709
1726
  return {
@@ -1725,7 +1742,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1725
1742
  if (!e) return;
1726
1743
  let t = (e) => {
1727
1744
  let t = this._clean(e), n = t !== this._value;
1728
- this._value = t, W(this, this._value), this._paint(), n && this.dispatchEvent(new Event("change", { bubbles: !0 })), n && t.length === this.length && this.dispatchEvent(new CustomEvent("complete", {
1745
+ this._value = t, G(this, this._value), this._paint(), n && this.dispatchEvent(new Event("change", { bubbles: !0 })), n && t.length === this.length && this.dispatchEvent(new CustomEvent("complete", {
1729
1746
  bubbles: !0,
1730
1747
  detail: t
1731
1748
  }));
@@ -1748,7 +1765,7 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
1748
1765
  disconnectedCallback() {
1749
1766
  this._onSelectionChange && document.removeEventListener("selectionchange", this._onSelectionChange);
1750
1767
  }
1751
- }, Pe = [
1768
+ }, Fe = [
1752
1769
  [
1753
1770
  "AF",
1754
1771
  "Afghanistan",
@@ -2974,20 +2991,20 @@ var fe = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&a
2974
2991
  "Zimbabwe",
2975
2992
  "263"
2976
2993
  ]
2977
- ], Fe = (e) => (Pe.find((t) => t[0] === e) || [
2994
+ ], Ie = (e) => (Fe.find((t) => t[0] === e) || [
2978
2995
  "",
2979
2996
  "",
2980
2997
  ""
2981
- ])[2], Ie = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, Y = null, Le = null;
2982
- function Re() {
2983
- return Y ? Promise.resolve(Y) : (Le ||= Promise.all([import("./libphonenumber-js-BcNT8oq0-DMpMlice.js"), import("./examples.mobile.json-BMXTGiGC-Dl_Tt3py.js")]).then(([e, t]) => (Y = {
2998
+ ])[2], Le = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, Y = null, Re = null;
2999
+ function ze() {
3000
+ return Y ? Promise.resolve(Y) : (Re ||= Promise.all([import("./libphonenumber-js-BcNT8oq0-DMpMlice.js"), import("./examples.mobile.json-BMXTGiGC-Dl_Tt3py.js")]).then(([e, t]) => (Y = {
2984
3001
  AsYouType: e.AsYouType,
2985
3002
  getExampleNumber: e.getExampleNumber,
2986
3003
  isValidPhoneNumber: e.isValidPhoneNumber,
2987
3004
  examples: t.default || t
2988
- }, Y)).catch(() => null), Le);
3005
+ }, Y)).catch(() => null), Re);
2989
3006
  }
2990
- function ze(e, t) {
3007
+ function Be(e, t) {
2991
3008
  if (!Y || !t) return t;
2992
3009
  try {
2993
3010
  return new Y.AsYouType(e).input(t);
@@ -2995,7 +3012,7 @@ function ze(e, t) {
2995
3012
  return t;
2996
3013
  }
2997
3014
  }
2998
- function Be(e) {
3015
+ function Ve(e) {
2999
3016
  if (!Y) return null;
3000
3017
  try {
3001
3018
  return Y.getExampleNumber(e, Y.examples)?.formatNational() || null;
@@ -3003,7 +3020,7 @@ function Be(e) {
3003
3020
  return null;
3004
3021
  }
3005
3022
  }
3006
- function Ve(e) {
3023
+ function He(e) {
3007
3024
  if (!Y || !e) return null;
3008
3025
  try {
3009
3026
  return Y.isValidPhoneNumber(e);
@@ -3011,7 +3028,7 @@ function Ve(e) {
3011
3028
  return null;
3012
3029
  }
3013
3030
  }
3014
- function He(e) {
3031
+ function Ue(e) {
3015
3032
  if (!Y) return null;
3016
3033
  try {
3017
3034
  let t = Y.getExampleNumber(e, Y.examples);
@@ -3020,7 +3037,7 @@ function He(e) {
3020
3037
  return null;
3021
3038
  }
3022
3039
  }
3023
- function Ue(e) {
3040
+ function We(e) {
3024
3041
  if (!Y || !e?.trim().startsWith("+")) return null;
3025
3042
  try {
3026
3043
  let t = new Y.AsYouType();
@@ -3034,7 +3051,7 @@ function Ue(e) {
3034
3051
  return null;
3035
3052
  }
3036
3053
  }
3037
- var We = class extends HTMLElement {
3054
+ var Ge = class extends HTMLElement {
3038
3055
  static formAssociated = !0;
3039
3056
  static get observedAttributes() {
3040
3057
  return [
@@ -3074,19 +3091,19 @@ var We = class extends HTMLElement {
3074
3091
  this.value = this._defaultValue || "";
3075
3092
  }
3076
3093
  get value() {
3077
- return this._national ? `+${Fe(this._country)}${this._national}` : "";
3094
+ return this._national ? `+${Ie(this._country)}${this._national}` : "";
3078
3095
  }
3079
3096
  set value(e) {
3080
- let t = String(e ?? "").trim(), n = Ue(t);
3097
+ let t = String(e ?? "").trim(), n = We(t);
3081
3098
  if (n) this._country = n.country, this._national = n.national.replace(/[^0-9]/g, "");
3082
3099
  else if (t.startsWith("+")) {
3083
- let e = t.replace(/[^0-9]/g, ""), n = String(Fe(this._country));
3100
+ let e = t.replace(/[^0-9]/g, ""), n = String(Ie(this._country));
3084
3101
  n && e.startsWith(n) && (e = e.slice(n.length)), this._national = e;
3085
3102
  } else this._national = t.replace(/[^0-9]/g, "");
3086
3103
  n && this.getAttribute("country") !== this._country ? this.setAttribute("country", this._country) : this._rendered && this.render(), this._committedValue = this.value, this._syncMirror();
3087
3104
  }
3088
3105
  _syncMirror() {
3089
- W(this, this.value);
3106
+ G(this, this.value);
3090
3107
  }
3091
3108
  _emitInput() {
3092
3109
  this.dispatchEvent(new Event("input", { bubbles: !0 }));
@@ -3096,27 +3113,27 @@ var We = class extends HTMLElement {
3096
3113
  }
3097
3114
  render() {
3098
3115
  this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || ""), this._country = this.getAttribute("country") || this._country;
3099
- let e = this.getAttribute("placeholder") || Be(this._country) || "Enter phone number";
3116
+ let e = this.getAttribute("placeholder") || Ve(this._country) || "Enter phone number";
3100
3117
  this.id ||= `wui-phone-${Math.random().toString(36).slice(2, 9)}`;
3101
3118
  let t = `${this.id}-listbox`;
3102
3119
  this._listboxId = t;
3103
- let n = Pe.map(([e, n, r], i) => `<button type="button" role="option" id="${Ge(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${Ie(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
3120
+ let n = Fe.map(([e, n, r], i) => `<button type="button" role="option" id="${Ke(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${Le(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
3104
3121
  this.innerHTML = `
3105
3122
  <div class="phone-input-wrap">
3106
3123
  <div class="phone-country-adornment">
3107
- <button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Ge(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3108
- <span class="${Ie(this._country)}" data-flag aria-hidden="true"></span>
3124
+ <button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Ke(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3125
+ <span class="${Le(this._country)}" data-flag aria-hidden="true"></span>
3109
3126
  <i class="bi bi-chevron-down phone-chevron" aria-hidden="true"></i>
3110
- <span class="phone-dial" data-dial>+${Fe(this._country)}</span>
3127
+ <span class="phone-dial" data-dial>+${Ie(this._country)}</span>
3111
3128
  </button>
3112
- <div class="country-dropdown-menu" role="listbox" id="${Ge(t)}" tabindex="-1" hidden>
3113
- <div class="dropdown-search-wrapper"><span class="dropdown-search-icon"><i class="bi bi-search" aria-hidden="true"></i></span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${Ge(t)}" aria-autocomplete="list" /></div>
3129
+ <div class="country-dropdown-menu" role="listbox" id="${Ke(t)}" tabindex="-1" hidden>
3130
+ <div class="dropdown-search-wrapper"><span class="dropdown-search-icon"><i class="bi bi-search" aria-hidden="true"></i></span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${Ke(t)}" aria-autocomplete="list" /></div>
3114
3131
  <div class="country-list-scroll">${n}<div class="country-empty" hidden>No countries found</div></div>
3115
3132
  </div>
3116
3133
  </div>
3117
- <input type="tel" class="input" placeholder="${Ge(e)}" value="${Ge(ze(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${Ge(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${Ge(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
3134
+ <input type="tel" class="input" placeholder="${Ke(e)}" value="${Ke(Be(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${Ke(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${Ke(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
3118
3135
  </div>
3119
- <div class="field-error" data-phone-error hidden></div>`, this._rendered = !0, W(this, this.value), this._wire();
3136
+ <div class="field-error" data-phone-error hidden></div>`, this._rendered = !0, G(this, this.value), this._wire();
3120
3137
  }
3121
3138
  _itemEls() {
3122
3139
  return [...this.querySelectorAll(".country-dropdown-item")];
@@ -3128,7 +3145,7 @@ var We = class extends HTMLElement {
3128
3145
  this._teardown();
3129
3146
  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]");
3130
3147
  if (!e || !n) return;
3131
- let l = () => !n.hidden, u = () => H(t || e, n), d = (e) => {
3148
+ let l = () => !n.hidden, u = () => U(t || e, n), d = (e) => {
3132
3149
  let t = this._visibleItems();
3133
3150
  this._active = e;
3134
3151
  for (let e of this._itemEls()) e.classList.remove("is-active");
@@ -3145,12 +3162,12 @@ var We = class extends HTMLElement {
3145
3162
  }
3146
3163
  a && (a.hidden = n > 0);
3147
3164
  }, h = (e) => {
3148
- this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), s && (s.className = Ie(e)), c && (c.textContent = `+${Fe(e)}`);
3165
+ this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), s && (s.className = Le(e)), c && (c.textContent = `+${Ie(e)}`);
3149
3166
  for (let t of this._itemEls()) {
3150
3167
  let n = t.dataset.iso === e;
3151
3168
  t.classList.toggle("selected", n), t.setAttribute("aria-selected", String(n));
3152
3169
  }
3153
- !this.getAttribute("placeholder") && o && (o.placeholder = Be(e) || "Enter phone number"), o && this._national && (o.value = ze(e, this._national)), p(), this._syncMirror(), this._emitChange(), o?.focus();
3170
+ !this.getAttribute("placeholder") && o && (o.placeholder = Ve(e) || "Enter phone number"), o && this._national && (o.value = Be(e, this._national)), p(), this._syncMirror(), this._emitChange(), o?.focus();
3154
3171
  }, g = (t) => {
3155
3172
  let n = this._visibleItems();
3156
3173
  if (t.key === "ArrowDown") {
@@ -3184,7 +3201,7 @@ var We = class extends HTMLElement {
3184
3201
  let _ = this.querySelector("[data-phone-error]"), v = (e) => {
3185
3202
  if (o.classList.toggle("is-invalid", e), e ? o.setAttribute("aria-invalid", "true") : o.removeAttribute("aria-invalid"), _) {
3186
3203
  if (e) {
3187
- let e = Be(this._country);
3204
+ let e = Ve(this._country);
3188
3205
  _.textContent = e ? `Enter a valid phone number, e.g. ${e}` : "Enter a valid phone number";
3189
3206
  }
3190
3207
  _.hidden = !e;
@@ -3192,26 +3209,26 @@ var We = class extends HTMLElement {
3192
3209
  };
3193
3210
  o.addEventListener("input", (e) => {
3194
3211
  e.stopPropagation();
3195
- let t = o.value.replace(/[^0-9]/g, ""), n = He(this._country);
3212
+ let t = o.value.replace(/[^0-9]/g, ""), n = Ue(this._country);
3196
3213
  n && t.length > n && (t = t.slice(0, n)), this._national = t;
3197
- let r = ze(this._country, this._national);
3198
- o.value !== r && (o.value = r), this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national || Ve(this.value) === !0) && v(!1);
3214
+ let r = Be(this._country, this._national);
3215
+ o.value !== r && (o.value = r), this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national || He(this.value) === !0) && v(!1);
3199
3216
  }), o.addEventListener("change", (e) => e.stopPropagation()), o.addEventListener("blur", () => {
3200
- v(this._national.length > 0 && Ve(this.value) === !1), this.value !== this._committedValue && this._emitChange();
3217
+ v(this._national.length > 0 && He(this.value) === !1), this.value !== this._committedValue && this._emitChange();
3201
3218
  }), o.addEventListener("paste", (e) => {
3202
- let t = Ue(e.clipboardData?.getData("text"));
3203
- t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value = ze(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
3219
+ let t = We(e.clipboardData?.getData("text"));
3220
+ t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value = Be(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
3204
3221
  }), this._bindGlobal = () => {
3205
3222
  this._teardownGlobals?.(), this._onDocClick = (e) => {
3206
3223
  l() && !this.contains(e.target) && p();
3207
- }, document.addEventListener("click", this._onDocClick), ue(this, () => {
3224
+ }, document.addEventListener("click", this._onDocClick), W(this, () => {
3208
3225
  l() && u();
3209
3226
  });
3210
3227
  }, this._teardownGlobals = () => {
3211
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), U(this);
3212
- }, this._bindGlobal(), Re().then((e) => {
3213
- if (!(!e || !o.isConnected) && (this._national && (o.value = ze(this._country, this._national)), !this.getAttribute("placeholder"))) {
3214
- let e = Be(this._country);
3228
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), ue(this);
3229
+ }, this._bindGlobal(), ze().then((e) => {
3230
+ if (!(!e || !o.isConnected) && (this._national && (o.value = Be(this._country, this._national)), !this.getAttribute("placeholder"))) {
3231
+ let e = Ve(this._country);
3215
3232
  e && (o.placeholder = e);
3216
3233
  }
3217
3234
  }), this._syncMirror();
@@ -3222,7 +3239,7 @@ var We = class extends HTMLElement {
3222
3239
  disconnectedCallback() {
3223
3240
  this._teardown();
3224
3241
  }
3225
- }, Ge = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ke = class extends HTMLElement {
3242
+ }, Ke = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), qe = class extends HTMLElement {
3226
3243
  static formAssociated = !0;
3227
3244
  static get observedAttributes() {
3228
3245
  return [
@@ -3272,7 +3289,7 @@ var We = class extends HTMLElement {
3272
3289
  return this._value;
3273
3290
  }
3274
3291
  set value(e) {
3275
- this._value = e == null ? "" : String(e), W(this, this._value), this._syncSelected(), this._syncReset();
3292
+ this._value = e == null ? "" : String(e), G(this, this._value), this._syncSelected(), this._syncReset();
3276
3293
  }
3277
3294
  set options(e) {
3278
3295
  this._optionsProp = Array.isArray(e) ? e : null, this.isConnected && this.render();
@@ -3287,7 +3304,7 @@ var We = class extends HTMLElement {
3287
3304
  value: e.getAttribute("value") ?? e.textContent.trim(),
3288
3305
  label: e.innerHTML,
3289
3306
  icon: e.getAttribute("icon") || void 0,
3290
- [fe]: !0,
3307
+ [pe]: !0,
3291
3308
  selected: e.hasAttribute("selected")
3292
3309
  })));
3293
3310
  }
@@ -3297,27 +3314,27 @@ var We = class extends HTMLElement {
3297
3314
  render() {
3298
3315
  this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || ""), this._snapshotDeclared();
3299
3316
  let e = this._readOptions(), t = this.hasAttribute("searchable"), n = this.hasAttribute("clearable"), r = this.getAttribute("size"), i = r === "sm" ? " search-select-sm" : r === "lg" ? " search-select-lg" : "", a = this.getAttribute("icon"), o = this.getAttribute("prefix"), s = this.getAttribute("placeholder") || "Select...", c = this.getAttribute("search-placeholder") || "Search...", l = e.find((e) => String(e.value) === String(this._value)) || e.find((e) => e.selected);
3300
- l && (this._value = String(l.value)), W(this, this._value), this.id ||= `wui-select-${Math.random().toString(36).slice(2, 9)}`;
3317
+ l && (this._value = String(l.value)), G(this, this._value), this.id ||= `wui-select-${Math.random().toString(36).slice(2, 9)}`;
3301
3318
  let u = `${this.id}-listbox`;
3302
3319
  this._listboxId = u;
3303
3320
  let d = e.map((e, t) => {
3304
3321
  let n = String(e.value) === String(this._value);
3305
- return `<button type="button" role="option" id="${qe(`${u}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${qe(e.value)}" aria-selected="${n}">${me(e)}</button>`;
3322
+ return `<button type="button" role="option" id="${Je(`${u}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${Je(e.value)}" aria-selected="${n}">${he(e)}</button>`;
3306
3323
  }).join("");
3307
3324
  this.innerHTML = `
3308
3325
  <div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}${i}">
3309
- <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${qe(u)}" aria-label="${qe(this._accessibleName())}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3310
- ${a ? `<i class="bi bi-${qe(a)} search-select-icon" aria-hidden="true"></i>` : ""}
3326
+ <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Je(u)}" aria-label="${Je(this._accessibleName())}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3327
+ ${a ? `<i class="bi bi-${Je(a)} search-select-icon" aria-hidden="true"></i>` : ""}
3311
3328
  ${o ? `<span class="search-select-prefix">${K(o)}</span>` : ""}
3312
- <span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? me(l) : K(s)}</span>
3329
+ <span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? he(l) : K(s)}</span>
3313
3330
  ${n ? "<span class=\"search-select-reset\" role=\"button\" aria-label=\"Clear selection\" hidden><i class=\"bi bi-x-lg\" aria-hidden=\"true\"></i></span>" : ""}
3314
3331
  <i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
3315
3332
  </button>
3316
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${qe(u)}" tabindex="-1" hidden>
3317
- ${t ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${qe(c)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden><i class="bi bi-x" aria-hidden="true"></i></button></div>` : ""}
3333
+ <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Je(u)}" tabindex="-1" hidden>
3334
+ ${t ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${Je(c)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden><i class="bi bi-x" aria-hidden="true"></i></button></div>` : ""}
3318
3335
  <div class="search-select-options">${d}<div class="search-select-empty" hidden>No matches</div></div>
3319
3336
  </div>
3320
- </div>`, this._rendered = !0, W(this, this._value), this._wire(), this._syncReset();
3337
+ </div>`, this._rendered = !0, G(this, this._value), this._wire(), this._syncReset();
3321
3338
  }
3322
3339
  _refs() {
3323
3340
  return {
@@ -3343,7 +3360,7 @@ var We = class extends HTMLElement {
3343
3360
  let t = e.dataset.value === String(this._value);
3344
3361
  e.classList.toggle("selected", t), e.setAttribute("aria-selected", String(t));
3345
3362
  }
3346
- e && (e.innerHTML = t ? me(t) : K(this.getAttribute("placeholder") || "Select..."), e.classList.toggle("search-select-placeholder", !t));
3363
+ e && (e.innerHTML = t ? he(t) : K(this.getAttribute("placeholder") || "Select..."), e.classList.toggle("search-select-placeholder", !t));
3347
3364
  }
3348
3365
  _syncReset() {
3349
3366
  let { reset: e } = this._refs();
@@ -3356,8 +3373,8 @@ var We = class extends HTMLElement {
3356
3373
  let t = () => {
3357
3374
  if (this.hasAttribute("compact")) {
3358
3375
  let t = e.control.getBoundingClientRect();
3359
- e.menu.style.width = "max-content", e.menu.style.minWidth = `${t.width}px`, e.menu.style.maxWidth = "280px", H(e.control, e.menu);
3360
- } else H(e.control, e.menu, { matchWidth: !0 });
3376
+ e.menu.style.width = "max-content", e.menu.style.minWidth = `${t.width}px`, e.menu.style.maxWidth = "280px", U(e.control, e.menu);
3377
+ } else U(e.control, e.menu, { matchWidth: !0 });
3361
3378
  }, n = (t) => {
3362
3379
  let n = this._visible();
3363
3380
  this._active = t;
@@ -3377,7 +3394,7 @@ var We = class extends HTMLElement {
3377
3394
  }, s = (t) => {
3378
3395
  this.value = t.dataset.value, this.dispatchEvent(new Event("change", { bubbles: !0 })), o(), e.control.focus();
3379
3396
  };
3380
- this._navHandler = G({
3397
+ this._navHandler = fe({
3381
3398
  getVisibleOptions: () => this._visible(),
3382
3399
  getActive: () => this._active,
3383
3400
  setActive: (e) => n(e),
@@ -3408,18 +3425,18 @@ var We = class extends HTMLElement {
3408
3425
  }), e.menu.addEventListener("keydown", this._navHandler.handler), this._bindGlobal = () => {
3409
3426
  this._teardown(), this._onDocClick = (e) => {
3410
3427
  i() && !this.contains(e.target) && o();
3411
- }, document.addEventListener("click", this._onDocClick), ue(this, () => {
3428
+ }, document.addEventListener("click", this._onDocClick), W(this, () => {
3412
3429
  i() && t();
3413
3430
  });
3414
3431
  }, this._bindGlobal();
3415
3432
  }
3416
3433
  _teardown() {
3417
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), U(this), this._navHandler?.teardown();
3434
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), ue(this), this._navHandler?.teardown();
3418
3435
  }
3419
3436
  disconnectedCallback() {
3420
3437
  this._teardown();
3421
3438
  }
3422
- }, qe = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Je = class extends HTMLElement {
3439
+ }, Je = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ye = class extends HTMLElement {
3423
3440
  static formAssociated = !0;
3424
3441
  static get observedAttributes() {
3425
3442
  return [
@@ -3459,19 +3476,19 @@ var We = class extends HTMLElement {
3459
3476
  return this._value;
3460
3477
  }
3461
3478
  set value(e) {
3462
- this._value = this._snapToStep(this._clamp(Ye(e, this._value))), this._syncValue(), this._syncMirrors();
3479
+ this._value = this._snapToStep(this._clamp(Xe(e, this._value))), this._syncValue(), this._syncMirrors();
3463
3480
  }
3464
3481
  get start() {
3465
3482
  return this._start;
3466
3483
  }
3467
3484
  set start(e) {
3468
- this._start = Math.min(this._snapToStep(this._clamp(Ye(e, this._start))), this._end), this._syncValue(), this._syncMirrors();
3485
+ this._start = Math.min(this._snapToStep(this._clamp(Xe(e, this._start))), this._end), this._syncValue(), this._syncMirrors();
3469
3486
  }
3470
3487
  get end() {
3471
3488
  return this._end;
3472
3489
  }
3473
3490
  set end(e) {
3474
- this._end = Math.max(this._snapToStep(this._clamp(Ye(e, this._end))), this._start), this._syncValue(), this._syncMirrors();
3491
+ this._end = Math.max(this._snapToStep(this._clamp(Xe(e, this._end))), this._start), this._syncValue(), this._syncMirrors();
3475
3492
  }
3476
3493
  attributeChangedCallback(e, t, n) {
3477
3494
  if (e === "value" || e === "start" || e === "end" || e === "min" || e === "max" || e === "step") {
@@ -3484,19 +3501,19 @@ var We = class extends HTMLElement {
3484
3501
  this._isRange() ? this._resetRange() : this._resetSingle();
3485
3502
  }
3486
3503
  _updateFromAttribute(e) {
3487
- e === "value" ? this._value = this._snapToStep(this._clamp(Ye(this.getAttribute("value"), this._value))) : e === "start" ? this._start = this._snapToStep(this._clamp(Ye(this.getAttribute("start"), this._start))) : e === "end" && (this._end = this._snapToStep(this._clamp(Ye(this.getAttribute("end"), this._end))));
3504
+ e === "value" ? this._value = this._snapToStep(this._clamp(Xe(this.getAttribute("value"), this._value))) : e === "start" ? this._start = this._snapToStep(this._clamp(Xe(this.getAttribute("start"), this._start))) : e === "end" && (this._end = this._snapToStep(this._clamp(Xe(this.getAttribute("end"), this._end))));
3488
3505
  }
3489
3506
  _isRange() {
3490
3507
  return this.hasAttribute("range");
3491
3508
  }
3492
3509
  _min() {
3493
- return Ye(this.getAttribute("min"), 0);
3510
+ return Xe(this.getAttribute("min"), 0);
3494
3511
  }
3495
3512
  _max() {
3496
- return Ye(this.getAttribute("max"), 100);
3513
+ return Xe(this.getAttribute("max"), 100);
3497
3514
  }
3498
3515
  _step() {
3499
- return Ye(this.getAttribute("step"), 1);
3516
+ return Xe(this.getAttribute("step"), 1);
3500
3517
  }
3501
3518
  _clamp(e) {
3502
3519
  return Math.max(this._min(), Math.min(e, this._max()));
@@ -3561,7 +3578,7 @@ var We = class extends HTMLElement {
3561
3578
  aria-valuenow="${this._value}"
3562
3579
  aria-valuetext="${this._formatValue(this._value)}"
3563
3580
  ${a ? "disabled" : ""}
3564
- aria-label="${Xe(this.getAttribute("aria-label") || "Value")}"
3581
+ aria-label="${Ze(this.getAttribute("aria-label") || "Value")}"
3565
3582
  ></button>
3566
3583
  `}
3567
3584
  ${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>` : ""}
@@ -3594,7 +3611,7 @@ var We = class extends HTMLElement {
3594
3611
  this._isRange() ? this._syncRangeMirrors() : this._syncSingleMirror();
3595
3612
  }
3596
3613
  _syncSingleMirror() {
3597
- this.getAttribute("name") && W(this, String(this._value));
3614
+ this.getAttribute("name") && G(this, String(this._value));
3598
3615
  }
3599
3616
  _syncRangeMirrors() {
3600
3617
  let e = this.getAttribute("start-name") || this.getAttribute("name"), t = this.getAttribute("end-name");
@@ -3661,10 +3678,10 @@ var We = class extends HTMLElement {
3661
3678
  disconnectedCallback() {
3662
3679
  this._teardown();
3663
3680
  }
3664
- }, Ye = (e, t) => {
3681
+ }, Xe = (e, t) => {
3665
3682
  let n = Number.parseFloat(e);
3666
3683
  return Number.isFinite(n) ? n : t;
3667
- }, Xe = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ze = class extends HTMLElement {
3684
+ }, Ze = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Qe = class extends HTMLElement {
3668
3685
  static formAssociated = !0;
3669
3686
  _accessibleName() {
3670
3687
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Add tags";
@@ -3721,17 +3738,17 @@ var We = class extends HTMLElement {
3721
3738
  return this._values.slice();
3722
3739
  }
3723
3740
  set values(e) {
3724
- this._values = Array.isArray(e) ? e.map(String) : [], W(this, this._values.join(",")), this._rendered && this._renderControl();
3741
+ this._values = Array.isArray(e) ? e.map(String) : [], G(this, this._values.join(",")), this._rendered && this._renderControl();
3725
3742
  }
3726
3743
  render() {
3727
3744
  let e = this.getAttribute("size"), t = e === "sm" ? " search-select-sm" : e === "lg" ? " search-select-lg" : "";
3728
- W(this, this._values.join(",")), this.innerHTML = `
3745
+ G(this, this._values.join(",")), this.innerHTML = `
3729
3746
  <div class="search-select${t}">
3730
3747
  <div class="input search-select-control search-select-multi"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
3731
- <input type="text" class="ms-input" data-input aria-label="${$e(this._accessibleName())}" placeholder="${$e(this.getAttribute("placeholder") || "Add…")}" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""}/>
3748
+ <input type="text" class="ms-input" data-input aria-label="${et(this._accessibleName())}" placeholder="${et(this.getAttribute("placeholder") || "Add…")}" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""}/>
3732
3749
  <div class="ms-chips" data-chips></div>
3733
3750
  </div>
3734
- </div>`, this._rendered = !0, W(this, this._values.join(",")), this._renderControl(), this._wire();
3751
+ </div>`, this._rendered = !0, G(this, this._values.join(",")), this._renderControl(), this._wire();
3735
3752
  }
3736
3753
  _renderControl() {
3737
3754
  let e = this.querySelector("[data-chips]");
@@ -3740,7 +3757,7 @@ var We = class extends HTMLElement {
3740
3757
  e.innerHTML = "";
3741
3758
  return;
3742
3759
  }
3743
- e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${Qe(e)}</span><button type="button" class="chip-remove" data-remove="${$e(e)}" aria-label="Remove ${$e(e)}"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join("");
3760
+ e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${$e(e)}</span><button type="button" class="chip-remove" data-remove="${et(e)}" aria-label="Remove ${et(e)}"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join("");
3744
3761
  }
3745
3762
  }
3746
3763
  _wire() {
@@ -3750,7 +3767,7 @@ var We = class extends HTMLElement {
3750
3767
  let n = () => this.hasAttribute("disabled"), r = (this.getAttribute("separators") || "enter,comma").split(",").map((e) => e.trim()), i = this.getAttribute("max-tags"), a = this.hasAttribute("allow-duplicates"), o = /* @__PURE__ */ new Set();
3751
3768
  for (let e of r) e === "enter" ? o.add("Enter") : e === "comma" ? o.add(",") : e === "space" ? o.add(" ") : e === "tab" && o.add("Tab");
3752
3769
  let s = () => {
3753
- W(this, this._values.join(",")), this.dispatchEvent(new Event("change", { bubbles: !0 }));
3770
+ G(this, this._values.join(",")), this.dispatchEvent(new Event("change", { bubbles: !0 }));
3754
3771
  }, c = (e) => {
3755
3772
  let t = e.trim();
3756
3773
  if (!t || i && this._values.length >= parseInt(i, 10)) return;
@@ -3811,18 +3828,18 @@ var We = class extends HTMLElement {
3811
3828
  disconnectedCallback() {
3812
3829
  this._teardown();
3813
3830
  }
3814
- }, Qe = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), $e = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), et = (e) => String(e).padStart(2, "0"), tt = (e, t) => `${et(e)}:${et(t)}`, nt = (e) => {
3831
+ }, $e = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), et = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), tt = (e) => String(e).padStart(2, "0"), nt = (e, t) => `${tt(e)}:${tt(t)}`, rt = (e) => {
3815
3832
  let t = /^(\d{2}):(\d{2})$/.exec(e || "");
3816
3833
  return t ? {
3817
3834
  h: +t[1],
3818
3835
  m: +t[2]
3819
3836
  } : null;
3820
- }, rt = (e, t = "24") => {
3837
+ }, it = (e, t = "24") => {
3821
3838
  if (!e) return "";
3822
- if (t === "24") return tt(e.h, e.m);
3839
+ if (t === "24") return nt(e.h, e.m);
3823
3840
  let n = e.h % 12 || 12, r = e.h >= 12 ? "PM" : "AM";
3824
- return `${n}:${et(e.m)} ${r}`;
3825
- }, it = class extends HTMLElement {
3841
+ return `${n}:${tt(e.m)} ${r}`;
3842
+ }, at = class extends HTMLElement {
3826
3843
  static formAssociated = !0;
3827
3844
  static get observedAttributes() {
3828
3845
  return [
@@ -3865,34 +3882,34 @@ var We = class extends HTMLElement {
3865
3882
  return this._value;
3866
3883
  }
3867
3884
  set value(e) {
3868
- this._value = e || "", W(this, this._value), this._syncTrigger();
3885
+ this._value = e || "", G(this, this._value), this._syncTrigger();
3869
3886
  }
3870
3887
  render() {
3871
3888
  this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || "", this._value = this._defaultValue || this._value);
3872
- let e = this.getAttribute("placeholder") || "Select time", t = nt(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");
3889
+ let e = this.getAttribute("placeholder") || "Select time", t = rt(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");
3873
3890
  this.innerHTML = `
3874
3891
  <div class="timepicker">
3875
3892
  <button type="button" class="input timepicker-trigger${i}${t ? " has-value" : ""}" aria-haspopup="listbox" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${a ? ` aria-label="${K(a)}"` : ""}${o ? ` aria-describedby="${K(o)}"` : ""}>
3876
- <span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ? rt(t, n) : K(e)}</span>
3893
+ <span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ? it(t, n) : K(e)}</span>
3877
3894
  <i class="bi bi-clock" aria-hidden="true"></i>
3878
3895
  </button>
3879
3896
  <div class="timepicker-pop" role="listbox" tabindex="-1" hidden></div>
3880
- </div>`, this._rendered = !0, W(this, this._value), this._wire();
3897
+ </div>`, this._rendered = !0, G(this, this._value), this._wire();
3881
3898
  }
3882
3899
  _syncFormValue() {
3883
- W(this, this._value);
3900
+ G(this, this._value);
3884
3901
  }
3885
3902
  _syncTrigger() {
3886
3903
  let e = this.querySelector(".timepicker-trigger"), t = this.querySelector("[data-trigger-label]");
3887
3904
  if (!t) return;
3888
- let n = nt(this._value), r = this.getAttribute("format") || "24";
3889
- t.textContent = n ? rt(n, r) : this.getAttribute("placeholder") || "Select time", t.classList.toggle("timepicker-placeholder", !n), e?.classList.toggle("has-value", !!n);
3905
+ let n = rt(this._value), r = this.getAttribute("format") || "24";
3906
+ t.textContent = n ? it(n, r) : this.getAttribute("placeholder") || "Select time", t.classList.toggle("timepicker-placeholder", !n), e?.classList.toggle("has-value", !!n);
3890
3907
  }
3891
3908
  _buildTimes() {
3892
- let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r = nt(t) || {
3909
+ let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r = rt(t) || {
3893
3910
  h: 0,
3894
3911
  m: 0
3895
- }, i = nt(n) || {
3912
+ }, i = rt(n) || {
3896
3913
  h: 23,
3897
3914
  m: 59
3898
3915
  }, a = [], o = r.h, s = r.m;
@@ -3905,10 +3922,10 @@ var We = class extends HTMLElement {
3905
3922
  _renderOptions() {
3906
3923
  let e = this.querySelector(".timepicker-pop");
3907
3924
  if (!e) return;
3908
- let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = nt(this._value), i = this._focus, a = "";
3925
+ let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = rt(this._value), i = this._focus, a = "";
3909
3926
  for (let e = 0; e < n.length; e++) {
3910
- let o = n[e], s = tt(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
3911
- a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${rt(o, t)}</button>`;
3927
+ let o = n[e], s = nt(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
3928
+ a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${it(o, t)}</button>`;
3912
3929
  }
3913
3930
  e.innerHTML = a, this._focusActive();
3914
3931
  }
@@ -3917,7 +3934,7 @@ var We = class extends HTMLElement {
3917
3934
  t && !e.hidden && t.focus();
3918
3935
  }
3919
3936
  _position(e, t) {
3920
- H(e, t);
3937
+ U(e, t);
3921
3938
  }
3922
3939
  _onKey(e) {
3923
3940
  let t = [...this.querySelector(".timepicker-pop").querySelectorAll(".timepicker-option")];
@@ -3995,18 +4012,18 @@ var We = class extends HTMLElement {
3995
4012
  this._popClick = !1, n() && !t && !this.contains(e.target) && this._close();
3996
4013
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
3997
4014
  n() && e.key === "Escape" && this._close();
3998
- }, document.addEventListener("keydown", this._onDocKey), ue(this, () => {
4015
+ }, document.addEventListener("keydown", this._onDocKey), W(this, () => {
3999
4016
  n() && this._position(e, t);
4000
4017
  });
4001
4018
  }, this._bindGlobal(), this._syncFormValue();
4002
4019
  }
4003
4020
  _teardown() {
4004
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), U(this), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "";
4021
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), ue(this), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "";
4005
4022
  }
4006
4023
  disconnectedCallback() {
4007
4024
  this._teardown();
4008
4025
  }
4009
- }, at = "wui-wizard-step", ot = class extends HTMLElement {
4026
+ }, ot = "wui-wizard-step", st = class extends HTMLElement {
4010
4027
  static get observedAttributes() {
4011
4028
  return [
4012
4029
  "active",
@@ -4040,7 +4057,7 @@ var We = class extends HTMLElement {
4040
4057
  this._beforeNext = typeof e == "function" ? e : null;
4041
4058
  }
4042
4059
  get _steps() {
4043
- return [...this.querySelectorAll(`:scope > ${at}`)];
4060
+ return [...this.querySelectorAll(`:scope > ${ot}`)];
4044
4061
  }
4045
4062
  refresh() {
4046
4063
  this._rendered && this._renderChrome();
@@ -4098,14 +4115,14 @@ var We = class extends HTMLElement {
4098
4115
  let i = this.hasAttribute("non-linear");
4099
4116
  return e.map((e, r) => {
4100
4117
  let a = this._stepStatus(e, r), o = e.getAttribute("label") || "", s = e.getAttribute("description") || "", c = e.getAttribute("icon") || "", l = r + 1, u;
4101
- u = a === "done" ? "<i class=\"bi bi-check-lg\" aria-hidden=\"true\"></i>" : a === "error" ? "<i class=\"bi bi-exclamation-triangle\" aria-hidden=\"true\"></i>" : a === "skipped" ? "<i class=\"bi bi-dash-lg\" aria-hidden=\"true\"></i>" : c ? `<i class="bi bi-${ct(c)}" aria-hidden="true"></i>` : String(l);
4102
- let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${st(s)}</span>` : "", h;
4103
- return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${st(o)}</span>${m}</span>` : n ? `<span class="step-circle">${u}</span><span class="step-index">Step ${l}</span><span class="step-label">${st(o)}</span>${m}` : `<span class="step-circle">${u}</span><span class="step-label">${st(o)}</span>${m}`, p ? `<button type="button" class="${d}" data-step="${r}"${f}>${h}</button>` : `<div class="${d}"${f}>${h}</div>`;
4118
+ u = a === "done" ? "<i class=\"bi bi-check-lg\" aria-hidden=\"true\"></i>" : a === "error" ? "<i class=\"bi bi-exclamation-triangle\" aria-hidden=\"true\"></i>" : a === "skipped" ? "<i class=\"bi bi-dash-lg\" aria-hidden=\"true\"></i>" : c ? `<i class="bi bi-${lt(c)}" aria-hidden="true"></i>` : String(l);
4119
+ let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${ct(s)}</span>` : "", h;
4120
+ return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${ct(o)}</span>${m}</span>` : n ? `<span class="step-circle">${u}</span><span class="step-index">Step ${l}</span><span class="step-label">${ct(o)}</span>${m}` : `<span class="step-circle">${u}</span><span class="step-label">${ct(o)}</span>${m}`, p ? `<button type="button" class="${d}" data-step="${r}"${f}>${h}</button>` : `<div class="${d}"${f}>${h}</div>`;
4104
4121
  }).join("");
4105
4122
  }
4106
4123
  _footerHtml(e) {
4107
4124
  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";
4108
- return `${t > 0 ? `<button type="button" class="btn btn-ghost" data-nav="back"${r}>${st(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${st(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${st(o)}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${st(c)}</button>`}</span>`;
4125
+ return `${t > 0 ? `<button type="button" class="btn btn-ghost" data-nav="back"${r}>${ct(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${ct(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${ct(o)}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${ct(c)}</button>`}</span>`;
4109
4126
  }
4110
4127
  _wire() {
4111
4128
  this._teardown(), this._onHeaderClick = (e) => {
@@ -4173,7 +4190,7 @@ var We = class extends HTMLElement {
4173
4190
  _reflectActive(e) {
4174
4191
  this._reflecting = !0, this.setAttribute("active", String(e)), this._reflecting = !1;
4175
4192
  }
4176
- }, st = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), ct = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), lt = class extends HTMLElement {
4193
+ }, ct = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), lt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), ut = class extends HTMLElement {
4177
4194
  static get observedAttributes() {
4178
4195
  return [
4179
4196
  "label",
@@ -4187,14 +4204,14 @@ var We = class extends HTMLElement {
4187
4204
  let e = this.closest("wui-wizard");
4188
4205
  e && typeof e.refresh == "function" && e.refresh();
4189
4206
  }
4190
- }, ut = "image/png,image/jpeg,image/webp", dt = {
4207
+ }, dt = "image/png,image/jpeg,image/webp", ft = {
4191
4208
  "image/png": [".png"],
4192
4209
  "image/jpeg": [".jpg", ".jpeg"],
4193
4210
  "image/webp": [".webp"],
4194
4211
  "image/gif": [".gif"],
4195
4212
  "image/svg+xml": [".svg"],
4196
4213
  "application/pdf": [".pdf"]
4197
- }, ft = {
4214
+ }, pt = {
4198
4215
  "image/png": "PNG",
4199
4216
  "image/jpeg": "JPG",
4200
4217
  "image/webp": "WEBP",
@@ -4208,7 +4225,7 @@ var We = class extends HTMLElement {
4208
4225
  ".gif": "GIF",
4209
4226
  ".svg": "SVG",
4210
4227
  ".pdf": "PDF"
4211
- }, pt = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), mt = [
4228
+ }, mt = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), ht = [
4212
4229
  ".png",
4213
4230
  ".jpg",
4214
4231
  ".jpeg",
@@ -4219,46 +4236,46 @@ var We = class extends HTMLElement {
4219
4236
  ".avif",
4220
4237
  ".heic"
4221
4238
  ];
4222
- function ht(e) {
4239
+ function gt(e) {
4223
4240
  if (!e) return !1;
4224
4241
  let t = typeof e == "object" && e.type ? String(e.type).toLowerCase() : "";
4225
4242
  if (t) return t.startsWith("image/");
4226
4243
  let n = typeof e == "string" ? e : e.name || e.url || "", r = String(n).toLowerCase();
4227
- return mt.some((e) => r.endsWith(e));
4228
- }
4229
- function gt(e) {
4230
- let t = pt(e);
4231
- return t.length ? t.every((e) => e.startsWith(".") ? mt.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
4244
+ return ht.some((e) => r.endsWith(e));
4232
4245
  }
4233
4246
  function _t(e) {
4247
+ let t = mt(e);
4248
+ return t.length ? t.every((e) => e.startsWith(".") ? ht.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
4249
+ }
4250
+ function vt(e) {
4234
4251
  let t = [];
4235
- for (let n of pt(e)) {
4236
- let e = ft[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
4252
+ for (let n of mt(e)) {
4253
+ let e = pt[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
4237
4254
  t.includes(e) || t.push(e);
4238
4255
  }
4239
4256
  return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
4240
4257
  }
4241
- function vt(e, t) {
4242
- let n = pt(t);
4258
+ function yt(e, t) {
4259
+ let n = mt(t);
4243
4260
  if (!n.length) return !0;
4244
4261
  let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
4245
- return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (dt[e] || []).some((e) => i.endsWith(e)));
4262
+ return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (ft[e] || []).some((e) => i.endsWith(e)));
4246
4263
  }
4247
- function yt(e, t = {}) {
4264
+ function bt(e, t = {}) {
4248
4265
  if (!e) return null;
4249
- let n = t.accept === void 0 ? ut : t.accept, r = t.maxSizeMb || 5;
4250
- return vt(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${_t(n)} file.`;
4266
+ let n = t.accept === void 0 ? dt : t.accept, r = t.maxSizeMb || 5;
4267
+ return yt(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${vt(n)} file.`;
4251
4268
  }
4252
4269
  var X = (e, t) => {
4253
4270
  typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
4254
4271
  };
4255
- function bt() {
4256
- X("wui-select", Ke), X("wui-phone", We), X("wui-datepicker", we), X("wui-date-range", Te), X("wui-dock", Ee), X("wui-slider", Je), X("wui-timepicker", it), X("wui-autocomplete", he), X("wui-multiselect", Oe), X("wui-taginput", Ze), X("wui-otp", Ne), X("wui-status-icon", ce), X("wui-wizard-step", lt), X("wui-wizard", ot);
4272
+ function xt() {
4273
+ X("wui-select", qe), X("wui-phone", Ge), X("wui-datepicker", Te), X("wui-date-range", Ee), X("wui-dock", De), X("wui-slider", Ye), X("wui-timepicker", at), X("wui-autocomplete", ge), X("wui-multiselect", ke), X("wui-taginput", Qe), X("wui-otp", Pe), X("wui-status-icon", ce), X("wui-wizard-step", ut), X("wui-wizard", st);
4257
4274
  }
4258
- bt();
4275
+ xt();
4259
4276
  //#endregion
4260
4277
  //#region src/components/AppPopover.jsx
4261
- function xt({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
4278
+ function St({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
4262
4279
  j("AppPopover", l);
4263
4280
  let u = s(), [f, h] = d(!1), g = (e) => {
4264
4281
  h(e), o?.(e);
@@ -4289,13 +4306,13 @@ function xt({ trigger: e, children: t, title: r, placement: i = "bottom", trigge
4289
4306
  }
4290
4307
  //#endregion
4291
4308
  //#region src/components/AppInfoTip.jsx
4292
- function St({ label: e, children: t, placement: n = "auto", className: r = "", ...i }) {
4309
+ function Ct({ label: e, children: t, placement: n = "auto", className: r = "", ...i }) {
4293
4310
  j("AppInfoTip", i);
4294
4311
  let [a, o] = d(!1), s = !!e;
4295
4312
  return !s && !t ? null : /* @__PURE__ */ p("span", {
4296
4313
  className: `infotip${r ? ` ${r}` : ""}`,
4297
4314
  ...i,
4298
- children: /* @__PURE__ */ p(xt, {
4315
+ children: /* @__PURE__ */ p(St, {
4299
4316
  trigger: /* @__PURE__ */ p("button", {
4300
4317
  type: "button",
4301
4318
  className: "infotip-btn",
@@ -4325,8 +4342,8 @@ function Z() {
4325
4342
  }
4326
4343
  //#endregion
4327
4344
  //#region src/components/useWuiControl.js
4328
- function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: a = Ct, syncDeps: s = [] } = {}) {
4329
- let c = u(null), l = r ?? wt, d = i ?? Tt, f = (a || Ct).join("\0"), p = (t) => {
4345
+ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: a = wt, syncDeps: s = [] } = {}) {
4346
+ let c = u(null), l = r ?? Tt, d = i ?? Et, f = (a || wt).join("\0"), p = (t) => {
4330
4347
  c.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
4331
4348
  };
4332
4349
  return o(() => {
@@ -4339,7 +4356,7 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
4339
4356
  ]), o(() => {
4340
4357
  let e = c.current;
4341
4358
  if (!e) return;
4342
- let t = f ? f.split("\0") : Ct, r, i = () => {
4359
+ let t = f ? f.split("\0") : wt, r, i = () => {
4343
4360
  let t = l(e);
4344
4361
  Object.is(t, r) || (r = t, n?.(t));
4345
4362
  };
@@ -4356,39 +4373,39 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
4356
4373
  innerRef: c
4357
4374
  };
4358
4375
  }
4359
- var Ct = ["change"];
4360
- function wt(e) {
4376
+ var wt = ["change"];
4377
+ function Tt(e) {
4361
4378
  return e.value;
4362
4379
  }
4363
- function Tt(e, t) {
4380
+ function Et(e, t) {
4364
4381
  let n = t ?? "";
4365
4382
  String(e.value ?? "") !== String(n) && (e.value = n);
4366
4383
  }
4367
- function Et(e, t) {
4384
+ function Dt(e, t) {
4368
4385
  let n = e || [], r = t || [];
4369
4386
  return n.length === r.length && n.every((e, t) => e?.value === r[t]?.value && e?.label === r[t]?.label);
4370
4387
  }
4371
- function Dt(e) {
4388
+ function Ot(e) {
4372
4389
  return e.values;
4373
4390
  }
4374
- function Ot(e, t) {
4391
+ function kt(e, t) {
4375
4392
  let n = t || [], r = e.values || [];
4376
4393
  (n.length !== r.length || !n.every((e, t) => e === r[t])) && (e.values = n);
4377
4394
  }
4378
- function kt(e) {
4395
+ function At(e) {
4379
4396
  return {
4380
4397
  start: e.start,
4381
4398
  end: e.end
4382
4399
  };
4383
4400
  }
4384
- function At(e, t) {
4401
+ function jt(e, t) {
4385
4402
  if (t === void 0) return;
4386
4403
  let n = Number.parseFloat(t);
4387
4404
  Number.isFinite(n) && e.value !== n && (e.value = n);
4388
4405
  }
4389
4406
  //#endregion
4390
4407
  //#region src/components/AppAutocomplete.jsx
4391
- var jt = 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) {
4408
+ var Mt = 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) {
4392
4409
  j("AppAutocomplete", S);
4393
4410
  let w = typeof r == "function", T = s(), E = f || T, { setRef: D, innerRef: O } = Q({
4394
4411
  ref: C,
@@ -4437,7 +4454,7 @@ var jt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4437
4454
  children: [
4438
4455
  h,
4439
4456
  v && /* @__PURE__ */ p(Z, {}),
4440
- y && /* @__PURE__ */ p(St, {
4457
+ y && /* @__PURE__ */ p(Ct, {
4441
4458
  label: b,
4442
4459
  children: y
4443
4460
  })
@@ -4471,14 +4488,14 @@ var jt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4471
4488
  }) : null
4472
4489
  ]
4473
4490
  });
4474
- }), Mt = /* @__PURE__ */ new Set([
4491
+ }), Nt = /* @__PURE__ */ new Set([
4475
4492
  "xs",
4476
4493
  "sm",
4477
4494
  "md",
4478
4495
  "lg",
4479
4496
  "xl",
4480
4497
  "2xl"
4481
- ]), Nt = {
4498
+ ]), Pt = {
4482
4499
  xs: 20,
4483
4500
  sm: 24,
4484
4501
  md: 32,
@@ -4486,30 +4503,30 @@ var jt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4486
4503
  xl: 64,
4487
4504
  "2xl": 96
4488
4505
  };
4489
- function Pt(e) {
4506
+ function Ft(e) {
4490
4507
  let t = (e || "").trim();
4491
4508
  if (!t) return "?";
4492
4509
  let n = t.split(/\s+/).filter(Boolean);
4493
4510
  return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
4494
4511
  }
4495
- function Ft(e) {
4512
+ function It(e) {
4496
4513
  let t = e || "", n = 0;
4497
4514
  for (let e = 0; e < t.length; e += 1) n = Math.imul(n, 31) + t.charCodeAt(e) >>> 0;
4498
4515
  return n % 360;
4499
4516
  }
4500
- function It(e) {
4517
+ function Lt(e) {
4501
4518
  if (typeof e == "number") return e;
4502
- if (Nt[e] != null) return Nt[e];
4519
+ if (Pt[e] != null) return Pt[e];
4503
4520
  let t = Number.parseInt(e, 10);
4504
4521
  return Number.isNaN(t) ? 32 : t;
4505
4522
  }
4506
- function Lt({ 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 }) {
4523
+ function Rt({ 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 }) {
4507
4524
  j("AppAvatar", y);
4508
4525
  let { style: b, ...x } = y, [S, C] = d(!1);
4509
4526
  o(() => {
4510
4527
  C(!1);
4511
4528
  }, [t]);
4512
- let w = typeof n == "string" && Mt.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 = [
4529
+ let w = typeof n == "string" && Nt.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 = [
4513
4530
  "avatar",
4514
4531
  w && n !== "md" ? `avatar-${n}` : "",
4515
4532
  r === "circle" ? "" : `avatar-${r}`,
@@ -4518,16 +4535,16 @@ function Lt({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
4518
4535
  E ? "avatar-clickable" : "",
4519
4536
  v
4520
4537
  ].filter(Boolean).join(" "), k = {};
4521
- T && (k["--avatar-size"] = T), i === "auto" && (k["--avatar-hue"] = Ft(e));
4538
+ T && (k["--avatar-size"] = T), i === "auto" && (k["--avatar-hue"] = It(e));
4522
4539
  let A = Object.keys(k).length || b ? {
4523
4540
  ...k,
4524
4541
  ...b
4525
4542
  } : void 0, M = /* @__PURE__ */ p("span", {
4526
4543
  className: "avatar-face",
4527
4544
  "aria-hidden": "true",
4528
- children: l == null ? Pt(e) : /* @__PURE__ */ p(I, {
4545
+ children: l == null ? Ft(e) : /* @__PURE__ */ p(I, {
4529
4546
  name: l,
4530
- size: Math.round(It(n) * .55)
4547
+ size: Math.round(Lt(n) * .55)
4531
4548
  })
4532
4549
  }), N = /* @__PURE__ */ m(f, { children: [
4533
4550
  a !== "none" && /* @__PURE__ */ p("span", {
@@ -4589,7 +4606,7 @@ function Lt({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
4589
4606
  }
4590
4607
  //#endregion
4591
4608
  //#region src/components/AppAvatarGroup.jsx
4592
- var Rt = {
4609
+ var zt = {
4593
4610
  xs: 20,
4594
4611
  sm: 24,
4595
4612
  md: 32,
@@ -4597,16 +4614,16 @@ var Rt = {
4597
4614
  xl: 64,
4598
4615
  "2xl": 96
4599
4616
  };
4600
- function zt(e) {
4601
- return e == null ? null : typeof e == "number" ? `${e}px` : Rt[e] == null ? /^\d+$/.test(e) ? `${e}px` : e : `${Rt[e]}px`;
4617
+ function Bt(e) {
4618
+ return e == null ? null : typeof e == "number" ? `${e}px` : zt[e] == null ? /^\d+$/.test(e) ? `${e}px` : e : `${zt[e]}px`;
4602
4619
  }
4603
- function Bt({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
4620
+ function Vt({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
4604
4621
  j("AppAvatarGroup", a);
4605
4622
  let { style: o, ...s } = a, c = [
4606
4623
  "avatar-group",
4607
4624
  n === "normal" ? "" : `avatar-group-${n}`,
4608
4625
  i
4609
- ].filter(Boolean).join(" "), l = zt(t), u = l ? {
4626
+ ].filter(Boolean).join(" "), l = Bt(t), u = l ? {
4610
4627
  "--avatar-size": l,
4611
4628
  ...o
4612
4629
  } : o, d = typeof r == "string" ? Number.parseInt(r, 10) : r;
@@ -4624,15 +4641,15 @@ function Bt({ children: e, size: t, spacing: n = "normal", overflow: r, classNam
4624
4641
  }
4625
4642
  //#endregion
4626
4643
  //#region src/components/normalizeTone.js
4627
- var Vt = { warn: "warning" };
4628
- function Ht(e) {
4629
- return e && (Vt[e] || e);
4644
+ var Ht = { warn: "warning" };
4645
+ function Ut(e) {
4646
+ return e && (Ht[e] || e);
4630
4647
  }
4631
4648
  //#endregion
4632
4649
  //#region src/components/AppBadge.jsx
4633
- function Ut({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4650
+ function Wt({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4634
4651
  j("AppBadge", i);
4635
- let a = Ht(t);
4652
+ let a = Ut(t);
4636
4653
  return /* @__PURE__ */ p(g, {
4637
4654
  bg: !1,
4638
4655
  className: [
@@ -4646,18 +4663,18 @@ function Ut({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4646
4663
  }
4647
4664
  //#endregion
4648
4665
  //#region src/components/AppBanner.jsx
4649
- var Wt = [
4666
+ var Gt = [
4650
4667
  "info",
4651
4668
  "success",
4652
4669
  "warning",
4653
4670
  "danger",
4654
4671
  "neutral"
4655
4672
  ];
4656
- function Gt({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
4673
+ function Kt({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
4657
4674
  j("AppBanner", o);
4658
4675
  let [s, c] = d(!0);
4659
4676
  if (!s) return null;
4660
- let l = Ht(e), u = Wt.includes(l) ? l : "info", f = () => {
4677
+ let l = Ut(e), u = Gt.includes(l) ? l : "info", f = () => {
4661
4678
  c(!1), i?.();
4662
4679
  };
4663
4680
  return /* @__PURE__ */ m("div", {
@@ -4688,7 +4705,7 @@ function Gt({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDis
4688
4705
  }
4689
4706
  //#endregion
4690
4707
  //#region src/components/AppBreadcrumbs.jsx
4691
- function Kt({ items: e = [], linkComponent: t, className: n = "", ...r }) {
4708
+ function qt({ items: e = [], linkComponent: t, className: n = "", ...r }) {
4692
4709
  return j("AppBreadcrumbs", r), /* @__PURE__ */ p(_, {
4693
4710
  className: n || void 0,
4694
4711
  ...r,
@@ -4707,28 +4724,68 @@ function Kt({ items: e = [], linkComponent: t, className: n = "", ...r }) {
4707
4724
  }
4708
4725
  //#endregion
4709
4726
  //#region src/components/AppCallout.jsx
4710
- function qt({ children: e, icon: t = "info", className: n = "", ...r }) {
4711
- return j("AppCallout", r), /* @__PURE__ */ m("div", {
4712
- className: `info-callout${n ? ` ${n}` : ""}`,
4713
- ...r,
4714
- children: [t && /* @__PURE__ */ p("span", {
4715
- className: "info-callout-icon",
4716
- children: /* @__PURE__ */ p(I, {
4717
- name: t,
4718
- size: 18
4727
+ var Jt = {
4728
+ info: "info-lg",
4729
+ success: "check-lg",
4730
+ warning: "exclamation-triangle-fill",
4731
+ danger: "x-lg"
4732
+ };
4733
+ function Yt({ children: e, tone: t = "info", title: n, icon: r, image: i, imageAlt: a = "", size: o = "md", dismissible: s = !1, onDismiss: c, className: l = "", ...u }) {
4734
+ j("AppCallout", u);
4735
+ let [f, h] = d(!0);
4736
+ if (!f) return null;
4737
+ let g = r === void 0 ? Jt[t] : r === "none" ? null : r, _ = !!i, v = _ || !!g, y = v && !!n && e != null && e !== !1 && e !== "", b = y ? 13 : 11;
4738
+ return /* @__PURE__ */ m("div", {
4739
+ className: [
4740
+ "info-callout",
4741
+ `tone-${t}`,
4742
+ o === "sm" ? "info-callout-sm" : "",
4743
+ y ? "info-callout-stack" : "",
4744
+ l
4745
+ ].filter(Boolean).join(" "),
4746
+ ...u,
4747
+ children: [
4748
+ v && /* @__PURE__ */ p("span", {
4749
+ className: `info-callout-icon${_ ? " info-callout-icon-image" : ""}`,
4750
+ children: _ ? /* @__PURE__ */ p("img", {
4751
+ src: i,
4752
+ alt: a
4753
+ }) : typeof g == "string" ? /* @__PURE__ */ p(I, {
4754
+ name: g,
4755
+ size: b
4756
+ }) : g
4757
+ }),
4758
+ /* @__PURE__ */ m("div", {
4759
+ className: "info-callout-content",
4760
+ children: [n && /* @__PURE__ */ p("div", {
4761
+ className: "info-callout-heading",
4762
+ children: n
4763
+ }), e]
4764
+ }),
4765
+ s && /* @__PURE__ */ p("button", {
4766
+ type: "button",
4767
+ className: "info-callout-close",
4768
+ "aria-label": "Dismiss",
4769
+ onClick: () => {
4770
+ h(!1), c?.();
4771
+ },
4772
+ children: /* @__PURE__ */ p(I, {
4773
+ name: "x",
4774
+ size: 18
4775
+ })
4719
4776
  })
4720
- }), /* @__PURE__ */ p("div", { children: e })]
4777
+ ]
4721
4778
  });
4722
4779
  }
4723
4780
  //#endregion
4724
4781
  //#region src/components/AppCard.jsx
4725
- var Jt = {
4782
+ var Xt = {
4726
4783
  xs: 320,
4727
4784
  sm: 420,
4728
4785
  md: 560,
4729
4786
  lg: 720
4730
4787
  };
4731
- function Yt({ 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 }) {
4788
+ function Zt({ 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 }) {
4732
4789
  j("AppCard", E);
4733
4790
  let { style: D, ...O } = E, k = C != null || w != null, A = [
4734
4791
  u && u !== "default" ? `card-${u}` : "",
@@ -4738,7 +4795,7 @@ function Yt({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
4738
4795
  g == null ? "" : "card-constrained",
4739
4796
  k ? "card-clickable" : "",
4740
4797
  _
4741
- ].filter(Boolean).join(" ") || void 0, M = g == null ? void 0 : Jt[g] == null ? typeof g == "number" ? `${g}px` : g : `${Jt[g]}px`, N = M ? {
4798
+ ].filter(Boolean).join(" ") || void 0, M = g == null ? void 0 : Xt[g] == null ? typeof g == "number" ? `${g}px` : g : `${Xt[g]}px`, N = M ? {
4742
4799
  "--card-max-width": M,
4743
4800
  ...D
4744
4801
  } : D, P = {};
@@ -4809,7 +4866,7 @@ function Yt({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
4809
4866
  }
4810
4867
  //#endregion
4811
4868
  //#region src/lib/CheckField.jsx
4812
- var Xt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", rest: o = {}, inputType: c, wrapperClass: l }, u) {
4869
+ var Qt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", rest: o = {}, inputType: c, wrapperClass: l }, u) {
4813
4870
  let d = s(), f = t || d;
4814
4871
  return /* @__PURE__ */ m("div", {
4815
4872
  className: `${l}${a ? ` ${a}` : ""}`,
@@ -4837,8 +4894,8 @@ var Xt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
4837
4894
  }) : null
4838
4895
  ]
4839
4896
  });
4840
- }), Zt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
4841
- return j("AppCheckbox", o), /* @__PURE__ */ p(Xt, {
4897
+ }), $t = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
4898
+ return j("AppCheckbox", o), /* @__PURE__ */ p(Qt, {
4842
4899
  ref: s,
4843
4900
  label: e,
4844
4901
  id: t,
@@ -4853,9 +4910,9 @@ var Xt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
4853
4910
  });
4854
4911
  //#endregion
4855
4912
  //#region src/components/AppChip.jsx
4856
- function Qt({ label: e, children: t, tone: n = "neutral", size: r = "md", leadingIcon: i, avatar: a, onRemove: o, onClick: s, disabled: c = !1, removeLabel: l, className: u = "", ...d }) {
4913
+ function en({ label: e, children: t, tone: n = "neutral", size: r = "md", leadingIcon: i, avatar: a, onRemove: o, onClick: s, disabled: c = !1, removeLabel: l, className: u = "", ...d }) {
4857
4914
  j("AppChip", d);
4858
- let h = e ?? t, g = Ht(n), _ = [
4915
+ let h = e ?? t, g = Ut(n), _ = [
4859
4916
  "chip",
4860
4917
  g && g !== "neutral" ? g : "",
4861
4918
  r === "sm" ? "chip-sm" : "",
@@ -4906,7 +4963,7 @@ function Qt({ label: e, children: t, tone: n = "neutral", size: r = "md", leadin
4906
4963
  }
4907
4964
  //#endregion
4908
4965
  //#region src/components/AppChoiceCard.jsx
4909
- function $t({ 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: _ = 12, className: v = "", ...y }) {
4966
+ function tn({ 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: _ = 12, className: v = "", ...y }) {
4910
4967
  return j("AppChoiceCard", y), /* @__PURE__ */ m("label", {
4911
4968
  className: `struct-card${c ? " struct-card-img-card" : ""}${r ? " checked" : ""}${v ? ` ${v}` : ""}`,
4912
4969
  ...y,
@@ -4955,7 +5012,7 @@ function $t({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
4955
5012
  }
4956
5013
  //#endregion
4957
5014
  //#region src/components/AppChoiceChip.jsx
4958
- function en({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, className: c = "", ...l }) {
5015
+ function nn({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, className: c = "", ...l }) {
4959
5016
  return j("AppChoiceChip", l), /* @__PURE__ */ m("label", {
4960
5017
  className: `choice-chip${i ? " checked" : ""}${c ? ` ${c}` : ""}`,
4961
5018
  ...l,
@@ -4977,7 +5034,7 @@ function en({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChang
4977
5034
  }
4978
5035
  //#endregion
4979
5036
  //#region src/components/AppColorField.jsx
4980
- function tn({ 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 }) {
5037
+ function rn({ 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 }) {
4981
5038
  j("AppColorField", f);
4982
5039
  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" : "";
4983
5040
  return /* @__PURE__ */ m("div", {
@@ -5026,7 +5083,7 @@ function tn({ value: e = "#000000", onChange: t, label: n, required: r = !1, err
5026
5083
  }
5027
5084
  //#endregion
5028
5085
  //#region src/components/AppCompareTable.jsx
5029
- function nn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
5086
+ function an({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
5030
5087
  j("AppCompareTable", i);
5031
5088
  let a = (e) => e === !0 ? /* @__PURE__ */ p("span", {
5032
5089
  className: "compare-yes",
@@ -5063,58 +5120,58 @@ function nn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i
5063
5120
  }
5064
5121
  //#endregion
5065
5122
  //#region src/components/AppInput.jsx
5066
- var rn = 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: M, ...N }, P) {
5123
+ var on = 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: M, ...N }, P) {
5067
5124
  j("AppInput", N);
5068
- let [F, L] = d(!1), R = s(), z = y || R, B = c === "password", ee = B && F ? "text" : c, te = u(null), ne = (e) => {
5069
- te.current = e, typeof P == "function" ? P(e) : P && (P.current = e);
5070
- }, re = String(N.value ?? N.defaultValue ?? ""), [V, ie] = d(() => !!re), [ae, oe] = d(() => re.length), se = T && !w, ce = T || E;
5125
+ let [F, L] = d(!1), R = s(), z = y || R, B = c === "password", ee = B && F ? "text" : c, V = u(null), te = (e) => {
5126
+ V.current = e, typeof P == "function" ? P(e) : P && (P.current = e);
5127
+ }, ne = String(N.value ?? N.defaultValue ?? ""), [re, H] = d(() => !!ne), [ie, ae] = d(() => ne.length), oe = T && !w, se = T || E;
5071
5128
  o(() => {
5072
- if (!ce || N.value === void 0) return;
5129
+ if (!se || N.value === void 0) return;
5073
5130
  let e = String(N.value ?? "");
5074
- ie(!!e), oe(e.length);
5075
- }, [N.value, ce]);
5076
- let le = (e) => {
5077
- ie(!!e.target.value), oe(e.target.value.length), N.onInput?.(e);
5078
- }, H = se ? /* @__PURE__ */ p("button", {
5131
+ H(!!e), ae(e.length);
5132
+ }, [N.value, se]);
5133
+ let ce = (e) => {
5134
+ H(!!e.target.value), ae(e.target.value.length), N.onInput?.(e);
5135
+ }, le = oe ? /* @__PURE__ */ p("button", {
5079
5136
  type: "button",
5080
5137
  className: "input-clear",
5081
5138
  onClick: () => {
5082
- let e = te.current;
5139
+ let e = V.current;
5083
5140
  if (!e) return;
5084
5141
  let t = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set;
5085
- t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })), ie(!1), e.focus();
5142
+ t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })), H(!1), e.focus();
5086
5143
  },
5087
5144
  "aria-label": "Clear",
5088
5145
  tabIndex: -1,
5089
- hidden: !V,
5146
+ hidden: !re,
5090
5147
  children: /* @__PURE__ */ p(I, {
5091
5148
  name: "x",
5092
5149
  size: 16
5093
5150
  })
5094
- }) : null, ue = n && z ? `${z}-error` : void 0, U = r && z ? `${z}-hint` : void 0, de = ue || U, W = [
5151
+ }) : null, U = n && z ? `${z}-error` : void 0, W = r && z ? `${z}-hint` : void 0, ue = U || W, de = [
5095
5152
  "input",
5096
5153
  l === "sm" ? "input-sm" : "",
5097
5154
  l === "lg" ? "input-lg" : "",
5098
5155
  n ? "error" : "",
5099
5156
  B ? "pw" : "",
5100
5157
  v ? "num-input" : "",
5101
- !(A && e || O || k || v || B || h) && T && se ? "has-clear" : "",
5158
+ !(A && e || O || k || v || B || h) && T && oe ? "has-clear" : "",
5102
5159
  M === "bare" ? "input-bare" : "",
5103
5160
  S
5104
5161
  ].filter(Boolean).join(" "), G = /* @__PURE__ */ p(x.Control, {
5105
5162
  id: z,
5106
5163
  name: b,
5107
5164
  type: ee,
5108
- className: W,
5165
+ className: de,
5109
5166
  disabled: w,
5110
5167
  required: t,
5111
5168
  "aria-invalid": n ? "true" : "false",
5112
- "aria-describedby": de,
5169
+ "aria-describedby": ue,
5113
5170
  maxLength: D,
5114
5171
  ...N,
5115
5172
  placeholder: A ? " " : N.placeholder,
5116
- ref: ne,
5117
- onInput: ce ? le : N.onInput
5173
+ ref: te,
5174
+ onInput: se ? ce : N.onInput
5118
5175
  }), fe;
5119
5176
  return fe = A && e ? /* @__PURE__ */ m("div", {
5120
5177
  className: "field-float",
@@ -5190,7 +5247,7 @@ var rn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5190
5247
  })
5191
5248
  }),
5192
5249
  G,
5193
- H
5250
+ le
5194
5251
  ]
5195
5252
  }) : f ? /* @__PURE__ */ m("div", {
5196
5253
  className: "input-icon",
@@ -5210,7 +5267,7 @@ var rn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5210
5267
  children: [
5211
5268
  e,
5212
5269
  t && /* @__PURE__ */ p(Z, {}),
5213
- i && /* @__PURE__ */ p(St, {
5270
+ i && /* @__PURE__ */ p(Ct, {
5214
5271
  label: a,
5215
5272
  children: i
5216
5273
  })
@@ -5219,47 +5276,47 @@ var rn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5219
5276
  fe,
5220
5277
  n ? /* @__PURE__ */ p("div", {
5221
5278
  className: "field-error",
5222
- id: ue,
5279
+ id: U,
5223
5280
  children: n
5224
5281
  }) : r ? /* @__PURE__ */ p("div", {
5225
5282
  className: "field-hint",
5226
- id: U,
5283
+ id: W,
5227
5284
  children: r
5228
5285
  }) : null,
5229
5286
  E && /* @__PURE__ */ m("div", {
5230
- className: `field-count${D && ae >= D ? " at-limit" : ""}`,
5231
- children: [ae, D ? ` / ${D}` : ""]
5287
+ className: `field-count${D && ie >= D ? " at-limit" : ""}`,
5288
+ children: [ie, D ? ` / ${D}` : ""]
5232
5289
  })
5233
5290
  ]
5234
5291
  });
5235
- }), an = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", on = {
5292
+ }), sn = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", cn = {
5236
5293
  sm: 380,
5237
5294
  md: 440,
5238
5295
  lg: 640,
5239
5296
  xl: 880
5240
- }, sn = !1;
5241
- function cn() {
5297
+ }, ln = !1;
5298
+ function un() {
5242
5299
  let e = !0;
5243
5300
  try {
5244
5301
  e = process.env.NODE_ENV !== "production";
5245
5302
  } catch {
5246
5303
  e = !0;
5247
5304
  }
5248
- !e || sn || (sn = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
5305
+ !e || ln || (ln = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
5249
5306
  }
5250
- function ln({ 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 }) {
5307
+ function dn({ 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 }) {
5251
5308
  j("AppModal", b);
5252
5309
  let { style: x, ...C } = b;
5253
- h && !_ && typeof n != "string" && cn();
5310
+ h && !_ && typeof n != "string" && un();
5254
5311
  let w = u(null);
5255
5312
  o(() => {
5256
5313
  if (!e) return;
5257
5314
  let t = w.current?.closest(".modal-content");
5258
5315
  if (!t) return;
5259
- let n = () => Array.from(t.querySelectorAll(an));
5316
+ let n = () => Array.from(t.querySelectorAll(sn));
5260
5317
  (t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("wui-modal-close")) || n()[0] || t).focus?.();
5261
5318
  }, [e]);
5262
- let T = typeof d == "number" ? d : on[d] ?? on.md, E = [
5319
+ let T = typeof d == "number" ? d : cn[d] ?? cn.md, E = [
5263
5320
  "wui-modal",
5264
5321
  a === "default" ? "" : `tone-${a}`,
5265
5322
  v
@@ -5344,30 +5401,30 @@ function ln({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a
5344
5401
  }
5345
5402
  //#endregion
5346
5403
  //#region src/components/ModalIcons.jsx
5347
- var un = (e) => function({ size: t = 72 }) {
5404
+ var fn = (e) => function({ size: t = 72 }) {
5348
5405
  return /* @__PURE__ */ p("wui-status-icon", {
5349
5406
  tone: e,
5350
5407
  size: t
5351
5408
  });
5352
- }, dn = {
5353
- success: un("success"),
5354
- error: un("error"),
5355
- warning: un("warning"),
5356
- info: un("info"),
5357
- delete: un("delete")
5409
+ }, pn = {
5410
+ success: fn("success"),
5411
+ error: fn("error"),
5412
+ warning: fn("warning"),
5413
+ info: fn("info"),
5414
+ delete: fn("delete")
5358
5415
  };
5359
5416
  //#endregion
5360
5417
  //#region src/components/AppConfirmDialog.jsx
5361
- function fn({ 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 }) {
5418
+ function mn({ 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 }) {
5362
5419
  j("AppConfirmDialog", y);
5363
5420
  let [b, x] = d("");
5364
5421
  if (o(() => {
5365
5422
  e || x("");
5366
5423
  }, [e]), !e) return null;
5367
- let S = !!c && b.trim() !== c, C = dn[s || (a ? "delete" : "info")], w = () => {
5424
+ let S = !!c && b.trim() !== c, C = pn[s || (a ? "delete" : "info")], w = () => {
5368
5425
  h || u?.();
5369
5426
  };
5370
- return /* @__PURE__ */ p(ln, {
5427
+ return /* @__PURE__ */ p(dn, {
5371
5428
  ...y,
5372
5429
  open: e,
5373
5430
  hideHeader: !0,
@@ -5378,12 +5435,12 @@ function fn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
5378
5435
  className: ["wui-confirm", v].filter(Boolean).join(" "),
5379
5436
  footer: /* @__PURE__ */ m("div", {
5380
5437
  className: "wui-confirm-actions",
5381
- children: [/* @__PURE__ */ p(V, {
5438
+ children: [/* @__PURE__ */ p(H, {
5382
5439
  variant: "secondary",
5383
5440
  disabled: h,
5384
5441
  onClick: w,
5385
5442
  children: i
5386
- }), /* @__PURE__ */ p(V, {
5443
+ }), /* @__PURE__ */ p(H, {
5387
5444
  variant: a ? "danger" : "primary",
5388
5445
  disabled: S,
5389
5446
  loading: h,
@@ -5396,7 +5453,7 @@ function fn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
5396
5453
  children: [
5397
5454
  C && /* @__PURE__ */ p("span", {
5398
5455
  className: "wui-confirm-icon",
5399
- children: /* @__PURE__ */ p(C, { size: 104 })
5456
+ children: /* @__PURE__ */ p(C, { size: 80 })
5400
5457
  }),
5401
5458
  /* @__PURE__ */ p("h3", {
5402
5459
  className: "wui-confirm-title",
@@ -5408,7 +5465,7 @@ function fn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
5408
5465
  className: "wui-confirm-msg",
5409
5466
  children: n
5410
5467
  }),
5411
- c && /* @__PURE__ */ p(rn, {
5468
+ c && /* @__PURE__ */ p(on, {
5412
5469
  fieldClassName: "mt-3 mb-0 w-100 text-start",
5413
5470
  label: /* @__PURE__ */ m(f, { children: [
5414
5471
  "Type ",
@@ -5426,12 +5483,12 @@ function fn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
5426
5483
  }
5427
5484
  //#endregion
5428
5485
  //#region src/components/AppCopyButton.jsx
5429
- var pn = {
5486
+ var hn = {
5430
5487
  sm: 14,
5431
5488
  md: 16,
5432
5489
  lg: 20
5433
5490
  };
5434
- function mn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: o = "ghost", onCopied: s, className: c = "", ...l }) {
5491
+ function gn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: o = "ghost", onCopied: s, className: c = "", ...l }) {
5435
5492
  j("AppCopyButton", l);
5436
5493
  let [u, f] = d(!1), m = a(async () => {
5437
5494
  try {
@@ -5450,11 +5507,11 @@ function mn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
5450
5507
  return r ? /* @__PURE__ */ p(R, {
5451
5508
  icon: g,
5452
5509
  label: h,
5453
- size: pn[i] ?? pn.md,
5510
+ size: hn[i] ?? hn.md,
5454
5511
  onClick: m,
5455
5512
  className: c,
5456
5513
  ...l
5457
- }) : /* @__PURE__ */ p(V, {
5514
+ }) : /* @__PURE__ */ p(H, {
5458
5515
  leftIcon: g,
5459
5516
  variant: o,
5460
5517
  size: i,
@@ -5467,7 +5524,7 @@ function mn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
5467
5524
  }
5468
5525
  //#endregion
5469
5526
  //#region src/components/AppSkeleton.jsx
5470
- function hn({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
5527
+ function _n({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
5471
5528
  return j("AppSkeleton", a), /* @__PURE__ */ p("span", {
5472
5529
  className: `skeleton${r ? ` ${r}` : ""}`,
5473
5530
  "aria-hidden": "true",
@@ -5480,28 +5537,28 @@ function hn({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "
5480
5537
  ...a
5481
5538
  });
5482
5539
  }
5483
- function gn({ rows: e = 4, cols: t = 5 }) {
5484
- 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(hn, {
5540
+ function vn({ rows: e = 4, cols: t = 5 }) {
5541
+ 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(_n, {
5485
5542
  width: t === 0 ? "70%" : "50%",
5486
5543
  height: 12
5487
5544
  }) }, `col-${t}`)) }, `row-${n}`));
5488
5545
  }
5489
5546
  //#endregion
5490
5547
  //#region src/lib/pageWindow.js
5491
- var _n = (e, t) => {
5548
+ var yn = (e, t) => {
5492
5549
  let n = [];
5493
5550
  for (let r = e; r <= t; r += 1) n.push(r);
5494
5551
  return n;
5495
5552
  };
5496
- function vn(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
5553
+ function bn(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
5497
5554
  let i = Math.max(1, t), a = Math.min(Math.max(1, e), i);
5498
- if (i <= n * 2 + 3 + r * 2) return _n(1, i);
5499
- 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 = _n(1, r);
5500
- return u.push(...c ? ["ellipsis-left"] : _n(r + 1, o - 1)), u.push(..._n(o, s)), u.push(...l ? ["ellipsis-right"] : _n(s + 1, i - r)), u.push(..._n(i - r + 1, i)), u;
5555
+ if (i <= n * 2 + 3 + r * 2) return yn(1, i);
5556
+ 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 = yn(1, r);
5557
+ return u.push(...c ? ["ellipsis-left"] : yn(r + 1, o - 1)), u.push(...yn(o, s)), u.push(...l ? ["ellipsis-right"] : yn(s + 1, i - r)), u.push(...yn(i - r + 1, i)), u;
5501
5558
  }
5502
5559
  //#endregion
5503
5560
  //#region src/components/AppSelectMini.jsx
5504
- function yn({ 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 }) {
5561
+ function xn({ 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 }) {
5505
5562
  j("AppSelectMini", m);
5506
5563
  let { setRef: h, innerRef: g } = Q({
5507
5564
  value: e ?? "",
@@ -5515,7 +5572,7 @@ function yn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5515
5572
  label: e.label ?? e.text ?? "",
5516
5573
  icon: e.icon
5517
5574
  }));
5518
- Et(t, e.options) || (e.options = t);
5575
+ Dt(t, e.options) || (e.options = t);
5519
5576
  }, [n, g]), o(() => {
5520
5577
  let e = g.current;
5521
5578
  if (e) for (let [t, n] of [["icon", u], ["prefix", d]]) n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n);
@@ -5538,22 +5595,22 @@ function yn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5538
5595
  }
5539
5596
  //#endregion
5540
5597
  //#region src/components/AppTablePagination.jsx
5541
- var bn = [
5598
+ var Sn = [
5542
5599
  5,
5543
5600
  10,
5544
5601
  25,
5545
5602
  50
5546
5603
  ];
5547
- function xn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = bn, mode: l = "prev-next", showPageSize: u = !0, className: d = "", ...f }) {
5604
+ function Cn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = Sn, mode: l = "prev-next", showPageSize: u = !0, className: d = "", ...f }) {
5548
5605
  j("AppTablePagination", f);
5549
- let h = l === "numbered", g = h ? vn(e, t) : null;
5606
+ let h = l === "numbered", g = h ? bn(e, t) : null;
5550
5607
  return /* @__PURE__ */ m("div", {
5551
5608
  className: `table-pagination${d ? ` ${d}` : ""}`,
5552
5609
  ...f,
5553
5610
  children: [
5554
5611
  u && /* @__PURE__ */ m("span", {
5555
5612
  className: "tpg-rows",
5556
- children: ["Rows per page:", /* @__PURE__ */ p(yn, {
5613
+ children: ["Rows per page:", /* @__PURE__ */ p(xn, {
5557
5614
  value: n,
5558
5615
  onChange: (e) => s(Number(e)),
5559
5616
  ariaLabel: "Rows per page",
@@ -5617,13 +5674,13 @@ function xn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
5617
5674
  }
5618
5675
  //#endregion
5619
5676
  //#region src/components/AppDataTable.jsx
5620
- function Sn(e) {
5677
+ function wn(e) {
5621
5678
  return e === "end" ? "wui-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
5622
5679
  }
5623
- function Cn(e) {
5680
+ function Tn(e) {
5624
5681
  return e == null || e === "" ? "—" : typeof e == "boolean" ? String(e) : e;
5625
5682
  }
5626
- function wn({ 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 }) {
5683
+ function En({ 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 }) {
5627
5684
  j("AppDataTable", E);
5628
5685
  let D = typeof T == "function", [O, k] = d(() => /* @__PURE__ */ new Set()), A = (e) => k((t) => {
5629
5686
  let n = new Set(t);
@@ -5659,7 +5716,7 @@ function wn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5659
5716
  e.map((e, t) => {
5660
5717
  let n = !!(e.sortable && a), r = i && i.key === e.key;
5661
5718
  return /* @__PURE__ */ m("th", {
5662
- className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + Sn(e.align),
5719
+ className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + wn(e.align),
5663
5720
  style: e.width ? { width: e.width } : void 0,
5664
5721
  tabIndex: n ? 0 : void 0,
5665
5722
  "aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
@@ -5686,7 +5743,7 @@ function wn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5686
5743
  children: "Actions"
5687
5744
  })
5688
5745
  }))
5689
- ] }) }), /* @__PURE__ */ p("tbody", { children: o ? /* @__PURE__ */ p(gn, {
5746
+ ] }) }), /* @__PURE__ */ p("tbody", { children: o ? /* @__PURE__ */ p(vn, {
5690
5747
  rows: s,
5691
5748
  cols: M
5692
5749
  }) : n?.length ? n.map((n, i) => {
@@ -5720,9 +5777,9 @@ function wn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5720
5777
  })
5721
5778
  }),
5722
5779
  e.map((e, t) => /* @__PURE__ */ p("td", {
5723
- className: (t === 0 ? "wui-name-cell " : "") + Sn(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
5780
+ className: (t === 0 ? "wui-name-cell " : "") + wn(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
5724
5781
  style: e.cellStyle,
5725
- children: e.render ? e.render(n) : Cn(n[e.key])
5782
+ children: e.render ? e.render(n) : Tn(n[e.key])
5726
5783
  }, e.key)),
5727
5784
  h && /* @__PURE__ */ p("td", { children: /* @__PURE__ */ p("div", {
5728
5785
  className: "u-row-actions",
@@ -5743,7 +5800,7 @@ function wn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5743
5800
  children: R
5744
5801
  }) }) })]
5745
5802
  })
5746
- }), _ && !o && _.total > 0 && /* @__PURE__ */ p(xn, {
5803
+ }), _ && !o && _.total > 0 && /* @__PURE__ */ p(Cn, {
5747
5804
  page: _.page,
5748
5805
  totalPages: _.totalPages,
5749
5806
  pageSize: _.pageSize,
@@ -5756,7 +5813,7 @@ function wn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5756
5813
  }
5757
5814
  //#endregion
5758
5815
  //#region src/components/AppDatePicker.jsx
5759
- var Tn = 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) {
5816
+ var Dn = 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) {
5760
5817
  j("AppDatePicker", y);
5761
5818
  let x = s(), S = g || o || x, { setRef: C } = Q({
5762
5819
  ref: b,
@@ -5800,7 +5857,7 @@ var Tn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
5800
5857
  })
5801
5858
  ]
5802
5859
  });
5803
- }), En = 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) {
5860
+ }), On = 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) {
5804
5861
  j("AppDateRangePicker", S);
5805
5862
  let w = s(), T = y || l || w, { setRef: E, innerRef: D } = Q({
5806
5863
  ref: C,
@@ -5861,12 +5918,12 @@ var Tn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
5861
5918
  });
5862
5919
  //#endregion
5863
5920
  //#region src/lib/emptyValue.js
5864
- function Dn(e) {
5921
+ function kn(e) {
5865
5922
  return e == null || e === "";
5866
5923
  }
5867
5924
  //#endregion
5868
5925
  //#region src/components/AppDescriptions.jsx
5869
- function On({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
5926
+ function An({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
5870
5927
  return j("AppDescriptions", o), /* @__PURE__ */ m("div", {
5871
5928
  className: [
5872
5929
  "descs",
@@ -5882,7 +5939,7 @@ function On({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
5882
5939
  }), /* @__PURE__ */ p("dl", {
5883
5940
  className: "descs-list",
5884
5941
  children: e.map((e, t) => {
5885
- let n = Dn(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
5942
+ let n = kn(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
5886
5943
  return /* @__PURE__ */ m("div", {
5887
5944
  className: "descs-item",
5888
5945
  style: { "--descs-span": r },
@@ -5900,24 +5957,24 @@ function On({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
5900
5957
  }
5901
5958
  //#endregion
5902
5959
  //#region src/components/AppDropdown.jsx
5903
- var kn = !1;
5904
- function An() {
5960
+ var jn = !1;
5961
+ function Mn() {
5905
5962
  let e = !0;
5906
5963
  try {
5907
5964
  e = process.env.NODE_ENV !== "production";
5908
5965
  } catch {
5909
5966
  e = !0;
5910
5967
  }
5911
- !e || kn || (kn = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
5968
+ !e || jn || (jn = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
5912
5969
  }
5913
- function jn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: o = [], menuClassName: s = "", linkComponent: c, children: l, trigger: u, ...d }) {
5914
- j("AppDropdown", d), !u && !i && !r && An();
5970
+ function Nn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: o = [], menuClassName: s = "", linkComponent: c, children: l, trigger: u, ...d }) {
5971
+ j("AppDropdown", d), !u && !i && !r && Mn();
5915
5972
  let f = n ?? (u ? "wui-dropdown-trigger" : "topbar-icon-btn");
5916
5973
  return /* @__PURE__ */ m(b, {
5917
5974
  align: a,
5918
5975
  ...d,
5919
5976
  children: [/* @__PURE__ */ p(b.Toggle, {
5920
- as: Mn,
5977
+ as: Pn,
5921
5978
  icon: e,
5922
5979
  iconSize: t,
5923
5980
  btnClassName: f,
@@ -5952,7 +6009,7 @@ function jn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
5952
6009
  })]
5953
6010
  });
5954
6011
  }
5955
- var Mn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
6012
+ var Pn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
5956
6013
  return /* @__PURE__ */ p("button", {
5957
6014
  ref: s,
5958
6015
  type: "button",
@@ -5967,16 +6024,16 @@ var Mn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-
5967
6024
  });
5968
6025
  //#endregion
5969
6026
  //#region src/lib/fileItem.js
5970
- function Nn(e) {
6027
+ function Fn(e) {
5971
6028
  return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
5972
6029
  }
5973
- function Pn(e) {
6030
+ function In(e) {
5974
6031
  return e instanceof File ? e.name : e?.name;
5975
6032
  }
5976
- function Fn(e) {
6033
+ function Ln(e) {
5977
6034
  return e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
5978
6035
  }
5979
- function In(e, t) {
6036
+ function Rn(e, t) {
5980
6037
  let [n, r] = d(null);
5981
6038
  return o(() => {
5982
6039
  if (!t) {
@@ -5992,8 +6049,8 @@ function In(e, t) {
5992
6049
  }
5993
6050
  //#endregion
5994
6051
  //#region src/lib/FileItemRow.jsx
5995
- function Ln({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
5996
- let i = In(e, t), a = Pn(e), o = Fn(e);
6052
+ function zn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
6053
+ let i = Rn(e, t), a = In(e), o = Ln(e);
5997
6054
  return /* @__PURE__ */ m("div", {
5998
6055
  className: "attach-item",
5999
6056
  children: [
@@ -6032,15 +6089,15 @@ function Ln({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
6032
6089
  }
6033
6090
  //#endregion
6034
6091
  //#region src/components/AppFileAttachment.jsx
6035
- function Rn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = ut, maxSizeMb: o = 5, optional: c = !1, error: l, id: u, ...h }) {
6092
+ function Bn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = dt, maxSizeMb: o = 5, optional: c = !1, error: l, id: u, ...h }) {
6036
6093
  j("AppFileAttachment", h);
6037
- let g = s(), _ = u || n || g, [v, y] = d(""), b = i && Array.isArray(t) ? t : t ? [t] : [], x = gt(a), S = (e) => e instanceof File ? ht(e) : x || ht(e), C = !i && b.length === 1 && S(b[0]);
6094
+ let g = s(), _ = u || n || g, [v, y] = d(""), b = i && Array.isArray(t) ? t : t ? [t] : [], x = _t(a), S = (e) => e instanceof File ? gt(e) : x || gt(e), C = !i && b.length === 1 && S(b[0]);
6038
6095
  function w(e) {
6039
6096
  let n = Array.from(e.target.files || []);
6040
6097
  if (e.target.value = "", !n.length) return;
6041
6098
  let s = [], c = "";
6042
6099
  for (let e of n) {
6043
- let t = yt(e, {
6100
+ let t = bt(e, {
6044
6101
  accept: a,
6045
6102
  maxSizeMb: o
6046
6103
  });
@@ -6051,8 +6108,8 @@ function Rn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6051
6108
  s.push(e);
6052
6109
  }
6053
6110
  if (y(c), s.length) if (i) {
6054
- let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(Nn));
6055
- r(e.concat(s.filter((e) => !n.has(Nn(e)))));
6111
+ let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(Fn));
6112
+ r(e.concat(s.filter((e) => !n.has(Fn(e)))));
6056
6113
  } else r(s[0]);
6057
6114
  }
6058
6115
  function T(e) {
@@ -6089,7 +6146,7 @@ function Rn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6089
6146
  }), /* @__PURE__ */ m("span", {
6090
6147
  className: "attach-drop-hint",
6091
6148
  children: [
6092
- _t(a),
6149
+ vt(a),
6093
6150
  ", up to ",
6094
6151
  o,
6095
6152
  " MB"
@@ -6111,17 +6168,17 @@ function Rn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6111
6168
  onChange: w,
6112
6169
  ...h
6113
6170
  })] }),
6114
- C ? /* @__PURE__ */ p(zn, {
6171
+ C ? /* @__PURE__ */ p(Vn, {
6115
6172
  item: b[0],
6116
6173
  isImage: !0,
6117
6174
  onRemove: () => T(0)
6118
6175
  }) : b.length > 0 && /* @__PURE__ */ p("div", {
6119
6176
  className: "attach-list",
6120
- children: b.map((e, t) => /* @__PURE__ */ p(Ln, {
6177
+ children: b.map((e, t) => /* @__PURE__ */ p(zn, {
6121
6178
  item: e,
6122
6179
  isImage: S(e),
6123
6180
  onRemove: () => T(t)
6124
- }, Nn(e)))
6181
+ }, Fn(e)))
6125
6182
  }),
6126
6183
  E && /* @__PURE__ */ p("div", {
6127
6184
  className: "field-error",
@@ -6130,8 +6187,8 @@ function Rn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6130
6187
  ]
6131
6188
  });
6132
6189
  }
6133
- function zn({ item: e, isImage: t, onRemove: n }) {
6134
- let r = In(e, t), i = Pn(e), a = Fn(e);
6190
+ function Vn({ item: e, isImage: t, onRemove: n }) {
6191
+ let r = Rn(e, t), i = In(e), a = Ln(e);
6135
6192
  return /* @__PURE__ */ m("div", {
6136
6193
  className: "attach-preview",
6137
6194
  children: [/* @__PURE__ */ m("div", {
@@ -6163,18 +6220,18 @@ function zn({ item: e, isImage: t, onRemove: n }) {
6163
6220
  }
6164
6221
  //#endregion
6165
6222
  //#region src/components/AppFilePicker.jsx
6166
- function Bn({ 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 = "", ..._ }) {
6223
+ function Hn({ 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 = "", ..._ }) {
6167
6224
  j("AppFilePicker", _);
6168
6225
  let [v, y] = d(null), [b, x] = d(!1), [S, C] = d(""), w = u(null), T = s(), E = n || T;
6169
6226
  o(() => {
6170
- if (!i && t instanceof File && ht(t)) {
6227
+ if (!i && t instanceof File && gt(t)) {
6171
6228
  let e = URL.createObjectURL(t);
6172
6229
  return y(e), () => URL.revokeObjectURL(e);
6173
6230
  }
6174
6231
  y(null);
6175
6232
  }, [t, i]);
6176
- let D = i ? Array.isArray(t) ? t : t ? [t] : [] : [], O = h || S, k = gt(c), A = !i && !!t, M = A && (t instanceof File ? ht(t) : k || ht(t)), N = t?.name, P = M ? t?.url || v : null, F = (e) => {
6177
- let t = yt(e, {
6233
+ let D = i ? Array.isArray(t) ? t : t ? [t] : [] : [], O = h || S, k = _t(c), A = !i && !!t, M = A && (t instanceof File ? gt(t) : k || gt(t)), N = t?.name, P = M ? t?.url || v : null, F = (e) => {
6234
+ let t = bt(e, {
6178
6235
  accept: c,
6179
6236
  maxSizeMb: l
6180
6237
  });
@@ -6182,9 +6239,9 @@ function Bn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6182
6239
  }, L = (e) => {
6183
6240
  let n = Array.from(e || []);
6184
6241
  if (!n.length) return;
6185
- let i = Array.isArray(t) ? t : t ? [t] : [], o = new Set(i.map(Nn)), s = "", u = [];
6242
+ let i = Array.isArray(t) ? t : t ? [t] : [], o = new Set(i.map(Fn)), s = "", u = [];
6186
6243
  for (let e of n) {
6187
- let t = yt(e, {
6244
+ let t = bt(e, {
6188
6245
  accept: c,
6189
6246
  maxSizeMb: l
6190
6247
  });
@@ -6192,7 +6249,7 @@ function Bn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6192
6249
  s ||= t;
6193
6250
  continue;
6194
6251
  }
6195
- o.has(Nn(e)) || (o.add(Nn(e)), u.push(e));
6252
+ o.has(Fn(e)) || (o.add(Fn(e)), u.push(e));
6196
6253
  }
6197
6254
  let d = i.concat(u);
6198
6255
  a && d.length > a && (d = d.slice(0, a), s ||= `Up to ${a} files.`), C(s), r(d);
@@ -6212,7 +6269,7 @@ function Bn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6212
6269
  t && F(t);
6213
6270
  }, B = (e) => {
6214
6271
  C(""), r(D.filter((t, n) => n !== e));
6215
- }, ee = () => w.current?.click(), te = /* @__PURE__ */ p("input", {
6272
+ }, ee = () => w.current?.click(), V = /* @__PURE__ */ p("input", {
6216
6273
  id: E,
6217
6274
  name: n,
6218
6275
  ref: w,
@@ -6281,7 +6338,7 @@ function Bn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6281
6338
  size: 16
6282
6339
  })
6283
6340
  }),
6284
- te
6341
+ V
6285
6342
  ]
6286
6343
  }) : /* @__PURE__ */ m("div", {
6287
6344
  className: `file-input file-input-tall${b ? " dragging" : ""}${O ? " error" : ""}${i && D.length > 0 ? " has-files" : ""}`,
@@ -6314,7 +6371,7 @@ function Bn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6314
6371
  /* @__PURE__ */ m("span", {
6315
6372
  className: "file-input-text",
6316
6373
  children: [
6317
- _t(c),
6374
+ vt(c),
6318
6375
  " · up to ",
6319
6376
  l,
6320
6377
  " MB"
@@ -6322,15 +6379,15 @@ function Bn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6322
6379
  })
6323
6380
  ]
6324
6381
  }),
6325
- te,
6382
+ V,
6326
6383
  i && D.length > 0 && /* @__PURE__ */ p("div", {
6327
6384
  className: "attach-list",
6328
- children: D.map((e, t) => /* @__PURE__ */ p(Ln, {
6385
+ children: D.map((e, t) => /* @__PURE__ */ p(zn, {
6329
6386
  item: e,
6330
- isImage: e instanceof File ? ht(e) : k || ht(e),
6387
+ isImage: e instanceof File ? gt(e) : k || gt(e),
6331
6388
  noun: "file",
6332
6389
  onRemove: () => B(t)
6333
- }, Nn(e)))
6390
+ }, Fn(e)))
6334
6391
  })
6335
6392
  ]
6336
6393
  }),
@@ -6343,7 +6400,7 @@ function Bn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6343
6400
  }
6344
6401
  //#endregion
6345
6402
  //#region src/components/AppFloatingDock.jsx
6346
- function Vn({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
6403
+ function Un({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
6347
6404
  return j("AppFloatingDock", s), /* @__PURE__ */ p("wui-dock", {
6348
6405
  role: "navigation",
6349
6406
  "aria-label": n,
@@ -6385,7 +6442,7 @@ function Vn({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation"
6385
6442
  }
6386
6443
  //#endregion
6387
6444
  //#region src/components/AppFormActions.jsx
6388
- function Hn({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
6445
+ function Wn({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
6389
6446
  return j("AppFormActions", i), /* @__PURE__ */ p("div", {
6390
6447
  className: [
6391
6448
  "form-actions",
@@ -6399,7 +6456,7 @@ function Hn({ children: e, sticky: t = !1, align: n = "end", className: r = "",
6399
6456
  }
6400
6457
  //#endregion
6401
6458
  //#region src/components/AppFormRow.jsx
6402
- function Un({ children: e, columns: t = 2, className: n = "", ...r }) {
6459
+ function Gn({ children: e, columns: t = 2, className: n = "", ...r }) {
6403
6460
  j("AppFormRow", r);
6404
6461
  let { style: i, ...a } = r;
6405
6462
  return /* @__PURE__ */ p("div", {
@@ -6414,7 +6471,7 @@ function Un({ children: e, columns: t = 2, className: n = "", ...r }) {
6414
6471
  }
6415
6472
  //#endregion
6416
6473
  //#region src/components/AppFormSection.jsx
6417
- function Wn({ children: e, title: t, description: n, className: r = "", ...i }) {
6474
+ function Kn({ children: e, title: t, description: n, className: r = "", ...i }) {
6418
6475
  return j("AppFormSection", i), /* @__PURE__ */ m("section", {
6419
6476
  className: ["form-section", r].filter(Boolean).join(" "),
6420
6477
  ...i,
@@ -6435,12 +6492,12 @@ function Wn({ children: e, title: t, description: n, className: r = "", ...i })
6435
6492
  }
6436
6493
  //#endregion
6437
6494
  //#region src/components/AppInfoList.jsx
6438
- function Gn({ items: e = [], className: t = "", ...n }) {
6495
+ function qn({ items: e = [], className: t = "", ...n }) {
6439
6496
  return j("AppInfoList", n), /* @__PURE__ */ p("div", {
6440
6497
  className: `info-list${t ? ` ${t}` : ""}`,
6441
6498
  ...n,
6442
6499
  children: e.map((e, t) => {
6443
- let n = Dn(e.value), r = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
6500
+ let n = kn(e.value), r = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
6444
6501
  className: "info-icon",
6445
6502
  children: L(e.icon, { size: 16 })
6446
6503
  }), /* @__PURE__ */ m("span", {
@@ -6466,23 +6523,23 @@ function Gn({ items: e = [], className: t = "", ...n }) {
6466
6523
  }
6467
6524
  //#endregion
6468
6525
  //#region src/components/AppKpiTile.jsx
6469
- var Kn = 48, qn = 16;
6470
- function Jn(e) {
6471
- if (!e || e.length < 2) return `0,${qn / 2} ${Kn},${qn / 2}`;
6472
- let t = Math.min(...e), n = Math.max(...e) - t, r = Kn / (e.length - 1);
6473
- return e.map((e, i) => `${i * r},${n === 0 ? qn / 2 : qn - (e - t) / n * qn}`).join(" ");
6526
+ var Jn = 48, Yn = 16;
6527
+ function Xn(e) {
6528
+ if (!e || e.length < 2) return `0,${Yn / 2} ${Jn},${Yn / 2}`;
6529
+ let t = Math.min(...e), n = Math.max(...e) - t, r = Jn / (e.length - 1);
6530
+ return e.map((e, i) => `${i * r},${n === 0 ? Yn / 2 : Yn - (e - t) / n * Yn}`).join(" ");
6474
6531
  }
6475
- function Yn(e) {
6532
+ function Zn(e) {
6476
6533
  if (typeof e != "string") return "flat";
6477
6534
  let t = e.trim();
6478
6535
  return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
6479
6536
  }
6480
- function Xn({ 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 }) {
6537
+ function Qn({ 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 }) {
6481
6538
  j("AppKpiTile", T);
6482
6539
  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 ? {
6483
6540
  ...v,
6484
6541
  "--wui-kpi-value-size": `${u}px`
6485
- } : v, O = o ?? Yn(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
6542
+ } : v, O = o ?? Zn(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
6486
6543
  return h != null && (A = g ? {
6487
6544
  as: g,
6488
6545
  to: h
@@ -6520,12 +6577,12 @@ function Xn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
6520
6577
  }),
6521
6578
  s && s.length > 0 && /* @__PURE__ */ p("svg", {
6522
6579
  className: `kpi-sparkline${w ? ` ${w}` : ""}`,
6523
- width: Kn,
6524
- height: qn,
6525
- viewBox: `0 0 ${Kn} ${qn}`,
6580
+ width: Jn,
6581
+ height: Yn,
6582
+ viewBox: `0 0 ${Jn} ${Yn}`,
6526
6583
  "aria-hidden": "true",
6527
6584
  children: /* @__PURE__ */ p("polyline", {
6528
- points: Jn(s),
6585
+ points: Xn(s),
6529
6586
  stroke: "currentColor",
6530
6587
  fill: "none"
6531
6588
  })
@@ -6535,21 +6592,21 @@ function Xn({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
6535
6592
  }
6536
6593
  //#endregion
6537
6594
  //#region src/components/AppLogoPicker.jsx
6538
- var Zn = {
6595
+ var $n = {
6539
6596
  sm: 72,
6540
6597
  md: 120,
6541
6598
  lg: 160
6542
6599
  };
6543
- function Qn({ 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, required: x = !1, variant: S = "initials", size: C = "md", shape: w = "circle", className: T = "", ...E }) {
6600
+ function er({ 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, required: x = !1, variant: S = "initials", size: C = "md", shape: w = "circle", className: T = "", ...E }) {
6544
6601
  j("AppLogoPicker", E);
6545
6602
  let D = u(null), O = s(), k = n || O, [A, M] = d(null), [N, P] = d(""), [F, L] = d(!1), [R, z] = d(!1);
6546
6603
  o(() => () => A && URL.revokeObjectURL(A), [A]), o(() => {
6547
6604
  M(null), L(!1);
6548
6605
  }, [e]);
6549
- let B = a || c, ee = A || (e && !F ? e : null), te = b || N, ne = !B && (!!A || !!ee && !!i), re = () => {
6606
+ let B = a || c, ee = A || (e && !F ? e : null), V = b || N, te = !B && (!!A || !!ee && !!i), ne = () => {
6550
6607
  B || D.current?.click();
6551
- }, V = (e) => {
6552
- let t = yt(e, {
6608
+ }, re = (e) => {
6609
+ let t = bt(e, {
6553
6610
  accept: l,
6554
6611
  maxSizeMb: f
6555
6612
  });
@@ -6558,16 +6615,16 @@ function Qn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6558
6615
  return;
6559
6616
  }
6560
6617
  P(""), L(!1), M(URL.createObjectURL(e)), r(e);
6561
- }, ie = (e) => {
6618
+ }, H = (e) => {
6562
6619
  let t = e.target.files?.[0];
6563
- e.target.value = "", t && V(t);
6564
- }, ae = (e) => {
6620
+ e.target.value = "", t && re(t);
6621
+ }, ie = (e) => {
6565
6622
  if (e.preventDefault(), z(!1), B) return;
6566
6623
  let t = e.dataTransfer.files?.[0];
6567
- t && V(t);
6568
- }, oe = () => {
6624
+ t && re(t);
6625
+ }, ae = () => {
6569
6626
  M(null), P(""), L(!1), D.current && (D.current.value = ""), i?.();
6570
- }, se = typeof C == "number" ? C : Zn[C] ?? Zn.md, ce = Math.max(14, Math.round(se * .18)), le = Math.round(se * .5), H = [
6627
+ }, oe = typeof C == "number" ? C : $n[C] ?? $n.md, se = Math.max(14, Math.round(oe * .18)), ce = Math.round(oe * .5), le = [
6571
6628
  "set-uploader",
6572
6629
  S === "avatar" ? "set-uploader--avatar" : "",
6573
6630
  w === "rounded" ? "set-uploader--rounded" : w === "square" ? "set-uploader--square" : "",
@@ -6586,11 +6643,11 @@ function Qn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6586
6643
  children: [
6587
6644
  /* @__PURE__ */ p("button", {
6588
6645
  type: "button",
6589
- className: H,
6590
- style: { "--wui-logo-size": `${se}px` },
6646
+ className: le,
6647
+ style: { "--wui-logo-size": `${oe}px` },
6591
6648
  "aria-busy": a || void 0,
6592
6649
  disabled: B,
6593
- onClick: re,
6650
+ onClick: ne,
6594
6651
  "aria-label": _,
6595
6652
  onDragOver: (e) => {
6596
6653
  e.preventDefault(), !B && !R && z(!0);
@@ -6598,7 +6655,7 @@ function Qn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6598
6655
  onDragLeave: (e) => {
6599
6656
  e.preventDefault(), z(!1);
6600
6657
  },
6601
- onDrop: ae,
6658
+ onDrop: ie,
6602
6659
  ...E,
6603
6660
  children: /* @__PURE__ */ m("span", {
6604
6661
  className: "set-uploader-ring",
@@ -6611,21 +6668,21 @@ function Qn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6611
6668
  className: "set-uploader-logo",
6612
6669
  children: t || S === "avatar" && /* @__PURE__ */ p(I, {
6613
6670
  name: "person",
6614
- size: le
6671
+ size: ce
6615
6672
  })
6616
6673
  }), a ? /* @__PURE__ */ p("span", {
6617
6674
  className: "set-uploader-overlay is-loading",
6618
6675
  "aria-hidden": "true",
6619
6676
  children: /* @__PURE__ */ p(I, {
6620
6677
  name: "refresh-cw",
6621
- size: ce,
6678
+ size: se,
6622
6679
  className: "wui-spin"
6623
6680
  })
6624
6681
  }) : !c && /* @__PURE__ */ m("span", {
6625
6682
  className: "set-uploader-overlay",
6626
6683
  children: [/* @__PURE__ */ p(I, {
6627
6684
  name: h,
6628
- size: ce
6685
+ size: se
6629
6686
  }), /* @__PURE__ */ p("span", { children: g })]
6630
6687
  })]
6631
6688
  })
@@ -6633,10 +6690,10 @@ function Qn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6633
6690
  /* @__PURE__ */ p("button", {
6634
6691
  type: "button",
6635
6692
  className: "set-uploader-remove",
6636
- hidden: !ne,
6693
+ hidden: !te,
6637
6694
  "aria-label": "Remove photo",
6638
6695
  title: "Remove photo",
6639
- onClick: oe,
6696
+ onClick: ae,
6640
6697
  children: /* @__PURE__ */ p(I, {
6641
6698
  name: "x",
6642
6699
  size: 14
@@ -6649,45 +6706,45 @@ function Qn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6649
6706
  name: n,
6650
6707
  hidden: !0,
6651
6708
  accept: l,
6652
- onChange: ie,
6709
+ onChange: H,
6653
6710
  disabled: B
6654
6711
  })
6655
6712
  ]
6656
6713
  }),
6657
- y && !te && /* @__PURE__ */ p("div", {
6714
+ y && !V && /* @__PURE__ */ p("div", {
6658
6715
  className: "set-uploader-hint",
6659
6716
  children: y
6660
6717
  }),
6661
- te && /* @__PURE__ */ p("div", {
6718
+ V && /* @__PURE__ */ p("div", {
6662
6719
  className: "field-error",
6663
- children: te
6720
+ children: V
6664
6721
  })
6665
6722
  ]
6666
6723
  });
6667
6724
  }
6668
6725
  //#endregion
6669
6726
  //#region src/components/AppMeter.jsx
6670
- var $n = [
6727
+ var tr = [
6671
6728
  "info",
6672
6729
  "success",
6673
6730
  "warning",
6674
6731
  "danger",
6675
6732
  "neutral"
6676
6733
  ];
6677
- function er(e, t, n) {
6734
+ function nr(e, t, n) {
6678
6735
  let r = n - t;
6679
6736
  if (!(r > 0)) return 0;
6680
6737
  let i = Math.min(100, Math.max(0, (e - t) / r * 100));
6681
6738
  return Number(i.toFixed(2));
6682
6739
  }
6683
- function tr(e, t, n, r, i) {
6740
+ function rr(e, t, n, r, i) {
6684
6741
  if (t == null && n == null) return i;
6685
6742
  let a = "mid";
6686
6743
  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";
6687
6744
  }
6688
- function nr({ 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 }) {
6745
+ function ir({ 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 }) {
6689
6746
  j("AppMeter", d);
6690
- let f = Ht(r), m = tr(e, a, o, i, $n.includes(f) ? f : "info"), h = er(e, t, n);
6747
+ let f = Ut(r), m = rr(e, a, o, i, tr.includes(f) ? f : "info"), h = nr(e, t, n);
6691
6748
  return /* @__PURE__ */ p("div", {
6692
6749
  className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
6693
6750
  role: "meter",
@@ -6705,20 +6762,20 @@ function nr({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
6705
6762
  }
6706
6763
  //#endregion
6707
6764
  //#region src/components/AppMultiSelect.jsx
6708
- var rr = 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) {
6765
+ var ar = 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) {
6709
6766
  j("AppMultiSelect", S);
6710
6767
  let w = s(), T = f || w, { setRef: E, innerRef: D } = Q({
6711
6768
  ref: C,
6712
6769
  value: e,
6713
6770
  onChange: t,
6714
- readValue: Dt,
6715
- writeValue: Ot
6771
+ readValue: Ot,
6772
+ writeValue: kt
6716
6773
  });
6717
6774
  return o(() => {
6718
6775
  let e = D.current;
6719
6776
  if (!e) return;
6720
6777
  let t = n || [];
6721
- Et(t, e.options) || (e.options = t);
6778
+ Dt(t, e.options) || (e.options = t);
6722
6779
  }, [n, D]), /* @__PURE__ */ m("div", {
6723
6780
  className: `field${x ? ` ${x}` : ""}`,
6724
6781
  children: [
@@ -6728,7 +6785,7 @@ var rr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6728
6785
  children: [
6729
6786
  h,
6730
6787
  v && /* @__PURE__ */ p(Z, {}),
6731
- y && /* @__PURE__ */ p(St, {
6788
+ y && /* @__PURE__ */ p(Ct, {
6732
6789
  label: b,
6733
6790
  children: y
6734
6791
  })
@@ -6762,7 +6819,7 @@ var rr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6762
6819
  }) : null
6763
6820
  ]
6764
6821
  });
6765
- }), ir = 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) {
6822
+ }), or = 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) {
6766
6823
  j("AppNumberInput", T);
6767
6824
  let D = s(), O = y || D, k = (e) => {
6768
6825
  if (g === 0) return Math.round(e);
@@ -6782,19 +6839,19 @@ var rr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6782
6839
  let F = (e) => {
6783
6840
  let t = (M(N) ?? A(0)) + e * h, n = A(k(t));
6784
6841
  P(String(n)), l?.(n);
6785
- }, L = M(N), R = w || L !== null && typeof u == "number" && L <= u, z = w || L !== null && typeof f == "number" && L >= f, B = n && O ? `${O}-error` : void 0, ee = r && O ? `${O}-hint` : void 0, te = B || ee, ne = [
6842
+ }, L = M(N), R = w || L !== null && typeof u == "number" && L <= u, z = w || L !== null && typeof f == "number" && L >= f, B = n && O ? `${O}-error` : void 0, ee = r && O ? `${O}-hint` : void 0, V = B || ee, te = [
6786
6843
  "input",
6787
6844
  v === "sm" ? "input-sm" : "",
6788
6845
  v === "lg" ? "input-lg" : "",
6789
6846
  n ? "error" : "",
6790
6847
  "num-input",
6791
6848
  S
6792
- ].filter(Boolean).join(" "), re = (e) => {
6849
+ ].filter(Boolean).join(" "), ne = (e) => {
6793
6850
  let t = e.target.value;
6794
6851
  P(t);
6795
6852
  let n = M(t);
6796
6853
  n !== null && l?.(n);
6797
- }, V = (e) => {
6854
+ }, re = (e) => {
6798
6855
  let t = M(e.target.value);
6799
6856
  if (t === null) P(""), l?.("");
6800
6857
  else {
@@ -6802,25 +6859,25 @@ var rr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6802
6859
  P(String(e)), l?.(e);
6803
6860
  }
6804
6861
  T.onBlur?.(e);
6805
- }, ie = (e) => {
6862
+ }, H = (e) => {
6806
6863
  e.key === "ArrowUp" ? (e.preventDefault(), F(1)) : e.key === "ArrowDown" && (e.preventDefault(), F(-1)), T.onKeyDown?.(e);
6807
- }, ae = /* @__PURE__ */ p(x.Control, {
6864
+ }, ie = /* @__PURE__ */ p(x.Control, {
6808
6865
  ...T,
6809
6866
  id: O,
6810
6867
  name: b,
6811
6868
  type: "text",
6812
6869
  inputMode: g > 0 ? "decimal" : "numeric",
6813
- className: ne,
6870
+ className: te,
6814
6871
  disabled: w,
6815
6872
  required: t,
6816
6873
  "aria-invalid": n ? "true" : "false",
6817
- "aria-describedby": te,
6874
+ "aria-describedby": V,
6818
6875
  value: N,
6819
6876
  ref: E,
6820
- onChange: re,
6821
- onBlur: V,
6822
- onKeyDown: ie
6823
- }), oe = /* @__PURE__ */ m("div", {
6877
+ onChange: ne,
6878
+ onBlur: re,
6879
+ onKeyDown: H
6880
+ }), ae = /* @__PURE__ */ m("div", {
6824
6881
  className: [
6825
6882
  "num-wrap",
6826
6883
  v === "sm" ? "num-wrap-sm" : "",
@@ -6839,7 +6896,7 @@ var rr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6839
6896
  size: 16
6840
6897
  })
6841
6898
  }),
6842
- ae,
6899
+ ie,
6843
6900
  _ && /* @__PURE__ */ p("span", {
6844
6901
  className: "affix",
6845
6902
  children: _
@@ -6867,13 +6924,13 @@ var rr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6867
6924
  children: [
6868
6925
  e,
6869
6926
  t && /* @__PURE__ */ p(Z, {}),
6870
- i && /* @__PURE__ */ p(St, {
6927
+ i && /* @__PURE__ */ p(Ct, {
6871
6928
  label: a,
6872
6929
  children: i
6873
6930
  })
6874
6931
  ]
6875
6932
  }),
6876
- oe,
6933
+ ae,
6877
6934
  n ? /* @__PURE__ */ p("div", {
6878
6935
  className: "field-error",
6879
6936
  id: B,
@@ -6885,7 +6942,7 @@ var rr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6885
6942
  }) : null
6886
6943
  ]
6887
6944
  });
6888
- }), ar = i(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: c = !1, hint: l, error: u, disabled: d = !1, name: f, id: h, className: g = "", ..._ }, v) {
6945
+ }), sr = i(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: c = !1, hint: l, error: u, disabled: d = !1, name: f, id: h, className: g = "", ..._ }, v) {
6889
6946
  j("AppOtpInput", _);
6890
6947
  let y = s(), b = h || y, { setRef: x, innerRef: S } = Q({
6891
6948
  ref: v,
@@ -6932,7 +6989,7 @@ var rr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6932
6989
  });
6933
6990
  //#endregion
6934
6991
  //#region src/components/AppPageHeader.jsx
6935
- function or({ 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 }) {
6992
+ function cr({ 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 }) {
6936
6993
  j("AppPageHeader", h);
6937
6994
  let g = [
6938
6995
  "page-header",
@@ -6991,9 +7048,9 @@ function or({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", s
6991
7048
  }
6992
7049
  //#endregion
6993
7050
  //#region src/components/AppPagination.jsx
6994
- function sr({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
7051
+ function lr({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
6995
7052
  if (j("AppPagination", s), t <= 1) return null;
6996
- let c = vn(e, t, { siblingCount: r });
7053
+ let c = bn(e, t, { siblingCount: r });
6997
7054
  return /* @__PURE__ */ p("nav", {
6998
7055
  className: [
6999
7056
  "pagination-nav",
@@ -7051,7 +7108,7 @@ function sr({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
7051
7108
  }
7052
7109
  //#endregion
7053
7110
  //#region src/components/AppPhoneNumberInput.jsx
7054
- var cr = 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, fieldClassName: f = "", ...h }, g) {
7111
+ var ur = 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, fieldClassName: f = "", ...h }, g) {
7055
7112
  j("AppPhoneNumberInput", h);
7056
7113
  let _ = s(), v = i || _, y = l && v ? `${v}-error` : void 0, { setRef: b } = Q({
7057
7114
  ref: g,
@@ -7090,7 +7147,7 @@ var cr = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name:
7090
7147
  });
7091
7148
  //#endregion
7092
7149
  //#region src/components/AppPricingCard.jsx
7093
- function lr({ 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 }) {
7150
+ function dr({ 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 }) {
7094
7151
  return j("AppPricingCard", u), /* @__PURE__ */ m("div", {
7095
7152
  className: [
7096
7153
  "plan-card",
@@ -7144,21 +7201,21 @@ function lr({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
7144
7201
  }
7145
7202
  //#endregion
7146
7203
  //#region src/components/AppProgress.jsx
7147
- var ur = [
7204
+ var fr = [
7148
7205
  "info",
7149
7206
  "success",
7150
7207
  "warning",
7151
7208
  "danger",
7152
7209
  "neutral"
7153
7210
  ];
7154
- function dr(e, t) {
7211
+ function pr(e, t) {
7155
7212
  if (!(t > 0)) return 0;
7156
7213
  let n = Math.min(100, Math.max(0, e / t * 100));
7157
7214
  return Number(n.toFixed(2));
7158
7215
  }
7159
- function fr({ 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 }) {
7216
+ function mr({ 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 }) {
7160
7217
  j("AppProgress", u);
7161
- let d = Ht(n), f = ur.includes(d) ? d : "info", m = dr(e, t), h = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, g = [
7218
+ let d = Ut(n), f = fr.includes(d) ? d : "info", m = pr(e, t), h = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, g = [
7162
7219
  "progress-bar",
7163
7220
  `wui-progress-${f}`,
7164
7221
  o || s ? "progress-bar-striped" : "",
@@ -7182,8 +7239,8 @@ function fr({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
7182
7239
  }
7183
7240
  //#endregion
7184
7241
  //#region src/components/AppRadio.jsx
7185
- var pr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
7186
- return j("AppRadio", o), /* @__PURE__ */ p(Xt, {
7242
+ var hr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
7243
+ return j("AppRadio", o), /* @__PURE__ */ p(Qt, {
7187
7244
  ref: s,
7188
7245
  label: e,
7189
7246
  id: t,
@@ -7198,7 +7255,7 @@ var pr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
7198
7255
  });
7199
7256
  //#endregion
7200
7257
  //#region src/components/AppRepeater.jsx
7201
- function mr({ 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 }) {
7258
+ function gr({ 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 }) {
7202
7259
  j("AppRepeater", d);
7203
7260
  let f = typeof c == "number" && e.length >= c, h = !!r && e.length > s;
7204
7261
  return /* @__PURE__ */ m("div", {
@@ -7229,7 +7286,7 @@ function mr({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "
7229
7286
  })
7230
7287
  ]
7231
7288
  }, e.id ?? n)),
7232
- /* @__PURE__ */ p(V, {
7289
+ /* @__PURE__ */ p(H, {
7233
7290
  variant: "secondary",
7234
7291
  size: "sm",
7235
7292
  leftIcon: "plus",
@@ -7243,7 +7300,7 @@ function mr({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "
7243
7300
  }
7244
7301
  //#endregion
7245
7302
  //#region src/components/AppResourceCard.jsx
7246
- function hr({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
7303
+ function _r({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
7247
7304
  j("AppResourceCard", s);
7248
7305
  let c = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
7249
7306
  className: "res-card-icon",
@@ -7277,7 +7334,7 @@ function hr({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
7277
7334
  }
7278
7335
  //#endregion
7279
7336
  //#region src/components/AppResult.jsx
7280
- var gr = {
7337
+ var vr = {
7281
7338
  success: {
7282
7339
  icon: "check-circle",
7283
7340
  tone: "success"
@@ -7298,9 +7355,9 @@ var gr = {
7298
7355
  404: { tone: "muted" },
7299
7356
  500: { tone: "muted" }
7300
7357
  };
7301
- function _r({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
7358
+ function yr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
7302
7359
  j("AppResult", s);
7303
- let c = gr[e] || gr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
7360
+ let c = vr[e] || vr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
7304
7361
  return /* @__PURE__ */ m("div", {
7305
7362
  className: [
7306
7363
  "result",
@@ -7338,7 +7395,7 @@ function _r({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
7338
7395
  }
7339
7396
  //#endregion
7340
7397
  //#region src/components/AppScrollbar.jsx
7341
- function vr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7398
+ function br({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7342
7399
  return j("AppScrollbar", i), /* @__PURE__ */ p("div", {
7343
7400
  className: t ? `wui-scroll ${t}` : "wui-scroll",
7344
7401
  style: n == null ? r : {
@@ -7351,7 +7408,7 @@ function vr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7351
7408
  }
7352
7409
  //#endregion
7353
7410
  //#region src/components/AppSearch.jsx
7354
- function yr({ 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 }) {
7411
+ function xr({ 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 }) {
7355
7412
  j("AppSearch", u);
7356
7413
  let d = t || n;
7357
7414
  return /* @__PURE__ */ m("div", {
@@ -7398,7 +7455,7 @@ function yr({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
7398
7455
  }
7399
7456
  //#endregion
7400
7457
  //#region src/components/AppSegmented.jsx
7401
- function br({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: l = !1, disabled: d = !1, className: f = "", ...h }) {
7458
+ function Sr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: l = !1, disabled: d = !1, className: f = "", ...h }) {
7402
7459
  j("AppSegmented", h);
7403
7460
  let g = s(), _ = i || g, v = u(null), y = u(null), b = [
7404
7461
  "segmented",
@@ -7473,7 +7530,7 @@ function br({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
7473
7530
  }
7474
7531
  //#endregion
7475
7532
  //#region src/components/AppSelect.jsx
7476
- var xr = (e) => e == null ? "" : e.label ?? e.text ?? "", Sr = 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) {
7533
+ var Cr = (e) => e == null ? "" : e.label ?? e.text ?? "", wr = 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) {
7477
7534
  j("AppSelect", O);
7478
7535
  let A = s(), { setRef: M, innerRef: N } = Q({
7479
7536
  ref: k,
@@ -7485,10 +7542,10 @@ var xr = (e) => e == null ? "" : e.label ?? e.text ?? "", Sr = i(function({ valu
7485
7542
  if (!e) return;
7486
7543
  let t = n.map((e) => ({
7487
7544
  value: e.value,
7488
- label: xr(e),
7545
+ label: Cr(e),
7489
7546
  icon: e.icon
7490
7547
  }));
7491
- Et(t, e.options) || (e.options = t);
7548
+ Dt(t, e.options) || (e.options = t);
7492
7549
  }, [n, N]);
7493
7550
  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", {
7494
7551
  "aria-label": T || (typeof h == "string" ? h : void 0),
@@ -7521,7 +7578,7 @@ var xr = (e) => e == null ? "" : e.label ?? e.text ?? "", Sr = i(function({ valu
7521
7578
  children: [
7522
7579
  h,
7523
7580
  g && /* @__PURE__ */ p(Z, {}),
7524
- y && /* @__PURE__ */ p(St, {
7581
+ y && /* @__PURE__ */ p(Ct, {
7525
7582
  label: b,
7526
7583
  children: y
7527
7584
  })
@@ -7549,7 +7606,7 @@ var xr = (e) => e == null ? "" : e.label ?? e.text ?? "", Sr = i(function({ valu
7549
7606
  });
7550
7607
  //#endregion
7551
7608
  //#region src/components/AppShell.jsx
7552
- function Cr({ 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 }) {
7609
+ function Tr({ 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 }) {
7553
7610
  j("AppShell", y);
7554
7611
  let [b, x] = d(!1), [S, C] = d(!1), [w, T] = d(!1), E = u ?? b, D = () => {
7555
7612
  let e = !E;
@@ -7597,7 +7654,7 @@ function Cr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7597
7654
  children: [e.label && /* @__PURE__ */ p("div", {
7598
7655
  className: "app-nav-group-label",
7599
7656
  children: e.label
7600
- }), e.items.map((e) => /* @__PURE__ */ p(wr, {
7657
+ }), e.items.map((e) => /* @__PURE__ */ p(Er, {
7601
7658
  item: e,
7602
7659
  linkComponent: _,
7603
7660
  onNavigate: () => C(!1)
@@ -7664,7 +7721,7 @@ function Cr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7664
7721
  ]
7665
7722
  });
7666
7723
  }
7667
- function wr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7724
+ function Er({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7668
7725
  let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [s, c] = d(a);
7669
7726
  o(() => {
7670
7727
  a && !s && c(!0);
@@ -7704,7 +7761,7 @@ function wr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7704
7761
  className: `app-nav-sub${s ? " expanded" : ""}`,
7705
7762
  children: /* @__PURE__ */ p("div", {
7706
7763
  className: "app-nav-sub-inner",
7707
- children: e.children.map((e) => /* @__PURE__ */ p(wr, {
7764
+ children: e.children.map((e) => /* @__PURE__ */ p(Er, {
7708
7765
  item: e,
7709
7766
  linkComponent: t,
7710
7767
  onNavigate: n,
@@ -7745,7 +7802,7 @@ function wr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7745
7802
  }
7746
7803
  //#endregion
7747
7804
  //#region src/components/AppSidebarMenu.jsx
7748
- var Tr = {
7805
+ var Dr = {
7749
7806
  left: "start",
7750
7807
  right: "end",
7751
7808
  start: "start",
@@ -7753,9 +7810,9 @@ var Tr = {
7753
7810
  top: "top",
7754
7811
  bottom: "bottom"
7755
7812
  };
7756
- function Er({ 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 }) {
7813
+ function Or({ 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 }) {
7757
7814
  j("AppSidebarMenu", b);
7758
- let { style: x, ...S } = b, w = Tr[n] || "end", T = c || l || x ? {
7815
+ let { style: x, ...S } = b, w = Dr[n] || "end", T = c || l || x ? {
7759
7816
  ...c && { "--asm-width": c },
7760
7817
  ...l && { "--asm-max-width": l },
7761
7818
  ...x
@@ -7784,7 +7841,7 @@ function Er({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
7784
7841
  size: 18
7785
7842
  })
7786
7843
  }), r]
7787
- }), h && /* @__PURE__ */ p(V, {
7844
+ }), h && /* @__PURE__ */ p(H, {
7788
7845
  variant: "ghost",
7789
7846
  className: "btn-icon",
7790
7847
  onClick: t,
@@ -7808,14 +7865,14 @@ function Er({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
7808
7865
  }
7809
7866
  //#endregion
7810
7867
  //#region src/components/AppSlider.jsx
7811
- var Dr = 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) {
7868
+ 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) {
7812
7869
  j("AppSlider", E);
7813
7870
  let O = s(), k = C || d || r && f || O, A = r, { setRef: M, innerRef: N } = Q({
7814
7871
  ref: D,
7815
7872
  value: A ? void 0 : e,
7816
7873
  onChange: i,
7817
- readValue: A ? kt : void 0,
7818
- writeValue: A ? void 0 : At
7874
+ readValue: A ? At : void 0,
7875
+ writeValue: A ? void 0 : jt
7819
7876
  });
7820
7877
  o(() => {
7821
7878
  if (!A) return;
@@ -7869,14 +7926,14 @@ var Dr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, la
7869
7926
  })
7870
7927
  ]
7871
7928
  });
7872
- }), Or = {
7929
+ }), Ar = {
7873
7930
  sm: 44,
7874
7931
  md: 56,
7875
7932
  lg: 72
7876
7933
  };
7877
- function kr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
7934
+ function jr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
7878
7935
  j("AppSplash", c);
7879
- let { style: l, ...u } = c, d = typeof a == "number" ? a : Or[a] ?? Or.md, f = i === "ring" ? /* @__PURE__ */ p("span", {
7936
+ let { style: l, ...u } = c, d = typeof a == "number" ? a : Ar[a] ?? Ar.md, f = i === "ring" ? /* @__PURE__ */ p("span", {
7880
7937
  className: "splash-ring",
7881
7938
  "aria-hidden": "true"
7882
7939
  }) : i === "dots" ? /* @__PURE__ */ m("span", {
@@ -7923,16 +7980,16 @@ function kr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
7923
7980
  }
7924
7981
  //#endregion
7925
7982
  //#region src/components/AppStatusBadge.jsx
7926
- function Ar({ label: e, tone: t = "neutral", className: n = "", ...r }) {
7983
+ function Mr({ label: e, tone: t = "neutral", className: n = "", ...r }) {
7927
7984
  return j("AppStatusBadge", r), e == null || e === "" ? "—" : /* @__PURE__ */ p("span", {
7928
- className: `status-label ${Ht(t)}${n ? ` ${n}` : ""}`,
7985
+ className: `status-label ${Ut(t)}${n ? ` ${n}` : ""}`,
7929
7986
  ...r,
7930
7987
  children: e
7931
7988
  });
7932
7989
  }
7933
7990
  //#endregion
7934
7991
  //#region src/components/AppStepper.jsx
7935
- function jr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
7992
+ function Nr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
7936
7993
  j("AppStepper", c);
7937
7994
  let l = t === "journey";
7938
7995
  return /* @__PURE__ */ p("nav", {
@@ -7945,7 +8002,7 @@ function jr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
7945
8002
  "aria-label": a,
7946
8003
  ...c,
7947
8004
  children: e.map((t, n) => {
7948
- let a = t.status || Mr(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
8005
+ let a = t.status || Pr(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
7949
8006
  c = a === "done" ? /* @__PURE__ */ p(I, {
7950
8007
  name: "check",
7951
8008
  size: 14
@@ -8009,13 +8066,13 @@ function jr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
8009
8066
  })
8010
8067
  });
8011
8068
  }
8012
- function Mr(e, t) {
8069
+ function Pr(e, t) {
8013
8070
  return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
8014
8071
  }
8015
8072
  //#endregion
8016
8073
  //#region src/components/AppSwitch.jsx
8017
- var Nr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
8018
- return j("AppSwitch", s), /* @__PURE__ */ p(Xt, {
8074
+ var Fr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
8075
+ return j("AppSwitch", s), /* @__PURE__ */ p(Qt, {
8019
8076
  ref: c,
8020
8077
  label: e,
8021
8078
  id: t,
@@ -8030,7 +8087,7 @@ var Nr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "p
8030
8087
  });
8031
8088
  //#endregion
8032
8089
  //#region src/components/AppTableEmptyState.jsx
8033
- function Pr({ icon: e, title: t, text: n, action: r, ...i }) {
8090
+ function Ir({ icon: e, title: t, text: n, action: r, ...i }) {
8034
8091
  return j("AppTableEmptyState", i), /* @__PURE__ */ m("div", {
8035
8092
  className: "tbl-empty",
8036
8093
  ...i,
@@ -8056,7 +8113,7 @@ function Pr({ icon: e, title: t, text: n, action: r, ...i }) {
8056
8113
  }
8057
8114
  //#endregion
8058
8115
  //#region src/components/AppTabs.jsx
8059
- function Fr({ 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 }) {
8116
+ function Lr({ 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 }) {
8060
8117
  j("AppTabs", v);
8061
8118
  let y = u(null), b = u(null), x = i === "vertical", [S, C] = d(t);
8062
8119
  o(() => {
@@ -8195,14 +8252,14 @@ function Fr({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
8195
8252
  }
8196
8253
  //#endregion
8197
8254
  //#region src/components/AppTagInput.jsx
8198
- var Ir = 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) {
8255
+ var Rr = 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) {
8199
8256
  j("AppTagInput", x);
8200
8257
  let C = s(), w = h || r || C, { setRef: T } = Q({
8201
8258
  ref: S,
8202
8259
  value: e,
8203
8260
  onChange: t,
8204
- readValue: Dt,
8205
- writeValue: Ot
8261
+ readValue: Ot,
8262
+ writeValue: kt
8206
8263
  });
8207
8264
  return /* @__PURE__ */ m("div", {
8208
8265
  className: `field${v ? ` ${v}` : ""}`,
@@ -8213,7 +8270,7 @@ var Ir = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8213
8270
  children: [
8214
8271
  i,
8215
8272
  c && /* @__PURE__ */ p(Z, {}),
8216
- y && /* @__PURE__ */ p(St, {
8273
+ y && /* @__PURE__ */ p(Ct, {
8217
8274
  label: b,
8218
8275
  children: y
8219
8276
  })
@@ -8246,7 +8303,7 @@ var Ir = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8246
8303
  }) : null
8247
8304
  ]
8248
8305
  });
8249
- }), Lr = 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) {
8306
+ }), zr = 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) {
8250
8307
  j("AppTextarea", v);
8251
8308
  let b = s(), S = l || b, C = [
8252
8309
  "textarea",
@@ -8278,7 +8335,7 @@ var Ir = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8278
8335
  children: [
8279
8336
  e,
8280
8337
  t && /* @__PURE__ */ p(Z, {}),
8281
- i && /* @__PURE__ */ p(St, {
8338
+ i && /* @__PURE__ */ p(Ct, {
8282
8339
  label: o,
8283
8340
  children: i
8284
8341
  })
@@ -8308,7 +8365,7 @@ var Ir = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8308
8365
  }) : null
8309
8366
  ]
8310
8367
  });
8311
- }), Rr = {
8368
+ }), Br = {
8312
8369
  done: "check",
8313
8370
  current: "clock",
8314
8371
  "on-hold": "lock",
@@ -8317,7 +8374,7 @@ var Ir = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8317
8374
  skipped: "arrow-right",
8318
8375
  upcoming: null
8319
8376
  };
8320
- function zr({ items: e = [], variant: t = "feed", size: n, className: r = "", style: i, ...a }) {
8377
+ function Vr({ items: e = [], variant: t = "feed", size: n, className: r = "", style: i, ...a }) {
8321
8378
  j("AppTimeline", a);
8322
8379
  let o = t === "progress", s = `timeline${o ? " timeline--progress" : ""}${r ? ` ${r}` : ""}`, c = typeof n == "number" && n > 0 ? n : void 0, l = c ? Math.round(c * .54) : o ? 13 : 12;
8323
8380
  return /* @__PURE__ */ p("ol", {
@@ -8328,7 +8385,7 @@ function zr({ items: e = [], variant: t = "feed", size: n, className: r = "", st
8328
8385
  } : i,
8329
8386
  ...a,
8330
8387
  children: e.map((e, t) => {
8331
- let n = o ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = o ? e.icon ?? (n ? Rr[n] : void 0) : e.icon || "circle";
8388
+ let n = o ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = o ? e.icon ?? (n ? Br[n] : void 0) : e.icon || "circle";
8332
8389
  return /* @__PURE__ */ m("li", {
8333
8390
  className: `timeline-item${r}${i}`,
8334
8391
  children: [/* @__PURE__ */ p("span", {
@@ -8386,7 +8443,7 @@ function zr({ items: e = [], variant: t = "feed", size: n, className: r = "", st
8386
8443
  }
8387
8444
  //#endregion
8388
8445
  //#region src/components/AppTimePicker.jsx
8389
- var Br = 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) {
8446
+ var Hr = 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) {
8390
8447
  j("AppTimePicker", b);
8391
8448
  let S = s(), C = _ || o || S, { setRef: w } = Q({
8392
8449
  ref: x,
@@ -8431,32 +8488,32 @@ var Br = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
8431
8488
  })
8432
8489
  ]
8433
8490
  });
8434
- }), Vr = 6, $ = [], Hr = /* @__PURE__ */ new Set(), Ur = /* @__PURE__ */ new Map(), Wr = 0;
8435
- function Gr() {
8436
- for (let e of Hr) e($);
8491
+ }), Ur = 6, $ = [], Wr = /* @__PURE__ */ new Set(), Gr = /* @__PURE__ */ new Map(), Kr = 0;
8492
+ function qr() {
8493
+ for (let e of Wr) e($);
8437
8494
  }
8438
- function Kr(e) {
8439
- let t = Ur.get(e);
8440
- t !== void 0 && (clearTimeout(t), Ur.delete(e));
8495
+ function Jr(e) {
8496
+ let t = Gr.get(e);
8497
+ t !== void 0 && (clearTimeout(t), Gr.delete(e));
8441
8498
  }
8442
- function qr(e) {
8443
- if (e.length <= Vr) return e;
8499
+ function Yr(e) {
8500
+ if (e.length <= Ur) return e;
8444
8501
  let t = [...e];
8445
- for (; t.length > Vr;) {
8502
+ for (; t.length > Ur;) {
8446
8503
  let e = t.findIndex((e) => e.duration !== 0);
8447
8504
  t.splice(e === -1 ? 0 : e, 1);
8448
8505
  }
8449
8506
  return t;
8450
8507
  }
8451
- function Jr(e) {
8452
- return Hr.add(e), e($), () => Hr.delete(e);
8508
+ function Xr(e) {
8509
+ return Wr.add(e), e($), () => Wr.delete(e);
8453
8510
  }
8454
- function Yr(e, t, n = {}) {
8511
+ function Zr(e, t, n = {}) {
8455
8512
  let r = n.id, i = r || typeof e != "string" ? void 0 : `${t}:${e}`;
8456
8513
  if (r) {
8457
8514
  let i = $.find((e) => e.externalId === r);
8458
8515
  if (i) {
8459
- Kr(i.id);
8516
+ Jr(i.id);
8460
8517
  let r = n.duration === void 0 ? 5e3 : n.duration;
8461
8518
  $ = $.map((a) => a.id === i.id ? {
8462
8519
  ...a,
@@ -8469,12 +8526,12 @@ function Yr(e, t, n = {}) {
8469
8526
  shape: n.shape,
8470
8527
  surface: n.surface,
8471
8528
  progress: n.progress
8472
- } : a), Gr(), r > 0 && Ur.set(i.id, setTimeout(() => Xr(i.id), r));
8529
+ } : a), qr(), r > 0 && Gr.set(i.id, setTimeout(() => Qr(i.id), r));
8473
8530
  return;
8474
8531
  }
8475
8532
  } else if (i && $.some((e) => e.key === i)) return;
8476
- let a = ++Wr, o = n.duration === void 0 ? 5e3 : n.duration;
8477
- $ = qr([...$, {
8533
+ let a = ++Kr, o = n.duration === void 0 ? 5e3 : n.duration;
8534
+ $ = Yr([...$, {
8478
8535
  id: a,
8479
8536
  externalId: r,
8480
8537
  message: e,
@@ -8487,19 +8544,19 @@ function Yr(e, t, n = {}) {
8487
8544
  surface: n.surface,
8488
8545
  progress: n.progress,
8489
8546
  key: i
8490
- }]), Gr(), o > 0 && Ur.set(a, setTimeout(() => Xr(a), o));
8547
+ }]), qr(), o > 0 && Gr.set(a, setTimeout(() => Qr(a), o));
8491
8548
  }
8492
- function Xr(e) {
8493
- Kr(e);
8549
+ function Qr(e) {
8550
+ Jr(e);
8494
8551
  let t = $.filter((t) => t.id !== e);
8495
- t.length !== $.length && ($ = t, Gr());
8552
+ t.length !== $.length && ($ = t, qr());
8496
8553
  }
8497
- function Zr() {
8498
- $.length !== 0 && ($ = [], Gr());
8554
+ function $r() {
8555
+ $.length !== 0 && ($ = [], qr());
8499
8556
  }
8500
8557
  //#endregion
8501
8558
  //#region src/components/AppToast.jsx
8502
- var Qr = {
8559
+ var ei = {
8503
8560
  success: {
8504
8561
  icon: "check-circle-fill",
8505
8562
  assertive: !1
@@ -8516,7 +8573,7 @@ var Qr = {
8516
8573
  icon: "x-circle-fill",
8517
8574
  assertive: !0
8518
8575
  }
8519
- }, $r = {
8576
+ }, ti = {
8520
8577
  "top-start": "top-0 start-0",
8521
8578
  "top-center": "top-0 start-50 translate-middle-x",
8522
8579
  "top-end": "top-0 end-0",
@@ -8524,22 +8581,22 @@ var Qr = {
8524
8581
  "bottom-start": "bottom-0 start-0",
8525
8582
  "bottom-center": "bottom-0 start-50 translate-middle-x",
8526
8583
  "bottom-end": "bottom-0 end-0"
8527
- }, ei = 64, ti = /* @__PURE__ */ new Set([
8584
+ }, ni = 64, ri = /* @__PURE__ */ new Set([
8528
8585
  "rise",
8529
8586
  "organic",
8530
8587
  "jelly",
8531
8588
  "spring"
8532
- ]), ni = /* @__PURE__ */ new Set([
8589
+ ]), ii = /* @__PURE__ */ new Set([
8533
8590
  "rounded",
8534
8591
  "pill",
8535
8592
  "sharp"
8536
- ]), ri = /* @__PURE__ */ new Set(["auto", "inverse"]);
8537
- function ii({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto" }) {
8593
+ ]), ai = /* @__PURE__ */ new Set(["auto", "inverse"]);
8594
+ function oi({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto" }) {
8538
8595
  let [a, s] = d([]);
8539
- o(() => Jr(s), []);
8596
+ o(() => Xr(s), []);
8540
8597
  let c = Math.max(0, a.length - t), l = c ? a.slice(c) : a;
8541
8598
  return /* @__PURE__ */ m("div", {
8542
- className: `wui-toast-container toast-container position-fixed ${$r[e] ?? $r["bottom-end"]} p-3`,
8599
+ className: `wui-toast-container toast-container position-fixed ${ti[e] ?? ti["bottom-end"]} p-3`,
8543
8600
  children: [c > 0 && /* @__PURE__ */ m("div", {
8544
8601
  className: "wui-toast-more",
8545
8602
  "aria-hidden": "true",
@@ -8548,7 +8605,7 @@ function ii({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
8548
8605
  c,
8549
8606
  " more"
8550
8607
  ]
8551
- }), l.map((e) => /* @__PURE__ */ p(ai, {
8608
+ }), l.map((e) => /* @__PURE__ */ p(si, {
8552
8609
  toast: e,
8553
8610
  defaultAnimation: n,
8554
8611
  defaultShape: r,
@@ -8556,8 +8613,8 @@ function ii({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
8556
8613
  }, e.id))]
8557
8614
  });
8558
8615
  }
8559
- function ai({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
8560
- let i = Qr[e.variant] ?? Qr.success, a = ti.has(e.animation) ? e.animation : t, o = ni.has(e.shape) ? e.shape : n, s = ri.has(e.surface) ? e.surface : r, c = (a !== "rise" && ti.has(a) ? ` wui-toast--anim-${a}` : "") + (o !== "rounded" && ni.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 = () => Xr(e.id), b = (e) => {
8616
+ function si({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
8617
+ let i = ei[e.variant] ?? ei.success, a = ri.has(e.animation) ? e.animation : t, o = ii.has(e.shape) ? e.shape : n, s = ai.has(e.surface) ? e.surface : r, c = (a !== "rise" && ri.has(a) ? ` wui-toast--anim-${a}` : "") + (o !== "rounded" && ii.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 = () => Qr(e.id), b = (e) => {
8561
8618
  e.button !== 0 || e.target.closest("button") || (v.current = e.clientX, _(!0), e.currentTarget.setPointerCapture?.(e.pointerId));
8562
8619
  }, x = (e) => {
8563
8620
  v.current !== null && h(e.clientX - v.current);
@@ -8566,7 +8623,7 @@ function ai({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
8566
8623
  }, C = (e) => {
8567
8624
  if (v.current === null) return;
8568
8625
  let t = e.clientX - v.current;
8569
- if (Math.abs(t) > ei) {
8626
+ if (Math.abs(t) > ni) {
8570
8627
  y();
8571
8628
  return;
8572
8629
  }
@@ -8649,7 +8706,7 @@ function ai({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
8649
8706
  }
8650
8707
  //#endregion
8651
8708
  //#region src/components/AppToolbar.jsx
8652
- function oi({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
8709
+ function ci({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
8653
8710
  j("AppToolbar", u);
8654
8711
  let f = s(), h = o || f, [g, _] = d(r), v = n === void 0 ? g : n;
8655
8712
  return /* @__PURE__ */ m("div", {
@@ -8707,13 +8764,13 @@ function oi({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
8707
8764
  }
8708
8765
  //#endregion
8709
8766
  //#region src/components/AppTooltip.jsx
8710
- var si = {
8767
+ var li = {
8711
8768
  start: "left",
8712
8769
  end: "right",
8713
8770
  top: "top",
8714
8771
  bottom: "bottom"
8715
8772
  };
8716
- function ci({ content: e, children: t, placement: r = "top", tone: i = "default", size: a = "md", className: o = "", ...c }) {
8773
+ function ui({ content: e, children: t, placement: r = "top", tone: i = "default", size: a = "md", className: o = "", ...c }) {
8717
8774
  j("AppTooltip", c);
8718
8775
  let l = /* @__PURE__ */ p(E, {
8719
8776
  id: s(),
@@ -8727,14 +8784,14 @@ function ci({ content: e, children: t, placement: r = "top", tone: i = "default"
8727
8784
  });
8728
8785
  return /* @__PURE__ */ p(w, {
8729
8786
  trigger: ["hover", "focus"],
8730
- placement: si[r] || r,
8787
+ placement: li[r] || r,
8731
8788
  overlay: l,
8732
8789
  children: n(t, c)
8733
8790
  });
8734
8791
  }
8735
8792
  //#endregion
8736
8793
  //#region src/components/AppWizard.jsx
8737
- var li = 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) {
8794
+ var di = 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) {
8738
8795
  j("AppWizard", E);
8739
8796
  let O = u(null), k = (e) => {
8740
8797
  O.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
@@ -8789,7 +8846,7 @@ var li = i(function({ steps: t = [], children: n, active: r, defaultActive: i =
8789
8846
  });
8790
8847
  //#endregion
8791
8848
  //#region src/components/AppWorkspaceSwitcher.jsx
8792
- function ui({ 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 }) {
8849
+ function fi({ 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 }) {
8793
8850
  let { onToggle: x, ...S } = y;
8794
8851
  j("AppWorkspaceSwitcher", S);
8795
8852
  let [C, w] = d(""), [T, E] = d(!1), D = u(null), O = e.find((e) => e.id === t) ?? e[0], k = l(() => {
@@ -8817,7 +8874,7 @@ function ui({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
8817
8874
  },
8818
8875
  ...S,
8819
8876
  children: [/* @__PURE__ */ p(b.Toggle, {
8820
- as: mi,
8877
+ as: gi,
8821
8878
  compact: g,
8822
8879
  tenant: O,
8823
8880
  "aria-label": M
@@ -8852,7 +8909,7 @@ function ui({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
8852
8909
  className: `workspace-switcher-option${e.id === O?.id ? " is-active" : ""}`,
8853
8910
  onClick: () => n?.(e),
8854
8911
  children: [
8855
- /* @__PURE__ */ p(fi, { tenant: e }),
8912
+ /* @__PURE__ */ p(mi, { tenant: e }),
8856
8913
  /* @__PURE__ */ p("span", {
8857
8914
  className: "workspace-switcher-option-name",
8858
8915
  children: e.name
@@ -8884,17 +8941,17 @@ function ui({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
8884
8941
  }) : null,
8885
8942
  i ? /* @__PURE__ */ p("div", {
8886
8943
  className: "workspace-switcher-footer",
8887
- children: pi(i, a)
8944
+ children: hi(i, a)
8888
8945
  }) : null
8889
8946
  ]
8890
8947
  })]
8891
8948
  });
8892
8949
  }
8893
- function di(e) {
8950
+ function pi(e) {
8894
8951
  let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
8895
8952
  return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
8896
8953
  }
8897
- function fi({ tenant: e }) {
8954
+ function mi({ tenant: e }) {
8898
8955
  return e?.logoUrl ? /* @__PURE__ */ p("img", {
8899
8956
  className: "workspace-switcher-mark",
8900
8957
  src: e.logoUrl,
@@ -8902,10 +8959,10 @@ function fi({ tenant: e }) {
8902
8959
  loading: "lazy"
8903
8960
  }) : /* @__PURE__ */ p("span", {
8904
8961
  className: "workspace-switcher-mark",
8905
- children: di(e?.name)
8962
+ children: pi(e?.name)
8906
8963
  });
8907
8964
  }
8908
- function pi(e, t) {
8965
+ function hi(e, t) {
8909
8966
  if (typeof e != "object" || !e || !("label" in e)) return e;
8910
8967
  let { label: n, icon: r, href: i } = e;
8911
8968
  return /* @__PURE__ */ m(i ? t ?? "a" : "button", {
@@ -8917,7 +8974,7 @@ function pi(e, t) {
8917
8974
  }) : null, n]
8918
8975
  });
8919
8976
  }
8920
- var mi = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
8977
+ var gi = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
8921
8978
  return /* @__PURE__ */ m("button", {
8922
8979
  ref: a,
8923
8980
  type: "button",
@@ -8925,7 +8982,7 @@ var mi = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
8925
8982
  "aria-haspopup": "true",
8926
8983
  "aria-label": n,
8927
8984
  ...i,
8928
- children: [/* @__PURE__ */ p(fi, { tenant: t }), e ? null : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
8985
+ children: [/* @__PURE__ */ p(mi, { tenant: t }), e ? null : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
8929
8986
  className: "workspace-switcher-trigger-name",
8930
8987
  children: t?.name
8931
8988
  }), /* @__PURE__ */ p(I, {
@@ -8937,36 +8994,36 @@ var mi = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
8937
8994
  });
8938
8995
  //#endregion
8939
8996
  //#region src/components/toast.js
8940
- function hi() {
8941
- Zr();
8997
+ function _i() {
8998
+ $r();
8942
8999
  }
8943
- var gi = /* @__PURE__ */ new Set([
9000
+ var vi = /* @__PURE__ */ new Set([
8944
9001
  "success",
8945
9002
  "info",
8946
9003
  "warning",
8947
9004
  "error"
8948
9005
  ]);
8949
- function _i(e, t = "info") {
9006
+ function yi(e, t = "info") {
8950
9007
  let n = "info", r = {};
8951
- typeof t == "string" ? n = gi.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = gi.has(r.variant) ? r.variant : "info"), Yr(e, n, r);
9008
+ typeof t == "string" ? n = vi.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = vi.has(r.variant) ? r.variant : "info"), Zr(e, n, r);
8952
9009
  }
8953
- function vi(e, t = {}) {
8954
- Yr(e, "error", t);
9010
+ function bi(e, t = {}) {
9011
+ Zr(e, "error", t);
8955
9012
  }
8956
- _i.promise = (e, t, n = {}) => {
9013
+ yi.promise = (e, t, n = {}) => {
8957
9014
  let r = n.id || `promise-${Date.now()}-${Math.random()}`;
8958
- return _i(t.loading || "Loading...", {
9015
+ return yi(t.loading || "Loading...", {
8959
9016
  ...n,
8960
9017
  variant: "info",
8961
9018
  id: r,
8962
9019
  duration: 0
8963
- }), e.then((e) => (_i((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
9020
+ }), e.then((e) => (yi((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
8964
9021
  ...n,
8965
9022
  variant: "success",
8966
9023
  id: r,
8967
9024
  duration: n.duration === void 0 ? 5e3 : n.duration
8968
9025
  }), e)).catch((e) => {
8969
- throw _i((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
9026
+ throw yi((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
8970
9027
  ...n,
8971
9028
  variant: "error",
8972
9029
  id: r,
@@ -8976,7 +9033,7 @@ _i.promise = (e, t, n = {}) => {
8976
9033
  };
8977
9034
  //#endregion
8978
9035
  //#region src/lib/usePagination.js
8979
- function yi(e, t = 10) {
9036
+ function xi(e, t = 10) {
8980
9037
  let [n, r] = d(1), [i, a] = d(t), s = e.length, c = Math.max(1, Math.ceil(s / i));
8981
9038
  o(() => {
8982
9039
  n > c && r(c);
@@ -9002,4 +9059,4 @@ function yi(e, t = 10) {
9002
9059
  };
9003
9060
  }
9004
9061
  //#endregion
9005
- export { R as ActionIcon, z as AppAccordion, ee as AppAlert, oe as AppAsyncBlock, jt as AppAutocomplete, Lt as AppAvatar, Bt as AppAvatarGroup, Ut as AppBadge, Gt as AppBanner, Kt as AppBreadcrumbs, V as AppButton, qt as AppCallout, Yt as AppCard, Zt as AppCheckbox, Qt as AppChip, $t as AppChoiceCard, en as AppChoiceChip, tn as AppColorField, nn as AppCompareTable, fn as AppConfirmDialog, mn as AppCopyButton, wn as AppDataTable, Tn as AppDatePicker, En as AppDateRangePicker, On as AppDescriptions, jn as AppDropdown, ie as AppEmptyState, Rn as AppFileAttachment, Bn as AppFilePicker, Vn as AppFloatingDock, Hn as AppFormActions, Un as AppFormRow, Wn as AppFormSection, Gn as AppInfoList, St as AppInfoTip, rn as AppInput, Xn as AppKpiTile, Qn as AppLogoPicker, nr as AppMeter, ln as AppModal, rr as AppMultiSelect, ir as AppNumberInput, ar as AppOtpInput, or as AppPageHeader, sr as AppPagination, cr as AppPhoneNumberInput, xt as AppPopover, lr as AppPricingCard, fr as AppProgress, pr as AppRadio, mr as AppRepeater, hr as AppResourceCard, _r as AppResult, vr as AppScrollbar, yr as AppSearch, br as AppSegmented, Sr as AppSelect, yn as AppSelectMini, Cr as AppShell, Er as AppSidebarMenu, hn as AppSkeleton, gn as AppSkeletonRows, Dr as AppSlider, ae as AppSpinner, kr as AppSplash, Ar as AppStatusBadge, jr as AppStepper, Nr as AppSwitch, Pr as AppTableEmptyState, xn as AppTablePagination, Fr as AppTabs, Ir as AppTagInput, Lr as AppTextarea, Br as AppTimePicker, zr as AppTimeline, ii as AppToast, ii as AppToastContainer, oi as AppToolbar, ci as AppTooltip, li as AppWizard, ui as AppWorkspaceSwitcher, I as Icon, dn as MODAL_ICONS, Z as RequiredMark, hi as dismissAll, vi as errorToast, N as iconNames, F as registerIcons, _i as toast, yi as usePagination };
9062
+ export { R as ActionIcon, z as AppAccordion, V as AppAlert, oe as AppAsyncBlock, Mt as AppAutocomplete, Rt as AppAvatar, Vt as AppAvatarGroup, Wt as AppBadge, Kt as AppBanner, qt as AppBreadcrumbs, H as AppButton, Yt as AppCallout, Zt as AppCard, $t as AppCheckbox, en as AppChip, tn as AppChoiceCard, nn as AppChoiceChip, rn as AppColorField, an as AppCompareTable, mn as AppConfirmDialog, gn as AppCopyButton, En as AppDataTable, Dn as AppDatePicker, On as AppDateRangePicker, An as AppDescriptions, Nn as AppDropdown, ie as AppEmptyState, Bn as AppFileAttachment, Hn as AppFilePicker, Un as AppFloatingDock, Wn as AppFormActions, Gn as AppFormRow, Kn as AppFormSection, qn as AppInfoList, Ct as AppInfoTip, on as AppInput, Qn as AppKpiTile, er as AppLogoPicker, ir as AppMeter, dn as AppModal, ar as AppMultiSelect, or as AppNumberInput, sr as AppOtpInput, cr as AppPageHeader, lr as AppPagination, ur as AppPhoneNumberInput, St as AppPopover, dr as AppPricingCard, mr as AppProgress, hr as AppRadio, gr as AppRepeater, _r as AppResourceCard, yr as AppResult, br as AppScrollbar, xr as AppSearch, Sr as AppSegmented, wr as AppSelect, xn as AppSelectMini, Tr as AppShell, Or as AppSidebarMenu, _n as AppSkeleton, vn as AppSkeletonRows, kr as AppSlider, ae as AppSpinner, jr as AppSplash, Mr as AppStatusBadge, Nr as AppStepper, Fr as AppSwitch, Ir as AppTableEmptyState, Cn as AppTablePagination, Lr as AppTabs, Rr as AppTagInput, zr as AppTextarea, Hr as AppTimePicker, Vr as AppTimeline, oi as AppToast, oi as AppToastContainer, ci as AppToolbar, ui as AppTooltip, di as AppWizard, fi as AppWorkspaceSwitcher, I as Icon, pn as MODAL_ICONS, Z as RequiredMark, _i as dismissAll, bi as errorToast, N as iconNames, F as registerIcons, yi as toast, xi as usePagination };