@webority/ui-react 0.7.4 → 0.7.5

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
@@ -1,24 +1,24 @@
1
1
  import { Fragment as e, cloneElement as t, createElement as n, forwardRef as r, useCallback as i, useEffect as a, useId as o, useLayoutEffect as s, useMemo as c, useRef as l, useState as u } from "react";
2
2
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
3
- import { Alert as m, Badge as h, Button as g, Card as _, Dropdown as v, Form as y, Modal as b, Offcanvas as x, OverlayTrigger as S, Popover as C, Toast as w, ToastContainer as T } from "react-bootstrap";
3
+ import { Alert as m, Badge as h, Breadcrumb as g, Button as _, Card as v, Dropdown as y, Form as b, Modal as x, Offcanvas as S, OverlayTrigger as C, Popover as w, Toast as T, ToastContainer as E } from "react-bootstrap";
4
4
  //#region src/components/warnUnknownProps.js
5
- var E = /* @__PURE__ */ new Set(/* @__PURE__ */ "id.title.role.style.className.class.tabIndex.lang.dir.hidden.slot.part.draggable.spellCheck.translate.inert.popover.name.type.value.defaultValue.checked.defaultChecked.placeholder.disabled.readOnly.required.autoFocus.autoComplete.form.formAction.formMethod.formNoValidate.formTarget.min.max.step.minLength.maxLength.pattern.multiple.accept.capture.rows.cols.wrap.list.htmlFor.inputMode.enterKeyHint.href.target.rel.download.ping.referrerPolicy.src.srcSet.alt.width.height.loading.decoding.sizes.crossOrigin.useMap.colSpan.rowSpan.headers.scope.span.key.ref.children.dangerouslySetInnerHTML.suppressHydrationWarning".split(".")), D = () => {
5
+ var D = /* @__PURE__ */ new Set(/* @__PURE__ */ "id.title.role.style.className.class.tabIndex.lang.dir.hidden.slot.part.draggable.spellCheck.translate.inert.popover.name.type.value.defaultValue.checked.defaultChecked.placeholder.disabled.readOnly.required.autoFocus.autoComplete.form.formAction.formMethod.formNoValidate.formTarget.min.max.step.minLength.maxLength.pattern.multiple.accept.capture.rows.cols.wrap.list.htmlFor.inputMode.enterKeyHint.href.target.rel.download.ping.referrerPolicy.src.srcSet.alt.width.height.loading.decoding.sizes.crossOrigin.useMap.colSpan.rowSpan.headers.scope.span.key.ref.children.dangerouslySetInnerHTML.suppressHydrationWarning".split(".")), O = () => {
6
6
  try {
7
7
  return process.env.NODE_ENV !== "production";
8
8
  } catch {
9
9
  return !0;
10
10
  }
11
- }, O = (e) => e.startsWith("data-") || e.startsWith("aria-") || /^on[A-Z]/.test(e), k = /* @__PURE__ */ new Set();
12
- function A(e, t) {
13
- if (!(!D() || !t) && !("as" in t)) for (let n of Object.keys(t)) {
14
- if (O(n) || E.has(n)) continue;
11
+ }, k = (e) => e.startsWith("data-") || e.startsWith("aria-") || /^on[A-Z]/.test(e), A = /* @__PURE__ */ new Set();
12
+ function j(e, t) {
13
+ if (!(!O() || !t) && !("as" in t)) for (let n of Object.keys(t)) {
14
+ if (k(n) || D.has(n)) continue;
15
15
  let t = `${e}.${n}`;
16
- k.has(t) || (k.add(t), console.warn(`[@webority/ui-react] <${e}> received an unknown prop "${n}". It is not part of the component's API and is not a valid HTML attribute, so it will either be dropped or land on the DOM — check the prop name against the component catalogue at https://ui.webority.dev.`));
16
+ A.has(t) || (A.add(t), console.warn(`[@webority/ui-react] <${e}> received an unknown prop "${n}". It is not part of the component's API and is not a valid HTML attribute, so it will either be dropped or land on the DOM — check the prop name against the component catalogue at https://ui.webority.dev.`));
17
17
  }
18
18
  }
19
19
  //#endregion
20
20
  //#region src/components/Icon.jsx
21
- var j = {
21
+ var M = {
22
22
  activity: "activity",
23
23
  "alert-circle": "exclamation-circle",
24
24
  "alert-triangle": "exclamation-triangle",
@@ -135,13 +135,13 @@ var j = {
135
135
  "wand-sparkles": "magic",
136
136
  x: "x-lg",
137
137
  zap: "lightning-charge"
138
- }, M = [...Object.keys(j), "hard-hat"].sort(), N = /* @__PURE__ */ new Map();
139
- function P(e) {
140
- for (let [t, n] of Object.entries(e)) N.set(t, n);
138
+ }, N = [...Object.keys(M), "hard-hat"].sort(), P = /* @__PURE__ */ new Map();
139
+ function F(e) {
140
+ for (let [t, n] of Object.entries(e)) P.set(t, n);
141
141
  }
142
- function F({ name: e, size: t = 16, className: n, color: r, style: i, ...a }) {
143
- A("Icon", a);
144
- let o = N.get(e);
142
+ function I({ name: e, size: t = 16, className: n, color: r, style: i, ...a }) {
143
+ j("Icon", a);
144
+ let o = P.get(e);
145
145
  if (o) return o({
146
146
  size: t,
147
147
  color: r,
@@ -170,7 +170,7 @@ function F({ name: e, size: t = 16, className: n, color: r, style: i, ...a }) {
170
170
  }), /* @__PURE__ */ f("path", { d: "M3.2 22.5C3.2 17.4 7.5 14.9 11 14.7L12 17.4l1-2.7C16.5 14.9 20.8 17.4 20.8 22.5z" })]
171
171
  })
172
172
  });
173
- let s = j[e] || e;
173
+ let s = M[e] || e;
174
174
  return s ? /* @__PURE__ */ f("i", {
175
175
  className: `bi bi-${s}${n ? ` ${n}` : ""}`,
176
176
  "data-icon": e,
@@ -185,8 +185,8 @@ function F({ name: e, size: t = 16, className: n, color: r, style: i, ...a }) {
185
185
  }
186
186
  //#endregion
187
187
  //#region src/components/renderIconProp.js
188
- function I(e, { size: t = 16, className: r } = {}) {
189
- return e == null || e === !1 ? null : typeof e == "string" ? n(F, {
188
+ function L(e, { size: t = 16, className: r } = {}) {
189
+ return e == null || e === !1 ? null : typeof e == "string" ? n(I, {
190
190
  name: e,
191
191
  size: t,
192
192
  className: r
@@ -194,8 +194,8 @@ function I(e, { size: t = 16, className: r } = {}) {
194
194
  }
195
195
  //#endregion
196
196
  //#region src/components/ActionIcon.jsx
197
- function L({ icon: e, label: t, danger: n = !1, disabled: r = !1, size: i = 20, onClick: a, className: o = "", as: s, href: c, ...l }) {
198
- A("ActionIcon", l);
197
+ function R({ icon: e, label: t, danger: n = !1, disabled: r = !1, size: i = 20, onClick: a, className: o = "", as: s, href: c, ...l }) {
198
+ j("ActionIcon", l);
199
199
  let u = [
200
200
  "u-action",
201
201
  n ? "danger" : "",
@@ -219,13 +219,13 @@ function L({ icon: e, label: t, danger: n = !1, disabled: r = !1, size: i = 20,
219
219
  a?.(e);
220
220
  },
221
221
  ...l,
222
- children: I(e, { size: i })
222
+ children: L(e, { size: i })
223
223
  });
224
224
  }
225
225
  //#endregion
226
226
  //#region src/components/AppAccordion.jsx
227
- function R({ items: e = [], multiple: t = !1, id: n, className: r = "", ...i }) {
228
- A("AppAccordion", i);
227
+ function ee({ items: e = [], multiple: t = !1, id: n, className: r = "", ...i }) {
228
+ j("AppAccordion", i);
229
229
  let a = o(), s = n || a, [c, l] = u(() => {
230
230
  let n = e.filter((e) => e.open).map((e, t) => e.key ?? String(t));
231
231
  return new Set(t ? n : n.slice(0, 1));
@@ -250,7 +250,7 @@ function R({ items: e = [], multiple: t = !1, id: n, className: r = "", ...i })
250
250
  onClick: () => m(n),
251
251
  children: [e.title, /* @__PURE__ */ f("span", {
252
252
  className: "faq-q-icon",
253
- children: /* @__PURE__ */ f(F, {
253
+ children: /* @__PURE__ */ f(I, {
254
254
  name: "chevron-down",
255
255
  size: 18
256
256
  })
@@ -270,8 +270,8 @@ function R({ items: e = [], multiple: t = !1, id: n, className: r = "", ...i })
270
270
  }
271
271
  //#endregion
272
272
  //#region src/components/AppAlert.jsx
273
- function ee({ variant: e = "info", children: t, className: n = "", onClose: r, dismissible: i, role: a = "alert", ...o }) {
274
- return A("AppAlert", o), /* @__PURE__ */ f(m, {
273
+ function z({ variant: e = "info", children: t, className: n = "", onClose: r, dismissible: i, role: a = "alert", ...o }) {
274
+ return j("AppAlert", o), /* @__PURE__ */ f(m, {
275
275
  variant: e,
276
276
  className: n || void 0,
277
277
  onClose: r,
@@ -284,7 +284,7 @@ function ee({ variant: e = "info", children: t, className: n = "", onClose: r, d
284
284
  }
285
285
  //#endregion
286
286
  //#region src/components/AppButton.jsx
287
- var z = {
287
+ var te = {
288
288
  primary: "primary",
289
289
  secondary: "secondary",
290
290
  outline: "outline-primary",
@@ -299,7 +299,7 @@ var z = {
299
299
  function B(e, t) {
300
300
  if (!e) return null;
301
301
  let n = t === "left" ? "me-2" : "ms-2";
302
- return typeof e == "string" ? /* @__PURE__ */ f(F, {
302
+ return typeof e == "string" ? /* @__PURE__ */ f(I, {
303
303
  name: e,
304
304
  size: 16,
305
305
  className: n
@@ -309,12 +309,12 @@ function B(e, t) {
309
309
  });
310
310
  }
311
311
  function V({ children: e, variant: t = "primary", size: n = "md", type: r = "button", loading: i = !1, disabled: a = !1, block: o = !1, leftIcon: s = null, rightIcon: c = null, href: l, className: u = "", ...d }) {
312
- A("AppButton", d);
312
+ j("AppButton", d);
313
313
  let m = [o ? "w-100" : "", u].filter(Boolean).join(" ");
314
- return /* @__PURE__ */ p(g, {
314
+ return /* @__PURE__ */ p(_, {
315
315
  type: (d.as === void 0 || d.as === "button") && l === void 0 ? r : void 0,
316
316
  href: l,
317
- variant: z[t] ?? "primary",
317
+ variant: te[t] ?? "primary",
318
318
  size: n === "md" ? void 0 : n,
319
319
  disabled: a || i,
320
320
  className: m || void 0,
@@ -332,8 +332,8 @@ function V({ children: e, variant: t = "primary", size: n = "md", type: r = "but
332
332
  }
333
333
  //#endregion
334
334
  //#region src/components/AppEmptyState.jsx
335
- function te({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, action: a, className: o = "", style: s, ...c }) {
336
- return A("AppEmptyState", c), /* @__PURE__ */ p("div", {
335
+ function ne({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, action: a, className: o = "", style: s, ...c }) {
336
+ return j("AppEmptyState", c), /* @__PURE__ */ p("div", {
337
337
  className: [
338
338
  "empty-state",
339
339
  n === "sm" ? "empty-state-sm" : "",
@@ -343,7 +343,7 @@ function te({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, acti
343
343
  children: [
344
344
  e ? /* @__PURE__ */ f("div", {
345
345
  className: "empty-state-icon",
346
- children: I(e, { size: t })
346
+ children: L(e, { size: t })
347
347
  }) : null,
348
348
  r != null && /* @__PURE__ */ f("div", {
349
349
  className: "empty-state-title",
@@ -362,8 +362,8 @@ function te({ icon: e, iconSize: t = 24, size: n = "md", title: r, text: i, acti
362
362
  }
363
363
  //#endregion
364
364
  //#region src/components/AppSpinner.jsx
365
- function ne({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
366
- A("AppSpinner", r);
365
+ function re({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
366
+ j("AppSpinner", r);
367
367
  let i = Number(e), a = Number.isFinite(i) && i > 0;
368
368
  return /* @__PURE__ */ f("span", {
369
369
  className: `spinner-border${!a && e === "sm" ? " spinner-border-sm" : ""}${n ? ` ${n}` : ""}`,
@@ -378,20 +378,20 @@ function ne({ size: e = "md", label: t = "Loading", className: n = "", ...r }) {
378
378
  }
379
379
  //#endregion
380
380
  //#region src/components/AppAsyncBlock.jsx
381
- function re({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRetry: i, skeleton: a, className: o = "", ...s }) {
382
- A("AppAsyncBlock", s);
381
+ function ie({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRetry: i, skeleton: a, className: o = "", ...s }) {
382
+ j("AppAsyncBlock", s);
383
383
  let c = `async-block${o ? ` ${o}` : ""}`;
384
384
  return e ? /* @__PURE__ */ f("div", {
385
385
  className: c,
386
386
  "data-state": "loading",
387
387
  children: a ?? /* @__PURE__ */ f("div", {
388
388
  className: "d-flex align-items-center justify-content-center py-5",
389
- children: /* @__PURE__ */ f(ne, { label: "Loading" })
389
+ children: /* @__PURE__ */ f(re, { label: "Loading" })
390
390
  })
391
391
  }) : t ? /* @__PURE__ */ f("div", {
392
392
  className: c,
393
393
  "data-state": "error",
394
- children: /* @__PURE__ */ f(te, {
394
+ children: /* @__PURE__ */ f(ne, {
395
395
  icon: "alert-circle",
396
396
  title: "Something went wrong",
397
397
  text: t,
@@ -404,7 +404,7 @@ function re({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
404
404
  }) : n ? /* @__PURE__ */ f("div", {
405
405
  className: c,
406
406
  "data-state": "empty",
407
- children: /* @__PURE__ */ f(te, {
407
+ children: /* @__PURE__ */ f(ne, {
408
408
  icon: "inbox",
409
409
  title: "Nothing to show yet"
410
410
  })
@@ -416,15 +416,15 @@ function re({ loading: e = !1, error: t = null, empty: n = !1, children: r, onRe
416
416
  }
417
417
  //#endregion
418
418
  //#region ../elements/dist/ui-elements.js
419
- var ie = {
419
+ var ae = {
420
420
  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>",
421
421
  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>",
422
422
  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>",
423
423
  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>",
424
424
  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>"
425
425
  };
426
- Object.keys(ie);
427
- var ae = class extends HTMLElement {
426
+ Object.keys(ae);
427
+ var oe = class extends HTMLElement {
428
428
  static get observedAttributes() {
429
429
  return ["tone", "size"];
430
430
  }
@@ -435,7 +435,7 @@ var ae = class extends HTMLElement {
435
435
  this.isConnected && this.render();
436
436
  }
437
437
  render() {
438
- let e = this.getAttribute("tone"), t = Number.parseInt(this.getAttribute("size"), 10) || 72, n = ie[e] || ie.info;
438
+ let e = this.getAttribute("tone"), t = Number.parseInt(this.getAttribute("size"), 10) || 72, n = ae[e] || ae.info;
439
439
  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>`;
440
440
  }
441
441
  }, H = 4;
@@ -452,24 +452,24 @@ function W(e, t) {
452
452
  function G(e) {
453
453
  e?._reanchor && (window.removeEventListener("resize", e._reanchor), window.removeEventListener("scroll", e._reanchor, !0), e._reanchor = null);
454
454
  }
455
- var oe = "data-wui-mirror";
455
+ var se = "data-wui-mirror";
456
456
  function K(e, t) {
457
- let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${oe}]`);
457
+ let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${se}]`);
458
458
  if (!n) {
459
459
  r?.remove();
460
460
  return;
461
461
  }
462
- r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(oe, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t);
462
+ r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(se, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t);
463
463
  for (let t of e.attributes) t.name.startsWith("data-val") && r.setAttribute(t.name, t.value);
464
464
  r.disabled = e.hasAttribute("disabled");
465
465
  }
466
- var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), ce = (e) => {
466
+ var q = Symbol("wui.trustedHtml"), J = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), ce = (e) => {
467
467
  if (!e) return "";
468
468
  let t = String(e).toLowerCase().replace(/[^a-z0-9-]/g, "");
469
469
  return t ? `<i class="bi bi-${t}" aria-hidden="true"></i>` : "";
470
470
  }, le = (e) => {
471
471
  if (e == null) return "";
472
- let t = e[se] ? String(e.label ?? "") : q(e.label), n = ce(e.icon);
472
+ let t = e[q] ? String(e.label ?? "") : J(e.label), n = ce(e.icon);
473
473
  return n ? `<span class="wui-opt-label">${n}${t}</span>` : t;
474
474
  }, ue = class extends HTMLElement {
475
475
  static formAssociated = !0;
@@ -558,7 +558,7 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
558
558
  value: e.getAttribute("value") ?? e.textContent.trim(),
559
559
  label: e.innerHTML,
560
560
  icon: e.getAttribute("icon") || void 0,
561
- [se]: !0,
561
+ [q]: !0,
562
562
  selected: e.hasAttribute("selected")
563
563
  })));
564
564
  }
@@ -616,7 +616,7 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
616
616
  }] : i;
617
617
  t.optionsWrap.innerHTML = o.map((e) => {
618
618
  if (e.custom) {
619
- let t = `Add “${q(e.value)}”`;
619
+ let t = `Add “${J(e.value)}”`;
620
620
  return `<button type="button" role="option" class="search-select-option search-select-option-custom" data-value="${de(e.value)}" data-custom="true" aria-selected="false">${t}</button>`;
621
621
  }
622
622
  let t = String(e.value) === String(this._value);
@@ -713,7 +713,7 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
713
713
  "Th",
714
714
  "Fr",
715
715
  "Sa"
716
- ], he = (e) => String(e).padStart(2, "0"), ge = (e, t, n) => `${e}-${he(t + 1)}-${he(n)}`, J = (e) => {
716
+ ], he = (e) => String(e).padStart(2, "0"), ge = (e, t, n) => `${e}-${he(t + 1)}-${he(n)}`, Y = (e) => {
717
717
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e || "");
718
718
  return t ? {
719
719
  y: +t[1],
@@ -721,7 +721,7 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
721
721
  d: +t[3]
722
722
  } : null;
723
723
  }, _e = (e) => {
724
- let t = J(e);
724
+ let t = Y(e);
725
725
  return t ? `${he(t.d)} ${pe[t.m].slice(0, 3)} ${t.y}` : "";
726
726
  }, ve = (e, t) => new Date(e, t + 1, 0).getDate(), ye = (e, t) => {
727
727
  for (; t < 0;) t += 12, --e;
@@ -777,13 +777,13 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
777
777
  }
778
778
  render() {
779
779
  this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || ""), this._value = this.getAttribute("value") || this._value;
780
- let e = this.getAttribute("placeholder") || "Enter Date", t = J(this._value);
780
+ let e = this.getAttribute("placeholder") || "Enter Date", t = Y(this._value);
781
781
  t && (this._viewY = t.y, this._viewM = t.m);
782
782
  let n = this.getAttribute("size"), r = n === "sm" ? " input-sm" : n === "lg" ? " input-lg" : "", i = this.getAttribute("aria-label"), a = this.getAttribute("aria-describedby");
783
783
  this.innerHTML = `
784
784
  <div class="datepicker">
785
- <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)}"` : ""}>
786
- <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? _e(this._value) : q(e)}</span>
785
+ <button type="button" class="input datepicker-trigger${r}${t ? " has-value" : ""}" aria-haspopup="dialog" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${i ? ` aria-label="${J(i)}"` : ""}${a ? ` aria-describedby="${J(a)}"` : ""}>
786
+ <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? _e(this._value) : J(e)}</span>
787
787
  <i class="bi bi-calendar3" aria-hidden="true"></i>
788
788
  </button>
789
789
  <div class="datepicker-pop" role="dialog" aria-modal="false" hidden></div>
@@ -795,11 +795,11 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
795
795
  _syncTrigger() {
796
796
  let e = this.querySelector(".datepicker-trigger"), t = this.querySelector("[data-trigger-label]");
797
797
  if (!t) return;
798
- let n = J(this._value);
798
+ let n = Y(this._value);
799
799
  t.textContent = n ? _e(this._value) : this.getAttribute("placeholder") || "Enter Date", t.classList.toggle("search-select-placeholder", !n), e?.classList.toggle("has-value", !!n);
800
800
  }
801
801
  _limits() {
802
- 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;
802
+ let e = Y(this.getAttribute("min")), t = Y(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;
803
803
  return {
804
804
  dayDisabled: (e, t, i) => {
805
805
  let a = new Date(e, t, i).getTime();
@@ -820,7 +820,7 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
820
820
  e && (this._mode === "months" ? e.innerHTML = this._monthsHtml() : this._mode === "years" ? e.innerHTML = this._yearsHtml() : e.innerHTML = this._daysHtml(), this._focusActive());
821
821
  }
822
822
  _daysHtml() {
823
- let e = this._firstDay(), t = (new Date(this._viewY, this._viewM, 1).getDay() - e + 7) % 7, n = ve(this._viewY, this._viewM), r = J(this._value), i = /* @__PURE__ */ new Date(), { dayDisabled: a } = this._limits(), o = this._focus || r || {
823
+ let e = this._firstDay(), t = (new Date(this._viewY, this._viewM, 1).getDay() - e + 7) % 7, n = ve(this._viewY, this._viewM), r = Y(this._value), i = /* @__PURE__ */ new Date(), { dayDisabled: a } = this._limits(), o = this._focus || r || {
824
824
  y: this._viewY,
825
825
  m: this._viewM,
826
826
  d: 1
@@ -852,7 +852,7 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
852
852
  </div>`;
853
853
  }
854
854
  _monthsHtml() {
855
- let e = J(this._value), t = /* @__PURE__ */ new Date(), { monthDisabled: n } = this._limits(), r = "";
855
+ let e = Y(this._value), t = /* @__PURE__ */ new Date(), { monthDisabled: n } = this._limits(), r = "";
856
856
  for (let i = 0; i < 12; i++) {
857
857
  let a = e && e.y === this._viewY && e.m === i, o = t.getFullYear() === this._viewY && t.getMonth() === i, s = n(this._viewY, i), c = [
858
858
  "datepicker-cell",
@@ -870,7 +870,7 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
870
870
  <div class="datepicker-cells">${r}</div>`;
871
871
  }
872
872
  _yearsHtml() {
873
- let e = J(this._value), t = (/* @__PURE__ */ new Date()).getFullYear(), { yearDisabled: n } = this._limits(), r = this._viewY - (this._viewY % 10 + 10) % 10 - 1, i = "";
873
+ let e = Y(this._value), t = (/* @__PURE__ */ new Date()).getFullYear(), { yearDisabled: n } = this._limits(), r = this._viewY - (this._viewY % 10 + 10) % 10 - 1, i = "";
874
874
  for (let a = 0; a < 12; a++) {
875
875
  let o = r + a, s = e && e.y === o, c = t === o, l = n(o), u = [
876
876
  "datepicker-cell",
@@ -909,7 +909,7 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
909
909
  e.key === "Escape" && this._close();
910
910
  return;
911
911
  }
912
- let t = this._focus || J(this._value) || {
912
+ let t = this._focus || Y(this._value) || {
913
913
  y: this._viewY,
914
914
  m: this._viewM,
915
915
  d: 1
@@ -949,11 +949,11 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
949
949
  if (!e || !t) return;
950
950
  let r = () => !t.hidden;
951
951
  this._open = () => {
952
- if (!J(this._value) && !this._viewNavigated) {
952
+ if (!Y(this._value) && !this._viewNavigated) {
953
953
  let e = /* @__PURE__ */ new Date();
954
954
  this._viewY = e.getFullYear(), this._viewM = e.getMonth();
955
955
  }
956
- let r = J(this._value), i = /* @__PURE__ */ new Date();
956
+ let r = Y(this._value), i = /* @__PURE__ */ new Date();
957
957
  this._mode = "days", this._focus = r || {
958
958
  y: this._viewY,
959
959
  m: this._viewM,
@@ -1133,8 +1133,8 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1133
1133
  let t = this.getAttribute("size"), n = t === "sm" ? " input-sm" : t === "lg" ? " input-lg" : "", { text: r, empty: i } = this._label(), a = this.getAttribute("aria-label"), o = this.getAttribute("aria-describedby");
1134
1134
  this.innerHTML = `
1135
1135
  <div class="daterange">
1136
- <button type="button" class="input daterange-trigger${n}${i ? "" : " has-value"}" aria-haspopup="dialog" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${a ? ` aria-label="${q(a)}"` : ""}${o ? ` aria-describedby="${q(o)}"` : ""}>
1137
- <span data-range-label class="${i ? "search-select-placeholder" : ""}">${q(r)}</span>
1136
+ <button type="button" class="input daterange-trigger${n}${i ? "" : " has-value"}" aria-haspopup="dialog" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${a ? ` aria-label="${J(a)}"` : ""}${o ? ` aria-describedby="${J(o)}"` : ""}>
1137
+ <span data-range-label class="${i ? "search-select-placeholder" : ""}">${J(r)}</span>
1138
1138
  <i class="bi bi-calendar-range" aria-hidden="true"></i>
1139
1139
  </button>
1140
1140
  <div class="daterange-pop" role="dialog" aria-modal="false" hidden></div>
@@ -1335,7 +1335,7 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1335
1335
  value: e.getAttribute("value") ?? e.textContent.trim(),
1336
1336
  label: e.innerHTML,
1337
1337
  icon: e.getAttribute("icon") || void 0,
1338
- [se]: !0,
1338
+ [q]: !0,
1339
1339
  selected: e.hasAttribute("selected")
1340
1340
  })));
1341
1341
  }
@@ -1348,7 +1348,7 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1348
1348
  }
1349
1349
  _labelHtmlFor(e) {
1350
1350
  let t = this._readOptions().find((t) => String(t.value) === String(e));
1351
- return t ? le(t) : q(e);
1351
+ return t ? le(t) : J(e);
1352
1352
  }
1353
1353
  render() {
1354
1354
  this._snapshotDeclared();
@@ -1372,7 +1372,7 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
1372
1372
  if (!e) return;
1373
1373
  let t = this.getAttribute("placeholder") || "Select…";
1374
1374
  if (!this._values.length) {
1375
- e.innerHTML = `<span class="search-select-placeholder">${q(t)}</span>`;
1375
+ e.innerHTML = `<span class="search-select-placeholder">${J(t)}</span>`;
1376
1376
  return;
1377
1377
  }
1378
1378
  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="${je(e)}" aria-label="Remove"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join(""), this._collapseChips();
@@ -2794,52 +2794,52 @@ var se = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
2794
2794
  "",
2795
2795
  "",
2796
2796
  ""
2797
- ])[2], Re = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, Y = null, ze = null;
2797
+ ])[2], Re = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, X = null, ze = null;
2798
2798
  function Be() {
2799
- 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 = {
2799
+ return X ? Promise.resolve(X) : (ze ||= Promise.all([import("./libphonenumber-js-BcNT8oq0-DMpMlice.js"), import("./examples.mobile.json-BMXTGiGC-Dl_Tt3py.js")]).then(([e, t]) => (X = {
2800
2800
  AsYouType: e.AsYouType,
2801
2801
  getExampleNumber: e.getExampleNumber,
2802
2802
  isValidPhoneNumber: e.isValidPhoneNumber,
2803
2803
  examples: t.default || t
2804
- }, Y)).catch(() => null), ze);
2804
+ }, X)).catch(() => null), ze);
2805
2805
  }
2806
2806
  function Ve(e, t) {
2807
- if (!Y || !t) return t;
2807
+ if (!X || !t) return t;
2808
2808
  try {
2809
- return new Y.AsYouType(e).input(t);
2809
+ return new X.AsYouType(e).input(t);
2810
2810
  } catch {
2811
2811
  return t;
2812
2812
  }
2813
2813
  }
2814
2814
  function He(e) {
2815
- if (!Y) return null;
2815
+ if (!X) return null;
2816
2816
  try {
2817
- return Y.getExampleNumber(e, Y.examples)?.formatNational() || null;
2817
+ return X.getExampleNumber(e, X.examples)?.formatNational() || null;
2818
2818
  } catch {
2819
2819
  return null;
2820
2820
  }
2821
2821
  }
2822
2822
  function Ue(e) {
2823
- if (!Y || !e) return null;
2823
+ if (!X || !e) return null;
2824
2824
  try {
2825
- return Y.isValidPhoneNumber(e);
2825
+ return X.isValidPhoneNumber(e);
2826
2826
  } catch {
2827
2827
  return null;
2828
2828
  }
2829
2829
  }
2830
2830
  function We(e) {
2831
- if (!Y) return null;
2831
+ if (!X) return null;
2832
2832
  try {
2833
- let t = Y.getExampleNumber(e, Y.examples);
2833
+ let t = X.getExampleNumber(e, X.examples);
2834
2834
  return t?.nationalNumber ? t.nationalNumber.length : null;
2835
2835
  } catch {
2836
2836
  return null;
2837
2837
  }
2838
2838
  }
2839
2839
  function Ge(e) {
2840
- if (!Y || !e?.trim().startsWith("+")) return null;
2840
+ if (!X || !e?.trim().startsWith("+")) return null;
2841
2841
  try {
2842
- let t = new Y.AsYouType();
2842
+ let t = new X.AsYouType();
2843
2843
  t.input(e.trim());
2844
2844
  let n = t.getCountry();
2845
2845
  return n ? {
@@ -3048,7 +3048,7 @@ var Ke = class extends HTMLElement {
3048
3048
  value: e.getAttribute("value") ?? e.textContent.trim(),
3049
3049
  label: e.innerHTML,
3050
3050
  icon: e.getAttribute("icon") || void 0,
3051
- [se]: !0,
3051
+ [q]: !0,
3052
3052
  selected: e.hasAttribute("selected")
3053
3053
  })));
3054
3054
  }
@@ -3067,8 +3067,8 @@ var Ke = class extends HTMLElement {
3067
3067
  <div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}${i}">
3068
3068
  <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-label="${Ye(this._accessibleName())}"${this.hasAttribute("disabled") ? " disabled" : ""}>
3069
3069
  ${a ? `<i class="bi bi-${Ye(a)} search-select-icon" aria-hidden="true"></i>` : ""}
3070
- ${o ? `<span class="search-select-prefix">${q(o)}</span>` : ""}
3071
- <span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? le(l) : q(s)}</span>
3070
+ ${o ? `<span class="search-select-prefix">${J(o)}</span>` : ""}
3071
+ <span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? le(l) : J(s)}</span>
3072
3072
  ${n ? "<span class=\"search-select-reset\" role=\"button\" aria-label=\"Clear selection\" hidden><i class=\"bi bi-x-lg\" aria-hidden=\"true\"></i></span>" : ""}
3073
3073
  <i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
3074
3074
  </button>
@@ -3201,18 +3201,18 @@ var Ke = class extends HTMLElement {
3201
3201
  ".avif",
3202
3202
  ".heic"
3203
3203
  ];
3204
- function X(e) {
3204
+ function tt(e) {
3205
3205
  if (!e) return !1;
3206
3206
  let t = typeof e == "object" && e.type ? String(e.type).toLowerCase() : "";
3207
3207
  if (t) return t.startsWith("image/");
3208
3208
  let n = typeof e == "string" ? e : e.name || e.url || "", r = String(n).toLowerCase();
3209
3209
  return et.some((e) => r.endsWith(e));
3210
3210
  }
3211
- function tt(e) {
3211
+ function nt(e) {
3212
3212
  let t = $e(e);
3213
3213
  return t.length ? t.every((e) => e.startsWith(".") ? et.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
3214
3214
  }
3215
- function nt(e) {
3215
+ function rt(e) {
3216
3216
  let t = [];
3217
3217
  for (let n of $e(e)) {
3218
3218
  let e = Qe[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
@@ -3220,24 +3220,24 @@ function nt(e) {
3220
3220
  }
3221
3221
  return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
3222
3222
  }
3223
- function rt(e, t) {
3223
+ function it(e, t) {
3224
3224
  let n = $e(t);
3225
3225
  if (!n.length) return !0;
3226
3226
  let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
3227
3227
  return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (Ze[e] || []).some((e) => i.endsWith(e)));
3228
3228
  }
3229
- function it(e, t = {}) {
3229
+ function at(e, t = {}) {
3230
3230
  if (!e) return null;
3231
3231
  let n = t.accept === void 0 ? Xe : t.accept, r = t.maxSizeMb || 5;
3232
- return rt(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${nt(n)} file.`;
3232
+ return it(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${rt(n)} file.`;
3233
3233
  }
3234
3234
  var Z = (e, t) => {
3235
3235
  typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
3236
3236
  };
3237
- function at() {
3238
- Z("wui-select", Je), Z("wui-phone", Ke), Z("wui-datepicker", be), Z("wui-date-range", ke), Z("wui-autocomplete", ue), Z("wui-multiselect", Ae), Z("wui-otp", Fe), Z("wui-status-icon", ae);
3237
+ function ot() {
3238
+ Z("wui-select", Je), Z("wui-phone", Ke), Z("wui-datepicker", be), Z("wui-date-range", ke), Z("wui-autocomplete", ue), Z("wui-multiselect", Ae), Z("wui-otp", Fe), Z("wui-status-icon", oe);
3239
3239
  }
3240
- at();
3240
+ ot();
3241
3241
  //#endregion
3242
3242
  //#region src/components/RequiredMark.jsx
3243
3243
  function Q() {
@@ -3249,8 +3249,8 @@ function Q() {
3249
3249
  }
3250
3250
  //#endregion
3251
3251
  //#region src/components/AppAutocomplete.jsx
3252
- function ot({ value: e, onChange: t, options: n, loadOptions: r, placeholder: i = "Search…", minChars: o, debounce: s, disabled: c = !1, size: u, allowCustom: d = !1, name: m, label: h, error: g, hint: _, required: v = !1, fieldClassName: y = "", ...b }) {
3253
- A("AppAutocomplete", b);
3252
+ function st({ value: e, onChange: t, options: n, loadOptions: r, placeholder: i = "Search…", minChars: o, debounce: s, disabled: c = !1, size: u, allowCustom: d = !1, name: m, label: h, error: g, hint: _, required: v = !1, fieldClassName: y = "", ...b }) {
3253
+ j("AppAutocomplete", b);
3254
3254
  let x = l(null), S = typeof r == "function";
3255
3255
  return a(() => {
3256
3256
  let e = x.current;
@@ -3315,14 +3315,14 @@ function ot({ value: e, onChange: t, options: n, loadOptions: r, placeholder: i
3315
3315
  }
3316
3316
  //#endregion
3317
3317
  //#region src/components/AppAvatar.jsx
3318
- function st(e) {
3318
+ function ct(e) {
3319
3319
  let t = (e || "").trim();
3320
3320
  if (!t) return "?";
3321
3321
  let n = t.split(/\s+/).filter(Boolean);
3322
3322
  return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
3323
3323
  }
3324
- function ct({ name: e, src: t, className: n = "", ...r }) {
3325
- A("AppAvatar", r);
3324
+ function lt({ name: e, src: t, className: n = "", ...r }) {
3325
+ j("AppAvatar", r);
3326
3326
  let i = ["avatar", n].filter(Boolean).join(" "), [o, s] = u(!1);
3327
3327
  return a(() => {
3328
3328
  s(!1);
@@ -3338,20 +3338,20 @@ function ct({ name: e, src: t, className: n = "", ...r }) {
3338
3338
  className: i,
3339
3339
  role: "img",
3340
3340
  "aria-label": e,
3341
- children: st(e)
3341
+ children: ct(e)
3342
3342
  });
3343
3343
  }
3344
3344
  //#endregion
3345
3345
  //#region src/components/normalizeTone.js
3346
- var lt = { warn: "warning" };
3347
- function ut(e) {
3348
- return e && (lt[e] || e);
3346
+ var ut = { warn: "warning" };
3347
+ function dt(e) {
3348
+ return e && (ut[e] || e);
3349
3349
  }
3350
3350
  //#endregion
3351
3351
  //#region src/components/AppBadge.jsx
3352
- function dt({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
3353
- A("AppBadge", i);
3354
- let a = ut(t);
3352
+ function ft({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
3353
+ j("AppBadge", i);
3354
+ let a = dt(t);
3355
3355
  return /* @__PURE__ */ f(h, {
3356
3356
  bg: !1,
3357
3357
  className: [
@@ -3364,13 +3364,70 @@ function dt({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
3364
3364
  });
3365
3365
  }
3366
3366
  //#endregion
3367
+ //#region src/components/AppBanner.jsx
3368
+ var pt = [
3369
+ "info",
3370
+ "success",
3371
+ "warning",
3372
+ "danger",
3373
+ "neutral"
3374
+ ];
3375
+ function mt({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
3376
+ j("AppBanner", o);
3377
+ let [s, c] = u(!0);
3378
+ return s ? /* @__PURE__ */ p("div", {
3379
+ className: `wui-banner wui-banner-${pt.includes(e) ? e : "info"}${a ? ` ${a}` : ""}`,
3380
+ role: "status",
3381
+ children: [
3382
+ t && /* @__PURE__ */ f("span", {
3383
+ className: "wui-banner-icon",
3384
+ children: L(t, { size: 18 })
3385
+ }),
3386
+ /* @__PURE__ */ f("div", {
3387
+ className: "wui-banner-body",
3388
+ children: n
3389
+ }),
3390
+ r && /* @__PURE__ */ f("button", {
3391
+ type: "button",
3392
+ className: "wui-banner-dismiss",
3393
+ "aria-label": "Dismiss",
3394
+ onClick: () => {
3395
+ c(!1), i?.();
3396
+ },
3397
+ children: /* @__PURE__ */ f(I, {
3398
+ name: "x",
3399
+ size: 18
3400
+ })
3401
+ })
3402
+ ]
3403
+ }) : null;
3404
+ }
3405
+ //#endregion
3406
+ //#region src/components/AppBreadcrumbs.jsx
3407
+ function ht({ items: e = [], linkComponent: t, className: n = "", ...r }) {
3408
+ return j("AppBreadcrumbs", r), /* @__PURE__ */ f(g, {
3409
+ className: n || void 0,
3410
+ children: e.map((n, r) => {
3411
+ let i = r === e.length - 1, a = n.icon ? L(n.icon, { size: 14 }) : null, o = {};
3412
+ return i || (n.to && t ? o = {
3413
+ linkAs: t,
3414
+ linkProps: { to: n.to }
3415
+ } : n.to ? o = { href: n.to } : n.href && (o = { href: n.href })), /* @__PURE__ */ p(g.Item, {
3416
+ active: i,
3417
+ ...o,
3418
+ children: [a, n.label]
3419
+ }, n.key ?? `${n.label}-${r}`);
3420
+ })
3421
+ });
3422
+ }
3423
+ //#endregion
3367
3424
  //#region src/components/AppCallout.jsx
3368
- function ft({ children: e, icon: t = "info", className: n = "", ...r }) {
3369
- return A("AppCallout", r), /* @__PURE__ */ p("div", {
3425
+ function gt({ children: e, icon: t = "info", className: n = "", ...r }) {
3426
+ return j("AppCallout", r), /* @__PURE__ */ p("div", {
3370
3427
  className: `info-callout${n ? ` ${n}` : ""}`,
3371
3428
  children: [t && /* @__PURE__ */ f("span", {
3372
3429
  className: "info-callout-icon",
3373
- children: /* @__PURE__ */ f(F, {
3430
+ children: /* @__PURE__ */ f(I, {
3374
3431
  name: t,
3375
3432
  size: 18
3376
3433
  })
@@ -3379,16 +3436,16 @@ function ft({ children: e, icon: t = "info", className: n = "", ...r }) {
3379
3436
  }
3380
3437
  //#endregion
3381
3438
  //#region src/components/AppCard.jsx
3382
- function pt({ title: e, titleClassName: t = "", header: n, headerExtra: r, headerActions: i, children: a, className: o = "", bodyClassName: s = "", headerClassName: c = "", body: l = !0, lifted: u = !1, ...m }) {
3383
- A("AppCard", m);
3439
+ function _t({ title: e, titleClassName: t = "", header: n, headerExtra: r, headerActions: i, children: a, className: o = "", bodyClassName: s = "", headerClassName: c = "", body: l = !0, lifted: u = !1, ...m }) {
3440
+ j("AppCard", m);
3384
3441
  let h = n != null || e != null || r != null || i != null;
3385
- return /* @__PURE__ */ p(_, {
3442
+ return /* @__PURE__ */ p(v, {
3386
3443
  className: [u ? "card-lifted" : "", o].filter(Boolean).join(" ") || void 0,
3387
3444
  ...m,
3388
- children: [h && /* @__PURE__ */ f(_.Header, {
3445
+ children: [h && /* @__PURE__ */ f(v.Header, {
3389
3446
  className: c || void 0,
3390
3447
  children: n ?? /* @__PURE__ */ p(d, { children: [
3391
- e != null && /* @__PURE__ */ f(_.Title, {
3448
+ e != null && /* @__PURE__ */ f(v.Title, {
3392
3449
  as: "div",
3393
3450
  className: t || void 0,
3394
3451
  children: e
@@ -3399,7 +3456,7 @@ function pt({ title: e, titleClassName: t = "", header: n, headerExtra: r, heade
3399
3456
  children: i
3400
3457
  })
3401
3458
  ] })
3402
- }), l ? /* @__PURE__ */ f(_.Body, {
3459
+ }), l ? /* @__PURE__ */ f(v.Body, {
3403
3460
  className: s || void 0,
3404
3461
  children: a
3405
3462
  }) : a]
@@ -3407,8 +3464,8 @@ function pt({ title: e, titleClassName: t = "", header: n, headerExtra: r, heade
3407
3464
  }
3408
3465
  //#endregion
3409
3466
  //#region src/components/AppCheckbox.jsx
3410
- var mt = r(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...s }, c) {
3411
- A("AppCheckbox", s);
3467
+ var vt = r(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...s }, c) {
3468
+ j("AppCheckbox", s);
3412
3469
  let l = o(), u = t || n || l;
3413
3470
  return /* @__PURE__ */ p("div", {
3414
3471
  className: `form-check${a ? ` ${a}` : ""}`,
@@ -3439,9 +3496,9 @@ var mt = r(function({ label: e, id: t, name: n, error: r, hint: i, className: a
3439
3496
  });
3440
3497
  //#endregion
3441
3498
  //#region src/components/AppChip.jsx
3442
- function ht({ label: e, children: t, tone: n = "neutral", size: r = "md", leadingIcon: i, avatar: a, onRemove: o, onClick: s, disabled: c = !1, removeLabel: l, className: u = "", ...m }) {
3443
- A("AppChip", m);
3444
- let h = e ?? t, g = ut(n), _ = [
3499
+ function yt({ label: e, children: t, tone: n = "neutral", size: r = "md", leadingIcon: i, avatar: a, onRemove: o, onClick: s, disabled: c = !1, removeLabel: l, className: u = "", ...m }) {
3500
+ j("AppChip", m);
3501
+ let h = e ?? t, g = dt(n), _ = [
3445
3502
  "chip",
3446
3503
  g && g !== "neutral" ? g : "",
3447
3504
  r === "sm" ? "chip-sm" : "",
@@ -3457,7 +3514,7 @@ function ht({ label: e, children: t, tone: n = "neutral", size: r = "md", leadin
3457
3514
  }) : a
3458
3515
  }) : i ? /* @__PURE__ */ f("span", {
3459
3516
  className: "chip-ic",
3460
- children: /* @__PURE__ */ f(F, {
3517
+ children: /* @__PURE__ */ f(I, {
3461
3518
  name: i,
3462
3519
  size: r === "sm" ? 12 : 14
3463
3520
  })
@@ -3482,7 +3539,7 @@ function ht({ label: e, children: t, tone: n = "neutral", size: r = "md", leadin
3482
3539
  onClick: o,
3483
3540
  disabled: c,
3484
3541
  "aria-label": l || (typeof h == "string" ? `Remove ${h}` : "Remove"),
3485
- children: /* @__PURE__ */ f(F, {
3542
+ children: /* @__PURE__ */ f(I, {
3486
3543
  name: "x",
3487
3544
  size: r === "sm" ? 12 : 14
3488
3545
  })
@@ -3491,8 +3548,8 @@ function ht({ label: e, children: t, tone: n = "neutral", size: r = "md", leadin
3491
3548
  }
3492
3549
  //#endregion
3493
3550
  //#region src/components/AppChoiceCard.jsx
3494
- function gt({ 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: m, description: h, checkIcon: g = "check", checkSize: _ = 12, className: v = "", ...y }) {
3495
- return A("AppChoiceCard", y), /* @__PURE__ */ p("label", {
3551
+ function bt({ 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: m, description: h, checkIcon: g = "check", checkSize: _ = 12, className: v = "", ...y }) {
3552
+ return j("AppChoiceCard", y), /* @__PURE__ */ p("label", {
3496
3553
  className: `struct-card${c ? " struct-card-img-card" : ""}${r ? " checked" : ""}${v ? ` ${v}` : ""}`,
3497
3554
  children: [
3498
3555
  /* @__PURE__ */ f("input", {
@@ -3512,7 +3569,7 @@ function gt({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
3512
3569
  })
3513
3570
  }) : o || a ? /* @__PURE__ */ f("span", {
3514
3571
  className: "struct-card-ic",
3515
- children: o || /* @__PURE__ */ f(F, {
3572
+ children: o || /* @__PURE__ */ f(I, {
3516
3573
  name: a,
3517
3574
  size: s
3518
3575
  })
@@ -3529,7 +3586,7 @@ function gt({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
3529
3586
  }),
3530
3587
  /* @__PURE__ */ f("span", {
3531
3588
  className: "struct-card-check",
3532
- children: /* @__PURE__ */ f(F, {
3589
+ children: /* @__PURE__ */ f(I, {
3533
3590
  name: g,
3534
3591
  size: _
3535
3592
  })
@@ -3539,8 +3596,8 @@ function gt({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
3539
3596
  }
3540
3597
  //#endregion
3541
3598
  //#region src/components/AppChoiceChip.jsx
3542
- function _t({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, className: c = "", ...l }) {
3543
- return A("AppChoiceChip", l), /* @__PURE__ */ p("label", {
3599
+ function xt({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, className: c = "", ...l }) {
3600
+ return j("AppChoiceChip", l), /* @__PURE__ */ p("label", {
3544
3601
  className: `choice-chip${i ? " checked" : ""}${c ? ` ${c}` : ""}`,
3545
3602
  children: [
3546
3603
  /* @__PURE__ */ f("input", {
@@ -3560,8 +3617,8 @@ function _t({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChang
3560
3617
  }
3561
3618
  //#endregion
3562
3619
  //#region src/components/AppColorField.jsx
3563
- function vt({ value: e = "#000000", onChange: t, label: n, required: r = !1, error: i, hint: a, name: s, id: c, disabled: l = !1, size: u = "md", className: d = "", ...m }) {
3564
- A("AppColorField", m);
3620
+ function St({ value: e = "#000000", onChange: t, label: n, required: r = !1, error: i, hint: a, name: s, id: c, disabled: l = !1, size: u = "md", className: d = "", ...m }) {
3621
+ j("AppColorField", m);
3565
3622
  let h = o(), g = c || s || 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" : "";
3566
3623
  return /* @__PURE__ */ p("div", {
3567
3624
  className: `field${d ? ` ${d}` : ""}`,
@@ -3608,11 +3665,11 @@ function vt({ value: e = "#000000", onChange: t, label: n, required: r = !1, err
3608
3665
  }
3609
3666
  //#endregion
3610
3667
  //#region src/components/AppCompareTable.jsx
3611
- function yt({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
3612
- A("AppCompareTable", i);
3668
+ function Ct({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
3669
+ j("AppCompareTable", i);
3613
3670
  let a = (e) => e === !0 ? /* @__PURE__ */ f("span", {
3614
3671
  className: "compare-yes",
3615
- children: /* @__PURE__ */ f(F, {
3672
+ children: /* @__PURE__ */ f(I, {
3616
3673
  name: "check",
3617
3674
  size: 16
3618
3675
  })
@@ -3644,20 +3701,20 @@ function yt({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i
3644
3701
  }
3645
3702
  //#endregion
3646
3703
  //#region src/components/AppInfoTip.jsx
3647
- function bt({ label: e, children: t, placement: n = "auto", ...r }) {
3648
- A("AppInfoTip", r);
3704
+ function wt({ label: e, children: t, placement: n = "auto", ...r }) {
3705
+ j("AppInfoTip", r);
3649
3706
  let i = o(), [a, s] = u(!1), c = !!e, l = !!t;
3650
3707
  return !c && !l ? null : /* @__PURE__ */ f("span", {
3651
3708
  className: "infotip",
3652
- children: /* @__PURE__ */ f(S, {
3709
+ children: /* @__PURE__ */ f(C, {
3653
3710
  trigger: ["hover", "focus"],
3654
3711
  placement: n,
3655
- overlay: /* @__PURE__ */ p(C, {
3712
+ overlay: /* @__PURE__ */ p(w, {
3656
3713
  id: i,
3657
- children: [c && /* @__PURE__ */ f(C.Header, {
3714
+ children: [c && /* @__PURE__ */ f(w.Header, {
3658
3715
  as: "h3",
3659
3716
  children: e
3660
- }), l && /* @__PURE__ */ f(C.Body, { children: t })]
3717
+ }), l && /* @__PURE__ */ f(w.Body, { children: t })]
3661
3718
  }),
3662
3719
  onToggle: s,
3663
3720
  children: /* @__PURE__ */ f("button", {
@@ -3665,7 +3722,7 @@ function bt({ label: e, children: t, placement: n = "auto", ...r }) {
3665
3722
  className: "infotip-btn",
3666
3723
  "aria-label": e || "More information",
3667
3724
  "aria-expanded": a,
3668
- children: /* @__PURE__ */ f(F, {
3725
+ children: /* @__PURE__ */ f(I, {
3669
3726
  name: "info",
3670
3727
  size: 16
3671
3728
  })
@@ -3675,19 +3732,19 @@ function bt({ label: e, children: t, placement: n = "auto", ...r }) {
3675
3732
  }
3676
3733
  //#endregion
3677
3734
  //#region src/components/AppInput.jsx
3678
- var xt = r(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: o = "More information", type: s = "text", size: c = "md", leftIcon: d, rightIcon: m, onRightIconClick: h, rightIconLabel: g, unit: _, id: v, name: b, className: x = "", fieldClassName: S = "", disabled: C = !1, clearable: w = !1, showCount: T = !1, maxLength: E, prefix: D, suffix: O, floatingLabel: k = !1, variant: j, ...M }, N) {
3679
- A("AppInput", M);
3680
- let [P, I] = u(!1), L = v || b, R = s === "password", ee = R && P ? "text" : s, z = l(null), B = (e) => {
3735
+ var Tt = r(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: o = "More information", type: s = "text", size: c = "md", leftIcon: d, rightIcon: m, onRightIconClick: h, rightIconLabel: g, unit: _, id: v, name: y, className: x = "", fieldClassName: S = "", disabled: C = !1, clearable: w = !1, showCount: T = !1, maxLength: E, prefix: D, suffix: O, floatingLabel: k = !1, variant: A, ...M }, N) {
3736
+ j("AppInput", M);
3737
+ let [P, F] = u(!1), L = v || y, R = s === "password", ee = R && P ? "text" : s, z = l(null), te = (e) => {
3681
3738
  z.current = e, typeof N == "function" ? N(e) : N && (N.current = e);
3682
- }, V = String(M.value ?? M.defaultValue ?? ""), [te, ne] = u(() => !!V), [re, ie] = u(() => V.length), ae = w && !C, H = w || T;
3739
+ }, B = String(M.value ?? M.defaultValue ?? ""), [V, ne] = u(() => !!B), [re, ie] = u(() => B.length), ae = w && !C, oe = w || T;
3683
3740
  a(() => {
3684
- if (!H || M.value === void 0) return;
3741
+ if (!oe || M.value === void 0) return;
3685
3742
  let e = String(M.value ?? "");
3686
3743
  ne(!!e), ie(e.length);
3687
- }, [M.value, H]);
3688
- let U = (e) => {
3744
+ }, [M.value, oe]);
3745
+ let H = (e) => {
3689
3746
  ne(!!e.target.value), ie(e.target.value.length), M.onInput?.(e);
3690
- }, W = ae ? /* @__PURE__ */ f("button", {
3747
+ }, U = ae ? /* @__PURE__ */ f("button", {
3691
3748
  type: "button",
3692
3749
  className: "input-clear",
3693
3750
  onClick: () => {
@@ -3698,12 +3755,12 @@ var xt = r(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
3698
3755
  },
3699
3756
  "aria-label": "Clear",
3700
3757
  tabIndex: -1,
3701
- hidden: !te,
3702
- children: /* @__PURE__ */ f(F, {
3758
+ hidden: !V,
3759
+ children: /* @__PURE__ */ f(I, {
3703
3760
  name: "x",
3704
3761
  size: 16
3705
3762
  })
3706
- }) : null, G = n && L ? `${L}-error` : void 0, oe = r && L ? `${L}-hint` : void 0, K = G || oe, se = [
3763
+ }) : null, W = n && L ? `${L}-error` : void 0, G = r && L ? `${L}-hint` : void 0, se = W || G, K = [
3707
3764
  "input",
3708
3765
  c === "sm" ? "input-sm" : "",
3709
3766
  c === "lg" ? "input-lg" : "",
@@ -3711,24 +3768,24 @@ var xt = r(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
3711
3768
  R ? "pw" : "",
3712
3769
  _ ? "num-input" : "",
3713
3770
  w ? "has-clear" : "",
3714
- j === "bare" ? "input-bare" : "",
3771
+ A === "bare" ? "input-bare" : "",
3715
3772
  x
3716
- ].filter(Boolean).join(" "), q = /* @__PURE__ */ f(y.Control, {
3773
+ ].filter(Boolean).join(" "), q = /* @__PURE__ */ f(b.Control, {
3717
3774
  id: L,
3718
- name: b,
3775
+ name: y,
3719
3776
  type: ee,
3720
- className: se,
3777
+ className: K,
3721
3778
  disabled: C,
3722
3779
  required: t,
3723
3780
  "aria-invalid": n ? "true" : "false",
3724
- "aria-describedby": K,
3781
+ "aria-describedby": se,
3725
3782
  maxLength: E,
3726
3783
  ...M,
3727
3784
  placeholder: k ? " " : M.placeholder,
3728
- ref: B,
3729
- onInput: H ? U : M.onInput
3730
- }), ce;
3731
- return ce = k && e ? /* @__PURE__ */ p("div", {
3785
+ ref: te,
3786
+ onInput: oe ? H : M.onInput
3787
+ }), J;
3788
+ return J = k && e ? /* @__PURE__ */ p("div", {
3732
3789
  className: "field-float",
3733
3790
  children: [q, /* @__PURE__ */ p("label", {
3734
3791
  className: "float-label",
@@ -3759,10 +3816,10 @@ var xt = r(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
3759
3816
  children: [q, /* @__PURE__ */ f("button", {
3760
3817
  type: "button",
3761
3818
  className: "pw-toggle",
3762
- onClick: () => I((e) => !e),
3819
+ onClick: () => F((e) => !e),
3763
3820
  "aria-label": P ? "Hide password" : "Show password",
3764
3821
  tabIndex: -1,
3765
- children: /* @__PURE__ */ f(F, {
3822
+ children: /* @__PURE__ */ f(I, {
3766
3823
  name: P ? "eye-off" : "eye",
3767
3824
  size: 18
3768
3825
  })
@@ -3776,7 +3833,7 @@ var xt = r(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
3776
3833
  disabled: !h,
3777
3834
  tabIndex: -1,
3778
3835
  "aria-label": g || m,
3779
- children: /* @__PURE__ */ f(F, {
3836
+ children: /* @__PURE__ */ f(I, {
3780
3837
  name: m,
3781
3838
  size: 18
3782
3839
  })
@@ -3786,46 +3843,46 @@ var xt = r(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
3786
3843
  children: [
3787
3844
  d && /* @__PURE__ */ f("span", {
3788
3845
  className: "ic",
3789
- children: /* @__PURE__ */ f(F, {
3846
+ children: /* @__PURE__ */ f(I, {
3790
3847
  name: d,
3791
3848
  size: 16
3792
3849
  })
3793
3850
  }),
3794
3851
  q,
3795
- W
3852
+ U
3796
3853
  ]
3797
3854
  }) : d ? /* @__PURE__ */ p("div", {
3798
3855
  className: "input-icon",
3799
3856
  children: [/* @__PURE__ */ f("span", {
3800
3857
  className: "ic",
3801
- children: /* @__PURE__ */ f(F, {
3858
+ children: /* @__PURE__ */ f(I, {
3802
3859
  name: d,
3803
3860
  size: 16
3804
3861
  })
3805
3862
  }), q]
3806
- }) : q, /* @__PURE__ */ p(y.Group, {
3863
+ }) : q, /* @__PURE__ */ p(b.Group, {
3807
3864
  className: `field${S ? ` ${S}` : ""}`,
3808
3865
  children: [
3809
- e && !k && /* @__PURE__ */ p(y.Label, {
3866
+ e && !k && /* @__PURE__ */ p(b.Label, {
3810
3867
  className: "label",
3811
3868
  htmlFor: L,
3812
3869
  children: [
3813
3870
  e,
3814
3871
  t && /* @__PURE__ */ f(Q, {}),
3815
- i && /* @__PURE__ */ f(bt, {
3872
+ i && /* @__PURE__ */ f(wt, {
3816
3873
  label: o,
3817
3874
  children: i
3818
3875
  })
3819
3876
  ]
3820
3877
  }),
3821
- ce,
3878
+ J,
3822
3879
  n ? /* @__PURE__ */ f("div", {
3823
3880
  className: "field-error",
3824
- id: G,
3881
+ id: W,
3825
3882
  children: n
3826
3883
  }) : r ? /* @__PURE__ */ f("div", {
3827
3884
  className: "field-hint",
3828
- id: oe,
3885
+ id: G,
3829
3886
  children: r
3830
3887
  }) : null,
3831
3888
  T && /* @__PURE__ */ p("div", {
@@ -3834,28 +3891,28 @@ var xt = r(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
3834
3891
  })
3835
3892
  ]
3836
3893
  });
3837
- }), St = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", Ct = {
3894
+ }), Et = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", Dt = {
3838
3895
  sm: 380,
3839
3896
  md: 440,
3840
3897
  lg: 640,
3841
3898
  xl: 880
3842
3899
  };
3843
- function wt({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: o = "default", dismissible: s = !0, onClose: c, footer: u, size: d = "md", placement: m = "center", hideHeader: h = !1, staticBackdrop: g = !1, className: _ = "", children: v, ...y }) {
3844
- A("AppModal", y);
3845
- let x = l(null);
3900
+ function Ot({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: o = "default", dismissible: s = !0, onClose: c, footer: u, size: d = "md", placement: m = "center", hideHeader: h = !1, staticBackdrop: g = !1, className: _ = "", children: v, ...y }) {
3901
+ j("AppModal", y);
3902
+ let b = l(null);
3846
3903
  a(() => {
3847
3904
  if (!e) return;
3848
- let t = x.current?.closest(".modal-content");
3905
+ let t = b.current?.closest(".modal-content");
3849
3906
  if (!t) return;
3850
- let n = () => Array.from(t.querySelectorAll(St));
3907
+ let n = () => Array.from(t.querySelectorAll(Et));
3851
3908
  (t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("wui-modal-close")) || n()[0] || t).focus?.();
3852
3909
  }, [e]);
3853
- let S = typeof d == "number" ? d : Ct[d] ?? Ct.md, C = [
3910
+ let S = typeof d == "number" ? d : Dt[d] ?? Dt.md, C = [
3854
3911
  "wui-modal",
3855
3912
  o === "default" ? "" : `tone-${o}`,
3856
3913
  _
3857
3914
  ].filter(Boolean).join(" ");
3858
- return /* @__PURE__ */ p(b, {
3915
+ return /* @__PURE__ */ p(x, {
3859
3916
  show: e,
3860
3917
  onHide: c,
3861
3918
  backdrop: !g || "static",
@@ -3877,7 +3934,7 @@ function wt({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: o
3877
3934
  className: "wui-modal-heading",
3878
3935
  children: [i && /* @__PURE__ */ f("span", {
3879
3936
  className: "wui-modal-headicon",
3880
- children: /* @__PURE__ */ f(F, {
3937
+ children: /* @__PURE__ */ f(I, {
3881
3938
  name: i,
3882
3939
  size: 18
3883
3940
  })
@@ -3919,7 +3976,7 @@ function wt({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: o
3919
3976
  }),
3920
3977
  /* @__PURE__ */ f("div", {
3921
3978
  className: "wui-modal-body",
3922
- ref: x,
3979
+ ref: b,
3923
3980
  children: v
3924
3981
  }),
3925
3982
  u && /* @__PURE__ */ f("div", {
@@ -3931,30 +3988,30 @@ function wt({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: o
3931
3988
  }
3932
3989
  //#endregion
3933
3990
  //#region src/components/ModalIcons.jsx
3934
- var Tt = (e) => function({ size: t = 72 }) {
3991
+ var kt = (e) => function({ size: t = 72 }) {
3935
3992
  return /* @__PURE__ */ f("wui-status-icon", {
3936
3993
  tone: e,
3937
3994
  size: t
3938
3995
  });
3939
- }, Et = {
3940
- success: Tt("success"),
3941
- error: Tt("error"),
3942
- warning: Tt("warning"),
3943
- info: Tt("info"),
3944
- delete: Tt("delete")
3996
+ }, At = {
3997
+ success: kt("success"),
3998
+ error: kt("error"),
3999
+ warning: kt("warning"),
4000
+ info: kt("info"),
4001
+ delete: kt("delete")
3945
4002
  };
3946
4003
  //#endregion
3947
4004
  //#region src/components/AppConfirmDialog.jsx
3948
- function Dt({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", danger: o = !1, tone: s, confirmPhrase: c, onConfirm: l, onClose: m, loading: h = !1, staticBackdrop: g = !1, placement: _ = "center", ...v }) {
3949
- A("AppConfirmDialog", v);
4005
+ function jt({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", danger: o = !1, tone: s, confirmPhrase: c, onConfirm: l, onClose: m, loading: h = !1, staticBackdrop: g = !1, placement: _ = "center", ...v }) {
4006
+ j("AppConfirmDialog", v);
3950
4007
  let [y, b] = u("");
3951
4008
  if (a(() => {
3952
4009
  e || b("");
3953
4010
  }, [e]), !e) return null;
3954
- let x = !!c && y.trim() !== c, S = Et[s || (o ? "delete" : "info")], C = () => {
4011
+ let x = !!c && y.trim() !== c, S = At[s || (o ? "delete" : "info")], C = () => {
3955
4012
  h || m?.();
3956
4013
  };
3957
- return /* @__PURE__ */ f(wt, {
4014
+ return /* @__PURE__ */ f(Ot, {
3958
4015
  open: e,
3959
4016
  hideHeader: !0,
3960
4017
  title: t,
@@ -3994,7 +4051,7 @@ function Dt({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
3994
4051
  className: "wui-confirm-msg",
3995
4052
  children: n
3996
4053
  }),
3997
- c && /* @__PURE__ */ f(xt, {
4054
+ c && /* @__PURE__ */ f(Tt, {
3998
4055
  fieldClassName: "mt-3 mb-0 w-100 text-start",
3999
4056
  label: /* @__PURE__ */ p(d, { children: [
4000
4057
  "Type ",
@@ -4012,8 +4069,8 @@ function Dt({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
4012
4069
  }
4013
4070
  //#endregion
4014
4071
  //#region src/components/AppSkeleton.jsx
4015
- function Ot({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
4016
- return A("AppSkeleton", a), /* @__PURE__ */ f("span", {
4072
+ function Mt({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
4073
+ return j("AppSkeleton", a), /* @__PURE__ */ f("span", {
4017
4074
  className: `skeleton${r ? ` ${r}` : ""}`,
4018
4075
  "aria-hidden": "true",
4019
4076
  style: {
@@ -4025,7 +4082,7 @@ function Ot({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "
4025
4082
  ...a
4026
4083
  });
4027
4084
  }
4028
- var kt = [
4085
+ var Nt = [
4029
4086
  "r0",
4030
4087
  "r1",
4031
4088
  "r2",
@@ -4034,7 +4091,7 @@ var kt = [
4034
4091
  "r5",
4035
4092
  "r6",
4036
4093
  "r7"
4037
- ], At = [
4094
+ ], Pt = [
4038
4095
  "c0",
4039
4096
  "c1",
4040
4097
  "c2",
@@ -4044,29 +4101,29 @@ var kt = [
4044
4101
  "c6",
4045
4102
  "c7"
4046
4103
  ];
4047
- function jt({ rows: e = 4, cols: t = 5 }) {
4048
- return kt.slice(0, e).map((e) => /* @__PURE__ */ f("tr", { children: At.slice(0, t).map((e, t) => /* @__PURE__ */ f("td", { children: /* @__PURE__ */ f(Ot, {
4104
+ function Ft({ rows: e = 4, cols: t = 5 }) {
4105
+ return Nt.slice(0, e).map((e) => /* @__PURE__ */ f("tr", { children: Pt.slice(0, t).map((e, t) => /* @__PURE__ */ f("td", { children: /* @__PURE__ */ f(Mt, {
4049
4106
  width: t === 0 ? "70%" : "50%",
4050
4107
  height: 12
4051
4108
  }) }, e)) }, e));
4052
4109
  }
4053
4110
  //#endregion
4054
4111
  //#region src/lib/pageWindow.js
4055
- var Mt = (e, t) => {
4112
+ var It = (e, t) => {
4056
4113
  let n = [];
4057
4114
  for (let r = e; r <= t; r += 1) n.push(r);
4058
4115
  return n;
4059
4116
  };
4060
- function Nt(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
4117
+ function Lt(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
4061
4118
  let i = Math.max(1, t), a = Math.min(Math.max(1, e), i);
4062
- if (i <= n * 2 + 3 + r * 2) return Mt(1, i);
4063
- 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 = Mt(1, r);
4064
- return u.push(...c ? ["ellipsis-left"] : Mt(r + 1, o - 1)), u.push(...Mt(o, s)), u.push(...l ? ["ellipsis-right"] : Mt(s + 1, i - r)), u.push(...Mt(i - r + 1, i)), u;
4119
+ if (i <= n * 2 + 3 + r * 2) return It(1, i);
4120
+ 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 = It(1, r);
4121
+ return u.push(...c ? ["ellipsis-left"] : It(r + 1, o - 1)), u.push(...It(o, s)), u.push(...l ? ["ellipsis-right"] : It(s + 1, i - r)), u.push(...It(i - r + 1, i)), u;
4065
4122
  }
4066
4123
  //#endregion
4067
4124
  //#region src/components/AppSelectMini.jsx
4068
- function Pt({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", name: i, ariaLabel: o, id: s, disabled: c, size: u, icon: d, prefix: p, className: m, ...h }) {
4069
- A("AppSelectMini", h);
4125
+ function Rt({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", name: i, ariaLabel: o, id: s, disabled: c, size: u, icon: d, prefix: p, className: m, ...h }) {
4126
+ j("AppSelectMini", h);
4070
4127
  let g = l(null);
4071
4128
  return a(() => {
4072
4129
  g.current && (g.current.options = n.map((e) => ({
@@ -4099,21 +4156,21 @@ function Pt({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
4099
4156
  }
4100
4157
  //#endregion
4101
4158
  //#region src/components/AppTablePagination.jsx
4102
- var Ft = [
4159
+ var zt = [
4103
4160
  5,
4104
4161
  10,
4105
4162
  25,
4106
4163
  50
4107
4164
  ];
4108
- function It({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = Ft, mode: l = "prev-next", showPageSize: u = !0, ...d }) {
4109
- A("AppTablePagination", d);
4110
- let m = l === "numbered", h = m ? Nt(e, t) : null;
4165
+ function Bt({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = zt, mode: l = "prev-next", showPageSize: u = !0, ...d }) {
4166
+ j("AppTablePagination", d);
4167
+ let m = l === "numbered", h = m ? Lt(e, t) : null;
4111
4168
  return /* @__PURE__ */ p("div", {
4112
4169
  className: "table-pagination",
4113
4170
  children: [
4114
4171
  u && /* @__PURE__ */ p("span", {
4115
4172
  className: "tpg-rows",
4116
- children: ["Rows per page:", /* @__PURE__ */ f(Pt, {
4173
+ children: ["Rows per page:", /* @__PURE__ */ f(Rt, {
4117
4174
  value: n,
4118
4175
  onChange: (e) => s(Number(e)),
4119
4176
  ariaLabel: "Rows per page",
@@ -4142,7 +4199,7 @@ function It({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
4142
4199
  onClick: () => o(Math.max(1, e - 1)),
4143
4200
  disabled: e <= 1,
4144
4201
  "aria-label": "Previous page",
4145
- children: /* @__PURE__ */ f(F, {
4202
+ children: /* @__PURE__ */ f(I, {
4146
4203
  name: "arrow-left",
4147
4204
  size: 18
4148
4205
  })
@@ -4165,7 +4222,7 @@ function It({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
4165
4222
  onClick: () => o(Math.min(t, e + 1)),
4166
4223
  disabled: e >= t,
4167
4224
  "aria-label": "Next page",
4168
- children: /* @__PURE__ */ f(F, {
4225
+ children: /* @__PURE__ */ f(I, {
4169
4226
  name: "arrow-right",
4170
4227
  size: 18
4171
4228
  })
@@ -4177,18 +4234,18 @@ function It({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
4177
4234
  }
4178
4235
  //#endregion
4179
4236
  //#region src/components/AppDataTable.jsx
4180
- function Lt(e) {
4237
+ function Vt(e) {
4181
4238
  return e === "end" ? "wui-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
4182
4239
  }
4183
- function Rt(e) {
4240
+ function Ht(e) {
4184
4241
  return e == null || e === "" ? "—" : typeof e == "boolean" ? String(e) : e;
4185
4242
  }
4186
- function zt({ columns: t, 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: m, rowActions: h, rowActionsLabel: g, pagination: _, ariaLabel: v, className: y = "", selectable: b = !1, selectedIds: x, onToggleRow: S, onToggleAll: C, renderExpanded: w, ...T }) {
4187
- A("AppDataTable", T);
4243
+ function Ut({ columns: t, 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: m, rowActions: h, rowActionsLabel: g, pagination: _, ariaLabel: v, className: y = "", selectable: b = !1, selectedIds: x, onToggleRow: S, onToggleAll: C, renderExpanded: w, ...T }) {
4244
+ j("AppDataTable", T);
4188
4245
  let E = typeof w == "function", [D, O] = u(() => /* @__PURE__ */ new Set()), k = (e) => O((t) => {
4189
4246
  let n = new Set(t);
4190
4247
  return n.has(e) ? n.delete(e) : n.add(e), n;
4191
- }), j = Math.max(1, t.length + +!!h + +!!b + +!!E), M = b && n ? n.reduce((e, t, n) => e + +!!x?.has(r(t, n)), 0) : 0, N = b && n && n.length > 0 && M === n.length, P = M > 0 && !N, I = (e) => {
4248
+ }), A = Math.max(1, t.length + +!!h + +!!b + +!!E), M = b && n ? n.reduce((e, t, n) => e + +!!x?.has(r(t, n)), 0) : 0, N = b && n && n.length > 0 && M === n.length, P = M > 0 && !N, F = (e) => {
4192
4249
  e && (e.indeterminate = P);
4193
4250
  }, L = l !== void 0 && m > 0 ? l : c;
4194
4251
  return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("div", {
@@ -4207,7 +4264,7 @@ function zt({ columns: t, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
4207
4264
  b && /* @__PURE__ */ f("th", {
4208
4265
  className: "wui-select-cell",
4209
4266
  children: /* @__PURE__ */ f("input", {
4210
- ref: I,
4267
+ ref: F,
4211
4268
  type: "checkbox",
4212
4269
  className: "wui-check",
4213
4270
  checked: N,
@@ -4218,7 +4275,7 @@ function zt({ columns: t, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
4218
4275
  t.map((e, t) => {
4219
4276
  let n = !!(e.sortable && a), r = i && i.key === e.key;
4220
4277
  return /* @__PURE__ */ p("th", {
4221
- className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + Lt(e.align),
4278
+ className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + Vt(e.align),
4222
4279
  style: e.width ? { width: e.width } : void 0,
4223
4280
  tabIndex: n ? 0 : void 0,
4224
4281
  "aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
@@ -4228,7 +4285,7 @@ function zt({ columns: t, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
4228
4285
  } : void 0,
4229
4286
  children: [e.label, n && /* @__PURE__ */ f("span", {
4230
4287
  className: "sort-icon",
4231
- children: /* @__PURE__ */ f(F, {
4288
+ children: /* @__PURE__ */ f(I, {
4232
4289
  name: "chevrons-up-down",
4233
4290
  size: 14
4234
4291
  })
@@ -4245,9 +4302,9 @@ function zt({ columns: t, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
4245
4302
  children: "Actions"
4246
4303
  })
4247
4304
  }))
4248
- ] }) }), /* @__PURE__ */ f("tbody", { children: o ? /* @__PURE__ */ f(jt, {
4305
+ ] }) }), /* @__PURE__ */ f("tbody", { children: o ? /* @__PURE__ */ f(Ft, {
4249
4306
  rows: s,
4250
- cols: j
4307
+ cols: A
4251
4308
  }) : n?.length ? n.map((n, i) => {
4252
4309
  let a = r(n, i), o = E && D.has(a);
4253
4310
  return /* @__PURE__ */ p(e, { children: [/* @__PURE__ */ p("tr", {
@@ -4262,7 +4319,7 @@ function zt({ columns: t, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
4262
4319
  "aria-controls": `${a}-expanded`,
4263
4320
  "aria-label": o ? "Collapse row" : "Expand row",
4264
4321
  onClick: () => k(a),
4265
- children: /* @__PURE__ */ f(F, {
4322
+ children: /* @__PURE__ */ f(I, {
4266
4323
  name: "chevron-down",
4267
4324
  size: 16
4268
4325
  })
@@ -4279,9 +4336,9 @@ function zt({ columns: t, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
4279
4336
  })
4280
4337
  }),
4281
4338
  t.map((e, t) => /* @__PURE__ */ f("td", {
4282
- className: (t === 0 ? "wui-name-cell " : "") + Lt(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
4339
+ className: (t === 0 ? "wui-name-cell " : "") + Vt(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
4283
4340
  style: e.cellStyle,
4284
- children: e.render ? e.render(n) : Rt(n[e.key])
4341
+ children: e.render ? e.render(n) : Ht(n[e.key])
4285
4342
  }, e.key)),
4286
4343
  h && /* @__PURE__ */ f("td", { children: /* @__PURE__ */ f("div", {
4287
4344
  className: "u-row-actions",
@@ -4292,17 +4349,17 @@ function zt({ columns: t, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
4292
4349
  className: "wui-row-expanded",
4293
4350
  children: /* @__PURE__ */ f("td", {
4294
4351
  id: `${a}-expanded`,
4295
- colSpan: j,
4352
+ colSpan: A,
4296
4353
  children: w(n)
4297
4354
  })
4298
4355
  })] }, a);
4299
4356
  }) : /* @__PURE__ */ f("tr", { children: /* @__PURE__ */ f("td", {
4300
- colSpan: j,
4357
+ colSpan: A,
4301
4358
  className: "wui-table-empty",
4302
4359
  children: L
4303
4360
  }) }) })]
4304
4361
  })
4305
- }), _ && !o && _.total > 0 && /* @__PURE__ */ f(It, {
4362
+ }), _ && !o && _.total > 0 && /* @__PURE__ */ f(Bt, {
4306
4363
  page: _.page,
4307
4364
  totalPages: _.totalPages,
4308
4365
  pageSize: _.pageSize,
@@ -4315,8 +4372,8 @@ function zt({ columns: t, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
4315
4372
  }
4316
4373
  //#endregion
4317
4374
  //#region src/components/AppDatePicker.jsx
4318
- function Bt({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: s, name: c, min: u, max: d, placeholder: m = "Enter Date", disabled: h, size: g, firstDay: _, id: v, ariaLabel: y, className: b = "", ...x }) {
4319
- A("AppDatePicker", x);
4375
+ function Wt({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: s, name: c, min: u, max: d, placeholder: m = "Enter Date", disabled: h, size: g, firstDay: _, id: v, ariaLabel: y, className: b = "", ...x }) {
4376
+ j("AppDatePicker", x);
4320
4377
  let S = l(null), C = o(), w = v || c || C;
4321
4378
  a(() => {
4322
4379
  let t = S.current;
@@ -4371,8 +4428,8 @@ function Bt({ value: e, onChange: t, label: n, required: r = !1, hint: i, error:
4371
4428
  }
4372
4429
  //#endregion
4373
4430
  //#region src/components/AppDateRangePicker.jsx
4374
- function Vt({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: s, error: c, startName: u, endName: d, min: m, max: h, placeholder: g = "Start – End", disabled: _, size: v, firstDay: y, id: b, ariaLabel: x, className: S = "", ...C }) {
4375
- A("AppDateRangePicker", C);
4431
+ function Gt({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: s, error: c, startName: u, endName: d, min: m, max: h, placeholder: g = "Start – End", disabled: _, size: v, firstDay: y, id: b, ariaLabel: x, className: S = "", ...C }) {
4432
+ j("AppDateRangePicker", C);
4376
4433
  let w = l(null), T = o(), E = b || u || T;
4377
4434
  a(() => {
4378
4435
  let t = w.current;
@@ -4386,7 +4443,7 @@ function Vt({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: s
4386
4443
  let t = () => n?.(e.value);
4387
4444
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
4388
4445
  }, [n]);
4389
- let D = !r && !c && !s, O = c ? `${E}-error` : void 0, k = s ? `${E}-hint` : void 0, j = /* @__PURE__ */ f("wui-date-range", {
4446
+ let D = !r && !c && !s, O = c ? `${E}-error` : void 0, k = s ? `${E}-hint` : void 0, A = /* @__PURE__ */ f("wui-date-range", {
4390
4447
  ref: w,
4391
4448
  id: E,
4392
4449
  "start-name": u,
@@ -4403,7 +4460,7 @@ function Vt({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: s
4403
4460
  required: i ? "" : void 0,
4404
4461
  className: D && S || void 0
4405
4462
  });
4406
- return D ? j : /* @__PURE__ */ p("div", {
4463
+ return D ? A : /* @__PURE__ */ p("div", {
4407
4464
  className: `field${S ? ` ${S}` : ""}`,
4408
4465
  children: [
4409
4466
  r && /* @__PURE__ */ p("label", {
@@ -4415,7 +4472,7 @@ function Vt({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: s
4415
4472
  children: "*"
4416
4473
  })]
4417
4474
  }),
4418
- j,
4475
+ A,
4419
4476
  c && /* @__PURE__ */ f("div", {
4420
4477
  className: "field-error",
4421
4478
  id: O,
@@ -4431,7 +4488,7 @@ function Vt({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: s
4431
4488
  }
4432
4489
  //#endregion
4433
4490
  //#region src/components/AppDropdown.jsx
4434
- var Ht = r(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", label: r, align: i = "end", trigger: a, "aria-label": o, className: s, ...c }, l) {
4491
+ var Kt = r(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", label: r, align: i = "end", trigger: a, "aria-label": o, className: s, ...c }, l) {
4435
4492
  return /* @__PURE__ */ f("button", {
4436
4493
  ref: l,
4437
4494
  type: "button",
@@ -4439,30 +4496,30 @@ var Ht = r(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-
4439
4496
  title: r,
4440
4497
  "aria-label": o,
4441
4498
  ...c,
4442
- children: a ?? /* @__PURE__ */ f(F, {
4499
+ children: a ?? /* @__PURE__ */ f(I, {
4443
4500
  name: e,
4444
4501
  size: t
4445
4502
  })
4446
4503
  });
4447
4504
  });
4448
- function Ut({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: o = [], menuClassName: s = "", linkComponent: c, children: l, trigger: u, ...d }) {
4449
- A("AppDropdown", d);
4505
+ function qt({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: o = [], menuClassName: s = "", linkComponent: c, children: l, trigger: u, ...d }) {
4506
+ j("AppDropdown", d);
4450
4507
  let m = n ?? (u ? "wui-dropdown-trigger" : "topbar-icon-btn");
4451
- return /* @__PURE__ */ p(v, {
4508
+ return /* @__PURE__ */ p(y, {
4452
4509
  align: a,
4453
- children: [/* @__PURE__ */ f(v.Toggle, {
4454
- as: Ht,
4510
+ children: [/* @__PURE__ */ f(y.Toggle, {
4511
+ as: Kt,
4455
4512
  icon: e,
4456
4513
  iconSize: t,
4457
4514
  btnClassName: m,
4458
4515
  trigger: u,
4459
4516
  title: r,
4460
4517
  "aria-label": i
4461
- }), /* @__PURE__ */ f(v.Menu, {
4518
+ }), /* @__PURE__ */ f(y.Menu, {
4462
4519
  className: s,
4463
4520
  renderOnMount: !0,
4464
4521
  children: l ?? o.map((e) => {
4465
- if (e.divider) return /* @__PURE__ */ f(v.Divider, {}, e.key);
4522
+ if (e.divider) return /* @__PURE__ */ f(y.Divider, {}, e.key);
4466
4523
  let t = e.to ? c ? {
4467
4524
  as: c,
4468
4525
  to: e.to
@@ -4473,14 +4530,14 @@ function Ut({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
4473
4530
  as: "button",
4474
4531
  type: "button"
4475
4532
  };
4476
- return /* @__PURE__ */ p(v.Item, {
4533
+ return /* @__PURE__ */ p(y.Item, {
4477
4534
  ...t,
4478
4535
  onClick: e.onClick,
4479
4536
  className: e.danger ? "danger" : void 0,
4480
4537
  children: [e.image ? /* @__PURE__ */ f("img", {
4481
4538
  src: e.image,
4482
4539
  alt: ""
4483
- }) : I(e.icon, { size: 16 }), e.label]
4540
+ }) : L(e.icon, { size: 16 }), e.label]
4484
4541
  }, e.key);
4485
4542
  })
4486
4543
  })]
@@ -4488,15 +4545,15 @@ function Ut({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
4488
4545
  }
4489
4546
  //#endregion
4490
4547
  //#region src/components/AppFileAttachment.jsx
4491
- function Wt({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = Xe, maxSizeMb: s = 5, optional: c = !1, error: l, id: m, ...h }) {
4492
- A("AppFileAttachment", h);
4493
- let g = o(), _ = m || n || g, [v, y] = u(""), b = i && Array.isArray(t) ? t : t ? [t] : [], x = tt(a), S = (e) => e instanceof File ? X(e) : x || X(e), C = !i && b.length === 1 && S(b[0]);
4548
+ function Jt({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = Xe, maxSizeMb: s = 5, optional: c = !1, error: l, id: m, ...h }) {
4549
+ j("AppFileAttachment", h);
4550
+ let g = o(), _ = m || n || g, [v, y] = u(""), b = i && Array.isArray(t) ? t : t ? [t] : [], x = nt(a), S = (e) => e instanceof File ? tt(e) : x || tt(e), C = !i && b.length === 1 && S(b[0]);
4494
4551
  function w(e) {
4495
4552
  let n = Array.from(e.target.files || []);
4496
4553
  if (e.target.value = "", !n.length) return;
4497
4554
  let o = [], c = "";
4498
4555
  for (let e of n) {
4499
- let t = it(e, {
4556
+ let t = at(e, {
4500
4557
  accept: a,
4501
4558
  maxSizeMb: s
4502
4559
  });
@@ -4507,8 +4564,8 @@ function Wt({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
4507
4564
  o.push(e);
4508
4565
  }
4509
4566
  if (y(c), o.length) if (i) {
4510
- let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(Gt));
4511
- r(e.concat(o.filter((e) => !n.has(Gt(e)))));
4567
+ let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(Yt));
4568
+ r(e.concat(o.filter((e) => !n.has(Yt(e)))));
4512
4569
  } else r(o[0]);
4513
4570
  }
4514
4571
  function T(e) {
@@ -4532,7 +4589,7 @@ function Wt({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
4532
4589
  children: [
4533
4590
  /* @__PURE__ */ f("span", {
4534
4591
  className: "attach-drop-icon",
4535
- children: /* @__PURE__ */ f(F, {
4592
+ children: /* @__PURE__ */ f(I, {
4536
4593
  name: x ? "image" : "file-text",
4537
4594
  size: 18
4538
4595
  })
@@ -4545,7 +4602,7 @@ function Wt({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
4545
4602
  }), /* @__PURE__ */ p("span", {
4546
4603
  className: "attach-drop-hint",
4547
4604
  children: [
4548
- nt(a),
4605
+ rt(a),
4549
4606
  ", up to ",
4550
4607
  s,
4551
4608
  " MB"
@@ -4566,17 +4623,17 @@ function Wt({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
4566
4623
  multiple: i || void 0,
4567
4624
  onChange: w
4568
4625
  })] }),
4569
- C ? /* @__PURE__ */ f(Jt, {
4626
+ C ? /* @__PURE__ */ f(Qt, {
4570
4627
  item: b[0],
4571
4628
  isImage: !0,
4572
4629
  onRemove: () => T(0)
4573
4630
  }) : b.length > 0 && /* @__PURE__ */ f("div", {
4574
4631
  className: "attach-list",
4575
- children: b.map((e, t) => /* @__PURE__ */ f(Yt, {
4632
+ children: b.map((e, t) => /* @__PURE__ */ f($t, {
4576
4633
  item: e,
4577
4634
  isImage: S(e),
4578
4635
  onRemove: () => T(t)
4579
- }, Gt(e)))
4636
+ }, Yt(e)))
4580
4637
  }),
4581
4638
  E && /* @__PURE__ */ f("div", {
4582
4639
  className: "field-error",
@@ -4585,13 +4642,13 @@ function Wt({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
4585
4642
  ]
4586
4643
  });
4587
4644
  }
4588
- function Gt(e) {
4645
+ function Yt(e) {
4589
4646
  return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
4590
4647
  }
4591
- function Kt(e) {
4648
+ function Xt(e) {
4592
4649
  return e instanceof File ? e.name : e?.name;
4593
4650
  }
4594
- function qt(e, t) {
4651
+ function Zt(e, t) {
4595
4652
  let [n, r] = u(null);
4596
4653
  return a(() => {
4597
4654
  if (!t) {
@@ -4605,8 +4662,8 @@ function qt(e, t) {
4605
4662
  r(e?.url || null);
4606
4663
  }, [e, t]), n;
4607
4664
  }
4608
- function Jt({ item: e, isImage: t, onRemove: n }) {
4609
- let r = qt(e, t), i = Kt(e), a = e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
4665
+ function Qt({ item: e, isImage: t, onRemove: n }) {
4666
+ let r = Zt(e, t), i = Xt(e), a = e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
4610
4667
  return /* @__PURE__ */ p("div", {
4611
4668
  className: "attach-preview",
4612
4669
  children: [/* @__PURE__ */ p("div", {
@@ -4619,7 +4676,7 @@ function Jt({ item: e, isImage: t, onRemove: n }) {
4619
4676
  className: "attach-remove",
4620
4677
  "aria-label": "Remove attachment",
4621
4678
  onClick: n,
4622
- children: /* @__PURE__ */ f(F, {
4679
+ children: /* @__PURE__ */ f(I, {
4623
4680
  name: "x",
4624
4681
  size: 18
4625
4682
  })
@@ -4636,8 +4693,8 @@ function Jt({ item: e, isImage: t, onRemove: n }) {
4636
4693
  })]
4637
4694
  });
4638
4695
  }
4639
- function Yt({ item: e, isImage: t, onRemove: n }) {
4640
- let r = qt(e, t), i = Kt(e), a = e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
4696
+ function $t({ item: e, isImage: t, onRemove: n }) {
4697
+ let r = Zt(e, t), i = Xt(e), a = e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
4641
4698
  return /* @__PURE__ */ p("div", {
4642
4699
  className: "attach-item",
4643
4700
  children: [
@@ -4646,7 +4703,7 @@ function Yt({ item: e, isImage: t, onRemove: n }) {
4646
4703
  children: r ? /* @__PURE__ */ f("img", {
4647
4704
  src: r,
4648
4705
  alt: i
4649
- }) : /* @__PURE__ */ f(F, {
4706
+ }) : /* @__PURE__ */ f(I, {
4650
4707
  name: "file-text",
4651
4708
  size: 18
4652
4709
  })
@@ -4666,7 +4723,7 @@ function Yt({ item: e, isImage: t, onRemove: n }) {
4666
4723
  className: "attach-item-remove",
4667
4724
  "aria-label": `Remove ${i || "attachment"}`,
4668
4725
  onClick: n,
4669
- children: /* @__PURE__ */ f(F, {
4726
+ children: /* @__PURE__ */ f(I, {
4670
4727
  name: "x",
4671
4728
  size: 16
4672
4729
  })
@@ -4676,18 +4733,18 @@ function Yt({ item: e, isImage: t, onRemove: n }) {
4676
4733
  }
4677
4734
  //#endregion
4678
4735
  //#region src/components/AppFilePicker.jsx
4679
- function Xt({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles: s, accept: c = ".jpg,.jpeg,.png", maxSizeMb: d = 5, required: m, error: h, className: g = "", ..._ }) {
4680
- A("AppFilePicker", _);
4736
+ function en({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles: s, accept: c = ".jpg,.jpeg,.png", maxSizeMb: d = 5, required: m, error: h, className: g = "", ..._ }) {
4737
+ j("AppFilePicker", _);
4681
4738
  let [v, y] = u(null), [b, x] = u(!1), [S, C] = u(""), w = l(null), T = o(), E = n || T;
4682
4739
  a(() => {
4683
- if (!i && t instanceof File && X(t)) {
4740
+ if (!i && t instanceof File && tt(t)) {
4684
4741
  let e = URL.createObjectURL(t);
4685
4742
  return y(e), () => URL.revokeObjectURL(e);
4686
4743
  }
4687
4744
  y(null);
4688
4745
  }, [t, i]);
4689
- let D = i ? Array.isArray(t) ? t : t ? [t] : [] : [], O = h || S, k = tt(c), j = !i && !!t, M = j && (t instanceof File ? X(t) : k || X(t)), N = t?.name, P = M ? t?.url || v : null, I = (e) => {
4690
- let t = it(e, {
4746
+ let D = i ? Array.isArray(t) ? t : t ? [t] : [] : [], O = h || S, k = nt(c), A = !i && !!t, M = A && (t instanceof File ? tt(t) : k || tt(t)), N = t?.name, P = M ? t?.url || v : null, F = (e) => {
4747
+ let t = at(e, {
4691
4748
  accept: c,
4692
4749
  maxSizeMb: d
4693
4750
  });
@@ -4695,9 +4752,9 @@ function Xt({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
4695
4752
  }, L = (e) => {
4696
4753
  let n = Array.from(e || []);
4697
4754
  if (!n.length) return;
4698
- let i = Array.isArray(t) ? t : t ? [t] : [], a = new Set(i.map(Zt)), o = "", l = [];
4755
+ let i = Array.isArray(t) ? t : t ? [t] : [], a = new Set(i.map(tn)), o = "", l = [];
4699
4756
  for (let e of n) {
4700
- let t = it(e, {
4757
+ let t = at(e, {
4701
4758
  accept: c,
4702
4759
  maxSizeMb: d
4703
4760
  });
@@ -4705,7 +4762,7 @@ function Xt({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
4705
4762
  o ||= t;
4706
4763
  continue;
4707
4764
  }
4708
- a.has(Zt(e)) || (a.add(Zt(e)), l.push(e));
4765
+ a.has(tn(e)) || (a.add(tn(e)), l.push(e));
4709
4766
  }
4710
4767
  let u = i.concat(l);
4711
4768
  s && u.length > s && (u = u.slice(0, s), o ||= `Up to ${s} files.`), C(o), r(u);
@@ -4715,17 +4772,17 @@ function Xt({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
4715
4772
  return;
4716
4773
  }
4717
4774
  let t = e.target.files?.[0] || null;
4718
- t && (I(t) || (e.target.value = ""));
4775
+ t && (F(t) || (e.target.value = ""));
4719
4776
  }, ee = (e) => {
4720
4777
  if (e.preventDefault(), x(!1), i) {
4721
4778
  L(e.dataTransfer.files);
4722
4779
  return;
4723
4780
  }
4724
4781
  let t = e.dataTransfer.files?.[0];
4725
- t && I(t);
4782
+ t && F(t);
4726
4783
  }, z = (e) => {
4727
4784
  C(""), r(D.filter((t, n) => n !== e));
4728
- }, B = () => w.current?.click(), V = /* @__PURE__ */ f("input", {
4785
+ }, te = () => w.current?.click(), B = /* @__PURE__ */ f("input", {
4729
4786
  id: E,
4730
4787
  name: n,
4731
4788
  ref: w,
@@ -4746,21 +4803,21 @@ function Xt({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
4746
4803
  htmlFor: E,
4747
4804
  children: [e, m && /* @__PURE__ */ f(Q, {})]
4748
4805
  }),
4749
- j ? /* @__PURE__ */ p("div", {
4806
+ A ? /* @__PURE__ */ p("div", {
4750
4807
  className: `file-preview${O ? " error" : ""}`,
4751
4808
  children: [
4752
4809
  /* @__PURE__ */ p("button", {
4753
4810
  type: "button",
4754
4811
  className: "file-preview-open",
4755
4812
  "aria-label": `Change ${e}`,
4756
- onClick: B,
4813
+ onClick: te,
4757
4814
  children: [M && P ? /* @__PURE__ */ f("img", {
4758
4815
  src: P,
4759
4816
  alt: `${e} preview`,
4760
4817
  className: "file-preview-img"
4761
4818
  }) : /* @__PURE__ */ p("span", {
4762
4819
  className: "file-preview-file",
4763
- children: [/* @__PURE__ */ f(F, {
4820
+ children: [/* @__PURE__ */ f(I, {
4764
4821
  name: "file-text",
4765
4822
  size: 28
4766
4823
  }), /* @__PURE__ */ f("span", {
@@ -4772,7 +4829,7 @@ function Xt({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
4772
4829
  children: /* @__PURE__ */ p("span", {
4773
4830
  className: "file-preview-cta",
4774
4831
  children: [
4775
- /* @__PURE__ */ f(F, {
4832
+ /* @__PURE__ */ f(I, {
4776
4833
  name: M ? "image" : "file-text",
4777
4834
  size: 16
4778
4835
  }),
@@ -4788,12 +4845,12 @@ function Xt({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
4788
4845
  "aria-label": `Remove ${e}`,
4789
4846
  title: "Remove image",
4790
4847
  onClick: () => r(null),
4791
- children: /* @__PURE__ */ f(F, {
4848
+ children: /* @__PURE__ */ f(I, {
4792
4849
  name: "x",
4793
4850
  size: 16
4794
4851
  })
4795
4852
  }),
4796
- V
4853
+ B
4797
4854
  ]
4798
4855
  }) : /* @__PURE__ */ p("div", {
4799
4856
  className: `file-input file-input-tall${b ? " dragging" : ""}${O ? " error" : ""}${i && D.length > 0 ? " has-files" : ""}`,
@@ -4811,7 +4868,7 @@ function Xt({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
4811
4868
  children: [
4812
4869
  /* @__PURE__ */ f("span", {
4813
4870
  className: "file-input-icon",
4814
- children: /* @__PURE__ */ f(F, {
4871
+ children: /* @__PURE__ */ f(I, {
4815
4872
  name: "upload",
4816
4873
  size: 24
4817
4874
  })
@@ -4826,7 +4883,7 @@ function Xt({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
4826
4883
  /* @__PURE__ */ p("span", {
4827
4884
  className: "file-input-text",
4828
4885
  children: [
4829
- nt(c),
4886
+ rt(c),
4830
4887
  " · up to ",
4831
4888
  d,
4832
4889
  " MB"
@@ -4834,14 +4891,14 @@ function Xt({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
4834
4891
  })
4835
4892
  ]
4836
4893
  }),
4837
- V,
4894
+ B,
4838
4895
  i && D.length > 0 && /* @__PURE__ */ f("div", {
4839
4896
  className: "attach-list",
4840
- children: D.map((e, t) => /* @__PURE__ */ f(Qt, {
4897
+ children: D.map((e, t) => /* @__PURE__ */ f(nn, {
4841
4898
  item: e,
4842
- isImage: e instanceof File ? X(e) : k || X(e),
4899
+ isImage: e instanceof File ? tt(e) : k || tt(e),
4843
4900
  onRemove: () => z(t)
4844
- }, Zt(e)))
4901
+ }, tn(e)))
4845
4902
  })
4846
4903
  ]
4847
4904
  }),
@@ -4852,10 +4909,10 @@ function Xt({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
4852
4909
  ]
4853
4910
  });
4854
4911
  }
4855
- function Zt(e) {
4912
+ function tn(e) {
4856
4913
  return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
4857
4914
  }
4858
- function Qt({ item: e, isImage: t, onRemove: n }) {
4915
+ function nn({ item: e, isImage: t, onRemove: n }) {
4859
4916
  let [r, i] = u(null);
4860
4917
  a(() => {
4861
4918
  if (!t) {
@@ -4877,7 +4934,7 @@ function Qt({ item: e, isImage: t, onRemove: n }) {
4877
4934
  children: r ? /* @__PURE__ */ f("img", {
4878
4935
  src: r,
4879
4936
  alt: o
4880
- }) : /* @__PURE__ */ f(F, {
4937
+ }) : /* @__PURE__ */ f(I, {
4881
4938
  name: "file-text",
4882
4939
  size: 18
4883
4940
  })
@@ -4897,7 +4954,7 @@ function Qt({ item: e, isImage: t, onRemove: n }) {
4897
4954
  className: "attach-item-remove",
4898
4955
  "aria-label": `Remove ${o || "file"}`,
4899
4956
  onClick: n,
4900
- children: /* @__PURE__ */ f(F, {
4957
+ children: /* @__PURE__ */ f(I, {
4901
4958
  name: "x",
4902
4959
  size: 16
4903
4960
  })
@@ -4907,13 +4964,13 @@ function Qt({ item: e, isImage: t, onRemove: n }) {
4907
4964
  }
4908
4965
  //#endregion
4909
4966
  //#region src/components/AppInfoList.jsx
4910
- function $t({ items: e = [], className: t = "", ...n }) {
4911
- return A("AppInfoList", n), /* @__PURE__ */ f("div", {
4967
+ function rn({ items: e = [], className: t = "", ...n }) {
4968
+ return j("AppInfoList", n), /* @__PURE__ */ f("div", {
4912
4969
  className: `info-list${t ? ` ${t}` : ""}`,
4913
4970
  children: e.map((e, t) => {
4914
4971
  let n = e.value == null || e.value === "", r = /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("span", {
4915
4972
  className: "info-icon",
4916
- children: I(e.icon, { size: 16 })
4973
+ children: L(e.icon, { size: 16 })
4917
4974
  }), /* @__PURE__ */ p("span", {
4918
4975
  className: "info-meta",
4919
4976
  children: [/* @__PURE__ */ f("span", {
@@ -4937,27 +4994,27 @@ function $t({ items: e = [], className: t = "", ...n }) {
4937
4994
  }
4938
4995
  //#endregion
4939
4996
  //#region src/components/AppKpiTile.jsx
4940
- var en = 48, tn = 16;
4941
- function nn(e) {
4942
- if (!e || e.length < 2) return `0,${tn / 2} ${en},${tn / 2}`;
4943
- let t = Math.min(...e), n = Math.max(...e) - t, r = en / (e.length - 1);
4944
- return e.map((e, i) => `${i * r},${n === 0 ? tn / 2 : tn - (e - t) / n * tn}`).join(" ");
4997
+ var an = 48, on = 16;
4998
+ function sn(e) {
4999
+ if (!e || e.length < 2) return `0,${on / 2} ${an},${on / 2}`;
5000
+ let t = Math.min(...e), n = Math.max(...e) - t, r = an / (e.length - 1);
5001
+ return e.map((e, i) => `${i * r},${n === 0 ? on / 2 : on - (e - t) / n * on}`).join(" ");
4945
5002
  }
4946
- function rn(e) {
5003
+ function cn(e) {
4947
5004
  if (typeof e != "string") return "flat";
4948
5005
  let t = e.trim();
4949
5006
  return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
4950
5007
  }
4951
- function an({ label: e, value: t, icon: n, iconTone: r, delta: i, deltaDirection: a, sparkline: o, variant: s = "plain", size: c = "md", inline: l = !1, attention: u = !1, href: d, className: m = "", ...h }) {
4952
- A("AppKpiTile", h);
4953
- let g = `kpi${l ? " kpi-inline" : ""}${s === "filled" ? " kpi-filled" : s === "accent" ? " kpi-accent" : ""}${c === "lg" ? " kpi-lg" : ""}${u ? " kpi-attention" : ""}${m ? ` ${m}` : ""}`, _ = a ?? rn(i), v = _ === "up" ? "arrow-up" : _ === "down" ? "arrow-down" : null;
5008
+ function ln({ label: e, value: t, icon: n, iconTone: r, delta: i, deltaDirection: a, sparkline: o, variant: s = "plain", size: c = "md", inline: l = !1, attention: u = !1, href: d, className: m = "", ...h }) {
5009
+ j("AppKpiTile", h);
5010
+ let g = `kpi${l ? " kpi-inline" : ""}${s === "filled" ? " kpi-filled" : s === "accent" ? " kpi-accent" : ""}${c === "lg" ? " kpi-lg" : ""}${u ? " kpi-attention" : ""}${m ? ` ${m}` : ""}`, _ = a ?? cn(i), v = _ === "up" ? "arrow-up" : _ === "down" ? "arrow-down" : null;
4954
5011
  return /* @__PURE__ */ p(d ? "a" : "div", {
4955
5012
  className: g,
4956
5013
  ...d ? { href: d } : {},
4957
5014
  children: [
4958
5015
  n && /* @__PURE__ */ f("span", {
4959
5016
  className: `kpi-icon${r ? ` kpi-icon-${r}` : ""}`,
4960
- children: I(n, { size: 20 })
5017
+ children: L(n, { size: 20 })
4961
5018
  }),
4962
5019
  /* @__PURE__ */ f("div", {
4963
5020
  className: "kpi-label",
@@ -4969,19 +5026,19 @@ function an({ label: e, value: t, icon: n, iconTone: r, delta: i, deltaDirection
4969
5026
  }),
4970
5027
  i && /* @__PURE__ */ p("div", {
4971
5028
  className: `kpi-delta${_ === "flat" ? "" : ` ${_}`}`,
4972
- children: [v && /* @__PURE__ */ f(F, {
5029
+ children: [v && /* @__PURE__ */ f(I, {
4973
5030
  name: v,
4974
5031
  size: 13
4975
5032
  }), i]
4976
5033
  }),
4977
5034
  o && o.length > 0 && /* @__PURE__ */ f("svg", {
4978
5035
  className: "kpi-sparkline",
4979
- width: en,
4980
- height: tn,
4981
- viewBox: `0 0 ${en} ${tn}`,
5036
+ width: an,
5037
+ height: on,
5038
+ viewBox: `0 0 ${an} ${on}`,
4982
5039
  "aria-hidden": "true",
4983
5040
  children: /* @__PURE__ */ f("polyline", {
4984
- points: nn(o),
5041
+ points: sn(o),
4985
5042
  stroke: "currentColor",
4986
5043
  fill: "none"
4987
5044
  })
@@ -4991,21 +5048,21 @@ function an({ label: e, value: t, icon: n, iconTone: r, delta: i, deltaDirection
4991
5048
  }
4992
5049
  //#endregion
4993
5050
  //#region src/components/AppLogoPicker.jsx
4994
- var on = {
5051
+ var un = {
4995
5052
  sm: 72,
4996
5053
  md: 120,
4997
5054
  lg: 160
4998
5055
  };
4999
- function sn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: s = !1, disabled: c = !1, accept: d = "image/png,image/jpeg,image/webp", maxSizeMb: m = 5, overlayIcon: h = "image", overlayLabel: g = "Update photo", ariaLabel: _ = "Upload photo", label: v, hint: y, error: b, required: x = !1, variant: S = "initials", size: C = "md", shape: w = "circle", className: T = "", ...E }) {
5000
- A("AppLogoPicker", E);
5001
- let D = l(null), O = o(), k = n || O, [j, M] = u(null), [N, P] = u(""), [I, L] = u(!1), [R, ee] = u(!1);
5002
- a(() => () => j && URL.revokeObjectURL(j), [j]), a(() => {
5056
+ function dn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: s = !1, disabled: c = !1, accept: d = "image/png,image/jpeg,image/webp", maxSizeMb: m = 5, overlayIcon: h = "image", overlayLabel: g = "Update photo", ariaLabel: _ = "Upload photo", label: v, hint: y, error: b, required: x = !1, variant: S = "initials", size: C = "md", shape: w = "circle", className: T = "", ...E }) {
5057
+ j("AppLogoPicker", E);
5058
+ let D = l(null), O = o(), k = n || O, [A, M] = u(null), [N, P] = u(""), [F, L] = u(!1), [R, ee] = u(!1);
5059
+ a(() => () => A && URL.revokeObjectURL(A), [A]), a(() => {
5003
5060
  M(null), L(!1);
5004
5061
  }, [e]);
5005
- let z = s || c, B = j || (e && !I ? e : null), V = b || N, te = !z && (!!j || !!B && !!i), ne = () => {
5062
+ let z = s || c, te = A || (e && !F ? e : null), B = b || N, V = !z && (!!A || !!te && !!i), ne = () => {
5006
5063
  z || D.current?.click();
5007
5064
  }, re = (e) => {
5008
- let t = it(e, {
5065
+ let t = at(e, {
5009
5066
  accept: d,
5010
5067
  maxSizeMb: m
5011
5068
  });
@@ -5021,9 +5078,9 @@ function sn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: s
5021
5078
  if (e.preventDefault(), ee(!1), z) return;
5022
5079
  let t = e.dataTransfer.files?.[0];
5023
5080
  t && re(t);
5024
- }, H = () => {
5081
+ }, oe = () => {
5025
5082
  M(null), P(""), L(!1), D.current && (D.current.value = ""), i?.();
5026
- }, U = typeof C == "number" ? C : on[C] ?? on.md, W = Math.max(14, Math.round(U * .18)), G = Math.round(U * .5), oe = [
5083
+ }, H = typeof C == "number" ? C : un[C] ?? un.md, U = Math.max(14, Math.round(H * .18)), W = Math.round(H * .5), G = [
5027
5084
  "set-uploader",
5028
5085
  S === "avatar" ? "set-uploader--avatar" : "",
5029
5086
  w === "rounded" ? "set-uploader--rounded" : w === "square" ? "set-uploader--square" : "",
@@ -5042,8 +5099,8 @@ function sn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: s
5042
5099
  children: [
5043
5100
  /* @__PURE__ */ f("button", {
5044
5101
  type: "button",
5045
- className: oe,
5046
- style: { "--wui-logo-size": `${U}px` },
5102
+ className: G,
5103
+ style: { "--wui-logo-size": `${H}px` },
5047
5104
  "aria-busy": s || void 0,
5048
5105
  disabled: z,
5049
5106
  onClick: ne,
@@ -5057,30 +5114,30 @@ function sn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: s
5057
5114
  onDrop: ae,
5058
5115
  children: /* @__PURE__ */ p("span", {
5059
5116
  className: "set-uploader-ring",
5060
- children: [B ? /* @__PURE__ */ f("img", {
5117
+ children: [te ? /* @__PURE__ */ f("img", {
5061
5118
  className: "set-uploader-img",
5062
- src: B,
5119
+ src: te,
5063
5120
  alt: "",
5064
5121
  onError: () => L(!0)
5065
5122
  }) : /* @__PURE__ */ f("span", {
5066
5123
  className: "set-uploader-logo",
5067
- children: t || S === "avatar" && /* @__PURE__ */ f(F, {
5124
+ children: t || S === "avatar" && /* @__PURE__ */ f(I, {
5068
5125
  name: "person",
5069
- size: G
5126
+ size: W
5070
5127
  })
5071
5128
  }), s ? /* @__PURE__ */ f("span", {
5072
5129
  className: "set-uploader-overlay is-loading",
5073
5130
  "aria-hidden": "true",
5074
- children: /* @__PURE__ */ f(F, {
5131
+ children: /* @__PURE__ */ f(I, {
5075
5132
  name: "refresh-cw",
5076
- size: W,
5133
+ size: U,
5077
5134
  className: "wui-spin"
5078
5135
  })
5079
5136
  }) : !c && /* @__PURE__ */ p("span", {
5080
5137
  className: "set-uploader-overlay",
5081
- children: [/* @__PURE__ */ f(F, {
5138
+ children: [/* @__PURE__ */ f(I, {
5082
5139
  name: h,
5083
- size: W
5140
+ size: U
5084
5141
  }), /* @__PURE__ */ f("span", { children: g })]
5085
5142
  })]
5086
5143
  })
@@ -5088,11 +5145,11 @@ function sn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: s
5088
5145
  /* @__PURE__ */ f("button", {
5089
5146
  type: "button",
5090
5147
  className: "set-uploader-remove",
5091
- hidden: !te,
5148
+ hidden: !V,
5092
5149
  "aria-label": "Remove photo",
5093
5150
  title: "Remove photo",
5094
- onClick: H,
5095
- children: /* @__PURE__ */ f(F, {
5151
+ onClick: oe,
5152
+ children: /* @__PURE__ */ f(I, {
5096
5153
  name: "x",
5097
5154
  size: 14
5098
5155
  })
@@ -5109,21 +5166,58 @@ function sn({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: s
5109
5166
  })
5110
5167
  ]
5111
5168
  }),
5112
- y && !V && /* @__PURE__ */ f("div", {
5169
+ y && !B && /* @__PURE__ */ f("div", {
5113
5170
  className: "set-uploader-hint",
5114
5171
  children: y
5115
5172
  }),
5116
- V && /* @__PURE__ */ f("div", {
5173
+ B && /* @__PURE__ */ f("div", {
5117
5174
  className: "field-error",
5118
- children: V
5175
+ children: B
5119
5176
  })
5120
5177
  ]
5121
5178
  });
5122
5179
  }
5123
5180
  //#endregion
5181
+ //#region src/components/AppMeter.jsx
5182
+ var fn = [
5183
+ "info",
5184
+ "success",
5185
+ "warning",
5186
+ "danger",
5187
+ "neutral"
5188
+ ];
5189
+ function pn(e, t, n) {
5190
+ let r = n - t;
5191
+ if (!(r > 0)) return 0;
5192
+ let i = Math.min(100, Math.max(0, (e - t) / r * 100));
5193
+ return Number(i.toFixed(2));
5194
+ }
5195
+ function mn(e, t, n, r, i) {
5196
+ if (t == null && n == null) return i;
5197
+ let a = "mid";
5198
+ 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";
5199
+ }
5200
+ function hn({ 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 }) {
5201
+ j("AppMeter", d);
5202
+ let p = mn(e, a, o, i, fn.includes(r) ? r : "info"), m = pn(e, t, n);
5203
+ return /* @__PURE__ */ f("div", {
5204
+ className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
5205
+ role: "meter",
5206
+ "aria-valuenow": e,
5207
+ "aria-valuemin": t,
5208
+ "aria-valuemax": n,
5209
+ "aria-label": c || void 0,
5210
+ children: /* @__PURE__ */ f("div", {
5211
+ className: `progress-bar wui-progress-${p}`,
5212
+ style: { width: `${m}%` },
5213
+ children: l && c
5214
+ })
5215
+ });
5216
+ }
5217
+ //#endregion
5124
5218
  //#region src/components/AppMultiSelect.jsx
5125
- function cn({ values: e, onChange: t, options: n, placeholder: r = "Select…", searchPlaceholder: i = "Search…", searchable: o = !0, disabled: s = !1, icon: c, size: u, collapseChips: d = !1, name: m, label: h, error: g, hint: _, required: v = !1, fieldClassName: y = "", ...b }) {
5126
- A("AppMultiSelect", b);
5219
+ function gn({ values: e, onChange: t, options: n, placeholder: r = "Select…", searchPlaceholder: i = "Search…", searchable: o = !0, disabled: s = !1, icon: c, size: u, collapseChips: d = !1, name: m, label: h, error: g, hint: _, required: v = !1, fieldClassName: y = "", ...b }) {
5220
+ j("AppMultiSelect", b);
5127
5221
  let x = l(null);
5128
5222
  return a(() => {
5129
5223
  let e = x.current;
@@ -5172,8 +5266,8 @@ function cn({ values: e, onChange: t, options: n, placeholder: r = "Select…",
5172
5266
  }
5173
5267
  //#endregion
5174
5268
  //#region src/components/AppOtpInput.jsx
5175
- var ln = r(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: s, required: c = !1, hint: u, error: d, disabled: m = !1, name: h, id: g, className: _ = "", ...v }, y) {
5176
- A("AppOtpInput", v);
5269
+ var _n = r(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: s, required: c = !1, hint: u, error: d, disabled: m = !1, name: h, id: g, className: _ = "", ...v }, y) {
5270
+ j("AppOtpInput", v);
5177
5271
  let b = l(null), x = o(), S = g || h || x, C = (e) => {
5178
5272
  b.current = e, typeof y == "function" ? y(e) : y && (y.current = e);
5179
5273
  };
@@ -5225,8 +5319,8 @@ var ln = r(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode:
5225
5319
  });
5226
5320
  //#endregion
5227
5321
  //#region src/components/AppPageHeader.jsx
5228
- function un({ title: e, subtitle: t, actions: n, className: r = "", ...i }) {
5229
- return A("AppPageHeader", i), /* @__PURE__ */ p("div", {
5322
+ function vn({ title: e, subtitle: t, actions: n, className: r = "", ...i }) {
5323
+ return j("AppPageHeader", i), /* @__PURE__ */ p("div", {
5230
5324
  className: `page-header${n ? " d-flex align-items-end justify-content-between" : ""}${r ? ` ${r}` : ""}`,
5231
5325
  children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("div", {
5232
5326
  className: "page-title",
@@ -5242,8 +5336,8 @@ function un({ title: e, subtitle: t, actions: n, className: r = "", ...i }) {
5242
5336
  }
5243
5337
  //#endregion
5244
5338
  //#region src/components/AppPhoneNumberInput.jsx
5245
- function dn({ value: e, onChange: t, country: n, disabled: r = !1, name: i, label: o = "Phone number", placeholder: s, required: c = !1, error: u, fieldClassName: d = "", ...m }) {
5246
- A("AppPhoneNumberInput", m);
5339
+ function yn({ value: e, onChange: t, country: n, disabled: r = !1, name: i, label: o = "Phone number", placeholder: s, required: c = !1, error: u, fieldClassName: d = "", ...m }) {
5340
+ j("AppPhoneNumberInput", m);
5247
5341
  let h = l(null), g = u && i ? `${i}-error` : void 0;
5248
5342
  return a(() => {
5249
5343
  let t = h.current;
@@ -5281,19 +5375,19 @@ function dn({ value: e, onChange: t, country: n, disabled: r = !1, name: i, labe
5281
5375
  }
5282
5376
  //#endregion
5283
5377
  //#region src/components/AppPopover.jsx
5284
- function fn({ trigger: e, children: n, title: r, placement: i = "bottom", triggerType: a = "click", className: s = "", ...c }) {
5285
- A("AppPopover", c);
5378
+ function bn({ trigger: e, children: n, title: r, placement: i = "bottom", triggerType: a = "click", className: s = "", ...c }) {
5379
+ j("AppPopover", c);
5286
5380
  let l = o(), [d, m] = u(!1);
5287
- return /* @__PURE__ */ f(S, {
5381
+ return /* @__PURE__ */ f(C, {
5288
5382
  trigger: a,
5289
5383
  placement: i,
5290
- overlay: /* @__PURE__ */ p(C, {
5384
+ overlay: /* @__PURE__ */ p(w, {
5291
5385
  id: l,
5292
5386
  className: s || void 0,
5293
- children: [r && /* @__PURE__ */ f(C.Header, {
5387
+ children: [r && /* @__PURE__ */ f(w.Header, {
5294
5388
  as: "h3",
5295
5389
  children: r
5296
- }), /* @__PURE__ */ f(C.Body, { children: n })]
5390
+ }), /* @__PURE__ */ f(w.Body, { children: n })]
5297
5391
  }),
5298
5392
  rootClose: a === "click",
5299
5393
  onToggle: m,
@@ -5302,8 +5396,8 @@ function fn({ trigger: e, children: n, title: r, placement: i = "bottom", trigge
5302
5396
  }
5303
5397
  //#endregion
5304
5398
  //#region src/components/AppPricingCard.jsx
5305
- function pn({ 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 }) {
5306
- return A("AppPricingCard", u), /* @__PURE__ */ p("div", {
5399
+ function xn({ 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 }) {
5400
+ return j("AppPricingCard", u), /* @__PURE__ */ p("div", {
5307
5401
  className: [
5308
5402
  "plan-card",
5309
5403
  o ? "featured" : "",
@@ -5338,7 +5432,7 @@ function pn({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
5338
5432
  className: t ? void 0 : "excluded",
5339
5433
  children: [/* @__PURE__ */ f("span", {
5340
5434
  className: "plan-feature-icon",
5341
- children: /* @__PURE__ */ f(F, {
5435
+ children: /* @__PURE__ */ f(I, {
5342
5436
  name: t ? "check" : "x",
5343
5437
  size: 16
5344
5438
  })
@@ -5354,9 +5448,46 @@ function pn({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
5354
5448
  });
5355
5449
  }
5356
5450
  //#endregion
5451
+ //#region src/components/AppProgress.jsx
5452
+ var Sn = [
5453
+ "info",
5454
+ "success",
5455
+ "warning",
5456
+ "danger",
5457
+ "neutral"
5458
+ ];
5459
+ function Cn(e, t) {
5460
+ if (!(t > 0)) return 0;
5461
+ let n = Math.min(100, Math.max(0, e / t * 100));
5462
+ return Number(n.toFixed(2));
5463
+ }
5464
+ function wn({ 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 }) {
5465
+ j("AppProgress", u);
5466
+ let d = Sn.includes(n) ? n : "info", p = Cn(e, t), m = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, h = [
5467
+ "progress-bar",
5468
+ `wui-progress-${d}`,
5469
+ o || s ? "progress-bar-striped" : "",
5470
+ s ? "progress-bar-animated" : "",
5471
+ c ? "wui-progress-indeterminate" : ""
5472
+ ].filter(Boolean).join(" ");
5473
+ return /* @__PURE__ */ f("div", {
5474
+ className: m,
5475
+ role: "progressbar",
5476
+ "aria-valuemin": 0,
5477
+ "aria-valuemax": t,
5478
+ ...c ? {} : { "aria-valuenow": e },
5479
+ "aria-label": i || void 0,
5480
+ children: /* @__PURE__ */ f("div", {
5481
+ className: h,
5482
+ style: c ? void 0 : { width: `${p}%` },
5483
+ children: !c && a && i
5484
+ })
5485
+ });
5486
+ }
5487
+ //#endregion
5357
5488
  //#region src/components/AppRadio.jsx
5358
- var mn = r(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...s }, c) {
5359
- A("AppRadio", s);
5489
+ var Tn = r(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...s }, c) {
5490
+ j("AppRadio", s);
5360
5491
  let l = o(), u = t || l;
5361
5492
  return /* @__PURE__ */ p("div", {
5362
5493
  className: `form-check${a ? ` ${a}` : ""}`,
@@ -5387,8 +5518,8 @@ var mn = r(function({ label: e, id: t, name: n, error: r, hint: i, className: a
5387
5518
  });
5388
5519
  //#endregion
5389
5520
  //#region src/components/AppRepeater.jsx
5390
- function hn({ 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 }) {
5391
- A("AppRepeater", d);
5521
+ function En({ 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 }) {
5522
+ j("AppRepeater", d);
5392
5523
  let m = typeof c == "number" && e.length >= c, h = !!r && e.length > s;
5393
5524
  return /* @__PURE__ */ p("div", {
5394
5525
  className: `repeater${u ? ` ${u}` : ""}`,
@@ -5408,7 +5539,7 @@ function hn({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "
5408
5539
  className: "repeater-body",
5409
5540
  children: t(e, n)
5410
5541
  }),
5411
- h && /* @__PURE__ */ f(L, {
5542
+ h && /* @__PURE__ */ f(R, {
5412
5543
  icon: "trash-2",
5413
5544
  label: `${a} ${n + 1}`,
5414
5545
  danger: !0,
@@ -5431,11 +5562,11 @@ function hn({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "
5431
5562
  }
5432
5563
  //#endregion
5433
5564
  //#region src/components/AppResourceCard.jsx
5434
- function gn({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
5435
- A("AppResourceCard", s);
5565
+ function Dn({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
5566
+ j("AppResourceCard", s);
5436
5567
  let c = /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("span", {
5437
5568
  className: "res-card-icon",
5438
- children: /* @__PURE__ */ f(F, {
5569
+ children: /* @__PURE__ */ f(I, {
5439
5570
  name: e,
5440
5571
  size: 18
5441
5572
  })
@@ -5463,8 +5594,8 @@ function gn({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
5463
5594
  }
5464
5595
  //#endregion
5465
5596
  //#region src/components/AppScrollbar.jsx
5466
- function _n({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
5467
- return A("AppScrollbar", i), /* @__PURE__ */ f("div", {
5597
+ function On({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
5598
+ return j("AppScrollbar", i), /* @__PURE__ */ f("div", {
5468
5599
  className: t ? `wui-scroll ${t}` : "wui-scroll",
5469
5600
  style: n == null ? r : {
5470
5601
  maxHeight: n,
@@ -5475,8 +5606,8 @@ function _n({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
5475
5606
  }
5476
5607
  //#endregion
5477
5608
  //#region src/components/AppSearch.jsx
5478
- function vn({ value: e, onValueChange: t, placeholder: n = "Search…", ariaLabel: r, iconSize: i = 18, size: a, loading: o = !1, disabled: s = !1, className: c = "", ...l }) {
5479
- return A("AppSearch", l), /* @__PURE__ */ p("div", {
5609
+ function kn({ value: e, onValueChange: t, placeholder: n = "Search…", ariaLabel: r, iconSize: i = 18, size: a, loading: o = !1, disabled: s = !1, className: c = "", ...l }) {
5610
+ return j("AppSearch", l), /* @__PURE__ */ p("div", {
5480
5611
  className: [
5481
5612
  "search-wrap",
5482
5613
  e ? "has-value" : "",
@@ -5489,12 +5620,12 @@ function vn({ value: e, onValueChange: t, placeholder: n = "Search…", ariaLabe
5489
5620
  className: "search-spinner",
5490
5621
  "aria-hidden": "true"
5491
5622
  }),
5492
- /* @__PURE__ */ f(F, {
5623
+ /* @__PURE__ */ f(I, {
5493
5624
  name: "search",
5494
5625
  size: i,
5495
5626
  className: "search-icon"
5496
5627
  }),
5497
- /* @__PURE__ */ f(y.Control, {
5628
+ /* @__PURE__ */ f(b.Control, {
5498
5629
  type: "search",
5499
5630
  className: "input search-input",
5500
5631
  placeholder: n,
@@ -5509,7 +5640,7 @@ function vn({ value: e, onValueChange: t, placeholder: n = "Search…", ariaLabe
5509
5640
  className: "search-clear",
5510
5641
  "aria-label": "Clear search",
5511
5642
  onClick: () => t(""),
5512
- children: /* @__PURE__ */ f(F, {
5643
+ children: /* @__PURE__ */ f(I, {
5513
5644
  name: "x",
5514
5645
  size: 16
5515
5646
  })
@@ -5519,8 +5650,8 @@ function vn({ value: e, onValueChange: t, placeholder: n = "Search…", ariaLabe
5519
5650
  }
5520
5651
  //#endregion
5521
5652
  //#region src/components/AppSegmented.jsx
5522
- function yn({ options: e = [], value: t, onChange: n, label: r, name: i, size: c = "md", fullWidth: u = !1, disabled: d = !1, className: m = "", ...h }) {
5523
- A("AppSegmented", h);
5653
+ function An({ options: e = [], value: t, onChange: n, label: r, name: i, size: c = "md", fullWidth: u = !1, disabled: d = !1, className: m = "", ...h }) {
5654
+ j("AppSegmented", h);
5524
5655
  let g = o(), _ = i || g, v = l(null), y = l(null), b = [
5525
5656
  "segmented",
5526
5657
  c === "sm" ? "segmented-sm" : c === "lg" ? "segmented-lg" : "",
@@ -5573,7 +5704,7 @@ function yn({ options: e = [], value: t, onChange: n, label: r, name: i, size: c
5573
5704
  disabled: d || e.disabled,
5574
5705
  onChange: () => n?.(e.value)
5575
5706
  }),
5576
- e.icon && /* @__PURE__ */ f(F, {
5707
+ e.icon && /* @__PURE__ */ f(I, {
5577
5708
  name: e.icon,
5578
5709
  size: 13
5579
5710
  }),
@@ -5593,14 +5724,14 @@ function yn({ options: e = [], value: t, onChange: n, label: r, name: i, size: c
5593
5724
  }
5594
5725
  //#endregion
5595
5726
  //#region src/components/AppSelect.jsx
5596
- var bn = (e) => e == null ? "" : e.label ?? e.text ?? "";
5597
- function xn({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", searchPlaceholder: i = "Search...", searchable: o = !1, clearable: s = !1, size: c, icon: u, floatingLabel: d = !1, disabled: m, 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 }) {
5598
- A("AppSelect", O);
5727
+ var jn = (e) => e == null ? "" : e.label ?? e.text ?? "";
5728
+ function Mn({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", searchPlaceholder: i = "Search...", searchable: o = !1, clearable: s = !1, size: c, icon: u, floatingLabel: d = !1, disabled: m, 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 }) {
5729
+ j("AppSelect", O);
5599
5730
  let k = l(null);
5600
5731
  a(() => {
5601
5732
  k.current && (k.current.options = n.map((e) => ({
5602
5733
  value: e.value,
5603
- label: bn(e),
5734
+ label: jn(e),
5604
5735
  icon: e.icon
5605
5736
  })));
5606
5737
  }, [n]), a(() => {
@@ -5612,7 +5743,7 @@ function xn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5612
5743
  let n = () => t?.(e.value);
5613
5744
  return e.addEventListener("change", n), () => e.removeEventListener("change", n);
5614
5745
  }, [t]);
5615
- let j = /* @__PURE__ */ f("wui-select", {
5746
+ let A = /* @__PURE__ */ f("wui-select", {
5616
5747
  "aria-label": T || (typeof h == "string" ? h : void 0),
5617
5748
  "aria-labelledby": E || void 0,
5618
5749
  "aria-describedby": D || void 0,
@@ -5628,7 +5759,7 @@ function xn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5628
5759
  disabled: m ? "" : void 0,
5629
5760
  required: g ? "" : void 0
5630
5761
  });
5631
- if (!h && !_ && !v) return j;
5762
+ if (!h && !_ && !v) return A;
5632
5763
  let M = x || S, N = d && h;
5633
5764
  return /* @__PURE__ */ p("div", {
5634
5765
  className: [
@@ -5643,7 +5774,7 @@ function xn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5643
5774
  children: [
5644
5775
  h,
5645
5776
  g && /* @__PURE__ */ f(Q, {}),
5646
- y && /* @__PURE__ */ f(bt, {
5777
+ y && /* @__PURE__ */ f(wt, {
5647
5778
  label: b,
5648
5779
  children: y
5649
5780
  })
@@ -5651,12 +5782,12 @@ function xn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5651
5782
  }),
5652
5783
  N ? /* @__PURE__ */ p("div", {
5653
5784
  className: "field-float",
5654
- children: [j, /* @__PURE__ */ p("label", {
5785
+ children: [A, /* @__PURE__ */ p("label", {
5655
5786
  className: "float-label",
5656
5787
  htmlFor: M,
5657
5788
  children: [h, g && /* @__PURE__ */ f(Q, {})]
5658
5789
  })]
5659
- }) : j,
5790
+ }) : A,
5660
5791
  _ ? /* @__PURE__ */ f("div", {
5661
5792
  className: "field-error",
5662
5793
  children: _
@@ -5669,8 +5800,8 @@ function xn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
5669
5800
  }
5670
5801
  //#endregion
5671
5802
  //#region src/components/AppShell.jsx
5672
- function Sn({ groups: e = [], brand: t, sidebarFooter: n, topbarStart: r, topbarEnd: i, footer: o, children: s, collapsed: c, onCollapsedChange: l, noSidebar: d = !1, navLabel: m = "Main navigation", linkComponent: h, className: g = "", ..._ }) {
5673
- A("AppShell", _);
5803
+ function Nn({ groups: e = [], brand: t, sidebarFooter: n, topbarStart: r, topbarEnd: i, footer: o, children: s, collapsed: c, onCollapsedChange: l, noSidebar: d = !1, navLabel: m = "Main navigation", linkComponent: h, className: g = "", ..._ }) {
5804
+ j("AppShell", _);
5674
5805
  let [v, y] = u(!1), [b, x] = u(!1), [S, C] = u(!1), w = c ?? v;
5675
5806
  return a(() => {
5676
5807
  let e = () => C(window.scrollY > 4);
@@ -5705,7 +5836,7 @@ function Sn({ groups: e = [], brand: t, sidebarFooter: n, topbarStart: r, topbar
5705
5836
  children: [e.label && /* @__PURE__ */ f("div", {
5706
5837
  className: "app-nav-group-label",
5707
5838
  children: e.label
5708
- }), e.items.map((e) => /* @__PURE__ */ f(Cn, {
5839
+ }), e.items.map((e) => /* @__PURE__ */ f(Pn, {
5709
5840
  item: e,
5710
5841
  linkComponent: h,
5711
5842
  onNavigate: () => x(!1)
@@ -5727,7 +5858,7 @@ function Sn({ groups: e = [], brand: t, sidebarFooter: n, topbarStart: r, topbar
5727
5858
  },
5728
5859
  "aria-label": w ? "Expand navigation" : "Collapse navigation",
5729
5860
  "aria-expanded": !w,
5730
- children: /* @__PURE__ */ f(F, {
5861
+ children: /* @__PURE__ */ f(I, {
5731
5862
  name: "chevron-left",
5732
5863
  size: 14
5733
5864
  })
@@ -5745,7 +5876,7 @@ function Sn({ groups: e = [], brand: t, sidebarFooter: n, topbarStart: r, topbar
5745
5876
  onClick: () => x(!0),
5746
5877
  "aria-label": "Open navigation",
5747
5878
  "aria-expanded": b,
5748
- children: /* @__PURE__ */ f(F, {
5879
+ children: /* @__PURE__ */ f(I, {
5749
5880
  name: "menu",
5750
5881
  size: 18
5751
5882
  })
@@ -5775,10 +5906,10 @@ function Sn({ groups: e = [], brand: t, sidebarFooter: n, topbarStart: r, topbar
5775
5906
  ]
5776
5907
  });
5777
5908
  }
5778
- function Cn({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
5909
+ function Pn({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
5779
5910
  let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [o, s] = u(a), c = typeof e.label == "string" ? e.label : void 0, l = !r && e.icon && /* @__PURE__ */ f("span", {
5780
5911
  className: "app-nav-icon",
5781
- children: /* @__PURE__ */ f(F, {
5912
+ children: /* @__PURE__ */ f(I, {
5782
5913
  name: e.icon,
5783
5914
  size: 22
5784
5915
  })
@@ -5801,7 +5932,7 @@ function Cn({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
5801
5932
  m,
5802
5933
  /* @__PURE__ */ f("span", {
5803
5934
  className: "app-nav-caret",
5804
- children: /* @__PURE__ */ f(F, {
5935
+ children: /* @__PURE__ */ f(I, {
5805
5936
  name: "chevron-right",
5806
5937
  size: 16
5807
5938
  })
@@ -5811,7 +5942,7 @@ function Cn({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
5811
5942
  className: `app-nav-sub${o ? " expanded" : ""}`,
5812
5943
  children: /* @__PURE__ */ f("div", {
5813
5944
  className: "app-nav-sub-inner",
5814
- children: e.children.map((e) => /* @__PURE__ */ f(Cn, {
5945
+ children: e.children.map((e) => /* @__PURE__ */ f(Pn, {
5815
5946
  item: e,
5816
5947
  linkComponent: t,
5817
5948
  onNavigate: n,
@@ -5828,7 +5959,7 @@ function Cn({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
5828
5959
  m,
5829
5960
  e.trailingIcon && /* @__PURE__ */ f("span", {
5830
5961
  className: "app-nav-trailing",
5831
- children: /* @__PURE__ */ f(F, {
5962
+ children: /* @__PURE__ */ f(I, {
5832
5963
  name: e.trailingIcon,
5833
5964
  size: 16
5834
5965
  })
@@ -5852,7 +5983,7 @@ function Cn({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
5852
5983
  }
5853
5984
  //#endregion
5854
5985
  //#region src/components/AppSidebarMenu.jsx
5855
- var wn = {
5986
+ var Fn = {
5856
5987
  left: "start",
5857
5988
  right: "end",
5858
5989
  start: "start",
@@ -5860,11 +5991,11 @@ var wn = {
5860
5991
  top: "top",
5861
5992
  bottom: "bottom"
5862
5993
  };
5863
- function Tn({ 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: m = !0, closeButton: h = !0, responsive: g, className: _ = "", bodyClassName: v = "", ariaLabel: y, ...b }) {
5864
- return A("AppSidebarMenu", b), /* @__PURE__ */ p(x, {
5994
+ function In({ 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: m = !0, closeButton: h = !0, responsive: g, className: _ = "", bodyClassName: v = "", ariaLabel: y, ...b }) {
5995
+ return j("AppSidebarMenu", b), /* @__PURE__ */ p(S, {
5865
5996
  show: e,
5866
5997
  onHide: t,
5867
- placement: wn[n] || "end",
5998
+ placement: Fn[n] || "end",
5868
5999
  backdrop: u,
5869
6000
  scroll: d,
5870
6001
  keyboard: m,
@@ -5882,7 +6013,7 @@ function Tn({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
5882
6013
  className: "drawer-title",
5883
6014
  children: [i && /* @__PURE__ */ f("span", {
5884
6015
  className: "drawer-title-ic",
5885
- children: /* @__PURE__ */ f(F, {
6016
+ children: /* @__PURE__ */ f(I, {
5886
6017
  name: i,
5887
6018
  size: 18
5888
6019
  })
@@ -5892,13 +6023,13 @@ function Tn({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
5892
6023
  className: "btn-icon",
5893
6024
  onClick: t,
5894
6025
  "aria-label": "Close",
5895
- children: /* @__PURE__ */ f(F, {
6026
+ children: /* @__PURE__ */ f(I, {
5896
6027
  name: "x",
5897
6028
  size: 16
5898
6029
  })
5899
6030
  })]
5900
6031
  }) : a,
5901
- /* @__PURE__ */ f(x.Body, {
6032
+ /* @__PURE__ */ f(S.Body, {
5902
6033
  className: v,
5903
6034
  children: o
5904
6035
  }),
@@ -5911,14 +6042,14 @@ function Tn({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
5911
6042
  }
5912
6043
  //#endregion
5913
6044
  //#region src/components/AppSplash.jsx
5914
- var En = {
6045
+ var Ln = {
5915
6046
  sm: 44,
5916
6047
  md: 56,
5917
6048
  lg: 72
5918
6049
  };
5919
- function Dn({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
5920
- A("AppSplash", c);
5921
- let l = typeof a == "number" ? a : En[a] ?? En.md, u = i === "ring" ? /* @__PURE__ */ f("span", {
6050
+ function Rn({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
6051
+ j("AppSplash", c);
6052
+ let l = typeof a == "number" ? a : Ln[a] ?? Ln.md, u = i === "ring" ? /* @__PURE__ */ f("span", {
5922
6053
  className: "splash-ring",
5923
6054
  "aria-hidden": "true"
5924
6055
  }) : i === "dots" ? /* @__PURE__ */ p("span", {
@@ -5961,23 +6092,23 @@ function Dn({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
5961
6092
  }
5962
6093
  //#endregion
5963
6094
  //#region src/components/AppStatusBadge.jsx
5964
- function On({ label: e, tone: t = "neutral", className: n = "", ...r }) {
5965
- return A("AppStatusBadge", r), e == null || e === "" ? "—" : /* @__PURE__ */ f("span", {
5966
- className: `status-label ${ut(t)}${n ? ` ${n}` : ""}`,
6095
+ function zn({ label: e, tone: t = "neutral", className: n = "", ...r }) {
6096
+ return j("AppStatusBadge", r), e == null || e === "" ? "—" : /* @__PURE__ */ f("span", {
6097
+ className: `status-label ${dt(t)}${n ? ` ${n}` : ""}`,
5967
6098
  ...r,
5968
6099
  children: e
5969
6100
  });
5970
6101
  }
5971
6102
  //#endregion
5972
6103
  //#region src/components/AppStepper.jsx
5973
- function kn({ steps: e = [], variant: t = "steps", label: n = "Progress", linkComponent: r, className: i = "", ...a }) {
5974
- return A("AppStepper", a), /* @__PURE__ */ f("nav", {
6104
+ function Bn({ steps: e = [], variant: t = "steps", label: n = "Progress", linkComponent: r, className: i = "", ...a }) {
6105
+ return j("AppStepper", a), /* @__PURE__ */ f("nav", {
5975
6106
  className: [t === "journey" ? "stepper stepper-journey" : "stepper", i].filter(Boolean).join(" "),
5976
6107
  "aria-label": n,
5977
6108
  children: e.map((n, i) => {
5978
6109
  let a = n.status || "pending", o = `step${a === "pending" ? "" : ` ${a}`}`, s = /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("span", {
5979
6110
  className: "step-circle",
5980
- children: a === "done" ? /* @__PURE__ */ f(F, {
6111
+ children: a === "done" ? /* @__PURE__ */ f(I, {
5981
6112
  name: "check",
5982
6113
  size: 14
5983
6114
  }) : i + 1
@@ -6017,8 +6148,8 @@ function kn({ steps: e = [], variant: t = "steps", label: n = "Progress", linkCo
6017
6148
  }
6018
6149
  //#endregion
6019
6150
  //#region src/components/AppSwitch.jsx
6020
- var An = r(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...s }, c) {
6021
- A("AppSwitch", s);
6151
+ var Vn = r(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...s }, c) {
6152
+ j("AppSwitch", s);
6022
6153
  let l = o(), u = t || n || l;
6023
6154
  return /* @__PURE__ */ p("div", {
6024
6155
  className: `form-check form-switch${a ? ` ${a}` : ""}`,
@@ -6049,13 +6180,13 @@ var An = r(function({ label: e, id: t, name: n, error: r, hint: i, className: a
6049
6180
  });
6050
6181
  //#endregion
6051
6182
  //#region src/components/AppTableEmptyState.jsx
6052
- function jn({ icon: e, title: t, text: n, action: r, ...i }) {
6053
- return A("AppTableEmptyState", i), /* @__PURE__ */ p("div", {
6183
+ function Hn({ icon: e, title: t, text: n, action: r, ...i }) {
6184
+ return j("AppTableEmptyState", i), /* @__PURE__ */ p("div", {
6054
6185
  className: "tbl-empty",
6055
6186
  children: [
6056
6187
  /* @__PURE__ */ f("span", {
6057
6188
  className: "tbl-empty-icon",
6058
- children: I(e, { size: 24 })
6189
+ children: L(e, { size: 24 })
6059
6190
  }),
6060
6191
  /* @__PURE__ */ f("div", {
6061
6192
  className: "tbl-empty-title",
@@ -6074,8 +6205,8 @@ function jn({ icon: e, title: t, text: n, action: r, ...i }) {
6074
6205
  }
6075
6206
  //#endregion
6076
6207
  //#region src/components/AppTabs.jsx
6077
- function Mn({ tabs: e, value: t, onChange: n, variant: r = "underline", orientation: o = "horizontal", size: c = "md", fitted: d = !1, activation: m = "automatic", ariaLabel: h, className: g = "", style: _, ...v }) {
6078
- A("AppTabs", v);
6208
+ function Un({ tabs: e, value: t, onChange: n, variant: r = "underline", orientation: o = "horizontal", size: c = "md", fitted: d = !1, activation: m = "automatic", ariaLabel: h, className: g = "", style: _, ...v }) {
6209
+ j("AppTabs", v);
6079
6210
  let y = l(null), b = l(null), x = o === "vertical", [S, C] = u(t);
6080
6211
  a(() => {
6081
6212
  C(t);
@@ -6087,7 +6218,7 @@ function Mn({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
6087
6218
  if (!e || !t || x) return;
6088
6219
  let n = e.scrollWidth - e.clientWidth;
6089
6220
  t.classList.toggle("is-overflow-start", e.scrollLeft > 1), t.classList.toggle("is-overflow-end", n > 1 && e.scrollLeft < n - 1);
6090
- }, [x]), j = i(() => {
6221
+ }, [x]), A = i(() => {
6091
6222
  let n = y.current;
6092
6223
  if (!n) return;
6093
6224
  let r = n.querySelector(".app-tab.active");
@@ -6108,12 +6239,12 @@ function Mn({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
6108
6239
  k
6109
6240
  ]);
6110
6241
  s(() => {
6111
- j();
6112
- }, [j]), a(() => {
6242
+ A();
6243
+ }, [A]), a(() => {
6113
6244
  if (typeof ResizeObserver > "u") return;
6114
- let e = new ResizeObserver(() => j());
6245
+ let e = new ResizeObserver(() => A());
6115
6246
  return y.current && e.observe(y.current), b.current && e.observe(b.current), () => e.disconnect();
6116
- }, [j]);
6247
+ }, [A]);
6117
6248
  function M(t) {
6118
6249
  let r = t.target?.dataset?.key;
6119
6250
  if (r == null) return;
@@ -6139,7 +6270,7 @@ function Mn({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
6139
6270
  c === "lg" ? "app-tabs-lg" : "",
6140
6271
  d ? "app-tabs-fitted" : "",
6141
6272
  g
6142
- ].filter(Boolean).join(" "), I = /* @__PURE__ */ p("div", {
6273
+ ].filter(Boolean).join(" "), F = /* @__PURE__ */ p("div", {
6143
6274
  ref: y,
6144
6275
  role: "tablist",
6145
6276
  "aria-orientation": x ? "vertical" : void 0,
@@ -6175,7 +6306,7 @@ function Mn({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
6175
6306
  "aria-hidden": "true"
6176
6307
  })]
6177
6308
  });
6178
- return x ? I : /* @__PURE__ */ p("div", {
6309
+ return x ? F : /* @__PURE__ */ p("div", {
6179
6310
  ref: b,
6180
6311
  className: "app-tabs-wrap",
6181
6312
  children: [
@@ -6185,19 +6316,19 @@ function Mn({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
6185
6316
  "aria-hidden": "true",
6186
6317
  tabIndex: -1,
6187
6318
  onClick: () => N(-1),
6188
- children: /* @__PURE__ */ f(F, {
6319
+ children: /* @__PURE__ */ f(I, {
6189
6320
  name: "chevron-left",
6190
6321
  size: 16
6191
6322
  })
6192
6323
  }),
6193
- I,
6324
+ F,
6194
6325
  /* @__PURE__ */ f("button", {
6195
6326
  type: "button",
6196
6327
  className: "app-tabs-scroll-btn next",
6197
6328
  "aria-hidden": "true",
6198
6329
  tabIndex: -1,
6199
6330
  onClick: () => N(1),
6200
- children: /* @__PURE__ */ f(F, {
6331
+ children: /* @__PURE__ */ f(I, {
6201
6332
  name: "chevron-right",
6202
6333
  size: 16
6203
6334
  })
@@ -6207,14 +6338,14 @@ function Mn({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
6207
6338
  }
6208
6339
  //#endregion
6209
6340
  //#region src/components/AppTextarea.jsx
6210
- var Nn = r(function({ label: e, required: t = !1, error: n, hint: r, help: a, helpLabel: o = "More information", id: c, name: u, rows: d = 4, autoGrow: m = !1, className: h = "", fieldClassName: g = "", ..._ }, v) {
6211
- A("AppTextarea", _);
6212
- let b = c || u, x = [
6341
+ var Wn = r(function({ label: e, required: t = !1, error: n, hint: r, help: a, helpLabel: o = "More information", id: c, name: u, rows: d = 4, autoGrow: m = !1, className: h = "", fieldClassName: g = "", ..._ }, v) {
6342
+ j("AppTextarea", _);
6343
+ let y = c || u, x = [
6213
6344
  "textarea",
6214
6345
  m ? "autosize" : "",
6215
6346
  n ? "error" : "",
6216
6347
  h
6217
- ].filter(Boolean).join(" "), S = n && b ? `${b}-error` : void 0, C = r && b ? `${b}-hint` : void 0, w = S || C, T = l(null), E = (e) => {
6348
+ ].filter(Boolean).join(" "), S = n && y ? `${y}-error` : void 0, C = r && y ? `${y}-hint` : void 0, w = S || C, T = l(null), E = (e) => {
6218
6349
  T.current = e, typeof v == "function" ? v(e) : v && (v.current = e);
6219
6350
  }, D = i(() => {
6220
6351
  let e = T.current;
@@ -6230,24 +6361,24 @@ var Nn = r(function({ label: e, required: t = !1, error: n, hint: r, help: a, he
6230
6361
  let O = (e) => {
6231
6362
  m && D(), _.onInput?.(e);
6232
6363
  };
6233
- return /* @__PURE__ */ p(y.Group, {
6364
+ return /* @__PURE__ */ p(b.Group, {
6234
6365
  className: `field${g ? ` ${g}` : ""}`,
6235
6366
  children: [
6236
- e && /* @__PURE__ */ p(y.Label, {
6367
+ e && /* @__PURE__ */ p(b.Label, {
6237
6368
  className: "label",
6238
- htmlFor: b,
6369
+ htmlFor: y,
6239
6370
  children: [
6240
6371
  e,
6241
6372
  t && /* @__PURE__ */ f(Q, {}),
6242
- a && /* @__PURE__ */ f(bt, {
6373
+ a && /* @__PURE__ */ f(wt, {
6243
6374
  label: o,
6244
6375
  children: a
6245
6376
  })
6246
6377
  ]
6247
6378
  }),
6248
- /* @__PURE__ */ f(y.Control, {
6379
+ /* @__PURE__ */ f(b.Control, {
6249
6380
  as: "textarea",
6250
- id: b,
6381
+ id: y,
6251
6382
  name: u,
6252
6383
  rows: d,
6253
6384
  className: x,
@@ -6272,14 +6403,14 @@ var Nn = r(function({ label: e, required: t = !1, error: n, hint: r, help: a, he
6272
6403
  });
6273
6404
  //#endregion
6274
6405
  //#region src/components/AppTimeline.jsx
6275
- function Pn({ items: e = [], className: t = "", ...n }) {
6276
- return A("AppTimeline", n), /* @__PURE__ */ f("ol", {
6406
+ function Gn({ items: e = [], className: t = "", ...n }) {
6407
+ return j("AppTimeline", n), /* @__PURE__ */ f("ol", {
6277
6408
  className: `timeline${t ? ` ${t}` : ""}`,
6278
6409
  children: e.map((e, t) => /* @__PURE__ */ p("li", {
6279
6410
  className: `timeline-item${e.tone && e.tone !== "neutral" ? ` ${e.tone}` : ""}`,
6280
6411
  children: [/* @__PURE__ */ f("span", {
6281
6412
  className: "timeline-dot",
6282
- children: /* @__PURE__ */ f(F, {
6413
+ children: /* @__PURE__ */ f(I, {
6283
6414
  name: e.icon || "circle",
6284
6415
  size: 12
6285
6416
  })
@@ -6311,29 +6442,29 @@ function Pn({ items: e = [], className: t = "", ...n }) {
6311
6442
  }
6312
6443
  //#endregion
6313
6444
  //#region src/components/toastStore.js
6314
- var $ = [], Fn = /* @__PURE__ */ new Set(), In = 0;
6315
- function Ln() {
6316
- for (let e of Fn) e($);
6445
+ var $ = [], Kn = /* @__PURE__ */ new Set(), qn = 0;
6446
+ function Jn() {
6447
+ for (let e of Kn) e($);
6317
6448
  }
6318
- function Rn(e) {
6319
- return Fn.add(e), e($), () => Fn.delete(e);
6449
+ function Yn(e) {
6450
+ return Kn.add(e), e($), () => Kn.delete(e);
6320
6451
  }
6321
- function zn(e, t) {
6452
+ function Xn(e, t) {
6322
6453
  let n = `${t}:${e}`;
6323
6454
  $.some((e) => e.key === n) || ($ = [...$, {
6324
- id: ++In,
6455
+ id: ++qn,
6325
6456
  message: e,
6326
6457
  variant: t,
6327
6458
  key: n
6328
- }], Ln());
6459
+ }], Jn());
6329
6460
  }
6330
- function Bn(e) {
6461
+ function Zn(e) {
6331
6462
  let t = $.filter((t) => t.id !== e);
6332
- t.length !== $.length && ($ = t, Ln());
6463
+ t.length !== $.length && ($ = t, Jn());
6333
6464
  }
6334
6465
  //#endregion
6335
6466
  //#region src/components/AppToastContainer.jsx
6336
- var Vn = {
6467
+ var Qn = {
6337
6468
  success: {
6338
6469
  cls: "text-bg-success",
6339
6470
  closeWhite: !0
@@ -6351,21 +6482,21 @@ var Vn = {
6351
6482
  closeWhite: !0
6352
6483
  }
6353
6484
  };
6354
- function Hn({ position: e = "bottom-end", autoDismiss: t = 5e3 }) {
6485
+ function $n({ position: e = "bottom-end", autoDismiss: t = 5e3 }) {
6355
6486
  let [n, r] = u([]);
6356
- return a(() => Rn(r), []), /* @__PURE__ */ f(T, {
6487
+ return a(() => Yn(r), []), /* @__PURE__ */ f(E, {
6357
6488
  position: e,
6358
6489
  containerPosition: "fixed",
6359
6490
  className: "p-3",
6360
6491
  children: n.map((e) => {
6361
- let n = Vn[e.variant] ?? Vn.success;
6362
- return /* @__PURE__ */ f(w, {
6492
+ let n = Qn[e.variant] ?? Qn.success;
6493
+ return /* @__PURE__ */ f(T, {
6363
6494
  className: n.cls,
6364
- onClose: () => Bn(e.id),
6495
+ onClose: () => Zn(e.id),
6365
6496
  show: !0,
6366
6497
  delay: t,
6367
6498
  autohide: !0,
6368
- children: /* @__PURE__ */ p(w.Body, {
6499
+ children: /* @__PURE__ */ p(T.Body, {
6369
6500
  className: "d-flex align-items-center gap-3",
6370
6501
  children: [/* @__PURE__ */ f("span", {
6371
6502
  className: "flex-grow-1",
@@ -6374,7 +6505,7 @@ function Hn({ position: e = "bottom-end", autoDismiss: t = 5e3 }) {
6374
6505
  type: "button",
6375
6506
  className: n.closeWhite ? "btn-close btn-close-white" : "btn-close",
6376
6507
  "aria-label": "Close",
6377
- onClick: () => Bn(e.id)
6508
+ onClick: () => Zn(e.id)
6378
6509
  })]
6379
6510
  })
6380
6511
  }, e.id);
@@ -6383,21 +6514,21 @@ function Hn({ position: e = "bottom-end", autoDismiss: t = 5e3 }) {
6383
6514
  }
6384
6515
  //#endregion
6385
6516
  //#region src/components/toast.js
6386
- var Un = /* @__PURE__ */ new Set([
6517
+ var er = /* @__PURE__ */ new Set([
6387
6518
  "success",
6388
6519
  "info",
6389
6520
  "warning",
6390
6521
  "error"
6391
6522
  ]);
6392
- function Wn(e, t = "success") {
6393
- zn(e, Un.has(t) ? t : "success");
6523
+ function tr(e, t = "success") {
6524
+ Xn(e, er.has(t) ? t : "success");
6394
6525
  }
6395
- function Gn(e) {
6396
- zn(e, "error");
6526
+ function nr(e) {
6527
+ Xn(e, "error");
6397
6528
  }
6398
6529
  //#endregion
6399
6530
  //#region src/lib/usePagination.js
6400
- function Kn(e, t = 10) {
6531
+ function rr(e, t = 10) {
6401
6532
  let [n, r] = u(1), [i, o] = u(t), s = e.length, l = Math.max(1, Math.ceil(s / i));
6402
6533
  a(() => {
6403
6534
  n > l && r(l);
@@ -6423,4 +6554,4 @@ function Kn(e, t = 10) {
6423
6554
  };
6424
6555
  }
6425
6556
  //#endregion
6426
- export { L as ActionIcon, R as AppAccordion, ee as AppAlert, re as AppAsyncBlock, ot as AppAutocomplete, ct as AppAvatar, dt as AppBadge, V as AppButton, ft as AppCallout, pt as AppCard, mt as AppCheckbox, ht as AppChip, gt as AppChoiceCard, _t as AppChoiceChip, vt as AppColorField, yt as AppCompareTable, Dt as AppConfirmDialog, zt as AppDataTable, Bt as AppDatePicker, Vt as AppDateRangePicker, Ut as AppDropdown, te as AppEmptyState, Wt as AppFileAttachment, Xt as AppFilePicker, $t as AppInfoList, bt as AppInfoTip, xt as AppInput, an as AppKpiTile, sn as AppLogoPicker, wt as AppModal, cn as AppMultiSelect, ln as AppOtpInput, un as AppPageHeader, dn as AppPhoneNumberInput, fn as AppPopover, pn as AppPricingCard, mn as AppRadio, hn as AppRepeater, gn as AppResourceCard, _n as AppScrollbar, vn as AppSearch, yn as AppSegmented, xn as AppSelect, Pt as AppSelectMini, Sn as AppShell, Tn as AppSidebarMenu, Ot as AppSkeleton, jt as AppSkeletonRows, ne as AppSpinner, Dn as AppSplash, On as AppStatusBadge, kn as AppStepper, An as AppSwitch, jn as AppTableEmptyState, It as AppTablePagination, Mn as AppTabs, Nn as AppTextarea, Pn as AppTimeline, Hn as AppToastContainer, F as Icon, Et as MODAL_ICONS, Q as RequiredMark, Gn as errorToast, M as iconNames, P as registerIcons, Wn as toast, Kn as usePagination };
6557
+ export { R as ActionIcon, ee as AppAccordion, z as AppAlert, ie as AppAsyncBlock, st as AppAutocomplete, lt as AppAvatar, ft as AppBadge, mt as AppBanner, ht as AppBreadcrumbs, V as AppButton, gt as AppCallout, _t as AppCard, vt as AppCheckbox, yt as AppChip, bt as AppChoiceCard, xt as AppChoiceChip, St as AppColorField, Ct as AppCompareTable, jt as AppConfirmDialog, Ut as AppDataTable, Wt as AppDatePicker, Gt as AppDateRangePicker, qt as AppDropdown, ne as AppEmptyState, Jt as AppFileAttachment, en as AppFilePicker, rn as AppInfoList, wt as AppInfoTip, Tt as AppInput, ln as AppKpiTile, dn as AppLogoPicker, hn as AppMeter, Ot as AppModal, gn as AppMultiSelect, _n as AppOtpInput, vn as AppPageHeader, yn as AppPhoneNumberInput, bn as AppPopover, xn as AppPricingCard, wn as AppProgress, Tn as AppRadio, En as AppRepeater, Dn as AppResourceCard, On as AppScrollbar, kn as AppSearch, An as AppSegmented, Mn as AppSelect, Rt as AppSelectMini, Nn as AppShell, In as AppSidebarMenu, Mt as AppSkeleton, Ft as AppSkeletonRows, re as AppSpinner, Rn as AppSplash, zn as AppStatusBadge, Bn as AppStepper, Vn as AppSwitch, Hn as AppTableEmptyState, Bt as AppTablePagination, Un as AppTabs, Wn as AppTextarea, Gn as AppTimeline, $n as AppToastContainer, I as Icon, At as MODAL_ICONS, Q as RequiredMark, nr as errorToast, N as iconNames, F as registerIcons, tr as toast, rr as usePagination };