@webority/ui-react 0.7.9 → 0.8.1

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
@@ -323,16 +323,20 @@ var te = {
323
323
  warning: "warning",
324
324
  subtle: "subtle",
325
325
  "outline-light": "outline-light"
326
+ }, ne = {
327
+ sm: 14,
328
+ md: 16,
329
+ lg: 20
326
330
  };
327
- function ne(e, t) {
331
+ function re(e, t, n) {
328
332
  if (!e) return null;
329
- let n = t === "left" ? "me-2" : "ms-2";
333
+ let r = t === "left" ? "me-2" : "ms-2";
330
334
  return typeof e == "string" ? /* @__PURE__ */ p(I, {
331
335
  name: e,
332
- size: 16,
333
- className: n
336
+ size: ne[n] ?? ne.md,
337
+ className: r
334
338
  }) : /* @__PURE__ */ p("span", {
335
- className: `d-inline-flex ${n}`,
339
+ className: `d-inline-flex ${r}`,
336
340
  children: e
337
341
  });
338
342
  }
@@ -352,15 +356,15 @@ function V({ children: e, variant: t = "primary", size: n = "md", type: r = "but
352
356
  className: "spinner-border spinner-border-sm me-2",
353
357
  "aria-hidden": "true"
354
358
  }),
355
- !i && ne(s, "left"),
359
+ !i && re(s, "left", n),
356
360
  e,
357
- !i && ne(c, "right")
361
+ !i && re(c, "right", n)
358
362
  ]
359
363
  });
360
364
  }
361
365
  //#endregion
362
366
  //#region src/components/AppEmptyState.jsx
363
- function re({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, action: a, className: o = "", style: s, ...c }) {
367
+ function ie({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, action: a, className: o = "", style: s, ...c }) {
364
368
  return j("AppEmptyState", c), /* @__PURE__ */ m("div", {
365
369
  className: [
366
370
  "empty-state",
@@ -391,7 +395,7 @@ function re({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, acti
391
395
  }
392
396
  //#endregion
393
397
  //#region src/components/AppSpinner.jsx
394
- function ie({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
398
+ function ae({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
395
399
  j("AppSpinner", r);
396
400
  let { style: i, ...a } = r, o = Number(e), s = Number.isFinite(o) && o > 0;
397
401
  return /* @__PURE__ */ p("span", {
@@ -409,7 +413,7 @@ function ie({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
409
413
  }
410
414
  //#endregion
411
415
  //#region src/components/AppAsyncBlock.jsx
412
- function ae({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRetry: i, skeleton: a, className: o = "", ...s }) {
416
+ function oe({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRetry: i, skeleton: a, className: o = "", ...s }) {
413
417
  j("AppAsyncBlock", s);
414
418
  let c = `async-block${o ? ` ${o}` : ""}`;
415
419
  return e ? /* @__PURE__ */ p("div", {
@@ -418,13 +422,13 @@ function ae({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
418
422
  ...s,
419
423
  children: a ?? /* @__PURE__ */ p("div", {
420
424
  className: "d-flex align-items-center justify-content-center py-5",
421
- children: /* @__PURE__ */ p(ie, { label: "Loading" })
425
+ children: /* @__PURE__ */ p(ae, { label: "Loading" })
422
426
  })
423
427
  }) : t ? /* @__PURE__ */ p("div", {
424
428
  className: c,
425
429
  "data-state": "error",
426
430
  ...s,
427
- children: /* @__PURE__ */ p(re, {
431
+ children: /* @__PURE__ */ p(ie, {
428
432
  icon: "alert-circle",
429
433
  title: "Something went wrong",
430
434
  text: t,
@@ -438,7 +442,7 @@ function ae({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
438
442
  className: c,
439
443
  "data-state": "empty",
440
444
  ...s,
441
- children: /* @__PURE__ */ p(re, {
445
+ children: /* @__PURE__ */ p(ie, {
442
446
  icon: "inbox",
443
447
  title: "Nothing to show yet"
444
448
  })
@@ -451,15 +455,15 @@ function ae({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
451
455
  }
452
456
  //#endregion
453
457
  //#region ../elements/dist/ui-elements.js
454
- var oe = {
458
+ var se = {
455
459
  success: "<rect width=\"174\" height=\"174\" rx=\"87\" fill=\"var(--wui-success-5)\"/>\n<rect x=\"24\" y=\"24\" width=\"126\" height=\"126\" rx=\"63\" stroke=\"var(--wui-success-20)\" stroke-width=\"16\"/>\n<g clip-path=\"url(#wui_success_clip)\">\n<rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"var(--wui-success-active)\"/>\n<rect x=\"108.758\" y=\"67.5986\" width=\"75.5044\" height=\"49.155\" transform=\"rotate(45 108.758 67.5986)\" fill=\"var(--wui-success)\"/>\n<path d=\"M87.895 96.1046C89.7154 97.9249 89.7154 101.046 87.895 102.866L84.1243 106.637C82.3039 108.457 79.1833 108.457 77.3629 106.637L60.8496 89.9934C59.0293 88.173 59.0293 85.0524 60.8496 83.232L64.6204 79.4613C66.4408 77.6409 69.5614 77.6409 71.3817 79.4613L87.895 96.1046Z\" fill=\"white\"/>\n<path d=\"M102.324 67.3672C104.144 65.5469 107.265 65.5469 109.085 67.3672L112.856 71.138C114.676 72.9583 114.676 76.079 112.856 77.8993L84.2499 106.375C82.4296 108.195 79.3089 108.195 77.4886 106.375L73.7178 102.604C71.8975 100.784 71.8975 97.6633 73.7178 95.8429L102.324 67.3672Z\" fill=\"white\"/>\n</g>\n<defs><clipPath id=\"wui_success_clip\"><rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"white\"/></clipPath></defs>",
456
460
  error: "<rect width=\"174\" height=\"174\" rx=\"87\" fill=\"var(--wui-danger-5)\"/>\n<rect x=\"24\" y=\"24\" width=\"126\" height=\"126\" rx=\"63\" stroke=\"var(--wui-danger-20)\" stroke-width=\"16\"/>\n<g clip-path=\"url(#wui_error_clip0)\">\n<rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"var(--wui-danger)\"/>\n<rect x=\"110.758\" y=\"62\" width=\"75.5044\" height=\"69.9535\" transform=\"rotate(45 110.758 62)\" fill=\"var(--wui-danger-active)\"/>\n<g clip-path=\"url(#wui_error_clip1)\">\n<path d=\"M95.9285 87.0037L112.943 69.9887C114.823 68.1087 114.823 65.0608 112.943 63.1838L110.675 60.9155C108.795 59.0349 105.747 59.0349 103.87 60.9155L86.8552 77.9298L69.8403 60.9119C67.9603 59.032 64.9124 59.032 63.0353 60.9119L60.7635 63.1802C58.8835 65.0608 58.8835 68.1087 60.7635 69.9858L77.7814 87.0037L60.767 104.018C58.8865 105.899 58.8865 108.947 60.767 110.824L63.0353 113.092C64.9153 114.972 67.9632 114.972 69.8403 113.092L86.8552 96.0769L103.87 113.092C105.75 114.972 108.798 114.972 110.675 113.092L112.943 110.824C114.823 108.943 114.823 105.895 112.943 104.018L95.9285 87.0037Z\" fill=\"white\"/>\n</g>\n</g>\n<defs><clipPath id=\"wui_error_clip0\"><rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"white\"/></clipPath><clipPath id=\"wui_error_clip1\"><rect width=\"55\" height=\"55\" fill=\"white\" transform=\"translate(59.3535 59.502)\"/></clipPath></defs>",
457
461
  warning: "<rect width=\"174\" height=\"174\" rx=\"87\" fill=\"var(--wui-warning-5)\"/>\n<rect x=\"24\" y=\"24\" width=\"126\" height=\"126\" rx=\"63\" stroke=\"var(--wui-warning-20)\" stroke-width=\"16\"/>\n<g clip-path=\"url(#wui_warning_clip)\">\n<rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"var(--wui-warning)\"/>\n<path d=\"M93.7812 60.9731L156.173 123.365L113.082 166.456L60 113.5L97 109L93.7812 60.9731Z\" fill=\"var(--wui-warning-active)\"/>\n<path d=\"M116.145 101.611L96.0431 62.7255C94.8912 60.6967 93.0607 59.1479 90.8656 58.3543C88.6768 57.5543 86.2768 57.5607 84.0945 58.3671C83.0001 58.7767 81.9953 59.3655 81.125 60.1079C80.2545 60.8567 79.5122 61.7527 78.9425 62.7703L57.8933 101.554C56.1525 104.594 56.1717 108.331 57.9317 111.358C59.6981 114.392 62.9427 116.248 66.4435 116.242H107.563C111.051 116.248 114.283 114.398 116.049 111.39C116.952 109.854 117.4 108.133 117.4 106.418C117.4 104.76 116.984 103.102 116.145 101.611ZM87.0064 105.714C85.0672 105.714 83.4929 104.146 83.4929 102.207C83.4929 100.267 85.0672 98.6993 87.0064 98.6993C88.9392 98.6993 90.5136 100.267 90.5136 102.207C90.5136 104.146 88.9392 105.714 87.0064 105.714ZM90.9104 78.098L88.0432 95.3266C88.0049 95.8706 87.5504 96.2994 87.0064 96.2994C86.4561 96.2994 86.0016 95.8706 85.9633 95.3266L83.0961 78.098C83.0385 77.8101 83.0065 77.522 83.0065 77.2405C83.0065 76.3125 83.3137 75.4037 83.8833 74.6485C84.6321 73.6629 85.7713 73.0549 87.0064 72.9717C88.2352 73.0549 89.3744 73.6629 90.1232 74.6485C90.872 75.6341 91.16 76.8885 90.9104 78.098Z\" fill=\"white\"/>\n</g>\n<defs><clipPath id=\"wui_warning_clip\"><rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"white\"/></clipPath></defs>",
458
462
  info: "<rect width=\"174\" height=\"174\" rx=\"87\" fill=\"var(--wui-info-5)\"/>\n<rect x=\"24\" y=\"24\" width=\"126\" height=\"126\" rx=\"63\" stroke=\"var(--wui-info-20)\" stroke-width=\"16\"/>\n<g clip-path=\"url(#wui_info_clip)\">\n<rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"var(--wui-info)\"/>\n<path d=\"M104.999 67.5L111.454 64L163.495 116.041L115.739 163.797L62.999 111L101.897 104.102L104.999 67.5Z\" fill=\"var(--wui-info-active)\"/>\n<path d=\"M87 121C105.778 121 121 105.778 121 87C121 68.2223 105.778 53 87 53C68.2223 53 53 68.2223 53 87C53 105.778 68.2223 121 87 121Z\" fill=\"white\"/>\n<path d=\"M87 75.542C89.3472 75.542 91.25 73.6392 91.25 71.292C91.25 68.9448 89.3472 67.042 87 67.042C84.6528 67.042 82.75 68.9448 82.75 71.292C82.75 73.6392 84.6528 75.542 87 75.542Z\" fill=\"var(--wui-info-active)\"/>\n<path d=\"M86.9992 106.992C86.0975 106.992 85.2327 106.634 84.5951 105.996C83.9574 105.359 83.5992 104.494 83.5992 103.592V86.592C82.6975 86.592 81.8327 86.2338 81.1951 85.5962C80.5574 84.9585 80.1992 84.0937 80.1992 83.192C80.1992 82.2903 80.5574 81.4255 81.1951 80.7878C81.8327 80.1502 82.6975 79.792 83.5992 79.792H86.9992C87.901 79.792 88.7658 80.1502 89.4034 80.7878C90.041 81.4255 90.3992 82.2903 90.3992 83.192V103.592C90.3992 104.494 90.041 105.359 89.4034 105.996C88.7658 106.634 87.901 106.992 86.9992 106.992Z\" fill=\"var(--wui-info-active)\"/>\n<path d=\"M90.3992 106.992H83.5992C82.6975 106.992 81.8327 106.634 81.1951 105.996C80.5574 105.358 80.1992 104.494 80.1992 103.592C80.1992 102.69 80.5574 101.825 81.1951 101.188C81.8327 100.55 82.6975 100.192 83.5992 100.192H90.3992C91.301 100.192 92.1658 100.55 92.8034 101.188C93.441 101.825 93.7992 102.69 93.7992 103.592C93.7992 104.494 93.441 105.358 92.8034 105.996C92.1658 106.634 91.301 106.992 90.3992 106.992Z\" fill=\"var(--wui-info-active)\"/>\n</g>\n<defs><clipPath id=\"wui_info_clip\"><rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"white\"/></clipPath></defs>",
459
463
  delete: "<rect width=\"174\" height=\"174\" rx=\"87\" fill=\"var(--wui-danger-5)\"/>\n<rect x=\"24\" y=\"24\" width=\"126\" height=\"126\" rx=\"63\" stroke=\"var(--wui-danger-20)\" stroke-width=\"16\"/>\n<g clip-path=\"url(#wui_delete_clip0)\">\n<rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"var(--wui-danger)\"/>\n<path d=\"M114.529 67.5672L163.249 116.287L116.354 163.183L67.6336 114.463L100.999 81.0975L64.999 77.5L58.999 69.5L114.529 67.5672Z\" fill=\"var(--wui-danger-active)\"/>\n<path d=\"M103.5 79L100.5 105.5L76 113L69.5 83.5L103.5 79Z\" fill=\"var(--wui-danger)\"/>\n<g clip-path=\"url(#wui_delete_clip1)\">\n<path d=\"M113.652 66.9993C108.895 66.5266 104.139 66.1721 99.3522 65.9061V65.8766L98.7022 62.0357C98.259 59.3175 97.609 55.2402 90.6954 55.2402H82.9545C76.0704 55.2402 75.4204 59.1402 74.9477 62.0061L74.3272 65.788C71.5795 65.9652 68.8318 66.1425 66.084 66.4084L60.0568 66.9993C58.8159 67.1175 57.9295 68.2107 58.0477 69.4221C58.1659 70.6334 59.2295 71.5198 60.4704 71.4016L66.4977 70.8107C81.9795 69.2743 97.5795 69.8652 113.239 71.4311C113.327 71.4311 113.386 71.4311 113.475 71.4311C114.598 71.4311 115.573 70.5743 115.691 69.4221C115.779 68.2107 114.893 67.1175 113.652 66.9993Z\" fill=\"white\"/>\n<path d=\"M108.216 75.5971C107.507 74.8585 106.532 74.4448 105.527 74.4448H68.1816C67.177 74.4448 66.1725 74.8585 65.4929 75.5971C64.8134 76.3357 64.4293 77.3403 64.4884 78.3744L66.3202 108.688C66.6452 113.179 67.0588 118.793 77.3702 118.793H96.3384C106.65 118.793 107.063 113.208 107.388 108.688L109.22 78.4039C109.279 77.3403 108.895 76.3357 108.216 75.5971ZM91.7588 103.99H81.9202C80.7088 103.99 79.7043 102.986 79.7043 101.774C79.7043 100.563 80.7088 99.5585 81.9202 99.5585H91.7588C92.9702 99.5585 93.9747 100.563 93.9747 101.774C93.9747 102.986 92.9702 103.99 91.7588 103.99ZM94.2406 92.1721H79.4679C78.2566 92.1721 77.252 91.1676 77.252 89.9562C77.252 88.7448 78.2566 87.7403 79.4679 87.7403H94.2406C95.452 87.7403 96.4566 88.7448 96.4566 89.9562C96.4566 91.1676 95.452 92.1721 94.2406 92.1721Z\" fill=\"white\"/>\n</g>\n</g>\n<defs><clipPath id=\"wui_delete_clip0\"><rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"white\"/></clipPath><clipPath id=\"wui_delete_clip1\"><rect width=\"65\" height=\"65\" fill=\"white\" transform=\"translate(54.3535 54.502)\"/></clipPath></defs>"
460
464
  };
461
- Object.keys(oe);
462
- var se = class extends HTMLElement {
465
+ Object.keys(se);
466
+ var ce = class extends HTMLElement {
463
467
  static get observedAttributes() {
464
468
  return ["tone", "size"];
465
469
  }
@@ -470,36 +474,36 @@ var se = class extends HTMLElement {
470
474
  this.isConnected && this.render();
471
475
  }
472
476
  render() {
473
- let e = this.getAttribute("tone"), t = Number.parseInt(this.getAttribute("size"), 10) || 72, n = oe[e] || oe.info;
477
+ let e = this.getAttribute("tone"), t = Number.parseInt(this.getAttribute("size"), 10) || 72, n = se[e] || se.info;
474
478
  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>`;
475
479
  }
476
- }, H = 4;
477
- function ce(e, t, n = {}) {
480
+ }, le = 4;
481
+ function H(e, t, n = {}) {
478
482
  if (!e || !t) return;
479
- let r = e.getBoundingClientRect(), i = t.offsetHeight, a = window.innerHeight - r.bottom, o = a < i + H && r.top > a;
480
- t.classList.toggle("drop-up", o), t.style.position = "fixed", t.style.top = o ? `${Math.max(H, r.top - i - H)}px` : `${r.bottom + H}px`, n.matchWidth && (t.style.width = `${r.width}px`);
481
- let s = t.offsetWidth, c = Math.min(r.left, window.innerWidth - s - H);
482
- t.style.left = `${Math.max(H, c)}px`;
483
+ let r = e.getBoundingClientRect(), i = t.offsetHeight, a = window.innerHeight - r.bottom, o = a < i + le && r.top > a;
484
+ 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
+ let s = t.offsetWidth, c = Math.min(r.left, window.innerWidth - s - le);
486
+ t.style.left = `${Math.max(le, c)}px`;
483
487
  }
484
- function le(e, t) {
488
+ function ue(e, t) {
485
489
  U(e), e._reanchor = t, window.addEventListener("resize", e._reanchor), window.addEventListener("scroll", e._reanchor, !0);
486
490
  }
487
491
  function U(e) {
488
492
  e?._reanchor && (window.removeEventListener("resize", e._reanchor), window.removeEventListener("scroll", e._reanchor, !0), e._reanchor = null);
489
493
  }
490
- var ue = "data-wui-mirror";
494
+ var de = "data-wui-mirror";
491
495
  function W(e, t) {
492
- let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${ue}]`);
496
+ let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${de}]`);
493
497
  if (!n) {
494
498
  r?.remove();
495
499
  return;
496
500
  }
497
- r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(ue, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t);
501
+ r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(de, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t);
498
502
  for (let t of [...r.attributes]) t.name.startsWith("data-val") && !e.hasAttribute(t.name) && r.removeAttribute(t.name);
499
503
  for (let t of e.attributes) t.name.startsWith("data-val") && r.setAttribute(t.name, t.value);
500
504
  r.disabled = e.hasAttribute("disabled");
501
505
  }
502
- function de(e) {
506
+ function G(e) {
503
507
  let { getVisibleOptions: t, getActive: n, setActive: r, onEnter: i, onEscape: a, onTypeahead: o, typeaheadMs: s = 500 } = e, c = "", l = null, u = () => {
504
508
  clearTimeout(l), l = null, c = "";
505
509
  };
@@ -528,15 +532,15 @@ function de(e) {
528
532
  teardown: u
529
533
  };
530
534
  }
531
- var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), fe = (e) => {
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) => {
532
536
  if (!e) return "";
533
537
  let t = String(e).toLowerCase().replace(/[^a-z0-9-]/g, "");
534
538
  return t ? `<i class="bi bi-${t}" aria-hidden="true"></i>` : "";
535
- }, pe = (e) => {
539
+ }, me = (e) => {
536
540
  if (e == null) return "";
537
- let t = e[G] ? String(e.label ?? "") : K(e.label), n = fe(e.icon);
541
+ let t = e[fe] ? String(e.label ?? "") : K(e.label), n = pe(e.icon);
538
542
  return n ? `<span class="wui-opt-label">${n}${t}</span>` : t;
539
- }, me = class extends HTMLElement {
543
+ }, he = class extends HTMLElement {
540
544
  static formAssociated = !0;
541
545
  _accessibleName() {
542
546
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
@@ -588,12 +592,12 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
588
592
  set value(e) {
589
593
  this._value = e == null ? "" : String(e), W(this, this._value);
590
594
  let t = this._readOptions().find((e) => String(e.value) === this._value);
591
- this._label = t ? ge(t.label) : "", this._syncInput(), this._renderOptions("");
595
+ this._label = t ? _e(t.label) : "", this._syncInput(), this._renderOptions("");
592
596
  }
593
597
  set options(e) {
594
598
  this._optionsProp = Array.isArray(e) ? e : [];
595
599
  let t = this._readOptions().find((e) => String(e.value) === this._value);
596
- t && (this._label = ge(t.label)), this._renderOptions(), this._syncInput();
600
+ t && (this._label = _e(t.label)), this._renderOptions(), this._syncInput();
597
601
  }
598
602
  get options() {
599
603
  return this._readOptions();
@@ -612,7 +616,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
612
616
  }
613
617
  _matchesKnownOption(e) {
614
618
  let t = e.toLowerCase();
615
- return this._readOptions().some((e) => ge(e.label).toLowerCase() === t || String(e.value ?? "").toLowerCase() === t);
619
+ return this._readOptions().some((e) => _e(e.label).toLowerCase() === t || String(e.value ?? "").toLowerCase() === t);
616
620
  }
617
621
  get _minChars() {
618
622
  return Math.max(0, Number(this.getAttribute("min-chars")) || +!!this._remote);
@@ -630,7 +634,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
630
634
  value: e.getAttribute("value") ?? e.textContent.trim(),
631
635
  label: e.innerHTML,
632
636
  icon: e.getAttribute("icon") || void 0,
633
- [G]: !0,
637
+ [fe]: !0,
634
638
  selected: e.hasAttribute("selected")
635
639
  })));
636
640
  }
@@ -644,12 +648,12 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
644
648
  let r = `${this.id}-listbox`;
645
649
  this._listboxId = r, this.innerHTML = `
646
650
  <div class="search-select${n}">
647
- <div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${he(r)}" aria-label="${he(this._accessibleName())}">
648
- <input class="search-select-input search-select-ac-input" placeholder="${he(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
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" : ""} />
649
653
  <span class="search-select-spinner spinner-border spinner-border-sm" role="status" aria-hidden="true" hidden></span>
650
654
  <button type="button" class="search-select-clear" aria-label="Clear" hidden><i class="bi bi-x" aria-hidden="true"></i></button>
651
655
  </div>
652
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${he(r)}" tabindex="-1" hidden>
656
+ <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${ge(r)}" tabindex="-1" hidden>
653
657
  <div class="search-select-options"></div>
654
658
  <div class="search-select-empty" hidden>No matches</div>
655
659
  <div class="search-select-hint" hidden>Type to search…</div>
@@ -683,7 +687,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
683
687
  let t = this._refs();
684
688
  if (!t.optionsWrap) return;
685
689
  let n = e ?? (t.input ? t.input.value : ""), r = n.trim().toLowerCase(), i = this._readOptions();
686
- !this._remote && r && (i = i.filter((e) => ge(e.label).toLowerCase().includes(r)));
690
+ !this._remote && r && (i = i.filter((e) => _e(e.label).toLowerCase().includes(r)));
687
691
  let a = n.trim(), o = this._allowCustom && a && !this._matchesKnownOption(a) ? [...i, {
688
692
  value: a,
689
693
  custom: !0
@@ -692,10 +696,10 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
692
696
  let n = `${s}-opt-${t}`;
693
697
  if (e.custom) {
694
698
  let t = `Add “${K(e.value)}”`;
695
- return `<button type="button" role="option" id="${he(n)}" class="search-select-option search-select-option-custom" data-value="${he(e.value)}" data-custom="true" aria-selected="false">${t}</button>`;
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>`;
696
700
  }
697
701
  let r = String(e.value) === String(this._value);
698
- return `<button type="button" role="option" id="${he(n)}" class="search-select-option${r ? " selected" : ""}" data-value="${he(e.value)}" aria-selected="${r}">${pe(e)}</button>`;
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>`;
699
703
  }).join(""), this._active = -1, t.control?.removeAttribute("aria-activedescendant");
700
704
  let c = r.length < this._minChars;
701
705
  t.hint && (t.hint.hidden = !(this._remote && c && !i.length)), t.empty && (t.empty.hidden = this._loading || o.length > 0 || this._remote && c);
@@ -704,7 +708,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
704
708
  this._teardown();
705
709
  let e = this._refs();
706
710
  if (!e.control || !e.input) return;
707
- let t = () => ce(e.control, e.menu, { matchWidth: !0 }), n = () => this._optionEls().filter((e) => !e.hidden), r = (t) => {
711
+ let t = () => H(e.control, e.menu, { matchWidth: !0 }), n = () => this._optionEls().filter((e) => !e.hidden), r = (t) => {
708
712
  let r = n();
709
713
  this._active = t;
710
714
  for (let e of this._optionEls()) e.classList.remove("is-active");
@@ -715,7 +719,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
715
719
  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();
716
720
  }, s = (t) => {
717
721
  let n = t.dataset.custom === "true";
718
- this._value = t.dataset.value, this._label = n ? t.dataset.value : ge(t.innerHTML), W(this, this._value), e.input.value = this._label, this.dispatchEvent(new CustomEvent("change", {
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", {
719
723
  bubbles: !0,
720
724
  detail: { isCustom: n }
721
725
  })), o(), e.input.focus();
@@ -738,7 +742,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
738
742
  }, this._timer = setTimeout(() => this._fireSearch(t, e), this._debounceMs);
739
743
  } else this._renderOptions(t);
740
744
  };
741
- this._navHandler = de({
745
+ this._navHandler = G({
742
746
  getVisibleOptions: n,
743
747
  getActive: () => this._active,
744
748
  setActive: (e) => r(e),
@@ -782,7 +786,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
782
786
  }), this._bindGlobal = () => {
783
787
  this._teardown(), this._onDocClick = (e) => {
784
788
  i() && !this.contains(e.target) && o();
785
- }, document.addEventListener("click", this._onDocClick), le(this, () => {
789
+ }, document.addEventListener("click", this._onDocClick), ue(this, () => {
786
790
  i() && t();
787
791
  });
788
792
  }, this._bindGlobal();
@@ -802,7 +806,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
802
806
  disconnectedCallback() {
803
807
  this._teardown();
804
808
  }
805
- }, he = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), ge = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), _e = [
809
+ }, ge = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), _e = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), ve = [
806
810
  "January",
807
811
  "February",
808
812
  "March",
@@ -815,7 +819,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
815
819
  "October",
816
820
  "November",
817
821
  "December"
818
- ], ve = [
822
+ ], ye = [
819
823
  "Su",
820
824
  "Mo",
821
825
  "Tu",
@@ -823,24 +827,24 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
823
827
  "Th",
824
828
  "Fr",
825
829
  "Sa"
826
- ], ye = (e) => String(e).padStart(2, "0"), be = (e, t, n) => `${e}-${ye(t + 1)}-${ye(n)}`, q = (e) => {
830
+ ], be = (e) => String(e).padStart(2, "0"), xe = (e, t, n) => `${e}-${be(t + 1)}-${be(n)}`, q = (e) => {
827
831
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e || "");
828
832
  return t ? {
829
833
  y: +t[1],
830
834
  m: t[2] - 1,
831
835
  d: +t[3]
832
836
  } : null;
833
- }, xe = (e) => {
837
+ }, Se = (e) => {
834
838
  let t = q(e);
835
- return t ? `${ye(t.d)} ${_e[t.m].slice(0, 3)} ${t.y}` : "";
836
- }, Se = (e, t) => new Date(e, t + 1, 0).getDate(), J = (e, t) => {
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) => {
837
841
  for (; t < 0;) t += 12, --e;
838
842
  for (; t > 11;) t -= 12, e += 1;
839
843
  return {
840
844
  y: e,
841
845
  m: t
842
846
  };
843
- }, Ce = class extends HTMLElement {
847
+ }, we = class extends HTMLElement {
844
848
  static formAssociated = !0;
845
849
  static get observedAttributes() {
846
850
  return [
@@ -897,7 +901,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
897
901
  this.innerHTML = `
898
902
  <div class="datepicker">
899
903
  <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)}"` : ""}>
900
- <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? xe(this._value) : K(e)}</span>
904
+ <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? Se(this._value) : K(e)}</span>
901
905
  <i class="bi bi-calendar3" aria-hidden="true"></i>
902
906
  </button>
903
907
  <div class="datepicker-pop" role="dialog" aria-modal="false" hidden></div>
@@ -910,7 +914,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
910
914
  let e = this.querySelector(".datepicker-trigger"), t = this.querySelector("[data-trigger-label]");
911
915
  if (!t) return;
912
916
  let n = q(this._value);
913
- t.textContent = n ? xe(this._value) : this.getAttribute("placeholder") || "Enter Date", t.classList.toggle("search-select-placeholder", !n), e?.classList.toggle("has-value", !!n);
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);
914
918
  }
915
919
  _limits() {
916
920
  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;
@@ -921,7 +925,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
921
925
  },
922
926
  monthDisabled: (e, t) => {
923
927
  let i = new Date(e, t, 1).getTime();
924
- return new Date(e, t, Se(e, t)).getTime() < n || i > r;
928
+ return new Date(e, t, Ce(e, t)).getTime() < n || i > r;
925
929
  },
926
930
  yearDisabled: (e) => {
927
931
  let t = new Date(e, 0, 1).getTime();
@@ -934,28 +938,28 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
934
938
  e && (this._mode === "months" ? e.innerHTML = this._monthsHtml() : this._mode === "years" ? e.innerHTML = this._yearsHtml() : e.innerHTML = this._daysHtml(), this._focusActive());
935
939
  }
936
940
  _daysHtml() {
937
- let e = this._firstDay(), t = (new Date(this._viewY, this._viewM, 1).getDay() - e + 7) % 7, n = Se(this._viewY, this._viewM), r = q(this._value), i = /* @__PURE__ */ new Date(), { dayDisabled: a } = this._limits(), o = this._focus || r || {
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 || {
938
942
  y: this._viewY,
939
943
  m: this._viewM,
940
944
  d: 1
941
945
  }, s = (e, t, n, s) => {
942
- let c = be(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);
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);
943
947
  return `<button type="button" class="${[
944
948
  "datepicker-day",
945
949
  s ? "is-outside" : "",
946
950
  u ? "is-today" : "",
947
951
  l ? "is-selected" : ""
948
952
  ].filter(Boolean).join(" ")}" data-iso="${c}" role="gridcell" tabindex="${d && !f ? "0" : "-1"}"${l ? " aria-selected=\"true\"" : ""}${f ? " disabled aria-disabled=\"true\"" : ""}>${n}</button>`;
949
- }, c = "", l = J(this._viewY, this._viewM - 1), u = Se(l.y, l.m);
953
+ }, c = "", l = J(this._viewY, this._viewM - 1), u = Ce(l.y, l.m);
950
954
  for (let e = t - 1; e >= 0; e--) c += s(l.y, l.m, u - e, !0);
951
955
  for (let e = 1; e <= n; e++) c += s(this._viewY, this._viewM, e, !1);
952
956
  let d = J(this._viewY, this._viewM + 1), f = (7 - (t + n) % 7) % 7;
953
957
  for (let e = 1; e <= f; e++) c += s(d.y, d.m, e, !0);
954
- let p = ve.map((t, n) => ve[(n + e) % 7]).map((e) => `<span>${e}</span>`).join("");
958
+ let p = ye.map((t, n) => ye[(n + e) % 7]).map((e) => `<span>${e}</span>`).join("");
955
959
  return `
956
960
  <div class="datepicker-head">
957
961
  <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>
958
- <button type="button" class="datepicker-month" data-view="months" aria-label="Choose month and year">${_e[this._viewM]} ${this._viewY}</button>
962
+ <button type="button" class="datepicker-month" data-view="months" aria-label="Choose month and year">${ve[this._viewM]} ${this._viewY}</button>
959
963
  <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>
960
964
  </div>
961
965
  <div class="datepicker-weekdays">${p}</div>
@@ -973,7 +977,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
973
977
  o ? "is-today" : "",
974
978
  a ? "is-selected" : ""
975
979
  ].filter(Boolean).join(" ");
976
- r += `<button type="button" class="${c}" data-month="${i}"${s ? " disabled" : ""}>${_e[i].slice(0, 3)}</button>`;
980
+ r += `<button type="button" class="${c}" data-month="${i}"${s ? " disabled" : ""}>${ve[i].slice(0, 3)}</button>`;
977
981
  }
978
982
  return `
979
983
  <div class="datepicker-head">
@@ -1006,7 +1010,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1006
1010
  t && e.contains(document.activeElement) && t.focus();
1007
1011
  }
1008
1012
  _position(e, t) {
1009
- ce(e, t);
1013
+ H(e, t);
1010
1014
  }
1011
1015
  _setFocus(e, t, n, r) {
1012
1016
  let { y: i, m: a } = J(e, t);
@@ -1016,7 +1020,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1016
1020
  d: n
1017
1021
  };
1018
1022
  let o = i !== this._viewY || a !== this._viewM;
1019
- this._viewY = i, this._viewM = a, this._slide = o && r || "", this._renderView(), this._slide = "", this.querySelector(`.datepicker-day[data-iso="${be(i, a, n)}"]`)?.focus();
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();
1020
1024
  }
1021
1025
  _onKey(e) {
1022
1026
  if (this._mode !== "days") {
@@ -1042,16 +1046,16 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1042
1046
  case "PageUp": {
1043
1047
  e.preventDefault();
1044
1048
  let n = J(t.y, t.m - (e.shiftKey ? 12 : 1));
1045
- return this._setFocus(n.y, n.m, Math.min(t.d, Se(n.y, n.m)), "slide-prev");
1049
+ return this._setFocus(n.y, n.m, Math.min(t.d, Ce(n.y, n.m)), "slide-prev");
1046
1050
  }
1047
1051
  case "PageDown": {
1048
1052
  e.preventDefault();
1049
1053
  let n = J(t.y, t.m + (e.shiftKey ? 12 : 1));
1050
- return this._setFocus(n.y, n.m, Math.min(t.d, Se(n.y, n.m)), "slide-next");
1054
+ return this._setFocus(n.y, n.m, Math.min(t.d, Ce(n.y, n.m)), "slide-next");
1051
1055
  }
1052
1056
  case "Enter":
1053
1057
  case " ":
1054
- e.preventDefault(), this._limits().dayDisabled(t.y, t.m, t.d) || (this.value = be(t.y, t.m, t.d), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close());
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());
1055
1059
  return;
1056
1060
  case "Escape": return this._close();
1057
1061
  default:
@@ -1119,7 +1123,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1119
1123
  }
1120
1124
  if (e.target.closest("[data-today]")) {
1121
1125
  let e = /* @__PURE__ */ new Date();
1122
- this.value = be(e.getFullYear(), e.getMonth(), e.getDate()), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close();
1126
+ this.value = xe(e.getFullYear(), e.getMonth(), e.getDate()), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close();
1123
1127
  return;
1124
1128
  }
1125
1129
  if (e.target.closest("[data-clear]")) {
@@ -1136,7 +1140,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1136
1140
  this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
1137
1141
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
1138
1142
  r() && e.key === "Escape" && this._close();
1139
- }, document.addEventListener("keydown", this._onDocKey), le(this, () => {
1143
+ }, document.addEventListener("keydown", this._onDocKey), ue(this, () => {
1140
1144
  r() && this._position(e, t);
1141
1145
  });
1142
1146
  }, this._bindGlobal(), this._syncFormValue();
@@ -1147,7 +1151,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1147
1151
  disconnectedCallback() {
1148
1152
  this._teardown();
1149
1153
  }
1150
- }, we = class extends HTMLElement {
1154
+ }, Te = class extends HTMLElement {
1151
1155
  static formAssociated = !0;
1152
1156
  static get observedAttributes() {
1153
1157
  return [
@@ -1206,7 +1210,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1206
1210
  text: e,
1207
1211
  empty: !0
1208
1212
  } : {
1209
- text: `${xe(this._start) || "Start"} – ${xe(this._end) || "End"}`,
1213
+ text: `${Se(this._start) || "Start"} – ${Se(this._end) || "End"}`,
1210
1214
  empty: !1
1211
1215
  };
1212
1216
  }
@@ -1253,17 +1257,17 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1253
1257
  };
1254
1258
  }
1255
1259
  _monthHtml(e, t) {
1256
- let n = this._firstDay(), r = (new Date(e, t, 1).getDay() - n + 7) % 7, i = Se(e, t), a = this._limits(), o = ve.map((e, t) => ve[(t + n) % 7]).map((e) => `<span>${e}</span>`).join(""), s = (e, t, n, r) => {
1257
- let i = be(e, t, n), o = a(e, t, n);
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);
1258
1262
  return `<button type="button" class="${["datepicker-day", r ? "is-outside" : ""].filter(Boolean).join(" ")}" data-iso="${i}"${o ? " disabled" : ""}>${n}</button>`;
1259
- }, c = "", l = J(e, t - 1), u = Se(l.y, l.m);
1263
+ }, c = "", l = J(e, t - 1), u = Ce(l.y, l.m);
1260
1264
  for (let e = r - 1; e >= 0; e--) c += s(l.y, l.m, u - e, !0);
1261
1265
  for (let n = 1; n <= i; n++) c += s(e, t, n, !1);
1262
1266
  let d = J(e, t + 1), f = (7 - (r + i) % 7) % 7;
1263
1267
  for (let e = 1; e <= f; e++) c += s(d.y, d.m, e, !0);
1264
1268
  return `
1265
1269
  <div class="daterange-cal">
1266
- <div class="datepicker-month-label">${_e[t]} ${e}</div>
1270
+ <div class="datepicker-month-label">${ve[t]} ${e}</div>
1267
1271
  <div class="datepicker-weekdays">${o}</div>
1268
1272
  <div class="datepicker-grid" role="grid">${c}</div>
1269
1273
  </div>`;
@@ -1297,10 +1301,10 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1297
1301
  n.classList.toggle("is-range-start", i), n.classList.toggle("is-range-end", a), n.classList.toggle("in-range", o);
1298
1302
  }
1299
1303
  let i = e.querySelector("[data-range-hint]");
1300
- i && (i.textContent = this._start ? this._end ? `${xe(this._start)} – ${xe(this._end)}` : "Pick an end date" : "Pick a start date");
1304
+ i && (i.textContent = this._start ? this._end ? `${Se(this._start)} – ${Se(this._end)}` : "Pick an end date" : "Pick a start date");
1301
1305
  }
1302
1306
  _position(e, t) {
1303
- ce(e, t);
1307
+ H(e, t);
1304
1308
  }
1305
1309
  _pick(e) {
1306
1310
  if (!this._start || this._start && this._end) {
@@ -1351,7 +1355,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1351
1355
  this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
1352
1356
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
1353
1357
  r() && e.key === "Escape" && this._close();
1354
- }, document.addEventListener("keydown", this._onDocKey), le(this, () => {
1358
+ }, document.addEventListener("keydown", this._onDocKey), ue(this, () => {
1355
1359
  r() && this._position(e, t);
1356
1360
  });
1357
1361
  }, this._bindGlobal(), this._syncMirrors();
@@ -1362,7 +1366,59 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1362
1366
  disconnectedCallback() {
1363
1367
  this._teardown();
1364
1368
  }
1365
- }, Te = class extends HTMLElement {
1369
+ }, Ee = class extends HTMLElement {
1370
+ static get observedAttributes() {
1371
+ return [
1372
+ "static",
1373
+ "max-scale",
1374
+ "radius"
1375
+ ];
1376
+ }
1377
+ constructor() {
1378
+ super(), this._pointerMoveListener = null, this._pointerLeaveListener = null, this._frame = 0, this._pointerX = 0;
1379
+ }
1380
+ connectedCallback() {
1381
+ this._wire();
1382
+ }
1383
+ disconnectedCallback() {
1384
+ this._teardown();
1385
+ }
1386
+ attributeChangedCallback(e, t, n) {
1387
+ e === "static" && this.isConnected && this._wire();
1388
+ }
1389
+ _maxScale() {
1390
+ return De(this.getAttribute("max-scale"), 1.6);
1391
+ }
1392
+ _radius() {
1393
+ return De(this.getAttribute("radius"), 100);
1394
+ }
1395
+ _magnifyEnabled() {
1396
+ return !(this.hasAttribute("static") || typeof matchMedia == "function" && (matchMedia("(pointer: coarse)").matches || matchMedia("(prefers-reduced-motion: reduce)").matches));
1397
+ }
1398
+ _applyMagnification() {
1399
+ this._frame = 0;
1400
+ let e = this._maxScale(), t = this._radius();
1401
+ for (let n of this.querySelectorAll(".dock-item")) {
1402
+ let r = n.getBoundingClientRect(), i = Math.abs(this._pointerX - (r.left + r.width / 2)), a = Math.max(0, 1 - i / t), o = 1 + (e - 1) * a;
1403
+ n.style.setProperty("--wui-dock-mag", o.toFixed(3));
1404
+ }
1405
+ }
1406
+ _resetMagnification() {
1407
+ this._frame &&= (cancelAnimationFrame(this._frame), 0);
1408
+ for (let e of this.querySelectorAll(".dock-item")) e.style.removeProperty("--wui-dock-mag");
1409
+ }
1410
+ _wire() {
1411
+ this._teardown(), this._magnifyEnabled() && (this._pointerMoveListener = (e) => {
1412
+ this._pointerX = e.clientX, this._frame ||= requestAnimationFrame(() => this._applyMagnification());
1413
+ }, this._pointerLeaveListener = () => this._resetMagnification(), this.addEventListener("pointermove", this._pointerMoveListener), this.addEventListener("pointerleave", this._pointerLeaveListener));
1414
+ }
1415
+ _teardown() {
1416
+ this._pointerMoveListener &&= (this.removeEventListener("pointermove", this._pointerMoveListener), null), this._pointerLeaveListener &&= (this.removeEventListener("pointerleave", this._pointerLeaveListener), null), this._resetMagnification();
1417
+ }
1418
+ }, De = (e, t) => {
1419
+ let n = Number.parseFloat(e);
1420
+ return Number.isFinite(n) ? n : t;
1421
+ }, Oe = class extends HTMLElement {
1366
1422
  static formAssociated = !0;
1367
1423
  _accessibleName() {
1368
1424
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
@@ -1431,7 +1487,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1431
1487
  value: e.getAttribute("value") ?? e.textContent.trim(),
1432
1488
  label: e.innerHTML,
1433
1489
  icon: e.getAttribute("icon") || void 0,
1434
- [G]: !0,
1490
+ [fe]: !0,
1435
1491
  selected: e.hasAttribute("selected")
1436
1492
  })));
1437
1493
  }
@@ -1444,7 +1500,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1444
1500
  }
1445
1501
  _labelHtmlFor(e) {
1446
1502
  let t = this._readOptions().find((t) => String(t.value) === String(e));
1447
- return t ? pe(t) : K(e);
1503
+ return t ? me(t) : K(e);
1448
1504
  }
1449
1505
  render() {
1450
1506
  this._snapshotDeclared();
@@ -1453,13 +1509,13 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1453
1509
  let a = `${this.id}-listbox`;
1454
1510
  this._listboxId = a, this.innerHTML = `
1455
1511
  <div class="search-select${i}">
1456
- <div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Ee(a)}" aria-label="${Ee(this._accessibleName())}"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : " tabindex=\"0\""}>
1457
- ${n ? `<i class="bi bi-${Ee(n)} search-select-icon" aria-hidden="true"></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>` : ""}
1458
1514
  <div class="ms-chips" data-chips></div>
1459
1515
  <i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
1460
1516
  </div>
1461
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Ee(a)}" aria-multiselectable="true" tabindex="-1" hidden>
1462
- ${e ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${Ee(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>` : ""}
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>` : ""}
1463
1519
  <div class="search-select-options"></div>
1464
1520
  <div class="search-select-empty" hidden>No matches</div>
1465
1521
  </div>
@@ -1473,7 +1529,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1473
1529
  e.innerHTML = `<span class="search-select-placeholder">${K(t)}</span>`;
1474
1530
  return;
1475
1531
  }
1476
- 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="${Ee(e)}" aria-label="Remove ${Ee(De(this._labelFor(e)))}"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join(""), this._collapseChips();
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();
1477
1533
  }
1478
1534
  _collapseChips() {
1479
1535
  let e = this.querySelector("[data-chips]");
@@ -1497,18 +1553,18 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1497
1553
  let t = this.querySelector(".search-select-options"), n = this.querySelector(".search-select-empty");
1498
1554
  if (!t) return;
1499
1555
  let r = (e || "").trim().toLowerCase(), i = this._readOptions();
1500
- r && (i = i.filter((e) => De(e.label).toLowerCase().includes(r)));
1556
+ r && (i = i.filter((e) => Ae(e.label).toLowerCase().includes(r)));
1501
1557
  let a = this._listboxId || `${this.id || "wui-multiselect"}-listbox`;
1502
1558
  t.innerHTML = i.map((e, t) => {
1503
1559
  let n = this._values.includes(String(e.value));
1504
- return `<button type="button" role="option" id="${Ee(`${a}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${Ee(e.value)}" aria-selected="${n}"><span class="ms-opt-label">${pe(e)}</span><span class="ms-check"><i class="bi bi-check" aria-hidden="true"></i></span></button>`;
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>`;
1505
1561
  }).join(""), n && (n.hidden = i.length > 0), this._active = -1, this.querySelector(".search-select-control")?.removeAttribute("aria-activedescendant");
1506
1562
  }
1507
1563
  _wire() {
1508
1564
  this._teardown();
1509
1565
  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");
1510
1566
  if (!e || !t) return;
1511
- let a = () => this.hasAttribute("disabled"), o = () => ce(e, t, { matchWidth: !0 }), s = () => [...this.querySelectorAll(".search-select-option")], c = () => s().filter((e) => !e.hidden), l = (t) => {
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) => {
1512
1568
  let n = c();
1513
1569
  this._active = t;
1514
1570
  for (let e of s()) e.classList.remove("is-active");
@@ -1541,7 +1597,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1541
1597
  t && l(c().indexOf(t));
1542
1598
  }), i.addEventListener("mouseleave", () => l(-1)), n?.addEventListener("input", () => {
1543
1599
  this._renderOptions(n.value), r && (r.hidden = !n.value), l(-1);
1544
- }), this._navHandler = de({
1600
+ }), this._navHandler = G({
1545
1601
  getVisibleOptions: c,
1546
1602
  getActive: () => this._active,
1547
1603
  setActive: (e) => l(e),
@@ -1570,7 +1626,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1570
1626
  }), this._bindGlobal = () => {
1571
1627
  this._teardown(), !this._ro && typeof ResizeObserver < "u" && (this._ro = new ResizeObserver(() => this._collapseChips()), this._ro.observe(this)), this._onDocClick = (e) => {
1572
1628
  u() && !this.contains(e.target) && f();
1573
- }, document.addEventListener("click", this._onDocClick), le(this, () => {
1629
+ }, document.addEventListener("click", this._onDocClick), ue(this, () => {
1574
1630
  u() && o();
1575
1631
  });
1576
1632
  }, this._bindGlobal();
@@ -1581,7 +1637,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1581
1637
  disconnectedCallback() {
1582
1638
  this._teardown(), this._ro?.disconnect(), this._ro = null;
1583
1639
  }
1584
- }, Ee = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), De = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), Oe = /[^0-9]/g, ke = /[^0-9a-zA-Z]/g, Ae = class extends HTMLElement {
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 {
1585
1641
  static formAssociated = !0;
1586
1642
  static get observedAttributes() {
1587
1643
  return [
@@ -1612,7 +1668,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1612
1668
  this._value = this._clean(e), W(this, this._value), this._paint();
1613
1669
  }
1614
1670
  _clean(e) {
1615
- return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ? ke : Oe, "").slice(0, this.length);
1671
+ return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ? Me : je, "").slice(0, this.length);
1616
1672
  }
1617
1673
  constructor() {
1618
1674
  super();
@@ -1692,7 +1748,7 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
1692
1748
  disconnectedCallback() {
1693
1749
  this._onSelectionChange && document.removeEventListener("selectionchange", this._onSelectionChange);
1694
1750
  }
1695
- }, je = [
1751
+ }, Pe = [
1696
1752
  [
1697
1753
  "AF",
1698
1754
  "Afghanistan",
@@ -2918,20 +2974,20 @@ var G = Symbol("wui.trustedHtml"), K = (e) => String(e ?? "").replace(/&/g, "&am
2918
2974
  "Zimbabwe",
2919
2975
  "263"
2920
2976
  ]
2921
- ], Me = (e) => (je.find((t) => t[0] === e) || [
2977
+ ], Fe = (e) => (Pe.find((t) => t[0] === e) || [
2922
2978
  "",
2923
2979
  "",
2924
2980
  ""
2925
- ])[2], Ne = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, Y = null, Pe = null;
2926
- function Fe() {
2927
- return Y ? Promise.resolve(Y) : (Pe ||= Promise.all([import("./libphonenumber-js-BcNT8oq0-DMpMlice.js"), import("./examples.mobile.json-BMXTGiGC-Dl_Tt3py.js")]).then(([e, t]) => (Y = {
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 = {
2928
2984
  AsYouType: e.AsYouType,
2929
2985
  getExampleNumber: e.getExampleNumber,
2930
2986
  isValidPhoneNumber: e.isValidPhoneNumber,
2931
2987
  examples: t.default || t
2932
- }, Y)).catch(() => null), Pe);
2988
+ }, Y)).catch(() => null), Le);
2933
2989
  }
2934
- function Ie(e, t) {
2990
+ function ze(e, t) {
2935
2991
  if (!Y || !t) return t;
2936
2992
  try {
2937
2993
  return new Y.AsYouType(e).input(t);
@@ -2939,7 +2995,7 @@ function Ie(e, t) {
2939
2995
  return t;
2940
2996
  }
2941
2997
  }
2942
- function Le(e) {
2998
+ function Be(e) {
2943
2999
  if (!Y) return null;
2944
3000
  try {
2945
3001
  return Y.getExampleNumber(e, Y.examples)?.formatNational() || null;
@@ -2947,7 +3003,7 @@ function Le(e) {
2947
3003
  return null;
2948
3004
  }
2949
3005
  }
2950
- function Re(e) {
3006
+ function Ve(e) {
2951
3007
  if (!Y || !e) return null;
2952
3008
  try {
2953
3009
  return Y.isValidPhoneNumber(e);
@@ -2955,7 +3011,7 @@ function Re(e) {
2955
3011
  return null;
2956
3012
  }
2957
3013
  }
2958
- function ze(e) {
3014
+ function He(e) {
2959
3015
  if (!Y) return null;
2960
3016
  try {
2961
3017
  let t = Y.getExampleNumber(e, Y.examples);
@@ -2964,7 +3020,7 @@ function ze(e) {
2964
3020
  return null;
2965
3021
  }
2966
3022
  }
2967
- function Be(e) {
3023
+ function Ue(e) {
2968
3024
  if (!Y || !e?.trim().startsWith("+")) return null;
2969
3025
  try {
2970
3026
  let t = new Y.AsYouType();
@@ -2978,7 +3034,7 @@ function Be(e) {
2978
3034
  return null;
2979
3035
  }
2980
3036
  }
2981
- var Ve = class extends HTMLElement {
3037
+ var We = class extends HTMLElement {
2982
3038
  static formAssociated = !0;
2983
3039
  static get observedAttributes() {
2984
3040
  return [
@@ -3018,13 +3074,13 @@ var Ve = class extends HTMLElement {
3018
3074
  this.value = this._defaultValue || "";
3019
3075
  }
3020
3076
  get value() {
3021
- return this._national ? `+${Me(this._country)}${this._national}` : "";
3077
+ return this._national ? `+${Fe(this._country)}${this._national}` : "";
3022
3078
  }
3023
3079
  set value(e) {
3024
- let t = String(e ?? "").trim(), n = Be(t);
3080
+ let t = String(e ?? "").trim(), n = Ue(t);
3025
3081
  if (n) this._country = n.country, this._national = n.national.replace(/[^0-9]/g, "");
3026
3082
  else if (t.startsWith("+")) {
3027
- let e = t.replace(/[^0-9]/g, ""), n = String(Me(this._country));
3083
+ let e = t.replace(/[^0-9]/g, ""), n = String(Fe(this._country));
3028
3084
  n && e.startsWith(n) && (e = e.slice(n.length)), this._national = e;
3029
3085
  } else this._national = t.replace(/[^0-9]/g, "");
3030
3086
  n && this.getAttribute("country") !== this._country ? this.setAttribute("country", this._country) : this._rendered && this.render(), this._committedValue = this.value, this._syncMirror();
@@ -3040,25 +3096,25 @@ var Ve = class extends HTMLElement {
3040
3096
  }
3041
3097
  render() {
3042
3098
  this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || ""), this._country = this.getAttribute("country") || this._country;
3043
- let e = this.getAttribute("placeholder") || Le(this._country) || "Enter phone number";
3099
+ let e = this.getAttribute("placeholder") || Be(this._country) || "Enter phone number";
3044
3100
  this.id ||= `wui-phone-${Math.random().toString(36).slice(2, 9)}`;
3045
3101
  let t = `${this.id}-listbox`;
3046
3102
  this._listboxId = t;
3047
- let n = je.map(([e, n, r], i) => `<button type="button" role="option" id="${He(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${Ne(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
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("");
3048
3104
  this.innerHTML = `
3049
3105
  <div class="phone-input-wrap">
3050
3106
  <div class="phone-country-adornment">
3051
- <button type="button" class="country-toggle" aria-haspopup="listbox" aria-expanded="false" aria-controls="${He(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3052
- <span class="${Ne(this._country)}" data-flag aria-hidden="true"></span>
3107
+ <button type="button" class="country-toggle" 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>
3053
3109
  <i class="bi bi-chevron-down phone-chevron" aria-hidden="true"></i>
3054
- <span class="phone-dial" data-dial>+${Me(this._country)}</span>
3110
+ <span class="phone-dial" data-dial>+${Fe(this._country)}</span>
3055
3111
  </button>
3056
- <div class="country-dropdown-menu" role="listbox" id="${He(t)}" tabindex="-1" hidden>
3057
- <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="${He(t)}" aria-autocomplete="list" /></div>
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>
3058
3114
  <div class="country-list-scroll">${n}<div class="country-empty" hidden>No countries found</div></div>
3059
3115
  </div>
3060
3116
  </div>
3061
- <input type="tel" class="input" placeholder="${He(e)}" value="${He(Ie(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${He(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${He(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
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" : ""} />
3062
3118
  </div>
3063
3119
  <div class="field-error" data-phone-error hidden></div>`, this._rendered = !0, W(this, this.value), this._wire();
3064
3120
  }
@@ -3072,7 +3128,7 @@ var Ve = class extends HTMLElement {
3072
3128
  this._teardown();
3073
3129
  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]");
3074
3130
  if (!e || !n) return;
3075
- let l = () => !n.hidden, u = () => ce(t || e, n), d = (e) => {
3131
+ let l = () => !n.hidden, u = () => H(t || e, n), d = (e) => {
3076
3132
  let t = this._visibleItems();
3077
3133
  this._active = e;
3078
3134
  for (let e of this._itemEls()) e.classList.remove("is-active");
@@ -3089,12 +3145,12 @@ var Ve = class extends HTMLElement {
3089
3145
  }
3090
3146
  a && (a.hidden = n > 0);
3091
3147
  }, h = (e) => {
3092
- this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), s && (s.className = Ne(e)), c && (c.textContent = `+${Me(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)}`);
3093
3149
  for (let t of this._itemEls()) {
3094
3150
  let n = t.dataset.iso === e;
3095
3151
  t.classList.toggle("selected", n), t.setAttribute("aria-selected", String(n));
3096
3152
  }
3097
- !this.getAttribute("placeholder") && o && (o.placeholder = Le(e) || "Enter phone number"), o && this._national && (o.value = Ie(e, this._national)), p(), this._syncMirror(), this._emitChange(), o?.focus();
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();
3098
3154
  }, g = (t) => {
3099
3155
  let n = this._visibleItems();
3100
3156
  if (t.key === "ArrowDown") {
@@ -3128,7 +3184,7 @@ var Ve = class extends HTMLElement {
3128
3184
  let _ = this.querySelector("[data-phone-error]"), v = (e) => {
3129
3185
  if (o.classList.toggle("is-invalid", e), e ? o.setAttribute("aria-invalid", "true") : o.removeAttribute("aria-invalid"), _) {
3130
3186
  if (e) {
3131
- let e = Le(this._country);
3187
+ let e = Be(this._country);
3132
3188
  _.textContent = e ? `Enter a valid phone number, e.g. ${e}` : "Enter a valid phone number";
3133
3189
  }
3134
3190
  _.hidden = !e;
@@ -3136,26 +3192,26 @@ var Ve = class extends HTMLElement {
3136
3192
  };
3137
3193
  o.addEventListener("input", (e) => {
3138
3194
  e.stopPropagation();
3139
- let t = o.value.replace(/[^0-9]/g, ""), n = ze(this._country);
3195
+ let t = o.value.replace(/[^0-9]/g, ""), n = He(this._country);
3140
3196
  n && t.length > n && (t = t.slice(0, n)), this._national = t;
3141
- let r = Ie(this._country, this._national);
3142
- o.value !== r && (o.value = r), this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national || Re(this.value) === !0) && v(!1);
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);
3143
3199
  }), o.addEventListener("change", (e) => e.stopPropagation()), o.addEventListener("blur", () => {
3144
- v(this._national.length > 0 && Re(this.value) === !1), this.value !== this._committedValue && this._emitChange();
3200
+ v(this._national.length > 0 && Ve(this.value) === !1), this.value !== this._committedValue && this._emitChange();
3145
3201
  }), o.addEventListener("paste", (e) => {
3146
- let t = Be(e.clipboardData?.getData("text"));
3147
- t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value = Ie(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
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());
3148
3204
  }), this._bindGlobal = () => {
3149
3205
  this._teardownGlobals?.(), this._onDocClick = (e) => {
3150
3206
  l() && !this.contains(e.target) && p();
3151
- }, document.addEventListener("click", this._onDocClick), le(this, () => {
3207
+ }, document.addEventListener("click", this._onDocClick), ue(this, () => {
3152
3208
  l() && u();
3153
3209
  });
3154
3210
  }, this._teardownGlobals = () => {
3155
3211
  this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), U(this);
3156
- }, this._bindGlobal(), Fe().then((e) => {
3157
- if (!(!e || !o.isConnected) && (this._national && (o.value = Ie(this._country, this._national)), !this.getAttribute("placeholder"))) {
3158
- let e = Le(this._country);
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);
3159
3215
  e && (o.placeholder = e);
3160
3216
  }
3161
3217
  }), this._syncMirror();
@@ -3166,7 +3222,7 @@ var Ve = class extends HTMLElement {
3166
3222
  disconnectedCallback() {
3167
3223
  this._teardown();
3168
3224
  }
3169
- }, He = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ue = class extends HTMLElement {
3225
+ }, Ge = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ke = class extends HTMLElement {
3170
3226
  static formAssociated = !0;
3171
3227
  static get observedAttributes() {
3172
3228
  return [
@@ -3231,7 +3287,7 @@ var Ve = class extends HTMLElement {
3231
3287
  value: e.getAttribute("value") ?? e.textContent.trim(),
3232
3288
  label: e.innerHTML,
3233
3289
  icon: e.getAttribute("icon") || void 0,
3234
- [G]: !0,
3290
+ [fe]: !0,
3235
3291
  selected: e.hasAttribute("selected")
3236
3292
  })));
3237
3293
  }
@@ -3246,19 +3302,19 @@ var Ve = class extends HTMLElement {
3246
3302
  this._listboxId = u;
3247
3303
  let d = e.map((e, t) => {
3248
3304
  let n = String(e.value) === String(this._value);
3249
- return `<button type="button" role="option" id="${We(`${u}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${We(e.value)}" aria-selected="${n}">${pe(e)}</button>`;
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>`;
3250
3306
  }).join("");
3251
3307
  this.innerHTML = `
3252
3308
  <div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}${i}">
3253
- <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${We(u)}" aria-label="${We(this._accessibleName())}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3254
- ${a ? `<i class="bi bi-${We(a)} search-select-icon" aria-hidden="true"></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>` : ""}
3255
3311
  ${o ? `<span class="search-select-prefix">${K(o)}</span>` : ""}
3256
- <span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? pe(l) : K(s)}</span>
3312
+ <span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? me(l) : K(s)}</span>
3257
3313
  ${n ? "<span class=\"search-select-reset\" role=\"button\" aria-label=\"Clear selection\" hidden><i class=\"bi bi-x-lg\" aria-hidden=\"true\"></i></span>" : ""}
3258
3314
  <i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
3259
3315
  </button>
3260
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${We(u)}" tabindex="-1" hidden>
3261
- ${t ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${We(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>` : ""}
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>` : ""}
3262
3318
  <div class="search-select-options">${d}<div class="search-select-empty" hidden>No matches</div></div>
3263
3319
  </div>
3264
3320
  </div>`, this._rendered = !0, W(this, this._value), this._wire(), this._syncReset();
@@ -3287,7 +3343,7 @@ var Ve = class extends HTMLElement {
3287
3343
  let t = e.dataset.value === String(this._value);
3288
3344
  e.classList.toggle("selected", t), e.setAttribute("aria-selected", String(t));
3289
3345
  }
3290
- e && (e.innerHTML = t ? pe(t) : K(this.getAttribute("placeholder") || "Select..."), e.classList.toggle("search-select-placeholder", !t));
3346
+ e && (e.innerHTML = t ? me(t) : K(this.getAttribute("placeholder") || "Select..."), e.classList.toggle("search-select-placeholder", !t));
3291
3347
  }
3292
3348
  _syncReset() {
3293
3349
  let { reset: e } = this._refs();
@@ -3300,8 +3356,8 @@ var Ve = class extends HTMLElement {
3300
3356
  let t = () => {
3301
3357
  if (this.hasAttribute("compact")) {
3302
3358
  let t = e.control.getBoundingClientRect();
3303
- e.menu.style.width = "max-content", e.menu.style.minWidth = `${t.width}px`, e.menu.style.maxWidth = "280px", ce(e.control, e.menu);
3304
- } else ce(e.control, e.menu, { matchWidth: !0 });
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 });
3305
3361
  }, n = (t) => {
3306
3362
  let n = this._visible();
3307
3363
  this._active = t;
@@ -3321,7 +3377,7 @@ var Ve = class extends HTMLElement {
3321
3377
  }, s = (t) => {
3322
3378
  this.value = t.dataset.value, this.dispatchEvent(new Event("change", { bubbles: !0 })), o(), e.control.focus();
3323
3379
  };
3324
- this._navHandler = de({
3380
+ this._navHandler = G({
3325
3381
  getVisibleOptions: () => this._visible(),
3326
3382
  getActive: () => this._active,
3327
3383
  setActive: (e) => n(e),
@@ -3352,7 +3408,7 @@ var Ve = class extends HTMLElement {
3352
3408
  }), e.menu.addEventListener("keydown", this._navHandler.handler), this._bindGlobal = () => {
3353
3409
  this._teardown(), this._onDocClick = (e) => {
3354
3410
  i() && !this.contains(e.target) && o();
3355
- }, document.addEventListener("click", this._onDocClick), le(this, () => {
3411
+ }, document.addEventListener("click", this._onDocClick), ue(this, () => {
3356
3412
  i() && t();
3357
3413
  });
3358
3414
  }, this._bindGlobal();
@@ -3363,7 +3419,7 @@ var Ve = class extends HTMLElement {
3363
3419
  disconnectedCallback() {
3364
3420
  this._teardown();
3365
3421
  }
3366
- }, We = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ge = class extends HTMLElement {
3422
+ }, qe = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Je = class extends HTMLElement {
3367
3423
  static formAssociated = !0;
3368
3424
  static get observedAttributes() {
3369
3425
  return [
@@ -3403,19 +3459,19 @@ var Ve = class extends HTMLElement {
3403
3459
  return this._value;
3404
3460
  }
3405
3461
  set value(e) {
3406
- this._value = this._snapToStep(this._clamp(Ke(e, this._value))), this._syncValue(), this._syncMirrors();
3462
+ this._value = this._snapToStep(this._clamp(Ye(e, this._value))), this._syncValue(), this._syncMirrors();
3407
3463
  }
3408
3464
  get start() {
3409
3465
  return this._start;
3410
3466
  }
3411
3467
  set start(e) {
3412
- this._start = Math.min(this._snapToStep(this._clamp(Ke(e, this._start))), this._end), this._syncValue(), this._syncMirrors();
3468
+ this._start = Math.min(this._snapToStep(this._clamp(Ye(e, this._start))), this._end), this._syncValue(), this._syncMirrors();
3413
3469
  }
3414
3470
  get end() {
3415
3471
  return this._end;
3416
3472
  }
3417
3473
  set end(e) {
3418
- this._end = Math.max(this._snapToStep(this._clamp(Ke(e, this._end))), this._start), this._syncValue(), this._syncMirrors();
3474
+ this._end = Math.max(this._snapToStep(this._clamp(Ye(e, this._end))), this._start), this._syncValue(), this._syncMirrors();
3419
3475
  }
3420
3476
  attributeChangedCallback(e, t, n) {
3421
3477
  if (e === "value" || e === "start" || e === "end" || e === "min" || e === "max" || e === "step") {
@@ -3428,19 +3484,19 @@ var Ve = class extends HTMLElement {
3428
3484
  this._isRange() ? this._resetRange() : this._resetSingle();
3429
3485
  }
3430
3486
  _updateFromAttribute(e) {
3431
- e === "value" ? this._value = this._snapToStep(this._clamp(Ke(this.getAttribute("value"), this._value))) : e === "start" ? this._start = this._snapToStep(this._clamp(Ke(this.getAttribute("start"), this._start))) : e === "end" && (this._end = this._snapToStep(this._clamp(Ke(this.getAttribute("end"), this._end))));
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))));
3432
3488
  }
3433
3489
  _isRange() {
3434
3490
  return this.hasAttribute("range");
3435
3491
  }
3436
3492
  _min() {
3437
- return Ke(this.getAttribute("min"), 0);
3493
+ return Ye(this.getAttribute("min"), 0);
3438
3494
  }
3439
3495
  _max() {
3440
- return Ke(this.getAttribute("max"), 100);
3496
+ return Ye(this.getAttribute("max"), 100);
3441
3497
  }
3442
3498
  _step() {
3443
- return Ke(this.getAttribute("step"), 1);
3499
+ return Ye(this.getAttribute("step"), 1);
3444
3500
  }
3445
3501
  _clamp(e) {
3446
3502
  return Math.max(this._min(), Math.min(e, this._max()));
@@ -3505,7 +3561,7 @@ var Ve = class extends HTMLElement {
3505
3561
  aria-valuenow="${this._value}"
3506
3562
  aria-valuetext="${this._formatValue(this._value)}"
3507
3563
  ${a ? "disabled" : ""}
3508
- aria-label="${qe(this.getAttribute("aria-label") || "Value")}"
3564
+ aria-label="${Xe(this.getAttribute("aria-label") || "Value")}"
3509
3565
  ></button>
3510
3566
  `}
3511
3567
  ${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>` : ""}
@@ -3605,10 +3661,10 @@ var Ve = class extends HTMLElement {
3605
3661
  disconnectedCallback() {
3606
3662
  this._teardown();
3607
3663
  }
3608
- }, Ke = (e, t) => {
3664
+ }, Ye = (e, t) => {
3609
3665
  let n = Number.parseFloat(e);
3610
3666
  return Number.isFinite(n) ? n : t;
3611
- }, qe = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Je = class extends HTMLElement {
3667
+ }, Xe = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ze = class extends HTMLElement {
3612
3668
  static formAssociated = !0;
3613
3669
  _accessibleName() {
3614
3670
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Add tags";
@@ -3672,7 +3728,7 @@ var Ve = class extends HTMLElement {
3672
3728
  W(this, this._values.join(",")), this.innerHTML = `
3673
3729
  <div class="search-select${t}">
3674
3730
  <div class="input search-select-control search-select-multi"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
3675
- <input type="text" class="ms-input" data-input aria-label="${Xe(this._accessibleName())}" placeholder="${Xe(this.getAttribute("placeholder") || "Add…")}" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""}/>
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" : ""}/>
3676
3732
  <div class="ms-chips" data-chips></div>
3677
3733
  </div>
3678
3734
  </div>`, this._rendered = !0, W(this, this._values.join(",")), this._renderControl(), this._wire();
@@ -3684,7 +3740,7 @@ var Ve = class extends HTMLElement {
3684
3740
  e.innerHTML = "";
3685
3741
  return;
3686
3742
  }
3687
- e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${Ye(e)}</span><button type="button" class="chip-remove" data-remove="${Xe(e)}" aria-label="Remove ${Xe(e)}"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join("");
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("");
3688
3744
  }
3689
3745
  }
3690
3746
  _wire() {
@@ -3755,18 +3811,18 @@ var Ve = class extends HTMLElement {
3755
3811
  disconnectedCallback() {
3756
3812
  this._teardown();
3757
3813
  }
3758
- }, Ye = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), Xe = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ze = (e) => String(e).padStart(2, "0"), Qe = (e, t) => `${Ze(e)}:${Ze(t)}`, $e = (e) => {
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) => {
3759
3815
  let t = /^(\d{2}):(\d{2})$/.exec(e || "");
3760
3816
  return t ? {
3761
3817
  h: +t[1],
3762
3818
  m: +t[2]
3763
3819
  } : null;
3764
- }, et = (e, t = "24") => {
3820
+ }, rt = (e, t = "24") => {
3765
3821
  if (!e) return "";
3766
- if (t === "24") return Qe(e.h, e.m);
3822
+ if (t === "24") return tt(e.h, e.m);
3767
3823
  let n = e.h % 12 || 12, r = e.h >= 12 ? "PM" : "AM";
3768
- return `${n}:${Ze(e.m)} ${r}`;
3769
- }, tt = class extends HTMLElement {
3824
+ return `${n}:${et(e.m)} ${r}`;
3825
+ }, it = class extends HTMLElement {
3770
3826
  static formAssociated = !0;
3771
3827
  static get observedAttributes() {
3772
3828
  return [
@@ -3813,11 +3869,11 @@ var Ve = class extends HTMLElement {
3813
3869
  }
3814
3870
  render() {
3815
3871
  this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || "", this._value = this._defaultValue || this._value);
3816
- let e = this.getAttribute("placeholder") || "Select time", t = $e(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");
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");
3817
3873
  this.innerHTML = `
3818
3874
  <div class="timepicker">
3819
3875
  <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)}"` : ""}>
3820
- <span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ? et(t, n) : K(e)}</span>
3876
+ <span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ? rt(t, n) : K(e)}</span>
3821
3877
  <i class="bi bi-clock" aria-hidden="true"></i>
3822
3878
  </button>
3823
3879
  <div class="timepicker-pop" role="listbox" tabindex="-1" hidden></div>
@@ -3829,14 +3885,14 @@ var Ve = class extends HTMLElement {
3829
3885
  _syncTrigger() {
3830
3886
  let e = this.querySelector(".timepicker-trigger"), t = this.querySelector("[data-trigger-label]");
3831
3887
  if (!t) return;
3832
- let n = $e(this._value), r = this.getAttribute("format") || "24";
3833
- t.textContent = n ? et(n, r) : this.getAttribute("placeholder") || "Select time", t.classList.toggle("timepicker-placeholder", !n), e?.classList.toggle("has-value", !!n);
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);
3834
3890
  }
3835
3891
  _buildTimes() {
3836
- let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r = $e(t) || {
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) || {
3837
3893
  h: 0,
3838
3894
  m: 0
3839
- }, i = $e(n) || {
3895
+ }, i = nt(n) || {
3840
3896
  h: 23,
3841
3897
  m: 59
3842
3898
  }, a = [], o = r.h, s = r.m;
@@ -3849,10 +3905,10 @@ var Ve = class extends HTMLElement {
3849
3905
  _renderOptions() {
3850
3906
  let e = this.querySelector(".timepicker-pop");
3851
3907
  if (!e) return;
3852
- let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = $e(this._value), i = this._focus, a = "";
3908
+ let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = nt(this._value), i = this._focus, a = "";
3853
3909
  for (let e = 0; e < n.length; e++) {
3854
- let o = n[e], s = Qe(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
3855
- a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${et(o, t)}</button>`;
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>`;
3856
3912
  }
3857
3913
  e.innerHTML = a, this._focusActive();
3858
3914
  }
@@ -3861,7 +3917,7 @@ var Ve = class extends HTMLElement {
3861
3917
  t && !e.hidden && t.focus();
3862
3918
  }
3863
3919
  _position(e, t) {
3864
- ce(e, t);
3920
+ H(e, t);
3865
3921
  }
3866
3922
  _onKey(e) {
3867
3923
  let t = [...this.querySelector(".timepicker-pop").querySelectorAll(".timepicker-option")];
@@ -3939,7 +3995,7 @@ var Ve = class extends HTMLElement {
3939
3995
  this._popClick = !1, n() && !t && !this.contains(e.target) && this._close();
3940
3996
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
3941
3997
  n() && e.key === "Escape" && this._close();
3942
- }, document.addEventListener("keydown", this._onDocKey), le(this, () => {
3998
+ }, document.addEventListener("keydown", this._onDocKey), ue(this, () => {
3943
3999
  n() && this._position(e, t);
3944
4000
  });
3945
4001
  }, this._bindGlobal(), this._syncFormValue();
@@ -3950,7 +4006,7 @@ var Ve = class extends HTMLElement {
3950
4006
  disconnectedCallback() {
3951
4007
  this._teardown();
3952
4008
  }
3953
- }, nt = "wui-wizard-step", rt = class extends HTMLElement {
4009
+ }, at = "wui-wizard-step", ot = class extends HTMLElement {
3954
4010
  static get observedAttributes() {
3955
4011
  return [
3956
4012
  "active",
@@ -3959,6 +4015,7 @@ var Ve = class extends HTMLElement {
3959
4015
  "non-linear",
3960
4016
  "hide-stepper",
3961
4017
  "disabled",
4018
+ "skippable",
3962
4019
  "label",
3963
4020
  "back-label",
3964
4021
  "next-label",
@@ -3983,7 +4040,7 @@ var Ve = class extends HTMLElement {
3983
4040
  this._beforeNext = typeof e == "function" ? e : null;
3984
4041
  }
3985
4042
  get _steps() {
3986
- return [...this.querySelectorAll(`:scope > ${nt}`)];
4043
+ return [...this.querySelectorAll(`:scope > ${at}`)];
3987
4044
  }
3988
4045
  refresh() {
3989
4046
  this._rendered && this._renderChrome();
@@ -4041,14 +4098,14 @@ var Ve = class extends HTMLElement {
4041
4098
  let i = this.hasAttribute("non-linear");
4042
4099
  return e.map((e, r) => {
4043
4100
  let a = this._stepStatus(e, r), o = e.getAttribute("label") || "", s = e.getAttribute("description") || "", c = e.getAttribute("icon") || "", l = r + 1, u;
4044
- 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-${at(c)}" aria-hidden="true"></i>` : String(l);
4045
- let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${it(s)}</span>` : "", h;
4046
- return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${it(o)}</span>${m}</span>` : n ? `<span class="step-circle">${u}</span><span class="step-index">Step ${l}</span><span class="step-label">${it(o)}</span>${m}` : `<span class="step-circle">${u}</span><span class="step-label">${it(o)}</span>${m}`, p ? `<button type="button" class="${d}" data-step="${r}"${f}>${h}</button>` : `<div class="${d}"${f}>${h}</div>`;
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>`;
4047
4104
  }).join("");
4048
4105
  }
4049
4106
  _footerHtml(e) {
4050
- let t = this._active, n = e.length - 1, r = this.hasAttribute("disabled") ? " disabled" : "", i = e[t]?.hasAttribute("optional"), a = this.getAttribute("back-label") || "Back", o = this.getAttribute("next-label") || "Next", s = this.getAttribute("skip-label") || "Skip", c = this.getAttribute("finish-label") || "Finish";
4051
- return `${t > 0 ? `<button type="button" class="btn btn-ghost" data-nav="back"${r}>${it(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${it(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${it(o)}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${it(c)}</button>`}</span>`;
4107
+ 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>`;
4052
4109
  }
4053
4110
  _wire() {
4054
4111
  this._teardown(), this._onHeaderClick = (e) => {
@@ -4094,7 +4151,7 @@ var Ve = class extends HTMLElement {
4094
4151
  }
4095
4152
  _skip() {
4096
4153
  let e = this._active, t = this._steps;
4097
- if (t[e]?.hasAttribute("optional")) {
4154
+ if (!(!t[e]?.hasAttribute("optional") && !this.hasAttribute("skippable"))) {
4098
4155
  if (this._invalid.delete(e), this._skipped.add(e), this.dispatchEvent(new CustomEvent("wui-wizard:skip", { detail: { index: e } })), e >= t.length - 1) return this._finish();
4099
4156
  this._go(e + 1, "skip");
4100
4157
  }
@@ -4116,7 +4173,7 @@ var Ve = class extends HTMLElement {
4116
4173
  _reflectActive(e) {
4117
4174
  this._reflecting = !0, this.setAttribute("active", String(e)), this._reflecting = !1;
4118
4175
  }
4119
- }, it = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), at = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), ot = class extends HTMLElement {
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 {
4120
4177
  static get observedAttributes() {
4121
4178
  return [
4122
4179
  "label",
@@ -4130,14 +4187,14 @@ var Ve = class extends HTMLElement {
4130
4187
  let e = this.closest("wui-wizard");
4131
4188
  e && typeof e.refresh == "function" && e.refresh();
4132
4189
  }
4133
- }, st = "image/png,image/jpeg,image/webp", ct = {
4190
+ }, ut = "image/png,image/jpeg,image/webp", dt = {
4134
4191
  "image/png": [".png"],
4135
4192
  "image/jpeg": [".jpg", ".jpeg"],
4136
4193
  "image/webp": [".webp"],
4137
4194
  "image/gif": [".gif"],
4138
4195
  "image/svg+xml": [".svg"],
4139
4196
  "application/pdf": [".pdf"]
4140
- }, lt = {
4197
+ }, ft = {
4141
4198
  "image/png": "PNG",
4142
4199
  "image/jpeg": "JPG",
4143
4200
  "image/webp": "WEBP",
@@ -4151,7 +4208,7 @@ var Ve = class extends HTMLElement {
4151
4208
  ".gif": "GIF",
4152
4209
  ".svg": "SVG",
4153
4210
  ".pdf": "PDF"
4154
- }, ut = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), dt = [
4211
+ }, pt = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), mt = [
4155
4212
  ".png",
4156
4213
  ".jpg",
4157
4214
  ".jpeg",
@@ -4162,46 +4219,46 @@ var Ve = class extends HTMLElement {
4162
4219
  ".avif",
4163
4220
  ".heic"
4164
4221
  ];
4165
- function ft(e) {
4222
+ function ht(e) {
4166
4223
  if (!e) return !1;
4167
4224
  let t = typeof e == "object" && e.type ? String(e.type).toLowerCase() : "";
4168
4225
  if (t) return t.startsWith("image/");
4169
4226
  let n = typeof e == "string" ? e : e.name || e.url || "", r = String(n).toLowerCase();
4170
- return dt.some((e) => r.endsWith(e));
4227
+ return mt.some((e) => r.endsWith(e));
4171
4228
  }
4172
- function pt(e) {
4173
- let t = ut(e);
4174
- return t.length ? t.every((e) => e.startsWith(".") ? dt.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
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;
4175
4232
  }
4176
- function mt(e) {
4233
+ function _t(e) {
4177
4234
  let t = [];
4178
- for (let n of ut(e)) {
4179
- let e = lt[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
4235
+ for (let n of pt(e)) {
4236
+ let e = ft[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
4180
4237
  t.includes(e) || t.push(e);
4181
4238
  }
4182
4239
  return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
4183
4240
  }
4184
- function ht(e, t) {
4185
- let n = ut(t);
4241
+ function vt(e, t) {
4242
+ let n = pt(t);
4186
4243
  if (!n.length) return !0;
4187
4244
  let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
4188
- return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (ct[e] || []).some((e) => i.endsWith(e)));
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)));
4189
4246
  }
4190
- function gt(e, t = {}) {
4247
+ function yt(e, t = {}) {
4191
4248
  if (!e) return null;
4192
- let n = t.accept === void 0 ? st : t.accept, r = t.maxSizeMb || 5;
4193
- return ht(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${mt(n)} file.`;
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.`;
4194
4251
  }
4195
4252
  var X = (e, t) => {
4196
4253
  typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
4197
4254
  };
4198
- function _t() {
4199
- X("wui-select", Ue), X("wui-phone", Ve), X("wui-datepicker", Ce), X("wui-date-range", we), X("wui-slider", Ge), X("wui-timepicker", tt), X("wui-autocomplete", me), X("wui-multiselect", Te), X("wui-taginput", Je), X("wui-otp", Ae), X("wui-status-icon", se), X("wui-wizard-step", ot), X("wui-wizard", rt);
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);
4200
4257
  }
4201
- _t();
4258
+ bt();
4202
4259
  //#endregion
4203
4260
  //#region src/components/AppPopover.jsx
4204
- function vt({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
4261
+ function xt({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
4205
4262
  j("AppPopover", l);
4206
4263
  let u = s(), [f, h] = d(!1), g = (e) => {
4207
4264
  h(e), o?.(e);
@@ -4232,13 +4289,13 @@ function vt({ trigger: e, children: t, title: r, placement: i = "bottom", trigge
4232
4289
  }
4233
4290
  //#endregion
4234
4291
  //#region src/components/AppInfoTip.jsx
4235
- function yt({ label: e, children: t, placement: n = "auto", className: r = "", ...i }) {
4292
+ function St({ label: e, children: t, placement: n = "auto", className: r = "", ...i }) {
4236
4293
  j("AppInfoTip", i);
4237
4294
  let [a, o] = d(!1), s = !!e;
4238
4295
  return !s && !t ? null : /* @__PURE__ */ p("span", {
4239
4296
  className: `infotip${r ? ` ${r}` : ""}`,
4240
4297
  ...i,
4241
- children: /* @__PURE__ */ p(vt, {
4298
+ children: /* @__PURE__ */ p(xt, {
4242
4299
  trigger: /* @__PURE__ */ p("button", {
4243
4300
  type: "button",
4244
4301
  className: "infotip-btn",
@@ -4268,8 +4325,8 @@ function Z() {
4268
4325
  }
4269
4326
  //#endregion
4270
4327
  //#region src/components/useWuiControl.js
4271
- function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: a = bt, syncDeps: s = [] } = {}) {
4272
- let c = u(null), l = r ?? xt, d = i ?? St, f = (a || bt).join("\0"), p = (t) => {
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) => {
4273
4330
  c.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
4274
4331
  };
4275
4332
  return o(() => {
@@ -4282,7 +4339,7 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
4282
4339
  ]), o(() => {
4283
4340
  let e = c.current;
4284
4341
  if (!e) return;
4285
- let t = f ? f.split("\0") : bt, r, i = () => {
4342
+ let t = f ? f.split("\0") : Ct, r, i = () => {
4286
4343
  let t = l(e);
4287
4344
  Object.is(t, r) || (r = t, n?.(t));
4288
4345
  };
@@ -4299,39 +4356,39 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
4299
4356
  innerRef: c
4300
4357
  };
4301
4358
  }
4302
- var bt = ["change"];
4303
- function xt(e) {
4359
+ var Ct = ["change"];
4360
+ function wt(e) {
4304
4361
  return e.value;
4305
4362
  }
4306
- function St(e, t) {
4363
+ function Tt(e, t) {
4307
4364
  let n = t ?? "";
4308
4365
  String(e.value ?? "") !== String(n) && (e.value = n);
4309
4366
  }
4310
- function Ct(e, t) {
4367
+ function Et(e, t) {
4311
4368
  let n = e || [], r = t || [];
4312
4369
  return n.length === r.length && n.every((e, t) => e?.value === r[t]?.value && e?.label === r[t]?.label);
4313
4370
  }
4314
- function wt(e) {
4371
+ function Dt(e) {
4315
4372
  return e.values;
4316
4373
  }
4317
- function Tt(e, t) {
4374
+ function Ot(e, t) {
4318
4375
  let n = t || [], r = e.values || [];
4319
4376
  (n.length !== r.length || !n.every((e, t) => e === r[t])) && (e.values = n);
4320
4377
  }
4321
- function Et(e) {
4378
+ function kt(e) {
4322
4379
  return {
4323
4380
  start: e.start,
4324
4381
  end: e.end
4325
4382
  };
4326
4383
  }
4327
- function Dt(e, t) {
4384
+ function At(e, t) {
4328
4385
  if (t === void 0) return;
4329
4386
  let n = Number.parseFloat(t);
4330
4387
  Number.isFinite(n) && e.value !== n && (e.value = n);
4331
4388
  }
4332
4389
  //#endregion
4333
4390
  //#region src/components/AppAutocomplete.jsx
4334
- var Ot = 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) {
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) {
4335
4392
  j("AppAutocomplete", S);
4336
4393
  let w = typeof r == "function", T = s(), E = f || T, { setRef: D, innerRef: O } = Q({
4337
4394
  ref: C,
@@ -4380,7 +4437,7 @@ var Ot = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4380
4437
  children: [
4381
4438
  h,
4382
4439
  v && /* @__PURE__ */ p(Z, {}),
4383
- y && /* @__PURE__ */ p(yt, {
4440
+ y && /* @__PURE__ */ p(St, {
4384
4441
  label: b,
4385
4442
  children: y
4386
4443
  })
@@ -4414,14 +4471,14 @@ var Ot = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4414
4471
  }) : null
4415
4472
  ]
4416
4473
  });
4417
- }), kt = /* @__PURE__ */ new Set([
4474
+ }), Mt = /* @__PURE__ */ new Set([
4418
4475
  "xs",
4419
4476
  "sm",
4420
4477
  "md",
4421
4478
  "lg",
4422
4479
  "xl",
4423
4480
  "2xl"
4424
- ]), At = {
4481
+ ]), Nt = {
4425
4482
  xs: 20,
4426
4483
  sm: 24,
4427
4484
  md: 32,
@@ -4429,30 +4486,30 @@ var Ot = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4429
4486
  xl: 64,
4430
4487
  "2xl": 96
4431
4488
  };
4432
- function jt(e) {
4489
+ function Pt(e) {
4433
4490
  let t = (e || "").trim();
4434
4491
  if (!t) return "?";
4435
4492
  let n = t.split(/\s+/).filter(Boolean);
4436
4493
  return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
4437
4494
  }
4438
- function Mt(e) {
4495
+ function Ft(e) {
4439
4496
  let t = e || "", n = 0;
4440
4497
  for (let e = 0; e < t.length; e += 1) n = Math.imul(n, 31) + t.charCodeAt(e) >>> 0;
4441
4498
  return n % 360;
4442
4499
  }
4443
- function Nt(e) {
4500
+ function It(e) {
4444
4501
  if (typeof e == "number") return e;
4445
- if (At[e] != null) return At[e];
4502
+ if (Nt[e] != null) return Nt[e];
4446
4503
  let t = Number.parseInt(e, 10);
4447
4504
  return Number.isNaN(t) ? 32 : t;
4448
4505
  }
4449
- function Pt({ 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 }) {
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 }) {
4450
4507
  j("AppAvatar", y);
4451
4508
  let { style: b, ...x } = y, [S, C] = d(!1);
4452
4509
  o(() => {
4453
4510
  C(!1);
4454
4511
  }, [t]);
4455
- let w = typeof n == "string" && kt.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 = [
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 = [
4456
4513
  "avatar",
4457
4514
  w && n !== "md" ? `avatar-${n}` : "",
4458
4515
  r === "circle" ? "" : `avatar-${r}`,
@@ -4461,16 +4518,16 @@ function Pt({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
4461
4518
  E ? "avatar-clickable" : "",
4462
4519
  v
4463
4520
  ].filter(Boolean).join(" "), k = {};
4464
- T && (k["--avatar-size"] = T), i === "auto" && (k["--avatar-hue"] = Mt(e));
4521
+ T && (k["--avatar-size"] = T), i === "auto" && (k["--avatar-hue"] = Ft(e));
4465
4522
  let A = Object.keys(k).length || b ? {
4466
4523
  ...k,
4467
4524
  ...b
4468
4525
  } : void 0, M = /* @__PURE__ */ p("span", {
4469
4526
  className: "avatar-face",
4470
4527
  "aria-hidden": "true",
4471
- children: l == null ? jt(e) : /* @__PURE__ */ p(I, {
4528
+ children: l == null ? Pt(e) : /* @__PURE__ */ p(I, {
4472
4529
  name: l,
4473
- size: Math.round(Nt(n) * .55)
4530
+ size: Math.round(It(n) * .55)
4474
4531
  })
4475
4532
  }), N = /* @__PURE__ */ m(f, { children: [
4476
4533
  a !== "none" && /* @__PURE__ */ p("span", {
@@ -4532,7 +4589,7 @@ function Pt({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
4532
4589
  }
4533
4590
  //#endregion
4534
4591
  //#region src/components/AppAvatarGroup.jsx
4535
- var Ft = {
4592
+ var Rt = {
4536
4593
  xs: 20,
4537
4594
  sm: 24,
4538
4595
  md: 32,
@@ -4540,16 +4597,16 @@ var Ft = {
4540
4597
  xl: 64,
4541
4598
  "2xl": 96
4542
4599
  };
4543
- function It(e) {
4544
- return e == null ? null : typeof e == "number" ? `${e}px` : Ft[e] == null ? /^\d+$/.test(e) ? `${e}px` : e : `${Ft[e]}px`;
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`;
4545
4602
  }
4546
- function Lt({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
4603
+ function Bt({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
4547
4604
  j("AppAvatarGroup", a);
4548
4605
  let { style: o, ...s } = a, c = [
4549
4606
  "avatar-group",
4550
4607
  n === "normal" ? "" : `avatar-group-${n}`,
4551
4608
  i
4552
- ].filter(Boolean).join(" "), l = It(t), u = l ? {
4609
+ ].filter(Boolean).join(" "), l = zt(t), u = l ? {
4553
4610
  "--avatar-size": l,
4554
4611
  ...o
4555
4612
  } : o, d = typeof r == "string" ? Number.parseInt(r, 10) : r;
@@ -4567,15 +4624,15 @@ function Lt({ children: e, size: t, spacing: n = "normal", overflow: r, classNam
4567
4624
  }
4568
4625
  //#endregion
4569
4626
  //#region src/components/normalizeTone.js
4570
- var Rt = { warn: "warning" };
4571
- function zt(e) {
4572
- return e && (Rt[e] || e);
4627
+ var Vt = { warn: "warning" };
4628
+ function Ht(e) {
4629
+ return e && (Vt[e] || e);
4573
4630
  }
4574
4631
  //#endregion
4575
4632
  //#region src/components/AppBadge.jsx
4576
- function Bt({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4633
+ function Ut({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4577
4634
  j("AppBadge", i);
4578
- let a = zt(t);
4635
+ let a = Ht(t);
4579
4636
  return /* @__PURE__ */ p(g, {
4580
4637
  bg: !1,
4581
4638
  className: [
@@ -4589,18 +4646,18 @@ function Bt({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4589
4646
  }
4590
4647
  //#endregion
4591
4648
  //#region src/components/AppBanner.jsx
4592
- var Vt = [
4649
+ var Wt = [
4593
4650
  "info",
4594
4651
  "success",
4595
4652
  "warning",
4596
4653
  "danger",
4597
4654
  "neutral"
4598
4655
  ];
4599
- function Ht({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
4656
+ function Gt({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
4600
4657
  j("AppBanner", o);
4601
4658
  let [s, c] = d(!0);
4602
4659
  if (!s) return null;
4603
- let l = zt(e), u = Vt.includes(l) ? l : "info", f = () => {
4660
+ let l = Ht(e), u = Wt.includes(l) ? l : "info", f = () => {
4604
4661
  c(!1), i?.();
4605
4662
  };
4606
4663
  return /* @__PURE__ */ m("div", {
@@ -4631,7 +4688,7 @@ function Ht({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDis
4631
4688
  }
4632
4689
  //#endregion
4633
4690
  //#region src/components/AppBreadcrumbs.jsx
4634
- function Ut({ items: e = [], linkComponent: t, className: n = "", ...r }) {
4691
+ function Kt({ items: e = [], linkComponent: t, className: n = "", ...r }) {
4635
4692
  return j("AppBreadcrumbs", r), /* @__PURE__ */ p(_, {
4636
4693
  className: n || void 0,
4637
4694
  ...r,
@@ -4650,7 +4707,7 @@ function Ut({ items: e = [], linkComponent: t, className: n = "", ...r }) {
4650
4707
  }
4651
4708
  //#endregion
4652
4709
  //#region src/components/AppCallout.jsx
4653
- function Wt({ children: e, icon: t = "info", className: n = "", ...r }) {
4710
+ function qt({ children: e, icon: t = "info", className: n = "", ...r }) {
4654
4711
  return j("AppCallout", r), /* @__PURE__ */ m("div", {
4655
4712
  className: `info-callout${n ? ` ${n}` : ""}`,
4656
4713
  ...r,
@@ -4665,13 +4722,13 @@ function Wt({ children: e, icon: t = "info", className: n = "", ...r }) {
4665
4722
  }
4666
4723
  //#endregion
4667
4724
  //#region src/components/AppCard.jsx
4668
- var Gt = {
4725
+ var Jt = {
4669
4726
  xs: 320,
4670
4727
  sm: 420,
4671
4728
  md: 560,
4672
4729
  lg: 720
4673
4730
  };
4674
- function Kt({ 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 }) {
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 }) {
4675
4732
  j("AppCard", E);
4676
4733
  let { style: D, ...O } = E, k = C != null || w != null, A = [
4677
4734
  u && u !== "default" ? `card-${u}` : "",
@@ -4681,7 +4738,7 @@ function Kt({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
4681
4738
  g == null ? "" : "card-constrained",
4682
4739
  k ? "card-clickable" : "",
4683
4740
  _
4684
- ].filter(Boolean).join(" ") || void 0, M = g == null ? void 0 : Gt[g] == null ? typeof g == "number" ? `${g}px` : g : `${Gt[g]}px`, N = M ? {
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 ? {
4685
4742
  "--card-max-width": M,
4686
4743
  ...D
4687
4744
  } : D, P = {};
@@ -4752,7 +4809,7 @@ function Kt({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
4752
4809
  }
4753
4810
  //#endregion
4754
4811
  //#region src/lib/CheckField.jsx
4755
- var qt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", rest: o = {}, inputType: c, wrapperClass: l }, u) {
4812
+ var Xt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", rest: o = {}, inputType: c, wrapperClass: l }, u) {
4756
4813
  let d = s(), f = t || d;
4757
4814
  return /* @__PURE__ */ m("div", {
4758
4815
  className: `${l}${a ? ` ${a}` : ""}`,
@@ -4780,8 +4837,8 @@ var qt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
4780
4837
  }) : null
4781
4838
  ]
4782
4839
  });
4783
- }), Jt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
4784
- return j("AppCheckbox", o), /* @__PURE__ */ p(qt, {
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, {
4785
4842
  ref: s,
4786
4843
  label: e,
4787
4844
  id: t,
@@ -4796,9 +4853,9 @@ var qt = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
4796
4853
  });
4797
4854
  //#endregion
4798
4855
  //#region src/components/AppChip.jsx
4799
- function Yt({ 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 }) {
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 }) {
4800
4857
  j("AppChip", d);
4801
- let h = e ?? t, g = zt(n), _ = [
4858
+ let h = e ?? t, g = Ht(n), _ = [
4802
4859
  "chip",
4803
4860
  g && g !== "neutral" ? g : "",
4804
4861
  r === "sm" ? "chip-sm" : "",
@@ -4849,7 +4906,7 @@ function Yt({ label: e, children: t, tone: n = "neutral", size: r = "md", leadin
4849
4906
  }
4850
4907
  //#endregion
4851
4908
  //#region src/components/AppChoiceCard.jsx
4852
- function Xt({ 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 }) {
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 }) {
4853
4910
  return j("AppChoiceCard", y), /* @__PURE__ */ m("label", {
4854
4911
  className: `struct-card${c ? " struct-card-img-card" : ""}${r ? " checked" : ""}${v ? ` ${v}` : ""}`,
4855
4912
  ...y,
@@ -4898,7 +4955,7 @@ function Xt({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
4898
4955
  }
4899
4956
  //#endregion
4900
4957
  //#region src/components/AppChoiceChip.jsx
4901
- function Zt({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, className: c = "", ...l }) {
4958
+ function en({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, className: c = "", ...l }) {
4902
4959
  return j("AppChoiceChip", l), /* @__PURE__ */ m("label", {
4903
4960
  className: `choice-chip${i ? " checked" : ""}${c ? ` ${c}` : ""}`,
4904
4961
  ...l,
@@ -4920,7 +4977,7 @@ function Zt({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChang
4920
4977
  }
4921
4978
  //#endregion
4922
4979
  //#region src/components/AppColorField.jsx
4923
- function Qt({ 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 }) {
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 }) {
4924
4981
  j("AppColorField", f);
4925
4982
  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" : "";
4926
4983
  return /* @__PURE__ */ m("div", {
@@ -4969,7 +5026,7 @@ function Qt({ value: e = "#000000", onChange: t, label: n, required: r = !1, err
4969
5026
  }
4970
5027
  //#endregion
4971
5028
  //#region src/components/AppCompareTable.jsx
4972
- function $t({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
5029
+ function nn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
4973
5030
  j("AppCompareTable", i);
4974
5031
  let a = (e) => e === !0 ? /* @__PURE__ */ p("span", {
4975
5032
  className: "compare-yes",
@@ -5006,19 +5063,19 @@ function $t({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i
5006
5063
  }
5007
5064
  //#endregion
5008
5065
  //#region src/components/AppInput.jsx
5009
- var en = 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) {
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) {
5010
5067
  j("AppInput", N);
5011
5068
  let [F, L] = d(!1), R = s(), z = y || R, B = c === "password", ee = B && F ? "text" : c, te = u(null), ne = (e) => {
5012
5069
  te.current = e, typeof P == "function" ? P(e) : P && (P.current = e);
5013
- }, V = String(N.value ?? N.defaultValue ?? ""), [re, ie] = d(() => !!V), [ae, oe] = d(() => V.length), se = T && !w, H = T || E;
5070
+ }, re = String(N.value ?? N.defaultValue ?? ""), [V, ie] = d(() => !!re), [ae, oe] = d(() => re.length), se = T && !w, ce = T || E;
5014
5071
  o(() => {
5015
- if (!H || N.value === void 0) return;
5072
+ if (!ce || N.value === void 0) return;
5016
5073
  let e = String(N.value ?? "");
5017
5074
  ie(!!e), oe(e.length);
5018
- }, [N.value, H]);
5019
- let ce = (e) => {
5075
+ }, [N.value, ce]);
5076
+ let le = (e) => {
5020
5077
  ie(!!e.target.value), oe(e.target.value.length), N.onInput?.(e);
5021
- }, le = se ? /* @__PURE__ */ p("button", {
5078
+ }, H = se ? /* @__PURE__ */ p("button", {
5022
5079
  type: "button",
5023
5080
  className: "input-clear",
5024
5081
  onClick: () => {
@@ -5029,12 +5086,12 @@ var en = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5029
5086
  },
5030
5087
  "aria-label": "Clear",
5031
5088
  tabIndex: -1,
5032
- hidden: !re,
5089
+ hidden: !V,
5033
5090
  children: /* @__PURE__ */ p(I, {
5034
5091
  name: "x",
5035
5092
  size: 16
5036
5093
  })
5037
- }) : null, U = n && z ? `${z}-error` : void 0, ue = r && z ? `${z}-hint` : void 0, W = U || ue, de = [
5094
+ }) : null, ue = n && z ? `${z}-error` : void 0, U = r && z ? `${z}-hint` : void 0, de = ue || U, W = [
5038
5095
  "input",
5039
5096
  l === "sm" ? "input-sm" : "",
5040
5097
  l === "lg" ? "input-lg" : "",
@@ -5048,18 +5105,18 @@ var en = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5048
5105
  id: z,
5049
5106
  name: b,
5050
5107
  type: ee,
5051
- className: de,
5108
+ className: W,
5052
5109
  disabled: w,
5053
5110
  required: t,
5054
5111
  "aria-invalid": n ? "true" : "false",
5055
- "aria-describedby": W,
5112
+ "aria-describedby": de,
5056
5113
  maxLength: D,
5057
5114
  ...N,
5058
5115
  placeholder: A ? " " : N.placeholder,
5059
5116
  ref: ne,
5060
- onInput: H ? ce : N.onInput
5061
- }), K;
5062
- return K = A && e ? /* @__PURE__ */ m("div", {
5117
+ onInput: ce ? le : N.onInput
5118
+ }), fe;
5119
+ return fe = A && e ? /* @__PURE__ */ m("div", {
5063
5120
  className: "field-float",
5064
5121
  children: [G, /* @__PURE__ */ m("label", {
5065
5122
  className: "float-label",
@@ -5133,7 +5190,7 @@ var en = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5133
5190
  })
5134
5191
  }),
5135
5192
  G,
5136
- le
5193
+ H
5137
5194
  ]
5138
5195
  }) : f ? /* @__PURE__ */ m("div", {
5139
5196
  className: "input-icon",
@@ -5153,20 +5210,20 @@ var en = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5153
5210
  children: [
5154
5211
  e,
5155
5212
  t && /* @__PURE__ */ p(Z, {}),
5156
- i && /* @__PURE__ */ p(yt, {
5213
+ i && /* @__PURE__ */ p(St, {
5157
5214
  label: a,
5158
5215
  children: i
5159
5216
  })
5160
5217
  ]
5161
5218
  }),
5162
- K,
5219
+ fe,
5163
5220
  n ? /* @__PURE__ */ p("div", {
5164
5221
  className: "field-error",
5165
- id: U,
5222
+ id: ue,
5166
5223
  children: n
5167
5224
  }) : r ? /* @__PURE__ */ p("div", {
5168
5225
  className: "field-hint",
5169
- id: ue,
5226
+ id: U,
5170
5227
  children: r
5171
5228
  }) : null,
5172
5229
  E && /* @__PURE__ */ m("div", {
@@ -5175,34 +5232,34 @@ var en = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5175
5232
  })
5176
5233
  ]
5177
5234
  });
5178
- }), tn = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", nn = {
5235
+ }), an = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", on = {
5179
5236
  sm: 380,
5180
5237
  md: 440,
5181
5238
  lg: 640,
5182
5239
  xl: 880
5183
- }, rn = !1;
5184
- function an() {
5240
+ }, sn = !1;
5241
+ function cn() {
5185
5242
  let e = !0;
5186
5243
  try {
5187
5244
  e = process.env.NODE_ENV !== "production";
5188
5245
  } catch {
5189
5246
  e = !0;
5190
5247
  }
5191
- !e || rn || (rn = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
5248
+ !e || sn || (sn = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
5192
5249
  }
5193
- function on({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a = "default", dismissible: s = !0, onClose: c, footer: l, size: d = "md", placement: f = "center", hideHeader: h = !1, staticBackdrop: g = !1, ariaLabel: _, className: v = "", children: y, ...b }) {
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 }) {
5194
5251
  j("AppModal", b);
5195
5252
  let { style: x, ...C } = b;
5196
- h && !_ && typeof n != "string" && an();
5253
+ h && !_ && typeof n != "string" && cn();
5197
5254
  let w = u(null);
5198
5255
  o(() => {
5199
5256
  if (!e) return;
5200
5257
  let t = w.current?.closest(".modal-content");
5201
5258
  if (!t) return;
5202
- let n = () => Array.from(t.querySelectorAll(tn));
5259
+ let n = () => Array.from(t.querySelectorAll(an));
5203
5260
  (t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("wui-modal-close")) || n()[0] || t).focus?.();
5204
5261
  }, [e]);
5205
- let T = typeof d == "number" ? d : nn[d] ?? nn.md, E = [
5262
+ let T = typeof d == "number" ? d : on[d] ?? on.md, E = [
5206
5263
  "wui-modal",
5207
5264
  a === "default" ? "" : `tone-${a}`,
5208
5265
  v
@@ -5287,30 +5344,30 @@ function on({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a
5287
5344
  }
5288
5345
  //#endregion
5289
5346
  //#region src/components/ModalIcons.jsx
5290
- var sn = (e) => function({ size: t = 72 }) {
5347
+ var un = (e) => function({ size: t = 72 }) {
5291
5348
  return /* @__PURE__ */ p("wui-status-icon", {
5292
5349
  tone: e,
5293
5350
  size: t
5294
5351
  });
5295
- }, cn = {
5296
- success: sn("success"),
5297
- error: sn("error"),
5298
- warning: sn("warning"),
5299
- info: sn("info"),
5300
- delete: sn("delete")
5352
+ }, dn = {
5353
+ success: un("success"),
5354
+ error: un("error"),
5355
+ warning: un("warning"),
5356
+ info: un("info"),
5357
+ delete: un("delete")
5301
5358
  };
5302
5359
  //#endregion
5303
5360
  //#region src/components/AppConfirmDialog.jsx
5304
- function ln({ 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 }) {
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 }) {
5305
5362
  j("AppConfirmDialog", y);
5306
5363
  let [b, x] = d("");
5307
5364
  if (o(() => {
5308
5365
  e || x("");
5309
5366
  }, [e]), !e) return null;
5310
- let S = !!c && b.trim() !== c, C = cn[s || (a ? "delete" : "info")], w = () => {
5367
+ let S = !!c && b.trim() !== c, C = dn[s || (a ? "delete" : "info")], w = () => {
5311
5368
  h || u?.();
5312
5369
  };
5313
- return /* @__PURE__ */ p(on, {
5370
+ return /* @__PURE__ */ p(ln, {
5314
5371
  ...y,
5315
5372
  open: e,
5316
5373
  hideHeader: !0,
@@ -5351,7 +5408,7 @@ function ln({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
5351
5408
  className: "wui-confirm-msg",
5352
5409
  children: n
5353
5410
  }),
5354
- c && /* @__PURE__ */ p(en, {
5411
+ c && /* @__PURE__ */ p(rn, {
5355
5412
  fieldClassName: "mt-3 mb-0 w-100 text-start",
5356
5413
  label: /* @__PURE__ */ m(f, { children: [
5357
5414
  "Type ",
@@ -5369,7 +5426,12 @@ function ln({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
5369
5426
  }
5370
5427
  //#endregion
5371
5428
  //#region src/components/AppCopyButton.jsx
5372
- function un({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: o = "ghost", onCopied: s, className: c = "", ...l }) {
5429
+ var pn = {
5430
+ sm: 14,
5431
+ md: 16,
5432
+ lg: 20
5433
+ };
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 }) {
5373
5435
  j("AppCopyButton", l);
5374
5436
  let [u, f] = d(!1), m = a(async () => {
5375
5437
  try {
@@ -5388,6 +5450,7 @@ function un({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
5388
5450
  return r ? /* @__PURE__ */ p(R, {
5389
5451
  icon: g,
5390
5452
  label: h,
5453
+ size: pn[i] ?? pn.md,
5391
5454
  onClick: m,
5392
5455
  className: c,
5393
5456
  ...l
@@ -5404,7 +5467,7 @@ function un({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
5404
5467
  }
5405
5468
  //#endregion
5406
5469
  //#region src/components/AppSkeleton.jsx
5407
- function dn({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
5470
+ function hn({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
5408
5471
  return j("AppSkeleton", a), /* @__PURE__ */ p("span", {
5409
5472
  className: `skeleton${r ? ` ${r}` : ""}`,
5410
5473
  "aria-hidden": "true",
@@ -5417,28 +5480,28 @@ function dn({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "
5417
5480
  ...a
5418
5481
  });
5419
5482
  }
5420
- function fn({ rows: e = 4, cols: t = 5 }) {
5421
- 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(dn, {
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, {
5422
5485
  width: t === 0 ? "70%" : "50%",
5423
5486
  height: 12
5424
5487
  }) }, `col-${t}`)) }, `row-${n}`));
5425
5488
  }
5426
5489
  //#endregion
5427
5490
  //#region src/lib/pageWindow.js
5428
- var pn = (e, t) => {
5491
+ var _n = (e, t) => {
5429
5492
  let n = [];
5430
5493
  for (let r = e; r <= t; r += 1) n.push(r);
5431
5494
  return n;
5432
5495
  };
5433
- function mn(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
5496
+ function vn(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
5434
5497
  let i = Math.max(1, t), a = Math.min(Math.max(1, e), i);
5435
- if (i <= n * 2 + 3 + r * 2) return pn(1, i);
5436
- 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 = pn(1, r);
5437
- return u.push(...c ? ["ellipsis-left"] : pn(r + 1, o - 1)), u.push(...pn(o, s)), u.push(...l ? ["ellipsis-right"] : pn(s + 1, i - r)), u.push(...pn(i - r + 1, i)), u;
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;
5438
5501
  }
5439
5502
  //#endregion
5440
5503
  //#region src/components/AppSelectMini.jsx
5441
- function hn({ 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 }) {
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 }) {
5442
5505
  j("AppSelectMini", m);
5443
5506
  let { setRef: h, innerRef: g } = Q({
5444
5507
  value: e ?? "",
@@ -5452,7 +5515,7 @@ function hn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5452
5515
  label: e.label ?? e.text ?? "",
5453
5516
  icon: e.icon
5454
5517
  }));
5455
- Ct(t, e.options) || (e.options = t);
5518
+ Et(t, e.options) || (e.options = t);
5456
5519
  }, [n, g]), o(() => {
5457
5520
  let e = g.current;
5458
5521
  if (e) for (let [t, n] of [["icon", u], ["prefix", d]]) n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n);
@@ -5475,22 +5538,22 @@ function hn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5475
5538
  }
5476
5539
  //#endregion
5477
5540
  //#region src/components/AppTablePagination.jsx
5478
- var gn = [
5541
+ var bn = [
5479
5542
  5,
5480
5543
  10,
5481
5544
  25,
5482
5545
  50
5483
5546
  ];
5484
- function _n({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = gn, mode: l = "prev-next", showPageSize: u = !0, className: d = "", ...f }) {
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 }) {
5485
5548
  j("AppTablePagination", f);
5486
- let h = l === "numbered", g = h ? mn(e, t) : null;
5549
+ let h = l === "numbered", g = h ? vn(e, t) : null;
5487
5550
  return /* @__PURE__ */ m("div", {
5488
5551
  className: `table-pagination${d ? ` ${d}` : ""}`,
5489
5552
  ...f,
5490
5553
  children: [
5491
5554
  u && /* @__PURE__ */ m("span", {
5492
5555
  className: "tpg-rows",
5493
- children: ["Rows per page:", /* @__PURE__ */ p(hn, {
5556
+ children: ["Rows per page:", /* @__PURE__ */ p(yn, {
5494
5557
  value: n,
5495
5558
  onChange: (e) => s(Number(e)),
5496
5559
  ariaLabel: "Rows per page",
@@ -5554,49 +5617,49 @@ function _n({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
5554
5617
  }
5555
5618
  //#endregion
5556
5619
  //#region src/components/AppDataTable.jsx
5557
- function vn(e) {
5620
+ function Sn(e) {
5558
5621
  return e === "end" ? "wui-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
5559
5622
  }
5560
- function yn(e) {
5623
+ function Cn(e) {
5561
5624
  return e == null || e === "" ? "—" : typeof e == "boolean" ? String(e) : e;
5562
5625
  }
5563
- function bn({ 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 = "", selectable: b = !1, selectedIds: x, onToggleRow: S, onToggleAll: C, renderExpanded: w, ...T }) {
5564
- j("AppDataTable", T);
5565
- let E = typeof w == "function", [D, O] = d(() => /* @__PURE__ */ new Set()), k = (e) => O((t) => {
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 }) {
5627
+ j("AppDataTable", E);
5628
+ let D = typeof T == "function", [O, k] = d(() => /* @__PURE__ */ new Set()), A = (e) => k((t) => {
5566
5629
  let n = new Set(t);
5567
5630
  return n.has(e) ? n.delete(e) : n.add(e), n;
5568
- }), A = Math.max(1, e.length + +!!h + +!!b + +!!E), M = b && n ? n.reduce((e, t, n) => e + +!!x?.has(r(t, n)), 0) : 0, N = b && n && n.length > 0 && M === n.length, P = M > 0 && !N, F = (e) => {
5569
- e && (e.indeterminate = P);
5570
- }, L = l !== void 0 && u > 0 ? l : c;
5631
+ }), M = Math.max(1, e.length + +!!h + +!!x + +!!D), N = x && n ? n.reduce((e, t, n) => e + +!!S?.has(r(t, n)), 0) : 0, P = x && n && n.length > 0 && N === n.length, F = N > 0 && !P, L = (e) => {
5632
+ e && (e.indeterminate = F);
5633
+ }, R = l !== void 0 && u > 0 ? l : c;
5571
5634
  return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
5572
- className: "table-wrap",
5573
- ...T,
5635
+ className: `table-wrap${b ? ` ${b}` : ""}`,
5636
+ ...E,
5574
5637
  children: /* @__PURE__ */ m("table", {
5575
5638
  className: `table table-ledger${y ? ` ${y}` : ""}`,
5576
5639
  "aria-label": v,
5577
5640
  children: [/* @__PURE__ */ p("thead", { children: /* @__PURE__ */ m("tr", { children: [
5578
- E && /* @__PURE__ */ p("th", {
5641
+ D && /* @__PURE__ */ p("th", {
5579
5642
  className: "wui-expand-cell",
5580
5643
  children: /* @__PURE__ */ p("span", {
5581
5644
  className: "visually-hidden",
5582
5645
  children: "Expand"
5583
5646
  })
5584
5647
  }),
5585
- b && /* @__PURE__ */ p("th", {
5648
+ x && /* @__PURE__ */ p("th", {
5586
5649
  className: "wui-select-cell",
5587
5650
  children: /* @__PURE__ */ p("input", {
5588
- ref: F,
5651
+ ref: L,
5589
5652
  type: "checkbox",
5590
5653
  className: "wui-check",
5591
- checked: N,
5592
- onChange: (e) => C?.(e.target.checked),
5654
+ checked: P,
5655
+ onChange: (e) => w?.(e.target.checked),
5593
5656
  "aria-label": "Select all rows"
5594
5657
  })
5595
5658
  }),
5596
5659
  e.map((e, t) => {
5597
5660
  let n = !!(e.sortable && a), r = i && i.key === e.key;
5598
5661
  return /* @__PURE__ */ m("th", {
5599
- className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + vn(e.align),
5662
+ className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + Sn(e.align),
5600
5663
  style: e.width ? { width: e.width } : void 0,
5601
5664
  tabIndex: n ? 0 : void 0,
5602
5665
  "aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
@@ -5623,15 +5686,15 @@ function bn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5623
5686
  children: "Actions"
5624
5687
  })
5625
5688
  }))
5626
- ] }) }), /* @__PURE__ */ p("tbody", { children: o ? /* @__PURE__ */ p(fn, {
5689
+ ] }) }), /* @__PURE__ */ p("tbody", { children: o ? /* @__PURE__ */ p(gn, {
5627
5690
  rows: s,
5628
- cols: A
5691
+ cols: M
5629
5692
  }) : n?.length ? n.map((n, i) => {
5630
- let a = r(n, i), o = E && D.has(a), s = String(a).replace(/[^a-z0-9]/gi, "_");
5693
+ let a = r(n, i), o = D && O.has(a), s = String(a).replace(/[^a-z0-9]/gi, "_");
5631
5694
  return /* @__PURE__ */ m(t, { children: [/* @__PURE__ */ m("tr", {
5632
- className: b && x?.has(a) ? "is-selected" : void 0,
5695
+ className: x && S?.has(a) ? "is-selected" : void 0,
5633
5696
  children: [
5634
- E && /* @__PURE__ */ p("td", {
5697
+ D && /* @__PURE__ */ p("td", {
5635
5698
  className: "wui-expand-cell",
5636
5699
  children: /* @__PURE__ */ p("button", {
5637
5700
  type: "button",
@@ -5639,27 +5702,27 @@ function bn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5639
5702
  "aria-expanded": o,
5640
5703
  "aria-controls": o ? `${s}-expanded` : void 0,
5641
5704
  "aria-label": o ? "Collapse row" : "Expand row",
5642
- onClick: () => k(a),
5705
+ onClick: () => A(a),
5643
5706
  children: /* @__PURE__ */ p(I, {
5644
5707
  name: "chevron-down",
5645
5708
  size: 16
5646
5709
  })
5647
5710
  })
5648
5711
  }),
5649
- b && /* @__PURE__ */ p("td", {
5712
+ x && /* @__PURE__ */ p("td", {
5650
5713
  className: "wui-select-cell",
5651
5714
  children: /* @__PURE__ */ p("input", {
5652
5715
  type: "checkbox",
5653
5716
  className: "wui-check",
5654
- checked: x?.has(a) || !1,
5655
- onChange: () => S?.(a),
5717
+ checked: S?.has(a) || !1,
5718
+ onChange: () => C?.(a),
5656
5719
  "aria-label": "Select row"
5657
5720
  })
5658
5721
  }),
5659
5722
  e.map((e, t) => /* @__PURE__ */ p("td", {
5660
- className: (t === 0 ? "wui-name-cell " : "") + vn(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
5723
+ className: (t === 0 ? "wui-name-cell " : "") + Sn(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
5661
5724
  style: e.cellStyle,
5662
- children: e.render ? e.render(n) : yn(n[e.key])
5725
+ children: e.render ? e.render(n) : Cn(n[e.key])
5663
5726
  }, e.key)),
5664
5727
  h && /* @__PURE__ */ p("td", { children: /* @__PURE__ */ p("div", {
5665
5728
  className: "u-row-actions",
@@ -5670,17 +5733,17 @@ function bn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5670
5733
  className: "wui-row-expanded",
5671
5734
  children: /* @__PURE__ */ p("td", {
5672
5735
  id: `${s}-expanded`,
5673
- colSpan: A,
5674
- children: w(n)
5736
+ colSpan: M,
5737
+ children: T(n)
5675
5738
  })
5676
5739
  })] }, a);
5677
5740
  }) : /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", {
5678
- colSpan: A,
5741
+ colSpan: M,
5679
5742
  className: "wui-table-empty",
5680
- children: L
5743
+ children: R
5681
5744
  }) }) })]
5682
5745
  })
5683
- }), _ && !o && _.total > 0 && /* @__PURE__ */ p(_n, {
5746
+ }), _ && !o && _.total > 0 && /* @__PURE__ */ p(xn, {
5684
5747
  page: _.page,
5685
5748
  totalPages: _.totalPages,
5686
5749
  pageSize: _.pageSize,
@@ -5693,7 +5756,7 @@ function bn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5693
5756
  }
5694
5757
  //#endregion
5695
5758
  //#region src/components/AppDatePicker.jsx
5696
- var xn = 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) {
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) {
5697
5760
  j("AppDatePicker", y);
5698
5761
  let x = s(), S = g || o || x, { setRef: C } = Q({
5699
5762
  ref: b,
@@ -5737,7 +5800,7 @@ var xn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
5737
5800
  })
5738
5801
  ]
5739
5802
  });
5740
- }), Sn = i(function({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: a, error: c, startName: l, endName: u, min: d, max: f, placeholder: h = "Start – End", disabled: g, size: _, firstDay: v, id: y, ariaLabel: b, className: x = "", ...S }, C) {
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) {
5741
5804
  j("AppDateRangePicker", S);
5742
5805
  let w = s(), T = y || l || w, { setRef: E, innerRef: D } = Q({
5743
5806
  ref: C,
@@ -5798,12 +5861,12 @@ var xn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
5798
5861
  });
5799
5862
  //#endregion
5800
5863
  //#region src/lib/emptyValue.js
5801
- function Cn(e) {
5864
+ function Dn(e) {
5802
5865
  return e == null || e === "";
5803
5866
  }
5804
5867
  //#endregion
5805
5868
  //#region src/components/AppDescriptions.jsx
5806
- function wn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
5869
+ function On({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
5807
5870
  return j("AppDescriptions", o), /* @__PURE__ */ m("div", {
5808
5871
  className: [
5809
5872
  "descs",
@@ -5819,7 +5882,7 @@ function wn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
5819
5882
  }), /* @__PURE__ */ p("dl", {
5820
5883
  className: "descs-list",
5821
5884
  children: e.map((e, t) => {
5822
- let n = Cn(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
5885
+ let n = Dn(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
5823
5886
  return /* @__PURE__ */ m("div", {
5824
5887
  className: "descs-item",
5825
5888
  style: { "--descs-span": r },
@@ -5837,24 +5900,24 @@ function wn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
5837
5900
  }
5838
5901
  //#endregion
5839
5902
  //#region src/components/AppDropdown.jsx
5840
- var Tn = !1;
5841
- function En() {
5903
+ var kn = !1;
5904
+ function An() {
5842
5905
  let e = !0;
5843
5906
  try {
5844
5907
  e = process.env.NODE_ENV !== "production";
5845
5908
  } catch {
5846
5909
  e = !0;
5847
5910
  }
5848
- !e || Tn || (Tn = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
5911
+ !e || kn || (kn = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
5849
5912
  }
5850
- function Dn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: o = [], menuClassName: s = "", linkComponent: c, children: l, trigger: u, ...d }) {
5851
- j("AppDropdown", d), !u && !i && !r && En();
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();
5852
5915
  let f = n ?? (u ? "wui-dropdown-trigger" : "topbar-icon-btn");
5853
5916
  return /* @__PURE__ */ m(b, {
5854
5917
  align: a,
5855
5918
  ...d,
5856
5919
  children: [/* @__PURE__ */ p(b.Toggle, {
5857
- as: On,
5920
+ as: Mn,
5858
5921
  icon: e,
5859
5922
  iconSize: t,
5860
5923
  btnClassName: f,
@@ -5889,7 +5952,7 @@ function Dn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
5889
5952
  })]
5890
5953
  });
5891
5954
  }
5892
- var On = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
5955
+ var Mn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
5893
5956
  return /* @__PURE__ */ p("button", {
5894
5957
  ref: s,
5895
5958
  type: "button",
@@ -5904,16 +5967,16 @@ var On = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-
5904
5967
  });
5905
5968
  //#endregion
5906
5969
  //#region src/lib/fileItem.js
5907
- function kn(e) {
5970
+ function Nn(e) {
5908
5971
  return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
5909
5972
  }
5910
- function An(e) {
5973
+ function Pn(e) {
5911
5974
  return e instanceof File ? e.name : e?.name;
5912
5975
  }
5913
- function jn(e) {
5976
+ function Fn(e) {
5914
5977
  return e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
5915
5978
  }
5916
- function Mn(e, t) {
5979
+ function In(e, t) {
5917
5980
  let [n, r] = d(null);
5918
5981
  return o(() => {
5919
5982
  if (!t) {
@@ -5929,8 +5992,8 @@ function Mn(e, t) {
5929
5992
  }
5930
5993
  //#endregion
5931
5994
  //#region src/lib/FileItemRow.jsx
5932
- function Nn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
5933
- let i = Mn(e, t), a = An(e), o = jn(e);
5995
+ function Ln({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
5996
+ let i = In(e, t), a = Pn(e), o = Fn(e);
5934
5997
  return /* @__PURE__ */ m("div", {
5935
5998
  className: "attach-item",
5936
5999
  children: [
@@ -5969,15 +6032,15 @@ function Nn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
5969
6032
  }
5970
6033
  //#endregion
5971
6034
  //#region src/components/AppFileAttachment.jsx
5972
- function Pn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = st, maxSizeMb: o = 5, optional: c = !1, error: l, id: u, ...h }) {
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 }) {
5973
6036
  j("AppFileAttachment", h);
5974
- let g = s(), _ = u || n || g, [v, y] = d(""), b = i && Array.isArray(t) ? t : t ? [t] : [], x = pt(a), S = (e) => e instanceof File ? ft(e) : x || ft(e), C = !i && b.length === 1 && S(b[0]);
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]);
5975
6038
  function w(e) {
5976
6039
  let n = Array.from(e.target.files || []);
5977
6040
  if (e.target.value = "", !n.length) return;
5978
6041
  let s = [], c = "";
5979
6042
  for (let e of n) {
5980
- let t = gt(e, {
6043
+ let t = yt(e, {
5981
6044
  accept: a,
5982
6045
  maxSizeMb: o
5983
6046
  });
@@ -5988,8 +6051,8 @@ function Pn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
5988
6051
  s.push(e);
5989
6052
  }
5990
6053
  if (y(c), s.length) if (i) {
5991
- let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(kn));
5992
- r(e.concat(s.filter((e) => !n.has(kn(e)))));
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)))));
5993
6056
  } else r(s[0]);
5994
6057
  }
5995
6058
  function T(e) {
@@ -6026,7 +6089,7 @@ function Pn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6026
6089
  }), /* @__PURE__ */ m("span", {
6027
6090
  className: "attach-drop-hint",
6028
6091
  children: [
6029
- mt(a),
6092
+ _t(a),
6030
6093
  ", up to ",
6031
6094
  o,
6032
6095
  " MB"
@@ -6048,17 +6111,17 @@ function Pn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6048
6111
  onChange: w,
6049
6112
  ...h
6050
6113
  })] }),
6051
- C ? /* @__PURE__ */ p(Fn, {
6114
+ C ? /* @__PURE__ */ p(zn, {
6052
6115
  item: b[0],
6053
6116
  isImage: !0,
6054
6117
  onRemove: () => T(0)
6055
6118
  }) : b.length > 0 && /* @__PURE__ */ p("div", {
6056
6119
  className: "attach-list",
6057
- children: b.map((e, t) => /* @__PURE__ */ p(Nn, {
6120
+ children: b.map((e, t) => /* @__PURE__ */ p(Ln, {
6058
6121
  item: e,
6059
6122
  isImage: S(e),
6060
6123
  onRemove: () => T(t)
6061
- }, kn(e)))
6124
+ }, Nn(e)))
6062
6125
  }),
6063
6126
  E && /* @__PURE__ */ p("div", {
6064
6127
  className: "field-error",
@@ -6067,8 +6130,8 @@ function Pn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6067
6130
  ]
6068
6131
  });
6069
6132
  }
6070
- function Fn({ item: e, isImage: t, onRemove: n }) {
6071
- let r = Mn(e, t), i = An(e), a = jn(e);
6133
+ function zn({ item: e, isImage: t, onRemove: n }) {
6134
+ let r = In(e, t), i = Pn(e), a = Fn(e);
6072
6135
  return /* @__PURE__ */ m("div", {
6073
6136
  className: "attach-preview",
6074
6137
  children: [/* @__PURE__ */ m("div", {
@@ -6100,18 +6163,18 @@ function Fn({ item: e, isImage: t, onRemove: n }) {
6100
6163
  }
6101
6164
  //#endregion
6102
6165
  //#region src/components/AppFilePicker.jsx
6103
- function In({ 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 = "", ..._ }) {
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 = "", ..._ }) {
6104
6167
  j("AppFilePicker", _);
6105
6168
  let [v, y] = d(null), [b, x] = d(!1), [S, C] = d(""), w = u(null), T = s(), E = n || T;
6106
6169
  o(() => {
6107
- if (!i && t instanceof File && ft(t)) {
6170
+ if (!i && t instanceof File && ht(t)) {
6108
6171
  let e = URL.createObjectURL(t);
6109
6172
  return y(e), () => URL.revokeObjectURL(e);
6110
6173
  }
6111
6174
  y(null);
6112
6175
  }, [t, i]);
6113
- let D = i ? Array.isArray(t) ? t : t ? [t] : [] : [], O = h || S, k = pt(c), A = !i && !!t, M = A && (t instanceof File ? ft(t) : k || ft(t)), N = t?.name, P = M ? t?.url || v : null, F = (e) => {
6114
- let t = gt(e, {
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, {
6115
6178
  accept: c,
6116
6179
  maxSizeMb: l
6117
6180
  });
@@ -6119,9 +6182,9 @@ function In({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6119
6182
  }, L = (e) => {
6120
6183
  let n = Array.from(e || []);
6121
6184
  if (!n.length) return;
6122
- let i = Array.isArray(t) ? t : t ? [t] : [], o = new Set(i.map(kn)), s = "", u = [];
6185
+ let i = Array.isArray(t) ? t : t ? [t] : [], o = new Set(i.map(Nn)), s = "", u = [];
6123
6186
  for (let e of n) {
6124
- let t = gt(e, {
6187
+ let t = yt(e, {
6125
6188
  accept: c,
6126
6189
  maxSizeMb: l
6127
6190
  });
@@ -6129,7 +6192,7 @@ function In({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6129
6192
  s ||= t;
6130
6193
  continue;
6131
6194
  }
6132
- o.has(kn(e)) || (o.add(kn(e)), u.push(e));
6195
+ o.has(Nn(e)) || (o.add(Nn(e)), u.push(e));
6133
6196
  }
6134
6197
  let d = i.concat(u);
6135
6198
  a && d.length > a && (d = d.slice(0, a), s ||= `Up to ${a} files.`), C(s), r(d);
@@ -6251,7 +6314,7 @@ function In({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6251
6314
  /* @__PURE__ */ m("span", {
6252
6315
  className: "file-input-text",
6253
6316
  children: [
6254
- mt(c),
6317
+ _t(c),
6255
6318
  " · up to ",
6256
6319
  l,
6257
6320
  " MB"
@@ -6262,12 +6325,12 @@ function In({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6262
6325
  te,
6263
6326
  i && D.length > 0 && /* @__PURE__ */ p("div", {
6264
6327
  className: "attach-list",
6265
- children: D.map((e, t) => /* @__PURE__ */ p(Nn, {
6328
+ children: D.map((e, t) => /* @__PURE__ */ p(Ln, {
6266
6329
  item: e,
6267
- isImage: e instanceof File ? ft(e) : k || ft(e),
6330
+ isImage: e instanceof File ? ht(e) : k || ht(e),
6268
6331
  noun: "file",
6269
6332
  onRemove: () => B(t)
6270
- }, kn(e)))
6333
+ }, Nn(e)))
6271
6334
  })
6272
6335
  ]
6273
6336
  }),
@@ -6279,8 +6342,50 @@ function In({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6279
6342
  });
6280
6343
  }
6281
6344
  //#endregion
6345
+ //#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 }) {
6347
+ return j("AppFloatingDock", s), /* @__PURE__ */ p("wui-dock", {
6348
+ role: "navigation",
6349
+ "aria-label": n,
6350
+ static: r ? void 0 : "",
6351
+ "max-scale": i ?? void 0,
6352
+ radius: a ?? void 0,
6353
+ class: o || void 0,
6354
+ ...s,
6355
+ children: e.map((e, n) => {
6356
+ let r = e.key ?? `${e.title}-${n}`, i = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
6357
+ className: "dock-item-tip",
6358
+ "aria-hidden": "true",
6359
+ children: e.title
6360
+ }), /* @__PURE__ */ p("span", {
6361
+ className: "dock-item-icon",
6362
+ children: L(e.icon, { size: 18 })
6363
+ })] });
6364
+ if (e.to && t) return /* @__PURE__ */ p(t, {
6365
+ className: "dock-item",
6366
+ to: e.to,
6367
+ "aria-label": e.title,
6368
+ children: i
6369
+ }, r);
6370
+ let a = e.href ?? e.to;
6371
+ return a ? /* @__PURE__ */ p("a", {
6372
+ className: "dock-item",
6373
+ href: a,
6374
+ "aria-label": e.title,
6375
+ children: i
6376
+ }, r) : /* @__PURE__ */ p("button", {
6377
+ type: "button",
6378
+ className: "dock-item",
6379
+ onClick: e.onClick,
6380
+ "aria-label": e.title,
6381
+ children: i
6382
+ }, r);
6383
+ })
6384
+ });
6385
+ }
6386
+ //#endregion
6282
6387
  //#region src/components/AppFormActions.jsx
6283
- function Ln({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
6388
+ function Hn({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
6284
6389
  return j("AppFormActions", i), /* @__PURE__ */ p("div", {
6285
6390
  className: [
6286
6391
  "form-actions",
@@ -6294,7 +6399,7 @@ function Ln({ children: e, sticky: t = !1, align: n = "end", className: r = "",
6294
6399
  }
6295
6400
  //#endregion
6296
6401
  //#region src/components/AppFormRow.jsx
6297
- function Rn({ children: e, columns: t = 2, className: n = "", ...r }) {
6402
+ function Un({ children: e, columns: t = 2, className: n = "", ...r }) {
6298
6403
  j("AppFormRow", r);
6299
6404
  let { style: i, ...a } = r;
6300
6405
  return /* @__PURE__ */ p("div", {
@@ -6309,7 +6414,7 @@ function Rn({ children: e, columns: t = 2, className: n = "", ...r }) {
6309
6414
  }
6310
6415
  //#endregion
6311
6416
  //#region src/components/AppFormSection.jsx
6312
- function zn({ children: e, title: t, description: n, className: r = "", ...i }) {
6417
+ function Wn({ children: e, title: t, description: n, className: r = "", ...i }) {
6313
6418
  return j("AppFormSection", i), /* @__PURE__ */ m("section", {
6314
6419
  className: ["form-section", r].filter(Boolean).join(" "),
6315
6420
  ...i,
@@ -6330,12 +6435,12 @@ function zn({ children: e, title: t, description: n, className: r = "", ...i })
6330
6435
  }
6331
6436
  //#endregion
6332
6437
  //#region src/components/AppInfoList.jsx
6333
- function Bn({ items: e = [], className: t = "", ...n }) {
6438
+ function Gn({ items: e = [], className: t = "", ...n }) {
6334
6439
  return j("AppInfoList", n), /* @__PURE__ */ p("div", {
6335
6440
  className: `info-list${t ? ` ${t}` : ""}`,
6336
6441
  ...n,
6337
6442
  children: e.map((e, t) => {
6338
- let n = Cn(e.value), r = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
6443
+ let n = Dn(e.value), r = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
6339
6444
  className: "info-icon",
6340
6445
  children: L(e.icon, { size: 16 })
6341
6446
  }), /* @__PURE__ */ m("span", {
@@ -6361,58 +6466,62 @@ function Bn({ items: e = [], className: t = "", ...n }) {
6361
6466
  }
6362
6467
  //#endregion
6363
6468
  //#region src/components/AppKpiTile.jsx
6364
- var Vn = 48, Hn = 16;
6365
- function Un(e) {
6366
- if (!e || e.length < 2) return `0,${Hn / 2} ${Vn},${Hn / 2}`;
6367
- let t = Math.min(...e), n = Math.max(...e) - t, r = Vn / (e.length - 1);
6368
- return e.map((e, i) => `${i * r},${n === 0 ? Hn / 2 : Hn - (e - t) / n * Hn}`).join(" ");
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(" ");
6369
6474
  }
6370
- function Wn(e) {
6475
+ function Yn(e) {
6371
6476
  if (typeof e != "string") return "flat";
6372
6477
  let t = e.trim();
6373
6478
  return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
6374
6479
  }
6375
- function Gn({ label: e, value: t, icon: n, iconTone: r, delta: i, deltaDirection: a, sparkline: o, variant: s = "plain", size: c = "md", inline: l = !1, attention: u = !1, href: d, linkComponent: f, className: h = "", ...g }) {
6376
- j("AppKpiTile", g);
6377
- let _ = `kpi${l ? " kpi-inline" : ""}${s === "filled" ? " kpi-filled" : s === "accent" ? " kpi-accent" : ""}${c === "lg" ? " kpi-lg" : ""}${u ? " kpi-attention" : ""}${h ? ` ${h}` : ""}`, v = a ?? Wn(i), y = v === "up" ? "arrow-up" : v === "down" ? "arrow-down" : null, b = {};
6378
- return d != null && (b = f ? {
6379
- as: f,
6380
- to: d
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", inline: u = !1, attention: d = !1, href: f, linkComponent: h, className: g = "", iconClassName: _ = "", labelClassName: v = "", valueClassName: y = "", captionClassName: b = "", deltaClassName: x = "", sparklineClassName: S = "", ...C }) {
6481
+ j("AppKpiTile", C);
6482
+ let w = `kpi${u ? " kpi-inline" : ""}${c === "filled" ? " kpi-filled" : c === "accent" ? " kpi-accent" : c === "spotlight" ? " kpi-spotlight" : ""}${l === "lg" ? " kpi-lg" : ""}${d ? " kpi-attention" : ""}${g ? ` ${g}` : ""}`, T = o ?? Yn(a), E = T === "up" ? "arrow-up" : T === "down" ? "arrow-down" : null, D = {};
6483
+ return f != null && (D = h ? {
6484
+ as: h,
6485
+ to: f
6381
6486
  } : {
6382
6487
  as: "a",
6383
- href: d
6384
- }), /* @__PURE__ */ m(b.as || "div", {
6385
- className: _,
6386
- ...g,
6387
- ...b,
6488
+ href: f
6489
+ }), /* @__PURE__ */ m(D.as || "div", {
6490
+ className: w,
6491
+ ...C,
6492
+ ...D,
6388
6493
  children: [
6389
- n && /* @__PURE__ */ p("span", {
6390
- className: `kpi-icon${r ? ` kpi-icon-${r}` : ""}`,
6391
- children: L(n, { size: 20 })
6494
+ r && /* @__PURE__ */ p("span", {
6495
+ className: `kpi-icon${i ? ` kpi-icon-${i}` : ""}${_ ? ` ${_}` : ""}`,
6496
+ children: L(r, { size: 20 })
6392
6497
  }),
6393
6498
  /* @__PURE__ */ p("div", {
6394
- className: "kpi-label",
6499
+ className: `kpi-label${v ? ` ${v}` : ""}`,
6395
6500
  children: e
6396
6501
  }),
6397
6502
  /* @__PURE__ */ p("div", {
6398
- className: "kpi-value",
6503
+ className: `kpi-value${y ? ` ${y}` : ""}`,
6399
6504
  children: t
6400
6505
  }),
6401
- i && /* @__PURE__ */ m("div", {
6402
- className: `kpi-delta${v === "flat" ? "" : ` ${v}`}`,
6403
- children: [y && /* @__PURE__ */ p(I, {
6404
- name: y,
6506
+ n && /* @__PURE__ */ p("div", {
6507
+ className: `kpi-caption${b ? ` ${b}` : ""}`,
6508
+ children: n
6509
+ }),
6510
+ a && /* @__PURE__ */ m("div", {
6511
+ className: `kpi-delta${T === "flat" ? "" : ` ${T}`}${x ? ` ${x}` : ""}`,
6512
+ children: [E && /* @__PURE__ */ p(I, {
6513
+ name: E,
6405
6514
  size: 13
6406
- }), i]
6515
+ }), a]
6407
6516
  }),
6408
- o && o.length > 0 && /* @__PURE__ */ p("svg", {
6409
- className: "kpi-sparkline",
6410
- width: Vn,
6411
- height: Hn,
6412
- viewBox: `0 0 ${Vn} ${Hn}`,
6517
+ s && s.length > 0 && /* @__PURE__ */ p("svg", {
6518
+ className: `kpi-sparkline${S ? ` ${S}` : ""}`,
6519
+ width: Kn,
6520
+ height: qn,
6521
+ viewBox: `0 0 ${Kn} ${qn}`,
6413
6522
  "aria-hidden": "true",
6414
6523
  children: /* @__PURE__ */ p("polyline", {
6415
- points: Un(o),
6524
+ points: Jn(s),
6416
6525
  stroke: "currentColor",
6417
6526
  fill: "none"
6418
6527
  })
@@ -6422,21 +6531,21 @@ function Gn({ label: e, value: t, icon: n, iconTone: r, delta: i, deltaDirection
6422
6531
  }
6423
6532
  //#endregion
6424
6533
  //#region src/components/AppLogoPicker.jsx
6425
- var Kn = {
6534
+ var Zn = {
6426
6535
  sm: 72,
6427
6536
  md: 120,
6428
6537
  lg: 160
6429
6538
  };
6430
- 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 }) {
6539
+ 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 }) {
6431
6540
  j("AppLogoPicker", E);
6432
6541
  let D = u(null), O = s(), k = n || O, [A, M] = d(null), [N, P] = d(""), [F, L] = d(!1), [R, z] = d(!1);
6433
6542
  o(() => () => A && URL.revokeObjectURL(A), [A]), o(() => {
6434
6543
  M(null), L(!1);
6435
6544
  }, [e]);
6436
- let B = a || c, ee = A || (e && !F ? e : null), te = b || N, ne = !B && (!!A || !!ee && !!i), V = () => {
6545
+ let B = a || c, ee = A || (e && !F ? e : null), te = b || N, ne = !B && (!!A || !!ee && !!i), re = () => {
6437
6546
  B || D.current?.click();
6438
- }, re = (e) => {
6439
- let t = gt(e, {
6547
+ }, V = (e) => {
6548
+ let t = yt(e, {
6440
6549
  accept: l,
6441
6550
  maxSizeMb: f
6442
6551
  });
@@ -6447,14 +6556,14 @@ function qn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6447
6556
  P(""), L(!1), M(URL.createObjectURL(e)), r(e);
6448
6557
  }, ie = (e) => {
6449
6558
  let t = e.target.files?.[0];
6450
- e.target.value = "", t && re(t);
6559
+ e.target.value = "", t && V(t);
6451
6560
  }, ae = (e) => {
6452
6561
  if (e.preventDefault(), z(!1), B) return;
6453
6562
  let t = e.dataTransfer.files?.[0];
6454
- t && re(t);
6563
+ t && V(t);
6455
6564
  }, oe = () => {
6456
6565
  M(null), P(""), L(!1), D.current && (D.current.value = ""), i?.();
6457
- }, se = typeof C == "number" ? C : Kn[C] ?? Kn.md, H = Math.max(14, Math.round(se * .18)), ce = Math.round(se * .5), le = [
6566
+ }, se = typeof C == "number" ? C : Zn[C] ?? Zn.md, ce = Math.max(14, Math.round(se * .18)), le = Math.round(se * .5), H = [
6458
6567
  "set-uploader",
6459
6568
  S === "avatar" ? "set-uploader--avatar" : "",
6460
6569
  w === "rounded" ? "set-uploader--rounded" : w === "square" ? "set-uploader--square" : "",
@@ -6473,11 +6582,11 @@ function qn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6473
6582
  children: [
6474
6583
  /* @__PURE__ */ p("button", {
6475
6584
  type: "button",
6476
- className: le,
6585
+ className: H,
6477
6586
  style: { "--wui-logo-size": `${se}px` },
6478
6587
  "aria-busy": a || void 0,
6479
6588
  disabled: B,
6480
- onClick: V,
6589
+ onClick: re,
6481
6590
  "aria-label": _,
6482
6591
  onDragOver: (e) => {
6483
6592
  e.preventDefault(), !B && !R && z(!0);
@@ -6498,21 +6607,21 @@ function qn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6498
6607
  className: "set-uploader-logo",
6499
6608
  children: t || S === "avatar" && /* @__PURE__ */ p(I, {
6500
6609
  name: "person",
6501
- size: ce
6610
+ size: le
6502
6611
  })
6503
6612
  }), a ? /* @__PURE__ */ p("span", {
6504
6613
  className: "set-uploader-overlay is-loading",
6505
6614
  "aria-hidden": "true",
6506
6615
  children: /* @__PURE__ */ p(I, {
6507
6616
  name: "refresh-cw",
6508
- size: H,
6617
+ size: ce,
6509
6618
  className: "wui-spin"
6510
6619
  })
6511
6620
  }) : !c && /* @__PURE__ */ m("span", {
6512
6621
  className: "set-uploader-overlay",
6513
6622
  children: [/* @__PURE__ */ p(I, {
6514
6623
  name: h,
6515
- size: H
6624
+ size: ce
6516
6625
  }), /* @__PURE__ */ p("span", { children: g })]
6517
6626
  })]
6518
6627
  })
@@ -6554,27 +6663,27 @@ function qn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6554
6663
  }
6555
6664
  //#endregion
6556
6665
  //#region src/components/AppMeter.jsx
6557
- var Jn = [
6666
+ var $n = [
6558
6667
  "info",
6559
6668
  "success",
6560
6669
  "warning",
6561
6670
  "danger",
6562
6671
  "neutral"
6563
6672
  ];
6564
- function Yn(e, t, n) {
6673
+ function er(e, t, n) {
6565
6674
  let r = n - t;
6566
6675
  if (!(r > 0)) return 0;
6567
6676
  let i = Math.min(100, Math.max(0, (e - t) / r * 100));
6568
6677
  return Number(i.toFixed(2));
6569
6678
  }
6570
- function Xn(e, t, n, r, i) {
6679
+ function tr(e, t, n, r, i) {
6571
6680
  if (t == null && n == null) return i;
6572
6681
  let a = "mid";
6573
6682
  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";
6574
6683
  }
6575
- function Zn({ 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 }) {
6684
+ 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 }) {
6576
6685
  j("AppMeter", d);
6577
- let f = zt(r), m = Xn(e, a, o, i, Jn.includes(f) ? f : "info"), h = Yn(e, t, n);
6686
+ let f = Ht(r), m = tr(e, a, o, i, $n.includes(f) ? f : "info"), h = er(e, t, n);
6578
6687
  return /* @__PURE__ */ p("div", {
6579
6688
  className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
6580
6689
  role: "meter",
@@ -6592,20 +6701,20 @@ function Zn({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
6592
6701
  }
6593
6702
  //#endregion
6594
6703
  //#region src/components/AppMultiSelect.jsx
6595
- var Qn = 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) {
6704
+ 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) {
6596
6705
  j("AppMultiSelect", S);
6597
6706
  let w = s(), T = f || w, { setRef: E, innerRef: D } = Q({
6598
6707
  ref: C,
6599
6708
  value: e,
6600
6709
  onChange: t,
6601
- readValue: wt,
6602
- writeValue: Tt
6710
+ readValue: Dt,
6711
+ writeValue: Ot
6603
6712
  });
6604
6713
  return o(() => {
6605
6714
  let e = D.current;
6606
6715
  if (!e) return;
6607
6716
  let t = n || [];
6608
- Ct(t, e.options) || (e.options = t);
6717
+ Et(t, e.options) || (e.options = t);
6609
6718
  }, [n, D]), /* @__PURE__ */ m("div", {
6610
6719
  className: `field${x ? ` ${x}` : ""}`,
6611
6720
  children: [
@@ -6615,7 +6724,7 @@ var Qn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6615
6724
  children: [
6616
6725
  h,
6617
6726
  v && /* @__PURE__ */ p(Z, {}),
6618
- y && /* @__PURE__ */ p(yt, {
6727
+ y && /* @__PURE__ */ p(St, {
6619
6728
  label: b,
6620
6729
  children: y
6621
6730
  })
@@ -6649,7 +6758,7 @@ var Qn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6649
6758
  }) : null
6650
6759
  ]
6651
6760
  });
6652
- }), $n = i(function({ label: e, required: t = !1, error: n, hint: r, value: i, onChange: a, min: c, max: l, step: u = 1, precision: f = 0, unit: h, size: g = "md", id: _, name: v, className: y = "", fieldClassName: b = "", disabled: S = !1, ...C }, w) {
6761
+ }), ir = i(function({ label: e, required: t = !1, error: n, hint: r, value: i, onChange: a, min: c, max: l, step: u = 1, precision: f = 0, unit: h, size: g = "md", id: _, name: v, className: y = "", fieldClassName: b = "", disabled: S = !1, ...C }, w) {
6653
6762
  j("AppNumberInput", C);
6654
6763
  let T = s(), E = _ || T, D = (e) => {
6655
6764
  if (f === 0) return Math.round(e);
@@ -6689,9 +6798,9 @@ var Qn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6689
6798
  M(String(e)), a?.(e);
6690
6799
  }
6691
6800
  C.onBlur?.(e);
6692
- }, V = (e) => {
6801
+ }, re = (e) => {
6693
6802
  e.key === "ArrowUp" ? (e.preventDefault(), N(1)) : e.key === "ArrowDown" && (e.preventDefault(), N(-1)), C.onKeyDown?.(e);
6694
- }, re = /* @__PURE__ */ p(x.Control, {
6803
+ }, V = /* @__PURE__ */ p(x.Control, {
6695
6804
  ...C,
6696
6805
  id: E,
6697
6806
  name: v,
@@ -6706,7 +6815,7 @@ var Qn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6706
6815
  ref: w,
6707
6816
  onChange: te,
6708
6817
  onBlur: ne,
6709
- onKeyDown: V
6818
+ onKeyDown: re
6710
6819
  }), ie = /* @__PURE__ */ m("div", {
6711
6820
  className: "num-wrap",
6712
6821
  children: [
@@ -6722,7 +6831,7 @@ var Qn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6722
6831
  size: 16
6723
6832
  })
6724
6833
  }),
6725
- re,
6834
+ V,
6726
6835
  h && /* @__PURE__ */ p("span", {
6727
6836
  className: "affix",
6728
6837
  children: h
@@ -6761,7 +6870,7 @@ var Qn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6761
6870
  }) : null
6762
6871
  ]
6763
6872
  });
6764
- }), er = 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) {
6873
+ }), 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) {
6765
6874
  j("AppOtpInput", _);
6766
6875
  let y = s(), b = h || y, { setRef: x, innerRef: S } = Q({
6767
6876
  ref: v,
@@ -6808,7 +6917,7 @@ var Qn = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
6808
6917
  });
6809
6918
  //#endregion
6810
6919
  //#region src/components/AppPageHeader.jsx
6811
- function tr({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", status: a, breadcrumbs: o, actions: s, size: c = "md", align: l = "start", divider: u = !1, sticky: d = !1, className: f = "", ...h }) {
6920
+ 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 }) {
6812
6921
  j("AppPageHeader", h);
6813
6922
  let g = [
6814
6923
  "page-header",
@@ -6867,9 +6976,9 @@ function tr({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", s
6867
6976
  }
6868
6977
  //#endregion
6869
6978
  //#region src/components/AppPagination.jsx
6870
- function nr({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
6979
+ function sr({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
6871
6980
  if (j("AppPagination", s), t <= 1) return null;
6872
- let c = mn(e, t, { siblingCount: r });
6981
+ let c = vn(e, t, { siblingCount: r });
6873
6982
  return /* @__PURE__ */ p("nav", {
6874
6983
  className: [
6875
6984
  "pagination-nav",
@@ -6927,7 +7036,7 @@ function nr({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
6927
7036
  }
6928
7037
  //#endregion
6929
7038
  //#region src/components/AppPhoneNumberInput.jsx
6930
- var rr = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, label: a = "Phone number", placeholder: o, required: c = !1, error: l, fieldClassName: u = "", ...d }, f) {
7039
+ 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, fieldClassName: u = "", ...d }, f) {
6931
7040
  j("AppPhoneNumberInput", d);
6932
7041
  let h = s(), g = i || h, _ = l && g ? `${g}-error` : void 0, { setRef: v } = Q({
6933
7042
  ref: f,
@@ -6964,7 +7073,7 @@ var rr = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name:
6964
7073
  });
6965
7074
  //#endregion
6966
7075
  //#region src/components/AppPricingCard.jsx
6967
- function ir({ 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 }) {
7076
+ 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 }) {
6968
7077
  return j("AppPricingCard", u), /* @__PURE__ */ m("div", {
6969
7078
  className: [
6970
7079
  "plan-card",
@@ -7018,21 +7127,21 @@ function ir({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
7018
7127
  }
7019
7128
  //#endregion
7020
7129
  //#region src/components/AppProgress.jsx
7021
- var ar = [
7130
+ var ur = [
7022
7131
  "info",
7023
7132
  "success",
7024
7133
  "warning",
7025
7134
  "danger",
7026
7135
  "neutral"
7027
7136
  ];
7028
- function or(e, t) {
7137
+ function dr(e, t) {
7029
7138
  if (!(t > 0)) return 0;
7030
7139
  let n = Math.min(100, Math.max(0, e / t * 100));
7031
7140
  return Number(n.toFixed(2));
7032
7141
  }
7033
- function sr({ 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 }) {
7142
+ 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 }) {
7034
7143
  j("AppProgress", u);
7035
- let d = zt(n), f = ar.includes(d) ? d : "info", m = or(e, t), h = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, g = [
7144
+ let d = Ht(n), f = ur.includes(d) ? d : "info", m = dr(e, t), h = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, g = [
7036
7145
  "progress-bar",
7037
7146
  `wui-progress-${f}`,
7038
7147
  o || s ? "progress-bar-striped" : "",
@@ -7056,8 +7165,8 @@ function sr({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
7056
7165
  }
7057
7166
  //#endregion
7058
7167
  //#region src/components/AppRadio.jsx
7059
- var cr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
7060
- return j("AppRadio", o), /* @__PURE__ */ p(qt, {
7168
+ var pr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
7169
+ return j("AppRadio", o), /* @__PURE__ */ p(Xt, {
7061
7170
  ref: s,
7062
7171
  label: e,
7063
7172
  id: t,
@@ -7072,7 +7181,7 @@ var cr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
7072
7181
  });
7073
7182
  //#endregion
7074
7183
  //#region src/components/AppRepeater.jsx
7075
- function lr({ 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 }) {
7184
+ 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 }) {
7076
7185
  j("AppRepeater", d);
7077
7186
  let f = typeof c == "number" && e.length >= c, h = !!r && e.length > s;
7078
7187
  return /* @__PURE__ */ m("div", {
@@ -7117,7 +7226,7 @@ function lr({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "
7117
7226
  }
7118
7227
  //#endregion
7119
7228
  //#region src/components/AppResourceCard.jsx
7120
- function ur({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
7229
+ function hr({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
7121
7230
  j("AppResourceCard", s);
7122
7231
  let c = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
7123
7232
  className: "res-card-icon",
@@ -7151,7 +7260,7 @@ function ur({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
7151
7260
  }
7152
7261
  //#endregion
7153
7262
  //#region src/components/AppResult.jsx
7154
- var dr = {
7263
+ var gr = {
7155
7264
  success: {
7156
7265
  icon: "check-circle",
7157
7266
  tone: "success"
@@ -7172,9 +7281,9 @@ var dr = {
7172
7281
  404: { tone: "muted" },
7173
7282
  500: { tone: "muted" }
7174
7283
  };
7175
- function fr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
7284
+ function _r({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
7176
7285
  j("AppResult", s);
7177
- let c = dr[e] || dr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
7286
+ let c = gr[e] || gr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
7178
7287
  return /* @__PURE__ */ m("div", {
7179
7288
  className: [
7180
7289
  "result",
@@ -7212,7 +7321,7 @@ function fr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
7212
7321
  }
7213
7322
  //#endregion
7214
7323
  //#region src/components/AppScrollbar.jsx
7215
- function pr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7324
+ function vr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7216
7325
  return j("AppScrollbar", i), /* @__PURE__ */ p("div", {
7217
7326
  className: t ? `wui-scroll ${t}` : "wui-scroll",
7218
7327
  style: n == null ? r : {
@@ -7225,7 +7334,7 @@ function pr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7225
7334
  }
7226
7335
  //#endregion
7227
7336
  //#region src/components/AppSearch.jsx
7228
- function mr({ 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 }) {
7337
+ 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 }) {
7229
7338
  j("AppSearch", u);
7230
7339
  let d = t || n;
7231
7340
  return /* @__PURE__ */ m("div", {
@@ -7272,7 +7381,7 @@ function mr({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
7272
7381
  }
7273
7382
  //#endregion
7274
7383
  //#region src/components/AppSegmented.jsx
7275
- function hr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: l = !1, disabled: d = !1, className: f = "", ...h }) {
7384
+ function br({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: l = !1, disabled: d = !1, className: f = "", ...h }) {
7276
7385
  j("AppSegmented", h);
7277
7386
  let g = s(), _ = i || g, v = u(null), y = u(null), b = [
7278
7387
  "segmented",
@@ -7347,7 +7456,7 @@ function hr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
7347
7456
  }
7348
7457
  //#endregion
7349
7458
  //#region src/components/AppSelect.jsx
7350
- var gr = (e) => e == null ? "" : e.label ?? e.text ?? "", _r = 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) {
7459
+ 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) {
7351
7460
  j("AppSelect", O);
7352
7461
  let A = s(), { setRef: M, innerRef: N } = Q({
7353
7462
  ref: k,
@@ -7359,10 +7468,10 @@ var gr = (e) => e == null ? "" : e.label ?? e.text ?? "", _r = i(function({ valu
7359
7468
  if (!e) return;
7360
7469
  let t = n.map((e) => ({
7361
7470
  value: e.value,
7362
- label: gr(e),
7471
+ label: xr(e),
7363
7472
  icon: e.icon
7364
7473
  }));
7365
- Ct(t, e.options) || (e.options = t);
7474
+ Et(t, e.options) || (e.options = t);
7366
7475
  }, [n, N]);
7367
7476
  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", {
7368
7477
  "aria-label": T || (typeof h == "string" ? h : void 0),
@@ -7395,7 +7504,7 @@ var gr = (e) => e == null ? "" : e.label ?? e.text ?? "", _r = i(function({ valu
7395
7504
  children: [
7396
7505
  h,
7397
7506
  g && /* @__PURE__ */ p(Z, {}),
7398
- y && /* @__PURE__ */ p(yt, {
7507
+ y && /* @__PURE__ */ p(St, {
7399
7508
  label: b,
7400
7509
  children: y
7401
7510
  })
@@ -7423,7 +7532,7 @@ var gr = (e) => e == null ? "" : e.label ?? e.text ?? "", _r = i(function({ valu
7423
7532
  });
7424
7533
  //#endregion
7425
7534
  //#region src/components/AppShell.jsx
7426
- function vr({ 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 }) {
7535
+ 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 }) {
7427
7536
  j("AppShell", y);
7428
7537
  let [b, x] = d(!1), [S, C] = d(!1), [w, T] = d(!1), E = u ?? b, D = () => {
7429
7538
  let e = !E;
@@ -7471,7 +7580,7 @@ function vr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7471
7580
  children: [e.label && /* @__PURE__ */ p("div", {
7472
7581
  className: "app-nav-group-label",
7473
7582
  children: e.label
7474
- }), e.items.map((e) => /* @__PURE__ */ p(yr, {
7583
+ }), e.items.map((e) => /* @__PURE__ */ p(wr, {
7475
7584
  item: e,
7476
7585
  linkComponent: _,
7477
7586
  onNavigate: () => C(!1)
@@ -7538,7 +7647,7 @@ function vr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7538
7647
  ]
7539
7648
  });
7540
7649
  }
7541
- function yr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7650
+ function wr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7542
7651
  let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [s, c] = d(a);
7543
7652
  o(() => {
7544
7653
  a && !s && c(!0);
@@ -7578,7 +7687,7 @@ function yr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7578
7687
  className: `app-nav-sub${s ? " expanded" : ""}`,
7579
7688
  children: /* @__PURE__ */ p("div", {
7580
7689
  className: "app-nav-sub-inner",
7581
- children: e.children.map((e) => /* @__PURE__ */ p(yr, {
7690
+ children: e.children.map((e) => /* @__PURE__ */ p(wr, {
7582
7691
  item: e,
7583
7692
  linkComponent: t,
7584
7693
  onNavigate: n,
@@ -7619,7 +7728,7 @@ function yr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7619
7728
  }
7620
7729
  //#endregion
7621
7730
  //#region src/components/AppSidebarMenu.jsx
7622
- var br = {
7731
+ var Tr = {
7623
7732
  left: "start",
7624
7733
  right: "end",
7625
7734
  start: "start",
@@ -7627,9 +7736,9 @@ var br = {
7627
7736
  top: "top",
7628
7737
  bottom: "bottom"
7629
7738
  };
7630
- function xr({ 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 }) {
7739
+ 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 }) {
7631
7740
  j("AppSidebarMenu", b);
7632
- let { style: x, ...S } = b, w = br[n] || "end", T = c || l || x ? {
7741
+ let { style: x, ...S } = b, w = Tr[n] || "end", T = c || l || x ? {
7633
7742
  ...c && { "--asm-width": c },
7634
7743
  ...l && { "--asm-max-width": l },
7635
7744
  ...x
@@ -7682,14 +7791,14 @@ function xr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
7682
7791
  }
7683
7792
  //#endregion
7684
7793
  //#region src/components/AppSlider.jsx
7685
- var Sr = 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) {
7794
+ 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) {
7686
7795
  j("AppSlider", E);
7687
7796
  let O = s(), k = C || d || r && f || O, A = r, { setRef: M, innerRef: N } = Q({
7688
7797
  ref: D,
7689
7798
  value: A ? void 0 : e,
7690
7799
  onChange: i,
7691
- readValue: A ? Et : void 0,
7692
- writeValue: A ? void 0 : Dt
7800
+ readValue: A ? kt : void 0,
7801
+ writeValue: A ? void 0 : At
7693
7802
  });
7694
7803
  o(() => {
7695
7804
  if (!A) return;
@@ -7743,14 +7852,14 @@ var Sr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, la
7743
7852
  })
7744
7853
  ]
7745
7854
  });
7746
- }), Cr = {
7855
+ }), Or = {
7747
7856
  sm: 44,
7748
7857
  md: 56,
7749
7858
  lg: 72
7750
7859
  };
7751
- function wr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
7860
+ function kr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
7752
7861
  j("AppSplash", c);
7753
- let { style: l, ...u } = c, d = typeof a == "number" ? a : Cr[a] ?? Cr.md, f = i === "ring" ? /* @__PURE__ */ p("span", {
7862
+ let { style: l, ...u } = c, d = typeof a == "number" ? a : Or[a] ?? Or.md, f = i === "ring" ? /* @__PURE__ */ p("span", {
7754
7863
  className: "splash-ring",
7755
7864
  "aria-hidden": "true"
7756
7865
  }) : i === "dots" ? /* @__PURE__ */ m("span", {
@@ -7797,16 +7906,16 @@ function wr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
7797
7906
  }
7798
7907
  //#endregion
7799
7908
  //#region src/components/AppStatusBadge.jsx
7800
- function Tr({ label: e, tone: t = "neutral", className: n = "", ...r }) {
7909
+ function Ar({ label: e, tone: t = "neutral", className: n = "", ...r }) {
7801
7910
  return j("AppStatusBadge", r), e == null || e === "" ? "—" : /* @__PURE__ */ p("span", {
7802
- className: `status-label ${zt(t)}${n ? ` ${n}` : ""}`,
7911
+ className: `status-label ${Ht(t)}${n ? ` ${n}` : ""}`,
7803
7912
  ...r,
7804
7913
  children: e
7805
7914
  });
7806
7915
  }
7807
7916
  //#endregion
7808
7917
  //#region src/components/AppStepper.jsx
7809
- function Er({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
7918
+ function jr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
7810
7919
  j("AppStepper", c);
7811
7920
  let l = t === "journey";
7812
7921
  return /* @__PURE__ */ p("nav", {
@@ -7819,7 +7928,7 @@ function Er({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
7819
7928
  "aria-label": a,
7820
7929
  ...c,
7821
7930
  children: e.map((t, n) => {
7822
- let a = t.status || Dr(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
7931
+ let a = t.status || Mr(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
7823
7932
  c = a === "done" ? /* @__PURE__ */ p(I, {
7824
7933
  name: "check",
7825
7934
  size: 14
@@ -7883,13 +7992,13 @@ function Er({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
7883
7992
  })
7884
7993
  });
7885
7994
  }
7886
- function Dr(e, t) {
7995
+ function Mr(e, t) {
7887
7996
  return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
7888
7997
  }
7889
7998
  //#endregion
7890
7999
  //#region src/components/AppSwitch.jsx
7891
- var Or = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
7892
- return j("AppSwitch", s), /* @__PURE__ */ p(qt, {
8000
+ var Nr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
8001
+ return j("AppSwitch", s), /* @__PURE__ */ p(Xt, {
7893
8002
  ref: c,
7894
8003
  label: e,
7895
8004
  id: t,
@@ -7899,12 +8008,12 @@ var Or = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "p
7899
8008
  className: o,
7900
8009
  rest: s,
7901
8010
  inputType: "checkbox",
7902
- wrapperClass: `form-check form-switch${a === "circle" ? " form-switch-circle" : ""}`
8011
+ wrapperClass: `form-check form-switch${a === "circle" ? " form-switch-circle" : a === "round" ? " form-switch-round" : ""}`
7903
8012
  });
7904
8013
  });
7905
8014
  //#endregion
7906
8015
  //#region src/components/AppTableEmptyState.jsx
7907
- function kr({ icon: e, title: t, text: n, action: r, ...i }) {
8016
+ function Pr({ icon: e, title: t, text: n, action: r, ...i }) {
7908
8017
  return j("AppTableEmptyState", i), /* @__PURE__ */ m("div", {
7909
8018
  className: "tbl-empty",
7910
8019
  ...i,
@@ -7930,7 +8039,7 @@ function kr({ icon: e, title: t, text: n, action: r, ...i }) {
7930
8039
  }
7931
8040
  //#endregion
7932
8041
  //#region src/components/AppTabs.jsx
7933
- function Ar({ 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 }) {
8042
+ 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 }) {
7934
8043
  j("AppTabs", v);
7935
8044
  let y = u(null), b = u(null), x = i === "vertical", [S, C] = d(t);
7936
8045
  o(() => {
@@ -7947,34 +8056,34 @@ function Ar({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
7947
8056
  let n = y.current;
7948
8057
  if (!n) return;
7949
8058
  let r = n.querySelector(".app-tab.active");
7950
- if (r) {
7951
- if (x) n.style.setProperty("--wui-tab-y", `${r.offsetTop}px`), n.style.setProperty("--wui-tab-h", `${r.offsetHeight}px`);
7952
- else {
7953
- n.style.setProperty("--wui-tab-x", `${r.offsetLeft}px`), n.style.setProperty("--wui-tab-w", `${r.offsetWidth}px`);
7954
- let e = r.offsetLeft, t = e + r.offsetWidth;
7955
- e - 28 < n.scrollLeft ? n.scrollLeft = Math.max(0, e - 28) : t + 28 > n.scrollLeft + n.clientWidth && (n.scrollLeft = t + 28 - n.clientWidth);
7956
- }
7957
- n.toggleAttribute("data-active-danger", !!e.find((e) => e.key === t)?.danger);
7958
- } else n.style.setProperty(x ? "--wui-tab-h" : "--wui-tab-w", "0px");
7959
- n.setAttribute("data-wui-tabs", ""), k();
8059
+ r ? (x ? (n.style.setProperty("--wui-tab-y", `${r.offsetTop}px`), n.style.setProperty("--wui-tab-h", `${r.offsetHeight}px`)) : (n.style.setProperty("--wui-tab-x", `${r.offsetLeft}px`), n.style.setProperty("--wui-tab-w", `${r.offsetWidth}px`)), n.toggleAttribute("data-active-danger", !!e.find((e) => e.key === t)?.danger)) : n.style.setProperty(x ? "--wui-tab-h" : "--wui-tab-w", "0px"), n.setAttribute("data-wui-tabs", ""), k();
7960
8060
  }, [
7961
8061
  x,
7962
8062
  e,
7963
8063
  t,
7964
8064
  k
7965
- ]);
8065
+ ]), M = a(() => {
8066
+ let e = y.current;
8067
+ if (!e || x) return;
8068
+ let t = e.querySelector(".app-tab.active");
8069
+ if (!t) return;
8070
+ let n = t.offsetLeft, r = n + t.offsetWidth;
8071
+ n - 28 < e.scrollLeft ? e.scrollLeft = Math.max(0, n - 28) : r + 28 > e.scrollLeft + e.clientWidth && (e.scrollLeft = r + 28 - e.clientWidth);
8072
+ }, [x]);
7966
8073
  c(() => {
7967
8074
  A();
7968
- }, [A]);
7969
- let M = u(A);
8075
+ }, [A]), c(() => {
8076
+ M();
8077
+ }, [t, M]);
8078
+ let N = u(A);
7970
8079
  o(() => {
7971
- M.current = A;
8080
+ N.current = A;
7972
8081
  }, [A]), o(() => {
7973
8082
  if (typeof ResizeObserver > "u") return;
7974
- let e = new ResizeObserver(() => M.current());
8083
+ let e = new ResizeObserver(() => N.current());
7975
8084
  return y.current && e.observe(y.current), b.current && e.observe(b.current), () => e.disconnect();
7976
8085
  }, [x]);
7977
- function N(t) {
8086
+ function P(t) {
7978
8087
  let r = t.target?.dataset?.key;
7979
8088
  if (r == null) return;
7980
8089
  let i = e.findIndex((e) => e.key === r);
@@ -7988,10 +8097,10 @@ function Ar({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
7988
8097
  }, s = x ? "ArrowDown" : "ArrowRight", c = x ? "ArrowUp" : "ArrowLeft", l = null;
7989
8098
  t.key === s ? l = o(i, 1) : t.key === c ? l = o(i, -1) : t.key === "Home" ? l = e.find((e) => !e.disabled) ?? null : t.key === "End" && (l = [...e].reverse().find((e) => !e.disabled) ?? null), l && (t.preventDefault(), C(l.key), O(l.key), f === "automatic" && n(l.key));
7990
8099
  }
7991
- let P = (e) => {
8100
+ let F = (e) => {
7992
8101
  let t = y.current;
7993
8102
  t && t.scrollBy({ left: e * t.clientWidth * .7 });
7994
- }, F = [
8103
+ }, L = [
7995
8104
  "app-tabs",
7996
8105
  r === "pills" ? "app-tabs-pills" : "",
7997
8106
  x ? "app-tabs-vertical" : "",
@@ -7999,15 +8108,15 @@ function Ar({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
7999
8108
  s === "lg" ? "app-tabs-lg" : "",
8000
8109
  l ? "app-tabs-fitted" : "",
8001
8110
  g
8002
- ].filter(Boolean).join(" "), L = /* @__PURE__ */ m("div", {
8111
+ ].filter(Boolean).join(" "), R = /* @__PURE__ */ m("div", {
8003
8112
  ref: y,
8004
8113
  role: "tablist",
8005
8114
  "aria-orientation": x ? "vertical" : void 0,
8006
8115
  "aria-label": h,
8007
- className: F,
8116
+ className: L,
8008
8117
  style: _,
8009
8118
  ...x ? v : void 0,
8010
- onKeyDown: N,
8119
+ onKeyDown: P,
8011
8120
  onScroll: k,
8012
8121
  children: [e.map((e) => {
8013
8122
  let r = e.key === t;
@@ -8036,7 +8145,7 @@ function Ar({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
8036
8145
  "aria-hidden": "true"
8037
8146
  })]
8038
8147
  });
8039
- return x ? L : /* @__PURE__ */ m("div", {
8148
+ return x ? R : /* @__PURE__ */ m("div", {
8040
8149
  ref: b,
8041
8150
  className: "app-tabs-wrap",
8042
8151
  ...v,
@@ -8046,19 +8155,19 @@ function Ar({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
8046
8155
  className: "app-tabs-scroll-btn prev",
8047
8156
  "aria-label": "Scroll tabs backward",
8048
8157
  tabIndex: -1,
8049
- onClick: () => P(-1),
8158
+ onClick: () => F(-1),
8050
8159
  children: /* @__PURE__ */ p(I, {
8051
8160
  name: "chevron-left",
8052
8161
  size: 16
8053
8162
  })
8054
8163
  }),
8055
- L,
8164
+ R,
8056
8165
  /* @__PURE__ */ p("button", {
8057
8166
  type: "button",
8058
8167
  className: "app-tabs-scroll-btn next",
8059
8168
  "aria-label": "Scroll tabs forward",
8060
8169
  tabIndex: -1,
8061
- onClick: () => P(1),
8170
+ onClick: () => F(1),
8062
8171
  children: /* @__PURE__ */ p(I, {
8063
8172
  name: "chevron-right",
8064
8173
  size: 16
@@ -8069,14 +8178,14 @@ function Ar({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
8069
8178
  }
8070
8179
  //#endregion
8071
8180
  //#region src/components/AppTagInput.jsx
8072
- var jr = 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) {
8181
+ 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) {
8073
8182
  j("AppTagInput", x);
8074
8183
  let C = s(), w = h || r || C, { setRef: T } = Q({
8075
8184
  ref: S,
8076
8185
  value: e,
8077
8186
  onChange: t,
8078
- readValue: wt,
8079
- writeValue: Tt
8187
+ readValue: Dt,
8188
+ writeValue: Ot
8080
8189
  });
8081
8190
  return /* @__PURE__ */ m("div", {
8082
8191
  className: `field${v ? ` ${v}` : ""}`,
@@ -8087,7 +8196,7 @@ var jr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8087
8196
  children: [
8088
8197
  i,
8089
8198
  c && /* @__PURE__ */ p(Z, {}),
8090
- y && /* @__PURE__ */ p(yt, {
8199
+ y && /* @__PURE__ */ p(St, {
8091
8200
  label: b,
8092
8201
  children: y
8093
8202
  })
@@ -8120,7 +8229,7 @@ var jr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8120
8229
  }) : null
8121
8230
  ]
8122
8231
  });
8123
- }), Mr = 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) {
8232
+ }), 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) {
8124
8233
  j("AppTextarea", v);
8125
8234
  let b = s(), S = l || b, C = [
8126
8235
  "textarea",
@@ -8152,7 +8261,7 @@ var jr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8152
8261
  children: [
8153
8262
  e,
8154
8263
  t && /* @__PURE__ */ p(Z, {}),
8155
- i && /* @__PURE__ */ p(yt, {
8264
+ i && /* @__PURE__ */ p(St, {
8156
8265
  label: o,
8157
8266
  children: i
8158
8267
  })
@@ -8182,50 +8291,85 @@ var jr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8182
8291
  }) : null
8183
8292
  ]
8184
8293
  });
8185
- });
8186
- //#endregion
8187
- //#region src/components/AppTimeline.jsx
8188
- function Nr({ items: e = [], className: t = "", ...n }) {
8189
- return j("AppTimeline", n), /* @__PURE__ */ p("ol", {
8190
- className: `timeline${t ? ` ${t}` : ""}`,
8191
- ...n,
8192
- children: e.map((e, t) => /* @__PURE__ */ m("li", {
8193
- className: `timeline-item${e.tone && e.tone !== "neutral" ? ` ${e.tone}` : ""}`,
8194
- children: [/* @__PURE__ */ p("span", {
8195
- className: "timeline-dot",
8196
- children: /* @__PURE__ */ p(I, {
8197
- name: e.icon || "circle",
8198
- size: 12
8199
- })
8200
- }), /* @__PURE__ */ m("div", {
8201
- className: "timeline-body",
8202
- children: [
8203
- /* @__PURE__ */ p("div", {
8204
- className: "timeline-title",
8205
- children: e.title
8206
- }),
8207
- (e.at || e.by) && /* @__PURE__ */ m("div", {
8208
- className: "timeline-meta",
8209
- children: [e.at && /* @__PURE__ */ p("span", {
8210
- className: "timeline-at",
8211
- children: e.at
8212
- }), e.by && /* @__PURE__ */ p("span", {
8213
- className: "timeline-by",
8214
- children: e.by
8215
- })]
8216
- }),
8217
- e.note && /* @__PURE__ */ p("p", {
8218
- className: "timeline-note",
8219
- children: e.note
8220
- })
8221
- ]
8222
- })]
8223
- }, e.key ?? `${e.at}-${t}`))
8294
+ }), Rr = {
8295
+ done: "check",
8296
+ current: "clock",
8297
+ "on-hold": "lock",
8298
+ rejected: "x",
8299
+ cancelled: "minus",
8300
+ skipped: "arrow-right",
8301
+ upcoming: null
8302
+ };
8303
+ function zr({ items: e = [], variant: t = "feed", size: n, className: r = "", style: i, ...a }) {
8304
+ j("AppTimeline", a);
8305
+ 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;
8306
+ return /* @__PURE__ */ p("ol", {
8307
+ className: s,
8308
+ style: c ? {
8309
+ ...i,
8310
+ "--wui-timeline-dot": `${c}px`
8311
+ } : i,
8312
+ ...a,
8313
+ children: e.map((e, t) => {
8314
+ 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";
8315
+ return /* @__PURE__ */ m("li", {
8316
+ className: `timeline-item${r}${i}`,
8317
+ children: [/* @__PURE__ */ p("span", {
8318
+ className: "timeline-dot",
8319
+ children: a ? /* @__PURE__ */ p(I, {
8320
+ name: a,
8321
+ size: l
8322
+ }) : null
8323
+ }), /* @__PURE__ */ m("div", {
8324
+ className: "timeline-body",
8325
+ children: [
8326
+ o ? /* @__PURE__ */ m("div", {
8327
+ className: "timeline-head",
8328
+ children: [/* @__PURE__ */ p("div", {
8329
+ className: "timeline-title",
8330
+ children: e.title
8331
+ }), e.at && /* @__PURE__ */ p("span", {
8332
+ className: "timeline-at",
8333
+ children: e.at
8334
+ })]
8335
+ }) : /* @__PURE__ */ p("div", {
8336
+ className: "timeline-title",
8337
+ children: e.title
8338
+ }),
8339
+ e.description && /* @__PURE__ */ p("div", {
8340
+ className: "timeline-desc",
8341
+ children: e.description
8342
+ }),
8343
+ !o && (e.at || e.by) && /* @__PURE__ */ m("div", {
8344
+ className: "timeline-meta",
8345
+ children: [e.at && /* @__PURE__ */ p("span", {
8346
+ className: "timeline-at",
8347
+ children: e.at
8348
+ }), e.by && /* @__PURE__ */ p("span", {
8349
+ className: "timeline-by",
8350
+ children: e.by
8351
+ })]
8352
+ }),
8353
+ o && e.by && /* @__PURE__ */ p("div", {
8354
+ className: "timeline-meta",
8355
+ children: /* @__PURE__ */ p("span", {
8356
+ className: "timeline-by",
8357
+ children: e.by
8358
+ })
8359
+ }),
8360
+ e.note && /* @__PURE__ */ p("p", {
8361
+ className: "timeline-note",
8362
+ children: e.note
8363
+ })
8364
+ ]
8365
+ })]
8366
+ }, e.key ?? `${e.at}-${t}`);
8367
+ })
8224
8368
  });
8225
8369
  }
8226
8370
  //#endregion
8227
8371
  //#region src/components/AppTimePicker.jsx
8228
- var Pr = 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) {
8372
+ 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) {
8229
8373
  j("AppTimePicker", b);
8230
8374
  let S = s(), C = _ || o || S, { setRef: w } = Q({
8231
8375
  ref: x,
@@ -8270,34 +8414,50 @@ var Pr = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
8270
8414
  })
8271
8415
  ]
8272
8416
  });
8273
- }), Fr = 6, $ = [], Ir = /* @__PURE__ */ new Set(), Lr = /* @__PURE__ */ new Map(), Rr = 0;
8274
- function zr() {
8275
- for (let e of Ir) e($);
8417
+ }), Vr = 6, $ = [], Hr = /* @__PURE__ */ new Set(), Ur = /* @__PURE__ */ new Map(), Wr = 0;
8418
+ function Gr() {
8419
+ for (let e of Hr) e($);
8276
8420
  }
8277
- function Br(e) {
8278
- let t = Lr.get(e);
8279
- t !== void 0 && (clearTimeout(t), Lr.delete(e));
8421
+ function Kr(e) {
8422
+ let t = Ur.get(e);
8423
+ t !== void 0 && (clearTimeout(t), Ur.delete(e));
8280
8424
  }
8281
- function Vr(e) {
8282
- if (e.length <= Fr) return e;
8425
+ function qr(e) {
8426
+ if (e.length <= Vr) return e;
8283
8427
  let t = [...e];
8284
- for (; t.length > Fr;) {
8428
+ for (; t.length > Vr;) {
8285
8429
  let e = t.findIndex((e) => e.duration !== 0);
8286
8430
  t.splice(e === -1 ? 0 : e, 1);
8287
8431
  }
8288
8432
  return t;
8289
8433
  }
8290
- function Hr(e) {
8291
- return Ir.add(e), e($), () => Ir.delete(e);
8434
+ function Jr(e) {
8435
+ return Hr.add(e), e($), () => Hr.delete(e);
8292
8436
  }
8293
- function Ur(e, t, n = {}) {
8437
+ function Yr(e, t, n = {}) {
8294
8438
  let r = n.id, i = r || typeof e != "string" ? void 0 : `${t}:${e}`;
8295
8439
  if (r) {
8296
- for (let e of $) e.externalId === r && Br(e.id);
8297
- $ = $.filter((e) => e.externalId !== r);
8440
+ let i = $.find((e) => e.externalId === r);
8441
+ if (i) {
8442
+ Kr(i.id);
8443
+ let r = n.duration === void 0 ? 5e3 : n.duration;
8444
+ $ = $.map((a) => a.id === i.id ? {
8445
+ ...a,
8446
+ message: e,
8447
+ variant: t,
8448
+ title: n.title,
8449
+ duration: r,
8450
+ action: n.action,
8451
+ animation: n.animation,
8452
+ shape: n.shape,
8453
+ surface: n.surface,
8454
+ progress: n.progress
8455
+ } : a), Gr(), r > 0 && Ur.set(i.id, setTimeout(() => Xr(i.id), r));
8456
+ return;
8457
+ }
8298
8458
  } else if (i && $.some((e) => e.key === i)) return;
8299
- let a = ++Rr, o = n.duration === void 0 ? 5e3 : n.duration;
8300
- $ = Vr([...$, {
8459
+ let a = ++Wr, o = n.duration === void 0 ? 5e3 : n.duration;
8460
+ $ = qr([...$, {
8301
8461
  id: a,
8302
8462
  externalId: r,
8303
8463
  message: e,
@@ -8305,20 +8465,24 @@ function Ur(e, t, n = {}) {
8305
8465
  title: n.title,
8306
8466
  duration: o,
8307
8467
  action: n.action,
8468
+ animation: n.animation,
8469
+ shape: n.shape,
8470
+ surface: n.surface,
8471
+ progress: n.progress,
8308
8472
  key: i
8309
- }]), zr(), o > 0 && Lr.set(a, setTimeout(() => Wr(a), o));
8473
+ }]), Gr(), o > 0 && Ur.set(a, setTimeout(() => Xr(a), o));
8310
8474
  }
8311
- function Wr(e) {
8312
- Br(e);
8475
+ function Xr(e) {
8476
+ Kr(e);
8313
8477
  let t = $.filter((t) => t.id !== e);
8314
- t.length !== $.length && ($ = t, zr());
8478
+ t.length !== $.length && ($ = t, Gr());
8315
8479
  }
8316
- function Gr() {
8317
- $.length !== 0 && ($ = [], zr());
8480
+ function Zr() {
8481
+ $.length !== 0 && ($ = [], Gr());
8318
8482
  }
8319
8483
  //#endregion
8320
8484
  //#region src/components/AppToast.jsx
8321
- var Kr = {
8485
+ var Qr = {
8322
8486
  success: {
8323
8487
  icon: "check-circle-fill",
8324
8488
  assertive: !1
@@ -8335,7 +8499,7 @@ var Kr = {
8335
8499
  icon: "x-circle-fill",
8336
8500
  assertive: !0
8337
8501
  }
8338
- }, qr = {
8502
+ }, $r = {
8339
8503
  "top-start": "top-0 start-0",
8340
8504
  "top-center": "top-0 start-50 translate-middle-x",
8341
8505
  "top-end": "top-0 end-0",
@@ -8343,103 +8507,196 @@ var Kr = {
8343
8507
  "bottom-start": "bottom-0 start-0",
8344
8508
  "bottom-center": "bottom-0 start-50 translate-middle-x",
8345
8509
  "bottom-end": "bottom-0 end-0"
8346
- }, Jr = 64;
8347
- function Yr({ position: e = "bottom-end", maxVisible: t = 4 }) {
8348
- let [n, r] = d([]);
8349
- o(() => Hr(r), []);
8350
- let i = Math.max(0, n.length - t), a = i ? n.slice(i) : n;
8510
+ }, ei = 64, ti = /* @__PURE__ */ new Set([
8511
+ "rise",
8512
+ "organic",
8513
+ "jelly",
8514
+ "spring"
8515
+ ]), ni = /* @__PURE__ */ new Set([
8516
+ "rounded",
8517
+ "pill",
8518
+ "sharp"
8519
+ ]), ri = /* @__PURE__ */ new Set(["auto", "inverse"]);
8520
+ function ii({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto" }) {
8521
+ let [a, s] = d([]);
8522
+ o(() => Jr(s), []);
8523
+ let c = Math.max(0, a.length - t), l = c ? a.slice(c) : a;
8351
8524
  return /* @__PURE__ */ m("div", {
8352
- className: `wui-toast-container toast-container position-fixed ${qr[e] ?? qr["bottom-end"]} p-3`,
8353
- children: [i > 0 && /* @__PURE__ */ m("div", {
8525
+ className: `wui-toast-container toast-container position-fixed ${$r[e] ?? $r["bottom-end"]} p-3`,
8526
+ children: [c > 0 && /* @__PURE__ */ m("div", {
8354
8527
  className: "wui-toast-more",
8355
8528
  "aria-hidden": "true",
8356
8529
  children: [
8357
8530
  "+",
8358
- i,
8531
+ c,
8359
8532
  " more"
8360
8533
  ]
8361
- }), a.map((e) => /* @__PURE__ */ p(Xr, { toast: e }, e.id))]
8534
+ }), l.map((e) => /* @__PURE__ */ p(ai, {
8535
+ toast: e,
8536
+ defaultAnimation: n,
8537
+ defaultShape: r,
8538
+ defaultSurface: i
8539
+ }, e.id))]
8362
8540
  });
8363
8541
  }
8364
- function Xr({ toast: e }) {
8365
- let t = Kr[e.variant] ?? Kr.success, n = e.duration === 0, [r, i] = d(0), [a, o] = d(!1), s = u(null), c = () => Wr(e.id), l = (e) => {
8366
- e.button !== 0 || e.target.closest("button") || (s.current = e.clientX, o(!0), e.currentTarget.setPointerCapture?.(e.pointerId));
8367
- }, f = (e) => {
8368
- s.current !== null && i(e.clientX - s.current);
8369
- }, h = () => {
8370
- s.current = null, o(!1), i(0);
8371
- }, g = (e) => {
8372
- if (s.current === null) return;
8373
- let t = e.clientX - s.current;
8374
- if (Math.abs(t) > Jr) {
8375
- c();
8542
+ function ai({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
8543
+ 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) => {
8544
+ e.button !== 0 || e.target.closest("button") || (v.current = e.clientX, _(!0), e.currentTarget.setPointerCapture?.(e.pointerId));
8545
+ }, x = (e) => {
8546
+ v.current !== null && h(e.clientX - v.current);
8547
+ }, S = () => {
8548
+ v.current = null, _(!1), h(0);
8549
+ }, C = (e) => {
8550
+ if (v.current === null) return;
8551
+ let t = e.clientX - v.current;
8552
+ if (Math.abs(t) > ei) {
8553
+ y();
8376
8554
  return;
8377
8555
  }
8378
- h();
8379
- }, _ = r ? {
8380
- transform: `translateX(${r}px)`,
8381
- opacity: Math.max(0, 1 - Math.abs(r) / 200)
8556
+ S();
8557
+ }, w = f ? {
8558
+ transform: `translateX(${f}px)`,
8559
+ opacity: Math.max(0, 1 - Math.abs(f) / 200)
8382
8560
  } : void 0;
8383
8561
  return /* @__PURE__ */ m("div", {
8384
- className: `toast show wui-toast wui-toast--${e.variant}${a ? " wui-toast--dragging" : ""}`,
8385
- role: t.assertive ? "alert" : "status",
8386
- "aria-live": t.assertive ? "assertive" : "polite",
8562
+ className: `toast show wui-toast wui-toast--${e.variant}${c}${g ? " wui-toast--dragging" : ""}`,
8563
+ role: i.assertive ? "alert" : "status",
8564
+ "aria-live": i.assertive ? "assertive" : "polite",
8387
8565
  "aria-atomic": "true",
8388
- style: _,
8389
- onPointerDown: l,
8390
- onPointerMove: f,
8391
- onPointerUp: g,
8392
- onPointerCancel: h,
8566
+ style: w,
8567
+ onPointerDown: b,
8568
+ onPointerMove: x,
8569
+ onPointerUp: C,
8570
+ onPointerCancel: S,
8393
8571
  children: [
8394
8572
  /* @__PURE__ */ p("span", {
8395
8573
  className: "wui-toast-icon",
8396
8574
  "aria-hidden": "true",
8397
8575
  children: /* @__PURE__ */ p(I, {
8398
- name: t.icon,
8576
+ name: i.icon,
8399
8577
  size: 20
8400
8578
  })
8401
8579
  }),
8402
8580
  /* @__PURE__ */ m("div", {
8403
8581
  className: "wui-toast-content",
8404
- children: [e.title && /* @__PURE__ */ p("div", {
8405
- className: "wui-toast-title",
8406
- children: e.title
8407
- }), /* @__PURE__ */ p("div", {
8408
- className: "wui-toast-message",
8409
- children: e.message
8410
- })]
8411
- }),
8412
- e.action && /* @__PURE__ */ p("button", {
8413
- type: "button",
8414
- className: "btn btn-sm btn-link wui-toast-action",
8415
- onClick: () => {
8416
- e.action.onClick?.(), c();
8417
- },
8418
- children: e.action.label
8582
+ children: [
8583
+ e.title && /* @__PURE__ */ p("div", {
8584
+ className: "wui-toast-title",
8585
+ children: e.title
8586
+ }),
8587
+ /* @__PURE__ */ p("div", {
8588
+ className: "wui-toast-message",
8589
+ children: e.message
8590
+ }),
8591
+ typeof e.progress == "number" && /* @__PURE__ */ m("div", {
8592
+ className: "wui-toast-task",
8593
+ children: [/* @__PURE__ */ p("div", {
8594
+ className: "wui-toast-track",
8595
+ role: "progressbar",
8596
+ "aria-valuemin": 0,
8597
+ "aria-valuemax": 100,
8598
+ "aria-valuenow": Math.min(100, Math.max(0, Math.round(e.progress))),
8599
+ children: /* @__PURE__ */ p("div", {
8600
+ className: "wui-toast-track-fill",
8601
+ style: { width: `${Math.min(100, Math.max(0, e.progress))}%` }
8602
+ })
8603
+ }), /* @__PURE__ */ m("span", {
8604
+ className: "wui-toast-track-pct",
8605
+ "aria-hidden": "true",
8606
+ children: [Math.min(100, Math.max(0, Math.round(e.progress))), "%"]
8607
+ })]
8608
+ }),
8609
+ e.action && /* @__PURE__ */ p("button", {
8610
+ type: "button",
8611
+ className: "wui-toast-action",
8612
+ onClick: () => {
8613
+ e.action.onClick?.(), y();
8614
+ },
8615
+ children: e.action.label
8616
+ })
8617
+ ]
8419
8618
  }),
8420
8619
  /* @__PURE__ */ p("button", {
8421
8620
  type: "button",
8422
8621
  className: "btn-close wui-toast-close",
8423
8622
  "aria-label": "Close",
8424
- onClick: c
8623
+ onClick: y
8425
8624
  }),
8426
- !n && /* @__PURE__ */ p("div", {
8625
+ !l && /* @__PURE__ */ p("div", {
8427
8626
  className: "wui-toast-progress",
8428
8627
  style: { animationDuration: `${e.duration}ms` },
8429
- onAnimationEnd: c
8628
+ onAnimationEnd: y
8430
8629
  })
8431
8630
  ]
8432
8631
  });
8433
8632
  }
8434
8633
  //#endregion
8634
+ //#region src/components/AppToolbar.jsx
8635
+ function oi({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
8636
+ j("AppToolbar", u);
8637
+ let f = s(), h = o || f, [g, _] = d(r), v = n === void 0 ? g : n;
8638
+ return /* @__PURE__ */ m("div", {
8639
+ className: [
8640
+ "toolbar",
8641
+ c ? "is-disabled" : "",
8642
+ l
8643
+ ].filter(Boolean).join(" "),
8644
+ role: "toolbar",
8645
+ "aria-label": a,
8646
+ "aria-disabled": c || void 0,
8647
+ ...u,
8648
+ children: [
8649
+ e.map((e) => /* @__PURE__ */ m("label", {
8650
+ className: "toolbar-item",
8651
+ children: [
8652
+ /* @__PURE__ */ p("input", {
8653
+ type: "radio",
8654
+ className: "toolbar-input",
8655
+ name: h,
8656
+ value: e.value,
8657
+ checked: e.value === v,
8658
+ disabled: c || e.disabled,
8659
+ onChange: () => {
8660
+ n === void 0 && _(e.value), i?.(e.value);
8661
+ }
8662
+ }),
8663
+ /* @__PURE__ */ p("span", {
8664
+ className: "toolbar-item-icon",
8665
+ children: L(e.icon, { size: 16 })
8666
+ }),
8667
+ /* @__PURE__ */ p("span", {
8668
+ className: "toolbar-item-label",
8669
+ children: e.title
8670
+ })
8671
+ ]
8672
+ }, e.value)),
8673
+ t.length > 0 && /* @__PURE__ */ p("span", {
8674
+ className: "toolbar-sep",
8675
+ "aria-hidden": "true"
8676
+ }),
8677
+ t.map((e, t) => /* @__PURE__ */ p("button", {
8678
+ type: "button",
8679
+ className: "toolbar-action",
8680
+ "aria-label": e.title,
8681
+ disabled: c || e.disabled,
8682
+ onClick: e.onClick,
8683
+ children: /* @__PURE__ */ p("span", {
8684
+ className: "toolbar-item-icon",
8685
+ children: L(e.icon, { size: 16 })
8686
+ })
8687
+ }, e.key ?? `${e.title}-${t}`))
8688
+ ]
8689
+ });
8690
+ }
8691
+ //#endregion
8435
8692
  //#region src/components/AppTooltip.jsx
8436
- var Zr = {
8693
+ var si = {
8437
8694
  start: "left",
8438
8695
  end: "right",
8439
8696
  top: "top",
8440
8697
  bottom: "bottom"
8441
8698
  };
8442
- function Qr({ content: e, children: t, placement: r = "top", tone: i = "default", size: a = "md", className: o = "", ...c }) {
8699
+ function ci({ content: e, children: t, placement: r = "top", tone: i = "default", size: a = "md", className: o = "", ...c }) {
8443
8700
  j("AppTooltip", c);
8444
8701
  let l = /* @__PURE__ */ p(E, {
8445
8702
  id: s(),
@@ -8453,31 +8710,31 @@ function Qr({ content: e, children: t, placement: r = "top", tone: i = "default"
8453
8710
  });
8454
8711
  return /* @__PURE__ */ p(w, {
8455
8712
  trigger: ["hover", "focus"],
8456
- placement: Zr[r] || r,
8713
+ placement: si[r] || r,
8457
8714
  overlay: l,
8458
8715
  children: n(t, c)
8459
8716
  });
8460
8717
  }
8461
8718
  //#endregion
8462
8719
  //#region src/components/AppWizard.jsx
8463
- var $r = 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", nonLinear: g = !1, hideStepper: _ = !1, disabled: v = !1, label: y = "Progress", backLabel: b = "Back", nextLabel: x = "Next", skipLabel: S = "Skip", finishLabel: C = "Finish", className: w = "", ...T }, E) {
8464
- j("AppWizard", T);
8465
- let D = u(null), O = (e) => {
8466
- D.current = e, typeof E == "function" ? E(e) : E && (E.current = e);
8467
- }, k = e.toArray(n), A = [m && `wui-step-tone-${m}`, w].filter(Boolean).join(" ");
8720
+ 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) {
8721
+ j("AppWizard", E);
8722
+ let O = u(null), k = (e) => {
8723
+ O.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
8724
+ }, A = e.toArray(n), M = [m && `wui-step-tone-${m}`, T].filter(Boolean).join(" ");
8468
8725
  return o(() => {
8469
- let e = D.current;
8726
+ let e = O.current;
8470
8727
  if (!e) return;
8471
8728
  let t = r === void 0 ? i : r;
8472
8729
  t && (e.active = t);
8473
8730
  }, []), o(() => {
8474
- let e = D.current;
8731
+ let e = O.current;
8475
8732
  e && r !== void 0 && Number(e.active) !== r && (e.active = r);
8476
8733
  }, [r]), o(() => {
8477
- let e = D.current;
8734
+ let e = O.current;
8478
8735
  e && (e.beforeNext = l ?? null);
8479
8736
  }, [l]), o(() => {
8480
- let e = D.current;
8737
+ let e = O.current;
8481
8738
  if (!e) return;
8482
8739
  let t = (e) => a?.(e.detail.index, e.detail), n = (e) => s?.(e.detail), r = (e) => c?.(e.detail.index), i = (e) => d?.(e.detail.index);
8483
8740
  return e.addEventListener("wui-wizard:change", t), e.addEventListener("wui-wizard:finish", n), e.addEventListener("wui-wizard:skip", r), e.addEventListener("wui-wizard:invalid", i), () => {
@@ -8489,63 +8746,64 @@ var $r = i(function({ steps: t = [], children: n, active: r, defaultActive: i =
8489
8746
  c,
8490
8747
  d
8491
8748
  ]), /* @__PURE__ */ p("wui-wizard", {
8492
- ref: O,
8749
+ ref: k,
8493
8750
  variant: f,
8494
8751
  orientation: h,
8495
- "non-linear": g ? "" : void 0,
8496
- "hide-stepper": _ ? "" : void 0,
8497
- disabled: v ? "" : void 0,
8498
- label: y,
8499
- "back-label": b,
8500
- "next-label": x,
8501
- "skip-label": S,
8502
- "finish-label": C,
8503
- className: A || void 0,
8504
- ...T,
8752
+ skippable: g ? "" : void 0,
8753
+ "non-linear": _ ? "" : void 0,
8754
+ "hide-stepper": v ? "" : void 0,
8755
+ disabled: y ? "" : void 0,
8756
+ label: b,
8757
+ "back-label": x,
8758
+ "next-label": S,
8759
+ "skip-label": C,
8760
+ "finish-label": w,
8761
+ className: M || void 0,
8762
+ ...E,
8505
8763
  children: t.map((e, t) => /* @__PURE__ */ p("wui-wizard-step", {
8506
8764
  label: e.label,
8507
8765
  description: e.description || void 0,
8508
8766
  optional: e.optional ? "" : void 0,
8509
8767
  icon: e.icon || void 0,
8510
8768
  status: e.status || void 0,
8511
- children: k[t]
8769
+ children: A[t]
8512
8770
  }, e.key ?? `${e.label}-${t}`))
8513
8771
  });
8514
8772
  });
8515
8773
  //#endregion
8516
8774
  //#region src/components/AppWorkspaceSwitcher.jsx
8517
- function ei({ 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, ariaLabel: _, ...v }) {
8518
- let { onToggle: y, ...x } = v;
8519
- j("AppWorkspaceSwitcher", x);
8520
- let [S, C] = d(""), [w, T] = d(!1), E = u(null), D = e.find((e) => e.id === t) ?? e[0], O = l(() => {
8521
- let t = S.trim().toLowerCase();
8775
+ 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 }) {
8776
+ let { onToggle: x, ...S } = y;
8777
+ j("AppWorkspaceSwitcher", S);
8778
+ let [C, w] = d(""), [T, E] = d(!1), D = u(null), O = e.find((e) => e.id === t) ?? e[0], k = l(() => {
8779
+ let t = C.trim().toLowerCase();
8522
8780
  return !s || !t ? e : e.filter((e) => String(e.name ?? "").toLowerCase().includes(t));
8523
8781
  }, [
8524
8782
  e,
8525
- S,
8783
+ C,
8526
8784
  s
8527
8785
  ]);
8528
8786
  o(() => {
8529
- w && s && E.current?.focus();
8530
- }, [w, s]), o(() => {
8787
+ T && s && D.current?.focus();
8788
+ }, [T, s]), o(() => {
8531
8789
  if (!s) return;
8532
- let e = E.current;
8790
+ let e = D.current;
8533
8791
  if (!e) return;
8534
8792
  let t = (e) => e.stopPropagation();
8535
8793
  return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
8536
8794
  }, [s]);
8537
- let k = D?.name ?? "", A = _ ?? `Workspace ${k}`;
8795
+ let A = O?.name ?? "", M = v ?? `Workspace ${A}`;
8538
8796
  return /* @__PURE__ */ m(b, {
8539
- className: "workspace-switcher",
8797
+ className: `workspace-switcher${_ === "sm" ? " workspace-switcher-sm" : ""}${_ === "lg" ? " workspace-switcher-lg" : ""}`,
8540
8798
  onToggle: (e, t) => {
8541
- T(e), y?.(e, t);
8799
+ E(e), x?.(e, t);
8542
8800
  },
8543
- ...x,
8801
+ ...S,
8544
8802
  children: [/* @__PURE__ */ p(b.Toggle, {
8545
- as: ii,
8803
+ as: mi,
8546
8804
  compact: g,
8547
- tenant: D,
8548
- "aria-label": A
8805
+ tenant: O,
8806
+ "aria-label": M
8549
8807
  }), /* @__PURE__ */ m(b.Menu, {
8550
8808
  className: "workspace-switcher-menu",
8551
8809
  renderOnMount: !0,
@@ -8560,24 +8818,24 @@ function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
8560
8818
  name: "search",
8561
8819
  size: 14
8562
8820
  }), /* @__PURE__ */ p("input", {
8563
- ref: E,
8821
+ ref: D,
8564
8822
  type: "search",
8565
8823
  className: "workspace-switcher-search-input",
8566
8824
  placeholder: "Search workspaces",
8567
8825
  "aria-label": "Search workspaces",
8568
- value: S,
8569
- onChange: (e) => C(e.target.value)
8826
+ value: C,
8827
+ onChange: (e) => w(e.target.value)
8570
8828
  })]
8571
8829
  }) : null,
8572
8830
  /* @__PURE__ */ m("div", {
8573
8831
  className: "workspace-switcher-list",
8574
- children: [O.map((e) => /* @__PURE__ */ m(b.Item, {
8832
+ children: [k.map((e) => /* @__PURE__ */ m(b.Item, {
8575
8833
  as: "button",
8576
8834
  type: "button",
8577
- className: `workspace-switcher-option${e.id === D?.id ? " is-active" : ""}`,
8835
+ className: `workspace-switcher-option${e.id === O?.id ? " is-active" : ""}`,
8578
8836
  onClick: () => n?.(e),
8579
8837
  children: [
8580
- /* @__PURE__ */ p(ni, { tenant: e }),
8838
+ /* @__PURE__ */ p(fi, { tenant: e }),
8581
8839
  /* @__PURE__ */ p("span", {
8582
8840
  className: "workspace-switcher-option-name",
8583
8841
  children: e.name
@@ -8586,13 +8844,13 @@ function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
8586
8844
  className: "workspace-switcher-badge",
8587
8845
  children: e.badge
8588
8846
  }) : null,
8589
- e.id === D?.id ? /* @__PURE__ */ p(I, {
8847
+ e.id === O?.id ? /* @__PURE__ */ p(I, {
8590
8848
  name: "check",
8591
8849
  size: 16,
8592
8850
  className: "workspace-switcher-tick"
8593
8851
  }) : null
8594
8852
  ]
8595
- }, e.id)), O.length === 0 ? /* @__PURE__ */ p("div", {
8853
+ }, e.id)), k.length === 0 ? /* @__PURE__ */ p("div", {
8596
8854
  className: "workspace-switcher-empty",
8597
8855
  children: "No workspaces match."
8598
8856
  }) : null]
@@ -8609,17 +8867,17 @@ function ei({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
8609
8867
  }) : null,
8610
8868
  i ? /* @__PURE__ */ p("div", {
8611
8869
  className: "workspace-switcher-footer",
8612
- children: ri(i, a)
8870
+ children: pi(i, a)
8613
8871
  }) : null
8614
8872
  ]
8615
8873
  })]
8616
8874
  });
8617
8875
  }
8618
- function ti(e) {
8876
+ function di(e) {
8619
8877
  let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
8620
8878
  return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
8621
8879
  }
8622
- function ni({ tenant: e }) {
8880
+ function fi({ tenant: e }) {
8623
8881
  return e?.logoUrl ? /* @__PURE__ */ p("img", {
8624
8882
  className: "workspace-switcher-mark",
8625
8883
  src: e.logoUrl,
@@ -8627,10 +8885,10 @@ function ni({ tenant: e }) {
8627
8885
  loading: "lazy"
8628
8886
  }) : /* @__PURE__ */ p("span", {
8629
8887
  className: "workspace-switcher-mark",
8630
- children: ti(e?.name)
8888
+ children: di(e?.name)
8631
8889
  });
8632
8890
  }
8633
- function ri(e, t) {
8891
+ function pi(e, t) {
8634
8892
  if (typeof e != "object" || !e || !("label" in e)) return e;
8635
8893
  let { label: n, icon: r, href: i } = e;
8636
8894
  return /* @__PURE__ */ m(i ? t ?? "a" : "button", {
@@ -8642,7 +8900,7 @@ function ri(e, t) {
8642
8900
  }) : null, n]
8643
8901
  });
8644
8902
  }
8645
- var ii = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
8903
+ var mi = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
8646
8904
  return /* @__PURE__ */ m("button", {
8647
8905
  ref: a,
8648
8906
  type: "button",
@@ -8650,7 +8908,7 @@ var ii = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
8650
8908
  "aria-haspopup": "true",
8651
8909
  "aria-label": n,
8652
8910
  ...i,
8653
- children: [/* @__PURE__ */ p(ni, { tenant: t }), e ? null : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
8911
+ children: [/* @__PURE__ */ p(fi, { tenant: t }), e ? null : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
8654
8912
  className: "workspace-switcher-trigger-name",
8655
8913
  children: t?.name
8656
8914
  }), /* @__PURE__ */ p(I, {
@@ -8662,36 +8920,36 @@ var ii = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
8662
8920
  });
8663
8921
  //#endregion
8664
8922
  //#region src/components/toast.js
8665
- function ai() {
8666
- Gr();
8923
+ function hi() {
8924
+ Zr();
8667
8925
  }
8668
- var oi = /* @__PURE__ */ new Set([
8926
+ var gi = /* @__PURE__ */ new Set([
8669
8927
  "success",
8670
8928
  "info",
8671
8929
  "warning",
8672
8930
  "error"
8673
8931
  ]);
8674
- function si(e, t = "success") {
8675
- let n = "success", r = {};
8676
- typeof t == "string" ? n = oi.has(t) ? t : "success" : typeof t == "object" && t && (r = t, n = oi.has(r.variant) ? r.variant : "info"), Ur(e, n, r);
8932
+ function _i(e, t = "info") {
8933
+ let n = "info", r = {};
8934
+ 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);
8677
8935
  }
8678
- function ci(e, t = {}) {
8679
- Ur(e, "error", t);
8936
+ function vi(e, t = {}) {
8937
+ Yr(e, "error", t);
8680
8938
  }
8681
- si.promise = (e, t, n = {}) => {
8939
+ _i.promise = (e, t, n = {}) => {
8682
8940
  let r = n.id || `promise-${Date.now()}-${Math.random()}`;
8683
- return si(t.loading || "Loading...", {
8941
+ return _i(t.loading || "Loading...", {
8684
8942
  ...n,
8685
8943
  variant: "info",
8686
8944
  id: r,
8687
8945
  duration: 0
8688
- }), e.then((e) => (si((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
8946
+ }), e.then((e) => (_i((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
8689
8947
  ...n,
8690
8948
  variant: "success",
8691
8949
  id: r,
8692
8950
  duration: n.duration === void 0 ? 5e3 : n.duration
8693
8951
  }), e)).catch((e) => {
8694
- throw si((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
8952
+ throw _i((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
8695
8953
  ...n,
8696
8954
  variant: "error",
8697
8955
  id: r,
@@ -8701,7 +8959,7 @@ si.promise = (e, t, n = {}) => {
8701
8959
  };
8702
8960
  //#endregion
8703
8961
  //#region src/lib/usePagination.js
8704
- function li(e, t = 10) {
8962
+ function yi(e, t = 10) {
8705
8963
  let [n, r] = d(1), [i, a] = d(t), s = e.length, c = Math.max(1, Math.ceil(s / i));
8706
8964
  o(() => {
8707
8965
  n > c && r(c);
@@ -8727,4 +8985,4 @@ function li(e, t = 10) {
8727
8985
  };
8728
8986
  }
8729
8987
  //#endregion
8730
- export { R as ActionIcon, z as AppAccordion, ee as AppAlert, ae as AppAsyncBlock, Ot as AppAutocomplete, Pt as AppAvatar, Lt as AppAvatarGroup, Bt as AppBadge, Ht as AppBanner, Ut as AppBreadcrumbs, V as AppButton, Wt as AppCallout, Kt as AppCard, Jt as AppCheckbox, Yt as AppChip, Xt as AppChoiceCard, Zt as AppChoiceChip, Qt as AppColorField, $t as AppCompareTable, ln as AppConfirmDialog, un as AppCopyButton, bn as AppDataTable, xn as AppDatePicker, Sn as AppDateRangePicker, wn as AppDescriptions, Dn as AppDropdown, re as AppEmptyState, Pn as AppFileAttachment, In as AppFilePicker, Ln as AppFormActions, Rn as AppFormRow, zn as AppFormSection, Bn as AppInfoList, yt as AppInfoTip, en as AppInput, Gn as AppKpiTile, qn as AppLogoPicker, Zn as AppMeter, on as AppModal, Qn as AppMultiSelect, $n as AppNumberInput, er as AppOtpInput, tr as AppPageHeader, nr as AppPagination, rr as AppPhoneNumberInput, vt as AppPopover, ir as AppPricingCard, sr as AppProgress, cr as AppRadio, lr as AppRepeater, ur as AppResourceCard, fr as AppResult, pr as AppScrollbar, mr as AppSearch, hr as AppSegmented, _r as AppSelect, hn as AppSelectMini, vr as AppShell, xr as AppSidebarMenu, dn as AppSkeleton, fn as AppSkeletonRows, Sr as AppSlider, ie as AppSpinner, wr as AppSplash, Tr as AppStatusBadge, Er as AppStepper, Or as AppSwitch, kr as AppTableEmptyState, _n as AppTablePagination, Ar as AppTabs, jr as AppTagInput, Mr as AppTextarea, Pr as AppTimePicker, Nr as AppTimeline, Yr as AppToast, Yr as AppToastContainer, Qr as AppTooltip, $r as AppWizard, ei as AppWorkspaceSwitcher, I as Icon, cn as MODAL_ICONS, Z as RequiredMark, ai as dismissAll, ci as errorToast, N as iconNames, F as registerIcons, si as toast, li as usePagination };
8988
+ 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 };