@ahrowe/ui 0.1.20 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,19 +1,19 @@
1
1
  import e, { Component as t, PureComponent as n, forwardRef as r, useCallback as i, useEffect as a, useId as o, useImperativeHandle as s, useLayoutEffect as c, useMemo as l, useReducer as u, useRef as d, useState as f } from "react";
2
2
  import p from "classnames";
3
3
  import { FontAwesomeIcon as m } from "@fortawesome/react-fontawesome";
4
- import { faBell as h, faCheck as g, faChevronDown as _, faChevronLeft as v, faChevronRight as y, faChevronUp as b, faCircleCheck as x, faCircleInfo as S, faCircleXmark as C, faDoorOpen as w, faDownload as T, faDrawPolygon as E, faEnvelope as D, faEye as O, faEyeSlash as k, faGear as A, faHandPointer as j, faLayerGroup as M, faMagnifyingGlassMinus as N, faMagnifyingGlassPlus as P, faPen as F, faPhone as I, faPlus as L, faSearch as R, faSquare as z, faTrash as B, faTriangleExclamation as ee, faUpload as te, faXmark as ne, faXmarkCircle as V } from "@fortawesome/free-solid-svg-icons";
4
+ import { faBell as h, faCheck as g, faChevronDown as _, faChevronLeft as v, faChevronRight as y, faChevronUp as b, faCircleCheck as x, faCircleInfo as S, faCircleXmark as C, faDoorOpen as w, faDownload as T, faDrawPolygon as E, faEnvelope as D, faEye as O, faEyeSlash as k, faGear as A, faHandPointer as j, faLayerGroup as M, faMagnifyingGlassMinus as N, faMagnifyingGlassPlus as P, faPen as F, faPhone as I, faPlus as L, faSearch as R, faSquare as ee, faTrash as z, faTriangleExclamation as B, faUpload as te, faXmark as ne, faXmarkCircle as V } from "@fortawesome/free-solid-svg-icons";
5
5
  import { Fragment as re, jsx as H, jsxs as U } from "react/jsx-runtime";
6
6
  import { createPortal as ie } from "react-dom";
7
7
  import ae from "downshift";
8
- import W from "@mona-health/react-input-mask";
9
- import { DndContext as oe, DragOverlay as se, PointerSensor as ce, closestCorners as le, useDroppable as ue, useSensor as de, useSensors as G } from "@dnd-kit/core";
10
- import { SortableContext as fe, arrayMove as K, useSortable as pe, verticalListSortingStrategy as me } from "@dnd-kit/sortable";
11
- import { CSS as he } from "@dnd-kit/utilities";
12
- import { NumericFormat as ge } from "react-number-format";
8
+ import oe from "@mona-health/react-input-mask";
9
+ import { DndContext as W, DragOverlay as G, PointerSensor as se, closestCorners as ce, useDroppable as le, useSensor as ue, useSensors as de } from "@dnd-kit/core";
10
+ import { SortableContext as fe, arrayMove as pe, useSortable as me, verticalListSortingStrategy as he } from "@dnd-kit/sortable";
11
+ import { CSS as ge } from "@dnd-kit/utilities";
12
+ import { NumericFormat as _e } from "react-number-format";
13
13
  //#region package/common/accordion/accordion.types.ts
14
- var _e = /* @__PURE__ */ function(e) {
14
+ var ve = /* @__PURE__ */ function(e) {
15
15
  return e.Default = "default", e.Primary = "primary", e.Plain = "plain", e;
16
- }({}), ve = {
16
+ }({}), ye = {
17
17
  accordion: "accordion_YZt8B",
18
18
  "accordion-title": "accordion-title_CGYKY",
19
19
  accordionTitle: "accordion-title_CGYKY",
@@ -33,7 +33,7 @@ var _e = /* @__PURE__ */ function(e) {
33
33
  accordionIcon: "accordion-icon_kLqp-",
34
34
  "accordion-icon-active": "accordion-icon-active_lJwG8",
35
35
  accordionIconActive: "accordion-icon-active_lJwG8"
36
- }, ye = {
36
+ }, be = {
37
37
  accordion: "accordion_X64Nz",
38
38
  "accordion-title": "accordion-title_2q-FF",
39
39
  accordionTitle: "accordion-title_2q-FF",
@@ -53,7 +53,7 @@ var _e = /* @__PURE__ */ function(e) {
53
53
  accordionIcon: "accordion-icon_W1mz5",
54
54
  "accordion-icon-active": "accordion-icon-active_LI98q",
55
55
  accordionIconActive: "accordion-icon-active_LI98q"
56
- }, be = {
56
+ }, xe = {
57
57
  accordion: "accordion_wkZJf",
58
58
  "accordion-title": "accordion-title_-qwNy",
59
59
  accordionTitle: "accordion-title_-qwNy",
@@ -71,13 +71,13 @@ var _e = /* @__PURE__ */ function(e) {
71
71
  accordionIcon: "accordion-icon_kHxym",
72
72
  "accordion-icon-active": "accordion-icon-active_-L8BH",
73
73
  accordionIconActive: "accordion-icon-active_-L8BH"
74
- }, xe = {
75
- [_e.Default]: ve,
76
- [_e.Primary]: ye,
77
- [_e.Plain]: be
74
+ }, Se = {
75
+ [ve.Default]: ye,
76
+ [ve.Primary]: be,
77
+ [ve.Plain]: xe
78
78
  };
79
- function Se({ id: e = "", title: t = "", children: n = null, expanded: r = null, onHeaderClicked: i = () => {}, styleType: o = _e.Default, startOpen: s = !1, hideHeader: c = !1, className: l, style: u, classNames: h, styles: g, ...v }) {
80
- let y = xe[o], b = d(null), [x, S] = f(r ?? s), [C, w] = f(null);
79
+ function Ce({ id: e = "", title: t = "", children: n = null, expanded: r = null, onHeaderClicked: i = () => {}, styleType: o = ve.Default, startOpen: s = !1, hideHeader: c = !1, className: l, style: u, classNames: h, styles: g, ...v }) {
80
+ let y = Se[o], b = d(null), [x, S] = f(r ?? s), [C, w] = f(null);
81
81
  a(() => {
82
82
  r !== null && S(r);
83
83
  }, [r]), a(() => {
@@ -135,11 +135,11 @@ function Se({ id: e = "", title: t = "", children: n = null, expanded: r = null,
135
135
  })]
136
136
  });
137
137
  }
138
- var Ce = {
138
+ var we = {
139
139
  actionButtons: "actionButtons_7GybR",
140
140
  "actionButtons-margin": "actionButtons-margin_-XoFP",
141
141
  actionButtonsMargin: "actionButtons-margin_-XoFP"
142
- }, q = {
142
+ }, K = {
143
143
  button: "button_wYLPJ",
144
144
  "button-notAllowed": "button-notAllowed_xGT-E",
145
145
  buttonNotAllowed: "button-notAllowed_xGT-E",
@@ -171,7 +171,7 @@ var Ce = {
171
171
  buttonSizeMedium: "button-size-medium_gNVDM",
172
172
  "button-size-large": "button-size-large_xSIcS",
173
173
  buttonSizeLarge: "button-size-large_xSIcS"
174
- }, we = {
174
+ }, Te = {
175
175
  "spinner-loading": "spinner-loading_qbxX-",
176
176
  spinnerLoading: "spinner-loading_qbxX-",
177
177
  "animate-spinner": "animate-spinner_6HoVF",
@@ -180,10 +180,10 @@ var Ce = {
180
180
  };
181
181
  //#endregion
182
182
  //#region package/common/loading/spinnerLoading/spinnerLoading.tsx
183
- function Te({ className: e }) {
183
+ function Ee({ className: e }) {
184
184
  return /* @__PURE__ */ H("svg", {
185
185
  "data-testid": "spinner",
186
- className: p(we.spinnerLoading, e),
186
+ className: p(Te.spinnerLoading, e),
187
187
  xmlns: "http://www.w3.org/2000/svg",
188
188
  viewBox: "0 0 100 100",
189
189
  fill: "none",
@@ -196,25 +196,25 @@ function Te({ className: e }) {
196
196
  })
197
197
  });
198
198
  }
199
- Te.defaultProps = { className: void 0 };
199
+ Ee.defaultProps = { className: void 0 };
200
200
  //#endregion
201
201
  //#region package/common/loading/spinnerLoading/index.ts
202
- var Ee = Te, De = /* @__PURE__ */ function(e) {
202
+ var De = Ee, Oe = /* @__PURE__ */ function(e) {
203
203
  return e.Primary = "primary", e.Default = "default", e.Delete = "delete", e;
204
- }({}), Oe = /* @__PURE__ */ function(e) {
205
- return e.Default = "default", e.Small = "small", e.Medium = "medium", e.Large = "large", e;
206
204
  }({}), ke = /* @__PURE__ */ function(e) {
205
+ return e.Default = "default", e.Small = "small", e.Medium = "medium", e.Large = "large", e;
206
+ }({}), Ae = /* @__PURE__ */ function(e) {
207
207
  return e.Button = "button", e.Reset = "reset", e.Submit = "submit", e;
208
- }({}), Ae = {
208
+ }({}), je = {
209
209
  ripple: "ripple_TsvyF",
210
210
  "ripple-container": "ripple-container_QzHdC",
211
211
  rippleContainer: "ripple-container_QzHdC"
212
- }, je = r(function({ disabled: e = !1, children: t, className: n, style: r, overflowHidden: i = !0, rippleAnimationLength: o = .6, rippleBackground: c = "rgba(255, 255, 255, 0.2)", manualOnly: l = !1, ...u }, f) {
212
+ }, Me = r(function({ disabled: e = !1, children: t, className: n, style: r, overflowHidden: i = !0, rippleAnimationLength: o = .6, rippleBackground: c = "rgba(255, 255, 255, 0.2)", manualOnly: l = !1, ...u }, f) {
213
213
  let p = d(null), m = d(null);
214
214
  function h(t, n) {
215
215
  if (e) return;
216
216
  let r = document.createElement("div");
217
- r.style.left = `${t}px`, r.style.top = `${n}px`, r.style.background = c, r.classList.add(Ae.ripple), p.current?.appendChild(r), setTimeout(() => {
217
+ r.style.left = `${t}px`, r.style.top = `${n}px`, r.style.background = c, r.classList.add(je.ripple), p.current?.appendChild(r), setTimeout(() => {
218
218
  p.current?.removeChild(r);
219
219
  }, o * 1e3 + 50);
220
220
  }
@@ -237,7 +237,7 @@ var Ee = Te, De = /* @__PURE__ */ function(e) {
237
237
  }, [t, l]);
238
238
  let _ = { "--ripple-animation-length": `${o}s` };
239
239
  return t === void 0 ? /* @__PURE__ */ H("div", {
240
- className: Ae.rippleContainer,
240
+ className: je.rippleContainer,
241
241
  ref: p,
242
242
  style: {
243
243
  overflow: i ? "hidden" : "visible",
@@ -253,47 +253,47 @@ var Ee = Te, De = /* @__PURE__ */ function(e) {
253
253
  ...r
254
254
  },
255
255
  children: [t, /* @__PURE__ */ H("div", {
256
- className: Ae.rippleContainer,
256
+ className: je.rippleContainer,
257
257
  ref: p,
258
258
  style: _
259
259
  })]
260
260
  });
261
- }), Me = {
262
- default: q.buttonStyleDefault,
263
- primary: q.buttonStylePrimary,
264
- delete: q.buttonStyleDelete
265
- }, Ne = {
266
- default: q.buttonSizeDefault,
267
- small: q.buttonSizeSmall,
268
- medium: q.buttonSizeMedium,
269
- large: q.buttonSizeLarge
261
+ }), Ne = {
262
+ default: K.buttonStyleDefault,
263
+ primary: K.buttonStylePrimary,
264
+ delete: K.buttonStyleDelete
265
+ }, Pe = {
266
+ default: K.buttonSizeDefault,
267
+ small: K.buttonSizeSmall,
268
+ medium: K.buttonSizeMedium,
269
+ large: K.buttonSizeLarge
270
270
  };
271
- function J({ className: e, style: t, type: n = ke.Button, styleType: r = De.Default, size: i = Oe.Default, onClick: a = () => {}, children: o, icon: s, isLoading: c = !1, disabled: l = !1, title: u = void 0, ref: d, classNames: f, styles: h, ...g }) {
271
+ function q({ className: e, style: t, type: n = Ae.Button, styleType: r = Oe.Default, size: i = ke.Default, onClick: a = () => {}, children: o, icon: s, isLoading: c = !1, disabled: l = !1, title: u = void 0, ref: d, classNames: f, styles: h, ...g }) {
272
272
  return /* @__PURE__ */ H("button", {
273
273
  ...g,
274
- className: p(q.button, Me[r], Ne[i], { [q.buttonNotAllowed]: c || l }, e),
274
+ className: p(K.button, Ne[r], Pe[i], { [K.buttonNotAllowed]: c || l }, e),
275
275
  style: t,
276
276
  type: n,
277
277
  onClick: a,
278
278
  disabled: l || c,
279
279
  title: u,
280
280
  ref: d,
281
- children: /* @__PURE__ */ H(je, {
281
+ children: /* @__PURE__ */ H(Me, {
282
282
  disabled: c || l,
283
283
  children: /* @__PURE__ */ H("div", {
284
- className: p(q.buttonBackground, f?.background),
284
+ className: p(K.buttonBackground, f?.background),
285
285
  style: h?.background,
286
286
  children: /* @__PURE__ */ U("div", {
287
- className: p(q.buttonContent, f?.content),
287
+ className: p(K.buttonContent, f?.content),
288
288
  style: h?.content,
289
289
  children: [c ? /* @__PURE__ */ H("div", {
290
- className: p(q.buttonLoadingContainer, f?.loadingContainer),
290
+ className: p(K.buttonLoadingContainer, f?.loadingContainer),
291
291
  style: h?.loadingContainer,
292
- children: /* @__PURE__ */ H(Ee, { className: q.buttonLoadingIcon })
292
+ children: /* @__PURE__ */ H(De, { className: K.buttonLoadingIcon })
293
293
  }) : null, /* @__PURE__ */ U("div", {
294
294
  className: p(f?.label, {
295
- [q.buttonLoading]: c,
296
- [q.buttonWithIcon]: !!s
295
+ [K.buttonLoading]: c,
296
+ [K.buttonWithIcon]: !!s
297
297
  }),
298
298
  style: h?.label,
299
299
  children: [s ? /* @__PURE__ */ H(m, { icon: s }) : null, o]
@@ -303,28 +303,28 @@ function J({ className: e, style: t, type: n = ke.Button, styleType: r = De.Defa
303
303
  })
304
304
  });
305
305
  }
306
- J.StyleType = De, J.Size = Oe, J.Type = ke;
306
+ q.StyleType = Oe, q.Size = ke, q.Type = Ae;
307
307
  //#endregion
308
308
  //#region package/common/actionButtons/actionButtons.tsx
309
- function Pe({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = De.Primary, isSubmitButtonLoading: a = !1, isSubmitButtonDisabled: o = !1, submitButtonIcon: s = void 0, cancelButtonStyle: c = De.Default, isCancelButtonLoading: l = !1, isCancelButtonDisabled: u = !1, cancelButtonIcon: d = void 0, hidePrimaryButton: f = !1, hideSecondaryButton: m = !1, noMargin: h = !1, className: g, style: _, classNames: v, styles: y, ...b }) {
309
+ function Fe({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = Oe.Primary, isSubmitButtonLoading: a = !1, isSubmitButtonDisabled: o = !1, submitButtonIcon: s = void 0, cancelButtonStyle: c = Oe.Default, isCancelButtonLoading: l = !1, isCancelButtonDisabled: u = !1, cancelButtonIcon: d = void 0, hidePrimaryButton: f = !1, hideSecondaryButton: m = !1, noMargin: h = !1, className: g, style: _, classNames: v, styles: y, ...b }) {
310
310
  return /* @__PURE__ */ U("div", {
311
311
  ...b,
312
- className: p(Ce.actionButtons, !h && Ce.actionButtonsMargin, g, v?.root),
312
+ className: p(we.actionButtons, !h && we.actionButtonsMargin, g, v?.root),
313
313
  style: {
314
314
  ..._,
315
315
  ...y?.root
316
316
  },
317
- children: [!f && /* @__PURE__ */ H(J, {
317
+ children: [!f && /* @__PURE__ */ H(q, {
318
318
  isLoading: a,
319
319
  disabled: o,
320
320
  styleType: i,
321
- type: ke.Submit,
321
+ type: Ae.Submit,
322
322
  onClick: e,
323
323
  className: v?.submitButton,
324
324
  style: y?.submitButton,
325
325
  icon: s,
326
326
  children: n
327
- }), !m && /* @__PURE__ */ H(J, {
327
+ }), !m && /* @__PURE__ */ H(q, {
328
328
  isLoading: l,
329
329
  disabled: u,
330
330
  onClick: t,
@@ -336,12 +336,12 @@ function Pe({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n
336
336
  })]
337
337
  });
338
338
  }
339
- var Fe = { interactableDiv: "interactableDiv_Ej8Fi" }, Ie = e.forwardRef(({ className: e, children: t, onClick: n, onMouseDown: r, onKeyDown: a, tabIndex: o = 0, title: s, ...c }, l) => {
339
+ var Ie = { interactableDiv: "interactableDiv_Ej8Fi" }, Le = e.forwardRef(({ className: e, children: t, onClick: n, onMouseDown: r, onKeyDown: a, tabIndex: o = 0, title: s, ...c }, l) => {
340
340
  let u = i((e) => {
341
341
  e.key === "Enter" && n?.(e), a?.(e);
342
342
  }, [n, a]);
343
343
  return /* @__PURE__ */ H("div", {
344
- className: p(Fe.interactableDiv, e),
344
+ className: p(Ie.interactableDiv, e),
345
345
  onClick: n,
346
346
  onMouseDown: r,
347
347
  tabIndex: o ?? 0,
@@ -353,16 +353,16 @@ var Fe = { interactableDiv: "interactableDiv_Ej8Fi" }, Ie = e.forwardRef(({ clas
353
353
  children: t
354
354
  });
355
355
  });
356
- Ie.displayName = "InteractableDiv";
356
+ Le.displayName = "InteractableDiv";
357
357
  //#endregion
358
358
  //#region package/common/interactableDiv/index.ts
359
- var Le = Ie, Re = { actionIcon: "actionIcon_ganSq" };
359
+ var Re = Le, ze = { actionIcon: "actionIcon_ganSq" };
360
360
  //#endregion
361
361
  //#region package/common/actionIcon/actionIcon.tsx
362
- function ze({ icon: e, className: t = "", style: n, title: r = "", onClick: i = () => {}, classNames: a, styles: o, ...s }) {
363
- return /* @__PURE__ */ H(Le, {
362
+ function Be({ icon: e, className: t = "", style: n, title: r = "", onClick: i = () => {}, classNames: a, styles: o, ...s }) {
363
+ return /* @__PURE__ */ H(Re, {
364
364
  ...s,
365
- className: p(Re.actionIcon, t, a?.root),
365
+ className: p(ze.actionIcon, t, a?.root),
366
366
  style: {
367
367
  ...n,
368
368
  ...o?.root
@@ -378,15 +378,15 @@ function ze({ icon: e, className: t = "", style: n, title: r = "", onClick: i =
378
378
  }
379
379
  //#endregion
380
380
  //#region package/common/bodyEnd/bodyEnd.tsx
381
- function Be({ children: e = null }) {
381
+ function Ve({ children: e = null }) {
382
382
  let t = document.getElementById("bodyEnd");
383
383
  return t ? ie(e, t) : (typeof process < "u" && process.env.NODE_ENV !== "production" && console.error("[BodyEnd] No element with id=\"bodyEnd\" found. Add <div id=\"bodyEnd\"></div> to your app root."), null);
384
384
  }
385
385
  //#endregion
386
386
  //#region package/common/card/card.types.ts
387
- var Ve = /* @__PURE__ */ function(e) {
387
+ var He = /* @__PURE__ */ function(e) {
388
388
  return e.Elevated = "elevated", e.Outlined = "outlined", e.Filled = "filled", e;
389
- }({}), He = {
389
+ }({}), Ue = {
390
390
  card: "card_w-6Ki",
391
391
  "card-padding": "card-padding_X2-q-",
392
392
  cardPadding: "card-padding_X2-q-",
@@ -415,20 +415,20 @@ var Ve = /* @__PURE__ */ function(e) {
415
415
  cardHeaderTitlesSub: "cardHeader-titles-sub_2X08b",
416
416
  cardMedia: "cardMedia_GZJQF",
417
417
  cardActions: "cardActions_uYu-0"
418
- }, Ue = {
419
- elevated: He.cardStyleElevated,
420
- outlined: He.cardStyleOutlined,
421
- filled: He.cardStyleFilled
418
+ }, We = {
419
+ elevated: Ue.cardStyleElevated,
420
+ outlined: Ue.cardStyleOutlined,
421
+ filled: Ue.cardStyleFilled
422
422
  };
423
- function We({ className: e = void 0, children: t = null, styleType: n = Ve.Elevated, onClick: r = void 0, tabIndex: i = null, hoverEffect: a = void 0, style: o = void 0, ...s }) {
423
+ function Ge({ className: e = void 0, children: t = null, styleType: n = He.Elevated, onClick: r = void 0, tabIndex: i = null, hoverEffect: a = void 0, style: o = void 0, ...s }) {
424
424
  let c = !!r;
425
- return /* @__PURE__ */ H(Le, {
425
+ return /* @__PURE__ */ H(Re, {
426
426
  ...s,
427
- className: p(He.card, He.cardPadding, Ue[n], c && He.cardInteractable, (c && a !== !1 || a) && He.cardHover, e),
427
+ className: p(Ue.card, Ue.cardPadding, We[n], c && Ue.cardInteractable, (c && a !== !1 || a) && Ue.cardHover, e),
428
428
  onClick: r,
429
429
  tabIndex: i ?? (c ? 0 : null),
430
430
  style: o,
431
- children: /* @__PURE__ */ H(je, {
431
+ children: /* @__PURE__ */ H(Me, {
432
432
  disabled: !c,
433
433
  overflowHidden: !1,
434
434
  children: t
@@ -437,24 +437,24 @@ function We({ className: e = void 0, children: t = null, styleType: n = Ve.Eleva
437
437
  }
438
438
  //#endregion
439
439
  //#region package/common/card/CardHeader.tsx
440
- function Ge({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r = "", actions: i = void 0 }) {
440
+ function Ke({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r = "", actions: i = void 0 }) {
441
441
  let a = typeof r == "string" && r.startsWith("http") ? r : void 0;
442
442
  return /* @__PURE__ */ U("div", {
443
- className: p(He.cardHeader, e),
443
+ className: p(Ue.cardHeader, e),
444
444
  children: [r && /* @__PURE__ */ H("div", {
445
- className: He.cardHeaderThumbnail,
445
+ className: Ue.cardHeaderThumbnail,
446
446
  style: a ? { backgroundImage: `url(${a})` } : {},
447
447
  children: !a && r
448
448
  }), /* @__PURE__ */ U("div", {
449
- className: He.cardHeaderTitles,
449
+ className: Ue.cardHeaderTitles,
450
450
  children: [/* @__PURE__ */ U("div", {
451
- className: He.cardHeaderTitlesMainContainer,
451
+ className: Ue.cardHeaderTitlesMainContainer,
452
452
  children: [/* @__PURE__ */ H("div", {
453
- className: He.cardHeaderTitlesMain,
453
+ className: Ue.cardHeaderTitlesMain,
454
454
  children: t
455
455
  }), /* @__PURE__ */ H("div", {
456
- className: He.cardHeaderActions,
457
- children: Array.isArray(i) ? i.map((e, t) => /* @__PURE__ */ H(ze, {
456
+ className: Ue.cardHeaderActions,
457
+ children: Array.isArray(i) ? i.map((e, t) => /* @__PURE__ */ H(Be, {
458
458
  title: e.title,
459
459
  onClick: e.onClick ? (t) => {
460
460
  t.stopPropagation(), e.onClick?.(t);
@@ -463,7 +463,7 @@ function Ge({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r =
463
463
  }, t)) : i
464
464
  })]
465
465
  }), /* @__PURE__ */ H("div", {
466
- className: He.cardHeaderTitlesSub,
466
+ className: Ue.cardHeaderTitlesSub,
467
467
  children: n
468
468
  })]
469
469
  })]
@@ -471,31 +471,31 @@ function Ge({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r =
471
471
  }
472
472
  //#endregion
473
473
  //#region package/common/card/CardMedia.tsx
474
- function Ke({ src: e = "", alt: t = "" }) {
474
+ function qe({ src: e = "", alt: t = "" }) {
475
475
  return /* @__PURE__ */ H("img", {
476
- className: He.cardMedia,
476
+ className: Ue.cardMedia,
477
477
  src: e,
478
478
  alt: t
479
479
  });
480
480
  }
481
481
  //#endregion
482
482
  //#region package/common/card/CardContent.tsx
483
- function qe({ children: e = null }) {
483
+ function Je({ children: e = null }) {
484
484
  return /* @__PURE__ */ H(re, { children: e });
485
485
  }
486
486
  //#endregion
487
487
  //#region package/common/card/CardActions.tsx
488
- function Je({ className: e = "", actions: t = [], children: n = null }) {
488
+ function Ye({ className: e = "", actions: t = [], children: n = null }) {
489
489
  return /* @__PURE__ */ U("div", {
490
- className: p(He.cardActions, e),
491
- children: [t.map(({ id: e, onClick: t, label: n, styleType: r = De.Default }) => /* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(J, {
490
+ className: p(Ue.cardActions, e),
491
+ children: [t.map(({ id: e, onClick: t, label: n, styleType: r = Oe.Default }) => /* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(q, {
492
492
  onClick: t,
493
493
  styleType: r,
494
494
  children: n
495
495
  }) }, e ?? n)), n]
496
496
  });
497
497
  }
498
- var Ye = {
498
+ var Xe = {
499
499
  checkbox: "checkbox_VO3c2",
500
500
  "checkbox-icon": "checkbox-icon_7O0Hm",
501
501
  checkboxIcon: "checkbox-icon_7O0Hm",
@@ -514,7 +514,7 @@ var Ye = {
514
514
  };
515
515
  //#endregion
516
516
  //#region package/common/checkbox/checkbox.tsx
517
- function Xe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className: r = "", style: i, disabled: o = !1, lineHeight: s = "", title: c = "", tabIndex: l = 0, cursorDefault: u = !1, width: m = "17px", height: h = "17px", formValidator: g = null, children: _ = null, background: v = null, isLoading: y = !1, classNames: b, styles: x, ...S }) {
517
+ function Ze({ label: e = "", selected: t = !1, onToggle: n = () => {}, className: r = "", style: i, disabled: o = !1, lineHeight: s = "", title: c = "", tabIndex: l = 0, cursorDefault: u = !1, width: m = "17px", height: h = "17px", formValidator: g = null, children: _ = null, background: v = null, isLoading: y = !1, classNames: b, styles: x, ...S }) {
518
518
  let C = d(null), [, w] = f(0);
519
519
  a(() => {
520
520
  if (!g) return;
@@ -527,9 +527,9 @@ function Xe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
527
527
  let E = g ? g.value : t;
528
528
  return /* @__PURE__ */ U("div", {
529
529
  ...S,
530
- className: p(Ye.checkbox, {
531
- [Ye.checkboxDisabled]: o,
532
- [Ye.checkboxPointer]: !u
530
+ className: p(Xe.checkbox, {
531
+ [Xe.checkboxDisabled]: o,
532
+ [Xe.checkboxPointer]: !u
533
533
  }, r),
534
534
  style: i,
535
535
  onClick: T,
@@ -541,22 +541,22 @@ function Xe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
541
541
  tabIndex: l,
542
542
  children: [/* @__PURE__ */ H("div", {
543
543
  title: c,
544
- className: p(Ye.checkboxIcon, y ? Ye.checkboxLoading : null, b?.icon),
544
+ className: p(Xe.checkboxIcon, y ? Xe.checkboxLoading : null, b?.icon),
545
545
  style: x?.icon,
546
546
  children: y ? /* @__PURE__ */ H("div", {
547
547
  style: {
548
548
  width: m,
549
549
  height: h
550
550
  },
551
- children: /* @__PURE__ */ H(Ee, { className: Ye.checkboxLoadingSpinner })
551
+ children: /* @__PURE__ */ H(De, { className: Xe.checkboxLoadingSpinner })
552
552
  }) : /* @__PURE__ */ U("div", {
553
553
  style: {
554
554
  width: m,
555
555
  height: h,
556
556
  ...x?.checkmark
557
557
  },
558
- className: p(Ye.checkboxCheckmark, E && Ye.checkboxCheckmarkChecked, b?.checkmark),
559
- children: [/* @__PURE__ */ H(je, {
558
+ className: p(Xe.checkboxCheckmark, E && Xe.checkboxCheckmarkChecked, b?.checkmark),
559
+ children: [/* @__PURE__ */ H(Me, {
560
560
  ref: C,
561
561
  manualOnly: !0,
562
562
  overflowHidden: !1,
@@ -589,9 +589,9 @@ function Xe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
589
589
  }
590
590
  //#endregion
591
591
  //#region package/common/chip/chip.types.ts
592
- var Ze = /* @__PURE__ */ function(e) {
592
+ var Qe = /* @__PURE__ */ function(e) {
593
593
  return e.Default = "default", e.Primary = "primary", e.Info = "info", e.Warn = "warn", e.Error = "error", e;
594
- }({}), Qe = {
594
+ }({}), $e = {
595
595
  chip: "chip_rCTMl",
596
596
  "chip-clickable": "chip-clickable_WTVjG",
597
597
  chipClickable: "chip-clickable_WTVjG",
@@ -615,37 +615,37 @@ var Ze = /* @__PURE__ */ function(e) {
615
615
  chipContainer: "chip-container_oNNmF",
616
616
  "chip-container-inline": "chip-container-inline_11QHw",
617
617
  chipContainerInline: "chip-container-inline_11QHw"
618
- }, $e = {
619
- default: Qe.chipStyleDefault,
620
- primary: Qe.chipStylePrimary,
621
- info: Qe.chipStyleInfo,
622
- warn: Qe.chipStyleWarn,
623
- error: Qe.chipStyleError
618
+ }, et = {
619
+ default: $e.chipStyleDefault,
620
+ primary: $e.chipStylePrimary,
621
+ info: $e.chipStyleInfo,
622
+ warn: $e.chipStyleWarn,
623
+ error: $e.chipStyleError
624
624
  };
625
- function et({ className: e = "", thumbnail: t = "", text: n = "", styleType: r = Ze.Default, showRemoveIcon: i = !1, onClick: a, onRemove: o, ...s }) {
625
+ function tt({ className: e = "", thumbnail: t = "", text: n = "", styleType: r = Qe.Default, showRemoveIcon: i = !1, onClick: a, onRemove: o, ...s }) {
626
626
  let c = l(() => {
627
627
  if (typeof t == "string" && t.startsWith("http")) return t;
628
628
  }, [t]);
629
629
  return /* @__PURE__ */ H("div", {
630
630
  ...s,
631
- className: p(Qe.chip, $e[r], a && Qe.chipClickable, e),
631
+ className: p($e.chip, et[r], a && $e.chipClickable, e),
632
632
  onClick: a,
633
- children: /* @__PURE__ */ H(je, {
633
+ children: /* @__PURE__ */ H(Me, {
634
634
  disabled: !a,
635
635
  style: { borderRadius: "inherit" },
636
636
  children: /* @__PURE__ */ U("div", {
637
- className: Qe.chipInner,
637
+ className: $e.chipInner,
638
638
  children: [
639
639
  t && /* @__PURE__ */ H("div", {
640
- className: Qe.chipThumbnail,
640
+ className: $e.chipThumbnail,
641
641
  style: c ? { backgroundImage: `url(${c})` } : {},
642
642
  children: !c && t
643
643
  }),
644
644
  /* @__PURE__ */ H("div", {
645
- className: Qe.chipText,
645
+ className: $e.chipText,
646
646
  children: n
647
647
  }),
648
- i && /* @__PURE__ */ H(ze, {
648
+ i && /* @__PURE__ */ H(Be, {
649
649
  icon: V,
650
650
  onClick: (e) => {
651
651
  e.stopPropagation(), o?.();
@@ -658,14 +658,14 @@ function et({ className: e = "", thumbnail: t = "", text: n = "", styleType: r =
658
658
  }
659
659
  //#endregion
660
660
  //#region package/common/chip/chipContainer.tsx
661
- function tt({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
661
+ function nt({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
662
662
  return /* @__PURE__ */ H("div", {
663
663
  ...r,
664
- className: p(Qe.chipContainer, n && Qe.chipContainerInline, e),
664
+ className: p($e.chipContainer, n && $e.chipContainerInline, e),
665
665
  children: t
666
666
  });
667
667
  }
668
- var nt = {
668
+ var rt = {
669
669
  floatingMenu: "floatingMenu_E1XCy",
670
670
  "floatingMenu-content": "floatingMenu-content_AmxkA",
671
671
  floatingMenuContent: "floatingMenu-content_AmxkA",
@@ -688,15 +688,15 @@ var nt = {
688
688
  "floatingMenu-anim": "floatingMenu-anim_5KB-f",
689
689
  floatingMenuAnim: "floatingMenu-anim_5KB-f",
690
690
  showMenu: "showMenu_AprCh"
691
- }, rt = /* @__PURE__ */ function(e) {
691
+ }, it = /* @__PURE__ */ function(e) {
692
692
  return e.Left = "left", e.Right = "right", e.Center = "center", e;
693
693
  }({});
694
694
  //#endregion
695
695
  //#region package/common/floatingMenu/floatingMenu.tsx
696
- function it(e) {
696
+ function at(e) {
697
697
  return e.charAt(0).toUpperCase() + e.slice(1);
698
698
  }
699
- function at({ align: e = rt.Left, children: t = null, content: n = null, isOpen: r = !1, onOpenChange: i = () => {}, dontCloseOnChildClick: o = !1, className: s, style: c, classNames: l, styles: u, ...m }) {
699
+ function ot({ align: e = it.Left, children: t = null, content: n = null, isOpen: r = !1, onOpenChange: i = () => {}, dontCloseOnChildClick: o = !1, className: s, style: c, classNames: l, styles: u, ...m }) {
700
700
  let h = d(null), g = d(null), _ = d(i), [v, y] = f(10), [b, x] = f(null);
701
701
  a(() => {
702
702
  _.current = i;
@@ -733,19 +733,19 @@ function at({ align: e = rt.Left, children: t = null, content: n = null, isOpen:
733
733
  return window.addEventListener("mouseup", e), () => window.removeEventListener("mouseup", e);
734
734
  }, [r, o]), /* @__PURE__ */ U("div", {
735
735
  ...m,
736
- className: p(nt.floatingMenu, s, l?.root),
736
+ className: p(rt.floatingMenu, s, l?.root),
737
737
  style: {
738
738
  ...c,
739
739
  ...u?.root
740
740
  },
741
741
  children: [/* @__PURE__ */ H("div", {
742
- className: p(nt.floatingMenuContent, l?.trigger),
742
+ className: p(rt.floatingMenuContent, l?.trigger),
743
743
  style: u?.trigger,
744
744
  ref: g,
745
745
  onClick: S,
746
746
  children: t
747
747
  }), r && /* @__PURE__ */ U("div", {
748
- className: p(nt.floatingMenuAnim, l?.menu),
748
+ className: p(rt.floatingMenuAnim, l?.menu),
749
749
  style: {
750
750
  width: `${v}px`,
751
751
  ...b && {
@@ -754,16 +754,16 @@ function at({ align: e = rt.Left, children: t = null, content: n = null, isOpen:
754
754
  },
755
755
  ...u?.menu
756
756
  },
757
- children: [/* @__PURE__ */ H("div", { className: p(nt.floatingMenuContainerFlag, nt[`floatingMenuContainerFlagAlign${it(e)}`]) }), /* @__PURE__ */ H("div", {
757
+ children: [/* @__PURE__ */ H("div", { className: p(rt.floatingMenuContainerFlag, rt[`floatingMenuContainerFlagAlign${at(e)}`]) }), /* @__PURE__ */ H("div", {
758
758
  ref: h,
759
- className: p(nt.floatingMenuContainer, nt[`floatingMenuContainerAlign${it(e)}`], l?.menuContainer),
759
+ className: p(rt.floatingMenuContainer, rt[`floatingMenuContainerAlign${at(e)}`], l?.menuContainer),
760
760
  style: u?.menuContainer,
761
761
  children: n
762
762
  })]
763
763
  })]
764
764
  });
765
765
  }
766
- var ot = {
766
+ var st = {
767
767
  tooltipBubble: "tooltipBubble_uyev0",
768
768
  tooltipDetails: "tooltipDetails_R7N16",
769
769
  "tooltipDetails-icon": "tooltipDetails-icon_rsjns",
@@ -772,30 +772,30 @@ var ot = {
772
772
  };
773
773
  //#endregion
774
774
  //#region package/common/tooltip/tooltip.tsx
775
- function st({ variant: e, message: t = "", isVisible: n = !0, tooltipPosition: r, onClick: i }) {
775
+ function ct({ variant: e, message: t = "", isVisible: n = !0, tooltipPosition: r, onClick: i }) {
776
776
  let [a, o] = f(!1);
777
777
  return e === "info" ? n ? /* @__PURE__ */ H("div", {
778
- className: p(ot.tooltipBubble, r),
778
+ className: p(st.tooltipBubble, r),
779
779
  onClick: i,
780
780
  children: t
781
781
  }) : null : e === "details" ? /* @__PURE__ */ U("div", {
782
- className: ot.tooltipDetails,
782
+ className: st.tooltipDetails,
783
783
  children: [/* @__PURE__ */ H("span", {
784
- className: ot.tooltipDetailsIcon,
784
+ className: st.tooltipDetailsIcon,
785
785
  onMouseEnter: () => o(!0),
786
786
  onMouseLeave: () => o(!1),
787
787
  children: "?"
788
788
  }), a && /* @__PURE__ */ H("div", {
789
- className: p(ot.tooltipBubble, r),
789
+ className: p(st.tooltipBubble, r),
790
790
  children: t
791
791
  })]
792
792
  }) : e === "error" && n ? /* @__PURE__ */ H("div", {
793
- className: p(ot.tooltipError, r),
793
+ className: p(st.tooltipError, r),
794
794
  onClick: i,
795
795
  children: t
796
796
  }) : null;
797
797
  }
798
- var Y = {
798
+ var J = {
799
799
  "required-mark": "required-mark_xGJdX",
800
800
  requiredMark: "required-mark_xGJdX",
801
801
  isRequired: "isRequired_Jkn3h",
@@ -867,185 +867,185 @@ var Y = {
867
867
  inputFieldIconNotClickable: "input-field-icon-notClickable_7j24I",
868
868
  "input-error": "input-error_LIG23",
869
869
  inputError: "input-error_LIG23"
870
- }, ct = /* @__PURE__ */ function(e) {
870
+ }, Y = /* @__PURE__ */ function(e) {
871
871
  return e.Edit = "edit", e.Phone = "phone", e.Email = "email", e.Iban = "iban", e.Date = "date", e.HasNoIcon = "hasNoIcon", e.Search = "searchInput", e.Password = "password", e;
872
872
  }({});
873
873
  //#endregion
874
874
  //#region package/common/input/input.tsx
875
- function lt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: u = null, onChange: h = () => {}, onFocus: g = null, onBlur: _ = null, onMouseEnter: v = null, onMouseLeave: y = null, isUppercase: b = !1, isRequired: x = !1, tabIndex: S = 0, type: C = void 0, isRow: w = !1, onIconClick: T = null, parse: E = null, formValidator: A = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: P = !1, showCancel: L = !1, onClearClicked: z, min: B = null, max: ee = null, placeholder: te = "", useMatLabelStyle: V = !0, autoComplete: re = null, onClick: ie = () => null, readOnly: ae = !1, customInput: W, alwaysShowCancel: oe = !1, multiline: se = !1, rows: ce, autoResize: le = !1, classNames: ue, styles: de, disabled: G = !1, ...fe }) {
876
- let [K, pe] = f(!1), [me, he] = f(!1), [ge, _e] = f(!1), [, ve] = f(0), ye = d(null), be = d(A), xe = i(() => {
877
- let e = ye.current;
878
- !e || !le || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
879
- }, [le]);
875
+ function lt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: u = null, onChange: h = () => {}, onFocus: g = null, onBlur: _ = null, onMouseEnter: v = null, onMouseLeave: y = null, isUppercase: b = !1, isRequired: x = !1, tabIndex: S = 0, type: C = void 0, isRow: w = !1, onIconClick: T = null, parse: E = null, formValidator: A = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: P = !1, showCancel: L = !1, onClearClicked: ee, min: z = null, max: B = null, placeholder: te = "", useMatLabelStyle: V = !0, autoComplete: re = null, onClick: ie = () => null, readOnly: ae = !1, customInput: oe, alwaysShowCancel: W = !1, multiline: G = !1, rows: se, autoResize: ce = !1, classNames: le, styles: ue, disabled: de = !1, ...fe }) {
876
+ let [pe, me] = f(!1), [he, ge] = f(!1), [_e, ve] = f(!1), [, ye] = f(0), be = d(null), xe = d(A), Se = i(() => {
877
+ let e = be.current;
878
+ !e || !ce || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
879
+ }, [ce]);
880
880
  a(() => {
881
881
  setTimeout(() => {
882
- pe(!1), he(!1);
883
- }, 1), xe();
882
+ me(!1), ge(!1);
883
+ }, 1), Se();
884
884
  }, []), a(() => {
885
- j && ye.current && setTimeout(() => {
886
- ye.current?.focus();
885
+ j && be.current && setTimeout(() => {
886
+ be.current?.focus();
887
887
  }, 1);
888
888
  }, [j]), a(() => {
889
- be.current = A;
890
- let e = be.current;
889
+ xe.current = A;
890
+ let e = xe.current;
891
891
  if (!e) return;
892
892
  e.label = n ?? "", e.validate();
893
- let t = () => ve((e) => e + 1);
893
+ let t = () => ye((e) => e + 1);
894
894
  return e.registerOnUpdateListener(t), () => {
895
895
  e.removeOnUpdateListener(t);
896
896
  };
897
897
  }, [A, n]);
898
- let Se = () => A ? A.touched && A.hasError() : !o || !!r, Ce = () => !!(x || A && A.validators.find((e) => e.validatorId === "required")), q = (e) => {
899
- he(!0), v && v(e);
900
- }, we = (e) => {
901
- he(!1), y && y(e);
898
+ let Ce = () => A ? A.touched && A.hasError() : !o || !!r, we = () => !!(x || A && A.validators.find((e) => e.validatorId === "required")), K = (e) => {
899
+ ge(!0), v && v(e);
902
900
  }, Te = (e) => {
903
- pe(!0), g && g(e);
901
+ ge(!1), y && y(e);
904
902
  }, Ee = (e) => {
905
- be.current && (be.current.touched = !0), pe(!1), _ && _(e);
903
+ me(!0), g && g(e);
906
904
  }, De = (e) => {
905
+ xe.current && (xe.current.touched = !0), me(!1), _ && _(e);
906
+ }, Oe = (e) => {
907
907
  let t, n;
908
- typeof e == "string" ? n = e : (t = e, n = e.target.value), E && (n = E(n)), A && A.set(n), h && h(n, t), xe();
909
- }, Oe = () => {
910
- if (C !== "email") return C === "password" && ge ? "text" : C;
911
- }, ke = C && C !== ct.Date && C !== ct.Iban && C !== ct.HasNoIcon, Ae = ke && !V && (C === ct.Email || C === ct.Phone || C === ct.Search), je = {
912
- className: p(Y.inputFieldIcon, {
913
- [Y.inputFieldIconNotClickable]: !T,
914
- [Y.inputFieldIconLeft]: Ae
908
+ typeof e == "string" ? n = e : (t = e, n = e.target.value), E && (n = E(n)), A && A.set(n), h && h(n, t), Se();
909
+ }, ke = () => {
910
+ if (C !== "email") return C === "password" && _e ? "text" : C;
911
+ }, Ae = C && C !== Y.Date && C !== Y.Iban && C !== Y.HasNoIcon, je = Ae && !V && (C === Y.Email || C === Y.Phone || C === Y.Search), Me = {
912
+ className: p(J.inputFieldIcon, {
913
+ [J.inputFieldIconNotClickable]: !T,
914
+ [J.inputFieldIconLeft]: je
915
915
  }),
916
916
  onClick: T ?? void 0
917
- }, Me = {
918
- className: p(Y.inputFieldIcon, Y.inputFieldIconPassword),
919
- onClick: () => _e(!ge)
920
- }, Ne = Se(), J = n;
921
- J && Ce() && (J = `${J} *`);
922
- let Pe = A ? A.value : l, Fe = V && (K || Pe || C === ct.Date);
917
+ }, Ne = {
918
+ className: p(J.inputFieldIcon, J.inputFieldIconPassword),
919
+ onClick: () => ve(!_e)
920
+ }, Pe = Ce(), q = n;
921
+ q && we() && (q = `${q} *`);
922
+ let Fe = A ? A.value : l, Ie = V && (pe || Fe || C === Y.Date);
923
923
  return /* @__PURE__ */ U("div", {
924
- className: p(Y.input, s),
924
+ className: p(J.input, s),
925
925
  style: c,
926
926
  children: [
927
927
  /* @__PURE__ */ U("label", {
928
928
  htmlFor: t,
929
- className: p(Y.inputLabel, ue?.label, {
930
- [Y.inputLabelColumn]: !w,
931
- [Y.inputLabelInBorder]: P
929
+ className: p(J.inputLabel, le?.label, {
930
+ [J.inputLabelColumn]: !w,
931
+ [J.inputLabelInBorder]: P
932
932
  }),
933
- style: de?.label,
933
+ style: ue?.label,
934
934
  children: [
935
- J && !V ? /* @__PURE__ */ U("span", {
936
- className: Y.inputLabelText,
937
- children: [`${J} `, Ce() ? /* @__PURE__ */ H("span", {
938
- className: p(Y.isRequired),
935
+ q && !V ? /* @__PURE__ */ U("span", {
936
+ className: J.inputLabelText,
937
+ children: [`${q} `, we() ? /* @__PURE__ */ H("span", {
938
+ className: p(J.isRequired),
939
939
  children: "\xA0 *"
940
940
  }) : null]
941
941
  }) : null,
942
942
  N && /* @__PURE__ */ H("div", {
943
- className: p(Y.inputUpperRightLabel, ue?.upperRightLabel),
944
- style: de?.upperRightLabel,
943
+ className: p(J.inputUpperRightLabel, le?.upperRightLabel),
944
+ style: ue?.upperRightLabel,
945
945
  children: N
946
946
  }),
947
947
  /* @__PURE__ */ U("div", {
948
- className: p(Y.inputContainer, { [Y.inputContainerMultiline]: se }, ue?.container),
949
- style: de?.container,
950
- onMouseEnter: q,
951
- onMouseLeave: we,
948
+ className: p(J.inputContainer, { [J.inputContainerMultiline]: G }, le?.container),
949
+ style: ue?.container,
950
+ onMouseEnter: K,
951
+ onMouseLeave: Te,
952
952
  children: [
953
953
  u,
954
- e.cloneElement(W || H(se ? "textarea" : "input", {}), {
954
+ e.cloneElement(oe || H(G ? "textarea" : "input", {}), {
955
955
  ...fe,
956
- className: p(Y.inputField, {
957
- [Y.inputFieldUppercase]: b,
958
- [Y.inputFieldDate]: C === ct.Date,
959
- [Y.inputFieldDefault]: C !== ct.Date,
960
- [Y.inputFieldWithIcon]: ke,
961
- [Y.inputFieldWithIconLeft]: Ae,
962
- [Y.inputFieldMultiline]: se,
963
- [Y.inputFieldMultilineAutoResize]: se && le
964
- }, ue?.input),
956
+ className: p(J.inputField, {
957
+ [J.inputFieldUppercase]: b,
958
+ [J.inputFieldDate]: C === Y.Date,
959
+ [J.inputFieldDefault]: C !== Y.Date,
960
+ [J.inputFieldWithIcon]: Ae,
961
+ [J.inputFieldWithIconLeft]: je,
962
+ [J.inputFieldMultiline]: G,
963
+ [J.inputFieldMultilineAutoResize]: G && ce
964
+ }, le?.input),
965
965
  name: t,
966
966
  id: t,
967
967
  value: A ? A.value : l,
968
968
  tabIndex: S,
969
- ref: W ? void 0 : ye,
970
- onChange: De,
971
- onFocus: Te,
972
- onBlur: Ee,
969
+ ref: oe ? void 0 : be,
970
+ onChange: Oe,
971
+ onFocus: Ee,
972
+ onBlur: De,
973
973
  placeholder: V ? "" : te,
974
974
  autoComplete: re,
975
975
  onClick: ie,
976
976
  readOnly: ae,
977
- disabled: G,
978
- ...!se && {
979
- type: Oe(),
980
- min: B,
981
- max: ee
977
+ disabled: de,
978
+ ...!G && {
979
+ type: ke(),
980
+ min: z,
981
+ max: B
982
982
  },
983
- ...se && ce !== void 0 && { rows: ce }
983
+ ...G && se !== void 0 && { rows: se }
984
984
  }),
985
985
  M && /* @__PURE__ */ H("div", {
986
- className: p(Y.inputFieldSuffix, ue?.suffix),
987
- style: de?.suffix,
986
+ className: p(J.inputFieldSuffix, le?.suffix),
987
+ style: ue?.suffix,
988
988
  children: M
989
989
  })
990
990
  ]
991
991
  }),
992
992
  /* @__PURE__ */ H("fieldset", {
993
- className: p(Y.inputFieldset, ue?.fieldset, {
994
- [Y.inputContainerBorderFocused]: K,
995
- [Y.inputContainerBorderSearchFocused]: C === ct.Search && (K || l),
996
- [Y.inputContainerBorderInvalid]: Ne,
997
- [Y.inputContainerBorderError]: Ne
993
+ className: p(J.inputFieldset, le?.fieldset, {
994
+ [J.inputContainerBorderFocused]: pe,
995
+ [J.inputContainerBorderSearchFocused]: C === Y.Search && (pe || l),
996
+ [J.inputContainerBorderInvalid]: Pe,
997
+ [J.inputContainerBorderError]: Pe
998
998
  }),
999
- style: de?.fieldset,
999
+ style: ue?.fieldset,
1000
1000
  children: /* @__PURE__ */ H("legend", {
1001
- className: p(Y.inputFieldsetLegend, { [Y.inputFieldsetLegendActive]: Fe }),
1002
- children: /* @__PURE__ */ H("span", { children: J })
1001
+ className: p(J.inputFieldsetLegend, { [J.inputFieldsetLegendActive]: Ie }),
1002
+ children: /* @__PURE__ */ H("span", { children: q })
1003
1003
  })
1004
1004
  }),
1005
1005
  V && n && /* @__PURE__ */ H("div", {
1006
- className: p(Y.inputMatLabel, {
1007
- [Y.inputMatLabelFloating]: Fe,
1008
- [Y.inputMatLabelMultiline]: se && !Fe
1006
+ className: p(J.inputMatLabel, {
1007
+ [J.inputMatLabelFloating]: Ie,
1008
+ [J.inputMatLabelMultiline]: G && !Ie
1009
1009
  }),
1010
- children: J
1010
+ children: q
1011
1011
  }),
1012
1012
  V && te && /* @__PURE__ */ H("div", {
1013
- className: p(Y.inputPlaceholder, K && !Pe && Y.inputPlaceholderShown, se && Y.inputPlaceholderMultiline),
1013
+ className: p(J.inputPlaceholder, pe && !Fe && J.inputPlaceholderShown, G && J.inputPlaceholderMultiline),
1014
1014
  children: te
1015
1015
  }),
1016
- /* @__PURE__ */ H(st, {
1016
+ /* @__PURE__ */ H(ct, {
1017
1017
  variant: "error",
1018
1018
  message: A ? A.getCurrentErrorMessage() : r || "",
1019
- isVisible: Ne && (K || me)
1019
+ isVisible: Pe && (pe || he)
1020
1020
  })
1021
1021
  ]
1022
1022
  }),
1023
- C === ct.Phone && /* @__PURE__ */ H(m, {
1023
+ C === Y.Phone && /* @__PURE__ */ H(m, {
1024
1024
  icon: I,
1025
- ...je
1025
+ ...Me
1026
1026
  }),
1027
- C === ct.Email && /* @__PURE__ */ H(m, {
1027
+ C === Y.Email && /* @__PURE__ */ H(m, {
1028
1028
  icon: D,
1029
- ...je
1029
+ ...Me
1030
1030
  }),
1031
- C === ct.Edit && /* @__PURE__ */ H(m, {
1031
+ C === Y.Edit && /* @__PURE__ */ H(m, {
1032
1032
  icon: F,
1033
- ...je
1033
+ ...Me
1034
1034
  }),
1035
- C === ct.Search && /* @__PURE__ */ H(m, {
1035
+ C === Y.Search && /* @__PURE__ */ H(m, {
1036
1036
  icon: R,
1037
- ...je
1038
- }),
1039
- C === ct.Password && /* @__PURE__ */ H(m, {
1040
- icon: ge ? k : O,
1041
1037
  ...Me
1042
1038
  }),
1043
- (L && l && (K || me) || oe) && /* @__PURE__ */ H(m, {
1039
+ C === Y.Password && /* @__PURE__ */ H(m, {
1040
+ icon: _e ? k : O,
1041
+ ...Ne
1042
+ }),
1043
+ (L && l && (pe || he) || W) && /* @__PURE__ */ H(m, {
1044
1044
  icon: ne,
1045
- className: Y.inputFieldIcon,
1046
- onClick: z ?? void 0,
1047
- onMouseEnter: () => he(!0),
1048
- onMouseLeave: () => he(!1)
1045
+ className: J.inputFieldIcon,
1046
+ onClick: ee ?? void 0,
1047
+ onMouseEnter: () => ge(!0),
1048
+ onMouseLeave: () => ge(!1)
1049
1049
  })
1050
1050
  ]
1051
1051
  });
@@ -1254,13 +1254,13 @@ function bt({ className: e, value: t = yt, onChange: n, showInput: r = !1, showA
1254
1254
  }) : /* @__PURE__ */ U("div", {
1255
1255
  ...o,
1256
1256
  className: p(ut.colorPicker, e),
1257
- children: [/* @__PURE__ */ H(at, {
1257
+ children: [/* @__PURE__ */ H(ot, {
1258
1258
  isOpen: s,
1259
1259
  onOpenChange: c,
1260
1260
  dontCloseOnChildClick: !0,
1261
- align: rt.Left,
1261
+ align: it.Left,
1262
1262
  content: /* @__PURE__ */ H(vt, { ...j }),
1263
- children: /* @__PURE__ */ U(Le, {
1263
+ children: /* @__PURE__ */ U(Re, {
1264
1264
  className: ut.swatch,
1265
1265
  children: [/* @__PURE__ */ H("div", {
1266
1266
  className: ut.swatchFill,
@@ -1296,7 +1296,7 @@ function St({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = ()
1296
1296
  let [u, d] = f(n), [h, g] = f(n);
1297
1297
  return a(() => {
1298
1298
  n ? (d(n), setTimeout(() => g(!0), 1)) : (g(!1), setTimeout(() => d(n), 300));
1299
- }, [n]), u ? /* @__PURE__ */ H(Be, { children: /* @__PURE__ */ U("div", {
1299
+ }, [n]), u ? /* @__PURE__ */ H(Ve, { children: /* @__PURE__ */ U("div", {
1300
1300
  className: p(xt.modalContainer, c?.container),
1301
1301
  style: l?.container,
1302
1302
  children: [/* @__PURE__ */ H("div", {
@@ -1347,7 +1347,7 @@ function Ct({ children: e = null, className: t = "", onClose: n = () => {}, onCo
1347
1347
  isOpen: o === void 0 ? c : o,
1348
1348
  onClose: () => p(),
1349
1349
  className: e ? void 0 : t,
1350
- children: [a, /* @__PURE__ */ H(Pe, {
1350
+ children: [a, /* @__PURE__ */ H(Fe, {
1351
1351
  onClose: () => p(),
1352
1352
  onSubmit: m,
1353
1353
  submitLabel: "Confirm",
@@ -1507,7 +1507,7 @@ function Wt({ className: e = "", month: t = (/* @__PURE__ */ new Date()).getMont
1507
1507
  Array.from(Array(u - 1).keys()).map((e) => /* @__PURE__ */ H("div", { className: p(wt.datePickerMonthItem, wt.datePickerMonthPlaceholder) }, e)),
1508
1508
  Array.from(Array(l).keys()).map((e) => {
1509
1509
  let c = e + 1, l = Vt(c, t, n, i, a), u = Ht(c, t, n, o, s), d = Ut(c, t, n);
1510
- return /* @__PURE__ */ H(Le, {
1510
+ return /* @__PURE__ */ H(Re, {
1511
1511
  onClick: () => u ? null : r(Nt(c, t, n)),
1512
1512
  className: p(wt.datePickerMonthDay, wt.datePickerMonthItem, {
1513
1513
  [wt.datePickerMonthDaySelected]: l.isInRange,
@@ -1594,10 +1594,10 @@ function Jt({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1594
1594
  ref: s,
1595
1595
  children: [a ? /* @__PURE__ */ H("div", {
1596
1596
  className: Gt.spinnerWrapper,
1597
- children: /* @__PURE__ */ H(Ee, { className: Gt.spinner })
1597
+ children: /* @__PURE__ */ H(De, { className: Gt.spinner })
1598
1598
  }) : t, l && /* @__PURE__ */ H("div", {
1599
1599
  className: Gt.spinnerWrapper,
1600
- children: /* @__PURE__ */ H(Ee, { className: Gt.spinner })
1600
+ children: /* @__PURE__ */ H(De, { className: Gt.spinner })
1601
1601
  })]
1602
1602
  });
1603
1603
  }
@@ -1672,7 +1672,7 @@ var X = {
1672
1672
  //#endregion
1673
1673
  //#region package/common/dropdown/dropdown.tsx
1674
1674
  function Yt({ errorMessage: e = "", className: t = "", label: n = "", value: r = "", isValid: i = !0, tabIndex: o = 0, isRequired: s = !1, customProps: c = {}, isRow: l = !1, disabled: u = !1, onScroll: h = () => Promise.resolve(), isListOnTop: g = !1, onClick: v, onChange: y, onFocus: b = null, onBlur: x = null, onMouseEnter: S = null, onMouseLeave: C = null, dropdownLabel: w, isDropdownListWider: T = !1, inputClassName: E = "", dropDownIconClassName: D = "", dropDownClassName: O = "", formValidator: k = null, labelClassName: A = "", dropDownInputClassName: j = "", items: M = [], useMatLabelStyle: N = !0, placeholder: P = "", plainStyle: F = !1, scrollToSelected: I = !1, reactRef: L, ...R }) {
1675
- let [z, B] = f(!1), [ee, te] = f(!1), [, ne] = f(0), V = d(k);
1675
+ let [ee, z] = f(!1), [B, te] = f(!1), [, ne] = f(0), V = d(k);
1676
1676
  a(() => {
1677
1677
  if (V.current = k, !V.current) return;
1678
1678
  V.current.label = n ?? "", V.current.validate();
@@ -1683,17 +1683,17 @@ function Yt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1683
1683
  te(!0), S?.(e);
1684
1684
  }, ie = (e) => {
1685
1685
  te(!1), C?.(e);
1686
- }, W = (e) => {
1687
- B(!0), b?.(e);
1688
1686
  }, oe = (e) => {
1689
- V.current && (V.current.touched = !0), B(!1), x?.(e);
1690
- }, se = () => k ? k.touched && k.hasError() : !i || !!e, ce = () => !!(s || k?.validators.find((e) => e.validatorId === "required")), le = (e) => {
1687
+ z(!0), b?.(e);
1688
+ }, W = (e) => {
1689
+ V.current && (V.current.touched = !0), z(!1), x?.(e);
1690
+ }, G = () => k ? k.touched && k.hasError() : !i || !!e, se = () => !!(s || k?.validators.find((e) => e.validatorId === "required")), ce = (e) => {
1691
1691
  k ? (k.set(e), y?.(k.value, c)) : y?.(e, c);
1692
- }, ue = w, de = k ? k.value : r, G = se();
1692
+ }, le = w, ue = k ? k.value : r, de = G();
1693
1693
  M.forEach((e) => {
1694
- e.key === de && (ue = e.label);
1694
+ e.key === ue && (le = e.label);
1695
1695
  });
1696
- let fe = ue || de, K = fe == null || typeof fe == "string" && fe.trim() === "";
1696
+ let fe = le || ue, pe = fe == null || typeof fe == "string" && fe.trim() === "";
1697
1697
  return /* @__PURE__ */ U("div", {
1698
1698
  ...R,
1699
1699
  className: p(t, X.dropdownLabel, X.dropdown, { [X.dropdownLabelColumn]: !l }),
@@ -1701,16 +1701,16 @@ function Yt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1701
1701
  onMouseLeave: ie,
1702
1702
  children: [
1703
1703
  /* @__PURE__ */ H(ae, {
1704
- onChange: (e) => le((e || { key: "" }).key),
1704
+ onChange: (e) => ce((e || { key: "" }).key),
1705
1705
  itemToString: (e) => e ? String(e.key) : "",
1706
- selectedItem: M.find((e) => e.key === de) ?? null,
1706
+ selectedItem: M.find((e) => e.key === ue) ?? null,
1707
1707
  stateReducer: (e, t) => I && Object.prototype.hasOwnProperty.call(t, "isOpen") ? {
1708
1708
  ...t,
1709
1709
  highlightedIndex: t.isOpen ? M.indexOf(e.selectedItem) : null
1710
1710
  } : t,
1711
1711
  children: ({ getItemProps: e, getToggleButtonProps: t, isOpen: r, selectedItem: i, highlightedIndex: a, setHighlightedIndex: s }) => /* @__PURE__ */ H("div", { children: /* @__PURE__ */ U("div", {
1712
- onFocus: W,
1713
- onBlur: oe,
1712
+ onFocus: oe,
1713
+ onBlur: W,
1714
1714
  className: p(X.dropdownInput, { [X.dropdownInputPlain]: F }, j),
1715
1715
  children: [
1716
1716
  /* @__PURE__ */ H("button", {
@@ -1727,7 +1727,7 @@ function Yt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1727
1727
  t().onClick?.(e), v?.(e);
1728
1728
  },
1729
1729
  ref: L,
1730
- children: K ? "\xA0" : fe
1730
+ children: pe ? "\xA0" : fe
1731
1731
  }),
1732
1732
  /* @__PURE__ */ H("button", {
1733
1733
  type: "button",
@@ -1767,21 +1767,21 @@ function Yt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1767
1767
  /* @__PURE__ */ H("fieldset", {
1768
1768
  className: p(X.dropdownFieldset, {
1769
1769
  [X.dropdownBorderPlain]: F,
1770
- [X.dropdownBorderFocused]: z,
1771
- [X.dropdownBorderInvalid]: G,
1772
- [X.dropdownBorderError]: G
1770
+ [X.dropdownBorderFocused]: ee,
1771
+ [X.dropdownBorderInvalid]: de,
1772
+ [X.dropdownBorderError]: de
1773
1773
  }),
1774
1774
  children: /* @__PURE__ */ H("legend", {
1775
- className: p(X.dropdownFieldsetLegend, { [X.dropdownFieldsetLegendActive]: N && (z || !K) }),
1775
+ className: p(X.dropdownFieldsetLegend, { [X.dropdownFieldsetLegendActive]: N && (ee || !pe) }),
1776
1776
  children: /* @__PURE__ */ H("span", { children: n })
1777
1777
  })
1778
1778
  }),
1779
1779
  N && n && /* @__PURE__ */ H("div", {
1780
- className: p(X.dropdownMatLabel, { [X.dropdownMatLabelFloating]: z || !K }),
1780
+ className: p(X.dropdownMatLabel, { [X.dropdownMatLabelFloating]: ee || !pe }),
1781
1781
  children: n
1782
1782
  }),
1783
1783
  N && P && /* @__PURE__ */ H("div", {
1784
- className: p(X.dropdownPlaceholder, z && !ue && X.dropdownPlaceholderShown),
1784
+ className: p(X.dropdownPlaceholder, ee && !le && X.dropdownPlaceholderShown),
1785
1785
  children: P
1786
1786
  })
1787
1787
  ]
@@ -1789,15 +1789,15 @@ function Yt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1789
1789
  }),
1790
1790
  n && !N && /* @__PURE__ */ U("div", {
1791
1791
  className: p(X.dropdownLabelText, A),
1792
- children: [n, ce() ? /* @__PURE__ */ H("div", {
1792
+ children: [n, se() ? /* @__PURE__ */ H("div", {
1793
1793
  className: X.requiredMark,
1794
1794
  children: "*"
1795
1795
  }) : null]
1796
1796
  }),
1797
- /* @__PURE__ */ H(st, {
1797
+ /* @__PURE__ */ H(ct, {
1798
1798
  variant: "error",
1799
1799
  message: k ? k.getCurrentErrorMessage() : e || "",
1800
- isVisible: G && (z || ee)
1800
+ isVisible: de && (ee || B)
1801
1801
  })
1802
1802
  ]
1803
1803
  });
@@ -1820,9 +1820,9 @@ var Xt = {
1820
1820
  //#endregion
1821
1821
  //#region package/common/datePicker/datePicker.tsx
1822
1822
  function Zt({ className: e = "", selected: t, onSelect: n = () => null, formValidator: r = null, noInput: i = !1, noHeader: o = !1, isModal: s = !1, isInline: c = !1, onChange: l = () => null, minDate: u = null, maxDate: m = null, children: h = null, showClearButton: g = !1, label: _ = "", isValid: b = !0, errorMessage: x = "", isRequired: S = !1, startDate: C, endDate: w }) {
1823
- let T = () => r ? r.value : t, E = T() ?? /* @__PURE__ */ new Date(), [D, O] = f(E.getMonth() + 1), [k, A] = f(E.getFullYear()), [j, M] = f(!1), [N, P] = f(() => T() ? zt(E) : ""), [F, I] = f(!1), [L, R] = f(!1), [, z] = f(0), [B, ee] = f(t), te = d(r);
1824
- if (B !== t) {
1825
- ee(t);
1823
+ let T = () => r ? r.value : t, E = T() ?? /* @__PURE__ */ new Date(), [D, O] = f(E.getMonth() + 1), [k, A] = f(E.getFullYear()), [j, M] = f(!1), [N, P] = f(() => T() ? zt(E) : ""), [F, I] = f(!1), [L, R] = f(!1), [, ee] = f(0), [z, B] = f(t), te = d(r);
1824
+ if (z !== t) {
1825
+ B(t);
1826
1826
  let e = t ?? /* @__PURE__ */ new Date();
1827
1827
  O(e.getMonth() + 1), A(e.getFullYear()), P(t ? zt(t) : "");
1828
1828
  }
@@ -1830,7 +1830,7 @@ function Zt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1830
1830
  if (te.current = r, !r) return;
1831
1831
  let e = () => {
1832
1832
  let e = r.value;
1833
- e ? (O(e.getMonth() + 1), A(e.getFullYear()), P(zt(e))) : P(""), z((e) => e + 1);
1833
+ e ? (O(e.getMonth() + 1), A(e.getFullYear()), P(zt(e))) : P(""), ee((e) => e + 1);
1834
1834
  };
1835
1835
  return r.registerOnUpdateListener(e), () => r.removeOnUpdateListener(e);
1836
1836
  }, [r]);
@@ -1838,34 +1838,34 @@ function Zt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1838
1838
  P(e ? zt(e) : ""), r && r.set(e), l(e);
1839
1839
  }, ae = (e) => {
1840
1840
  ie(e), n(e), M(!1);
1841
- }, oe = (e) => {
1841
+ }, W = (e) => {
1842
1842
  O((t) => {
1843
1843
  let n = t + e;
1844
1844
  return n < 1 ? (n = 12, A((e) => e - 1)) : n > 12 && (n = 1, A((e) => e + 1)), n;
1845
1845
  });
1846
- }, se = (e) => {
1846
+ }, G = (e) => {
1847
1847
  if (e.match(/\d{2}\.\d{2}\.\d{4}/gi)) {
1848
1848
  let [t, n, r] = e.split("."), i = Nt(Number(t), Number(n), Number(r));
1849
1849
  if (i && i.toString() !== "Invalid Date" && (!m || i <= m) && (!u || i >= u)) return i;
1850
1850
  }
1851
1851
  return null;
1852
- }, ce = ({ previousState: e, nextState: t }) => {
1852
+ }, se = ({ previousState: e, nextState: t }) => {
1853
1853
  if (!e || t.value === e.value) return t;
1854
- let n = Bt(t.value, e.value, t.selection ?? null), r = se(n.value);
1854
+ let n = Bt(t.value, e.value, t.selection ?? null), r = G(n.value);
1855
1855
  return r && ie(r), n;
1856
- }, le = () => {
1856
+ }, ce = () => {
1857
1857
  let e = 400, t = (/* @__PURE__ */ new Date()).getFullYear() - 200;
1858
1858
  return u && (t = u.getFullYear()), m && (e = m.getFullYear() - t + 1), Array.from(Array(e).keys()).map((e) => ({
1859
1859
  key: e + t,
1860
1860
  label: e + t
1861
1861
  }));
1862
- }, ue = T(), de = ne(), G = /* @__PURE__ */ U(re, { children: [
1862
+ }, le = T(), ue = ne(), de = /* @__PURE__ */ U(re, { children: [
1863
1863
  o ? null : /* @__PURE__ */ U("div", {
1864
1864
  className: Xt.datePickerHeader,
1865
1865
  children: [
1866
- /* @__PURE__ */ H(ze, {
1866
+ /* @__PURE__ */ H(Be, {
1867
1867
  icon: v,
1868
- onClick: () => oe(-1)
1868
+ onClick: () => W(-1)
1869
1869
  }),
1870
1870
  /* @__PURE__ */ H("div", {
1871
1871
  className: Xt.datePickerHeaderMonthAndYearContainer,
@@ -1888,13 +1888,13 @@ function Zt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1888
1888
  className: Xt.datePickerHeaderYear,
1889
1889
  onChange: (e) => A(e),
1890
1890
  value: k,
1891
- items: le()
1891
+ items: ce()
1892
1892
  })]
1893
1893
  })
1894
1894
  }),
1895
- /* @__PURE__ */ H(ze, {
1895
+ /* @__PURE__ */ H(Be, {
1896
1896
  icon: y,
1897
- onClick: () => oe(1)
1897
+ onClick: () => W(1)
1898
1898
  })
1899
1899
  ]
1900
1900
  }),
@@ -1903,12 +1903,12 @@ function Zt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1903
1903
  month: D,
1904
1904
  year: k,
1905
1905
  onSelect: ae,
1906
- selectionStart: C ?? ue,
1907
- selectionEnd: w ?? ue,
1906
+ selectionStart: C ?? le,
1907
+ selectionEnd: w ?? le,
1908
1908
  minDate: u,
1909
1909
  maxDate: m
1910
1910
  }),
1911
- g && /* @__PURE__ */ H(J, {
1911
+ g && /* @__PURE__ */ H(q, {
1912
1912
  onClick: () => ae(null),
1913
1913
  children: "Clear"
1914
1914
  }),
@@ -1919,28 +1919,28 @@ function Zt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1919
1919
  value: N,
1920
1920
  onChange: (e) => P(e),
1921
1921
  onClick: () => M(!0),
1922
- customInput: /* @__PURE__ */ H(W, {
1922
+ customInput: /* @__PURE__ */ H(oe, {
1923
1923
  mask: "99.99.9999",
1924
1924
  maskPlaceholder: "_",
1925
- beforeMaskedStateChange: ce
1925
+ beforeMaskedStateChange: se
1926
1926
  }),
1927
1927
  onBlur: () => {
1928
- te.current && (te.current.touched = !0), I(!1), ie(se(N));
1928
+ te.current && (te.current.touched = !0), I(!1), ie(G(N));
1929
1929
  },
1930
1930
  onFocus: () => I(!0),
1931
1931
  onMouseEnter: () => R(!0),
1932
1932
  onMouseLeave: () => R(!1),
1933
- isValid: !de
1934
- }), K = c ? G : s ? /* @__PURE__ */ H(St, {
1933
+ isValid: !ue
1934
+ }), pe = c ? de : s ? /* @__PURE__ */ H(St, {
1935
1935
  hideHeader: !0,
1936
1936
  isOpen: j,
1937
1937
  onClose: () => M(!1),
1938
- children: G
1939
- }) : /* @__PURE__ */ H(at, {
1938
+ children: de
1939
+ }) : /* @__PURE__ */ H(ot, {
1940
1940
  isOpen: j,
1941
1941
  onOpenChange: (e) => M(e),
1942
- content: G,
1943
- align: rt.Left,
1942
+ content: de,
1943
+ align: it.Left,
1944
1944
  dontCloseOnChildClick: !0,
1945
1945
  children: fe
1946
1946
  });
@@ -1948,22 +1948,57 @@ function Zt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1948
1948
  className: p(Xt.datePicker, e),
1949
1949
  children: [
1950
1950
  (s || c) && fe,
1951
- K,
1952
- /* @__PURE__ */ H(st, {
1951
+ pe,
1952
+ /* @__PURE__ */ H(ct, {
1953
1953
  variant: "error",
1954
1954
  message: r ? r.getCurrentErrorMessage() : x || "",
1955
- isVisible: de && (F || L)
1955
+ isVisible: ue && (F || L)
1956
1956
  })
1957
1957
  ]
1958
1958
  });
1959
1959
  }
1960
+ var Qt = {
1961
+ drawer: "drawer_5SRoc",
1962
+ "drawer-open": "drawer-open_-YQ8n",
1963
+ drawerOpen: "drawer-open_-YQ8n",
1964
+ "drawer-content": "drawer-content_sHIAP",
1965
+ drawerContent: "drawer-content_sHIAP",
1966
+ "drawer-content-inner": "drawer-content-inner_f-IDz",
1967
+ drawerContentInner: "drawer-content-inner_f-IDz"
1968
+ };
1969
+ //#endregion
1970
+ //#region package/common/drawer/drawer.tsx
1971
+ function $t({ className: e, isOpen: t = !1, closedWidth: n, openedWidth: r, children: i }) {
1972
+ let o = d(null), s = d(null);
1973
+ return a(() => {
1974
+ let e = new ResizeObserver(() => {
1975
+ o.current && s.current && o.current.style.setProperty("--drawer-content-width", `${s.current.scrollWidth}px`);
1976
+ });
1977
+ return s.current && e.observe(s.current), () => e.disconnect();
1978
+ }, []), /* @__PURE__ */ H("div", {
1979
+ ref: o,
1980
+ className: p(Qt.drawer, t && Qt.drawerOpen, e),
1981
+ style: {
1982
+ ...n !== void 0 && { "--drawer-closed-width": n },
1983
+ ...r !== void 0 && { "--drawer-opened-width": r }
1984
+ },
1985
+ children: /* @__PURE__ */ H("div", {
1986
+ ref: s,
1987
+ className: Qt.drawerContent,
1988
+ children: /* @__PURE__ */ H("div", {
1989
+ className: Qt.drawerContentInner,
1990
+ children: i
1991
+ })
1992
+ })
1993
+ });
1994
+ }
1960
1995
  //#endregion
1961
1996
  //#region package/common/dropZone/dropZone.types.ts
1962
1997
  var Z = /* @__PURE__ */ function(e) {
1963
1998
  return e.Idle = "idle", e.Dragging = "dragging", e.Active = "active", e.Error = "error", e;
1964
- }({}), Qt = /* @__PURE__ */ function(e) {
1999
+ }({}), en = /* @__PURE__ */ function(e) {
1965
2000
  return e.File = "file", e.Base64 = "base64", e.Text = "text", e;
1966
- }({}), $t = {
2001
+ }({}), tn = {
1967
2002
  dropZone: "dropZone_9iJZy",
1968
2003
  "dropZone-clickable": "dropZone-clickable_pcRhf",
1969
2004
  dropZoneClickable: "dropZone-clickable_pcRhf",
@@ -1990,7 +2025,7 @@ var Z = /* @__PURE__ */ function(e) {
1990
2025
  };
1991
2026
  //#endregion
1992
2027
  //#region package/common/dropZone/dropZone.tsx
1993
- function en(e, t) {
2028
+ function nn(e, t) {
1994
2029
  if (!t.length) return !0;
1995
2030
  let n = e.name.toLowerCase(), r = e.type.toLowerCase();
1996
2031
  return t.some((e) => {
@@ -1998,8 +2033,8 @@ function en(e, t) {
1998
2033
  return t ? t.startsWith(".") ? n.endsWith(t) : t.endsWith("/*") ? r.startsWith(t.slice(0, -1)) : r === t : !1;
1999
2034
  });
2000
2035
  }
2001
- function tn(e, t) {
2002
- return t === Qt.File ? Promise.resolve({
2036
+ function rn(e, t) {
2037
+ return t === en.File ? Promise.resolve({
2003
2038
  ok: !0,
2004
2039
  value: e
2005
2040
  }) : new Promise((n) => {
@@ -2020,23 +2055,23 @@ function tn(e, t) {
2020
2055
  data: r
2021
2056
  }
2022
2057
  });
2023
- }, r.onerror = () => n({ ok: !1 }), t === Qt.Base64 ? r.readAsDataURL(e) : r.readAsText(e);
2058
+ }, r.onerror = () => n({ ok: !1 }), t === en.Base64 ? r.readAsDataURL(e) : r.readAsText(e);
2024
2059
  });
2025
2060
  }
2026
- function nn(e) {
2061
+ function an(e) {
2027
2062
  return new Promise((t) => {
2028
2063
  if (e.isFile) e.file((e) => t([e]), () => t([]));
2029
2064
  else if (e.isDirectory) {
2030
2065
  let n = e.createReader(), r = [], i = () => {
2031
2066
  n.readEntries((e) => {
2032
- e.length ? (r.push(...e), i()) : Promise.all(r.map(nn)).then((e) => t(e.flat()));
2067
+ e.length ? (r.push(...e), i()) : Promise.all(r.map(an)).then((e) => t(e.flat()));
2033
2068
  }, () => t([]));
2034
2069
  };
2035
2070
  i();
2036
2071
  } else t([]);
2037
2072
  });
2038
2073
  }
2039
- function rn(e, t) {
2074
+ function on(e, t) {
2040
2075
  let n = e.items;
2041
2076
  if (n && n.length) {
2042
2077
  if (t && typeof n[0].webkitGetAsEntry == "function") {
@@ -2045,7 +2080,7 @@ function rn(e, t) {
2045
2080
  let r = n[t].webkitGetAsEntry();
2046
2081
  r && e.push(r);
2047
2082
  }
2048
- if (e.length) return Promise.all(e.map(nn)).then((e) => e.flat());
2083
+ if (e.length) return Promise.all(e.map(an)).then((e) => e.flat());
2049
2084
  }
2050
2085
  let e = [];
2051
2086
  for (let t = 0; t < n.length; t += 1) if (n[t].kind === "file") {
@@ -2056,7 +2091,7 @@ function rn(e, t) {
2056
2091
  }
2057
2092
  return Promise.resolve(Array.from(e.files || []));
2058
2093
  }
2059
- function an({ children: e, acceptedTypes: t = [], returnType: n = Qt.File, openPickerOnClick: r = !1, multiple: s = !0, maxFiles: c, maxSize: l, enablePaste: u = !1, allowDirectories: m = !0, capture: h, disabled: g = !1, unstyled: _ = !1, showFileNames: v = !1, files: y, onFilesChanged: b, onReject: x, onStatusChanged: S, className: C, style: w, classNames: T, styles: E, ...D }) {
2094
+ function sn({ children: e, acceptedTypes: t = [], returnType: n = en.File, openPickerOnClick: r = !1, multiple: s = !0, maxFiles: c, maxSize: l, enablePaste: u = !1, allowDirectories: m = !0, capture: h, disabled: g = !1, unstyled: _ = !1, showFileNames: v = !1, files: y, onFilesChanged: b, onReject: x, onStatusChanged: S, className: C, style: w, classNames: T, styles: E, ...D }) {
2060
2095
  let [O, k] = f(Z.Idle), A = d(null), j = o(), M = d(O), N = d(0), P = d(0), F = d({
2061
2096
  acceptedTypes: t,
2062
2097
  returnType: n,
@@ -2085,7 +2120,7 @@ function an({ children: e, acceptedTypes: t = [], returnType: n = Qt.File, openP
2085
2120
  M.current !== e && (M.current = e, k(e), F.current.onStatusChanged?.(e));
2086
2121
  }, []), L = i(async (e) => {
2087
2122
  let t = F.current, n = [], r = [];
2088
- for (let i of e) en(i, t.acceptedTypes) ? t.maxSize != null && i.size > t.maxSize ? n.push({
2123
+ for (let i of e) nn(i, t.acceptedTypes) ? t.maxSize != null && i.size > t.maxSize ? n.push({
2089
2124
  file: i,
2090
2125
  reason: "tooLarge"
2091
2126
  }) : r.push(i) : n.push({
@@ -2096,7 +2131,7 @@ function an({ children: e, acceptedTypes: t = [], returnType: n = Qt.File, openP
2096
2131
  file: e,
2097
2132
  reason: "tooMany"
2098
2133
  })), r = r.slice(0, t.maxFiles));
2099
- let i = await Promise.all(r.map((e) => tn(e, t.returnType))), a = [];
2134
+ let i = await Promise.all(r.map((e) => rn(e, t.returnType))), a = [];
2100
2135
  i.forEach((e, t) => {
2101
2136
  e.ok ? a.push(e.value) : n.push({
2102
2137
  file: r[t],
@@ -2118,16 +2153,16 @@ function an({ children: e, acceptedTypes: t = [], returnType: n = Qt.File, openP
2118
2153
  }, [I]);
2119
2154
  let R = i((e) => {
2120
2155
  e.preventDefault(), e.stopPropagation(), e.dataTransfer && (e.dataTransfer.dropEffect = g ? "none" : "copy");
2121
- }, [g]), z = i((e) => {
2156
+ }, [g]), ee = i((e) => {
2122
2157
  e.preventDefault(), e.stopPropagation(), !g && (P.current += 1, I(Z.Active));
2123
- }, [g, I]), B = i((e) => {
2158
+ }, [g, I]), z = i((e) => {
2124
2159
  e.preventDefault(), e.stopPropagation(), P.current = Math.max(0, P.current - 1), P.current === 0 && I(N.current > 0 ? Z.Dragging : Z.Idle);
2125
- }, [I]), ee = i((e) => {
2160
+ }, [I]), B = i((e) => {
2126
2161
  if (e.preventDefault(), e.stopPropagation(), P.current = 0, N.current = 0, g || !e.dataTransfer) {
2127
2162
  I(Z.Idle);
2128
2163
  return;
2129
2164
  }
2130
- I(Z.Idle), rn(e.dataTransfer, F.current.allowDirectories).then((e) => {
2165
+ I(Z.Idle), on(e.dataTransfer, F.current.allowDirectories).then((e) => {
2131
2166
  e.length && L(e);
2132
2167
  });
2133
2168
  }, [
@@ -2158,18 +2193,18 @@ function an({ children: e, acceptedTypes: t = [], returnType: n = Qt.File, openP
2158
2193
  isDragging: ie,
2159
2194
  isActive: O === Z.Active,
2160
2195
  disabled: g
2161
- }, W = t.length ? t.join(",") : void 0;
2196
+ }, oe = t.length ? t.join(",") : void 0;
2162
2197
  return /* @__PURE__ */ U("div", {
2163
2198
  ...D,
2164
- className: p($t.dropZone, r && $t.dropZoneClickable, g && $t.dropZoneDisabled, !_ && $t.dropZoneDefault, !_ && O === Z.Dragging && $t.dropZoneDragging, !_ && O === Z.Active && $t.dropZoneActive, !_ && O === Z.Error && $t.dropZoneError, T?.root, C),
2199
+ className: p(tn.dropZone, r && tn.dropZoneClickable, g && tn.dropZoneDisabled, !_ && tn.dropZoneDefault, !_ && O === Z.Dragging && tn.dropZoneDragging, !_ && O === Z.Active && tn.dropZoneActive, !_ && O === Z.Error && tn.dropZoneError, T?.root, C),
2165
2200
  style: {
2166
2201
  ...E?.root,
2167
2202
  ...w
2168
2203
  },
2169
- onDragEnter: z,
2170
- onDragLeave: B,
2204
+ onDragEnter: ee,
2205
+ onDragLeave: z,
2171
2206
  onDragOver: R,
2172
- onDrop: ee,
2207
+ onDrop: B,
2173
2208
  onClick: te,
2174
2209
  onKeyDown: re,
2175
2210
  onPaste: u ? V : void 0,
@@ -2178,15 +2213,15 @@ function an({ children: e, acceptedTypes: t = [], returnType: n = Qt.File, openP
2178
2213
  "aria-disabled": g || void 0,
2179
2214
  children: [
2180
2215
  /* @__PURE__ */ H("div", {
2181
- className: p($t.dropZoneContent, ie && $t.dropZoneContentDragging, T?.content),
2216
+ className: p(tn.dropZoneContent, ie && tn.dropZoneContentDragging, T?.content),
2182
2217
  style: E?.content,
2183
2218
  children: typeof e == "function" ? e(ae) : e
2184
2219
  }),
2185
2220
  v && y && y.length > 0 && /* @__PURE__ */ H("div", {
2186
- className: p($t.dropZoneFileList, T?.fileList),
2221
+ className: p(tn.dropZoneFileList, T?.fileList),
2187
2222
  style: E?.fileList,
2188
2223
  children: y.map((e, t) => /* @__PURE__ */ H("div", {
2189
- className: p($t.dropZoneFileItem, T?.fileItem),
2224
+ className: p(tn.dropZoneFileItem, T?.fileItem),
2190
2225
  style: E?.fileItem,
2191
2226
  children: e.name
2192
2227
  }, `${e.name}-${t}`))
@@ -2195,9 +2230,9 @@ function an({ children: e, acceptedTypes: t = [], returnType: n = Qt.File, openP
2195
2230
  ref: A,
2196
2231
  id: j,
2197
2232
  type: "file",
2198
- className: p($t.dropZoneInput, T?.input),
2233
+ className: p(tn.dropZoneInput, T?.input),
2199
2234
  style: E?.input,
2200
- accept: W,
2235
+ accept: oe,
2201
2236
  multiple: s,
2202
2237
  capture: h,
2203
2238
  disabled: g,
@@ -2208,17 +2243,17 @@ function an({ children: e, acceptedTypes: t = [], returnType: n = Qt.File, openP
2208
2243
  ]
2209
2244
  });
2210
2245
  }
2211
- var on = { emptyState: "emptyState_KXOIx" };
2246
+ var cn = { emptyState: "emptyState_KXOIx" };
2212
2247
  //#endregion
2213
2248
  //#region package/common/emptyState/emptyState.tsx
2214
- function sn({ className: e, icon: t, children: n, ...r }) {
2249
+ function ln({ className: e, icon: t, children: n, ...r }) {
2215
2250
  return /* @__PURE__ */ U("div", {
2216
2251
  ...r,
2217
- className: p(on.emptyState, e),
2252
+ className: p(cn.emptyState, e),
2218
2253
  children: [t && /* @__PURE__ */ H(m, { icon: t }), /* @__PURE__ */ H("div", { children: n ?? "No entries available" })]
2219
2254
  });
2220
2255
  }
2221
- var cn = {
2256
+ var un = {
2222
2257
  fab: "fab_hyAAa",
2223
2258
  "fab-content": "fab-content_IBiXm",
2224
2259
  fabContent: "fab-content_IBiXm",
@@ -2226,25 +2261,25 @@ var cn = {
2226
2261
  fabContentContainer: "fab-content-container_FQD1x",
2227
2262
  "fab-size-mini": "fab-size-mini_KP9BD",
2228
2263
  fabSizeMini: "fab-size-mini_KP9BD"
2229
- }, ln = {
2264
+ }, dn = {
2230
2265
  default: null,
2231
- mini: cn.fabSizeMini
2266
+ mini: un.fabSizeMini
2232
2267
  };
2233
- function un({ children: e = null, size: t = "default", className: n = "", styleType: r = De.Primary, onClick: i = () => {} }) {
2234
- return /* @__PURE__ */ H(J, {
2268
+ function fn({ children: e = null, size: t = "default", className: n = "", styleType: r = Oe.Primary, onClick: i = () => {} }) {
2269
+ return /* @__PURE__ */ H(q, {
2235
2270
  styleType: r,
2236
- className: p(cn.fab, ln[t], n),
2271
+ className: p(un.fab, dn[t], n),
2237
2272
  onClick: i,
2238
2273
  children: /* @__PURE__ */ H("div", {
2239
- className: cn.fabContentContainer,
2274
+ className: un.fabContentContainer,
2240
2275
  children: /* @__PURE__ */ H("div", {
2241
- className: cn.fabContent,
2276
+ className: un.fabContent,
2242
2277
  children: e
2243
2278
  })
2244
2279
  })
2245
2280
  });
2246
2281
  }
2247
- var dn = {
2282
+ var pn = {
2248
2283
  fab: "fab_YI34X",
2249
2284
  appear: "appear_DL0wm",
2250
2285
  "fab-container": "fab-container_8uoYo",
@@ -2274,7 +2309,7 @@ var dn = {
2274
2309
  };
2275
2310
  //#endregion
2276
2311
  //#region package/common/fab/fab.tsx
2277
- function fn({ children: e = null, size: t = "default", menuEntries: n = [], onMenuEntryClicked: r = () => {}, onClick: i = () => {}, closeMenuOnEntryClicked: a = !0, ...o }) {
2312
+ function mn({ children: e = null, size: t = "default", menuEntries: n = [], onMenuEntryClicked: r = () => {}, onClick: i = () => {}, closeMenuOnEntryClicked: a = !0, ...o }) {
2278
2313
  let [s, c] = f(!1);
2279
2314
  function l() {
2280
2315
  n.length > 0 && c((e) => !e), i();
@@ -2284,44 +2319,44 @@ function fn({ children: e = null, size: t = "default", menuEntries: n = [], onMe
2284
2319
  }
2285
2320
  return /* @__PURE__ */ U("div", {
2286
2321
  ...o,
2287
- className: dn.fabContainer,
2322
+ className: pn.fabContainer,
2288
2323
  children: [
2289
2324
  /* @__PURE__ */ H("div", {
2290
- className: p(dn.fabMenuBackdrop, s && dn.fabMenuBackdropOpen),
2325
+ className: p(pn.fabMenuBackdrop, s && pn.fabMenuBackdropOpen),
2291
2326
  onClick: (e) => {
2292
2327
  e.stopPropagation(), c(!1);
2293
2328
  }
2294
2329
  }),
2295
2330
  /* @__PURE__ */ H("div", {
2296
2331
  onClick: (e) => e.stopPropagation(),
2297
- children: /* @__PURE__ */ H(un, {
2298
- className: dn.fab,
2332
+ children: /* @__PURE__ */ H(fn, {
2333
+ className: pn.fab,
2299
2334
  size: t,
2300
2335
  onClick: l,
2301
2336
  children: /* @__PURE__ */ U("div", {
2302
- className: p(dn.fabIcon, s && dn.fabIconMenuOpen),
2337
+ className: p(pn.fabIcon, s && pn.fabIconMenuOpen),
2303
2338
  children: [/* @__PURE__ */ H("div", {
2304
- className: p(dn.fabIconContent, !s && dn.fabIconContentShown),
2339
+ className: p(pn.fabIconContent, !s && pn.fabIconContentShown),
2305
2340
  children: e
2306
2341
  }), /* @__PURE__ */ H("div", {
2307
- className: p(dn.fabIconContent, s && dn.fabIconContentShown),
2342
+ className: p(pn.fabIconContent, s && pn.fabIconContentShown),
2308
2343
  children: /* @__PURE__ */ H(m, { icon: L })
2309
2344
  })]
2310
2345
  })
2311
2346
  })
2312
2347
  }),
2313
2348
  /* @__PURE__ */ H("div", {
2314
- className: dn.fabMenu,
2349
+ className: pn.fabMenu,
2315
2350
  children: n.map(({ id: e, label: t, icon: n }) => /* @__PURE__ */ U("div", {
2316
- className: p(dn.fabMenuEntry, s && dn.fabMenuEntryShown),
2351
+ className: p(pn.fabMenuEntry, s && pn.fabMenuEntryShown),
2317
2352
  onClick: (t) => u(t, e),
2318
2353
  children: [t && /* @__PURE__ */ H("div", {
2319
- className: dn.fabMenuEntryLabelContainer,
2354
+ className: pn.fabMenuEntryLabelContainer,
2320
2355
  children: /* @__PURE__ */ H("div", {
2321
- className: dn.fabMenuEntryLabel,
2356
+ className: pn.fabMenuEntryLabel,
2322
2357
  children: t
2323
2358
  })
2324
- }), /* @__PURE__ */ H(un, {
2359
+ }), /* @__PURE__ */ H(fn, {
2325
2360
  size: "mini",
2326
2361
  children: /* @__PURE__ */ H(m, { icon: n })
2327
2362
  })]
@@ -2330,7 +2365,7 @@ function fn({ children: e = null, size: t = "default", menuEntries: n = [], onMe
2330
2365
  ]
2331
2366
  });
2332
2367
  }
2333
- var pn = {
2368
+ var hn = {
2334
2369
  iconPicker: "iconPicker_xJJmG",
2335
2370
  "iconPicker-label": "iconPicker-label_VEB2X",
2336
2371
  iconPickerLabel: "iconPicker-label_VEB2X",
@@ -2345,19 +2380,19 @@ var pn = {
2345
2380
  };
2346
2381
  //#endregion
2347
2382
  //#region package/common/iconPicker/iconPicker.tsx
2348
- function mn(e) {
2383
+ function gn(e) {
2349
2384
  let { formValidator: t } = e;
2350
2385
  return t ? t.touched && t.hasError() : !1;
2351
2386
  }
2352
- function hn(e) {
2387
+ function _n(e) {
2353
2388
  let { isRequired: t, formValidator: n } = e;
2354
2389
  return !!(t || n?.validators.find((e) => e.validatorId === "required"));
2355
2390
  }
2356
- function gn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, formValidator: i = null, isRequired: a, className: o, style: s, classNames: c, styles: l, ...u }) {
2357
- let d = i ? i.value ?? null : t, f = mn({
2391
+ function vn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, formValidator: i = null, isRequired: a, className: o, style: s, classNames: c, styles: l, ...u }) {
2392
+ let d = i ? i.value ?? null : t, f = gn({
2358
2393
  formValidator: i,
2359
2394
  isRequired: a
2360
- }), h = hn({
2395
+ }), h = _n({
2361
2396
  formValidator: i,
2362
2397
  isRequired: a
2363
2398
  });
@@ -2366,20 +2401,20 @@ function gn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2366
2401
  }
2367
2402
  return /* @__PURE__ */ U("div", {
2368
2403
  ...u,
2369
- className: p(pn.iconPicker, { [pn.iconPickerError]: f }, c?.root, o),
2404
+ className: p(hn.iconPicker, { [hn.iconPickerError]: f }, c?.root, o),
2370
2405
  style: {
2371
2406
  ...l?.root,
2372
2407
  ...s
2373
2408
  },
2374
2409
  children: [n && /* @__PURE__ */ U("div", {
2375
- className: p(pn.iconPickerLabel, c?.label),
2410
+ className: p(hn.iconPickerLabel, c?.label),
2376
2411
  style: l?.label,
2377
2412
  children: [n, h && " *"]
2378
2413
  }), /* @__PURE__ */ H("div", {
2379
- className: p(pn.iconPickerItemContainer, c?.itemContainer),
2414
+ className: p(hn.iconPickerItemContainer, c?.itemContainer),
2380
2415
  style: l?.itemContainer,
2381
2416
  children: e.map(({ id: e, label: t, icon: n, customIcon: r }) => /* @__PURE__ */ U("div", {
2382
- className: p(pn.iconPickerItem, { [pn.iconPickerItemSelected]: d === e }, c?.item),
2417
+ className: p(hn.iconPickerItem, { [hn.iconPickerItemSelected]: d === e }, c?.item),
2383
2418
  style: l?.item,
2384
2419
  title: t,
2385
2420
  tabIndex: 0,
@@ -2391,7 +2426,7 @@ function gn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2391
2426
  children: [
2392
2427
  n && /* @__PURE__ */ H(m, { icon: n }),
2393
2428
  r ?? null,
2394
- /* @__PURE__ */ H(je, {})
2429
+ /* @__PURE__ */ H(Me, {})
2395
2430
  ]
2396
2431
  }, e))
2397
2432
  })]
@@ -2399,14 +2434,14 @@ function gn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2399
2434
  }
2400
2435
  //#endregion
2401
2436
  //#region package/common/idleManager/idleManager.tsx
2402
- var _n = [
2437
+ var yn = [
2403
2438
  "click",
2404
2439
  "mousemove",
2405
2440
  "keydown",
2406
2441
  "scroll",
2407
2442
  "touchstart"
2408
2443
  ];
2409
- function vn({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n = !0 }) {
2444
+ function bn({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n = !0 }) {
2410
2445
  let [r, o] = f(!1), s = d(null), c = i(() => {
2411
2446
  s.current !== null && clearTimeout(s.current), o(!1), s.current = setTimeout(() => {
2412
2447
  o(!0);
@@ -2415,14 +2450,14 @@ function vn({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n
2415
2450
  return a(() => {
2416
2451
  c();
2417
2452
  }, [c]), a(() => {
2418
- for (let e of _n) document.addEventListener(e, c);
2453
+ for (let e of yn) document.addEventListener(e, c);
2419
2454
  return () => {
2420
- for (let e of _n) document.removeEventListener(e, c);
2455
+ for (let e of yn) document.removeEventListener(e, c);
2421
2456
  s.current !== null && clearTimeout(s.current);
2422
2457
  };
2423
2458
  }, [c]), /* @__PURE__ */ H(re, { children: n && r && e });
2424
2459
  }
2425
- var yn = {
2460
+ var xn = {
2426
2461
  inputDropdown: "inputDropdown_UdYMa",
2427
2462
  dropdown: "dropdown_-M5-x",
2428
2463
  "dropdown-shown": "dropdown-shown_H2rFU",
@@ -2436,15 +2471,15 @@ var yn = {
2436
2471
  };
2437
2472
  //#endregion
2438
2473
  //#region package/common/inputDropdown/inputDropdown.tsx
2439
- function bn(e, t) {
2474
+ function Sn(e, t) {
2440
2475
  return t ? t.value ?? "" : e ?? "";
2441
2476
  }
2442
- function xn(e, t) {
2477
+ function Cn(e, t) {
2443
2478
  let n = t.find((t) => t.value === e);
2444
2479
  return n ? n.label ?? n.value : e;
2445
2480
  }
2446
- function Sn({ label: e = "", value: t = "", formValidator: n = null, items: r = [], className: a, style: o, classNames: s, styles: c, onSelect: l = () => null, onChange: u, placeholder: m = "", ...h }) {
2447
- let g = bn(t, n), [_, v] = f(() => xn(g, r)), [y, b] = f(g), [x, S] = f(!1), [C, w] = f(null), T = d(null);
2481
+ function wn({ label: e = "", value: t = "", formValidator: n = null, items: r = [], className: a, style: o, classNames: s, styles: c, onSelect: l = () => null, onChange: u, placeholder: m = "", ...h }) {
2482
+ let g = Sn(t, n), [_, v] = f(() => Cn(g, r)), [y, b] = f(g), [x, S] = f(!1), [C, w] = f(null), T = d(null);
2448
2483
  if (g !== y) {
2449
2484
  b(g);
2450
2485
  let e = r.find((e) => e.value === g);
@@ -2471,7 +2506,7 @@ function Sn({ label: e = "", value: t = "", formValidator: n = null, items: r =
2471
2506
  ]);
2472
2507
  return /* @__PURE__ */ U("div", {
2473
2508
  ...h,
2474
- className: p(yn.inputDropdown, s?.root, a),
2509
+ className: p(xn.inputDropdown, s?.root, a),
2475
2510
  style: {
2476
2511
  ...c?.root,
2477
2512
  ...o
@@ -2487,10 +2522,10 @@ function Sn({ label: e = "", value: t = "", formValidator: n = null, items: r =
2487
2522
  },
2488
2523
  placeholder: m
2489
2524
  }), /* @__PURE__ */ H("div", {
2490
- className: p(yn.dropdown, { [yn.dropdownShown]: x }, s?.dropdown),
2525
+ className: p(xn.dropdown, { [xn.dropdownShown]: x }, s?.dropdown),
2491
2526
  style: c?.dropdown,
2492
2527
  children: x && E.map((e, t) => /* @__PURE__ */ H("div", {
2493
- className: p(yn.dropdownItem, C === t && yn.dropdownItemHighlighted, s?.item),
2528
+ className: p(xn.dropdownItem, C === t && xn.dropdownItemHighlighted, s?.item),
2494
2529
  style: c?.item,
2495
2530
  onClick: () => k(e),
2496
2531
  children: e.label ?? e.value
@@ -2498,7 +2533,7 @@ function Sn({ label: e = "", value: t = "", formValidator: n = null, items: r =
2498
2533
  })]
2499
2534
  });
2500
2535
  }
2501
- var Cn = {
2536
+ var Tn = {
2502
2537
  board: "board_6KRdw",
2503
2538
  column: "column_NrNeF",
2504
2539
  "column-empty": "column-empty_5KYsJ",
@@ -2516,15 +2551,15 @@ var Cn = {
2516
2551
  };
2517
2552
  //#endregion
2518
2553
  //#region package/common/kanbanBoard/KanbanItem.tsx
2519
- function wn({ id: e, children: t }) {
2520
- let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = pe({ id: e });
2554
+ function En({ id: e, children: t }) {
2555
+ let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = me({ id: e });
2521
2556
  return /* @__PURE__ */ H("div", {
2522
2557
  ref: i,
2523
2558
  style: {
2524
- transform: he.Transform.toString(a),
2559
+ transform: ge.Transform.toString(a),
2525
2560
  transition: o
2526
2561
  },
2527
- className: p(Cn.item, s && Cn.itemDragging),
2562
+ className: p(Tn.item, s && Tn.itemDragging),
2528
2563
  ...n,
2529
2564
  ...r,
2530
2565
  children: t
@@ -2532,22 +2567,22 @@ function wn({ id: e, children: t }) {
2532
2567
  }
2533
2568
  //#endregion
2534
2569
  //#region package/common/kanbanBoard/KanbanColumn.tsx
2535
- function Tn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a, classNames: o, styles: s }) {
2536
- let { setNodeRef: c, isOver: l } = ue({ id: `column-${e}` });
2570
+ function Dn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a, classNames: o, styles: s }) {
2571
+ let { setNodeRef: c, isOver: l } = le({ id: `column-${e}` });
2537
2572
  return /* @__PURE__ */ U("div", {
2538
- className: p(Cn.column, l && Cn.columnOver, n.length === 0 && Cn.columnEmpty, a),
2573
+ className: p(Tn.column, l && Tn.columnOver, n.length === 0 && Tn.columnEmpty, a),
2539
2574
  children: [/* @__PURE__ */ H("div", {
2540
- className: p(Cn.columnHeader, o?.header),
2575
+ className: p(Tn.columnHeader, o?.header),
2541
2576
  style: s?.header,
2542
2577
  children: t
2543
2578
  }), /* @__PURE__ */ H(fe, {
2544
2579
  items: n,
2545
- strategy: me,
2580
+ strategy: he,
2546
2581
  children: /* @__PURE__ */ H("div", {
2547
2582
  ref: c,
2548
- className: p(Cn.columnItems, o?.items),
2583
+ className: p(Tn.columnItems, o?.items),
2549
2584
  style: s?.items,
2550
- children: n.map((e) => /* @__PURE__ */ H(wn, {
2585
+ children: n.map((e) => /* @__PURE__ */ H(En, {
2551
2586
  id: e,
2552
2587
  children: r[e] === void 0 ? null : i(r[e], e)
2553
2588
  }, e))
@@ -2557,8 +2592,8 @@ function Tn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a
2557
2592
  }
2558
2593
  //#endregion
2559
2594
  //#region package/common/kanbanBoard/KanbanBoard.tsx
2560
- function En({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2561
- let [c, l] = f(null), [u, d] = f(null), m = G(de(ce, { activationConstraint: { distance: 8 } })), h = u ?? e;
2595
+ function On({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2596
+ let [c, l] = f(null), [u, d] = f(null), m = de(ue(se, { activationConstraint: { distance: 8 } })), h = u ?? e;
2562
2597
  function g(e, t) {
2563
2598
  return e.findIndex((e) => e.itemIds.includes(t));
2564
2599
  }
@@ -2590,7 +2625,7 @@ function En({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2590
2625
  let e = n[a], t = e.itemIds.indexOf(r), o = e.itemIds.indexOf(i);
2591
2626
  t !== -1 && o !== -1 && t !== o && (n[a] = {
2592
2627
  ...e,
2593
- itemIds: K(e.itemIds, t, o)
2628
+ itemIds: pe(e.itemIds, t, o)
2594
2629
  });
2595
2630
  } else {
2596
2631
  n[a].itemIds = n[a].itemIds.filter((e) => e !== r);
@@ -2607,30 +2642,30 @@ function En({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2607
2642
  }
2608
2643
  r(u), d(null);
2609
2644
  }
2610
- return /* @__PURE__ */ U(oe, {
2645
+ return /* @__PURE__ */ U(W, {
2611
2646
  sensors: m,
2612
- collisionDetection: le,
2647
+ collisionDetection: ce,
2613
2648
  onDragStart: _,
2614
2649
  onDragOver: v,
2615
2650
  onDragEnd: y,
2616
2651
  children: [/* @__PURE__ */ H("div", {
2617
- className: p(Cn.board, i),
2652
+ className: p(Tn.board, i),
2618
2653
  style: a,
2619
- children: h.map((e) => /* @__PURE__ */ H(Tn, {
2654
+ children: h.map((e) => /* @__PURE__ */ H(Dn, {
2620
2655
  id: e.id,
2621
2656
  title: e.title,
2622
2657
  itemIds: e.itemIds,
2623
2658
  items: t,
2624
2659
  renderItem: n
2625
2660
  }, e.id))
2626
- }), /* @__PURE__ */ H(se, { children: c && t[c] !== void 0 ? /* @__PURE__ */ H("div", {
2627
- className: p(Cn.dragOverlay, o?.dragOverlay),
2661
+ }), /* @__PURE__ */ H(G, { children: c && t[c] !== void 0 ? /* @__PURE__ */ H("div", {
2662
+ className: p(Tn.dragOverlay, o?.dragOverlay),
2628
2663
  style: s?.dragOverlay,
2629
2664
  children: n(t[c], c)
2630
2665
  }) : null })]
2631
2666
  });
2632
2667
  }
2633
- var Dn = {
2668
+ var kn = {
2634
2669
  iconLoading: "iconLoading_wovj4",
2635
2670
  "spin-to-oblivion": "spin-to-oblivion_0tZtm",
2636
2671
  spinToOblivion: "spin-to-oblivion_0tZtm",
@@ -2645,39 +2680,39 @@ var Dn = {
2645
2680
  };
2646
2681
  //#endregion
2647
2682
  //#region package/common/loading/iconLoading/iconLoading.tsx
2648
- function On({ className: e = "" }) {
2683
+ function An({ className: e = "" }) {
2649
2684
  return /* @__PURE__ */ H("div", {
2650
- className: p(Dn.iconLoading, e),
2685
+ className: p(kn.iconLoading, e),
2651
2686
  children: /* @__PURE__ */ U("svg", {
2652
2687
  xmlns: "http://www.w3.org/2000/svg",
2653
2688
  viewBox: "-8 -1 16 14",
2654
2689
  children: [
2655
2690
  /* @__PURE__ */ H("path", {
2656
- className: Dn.iconLoadingFirst,
2691
+ className: kn.iconLoadingFirst,
2657
2692
  d: "M 0 0 C 3 5 6 5 6 12",
2658
2693
  strokeWidth: "1.7",
2659
2694
  fill: "none"
2660
2695
  }),
2661
2696
  /* @__PURE__ */ H("path", {
2662
- className: Dn.iconLoadingFirst,
2697
+ className: kn.iconLoadingFirst,
2663
2698
  d: "M 0 0 C -3 5 -6 5 -6 12",
2664
2699
  strokeWidth: "1.7",
2665
2700
  fill: "none"
2666
2701
  }),
2667
2702
  /* @__PURE__ */ H("path", {
2668
- className: Dn.iconLoadingFirst,
2703
+ className: kn.iconLoadingFirst,
2669
2704
  d: "M 0 0 L 0 10",
2670
2705
  strokeWidth: "1.7",
2671
2706
  fill: "none"
2672
2707
  }),
2673
2708
  /* @__PURE__ */ H("path", {
2674
- className: Dn.iconLoadingSecond,
2709
+ className: kn.iconLoadingSecond,
2675
2710
  d: "M 0.1 10 C -3 10 -4 10 -6 12",
2676
2711
  strokeWidth: "1.7",
2677
2712
  fill: "none"
2678
2713
  }),
2679
2714
  /* @__PURE__ */ H("path", {
2680
- className: Dn.iconLoadingSecond,
2715
+ className: kn.iconLoadingSecond,
2681
2716
  d: "M -0.1 10 C 3 10 4 10 6 12",
2682
2717
  strokeWidth: "1.7",
2683
2718
  fill: "none"
@@ -2688,14 +2723,14 @@ function On({ className: e = "" }) {
2688
2723
  }
2689
2724
  //#endregion
2690
2725
  //#region package/common/loading/iconLoading/index.ts
2691
- var kn = On, An = {
2726
+ var jn = An, Mn = {
2692
2727
  numberInput: "numberInput_7p2O3",
2693
2728
  arrows: "arrows_yjRlc",
2694
2729
  arrowBtn: "arrowBtn_DbJoa"
2695
2730
  };
2696
2731
  //#endregion
2697
2732
  //#region package/common/numberInput/numberInput.tsx
2698
- function jn({ value: e, onChange: t, formValidator: n, label: r, error: i, className: a, allowNegative: o = !1, decimalSeparator: s, thousandSeparator: c, prefix: l, suffix: u, decimalScale: d, placeholder: f, sign: h, showArrows: g = !1, step: v = 1, onKeyDown: y, ...x }) {
2733
+ function Nn({ value: e, onChange: t, formValidator: n, label: r, error: i, className: a, allowNegative: o = !1, decimalSeparator: s, thousandSeparator: c, prefix: l, suffix: u, decimalScale: d, placeholder: f, sign: h, showArrows: g = !1, step: v = 1, onKeyDown: y, ...x }) {
2699
2734
  let S = n == null ? e : n.value, C = h != null && S != null ? Math.abs(Number(S)) : S, w = C == null ? "" : String(C);
2700
2735
  function T(e) {
2701
2736
  let r = e;
@@ -2717,16 +2752,16 @@ function jn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2717
2752
  y?.(e);
2718
2753
  }
2719
2754
  let O = h === "-" ? "-" : h === "+" ? "+" : l, k = g ? /* @__PURE__ */ U("div", {
2720
- className: An.arrows,
2721
- children: [/* @__PURE__ */ H(Le, {
2722
- className: An.arrowBtn,
2755
+ className: Mn.arrows,
2756
+ children: [/* @__PURE__ */ H(Re, {
2757
+ className: Mn.arrowBtn,
2723
2758
  tabIndex: -1,
2724
2759
  onMouseDown: (e) => {
2725
2760
  e.preventDefault(), E(e.shiftKey ? v * 10 : v);
2726
2761
  },
2727
2762
  children: /* @__PURE__ */ H(m, { icon: b })
2728
- }), /* @__PURE__ */ H(Le, {
2729
- className: An.arrowBtn,
2763
+ }), /* @__PURE__ */ H(Re, {
2764
+ className: Mn.arrowBtn,
2730
2765
  tabIndex: -1,
2731
2766
  onMouseDown: (e) => {
2732
2767
  e.preventDefault(), E(e.shiftKey ? -v * 10 : -v);
@@ -2736,7 +2771,7 @@ function jn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2736
2771
  }) : null;
2737
2772
  return /* @__PURE__ */ H(lt, {
2738
2773
  label: r,
2739
- className: p(An.numberInput, a),
2774
+ className: p(Mn.numberInput, a),
2740
2775
  value: w,
2741
2776
  onChange: () => {},
2742
2777
  formValidator: null,
@@ -2744,7 +2779,7 @@ function jn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2744
2779
  errorMessage: n ? n.getCurrentErrorMessage() ?? "" : i ?? "",
2745
2780
  placeholder: f,
2746
2781
  suffix: k,
2747
- customInput: /* @__PURE__ */ H(ge, {
2782
+ customInput: /* @__PURE__ */ H(_e, {
2748
2783
  onValueChange: (e) => T(e.floatValue),
2749
2784
  allowNegative: h == null ? o : !1,
2750
2785
  decimalSeparator: s,
@@ -2760,7 +2795,7 @@ function jn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2760
2795
  }
2761
2796
  //#endregion
2762
2797
  //#region package/common/numberInput/index.ts
2763
- var Mn = jn, Nn = {
2798
+ var Pn = Nn, Fn = {
2764
2799
  optionPicker: "optionPicker_Yx82s",
2765
2800
  "optionPicker-chip": "optionPicker-chip_ywtvr",
2766
2801
  optionPickerChip: "optionPicker-chip_ywtvr",
@@ -2771,20 +2806,20 @@ var Mn = jn, Nn = {
2771
2806
  };
2772
2807
  //#endregion
2773
2808
  //#region package/common/optionPicker/optionPicker.tsx
2774
- function Pn({ className: e = void 0, options: t, onChange: n, value: r, ...i }) {
2809
+ function In({ className: e = void 0, options: t, onChange: n, value: r, ...i }) {
2775
2810
  let a = t.findIndex((e) => e.key === r) * 100 / t.length;
2776
2811
  return /* @__PURE__ */ U("div", {
2777
2812
  ...i,
2778
- className: p(Nn.optionPicker, e),
2813
+ className: p(Fn.optionPicker, e),
2779
2814
  children: [/* @__PURE__ */ H("div", {
2780
- className: Nn.optionPickerChip,
2815
+ className: Fn.optionPickerChip,
2781
2816
  style: {
2782
2817
  left: `${a}%`,
2783
2818
  width: `${100 / t.length}%`
2784
2819
  }
2785
- }), t.map((e) => /* @__PURE__ */ H(Le, {
2820
+ }), t.map((e) => /* @__PURE__ */ H(Re, {
2786
2821
  onClick: (t) => n(e.key, t),
2787
- className: p(Nn.optionPickerOption, e.key === r && Nn.optionPickerOptionActive),
2822
+ className: p(Fn.optionPickerOption, e.key === r && Fn.optionPickerOptionActive),
2788
2823
  tabIndex: e.key === r ? -1 : 0,
2789
2824
  children: e.label
2790
2825
  }, e.key))]
@@ -2792,25 +2827,25 @@ function Pn({ className: e = void 0, options: t, onChange: n, value: r, ...i })
2792
2827
  }
2793
2828
  //#endregion
2794
2829
  //#region package/hooks/useWindowSize.ts
2795
- var Fn = 768;
2796
- function In() {
2830
+ var Ln = 768;
2831
+ function Rn() {
2797
2832
  let [e, t] = f(() => ({
2798
2833
  width: window.innerWidth,
2799
2834
  height: window.innerHeight,
2800
- isMobileSize: window.innerWidth < Fn
2835
+ isMobileSize: window.innerWidth < Ln
2801
2836
  }));
2802
2837
  return a(() => {
2803
2838
  function e() {
2804
2839
  t({
2805
2840
  width: window.innerWidth,
2806
2841
  height: window.innerHeight,
2807
- isMobileSize: window.innerWidth < Fn
2842
+ isMobileSize: window.innerWidth < Ln
2808
2843
  });
2809
2844
  }
2810
2845
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
2811
2846
  }, []), e;
2812
2847
  }
2813
- var Ln = {
2848
+ var zn = {
2814
2849
  overscroll: "overscroll_Ij750",
2815
2850
  "overscroll-header": "overscroll-header_S6vYc",
2816
2851
  overscrollHeader: "overscroll-header_S6vYc",
@@ -2821,8 +2856,8 @@ var Ln = {
2821
2856
  };
2822
2857
  //#endregion
2823
2858
  //#region package/common/overscroll/overscroll.tsx
2824
- function Rn({ children: e = null, overscrollContent: t = null, overscrollContentDesktop: n = null, centerHeader: r = !0, min: o = 10, max: s = 80, start: c = 30, unit: l = "%", mobileOnly: u = !0, onScrollChange: f = () => {}, scrollDisabled: m = !1 }) {
2825
- let { isMobileSize: h, height: g } = In(), _ = d(null), v = d(null), y = d(null), b = d(!1), x = d(null), S = d(f);
2859
+ function Bn({ children: e = null, overscrollContent: t = null, overscrollContentDesktop: n = null, centerHeader: r = !0, min: o = 10, max: s = 80, start: c = 30, unit: l = "%", mobileOnly: u = !0, onScrollChange: f = () => {}, scrollDisabled: m = !1 }) {
2860
+ let { isMobileSize: h, height: g } = Rn(), _ = d(null), v = d(null), y = d(null), b = d(!1), x = d(null), S = d(f);
2826
2861
  S.current = f;
2827
2862
  let C = i((e) => {
2828
2863
  let t;
@@ -2880,15 +2915,15 @@ function Rn({ children: e = null, overscrollContent: t = null, overscrollContent
2880
2915
  if (u && !h) return n ? /* @__PURE__ */ U("div", { children: [n, e] }) : /* @__PURE__ */ H(re, { children: e });
2881
2916
  let k = l === "%" ? `${100 - o}%` : `calc(100% - ${o}px)`;
2882
2917
  return /* @__PURE__ */ U("div", {
2883
- className: Ln.overscroll,
2918
+ className: zn.overscroll,
2884
2919
  ref: _,
2885
2920
  onScroll: O,
2886
2921
  children: [/* @__PURE__ */ H("div", {
2887
- className: Ln.overscrollHeaderContainer,
2922
+ className: zn.overscrollHeaderContainer,
2888
2923
  style: { height: `${s}${l}` },
2889
2924
  ref: y,
2890
2925
  children: /* @__PURE__ */ H("div", {
2891
- className: p(Ln.overscrollHeader, r && Ln.overscrollHeaderCentered),
2926
+ className: p(zn.overscrollHeader, r && zn.overscrollHeaderCentered),
2892
2927
  ref: v,
2893
2928
  children: t
2894
2929
  })
@@ -2898,7 +2933,7 @@ function Rn({ children: e = null, overscrollContent: t = null, overscrollContent
2898
2933
  })]
2899
2934
  });
2900
2935
  }
2901
- var zn = {
2936
+ var Vn = {
2902
2937
  progressBar: "progressBar_LO0sX",
2903
2938
  "progressBar-fill": "progressBar-fill_rt32j",
2904
2939
  progressBarFill: "progressBar-fill_rt32j",
@@ -2911,17 +2946,17 @@ var zn = {
2911
2946
  };
2912
2947
  //#endregion
2913
2948
  //#region package/common/progressBar/progressBar.tsx
2914
- function Bn(e) {
2949
+ function Hn(e) {
2915
2950
  let t = e.replace("#", ""), n = parseInt(t.substring(0, 2), 16), r = parseInt(t.substring(2, 4), 16), i = parseInt(t.substring(4, 6), 16);
2916
2951
  return (.299 * n + .587 * r + .114 * i) / 255 > .5 ? "#000000" : "#ffffff";
2917
2952
  }
2918
- function Vn({ className: e = void 0, total: t = 100, progress: n = 0, style: r = void 0, ...i }) {
2953
+ function Un({ className: e = void 0, total: t = 100, progress: n = 0, style: r = void 0, ...i }) {
2919
2954
  function a() {
2920
2955
  let e = [];
2921
2956
  return Array.isArray(n) ? e.push(...n) : typeof n == "object" ? e.push(n) : e.push({ amount: n }), e.map((n, i) => {
2922
2957
  let a = t ? n.amount / t * 100 : 0;
2923
2958
  return /* @__PURE__ */ H("div", {
2924
- className: p(zn.progressBarFill, i === e.length - 1 && zn.progressBarFillEnd, n.class),
2959
+ className: p(Vn.progressBarFill, i === e.length - 1 && Vn.progressBarFillEnd, n.class),
2925
2960
  style: {
2926
2961
  width: `${a}%`,
2927
2962
  background: n.color || void 0,
@@ -2929,8 +2964,8 @@ function Vn({ className: e = void 0, total: t = 100, progress: n = 0, style: r =
2929
2964
  },
2930
2965
  title: n.label ? `${n.label}: ${n.amount}` : void 0,
2931
2966
  children: n.label && /* @__PURE__ */ H("div", {
2932
- className: zn.progressBarLabel,
2933
- style: n.color ? { color: Bn(n.color) } : {},
2967
+ className: Vn.progressBarLabel,
2968
+ style: n.color ? { color: Hn(n.color) } : {},
2934
2969
  children: n.label
2935
2970
  })
2936
2971
  }, i);
@@ -2938,21 +2973,21 @@ function Vn({ className: e = void 0, total: t = 100, progress: n = 0, style: r =
2938
2973
  }
2939
2974
  return /* @__PURE__ */ H("div", {
2940
2975
  ...i,
2941
- className: p(zn.progressBar, e),
2976
+ className: p(Vn.progressBar, e),
2942
2977
  style: r,
2943
2978
  children: a()
2944
2979
  });
2945
2980
  }
2946
- function Hn(e) {
2981
+ function Wn(e) {
2947
2982
  return Math.round(e / 5) * 5;
2948
2983
  }
2949
- function Un(e) {
2984
+ function Gn(e) {
2950
2985
  return {
2951
- x: Hn(e.x),
2952
- y: Hn(e.y)
2986
+ x: Wn(e.x),
2987
+ y: Wn(e.y)
2953
2988
  };
2954
2989
  }
2955
- function Wn(e, t, n) {
2990
+ function Kn(e, t, n) {
2956
2991
  let r = n.createSVGPoint();
2957
2992
  r.x = e, r.y = t;
2958
2993
  let i = n.getScreenCTM();
@@ -2961,18 +2996,18 @@ function Wn(e, t, n) {
2961
2996
  y: 0
2962
2997
  };
2963
2998
  let a = r.matrixTransform(i.inverse());
2964
- return Un({
2999
+ return Gn({
2965
3000
  x: a.x,
2966
3001
  y: a.y
2967
3002
  });
2968
3003
  }
2969
- function Gn(e, t) {
3004
+ function qn(e, t) {
2970
3005
  return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
2971
3006
  }
2972
- function Kn(e, t, n) {
3007
+ function Jn(e, t, n) {
2973
3008
  let r = n.x - t.x, i = n.y - t.y, a = r * r + i * i;
2974
3009
  if (a === 0) return {
2975
- dist: Gn(e, t),
3010
+ dist: qn(e, t),
2976
3011
  t: 0
2977
3012
  };
2978
3013
  let o = Math.max(0, Math.min(1, ((e.x - t.x) * r + (e.y - t.y) * i) / a)), s = t.x + o * r, c = t.y + o * i;
@@ -2981,12 +3016,12 @@ function Kn(e, t, n) {
2981
3016
  t: o
2982
3017
  };
2983
3018
  }
2984
- function qn(e, t) {
3019
+ function Yn(e, t) {
2985
3020
  let n = null;
2986
3021
  for (let r of t) {
2987
3022
  let t = r.points;
2988
3023
  for (let i = 0; i < t.length; i++) {
2989
- let a = t[i], o = t[(i + 1) % t.length], { dist: s, t: c } = Kn(e, a, o);
3024
+ let a = t[i], o = t[(i + 1) % t.length], { dist: s, t: c } = Jn(e, a, o);
2990
3025
  s <= 8 && (!n || s < n.dist) && (n = {
2991
3026
  roomId: r.id,
2992
3027
  wallIndex: i,
@@ -2997,7 +3032,7 @@ function qn(e, t) {
2997
3032
  }
2998
3033
  return n;
2999
3034
  }
3000
- function Jn(e, t) {
3035
+ function Xn(e, t) {
3001
3036
  let n = !1;
3002
3037
  for (let r = 0, i = t.length - 1; r < t.length; i = r++) {
3003
3038
  let a = t[r].x, o = t[r].y, s = t[i].x, c = t[i].y;
@@ -3005,13 +3040,13 @@ function Jn(e, t) {
3005
3040
  }
3006
3041
  return n;
3007
3042
  }
3008
- function Yn(e) {
3043
+ function Zn(e) {
3009
3044
  return {
3010
3045
  x: e.reduce((e, t) => e + t.x, 0) / e.length,
3011
3046
  y: e.reduce((e, t) => e + t.y, 0) / e.length
3012
3047
  };
3013
3048
  }
3014
- function Xn(e, t, n, r) {
3049
+ function Qn(e, t, n, r) {
3015
3050
  return [
3016
3051
  {
3017
3052
  x: e,
@@ -3031,7 +3066,7 @@ function Xn(e, t, n, r) {
3031
3066
  }
3032
3067
  ];
3033
3068
  }
3034
- function Zn(e, t, n, r) {
3069
+ function $n(e, t, n, r) {
3035
3070
  let i = t.x - e.x, a = t.y - e.y, o = Math.sqrt(i * i + a * a);
3036
3071
  if (o < .001) return null;
3037
3072
  let s = i / o, c = a / o, l = e.x + i * n, u = e.y + a * n, d = Math.min(r / 2, o / 2 - .001);
@@ -3050,13 +3085,13 @@ function Zn(e, t, n, r) {
3050
3085
  }
3051
3086
  };
3052
3087
  }
3053
- function Qn(e) {
3088
+ function er(e) {
3054
3089
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
3055
3090
  }
3056
- function $n(e) {
3091
+ function tr(e) {
3057
3092
  return e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ") + " Z";
3058
3093
  }
3059
- function er(e, t) {
3094
+ function nr(e, t) {
3060
3095
  if (e.length < 2) return [];
3061
3096
  if (t.length === 0) return [e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ") + " Z"];
3062
3097
  let n = e.length, r = [], i = [`M ${e[0].x.toFixed(2)},${e[0].y.toFixed(2)}`];
@@ -3079,8 +3114,8 @@ function er(e, t) {
3079
3114
  }
3080
3115
  return r[0] = [...i, ...r[0].slice(1)], r.map((e) => e.join(" "));
3081
3116
  }
3082
- function tr(e, t, n) {
3083
- let r = Zn(e, t, n.t, n.width);
3117
+ function rr(e, t, n) {
3118
+ let r = $n(e, t, n.t, n.width);
3084
3119
  if (!r) return "";
3085
3120
  let { p1: i, p2: a, perp: o } = r, s = {
3086
3121
  x: i.x + o.x * n.width,
@@ -3088,7 +3123,7 @@ function tr(e, t, n) {
3088
3123
  };
3089
3124
  return [`M ${i.x.toFixed(2)},${i.y.toFixed(2)} L ${a.x.toFixed(2)},${a.y.toFixed(2)}`, `M ${i.x.toFixed(2)},${i.y.toFixed(2)} A ${n.width},${n.width} 0 0,1 ${s.x.toFixed(2)},${s.y.toFixed(2)}`].join(" ");
3090
3125
  }
3091
- function nr(e, t) {
3126
+ function ir(e, t) {
3092
3127
  let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
3093
3128
  for (let t of e) for (let e of t.points) e.x < n && (n = e.x), e.y < r && (r = e.y), e.x > i && (i = e.x), e.y > a && (a = e.y);
3094
3129
  isFinite(n) || (n = 0, r = 0, i = 400, a = 300);
@@ -3098,10 +3133,10 @@ function nr(e, t) {
3098
3133
  (i - n + 10).toFixed(2),
3099
3134
  (a - r + 10).toFixed(2)
3100
3135
  ].join(" "), s = e.map((e) => {
3101
- let n = t.filter((t) => t.roomId === e.id), r = er(e.points, n), i = $n(e.points), a = Yn(e.points), o = r.map((e) => ` <path d="${e}" />`).join("\n"), s = n.map((t) => {
3102
- let n = e.points[t.wallIndex], r = e.points[(t.wallIndex + 1) % e.points.length], i = tr(n, r, t);
3136
+ let n = t.filter((t) => t.roomId === e.id), r = nr(e.points, n), i = tr(e.points), a = Zn(e.points), o = r.map((e) => ` <path d="${e}" />`).join("\n"), s = n.map((t) => {
3137
+ let n = e.points[t.wallIndex], r = e.points[(t.wallIndex + 1) % e.points.length], i = rr(n, r, t);
3103
3138
  return i ? ` <path d="${i}" fill="none" />` : "";
3104
- }).filter(Boolean).join("\n"), c = e.name ? ` <text fontSize="5" x="${a.x.toFixed(1)}" y="${a.y.toFixed(1)}">${Qn(e.name)}</text>` : "";
3139
+ }).filter(Boolean).join("\n"), c = e.name ? ` <text fontSize="5" x="${a.x.toFixed(1)}" y="${a.y.toFixed(1)}">${er(e.name)}</text>` : "";
3105
3140
  return [
3106
3141
  ` <g id="${e.id}">`,
3107
3142
  o,
@@ -3120,7 +3155,7 @@ function nr(e, t) {
3120
3155
  "</svg>"
3121
3156
  ].join("\n");
3122
3157
  }
3123
- function rr(e) {
3158
+ function ar(e) {
3124
3159
  let t = [];
3125
3160
  for (let n of e.matchAll(/[ML]\s*([-\d.]+)[,\s]+([-\d.]+)/gi)) t.push({
3126
3161
  x: parseFloat(n[1]),
@@ -3128,14 +3163,14 @@ function rr(e) {
3128
3163
  });
3129
3164
  return t;
3130
3165
  }
3131
- function ir(e) {
3166
+ function or(e) {
3132
3167
  let t = new DOMParser().parseFromString(e, "image/svg+xml"), n = [];
3133
3168
  return t.querySelectorAll("[id^=\"room\"]").forEach((e) => {
3134
3169
  let t = e.querySelector("[id=\"background\"]");
3135
3170
  if (!t) return;
3136
3171
  let r = t.getAttribute("d");
3137
3172
  if (!r) return;
3138
- let i = rr(r);
3173
+ let i = ar(r);
3139
3174
  if (i.length < 3) return;
3140
3175
  let a = e.querySelector("text")?.textContent?.trim() ?? "";
3141
3176
  n.push({
@@ -3145,8 +3180,8 @@ function ir(e) {
3145
3180
  });
3146
3181
  }), n;
3147
3182
  }
3148
- function ar(e, t) {
3149
- let n = nr(e, t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
3183
+ function sr(e, t) {
3184
+ let n = ir(e, t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
3150
3185
  a.href = i, a.download = "room-plan.svg", a.click(), URL.revokeObjectURL(i);
3151
3186
  }
3152
3187
  var Q = {
@@ -3221,20 +3256,20 @@ var Q = {
3221
3256
  polyCloseTarget: "polyCloseTarget_snjYx",
3222
3257
  polyVertex: "polyVertex_fw0nX",
3223
3258
  vertexHandle: "vertexHandle_-z7g5"
3224
- }, or = 6, sr = 5, cr = 1.25, lr = .25, ur = 12, dr = 0;
3225
- function fr(e) {
3226
- return dr += 1, `${e}${dr}`;
3259
+ }, cr = 6, lr = 5, ur = 1.25, dr = .25, fr = 12, pr = 0;
3260
+ function mr(e) {
3261
+ return pr += 1, `${e}${pr}`;
3227
3262
  }
3228
- var pr = {
3263
+ var hr = {
3229
3264
  select: "Drag inside to move · Drag corner to reshape · Click wall to add corner · Dbl-click corner to remove · Delete to erase",
3230
3265
  rect: "Drag to draw a rectangular room",
3231
3266
  polygon: "Click to place corners · Click first point or Enter to close · Esc to cancel"
3232
3267
  };
3233
- function mr({ className: e }) {
3268
+ function gr({ className: e }) {
3234
3269
  let [t, n] = f([]), [r, i] = f([]), [o, s] = f("rect"), [l, u] = f(null), [h, _] = f(null), [v, y] = f(null), [b, x] = f(null), [S, C] = f([]), [D, O] = f(null), [k, A] = f(1), [M, F] = f({
3235
3270
  x: 0,
3236
3271
  y: 0
3237
- }), I = d(null), L = d(null), R = d(null), ee = d(null), ne = d(null), V = d({
3272
+ }), I = d(null), L = d(null), R = d(null), B = d(null), ne = d(null), V = d({
3238
3273
  rooms: t,
3239
3274
  doors: r,
3240
3275
  tool: o,
@@ -3258,19 +3293,19 @@ function mr({ className: e }) {
3258
3293
  });
3259
3294
  function ie(e) {
3260
3295
  e.length < 3 || (n((t) => [...t, {
3261
- id: fr("room"),
3296
+ id: mr("room"),
3262
3297
  name: `Room ${t.length + 1}`,
3263
3298
  points: e
3264
3299
  }]), C([]), O(null));
3265
3300
  }
3266
3301
  a(() => {
3267
- let e = ee.current;
3302
+ let e = B.current;
3268
3303
  if (!e) return;
3269
3304
  function t(e) {
3270
3305
  e.preventDefault();
3271
- let { zoom: t, pan: n } = V.current, r = Wn(e.clientX, e.clientY, ee.current);
3306
+ let { zoom: t, pan: n } = V.current, r = Kn(e.clientX, e.clientY, B.current);
3272
3307
  if (!r) return;
3273
- let i = e.deltaY < 0 ? cr : 1 / cr, a = Math.max(lr, Math.min(ur, t * i));
3308
+ let i = e.deltaY < 0 ? ur : 1 / ur, a = Math.max(dr, Math.min(fr, t * i));
3274
3309
  F({
3275
3310
  x: r.x - (r.x - n.x) * (t / a),
3276
3311
  y: r.y - (r.y - n.y) * (t / a)
@@ -3293,7 +3328,7 @@ function mr({ className: e }) {
3293
3328
  return;
3294
3329
  }
3295
3330
  if ((e.key === "+" || e.key === "=") && !(e.target instanceof HTMLInputElement)) {
3296
- let e = Math.max(lr, Math.min(ur, s * cr)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3331
+ let e = Math.max(dr, Math.min(fr, s * ur)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3297
3332
  A(e), F({
3298
3333
  x: t - 400 / e / 2,
3299
3334
  y: n - 300 / e / 2
@@ -3301,7 +3336,7 @@ function mr({ className: e }) {
3301
3336
  return;
3302
3337
  }
3303
3338
  if (e.key === "-" && !(e.target instanceof HTMLInputElement)) {
3304
- let e = Math.max(lr, Math.min(ur, s / cr)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3339
+ let e = Math.max(dr, Math.min(fr, s / ur)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3305
3340
  A(e), F({
3306
3341
  x: t - 400 / e / 2,
3307
3342
  y: n - 300 / e / 2
@@ -3320,31 +3355,31 @@ function mr({ className: e }) {
3320
3355
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
3321
3356
  }, []);
3322
3357
  function ae(e, t = k, n = M) {
3323
- let r = Math.max(lr, Math.min(ur, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
3358
+ let r = Math.max(dr, Math.min(fr, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
3324
3359
  F({
3325
3360
  x: i - 400 / r / 2,
3326
3361
  y: a - 300 / r / 2
3327
3362
  }), A(r);
3328
3363
  }
3329
- function W(e) {
3330
- return ee.current ? Wn(e.clientX, e.clientY, ee.current) : null;
3364
+ function oe(e) {
3365
+ return B.current ? Kn(e.clientX, e.clientY, B.current) : null;
3331
3366
  }
3332
- function oe(e, t) {
3367
+ function W(e, t) {
3333
3368
  let n = null;
3334
3369
  for (let r = 0; r < t.points.length; r++) {
3335
- let i = Gn(e, t.points[r]);
3336
- i <= or && (!n || i < n.d) && (n = {
3370
+ let i = qn(e, t.points[r]);
3371
+ i <= cr && (!n || i < n.d) && (n = {
3337
3372
  index: r,
3338
3373
  d: i
3339
3374
  });
3340
3375
  }
3341
3376
  return n;
3342
3377
  }
3343
- function se(e, t) {
3378
+ function G(e, t) {
3344
3379
  let n = null;
3345
3380
  for (let r = 0; r < t.points.length; r++) {
3346
- let i = t.points[r], a = t.points[(r + 1) % t.points.length], { dist: o, t: s } = Kn(e, i, a);
3347
- o <= sr && (!n || o < n.d) && (n = {
3381
+ let i = t.points[r], a = t.points[(r + 1) % t.points.length], { dist: o, t: s } = Jn(e, i, a);
3382
+ o <= lr && (!n || o < n.d) && (n = {
3348
3383
  index: r,
3349
3384
  t: s,
3350
3385
  d: o
@@ -3352,7 +3387,7 @@ function mr({ className: e }) {
3352
3387
  }
3353
3388
  return n;
3354
3389
  }
3355
- function ce(e, t, r, a) {
3390
+ function se(e, t, r, a) {
3356
3391
  return n((n) => n.map((n) => {
3357
3392
  if (n.id !== e) return n;
3358
3393
  let r = [...n.points];
@@ -3372,7 +3407,7 @@ function mr({ className: e }) {
3372
3407
  wallIndex: n.wallIndex + 1
3373
3408
  } : n : n)), t + 1;
3374
3409
  }
3375
- function le(e, r) {
3410
+ function ce(e, r) {
3376
3411
  let a = t.find((t) => t.id === e);
3377
3412
  if (!a || a.points.length <= 3) return;
3378
3413
  let o = a.points.length;
@@ -3391,10 +3426,10 @@ function mr({ className: e }) {
3391
3426
  } : t;
3392
3427
  }).filter((e) => e.wallIndex !== -1));
3393
3428
  }
3394
- function ue(e) {
3429
+ function le(e) {
3395
3430
  if (e.button === 1) {
3396
3431
  e.preventDefault();
3397
- let t = ee.current;
3432
+ let t = B.current;
3398
3433
  if (t) {
3399
3434
  let n = t.getBoundingClientRect();
3400
3435
  R.current = {
@@ -3411,14 +3446,14 @@ function mr({ className: e }) {
3411
3446
  }
3412
3447
  if (e.button !== 0) return;
3413
3448
  e.preventDefault();
3414
- let n = W(e);
3449
+ let n = oe(e);
3415
3450
  if (n) {
3416
3451
  if (h) {
3417
3452
  let e = t.find((e) => e.id === h);
3418
3453
  if (e) {
3419
- let t = qn(n, [e]);
3454
+ let t = Yn(n, [e]);
3420
3455
  t && i((e) => [...e, {
3421
- id: fr("door"),
3456
+ id: mr("door"),
3422
3457
  roomId: t.roomId,
3423
3458
  wallIndex: t.wallIndex,
3424
3459
  t: t.t,
@@ -3432,13 +3467,13 @@ function mr({ className: e }) {
3432
3467
  return;
3433
3468
  }
3434
3469
  if (o === "polygon") {
3435
- S.length >= 3 && Gn(n, S[0]) <= 8 ? ie(S) : C((e) => [...e, n]);
3470
+ S.length >= 3 && qn(n, S[0]) <= 8 ? ie(S) : C((e) => [...e, n]);
3436
3471
  return;
3437
3472
  }
3438
3473
  if (o === "select") {
3439
3474
  let e = t.find((e) => e.id === l) ?? null;
3440
3475
  if (e) {
3441
- let t = oe(n, e);
3476
+ let t = W(n, e);
3442
3477
  if (t) {
3443
3478
  I.current = {
3444
3479
  type: "vertex",
@@ -3451,12 +3486,12 @@ function mr({ className: e }) {
3451
3486
  }
3452
3487
  }
3453
3488
  if (e) {
3454
- let t = se(n, e);
3489
+ let t = G(n, e);
3455
3490
  if (t) {
3456
- let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = Un({
3491
+ let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = Gn({
3457
3492
  x: r.x + (i.x - r.x) * t.t,
3458
3493
  y: r.y + (i.y - r.y) * t.t
3459
- }), o = ce(e.id, t.index, t.t, a);
3494
+ }), o = se(e.id, t.index, t.t, a);
3460
3495
  I.current = {
3461
3496
  type: "vertex",
3462
3497
  roomId: e.id,
@@ -3467,7 +3502,7 @@ function mr({ className: e }) {
3467
3502
  return;
3468
3503
  }
3469
3504
  }
3470
- let r = t.find((e) => Jn(n, e.points));
3505
+ let r = t.find((e) => Xn(n, e.points));
3471
3506
  if (r) {
3472
3507
  u(r.id), I.current = {
3473
3508
  type: "room",
@@ -3481,16 +3516,16 @@ function mr({ className: e }) {
3481
3516
  }
3482
3517
  }
3483
3518
  }
3484
- function de(e) {
3519
+ function ue(e) {
3485
3520
  if (o !== "select" || h) return;
3486
- let n = W(e);
3521
+ let n = oe(e);
3487
3522
  if (!n) return;
3488
3523
  let r = t.find((e) => e.id === l);
3489
3524
  if (!r) return;
3490
- let i = oe(n, r);
3491
- i && (e.preventDefault(), le(r.id, i.index));
3525
+ let i = W(n, r);
3526
+ i && (e.preventDefault(), ce(r.id, i.index));
3492
3527
  }
3493
- function G(e) {
3528
+ function de(e) {
3494
3529
  if (R.current) {
3495
3530
  let { startClient: t, origPan: n, scaleX: r, scaleY: i } = R.current;
3496
3531
  F({
@@ -3499,12 +3534,12 @@ function mr({ className: e }) {
3499
3534
  });
3500
3535
  return;
3501
3536
  }
3502
- let r = W(e);
3537
+ let r = oe(e);
3503
3538
  if (r) {
3504
3539
  if (L.current && h) {
3505
3540
  let e = t.find((e) => e.id === h);
3506
3541
  if (e) {
3507
- let t = qn(r, [e]);
3542
+ let t = Yn(r, [e]);
3508
3543
  t && i((e) => e.map((e) => e.id === L.current ? {
3509
3544
  ...e,
3510
3545
  wallIndex: t.wallIndex,
@@ -3524,7 +3559,7 @@ function mr({ className: e }) {
3524
3559
  if (o === "select" && !h && I.current) {
3525
3560
  let e = I.current;
3526
3561
  if (e.type === "vertex") {
3527
- let t = r.x - e.start.x, i = r.y - e.start.y, a = Un({
3562
+ let t = r.x - e.start.x, i = r.y - e.start.y, a = Gn({
3528
3563
  x: e.origPt.x + t,
3529
3564
  y: e.origPt.y + i
3530
3565
  });
@@ -3554,42 +3589,42 @@ function mr({ className: e }) {
3554
3589
  R.current = null;
3555
3590
  return;
3556
3591
  }
3557
- let t = W(e);
3592
+ let t = oe(e);
3558
3593
  if (t) {
3559
3594
  if (o === "rect" && v) {
3560
3595
  let e = Math.min(v.x, t.x), r = Math.min(v.y, t.y), i = Math.abs(t.x - v.x), a = Math.abs(t.y - v.y);
3561
3596
  i >= 10 && a >= 10 && n((t) => [...t, {
3562
- id: fr("room"),
3597
+ id: mr("room"),
3563
3598
  name: `Room ${t.length + 1}`,
3564
- points: Xn(e, r, i, a)
3599
+ points: Qn(e, r, i, a)
3565
3600
  }]), y(null), x(null);
3566
3601
  }
3567
3602
  L.current = null, I.current = null;
3568
3603
  }
3569
3604
  }
3570
- function K(e) {
3605
+ function pe(e) {
3571
3606
  l && n((t) => t.map((t) => t.id === l ? {
3572
3607
  ...t,
3573
3608
  name: e
3574
3609
  } : t));
3575
3610
  }
3576
- function pe(e, t) {
3611
+ function me(e, t) {
3577
3612
  let n = parseFloat(t);
3578
3613
  isNaN(n) || n <= 0 || i((t) => t.map((t) => t.id === e ? {
3579
3614
  ...t,
3580
3615
  width: n
3581
3616
  } : t));
3582
3617
  }
3583
- function me() {
3618
+ function he() {
3584
3619
  l && (n((e) => e.filter((e) => e.id !== l)), i((e) => e.filter((e) => e.roomId !== l)), _(null), u(null));
3585
3620
  }
3586
- function he(e) {
3621
+ function ge(e) {
3587
3622
  i((t) => t.filter((t) => t.id !== e));
3588
3623
  }
3589
- function ge(e) {
3624
+ function _e(e) {
3590
3625
  s(e), _(null), C([]), O(null), y(null), x(null);
3591
3626
  }
3592
- function _e(e) {
3627
+ function ve(e) {
3593
3628
  let t = e.target.files?.[0];
3594
3629
  if (!t) return;
3595
3630
  e.target.value = "";
@@ -3597,22 +3632,22 @@ function mr({ className: e }) {
3597
3632
  r.onload = (e) => {
3598
3633
  let t = e.target?.result;
3599
3634
  if (typeof t != "string") return;
3600
- let r = ir(t);
3635
+ let r = or(t);
3601
3636
  r.length !== 0 && (n(r.map((e) => ({
3602
3637
  ...e,
3603
- id: fr("room")
3638
+ id: mr("room")
3604
3639
  }))), i([]), u(null), _(null), A(1), F({
3605
3640
  x: 0,
3606
3641
  y: 0
3607
3642
  }));
3608
3643
  }, r.readAsText(t);
3609
3644
  }
3610
- let ve = o === "rect" && v && b ? {
3645
+ let ye = o === "rect" && v && b ? {
3611
3646
  x: Math.min(v.x, b.x),
3612
3647
  y: Math.min(v.y, b.y),
3613
3648
  w: Math.abs(b.x - v.x),
3614
3649
  h: Math.abs(b.y - v.y)
3615
- } : null, ye = l ? t.find((e) => e.id === l) ?? null : null, be = h ? t.find((e) => e.id === h) ?? null : null, xe = h ? r.filter((e) => e.roomId === h) : [], Se = [
3650
+ } : null, be = l ? t.find((e) => e.id === l) ?? null : null, xe = h ? t.find((e) => e.id === h) ?? null : null, Se = h ? r.filter((e) => e.roomId === h) : [], Ce = [
3616
3651
  {
3617
3652
  t: "select",
3618
3653
  icon: j,
@@ -3620,7 +3655,7 @@ function mr({ className: e }) {
3620
3655
  },
3621
3656
  {
3622
3657
  t: "rect",
3623
- icon: z,
3658
+ icon: ee,
3624
3659
  label: "Rectangle room"
3625
3660
  },
3626
3661
  {
@@ -3628,25 +3663,25 @@ function mr({ className: e }) {
3628
3663
  icon: E,
3629
3664
  label: "Polygon room"
3630
3665
  }
3631
- ], Ce = 400 / k, q = 300 / k, we = h ? Q.roomDrawerCanvasDoor : o === "select" ? Q.roomDrawerCanvasSelect : void 0;
3666
+ ], we = 400 / k, K = 300 / k, Te = h ? Q.roomDrawerCanvasDoor : o === "select" ? Q.roomDrawerCanvasSelect : void 0;
3632
3667
  return /* @__PURE__ */ U("div", {
3633
3668
  className: p(Q.roomDrawer, e),
3634
3669
  children: [
3635
3670
  /* @__PURE__ */ U("div", {
3636
3671
  className: Q.roomDrawerToolbar,
3637
3672
  children: [
3638
- Se.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ H("button", {
3673
+ Ce.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ H("button", {
3639
3674
  title: n,
3640
3675
  className: p(Q.roomDrawerToolbarBtn, e === o && !h && Q.roomDrawerToolbarBtnActive),
3641
- onClick: () => ge(e),
3676
+ onClick: () => _e(e),
3642
3677
  children: /* @__PURE__ */ H(m, { icon: t })
3643
3678
  }, e)),
3644
3679
  /* @__PURE__ */ H("div", { className: Q.roomDrawerToolbarSep }),
3645
3680
  /* @__PURE__ */ H("button", {
3646
3681
  title: "Zoom in (+)",
3647
3682
  className: Q.roomDrawerToolbarBtn,
3648
- onClick: () => ae(cr),
3649
- disabled: k >= ur,
3683
+ onClick: () => ae(ur),
3684
+ disabled: k >= fr,
3650
3685
  children: /* @__PURE__ */ H(m, { icon: P })
3651
3686
  }),
3652
3687
  /* @__PURE__ */ U("button", {
@@ -3663,8 +3698,8 @@ function mr({ className: e }) {
3663
3698
  /* @__PURE__ */ H("button", {
3664
3699
  title: "Zoom out (−)",
3665
3700
  className: Q.roomDrawerToolbarBtn,
3666
- onClick: () => ae(1 / cr),
3667
- disabled: k <= lr,
3701
+ onClick: () => ae(1 / ur),
3702
+ disabled: k <= dr,
3668
3703
  children: /* @__PURE__ */ H(m, { icon: N })
3669
3704
  }),
3670
3705
  /* @__PURE__ */ H("div", { className: Q.roomDrawerToolbarSep }),
@@ -3677,7 +3712,7 @@ function mr({ className: e }) {
3677
3712
  /* @__PURE__ */ H("button", {
3678
3713
  title: "Download SVG",
3679
3714
  className: Q.roomDrawerToolbarBtn,
3680
- onClick: () => ar(t, r),
3715
+ onClick: () => sr(t, r),
3681
3716
  disabled: t.length === 0,
3682
3717
  children: /* @__PURE__ */ H(m, { icon: T })
3683
3718
  }),
@@ -3686,18 +3721,18 @@ function mr({ className: e }) {
3686
3721
  type: "file",
3687
3722
  accept: ".svg,image/svg+xml",
3688
3723
  style: { display: "none" },
3689
- onChange: _e
3724
+ onChange: ve
3690
3725
  })
3691
3726
  ]
3692
3727
  }),
3693
3728
  /* @__PURE__ */ U("svg", {
3694
- ref: ee,
3695
- className: p(Q.roomDrawerCanvas, we),
3696
- viewBox: `${M.x} ${M.y} ${Ce} ${q}`,
3697
- onMouseDown: ue,
3698
- onMouseMove: G,
3729
+ ref: B,
3730
+ className: p(Q.roomDrawerCanvas, Te),
3731
+ viewBox: `${M.x} ${M.y} ${we} ${K}`,
3732
+ onMouseDown: le,
3733
+ onMouseMove: de,
3699
3734
  onMouseUp: fe,
3700
- onDoubleClick: de,
3735
+ onDoubleClick: ue,
3701
3736
  children: [
3702
3737
  /* @__PURE__ */ H("defs", { children: /* @__PURE__ */ H("pattern", {
3703
3738
  id: "rd-grid",
@@ -3713,12 +3748,12 @@ function mr({ className: e }) {
3713
3748
  /* @__PURE__ */ H("rect", {
3714
3749
  x: M.x,
3715
3750
  y: M.y,
3716
- width: Ce,
3717
- height: q,
3751
+ width: we,
3752
+ height: K,
3718
3753
  fill: "url(#rd-grid)"
3719
3754
  }),
3720
3755
  t.map((e) => {
3721
- let t = e.points, n = t.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x},${e.y}`).join(" ") + " Z", i = er(t, r.filter((t) => t.roomId === e.id)), a = Yn(t), o = l === e.id, s = h === e.id;
3756
+ let t = e.points, n = t.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x},${e.y}`).join(" ") + " Z", i = nr(t, r.filter((t) => t.roomId === e.id)), a = Zn(t), o = l === e.id, s = h === e.id;
3722
3757
  return /* @__PURE__ */ U("g", { children: [
3723
3758
  /* @__PURE__ */ H("path", {
3724
3759
  d: n,
@@ -3741,7 +3776,7 @@ function mr({ className: e }) {
3741
3776
  r.map((e) => {
3742
3777
  let n = t.find((t) => t.id === e.roomId);
3743
3778
  if (!n) return null;
3744
- let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Zn(r, i, e.t, e.width);
3779
+ let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = $n(r, i, e.t, e.width);
3745
3780
  return a ? /* @__PURE__ */ H("line", {
3746
3781
  x1: a.p1.x,
3747
3782
  y1: a.p1.y,
@@ -3750,10 +3785,10 @@ function mr({ className: e }) {
3750
3785
  className: Q.doorGap
3751
3786
  }, e.id) : null;
3752
3787
  }),
3753
- h && xe.map((e) => {
3788
+ h && Se.map((e) => {
3754
3789
  let n = t.find((t) => t.id === e.roomId);
3755
3790
  if (!n) return null;
3756
- let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Zn(r, i, e.t, e.width);
3791
+ let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = $n(r, i, e.t, e.width);
3757
3792
  if (!a) return null;
3758
3793
  let o = {
3759
3794
  x: (a.p1.x + a.p2.x) / 2,
@@ -3769,17 +3804,17 @@ function mr({ className: e }) {
3769
3804
  }
3770
3805
  }, e.id);
3771
3806
  }),
3772
- o === "select" && !h && ye && ye.points.map((e, t) => /* @__PURE__ */ H("circle", {
3807
+ o === "select" && !h && be && be.points.map((e, t) => /* @__PURE__ */ H("circle", {
3773
3808
  cx: e.x,
3774
3809
  cy: e.y,
3775
3810
  r: 3.5,
3776
3811
  className: Q.vertexHandle
3777
3812
  }, t)),
3778
- ve && /* @__PURE__ */ H("rect", {
3779
- x: ve.x,
3780
- y: ve.y,
3781
- width: ve.w,
3782
- height: ve.h,
3813
+ ye && /* @__PURE__ */ H("rect", {
3814
+ x: ye.x,
3815
+ y: ye.y,
3816
+ width: ye.w,
3817
+ height: ye.h,
3783
3818
  className: Q.preview
3784
3819
  }),
3785
3820
  o === "polygon" && S.length > 0 && /* @__PURE__ */ U(re, { children: [
@@ -3802,7 +3837,7 @@ function mr({ className: e }) {
3802
3837
  ] })
3803
3838
  ]
3804
3839
  }),
3805
- ye && !h && /* @__PURE__ */ U("div", {
3840
+ be && !h && /* @__PURE__ */ U("div", {
3806
3841
  className: Q.roomDrawerInfo,
3807
3842
  children: [
3808
3843
  /* @__PURE__ */ H("span", {
@@ -3811,25 +3846,25 @@ function mr({ className: e }) {
3811
3846
  }),
3812
3847
  /* @__PURE__ */ H("input", {
3813
3848
  className: Q.roomDrawerInfoInput,
3814
- value: ye.name,
3815
- onChange: (e) => K(e.target.value),
3849
+ value: be.name,
3850
+ onChange: (e) => pe(e.target.value),
3816
3851
  placeholder: "Room name"
3817
3852
  }),
3818
3853
  /* @__PURE__ */ U("button", {
3819
3854
  className: Q.roomDrawerInfoDoorsBtn,
3820
- onClick: () => _(ye.id),
3855
+ onClick: () => _(be.id),
3821
3856
  title: "Edit doors",
3822
- children: [/* @__PURE__ */ H(m, { icon: w }), /* @__PURE__ */ H("span", { children: r.filter((e) => e.roomId === ye.id).length })]
3857
+ children: [/* @__PURE__ */ H(m, { icon: w }), /* @__PURE__ */ H("span", { children: r.filter((e) => e.roomId === be.id).length })]
3823
3858
  }),
3824
3859
  /* @__PURE__ */ H("button", {
3825
3860
  className: Q.roomDrawerInfoDelete,
3826
- onClick: me,
3861
+ onClick: he,
3827
3862
  title: "Delete room",
3828
- children: /* @__PURE__ */ H(m, { icon: B })
3863
+ children: /* @__PURE__ */ H(m, { icon: z })
3829
3864
  })
3830
3865
  ]
3831
3866
  }),
3832
- h && be && /* @__PURE__ */ U("div", {
3867
+ h && xe && /* @__PURE__ */ U("div", {
3833
3868
  className: Q.roomDrawerDoorPanel,
3834
3869
  children: [/* @__PURE__ */ U("div", {
3835
3870
  className: Q.roomDrawerDoorPanelHeader,
@@ -3840,7 +3875,7 @@ function mr({ className: e }) {
3840
3875
  }),
3841
3876
  /* @__PURE__ */ H("span", {
3842
3877
  className: Q.roomDrawerDoorPanelTitle,
3843
- children: be.name ? `Doors · ${be.name}` : "Doors"
3878
+ children: xe.name ? `Doors · ${xe.name}` : "Doors"
3844
3879
  }),
3845
3880
  /* @__PURE__ */ U("button", {
3846
3881
  className: Q.roomDrawerDoorPanelDone,
@@ -3851,10 +3886,10 @@ function mr({ className: e }) {
3851
3886
  ]
3852
3887
  }), /* @__PURE__ */ U("div", {
3853
3888
  className: Q.roomDrawerDoorPanelList,
3854
- children: [xe.length === 0 && /* @__PURE__ */ H("span", {
3889
+ children: [Se.length === 0 && /* @__PURE__ */ H("span", {
3855
3890
  className: Q.roomDrawerDoorPanelEmpty,
3856
3891
  children: "Click on a wall to add a door"
3857
- }), xe.map((e, t) => /* @__PURE__ */ U("div", {
3892
+ }), Se.map((e, t) => /* @__PURE__ */ U("div", {
3858
3893
  className: Q.roomDrawerDoorPanelItem,
3859
3894
  children: [
3860
3895
  /* @__PURE__ */ U("span", {
@@ -3870,13 +3905,13 @@ function mr({ className: e }) {
3870
3905
  type: "number",
3871
3906
  min: 1,
3872
3907
  value: e.width,
3873
- onChange: (t) => pe(e.id, t.target.value)
3908
+ onChange: (t) => me(e.id, t.target.value)
3874
3909
  }),
3875
3910
  /* @__PURE__ */ H("button", {
3876
3911
  className: Q.roomDrawerInfoDelete,
3877
- onClick: () => he(e.id),
3912
+ onClick: () => ge(e.id),
3878
3913
  title: "Delete door",
3879
- children: /* @__PURE__ */ H(m, { icon: B })
3914
+ children: /* @__PURE__ */ H(m, { icon: z })
3880
3915
  })
3881
3916
  ]
3882
3917
  }, e.id))]
@@ -3884,12 +3919,12 @@ function mr({ className: e }) {
3884
3919
  }),
3885
3920
  /* @__PURE__ */ H("div", {
3886
3921
  className: Q.roomDrawerHint,
3887
- children: h ? "Click a wall to add a door · Adjust width or delete from the list · Done or Esc to finish" : `${pr[o]} · Scroll to zoom · Middle-drag to pan · 0 to reset`
3922
+ children: h ? "Click a wall to add a door · Adjust width or delete from the list · Done or Esc to finish" : `${hr[o]} · Scroll to zoom · Middle-drag to pan · 0 to reset`
3888
3923
  })
3889
3924
  ]
3890
3925
  });
3891
3926
  }
3892
- var hr = {
3927
+ var _r = {
3893
3928
  "roomViewer-containerLoading": "roomViewer-containerLoading_BL3M-",
3894
3929
  roomViewerContainerLoading: "roomViewer-containerLoading_BL3M-",
3895
3930
  "roomViewer-container": "roomViewer-container_YlmB8",
@@ -3907,7 +3942,7 @@ var hr = {
3907
3942
  };
3908
3943
  //#endregion
3909
3944
  //#region package/common/roomViewer/roomViewer.tsx
3910
- function gr({ data: e = [] }) {
3945
+ function vr({ data: e = [] }) {
3911
3946
  let t = d(null), [, n] = f(null), [r, i] = f(0), [o, s] = f(!0);
3912
3947
  a(() => {
3913
3948
  let i = new AbortController();
@@ -3927,15 +3962,15 @@ function gr({ data: e = [] }) {
3927
3962
  if (n) {
3928
3963
  let [e] = t.querySelectorAll(`[id="room${n}"]`);
3929
3964
  if (e) {
3930
- e.classList.remove(hr.roomViewerSelected, hr.roomViewerTint);
3965
+ e.classList.remove(_r.roomViewerSelected, _r.roomViewerTint);
3931
3966
  let [t] = e.querySelectorAll("[id=\"background\"]");
3932
- t && t.classList.remove(hr.roomViewerTint);
3967
+ t && t.classList.remove(_r.roomViewerTint);
3933
3968
  }
3934
3969
  }
3935
3970
  if (a) {
3936
- a.classList.add(hr.roomViewerSelected);
3971
+ a.classList.add(_r.roomViewerSelected);
3937
3972
  let [e] = a.querySelectorAll("[id=\"background\"]");
3938
- (e ?? a).classList.add(hr.roomViewerTint);
3973
+ (e ?? a).classList.add(_r.roomViewerTint);
3939
3974
  }
3940
3975
  return r;
3941
3976
  });
@@ -3948,19 +3983,19 @@ function gr({ data: e = [] }) {
3948
3983
  }
3949
3984
  let u = e[r]?.data ?? null;
3950
3985
  return /* @__PURE__ */ U("div", {
3951
- className: hr.roomViewer,
3986
+ className: _r.roomViewer,
3952
3987
  ref: t,
3953
3988
  children: [
3954
3989
  /* @__PURE__ */ H("h3", {
3955
- className: hr.roomViewerHeader,
3990
+ className: _r.roomViewerHeader,
3956
3991
  children: e[r]?.label ?? ""
3957
3992
  }),
3958
3993
  /* @__PURE__ */ H("div", {
3959
- className: p(hr.roomViewerContainer, o && hr.roomViewerContainerLoading),
3994
+ className: p(_r.roomViewerContainer, o && _r.roomViewerContainerLoading),
3960
3995
  children: u
3961
3996
  }, r),
3962
3997
  e.length > 1 && /* @__PURE__ */ U("div", {
3963
- className: hr.roomViewerActions,
3998
+ className: _r.roomViewerActions,
3964
3999
  children: [
3965
4000
  /* @__PURE__ */ H(m, {
3966
4001
  icon: v,
@@ -3976,21 +4011,21 @@ function gr({ data: e = [] }) {
3976
4011
  ]
3977
4012
  });
3978
4013
  }
3979
- var _r = { scrollbarProvider: "scrollbarProvider_IMBFu" };
4014
+ var yr = { scrollbarProvider: "scrollbarProvider_IMBFu" };
3980
4015
  //#endregion
3981
4016
  //#region package/common/scrollbarProvider/scrollbarProvider.tsx
3982
- function vr({ className: e = void 0, children: t = void 0 }) {
4017
+ function br({ className: e = void 0, children: t = void 0 }) {
3983
4018
  return /* @__PURE__ */ H("div", {
3984
- className: p(_r.scrollbarProvider, e),
4019
+ className: p(yr.scrollbarProvider, e),
3985
4020
  children: t
3986
4021
  });
3987
4022
  }
3988
4023
  //#endregion
3989
4024
  //#region package/common/scrollbarProvider/index.ts
3990
- var yr = vr, br = { resultCount: "resultCount_Sn48Q" };
4025
+ var xr = br, Sr = { resultCount: "resultCount_Sn48Q" };
3991
4026
  //#endregion
3992
4027
  //#region package/common/searchInput/searchInput.tsx
3993
- function xr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, debounceMs: o = 500, totalAmount: s, showAmount: c = !0, className: l, width: u, ...f }) {
4028
+ function Cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, debounceMs: o = 500, totalAmount: s, showAmount: c = !0, className: l, width: u, ...f }) {
3994
4029
  let p = d(null);
3995
4030
  a(() => () => {
3996
4031
  p.current !== null && clearTimeout(p.current);
@@ -4007,13 +4042,13 @@ function xr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, de
4007
4042
  className: l,
4008
4043
  style: u == null ? void 0 : { width: u },
4009
4044
  children: [/* @__PURE__ */ H(lt, {
4010
- type: ct.Search,
4045
+ type: Y.Search,
4011
4046
  label: i,
4012
4047
  placeholder: r,
4013
4048
  value: e,
4014
4049
  onChange: m
4015
4050
  }), h && /* @__PURE__ */ U("p", {
4016
- className: br.resultCount,
4051
+ className: Sr.resultCount,
4017
4052
  children: [
4018
4053
  s,
4019
4054
  " ",
@@ -4022,7 +4057,7 @@ function xr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, de
4022
4057
  })]
4023
4058
  });
4024
4059
  }
4025
- var Sr = {
4060
+ var wr = {
4026
4061
  stepper: "stepper_kiS2A",
4027
4062
  "stepper-clickable": "stepper-clickable_Nm6fP",
4028
4063
  stepperClickable: "stepper-clickable_Nm6fP",
@@ -4052,7 +4087,7 @@ var Sr = {
4052
4087
  };
4053
4088
  //#endregion
4054
4089
  //#region package/common/stepper/stepper.tsx
4055
- function Cr() {
4090
+ function Tr() {
4056
4091
  return /* @__PURE__ */ H("svg", {
4057
4092
  strokeLinejoin: "round",
4058
4093
  strokeLinecap: "round",
@@ -4068,26 +4103,26 @@ function Cr() {
4068
4103
  })
4069
4104
  });
4070
4105
  }
4071
- function wr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", onStepClicked: i = null, nonLinear: a = !1, hideLabels: o = !1, className: s, style: c, classNames: l, styles: u, ...d }) {
4106
+ function Er({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", onStepClicked: i = null, nonLinear: a = !1, hideLabels: o = !1, className: s, style: c, classNames: l, styles: u, ...d }) {
4072
4107
  let f = r === "vertical";
4073
4108
  return /* @__PURE__ */ H("div", {
4074
4109
  ...d,
4075
- className: p(Sr.stepper, { [Sr.stepperVertical]: f }, l?.root, s),
4110
+ className: p(wr.stepper, { [wr.stepperVertical]: f }, l?.root, s),
4076
4111
  style: {
4077
4112
  ...u?.root,
4078
4113
  ...c
4079
4114
  },
4080
4115
  children: t.map((r, s) => {
4081
- let c = s < n, d = s <= n, m = !!i && (a ? s !== n : c), h = p(Sr.stepperEntry, { [Sr.stepperEntryActive]: d }, { [Sr.stepperEntryDone]: c }, { [Sr.stepperClickable]: m }, l?.entry), g = /* @__PURE__ */ U(re, { children: [/* @__PURE__ */ H("div", {
4082
- className: p(Sr.stepperEntryNumber, { [Sr.stepperEntryNumberDone]: c }, l?.entryNumber),
4116
+ let c = s < n, d = s <= n, m = !!i && (a ? s !== n : c), h = p(wr.stepperEntry, { [wr.stepperEntryActive]: d }, { [wr.stepperEntryDone]: c }, { [wr.stepperClickable]: m }, l?.entry), g = /* @__PURE__ */ U(re, { children: [/* @__PURE__ */ H("div", {
4117
+ className: p(wr.stepperEntryNumber, { [wr.stepperEntryNumberDone]: c }, l?.entryNumber),
4083
4118
  style: u?.entryNumber,
4084
- children: c ? /* @__PURE__ */ H(Cr, {}) : s + 1
4119
+ children: c ? /* @__PURE__ */ H(Tr, {}) : s + 1
4085
4120
  }), !o && /* @__PURE__ */ H("div", {
4086
- className: p(Sr.stepperEntryLabel, { [Sr.stepperEntryLabelVertical]: f }, l?.entryLabel),
4121
+ className: p(wr.stepperEntryLabel, { [wr.stepperEntryLabelVertical]: f }, l?.entryLabel),
4087
4122
  style: u?.entryLabel,
4088
4123
  children: r.label
4089
4124
  })] });
4090
- return /* @__PURE__ */ U(e.Fragment, { children: [m ? /* @__PURE__ */ H(Le, {
4125
+ return /* @__PURE__ */ U(e.Fragment, { children: [m ? /* @__PURE__ */ H(Re, {
4091
4126
  className: h,
4092
4127
  style: u?.entry,
4093
4128
  onClick: () => i(s),
@@ -4099,13 +4134,13 @@ function wr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", on
4099
4134
  "aria-current": s === n ? "step" : void 0,
4100
4135
  children: g
4101
4136
  }), s < t.length - 1 && /* @__PURE__ */ H("div", {
4102
- className: p(Sr.stepperConnector, { [Sr.stepperConnectorFilled]: c }, { [Sr.stepperConnectorVertical]: f }, l?.connector),
4137
+ className: p(wr.stepperConnector, { [wr.stepperConnectorFilled]: c }, { [wr.stepperConnectorVertical]: f }, l?.connector),
4103
4138
  style: u?.connector
4104
4139
  })] }, s);
4105
4140
  })
4106
4141
  });
4107
4142
  }
4108
- var Tr = {
4143
+ var Dr = {
4109
4144
  tabHeader: "tabHeader_C-b9d",
4110
4145
  "tabHeader-tab": "tabHeader-tab_Wbyt-",
4111
4146
  tabHeaderTab: "tabHeader-tab_Wbyt-",
@@ -4124,40 +4159,40 @@ var Tr = {
4124
4159
  };
4125
4160
  //#endregion
4126
4161
  //#region package/common/tabHeader/tabHeader.tsx
4127
- function Er({ tabs: e = [], currentTab: t, onChange: n, className: r, style: i, classNames: a, styles: o, ...s }) {
4162
+ function Or({ tabs: e = [], currentTab: t, onChange: n, className: r, style: i, classNames: a, styles: o, ...s }) {
4128
4163
  return /* @__PURE__ */ H("div", {
4129
4164
  ...s,
4130
4165
  role: "tablist",
4131
- className: p(Tr.tabHeader, a?.root, r),
4166
+ className: p(Dr.tabHeader, a?.root, r),
4132
4167
  style: {
4133
4168
  ...o?.root,
4134
4169
  ...i
4135
4170
  },
4136
4171
  children: e.map((e) => {
4137
4172
  let r = e.id === t, i = !!e.title || !!e.subtitle;
4138
- return /* @__PURE__ */ U(Le, {
4173
+ return /* @__PURE__ */ U(Re, {
4139
4174
  role: "tab",
4140
4175
  "aria-selected": r,
4141
4176
  "aria-disabled": e.disabled || void 0,
4142
4177
  tabIndex: e.disabled ? -1 : 0,
4143
- className: p(Tr.tabHeaderTab, { [Tr.tabHeaderTabActive]: r }, { [Tr.tabHeaderTabDisabled]: e.disabled }, a?.tab),
4178
+ className: p(Dr.tabHeaderTab, { [Dr.tabHeaderTabActive]: r }, { [Dr.tabHeaderTabDisabled]: e.disabled }, a?.tab),
4144
4179
  style: o?.tab,
4145
4180
  onClick: () => {
4146
4181
  e.disabled || r || n(e.id);
4147
4182
  },
4148
4183
  children: [/* @__PURE__ */ H(m, {
4149
4184
  icon: e.icon,
4150
- className: p(Tr.tabHeaderIcon, a?.icon),
4185
+ className: p(Dr.tabHeaderIcon, a?.icon),
4151
4186
  style: o?.icon
4152
4187
  }), i && /* @__PURE__ */ U("div", {
4153
- className: p(Tr.tabHeaderLabels, a?.labels),
4188
+ className: p(Dr.tabHeaderLabels, a?.labels),
4154
4189
  style: o?.labels,
4155
4190
  children: [e.title && /* @__PURE__ */ H("span", {
4156
- className: p(Tr.tabHeaderTitle, a?.title),
4191
+ className: p(Dr.tabHeaderTitle, a?.title),
4157
4192
  style: o?.title,
4158
4193
  children: e.title
4159
4194
  }), e.subtitle && /* @__PURE__ */ H("span", {
4160
- className: p(Tr.tabHeaderSubtitle, a?.subtitle),
4195
+ className: p(Dr.tabHeaderSubtitle, a?.subtitle),
4161
4196
  style: o?.subtitle,
4162
4197
  children: e.subtitle
4163
4198
  })]
@@ -4168,7 +4203,7 @@ function Er({ tabs: e = [], currentTab: t, onChange: n, className: r, style: i,
4168
4203
  }
4169
4204
  //#endregion
4170
4205
  //#region package/services/tenorService.ts
4171
- var Dr = "https://tenor.googleapis.com/v2", Or = class {
4206
+ var kr = "https://tenor.googleapis.com/v2", Ar = class {
4172
4207
  constructor(e) {
4173
4208
  this.key = e;
4174
4209
  }
@@ -4177,14 +4212,14 @@ var Dr = "https://tenor.googleapis.com/v2", Or = class {
4177
4212
  q: e,
4178
4213
  key: this.key
4179
4214
  });
4180
- return t.limit != null && n.set("limit", String(t.limit)), t.contentfilter != null && n.set("contentfilter", t.contentfilter), t.pos != null && n.set("pos", t.pos), (await fetch(`${Dr}/search?${n}`)).json();
4215
+ return t.limit != null && n.set("limit", String(t.limit)), t.contentfilter != null && n.set("contentfilter", t.contentfilter), t.pos != null && n.set("pos", t.pos), (await fetch(`${kr}/search?${n}`)).json();
4181
4216
  }
4182
4217
  async searchSuggestions(e) {
4183
4218
  let t = new URLSearchParams({
4184
4219
  q: e,
4185
4220
  key: this.key
4186
4221
  });
4187
- return (await fetch(`${Dr}/search_suggestions?${t}`)).json();
4222
+ return (await fetch(`${kr}/search_suggestions?${t}`)).json();
4188
4223
  }
4189
4224
  registerShare(e, t) {
4190
4225
  let n = new URLSearchParams({
@@ -4192,9 +4227,9 @@ var Dr = "https://tenor.googleapis.com/v2", Or = class {
4192
4227
  q: e,
4193
4228
  key: this.key
4194
4229
  });
4195
- fetch(`${Dr}/registershare?${n}`).catch(() => null);
4230
+ fetch(`${kr}/registershare?${n}`).catch(() => null);
4196
4231
  }
4197
- }, kr = {
4232
+ }, jr = {
4198
4233
  gifPreview: "gifPreview_-ECUZ",
4199
4234
  "gifPreview-image": "gifPreview-image_Aq7-a",
4200
4235
  gifPreviewImage: "gifPreview-image_Aq7-a",
@@ -4204,25 +4239,25 @@ var Dr = "https://tenor.googleapis.com/v2", Or = class {
4204
4239
  };
4205
4240
  //#endregion
4206
4241
  //#region package/common/tenorPicker/components/gifPreview/gifPreview.tsx
4207
- function Ar({ className: e, previewItems: t = [], onSelect: n, onLoadAdditional: r }) {
4242
+ function Mr({ className: e, previewItems: t = [], onSelect: n, onLoadAdditional: r }) {
4208
4243
  function i(e) {
4209
4244
  let t = e.currentTarget, n = t.scrollHeight - t.clientHeight * 1.5;
4210
4245
  t.scrollTop >= n && r?.();
4211
4246
  }
4212
4247
  return /* @__PURE__ */ H(re, { children: t.length > 0 && /* @__PURE__ */ H("div", {
4213
- className: p(kr.gifPreview, e),
4248
+ className: p(jr.gifPreview, e),
4214
4249
  onScroll: i,
4215
- children: t.map((e, t) => /* @__PURE__ */ H(Le, {
4216
- className: kr.gifPreviewImageContainer,
4250
+ children: t.map((e, t) => /* @__PURE__ */ H(Re, {
4251
+ className: jr.gifPreviewImageContainer,
4217
4252
  onClick: () => n?.(e),
4218
4253
  children: /* @__PURE__ */ H("div", {
4219
- className: kr.gifPreviewImage,
4254
+ className: jr.gifPreviewImage,
4220
4255
  style: { backgroundImage: `url(${e.media_formats.tinygif.url})` }
4221
4256
  })
4222
4257
  }, `${e.id}_${t}`))
4223
4258
  }) });
4224
4259
  }
4225
- var jr = {
4260
+ var Nr = {
4226
4261
  gifView: "gifView_Fa2zj",
4227
4262
  "gifView-loading": "gifView-loading_LfNJr",
4228
4263
  gifViewLoading: "gifView-loading_LfNJr",
@@ -4230,20 +4265,20 @@ var jr = {
4230
4265
  };
4231
4266
  //#endregion
4232
4267
  //#region package/common/tenorPicker/components/gifView/gifView.tsx
4233
- function Mr({ className: e, src: t = "" }) {
4268
+ function Pr({ className: e, src: t = "" }) {
4234
4269
  let [n, r] = f(!0);
4235
4270
  return a(() => {
4236
4271
  r(!0);
4237
4272
  }, [t]), /* @__PURE__ */ U("div", {
4238
- className: p(jr.gifView, e),
4273
+ className: p(Nr.gifView, e),
4239
4274
  children: [/* @__PURE__ */ H("img", {
4240
- className: jr.tenorPickerSelected,
4275
+ className: Nr.tenorPickerSelected,
4241
4276
  src: t,
4242
4277
  onLoad: () => r(!1)
4243
- }), n && /* @__PURE__ */ H("div", { className: jr.gifViewLoading })]
4278
+ }), n && /* @__PURE__ */ H("div", { className: Nr.gifViewLoading })]
4244
4279
  });
4245
4280
  }
4246
- var Nr = {
4281
+ var Fr = {
4247
4282
  "tenorPicker-selected": "tenorPicker-selected_IfR2z",
4248
4283
  tenorPickerSelected: "tenorPicker-selected_IfR2z",
4249
4284
  "tenorPicker-modal-content": "tenorPicker-modal-content_Vkolf",
@@ -4255,8 +4290,8 @@ var Nr = {
4255
4290
  };
4256
4291
  //#endregion
4257
4292
  //#region package/common/tenorPicker/tenorPicker.tsx
4258
- function Pr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () => void 0, selected: i = null }) {
4259
- let a = l(() => new Or(t), [t]), [o, s] = f(""), [c, u] = f([]), [d, m] = f([]), [h, g] = f(null), [_, v] = f(!1);
4293
+ function Ir({ className: e, token: t = "", isModal: n = !1, onSelect: r = () => void 0, selected: i = null }) {
4294
+ let a = l(() => new Ar(t), [t]), [o, s] = f(""), [c, u] = f([]), [d, m] = f([]), [h, g] = f(null), [_, v] = f(!1);
4260
4295
  async function y(e) {
4261
4296
  if (s(e), !e.trim()) {
4262
4297
  u([]), m([]), g(null);
@@ -4280,25 +4315,25 @@ function Pr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
4280
4315
  await r(e), v(!1), e && a.registerShare(o, e.id);
4281
4316
  }
4282
4317
  function S() {
4283
- return /* @__PURE__ */ H(tt, {
4318
+ return /* @__PURE__ */ H(nt, {
4284
4319
  inline: !0,
4285
- className: Nr.tenorPickerSuggestionsContainer,
4286
- children: d.map((e) => /* @__PURE__ */ H(et, {
4287
- className: Nr.tenorPickerSuggestionsItem,
4320
+ className: Fr.tenorPickerSuggestionsContainer,
4321
+ children: d.map((e) => /* @__PURE__ */ H(tt, {
4322
+ className: Fr.tenorPickerSuggestionsItem,
4288
4323
  text: e,
4289
4324
  onClick: () => y(e)
4290
4325
  }, e))
4291
4326
  });
4292
4327
  }
4293
4328
  function C() {
4294
- return /* @__PURE__ */ H(Ar, {
4329
+ return /* @__PURE__ */ H(Mr, {
4295
4330
  previewItems: c,
4296
4331
  onSelect: x,
4297
4332
  onLoadAdditional: b
4298
4333
  });
4299
4334
  }
4300
4335
  function w() {
4301
- return /* @__PURE__ */ H(xr, {
4336
+ return /* @__PURE__ */ H(Cr, {
4302
4337
  label: "Pick gif",
4303
4338
  value: o,
4304
4339
  onDebounce: y,
@@ -4306,28 +4341,28 @@ function Pr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
4306
4341
  });
4307
4342
  }
4308
4343
  return n ? /* @__PURE__ */ U("div", {
4309
- className: p(Nr.tenorPicker, e),
4344
+ className: p(Fr.tenorPicker, e),
4310
4345
  children: [
4311
4346
  /* @__PURE__ */ U("div", {
4312
- className: Ce.actionButtons,
4313
- children: [/* @__PURE__ */ H(J, {
4347
+ className: we.actionButtons,
4348
+ children: [/* @__PURE__ */ H(q, {
4314
4349
  onClick: () => v(!0),
4315
4350
  children: "Pick gif"
4316
- }), i && /* @__PURE__ */ H(J, {
4317
- styleType: De.Delete,
4351
+ }), i && /* @__PURE__ */ H(q, {
4352
+ styleType: Oe.Delete,
4318
4353
  onClick: () => x(null),
4319
4354
  children: "Remove gif"
4320
4355
  })]
4321
4356
  }),
4322
- i && /* @__PURE__ */ H(Mr, {
4323
- className: Nr.tenorPickerSelected,
4357
+ i && /* @__PURE__ */ H(Pr, {
4358
+ className: Fr.tenorPickerSelected,
4324
4359
  src: i
4325
4360
  }),
4326
4361
  /* @__PURE__ */ H(St, {
4327
4362
  isOpen: _,
4328
4363
  onClose: () => v(!1),
4329
4364
  children: /* @__PURE__ */ U("div", {
4330
- className: Nr.tenorPickerModalContent,
4365
+ className: Fr.tenorPickerModalContent,
4331
4366
  children: [
4332
4367
  w(),
4333
4368
  S(),
@@ -4337,22 +4372,22 @@ function Pr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
4337
4372
  })
4338
4373
  ]
4339
4374
  }) : /* @__PURE__ */ U("div", {
4340
- className: p(Nr.tenorPicker, e),
4375
+ className: p(Fr.tenorPicker, e),
4341
4376
  children: [
4342
- /* @__PURE__ */ H(at, {
4343
- align: rt.Left,
4377
+ /* @__PURE__ */ H(ot, {
4378
+ align: it.Left,
4344
4379
  isOpen: c.length > 0 && _,
4345
4380
  onOpenChange: v,
4346
4381
  content: /* @__PURE__ */ U(re, { children: [S(), C()] }),
4347
4382
  children: w()
4348
4383
  }),
4349
- i && /* @__PURE__ */ H(J, {
4350
- styleType: De.Delete,
4384
+ i && /* @__PURE__ */ H(q, {
4385
+ styleType: Oe.Delete,
4351
4386
  onClick: () => x(null),
4352
4387
  children: "Remove gif"
4353
4388
  }),
4354
- i && /* @__PURE__ */ H(Mr, {
4355
- className: Nr.tenorPickerSelected,
4389
+ i && /* @__PURE__ */ H(Pr, {
4390
+ className: Fr.tenorPickerSelected,
4356
4391
  src: i
4357
4392
  })
4358
4393
  ]
@@ -4360,7 +4395,7 @@ function Pr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
4360
4395
  }
4361
4396
  //#endregion
4362
4397
  //#region package/common/textarea/textarea.tsx
4363
- function Fr(e) {
4398
+ function Lr(e) {
4364
4399
  return /* @__PURE__ */ H(lt, {
4365
4400
  ...e,
4366
4401
  multiline: !0
@@ -4368,7 +4403,7 @@ function Fr(e) {
4368
4403
  }
4369
4404
  //#endregion
4370
4405
  //#region package/common/themeProvider/defaultTheme.ts
4371
- var Ir = {
4406
+ var Rr = {
4372
4407
  id: "default",
4373
4408
  variables: {
4374
4409
  "--grey": "#8A8A8A",
@@ -4428,14 +4463,14 @@ var Ir = {
4428
4463
  "--spacing-m": "8px",
4429
4464
  "--spacing-l": "16px"
4430
4465
  }
4431
- }, Lr = { colorFade: "colorFade_eLv2g" }, Rr = class extends t {
4466
+ }, zr = { colorFade: "colorFade_eLv2g" }, Br = class extends t {
4432
4467
  constructor(...t) {
4433
4468
  super(...t), this.state = {
4434
4469
  resolvedVariables: {},
4435
4470
  colorFadeActive: !1,
4436
4471
  currentThemeColor: null
4437
4472
  }, this.colorFadeTimeout = null, this.wrapperRef = e.createRef(), this.themeColorMeta = null, this.createdThemeColorMeta = !1, this.applyTheme = (e) => {
4438
- let t = this.props.themes ?? [Ir], n = t.find((e) => !e.baseThemeId) ?? t[0], r = n ? n.variables : {}, i = t.find((t) => t.id === e), a = i ? this.resolveChain(i.id) : [], o = Object.assign({}, r, ...a);
4473
+ let t = this.props.themes ?? [Rr], n = t.find((e) => !e.baseThemeId) ?? t[0], r = n ? n.variables : {}, i = t.find((t) => t.id === e), a = i ? this.resolveChain(i.id) : [], o = Object.assign({}, r, ...a);
4439
4474
  this.setState({
4440
4475
  resolvedVariables: o,
4441
4476
  colorFadeActive: !0
@@ -4469,7 +4504,7 @@ var Ir = {
4469
4504
  }
4470
4505
  }
4471
4506
  resolveChain(e) {
4472
- let t = (this.props.themes ?? [Ir]).find((t) => t.id === e);
4507
+ let t = (this.props.themes ?? [Rr]).find((t) => t.id === e);
4473
4508
  return t ? [...t.baseThemeId ? this.resolveChain(t.baseThemeId) : [], t.variables] : [];
4474
4509
  }
4475
4510
  render() {
@@ -4477,7 +4512,7 @@ var Ir = {
4477
4512
  return /* @__PURE__ */ H("div", {
4478
4513
  ref: this.wrapperRef,
4479
4514
  id: "themeProvider",
4480
- className: n ? Lr.colorFade : void 0,
4515
+ className: n ? zr.colorFade : void 0,
4481
4516
  style: t,
4482
4517
  children: e
4483
4518
  });
@@ -4485,7 +4520,7 @@ var Ir = {
4485
4520
  };
4486
4521
  //#endregion
4487
4522
  //#region package/common/themeProvider/useTheme.ts
4488
- function zr(e = "default") {
4523
+ function Vr(e = "default") {
4489
4524
  let [t, n] = f(localStorage.getItem("theme") || e);
4490
4525
  return {
4491
4526
  currentThemeId: t,
@@ -4494,7 +4529,7 @@ function zr(e = "default") {
4494
4529
  }
4495
4530
  };
4496
4531
  }
4497
- var Br = {
4532
+ var Hr = {
4498
4533
  container: "container_krdsW",
4499
4534
  "container-top-left": "container-top-left_zfDTO",
4500
4535
  containerTopLeft: "container-top-left_zfDTO",
@@ -4531,14 +4566,14 @@ var Br = {
4531
4566
  toastCloseButton: "toastCloseButton_n-YST",
4532
4567
  toastProgressBar: "toastProgressBar_6vBs6",
4533
4568
  toastShrink: "toastShrink_h89HS"
4534
- }, Vr = {
4569
+ }, Ur = {
4535
4570
  info: S,
4536
4571
  success: x,
4537
4572
  error: C,
4538
- warn: ee,
4573
+ warn: B,
4539
4574
  default: h
4540
4575
  };
4541
- function Hr({ item: e, isBottom: t, onDismiss: n }) {
4576
+ function Wr({ item: e, isBottom: t, onDismiss: n }) {
4542
4577
  let { id: r, content: i, options: o, dismissing: s } = e, { duration: c, showRemainingTime: l, showCloseButton: u, type: d, classNames: f, styles: h } = o;
4543
4578
  return a(() => {
4544
4579
  if (c === 0) return;
@@ -4549,28 +4584,28 @@ function Hr({ item: e, isBottom: t, onDismiss: n }) {
4549
4584
  c,
4550
4585
  n
4551
4586
  ]), /* @__PURE__ */ U("div", {
4552
- className: p(Br.toast, t ? Br.toastBottom : null, Br[`toast-${d}`], s && Br.toastDismissing, f?.root),
4587
+ className: p(Hr.toast, t ? Hr.toastBottom : null, Hr[`toast-${d}`], s && Hr.toastDismissing, f?.root),
4553
4588
  style: h?.root,
4554
4589
  children: [
4555
4590
  /* @__PURE__ */ H(m, {
4556
- icon: Vr[d],
4557
- className: p(Br.toastIcon, f?.icon),
4591
+ icon: Ur[d],
4592
+ className: p(Hr.toastIcon, f?.icon),
4558
4593
  style: h?.icon
4559
4594
  }),
4560
4595
  /* @__PURE__ */ H("div", {
4561
- className: p(Br.toastContent, f?.content),
4596
+ className: p(Hr.toastContent, f?.content),
4562
4597
  style: h?.content,
4563
4598
  children: i
4564
4599
  }),
4565
- u && /* @__PURE__ */ H(ze, {
4600
+ u && /* @__PURE__ */ H(Be, {
4566
4601
  icon: ne,
4567
4602
  onClick: () => n(r),
4568
- className: p(Br.toastCloseButton, f?.closeButton),
4603
+ className: p(Hr.toastCloseButton, f?.closeButton),
4569
4604
  style: h?.closeButton,
4570
4605
  "aria-label": "Close"
4571
4606
  }),
4572
4607
  l && c > 0 && /* @__PURE__ */ H("div", {
4573
- className: p(Br.toastProgressBar, f?.progressBar),
4608
+ className: p(Hr.toastProgressBar, f?.progressBar),
4574
4609
  style: {
4575
4610
  "--toast-duration": `${c}ms`,
4576
4611
  ...h?.progressBar
@@ -4581,40 +4616,40 @@ function Hr({ item: e, isBottom: t, onDismiss: n }) {
4581
4616
  }
4582
4617
  //#endregion
4583
4618
  //#region package/common/toast/toastService.ts
4584
- var Ur = null;
4585
- function Wr(e) {
4586
- Ur = e;
4619
+ var Gr = null;
4620
+ function Kr(e) {
4621
+ Gr = e;
4587
4622
  }
4588
- function Gr() {
4589
- Ur = null;
4623
+ function qr() {
4624
+ Gr = null;
4590
4625
  }
4591
- function Kr(e, t) {
4592
- if (!Ur) {
4626
+ function Jr(e, t) {
4627
+ if (!Gr) {
4593
4628
  console.error("[Toast] No ToastProvider found. Wrap your app with <ToastProvider>.");
4594
4629
  return;
4595
4630
  }
4596
- Ur(e, t);
4631
+ Gr(e, t);
4597
4632
  }
4598
4633
  //#endregion
4599
4634
  //#region package/common/toast/toastProvider.tsx
4600
- var qr = {
4635
+ var Yr = {
4601
4636
  position: "top-right",
4602
4637
  duration: 4e3,
4603
4638
  showRemainingTime: !0,
4604
4639
  showCloseButton: !0,
4605
4640
  allowStacking: !0
4606
- }, Jr = 220;
4607
- function Yr(e) {
4608
- return Br[`container-${e}`];
4641
+ }, Xr = 220;
4642
+ function Zr(e) {
4643
+ return Hr[`container-${e}`];
4609
4644
  }
4610
- function Xr({ children: e, position: t = qr.position, duration: n = qr.duration, showRemainingTime: r = qr.showRemainingTime, showCloseButton: o = qr.showCloseButton, allowStacking: s = qr.allowStacking }) {
4645
+ function Qr({ children: e, position: t = Yr.position, duration: n = Yr.duration, showRemainingTime: r = Yr.showRemainingTime, showCloseButton: o = Yr.showCloseButton, allowStacking: s = Yr.allowStacking }) {
4611
4646
  let [c, l] = f([]), u = d(0), m = i((e) => {
4612
4647
  l((t) => t.map((t) => t.id === e ? {
4613
4648
  ...t,
4614
4649
  dismissing: !0
4615
4650
  } : t)), setTimeout(() => {
4616
4651
  l((t) => t.filter((t) => t.id !== e));
4617
- }, Jr);
4652
+ }, Xr);
4618
4653
  }, []), h = i((e, i) => {
4619
4654
  let a = {
4620
4655
  position: i?.position ?? t,
@@ -4634,7 +4669,7 @@ function Xr({ children: e, position: t = qr.position, duration: n = qr.duration,
4634
4669
  };
4635
4670
  l((e) => !s && e.length > 0 ? (setTimeout(() => {
4636
4671
  l([c]);
4637
- }, Jr), e.map((e) => ({
4672
+ }, Xr), e.map((e) => ({
4638
4673
  ...e,
4639
4674
  dismissing: !0
4640
4675
  }))) : [...e, c]);
@@ -4645,14 +4680,14 @@ function Xr({ children: e, position: t = qr.position, duration: n = qr.duration,
4645
4680
  o,
4646
4681
  s
4647
4682
  ]);
4648
- a(() => (Wr(h), () => Gr()), [h]);
4683
+ a(() => (Kr(h), () => qr()), [h]);
4649
4684
  let g = c.reduce((e, t) => {
4650
4685
  let n = t.options.position;
4651
4686
  return e[n] || (e[n] = []), e[n].push(t), e;
4652
4687
  }, {});
4653
- return /* @__PURE__ */ U(re, { children: [e, /* @__PURE__ */ H(Be, { children: Object.entries(g).map(([e, t]) => /* @__PURE__ */ H("div", {
4654
- className: p(Br.container, Yr(e)),
4655
- children: t.map((t) => /* @__PURE__ */ H(Hr, {
4688
+ return /* @__PURE__ */ U(re, { children: [e, /* @__PURE__ */ H(Ve, { children: Object.entries(g).map(([e, t]) => /* @__PURE__ */ H("div", {
4689
+ className: p(Hr.container, Zr(e)),
4690
+ children: t.map((t) => /* @__PURE__ */ H(Wr, {
4656
4691
  item: t,
4657
4692
  isBottom: e.startsWith("bottom"),
4658
4693
  onDismiss: m
@@ -4714,56 +4749,57 @@ var $ = {
4714
4749
  };
4715
4750
  //#endregion
4716
4751
  //#region package/common/virtualList/virtualRow.tsx
4717
- function Zr({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i, hover: a, onClick: o, observer: s, ariaRowIndex: l, ariaPosInSet: u, ariaSetSize: f, rowRole: m, reorderable: h, draggable: g, isDragging: _, reserveToggleGutter: v, onMouseDown: y, onDragStart: b, onDragOver: x, onDragEnd: S, onDrop: C, onTouchStart: w, dropPosition: T, dropIndentPx: E, dropIndicatorClassName: D, dropIndicatorStyle: O, rowClassName: k, rowStyle: A, children: j }) {
4718
- let M = d(null);
4752
+ function $r({ index: e, top: t, padding: n, columnTemplate: r, isSelected: i, showDivider: a, hover: o, onClick: s, observer: l, ariaRowIndex: u, ariaPosInSet: f, ariaSetSize: m, rowRole: h, reorderable: g, draggable: _, isDragging: v, reserveToggleGutter: y, onMouseDown: b, onDragStart: x, onDragOver: S, onDragEnd: C, onDrop: w, onTouchStart: T, dropPosition: E, dropIndentPx: D, dropIndicatorClassName: O, dropIndicatorStyle: k, rowClassName: A, rowStyle: j, children: M }) {
4753
+ let N = d(null);
4719
4754
  return c(() => {
4720
- let e = M.current;
4721
- if (!(!e || !s)) return s.observe(e), () => s.unobserve(e);
4722
- }, [s]), /* @__PURE__ */ U("div", {
4723
- ref: M,
4755
+ let e = N.current;
4756
+ if (!(!e || !l)) return l.observe(e), () => l.unobserve(e);
4757
+ }, [l]), /* @__PURE__ */ U("div", {
4758
+ ref: N,
4724
4759
  "data-index": e,
4725
- className: p($.virtualListRow, r && $.virtualListRowSelected, !i && $.virtualListRowNoDivider, !a && $.virtualListRowNoHover, h && $.virtualListRowDraggable, _ && $.virtualListRowDragging, T === "inside" && $.virtualListRowDropInside, k),
4760
+ className: p($.virtualListRow, i && $.virtualListRowSelected, !a && $.virtualListRowNoDivider, !o && $.virtualListRowNoHover, g && $.virtualListRowDraggable, v && $.virtualListRowDragging, E === "inside" && $.virtualListRowDropInside, A),
4726
4761
  style: {
4727
4762
  position: "absolute",
4728
4763
  top: 0,
4729
4764
  left: 0,
4730
4765
  right: 0,
4731
4766
  transform: `translateY(${t}px)`,
4732
- ...n ? {
4767
+ ...n == null ? {} : { padding: n },
4768
+ ...r ? {
4733
4769
  display: "grid",
4734
- gridTemplateColumns: n
4770
+ gridTemplateColumns: r
4735
4771
  } : {},
4736
- ...v ? { paddingRight: 32 } : {},
4737
- ...A
4772
+ ...y ? { paddingRight: 32 } : {},
4773
+ ...j
4738
4774
  },
4739
- onClick: o,
4740
- draggable: g,
4741
- onMouseDown: y,
4742
- onDragStart: b,
4743
- onDragOver: x,
4744
- onDragEnd: S,
4745
- onDrop: C ?? (g ? (e) => e.preventDefault() : void 0),
4746
- onTouchStart: w,
4747
- onContextMenu: g ? (e) => e.preventDefault() : void 0,
4748
- "aria-selected": r,
4749
- "aria-rowindex": l,
4750
- "aria-posinset": u,
4751
- "aria-setsize": f,
4752
- role: m,
4753
- children: [(T === "before" || T === "after") && /* @__PURE__ */ H("div", {
4754
- "data-drop-line": T,
4775
+ onClick: s,
4776
+ draggable: _,
4777
+ onMouseDown: b,
4778
+ onDragStart: x,
4779
+ onDragOver: S,
4780
+ onDragEnd: C,
4781
+ onDrop: w ?? (_ ? (e) => e.preventDefault() : void 0),
4782
+ onTouchStart: T,
4783
+ onContextMenu: _ ? (e) => e.preventDefault() : void 0,
4784
+ "aria-selected": i,
4785
+ "aria-rowindex": u,
4786
+ "aria-posinset": f,
4787
+ "aria-setsize": m,
4788
+ role: h,
4789
+ children: [(E === "before" || E === "after") && /* @__PURE__ */ H("div", {
4790
+ "data-drop-line": E,
4755
4791
  "aria-hidden": !0,
4756
- className: p($.virtualListDropLine, T === "before" ? $.virtualListDropLineBefore : $.virtualListDropLineAfter, D),
4792
+ className: p($.virtualListDropLine, E === "before" ? $.virtualListDropLineBefore : $.virtualListDropLineAfter, O),
4757
4793
  style: {
4758
- left: E ?? 0,
4759
- ...O
4794
+ left: D ?? 0,
4795
+ ...k
4760
4796
  }
4761
- }), j]
4797
+ }), M]
4762
4798
  });
4763
4799
  }
4764
4800
  //#endregion
4765
4801
  //#region package/common/virtualList/virtualList.utils.ts
4766
- function Qr(e, t, n, r = 0) {
4802
+ function ei(e, t, n, r = 0) {
4767
4803
  let i = e.length, a = Array(i + 1);
4768
4804
  a[0] = 0;
4769
4805
  for (let o = 0; o < i; o++) {
@@ -4775,7 +4811,7 @@ function Qr(e, t, n, r = 0) {
4775
4811
  totalHeight: a[i]
4776
4812
  };
4777
4813
  }
4778
- function $r(e, t, n) {
4814
+ function ti(e, t, n) {
4779
4815
  if (n <= 0) return 0;
4780
4816
  let r = 0, i = n - 1;
4781
4817
  for (; r < i;) {
@@ -4784,34 +4820,34 @@ function $r(e, t, n) {
4784
4820
  }
4785
4821
  return r;
4786
4822
  }
4787
- function ei(e, t, n, r, i) {
4823
+ function ni(e, t, n, r, i) {
4788
4824
  if (i === 0) return {
4789
4825
  startIndex: 0,
4790
4826
  endIndex: -1
4791
4827
  };
4792
- let a = $r(e, t, i), o = a;
4828
+ let a = ti(e, t, i), o = a;
4793
4829
  for (; o < i && e[o] < t + n;) o++;
4794
4830
  return {
4795
4831
  startIndex: Math.max(0, a - r),
4796
4832
  endIndex: Math.min(i - 1, o + r - 1)
4797
4833
  };
4798
4834
  }
4799
- function ti(e, t, n, r, i) {
4835
+ function ri(e, t, n, r, i) {
4800
4836
  if (e === -1 || e === t) return null;
4801
4837
  let a = r + i / 2;
4802
4838
  return (t > e ? n >= a : n <= a) ? t : null;
4803
4839
  }
4804
- function ni(e, t, n, r) {
4840
+ function ii(e, t, n, r) {
4805
4841
  if (n <= 0) return "before";
4806
4842
  let i = (e - t) / n;
4807
4843
  return r ? i < 1 / 3 ? "before" : i > 2 / 3 ? "after" : "inside" : i < .5 ? "before" : "after";
4808
4844
  }
4809
- function ri(e, t) {
4845
+ function ai(e, t) {
4810
4846
  let n = t[e], r = e + 1;
4811
4847
  for (; r < t.length && t[r] > n;) r++;
4812
4848
  return r - 1;
4813
4849
  }
4814
- function ii(e, t) {
4850
+ function oi(e, t) {
4815
4851
  return e.length === 0 ? "1fr" : e.map((e) => {
4816
4852
  switch (e.width.type) {
4817
4853
  case "fixed": return `${e.width.px}px`;
@@ -4823,11 +4859,11 @@ function ii(e, t) {
4823
4859
  }
4824
4860
  }).join(" ");
4825
4861
  }
4826
- var ai = "ahroweui:virtuallist:columns:";
4827
- function oi(e) {
4862
+ var si = "ahroweui:virtuallist:columns:";
4863
+ function ci(e) {
4828
4864
  if (!e || typeof window > "u") return null;
4829
4865
  try {
4830
- let t = window.localStorage.getItem(ai + e);
4866
+ let t = window.localStorage.getItem(si + e);
4831
4867
  if (!t) return null;
4832
4868
  let n = JSON.parse(t);
4833
4869
  if (n && Array.isArray(n.visible) && Array.isArray(n.known)) return {
@@ -4837,19 +4873,33 @@ function oi(e) {
4837
4873
  } catch {}
4838
4874
  return null;
4839
4875
  }
4840
- function si(e, t) {
4876
+ function li(e, t) {
4841
4877
  return t && t.known.includes(e.key) ? t.visible.includes(e.key) : !e.defaultHidden;
4842
4878
  }
4843
4879
  //#endregion
4844
4880
  //#region package/common/virtualList/useVirtualWindow.ts
4845
- function ci({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: o, overscan: s, onLoadMore: u, loadMoreThreshold: p }) {
4846
- let [m, h] = f(0), [g, _] = f(0), [v, y] = f(0), [b, x] = f(/* @__PURE__ */ new Map()), [S, C] = f(!1), w = d(!1), T = d(null), E = d(null), D = d([]), O = d(null), k = d(0), A = d([]), [j] = f(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4847
- x((t) => {
4881
+ function ui(e, t) {
4882
+ if (typeof e == "number") return e;
4883
+ let n = e.trim();
4884
+ if (n === "") return 0;
4885
+ let r = Number(n);
4886
+ if (!Number.isNaN(r)) return r;
4887
+ let i = /^(-?\d*\.?\d+)px$/.exec(n);
4888
+ if (i) return parseFloat(i[1]);
4889
+ if (typeof document > "u" || !t) return 0;
4890
+ let a = document.createElement("div");
4891
+ a.style.cssText = `position:absolute;visibility:hidden;height:${n};`, t.appendChild(a);
4892
+ let o = a.getBoundingClientRect().height;
4893
+ return t.removeChild(a), Number.isFinite(o) ? o : 0;
4894
+ }
4895
+ function di({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: o, overscan: s, onLoadMore: u, loadMoreThreshold: p }) {
4896
+ let [m, h] = f(0), [g, _] = f(0), [v, y] = f(0), [b, x] = f(() => ui(o, null)), [S, C] = f(/* @__PURE__ */ new Map()), [w, T] = f(!1), E = d(!1), D = d(null), O = d(null), k = d([]), A = d(null), j = d(0), M = d([]), [N] = f(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4897
+ C((t) => {
4848
4898
  let n = null;
4849
4899
  for (let r of e) {
4850
4900
  let e = r.target, i = Number(e.dataset.index);
4851
4901
  if (Number.isNaN(i)) continue;
4852
- let a = A.current[i];
4902
+ let a = M.current[i];
4853
4903
  if (a === void 0) continue;
4854
4904
  let o = r.borderBoxSize?.[0], s = o ? Math.round(o.blockSize) : e.offsetHeight;
4855
4905
  t.get(a) !== s && (n ||= new Map(t), n.set(a, s));
@@ -4857,8 +4907,8 @@ function ci({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: o
4857
4907
  return n ?? t;
4858
4908
  });
4859
4909
  }));
4860
- a(() => () => j?.disconnect(), [j]), c(() => {
4861
- let e = T.current;
4910
+ a(() => () => N?.disconnect(), [N]), c(() => {
4911
+ let e = D.current;
4862
4912
  if (!e) return;
4863
4913
  _(e.clientHeight), y(e.clientWidth);
4864
4914
  let t = new ResizeObserver(() => {
@@ -4866,38 +4916,45 @@ function ci({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: o
4866
4916
  });
4867
4917
  return t.observe(e), () => t.disconnect();
4868
4918
  }, []);
4869
- let M = i((e) => {
4919
+ let P = i((e) => {
4870
4920
  let t = e.currentTarget;
4871
- k.current = t.scrollTop, O.current ??= requestAnimationFrame(() => {
4872
- O.current = null, h(k.current);
4873
- }), u && !w.current && t.scrollTop + t.clientHeight >= t.scrollHeight - p && (w.current = !0, C(!0), u().finally(() => {
4874
- w.current = !1, C(!1);
4921
+ j.current = t.scrollTop, A.current ??= requestAnimationFrame(() => {
4922
+ A.current = null, h(j.current);
4923
+ }), u && !E.current && t.scrollTop + t.clientHeight >= t.scrollHeight - p && (E.current = !0, T(!0), u().finally(() => {
4924
+ E.current = !1, T(!1);
4875
4925
  }));
4876
4926
  }, [u, p]);
4877
4927
  a(() => () => {
4878
- O.current != null && cancelAnimationFrame(O.current);
4928
+ A.current != null && cancelAnimationFrame(A.current);
4879
4929
  }, []), c(() => {
4880
- A.current = t;
4881
- });
4882
- let { offsets: N, totalHeight: P } = l(() => Qr(t, b, r, o), [
4930
+ M.current = t;
4931
+ }), c(() => {
4932
+ let e = ui(o, D.current);
4933
+ x((t) => t === e ? t : e);
4934
+ }, [
4935
+ o,
4936
+ v,
4937
+ g
4938
+ ]);
4939
+ let { offsets: F, totalHeight: I } = l(() => ei(t, S, r, b), [
4883
4940
  t,
4884
- b,
4941
+ S,
4885
4942
  r,
4886
- o
4943
+ b
4887
4944
  ]);
4888
4945
  c(() => {
4889
- let t = T.current, n = D.current;
4890
- if (D.current = N, !t || n.length === 0) return;
4946
+ let t = D.current, n = k.current;
4947
+ if (k.current = F, !t || n.length === 0) return;
4891
4948
  let r = t.scrollTop;
4892
4949
  if (r <= 0) return;
4893
- let i = $r(n, r, n.length - 1);
4950
+ let i = ti(n, r, n.length - 1);
4894
4951
  if (i >= e.length) return;
4895
- let a = r - n[i], o = N[i] + a;
4896
- Math.abs(o - r) > .5 && (t.scrollTop = o, k.current = o, h(o));
4897
- }, [N, e.length]);
4898
- let F = l(() => {
4952
+ let a = r - n[i], o = F[i] + a;
4953
+ Math.abs(o - r) > .5 && (t.scrollTop = o, j.current = o, h(o));
4954
+ }, [F, e.length]);
4955
+ let L = l(() => {
4899
4956
  function t(e, t) {
4900
- let n = T.current;
4957
+ let n = D.current;
4901
4958
  if (!n) return;
4902
4959
  let r = Math.max(0, e);
4903
4960
  typeof n.scrollTo == "function" ? n.scrollTo({
@@ -4906,9 +4963,9 @@ function ci({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: o
4906
4963
  }) : n.scrollTop = r;
4907
4964
  }
4908
4965
  function r(n, r) {
4909
- let i = T.current;
4966
+ let i = D.current;
4910
4967
  if (!i || e.length === 0) return;
4911
- let a = Math.max(0, Math.min(n, e.length - 1)), o = N[a] ?? 0, s = (N[a + 1] ?? o) - o, c = E.current?.offsetHeight ?? 0, l = Math.max(0, i.clientHeight - c), u = r?.align ?? "start", d = o - c;
4968
+ let a = Math.max(0, Math.min(n, e.length - 1)), o = F[a] ?? 0, s = (F[a + 1] ?? o) - o, c = O.current?.offsetHeight ?? 0, l = Math.max(0, i.clientHeight - c), u = r?.align ?? "start", d = o - c;
4912
4969
  u === "center" ? d -= (l - s) / 2 : u === "end" && (d -= l - s), t(d, r?.behavior);
4913
4970
  }
4914
4971
  return {
@@ -4920,38 +4977,38 @@ function ci({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: o
4920
4977
  scrollToTop(e) {
4921
4978
  t(0, e?.behavior);
4922
4979
  },
4923
- getScrollElement: () => T.current
4980
+ getScrollElement: () => D.current
4924
4981
  };
4925
4982
  }, [
4926
4983
  e,
4927
- N,
4984
+ F,
4928
4985
  n
4929
- ]), { startIndex: I, endIndex: L } = l(() => ei(N, m, g, s, e.length), [
4930
- N,
4986
+ ]), { startIndex: R, endIndex: ee } = l(() => ni(F, m, g, s, e.length), [
4987
+ F,
4931
4988
  m,
4932
4989
  g,
4933
4990
  s,
4934
4991
  e.length
4935
4992
  ]);
4936
4993
  return {
4937
- rootRef: T,
4938
- headerRef: E,
4939
- rowObserver: j,
4940
- keysRef: A,
4941
- offsets: N,
4942
- totalHeight: P,
4994
+ rootRef: D,
4995
+ headerRef: O,
4996
+ rowObserver: N,
4997
+ keysRef: M,
4998
+ offsets: F,
4999
+ totalHeight: I,
4943
5000
  containerHeight: g,
4944
5001
  containerWidth: v,
4945
- startIndex: I,
4946
- endIndex: L,
4947
- handleScroll: M,
4948
- showLoadMoreSpinner: S,
4949
- scrollApi: F
5002
+ startIndex: R,
5003
+ endIndex: ee,
5004
+ handleScroll: P,
5005
+ showLoadMoreSpinner: w,
5006
+ scrollApi: L
4950
5007
  };
4951
5008
  }
4952
5009
  //#endregion
4953
5010
  //#region package/common/virtualList/useSelection.ts
4954
- function li({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionChange: i }) {
5011
+ function fi({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionChange: i }) {
4955
5012
  let a = r !== void 0, [o, s] = f(/* @__PURE__ */ new Set()), c = a ? r : o;
4956
5013
  function u(e) {
4957
5014
  a || s(e), i?.(e);
@@ -4990,10 +5047,10 @@ function li({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionC
4990
5047
  }
4991
5048
  //#endregion
4992
5049
  //#region package/common/virtualList/useColumns.ts
4993
- function ui({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisibleColumnsChange: o, persistColumnsKey: s, showColumnToggle: l, rootRef: u, startIndex: p, endIndex: m, containerHeight: h, containerWidth: g }) {
5050
+ function pi({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisibleColumnsChange: o, persistColumnsKey: s, showColumnToggle: l, rootRef: u, startIndex: p, endIndex: m, containerHeight: h, containerWidth: g }) {
4994
5051
  let _ = r !== void 0, [v, y] = f(!1), b = d(null), [x, S] = f({}), [C, w] = f(() => {
4995
- let t = oi(s);
4996
- return new Set((e ?? []).filter((e) => si(e, t)).map((e) => e.key));
5052
+ let t = ci(s);
5053
+ return new Set((e ?? []).filter((e) => li(e, t)).map((e) => e.key));
4997
5054
  }), T = d(new Set((e ?? []).map((e) => e.key)));
4998
5055
  a(() => {
4999
5056
  if (_) return;
@@ -5006,10 +5063,10 @@ function ui({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
5006
5063
  }
5007
5064
  if (i) return;
5008
5065
  T.current = n;
5009
- let a = oi(s);
5066
+ let a = ci(s);
5010
5067
  w((e) => {
5011
5068
  let n = /* @__PURE__ */ new Set();
5012
- for (let i of t) r.has(i.key) ? e.has(i.key) && n.add(i.key) : si(i, a) && n.add(i.key);
5069
+ for (let i of t) r.has(i.key) ? e.has(i.key) && n.add(i.key) : li(i, a) && n.add(i.key);
5013
5070
  return n;
5014
5071
  });
5015
5072
  }, [
@@ -5020,7 +5077,7 @@ function ui({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
5020
5077
  if (_ || !s || typeof window > "u") return;
5021
5078
  let t = e ?? [];
5022
5079
  if (!(t.length === 0 || C.size === 0)) try {
5023
- window.localStorage.setItem(ai + s, JSON.stringify({
5080
+ window.localStorage.setItem(si + s, JSON.stringify({
5024
5081
  visible: [...C],
5025
5082
  known: t.map((e) => e.key)
5026
5083
  }));
@@ -5039,7 +5096,7 @@ function ui({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
5039
5096
  }
5040
5097
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
5041
5098
  }, [v]);
5042
- let D = !!e?.length, O = D ? e.filter((e) => E.has(e.key)) : [], k = D ? e.filter((e) => !e.defaultHidden && !E.has(e.key)).length : 0, A = D ? `${n && D ? "40px " : ""}${ii(O, x)}` : void 0, j = l !== !1 && D, M = O.filter((e) => e.width.type === "fit"), N = M.length > 0, P = M.map((e) => e.key).join("|"), [F, I] = f({
5099
+ let D = !!e?.length, O = D ? e.filter((e) => E.has(e.key)) : [], k = D ? e.filter((e) => !e.defaultHidden && !E.has(e.key)).length : 0, A = D ? `${n && D ? "40px " : ""}${oi(O, x)}` : void 0, j = l !== !1 && D, M = O.filter((e) => e.width.type === "fit"), N = M.length > 0, P = M.map((e) => e.key).join("|"), [F, I] = f({
5043
5100
  key: P,
5044
5101
  items: t
5045
5102
  });
@@ -5065,14 +5122,14 @@ function ui({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
5065
5122
  }
5066
5123
  return r ? i : n;
5067
5124
  });
5068
- }, [u]), [R] = f(() => typeof ResizeObserver > "u" ? null : new ResizeObserver(() => L())), z = d(/* @__PURE__ */ new Set());
5125
+ }, [u]), [R] = f(() => typeof ResizeObserver > "u" ? null : new ResizeObserver(() => L())), ee = d(/* @__PURE__ */ new Set());
5069
5126
  a(() => () => {
5070
- R?.disconnect(), z.current.clear();
5127
+ R?.disconnect(), ee.current.clear();
5071
5128
  }, [R]), c(() => {
5072
5129
  if (!N) return;
5073
5130
  let e = u.current;
5074
5131
  if (!e || (L(), !R)) return;
5075
- let t = new Set(e.querySelectorAll("[data-fit-key]")), n = z.current;
5132
+ let t = new Set(e.querySelectorAll("[data-fit-key]")), n = ee.current;
5076
5133
  for (let e of n) t.has(e) || (R.unobserve(e), n.delete(e));
5077
5134
  for (let e of t) n.has(e) || (R.observe(e), n.add(e));
5078
5135
  }, [
@@ -5086,9 +5143,22 @@ function ui({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
5086
5143
  t,
5087
5144
  L,
5088
5145
  R
5146
+ ]), a(() => {
5147
+ if (!N) return;
5148
+ let e = 0, t = requestAnimationFrame(() => {
5149
+ L(), e = requestAnimationFrame(() => L());
5150
+ });
5151
+ return () => {
5152
+ cancelAnimationFrame(t), cancelAnimationFrame(e);
5153
+ };
5154
+ }, [
5155
+ N,
5156
+ P,
5157
+ t,
5158
+ L
5089
5159
  ]);
5090
- let B = i(() => S({}), []);
5091
- function ee(e) {
5160
+ let z = i(() => S({}), []);
5161
+ function B(e) {
5092
5162
  let t = new Set(E);
5093
5163
  if (t.has(e)) {
5094
5164
  if (t.size <= 1) return;
@@ -5107,18 +5177,18 @@ function ui({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
5107
5177
  toggleOpen: v,
5108
5178
  setToggleOpen: y,
5109
5179
  toggleRef: b,
5110
- handleToggleColumn: ee,
5111
- recalculateColumns: B
5180
+ handleToggleColumn: B,
5181
+ recalculateColumns: z
5112
5182
  };
5113
5183
  }
5114
5184
  //#endregion
5115
5185
  //#region package/common/virtualList/useRowDrag.ts
5116
- function di({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longPressDelay: o, dragHandle: s, treeIndentPx: l, keys: u, depths: p, isGroupAt: m, rootRef: h, keysRef: g }) {
5117
- let _ = d(null), [v, y] = f(null), [b, x] = f(null), S = d(null), C = d(n), w = d(r), T = d(t), E = d(p), D = d(m), O = d(!0), k = d(null), A = d(!1), j = d(null), M = d(0), N = d(0), P = d(null), F = d(!1), I = d(null), L = d(0), R = d(0), z = d(0), [B] = f(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)").matches : !1);
5186
+ function mi({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longPressDelay: o, dragHandle: s, treeIndentPx: l, keys: u, depths: p, isGroupAt: m, rootRef: h, keysRef: g }) {
5187
+ let _ = d(null), [v, y] = f(null), [b, x] = f(null), S = d(null), C = d(n), w = d(r), T = d(t), E = d(p), D = d(m), O = d(!0), k = d(null), A = d(!1), j = d(null), M = d(0), N = d(0), P = d(null), F = d(!1), I = d(null), L = d(0), R = d(0), ee = d(0), [z] = f(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)").matches : !1);
5118
5188
  c(() => {
5119
5189
  C.current = n, w.current = r, T.current = t, E.current = p, S.current = b, D.current = m;
5120
5190
  });
5121
- function ee(e) {
5191
+ function B(e) {
5122
5192
  O.current = !!e.target.closest("[data-drag-handle]");
5123
5193
  }
5124
5194
  function te(e, n) {
@@ -5132,8 +5202,8 @@ function di({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
5132
5202
  let r = _.current;
5133
5203
  if (r == null) return null;
5134
5204
  let i = u.indexOf(r);
5135
- if (i !== -1 && e >= i && e <= ri(i, p)) return null;
5136
- let a = ni(t, n.top, n.height, m(e));
5205
+ if (i !== -1 && e >= i && e <= ai(i, p)) return null;
5206
+ let a = ii(t, n.top, n.height, m(e));
5137
5207
  return {
5138
5208
  key: u[e],
5139
5209
  position: a
@@ -5158,55 +5228,55 @@ function di({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
5158
5228
  t.preventDefault();
5159
5229
  let r = _.current;
5160
5230
  if (r == null) return;
5161
- let i = u.indexOf(r), a = t.currentTarget.getBoundingClientRect(), o = ti(i, e, t.clientY, a.top, a.height);
5231
+ let i = u.indexOf(r), a = t.currentTarget.getBoundingClientRect(), o = ri(i, e, t.clientY, a.top, a.height);
5162
5232
  o != null && n?.(i, o);
5163
5233
  }
5164
5234
  function ae() {
5165
5235
  _.current = null, y(null);
5166
5236
  }
5167
- let W = i((e) => {
5237
+ let oe = i((e) => {
5168
5238
  let t = _.current, n = h.current;
5169
5239
  if (t == null || !n) return;
5170
- let r = I.current ? N.current - L.current + z.current / 2 : N.current, i = document.elementFromPoint(e, r), a = i && n.contains(i) ? i.closest("[data-index]") : null;
5240
+ let r = I.current ? N.current - L.current + ee.current / 2 : N.current, i = document.elementFromPoint(e, r), a = i && n.contains(i) ? i.closest("[data-index]") : null;
5171
5241
  if (!a) return;
5172
5242
  let o = Number(a.dataset.index);
5173
5243
  if (Number.isNaN(o)) return;
5174
5244
  let s = g.current.indexOf(t), c = a.getBoundingClientRect();
5175
5245
  if (T.current) {
5176
5246
  let e = g.current, t = E.current;
5177
- if (s !== -1 && o >= s && o <= ri(s, t)) {
5247
+ if (s !== -1 && o >= s && o <= ai(s, t)) {
5178
5248
  x(null);
5179
5249
  return;
5180
5250
  }
5181
- let n = ni(r, c.top, c.height, D.current(o)), i = {
5251
+ let n = ii(r, c.top, c.height, D.current(o)), i = {
5182
5252
  key: e[o],
5183
5253
  position: n
5184
5254
  };
5185
5255
  x((e) => e?.key === i.key && e?.position === i.position ? e : i);
5186
5256
  return;
5187
5257
  }
5188
- let l = ti(s, o, r, c.top, c.height);
5258
+ let l = ri(s, o, r, c.top, c.height);
5189
5259
  l != null && C.current?.(s, l);
5190
- }, [h, g]), oe = i(() => {
5260
+ }, [h, g]), W = i(() => {
5191
5261
  let e = I.current;
5192
5262
  e && (e.style.transform = `translate(${R.current}px, ${N.current - L.current}px)`);
5193
- }, []), se = i(() => {
5263
+ }, []), G = i(() => {
5194
5264
  let e = h.current;
5195
5265
  if (!e || !A.current) {
5196
5266
  P.current = null;
5197
5267
  return;
5198
5268
  }
5199
5269
  let t = e.getBoundingClientRect(), n = M.current, r = N.current, i = 0;
5200
- n >= t.left && n <= t.right && r >= t.top && r <= t.bottom && (r < t.top + 48 ? i = -Math.min(18, Math.ceil((t.top + 48 - r) / 3)) : r > t.bottom - 48 && (i = Math.min(18, Math.ceil((r - (t.bottom - 48)) / 3)))), i !== 0 && (e.scrollTop += i, W(n)), P.current = requestAnimationFrame(se);
5201
- }, [W, h]), ce = i(() => {
5202
- if (k.current != null && (clearTimeout(k.current), k.current = null), window.removeEventListener("touchmove", le), window.removeEventListener("touchend", ce), window.removeEventListener("touchcancel", ce), P.current != null && (cancelAnimationFrame(P.current), P.current = null), I.current &&= (I.current.remove(), null), document.body.style.touchAction = "", document.body.style.overscrollBehavior = "", A.current && (F.current = !0, setTimeout(() => {
5270
+ n >= t.left && n <= t.right && r >= t.top && r <= t.bottom && (r < t.top + 48 ? i = -Math.min(18, Math.ceil((t.top + 48 - r) / 3)) : r > t.bottom - 48 && (i = Math.min(18, Math.ceil((r - (t.bottom - 48)) / 3)))), i !== 0 && (e.scrollTop += i, oe(n)), P.current = requestAnimationFrame(G);
5271
+ }, [oe, h]), se = i(() => {
5272
+ if (k.current != null && (clearTimeout(k.current), k.current = null), window.removeEventListener("touchmove", ce), window.removeEventListener("touchend", se), window.removeEventListener("touchcancel", se), P.current != null && (cancelAnimationFrame(P.current), P.current = null), I.current &&= (I.current.remove(), null), document.body.style.touchAction = "", document.body.style.overscrollBehavior = "", A.current && (F.current = !0, setTimeout(() => {
5203
5273
  F.current = !1;
5204
5274
  }, 350), T.current)) {
5205
5275
  let e = _.current, t = S.current;
5206
5276
  e != null && t && t.key !== e && w.current?.(e, t);
5207
5277
  }
5208
5278
  x(null), A.current = !1, j.current = null, _.current = null, y(null);
5209
- }, []), le = i((e) => {
5279
+ }, []), ce = i((e) => {
5210
5280
  let t = e.touches[0];
5211
5281
  if (t) {
5212
5282
  if (M.current = t.clientX, N.current = t.clientY, !A.current) {
@@ -5214,23 +5284,23 @@ function di({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
5214
5284
  e != null && Math.abs(t.clientY - e) > 10 && k.current != null && (clearTimeout(k.current), k.current = null);
5215
5285
  return;
5216
5286
  }
5217
- e.cancelable && e.preventDefault(), oe(), W(t.clientX);
5287
+ e.cancelable && e.preventDefault(), W(), oe(t.clientX);
5218
5288
  }
5219
- }, [W, oe]);
5220
- function ue(n, r) {
5289
+ }, [oe, W]);
5290
+ function le(n, r) {
5221
5291
  if (!e && !t || s && !r.target.closest("[data-drag-handle]") || k.current != null || A.current) return;
5222
5292
  let i = r.touches[0];
5223
- i && (j.current = i.clientY, M.current = i.clientX, N.current = i.clientY, window.addEventListener("touchmove", le, { passive: !1 }), window.addEventListener("touchend", ce), window.addEventListener("touchcancel", ce), k.current = window.setTimeout(() => {
5224
- k.current = null, A.current = !0, _.current = n, y(n), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", de(n), P.current ??= requestAnimationFrame(se);
5293
+ i && (j.current = i.clientY, M.current = i.clientX, N.current = i.clientY, window.addEventListener("touchmove", ce, { passive: !1 }), window.addEventListener("touchend", se), window.addEventListener("touchcancel", se), k.current = window.setTimeout(() => {
5294
+ k.current = null, A.current = !0, _.current = n, y(n), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", ue(n), P.current ??= requestAnimationFrame(G);
5225
5295
  }, o));
5226
5296
  }
5227
- function de(e) {
5297
+ function ue(e) {
5228
5298
  let t = h.current;
5229
5299
  if (!t) return;
5230
5300
  let n = g.current.indexOf(e), r = t.querySelector(`[data-index="${n}"]`);
5231
5301
  if (!r) return;
5232
5302
  let i = r.getBoundingClientRect();
5233
- L.current = N.current - i.top, R.current = i.left, z.current = i.height;
5303
+ L.current = N.current - i.top, R.current = i.left, ee.current = i.height;
5234
5304
  let a = r.cloneNode(!0);
5235
5305
  a.removeAttribute("data-index"), a.setAttribute("data-drag-clone", "true"), a.setAttribute("aria-hidden", "true"), a.classList.add($.virtualListDragClone), Object.assign(a.style, {
5236
5306
  position: "fixed",
@@ -5245,119 +5315,120 @@ function di({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
5245
5315
  background: "var(--background)",
5246
5316
  boxShadow: "var(--card-shadow)",
5247
5317
  borderRadius: "var(--default-border-radius)"
5248
- }), t.appendChild(a), I.current = a, oe();
5318
+ }), t.appendChild(a), I.current = a, W();
5249
5319
  }
5250
- a(() => ce, [ce]);
5251
- let G = e || t;
5320
+ a(() => se, [se]);
5321
+ let de = e || t;
5252
5322
  function fe(n, r) {
5253
5323
  let i = t && b?.key === r ? b.position : void 0;
5254
5324
  return {
5255
- reorderable: G,
5256
- draggable: G && !B || void 0,
5257
- isDragging: G && r === v,
5258
- onMouseDown: G && s ? ee : void 0,
5259
- onDragStart: G ? (e) => te(r, e) : void 0,
5325
+ reorderable: de,
5326
+ draggable: de && !z || void 0,
5327
+ isDragging: de && r === v,
5328
+ onMouseDown: de && s ? B : void 0,
5329
+ onDragStart: de ? (e) => te(r, e) : void 0,
5260
5330
  onDragOver: t ? (e) => V(n, e) : e ? (e) => ie(n, e) : void 0,
5261
5331
  onDragEnd: t ? U : e ? ae : void 0,
5262
5332
  onDrop: t ? H : void 0,
5263
- onTouchStart: G ? (e) => ue(r, e) : void 0,
5333
+ onTouchStart: de ? (e) => le(r, e) : void 0,
5264
5334
  dropPosition: i,
5265
5335
  dropIndentPx: i ? (p[n] ?? 0) * l : void 0
5266
5336
  };
5267
5337
  }
5268
- function K() {
5338
+ function pe() {
5269
5339
  return F.current ? (F.current = !1, !0) : !1;
5270
5340
  }
5271
5341
  return {
5272
5342
  draggingKey: v,
5273
- dragEnabled: G,
5343
+ dragEnabled: de,
5274
5344
  getRowDragProps: fe,
5275
- consumeSuppressedClick: K
5345
+ consumeSuppressedClick: pe
5276
5346
  };
5277
5347
  }
5278
5348
  //#endregion
5279
5349
  //#region package/common/virtualList/virtualList.tsx
5280
- function fi({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: a = 40, overscan: o = 3, rowGap: c = 0, selectedKey: u, getItemKey: d, onRowClick: f, visibleColumnKeys: h, onVisibleColumnsChange: g, persistColumnsKey: _, showColumnToggle: v, onLoadMore: y, loadMoreThreshold: b = 100, isLoading: x = !1, multiSelect: S = !1, selectedKeys: C, onSelectionChange: w, reorderable: T = !1, onReorder: E, longPressDelay: D = 400, treeReorder: O = !1, getItemDepth: k, isGroup: j, onTreeDrop: M, treeIndentPx: N = 24, dragHandle: P = !1, showDivider: F = !0, rowHover: I = !0, className: L, style: R, classNames: z, styles: B, ...ee }, te) {
5281
- let ne = i((e, t) => d ? d(e, t) : t, [d]), V = l(() => e.map((e, t) => ne(e, t)), [e, ne]), ie = l(() => k ? e.map((e, t) => k(e, t)) : [], [e, k]), ae = i((t) => j ? j(e[t], t) : !1, [j, e]), W = ci({
5350
+ function hi({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: a = 40, overscan: o = 3, rowGap: c = 0, rowPadding: u, selectedKey: d, getItemKey: f, onRowClick: h, visibleColumnKeys: g, onVisibleColumnsChange: _, persistColumnsKey: v, showColumnToggle: y, onLoadMore: b, loadMoreThreshold: x = 100, isLoading: S = !1, multiSelect: C = !1, selectedKeys: w, onSelectionChange: T, reorderable: E = !1, onReorder: D, longPressDelay: O = 400, treeReorder: k = !1, getItemDepth: j, isGroup: M, onTreeDrop: N, treeIndentPx: P = 24, dragHandle: F = !1, showDivider: I = !0, rowHover: L = !0, className: R, style: ee, classNames: z, styles: B, ...te }, ne) {
5351
+ let V = i((e, t) => f ? f(e, t) : t, [f]), ie = l(() => e.map((e, t) => V(e, t)), [e, V]), ae = l(() => j ? e.map((e, t) => j(e, t)) : [], [e, j]), oe = i((t) => M ? M(e[t], t) : !1, [M, e]), W = di({
5282
5352
  items: e,
5283
- keys: V,
5284
- getItemKey: d,
5353
+ keys: ie,
5354
+ getItemKey: f,
5285
5355
  estimatedRowHeight: a,
5286
5356
  rowGap: c,
5287
5357
  overscan: o,
5288
- onLoadMore: y,
5289
- loadMoreThreshold: b
5290
- }), { rootRef: oe, headerRef: se, rowObserver: ce, keysRef: le, offsets: ue, totalHeight: de, startIndex: G, endIndex: fe } = W, K = li({
5358
+ onLoadMore: b,
5359
+ loadMoreThreshold: x
5360
+ }), { rootRef: G, headerRef: se, rowObserver: ce, keysRef: le, offsets: ue, totalHeight: de, startIndex: fe, endIndex: pe } = W, me = fi({
5291
5361
  items: e,
5292
- getKey: ne,
5293
- multiSelect: S,
5294
- selectedKeys: C,
5295
- onSelectionChange: w
5296
- }), { effectiveSelectedKeys: pe } = K, { hasColumns: me, visibleColumns: he, columnTemplate: ge, shouldShowToggle: _e, effectiveVisible: ve, manuallyHiddenCount: ye, toggleOpen: be, setToggleOpen: xe, toggleRef: Se, handleToggleColumn: Ce, recalculateColumns: q } = ui({
5362
+ getKey: V,
5363
+ multiSelect: C,
5364
+ selectedKeys: w,
5365
+ onSelectionChange: T
5366
+ }), { effectiveSelectedKeys: he } = me, { hasColumns: ge, visibleColumns: _e, columnTemplate: ve, shouldShowToggle: ye, effectiveVisible: be, manuallyHiddenCount: xe, toggleOpen: Se, setToggleOpen: Ce, toggleRef: we, handleToggleColumn: K, recalculateColumns: Te } = pi({
5297
5367
  columns: n,
5298
5368
  items: e,
5299
- multiSelect: S,
5300
- visibleColumnKeys: h,
5301
- onVisibleColumnsChange: g,
5302
- persistColumnsKey: _,
5303
- showColumnToggle: v,
5304
- rootRef: oe,
5305
- startIndex: G,
5306
- endIndex: fe,
5369
+ multiSelect: C,
5370
+ visibleColumnKeys: g,
5371
+ onVisibleColumnsChange: _,
5372
+ persistColumnsKey: v,
5373
+ showColumnToggle: y,
5374
+ rootRef: G,
5375
+ startIndex: fe,
5376
+ endIndex: pe,
5307
5377
  containerHeight: W.containerHeight,
5308
5378
  containerWidth: W.containerWidth
5309
5379
  });
5310
- s(te, () => ({
5380
+ s(ne, () => ({
5311
5381
  ...W.scrollApi,
5312
- recalculateColumns: q
5313
- }), [W.scrollApi, q]);
5314
- let we = di({
5315
- reorderable: T,
5316
- treeReorder: O,
5317
- onReorder: E,
5318
- onTreeDrop: M,
5319
- longPressDelay: D,
5320
- dragHandle: P,
5321
- treeIndentPx: N,
5322
- keys: V,
5323
- depths: ie,
5324
- isGroupAt: ae,
5325
- rootRef: oe,
5382
+ recalculateColumns: Te
5383
+ }), [W.scrollApi, Te]);
5384
+ let Ee = mi({
5385
+ reorderable: E,
5386
+ treeReorder: k,
5387
+ onReorder: D,
5388
+ onTreeDrop: N,
5389
+ longPressDelay: O,
5390
+ dragHandle: F,
5391
+ treeIndentPx: P,
5392
+ keys: ie,
5393
+ depths: ae,
5394
+ isGroupAt: oe,
5395
+ rootRef: G,
5326
5396
  keysRef: le
5327
- }), Te = (n) => {
5328
- let r = e[n], i = ne(r, n), a = u != null && i === u || pe.has(i), o = we.getRowDragProps(n, i);
5329
- return /* @__PURE__ */ H(Zr, {
5397
+ }), Oe = typeof u == "number" ? `${u}px` : u, ke = (n) => {
5398
+ let r = e[n], i = V(r, n), a = d != null && i === d || he.has(i), o = Ee.getRowDragProps(n, i);
5399
+ return /* @__PURE__ */ H($r, {
5330
5400
  index: n,
5331
5401
  top: ue[n],
5332
- columnTemplate: ge,
5402
+ padding: Oe,
5403
+ columnTemplate: ve,
5333
5404
  isSelected: a,
5334
- showDivider: F,
5335
- hover: I,
5405
+ showDivider: I,
5406
+ hover: L,
5336
5407
  onClick: () => {
5337
- we.consumeSuppressedClick() || f?.(r, n);
5408
+ Ee.consumeSuppressedClick() || h?.(r, n);
5338
5409
  },
5339
5410
  observer: ce,
5340
- ariaRowIndex: me ? n + 2 : void 0,
5341
- ariaPosInSet: me ? void 0 : n + 1,
5342
- ariaSetSize: me ? void 0 : e.length,
5343
- rowRole: me ? "row" : "listitem",
5344
- reserveToggleGutter: _e,
5411
+ ariaRowIndex: ge ? n + 2 : void 0,
5412
+ ariaPosInSet: ge ? void 0 : n + 1,
5413
+ ariaSetSize: ge ? void 0 : e.length,
5414
+ rowRole: ge ? "row" : "listitem",
5415
+ reserveToggleGutter: ye,
5345
5416
  ...o,
5346
5417
  dropIndicatorClassName: z?.dropIndicator,
5347
5418
  dropIndicatorStyle: B?.dropIndicator,
5348
5419
  rowClassName: z?.row,
5349
5420
  rowStyle: B?.row,
5350
- children: me ? /* @__PURE__ */ U(re, { children: [S && /* @__PURE__ */ H("div", {
5421
+ children: ge ? /* @__PURE__ */ U(re, { children: [C && /* @__PURE__ */ H("div", {
5351
5422
  className: p($.virtualListSelectCell, z?.selectCell),
5352
5423
  style: B?.selectCell,
5353
5424
  role: "gridcell",
5354
5425
  onClick: (e) => e.stopPropagation(),
5355
- children: /* @__PURE__ */ H(Xe, {
5356
- selected: pe.has(i),
5357
- onToggle: () => K.handleRowSelect(i),
5426
+ children: /* @__PURE__ */ H(Ze, {
5427
+ selected: he.has(i),
5428
+ onToggle: () => me.handleRowSelect(i),
5358
5429
  "aria-label": "Select row"
5359
5430
  })
5360
- }), he.map((e) => /* @__PURE__ */ H("div", {
5431
+ }), _e.map((e) => /* @__PURE__ */ H("div", {
5361
5432
  className: p($.virtualListCell, z?.cell),
5362
5433
  style: B?.cell,
5363
5434
  role: "gridcell",
@@ -5365,80 +5436,80 @@ function fi({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5365
5436
  children: e.renderCell(r, n)
5366
5437
  }, e.key))] }) : t?.(r, n)
5367
5438
  }, i);
5368
- }, De = [];
5369
- for (let e = G; e <= fe; e++) De.push(Te(e));
5370
- let Oe = we.draggingKey == null ? -1 : V.indexOf(we.draggingKey);
5371
- return Oe >= 0 && (Oe < G || Oe > fe) && De.push(Te(Oe)), /* @__PURE__ */ U("div", {
5372
- ...ee,
5373
- ref: oe,
5374
- className: p($.virtualList, we.draggingKey != null && $.virtualListReordering, L, z?.root),
5439
+ }, Ae = [];
5440
+ for (let e = fe; e <= pe; e++) Ae.push(ke(e));
5441
+ let je = Ee.draggingKey == null ? -1 : ie.indexOf(Ee.draggingKey);
5442
+ return je >= 0 && (je < fe || je > pe) && Ae.push(ke(je)), /* @__PURE__ */ U("div", {
5443
+ ...te,
5444
+ ref: G,
5445
+ className: p($.virtualList, Ee.draggingKey != null && $.virtualListReordering, R, z?.root),
5375
5446
  style: {
5376
5447
  height: r,
5377
- ...R,
5448
+ ...ee,
5378
5449
  ...B?.root
5379
5450
  },
5380
5451
  onScroll: W.handleScroll,
5381
- role: me ? "grid" : "list",
5382
- "aria-rowcount": me ? e.length + 1 : void 0,
5452
+ role: ge ? "grid" : "list",
5453
+ "aria-rowcount": ge ? e.length + 1 : void 0,
5383
5454
  children: [
5384
- me && /* @__PURE__ */ U("div", {
5455
+ ge && /* @__PURE__ */ U("div", {
5385
5456
  ref: se,
5386
5457
  className: p($.virtualListHeader, z?.header),
5387
5458
  style: {
5388
- gridTemplateColumns: ge,
5389
- ..._e ? { paddingRight: 32 } : {},
5459
+ gridTemplateColumns: ve,
5460
+ ...ye ? { paddingRight: 32 } : {},
5390
5461
  ...B?.header
5391
5462
  },
5392
5463
  role: "row",
5393
5464
  "aria-rowindex": 1,
5394
5465
  children: [
5395
- S && /* @__PURE__ */ H("div", {
5466
+ C && /* @__PURE__ */ H("div", {
5396
5467
  className: p($.virtualListSelectCell, z?.selectCell),
5397
5468
  style: B?.selectCell,
5398
5469
  role: "columnheader",
5399
- children: /* @__PURE__ */ H(Xe, {
5400
- selected: K.allSelected || K.someSelected,
5401
- onToggle: K.handleSelectAll,
5470
+ children: /* @__PURE__ */ H(Ze, {
5471
+ selected: me.allSelected || me.someSelected,
5472
+ onToggle: me.handleSelectAll,
5402
5473
  "aria-label": "Select all rows"
5403
5474
  })
5404
5475
  }),
5405
- he.map((e) => /* @__PURE__ */ H("div", {
5476
+ _e.map((e) => /* @__PURE__ */ H("div", {
5406
5477
  className: p($.virtualListHeaderCell, z?.headerCell),
5407
5478
  style: B?.headerCell,
5408
5479
  role: "columnheader",
5409
5480
  "data-fit-key": e.width.type === "fit" ? e.key : void 0,
5410
5481
  children: e.label
5411
5482
  }, e.key)),
5412
- _e && /* @__PURE__ */ U("div", {
5413
- ref: Se,
5483
+ ye && /* @__PURE__ */ U("div", {
5484
+ ref: we,
5414
5485
  className: $.virtualListToggleWrapper,
5415
5486
  children: [
5416
5487
  /* @__PURE__ */ H("button", {
5417
5488
  type: "button",
5418
5489
  className: p($.virtualListHeaderToggle, z?.headerToggle),
5419
5490
  style: B?.headerToggle,
5420
- onClick: () => xe((e) => !e),
5491
+ onClick: () => Ce((e) => !e),
5421
5492
  "aria-label": "Toggle column visibility",
5422
5493
  children: /* @__PURE__ */ H(m, {
5423
5494
  icon: A,
5424
5495
  style: B?.headerToggle
5425
5496
  })
5426
5497
  }),
5427
- ye > 0 && /* @__PURE__ */ H("span", {
5498
+ xe > 0 && /* @__PURE__ */ H("span", {
5428
5499
  className: p($.virtualListColumnChip, z?.columnChip),
5429
5500
  style: B?.columnChip,
5430
- "data-column-hidden-count": ye,
5431
- "aria-label": `${ye} columns hidden`,
5432
- children: ye
5501
+ "data-column-hidden-count": xe,
5502
+ "aria-label": `${xe} columns hidden`,
5503
+ children: xe
5433
5504
  }),
5434
- be && /* @__PURE__ */ H("div", {
5505
+ Se && /* @__PURE__ */ H("div", {
5435
5506
  className: p($.virtualListTogglePopover, z?.togglePopover),
5436
5507
  style: B?.togglePopover,
5437
- children: n.map((e) => /* @__PURE__ */ H(Xe, {
5508
+ children: n.map((e) => /* @__PURE__ */ H(Ze, {
5438
5509
  className: p($.virtualListToggleItem, z?.toggleItem),
5439
5510
  style: B?.toggleItem,
5440
- selected: ve.has(e.key),
5441
- onToggle: () => Ce(e.key),
5511
+ selected: be.has(e.key),
5512
+ onToggle: () => K(e.key),
5442
5513
  cursorDefault: !1,
5443
5514
  children: e.label
5444
5515
  }, e.key))
@@ -5447,26 +5518,26 @@ function fi({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5447
5518
  })
5448
5519
  ]
5449
5520
  }),
5450
- x ? /* @__PURE__ */ H("div", {
5521
+ S ? /* @__PURE__ */ H("div", {
5451
5522
  className: $.virtualListLoadingFull,
5452
- children: /* @__PURE__ */ H(Ee, { className: $.virtualListSpinner })
5523
+ children: /* @__PURE__ */ H(De, { className: $.virtualListSpinner })
5453
5524
  }) : /* @__PURE__ */ H("div", {
5454
5525
  className: p($.virtualListBody, z?.body),
5455
5526
  style: {
5456
5527
  height: de,
5457
5528
  ...B?.body
5458
5529
  },
5459
- children: De
5530
+ children: Ae
5460
5531
  }),
5461
5532
  W.showLoadMoreSpinner && /* @__PURE__ */ H("div", {
5462
5533
  className: p($.virtualListLoadingIndicator, z?.loadingIndicator),
5463
5534
  style: B?.loadingIndicator,
5464
- children: /* @__PURE__ */ H(Ee, { className: $.virtualListSpinner })
5535
+ children: /* @__PURE__ */ H(De, { className: $.virtualListSpinner })
5465
5536
  })
5466
5537
  ]
5467
5538
  });
5468
5539
  }
5469
- var pi = e.forwardRef(fi), mi = {
5540
+ var gi = e.forwardRef(hi), _i = {
5470
5541
  wizard: "wizard_uRBAN",
5471
5542
  "wizard-content": "wizard-content_lcl4C",
5472
5543
  wizardContent: "wizard-content_lcl4C",
@@ -5477,7 +5548,7 @@ var pi = e.forwardRef(fi), mi = {
5477
5548
  };
5478
5549
  //#endregion
5479
5550
  //#region package/common/wizard/wizard.tsx
5480
- function hi({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
5551
+ function vi({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
5481
5552
  let [l, u] = f(void 0), [m, h] = f(!1), [g, _] = f(e), v = d([]), y = d(null);
5482
5553
  e !== g && (_(e), h(!0)), a(() => {
5483
5554
  if (!m) return;
@@ -5497,10 +5568,10 @@ function hi({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5497
5568
  };
5498
5569
  return /* @__PURE__ */ H("div", {
5499
5570
  ...c,
5500
- className: p(mi.wizard, o?.root, r),
5571
+ className: p(_i.wizard, o?.root, r),
5501
5572
  style: b,
5502
5573
  children: /* @__PURE__ */ H("div", {
5503
- className: p(mi.wizardContentContainer, o?.container),
5574
+ className: p(_i.wizardContentContainer, o?.container),
5504
5575
  style: {
5505
5576
  width: `${t * 100}%`,
5506
5577
  marginLeft: `-${e * 100}%`,
@@ -5510,14 +5581,14 @@ function hi({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5510
5581
  ref: (e) => {
5511
5582
  v.current[i] = e;
5512
5583
  },
5513
- className: p(mi.wizardContent, o?.step),
5584
+ className: p(_i.wizardContent, o?.step),
5514
5585
  style: {
5515
5586
  width: `${100 / t}%`,
5516
5587
  marginLeft: `${100 / t * i}%`,
5517
5588
  ...s?.step
5518
5589
  },
5519
5590
  children: /* @__PURE__ */ H("div", {
5520
- className: p({ [mi.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
5591
+ className: p({ [_i.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
5521
5592
  style: s?.stepContent,
5522
5593
  inert: e === i ? void 0 : !0,
5523
5594
  children: n(i)
@@ -5528,20 +5599,20 @@ function hi({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5528
5599
  }
5529
5600
  //#endregion
5530
5601
  //#region package/services/formValidation/formValidatorGroup.ts
5531
- function gi(e) {
5602
+ function yi(e) {
5532
5603
  let t = e;
5533
5604
  return t?.errors && Array.isArray(t.errors) ? t.errors.flatMap((e) => Object.entries(e).map(([e, t]) => ({
5534
5605
  id: e,
5535
5606
  message: t
5536
5607
  }))) : [];
5537
5608
  }
5538
- var _i = class {
5609
+ var bi = class {
5539
5610
  #e;
5540
5611
  #t;
5541
5612
  #n;
5542
5613
  #r;
5543
5614
  #i;
5544
- constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = gi, onSubmitError: o = () => void 0 } = {}) {
5615
+ constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = yi, onSubmitError: o = () => void 0 } = {}) {
5545
5616
  this.#t = !1, this.#i = [], this.getFormError = () => {
5546
5617
  let e = Object.keys(this.group);
5547
5618
  for (let t = 0; t < e.length; t += 1) {
@@ -5631,7 +5702,7 @@ var _i = class {
5631
5702
  };
5632
5703
  //#endregion
5633
5704
  //#region package/services/formValidation/FormValidatorGroupForm.tsx
5634
- function vi(e) {
5705
+ function xi(e) {
5635
5706
  return function({ children: t, ...n }) {
5636
5707
  return /* @__PURE__ */ H("form", {
5637
5708
  onSubmit: e.submit,
@@ -5643,16 +5714,16 @@ function vi(e) {
5643
5714
  }
5644
5715
  //#endregion
5645
5716
  //#region package/services/formValidation/FormValidatorGroupWithForm.tsx
5646
- var yi = (e) => {
5647
- Kr(e[0].message, { type: "error" });
5648
- }, bi = class extends _i {
5717
+ var Si = (e) => {
5718
+ Jr(e[0].message, { type: "error" });
5719
+ }, Ci = class extends bi {
5649
5720
  constructor(e, t = null, n) {
5650
5721
  super(e, t, {
5651
5722
  ...n,
5652
- onSubmitError: n?.onSubmitError ?? yi
5653
- }), this.Form = vi(this);
5723
+ onSubmitError: n?.onSubmitError ?? Si
5724
+ }), this.Form = xi(this);
5654
5725
  }
5655
- }, xi = class {
5726
+ }, wi = class {
5656
5727
  #e;
5657
5728
  #t;
5658
5729
  #n;
@@ -5706,44 +5777,44 @@ var yi = (e) => {
5706
5777
  return this.#r;
5707
5778
  }
5708
5779
  };
5709
- xi.prototype.toString = function() {
5780
+ wi.prototype.toString = function() {
5710
5781
  return `${this.value}`;
5711
5782
  };
5712
5783
  //#endregion
5713
5784
  //#region package/services/regexp.ts
5714
- function Si(e) {
5785
+ function Ti(e) {
5715
5786
  return /^[0-9]+$/.test(e);
5716
5787
  }
5717
- function Ci(e) {
5788
+ function Ei(e) {
5718
5789
  return /^[0-9]{2}.[0-9]{2}.[0-9]{4}$/.test(e);
5719
5790
  }
5720
- function wi(e) {
5791
+ function Di(e) {
5721
5792
  return /^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}Z$/.test(e);
5722
5793
  }
5723
- function Ti(e) {
5794
+ function Oi(e) {
5724
5795
  return /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-ZöäüÜÖÄß\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e);
5725
5796
  }
5726
- function Ei(e) {
5797
+ function ki(e) {
5727
5798
  return /^[A-Z]{6}[A-Z\d]{2}([A-Z\d]{3})?$/.test(e);
5728
5799
  }
5729
- function Di(e) {
5800
+ function Ai(e) {
5730
5801
  return /[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}(\/[-a-zA-Z0-9@:%_+.~#?&//=]*)?$/.test(e);
5731
5802
  }
5732
- function Oi(e) {
5803
+ function ji(e) {
5733
5804
  return /^[\w!@#$%^&*?±§~`'"/\\[\]{}\-,.();:><+=|öäüÖÄÜß €μ]{8,}$/.test(e);
5734
5805
  }
5735
- function ki(e) {
5806
+ function Mi(e) {
5736
5807
  return /^(?=.*[a-zöäüA-ZÖÄÜß])/.test(e);
5737
5808
  }
5738
- function Ai(e) {
5809
+ function Ni(e) {
5739
5810
  return /^(?=.*\d)/.test(e);
5740
5811
  }
5741
- function ji(e) {
5742
- return Oi(e) && ki(e) && Ai(e);
5812
+ function Pi(e) {
5813
+ return ji(e) && Mi(e) && Ni(e);
5743
5814
  }
5744
5815
  //#endregion
5745
5816
  //#region package/services/formValidation/validators.ts
5746
- var Mi = { t: (e, t) => ({
5817
+ var Fi = { t: (e, t) => ({
5747
5818
  "formValidators.minLength": `Must be at least ${t?.min} characters long`,
5748
5819
  "formValidators.maxLength": `Must be at most ${t?.max} characters long`,
5749
5820
  "formValidators.email": "Must be a valid email address",
@@ -5758,23 +5829,23 @@ var Mi = { t: (e, t) => ({
5758
5829
  "garages.errors.bic": "Must be a valid BIC",
5759
5830
  "formValidators.minLetters": `Must contain at least ${t?.smart_count} letters`,
5760
5831
  "formValidators.minDigits": `Must contain at least ${t?.smart_count} digits`
5761
- })[e] || e }, Ni = class e {
5832
+ })[e] || e }, Ii = class e {
5762
5833
  static {
5763
5834
  this.minLength = (e, t) => (n) => !n || n.length < e ? {
5764
5835
  id: "minLength",
5765
- message: t || Mi.t("formValidators.minLength", { min: e })
5836
+ message: t || Fi.t("formValidators.minLength", { min: e })
5766
5837
  } : null;
5767
5838
  }
5768
5839
  static {
5769
5840
  this.maxLength = (e, t) => (n) => n && n.length > e ? {
5770
5841
  id: "maxLength",
5771
- message: t || Mi.t("formValidators.maxLength", { max: e })
5842
+ message: t || Fi.t("formValidators.maxLength", { max: e })
5772
5843
  } : null;
5773
5844
  }
5774
5845
  static {
5775
- this.email = (e) => (t) => t && !Ti(t) ? {
5846
+ this.email = (e) => (t) => t && !Oi(t) ? {
5776
5847
  id: "email",
5777
- message: e || Mi.t("formValidators.email")
5848
+ message: e || Fi.t("formValidators.email")
5778
5849
  } : null;
5779
5850
  }
5780
5851
  static {
@@ -5782,7 +5853,7 @@ var Mi = { t: (e, t) => ({
5782
5853
  function t(t, n) {
5783
5854
  return !t && t !== 0 ? {
5784
5855
  id: "required",
5785
- message: e || Mi.t("formValidators.required", { label: n || Mi.t("formValidators.value") })
5856
+ message: e || Fi.t("formValidators.required", { label: n || Fi.t("formValidators.value") })
5786
5857
  } : null;
5787
5858
  }
5788
5859
  return t.validatorId = "required", t;
@@ -5791,13 +5862,13 @@ var Mi = { t: (e, t) => ({
5791
5862
  static {
5792
5863
  this.mustBeNumber = (e) => (t) => t && Number.isNaN(+t) ? {
5793
5864
  id: "mustBeNumber",
5794
- message: e || Mi.t("formValidators.mustBeNumber")
5865
+ message: e || Fi.t("formValidators.mustBeNumber")
5795
5866
  } : null;
5796
5867
  }
5797
5868
  static {
5798
5869
  this.oneOf = (e, t) => (n) => n && !e.includes(n) ? {
5799
5870
  id: "oneOf",
5800
- message: t || Mi.t("formValidators.oneOf", { allowedValues: e })
5871
+ message: t || Fi.t("formValidators.oneOf", { allowedValues: e })
5801
5872
  } : null;
5802
5873
  }
5803
5874
  static {
@@ -5815,48 +5886,48 @@ var Mi = { t: (e, t) => ({
5815
5886
  this.multiEmail = (e) => (t) => {
5816
5887
  if (t) {
5817
5888
  let n = t.replace(/ /g, "").replace(/,/g, ";").split(";");
5818
- for (let t = 0; t < n.length; t += 1) if (!Ti(n[t])) return {
5889
+ for (let t = 0; t < n.length; t += 1) if (!Oi(n[t])) return {
5819
5890
  id: "multiEmail",
5820
- message: e || Mi.t("formValidators.multiEmail")
5891
+ message: e || Fi.t("formValidators.multiEmail")
5821
5892
  };
5822
5893
  }
5823
5894
  return null;
5824
5895
  };
5825
5896
  }
5826
5897
  static {
5827
- this.date = (e) => (t) => t && !Ci(t) && !wi(t) ? {
5898
+ this.date = (e) => (t) => t && !Ei(t) && !Di(t) ? {
5828
5899
  id: "date",
5829
- message: e || Mi.t("formValidators.date")
5900
+ message: e || Fi.t("formValidators.date")
5830
5901
  } : null;
5831
5902
  }
5832
5903
  static {
5833
5904
  this.dateObject = (e) => (t) => t && !t.isValid ? {
5834
5905
  id: "date",
5835
- message: e || Mi.t("formValidators.date")
5906
+ message: e || Fi.t("formValidators.date")
5836
5907
  } : null;
5837
5908
  }
5838
5909
  static {
5839
- this.website = (e) => (t) => t && !Di(t) ? {
5910
+ this.website = (e) => (t) => t && !Ai(t) ? {
5840
5911
  id: "website",
5841
- message: e || Mi.t("garages.errors.website")
5912
+ message: e || Fi.t("garages.errors.website")
5842
5913
  } : null;
5843
5914
  }
5844
5915
  static {
5845
- this.bic = (e) => (t) => t && !Ei(t) ? {
5916
+ this.bic = (e) => (t) => t && !ki(t) ? {
5846
5917
  id: "bic",
5847
- message: e || Mi.t("garages.errors.bic")
5918
+ message: e || Fi.t("garages.errors.bic")
5848
5919
  } : null;
5849
5920
  }
5850
5921
  static {
5851
5922
  this.minLetters = (e, t) => (n) => n && n.replace(/[^a-zöäüA-ZÖÄÜß]/g, "").length < e ? {
5852
5923
  id: "minLetters",
5853
- message: t || Mi.t("formValidators.minLetters", { smart_count: e })
5924
+ message: t || Fi.t("formValidators.minLetters", { smart_count: e })
5854
5925
  } : null;
5855
5926
  }
5856
5927
  static {
5857
5928
  this.minDigits = (e, t) => (n) => n && n.replace(/[\D]/g, "").length < e ? {
5858
5929
  id: "minDigits",
5859
- message: t || Mi.t("formValidators.minDigits", { smart_count: e })
5930
+ message: t || Fi.t("formValidators.minDigits", { smart_count: e })
5860
5931
  } : null;
5861
5932
  }
5862
5933
  static {
@@ -5868,7 +5939,7 @@ var Mi = { t: (e, t) => ({
5868
5939
  } : r : null;
5869
5940
  };
5870
5941
  }
5871
- }, Pi = class extends n {
5942
+ }, Li = class extends n {
5872
5943
  static {
5873
5944
  this.defaultProps = {
5874
5945
  formValidator: null,
@@ -5931,7 +6002,7 @@ var Mi = { t: (e, t) => ({
5931
6002
  }
5932
6003
  renderTooltip() {
5933
6004
  let { errorMessage: e, formValidator: t } = this.props, { isHovered: n, isFocused: r } = this.state;
5934
- return /* @__PURE__ */ H(st, {
6005
+ return /* @__PURE__ */ H(ct, {
5935
6006
  variant: "error",
5936
6007
  message: t ? t.getCurrentErrorMessage() : e || "",
5937
6008
  isVisible: this.hasError() && (r || n)
@@ -5948,7 +6019,7 @@ var Mi = { t: (e, t) => ({
5948
6019
  };
5949
6020
  //#endregion
5950
6021
  //#region package/services/formValidation/useFormValidator.ts
5951
- function Fi(e) {
6022
+ function Ri(e) {
5952
6023
  let [, t] = u((e) => e + 1, 0);
5953
6024
  return a(() => {
5954
6025
  if (e) return e.registerOnUpdateListener(t), () => e.removeOnUpdateListener(t);
@@ -5956,9 +6027,9 @@ function Fi(e) {
5956
6027
  }
5957
6028
  //#endregion
5958
6029
  //#region package/services/formValidation/useFormValidatorGroup.ts
5959
- function Ii(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, onSubmitError: o } = {}) {
6030
+ function zi(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, onSubmitError: o } = {}) {
5960
6031
  let [, s] = u((e) => e + 1, 0), c = d(null);
5961
- c.current ||= new bi(e, null, {
6032
+ c.current ||= new Ci(e, null, {
5962
6033
  initialValues: t,
5963
6034
  errorParser: i,
5964
6035
  onSubmitError: o
@@ -5967,6 +6038,6 @@ function Ii(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, o
5967
6038
  return f.current = n, p.current = r, a(() => (n !== void 0 && (l.onSubmitCallback = (...e) => f.current?.(...e)), r !== void 0 && (l.onValidateCallback = (...e) => p.current?.(...e)), l.registerOnUpdateListener(s), () => l.removeOnUpdateListener(s)), []), l;
5968
6039
  }
5969
6040
  //#endregion
5970
- export { Se as Accordion, _e as AccordionStyleType, Pe as ActionButtons, ze as ActionIcon, rt as Align, Be as BodyEnd, J as Button, Oe as ButtonSize, De as ButtonStyleType, ke as ButtonType, We as Card, Je as CardActions, qe as CardContent, Ge as CardHeader, Ke as CardMedia, Ve as CardStyleType, Xe as Checkbox, et as Chip, tt as ChipContainer, Ze as ChipStyleType, bt as ColorPicker, Ct as ConfirmModal, Zt as DatePicker, an as DropZone, Qt as DropZoneReturnType, Z as DropZoneStatus, Yt as Dropdown, sn as EmptyState, fn as Fab, at as FloatingMenu, xi as FormValidator, bi as FormValidatorGroup, kn as IconLoading, gn as IconPicker, vn as IdleManager, Jt as InfiniteBlock, lt as Input, Sn as InputDropdown, ct as InputType, Le as InteractableDiv, En as KanbanBoard, Tn as KanbanColumn, St as Modal, Mn as NumberInput, Pn as OptionPicker, Rn as Overscroll, Vn as ProgressBar, je as Ripple, mr as RoomDrawer, gr as RoomViewer, yr as ScrollbarProvider, xr as SearchInput, Ee as SpinnerLoading, wr as Stepper, Er as TabHeader, Pr as TenorPicker, Fr as Textarea, Rr as ThemeProvider, Xr as ToastProvider, st as Tooltip, Pi as ValidatableComponent, Ni as Validators, pi as VirtualList, hi as Wizard, Ir as defaultTheme, jt as getLocale, Oi as hasEightPasswordChars, Ai as hasOnePasswordDigit, ki as hasOnePasswordLetter, Ei as isBic, Ci as isDate, Ti as isEmail, wi as isISODate, Si as isNumber, ji as isPassword, Di as isURL, Ot as mapLocale, At as setLocale, Kr as showToast, Fi as useFormValidator, Ii as useFormValidatorGroup, zr as useTheme };
6041
+ export { Ce as Accordion, ve as AccordionStyleType, Fe as ActionButtons, Be as ActionIcon, it as Align, Ve as BodyEnd, q as Button, ke as ButtonSize, Oe as ButtonStyleType, Ae as ButtonType, Ge as Card, Ye as CardActions, Je as CardContent, Ke as CardHeader, qe as CardMedia, He as CardStyleType, Ze as Checkbox, tt as Chip, nt as ChipContainer, Qe as ChipStyleType, bt as ColorPicker, Ct as ConfirmModal, Zt as DatePicker, $t as Drawer, sn as DropZone, en as DropZoneReturnType, Z as DropZoneStatus, Yt as Dropdown, ln as EmptyState, mn as Fab, ot as FloatingMenu, wi as FormValidator, Ci as FormValidatorGroup, jn as IconLoading, vn as IconPicker, bn as IdleManager, Jt as InfiniteBlock, lt as Input, wn as InputDropdown, Y as InputType, Re as InteractableDiv, On as KanbanBoard, Dn as KanbanColumn, St as Modal, Pn as NumberInput, In as OptionPicker, Bn as Overscroll, Un as ProgressBar, Me as Ripple, gr as RoomDrawer, vr as RoomViewer, xr as ScrollbarProvider, Cr as SearchInput, De as SpinnerLoading, Er as Stepper, Or as TabHeader, Ir as TenorPicker, Lr as Textarea, Br as ThemeProvider, Qr as ToastProvider, ct as Tooltip, Li as ValidatableComponent, Ii as Validators, gi as VirtualList, vi as Wizard, Rr as defaultTheme, jt as getLocale, ji as hasEightPasswordChars, Ni as hasOnePasswordDigit, Mi as hasOnePasswordLetter, ki as isBic, Ei as isDate, Oi as isEmail, Di as isISODate, Ti as isNumber, Pi as isPassword, Ai as isURL, Ot as mapLocale, At as setLocale, Jr as showToast, Ri as useFormValidator, zi as useFormValidatorGroup, Vr as useTheme };
5971
6042
 
5972
6043
  //# sourceMappingURL=index.mjs.map