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