@webority/ui-react 0.9.0 → 0.9.2

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
@@ -88,9 +88,11 @@ var D = /* @__PURE__ */ "aave.activity.add.add-circle.add-square.additem.airdrop
88
88
  "log-out": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" d=\"M17.44 14.62L20 12.06 17.44 9.5M9.76 12.06h10.17M11.76 20c-4.42 0-8-3-8-8s3.58-8 8-8\"></path>",
89
89
  mail: "<path d=\"M17 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v7c0 3.5-2 5-5 5Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"m17 9-3.13 2.5c-1.03.82-2.72.82-3.75 0L7 9\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
90
90
  "map-pin": "<path d=\"M12 13.43a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24Z\" stroke=\"currentColor\" stroke-width=\"1.5\"></path><path d=\"M3.62 8.49c1.97-8.66 14.8-8.65 16.76.01 1.15 5.08-2.01 9.38-4.78 12.04a5.193 5.193 0 0 1-7.21 0c-2.76-2.66-5.92-6.97-4.77-12.05Z\" stroke=\"currentColor\" stroke-width=\"1.5\"></path>",
91
+ "maximize-4": "<path d=\"M21 9V3h-6M3 15v6h6M21 3l-7.5 7.5M10.5 13.5 3 21\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
91
92
  menu: "<path d=\"M3 7h18M3 12h18M3 17h18\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"></path>",
92
93
  "message-square": "<path d=\"M8.5 19H8c-4 0-6-1-6-6V8c0-4 2-6 6-6h8c4 0 6 2 6 6v5c0 4-2 6-6 6h-.5c-.31 0-.61.15-.8.4l-1.5 2c-.66.88-1.74.88-2.4 0l-1.5-2c-.16-.22-.53-.4-.8-.4Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M15.996 11h.01M11.995 11h.01M7.995 11h.008\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
93
94
  minus: "<path d=\"M6 12h12\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
95
+ mobile: "<path d=\"M17 6v10c0 4-1 5-5 5H6c-4 0-5-1-5-5V6c0-4 1-5 5-5h6c4 0 5 1 5 5ZM11 4.5H7\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M9 18.1A1.55 1.55 0 1 0 9 15a1.55 1.55 0 0 0 0 3.1Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
94
96
  moon: "<path d=\"M2.03 12.42c.36 5.15 4.73 9.34 9.96 9.57 3.69.16 6.99-1.56 8.97-4.27.82-1.11.38-1.85-.99-1.6-.67.12-1.36.17-2.08.14C13 16.06 9 11.97 8.98 7.14c-.01-1.3.26-2.53.75-3.65.54-1.24-.11-1.83-1.36-1.3C4.41 3.86 1.7 7.85 2.03 12.42Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
95
97
  "more-horizontal": "<path d=\"M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z\" stroke=\"currentColor\" stroke-width=\"1.5\"></path>",
96
98
  palette: "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M10 4.5V18c0 1.08-.44 2.07-1.14 2.79l-.04.04c-.09.09-.19.18-.28.25-.3.26-.64.46-.99.6-.11.05-.22.09-.33.13-.39.13-.81.19-1.22.19-.27 0-.54-.03-.8-.08-.13-.03-.26-.06-.39-.1-.16-.05-.31-.1-.46-.17 0-.01 0-.01-.01 0-.28-.14-.55-.3-.8-.49l-.01-.01c-.13-.1-.25-.2-.36-.32-.11-.12-.22-.24-.33-.37-.19-.25-.35-.52-.49-.8.01-.01.01-.01 0-.01 0 0 0-.01-.01-.02-.06-.14-.11-.29-.16-.44a5.58 5.58 0 01-.1-.39c-.05-.26-.08-.53-.08-.8V4.5C2 3 3 2 4.5 2h3C9 2 10 3 10 4.5z\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M22 16.5v3c0 1.5-1 2.5-2.5 2.5H6c.41 0 .83-.06 1.22-.19.11-.04.22-.08.33-.13.35-.14.69-.34.99-.6.09-.07.19-.16.28-.25l.04-.04 6.8-6.79h3.84c1.5 0 2.5 1 2.5 2.5zM4.81 21.82c-.6-.18-1.17-.51-1.64-.99-.48-.47-.81-1.04-.99-1.64a4.02 4.02 0 002.63 2.63z\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M18.37 11.29L15.66 14l-6.8 6.79C9.56 20.07 10 19.08 10 18V8.34l2.71-2.71c1.06-1.06 2.48-1.06 3.54 0l2.12 2.12c1.06 1.06 1.06 2.48 0 3.54zM6 19a1 1 0 100-2 1 1 0 000 2z\"></path>",
@@ -164,25 +166,25 @@ function N(e, t) {
164
166
  //#region src/components/AppIcon.jsx
165
167
  var P = null, F = null, I = /* @__PURE__ */ new Set();
166
168
  function L() {
167
- return F ||= import("./iconVariants.g-3DZ_Lh8k.js").then((e) => {
169
+ return F ||= import("./iconVariants.g-BL1d2HPV.js").then((e) => {
168
170
  P = e.VARIANT_GLYPHS;
169
171
  for (let e of I) e();
170
172
  I.clear();
171
173
  }), F;
172
174
  }
173
- var R = new Set(D), z = null, ee = null, B = null, V = /* @__PURE__ */ new Set();
174
- function te() {
175
- return B ||= import("./iconCatalogFull.g-ofRXGqrB.js").then((e) => {
175
+ var R = new Set(D), z = null, ee = null, te = null, B = /* @__PURE__ */ new Set();
176
+ function ne() {
177
+ return te ||= import("./iconCatalogFull.g-DHZusHbO.js").then((e) => {
176
178
  z = e.FULL_GLYPHS, ee = e.FULL_VARIANT_GLYPHS;
177
- for (let e of V) e();
178
- V.clear();
179
- }), B;
179
+ for (let e of B) e();
180
+ B.clear();
181
+ }), te;
180
182
  }
181
- var ne = D, re = /* @__PURE__ */ new Map();
182
- function ie(e) {
183
- for (let [t, n] of Object.entries(e)) re.set(t, n);
183
+ var re = D, ie = /* @__PURE__ */ new Map();
184
+ function ae(e) {
185
+ for (let [t, n] of Object.entries(e)) ie.set(t, n);
184
186
  }
185
- function H({ name: e, size: t = 16, variant: n, tooltip: r, className: i, color: a, style: s, ...c }) {
187
+ function V({ name: e, size: t = 16, variant: n, tooltip: r, className: i, color: a, style: s, ...c }) {
186
188
  N("AppIcon", c);
187
189
  let l = !!n && n !== "linear", u = r != null && r !== "", f = (e) => u ? /* @__PURE__ */ p("span", {
188
190
  className: "wui-icon-tip",
@@ -193,15 +195,15 @@ function H({ name: e, size: t = 16, variant: n, tooltip: r, className: i, color:
193
195
  }) : e, h = O[e] !== void 0, g = !h && R.has(e), [, _] = d(0);
194
196
  o(() => {
195
197
  let e = () => _((e) => e + 1);
196
- return l && h && !P && (I.add(e), L()), g && !z && (V.add(e), te()), () => {
197
- I.delete(e), V.delete(e);
198
+ return l && h && !P && (I.add(e), L()), g && !z && (B.add(e), ne()), () => {
199
+ I.delete(e), B.delete(e);
198
200
  };
199
201
  }, [
200
202
  l,
201
203
  h,
202
204
  g
203
205
  ]);
204
- let v = re.get(e);
206
+ let v = ie.get(e);
205
207
  if (v) return f(v({
206
208
  size: t,
207
209
  color: a,
@@ -251,7 +253,7 @@ function H({ name: e, size: t = 16, variant: n, tooltip: r, className: i, color:
251
253
  }
252
254
  //#endregion
253
255
  //#region src/components/AppAccordion.jsx
254
- function ae({ items: e = [], multiple: t = !1, id: n, className: r = "", ...i }) {
256
+ function oe({ items: e = [], multiple: t = !1, id: n, className: r = "", ...i }) {
255
257
  N("AppAccordion", i);
256
258
  let a = s(), o = n || a, [c, l] = d(() => {
257
259
  let n = e.map((e, t) => ({
@@ -281,7 +283,7 @@ function ae({ items: e = [], multiple: t = !1, id: n, className: r = "", ...i })
281
283
  onClick: () => f(n),
282
284
  children: [e.title, /* @__PURE__ */ p("span", {
283
285
  className: "faq-q-icon",
284
- children: /* @__PURE__ */ p(H, {
286
+ children: /* @__PURE__ */ p(V, {
285
287
  name: "chevron-down",
286
288
  size: 18
287
289
  })
@@ -303,8 +305,8 @@ function ae({ items: e = [], multiple: t = !1, id: n, className: r = "", ...i })
303
305
  }
304
306
  //#endregion
305
307
  //#region src/components/renderIconProp.js
306
- function U(e, { size: t = 16, className: n } = {}) {
307
- return e == null || e === !1 ? null : typeof e == "string" ? r(H, {
308
+ function H(e, { size: t = 16, className: n } = {}) {
309
+ return e == null || e === !1 ? null : typeof e == "string" ? r(V, {
308
310
  name: e,
309
311
  size: t,
310
312
  className: n
@@ -312,7 +314,7 @@ function U(e, { size: t = 16, className: n } = {}) {
312
314
  }
313
315
  //#endregion
314
316
  //#region src/components/AppActionIcon.jsx
315
- function oe({ icon: e, label: t, danger: n = !1, disabled: r = !1, size: i = 20, onClick: a, className: o = "", as: s, href: c, ...l }) {
317
+ function se({ icon: e, label: t, danger: n = !1, disabled: r = !1, size: i = 20, onClick: a, className: o = "", as: s, href: c, ...l }) {
316
318
  N("AppActionIcon", l);
317
319
  let u = [
318
320
  "u-action",
@@ -337,18 +339,18 @@ function oe({ icon: e, label: t, danger: n = !1, disabled: r = !1, size: i = 20,
337
339
  a?.(e);
338
340
  },
339
341
  ...l,
340
- children: U(e, { size: i })
342
+ children: H(e, { size: i })
341
343
  });
342
344
  }
343
345
  //#endregion
344
346
  //#region src/components/AppAlert.jsx
345
- var se = {
347
+ var ce = {
346
348
  info: "info",
347
349
  success: "check",
348
350
  warning: "alert-triangle",
349
351
  danger: "x"
350
352
  };
351
- function ce(e, t, n, r) {
353
+ function le(e, t, n, r) {
352
354
  return n ? /* @__PURE__ */ p("span", {
353
355
  className: "alert-icon alert-icon-image",
354
356
  children: /* @__PURE__ */ p("img", {
@@ -357,7 +359,7 @@ function ce(e, t, n, r) {
357
359
  })
358
360
  }) : e ? typeof e == "string" ? /* @__PURE__ */ p("span", {
359
361
  className: "alert-icon",
360
- children: /* @__PURE__ */ p(H, {
362
+ children: /* @__PURE__ */ p(V, {
361
363
  name: e,
362
364
  size: t
363
365
  })
@@ -366,9 +368,9 @@ function ce(e, t, n, r) {
366
368
  children: e
367
369
  }) : null;
368
370
  }
369
- function le({ variant: e = "info", children: t, title: n, icon: r, image: i, imageAlt: a = "", className: o = "", onClose: s, dismissible: c, bordered: l = !0, role: u = "alert", ...d }) {
371
+ function ue({ variant: e = "info", children: t, title: n, icon: r, image: i, imageAlt: a = "", className: o = "", onClose: s, dismissible: c, bordered: l = !0, role: u = "alert", ...d }) {
370
372
  N("AppAlert", d);
371
- let g = r === void 0 ? se[e] : r === "none" ? null : r, _ = !!i || !!g, v = n ? /* @__PURE__ */ p("div", {
373
+ let g = r === void 0 ? ce[e] : r === "none" ? null : r, _ = !!i || !!g, v = n ? /* @__PURE__ */ p("div", {
372
374
  className: "alert-heading",
373
375
  children: n
374
376
  }) : null, y = _ && !!v && !!t, b = y ? 13 : 11;
@@ -385,44 +387,61 @@ function le({ variant: e = "info", children: t, title: n, icon: r, image: i, ima
385
387
  transition: !1,
386
388
  role: u,
387
389
  ...d,
388
- children: _ ? /* @__PURE__ */ m(f, { children: [ce(g, b, i, a), /* @__PURE__ */ m("div", {
390
+ children: _ ? /* @__PURE__ */ m(f, { children: [le(g, b, i, a), /* @__PURE__ */ m("div", {
389
391
  className: "alert-content",
390
392
  children: [v, t]
391
393
  })] }) : /* @__PURE__ */ m(f, { children: [v, t] })
392
394
  });
393
395
  }
394
396
  //#endregion
397
+ //#region src/components/warnInvalidValue.js
398
+ var de = () => {
399
+ try {
400
+ return process.env.NODE_ENV !== "production";
401
+ } catch {
402
+ return !0;
403
+ }
404
+ }, fe = /* @__PURE__ */ new Set();
405
+ function U(e, t, n, r) {
406
+ if (!de() || n == null) return;
407
+ let i = r instanceof Set ? r : new Set(r);
408
+ if (i.has(n)) return;
409
+ let a = `${e}.${t}.${String(n)}`;
410
+ fe.has(a) || (fe.add(a), console.warn(`[@webority/ui-react] <${e}> received ${t}="${String(n)}", which is not one of ${[...i].map((e) => `"${e}"`).join(" | ")}. The component fell back to its default, so this renders something other than what the call site asks for — check the value against the component catalogue at https://ui-react.webority.dev.`));
411
+ }
412
+ //#endregion
395
413
  //#region src/components/AppButton.jsx
396
- var ue = {
414
+ var W = {
397
415
  primary: "primary",
398
416
  secondary: "secondary",
399
417
  outline: "outline-primary",
400
418
  ghost: "ghost",
401
419
  danger: "danger",
420
+ "secondary-danger": "secondary-danger",
402
421
  "outline-danger": "outline-danger",
403
422
  light: "light",
404
423
  warning: "warning",
405
424
  subtle: "subtle",
406
425
  "outline-light": "outline-light"
407
- }, de = {
426
+ }, pe = {
408
427
  sm: 14,
409
428
  md: 16,
410
429
  lg: 20
411
430
  };
412
- function fe(e, t, n) {
431
+ function me(e, t, n) {
413
432
  if (!e) return null;
414
433
  let r = t === "left" ? "me-2" : "ms-2";
415
- return typeof e == "string" ? /* @__PURE__ */ p(H, {
434
+ return typeof e == "string" ? /* @__PURE__ */ p(V, {
416
435
  name: e,
417
- size: de[n] ?? de.md,
436
+ size: pe[n] ?? pe.md,
418
437
  className: r
419
438
  }) : /* @__PURE__ */ p("span", {
420
439
  className: `d-inline-flex ${r}`,
421
440
  children: e
422
441
  });
423
442
  }
424
- function W({ children: e, variant: t = "primary", size: n = "md", type: r = "button", loading: i = !1, disabled: a = !1, block: o = !1, leftIcon: s = null, rightIcon: c = null, href: l, className: u = "", ...d }) {
425
- N("AppButton", d);
443
+ function he({ children: e, variant: t = "primary", size: n = "md", type: r = "button", loading: i = !1, disabled: a = !1, block: o = !1, leftIcon: s = null, rightIcon: c = null, href: l, className: u = "", ...d }) {
444
+ N("AppButton", d), U("AppButton", "variant", t, Object.keys(W)), U("AppButton", "size", n, Object.keys(pe));
426
445
  let f = [
427
446
  o ? "w-100" : "",
428
447
  i ? "is-loading" : "",
@@ -431,7 +450,7 @@ function W({ children: e, variant: t = "primary", size: n = "md", type: r = "but
431
450
  return /* @__PURE__ */ m(v, {
432
451
  type: (d.as === void 0 || d.as === "button") && l === void 0 ? r : void 0,
433
452
  href: l,
434
- variant: ue[t] ?? "primary",
453
+ variant: W[t] ?? "primary",
435
454
  size: n === "md" ? void 0 : n,
436
455
  disabled: a || i,
437
456
  "aria-busy": i || void 0,
@@ -442,15 +461,15 @@ function W({ children: e, variant: t = "primary", size: n = "md", type: r = "but
442
461
  className: "spinner-border spinner-border-sm me-2",
443
462
  "aria-hidden": "true"
444
463
  }),
445
- !i && fe(s, "left", n),
464
+ !i && me(s, "left", n),
446
465
  e,
447
- !i && fe(c, "right", n)
466
+ !i && me(c, "right", n)
448
467
  ]
449
468
  });
450
469
  }
451
470
  //#endregion
452
471
  //#region src/components/AppEmptyState.jsx
453
- function pe({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, action: a, className: o = "", style: s, ...c }) {
472
+ function ge({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, action: a, className: o = "", style: s, ...c }) {
454
473
  return N("AppEmptyState", c), /* @__PURE__ */ m("div", {
455
474
  className: [
456
475
  "empty-state",
@@ -462,7 +481,7 @@ function pe({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, acti
462
481
  children: [
463
482
  e ? /* @__PURE__ */ p("div", {
464
483
  className: "empty-state-icon",
465
- children: U(e, { size: t })
484
+ children: H(e, { size: t })
466
485
  }) : null,
467
486
  r != null && /* @__PURE__ */ p("div", {
468
487
  className: "empty-state-title",
@@ -481,7 +500,7 @@ function pe({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, acti
481
500
  }
482
501
  //#endregion
483
502
  //#region src/components/AppSpinner.jsx
484
- function me({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
503
+ function _e({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
485
504
  N("AppSpinner", r);
486
505
  let { style: i, ...a } = r, o = Number(e), s = Number.isFinite(o) && o > 0;
487
506
  return /* @__PURE__ */ p("span", {
@@ -499,7 +518,7 @@ function me({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
499
518
  }
500
519
  //#endregion
501
520
  //#region src/components/AppAsyncBlock.jsx
502
- function he({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRetry: i, skeleton: a, className: o = "", ...s }) {
521
+ function ve({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRetry: i, skeleton: a, className: o = "", ...s }) {
503
522
  N("AppAsyncBlock", s);
504
523
  let c = `async-block${o ? ` ${o}` : ""}`;
505
524
  return e ? /* @__PURE__ */ p("div", {
@@ -508,17 +527,17 @@ function he({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
508
527
  ...s,
509
528
  children: a ?? /* @__PURE__ */ p("div", {
510
529
  className: "d-flex align-items-center justify-content-center py-5",
511
- children: /* @__PURE__ */ p(me, { label: "Loading" })
530
+ children: /* @__PURE__ */ p(_e, { label: "Loading" })
512
531
  })
513
532
  }) : t ? /* @__PURE__ */ p("div", {
514
533
  className: c,
515
534
  "data-state": "error",
516
535
  ...s,
517
- children: /* @__PURE__ */ p(pe, {
536
+ children: /* @__PURE__ */ p(ge, {
518
537
  icon: "alert-circle",
519
538
  title: "Something went wrong",
520
539
  text: t,
521
- action: i ? /* @__PURE__ */ p(W, {
540
+ action: i ? /* @__PURE__ */ p(he, {
522
541
  variant: "secondary",
523
542
  onClick: i,
524
543
  children: "Retry"
@@ -528,7 +547,7 @@ function he({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
528
547
  className: c,
529
548
  "data-state": "empty",
530
549
  ...s,
531
- children: /* @__PURE__ */ p(pe, {
550
+ children: /* @__PURE__ */ p(ge, {
532
551
  icon: "inbox",
533
552
  title: "Nothing to show yet"
534
553
  })
@@ -541,15 +560,15 @@ function he({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
541
560
  }
542
561
  //#endregion
543
562
  //#region ../elements/dist/ui-elements.js
544
- var ge = {
563
+ var ye = {
545
564
  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>",
546
565
  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>",
547
566
  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>",
548
567
  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>",
549
568
  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>"
550
569
  };
551
- Object.keys(ge);
552
- var _e = class extends HTMLElement {
570
+ Object.keys(ye);
571
+ var be = class extends HTMLElement {
553
572
  static get observedAttributes() {
554
573
  return ["tone", "size"];
555
574
  }
@@ -560,36 +579,36 @@ var _e = class extends HTMLElement {
560
579
  this.isConnected && this.render();
561
580
  }
562
581
  render() {
563
- let e = this.getAttribute("tone"), t = Number.parseInt(this.getAttribute("size"), 10) || 72, n = ge[e] || ge.info;
582
+ let e = this.getAttribute("tone"), t = Number.parseInt(this.getAttribute("size"), 10) || 72, n = ye[e] || ye.info;
564
583
  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>`;
565
584
  }
566
- }, ve = 4;
567
- function ye(e, t, n = {}) {
585
+ }, xe = 4;
586
+ function Se(e, t, n = {}) {
568
587
  if (!e || !t) return;
569
- let r = e.getBoundingClientRect(), i = t.offsetHeight, a = window.innerHeight - r.bottom, o = a < i + ve && r.top > a;
570
- t.classList.toggle("drop-up", o), t.style.position = "fixed", t.style.top = o ? `${Math.max(ve, r.top - i - ve)}px` : `${r.bottom + ve}px`, n.matchWidth && (t.style.minWidth = `${r.width}px`, t.style.width = "max-content", t.style.maxWidth = `${window.innerWidth - ve * 2}px`);
571
- let s = t.offsetWidth, c = Math.min(r.left, window.innerWidth - s - ve);
572
- t.style.left = `${Math.max(ve, c)}px`;
588
+ let r = e.getBoundingClientRect(), i = t.offsetHeight, a = window.innerHeight - r.bottom, o = a < i + xe && r.top > a;
589
+ t.classList.toggle("drop-up", o), t.style.position = "fixed", t.style.top = o ? `${Math.max(xe, r.top - i - xe)}px` : `${r.bottom + xe}px`, n.matchWidth && (t.style.minWidth = `${r.width}px`, t.style.width = "max-content", t.style.maxWidth = `${window.innerWidth - xe * 2}px`);
590
+ let s = t.offsetWidth, c = Math.min(r.left, window.innerWidth - s - xe);
591
+ t.style.left = `${Math.max(xe, c)}px`;
573
592
  }
574
- function be(e, t) {
575
- xe(e), e._reanchor = t, window.addEventListener("resize", e._reanchor), window.addEventListener("scroll", e._reanchor, !0);
593
+ function Ce(e, t) {
594
+ we(e), e._reanchor = t, window.addEventListener("resize", e._reanchor), window.addEventListener("scroll", e._reanchor, !0);
576
595
  }
577
- function xe(e) {
596
+ function we(e) {
578
597
  e?._reanchor && (window.removeEventListener("resize", e._reanchor), window.removeEventListener("scroll", e._reanchor, !0), e._reanchor = null);
579
598
  }
580
- var Se = "data-wui-mirror";
599
+ var Te = "data-wui-mirror";
581
600
  function G(e, t) {
582
- let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${Se}]`);
601
+ let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${Te}]`);
583
602
  if (!n) {
584
603
  r?.remove();
585
604
  return;
586
605
  }
587
- r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(Se, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t);
606
+ r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(Te, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t);
588
607
  for (let t of [...r.attributes]) t.name.startsWith("data-val") && !e.hasAttribute(t.name) && r.removeAttribute(t.name);
589
608
  for (let t of e.attributes) t.name.startsWith("data-val") && r.setAttribute(t.name, t.value);
590
609
  r.disabled = e.hasAttribute("disabled");
591
610
  }
592
- var Ce = {
611
+ var Ee = {
593
612
  activity: "<path d=\"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"m7.33 14.49 2.38-3.09c.34-.44.97-.52 1.41-.18l1.83 1.44c.44.34 1.07.26 1.41-.17l2.31-2.98\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
594
613
  alarm: "<path d=\"M2 22h20M12 6a9 9 0 0 0-9 9v7h18v-7a9 9 0 0 0-9-9ZM12 2v1M4 4l1 1M20 4l-1 1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
595
614
  "alert-circle": "<path d=\"M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M12 16.2v.1\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
@@ -675,9 +694,11 @@ var Ce = {
675
694
  "log-out": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-miterlimit=\"10\" stroke-width=\"1.5\" d=\"M17.44 14.62L20 12.06 17.44 9.5M9.76 12.06h10.17M11.76 20c-4.42 0-8-3-8-8s3.58-8 8-8\"></path>",
676
695
  mail: "<path d=\"M17 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v7c0 3.5-2 5-5 5Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"m17 9-3.13 2.5c-1.03.82-2.72.82-3.75 0L7 9\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
677
696
  "map-pin": "<path d=\"M12 13.43a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24Z\" stroke=\"currentColor\" stroke-width=\"1.5\"></path><path d=\"M3.62 8.49c1.97-8.66 14.8-8.65 16.76.01 1.15 5.08-2.01 9.38-4.78 12.04a5.193 5.193 0 0 1-7.21 0c-2.76-2.66-5.92-6.97-4.77-12.05Z\" stroke=\"currentColor\" stroke-width=\"1.5\"></path>",
697
+ "maximize-4": "<path d=\"M21 9V3h-6M3 15v6h6M21 3l-7.5 7.5M10.5 13.5 3 21\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
678
698
  menu: "<path d=\"M3 7h18M3 12h18M3 17h18\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"></path>",
679
699
  "message-square": "<path d=\"M8.5 19H8c-4 0-6-1-6-6V8c0-4 2-6 6-6h8c4 0 6 2 6 6v5c0 4-2 6-6 6h-.5c-.31 0-.61.15-.8.4l-1.5 2c-.66.88-1.74.88-2.4 0l-1.5-2c-.16-.22-.53-.4-.8-.4Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M15.996 11h.01M11.995 11h.01M7.995 11h.008\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
680
700
  minus: "<path d=\"M6 12h12\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
701
+ mobile: "<path d=\"M17 6v10c0 4-1 5-5 5H6c-4 0-5-1-5-5V6c0-4 1-5 5-5h6c4 0 5 1 5 5ZM11 4.5H7\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M9 18.1A1.55 1.55 0 1 0 9 15a1.55 1.55 0 0 0 0 3.1Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
681
702
  moon: "<path d=\"M2.03 12.42c.36 5.15 4.73 9.34 9.96 9.57 3.69.16 6.99-1.56 8.97-4.27.82-1.11.38-1.85-.99-1.6-.67.12-1.36.17-2.08.14C13 16.06 9 11.97 8.98 7.14c-.01-1.3.26-2.53.75-3.65.54-1.24-.11-1.83-1.36-1.3C4.41 3.86 1.7 7.85 2.03 12.42Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
682
703
  "more-horizontal": "<path d=\"M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z\" stroke=\"currentColor\" stroke-width=\"1.5\"></path>",
683
704
  palette: "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M10 4.5V18c0 1.08-.44 2.07-1.14 2.79l-.04.04c-.09.09-.19.18-.28.25-.3.26-.64.46-.99.6-.11.05-.22.09-.33.13-.39.13-.81.19-1.22.19-.27 0-.54-.03-.8-.08-.13-.03-.26-.06-.39-.1-.16-.05-.31-.1-.46-.17 0-.01 0-.01-.01 0-.28-.14-.55-.3-.8-.49l-.01-.01c-.13-.1-.25-.2-.36-.32-.11-.12-.22-.24-.33-.37-.19-.25-.35-.52-.49-.8.01-.01.01-.01 0-.01 0 0 0-.01-.01-.02-.06-.14-.11-.29-.16-.44a5.58 5.58 0 01-.1-.39c-.05-.26-.08-.53-.08-.8V4.5C2 3 3 2 4.5 2h3C9 2 10 3 10 4.5z\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M22 16.5v3c0 1.5-1 2.5-2.5 2.5H6c.41 0 .83-.06 1.22-.19.11-.04.22-.08.33-.13.35-.14.69-.34.99-.6.09-.07.19-.16.28-.25l.04-.04 6.8-6.79h3.84c1.5 0 2.5 1 2.5 2.5zM4.81 21.82c-.6-.18-1.17-.51-1.64-.99-.48-.47-.81-1.04-.99-1.64a4.02 4.02 0 002.63 2.63z\"></path><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M18.37 11.29L15.66 14l-6.8 6.79C9.56 20.07 10 19.08 10 18V8.34l2.71-2.71c1.06-1.06 2.48-1.06 3.54 0l2.12 2.12c1.06 1.06 1.06 2.48 0 3.54zM6 19a1 1 0 100-2 1 1 0 000 2z\"></path>",
@@ -730,12 +751,12 @@ var Ce = {
730
751
  "zoom-in": "<path d=\"M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
731
752
  "zoom-out": "<path d=\"M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>"
732
753
  };
733
- Object.keys(Ce);
754
+ Object.keys(Ee);
734
755
  function K(e, { size: t = 16, className: n = "", style: r = "" } = {}) {
735
- let i = Ce[e];
756
+ let i = Ee[e];
736
757
  return i ? `<svg class="${n ? `wui-icon ${n}` : "wui-icon"}" data-icon="${e}" width="${t}" height="${t}" viewBox="0 0 24 24" fill="none" aria-hidden="true" style="vertical-align:-.125em${r ? `;${r}` : ""}">${i}</svg>` : "";
737
758
  }
738
- function we(e) {
759
+ function De(e) {
739
760
  let { getVisibleOptions: t, getActive: n, setActive: r, onEnter: i, onEscape: a, onTypeahead: o, typeaheadMs: s = 500 } = e, c = "", l = null, u = () => {
740
761
  clearTimeout(l), l = null, c = "";
741
762
  };
@@ -764,15 +785,15 @@ function we(e) {
764
785
  teardown: u
765
786
  };
766
787
  }
767
- var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), Ee = (e) => {
788
+ var Oe = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), ke = (e) => {
768
789
  if (!e) return "";
769
790
  let t = String(e).toLowerCase().replace(/[^a-z0-9-]/g, "");
770
791
  return t ? K(t) : "";
771
- }, De = (e) => {
792
+ }, Ae = (e) => {
772
793
  if (e == null) return "";
773
- let t = e[Te] ? String(e.label ?? "") : q(e.label), n = Ee(e.icon);
794
+ let t = e[Oe] ? String(e.label ?? "") : q(e.label), n = ke(e.icon);
774
795
  return n ? `<span class="wui-opt-label">${n}${t}</span>` : t;
775
- }, Oe = class extends HTMLElement {
796
+ }, je = class extends HTMLElement {
776
797
  static formAssociated = !0;
777
798
  _accessibleName() {
778
799
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
@@ -787,7 +808,8 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
787
808
  "remote",
788
809
  "size",
789
810
  "aria-label",
790
- "allow-custom"
811
+ "allow-custom",
812
+ "aria-invalid"
791
813
  ];
792
814
  }
793
815
  constructor() {
@@ -816,20 +838,28 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
816
838
  this.value = n;
817
839
  return;
818
840
  }
841
+ if (e === "aria-invalid") {
842
+ this._syncInvalid();
843
+ return;
844
+ }
819
845
  this._rendered && this.render();
820
846
  }
847
+ _syncInvalid() {
848
+ let e = this.querySelector(".search-select-control");
849
+ e && (this.hasAttribute("aria-invalid") ? e.setAttribute("aria-invalid", "true") : e.removeAttribute("aria-invalid"));
850
+ }
821
851
  get value() {
822
852
  return this._value;
823
853
  }
824
854
  set value(e) {
825
855
  this._value = e == null ? "" : String(e), G(this, this._value);
826
856
  let t = this._readOptions().find((e) => String(e.value) === this._value);
827
- this._label = t ? Ae(t.label) : "", this._syncInput(), this._renderOptions("");
857
+ this._label = t ? Ne(t.label) : "", this._syncInput(), this._renderOptions("");
828
858
  }
829
859
  set options(e) {
830
860
  this._optionsProp = Array.isArray(e) ? e : [];
831
861
  let t = this._readOptions().find((e) => String(e.value) === this._value);
832
- t && (this._label = Ae(t.label)), this._renderOptions(), this._syncInput();
862
+ t && (this._label = Ne(t.label)), this._renderOptions(), this._syncInput();
833
863
  }
834
864
  get options() {
835
865
  return this._readOptions();
@@ -848,7 +878,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
848
878
  }
849
879
  _matchesKnownOption(e) {
850
880
  let t = e.toLowerCase();
851
- return this._readOptions().some((e) => Ae(e.label).toLowerCase() === t || String(e.value ?? "").toLowerCase() === t);
881
+ return this._readOptions().some((e) => Ne(e.label).toLowerCase() === t || String(e.value ?? "").toLowerCase() === t);
852
882
  }
853
883
  get _minChars() {
854
884
  return Math.max(0, Number(this.getAttribute("min-chars")) || +!!this._remote);
@@ -866,7 +896,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
866
896
  value: e.getAttribute("value") ?? e.textContent.trim(),
867
897
  label: e.innerHTML,
868
898
  icon: e.getAttribute("icon") || void 0,
869
- [Te]: !0,
899
+ [Oe]: !0,
870
900
  selected: e.hasAttribute("selected")
871
901
  })));
872
902
  }
@@ -880,12 +910,12 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
880
910
  let r = `${this.id}-listbox`;
881
911
  this._listboxId = r, this.innerHTML = `
882
912
  <div class="search-select${n}">
883
- <div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${ke(r)}" aria-label="${ke(this._accessibleName())}">
884
- <input class="search-select-input search-select-ac-input" placeholder="${ke(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
913
+ <div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Me(r)}" aria-label="${Me(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}>
914
+ <input class="search-select-input search-select-ac-input" placeholder="${Me(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
885
915
  <span class="search-select-spinner spinner-border spinner-border-sm" role="status" aria-hidden="true" hidden></span>
886
916
  <button type="button" class="search-select-clear" aria-label="Clear" hidden>${K("x")}</button>
887
917
  </div>
888
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${ke(r)}" tabindex="-1" hidden>
918
+ <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Me(r)}" tabindex="-1" hidden>
889
919
  <div class="search-select-options"></div>
890
920
  <div class="search-select-empty" hidden>No matches</div>
891
921
  <div class="search-select-hint" hidden>Type to search…</div>
@@ -919,7 +949,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
919
949
  let t = this._refs();
920
950
  if (!t.optionsWrap) return;
921
951
  let n = e ?? (t.input ? t.input.value : ""), r = n.trim().toLowerCase(), i = this._readOptions();
922
- !this._remote && r && (i = i.filter((e) => Ae(e.label).toLowerCase().includes(r)));
952
+ !this._remote && r && (i = i.filter((e) => Ne(e.label).toLowerCase().includes(r)));
923
953
  let a = n.trim(), o = this._allowCustom && a && !this._matchesKnownOption(a) ? [...i, {
924
954
  value: a,
925
955
  custom: !0
@@ -928,10 +958,10 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
928
958
  let n = `${s}-opt-${t}`;
929
959
  if (e.custom) {
930
960
  let t = `Add “${q(e.value)}”`;
931
- return `<button type="button" role="option" id="${ke(n)}" class="search-select-option search-select-option-custom" data-value="${ke(e.value)}" data-custom="true" aria-selected="false">${t}</button>`;
961
+ return `<button type="button" role="option" id="${Me(n)}" class="search-select-option search-select-option-custom" data-value="${Me(e.value)}" data-custom="true" aria-selected="false">${t}</button>`;
932
962
  }
933
963
  let r = String(e.value) === String(this._value);
934
- return `<button type="button" role="option" id="${ke(n)}" class="search-select-option${r ? " selected" : ""}" data-value="${ke(e.value)}" aria-selected="${r}">${De(e)}</button>`;
964
+ return `<button type="button" role="option" id="${Me(n)}" class="search-select-option${r ? " selected" : ""}" data-value="${Me(e.value)}" aria-selected="${r}">${Ae(e)}</button>`;
935
965
  }).join(""), this._active = -1, t.control?.removeAttribute("aria-activedescendant");
936
966
  let c = r.length < this._minChars;
937
967
  t.hint && (t.hint.hidden = !(this._remote && c && !i.length)), t.empty && (t.empty.hidden = this._loading || o.length > 0 || this._remote && c);
@@ -940,7 +970,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
940
970
  this._teardown();
941
971
  let e = this._refs();
942
972
  if (!e.control || !e.input) return;
943
- let t = () => ye(e.control, e.menu, { matchWidth: !0 }), n = () => this._optionEls().filter((e) => !e.hidden), r = (t) => {
973
+ let t = () => Se(e.control, e.menu, { matchWidth: !0 }), n = () => this._optionEls().filter((e) => !e.hidden), r = (t) => {
944
974
  let r = n();
945
975
  this._active = t;
946
976
  for (let e of this._optionEls()) e.classList.remove("is-active");
@@ -951,7 +981,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
951
981
  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();
952
982
  }, s = (t) => {
953
983
  let n = t.dataset.custom === "true";
954
- this._value = t.dataset.value, this._label = n ? t.dataset.value : Ae(t.innerHTML), G(this, this._value), e.input.value = this._label, this.dispatchEvent(new CustomEvent("change", {
984
+ this._value = t.dataset.value, this._label = n ? t.dataset.value : Ne(t.innerHTML), G(this, this._value), e.input.value = this._label, this.dispatchEvent(new CustomEvent("change", {
955
985
  bubbles: !0,
956
986
  detail: { isCustom: n }
957
987
  })), o(), e.input.focus();
@@ -974,7 +1004,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
974
1004
  }, this._timer = setTimeout(() => this._fireSearch(t, e), this._debounceMs);
975
1005
  } else this._renderOptions(t);
976
1006
  };
977
- this._navHandler = we({
1007
+ this._navHandler = De({
978
1008
  getVisibleOptions: n,
979
1009
  getActive: () => this._active,
980
1010
  setActive: (e) => r(e),
@@ -1018,7 +1048,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1018
1048
  }), this._bindGlobal = () => {
1019
1049
  this._teardown(), this._onDocClick = (e) => {
1020
1050
  i() && !this.contains(e.target) && o();
1021
- }, document.addEventListener("click", this._onDocClick), be(this, () => {
1051
+ }, document.addEventListener("click", this._onDocClick), Ce(this, () => {
1022
1052
  i() && t();
1023
1053
  });
1024
1054
  }, this._bindGlobal();
@@ -1033,12 +1063,12 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1033
1063
  }));
1034
1064
  }
1035
1065
  _teardown() {
1036
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), xe(this), clearTimeout(this._timer), this._navHandler?.teardown();
1066
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), we(this), clearTimeout(this._timer), this._navHandler?.teardown();
1037
1067
  }
1038
1068
  disconnectedCallback() {
1039
1069
  this._teardown();
1040
1070
  }
1041
- }, ke = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ae = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), je = [
1071
+ }, Me = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), Ne = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), Pe = [
1042
1072
  "January",
1043
1073
  "February",
1044
1074
  "March",
@@ -1051,7 +1081,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1051
1081
  "October",
1052
1082
  "November",
1053
1083
  "December"
1054
- ], Me = [
1084
+ ], Fe = [
1055
1085
  "Su",
1056
1086
  "Mo",
1057
1087
  "Tu",
@@ -1059,24 +1089,24 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1059
1089
  "Th",
1060
1090
  "Fr",
1061
1091
  "Sa"
1062
- ], Ne = (e) => String(e).padStart(2, "0"), Pe = (e, t, n) => `${e}-${Ne(t + 1)}-${Ne(n)}`, J = (e) => {
1092
+ ], Ie = (e) => String(e).padStart(2, "0"), Le = (e, t, n) => `${e}-${Ie(t + 1)}-${Ie(n)}`, J = (e) => {
1063
1093
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e || "");
1064
1094
  return t ? {
1065
1095
  y: +t[1],
1066
1096
  m: t[2] - 1,
1067
1097
  d: +t[3]
1068
1098
  } : null;
1069
- }, Fe = (e) => {
1099
+ }, Re = (e) => {
1070
1100
  let t = J(e);
1071
- return t ? `${Ne(t.d)} ${je[t.m].slice(0, 3)} ${t.y}` : "";
1072
- }, Ie = (e, t) => new Date(e, t + 1, 0).getDate(), Le = (e, t) => {
1101
+ return t ? `${Ie(t.d)} ${Pe[t.m].slice(0, 3)} ${t.y}` : "";
1102
+ }, ze = (e, t) => new Date(e, t + 1, 0).getDate(), Be = (e, t) => {
1073
1103
  for (; t < 0;) t += 12, --e;
1074
1104
  for (; t > 11;) t -= 12, e += 1;
1075
1105
  return {
1076
1106
  y: e,
1077
1107
  m: t
1078
1108
  };
1079
- }, Re = class extends HTMLElement {
1109
+ }, Ve = class extends HTMLElement {
1080
1110
  static formAssociated = !0;
1081
1111
  static get observedAttributes() {
1082
1112
  return [
@@ -1133,7 +1163,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1133
1163
  this.innerHTML = `
1134
1164
  <div class="datepicker">
1135
1165
  <button type="button" class="input datepicker-trigger${r}${t ? " has-value" : ""}" aria-haspopup="dialog" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${i ? ` aria-label="${q(i)}"` : ""}${a ? ` aria-describedby="${q(a)}"` : ""}>
1136
- <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? Fe(this._value) : q(e)}</span>
1166
+ <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? Re(this._value) : q(e)}</span>
1137
1167
  ${K("calendar-dots")}
1138
1168
  </button>
1139
1169
  <div class="datepicker-pop" role="dialog" aria-modal="false" hidden></div>
@@ -1146,7 +1176,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1146
1176
  let e = this.querySelector(".datepicker-trigger"), t = this.querySelector("[data-trigger-label]");
1147
1177
  if (!t) return;
1148
1178
  let n = J(this._value);
1149
- t.textContent = n ? Fe(this._value) : this.getAttribute("placeholder") || "Enter Date", t.classList.toggle("search-select-placeholder", !n), e?.classList.toggle("has-value", !!n);
1179
+ t.textContent = n ? Re(this._value) : this.getAttribute("placeholder") || "Enter Date", t.classList.toggle("search-select-placeholder", !n), e?.classList.toggle("has-value", !!n);
1150
1180
  }
1151
1181
  _limits() {
1152
1182
  let e = J(this.getAttribute("min")), t = J(this.getAttribute("max")), n = e ? new Date(e.y, e.m, e.d).getTime() : -Infinity, r = t ? new Date(t.y, t.m, t.d).getTime() : Infinity;
@@ -1157,7 +1187,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1157
1187
  },
1158
1188
  monthDisabled: (e, t) => {
1159
1189
  let i = new Date(e, t, 1).getTime();
1160
- return new Date(e, t, Ie(e, t)).getTime() < n || i > r;
1190
+ return new Date(e, t, ze(e, t)).getTime() < n || i > r;
1161
1191
  },
1162
1192
  yearDisabled: (e) => {
1163
1193
  let t = new Date(e, 0, 1).getTime();
@@ -1170,28 +1200,28 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1170
1200
  e && (this._mode === "months" ? e.innerHTML = this._monthsHtml() : this._mode === "years" ? e.innerHTML = this._yearsHtml() : e.innerHTML = this._daysHtml(), this._focusActive());
1171
1201
  }
1172
1202
  _daysHtml() {
1173
- let e = this._firstDay(), t = (new Date(this._viewY, this._viewM, 1).getDay() - e + 7) % 7, n = Ie(this._viewY, this._viewM), r = J(this._value), i = /* @__PURE__ */ new Date(), { dayDisabled: a } = this._limits(), o = this._focus || r || {
1203
+ let e = this._firstDay(), t = (new Date(this._viewY, this._viewM, 1).getDay() - e + 7) % 7, n = ze(this._viewY, this._viewM), r = J(this._value), i = /* @__PURE__ */ new Date(), { dayDisabled: a } = this._limits(), o = this._focus || r || {
1174
1204
  y: this._viewY,
1175
1205
  m: this._viewM,
1176
1206
  d: 1
1177
1207
  }, s = (e, t, n, s) => {
1178
- let c = Pe(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);
1208
+ let c = Le(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);
1179
1209
  return `<button type="button" class="${[
1180
1210
  "datepicker-day",
1181
1211
  s ? "is-outside" : "",
1182
1212
  u ? "is-today" : "",
1183
1213
  l ? "is-selected" : ""
1184
1214
  ].filter(Boolean).join(" ")}" data-iso="${c}" role="gridcell" tabindex="${d && !f ? "0" : "-1"}"${l ? " aria-selected=\"true\"" : ""}${f ? " disabled aria-disabled=\"true\"" : ""}>${n}</button>`;
1185
- }, c = "", l = Le(this._viewY, this._viewM - 1), u = Ie(l.y, l.m);
1215
+ }, c = "", l = Be(this._viewY, this._viewM - 1), u = ze(l.y, l.m);
1186
1216
  for (let e = t - 1; e >= 0; e--) c += s(l.y, l.m, u - e, !0);
1187
1217
  for (let e = 1; e <= n; e++) c += s(this._viewY, this._viewM, e, !1);
1188
- let d = Le(this._viewY, this._viewM + 1), f = (7 - (t + n) % 7) % 7;
1218
+ let d = Be(this._viewY, this._viewM + 1), f = (7 - (t + n) % 7) % 7;
1189
1219
  for (let e = 1; e <= f; e++) c += s(d.y, d.m, e, !0);
1190
- let p = Me.map((t, n) => Me[(n + e) % 7]).map((e) => `<span>${e}</span>`).join("");
1220
+ let p = Fe.map((t, n) => Fe[(n + e) % 7]).map((e) => `<span>${e}</span>`).join("");
1191
1221
  return `
1192
1222
  <div class="datepicker-head">
1193
1223
  <button type="button" class="datepicker-nav-btn" data-nav="-1" aria-label="Previous month">${K("chevron-left")}</button>
1194
- <button type="button" class="datepicker-month" data-view="months" aria-label="Choose month and year">${je[this._viewM]} ${this._viewY}</button>
1224
+ <button type="button" class="datepicker-month" data-view="months" aria-label="Choose month and year">${Pe[this._viewM]} ${this._viewY}</button>
1195
1225
  <button type="button" class="datepicker-nav-btn" data-nav="1" aria-label="Next month">${K("chevron-right")}</button>
1196
1226
  </div>
1197
1227
  <div class="datepicker-weekdays">${p}</div>
@@ -1209,7 +1239,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1209
1239
  o ? "is-today" : "",
1210
1240
  a ? "is-selected" : ""
1211
1241
  ].filter(Boolean).join(" ");
1212
- r += `<button type="button" class="${c}" data-month="${i}"${s ? " disabled" : ""}>${je[i].slice(0, 3)}</button>`;
1242
+ r += `<button type="button" class="${c}" data-month="${i}"${s ? " disabled" : ""}>${Pe[i].slice(0, 3)}</button>`;
1213
1243
  }
1214
1244
  return `
1215
1245
  <div class="datepicker-head">
@@ -1242,17 +1272,17 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1242
1272
  t && e.contains(document.activeElement) && t.focus();
1243
1273
  }
1244
1274
  _position(e, t) {
1245
- ye(e, t);
1275
+ Se(e, t);
1246
1276
  }
1247
1277
  _setFocus(e, t, n, r) {
1248
- let { y: i, m: a } = Le(e, t);
1278
+ let { y: i, m: a } = Be(e, t);
1249
1279
  this._focus = {
1250
1280
  y: i,
1251
1281
  m: a,
1252
1282
  d: n
1253
1283
  };
1254
1284
  let o = i !== this._viewY || a !== this._viewM;
1255
- this._viewY = i, this._viewM = a, this._slide = o && r || "", this._renderView(), this._slide = "", this.querySelector(`.datepicker-day[data-iso="${Pe(i, a, n)}"]`)?.focus();
1285
+ this._viewY = i, this._viewM = a, this._slide = o && r || "", this._renderView(), this._slide = "", this.querySelector(`.datepicker-day[data-iso="${Le(i, a, n)}"]`)?.focus();
1256
1286
  }
1257
1287
  _onKey(e) {
1258
1288
  if (this._mode !== "days") {
@@ -1277,17 +1307,17 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1277
1307
  case "End": return n(6 - (new Date(t.y, t.m, t.d).getDay() - this._firstDay() + 7) % 7, "slide-next");
1278
1308
  case "PageUp": {
1279
1309
  e.preventDefault();
1280
- let n = Le(t.y, t.m - (e.shiftKey ? 12 : 1));
1281
- return this._setFocus(n.y, n.m, Math.min(t.d, Ie(n.y, n.m)), "slide-prev");
1310
+ let n = Be(t.y, t.m - (e.shiftKey ? 12 : 1));
1311
+ return this._setFocus(n.y, n.m, Math.min(t.d, ze(n.y, n.m)), "slide-prev");
1282
1312
  }
1283
1313
  case "PageDown": {
1284
1314
  e.preventDefault();
1285
- let n = Le(t.y, t.m + (e.shiftKey ? 12 : 1));
1286
- return this._setFocus(n.y, n.m, Math.min(t.d, Ie(n.y, n.m)), "slide-next");
1315
+ let n = Be(t.y, t.m + (e.shiftKey ? 12 : 1));
1316
+ return this._setFocus(n.y, n.m, Math.min(t.d, ze(n.y, n.m)), "slide-next");
1287
1317
  }
1288
1318
  case "Enter":
1289
1319
  case " ":
1290
- e.preventDefault(), this._limits().dayDisabled(t.y, t.m, t.d) || (this.value = Pe(t.y, t.m, t.d), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close());
1320
+ e.preventDefault(), this._limits().dayDisabled(t.y, t.m, t.d) || (this.value = Le(t.y, t.m, t.d), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close());
1291
1321
  return;
1292
1322
  case "Escape": return this._close();
1293
1323
  default:
@@ -1299,15 +1329,13 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1299
1329
  if (!e || !t) return;
1300
1330
  let r = () => !t.hidden;
1301
1331
  this._open = () => {
1302
- if (!J(this._value) && !this._viewNavigated) {
1303
- let e = /* @__PURE__ */ new Date();
1304
- this._viewY = e.getFullYear(), this._viewM = e.getMonth();
1305
- }
1306
- let r = J(this._value), i = /* @__PURE__ */ new Date();
1307
- this._mode = "days", this._focus = r || {
1332
+ let r = /* @__PURE__ */ new Date(), i = J(this._value);
1333
+ (i || !this._viewNavigated) && (this._viewY = r.getFullYear(), this._viewM = r.getMonth()), this._mode = "days";
1334
+ let a = r.getFullYear() === this._viewY && r.getMonth() === this._viewM, o = i && i.y === this._viewY && i.m === this._viewM;
1335
+ this._focus = o ? i : {
1308
1336
  y: this._viewY,
1309
1337
  m: this._viewM,
1310
- d: i.getFullYear() === this._viewY && i.getMonth() === this._viewM ? i.getDate() : 1
1338
+ d: a ? r.getDate() : 1
1311
1339
  }, this._renderView(), t.hidden = !1, n?.classList.add("open"), this._position(e, t), e.setAttribute("aria-expanded", "true"), t.querySelector("[tabindex=\"0\"]")?.focus();
1312
1340
  }, this._close = () => {
1313
1341
  t.hidden = !0, n?.classList.remove("open"), e.setAttribute("aria-expanded", "false"), e.focus();
@@ -1316,7 +1344,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1316
1344
  let t = e.target.closest("[data-nav]");
1317
1345
  if (t) {
1318
1346
  this._viewNavigated = !0, this._slide = Number(t.dataset.nav) < 0 ? "slide-prev" : "slide-next";
1319
- let e = Le(this._viewY, this._viewM + Number(t.dataset.nav));
1347
+ let e = Be(this._viewY, this._viewM + Number(t.dataset.nav));
1320
1348
  this._viewY = e.y, this._viewM = e.m, this._focus = {
1321
1349
  y: e.y,
1322
1350
  m: e.m,
@@ -1355,7 +1383,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1355
1383
  }
1356
1384
  if (e.target.closest("[data-today]")) {
1357
1385
  let e = /* @__PURE__ */ new Date();
1358
- this.value = Pe(e.getFullYear(), e.getMonth(), e.getDate()), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close();
1386
+ this.value = Le(e.getFullYear(), e.getMonth(), e.getDate()), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close();
1359
1387
  return;
1360
1388
  }
1361
1389
  if (e.target.closest("[data-clear]")) {
@@ -1372,18 +1400,18 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1372
1400
  this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
1373
1401
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
1374
1402
  r() && e.key === "Escape" && this._close();
1375
- }, document.addEventListener("keydown", this._onDocKey), be(this, () => {
1403
+ }, document.addEventListener("keydown", this._onDocKey), Ce(this, () => {
1376
1404
  r() && this._position(e, t);
1377
1405
  });
1378
1406
  }, this._bindGlobal(), this._syncFormValue();
1379
1407
  }
1380
1408
  _teardown() {
1381
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), xe(this);
1409
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), we(this);
1382
1410
  }
1383
1411
  disconnectedCallback() {
1384
1412
  this._teardown();
1385
1413
  }
1386
- }, ze = class extends HTMLElement {
1414
+ }, He = class extends HTMLElement {
1387
1415
  static formAssociated = !0;
1388
1416
  static get observedAttributes() {
1389
1417
  return [
@@ -1442,7 +1470,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1442
1470
  text: e,
1443
1471
  empty: !0
1444
1472
  } : {
1445
- text: `${Fe(this._start) || "Start"} – ${Fe(this._end) || "End"}`,
1473
+ text: `${Re(this._start) || "Start"} – ${Re(this._end) || "End"}`,
1446
1474
  empty: !1
1447
1475
  };
1448
1476
  }
@@ -1489,17 +1517,17 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1489
1517
  };
1490
1518
  }
1491
1519
  _monthHtml(e, t) {
1492
- let n = this._firstDay(), r = (new Date(e, t, 1).getDay() - n + 7) % 7, i = Ie(e, t), a = this._limits(), o = Me.map((e, t) => Me[(t + n) % 7]).map((e) => `<span>${e}</span>`).join(""), s = (e, t, n, r) => {
1493
- let i = Pe(e, t, n), o = a(e, t, n);
1520
+ let n = this._firstDay(), r = (new Date(e, t, 1).getDay() - n + 7) % 7, i = ze(e, t), a = this._limits(), o = Fe.map((e, t) => Fe[(t + n) % 7]).map((e) => `<span>${e}</span>`).join(""), s = (e, t, n, r) => {
1521
+ let i = Le(e, t, n), o = a(e, t, n);
1494
1522
  return `<button type="button" class="${["datepicker-day", r ? "is-outside" : ""].filter(Boolean).join(" ")}" data-iso="${i}"${o ? " disabled" : ""}>${n}</button>`;
1495
- }, c = "", l = Le(e, t - 1), u = Ie(l.y, l.m);
1523
+ }, c = "", l = Be(e, t - 1), u = ze(l.y, l.m);
1496
1524
  for (let e = r - 1; e >= 0; e--) c += s(l.y, l.m, u - e, !0);
1497
1525
  for (let n = 1; n <= i; n++) c += s(e, t, n, !1);
1498
- let d = Le(e, t + 1), f = (7 - (r + i) % 7) % 7;
1526
+ let d = Be(e, t + 1), f = (7 - (r + i) % 7) % 7;
1499
1527
  for (let e = 1; e <= f; e++) c += s(d.y, d.m, e, !0);
1500
1528
  return `
1501
1529
  <div class="daterange-cal">
1502
- <div class="datepicker-month-label">${je[t]} ${e}</div>
1530
+ <div class="datepicker-month-label">${Pe[t]} ${e}</div>
1503
1531
  <div class="datepicker-weekdays">${o}</div>
1504
1532
  <div class="datepicker-grid" role="grid">${c}</div>
1505
1533
  </div>`;
@@ -1507,7 +1535,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1507
1535
  _renderView() {
1508
1536
  let e = this.querySelector(".daterange-pop");
1509
1537
  if (!e) return;
1510
- let t = Le(this._viewY, this._viewM + 1);
1538
+ let t = Be(this._viewY, this._viewM + 1);
1511
1539
  e.innerHTML = `
1512
1540
  <div class="daterange-head">
1513
1541
  <button type="button" class="datepicker-nav-btn" data-nav="-1" aria-label="Previous month">${K("chevron-left")}</button>
@@ -1533,10 +1561,10 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1533
1561
  n.classList.toggle("is-range-start", i), n.classList.toggle("is-range-end", a), n.classList.toggle("in-range", o);
1534
1562
  }
1535
1563
  let i = e.querySelector("[data-range-hint]");
1536
- i && (i.textContent = this._start ? this._end ? `${Fe(this._start)} – ${Fe(this._end)}` : "Pick an end date" : "Pick a start date");
1564
+ i && (i.textContent = this._start ? this._end ? `${Re(this._start)} – ${Re(this._end)}` : "Pick an end date" : "Pick a start date");
1537
1565
  }
1538
1566
  _position(e, t) {
1539
- ye(e, t);
1567
+ Se(e, t);
1540
1568
  }
1541
1569
  _pick(e) {
1542
1570
  if (!this._start || this._start && this._end) {
@@ -1568,7 +1596,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1568
1596
  this._popClick = !0;
1569
1597
  let t = e.target.closest("[data-nav]");
1570
1598
  if (t) {
1571
- let e = Le(this._viewY, this._viewM + Number(t.dataset.nav));
1599
+ let e = Be(this._viewY, this._viewM + Number(t.dataset.nav));
1572
1600
  this._viewY = e.y, this._viewM = e.m, this._renderView();
1573
1601
  return;
1574
1602
  }
@@ -1587,18 +1615,18 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1587
1615
  this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
1588
1616
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
1589
1617
  r() && e.key === "Escape" && this._close();
1590
- }, document.addEventListener("keydown", this._onDocKey), be(this, () => {
1618
+ }, document.addEventListener("keydown", this._onDocKey), Ce(this, () => {
1591
1619
  r() && this._position(e, t);
1592
1620
  });
1593
1621
  }, this._bindGlobal(), this._syncMirrors();
1594
1622
  }
1595
1623
  _teardown() {
1596
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), xe(this);
1624
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), we(this);
1597
1625
  }
1598
1626
  disconnectedCallback() {
1599
1627
  this._teardown();
1600
1628
  }
1601
- }, Be = class extends HTMLElement {
1629
+ }, Ue = class extends HTMLElement {
1602
1630
  static get observedAttributes() {
1603
1631
  return [
1604
1632
  "static",
@@ -1619,10 +1647,10 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1619
1647
  e === "static" && this.isConnected && this._wire();
1620
1648
  }
1621
1649
  _maxScale() {
1622
- return Ve(this.getAttribute("max-scale"), 1.6);
1650
+ return We(this.getAttribute("max-scale"), 1.6);
1623
1651
  }
1624
1652
  _radius() {
1625
- return Ve(this.getAttribute("radius"), 100);
1653
+ return We(this.getAttribute("radius"), 100);
1626
1654
  }
1627
1655
  _magnifyEnabled() {
1628
1656
  return !(this.hasAttribute("static") || typeof matchMedia == "function" && (matchMedia("(pointer: coarse)").matches || matchMedia("(prefers-reduced-motion: reduce)").matches));
@@ -1647,10 +1675,10 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1647
1675
  _teardown() {
1648
1676
  this._pointerMoveListener &&= (this.removeEventListener("pointermove", this._pointerMoveListener), null), this._pointerLeaveListener &&= (this.removeEventListener("pointerleave", this._pointerLeaveListener), null), this._resetMagnification();
1649
1677
  }
1650
- }, Ve = (e, t) => {
1678
+ }, We = (e, t) => {
1651
1679
  let n = Number.parseFloat(e);
1652
1680
  return Number.isFinite(n) ? n : t;
1653
- }, He = class extends HTMLElement {
1681
+ }, Ge = class extends HTMLElement {
1654
1682
  static formAssociated = !0;
1655
1683
  _accessibleName() {
1656
1684
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
@@ -1664,7 +1692,8 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1664
1692
  "icon",
1665
1693
  "size",
1666
1694
  "collapse-chips",
1667
- "aria-label"
1695
+ "aria-label",
1696
+ "aria-invalid"
1668
1697
  ];
1669
1698
  }
1670
1699
  constructor() {
@@ -1693,9 +1722,17 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1693
1722
  formResetCallback() {
1694
1723
  this.values = (this._defaultValues || []).slice();
1695
1724
  }
1696
- attributeChangedCallback() {
1725
+ attributeChangedCallback(e) {
1726
+ if (e === "aria-invalid") {
1727
+ this._syncInvalid();
1728
+ return;
1729
+ }
1697
1730
  this._rendered && this.render();
1698
1731
  }
1732
+ _syncInvalid() {
1733
+ let e = this.querySelector(".search-select-control");
1734
+ e && (this.hasAttribute("aria-invalid") ? e.setAttribute("aria-invalid", "true") : e.removeAttribute("aria-invalid"));
1735
+ }
1699
1736
  get values() {
1700
1737
  return this._values.slice();
1701
1738
  }
@@ -1719,7 +1756,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1719
1756
  value: e.getAttribute("value") ?? e.textContent.trim(),
1720
1757
  label: e.innerHTML,
1721
1758
  icon: e.getAttribute("icon") || void 0,
1722
- [Te]: !0,
1759
+ [Oe]: !0,
1723
1760
  selected: e.hasAttribute("selected")
1724
1761
  })));
1725
1762
  }
@@ -1732,7 +1769,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1732
1769
  }
1733
1770
  _labelHtmlFor(e) {
1734
1771
  let t = this._readOptions().find((t) => String(t.value) === String(e));
1735
- return t ? De(t) : q(e);
1772
+ return t ? Ae(t) : q(e);
1736
1773
  }
1737
1774
  render() {
1738
1775
  this._snapshotDeclared();
@@ -1741,13 +1778,13 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1741
1778
  let a = `${this.id}-listbox`;
1742
1779
  this._listboxId = a, this.innerHTML = `
1743
1780
  <div class="search-select${i}">
1744
- <div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Ue(a)}" aria-label="${Ue(this._accessibleName())}"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : " tabindex=\"0\""}>
1781
+ <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("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : " tabindex=\"0\""}>
1745
1782
  ${n ? K(n, { className: "search-select-icon" }) : ""}
1746
1783
  <div class="ms-chips" data-chips></div>
1747
1784
  ${K("chevron-down", { className: "search-select-caret" })}
1748
1785
  </div>
1749
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Ue(a)}" aria-multiselectable="true" tabindex="-1" hidden>
1750
- ${e ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${Ue(t)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden>${K("x")}</button></div>` : ""}
1786
+ <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Ke(a)}" aria-multiselectable="true" tabindex="-1" hidden>
1787
+ ${e ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${Ke(t)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden>${K("x")}</button></div>` : ""}
1751
1788
  <div class="search-select-options"></div>
1752
1789
  <div class="search-select-empty" hidden>No matches</div>
1753
1790
  </div>
@@ -1761,7 +1798,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1761
1798
  e.innerHTML = `<span class="search-select-placeholder">${q(t)}</span>`;
1762
1799
  return;
1763
1800
  }
1764
- 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="${Ue(e)}" aria-label="Remove ${Ue(We(this._labelFor(e)))}">${K("x")}</button></span>`).join(""), this._collapseChips();
1801
+ 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(qe(this._labelFor(e)))}">${K("x")}</button></span>`).join(""), this._collapseChips();
1765
1802
  }
1766
1803
  _collapseChips() {
1767
1804
  let e = this.querySelector("[data-chips]");
@@ -1785,18 +1822,18 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1785
1822
  let t = this.querySelector(".search-select-options"), n = this.querySelector(".search-select-empty");
1786
1823
  if (!t) return;
1787
1824
  let r = (e || "").trim().toLowerCase(), i = this._readOptions();
1788
- r && (i = i.filter((e) => We(e.label).toLowerCase().includes(r)));
1825
+ r && (i = i.filter((e) => qe(e.label).toLowerCase().includes(r)));
1789
1826
  let a = this._listboxId || `${this.id || "wui-multiselect"}-listbox`;
1790
1827
  t.innerHTML = i.map((e, t) => {
1791
1828
  let n = this._values.includes(String(e.value));
1792
- return `<button type="button" role="option" id="${Ue(`${a}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${Ue(e.value)}" aria-selected="${n}"><span class="ms-opt-label">${De(e)}</span><span class="ms-check">${K("check")}</span></button>`;
1829
+ 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">${Ae(e)}</span><span class="ms-check">${K("check")}</span></button>`;
1793
1830
  }).join(""), n && (n.hidden = i.length > 0), this._active = -1, this.querySelector(".search-select-control")?.removeAttribute("aria-activedescendant");
1794
1831
  }
1795
1832
  _wire() {
1796
1833
  this._teardown();
1797
1834
  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");
1798
1835
  if (!e || !t) return;
1799
- let a = () => this.hasAttribute("disabled"), o = () => ye(e, t, { matchWidth: !0 }), s = () => [...this.querySelectorAll(".search-select-option")], c = () => s().filter((e) => !e.hidden), l = (t) => {
1836
+ let a = () => this.hasAttribute("disabled"), o = () => Se(e, t, { matchWidth: !0 }), s = () => [...this.querySelectorAll(".search-select-option")], c = () => s().filter((e) => !e.hidden), l = (t) => {
1800
1837
  let n = c();
1801
1838
  this._active = t;
1802
1839
  for (let e of s()) e.classList.remove("is-active");
@@ -1829,7 +1866,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1829
1866
  t && l(c().indexOf(t));
1830
1867
  }), i.addEventListener("mouseleave", () => l(-1)), n?.addEventListener("input", () => {
1831
1868
  this._renderOptions(n.value), r && (r.hidden = !n.value), l(-1);
1832
- }), this._navHandler = we({
1869
+ }), this._navHandler = De({
1833
1870
  getVisibleOptions: c,
1834
1871
  getActive: () => this._active,
1835
1872
  setActive: (e) => l(e),
@@ -1858,18 +1895,18 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1858
1895
  }), this._bindGlobal = () => {
1859
1896
  this._teardown(), !this._ro && typeof ResizeObserver < "u" && (this._ro = new ResizeObserver(() => this._collapseChips()), this._ro.observe(this)), this._onDocClick = (e) => {
1860
1897
  u() && !this.contains(e.target) && f();
1861
- }, document.addEventListener("click", this._onDocClick), be(this, () => {
1898
+ }, document.addEventListener("click", this._onDocClick), Ce(this, () => {
1862
1899
  u() && o();
1863
1900
  });
1864
1901
  }, this._bindGlobal();
1865
1902
  }
1866
1903
  _teardown() {
1867
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), xe(this), this._navHandler?.teardown();
1904
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), we(this), this._navHandler?.teardown();
1868
1905
  }
1869
1906
  disconnectedCallback() {
1870
1907
  this._teardown(), this._ro?.disconnect(), this._ro = null;
1871
1908
  }
1872
- }, Ue = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), We = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), Ge = /[^0-9]/g, Ke = /[^0-9a-zA-Z]/g, qe = class extends HTMLElement {
1909
+ }, Ke = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), qe = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), Je = /[^0-9]/g, Ye = /[^0-9a-zA-Z]/g, Xe = class extends HTMLElement {
1873
1910
  static formAssociated = !0;
1874
1911
  static get observedAttributes() {
1875
1912
  return [
@@ -1900,7 +1937,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1900
1937
  this._value = this._clean(e), G(this, this._value), this._paint();
1901
1938
  }
1902
1939
  _clean(e) {
1903
- return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ? Ke : Ge, "").slice(0, this.length);
1940
+ return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ? Ye : Je, "").slice(0, this.length);
1904
1941
  }
1905
1942
  constructor() {
1906
1943
  super();
@@ -1980,7 +2017,7 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1980
2017
  disconnectedCallback() {
1981
2018
  this._onSelectionChange && document.removeEventListener("selectionchange", this._onSelectionChange);
1982
2019
  }
1983
- }, Je = [
2020
+ }, Ze = [
1984
2021
  [
1985
2022
  "AF",
1986
2023
  "Afghanistan",
@@ -3206,20 +3243,20 @@ var Te = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
3206
3243
  "Zimbabwe",
3207
3244
  "263"
3208
3245
  ]
3209
- ], Ye = (e) => (Je.find((t) => t[0] === e) || [
3246
+ ], Qe = (e) => (Ze.find((t) => t[0] === e) || [
3210
3247
  "",
3211
3248
  "",
3212
3249
  ""
3213
- ])[2], Xe = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, Y = null, Ze = null;
3214
- function Qe() {
3215
- return Y ? Promise.resolve(Y) : (Ze ||= Promise.all([import("./libphonenumber-js-BcNT8oq0-DMpMlice.js"), import("./examples.mobile.json-BMXTGiGC-Dl_Tt3py.js")]).then(([e, t]) => (Y = {
3250
+ ])[2], $e = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, Y = null, et = null;
3251
+ function tt() {
3252
+ return Y ? Promise.resolve(Y) : (et ||= Promise.all([import("./libphonenumber-js-BcNT8oq0-DMpMlice.js"), import("./examples.mobile.json-BMXTGiGC-Dl_Tt3py.js")]).then(([e, t]) => (Y = {
3216
3253
  AsYouType: e.AsYouType,
3217
3254
  getExampleNumber: e.getExampleNumber,
3218
3255
  isValidPhoneNumber: e.isValidPhoneNumber,
3219
3256
  examples: t.default || t
3220
- }, Y)).catch(() => null), Ze);
3257
+ }, Y)).catch(() => null), et);
3221
3258
  }
3222
- function $e(e, t) {
3259
+ function nt(e, t) {
3223
3260
  if (!Y || !t) return t;
3224
3261
  try {
3225
3262
  return new Y.AsYouType(e).input(t);
@@ -3227,7 +3264,7 @@ function $e(e, t) {
3227
3264
  return t;
3228
3265
  }
3229
3266
  }
3230
- function et(e) {
3267
+ function rt(e) {
3231
3268
  if (!Y) return null;
3232
3269
  try {
3233
3270
  return Y.getExampleNumber(e, Y.examples)?.formatNational() || null;
@@ -3235,7 +3272,7 @@ function et(e) {
3235
3272
  return null;
3236
3273
  }
3237
3274
  }
3238
- function tt(e) {
3275
+ function it(e) {
3239
3276
  if (!Y || !e) return null;
3240
3277
  try {
3241
3278
  return Y.isValidPhoneNumber(e);
@@ -3243,7 +3280,7 @@ function tt(e) {
3243
3280
  return null;
3244
3281
  }
3245
3282
  }
3246
- function nt(e) {
3283
+ function at(e) {
3247
3284
  if (!Y) return null;
3248
3285
  try {
3249
3286
  let t = Y.getExampleNumber(e, Y.examples);
@@ -3252,7 +3289,7 @@ function nt(e) {
3252
3289
  return null;
3253
3290
  }
3254
3291
  }
3255
- function rt(e) {
3292
+ function ot(e) {
3256
3293
  if (!Y || !e?.trim().startsWith("+")) return null;
3257
3294
  try {
3258
3295
  let t = new Y.AsYouType();
@@ -3266,7 +3303,7 @@ function rt(e) {
3266
3303
  return null;
3267
3304
  }
3268
3305
  }
3269
- var it = class extends HTMLElement {
3306
+ var st = class extends HTMLElement {
3270
3307
  static formAssociated = !0;
3271
3308
  static get observedAttributes() {
3272
3309
  return [
@@ -3306,13 +3343,13 @@ var it = class extends HTMLElement {
3306
3343
  this.value = this._defaultValue || "";
3307
3344
  }
3308
3345
  get value() {
3309
- return this._national ? `+${Ye(this._country)}${this._national}` : "";
3346
+ return this._national ? `+${Qe(this._country)}${this._national}` : "";
3310
3347
  }
3311
3348
  set value(e) {
3312
- let t = String(e ?? "").trim(), n = rt(t);
3349
+ let t = String(e ?? "").trim(), n = ot(t);
3313
3350
  if (n) this._country = n.country, this._national = n.national.replace(/[^0-9]/g, "");
3314
3351
  else if (t.startsWith("+")) {
3315
- let e = t.replace(/[^0-9]/g, ""), n = String(Ye(this._country));
3352
+ let e = t.replace(/[^0-9]/g, ""), n = String(Qe(this._country));
3316
3353
  n && e.startsWith(n) && (e = e.slice(n.length)), this._national = e;
3317
3354
  } else this._national = t.replace(/[^0-9]/g, "");
3318
3355
  n && this.getAttribute("country") !== this._country ? this.setAttribute("country", this._country) : this._rendered && this.render(), this._committedValue = this.value, this._syncMirror();
@@ -3328,25 +3365,25 @@ var it = class extends HTMLElement {
3328
3365
  }
3329
3366
  render() {
3330
3367
  this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || ""), this._country = this.getAttribute("country") || this._country;
3331
- let e = this.getAttribute("placeholder") || et(this._country) || "Enter phone number";
3368
+ let e = this.getAttribute("placeholder") || rt(this._country) || "Enter phone number";
3332
3369
  this.id ||= `wui-phone-${Math.random().toString(36).slice(2, 9)}`;
3333
3370
  let t = `${this.id}-listbox`;
3334
3371
  this._listboxId = t;
3335
- let n = Je.map(([e, n, r], i) => `<button type="button" role="option" id="${at(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${Xe(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
3372
+ let n = Ze.map(([e, n, r], i) => `<button type="button" role="option" id="${ct(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${$e(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
3336
3373
  this.innerHTML = `
3337
3374
  <div class="phone-input-wrap">
3338
3375
  <div class="phone-country-adornment">
3339
- <button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${at(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3340
- <span class="${Xe(this._country)}" data-flag aria-hidden="true"></span>
3376
+ <button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${ct(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3377
+ <span class="${$e(this._country)}" data-flag aria-hidden="true"></span>
3341
3378
  ${K("chevron-down", { className: "phone-chevron" })}
3342
- <span class="phone-dial" data-dial>+${Ye(this._country)}</span>
3379
+ <span class="phone-dial" data-dial>+${Qe(this._country)}</span>
3343
3380
  </button>
3344
- <div class="country-dropdown-menu" role="listbox" id="${at(t)}" tabindex="-1" hidden>
3345
- <div class="dropdown-search-wrapper"><span class="dropdown-search-icon">${K("search")}</span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${at(t)}" aria-autocomplete="list" /></div>
3381
+ <div class="country-dropdown-menu" role="listbox" id="${ct(t)}" tabindex="-1" hidden>
3382
+ <div class="dropdown-search-wrapper"><span class="dropdown-search-icon">${K("search")}</span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${ct(t)}" aria-autocomplete="list" /></div>
3346
3383
  <div class="country-list-scroll">${n}<div class="country-empty" hidden>No countries found</div></div>
3347
3384
  </div>
3348
3385
  </div>
3349
- <input type="tel" class="input" placeholder="${at(e)}" value="${at($e(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${at(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${at(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
3386
+ <input type="tel" class="input" placeholder="${ct(e)}" value="${ct(nt(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${ct(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${ct(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
3350
3387
  </div>
3351
3388
  <div class="field-error" data-phone-error hidden></div>`, this._rendered = !0, G(this, this.value), this._wire();
3352
3389
  }
@@ -3360,7 +3397,7 @@ var it = class extends HTMLElement {
3360
3397
  this._teardown();
3361
3398
  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]");
3362
3399
  if (!e || !n) return;
3363
- let l = () => !n.hidden, u = () => ye(t || e, n), d = (e) => {
3400
+ let l = () => !n.hidden, u = () => Se(t || e, n), d = (e) => {
3364
3401
  let t = this._visibleItems();
3365
3402
  this._active = e;
3366
3403
  for (let e of this._itemEls()) e.classList.remove("is-active");
@@ -3377,12 +3414,12 @@ var it = class extends HTMLElement {
3377
3414
  }
3378
3415
  a && (a.hidden = n > 0);
3379
3416
  }, h = (e) => {
3380
- this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), s && (s.className = Xe(e)), c && (c.textContent = `+${Ye(e)}`);
3417
+ this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), s && (s.className = $e(e)), c && (c.textContent = `+${Qe(e)}`);
3381
3418
  for (let t of this._itemEls()) {
3382
3419
  let n = t.dataset.iso === e;
3383
3420
  t.classList.toggle("selected", n), t.setAttribute("aria-selected", String(n));
3384
3421
  }
3385
- !this.getAttribute("placeholder") && o && (o.placeholder = et(e) || "Enter phone number"), o && this._national && (o.value = $e(e, this._national)), p(), this._syncMirror(), this._emitChange(), o?.focus();
3422
+ !this.getAttribute("placeholder") && o && (o.placeholder = rt(e) || "Enter phone number"), o && this._national && (o.value = nt(e, this._national)), p(), this._syncMirror(), this._emitChange(), o?.focus();
3386
3423
  }, g = (t) => {
3387
3424
  let n = this._visibleItems();
3388
3425
  if (t.key === "ArrowDown") {
@@ -3416,7 +3453,7 @@ var it = class extends HTMLElement {
3416
3453
  let _ = this.querySelector("[data-phone-error]"), v = (e) => {
3417
3454
  if (o.classList.toggle("is-invalid", e), e ? o.setAttribute("aria-invalid", "true") : o.removeAttribute("aria-invalid"), _) {
3418
3455
  if (e) {
3419
- let e = et(this._country);
3456
+ let e = rt(this._country);
3420
3457
  _.textContent = e ? `Enter a valid phone number, e.g. ${e}` : "Enter a valid phone number";
3421
3458
  }
3422
3459
  _.hidden = !e;
@@ -3424,26 +3461,26 @@ var it = class extends HTMLElement {
3424
3461
  };
3425
3462
  o.addEventListener("input", (e) => {
3426
3463
  e.stopPropagation();
3427
- let t = o.value.replace(/[^0-9]/g, ""), n = nt(this._country);
3464
+ let t = o.value.replace(/[^0-9]/g, ""), n = at(this._country);
3428
3465
  n && t.length > n && (t = t.slice(0, n)), this._national = t;
3429
- let r = $e(this._country, this._national);
3430
- o.value !== r && (o.value = r), this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national || tt(this.value) === !0) && v(!1);
3466
+ let r = nt(this._country, this._national);
3467
+ o.value !== r && (o.value = r), this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national || it(this.value) === !0) && v(!1);
3431
3468
  }), o.addEventListener("change", (e) => e.stopPropagation()), o.addEventListener("blur", () => {
3432
- v(this._national.length > 0 && tt(this.value) === !1), this.value !== this._committedValue && this._emitChange();
3469
+ v(this._national.length > 0 && it(this.value) === !1), this.value !== this._committedValue && this._emitChange();
3433
3470
  }), o.addEventListener("paste", (e) => {
3434
- let t = rt(e.clipboardData?.getData("text"));
3435
- t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value = $e(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
3471
+ let t = ot(e.clipboardData?.getData("text"));
3472
+ t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value = nt(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
3436
3473
  }), this._bindGlobal = () => {
3437
3474
  this._teardownGlobals?.(), this._onDocClick = (e) => {
3438
3475
  l() && !this.contains(e.target) && p();
3439
- }, document.addEventListener("click", this._onDocClick), be(this, () => {
3476
+ }, document.addEventListener("click", this._onDocClick), Ce(this, () => {
3440
3477
  l() && u();
3441
3478
  });
3442
3479
  }, this._teardownGlobals = () => {
3443
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), xe(this);
3444
- }, this._bindGlobal(), Qe().then((e) => {
3445
- if (!(!e || !o.isConnected) && (this._national && (o.value = $e(this._country, this._national)), !this.getAttribute("placeholder"))) {
3446
- let e = et(this._country);
3480
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), we(this);
3481
+ }, this._bindGlobal(), tt().then((e) => {
3482
+ if (!(!e || !o.isConnected) && (this._national && (o.value = nt(this._country, this._national)), !this.getAttribute("placeholder"))) {
3483
+ let e = rt(this._country);
3447
3484
  e && (o.placeholder = e);
3448
3485
  }
3449
3486
  }), this._syncMirror();
@@ -3454,7 +3491,7 @@ var it = class extends HTMLElement {
3454
3491
  disconnectedCallback() {
3455
3492
  this._teardown();
3456
3493
  }
3457
- }, at = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), ot = class extends HTMLElement {
3494
+ }, ct = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), lt = class extends HTMLElement {
3458
3495
  static formAssociated = !0;
3459
3496
  static get observedAttributes() {
3460
3497
  return [
@@ -3468,7 +3505,8 @@ var it = class extends HTMLElement {
3468
3505
  "clearable",
3469
3506
  "icon",
3470
3507
  "prefix",
3471
- "aria-label"
3508
+ "aria-label",
3509
+ "aria-invalid"
3472
3510
  ];
3473
3511
  }
3474
3512
  _accessibleName() {
@@ -3495,8 +3533,16 @@ var it = class extends HTMLElement {
3495
3533
  this.value = n;
3496
3534
  return;
3497
3535
  }
3536
+ if (e === "aria-invalid") {
3537
+ this._syncInvalid();
3538
+ return;
3539
+ }
3498
3540
  this._rendered && this.render();
3499
3541
  }
3542
+ _syncInvalid() {
3543
+ let e = this.querySelector(".search-select-control");
3544
+ e && (this.hasAttribute("aria-invalid") ? e.setAttribute("aria-invalid", "true") : e.removeAttribute("aria-invalid"));
3545
+ }
3500
3546
  formResetCallback() {
3501
3547
  this.value = this._defaultValue || "";
3502
3548
  }
@@ -3519,7 +3565,7 @@ var it = class extends HTMLElement {
3519
3565
  value: e.getAttribute("value") ?? e.textContent.trim(),
3520
3566
  label: e.innerHTML,
3521
3567
  icon: e.getAttribute("icon") || void 0,
3522
- [Te]: !0,
3568
+ [Oe]: !0,
3523
3569
  selected: e.hasAttribute("selected")
3524
3570
  })));
3525
3571
  }
@@ -3534,19 +3580,19 @@ var it = class extends HTMLElement {
3534
3580
  this._listboxId = u;
3535
3581
  let d = e.map((e, t) => {
3536
3582
  let n = String(e.value) === String(this._value);
3537
- return `<button type="button" role="option" id="${st(`${u}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${st(e.value)}" aria-selected="${n}">${De(e)}</button>`;
3583
+ return `<button type="button" role="option" id="${ut(`${u}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${ut(e.value)}" aria-selected="${n}">${Ae(e)}</button>`;
3538
3584
  }).join("");
3539
3585
  this.innerHTML = `
3540
3586
  <div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}${i}">
3541
- <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${st(u)}" aria-label="${st(this._accessibleName())}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3587
+ <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${ut(u)}" aria-label="${ut(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""}>
3542
3588
  ${a ? K(a, { className: "search-select-icon" }) : ""}
3543
3589
  ${o ? `<span class="search-select-prefix">${q(o)}</span>` : ""}
3544
- <span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? De(l) : q(s)}</span>
3590
+ <span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? Ae(l) : q(s)}</span>
3545
3591
  ${n ? `<span class="search-select-reset" role="button" aria-label="Clear selection" hidden>${K("x")}</span>` : ""}
3546
3592
  ${K("chevron-down", { className: "search-select-caret" })}
3547
3593
  </button>
3548
- <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${st(u)}" tabindex="-1" hidden>
3549
- ${t ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${st(c)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden>${K("x")}</button></div>` : ""}
3594
+ <div class="search-select-menu search-select-menu-fixed" role="listbox" id="${ut(u)}" tabindex="-1" hidden>
3595
+ ${t ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${ut(c)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden>${K("x")}</button></div>` : ""}
3550
3596
  <div class="search-select-options">${d}<div class="search-select-empty" hidden>No matches</div></div>
3551
3597
  </div>
3552
3598
  </div>`, this._rendered = !0, G(this, this._value), this._wire(), this._syncReset();
@@ -3575,7 +3621,7 @@ var it = class extends HTMLElement {
3575
3621
  let t = e.dataset.value === String(this._value);
3576
3622
  e.classList.toggle("selected", t), e.setAttribute("aria-selected", String(t));
3577
3623
  }
3578
- e && (e.innerHTML = t ? De(t) : q(this.getAttribute("placeholder") || "Select..."), e.classList.toggle("search-select-placeholder", !t));
3624
+ e && (e.innerHTML = t ? Ae(t) : q(this.getAttribute("placeholder") || "Select..."), e.classList.toggle("search-select-placeholder", !t));
3579
3625
  }
3580
3626
  _syncReset() {
3581
3627
  let { reset: e } = this._refs();
@@ -3588,8 +3634,8 @@ var it = class extends HTMLElement {
3588
3634
  let t = () => {
3589
3635
  if (this.hasAttribute("compact")) {
3590
3636
  let t = e.control.getBoundingClientRect();
3591
- e.menu.style.width = "max-content", e.menu.style.minWidth = `${t.width}px`, e.menu.style.maxWidth = "280px", ye(e.control, e.menu);
3592
- } else ye(e.control, e.menu, { matchWidth: !0 });
3637
+ e.menu.style.width = "max-content", e.menu.style.minWidth = `${t.width}px`, e.menu.style.maxWidth = "280px", Se(e.control, e.menu);
3638
+ } else Se(e.control, e.menu, { matchWidth: !0 });
3593
3639
  }, n = (t) => {
3594
3640
  let n = this._visible();
3595
3641
  this._active = t;
@@ -3609,7 +3655,7 @@ var it = class extends HTMLElement {
3609
3655
  }, s = (t) => {
3610
3656
  this.value = t.dataset.value, this.dispatchEvent(new Event("change", { bubbles: !0 })), o(), e.control.focus();
3611
3657
  };
3612
- this._navHandler = we({
3658
+ this._navHandler = De({
3613
3659
  getVisibleOptions: () => this._visible(),
3614
3660
  getActive: () => this._active,
3615
3661
  setActive: (e) => n(e),
@@ -3640,18 +3686,18 @@ var it = class extends HTMLElement {
3640
3686
  }), e.menu.addEventListener("keydown", this._navHandler.handler), this._bindGlobal = () => {
3641
3687
  this._teardown(), this._onDocClick = (e) => {
3642
3688
  i() && !this.contains(e.target) && o();
3643
- }, document.addEventListener("click", this._onDocClick), be(this, () => {
3689
+ }, document.addEventListener("click", this._onDocClick), Ce(this, () => {
3644
3690
  i() && t();
3645
3691
  });
3646
3692
  }, this._bindGlobal();
3647
3693
  }
3648
3694
  _teardown() {
3649
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), xe(this), this._navHandler?.teardown();
3695
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), we(this), this._navHandler?.teardown();
3650
3696
  }
3651
3697
  disconnectedCallback() {
3652
3698
  this._teardown();
3653
3699
  }
3654
- }, st = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), ct = class extends HTMLElement {
3700
+ }, ut = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), dt = class extends HTMLElement {
3655
3701
  static formAssociated = !0;
3656
3702
  static get observedAttributes() {
3657
3703
  return [
@@ -3691,19 +3737,19 @@ var it = class extends HTMLElement {
3691
3737
  return this._value;
3692
3738
  }
3693
3739
  set value(e) {
3694
- this._value = this._snapToStep(this._clamp(lt(e, this._value))), this._syncValue(), this._syncMirrors();
3740
+ this._value = this._snapToStep(this._clamp(ft(e, this._value))), this._syncValue(), this._syncMirrors();
3695
3741
  }
3696
3742
  get start() {
3697
3743
  return this._start;
3698
3744
  }
3699
3745
  set start(e) {
3700
- this._start = Math.min(this._snapToStep(this._clamp(lt(e, this._start))), this._end), this._syncValue(), this._syncMirrors();
3746
+ this._start = Math.min(this._snapToStep(this._clamp(ft(e, this._start))), this._end), this._syncValue(), this._syncMirrors();
3701
3747
  }
3702
3748
  get end() {
3703
3749
  return this._end;
3704
3750
  }
3705
3751
  set end(e) {
3706
- this._end = Math.max(this._snapToStep(this._clamp(lt(e, this._end))), this._start), this._syncValue(), this._syncMirrors();
3752
+ this._end = Math.max(this._snapToStep(this._clamp(ft(e, this._end))), this._start), this._syncValue(), this._syncMirrors();
3707
3753
  }
3708
3754
  attributeChangedCallback(e, t, n) {
3709
3755
  if (e === "value" || e === "start" || e === "end" || e === "min" || e === "max" || e === "step") {
@@ -3716,19 +3762,19 @@ var it = class extends HTMLElement {
3716
3762
  this._isRange() ? this._resetRange() : this._resetSingle();
3717
3763
  }
3718
3764
  _updateFromAttribute(e) {
3719
- e === "value" ? this._value = this._snapToStep(this._clamp(lt(this.getAttribute("value"), this._value))) : e === "start" ? this._start = this._snapToStep(this._clamp(lt(this.getAttribute("start"), this._start))) : e === "end" && (this._end = this._snapToStep(this._clamp(lt(this.getAttribute("end"), this._end))));
3765
+ e === "value" ? this._value = this._snapToStep(this._clamp(ft(this.getAttribute("value"), this._value))) : e === "start" ? this._start = this._snapToStep(this._clamp(ft(this.getAttribute("start"), this._start))) : e === "end" && (this._end = this._snapToStep(this._clamp(ft(this.getAttribute("end"), this._end))));
3720
3766
  }
3721
3767
  _isRange() {
3722
3768
  return this.hasAttribute("range");
3723
3769
  }
3724
3770
  _min() {
3725
- return lt(this.getAttribute("min"), 0);
3771
+ return ft(this.getAttribute("min"), 0);
3726
3772
  }
3727
3773
  _max() {
3728
- return lt(this.getAttribute("max"), 100);
3774
+ return ft(this.getAttribute("max"), 100);
3729
3775
  }
3730
3776
  _step() {
3731
- return lt(this.getAttribute("step"), 1);
3777
+ return ft(this.getAttribute("step"), 1);
3732
3778
  }
3733
3779
  _clamp(e) {
3734
3780
  return Math.max(this._min(), Math.min(e, this._max()));
@@ -3793,7 +3839,7 @@ var it = class extends HTMLElement {
3793
3839
  aria-valuenow="${this._value}"
3794
3840
  aria-valuetext="${this._formatValue(this._value)}"
3795
3841
  ${a ? "disabled" : ""}
3796
- aria-label="${ut(this.getAttribute("aria-label") || "Value")}"
3842
+ aria-label="${pt(this.getAttribute("aria-label") || "Value")}"
3797
3843
  ></button>
3798
3844
  `}
3799
3845
  ${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>` : ""}
@@ -3893,10 +3939,10 @@ var it = class extends HTMLElement {
3893
3939
  disconnectedCallback() {
3894
3940
  this._teardown();
3895
3941
  }
3896
- }, lt = (e, t) => {
3942
+ }, ft = (e, t) => {
3897
3943
  let n = Number.parseFloat(e);
3898
3944
  return Number.isFinite(n) ? n : t;
3899
- }, ut = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), dt = class extends HTMLElement {
3945
+ }, pt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), mt = class extends HTMLElement {
3900
3946
  static formAssociated = !0;
3901
3947
  _accessibleName() {
3902
3948
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Add tags";
@@ -3909,7 +3955,8 @@ var it = class extends HTMLElement {
3909
3955
  "max-tags",
3910
3956
  "aria-label",
3911
3957
  "separators",
3912
- "allow-duplicates"
3958
+ "allow-duplicates",
3959
+ "aria-invalid"
3913
3960
  ];
3914
3961
  }
3915
3962
  constructor() {
@@ -3941,6 +3988,10 @@ var it = class extends HTMLElement {
3941
3988
  e && (e.value = "");
3942
3989
  }
3943
3990
  attributeChangedCallback(e) {
3991
+ if (e === "aria-invalid") {
3992
+ this._syncInvalid();
3993
+ return;
3994
+ }
3944
3995
  if (this._rendered) {
3945
3996
  if (e === "separators" || e === "allow-duplicates") {
3946
3997
  this._wire();
@@ -3949,6 +4000,10 @@ var it = class extends HTMLElement {
3949
4000
  this.render();
3950
4001
  }
3951
4002
  }
4003
+ _syncInvalid() {
4004
+ let e = this.querySelector(".search-select-control");
4005
+ e && (this.hasAttribute("aria-invalid") ? e.setAttribute("aria-invalid", "true") : e.removeAttribute("aria-invalid"));
4006
+ }
3952
4007
  get values() {
3953
4008
  return this._values.slice();
3954
4009
  }
@@ -3959,8 +4014,8 @@ var it = class extends HTMLElement {
3959
4014
  let e = this.getAttribute("size"), t = e === "sm" ? " search-select-sm" : e === "lg" ? " search-select-lg" : "";
3960
4015
  G(this, this._values.join(",")), this.innerHTML = `
3961
4016
  <div class="search-select${t}">
3962
- <div class="input search-select-control search-select-multi"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
3963
- <input type="text" class="ms-input" data-input aria-label="${pt(this._accessibleName())}" placeholder="${pt(this.getAttribute("placeholder") || "Add…")}" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""}/>
4017
+ <div class="input search-select-control search-select-multi"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
4018
+ <input type="text" class="ms-input" data-input aria-label="${gt(this._accessibleName())}" placeholder="${gt(this.getAttribute("placeholder") || "Add…")}" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""}/>
3964
4019
  <div class="ms-chips" data-chips></div>
3965
4020
  </div>
3966
4021
  </div>`, this._rendered = !0, G(this, this._values.join(",")), this._renderControl(), this._wire();
@@ -3972,7 +4027,7 @@ var it = class extends HTMLElement {
3972
4027
  e.innerHTML = "";
3973
4028
  return;
3974
4029
  }
3975
- e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${ft(e)}</span><button type="button" class="chip-remove" data-remove="${pt(e)}" aria-label="Remove ${pt(e)}">${K("x")}</button></span>`).join("");
4030
+ e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${ht(e)}</span><button type="button" class="chip-remove" data-remove="${gt(e)}" aria-label="Remove ${gt(e)}">${K("x")}</button></span>`).join("");
3976
4031
  }
3977
4032
  }
3978
4033
  _wire() {
@@ -4043,18 +4098,18 @@ var it = class extends HTMLElement {
4043
4098
  disconnectedCallback() {
4044
4099
  this._teardown();
4045
4100
  }
4046
- }, ft = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), pt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), mt = (e) => String(e).padStart(2, "0"), ht = (e, t) => `${mt(e)}:${mt(t)}`, gt = (e) => {
4101
+ }, ht = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), gt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), _t = (e) => String(e).padStart(2, "0"), vt = (e, t) => `${_t(e)}:${_t(t)}`, yt = (e) => {
4047
4102
  let t = /^(\d{2}):(\d{2})$/.exec(e || "");
4048
4103
  return t ? {
4049
4104
  h: +t[1],
4050
4105
  m: +t[2]
4051
4106
  } : null;
4052
- }, _t = (e, t = "24") => {
4107
+ }, bt = (e, t = "24") => {
4053
4108
  if (!e) return "";
4054
- if (t === "24") return ht(e.h, e.m);
4109
+ if (t === "24") return vt(e.h, e.m);
4055
4110
  let n = e.h % 12 || 12, r = e.h >= 12 ? "PM" : "AM";
4056
- return `${n}:${mt(e.m)} ${r}`;
4057
- }, vt = class extends HTMLElement {
4111
+ return `${n}:${_t(e.m)} ${r}`;
4112
+ }, xt = class extends HTMLElement {
4058
4113
  static formAssociated = !0;
4059
4114
  static get observedAttributes() {
4060
4115
  return [
@@ -4101,11 +4156,11 @@ var it = class extends HTMLElement {
4101
4156
  }
4102
4157
  render() {
4103
4158
  this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || "", this._value = this._defaultValue || this._value);
4104
- let e = this.getAttribute("placeholder") || "Select time", t = gt(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");
4159
+ let e = this.getAttribute("placeholder") || "Select time", t = yt(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");
4105
4160
  this.innerHTML = `
4106
4161
  <div class="timepicker">
4107
4162
  <button type="button" class="input timepicker-trigger${i}${t ? " has-value" : ""}" aria-haspopup="listbox" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${a ? ` aria-label="${q(a)}"` : ""}${o ? ` aria-describedby="${q(o)}"` : ""}>
4108
- <span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ? _t(t, n) : q(e)}</span>
4163
+ <span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ? bt(t, n) : q(e)}</span>
4109
4164
  ${K("clock")}
4110
4165
  </button>
4111
4166
  <div class="timepicker-pop" role="listbox" tabindex="-1" hidden></div>
@@ -4117,14 +4172,14 @@ var it = class extends HTMLElement {
4117
4172
  _syncTrigger() {
4118
4173
  let e = this.querySelector(".timepicker-trigger"), t = this.querySelector("[data-trigger-label]");
4119
4174
  if (!t) return;
4120
- let n = gt(this._value), r = this.getAttribute("format") || "24";
4121
- t.textContent = n ? _t(n, r) : this.getAttribute("placeholder") || "Select time", t.classList.toggle("timepicker-placeholder", !n), e?.classList.toggle("has-value", !!n);
4175
+ let n = yt(this._value), r = this.getAttribute("format") || "24";
4176
+ t.textContent = n ? bt(n, r) : this.getAttribute("placeholder") || "Select time", t.classList.toggle("timepicker-placeholder", !n), e?.classList.toggle("has-value", !!n);
4122
4177
  }
4123
4178
  _buildTimes() {
4124
- let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r = gt(t) || {
4179
+ let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r = yt(t) || {
4125
4180
  h: 0,
4126
4181
  m: 0
4127
- }, i = gt(n) || {
4182
+ }, i = yt(n) || {
4128
4183
  h: 23,
4129
4184
  m: 59
4130
4185
  }, a = [], o = r.h, s = r.m;
@@ -4137,10 +4192,10 @@ var it = class extends HTMLElement {
4137
4192
  _renderOptions() {
4138
4193
  let e = this.querySelector(".timepicker-pop");
4139
4194
  if (!e) return;
4140
- let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = gt(this._value), i = this._focus, a = "";
4195
+ let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = yt(this._value), i = this._focus, a = "";
4141
4196
  for (let e = 0; e < n.length; e++) {
4142
- let o = n[e], s = ht(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
4143
- a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${_t(o, t)}</button>`;
4197
+ let o = n[e], s = vt(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
4198
+ a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${bt(o, t)}</button>`;
4144
4199
  }
4145
4200
  e.innerHTML = a, this._focusActive();
4146
4201
  }
@@ -4149,7 +4204,7 @@ var it = class extends HTMLElement {
4149
4204
  t && !e.hidden && t.focus();
4150
4205
  }
4151
4206
  _position(e, t) {
4152
- ye(e, t);
4207
+ Se(e, t);
4153
4208
  }
4154
4209
  _onKey(e) {
4155
4210
  let t = [...this.querySelector(".timepicker-pop").querySelectorAll(".timepicker-option")];
@@ -4204,41 +4259,41 @@ var it = class extends HTMLElement {
4204
4259
  }
4205
4260
  _wire() {
4206
4261
  this._teardown();
4207
- let e = this.querySelector(".timepicker-trigger"), t = this.querySelector(".timepicker-pop");
4262
+ let e = this.querySelector(".timepicker-trigger"), t = this.querySelector(".timepicker-pop"), n = this.querySelector(".timepicker");
4208
4263
  if (!e || !t) return;
4209
- let n = () => !t.hidden;
4264
+ let r = () => !t.hidden;
4210
4265
  this._open = () => {
4211
- this._focus = null, this._renderOptions(), t.hidden = !1, e.setAttribute("aria-expanded", "true"), this._position(e, t);
4212
- let n = t.querySelector(".is-selected");
4213
- n ? this._focus = [...t.querySelectorAll(".timepicker-option")].indexOf(n) : this._focus = 0, this._renderOptions(), t.querySelector("[tabindex=\"0\"]")?.focus();
4266
+ this._focus = null, this._renderOptions(), t.hidden = !1, n?.classList.add("open"), e.setAttribute("aria-expanded", "true"), this._position(e, t);
4267
+ let r = t.querySelector(".is-selected");
4268
+ r ? this._focus = [...t.querySelectorAll(".timepicker-option")].indexOf(r) : this._focus = 0, this._renderOptions(), t.querySelector("[tabindex=\"0\"]")?.focus();
4214
4269
  }, this._close = () => {
4215
- t.hidden = !0, e.setAttribute("aria-expanded", "false"), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "", e.focus();
4216
- }, e.addEventListener("click", () => n() ? this._close() : this._open()), e.addEventListener("keydown", (e) => {
4217
- (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), n() || this._open());
4270
+ t.hidden = !0, n?.classList.remove("open"), e.setAttribute("aria-expanded", "false"), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "", e.focus();
4271
+ }, e.addEventListener("click", () => r() ? this._close() : this._open()), e.addEventListener("keydown", (e) => {
4272
+ (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), r() || this._open());
4218
4273
  }), t.addEventListener("click", (e) => {
4219
4274
  this._popClick = !0;
4220
4275
  let t = e.target.closest(".timepicker-option");
4221
4276
  t && !t.disabled && (this.value = t.dataset.hm, this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close());
4222
4277
  }), this._onKeyBound = (e) => {
4223
- n() && this._onKey(e);
4278
+ r() && this._onKey(e);
4224
4279
  }, t.addEventListener("keydown", this._onKeyBound), this._bindGlobal = () => {
4225
4280
  this._teardown(), this._onDocClick = (e) => {
4226
4281
  let t = this._popClick;
4227
- this._popClick = !1, n() && !t && !this.contains(e.target) && this._close();
4282
+ this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
4228
4283
  }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
4229
- n() && e.key === "Escape" && this._close();
4230
- }, document.addEventListener("keydown", this._onDocKey), be(this, () => {
4231
- n() && this._position(e, t);
4284
+ r() && e.key === "Escape" && this._close();
4285
+ }, document.addEventListener("keydown", this._onDocKey), Ce(this, () => {
4286
+ r() && this._position(e, t);
4232
4287
  });
4233
4288
  }, this._bindGlobal(), this._syncFormValue();
4234
4289
  }
4235
4290
  _teardown() {
4236
- this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), xe(this), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "";
4291
+ this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), we(this), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "";
4237
4292
  }
4238
4293
  disconnectedCallback() {
4239
4294
  this._teardown();
4240
4295
  }
4241
- }, yt = "wui-wizard-step", bt = class extends HTMLElement {
4296
+ }, St = "wui-wizard-step", Ct = class extends HTMLElement {
4242
4297
  static get observedAttributes() {
4243
4298
  return [
4244
4299
  "active",
@@ -4272,7 +4327,7 @@ var it = class extends HTMLElement {
4272
4327
  this._beforeNext = typeof e == "function" ? e : null;
4273
4328
  }
4274
4329
  get _steps() {
4275
- return [...this.querySelectorAll(`:scope > ${yt}`)];
4330
+ return [...this.querySelectorAll(`:scope > ${St}`)];
4276
4331
  }
4277
4332
  refresh() {
4278
4333
  this._rendered && this._renderChrome();
@@ -4331,13 +4386,13 @@ var it = class extends HTMLElement {
4331
4386
  return e.map((e, r) => {
4332
4387
  let a = this._stepStatus(e, r), o = e.getAttribute("label") || "", s = e.getAttribute("description") || "", c = e.getAttribute("icon") || "", l = r + 1, u;
4333
4388
  u = a === "done" ? K("check") : a === "error" ? K("alert-triangle") : a === "skipped" ? K("minus") : c ? K(c) : String(l);
4334
- let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${xt(s)}</span>` : "", h;
4335
- return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${xt(o)}</span>${m}</span>` : n ? `<span class="step-circle">${u}</span><span class="step-index">Step ${l}</span><span class="step-label">${xt(o)}</span>${m}` : `<span class="step-circle">${u}</span><span class="step-label">${xt(o)}</span>${m}`, p ? `<button type="button" class="${d}" data-step="${r}"${f}>${h}</button>` : `<div class="${d}"${f}>${h}</div>`;
4389
+ let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${wt(s)}</span>` : "", h;
4390
+ return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${wt(o)}</span>${m}</span>` : n ? `<span class="step-circle">${u}</span><span class="step-index">Step ${l}</span><span class="step-label">${wt(o)}</span>${m}` : `<span class="step-circle">${u}</span><span class="step-label">${wt(o)}</span>${m}`, p ? `<button type="button" class="${d}" data-step="${r}"${f}>${h}</button>` : `<div class="${d}"${f}>${h}</div>`;
4336
4391
  }).join("");
4337
4392
  }
4338
4393
  _footerHtml(e) {
4339
4394
  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";
4340
- return `${t > 0 ? `<button type="button" class="btn btn-secondary" data-nav="back"${r}>${xt(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${xt(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${xt(o)}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${xt(c)}</button>`}</span>`;
4395
+ return `${t > 0 ? `<button type="button" class="btn btn-secondary" data-nav="back"${r}>${wt(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${wt(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${wt(o)}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${wt(c)}</button>`}</span>`;
4341
4396
  }
4342
4397
  _wire() {
4343
4398
  this._teardown(), this._onHeaderClick = (e) => {
@@ -4405,7 +4460,7 @@ var it = class extends HTMLElement {
4405
4460
  _reflectActive(e) {
4406
4461
  this._reflecting = !0, this.setAttribute("active", String(e)), this._reflecting = !1;
4407
4462
  }
4408
- }, xt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), St = class extends HTMLElement {
4463
+ }, wt = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), Tt = class extends HTMLElement {
4409
4464
  static get observedAttributes() {
4410
4465
  return [
4411
4466
  "label",
@@ -4419,14 +4474,14 @@ var it = class extends HTMLElement {
4419
4474
  let e = this.closest("wui-wizard");
4420
4475
  e && typeof e.refresh == "function" && e.refresh();
4421
4476
  }
4422
- }, Ct = "image/png,image/jpeg,image/webp", wt = {
4477
+ }, Et = "image/png,image/jpeg,image/webp", Dt = {
4423
4478
  "image/png": [".png"],
4424
4479
  "image/jpeg": [".jpg", ".jpeg"],
4425
4480
  "image/webp": [".webp"],
4426
4481
  "image/gif": [".gif"],
4427
4482
  "image/svg+xml": [".svg"],
4428
4483
  "application/pdf": [".pdf"]
4429
- }, Tt = {
4484
+ }, Ot = {
4430
4485
  "image/png": "PNG",
4431
4486
  "image/jpeg": "JPG",
4432
4487
  "image/webp": "WEBP",
@@ -4440,7 +4495,7 @@ var it = class extends HTMLElement {
4440
4495
  ".gif": "GIF",
4441
4496
  ".svg": "SVG",
4442
4497
  ".pdf": "PDF"
4443
- }, Et = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), Dt = [
4498
+ }, kt = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), At = [
4444
4499
  ".png",
4445
4500
  ".jpg",
4446
4501
  ".jpeg",
@@ -4451,46 +4506,46 @@ var it = class extends HTMLElement {
4451
4506
  ".avif",
4452
4507
  ".heic"
4453
4508
  ];
4454
- function Ot(e) {
4509
+ function jt(e) {
4455
4510
  if (!e) return !1;
4456
4511
  let t = typeof e == "object" && e.type ? String(e.type).toLowerCase() : "";
4457
4512
  if (t) return t.startsWith("image/");
4458
4513
  let n = typeof e == "string" ? e : e.name || e.url || "", r = String(n).toLowerCase();
4459
- return Dt.some((e) => r.endsWith(e));
4514
+ return At.some((e) => r.endsWith(e));
4460
4515
  }
4461
- function kt(e) {
4462
- let t = Et(e);
4463
- return t.length ? t.every((e) => e.startsWith(".") ? Dt.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
4516
+ function Mt(e) {
4517
+ let t = kt(e);
4518
+ return t.length ? t.every((e) => e.startsWith(".") ? At.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
4464
4519
  }
4465
- function At(e) {
4520
+ function Nt(e) {
4466
4521
  let t = [];
4467
- for (let n of Et(e)) {
4468
- let e = Tt[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
4522
+ for (let n of kt(e)) {
4523
+ let e = Ot[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
4469
4524
  t.includes(e) || t.push(e);
4470
4525
  }
4471
4526
  return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
4472
4527
  }
4473
- function jt(e, t) {
4474
- let n = Et(t);
4528
+ function Pt(e, t) {
4529
+ let n = kt(t);
4475
4530
  if (!n.length) return !0;
4476
4531
  let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
4477
- return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (wt[e] || []).some((e) => i.endsWith(e)));
4532
+ 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)));
4478
4533
  }
4479
- function Mt(e, t = {}) {
4534
+ function Ft(e, t = {}) {
4480
4535
  if (!e) return null;
4481
- let n = t.accept === void 0 ? Ct : t.accept, r = t.maxSizeMb || 5;
4482
- return jt(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${At(n)} file.`;
4536
+ let n = t.accept === void 0 ? Et : t.accept, r = t.maxSizeMb || 5;
4537
+ return Pt(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${Nt(n)} file.`;
4483
4538
  }
4484
4539
  var X = (e, t) => {
4485
4540
  typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
4486
4541
  };
4487
- function Nt() {
4488
- X("wui-select", ot), X("wui-phone", it), X("wui-datepicker", Re), X("wui-date-range", ze), X("wui-dock", Be), X("wui-slider", ct), X("wui-timepicker", vt), X("wui-autocomplete", Oe), X("wui-multiselect", He), X("wui-taginput", dt), X("wui-otp", qe), X("wui-status-icon", _e), X("wui-wizard-step", St), X("wui-wizard", bt);
4542
+ function It() {
4543
+ X("wui-select", lt), X("wui-phone", st), X("wui-datepicker", Ve), X("wui-date-range", He), X("wui-dock", Ue), X("wui-slider", dt), X("wui-timepicker", xt), X("wui-autocomplete", je), X("wui-multiselect", Ge), X("wui-taginput", mt), X("wui-otp", Xe), X("wui-status-icon", be), X("wui-wizard-step", Tt), X("wui-wizard", Ct);
4489
4544
  }
4490
- Nt();
4545
+ It();
4491
4546
  //#endregion
4492
4547
  //#region src/components/AppPopover.jsx
4493
- function Pt({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
4548
+ function Lt({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
4494
4549
  N("AppPopover", l);
4495
4550
  let u = s(), [f, h] = d(!1), g = (e) => {
4496
4551
  h(e), o?.(e);
@@ -4525,18 +4580,18 @@ function Pt({ trigger: e, children: t, title: r, placement: i = "bottom", trigge
4525
4580
  }
4526
4581
  //#endregion
4527
4582
  //#region src/components/AppInfoTip.jsx
4528
- function Ft({ label: e, children: t, placement: n = "auto", className: r = "", ...i }) {
4583
+ function Rt({ label: e, children: t, placement: n = "auto", className: r = "", ...i }) {
4529
4584
  N("AppInfoTip", i);
4530
4585
  let [a, o] = d(!1), s = !!e;
4531
4586
  return !s && !t ? null : /* @__PURE__ */ p("span", {
4532
4587
  className: `infotip${r ? ` ${r}` : ""}`,
4533
4588
  ...i,
4534
- children: /* @__PURE__ */ p(Pt, {
4589
+ children: /* @__PURE__ */ p(Lt, {
4535
4590
  trigger: /* @__PURE__ */ p("button", {
4536
4591
  type: "button",
4537
4592
  className: "infotip-btn",
4538
4593
  "aria-label": e || "More information",
4539
- children: /* @__PURE__ */ p(H, {
4594
+ children: /* @__PURE__ */ p(V, {
4540
4595
  name: "info",
4541
4596
  size: 16
4542
4597
  })
@@ -4561,8 +4616,8 @@ function Z() {
4561
4616
  }
4562
4617
  //#endregion
4563
4618
  //#region src/components/useWuiControl.js
4564
- function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: a = It, syncDeps: s = [] } = {}) {
4565
- let c = u(null), l = r ?? Lt, d = i ?? Rt, f = (a || It).join("\0"), p = (t) => {
4619
+ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: a = zt, syncDeps: s = [] } = {}) {
4620
+ let c = u(null), l = r ?? Bt, d = i ?? Vt, f = (a || zt).join("\0"), p = (t) => {
4566
4621
  c.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
4567
4622
  };
4568
4623
  return o(() => {
@@ -4575,7 +4630,7 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
4575
4630
  ]), o(() => {
4576
4631
  let e = c.current;
4577
4632
  if (!e) return;
4578
- let t = f ? f.split("\0") : It, r, i = () => {
4633
+ let t = f ? f.split("\0") : zt, r, i = () => {
4579
4634
  let t = l(e);
4580
4635
  Object.is(t, r) || (r = t, n?.(t));
4581
4636
  };
@@ -4592,39 +4647,39 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
4592
4647
  innerRef: c
4593
4648
  };
4594
4649
  }
4595
- var It = ["change"];
4596
- function Lt(e) {
4650
+ var zt = ["change"];
4651
+ function Bt(e) {
4597
4652
  return e.value;
4598
4653
  }
4599
- function Rt(e, t) {
4654
+ function Vt(e, t) {
4600
4655
  let n = t ?? "";
4601
4656
  String(e.value ?? "") !== String(n) && (e.value = n);
4602
4657
  }
4603
- function zt(e, t) {
4658
+ function Ht(e, t) {
4604
4659
  let n = e || [], r = t || [];
4605
4660
  return n.length === r.length && n.every((e, t) => e?.value === r[t]?.value && e?.label === r[t]?.label);
4606
4661
  }
4607
- function Bt(e) {
4662
+ function Ut(e) {
4608
4663
  return e.values;
4609
4664
  }
4610
- function Vt(e, t) {
4665
+ function Wt(e, t) {
4611
4666
  let n = t || [], r = e.values || [];
4612
4667
  (n.length !== r.length || !n.every((e, t) => e === r[t])) && (e.values = n);
4613
4668
  }
4614
- function Ht(e) {
4669
+ function Gt(e) {
4615
4670
  return {
4616
4671
  start: e.start,
4617
4672
  end: e.end
4618
4673
  };
4619
4674
  }
4620
- function Ut(e, t) {
4675
+ function Kt(e, t) {
4621
4676
  if (t === void 0) return;
4622
4677
  let n = Number.parseFloat(t);
4623
4678
  Number.isFinite(n) && e.value !== n && (e.value = n);
4624
4679
  }
4625
4680
  //#endregion
4626
4681
  //#region src/components/AppAutocomplete.jsx
4627
- var Wt = 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) {
4682
+ var qt = 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) {
4628
4683
  N("AppAutocomplete", S);
4629
4684
  let w = typeof r == "function", T = s(), E = f || T, { setRef: D, innerRef: O } = Q({
4630
4685
  ref: C,
@@ -4673,7 +4728,7 @@ var Wt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4673
4728
  children: [
4674
4729
  h,
4675
4730
  v && /* @__PURE__ */ p(Z, {}),
4676
- y && /* @__PURE__ */ p(Ft, {
4731
+ y && /* @__PURE__ */ p(Rt, {
4677
4732
  label: b,
4678
4733
  children: y
4679
4734
  })
@@ -4707,14 +4762,14 @@ var Wt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4707
4762
  }) : null
4708
4763
  ]
4709
4764
  });
4710
- }), Gt = /* @__PURE__ */ new Set([
4765
+ }), Jt = /* @__PURE__ */ new Set([
4711
4766
  "xs",
4712
4767
  "sm",
4713
4768
  "md",
4714
4769
  "lg",
4715
4770
  "xl",
4716
4771
  "2xl"
4717
- ]), Kt = {
4772
+ ]), Yt = {
4718
4773
  xs: 20,
4719
4774
  sm: 24,
4720
4775
  md: 32,
@@ -4722,30 +4777,30 @@ var Wt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
4722
4777
  xl: 64,
4723
4778
  "2xl": 96
4724
4779
  };
4725
- function qt(e) {
4780
+ function Xt(e) {
4726
4781
  let t = (e || "").trim();
4727
4782
  if (!t) return "?";
4728
4783
  let n = t.split(/\s+/).filter(Boolean);
4729
4784
  return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
4730
4785
  }
4731
- function Jt(e) {
4786
+ function Zt(e) {
4732
4787
  let t = e || "", n = 0;
4733
4788
  for (let e = 0; e < t.length; e += 1) n = Math.imul(n, 31) + t.charCodeAt(e) >>> 0;
4734
4789
  return n % 360;
4735
4790
  }
4736
- function Yt(e) {
4791
+ function Qt(e) {
4737
4792
  if (typeof e == "number") return e;
4738
- if (Kt[e] != null) return Kt[e];
4793
+ if (Yt[e] != null) return Yt[e];
4739
4794
  let t = Number.parseInt(e, 10);
4740
4795
  return Number.isNaN(t) ? 32 : t;
4741
4796
  }
4742
- function Xt({ 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 }) {
4797
+ function $t({ 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 }) {
4743
4798
  N("AppAvatar", y);
4744
4799
  let { style: b, ...x } = y, [S, C] = d(!1);
4745
4800
  o(() => {
4746
4801
  C(!1);
4747
4802
  }, [t]);
4748
- let w = typeof n == "string" && Gt.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 = [
4803
+ let w = typeof n == "string" && Jt.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 = [
4749
4804
  "avatar",
4750
4805
  w && n !== "md" ? `avatar-${n}` : "",
4751
4806
  r === "circle" ? "" : `avatar-${r}`,
@@ -4754,16 +4809,16 @@ function Xt({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
4754
4809
  E ? "avatar-clickable" : "",
4755
4810
  v
4756
4811
  ].filter(Boolean).join(" "), k = {};
4757
- T && (k["--avatar-size"] = T), i === "auto" && (k["--avatar-hue"] = Jt(e));
4812
+ T && (k["--avatar-size"] = T), i === "auto" && (k["--avatar-hue"] = Zt(e));
4758
4813
  let A = Object.keys(k).length || b ? {
4759
4814
  ...k,
4760
4815
  ...b
4761
4816
  } : void 0, j = /* @__PURE__ */ p("span", {
4762
4817
  className: "avatar-face",
4763
4818
  "aria-hidden": "true",
4764
- children: l == null ? qt(e) : /* @__PURE__ */ p(H, {
4819
+ children: l == null ? Xt(e) : /* @__PURE__ */ p(V, {
4765
4820
  name: l,
4766
- size: Math.round(Yt(n) * .55)
4821
+ size: Math.round(Qt(n) * .55)
4767
4822
  })
4768
4823
  }), M = /* @__PURE__ */ m(f, { children: [
4769
4824
  a !== "none" && /* @__PURE__ */ p("span", {
@@ -4825,7 +4880,7 @@ function Xt({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
4825
4880
  }
4826
4881
  //#endregion
4827
4882
  //#region src/components/AppAvatarGroup.jsx
4828
- var Zt = {
4883
+ var en = {
4829
4884
  xs: 20,
4830
4885
  sm: 24,
4831
4886
  md: 32,
@@ -4833,16 +4888,16 @@ var Zt = {
4833
4888
  xl: 64,
4834
4889
  "2xl": 96
4835
4890
  };
4836
- function Qt(e) {
4837
- return e == null ? null : typeof e == "number" ? `${e}px` : Zt[e] == null ? /^\d+$/.test(e) ? `${e}px` : e : `${Zt[e]}px`;
4891
+ function tn(e) {
4892
+ return e == null ? null : typeof e == "number" ? `${e}px` : en[e] == null ? /^\d+$/.test(e) ? `${e}px` : e : `${en[e]}px`;
4838
4893
  }
4839
- function $t({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
4894
+ function nn({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
4840
4895
  N("AppAvatarGroup", a);
4841
4896
  let { style: o, ...s } = a, c = [
4842
4897
  "avatar-group",
4843
4898
  n === "normal" ? "" : `avatar-group-${n}`,
4844
4899
  i
4845
- ].filter(Boolean).join(" "), l = Qt(t), u = l ? {
4900
+ ].filter(Boolean).join(" "), l = tn(t), u = l ? {
4846
4901
  "--avatar-size": l,
4847
4902
  ...o
4848
4903
  } : o, d = typeof r == "string" ? Number.parseInt(r, 10) : r;
@@ -4860,7 +4915,7 @@ function $t({ children: e, size: t, spacing: n = "normal", overflow: r, classNam
4860
4915
  }
4861
4916
  //#endregion
4862
4917
  //#region src/components/AppBadge.jsx
4863
- function en({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4918
+ function rn({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4864
4919
  return N("AppBadge", i), /* @__PURE__ */ p(g, {
4865
4920
  bg: !1,
4866
4921
  className: [
@@ -4874,18 +4929,18 @@ function en({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
4874
4929
  }
4875
4930
  //#endregion
4876
4931
  //#region src/components/AppBanner.jsx
4877
- var tn = [
4932
+ var an = [
4878
4933
  "info",
4879
4934
  "success",
4880
4935
  "warning",
4881
4936
  "danger",
4882
4937
  "neutral"
4883
4938
  ];
4884
- function nn({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
4939
+ function on({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
4885
4940
  N("AppBanner", o);
4886
4941
  let [s, c] = d(!0);
4887
4942
  if (!s) return null;
4888
- let l = tn.includes(e) ? e : "info", u = () => {
4943
+ let l = an.includes(e) ? e : "info", u = () => {
4889
4944
  c(!1), i?.();
4890
4945
  };
4891
4946
  return /* @__PURE__ */ m("div", {
@@ -4895,7 +4950,7 @@ function nn({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDis
4895
4950
  children: [
4896
4951
  t && /* @__PURE__ */ p("span", {
4897
4952
  className: "wui-banner-icon",
4898
- children: U(t, { size: 18 })
4953
+ children: H(t, { size: 18 })
4899
4954
  }),
4900
4955
  /* @__PURE__ */ p("div", {
4901
4956
  className: "wui-banner-body",
@@ -4906,7 +4961,7 @@ function nn({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDis
4906
4961
  className: "wui-banner-dismiss",
4907
4962
  "aria-label": "Dismiss",
4908
4963
  onClick: u,
4909
- children: /* @__PURE__ */ p(H, {
4964
+ children: /* @__PURE__ */ p(V, {
4910
4965
  name: "x",
4911
4966
  size: 18
4912
4967
  })
@@ -4916,12 +4971,12 @@ function nn({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDis
4916
4971
  }
4917
4972
  //#endregion
4918
4973
  //#region src/components/AppBreadcrumbs.jsx
4919
- function rn({ items: e = [], linkComponent: t, className: n = "", ...r }) {
4974
+ function sn({ items: e = [], linkComponent: t, className: n = "", ...r }) {
4920
4975
  return N("AppBreadcrumbs", r), /* @__PURE__ */ p(_, {
4921
4976
  className: n || void 0,
4922
4977
  ...r,
4923
4978
  children: e.map((n, r) => {
4924
- let i = r === e.length - 1, a = n.icon ? U(n.icon, { size: 14 }) : null, o = {};
4979
+ let i = r === e.length - 1, a = n.icon ? H(n.icon, { size: 14 }) : null, o = {};
4925
4980
  return i || (n.to && t ? o = {
4926
4981
  linkAs: t,
4927
4982
  linkProps: { to: n.to }
@@ -4935,17 +4990,17 @@ function rn({ items: e = [], linkComponent: t, className: n = "", ...r }) {
4935
4990
  }
4936
4991
  //#endregion
4937
4992
  //#region src/components/AppCallout.jsx
4938
- var an = {
4993
+ var cn = {
4939
4994
  info: "info",
4940
4995
  success: "check",
4941
4996
  warning: "alert-triangle",
4942
4997
  danger: "x"
4943
4998
  };
4944
- function on({ children: e, tone: t = "info", title: n, icon: r, image: i, imageAlt: a = "", size: o = "md", bordered: s = !0, action: c, dismissible: l = !1, onDismiss: u, className: f = "", ...h }) {
4999
+ function ln({ children: e, tone: t = "info", title: n, icon: r, image: i, imageAlt: a = "", size: o = "md", bordered: s = !0, action: c, dismissible: l = !1, onDismiss: u, className: f = "", ...h }) {
4945
5000
  N("AppCallout", h);
4946
5001
  let [g, _] = d(!0);
4947
5002
  if (!g) return null;
4948
- let v = r === void 0 ? an[t] : r === "none" ? null : r, y = !!i, b = y || !!v, x = b && !!n && e != null && e !== !1 && e !== "", S = x ? 13 : 11;
5003
+ let v = r === void 0 ? cn[t] : r === "none" ? null : r, y = !!i, b = y || !!v, x = b && !!n && e != null && e !== !1 && e !== "", S = x ? 13 : 11;
4949
5004
  return /* @__PURE__ */ m("div", {
4950
5005
  className: [
4951
5006
  "info-callout",
@@ -4962,7 +5017,7 @@ function on({ children: e, tone: t = "info", title: n, icon: r, image: i, imageA
4962
5017
  children: y ? /* @__PURE__ */ p("img", {
4963
5018
  src: i,
4964
5019
  alt: a
4965
- }) : typeof v == "string" ? /* @__PURE__ */ p(H, {
5020
+ }) : typeof v == "string" ? /* @__PURE__ */ p(V, {
4966
5021
  name: v,
4967
5022
  size: S
4968
5023
  }) : v
@@ -4985,7 +5040,7 @@ function on({ children: e, tone: t = "info", title: n, icon: r, image: i, imageA
4985
5040
  onClick: () => {
4986
5041
  _(!1), u?.();
4987
5042
  },
4988
- children: /* @__PURE__ */ p(H, {
5043
+ children: /* @__PURE__ */ p(V, {
4989
5044
  name: "x",
4990
5045
  size: 18
4991
5046
  })
@@ -4995,13 +5050,13 @@ function on({ children: e, tone: t = "info", title: n, icon: r, image: i, imageA
4995
5050
  }
4996
5051
  //#endregion
4997
5052
  //#region src/components/AppCard.jsx
4998
- var sn = {
5053
+ var un = {
4999
5054
  xs: 320,
5000
5055
  sm: 420,
5001
5056
  md: 560,
5002
5057
  lg: 720
5003
5058
  };
5004
- function cn({ 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 }) {
5059
+ function dn({ 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 }) {
5005
5060
  N("AppCard", E);
5006
5061
  let { style: D, ...O } = E, k = C != null || w != null, A = [
5007
5062
  u && u !== "default" ? `card-${u}` : "",
@@ -5011,7 +5066,7 @@ function cn({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
5011
5066
  g == null ? "" : "card-constrained",
5012
5067
  k ? "card-clickable" : "",
5013
5068
  _
5014
- ].filter(Boolean).join(" ") || void 0, j = g == null ? void 0 : sn[g] == null ? typeof g == "number" ? `${g}px` : g : `${sn[g]}px`, M = j ? {
5069
+ ].filter(Boolean).join(" ") || void 0, j = g == null ? void 0 : un[g] == null ? typeof g == "number" ? `${g}px` : g : `${un[g]}px`, M = j ? {
5015
5070
  "--card-max-width": j,
5016
5071
  ...D
5017
5072
  } : D, P = {};
@@ -5029,7 +5084,7 @@ function cn({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
5029
5084
  as: "a",
5030
5085
  href: C
5031
5086
  }, w && (P.onClick = w));
5032
- let F = e != null || t != null || n != null, I = i != null || F || a != null || o != null, L = n == null ? null : typeof n == "string" ? /* @__PURE__ */ p(H, {
5087
+ let F = e != null || t != null || n != null, I = i != null || F || a != null || o != null, L = n == null ? null : typeof n == "string" ? /* @__PURE__ */ p(V, {
5033
5088
  name: n,
5034
5089
  size: 18
5035
5090
  }) : n;
@@ -5082,7 +5137,7 @@ function cn({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
5082
5137
  }
5083
5138
  //#endregion
5084
5139
  //#region src/lib/CheckField.jsx
5085
- var ln = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", rest: o = {}, inputType: c, wrapperClass: l }, u) {
5140
+ var fn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", rest: o = {}, inputType: c, wrapperClass: l }, u) {
5086
5141
  let d = s(), f = t || d;
5087
5142
  return /* @__PURE__ */ m("div", {
5088
5143
  className: `${l}${a ? ` ${a}` : ""}`,
@@ -5110,8 +5165,8 @@ var ln = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
5110
5165
  }) : null
5111
5166
  ]
5112
5167
  });
5113
- }), un = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
5114
- return N("AppCheckbox", o), /* @__PURE__ */ p(ln, {
5168
+ }), pn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
5169
+ return N("AppCheckbox", o), /* @__PURE__ */ p(fn, {
5115
5170
  ref: s,
5116
5171
  label: e,
5117
5172
  id: t,
@@ -5126,7 +5181,7 @@ var ln = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
5126
5181
  });
5127
5182
  //#endregion
5128
5183
  //#region src/components/AppChip.jsx
5129
- function dn({ label: e, children: t, tone: n = "neutral", variant: r = "soft", size: i = "md", leadingIcon: a, avatar: o, onRemove: s, onClick: c, disabled: l = !1, removeLabel: u, className: d = "", ...h }) {
5184
+ function mn({ label: e, children: t, tone: n = "neutral", variant: r = "soft", size: i = "md", leadingIcon: a, avatar: o, onRemove: s, onClick: c, disabled: l = !1, removeLabel: u, className: d = "", ...h }) {
5130
5185
  N("AppChip", h);
5131
5186
  let g = e ?? t, _ = [
5132
5187
  "chip",
@@ -5145,7 +5200,7 @@ function dn({ label: e, children: t, tone: n = "neutral", variant: r = "soft", s
5145
5200
  }) : o
5146
5201
  }) : a ? /* @__PURE__ */ p("span", {
5147
5202
  className: "chip-ic",
5148
- children: /* @__PURE__ */ p(H, {
5203
+ children: /* @__PURE__ */ p(V, {
5149
5204
  name: a,
5150
5205
  size: i === "sm" ? 12 : 14
5151
5206
  })
@@ -5171,7 +5226,7 @@ function dn({ label: e, children: t, tone: n = "neutral", variant: r = "soft", s
5171
5226
  onClick: s,
5172
5227
  disabled: l,
5173
5228
  "aria-label": u || (typeof g == "string" ? `Remove ${g}` : "Remove"),
5174
- children: /* @__PURE__ */ p(H, {
5229
+ children: /* @__PURE__ */ p(V, {
5175
5230
  name: "x",
5176
5231
  size: i === "sm" ? 12 : 14
5177
5232
  })
@@ -5180,7 +5235,7 @@ function dn({ label: e, children: t, tone: n = "neutral", variant: r = "soft", s
5180
5235
  }
5181
5236
  //#endregion
5182
5237
  //#region src/components/AppChoiceCard.jsx
5183
- function fn({ 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 }) {
5238
+ function hn({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon: a, iconNode: o, iconSize: s = 18, image: c, imageAlt: l = "", children: u, title: d, description: h, checkIcon: g = "check", checkSize: _ = 18, className: v = "", ...y }) {
5184
5239
  return N("AppChoiceCard", y), /* @__PURE__ */ m("label", {
5185
5240
  className: `struct-card${c ? " struct-card-img-card" : ""}${r ? " checked" : ""}${v ? ` ${v}` : ""}`,
5186
5241
  ...y,
@@ -5202,7 +5257,7 @@ function fn({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
5202
5257
  })
5203
5258
  }) : o || a ? /* @__PURE__ */ p("span", {
5204
5259
  className: "struct-card-ic",
5205
- children: o || /* @__PURE__ */ p(H, {
5260
+ children: o || /* @__PURE__ */ p(V, {
5206
5261
  name: a,
5207
5262
  size: s
5208
5263
  })
@@ -5219,7 +5274,7 @@ function fn({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
5219
5274
  }),
5220
5275
  /* @__PURE__ */ p("span", {
5221
5276
  className: "struct-card-check",
5222
- children: /* @__PURE__ */ p(H, {
5277
+ children: /* @__PURE__ */ p(V, {
5223
5278
  name: g,
5224
5279
  size: _
5225
5280
  })
@@ -5229,7 +5284,7 @@ function fn({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
5229
5284
  }
5230
5285
  //#endregion
5231
5286
  //#region src/components/AppChoiceChip.jsx
5232
- function pn({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, size: c = "md", className: l = "", ...u }) {
5287
+ function gn({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, size: c = "md", className: l = "", ...u }) {
5233
5288
  return N("AppChoiceChip", u), /* @__PURE__ */ m("label", {
5234
5289
  className: `choice-chip${i ? " checked" : ""}${c === "sm" ? " choice-chip-sm" : c === "lg" ? " choice-chip-lg" : ""}${l ? ` ${l}` : ""}`,
5235
5290
  ...u,
@@ -5251,7 +5306,7 @@ function pn({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChang
5251
5306
  }
5252
5307
  //#endregion
5253
5308
  //#region src/components/AppColorField.jsx
5254
- function mn({ 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 }) {
5309
+ function _n({ 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 }) {
5255
5310
  N("AppColorField", f);
5256
5311
  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" : "";
5257
5312
  return /* @__PURE__ */ m("div", {
@@ -5300,11 +5355,11 @@ function mn({ value: e = "#000000", onChange: t, label: n, required: r = !1, err
5300
5355
  }
5301
5356
  //#endregion
5302
5357
  //#region src/components/AppCompareTable.jsx
5303
- function hn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
5358
+ function vn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
5304
5359
  N("AppCompareTable", i);
5305
5360
  let a = (e) => e === !0 ? /* @__PURE__ */ p("span", {
5306
5361
  className: "compare-yes",
5307
- children: /* @__PURE__ */ p(H, {
5362
+ children: /* @__PURE__ */ p(V, {
5308
5363
  name: "check",
5309
5364
  size: 16
5310
5365
  })
@@ -5337,58 +5392,58 @@ function hn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i
5337
5392
  }
5338
5393
  //#endregion
5339
5394
  //#region src/components/AppInput.jsx
5340
- var gn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", type: c = "text", size: l = "md", leftIcon: f, rightIcon: h, onRightIconClick: g, rightIconLabel: _, unit: v, id: y, name: b, className: S = "", fieldClassName: C = "", disabled: w = !1, clearable: T = !1, showCount: E = !1, maxLength: D, prefix: O, suffix: k, floatingLabel: A = !1, variant: j, ...M }, P) {
5395
+ var yn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", type: c = "text", size: l = "md", leftIcon: f, rightIcon: h, onRightIconClick: g, rightIconLabel: _, unit: v, id: y, name: b, className: S = "", fieldClassName: C = "", disabled: w = !1, clearable: T = !1, showCount: E = !1, maxLength: D, prefix: O, suffix: k, floatingLabel: A = !1, variant: j, ...M }, P) {
5341
5396
  N("AppInput", M);
5342
- let [F, I] = d(!1), L = s(), R = y || L, z = c === "password", ee = z && F ? "text" : c, B = u(null), V = (e) => {
5343
- B.current = e, typeof P == "function" ? P(e) : P && (P.current = e);
5344
- }, te = String(M.value ?? M.defaultValue ?? ""), [ne, re] = d(() => !!te), [ie, ae] = d(() => te.length), U = T && !w, oe = T || E;
5397
+ let [F, I] = d(!1), L = s(), R = y || L, z = c === "password", ee = z && F ? "text" : c, te = u(null), B = (e) => {
5398
+ te.current = e, typeof P == "function" ? P(e) : P && (P.current = e);
5399
+ }, ne = String(M.value ?? M.defaultValue ?? ""), [re, ie] = d(() => !!ne), [ae, oe] = d(() => ne.length), H = T && !w, se = T || E;
5345
5400
  o(() => {
5346
- if (!oe || M.value === void 0) return;
5401
+ if (!se || M.value === void 0) return;
5347
5402
  let e = String(M.value ?? "");
5348
- re(!!e), ae(e.length);
5349
- }, [M.value, oe]);
5350
- let se = (e) => {
5351
- re(!!e.target.value), ae(e.target.value.length), M.onInput?.(e);
5352
- }, ce = U ? /* @__PURE__ */ p("button", {
5403
+ ie(!!e), oe(e.length);
5404
+ }, [M.value, se]);
5405
+ let ce = (e) => {
5406
+ ie(!!e.target.value), oe(e.target.value.length), M.onInput?.(e);
5407
+ }, le = H ? /* @__PURE__ */ p("button", {
5353
5408
  type: "button",
5354
5409
  className: "input-clear",
5355
5410
  onClick: () => {
5356
- let e = B.current;
5411
+ let e = te.current;
5357
5412
  if (!e) return;
5358
5413
  let t = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set;
5359
- t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })), re(!1), e.focus();
5414
+ t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })), ie(!1), e.focus();
5360
5415
  },
5361
5416
  "aria-label": "Clear",
5362
5417
  tabIndex: -1,
5363
- hidden: !ne,
5364
- children: /* @__PURE__ */ p(H, {
5418
+ hidden: !re,
5419
+ children: /* @__PURE__ */ p(V, {
5365
5420
  name: "x",
5366
5421
  size: 16
5367
5422
  })
5368
- }) : null, le = n && R ? `${R}-error` : void 0, ue = r && R ? `${R}-hint` : void 0, de = le || ue, fe = [
5423
+ }) : null, ue = n && R ? `${R}-error` : void 0, de = r && R ? `${R}-hint` : void 0, fe = ue || de, U = [
5369
5424
  "input",
5370
5425
  l === "sm" ? "input-sm" : "",
5371
5426
  l === "lg" ? "input-lg" : "",
5372
5427
  n ? "error" : "",
5373
5428
  z ? "pw" : "",
5374
5429
  v ? "num-input" : "",
5375
- !(A && e || O || k || v || z || h) && T && U ? "has-clear" : "",
5430
+ !(A && e || O || k || v || z || h) && T && H ? "has-clear" : "",
5376
5431
  j === "bare" ? "input-bare" : "",
5377
5432
  S
5378
5433
  ].filter(Boolean).join(" "), W = /* @__PURE__ */ p(x.Control, {
5379
5434
  id: R,
5380
5435
  name: b,
5381
5436
  type: ee,
5382
- className: fe,
5437
+ className: U,
5383
5438
  disabled: w,
5384
5439
  required: t,
5385
5440
  "aria-invalid": n ? "true" : "false",
5386
- "aria-describedby": de,
5441
+ "aria-describedby": fe,
5387
5442
  maxLength: D,
5388
5443
  ...M,
5389
5444
  placeholder: A ? " " : M.placeholder,
5390
- ref: V,
5391
- onInput: oe ? se : M.onInput
5445
+ ref: B,
5446
+ onInput: se ? ce : M.onInput
5392
5447
  }), pe;
5393
5448
  return pe = A && e ? /* @__PURE__ */ m("div", {
5394
5449
  className: "field-float",
@@ -5421,7 +5476,7 @@ var gn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5421
5476
  children: [
5422
5477
  f && /* @__PURE__ */ p("span", {
5423
5478
  className: "ic",
5424
- children: /* @__PURE__ */ p(H, {
5479
+ children: /* @__PURE__ */ p(V, {
5425
5480
  name: f,
5426
5481
  size: 16
5427
5482
  })
@@ -5433,7 +5488,7 @@ var gn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5433
5488
  onClick: () => I((e) => !e),
5434
5489
  "aria-label": F ? "Hide password" : "Show password",
5435
5490
  tabIndex: -1,
5436
- children: /* @__PURE__ */ p(H, {
5491
+ children: /* @__PURE__ */ p(V, {
5437
5492
  name: F ? "eye-off" : "eye",
5438
5493
  size: 18
5439
5494
  })
@@ -5448,7 +5503,7 @@ var gn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5448
5503
  disabled: !g,
5449
5504
  tabIndex: -1,
5450
5505
  "aria-label": _ || h,
5451
- children: /* @__PURE__ */ p(H, {
5506
+ children: /* @__PURE__ */ p(V, {
5452
5507
  name: h,
5453
5508
  size: 18
5454
5509
  })
@@ -5458,19 +5513,19 @@ var gn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5458
5513
  children: [
5459
5514
  f && /* @__PURE__ */ p("span", {
5460
5515
  className: "ic",
5461
- children: /* @__PURE__ */ p(H, {
5516
+ children: /* @__PURE__ */ p(V, {
5462
5517
  name: f,
5463
5518
  size: 16
5464
5519
  })
5465
5520
  }),
5466
5521
  W,
5467
- ce
5522
+ le
5468
5523
  ]
5469
5524
  }) : f ? /* @__PURE__ */ m("div", {
5470
5525
  className: "input-icon",
5471
5526
  children: [/* @__PURE__ */ p("span", {
5472
5527
  className: "ic",
5473
- children: /* @__PURE__ */ p(H, {
5528
+ children: /* @__PURE__ */ p(V, {
5474
5529
  name: f,
5475
5530
  size: 16
5476
5531
  })
@@ -5484,7 +5539,7 @@ var gn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5484
5539
  children: [
5485
5540
  e,
5486
5541
  t && /* @__PURE__ */ p(Z, {}),
5487
- i && /* @__PURE__ */ p(Ft, {
5542
+ i && /* @__PURE__ */ p(Rt, {
5488
5543
  label: a,
5489
5544
  children: i
5490
5545
  })
@@ -5493,47 +5548,47 @@ var gn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
5493
5548
  pe,
5494
5549
  n ? /* @__PURE__ */ p("div", {
5495
5550
  className: "field-error",
5496
- id: le,
5551
+ id: ue,
5497
5552
  children: n
5498
5553
  }) : r ? /* @__PURE__ */ p("div", {
5499
5554
  className: "field-hint",
5500
- id: ue,
5555
+ id: de,
5501
5556
  children: r
5502
5557
  }) : null,
5503
5558
  E && /* @__PURE__ */ m("div", {
5504
- className: `field-count${D && ie >= D ? " at-limit" : ""}`,
5505
- children: [ie, D ? ` / ${D}` : ""]
5559
+ className: `field-count${D && ae >= D ? " at-limit" : ""}`,
5560
+ children: [ae, D ? ` / ${D}` : ""]
5506
5561
  })
5507
5562
  ]
5508
5563
  });
5509
- }), _n = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", vn = {
5564
+ }), bn = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", xn = {
5510
5565
  sm: 380,
5511
5566
  md: 440,
5512
5567
  lg: 640,
5513
5568
  xl: 880
5514
- }, yn = !1;
5515
- function bn() {
5569
+ }, Sn = !1;
5570
+ function Cn() {
5516
5571
  let e = !0;
5517
5572
  try {
5518
5573
  e = process.env.NODE_ENV !== "production";
5519
5574
  } catch {
5520
5575
  e = !0;
5521
5576
  }
5522
- !e || yn || (yn = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
5577
+ !e || Sn || (Sn = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
5523
5578
  }
5524
- function xn({ 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 }) {
5525
- N("AppModal", b);
5579
+ function wn({ 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 }) {
5580
+ N("AppModal", b), U("AppModal", "size", typeof d == "string" ? d : null, Object.keys(xn));
5526
5581
  let { style: x, ...C } = b;
5527
- h && !_ && typeof n != "string" && bn();
5582
+ h && !_ && typeof n != "string" && Cn();
5528
5583
  let w = u(null);
5529
5584
  o(() => {
5530
5585
  if (!e) return;
5531
5586
  let t = w.current?.closest(".modal-content");
5532
5587
  if (!t) return;
5533
- let n = () => Array.from(t.querySelectorAll(_n));
5588
+ let n = () => Array.from(t.querySelectorAll(bn));
5534
5589
  (t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("wui-modal-close")) || n()[0] || t).focus?.();
5535
5590
  }, [e]);
5536
- let T = typeof d == "number" ? d : vn[d] ?? vn.md, E = [
5591
+ let T = typeof d == "number" ? d : xn[d] ?? xn.md, E = [
5537
5592
  "wui-modal",
5538
5593
  a === "default" ? "" : `tone-${a}`,
5539
5594
  v
@@ -5564,7 +5619,7 @@ function xn({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a
5564
5619
  className: "wui-modal-heading",
5565
5620
  children: [i && /* @__PURE__ */ p("span", {
5566
5621
  className: "wui-modal-headicon",
5567
- children: /* @__PURE__ */ p(H, {
5622
+ children: /* @__PURE__ */ p(V, {
5568
5623
  name: i,
5569
5624
  size: 18
5570
5625
  })
@@ -5618,30 +5673,30 @@ function xn({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a
5618
5673
  }
5619
5674
  //#endregion
5620
5675
  //#region src/components/ModalIcons.jsx
5621
- var Sn = (e) => function({ size: t = 72 }) {
5676
+ var Tn = (e) => function({ size: t = 72 }) {
5622
5677
  return /* @__PURE__ */ p("wui-status-icon", {
5623
5678
  tone: e,
5624
5679
  size: t
5625
5680
  });
5626
- }, Cn = {
5627
- success: Sn("success"),
5628
- error: Sn("error"),
5629
- warning: Sn("warning"),
5630
- info: Sn("info"),
5631
- delete: Sn("delete")
5681
+ }, En = {
5682
+ success: Tn("success"),
5683
+ error: Tn("error"),
5684
+ warning: Tn("warning"),
5685
+ info: Tn("info"),
5686
+ delete: Tn("delete")
5632
5687
  };
5633
5688
  //#endregion
5634
5689
  //#region src/components/AppConfirmDialog.jsx
5635
- function wn({ 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 }) {
5690
+ function Dn({ 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 }) {
5636
5691
  N("AppConfirmDialog", y);
5637
5692
  let [b, x] = d("");
5638
5693
  if (o(() => {
5639
5694
  e || x("");
5640
5695
  }, [e]), !e) return null;
5641
- let S = !!c && b.trim() !== c, C = Cn[s || (a ? "delete" : "info")], w = () => {
5696
+ let S = !!c && b.trim() !== c, C = En[s || (a ? "delete" : "info")], w = () => {
5642
5697
  h || u?.();
5643
5698
  };
5644
- return /* @__PURE__ */ p(xn, {
5699
+ return /* @__PURE__ */ p(wn, {
5645
5700
  ...y,
5646
5701
  open: e,
5647
5702
  hideHeader: !0,
@@ -5652,12 +5707,12 @@ function wn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
5652
5707
  className: ["wui-confirm", v].filter(Boolean).join(" "),
5653
5708
  footer: /* @__PURE__ */ m("div", {
5654
5709
  className: "wui-confirm-actions",
5655
- children: [/* @__PURE__ */ p(W, {
5710
+ children: [/* @__PURE__ */ p(he, {
5656
5711
  variant: "secondary",
5657
5712
  disabled: h,
5658
5713
  onClick: w,
5659
5714
  children: i
5660
- }), /* @__PURE__ */ p(W, {
5715
+ }), /* @__PURE__ */ p(he, {
5661
5716
  variant: a ? "danger" : "primary",
5662
5717
  disabled: S,
5663
5718
  loading: h,
@@ -5682,7 +5737,7 @@ function wn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
5682
5737
  className: "wui-confirm-msg",
5683
5738
  children: n
5684
5739
  }),
5685
- c && /* @__PURE__ */ p(gn, {
5740
+ c && /* @__PURE__ */ p(yn, {
5686
5741
  fieldClassName: "mt-3 mb-0 w-100 text-start",
5687
5742
  label: /* @__PURE__ */ m(f, { children: [
5688
5743
  "Type ",
@@ -5700,13 +5755,13 @@ function wn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
5700
5755
  }
5701
5756
  //#endregion
5702
5757
  //#region src/components/AppCopyButton.jsx
5703
- var Tn = {
5758
+ var On = {
5704
5759
  sm: 14,
5705
5760
  md: 16,
5706
5761
  lg: 20
5707
5762
  };
5708
- function En({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: o = "ghost", onCopied: s, className: c = "", ...l }) {
5709
- N("AppCopyButton", l);
5763
+ function kn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: o = "ghost", onCopied: s, className: c = "", ...l }) {
5764
+ N("AppCopyButton", l), U("AppCopyButton", "size", i, Object.keys(On));
5710
5765
  let [u, f] = d(!1), m = a(async () => {
5711
5766
  try {
5712
5767
  if (navigator.clipboard?.writeText) {
@@ -5721,14 +5776,14 @@ function En({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
5721
5776
  document.body.removeChild(t), n && (f(!0), s?.(), setTimeout(() => f(!1), 2e3));
5722
5777
  } catch {}
5723
5778
  }, [e, s]), h = u ? n : t, g = u ? "check" : "files";
5724
- return r ? /* @__PURE__ */ p(oe, {
5779
+ return r ? /* @__PURE__ */ p(se, {
5725
5780
  icon: g,
5726
5781
  label: h,
5727
- size: Tn[i] ?? Tn.md,
5782
+ size: On[i] ?? On.md,
5728
5783
  onClick: m,
5729
5784
  className: c,
5730
5785
  ...l
5731
- }) : /* @__PURE__ */ p(W, {
5786
+ }) : /* @__PURE__ */ p(he, {
5732
5787
  leftIcon: g,
5733
5788
  variant: o,
5734
5789
  size: i,
@@ -5741,7 +5796,7 @@ function En({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
5741
5796
  }
5742
5797
  //#endregion
5743
5798
  //#region src/components/AppSkeleton.jsx
5744
- function Dn({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
5799
+ function An({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
5745
5800
  return N("AppSkeleton", a), /* @__PURE__ */ p("span", {
5746
5801
  className: `skeleton${r ? ` ${r}` : ""}`,
5747
5802
  "aria-hidden": "true",
@@ -5754,28 +5809,28 @@ function Dn({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "
5754
5809
  ...a
5755
5810
  });
5756
5811
  }
5757
- function On({ rows: e = 4, cols: t = 5 }) {
5758
- 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, {
5812
+ function jn({ rows: e = 4, cols: t = 5 }) {
5813
+ 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(An, {
5759
5814
  width: t === 0 ? "70%" : "50%",
5760
5815
  height: 12
5761
5816
  }) }, `col-${t}`)) }, `row-${n}`));
5762
5817
  }
5763
5818
  //#endregion
5764
5819
  //#region src/lib/pageWindow.js
5765
- var kn = (e, t) => {
5820
+ var Mn = (e, t) => {
5766
5821
  let n = [];
5767
5822
  for (let r = e; r <= t; r += 1) n.push(r);
5768
5823
  return n;
5769
5824
  };
5770
- function An(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
5825
+ function Nn(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
5771
5826
  let i = Math.max(1, t), a = Math.min(Math.max(1, e), i);
5772
- if (i <= n * 2 + 3 + r * 2) return kn(1, i);
5773
- 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 = kn(1, r);
5774
- return u.push(...c ? ["ellipsis-left"] : kn(r + 1, o - 1)), u.push(...kn(o, s)), u.push(...l ? ["ellipsis-right"] : kn(s + 1, i - r)), u.push(...kn(i - r + 1, i)), u;
5827
+ if (i <= n * 2 + 3 + r * 2) return Mn(1, i);
5828
+ 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 = Mn(1, r);
5829
+ return u.push(...c ? ["ellipsis-left"] : Mn(r + 1, o - 1)), u.push(...Mn(o, s)), u.push(...l ? ["ellipsis-right"] : Mn(s + 1, i - r)), u.push(...Mn(i - r + 1, i)), u;
5775
5830
  }
5776
5831
  //#endregion
5777
5832
  //#region src/components/AppSelectMini.jsx
5778
- function jn({ 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 }) {
5833
+ function Pn({ 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 }) {
5779
5834
  N("AppSelectMini", m);
5780
5835
  let { setRef: h, innerRef: g } = Q({
5781
5836
  value: e ?? "",
@@ -5789,7 +5844,7 @@ function jn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5789
5844
  label: e.label ?? e.text ?? "",
5790
5845
  icon: e.icon
5791
5846
  }));
5792
- zt(t, e.options) || (e.options = t);
5847
+ Ht(t, e.options) || (e.options = t);
5793
5848
  }, [n, g]), o(() => {
5794
5849
  let e = g.current;
5795
5850
  if (e) for (let [t, n] of [["icon", u], ["prefix", d]]) n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n);
@@ -5812,22 +5867,22 @@ function jn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5812
5867
  }
5813
5868
  //#endregion
5814
5869
  //#region src/components/AppTablePagination.jsx
5815
- var Mn = [
5870
+ var Fn = [
5816
5871
  5,
5817
5872
  10,
5818
5873
  25,
5819
5874
  50
5820
5875
  ];
5821
- function Nn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = Mn, mode: l = "prev-next", showPageSize: u = !0, className: d = "", ...f }) {
5876
+ function In({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = Fn, mode: l = "prev-next", showPageSize: u = !0, className: d = "", ...f }) {
5822
5877
  N("AppTablePagination", f);
5823
- let h = l === "numbered", g = h ? An(e, t) : null;
5878
+ let h = l === "numbered", g = h ? Nn(e, t) : null;
5824
5879
  return /* @__PURE__ */ m("div", {
5825
5880
  className: `table-pagination${d ? ` ${d}` : ""}`,
5826
5881
  ...f,
5827
5882
  children: [
5828
5883
  u && /* @__PURE__ */ m("span", {
5829
5884
  className: "tpg-rows",
5830
- children: ["Rows per page:", /* @__PURE__ */ p(jn, {
5885
+ children: ["Rows per page:", /* @__PURE__ */ p(Pn, {
5831
5886
  value: n,
5832
5887
  onChange: (e) => s(Number(e)),
5833
5888
  ariaLabel: "Rows per page",
@@ -5856,7 +5911,7 @@ function Nn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
5856
5911
  onClick: () => o(Math.max(1, e - 1)),
5857
5912
  disabled: e <= 1,
5858
5913
  "aria-label": "Previous page",
5859
- children: /* @__PURE__ */ p(H, {
5914
+ children: /* @__PURE__ */ p(V, {
5860
5915
  name: "arrow-left",
5861
5916
  size: 18
5862
5917
  })
@@ -5879,7 +5934,7 @@ function Nn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
5879
5934
  onClick: () => o(Math.min(t, e + 1)),
5880
5935
  disabled: e >= t,
5881
5936
  "aria-label": "Next page",
5882
- children: /* @__PURE__ */ p(H, {
5937
+ children: /* @__PURE__ */ p(V, {
5883
5938
  name: "arrow-right",
5884
5939
  size: 18
5885
5940
  })
@@ -5891,13 +5946,13 @@ function Nn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
5891
5946
  }
5892
5947
  //#endregion
5893
5948
  //#region src/components/AppDataTable.jsx
5894
- function Pn(e) {
5949
+ function Ln(e) {
5895
5950
  return e === "end" ? "wui-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
5896
5951
  }
5897
- function Fn(e) {
5952
+ function Rn(e) {
5898
5953
  return e == null || e === "" ? "—" : typeof e == "boolean" ? String(e) : e;
5899
5954
  }
5900
- function In({ 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 }) {
5955
+ function zn({ 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 }) {
5901
5956
  N("AppDataTable", E);
5902
5957
  let D = typeof T == "function", [O, k] = d(() => /* @__PURE__ */ new Set()), A = (e) => k((t) => {
5903
5958
  let n = new Set(t);
@@ -5933,7 +5988,7 @@ function In({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5933
5988
  e.map((e, t) => {
5934
5989
  let n = !!(e.sortable && a), r = i && i.key === e.key;
5935
5990
  return /* @__PURE__ */ m("th", {
5936
- className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + Pn(e.align),
5991
+ className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + Ln(e.align),
5937
5992
  style: e.width ? { width: e.width } : void 0,
5938
5993
  tabIndex: n ? 0 : void 0,
5939
5994
  "aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
@@ -5943,7 +5998,7 @@ function In({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5943
5998
  } : void 0,
5944
5999
  children: [e.label, n && /* @__PURE__ */ p("span", {
5945
6000
  className: "sort-icon",
5946
- children: /* @__PURE__ */ p(H, {
6001
+ children: /* @__PURE__ */ p(V, {
5947
6002
  name: "chevrons-up-down",
5948
6003
  size: 14
5949
6004
  })
@@ -5960,7 +6015,7 @@ function In({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5960
6015
  children: "Actions"
5961
6016
  })
5962
6017
  }))
5963
- ] }) }), /* @__PURE__ */ p("tbody", { children: o ? /* @__PURE__ */ p(On, {
6018
+ ] }) }), /* @__PURE__ */ p("tbody", { children: o ? /* @__PURE__ */ p(jn, {
5964
6019
  rows: s,
5965
6020
  cols: j
5966
6021
  }) : n?.length ? n.map((n, i) => {
@@ -5977,7 +6032,7 @@ function In({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5977
6032
  "aria-controls": o ? `${s}-expanded` : void 0,
5978
6033
  "aria-label": o ? "Collapse row" : "Expand row",
5979
6034
  onClick: () => A(a),
5980
- children: /* @__PURE__ */ p(H, {
6035
+ children: /* @__PURE__ */ p(V, {
5981
6036
  name: "chevron-down",
5982
6037
  size: 16
5983
6038
  })
@@ -5994,9 +6049,9 @@ function In({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
5994
6049
  })
5995
6050
  }),
5996
6051
  e.map((e, t) => /* @__PURE__ */ p("td", {
5997
- className: (t === 0 ? "wui-name-cell " : "") + Pn(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
6052
+ className: (t === 0 ? "wui-name-cell " : "") + Ln(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
5998
6053
  style: e.cellStyle,
5999
- children: e.render ? e.render(n) : Fn(n[e.key])
6054
+ children: e.render ? e.render(n) : Rn(n[e.key])
6000
6055
  }, e.key)),
6001
6056
  h && /* @__PURE__ */ p("td", { children: /* @__PURE__ */ p("div", {
6002
6057
  className: "u-row-actions",
@@ -6017,7 +6072,7 @@ function In({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
6017
6072
  children: L
6018
6073
  }) }) })]
6019
6074
  })
6020
- }), _ && !o && _.total > 0 && /* @__PURE__ */ p(Nn, {
6075
+ }), _ && !o && _.total > 0 && /* @__PURE__ */ p(In, {
6021
6076
  page: _.page,
6022
6077
  totalPages: _.totalPages,
6023
6078
  pageSize: _.pageSize,
@@ -6030,7 +6085,7 @@ function In({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
6030
6085
  }
6031
6086
  //#endregion
6032
6087
  //#region src/components/AppDatePicker.jsx
6033
- var Ln = 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) {
6088
+ var Bn = 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) {
6034
6089
  N("AppDatePicker", y);
6035
6090
  let x = s(), S = g || o || x, { setRef: C } = Q({
6036
6091
  ref: b,
@@ -6074,7 +6129,7 @@ var Ln = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
6074
6129
  })
6075
6130
  ]
6076
6131
  });
6077
- }), Rn = 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) {
6132
+ }), Vn = 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) {
6078
6133
  N("AppDateRangePicker", S);
6079
6134
  let w = s(), T = y || l || w, { setRef: E, innerRef: D } = Q({
6080
6135
  ref: C,
@@ -6135,12 +6190,12 @@ var Ln = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
6135
6190
  });
6136
6191
  //#endregion
6137
6192
  //#region src/lib/emptyValue.js
6138
- function zn(e) {
6193
+ function Hn(e) {
6139
6194
  return e == null || e === "";
6140
6195
  }
6141
6196
  //#endregion
6142
6197
  //#region src/components/AppDescriptions.jsx
6143
- function Bn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
6198
+ function Un({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
6144
6199
  return N("AppDescriptions", o), /* @__PURE__ */ m("div", {
6145
6200
  className: [
6146
6201
  "descs",
@@ -6156,7 +6211,7 @@ function Bn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
6156
6211
  }), /* @__PURE__ */ p("dl", {
6157
6212
  className: "descs-list",
6158
6213
  children: e.map((e, t) => {
6159
- let n = zn(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
6214
+ let n = Hn(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
6160
6215
  return /* @__PURE__ */ m("div", {
6161
6216
  className: "descs-item",
6162
6217
  style: { "--descs-span": r },
@@ -6174,24 +6229,24 @@ function Bn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
6174
6229
  }
6175
6230
  //#endregion
6176
6231
  //#region src/components/AppDropdown.jsx
6177
- var Vn = !1;
6178
- function Hn() {
6232
+ var Wn = !1;
6233
+ function Gn() {
6179
6234
  let e = !0;
6180
6235
  try {
6181
6236
  e = process.env.NODE_ENV !== "production";
6182
6237
  } catch {
6183
6238
  e = !0;
6184
6239
  }
6185
- !e || Vn || (Vn = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
6240
+ !e || Wn || (Wn = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
6186
6241
  }
6187
- function Un({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: o = [], menuClassName: s = "", linkComponent: c, children: l, trigger: u, ...d }) {
6188
- N("AppDropdown", d), !u && !i && !r && Hn();
6242
+ function Kn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: o = [], menuClassName: s = "", linkComponent: c, children: l, trigger: u, ...d }) {
6243
+ N("AppDropdown", d), !u && !i && !r && Gn();
6189
6244
  let f = n ?? (u ? "wui-dropdown-trigger" : "topbar-icon-btn");
6190
6245
  return /* @__PURE__ */ m(b, {
6191
6246
  align: a,
6192
6247
  ...d,
6193
6248
  children: [/* @__PURE__ */ p(b.Toggle, {
6194
- as: Wn,
6249
+ as: qn,
6195
6250
  icon: e,
6196
6251
  iconSize: t,
6197
6252
  btnClassName: f,
@@ -6220,20 +6275,20 @@ function Un({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
6220
6275
  children: [e.image ? /* @__PURE__ */ p("img", {
6221
6276
  src: e.image,
6222
6277
  alt: ""
6223
- }) : U(e.icon, { size: 16 }), e.label]
6278
+ }) : H(e.icon, { size: 16 }), e.label]
6224
6279
  }, e.key);
6225
6280
  })
6226
6281
  })]
6227
6282
  });
6228
6283
  }
6229
- var Wn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
6284
+ var qn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
6230
6285
  return /* @__PURE__ */ p("button", {
6231
6286
  ref: s,
6232
6287
  type: "button",
6233
6288
  className: n,
6234
6289
  "aria-label": i,
6235
6290
  ...o,
6236
- children: r ?? /* @__PURE__ */ p(H, {
6291
+ children: r ?? /* @__PURE__ */ p(V, {
6237
6292
  name: e,
6238
6293
  size: t
6239
6294
  })
@@ -6241,16 +6296,16 @@ var Wn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-
6241
6296
  });
6242
6297
  //#endregion
6243
6298
  //#region src/lib/fileItem.js
6244
- function Gn(e) {
6299
+ function Jn(e) {
6245
6300
  return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
6246
6301
  }
6247
- function Kn(e) {
6302
+ function Yn(e) {
6248
6303
  return e instanceof File ? e.name : e?.name;
6249
6304
  }
6250
- function qn(e) {
6305
+ function Xn(e) {
6251
6306
  return e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
6252
6307
  }
6253
- function Jn(e, t) {
6308
+ function Zn(e, t) {
6254
6309
  let [n, r] = d(null);
6255
6310
  return o(() => {
6256
6311
  if (!t) {
@@ -6266,8 +6321,8 @@ function Jn(e, t) {
6266
6321
  }
6267
6322
  //#endregion
6268
6323
  //#region src/lib/FileItemRow.jsx
6269
- function Yn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
6270
- let i = Jn(e, t), a = Kn(e), o = qn(e);
6324
+ function Qn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
6325
+ let i = Zn(e, t), a = Yn(e), o = Xn(e);
6271
6326
  return /* @__PURE__ */ m("div", {
6272
6327
  className: "attach-item",
6273
6328
  children: [
@@ -6276,7 +6331,7 @@ function Yn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
6276
6331
  children: i ? /* @__PURE__ */ p("img", {
6277
6332
  src: i,
6278
6333
  alt: a
6279
- }) : /* @__PURE__ */ p(H, {
6334
+ }) : /* @__PURE__ */ p(V, {
6280
6335
  name: "file-text",
6281
6336
  size: 18
6282
6337
  })
@@ -6296,7 +6351,7 @@ function Yn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
6296
6351
  className: "attach-item-remove",
6297
6352
  "aria-label": `Remove ${a || r}`,
6298
6353
  onClick: n,
6299
- children: /* @__PURE__ */ p(H, {
6354
+ children: /* @__PURE__ */ p(V, {
6300
6355
  name: "x",
6301
6356
  size: 16
6302
6357
  })
@@ -6306,15 +6361,15 @@ function Yn({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
6306
6361
  }
6307
6362
  //#endregion
6308
6363
  //#region src/components/AppFileAttachment.jsx
6309
- function Xn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = Ct, maxSizeMb: o = 5, optional: c = !1, error: l, id: u, ...h }) {
6364
+ function $n({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = Et, maxSizeMb: o = 5, optional: c = !1, error: l, id: u, ...h }) {
6310
6365
  N("AppFileAttachment", h);
6311
- let g = s(), _ = u || n || g, [v, y] = d(""), b = i && Array.isArray(t) ? t : t ? [t] : [], x = kt(a), S = (e) => e instanceof File ? Ot(e) : x || Ot(e), C = !i && b.length === 1 && S(b[0]);
6366
+ let g = s(), _ = u || n || g, [v, y] = d(""), b = i && Array.isArray(t) ? t : t ? [t] : [], x = Mt(a), S = (e) => e instanceof File ? jt(e) : x || jt(e), C = !i && b.length === 1 && S(b[0]);
6312
6367
  function w(e) {
6313
6368
  let n = Array.from(e.target.files || []);
6314
6369
  if (e.target.value = "", !n.length) return;
6315
6370
  let s = [], c = "";
6316
6371
  for (let e of n) {
6317
- let t = Mt(e, {
6372
+ let t = Ft(e, {
6318
6373
  accept: a,
6319
6374
  maxSizeMb: o
6320
6375
  });
@@ -6325,8 +6380,8 @@ function Xn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6325
6380
  s.push(e);
6326
6381
  }
6327
6382
  if (y(c), s.length) if (i) {
6328
- let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(Gn));
6329
- r(e.concat(s.filter((e) => !n.has(Gn(e)))));
6383
+ let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(Jn));
6384
+ r(e.concat(s.filter((e) => !n.has(Jn(e)))));
6330
6385
  } else r(s[0]);
6331
6386
  }
6332
6387
  function T(e) {
@@ -6350,7 +6405,7 @@ function Xn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6350
6405
  children: [
6351
6406
  /* @__PURE__ */ p("span", {
6352
6407
  className: "attach-drop-icon",
6353
- children: /* @__PURE__ */ p(H, {
6408
+ children: /* @__PURE__ */ p(V, {
6354
6409
  name: x ? "image" : "file-text",
6355
6410
  size: 18
6356
6411
  })
@@ -6363,7 +6418,7 @@ function Xn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6363
6418
  }), /* @__PURE__ */ m("span", {
6364
6419
  className: "attach-drop-hint",
6365
6420
  children: [
6366
- At(a),
6421
+ Nt(a),
6367
6422
  ", up to ",
6368
6423
  o,
6369
6424
  " MB"
@@ -6385,17 +6440,17 @@ function Xn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6385
6440
  onChange: w,
6386
6441
  ...h
6387
6442
  })] }),
6388
- C ? /* @__PURE__ */ p(Zn, {
6443
+ C ? /* @__PURE__ */ p(er, {
6389
6444
  item: b[0],
6390
6445
  isImage: !0,
6391
6446
  onRemove: () => T(0)
6392
6447
  }) : b.length > 0 && /* @__PURE__ */ p("div", {
6393
6448
  className: "attach-list",
6394
- children: b.map((e, t) => /* @__PURE__ */ p(Yn, {
6449
+ children: b.map((e, t) => /* @__PURE__ */ p(Qn, {
6395
6450
  item: e,
6396
6451
  isImage: S(e),
6397
6452
  onRemove: () => T(t)
6398
- }, Gn(e)))
6453
+ }, Jn(e)))
6399
6454
  }),
6400
6455
  E && /* @__PURE__ */ p("div", {
6401
6456
  className: "field-error",
@@ -6404,8 +6459,8 @@ function Xn({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
6404
6459
  ]
6405
6460
  });
6406
6461
  }
6407
- function Zn({ item: e, isImage: t, onRemove: n }) {
6408
- let r = Jn(e, t), i = Kn(e), a = qn(e);
6462
+ function er({ item: e, isImage: t, onRemove: n }) {
6463
+ let r = Zn(e, t), i = Yn(e), a = Xn(e);
6409
6464
  return /* @__PURE__ */ m("div", {
6410
6465
  className: "attach-preview",
6411
6466
  children: [/* @__PURE__ */ m("div", {
@@ -6418,7 +6473,7 @@ function Zn({ item: e, isImage: t, onRemove: n }) {
6418
6473
  className: "attach-remove",
6419
6474
  "aria-label": "Remove attachment",
6420
6475
  onClick: n,
6421
- children: /* @__PURE__ */ p(H, {
6476
+ children: /* @__PURE__ */ p(V, {
6422
6477
  name: "x",
6423
6478
  size: 18
6424
6479
  })
@@ -6437,18 +6492,18 @@ function Zn({ item: e, isImage: t, onRemove: n }) {
6437
6492
  }
6438
6493
  //#endregion
6439
6494
  //#region src/components/AppFilePicker.jsx
6440
- function Qn({ 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 = "", ..._ }) {
6495
+ function tr({ 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 = "", ..._ }) {
6441
6496
  N("AppFilePicker", _);
6442
6497
  let [v, y] = d(null), [b, x] = d(!1), [S, C] = d(""), w = u(null), T = s(), E = n || T;
6443
6498
  o(() => {
6444
- if (!i && t instanceof File && Ot(t)) {
6499
+ if (!i && t instanceof File && jt(t)) {
6445
6500
  let e = URL.createObjectURL(t);
6446
6501
  return y(e), () => URL.revokeObjectURL(e);
6447
6502
  }
6448
6503
  y(null);
6449
6504
  }, [t, i]);
6450
- let D = i ? Array.isArray(t) ? t : t ? [t] : [] : [], O = h || S, k = kt(c), A = !i && !!t, j = A && (t instanceof File ? Ot(t) : k || Ot(t)), M = t?.name, P = j ? t?.url || v : null, F = (e) => {
6451
- let t = Mt(e, {
6505
+ let D = i ? Array.isArray(t) ? t : t ? [t] : [] : [], O = h || S, k = Mt(c), A = !i && !!t, j = A && (t instanceof File ? jt(t) : k || jt(t)), M = t?.name, P = j ? t?.url || v : null, F = (e) => {
6506
+ let t = Ft(e, {
6452
6507
  accept: c,
6453
6508
  maxSizeMb: l
6454
6509
  });
@@ -6456,9 +6511,9 @@ function Qn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6456
6511
  }, I = (e) => {
6457
6512
  let n = Array.from(e || []);
6458
6513
  if (!n.length) return;
6459
- let i = Array.isArray(t) ? t : t ? [t] : [], o = new Set(i.map(Gn)), s = "", u = [];
6514
+ let i = Array.isArray(t) ? t : t ? [t] : [], o = new Set(i.map(Jn)), s = "", u = [];
6460
6515
  for (let e of n) {
6461
- let t = Mt(e, {
6516
+ let t = Ft(e, {
6462
6517
  accept: c,
6463
6518
  maxSizeMb: l
6464
6519
  });
@@ -6466,7 +6521,7 @@ function Qn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6466
6521
  s ||= t;
6467
6522
  continue;
6468
6523
  }
6469
- o.has(Gn(e)) || (o.add(Gn(e)), u.push(e));
6524
+ o.has(Jn(e)) || (o.add(Jn(e)), u.push(e));
6470
6525
  }
6471
6526
  let d = i.concat(u);
6472
6527
  a && d.length > a && (d = d.slice(0, a), s ||= `Up to ${a} files.`), C(s), r(d);
@@ -6486,7 +6541,7 @@ function Qn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6486
6541
  t && F(t);
6487
6542
  }, z = (e) => {
6488
6543
  C(""), r(D.filter((t, n) => n !== e));
6489
- }, ee = () => w.current?.click(), B = /* @__PURE__ */ p("input", {
6544
+ }, ee = () => w.current?.click(), te = /* @__PURE__ */ p("input", {
6490
6545
  id: E,
6491
6546
  name: n,
6492
6547
  ref: w,
@@ -6522,7 +6577,7 @@ function Qn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6522
6577
  className: "file-preview-img"
6523
6578
  }) : /* @__PURE__ */ m("span", {
6524
6579
  className: "file-preview-file",
6525
- children: [/* @__PURE__ */ p(H, {
6580
+ children: [/* @__PURE__ */ p(V, {
6526
6581
  name: "file-text",
6527
6582
  size: 28
6528
6583
  }), /* @__PURE__ */ p("span", {
@@ -6534,7 +6589,7 @@ function Qn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6534
6589
  children: /* @__PURE__ */ m("span", {
6535
6590
  className: "file-preview-cta",
6536
6591
  children: [
6537
- /* @__PURE__ */ p(H, {
6592
+ /* @__PURE__ */ p(V, {
6538
6593
  name: j ? "image" : "file-text",
6539
6594
  size: 16
6540
6595
  }),
@@ -6550,12 +6605,12 @@ function Qn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6550
6605
  "aria-label": `Remove ${e}`,
6551
6606
  title: "Remove image",
6552
6607
  onClick: () => r(null),
6553
- children: /* @__PURE__ */ p(H, {
6608
+ children: /* @__PURE__ */ p(V, {
6554
6609
  name: "x",
6555
6610
  size: 16
6556
6611
  })
6557
6612
  }),
6558
- B
6613
+ te
6559
6614
  ]
6560
6615
  }) : /* @__PURE__ */ m("div", {
6561
6616
  className: `file-input file-input-tall${b ? " dragging" : ""}${O ? " error" : ""}${i && D.length > 0 ? " has-files" : ""}`,
@@ -6573,7 +6628,7 @@ function Qn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6573
6628
  children: [
6574
6629
  /* @__PURE__ */ p("span", {
6575
6630
  className: "file-input-icon",
6576
- children: /* @__PURE__ */ p(H, {
6631
+ children: /* @__PURE__ */ p(V, {
6577
6632
  name: "upload",
6578
6633
  size: 24
6579
6634
  })
@@ -6588,7 +6643,7 @@ function Qn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6588
6643
  /* @__PURE__ */ m("span", {
6589
6644
  className: "file-input-text",
6590
6645
  children: [
6591
- At(c),
6646
+ Nt(c),
6592
6647
  " · up to ",
6593
6648
  l,
6594
6649
  " MB"
@@ -6596,15 +6651,15 @@ function Qn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6596
6651
  })
6597
6652
  ]
6598
6653
  }),
6599
- B,
6654
+ te,
6600
6655
  i && D.length > 0 && /* @__PURE__ */ p("div", {
6601
6656
  className: "attach-list",
6602
- children: D.map((e, t) => /* @__PURE__ */ p(Yn, {
6657
+ children: D.map((e, t) => /* @__PURE__ */ p(Qn, {
6603
6658
  item: e,
6604
- isImage: e instanceof File ? Ot(e) : k || Ot(e),
6659
+ isImage: e instanceof File ? jt(e) : k || jt(e),
6605
6660
  noun: "file",
6606
6661
  onRemove: () => z(t)
6607
- }, Gn(e)))
6662
+ }, Jn(e)))
6608
6663
  })
6609
6664
  ]
6610
6665
  }),
@@ -6617,7 +6672,7 @@ function Qn({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
6617
6672
  }
6618
6673
  //#endregion
6619
6674
  //#region src/components/AppFloatingDock.jsx
6620
- function $n({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
6675
+ function nr({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
6621
6676
  return N("AppFloatingDock", s), /* @__PURE__ */ p("wui-dock", {
6622
6677
  role: "navigation",
6623
6678
  "aria-label": n,
@@ -6633,7 +6688,7 @@ function $n({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation"
6633
6688
  children: e.title
6634
6689
  }), /* @__PURE__ */ p("span", {
6635
6690
  className: "dock-item-icon",
6636
- children: U(e.icon, { size: 18 })
6691
+ children: H(e.icon, { size: 18 })
6637
6692
  })] });
6638
6693
  if (e.to && t) return /* @__PURE__ */ p(t, {
6639
6694
  className: "dock-item",
@@ -6659,7 +6714,7 @@ function $n({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation"
6659
6714
  }
6660
6715
  //#endregion
6661
6716
  //#region src/components/AppFormActions.jsx
6662
- function er({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
6717
+ function rr({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
6663
6718
  return N("AppFormActions", i), /* @__PURE__ */ p("div", {
6664
6719
  className: [
6665
6720
  "form-actions",
@@ -6673,7 +6728,7 @@ function er({ children: e, sticky: t = !1, align: n = "end", className: r = "",
6673
6728
  }
6674
6729
  //#endregion
6675
6730
  //#region src/components/AppFormRow.jsx
6676
- function tr({ children: e, columns: t = 2, className: n = "", ...r }) {
6731
+ function ir({ children: e, columns: t = 2, className: n = "", ...r }) {
6677
6732
  N("AppFormRow", r);
6678
6733
  let { style: i, ...a } = r;
6679
6734
  return /* @__PURE__ */ p("div", {
@@ -6688,7 +6743,7 @@ function tr({ children: e, columns: t = 2, className: n = "", ...r }) {
6688
6743
  }
6689
6744
  //#endregion
6690
6745
  //#region src/components/AppFormSection.jsx
6691
- function nr({ children: e, title: t, description: n, className: r = "", ...i }) {
6746
+ function ar({ children: e, title: t, description: n, className: r = "", ...i }) {
6692
6747
  return N("AppFormSection", i), /* @__PURE__ */ m("section", {
6693
6748
  className: ["form-section", r].filter(Boolean).join(" "),
6694
6749
  ...i,
@@ -6709,14 +6764,14 @@ function nr({ children: e, title: t, description: n, className: r = "", ...i })
6709
6764
  }
6710
6765
  //#endregion
6711
6766
  //#region src/components/AppInfoList.jsx
6712
- function rr({ items: e = [], className: t = "", ...n }) {
6767
+ function or({ items: e = [], className: t = "", ...n }) {
6713
6768
  return N("AppInfoList", n), /* @__PURE__ */ p("div", {
6714
6769
  className: `info-list${t ? ` ${t}` : ""}`,
6715
6770
  ...n,
6716
6771
  children: e.map((e, t) => {
6717
- let n = zn(e.value), r = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
6772
+ let n = Hn(e.value), r = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
6718
6773
  className: "info-icon",
6719
- children: U(e.icon, { size: 16 })
6774
+ children: H(e.icon, { size: 16 })
6720
6775
  }), /* @__PURE__ */ m("span", {
6721
6776
  className: "info-meta",
6722
6777
  children: [/* @__PURE__ */ p("span", {
@@ -6740,23 +6795,23 @@ function rr({ items: e = [], className: t = "", ...n }) {
6740
6795
  }
6741
6796
  //#endregion
6742
6797
  //#region src/components/AppKpiTile.jsx
6743
- var ir = 48, ar = 16;
6744
- function or(e) {
6745
- if (!e || e.length < 2) return `0,${ar / 2} ${ir},${ar / 2}`;
6746
- let t = Math.min(...e), n = Math.max(...e) - t, r = ir / (e.length - 1);
6747
- return e.map((e, i) => `${i * r},${n === 0 ? ar / 2 : ar - (e - t) / n * ar}`).join(" ");
6798
+ var sr = 48, cr = 16;
6799
+ function lr(e) {
6800
+ if (!e || e.length < 2) return `0,${cr / 2} ${sr},${cr / 2}`;
6801
+ let t = Math.min(...e), n = Math.max(...e) - t, r = sr / (e.length - 1);
6802
+ return e.map((e, i) => `${i * r},${n === 0 ? cr / 2 : cr - (e - t) / n * cr}`).join(" ");
6748
6803
  }
6749
- function sr(e) {
6804
+ function ur(e) {
6750
6805
  if (typeof e != "string") return "flat";
6751
6806
  let t = e.trim();
6752
6807
  return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
6753
6808
  }
6754
- function cr({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, deltaDirection: o, sparkline: s, variant: c = "plain", size: l = "md", valueSize: u, inline: d = !1, attention: f = !1, href: h, linkComponent: g, className: _ = "", style: v, iconClassName: y = "", labelClassName: b = "", valueClassName: x = "", captionClassName: S = "", deltaClassName: C = "", sparklineClassName: w = "", ...T }) {
6809
+ function dr({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, deltaDirection: o, sparkline: s, variant: c = "plain", size: l = "md", valueSize: u, inline: d = !1, attention: f = !1, href: h, linkComponent: g, className: _ = "", style: v, iconClassName: y = "", labelClassName: b = "", valueClassName: x = "", captionClassName: S = "", deltaClassName: C = "", sparklineClassName: w = "", ...T }) {
6755
6810
  N("AppKpiTile", T);
6756
6811
  let E = `kpi${d ? " kpi-inline" : ""}${c === "filled" ? " kpi-filled" : c === "accent" ? " kpi-accent" : c === "spotlight" ? " kpi-spotlight" : ""}${l === "lg" ? " kpi-lg" : l === "sm" ? " kpi-sm" : ""}${f ? " kpi-attention" : ""}${_ ? ` ${_}` : ""}`, D = typeof u == "number" && u > 0 ? {
6757
6812
  ...v,
6758
6813
  "--wui-kpi-value-size": `${u}px`
6759
- } : v, O = o ?? sr(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
6814
+ } : v, O = o ?? ur(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
6760
6815
  return h != null && (A = g ? {
6761
6816
  as: g,
6762
6817
  to: h
@@ -6771,7 +6826,7 @@ function cr({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
6771
6826
  children: [
6772
6827
  r && /* @__PURE__ */ p("span", {
6773
6828
  className: `kpi-icon${i ? ` kpi-icon-${i}` : ""}${y ? ` ${y}` : ""}`,
6774
- children: U(r, { size: 20 })
6829
+ children: H(r, { size: 20 })
6775
6830
  }),
6776
6831
  /* @__PURE__ */ p("div", {
6777
6832
  className: `kpi-label${b ? ` ${b}` : ""}`,
@@ -6787,19 +6842,19 @@ function cr({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
6787
6842
  }),
6788
6843
  a && /* @__PURE__ */ m("div", {
6789
6844
  className: `kpi-delta${O === "flat" ? "" : ` ${O}`}${C ? ` ${C}` : ""}`,
6790
- children: [k && /* @__PURE__ */ p(H, {
6845
+ children: [k && /* @__PURE__ */ p(V, {
6791
6846
  name: k,
6792
6847
  size: 13
6793
6848
  }), a]
6794
6849
  }),
6795
6850
  s && s.length > 0 && /* @__PURE__ */ p("svg", {
6796
6851
  className: `kpi-sparkline${w ? ` ${w}` : ""}`,
6797
- width: ir,
6798
- height: ar,
6799
- viewBox: `0 0 ${ir} ${ar}`,
6852
+ width: sr,
6853
+ height: cr,
6854
+ viewBox: `0 0 ${sr} ${cr}`,
6800
6855
  "aria-hidden": "true",
6801
6856
  children: /* @__PURE__ */ p("polyline", {
6802
- points: or(s),
6857
+ points: lr(s),
6803
6858
  stroke: "currentColor",
6804
6859
  fill: "none"
6805
6860
  })
@@ -6809,21 +6864,21 @@ function cr({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
6809
6864
  }
6810
6865
  //#endregion
6811
6866
  //#region src/components/AppLogoPicker.jsx
6812
- var lr = {
6867
+ var fr = {
6813
6868
  sm: 72,
6814
6869
  md: 120,
6815
6870
  lg: 160
6816
6871
  };
6817
- function ur({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a = !1, disabled: c = !1, accept: l = "image/png,image/jpeg,image/webp", maxSizeMb: f = 5, overlayIcon: h = "image", overlayLabel: g = "Update photo", ariaLabel: _ = "Upload photo", label: v, hint: y, error: b, layout: x = "stacked", title: S, subtitle: C, required: w = !1, variant: T = "initials", size: E = "md", shape: D = "circle", className: O = "", ...k }) {
6818
- N("AppLogoPicker", k);
6819
- let A = u(null), j = s(), M = n || j, [P, F] = d(null), [I, L] = d(""), [R, z] = d(!1), [ee, B] = d(!1);
6872
+ function pr({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a = !1, disabled: c = !1, accept: l = "image/png,image/jpeg,image/webp", maxSizeMb: f = 5, overlayIcon: h = "image", overlayLabel: g = "Update photo", ariaLabel: _ = "Upload photo", label: v, hint: y, error: b, layout: x = "stacked", title: S, subtitle: C, required: w = !1, variant: T = "initials", size: E = "md", shape: D = "circle", className: O = "", ...k }) {
6873
+ N("AppLogoPicker", k), U("AppLogoPicker", "size", typeof E == "string" ? E : null, Object.keys(fr));
6874
+ let A = u(null), j = s(), M = n || j, [P, F] = d(null), [I, L] = d(""), [R, z] = d(!1), [ee, te] = d(!1);
6820
6875
  o(() => () => P && URL.revokeObjectURL(P), [P]), o(() => {
6821
6876
  F(null), z(!1);
6822
6877
  }, [e]);
6823
- let V = a || c, te = P || (e && !R ? e : null), ne = b || I, re = !V && (!!P || !!te && !!i), ie = () => {
6824
- V || A.current?.click();
6825
- }, ae = (e) => {
6826
- let t = Mt(e, {
6878
+ let B = a || c, ne = P || (e && !R ? e : null), re = b || I, ie = !B && (!!P || !!ne && !!i), ae = () => {
6879
+ B || A.current?.click();
6880
+ }, oe = (e) => {
6881
+ let t = Ft(e, {
6827
6882
  accept: l,
6828
6883
  maxSizeMb: f
6829
6884
  });
@@ -6832,65 +6887,65 @@ function ur({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6832
6887
  return;
6833
6888
  }
6834
6889
  L(""), z(!1), F(URL.createObjectURL(e)), r(e);
6835
- }, U = (e) => {
6890
+ }, H = (e) => {
6836
6891
  let t = e.target.files?.[0];
6837
- e.target.value = "", t && ae(t);
6838
- }, oe = (e) => {
6839
- if (e.preventDefault(), B(!1), V) return;
6892
+ e.target.value = "", t && oe(t);
6893
+ }, se = (e) => {
6894
+ if (e.preventDefault(), te(!1), B) return;
6840
6895
  let t = e.dataTransfer.files?.[0];
6841
- t && ae(t);
6842
- }, se = () => {
6896
+ t && oe(t);
6897
+ }, ce = () => {
6843
6898
  F(null), L(""), z(!1), A.current && (A.current.value = ""), i?.();
6844
- }, ce = typeof E == "number" ? E : lr[E] ?? lr.md, le = Math.max(14, Math.round(ce * .18)), ue = Math.round(ce * .5), de = [
6899
+ }, le = typeof E == "number" ? E : fr[E] ?? fr.md, ue = Math.max(14, Math.round(le * .18)), de = Math.round(le * .5), fe = [
6845
6900
  "set-uploader",
6846
6901
  T === "avatar" ? "set-uploader--avatar" : "",
6847
6902
  D === "rounded" ? "set-uploader--rounded" : D === "square" ? "set-uploader--square" : "",
6848
6903
  ee && "is-dragging"
6849
- ].filter(Boolean).join(" "), fe = x === "inline", W = x === "profile", pe = /* @__PURE__ */ m("div", {
6904
+ ].filter(Boolean).join(" "), W = x === "inline", pe = x === "profile", me = /* @__PURE__ */ m("div", {
6850
6905
  className: "set-uploader-shell",
6851
6906
  children: [
6852
6907
  /* @__PURE__ */ p("button", {
6853
6908
  type: "button",
6854
- className: de,
6855
- style: { "--wui-logo-size": `${ce}px` },
6909
+ className: fe,
6910
+ style: { "--wui-logo-size": `${le}px` },
6856
6911
  "aria-busy": a || void 0,
6857
- disabled: V,
6858
- onClick: ie,
6912
+ disabled: B,
6913
+ onClick: ae,
6859
6914
  "aria-label": _,
6860
6915
  onDragOver: (e) => {
6861
- e.preventDefault(), !V && !ee && B(!0);
6916
+ e.preventDefault(), !B && !ee && te(!0);
6862
6917
  },
6863
6918
  onDragLeave: (e) => {
6864
- e.preventDefault(), B(!1);
6919
+ e.preventDefault(), te(!1);
6865
6920
  },
6866
- onDrop: oe,
6921
+ onDrop: se,
6867
6922
  ...k,
6868
6923
  children: /* @__PURE__ */ m("span", {
6869
6924
  className: "set-uploader-ring",
6870
- children: [te ? /* @__PURE__ */ p("img", {
6925
+ children: [ne ? /* @__PURE__ */ p("img", {
6871
6926
  className: "set-uploader-img",
6872
- src: te,
6927
+ src: ne,
6873
6928
  alt: "",
6874
6929
  onError: () => z(!0)
6875
6930
  }) : /* @__PURE__ */ p("span", {
6876
6931
  className: "set-uploader-logo",
6877
- children: t || T === "avatar" && /* @__PURE__ */ p(H, {
6932
+ children: t || T === "avatar" && /* @__PURE__ */ p(V, {
6878
6933
  name: "user",
6879
- size: ue
6934
+ size: de
6880
6935
  })
6881
6936
  }), a ? /* @__PURE__ */ p("span", {
6882
6937
  className: "set-uploader-overlay is-loading",
6883
6938
  "aria-hidden": "true",
6884
- children: /* @__PURE__ */ p(H, {
6939
+ children: /* @__PURE__ */ p(V, {
6885
6940
  name: "refresh-cw",
6886
- size: le,
6941
+ size: ue,
6887
6942
  className: "wui-spin"
6888
6943
  })
6889
6944
  }) : !c && /* @__PURE__ */ m("span", {
6890
6945
  className: "set-uploader-overlay",
6891
- children: [/* @__PURE__ */ p(H, {
6946
+ children: [/* @__PURE__ */ p(V, {
6892
6947
  name: h,
6893
- size: le
6948
+ size: ue
6894
6949
  }), /* @__PURE__ */ p("span", { children: g })]
6895
6950
  })]
6896
6951
  })
@@ -6898,11 +6953,11 @@ function ur({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6898
6953
  /* @__PURE__ */ p("button", {
6899
6954
  type: "button",
6900
6955
  className: "set-uploader-remove",
6901
- hidden: !re,
6956
+ hidden: !ie,
6902
6957
  "aria-label": "Remove photo",
6903
6958
  title: "Remove photo",
6904
- onClick: se,
6905
- children: /* @__PURE__ */ p(H, {
6959
+ onClick: ce,
6960
+ children: /* @__PURE__ */ p(V, {
6906
6961
  name: "x",
6907
6962
  size: 14
6908
6963
  })
@@ -6914,21 +6969,21 @@ function ur({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6914
6969
  name: n,
6915
6970
  hidden: !0,
6916
6971
  accept: l,
6917
- onChange: U,
6918
- disabled: V
6972
+ onChange: H,
6973
+ disabled: B
6919
6974
  })
6920
6975
  ]
6921
- }), me = y && !ne && /* @__PURE__ */ p("div", {
6976
+ }), he = y && !re && /* @__PURE__ */ p("div", {
6922
6977
  className: "set-uploader-hint",
6923
6978
  children: y
6924
- }), he = ne && /* @__PURE__ */ p("div", {
6979
+ }), ge = re && /* @__PURE__ */ p("div", {
6925
6980
  className: "field-error",
6926
- children: ne
6927
- }), ge = v && /* @__PURE__ */ m("label", {
6981
+ children: re
6982
+ }), _e = v && /* @__PURE__ */ m("label", {
6928
6983
  className: "label",
6929
6984
  htmlFor: M,
6930
6985
  children: [v, w && /* @__PURE__ */ p(Z, {})]
6931
- }), _e = /* @__PURE__ */ m("div", {
6986
+ }), ve = /* @__PURE__ */ m("div", {
6932
6987
  className: "set-uploader-meta",
6933
6988
  children: [
6934
6989
  S && /* @__PURE__ */ p("div", {
@@ -6939,56 +6994,56 @@ function ur({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
6939
6994
  className: "set-uploader-subtitle",
6940
6995
  children: C
6941
6996
  }),
6942
- me,
6943
- he
6997
+ he,
6998
+ ge
6944
6999
  ]
6945
7000
  });
6946
- return fe ? /* @__PURE__ */ m("div", {
7001
+ return W ? /* @__PURE__ */ m("div", {
6947
7002
  className: `field set-uploader-field set-uploader-field--inline${O ? ` ${O}` : ""}`,
6948
- children: [ge, /* @__PURE__ */ m("div", {
7003
+ children: [_e, /* @__PURE__ */ m("div", {
6949
7004
  className: "set-uploader-row",
6950
- children: [pe, _e]
7005
+ children: [me, ve]
6951
7006
  })]
6952
- }) : W ? /* @__PURE__ */ m("div", {
7007
+ }) : pe ? /* @__PURE__ */ m("div", {
6953
7008
  className: `field set-uploader-field set-uploader-field--profile${O ? ` ${O}` : ""}`,
6954
7009
  children: [
6955
- ge,
6956
- pe,
6957
- _e
7010
+ _e,
7011
+ me,
7012
+ ve
6958
7013
  ]
6959
7014
  }) : /* @__PURE__ */ m("div", {
6960
7015
  className: `field set-uploader-field${O ? ` ${O}` : ""}`,
6961
7016
  children: [
6962
- ge,
6963
- pe,
7017
+ _e,
6964
7018
  me,
6965
- he
7019
+ he,
7020
+ ge
6966
7021
  ]
6967
7022
  });
6968
7023
  }
6969
7024
  //#endregion
6970
7025
  //#region src/components/AppMeter.jsx
6971
- var dr = [
7026
+ var mr = [
6972
7027
  "info",
6973
7028
  "success",
6974
7029
  "warning",
6975
7030
  "danger",
6976
7031
  "neutral"
6977
7032
  ];
6978
- function fr(e, t, n) {
7033
+ function hr(e, t, n) {
6979
7034
  let r = n - t;
6980
7035
  if (!(r > 0)) return 0;
6981
7036
  let i = Math.min(100, Math.max(0, (e - t) / r * 100));
6982
7037
  return Number(i.toFixed(2));
6983
7038
  }
6984
- function pr(e, t, n, r, i) {
7039
+ function gr(e, t, n, r, i) {
6985
7040
  if (t == null && n == null) return i;
6986
7041
  let a = "mid";
6987
7042
  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";
6988
7043
  }
6989
- function mr({ 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 }) {
7044
+ function _r({ 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 }) {
6990
7045
  N("AppMeter", d);
6991
- let f = pr(e, a, o, i, dr.includes(r) ? r : "info"), m = fr(e, t, n);
7046
+ let f = gr(e, a, o, i, mr.includes(r) ? r : "info"), m = hr(e, t, n);
6992
7047
  return /* @__PURE__ */ p("div", {
6993
7048
  className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
6994
7049
  role: "meter",
@@ -7006,20 +7061,20 @@ function mr({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
7006
7061
  }
7007
7062
  //#endregion
7008
7063
  //#region src/components/AppMultiSelect.jsx
7009
- var hr = 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) {
7064
+ var vr = 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) {
7010
7065
  N("AppMultiSelect", S);
7011
7066
  let w = s(), T = f || w, { setRef: E, innerRef: D } = Q({
7012
7067
  ref: C,
7013
7068
  value: e,
7014
7069
  onChange: t,
7015
- readValue: Bt,
7016
- writeValue: Vt
7070
+ readValue: Ut,
7071
+ writeValue: Wt
7017
7072
  });
7018
7073
  return o(() => {
7019
7074
  let e = D.current;
7020
7075
  if (!e) return;
7021
7076
  let t = n || [];
7022
- zt(t, e.options) || (e.options = t);
7077
+ Ht(t, e.options) || (e.options = t);
7023
7078
  }, [n, D]), /* @__PURE__ */ m("div", {
7024
7079
  className: `field${x ? ` ${x}` : ""}`,
7025
7080
  children: [
@@ -7029,7 +7084,7 @@ var hr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7029
7084
  children: [
7030
7085
  h,
7031
7086
  v && /* @__PURE__ */ p(Z, {}),
7032
- y && /* @__PURE__ */ p(Ft, {
7087
+ y && /* @__PURE__ */ p(Rt, {
7033
7088
  label: b,
7034
7089
  children: y
7035
7090
  })
@@ -7063,7 +7118,7 @@ var hr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7063
7118
  }) : null
7064
7119
  ]
7065
7120
  });
7066
- }), gr = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: c, onChange: l, min: u, max: f, step: h = 1, precision: g = 0, unit: _, size: v = "md", id: y, name: b, className: S = "", fieldClassName: C = "", disabled: w = !1, ...T }, E) {
7121
+ }), yr = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: c, onChange: l, min: u, max: f, step: h = 1, precision: g = 0, unit: _, size: v = "md", id: y, name: b, className: S = "", fieldClassName: C = "", disabled: w = !1, ...T }, E) {
7067
7122
  N("AppNumberInput", T);
7068
7123
  let D = s(), O = y || D, k = (e) => {
7069
7124
  if (g === 0) return Math.round(e);
@@ -7083,19 +7138,19 @@ var hr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7083
7138
  let F = (e) => {
7084
7139
  let t = (j(M) ?? A(0)) + e * h, n = A(k(t));
7085
7140
  P(String(n)), l?.(n);
7086
- }, I = j(M), L = w || I !== null && typeof u == "number" && I <= u, R = w || I !== null && typeof f == "number" && I >= f, z = n && O ? `${O}-error` : void 0, ee = r && O ? `${O}-hint` : void 0, B = z || ee, V = [
7141
+ }, I = j(M), L = w || I !== null && typeof u == "number" && I <= u, R = w || I !== null && typeof f == "number" && I >= f, z = n && O ? `${O}-error` : void 0, ee = r && O ? `${O}-hint` : void 0, te = z || ee, B = [
7087
7142
  "input",
7088
7143
  v === "sm" ? "input-sm" : "",
7089
7144
  v === "lg" ? "input-lg" : "",
7090
7145
  n ? "error" : "",
7091
7146
  "num-input",
7092
7147
  S
7093
- ].filter(Boolean).join(" "), te = (e) => {
7148
+ ].filter(Boolean).join(" "), ne = (e) => {
7094
7149
  let t = e.target.value;
7095
7150
  P(t);
7096
7151
  let n = j(t);
7097
7152
  n !== null && l?.(n);
7098
- }, ne = (e) => {
7153
+ }, re = (e) => {
7099
7154
  let t = j(e.target.value);
7100
7155
  if (t === null) P(""), l?.("");
7101
7156
  else {
@@ -7103,25 +7158,25 @@ var hr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7103
7158
  P(String(e)), l?.(e);
7104
7159
  }
7105
7160
  T.onBlur?.(e);
7106
- }, re = (e) => {
7161
+ }, ie = (e) => {
7107
7162
  e.key === "ArrowUp" ? (e.preventDefault(), F(1)) : e.key === "ArrowDown" && (e.preventDefault(), F(-1)), T.onKeyDown?.(e);
7108
- }, ie = /* @__PURE__ */ p(x.Control, {
7163
+ }, ae = /* @__PURE__ */ p(x.Control, {
7109
7164
  ...T,
7110
7165
  id: O,
7111
7166
  name: b,
7112
7167
  type: "text",
7113
7168
  inputMode: g > 0 ? "decimal" : "numeric",
7114
- className: V,
7169
+ className: B,
7115
7170
  disabled: w,
7116
7171
  required: t,
7117
7172
  "aria-invalid": n ? "true" : "false",
7118
- "aria-describedby": B,
7173
+ "aria-describedby": te,
7119
7174
  value: M,
7120
7175
  ref: E,
7121
- onChange: te,
7122
- onBlur: ne,
7123
- onKeyDown: re
7124
- }), ae = /* @__PURE__ */ m("div", {
7176
+ onChange: ne,
7177
+ onBlur: re,
7178
+ onKeyDown: ie
7179
+ }), oe = /* @__PURE__ */ m("div", {
7125
7180
  className: [
7126
7181
  "num-wrap",
7127
7182
  v === "sm" ? "num-wrap-sm" : "",
@@ -7135,12 +7190,12 @@ var hr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7135
7190
  tabIndex: -1,
7136
7191
  disabled: L,
7137
7192
  onClick: () => F(-1),
7138
- children: /* @__PURE__ */ p(H, {
7193
+ children: /* @__PURE__ */ p(V, {
7139
7194
  name: "minus",
7140
7195
  size: 16
7141
7196
  })
7142
7197
  }),
7143
- ie,
7198
+ ae,
7144
7199
  _ && /* @__PURE__ */ p("span", {
7145
7200
  className: "affix",
7146
7201
  children: _
@@ -7152,7 +7207,7 @@ var hr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7152
7207
  tabIndex: -1,
7153
7208
  disabled: R,
7154
7209
  onClick: () => F(1),
7155
- children: /* @__PURE__ */ p(H, {
7210
+ children: /* @__PURE__ */ p(V, {
7156
7211
  name: "plus",
7157
7212
  size: 16
7158
7213
  })
@@ -7168,13 +7223,13 @@ var hr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7168
7223
  children: [
7169
7224
  e,
7170
7225
  t && /* @__PURE__ */ p(Z, {}),
7171
- i && /* @__PURE__ */ p(Ft, {
7226
+ i && /* @__PURE__ */ p(Rt, {
7172
7227
  label: a,
7173
7228
  children: i
7174
7229
  })
7175
7230
  ]
7176
7231
  }),
7177
- ae,
7232
+ oe,
7178
7233
  n ? /* @__PURE__ */ p("div", {
7179
7234
  className: "field-error",
7180
7235
  id: z,
@@ -7186,7 +7241,7 @@ var hr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7186
7241
  }) : null
7187
7242
  ]
7188
7243
  });
7189
- }), _r = 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) {
7244
+ }), br = 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) {
7190
7245
  N("AppOtpInput", _);
7191
7246
  let y = s(), b = h || y, { setRef: x, innerRef: S } = Q({
7192
7247
  ref: v,
@@ -7233,7 +7288,7 @@ var hr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
7233
7288
  });
7234
7289
  //#endregion
7235
7290
  //#region src/components/AppPageHeader.jsx
7236
- function vr({ 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 }) {
7291
+ function xr({ 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 }) {
7237
7292
  N("AppPageHeader", h);
7238
7293
  let g = [
7239
7294
  "page-header",
@@ -7243,7 +7298,7 @@ function vr({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", s
7243
7298
  d ? "page-header-sticky" : "",
7244
7299
  i && i !== "primary" ? `tone-${i}` : "",
7245
7300
  f
7246
- ].filter(Boolean).join(" "), _ = r == null ? null : typeof r == "string" ? /* @__PURE__ */ p(H, {
7301
+ ].filter(Boolean).join(" "), _ = r == null ? null : typeof r == "string" ? /* @__PURE__ */ p(V, {
7247
7302
  name: r,
7248
7303
  size: 20
7249
7304
  }) : r;
@@ -7292,9 +7347,9 @@ function vr({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", s
7292
7347
  }
7293
7348
  //#endregion
7294
7349
  //#region src/components/AppPagination.jsx
7295
- function yr({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
7350
+ function Sr({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
7296
7351
  if (N("AppPagination", s), t <= 1) return null;
7297
- let c = An(e, t, { siblingCount: r });
7352
+ let c = Nn(e, t, { siblingCount: r });
7298
7353
  return /* @__PURE__ */ p("nav", {
7299
7354
  className: [
7300
7355
  "pagination-nav",
@@ -7352,7 +7407,7 @@ function yr({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
7352
7407
  }
7353
7408
  //#endregion
7354
7409
  //#region src/components/AppPhoneNumberInput.jsx
7355
- var br = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, label: a = "Phone number", placeholder: o, required: c = !1, error: l, showFlag: u = !0, showDialCode: d = !0, size: f = "md", fieldClassName: h = "", ...g }, _) {
7410
+ var Cr = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, label: a = "Phone number", placeholder: o, required: c = !1, error: l, showFlag: u = !0, showDialCode: d = !0, size: f = "md", fieldClassName: h = "", ...g }, _) {
7356
7411
  N("AppPhoneNumberInput", g);
7357
7412
  let v = s(), y = i || v, b = l && y ? `${y}-error` : void 0, { setRef: x } = Q({
7358
7413
  ref: _,
@@ -7392,7 +7447,7 @@ var br = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name:
7392
7447
  });
7393
7448
  //#endregion
7394
7449
  //#region src/components/AppPricingCard.jsx
7395
- function xr({ 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 }) {
7450
+ function wr({ 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 }) {
7396
7451
  return N("AppPricingCard", u), /* @__PURE__ */ m("div", {
7397
7452
  className: [
7398
7453
  "plan-card",
@@ -7429,7 +7484,7 @@ function xr({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
7429
7484
  className: n ? void 0 : "excluded",
7430
7485
  children: [/* @__PURE__ */ p("span", {
7431
7486
  className: "plan-feature-icon",
7432
- children: /* @__PURE__ */ p(H, {
7487
+ children: /* @__PURE__ */ p(V, {
7433
7488
  name: n ? "check" : "x",
7434
7489
  size: 16
7435
7490
  })
@@ -7446,21 +7501,21 @@ function xr({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
7446
7501
  }
7447
7502
  //#endregion
7448
7503
  //#region src/components/AppProgress.jsx
7449
- var Sr = [
7504
+ var Tr = [
7450
7505
  "info",
7451
7506
  "success",
7452
7507
  "warning",
7453
7508
  "danger",
7454
7509
  "neutral"
7455
7510
  ];
7456
- function Cr(e, t) {
7511
+ function Er(e, t) {
7457
7512
  if (!(t > 0)) return 0;
7458
7513
  let n = Math.min(100, Math.max(0, e / t * 100));
7459
7514
  return Number(n.toFixed(2));
7460
7515
  }
7461
- function wr({ 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 }) {
7516
+ function Dr({ 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 }) {
7462
7517
  N("AppProgress", u);
7463
- let d = Sr.includes(n) ? n : "info", f = Cr(e, t), m = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, h = [
7518
+ let d = Tr.includes(n) ? n : "info", f = Er(e, t), m = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, h = [
7464
7519
  "progress-bar",
7465
7520
  `wui-progress-${d}`,
7466
7521
  o || s ? "progress-bar-striped" : "",
@@ -7484,8 +7539,8 @@ function wr({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
7484
7539
  }
7485
7540
  //#endregion
7486
7541
  //#region src/components/AppRadio.jsx
7487
- var Tr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
7488
- return N("AppRadio", o), /* @__PURE__ */ p(ln, {
7542
+ var Or = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
7543
+ return N("AppRadio", o), /* @__PURE__ */ p(fn, {
7489
7544
  ref: s,
7490
7545
  label: e,
7491
7546
  id: t,
@@ -7500,7 +7555,7 @@ var Tr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
7500
7555
  });
7501
7556
  //#endregion
7502
7557
  //#region src/components/AppRepeater.jsx
7503
- function Er({ 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 }) {
7558
+ function kr({ 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 }) {
7504
7559
  N("AppRepeater", d);
7505
7560
  let f = typeof c == "number" && e.length >= c, h = !!r && e.length > s;
7506
7561
  return /* @__PURE__ */ m("div", {
@@ -7522,7 +7577,7 @@ function Er({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "
7522
7577
  className: "repeater-body",
7523
7578
  children: t(e, n)
7524
7579
  }),
7525
- h && /* @__PURE__ */ p(oe, {
7580
+ h && /* @__PURE__ */ p(se, {
7526
7581
  icon: "trash-2",
7527
7582
  label: `${a} ${n + 1}`,
7528
7583
  danger: !0,
@@ -7531,7 +7586,7 @@ function Er({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "
7531
7586
  })
7532
7587
  ]
7533
7588
  }, e.id ?? n)),
7534
- /* @__PURE__ */ p(W, {
7589
+ /* @__PURE__ */ p(he, {
7535
7590
  variant: "secondary",
7536
7591
  size: "sm",
7537
7592
  leftIcon: "plus",
@@ -7545,11 +7600,11 @@ function Er({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "
7545
7600
  }
7546
7601
  //#endregion
7547
7602
  //#region src/components/AppResourceCard.jsx
7548
- function Dr({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
7603
+ function Ar({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
7549
7604
  N("AppResourceCard", s);
7550
7605
  let c = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
7551
7606
  className: "res-card-icon",
7552
- children: /* @__PURE__ */ p(H, {
7607
+ children: /* @__PURE__ */ p(V, {
7553
7608
  name: e,
7554
7609
  size: 18
7555
7610
  })
@@ -7579,7 +7634,7 @@ function Dr({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
7579
7634
  }
7580
7635
  //#endregion
7581
7636
  //#region src/components/AppResult.jsx
7582
- var Or = {
7637
+ var jr = {
7583
7638
  success: {
7584
7639
  icon: "check-circle",
7585
7640
  tone: "success"
@@ -7600,9 +7655,9 @@ var Or = {
7600
7655
  404: { tone: "muted" },
7601
7656
  500: { tone: "muted" }
7602
7657
  };
7603
- function kr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
7604
- N("AppResult", s);
7605
- let c = Or[e] || Or.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
7658
+ function Mr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
7659
+ N("AppResult", s), U("AppResult", "status", e, Object.keys(jr));
7660
+ let c = jr[e] || jr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
7606
7661
  return /* @__PURE__ */ m("div", {
7607
7662
  className: [
7608
7663
  "result",
@@ -7617,7 +7672,7 @@ function kr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
7617
7672
  children: e
7618
7673
  }) : d ? /* @__PURE__ */ p("div", {
7619
7674
  className: "result-icon",
7620
- children: U(d, { size: 48 })
7675
+ children: H(d, { size: 48 })
7621
7676
  }) : null,
7622
7677
  t != null && /* @__PURE__ */ p("h2", {
7623
7678
  className: "result-title",
@@ -7640,7 +7695,7 @@ function kr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
7640
7695
  }
7641
7696
  //#endregion
7642
7697
  //#region src/components/AppScrollbar.jsx
7643
- function Ar({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7698
+ function Nr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7644
7699
  return N("AppScrollbar", i), /* @__PURE__ */ p("div", {
7645
7700
  className: t ? `wui-scroll ${t}` : "wui-scroll",
7646
7701
  style: n == null ? r : {
@@ -7653,7 +7708,7 @@ function Ar({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
7653
7708
  }
7654
7709
  //#endregion
7655
7710
  //#region src/components/AppSearch.jsx
7656
- function jr({ 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 }) {
7711
+ function Pr({ 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 }) {
7657
7712
  N("AppSearch", u);
7658
7713
  let d = t || n;
7659
7714
  return /* @__PURE__ */ m("div", {
@@ -7669,7 +7724,7 @@ function jr({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
7669
7724
  className: "search-spinner",
7670
7725
  "aria-hidden": "true"
7671
7726
  }),
7672
- /* @__PURE__ */ p(H, {
7727
+ /* @__PURE__ */ p(V, {
7673
7728
  name: "search",
7674
7729
  size: a,
7675
7730
  className: "search-icon"
@@ -7690,7 +7745,7 @@ function jr({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
7690
7745
  "aria-label": "Clear search",
7691
7746
  onClick: () => d?.(""),
7692
7747
  hidden: !e,
7693
- children: /* @__PURE__ */ p(H, {
7748
+ children: /* @__PURE__ */ p(V, {
7694
7749
  name: "x",
7695
7750
  size: 16
7696
7751
  })
@@ -7700,7 +7755,7 @@ function jr({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
7700
7755
  }
7701
7756
  //#endregion
7702
7757
  //#region src/components/AppSegmented.jsx
7703
- function Mr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: l = !1, disabled: d = !1, className: f = "", ...h }) {
7758
+ function Fr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: l = !1, disabled: d = !1, className: f = "", ...h }) {
7704
7759
  N("AppSegmented", h);
7705
7760
  let g = s(), _ = i || g, v = u(null), y = u(null), b = [
7706
7761
  "segmented",
@@ -7755,7 +7810,7 @@ function Mr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
7755
7810
  disabled: d || e.disabled,
7756
7811
  onChange: () => n?.(e.value)
7757
7812
  }),
7758
- e.icon && /* @__PURE__ */ p(H, {
7813
+ e.icon && /* @__PURE__ */ p(V, {
7759
7814
  name: e.icon,
7760
7815
  size: 13
7761
7816
  }),
@@ -7775,7 +7830,7 @@ function Mr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
7775
7830
  }
7776
7831
  //#endregion
7777
7832
  //#region src/components/AppSelect.jsx
7778
- var Nr = (e) => e == null ? "" : e.label ?? e.text ?? "", Pr = 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) {
7833
+ var Ir = (e) => e == null ? "" : e.label ?? e.text ?? "", Lr = 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) {
7779
7834
  N("AppSelect", O);
7780
7835
  let A = s(), { setRef: j, innerRef: M } = Q({
7781
7836
  ref: k,
@@ -7787,10 +7842,10 @@ var Nr = (e) => e == null ? "" : e.label ?? e.text ?? "", Pr = i(function({ valu
7787
7842
  if (!e) return;
7788
7843
  let t = n.map((e) => ({
7789
7844
  value: e.value,
7790
- label: Nr(e),
7845
+ label: Ir(e),
7791
7846
  icon: e.icon
7792
7847
  }));
7793
- zt(t, e.options) || (e.options = t);
7848
+ Ht(t, e.options) || (e.options = t);
7794
7849
  }, [n, M]);
7795
7850
  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", {
7796
7851
  "aria-label": T || (typeof h == "string" ? h : void 0),
@@ -7823,7 +7878,7 @@ var Nr = (e) => e == null ? "" : e.label ?? e.text ?? "", Pr = i(function({ valu
7823
7878
  children: [
7824
7879
  h,
7825
7880
  g && /* @__PURE__ */ p(Z, {}),
7826
- y && /* @__PURE__ */ p(Ft, {
7881
+ y && /* @__PURE__ */ p(Rt, {
7827
7882
  label: b,
7828
7883
  children: y
7829
7884
  })
@@ -7851,7 +7906,7 @@ var Nr = (e) => e == null ? "" : e.label ?? e.text ?? "", Pr = i(function({ valu
7851
7906
  });
7852
7907
  //#endregion
7853
7908
  //#region src/components/AppShell.jsx
7854
- function Fr({ 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 }) {
7909
+ function Rr({ 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 }) {
7855
7910
  N("AppShell", y);
7856
7911
  let [b, x] = d(!1), [S, C] = d(!1), [w, T] = d(!1), E = u ?? b, D = () => {
7857
7912
  let e = !E;
@@ -7899,7 +7954,7 @@ function Fr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7899
7954
  children: [e.label && /* @__PURE__ */ p("div", {
7900
7955
  className: "app-nav-group-label",
7901
7956
  children: e.label
7902
- }), e.items.map((e) => /* @__PURE__ */ p(Ir, {
7957
+ }), e.items.map((e) => /* @__PURE__ */ p(zr, {
7903
7958
  item: e,
7904
7959
  linkComponent: _,
7905
7960
  onNavigate: () => C(!1)
@@ -7918,7 +7973,7 @@ function Fr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7918
7973
  onClick: D,
7919
7974
  "aria-label": E ? "Expand navigation" : "Collapse navigation",
7920
7975
  "aria-expanded": !E,
7921
- children: /* @__PURE__ */ p(H, {
7976
+ children: /* @__PURE__ */ p(V, {
7922
7977
  name: "chevron-left",
7923
7978
  size: 14
7924
7979
  })
@@ -7936,7 +7991,7 @@ function Fr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7936
7991
  onClick: () => C(!0),
7937
7992
  "aria-label": "Open navigation",
7938
7993
  "aria-expanded": S,
7939
- children: /* @__PURE__ */ p(H, {
7994
+ children: /* @__PURE__ */ p(V, {
7940
7995
  name: "menu",
7941
7996
  size: 18
7942
7997
  })
@@ -7966,14 +8021,14 @@ function Fr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
7966
8021
  ]
7967
8022
  });
7968
8023
  }
7969
- function Ir({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
8024
+ function zr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7970
8025
  let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [s, c] = d(a);
7971
8026
  o(() => {
7972
8027
  a && !s && c(!0);
7973
8028
  }, [a, s]);
7974
8029
  let l = typeof e.label == "string" ? e.label : void 0, u = !r && e.icon && /* @__PURE__ */ p("span", {
7975
8030
  className: "app-nav-icon",
7976
- children: typeof e.icon == "string" ? /* @__PURE__ */ p(H, {
8031
+ children: typeof e.icon == "string" ? /* @__PURE__ */ p(V, {
7977
8032
  name: e.icon,
7978
8033
  size: 22
7979
8034
  }) : e.icon
@@ -7996,7 +8051,7 @@ function Ir({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
7996
8051
  h,
7997
8052
  /* @__PURE__ */ p("span", {
7998
8053
  className: "app-nav-caret",
7999
- children: /* @__PURE__ */ p(H, {
8054
+ children: /* @__PURE__ */ p(V, {
8000
8055
  name: "chevron-right",
8001
8056
  size: 16
8002
8057
  })
@@ -8006,7 +8061,7 @@ function Ir({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
8006
8061
  className: `app-nav-sub${s ? " expanded" : ""}`,
8007
8062
  children: /* @__PURE__ */ p("div", {
8008
8063
  className: "app-nav-sub-inner",
8009
- children: e.children.map((e) => /* @__PURE__ */ p(Ir, {
8064
+ children: e.children.map((e) => /* @__PURE__ */ p(zr, {
8010
8065
  item: e,
8011
8066
  linkComponent: t,
8012
8067
  onNavigate: n,
@@ -8023,7 +8078,7 @@ function Ir({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
8023
8078
  h,
8024
8079
  e.trailingIcon && /* @__PURE__ */ p("span", {
8025
8080
  className: "app-nav-trailing",
8026
- children: typeof e.trailingIcon == "string" ? /* @__PURE__ */ p(H, {
8081
+ children: typeof e.trailingIcon == "string" ? /* @__PURE__ */ p(V, {
8027
8082
  name: e.trailingIcon,
8028
8083
  size: 16
8029
8084
  }) : e.trailingIcon
@@ -8047,7 +8102,7 @@ function Ir({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
8047
8102
  }
8048
8103
  //#endregion
8049
8104
  //#region src/components/AppSidebarMenu.jsx
8050
- var Lr = {
8105
+ var Br = {
8051
8106
  left: "start",
8052
8107
  right: "end",
8053
8108
  start: "start",
@@ -8055,9 +8110,9 @@ var Lr = {
8055
8110
  top: "top",
8056
8111
  bottom: "bottom"
8057
8112
  };
8058
- function Rr({ 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 }) {
8059
- N("AppSidebarMenu", b);
8060
- let { style: x, ...S } = b, w = Lr[n] || "end", T = c || l || x ? {
8113
+ function Vr({ 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 }) {
8114
+ N("AppSidebarMenu", b), U("AppSidebarMenu", "side", n, Object.keys(Br));
8115
+ let { style: x, ...S } = b, w = Br[n] || "end", T = c || l || x ? {
8061
8116
  ...c && { "--asm-width": c },
8062
8117
  ...l && { "--asm-max-width": l },
8063
8118
  ...x
@@ -8081,17 +8136,17 @@ function Rr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
8081
8136
  className: "drawer-title",
8082
8137
  children: [i && /* @__PURE__ */ p("span", {
8083
8138
  className: "drawer-title-ic",
8084
- children: /* @__PURE__ */ p(H, {
8139
+ children: /* @__PURE__ */ p(V, {
8085
8140
  name: i,
8086
8141
  size: 18
8087
8142
  })
8088
8143
  }), r]
8089
- }), h && /* @__PURE__ */ p(W, {
8144
+ }), h && /* @__PURE__ */ p(he, {
8090
8145
  variant: "ghost",
8091
8146
  className: "btn-icon",
8092
8147
  onClick: t,
8093
8148
  "aria-label": "Close",
8094
- children: /* @__PURE__ */ p(H, {
8149
+ children: /* @__PURE__ */ p(V, {
8095
8150
  name: "x",
8096
8151
  size: 16
8097
8152
  })
@@ -8110,14 +8165,14 @@ function Rr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
8110
8165
  }
8111
8166
  //#endregion
8112
8167
  //#region src/components/AppSlider.jsx
8113
- var zr = 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) {
8168
+ var Hr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, label: a, required: c = !1, hint: l, error: u, name: d, startName: f, endName: 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) {
8114
8169
  N("AppSlider", E);
8115
8170
  let O = s(), k = C || d || r && f || O, A = r, { setRef: j, innerRef: M } = Q({
8116
8171
  ref: D,
8117
8172
  value: A ? void 0 : e,
8118
8173
  onChange: i,
8119
- readValue: A ? Ht : void 0,
8120
- writeValue: A ? void 0 : Ut
8174
+ readValue: A ? Gt : void 0,
8175
+ writeValue: A ? void 0 : Kt
8121
8176
  });
8122
8177
  o(() => {
8123
8178
  if (!A) return;
@@ -8171,14 +8226,14 @@ var zr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, la
8171
8226
  })
8172
8227
  ]
8173
8228
  });
8174
- }), Br = {
8229
+ }), Ur = {
8175
8230
  sm: 44,
8176
8231
  md: 56,
8177
8232
  lg: 72
8178
8233
  };
8179
- function Vr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
8180
- N("AppSplash", c);
8181
- let { style: l, ...u } = c, d = typeof a == "number" ? a : Br[a] ?? Br.md, f = i === "ring" ? /* @__PURE__ */ p("span", {
8234
+ function Wr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
8235
+ N("AppSplash", c), U("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(Ur));
8236
+ let { style: l, ...u } = c, d = typeof a == "number" ? a : Ur[a] ?? Ur.md, f = i === "ring" ? /* @__PURE__ */ p("span", {
8182
8237
  className: "splash-ring",
8183
8238
  "aria-hidden": "true"
8184
8239
  }) : i === "dots" ? /* @__PURE__ */ m("span", {
@@ -8225,7 +8280,7 @@ function Vr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
8225
8280
  }
8226
8281
  //#endregion
8227
8282
  //#region src/components/AppStatusBadge.jsx
8228
- function Hr({ label: e, tone: t = "neutral", className: n = "", ...r }) {
8283
+ function Gr({ label: e, tone: t = "neutral", className: n = "", ...r }) {
8229
8284
  return N("AppStatusBadge", r), e == null || e === "" ? "—" : /* @__PURE__ */ p("span", {
8230
8285
  className: `status-label ${t}${n ? ` ${n}` : ""}`,
8231
8286
  ...r,
@@ -8234,7 +8289,7 @@ function Hr({ label: e, tone: t = "neutral", className: n = "", ...r }) {
8234
8289
  }
8235
8290
  //#endregion
8236
8291
  //#region src/components/AppStepper.jsx
8237
- function Ur({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
8292
+ function Kr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
8238
8293
  N("AppStepper", c);
8239
8294
  let l = t === "journey";
8240
8295
  return /* @__PURE__ */ p("nav", {
@@ -8247,14 +8302,14 @@ function Ur({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
8247
8302
  "aria-label": a,
8248
8303
  ...c,
8249
8304
  children: e.map((t, n) => {
8250
- let a = t.status || Wr(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
8251
- c = a === "done" ? /* @__PURE__ */ p(H, {
8305
+ let a = t.status || qr(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
8306
+ c = a === "done" ? /* @__PURE__ */ p(V, {
8252
8307
  name: "check",
8253
8308
  size: 14
8254
- }) : a === "error" ? /* @__PURE__ */ p(H, {
8309
+ }) : a === "error" ? /* @__PURE__ */ p(V, {
8255
8310
  name: "alert-triangle",
8256
8311
  size: 14
8257
- }) : t.icon ? /* @__PURE__ */ p(H, {
8312
+ }) : t.icon ? /* @__PURE__ */ p(V, {
8258
8313
  name: t.icon,
8259
8314
  size: 14
8260
8315
  }) : n + 1;
@@ -8311,13 +8366,13 @@ function Ur({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
8311
8366
  })
8312
8367
  });
8313
8368
  }
8314
- function Wr(e, t) {
8369
+ function qr(e, t) {
8315
8370
  return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
8316
8371
  }
8317
8372
  //#endregion
8318
8373
  //#region src/components/AppSwitch.jsx
8319
- var Gr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
8320
- return N("AppSwitch", s), /* @__PURE__ */ p(ln, {
8374
+ var Jr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
8375
+ return N("AppSwitch", s), /* @__PURE__ */ p(fn, {
8321
8376
  ref: c,
8322
8377
  label: e,
8323
8378
  id: t,
@@ -8332,14 +8387,14 @@ var Gr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "p
8332
8387
  });
8333
8388
  //#endregion
8334
8389
  //#region src/components/AppTableEmptyState.jsx
8335
- function Kr({ icon: e, title: t, text: n, action: r, ...i }) {
8390
+ function Yr({ icon: e, title: t, text: n, action: r, ...i }) {
8336
8391
  return N("AppTableEmptyState", i), /* @__PURE__ */ m("div", {
8337
8392
  className: "tbl-empty",
8338
8393
  ...i,
8339
8394
  children: [
8340
8395
  /* @__PURE__ */ p("span", {
8341
8396
  className: "tbl-empty-icon",
8342
- children: U(e, { size: 24 })
8397
+ children: H(e, { size: 24 })
8343
8398
  }),
8344
8399
  /* @__PURE__ */ p("div", {
8345
8400
  className: "tbl-empty-title",
@@ -8358,13 +8413,13 @@ function Kr({ icon: e, title: t, text: n, action: r, ...i }) {
8358
8413
  }
8359
8414
  //#endregion
8360
8415
  //#region src/components/AppTooltip.jsx
8361
- var qr = {
8416
+ var Xr = {
8362
8417
  start: "left",
8363
8418
  end: "right",
8364
8419
  top: "top",
8365
8420
  bottom: "bottom"
8366
8421
  };
8367
- function Jr({ content: e, children: t, placement: r = "top", tone: i = "default", size: a = "md", className: o = "", ...c }) {
8422
+ function Zr({ content: e, children: t, placement: r = "top", tone: i = "default", size: a = "md", className: o = "", ...c }) {
8368
8423
  N("AppTooltip", c);
8369
8424
  let l = /* @__PURE__ */ p(E, {
8370
8425
  id: s(),
@@ -8378,14 +8433,14 @@ function Jr({ content: e, children: t, placement: r = "top", tone: i = "default"
8378
8433
  });
8379
8434
  return /* @__PURE__ */ p(w, {
8380
8435
  trigger: ["hover", "focus"],
8381
- placement: qr[r] || r,
8436
+ placement: Xr[r] || r,
8382
8437
  overlay: l,
8383
8438
  children: n(t, c)
8384
8439
  });
8385
8440
  }
8386
8441
  //#endregion
8387
8442
  //#region src/components/AppTabs.jsx
8388
- function Yr({ 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 }) {
8443
+ function Qr({ 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 }) {
8389
8444
  N("AppTabs", v);
8390
8445
  let y = u(null), b = u(null), x = i === "vertical", [S, C] = d(t);
8391
8446
  o(() => {
@@ -8481,7 +8536,7 @@ function Yr({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
8481
8536
  className: "app-tab-img",
8482
8537
  src: e.image,
8483
8538
  alt: e.imageAlt ?? ""
8484
- }) : U(e.icon, {
8539
+ }) : H(e.icon, {
8485
8540
  size: 16,
8486
8541
  className: "app-tab-icon"
8487
8542
  }),
@@ -8492,7 +8547,7 @@ function Yr({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
8492
8547
  })
8493
8548
  ]
8494
8549
  }, e.key);
8495
- return e.tooltip ? /* @__PURE__ */ p(Jr, {
8550
+ return e.tooltip ? /* @__PURE__ */ p(Zr, {
8496
8551
  content: e.tooltip,
8497
8552
  children: i
8498
8553
  }, e.key) : i;
@@ -8512,7 +8567,7 @@ function Yr({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
8512
8567
  "aria-label": "Scroll tabs backward",
8513
8568
  tabIndex: -1,
8514
8569
  onClick: () => F(-1),
8515
- children: /* @__PURE__ */ p(H, {
8570
+ children: /* @__PURE__ */ p(V, {
8516
8571
  name: "chevron-left",
8517
8572
  size: 16
8518
8573
  })
@@ -8524,7 +8579,7 @@ function Yr({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
8524
8579
  "aria-label": "Scroll tabs forward",
8525
8580
  tabIndex: -1,
8526
8581
  onClick: () => F(1),
8527
- children: /* @__PURE__ */ p(H, {
8582
+ children: /* @__PURE__ */ p(V, {
8528
8583
  name: "chevron-right",
8529
8584
  size: 16
8530
8585
  })
@@ -8534,14 +8589,14 @@ function Yr({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
8534
8589
  }
8535
8590
  //#endregion
8536
8591
  //#region src/components/AppTagInput.jsx
8537
- var Xr = 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) {
8592
+ var $r = 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) {
8538
8593
  N("AppTagInput", x);
8539
8594
  let C = s(), w = h || r || C, { setRef: T } = Q({
8540
8595
  ref: S,
8541
8596
  value: e,
8542
8597
  onChange: t,
8543
- readValue: Bt,
8544
- writeValue: Vt
8598
+ readValue: Ut,
8599
+ writeValue: Wt
8545
8600
  });
8546
8601
  return /* @__PURE__ */ m("div", {
8547
8602
  className: `field${v ? ` ${v}` : ""}`,
@@ -8552,7 +8607,7 @@ var Xr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8552
8607
  children: [
8553
8608
  i,
8554
8609
  c && /* @__PURE__ */ p(Z, {}),
8555
- y && /* @__PURE__ */ p(Ft, {
8610
+ y && /* @__PURE__ */ p(Rt, {
8556
8611
  label: b,
8557
8612
  children: y
8558
8613
  })
@@ -8585,7 +8640,7 @@ var Xr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8585
8640
  }) : null
8586
8641
  ]
8587
8642
  });
8588
- }), Zr = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: o = "More information", id: l, name: d, rows: f = 4, autoGrow: h = !1, className: g = "", fieldClassName: _ = "", ...v }, y) {
8643
+ }), ei = 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) {
8589
8644
  N("AppTextarea", v);
8590
8645
  let b = s(), S = l || b, C = [
8591
8646
  "textarea",
@@ -8617,7 +8672,7 @@ var Xr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8617
8672
  children: [
8618
8673
  e,
8619
8674
  t && /* @__PURE__ */ p(Z, {}),
8620
- i && /* @__PURE__ */ p(Ft, {
8675
+ i && /* @__PURE__ */ p(Rt, {
8621
8676
  label: o,
8622
8677
  children: i
8623
8678
  })
@@ -8647,7 +8702,7 @@ var Xr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8647
8702
  }) : null
8648
8703
  ]
8649
8704
  });
8650
- }), Qr = {
8705
+ }), ti = {
8651
8706
  done: "check",
8652
8707
  current: "clock",
8653
8708
  "on-hold": "lock",
@@ -8656,7 +8711,7 @@ var Xr = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
8656
8711
  skipped: "arrow-right",
8657
8712
  upcoming: null
8658
8713
  };
8659
- function $r({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
8714
+ function ni({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
8660
8715
  N("AppTimeline", o);
8661
8716
  let s = t === "progress", c = `timeline${s ? " timeline--progress" : ""}${n === "horizontal" ? " timeline--horizontal" : ""}${i ? ` ${i}` : ""}`, l = typeof r == "number" && r > 0 ? r : void 0, u = l ? Math.round(l * .54) : s ? 13 : 12;
8662
8717
  return /* @__PURE__ */ p("ol", {
@@ -8667,12 +8722,12 @@ function $r({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
8667
8722
  } : a,
8668
8723
  ...o,
8669
8724
  children: e.map((e, t) => {
8670
- let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? Qr[n] : void 0) : e.icon || "circle";
8725
+ let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? ti[n] : void 0) : e.icon || "circle";
8671
8726
  return /* @__PURE__ */ m("li", {
8672
8727
  className: `timeline-item${r}${i}`,
8673
8728
  children: [/* @__PURE__ */ p("span", {
8674
8729
  className: "timeline-dot",
8675
- children: a ? /* @__PURE__ */ p(H, {
8730
+ children: a ? /* @__PURE__ */ p(V, {
8676
8731
  name: a,
8677
8732
  size: u
8678
8733
  }) : null
@@ -8725,7 +8780,7 @@ function $r({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
8725
8780
  }
8726
8781
  //#endregion
8727
8782
  //#region src/components/AppTimePicker.jsx
8728
- var ei = 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) {
8783
+ var ri = 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) {
8729
8784
  N("AppTimePicker", b);
8730
8785
  let S = s(), C = _ || o || S, { setRef: w } = Q({
8731
8786
  ref: x,
@@ -8770,32 +8825,32 @@ var ei = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
8770
8825
  })
8771
8826
  ]
8772
8827
  });
8773
- }), ti = 6, $ = [], ni = /* @__PURE__ */ new Set(), ri = /* @__PURE__ */ new Map(), ii = 0;
8774
- function ai() {
8775
- for (let e of ni) e($);
8828
+ }), ii = 6, $ = [], ai = /* @__PURE__ */ new Set(), oi = /* @__PURE__ */ new Map(), si = 0;
8829
+ function ci() {
8830
+ for (let e of ai) e($);
8776
8831
  }
8777
- function oi(e) {
8778
- let t = ri.get(e);
8779
- t !== void 0 && (clearTimeout(t), ri.delete(e));
8832
+ function li(e) {
8833
+ let t = oi.get(e);
8834
+ t !== void 0 && (clearTimeout(t), oi.delete(e));
8780
8835
  }
8781
- function si(e) {
8782
- if (e.length <= ti) return e;
8836
+ function ui(e) {
8837
+ if (e.length <= ii) return e;
8783
8838
  let t = [...e];
8784
- for (; t.length > ti;) {
8839
+ for (; t.length > ii;) {
8785
8840
  let e = t.findIndex((e) => e.duration !== 0);
8786
8841
  t.splice(e === -1 ? 0 : e, 1);
8787
8842
  }
8788
8843
  return t;
8789
8844
  }
8790
- function ci(e) {
8791
- return ni.add(e), e($), () => ni.delete(e);
8845
+ function di(e) {
8846
+ return ai.add(e), e($), () => ai.delete(e);
8792
8847
  }
8793
- function li(e, t, n = {}) {
8848
+ function fi(e, t, n = {}) {
8794
8849
  let r = n.id, i = r || typeof e != "string" ? void 0 : `${t}:${e}`;
8795
8850
  if (r) {
8796
8851
  let i = $.find((e) => e.externalId === r);
8797
8852
  if (i) {
8798
- oi(i.id);
8853
+ li(i.id);
8799
8854
  let r = n.duration === void 0 ? 5e3 : n.duration;
8800
8855
  $ = $.map((a) => a.id === i.id ? {
8801
8856
  ...a,
@@ -8808,12 +8863,12 @@ function li(e, t, n = {}) {
8808
8863
  shape: n.shape,
8809
8864
  surface: n.surface,
8810
8865
  progress: n.progress
8811
- } : a), ai(), r > 0 && ri.set(i.id, setTimeout(() => ui(i.id), r));
8866
+ } : a), ci(), r > 0 && oi.set(i.id, setTimeout(() => pi(i.id), r));
8812
8867
  return;
8813
8868
  }
8814
8869
  } else if (i && $.some((e) => e.key === i)) return;
8815
- let a = ++ii, o = n.duration === void 0 ? 5e3 : n.duration;
8816
- $ = si([...$, {
8870
+ let a = ++si, o = n.duration === void 0 ? 5e3 : n.duration;
8871
+ $ = ui([...$, {
8817
8872
  id: a,
8818
8873
  externalId: r,
8819
8874
  message: e,
@@ -8826,19 +8881,19 @@ function li(e, t, n = {}) {
8826
8881
  surface: n.surface,
8827
8882
  progress: n.progress,
8828
8883
  key: i
8829
- }]), ai(), o > 0 && ri.set(a, setTimeout(() => ui(a), o));
8884
+ }]), ci(), o > 0 && oi.set(a, setTimeout(() => pi(a), o));
8830
8885
  }
8831
- function ui(e) {
8832
- oi(e);
8886
+ function pi(e) {
8887
+ li(e);
8833
8888
  let t = $.filter((t) => t.id !== e);
8834
- t.length !== $.length && ($ = t, ai());
8889
+ t.length !== $.length && ($ = t, ci());
8835
8890
  }
8836
- function di() {
8837
- $.length !== 0 && ($ = [], ai());
8891
+ function mi() {
8892
+ $.length !== 0 && ($ = [], ci());
8838
8893
  }
8839
8894
  //#endregion
8840
8895
  //#region src/components/AppToast.jsx
8841
- var fi = {
8896
+ var hi = {
8842
8897
  success: {
8843
8898
  icon: "check-circle",
8844
8899
  assertive: !1
@@ -8855,7 +8910,7 @@ var fi = {
8855
8910
  icon: "alert-circle",
8856
8911
  assertive: !0
8857
8912
  }
8858
- }, pi = {
8913
+ }, gi = {
8859
8914
  "top-start": "top-0 start-0",
8860
8915
  "top-center": "top-0 start-50 translate-middle-x",
8861
8916
  "top-end": "top-0 end-0",
@@ -8863,31 +8918,33 @@ var fi = {
8863
8918
  "bottom-start": "bottom-0 start-0",
8864
8919
  "bottom-center": "bottom-0 start-50 translate-middle-x",
8865
8920
  "bottom-end": "bottom-0 end-0"
8866
- }, mi = 64, hi = /* @__PURE__ */ new Set([
8921
+ }, _i = 64, vi = /* @__PURE__ */ new Set([
8867
8922
  "rise",
8868
8923
  "organic",
8869
8924
  "jelly",
8870
8925
  "spring"
8871
- ]), gi = /* @__PURE__ */ new Set([
8926
+ ]), yi = /* @__PURE__ */ new Set([
8872
8927
  "rounded",
8873
8928
  "pill",
8874
8929
  "sharp"
8875
- ]), _i = /* @__PURE__ */ new Set(["auto", "inverse"]);
8876
- function vi({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto" }) {
8877
- let [a, s] = d([]);
8878
- o(() => ci(s), []);
8879
- let c = Math.max(0, a.length - t), l = c ? a.slice(c) : a;
8930
+ ]), bi = /* @__PURE__ */ new Set(["auto", "inverse"]);
8931
+ function xi({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...s }) {
8932
+ N("AppToast", s), U("AppToast", "position", e, Object.keys(gi)), U("AppToast", "animation", n, vi), U("AppToast", "shape", r, yi), U("AppToast", "surface", i, bi);
8933
+ let [c, l] = d([]);
8934
+ o(() => di(l), []);
8935
+ let u = Math.max(0, c.length - t), f = u ? c.slice(u) : c, h = gi[e] ?? gi["bottom-end"];
8880
8936
  return /* @__PURE__ */ m("div", {
8881
- className: `wui-toast-container toast-container position-fixed ${pi[e] ?? pi["bottom-end"]} p-3`,
8882
- children: [c > 0 && /* @__PURE__ */ m("div", {
8937
+ ...s,
8938
+ className: `wui-toast-container toast-container position-fixed ${h} p-3 ${a}`.trim(),
8939
+ children: [u > 0 && /* @__PURE__ */ m("div", {
8883
8940
  className: "wui-toast-more",
8884
8941
  "aria-hidden": "true",
8885
8942
  children: [
8886
8943
  "+",
8887
- c,
8944
+ u,
8888
8945
  " more"
8889
8946
  ]
8890
- }), l.map((e) => /* @__PURE__ */ p(yi, {
8947
+ }), f.map((e) => /* @__PURE__ */ p(Si, {
8891
8948
  toast: e,
8892
8949
  defaultAnimation: n,
8893
8950
  defaultShape: r,
@@ -8895,8 +8952,8 @@ function vi({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
8895
8952
  }, e.id))]
8896
8953
  });
8897
8954
  }
8898
- function yi({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
8899
- let i = fi[e.variant] ?? fi.success, a = hi.has(e.animation) ? e.animation : t, o = gi.has(e.shape) ? e.shape : n, s = _i.has(e.surface) ? e.surface : r, c = (a !== "rise" && hi.has(a) ? ` wui-toast--anim-${a}` : "") + (o !== "rounded" && gi.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 = () => ui(e.id), b = (e) => {
8955
+ function Si({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
8956
+ let i = hi[e.variant] ?? hi.success, a = vi.has(e.animation) ? e.animation : t, o = yi.has(e.shape) ? e.shape : n, s = bi.has(e.surface) ? e.surface : r, c = (a !== "rise" && vi.has(a) ? ` wui-toast--anim-${a}` : "") + (o !== "rounded" && yi.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 = () => pi(e.id), b = (e) => {
8900
8957
  e.button !== 0 || e.target.closest("button") || (v.current = e.clientX, _(!0), e.currentTarget.setPointerCapture?.(e.pointerId));
8901
8958
  }, x = (e) => {
8902
8959
  v.current !== null && h(e.clientX - v.current);
@@ -8905,7 +8962,7 @@ function yi({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
8905
8962
  }, C = (e) => {
8906
8963
  if (v.current === null) return;
8907
8964
  let t = e.clientX - v.current;
8908
- if (Math.abs(t) > mi) {
8965
+ if (Math.abs(t) > _i) {
8909
8966
  y();
8910
8967
  return;
8911
8968
  }
@@ -8928,7 +8985,7 @@ function yi({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
8928
8985
  /* @__PURE__ */ p("span", {
8929
8986
  className: "wui-toast-icon",
8930
8987
  "aria-hidden": "true",
8931
- children: /* @__PURE__ */ p(H, {
8988
+ children: /* @__PURE__ */ p(V, {
8932
8989
  name: i.icon,
8933
8990
  size: 20
8934
8991
  })
@@ -8988,7 +9045,7 @@ function yi({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
8988
9045
  }
8989
9046
  //#endregion
8990
9047
  //#region src/components/AppToolbar.jsx
8991
- function bi({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
9048
+ function Ci({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
8992
9049
  N("AppToolbar", u);
8993
9050
  let f = s(), h = o || f, [g, _] = d(r), v = n === void 0 ? g : n;
8994
9051
  return /* @__PURE__ */ m("div", {
@@ -9018,7 +9075,7 @@ function bi({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
9018
9075
  }),
9019
9076
  /* @__PURE__ */ p("span", {
9020
9077
  className: "toolbar-item-icon",
9021
- children: U(e.icon, { size: 16 })
9078
+ children: H(e.icon, { size: 16 })
9022
9079
  }),
9023
9080
  /* @__PURE__ */ p("span", {
9024
9081
  className: "toolbar-item-label",
@@ -9038,7 +9095,7 @@ function bi({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
9038
9095
  onClick: e.onClick,
9039
9096
  children: /* @__PURE__ */ p("span", {
9040
9097
  className: "toolbar-item-icon",
9041
- children: U(e.icon, { size: 16 })
9098
+ children: H(e.icon, { size: 16 })
9042
9099
  })
9043
9100
  }, e.key ?? `${e.title}-${t}`))
9044
9101
  ]
@@ -9046,7 +9103,7 @@ function bi({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
9046
9103
  }
9047
9104
  //#endregion
9048
9105
  //#region src/components/AppWizard.jsx
9049
- var xi = 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) {
9106
+ var wi = 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) {
9050
9107
  N("AppWizard", E);
9051
9108
  let O = u(null), k = (e) => {
9052
9109
  O.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
@@ -9101,7 +9158,7 @@ var xi = i(function({ steps: t = [], children: n, active: r, defaultActive: i =
9101
9158
  });
9102
9159
  //#endregion
9103
9160
  //#region src/components/AppWorkspaceSwitcher.jsx
9104
- function Si({ 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 }) {
9161
+ function Ti({ 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 }) {
9105
9162
  let { onToggle: x, ...S } = y;
9106
9163
  N("AppWorkspaceSwitcher", S);
9107
9164
  let [C, w] = d(""), [T, E] = d(!1), D = u(null), O = e.find((e) => e.id === t) ?? e[0], k = l(() => {
@@ -9129,7 +9186,7 @@ function Si({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9129
9186
  },
9130
9187
  ...S,
9131
9188
  children: [/* @__PURE__ */ p(b.Toggle, {
9132
- as: Ei,
9189
+ as: ki,
9133
9190
  compact: g,
9134
9191
  tenant: O,
9135
9192
  "aria-label": j
@@ -9143,7 +9200,7 @@ function Si({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9143
9200
  }) : null,
9144
9201
  s ? /* @__PURE__ */ m("div", {
9145
9202
  className: "workspace-switcher-search",
9146
- children: [/* @__PURE__ */ p(H, {
9203
+ children: [/* @__PURE__ */ p(V, {
9147
9204
  name: "search",
9148
9205
  size: 14
9149
9206
  }), /* @__PURE__ */ p("input", {
@@ -9164,7 +9221,7 @@ function Si({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9164
9221
  className: `workspace-switcher-option${e.id === O?.id ? " is-active" : ""}`,
9165
9222
  onClick: () => n?.(e),
9166
9223
  children: [
9167
- /* @__PURE__ */ p(wi, { tenant: e }),
9224
+ /* @__PURE__ */ p(Di, { tenant: e }),
9168
9225
  /* @__PURE__ */ p("span", {
9169
9226
  className: "workspace-switcher-option-name",
9170
9227
  children: e.name
@@ -9173,7 +9230,7 @@ function Si({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9173
9230
  className: "workspace-switcher-badge",
9174
9231
  children: e.badge
9175
9232
  }) : null,
9176
- e.id === O?.id ? /* @__PURE__ */ p(H, {
9233
+ e.id === O?.id ? /* @__PURE__ */ p(V, {
9177
9234
  name: "check",
9178
9235
  size: 16,
9179
9236
  className: "workspace-switcher-tick"
@@ -9189,24 +9246,24 @@ function Si({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
9189
9246
  type: "button",
9190
9247
  className: "workspace-switcher-create",
9191
9248
  onClick: () => c?.(),
9192
- children: [/* @__PURE__ */ p(H, {
9249
+ children: [/* @__PURE__ */ p(V, {
9193
9250
  name: "plus",
9194
9251
  size: 16
9195
9252
  }), h]
9196
9253
  }) : null,
9197
9254
  i ? /* @__PURE__ */ p("div", {
9198
9255
  className: "workspace-switcher-footer",
9199
- children: Ti(i, a)
9256
+ children: Oi(i, a)
9200
9257
  }) : null
9201
9258
  ]
9202
9259
  })]
9203
9260
  });
9204
9261
  }
9205
- function Ci(e) {
9262
+ function Ei(e) {
9206
9263
  let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
9207
9264
  return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
9208
9265
  }
9209
- function wi({ tenant: e }) {
9266
+ function Di({ tenant: e }) {
9210
9267
  return e?.logoUrl ? /* @__PURE__ */ p("img", {
9211
9268
  className: "workspace-switcher-mark",
9212
9269
  src: e.logoUrl,
@@ -9214,22 +9271,22 @@ function wi({ tenant: e }) {
9214
9271
  loading: "lazy"
9215
9272
  }) : /* @__PURE__ */ p("span", {
9216
9273
  className: "workspace-switcher-mark",
9217
- children: Ci(e?.name)
9274
+ children: Ei(e?.name)
9218
9275
  });
9219
9276
  }
9220
- function Ti(e, t) {
9277
+ function Oi(e, t) {
9221
9278
  if (typeof e != "object" || !e || !("label" in e)) return e;
9222
9279
  let { label: n, icon: r, href: i } = e;
9223
9280
  return /* @__PURE__ */ m(i ? t ?? "a" : "button", {
9224
9281
  className: "workspace-switcher-footer-action",
9225
9282
  ...i ? t ? { to: i } : { href: i } : { type: "button" },
9226
- children: [r ? /* @__PURE__ */ p(H, {
9283
+ children: [r ? /* @__PURE__ */ p(V, {
9227
9284
  name: r,
9228
9285
  size: 16
9229
9286
  }) : null, n]
9230
9287
  });
9231
9288
  }
9232
- var Ei = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
9289
+ var ki = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
9233
9290
  return /* @__PURE__ */ m("button", {
9234
9291
  ref: a,
9235
9292
  type: "button",
@@ -9237,10 +9294,10 @@ var Ei = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
9237
9294
  "aria-haspopup": "true",
9238
9295
  "aria-label": n,
9239
9296
  ...i,
9240
- children: [/* @__PURE__ */ p(wi, { tenant: t }), e ? null : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
9297
+ children: [/* @__PURE__ */ p(Di, { tenant: t }), e ? null : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
9241
9298
  className: "workspace-switcher-trigger-name",
9242
9299
  children: t?.name
9243
- }), /* @__PURE__ */ p(H, {
9300
+ }), /* @__PURE__ */ p(V, {
9244
9301
  name: "chevrons-up-down",
9245
9302
  size: 16,
9246
9303
  className: "workspace-switcher-chevron"
@@ -9249,36 +9306,36 @@ var Ei = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
9249
9306
  });
9250
9307
  //#endregion
9251
9308
  //#region src/components/toast.js
9252
- function Di() {
9253
- di();
9309
+ function Ai() {
9310
+ mi();
9254
9311
  }
9255
- var Oi = /* @__PURE__ */ new Set([
9312
+ var ji = /* @__PURE__ */ new Set([
9256
9313
  "success",
9257
9314
  "info",
9258
9315
  "warning",
9259
9316
  "error"
9260
9317
  ]);
9261
- function ki(e, t = "info") {
9318
+ function Mi(e, t = "info") {
9262
9319
  let n = "info", r = {};
9263
- typeof t == "string" ? n = Oi.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = Oi.has(r.variant) ? r.variant : "info"), li(e, n, r);
9320
+ typeof t == "string" ? n = ji.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = ji.has(r.variant) ? r.variant : "info"), fi(e, n, r);
9264
9321
  }
9265
- function Ai(e, t = {}) {
9266
- li(e, "error", t);
9322
+ function Ni(e, t = {}) {
9323
+ fi(e, "error", t);
9267
9324
  }
9268
- ki.promise = (e, t, n = {}) => {
9325
+ Mi.promise = (e, t, n = {}) => {
9269
9326
  let r = n.id || `promise-${Date.now()}-${Math.random()}`;
9270
- return ki(t.loading || "Loading...", {
9327
+ return Mi(t.loading || "Loading...", {
9271
9328
  ...n,
9272
9329
  variant: "info",
9273
9330
  id: r,
9274
9331
  duration: 0
9275
- }), e.then((e) => (ki((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
9332
+ }), e.then((e) => (Mi((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
9276
9333
  ...n,
9277
9334
  variant: "success",
9278
9335
  id: r,
9279
9336
  duration: n.duration === void 0 ? 5e3 : n.duration
9280
9337
  }), e)).catch((e) => {
9281
- throw ki((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
9338
+ throw Mi((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
9282
9339
  ...n,
9283
9340
  variant: "error",
9284
9341
  id: r,
@@ -9288,7 +9345,7 @@ ki.promise = (e, t, n = {}) => {
9288
9345
  };
9289
9346
  //#endregion
9290
9347
  //#region src/lib/usePagination.js
9291
- function ji(e, t = 10) {
9348
+ function Pi(e, t = 10) {
9292
9349
  let [n, r] = d(1), [i, a] = d(t), s = e.length, c = Math.max(1, Math.ceil(s / i));
9293
9350
  o(() => {
9294
9351
  n > c && r(c);
@@ -9314,4 +9371,4 @@ function ji(e, t = 10) {
9314
9371
  };
9315
9372
  }
9316
9373
  //#endregion
9317
- export { ae as AppAccordion, oe as AppActionIcon, le as AppAlert, he as AppAsyncBlock, Wt as AppAutocomplete, Xt as AppAvatar, $t as AppAvatarGroup, en as AppBadge, nn as AppBanner, rn as AppBreadcrumbs, W as AppButton, on as AppCallout, cn as AppCard, un as AppCheckbox, dn as AppChip, fn as AppChoiceCard, pn as AppChoiceChip, mn as AppColorField, hn as AppCompareTable, wn as AppConfirmDialog, En as AppCopyButton, In as AppDataTable, Ln as AppDatePicker, Rn as AppDateRangePicker, Bn as AppDescriptions, Un as AppDropdown, pe as AppEmptyState, Xn as AppFileAttachment, Qn as AppFilePicker, $n as AppFloatingDock, er as AppFormActions, tr as AppFormRow, nr as AppFormSection, H as AppIcon, rr as AppInfoList, Ft as AppInfoTip, gn as AppInput, cr as AppKpiTile, ur as AppLogoPicker, mr as AppMeter, xn as AppModal, hr as AppMultiSelect, gr as AppNumberInput, _r as AppOtpInput, vr as AppPageHeader, yr as AppPagination, br as AppPhoneNumberInput, Pt as AppPopover, xr as AppPricingCard, wr as AppProgress, Tr as AppRadio, Er as AppRepeater, Z as AppRequiredMark, Dr as AppResourceCard, kr as AppResult, Ar as AppScrollbar, jr as AppSearch, Mr as AppSegmented, Pr as AppSelect, jn as AppSelectMini, Fr as AppShell, Rr as AppSidebarMenu, Dn as AppSkeleton, On as AppSkeletonRows, zr as AppSlider, me as AppSpinner, Vr as AppSplash, Hr as AppStatusBadge, Ur as AppStepper, Gr as AppSwitch, Kr as AppTableEmptyState, Nn as AppTablePagination, Yr as AppTabs, Xr as AppTagInput, Zr as AppTextarea, ei as AppTimePicker, $r as AppTimeline, vi as AppToast, bi as AppToolbar, Jr as AppTooltip, xi as AppWizard, Si as AppWorkspaceSwitcher, Cn as MODAL_ICONS, Di as dismissAll, Ai as errorToast, ne as iconNames, ie as registerIcons, ki as toast, ji as usePagination };
9374
+ export { oe as AppAccordion, se as AppActionIcon, ue as AppAlert, ve as AppAsyncBlock, qt as AppAutocomplete, $t as AppAvatar, nn as AppAvatarGroup, rn as AppBadge, on as AppBanner, sn as AppBreadcrumbs, he as AppButton, ln as AppCallout, dn as AppCard, pn as AppCheckbox, mn as AppChip, hn as AppChoiceCard, gn as AppChoiceChip, _n as AppColorField, vn as AppCompareTable, Dn as AppConfirmDialog, kn as AppCopyButton, zn as AppDataTable, Bn as AppDatePicker, Vn as AppDateRangePicker, Un as AppDescriptions, Kn as AppDropdown, ge as AppEmptyState, $n as AppFileAttachment, tr as AppFilePicker, nr as AppFloatingDock, rr as AppFormActions, ir as AppFormRow, ar as AppFormSection, V as AppIcon, or as AppInfoList, Rt as AppInfoTip, yn as AppInput, dr as AppKpiTile, pr as AppLogoPicker, _r as AppMeter, wn as AppModal, vr as AppMultiSelect, yr as AppNumberInput, br as AppOtpInput, xr as AppPageHeader, Sr as AppPagination, Cr as AppPhoneNumberInput, Lt as AppPopover, wr as AppPricingCard, Dr as AppProgress, Or as AppRadio, kr as AppRepeater, Z as AppRequiredMark, Ar as AppResourceCard, Mr as AppResult, Nr as AppScrollbar, Pr as AppSearch, Fr as AppSegmented, Lr as AppSelect, Pn as AppSelectMini, Rr as AppShell, Vr as AppSidebarMenu, An as AppSkeleton, jn as AppSkeletonRows, Hr as AppSlider, _e as AppSpinner, Wr as AppSplash, Gr as AppStatusBadge, Kr as AppStepper, Jr as AppSwitch, Yr as AppTableEmptyState, In as AppTablePagination, Qr as AppTabs, $r as AppTagInput, ei as AppTextarea, ri as AppTimePicker, ni as AppTimeline, xi as AppToast, Ci as AppToolbar, Zr as AppTooltip, wi as AppWizard, Ti as AppWorkspaceSwitcher, En as MODAL_ICONS, Ai as dismissAll, Ni as errorToast, re as iconNames, ae as registerIcons, Mi as toast, Pi as usePagination };