@webority/ui-react 0.3.0 → 0.5.0

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.
Files changed (64) hide show
  1. package/README.md +23 -0
  2. package/dist/types/components/ActionIcon.d.ts +27 -0
  3. package/dist/types/components/AppAccordion.d.ts +27 -0
  4. package/dist/types/components/AppAlert.d.ts +21 -0
  5. package/dist/types/components/AppAutocomplete.d.ts +48 -0
  6. package/dist/types/components/AppAvatar.d.ts +13 -0
  7. package/dist/types/components/AppBadge.d.ts +19 -0
  8. package/dist/types/components/AppButton.d.ts +13 -0
  9. package/dist/types/components/AppCallout.d.ts +19 -0
  10. package/dist/types/components/AppCard.d.ts +29 -0
  11. package/dist/types/components/AppCheckbox.d.ts +17 -0
  12. package/dist/types/components/AppChip.d.ts +37 -0
  13. package/dist/types/components/AppChoiceCard.d.ts +42 -0
  14. package/dist/types/components/AppChoiceChip.d.ts +26 -0
  15. package/dist/types/components/AppColorField.d.ts +35 -0
  16. package/dist/types/components/AppCompareTable.d.ts +32 -0
  17. package/dist/types/components/AppConfirmDialog.d.ts +27 -0
  18. package/dist/types/components/AppDataTable.d.ts +48 -0
  19. package/dist/types/components/AppDatePicker.d.ts +43 -0
  20. package/dist/types/components/AppDropdown.d.ts +11 -0
  21. package/dist/types/components/AppEmptyState.d.ts +31 -0
  22. package/dist/types/components/AppFileAttachment.d.ts +36 -0
  23. package/dist/types/components/AppFilePicker.d.ts +27 -0
  24. package/dist/types/components/AppInfoList.d.ts +24 -0
  25. package/dist/types/components/AppInfoTip.d.ts +4 -0
  26. package/dist/types/components/AppInput.d.ts +31 -0
  27. package/dist/types/components/AppKpiTile.d.ts +22 -0
  28. package/dist/types/components/AppLogoPicker.d.ts +31 -0
  29. package/dist/types/components/AppModal.d.ts +35 -0
  30. package/dist/types/components/AppMultiSelect.d.ts +38 -0
  31. package/dist/types/components/AppPageHeader.d.ts +22 -0
  32. package/dist/types/components/AppPhoneNumberInput.d.ts +13 -0
  33. package/dist/types/components/AppPricingCard.d.ts +38 -0
  34. package/dist/types/components/AppRadio.d.ts +17 -0
  35. package/dist/types/components/AppRepeater.d.ts +40 -0
  36. package/dist/types/components/AppResourceCard.d.ts +28 -0
  37. package/dist/types/components/AppSearch.d.ts +20 -0
  38. package/dist/types/components/AppSegmented.d.ts +35 -0
  39. package/dist/types/components/AppSelect.d.ts +19 -0
  40. package/dist/types/components/AppSelectMini.d.ts +11 -0
  41. package/dist/types/components/AppShell.d.ts +52 -0
  42. package/dist/types/components/AppSidebarMenu.d.ts +19 -0
  43. package/dist/types/components/AppSkeleton.d.ts +21 -0
  44. package/dist/types/components/AppSpinner.d.ts +17 -0
  45. package/dist/types/components/AppSplash.d.ts +25 -0
  46. package/dist/types/components/AppStatusBadge.d.ts +15 -0
  47. package/dist/types/components/AppStepper.d.ts +35 -0
  48. package/dist/types/components/AppSwitch.d.ts +17 -0
  49. package/dist/types/components/AppTableEmptyState.d.ts +15 -0
  50. package/dist/types/components/AppTablePagination.d.ts +31 -0
  51. package/dist/types/components/AppTabs.d.ts +30 -0
  52. package/dist/types/components/AppTextarea.d.ts +22 -0
  53. package/dist/types/components/AppTimeline.d.ts +26 -0
  54. package/dist/types/components/Icon.d.ts +7 -0
  55. package/dist/types/components/ModalIcons.d.ts +33 -0
  56. package/dist/types/components/RequiredMark.d.ts +7 -0
  57. package/dist/types/components/toast.d.ts +3 -0
  58. package/dist/types/index.d.ts +56 -0
  59. package/dist/types/lib/useListboxMenu.d.ts +46 -0
  60. package/dist/types/lib/usePagination.d.ts +11 -0
  61. package/dist/types/lib/usePopover.d.ts +7 -0
  62. package/dist/types/lib/useTableSort.d.ts +25 -0
  63. package/dist/ui-react.js +1243 -896
  64. package/package.json +13 -10
package/dist/ui-react.js CHANGED
@@ -1,19 +1,18 @@
1
1
  import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
2
- import r from "react-bootstrap/Alert";
3
- import { forwardRef as i, useCallback as a, useEffect as o, useId as s, useLayoutEffect as c, useRef as l, useState as u } from "react";
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 { Add as v, ArrowDown2 as y, Category as b, CloseCircle as x, DocumentDownload as S, DocumentText as C, Flash as w, ShieldTick as T, Verify as E } from "iconsax-react";
12
- import { toast as D } from "react-toastify";
13
- import O from "react-bootstrap/Offcanvas";
14
- import k from "react-bootstrap/Nav";
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";
15
14
  //#region src/components/Icon.jsx
16
- var ee = {
15
+ var b = {
17
16
  activity: "activity",
18
17
  "alert-circle": "exclamation-circle",
19
18
  "alert-triangle": "exclamation-triangle",
@@ -108,7 +107,7 @@ var ee = {
108
107
  x: "x-lg",
109
108
  zap: "lightning-charge"
110
109
  };
111
- function A({ name: e, size: r = 16, className: i, color: a, style: o }) {
110
+ function x({ name: e, size: r = 16, className: i, color: a, style: o }) {
112
111
  if (e === "hard-hat") return /* @__PURE__ */ t("svg", {
113
112
  width: r,
114
113
  height: r,
@@ -131,7 +130,7 @@ function A({ name: e, size: r = 16, className: i, color: a, style: o }) {
131
130
  }), /* @__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" })]
132
131
  })
133
132
  });
134
- let s = ee[e] || e;
133
+ let s = b[e] || e;
135
134
  return s ? /* @__PURE__ */ t("i", {
136
135
  className: `bi bi-${s}${i ? ` ${i}` : ""}`,
137
136
  "data-icon": e,
@@ -146,7 +145,7 @@ function A({ name: e, size: r = 16, className: i, color: a, style: o }) {
146
145
  }
147
146
  //#endregion
148
147
  //#region src/components/ActionIcon.jsx
149
- function te({ icon: e, label: n, danger: r = !1, disabled: i = !1, size: a = 20, onClick: o, className: s = "", ...c }) {
148
+ function S({ icon: e, label: n, danger: r = !1, disabled: i = !1, size: a = 20, onClick: o, className: s = "", ...c }) {
150
149
  return /* @__PURE__ */ t("button", {
151
150
  type: "button",
152
151
  className: [
@@ -159,31 +158,100 @@ function te({ icon: e, label: n, danger: r = !1, disabled: i = !1, size: a = 20,
159
158
  disabled: i,
160
159
  onClick: o,
161
160
  ...c,
162
- children: /* @__PURE__ */ t(A, {
161
+ children: /* @__PURE__ */ t(x, {
163
162
  name: e,
164
- size: a,
165
- variant: "Bold"
163
+ size: a
164
+ })
165
+ });
166
+ }
167
+ //#endregion
168
+ //#region src/components/AppAccordion.jsx
169
+ function C({ items: e = [], multiple: r = !1, id: i, className: o = "" }) {
170
+ let s = a(), l = i || s, [u, d] = c(() => {
171
+ let t = e.filter((e) => e.open).map((e, t) => e.key ?? String(t));
172
+ return new Set(r ? t : t.slice(0, 1));
173
+ }), f = (e, t) => e.key ?? String(t), p = (e) => {
174
+ d((t) => {
175
+ let n = new Set(r ? t : []);
176
+ return t.has(e) ? n.delete(e) : n.add(e), n;
177
+ });
178
+ };
179
+ return /* @__PURE__ */ t("div", {
180
+ className: `faq-list${o ? ` ${o}` : ""}`,
181
+ children: e.map((e, r) => {
182
+ let i = f(e, r), a = u.has(i), o = `${l}-${r}`, s = `${o}-q`;
183
+ return /* @__PURE__ */ n("div", {
184
+ className: `faq-item${a ? " open" : ""}`,
185
+ children: [/* @__PURE__ */ n("button", {
186
+ type: "button",
187
+ className: "faq-q",
188
+ id: s,
189
+ "aria-expanded": a,
190
+ "aria-controls": o,
191
+ onClick: () => p(i),
192
+ children: [e.title, /* @__PURE__ */ t("span", {
193
+ className: "faq-q-icon",
194
+ children: /* @__PURE__ */ t(x, {
195
+ name: "chevron-down",
196
+ size: 18
197
+ })
198
+ })]
199
+ }), /* @__PURE__ */ t("section", {
200
+ className: "faq-a-wrap",
201
+ id: o,
202
+ "aria-labelledby": s,
203
+ children: /* @__PURE__ */ t("div", {
204
+ className: "faq-a-inner",
205
+ children: e.content
206
+ })
207
+ })]
208
+ }, i);
166
209
  })
167
210
  });
168
211
  }
169
212
  //#endregion
170
213
  //#region src/components/AppAlert.jsx
171
- function ne({ variant: e = "danger", children: n, className: i = "", onClose: a, dismissible: o, role: s = "alert", ...c }) {
172
- return /* @__PURE__ */ t(r, {
214
+ function w({ variant: e = "info", children: n, className: r = "", onClose: i, dismissible: a, role: o = "alert", ...s }) {
215
+ return /* @__PURE__ */ t(l, {
173
216
  variant: e,
174
- className: i || void 0,
175
- onClose: a,
176
- dismissible: o ?? typeof a == "function",
217
+ className: r || void 0,
218
+ onClose: i,
219
+ dismissible: a ?? typeof i == "function",
177
220
  transition: !1,
178
- role: s,
179
- ...c,
221
+ role: o,
222
+ ...s,
180
223
  children: n
181
224
  });
182
225
  }
183
226
  //#endregion
184
227
  //#region ../elements/dist/ui-elements.js
185
- var re = class extends HTMLElement {
228
+ var T = {
229
+ 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>",
230
+ 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>",
231
+ 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>",
232
+ 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>",
233
+ 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>"
234
+ };
235
+ Object.keys(T);
236
+ var E = class extends HTMLElement {
237
+ static get observedAttributes() {
238
+ return ["tone", "size"];
239
+ }
240
+ connectedCallback() {
241
+ this.render();
242
+ }
243
+ attributeChangedCallback() {
244
+ this.isConnected && this.render();
245
+ }
246
+ render() {
247
+ let e = this.getAttribute("tone"), t = this.getAttribute("size") || "72", n = T[e] || T.info;
248
+ 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>`;
249
+ }
250
+ }, D = Symbol("wui.trustedHtml"), O = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), k = (e) => e?.[D] ? String(e.label ?? "") : O(e == null ? "" : e.label), A = class extends HTMLElement {
186
251
  static formAssociated = !0;
252
+ _accessibleName() {
253
+ return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
254
+ }
187
255
  static get observedAttributes() {
188
256
  return [
189
257
  "value",
@@ -239,6 +307,7 @@ var re = class extends HTMLElement {
239
307
  e.length && (this._declared = e.map((e) => ({
240
308
  value: e.getAttribute("value") ?? e.textContent.trim(),
241
309
  label: e.innerHTML,
310
+ [D]: !0,
242
311
  selected: e.hasAttribute("selected")
243
312
  })));
244
313
  }
@@ -250,7 +319,7 @@ var re = class extends HTMLElement {
250
319
  let e = this.getAttribute("placeholder") || "Search…";
251
320
  this.innerHTML = `
252
321
  <div class="search-select">
253
- <div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false">
322
+ <div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-label="${j(this._accessibleName())}">
254
323
  <input class="search-select-input search-select-ac-input" placeholder="${j(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
255
324
  <span class="search-select-spinner spinner-border spinner-border-sm" role="status" aria-hidden="true" hidden></span>
256
325
  <button type="button" class="search-select-clear" aria-label="Clear" hidden><i class="bi bi-x" aria-hidden="true"></i></button>
@@ -291,7 +360,7 @@ var re = class extends HTMLElement {
291
360
  let n = (e ?? (t.input ? t.input.value : "")).trim().toLowerCase(), r = this._readOptions();
292
361
  !this._remote && n && (r = r.filter((e) => M(e.label).toLowerCase().includes(n))), t.optionsWrap.innerHTML = r.map((e) => {
293
362
  let t = String(e.value) === String(this._value);
294
- return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${j(e.value)}" aria-selected="${t}">${e.label}</button>`;
363
+ return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${j(e.value)}" aria-selected="${t}">${k(e)}</button>`;
295
364
  }).join(""), this._active = -1;
296
365
  let i = n.length < this._minChars;
297
366
  t.hint && (t.hint.hidden = !(this._remote && i && !r.length)), t.empty && (t.empty.hidden = this._loading || r.length > 0 || this._remote && i);
@@ -345,7 +414,7 @@ var re = class extends HTMLElement {
345
414
  disconnectedCallback() {
346
415
  this._onDocClick && document.removeEventListener("click", this._onDocClick), clearTimeout(this._timer);
347
416
  }
348
- }, j = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), M = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), ie = [
417
+ }, j = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), M = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), N = [
349
418
  "January",
350
419
  "February",
351
420
  "March",
@@ -358,7 +427,7 @@ var re = class extends HTMLElement {
358
427
  "October",
359
428
  "November",
360
429
  "December"
361
- ], ae = [
430
+ ], ee = [
362
431
  "Su",
363
432
  "Mo",
364
433
  "Tu",
@@ -366,17 +435,17 @@ var re = class extends HTMLElement {
366
435
  "Th",
367
436
  "Fr",
368
437
  "Sa"
369
- ], N = (e) => String(e).padStart(2, "0"), oe = (e, t, n) => `${e}-${N(t + 1)}-${N(n)}`, P = (e) => {
438
+ ], P = (e) => String(e).padStart(2, "0"), te = (e, t, n) => `${e}-${P(t + 1)}-${P(n)}`, F = (e) => {
370
439
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e || "");
371
440
  return t ? {
372
441
  y: +t[1],
373
442
  m: t[2] - 1,
374
443
  d: +t[3]
375
444
  } : null;
376
- }, F = (e) => {
377
- let t = P(e);
378
- return t ? `${N(t.d)} ${ie[t.m].slice(0, 3)} ${t.y}` : "";
379
- }, se = class extends HTMLElement {
445
+ }, I = (e) => {
446
+ let t = F(e);
447
+ return t ? `${P(t.d)} ${N[t.m].slice(0, 3)} ${t.y}` : "";
448
+ }, ne = class extends HTMLElement {
380
449
  static formAssociated = !0;
381
450
  static get observedAttributes() {
382
451
  return [
@@ -406,11 +475,11 @@ var re = class extends HTMLElement {
406
475
  }
407
476
  render() {
408
477
  this._value = this.getAttribute("value") || this._value;
409
- let e = this.getAttribute("placeholder") || "Enter Date", t = P(this._value);
478
+ let e = this.getAttribute("placeholder") || "Enter Date", t = F(this._value);
410
479
  t && (this._viewY = t.y, this._viewM = t.m), this.innerHTML = `
411
480
  <div class="datepicker">
412
481
  <button type="button" class="input datepicker-trigger" aria-haspopup="dialog" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}>
413
- <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? F(this._value) : e}</span>
482
+ <span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? I(this._value) : e}</span>
414
483
  <i class="bi bi-calendar3" aria-hidden="true"></i>
415
484
  </button>
416
485
  <div class="datepicker-pop" role="dialog" hidden></div>
@@ -422,26 +491,26 @@ var re = class extends HTMLElement {
422
491
  _syncTrigger() {
423
492
  let e = this.querySelector("[data-trigger-label]");
424
493
  if (!e) return;
425
- let t = P(this._value);
426
- e.textContent = t ? F(this._value) : this.getAttribute("placeholder") || "Enter Date", e.classList.toggle("search-select-placeholder", !t);
494
+ let t = F(this._value);
495
+ e.textContent = t ? I(this._value) : this.getAttribute("placeholder") || "Enter Date", e.classList.toggle("search-select-placeholder", !t);
427
496
  }
428
497
  _renderMonth() {
429
- 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 = P(this._value), i = P(this.getAttribute("min")), a = P(this.getAttribute("max")), o = (e, t, n) => {
498
+ 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 = F(this._value), i = F(this.getAttribute("min")), a = F(this.getAttribute("max")), o = (e, t, n) => {
430
499
  let r = new Date(e, t, n).getTime();
431
500
  return !!(i && r < new Date(i.y, i.m, i.d).getTime() || a && r > new Date(a.y, a.m, a.d).getTime());
432
501
  }, s = "";
433
502
  for (let e = 0; e < t; e++) s += "<span class=\"datepicker-day is-outside\"></span>";
434
503
  for (let e = 1; e <= n; e++) {
435
- let t = oe(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);
504
+ let t = te(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);
436
505
  s += `<button type="button" class="datepicker-day${n ? " selected" : ""}" data-iso="${t}"${i ? " disabled" : ""}>${e}</button>`;
437
506
  }
438
507
  e.innerHTML = `
439
508
  <div class="datepicker-head">
440
509
  <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>
441
- <span class="datepicker-month">${ie[this._viewM]} ${this._viewY}</span>
510
+ <span class="datepicker-month">${N[this._viewM]} ${this._viewY}</span>
442
511
  <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>
443
512
  </div>
444
- <div class="datepicker-weekdays">${ae.map((e) => `<span>${e}</span>`).join("")}</div>
513
+ <div class="datepicker-weekdays">${ee.map((e) => `<span>${e}</span>`).join("")}</div>
445
514
  <div class="datepicker-grid">${s}</div>
446
515
  <div class="datepicker-foot"><button type="button" class="datepicker-link" data-clear>Clear</button></div>`;
447
516
  }
@@ -467,15 +536,18 @@ var re = class extends HTMLElement {
467
536
  n && !n.disabled && (this.value = n.dataset.iso, i());
468
537
  }), this._onDocClick = (e) => {
469
538
  n() && !this.contains(e.target) && i();
470
- }, document.addEventListener("click", this._onDocClick), document.addEventListener("keydown", (e) => {
539
+ }, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
471
540
  n() && e.key === "Escape" && i();
472
- }), this._internalsSet();
541
+ }, document.addEventListener("keydown", this._onDocKey), this._internalsSet();
473
542
  }
474
543
  disconnectedCallback() {
475
- this._onDocClick && document.removeEventListener("click", this._onDocClick);
544
+ this._onDocClick && document.removeEventListener("click", this._onDocClick), this._onDocKey && document.removeEventListener("keydown", this._onDocKey);
476
545
  }
477
- }, ce = class extends HTMLElement {
546
+ }, re = class extends HTMLElement {
478
547
  static formAssociated = !0;
548
+ _accessibleName() {
549
+ return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
550
+ }
479
551
  static get observedAttributes() {
480
552
  return [
481
553
  "placeholder",
@@ -517,6 +589,7 @@ var re = class extends HTMLElement {
517
589
  e.length && (this._declared = e.map((e) => ({
518
590
  value: e.getAttribute("value") ?? e.textContent.trim(),
519
591
  label: e.innerHTML,
592
+ [D]: !0,
520
593
  selected: e.hasAttribute("selected")
521
594
  })));
522
595
  }
@@ -527,17 +600,21 @@ var re = class extends HTMLElement {
527
600
  let t = this._readOptions().find((t) => String(t.value) === String(e));
528
601
  return t ? t.label : e;
529
602
  }
603
+ _labelHtmlFor(e) {
604
+ let t = this._readOptions().find((t) => String(t.value) === String(e));
605
+ return t ? k(t) : O(e);
606
+ }
530
607
  render() {
531
608
  this._snapshotDeclared();
532
609
  let e = this.hasAttribute("searchable"), t = this.getAttribute("search-placeholder") || "Search…";
533
610
  this._internals?.setFormValue(this._values.join(",")), this.innerHTML = `
534
611
  <div class="search-select">
535
- <div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
612
+ <div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-label="${L(this._accessibleName())}"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
536
613
  <div class="ms-chips" data-chips></div>
537
614
  <i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
538
615
  </div>
539
616
  <div class="search-select-menu search-select-menu-fixed" role="listbox" aria-multiselectable="true" tabindex="-1" hidden>
540
- ${e ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${I(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>` : ""}
617
+ ${e ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${L(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>` : ""}
541
618
  <div class="search-select-options"></div>
542
619
  <div class="search-select-empty" hidden>No matches</div>
543
620
  </div>
@@ -548,18 +625,18 @@ var re = class extends HTMLElement {
548
625
  if (!e) return;
549
626
  let t = this.getAttribute("placeholder") || "Select…";
550
627
  if (!this._values.length) {
551
- e.innerHTML = `<span class="search-select-placeholder">${le(t)}</span>`;
628
+ e.innerHTML = `<span class="search-select-placeholder">${O(t)}</span>`;
552
629
  return;
553
630
  }
554
- e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${this._labelFor(e)}</span><button type="button" class="chip-remove" data-remove="${I(e)}" aria-label="Remove"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join("");
631
+ 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="${L(e)}" aria-label="Remove"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join("");
555
632
  }
556
633
  _renderOptions(e) {
557
634
  let t = this.querySelector(".search-select-options"), n = this.querySelector(".search-select-empty");
558
635
  if (!t) return;
559
636
  let r = (e || "").trim().toLowerCase(), i = this._readOptions();
560
- r && (i = i.filter((e) => ue(e.label).toLowerCase().includes(r))), t.innerHTML = i.map((e) => {
637
+ r && (i = i.filter((e) => ie(e.label).toLowerCase().includes(r))), t.innerHTML = i.map((e) => {
561
638
  let t = this._values.includes(String(e.value));
562
- return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${I(e.value)}" aria-selected="${t}"><span class="ms-check"><i class="bi bi-check" aria-hidden="true"></i></span><span class="ms-opt-label">${e.label}</span></button>`;
639
+ return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${L(e.value)}" aria-selected="${t}"><span class="ms-check"><i class="bi bi-check" aria-hidden="true"></i></span><span class="ms-opt-label">${k(e)}</span></button>`;
563
640
  }).join(""), n && (n.hidden = i.length > 0), this._active = -1;
564
641
  }
565
642
  _wire() {
@@ -600,13 +677,19 @@ var re = class extends HTMLElement {
600
677
  t && l(c().indexOf(t));
601
678
  }), n?.addEventListener("input", () => {
602
679
  this._renderOptions(n.value), r && (r.hidden = !n.value), l(-1);
603
- }), n?.addEventListener("keydown", (t) => {
680
+ });
681
+ let g = (t) => {
604
682
  let r = c();
605
683
  t.key === "ArrowDown" ? (t.preventDefault(), l(Math.min(this._active + 1, r.length - 1))) : t.key === "ArrowUp" ? (t.preventDefault(), l(Math.max(this._active - 1, 0))) : t.key === "Enter" ? (t.preventDefault(), r[this._active] && m(r[this._active].dataset.value)) : t.key === "Escape" ? (f(), e.focus()) : t.key === "Backspace" && !n.value && this._values.length && h(this._values[this._values.length - 1]);
606
- }), r?.addEventListener("click", () => {
684
+ };
685
+ n?.addEventListener("keydown", g), r?.addEventListener("click", () => {
607
686
  n.value = "", this._renderOptions(""), r.hidden = !0, n.focus();
608
687
  }), e.addEventListener("keydown", (e) => {
609
- !u() && (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), d());
688
+ if (u()) {
689
+ g(e);
690
+ return;
691
+ }
692
+ (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), d());
610
693
  }), this._onDocClick = (e) => {
611
694
  u() && !this.contains(e.target) && f();
612
695
  }, document.addEventListener("click", this._onDocClick), window.addEventListener("resize", () => {
@@ -616,7 +699,7 @@ var re = class extends HTMLElement {
616
699
  disconnectedCallback() {
617
700
  this._onDocClick && document.removeEventListener("click", this._onDocClick);
618
701
  }
619
- }, I = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), le = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;"), ue = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), L = [
702
+ }, L = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), ie = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), ae = [
620
703
  [
621
704
  "AF",
622
705
  "Afghanistan",
@@ -1842,11 +1925,11 @@ var re = class extends HTMLElement {
1842
1925
  "Zimbabwe",
1843
1926
  "263"
1844
1927
  ]
1845
- ], R = (e) => (L.find((t) => t[0] === e) || [
1928
+ ], R = (e) => (ae.find((t) => t[0] === e) || [
1846
1929
  "",
1847
1930
  "",
1848
1931
  ""
1849
- ])[2], z = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, de = class extends HTMLElement {
1932
+ ])[2], z = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, oe = class extends HTMLElement {
1850
1933
  static formAssociated = !0;
1851
1934
  static get observedAttributes() {
1852
1935
  return [
@@ -1877,7 +1960,7 @@ var re = class extends HTMLElement {
1877
1960
  render() {
1878
1961
  let e = this.getAttribute("placeholder") || "Enter phone number";
1879
1962
  this._country = this.getAttribute("country") || this._country;
1880
- let t = L.map(([e, t, n]) => `<button type="button" role="option" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}"><span class="${z(e)}" aria-hidden="true"></span><span class="country-name-text">${t}<span class="country-code-text">+${n}</span></span></button>`).join("");
1963
+ let t = ae.map(([e, t, n]) => `<button type="button" role="option" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}"><span class="${z(e)}" aria-hidden="true"></span><span class="country-name-text">${t}<span class="country-code-text">+${n}</span></span></button>`).join("");
1881
1964
  this.innerHTML = `
1882
1965
  <div class="phone-input-wrap">
1883
1966
  <div class="phone-country-adornment">
@@ -1932,7 +2015,7 @@ var re = class extends HTMLElement {
1932
2015
  disconnectedCallback() {
1933
2016
  this._reposition && (window.removeEventListener("scroll", this._reposition, !0), window.removeEventListener("resize", this._reposition)), this._onDocClick && document.removeEventListener("click", this._onDocClick);
1934
2017
  }
1935
- }, B = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), fe = class extends HTMLElement {
2018
+ }, B = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), se = class extends HTMLElement {
1936
2019
  static formAssociated = !0;
1937
2020
  static get observedAttributes() {
1938
2021
  return [
@@ -1941,9 +2024,13 @@ var re = class extends HTMLElement {
1941
2024
  "search-placeholder",
1942
2025
  "searchable",
1943
2026
  "disabled",
1944
- "compact"
2027
+ "compact",
2028
+ "aria-label"
1945
2029
  ];
1946
2030
  }
2031
+ _accessibleName() {
2032
+ return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
2033
+ }
1947
2034
  constructor() {
1948
2035
  super(), this._internals = this.attachInternals ? this.attachInternals() : null, this._value = "", this._optionsProp = null, this._active = -1;
1949
2036
  }
@@ -1971,6 +2058,7 @@ var re = class extends HTMLElement {
1971
2058
  e.length && (this._declared = e.map((e) => ({
1972
2059
  value: e.getAttribute("value") ?? e.textContent.trim(),
1973
2060
  label: e.innerHTML,
2061
+ [D]: !0,
1974
2062
  selected: e.hasAttribute("selected")
1975
2063
  })));
1976
2064
  }
@@ -1983,12 +2071,12 @@ var re = class extends HTMLElement {
1983
2071
  i && (this._value = String(i.value)), this._internals?.setFormValue(this._value);
1984
2072
  let a = e.map((e) => {
1985
2073
  let t = String(e.value) === String(this._value);
1986
- return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${V(e.value)}" aria-selected="${t}">${e.label}</button>`;
2074
+ return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${V(e.value)}" aria-selected="${t}">${k(e)}</button>`;
1987
2075
  }).join("");
1988
2076
  this.innerHTML = `
1989
2077
  <div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}">
1990
- <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}>
1991
- <span class="${i ? "" : "search-select-placeholder"}" data-label>${i ? i.label : n}</span>
2078
+ <button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-label="${V(this._accessibleName())}"${this.hasAttribute("disabled") ? " disabled" : ""}>
2079
+ <span class="${i ? "" : "search-select-placeholder"}" data-label>${i ? k(i) : O(n)}</span>
1992
2080
  <i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
1993
2081
  </button>
1994
2082
  <div class="search-select-menu search-select-menu-fixed" role="listbox" tabindex="-1" hidden>
@@ -2020,7 +2108,7 @@ var re = class extends HTMLElement {
2020
2108
  let t = e.dataset.value === String(this._value);
2021
2109
  e.classList.toggle("selected", t), e.setAttribute("aria-selected", String(t));
2022
2110
  }
2023
- e && (e.innerHTML = t ? t.label : e.innerHTML, e.classList.toggle("search-select-placeholder", !t));
2111
+ e && (e.innerHTML = t ? k(t) : e.innerHTML, e.classList.toggle("search-select-placeholder", !t));
2024
2112
  }
2025
2113
  _wire() {
2026
2114
  let e = this._refs();
@@ -2051,7 +2139,11 @@ var re = class extends HTMLElement {
2051
2139
  t.key === "ArrowDown" ? (t.preventDefault(), n(Math.min(this._active + 1, r.length - 1))) : t.key === "ArrowUp" ? (t.preventDefault(), n(Math.max(this._active - 1, 0))) : t.key === "Enter" ? (t.preventDefault(), r[this._active] && s(r[this._active])) : t.key === "Escape" && (o(), e.control.focus());
2052
2140
  };
2053
2141
  e.control.addEventListener("click", () => i() ? o() : a()), e.control.addEventListener("keydown", (e) => {
2054
- !i() && (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
2142
+ if (i()) {
2143
+ c(e);
2144
+ return;
2145
+ }
2146
+ (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
2055
2147
  }), e.optionsWrap.addEventListener("click", (e) => {
2056
2148
  let t = e.target.closest(".search-select-option");
2057
2149
  t && s(t);
@@ -2071,44 +2163,85 @@ var re = class extends HTMLElement {
2071
2163
  disconnectedCallback() {
2072
2164
  this._onDocClick && document.removeEventListener("click", this._onDocClick);
2073
2165
  }
2074
- }, V = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), H = (e, t) => {
2166
+ }, V = (e) => String(e ?? "").replace(/"/g, "&quot;").replace(/</g, "&lt;"), H = "image/png,image/jpeg,image/webp", ce = {
2167
+ "image/png": [".png"],
2168
+ "image/jpeg": [".jpg", ".jpeg"],
2169
+ "image/webp": [".webp"],
2170
+ "image/gif": [".gif"],
2171
+ "image/svg+xml": [".svg"],
2172
+ "application/pdf": [".pdf"]
2173
+ }, le = {
2174
+ "image/png": "PNG",
2175
+ "image/jpeg": "JPG",
2176
+ "image/webp": "WEBP",
2177
+ "image/gif": "GIF",
2178
+ "image/svg+xml": "SVG",
2179
+ "application/pdf": "PDF",
2180
+ ".png": "PNG",
2181
+ ".jpg": "JPG",
2182
+ ".jpeg": "JPG",
2183
+ ".webp": "WEBP",
2184
+ ".gif": "GIF",
2185
+ ".svg": "SVG",
2186
+ ".pdf": "PDF"
2187
+ }, U = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
2188
+ function ue(e) {
2189
+ let t = [];
2190
+ for (let n of U(e)) {
2191
+ let e = le[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
2192
+ t.includes(e) || t.push(e);
2193
+ }
2194
+ return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
2195
+ }
2196
+ function de(e, t) {
2197
+ let n = U(t);
2198
+ if (!n.length) return !0;
2199
+ let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
2200
+ return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (ce[e] || []).some((e) => i.endsWith(e)));
2201
+ }
2202
+ function W(e, t = {}) {
2203
+ if (!e) return null;
2204
+ let n = t.accept === void 0 ? H : t.accept, r = t.maxSizeMb || 5;
2205
+ return de(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${ue(n)} file.`;
2206
+ }
2207
+ var G = (e, t) => {
2075
2208
  typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
2076
2209
  };
2077
- function pe() {
2078
- H("wui-select", fe), H("wui-phone", de), H("wui-datepicker", se), H("wui-autocomplete", re), H("wui-multiselect", ce);
2210
+ function fe() {
2211
+ G("wui-select", se), G("wui-phone", oe), G("wui-datepicker", ne), G("wui-autocomplete", A), G("wui-multiselect", re), G("wui-status-icon", E);
2079
2212
  }
2080
- pe();
2213
+ fe();
2081
2214
  //#endregion
2082
2215
  //#region src/components/RequiredMark.jsx
2083
- function U() {
2084
- return /* @__PURE__ */ n("span", {
2216
+ function K() {
2217
+ return /* @__PURE__ */ t("span", {
2085
2218
  className: "required",
2086
2219
  "aria-hidden": "true",
2087
- children: [" ", "*"]
2220
+ children: "*"
2088
2221
  });
2089
2222
  }
2090
2223
  //#endregion
2091
2224
  //#region src/components/AppAutocomplete.jsx
2092
- function me({ value: e, onChange: r, options: i, loadOptions: a, placeholder: s = "Search…", minChars: c, debounce: u, disabled: d = !1, name: f, label: p, error: m, hint: h, required: g = !1, fieldClassName: _ = "" }) {
2093
- let v = l(null), y = typeof a == "function";
2094
- return o(() => {
2225
+ function pe({ 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: _ = "" }) {
2226
+ let v = s(null), y = typeof o == "function";
2227
+ return i(() => {
2095
2228
  let e = v.current;
2096
- e && !y && (e.options = i || []);
2097
- }, [i, y]), o(() => {
2229
+ e && !y && (e.options = a || []);
2230
+ }, [a, y]), i(() => {
2098
2231
  let t = v.current;
2099
2232
  t && t.value !== (e ?? "") && (t.value = e ?? "");
2100
- }, [e]), o(() => {
2233
+ }, [e]), i(() => {
2101
2234
  let e = v.current;
2102
2235
  if (!e) return;
2103
2236
  let t = () => r?.(e.value);
2104
2237
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
2105
- }, [r]), o(() => {
2238
+ }, [r]), i(() => {
2106
2239
  let e = v.current;
2107
2240
  if (!e || !y) return;
2108
2241
  let t = !1, n = async (n) => {
2109
2242
  e.loading = !0;
2110
2243
  try {
2111
- let r = await a(n.detail.query);
2244
+ let r = await o(n.detail.query);
2112
2245
  t || (e.options = r || []);
2113
2246
  } finally {
2114
2247
  t || (e.loading = !1);
@@ -2117,21 +2250,22 @@ function me({ value: e, onChange: r, options: i, loadOptions: a, placeholder: s
2117
2250
  return e.addEventListener("search", n), () => {
2118
2251
  t = !0, e.removeEventListener("search", n);
2119
2252
  };
2120
- }, [y, a]), /* @__PURE__ */ n("div", {
2253
+ }, [y, o]), /* @__PURE__ */ n("div", {
2121
2254
  className: `field${_ ? ` ${_}` : ""}`,
2122
2255
  children: [
2123
2256
  p && /* @__PURE__ */ n("label", {
2124
2257
  className: "label",
2125
2258
  htmlFor: f,
2126
- children: [p, g && /* @__PURE__ */ t(U, {})]
2259
+ children: [p, g && /* @__PURE__ */ t(K, {})]
2127
2260
  }),
2128
2261
  /* @__PURE__ */ t("wui-autocomplete", {
2262
+ "aria-label": typeof p == "string" ? p : void 0,
2129
2263
  id: f,
2130
2264
  ref: v,
2131
2265
  name: f,
2132
- placeholder: s,
2266
+ placeholder: c,
2133
2267
  remote: y ? "" : void 0,
2134
- "min-chars": c == null ? void 0 : String(c),
2268
+ "min-chars": l == null ? void 0 : String(l),
2135
2269
  debounce: u == null ? void 0 : String(u),
2136
2270
  disabled: d ? "" : void 0
2137
2271
  }),
@@ -2147,13 +2281,13 @@ function me({ value: e, onChange: r, options: i, loadOptions: a, placeholder: s
2147
2281
  }
2148
2282
  //#endregion
2149
2283
  //#region src/components/AppAvatar.jsx
2150
- function he(e) {
2284
+ function me(e) {
2151
2285
  let t = (e || "").trim();
2152
2286
  if (!t) return "?";
2153
2287
  let n = t.split(/\s+/).filter(Boolean);
2154
2288
  return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
2155
2289
  }
2156
- function ge({ name: e, src: n, className: r = "" }) {
2290
+ function he({ name: e, src: n, className: r = "" }) {
2157
2291
  let i = ["avatar", r].filter(Boolean).join(" ");
2158
2292
  return n ? /* @__PURE__ */ t("span", {
2159
2293
  className: i,
@@ -2166,13 +2300,13 @@ function ge({ name: e, src: n, className: r = "" }) {
2166
2300
  className: i,
2167
2301
  role: "img",
2168
2302
  "aria-label": e,
2169
- children: he(e)
2303
+ children: me(e)
2170
2304
  });
2171
2305
  }
2172
2306
  //#endregion
2173
2307
  //#region src/components/AppBadge.jsx
2174
- function _e({ children: e, tone: n, dot: r = !1, className: i = "", ...a }) {
2175
- return /* @__PURE__ */ t(d, {
2308
+ function ge({ children: e, tone: n, dot: r = !1, className: i = "", ...a }) {
2309
+ return /* @__PURE__ */ t(u, {
2176
2310
  bg: !1,
2177
2311
  className: [
2178
2312
  n ? `badge-${n}` : "",
@@ -2185,18 +2319,25 @@ function _e({ children: e, tone: n, dot: r = !1, className: i = "", ...a }) {
2185
2319
  }
2186
2320
  //#endregion
2187
2321
  //#region src/components/AppButton.jsx
2188
- var ve = {
2322
+ var _e = {
2189
2323
  primary: "primary",
2190
2324
  secondary: "secondary",
2191
2325
  outline: "outline-primary",
2192
2326
  ghost: "link",
2193
2327
  danger: "danger"
2194
2328
  };
2195
- function W({ 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 }) {
2196
- let m = [c ? "w-100" : "", d].filter(Boolean).join(" ");
2197
- return /* @__PURE__ */ n(f, {
2329
+ function q(e, n) {
2330
+ return e ? typeof e == "string" ? /* @__PURE__ */ t(x, {
2331
+ name: e,
2332
+ size: 16,
2333
+ className: n === "left" ? "me-2" : "ms-2"
2334
+ }) : e : null;
2335
+ }
2336
+ function J({ 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 }) {
2337
+ let m = [c ? "w-100" : "", f].filter(Boolean).join(" ");
2338
+ return /* @__PURE__ */ n(d, {
2198
2339
  type: a,
2199
- variant: ve[r] ?? "primary",
2340
+ variant: _e[r] ?? "primary",
2200
2341
  size: i === "md" ? void 0 : i,
2201
2342
  disabled: s || o,
2202
2343
  className: m || void 0,
@@ -2206,23 +2347,37 @@ function W({ children: e, variant: r = "primary", size: i = "md", type: a = "but
2206
2347
  className: "spinner-border spinner-border-sm me-2",
2207
2348
  "aria-hidden": "true"
2208
2349
  }),
2209
- !o && l,
2350
+ !o && q(l, "left"),
2210
2351
  e,
2211
- !o && u
2352
+ !o && q(u, "right")
2212
2353
  ]
2213
2354
  });
2214
2355
  }
2215
2356
  //#endregion
2357
+ //#region src/components/AppCallout.jsx
2358
+ function ve({ children: e, icon: r = "info", className: i = "" }) {
2359
+ return /* @__PURE__ */ n("div", {
2360
+ className: `info-callout${i ? ` ${i}` : ""}`,
2361
+ children: [r && /* @__PURE__ */ t("span", {
2362
+ className: "info-callout-icon",
2363
+ children: /* @__PURE__ */ t(x, {
2364
+ name: r,
2365
+ size: 18
2366
+ })
2367
+ }), /* @__PURE__ */ t("div", { children: e })]
2368
+ });
2369
+ }
2370
+ //#endregion
2216
2371
  //#region src/components/AppCard.jsx
2217
- function ye({ 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 }) {
2372
+ function ye({ 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 }) {
2218
2373
  let g = a != null || r != null || o != null || s != null;
2219
- return /* @__PURE__ */ n(p, {
2374
+ return /* @__PURE__ */ n(f, {
2220
2375
  className: [m ? "card-lifted" : "", l].filter(Boolean).join(" ") || void 0,
2221
2376
  ...h,
2222
- children: [g && /* @__PURE__ */ t(p.Header, {
2377
+ children: [g && /* @__PURE__ */ t(f.Header, {
2223
2378
  className: d || void 0,
2224
2379
  children: a ?? /* @__PURE__ */ n(e, { children: [
2225
- r != null && /* @__PURE__ */ t(p.Title, {
2380
+ r != null && /* @__PURE__ */ t(f.Title, {
2226
2381
  as: "div",
2227
2382
  className: i || void 0,
2228
2383
  children: r
@@ -2230,7 +2385,7 @@ function ye({ title: r, titleClassName: i = "", header: a, headerExtra: o, heade
2230
2385
  o,
2231
2386
  s
2232
2387
  ] })
2233
- }), f ? /* @__PURE__ */ t(p.Body, {
2388
+ }), p ? /* @__PURE__ */ t(f.Body, {
2234
2389
  className: u || void 0,
2235
2390
  children: c
2236
2391
  }) : c]
@@ -2238,17 +2393,17 @@ function ye({ title: r, titleClassName: i = "", header: a, headerExtra: o, heade
2238
2393
  }
2239
2394
  //#endregion
2240
2395
  //#region src/components/AppCheckbox.jsx
2241
- var be = i(function({ label: e, id: r, name: i, className: a = "", ...o }, c) {
2242
- let l = s(), u = r || i || l;
2396
+ var be = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
2397
+ let l = a(), u = r || i || l;
2243
2398
  return /* @__PURE__ */ n("div", {
2244
- className: `form-check${a ? ` ${a}` : ""}`,
2399
+ className: `form-check${o ? ` ${o}` : ""}`,
2245
2400
  children: [/* @__PURE__ */ t("input", {
2246
2401
  type: "checkbox",
2247
2402
  className: "form-check-input",
2248
2403
  id: u,
2249
2404
  name: i,
2250
2405
  ref: c,
2251
- ...o
2406
+ ...s
2252
2407
  }), e != null && /* @__PURE__ */ t("label", {
2253
2408
  className: "form-check-label",
2254
2409
  htmlFor: u,
@@ -2275,10 +2430,9 @@ function xe({ label: r, children: i, tone: a = "neutral", size: o = "md", leadin
2275
2430
  }) : c
2276
2431
  }) : s ? /* @__PURE__ */ t("span", {
2277
2432
  className: "chip-ic",
2278
- children: /* @__PURE__ */ t(A, {
2433
+ children: /* @__PURE__ */ t(x, {
2279
2434
  name: s,
2280
- size: o === "sm" ? 12 : 14,
2281
- variant: "Linear"
2435
+ size: o === "sm" ? 12 : 14
2282
2436
  })
2283
2437
  }) : null;
2284
2438
  return /* @__PURE__ */ n("span", {
@@ -2301,19 +2455,18 @@ function xe({ label: r, children: i, tone: a = "neutral", size: o = "md", leadin
2301
2455
  onClick: l,
2302
2456
  disabled: d,
2303
2457
  "aria-label": f || (typeof m == "string" ? `Remove ${m}` : "Remove"),
2304
- children: /* @__PURE__ */ t(A, {
2458
+ children: /* @__PURE__ */ t(x, {
2305
2459
  name: "x",
2306
- size: o === "sm" ? 12 : 14,
2307
- variant: "Linear"
2460
+ size: o === "sm" ? 12 : 14
2308
2461
  })
2309
2462
  })]
2310
2463
  });
2311
2464
  }
2312
2465
  //#endregion
2313
2466
  //#region src/components/AppChoiceCard.jsx
2314
- function Se({ 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, checkVariant: v, className: y = "" }) {
2467
+ function Se({ 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 = "" }) {
2315
2468
  return /* @__PURE__ */ n("label", {
2316
- className: `struct-card${d ? " struct-card-img-card" : ""}${o ? " checked" : ""}${y ? ` ${y}` : ""}`,
2469
+ className: `struct-card${d ? " struct-card-img-card" : ""}${o ? " checked" : ""}${v ? ` ${v}` : ""}`,
2317
2470
  children: [
2318
2471
  /* @__PURE__ */ t("input", {
2319
2472
  type: i ? "checkbox" : "radio",
@@ -2332,7 +2485,7 @@ function Se({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon
2332
2485
  })
2333
2486
  }) : l || c ? /* @__PURE__ */ t("span", {
2334
2487
  className: "struct-card-ic",
2335
- children: l || /* @__PURE__ */ t(A, {
2488
+ children: l || /* @__PURE__ */ t(x, {
2336
2489
  name: c,
2337
2490
  size: u
2338
2491
  })
@@ -2349,10 +2502,9 @@ function Se({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon
2349
2502
  }),
2350
2503
  /* @__PURE__ */ t("span", {
2351
2504
  className: "struct-card-check",
2352
- children: /* @__PURE__ */ t(A, {
2505
+ children: /* @__PURE__ */ t(x, {
2353
2506
  name: g,
2354
- size: _,
2355
- variant: v
2507
+ size: _
2356
2508
  })
2357
2509
  })
2358
2510
  ]
@@ -2360,23 +2512,112 @@ function Se({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon
2360
2512
  }
2361
2513
  //#endregion
2362
2514
  //#region src/components/AppChoiceChip.jsx
2363
- function Ce({ multiple: e = !0, label: r, name: i, value: a, checked: o, onChange: s, children: c, className: l = "" }) {
2515
+ function Ce({ multiple: e = !0, label: r, name: i, value: a, checked: o, onChange: s, children: c, count: l, className: u = "" }) {
2364
2516
  return /* @__PURE__ */ n("label", {
2365
- className: `choice-chip${o ? " checked" : ""}${l ? ` ${l}` : ""}`,
2366
- children: [/* @__PURE__ */ t("input", {
2367
- type: e ? "checkbox" : "radio",
2368
- name: i,
2369
- value: a,
2370
- checked: o,
2371
- onChange: s
2372
- }), /* @__PURE__ */ t("span", { children: r ?? c })]
2517
+ className: `choice-chip${o ? " checked" : ""}${u ? ` ${u}` : ""}`,
2518
+ children: [
2519
+ /* @__PURE__ */ t("input", {
2520
+ type: e ? "checkbox" : "radio",
2521
+ name: i,
2522
+ value: a,
2523
+ checked: o,
2524
+ onChange: s
2525
+ }),
2526
+ /* @__PURE__ */ t("span", { children: r ?? c }),
2527
+ l != null && /* @__PURE__ */ t("span", {
2528
+ className: "count",
2529
+ children: l
2530
+ })
2531
+ ]
2532
+ });
2533
+ }
2534
+ //#endregion
2535
+ //#region src/components/AppColorField.jsx
2536
+ function we({ value: e = "#000000", onChange: r, label: i, required: a = !1, error: o, hint: s, name: c, id: l, disabled: u = !1, className: d = "" }) {
2537
+ let f = l || c;
2538
+ return /* @__PURE__ */ n("div", {
2539
+ className: `field${d ? ` ${d}` : ""}`,
2540
+ children: [
2541
+ i && /* @__PURE__ */ n("label", {
2542
+ className: "label",
2543
+ htmlFor: f,
2544
+ children: [i, a && /* @__PURE__ */ t(K, {})]
2545
+ }),
2546
+ /* @__PURE__ */ n("div", {
2547
+ className: "color-field",
2548
+ children: [/* @__PURE__ */ t("input", {
2549
+ type: "color",
2550
+ className: "color-field-swatch",
2551
+ value: ((e) => /^#[0-9a-f]{6}$/i.test(e))(e) ? e : "#000000",
2552
+ onChange: (e) => r?.(e.target.value),
2553
+ disabled: u,
2554
+ "aria-label": `${i || "Colour"} — colour picker`,
2555
+ tabIndex: -1
2556
+ }), /* @__PURE__ */ t("input", {
2557
+ type: "text",
2558
+ className: `input color-field-hex${o ? " error" : ""}`,
2559
+ id: f,
2560
+ name: c,
2561
+ value: e,
2562
+ onChange: (e) => r?.(e.target.value),
2563
+ placeholder: "#4F46E5",
2564
+ spellCheck: !1,
2565
+ maxLength: 7,
2566
+ required: a,
2567
+ disabled: u,
2568
+ "aria-invalid": o ? "true" : "false"
2569
+ })]
2570
+ }),
2571
+ o ? /* @__PURE__ */ t("div", {
2572
+ className: "field-error",
2573
+ children: o
2574
+ }) : s ? /* @__PURE__ */ t("div", {
2575
+ className: "field-hint",
2576
+ children: s
2577
+ }) : null
2578
+ ]
2579
+ });
2580
+ }
2581
+ //#endregion
2582
+ //#region src/components/AppCompareTable.jsx
2583
+ function Te({ columns: e = [], rows: r = [], caption: i, className: a = "" }) {
2584
+ let o = (e) => e === !0 ? /* @__PURE__ */ t("span", {
2585
+ className: "compare-yes",
2586
+ children: /* @__PURE__ */ t(x, {
2587
+ name: "check",
2588
+ size: 16
2589
+ })
2590
+ }) : e === !1 ? /* @__PURE__ */ t("span", {
2591
+ className: "compare-no",
2592
+ children: "—"
2593
+ }) : e;
2594
+ return /* @__PURE__ */ t("div", {
2595
+ className: `compare-table${a ? ` ${a}` : ""}`,
2596
+ children: /* @__PURE__ */ n("table", { children: [
2597
+ i && /* @__PURE__ */ t("caption", {
2598
+ className: "visually-hidden",
2599
+ children: i
2600
+ }),
2601
+ /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t("tr", { children: e.map((e) => /* @__PURE__ */ t("th", {
2602
+ scope: "col",
2603
+ className: e.highlight ? "is-highlight" : void 0,
2604
+ children: e.label
2605
+ }, e.label)) }) }),
2606
+ /* @__PURE__ */ t("tbody", { children: r.map((r, i) => /* @__PURE__ */ n("tr", { children: [/* @__PURE__ */ t("th", {
2607
+ scope: "row",
2608
+ children: r.label
2609
+ }), r.values.map((n, r) => /* @__PURE__ */ t("td", {
2610
+ className: e[r + 1]?.highlight ? "is-highlight" : void 0,
2611
+ children: o(n)
2612
+ }, e[r + 1]?.label ?? r))] }, r.key ?? `${r.label}-${i}`)) })
2613
+ ] })
2373
2614
  });
2374
2615
  }
2375
2616
  //#endregion
2376
2617
  //#region src/components/AppInfoTip.jsx
2377
- function G({ label: e, children: r }) {
2378
- let [i, a] = u(!1), [o, d] = u(null), f = l(null), p = l(null), m = s();
2379
- return c(() => {
2618
+ function Y({ label: e, children: r }) {
2619
+ let [i, l] = c(!1), [u, d] = c(null), f = s(null), p = s(null), h = a();
2620
+ return o(() => {
2380
2621
  if (!i || !f.current || !p.current) return;
2381
2622
  let e = f.current.getBoundingClientRect(), t = p.current.offsetWidth, n = p.current.offsetHeight, r = e.left + e.width / 2 - t / 2;
2382
2623
  r = Math.max(8, Math.min(r, window.innerWidth - t - 8));
@@ -2387,33 +2628,32 @@ function G({ label: e, children: r }) {
2387
2628
  });
2388
2629
  }, [i]), r ? /* @__PURE__ */ n("span", {
2389
2630
  className: "infotip",
2390
- onMouseLeave: () => a(!1),
2631
+ onMouseLeave: () => l(!1),
2391
2632
  children: [/* @__PURE__ */ t("button", {
2392
2633
  type: "button",
2393
2634
  ref: f,
2394
2635
  className: "infotip-btn",
2395
2636
  "aria-label": e,
2396
2637
  "aria-expanded": i,
2397
- "aria-describedby": i ? m : void 0,
2398
- onMouseEnter: () => a(!0),
2399
- onClick: () => a((e) => !e),
2400
- onFocus: () => a(!0),
2401
- onBlur: () => a(!1),
2402
- children: /* @__PURE__ */ t(A, {
2638
+ "aria-describedby": i ? h : void 0,
2639
+ onMouseEnter: () => l(!0),
2640
+ onClick: () => l((e) => !e),
2641
+ onFocus: () => l(!0),
2642
+ onBlur: () => l(!1),
2643
+ children: /* @__PURE__ */ t(x, {
2403
2644
  name: "info",
2404
- size: 16,
2405
- variant: "Bulk"
2645
+ size: 16
2406
2646
  })
2407
- }), i && h(/* @__PURE__ */ t("span", {
2647
+ }), i && m(/* @__PURE__ */ t("span", {
2408
2648
  ref: p,
2409
2649
  className: "infotip-pop is-portal",
2410
2650
  role: "tooltip",
2411
- id: m,
2651
+ id: h,
2412
2652
  style: {
2413
2653
  position: "fixed",
2414
- top: o ? o.top : 0,
2415
- left: o ? o.left : 0,
2416
- visibility: o ? "visible" : "hidden"
2654
+ top: u ? u.top : 0,
2655
+ left: u ? u.left : 0,
2656
+ visibility: u ? "visible" : "hidden"
2417
2657
  },
2418
2658
  children: r
2419
2659
  }), document.body)]
@@ -2421,84 +2661,81 @@ function G({ label: e, children: r }) {
2421
2661
  }
2422
2662
  //#endregion
2423
2663
  //#region src/components/AppInput.jsx
2424
- var K = i(function({ label: e, required: r = !1, error: i, hint: a, help: o, helpLabel: s = "More information", type: c = "text", leftIcon: l, rightIcon: d, onRightIconClick: f, unit: p, id: h, name: g, className: _ = "", fieldClassName: v = "", disabled: y = !1, ...b }, x) {
2425
- let [S, C] = u(!1), w = h || g, T = c === "password", E = T && S ? "text" : c, D = [
2664
+ var X = 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 }, S) {
2665
+ let [C, w] = c(!1), T = h || g, E = l === "password", D = E && C ? "text" : l, O = [
2426
2666
  "input",
2427
2667
  i ? "error" : "",
2428
- T ? "pw" : "",
2429
- p ? "num-input" : "",
2668
+ E ? "pw" : "",
2669
+ m ? "num-input" : "",
2430
2670
  _
2431
- ].filter(Boolean).join(" "), O = /* @__PURE__ */ t(m.Control, {
2432
- id: w,
2671
+ ].filter(Boolean).join(" "), k = /* @__PURE__ */ t(p.Control, {
2672
+ id: T,
2433
2673
  name: g,
2434
- type: E,
2435
- className: D,
2674
+ type: D,
2675
+ className: O,
2436
2676
  disabled: y,
2437
2677
  required: r,
2438
2678
  "aria-invalid": i ? "true" : "false",
2439
- ref: x,
2679
+ ref: S,
2440
2680
  ...b
2441
- }), k;
2442
- return k = p ? /* @__PURE__ */ n("div", {
2681
+ }), A;
2682
+ return A = m ? /* @__PURE__ */ n("div", {
2443
2683
  className: "input-with-unit",
2444
- children: [O, /* @__PURE__ */ t("span", {
2684
+ children: [k, /* @__PURE__ */ t("span", {
2445
2685
  className: "unit",
2446
- children: p
2686
+ children: m
2447
2687
  })]
2448
- }) : T ? /* @__PURE__ */ n("div", {
2688
+ }) : E ? /* @__PURE__ */ n("div", {
2449
2689
  className: "input-wrap",
2450
- children: [O, /* @__PURE__ */ t("button", {
2690
+ children: [k, /* @__PURE__ */ t("button", {
2451
2691
  type: "button",
2452
2692
  className: "pw-toggle",
2453
- onClick: () => C((e) => !e),
2454
- "aria-label": S ? "Hide password" : "Show password",
2693
+ onClick: () => w((e) => !e),
2694
+ "aria-label": C ? "Hide password" : "Show password",
2455
2695
  tabIndex: -1,
2456
- children: /* @__PURE__ */ t(A, {
2457
- name: S ? "eye-off" : "eye",
2458
- size: 18,
2459
- variant: "Linear"
2696
+ children: /* @__PURE__ */ t(x, {
2697
+ name: C ? "eye-off" : "eye",
2698
+ size: 18
2460
2699
  })
2461
2700
  })]
2462
2701
  }) : d ? /* @__PURE__ */ n("div", {
2463
2702
  className: "input-wrap",
2464
- children: [O, /* @__PURE__ */ t("button", {
2703
+ children: [k, /* @__PURE__ */ t("button", {
2465
2704
  type: "button",
2466
2705
  className: "pw-toggle",
2467
2706
  onClick: f,
2468
2707
  disabled: !f,
2469
2708
  tabIndex: -1,
2470
- children: /* @__PURE__ */ t(A, {
2709
+ children: /* @__PURE__ */ t(x, {
2471
2710
  name: d,
2472
- size: 18,
2473
- variant: "Linear"
2711
+ size: 18
2474
2712
  })
2475
2713
  })]
2476
- }) : l ? /* @__PURE__ */ n("div", {
2714
+ }) : u ? /* @__PURE__ */ n("div", {
2477
2715
  className: "input-icon",
2478
2716
  children: [/* @__PURE__ */ t("span", {
2479
2717
  className: "ic",
2480
- children: /* @__PURE__ */ t(A, {
2481
- name: l,
2482
- size: 16,
2483
- variant: "Linear"
2718
+ children: /* @__PURE__ */ t(x, {
2719
+ name: u,
2720
+ size: 16
2484
2721
  })
2485
- }), O]
2486
- }) : O, /* @__PURE__ */ n(m.Group, {
2722
+ }), k]
2723
+ }) : k, /* @__PURE__ */ n(p.Group, {
2487
2724
  className: `field${v ? ` ${v}` : ""}`,
2488
2725
  children: [
2489
- e && /* @__PURE__ */ n(m.Label, {
2726
+ e && /* @__PURE__ */ n(p.Label, {
2490
2727
  className: "label",
2491
- htmlFor: w,
2728
+ htmlFor: T,
2492
2729
  children: [
2493
2730
  e,
2494
- o && /* @__PURE__ */ t(G, {
2731
+ o && /* @__PURE__ */ t(Y, {
2495
2732
  label: s,
2496
2733
  children: o
2497
2734
  }),
2498
- r && /* @__PURE__ */ t(U, {})
2735
+ r && /* @__PURE__ */ t(K, {})
2499
2736
  ]
2500
2737
  }),
2501
- k,
2738
+ A,
2502
2739
  i ? /* @__PURE__ */ t("div", {
2503
2740
  className: "field-error",
2504
2741
  children: i
@@ -2508,62 +2745,64 @@ var K = i(function({ label: e, required: r = !1, error: i, hint: a, help: o, hel
2508
2745
  }) : null
2509
2746
  ]
2510
2747
  });
2511
- }), we = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])";
2512
- function q({ open: e, title: r, subtitle: i, headerIcon: o, onClose: s, footer: c, wide: l = !1, side: u = !1, maxWidth: d, hideHeader: f = !1, className: p = "", children: m }) {
2513
- let h = a((e) => {
2748
+ }), Ee = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])";
2749
+ function Z({ 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: _ }) {
2750
+ let v = s(null);
2751
+ i(() => {
2514
2752
  if (!e) return;
2515
- let t = e.querySelector?.(".modal-content") || e;
2516
- d != null && t.style && (t.style.maxWidth = typeof d == "number" ? `${d}px` : String(d));
2517
- let n = () => Array.from(t.querySelectorAll?.(we) || []);
2518
- (t.querySelector?.("[data-autofocus]") || n().find((e) => !e.classList.contains("lx-modal-close")) || n()[0] || t)?.focus?.();
2519
- }, [d]), _ = ["lx-modal-shell", u ? "is-side" : ""].filter(Boolean).join(" "), v = [
2753
+ let t = v.current?.closest(".modal-content");
2754
+ if (!t) return;
2755
+ let n = () => Array.from(t.querySelectorAll(Ee));
2756
+ (t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("lx-modal-close")) || n()[0] || t).focus?.();
2757
+ }, [e]);
2758
+ let y = ["lx-modal-shell", f ? "is-side" : ""].filter(Boolean).join(" "), b = [
2520
2759
  "lx-modal",
2521
- l ? "lx-modal-wide" : "",
2522
- u ? "lx-modal-side" : "",
2523
- p
2760
+ d ? "lx-modal-wide" : "",
2761
+ f ? "lx-modal-side" : "",
2762
+ g
2524
2763
  ].filter(Boolean).join(" ");
2525
- return /* @__PURE__ */ n(g, {
2764
+ return /* @__PURE__ */ n(h, {
2526
2765
  show: e,
2527
- onHide: s,
2766
+ onHide: c,
2528
2767
  animation: !1,
2529
2768
  backdrop: !0,
2530
2769
  keyboard: !0,
2531
2770
  autoFocus: !1,
2532
2771
  enforceFocus: !0,
2533
2772
  restoreFocus: !0,
2534
- centered: !u,
2535
- className: _,
2773
+ size: u,
2774
+ centered: !f,
2775
+ className: y,
2776
+ style: p == null ? void 0 : { "--lx-modal-max-width": typeof p == "number" ? `${p}px` : p },
2536
2777
  dialogClassName: "lx-rb-dialog",
2537
- contentClassName: v,
2778
+ contentClassName: b,
2538
2779
  backdropClassName: "lx-modal-dim",
2539
- onEntered: h,
2540
2780
  "aria-label": typeof r == "string" ? r : void 0,
2541
2781
  children: [
2542
- !f && /* @__PURE__ */ n("div", {
2782
+ !m && /* @__PURE__ */ n("div", {
2543
2783
  className: "lx-modal-header",
2544
2784
  children: [/* @__PURE__ */ n("div", {
2545
2785
  className: "lx-modal-heading",
2546
2786
  children: [o && /* @__PURE__ */ t("span", {
2547
2787
  className: "lx-modal-headicon",
2548
- children: /* @__PURE__ */ t(A, {
2788
+ children: /* @__PURE__ */ t(x, {
2549
2789
  name: o,
2550
- size: 18,
2551
- variant: "Bulk"
2790
+ size: 18
2552
2791
  })
2553
2792
  }), /* @__PURE__ */ n("div", {
2554
2793
  className: "lx-modal-headtext",
2555
2794
  children: [/* @__PURE__ */ t("div", {
2556
2795
  className: "lx-modal-title",
2557
2796
  children: r
2558
- }), i && /* @__PURE__ */ t("div", {
2797
+ }), a && /* @__PURE__ */ t("div", {
2559
2798
  className: "lx-modal-subtitle",
2560
- children: i
2799
+ children: a
2561
2800
  })]
2562
2801
  })]
2563
2802
  }), /* @__PURE__ */ t("button", {
2564
2803
  type: "button",
2565
2804
  className: "lx-modal-close",
2566
- onClick: s,
2805
+ onClick: c,
2567
2806
  "aria-label": "Close",
2568
2807
  children: /* @__PURE__ */ t("svg", {
2569
2808
  width: "18",
@@ -2581,395 +2820,52 @@ function q({ open: e, title: r, subtitle: i, headerIcon: o, onClose: s, footer:
2581
2820
  }),
2582
2821
  /* @__PURE__ */ t("div", {
2583
2822
  className: "lx-modal-body",
2584
- children: m
2823
+ ref: v,
2824
+ children: _
2585
2825
  }),
2586
- c && /* @__PURE__ */ t("div", {
2826
+ l && /* @__PURE__ */ t("div", {
2587
2827
  className: "lx-modal-footer",
2588
- children: c
2828
+ children: l
2589
2829
  })
2590
2830
  ]
2591
2831
  });
2592
2832
  }
2593
2833
  //#endregion
2594
2834
  //#region src/components/ModalIcons.jsx
2595
- function Te({ size: e = 72 }) {
2596
- return /* @__PURE__ */ n("svg", {
2597
- width: e,
2598
- height: e,
2599
- viewBox: "0 0 174 174",
2600
- fill: "none",
2601
- xmlns: "http://www.w3.org/2000/svg",
2602
- "aria-hidden": "true",
2603
- children: [
2604
- /* @__PURE__ */ t("rect", {
2605
- width: "174",
2606
- height: "174",
2607
- rx: "87",
2608
- fill: "var(--wui-success-5)"
2609
- }),
2610
- /* @__PURE__ */ t("rect", {
2611
- x: "24",
2612
- y: "24",
2613
- width: "126",
2614
- height: "126",
2615
- rx: "63",
2616
- stroke: "var(--wui-success-20)",
2617
- strokeWidth: "16"
2618
- }),
2619
- /* @__PURE__ */ n("g", {
2620
- clipPath: "url(#ki_success_clip)",
2621
- children: [
2622
- /* @__PURE__ */ t("rect", {
2623
- x: "32",
2624
- y: "32",
2625
- width: "110",
2626
- height: "110",
2627
- rx: "55",
2628
- fill: "var(--wui-success-active)"
2629
- }),
2630
- /* @__PURE__ */ t("rect", {
2631
- x: "108.758",
2632
- y: "67.5986",
2633
- width: "75.5044",
2634
- height: "49.155",
2635
- transform: "rotate(45 108.758 67.5986)",
2636
- fill: "var(--wui-success)"
2637
- }),
2638
- /* @__PURE__ */ t("path", {
2639
- 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",
2640
- fill: "white"
2641
- }),
2642
- /* @__PURE__ */ t("path", {
2643
- 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",
2644
- fill: "white"
2645
- })
2646
- ]
2647
- }),
2648
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", {
2649
- id: "ki_success_clip",
2650
- children: /* @__PURE__ */ t("rect", {
2651
- x: "32",
2652
- y: "32",
2653
- width: "110",
2654
- height: "110",
2655
- rx: "55",
2656
- fill: "white"
2657
- })
2658
- }) })
2659
- ]
2835
+ var Q = (e) => function({ size: n = 72 }) {
2836
+ return /* @__PURE__ */ t("wui-status-icon", {
2837
+ tone: e,
2838
+ size: n
2660
2839
  });
2661
- }
2662
- function Ee({ size: e = 72 }) {
2663
- return /* @__PURE__ */ n("svg", {
2664
- width: e,
2665
- height: e,
2666
- viewBox: "0 0 174 174",
2667
- fill: "none",
2668
- xmlns: "http://www.w3.org/2000/svg",
2669
- "aria-hidden": "true",
2670
- children: [
2671
- /* @__PURE__ */ t("rect", {
2672
- width: "174",
2673
- height: "174",
2674
- rx: "87",
2675
- fill: "var(--wui-danger-5)"
2676
- }),
2677
- /* @__PURE__ */ t("rect", {
2678
- x: "24",
2679
- y: "24",
2680
- width: "126",
2681
- height: "126",
2682
- rx: "63",
2683
- stroke: "var(--wui-danger-20)",
2684
- strokeWidth: "16"
2685
- }),
2686
- /* @__PURE__ */ n("g", {
2687
- clipPath: "url(#ki_error_clip0)",
2688
- children: [
2689
- /* @__PURE__ */ t("rect", {
2690
- x: "32",
2691
- y: "32",
2692
- width: "110",
2693
- height: "110",
2694
- rx: "55",
2695
- fill: "var(--wui-danger)"
2696
- }),
2697
- /* @__PURE__ */ t("rect", {
2698
- x: "110.758",
2699
- y: "62",
2700
- width: "75.5044",
2701
- height: "69.9535",
2702
- transform: "rotate(45 110.758 62)",
2703
- fill: "var(--wui-danger-active)"
2704
- }),
2705
- /* @__PURE__ */ t("g", {
2706
- clipPath: "url(#ki_error_clip1)",
2707
- children: /* @__PURE__ */ t("path", {
2708
- 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",
2709
- fill: "white"
2710
- })
2711
- })
2712
- ]
2713
- }),
2714
- /* @__PURE__ */ n("defs", { children: [/* @__PURE__ */ t("clipPath", {
2715
- id: "ki_error_clip0",
2716
- children: /* @__PURE__ */ t("rect", {
2717
- x: "32",
2718
- y: "32",
2719
- width: "110",
2720
- height: "110",
2721
- rx: "55",
2722
- fill: "white"
2723
- })
2724
- }), /* @__PURE__ */ t("clipPath", {
2725
- id: "ki_error_clip1",
2726
- children: /* @__PURE__ */ t("rect", {
2727
- width: "55",
2728
- height: "55",
2729
- fill: "white",
2730
- transform: "translate(59.3535 59.502)"
2731
- })
2732
- })] })
2733
- ]
2734
- });
2735
- }
2736
- function De({ size: e = 72 }) {
2737
- return /* @__PURE__ */ n("svg", {
2738
- width: e,
2739
- height: e,
2740
- viewBox: "0 0 174 174",
2741
- fill: "none",
2742
- xmlns: "http://www.w3.org/2000/svg",
2743
- "aria-hidden": "true",
2744
- children: [
2745
- /* @__PURE__ */ t("rect", {
2746
- width: "174",
2747
- height: "174",
2748
- rx: "87",
2749
- fill: "var(--wui-warning-5)"
2750
- }),
2751
- /* @__PURE__ */ t("rect", {
2752
- x: "24",
2753
- y: "24",
2754
- width: "126",
2755
- height: "126",
2756
- rx: "63",
2757
- stroke: "var(--wui-warning-20)",
2758
- strokeWidth: "16"
2759
- }),
2760
- /* @__PURE__ */ n("g", {
2761
- clipPath: "url(#ki_warning_clip)",
2762
- children: [
2763
- /* @__PURE__ */ t("rect", {
2764
- x: "32",
2765
- y: "32",
2766
- width: "110",
2767
- height: "110",
2768
- rx: "55",
2769
- fill: "var(--wui-warning)"
2770
- }),
2771
- /* @__PURE__ */ t("path", {
2772
- d: "M93.7812 60.9731L156.173 123.365L113.082 166.456L60 113.5L97 109L93.7812 60.9731Z",
2773
- fill: "var(--wui-warning-active)"
2774
- }),
2775
- /* @__PURE__ */ t("path", {
2776
- 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",
2777
- fill: "white"
2778
- })
2779
- ]
2780
- }),
2781
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", {
2782
- id: "ki_warning_clip",
2783
- children: /* @__PURE__ */ t("rect", {
2784
- x: "32",
2785
- y: "32",
2786
- width: "110",
2787
- height: "110",
2788
- rx: "55",
2789
- fill: "white"
2790
- })
2791
- }) })
2792
- ]
2793
- });
2794
- }
2795
- function Oe({ size: e = 72 }) {
2796
- return /* @__PURE__ */ n("svg", {
2797
- width: e,
2798
- height: e,
2799
- viewBox: "0 0 174 174",
2800
- fill: "none",
2801
- xmlns: "http://www.w3.org/2000/svg",
2802
- "aria-hidden": "true",
2803
- children: [
2804
- /* @__PURE__ */ t("rect", {
2805
- width: "174",
2806
- height: "174",
2807
- rx: "87",
2808
- fill: "var(--wui-info-5)"
2809
- }),
2810
- /* @__PURE__ */ t("rect", {
2811
- x: "24",
2812
- y: "24",
2813
- width: "126",
2814
- height: "126",
2815
- rx: "63",
2816
- stroke: "var(--wui-info-20)",
2817
- strokeWidth: "16"
2818
- }),
2819
- /* @__PURE__ */ n("g", {
2820
- clipPath: "url(#ki_info_clip)",
2821
- children: [
2822
- /* @__PURE__ */ t("rect", {
2823
- x: "32",
2824
- y: "32",
2825
- width: "110",
2826
- height: "110",
2827
- rx: "55",
2828
- fill: "var(--wui-info)"
2829
- }),
2830
- /* @__PURE__ */ t("path", {
2831
- d: "M104.999 67.5L111.454 64L163.495 116.041L115.739 163.797L62.999 111L101.897 104.102L104.999 67.5Z",
2832
- fill: "var(--wui-info-active)"
2833
- }),
2834
- /* @__PURE__ */ t("path", {
2835
- 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",
2836
- fill: "white"
2837
- }),
2838
- /* @__PURE__ */ t("path", {
2839
- 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",
2840
- fill: "var(--wui-info-active)"
2841
- }),
2842
- /* @__PURE__ */ t("path", {
2843
- 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",
2844
- fill: "var(--wui-info-active)"
2845
- }),
2846
- /* @__PURE__ */ t("path", {
2847
- 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",
2848
- fill: "var(--wui-info-active)"
2849
- })
2850
- ]
2851
- }),
2852
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", {
2853
- id: "ki_info_clip",
2854
- children: /* @__PURE__ */ t("rect", {
2855
- x: "32",
2856
- y: "32",
2857
- width: "110",
2858
- height: "110",
2859
- rx: "55",
2860
- fill: "white"
2861
- })
2862
- }) })
2863
- ]
2864
- });
2865
- }
2866
- function ke({ size: e = 72 }) {
2867
- return /* @__PURE__ */ n("svg", {
2868
- width: e,
2869
- height: e,
2870
- viewBox: "0 0 174 174",
2871
- fill: "none",
2872
- xmlns: "http://www.w3.org/2000/svg",
2873
- "aria-hidden": "true",
2874
- children: [
2875
- /* @__PURE__ */ t("rect", {
2876
- width: "174",
2877
- height: "174",
2878
- rx: "87",
2879
- fill: "var(--wui-danger-5)"
2880
- }),
2881
- /* @__PURE__ */ t("rect", {
2882
- x: "24",
2883
- y: "24",
2884
- width: "126",
2885
- height: "126",
2886
- rx: "63",
2887
- stroke: "var(--wui-danger-20)",
2888
- strokeWidth: "16"
2889
- }),
2890
- /* @__PURE__ */ n("g", {
2891
- clipPath: "url(#ki_delete_clip0)",
2892
- children: [
2893
- /* @__PURE__ */ t("rect", {
2894
- x: "32",
2895
- y: "32",
2896
- width: "110",
2897
- height: "110",
2898
- rx: "55",
2899
- fill: "var(--wui-danger)"
2900
- }),
2901
- /* @__PURE__ */ t("path", {
2902
- 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",
2903
- fill: "var(--wui-danger-active)"
2904
- }),
2905
- /* @__PURE__ */ t("path", {
2906
- d: "M103.5 79L100.5 105.5L76 113L69.5 83.5L103.5 79Z",
2907
- fill: "var(--wui-danger)"
2908
- }),
2909
- /* @__PURE__ */ n("g", {
2910
- clipPath: "url(#ki_delete_clip1)",
2911
- children: [/* @__PURE__ */ t("path", {
2912
- 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",
2913
- fill: "white"
2914
- }), /* @__PURE__ */ t("path", {
2915
- 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",
2916
- fill: "white"
2917
- })]
2918
- })
2919
- ]
2920
- }),
2921
- /* @__PURE__ */ n("defs", { children: [/* @__PURE__ */ t("clipPath", {
2922
- id: "ki_delete_clip0",
2923
- children: /* @__PURE__ */ t("rect", {
2924
- x: "32",
2925
- y: "32",
2926
- width: "110",
2927
- height: "110",
2928
- rx: "55",
2929
- fill: "white"
2930
- })
2931
- }), /* @__PURE__ */ t("clipPath", {
2932
- id: "ki_delete_clip1",
2933
- children: /* @__PURE__ */ t("rect", {
2934
- width: "65",
2935
- height: "65",
2936
- fill: "white",
2937
- transform: "translate(54.3535 54.502)"
2938
- })
2939
- })] })
2940
- ]
2941
- });
2942
- }
2943
- var J = {
2944
- success: Te,
2945
- error: Ee,
2946
- warning: De,
2947
- info: Oe,
2948
- delete: ke
2840
+ }, De = {
2841
+ success: Q("success"),
2842
+ error: Q("error"),
2843
+ warning: Q("warning"),
2844
+ info: Q("info"),
2845
+ delete: Q("delete")
2949
2846
  };
2950
2847
  //#endregion
2951
2848
  //#region src/components/AppConfirmDialog.jsx
2952
- function Ae({ open: r, title: i, message: a, confirmLabel: s = "Confirm", cancelLabel: c = "Cancel", danger: l = !1, tone: d, confirmPhrase: f, onConfirm: p, onClose: m }) {
2953
- let [h, g] = u("");
2954
- if (o(() => {
2849
+ function Oe({ open: r, title: a, message: o, confirmLabel: s = "Confirm", cancelLabel: l = "Cancel", danger: u = !1, tone: d, confirmPhrase: f, onConfirm: p, onClose: m }) {
2850
+ let [h, g] = c("");
2851
+ if (i(() => {
2955
2852
  r || g("");
2956
2853
  }, [r]), !r) return null;
2957
- let _ = !!f && h.trim() !== f, v = J[d || (l ? "delete" : "info")];
2958
- return /* @__PURE__ */ t(q, {
2854
+ let _ = !!f && h.trim() !== f, v = De[d || (u ? "delete" : "info")];
2855
+ return /* @__PURE__ */ t(Z, {
2959
2856
  open: r,
2960
2857
  hideHeader: !0,
2961
- title: i,
2962
- maxWidth: 440,
2858
+ title: a,
2963
2859
  onClose: m,
2964
2860
  className: "lx-confirm",
2965
2861
  footer: /* @__PURE__ */ n("div", {
2966
2862
  className: "lx-confirm-actions",
2967
- children: [/* @__PURE__ */ t(W, {
2863
+ children: [/* @__PURE__ */ t(J, {
2968
2864
  variant: "secondary",
2969
2865
  onClick: m,
2970
- children: c
2971
- }), /* @__PURE__ */ t(W, {
2972
- variant: l ? "danger" : "primary",
2866
+ children: l
2867
+ }), /* @__PURE__ */ t(J, {
2868
+ variant: u ? "danger" : "primary",
2973
2869
  disabled: _,
2974
2870
  onClick: p,
2975
2871
  children: s
@@ -2984,13 +2880,13 @@ function Ae({ open: r, title: i, message: a, confirmLabel: s = "Confirm", cancel
2984
2880
  }),
2985
2881
  /* @__PURE__ */ t("h3", {
2986
2882
  className: "lx-confirm-title",
2987
- children: i
2883
+ children: a
2988
2884
  }),
2989
- a && /* @__PURE__ */ t("p", {
2885
+ o && /* @__PURE__ */ t("p", {
2990
2886
  className: "lx-confirm-msg",
2991
- children: a
2887
+ children: o
2992
2888
  }),
2993
- f && /* @__PURE__ */ t(K, {
2889
+ f && /* @__PURE__ */ t(X, {
2994
2890
  fieldClassName: "mt-3 mb-0 w-100 text-start",
2995
2891
  label: /* @__PURE__ */ n(e, { children: [
2996
2892
  "Type ",
@@ -3007,7 +2903,7 @@ function Ae({ open: r, title: i, message: a, confirmLabel: s = "Confirm", cancel
3007
2903
  }
3008
2904
  //#endregion
3009
2905
  //#region src/components/AppSkeleton.jsx
3010
- function Y({ width: e = "100%", height: n = 14, radius: r = 6, className: i = "", style: a }) {
2906
+ function ke({ width: e = "100%", height: n = 14, radius: r = 6, className: i = "", style: a }) {
3011
2907
  return /* @__PURE__ */ t("span", {
3012
2908
  className: `skeleton${i ? ` ${i}` : ""}`,
3013
2909
  "aria-hidden": "true",
@@ -3019,7 +2915,7 @@ function Y({ width: e = "100%", height: n = 14, radius: r = 6, className: i = ""
3019
2915
  }
3020
2916
  });
3021
2917
  }
3022
- var je = [
2918
+ var Ae = [
3023
2919
  "r0",
3024
2920
  "r1",
3025
2921
  "r2",
@@ -3028,7 +2924,7 @@ var je = [
3028
2924
  "r5",
3029
2925
  "r6",
3030
2926
  "r7"
3031
- ], Me = [
2927
+ ], je = [
3032
2928
  "c0",
3033
2929
  "c1",
3034
2930
  "c2",
@@ -3038,54 +2934,54 @@ var je = [
3038
2934
  "c6",
3039
2935
  "c7"
3040
2936
  ];
3041
- function X({ rows: e = 4, cols: n = 5 }) {
3042
- return je.slice(0, e).map((e) => /* @__PURE__ */ t("tr", { children: Me.slice(0, n).map((e, n) => /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t(Y, {
2937
+ function Me({ rows: e = 4, cols: n = 5 }) {
2938
+ return Ae.slice(0, e).map((e) => /* @__PURE__ */ t("tr", { children: je.slice(0, n).map((e, n) => /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t(ke, {
3043
2939
  width: n === 0 ? "70%" : "50%",
3044
2940
  height: 12
3045
2941
  }) }, e)) }, e));
3046
2942
  }
3047
2943
  //#endregion
3048
2944
  //#region src/components/AppSelectMini.jsx
3049
- function Z({ value: e, onChange: n, options: r = [], placeholder: i = "Select...", name: a, ariaLabel: s, id: c, disabled: u }) {
3050
- let d = l(null);
3051
- return o(() => {
2945
+ function Ne({ value: e, onChange: n, options: r = [], placeholder: a = "Select...", name: o, ariaLabel: c, id: l, disabled: u }) {
2946
+ let d = s(null);
2947
+ return i(() => {
3052
2948
  d.current && (d.current.options = r.map((e) => ({
3053
2949
  value: e.value,
3054
2950
  label: e.label ?? e.text ?? ""
3055
2951
  })));
3056
- }, [r]), o(() => {
2952
+ }, [r]), i(() => {
3057
2953
  let t = d.current;
3058
2954
  t && String(t.value ?? "") !== String(e ?? "") && (t.value = e ?? "");
3059
- }, [e]), o(() => {
2955
+ }, [e]), i(() => {
3060
2956
  let e = d.current;
3061
2957
  if (!e) return;
3062
2958
  let t = () => n?.(e.value);
3063
2959
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
3064
2960
  }, [n]), /* @__PURE__ */ t("wui-select", {
3065
2961
  ref: d,
3066
- name: a,
2962
+ name: o,
3067
2963
  compact: "",
3068
- id: c,
3069
- placeholder: i,
3070
- "aria-label": s,
2964
+ id: l,
2965
+ placeholder: a,
2966
+ "aria-label": c,
3071
2967
  disabled: u ? "" : void 0
3072
2968
  });
3073
2969
  }
3074
2970
  //#endregion
3075
2971
  //#region src/components/AppTablePagination.jsx
3076
- var Ne = [
2972
+ var Pe = [
3077
2973
  5,
3078
2974
  10,
3079
2975
  25,
3080
2976
  50
3081
2977
  ];
3082
- function Pe({ page: e, pageCount: r, pageSize: i, total: a, firstRow: o, lastRow: s, onPageChange: c, onPageSizeChange: l, pageSizes: u = Ne }) {
2978
+ function Fe({ page: e, totalPages: r, pageSize: i, total: a, firstRow: o, lastRow: s, onPageChange: c, onPageSizeChange: l, pageSizes: u = Pe }) {
3083
2979
  return /* @__PURE__ */ n("div", {
3084
2980
  className: "table-pagination",
3085
2981
  children: [
3086
2982
  /* @__PURE__ */ n("span", {
3087
2983
  className: "tpg-rows",
3088
- children: ["Rows per page:", /* @__PURE__ */ t(Z, {
2984
+ children: ["Rows per page:", /* @__PURE__ */ t(Ne, {
3089
2985
  compact: !0,
3090
2986
  value: i,
3091
2987
  onChange: (e) => l(Number(e)),
@@ -3111,24 +3007,22 @@ function Pe({ page: e, pageCount: r, pageSize: i, total: a, firstRow: o, lastRow
3111
3007
  children: [/* @__PURE__ */ t("button", {
3112
3008
  type: "button",
3113
3009
  className: "tpg-arrow",
3114
- onClick: () => c(Math.max(0, e - 1)),
3115
- disabled: e === 0,
3010
+ onClick: () => c(Math.max(1, e - 1)),
3011
+ disabled: e <= 1,
3116
3012
  "aria-label": "Previous page",
3117
- children: /* @__PURE__ */ t(A, {
3013
+ children: /* @__PURE__ */ t(x, {
3118
3014
  name: "arrow-left",
3119
- size: 18,
3120
- variant: "Linear"
3015
+ size: 18
3121
3016
  })
3122
3017
  }), /* @__PURE__ */ t("button", {
3123
3018
  type: "button",
3124
3019
  className: "tpg-arrow",
3125
- onClick: () => c(Math.min(r - 1, e + 1)),
3126
- disabled: e >= r - 1,
3020
+ onClick: () => c(Math.min(r, e + 1)),
3021
+ disabled: e >= r,
3127
3022
  "aria-label": "Next page",
3128
- children: /* @__PURE__ */ t(A, {
3023
+ children: /* @__PURE__ */ t(x, {
3129
3024
  name: "arrow-right",
3130
- size: 18,
3131
- variant: "Linear"
3025
+ size: 18
3132
3026
  })
3133
3027
  })]
3134
3028
  })
@@ -3137,16 +3031,16 @@ function Pe({ page: e, pageCount: r, pageSize: i, total: a, firstRow: o, lastRow
3137
3031
  }
3138
3032
  //#endregion
3139
3033
  //#region src/components/AppDataTable.jsx
3140
- function Fe(e) {
3141
- return e === "end" ? "lx-cell-end" : e === "num" ? "ledger-num" : e === "center" ? "text-center" : "";
3142
- }
3143
3034
  function Ie(e) {
3035
+ return e === "end" ? "lx-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
3036
+ }
3037
+ function Le(e) {
3144
3038
  return e == null || e === "" ? "—" : e;
3145
3039
  }
3146
- function Le({ 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 }) {
3147
- let S = Math.max(1, r.length + +!!p + +!!v), C = v && i ? i.reduce((e, t) => e + +!!y?.has(a(t)), 0) : 0, w = v && i && i.length > 0 && C === i.length, T = C > 0 && !w, E = (e) => {
3148
- e && (e.indeterminate = T);
3149
- }, D = d !== void 0 && f > 0 ? d : u;
3040
+ function Re({ 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: S }) {
3041
+ let C = Math.max(1, r.length + +!!p + +!!v), w = v && i ? i.reduce((e, t) => e + +!!y?.has(a(t)), 0) : 0, T = v && i && i.length > 0 && w === i.length, E = w > 0 && !T, D = (e) => {
3042
+ e && (e.indeterminate = E);
3043
+ }, O = d !== void 0 && f > 0 ? d : u;
3150
3044
  return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
3151
3045
  className: "table-wrap",
3152
3046
  children: /* @__PURE__ */ n("table", {
@@ -3156,20 +3050,19 @@ function Le({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
3156
3050
  v && /* @__PURE__ */ t("th", {
3157
3051
  className: "lx-select-cell",
3158
3052
  children: /* @__PURE__ */ t("input", {
3159
- ref: E,
3053
+ ref: D,
3160
3054
  type: "checkbox",
3161
3055
  className: "lx-check",
3162
- checked: w,
3163
- onChange: (e) => x?.(e.target.checked),
3056
+ checked: T,
3057
+ onChange: (e) => S?.(e.target.checked),
3164
3058
  "aria-label": "Select all rows"
3165
3059
  })
3166
3060
  }),
3167
3061
  r.map((e) => {
3168
3062
  let r = !!(e.sortable && s), i = o && o.key === e.key;
3169
3063
  return /* @__PURE__ */ n("th", {
3170
- className: (r ? "th-sort " : "") + Fe(e.align),
3064
+ className: (r ? "sortable " : "") + Ie(e.align),
3171
3065
  style: e.width ? { width: e.width } : void 0,
3172
- role: r ? "button" : void 0,
3173
3066
  tabIndex: r ? 0 : void 0,
3174
3067
  "aria-sort": i ? o.dir === "asc" ? "ascending" : "descending" : r ? "none" : void 0,
3175
3068
  onClick: r ? () => s(e.key) : void 0,
@@ -3177,11 +3070,10 @@ function Le({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
3177
3070
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), s(e.key));
3178
3071
  } : void 0,
3179
3072
  children: [e.label, r && /* @__PURE__ */ t("span", {
3180
- className: `sort-ind${i ? "" : " idle"}`,
3181
- children: /* @__PURE__ */ t(A, {
3073
+ className: "sort-icon",
3074
+ children: /* @__PURE__ */ t(x, {
3182
3075
  name: "chevrons-up-down",
3183
- size: 14,
3184
- variant: "Linear"
3076
+ size: 14
3185
3077
  })
3186
3078
  })]
3187
3079
  }, e.key);
@@ -3196,9 +3088,9 @@ function Le({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
3196
3088
  children: "Actions"
3197
3089
  })
3198
3090
  }))
3199
- ] }) }), /* @__PURE__ */ t("tbody", { children: c ? /* @__PURE__ */ t(X, {
3091
+ ] }) }), /* @__PURE__ */ t("tbody", { children: c ? /* @__PURE__ */ t(Me, {
3200
3092
  rows: l,
3201
- cols: S
3093
+ cols: C
3202
3094
  }) : i?.length ? i.map((e) => {
3203
3095
  let i = a(e);
3204
3096
  return /* @__PURE__ */ n("tr", {
@@ -3215,8 +3107,8 @@ function Le({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
3215
3107
  })
3216
3108
  }),
3217
3109
  r.map((n) => /* @__PURE__ */ t("td", {
3218
- className: Fe(n.align) + (n.cellClassName ? ` ${n.cellClassName}` : ""),
3219
- children: n.render ? n.render(e) : Ie(e[n.key])
3110
+ className: Ie(n.align) + (n.cellClassName ? ` ${n.cellClassName}` : ""),
3111
+ children: n.render ? n.render(e) : Le(e[n.key])
3220
3112
  }, n.key)),
3221
3113
  p && /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t("div", {
3222
3114
  className: "u-row-actions",
@@ -3225,14 +3117,14 @@ function Le({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
3225
3117
  ]
3226
3118
  }, i);
3227
3119
  }) : /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
3228
- colSpan: S,
3120
+ colSpan: C,
3229
3121
  className: "lx-table-empty",
3230
- children: D
3122
+ children: O
3231
3123
  }) }) })]
3232
3124
  })
3233
- }), h && !c && h.total > 0 && /* @__PURE__ */ t(Pe, {
3125
+ }), h && !c && h.total > 0 && /* @__PURE__ */ t(Fe, {
3234
3126
  page: h.page,
3235
- pageCount: h.pageCount,
3127
+ totalPages: h.totalPages,
3236
3128
  pageSize: h.pageSize,
3237
3129
  total: h.total,
3238
3130
  firstRow: h.firstRow,
@@ -3243,12 +3135,12 @@ function Le({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
3243
3135
  }
3244
3136
  //#endregion
3245
3137
  //#region src/components/AppDatePicker.jsx
3246
- function Re({ value: e, onChange: r, label: i, required: a = !1, hint: c, error: u, name: d, min: f, max: p, placeholder: m = "Enter Date", disabled: h, id: g, ariaLabel: _, className: v = "" }) {
3247
- let y = l(null), b = s(), x = g || d || b;
3248
- o(() => {
3138
+ function ze({ 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 = "" }) {
3139
+ let y = s(null), b = a(), x = g || d || b;
3140
+ i(() => {
3249
3141
  let t = y.current;
3250
3142
  t && t.value !== (e ?? "") && (t.value = e ?? "");
3251
- }, [e]), o(() => {
3143
+ }, [e]), i(() => {
3252
3144
  let e = y.current;
3253
3145
  if (!e) return;
3254
3146
  let t = () => r?.(e.value);
@@ -3265,13 +3157,13 @@ function Re({ value: e, onChange: r, label: i, required: a = !1, hint: c, error:
3265
3157
  "aria-invalid": u ? "true" : void 0,
3266
3158
  disabled: h ? "" : void 0
3267
3159
  });
3268
- return !i && !u && !c ? S : /* @__PURE__ */ n("div", {
3160
+ return !o && !u && !l ? S : /* @__PURE__ */ n("div", {
3269
3161
  className: `field${v ? ` ${v}` : ""}`,
3270
3162
  children: [
3271
- i && /* @__PURE__ */ n("label", {
3163
+ o && /* @__PURE__ */ n("label", {
3272
3164
  className: "label",
3273
3165
  htmlFor: x,
3274
- children: [i, a && /* @__PURE__ */ t("span", {
3166
+ children: [o, c && /* @__PURE__ */ t("span", {
3275
3167
  className: "required",
3276
3168
  "aria-hidden": "true",
3277
3169
  children: "*"
@@ -3282,16 +3174,16 @@ function Re({ value: e, onChange: r, label: i, required: a = !1, hint: c, error:
3282
3174
  className: "field-error",
3283
3175
  children: u
3284
3176
  }),
3285
- !u && c && /* @__PURE__ */ t("div", {
3177
+ !u && l && /* @__PURE__ */ t("div", {
3286
3178
  className: "field-hint",
3287
- children: c
3179
+ children: l
3288
3180
  })
3289
3181
  ]
3290
3182
  });
3291
3183
  }
3292
3184
  //#endregion
3293
3185
  //#region src/components/AppDropdown.jsx
3294
- var ze = i(function({ icon: e, iconSize: n = 20, btnClassName: r = "topbar-icon-btn", label: i, align: a = "end", "aria-label": o, className: s, ...c }, l) {
3186
+ var Be = r(function({ icon: e, iconSize: n = 20, btnClassName: r = "topbar-icon-btn", label: i, align: a = "end", "aria-label": o, className: s, ...c }, l) {
3295
3187
  return /* @__PURE__ */ t("button", {
3296
3188
  ref: l,
3297
3189
  type: "button",
@@ -3299,24 +3191,23 @@ var ze = i(function({ icon: e, iconSize: n = 20, btnClassName: r = "topbar-icon-
3299
3191
  title: i,
3300
3192
  "aria-label": o,
3301
3193
  ...c,
3302
- children: /* @__PURE__ */ t(A, {
3194
+ children: /* @__PURE__ */ t(x, {
3303
3195
  name: e,
3304
- size: n,
3305
- variant: "Bulk"
3196
+ size: n
3306
3197
  })
3307
3198
  });
3308
3199
  });
3309
- function Be({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", label: a, ariaLabel: o, align: s = "end", items: c = [], menuClassName: l = "", linkComponent: u }) {
3310
- return /* @__PURE__ */ n(_, {
3200
+ function Ve({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", label: a, ariaLabel: o, align: s = "end", items: c = [], menuClassName: l = "", linkComponent: u }) {
3201
+ return /* @__PURE__ */ n(g, {
3311
3202
  align: s,
3312
- children: [/* @__PURE__ */ t(_.Toggle, {
3313
- as: ze,
3203
+ children: [/* @__PURE__ */ t(g.Toggle, {
3204
+ as: Be,
3314
3205
  icon: e,
3315
3206
  iconSize: r,
3316
3207
  btnClassName: i,
3317
3208
  title: a,
3318
3209
  "aria-label": o
3319
- }), /* @__PURE__ */ t(_.Menu, {
3210
+ }), /* @__PURE__ */ t(g.Menu, {
3320
3211
  className: l,
3321
3212
  renderOnMount: !0,
3322
3213
  children: c.map((e) => {
@@ -3330,15 +3221,14 @@ function Be({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", labe
3330
3221
  as: "button",
3331
3222
  type: "button"
3332
3223
  };
3333
- return /* @__PURE__ */ n(_.Item, {
3224
+ return /* @__PURE__ */ n(g.Item, {
3334
3225
  ...r,
3335
3226
  onClick: e.onClick,
3336
3227
  className: e.danger ? "danger" : void 0,
3337
- children: [e.icon && /* @__PURE__ */ t(A, {
3228
+ children: [e.icon && /* @__PURE__ */ t(x, {
3338
3229
  name: e.icon,
3339
3230
  size: 14,
3340
- color: e.danger ? "var(--wui-danger)" : "var(--wui-primary)",
3341
- variant: "Linear"
3231
+ color: e.danger ? "var(--wui-danger)" : "var(--wui-primary)"
3342
3232
  }), e.label]
3343
3233
  }, e.key);
3344
3234
  })
@@ -3347,133 +3237,110 @@ function Be({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", labe
3347
3237
  }
3348
3238
  //#endregion
3349
3239
  //#region src/components/AppEmptyState.jsx
3350
- function Ve({ icon: e, iconSize: r = 24, iconVariant: i, size: a = "md", title: o, text: s, action: c, className: l = "", style: u }) {
3240
+ function He({ icon: e, iconSize: r = 24, size: i = "md", title: a, text: o, action: s, className: c = "", style: l }) {
3351
3241
  return /* @__PURE__ */ n("div", {
3352
3242
  className: [
3353
3243
  "empty-state",
3354
- a === "sm" ? "empty-state-sm" : "",
3355
- l
3244
+ i === "sm" ? "empty-state-sm" : "",
3245
+ c
3356
3246
  ].filter(Boolean).join(" "),
3357
- style: u,
3247
+ style: l,
3358
3248
  children: [
3359
3249
  /* @__PURE__ */ t("div", {
3360
3250
  className: "empty-state-icon",
3361
- children: /* @__PURE__ */ t(A, {
3251
+ children: /* @__PURE__ */ t(x, {
3362
3252
  name: e,
3363
- size: r,
3364
- variant: i
3253
+ size: r
3365
3254
  })
3366
3255
  }),
3367
- o != null && /* @__PURE__ */ t("div", {
3256
+ a != null && /* @__PURE__ */ t("div", {
3368
3257
  className: "empty-state-title",
3369
- children: o
3258
+ children: a
3370
3259
  }),
3371
- s != null && /* @__PURE__ */ t("div", {
3260
+ o != null && /* @__PURE__ */ t("div", {
3372
3261
  className: "empty-state-message",
3373
- children: s
3262
+ children: o
3374
3263
  }),
3375
- c && /* @__PURE__ */ t("div", {
3264
+ s && /* @__PURE__ */ t("div", {
3376
3265
  className: "empty-state-action",
3377
- children: c
3266
+ children: s
3378
3267
  })
3379
3268
  ]
3380
3269
  });
3381
3270
  }
3382
3271
  //#endregion
3383
- //#region src/components/icons.jsx
3384
- function Q(e) {
3385
- function n({ size: n = 24, color: r = "currentColor", variant: i = "Bulk", ...a }) {
3386
- return /* @__PURE__ */ t(e, {
3387
- size: n,
3388
- color: r,
3389
- variant: i,
3390
- ...a
3391
- });
3392
- }
3393
- return n.displayName = `Bulk(${e.displayName || "Icon"})`, n;
3394
- }
3395
- Q(T), Q(C), Q(b), Q(w), Q(S), Q(E), Q(y), Q(x);
3396
- function He({ size: e = 16, color: n = "currentColor", ...r }) {
3397
- return /* @__PURE__ */ t(v, {
3398
- size: e,
3399
- color: n,
3400
- variant: "Linear",
3401
- style: { transform: "rotate(45deg)" },
3402
- ...r
3403
- });
3404
- }
3405
- //#endregion
3406
3272
  //#region src/components/AppFileAttachment.jsx
3407
- var Ue = "image/png,image/jpeg,image/webp";
3408
- function We({ label: r = "Attachment", value: i, onChange: a, accept: c = Ue, maxSizeMb: l = 5, optional: d = !1, error: f, id: p }) {
3409
- let m = s(), h = p || m, [g, _] = u(null), [v, y] = u("");
3410
- o(() => {
3411
- if (i instanceof File) {
3412
- let e = URL.createObjectURL(i);
3413
- return _(e), () => URL.revokeObjectURL(e);
3273
+ function Ue({ label: r = "Attachment", value: o, name: s, onChange: l, accept: u = H, maxSizeMb: d = 5, optional: f = !1, error: p, id: m }) {
3274
+ let h = a(), g = m || s || h, [_, v] = c(null), [y, b] = c("");
3275
+ i(() => {
3276
+ if (o instanceof File) {
3277
+ let e = URL.createObjectURL(o);
3278
+ return v(e), () => URL.revokeObjectURL(e);
3414
3279
  }
3415
- _(i?.url || null);
3416
- }, [i]);
3417
- function b(e) {
3280
+ v(o?.url || null);
3281
+ }, [o]);
3282
+ function S(e) {
3418
3283
  let t = e.target.files?.[0];
3419
- if (e.target.value = "", t) {
3420
- if (!c.split(",").map((e) => e.trim()).includes(t.type)) {
3421
- y("Attach a PNG, JPG or WEBP image.");
3422
- return;
3423
- }
3424
- if (t.size > l * 1024 * 1024) {
3425
- y(`Keep the image under ${l} MB.`);
3426
- return;
3427
- }
3428
- y(""), a(t);
3284
+ if (e.target.value = "", !t) return;
3285
+ let n = W(t, {
3286
+ accept: u,
3287
+ maxSizeMb: d
3288
+ });
3289
+ if (n) {
3290
+ b(n);
3291
+ return;
3429
3292
  }
3293
+ b(""), l(t);
3430
3294
  }
3431
- function x() {
3432
- y(""), a(null);
3295
+ function C() {
3296
+ b(""), l(null);
3433
3297
  }
3434
- let S = i instanceof File ? i.name : i?.name, C = i instanceof File ? `${(i.size / 1024).toFixed(0)} KB` : null, w = f || v;
3298
+ let w = o instanceof File ? o.name : o?.name, T = o instanceof File ? `${(o.size / 1024).toFixed(0)} KB` : null, E = p || y;
3435
3299
  return /* @__PURE__ */ n("div", {
3436
3300
  className: "field",
3437
3301
  children: [
3438
3302
  /* @__PURE__ */ n("label", {
3439
3303
  className: "label",
3440
- htmlFor: h,
3441
- children: [r, d && /* @__PURE__ */ t("span", {
3304
+ htmlFor: g,
3305
+ children: [r, f && /* @__PURE__ */ t("span", {
3442
3306
  className: "label-optional",
3443
3307
  children: " (optional)"
3444
3308
  })]
3445
3309
  }),
3446
- i ? /* @__PURE__ */ n("div", {
3310
+ o ? /* @__PURE__ */ n("div", {
3447
3311
  className: "attach-preview",
3448
3312
  children: [/* @__PURE__ */ n("div", {
3449
3313
  className: "attach-figure",
3450
3314
  children: [/* @__PURE__ */ t("img", {
3451
- src: g,
3452
- alt: S
3315
+ src: _,
3316
+ alt: w
3453
3317
  }), /* @__PURE__ */ t("button", {
3454
3318
  type: "button",
3455
3319
  className: "attach-remove",
3456
3320
  "aria-label": "Remove attachment",
3457
- onClick: x,
3458
- children: /* @__PURE__ */ t(He, { size: 18 })
3321
+ onClick: C,
3322
+ children: /* @__PURE__ */ t(x, {
3323
+ name: "x",
3324
+ size: 18
3325
+ })
3459
3326
  })]
3460
3327
  }), /* @__PURE__ */ n("div", {
3461
3328
  className: "attach-meta",
3462
3329
  children: [/* @__PURE__ */ t("div", {
3463
3330
  className: "attach-name",
3464
- children: S
3465
- }), C && /* @__PURE__ */ t("div", {
3331
+ children: w
3332
+ }), T && /* @__PURE__ */ t("div", {
3466
3333
  className: "attach-size",
3467
- children: C
3334
+ children: T
3468
3335
  })]
3469
3336
  })]
3470
3337
  }) : /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ n("label", {
3471
3338
  className: "attach-drop",
3472
- htmlFor: h,
3339
+ htmlFor: g,
3473
3340
  children: [
3474
3341
  /* @__PURE__ */ t("span", {
3475
3342
  className: "attach-drop-icon",
3476
- children: /* @__PURE__ */ t(A, {
3343
+ children: /* @__PURE__ */ t(x, {
3477
3344
  name: "image",
3478
3345
  size: 18
3479
3346
  })
@@ -3487,7 +3354,7 @@ function We({ label: r = "Attachment", value: i, onChange: a, accept: c = Ue, ma
3487
3354
  className: "attach-drop-hint",
3488
3355
  children: [
3489
3356
  "PNG, JPG or WEBP, up to ",
3490
- l,
3357
+ d,
3491
3358
  " MB"
3492
3359
  ]
3493
3360
  })]
@@ -3498,105 +3365,98 @@ function We({ label: r = "Attachment", value: i, onChange: a, accept: c = Ue, ma
3498
3365
  })
3499
3366
  ]
3500
3367
  }), /* @__PURE__ */ t("input", {
3501
- id: h,
3368
+ id: g,
3502
3369
  type: "file",
3503
3370
  className: "visually-hidden-input",
3504
- accept: c,
3505
- onChange: b
3371
+ name: s,
3372
+ accept: u,
3373
+ onChange: S
3506
3374
  })] }),
3507
- w && /* @__PURE__ */ t("div", {
3375
+ E && /* @__PURE__ */ t("div", {
3508
3376
  className: "field-error",
3509
- children: w
3377
+ children: E
3510
3378
  })
3511
3379
  ]
3512
3380
  });
3513
3381
  }
3514
- var Ge = [
3515
- ".jpg",
3516
- ".jpeg",
3517
- ".png"
3518
- ];
3519
- function Ke(e) {
3520
- if (!e) return null;
3521
- let t = (e.name || "").toLowerCase();
3522
- return Ge.some((e) => t.endsWith(e)) ? e.size > 5242880 ? "File size must be less than 5 MB." : null : "Use a JPG or PNG image.";
3523
- }
3524
3382
  //#endregion
3525
3383
  //#region src/components/toast.js
3526
- var qe = /* @__PURE__ */ new Set([
3384
+ var We = /* @__PURE__ */ new Set([
3527
3385
  "success",
3528
3386
  "info",
3529
3387
  "warning",
3530
3388
  "error"
3531
3389
  ]);
3532
3390
  function $(e, t = "success") {
3533
- let n = qe.has(t) ? t : "success";
3534
- D[n](e, { toastId: `${n}:${e}` });
3391
+ let n = We.has(t) ? t : "success";
3392
+ _[n](e, { toastId: `${n}:${e}` });
3535
3393
  }
3536
- function Je(e) {
3537
- D.error(e, { toastId: `error:${e}` });
3394
+ function Ge(e) {
3395
+ _.error(e, { toastId: `error:${e}` });
3538
3396
  }
3539
3397
  //#endregion
3540
3398
  //#region src/components/AppFilePicker.jsx
3541
- function Ye({ label: e, value: r, name: i, onPick: a, accept: c = ".jpg,.jpeg,.png", required: d, error: f }) {
3542
- let [p, m] = u(null), [h, g] = u(!1), _ = l(null), v = s(), y = i || v;
3543
- o(() => {
3399
+ function Ke({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.png", maxSizeMb: d = 5, required: f, error: p }) {
3400
+ let [m, h] = c(null), [g, _] = c(!1), v = s(null), y = a(), b = o || y;
3401
+ i(() => {
3544
3402
  if (r instanceof File) {
3545
3403
  let e = URL.createObjectURL(r);
3546
- return m(e), () => URL.revokeObjectURL(e);
3404
+ return h(e), () => URL.revokeObjectURL(e);
3547
3405
  }
3548
- m(null);
3406
+ h(null);
3549
3407
  }, [r]);
3550
- let b = r?.url || p, x = (e) => {
3551
- let t = Ke(e);
3552
- return t ? ($(t, "error"), !1) : (a(e), !0);
3553
- }, S = (e) => {
3408
+ let S = r?.url || m, C = (e) => {
3409
+ let t = W(e, {
3410
+ accept: u,
3411
+ maxSizeMb: d
3412
+ });
3413
+ return t ? ($(t, "error"), !1) : (l(e), !0);
3414
+ }, w = (e) => {
3554
3415
  let t = e.target.files?.[0] || null;
3555
- t && (x(t) || (e.target.value = ""));
3556
- }, C = (e) => {
3557
- e.preventDefault(), g(!1);
3416
+ t && (C(t) || (e.target.value = ""));
3417
+ }, T = (e) => {
3418
+ e.preventDefault(), _(!1);
3558
3419
  let t = e.dataTransfer.files?.[0];
3559
- t && x(t);
3560
- }, w = () => _.current?.click(), T = /* @__PURE__ */ t("input", {
3561
- id: y,
3562
- name: i,
3563
- ref: _,
3420
+ t && C(t);
3421
+ }, E = () => v.current?.click(), D = /* @__PURE__ */ t("input", {
3422
+ id: b,
3423
+ name: o,
3424
+ ref: v,
3564
3425
  type: "file",
3565
- accept: c,
3426
+ accept: u,
3566
3427
  hidden: !0,
3567
3428
  onClick: (e) => {
3568
3429
  e.currentTarget.value = "";
3569
3430
  },
3570
- onChange: S
3431
+ onChange: w
3571
3432
  });
3572
3433
  return /* @__PURE__ */ n("div", {
3573
3434
  className: "field",
3574
3435
  children: [
3575
3436
  /* @__PURE__ */ n("label", {
3576
3437
  className: "label",
3577
- htmlFor: y,
3578
- children: [e, d && /* @__PURE__ */ t(U, {})]
3438
+ htmlFor: b,
3439
+ children: [e, f && /* @__PURE__ */ t(K, {})]
3579
3440
  }),
3580
- b ? /* @__PURE__ */ n("div", {
3581
- className: `file-preview${f ? " error" : ""}`,
3441
+ S ? /* @__PURE__ */ n("div", {
3442
+ className: `file-preview${p ? " error" : ""}`,
3582
3443
  children: [
3583
3444
  /* @__PURE__ */ n("button", {
3584
3445
  type: "button",
3585
3446
  className: "file-preview-open",
3586
3447
  "aria-label": `Change ${e}`,
3587
- onClick: w,
3448
+ onClick: E,
3588
3449
  children: [/* @__PURE__ */ t("img", {
3589
- src: b,
3450
+ src: S,
3590
3451
  alt: `${e} preview`,
3591
3452
  className: "file-preview-img"
3592
3453
  }), /* @__PURE__ */ t("span", {
3593
3454
  className: "file-preview-overlay",
3594
3455
  children: /* @__PURE__ */ n("span", {
3595
3456
  className: "file-preview-cta",
3596
- children: [/* @__PURE__ */ t(A, {
3457
+ children: [/* @__PURE__ */ t(x, {
3597
3458
  name: "image",
3598
- size: 16,
3599
- variant: "Linear"
3459
+ size: 16
3600
3460
  }), " Change image"]
3601
3461
  })
3602
3462
  })]
@@ -3606,34 +3466,32 @@ function Ye({ label: e, value: r, name: i, onPick: a, accept: c = ".jpg,.jpeg,.p
3606
3466
  className: "file-preview-remove",
3607
3467
  "aria-label": `Remove ${e}`,
3608
3468
  title: "Remove image",
3609
- onClick: () => a(null),
3610
- children: /* @__PURE__ */ t(A, {
3469
+ onClick: () => l(null),
3470
+ children: /* @__PURE__ */ t(x, {
3611
3471
  name: "x",
3612
- size: 16,
3613
- variant: "Linear"
3472
+ size: 16
3614
3473
  })
3615
3474
  }),
3616
- T
3475
+ D
3617
3476
  ]
3618
3477
  }) : /* @__PURE__ */ n("div", {
3619
- className: `file-input file-input-tall${h ? " dragging" : ""}${f ? " error" : ""}`,
3478
+ className: `file-input file-input-tall${g ? " dragging" : ""}${p ? " error" : ""}`,
3620
3479
  onDragOver: (e) => {
3621
- e.preventDefault(), h || g(!0);
3480
+ e.preventDefault(), g || _(!0);
3622
3481
  },
3623
3482
  onDragLeave: (e) => {
3624
- e.preventDefault(), g(!1);
3483
+ e.preventDefault(), _(!1);
3625
3484
  },
3626
- onDrop: C,
3485
+ onDrop: T,
3627
3486
  children: [/* @__PURE__ */ n("label", {
3628
- htmlFor: y,
3487
+ htmlFor: b,
3629
3488
  className: "file-input-zone-label",
3630
3489
  children: [
3631
3490
  /* @__PURE__ */ t("span", {
3632
3491
  className: "file-input-icon",
3633
- children: /* @__PURE__ */ t(A, {
3492
+ children: /* @__PURE__ */ t(x, {
3634
3493
  name: "upload",
3635
- size: 24,
3636
- variant: "Linear"
3494
+ size: 24
3637
3495
  })
3638
3496
  }),
3639
3497
  /* @__PURE__ */ n("span", {
@@ -3643,91 +3501,162 @@ function Ye({ label: e, value: r, name: i, onPick: a, accept: c = ".jpg,.jpeg,.p
3643
3501
  children: "Click to upload"
3644
3502
  }), " or drag & drop"]
3645
3503
  }),
3646
- /* @__PURE__ */ t("span", {
3504
+ /* @__PURE__ */ n("span", {
3647
3505
  className: "file-input-text",
3648
- children: "JPG, JPEG or PNG · up to 5 MB"
3506
+ children: [
3507
+ "JPG, JPEG or PNG · up to ",
3508
+ d,
3509
+ " MB"
3510
+ ]
3649
3511
  })
3650
3512
  ]
3651
- }), T]
3513
+ }), D]
3652
3514
  }),
3653
- f && /* @__PURE__ */ t("div", {
3515
+ p && /* @__PURE__ */ t("div", {
3654
3516
  className: "field-error",
3655
- children: f
3517
+ children: p
3518
+ })
3519
+ ]
3520
+ });
3521
+ }
3522
+ //#endregion
3523
+ //#region src/components/AppInfoList.jsx
3524
+ function qe({ items: r = [], className: i = "" }) {
3525
+ return /* @__PURE__ */ t("div", {
3526
+ className: `info-list${i ? ` ${i}` : ""}`,
3527
+ children: r.map((r, i) => {
3528
+ let a = /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
3529
+ className: "info-icon",
3530
+ children: /* @__PURE__ */ t(x, {
3531
+ name: r.icon,
3532
+ size: 16
3533
+ })
3534
+ }), /* @__PURE__ */ n("span", {
3535
+ className: "info-meta",
3536
+ children: [/* @__PURE__ */ t("span", {
3537
+ className: "info-key",
3538
+ children: r.label
3539
+ }), /* @__PURE__ */ t("span", {
3540
+ className: "info-value",
3541
+ children: r.value
3542
+ })]
3543
+ })] }), o = r.key ?? `${r.label}-${i}`;
3544
+ return r.href ? /* @__PURE__ */ t("a", {
3545
+ className: "info-row",
3546
+ href: r.href,
3547
+ children: a
3548
+ }, o) : /* @__PURE__ */ t("div", {
3549
+ className: "info-row",
3550
+ children: a
3551
+ }, o);
3552
+ })
3553
+ });
3554
+ }
3555
+ //#endregion
3556
+ //#region src/components/AppKpiTile.jsx
3557
+ function Je({ label: e, value: r, icon: i, delta: a, deltaDirection: o = "flat", inline: s = !1, className: c = "" }) {
3558
+ let l = `kpi${s ? " kpi-inline" : ""}${c ? ` ${c}` : ""}`, u = o === "up" ? "arrow-up" : o === "down" ? "arrow-down" : null;
3559
+ return /* @__PURE__ */ n("div", {
3560
+ className: l,
3561
+ children: [
3562
+ i && /* @__PURE__ */ t("span", {
3563
+ className: "kpi-icon",
3564
+ children: /* @__PURE__ */ t(x, {
3565
+ name: i,
3566
+ size: 20
3567
+ })
3568
+ }),
3569
+ /* @__PURE__ */ t("div", {
3570
+ className: "kpi-label",
3571
+ children: e
3572
+ }),
3573
+ /* @__PURE__ */ t("div", {
3574
+ className: "kpi-value",
3575
+ children: r
3576
+ }),
3577
+ a && /* @__PURE__ */ n("div", {
3578
+ className: `kpi-delta${o === "flat" ? "" : ` ${o}`}`,
3579
+ children: [u && /* @__PURE__ */ t(x, {
3580
+ name: u,
3581
+ size: 13
3582
+ }), a]
3656
3583
  })
3657
3584
  ]
3658
3585
  });
3659
3586
  }
3660
3587
  //#endregion
3661
3588
  //#region src/components/AppLogoPicker.jsx
3662
- function Xe({ value: r, fallback: i, onPick: a, loading: o = !1, accept: s = "image/png,image/jpeg", overlayIcon: c = "image", overlayLabel: u = "Update photo", ariaLabel: d = "Upload photo" }) {
3663
- let f = l(null);
3589
+ function Ye({ 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" }) {
3590
+ let m = s(null);
3664
3591
  return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("button", {
3665
3592
  type: "button",
3666
3593
  className: "set-uploader",
3667
- "aria-busy": o,
3668
- disabled: o,
3594
+ "aria-busy": c || void 0,
3595
+ disabled: c,
3669
3596
  onClick: () => {
3670
- o || f.current?.click();
3597
+ c || m.current?.click();
3671
3598
  },
3672
- "aria-label": d,
3673
- children: /* @__PURE__ */ n("div", {
3599
+ "aria-label": p,
3600
+ children: /* @__PURE__ */ n("span", {
3674
3601
  className: "set-uploader-ring",
3675
3602
  children: [r ? /* @__PURE__ */ t("img", {
3676
3603
  className: "set-uploader-img",
3677
3604
  src: r,
3678
3605
  alt: ""
3679
- }) : /* @__PURE__ */ t("div", {
3606
+ }) : /* @__PURE__ */ t("span", {
3680
3607
  className: "set-uploader-logo",
3681
3608
  children: i
3682
- }), o ? /* @__PURE__ */ t("div", {
3609
+ }), c ? /* @__PURE__ */ t("span", {
3683
3610
  className: "set-uploader-overlay is-loading",
3684
3611
  "aria-hidden": "true",
3685
- children: /* @__PURE__ */ t(A, {
3612
+ children: /* @__PURE__ */ t(x, {
3686
3613
  name: "refresh-cw",
3687
3614
  size: 22,
3688
- variant: "Linear",
3689
3615
  className: "lx-spin"
3690
3616
  })
3691
- }) : /* @__PURE__ */ n("div", {
3617
+ }) : /* @__PURE__ */ n("span", {
3692
3618
  className: "set-uploader-overlay",
3693
- children: [/* @__PURE__ */ t(A, {
3694
- name: c,
3695
- size: 22,
3696
- variant: "Linear"
3697
- }), /* @__PURE__ */ t("span", { children: u })]
3619
+ children: [/* @__PURE__ */ t(x, {
3620
+ name: d,
3621
+ size: 22
3622
+ }), /* @__PURE__ */ t("span", { children: f })]
3698
3623
  })]
3699
3624
  })
3700
3625
  }), /* @__PURE__ */ t("input", {
3701
- ref: f,
3626
+ ref: m,
3702
3627
  type: "file",
3628
+ name: a,
3703
3629
  hidden: !0,
3704
- accept: s,
3630
+ accept: l,
3705
3631
  onChange: (e) => {
3706
3632
  let t = e.target.files?.[0];
3707
3633
  if (e.target.value = "", !t) return;
3708
- let n = Ke(t);
3634
+ let n = W(t, {
3635
+ accept: l,
3636
+ maxSizeMb: u
3637
+ });
3709
3638
  if (n) {
3710
3639
  $(n, "error");
3711
3640
  return;
3712
3641
  }
3713
- a(t);
3642
+ o(t);
3714
3643
  },
3715
- disabled: o
3644
+ disabled: c
3716
3645
  })] });
3717
3646
  }
3718
3647
  //#endregion
3719
3648
  //#region src/components/AppMultiSelect.jsx
3720
- function Ze({ values: e, onChange: r, options: i, placeholder: a = "Select…", searchPlaceholder: s = "Search…", searchable: c = !0, disabled: u = !1, name: d, label: f, error: p, hint: m, required: h = !1, fieldClassName: g = "" }) {
3721
- let _ = l(null);
3722
- return o(() => {
3649
+ function Xe({ 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 = "" }) {
3650
+ let _ = s(null);
3651
+ return i(() => {
3723
3652
  let e = _.current;
3724
- e && (e.options = i || []);
3725
- }, [i]), o(() => {
3653
+ e && (e.options = a || []);
3654
+ }, [a]), i(() => {
3726
3655
  let t = _.current;
3727
3656
  if (!t) return;
3728
3657
  let n = e || [], r = t.values || [];
3729
3658
  n.join(",") !== r.join(",") && (t.values = n);
3730
- }, [e]), o(() => {
3659
+ }, [e]), i(() => {
3731
3660
  let e = _.current;
3732
3661
  if (!e) return;
3733
3662
  let t = () => r?.(e.values);
@@ -3738,15 +3667,16 @@ function Ze({ values: e, onChange: r, options: i, placeholder: a = "Select…",
3738
3667
  f && /* @__PURE__ */ n("label", {
3739
3668
  className: "label",
3740
3669
  htmlFor: d,
3741
- children: [f, h && /* @__PURE__ */ t(U, {})]
3670
+ children: [f, h && /* @__PURE__ */ t(K, {})]
3742
3671
  }),
3743
3672
  /* @__PURE__ */ t("wui-multiselect", {
3673
+ "aria-label": typeof f == "string" ? f : void 0,
3744
3674
  id: d,
3745
3675
  ref: _,
3746
3676
  name: d,
3747
- placeholder: a,
3748
- "search-placeholder": s,
3749
- searchable: c ? "" : void 0,
3677
+ placeholder: o,
3678
+ "search-placeholder": c,
3679
+ searchable: l ? "" : void 0,
3750
3680
  disabled: u ? "" : void 0
3751
3681
  }),
3752
3682
  p ? /* @__PURE__ */ t("div", {
@@ -3761,7 +3691,7 @@ function Ze({ values: e, onChange: r, options: i, placeholder: a = "Select…",
3761
3691
  }
3762
3692
  //#endregion
3763
3693
  //#region src/components/AppPageHeader.jsx
3764
- function Qe({ title: e, subtitle: r, actions: i, className: a = "" }) {
3694
+ function Ze({ title: e, subtitle: r, actions: i, className: a = "" }) {
3765
3695
  return /* @__PURE__ */ n("div", {
3766
3696
  className: `page-header${i ? " d-flex align-items-end justify-content-between" : ""}${a ? ` ${a}` : ""}`,
3767
3697
  children: [/* @__PURE__ */ n("div", { children: [/* @__PURE__ */ t("div", {
@@ -3778,12 +3708,12 @@ function Qe({ title: e, subtitle: r, actions: i, className: a = "" }) {
3778
3708
  }
3779
3709
  //#endregion
3780
3710
  //#region src/components/AppPhoneNumberInput.jsx
3781
- function $e({ value: e, onChange: r, country: i, disabled: a = !1, name: s, label: c = "Phone number", placeholder: u = "Enter phone number", required: d = !1, error: f, fieldClassName: p = "" }) {
3782
- let m = l(null);
3783
- return o(() => {
3711
+ function Qe({ 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 = "" }) {
3712
+ let m = s(null);
3713
+ return i(() => {
3784
3714
  let t = m.current;
3785
3715
  t && t.value !== (e ?? "") && (t.value = e ?? "");
3786
- }, [e]), o(() => {
3716
+ }, [e]), i(() => {
3787
3717
  let e = m.current;
3788
3718
  if (!e) return;
3789
3719
  let t = () => r?.(e.value);
@@ -3791,17 +3721,17 @@ function $e({ value: e, onChange: r, country: i, disabled: a = !1, name: s, labe
3791
3721
  }, [r]), /* @__PURE__ */ n("div", {
3792
3722
  className: `field app-phone-number-input${p ? ` ${p}` : ""}`,
3793
3723
  children: [
3794
- c && /* @__PURE__ */ n("label", {
3724
+ l && /* @__PURE__ */ n("label", {
3795
3725
  className: "label",
3796
- htmlFor: s,
3797
- children: [c, d && /* @__PURE__ */ t(U, {})]
3726
+ htmlFor: c,
3727
+ children: [l, d && /* @__PURE__ */ t(K, {})]
3798
3728
  }),
3799
3729
  /* @__PURE__ */ t("wui-phone", {
3800
3730
  ref: m,
3801
- name: s,
3802
- country: i,
3731
+ name: c,
3732
+ country: a,
3803
3733
  placeholder: u,
3804
- disabled: a ? "" : void 0
3734
+ disabled: o ? "" : void 0
3805
3735
  }),
3806
3736
  f && /* @__PURE__ */ t("div", {
3807
3737
  className: "field-error",
@@ -3811,18 +3741,71 @@ function $e({ value: e, onChange: r, country: i, disabled: a = !1, name: s, labe
3811
3741
  });
3812
3742
  }
3813
3743
  //#endregion
3744
+ //#region src/components/AppPricingCard.jsx
3745
+ function $e({ name: e, price: r, unit: i, tagline: a, features: o = [], cta: s, featured: c = !1, current: l = !1, badge: u = "Most popular", className: d = "" }) {
3746
+ return /* @__PURE__ */ n("div", {
3747
+ className: [
3748
+ "plan-card",
3749
+ c ? "featured" : "",
3750
+ l ? "current" : "",
3751
+ d
3752
+ ].filter(Boolean).join(" "),
3753
+ children: [
3754
+ c && u && /* @__PURE__ */ t("span", {
3755
+ className: "plan-badge",
3756
+ children: u
3757
+ }),
3758
+ /* @__PURE__ */ t("div", {
3759
+ className: "plan-name",
3760
+ children: e
3761
+ }),
3762
+ /* @__PURE__ */ n("div", {
3763
+ className: "plan-price",
3764
+ children: [r, i && /* @__PURE__ */ t("span", {
3765
+ className: "plan-price-unit",
3766
+ children: i
3767
+ })]
3768
+ }),
3769
+ a && /* @__PURE__ */ t("div", {
3770
+ className: "plan-tagline",
3771
+ children: a
3772
+ }),
3773
+ o.length > 0 && /* @__PURE__ */ t("ul", {
3774
+ className: "plan-features",
3775
+ children: o.map((e) => {
3776
+ let r = e.included !== !1;
3777
+ return /* @__PURE__ */ n("li", {
3778
+ className: r ? void 0 : "excluded",
3779
+ children: [/* @__PURE__ */ t("span", {
3780
+ className: "plan-feature-icon",
3781
+ children: /* @__PURE__ */ t(x, {
3782
+ name: r ? "check" : "x",
3783
+ size: 16
3784
+ })
3785
+ }), e.text]
3786
+ }, e.text);
3787
+ })
3788
+ }),
3789
+ s && /* @__PURE__ */ t("div", {
3790
+ className: "plan-cta",
3791
+ children: s
3792
+ })
3793
+ ]
3794
+ });
3795
+ }
3796
+ //#endregion
3814
3797
  //#region src/components/AppRadio.jsx
3815
- var et = i(function({ label: e, id: r, name: i, className: a = "", ...o }, c) {
3816
- let l = s(), u = r || i || l;
3798
+ var et = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
3799
+ let l = a(), u = r || i || l;
3817
3800
  return /* @__PURE__ */ n("div", {
3818
- className: `form-check${a ? ` ${a}` : ""}`,
3801
+ className: `form-check${o ? ` ${o}` : ""}`,
3819
3802
  children: [/* @__PURE__ */ t("input", {
3820
3803
  type: "radio",
3821
3804
  className: "form-check-input",
3822
3805
  id: u,
3823
3806
  name: i,
3824
3807
  ref: c,
3825
- ...o
3808
+ ...s
3826
3809
  }), e != null && /* @__PURE__ */ t("label", {
3827
3810
  className: "form-check-label",
3828
3811
  htmlFor: u,
@@ -3831,8 +3814,86 @@ var et = i(function({ label: e, id: r, name: i, className: a = "", ...o }, c) {
3831
3814
  });
3832
3815
  });
3833
3816
  //#endregion
3817
+ //#region src/components/AppRepeater.jsx
3818
+ function tt({ 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 = "" }) {
3819
+ let p = typeof u == "number" && e.length >= u, m = !!a && e.length > l;
3820
+ return /* @__PURE__ */ n("div", {
3821
+ className: `repeater${f ? ` ${f}` : ""}`,
3822
+ children: [
3823
+ e.length === 0 && c && /* @__PURE__ */ t("div", {
3824
+ className: "repeater-empty",
3825
+ children: c
3826
+ }),
3827
+ e.map((e, i) => /* @__PURE__ */ n("div", {
3828
+ className: "repeater-row",
3829
+ children: [
3830
+ d && /* @__PURE__ */ t("span", {
3831
+ className: "repeater-index",
3832
+ children: i + 1
3833
+ }),
3834
+ /* @__PURE__ */ t("div", {
3835
+ className: "repeater-body",
3836
+ children: r(e, i)
3837
+ }),
3838
+ m && /* @__PURE__ */ t(S, {
3839
+ icon: "trash-2",
3840
+ label: `${s} ${i + 1}`,
3841
+ danger: !0,
3842
+ className: "repeater-remove",
3843
+ onClick: () => a(i)
3844
+ })
3845
+ ]
3846
+ }, e.id ?? i)),
3847
+ /* @__PURE__ */ t(J, {
3848
+ variant: "secondary",
3849
+ size: "sm",
3850
+ leftIcon: /* @__PURE__ */ t(x, {
3851
+ name: "plus",
3852
+ size: 14,
3853
+ className: "me-1"
3854
+ }),
3855
+ className: "repeater-add",
3856
+ disabled: p,
3857
+ onClick: i,
3858
+ children: o
3859
+ })
3860
+ ]
3861
+ });
3862
+ }
3863
+ //#endregion
3864
+ //#region src/components/AppResourceCard.jsx
3865
+ function nt({ icon: r, title: i, text: a, href: o, external: s = !1, linkComponent: c, className: l = "" }) {
3866
+ let u = /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
3867
+ className: "res-card-icon",
3868
+ children: /* @__PURE__ */ t(x, {
3869
+ name: r,
3870
+ size: 18
3871
+ })
3872
+ }), /* @__PURE__ */ n("span", {
3873
+ className: "res-card-body",
3874
+ children: [/* @__PURE__ */ t("span", {
3875
+ className: "res-card-title",
3876
+ children: i
3877
+ }), a && /* @__PURE__ */ t("span", {
3878
+ className: "res-card-text",
3879
+ children: a
3880
+ })]
3881
+ })] }), d = `res-card${l ? ` ${l}` : ""}`;
3882
+ return c && !s ? /* @__PURE__ */ t(c, {
3883
+ className: d,
3884
+ to: o,
3885
+ children: u
3886
+ }) : /* @__PURE__ */ t("a", {
3887
+ className: d,
3888
+ href: o,
3889
+ target: s ? "_blank" : void 0,
3890
+ rel: s ? "noopener noreferrer" : void 0,
3891
+ children: u
3892
+ });
3893
+ }
3894
+ //#endregion
3834
3895
  //#region src/components/AppSearch.jsx
3835
- function tt({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize: o = 18, className: s = "", ...c }) {
3896
+ function rt({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize: o = 18, className: s = "", ...c }) {
3836
3897
  return /* @__PURE__ */ n("div", {
3837
3898
  className: [
3838
3899
  "search-wrap",
@@ -3840,12 +3901,12 @@ function tt({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize
3840
3901
  s
3841
3902
  ].filter(Boolean).join(" "),
3842
3903
  children: [
3843
- /* @__PURE__ */ t(A, {
3904
+ /* @__PURE__ */ t(x, {
3844
3905
  name: "search",
3845
3906
  size: o,
3846
3907
  className: "search-icon"
3847
3908
  }),
3848
- /* @__PURE__ */ t(m.Control, {
3909
+ /* @__PURE__ */ t(p.Control, {
3849
3910
  type: "search",
3850
3911
  className: "input search-input",
3851
3912
  placeholder: i,
@@ -3859,41 +3920,69 @@ function tt({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize
3859
3920
  className: "search-clear",
3860
3921
  "aria-label": "Clear search",
3861
3922
  onClick: () => r(""),
3862
- children: /* @__PURE__ */ t(A, {
3923
+ children: /* @__PURE__ */ t(x, {
3863
3924
  name: "x",
3864
- size: 16,
3865
- variant: "Bulk"
3925
+ size: 16
3866
3926
  })
3867
3927
  })
3868
3928
  ]
3869
3929
  });
3870
3930
  }
3871
3931
  //#endregion
3932
+ //#region src/components/AppSegmented.jsx
3933
+ function it({ options: e = [], value: r, onChange: i, label: o, name: s, size: c = "md", className: l = "" }) {
3934
+ let u = a(), d = s || u;
3935
+ return /* @__PURE__ */ t("div", {
3936
+ className: `segmented${c === "sm" ? " segmented-sm" : ""}${l ? ` ${l}` : ""}`,
3937
+ role: "radiogroup",
3938
+ "aria-label": o,
3939
+ children: e.map((e) => /* @__PURE__ */ n("label", {
3940
+ className: "segmented-option",
3941
+ children: [
3942
+ /* @__PURE__ */ t("input", {
3943
+ type: "radio",
3944
+ className: "segmented-input",
3945
+ name: d,
3946
+ value: e.value,
3947
+ checked: e.value === r,
3948
+ onChange: () => i?.(e.value)
3949
+ }),
3950
+ e.icon && /* @__PURE__ */ t(x, {
3951
+ name: e.icon,
3952
+ size: 13
3953
+ }),
3954
+ e.label
3955
+ ]
3956
+ }, e.value))
3957
+ });
3958
+ }
3959
+ //#endregion
3872
3960
  //#region src/components/AppSelect.jsx
3873
- var nt = (e) => e == null ? "" : e.label ?? e.text ?? "";
3874
- function rt({ value: e, onChange: r, options: i = [], placeholder: a = "Select...", searchPlaceholder: s = "Search...", searchable: c = !1, disabled: u, label: d, required: f = !1, error: p, hint: m, help: h, helpLabel: g = "More information", id: _, name: v, fieldClassName: y = "" }) {
3875
- let b = l(null);
3876
- o(() => {
3877
- b.current && (b.current.options = i.map((e) => ({
3961
+ var at = (e) => e == null ? "" : e.label ?? e.text ?? "";
3962
+ function ot({ 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 = "" }) {
3963
+ let b = s(null);
3964
+ i(() => {
3965
+ b.current && (b.current.options = a.map((e) => ({
3878
3966
  value: e.value,
3879
- label: nt(e)
3967
+ label: at(e)
3880
3968
  })));
3881
- }, [i]), o(() => {
3969
+ }, [a]), i(() => {
3882
3970
  let t = b.current;
3883
3971
  t && String(t.value ?? "") !== String(e ?? "") && (t.value = e ?? "");
3884
- }, [e]), o(() => {
3972
+ }, [e]), i(() => {
3885
3973
  let e = b.current;
3886
3974
  if (!e) return;
3887
3975
  let t = () => r?.(e.value);
3888
3976
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
3889
3977
  }, [r]);
3890
3978
  let x = /* @__PURE__ */ t("wui-select", {
3979
+ "aria-label": typeof d == "string" ? d : void 0,
3891
3980
  ref: b,
3892
3981
  id: _ || v,
3893
3982
  name: v,
3894
- placeholder: a,
3895
- "search-placeholder": s,
3896
- searchable: c ? "" : void 0,
3983
+ placeholder: o,
3984
+ "search-placeholder": c,
3985
+ searchable: l ? "" : void 0,
3897
3986
  disabled: u ? "" : void 0
3898
3987
  });
3899
3988
  if (!d && !p && !m) return x;
@@ -3906,11 +3995,11 @@ function rt({ value: e, onChange: r, options: i = [], placeholder: a = "Select..
3906
3995
  htmlFor: S,
3907
3996
  children: [
3908
3997
  d,
3909
- h && /* @__PURE__ */ t(G, {
3998
+ h && /* @__PURE__ */ t(Y, {
3910
3999
  label: g,
3911
4000
  children: h
3912
4001
  }),
3913
- f && /* @__PURE__ */ t(U, {})
4002
+ f && /* @__PURE__ */ t(K, {})
3914
4003
  ]
3915
4004
  }),
3916
4005
  x,
@@ -3925,8 +4014,147 @@ function rt({ value: e, onChange: r, options: i = [], placeholder: a = "Select..
3925
4014
  });
3926
4015
  }
3927
4016
  //#endregion
4017
+ //#region src/components/AppShell.jsx
4018
+ function st({ 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 = "" }) {
4019
+ let [_, v] = c(!1), [y, b] = c(!1), [S, C] = c(!1), w = d ?? _;
4020
+ return i(() => {
4021
+ let e = () => C(window.scrollY > 4);
4022
+ return e(), window.addEventListener("scroll", e, { passive: !0 }), () => window.removeEventListener("scroll", e);
4023
+ }, []), i(() => {
4024
+ if (!y) return;
4025
+ let e = (e) => {
4026
+ e.key === "Escape" && b(!1);
4027
+ };
4028
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
4029
+ }, [y]), /* @__PURE__ */ n("div", {
4030
+ className: [
4031
+ "app-shell",
4032
+ w ? "collapsed" : "",
4033
+ p ? "no-sidebar" : "",
4034
+ y ? "mobile-open" : "",
4035
+ g
4036
+ ].filter(Boolean).join(" "),
4037
+ children: [
4038
+ /* @__PURE__ */ n("aside", {
4039
+ className: "app-sidebar",
4040
+ children: [
4041
+ r && /* @__PURE__ */ t("div", {
4042
+ className: "app-sidebar-brand",
4043
+ children: r
4044
+ }),
4045
+ /* @__PURE__ */ t("nav", {
4046
+ className: "app-sidebar-scroll",
4047
+ "aria-label": m,
4048
+ children: e.map((e, r) => /* @__PURE__ */ n("div", {
4049
+ className: "app-nav-group",
4050
+ children: [e.label && /* @__PURE__ */ t("div", {
4051
+ className: "app-nav-group-label",
4052
+ children: e.label
4053
+ }), e.items.map((e) => /* @__PURE__ */ t(ct, {
4054
+ item: e,
4055
+ linkComponent: h,
4056
+ onNavigate: () => b(!1)
4057
+ }, e.key ?? e.href))]
4058
+ }, e.label ?? `group-${r}`))
4059
+ }),
4060
+ a && /* @__PURE__ */ t("div", {
4061
+ className: "app-sidebar-foot",
4062
+ children: a
4063
+ })
4064
+ ]
4065
+ }),
4066
+ !p && /* @__PURE__ */ t("button", {
4067
+ type: "button",
4068
+ className: "app-sidebar-toggle",
4069
+ onClick: () => {
4070
+ let e = !w;
4071
+ v(e), f?.(e);
4072
+ },
4073
+ "aria-label": w ? "Expand navigation" : "Collapse navigation",
4074
+ "aria-expanded": !w,
4075
+ children: /* @__PURE__ */ t(x, {
4076
+ name: "chevron-left",
4077
+ size: 14
4078
+ })
4079
+ }),
4080
+ /* @__PURE__ */ n("div", {
4081
+ className: "app-main",
4082
+ children: [
4083
+ /* @__PURE__ */ n("header", {
4084
+ className: `app-topbar${S ? " scrolled" : ""}`,
4085
+ children: [/* @__PURE__ */ n("div", {
4086
+ className: "app-topbar-start",
4087
+ children: [/* @__PURE__ */ t("button", {
4088
+ type: "button",
4089
+ className: "app-topbar-menu",
4090
+ onClick: () => b(!0),
4091
+ "aria-label": "Open navigation",
4092
+ "aria-expanded": y,
4093
+ children: /* @__PURE__ */ t(x, {
4094
+ name: "menu",
4095
+ size: 18
4096
+ })
4097
+ }), o]
4098
+ }), /* @__PURE__ */ t("div", {
4099
+ className: "app-topbar-end",
4100
+ children: s
4101
+ })]
4102
+ }),
4103
+ /* @__PURE__ */ t("main", {
4104
+ className: "app-content",
4105
+ children: u
4106
+ }),
4107
+ l && /* @__PURE__ */ t("footer", {
4108
+ className: "app-footer",
4109
+ children: l
4110
+ })
4111
+ ]
4112
+ }),
4113
+ /* @__PURE__ */ t("button", {
4114
+ type: "button",
4115
+ className: "app-scrim",
4116
+ onClick: () => b(!1),
4117
+ "aria-label": "Close navigation",
4118
+ tabIndex: y ? 0 : -1
4119
+ })
4120
+ ]
4121
+ });
4122
+ }
4123
+ function ct({ item: r, linkComponent: i, onNavigate: a }) {
4124
+ let o = `app-nav-item${r.active ? " active" : ""}`, s = /* @__PURE__ */ n(e, { children: [
4125
+ r.icon && /* @__PURE__ */ t("span", {
4126
+ className: "app-nav-icon",
4127
+ children: /* @__PURE__ */ t(x, {
4128
+ name: r.icon,
4129
+ size: 22
4130
+ })
4131
+ }),
4132
+ /* @__PURE__ */ t("span", {
4133
+ className: "app-nav-text",
4134
+ children: r.label
4135
+ }),
4136
+ r.badge != null && /* @__PURE__ */ t("span", {
4137
+ className: "app-nav-badge",
4138
+ children: r.badge
4139
+ })
4140
+ ] }), c = r.active ? "page" : void 0;
4141
+ return i ? /* @__PURE__ */ t(i, {
4142
+ className: o,
4143
+ to: r.href,
4144
+ "aria-current": c,
4145
+ onClick: a,
4146
+ children: s
4147
+ }) : /* @__PURE__ */ t("a", {
4148
+ className: o,
4149
+ href: r.href,
4150
+ "aria-current": c,
4151
+ onClick: a,
4152
+ children: s
4153
+ });
4154
+ }
4155
+ //#endregion
3928
4156
  //#region src/components/AppSidebarMenu.jsx
3929
- var it = {
4157
+ var lt = {
3930
4158
  left: "start",
3931
4159
  right: "end",
3932
4160
  start: "start",
@@ -3934,18 +4162,18 @@ var it = {
3934
4162
  top: "top",
3935
4163
  bottom: "bottom"
3936
4164
  };
3937
- function at({ 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 }) {
3938
- return /* @__PURE__ */ n(O, {
4165
+ function ut({ 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 }) {
4166
+ return /* @__PURE__ */ n(v, {
3939
4167
  show: e,
3940
4168
  onHide: r,
3941
- placement: it[i] || "end",
4169
+ placement: lt[i] || "end",
3942
4170
  backdrop: d,
3943
4171
  scroll: f,
3944
4172
  keyboard: p,
3945
4173
  responsive: h,
3946
4174
  style: u ? { "--asm-width": u } : void 0,
3947
4175
  className: `app-sidebar-menu${g ? ` ${g}` : ""}`,
3948
- "aria-label": v || (typeof a == "string" ? a : void 0),
4176
+ "aria-label": y || (typeof a == "string" ? a : void 0),
3949
4177
  children: [
3950
4178
  s === void 0 ? (a != null || m) && /* @__PURE__ */ n("div", {
3951
4179
  className: "drawer-header",
@@ -3953,22 +4181,23 @@ function at({ show: e, onHide: r, side: i = "right", title: a, titleIcon: o, hea
3953
4181
  className: "drawer-title",
3954
4182
  children: [o && /* @__PURE__ */ t("span", {
3955
4183
  className: "drawer-title-ic",
3956
- children: /* @__PURE__ */ t(A, {
4184
+ children: /* @__PURE__ */ t(x, {
3957
4185
  name: o,
3958
- size: 18,
3959
- variant: "Bulk"
4186
+ size: 18
3960
4187
  })
3961
4188
  }), a]
3962
- }), m && /* @__PURE__ */ t(W, {
4189
+ }), m && /* @__PURE__ */ t(J, {
3963
4190
  variant: "ghost",
3964
4191
  className: "btn-icon",
3965
4192
  onClick: r,
3966
4193
  "aria-label": "Close",
3967
- icon: "x",
3968
- iconSize: 16
4194
+ children: /* @__PURE__ */ t(x, {
4195
+ name: "x",
4196
+ size: 16
4197
+ })
3969
4198
  })]
3970
4199
  }) : s,
3971
- /* @__PURE__ */ t(O.Body, {
4200
+ /* @__PURE__ */ t(v.Body, {
3972
4201
  className: _,
3973
4202
  children: c
3974
4203
  }),
@@ -3980,26 +4209,109 @@ function at({ show: e, onHide: r, side: i = "right", title: a, titleIcon: o, hea
3980
4209
  });
3981
4210
  }
3982
4211
  //#endregion
4212
+ //#region src/components/AppSpinner.jsx
4213
+ function dt({ size: e = "md", label: n = "Loading", className: r = "" }) {
4214
+ return /* @__PURE__ */ t("span", {
4215
+ className: `spinner-border${e === "sm" ? " spinner-border-sm" : ""}${r ? ` ${r}` : ""}`,
4216
+ role: "status",
4217
+ "aria-label": n
4218
+ });
4219
+ }
4220
+ //#endregion
4221
+ //#region src/components/AppSplash.jsx
4222
+ function ft({ logo: e, initials: r, text: i, label: a = "Loading", className: o = "" }) {
4223
+ return /* @__PURE__ */ t("div", {
4224
+ className: `splash${o ? ` ${o}` : ""}`,
4225
+ role: "status",
4226
+ "aria-live": "polite",
4227
+ "aria-label": a,
4228
+ children: /* @__PURE__ */ n("div", {
4229
+ className: "splash-inner",
4230
+ children: [
4231
+ e || r && /* @__PURE__ */ t("span", {
4232
+ className: "splash-mark",
4233
+ children: r
4234
+ }),
4235
+ /* @__PURE__ */ t("span", {
4236
+ className: "splash-bar",
4237
+ "aria-hidden": "true"
4238
+ }),
4239
+ i && /* @__PURE__ */ t("span", {
4240
+ className: "splash-text",
4241
+ children: i
4242
+ })
4243
+ ]
4244
+ })
4245
+ });
4246
+ }
4247
+ //#endregion
3983
4248
  //#region src/components/AppStatusBadge.jsx
3984
- function ot({ label: e, tone: n = "", className: r = "" }) {
4249
+ function pt({ label: e, tone: n = "neutral", className: r = "" }) {
3985
4250
  return e == null || e === "" ? "—" : /* @__PURE__ */ t("span", {
3986
4251
  className: `status-label ${n}${r ? ` ${r}` : ""}`,
3987
4252
  children: e
3988
4253
  });
3989
4254
  }
3990
4255
  //#endregion
4256
+ //#region src/components/AppStepper.jsx
4257
+ function mt({ steps: r = [], variant: i = "steps", label: a = "Progress", linkComponent: o, className: s = "" }) {
4258
+ return /* @__PURE__ */ t("nav", {
4259
+ className: [i === "journey" ? "stepper stepper-journey" : "stepper", s].filter(Boolean).join(" "),
4260
+ "aria-label": a,
4261
+ children: r.map((a, s) => {
4262
+ let c = a.status || "pending", l = `step${c === "pending" ? "" : ` ${c}`}`, u = /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
4263
+ className: "step-circle",
4264
+ children: c === "done" ? /* @__PURE__ */ t(x, {
4265
+ name: "check",
4266
+ size: 14
4267
+ }) : s + 1
4268
+ }), i === "journey" ? /* @__PURE__ */ n("span", {
4269
+ className: "step-text",
4270
+ children: [/* @__PURE__ */ t("span", {
4271
+ className: "step-index",
4272
+ children: `Step ${s + 1}`
4273
+ }), /* @__PURE__ */ t("span", {
4274
+ className: "step-label",
4275
+ children: a.label
4276
+ })]
4277
+ }) : /* @__PURE__ */ t("span", {
4278
+ className: "step-label",
4279
+ children: a.label
4280
+ })] }), d = c === "active" ? "step" : void 0, f = a.key ?? `${a.label}-${s}`, p = a.href ? o ? /* @__PURE__ */ t(o, {
4281
+ className: l,
4282
+ to: a.href,
4283
+ "aria-current": d,
4284
+ children: u
4285
+ }, f) : /* @__PURE__ */ t("a", {
4286
+ className: l,
4287
+ href: a.href,
4288
+ "aria-current": d,
4289
+ children: u
4290
+ }, f) : /* @__PURE__ */ t("div", {
4291
+ className: l,
4292
+ "aria-current": d,
4293
+ children: u
4294
+ }, f);
4295
+ return i === "journey" && s < r.length - 1 ? [p, /* @__PURE__ */ t("span", {
4296
+ className: `step-line${c === "done" ? " done" : ""}`,
4297
+ "aria-hidden": "true"
4298
+ }, `${f}-line`)] : p;
4299
+ })
4300
+ });
4301
+ }
4302
+ //#endregion
3991
4303
  //#region src/components/AppSwitch.jsx
3992
- var st = i(function({ label: e, id: r, name: i, className: a = "", ...o }, c) {
3993
- let l = s(), u = r || i || l;
4304
+ var ht = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
4305
+ let l = a(), u = r || i || l;
3994
4306
  return /* @__PURE__ */ n("div", {
3995
- className: `form-check form-switch${a ? ` ${a}` : ""}`,
4307
+ className: `form-check form-switch${o ? ` ${o}` : ""}`,
3996
4308
  children: [/* @__PURE__ */ t("input", {
3997
4309
  type: "checkbox",
3998
4310
  className: "form-check-input",
3999
4311
  id: u,
4000
4312
  name: i,
4001
4313
  ref: c,
4002
- ...o
4314
+ ...s
4003
4315
  }), e != null && /* @__PURE__ */ t("label", {
4004
4316
  className: "form-check-label",
4005
4317
  htmlFor: u,
@@ -4009,16 +4321,15 @@ var st = i(function({ label: e, id: r, name: i, className: a = "", ...o }, c) {
4009
4321
  });
4010
4322
  //#endregion
4011
4323
  //#region src/components/AppTableEmptyState.jsx
4012
- function ct({ icon: e, title: r, text: i, action: a }) {
4324
+ function gt({ icon: e, title: r, text: i, action: a }) {
4013
4325
  return /* @__PURE__ */ n("div", {
4014
4326
  className: "tbl-empty",
4015
4327
  children: [
4016
4328
  /* @__PURE__ */ t("span", {
4017
4329
  className: "tbl-empty-icon",
4018
- children: /* @__PURE__ */ t(A, {
4330
+ children: /* @__PURE__ */ t(x, {
4019
4331
  name: e,
4020
- size: 24,
4021
- variant: "Bulk"
4332
+ size: 24
4022
4333
  })
4023
4334
  }),
4024
4335
  /* @__PURE__ */ t("div", {
@@ -4038,8 +4349,8 @@ function ct({ icon: e, title: r, text: i, action: a }) {
4038
4349
  }
4039
4350
  //#endregion
4040
4351
  //#region src/components/AppTabs.jsx
4041
- function lt({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabel: o, className: s = "" }) {
4042
- let c = l(null);
4352
+ function _t({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabel: o, className: c = "" }) {
4353
+ let l = s(null);
4043
4354
  function u(t) {
4044
4355
  let n = e.findIndex((e) => e.key === r);
4045
4356
  if (n < 0) return;
@@ -4047,24 +4358,21 @@ function lt({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabe
4047
4358
  if (t.key === "ArrowRight" ? a = e[(n + 1) % e.length] : t.key === "ArrowLeft" ? a = e[(n - 1 + e.length) % e.length] : t.key === "Home" ? a = e[0] : t.key === "End" && (a = e[e.length - 1]), !a) return;
4048
4359
  t.preventDefault(), i(a.key);
4049
4360
  let o = CSS.escape(String(a.key));
4050
- c.current?.querySelector(`[data-rr-ui-event-key="${o}"]`)?.focus();
4361
+ l.current?.querySelector(`[data-rr-ui-event-key="${o}"]`)?.focus();
4051
4362
  }
4052
- return /* @__PURE__ */ t(k, {
4363
+ return /* @__PURE__ */ t(y, {
4053
4364
  as: "div",
4054
4365
  role: "tablist",
4055
- ref: c,
4366
+ ref: l,
4056
4367
  activeKey: r,
4057
4368
  onSelect: (e) => {
4058
4369
  e != null && i(e);
4059
4370
  },
4060
4371
  onKeyDown: u,
4061
- className: [
4062
- "app-tabs",
4063
- a === "pills" ? "app-tabs-pills" : "",
4064
- s
4065
- ].filter(Boolean).join(" "),
4372
+ bsPrefix: "app-tabs",
4373
+ className: [a === "pills" ? "app-tabs-pills" : "", c].filter(Boolean).join(" "),
4066
4374
  "aria-label": o,
4067
- children: e.map((e) => /* @__PURE__ */ n(k.Link, {
4375
+ children: e.map((e) => /* @__PURE__ */ n(y.Link, {
4068
4376
  as: "button",
4069
4377
  type: "button",
4070
4378
  eventKey: e.key,
@@ -4084,28 +4392,28 @@ function lt({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabe
4084
4392
  }
4085
4393
  //#endregion
4086
4394
  //#region src/components/AppTextarea.jsx
4087
- var ut = i(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 = "", ...p }, h) {
4395
+ var vt = 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) {
4088
4396
  let g = c || l, _ = [
4089
4397
  "textarea",
4090
4398
  i ? "error" : "",
4091
4399
  d
4092
4400
  ].filter(Boolean).join(" ");
4093
- return /* @__PURE__ */ n(m.Group, {
4401
+ return /* @__PURE__ */ n(p.Group, {
4094
4402
  className: `field${f ? ` ${f}` : ""}`,
4095
4403
  children: [
4096
- e && /* @__PURE__ */ n(m.Label, {
4404
+ e && /* @__PURE__ */ n(p.Label, {
4097
4405
  className: "label",
4098
4406
  htmlFor: g,
4099
4407
  children: [
4100
4408
  e,
4101
- o && /* @__PURE__ */ t(G, {
4409
+ o && /* @__PURE__ */ t(Y, {
4102
4410
  label: s,
4103
4411
  children: o
4104
4412
  }),
4105
- r && /* @__PURE__ */ t(U, {})
4413
+ r && /* @__PURE__ */ t(K, {})
4106
4414
  ]
4107
4415
  }),
4108
- /* @__PURE__ */ t(m.Control, {
4416
+ /* @__PURE__ */ t(p.Control, {
4109
4417
  as: "textarea",
4110
4418
  id: g,
4111
4419
  name: l,
@@ -4113,7 +4421,7 @@ var ut = i(function({ label: e, required: r = !1, error: i, hint: a, help: o, he
4113
4421
  className: _,
4114
4422
  "aria-invalid": i ? "true" : "false",
4115
4423
  ref: h,
4116
- ...p
4424
+ ...m
4117
4425
  }),
4118
4426
  i ? /* @__PURE__ */ t("div", {
4119
4427
  className: "field-error",
@@ -4126,4 +4434,43 @@ var ut = i(function({ label: e, required: r = !1, error: i, hint: a, help: o, he
4126
4434
  });
4127
4435
  });
4128
4436
  //#endregion
4129
- export { te as ActionIcon, ne as AppAlert, me as AppAutocomplete, ge as AppAvatar, _e as AppBadge, W as AppButton, ye as AppCard, be as AppCheckbox, xe as AppChip, Se as AppChoiceCard, Ce as AppChoiceChip, Ae as AppConfirmDialog, Le as AppDataTable, Re as AppDatePicker, Be as AppDropdown, Ve as AppEmptyState, We as AppFileAttachment, Ye as AppFilePicker, G as AppInfoTip, K as AppInput, Xe as AppLogoPicker, q as AppModal, Ze as AppMultiSelect, Qe as AppPageHeader, $e as AppPhoneNumberInput, et as AppRadio, tt as AppSearch, rt as AppSelect, Z as AppSelectMini, at as AppSidebarMenu, Y as AppSkeleton, X as AppSkeletonRows, ot as AppStatusBadge, st as AppSwitch, ct as AppTableEmptyState, Pe as AppTablePagination, lt as AppTabs, ut as AppTextarea, A as Icon, J as MODAL_ICONS, U as RequiredMark, Je as errorToast, $ as toast };
4437
+ //#region src/components/AppTimeline.jsx
4438
+ function yt({ items: e = [], className: r = "" }) {
4439
+ return /* @__PURE__ */ t("ol", {
4440
+ className: `timeline${r ? ` ${r}` : ""}`,
4441
+ children: e.map((e, r) => /* @__PURE__ */ n("li", {
4442
+ className: `timeline-item${e.tone && e.tone !== "neutral" ? ` ${e.tone}` : ""}`,
4443
+ children: [/* @__PURE__ */ t("span", {
4444
+ className: "timeline-dot",
4445
+ children: /* @__PURE__ */ t(x, {
4446
+ name: e.icon || "circle",
4447
+ size: 12
4448
+ })
4449
+ }), /* @__PURE__ */ n("div", {
4450
+ className: "timeline-body",
4451
+ children: [
4452
+ /* @__PURE__ */ t("div", {
4453
+ className: "timeline-title",
4454
+ children: e.title
4455
+ }),
4456
+ (e.at || e.by) && /* @__PURE__ */ n("div", {
4457
+ className: "timeline-meta",
4458
+ children: [e.at && /* @__PURE__ */ t("span", {
4459
+ className: "timeline-at",
4460
+ children: e.at
4461
+ }), e.by && /* @__PURE__ */ t("span", {
4462
+ className: "timeline-by",
4463
+ children: e.by
4464
+ })]
4465
+ }),
4466
+ e.note && /* @__PURE__ */ t("p", {
4467
+ className: "timeline-note",
4468
+ children: e.note
4469
+ })
4470
+ ]
4471
+ })]
4472
+ }, e.key ?? `${e.at}-${r}`))
4473
+ });
4474
+ }
4475
+ //#endregion
4476
+ export { S as ActionIcon, C as AppAccordion, w as AppAlert, pe as AppAutocomplete, he as AppAvatar, ge as AppBadge, J as AppButton, ve as AppCallout, ye as AppCard, be as AppCheckbox, xe as AppChip, Se as AppChoiceCard, Ce as AppChoiceChip, we as AppColorField, Te as AppCompareTable, Oe as AppConfirmDialog, Re as AppDataTable, ze as AppDatePicker, Ve as AppDropdown, He as AppEmptyState, Ue as AppFileAttachment, Ke as AppFilePicker, qe as AppInfoList, Y as AppInfoTip, X as AppInput, Je as AppKpiTile, Ye as AppLogoPicker, Z as AppModal, Xe as AppMultiSelect, Ze as AppPageHeader, Qe as AppPhoneNumberInput, $e as AppPricingCard, et as AppRadio, tt as AppRepeater, nt as AppResourceCard, rt as AppSearch, it as AppSegmented, ot as AppSelect, Ne as AppSelectMini, st as AppShell, ut as AppSidebarMenu, ke as AppSkeleton, Me as AppSkeletonRows, dt as AppSpinner, ft as AppSplash, pt as AppStatusBadge, mt as AppStepper, ht as AppSwitch, gt as AppTableEmptyState, Fe as AppTablePagination, _t as AppTabs, vt as AppTextarea, yt as AppTimeline, x as Icon, De as MODAL_ICONS, K as RequiredMark, Ge as errorToast, $ as toast };