@webority/ui-react 0.6.4 → 0.6.6

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,34 +1,34 @@
1
1
  import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
2
- import { forwardRef as r, useEffect as i, useId as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
3
- import l from "react-bootstrap/Alert";
4
- import u from "react-bootstrap/Badge";
5
- import d from "react-bootstrap/Button";
6
- import f from "react-bootstrap/Card";
7
- import p from "react-bootstrap/Form";
8
- import { createPortal as m } from "react-dom";
9
- import h from "react-bootstrap/Modal";
10
- import g from "react-bootstrap/Dropdown";
11
- import { toast as _ } from "react-toastify";
12
- import v from "react-bootstrap/Offcanvas";
13
- import y from "react-bootstrap/Nav";
2
+ import { forwardRef as r, useCallback as i, useEffect as a, useId as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
3
+ import u from "react-bootstrap/Alert";
4
+ import d from "react-bootstrap/Badge";
5
+ import f from "react-bootstrap/Button";
6
+ import p from "react-bootstrap/Card";
7
+ import m from "react-bootstrap/Form";
8
+ import { createPortal as h } from "react-dom";
9
+ import g from "react-bootstrap/Modal";
10
+ import _ from "react-bootstrap/Dropdown";
11
+ import { toast as v } from "react-toastify";
12
+ import y from "react-bootstrap/Offcanvas";
13
+ import b from "react-bootstrap/Nav";
14
14
  //#region src/components/warnUnknownProps.js
15
- var b = /* @__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(".")), x = () => {
15
+ var x = /* @__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(".")), S = () => {
16
16
  try {
17
17
  return process.env.NODE_ENV !== "production";
18
18
  } catch {
19
19
  return !0;
20
20
  }
21
- }, S = (e) => e.startsWith("data-") || e.startsWith("aria-") || /^on[A-Z]/.test(e), C = /* @__PURE__ */ new Set();
22
- function w(e, t) {
23
- if (!(!x() || !t)) for (let n of Object.keys(t)) {
24
- if (S(n) || b.has(n)) continue;
21
+ }, C = (e) => e.startsWith("data-") || e.startsWith("aria-") || /^on[A-Z]/.test(e), w = /* @__PURE__ */ new Set();
22
+ function T(e, t) {
23
+ if (!(!S() || !t) && !("as" in t)) for (let n of Object.keys(t)) {
24
+ if (C(n) || x.has(n)) continue;
25
25
  let t = `${e}.${n}`;
26
- C.has(t) || (C.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.`));
26
+ w.has(t) || (w.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.`));
27
27
  }
28
28
  }
29
29
  //#endregion
30
30
  //#region src/components/Icon.jsx
31
- var T = {
31
+ var E = {
32
32
  activity: "activity",
33
33
  "alert-circle": "exclamation-circle",
34
34
  "alert-triangle": "exclamation-triangle",
@@ -97,6 +97,10 @@ var T = {
97
97
  phone: "telephone",
98
98
  plug: "plug",
99
99
  plus: "plus-lg",
100
+ minus: "dash-lg",
101
+ "zoom-in": "zoom-in",
102
+ "zoom-out": "zoom-out",
103
+ "two-page": "layout-split",
100
104
  "plus-circle": "plus-circle",
101
105
  "refresh-cw": "arrow-clockwise",
102
106
  repeat: "arrow-repeat",
@@ -122,9 +126,9 @@ var T = {
122
126
  "wand-sparkles": "magic",
123
127
  x: "x-lg",
124
128
  zap: "lightning-charge"
125
- }, E = [...Object.keys(T), "hard-hat"].sort();
126
- function D({ name: e, size: r = 16, className: i, color: a, style: o, ...s }) {
127
- if (w("Icon", s), e === "hard-hat") return /* @__PURE__ */ t("svg", {
129
+ }, D = [...Object.keys(E), "hard-hat"].sort();
130
+ function O({ name: e, size: r = 16, className: i, color: a, style: o, ...s }) {
131
+ if (T("Icon", s), e === "hard-hat") return /* @__PURE__ */ t("svg", {
128
132
  width: r,
129
133
  height: r,
130
134
  viewBox: "0 0 24 24",
@@ -146,7 +150,7 @@ function D({ name: e, size: r = 16, className: i, color: a, style: o, ...s }) {
146
150
  }), /* @__PURE__ */ t("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" })]
147
151
  })
148
152
  });
149
- let c = T[e] || e;
153
+ let c = E[e] || e;
150
154
  return c ? /* @__PURE__ */ t("i", {
151
155
  className: `bi bi-${c}${i ? ` ${i}` : ""}`,
152
156
  "data-icon": e,
@@ -161,8 +165,8 @@ function D({ name: e, size: r = 16, className: i, color: a, style: o, ...s }) {
161
165
  }
162
166
  //#endregion
163
167
  //#region src/components/ActionIcon.jsx
164
- function O({ icon: e, label: n, danger: r = !1, disabled: i = !1, size: a = 20, onClick: o, className: s = "", as: c, href: l, ...u }) {
165
- w("ActionIcon", u);
168
+ function k({ icon: e, label: n, danger: r = !1, disabled: i = !1, size: a = 20, onClick: o, className: s = "", as: c, href: l, ...u }) {
169
+ T("ActionIcon", u);
166
170
  let d = [
167
171
  "u-action",
168
172
  r ? "danger" : "",
@@ -176,9 +180,10 @@ function O({ icon: e, label: n, danger: r = !1, disabled: i = !1, size: a = 20,
176
180
  title: n,
177
181
  disabled: p ? i : void 0,
178
182
  "aria-disabled": !p && i ? "true" : void 0,
183
+ role: !p && i ? "link" : void 0,
179
184
  onClick: o,
180
185
  ...u,
181
- children: /* @__PURE__ */ t(D, {
186
+ children: /* @__PURE__ */ t(O, {
182
187
  name: e,
183
188
  size: a
184
189
  })
@@ -186,9 +191,9 @@ function O({ icon: e, label: n, danger: r = !1, disabled: i = !1, size: a = 20,
186
191
  }
187
192
  //#endregion
188
193
  //#region src/components/AppAccordion.jsx
189
- function k({ items: e = [], multiple: r = !1, id: i, className: o = "", ...s }) {
190
- w("AppAccordion", s);
191
- let l = a(), u = i || l, [d, f] = c(() => {
194
+ function A({ items: e = [], multiple: r = !1, id: i, className: a = "", ...s }) {
195
+ T("AppAccordion", s);
196
+ let c = o(), u = i || c, [d, f] = l(() => {
192
197
  let t = e.filter((e) => e.open).map((e, t) => e.key ?? String(t));
193
198
  return new Set(r ? t : t.slice(0, 1));
194
199
  }), p = (e, t) => e.key ?? String(t), m = (e) => {
@@ -198,7 +203,7 @@ function k({ items: e = [], multiple: r = !1, id: i, className: o = "", ...s })
198
203
  });
199
204
  };
200
205
  return /* @__PURE__ */ t("div", {
201
- className: `faq-list${o ? ` ${o}` : ""}`,
206
+ className: `faq-list${a ? ` ${a}` : ""}`,
202
207
  children: e.map((e, r) => {
203
208
  let i = p(e, r), a = d.has(i), o = `${u}-${r}`, s = `${o}-q`;
204
209
  return /* @__PURE__ */ n("div", {
@@ -212,7 +217,7 @@ function k({ items: e = [], multiple: r = !1, id: i, className: o = "", ...s })
212
217
  onClick: () => m(i),
213
218
  children: [e.title, /* @__PURE__ */ t("span", {
214
219
  className: "faq-q-icon",
215
- children: /* @__PURE__ */ t(D, {
220
+ children: /* @__PURE__ */ t(O, {
216
221
  name: "chevron-down",
217
222
  size: 18
218
223
  })
@@ -232,8 +237,8 @@ function k({ items: e = [], multiple: r = !1, id: i, className: o = "", ...s })
232
237
  }
233
238
  //#endregion
234
239
  //#region src/components/AppAlert.jsx
235
- function A({ variant: e = "info", children: n, className: r = "", onClose: i, dismissible: a, role: o = "alert", ...s }) {
236
- return w("AppAlert", s), /* @__PURE__ */ t(l, {
240
+ function j({ variant: e = "info", children: n, className: r = "", onClose: i, dismissible: a, role: o = "alert", ...s }) {
241
+ return T("AppAlert", s), /* @__PURE__ */ t(u, {
237
242
  variant: e,
238
243
  className: r || void 0,
239
244
  onClose: i,
@@ -246,15 +251,15 @@ function A({ variant: e = "info", children: n, className: r = "", onClose: i, di
246
251
  }
247
252
  //#endregion
248
253
  //#region ../elements/dist/ui-elements.js
249
- var j = {
254
+ var M = {
250
255
  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>",
251
256
  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>",
252
257
  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>",
253
258
  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>",
254
259
  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>"
255
260
  };
256
- Object.keys(j);
257
- var ee = class extends HTMLElement {
261
+ Object.keys(M);
262
+ var N = class extends HTMLElement {
258
263
  static get observedAttributes() {
259
264
  return ["tone", "size"];
260
265
  }
@@ -265,19 +270,21 @@ var ee = class extends HTMLElement {
265
270
  this.isConnected && this.render();
266
271
  }
267
272
  render() {
268
- let e = this.getAttribute("tone"), t = this.getAttribute("size") || "72", n = j[e] || j.info;
273
+ let e = this.getAttribute("tone"), t = this.getAttribute("size") || "72", n = M[e] || M.info;
269
274
  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>`;
270
275
  }
271
- }, te = "data-wui-mirror";
272
- function M(e, t) {
273
- let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${te}]`);
276
+ }, ee = "data-wui-mirror";
277
+ function P(e, t) {
278
+ let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${ee}]`);
274
279
  if (!n) {
275
280
  r?.remove();
276
281
  return;
277
282
  }
278
- r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(te, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t), r.disabled = e.hasAttribute("disabled");
283
+ r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(ee, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t);
284
+ for (let t of e.attributes) t.name.startsWith("data-val") && r.setAttribute(t.name, t.value);
285
+ r.disabled = e.hasAttribute("disabled");
279
286
  }
280
- var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), F = (e) => e?.[N] ? String(e.label ?? "") : P(e == null ? "" : e.label), ne = class extends HTMLElement {
287
+ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), L = (e) => e?.[F] ? String(e.label ?? "") : I(e == null ? "" : e.label), te = class extends HTMLElement {
281
288
  _accessibleName() {
282
289
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
283
290
  }
@@ -305,9 +312,9 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
305
312
  return this._value;
306
313
  }
307
314
  set value(e) {
308
- this._value = e == null ? "" : String(e), M(this, this._value);
315
+ this._value = e == null ? "" : String(e), P(this, this._value);
309
316
  let t = this._readOptions().find((e) => String(e.value) === this._value);
310
- t && (this._label = L(t.label)), this._syncInput();
317
+ t && (this._label = z(t.label)), this._syncInput();
311
318
  }
312
319
  set options(e) {
313
320
  this._optionsProp = Array.isArray(e) ? e : [], this._renderOptions();
@@ -337,7 +344,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
337
344
  e.length && (this._declared = e.map((e) => ({
338
345
  value: e.getAttribute("value") ?? e.textContent.trim(),
339
346
  label: e.innerHTML,
340
- [N]: !0,
347
+ [F]: !0,
341
348
  selected: e.hasAttribute("selected")
342
349
  })));
343
350
  }
@@ -349,8 +356,8 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
349
356
  let e = this.getAttribute("placeholder") || "Search…";
350
357
  this.innerHTML = `
351
358
  <div class="search-select">
352
- <div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-label="${I(this._accessibleName())}">
353
- <input class="search-select-input search-select-ac-input" placeholder="${I(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
359
+ <div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-label="${R(this._accessibleName())}">
360
+ <input class="search-select-input search-select-ac-input" placeholder="${R(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
354
361
  <span class="search-select-spinner spinner-border spinner-border-sm" role="status" aria-hidden="true" hidden></span>
355
362
  <button type="button" class="search-select-clear" aria-label="Clear" hidden><i class="bi bi-x" aria-hidden="true"></i></button>
356
363
  </div>
@@ -359,7 +366,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
359
366
  <div class="search-select-empty" hidden>No matches</div>
360
367
  <div class="search-select-hint" hidden>Type to search…</div>
361
368
  </div>
362
- </div>`, this._rendered = !0, M(this, this._value), this._wire(), this._syncInput(), this._renderOptions();
369
+ </div>`, this._rendered = !0, P(this, this._value), this._wire(), this._syncInput(), this._renderOptions();
363
370
  }
364
371
  _refs() {
365
372
  return {
@@ -388,9 +395,9 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
388
395
  let t = this._refs();
389
396
  if (!t.optionsWrap) return;
390
397
  let n = (e ?? (t.input ? t.input.value : "")).trim().toLowerCase(), r = this._readOptions();
391
- !this._remote && n && (r = r.filter((e) => L(e.label).toLowerCase().includes(n))), t.optionsWrap.innerHTML = r.map((e) => {
398
+ !this._remote && n && (r = r.filter((e) => z(e.label).toLowerCase().includes(n))), t.optionsWrap.innerHTML = r.map((e) => {
392
399
  let t = String(e.value) === String(this._value);
393
- return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${I(e.value)}" aria-selected="${t}">${F(e)}</button>`;
400
+ return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${R(e.value)}" aria-selected="${t}">${L(e)}</button>`;
394
401
  }).join(""), this._active = -1;
395
402
  let i = n.length < this._minChars;
396
403
  t.hint && (t.hint.hidden = !(this._remote && i && !r.length)), t.empty && (t.empty.hidden = this._loading || r.length > 0 || this._remote && i);
@@ -411,7 +418,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
411
418
  }, o = () => {
412
419
  e.menu.hidden = !0, e.control.setAttribute("aria-expanded", "false"), e.control.classList.remove("open"), r(-1), this._syncInput();
413
420
  }, s = (t) => {
414
- this._value = t.dataset.value, this._label = L(t.innerHTML), M(this, this._value), e.input.value = this._label, this.dispatchEvent(new Event("change", { bubbles: !0 })), o(), e.input.focus();
421
+ this._value = t.dataset.value, this._label = z(t.innerHTML), P(this, this._value), e.input.value = this._label, this.dispatchEvent(new Event("change", { bubbles: !0 })), o(), e.input.focus();
415
422
  };
416
423
  e.input.addEventListener("focus", () => a()), e.input.addEventListener("input", () => {
417
424
  let t = e.input.value;
@@ -434,7 +441,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
434
441
  let t = e.target.closest(".search-select-option");
435
442
  t && r(this._optionEls().indexOf(t));
436
443
  }), e.clear?.addEventListener("click", () => {
437
- this._value = "", this._label = "", M(this, ""), e.input.value = "", e.clear.hidden = !0, this._renderOptions(""), this.dispatchEvent(new Event("change", { bubbles: !0 })), e.input.focus();
444
+ this._value = "", this._label = "", P(this, ""), e.input.value = "", e.clear.hidden = !0, this._renderOptions(""), this.dispatchEvent(new Event("change", { bubbles: !0 })), e.input.focus();
438
445
  }), this._onDocClick = (e) => {
439
446
  i() && !this.contains(e.target) && o();
440
447
  }, document.addEventListener("click", this._onDocClick), window.addEventListener("resize", () => {
@@ -444,7 +451,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
444
451
  disconnectedCallback() {
445
452
  this._onDocClick && document.removeEventListener("click", this._onDocClick), clearTimeout(this._timer);
446
453
  }
447
- }, I = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), L = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), re = [
454
+ }, R = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), z = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), B = [
448
455
  "January",
449
456
  "February",
450
457
  "March",
@@ -457,7 +464,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
457
464
  "October",
458
465
  "November",
459
466
  "December"
460
- ], ie = [
467
+ ], ne = [
461
468
  "Su",
462
469
  "Mo",
463
470
  "Tu",
@@ -465,17 +472,17 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
465
472
  "Th",
466
473
  "Fr",
467
474
  "Sa"
468
- ], R = (e) => String(e).padStart(2, "0"), ae = (e, t, n) => `${e}-${R(t + 1)}-${R(n)}`, z = (e) => {
475
+ ], V = (e) => String(e).padStart(2, "0"), re = (e, t, n) => `${e}-${V(t + 1)}-${V(n)}`, H = (e) => {
469
476
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e || "");
470
477
  return t ? {
471
478
  y: +t[1],
472
479
  m: t[2] - 1,
473
480
  d: +t[3]
474
481
  } : null;
475
- }, oe = (e) => {
476
- let t = z(e);
477
- return t ? `${R(t.d)} ${re[t.m].slice(0, 3)} ${t.y}` : "";
478
- }, se = class extends HTMLElement {
482
+ }, U = (e) => {
483
+ let t = H(e);
484
+ return t ? `${V(t.d)} ${B[t.m].slice(0, 3)} ${t.y}` : "";
485
+ }, ie = class extends HTMLElement {
479
486
  static get observedAttributes() {
480
487
  return [
481
488
  "value",
@@ -500,46 +507,46 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
500
507
  return this._value;
501
508
  }
502
509
  set value(e) {
503
- this._value = e || "", M(this, this._value), this._syncTrigger(), this.dispatchEvent(new Event("change", { bubbles: !0 }));
510
+ this._value = e || "", P(this, this._value), this._syncTrigger(), this.dispatchEvent(new Event("change", { bubbles: !0 }));
504
511
  }
505
512
  render() {
506
513
  this._value = this.getAttribute("value") || this._value;
507
- let e = this.getAttribute("placeholder") || "Enter Date", t = z(this._value);
514
+ let e = this.getAttribute("placeholder") || "Enter Date", t = H(this._value);
508
515
  t && (this._viewY = t.y, this._viewM = t.m), this.innerHTML = `
509
516
  <div class="datepicker">
510
517
  <button type="button" class="input datepicker-trigger" aria-haspopup="dialog" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}>
511
- <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? oe(this._value) : e}</span>
518
+ <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? U(this._value) : e}</span>
512
519
  <i class="bi bi-calendar3" aria-hidden="true"></i>
513
520
  </button>
514
521
  <div class="datepicker-pop" role="dialog" hidden></div>
515
- </div>`, this._rendered = !0, M(this, this._value), this._wire();
522
+ </div>`, this._rendered = !0, P(this, this._value), this._wire();
516
523
  }
517
524
  _syncFormValue() {
518
- M(this, this._value);
525
+ P(this, this._value);
519
526
  }
520
527
  _syncTrigger() {
521
528
  let e = this.querySelector("[data-trigger-label]");
522
529
  if (!e) return;
523
- let t = z(this._value);
524
- e.textContent = t ? oe(this._value) : this.getAttribute("placeholder") || "Enter Date", e.classList.toggle("search-select-placeholder", !t);
530
+ let t = H(this._value);
531
+ e.textContent = t ? U(this._value) : this.getAttribute("placeholder") || "Enter Date", e.classList.toggle("search-select-placeholder", !t);
525
532
  }
526
533
  _renderMonth() {
527
- let e = this.querySelector(".datepicker-pop"), t = new Date(this._viewY, this._viewM, 1).getDay(), n = new Date(this._viewY, this._viewM + 1, 0).getDate(), r = z(this._value), i = z(this.getAttribute("min")), a = z(this.getAttribute("max")), o = (e, t, n) => {
534
+ let e = this.querySelector(".datepicker-pop"), t = new Date(this._viewY, this._viewM, 1).getDay(), n = new Date(this._viewY, this._viewM + 1, 0).getDate(), r = H(this._value), i = H(this.getAttribute("min")), a = H(this.getAttribute("max")), o = (e, t, n) => {
528
535
  let r = new Date(e, t, n).getTime();
529
536
  return !!(i && r < new Date(i.y, i.m, i.d).getTime() || a && r > new Date(a.y, a.m, a.d).getTime());
530
537
  }, s = "";
531
538
  for (let e = 0; e < t; e++) s += "<span class=\"datepicker-day is-outside\"></span>";
532
539
  for (let e = 1; e <= n; e++) {
533
- let t = ae(this._viewY, this._viewM, e), n = r && r.y === this._viewY && r.m === this._viewM && r.d === e, i = o(this._viewY, this._viewM, e);
540
+ let t = re(this._viewY, this._viewM, e), n = r && r.y === this._viewY && r.m === this._viewM && r.d === e, i = o(this._viewY, this._viewM, e);
534
541
  s += `<button type="button" class="datepicker-day${n ? " selected" : ""}" data-iso="${t}"${i ? " disabled" : ""}>${e}</button>`;
535
542
  }
536
543
  e.innerHTML = `
537
544
  <div class="datepicker-head">
538
545
  <button type="button" class="datepicker-nav-btn" data-nav="-1" aria-label="Previous month"><i class="bi bi-chevron-left" aria-hidden="true"></i></button>
539
- <span class="datepicker-month">${re[this._viewM]} ${this._viewY}</span>
546
+ <span class="datepicker-month">${B[this._viewM]} ${this._viewY}</span>
540
547
  <button type="button" class="datepicker-nav-btn" data-nav="1" aria-label="Next month"><i class="bi bi-chevron-right" aria-hidden="true"></i></button>
541
548
  </div>
542
- <div class="datepicker-weekdays">${ie.map((e) => `<span>${e}</span>`).join("")}</div>
549
+ <div class="datepicker-weekdays">${ne.map((e) => `<span>${e}</span>`).join("")}</div>
543
550
  <div class="datepicker-grid">${s}</div>
544
551
  <div class="datepicker-foot"><button type="button" class="datepicker-link" data-clear>Clear</button></div>`;
545
552
  }
@@ -547,6 +554,10 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
547
554
  let e = this.querySelector(".datepicker-trigger"), t = this.querySelector(".datepicker-pop");
548
555
  if (!e || !t) return;
549
556
  let n = () => !t.hidden, r = () => {
557
+ if (!H(this._value) && !this._viewNavigated) {
558
+ let e = /* @__PURE__ */ new Date();
559
+ this._viewY = e.getFullYear(), this._viewM = e.getMonth();
560
+ }
550
561
  this._renderMonth(), t.hidden = !1, e.setAttribute("aria-expanded", "true");
551
562
  }, i = () => {
552
563
  t.hidden = !0, e.setAttribute("aria-expanded", "false");
@@ -554,7 +565,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
554
565
  e.addEventListener("click", () => n() ? i() : r()), t.addEventListener("click", (e) => {
555
566
  let t = e.target.closest("[data-nav]");
556
567
  if (t) {
557
- this._viewM += Number(t.dataset.nav), this._viewM < 0 ? (this._viewM = 11, --this._viewY) : this._viewM > 11 && (this._viewM = 0, this._viewY += 1), this._renderMonth();
568
+ this._viewNavigated = !0, this._viewM += Number(t.dataset.nav), this._viewM < 0 ? (this._viewM = 11, --this._viewY) : this._viewM > 11 && (this._viewM = 0, this._viewY += 1), this._renderMonth();
558
569
  return;
559
570
  }
560
571
  if (e.target.closest("[data-clear]")) {
@@ -572,7 +583,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
572
583
  disconnectedCallback() {
573
584
  this._onDocClick && document.removeEventListener("click", this._onDocClick), this._onDocKey && document.removeEventListener("keydown", this._onDocKey);
574
585
  }
575
- }, ce = class extends HTMLElement {
586
+ }, ae = class extends HTMLElement {
576
587
  _accessibleName() {
577
588
  return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
578
589
  }
@@ -604,7 +615,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
604
615
  return this._values.slice();
605
616
  }
606
617
  set values(e) {
607
- this._values = Array.isArray(e) ? e.map(String) : [], M(this, this._values.join(",")), this._rendered && this._renderControl();
618
+ this._values = Array.isArray(e) ? e.map(String) : [], P(this, this._values.join(",")), this._rendered && this._renderControl();
608
619
  }
609
620
  set options(e) {
610
621
  this._optionsProp = Array.isArray(e) ? e : null, this.isConnected && this.render();
@@ -618,7 +629,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
618
629
  e.length && (this._declared = e.map((e) => ({
619
630
  value: e.getAttribute("value") ?? e.textContent.trim(),
620
631
  label: e.innerHTML,
621
- [N]: !0,
632
+ [F]: !0,
622
633
  selected: e.hasAttribute("selected")
623
634
  })));
624
635
  }
@@ -631,41 +642,41 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
631
642
  }
632
643
  _labelHtmlFor(e) {
633
644
  let t = this._readOptions().find((t) => String(t.value) === String(e));
634
- return t ? F(t) : P(e);
645
+ return t ? L(t) : I(e);
635
646
  }
636
647
  render() {
637
648
  this._snapshotDeclared();
638
649
  let e = this.hasAttribute("searchable"), t = this.getAttribute("search-placeholder") || "Search…";
639
- M(this, this._values.join(",")), this.innerHTML = `
650
+ P(this, this._values.join(",")), this.innerHTML = `
640
651
  <div class="search-select">
641
- <div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-label="${B(this._accessibleName())}"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
652
+ <div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-label="${W(this._accessibleName())}"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
642
653
  <div class="ms-chips" data-chips></div>
643
654
  <i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
644
655
  </div>
645
656
  <div class="search-select-menu search-select-menu-fixed" role="listbox" aria-multiselectable="true" tabindex="-1" hidden>
646
- ${e ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${B(t)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden><i class="bi bi-x" aria-hidden="true"></i></button></div>` : ""}
657
+ ${e ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${W(t)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden><i class="bi bi-x" aria-hidden="true"></i></button></div>` : ""}
647
658
  <div class="search-select-options"></div>
648
659
  <div class="search-select-empty" hidden>No matches</div>
649
660
  </div>
650
- </div>`, this._rendered = !0, M(this, this._values.join(",")), this._renderControl(), this._renderOptions(), this._wire();
661
+ </div>`, this._rendered = !0, P(this, this._values.join(",")), this._renderControl(), this._renderOptions(), this._wire();
651
662
  }
652
663
  _renderControl() {
653
664
  let e = this.querySelector("[data-chips]");
654
665
  if (!e) return;
655
666
  let t = this.getAttribute("placeholder") || "Select…";
656
667
  if (!this._values.length) {
657
- e.innerHTML = `<span class="search-select-placeholder">${P(t)}</span>`;
668
+ e.innerHTML = `<span class="search-select-placeholder">${I(t)}</span>`;
658
669
  return;
659
670
  }
660
- 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="${B(e)}" aria-label="Remove"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join("");
671
+ 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="${W(e)}" aria-label="Remove"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join("");
661
672
  }
662
673
  _renderOptions(e) {
663
674
  let t = this.querySelector(".search-select-options"), n = this.querySelector(".search-select-empty");
664
675
  if (!t) return;
665
676
  let r = (e || "").trim().toLowerCase(), i = this._readOptions();
666
- r && (i = i.filter((e) => le(e.label).toLowerCase().includes(r))), t.innerHTML = i.map((e) => {
677
+ r && (i = i.filter((e) => G(e.label).toLowerCase().includes(r))), t.innerHTML = i.map((e) => {
667
678
  let t = this._values.includes(String(e.value));
668
- return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${B(e.value)}" aria-selected="${t}"><span class="ms-check"><i class="bi bi-check" aria-hidden="true"></i></span><span class="ms-opt-label">${F(e)}</span></button>`;
679
+ return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${W(e.value)}" aria-selected="${t}"><span class="ms-check"><i class="bi bi-check" aria-hidden="true"></i></span><span class="ms-opt-label">${L(e)}</span></button>`;
669
680
  }).join(""), n && (n.hidden = i.length > 0), this._active = -1;
670
681
  }
671
682
  _wire() {
@@ -684,7 +695,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
684
695
  }, f = () => {
685
696
  t.hidden = !0, e.setAttribute("aria-expanded", "false"), e.classList.remove("open"), l(-1);
686
697
  }, p = () => {
687
- M(this, this._values.join(",")), this.dispatchEvent(new Event("change", { bubbles: !0 }));
698
+ P(this, this._values.join(",")), this.dispatchEvent(new Event("change", { bubbles: !0 }));
688
699
  }, m = (e) => {
689
700
  let t = String(e);
690
701
  this._values.includes(t) ? this._values = this._values.filter((e) => e !== t) : this._values = [...this._values, t], this._renderControl(), this._renderOptions(n ? n.value : ""), p();
@@ -728,7 +739,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
728
739
  disconnectedCallback() {
729
740
  this._onDocClick && document.removeEventListener("click", this._onDocClick);
730
741
  }
731
- }, B = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), le = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), ue = [
742
+ }, W = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), G = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), oe = [
732
743
  [
733
744
  "AF",
734
745
  "Afghanistan",
@@ -1954,11 +1965,11 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
1954
1965
  "Zimbabwe",
1955
1966
  "263"
1956
1967
  ]
1957
- ], V = (e) => (ue.find((t) => t[0] === e) || [
1968
+ ], K = (e) => (oe.find((t) => t[0] === e) || [
1958
1969
  "",
1959
1970
  "",
1960
1971
  ""
1961
- ])[2], H = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, de = class extends HTMLElement {
1972
+ ])[2], q = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, se = class extends HTMLElement {
1962
1973
  static get observedAttributes() {
1963
1974
  return [
1964
1975
  "value",
@@ -1977,33 +1988,33 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
1977
1988
  this._rendered && (e === "country" && (this._country = n || "IN"), this.render());
1978
1989
  }
1979
1990
  get value() {
1980
- return `+${V(this._country)}${this._national}`;
1991
+ return `+${K(this._country)}${this._national}`;
1981
1992
  }
1982
1993
  set value(e) {
1983
1994
  this._national = String(e ?? "").replace(/[^0-9]/g, ""), this._commit();
1984
1995
  }
1985
1996
  _commit() {
1986
- M(this, this.value), this.dispatchEvent(new Event("change", { bubbles: !0 }));
1997
+ P(this, this.value), this.dispatchEvent(new Event("change", { bubbles: !0 }));
1987
1998
  }
1988
1999
  render() {
1989
2000
  let e = this.getAttribute("placeholder") || "Enter phone number";
1990
2001
  this._country = this.getAttribute("country") || this._country;
1991
- let t = ue.map(([e, t, n]) => `<button type="button" role="option" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}"><span class="${H(e)}" aria-hidden="true"></span><span class="country-name-text">${t}<span class="country-code-text">+${n}</span></span></button>`).join("");
2002
+ let t = oe.map(([e, t, n]) => `<button type="button" role="option" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}"><span class="${q(e)}" aria-hidden="true"></span><span class="country-name-text">${t}<span class="country-code-text">+${n}</span></span></button>`).join("");
1992
2003
  this.innerHTML = `
1993
2004
  <div class="phone-input-wrap">
1994
2005
  <div class="phone-country-adornment">
1995
2006
  <button type="button" class="country-toggle" aria-haspopup="listbox" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}>
1996
- <span class="${H(this._country)}" data-flag aria-hidden="true"></span>
2007
+ <span class="${q(this._country)}" data-flag aria-hidden="true"></span>
1997
2008
  <i class="bi bi-chevron-down phone-chevron" aria-hidden="true"></i>
1998
- <span class="phone-dial" data-dial>+${V(this._country)}</span>
2009
+ <span class="phone-dial" data-dial>+${K(this._country)}</span>
1999
2010
  </button>
2000
2011
  <div class="country-dropdown-menu" role="listbox" hidden>
2001
2012
  <div class="dropdown-search-wrapper"><span class="dropdown-search-icon"><i class="bi bi-search" aria-hidden="true"></i></span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" /></div>
2002
2013
  <div class="country-list-scroll">${t}<div class="country-empty" hidden>No countries found</div></div>
2003
2014
  </div>
2004
2015
  </div>
2005
- <input type="tel" class="input" placeholder="${U(e)}" value="${U(this._national)}"${this.hasAttribute("disabled") ? " disabled" : ""} />
2006
- </div>`, this._rendered = !0, M(this, this.value), this._wire();
2016
+ <input type="tel" class="input" placeholder="${ce(e)}" value="${ce(this._national)}"${this.hasAttribute("disabled") ? " disabled" : ""} />
2017
+ </div>`, this._rendered = !0, P(this, this.value), this._wire();
2007
2018
  }
2008
2019
  _wire() {
2009
2020
  let e = this.querySelector(".country-toggle"), t = this.querySelector(".country-dropdown-menu"), n = this.querySelector(".dropdown-search-input"), r = this.querySelector(".country-list-scroll"), i = this.querySelector(".country-empty"), a = this.querySelector("input[type=tel]"), o = this.querySelector("[data-flag]"), s = this.querySelector("[data-dial]");
@@ -2027,7 +2038,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
2027
2038
  }
2028
2039
  i && (i.hidden = n > 0);
2029
2040
  }, p = (e) => {
2030
- this._country = e, this.setAttribute("country", e), o && (o.className = H(e)), s && (s.textContent = `+${V(e)}`);
2041
+ this._country = e, this.setAttribute("country", e), o && (o.className = q(e)), s && (s.textContent = `+${K(e)}`);
2031
2042
  for (let t of r.querySelectorAll(".country-dropdown-item")) t.classList.toggle("selected", t.dataset.iso === e);
2032
2043
  d(), this._commit();
2033
2044
  };
@@ -2038,12 +2049,12 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
2038
2049
  this._national = a.value.replace(/[^0-9]/g, ""), this._commit();
2039
2050
  }), this._onDocClick = (e) => {
2040
2051
  c() && !this.contains(e.target) && d();
2041
- }, document.addEventListener("click", this._onDocClick), M(this, this.value);
2052
+ }, document.addEventListener("click", this._onDocClick), P(this, this.value);
2042
2053
  }
2043
2054
  disconnectedCallback() {
2044
2055
  this._reposition && (window.removeEventListener("scroll", this._reposition, !0), window.removeEventListener("resize", this._reposition)), this._onDocClick && document.removeEventListener("click", this._onDocClick);
2045
2056
  }
2046
- }, U = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), fe = class extends HTMLElement {
2057
+ }, ce = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), le = class extends HTMLElement {
2047
2058
  static get observedAttributes() {
2048
2059
  return [
2049
2060
  "value",
@@ -2071,7 +2082,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
2071
2082
  return this._value;
2072
2083
  }
2073
2084
  set value(e) {
2074
- this._value = e == null ? "" : String(e), M(this, this._value), this._syncSelected();
2085
+ this._value = e == null ? "" : String(e), P(this, this._value), this._syncSelected();
2075
2086
  }
2076
2087
  set options(e) {
2077
2088
  this._optionsProp = Array.isArray(e) ? e : null, this.isConnected && this.render();
@@ -2085,7 +2096,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
2085
2096
  e.length && (this._declared = e.map((e) => ({
2086
2097
  value: e.getAttribute("value") ?? e.textContent.trim(),
2087
2098
  label: e.innerHTML,
2088
- [N]: !0,
2099
+ [F]: !0,
2089
2100
  selected: e.hasAttribute("selected")
2090
2101
  })));
2091
2102
  }
@@ -2095,22 +2106,22 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
2095
2106
  render() {
2096
2107
  this._snapshotDeclared();
2097
2108
  let e = this._readOptions(), t = this.hasAttribute("searchable"), n = this.getAttribute("placeholder") || "Select...", r = this.getAttribute("search-placeholder") || "Search...", i = e.find((e) => String(e.value) === String(this._value)) || e.find((e) => e.selected);
2098
- i && (this._value = String(i.value)), M(this, this._value);
2109
+ i && (this._value = String(i.value)), P(this, this._value);
2099
2110
  let a = e.map((e) => {
2100
2111
  let t = String(e.value) === String(this._value);
2101
- return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${W(e.value)}" aria-selected="${t}">${F(e)}</button>`;
2112
+ return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${J(e.value)}" aria-selected="${t}">${L(e)}</button>`;
2102
2113
  }).join("");
2103
2114
  this.innerHTML = `
2104
2115
  <div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}">
2105
- <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-label="${W(this._accessibleName())}"${this.hasAttribute("disabled") ? " disabled" : ""}>
2106
- <span class="${i ? "" : "search-select-placeholder"}" data-label>${i ? F(i) : P(n)}</span>
2116
+ <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-label="${J(this._accessibleName())}"${this.hasAttribute("disabled") ? " disabled" : ""}>
2117
+ <span class="${i ? "" : "search-select-placeholder"}" data-label>${i ? L(i) : I(n)}</span>
2107
2118
  <i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
2108
2119
  </button>
2109
2120
  <div class="search-select-menu search-select-menu-fixed" role="listbox" tabindex="-1" hidden>
2110
- ${t ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${W(r)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden><i class="bi bi-x" aria-hidden="true"></i></button></div>` : ""}
2121
+ ${t ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${J(r)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden><i class="bi bi-x" aria-hidden="true"></i></button></div>` : ""}
2111
2122
  <div class="search-select-options">${a}<div class="search-select-empty" hidden>No matches</div></div>
2112
2123
  </div>
2113
- </div>`, this._rendered = !0, M(this, this._value), this._wire();
2124
+ </div>`, this._rendered = !0, P(this, this._value), this._wire();
2114
2125
  }
2115
2126
  _refs() {
2116
2127
  return {
@@ -2135,7 +2146,7 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
2135
2146
  let t = e.dataset.value === String(this._value);
2136
2147
  e.classList.toggle("selected", t), e.setAttribute("aria-selected", String(t));
2137
2148
  }
2138
- e && (e.innerHTML = t ? F(t) : e.innerHTML, e.classList.toggle("search-select-placeholder", !t));
2149
+ e && (e.innerHTML = t ? L(t) : e.innerHTML, e.classList.toggle("search-select-placeholder", !t));
2139
2150
  }
2140
2151
  _wire() {
2141
2152
  let e = this._refs();
@@ -2190,14 +2201,14 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
2190
2201
  disconnectedCallback() {
2191
2202
  this._onDocClick && document.removeEventListener("click", this._onDocClick);
2192
2203
  }
2193
- }, W = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), G = "image/png,image/jpeg,image/webp", pe = {
2204
+ }, J = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), ue = "image/png,image/jpeg,image/webp", de = {
2194
2205
  "image/png": [".png"],
2195
2206
  "image/jpeg": [".jpg", ".jpeg"],
2196
2207
  "image/webp": [".webp"],
2197
2208
  "image/gif": [".gif"],
2198
2209
  "image/svg+xml": [".svg"],
2199
2210
  "application/pdf": [".pdf"]
2200
- }, me = {
2211
+ }, fe = {
2201
2212
  "image/png": "PNG",
2202
2213
  "image/jpeg": "JPG",
2203
2214
  "image/webp": "WEBP",
@@ -2211,36 +2222,36 @@ var N = Symbol("wui.trustedHtml"), P = (e) => String(e ?? "").replace(/&/g, "&am
2211
2222
  ".gif": "GIF",
2212
2223
  ".svg": "SVG",
2213
2224
  ".pdf": "PDF"
2214
- }, K = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
2215
- function he(e) {
2225
+ }, pe = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
2226
+ function me(e) {
2216
2227
  let t = [];
2217
- for (let n of K(e)) {
2218
- let e = me[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
2228
+ for (let n of pe(e)) {
2229
+ let e = fe[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
2219
2230
  t.includes(e) || t.push(e);
2220
2231
  }
2221
2232
  return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
2222
2233
  }
2223
- function ge(e, t) {
2224
- let n = K(t);
2234
+ function he(e, t) {
2235
+ let n = pe(t);
2225
2236
  if (!n.length) return !0;
2226
2237
  let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
2227
- return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (pe[e] || []).some((e) => i.endsWith(e)));
2238
+ return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (de[e] || []).some((e) => i.endsWith(e)));
2228
2239
  }
2229
- function q(e, t = {}) {
2240
+ function ge(e, t = {}) {
2230
2241
  if (!e) return null;
2231
- let n = t.accept === void 0 ? G : t.accept, r = t.maxSizeMb || 5;
2232
- return ge(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${he(n)} file.`;
2242
+ let n = t.accept === void 0 ? ue : t.accept, r = t.maxSizeMb || 5;
2243
+ return he(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${me(n)} file.`;
2233
2244
  }
2234
- var J = (e, t) => {
2245
+ var Y = (e, t) => {
2235
2246
  typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
2236
2247
  };
2237
2248
  function _e() {
2238
- J("wui-select", fe), J("wui-phone", de), J("wui-datepicker", se), J("wui-autocomplete", ne), J("wui-multiselect", ce), J("wui-status-icon", ee);
2249
+ Y("wui-select", le), Y("wui-phone", se), Y("wui-datepicker", ie), Y("wui-autocomplete", te), Y("wui-multiselect", ae), Y("wui-status-icon", N);
2239
2250
  }
2240
2251
  _e();
2241
2252
  //#endregion
2242
2253
  //#region src/components/RequiredMark.jsx
2243
- function Y() {
2254
+ function X() {
2244
2255
  return /* @__PURE__ */ t("span", {
2245
2256
  className: "required",
2246
2257
  "aria-hidden": "true",
@@ -2249,21 +2260,21 @@ function Y() {
2249
2260
  }
2250
2261
  //#endregion
2251
2262
  //#region src/components/AppAutocomplete.jsx
2252
- function ve({ value: e, onChange: r, options: a, loadOptions: o, placeholder: c = "Search…", minChars: l, debounce: u, disabled: d = !1, name: f, label: p, error: m, hint: h, required: g = !1, fieldClassName: _ = "", ...v }) {
2253
- w("AppAutocomplete", v);
2254
- let y = s(null), b = typeof o == "function";
2255
- return i(() => {
2263
+ function ve({ value: e, onChange: r, options: i, loadOptions: o, placeholder: s = "Search…", minChars: l, debounce: u, disabled: d = !1, name: f, label: p, error: m, hint: h, required: g = !1, fieldClassName: _ = "", ...v }) {
2264
+ T("AppAutocomplete", v);
2265
+ let y = c(null), b = typeof o == "function";
2266
+ return a(() => {
2256
2267
  let e = y.current;
2257
- e && !b && (e.options = a || []);
2258
- }, [a, b]), i(() => {
2268
+ e && !b && (e.options = i || []);
2269
+ }, [i, b]), a(() => {
2259
2270
  let t = y.current;
2260
2271
  t && t.value !== (e ?? "") && (t.value = e ?? "");
2261
- }, [e]), i(() => {
2272
+ }, [e]), a(() => {
2262
2273
  let e = y.current;
2263
2274
  if (!e) return;
2264
2275
  let t = () => r?.(e.value);
2265
2276
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
2266
- }, [r]), i(() => {
2277
+ }, [r]), a(() => {
2267
2278
  let e = y.current;
2268
2279
  if (!e || !b) return;
2269
2280
  let t = !1, n = async (n) => {
@@ -2284,14 +2295,14 @@ function ve({ value: e, onChange: r, options: a, loadOptions: o, placeholder: c
2284
2295
  p && /* @__PURE__ */ n("label", {
2285
2296
  className: "label",
2286
2297
  htmlFor: f,
2287
- children: [p, g && /* @__PURE__ */ t(Y, {})]
2298
+ children: [p, g && /* @__PURE__ */ t(X, {})]
2288
2299
  }),
2289
2300
  /* @__PURE__ */ t("wui-autocomplete", {
2290
2301
  "aria-label": typeof p == "string" ? p : void 0,
2291
2302
  id: f,
2292
2303
  ref: y,
2293
2304
  name: f,
2294
- placeholder: c,
2305
+ placeholder: s,
2295
2306
  remote: b ? "" : void 0,
2296
2307
  "min-chars": l == null ? void 0 : String(l),
2297
2308
  debounce: u == null ? void 0 : String(u),
@@ -2317,7 +2328,7 @@ function ye(e) {
2317
2328
  return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
2318
2329
  }
2319
2330
  function be({ name: e, src: n, className: r = "", ...i }) {
2320
- w("AppAvatar", i);
2331
+ T("AppAvatar", i);
2321
2332
  let a = ["avatar", r].filter(Boolean).join(" ");
2322
2333
  return n ? /* @__PURE__ */ t("span", {
2323
2334
  className: a,
@@ -2336,7 +2347,7 @@ function be({ name: e, src: n, className: r = "", ...i }) {
2336
2347
  //#endregion
2337
2348
  //#region src/components/AppBadge.jsx
2338
2349
  function xe({ children: e, tone: n, dot: r = !1, className: i = "", ...a }) {
2339
- return w("AppBadge", a), /* @__PURE__ */ t(u, {
2350
+ return T("AppBadge", a), /* @__PURE__ */ t(d, {
2340
2351
  bg: !1,
2341
2352
  className: [
2342
2353
  n ? `badge-${n}` : "",
@@ -2359,7 +2370,7 @@ var Se = {
2359
2370
  function Ce(e, n) {
2360
2371
  if (!e) return null;
2361
2372
  let r = n === "left" ? "me-2" : "ms-2";
2362
- return typeof e == "string" ? /* @__PURE__ */ t(D, {
2373
+ return typeof e == "string" ? /* @__PURE__ */ t(O, {
2363
2374
  name: e,
2364
2375
  size: 16,
2365
2376
  className: r
@@ -2368,10 +2379,10 @@ function Ce(e, n) {
2368
2379
  children: e
2369
2380
  });
2370
2381
  }
2371
- function X({ children: e, variant: r = "primary", size: i = "md", type: a = "button", loading: o = !1, disabled: s = !1, block: c = !1, leftIcon: l = null, rightIcon: u = null, className: f = "", ...p }) {
2372
- w("AppButton", p);
2373
- let m = [c ? "w-100" : "", f].filter(Boolean).join(" ");
2374
- return /* @__PURE__ */ n(d, {
2382
+ function Z({ children: e, variant: r = "primary", size: i = "md", type: a = "button", loading: o = !1, disabled: s = !1, block: c = !1, leftIcon: l = null, rightIcon: u = null, className: d = "", ...p }) {
2383
+ T("AppButton", p);
2384
+ let m = [c ? "w-100" : "", d].filter(Boolean).join(" ");
2385
+ return /* @__PURE__ */ n(f, {
2375
2386
  type: (p.as === void 0 || p.as === "button") && p.href === void 0 ? a : void 0,
2376
2387
  variant: Se[r] ?? "primary",
2377
2388
  size: i === "md" ? void 0 : i,
@@ -2392,11 +2403,11 @@ function X({ children: e, variant: r = "primary", size: i = "md", type: a = "but
2392
2403
  //#endregion
2393
2404
  //#region src/components/AppCallout.jsx
2394
2405
  function we({ children: e, icon: r = "info", className: i = "", ...a }) {
2395
- return w("AppCallout", a), /* @__PURE__ */ n("div", {
2406
+ return T("AppCallout", a), /* @__PURE__ */ n("div", {
2396
2407
  className: `info-callout${i ? ` ${i}` : ""}`,
2397
2408
  children: [r && /* @__PURE__ */ t("span", {
2398
2409
  className: "info-callout-icon",
2399
- children: /* @__PURE__ */ t(D, {
2410
+ children: /* @__PURE__ */ t(O, {
2400
2411
  name: r,
2401
2412
  size: 18
2402
2413
  })
@@ -2405,16 +2416,16 @@ function we({ children: e, icon: r = "info", className: i = "", ...a }) {
2405
2416
  }
2406
2417
  //#endregion
2407
2418
  //#region src/components/AppCard.jsx
2408
- function Te({ title: r, titleClassName: i = "", header: a, headerExtra: o, headerActions: s, children: c, className: l = "", bodyClassName: u = "", headerClassName: d = "", body: p = !0, lifted: m = !1, ...h }) {
2409
- w("AppCard", h);
2419
+ function Te({ title: r, titleClassName: i = "", header: a, headerExtra: o, headerActions: s, children: c, className: l = "", bodyClassName: u = "", headerClassName: d = "", body: f = !0, lifted: m = !1, ...h }) {
2420
+ T("AppCard", h);
2410
2421
  let g = a != null || r != null || o != null || s != null;
2411
- return /* @__PURE__ */ n(f, {
2422
+ return /* @__PURE__ */ n(p, {
2412
2423
  className: [m ? "card-lifted" : "", l].filter(Boolean).join(" ") || void 0,
2413
2424
  ...h,
2414
- children: [g && /* @__PURE__ */ t(f.Header, {
2425
+ children: [g && /* @__PURE__ */ t(p.Header, {
2415
2426
  className: d || void 0,
2416
2427
  children: a ?? /* @__PURE__ */ n(e, { children: [
2417
- r != null && /* @__PURE__ */ t(f.Title, {
2428
+ r != null && /* @__PURE__ */ t(p.Title, {
2418
2429
  as: "div",
2419
2430
  className: i || void 0,
2420
2431
  children: r
@@ -2422,7 +2433,7 @@ function Te({ title: r, titleClassName: i = "", header: a, headerExtra: o, heade
2422
2433
  o,
2423
2434
  s
2424
2435
  ] })
2425
- }), p ? /* @__PURE__ */ t(f.Body, {
2436
+ }), f ? /* @__PURE__ */ t(p.Body, {
2426
2437
  className: u || void 0,
2427
2438
  children: c
2428
2439
  }) : c]
@@ -2430,11 +2441,11 @@ function Te({ title: r, titleClassName: i = "", header: a, headerExtra: o, heade
2430
2441
  }
2431
2442
  //#endregion
2432
2443
  //#region src/components/AppCheckbox.jsx
2433
- var Ee = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
2434
- w("AppCheckbox", s);
2435
- let l = a(), u = r || i || l;
2444
+ var Ee = r(function({ label: e, id: r, name: i, className: a = "", ...s }, c) {
2445
+ T("AppCheckbox", s);
2446
+ let l = o(), u = r || i || l;
2436
2447
  return /* @__PURE__ */ n("div", {
2437
- className: `form-check${o ? ` ${o}` : ""}`,
2448
+ className: `form-check${a ? ` ${a}` : ""}`,
2438
2449
  children: [/* @__PURE__ */ t("input", {
2439
2450
  type: "checkbox",
2440
2451
  className: "form-check-input",
@@ -2452,7 +2463,7 @@ var Ee = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
2452
2463
  //#endregion
2453
2464
  //#region src/components/AppChip.jsx
2454
2465
  function De({ label: r, children: i, tone: a = "neutral", size: o = "md", leadingIcon: s, avatar: c, onRemove: l, onClick: u, disabled: d = !1, removeLabel: f, className: p = "", ...m }) {
2455
- w("AppChip", m);
2466
+ T("AppChip", m);
2456
2467
  let h = r ?? i, g = [
2457
2468
  "chip",
2458
2469
  a && a !== "neutral" ? a : "",
@@ -2469,7 +2480,7 @@ function De({ label: r, children: i, tone: a = "neutral", size: o = "md", leadin
2469
2480
  }) : c
2470
2481
  }) : s ? /* @__PURE__ */ t("span", {
2471
2482
  className: "chip-ic",
2472
- children: /* @__PURE__ */ t(D, {
2483
+ children: /* @__PURE__ */ t(O, {
2473
2484
  name: s,
2474
2485
  size: o === "sm" ? 12 : 14
2475
2486
  })
@@ -2494,7 +2505,7 @@ function De({ label: r, children: i, tone: a = "neutral", size: o = "md", leadin
2494
2505
  onClick: l,
2495
2506
  disabled: d,
2496
2507
  "aria-label": f || (typeof h == "string" ? `Remove ${h}` : "Remove"),
2497
- children: /* @__PURE__ */ t(D, {
2508
+ children: /* @__PURE__ */ t(O, {
2498
2509
  name: "x",
2499
2510
  size: o === "sm" ? 12 : 14
2500
2511
  })
@@ -2504,7 +2515,7 @@ function De({ label: r, children: i, tone: a = "neutral", size: o = "md", leadin
2504
2515
  //#endregion
2505
2516
  //#region src/components/AppChoiceCard.jsx
2506
2517
  function Oe({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon: c, iconNode: l, iconSize: u = 18, image: d, imageAlt: f = "", children: p, title: m, description: h, checkIcon: g = "check", checkSize: _ = 12, className: v = "", ...y }) {
2507
- return w("AppChoiceCard", y), /* @__PURE__ */ n("label", {
2518
+ return T("AppChoiceCard", y), /* @__PURE__ */ n("label", {
2508
2519
  className: `struct-card${d ? " struct-card-img-card" : ""}${o ? " checked" : ""}${v ? ` ${v}` : ""}`,
2509
2520
  children: [
2510
2521
  /* @__PURE__ */ t("input", {
@@ -2524,7 +2535,7 @@ function Oe({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon
2524
2535
  })
2525
2536
  }) : l || c ? /* @__PURE__ */ t("span", {
2526
2537
  className: "struct-card-ic",
2527
- children: l || /* @__PURE__ */ t(D, {
2538
+ children: l || /* @__PURE__ */ t(O, {
2528
2539
  name: c,
2529
2540
  size: u
2530
2541
  })
@@ -2541,7 +2552,7 @@ function Oe({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon
2541
2552
  }),
2542
2553
  /* @__PURE__ */ t("span", {
2543
2554
  className: "struct-card-check",
2544
- children: /* @__PURE__ */ t(D, {
2555
+ children: /* @__PURE__ */ t(O, {
2545
2556
  name: g,
2546
2557
  size: _
2547
2558
  })
@@ -2552,7 +2563,7 @@ function Oe({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon
2552
2563
  //#endregion
2553
2564
  //#region src/components/AppChoiceChip.jsx
2554
2565
  function ke({ multiple: e = !0, label: r, name: i, value: a, checked: o, onChange: s, children: c, count: l, className: u = "", ...d }) {
2555
- return w("AppChoiceChip", d), /* @__PURE__ */ n("label", {
2566
+ return T("AppChoiceChip", d), /* @__PURE__ */ n("label", {
2556
2567
  className: `choice-chip${o ? " checked" : ""}${u ? ` ${u}` : ""}`,
2557
2568
  children: [
2558
2569
  /* @__PURE__ */ t("input", {
@@ -2573,7 +2584,7 @@ function ke({ multiple: e = !0, label: r, name: i, value: a, checked: o, onChang
2573
2584
  //#endregion
2574
2585
  //#region src/components/AppColorField.jsx
2575
2586
  function Ae({ value: e = "#000000", onChange: r, label: i, required: a = !1, error: o, hint: s, name: c, id: l, disabled: u = !1, className: d = "", ...f }) {
2576
- w("AppColorField", f);
2587
+ T("AppColorField", f);
2577
2588
  let p = l || c;
2578
2589
  return /* @__PURE__ */ n("div", {
2579
2590
  className: `field${d ? ` ${d}` : ""}`,
@@ -2581,7 +2592,7 @@ function Ae({ value: e = "#000000", onChange: r, label: i, required: a = !1, err
2581
2592
  i && /* @__PURE__ */ n("label", {
2582
2593
  className: "label",
2583
2594
  htmlFor: p,
2584
- children: [i, a && /* @__PURE__ */ t(Y, {})]
2595
+ children: [i, a && /* @__PURE__ */ t(X, {})]
2585
2596
  }),
2586
2597
  /* @__PURE__ */ n("div", {
2587
2598
  className: "color-field",
@@ -2621,10 +2632,10 @@ function Ae({ value: e = "#000000", onChange: r, label: i, required: a = !1, err
2621
2632
  //#endregion
2622
2633
  //#region src/components/AppCompareTable.jsx
2623
2634
  function je({ columns: e = [], rows: r = [], caption: i, className: a = "", ...o }) {
2624
- w("AppCompareTable", o);
2635
+ T("AppCompareTable", o);
2625
2636
  let s = (e) => e === !0 ? /* @__PURE__ */ t("span", {
2626
2637
  className: "compare-yes",
2627
- children: /* @__PURE__ */ t(D, {
2638
+ children: /* @__PURE__ */ t(O, {
2628
2639
  name: "check",
2629
2640
  size: 16
2630
2641
  })
@@ -2656,19 +2667,19 @@ function je({ columns: e = [], rows: r = [], caption: i, className: a = "", ...o
2656
2667
  }
2657
2668
  //#endregion
2658
2669
  //#region src/components/AppInfoTip.jsx
2659
- function Z({ label: e, children: r, ...i }) {
2660
- w("AppInfoTip", i);
2661
- let [l, u] = c(!1), [d, f] = c(null), p = s(null), h = s(null), g = a();
2662
- return o(() => {
2663
- if (!l || !p.current || !h.current) return;
2664
- let e = p.current.getBoundingClientRect(), t = h.current.offsetWidth, n = h.current.offsetHeight, r = e.left + e.width / 2 - t / 2;
2670
+ function Q({ label: e, children: r, ...i }) {
2671
+ T("AppInfoTip", i);
2672
+ let [a, u] = l(!1), [d, f] = l(null), p = c(null), m = c(null), g = o();
2673
+ return s(() => {
2674
+ if (!a || !p.current || !m.current) return;
2675
+ let e = p.current.getBoundingClientRect(), t = m.current.offsetWidth, n = m.current.offsetHeight, r = e.left + e.width / 2 - t / 2;
2665
2676
  r = Math.max(8, Math.min(r, window.innerWidth - t - 8));
2666
2677
  let i = e.top - n - 8;
2667
2678
  i < 8 && (i = e.bottom + 8), f({
2668
2679
  top: i,
2669
2680
  left: r
2670
2681
  });
2671
- }, [l]), r ? /* @__PURE__ */ n("span", {
2682
+ }, [a]), r ? /* @__PURE__ */ n("span", {
2672
2683
  className: "infotip",
2673
2684
  onMouseLeave: () => u(!1),
2674
2685
  children: [/* @__PURE__ */ t("button", {
@@ -2676,18 +2687,18 @@ function Z({ label: e, children: r, ...i }) {
2676
2687
  ref: p,
2677
2688
  className: "infotip-btn",
2678
2689
  "aria-label": e,
2679
- "aria-expanded": l,
2680
- "aria-describedby": l ? g : void 0,
2690
+ "aria-expanded": a,
2691
+ "aria-describedby": a ? g : void 0,
2681
2692
  onMouseEnter: () => u(!0),
2682
2693
  onClick: () => u((e) => !e),
2683
2694
  onFocus: () => u(!0),
2684
2695
  onBlur: () => u(!1),
2685
- children: /* @__PURE__ */ t(D, {
2696
+ children: /* @__PURE__ */ t(O, {
2686
2697
  name: "info",
2687
2698
  size: 16
2688
2699
  })
2689
- }), l && m(/* @__PURE__ */ t("span", {
2690
- ref: h,
2700
+ }), a && h(/* @__PURE__ */ t("span", {
2701
+ ref: m,
2691
2702
  className: "infotip-pop is-portal",
2692
2703
  role: "tooltip",
2693
2704
  id: g,
@@ -2703,96 +2714,160 @@ function Z({ label: e, children: r, ...i }) {
2703
2714
  }
2704
2715
  //#endregion
2705
2716
  //#region src/components/AppInput.jsx
2706
- var Me = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, helpLabel: s = "More information", type: l = "text", leftIcon: u, rightIcon: d, onRightIconClick: f, unit: m, id: h, name: g, className: _ = "", fieldClassName: v = "", disabled: y = !1, ...b }, x) {
2707
- w("AppInput", b);
2708
- let [S, C] = c(!1), T = h || g, E = l === "password", O = E && S ? "text" : l, k = [
2717
+ var Me = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, helpLabel: s = "More information", type: u = "text", size: d = "md", leftIcon: f, rightIcon: p, onRightIconClick: h, rightIconLabel: g, unit: _, id: v, name: y, className: b = "", fieldClassName: x = "", disabled: S = !1, clearable: C = !1, showCount: w = !1, maxLength: E, prefix: D, suffix: k, floatingLabel: A = !1, ...j }, M) {
2718
+ T("AppInput", j);
2719
+ let [N, ee] = l(!1), P = v || y, F = u === "password", I = F && N ? "text" : u, L = c(null), te = (e) => {
2720
+ L.current = e, typeof M == "function" ? M(e) : M && (M.current = e);
2721
+ }, R = String(j.value ?? j.defaultValue ?? ""), [z, B] = l(() => !!R), [ne, V] = l(() => R.length), re = C && !S, H = C || w, U = (e) => {
2722
+ B(!!e.target.value), V(e.target.value.length), j.onInput?.(e);
2723
+ }, ie = re ? /* @__PURE__ */ t("button", {
2724
+ type: "button",
2725
+ className: "input-clear",
2726
+ onClick: () => {
2727
+ let e = L.current;
2728
+ if (!e) return;
2729
+ let t = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set;
2730
+ t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })), B(!1), e.focus();
2731
+ },
2732
+ "aria-label": "Clear",
2733
+ tabIndex: -1,
2734
+ hidden: !z,
2735
+ children: /* @__PURE__ */ t(O, {
2736
+ name: "x",
2737
+ size: 16
2738
+ })
2739
+ }) : null, ae = [
2709
2740
  "input",
2741
+ d === "sm" ? "input-sm" : "",
2742
+ d === "lg" ? "input-lg" : "",
2710
2743
  i ? "error" : "",
2711
- E ? "pw" : "",
2712
- m ? "num-input" : "",
2713
- _
2714
- ].filter(Boolean).join(" "), A = /* @__PURE__ */ t(p.Control, {
2715
- id: T,
2716
- name: g,
2717
- type: O,
2718
- className: k,
2719
- disabled: y,
2744
+ F ? "pw" : "",
2745
+ _ ? "num-input" : "",
2746
+ C ? "has-clear" : "",
2747
+ b
2748
+ ].filter(Boolean).join(" "), W = /* @__PURE__ */ t(m.Control, {
2749
+ id: P,
2750
+ name: y,
2751
+ type: I,
2752
+ className: ae,
2753
+ disabled: S,
2720
2754
  required: r,
2721
2755
  "aria-invalid": i ? "true" : "false",
2722
- ref: x,
2723
- ...b
2724
- }), j;
2725
- return j = m ? /* @__PURE__ */ n("div", {
2756
+ maxLength: E,
2757
+ ...j,
2758
+ placeholder: A ? " " : j.placeholder,
2759
+ ref: te,
2760
+ onInput: H ? U : j.onInput
2761
+ }), G;
2762
+ return G = A && e ? /* @__PURE__ */ n("div", {
2763
+ className: "field-float",
2764
+ children: [W, /* @__PURE__ */ n("label", {
2765
+ className: "float-label",
2766
+ htmlFor: P,
2767
+ children: [e, r && /* @__PURE__ */ t(X, {})]
2768
+ })]
2769
+ }) : D || k ? /* @__PURE__ */ n("div", {
2770
+ className: "input-affixed",
2771
+ children: [
2772
+ D != null && /* @__PURE__ */ t("span", {
2773
+ className: "affix affix-pre",
2774
+ children: D
2775
+ }),
2776
+ W,
2777
+ k != null && /* @__PURE__ */ t("span", {
2778
+ className: "affix affix-suf",
2779
+ children: k
2780
+ })
2781
+ ]
2782
+ }) : _ ? /* @__PURE__ */ n("div", {
2726
2783
  className: "input-with-unit",
2727
- children: [A, /* @__PURE__ */ t("span", {
2784
+ children: [W, /* @__PURE__ */ t("span", {
2728
2785
  className: "unit",
2729
- children: m
2786
+ children: _
2730
2787
  })]
2731
- }) : E ? /* @__PURE__ */ n("div", {
2788
+ }) : F ? /* @__PURE__ */ n("div", {
2732
2789
  className: "input-wrap",
2733
- children: [A, /* @__PURE__ */ t("button", {
2790
+ children: [W, /* @__PURE__ */ t("button", {
2734
2791
  type: "button",
2735
2792
  className: "pw-toggle",
2736
- onClick: () => C((e) => !e),
2737
- "aria-label": S ? "Hide password" : "Show password",
2793
+ onClick: () => ee((e) => !e),
2794
+ "aria-label": N ? "Hide password" : "Show password",
2738
2795
  tabIndex: -1,
2739
- children: /* @__PURE__ */ t(D, {
2740
- name: S ? "eye-off" : "eye",
2796
+ children: /* @__PURE__ */ t(O, {
2797
+ name: N ? "eye-off" : "eye",
2741
2798
  size: 18
2742
2799
  })
2743
2800
  })]
2744
- }) : d ? /* @__PURE__ */ n("div", {
2801
+ }) : p ? /* @__PURE__ */ n("div", {
2745
2802
  className: "input-wrap",
2746
- children: [A, /* @__PURE__ */ t("button", {
2803
+ children: [W, /* @__PURE__ */ t("button", {
2747
2804
  type: "button",
2748
2805
  className: "pw-toggle",
2749
- onClick: f,
2750
- disabled: !f,
2806
+ onClick: h,
2807
+ disabled: !h,
2751
2808
  tabIndex: -1,
2752
- children: /* @__PURE__ */ t(D, {
2753
- name: d,
2809
+ "aria-label": g || p,
2810
+ children: /* @__PURE__ */ t(O, {
2811
+ name: p,
2754
2812
  size: 18
2755
2813
  })
2756
2814
  })]
2757
- }) : u ? /* @__PURE__ */ n("div", {
2815
+ }) : C ? /* @__PURE__ */ n("div", {
2816
+ className: f ? "input-icon" : "input-wrap",
2817
+ children: [
2818
+ f && /* @__PURE__ */ t("span", {
2819
+ className: "ic",
2820
+ children: /* @__PURE__ */ t(O, {
2821
+ name: f,
2822
+ size: 16
2823
+ })
2824
+ }),
2825
+ W,
2826
+ ie
2827
+ ]
2828
+ }) : f ? /* @__PURE__ */ n("div", {
2758
2829
  className: "input-icon",
2759
2830
  children: [/* @__PURE__ */ t("span", {
2760
2831
  className: "ic",
2761
- children: /* @__PURE__ */ t(D, {
2762
- name: u,
2832
+ children: /* @__PURE__ */ t(O, {
2833
+ name: f,
2763
2834
  size: 16
2764
2835
  })
2765
- }), A]
2766
- }) : A, /* @__PURE__ */ n(p.Group, {
2767
- className: `field${v ? ` ${v}` : ""}`,
2836
+ }), W]
2837
+ }) : W, /* @__PURE__ */ n(m.Group, {
2838
+ className: `field${x ? ` ${x}` : ""}`,
2768
2839
  children: [
2769
- e && /* @__PURE__ */ n(p.Label, {
2840
+ e && !A && /* @__PURE__ */ n(m.Label, {
2770
2841
  className: "label",
2771
- htmlFor: T,
2842
+ htmlFor: P,
2772
2843
  children: [
2773
2844
  e,
2774
- r && /* @__PURE__ */ t(Y, {}),
2775
- o && /* @__PURE__ */ t(Z, {
2845
+ r && /* @__PURE__ */ t(X, {}),
2846
+ o && /* @__PURE__ */ t(Q, {
2776
2847
  label: s,
2777
2848
  children: o
2778
2849
  })
2779
2850
  ]
2780
2851
  }),
2781
- j,
2852
+ G,
2782
2853
  i ? /* @__PURE__ */ t("div", {
2783
2854
  className: "field-error",
2784
2855
  children: i
2785
2856
  }) : a ? /* @__PURE__ */ t("div", {
2786
2857
  className: "field-hint",
2787
2858
  children: a
2788
- }) : null
2859
+ }) : null,
2860
+ w && /* @__PURE__ */ n("div", {
2861
+ className: `field-count${E && ne >= E ? " at-limit" : ""}`,
2862
+ children: [ne, E ? ` / ${E}` : ""]
2863
+ })
2789
2864
  ]
2790
2865
  });
2791
2866
  }), Ne = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])";
2792
- function Pe({ open: e, title: r, subtitle: a, headerIcon: o, onClose: c, footer: l, size: u, wide: d = !1, side: f = !1, maxWidth: p, hideHeader: m = !1, className: g = "", children: _, ...v }) {
2793
- w("AppModal", v);
2794
- let y = s(null);
2795
- i(() => {
2867
+ function Pe({ open: e, title: r, subtitle: i, headerIcon: o, onClose: s, footer: l, size: u, wide: d = !1, side: f = !1, maxWidth: p, hideHeader: m = !1, className: h = "", children: _, ...v }) {
2868
+ T("AppModal", v);
2869
+ let y = c(null);
2870
+ a(() => {
2796
2871
  if (!e) return;
2797
2872
  let t = y.current?.closest(".modal-content");
2798
2873
  if (!t) return;
@@ -2803,11 +2878,11 @@ function Pe({ open: e, title: r, subtitle: a, headerIcon: o, onClose: c, footer:
2803
2878
  "lx-modal",
2804
2879
  d ? "lx-modal-wide" : "",
2805
2880
  f ? "lx-modal-side" : "",
2806
- g
2881
+ h
2807
2882
  ].filter(Boolean).join(" ");
2808
- return /* @__PURE__ */ n(h, {
2883
+ return /* @__PURE__ */ n(g, {
2809
2884
  show: e,
2810
- onHide: c,
2885
+ onHide: s,
2811
2886
  animation: !1,
2812
2887
  backdrop: !0,
2813
2888
  keyboard: !0,
@@ -2829,7 +2904,7 @@ function Pe({ open: e, title: r, subtitle: a, headerIcon: o, onClose: c, footer:
2829
2904
  className: "lx-modal-heading",
2830
2905
  children: [o && /* @__PURE__ */ t("span", {
2831
2906
  className: "lx-modal-headicon",
2832
- children: /* @__PURE__ */ t(D, {
2907
+ children: /* @__PURE__ */ t(O, {
2833
2908
  name: o,
2834
2909
  size: 18
2835
2910
  })
@@ -2838,15 +2913,15 @@ function Pe({ open: e, title: r, subtitle: a, headerIcon: o, onClose: c, footer:
2838
2913
  children: [/* @__PURE__ */ t("div", {
2839
2914
  className: "lx-modal-title",
2840
2915
  children: r
2841
- }), a && /* @__PURE__ */ t("div", {
2916
+ }), i && /* @__PURE__ */ t("div", {
2842
2917
  className: "lx-modal-subtitle",
2843
- children: a
2918
+ children: i
2844
2919
  })]
2845
2920
  })]
2846
2921
  }), /* @__PURE__ */ t("button", {
2847
2922
  type: "button",
2848
2923
  className: "lx-modal-close",
2849
- onClick: c,
2924
+ onClick: s,
2850
2925
  "aria-label": "Close",
2851
2926
  children: /* @__PURE__ */ t("svg", {
2852
2927
  width: "18",
@@ -2876,40 +2951,40 @@ function Pe({ open: e, title: r, subtitle: a, headerIcon: o, onClose: c, footer:
2876
2951
  }
2877
2952
  //#endregion
2878
2953
  //#region src/components/ModalIcons.jsx
2879
- var Q = (e) => function({ size: n = 72 }) {
2954
+ var $ = (e) => function({ size: n = 72 }) {
2880
2955
  return /* @__PURE__ */ t("wui-status-icon", {
2881
2956
  tone: e,
2882
2957
  size: n
2883
2958
  });
2884
2959
  }, Fe = {
2885
- success: Q("success"),
2886
- error: Q("error"),
2887
- warning: Q("warning"),
2888
- info: Q("info"),
2889
- delete: Q("delete")
2960
+ success: $("success"),
2961
+ error: $("error"),
2962
+ warning: $("warning"),
2963
+ info: $("info"),
2964
+ delete: $("delete")
2890
2965
  };
2891
2966
  //#endregion
2892
2967
  //#region src/components/AppConfirmDialog.jsx
2893
- function Ie({ open: r, title: a, message: o, confirmLabel: s = "Confirm", cancelLabel: l = "Cancel", danger: u = !1, tone: d, confirmPhrase: f, onConfirm: p, onClose: m, ...h }) {
2894
- w("AppConfirmDialog", h);
2895
- let [g, _] = c("");
2896
- if (i(() => {
2968
+ function Ie({ open: r, title: i, message: o, confirmLabel: s = "Confirm", cancelLabel: c = "Cancel", danger: u = !1, tone: d, confirmPhrase: f, onConfirm: p, onClose: m, ...h }) {
2969
+ T("AppConfirmDialog", h);
2970
+ let [g, _] = l("");
2971
+ if (a(() => {
2897
2972
  r || _("");
2898
2973
  }, [r]), !r) return null;
2899
2974
  let v = !!f && g.trim() !== f, y = Fe[d || (u ? "delete" : "info")];
2900
2975
  return /* @__PURE__ */ t(Pe, {
2901
2976
  open: r,
2902
2977
  hideHeader: !0,
2903
- title: a,
2978
+ title: i,
2904
2979
  onClose: m,
2905
2980
  className: "lx-confirm",
2906
2981
  footer: /* @__PURE__ */ n("div", {
2907
2982
  className: "lx-confirm-actions",
2908
- children: [/* @__PURE__ */ t(X, {
2983
+ children: [/* @__PURE__ */ t(Z, {
2909
2984
  variant: "secondary",
2910
2985
  onClick: m,
2911
- children: l
2912
- }), /* @__PURE__ */ t(X, {
2986
+ children: c
2987
+ }), /* @__PURE__ */ t(Z, {
2913
2988
  variant: u ? "danger" : "primary",
2914
2989
  disabled: v,
2915
2990
  onClick: p,
@@ -2927,7 +3002,7 @@ function Ie({ open: r, title: a, message: o, confirmLabel: s = "Confirm", cancel
2927
3002
  className: "lx-confirm-title",
2928
3003
  tabIndex: -1,
2929
3004
  "data-autofocus": !0,
2930
- children: a
3005
+ children: i
2931
3006
  }),
2932
3007
  o && /* @__PURE__ */ t("p", {
2933
3008
  className: "lx-confirm-msg",
@@ -2951,7 +3026,7 @@ function Ie({ open: r, title: a, message: o, confirmLabel: s = "Confirm", cancel
2951
3026
  //#endregion
2952
3027
  //#region src/components/AppSkeleton.jsx
2953
3028
  function Le({ width: e = "100%", height: n = 14, radius: r = 6, className: i = "", style: a, ...o }) {
2954
- return w("AppSkeleton", o), /* @__PURE__ */ t("span", {
3029
+ return T("AppSkeleton", o), /* @__PURE__ */ t("span", {
2955
3030
  className: `skeleton${i ? ` ${i}` : ""}`,
2956
3031
  "aria-hidden": "true",
2957
3032
  style: {
@@ -2989,18 +3064,18 @@ function Be({ rows: e = 4, cols: n = 5 }) {
2989
3064
  }
2990
3065
  //#endregion
2991
3066
  //#region src/components/AppSelectMini.jsx
2992
- function Ve({ value: e, onChange: n, options: r = [], placeholder: a = "Select...", name: o, ariaLabel: c, id: l, disabled: u, className: d, ...f }) {
2993
- w("AppSelectMini", f);
2994
- let p = s(null);
2995
- return i(() => {
3067
+ function Ve({ value: e, onChange: n, options: r = [], placeholder: i = "Select...", name: o, ariaLabel: s, id: l, disabled: u, className: d, ...f }) {
3068
+ T("AppSelectMini", f);
3069
+ let p = c(null);
3070
+ return a(() => {
2996
3071
  p.current && (p.current.options = r.map((e) => ({
2997
3072
  value: e.value,
2998
3073
  label: e.label ?? e.text ?? ""
2999
3074
  })));
3000
- }, [r]), i(() => {
3075
+ }, [r]), a(() => {
3001
3076
  let t = p.current;
3002
3077
  t && String(t.value ?? "") !== String(e ?? "") && (t.value = e ?? "");
3003
- }, [e]), i(() => {
3078
+ }, [e]), a(() => {
3004
3079
  let e = p.current;
3005
3080
  if (!e) return;
3006
3081
  let t = () => n?.(e.value);
@@ -3010,8 +3085,8 @@ function Ve({ value: e, onChange: n, options: r = [], placeholder: a = "Select..
3010
3085
  name: o,
3011
3086
  compact: "",
3012
3087
  id: l,
3013
- placeholder: a,
3014
- "aria-label": c,
3088
+ placeholder: i,
3089
+ "aria-label": s,
3015
3090
  disabled: u ? "" : void 0,
3016
3091
  className: d
3017
3092
  });
@@ -3025,7 +3100,7 @@ var He = [
3025
3100
  50
3026
3101
  ];
3027
3102
  function Ue({ page: e, totalPages: r, pageSize: i, total: a, firstRow: o, lastRow: s, onPageChange: c, onPageSizeChange: l, pageSizes: u = He, ...d }) {
3028
- return w("AppTablePagination", d), /* @__PURE__ */ n("div", {
3103
+ return T("AppTablePagination", d), /* @__PURE__ */ n("div", {
3029
3104
  className: "table-pagination",
3030
3105
  children: [
3031
3106
  /* @__PURE__ */ n("span", {
@@ -3058,7 +3133,7 @@ function Ue({ page: e, totalPages: r, pageSize: i, total: a, firstRow: o, lastRo
3058
3133
  onClick: () => c(Math.max(1, e - 1)),
3059
3134
  disabled: e <= 1,
3060
3135
  "aria-label": "Previous page",
3061
- children: /* @__PURE__ */ t(D, {
3136
+ children: /* @__PURE__ */ t(O, {
3062
3137
  name: "arrow-left",
3063
3138
  size: 18
3064
3139
  })
@@ -3068,7 +3143,7 @@ function Ue({ page: e, totalPages: r, pageSize: i, total: a, firstRow: o, lastRo
3068
3143
  onClick: () => c(Math.min(r, e + 1)),
3069
3144
  disabled: e >= r,
3070
3145
  "aria-label": "Next page",
3071
- children: /* @__PURE__ */ t(D, {
3146
+ children: /* @__PURE__ */ t(O, {
3072
3147
  name: "arrow-right",
3073
3148
  size: 18
3074
3149
  })
@@ -3086,9 +3161,9 @@ function Ge(e) {
3086
3161
  return e == null || e === "" ? "—" : e;
3087
3162
  }
3088
3163
  function Ke({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s, loading: c = !1, skeletonRows: l = 5, empty: u = "No records found.", emptyFiltered: d, sourceCount: f, rowActions: p, rowActionsLabel: m, pagination: h, ariaLabel: g, className: _ = "", selectable: v = !1, selectedIds: y, onToggleRow: b, onToggleAll: x, ...S }) {
3089
- w("AppDataTable", S);
3090
- let C = Math.max(1, r.length + +!!p + +!!v), T = v && i ? i.reduce((e, t) => e + +!!y?.has(a(t)), 0) : 0, E = v && i && i.length > 0 && T === i.length, O = T > 0 && !E, k = (e) => {
3091
- e && (e.indeterminate = O);
3164
+ T("AppDataTable", S);
3165
+ let C = Math.max(1, r.length + +!!p + +!!v), w = v && i ? i.reduce((e, t) => e + +!!y?.has(a(t)), 0) : 0, E = v && i && i.length > 0 && w === i.length, D = w > 0 && !E, k = (e) => {
3166
+ e && (e.indeterminate = D);
3092
3167
  }, A = d !== void 0 && f > 0 ? d : u;
3093
3168
  return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
3094
3169
  className: "table-wrap",
@@ -3107,20 +3182,20 @@ function Ke({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
3107
3182
  "aria-label": "Select all rows"
3108
3183
  })
3109
3184
  }),
3110
- r.map((e) => {
3111
- let r = !!(e.sortable && s), i = o && o.key === e.key;
3185
+ r.map((e, r) => {
3186
+ let i = !!(e.sortable && s), a = o && o.key === e.key;
3112
3187
  return /* @__PURE__ */ n("th", {
3113
- className: (r ? "sortable " : "") + We(e.align),
3188
+ className: (i ? "sortable " : "") + (r === 0 ? "lx-name-cell " : "") + We(e.align),
3114
3189
  style: e.width ? { width: e.width } : void 0,
3115
- tabIndex: r ? 0 : void 0,
3116
- "aria-sort": i ? o.dir === "asc" ? "ascending" : "descending" : r ? "none" : void 0,
3117
- onClick: r ? () => s(e.key) : void 0,
3118
- onKeyDown: r ? (t) => {
3190
+ tabIndex: i ? 0 : void 0,
3191
+ "aria-sort": a ? o.dir === "asc" ? "ascending" : "descending" : i ? "none" : void 0,
3192
+ onClick: i ? () => s(e.key) : void 0,
3193
+ onKeyDown: i ? (t) => {
3119
3194
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), s(e.key));
3120
3195
  } : void 0,
3121
- children: [e.label, r && /* @__PURE__ */ t("span", {
3196
+ children: [e.label, i && /* @__PURE__ */ t("span", {
3122
3197
  className: "sort-icon",
3123
- children: /* @__PURE__ */ t(D, {
3198
+ children: /* @__PURE__ */ t(O, {
3124
3199
  name: "chevrons-up-down",
3125
3200
  size: 14
3126
3201
  })
@@ -3155,8 +3230,8 @@ function Ke({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
3155
3230
  "aria-label": "Select row"
3156
3231
  })
3157
3232
  }),
3158
- r.map((n) => /* @__PURE__ */ t("td", {
3159
- className: We(n.align) + (n.cellClassName ? ` ${n.cellClassName}` : ""),
3233
+ r.map((n, r) => /* @__PURE__ */ t("td", {
3234
+ className: (r === 0 ? "lx-name-cell " : "") + We(n.align) + (n.cellClassName ? ` ${n.cellClassName}` : ""),
3160
3235
  children: n.render ? n.render(e) : Ge(e[n.key])
3161
3236
  }, n.key)),
3162
3237
  p && /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t("div", {
@@ -3184,13 +3259,13 @@ function Ke({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
3184
3259
  }
3185
3260
  //#endregion
3186
3261
  //#region src/components/AppDatePicker.jsx
3187
- function qe({ value: e, onChange: r, label: o, required: c = !1, hint: l, error: u, name: d, min: f, max: p, placeholder: m = "Enter Date", disabled: h, id: g, ariaLabel: _, className: v = "", ...y }) {
3188
- w("AppDatePicker", y);
3189
- let b = s(null), x = a(), S = g || d || x;
3190
- i(() => {
3262
+ function qe({ value: e, onChange: r, label: i, required: s = !1, hint: l, error: u, name: d, min: f, max: p, placeholder: m = "Enter Date", disabled: h, id: g, ariaLabel: _, className: v = "", ...y }) {
3263
+ T("AppDatePicker", y);
3264
+ let b = c(null), x = o(), S = g || d || x;
3265
+ a(() => {
3191
3266
  let t = b.current;
3192
3267
  t && t.value !== (e ?? "") && (t.value = e ?? "");
3193
- }, [e]), i(() => {
3268
+ }, [e]), a(() => {
3194
3269
  let e = b.current;
3195
3270
  if (!e) return;
3196
3271
  let t = () => r?.(e.value);
@@ -3206,15 +3281,15 @@ function qe({ value: e, onChange: r, label: o, required: c = !1, hint: l, error:
3206
3281
  "aria-label": _,
3207
3282
  "aria-invalid": u ? "true" : void 0,
3208
3283
  disabled: h ? "" : void 0,
3209
- required: c ? "" : void 0
3284
+ required: s ? "" : void 0
3210
3285
  });
3211
- return !o && !u && !l ? C : /* @__PURE__ */ n("div", {
3286
+ return !i && !u && !l ? C : /* @__PURE__ */ n("div", {
3212
3287
  className: `field${v ? ` ${v}` : ""}`,
3213
3288
  children: [
3214
- o && /* @__PURE__ */ n("label", {
3289
+ i && /* @__PURE__ */ n("label", {
3215
3290
  className: "label",
3216
3291
  htmlFor: S,
3217
- children: [o, c && /* @__PURE__ */ t("span", {
3292
+ children: [i, s && /* @__PURE__ */ t("span", {
3218
3293
  className: "required",
3219
3294
  "aria-hidden": "true",
3220
3295
  children: "*"
@@ -3242,23 +3317,23 @@ var Je = r(function({ icon: e, iconSize: n = 20, btnClassName: r = "topbar-icon-
3242
3317
  title: i,
3243
3318
  "aria-label": o,
3244
3319
  ...c,
3245
- children: /* @__PURE__ */ t(D, {
3320
+ children: /* @__PURE__ */ t(O, {
3246
3321
  name: e,
3247
3322
  size: n
3248
3323
  })
3249
3324
  });
3250
3325
  });
3251
3326
  function Ye({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", label: a, ariaLabel: o, align: s = "end", items: c = [], menuClassName: l = "", linkComponent: u, ...d }) {
3252
- return w("AppDropdown", d), /* @__PURE__ */ n(g, {
3327
+ return T("AppDropdown", d), /* @__PURE__ */ n(_, {
3253
3328
  align: s,
3254
- children: [/* @__PURE__ */ t(g.Toggle, {
3329
+ children: [/* @__PURE__ */ t(_.Toggle, {
3255
3330
  as: Je,
3256
3331
  icon: e,
3257
3332
  iconSize: r,
3258
3333
  btnClassName: i,
3259
3334
  title: a,
3260
3335
  "aria-label": o
3261
- }), /* @__PURE__ */ t(g.Menu, {
3336
+ }), /* @__PURE__ */ t(_.Menu, {
3262
3337
  className: l,
3263
3338
  renderOnMount: !0,
3264
3339
  children: c.map((e) => {
@@ -3272,14 +3347,14 @@ function Ye({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", labe
3272
3347
  as: "button",
3273
3348
  type: "button"
3274
3349
  };
3275
- return /* @__PURE__ */ n(g.Item, {
3350
+ return /* @__PURE__ */ n(_.Item, {
3276
3351
  ...r,
3277
3352
  onClick: e.onClick,
3278
3353
  className: e.danger ? "danger" : void 0,
3279
3354
  children: [e.image ? /* @__PURE__ */ t("img", {
3280
3355
  src: e.image,
3281
3356
  alt: ""
3282
- }) : e.icon && /* @__PURE__ */ t(D, {
3357
+ }) : e.icon && /* @__PURE__ */ t(O, {
3283
3358
  name: e.icon,
3284
3359
  size: 16
3285
3360
  }), e.label]
@@ -3291,7 +3366,7 @@ function Ye({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", labe
3291
3366
  //#endregion
3292
3367
  //#region src/components/AppEmptyState.jsx
3293
3368
  function Xe({ icon: e, iconSize: r = 24, size: i = "md", title: a, text: o, action: s, className: c = "", style: l, ...u }) {
3294
- return w("AppEmptyState", u), /* @__PURE__ */ n("div", {
3369
+ return T("AppEmptyState", u), /* @__PURE__ */ n("div", {
3295
3370
  className: [
3296
3371
  "empty-state",
3297
3372
  i === "sm" ? "empty-state-sm" : "",
@@ -3301,7 +3376,7 @@ function Xe({ icon: e, iconSize: r = 24, size: i = "md", title: a, text: o, acti
3301
3376
  children: [
3302
3377
  e ? /* @__PURE__ */ t("div", {
3303
3378
  className: "empty-state-icon",
3304
- children: /* @__PURE__ */ t(D, {
3379
+ children: /* @__PURE__ */ t(O, {
3305
3380
  name: e,
3306
3381
  size: r
3307
3382
  })
@@ -3323,20 +3398,20 @@ function Xe({ icon: e, iconSize: r = 24, size: i = "md", title: a, text: o, acti
3323
3398
  }
3324
3399
  //#endregion
3325
3400
  //#region src/components/AppFileAttachment.jsx
3326
- function Ze({ label: r = "Attachment", value: o, name: s, onChange: l, accept: u = G, maxSizeMb: d = 5, optional: f = !1, error: p, id: m, ...h }) {
3327
- w("AppFileAttachment", h);
3328
- let g = a(), _ = m || s || g, [v, y] = c(null), [b, x] = c("");
3329
- i(() => {
3330
- if (o instanceof File) {
3331
- let e = URL.createObjectURL(o);
3401
+ function Ze({ label: r = "Attachment", value: i, name: s, onChange: c, accept: u = ue, maxSizeMb: d = 5, optional: f = !1, error: p, id: m, ...h }) {
3402
+ T("AppFileAttachment", h);
3403
+ let g = o(), _ = m || s || g, [v, y] = l(null), [b, x] = l("");
3404
+ a(() => {
3405
+ if (i instanceof File) {
3406
+ let e = URL.createObjectURL(i);
3332
3407
  return y(e), () => URL.revokeObjectURL(e);
3333
3408
  }
3334
- y(o?.url || null);
3335
- }, [o]);
3409
+ y(i?.url || null);
3410
+ }, [i]);
3336
3411
  function S(e) {
3337
3412
  let t = e.target.files?.[0];
3338
3413
  if (e.target.value = "", !t) return;
3339
- let n = q(t, {
3414
+ let n = ge(t, {
3340
3415
  accept: u,
3341
3416
  maxSizeMb: d
3342
3417
  });
@@ -3344,12 +3419,12 @@ function Ze({ label: r = "Attachment", value: o, name: s, onChange: l, accept: u
3344
3419
  x(n);
3345
3420
  return;
3346
3421
  }
3347
- x(""), l(t);
3422
+ x(""), c(t);
3348
3423
  }
3349
3424
  function C() {
3350
- x(""), l(null);
3425
+ x(""), c(null);
3351
3426
  }
3352
- let T = o instanceof File ? o.name : o?.name, E = o instanceof File ? `${(o.size / 1024).toFixed(0)} KB` : null, O = p || b;
3427
+ let w = i instanceof File ? i.name : i?.name, E = i instanceof File ? `${(i.size / 1024).toFixed(0)} KB` : null, D = p || b;
3353
3428
  return /* @__PURE__ */ n("div", {
3354
3429
  className: "field",
3355
3430
  children: [
@@ -3361,19 +3436,19 @@ function Ze({ label: r = "Attachment", value: o, name: s, onChange: l, accept: u
3361
3436
  children: " (optional)"
3362
3437
  })]
3363
3438
  }),
3364
- o ? /* @__PURE__ */ n("div", {
3439
+ i ? /* @__PURE__ */ n("div", {
3365
3440
  className: "attach-preview",
3366
3441
  children: [/* @__PURE__ */ n("div", {
3367
3442
  className: "attach-figure",
3368
3443
  children: [/* @__PURE__ */ t("img", {
3369
3444
  src: v,
3370
- alt: T
3445
+ alt: w
3371
3446
  }), /* @__PURE__ */ t("button", {
3372
3447
  type: "button",
3373
3448
  className: "attach-remove",
3374
3449
  "aria-label": "Remove attachment",
3375
3450
  onClick: C,
3376
- children: /* @__PURE__ */ t(D, {
3451
+ children: /* @__PURE__ */ t(O, {
3377
3452
  name: "x",
3378
3453
  size: 18
3379
3454
  })
@@ -3382,7 +3457,7 @@ function Ze({ label: r = "Attachment", value: o, name: s, onChange: l, accept: u
3382
3457
  className: "attach-meta",
3383
3458
  children: [/* @__PURE__ */ t("div", {
3384
3459
  className: "attach-name",
3385
- children: T
3460
+ children: w
3386
3461
  }), E && /* @__PURE__ */ t("div", {
3387
3462
  className: "attach-size",
3388
3463
  children: E
@@ -3394,7 +3469,7 @@ function Ze({ label: r = "Attachment", value: o, name: s, onChange: l, accept: u
3394
3469
  children: [
3395
3470
  /* @__PURE__ */ t("span", {
3396
3471
  className: "attach-drop-icon",
3397
- children: /* @__PURE__ */ t(D, {
3472
+ children: /* @__PURE__ */ t(O, {
3398
3473
  name: "image",
3399
3474
  size: 18
3400
3475
  })
@@ -3426,9 +3501,9 @@ function Ze({ label: r = "Attachment", value: o, name: s, onChange: l, accept: u
3426
3501
  accept: u,
3427
3502
  onChange: S
3428
3503
  })] }),
3429
- O && /* @__PURE__ */ t("div", {
3504
+ D && /* @__PURE__ */ t("div", {
3430
3505
  className: "field-error",
3431
- children: O
3506
+ children: D
3432
3507
  })
3433
3508
  ]
3434
3509
  });
@@ -3441,19 +3516,19 @@ var Qe = /* @__PURE__ */ new Set([
3441
3516
  "warning",
3442
3517
  "error"
3443
3518
  ]);
3444
- function $(e, t = "success") {
3519
+ function $e(e, t = "success") {
3445
3520
  let n = Qe.has(t) ? t : "success";
3446
- _[n](e, { toastId: `${n}:${e}` });
3521
+ v[n](e, { toastId: `${n}:${e}` });
3447
3522
  }
3448
- function $e(e) {
3449
- _.error(e, { toastId: `error:${e}` });
3523
+ function et(e) {
3524
+ v.error(e, { toastId: `error:${e}` });
3450
3525
  }
3451
3526
  //#endregion
3452
3527
  //#region src/components/AppFilePicker.jsx
3453
- function et({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.png", maxSizeMb: d = 5, required: f, error: p, ...m }) {
3454
- w("AppFilePicker", m);
3455
- let [h, g] = c(null), [_, v] = c(!1), y = s(null), b = a(), x = o || b;
3456
- i(() => {
3528
+ function tt({ label: e, value: r, name: i, onPick: s, accept: u = ".jpg,.jpeg,.png", maxSizeMb: d = 5, required: f, error: p, ...m }) {
3529
+ T("AppFilePicker", m);
3530
+ let [h, g] = l(null), [_, v] = l(!1), y = c(null), b = o(), x = i || b;
3531
+ a(() => {
3457
3532
  if (r instanceof File) {
3458
3533
  let e = URL.createObjectURL(r);
3459
3534
  return g(e), () => URL.revokeObjectURL(e);
@@ -3461,21 +3536,21 @@ function et({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.p
3461
3536
  g(null);
3462
3537
  }, [r]);
3463
3538
  let S = r?.url || h, C = (e) => {
3464
- let t = q(e, {
3539
+ let t = ge(e, {
3465
3540
  accept: u,
3466
3541
  maxSizeMb: d
3467
3542
  });
3468
- return t ? ($(t, "error"), !1) : (l(e), !0);
3469
- }, T = (e) => {
3543
+ return t ? ($e(t, "error"), !1) : (s(e), !0);
3544
+ }, w = (e) => {
3470
3545
  let t = e.target.files?.[0] || null;
3471
3546
  t && (C(t) || (e.target.value = ""));
3472
3547
  }, E = (e) => {
3473
3548
  e.preventDefault(), v(!1);
3474
3549
  let t = e.dataTransfer.files?.[0];
3475
3550
  t && C(t);
3476
- }, O = () => y.current?.click(), k = /* @__PURE__ */ t("input", {
3551
+ }, D = () => y.current?.click(), k = /* @__PURE__ */ t("input", {
3477
3552
  id: x,
3478
- name: o,
3553
+ name: i,
3479
3554
  ref: y,
3480
3555
  type: "file",
3481
3556
  accept: u,
@@ -3483,7 +3558,7 @@ function et({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.p
3483
3558
  onClick: (e) => {
3484
3559
  e.currentTarget.value = "";
3485
3560
  },
3486
- onChange: T
3561
+ onChange: w
3487
3562
  });
3488
3563
  return /* @__PURE__ */ n("div", {
3489
3564
  className: "field",
@@ -3491,7 +3566,7 @@ function et({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.p
3491
3566
  /* @__PURE__ */ n("label", {
3492
3567
  className: "label",
3493
3568
  htmlFor: x,
3494
- children: [e, f && /* @__PURE__ */ t(Y, {})]
3569
+ children: [e, f && /* @__PURE__ */ t(X, {})]
3495
3570
  }),
3496
3571
  S ? /* @__PURE__ */ n("div", {
3497
3572
  className: `file-preview${p ? " error" : ""}`,
@@ -3500,7 +3575,7 @@ function et({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.p
3500
3575
  type: "button",
3501
3576
  className: "file-preview-open",
3502
3577
  "aria-label": `Change ${e}`,
3503
- onClick: O,
3578
+ onClick: D,
3504
3579
  children: [/* @__PURE__ */ t("img", {
3505
3580
  src: S,
3506
3581
  alt: `${e} preview`,
@@ -3509,7 +3584,7 @@ function et({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.p
3509
3584
  className: "file-preview-overlay",
3510
3585
  children: /* @__PURE__ */ n("span", {
3511
3586
  className: "file-preview-cta",
3512
- children: [/* @__PURE__ */ t(D, {
3587
+ children: [/* @__PURE__ */ t(O, {
3513
3588
  name: "image",
3514
3589
  size: 16
3515
3590
  }), " Change image"]
@@ -3521,8 +3596,8 @@ function et({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.p
3521
3596
  className: "file-preview-remove",
3522
3597
  "aria-label": `Remove ${e}`,
3523
3598
  title: "Remove image",
3524
- onClick: () => l(null),
3525
- children: /* @__PURE__ */ t(D, {
3599
+ onClick: () => s(null),
3600
+ children: /* @__PURE__ */ t(O, {
3526
3601
  name: "x",
3527
3602
  size: 16
3528
3603
  })
@@ -3544,7 +3619,7 @@ function et({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.p
3544
3619
  children: [
3545
3620
  /* @__PURE__ */ t("span", {
3546
3621
  className: "file-input-icon",
3547
- children: /* @__PURE__ */ t(D, {
3622
+ children: /* @__PURE__ */ t(O, {
3548
3623
  name: "upload",
3549
3624
  size: 24
3550
3625
  })
@@ -3576,13 +3651,13 @@ function et({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.p
3576
3651
  }
3577
3652
  //#endregion
3578
3653
  //#region src/components/AppInfoList.jsx
3579
- function tt({ items: r = [], className: i = "", ...a }) {
3580
- return w("AppInfoList", a), /* @__PURE__ */ t("div", {
3654
+ function nt({ items: r = [], className: i = "", ...a }) {
3655
+ return T("AppInfoList", a), /* @__PURE__ */ t("div", {
3581
3656
  className: `info-list${i ? ` ${i}` : ""}`,
3582
3657
  children: r.map((r, i) => {
3583
3658
  let a = /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
3584
3659
  className: "info-icon",
3585
- children: /* @__PURE__ */ t(D, {
3660
+ children: /* @__PURE__ */ t(O, {
3586
3661
  name: r.icon,
3587
3662
  size: 16
3588
3663
  })
@@ -3609,15 +3684,15 @@ function tt({ items: r = [], className: i = "", ...a }) {
3609
3684
  }
3610
3685
  //#endregion
3611
3686
  //#region src/components/AppKpiTile.jsx
3612
- function nt({ label: e, value: r, icon: i, delta: a, deltaDirection: o = "flat", inline: s = !1, className: c = "", ...l }) {
3613
- w("AppKpiTile", l);
3687
+ function rt({ label: e, value: r, icon: i, delta: a, deltaDirection: o = "flat", inline: s = !1, className: c = "", ...l }) {
3688
+ T("AppKpiTile", l);
3614
3689
  let u = `kpi${s ? " kpi-inline" : ""}${c ? ` ${c}` : ""}`, d = o === "up" ? "arrow-up" : o === "down" ? "arrow-down" : null;
3615
3690
  return /* @__PURE__ */ n("div", {
3616
3691
  className: u,
3617
3692
  children: [
3618
3693
  i && /* @__PURE__ */ t("span", {
3619
3694
  className: "kpi-icon",
3620
- children: /* @__PURE__ */ t(D, {
3695
+ children: /* @__PURE__ */ t(O, {
3621
3696
  name: i,
3622
3697
  size: 20
3623
3698
  })
@@ -3632,7 +3707,7 @@ function nt({ label: e, value: r, icon: i, delta: a, deltaDirection: o = "flat",
3632
3707
  }),
3633
3708
  a && /* @__PURE__ */ n("div", {
3634
3709
  className: `kpi-delta${o === "flat" ? "" : ` ${o}`}`,
3635
- children: [d && /* @__PURE__ */ t(D, {
3710
+ children: [d && /* @__PURE__ */ t(O, {
3636
3711
  name: d,
3637
3712
  size: 13
3638
3713
  }), a]
@@ -3642,16 +3717,16 @@ function nt({ label: e, value: r, icon: i, delta: a, deltaDirection: o = "flat",
3642
3717
  }
3643
3718
  //#endregion
3644
3719
  //#region src/components/AppLogoPicker.jsx
3645
- function rt({ value: r, fallback: i, name: a, onPick: o, loading: c = !1, accept: l = "image/png,image/jpeg", maxSizeMb: u = 5, overlayIcon: d = "image", overlayLabel: f = "Update photo", ariaLabel: p = "Upload photo", ...m }) {
3646
- w("AppLogoPicker", m);
3647
- let h = s(null);
3720
+ function it({ value: r, fallback: i, name: a, onPick: o, loading: s = !1, accept: l = "image/png,image/jpeg", maxSizeMb: u = 5, overlayIcon: d = "image", overlayLabel: f = "Update photo", ariaLabel: p = "Upload photo", ...m }) {
3721
+ T("AppLogoPicker", m);
3722
+ let h = c(null);
3648
3723
  return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("button", {
3649
3724
  type: "button",
3650
3725
  className: "set-uploader",
3651
- "aria-busy": c || void 0,
3652
- disabled: c,
3726
+ "aria-busy": s || void 0,
3727
+ disabled: s,
3653
3728
  onClick: () => {
3654
- c || h.current?.click();
3729
+ s || h.current?.click();
3655
3730
  },
3656
3731
  "aria-label": p,
3657
3732
  children: /* @__PURE__ */ n("span", {
@@ -3663,17 +3738,17 @@ function rt({ value: r, fallback: i, name: a, onPick: o, loading: c = !1, accept
3663
3738
  }) : /* @__PURE__ */ t("span", {
3664
3739
  className: "set-uploader-logo",
3665
3740
  children: i
3666
- }), c ? /* @__PURE__ */ t("span", {
3741
+ }), s ? /* @__PURE__ */ t("span", {
3667
3742
  className: "set-uploader-overlay is-loading",
3668
3743
  "aria-hidden": "true",
3669
- children: /* @__PURE__ */ t(D, {
3744
+ children: /* @__PURE__ */ t(O, {
3670
3745
  name: "refresh-cw",
3671
3746
  size: 22,
3672
3747
  className: "lx-spin"
3673
3748
  })
3674
3749
  }) : /* @__PURE__ */ n("span", {
3675
3750
  className: "set-uploader-overlay",
3676
- children: [/* @__PURE__ */ t(D, {
3751
+ children: [/* @__PURE__ */ t(O, {
3677
3752
  name: d,
3678
3753
  size: 22
3679
3754
  }), /* @__PURE__ */ t("span", { children: f })]
@@ -3688,33 +3763,33 @@ function rt({ value: r, fallback: i, name: a, onPick: o, loading: c = !1, accept
3688
3763
  onChange: (e) => {
3689
3764
  let t = e.target.files?.[0];
3690
3765
  if (e.target.value = "", !t) return;
3691
- let n = q(t, {
3766
+ let n = ge(t, {
3692
3767
  accept: l,
3693
3768
  maxSizeMb: u
3694
3769
  });
3695
3770
  if (n) {
3696
- $(n, "error");
3771
+ $e(n, "error");
3697
3772
  return;
3698
3773
  }
3699
3774
  o(t);
3700
3775
  },
3701
- disabled: c
3776
+ disabled: s
3702
3777
  })] });
3703
3778
  }
3704
3779
  //#endregion
3705
3780
  //#region src/components/AppMultiSelect.jsx
3706
- function it({ values: e, onChange: r, options: a, placeholder: o = "Select…", searchPlaceholder: c = "Search…", searchable: l = !0, disabled: u = !1, name: d, label: f, error: p, hint: m, required: h = !1, fieldClassName: g = "", ..._ }) {
3707
- w("AppMultiSelect", _);
3708
- let v = s(null);
3709
- return i(() => {
3781
+ function at({ values: e, onChange: r, options: i, placeholder: o = "Select…", searchPlaceholder: s = "Search…", searchable: l = !0, disabled: u = !1, name: d, label: f, error: p, hint: m, required: h = !1, fieldClassName: g = "", ..._ }) {
3782
+ T("AppMultiSelect", _);
3783
+ let v = c(null);
3784
+ return a(() => {
3710
3785
  let e = v.current;
3711
- e && (e.options = a || []);
3712
- }, [a]), i(() => {
3786
+ e && (e.options = i || []);
3787
+ }, [i]), a(() => {
3713
3788
  let t = v.current;
3714
3789
  if (!t) return;
3715
3790
  let n = e || [], r = t.values || [];
3716
3791
  n.join(",") !== r.join(",") && (t.values = n);
3717
- }, [e]), i(() => {
3792
+ }, [e]), a(() => {
3718
3793
  let e = v.current;
3719
3794
  if (!e) return;
3720
3795
  let t = () => r?.(e.values);
@@ -3725,7 +3800,7 @@ function it({ values: e, onChange: r, options: a, placeholder: o = "Select…",
3725
3800
  f && /* @__PURE__ */ n("label", {
3726
3801
  className: "label",
3727
3802
  htmlFor: d,
3728
- children: [f, h && /* @__PURE__ */ t(Y, {})]
3803
+ children: [f, h && /* @__PURE__ */ t(X, {})]
3729
3804
  }),
3730
3805
  /* @__PURE__ */ t("wui-multiselect", {
3731
3806
  "aria-label": typeof f == "string" ? f : void 0,
@@ -3733,7 +3808,7 @@ function it({ values: e, onChange: r, options: a, placeholder: o = "Select…",
3733
3808
  ref: v,
3734
3809
  name: d,
3735
3810
  placeholder: o,
3736
- "search-placeholder": c,
3811
+ "search-placeholder": s,
3737
3812
  searchable: l ? "" : void 0,
3738
3813
  disabled: u ? "" : void 0,
3739
3814
  required: h ? "" : void 0
@@ -3750,8 +3825,8 @@ function it({ values: e, onChange: r, options: a, placeholder: o = "Select…",
3750
3825
  }
3751
3826
  //#endregion
3752
3827
  //#region src/components/AppPageHeader.jsx
3753
- function at({ title: e, subtitle: r, actions: i, className: a = "", ...o }) {
3754
- return w("AppPageHeader", o), /* @__PURE__ */ n("div", {
3828
+ function ot({ title: e, subtitle: r, actions: i, className: a = "", ...o }) {
3829
+ return T("AppPageHeader", o), /* @__PURE__ */ n("div", {
3755
3830
  className: `page-header${i ? " d-flex align-items-end justify-content-between" : ""}${a ? ` ${a}` : ""}`,
3756
3831
  children: [/* @__PURE__ */ n("div", { children: [/* @__PURE__ */ t("div", {
3757
3832
  className: "page-title",
@@ -3767,13 +3842,13 @@ function at({ title: e, subtitle: r, actions: i, className: a = "", ...o }) {
3767
3842
  }
3768
3843
  //#endregion
3769
3844
  //#region src/components/AppPhoneNumberInput.jsx
3770
- function ot({ value: e, onChange: r, country: a, disabled: o = !1, name: c, label: l = "Phone number", placeholder: u = "Enter phone number", required: d = !1, error: f, fieldClassName: p = "", ...m }) {
3771
- w("AppPhoneNumberInput", m);
3772
- let h = s(null);
3773
- return i(() => {
3845
+ function st({ value: e, onChange: r, country: i, disabled: o = !1, name: s, label: l = "Phone number", placeholder: u = "Enter phone number", required: d = !1, error: f, fieldClassName: p = "", ...m }) {
3846
+ T("AppPhoneNumberInput", m);
3847
+ let h = c(null);
3848
+ return a(() => {
3774
3849
  let t = h.current;
3775
3850
  t && t.value !== (e ?? "") && (t.value = e ?? "");
3776
- }, [e]), i(() => {
3851
+ }, [e]), a(() => {
3777
3852
  let e = h.current;
3778
3853
  if (!e) return;
3779
3854
  let t = () => r?.(e.value);
@@ -3783,13 +3858,13 @@ function ot({ value: e, onChange: r, country: a, disabled: o = !1, name: c, labe
3783
3858
  children: [
3784
3859
  l && /* @__PURE__ */ n("label", {
3785
3860
  className: "label",
3786
- htmlFor: c,
3787
- children: [l, d && /* @__PURE__ */ t(Y, {})]
3861
+ htmlFor: s,
3862
+ children: [l, d && /* @__PURE__ */ t(X, {})]
3788
3863
  }),
3789
3864
  /* @__PURE__ */ t("wui-phone", {
3790
3865
  ref: h,
3791
- name: c,
3792
- country: a,
3866
+ name: s,
3867
+ country: i,
3793
3868
  placeholder: u,
3794
3869
  disabled: o ? "" : void 0
3795
3870
  }),
@@ -3802,8 +3877,8 @@ function ot({ value: e, onChange: r, country: a, disabled: o = !1, name: c, labe
3802
3877
  }
3803
3878
  //#endregion
3804
3879
  //#region src/components/AppPricingCard.jsx
3805
- function st({ name: e, price: r, unit: i, tagline: a, features: o = [], cta: s, featured: c = !1, current: l = !1, badge: u = "Most popular", className: d = "", ...f }) {
3806
- return w("AppPricingCard", f), /* @__PURE__ */ n("div", {
3880
+ function ct({ name: e, price: r, unit: i, tagline: a, features: o = [], cta: s, featured: c = !1, current: l = !1, badge: u = "Most popular", className: d = "", ...f }) {
3881
+ return T("AppPricingCard", f), /* @__PURE__ */ n("div", {
3807
3882
  className: [
3808
3883
  "plan-card",
3809
3884
  c ? "featured" : "",
@@ -3838,7 +3913,7 @@ function st({ name: e, price: r, unit: i, tagline: a, features: o = [], cta: s,
3838
3913
  className: r ? void 0 : "excluded",
3839
3914
  children: [/* @__PURE__ */ t("span", {
3840
3915
  className: "plan-feature-icon",
3841
- children: /* @__PURE__ */ t(D, {
3916
+ children: /* @__PURE__ */ t(O, {
3842
3917
  name: r ? "check" : "x",
3843
3918
  size: 16
3844
3919
  })
@@ -3855,11 +3930,11 @@ function st({ name: e, price: r, unit: i, tagline: a, features: o = [], cta: s,
3855
3930
  }
3856
3931
  //#endregion
3857
3932
  //#region src/components/AppRadio.jsx
3858
- var ct = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
3859
- w("AppRadio", s);
3860
- let l = a(), u = r || i || l;
3933
+ var lt = r(function({ label: e, id: r, name: i, className: a = "", ...s }, c) {
3934
+ T("AppRadio", s);
3935
+ let l = o(), u = r || i || l;
3861
3936
  return /* @__PURE__ */ n("div", {
3862
- className: `form-check${o ? ` ${o}` : ""}`,
3937
+ className: `form-check${a ? ` ${a}` : ""}`,
3863
3938
  children: [/* @__PURE__ */ t("input", {
3864
3939
  type: "radio",
3865
3940
  className: "form-check-input",
@@ -3876,8 +3951,8 @@ var ct = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
3876
3951
  });
3877
3952
  //#endregion
3878
3953
  //#region src/components/AppRepeater.jsx
3879
- function lt({ rows: e = [], renderRow: r, onAdd: i, onRemove: a, addLabel: o = "Add another", removeLabel: s = "Remove row", emptyText: c, min: l = 0, max: u, numbered: d = !0, className: f = "", ...p }) {
3880
- w("AppRepeater", p);
3954
+ function ut({ rows: e = [], renderRow: r, onAdd: i, onRemove: a, addLabel: o = "Add another", removeLabel: s = "Remove row", emptyText: c, min: l = 0, max: u, numbered: d = !0, className: f = "", ...p }) {
3955
+ T("AppRepeater", p);
3881
3956
  let m = typeof u == "number" && e.length >= u, h = !!a && e.length > l;
3882
3957
  return /* @__PURE__ */ n("div", {
3883
3958
  className: `repeater${f ? ` ${f}` : ""}`,
@@ -3897,7 +3972,7 @@ function lt({ rows: e = [], renderRow: r, onAdd: i, onRemove: a, addLabel: o = "
3897
3972
  className: "repeater-body",
3898
3973
  children: r(e, i)
3899
3974
  }),
3900
- h && /* @__PURE__ */ t(O, {
3975
+ h && /* @__PURE__ */ t(k, {
3901
3976
  icon: "trash-2",
3902
3977
  label: `${s} ${i + 1}`,
3903
3978
  danger: !0,
@@ -3906,7 +3981,7 @@ function lt({ rows: e = [], renderRow: r, onAdd: i, onRemove: a, addLabel: o = "
3906
3981
  })
3907
3982
  ]
3908
3983
  }, e.id ?? i)),
3909
- /* @__PURE__ */ t(X, {
3984
+ /* @__PURE__ */ t(Z, {
3910
3985
  variant: "secondary",
3911
3986
  size: "sm",
3912
3987
  leftIcon: "plus",
@@ -3920,11 +3995,11 @@ function lt({ rows: e = [], renderRow: r, onAdd: i, onRemove: a, addLabel: o = "
3920
3995
  }
3921
3996
  //#endregion
3922
3997
  //#region src/components/AppResourceCard.jsx
3923
- function ut({ icon: r, title: i, text: a, href: o, external: s = !1, linkComponent: c, className: l = "", ...u }) {
3924
- w("AppResourceCard", u);
3998
+ function dt({ icon: r, title: i, text: a, href: o, external: s = !1, linkComponent: c, className: l = "", ...u }) {
3999
+ T("AppResourceCard", u);
3925
4000
  let d = /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
3926
4001
  className: "res-card-icon",
3927
- children: /* @__PURE__ */ t(D, {
4002
+ children: /* @__PURE__ */ t(O, {
3928
4003
  name: r,
3929
4004
  size: 18
3930
4005
  })
@@ -3952,20 +4027,20 @@ function ut({ icon: r, title: i, text: a, href: o, external: s = !1, linkCompone
3952
4027
  }
3953
4028
  //#endregion
3954
4029
  //#region src/components/AppSearch.jsx
3955
- function dt({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize: o = 18, className: s = "", ...c }) {
3956
- return w("AppSearch", c), /* @__PURE__ */ n("div", {
4030
+ function ft({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize: o = 18, className: s = "", ...c }) {
4031
+ return T("AppSearch", c), /* @__PURE__ */ n("div", {
3957
4032
  className: [
3958
4033
  "search-wrap",
3959
4034
  e ? "has-value" : "",
3960
4035
  s
3961
4036
  ].filter(Boolean).join(" "),
3962
4037
  children: [
3963
- /* @__PURE__ */ t(D, {
4038
+ /* @__PURE__ */ t(O, {
3964
4039
  name: "search",
3965
4040
  size: o,
3966
4041
  className: "search-icon"
3967
4042
  }),
3968
- /* @__PURE__ */ t(p.Control, {
4043
+ /* @__PURE__ */ t(m.Control, {
3969
4044
  type: "search",
3970
4045
  className: "input search-input",
3971
4046
  placeholder: i,
@@ -3979,7 +4054,7 @@ function dt({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize
3979
4054
  className: "search-clear",
3980
4055
  "aria-label": "Clear search",
3981
4056
  onClick: () => r(""),
3982
- children: /* @__PURE__ */ t(D, {
4057
+ children: /* @__PURE__ */ t(O, {
3983
4058
  name: "x",
3984
4059
  size: 16
3985
4060
  })
@@ -3989,13 +4064,13 @@ function dt({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize
3989
4064
  }
3990
4065
  //#endregion
3991
4066
  //#region src/components/AppSegmented.jsx
3992
- function ft({ options: e = [], value: r, onChange: i, label: o, name: s, size: c = "md", className: l = "", ...u }) {
3993
- w("AppSegmented", u);
3994
- let d = a(), f = s || d;
4067
+ function pt({ options: e = [], value: r, onChange: i, label: a, name: s, size: c = "md", className: l = "", ...u }) {
4068
+ T("AppSegmented", u);
4069
+ let d = o(), f = s || d;
3995
4070
  return /* @__PURE__ */ t("div", {
3996
4071
  className: `segmented${c === "sm" ? " segmented-sm" : ""}${l ? ` ${l}` : ""}`,
3997
4072
  role: "radiogroup",
3998
- "aria-label": o,
4073
+ "aria-label": a,
3999
4074
  children: e.map((e) => /* @__PURE__ */ n("label", {
4000
4075
  className: "segmented-option",
4001
4076
  children: [
@@ -4007,7 +4082,7 @@ function ft({ options: e = [], value: r, onChange: i, label: o, name: s, size: c
4007
4082
  checked: e.value === r,
4008
4083
  onChange: () => i?.(e.value)
4009
4084
  }),
4010
- e.icon && /* @__PURE__ */ t(D, {
4085
+ e.icon && /* @__PURE__ */ t(O, {
4011
4086
  name: e.icon,
4012
4087
  size: 13
4013
4088
  }),
@@ -4018,19 +4093,19 @@ function ft({ options: e = [], value: r, onChange: i, label: o, name: s, size: c
4018
4093
  }
4019
4094
  //#endregion
4020
4095
  //#region src/components/AppSelect.jsx
4021
- var pt = (e) => e == null ? "" : e.label ?? e.text ?? "";
4022
- function mt({ value: e, onChange: r, options: a = [], placeholder: o = "Select...", searchPlaceholder: c = "Search...", searchable: l = !1, disabled: u, label: d, required: f = !1, error: p, hint: m, help: h, helpLabel: g = "More information", id: _, name: v, fieldClassName: y = "", ...b }) {
4023
- w("AppSelect", b);
4024
- let x = s(null);
4025
- i(() => {
4026
- x.current && (x.current.options = a.map((e) => ({
4096
+ var mt = (e) => e == null ? "" : e.label ?? e.text ?? "";
4097
+ function ht({ value: e, onChange: r, options: i = [], placeholder: o = "Select...", searchPlaceholder: s = "Search...", searchable: l = !1, disabled: u, label: d, required: f = !1, error: p, hint: m, help: h, helpLabel: g = "More information", id: _, name: v, fieldClassName: y = "", ...b }) {
4098
+ T("AppSelect", b);
4099
+ let x = c(null);
4100
+ a(() => {
4101
+ x.current && (x.current.options = i.map((e) => ({
4027
4102
  value: e.value,
4028
- label: pt(e)
4103
+ label: mt(e)
4029
4104
  })));
4030
- }, [a]), i(() => {
4105
+ }, [i]), a(() => {
4031
4106
  let t = x.current;
4032
4107
  t && String(t.value ?? "") !== String(e ?? "") && (t.value = e ?? "");
4033
- }, [e]), i(() => {
4108
+ }, [e]), a(() => {
4034
4109
  let e = x.current;
4035
4110
  if (!e) return;
4036
4111
  let t = () => r?.(e.value);
@@ -4042,7 +4117,7 @@ function mt({ value: e, onChange: r, options: a = [], placeholder: o = "Select..
4042
4117
  id: _ || v,
4043
4118
  name: v,
4044
4119
  placeholder: o,
4045
- "search-placeholder": c,
4120
+ "search-placeholder": s,
4046
4121
  searchable: l ? "" : void 0,
4047
4122
  disabled: u ? "" : void 0,
4048
4123
  required: f ? "" : void 0
@@ -4057,8 +4132,8 @@ function mt({ value: e, onChange: r, options: a = [], placeholder: o = "Select..
4057
4132
  htmlFor: C,
4058
4133
  children: [
4059
4134
  d,
4060
- f && /* @__PURE__ */ t(Y, {}),
4061
- h && /* @__PURE__ */ t(Z, {
4135
+ f && /* @__PURE__ */ t(X, {}),
4136
+ h && /* @__PURE__ */ t(Q, {
4062
4137
  label: g,
4063
4138
  children: h
4064
4139
  })
@@ -4077,13 +4152,13 @@ function mt({ value: e, onChange: r, options: a = [], placeholder: o = "Select..
4077
4152
  }
4078
4153
  //#endregion
4079
4154
  //#region src/components/AppShell.jsx
4080
- function ht({ groups: e = [], brand: r, sidebarFooter: a, topbarStart: o, topbarEnd: s, footer: l, children: u, collapsed: d, onCollapsedChange: f, noSidebar: p = !1, navLabel: m = "Main navigation", linkComponent: h, className: g = "", ..._ }) {
4081
- w("AppShell", _);
4082
- let [v, y] = c(!1), [b, x] = c(!1), [S, C] = c(!1), T = d ?? v;
4083
- return i(() => {
4155
+ function gt({ groups: e = [], brand: r, sidebarFooter: i, topbarStart: o, topbarEnd: s, footer: c, children: u, collapsed: d, onCollapsedChange: f, noSidebar: p = !1, navLabel: m = "Main navigation", linkComponent: h, className: g = "", ..._ }) {
4156
+ T("AppShell", _);
4157
+ let [v, y] = l(!1), [b, x] = l(!1), [S, C] = l(!1), w = d ?? v;
4158
+ return a(() => {
4084
4159
  let e = () => C(window.scrollY > 4);
4085
4160
  return e(), window.addEventListener("scroll", e, { passive: !0 }), () => window.removeEventListener("scroll", e);
4086
- }, []), i(() => {
4161
+ }, []), a(() => {
4087
4162
  if (!b) return;
4088
4163
  let e = (e) => {
4089
4164
  e.key === "Escape" && x(!1);
@@ -4092,7 +4167,7 @@ function ht({ groups: e = [], brand: r, sidebarFooter: a, topbarStart: o, topbar
4092
4167
  }, [b]), /* @__PURE__ */ n("div", {
4093
4168
  className: [
4094
4169
  "app-shell",
4095
- T ? "collapsed" : "",
4170
+ w ? "collapsed" : "",
4096
4171
  p ? "no-sidebar" : "",
4097
4172
  b ? "mobile-open" : "",
4098
4173
  g
@@ -4113,16 +4188,16 @@ function ht({ groups: e = [], brand: r, sidebarFooter: a, topbarStart: o, topbar
4113
4188
  children: [e.label && /* @__PURE__ */ t("div", {
4114
4189
  className: "app-nav-group-label",
4115
4190
  children: e.label
4116
- }), e.items.map((e) => /* @__PURE__ */ t(gt, {
4191
+ }), e.items.map((e) => /* @__PURE__ */ t(_t, {
4117
4192
  item: e,
4118
4193
  linkComponent: h,
4119
4194
  onNavigate: () => x(!1)
4120
4195
  }, e.key ?? e.href))]
4121
4196
  }, e.label ?? `group-${r}`))
4122
4197
  }),
4123
- a && /* @__PURE__ */ t("div", {
4198
+ i && /* @__PURE__ */ t("div", {
4124
4199
  className: "app-sidebar-foot",
4125
- children: a
4200
+ children: i
4126
4201
  })
4127
4202
  ]
4128
4203
  }),
@@ -4130,12 +4205,12 @@ function ht({ groups: e = [], brand: r, sidebarFooter: a, topbarStart: o, topbar
4130
4205
  type: "button",
4131
4206
  className: "app-sidebar-toggle",
4132
4207
  onClick: () => {
4133
- let e = !T;
4208
+ let e = !w;
4134
4209
  y(e), f?.(e);
4135
4210
  },
4136
- "aria-label": T ? "Expand navigation" : "Collapse navigation",
4137
- "aria-expanded": !T,
4138
- children: /* @__PURE__ */ t(D, {
4211
+ "aria-label": w ? "Expand navigation" : "Collapse navigation",
4212
+ "aria-expanded": !w,
4213
+ children: /* @__PURE__ */ t(O, {
4139
4214
  name: "chevron-left",
4140
4215
  size: 14
4141
4216
  })
@@ -4153,7 +4228,7 @@ function ht({ groups: e = [], brand: r, sidebarFooter: a, topbarStart: o, topbar
4153
4228
  onClick: () => x(!0),
4154
4229
  "aria-label": "Open navigation",
4155
4230
  "aria-expanded": b,
4156
- children: /* @__PURE__ */ t(D, {
4231
+ children: /* @__PURE__ */ t(O, {
4157
4232
  name: "menu",
4158
4233
  size: 18
4159
4234
  })
@@ -4167,9 +4242,9 @@ function ht({ groups: e = [], brand: r, sidebarFooter: a, topbarStart: o, topbar
4167
4242
  className: "app-content",
4168
4243
  children: u
4169
4244
  }),
4170
- l && /* @__PURE__ */ t("footer", {
4245
+ c && /* @__PURE__ */ t("footer", {
4171
4246
  className: "app-footer",
4172
- children: l
4247
+ children: c
4173
4248
  })
4174
4249
  ]
4175
4250
  }),
@@ -4183,11 +4258,11 @@ function ht({ groups: e = [], brand: r, sidebarFooter: a, topbarStart: o, topbar
4183
4258
  ]
4184
4259
  });
4185
4260
  }
4186
- function gt({ item: r, linkComponent: i, onNavigate: a }) {
4261
+ function _t({ item: r, linkComponent: i, onNavigate: a }) {
4187
4262
  let o = `app-nav-item${r.active ? " active" : ""}`, s = /* @__PURE__ */ n(e, { children: [
4188
4263
  r.icon && /* @__PURE__ */ t("span", {
4189
4264
  className: "app-nav-icon",
4190
- children: /* @__PURE__ */ t(D, {
4265
+ children: /* @__PURE__ */ t(O, {
4191
4266
  name: r.icon,
4192
4267
  size: 22
4193
4268
  })
@@ -4217,7 +4292,7 @@ function gt({ item: r, linkComponent: i, onNavigate: a }) {
4217
4292
  }
4218
4293
  //#endregion
4219
4294
  //#region src/components/AppSidebarMenu.jsx
4220
- var _t = {
4295
+ var vt = {
4221
4296
  left: "start",
4222
4297
  right: "end",
4223
4298
  start: "start",
@@ -4225,18 +4300,18 @@ var _t = {
4225
4300
  top: "top",
4226
4301
  bottom: "bottom"
4227
4302
  };
4228
- function vt({ show: e, onHide: r, side: i = "right", title: a, titleIcon: o, header: s, children: c, footer: l, width: u, backdrop: d = !0, scroll: f = !1, keyboard: p = !0, closeButton: m = !0, responsive: h, className: g = "", bodyClassName: _ = "", ariaLabel: y, ...b }) {
4229
- return w("AppSidebarMenu", b), /* @__PURE__ */ n(v, {
4303
+ function yt({ show: e, onHide: r, side: i = "right", title: a, titleIcon: o, header: s, children: c, footer: l, width: u, backdrop: d = !0, scroll: f = !1, keyboard: p = !0, closeButton: m = !0, responsive: h, className: g = "", bodyClassName: _ = "", ariaLabel: v, ...b }) {
4304
+ return T("AppSidebarMenu", b), /* @__PURE__ */ n(y, {
4230
4305
  show: e,
4231
4306
  onHide: r,
4232
- placement: _t[i] || "end",
4307
+ placement: vt[i] || "end",
4233
4308
  backdrop: d,
4234
4309
  scroll: f,
4235
4310
  keyboard: p,
4236
4311
  responsive: h,
4237
4312
  style: u ? { "--asm-width": u } : void 0,
4238
4313
  className: `app-sidebar-menu${g ? ` ${g}` : ""}`,
4239
- "aria-label": y || (typeof a == "string" ? a : void 0),
4314
+ "aria-label": v || (typeof a == "string" ? a : void 0),
4240
4315
  children: [
4241
4316
  s === void 0 ? (a != null || m) && /* @__PURE__ */ n("div", {
4242
4317
  className: "drawer-header",
@@ -4244,23 +4319,23 @@ function vt({ show: e, onHide: r, side: i = "right", title: a, titleIcon: o, hea
4244
4319
  className: "drawer-title",
4245
4320
  children: [o && /* @__PURE__ */ t("span", {
4246
4321
  className: "drawer-title-ic",
4247
- children: /* @__PURE__ */ t(D, {
4322
+ children: /* @__PURE__ */ t(O, {
4248
4323
  name: o,
4249
4324
  size: 18
4250
4325
  })
4251
4326
  }), a]
4252
- }), m && /* @__PURE__ */ t(X, {
4327
+ }), m && /* @__PURE__ */ t(Z, {
4253
4328
  variant: "ghost",
4254
4329
  className: "btn-icon",
4255
4330
  onClick: r,
4256
4331
  "aria-label": "Close",
4257
- children: /* @__PURE__ */ t(D, {
4332
+ children: /* @__PURE__ */ t(O, {
4258
4333
  name: "x",
4259
4334
  size: 16
4260
4335
  })
4261
4336
  })]
4262
4337
  }) : s,
4263
- /* @__PURE__ */ t(v.Body, {
4338
+ /* @__PURE__ */ t(y.Body, {
4264
4339
  className: _,
4265
4340
  children: c
4266
4341
  }),
@@ -4273,8 +4348,8 @@ function vt({ show: e, onHide: r, side: i = "right", title: a, titleIcon: o, hea
4273
4348
  }
4274
4349
  //#endregion
4275
4350
  //#region src/components/AppSpinner.jsx
4276
- function yt({ size: e = "md", label: n = "Loading", className: r = "", ...i }) {
4277
- return w("AppSpinner", i), /* @__PURE__ */ t("span", {
4351
+ function bt({ size: e = "md", label: n = "Loading", className: r = "", ...i }) {
4352
+ return T("AppSpinner", i), /* @__PURE__ */ t("span", {
4278
4353
  className: `spinner-border${e === "sm" ? " spinner-border-sm" : ""}${r ? ` ${r}` : ""}`,
4279
4354
  role: "status",
4280
4355
  "aria-label": n
@@ -4282,8 +4357,8 @@ function yt({ size: e = "md", label: n = "Loading", className: r = "", ...i }) {
4282
4357
  }
4283
4358
  //#endregion
4284
4359
  //#region src/components/AppSplash.jsx
4285
- function bt({ logo: e, initials: r, text: i, label: a = "Loading", className: o = "", ...s }) {
4286
- return w("AppSplash", s), /* @__PURE__ */ t("div", {
4360
+ function xt({ logo: e, initials: r, text: i, label: a = "Loading", className: o = "", ...s }) {
4361
+ return T("AppSplash", s), /* @__PURE__ */ t("div", {
4287
4362
  className: `splash${o ? ` ${o}` : ""}`,
4288
4363
  role: "status",
4289
4364
  "aria-live": "polite",
@@ -4309,22 +4384,22 @@ function bt({ logo: e, initials: r, text: i, label: a = "Loading", className: o
4309
4384
  }
4310
4385
  //#endregion
4311
4386
  //#region src/components/AppStatusBadge.jsx
4312
- function xt({ label: e, tone: n = "neutral", className: r = "", ...i }) {
4313
- return w("AppStatusBadge", i), e == null || e === "" ? "—" : /* @__PURE__ */ t("span", {
4387
+ function St({ label: e, tone: n = "neutral", className: r = "", ...i }) {
4388
+ return T("AppStatusBadge", i), e == null || e === "" ? "—" : /* @__PURE__ */ t("span", {
4314
4389
  className: `status-label ${n}${r ? ` ${r}` : ""}`,
4315
4390
  children: e
4316
4391
  });
4317
4392
  }
4318
4393
  //#endregion
4319
4394
  //#region src/components/AppStepper.jsx
4320
- function St({ steps: r = [], variant: i = "steps", label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
4321
- return w("AppStepper", c), /* @__PURE__ */ t("nav", {
4395
+ function Ct({ steps: r = [], variant: i = "steps", label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
4396
+ return T("AppStepper", c), /* @__PURE__ */ t("nav", {
4322
4397
  className: [i === "journey" ? "stepper stepper-journey" : "stepper", s].filter(Boolean).join(" "),
4323
4398
  "aria-label": a,
4324
4399
  children: r.map((a, s) => {
4325
4400
  let c = a.status || "pending", l = `step${c === "pending" ? "" : ` ${c}`}`, u = /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
4326
4401
  className: "step-circle",
4327
- children: c === "done" ? /* @__PURE__ */ t(D, {
4402
+ children: c === "done" ? /* @__PURE__ */ t(O, {
4328
4403
  name: "check",
4329
4404
  size: 14
4330
4405
  }) : s + 1
@@ -4364,11 +4439,11 @@ function St({ steps: r = [], variant: i = "steps", label: a = "Progress", linkCo
4364
4439
  }
4365
4440
  //#endregion
4366
4441
  //#region src/components/AppSwitch.jsx
4367
- var Ct = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
4368
- w("AppSwitch", s);
4369
- let l = a(), u = r || i || l;
4442
+ var wt = r(function({ label: e, id: r, name: i, className: a = "", ...s }, c) {
4443
+ T("AppSwitch", s);
4444
+ let l = o(), u = r || i || l;
4370
4445
  return /* @__PURE__ */ n("div", {
4371
- className: `form-check form-switch${o ? ` ${o}` : ""}`,
4446
+ className: `form-check form-switch${a ? ` ${a}` : ""}`,
4372
4447
  children: [/* @__PURE__ */ t("input", {
4373
4448
  type: "checkbox",
4374
4449
  className: "form-check-input",
@@ -4385,13 +4460,13 @@ var Ct = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
4385
4460
  });
4386
4461
  //#endregion
4387
4462
  //#region src/components/AppTableEmptyState.jsx
4388
- function wt({ icon: e, title: r, text: i, action: a, ...o }) {
4389
- return w("AppTableEmptyState", o), /* @__PURE__ */ n("div", {
4463
+ function Tt({ icon: e, title: r, text: i, action: a, ...o }) {
4464
+ return T("AppTableEmptyState", o), /* @__PURE__ */ n("div", {
4390
4465
  className: "tbl-empty",
4391
4466
  children: [
4392
4467
  /* @__PURE__ */ t("span", {
4393
4468
  className: "tbl-empty-icon",
4394
- children: /* @__PURE__ */ t(D, {
4469
+ children: /* @__PURE__ */ t(O, {
4395
4470
  name: e,
4396
4471
  size: 24
4397
4472
  })
@@ -4413,9 +4488,9 @@ function wt({ icon: e, title: r, text: i, action: a, ...o }) {
4413
4488
  }
4414
4489
  //#endregion
4415
4490
  //#region src/components/AppTabs.jsx
4416
- function Tt({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabel: o, className: c = "", ...l }) {
4417
- w("AppTabs", l);
4418
- let u = s(null);
4491
+ function Et({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabel: o, className: s = "", ...l }) {
4492
+ T("AppTabs", l);
4493
+ let u = c(null);
4419
4494
  function d(t) {
4420
4495
  let n = e.findIndex((e) => e.key === r);
4421
4496
  if (n < 0) return;
@@ -4425,7 +4500,7 @@ function Tt({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabe
4425
4500
  let o = CSS.escape(String(a.key));
4426
4501
  u.current?.querySelector(`[data-rr-ui-event-key="${o}"]`)?.focus();
4427
4502
  }
4428
- return /* @__PURE__ */ t(y, {
4503
+ return /* @__PURE__ */ t(b, {
4429
4504
  as: "div",
4430
4505
  role: "tablist",
4431
4506
  ref: u,
@@ -4435,9 +4510,9 @@ function Tt({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabe
4435
4510
  },
4436
4511
  onKeyDown: d,
4437
4512
  bsPrefix: "app-tabs",
4438
- className: [a === "pills" ? "app-tabs-pills" : "", c].filter(Boolean).join(" "),
4513
+ className: [a === "pills" ? "app-tabs-pills" : "", s].filter(Boolean).join(" "),
4439
4514
  "aria-label": o,
4440
- children: e.map((e) => /* @__PURE__ */ n(y.Link, {
4515
+ children: e.map((e) => /* @__PURE__ */ n(b.Link, {
4441
4516
  as: "button",
4442
4517
  type: "button",
4443
4518
  eventKey: e.key,
@@ -4457,59 +4532,76 @@ function Tt({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabe
4457
4532
  }
4458
4533
  //#endregion
4459
4534
  //#region src/components/AppTextarea.jsx
4460
- var Et = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, helpLabel: s = "More information", id: c, name: l, rows: u = 4, className: d = "", fieldClassName: f = "", ...m }, h) {
4461
- w("AppTextarea", m);
4462
- let g = c || l, _ = [
4535
+ var Dt = r(function({ label: e, required: r = !1, error: a, hint: o, help: l, helpLabel: u = "More information", id: d, name: f, rows: p = 4, autoGrow: h = !1, className: g = "", fieldClassName: _ = "", ...v }, y) {
4536
+ T("AppTextarea", v);
4537
+ let b = d || f, x = [
4463
4538
  "textarea",
4464
- i ? "error" : "",
4465
- d
4466
- ].filter(Boolean).join(" ");
4467
- return /* @__PURE__ */ n(p.Group, {
4468
- className: `field${f ? ` ${f}` : ""}`,
4539
+ h ? "autosize" : "",
4540
+ a ? "error" : "",
4541
+ g
4542
+ ].filter(Boolean).join(" "), S = c(null), C = (e) => {
4543
+ S.current = e, typeof y == "function" ? y(e) : y && (y.current = e);
4544
+ }, w = i(() => {
4545
+ let e = S.current;
4546
+ e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
4547
+ }, []);
4548
+ s(() => {
4549
+ h && w();
4550
+ }, [
4551
+ h,
4552
+ w,
4553
+ v.value
4554
+ ]);
4555
+ let E = (e) => {
4556
+ h && w(), v.onInput?.(e);
4557
+ };
4558
+ return /* @__PURE__ */ n(m.Group, {
4559
+ className: `field${_ ? ` ${_}` : ""}`,
4469
4560
  children: [
4470
- e && /* @__PURE__ */ n(p.Label, {
4561
+ e && /* @__PURE__ */ n(m.Label, {
4471
4562
  className: "label",
4472
- htmlFor: g,
4563
+ htmlFor: b,
4473
4564
  children: [
4474
4565
  e,
4475
- r && /* @__PURE__ */ t(Y, {}),
4476
- o && /* @__PURE__ */ t(Z, {
4477
- label: s,
4478
- children: o
4566
+ r && /* @__PURE__ */ t(X, {}),
4567
+ l && /* @__PURE__ */ t(Q, {
4568
+ label: u,
4569
+ children: l
4479
4570
  })
4480
4571
  ]
4481
4572
  }),
4482
- /* @__PURE__ */ t(p.Control, {
4573
+ /* @__PURE__ */ t(m.Control, {
4483
4574
  as: "textarea",
4484
- id: g,
4485
- name: l,
4486
- rows: u,
4487
- className: _,
4488
- "aria-invalid": i ? "true" : "false",
4575
+ id: b,
4576
+ name: f,
4577
+ rows: p,
4578
+ className: x,
4579
+ "aria-invalid": a ? "true" : "false",
4489
4580
  required: r,
4490
- ref: h,
4491
- ...m
4581
+ ...v,
4582
+ ref: C,
4583
+ onInput: E
4492
4584
  }),
4493
- i ? /* @__PURE__ */ t("div", {
4585
+ a ? /* @__PURE__ */ t("div", {
4494
4586
  className: "field-error",
4495
- children: i
4496
- }) : a ? /* @__PURE__ */ t("div", {
4497
- className: "field-hint",
4498
4587
  children: a
4588
+ }) : o ? /* @__PURE__ */ t("div", {
4589
+ className: "field-hint",
4590
+ children: o
4499
4591
  }) : null
4500
4592
  ]
4501
4593
  });
4502
4594
  });
4503
4595
  //#endregion
4504
4596
  //#region src/components/AppTimeline.jsx
4505
- function Dt({ items: e = [], className: r = "", ...i }) {
4506
- return w("AppTimeline", i), /* @__PURE__ */ t("ol", {
4597
+ function Ot({ items: e = [], className: r = "", ...i }) {
4598
+ return T("AppTimeline", i), /* @__PURE__ */ t("ol", {
4507
4599
  className: `timeline${r ? ` ${r}` : ""}`,
4508
4600
  children: e.map((e, r) => /* @__PURE__ */ n("li", {
4509
4601
  className: `timeline-item${e.tone && e.tone !== "neutral" ? ` ${e.tone}` : ""}`,
4510
4602
  children: [/* @__PURE__ */ t("span", {
4511
4603
  className: "timeline-dot",
4512
- children: /* @__PURE__ */ t(D, {
4604
+ children: /* @__PURE__ */ t(O, {
4513
4605
  name: e.icon || "circle",
4514
4606
  size: 12
4515
4607
  })
@@ -4540,4 +4632,4 @@ function Dt({ items: e = [], className: r = "", ...i }) {
4540
4632
  });
4541
4633
  }
4542
4634
  //#endregion
4543
- export { O as ActionIcon, k as AppAccordion, A as AppAlert, ve as AppAutocomplete, be as AppAvatar, xe as AppBadge, X as AppButton, we as AppCallout, Te as AppCard, Ee as AppCheckbox, De as AppChip, Oe as AppChoiceCard, ke as AppChoiceChip, Ae as AppColorField, je as AppCompareTable, Ie as AppConfirmDialog, Ke as AppDataTable, qe as AppDatePicker, Ye as AppDropdown, Xe as AppEmptyState, Ze as AppFileAttachment, et as AppFilePicker, tt as AppInfoList, Z as AppInfoTip, Me as AppInput, nt as AppKpiTile, rt as AppLogoPicker, Pe as AppModal, it as AppMultiSelect, at as AppPageHeader, ot as AppPhoneNumberInput, st as AppPricingCard, ct as AppRadio, lt as AppRepeater, ut as AppResourceCard, dt as AppSearch, ft as AppSegmented, mt as AppSelect, Ve as AppSelectMini, ht as AppShell, vt as AppSidebarMenu, Le as AppSkeleton, Be as AppSkeletonRows, yt as AppSpinner, bt as AppSplash, xt as AppStatusBadge, St as AppStepper, Ct as AppSwitch, wt as AppTableEmptyState, Ue as AppTablePagination, Tt as AppTabs, Et as AppTextarea, Dt as AppTimeline, D as Icon, Fe as MODAL_ICONS, Y as RequiredMark, $e as errorToast, E as iconNames, $ as toast };
4635
+ export { k as ActionIcon, A as AppAccordion, j as AppAlert, ve as AppAutocomplete, be as AppAvatar, xe as AppBadge, Z as AppButton, we as AppCallout, Te as AppCard, Ee as AppCheckbox, De as AppChip, Oe as AppChoiceCard, ke as AppChoiceChip, Ae as AppColorField, je as AppCompareTable, Ie as AppConfirmDialog, Ke as AppDataTable, qe as AppDatePicker, Ye as AppDropdown, Xe as AppEmptyState, Ze as AppFileAttachment, tt as AppFilePicker, nt as AppInfoList, Q as AppInfoTip, Me as AppInput, rt as AppKpiTile, it as AppLogoPicker, Pe as AppModal, at as AppMultiSelect, ot as AppPageHeader, st as AppPhoneNumberInput, ct as AppPricingCard, lt as AppRadio, ut as AppRepeater, dt as AppResourceCard, ft as AppSearch, pt as AppSegmented, ht as AppSelect, Ve as AppSelectMini, gt as AppShell, yt as AppSidebarMenu, Le as AppSkeleton, Be as AppSkeletonRows, bt as AppSpinner, xt as AppSplash, St as AppStatusBadge, Ct as AppStepper, wt as AppSwitch, Tt as AppTableEmptyState, Ue as AppTablePagination, Et as AppTabs, Dt as AppTextarea, Ot as AppTimeline, O as Icon, Fe as MODAL_ICONS, X as RequiredMark, et as errorToast, D as iconNames, $e as toast };