@ahrowe/ui 0.1.17 → 0.1.18

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, useImperativeHandle as o, useLayoutEffect as s, useMemo as c, useReducer as l, useRef as u, useState as d } from "react";
2
2
  import f from "classnames";
3
3
  import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
4
- import { faBell as m, faCheck as h, faChevronDown as g, faChevronLeft as _, faChevronRight as v, faChevronUp as y, faCircleCheck as b, faCircleInfo as x, faCircleXmark as S, faDoorOpen as C, faDownload as w, faDrawPolygon as T, faEnvelope as E, faEye as D, faEyeSlash as O, faGear as k, faHandPointer as A, faLayerGroup as j, faMagnifyingGlassMinus as M, faMagnifyingGlassPlus as N, faPen as P, faPhone as F, faPlus as I, faSearch as ee, faSquare as L, faTrash as R, faTriangleExclamation as te, faUpload as ne, faXmark as z, faXmarkCircle as re } from "@fortawesome/free-solid-svg-icons";
4
+ import { faBell as m, faCheck as h, faChevronDown as g, faChevronLeft as _, faChevronRight as v, faChevronUp as y, faCircleCheck as b, faCircleInfo as x, faCircleXmark as S, faDoorOpen as C, faDownload as w, faDrawPolygon as T, faEnvelope as E, faEye as D, faEyeSlash as O, faGear as k, faHandPointer as A, faLayerGroup as j, faMagnifyingGlassMinus as M, faMagnifyingGlassPlus as N, faPen as P, faPhone as F, faPlus as I, faSearch as ee, faSquare as te, faTrash as L, faTriangleExclamation as R, faUpload as ne, faXmark as z, faXmarkCircle as re } from "@fortawesome/free-solid-svg-icons";
5
5
  import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
6
6
  import { createPortal as ie } from "react-dom";
7
7
  import ae from "downshift";
8
8
  import oe from "@mona-health/react-input-mask";
9
- import { DndContext as U, DragOverlay as se, PointerSensor as W, closestCorners as ce, useDroppable as le, useSensor as ue, useSensors as G } from "@dnd-kit/core";
10
- import { SortableContext as K, arrayMove as de, useSortable as fe, verticalListSortingStrategy as pe } from "@dnd-kit/sortable";
11
- import { CSS as me } from "@dnd-kit/utilities";
12
- import { NumericFormat as he } from "react-number-format";
9
+ import { DndContext as U, DragOverlay as se, PointerSensor as W, closestCorners as ce, useDroppable as le, useSensor as G, useSensors as ue } from "@dnd-kit/core";
10
+ import { SortableContext as K, arrayMove as de, useSortable as q, verticalListSortingStrategy as fe } from "@dnd-kit/sortable";
11
+ import { CSS as pe } from "@dnd-kit/utilities";
12
+ import { NumericFormat as me } from "react-number-format";
13
13
  //#region package/common/accordion/accordion.types.ts
14
- var ge = /* @__PURE__ */ function(e) {
14
+ var he = /* @__PURE__ */ function(e) {
15
15
  return e.Default = "default", e.Primary = "primary", e.Plain = "plain", e;
16
- }({}), _e = {
16
+ }({}), ge = {
17
17
  accordion: "accordion_YZt8B",
18
18
  "accordion-title": "accordion-title_CGYKY",
19
19
  accordionTitle: "accordion-title_CGYKY",
@@ -33,7 +33,7 @@ var ge = /* @__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
- }, ve = {
36
+ }, _e = {
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 ge = /* @__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
- }, ye = {
56
+ }, ve = {
57
57
  accordion: "accordion_wkZJf",
58
58
  "accordion-title": "accordion-title_-qwNy",
59
59
  accordionTitle: "accordion-title_-qwNy",
@@ -71,13 +71,13 @@ var ge = /* @__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
- }, be = {
75
- [ge.Default]: _e,
76
- [ge.Primary]: ve,
77
- [ge.Plain]: ye
74
+ }, ye = {
75
+ [he.Default]: ge,
76
+ [he.Primary]: _e,
77
+ [he.Plain]: ve
78
78
  };
79
- function xe({ id: e = "", title: t = "", children: n = null, expanded: r = null, onHeaderClicked: i = () => {}, styleType: o = ge.Default, startOpen: s = !1, hideHeader: c = !1, className: l, style: m, classNames: h, styles: _, ...v }) {
80
- let y = be[o], b = u(null), [x, S] = d(r ?? s), [C, w] = d(null);
79
+ function be({ id: e = "", title: t = "", children: n = null, expanded: r = null, onHeaderClicked: i = () => {}, styleType: o = he.Default, startOpen: s = !1, hideHeader: c = !1, className: l, style: m, classNames: h, styles: _, ...v }) {
80
+ let y = ye[o], b = u(null), [x, S] = d(r ?? s), [C, w] = d(null);
81
81
  a(() => {
82
82
  r !== null && S(r);
83
83
  }, [r]), a(() => {
@@ -135,11 +135,11 @@ function xe({ id: e = "", title: t = "", children: n = null, expanded: r = null,
135
135
  })]
136
136
  });
137
137
  }
138
- var Se = {
138
+ var xe = {
139
139
  actionButtons: "actionButtons_7GybR",
140
140
  "actionButtons-margin": "actionButtons-margin_-XoFP",
141
141
  actionButtonsMargin: "actionButtons-margin_-XoFP"
142
- }, q = {
142
+ }, J = {
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 Se = {
171
171
  buttonSizeMedium: "button-size-medium_gNVDM",
172
172
  "button-size-large": "button-size-large_xSIcS",
173
173
  buttonSizeLarge: "button-size-large_xSIcS"
174
- }, Ce = {
174
+ }, Se = {
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 Se = {
180
180
  };
181
181
  //#endregion
182
182
  //#region package/common/loading/spinnerLoading/spinnerLoading.tsx
183
- function we({ className: e }) {
183
+ function Ce({ className: e }) {
184
184
  return /* @__PURE__ */ V("svg", {
185
185
  "data-testid": "spinner",
186
- className: f(Ce.spinnerLoading, e),
186
+ className: f(Se.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 we({ className: e }) {
196
196
  })
197
197
  });
198
198
  }
199
- we.defaultProps = { className: void 0 };
199
+ Ce.defaultProps = { className: void 0 };
200
200
  //#endregion
201
201
  //#region package/common/loading/spinnerLoading/index.ts
202
- var Te = we, Ee = /* @__PURE__ */ function(e) {
202
+ var we = Ce, Te = /* @__PURE__ */ function(e) {
203
203
  return e.Primary = "primary", e.Default = "default", e.Delete = "delete", e;
204
- }({}), De = /* @__PURE__ */ function(e) {
204
+ }({}), Ee = /* @__PURE__ */ function(e) {
205
205
  return e.Default = "default", e.Small = "small", e.Medium = "medium", e.Large = "large", e;
206
- }({}), Oe = /* @__PURE__ */ function(e) {
206
+ }({}), De = /* @__PURE__ */ function(e) {
207
207
  return e.Button = "button", e.Reset = "reset", e.Submit = "submit", e;
208
- }({}), ke = {
208
+ }({}), Oe = {
209
209
  ripple: "ripple_TsvyF",
210
210
  "ripple-container": "ripple-container_QzHdC",
211
211
  rippleContainer: "ripple-container_QzHdC"
212
- }, Ae = r(function({ disabled: e = !1, children: t, className: n, style: r, overflowHidden: i = !0, rippleAnimationLength: s = .6, rippleBackground: c = "rgba(255, 255, 255, 0.2)", manualOnly: l = !1, ...d }, f) {
212
+ }, ke = r(function({ disabled: e = !1, children: t, className: n, style: r, overflowHidden: i = !0, rippleAnimationLength: s = .6, rippleBackground: c = "rgba(255, 255, 255, 0.2)", manualOnly: l = !1, ...d }, f) {
213
213
  let p = u(null), m = u(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(ke.ripple), p.current?.appendChild(r), setTimeout(() => {
217
+ r.style.left = `${t}px`, r.style.top = `${n}px`, r.style.background = c, r.classList.add(Oe.ripple), p.current?.appendChild(r), setTimeout(() => {
218
218
  p.current?.removeChild(r);
219
219
  }, s * 1e3 + 50);
220
220
  }
@@ -237,7 +237,7 @@ var Te = we, Ee = /* @__PURE__ */ function(e) {
237
237
  }, [t, l]);
238
238
  let _ = { "--ripple-animation-length": `${s}s` };
239
239
  return t === void 0 ? /* @__PURE__ */ V("div", {
240
- className: ke.rippleContainer,
240
+ className: Oe.rippleContainer,
241
241
  ref: p,
242
242
  style: {
243
243
  overflow: i ? "hidden" : "visible",
@@ -253,47 +253,47 @@ var Te = we, Ee = /* @__PURE__ */ function(e) {
253
253
  ...r
254
254
  },
255
255
  children: [t, /* @__PURE__ */ V("div", {
256
- className: ke.rippleContainer,
256
+ className: Oe.rippleContainer,
257
257
  ref: p,
258
258
  style: _
259
259
  })]
260
260
  });
261
- }), je = {
262
- default: q.buttonStyleDefault,
263
- primary: q.buttonStylePrimary,
264
- delete: q.buttonStyleDelete
265
- }, Me = {
266
- default: q.buttonSizeDefault,
267
- small: q.buttonSizeSmall,
268
- medium: q.buttonSizeMedium,
269
- large: q.buttonSizeLarge
261
+ }), Ae = {
262
+ default: J.buttonStyleDefault,
263
+ primary: J.buttonStylePrimary,
264
+ delete: J.buttonStyleDelete
265
+ }, je = {
266
+ default: J.buttonSizeDefault,
267
+ small: J.buttonSizeSmall,
268
+ medium: J.buttonSizeMedium,
269
+ large: J.buttonSizeLarge
270
270
  };
271
- function J({ className: e, style: t, type: n = Oe.Button, styleType: r = Ee.Default, size: i = De.Default, onClick: a = () => {}, children: o, icon: s, isLoading: c = !1, disabled: l = !1, title: u = void 0, ref: d, classNames: m, styles: h, ...g }) {
271
+ function Me({ className: e, style: t, type: n = De.Button, styleType: r = Te.Default, size: i = Ee.Default, onClick: a = () => {}, children: o, icon: s, isLoading: c = !1, disabled: l = !1, title: u = void 0, ref: d, classNames: m, styles: h, ...g }) {
272
272
  return /* @__PURE__ */ V("button", {
273
273
  ...g,
274
- className: f(q.button, je[r], Me[i], { [q.buttonNotAllowed]: c || l }, e),
274
+ className: f(J.button, Ae[r], je[i], { [J.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__ */ V(Ae, {
281
+ children: /* @__PURE__ */ V(ke, {
282
282
  disabled: c || l,
283
283
  children: /* @__PURE__ */ V("div", {
284
- className: f(q.buttonBackground, m?.background),
284
+ className: f(J.buttonBackground, m?.background),
285
285
  style: h?.background,
286
286
  children: /* @__PURE__ */ H("div", {
287
- className: f(q.buttonContent, m?.content),
287
+ className: f(J.buttonContent, m?.content),
288
288
  style: h?.content,
289
289
  children: [c ? /* @__PURE__ */ V("div", {
290
- className: f(q.buttonLoadingContainer, m?.loadingContainer),
290
+ className: f(J.buttonLoadingContainer, m?.loadingContainer),
291
291
  style: h?.loadingContainer,
292
- children: /* @__PURE__ */ V(Te, { className: q.buttonLoadingIcon })
292
+ children: /* @__PURE__ */ V(we, { className: J.buttonLoadingIcon })
293
293
  }) : null, /* @__PURE__ */ H("div", {
294
294
  className: f(m?.label, {
295
- [q.buttonLoading]: c,
296
- [q.buttonWithIcon]: !!s
295
+ [J.buttonLoading]: c,
296
+ [J.buttonWithIcon]: !!s
297
297
  }),
298
298
  style: h?.label,
299
299
  children: [s ? /* @__PURE__ */ V(p, { icon: s }) : null, o]
@@ -303,28 +303,28 @@ function J({ className: e, style: t, type: n = Oe.Button, styleType: r = Ee.Defa
303
303
  })
304
304
  });
305
305
  }
306
- J.StyleType = Ee, J.Size = De, J.Type = Oe;
306
+ Me.StyleType = Te, Me.Size = Ee, Me.Type = De;
307
307
  //#endregion
308
308
  //#region package/common/actionButtons/actionButtons.tsx
309
- function Ne({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = Ee.Primary, isSubmitButtonLoading: a = !1, isSubmitButtonDisabled: o = !1, submitButtonIcon: s = void 0, cancelButtonStyle: c = Ee.Default, isCancelButtonLoading: l = !1, isCancelButtonDisabled: u = !1, cancelButtonIcon: d = void 0, hidePrimaryButton: p = !1, hideSecondaryButton: m = !1, noMargin: h = !1, className: g, style: _, classNames: v, styles: y, ...b }) {
309
+ function Ne({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = Te.Primary, isSubmitButtonLoading: a = !1, isSubmitButtonDisabled: o = !1, submitButtonIcon: s = void 0, cancelButtonStyle: c = Te.Default, isCancelButtonLoading: l = !1, isCancelButtonDisabled: u = !1, cancelButtonIcon: d = void 0, hidePrimaryButton: p = !1, hideSecondaryButton: m = !1, noMargin: h = !1, className: g, style: _, classNames: v, styles: y, ...b }) {
310
310
  return /* @__PURE__ */ H("div", {
311
311
  ...b,
312
- className: f(Se.actionButtons, !h && Se.actionButtonsMargin, g, v?.root),
312
+ className: f(xe.actionButtons, !h && xe.actionButtonsMargin, g, v?.root),
313
313
  style: {
314
314
  ..._,
315
315
  ...y?.root
316
316
  },
317
- children: [!p && /* @__PURE__ */ V(J, {
317
+ children: [!p && /* @__PURE__ */ V(Me, {
318
318
  isLoading: a,
319
319
  disabled: o,
320
320
  styleType: i,
321
- type: Oe.Submit,
321
+ type: De.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__ */ V(J, {
327
+ }), !m && /* @__PURE__ */ V(Me, {
328
328
  isLoading: l,
329
329
  disabled: u,
330
330
  onClick: t,
@@ -418,7 +418,7 @@ function Ve({ className: e = void 0, children: t = null, onClick: n = void 0, ta
418
418
  onClick: n,
419
419
  tabIndex: r ?? (s ? 0 : null),
420
420
  style: a,
421
- children: /* @__PURE__ */ V(Ae, {
421
+ children: /* @__PURE__ */ V(ke, {
422
422
  disabled: !s,
423
423
  overflowHidden: !1,
424
424
  children: t
@@ -478,7 +478,7 @@ function We({ children: e = null }) {
478
478
  function Ge({ className: e = "", actions: t = [], children: n = null }) {
479
479
  return /* @__PURE__ */ H("div", {
480
480
  className: f(Be.cardActions, e),
481
- children: [t.map(({ id: e, onClick: t, label: n, styleType: r = Ee.Default }) => /* @__PURE__ */ V("div", { children: /* @__PURE__ */ V(J, {
481
+ children: [t.map(({ id: e, onClick: t, label: n, styleType: r = Te.Default }) => /* @__PURE__ */ V("div", { children: /* @__PURE__ */ V(Me, {
482
482
  onClick: t,
483
483
  styleType: r,
484
484
  children: n
@@ -538,7 +538,7 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
538
538
  width: m,
539
539
  height: h
540
540
  },
541
- children: /* @__PURE__ */ V(Te, { className: Ke.checkboxLoadingSpinner })
541
+ children: /* @__PURE__ */ V(we, { className: Ke.checkboxLoadingSpinner })
542
542
  }) : /* @__PURE__ */ H("div", {
543
543
  style: {
544
544
  width: m,
@@ -546,7 +546,7 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
546
546
  ...x?.checkmark
547
547
  },
548
548
  className: f(Ke.checkboxCheckmark, E && Ke.checkboxCheckmarkChecked, b?.checkmark),
549
- children: [/* @__PURE__ */ V(Ae, {
549
+ children: [/* @__PURE__ */ V(ke, {
550
550
  ref: C,
551
551
  manualOnly: !0,
552
552
  overflowHidden: !1,
@@ -577,10 +577,24 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
577
577
  })]
578
578
  });
579
579
  }
580
- var Je = {
580
+ //#endregion
581
+ //#region package/common/chip/chip.types.ts
582
+ var Je = /* @__PURE__ */ function(e) {
583
+ return e.Default = "default", e.Primary = "primary", e.Info = "info", e.Warn = "warn", e.Error = "error", e;
584
+ }({}), Ye = {
581
585
  chip: "chip_rCTMl",
582
586
  "chip-clickable": "chip-clickable_WTVjG",
583
587
  chipClickable: "chip-clickable_WTVjG",
588
+ "chip-style-default": "chip-style-default_ppCDx",
589
+ chipStyleDefault: "chip-style-default_ppCDx",
590
+ "chip-style-primary": "chip-style-primary_oyE85",
591
+ chipStylePrimary: "chip-style-primary_oyE85",
592
+ "chip-style-info": "chip-style-info_GNJrm",
593
+ chipStyleInfo: "chip-style-info_GNJrm",
594
+ "chip-style-warn": "chip-style-warn_Jx3LU",
595
+ chipStyleWarn: "chip-style-warn_Jx3LU",
596
+ "chip-style-error": "chip-style-error_-Npvg",
597
+ chipStyleError: "chip-style-error_-Npvg",
584
598
  "chip-inner": "chip-inner_mfo-w",
585
599
  chipInner: "chip-inner_mfo-w",
586
600
  "chip-text": "chip-text_d1juf",
@@ -591,36 +605,40 @@ var Je = {
591
605
  chipContainer: "chip-container_oNNmF",
592
606
  "chip-container-inline": "chip-container-inline_11QHw",
593
607
  chipContainerInline: "chip-container-inline_11QHw"
608
+ }, Xe = {
609
+ default: Ye.chipStyleDefault,
610
+ primary: Ye.chipStylePrimary,
611
+ info: Ye.chipStyleInfo,
612
+ warn: Ye.chipStyleWarn,
613
+ error: Ye.chipStyleError
594
614
  };
595
- //#endregion
596
- //#region package/common/chip/chip.tsx
597
- function Ye({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon: r = !1, onClick: i, onRemove: a, ...o }) {
598
- let s = c(() => {
615
+ function Ze({ className: e = "", thumbnail: t = "", text: n = "", styleType: r = Je.Default, showRemoveIcon: i = !1, onClick: a, onRemove: o, ...s }) {
616
+ let l = c(() => {
599
617
  if (typeof t == "string" && t.startsWith("http")) return t;
600
618
  }, [t]);
601
619
  return /* @__PURE__ */ V("div", {
602
- ...o,
603
- className: f(Je.chip, i && Je.chipClickable, e),
604
- onClick: i,
605
- children: /* @__PURE__ */ V(Ae, {
606
- disabled: !i,
620
+ ...s,
621
+ className: f(Ye.chip, Xe[r], a && Ye.chipClickable, e),
622
+ onClick: a,
623
+ children: /* @__PURE__ */ V(ke, {
624
+ disabled: !a,
607
625
  style: { borderRadius: "inherit" },
608
626
  children: /* @__PURE__ */ H("div", {
609
- className: Je.chipInner,
627
+ className: Ye.chipInner,
610
628
  children: [
611
629
  t && /* @__PURE__ */ V("div", {
612
- className: Je.chipThumbnail,
613
- style: s ? { backgroundImage: `url(${s})` } : {},
614
- children: !s && t
630
+ className: Ye.chipThumbnail,
631
+ style: l ? { backgroundImage: `url(${l})` } : {},
632
+ children: !l && t
615
633
  }),
616
634
  /* @__PURE__ */ V("div", {
617
- className: Je.chipText,
635
+ className: Ye.chipText,
618
636
  children: n
619
637
  }),
620
- r && /* @__PURE__ */ V(Re, {
638
+ i && /* @__PURE__ */ V(Re, {
621
639
  icon: re,
622
640
  onClick: (e) => {
623
- e.stopPropagation(), a?.();
641
+ e.stopPropagation(), o?.();
624
642
  }
625
643
  })
626
644
  ]
@@ -630,14 +648,14 @@ function Ye({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon
630
648
  }
631
649
  //#endregion
632
650
  //#region package/common/chip/chipContainer.tsx
633
- function Xe({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
651
+ function Qe({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
634
652
  return /* @__PURE__ */ V("div", {
635
653
  ...r,
636
- className: f(Je.chipContainer, n && Je.chipContainerInline, e),
654
+ className: f(Ye.chipContainer, n && Ye.chipContainerInline, e),
637
655
  children: t
638
656
  });
639
657
  }
640
- var Ze = {
658
+ var $e = {
641
659
  floatingMenu: "floatingMenu_E1XCy",
642
660
  "floatingMenu-content": "floatingMenu-content_AmxkA",
643
661
  floatingMenuContent: "floatingMenu-content_AmxkA",
@@ -660,15 +678,15 @@ var Ze = {
660
678
  "floatingMenu-anim": "floatingMenu-anim_5KB-f",
661
679
  floatingMenuAnim: "floatingMenu-anim_5KB-f",
662
680
  showMenu: "showMenu_AprCh"
663
- }, Qe = /* @__PURE__ */ function(e) {
681
+ }, et = /* @__PURE__ */ function(e) {
664
682
  return e.Left = "left", e.Right = "right", e.Center = "center", e;
665
683
  }({});
666
684
  //#endregion
667
685
  //#region package/common/floatingMenu/floatingMenu.tsx
668
- function $e(e) {
686
+ function tt(e) {
669
687
  return e.charAt(0).toUpperCase() + e.slice(1);
670
688
  }
671
- function et({ align: e = Qe.Left, children: t = null, content: n = null, isOpen: r = !1, onOpenChange: i = () => {}, dontCloseOnChildClick: o = !1, className: s, style: c, classNames: l, styles: p, ...m }) {
689
+ function nt({ align: e = et.Left, children: t = null, content: n = null, isOpen: r = !1, onOpenChange: i = () => {}, dontCloseOnChildClick: o = !1, className: s, style: c, classNames: l, styles: p, ...m }) {
672
690
  let h = u(null), g = u(null), _ = u(i), [v, y] = d(10), [b, x] = d(null);
673
691
  a(() => {
674
692
  _.current = i;
@@ -705,19 +723,19 @@ function et({ align: e = Qe.Left, children: t = null, content: n = null, isOpen:
705
723
  return window.addEventListener("mouseup", e), () => window.removeEventListener("mouseup", e);
706
724
  }, [r, o]), /* @__PURE__ */ H("div", {
707
725
  ...m,
708
- className: f(Ze.floatingMenu, s, l?.root),
726
+ className: f($e.floatingMenu, s, l?.root),
709
727
  style: {
710
728
  ...c,
711
729
  ...p?.root
712
730
  },
713
731
  children: [/* @__PURE__ */ V("div", {
714
- className: f(Ze.floatingMenuContent, l?.trigger),
732
+ className: f($e.floatingMenuContent, l?.trigger),
715
733
  style: p?.trigger,
716
734
  ref: g,
717
735
  onClick: S,
718
736
  children: t
719
737
  }), r && /* @__PURE__ */ H("div", {
720
- className: f(Ze.floatingMenuAnim, l?.menu),
738
+ className: f($e.floatingMenuAnim, l?.menu),
721
739
  style: {
722
740
  width: `${v}px`,
723
741
  ...b && {
@@ -726,16 +744,16 @@ function et({ align: e = Qe.Left, children: t = null, content: n = null, isOpen:
726
744
  },
727
745
  ...p?.menu
728
746
  },
729
- children: [/* @__PURE__ */ V("div", { className: f(Ze.floatingMenuContainerFlag, Ze[`floatingMenuContainerFlagAlign${$e(e)}`]) }), /* @__PURE__ */ V("div", {
747
+ children: [/* @__PURE__ */ V("div", { className: f($e.floatingMenuContainerFlag, $e[`floatingMenuContainerFlagAlign${tt(e)}`]) }), /* @__PURE__ */ V("div", {
730
748
  ref: h,
731
- className: f(Ze.floatingMenuContainer, Ze[`floatingMenuContainerAlign${$e(e)}`], l?.menuContainer),
749
+ className: f($e.floatingMenuContainer, $e[`floatingMenuContainerAlign${tt(e)}`], l?.menuContainer),
732
750
  style: p?.menuContainer,
733
751
  children: n
734
752
  })]
735
753
  })]
736
754
  });
737
755
  }
738
- var tt = {
756
+ var rt = {
739
757
  tooltipBubble: "tooltipBubble_uyev0",
740
758
  tooltipDetails: "tooltipDetails_R7N16",
741
759
  "tooltipDetails-icon": "tooltipDetails-icon_rsjns",
@@ -744,25 +762,25 @@ var tt = {
744
762
  };
745
763
  //#endregion
746
764
  //#region package/common/tooltip/tooltip.tsx
747
- function nt({ variant: e, message: t = "", isVisible: n = !0, tooltipPosition: r, onClick: i }) {
765
+ function it({ variant: e, message: t = "", isVisible: n = !0, tooltipPosition: r, onClick: i }) {
748
766
  let [a, o] = d(!1);
749
767
  return e === "info" ? n ? /* @__PURE__ */ V("div", {
750
- className: f(tt.tooltipBubble, r),
768
+ className: f(rt.tooltipBubble, r),
751
769
  onClick: i,
752
770
  children: t
753
771
  }) : null : e === "details" ? /* @__PURE__ */ H("div", {
754
- className: tt.tooltipDetails,
772
+ className: rt.tooltipDetails,
755
773
  children: [/* @__PURE__ */ V("span", {
756
- className: tt.tooltipDetailsIcon,
774
+ className: rt.tooltipDetailsIcon,
757
775
  onMouseEnter: () => o(!0),
758
776
  onMouseLeave: () => o(!1),
759
777
  children: "?"
760
778
  }), a && /* @__PURE__ */ V("div", {
761
- className: f(tt.tooltipBubble, r),
779
+ className: f(rt.tooltipBubble, r),
762
780
  children: t
763
781
  })]
764
782
  }) : e === "error" && n ? /* @__PURE__ */ V("div", {
765
- className: f(tt.tooltipError, r),
783
+ className: f(rt.tooltipError, r),
766
784
  onClick: i,
767
785
  children: t
768
786
  }) : null;
@@ -844,83 +862,83 @@ var Y = {
844
862
  }({});
845
863
  //#endregion
846
864
  //#region package/common/input/input.tsx
847
- function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: m = 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: k = null, formValidator: A = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: I = !1, showCancel: L = !1, onClearClicked: R, min: te = null, max: ne = null, placeholder: re = "", useMatLabelStyle: B = !0, autoComplete: ie = null, onClick: ae = () => null, readOnly: oe = !1, customInput: U, alwaysShowCancel: se = !1, multiline: W = !1, rows: ce, autoResize: le = !1, classNames: ue, styles: G, disabled: K = !1, ...de }) {
848
- let [fe, pe] = d(!1), [me, he] = d(!1), [ge, _e] = d(!1), [, ve] = d(0), ye = u(null), be = u(A), xe = i(() => {
849
- let e = ye.current;
865
+ function at({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: m = 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: k = null, formValidator: A = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: I = !1, showCancel: te = !1, onClearClicked: L, min: R = null, max: ne = null, placeholder: re = "", useMatLabelStyle: B = !0, autoComplete: ie = null, onClick: ae = () => null, readOnly: oe = !1, customInput: U, alwaysShowCancel: se = !1, multiline: W = !1, rows: ce, autoResize: le = !1, classNames: G, styles: ue, disabled: K = !1, ...de }) {
866
+ let [q, fe] = d(!1), [pe, me] = d(!1), [he, ge] = d(!1), [, _e] = d(0), ve = u(null), ye = u(A), be = i(() => {
867
+ let e = ve.current;
850
868
  !e || !le || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
851
869
  }, [le]);
852
870
  a(() => {
853
871
  setTimeout(() => {
854
- pe(!1), he(!1);
855
- }, 1), xe();
872
+ fe(!1), me(!1);
873
+ }, 1), be();
856
874
  }, []), a(() => {
857
- j && ye.current && setTimeout(() => {
858
- ye.current?.focus();
875
+ j && ve.current && setTimeout(() => {
876
+ ve.current?.focus();
859
877
  }, 1);
860
878
  }, [j]), a(() => {
861
- be.current = A;
862
- let e = be.current;
879
+ ye.current = A;
880
+ let e = ye.current;
863
881
  if (!e) return;
864
882
  e.label = n ?? "", e.validate();
865
- let t = () => ve((e) => e + 1);
883
+ let t = () => _e((e) => e + 1);
866
884
  return e.registerOnUpdateListener(t), () => {
867
885
  e.removeOnUpdateListener(t);
868
886
  };
869
887
  }, [A, n]);
870
- let Se = () => A ? A.touched && A.hasError() : !o || !!r, q = () => !!(x || A && A.validators.find((e) => e.validatorId === "required")), Ce = (e) => {
871
- he(!0), v && v(e);
888
+ let xe = () => A ? A.touched && A.hasError() : !o || !!r, J = () => !!(x || A && A.validators.find((e) => e.validatorId === "required")), Se = (e) => {
889
+ me(!0), v && v(e);
890
+ }, Ce = (e) => {
891
+ me(!1), y && y(e);
872
892
  }, we = (e) => {
873
- he(!1), y && y(e);
893
+ fe(!0), g && g(e);
874
894
  }, Te = (e) => {
875
- pe(!0), g && g(e);
895
+ ye.current && (ye.current.touched = !0), fe(!1), _ && _(e);
876
896
  }, Ee = (e) => {
877
- be.current && (be.current.touched = !0), pe(!1), _ && _(e);
878
- }, De = (e) => {
879
897
  let t, n;
880
- typeof e == "string" ? n = e : (t = e, n = e.target.value), k && (n = k(n)), A && A.set(n), h && h(n, t), xe();
881
- }, Oe = () => {
882
- if (C !== "email") return C === "password" && ge ? "text" : C;
883
- }, ke = C && C !== X.Date && C !== X.Iban && C !== X.HasNoIcon, Ae = ke && !B && (C === X.Email || C === X.Phone || C === X.Search), je = {
898
+ typeof e == "string" ? n = e : (t = e, n = e.target.value), k && (n = k(n)), A && A.set(n), h && h(n, t), be();
899
+ }, De = () => {
900
+ if (C !== "email") return C === "password" && he ? "text" : C;
901
+ }, Oe = C && C !== X.Date && C !== X.Iban && C !== X.HasNoIcon, ke = Oe && !B && (C === X.Email || C === X.Phone || C === X.Search), Ae = {
884
902
  className: f(Y.inputFieldIcon, {
885
903
  [Y.inputFieldIconNotClickable]: !T,
886
- [Y.inputFieldIconLeft]: Ae
904
+ [Y.inputFieldIconLeft]: ke
887
905
  }),
888
906
  onClick: T ?? void 0
889
- }, Me = {
907
+ }, je = {
890
908
  className: f(Y.inputFieldIcon, Y.inputFieldIconPassword),
891
- onClick: () => _e(!ge)
892
- }, J = Se(), Ne = n;
893
- Ne && q() && (Ne = `${Ne} *`);
894
- let Pe = A ? A.value : l, Fe = B && (fe || Pe || C === X.Date);
909
+ onClick: () => ge(!he)
910
+ }, Me = xe(), Ne = n;
911
+ Ne && J() && (Ne = `${Ne} *`);
912
+ let Pe = A ? A.value : l, Fe = B && (q || Pe || C === X.Date);
895
913
  return /* @__PURE__ */ H("div", {
896
914
  className: f(Y.input, s),
897
915
  style: c,
898
916
  children: [
899
917
  /* @__PURE__ */ H("label", {
900
918
  htmlFor: t,
901
- className: f(Y.inputLabel, ue?.label, {
919
+ className: f(Y.inputLabel, G?.label, {
902
920
  [Y.inputLabelColumn]: !w,
903
921
  [Y.inputLabelInBorder]: I
904
922
  }),
905
- style: G?.label,
923
+ style: ue?.label,
906
924
  children: [
907
925
  Ne && !B ? /* @__PURE__ */ H("span", {
908
926
  className: Y.inputLabelText,
909
- children: [`${Ne} `, q() ? /* @__PURE__ */ V("span", {
927
+ children: [`${Ne} `, J() ? /* @__PURE__ */ V("span", {
910
928
  className: f(Y.isRequired),
911
929
  children: "\xA0 *"
912
930
  }) : null]
913
931
  }) : null,
914
932
  N && /* @__PURE__ */ V("div", {
915
- className: f(Y.inputUpperRightLabel, ue?.upperRightLabel),
916
- style: G?.upperRightLabel,
933
+ className: f(Y.inputUpperRightLabel, G?.upperRightLabel),
934
+ style: ue?.upperRightLabel,
917
935
  children: N
918
936
  }),
919
937
  /* @__PURE__ */ H("div", {
920
- className: f(Y.inputContainer, { [Y.inputContainerMultiline]: W }, ue?.container),
921
- style: G?.container,
922
- onMouseEnter: Ce,
923
- onMouseLeave: we,
938
+ className: f(Y.inputContainer, { [Y.inputContainerMultiline]: W }, G?.container),
939
+ style: ue?.container,
940
+ onMouseEnter: Se,
941
+ onMouseLeave: Ce,
924
942
  children: [
925
943
  m,
926
944
  e.cloneElement(U || V(W ? "textarea" : "input", {}), {
@@ -929,46 +947,46 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
929
947
  [Y.inputFieldUppercase]: b,
930
948
  [Y.inputFieldDate]: C === X.Date,
931
949
  [Y.inputFieldDefault]: C !== X.Date,
932
- [Y.inputFieldWithIcon]: ke,
933
- [Y.inputFieldWithIconLeft]: Ae,
950
+ [Y.inputFieldWithIcon]: Oe,
951
+ [Y.inputFieldWithIconLeft]: ke,
934
952
  [Y.inputFieldMultiline]: W,
935
953
  [Y.inputFieldMultilineAutoResize]: W && le
936
- }, ue?.input),
954
+ }, G?.input),
937
955
  name: t,
938
956
  id: t,
939
957
  value: A ? A.value : l,
940
958
  tabIndex: S,
941
- ref: U ? void 0 : ye,
942
- onChange: De,
943
- onFocus: Te,
944
- onBlur: Ee,
959
+ ref: U ? void 0 : ve,
960
+ onChange: Ee,
961
+ onFocus: we,
962
+ onBlur: Te,
945
963
  placeholder: B ? "" : re,
946
964
  autoComplete: ie,
947
965
  onClick: ae,
948
966
  readOnly: oe,
949
967
  disabled: K,
950
968
  ...!W && {
951
- type: Oe(),
952
- min: te,
969
+ type: De(),
970
+ min: R,
953
971
  max: ne
954
972
  },
955
973
  ...W && ce !== void 0 && { rows: ce }
956
974
  }),
957
975
  M && /* @__PURE__ */ V("div", {
958
- className: f(Y.inputFieldSuffix, ue?.suffix),
959
- style: G?.suffix,
976
+ className: f(Y.inputFieldSuffix, G?.suffix),
977
+ style: ue?.suffix,
960
978
  children: M
961
979
  })
962
980
  ]
963
981
  }),
964
982
  /* @__PURE__ */ V("fieldset", {
965
- className: f(Y.inputFieldset, ue?.fieldset, {
966
- [Y.inputContainerBorderFocused]: fe,
967
- [Y.inputContainerBorderSearchFocused]: C === X.Search && (fe || l),
968
- [Y.inputContainerBorderInvalid]: J,
969
- [Y.inputContainerBorderError]: J
983
+ className: f(Y.inputFieldset, G?.fieldset, {
984
+ [Y.inputContainerBorderFocused]: q,
985
+ [Y.inputContainerBorderSearchFocused]: C === X.Search && (q || l),
986
+ [Y.inputContainerBorderInvalid]: Me,
987
+ [Y.inputContainerBorderError]: Me
970
988
  }),
971
- style: G?.fieldset,
989
+ style: ue?.fieldset,
972
990
  children: /* @__PURE__ */ V("legend", {
973
991
  className: f(Y.inputFieldsetLegend, { [Y.inputFieldsetLegendActive]: Fe }),
974
992
  children: /* @__PURE__ */ V("span", { children: Ne })
@@ -982,47 +1000,47 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
982
1000
  children: Ne
983
1001
  }),
984
1002
  B && re && /* @__PURE__ */ V("div", {
985
- className: f(Y.inputPlaceholder, fe && !Pe && Y.inputPlaceholderShown, W && Y.inputPlaceholderMultiline),
1003
+ className: f(Y.inputPlaceholder, q && !Pe && Y.inputPlaceholderShown, W && Y.inputPlaceholderMultiline),
986
1004
  children: re
987
1005
  }),
988
- /* @__PURE__ */ V(nt, {
1006
+ /* @__PURE__ */ V(it, {
989
1007
  variant: "error",
990
1008
  message: A ? A.getCurrentErrorMessage() : r || "",
991
- isVisible: J && (fe || me)
1009
+ isVisible: Me && (q || pe)
992
1010
  })
993
1011
  ]
994
1012
  }),
995
1013
  C === X.Phone && /* @__PURE__ */ V(p, {
996
1014
  icon: F,
997
- ...je
1015
+ ...Ae
998
1016
  }),
999
1017
  C === X.Email && /* @__PURE__ */ V(p, {
1000
1018
  icon: E,
1001
- ...je
1019
+ ...Ae
1002
1020
  }),
1003
1021
  C === X.Edit && /* @__PURE__ */ V(p, {
1004
1022
  icon: P,
1005
- ...je
1023
+ ...Ae
1006
1024
  }),
1007
1025
  C === X.Search && /* @__PURE__ */ V(p, {
1008
1026
  icon: ee,
1009
- ...je
1027
+ ...Ae
1010
1028
  }),
1011
1029
  C === X.Password && /* @__PURE__ */ V(p, {
1012
- icon: ge ? O : D,
1013
- ...Me
1030
+ icon: he ? O : D,
1031
+ ...je
1014
1032
  }),
1015
- (L && l && (fe || me) || se) && /* @__PURE__ */ V(p, {
1033
+ (te && l && (q || pe) || se) && /* @__PURE__ */ V(p, {
1016
1034
  icon: z,
1017
1035
  className: Y.inputFieldIcon,
1018
- onClick: R ?? void 0,
1019
- onMouseEnter: () => he(!0),
1020
- onMouseLeave: () => he(!1)
1036
+ onClick: L ?? void 0,
1037
+ onMouseEnter: () => me(!0),
1038
+ onMouseLeave: () => me(!1)
1021
1039
  })
1022
1040
  ]
1023
1041
  });
1024
1042
  }
1025
- var it = {
1043
+ var ot = {
1026
1044
  colorPicker: "colorPicker_Ts3an",
1027
1045
  swatch: "swatch_NW78g",
1028
1046
  swatchHex: "swatchHex_j7-i5",
@@ -1037,10 +1055,10 @@ var it = {
1037
1055
  };
1038
1056
  //#endregion
1039
1057
  //#region package/common/colorPicker/colorPicker.tsx
1040
- function at(e) {
1058
+ function st(e) {
1041
1059
  return /^#[0-9a-fA-F]{6}$/.test(e) || /^#[0-9a-fA-F]{8}$/.test(e);
1042
1060
  }
1043
- function ot(e) {
1061
+ function ct(e) {
1044
1062
  return /^#[0-9a-fA-F]{8}$/.test(e) ? {
1045
1063
  hex6: e.slice(0, 7),
1046
1064
  alpha: Math.round(parseInt(e.slice(7, 9), 16) / 255 * 100)
@@ -1049,13 +1067,13 @@ function ot(e) {
1049
1067
  alpha: 100
1050
1068
  };
1051
1069
  }
1052
- function st(e, t, n) {
1070
+ function lt(e, t, n) {
1053
1071
  return !n || t >= 100 ? e : `${e}${Math.round(t / 100 * 255).toString(16).padStart(2, "0")}`;
1054
1072
  }
1055
- function ct(e, t) {
1073
+ function ut(e, t) {
1056
1074
  return `rgba(${parseInt(e.slice(1, 3), 16)}, ${parseInt(e.slice(3, 5), 16)}, ${parseInt(e.slice(5, 7), 16)}, ${t / 100})`;
1057
1075
  }
1058
- function lt(e) {
1076
+ function dt(e) {
1059
1077
  let t = parseInt(e.slice(1, 3), 16) / 255, n = parseInt(e.slice(3, 5), 16) / 255, r = parseInt(e.slice(5, 7), 16) / 255, i = Math.max(t, n, r), a = i - Math.min(t, n, r), o = 0;
1060
1078
  a !== 0 && (o = i === t ? (n - r) / a % 6 : i === n ? (r - t) / a + 2 : (t - n) / a + 4, o = Math.round(o * 60), o < 0 && (o += 360));
1061
1079
  let s = i === 0 ? 0 : Math.round(a / i * 100), c = Math.round(i * 100);
@@ -1065,13 +1083,13 @@ function lt(e) {
1065
1083
  v: c
1066
1084
  };
1067
1085
  }
1068
- function ut(e, t, n) {
1086
+ function ft(e, t, n) {
1069
1087
  let r = t / 100, i = n / 100, a = i * r, o = a * (1 - Math.abs(e / 60 % 2 - 1)), s = i - a, c = 0, l = 0, u = 0;
1070
1088
  e < 60 ? (c = a, l = o, u = 0) : e < 120 ? (c = o, l = a, u = 0) : e < 180 ? (c = 0, l = a, u = o) : e < 240 ? (c = 0, l = o, u = a) : e < 300 ? (c = o, l = 0, u = a) : (c = a, l = 0, u = o);
1071
1089
  let d = (e) => Math.round((e + s) * 255).toString(16).padStart(2, "0");
1072
1090
  return `#${d(c)}${d(l)}${d(u)}`;
1073
1091
  }
1074
- function dt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1092
+ function pt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1075
1093
  let [r, i] = d(e);
1076
1094
  a(() => {
1077
1095
  i(e);
@@ -1079,12 +1097,12 @@ function dt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1079
1097
  function o(e) {
1080
1098
  i(e);
1081
1099
  let n = e.startsWith("#") ? e : `#${e}`;
1082
- at(n) && t(n);
1100
+ st(n) && t(n);
1083
1101
  }
1084
1102
  function s() {
1085
- at(r.startsWith("#") ? r : `#${r}`) || i(e);
1103
+ st(r.startsWith("#") ? r : `#${r}`) || i(e);
1086
1104
  }
1087
- return n ? /* @__PURE__ */ V(rt, {
1105
+ return n ? /* @__PURE__ */ V(at, {
1088
1106
  value: r,
1089
1107
  onChange: (e) => o(e),
1090
1108
  onBlur: s
@@ -1093,11 +1111,11 @@ function dt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1093
1111
  value: r,
1094
1112
  onChange: (e) => o(e.target.value),
1095
1113
  onBlur: s,
1096
- className: it.hexInput,
1114
+ className: ot.hexInput,
1097
1115
  spellCheck: !1
1098
1116
  });
1099
1117
  }
1100
- function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, onAlphaChange: o, showInput: s = !0, showAlpha: c = !1 }) {
1118
+ function mt({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, onAlphaChange: o, showInput: s = !0, showAlpha: c = !1 }) {
1101
1119
  let l = u(null);
1102
1120
  function d(e) {
1103
1121
  let t = l.current.getBoundingClientRect(), n = Math.max(0, Math.min(1, (e.clientX - t.left) / t.width)), r = Math.max(0, Math.min(1, (e.clientY - t.top) / t.height));
@@ -1118,20 +1136,20 @@ function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1118
1136
  window.addEventListener("mousemove", r), window.addEventListener("mouseup", i);
1119
1137
  }
1120
1138
  function p(e) {
1121
- let { hex6: t, alpha: n } = ot(e), { h: r, s, v: l } = lt(t);
1139
+ let { hex6: t, alpha: n } = ct(e), { h: r, s, v: l } = dt(t);
1122
1140
  i(r), a(s, l), c && o(n);
1123
1141
  }
1124
- let m = ut(e, t, n), h = c ? st(m, r, !0) : m;
1142
+ let m = ft(e, t, n), h = c ? lt(m, r, !0) : m;
1125
1143
  return /* @__PURE__ */ H("div", {
1126
- className: it.panel,
1144
+ className: ot.panel,
1127
1145
  children: [
1128
1146
  /* @__PURE__ */ H("div", {
1129
1147
  ref: l,
1130
- className: it.gradientArea,
1148
+ className: ot.gradientArea,
1131
1149
  style: { "--hue": e },
1132
1150
  onMouseDown: f,
1133
- children: [/* @__PURE__ */ V("div", { className: it.gradientOverlay }), /* @__PURE__ */ V("div", {
1134
- className: it.cursor,
1151
+ children: [/* @__PURE__ */ V("div", { className: ot.gradientOverlay }), /* @__PURE__ */ V("div", {
1152
+ className: ot.cursor,
1135
1153
  style: {
1136
1154
  left: `${t}%`,
1137
1155
  top: `${100 - n}%`
@@ -1144,7 +1162,7 @@ function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1144
1162
  max: 359,
1145
1163
  value: e,
1146
1164
  onChange: (e) => i(Number(e.target.value)),
1147
- className: it.hueSlider
1165
+ className: ot.hueSlider
1148
1166
  }),
1149
1167
  c && /* @__PURE__ */ V("input", {
1150
1168
  type: "range",
@@ -1152,19 +1170,19 @@ function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1152
1170
  max: 100,
1153
1171
  value: r,
1154
1172
  onChange: (e) => o(Number(e.target.value)),
1155
- className: it.alphaSlider,
1173
+ className: ot.alphaSlider,
1156
1174
  style: { "--alpha-color": m }
1157
1175
  }),
1158
- s && /* @__PURE__ */ V(dt, {
1176
+ s && /* @__PURE__ */ V(pt, {
1159
1177
  hex: h,
1160
1178
  onChange: p
1161
1179
  })
1162
1180
  ]
1163
1181
  });
1164
1182
  }
1165
- var pt = "#3b82f6";
1166
- function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showAlpha: i = !1, inline: a = !1, ...o }) {
1167
- let [s, c] = d(!1), { hex6: l, alpha: p } = ot(at(t) ? t : pt), m = lt(l), [h, g] = d({
1183
+ var ht = "#3b82f6";
1184
+ function gt({ className: e, value: t = ht, onChange: n, showInput: r = !1, showAlpha: i = !1, inline: a = !1, ...o }) {
1185
+ let [s, c] = d(!1), { hex6: l, alpha: p } = ct(st(t) ? t : ht), m = dt(l), [h, g] = d({
1168
1186
  h: m.h,
1169
1187
  s: m.s,
1170
1188
  v: m.v,
@@ -1172,9 +1190,9 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1172
1190
  }), _ = u(h), [v, y] = d(t);
1173
1191
  if (t !== v) {
1174
1192
  y(t);
1175
- let { hex6: e, alpha: n } = ot(at(t) ? t : pt);
1176
- if (e !== ut(h.h, h.s, h.v) || n !== h.a) {
1177
- let t = lt(e);
1193
+ let { hex6: e, alpha: n } = ct(st(t) ? t : ht);
1194
+ if (e !== ft(h.h, h.s, h.v) || n !== h.a) {
1195
+ let t = dt(e);
1178
1196
  g({
1179
1197
  h: t.h,
1180
1198
  s: t.s,
@@ -1185,7 +1203,7 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1185
1203
  }
1186
1204
  let { h: b, s: x, v: S, a: C } = h;
1187
1205
  function w(e, t, r, a) {
1188
- n?.(st(ut(e, t, r), a, i));
1206
+ n?.(lt(ft(e, t, r), a, i));
1189
1207
  }
1190
1208
  function T(e) {
1191
1209
  _.current.h = e, g((t) => ({
@@ -1206,7 +1224,7 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1206
1224
  a: e
1207
1225
  })), w(_.current.h, _.current.s, _.current.v, e);
1208
1226
  }
1209
- let O = ut(b, x, S), k = i ? ct(O, C) : O, A = st(O, C, i), j = {
1227
+ let O = ft(b, x, S), k = i ? ut(O, C) : O, A = lt(O, C, i), j = {
1210
1228
  hue: b,
1211
1229
  sat: x,
1212
1230
  val: S,
@@ -1218,38 +1236,38 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1218
1236
  };
1219
1237
  return a ? /* @__PURE__ */ V("div", {
1220
1238
  ...o,
1221
- className: f(it.colorPicker, e),
1222
- children: /* @__PURE__ */ V(ft, {
1239
+ className: f(ot.colorPicker, e),
1240
+ children: /* @__PURE__ */ V(mt, {
1223
1241
  ...j,
1224
1242
  showInput: r
1225
1243
  })
1226
1244
  }) : /* @__PURE__ */ H("div", {
1227
1245
  ...o,
1228
- className: f(it.colorPicker, e),
1229
- children: [/* @__PURE__ */ V(et, {
1246
+ className: f(ot.colorPicker, e),
1247
+ children: [/* @__PURE__ */ V(nt, {
1230
1248
  isOpen: s,
1231
1249
  onOpenChange: c,
1232
1250
  dontCloseOnChildClick: !0,
1233
- align: Qe.Left,
1234
- content: /* @__PURE__ */ V(ft, { ...j }),
1251
+ align: et.Left,
1252
+ content: /* @__PURE__ */ V(mt, { ...j }),
1235
1253
  children: /* @__PURE__ */ H(Ie, {
1236
- className: it.swatch,
1254
+ className: ot.swatch,
1237
1255
  children: [/* @__PURE__ */ V("div", {
1238
- className: it.swatchFill,
1256
+ className: ot.swatchFill,
1239
1257
  style: { background: k }
1240
1258
  }), /* @__PURE__ */ V("span", {
1241
- className: it.swatchHex,
1259
+ className: ot.swatchHex,
1242
1260
  children: A
1243
1261
  })]
1244
1262
  })
1245
- }), r && /* @__PURE__ */ V(dt, {
1263
+ }), r && /* @__PURE__ */ V(pt, {
1246
1264
  hex: A,
1247
1265
  onChange: (e) => n?.(e),
1248
1266
  useInputComponent: !0
1249
1267
  })]
1250
1268
  });
1251
1269
  }
1252
- var ht = {
1270
+ var _t = {
1253
1271
  modal: "modal_L-Fkd",
1254
1272
  slideIn: "slideIn_RVIHR",
1255
1273
  fadeIn: "fadeIn_XSuIE",
@@ -1264,26 +1282,26 @@ var ht = {
1264
1282
  };
1265
1283
  //#endregion
1266
1284
  //#region package/common/modal/modal.tsx
1267
- function gt({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = () => null, className: i = "", style: o, hideHeader: s = !1, classNames: c, styles: l }) {
1285
+ function vt({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = () => null, className: i = "", style: o, hideHeader: s = !1, classNames: c, styles: l }) {
1268
1286
  let [u, m] = d(n), [h, g] = d(n);
1269
1287
  return a(() => {
1270
1288
  n ? (m(n), setTimeout(() => g(!0), 1)) : (g(!1), setTimeout(() => m(n), 300));
1271
1289
  }, [n]), u ? /* @__PURE__ */ V(ze, { children: /* @__PURE__ */ H("div", {
1272
- className: f(ht.modalContainer, c?.container),
1290
+ className: f(_t.modalContainer, c?.container),
1273
1291
  style: l?.container,
1274
1292
  children: [/* @__PURE__ */ V("div", {
1275
- className: f(ht.modalWrapper, h && ht.modalWrapperShown, c?.backdrop),
1293
+ className: f(_t.modalWrapper, h && _t.modalWrapperShown, c?.backdrop),
1276
1294
  style: l?.backdrop,
1277
1295
  onClick: r
1278
1296
  }), h && /* @__PURE__ */ H("div", {
1279
- className: f(ht.modal, h && ht.modalShown, i, c?.modal),
1297
+ className: f(_t.modal, h && _t.modalShown, i, c?.modal),
1280
1298
  style: {
1281
1299
  ...o,
1282
1300
  ...l?.modal
1283
1301
  },
1284
1302
  onClick: (e) => e.stopPropagation(),
1285
1303
  children: [!s && /* @__PURE__ */ H("div", {
1286
- className: f(ht.modalHeader, c?.header),
1304
+ className: f(_t.modalHeader, c?.header),
1287
1305
  style: l?.header,
1288
1306
  children: [/* @__PURE__ */ V("div", {
1289
1307
  className: c?.title,
@@ -1301,7 +1319,7 @@ function gt({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = ()
1301
1319
  }
1302
1320
  //#endregion
1303
1321
  //#region package/common/confirmModal/confirmModal.tsx
1304
- function _t({ children: e = null, className: t = "", onClose: n = () => {}, onConfirm: r = () => {}, title: i = "", content: a = null, isOpen: o = void 0, actionButtonsProps: s = {} }) {
1322
+ function yt({ children: e = null, className: t = "", onClose: n = () => {}, onConfirm: r = () => {}, title: i = "", content: a = null, isOpen: o = void 0, actionButtonsProps: s = {} }) {
1305
1323
  let [c, l] = d(!1), [u, f] = d(!1);
1306
1324
  function p(e = !1) {
1307
1325
  l(!1), n(e);
@@ -1314,7 +1332,7 @@ function _t({ children: e = null, className: t = "", onClose: n = () => {}, onCo
1314
1332
  f(!1);
1315
1333
  }
1316
1334
  }
1317
- let h = /* @__PURE__ */ H(gt, {
1335
+ let h = /* @__PURE__ */ H(vt, {
1318
1336
  title: i,
1319
1337
  isOpen: o === void 0 ? c : o,
1320
1338
  onClose: () => p(),
@@ -1335,7 +1353,7 @@ function _t({ children: e = null, className: t = "", onClose: n = () => {}, onCo
1335
1353
  }), h]
1336
1354
  }) : h;
1337
1355
  }
1338
- var vt = {
1356
+ var bt = {
1339
1357
  "datePickerMonth-item": "datePickerMonth-item_30WWy",
1340
1358
  datePickerMonthItem: "datePickerMonth-item_30WWy",
1341
1359
  "datePickerMonth-content": "datePickerMonth-content_9bbSs",
@@ -1354,7 +1372,7 @@ var vt = {
1354
1372
  datePickerMonthDayDisabled: "datePickerMonth-day-disabled_4t0Ci",
1355
1373
  "datePickerMonth-placeholder": "datePickerMonth-placeholder_gy1Yx",
1356
1374
  datePickerMonthPlaceholder: "datePickerMonth-placeholder_gy1Yx"
1357
- }, yt = [
1375
+ }, xt = [
1358
1376
  "de_AT",
1359
1377
  "de_CH",
1360
1378
  "de_DE",
@@ -1362,10 +1380,10 @@ var vt = {
1362
1380
  "en_GB",
1363
1381
  "de",
1364
1382
  "en"
1365
- ], bt = "en_US", xt = () => {
1366
- let e = navigator.languages[0]?.replace("-", "_") || bt;
1367
- return yt.includes(e) ? e === "en_GB" || e === "en" ? "en_US" : e === "de" ? "de_DE" : e : bt;
1368
- }, St = (e) => {
1383
+ ], St = "en_US", Ct = () => {
1384
+ let e = navigator.languages[0]?.replace("-", "_") || St;
1385
+ return xt.includes(e) ? e === "en_GB" || e === "en" ? "en_US" : e === "de" ? "de_DE" : e : St;
1386
+ }, wt = (e) => {
1369
1387
  switch (e) {
1370
1388
  case "en_US":
1371
1389
  case "en_GB": return "en";
@@ -1374,47 +1392,47 @@ var vt = {
1374
1392
  case "de_AT": return "de";
1375
1393
  default: return "de";
1376
1394
  }
1377
- }, Ct = xt();
1378
- async function wt(e) {
1379
- Ct = e;
1395
+ }, Tt = Ct();
1396
+ async function Et(e) {
1397
+ Tt = e;
1380
1398
  }
1381
- function Tt(e = "_") {
1382
- return Ct.replace("_", e);
1399
+ function Dt(e = "_") {
1400
+ return Tt.replace("_", e);
1383
1401
  }
1384
1402
  //#endregion
1385
1403
  //#region package/common/datePicker/dateFunctions.ts
1386
- function Et(e, t) {
1404
+ function Ot(e, t) {
1387
1405
  return new Date(t, e, 0).getDate();
1388
1406
  }
1389
- function Dt(e, t, n) {
1407
+ function kt(e, t, n) {
1390
1408
  return new Date(Date.UTC(n, t - 1, e));
1391
1409
  }
1392
- function Ot(e, t, n, r, i = !1) {
1410
+ function At(e, t, n, r, i = !1) {
1393
1411
  return new Date(Date.UTC(t, n - 1, r)).toLocaleDateString(e, { month: i ? "short" : "long" });
1394
1412
  }
1395
- function kt(e = Tt("-")) {
1396
- return Array.from(Array(12).keys()).map((t) => Ot(e, 2023, t + 1, 1));
1413
+ function jt(e = Dt("-")) {
1414
+ return Array.from(Array(12).keys()).map((t) => At(e, 2023, t + 1, 1));
1397
1415
  }
1398
- function At(e, t = !0) {
1416
+ function Mt(e, t = !0) {
1399
1417
  let n = new Date(Date.UTC(2023, 3, 10)), r = [];
1400
1418
  for (let i = 0; i < 7; i++) r.push(n.toLocaleDateString(e, { weekday: t ? "short" : "long" })), n.setDate(n.getDate() + 1);
1401
1419
  return r;
1402
1420
  }
1403
- function jt(e, t) {
1421
+ function Nt(e, t) {
1404
1422
  return new Date(Date.UTC(t, e - 1, 1)).getDay() || 7;
1405
1423
  }
1406
- function Mt(e) {
1424
+ function Pt(e) {
1407
1425
  return {
1408
1426
  day: e.getDate(),
1409
1427
  month: e.getMonth() + 1,
1410
1428
  year: e.getFullYear()
1411
1429
  };
1412
1430
  }
1413
- function Nt(e) {
1431
+ function Ft(e) {
1414
1432
  let t = e.getDate(), n = e.getMonth() + 1, r = e.getFullYear();
1415
1433
  return `${t < 10 ? `0${t}` : t}.${n < 10 ? `0${n}` : n}.${r}`;
1416
1434
  }
1417
- function Pt(e, t, n) {
1435
+ function It(e, t, n) {
1418
1436
  let r = e, i = n;
1419
1437
  return r[0] !== "_" && (r[0] > "3" ? (r = `0${r[0]}${t.substring(2)}`, i = {
1420
1438
  start: 3,
@@ -1432,18 +1450,18 @@ function Pt(e, t, n) {
1432
1450
  }
1433
1451
  //#endregion
1434
1452
  //#region package/common/datePicker/components/datePickerMonth/datePickerMonth.tsx
1435
- function Ft(e, t, n, r, i) {
1436
- let { day: a, month: o, year: s } = r ? Mt(r) : {
1453
+ function Lt(e, t, n, r, i) {
1454
+ let { day: a, month: o, year: s } = r ? Pt(r) : {
1437
1455
  day: void 0,
1438
1456
  month: void 0,
1439
1457
  year: void 0
1440
- }, { day: c, month: l, year: u } = i ? Mt(i) : {
1458
+ }, { day: c, month: l, year: u } = i ? Pt(i) : {
1441
1459
  day: void 0,
1442
1460
  month: void 0,
1443
1461
  year: void 0
1444
- }, d = Dt(e, t, n), f = e === a && t === o && n === s, p = e === c && t === l && n === u, m = !1;
1462
+ }, d = kt(e, t, n), f = e === a && t === o && n === s, p = e === c && t === l && n === u, m = !1;
1445
1463
  if (a !== void 0 && o !== void 0 && s !== void 0 && c !== void 0 && l !== void 0 && u !== void 0) {
1446
- let e = Dt(a, o, s), t = Dt(c, l, u);
1464
+ let e = kt(a, o, s), t = kt(c, l, u);
1447
1465
  m = d.getTime() >= e.getTime() && d.getTime() <= t.getTime();
1448
1466
  }
1449
1467
  return {
@@ -1452,54 +1470,54 @@ function Ft(e, t, n, r, i) {
1452
1470
  isEndDate: p
1453
1471
  };
1454
1472
  }
1455
- function It(e, t, n, r, i) {
1456
- let a = Dt(e, t, n);
1473
+ function Rt(e, t, n, r, i) {
1474
+ let a = kt(e, t, n);
1457
1475
  if (r) {
1458
- let { day: e, month: t, year: n } = Mt(r);
1459
- if (a < Dt(e, t, n)) return !0;
1476
+ let { day: e, month: t, year: n } = Pt(r);
1477
+ if (a < kt(e, t, n)) return !0;
1460
1478
  }
1461
1479
  if (i) {
1462
- let { day: e, month: t, year: n } = Mt(i);
1463
- if (a > Dt(e, t, n)) return !0;
1480
+ let { day: e, month: t, year: n } = Pt(i);
1481
+ if (a > kt(e, t, n)) return !0;
1464
1482
  }
1465
1483
  return !1;
1466
1484
  }
1467
- function Lt(e, t, n) {
1468
- let { day: r, month: i, year: a } = Mt(/* @__PURE__ */ new Date());
1485
+ function zt(e, t, n) {
1486
+ let { day: r, month: i, year: a } = Pt(/* @__PURE__ */ new Date());
1469
1487
  return e === r && t === i && n === a;
1470
1488
  }
1471
- function Rt({ className: e = "", month: t = (/* @__PURE__ */ new Date()).getMonth() + 1, year: n = (/* @__PURE__ */ new Date()).getFullYear(), onSelect: r = () => null, selectionStart: i, selectionEnd: a, minDate: o = null, maxDate: s = null }) {
1472
- let c = Tt("-"), l = Et(t, n), u = jt(t, n);
1489
+ function Bt({ className: e = "", month: t = (/* @__PURE__ */ new Date()).getMonth() + 1, year: n = (/* @__PURE__ */ new Date()).getFullYear(), onSelect: r = () => null, selectionStart: i, selectionEnd: a, minDate: o = null, maxDate: s = null }) {
1490
+ let c = Dt("-"), l = Ot(t, n), u = Nt(t, n);
1473
1491
  return /* @__PURE__ */ V("div", {
1474
- className: f(vt.datePickerMonth, e),
1492
+ className: f(bt.datePickerMonth, e),
1475
1493
  children: /* @__PURE__ */ H("div", {
1476
- className: f(vt.datePickerMonthContent),
1494
+ className: f(bt.datePickerMonthContent),
1477
1495
  children: [
1478
- At(c).map((e, t) => /* @__PURE__ */ V("div", { children: e }, t)),
1479
- Array.from(Array(u - 1).keys()).map((e) => /* @__PURE__ */ V("div", { className: f(vt.datePickerMonthItem, vt.datePickerMonthPlaceholder) }, e)),
1496
+ Mt(c).map((e, t) => /* @__PURE__ */ V("div", { children: e }, t)),
1497
+ Array.from(Array(u - 1).keys()).map((e) => /* @__PURE__ */ V("div", { className: f(bt.datePickerMonthItem, bt.datePickerMonthPlaceholder) }, e)),
1480
1498
  Array.from(Array(l).keys()).map((e) => {
1481
- let c = e + 1, l = Ft(c, t, n, i, a), u = It(c, t, n, o, s), d = Lt(c, t, n);
1499
+ let c = e + 1, l = Lt(c, t, n, i, a), u = Rt(c, t, n, o, s), d = zt(c, t, n);
1482
1500
  return /* @__PURE__ */ V(Ie, {
1483
- onClick: () => u ? null : r(Dt(c, t, n)),
1484
- className: f(vt.datePickerMonthDay, vt.datePickerMonthItem, {
1485
- [vt.datePickerMonthDaySelected]: l.isInRange,
1486
- [vt.datePickerMonthDaySelectedStart]: l.isStartDate,
1487
- [vt.datePickerMonthDaySelectedEnd]: l.isEndDate,
1488
- [vt.datePickerMonthDayDisabled]: u,
1489
- [vt.datePickerMonthDayToday]: d
1501
+ onClick: () => u ? null : r(kt(c, t, n)),
1502
+ className: f(bt.datePickerMonthDay, bt.datePickerMonthItem, {
1503
+ [bt.datePickerMonthDaySelected]: l.isInRange,
1504
+ [bt.datePickerMonthDaySelectedStart]: l.isStartDate,
1505
+ [bt.datePickerMonthDaySelectedEnd]: l.isEndDate,
1506
+ [bt.datePickerMonthDayDisabled]: u,
1507
+ [bt.datePickerMonthDayToday]: d
1490
1508
  }),
1491
1509
  children: c
1492
1510
  }, c);
1493
1511
  }),
1494
1512
  Array.from(Array(42 - (u + l - 1)).keys()).map((e) => /* @__PURE__ */ V("div", {
1495
- className: f(vt.datePickerMonthItem, vt.datePickerMonthPlaceholder),
1513
+ className: f(bt.datePickerMonthItem, bt.datePickerMonthPlaceholder),
1496
1514
  children: "\xA0"
1497
1515
  }, e))
1498
1516
  ]
1499
1517
  })
1500
1518
  });
1501
1519
  }
1502
- var zt = {
1520
+ var Vt = {
1503
1521
  infiniteBlock: "infiniteBlock_dFv-h",
1504
1522
  "spinner-wrapper": "spinner-wrapper_hsgWz",
1505
1523
  spinnerWrapper: "spinner-wrapper_hsgWz",
@@ -1507,7 +1525,7 @@ var zt = {
1507
1525
  };
1508
1526
  //#endregion
1509
1527
  //#region package/common/infiniteBlock/infiniteBlock.tsx
1510
- function Bt(e, t) {
1528
+ function Ht(e, t) {
1511
1529
  let n = e;
1512
1530
  for (; n.props.children !== null && typeof n.props.children == "object" && !Array.isArray(n.props.children);) n = n.props.children;
1513
1531
  let r = n.props.children;
@@ -1520,11 +1538,11 @@ function Bt(e, t) {
1520
1538
  }
1521
1539
  return String(r).toLowerCase().startsWith(t);
1522
1540
  }
1523
- function Vt(e, t, n) {
1541
+ function Ut(e, t, n) {
1524
1542
  let r = e + t;
1525
1543
  return r === n ? 0 : r < -1 ? n - 1 : r;
1526
1544
  }
1527
- function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1, setHighlightedIndex: o = () => null }) {
1545
+ function Wt({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1, setHighlightedIndex: o = () => null }) {
1528
1546
  let s = u(null), c = u(!1), [l, p] = d(!1), m = u(-1), h = u(null), g = i(() => {
1529
1547
  let e = s.current;
1530
1548
  if (!e) return;
@@ -1538,12 +1556,12 @@ function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1538
1556
  let i = e.Children.toArray(t), a = m.current;
1539
1557
  switch (n.key) {
1540
1558
  case "ArrowDown":
1541
- a = Vt(a, 1, i.length);
1559
+ a = Ut(a, 1, i.length);
1542
1560
  break;
1543
1561
  case "ArrowUp":
1544
- a = Vt(a, -1, i.length);
1562
+ a = Ut(a, -1, i.length);
1545
1563
  break;
1546
- default: for (let e = 0; e < i.length; e++) if (Bt(i[e], n.key)) {
1564
+ default: for (let e = 0; e < i.length; e++) if (Ht(i[e], n.key)) {
1547
1565
  if (a >= e && h.current === n.key) continue;
1548
1566
  a = e;
1549
1567
  break;
@@ -1559,17 +1577,17 @@ function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1559
1577
  }
1560
1578
  }, [t, o]);
1561
1579
  return /* @__PURE__ */ H("div", {
1562
- className: f(zt.infiniteBlock, r),
1580
+ className: f(Vt.infiniteBlock, r),
1563
1581
  onScroll: g,
1564
1582
  onKeyDown: _,
1565
1583
  tabIndex: 0,
1566
1584
  ref: s,
1567
1585
  children: [a ? /* @__PURE__ */ V("div", {
1568
- className: zt.spinnerWrapper,
1569
- children: /* @__PURE__ */ V(Te, { className: zt.spinner })
1586
+ className: Vt.spinnerWrapper,
1587
+ children: /* @__PURE__ */ V(we, { className: Vt.spinner })
1570
1588
  }) : t, l && /* @__PURE__ */ V("div", {
1571
- className: zt.spinnerWrapper,
1572
- children: /* @__PURE__ */ V(Te, { className: zt.spinner })
1589
+ className: Vt.spinnerWrapper,
1590
+ children: /* @__PURE__ */ V(we, { className: Vt.spinner })
1573
1591
  })]
1574
1592
  });
1575
1593
  }
@@ -1643,8 +1661,8 @@ var Z = {
1643
1661
  };
1644
1662
  //#endregion
1645
1663
  //#region package/common/dropdown/dropdown.tsx
1646
- function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r = "", isValid: i = !0, tabIndex: o = 0, isRequired: s = !1, customProps: c = {}, isRow: l = !1, disabled: m = !1, onScroll: h = () => Promise.resolve(), isListOnTop: _ = !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: ee, ...L }) {
1647
- let [R, te] = d(!1), [ne, z] = d(!1), [, re] = d(0), B = u(k);
1664
+ function Gt({ errorMessage: e = "", className: t = "", label: n = "", value: r = "", isValid: i = !0, tabIndex: o = 0, isRequired: s = !1, customProps: c = {}, isRow: l = !1, disabled: m = !1, onScroll: h = () => Promise.resolve(), isListOnTop: _ = !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: ee, ...te }) {
1665
+ let [L, R] = d(!1), [ne, z] = d(!1), [, re] = d(0), B = u(k);
1648
1666
  a(() => {
1649
1667
  if (B.current = k, !B.current) return;
1650
1668
  B.current.label = n ?? "", B.current.validate();
@@ -1656,18 +1674,18 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1656
1674
  }, oe = (e) => {
1657
1675
  z(!1), C?.(e);
1658
1676
  }, U = (e) => {
1659
- te(!0), b?.(e);
1677
+ R(!0), b?.(e);
1660
1678
  }, se = (e) => {
1661
- B.current && (B.current.touched = !0), te(!1), x?.(e);
1679
+ B.current && (B.current.touched = !0), R(!1), x?.(e);
1662
1680
  }, W = () => k ? k.touched && k.hasError() : !i || !!e, ce = () => !!(s || k?.validators.find((e) => e.validatorId === "required")), le = (e) => {
1663
1681
  k ? (k.set(e), y?.(k.value, c)) : y?.(e, c);
1664
- }, ue = w, G = k ? k.value : r, K = W();
1682
+ }, G = w, ue = k ? k.value : r, K = W();
1665
1683
  M.forEach((e) => {
1666
- e.key === G && (ue = e.label);
1684
+ e.key === ue && (G = e.label);
1667
1685
  });
1668
- let de = ue || G, fe = de == null || typeof de == "string" && de.trim() === "";
1686
+ let de = G || ue, q = de == null || typeof de == "string" && de.trim() === "";
1669
1687
  return /* @__PURE__ */ H("div", {
1670
- ...L,
1688
+ ...te,
1671
1689
  className: f(t, Z.dropdownLabel, Z.dropdown, { [Z.dropdownLabelColumn]: !l }),
1672
1690
  onMouseEnter: ie,
1673
1691
  onMouseLeave: oe,
@@ -1675,7 +1693,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1675
1693
  /* @__PURE__ */ V(ae, {
1676
1694
  onChange: (e) => le((e || { key: "" }).key),
1677
1695
  itemToString: (e) => e ? String(e.key) : "",
1678
- selectedItem: M.find((e) => e.key === G) ?? null,
1696
+ selectedItem: M.find((e) => e.key === ue) ?? null,
1679
1697
  stateReducer: (e, t) => I && Object.prototype.hasOwnProperty.call(t, "isOpen") ? {
1680
1698
  ...t,
1681
1699
  highlightedIndex: t.isOpen ? M.indexOf(e.selectedItem) : null
@@ -1699,7 +1717,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1699
1717
  t().onClick?.(e), v?.(e);
1700
1718
  },
1701
1719
  ref: ee,
1702
- children: fe ? "\xA0" : de
1720
+ children: q ? "\xA0" : de
1703
1721
  }),
1704
1722
  /* @__PURE__ */ V("button", {
1705
1723
  type: "button",
@@ -1715,7 +1733,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1715
1733
  className: f(Z.dropdownInputButtonIconArrow, { [Z.dropdownInputButtonIconArrowOpen]: r })
1716
1734
  })
1717
1735
  }),
1718
- !m && r ? /* @__PURE__ */ V(Ht, {
1736
+ !m && r ? /* @__PURE__ */ V(Wt, {
1719
1737
  onScroll: h,
1720
1738
  className: f(Z.dropdownInputList, {
1721
1739
  [Z.dropdownInputListOnTop]: _,
@@ -1739,21 +1757,21 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1739
1757
  /* @__PURE__ */ V("fieldset", {
1740
1758
  className: f(Z.dropdownFieldset, {
1741
1759
  [Z.dropdownBorderPlain]: F,
1742
- [Z.dropdownBorderFocused]: R,
1760
+ [Z.dropdownBorderFocused]: L,
1743
1761
  [Z.dropdownBorderInvalid]: K,
1744
1762
  [Z.dropdownBorderError]: K
1745
1763
  }),
1746
1764
  children: /* @__PURE__ */ V("legend", {
1747
- className: f(Z.dropdownFieldsetLegend, { [Z.dropdownFieldsetLegendActive]: N && (R || !fe) }),
1765
+ className: f(Z.dropdownFieldsetLegend, { [Z.dropdownFieldsetLegendActive]: N && (L || !q) }),
1748
1766
  children: /* @__PURE__ */ V("span", { children: n })
1749
1767
  })
1750
1768
  }),
1751
1769
  N && n && /* @__PURE__ */ V("div", {
1752
- className: f(Z.dropdownMatLabel, { [Z.dropdownMatLabelFloating]: R || !fe }),
1770
+ className: f(Z.dropdownMatLabel, { [Z.dropdownMatLabelFloating]: L || !q }),
1753
1771
  children: n
1754
1772
  }),
1755
1773
  N && P && /* @__PURE__ */ V("div", {
1756
- className: f(Z.dropdownPlaceholder, R && !ue && Z.dropdownPlaceholderShown),
1774
+ className: f(Z.dropdownPlaceholder, L && !G && Z.dropdownPlaceholderShown),
1757
1775
  children: P
1758
1776
  })
1759
1777
  ]
@@ -1766,15 +1784,15 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1766
1784
  children: "*"
1767
1785
  }) : null]
1768
1786
  }),
1769
- /* @__PURE__ */ V(nt, {
1787
+ /* @__PURE__ */ V(it, {
1770
1788
  variant: "error",
1771
1789
  message: k ? k.getCurrentErrorMessage() : e || "",
1772
- isVisible: K && (R || ne)
1790
+ isVisible: K && (L || ne)
1773
1791
  })
1774
1792
  ]
1775
1793
  });
1776
1794
  }
1777
- var Wt = {
1795
+ var Kt = {
1778
1796
  datePicker: "datePicker_ZohTp",
1779
1797
  "datePicker-header": "datePicker-header_YmSWE",
1780
1798
  datePickerHeader: "datePicker-header_YmSWE",
@@ -1791,23 +1809,23 @@ var Wt = {
1791
1809
  };
1792
1810
  //#endregion
1793
1811
  //#region package/common/datePicker/datePicker.tsx
1794
- function Gt({ 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: p = null, maxDate: m = null, children: h = null, showClearButton: g = !1, label: y = "", isValid: b = !0, errorMessage: x = "", isRequired: S = !1, startDate: C, endDate: w }) {
1795
- let T = () => r ? r.value : t, E = T() ?? /* @__PURE__ */ new Date(), [D, O] = d(E.getMonth() + 1), [k, A] = d(E.getFullYear()), [j, M] = d(!1), [N, P] = d(() => T() ? Nt(E) : ""), [F, I] = d(!1), [ee, L] = d(!1), [, R] = d(0), [te, ne] = d(t), z = u(r);
1796
- if (te !== t) {
1812
+ function qt({ 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: p = null, maxDate: m = null, children: h = null, showClearButton: g = !1, label: y = "", isValid: b = !0, errorMessage: x = "", isRequired: S = !1, startDate: C, endDate: w }) {
1813
+ let T = () => r ? r.value : t, E = T() ?? /* @__PURE__ */ new Date(), [D, O] = d(E.getMonth() + 1), [k, A] = d(E.getFullYear()), [j, M] = d(!1), [N, P] = d(() => T() ? Ft(E) : ""), [F, I] = d(!1), [ee, te] = d(!1), [, L] = d(0), [R, ne] = d(t), z = u(r);
1814
+ if (R !== t) {
1797
1815
  ne(t);
1798
1816
  let e = t ?? /* @__PURE__ */ new Date();
1799
- O(e.getMonth() + 1), A(e.getFullYear()), P(t ? Nt(t) : "");
1817
+ O(e.getMonth() + 1), A(e.getFullYear()), P(t ? Ft(t) : "");
1800
1818
  }
1801
1819
  a(() => {
1802
1820
  if (z.current = r, !r) return;
1803
1821
  let e = () => {
1804
1822
  let e = r.value;
1805
- e ? (O(e.getMonth() + 1), A(e.getFullYear()), P(Nt(e))) : P(""), R((e) => e + 1);
1823
+ e ? (O(e.getMonth() + 1), A(e.getFullYear()), P(Ft(e))) : P(""), L((e) => e + 1);
1806
1824
  };
1807
1825
  return r.registerOnUpdateListener(e), () => r.removeOnUpdateListener(e);
1808
1826
  }, [r]);
1809
1827
  let re = () => r ? r.touched && r.hasError() : !b || !!x, ie = () => !!(S || r?.validators.find((e) => e.validatorId === "required")), ae = (e) => {
1810
- P(e ? Nt(e) : ""), r && r.set(e), l(e);
1828
+ P(e ? Ft(e) : ""), r && r.set(e), l(e);
1811
1829
  }, U = (e) => {
1812
1830
  ae(e), n(e), M(!1);
1813
1831
  }, se = (e) => {
@@ -1817,13 +1835,13 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1817
1835
  });
1818
1836
  }, W = (e) => {
1819
1837
  if (e.match(/\d{2}\.\d{2}\.\d{4}/gi)) {
1820
- let [t, n, r] = e.split("."), i = Dt(Number(t), Number(n), Number(r));
1838
+ let [t, n, r] = e.split("."), i = kt(Number(t), Number(n), Number(r));
1821
1839
  if (i && i.toString() !== "Invalid Date" && (!m || i <= m) && (!p || i >= p)) return i;
1822
1840
  }
1823
1841
  return null;
1824
1842
  }, ce = ({ previousState: e, nextState: t }) => {
1825
1843
  if (!e || t.value === e.value) return t;
1826
- let n = Pt(t.value, e.value, t.selection ?? null), r = W(n.value);
1844
+ let n = It(t.value, e.value, t.selection ?? null), r = W(n.value);
1827
1845
  return r && ae(r), n;
1828
1846
  }, le = () => {
1829
1847
  let e = 400, t = (/* @__PURE__ */ new Date()).getFullYear() - 200;
@@ -1831,33 +1849,33 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1831
1849
  key: e + t,
1832
1850
  label: e + t
1833
1851
  }));
1834
- }, ue = T(), G = re(), K = /* @__PURE__ */ H(B, { children: [
1852
+ }, G = T(), ue = re(), K = /* @__PURE__ */ H(B, { children: [
1835
1853
  o ? null : /* @__PURE__ */ H("div", {
1836
- className: Wt.datePickerHeader,
1854
+ className: Kt.datePickerHeader,
1837
1855
  children: [
1838
1856
  /* @__PURE__ */ V(Re, {
1839
1857
  icon: _,
1840
1858
  onClick: () => se(-1)
1841
1859
  }),
1842
1860
  /* @__PURE__ */ V("div", {
1843
- className: Wt.datePickerHeaderMonthAndYearContainer,
1861
+ className: Kt.datePickerHeaderMonthAndYearContainer,
1844
1862
  children: /* @__PURE__ */ H("div", {
1845
- className: Wt.datePickerHeaderMonthAndYear,
1846
- children: [/* @__PURE__ */ V(Ut, {
1863
+ className: Kt.datePickerHeaderMonthAndYear,
1864
+ children: [/* @__PURE__ */ V(Gt, {
1847
1865
  plainStyle: !0,
1848
1866
  scrollToSelected: !0,
1849
1867
  onChange: (e) => O(e),
1850
- className: Wt.datePickerHeaderMonth,
1851
- value: Ot(Tt("-"), k, D, 1),
1852
- items: kt().map((e, t) => ({
1868
+ className: Kt.datePickerHeaderMonth,
1869
+ value: At(Dt("-"), k, D, 1),
1870
+ items: jt().map((e, t) => ({
1853
1871
  key: t + 1,
1854
1872
  label: e
1855
1873
  }))
1856
- }), /* @__PURE__ */ V(Ut, {
1874
+ }), /* @__PURE__ */ V(Gt, {
1857
1875
  plainStyle: !0,
1858
1876
  scrollToSelected: !0,
1859
1877
  useMatLabelStyle: !1,
1860
- className: Wt.datePickerHeaderYear,
1878
+ className: Kt.datePickerHeaderYear,
1861
1879
  onChange: (e) => A(e),
1862
1880
  value: k,
1863
1881
  items: le()
@@ -1870,22 +1888,22 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1870
1888
  })
1871
1889
  ]
1872
1890
  }),
1873
- /* @__PURE__ */ V(Rt, {
1874
- className: Wt.datePickerMonth,
1891
+ /* @__PURE__ */ V(Bt, {
1892
+ className: Kt.datePickerMonth,
1875
1893
  month: D,
1876
1894
  year: k,
1877
1895
  onSelect: U,
1878
- selectionStart: C ?? ue,
1879
- selectionEnd: w ?? ue,
1896
+ selectionStart: C ?? G,
1897
+ selectionEnd: w ?? G,
1880
1898
  minDate: p,
1881
1899
  maxDate: m
1882
1900
  }),
1883
- g && /* @__PURE__ */ V(J, {
1901
+ g && /* @__PURE__ */ V(Me, {
1884
1902
  onClick: () => U(null),
1885
1903
  children: "Clear"
1886
1904
  }),
1887
1905
  h
1888
- ] }), de = i ? null : /* @__PURE__ */ V(rt, {
1906
+ ] }), de = i ? null : /* @__PURE__ */ V(at, {
1889
1907
  readOnly: s,
1890
1908
  label: `${y}${ie() ? " *" : ""}`,
1891
1909
  value: N,
@@ -1900,46 +1918,46 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1900
1918
  z.current && (z.current.touched = !0), I(!1), ae(W(N));
1901
1919
  },
1902
1920
  onFocus: () => I(!0),
1903
- onMouseEnter: () => L(!0),
1904
- onMouseLeave: () => L(!1),
1905
- isValid: !G
1906
- }), fe = c ? K : s ? /* @__PURE__ */ V(gt, {
1921
+ onMouseEnter: () => te(!0),
1922
+ onMouseLeave: () => te(!1),
1923
+ isValid: !ue
1924
+ }), q = c ? K : s ? /* @__PURE__ */ V(vt, {
1907
1925
  hideHeader: !0,
1908
1926
  isOpen: j,
1909
1927
  onClose: () => M(!1),
1910
1928
  children: K
1911
- }) : /* @__PURE__ */ V(et, {
1929
+ }) : /* @__PURE__ */ V(nt, {
1912
1930
  isOpen: j,
1913
1931
  onOpenChange: (e) => M(e),
1914
1932
  content: K,
1915
- align: Qe.Left,
1933
+ align: et.Left,
1916
1934
  dontCloseOnChildClick: !0,
1917
1935
  children: de
1918
1936
  });
1919
1937
  return /* @__PURE__ */ H("div", {
1920
- className: f(Wt.datePicker, e),
1938
+ className: f(Kt.datePicker, e),
1921
1939
  children: [
1922
1940
  (s || c) && de,
1923
- fe,
1924
- /* @__PURE__ */ V(nt, {
1941
+ q,
1942
+ /* @__PURE__ */ V(it, {
1925
1943
  variant: "error",
1926
1944
  message: r ? r.getCurrentErrorMessage() : x || "",
1927
- isVisible: G && (F || ee)
1945
+ isVisible: ue && (F || ee)
1928
1946
  })
1929
1947
  ]
1930
1948
  });
1931
1949
  }
1932
- var Kt = { emptyState: "emptyState_KXOIx" };
1950
+ var Jt = { emptyState: "emptyState_KXOIx" };
1933
1951
  //#endregion
1934
1952
  //#region package/common/emptyState/emptyState.tsx
1935
- function qt({ className: e, icon: t, children: n, ...r }) {
1953
+ function Yt({ className: e, icon: t, children: n, ...r }) {
1936
1954
  return /* @__PURE__ */ H("div", {
1937
1955
  ...r,
1938
- className: f(Kt.emptyState, e),
1956
+ className: f(Jt.emptyState, e),
1939
1957
  children: [t && /* @__PURE__ */ V(p, { icon: t }), /* @__PURE__ */ V("div", { children: n ?? "No entries available" })]
1940
1958
  });
1941
1959
  }
1942
- var Jt = {
1960
+ var Xt = {
1943
1961
  fab: "fab_hyAAa",
1944
1962
  "fab-content": "fab-content_IBiXm",
1945
1963
  fabContent: "fab-content_IBiXm",
@@ -1947,25 +1965,25 @@ var Jt = {
1947
1965
  fabContentContainer: "fab-content-container_FQD1x",
1948
1966
  "fab-size-mini": "fab-size-mini_KP9BD",
1949
1967
  fabSizeMini: "fab-size-mini_KP9BD"
1950
- }, Yt = {
1968
+ }, Zt = {
1951
1969
  default: null,
1952
- mini: Jt.fabSizeMini
1970
+ mini: Xt.fabSizeMini
1953
1971
  };
1954
- function Xt({ children: e = null, size: t = "default", className: n = "", styleType: r = Ee.Primary, onClick: i = () => {} }) {
1955
- return /* @__PURE__ */ V(J, {
1972
+ function Qt({ children: e = null, size: t = "default", className: n = "", styleType: r = Te.Primary, onClick: i = () => {} }) {
1973
+ return /* @__PURE__ */ V(Me, {
1956
1974
  styleType: r,
1957
- className: f(Jt.fab, Yt[t], n),
1975
+ className: f(Xt.fab, Zt[t], n),
1958
1976
  onClick: i,
1959
1977
  children: /* @__PURE__ */ V("div", {
1960
- className: Jt.fabContentContainer,
1978
+ className: Xt.fabContentContainer,
1961
1979
  children: /* @__PURE__ */ V("div", {
1962
- className: Jt.fabContent,
1980
+ className: Xt.fabContent,
1963
1981
  children: e
1964
1982
  })
1965
1983
  })
1966
1984
  });
1967
1985
  }
1968
- var Zt = {
1986
+ var $t = {
1969
1987
  fab: "fab_YI34X",
1970
1988
  appear: "appear_DL0wm",
1971
1989
  "fab-container": "fab-container_8uoYo",
@@ -1995,7 +2013,7 @@ var Zt = {
1995
2013
  };
1996
2014
  //#endregion
1997
2015
  //#region package/common/fab/fab.tsx
1998
- function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMenuEntryClicked: r = () => {}, onClick: i = () => {}, closeMenuOnEntryClicked: a = !0, ...o }) {
2016
+ function en({ children: e = null, size: t = "default", menuEntries: n = [], onMenuEntryClicked: r = () => {}, onClick: i = () => {}, closeMenuOnEntryClicked: a = !0, ...o }) {
1999
2017
  let [s, c] = d(!1);
2000
2018
  function l() {
2001
2019
  n.length > 0 && c((e) => !e), i();
@@ -2005,44 +2023,44 @@ function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMe
2005
2023
  }
2006
2024
  return /* @__PURE__ */ H("div", {
2007
2025
  ...o,
2008
- className: Zt.fabContainer,
2026
+ className: $t.fabContainer,
2009
2027
  children: [
2010
2028
  /* @__PURE__ */ V("div", {
2011
- className: f(Zt.fabMenuBackdrop, s && Zt.fabMenuBackdropOpen),
2029
+ className: f($t.fabMenuBackdrop, s && $t.fabMenuBackdropOpen),
2012
2030
  onClick: (e) => {
2013
2031
  e.stopPropagation(), c(!1);
2014
2032
  }
2015
2033
  }),
2016
2034
  /* @__PURE__ */ V("div", {
2017
2035
  onClick: (e) => e.stopPropagation(),
2018
- children: /* @__PURE__ */ V(Xt, {
2019
- className: Zt.fab,
2036
+ children: /* @__PURE__ */ V(Qt, {
2037
+ className: $t.fab,
2020
2038
  size: t,
2021
2039
  onClick: l,
2022
2040
  children: /* @__PURE__ */ H("div", {
2023
- className: f(Zt.fabIcon, s && Zt.fabIconMenuOpen),
2041
+ className: f($t.fabIcon, s && $t.fabIconMenuOpen),
2024
2042
  children: [/* @__PURE__ */ V("div", {
2025
- className: f(Zt.fabIconContent, !s && Zt.fabIconContentShown),
2043
+ className: f($t.fabIconContent, !s && $t.fabIconContentShown),
2026
2044
  children: e
2027
2045
  }), /* @__PURE__ */ V("div", {
2028
- className: f(Zt.fabIconContent, s && Zt.fabIconContentShown),
2046
+ className: f($t.fabIconContent, s && $t.fabIconContentShown),
2029
2047
  children: /* @__PURE__ */ V(p, { icon: I })
2030
2048
  })]
2031
2049
  })
2032
2050
  })
2033
2051
  }),
2034
2052
  /* @__PURE__ */ V("div", {
2035
- className: Zt.fabMenu,
2053
+ className: $t.fabMenu,
2036
2054
  children: n.map(({ id: e, label: t, icon: n }) => /* @__PURE__ */ H("div", {
2037
- className: f(Zt.fabMenuEntry, s && Zt.fabMenuEntryShown),
2055
+ className: f($t.fabMenuEntry, s && $t.fabMenuEntryShown),
2038
2056
  onClick: (t) => u(t, e),
2039
2057
  children: [t && /* @__PURE__ */ V("div", {
2040
- className: Zt.fabMenuEntryLabelContainer,
2058
+ className: $t.fabMenuEntryLabelContainer,
2041
2059
  children: /* @__PURE__ */ V("div", {
2042
- className: Zt.fabMenuEntryLabel,
2060
+ className: $t.fabMenuEntryLabel,
2043
2061
  children: t
2044
2062
  })
2045
- }), /* @__PURE__ */ V(Xt, {
2063
+ }), /* @__PURE__ */ V(Qt, {
2046
2064
  size: "mini",
2047
2065
  children: /* @__PURE__ */ V(p, { icon: n })
2048
2066
  })]
@@ -2051,7 +2069,7 @@ function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMe
2051
2069
  ]
2052
2070
  });
2053
2071
  }
2054
- var $t = {
2072
+ var tn = {
2055
2073
  iconPicker: "iconPicker_xJJmG",
2056
2074
  "iconPicker-label": "iconPicker-label_VEB2X",
2057
2075
  iconPickerLabel: "iconPicker-label_VEB2X",
@@ -2066,19 +2084,19 @@ var $t = {
2066
2084
  };
2067
2085
  //#endregion
2068
2086
  //#region package/common/iconPicker/iconPicker.tsx
2069
- function en(e) {
2087
+ function nn(e) {
2070
2088
  let { formValidator: t } = e;
2071
2089
  return t ? t.touched && t.hasError() : !1;
2072
2090
  }
2073
- function tn(e) {
2091
+ function rn(e) {
2074
2092
  let { isRequired: t, formValidator: n } = e;
2075
2093
  return !!(t || n?.validators.find((e) => e.validatorId === "required"));
2076
2094
  }
2077
- function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, formValidator: i = null, isRequired: a, className: o, style: s, classNames: c, styles: l, ...u }) {
2078
- let d = i ? i.value ?? null : t, m = en({
2095
+ function an({ data: e = [], selectedId: t = null, label: n = "", onChange: r, formValidator: i = null, isRequired: a, className: o, style: s, classNames: c, styles: l, ...u }) {
2096
+ let d = i ? i.value ?? null : t, m = nn({
2079
2097
  formValidator: i,
2080
2098
  isRequired: a
2081
- }), h = tn({
2099
+ }), h = rn({
2082
2100
  formValidator: i,
2083
2101
  isRequired: a
2084
2102
  });
@@ -2087,20 +2105,20 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2087
2105
  }
2088
2106
  return /* @__PURE__ */ H("div", {
2089
2107
  ...u,
2090
- className: f($t.iconPicker, { [$t.iconPickerError]: m }, c?.root, o),
2108
+ className: f(tn.iconPicker, { [tn.iconPickerError]: m }, c?.root, o),
2091
2109
  style: {
2092
2110
  ...l?.root,
2093
2111
  ...s
2094
2112
  },
2095
2113
  children: [n && /* @__PURE__ */ H("div", {
2096
- className: f($t.iconPickerLabel, c?.label),
2114
+ className: f(tn.iconPickerLabel, c?.label),
2097
2115
  style: l?.label,
2098
2116
  children: [n, h && " *"]
2099
2117
  }), /* @__PURE__ */ V("div", {
2100
- className: f($t.iconPickerItemContainer, c?.itemContainer),
2118
+ className: f(tn.iconPickerItemContainer, c?.itemContainer),
2101
2119
  style: l?.itemContainer,
2102
2120
  children: e.map(({ id: e, label: t, icon: n, customIcon: r }) => /* @__PURE__ */ H("div", {
2103
- className: f($t.iconPickerItem, { [$t.iconPickerItemSelected]: d === e }, c?.item),
2121
+ className: f(tn.iconPickerItem, { [tn.iconPickerItemSelected]: d === e }, c?.item),
2104
2122
  style: l?.item,
2105
2123
  title: t,
2106
2124
  tabIndex: 0,
@@ -2112,7 +2130,7 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2112
2130
  children: [
2113
2131
  n && /* @__PURE__ */ V(p, { icon: n }),
2114
2132
  r ?? null,
2115
- /* @__PURE__ */ V(Ae, {})
2133
+ /* @__PURE__ */ V(ke, {})
2116
2134
  ]
2117
2135
  }, e))
2118
2136
  })]
@@ -2120,14 +2138,14 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2120
2138
  }
2121
2139
  //#endregion
2122
2140
  //#region package/common/idleManager/idleManager.tsx
2123
- var rn = [
2141
+ var on = [
2124
2142
  "click",
2125
2143
  "mousemove",
2126
2144
  "keydown",
2127
2145
  "scroll",
2128
2146
  "touchstart"
2129
2147
  ];
2130
- function an({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n = !0 }) {
2148
+ function sn({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n = !0 }) {
2131
2149
  let [r, o] = d(!1), s = u(null), c = i(() => {
2132
2150
  s.current !== null && clearTimeout(s.current), o(!1), s.current = setTimeout(() => {
2133
2151
  o(!0);
@@ -2136,14 +2154,14 @@ function an({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n
2136
2154
  return a(() => {
2137
2155
  c();
2138
2156
  }, [c]), a(() => {
2139
- for (let e of rn) document.addEventListener(e, c);
2157
+ for (let e of on) document.addEventListener(e, c);
2140
2158
  return () => {
2141
- for (let e of rn) document.removeEventListener(e, c);
2159
+ for (let e of on) document.removeEventListener(e, c);
2142
2160
  s.current !== null && clearTimeout(s.current);
2143
2161
  };
2144
2162
  }, [c]), /* @__PURE__ */ V(B, { children: n && r && e });
2145
2163
  }
2146
- var on = {
2164
+ var cn = {
2147
2165
  inputDropdown: "inputDropdown_UdYMa",
2148
2166
  dropdown: "dropdown_-M5-x",
2149
2167
  "dropdown-shown": "dropdown-shown_H2rFU",
@@ -2157,15 +2175,15 @@ var on = {
2157
2175
  };
2158
2176
  //#endregion
2159
2177
  //#region package/common/inputDropdown/inputDropdown.tsx
2160
- function sn(e, t) {
2178
+ function ln(e, t) {
2161
2179
  return t ? t.value ?? "" : e ?? "";
2162
2180
  }
2163
- function cn(e, t) {
2181
+ function un(e, t) {
2164
2182
  let n = t.find((t) => t.value === e);
2165
2183
  return n ? n.label ?? n.value : e;
2166
2184
  }
2167
- function ln({ label: e = "", value: t = "", formValidator: n = null, items: r = [], className: a, style: o, classNames: s, styles: c, onSelect: l = () => null, onChange: p, placeholder: m = "", ...h }) {
2168
- let g = sn(t, n), [_, v] = d(() => cn(g, r)), [y, b] = d(g), [x, S] = d(!1), [C, w] = d(null), T = u(null);
2185
+ function dn({ label: e = "", value: t = "", formValidator: n = null, items: r = [], className: a, style: o, classNames: s, styles: c, onSelect: l = () => null, onChange: p, placeholder: m = "", ...h }) {
2186
+ let g = ln(t, n), [_, v] = d(() => un(g, r)), [y, b] = d(g), [x, S] = d(!1), [C, w] = d(null), T = u(null);
2169
2187
  if (g !== y) {
2170
2188
  b(g);
2171
2189
  let e = r.find((e) => e.value === g);
@@ -2192,7 +2210,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2192
2210
  ]);
2193
2211
  return /* @__PURE__ */ H("div", {
2194
2212
  ...h,
2195
- className: f(on.inputDropdown, s?.root, a),
2213
+ className: f(cn.inputDropdown, s?.root, a),
2196
2214
  style: {
2197
2215
  ...c?.root,
2198
2216
  ...o
@@ -2200,7 +2218,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2200
2218
  onFocus: D,
2201
2219
  onBlur: O,
2202
2220
  onKeyDown: A,
2203
- children: [/* @__PURE__ */ V(rt, {
2221
+ children: [/* @__PURE__ */ V(at, {
2204
2222
  label: e,
2205
2223
  value: _,
2206
2224
  onChange: (e) => {
@@ -2208,10 +2226,10 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2208
2226
  },
2209
2227
  placeholder: m
2210
2228
  }), /* @__PURE__ */ V("div", {
2211
- className: f(on.dropdown, { [on.dropdownShown]: x }, s?.dropdown),
2229
+ className: f(cn.dropdown, { [cn.dropdownShown]: x }, s?.dropdown),
2212
2230
  style: c?.dropdown,
2213
2231
  children: x && E.map((e, t) => /* @__PURE__ */ V("div", {
2214
- className: f(on.dropdownItem, C === t && on.dropdownItemHighlighted, s?.item),
2232
+ className: f(cn.dropdownItem, C === t && cn.dropdownItemHighlighted, s?.item),
2215
2233
  style: c?.item,
2216
2234
  onClick: () => k(e),
2217
2235
  children: e.label ?? e.value
@@ -2219,7 +2237,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2219
2237
  })]
2220
2238
  });
2221
2239
  }
2222
- var un = {
2240
+ var fn = {
2223
2241
  board: "board_6KRdw",
2224
2242
  column: "column_NrNeF",
2225
2243
  "column-empty": "column-empty_5KYsJ",
@@ -2237,15 +2255,15 @@ var un = {
2237
2255
  };
2238
2256
  //#endregion
2239
2257
  //#region package/common/kanbanBoard/KanbanItem.tsx
2240
- function dn({ id: e, children: t }) {
2241
- let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = fe({ id: e });
2258
+ function pn({ id: e, children: t }) {
2259
+ let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = q({ id: e });
2242
2260
  return /* @__PURE__ */ V("div", {
2243
2261
  ref: i,
2244
2262
  style: {
2245
- transform: me.Transform.toString(a),
2263
+ transform: pe.Transform.toString(a),
2246
2264
  transition: o
2247
2265
  },
2248
- className: f(un.item, s && un.itemDragging),
2266
+ className: f(fn.item, s && fn.itemDragging),
2249
2267
  ...n,
2250
2268
  ...r,
2251
2269
  children: t
@@ -2253,22 +2271,22 @@ function dn({ id: e, children: t }) {
2253
2271
  }
2254
2272
  //#endregion
2255
2273
  //#region package/common/kanbanBoard/KanbanColumn.tsx
2256
- function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a, classNames: o, styles: s }) {
2274
+ function mn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a, classNames: o, styles: s }) {
2257
2275
  let { setNodeRef: c, isOver: l } = le({ id: `column-${e}` });
2258
2276
  return /* @__PURE__ */ H("div", {
2259
- className: f(un.column, l && un.columnOver, n.length === 0 && un.columnEmpty, a),
2277
+ className: f(fn.column, l && fn.columnOver, n.length === 0 && fn.columnEmpty, a),
2260
2278
  children: [/* @__PURE__ */ V("div", {
2261
- className: f(un.columnHeader, o?.header),
2279
+ className: f(fn.columnHeader, o?.header),
2262
2280
  style: s?.header,
2263
2281
  children: t
2264
2282
  }), /* @__PURE__ */ V(K, {
2265
2283
  items: n,
2266
- strategy: pe,
2284
+ strategy: fe,
2267
2285
  children: /* @__PURE__ */ V("div", {
2268
2286
  ref: c,
2269
- className: f(un.columnItems, o?.items),
2287
+ className: f(fn.columnItems, o?.items),
2270
2288
  style: s?.items,
2271
- children: n.map((e) => /* @__PURE__ */ V(dn, {
2289
+ children: n.map((e) => /* @__PURE__ */ V(pn, {
2272
2290
  id: e,
2273
2291
  children: r[e] === void 0 ? null : i(r[e], e)
2274
2292
  }, e))
@@ -2278,8 +2296,8 @@ function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a
2278
2296
  }
2279
2297
  //#endregion
2280
2298
  //#region package/common/kanbanBoard/KanbanBoard.tsx
2281
- function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2282
- let [c, l] = d(null), [u, p] = d(null), m = G(ue(W, { activationConstraint: { distance: 8 } })), h = u ?? e;
2299
+ function hn({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2300
+ let [c, l] = d(null), [u, p] = d(null), m = ue(G(W, { activationConstraint: { distance: 8 } })), h = u ?? e;
2283
2301
  function g(e, t) {
2284
2302
  return e.findIndex((e) => e.itemIds.includes(t));
2285
2303
  }
@@ -2335,9 +2353,9 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2335
2353
  onDragOver: v,
2336
2354
  onDragEnd: y,
2337
2355
  children: [/* @__PURE__ */ V("div", {
2338
- className: f(un.board, i),
2356
+ className: f(fn.board, i),
2339
2357
  style: a,
2340
- children: h.map((e) => /* @__PURE__ */ V(fn, {
2358
+ children: h.map((e) => /* @__PURE__ */ V(mn, {
2341
2359
  id: e.id,
2342
2360
  title: e.title,
2343
2361
  itemIds: e.itemIds,
@@ -2345,13 +2363,13 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2345
2363
  renderItem: n
2346
2364
  }, e.id))
2347
2365
  }), /* @__PURE__ */ V(se, { children: c && t[c] !== void 0 ? /* @__PURE__ */ V("div", {
2348
- className: f(un.dragOverlay, o?.dragOverlay),
2366
+ className: f(fn.dragOverlay, o?.dragOverlay),
2349
2367
  style: s?.dragOverlay,
2350
2368
  children: n(t[c], c)
2351
2369
  }) : null })]
2352
2370
  });
2353
2371
  }
2354
- var mn = {
2372
+ var gn = {
2355
2373
  iconLoading: "iconLoading_wovj4",
2356
2374
  "spin-to-oblivion": "spin-to-oblivion_0tZtm",
2357
2375
  spinToOblivion: "spin-to-oblivion_0tZtm",
@@ -2366,39 +2384,39 @@ var mn = {
2366
2384
  };
2367
2385
  //#endregion
2368
2386
  //#region package/common/loading/iconLoading/iconLoading.tsx
2369
- function hn({ className: e = "" }) {
2387
+ function _n({ className: e = "" }) {
2370
2388
  return /* @__PURE__ */ V("div", {
2371
- className: f(mn.iconLoading, e),
2389
+ className: f(gn.iconLoading, e),
2372
2390
  children: /* @__PURE__ */ H("svg", {
2373
2391
  xmlns: "http://www.w3.org/2000/svg",
2374
2392
  viewBox: "-8 -1 16 14",
2375
2393
  children: [
2376
2394
  /* @__PURE__ */ V("path", {
2377
- className: mn.iconLoadingFirst,
2395
+ className: gn.iconLoadingFirst,
2378
2396
  d: "M 0 0 C 3 5 6 5 6 12",
2379
2397
  strokeWidth: "1.7",
2380
2398
  fill: "none"
2381
2399
  }),
2382
2400
  /* @__PURE__ */ V("path", {
2383
- className: mn.iconLoadingFirst,
2401
+ className: gn.iconLoadingFirst,
2384
2402
  d: "M 0 0 C -3 5 -6 5 -6 12",
2385
2403
  strokeWidth: "1.7",
2386
2404
  fill: "none"
2387
2405
  }),
2388
2406
  /* @__PURE__ */ V("path", {
2389
- className: mn.iconLoadingFirst,
2407
+ className: gn.iconLoadingFirst,
2390
2408
  d: "M 0 0 L 0 10",
2391
2409
  strokeWidth: "1.7",
2392
2410
  fill: "none"
2393
2411
  }),
2394
2412
  /* @__PURE__ */ V("path", {
2395
- className: mn.iconLoadingSecond,
2413
+ className: gn.iconLoadingSecond,
2396
2414
  d: "M 0.1 10 C -3 10 -4 10 -6 12",
2397
2415
  strokeWidth: "1.7",
2398
2416
  fill: "none"
2399
2417
  }),
2400
2418
  /* @__PURE__ */ V("path", {
2401
- className: mn.iconLoadingSecond,
2419
+ className: gn.iconLoadingSecond,
2402
2420
  d: "M -0.1 10 C 3 10 4 10 6 12",
2403
2421
  strokeWidth: "1.7",
2404
2422
  fill: "none"
@@ -2409,14 +2427,14 @@ function hn({ className: e = "" }) {
2409
2427
  }
2410
2428
  //#endregion
2411
2429
  //#region package/common/loading/iconLoading/index.ts
2412
- var gn = hn, _n = {
2430
+ var vn = _n, yn = {
2413
2431
  numberInput: "numberInput_7p2O3",
2414
2432
  arrows: "arrows_yjRlc",
2415
2433
  arrowBtn: "arrowBtn_DbJoa"
2416
2434
  };
2417
2435
  //#endregion
2418
2436
  //#region package/common/numberInput/numberInput.tsx
2419
- function vn({ 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: m, sign: h, showArrows: _ = !1, step: v = 1, onKeyDown: b, ...x }) {
2437
+ function bn({ 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: m, sign: h, showArrows: _ = !1, step: v = 1, onKeyDown: b, ...x }) {
2420
2438
  let S = n == null ? e : n.value, C = h != null && S != null ? Math.abs(Number(S)) : S, w = C == null ? "" : String(C);
2421
2439
  function T(e) {
2422
2440
  let r = e;
@@ -2438,16 +2456,16 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2438
2456
  b?.(e);
2439
2457
  }
2440
2458
  let O = h === "-" ? "-" : h === "+" ? "+" : l, k = _ ? /* @__PURE__ */ H("div", {
2441
- className: _n.arrows,
2459
+ className: yn.arrows,
2442
2460
  children: [/* @__PURE__ */ V(Ie, {
2443
- className: _n.arrowBtn,
2461
+ className: yn.arrowBtn,
2444
2462
  tabIndex: -1,
2445
2463
  onMouseDown: (e) => {
2446
2464
  e.preventDefault(), E(e.shiftKey ? v * 10 : v);
2447
2465
  },
2448
2466
  children: /* @__PURE__ */ V(p, { icon: y })
2449
2467
  }), /* @__PURE__ */ V(Ie, {
2450
- className: _n.arrowBtn,
2468
+ className: yn.arrowBtn,
2451
2469
  tabIndex: -1,
2452
2470
  onMouseDown: (e) => {
2453
2471
  e.preventDefault(), E(e.shiftKey ? -v * 10 : -v);
@@ -2455,9 +2473,9 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2455
2473
  children: /* @__PURE__ */ V(p, { icon: g })
2456
2474
  })]
2457
2475
  }) : null;
2458
- return /* @__PURE__ */ V(rt, {
2476
+ return /* @__PURE__ */ V(at, {
2459
2477
  label: r,
2460
- className: f(_n.numberInput, a),
2478
+ className: f(yn.numberInput, a),
2461
2479
  value: w,
2462
2480
  onChange: () => {},
2463
2481
  formValidator: null,
@@ -2465,7 +2483,7 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2465
2483
  errorMessage: n ? n.getCurrentErrorMessage() ?? "" : i ?? "",
2466
2484
  placeholder: m,
2467
2485
  suffix: k,
2468
- customInput: /* @__PURE__ */ V(he, {
2486
+ customInput: /* @__PURE__ */ V(me, {
2469
2487
  onValueChange: (e) => T(e.floatValue),
2470
2488
  allowNegative: h == null ? o : !1,
2471
2489
  decimalSeparator: s,
@@ -2481,7 +2499,7 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2481
2499
  }
2482
2500
  //#endregion
2483
2501
  //#region package/common/numberInput/index.ts
2484
- var yn = vn, bn = {
2502
+ var xn = bn, Sn = {
2485
2503
  optionPicker: "optionPicker_Yx82s",
2486
2504
  "optionPicker-chip": "optionPicker-chip_ywtvr",
2487
2505
  optionPickerChip: "optionPicker-chip_ywtvr",
@@ -2492,20 +2510,20 @@ var yn = vn, bn = {
2492
2510
  };
2493
2511
  //#endregion
2494
2512
  //#region package/common/optionPicker/optionPicker.tsx
2495
- function xn({ className: e = void 0, options: t, onChange: n, value: r, ...i }) {
2513
+ function Cn({ className: e = void 0, options: t, onChange: n, value: r, ...i }) {
2496
2514
  let a = t.findIndex((e) => e.key === r) * 100 / t.length;
2497
2515
  return /* @__PURE__ */ H("div", {
2498
2516
  ...i,
2499
- className: f(bn.optionPicker, e),
2517
+ className: f(Sn.optionPicker, e),
2500
2518
  children: [/* @__PURE__ */ V("div", {
2501
- className: bn.optionPickerChip,
2519
+ className: Sn.optionPickerChip,
2502
2520
  style: {
2503
2521
  left: `${a}%`,
2504
2522
  width: `${100 / t.length}%`
2505
2523
  }
2506
2524
  }), t.map((e) => /* @__PURE__ */ V(Ie, {
2507
2525
  onClick: (t) => n(e.key, t),
2508
- className: f(bn.optionPickerOption, e.key === r && bn.optionPickerOptionActive),
2526
+ className: f(Sn.optionPickerOption, e.key === r && Sn.optionPickerOptionActive),
2509
2527
  tabIndex: e.key === r ? -1 : 0,
2510
2528
  children: e.label
2511
2529
  }, e.key))]
@@ -2513,25 +2531,25 @@ function xn({ className: e = void 0, options: t, onChange: n, value: r, ...i })
2513
2531
  }
2514
2532
  //#endregion
2515
2533
  //#region package/hooks/useWindowSize.ts
2516
- var Sn = 768;
2517
- function Cn() {
2534
+ var wn = 768;
2535
+ function Tn() {
2518
2536
  let [e, t] = d(() => ({
2519
2537
  width: window.innerWidth,
2520
2538
  height: window.innerHeight,
2521
- isMobileSize: window.innerWidth < Sn
2539
+ isMobileSize: window.innerWidth < wn
2522
2540
  }));
2523
2541
  return a(() => {
2524
2542
  function e() {
2525
2543
  t({
2526
2544
  width: window.innerWidth,
2527
2545
  height: window.innerHeight,
2528
- isMobileSize: window.innerWidth < Sn
2546
+ isMobileSize: window.innerWidth < wn
2529
2547
  });
2530
2548
  }
2531
2549
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
2532
2550
  }, []), e;
2533
2551
  }
2534
- var wn = {
2552
+ var En = {
2535
2553
  overscroll: "overscroll_Ij750",
2536
2554
  "overscroll-header": "overscroll-header_S6vYc",
2537
2555
  overscrollHeader: "overscroll-header_S6vYc",
@@ -2542,8 +2560,8 @@ var wn = {
2542
2560
  };
2543
2561
  //#endregion
2544
2562
  //#region package/common/overscroll/overscroll.tsx
2545
- function Tn({ children: e = null, overscrollContent: t = null, overscrollContentDesktop: n = null, centerHeader: r = !0, min: o = 10, max: s = 80, start: c = 30, unit: l = "%", mobileOnly: d = !0, onScrollChange: p = () => {}, scrollDisabled: m = !1 }) {
2546
- let { isMobileSize: h, height: g } = Cn(), _ = u(null), v = u(null), y = u(null), b = u(!1), x = u(null), S = u(p);
2563
+ function Dn({ children: e = null, overscrollContent: t = null, overscrollContentDesktop: n = null, centerHeader: r = !0, min: o = 10, max: s = 80, start: c = 30, unit: l = "%", mobileOnly: d = !0, onScrollChange: p = () => {}, scrollDisabled: m = !1 }) {
2564
+ let { isMobileSize: h, height: g } = Tn(), _ = u(null), v = u(null), y = u(null), b = u(!1), x = u(null), S = u(p);
2547
2565
  S.current = p;
2548
2566
  let C = i((e) => {
2549
2567
  let t;
@@ -2601,15 +2619,15 @@ function Tn({ children: e = null, overscrollContent: t = null, overscrollContent
2601
2619
  if (d && !h) return n ? /* @__PURE__ */ H("div", { children: [n, e] }) : /* @__PURE__ */ V(B, { children: e });
2602
2620
  let k = l === "%" ? `${100 - o}%` : `calc(100% - ${o}px)`;
2603
2621
  return /* @__PURE__ */ H("div", {
2604
- className: wn.overscroll,
2622
+ className: En.overscroll,
2605
2623
  ref: _,
2606
2624
  onScroll: O,
2607
2625
  children: [/* @__PURE__ */ V("div", {
2608
- className: wn.overscrollHeaderContainer,
2626
+ className: En.overscrollHeaderContainer,
2609
2627
  style: { height: `${s}${l}` },
2610
2628
  ref: y,
2611
2629
  children: /* @__PURE__ */ V("div", {
2612
- className: f(wn.overscrollHeader, r && wn.overscrollHeaderCentered),
2630
+ className: f(En.overscrollHeader, r && En.overscrollHeaderCentered),
2613
2631
  ref: v,
2614
2632
  children: t
2615
2633
  })
@@ -2619,7 +2637,7 @@ function Tn({ children: e = null, overscrollContent: t = null, overscrollContent
2619
2637
  })]
2620
2638
  });
2621
2639
  }
2622
- var En = {
2640
+ var On = {
2623
2641
  progressBar: "progressBar_LO0sX",
2624
2642
  "progressBar-fill": "progressBar-fill_rt32j",
2625
2643
  progressBarFill: "progressBar-fill_rt32j",
@@ -2632,17 +2650,17 @@ var En = {
2632
2650
  };
2633
2651
  //#endregion
2634
2652
  //#region package/common/progressBar/progressBar.tsx
2635
- function Dn(e) {
2653
+ function kn(e) {
2636
2654
  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);
2637
2655
  return (.299 * n + .587 * r + .114 * i) / 255 > .5 ? "#000000" : "#ffffff";
2638
2656
  }
2639
- function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r = void 0, ...i }) {
2657
+ function An({ className: e = void 0, total: t = 100, progress: n = 0, style: r = void 0, ...i }) {
2640
2658
  function a() {
2641
2659
  let e = [];
2642
2660
  return Array.isArray(n) ? e.push(...n) : typeof n == "object" ? e.push(n) : e.push({ amount: n }), e.map((n, i) => {
2643
2661
  let a = t ? n.amount / t * 100 : 0;
2644
2662
  return /* @__PURE__ */ V("div", {
2645
- className: f(En.progressBarFill, i === e.length - 1 && En.progressBarFillEnd, n.class),
2663
+ className: f(On.progressBarFill, i === e.length - 1 && On.progressBarFillEnd, n.class),
2646
2664
  style: {
2647
2665
  width: `${a}%`,
2648
2666
  background: n.color || void 0,
@@ -2650,8 +2668,8 @@ function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r =
2650
2668
  },
2651
2669
  title: n.label ? `${n.label}: ${n.amount}` : void 0,
2652
2670
  children: n.label && /* @__PURE__ */ V("div", {
2653
- className: En.progressBarLabel,
2654
- style: n.color ? { color: Dn(n.color) } : {},
2671
+ className: On.progressBarLabel,
2672
+ style: n.color ? { color: kn(n.color) } : {},
2655
2673
  children: n.label
2656
2674
  })
2657
2675
  }, i);
@@ -2659,21 +2677,21 @@ function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r =
2659
2677
  }
2660
2678
  return /* @__PURE__ */ V("div", {
2661
2679
  ...i,
2662
- className: f(En.progressBar, e),
2680
+ className: f(On.progressBar, e),
2663
2681
  style: r,
2664
2682
  children: a()
2665
2683
  });
2666
2684
  }
2667
- function kn(e) {
2685
+ function jn(e) {
2668
2686
  return Math.round(e / 5) * 5;
2669
2687
  }
2670
- function An(e) {
2688
+ function Mn(e) {
2671
2689
  return {
2672
- x: kn(e.x),
2673
- y: kn(e.y)
2690
+ x: jn(e.x),
2691
+ y: jn(e.y)
2674
2692
  };
2675
2693
  }
2676
- function jn(e, t, n) {
2694
+ function Nn(e, t, n) {
2677
2695
  let r = n.createSVGPoint();
2678
2696
  r.x = e, r.y = t;
2679
2697
  let i = n.getScreenCTM();
@@ -2682,18 +2700,18 @@ function jn(e, t, n) {
2682
2700
  y: 0
2683
2701
  };
2684
2702
  let a = r.matrixTransform(i.inverse());
2685
- return An({
2703
+ return Mn({
2686
2704
  x: a.x,
2687
2705
  y: a.y
2688
2706
  });
2689
2707
  }
2690
- function Mn(e, t) {
2708
+ function Pn(e, t) {
2691
2709
  return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
2692
2710
  }
2693
- function Nn(e, t, n) {
2711
+ function Fn(e, t, n) {
2694
2712
  let r = n.x - t.x, i = n.y - t.y, a = r * r + i * i;
2695
2713
  if (a === 0) return {
2696
- dist: Mn(e, t),
2714
+ dist: Pn(e, t),
2697
2715
  t: 0
2698
2716
  };
2699
2717
  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;
@@ -2702,12 +2720,12 @@ function Nn(e, t, n) {
2702
2720
  t: o
2703
2721
  };
2704
2722
  }
2705
- function Pn(e, t) {
2723
+ function In(e, t) {
2706
2724
  let n = null;
2707
2725
  for (let r of t) {
2708
2726
  let t = r.points;
2709
2727
  for (let i = 0; i < t.length; i++) {
2710
- let a = t[i], o = t[(i + 1) % t.length], { dist: s, t: c } = Nn(e, a, o);
2728
+ let a = t[i], o = t[(i + 1) % t.length], { dist: s, t: c } = Fn(e, a, o);
2711
2729
  s <= 8 && (!n || s < n.dist) && (n = {
2712
2730
  roomId: r.id,
2713
2731
  wallIndex: i,
@@ -2718,7 +2736,7 @@ function Pn(e, t) {
2718
2736
  }
2719
2737
  return n;
2720
2738
  }
2721
- function Fn(e, t) {
2739
+ function Ln(e, t) {
2722
2740
  let n = !1;
2723
2741
  for (let r = 0, i = t.length - 1; r < t.length; i = r++) {
2724
2742
  let a = t[r].x, o = t[r].y, s = t[i].x, c = t[i].y;
@@ -2726,13 +2744,13 @@ function Fn(e, t) {
2726
2744
  }
2727
2745
  return n;
2728
2746
  }
2729
- function In(e) {
2747
+ function Rn(e) {
2730
2748
  return {
2731
2749
  x: e.reduce((e, t) => e + t.x, 0) / e.length,
2732
2750
  y: e.reduce((e, t) => e + t.y, 0) / e.length
2733
2751
  };
2734
2752
  }
2735
- function Ln(e, t, n, r) {
2753
+ function zn(e, t, n, r) {
2736
2754
  return [
2737
2755
  {
2738
2756
  x: e,
@@ -2752,7 +2770,7 @@ function Ln(e, t, n, r) {
2752
2770
  }
2753
2771
  ];
2754
2772
  }
2755
- function Rn(e, t, n, r) {
2773
+ function Bn(e, t, n, r) {
2756
2774
  let i = t.x - e.x, a = t.y - e.y, o = Math.sqrt(i * i + a * a);
2757
2775
  if (o < .001) return null;
2758
2776
  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);
@@ -2771,13 +2789,13 @@ function Rn(e, t, n, r) {
2771
2789
  }
2772
2790
  };
2773
2791
  }
2774
- function zn(e) {
2792
+ function Vn(e) {
2775
2793
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2776
2794
  }
2777
- function Bn(e) {
2795
+ function Hn(e) {
2778
2796
  return e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ") + " Z";
2779
2797
  }
2780
- function Vn(e, t) {
2798
+ function Un(e, t) {
2781
2799
  if (e.length < 2) return [];
2782
2800
  if (t.length === 0) return [e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ") + " Z"];
2783
2801
  let n = e.length, r = [], i = [`M ${e[0].x.toFixed(2)},${e[0].y.toFixed(2)}`];
@@ -2800,8 +2818,8 @@ function Vn(e, t) {
2800
2818
  }
2801
2819
  return r[0] = [...i, ...r[0].slice(1)], r.map((e) => e.join(" "));
2802
2820
  }
2803
- function Hn(e, t, n) {
2804
- let r = Rn(e, t, n.t, n.width);
2821
+ function Wn(e, t, n) {
2822
+ let r = Bn(e, t, n.t, n.width);
2805
2823
  if (!r) return "";
2806
2824
  let { p1: i, p2: a, perp: o } = r, s = {
2807
2825
  x: i.x + o.x * n.width,
@@ -2809,7 +2827,7 @@ function Hn(e, t, n) {
2809
2827
  };
2810
2828
  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(" ");
2811
2829
  }
2812
- function Un(e, t) {
2830
+ function Gn(e, t) {
2813
2831
  let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
2814
2832
  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);
2815
2833
  isFinite(n) || (n = 0, r = 0, i = 400, a = 300);
@@ -2819,10 +2837,10 @@ function Un(e, t) {
2819
2837
  (i - n + 10).toFixed(2),
2820
2838
  (a - r + 10).toFixed(2)
2821
2839
  ].join(" "), s = e.map((e) => {
2822
- let n = t.filter((t) => t.roomId === e.id), r = Vn(e.points, n), i = Bn(e.points), a = In(e.points), o = r.map((e) => ` <path d="${e}" />`).join("\n"), s = n.map((t) => {
2823
- let n = e.points[t.wallIndex], r = e.points[(t.wallIndex + 1) % e.points.length], i = Hn(n, r, t);
2840
+ let n = t.filter((t) => t.roomId === e.id), r = Un(e.points, n), i = Hn(e.points), a = Rn(e.points), o = r.map((e) => ` <path d="${e}" />`).join("\n"), s = n.map((t) => {
2841
+ let n = e.points[t.wallIndex], r = e.points[(t.wallIndex + 1) % e.points.length], i = Wn(n, r, t);
2824
2842
  return i ? ` <path d="${i}" fill="none" />` : "";
2825
- }).filter(Boolean).join("\n"), c = e.name ? ` <text fontSize="5" x="${a.x.toFixed(1)}" y="${a.y.toFixed(1)}">${zn(e.name)}</text>` : "";
2843
+ }).filter(Boolean).join("\n"), c = e.name ? ` <text fontSize="5" x="${a.x.toFixed(1)}" y="${a.y.toFixed(1)}">${Vn(e.name)}</text>` : "";
2826
2844
  return [
2827
2845
  ` <g id="${e.id}">`,
2828
2846
  o,
@@ -2841,7 +2859,7 @@ function Un(e, t) {
2841
2859
  "</svg>"
2842
2860
  ].join("\n");
2843
2861
  }
2844
- function Wn(e) {
2862
+ function Kn(e) {
2845
2863
  let t = [];
2846
2864
  for (let n of e.matchAll(/[ML]\s*([-\d.]+)[,\s]+([-\d.]+)/gi)) t.push({
2847
2865
  x: parseFloat(n[1]),
@@ -2849,14 +2867,14 @@ function Wn(e) {
2849
2867
  });
2850
2868
  return t;
2851
2869
  }
2852
- function Gn(e) {
2870
+ function qn(e) {
2853
2871
  let t = new DOMParser().parseFromString(e, "image/svg+xml"), n = [];
2854
2872
  return t.querySelectorAll("[id^=\"room\"]").forEach((e) => {
2855
2873
  let t = e.querySelector("[id=\"background\"]");
2856
2874
  if (!t) return;
2857
2875
  let r = t.getAttribute("d");
2858
2876
  if (!r) return;
2859
- let i = Wn(r);
2877
+ let i = Kn(r);
2860
2878
  if (i.length < 3) return;
2861
2879
  let a = e.querySelector("text")?.textContent?.trim() ?? "";
2862
2880
  n.push({
@@ -2866,8 +2884,8 @@ function Gn(e) {
2866
2884
  });
2867
2885
  }), n;
2868
2886
  }
2869
- function Kn(e, t) {
2870
- let n = Un(e, t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
2887
+ function Jn(e, t) {
2888
+ let n = Gn(e, t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
2871
2889
  a.href = i, a.download = "room-plan.svg", a.click(), URL.revokeObjectURL(i);
2872
2890
  }
2873
2891
  var Q = {
@@ -2942,20 +2960,20 @@ var Q = {
2942
2960
  polyCloseTarget: "polyCloseTarget_snjYx",
2943
2961
  polyVertex: "polyVertex_fw0nX",
2944
2962
  vertexHandle: "vertexHandle_-z7g5"
2945
- }, qn = 6, Jn = 5, Yn = 1.25, Xn = .25, Zn = 12, Qn = 0;
2946
- function $n(e) {
2947
- return Qn += 1, `${e}${Qn}`;
2963
+ }, Yn = 6, Xn = 5, Zn = 1.25, Qn = .25, $n = 12, er = 0;
2964
+ function tr(e) {
2965
+ return er += 1, `${e}${er}`;
2948
2966
  }
2949
- var er = {
2967
+ var nr = {
2950
2968
  select: "Drag inside to move · Drag corner to reshape · Click wall to add corner · Dbl-click corner to remove · Delete to erase",
2951
2969
  rect: "Drag to draw a rectangular room",
2952
2970
  polygon: "Click to place corners · Click first point or Enter to close · Esc to cancel"
2953
2971
  };
2954
- function tr({ className: e }) {
2972
+ function rr({ className: e }) {
2955
2973
  let [t, n] = d([]), [r, i] = d([]), [o, c] = d("rect"), [l, m] = d(null), [g, _] = d(null), [v, y] = d(null), [b, x] = d(null), [S, E] = d([]), [D, O] = d(null), [k, j] = d(1), [P, F] = d({
2956
2974
  x: 0,
2957
2975
  y: 0
2958
- }), I = u(null), ee = u(null), te = u(null), z = u(null), re = u(null), ie = u({
2976
+ }), I = u(null), ee = u(null), R = u(null), z = u(null), re = u(null), ie = u({
2959
2977
  rooms: t,
2960
2978
  doors: r,
2961
2979
  tool: o,
@@ -2979,7 +2997,7 @@ function tr({ className: e }) {
2979
2997
  });
2980
2998
  function ae(e) {
2981
2999
  e.length < 3 || (n((t) => [...t, {
2982
- id: $n("room"),
3000
+ id: tr("room"),
2983
3001
  name: `Room ${t.length + 1}`,
2984
3002
  points: e
2985
3003
  }]), E([]), O(null));
@@ -2989,9 +3007,9 @@ function tr({ className: e }) {
2989
3007
  if (!e) return;
2990
3008
  function t(e) {
2991
3009
  e.preventDefault();
2992
- let { zoom: t, pan: n } = ie.current, r = jn(e.clientX, e.clientY, z.current);
3010
+ let { zoom: t, pan: n } = ie.current, r = Nn(e.clientX, e.clientY, z.current);
2993
3011
  if (!r) return;
2994
- let i = e.deltaY < 0 ? Yn : 1 / Yn, a = Math.max(Xn, Math.min(Zn, t * i));
3012
+ let i = e.deltaY < 0 ? Zn : 1 / Zn, a = Math.max(Qn, Math.min($n, t * i));
2995
3013
  F({
2996
3014
  x: r.x - (r.x - n.x) * (t / a),
2997
3015
  y: r.y - (r.y - n.y) * (t / a)
@@ -3014,7 +3032,7 @@ function tr({ className: e }) {
3014
3032
  return;
3015
3033
  }
3016
3034
  if ((e.key === "+" || e.key === "=") && !(e.target instanceof HTMLInputElement)) {
3017
- let e = Math.max(Xn, Math.min(Zn, s * Yn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3035
+ let e = Math.max(Qn, Math.min($n, s * Zn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3018
3036
  j(e), F({
3019
3037
  x: t - 400 / e / 2,
3020
3038
  y: n - 300 / e / 2
@@ -3022,7 +3040,7 @@ function tr({ className: e }) {
3022
3040
  return;
3023
3041
  }
3024
3042
  if (e.key === "-" && !(e.target instanceof HTMLInputElement)) {
3025
- let e = Math.max(Xn, Math.min(Zn, s / Yn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3043
+ let e = Math.max(Qn, Math.min($n, s / Zn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3026
3044
  j(e), F({
3027
3045
  x: t - 400 / e / 2,
3028
3046
  y: n - 300 / e / 2
@@ -3041,20 +3059,20 @@ function tr({ className: e }) {
3041
3059
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
3042
3060
  }, []);
3043
3061
  function oe(e, t = k, n = P) {
3044
- let r = Math.max(Xn, Math.min(Zn, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
3062
+ let r = Math.max(Qn, Math.min($n, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
3045
3063
  F({
3046
3064
  x: i - 400 / r / 2,
3047
3065
  y: a - 300 / r / 2
3048
3066
  }), j(r);
3049
3067
  }
3050
3068
  function U(e) {
3051
- return z.current ? jn(e.clientX, e.clientY, z.current) : null;
3069
+ return z.current ? Nn(e.clientX, e.clientY, z.current) : null;
3052
3070
  }
3053
3071
  function se(e, t) {
3054
3072
  let n = null;
3055
3073
  for (let r = 0; r < t.points.length; r++) {
3056
- let i = Mn(e, t.points[r]);
3057
- i <= qn && (!n || i < n.d) && (n = {
3074
+ let i = Pn(e, t.points[r]);
3075
+ i <= Yn && (!n || i < n.d) && (n = {
3058
3076
  index: r,
3059
3077
  d: i
3060
3078
  });
@@ -3064,8 +3082,8 @@ function tr({ className: e }) {
3064
3082
  function W(e, t) {
3065
3083
  let n = null;
3066
3084
  for (let r = 0; r < t.points.length; r++) {
3067
- let i = t.points[r], a = t.points[(r + 1) % t.points.length], { dist: o, t: s } = Nn(e, i, a);
3068
- o <= Jn && (!n || o < n.d) && (n = {
3085
+ let i = t.points[r], a = t.points[(r + 1) % t.points.length], { dist: o, t: s } = Fn(e, i, a);
3086
+ o <= Xn && (!n || o < n.d) && (n = {
3069
3087
  index: r,
3070
3088
  t: s,
3071
3089
  d: o
@@ -3112,13 +3130,13 @@ function tr({ className: e }) {
3112
3130
  } : t;
3113
3131
  }).filter((e) => e.wallIndex !== -1));
3114
3132
  }
3115
- function ue(e) {
3133
+ function G(e) {
3116
3134
  if (e.button === 1) {
3117
3135
  e.preventDefault();
3118
3136
  let t = z.current;
3119
3137
  if (t) {
3120
3138
  let n = t.getBoundingClientRect();
3121
- te.current = {
3139
+ R.current = {
3122
3140
  startClient: {
3123
3141
  x: e.clientX,
3124
3142
  y: e.clientY
@@ -3137,9 +3155,9 @@ function tr({ className: e }) {
3137
3155
  if (g) {
3138
3156
  let e = t.find((e) => e.id === g);
3139
3157
  if (e) {
3140
- let t = Pn(n, [e]);
3158
+ let t = In(n, [e]);
3141
3159
  t && i((e) => [...e, {
3142
- id: $n("door"),
3160
+ id: tr("door"),
3143
3161
  roomId: t.roomId,
3144
3162
  wallIndex: t.wallIndex,
3145
3163
  t: t.t,
@@ -3153,7 +3171,7 @@ function tr({ className: e }) {
3153
3171
  return;
3154
3172
  }
3155
3173
  if (o === "polygon") {
3156
- S.length >= 3 && Mn(n, S[0]) <= 8 ? ae(S) : E((e) => [...e, n]);
3174
+ S.length >= 3 && Pn(n, S[0]) <= 8 ? ae(S) : E((e) => [...e, n]);
3157
3175
  return;
3158
3176
  }
3159
3177
  if (o === "select") {
@@ -3174,7 +3192,7 @@ function tr({ className: e }) {
3174
3192
  if (e) {
3175
3193
  let t = W(n, e);
3176
3194
  if (t) {
3177
- let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = An({
3195
+ let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = Mn({
3178
3196
  x: r.x + (i.x - r.x) * t.t,
3179
3197
  y: r.y + (i.y - r.y) * t.t
3180
3198
  }), o = ce(e.id, t.index, t.t, a);
@@ -3188,7 +3206,7 @@ function tr({ className: e }) {
3188
3206
  return;
3189
3207
  }
3190
3208
  }
3191
- let r = t.find((e) => Fn(n, e.points));
3209
+ let r = t.find((e) => Ln(n, e.points));
3192
3210
  if (r) {
3193
3211
  m(r.id), I.current = {
3194
3212
  type: "room",
@@ -3202,7 +3220,7 @@ function tr({ className: e }) {
3202
3220
  }
3203
3221
  }
3204
3222
  }
3205
- function G(e) {
3223
+ function ue(e) {
3206
3224
  if (o !== "select" || g) return;
3207
3225
  let n = U(e);
3208
3226
  if (!n) return;
@@ -3212,8 +3230,8 @@ function tr({ className: e }) {
3212
3230
  i && (e.preventDefault(), le(r.id, i.index));
3213
3231
  }
3214
3232
  function K(e) {
3215
- if (te.current) {
3216
- let { startClient: t, origPan: n, scaleX: r, scaleY: i } = te.current;
3233
+ if (R.current) {
3234
+ let { startClient: t, origPan: n, scaleX: r, scaleY: i } = R.current;
3217
3235
  F({
3218
3236
  x: n.x - (e.clientX - t.x) * r,
3219
3237
  y: n.y - (e.clientY - t.y) * i
@@ -3225,7 +3243,7 @@ function tr({ className: e }) {
3225
3243
  if (ee.current && g) {
3226
3244
  let e = t.find((e) => e.id === g);
3227
3245
  if (e) {
3228
- let t = Pn(r, [e]);
3246
+ let t = In(r, [e]);
3229
3247
  t && i((e) => e.map((e) => e.id === ee.current ? {
3230
3248
  ...e,
3231
3249
  wallIndex: t.wallIndex,
@@ -3245,7 +3263,7 @@ function tr({ className: e }) {
3245
3263
  if (o === "select" && !g && I.current) {
3246
3264
  let e = I.current;
3247
3265
  if (e.type === "vertex") {
3248
- let t = r.x - e.start.x, i = r.y - e.start.y, a = An({
3266
+ let t = r.x - e.start.x, i = r.y - e.start.y, a = Mn({
3249
3267
  x: e.origPt.x + t,
3250
3268
  y: e.origPt.y + i
3251
3269
  });
@@ -3271,8 +3289,8 @@ function tr({ className: e }) {
3271
3289
  }
3272
3290
  }
3273
3291
  function de(e) {
3274
- if (te.current) {
3275
- te.current = null;
3292
+ if (R.current) {
3293
+ R.current = null;
3276
3294
  return;
3277
3295
  }
3278
3296
  let t = U(e);
@@ -3280,37 +3298,37 @@ function tr({ className: e }) {
3280
3298
  if (o === "rect" && v) {
3281
3299
  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);
3282
3300
  i >= 10 && a >= 10 && n((t) => [...t, {
3283
- id: $n("room"),
3301
+ id: tr("room"),
3284
3302
  name: `Room ${t.length + 1}`,
3285
- points: Ln(e, r, i, a)
3303
+ points: zn(e, r, i, a)
3286
3304
  }]), y(null), x(null);
3287
3305
  }
3288
3306
  ee.current = null, I.current = null;
3289
3307
  }
3290
3308
  }
3291
- function fe(e) {
3309
+ function q(e) {
3292
3310
  l && n((t) => t.map((t) => t.id === l ? {
3293
3311
  ...t,
3294
3312
  name: e
3295
3313
  } : t));
3296
3314
  }
3297
- function pe(e, t) {
3315
+ function fe(e, t) {
3298
3316
  let n = parseFloat(t);
3299
3317
  isNaN(n) || n <= 0 || i((t) => t.map((t) => t.id === e ? {
3300
3318
  ...t,
3301
3319
  width: n
3302
3320
  } : t));
3303
3321
  }
3304
- function me() {
3322
+ function pe() {
3305
3323
  l && (n((e) => e.filter((e) => e.id !== l)), i((e) => e.filter((e) => e.roomId !== l)), _(null), m(null));
3306
3324
  }
3307
- function he(e) {
3325
+ function me(e) {
3308
3326
  i((t) => t.filter((t) => t.id !== e));
3309
3327
  }
3310
- function ge(e) {
3328
+ function he(e) {
3311
3329
  c(e), _(null), E([]), O(null), y(null), x(null);
3312
3330
  }
3313
- function _e(e) {
3331
+ function ge(e) {
3314
3332
  let t = e.target.files?.[0];
3315
3333
  if (!t) return;
3316
3334
  e.target.value = "";
@@ -3318,22 +3336,22 @@ function tr({ className: e }) {
3318
3336
  r.onload = (e) => {
3319
3337
  let t = e.target?.result;
3320
3338
  if (typeof t != "string") return;
3321
- let r = Gn(t);
3339
+ let r = qn(t);
3322
3340
  r.length !== 0 && (n(r.map((e) => ({
3323
3341
  ...e,
3324
- id: $n("room")
3342
+ id: tr("room")
3325
3343
  }))), i([]), m(null), _(null), j(1), F({
3326
3344
  x: 0,
3327
3345
  y: 0
3328
3346
  }));
3329
3347
  }, r.readAsText(t);
3330
3348
  }
3331
- let ve = o === "rect" && v && b ? {
3349
+ let _e = o === "rect" && v && b ? {
3332
3350
  x: Math.min(v.x, b.x),
3333
3351
  y: Math.min(v.y, b.y),
3334
3352
  w: Math.abs(b.x - v.x),
3335
3353
  h: Math.abs(b.y - v.y)
3336
- } : null, ye = l ? t.find((e) => e.id === l) ?? null : null, be = g ? t.find((e) => e.id === g) ?? null : null, xe = g ? r.filter((e) => e.roomId === g) : [], Se = [
3354
+ } : null, ve = l ? t.find((e) => e.id === l) ?? null : null, ye = g ? t.find((e) => e.id === g) ?? null : null, be = g ? r.filter((e) => e.roomId === g) : [], xe = [
3337
3355
  {
3338
3356
  t: "select",
3339
3357
  icon: A,
@@ -3341,7 +3359,7 @@ function tr({ className: e }) {
3341
3359
  },
3342
3360
  {
3343
3361
  t: "rect",
3344
- icon: L,
3362
+ icon: te,
3345
3363
  label: "Rectangle room"
3346
3364
  },
3347
3365
  {
@@ -3349,25 +3367,25 @@ function tr({ className: e }) {
3349
3367
  icon: T,
3350
3368
  label: "Polygon room"
3351
3369
  }
3352
- ], q = 400 / k, Ce = 300 / k, we = g ? Q.roomDrawerCanvasDoor : o === "select" ? Q.roomDrawerCanvasSelect : void 0;
3370
+ ], J = 400 / k, Se = 300 / k, Ce = g ? Q.roomDrawerCanvasDoor : o === "select" ? Q.roomDrawerCanvasSelect : void 0;
3353
3371
  return /* @__PURE__ */ H("div", {
3354
3372
  className: f(Q.roomDrawer, e),
3355
3373
  children: [
3356
3374
  /* @__PURE__ */ H("div", {
3357
3375
  className: Q.roomDrawerToolbar,
3358
3376
  children: [
3359
- Se.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ V("button", {
3377
+ xe.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ V("button", {
3360
3378
  title: n,
3361
3379
  className: f(Q.roomDrawerToolbarBtn, e === o && !g && Q.roomDrawerToolbarBtnActive),
3362
- onClick: () => ge(e),
3380
+ onClick: () => he(e),
3363
3381
  children: /* @__PURE__ */ V(p, { icon: t })
3364
3382
  }, e)),
3365
3383
  /* @__PURE__ */ V("div", { className: Q.roomDrawerToolbarSep }),
3366
3384
  /* @__PURE__ */ V("button", {
3367
3385
  title: "Zoom in (+)",
3368
3386
  className: Q.roomDrawerToolbarBtn,
3369
- onClick: () => oe(Yn),
3370
- disabled: k >= Zn,
3387
+ onClick: () => oe(Zn),
3388
+ disabled: k >= $n,
3371
3389
  children: /* @__PURE__ */ V(p, { icon: N })
3372
3390
  }),
3373
3391
  /* @__PURE__ */ H("button", {
@@ -3384,8 +3402,8 @@ function tr({ className: e }) {
3384
3402
  /* @__PURE__ */ V("button", {
3385
3403
  title: "Zoom out (−)",
3386
3404
  className: Q.roomDrawerToolbarBtn,
3387
- onClick: () => oe(1 / Yn),
3388
- disabled: k <= Xn,
3405
+ onClick: () => oe(1 / Zn),
3406
+ disabled: k <= Qn,
3389
3407
  children: /* @__PURE__ */ V(p, { icon: M })
3390
3408
  }),
3391
3409
  /* @__PURE__ */ V("div", { className: Q.roomDrawerToolbarSep }),
@@ -3398,7 +3416,7 @@ function tr({ className: e }) {
3398
3416
  /* @__PURE__ */ V("button", {
3399
3417
  title: "Download SVG",
3400
3418
  className: Q.roomDrawerToolbarBtn,
3401
- onClick: () => Kn(t, r),
3419
+ onClick: () => Jn(t, r),
3402
3420
  disabled: t.length === 0,
3403
3421
  children: /* @__PURE__ */ V(p, { icon: w })
3404
3422
  }),
@@ -3407,18 +3425,18 @@ function tr({ className: e }) {
3407
3425
  type: "file",
3408
3426
  accept: ".svg,image/svg+xml",
3409
3427
  style: { display: "none" },
3410
- onChange: _e
3428
+ onChange: ge
3411
3429
  })
3412
3430
  ]
3413
3431
  }),
3414
3432
  /* @__PURE__ */ H("svg", {
3415
3433
  ref: z,
3416
- className: f(Q.roomDrawerCanvas, we),
3417
- viewBox: `${P.x} ${P.y} ${q} ${Ce}`,
3418
- onMouseDown: ue,
3434
+ className: f(Q.roomDrawerCanvas, Ce),
3435
+ viewBox: `${P.x} ${P.y} ${J} ${Se}`,
3436
+ onMouseDown: G,
3419
3437
  onMouseMove: K,
3420
3438
  onMouseUp: de,
3421
- onDoubleClick: G,
3439
+ onDoubleClick: ue,
3422
3440
  children: [
3423
3441
  /* @__PURE__ */ V("defs", { children: /* @__PURE__ */ V("pattern", {
3424
3442
  id: "rd-grid",
@@ -3434,12 +3452,12 @@ function tr({ className: e }) {
3434
3452
  /* @__PURE__ */ V("rect", {
3435
3453
  x: P.x,
3436
3454
  y: P.y,
3437
- width: q,
3438
- height: Ce,
3455
+ width: J,
3456
+ height: Se,
3439
3457
  fill: "url(#rd-grid)"
3440
3458
  }),
3441
3459
  t.map((e) => {
3442
- let t = e.points, n = t.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x},${e.y}`).join(" ") + " Z", i = Vn(t, r.filter((t) => t.roomId === e.id)), a = In(t), o = l === e.id, s = g === e.id;
3460
+ let t = e.points, n = t.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x},${e.y}`).join(" ") + " Z", i = Un(t, r.filter((t) => t.roomId === e.id)), a = Rn(t), o = l === e.id, s = g === e.id;
3443
3461
  return /* @__PURE__ */ H("g", { children: [
3444
3462
  /* @__PURE__ */ V("path", {
3445
3463
  d: n,
@@ -3462,7 +3480,7 @@ function tr({ className: e }) {
3462
3480
  r.map((e) => {
3463
3481
  let n = t.find((t) => t.id === e.roomId);
3464
3482
  if (!n) return null;
3465
- let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Rn(r, i, e.t, e.width);
3483
+ let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Bn(r, i, e.t, e.width);
3466
3484
  return a ? /* @__PURE__ */ V("line", {
3467
3485
  x1: a.p1.x,
3468
3486
  y1: a.p1.y,
@@ -3471,10 +3489,10 @@ function tr({ className: e }) {
3471
3489
  className: Q.doorGap
3472
3490
  }, e.id) : null;
3473
3491
  }),
3474
- g && xe.map((e) => {
3492
+ g && be.map((e) => {
3475
3493
  let n = t.find((t) => t.id === e.roomId);
3476
3494
  if (!n) return null;
3477
- let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Rn(r, i, e.t, e.width);
3495
+ let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Bn(r, i, e.t, e.width);
3478
3496
  if (!a) return null;
3479
3497
  let o = {
3480
3498
  x: (a.p1.x + a.p2.x) / 2,
@@ -3490,17 +3508,17 @@ function tr({ className: e }) {
3490
3508
  }
3491
3509
  }, e.id);
3492
3510
  }),
3493
- o === "select" && !g && ye && ye.points.map((e, t) => /* @__PURE__ */ V("circle", {
3511
+ o === "select" && !g && ve && ve.points.map((e, t) => /* @__PURE__ */ V("circle", {
3494
3512
  cx: e.x,
3495
3513
  cy: e.y,
3496
3514
  r: 3.5,
3497
3515
  className: Q.vertexHandle
3498
3516
  }, t)),
3499
- ve && /* @__PURE__ */ V("rect", {
3500
- x: ve.x,
3501
- y: ve.y,
3502
- width: ve.w,
3503
- height: ve.h,
3517
+ _e && /* @__PURE__ */ V("rect", {
3518
+ x: _e.x,
3519
+ y: _e.y,
3520
+ width: _e.w,
3521
+ height: _e.h,
3504
3522
  className: Q.preview
3505
3523
  }),
3506
3524
  o === "polygon" && S.length > 0 && /* @__PURE__ */ H(B, { children: [
@@ -3523,7 +3541,7 @@ function tr({ className: e }) {
3523
3541
  ] })
3524
3542
  ]
3525
3543
  }),
3526
- ye && !g && /* @__PURE__ */ H("div", {
3544
+ ve && !g && /* @__PURE__ */ H("div", {
3527
3545
  className: Q.roomDrawerInfo,
3528
3546
  children: [
3529
3547
  /* @__PURE__ */ V("span", {
@@ -3532,25 +3550,25 @@ function tr({ className: e }) {
3532
3550
  }),
3533
3551
  /* @__PURE__ */ V("input", {
3534
3552
  className: Q.roomDrawerInfoInput,
3535
- value: ye.name,
3536
- onChange: (e) => fe(e.target.value),
3553
+ value: ve.name,
3554
+ onChange: (e) => q(e.target.value),
3537
3555
  placeholder: "Room name"
3538
3556
  }),
3539
3557
  /* @__PURE__ */ H("button", {
3540
3558
  className: Q.roomDrawerInfoDoorsBtn,
3541
- onClick: () => _(ye.id),
3559
+ onClick: () => _(ve.id),
3542
3560
  title: "Edit doors",
3543
- children: [/* @__PURE__ */ V(p, { icon: C }), /* @__PURE__ */ V("span", { children: r.filter((e) => e.roomId === ye.id).length })]
3561
+ children: [/* @__PURE__ */ V(p, { icon: C }), /* @__PURE__ */ V("span", { children: r.filter((e) => e.roomId === ve.id).length })]
3544
3562
  }),
3545
3563
  /* @__PURE__ */ V("button", {
3546
3564
  className: Q.roomDrawerInfoDelete,
3547
- onClick: me,
3565
+ onClick: pe,
3548
3566
  title: "Delete room",
3549
- children: /* @__PURE__ */ V(p, { icon: R })
3567
+ children: /* @__PURE__ */ V(p, { icon: L })
3550
3568
  })
3551
3569
  ]
3552
3570
  }),
3553
- g && be && /* @__PURE__ */ H("div", {
3571
+ g && ye && /* @__PURE__ */ H("div", {
3554
3572
  className: Q.roomDrawerDoorPanel,
3555
3573
  children: [/* @__PURE__ */ H("div", {
3556
3574
  className: Q.roomDrawerDoorPanelHeader,
@@ -3561,7 +3579,7 @@ function tr({ className: e }) {
3561
3579
  }),
3562
3580
  /* @__PURE__ */ V("span", {
3563
3581
  className: Q.roomDrawerDoorPanelTitle,
3564
- children: be.name ? `Doors · ${be.name}` : "Doors"
3582
+ children: ye.name ? `Doors · ${ye.name}` : "Doors"
3565
3583
  }),
3566
3584
  /* @__PURE__ */ H("button", {
3567
3585
  className: Q.roomDrawerDoorPanelDone,
@@ -3572,10 +3590,10 @@ function tr({ className: e }) {
3572
3590
  ]
3573
3591
  }), /* @__PURE__ */ H("div", {
3574
3592
  className: Q.roomDrawerDoorPanelList,
3575
- children: [xe.length === 0 && /* @__PURE__ */ V("span", {
3593
+ children: [be.length === 0 && /* @__PURE__ */ V("span", {
3576
3594
  className: Q.roomDrawerDoorPanelEmpty,
3577
3595
  children: "Click on a wall to add a door"
3578
- }), xe.map((e, t) => /* @__PURE__ */ H("div", {
3596
+ }), be.map((e, t) => /* @__PURE__ */ H("div", {
3579
3597
  className: Q.roomDrawerDoorPanelItem,
3580
3598
  children: [
3581
3599
  /* @__PURE__ */ H("span", {
@@ -3591,13 +3609,13 @@ function tr({ className: e }) {
3591
3609
  type: "number",
3592
3610
  min: 1,
3593
3611
  value: e.width,
3594
- onChange: (t) => pe(e.id, t.target.value)
3612
+ onChange: (t) => fe(e.id, t.target.value)
3595
3613
  }),
3596
3614
  /* @__PURE__ */ V("button", {
3597
3615
  className: Q.roomDrawerInfoDelete,
3598
- onClick: () => he(e.id),
3616
+ onClick: () => me(e.id),
3599
3617
  title: "Delete door",
3600
- children: /* @__PURE__ */ V(p, { icon: R })
3618
+ children: /* @__PURE__ */ V(p, { icon: L })
3601
3619
  })
3602
3620
  ]
3603
3621
  }, e.id))]
@@ -3605,12 +3623,12 @@ function tr({ className: e }) {
3605
3623
  }),
3606
3624
  /* @__PURE__ */ V("div", {
3607
3625
  className: Q.roomDrawerHint,
3608
- children: g ? "Click a wall to add a door · Adjust width or delete from the list · Done or Esc to finish" : `${er[o]} · Scroll to zoom · Middle-drag to pan · 0 to reset`
3626
+ children: g ? "Click a wall to add a door · Adjust width or delete from the list · Done or Esc to finish" : `${nr[o]} · Scroll to zoom · Middle-drag to pan · 0 to reset`
3609
3627
  })
3610
3628
  ]
3611
3629
  });
3612
3630
  }
3613
- var nr = {
3631
+ var ir = {
3614
3632
  "roomViewer-containerLoading": "roomViewer-containerLoading_BL3M-",
3615
3633
  roomViewerContainerLoading: "roomViewer-containerLoading_BL3M-",
3616
3634
  "roomViewer-container": "roomViewer-container_YlmB8",
@@ -3628,7 +3646,7 @@ var nr = {
3628
3646
  };
3629
3647
  //#endregion
3630
3648
  //#region package/common/roomViewer/roomViewer.tsx
3631
- function rr({ data: e = [] }) {
3649
+ function ar({ data: e = [] }) {
3632
3650
  let t = u(null), [, n] = d(null), [r, i] = d(0), [o, s] = d(!0);
3633
3651
  a(() => {
3634
3652
  let i = new AbortController();
@@ -3648,15 +3666,15 @@ function rr({ data: e = [] }) {
3648
3666
  if (n) {
3649
3667
  let [e] = t.querySelectorAll(`[id="room${n}"]`);
3650
3668
  if (e) {
3651
- e.classList.remove(nr.roomViewerSelected, nr.roomViewerTint);
3669
+ e.classList.remove(ir.roomViewerSelected, ir.roomViewerTint);
3652
3670
  let [t] = e.querySelectorAll("[id=\"background\"]");
3653
- t && t.classList.remove(nr.roomViewerTint);
3671
+ t && t.classList.remove(ir.roomViewerTint);
3654
3672
  }
3655
3673
  }
3656
3674
  if (a) {
3657
- a.classList.add(nr.roomViewerSelected);
3675
+ a.classList.add(ir.roomViewerSelected);
3658
3676
  let [e] = a.querySelectorAll("[id=\"background\"]");
3659
- (e ?? a).classList.add(nr.roomViewerTint);
3677
+ (e ?? a).classList.add(ir.roomViewerTint);
3660
3678
  }
3661
3679
  return r;
3662
3680
  });
@@ -3669,19 +3687,19 @@ function rr({ data: e = [] }) {
3669
3687
  }
3670
3688
  let m = e[r]?.data ?? null;
3671
3689
  return /* @__PURE__ */ H("div", {
3672
- className: nr.roomViewer,
3690
+ className: ir.roomViewer,
3673
3691
  ref: t,
3674
3692
  children: [
3675
3693
  /* @__PURE__ */ V("h3", {
3676
- className: nr.roomViewerHeader,
3694
+ className: ir.roomViewerHeader,
3677
3695
  children: e[r]?.label ?? ""
3678
3696
  }),
3679
3697
  /* @__PURE__ */ V("div", {
3680
- className: f(nr.roomViewerContainer, o && nr.roomViewerContainerLoading),
3698
+ className: f(ir.roomViewerContainer, o && ir.roomViewerContainerLoading),
3681
3699
  children: m
3682
3700
  }, r),
3683
3701
  e.length > 1 && /* @__PURE__ */ H("div", {
3684
- className: nr.roomViewerActions,
3702
+ className: ir.roomViewerActions,
3685
3703
  children: [
3686
3704
  /* @__PURE__ */ V(p, {
3687
3705
  icon: _,
@@ -3697,21 +3715,21 @@ function rr({ data: e = [] }) {
3697
3715
  ]
3698
3716
  });
3699
3717
  }
3700
- var ir = { scrollbarProvider: "scrollbarProvider_IMBFu" };
3718
+ var or = { scrollbarProvider: "scrollbarProvider_IMBFu" };
3701
3719
  //#endregion
3702
3720
  //#region package/common/scrollbarProvider/scrollbarProvider.tsx
3703
- function ar({ className: e = void 0, children: t = void 0 }) {
3721
+ function sr({ className: e = void 0, children: t = void 0 }) {
3704
3722
  return /* @__PURE__ */ V("div", {
3705
- className: f(ir.scrollbarProvider, e),
3723
+ className: f(or.scrollbarProvider, e),
3706
3724
  children: t
3707
3725
  });
3708
3726
  }
3709
3727
  //#endregion
3710
3728
  //#region package/common/scrollbarProvider/index.ts
3711
- var or = ar, sr = { resultCount: "resultCount_Sn48Q" };
3729
+ var cr = sr, lr = { resultCount: "resultCount_Sn48Q" };
3712
3730
  //#endregion
3713
3731
  //#region package/common/searchInput/searchInput.tsx
3714
- function cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, debounceMs: o = 500, totalAmount: s, showAmount: c = !0, className: l, width: d, ...f }) {
3732
+ function ur({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, debounceMs: o = 500, totalAmount: s, showAmount: c = !0, className: l, width: d, ...f }) {
3715
3733
  let p = u(null);
3716
3734
  a(() => () => {
3717
3735
  p.current !== null && clearTimeout(p.current);
@@ -3727,14 +3745,14 @@ function cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, de
3727
3745
  ...f,
3728
3746
  className: l,
3729
3747
  style: d == null ? void 0 : { width: d },
3730
- children: [/* @__PURE__ */ V(rt, {
3748
+ children: [/* @__PURE__ */ V(at, {
3731
3749
  type: X.Search,
3732
3750
  label: i,
3733
3751
  placeholder: r,
3734
3752
  value: e,
3735
3753
  onChange: m
3736
3754
  }), h && /* @__PURE__ */ H("p", {
3737
- className: sr.resultCount,
3755
+ className: lr.resultCount,
3738
3756
  children: [
3739
3757
  s,
3740
3758
  " ",
@@ -3743,7 +3761,7 @@ function cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, de
3743
3761
  })]
3744
3762
  });
3745
3763
  }
3746
- var lr = {
3764
+ var dr = {
3747
3765
  stepper: "stepper_kiS2A",
3748
3766
  "stepper-clickable": "stepper-clickable_Nm6fP",
3749
3767
  stepperClickable: "stepper-clickable_Nm6fP",
@@ -3773,7 +3791,7 @@ var lr = {
3773
3791
  };
3774
3792
  //#endregion
3775
3793
  //#region package/common/stepper/stepper.tsx
3776
- function ur() {
3794
+ function fr() {
3777
3795
  return /* @__PURE__ */ V("svg", {
3778
3796
  strokeLinejoin: "round",
3779
3797
  strokeLinecap: "round",
@@ -3789,22 +3807,22 @@ function ur() {
3789
3807
  })
3790
3808
  });
3791
3809
  }
3792
- function dr({ 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 }) {
3810
+ function pr({ 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 }) {
3793
3811
  let p = r === "vertical";
3794
3812
  return /* @__PURE__ */ V("div", {
3795
3813
  ...d,
3796
- className: f(lr.stepper, { [lr.stepperVertical]: p }, l?.root, s),
3814
+ className: f(dr.stepper, { [dr.stepperVertical]: p }, l?.root, s),
3797
3815
  style: {
3798
3816
  ...u?.root,
3799
3817
  ...c
3800
3818
  },
3801
3819
  children: t.map((r, s) => {
3802
- let c = s < n, d = s <= n, m = !!i && (a ? s !== n : c), h = f(lr.stepperEntry, { [lr.stepperEntryActive]: d }, { [lr.stepperEntryDone]: c }, { [lr.stepperClickable]: m }, l?.entry), g = /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("div", {
3803
- className: f(lr.stepperEntryNumber, { [lr.stepperEntryNumberDone]: c }, l?.entryNumber),
3820
+ let c = s < n, d = s <= n, m = !!i && (a ? s !== n : c), h = f(dr.stepperEntry, { [dr.stepperEntryActive]: d }, { [dr.stepperEntryDone]: c }, { [dr.stepperClickable]: m }, l?.entry), g = /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("div", {
3821
+ className: f(dr.stepperEntryNumber, { [dr.stepperEntryNumberDone]: c }, l?.entryNumber),
3804
3822
  style: u?.entryNumber,
3805
- children: c ? /* @__PURE__ */ V(ur, {}) : s + 1
3823
+ children: c ? /* @__PURE__ */ V(fr, {}) : s + 1
3806
3824
  }), !o && /* @__PURE__ */ V("div", {
3807
- className: f(lr.stepperEntryLabel, { [lr.stepperEntryLabelVertical]: p }, l?.entryLabel),
3825
+ className: f(dr.stepperEntryLabel, { [dr.stepperEntryLabelVertical]: p }, l?.entryLabel),
3808
3826
  style: u?.entryLabel,
3809
3827
  children: r.label
3810
3828
  })] });
@@ -3820,7 +3838,7 @@ function dr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", on
3820
3838
  "aria-current": s === n ? "step" : void 0,
3821
3839
  children: g
3822
3840
  }), s < t.length - 1 && /* @__PURE__ */ V("div", {
3823
- className: f(lr.stepperConnector, { [lr.stepperConnectorFilled]: c }, { [lr.stepperConnectorVertical]: p }, l?.connector),
3841
+ className: f(dr.stepperConnector, { [dr.stepperConnectorFilled]: c }, { [dr.stepperConnectorVertical]: p }, l?.connector),
3824
3842
  style: u?.connector
3825
3843
  })] }, s);
3826
3844
  })
@@ -3828,7 +3846,7 @@ function dr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", on
3828
3846
  }
3829
3847
  //#endregion
3830
3848
  //#region package/services/tenorService.ts
3831
- var fr = "https://tenor.googleapis.com/v2", pr = class {
3849
+ var mr = "https://tenor.googleapis.com/v2", hr = class {
3832
3850
  constructor(e) {
3833
3851
  this.key = e;
3834
3852
  }
@@ -3837,14 +3855,14 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3837
3855
  q: e,
3838
3856
  key: this.key
3839
3857
  });
3840
- 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(`${fr}/search?${n}`)).json();
3858
+ 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(`${mr}/search?${n}`)).json();
3841
3859
  }
3842
3860
  async searchSuggestions(e) {
3843
3861
  let t = new URLSearchParams({
3844
3862
  q: e,
3845
3863
  key: this.key
3846
3864
  });
3847
- return (await fetch(`${fr}/search_suggestions?${t}`)).json();
3865
+ return (await fetch(`${mr}/search_suggestions?${t}`)).json();
3848
3866
  }
3849
3867
  registerShare(e, t) {
3850
3868
  let n = new URLSearchParams({
@@ -3852,9 +3870,9 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3852
3870
  q: e,
3853
3871
  key: this.key
3854
3872
  });
3855
- fetch(`${fr}/registershare?${n}`).catch(() => null);
3873
+ fetch(`${mr}/registershare?${n}`).catch(() => null);
3856
3874
  }
3857
- }, mr = {
3875
+ }, gr = {
3858
3876
  gifPreview: "gifPreview_-ECUZ",
3859
3877
  "gifPreview-image": "gifPreview-image_Aq7-a",
3860
3878
  gifPreviewImage: "gifPreview-image_Aq7-a",
@@ -3864,25 +3882,25 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3864
3882
  };
3865
3883
  //#endregion
3866
3884
  //#region package/common/tenorPicker/components/gifPreview/gifPreview.tsx
3867
- function hr({ className: e, previewItems: t = [], onSelect: n, onLoadAdditional: r }) {
3885
+ function _r({ className: e, previewItems: t = [], onSelect: n, onLoadAdditional: r }) {
3868
3886
  function i(e) {
3869
3887
  let t = e.currentTarget, n = t.scrollHeight - t.clientHeight * 1.5;
3870
3888
  t.scrollTop >= n && r?.();
3871
3889
  }
3872
3890
  return /* @__PURE__ */ V(B, { children: t.length > 0 && /* @__PURE__ */ V("div", {
3873
- className: f(mr.gifPreview, e),
3891
+ className: f(gr.gifPreview, e),
3874
3892
  onScroll: i,
3875
3893
  children: t.map((e, t) => /* @__PURE__ */ V(Ie, {
3876
- className: mr.gifPreviewImageContainer,
3894
+ className: gr.gifPreviewImageContainer,
3877
3895
  onClick: () => n?.(e),
3878
3896
  children: /* @__PURE__ */ V("div", {
3879
- className: mr.gifPreviewImage,
3897
+ className: gr.gifPreviewImage,
3880
3898
  style: { backgroundImage: `url(${e.media_formats.tinygif.url})` }
3881
3899
  })
3882
3900
  }, `${e.id}_${t}`))
3883
3901
  }) });
3884
3902
  }
3885
- var gr = {
3903
+ var vr = {
3886
3904
  gifView: "gifView_Fa2zj",
3887
3905
  "gifView-loading": "gifView-loading_LfNJr",
3888
3906
  gifViewLoading: "gifView-loading_LfNJr",
@@ -3890,20 +3908,20 @@ var gr = {
3890
3908
  };
3891
3909
  //#endregion
3892
3910
  //#region package/common/tenorPicker/components/gifView/gifView.tsx
3893
- function _r({ className: e, src: t = "" }) {
3911
+ function yr({ className: e, src: t = "" }) {
3894
3912
  let [n, r] = d(!0);
3895
3913
  return a(() => {
3896
3914
  r(!0);
3897
3915
  }, [t]), /* @__PURE__ */ H("div", {
3898
- className: f(gr.gifView, e),
3916
+ className: f(vr.gifView, e),
3899
3917
  children: [/* @__PURE__ */ V("img", {
3900
- className: gr.tenorPickerSelected,
3918
+ className: vr.tenorPickerSelected,
3901
3919
  src: t,
3902
3920
  onLoad: () => r(!1)
3903
- }), n && /* @__PURE__ */ V("div", { className: gr.gifViewLoading })]
3921
+ }), n && /* @__PURE__ */ V("div", { className: vr.gifViewLoading })]
3904
3922
  });
3905
3923
  }
3906
- var vr = {
3924
+ var br = {
3907
3925
  "tenorPicker-selected": "tenorPicker-selected_IfR2z",
3908
3926
  tenorPickerSelected: "tenorPicker-selected_IfR2z",
3909
3927
  "tenorPicker-modal-content": "tenorPicker-modal-content_Vkolf",
@@ -3915,8 +3933,8 @@ var vr = {
3915
3933
  };
3916
3934
  //#endregion
3917
3935
  //#region package/common/tenorPicker/tenorPicker.tsx
3918
- function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () => void 0, selected: i = null }) {
3919
- let a = c(() => new pr(t), [t]), [o, s] = d(""), [l, u] = d([]), [p, m] = d([]), [h, g] = d(null), [_, v] = d(!1);
3936
+ function xr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () => void 0, selected: i = null }) {
3937
+ let a = c(() => new hr(t), [t]), [o, s] = d(""), [l, u] = d([]), [p, m] = d([]), [h, g] = d(null), [_, v] = d(!1);
3920
3938
  async function y(e) {
3921
3939
  if (s(e), !e.trim()) {
3922
3940
  u([]), m([]), g(null);
@@ -3940,25 +3958,25 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3940
3958
  await r(e), v(!1), e && a.registerShare(o, e.id);
3941
3959
  }
3942
3960
  function S() {
3943
- return /* @__PURE__ */ V(Xe, {
3961
+ return /* @__PURE__ */ V(Qe, {
3944
3962
  inline: !0,
3945
- className: vr.tenorPickerSuggestionsContainer,
3946
- children: p.map((e) => /* @__PURE__ */ V(Ye, {
3947
- className: vr.tenorPickerSuggestionsItem,
3963
+ className: br.tenorPickerSuggestionsContainer,
3964
+ children: p.map((e) => /* @__PURE__ */ V(Ze, {
3965
+ className: br.tenorPickerSuggestionsItem,
3948
3966
  text: e,
3949
3967
  onClick: () => y(e)
3950
3968
  }, e))
3951
3969
  });
3952
3970
  }
3953
3971
  function C() {
3954
- return /* @__PURE__ */ V(hr, {
3972
+ return /* @__PURE__ */ V(_r, {
3955
3973
  previewItems: l,
3956
3974
  onSelect: x,
3957
3975
  onLoadAdditional: b
3958
3976
  });
3959
3977
  }
3960
3978
  function w() {
3961
- return /* @__PURE__ */ V(cr, {
3979
+ return /* @__PURE__ */ V(ur, {
3962
3980
  label: "Pick gif",
3963
3981
  value: o,
3964
3982
  onDebounce: y,
@@ -3966,28 +3984,28 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3966
3984
  });
3967
3985
  }
3968
3986
  return n ? /* @__PURE__ */ H("div", {
3969
- className: f(vr.tenorPicker, e),
3987
+ className: f(br.tenorPicker, e),
3970
3988
  children: [
3971
3989
  /* @__PURE__ */ H("div", {
3972
- className: Se.actionButtons,
3973
- children: [/* @__PURE__ */ V(J, {
3990
+ className: xe.actionButtons,
3991
+ children: [/* @__PURE__ */ V(Me, {
3974
3992
  onClick: () => v(!0),
3975
3993
  children: "Pick gif"
3976
- }), i && /* @__PURE__ */ V(J, {
3977
- styleType: Ee.Delete,
3994
+ }), i && /* @__PURE__ */ V(Me, {
3995
+ styleType: Te.Delete,
3978
3996
  onClick: () => x(null),
3979
3997
  children: "Remove gif"
3980
3998
  })]
3981
3999
  }),
3982
- i && /* @__PURE__ */ V(_r, {
3983
- className: vr.tenorPickerSelected,
4000
+ i && /* @__PURE__ */ V(yr, {
4001
+ className: br.tenorPickerSelected,
3984
4002
  src: i
3985
4003
  }),
3986
- /* @__PURE__ */ V(gt, {
4004
+ /* @__PURE__ */ V(vt, {
3987
4005
  isOpen: _,
3988
4006
  onClose: () => v(!1),
3989
4007
  children: /* @__PURE__ */ H("div", {
3990
- className: vr.tenorPickerModalContent,
4008
+ className: br.tenorPickerModalContent,
3991
4009
  children: [
3992
4010
  w(),
3993
4011
  S(),
@@ -3997,22 +4015,22 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3997
4015
  })
3998
4016
  ]
3999
4017
  }) : /* @__PURE__ */ H("div", {
4000
- className: f(vr.tenorPicker, e),
4018
+ className: f(br.tenorPicker, e),
4001
4019
  children: [
4002
- /* @__PURE__ */ V(et, {
4003
- align: Qe.Left,
4020
+ /* @__PURE__ */ V(nt, {
4021
+ align: et.Left,
4004
4022
  isOpen: l.length > 0 && _,
4005
4023
  onOpenChange: v,
4006
4024
  content: /* @__PURE__ */ H(B, { children: [S(), C()] }),
4007
4025
  children: w()
4008
4026
  }),
4009
- i && /* @__PURE__ */ V(J, {
4010
- styleType: Ee.Delete,
4027
+ i && /* @__PURE__ */ V(Me, {
4028
+ styleType: Te.Delete,
4011
4029
  onClick: () => x(null),
4012
4030
  children: "Remove gif"
4013
4031
  }),
4014
- i && /* @__PURE__ */ V(_r, {
4015
- className: vr.tenorPickerSelected,
4032
+ i && /* @__PURE__ */ V(yr, {
4033
+ className: br.tenorPickerSelected,
4016
4034
  src: i
4017
4035
  })
4018
4036
  ]
@@ -4020,15 +4038,15 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
4020
4038
  }
4021
4039
  //#endregion
4022
4040
  //#region package/common/textarea/textarea.tsx
4023
- function br(e) {
4024
- return /* @__PURE__ */ V(rt, {
4041
+ function Sr(e) {
4042
+ return /* @__PURE__ */ V(at, {
4025
4043
  ...e,
4026
4044
  multiline: !0
4027
4045
  });
4028
4046
  }
4029
4047
  //#endregion
4030
4048
  //#region package/common/themeProvider/defaultTheme.ts
4031
- var xr = {
4049
+ var Cr = {
4032
4050
  id: "default",
4033
4051
  variables: {
4034
4052
  "--grey": "#8A8A8A",
@@ -4088,14 +4106,14 @@ var xr = {
4088
4106
  "--spacing-m": "8px",
4089
4107
  "--spacing-l": "16px"
4090
4108
  }
4091
- }, Sr = { colorFade: "colorFade_eLv2g" }, Cr = class extends t {
4109
+ }, wr = { colorFade: "colorFade_eLv2g" }, Tr = class extends t {
4092
4110
  constructor(...t) {
4093
4111
  super(...t), this.state = {
4094
4112
  resolvedVariables: {},
4095
4113
  colorFadeActive: !1,
4096
4114
  currentThemeColor: null
4097
4115
  }, this.colorFadeTimeout = null, this.wrapperRef = e.createRef(), this.themeColorMeta = null, this.createdThemeColorMeta = !1, this.applyTheme = (e) => {
4098
- let t = this.props.themes ?? [xr], 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);
4116
+ let t = this.props.themes ?? [Cr], 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);
4099
4117
  this.setState({
4100
4118
  resolvedVariables: o,
4101
4119
  colorFadeActive: !0
@@ -4129,7 +4147,7 @@ var xr = {
4129
4147
  }
4130
4148
  }
4131
4149
  resolveChain(e) {
4132
- let t = (this.props.themes ?? [xr]).find((t) => t.id === e);
4150
+ let t = (this.props.themes ?? [Cr]).find((t) => t.id === e);
4133
4151
  return t ? [...t.baseThemeId ? this.resolveChain(t.baseThemeId) : [], t.variables] : [];
4134
4152
  }
4135
4153
  render() {
@@ -4137,7 +4155,7 @@ var xr = {
4137
4155
  return /* @__PURE__ */ V("div", {
4138
4156
  ref: this.wrapperRef,
4139
4157
  id: "themeProvider",
4140
- className: n ? Sr.colorFade : void 0,
4158
+ className: n ? wr.colorFade : void 0,
4141
4159
  style: t,
4142
4160
  children: e
4143
4161
  });
@@ -4145,7 +4163,7 @@ var xr = {
4145
4163
  };
4146
4164
  //#endregion
4147
4165
  //#region package/common/themeProvider/useTheme.ts
4148
- function wr(e = "default") {
4166
+ function Er(e = "default") {
4149
4167
  let [t, n] = d(localStorage.getItem("theme") || e);
4150
4168
  return {
4151
4169
  currentThemeId: t,
@@ -4154,7 +4172,7 @@ function wr(e = "default") {
4154
4172
  }
4155
4173
  };
4156
4174
  }
4157
- var Tr = {
4175
+ var Dr = {
4158
4176
  container: "container_krdsW",
4159
4177
  "container-top-left": "container-top-left_zfDTO",
4160
4178
  containerTopLeft: "container-top-left_zfDTO",
@@ -4191,14 +4209,14 @@ var Tr = {
4191
4209
  toastCloseButton: "toastCloseButton_n-YST",
4192
4210
  toastProgressBar: "toastProgressBar_6vBs6",
4193
4211
  toastShrink: "toastShrink_h89HS"
4194
- }, Er = {
4212
+ }, Or = {
4195
4213
  info: x,
4196
4214
  success: b,
4197
4215
  error: S,
4198
- warn: te,
4216
+ warn: R,
4199
4217
  default: m
4200
4218
  };
4201
- function Dr({ item: e, isBottom: t, onDismiss: n }) {
4219
+ function kr({ item: e, isBottom: t, onDismiss: n }) {
4202
4220
  let { id: r, content: i, options: o, dismissing: s } = e, { duration: c, showRemainingTime: l, showCloseButton: u, type: d, classNames: m, styles: h } = o;
4203
4221
  return a(() => {
4204
4222
  if (c === 0) return;
@@ -4209,28 +4227,28 @@ function Dr({ item: e, isBottom: t, onDismiss: n }) {
4209
4227
  c,
4210
4228
  n
4211
4229
  ]), /* @__PURE__ */ H("div", {
4212
- className: f(Tr.toast, t ? Tr.toastBottom : null, Tr[`toast-${d}`], s && Tr.toastDismissing, m?.root),
4230
+ className: f(Dr.toast, t ? Dr.toastBottom : null, Dr[`toast-${d}`], s && Dr.toastDismissing, m?.root),
4213
4231
  style: h?.root,
4214
4232
  children: [
4215
4233
  /* @__PURE__ */ V(p, {
4216
- icon: Er[d],
4217
- className: f(Tr.toastIcon, m?.icon),
4234
+ icon: Or[d],
4235
+ className: f(Dr.toastIcon, m?.icon),
4218
4236
  style: h?.icon
4219
4237
  }),
4220
4238
  /* @__PURE__ */ V("div", {
4221
- className: f(Tr.toastContent, m?.content),
4239
+ className: f(Dr.toastContent, m?.content),
4222
4240
  style: h?.content,
4223
4241
  children: i
4224
4242
  }),
4225
4243
  u && /* @__PURE__ */ V(Re, {
4226
4244
  icon: z,
4227
4245
  onClick: () => n(r),
4228
- className: f(Tr.toastCloseButton, m?.closeButton),
4246
+ className: f(Dr.toastCloseButton, m?.closeButton),
4229
4247
  style: h?.closeButton,
4230
4248
  "aria-label": "Close"
4231
4249
  }),
4232
4250
  l && c > 0 && /* @__PURE__ */ V("div", {
4233
- className: f(Tr.toastProgressBar, m?.progressBar),
4251
+ className: f(Dr.toastProgressBar, m?.progressBar),
4234
4252
  style: {
4235
4253
  "--toast-duration": `${c}ms`,
4236
4254
  ...h?.progressBar
@@ -4241,40 +4259,40 @@ function Dr({ item: e, isBottom: t, onDismiss: n }) {
4241
4259
  }
4242
4260
  //#endregion
4243
4261
  //#region package/common/toast/toastService.ts
4244
- var Or = null;
4245
- function kr(e) {
4246
- Or = e;
4262
+ var Ar = null;
4263
+ function jr(e) {
4264
+ Ar = e;
4247
4265
  }
4248
- function Ar() {
4249
- Or = null;
4266
+ function Mr() {
4267
+ Ar = null;
4250
4268
  }
4251
- function jr(e, t) {
4252
- if (!Or) {
4269
+ function Nr(e, t) {
4270
+ if (!Ar) {
4253
4271
  console.error("[Toast] No ToastProvider found. Wrap your app with <ToastProvider>.");
4254
4272
  return;
4255
4273
  }
4256
- Or(e, t);
4274
+ Ar(e, t);
4257
4275
  }
4258
4276
  //#endregion
4259
4277
  //#region package/common/toast/toastProvider.tsx
4260
- var Mr = {
4278
+ var Pr = {
4261
4279
  position: "top-right",
4262
4280
  duration: 4e3,
4263
4281
  showRemainingTime: !0,
4264
4282
  showCloseButton: !0,
4265
4283
  allowStacking: !0
4266
- }, Nr = 220;
4267
- function Pr(e) {
4268
- return Tr[`container-${e}`];
4284
+ }, Fr = 220;
4285
+ function Ir(e) {
4286
+ return Dr[`container-${e}`];
4269
4287
  }
4270
- function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration, showRemainingTime: r = Mr.showRemainingTime, showCloseButton: o = Mr.showCloseButton, allowStacking: s = Mr.allowStacking }) {
4288
+ function Lr({ children: e, position: t = Pr.position, duration: n = Pr.duration, showRemainingTime: r = Pr.showRemainingTime, showCloseButton: o = Pr.showCloseButton, allowStacking: s = Pr.allowStacking }) {
4271
4289
  let [c, l] = d([]), p = u(0), m = i((e) => {
4272
4290
  l((t) => t.map((t) => t.id === e ? {
4273
4291
  ...t,
4274
4292
  dismissing: !0
4275
4293
  } : t)), setTimeout(() => {
4276
4294
  l((t) => t.filter((t) => t.id !== e));
4277
- }, Nr);
4295
+ }, Fr);
4278
4296
  }, []), h = i((e, i) => {
4279
4297
  let a = {
4280
4298
  position: i?.position ?? t,
@@ -4294,7 +4312,7 @@ function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration,
4294
4312
  };
4295
4313
  l((e) => !s && e.length > 0 ? (setTimeout(() => {
4296
4314
  l([c]);
4297
- }, Nr), e.map((e) => ({
4315
+ }, Fr), e.map((e) => ({
4298
4316
  ...e,
4299
4317
  dismissing: !0
4300
4318
  }))) : [...e, c]);
@@ -4305,14 +4323,14 @@ function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration,
4305
4323
  o,
4306
4324
  s
4307
4325
  ]);
4308
- a(() => (kr(h), () => Ar()), [h]);
4326
+ a(() => (jr(h), () => Mr()), [h]);
4309
4327
  let g = c.reduce((e, t) => {
4310
4328
  let n = t.options.position;
4311
4329
  return e[n] || (e[n] = []), e[n].push(t), e;
4312
4330
  }, {});
4313
4331
  return /* @__PURE__ */ H(B, { children: [e, /* @__PURE__ */ V(ze, { children: Object.entries(g).map(([e, t]) => /* @__PURE__ */ V("div", {
4314
- className: f(Tr.container, Pr(e)),
4315
- children: t.map((t) => /* @__PURE__ */ V(Dr, {
4332
+ className: f(Dr.container, Ir(e)),
4333
+ children: t.map((t) => /* @__PURE__ */ V(kr, {
4316
4334
  item: t,
4317
4335
  isBottom: e.startsWith("bottom"),
4318
4336
  onDismiss: m
@@ -4374,7 +4392,7 @@ var $ = {
4374
4392
  };
4375
4393
  //#endregion
4376
4394
  //#region package/common/virtualList/virtualRow.tsx
4377
- function Ir({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i, hover: a, onClick: o, observer: c, ariaRowIndex: l, ariaPosInSet: d, ariaSetSize: p, 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 }) {
4395
+ function Rr({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i, hover: a, onClick: o, observer: c, ariaRowIndex: l, ariaPosInSet: d, ariaSetSize: p, 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 }) {
4378
4396
  let M = u(null);
4379
4397
  return s(() => {
4380
4398
  let e = M.current;
@@ -4423,7 +4441,7 @@ function Ir({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i
4423
4441
  }
4424
4442
  //#endregion
4425
4443
  //#region package/common/virtualList/virtualList.utils.ts
4426
- function Lr(e, t, n, r = 0) {
4444
+ function zr(e, t, n, r = 0) {
4427
4445
  let i = e.length, a = Array(i + 1);
4428
4446
  a[0] = 0;
4429
4447
  for (let o = 0; o < i; o++) {
@@ -4435,7 +4453,7 @@ function Lr(e, t, n, r = 0) {
4435
4453
  totalHeight: a[i]
4436
4454
  };
4437
4455
  }
4438
- function Rr(e, t, n) {
4456
+ function Br(e, t, n) {
4439
4457
  if (n <= 0) return 0;
4440
4458
  let r = 0, i = n - 1;
4441
4459
  for (; r < i;) {
@@ -4444,34 +4462,34 @@ function Rr(e, t, n) {
4444
4462
  }
4445
4463
  return r;
4446
4464
  }
4447
- function zr(e, t, n, r, i) {
4465
+ function Vr(e, t, n, r, i) {
4448
4466
  if (i === 0) return {
4449
4467
  startIndex: 0,
4450
4468
  endIndex: -1
4451
4469
  };
4452
- let a = Rr(e, t, i), o = a;
4470
+ let a = Br(e, t, i), o = a;
4453
4471
  for (; o < i && e[o] < t + n;) o++;
4454
4472
  return {
4455
4473
  startIndex: Math.max(0, a - r),
4456
4474
  endIndex: Math.min(i - 1, o + r - 1)
4457
4475
  };
4458
4476
  }
4459
- function Br(e, t, n, r, i) {
4477
+ function Hr(e, t, n, r, i) {
4460
4478
  if (e === -1 || e === t) return null;
4461
4479
  let a = r + i / 2;
4462
4480
  return (t > e ? n >= a : n <= a) ? t : null;
4463
4481
  }
4464
- function Vr(e, t, n, r) {
4482
+ function Ur(e, t, n, r) {
4465
4483
  if (n <= 0) return "before";
4466
4484
  let i = (e - t) / n;
4467
4485
  return r ? i < 1 / 3 ? "before" : i > 2 / 3 ? "after" : "inside" : i < .5 ? "before" : "after";
4468
4486
  }
4469
- function Hr(e, t) {
4487
+ function Wr(e, t) {
4470
4488
  let n = t[e], r = e + 1;
4471
4489
  for (; r < t.length && t[r] > n;) r++;
4472
4490
  return r - 1;
4473
4491
  }
4474
- function Ur(e, t) {
4492
+ function Gr(e, t) {
4475
4493
  return e.length === 0 ? "1fr" : e.map((e) => {
4476
4494
  switch (e.width.type) {
4477
4495
  case "fixed": return `${e.width.px}px`;
@@ -4483,11 +4501,11 @@ function Ur(e, t) {
4483
4501
  }
4484
4502
  }).join(" ");
4485
4503
  }
4486
- var Wr = "ahroweui:virtuallist:columns:";
4487
- function Gr(e) {
4504
+ var Kr = "ahroweui:virtuallist:columns:";
4505
+ function qr(e) {
4488
4506
  if (!e || typeof window > "u") return null;
4489
4507
  try {
4490
- let t = window.localStorage.getItem(Wr + e);
4508
+ let t = window.localStorage.getItem(Kr + e);
4491
4509
  if (!t) return null;
4492
4510
  let n = JSON.parse(t);
4493
4511
  if (n && Array.isArray(n.visible) && Array.isArray(n.known)) return {
@@ -4497,19 +4515,19 @@ function Gr(e) {
4497
4515
  } catch {}
4498
4516
  return null;
4499
4517
  }
4500
- function Kr(e, t) {
4518
+ function Jr(e, t) {
4501
4519
  return t && t.known.includes(e.key) ? t.visible.includes(e.key) : !e.defaultHidden;
4502
4520
  }
4503
4521
  //#endregion
4504
4522
  //#region package/common/virtualList/useVirtualWindow.ts
4505
- function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l, overscan: f, onLoadMore: p, loadMoreThreshold: m, forwardedRef: h }) {
4506
- let [g, _] = d(0), [v, y] = d(0), [b, x] = d(0), [S, C] = d(/* @__PURE__ */ new Map()), [w, T] = d(!1), E = u(!1), D = u(null), O = u(null), k = u([]), A = u(null), j = u(0), M = u([]), [N] = d(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4507
- C((t) => {
4523
+ function Yr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: o, overscan: l, onLoadMore: f, loadMoreThreshold: p }) {
4524
+ let [m, h] = d(0), [g, _] = d(0), [v, y] = d(0), [b, x] = d(/* @__PURE__ */ new Map()), [S, C] = d(!1), w = u(!1), T = u(null), E = u(null), D = u([]), O = u(null), k = u(0), A = u([]), [j] = d(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4525
+ x((t) => {
4508
4526
  let n = null;
4509
4527
  for (let r of e) {
4510
4528
  let e = r.target, i = Number(e.dataset.index);
4511
4529
  if (Number.isNaN(i)) continue;
4512
- let a = M.current[i];
4530
+ let a = A.current[i];
4513
4531
  if (a === void 0) continue;
4514
4532
  let o = r.borderBoxSize?.[0], s = o ? Math.round(o.blockSize) : e.offsetHeight;
4515
4533
  t.get(a) !== s && (n ||= new Map(t), n.set(a, s));
@@ -4517,46 +4535,47 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4517
4535
  return n ?? t;
4518
4536
  });
4519
4537
  }));
4520
- a(() => () => N?.disconnect(), [N]), s(() => {
4521
- let e = D.current;
4538
+ a(() => () => j?.disconnect(), [j]), s(() => {
4539
+ let e = T.current;
4522
4540
  if (!e) return;
4523
- y(e.clientHeight), x(e.clientWidth);
4541
+ _(e.clientHeight), y(e.clientWidth);
4524
4542
  let t = new ResizeObserver(() => {
4525
- y(e.clientHeight), x(e.clientWidth);
4543
+ _(e.clientHeight), y(e.clientWidth);
4526
4544
  });
4527
4545
  return t.observe(e), () => t.disconnect();
4528
4546
  }, []);
4529
- let P = i((e) => {
4547
+ let M = i((e) => {
4530
4548
  let t = e.currentTarget;
4531
- j.current = t.scrollTop, A.current ??= requestAnimationFrame(() => {
4532
- A.current = null, _(j.current);
4533
- }), p && !E.current && t.scrollTop + t.clientHeight >= t.scrollHeight - m && (E.current = !0, T(!0), p().finally(() => {
4534
- E.current = !1, T(!1);
4549
+ k.current = t.scrollTop, O.current ??= requestAnimationFrame(() => {
4550
+ O.current = null, h(k.current);
4551
+ }), f && !w.current && t.scrollTop + t.clientHeight >= t.scrollHeight - p && (w.current = !0, C(!0), f().finally(() => {
4552
+ w.current = !1, C(!1);
4535
4553
  }));
4536
- }, [p, m]);
4554
+ }, [f, p]);
4537
4555
  a(() => () => {
4538
- A.current != null && cancelAnimationFrame(A.current);
4556
+ O.current != null && cancelAnimationFrame(O.current);
4539
4557
  }, []), s(() => {
4540
- M.current = t;
4558
+ A.current = t;
4541
4559
  });
4542
- let { offsets: F, totalHeight: I } = c(() => Lr(t, S, r, l), [
4560
+ let { offsets: N, totalHeight: P } = c(() => zr(t, b, r, o), [
4543
4561
  t,
4544
- S,
4562
+ b,
4545
4563
  r,
4546
- l
4564
+ o
4547
4565
  ]);
4548
4566
  s(() => {
4549
- let t = D.current, n = k.current;
4550
- if (k.current = F, !t || n.length === 0) return;
4567
+ let t = T.current, n = D.current;
4568
+ if (D.current = N, !t || n.length === 0) return;
4551
4569
  let r = t.scrollTop;
4552
4570
  if (r <= 0) return;
4553
- let i = Rr(n, r, n.length - 1);
4571
+ let i = Br(n, r, n.length - 1);
4554
4572
  if (i >= e.length) return;
4555
- let a = r - n[i], o = F[i] + a;
4556
- Math.abs(o - r) > .5 && (t.scrollTop = o, j.current = o, _(o));
4557
- }, [F, e.length]), o(h, () => {
4573
+ let a = r - n[i], o = N[i] + a;
4574
+ Math.abs(o - r) > .5 && (t.scrollTop = o, k.current = o, h(o));
4575
+ }, [N, e.length]);
4576
+ let F = c(() => {
4558
4577
  function t(e, t) {
4559
- let n = D.current;
4578
+ let n = T.current;
4560
4579
  if (!n) return;
4561
4580
  let r = Math.max(0, e);
4562
4581
  typeof n.scrollTo == "function" ? n.scrollTo({
@@ -4565,9 +4584,9 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4565
4584
  }) : n.scrollTop = r;
4566
4585
  }
4567
4586
  function r(n, r) {
4568
- let i = D.current;
4587
+ let i = T.current;
4569
4588
  if (!i || e.length === 0) return;
4570
- 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;
4589
+ 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;
4571
4590
  u === "center" ? d -= (l - s) / 2 : u === "end" && (d -= l - s), t(d, r?.behavior);
4572
4591
  }
4573
4592
  return {
@@ -4579,38 +4598,38 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4579
4598
  scrollToTop(e) {
4580
4599
  t(0, e?.behavior);
4581
4600
  },
4582
- getScrollElement: () => D.current
4601
+ getScrollElement: () => T.current
4583
4602
  };
4584
4603
  }, [
4585
4604
  e,
4586
- F,
4605
+ N,
4587
4606
  n
4588
- ]);
4589
- let { startIndex: ee, endIndex: L } = c(() => zr(F, g, v, f, e.length), [
4590
- F,
4607
+ ]), { startIndex: I, endIndex: ee } = c(() => Vr(N, m, g, l, e.length), [
4608
+ N,
4609
+ m,
4591
4610
  g,
4592
- v,
4593
- f,
4611
+ l,
4594
4612
  e.length
4595
4613
  ]);
4596
4614
  return {
4597
- rootRef: D,
4598
- headerRef: O,
4599
- rowObserver: N,
4600
- keysRef: M,
4601
- offsets: F,
4602
- totalHeight: I,
4603
- containerHeight: v,
4604
- containerWidth: b,
4605
- startIndex: ee,
4606
- endIndex: L,
4607
- handleScroll: P,
4608
- showLoadMoreSpinner: w
4615
+ rootRef: T,
4616
+ headerRef: E,
4617
+ rowObserver: j,
4618
+ keysRef: A,
4619
+ offsets: N,
4620
+ totalHeight: P,
4621
+ containerHeight: g,
4622
+ containerWidth: v,
4623
+ startIndex: I,
4624
+ endIndex: ee,
4625
+ handleScroll: M,
4626
+ showLoadMoreSpinner: S,
4627
+ scrollApi: F
4609
4628
  };
4610
4629
  }
4611
4630
  //#endregion
4612
4631
  //#region package/common/virtualList/useSelection.ts
4613
- function Jr({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionChange: i }) {
4632
+ function Xr({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionChange: i }) {
4614
4633
  let a = r !== void 0, [o, s] = d(/* @__PURE__ */ new Set()), c = a ? r : o;
4615
4634
  function l(e) {
4616
4635
  a || s(e), i?.(e);
@@ -4634,14 +4653,14 @@ function Jr({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionC
4634
4653
  }
4635
4654
  //#endregion
4636
4655
  //#region package/common/virtualList/useColumns.ts
4637
- function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisibleColumnsChange: i, persistColumnsKey: o, showColumnToggle: c, rootRef: l, startIndex: f, endIndex: p, containerHeight: m, containerWidth: h }) {
4638
- let g = r !== void 0, [_, v] = d(!1), y = u(null), [b, x] = d({}), [S, C] = d(() => {
4639
- let t = Gr(o);
4640
- return new Set((e ?? []).filter((e) => Kr(e, t)).map((e) => e.key));
4641
- }), w = u(new Set((e ?? []).map((e) => e.key)));
4656
+ function Zr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisibleColumnsChange: o, persistColumnsKey: c, showColumnToggle: l, rootRef: f, startIndex: p, endIndex: m, containerHeight: h, containerWidth: g }) {
4657
+ let _ = r !== void 0, [v, y] = d(!1), b = u(null), [x, S] = d({}), [C, w] = d(() => {
4658
+ let t = qr(c);
4659
+ return new Set((e ?? []).filter((e) => Jr(e, t)).map((e) => e.key));
4660
+ }), T = u(new Set((e ?? []).map((e) => e.key)));
4642
4661
  a(() => {
4643
- if (g) return;
4644
- let t = e ?? [], n = new Set(t.map((e) => e.key)), r = w.current, i = n.size === r.size;
4662
+ if (_) return;
4663
+ let t = e ?? [], n = new Set(t.map((e) => e.key)), r = T.current, i = n.size === r.size;
4645
4664
  if (i) {
4646
4665
  for (let e of n) if (!r.has(e)) {
4647
4666
  i = !1;
@@ -4649,53 +4668,66 @@ function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
4649
4668
  }
4650
4669
  }
4651
4670
  if (i) return;
4652
- w.current = n;
4653
- let a = Gr(o);
4654
- C((e) => {
4671
+ T.current = n;
4672
+ let a = qr(c);
4673
+ w((e) => {
4655
4674
  let n = /* @__PURE__ */ new Set();
4656
- for (let i of t) r.has(i.key) ? e.has(i.key) && n.add(i.key) : Kr(i, a) && n.add(i.key);
4675
+ for (let i of t) r.has(i.key) ? e.has(i.key) && n.add(i.key) : Jr(i, a) && n.add(i.key);
4657
4676
  return n;
4658
4677
  });
4659
4678
  }, [
4660
4679
  e,
4661
- g,
4662
- o
4680
+ _,
4681
+ c
4663
4682
  ]), a(() => {
4664
- if (g || !o || typeof window > "u") return;
4683
+ if (_ || !c || typeof window > "u") return;
4665
4684
  let t = e ?? [];
4666
- if (!(t.length === 0 || S.size === 0)) try {
4667
- window.localStorage.setItem(Wr + o, JSON.stringify({
4668
- visible: [...S],
4685
+ if (!(t.length === 0 || C.size === 0)) try {
4686
+ window.localStorage.setItem(Kr + c, JSON.stringify({
4687
+ visible: [...C],
4669
4688
  known: t.map((e) => e.key)
4670
4689
  }));
4671
4690
  } catch {}
4672
4691
  }, [
4673
- S,
4692
+ C,
4674
4693
  e,
4675
- g,
4676
- o
4694
+ _,
4695
+ c
4677
4696
  ]);
4678
- let T = g ? new Set(r) : S;
4697
+ let E = _ ? new Set(r) : C;
4679
4698
  a(() => {
4680
- if (!_) return;
4699
+ if (!v) return;
4681
4700
  function e(e) {
4682
- y.current && !y.current.contains(e.target) && v(!1);
4701
+ b.current && !b.current.contains(e.target) && y(!1);
4683
4702
  }
4684
4703
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
4685
- }, [_]);
4686
- let E = !!e?.length, D = E ? e.filter((e) => T.has(e.key)) : [], O = E ? e.filter((e) => !e.defaultHidden && !T.has(e.key)).length : 0, k = E ? `${n && E ? "40px " : ""}${Ur(D, b)}` : void 0, A = c !== !1 && E, j = D.filter((e) => e.width.type === "fit"), M = j.length > 0, N = j.map((e) => e.key).join("|"), [P, F] = d({
4687
- key: N,
4704
+ }, [v]);
4705
+ 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 " : ""}${Gr(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] = d({
4706
+ key: P,
4688
4707
  items: t
4689
4708
  });
4690
- (P.key !== N || P.items !== t) && (F({
4691
- key: N,
4709
+ (F.key !== P || F.items !== t) && (I({
4710
+ key: P,
4692
4711
  items: t
4693
- }), Object.keys(b).length > 0 && x({})), s(() => {
4694
- if (!M) return;
4695
- let e = l.current;
4696
- e && x((t) => {
4712
+ }), Object.keys(x).length > 0 && S({})), a(() => {
4713
+ let e = requestAnimationFrame(() => {
4714
+ S((e) => Object.keys(e).length > 0 ? {} : e);
4715
+ });
4716
+ return () => cancelAnimationFrame(e);
4717
+ }, []), a(() => {
4718
+ if (typeof document > "u" || !document.fonts?.ready) return;
4719
+ let e = !1;
4720
+ return document.fonts.ready.then(() => {
4721
+ e || S((e) => Object.keys(e).length > 0 ? {} : e);
4722
+ }), () => {
4723
+ e = !0;
4724
+ };
4725
+ }, []), s(() => {
4726
+ if (!N) return;
4727
+ let e = f.current;
4728
+ e && S((t) => {
4697
4729
  let n = !1, r = { ...t };
4698
- for (let i of j) {
4730
+ for (let i of M) {
4699
4731
  let a = 0;
4700
4732
  if (e.querySelectorAll(`[data-fit-key="${i.key}"]`).forEach((e) => {
4701
4733
  let t = e, n = t.scrollWidth > t.clientWidth && parseFloat(getComputedStyle(t).paddingRight) || 0, r = t.scrollWidth + n;
@@ -4707,40 +4739,42 @@ function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
4707
4739
  return n ? r : t;
4708
4740
  });
4709
4741
  }, [
4710
- M,
4711
4742
  N,
4712
- b,
4713
- f,
4743
+ P,
4744
+ x,
4714
4745
  p,
4715
4746
  m,
4716
- h
4747
+ h,
4748
+ g
4717
4749
  ]);
4718
- function I(e) {
4719
- let t = new Set(T);
4750
+ let ee = i(() => S({}), []);
4751
+ function te(e) {
4752
+ let t = new Set(E);
4720
4753
  if (t.has(e)) {
4721
4754
  if (t.size <= 1) return;
4722
4755
  t.delete(e);
4723
4756
  } else t.add(e);
4724
4757
  let n = [...t];
4725
- g || C(t), i?.(n);
4758
+ _ || w(t), o?.(n);
4726
4759
  }
4727
4760
  return {
4728
- hasColumns: E,
4729
- visibleColumns: D,
4730
- columnTemplate: k,
4731
- shouldShowToggle: A,
4732
- effectiveVisible: T,
4733
- manuallyHiddenCount: O,
4734
- toggleOpen: _,
4735
- setToggleOpen: v,
4736
- toggleRef: y,
4737
- handleToggleColumn: I
4761
+ hasColumns: D,
4762
+ visibleColumns: O,
4763
+ columnTemplate: A,
4764
+ shouldShowToggle: j,
4765
+ effectiveVisible: E,
4766
+ manuallyHiddenCount: k,
4767
+ toggleOpen: v,
4768
+ setToggleOpen: y,
4769
+ toggleRef: b,
4770
+ handleToggleColumn: te,
4771
+ recalculateColumns: ee
4738
4772
  };
4739
4773
  }
4740
4774
  //#endregion
4741
4775
  //#region package/common/virtualList/useRowDrag.ts
4742
- function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longPressDelay: o, dragHandle: c, treeIndentPx: l, keys: f, depths: p, isGroupAt: m, rootRef: h, keysRef: g }) {
4743
- let _ = u(null), [v, y] = d(null), [b, x] = d(null), S = u(null), C = u(n), w = u(r), T = u(t), E = u(p), D = u(m), O = u(!0), k = u(null), A = u(!1), j = u(null), M = u(0), N = u(0), P = u(null), F = u(!1), I = u(null), ee = u(0), L = u(0), R = u(0), [te] = d(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)").matches : !1);
4776
+ function Qr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longPressDelay: o, dragHandle: c, treeIndentPx: l, keys: f, depths: p, isGroupAt: m, rootRef: h, keysRef: g }) {
4777
+ let _ = u(null), [v, y] = d(null), [b, x] = d(null), S = u(null), C = u(n), w = u(r), T = u(t), E = u(p), D = u(m), O = u(!0), k = u(null), A = u(!1), j = u(null), M = u(0), N = u(0), P = u(null), F = u(!1), I = u(null), ee = u(0), te = u(0), L = u(0), [R] = d(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)").matches : !1);
4744
4778
  s(() => {
4745
4779
  C.current = n, w.current = r, T.current = t, E.current = p, S.current = b, D.current = m;
4746
4780
  });
@@ -4758,8 +4792,8 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4758
4792
  let r = _.current;
4759
4793
  if (r == null) return null;
4760
4794
  let i = f.indexOf(r);
4761
- if (i !== -1 && e >= i && e <= Hr(i, p)) return null;
4762
- let a = Vr(t, n.top, n.height, m(e));
4795
+ if (i !== -1 && e >= i && e <= Wr(i, p)) return null;
4796
+ let a = Ur(t, n.top, n.height, m(e));
4763
4797
  return {
4764
4798
  key: f[e],
4765
4799
  position: a
@@ -4784,7 +4818,7 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4784
4818
  t.preventDefault();
4785
4819
  let r = _.current;
4786
4820
  if (r == null) return;
4787
- let i = f.indexOf(r), a = t.currentTarget.getBoundingClientRect(), o = Br(i, e, t.clientY, a.top, a.height);
4821
+ let i = f.indexOf(r), a = t.currentTarget.getBoundingClientRect(), o = Hr(i, e, t.clientY, a.top, a.height);
4788
4822
  o != null && n?.(i, o);
4789
4823
  }
4790
4824
  function oe() {
@@ -4793,29 +4827,29 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4793
4827
  let U = i((e) => {
4794
4828
  let t = _.current, n = h.current;
4795
4829
  if (t == null || !n) return;
4796
- let r = I.current ? N.current - ee.current + R.current / 2 : N.current, i = document.elementFromPoint(e, r), a = i && n.contains(i) ? i.closest("[data-index]") : null;
4830
+ let r = I.current ? N.current - ee.current + L.current / 2 : N.current, i = document.elementFromPoint(e, r), a = i && n.contains(i) ? i.closest("[data-index]") : null;
4797
4831
  if (!a) return;
4798
4832
  let o = Number(a.dataset.index);
4799
4833
  if (Number.isNaN(o)) return;
4800
4834
  let s = g.current.indexOf(t), c = a.getBoundingClientRect();
4801
4835
  if (T.current) {
4802
4836
  let e = g.current, t = E.current;
4803
- if (s !== -1 && o >= s && o <= Hr(s, t)) {
4837
+ if (s !== -1 && o >= s && o <= Wr(s, t)) {
4804
4838
  x(null);
4805
4839
  return;
4806
4840
  }
4807
- let n = Vr(r, c.top, c.height, D.current(o)), i = {
4841
+ let n = Ur(r, c.top, c.height, D.current(o)), i = {
4808
4842
  key: e[o],
4809
4843
  position: n
4810
4844
  };
4811
4845
  x((e) => e?.key === i.key && e?.position === i.position ? e : i);
4812
4846
  return;
4813
4847
  }
4814
- let l = Br(s, o, r, c.top, c.height);
4848
+ let l = Hr(s, o, r, c.top, c.height);
4815
4849
  l != null && C.current?.(s, l);
4816
4850
  }, [h, g]), se = i(() => {
4817
4851
  let e = I.current;
4818
- e && (e.style.transform = `translate(${L.current}px, ${N.current - ee.current}px)`);
4852
+ e && (e.style.transform = `translate(${te.current}px, ${N.current - ee.current}px)`);
4819
4853
  }, []), W = i(() => {
4820
4854
  let e = h.current;
4821
4855
  if (!e || !A.current) {
@@ -4843,20 +4877,20 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4843
4877
  e.cancelable && e.preventDefault(), se(), U(t.clientX);
4844
4878
  }
4845
4879
  }, [U, se]);
4846
- function ue(n, r) {
4880
+ function G(n, r) {
4847
4881
  if (!e && !t || c && !r.target.closest("[data-drag-handle]") || k.current != null || A.current) return;
4848
4882
  let i = r.touches[0];
4849
4883
  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(() => {
4850
- k.current = null, A.current = !0, _.current = n, y(n), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", G(n), P.current ??= requestAnimationFrame(W);
4884
+ 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(W);
4851
4885
  }, o));
4852
4886
  }
4853
- function G(e) {
4887
+ function ue(e) {
4854
4888
  let t = h.current;
4855
4889
  if (!t) return;
4856
4890
  let n = g.current.indexOf(e), r = t.querySelector(`[data-index="${n}"]`);
4857
4891
  if (!r) return;
4858
4892
  let i = r.getBoundingClientRect();
4859
- ee.current = N.current - i.top, L.current = i.left, R.current = i.height;
4893
+ ee.current = N.current - i.top, te.current = i.left, L.current = i.height;
4860
4894
  let a = r.cloneNode(!0);
4861
4895
  a.removeAttribute("data-index"), a.setAttribute("data-drag-clone", "true"), a.setAttribute("aria-hidden", "true"), a.classList.add($.virtualListDragClone), Object.assign(a.style, {
4862
4896
  position: "fixed",
@@ -4879,86 +4913,90 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4879
4913
  let i = t && b?.key === r ? b.position : void 0;
4880
4914
  return {
4881
4915
  reorderable: K,
4882
- draggable: K && !te || void 0,
4916
+ draggable: K && !R || void 0,
4883
4917
  isDragging: K && r === v,
4884
4918
  onMouseDown: K && c ? ne : void 0,
4885
4919
  onDragStart: K ? (e) => z(r, e) : void 0,
4886
4920
  onDragOver: t ? (e) => B(n, e) : e ? (e) => ae(n, e) : void 0,
4887
4921
  onDragEnd: t ? ie : e ? oe : void 0,
4888
4922
  onDrop: t ? H : void 0,
4889
- onTouchStart: K ? (e) => ue(r, e) : void 0,
4923
+ onTouchStart: K ? (e) => G(r, e) : void 0,
4890
4924
  dropPosition: i,
4891
4925
  dropIndentPx: i ? (p[n] ?? 0) * l : void 0
4892
4926
  };
4893
4927
  }
4894
- function fe() {
4928
+ function q() {
4895
4929
  return F.current ? (F.current = !1, !0) : !1;
4896
4930
  }
4897
4931
  return {
4898
4932
  draggingKey: v,
4899
4933
  dragEnabled: K,
4900
4934
  getRowDragProps: de,
4901
- consumeSuppressedClick: fe
4935
+ consumeSuppressedClick: q
4902
4936
  };
4903
4937
  }
4904
4938
  //#endregion
4905
4939
  //#region package/common/virtualList/virtualList.tsx
4906
- function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: a = 40, overscan: o = 3, rowGap: s = 0, selectedKey: l, getItemKey: u, onRowClick: d, visibleColumnKeys: m, onVisibleColumnsChange: h, persistColumnsKey: g, showColumnToggle: _, onLoadMore: v, loadMoreThreshold: y = 100, isLoading: b = !1, multiSelect: x = !1, selectedKeys: S, onSelectionChange: C, reorderable: w = !1, onReorder: T, longPressDelay: E = 400, treeReorder: D = !1, getItemDepth: O, isGroup: A, onTreeDrop: j, treeIndentPx: M = 24, dragHandle: N = !1, showDivider: P = !0, rowHover: F = !0, className: I, style: ee, classNames: L, styles: R, ...te }, ne) {
4907
- let z = i((e, t) => u ? u(e, t) : t, [u]), re = c(() => e.map((e, t) => z(e, t)), [e, z]), ie = c(() => O ? e.map((e, t) => O(e, t)) : [], [e, O]), ae = i((t) => A ? A(e[t], t) : !1, [A, e]), oe = qr({
4940
+ function $r({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: a = 40, overscan: s = 3, rowGap: l = 0, selectedKey: u, getItemKey: d, onRowClick: m, 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: A, isGroup: j, onTreeDrop: M, treeIndentPx: N = 24, dragHandle: P = !1, showDivider: F = !0, rowHover: I = !0, className: ee, style: te, classNames: L, styles: R, ...ne }, z) {
4941
+ let re = i((e, t) => d ? d(e, t) : t, [d]), ie = c(() => e.map((e, t) => re(e, t)), [e, re]), ae = c(() => A ? e.map((e, t) => A(e, t)) : [], [e, A]), oe = i((t) => j ? j(e[t], t) : !1, [j, e]), U = Yr({
4908
4942
  items: e,
4909
- keys: re,
4910
- getItemKey: u,
4943
+ keys: ie,
4944
+ getItemKey: d,
4911
4945
  estimatedRowHeight: a,
4912
- rowGap: s,
4913
- overscan: o,
4914
- onLoadMore: v,
4915
- loadMoreThreshold: y,
4916
- forwardedRef: ne
4917
- }), { rootRef: U, headerRef: se, rowObserver: W, keysRef: ce, offsets: le, totalHeight: ue, startIndex: G, endIndex: K } = oe, de = Jr({
4946
+ rowGap: l,
4947
+ overscan: s,
4948
+ onLoadMore: y,
4949
+ loadMoreThreshold: b
4950
+ }), { rootRef: se, headerRef: W, rowObserver: ce, keysRef: le, offsets: G, totalHeight: ue, startIndex: K, endIndex: de } = U, q = Xr({
4918
4951
  items: e,
4919
- getKey: z,
4920
- multiSelect: x,
4921
- selectedKeys: S,
4922
- onSelectionChange: C
4923
- }), { effectiveSelectedKeys: fe } = de, { hasColumns: pe, visibleColumns: me, columnTemplate: he, shouldShowToggle: ge, effectiveVisible: _e, manuallyHiddenCount: ve, toggleOpen: ye, setToggleOpen: be, toggleRef: xe, handleToggleColumn: Se } = Yr({
4952
+ getKey: re,
4953
+ multiSelect: S,
4954
+ selectedKeys: C,
4955
+ onSelectionChange: w
4956
+ }), { effectiveSelectedKeys: fe } = q, { hasColumns: pe, visibleColumns: me, columnTemplate: he, shouldShowToggle: ge, effectiveVisible: _e, manuallyHiddenCount: ve, toggleOpen: ye, setToggleOpen: be, toggleRef: xe, handleToggleColumn: J, recalculateColumns: Se } = Zr({
4924
4957
  columns: n,
4925
4958
  items: e,
4926
- multiSelect: x,
4927
- visibleColumnKeys: m,
4928
- onVisibleColumnsChange: h,
4929
- persistColumnsKey: g,
4930
- showColumnToggle: _,
4931
- rootRef: U,
4932
- startIndex: G,
4933
- endIndex: K,
4934
- containerHeight: oe.containerHeight,
4935
- containerWidth: oe.containerWidth
4936
- }), q = Xr({
4937
- reorderable: w,
4938
- treeReorder: D,
4939
- onReorder: T,
4940
- onTreeDrop: j,
4941
- longPressDelay: E,
4942
- dragHandle: N,
4943
- treeIndentPx: M,
4944
- keys: re,
4945
- depths: ie,
4946
- isGroupAt: ae,
4947
- rootRef: U,
4948
- keysRef: ce
4949
- }), Ce = (n) => {
4950
- let r = e[n], i = z(r, n), a = l != null && i === l || fe.has(i), o = q.getRowDragProps(n, i);
4951
- return /* @__PURE__ */ V(Ir, {
4959
+ multiSelect: S,
4960
+ visibleColumnKeys: h,
4961
+ onVisibleColumnsChange: g,
4962
+ persistColumnsKey: _,
4963
+ showColumnToggle: v,
4964
+ rootRef: se,
4965
+ startIndex: K,
4966
+ endIndex: de,
4967
+ containerHeight: U.containerHeight,
4968
+ containerWidth: U.containerWidth
4969
+ });
4970
+ o(z, () => ({
4971
+ ...U.scrollApi,
4972
+ recalculateColumns: Se
4973
+ }), [U.scrollApi, Se]);
4974
+ let Ce = Qr({
4975
+ reorderable: T,
4976
+ treeReorder: O,
4977
+ onReorder: E,
4978
+ onTreeDrop: M,
4979
+ longPressDelay: D,
4980
+ dragHandle: P,
4981
+ treeIndentPx: N,
4982
+ keys: ie,
4983
+ depths: ae,
4984
+ isGroupAt: oe,
4985
+ rootRef: se,
4986
+ keysRef: le
4987
+ }), Te = (n) => {
4988
+ let r = e[n], i = re(r, n), a = u != null && i === u || fe.has(i), o = Ce.getRowDragProps(n, i);
4989
+ return /* @__PURE__ */ V(Rr, {
4952
4990
  index: n,
4953
- top: le[n],
4991
+ top: G[n],
4954
4992
  columnTemplate: he,
4955
4993
  isSelected: a,
4956
- showDivider: P,
4957
- hover: F,
4994
+ showDivider: F,
4995
+ hover: I,
4958
4996
  onClick: () => {
4959
- q.consumeSuppressedClick() || d?.(r, n);
4997
+ Ce.consumeSuppressedClick() || m?.(r, n);
4960
4998
  },
4961
- observer: W,
4999
+ observer: ce,
4962
5000
  ariaRowIndex: pe ? n + 2 : void 0,
4963
5001
  ariaPosInSet: pe ? void 0 : n + 1,
4964
5002
  ariaSetSize: pe ? void 0 : e.length,
@@ -4969,14 +5007,14 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4969
5007
  dropIndicatorStyle: R?.dropIndicator,
4970
5008
  rowClassName: L?.row,
4971
5009
  rowStyle: R?.row,
4972
- children: pe ? /* @__PURE__ */ H(B, { children: [x && /* @__PURE__ */ V("div", {
5010
+ children: pe ? /* @__PURE__ */ H(B, { children: [S && /* @__PURE__ */ V("div", {
4973
5011
  className: f($.virtualListSelectCell, L?.selectCell),
4974
5012
  style: R?.selectCell,
4975
5013
  role: "gridcell",
4976
5014
  onClick: (e) => e.stopPropagation(),
4977
5015
  children: /* @__PURE__ */ V(qe, {
4978
5016
  selected: fe.has(i),
4979
- onToggle: () => de.handleRowSelect(i),
5017
+ onToggle: () => q.handleRowSelect(i),
4980
5018
  "aria-label": "Select row"
4981
5019
  })
4982
5020
  }), me.map((e) => /* @__PURE__ */ V("div", {
@@ -4987,24 +5025,24 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4987
5025
  children: e.renderCell(r, n)
4988
5026
  }, e.key))] }) : t?.(r, n)
4989
5027
  }, i);
4990
- }, we = [];
4991
- for (let e = G; e <= K; e++) we.push(Ce(e));
4992
- let Ee = q.draggingKey == null ? -1 : re.indexOf(q.draggingKey);
4993
- return Ee >= 0 && (Ee < G || Ee > K) && we.push(Ce(Ee)), /* @__PURE__ */ H("div", {
4994
- ...te,
4995
- ref: U,
4996
- className: f($.virtualList, q.draggingKey != null && $.virtualListReordering, I, L?.root),
5028
+ }, Ee = [];
5029
+ for (let e = K; e <= de; e++) Ee.push(Te(e));
5030
+ let De = Ce.draggingKey == null ? -1 : ie.indexOf(Ce.draggingKey);
5031
+ return De >= 0 && (De < K || De > de) && Ee.push(Te(De)), /* @__PURE__ */ H("div", {
5032
+ ...ne,
5033
+ ref: se,
5034
+ className: f($.virtualList, Ce.draggingKey != null && $.virtualListReordering, ee, L?.root),
4997
5035
  style: {
4998
5036
  height: r,
4999
- ...ee,
5037
+ ...te,
5000
5038
  ...R?.root
5001
5039
  },
5002
- onScroll: oe.handleScroll,
5040
+ onScroll: U.handleScroll,
5003
5041
  role: pe ? "grid" : "list",
5004
5042
  "aria-rowcount": pe ? e.length + 1 : void 0,
5005
5043
  children: [
5006
5044
  pe && /* @__PURE__ */ H("div", {
5007
- ref: se,
5045
+ ref: W,
5008
5046
  className: f($.virtualListHeader, L?.header),
5009
5047
  style: {
5010
5048
  gridTemplateColumns: he,
@@ -5014,13 +5052,13 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5014
5052
  role: "row",
5015
5053
  "aria-rowindex": 1,
5016
5054
  children: [
5017
- x && /* @__PURE__ */ V("div", {
5055
+ S && /* @__PURE__ */ V("div", {
5018
5056
  className: f($.virtualListSelectCell, L?.selectCell),
5019
5057
  style: R?.selectCell,
5020
5058
  role: "columnheader",
5021
5059
  children: /* @__PURE__ */ V(qe, {
5022
- selected: de.allSelected || de.someSelected,
5023
- onToggle: de.handleSelectAll,
5060
+ selected: q.allSelected || q.someSelected,
5061
+ onToggle: q.handleSelectAll,
5024
5062
  "aria-label": "Select all rows"
5025
5063
  })
5026
5064
  }),
@@ -5060,7 +5098,7 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5060
5098
  className: f($.virtualListToggleItem, L?.toggleItem),
5061
5099
  style: R?.toggleItem,
5062
5100
  selected: _e.has(e.key),
5063
- onToggle: () => Se(e.key),
5101
+ onToggle: () => J(e.key),
5064
5102
  cursorDefault: !1,
5065
5103
  children: e.label
5066
5104
  }, e.key))
@@ -5069,26 +5107,26 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5069
5107
  })
5070
5108
  ]
5071
5109
  }),
5072
- b ? /* @__PURE__ */ V("div", {
5110
+ x ? /* @__PURE__ */ V("div", {
5073
5111
  className: $.virtualListLoadingFull,
5074
- children: /* @__PURE__ */ V(Te, { className: $.virtualListSpinner })
5112
+ children: /* @__PURE__ */ V(we, { className: $.virtualListSpinner })
5075
5113
  }) : /* @__PURE__ */ V("div", {
5076
5114
  className: f($.virtualListBody, L?.body),
5077
5115
  style: {
5078
5116
  height: ue,
5079
5117
  ...R?.body
5080
5118
  },
5081
- children: we
5119
+ children: Ee
5082
5120
  }),
5083
- oe.showLoadMoreSpinner && /* @__PURE__ */ V("div", {
5121
+ U.showLoadMoreSpinner && /* @__PURE__ */ V("div", {
5084
5122
  className: f($.virtualListLoadingIndicator, L?.loadingIndicator),
5085
5123
  style: R?.loadingIndicator,
5086
- children: /* @__PURE__ */ V(Te, { className: $.virtualListSpinner })
5124
+ children: /* @__PURE__ */ V(we, { className: $.virtualListSpinner })
5087
5125
  })
5088
5126
  ]
5089
5127
  });
5090
5128
  }
5091
- var Qr = e.forwardRef(Zr), $r = {
5129
+ var ei = e.forwardRef($r), ti = {
5092
5130
  wizard: "wizard_uRBAN",
5093
5131
  "wizard-content": "wizard-content_lcl4C",
5094
5132
  wizardContent: "wizard-content_lcl4C",
@@ -5099,7 +5137,7 @@ var Qr = e.forwardRef(Zr), $r = {
5099
5137
  };
5100
5138
  //#endregion
5101
5139
  //#region package/common/wizard/wizard.tsx
5102
- function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
5140
+ function ni({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
5103
5141
  let [l, p] = d(void 0), [m, h] = d(!1), [g, _] = d(e), v = u([]), y = u(null);
5104
5142
  e !== g && (_(e), h(!0)), a(() => {
5105
5143
  if (!m) return;
@@ -5119,10 +5157,10 @@ function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5119
5157
  };
5120
5158
  return /* @__PURE__ */ V("div", {
5121
5159
  ...c,
5122
- className: f($r.wizard, o?.root, r),
5160
+ className: f(ti.wizard, o?.root, r),
5123
5161
  style: b,
5124
5162
  children: /* @__PURE__ */ V("div", {
5125
- className: f($r.wizardContentContainer, o?.container),
5163
+ className: f(ti.wizardContentContainer, o?.container),
5126
5164
  style: {
5127
5165
  width: `${t * 100}%`,
5128
5166
  marginLeft: `-${e * 100}%`,
@@ -5132,14 +5170,14 @@ function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5132
5170
  ref: (e) => {
5133
5171
  v.current[i] = e;
5134
5172
  },
5135
- className: f($r.wizardContent, o?.step),
5173
+ className: f(ti.wizardContent, o?.step),
5136
5174
  style: {
5137
5175
  width: `${100 / t}%`,
5138
5176
  marginLeft: `${100 / t * i}%`,
5139
5177
  ...s?.step
5140
5178
  },
5141
5179
  children: /* @__PURE__ */ V("div", {
5142
- className: f({ [$r.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
5180
+ className: f({ [ti.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
5143
5181
  style: s?.stepContent,
5144
5182
  inert: e === i ? void 0 : !0,
5145
5183
  children: n(i)
@@ -5150,20 +5188,20 @@ function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5150
5188
  }
5151
5189
  //#endregion
5152
5190
  //#region package/services/formValidation/formValidatorGroup.ts
5153
- function ti(e) {
5191
+ function ri(e) {
5154
5192
  let t = e;
5155
5193
  return t?.errors && Array.isArray(t.errors) ? t.errors.flatMap((e) => Object.entries(e).map(([e, t]) => ({
5156
5194
  id: e,
5157
5195
  message: t
5158
5196
  }))) : [];
5159
5197
  }
5160
- var ni = class {
5198
+ var ii = class {
5161
5199
  #e;
5162
5200
  #t;
5163
5201
  #n;
5164
5202
  #r;
5165
5203
  #i;
5166
- constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = ti, onSubmitError: o = () => void 0 } = {}) {
5204
+ constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = ri, onSubmitError: o = () => void 0 } = {}) {
5167
5205
  this.#t = !1, this.#i = [], this.getFormError = () => {
5168
5206
  let e = Object.keys(this.group);
5169
5207
  for (let t = 0; t < e.length; t += 1) {
@@ -5253,7 +5291,7 @@ var ni = class {
5253
5291
  };
5254
5292
  //#endregion
5255
5293
  //#region package/services/formValidation/FormValidatorGroupForm.tsx
5256
- function ri(e) {
5294
+ function ai(e) {
5257
5295
  return function({ children: t, ...n }) {
5258
5296
  return /* @__PURE__ */ V("form", {
5259
5297
  onSubmit: e.submit,
@@ -5265,16 +5303,16 @@ function ri(e) {
5265
5303
  }
5266
5304
  //#endregion
5267
5305
  //#region package/services/formValidation/FormValidatorGroupWithForm.tsx
5268
- var ii = (e) => {
5269
- jr(e[0].message, { type: "error" });
5270
- }, ai = class extends ni {
5306
+ var oi = (e) => {
5307
+ Nr(e[0].message, { type: "error" });
5308
+ }, si = class extends ii {
5271
5309
  constructor(e, t = null, n) {
5272
5310
  super(e, t, {
5273
5311
  ...n,
5274
- onSubmitError: n?.onSubmitError ?? ii
5275
- }), this.Form = ri(this);
5312
+ onSubmitError: n?.onSubmitError ?? oi
5313
+ }), this.Form = ai(this);
5276
5314
  }
5277
- }, oi = class {
5315
+ }, ci = class {
5278
5316
  #e;
5279
5317
  #t;
5280
5318
  #n;
@@ -5328,44 +5366,44 @@ var ii = (e) => {
5328
5366
  return this.#r;
5329
5367
  }
5330
5368
  };
5331
- oi.prototype.toString = function() {
5369
+ ci.prototype.toString = function() {
5332
5370
  return `${this.value}`;
5333
5371
  };
5334
5372
  //#endregion
5335
5373
  //#region package/services/regexp.ts
5336
- function si(e) {
5374
+ function li(e) {
5337
5375
  return /^[0-9]+$/.test(e);
5338
5376
  }
5339
- function ci(e) {
5377
+ function ui(e) {
5340
5378
  return /^[0-9]{2}.[0-9]{2}.[0-9]{4}$/.test(e);
5341
5379
  }
5342
- function li(e) {
5380
+ function di(e) {
5343
5381
  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);
5344
5382
  }
5345
- function ui(e) {
5383
+ function fi(e) {
5346
5384
  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);
5347
5385
  }
5348
- function di(e) {
5386
+ function pi(e) {
5349
5387
  return /^[A-Z]{6}[A-Z\d]{2}([A-Z\d]{3})?$/.test(e);
5350
5388
  }
5351
- function fi(e) {
5389
+ function mi(e) {
5352
5390
  return /[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}(\/[-a-zA-Z0-9@:%_+.~#?&//=]*)?$/.test(e);
5353
5391
  }
5354
- function pi(e) {
5392
+ function hi(e) {
5355
5393
  return /^[\w!@#$%^&*?±§~`'"/\\[\]{}\-,.();:><+=|öäüÖÄÜß €μ]{8,}$/.test(e);
5356
5394
  }
5357
- function mi(e) {
5395
+ function gi(e) {
5358
5396
  return /^(?=.*[a-zöäüA-ZÖÄÜß])/.test(e);
5359
5397
  }
5360
- function hi(e) {
5398
+ function _i(e) {
5361
5399
  return /^(?=.*\d)/.test(e);
5362
5400
  }
5363
- function gi(e) {
5364
- return pi(e) && mi(e) && hi(e);
5401
+ function vi(e) {
5402
+ return hi(e) && gi(e) && _i(e);
5365
5403
  }
5366
5404
  //#endregion
5367
5405
  //#region package/services/formValidation/validators.ts
5368
- var _i = { t: (e, t) => ({
5406
+ var yi = { t: (e, t) => ({
5369
5407
  "formValidators.minLength": `Must be at least ${t?.min} characters long`,
5370
5408
  "formValidators.maxLength": `Must be at most ${t?.max} characters long`,
5371
5409
  "formValidators.email": "Must be a valid email address",
@@ -5380,23 +5418,23 @@ var _i = { t: (e, t) => ({
5380
5418
  "garages.errors.bic": "Must be a valid BIC",
5381
5419
  "formValidators.minLetters": `Must contain at least ${t?.smart_count} letters`,
5382
5420
  "formValidators.minDigits": `Must contain at least ${t?.smart_count} digits`
5383
- })[e] || e }, vi = class e {
5421
+ })[e] || e }, bi = class e {
5384
5422
  static {
5385
5423
  this.minLength = (e, t) => (n) => !n || n.length < e ? {
5386
5424
  id: "minLength",
5387
- message: t || _i.t("formValidators.minLength", { min: e })
5425
+ message: t || yi.t("formValidators.minLength", { min: e })
5388
5426
  } : null;
5389
5427
  }
5390
5428
  static {
5391
5429
  this.maxLength = (e, t) => (n) => n && n.length > e ? {
5392
5430
  id: "maxLength",
5393
- message: t || _i.t("formValidators.maxLength", { max: e })
5431
+ message: t || yi.t("formValidators.maxLength", { max: e })
5394
5432
  } : null;
5395
5433
  }
5396
5434
  static {
5397
- this.email = (e) => (t) => t && !ui(t) ? {
5435
+ this.email = (e) => (t) => t && !fi(t) ? {
5398
5436
  id: "email",
5399
- message: e || _i.t("formValidators.email")
5437
+ message: e || yi.t("formValidators.email")
5400
5438
  } : null;
5401
5439
  }
5402
5440
  static {
@@ -5404,7 +5442,7 @@ var _i = { t: (e, t) => ({
5404
5442
  function t(t, n) {
5405
5443
  return !t && t !== 0 ? {
5406
5444
  id: "required",
5407
- message: e || _i.t("formValidators.required", { label: n || _i.t("formValidators.value") })
5445
+ message: e || yi.t("formValidators.required", { label: n || yi.t("formValidators.value") })
5408
5446
  } : null;
5409
5447
  }
5410
5448
  return t.validatorId = "required", t;
@@ -5413,13 +5451,13 @@ var _i = { t: (e, t) => ({
5413
5451
  static {
5414
5452
  this.mustBeNumber = (e) => (t) => t && Number.isNaN(+t) ? {
5415
5453
  id: "mustBeNumber",
5416
- message: e || _i.t("formValidators.mustBeNumber")
5454
+ message: e || yi.t("formValidators.mustBeNumber")
5417
5455
  } : null;
5418
5456
  }
5419
5457
  static {
5420
5458
  this.oneOf = (e, t) => (n) => n && !e.includes(n) ? {
5421
5459
  id: "oneOf",
5422
- message: t || _i.t("formValidators.oneOf", { allowedValues: e })
5460
+ message: t || yi.t("formValidators.oneOf", { allowedValues: e })
5423
5461
  } : null;
5424
5462
  }
5425
5463
  static {
@@ -5437,48 +5475,48 @@ var _i = { t: (e, t) => ({
5437
5475
  this.multiEmail = (e) => (t) => {
5438
5476
  if (t) {
5439
5477
  let n = t.replace(/ /g, "").replace(/,/g, ";").split(";");
5440
- for (let t = 0; t < n.length; t += 1) if (!ui(n[t])) return {
5478
+ for (let t = 0; t < n.length; t += 1) if (!fi(n[t])) return {
5441
5479
  id: "multiEmail",
5442
- message: e || _i.t("formValidators.multiEmail")
5480
+ message: e || yi.t("formValidators.multiEmail")
5443
5481
  };
5444
5482
  }
5445
5483
  return null;
5446
5484
  };
5447
5485
  }
5448
5486
  static {
5449
- this.date = (e) => (t) => t && !ci(t) && !li(t) ? {
5487
+ this.date = (e) => (t) => t && !ui(t) && !di(t) ? {
5450
5488
  id: "date",
5451
- message: e || _i.t("formValidators.date")
5489
+ message: e || yi.t("formValidators.date")
5452
5490
  } : null;
5453
5491
  }
5454
5492
  static {
5455
5493
  this.dateObject = (e) => (t) => t && !t.isValid ? {
5456
5494
  id: "date",
5457
- message: e || _i.t("formValidators.date")
5495
+ message: e || yi.t("formValidators.date")
5458
5496
  } : null;
5459
5497
  }
5460
5498
  static {
5461
- this.website = (e) => (t) => t && !fi(t) ? {
5499
+ this.website = (e) => (t) => t && !mi(t) ? {
5462
5500
  id: "website",
5463
- message: e || _i.t("garages.errors.website")
5501
+ message: e || yi.t("garages.errors.website")
5464
5502
  } : null;
5465
5503
  }
5466
5504
  static {
5467
- this.bic = (e) => (t) => t && !di(t) ? {
5505
+ this.bic = (e) => (t) => t && !pi(t) ? {
5468
5506
  id: "bic",
5469
- message: e || _i.t("garages.errors.bic")
5507
+ message: e || yi.t("garages.errors.bic")
5470
5508
  } : null;
5471
5509
  }
5472
5510
  static {
5473
5511
  this.minLetters = (e, t) => (n) => n && n.replace(/[^a-zöäüA-ZÖÄÜß]/g, "").length < e ? {
5474
5512
  id: "minLetters",
5475
- message: t || _i.t("formValidators.minLetters", { smart_count: e })
5513
+ message: t || yi.t("formValidators.minLetters", { smart_count: e })
5476
5514
  } : null;
5477
5515
  }
5478
5516
  static {
5479
5517
  this.minDigits = (e, t) => (n) => n && n.replace(/[\D]/g, "").length < e ? {
5480
5518
  id: "minDigits",
5481
- message: t || _i.t("formValidators.minDigits", { smart_count: e })
5519
+ message: t || yi.t("formValidators.minDigits", { smart_count: e })
5482
5520
  } : null;
5483
5521
  }
5484
5522
  static {
@@ -5490,7 +5528,7 @@ var _i = { t: (e, t) => ({
5490
5528
  } : r : null;
5491
5529
  };
5492
5530
  }
5493
- }, yi = class extends n {
5531
+ }, xi = class extends n {
5494
5532
  static {
5495
5533
  this.defaultProps = {
5496
5534
  formValidator: null,
@@ -5553,7 +5591,7 @@ var _i = { t: (e, t) => ({
5553
5591
  }
5554
5592
  renderTooltip() {
5555
5593
  let { errorMessage: e, formValidator: t } = this.props, { isHovered: n, isFocused: r } = this.state;
5556
- return /* @__PURE__ */ V(nt, {
5594
+ return /* @__PURE__ */ V(it, {
5557
5595
  variant: "error",
5558
5596
  message: t ? t.getCurrentErrorMessage() : e || "",
5559
5597
  isVisible: this.hasError() && (r || n)
@@ -5570,7 +5608,7 @@ var _i = { t: (e, t) => ({
5570
5608
  };
5571
5609
  //#endregion
5572
5610
  //#region package/services/formValidation/useFormValidator.ts
5573
- function bi(e) {
5611
+ function Si(e) {
5574
5612
  let [, t] = l((e) => e + 1, 0);
5575
5613
  return a(() => {
5576
5614
  if (e) return e.registerOnUpdateListener(t), () => e.removeOnUpdateListener(t);
@@ -5578,9 +5616,9 @@ function bi(e) {
5578
5616
  }
5579
5617
  //#endregion
5580
5618
  //#region package/services/formValidation/useFormValidatorGroup.ts
5581
- function xi(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, onSubmitError: o } = {}) {
5619
+ function Ci(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, onSubmitError: o } = {}) {
5582
5620
  let [, s] = l((e) => e + 1, 0), c = u(null);
5583
- c.current ||= new ai(e, null, {
5621
+ c.current ||= new si(e, null, {
5584
5622
  initialValues: t,
5585
5623
  errorParser: i,
5586
5624
  onSubmitError: o
@@ -5589,6 +5627,6 @@ function xi(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, o
5589
5627
  return f.current = n, p.current = r, a(() => (n !== void 0 && (d.onSubmitCallback = (...e) => f.current?.(...e)), r !== void 0 && (d.onValidateCallback = (...e) => p.current?.(...e)), d.registerOnUpdateListener(s), () => d.removeOnUpdateListener(s)), []), d;
5590
5628
  }
5591
5629
  //#endregion
5592
- export { xe as Accordion, ge as AccordionStyleType, Ne as ActionButtons, Re as ActionIcon, Qe as Align, ze as BodyEnd, J as Button, De as ButtonSize, Ee as ButtonStyleType, Oe as ButtonType, Ve as Card, Ge as CardActions, We as CardContent, He as CardHeader, Ue as CardMedia, qe as Checkbox, Ye as Chip, Xe as ChipContainer, mt as ColorPicker, _t as ConfirmModal, Gt as DatePicker, Ut as Dropdown, qt as EmptyState, Qt as Fab, et as FloatingMenu, oi as FormValidator, ai as FormValidatorGroup, gn as IconLoading, nn as IconPicker, an as IdleManager, Ht as InfiniteBlock, rt as Input, ln as InputDropdown, X as InputType, Ie as InteractableDiv, pn as KanbanBoard, fn as KanbanColumn, gt as Modal, yn as NumberInput, xn as OptionPicker, Tn as Overscroll, On as ProgressBar, Ae as Ripple, tr as RoomDrawer, rr as RoomViewer, or as ScrollbarProvider, cr as SearchInput, Te as SpinnerLoading, dr as Stepper, yr as TenorPicker, br as Textarea, Cr as ThemeProvider, Fr as ToastProvider, nt as Tooltip, yi as ValidatableComponent, vi as Validators, Qr as VirtualList, ei as Wizard, xr as defaultTheme, Tt as getLocale, pi as hasEightPasswordChars, hi as hasOnePasswordDigit, mi as hasOnePasswordLetter, di as isBic, ci as isDate, ui as isEmail, li as isISODate, si as isNumber, gi as isPassword, fi as isURL, St as mapLocale, wt as setLocale, jr as showToast, bi as useFormValidator, xi as useFormValidatorGroup, wr as useTheme };
5630
+ export { be as Accordion, he as AccordionStyleType, Ne as ActionButtons, Re as ActionIcon, et as Align, ze as BodyEnd, Me as Button, Ee as ButtonSize, Te as ButtonStyleType, De as ButtonType, Ve as Card, Ge as CardActions, We as CardContent, He as CardHeader, Ue as CardMedia, qe as Checkbox, Ze as Chip, Qe as ChipContainer, Je as ChipStyleType, gt as ColorPicker, yt as ConfirmModal, qt as DatePicker, Gt as Dropdown, Yt as EmptyState, en as Fab, nt as FloatingMenu, ci as FormValidator, si as FormValidatorGroup, vn as IconLoading, an as IconPicker, sn as IdleManager, Wt as InfiniteBlock, at as Input, dn as InputDropdown, X as InputType, Ie as InteractableDiv, hn as KanbanBoard, mn as KanbanColumn, vt as Modal, xn as NumberInput, Cn as OptionPicker, Dn as Overscroll, An as ProgressBar, ke as Ripple, rr as RoomDrawer, ar as RoomViewer, cr as ScrollbarProvider, ur as SearchInput, we as SpinnerLoading, pr as Stepper, xr as TenorPicker, Sr as Textarea, Tr as ThemeProvider, Lr as ToastProvider, it as Tooltip, xi as ValidatableComponent, bi as Validators, ei as VirtualList, ni as Wizard, Cr as defaultTheme, Dt as getLocale, hi as hasEightPasswordChars, _i as hasOnePasswordDigit, gi as hasOnePasswordLetter, pi as isBic, ui as isDate, fi as isEmail, di as isISODate, li as isNumber, vi as isPassword, mi as isURL, wt as mapLocale, Et as setLocale, Nr as showToast, Si as useFormValidator, Ci as useFormValidatorGroup, Er as useTheme };
5593
5631
 
5594
5632
  //# sourceMappingURL=index.mjs.map