@ahrowe/ui 0.1.9 → 0.1.11

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, faCircleCheck as y, faCircleInfo as b, faCircleXmark as x, faDoorOpen as S, faDownload as C, faDrawPolygon as w, faEnvelope as T, faEye as E, faEyeSlash as ee, faGear as D, faHandPointer as O, faLayerGroup as k, faMagnifyingGlassMinus as te, faMagnifyingGlassPlus as ne, faPen as A, faPhone as j, faPlus as M, faSearch as re, faSquare as ie, faTrash as ae, faTriangleExclamation as oe, faUpload as se, faXmark as ce, faXmarkCircle as N } from "@fortawesome/free-solid-svg-icons";
5
- import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
6
- import { createPortal as le } from "react-dom";
7
- import ue from "downshift";
8
- import de from "@mona-health/react-input-mask";
9
- import { DndContext as fe, DragOverlay as pe, PointerSensor as me, closestCorners as L, useDroppable as he, useSensor as ge, useSensors as R } from "@dnd-kit/core";
10
- import { SortableContext as _e, arrayMove as ve, useSortable as z, verticalListSortingStrategy as ye } from "@dnd-kit/sortable";
11
- import { CSS as be } from "@dnd-kit/utilities";
12
- import { NumericFormat as xe } from "react-number-format";
4
+ import { faBell as m, faCheck as h, faChevronDown as g, faChevronLeft as _, faChevronRight as v, faCircleCheck as y, faCircleInfo as b, faCircleXmark as x, faDoorOpen as S, faDownload as C, faDrawPolygon as w, faEnvelope as T, faEye as E, faEyeSlash as ee, faGear as D, faHandPointer as O, faLayerGroup as k, faMagnifyingGlassMinus as te, faMagnifyingGlassPlus as ne, faPen as A, faPhone as j, faPlus as M, faSearch as N, faSquare as re, faTrash as ie, faTriangleExclamation as ae, faUpload as oe, faXmark as se, faXmarkCircle as P } from "@fortawesome/free-solid-svg-icons";
5
+ import { Fragment as ce, jsx as F, jsxs as I } from "react/jsx-runtime";
6
+ import { createPortal as L } from "react-dom";
7
+ import le from "downshift";
8
+ import ue from "@mona-health/react-input-mask";
9
+ import { DndContext as de, DragOverlay as fe, PointerSensor as pe, closestCorners as R, useDroppable as me, useSensor as he, useSensors as z } from "@dnd-kit/core";
10
+ import { SortableContext as B, arrayMove as V, useSortable as ge, verticalListSortingStrategy as _e } from "@dnd-kit/sortable";
11
+ import { CSS as ve } from "@dnd-kit/utilities";
12
+ import { NumericFormat as ye } from "react-number-format";
13
13
  //#region package/common/accordion/accordion.types.ts
14
- var Se = /* @__PURE__ */ function(e) {
14
+ var H = /* @__PURE__ */ function(e) {
15
15
  return e.Default = "default", e.Primary = "primary", e.Plain = "plain", e;
16
- }({}), Ce = {
16
+ }({}), be = {
17
17
  accordion: "accordion_YZt8B",
18
18
  "accordion-title": "accordion-title_CGYKY",
19
19
  accordionTitle: "accordion-title_CGYKY",
@@ -33,7 +33,7 @@ var Se = /* @__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
- }, we = {
36
+ }, xe = {
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 Se = /* @__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
- }, B = {
56
+ }, Se = {
57
57
  accordion: "accordion_wkZJf",
58
58
  "accordion-title": "accordion-title_-qwNy",
59
59
  accordionTitle: "accordion-title_-qwNy",
@@ -71,13 +71,13 @@ var Se = /* @__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
- }, Te = {
75
- [Se.Default]: Ce,
76
- [Se.Primary]: we,
77
- [Se.Plain]: B
74
+ }, Ce = {
75
+ [H.Default]: be,
76
+ [H.Primary]: xe,
77
+ [H.Plain]: Se
78
78
  };
79
- function Ee({ id: e = "", title: t = "", children: n = null, expanded: r = null, onHeaderClicked: i = () => {}, styleType: o = Se.Default, startOpen: s = !1, hideHeader: c = !1, className: l, style: m, classNames: h, styles: _, ...v }) {
80
- let y = Te[o], b = u(null), [x, S] = d(r ?? s), [C, w] = d(null);
79
+ function we({ id: e = "", title: t = "", children: n = null, expanded: r = null, onHeaderClicked: i = () => {}, styleType: o = H.Default, startOpen: s = !1, hideHeader: c = !1, className: l, style: m, classNames: h, styles: _, ...v }) {
80
+ let y = Ce[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 Ee({ id: e = "", title: t = "", children: n = null, expanded: r = null,
135
135
  })]
136
136
  });
137
137
  }
138
- var De = {
138
+ var Te = {
139
139
  actionButtons: "actionButtons_7GybR",
140
140
  "actionButtons-margin": "actionButtons-margin_-XoFP",
141
141
  actionButtonsMargin: "actionButtons-margin_-XoFP"
142
- }, V = {
142
+ }, U = {
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 De = {
171
171
  buttonSizeMedium: "button-size-medium_gNVDM",
172
172
  "button-size-large": "button-size-large_xSIcS",
173
173
  buttonSizeLarge: "button-size-large_xSIcS"
174
- }, Oe = {
174
+ }, Ee = {
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 De = {
180
180
  };
181
181
  //#endregion
182
182
  //#region package/common/loading/spinnerLoading/spinnerLoading.tsx
183
- function ke({ className: e }) {
183
+ function De({ className: e }) {
184
184
  return /* @__PURE__ */ F("svg", {
185
185
  "data-testid": "spinner",
186
- className: f(Oe.spinnerLoading, e),
186
+ className: f(Ee.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 ke({ className: e }) {
196
196
  })
197
197
  });
198
198
  }
199
- ke.defaultProps = { className: void 0 };
199
+ De.defaultProps = { className: void 0 };
200
200
  //#endregion
201
201
  //#region package/common/loading/spinnerLoading/index.ts
202
- var Ae = ke, H = /* @__PURE__ */ function(e) {
202
+ var Oe = De, W = /* @__PURE__ */ function(e) {
203
203
  return e.Primary = "primary", e.Default = "default", e.Delete = "delete", e;
204
- }({}), U = /* @__PURE__ */ function(e) {
204
+ }({}), ke = /* @__PURE__ */ function(e) {
205
205
  return e.Default = "default", e.Small = "small", e.Medium = "medium", e.Large = "large", e;
206
- }({}), je = /* @__PURE__ */ function(e) {
206
+ }({}), Ae = /* @__PURE__ */ function(e) {
207
207
  return e.Button = "button", e.Reset = "reset", e.Submit = "submit", e;
208
- }({}), Me = {
208
+ }({}), je = {
209
209
  ripple: "ripple_TsvyF",
210
210
  "ripple-container": "ripple-container_QzHdC",
211
211
  rippleContainer: "ripple-container_QzHdC"
212
- }, Ne = 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
+ }, Me = 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(Me.ripple), p.current?.appendChild(r), setTimeout(() => {
217
+ r.style.left = `${t}px`, r.style.top = `${n}px`, r.style.background = c, r.classList.add(je.ripple), p.current?.appendChild(r), setTimeout(() => {
218
218
  p.current?.removeChild(r);
219
219
  }, s * 1e3 + 50);
220
220
  }
@@ -237,7 +237,7 @@ var Ae = ke, H = /* @__PURE__ */ function(e) {
237
237
  }, [t, l]);
238
238
  let _ = { "--ripple-animation-length": `${s}s` };
239
239
  return t === void 0 ? /* @__PURE__ */ F("div", {
240
- className: Me.rippleContainer,
240
+ className: je.rippleContainer,
241
241
  ref: p,
242
242
  style: {
243
243
  overflow: i ? "hidden" : "visible",
@@ -253,47 +253,47 @@ var Ae = ke, H = /* @__PURE__ */ function(e) {
253
253
  ...r
254
254
  },
255
255
  children: [t, /* @__PURE__ */ F("div", {
256
- className: Me.rippleContainer,
256
+ className: je.rippleContainer,
257
257
  ref: p,
258
258
  style: _
259
259
  })]
260
260
  });
261
- }), W = {
262
- default: V.buttonStyleDefault,
263
- primary: V.buttonStylePrimary,
264
- delete: V.buttonStyleDelete
261
+ }), Ne = {
262
+ default: U.buttonStyleDefault,
263
+ primary: U.buttonStylePrimary,
264
+ delete: U.buttonStyleDelete
265
265
  }, Pe = {
266
- default: V.buttonSizeDefault,
267
- small: V.buttonSizeSmall,
268
- medium: V.buttonSizeMedium,
269
- large: V.buttonSizeLarge
266
+ default: U.buttonSizeDefault,
267
+ small: U.buttonSizeSmall,
268
+ medium: U.buttonSizeMedium,
269
+ large: U.buttonSizeLarge
270
270
  };
271
- function G({ className: e, style: t, type: n = je.Button, styleType: r = H.Default, size: i = U.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 G({ className: e, style: t, type: n = Ae.Button, styleType: r = W.Default, size: i = ke.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__ */ F("button", {
273
273
  ...g,
274
- className: f(V.button, W[r], Pe[i], { [V.buttonNotAllowed]: c || l }, e),
274
+ className: f(U.button, Ne[r], Pe[i], { [U.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__ */ F(Ne, {
281
+ children: /* @__PURE__ */ F(Me, {
282
282
  disabled: c || l,
283
283
  children: /* @__PURE__ */ F("div", {
284
- className: f(V.buttonBackground, m?.background),
284
+ className: f(U.buttonBackground, m?.background),
285
285
  style: h?.background,
286
286
  children: /* @__PURE__ */ I("div", {
287
- className: f(V.buttonContent, m?.content),
287
+ className: f(U.buttonContent, m?.content),
288
288
  style: h?.content,
289
289
  children: [c ? /* @__PURE__ */ F("div", {
290
- className: f(V.buttonLoadingContainer, m?.loadingContainer),
290
+ className: f(U.buttonLoadingContainer, m?.loadingContainer),
291
291
  style: h?.loadingContainer,
292
- children: /* @__PURE__ */ F(Ae, { className: V.buttonLoadingIcon })
292
+ children: /* @__PURE__ */ F(Oe, { className: U.buttonLoadingIcon })
293
293
  }) : null, /* @__PURE__ */ I("div", {
294
294
  className: f(m?.label, {
295
- [V.buttonLoading]: c,
296
- [V.buttonWithIcon]: !!s
295
+ [U.buttonLoading]: c,
296
+ [U.buttonWithIcon]: !!s
297
297
  }),
298
298
  style: h?.label,
299
299
  children: [s ? /* @__PURE__ */ F(p, { icon: s }) : null, o]
@@ -303,13 +303,13 @@ function G({ className: e, style: t, type: n = je.Button, styleType: r = H.Defau
303
303
  })
304
304
  });
305
305
  }
306
- G.StyleType = H, G.Size = U, G.Type = je;
306
+ G.StyleType = W, G.Size = ke, G.Type = Ae;
307
307
  //#endregion
308
308
  //#region package/common/actionButtons/actionButtons.tsx
309
- function Fe({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = H.Primary, isSubmitButtonLoading: a = !1, isSubmitButtonDisabled: o = !1, isCancelButtonLoading: s = !1, isCancelButtonDisabled: c = !1, hidePrimaryButton: l = !1, hideSecondaryButton: u = !1, noMargin: d = !1, className: p, style: m, classNames: h, styles: g, ..._ }) {
309
+ function Fe({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = W.Primary, isSubmitButtonLoading: a = !1, isSubmitButtonDisabled: o = !1, isCancelButtonLoading: s = !1, isCancelButtonDisabled: c = !1, hidePrimaryButton: l = !1, hideSecondaryButton: u = !1, noMargin: d = !1, className: p, style: m, classNames: h, styles: g, ..._ }) {
310
310
  return /* @__PURE__ */ I("div", {
311
311
  ..._,
312
- className: f(De.actionButtons, !d && De.actionButtonsMargin, p, h?.root),
312
+ className: f(Te.actionButtons, !d && Te.actionButtonsMargin, p, h?.root),
313
313
  style: {
314
314
  ...m,
315
315
  ...g?.root
@@ -318,7 +318,7 @@ function Fe({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n
318
318
  isLoading: a,
319
319
  disabled: o,
320
320
  styleType: i,
321
- type: je.Submit,
321
+ type: Ae.Submit,
322
322
  onClick: e,
323
323
  className: h?.submitButton,
324
324
  style: g?.submitButton,
@@ -327,7 +327,7 @@ function Fe({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n
327
327
  isLoading: s,
328
328
  disabled: c,
329
329
  onClick: t,
330
- styleType: H.Default,
330
+ styleType: W.Default,
331
331
  className: h?.cancelButton,
332
332
  style: g?.cancelButton,
333
333
  children: r
@@ -353,13 +353,13 @@ var Ie = { interactableDiv: "interactableDiv_Ej8Fi" }, Le = e.forwardRef(({ clas
353
353
  Le.displayName = "InteractableDiv";
354
354
  //#endregion
355
355
  //#region package/common/interactableDiv/index.ts
356
- var Re = Le, ze = { actionIcon: "actionIcon_ganSq" };
356
+ var K = Le, Re = { actionIcon: "actionIcon_ganSq" };
357
357
  //#endregion
358
358
  //#region package/common/actionIcon/actionIcon.tsx
359
- function Be({ icon: e, className: t = "", style: n, title: r = "", onClick: i = () => {}, classNames: a, styles: o, ...s }) {
360
- return /* @__PURE__ */ F(Re, {
359
+ function ze({ icon: e, className: t = "", style: n, title: r = "", onClick: i = () => {}, classNames: a, styles: o, ...s }) {
360
+ return /* @__PURE__ */ F(K, {
361
361
  ...s,
362
- className: f(ze.actionIcon, t, a?.root),
362
+ className: f(Re.actionIcon, t, a?.root),
363
363
  style: {
364
364
  ...n,
365
365
  ...o?.root
@@ -375,11 +375,11 @@ function Be({ icon: e, className: t = "", style: n, title: r = "", onClick: i =
375
375
  }
376
376
  //#endregion
377
377
  //#region package/common/bodyEnd/bodyEnd.tsx
378
- function Ve({ children: e = null }) {
378
+ function Be({ children: e = null }) {
379
379
  let t = document.getElementById("bodyEnd");
380
- return t ? le(e, t) : (typeof process < "u" && process.env.NODE_ENV !== "production" && console.error("[BodyEnd] No element with id=\"bodyEnd\" found. Add <div id=\"bodyEnd\"></div> to your app root."), null);
380
+ return t ? L(e, t) : (typeof process < "u" && process.env.NODE_ENV !== "production" && console.error("[BodyEnd] No element with id=\"bodyEnd\" found. Add <div id=\"bodyEnd\"></div> to your app root."), null);
381
381
  }
382
- var K = {
382
+ var q = {
383
383
  card: "card_w-6Ki",
384
384
  "card-padding": "card-padding_X2-q-",
385
385
  cardPadding: "card-padding_X2-q-",
@@ -403,15 +403,15 @@ var K = {
403
403
  };
404
404
  //#endregion
405
405
  //#region package/common/card/Card.tsx
406
- function He({ className: e = void 0, children: t = null, onClick: n = void 0, tabIndex: r = null, hoverEffect: i = void 0, style: a = void 0, ...o }) {
406
+ function Ve({ className: e = void 0, children: t = null, onClick: n = void 0, tabIndex: r = null, hoverEffect: i = void 0, style: a = void 0, ...o }) {
407
407
  let s = !!n;
408
- return /* @__PURE__ */ F(Re, {
408
+ return /* @__PURE__ */ F(K, {
409
409
  ...o,
410
- className: f(K.card, K.cardPadding, K.cardShadow, s && K.cardInteractable, (s && i !== !1 || i) && K.cardHover, e),
410
+ className: f(q.card, q.cardPadding, q.cardShadow, s && q.cardInteractable, (s && i !== !1 || i) && q.cardHover, e),
411
411
  onClick: n,
412
412
  tabIndex: r ?? (s ? 0 : null),
413
413
  style: a,
414
- children: /* @__PURE__ */ F(Ne, {
414
+ children: /* @__PURE__ */ F(Me, {
415
415
  disabled: !s,
416
416
  overflowHidden: !1,
417
417
  children: t
@@ -420,21 +420,21 @@ function He({ className: e = void 0, children: t = null, onClick: n = void 0, ta
420
420
  }
421
421
  //#endregion
422
422
  //#region package/common/card/CardHeader.tsx
423
- function Ue({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r = "" }) {
423
+ function He({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r = "" }) {
424
424
  let i = typeof r == "string" && r.startsWith("http") ? r : void 0;
425
425
  return /* @__PURE__ */ I("div", {
426
- className: f(K.cardHeader, e),
426
+ className: f(q.cardHeader, e),
427
427
  children: [r && /* @__PURE__ */ F("div", {
428
- className: K.cardHeaderThumbnail,
428
+ className: q.cardHeaderThumbnail,
429
429
  style: i ? { backgroundImage: `url(${i})` } : {},
430
430
  children: !i && r
431
431
  }), /* @__PURE__ */ I("div", {
432
- className: K.cardHeaderTitles,
432
+ className: q.cardHeaderTitles,
433
433
  children: [/* @__PURE__ */ F("div", {
434
- className: K.cardHeaderTitlesMain,
434
+ className: q.cardHeaderTitlesMain,
435
435
  children: t
436
436
  }), /* @__PURE__ */ F("div", {
437
- className: K.cardHeaderTitlesSub,
437
+ className: q.cardHeaderTitlesSub,
438
438
  children: n
439
439
  })]
440
440
  })]
@@ -442,31 +442,31 @@ function Ue({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r =
442
442
  }
443
443
  //#endregion
444
444
  //#region package/common/card/CardMedia.tsx
445
- function We({ src: e = "", alt: t = "" }) {
445
+ function Ue({ src: e = "", alt: t = "" }) {
446
446
  return /* @__PURE__ */ F("img", {
447
- className: K.cardMedia,
447
+ className: q.cardMedia,
448
448
  src: e,
449
449
  alt: t
450
450
  });
451
451
  }
452
452
  //#endregion
453
453
  //#region package/common/card/CardContent.tsx
454
- function Ge({ children: e = null }) {
455
- return /* @__PURE__ */ F(P, { children: e });
454
+ function We({ children: e = null }) {
455
+ return /* @__PURE__ */ F(ce, { children: e });
456
456
  }
457
457
  //#endregion
458
458
  //#region package/common/card/CardActions.tsx
459
- function Ke({ className: e = "", actions: t = [], children: n = null }) {
459
+ function Ge({ className: e = "", actions: t = [], children: n = null }) {
460
460
  return /* @__PURE__ */ I("div", {
461
- className: f(K.cardActions, e),
462
- children: [t.map(({ id: e, onClick: t, label: n, styleType: r = H.Default }) => /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(G, {
461
+ className: f(q.cardActions, e),
462
+ children: [t.map(({ id: e, onClick: t, label: n, styleType: r = W.Default }) => /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(G, {
463
463
  onClick: t,
464
464
  styleType: r,
465
465
  children: n
466
466
  }) }, e ?? n)), n]
467
467
  });
468
468
  }
469
- var qe = {
469
+ var Ke = {
470
470
  checkbox: "checkbox_VO3c2",
471
471
  "checkbox-icon": "checkbox-icon_7O0Hm",
472
472
  checkboxIcon: "checkbox-icon_7O0Hm",
@@ -485,7 +485,7 @@ var qe = {
485
485
  };
486
486
  //#endregion
487
487
  //#region package/common/checkbox/checkbox.tsx
488
- function Je({ label: e = "", selected: t = !1, onToggle: n = () => {}, className: r = "", style: i, disabled: o = !1, lineHeight: s = "", title: c = "", tabIndex: l = 0, cursorDefault: p = !1, width: m = "17px", height: h = "17px", formValidator: g = null, children: _ = null, background: v = null, isLoading: y = !1, classNames: b, styles: x, ...S }) {
488
+ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className: r = "", style: i, disabled: o = !1, lineHeight: s = "", title: c = "", tabIndex: l = 0, cursorDefault: p = !1, width: m = "17px", height: h = "17px", formValidator: g = null, children: _ = null, background: v = null, isLoading: y = !1, classNames: b, styles: x, ...S }) {
489
489
  let C = u(null), [, w] = d(0);
490
490
  a(() => {
491
491
  if (!g) return;
@@ -498,9 +498,9 @@ function Je({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
498
498
  let E = g ? g.value : t;
499
499
  return /* @__PURE__ */ I("div", {
500
500
  ...S,
501
- className: f(qe.checkbox, {
502
- [qe.checkboxDisabled]: o,
503
- [qe.checkboxPointer]: !p
501
+ className: f(Ke.checkbox, {
502
+ [Ke.checkboxDisabled]: o,
503
+ [Ke.checkboxPointer]: !p
504
504
  }, r),
505
505
  style: i,
506
506
  onClick: T,
@@ -512,22 +512,22 @@ function Je({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
512
512
  tabIndex: l,
513
513
  children: [/* @__PURE__ */ F("div", {
514
514
  title: c,
515
- className: f(qe.checkboxIcon, y ? qe.checkboxLoading : null, b?.icon),
515
+ className: f(Ke.checkboxIcon, y ? Ke.checkboxLoading : null, b?.icon),
516
516
  style: x?.icon,
517
517
  children: y ? /* @__PURE__ */ F("div", {
518
518
  style: {
519
519
  width: m,
520
520
  height: h
521
521
  },
522
- children: /* @__PURE__ */ F(Ae, { className: qe.checkboxLoadingSpinner })
522
+ children: /* @__PURE__ */ F(Oe, { className: Ke.checkboxLoadingSpinner })
523
523
  }) : /* @__PURE__ */ I("div", {
524
524
  style: {
525
525
  width: m,
526
526
  height: h,
527
527
  ...x?.checkmark
528
528
  },
529
- className: f(qe.checkboxCheckmark, E && qe.checkboxCheckmarkChecked, b?.checkmark),
530
- children: [/* @__PURE__ */ F(Ne, {
529
+ className: f(Ke.checkboxCheckmark, E && Ke.checkboxCheckmarkChecked, b?.checkmark),
530
+ children: [/* @__PURE__ */ F(Me, {
531
531
  ref: C,
532
532
  manualOnly: !0,
533
533
  overflowHidden: !1,
@@ -558,7 +558,7 @@ function Je({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
558
558
  })]
559
559
  });
560
560
  }
561
- var Ye = {
561
+ var Je = {
562
562
  chip: "chip_rCTMl",
563
563
  "chip-clickable": "chip-clickable_WTVjG",
564
564
  chipClickable: "chip-clickable_WTVjG",
@@ -575,31 +575,31 @@ var Ye = {
575
575
  };
576
576
  //#endregion
577
577
  //#region package/common/chip/chip.tsx
578
- function Xe({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon: r = !1, onClick: i, onRemove: a, ...o }) {
578
+ function Ye({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon: r = !1, onClick: i, onRemove: a, ...o }) {
579
579
  let s = c(() => {
580
580
  if (typeof t == "string" && t.startsWith("http")) return t;
581
581
  }, [t]);
582
582
  return /* @__PURE__ */ F("div", {
583
583
  ...o,
584
- className: f(Ye.chip, i && Ye.chipClickable, e),
584
+ className: f(Je.chip, i && Je.chipClickable, e),
585
585
  onClick: i,
586
- children: /* @__PURE__ */ F(Ne, {
586
+ children: /* @__PURE__ */ F(Me, {
587
587
  disabled: !i,
588
588
  style: { borderRadius: "inherit" },
589
589
  children: /* @__PURE__ */ I("div", {
590
- className: Ye.chipInner,
590
+ className: Je.chipInner,
591
591
  children: [
592
592
  t && /* @__PURE__ */ F("div", {
593
- className: Ye.chipThumbnail,
593
+ className: Je.chipThumbnail,
594
594
  style: s ? { backgroundImage: `url(${s})` } : {},
595
595
  children: !s && t
596
596
  }),
597
597
  /* @__PURE__ */ F("div", {
598
- className: Ye.chipText,
598
+ className: Je.chipText,
599
599
  children: n
600
600
  }),
601
- r && /* @__PURE__ */ F(Be, {
602
- icon: N,
601
+ r && /* @__PURE__ */ F(ze, {
602
+ icon: P,
603
603
  onClick: (e) => {
604
604
  e.stopPropagation(), a?.();
605
605
  }
@@ -611,14 +611,14 @@ function Xe({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon
611
611
  }
612
612
  //#endregion
613
613
  //#region package/common/chip/chipContainer.tsx
614
- function Ze({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
614
+ function Xe({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
615
615
  return /* @__PURE__ */ F("div", {
616
616
  ...r,
617
- className: f(Ye.chipContainer, n && Ye.chipContainerInline, e),
617
+ className: f(Je.chipContainer, n && Je.chipContainerInline, e),
618
618
  children: t
619
619
  });
620
620
  }
621
- var Qe = {
621
+ var Ze = {
622
622
  floatingMenu: "floatingMenu_E1XCy",
623
623
  "floatingMenu-content": "floatingMenu-content_AmxkA",
624
624
  floatingMenuContent: "floatingMenu-content_AmxkA",
@@ -641,15 +641,15 @@ var Qe = {
641
641
  "floatingMenu-anim": "floatingMenu-anim_5KB-f",
642
642
  floatingMenuAnim: "floatingMenu-anim_5KB-f",
643
643
  showMenu: "showMenu_AprCh"
644
- }, $e = /* @__PURE__ */ function(e) {
644
+ }, Qe = /* @__PURE__ */ function(e) {
645
645
  return e.Left = "left", e.Right = "right", e.Center = "center", e;
646
646
  }({});
647
647
  //#endregion
648
648
  //#region package/common/floatingMenu/floatingMenu.tsx
649
- function et(e) {
649
+ function $e(e) {
650
650
  return e.charAt(0).toUpperCase() + e.slice(1);
651
651
  }
652
- function tt({ align: e = $e.Left, children: t = null, content: n = null, isOpen: r = !1, onOpenChange: i = () => {}, dontCloseOnChildClick: o = !1, className: s, style: c, classNames: l, styles: p, ...m }) {
652
+ 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 }) {
653
653
  let h = u(null), g = u(null), _ = u(i), [v, y] = d(10), [b, x] = d(null);
654
654
  a(() => {
655
655
  _.current = i;
@@ -686,19 +686,19 @@ function tt({ align: e = $e.Left, children: t = null, content: n = null, isOpen:
686
686
  return window.addEventListener("mouseup", e), () => window.removeEventListener("mouseup", e);
687
687
  }, [r, o]), /* @__PURE__ */ I("div", {
688
688
  ...m,
689
- className: f(Qe.floatingMenu, s, l?.root),
689
+ className: f(Ze.floatingMenu, s, l?.root),
690
690
  style: {
691
691
  ...c,
692
692
  ...p?.root
693
693
  },
694
694
  children: [/* @__PURE__ */ F("div", {
695
- className: f(Qe.floatingMenuContent, l?.trigger),
695
+ className: f(Ze.floatingMenuContent, l?.trigger),
696
696
  style: p?.trigger,
697
697
  ref: g,
698
698
  onClick: S,
699
699
  children: t
700
700
  }), r && /* @__PURE__ */ I("div", {
701
- className: f(Qe.floatingMenuAnim, l?.menu),
701
+ className: f(Ze.floatingMenuAnim, l?.menu),
702
702
  style: {
703
703
  width: `${v}px`,
704
704
  ...b && {
@@ -707,16 +707,16 @@ function tt({ align: e = $e.Left, children: t = null, content: n = null, isOpen:
707
707
  },
708
708
  ...p?.menu
709
709
  },
710
- children: [/* @__PURE__ */ F("div", { className: f(Qe.floatingMenuContainerFlag, Qe[`floatingMenuContainerFlagAlign${et(e)}`]) }), /* @__PURE__ */ F("div", {
710
+ children: [/* @__PURE__ */ F("div", { className: f(Ze.floatingMenuContainerFlag, Ze[`floatingMenuContainerFlagAlign${$e(e)}`]) }), /* @__PURE__ */ F("div", {
711
711
  ref: h,
712
- className: f(Qe.floatingMenuContainer, Qe[`floatingMenuContainerAlign${et(e)}`], l?.menuContainer),
712
+ className: f(Ze.floatingMenuContainer, Ze[`floatingMenuContainerAlign${$e(e)}`], l?.menuContainer),
713
713
  style: p?.menuContainer,
714
714
  children: n
715
715
  })]
716
716
  })]
717
717
  });
718
718
  }
719
- var nt = {
719
+ var tt = {
720
720
  tooltipBubble: "tooltipBubble_uyev0",
721
721
  tooltipDetails: "tooltipDetails_R7N16",
722
722
  "tooltipDetails-icon": "tooltipDetails-icon_rsjns",
@@ -725,30 +725,30 @@ var nt = {
725
725
  };
726
726
  //#endregion
727
727
  //#region package/common/tooltip/tooltip.tsx
728
- function rt({ variant: e, message: t = "", isVisible: n = !0, tooltipPosition: r, onClick: i }) {
728
+ function nt({ variant: e, message: t = "", isVisible: n = !0, tooltipPosition: r, onClick: i }) {
729
729
  let [a, o] = d(!1);
730
730
  return e === "info" ? n ? /* @__PURE__ */ F("div", {
731
- className: f(nt.tooltipBubble, r),
731
+ className: f(tt.tooltipBubble, r),
732
732
  onClick: i,
733
733
  children: t
734
734
  }) : null : e === "details" ? /* @__PURE__ */ I("div", {
735
- className: nt.tooltipDetails,
735
+ className: tt.tooltipDetails,
736
736
  children: [/* @__PURE__ */ F("span", {
737
- className: nt.tooltipDetailsIcon,
737
+ className: tt.tooltipDetailsIcon,
738
738
  onMouseEnter: () => o(!0),
739
739
  onMouseLeave: () => o(!1),
740
740
  children: "?"
741
741
  }), a && /* @__PURE__ */ F("div", {
742
- className: f(nt.tooltipBubble, r),
742
+ className: f(tt.tooltipBubble, r),
743
743
  children: t
744
744
  })]
745
745
  }) : e === "error" && n ? /* @__PURE__ */ F("div", {
746
- className: f(nt.tooltipError, r),
746
+ className: f(tt.tooltipError, r),
747
747
  onClick: i,
748
748
  children: t
749
749
  }) : null;
750
750
  }
751
- var q = {
751
+ var J = {
752
752
  "required-mark": "required-mark_xGJdX",
753
753
  requiredMark: "required-mark_xGJdX",
754
754
  isRequired: "isRequired_Jkn3h",
@@ -800,10 +800,6 @@ var q = {
800
800
  inputFieldWithIcon: "input-field-withIcon_VpfmK",
801
801
  "input-field-withIcon-left": "input-field-withIcon-left_Io7lU",
802
802
  inputFieldWithIconLeft: "input-field-withIcon-left_Io7lU",
803
- "input-field-field": "input-field-field_u6UjZ",
804
- inputFieldField: "input-field-field_u6UjZ",
805
- "input-field-field-default": "input-field-field-default_huHVO",
806
- inputFieldFieldDefault: "input-field-field-default_huHVO",
807
803
  "input-field-suffix": "input-field-suffix_NZpXp",
808
804
  inputFieldSuffix: "input-field-suffix_NZpXp",
809
805
  "input-field-date": "input-field-date_UHJEZ",
@@ -824,188 +820,190 @@ var q = {
824
820
  inputFieldIconNotClickable: "input-field-icon-notClickable_7j24I",
825
821
  "input-error": "input-error_LIG23",
826
822
  inputError: "input-error_LIG23"
827
- }, J = /* @__PURE__ */ function(e) {
823
+ }, Y = /* @__PURE__ */ function(e) {
828
824
  return e.Edit = "edit", e.Phone = "phone", e.Email = "email", e.Iban = "iban", e.Date = "date", e.HasNoIcon = "hasNoIcon", e.Search = "searchInput", e.Password = "password", e;
829
825
  }({});
830
826
  //#endregion
831
827
  //#region package/common/input/input.tsx
832
- function it({ 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: D = null, parse: O = null, formValidator: k = null, autoFocus: te = !1, suffix: ne = null, upperRightLabel: M = null, labelInBorder: ie = !1, showCancel: ae = !1, onClearClicked: oe, min: se = null, max: N = null, placeholder: P = "", useMatLabelStyle: le = !0, autoComplete: ue = null, onClick: de = () => null, readOnly: fe = !1, customInput: pe, alwaysShowCancel: me = !1, multiline: L = !1, rows: he, autoResize: ge = !1, classNames: R, styles: _e }) {
833
- let [ve, z] = d(!1), [ye, be] = d(!1), [xe, Se] = d(!1), [, Ce] = d(0), we = u(null), B = u(k), Te = i(() => {
834
- let e = we.current;
835
- !e || !ge || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
836
- }, [ge]);
828
+ 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: D = null, parse: O = null, formValidator: k = null, autoFocus: te = !1, suffix: ne = null, upperRightLabel: M = null, labelInBorder: re = !1, showCancel: ie = !1, onClearClicked: ae, min: oe = null, max: P = null, placeholder: ce = "", useMatLabelStyle: L = !0, autoComplete: le = null, onClick: ue = () => null, readOnly: de = !1, customInput: fe, alwaysShowCancel: pe = !1, multiline: R = !1, rows: me, autoResize: he = !1, classNames: z, styles: B, disabled: V = !1, ...ge }) {
829
+ let [_e, ve] = d(!1), [ye, H] = d(!1), [be, xe] = d(!1), [, Se] = d(0), Ce = u(null), we = u(k), Te = i(() => {
830
+ let e = Ce.current;
831
+ !e || !he || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
832
+ }, [he]);
837
833
  a(() => {
838
834
  setTimeout(() => {
839
- z(!1), be(!1);
835
+ ve(!1), H(!1);
840
836
  }, 1), Te();
841
837
  }, []), a(() => {
842
- te && we.current && setTimeout(() => {
843
- we.current?.focus();
838
+ te && Ce.current && setTimeout(() => {
839
+ Ce.current?.focus();
844
840
  }, 1);
845
841
  }, [te]), a(() => {
846
- B.current = k;
847
- let e = B.current;
842
+ we.current = k;
843
+ let e = we.current;
848
844
  if (!e) return;
849
845
  e.label = n ?? "", e.validate();
850
- let t = () => Ce((e) => e + 1);
846
+ let t = () => Se((e) => e + 1);
851
847
  return e.registerOnUpdateListener(t), () => {
852
848
  e.removeOnUpdateListener(t);
853
849
  };
854
850
  }, [k, n]);
855
- let Ee = () => k ? k.touched && k.hasError() : !o || !!r, De = () => !!(x || k && k.validators.find((e) => e.validatorId === "required")), V = (e) => {
856
- be(!0), v && v(e);
851
+ let U = () => k ? k.touched && k.hasError() : !o || !!r, Ee = () => !!(x || k && k.validators.find((e) => e.validatorId === "required")), De = (e) => {
852
+ H(!0), v && v(e);
857
853
  }, Oe = (e) => {
858
- be(!1), y && y(e);
854
+ H(!1), y && y(e);
855
+ }, W = (e) => {
856
+ ve(!0), g && g(e);
859
857
  }, ke = (e) => {
860
- z(!0), g && g(e);
858
+ we.current && (we.current.touched = !0), ve(!1), _ && _(e);
861
859
  }, Ae = (e) => {
862
- B.current && (B.current.touched = !0), z(!1), _ && _(e);
863
- }, H = (e) => {
864
860
  let t, n;
865
861
  typeof e == "string" ? n = e : (t = e, n = e.target.value), O && (n = O(n)), k && k.set(n), h && h(n, t), Te();
866
- }, U = () => {
867
- if (C !== "email") return C === "password" && xe ? "text" : C;
868
- }, je = C && C !== J.Date && C !== J.Iban && C !== J.HasNoIcon, Me = je && !le && (C === J.Email || C === J.Phone || C === J.Search), Ne = {
869
- className: f(q.inputFieldIcon, {
870
- [q.inputFieldIconNotClickable]: !D,
871
- [q.inputFieldIconLeft]: Me
862
+ }, je = () => {
863
+ if (C !== "email") return C === "password" && be ? "text" : C;
864
+ }, Me = C && C !== Y.Date && C !== Y.Iban && C !== Y.HasNoIcon, Ne = Me && !L && (C === Y.Email || C === Y.Phone || C === Y.Search), Pe = {
865
+ className: f(J.inputFieldIcon, {
866
+ [J.inputFieldIconNotClickable]: !D,
867
+ [J.inputFieldIconLeft]: Ne
872
868
  }),
873
869
  onClick: D ?? void 0
874
- }, W = {
875
- className: f(q.inputFieldIcon, q.inputFieldIconPassword),
876
- onClick: () => Se(!xe)
877
- }, Pe = Ee(), G = n;
878
- G && De() && (G = `${G} *`);
879
- let Fe = k ? k.value : l, Ie = le && (ve || Fe || C === J.Date);
870
+ }, G = {
871
+ className: f(J.inputFieldIcon, J.inputFieldIconPassword),
872
+ onClick: () => xe(!be)
873
+ }, Fe = U(), Ie = n;
874
+ Ie && Ee() && (Ie = `${Ie} *`);
875
+ let Le = k ? k.value : l, K = L && (_e || Le || C === Y.Date);
880
876
  return /* @__PURE__ */ I("div", {
881
- className: f(q.input, s),
877
+ className: f(J.input, s),
882
878
  style: c,
883
879
  children: [
884
880
  /* @__PURE__ */ I("label", {
885
881
  htmlFor: t,
886
- className: f(q.inputLabel, R?.label, {
887
- [q.inputLabelColumn]: !w,
888
- [q.inputLabelInBorder]: ie
882
+ className: f(J.inputLabel, z?.label, {
883
+ [J.inputLabelColumn]: !w,
884
+ [J.inputLabelInBorder]: re
889
885
  }),
890
- style: _e?.label,
886
+ style: B?.label,
891
887
  children: [
892
- G && !le ? /* @__PURE__ */ I("span", {
893
- className: q.inputLabelText,
894
- children: [`${G} `, De() ? /* @__PURE__ */ F("span", {
895
- className: f(q.isRequired),
888
+ Ie && !L ? /* @__PURE__ */ I("span", {
889
+ className: J.inputLabelText,
890
+ children: [`${Ie} `, Ee() ? /* @__PURE__ */ F("span", {
891
+ className: f(J.isRequired),
896
892
  children: "\xA0 *"
897
893
  }) : null]
898
894
  }) : null,
899
895
  M && /* @__PURE__ */ F("div", {
900
- className: f(q.inputUpperRightLabel, R?.upperRightLabel),
901
- style: _e?.upperRightLabel,
896
+ className: f(J.inputUpperRightLabel, z?.upperRightLabel),
897
+ style: B?.upperRightLabel,
902
898
  children: M
903
899
  }),
904
900
  /* @__PURE__ */ I("div", {
905
- className: f(q.inputContainer, { [q.inputContainerMultiline]: L }, R?.container),
906
- style: _e?.container,
907
- onMouseEnter: V,
901
+ className: f(J.inputContainer, { [J.inputContainerMultiline]: R }, z?.container),
902
+ style: B?.container,
903
+ onMouseEnter: De,
908
904
  onMouseLeave: Oe,
909
905
  children: [
910
906
  m,
911
- e.cloneElement(pe || F(L ? "textarea" : "input", {}), {
912
- className: f(q.inputField, {
913
- [q.inputFieldUppercase]: b,
914
- [q.inputFieldDate]: C === J.Date,
915
- [q.inputFieldDefault]: C !== J.Date,
916
- [q.inputFieldWithIcon]: je,
917
- [q.inputFieldWithIconLeft]: Me,
918
- [q.inputFieldMultiline]: L,
919
- [q.inputFieldMultilineAutoResize]: L && ge
920
- }, R?.input),
907
+ e.cloneElement(fe || F(R ? "textarea" : "input", {}), {
908
+ ...ge,
909
+ className: f(J.inputField, {
910
+ [J.inputFieldUppercase]: b,
911
+ [J.inputFieldDate]: C === Y.Date,
912
+ [J.inputFieldDefault]: C !== Y.Date,
913
+ [J.inputFieldWithIcon]: Me,
914
+ [J.inputFieldWithIconLeft]: Ne,
915
+ [J.inputFieldMultiline]: R,
916
+ [J.inputFieldMultilineAutoResize]: R && he
917
+ }, z?.input),
921
918
  name: t,
922
919
  id: t,
923
920
  value: k ? k.value : l,
924
921
  tabIndex: S,
925
- ref: pe ? void 0 : we,
926
- onChange: H,
927
- onFocus: ke,
928
- onBlur: Ae,
929
- placeholder: le ? "" : P,
930
- autoComplete: ue,
931
- onClick: de,
932
- readOnly: fe,
933
- ...!L && {
934
- type: U(),
935
- min: se,
936
- max: N
922
+ ref: fe ? void 0 : Ce,
923
+ onChange: Ae,
924
+ onFocus: W,
925
+ onBlur: ke,
926
+ placeholder: L ? "" : ce,
927
+ autoComplete: le,
928
+ onClick: ue,
929
+ readOnly: de,
930
+ disabled: V,
931
+ ...!R && {
932
+ type: je(),
933
+ min: oe,
934
+ max: P
937
935
  },
938
- ...L && he !== void 0 && { rows: he }
936
+ ...R && me !== void 0 && { rows: me }
939
937
  }),
940
938
  ne && /* @__PURE__ */ F("div", {
941
- className: f(q.inputFieldSuffix, R?.suffix),
942
- style: _e?.suffix,
939
+ className: f(J.inputFieldSuffix, z?.suffix),
940
+ style: B?.suffix,
943
941
  children: ne
944
942
  })
945
943
  ]
946
944
  }),
947
945
  /* @__PURE__ */ F("fieldset", {
948
- className: f(q.inputFieldset, R?.fieldset, {
949
- [q.inputContainerBorderFocused]: ve,
950
- [q.inputContainerBorderSearchFocused]: C === J.Search && (ve || l),
951
- [q.inputContainerBorderInvalid]: Pe,
952
- [q.inputContainerBorderError]: Pe
946
+ className: f(J.inputFieldset, z?.fieldset, {
947
+ [J.inputContainerBorderFocused]: _e,
948
+ [J.inputContainerBorderSearchFocused]: C === Y.Search && (_e || l),
949
+ [J.inputContainerBorderInvalid]: Fe,
950
+ [J.inputContainerBorderError]: Fe
953
951
  }),
954
- style: _e?.fieldset,
952
+ style: B?.fieldset,
955
953
  children: /* @__PURE__ */ F("legend", {
956
- className: f(q.inputFieldsetLegend, { [q.inputFieldsetLegendActive]: Ie }),
957
- children: /* @__PURE__ */ F("span", { children: G })
954
+ className: f(J.inputFieldsetLegend, { [J.inputFieldsetLegendActive]: K }),
955
+ children: /* @__PURE__ */ F("span", { children: Ie })
958
956
  })
959
957
  }),
960
- le && n && /* @__PURE__ */ F("div", {
961
- className: f(q.inputMatLabel, {
962
- [q.inputMatLabelFloating]: Ie,
963
- [q.inputMatLabelMultiline]: L && !Ie
958
+ L && n && /* @__PURE__ */ F("div", {
959
+ className: f(J.inputMatLabel, {
960
+ [J.inputMatLabelFloating]: K,
961
+ [J.inputMatLabelMultiline]: R && !K
964
962
  }),
965
- children: G
963
+ children: Ie
966
964
  }),
967
- le && P && /* @__PURE__ */ F("div", {
968
- className: f(q.inputPlaceholder, ve && !Fe && q.inputPlaceholderShown, L && q.inputPlaceholderMultiline),
969
- children: P
965
+ L && ce && /* @__PURE__ */ F("div", {
966
+ className: f(J.inputPlaceholder, _e && !Le && J.inputPlaceholderShown, R && J.inputPlaceholderMultiline),
967
+ children: ce
970
968
  }),
971
- /* @__PURE__ */ F(rt, {
969
+ /* @__PURE__ */ F(nt, {
972
970
  variant: "error",
973
971
  message: k ? k.getCurrentErrorMessage() : r || "",
974
- isVisible: Pe && (ve || ye)
972
+ isVisible: Fe && (_e || ye)
975
973
  })
976
974
  ]
977
975
  }),
978
- C === J.Phone && /* @__PURE__ */ F(p, {
976
+ C === Y.Phone && /* @__PURE__ */ F(p, {
979
977
  icon: j,
980
- ...Ne
978
+ ...Pe
981
979
  }),
982
- C === J.Email && /* @__PURE__ */ F(p, {
980
+ C === Y.Email && /* @__PURE__ */ F(p, {
983
981
  icon: T,
984
- ...Ne
982
+ ...Pe
985
983
  }),
986
- C === J.Edit && /* @__PURE__ */ F(p, {
984
+ C === Y.Edit && /* @__PURE__ */ F(p, {
987
985
  icon: A,
988
- ...Ne
986
+ ...Pe
989
987
  }),
990
- C === J.Search && /* @__PURE__ */ F(p, {
991
- icon: re,
992
- ...Ne
988
+ C === Y.Search && /* @__PURE__ */ F(p, {
989
+ icon: N,
990
+ ...Pe
993
991
  }),
994
- C === J.Password && /* @__PURE__ */ F(p, {
995
- icon: xe ? ee : E,
996
- ...W
992
+ C === Y.Password && /* @__PURE__ */ F(p, {
993
+ icon: be ? ee : E,
994
+ ...G
997
995
  }),
998
- (ae && l && (ve || ye) || me) && /* @__PURE__ */ F(p, {
999
- icon: ce,
1000
- className: q.inputFieldIcon,
1001
- onClick: oe ?? void 0,
1002
- onMouseEnter: () => be(!0),
1003
- onMouseLeave: () => be(!1)
996
+ (ie && l && (_e || ye) || pe) && /* @__PURE__ */ F(p, {
997
+ icon: se,
998
+ className: J.inputFieldIcon,
999
+ onClick: ae ?? void 0,
1000
+ onMouseEnter: () => H(!0),
1001
+ onMouseLeave: () => H(!1)
1004
1002
  })
1005
1003
  ]
1006
1004
  });
1007
1005
  }
1008
- var at = {
1006
+ var X = {
1009
1007
  colorPicker: "colorPicker_Ts3an",
1010
1008
  swatch: "swatch_NW78g",
1011
1009
  swatchHex: "swatchHex_j7-i5",
@@ -1020,10 +1018,10 @@ var at = {
1020
1018
  };
1021
1019
  //#endregion
1022
1020
  //#region package/common/colorPicker/colorPicker.tsx
1023
- function ot(e) {
1021
+ function it(e) {
1024
1022
  return /^#[0-9a-fA-F]{6}$/.test(e) || /^#[0-9a-fA-F]{8}$/.test(e);
1025
1023
  }
1026
- function st(e) {
1024
+ function at(e) {
1027
1025
  return /^#[0-9a-fA-F]{8}$/.test(e) ? {
1028
1026
  hex6: e.slice(0, 7),
1029
1027
  alpha: Math.round(parseInt(e.slice(7, 9), 16) / 255 * 100)
@@ -1032,13 +1030,13 @@ function st(e) {
1032
1030
  alpha: 100
1033
1031
  };
1034
1032
  }
1035
- function ct(e, t, n) {
1033
+ function ot(e, t, n) {
1036
1034
  return !n || t >= 100 ? e : `${e}${Math.round(t / 100 * 255).toString(16).padStart(2, "0")}`;
1037
1035
  }
1038
- function lt(e, t) {
1036
+ function st(e, t) {
1039
1037
  return `rgba(${parseInt(e.slice(1, 3), 16)}, ${parseInt(e.slice(3, 5), 16)}, ${parseInt(e.slice(5, 7), 16)}, ${t / 100})`;
1040
1038
  }
1041
- function ut(e) {
1039
+ function ct(e) {
1042
1040
  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;
1043
1041
  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));
1044
1042
  let s = i === 0 ? 0 : Math.round(a / i * 100), c = Math.round(i * 100);
@@ -1048,13 +1046,13 @@ function ut(e) {
1048
1046
  v: c
1049
1047
  };
1050
1048
  }
1051
- function dt(e, t, n) {
1049
+ function lt(e, t, n) {
1052
1050
  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;
1053
1051
  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);
1054
1052
  let d = (e) => Math.round((e + s) * 255).toString(16).padStart(2, "0");
1055
1053
  return `#${d(c)}${d(l)}${d(u)}`;
1056
1054
  }
1057
- function ft({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1055
+ function ut({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1058
1056
  let [r, i] = d(e);
1059
1057
  a(() => {
1060
1058
  i(e);
@@ -1062,12 +1060,12 @@ function ft({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1062
1060
  function o(e) {
1063
1061
  i(e);
1064
1062
  let n = e.startsWith("#") ? e : `#${e}`;
1065
- ot(n) && t(n);
1063
+ it(n) && t(n);
1066
1064
  }
1067
1065
  function s() {
1068
- ot(r.startsWith("#") ? r : `#${r}`) || i(e);
1066
+ it(r.startsWith("#") ? r : `#${r}`) || i(e);
1069
1067
  }
1070
- return n ? /* @__PURE__ */ F(it, {
1068
+ return n ? /* @__PURE__ */ F(rt, {
1071
1069
  value: r,
1072
1070
  onChange: (e) => o(e),
1073
1071
  onBlur: s
@@ -1076,11 +1074,11 @@ function ft({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1076
1074
  value: r,
1077
1075
  onChange: (e) => o(e.target.value),
1078
1076
  onBlur: s,
1079
- className: at.hexInput,
1077
+ className: X.hexInput,
1080
1078
  spellCheck: !1
1081
1079
  });
1082
1080
  }
1083
- function pt({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, onAlphaChange: o, showInput: s = !0, showAlpha: c = !1 }) {
1081
+ function dt({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, onAlphaChange: o, showInput: s = !0, showAlpha: c = !1 }) {
1084
1082
  let l = u(null);
1085
1083
  function d(e) {
1086
1084
  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));
@@ -1101,20 +1099,20 @@ function pt({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1101
1099
  window.addEventListener("mousemove", r), window.addEventListener("mouseup", i);
1102
1100
  }
1103
1101
  function p(e) {
1104
- let { hex6: t, alpha: n } = st(e), { h: r, s, v: l } = ut(t);
1102
+ let { hex6: t, alpha: n } = at(e), { h: r, s, v: l } = ct(t);
1105
1103
  i(r), a(s, l), c && o(n);
1106
1104
  }
1107
- let m = dt(e, t, n), h = c ? ct(m, r, !0) : m;
1105
+ let m = lt(e, t, n), h = c ? ot(m, r, !0) : m;
1108
1106
  return /* @__PURE__ */ I("div", {
1109
- className: at.panel,
1107
+ className: X.panel,
1110
1108
  children: [
1111
1109
  /* @__PURE__ */ I("div", {
1112
1110
  ref: l,
1113
- className: at.gradientArea,
1111
+ className: X.gradientArea,
1114
1112
  style: { "--hue": e },
1115
1113
  onMouseDown: f,
1116
- children: [/* @__PURE__ */ F("div", { className: at.gradientOverlay }), /* @__PURE__ */ F("div", {
1117
- className: at.cursor,
1114
+ children: [/* @__PURE__ */ F("div", { className: X.gradientOverlay }), /* @__PURE__ */ F("div", {
1115
+ className: X.cursor,
1118
1116
  style: {
1119
1117
  left: `${t}%`,
1120
1118
  top: `${100 - n}%`
@@ -1127,7 +1125,7 @@ function pt({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1127
1125
  max: 359,
1128
1126
  value: e,
1129
1127
  onChange: (e) => i(Number(e.target.value)),
1130
- className: at.hueSlider
1128
+ className: X.hueSlider
1131
1129
  }),
1132
1130
  c && /* @__PURE__ */ F("input", {
1133
1131
  type: "range",
@@ -1135,19 +1133,19 @@ function pt({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1135
1133
  max: 100,
1136
1134
  value: r,
1137
1135
  onChange: (e) => o(Number(e.target.value)),
1138
- className: at.alphaSlider,
1136
+ className: X.alphaSlider,
1139
1137
  style: { "--alpha-color": m }
1140
1138
  }),
1141
- s && /* @__PURE__ */ F(ft, {
1139
+ s && /* @__PURE__ */ F(ut, {
1142
1140
  hex: h,
1143
1141
  onChange: p
1144
1142
  })
1145
1143
  ]
1146
1144
  });
1147
1145
  }
1148
- var mt = "#3b82f6";
1149
- function ht({ className: e, value: t = mt, onChange: n, showInput: r = !1, showAlpha: i = !1, inline: a = !1, ...o }) {
1150
- let [s, c] = d(!1), { hex6: l, alpha: p } = st(ot(t) ? t : mt), m = ut(l), [h, g] = d({
1146
+ var ft = "#3b82f6";
1147
+ function pt({ className: e, value: t = ft, onChange: n, showInput: r = !1, showAlpha: i = !1, inline: a = !1, ...o }) {
1148
+ let [s, c] = d(!1), { hex6: l, alpha: p } = at(it(t) ? t : ft), m = ct(l), [h, g] = d({
1151
1149
  h: m.h,
1152
1150
  s: m.s,
1153
1151
  v: m.v,
@@ -1155,9 +1153,9 @@ function ht({ className: e, value: t = mt, onChange: n, showInput: r = !1, showA
1155
1153
  }), _ = u(h), [v, y] = d(t);
1156
1154
  if (t !== v) {
1157
1155
  y(t);
1158
- let { hex6: e, alpha: n } = st(ot(t) ? t : mt);
1159
- if (e !== dt(h.h, h.s, h.v) || n !== h.a) {
1160
- let t = ut(e);
1156
+ let { hex6: e, alpha: n } = at(it(t) ? t : ft);
1157
+ if (e !== lt(h.h, h.s, h.v) || n !== h.a) {
1158
+ let t = ct(e);
1161
1159
  g({
1162
1160
  h: t.h,
1163
1161
  s: t.s,
@@ -1168,7 +1166,7 @@ function ht({ className: e, value: t = mt, onChange: n, showInput: r = !1, showA
1168
1166
  }
1169
1167
  let { h: b, s: x, v: S, a: C } = h;
1170
1168
  function w(e, t, r, a) {
1171
- n?.(ct(dt(e, t, r), a, i));
1169
+ n?.(ot(lt(e, t, r), a, i));
1172
1170
  }
1173
1171
  function T(e) {
1174
1172
  _.current.h = e, g((t) => ({
@@ -1189,7 +1187,7 @@ function ht({ className: e, value: t = mt, onChange: n, showInput: r = !1, showA
1189
1187
  a: e
1190
1188
  })), w(_.current.h, _.current.s, _.current.v, e);
1191
1189
  }
1192
- let D = dt(b, x, S), O = i ? lt(D, C) : D, k = ct(D, C, i), te = {
1190
+ let D = lt(b, x, S), O = i ? st(D, C) : D, k = ot(D, C, i), te = {
1193
1191
  hue: b,
1194
1192
  sat: x,
1195
1193
  val: S,
@@ -1201,38 +1199,38 @@ function ht({ className: e, value: t = mt, onChange: n, showInput: r = !1, showA
1201
1199
  };
1202
1200
  return a ? /* @__PURE__ */ F("div", {
1203
1201
  ...o,
1204
- className: f(at.colorPicker, e),
1205
- children: /* @__PURE__ */ F(pt, {
1202
+ className: f(X.colorPicker, e),
1203
+ children: /* @__PURE__ */ F(dt, {
1206
1204
  ...te,
1207
1205
  showInput: r
1208
1206
  })
1209
1207
  }) : /* @__PURE__ */ I("div", {
1210
1208
  ...o,
1211
- className: f(at.colorPicker, e),
1212
- children: [/* @__PURE__ */ F(tt, {
1209
+ className: f(X.colorPicker, e),
1210
+ children: [/* @__PURE__ */ F(et, {
1213
1211
  isOpen: s,
1214
1212
  onOpenChange: c,
1215
1213
  dontCloseOnChildClick: !0,
1216
- align: $e.Left,
1217
- content: /* @__PURE__ */ F(pt, { ...te }),
1218
- children: /* @__PURE__ */ I(Re, {
1219
- className: at.swatch,
1214
+ align: Qe.Left,
1215
+ content: /* @__PURE__ */ F(dt, { ...te }),
1216
+ children: /* @__PURE__ */ I(K, {
1217
+ className: X.swatch,
1220
1218
  children: [/* @__PURE__ */ F("div", {
1221
- className: at.swatchFill,
1219
+ className: X.swatchFill,
1222
1220
  style: { background: O }
1223
1221
  }), /* @__PURE__ */ F("span", {
1224
- className: at.swatchHex,
1222
+ className: X.swatchHex,
1225
1223
  children: k
1226
1224
  })]
1227
1225
  })
1228
- }), r && /* @__PURE__ */ F(ft, {
1226
+ }), r && /* @__PURE__ */ F(ut, {
1229
1227
  hex: k,
1230
1228
  onChange: (e) => n?.(e),
1231
1229
  useInputComponent: !0
1232
1230
  })]
1233
1231
  });
1234
1232
  }
1235
- var gt = {
1233
+ var mt = {
1236
1234
  modal: "modal_L-Fkd",
1237
1235
  slideIn: "slideIn_RVIHR",
1238
1236
  fadeIn: "fadeIn_XSuIE",
@@ -1247,26 +1245,26 @@ var gt = {
1247
1245
  };
1248
1246
  //#endregion
1249
1247
  //#region package/common/modal/modal.tsx
1250
- function _t({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = () => null, className: i = "", style: o, hideHeader: s = !1, classNames: c, styles: l }) {
1248
+ function ht({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = () => null, className: i = "", style: o, hideHeader: s = !1, classNames: c, styles: l }) {
1251
1249
  let [u, m] = d(n), [h, g] = d(n);
1252
1250
  return a(() => {
1253
1251
  n ? (m(n), setTimeout(() => g(!0), 1)) : (g(!1), setTimeout(() => m(n), 300));
1254
- }, [n]), u ? /* @__PURE__ */ F(Ve, { children: /* @__PURE__ */ I("div", {
1255
- className: f(gt.modalContainer, c?.container),
1252
+ }, [n]), u ? /* @__PURE__ */ F(Be, { children: /* @__PURE__ */ I("div", {
1253
+ className: f(mt.modalContainer, c?.container),
1256
1254
  style: l?.container,
1257
1255
  children: [/* @__PURE__ */ F("div", {
1258
- className: f(gt.modalWrapper, h && gt.modalWrapperShown, c?.backdrop),
1256
+ className: f(mt.modalWrapper, h && mt.modalWrapperShown, c?.backdrop),
1259
1257
  style: l?.backdrop,
1260
1258
  onClick: r
1261
1259
  }), h && /* @__PURE__ */ I("div", {
1262
- className: f(gt.modal, h && gt.modalShown, i, c?.modal),
1260
+ className: f(mt.modal, h && mt.modalShown, i, c?.modal),
1263
1261
  style: {
1264
1262
  ...o,
1265
1263
  ...l?.modal
1266
1264
  },
1267
1265
  onClick: (e) => e.stopPropagation(),
1268
1266
  children: [!s && /* @__PURE__ */ I("div", {
1269
- className: f(gt.modalHeader, c?.header),
1267
+ className: f(mt.modalHeader, c?.header),
1270
1268
  style: l?.header,
1271
1269
  children: [/* @__PURE__ */ F("div", {
1272
1270
  className: c?.title,
@@ -1274,7 +1272,7 @@ function _t({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = ()
1274
1272
  children: t
1275
1273
  }), /* @__PURE__ */ F(p, {
1276
1274
  onClick: r,
1277
- icon: ce,
1275
+ icon: se,
1278
1276
  className: c?.closeButton,
1279
1277
  style: l?.closeButton
1280
1278
  })]
@@ -1284,7 +1282,7 @@ function _t({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = ()
1284
1282
  }
1285
1283
  //#endregion
1286
1284
  //#region package/common/confirmModal/confirmModal.tsx
1287
- function vt({ children: e = null, className: t = "", onClose: n = () => {}, onConfirm: r = () => {}, title: i = "", content: a = null, isOpen: o = void 0 }) {
1285
+ function gt({ children: e = null, className: t = "", onClose: n = () => {}, onConfirm: r = () => {}, title: i = "", content: a = null, isOpen: o = void 0 }) {
1288
1286
  let [s, c] = d(!1), [l, u] = d(!1);
1289
1287
  function f(e = !1) {
1290
1288
  c(!1), n(e);
@@ -1302,7 +1300,7 @@ function vt({ children: e = null, className: t = "", onClose: n = () => {}, onCo
1302
1300
  children: [/* @__PURE__ */ F("span", {
1303
1301
  onClick: () => c(!0),
1304
1302
  children: e
1305
- }), /* @__PURE__ */ I(_t, {
1303
+ }), /* @__PURE__ */ I(ht, {
1306
1304
  title: i,
1307
1305
  isOpen: o === void 0 ? s : o,
1308
1306
  onClose: () => f(),
@@ -1315,7 +1313,7 @@ function vt({ children: e = null, className: t = "", onClose: n = () => {}, onCo
1315
1313
  })]
1316
1314
  });
1317
1315
  }
1318
- var yt = {
1316
+ var _t = {
1319
1317
  "datePickerMonth-item": "datePickerMonth-item_30WWy",
1320
1318
  datePickerMonthItem: "datePickerMonth-item_30WWy",
1321
1319
  "datePickerMonth-content": "datePickerMonth-content_9bbSs",
@@ -1334,7 +1332,7 @@ var yt = {
1334
1332
  datePickerMonthDayDisabled: "datePickerMonth-day-disabled_4t0Ci",
1335
1333
  "datePickerMonth-placeholder": "datePickerMonth-placeholder_gy1Yx",
1336
1334
  datePickerMonthPlaceholder: "datePickerMonth-placeholder_gy1Yx"
1337
- }, bt = [
1335
+ }, vt = [
1338
1336
  "de_AT",
1339
1337
  "de_CH",
1340
1338
  "de_DE",
@@ -1342,10 +1340,10 @@ var yt = {
1342
1340
  "en_GB",
1343
1341
  "de",
1344
1342
  "en"
1345
- ], xt = "en_US", St = () => {
1346
- let e = navigator.languages[0]?.replace("-", "_") || xt;
1347
- return bt.includes(e) ? e === "en_GB" || e === "en" ? "en_US" : e === "de" ? "de_DE" : e : xt;
1348
- }, Ct = (e) => {
1343
+ ], yt = "en_US", bt = () => {
1344
+ let e = navigator.languages[0]?.replace("-", "_") || yt;
1345
+ return vt.includes(e) ? e === "en_GB" || e === "en" ? "en_US" : e === "de" ? "de_DE" : e : yt;
1346
+ }, xt = (e) => {
1349
1347
  switch (e) {
1350
1348
  case "en_US":
1351
1349
  case "en_GB": return "en";
@@ -1354,47 +1352,47 @@ var yt = {
1354
1352
  case "de_AT": return "de";
1355
1353
  default: return "de";
1356
1354
  }
1357
- }, wt = St();
1358
- async function Tt(e) {
1359
- wt = e;
1355
+ }, St = bt();
1356
+ async function Ct(e) {
1357
+ St = e;
1360
1358
  }
1361
- function Et(e = "_") {
1362
- return wt.replace("_", e);
1359
+ function wt(e = "_") {
1360
+ return St.replace("_", e);
1363
1361
  }
1364
1362
  //#endregion
1365
1363
  //#region package/common/datePicker/dateFunctions.ts
1366
- function Dt(e, t) {
1364
+ function Tt(e, t) {
1367
1365
  return new Date(t, e, 0).getDate();
1368
1366
  }
1369
- function Ot(e, t, n) {
1367
+ function Et(e, t, n) {
1370
1368
  return new Date(Date.UTC(n, t - 1, e));
1371
1369
  }
1372
- function kt(e, t, n, r, i = !1) {
1370
+ function Dt(e, t, n, r, i = !1) {
1373
1371
  return new Date(Date.UTC(t, n - 1, r)).toLocaleDateString(e, { month: i ? "short" : "long" });
1374
1372
  }
1375
- function At(e = Et("-")) {
1376
- return Array.from(Array(12).keys()).map((t) => kt(e, 2023, t + 1, 1));
1373
+ function Ot(e = wt("-")) {
1374
+ return Array.from(Array(12).keys()).map((t) => Dt(e, 2023, t + 1, 1));
1377
1375
  }
1378
- function jt(e, t = !0) {
1376
+ function kt(e, t = !0) {
1379
1377
  let n = new Date(Date.UTC(2023, 3, 10)), r = [];
1380
1378
  for (let i = 0; i < 7; i++) r.push(n.toLocaleDateString(e, { weekday: t ? "short" : "long" })), n.setDate(n.getDate() + 1);
1381
1379
  return r;
1382
1380
  }
1383
- function Mt(e, t) {
1381
+ function At(e, t) {
1384
1382
  return new Date(Date.UTC(t, e - 1, 1)).getDay() || 7;
1385
1383
  }
1386
- function Nt(e) {
1384
+ function jt(e) {
1387
1385
  return {
1388
1386
  day: e.getDate(),
1389
1387
  month: e.getMonth() + 1,
1390
1388
  year: e.getFullYear()
1391
1389
  };
1392
1390
  }
1393
- function Pt(e) {
1391
+ function Mt(e) {
1394
1392
  let t = e.getDate(), n = e.getMonth() + 1, r = e.getFullYear();
1395
1393
  return `${t < 10 ? `0${t}` : t}.${n < 10 ? `0${n}` : n}.${r}`;
1396
1394
  }
1397
- function Ft(e, t, n) {
1395
+ function Nt(e, t, n) {
1398
1396
  let r = e, i = n;
1399
1397
  return r[0] !== "_" && (r[0] > "3" ? (r = `0${r[0]}${t.substring(2)}`, i = {
1400
1398
  start: 3,
@@ -1412,18 +1410,18 @@ function Ft(e, t, n) {
1412
1410
  }
1413
1411
  //#endregion
1414
1412
  //#region package/common/datePicker/components/datePickerMonth/datePickerMonth.tsx
1415
- function It(e, t, n, r, i) {
1416
- let { day: a, month: o, year: s } = r ? Nt(r) : {
1413
+ function Pt(e, t, n, r, i) {
1414
+ let { day: a, month: o, year: s } = r ? jt(r) : {
1417
1415
  day: void 0,
1418
1416
  month: void 0,
1419
1417
  year: void 0
1420
- }, { day: c, month: l, year: u } = i ? Nt(i) : {
1418
+ }, { day: c, month: l, year: u } = i ? jt(i) : {
1421
1419
  day: void 0,
1422
1420
  month: void 0,
1423
1421
  year: void 0
1424
- }, d = Ot(e, t, n), f = e === a && t === o && n === s, p = e === c && t === l && n === u, m = !1;
1422
+ }, d = Et(e, t, n), f = e === a && t === o && n === s, p = e === c && t === l && n === u, m = !1;
1425
1423
  if (a !== void 0 && o !== void 0 && s !== void 0 && c !== void 0 && l !== void 0 && u !== void 0) {
1426
- let e = Ot(a, o, s), t = Ot(c, l, u);
1424
+ let e = Et(a, o, s), t = Et(c, l, u);
1427
1425
  m = d.getTime() >= e.getTime() && d.getTime() <= t.getTime();
1428
1426
  }
1429
1427
  return {
@@ -1432,54 +1430,54 @@ function It(e, t, n, r, i) {
1432
1430
  isEndDate: p
1433
1431
  };
1434
1432
  }
1435
- function Lt(e, t, n, r, i) {
1436
- let a = Ot(e, t, n);
1433
+ function Ft(e, t, n, r, i) {
1434
+ let a = Et(e, t, n);
1437
1435
  if (r) {
1438
- let { day: e, month: t, year: n } = Nt(r);
1439
- if (a < Ot(e, t, n)) return !0;
1436
+ let { day: e, month: t, year: n } = jt(r);
1437
+ if (a < Et(e, t, n)) return !0;
1440
1438
  }
1441
1439
  if (i) {
1442
- let { day: e, month: t, year: n } = Nt(i);
1443
- if (a > Ot(e, t, n)) return !0;
1440
+ let { day: e, month: t, year: n } = jt(i);
1441
+ if (a > Et(e, t, n)) return !0;
1444
1442
  }
1445
1443
  return !1;
1446
1444
  }
1447
- function Rt(e, t, n) {
1448
- let { day: r, month: i, year: a } = Nt(/* @__PURE__ */ new Date());
1445
+ function It(e, t, n) {
1446
+ let { day: r, month: i, year: a } = jt(/* @__PURE__ */ new Date());
1449
1447
  return e === r && t === i && n === a;
1450
1448
  }
1451
- function zt({ 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 }) {
1452
- let c = Et("-"), l = Dt(t, n), u = Mt(t, n);
1449
+ function Lt({ 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 }) {
1450
+ let c = wt("-"), l = Tt(t, n), u = At(t, n);
1453
1451
  return /* @__PURE__ */ F("div", {
1454
- className: f(yt.datePickerMonth, e),
1452
+ className: f(_t.datePickerMonth, e),
1455
1453
  children: /* @__PURE__ */ I("div", {
1456
- className: f(yt.datePickerMonthContent),
1454
+ className: f(_t.datePickerMonthContent),
1457
1455
  children: [
1458
- jt(c).map((e, t) => /* @__PURE__ */ F("div", { children: e }, t)),
1459
- Array.from(Array(u - 1).keys()).map((e) => /* @__PURE__ */ F("div", { className: f(yt.datePickerMonthItem, yt.datePickerMonthPlaceholder) }, e)),
1456
+ kt(c).map((e, t) => /* @__PURE__ */ F("div", { children: e }, t)),
1457
+ Array.from(Array(u - 1).keys()).map((e) => /* @__PURE__ */ F("div", { className: f(_t.datePickerMonthItem, _t.datePickerMonthPlaceholder) }, e)),
1460
1458
  Array.from(Array(l).keys()).map((e) => {
1461
- let c = e + 1, l = It(c, t, n, i, a), u = Lt(c, t, n, o, s), d = Rt(c, t, n);
1462
- return /* @__PURE__ */ F(Re, {
1463
- onClick: () => u ? null : r(Ot(c, t, n)),
1464
- className: f(yt.datePickerMonthDay, yt.datePickerMonthItem, {
1465
- [yt.datePickerMonthDaySelected]: l.isInRange,
1466
- [yt.datePickerMonthDaySelectedStart]: l.isStartDate,
1467
- [yt.datePickerMonthDaySelectedEnd]: l.isEndDate,
1468
- [yt.datePickerMonthDayDisabled]: u,
1469
- [yt.datePickerMonthDayToday]: d
1459
+ let c = e + 1, l = Pt(c, t, n, i, a), u = Ft(c, t, n, o, s), d = It(c, t, n);
1460
+ return /* @__PURE__ */ F(K, {
1461
+ onClick: () => u ? null : r(Et(c, t, n)),
1462
+ className: f(_t.datePickerMonthDay, _t.datePickerMonthItem, {
1463
+ [_t.datePickerMonthDaySelected]: l.isInRange,
1464
+ [_t.datePickerMonthDaySelectedStart]: l.isStartDate,
1465
+ [_t.datePickerMonthDaySelectedEnd]: l.isEndDate,
1466
+ [_t.datePickerMonthDayDisabled]: u,
1467
+ [_t.datePickerMonthDayToday]: d
1470
1468
  }),
1471
1469
  children: c
1472
1470
  }, c);
1473
1471
  }),
1474
1472
  Array.from(Array(42 - (u + l - 1)).keys()).map((e) => /* @__PURE__ */ F("div", {
1475
- className: f(yt.datePickerMonthItem, yt.datePickerMonthPlaceholder),
1473
+ className: f(_t.datePickerMonthItem, _t.datePickerMonthPlaceholder),
1476
1474
  children: "\xA0"
1477
1475
  }, e))
1478
1476
  ]
1479
1477
  })
1480
1478
  });
1481
1479
  }
1482
- var Bt = {
1480
+ var Rt = {
1483
1481
  infiniteBlock: "infiniteBlock_dFv-h",
1484
1482
  "spinner-wrapper": "spinner-wrapper_hsgWz",
1485
1483
  spinnerWrapper: "spinner-wrapper_hsgWz",
@@ -1487,7 +1485,7 @@ var Bt = {
1487
1485
  };
1488
1486
  //#endregion
1489
1487
  //#region package/common/infiniteBlock/infiniteBlock.tsx
1490
- function Vt(e, t) {
1488
+ function zt(e, t) {
1491
1489
  let n = e;
1492
1490
  for (; n.props.children !== null && typeof n.props.children == "object" && !Array.isArray(n.props.children);) n = n.props.children;
1493
1491
  let r = n.props.children;
@@ -1500,11 +1498,11 @@ function Vt(e, t) {
1500
1498
  }
1501
1499
  return String(r).toLowerCase().startsWith(t);
1502
1500
  }
1503
- function Ht(e, t, n) {
1501
+ function Bt(e, t, n) {
1504
1502
  let r = e + t;
1505
1503
  return r === n ? 0 : r < -1 ? n - 1 : r;
1506
1504
  }
1507
- function Ut({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1, setHighlightedIndex: o = () => null }) {
1505
+ function Vt({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1, setHighlightedIndex: o = () => null }) {
1508
1506
  let s = u(null), c = u(!1), [l, p] = d(!1), m = u(-1), h = u(null), g = i(() => {
1509
1507
  let e = s.current;
1510
1508
  if (!e) return;
@@ -1518,12 +1516,12 @@ function Ut({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1518
1516
  let i = e.Children.toArray(t), a = m.current;
1519
1517
  switch (n.key) {
1520
1518
  case "ArrowDown":
1521
- a = Ht(a, 1, i.length);
1519
+ a = Bt(a, 1, i.length);
1522
1520
  break;
1523
1521
  case "ArrowUp":
1524
- a = Ht(a, -1, i.length);
1522
+ a = Bt(a, -1, i.length);
1525
1523
  break;
1526
- default: for (let e = 0; e < i.length; e++) if (Vt(i[e], n.key)) {
1524
+ default: for (let e = 0; e < i.length; e++) if (zt(i[e], n.key)) {
1527
1525
  if (a >= e && h.current === n.key) continue;
1528
1526
  a = e;
1529
1527
  break;
@@ -1539,21 +1537,21 @@ function Ut({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1539
1537
  }
1540
1538
  }, [t, o]);
1541
1539
  return /* @__PURE__ */ I("div", {
1542
- className: f(Bt.infiniteBlock, r),
1540
+ className: f(Rt.infiniteBlock, r),
1543
1541
  onScroll: g,
1544
1542
  onKeyDown: _,
1545
1543
  tabIndex: 0,
1546
1544
  ref: s,
1547
1545
  children: [a ? /* @__PURE__ */ F("div", {
1548
- className: Bt.spinnerWrapper,
1549
- children: /* @__PURE__ */ F(Ae, { className: Bt.spinner })
1546
+ className: Rt.spinnerWrapper,
1547
+ children: /* @__PURE__ */ F(Oe, { className: Rt.spinner })
1550
1548
  }) : t, l && /* @__PURE__ */ F("div", {
1551
- className: Bt.spinnerWrapper,
1552
- children: /* @__PURE__ */ F(Ae, { className: Bt.spinner })
1549
+ className: Rt.spinnerWrapper,
1550
+ children: /* @__PURE__ */ F(Oe, { className: Rt.spinner })
1553
1551
  })]
1554
1552
  });
1555
1553
  }
1556
- var Y = {
1554
+ var Z = {
1557
1555
  "required-mark": "required-mark_fy7Fm",
1558
1556
  requiredMark: "required-mark_fy7Fm",
1559
1557
  dropdown: "dropdown_XTshY",
@@ -1621,81 +1619,83 @@ var Y = {
1621
1619
  };
1622
1620
  //#endregion
1623
1621
  //#region package/common/dropdown/dropdown.tsx
1624
- function Wt({ 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: ee = "", dropDownClassName: D = "", formValidator: O = null, labelClassName: k = "", dropDownInputClassName: te = "", items: ne = [], useMatLabelStyle: A = !0, placeholder: j = "", plainStyle: M = !1, scrollToSelected: re = !1, reactRef: ie }) {
1625
- let [ae, oe] = d(!1), [se, ce] = d(!1), [, N] = d(0), P = u(O);
1622
+ function Ht({ 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: ee = "", dropDownClassName: D = "", formValidator: O = null, labelClassName: k = "", dropDownInputClassName: te = "", items: ne = [], useMatLabelStyle: A = !0, placeholder: j = "", plainStyle: M = !1, scrollToSelected: N = !1, reactRef: re, ...ie }) {
1623
+ let [ae, oe] = d(!1), [se, P] = d(!1), [, ce] = d(0), L = u(O);
1626
1624
  a(() => {
1627
- if (P.current = O, !P.current) return;
1628
- P.current.label = n ?? "", P.current.validate();
1629
- let e = () => N((e) => e + 1);
1630
- return P.current.registerOnUpdateListener(e), () => P.current?.removeOnUpdateListener(e);
1625
+ if (L.current = O, !L.current) return;
1626
+ L.current.label = n ?? "", L.current.validate();
1627
+ let e = () => ce((e) => e + 1);
1628
+ return L.current.registerOnUpdateListener(e), () => L.current?.removeOnUpdateListener(e);
1631
1629
  }, [O, n]);
1632
- let le = (e) => {
1633
- ce(!0), S?.(e);
1630
+ let ue = (e) => {
1631
+ P(!0), S?.(e);
1634
1632
  }, de = (e) => {
1635
- ce(!1), C?.(e);
1633
+ P(!1), C?.(e);
1636
1634
  }, fe = (e) => {
1637
1635
  oe(!0), b?.(e);
1638
1636
  }, pe = (e) => {
1639
- P.current && (P.current.touched = !0), oe(!1), x?.(e);
1640
- }, me = () => O ? O.touched && O.hasError() : !i || !!e, L = () => !!(s || O?.validators.find((e) => e.validatorId === "required")), he = (e) => {
1637
+ L.current && (L.current.touched = !0), oe(!1), x?.(e);
1638
+ }, R = () => O ? O.touched && O.hasError() : !i || !!e, me = () => !!(s || O?.validators.find((e) => e.validatorId === "required")), he = (e) => {
1641
1639
  O ? (O.set(e), y?.(O.value, c)) : y?.(e, c);
1642
- }, ge = w, R = O ? O.value : r, _e = me();
1643
- return ne.forEach((e) => {
1644
- e.key === R && (ge = e.label);
1645
- }), /* @__PURE__ */ I("div", {
1646
- className: f(t, Y.dropdownLabel, Y.dropdown, { [Y.dropdownLabelColumn]: !l }),
1647
- onMouseEnter: le,
1640
+ }, z = w, B = O ? O.value : r, V = R();
1641
+ ne.forEach((e) => {
1642
+ e.key === B && (z = e.label);
1643
+ });
1644
+ let ge = z || B, _e = ge == null || typeof ge == "string" && ge.trim() === "";
1645
+ return /* @__PURE__ */ I("div", {
1646
+ ...ie,
1647
+ className: f(t, Z.dropdownLabel, Z.dropdown, { [Z.dropdownLabelColumn]: !l }),
1648
+ onMouseEnter: ue,
1648
1649
  onMouseLeave: de,
1649
1650
  children: [
1650
- /* @__PURE__ */ F(ue, {
1651
+ /* @__PURE__ */ F(le, {
1651
1652
  onChange: (e) => he((e || { key: "" }).key),
1652
1653
  itemToString: (e) => e ? String(e.key) : "",
1653
- selectedItem: ne.find((e) => e.key === R) ?? null,
1654
- stateReducer: (e, t) => re && Object.prototype.hasOwnProperty.call(t, "isOpen") ? {
1654
+ selectedItem: ne.find((e) => e.key === B) ?? null,
1655
+ stateReducer: (e, t) => N && Object.prototype.hasOwnProperty.call(t, "isOpen") ? {
1655
1656
  ...t,
1656
1657
  highlightedIndex: t.isOpen ? ne.indexOf(e.selectedItem) : null
1657
1658
  } : t,
1658
1659
  children: ({ getItemProps: e, getToggleButtonProps: t, isOpen: r, selectedItem: i, highlightedIndex: a, setHighlightedIndex: s }) => /* @__PURE__ */ F("div", { children: /* @__PURE__ */ I("div", {
1659
1660
  onFocus: fe,
1660
1661
  onBlur: pe,
1661
- className: f(Y.dropdownInput, {
1662
- [Y.dropdownInputPlain]: M,
1663
- [Y.dropdownInputButtonDisabled]: m
1664
- }, te),
1662
+ className: f(Z.dropdownInput, { [Z.dropdownInputPlain]: M }, te),
1665
1663
  children: [
1666
1664
  /* @__PURE__ */ F("button", {
1667
1665
  tabIndex: o,
1668
1666
  type: "button",
1667
+ disabled: m,
1669
1668
  style: T ? {
1670
1669
  padding: "6px",
1671
1670
  border: "none"
1672
1671
  } : {},
1673
- className: f(Y.dropdownInputButton, E),
1672
+ className: f(Z.dropdownInputButton, { [Z.dropdownInputButtonDisabled]: m }, E),
1674
1673
  ...t(),
1675
1674
  onClick: (e) => {
1676
1675
  t().onClick?.(e), v?.(e);
1677
1676
  },
1678
- ref: ie,
1679
- children: ge || R || /* @__PURE__ */ F("div", { children: "\xA0" })
1677
+ ref: re,
1678
+ children: _e ? "\xA0" : ge
1680
1679
  }),
1681
1680
  /* @__PURE__ */ F("button", {
1682
1681
  type: "button",
1683
1682
  tabIndex: -1,
1684
- className: f(Y.dropdownInputButtonIcon, ee),
1683
+ disabled: m,
1684
+ className: f(Z.dropdownInputButtonIcon, ee),
1685
1685
  ...t(),
1686
1686
  onClick: (e) => {
1687
1687
  t().onClick?.(e), v?.(e);
1688
1688
  },
1689
1689
  children: !m && /* @__PURE__ */ F(p, {
1690
1690
  icon: g,
1691
- className: f(Y.dropdownInputButtonIconArrow, { [Y.dropdownInputButtonIconArrowOpen]: r })
1691
+ className: f(Z.dropdownInputButtonIconArrow, { [Z.dropdownInputButtonIconArrowOpen]: r })
1692
1692
  })
1693
1693
  }),
1694
- !m && r ? /* @__PURE__ */ F(Ut, {
1694
+ !m && r ? /* @__PURE__ */ F(Vt, {
1695
1695
  onScroll: h,
1696
- className: f(Y.dropdownInputList, {
1697
- [Y.dropdownInputListOnTop]: _,
1698
- [Y.dropdownInputListWider]: T
1696
+ className: f(Z.dropdownInputList, {
1697
+ [Z.dropdownInputListOnTop]: _,
1698
+ [Z.dropdownInputListWider]: T
1699
1699
  }),
1700
1700
  setHighlightedIndex: s,
1701
1701
  children: ne.map((t, n) => /* @__PURE__ */ F("div", {
@@ -1704,52 +1704,52 @@ function Wt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1704
1704
  item: t,
1705
1705
  disabled: !!t.disabled
1706
1706
  }),
1707
- className: f(Y.dropdownInputListItem, D, {
1708
- [Y.dropdownInputListItemActive]: a === n,
1709
- [Y.dropdownInputListItemSelected]: i === t
1707
+ className: f(Z.dropdownInputListItem, D, {
1708
+ [Z.dropdownInputListItemActive]: a === n,
1709
+ [Z.dropdownInputListItemSelected]: i === t
1710
1710
  }),
1711
1711
  children: t.label
1712
1712
  }, t.key))
1713
1713
  }) : null,
1714
1714
  /* @__PURE__ */ F("fieldset", {
1715
- className: f(Y.dropdownFieldset, {
1716
- [Y.dropdownBorderPlain]: M,
1717
- [Y.dropdownBorderFocused]: ae,
1718
- [Y.dropdownBorderInvalid]: _e,
1719
- [Y.dropdownBorderError]: _e
1715
+ className: f(Z.dropdownFieldset, {
1716
+ [Z.dropdownBorderPlain]: M,
1717
+ [Z.dropdownBorderFocused]: ae,
1718
+ [Z.dropdownBorderInvalid]: V,
1719
+ [Z.dropdownBorderError]: V
1720
1720
  }),
1721
1721
  children: /* @__PURE__ */ F("legend", {
1722
- className: f(Y.dropdownFieldsetLegend, { [Y.dropdownFieldsetLegendActive]: A && (ae || R) }),
1722
+ className: f(Z.dropdownFieldsetLegend, { [Z.dropdownFieldsetLegendActive]: A && (ae || B) }),
1723
1723
  children: /* @__PURE__ */ F("span", { children: n })
1724
1724
  })
1725
1725
  }),
1726
1726
  A && n && /* @__PURE__ */ F("div", {
1727
- className: f(Y.dropdownMatLabel, { [Y.dropdownMatLabelFloating]: ae || R }),
1727
+ className: f(Z.dropdownMatLabel, { [Z.dropdownMatLabelFloating]: ae || B }),
1728
1728
  children: n
1729
1729
  }),
1730
1730
  A && j && /* @__PURE__ */ F("div", {
1731
- className: f(Y.dropdownPlaceholder, ae && !ge && Y.dropdownPlaceholderShown),
1731
+ className: f(Z.dropdownPlaceholder, ae && !z && Z.dropdownPlaceholderShown),
1732
1732
  children: j
1733
1733
  })
1734
1734
  ]
1735
1735
  }) })
1736
1736
  }),
1737
1737
  n && !A && /* @__PURE__ */ I("div", {
1738
- className: f(Y.dropdownLabelText, k),
1739
- children: [n, L() ? /* @__PURE__ */ F("div", {
1740
- className: Y.requiredMark,
1738
+ className: f(Z.dropdownLabelText, k),
1739
+ children: [n, me() ? /* @__PURE__ */ F("div", {
1740
+ className: Z.requiredMark,
1741
1741
  children: "*"
1742
1742
  }) : null]
1743
1743
  }),
1744
- /* @__PURE__ */ F(rt, {
1744
+ /* @__PURE__ */ F(nt, {
1745
1745
  variant: "error",
1746
1746
  message: O ? O.getCurrentErrorMessage() : e || "",
1747
- isVisible: _e && (ae || se)
1747
+ isVisible: V && (ae || se)
1748
1748
  })
1749
1749
  ]
1750
1750
  });
1751
1751
  }
1752
- var Gt = {
1752
+ var Ut = {
1753
1753
  datePicker: "datePicker_ZohTp",
1754
1754
  "datePicker-header": "datePicker-header_YmSWE",
1755
1755
  datePickerHeader: "datePicker-header_YmSWE",
@@ -1766,155 +1766,155 @@ var Gt = {
1766
1766
  };
1767
1767
  //#endregion
1768
1768
  //#region package/common/datePicker/datePicker.tsx
1769
- function Kt({ 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 }) {
1770
- let T = () => r ? r.value : t, E = T() ?? /* @__PURE__ */ new Date(), [ee, D] = d(E.getMonth() + 1), [O, k] = d(E.getFullYear()), [te, ne] = d(!1), [A, j] = d(() => T() ? Pt(E) : ""), [M, re] = d(!1), [ie, ae] = d(!1), [, oe] = d(0), [se, ce] = d(t), N = u(r);
1771
- if (se !== t) {
1772
- ce(t);
1769
+ function Wt({ 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 }) {
1770
+ let T = () => r ? r.value : t, E = T() ?? /* @__PURE__ */ new Date(), [ee, D] = d(E.getMonth() + 1), [O, k] = d(E.getFullYear()), [te, ne] = d(!1), [A, j] = d(() => T() ? Mt(E) : ""), [M, N] = d(!1), [re, ie] = d(!1), [, ae] = d(0), [oe, se] = d(t), P = u(r);
1771
+ if (oe !== t) {
1772
+ se(t);
1773
1773
  let e = t ?? /* @__PURE__ */ new Date();
1774
- D(e.getMonth() + 1), k(e.getFullYear()), j(t ? Pt(t) : "");
1774
+ D(e.getMonth() + 1), k(e.getFullYear()), j(t ? Mt(t) : "");
1775
1775
  }
1776
1776
  a(() => {
1777
- if (N.current = r, !r) return;
1777
+ if (P.current = r, !r) return;
1778
1778
  let e = () => {
1779
1779
  let e = r.value;
1780
- e ? (D(e.getMonth() + 1), k(e.getFullYear()), j(Pt(e))) : j(""), oe((e) => e + 1);
1780
+ e ? (D(e.getMonth() + 1), k(e.getFullYear()), j(Mt(e))) : j(""), ae((e) => e + 1);
1781
1781
  };
1782
1782
  return r.registerOnUpdateListener(e), () => r.removeOnUpdateListener(e);
1783
1783
  }, [r]);
1784
- let le = () => r ? r.touched && r.hasError() : !b || !!x, ue = () => !!(S || r?.validators.find((e) => e.validatorId === "required")), fe = (e) => {
1785
- j(e ? Pt(e) : ""), r && r.set(e), l(e);
1784
+ let L = () => r ? r.touched && r.hasError() : !b || !!x, le = () => !!(S || r?.validators.find((e) => e.validatorId === "required")), de = (e) => {
1785
+ j(e ? Mt(e) : ""), r && r.set(e), l(e);
1786
+ }, fe = (e) => {
1787
+ de(e), n(e), ne(!1);
1786
1788
  }, pe = (e) => {
1787
- fe(e), n(e), ne(!1);
1788
- }, me = (e) => {
1789
1789
  D((t) => {
1790
1790
  let n = t + e;
1791
1791
  return n < 1 ? (n = 12, k((e) => e - 1)) : n > 12 && (n = 1, k((e) => e + 1)), n;
1792
1792
  });
1793
- }, L = (e) => {
1793
+ }, R = (e) => {
1794
1794
  if (e.match(/\d{2}\.\d{2}\.\d{4}/gi)) {
1795
- let [t, n, r] = e.split("."), i = Ot(Number(t), Number(n), Number(r));
1795
+ let [t, n, r] = e.split("."), i = Et(Number(t), Number(n), Number(r));
1796
1796
  if (i && i.toString() !== "Invalid Date" && (!m || i <= m) && (!p || i >= p)) return i;
1797
1797
  }
1798
1798
  return null;
1799
- }, he = ({ previousState: e, nextState: t }) => {
1799
+ }, me = ({ previousState: e, nextState: t }) => {
1800
1800
  if (!e || t.value === e.value) return t;
1801
- let n = Ft(t.value, e.value, t.selection ?? null), r = L(n.value);
1802
- return r && fe(r), n;
1803
- }, ge = () => {
1801
+ let n = Nt(t.value, e.value, t.selection ?? null), r = R(n.value);
1802
+ return r && de(r), n;
1803
+ }, he = () => {
1804
1804
  let e = 400, t = (/* @__PURE__ */ new Date()).getFullYear() - 200;
1805
1805
  return p && (t = p.getFullYear()), m && (e = m.getFullYear() - t + 1), Array.from(Array(e).keys()).map((e) => ({
1806
1806
  key: e + t,
1807
1807
  label: e + t
1808
1808
  }));
1809
- }, R = T(), _e = le(), ve = /* @__PURE__ */ I(P, { children: [
1809
+ }, z = T(), B = L(), V = /* @__PURE__ */ I(ce, { children: [
1810
1810
  o ? null : /* @__PURE__ */ I("div", {
1811
- className: Gt.datePickerHeader,
1811
+ className: Ut.datePickerHeader,
1812
1812
  children: [
1813
- /* @__PURE__ */ F(Be, {
1813
+ /* @__PURE__ */ F(ze, {
1814
1814
  icon: _,
1815
- onClick: () => me(-1)
1815
+ onClick: () => pe(-1)
1816
1816
  }),
1817
1817
  /* @__PURE__ */ F("div", {
1818
- className: Gt.datePickerHeaderMonthAndYearContainer,
1818
+ className: Ut.datePickerHeaderMonthAndYearContainer,
1819
1819
  children: /* @__PURE__ */ I("div", {
1820
- className: Gt.datePickerHeaderMonthAndYear,
1821
- children: [/* @__PURE__ */ F(Wt, {
1820
+ className: Ut.datePickerHeaderMonthAndYear,
1821
+ children: [/* @__PURE__ */ F(Ht, {
1822
1822
  plainStyle: !0,
1823
1823
  scrollToSelected: !0,
1824
1824
  onChange: (e) => D(e),
1825
- className: Gt.datePickerHeaderMonth,
1826
- value: kt(Et("-"), O, ee, 1),
1827
- items: At().map((e, t) => ({
1825
+ className: Ut.datePickerHeaderMonth,
1826
+ value: Dt(wt("-"), O, ee, 1),
1827
+ items: Ot().map((e, t) => ({
1828
1828
  key: t + 1,
1829
1829
  label: e
1830
1830
  }))
1831
- }), /* @__PURE__ */ F(Wt, {
1831
+ }), /* @__PURE__ */ F(Ht, {
1832
1832
  plainStyle: !0,
1833
1833
  scrollToSelected: !0,
1834
1834
  useMatLabelStyle: !1,
1835
- className: Gt.datePickerHeaderYear,
1835
+ className: Ut.datePickerHeaderYear,
1836
1836
  onChange: (e) => k(e),
1837
1837
  value: O,
1838
- items: ge()
1838
+ items: he()
1839
1839
  })]
1840
1840
  })
1841
1841
  }),
1842
- /* @__PURE__ */ F(Be, {
1842
+ /* @__PURE__ */ F(ze, {
1843
1843
  icon: v,
1844
- onClick: () => me(1)
1844
+ onClick: () => pe(1)
1845
1845
  })
1846
1846
  ]
1847
1847
  }),
1848
- /* @__PURE__ */ F(zt, {
1849
- className: Gt.datePickerMonth,
1848
+ /* @__PURE__ */ F(Lt, {
1849
+ className: Ut.datePickerMonth,
1850
1850
  month: ee,
1851
1851
  year: O,
1852
- onSelect: pe,
1853
- selectionStart: C ?? R,
1854
- selectionEnd: w ?? R,
1852
+ onSelect: fe,
1853
+ selectionStart: C ?? z,
1854
+ selectionEnd: w ?? z,
1855
1855
  minDate: p,
1856
1856
  maxDate: m
1857
1857
  }),
1858
1858
  g && /* @__PURE__ */ F(G, {
1859
- onClick: () => pe(null),
1859
+ onClick: () => fe(null),
1860
1860
  children: "Clear"
1861
1861
  }),
1862
1862
  h
1863
- ] }), z = i ? null : /* @__PURE__ */ F(it, {
1863
+ ] }), ge = i ? null : /* @__PURE__ */ F(rt, {
1864
1864
  readOnly: s,
1865
- label: `${y}${ue() ? " *" : ""}`,
1865
+ label: `${y}${le() ? " *" : ""}`,
1866
1866
  value: A,
1867
1867
  onChange: (e) => j(e),
1868
1868
  onClick: () => ne(!0),
1869
- customInput: /* @__PURE__ */ F(de, {
1869
+ customInput: /* @__PURE__ */ F(ue, {
1870
1870
  mask: "99.99.9999",
1871
1871
  maskPlaceholder: "_",
1872
- beforeMaskedStateChange: he
1872
+ beforeMaskedStateChange: me
1873
1873
  }),
1874
1874
  onBlur: () => {
1875
- N.current && (N.current.touched = !0), re(!1), fe(L(A));
1875
+ P.current && (P.current.touched = !0), N(!1), de(R(A));
1876
1876
  },
1877
- onFocus: () => re(!0),
1878
- onMouseEnter: () => ae(!0),
1879
- onMouseLeave: () => ae(!1),
1880
- isValid: !_e
1881
- }), ye = c ? ve : s ? /* @__PURE__ */ F(_t, {
1877
+ onFocus: () => N(!0),
1878
+ onMouseEnter: () => ie(!0),
1879
+ onMouseLeave: () => ie(!1),
1880
+ isValid: !B
1881
+ }), _e = c ? V : s ? /* @__PURE__ */ F(ht, {
1882
1882
  hideHeader: !0,
1883
1883
  isOpen: te,
1884
1884
  onClose: () => ne(!1),
1885
- children: ve
1886
- }) : /* @__PURE__ */ F(tt, {
1885
+ children: V
1886
+ }) : /* @__PURE__ */ F(et, {
1887
1887
  isOpen: te,
1888
1888
  onOpenChange: (e) => ne(e),
1889
- content: ve,
1890
- align: $e.Left,
1889
+ content: V,
1890
+ align: Qe.Left,
1891
1891
  dontCloseOnChildClick: !0,
1892
- children: z
1892
+ children: ge
1893
1893
  });
1894
1894
  return /* @__PURE__ */ I("div", {
1895
- className: f(Gt.datePicker, e),
1895
+ className: f(Ut.datePicker, e),
1896
1896
  children: [
1897
- (s || c) && z,
1898
- ye,
1899
- /* @__PURE__ */ F(rt, {
1897
+ (s || c) && ge,
1898
+ _e,
1899
+ /* @__PURE__ */ F(nt, {
1900
1900
  variant: "error",
1901
1901
  message: r ? r.getCurrentErrorMessage() : x || "",
1902
- isVisible: _e && (M || ie)
1902
+ isVisible: B && (M || re)
1903
1903
  })
1904
1904
  ]
1905
1905
  });
1906
1906
  }
1907
- var qt = { emptyState: "emptyState_KXOIx" };
1907
+ var Gt = { emptyState: "emptyState_KXOIx" };
1908
1908
  //#endregion
1909
1909
  //#region package/common/emptyState/emptyState.tsx
1910
- function Jt({ className: e, icon: t, children: n, ...r }) {
1910
+ function Kt({ className: e, icon: t, children: n, ...r }) {
1911
1911
  return /* @__PURE__ */ I("div", {
1912
1912
  ...r,
1913
- className: f(qt.emptyState, e),
1913
+ className: f(Gt.emptyState, e),
1914
1914
  children: [t && /* @__PURE__ */ F(p, { icon: t }), /* @__PURE__ */ F("div", { children: n ?? "No entries available" })]
1915
1915
  });
1916
1916
  }
1917
- var Yt = {
1917
+ var qt = {
1918
1918
  fab: "fab_hyAAa",
1919
1919
  "fab-content": "fab-content_IBiXm",
1920
1920
  fabContent: "fab-content_IBiXm",
@@ -1922,25 +1922,25 @@ var Yt = {
1922
1922
  fabContentContainer: "fab-content-container_FQD1x",
1923
1923
  "fab-size-mini": "fab-size-mini_KP9BD",
1924
1924
  fabSizeMini: "fab-size-mini_KP9BD"
1925
- }, Xt = {
1925
+ }, Jt = {
1926
1926
  default: null,
1927
- mini: Yt.fabSizeMini
1927
+ mini: qt.fabSizeMini
1928
1928
  };
1929
- function Zt({ children: e = null, size: t = "default", className: n = "", styleType: r = H.Primary, onClick: i = () => {} }) {
1929
+ function Yt({ children: e = null, size: t = "default", className: n = "", styleType: r = W.Primary, onClick: i = () => {} }) {
1930
1930
  return /* @__PURE__ */ F(G, {
1931
1931
  styleType: r,
1932
- className: f(Yt.fab, Xt[t], n),
1932
+ className: f(qt.fab, Jt[t], n),
1933
1933
  onClick: i,
1934
1934
  children: /* @__PURE__ */ F("div", {
1935
- className: Yt.fabContentContainer,
1935
+ className: qt.fabContentContainer,
1936
1936
  children: /* @__PURE__ */ F("div", {
1937
- className: Yt.fabContent,
1937
+ className: qt.fabContent,
1938
1938
  children: e
1939
1939
  })
1940
1940
  })
1941
1941
  });
1942
1942
  }
1943
- var X = {
1943
+ var Xt = {
1944
1944
  fab: "fab_YI34X",
1945
1945
  appear: "appear_DL0wm",
1946
1946
  "fab-container": "fab-container_8uoYo",
@@ -1970,7 +1970,7 @@ var X = {
1970
1970
  };
1971
1971
  //#endregion
1972
1972
  //#region package/common/fab/fab.tsx
1973
- function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMenuEntryClicked: r = () => {}, onClick: i = () => {}, closeMenuOnEntryClicked: a = !0, ...o }) {
1973
+ function Zt({ children: e = null, size: t = "default", menuEntries: n = [], onMenuEntryClicked: r = () => {}, onClick: i = () => {}, closeMenuOnEntryClicked: a = !0, ...o }) {
1974
1974
  let [s, c] = d(!1);
1975
1975
  function l() {
1976
1976
  n.length > 0 && c((e) => !e), i();
@@ -1980,44 +1980,44 @@ function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMe
1980
1980
  }
1981
1981
  return /* @__PURE__ */ I("div", {
1982
1982
  ...o,
1983
- className: X.fabContainer,
1983
+ className: Xt.fabContainer,
1984
1984
  children: [
1985
1985
  /* @__PURE__ */ F("div", {
1986
- className: f(X.fabMenuBackdrop, s && X.fabMenuBackdropOpen),
1986
+ className: f(Xt.fabMenuBackdrop, s && Xt.fabMenuBackdropOpen),
1987
1987
  onClick: (e) => {
1988
1988
  e.stopPropagation(), c(!1);
1989
1989
  }
1990
1990
  }),
1991
1991
  /* @__PURE__ */ F("div", {
1992
1992
  onClick: (e) => e.stopPropagation(),
1993
- children: /* @__PURE__ */ F(Zt, {
1994
- className: X.fab,
1993
+ children: /* @__PURE__ */ F(Yt, {
1994
+ className: Xt.fab,
1995
1995
  size: t,
1996
1996
  onClick: l,
1997
1997
  children: /* @__PURE__ */ I("div", {
1998
- className: f(X.fabIcon, s && X.fabIconMenuOpen),
1998
+ className: f(Xt.fabIcon, s && Xt.fabIconMenuOpen),
1999
1999
  children: [/* @__PURE__ */ F("div", {
2000
- className: f(X.fabIconContent, !s && X.fabIconContentShown),
2000
+ className: f(Xt.fabIconContent, !s && Xt.fabIconContentShown),
2001
2001
  children: e
2002
2002
  }), /* @__PURE__ */ F("div", {
2003
- className: f(X.fabIconContent, s && X.fabIconContentShown),
2003
+ className: f(Xt.fabIconContent, s && Xt.fabIconContentShown),
2004
2004
  children: /* @__PURE__ */ F(p, { icon: M })
2005
2005
  })]
2006
2006
  })
2007
2007
  })
2008
2008
  }),
2009
2009
  /* @__PURE__ */ F("div", {
2010
- className: X.fabMenu,
2010
+ className: Xt.fabMenu,
2011
2011
  children: n.map(({ id: e, label: t, icon: n }) => /* @__PURE__ */ I("div", {
2012
- className: f(X.fabMenuEntry, s && X.fabMenuEntryShown),
2012
+ className: f(Xt.fabMenuEntry, s && Xt.fabMenuEntryShown),
2013
2013
  onClick: (t) => u(t, e),
2014
2014
  children: [t && /* @__PURE__ */ F("div", {
2015
- className: X.fabMenuEntryLabelContainer,
2015
+ className: Xt.fabMenuEntryLabelContainer,
2016
2016
  children: /* @__PURE__ */ F("div", {
2017
- className: X.fabMenuEntryLabel,
2017
+ className: Xt.fabMenuEntryLabel,
2018
2018
  children: t
2019
2019
  })
2020
- }), /* @__PURE__ */ F(Zt, {
2020
+ }), /* @__PURE__ */ F(Yt, {
2021
2021
  size: "mini",
2022
2022
  children: /* @__PURE__ */ F(p, { icon: n })
2023
2023
  })]
@@ -2026,7 +2026,7 @@ function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMe
2026
2026
  ]
2027
2027
  });
2028
2028
  }
2029
- var $t = {
2029
+ var Qt = {
2030
2030
  iconPicker: "iconPicker_xJJmG",
2031
2031
  "iconPicker-label": "iconPicker-label_VEB2X",
2032
2032
  iconPickerLabel: "iconPicker-label_VEB2X",
@@ -2041,19 +2041,19 @@ var $t = {
2041
2041
  };
2042
2042
  //#endregion
2043
2043
  //#region package/common/iconPicker/iconPicker.tsx
2044
- function en(e) {
2044
+ function $t(e) {
2045
2045
  let { formValidator: t } = e;
2046
2046
  return t ? t.touched && t.hasError() : !1;
2047
2047
  }
2048
- function tn(e) {
2048
+ function en(e) {
2049
2049
  let { isRequired: t, formValidator: n } = e;
2050
2050
  return !!(t || n?.validators.find((e) => e.validatorId === "required"));
2051
2051
  }
2052
- 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 }) {
2053
- let d = i ? i.value ?? null : t, m = en({
2052
+ function tn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, formValidator: i = null, isRequired: a, className: o, style: s, classNames: c, styles: l, ...u }) {
2053
+ let d = i ? i.value ?? null : t, m = $t({
2054
2054
  formValidator: i,
2055
2055
  isRequired: a
2056
- }), h = tn({
2056
+ }), h = en({
2057
2057
  formValidator: i,
2058
2058
  isRequired: a
2059
2059
  });
@@ -2062,20 +2062,20 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2062
2062
  }
2063
2063
  return /* @__PURE__ */ I("div", {
2064
2064
  ...u,
2065
- className: f($t.iconPicker, { [$t.iconPickerError]: m }, c?.root, o),
2065
+ className: f(Qt.iconPicker, { [Qt.iconPickerError]: m }, c?.root, o),
2066
2066
  style: {
2067
2067
  ...l?.root,
2068
2068
  ...s
2069
2069
  },
2070
2070
  children: [n && /* @__PURE__ */ I("div", {
2071
- className: f($t.iconPickerLabel, c?.label),
2071
+ className: f(Qt.iconPickerLabel, c?.label),
2072
2072
  style: l?.label,
2073
2073
  children: [n, h && " *"]
2074
2074
  }), /* @__PURE__ */ F("div", {
2075
- className: f($t.iconPickerItemContainer, c?.itemContainer),
2075
+ className: f(Qt.iconPickerItemContainer, c?.itemContainer),
2076
2076
  style: l?.itemContainer,
2077
2077
  children: e.map(({ id: e, label: t, icon: n, customIcon: r }) => /* @__PURE__ */ I("div", {
2078
- className: f($t.iconPickerItem, { [$t.iconPickerItemSelected]: d === e }, c?.item),
2078
+ className: f(Qt.iconPickerItem, { [Qt.iconPickerItemSelected]: d === e }, c?.item),
2079
2079
  style: l?.item,
2080
2080
  title: t,
2081
2081
  tabIndex: 0,
@@ -2087,7 +2087,7 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2087
2087
  children: [
2088
2088
  n && /* @__PURE__ */ F(p, { icon: n }),
2089
2089
  r ?? null,
2090
- /* @__PURE__ */ F(Ne, {})
2090
+ /* @__PURE__ */ F(Me, {})
2091
2091
  ]
2092
2092
  }, e))
2093
2093
  })]
@@ -2095,14 +2095,14 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2095
2095
  }
2096
2096
  //#endregion
2097
2097
  //#region package/common/idleManager/idleManager.tsx
2098
- var rn = [
2098
+ var nn = [
2099
2099
  "click",
2100
2100
  "mousemove",
2101
2101
  "keydown",
2102
2102
  "scroll",
2103
2103
  "touchstart"
2104
2104
  ];
2105
- function an({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n = !0 }) {
2105
+ function rn({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n = !0 }) {
2106
2106
  let [r, o] = d(!1), s = u(null), c = i(() => {
2107
2107
  s.current !== null && clearTimeout(s.current), o(!1), s.current = setTimeout(() => {
2108
2108
  o(!0);
@@ -2111,14 +2111,14 @@ function an({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n
2111
2111
  return a(() => {
2112
2112
  c();
2113
2113
  }, [c]), a(() => {
2114
- for (let e of rn) document.addEventListener(e, c);
2114
+ for (let e of nn) document.addEventListener(e, c);
2115
2115
  return () => {
2116
- for (let e of rn) document.removeEventListener(e, c);
2116
+ for (let e of nn) document.removeEventListener(e, c);
2117
2117
  s.current !== null && clearTimeout(s.current);
2118
2118
  };
2119
- }, [c]), /* @__PURE__ */ F(P, { children: n && r && e });
2119
+ }, [c]), /* @__PURE__ */ F(ce, { children: n && r && e });
2120
2120
  }
2121
- var on = {
2121
+ var an = {
2122
2122
  inputDropdown: "inputDropdown_UdYMa",
2123
2123
  dropdown: "dropdown_-M5-x",
2124
2124
  "dropdown-shown": "dropdown-shown_H2rFU",
@@ -2132,15 +2132,15 @@ var on = {
2132
2132
  };
2133
2133
  //#endregion
2134
2134
  //#region package/common/inputDropdown/inputDropdown.tsx
2135
- function sn(e, t) {
2135
+ function on(e, t) {
2136
2136
  return t ? t.value ?? "" : e ?? "";
2137
2137
  }
2138
- function cn(e, t) {
2138
+ function sn(e, t) {
2139
2139
  let n = t.find((t) => t.value === e);
2140
2140
  return n ? n.label ?? n.value : e;
2141
2141
  }
2142
- 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 }) {
2143
- 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);
2142
+ function cn({ 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 }) {
2143
+ let g = on(t, n), [_, v] = d(() => sn(g, r)), [y, b] = d(g), [x, S] = d(!1), [C, w] = d(null), T = u(null);
2144
2144
  if (g !== y) {
2145
2145
  b(g);
2146
2146
  let e = r.find((e) => e.value === g);
@@ -2167,7 +2167,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2167
2167
  ]);
2168
2168
  return /* @__PURE__ */ I("div", {
2169
2169
  ...h,
2170
- className: f(on.inputDropdown, s?.root, a),
2170
+ className: f(an.inputDropdown, s?.root, a),
2171
2171
  style: {
2172
2172
  ...c?.root,
2173
2173
  ...o
@@ -2175,7 +2175,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2175
2175
  onFocus: ee,
2176
2176
  onBlur: D,
2177
2177
  onKeyDown: k,
2178
- children: [/* @__PURE__ */ F(it, {
2178
+ children: [/* @__PURE__ */ F(rt, {
2179
2179
  label: e,
2180
2180
  value: _,
2181
2181
  onChange: (e) => {
@@ -2183,10 +2183,10 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2183
2183
  },
2184
2184
  placeholder: m
2185
2185
  }), /* @__PURE__ */ F("div", {
2186
- className: f(on.dropdown, { [on.dropdownShown]: x }, s?.dropdown),
2186
+ className: f(an.dropdown, { [an.dropdownShown]: x }, s?.dropdown),
2187
2187
  style: c?.dropdown,
2188
2188
  children: x && E.map((e, t) => /* @__PURE__ */ F("div", {
2189
- className: f(on.dropdownItem, C === t && on.dropdownItemHighlighted, s?.item),
2189
+ className: f(an.dropdownItem, C === t && an.dropdownItemHighlighted, s?.item),
2190
2190
  style: c?.item,
2191
2191
  onClick: () => O(e),
2192
2192
  children: e.label ?? e.value
@@ -2194,7 +2194,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2194
2194
  })]
2195
2195
  });
2196
2196
  }
2197
- var un = {
2197
+ var ln = {
2198
2198
  board: "board_6KRdw",
2199
2199
  column: "column_NrNeF",
2200
2200
  "column-empty": "column-empty_5KYsJ",
@@ -2212,15 +2212,15 @@ var un = {
2212
2212
  };
2213
2213
  //#endregion
2214
2214
  //#region package/common/kanbanBoard/KanbanItem.tsx
2215
- function dn({ id: e, children: t }) {
2216
- let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = z({ id: e });
2215
+ function un({ id: e, children: t }) {
2216
+ let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = ge({ id: e });
2217
2217
  return /* @__PURE__ */ F("div", {
2218
2218
  ref: i,
2219
2219
  style: {
2220
- transform: be.Transform.toString(a),
2220
+ transform: ve.Transform.toString(a),
2221
2221
  transition: o
2222
2222
  },
2223
- className: f(un.item, s && un.itemDragging),
2223
+ className: f(ln.item, s && ln.itemDragging),
2224
2224
  ...n,
2225
2225
  ...r,
2226
2226
  children: t
@@ -2228,22 +2228,22 @@ function dn({ id: e, children: t }) {
2228
2228
  }
2229
2229
  //#endregion
2230
2230
  //#region package/common/kanbanBoard/KanbanColumn.tsx
2231
- function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a, classNames: o, styles: s }) {
2232
- let { setNodeRef: c, isOver: l } = he({ id: `column-${e}` });
2231
+ function dn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a, classNames: o, styles: s }) {
2232
+ let { setNodeRef: c, isOver: l } = me({ id: `column-${e}` });
2233
2233
  return /* @__PURE__ */ I("div", {
2234
- className: f(un.column, l && un.columnOver, n.length === 0 && un.columnEmpty, a),
2234
+ className: f(ln.column, l && ln.columnOver, n.length === 0 && ln.columnEmpty, a),
2235
2235
  children: [/* @__PURE__ */ F("div", {
2236
- className: f(un.columnHeader, o?.header),
2236
+ className: f(ln.columnHeader, o?.header),
2237
2237
  style: s?.header,
2238
2238
  children: t
2239
- }), /* @__PURE__ */ F(_e, {
2239
+ }), /* @__PURE__ */ F(B, {
2240
2240
  items: n,
2241
- strategy: ye,
2241
+ strategy: _e,
2242
2242
  children: /* @__PURE__ */ F("div", {
2243
2243
  ref: c,
2244
- className: f(un.columnItems, o?.items),
2244
+ className: f(ln.columnItems, o?.items),
2245
2245
  style: s?.items,
2246
- children: n.map((e) => /* @__PURE__ */ F(dn, {
2246
+ children: n.map((e) => /* @__PURE__ */ F(un, {
2247
2247
  id: e,
2248
2248
  children: r[e] === void 0 ? null : i(r[e], e)
2249
2249
  }, e))
@@ -2253,8 +2253,8 @@ function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a
2253
2253
  }
2254
2254
  //#endregion
2255
2255
  //#region package/common/kanbanBoard/KanbanBoard.tsx
2256
- function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2257
- let [c, l] = d(null), [u, p] = d(null), m = R(ge(me, { activationConstraint: { distance: 8 } })), h = u ?? e;
2256
+ function fn({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2257
+ let [c, l] = d(null), [u, p] = d(null), m = z(he(pe, { activationConstraint: { distance: 8 } })), h = u ?? e;
2258
2258
  function g(e, t) {
2259
2259
  return e.findIndex((e) => e.itemIds.includes(t));
2260
2260
  }
@@ -2286,7 +2286,7 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2286
2286
  let e = n[a], t = e.itemIds.indexOf(r), o = e.itemIds.indexOf(i);
2287
2287
  t !== -1 && o !== -1 && t !== o && (n[a] = {
2288
2288
  ...e,
2289
- itemIds: ve(e.itemIds, t, o)
2289
+ itemIds: V(e.itemIds, t, o)
2290
2290
  });
2291
2291
  } else {
2292
2292
  n[a].itemIds = n[a].itemIds.filter((e) => e !== r);
@@ -2303,30 +2303,30 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2303
2303
  }
2304
2304
  r(u), p(null);
2305
2305
  }
2306
- return /* @__PURE__ */ I(fe, {
2306
+ return /* @__PURE__ */ I(de, {
2307
2307
  sensors: m,
2308
- collisionDetection: L,
2308
+ collisionDetection: R,
2309
2309
  onDragStart: _,
2310
2310
  onDragOver: v,
2311
2311
  onDragEnd: y,
2312
2312
  children: [/* @__PURE__ */ F("div", {
2313
- className: f(un.board, i),
2313
+ className: f(ln.board, i),
2314
2314
  style: a,
2315
- children: h.map((e) => /* @__PURE__ */ F(fn, {
2315
+ children: h.map((e) => /* @__PURE__ */ F(dn, {
2316
2316
  id: e.id,
2317
2317
  title: e.title,
2318
2318
  itemIds: e.itemIds,
2319
2319
  items: t,
2320
2320
  renderItem: n
2321
2321
  }, e.id))
2322
- }), /* @__PURE__ */ F(pe, { children: c && t[c] !== void 0 ? /* @__PURE__ */ F("div", {
2323
- className: f(un.dragOverlay, o?.dragOverlay),
2322
+ }), /* @__PURE__ */ F(fe, { children: c && t[c] !== void 0 ? /* @__PURE__ */ F("div", {
2323
+ className: f(ln.dragOverlay, o?.dragOverlay),
2324
2324
  style: s?.dragOverlay,
2325
2325
  children: n(t[c], c)
2326
2326
  }) : null })]
2327
2327
  });
2328
2328
  }
2329
- var mn = {
2329
+ var pn = {
2330
2330
  iconLoading: "iconLoading_wovj4",
2331
2331
  "spin-to-oblivion": "spin-to-oblivion_0tZtm",
2332
2332
  spinToOblivion: "spin-to-oblivion_0tZtm",
@@ -2341,39 +2341,39 @@ var mn = {
2341
2341
  };
2342
2342
  //#endregion
2343
2343
  //#region package/common/loading/iconLoading/iconLoading.tsx
2344
- function hn({ className: e = "" }) {
2344
+ function mn({ className: e = "" }) {
2345
2345
  return /* @__PURE__ */ F("div", {
2346
- className: f(mn.iconLoading, e),
2346
+ className: f(pn.iconLoading, e),
2347
2347
  children: /* @__PURE__ */ I("svg", {
2348
2348
  xmlns: "http://www.w3.org/2000/svg",
2349
2349
  viewBox: "-8 -1 16 14",
2350
2350
  children: [
2351
2351
  /* @__PURE__ */ F("path", {
2352
- className: mn.iconLoadingFirst,
2352
+ className: pn.iconLoadingFirst,
2353
2353
  d: "M 0 0 C 3 5 6 5 6 12",
2354
2354
  strokeWidth: "1.7",
2355
2355
  fill: "none"
2356
2356
  }),
2357
2357
  /* @__PURE__ */ F("path", {
2358
- className: mn.iconLoadingFirst,
2358
+ className: pn.iconLoadingFirst,
2359
2359
  d: "M 0 0 C -3 5 -6 5 -6 12",
2360
2360
  strokeWidth: "1.7",
2361
2361
  fill: "none"
2362
2362
  }),
2363
2363
  /* @__PURE__ */ F("path", {
2364
- className: mn.iconLoadingFirst,
2364
+ className: pn.iconLoadingFirst,
2365
2365
  d: "M 0 0 L 0 10",
2366
2366
  strokeWidth: "1.7",
2367
2367
  fill: "none"
2368
2368
  }),
2369
2369
  /* @__PURE__ */ F("path", {
2370
- className: mn.iconLoadingSecond,
2370
+ className: pn.iconLoadingSecond,
2371
2371
  d: "M 0.1 10 C -3 10 -4 10 -6 12",
2372
2372
  strokeWidth: "1.7",
2373
2373
  fill: "none"
2374
2374
  }),
2375
2375
  /* @__PURE__ */ F("path", {
2376
- className: mn.iconLoadingSecond,
2376
+ className: pn.iconLoadingSecond,
2377
2377
  d: "M -0.1 10 C 3 10 4 10 6 12",
2378
2378
  strokeWidth: "1.7",
2379
2379
  fill: "none"
@@ -2384,26 +2384,26 @@ function hn({ className: e = "" }) {
2384
2384
  }
2385
2385
  //#endregion
2386
2386
  //#region package/common/loading/iconLoading/index.ts
2387
- var gn = hn, _n = { numberInput: "numberInput_7p2O3" };
2387
+ var hn = mn, gn = { numberInput: "numberInput_7p2O3" };
2388
2388
  //#endregion
2389
2389
  //#region package/common/numberInput/numberInput.tsx
2390
- 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: p, sign: m, ...h }) {
2390
+ function _n({ 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: p, sign: m, ...h }) {
2391
2391
  let g = n == null ? e : n.value, _ = m != null && g != null ? Math.abs(Number(g)) : g, v = _ == null ? "" : String(_);
2392
2392
  function y(e) {
2393
2393
  let r = e;
2394
2394
  r !== void 0 && (m === "-" && (r = -Math.abs(r)), m === "+" && (r = Math.abs(r))), n?.set(r ?? null), t?.(r);
2395
2395
  }
2396
2396
  let b = m === "-" ? "-" : m === "+" ? "+" : l;
2397
- return /* @__PURE__ */ F(it, {
2397
+ return /* @__PURE__ */ F(rt, {
2398
2398
  label: r,
2399
- className: f(_n.numberInput, a),
2399
+ className: f(gn.numberInput, a),
2400
2400
  value: v,
2401
2401
  onChange: () => {},
2402
2402
  formValidator: null,
2403
2403
  isValid: n ? n.touched ? !n.hasError() : !0 : !i,
2404
2404
  errorMessage: n ? n.getCurrentErrorMessage() ?? "" : i ?? "",
2405
2405
  placeholder: p,
2406
- customInput: /* @__PURE__ */ F(xe, {
2406
+ customInput: /* @__PURE__ */ F(ye, {
2407
2407
  onValueChange: (e) => y(e.floatValue),
2408
2408
  allowNegative: m == null ? o : !1,
2409
2409
  decimalSeparator: s,
@@ -2418,7 +2418,7 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2418
2418
  }
2419
2419
  //#endregion
2420
2420
  //#region package/common/numberInput/index.ts
2421
- var yn = vn, bn = {
2421
+ var vn = _n, yn = {
2422
2422
  optionPicker: "optionPicker_Yx82s",
2423
2423
  "optionPicker-chip": "optionPicker-chip_ywtvr",
2424
2424
  optionPickerChip: "optionPicker-chip_ywtvr",
@@ -2429,20 +2429,20 @@ var yn = vn, bn = {
2429
2429
  };
2430
2430
  //#endregion
2431
2431
  //#region package/common/optionPicker/optionPicker.tsx
2432
- function xn({ className: e = void 0, options: t, onChange: n, value: r, ...i }) {
2432
+ function bn({ className: e = void 0, options: t, onChange: n, value: r, ...i }) {
2433
2433
  let a = t.findIndex((e) => e.key === r) * 100 / t.length;
2434
2434
  return /* @__PURE__ */ I("div", {
2435
2435
  ...i,
2436
- className: f(bn.optionPicker, e),
2436
+ className: f(yn.optionPicker, e),
2437
2437
  children: [/* @__PURE__ */ F("div", {
2438
- className: bn.optionPickerChip,
2438
+ className: yn.optionPickerChip,
2439
2439
  style: {
2440
2440
  left: `${a}%`,
2441
2441
  width: `${100 / t.length}%`
2442
2442
  }
2443
- }), t.map((e) => /* @__PURE__ */ F(Re, {
2443
+ }), t.map((e) => /* @__PURE__ */ F(K, {
2444
2444
  onClick: (t) => n(e.key, t),
2445
- className: f(bn.optionPickerOption, e.key === r && bn.optionPickerOptionActive),
2445
+ className: f(yn.optionPickerOption, e.key === r && yn.optionPickerOptionActive),
2446
2446
  tabIndex: e.key === r ? -1 : 0,
2447
2447
  children: e.label
2448
2448
  }, e.key))]
@@ -2450,25 +2450,25 @@ function xn({ className: e = void 0, options: t, onChange: n, value: r, ...i })
2450
2450
  }
2451
2451
  //#endregion
2452
2452
  //#region package/hooks/useWindowSize.ts
2453
- var Sn = 768;
2454
- function Cn() {
2453
+ var xn = 768;
2454
+ function Sn() {
2455
2455
  let [e, t] = d(() => ({
2456
2456
  width: window.innerWidth,
2457
2457
  height: window.innerHeight,
2458
- isMobileSize: window.innerWidth < Sn
2458
+ isMobileSize: window.innerWidth < xn
2459
2459
  }));
2460
2460
  return a(() => {
2461
2461
  function e() {
2462
2462
  t({
2463
2463
  width: window.innerWidth,
2464
2464
  height: window.innerHeight,
2465
- isMobileSize: window.innerWidth < Sn
2465
+ isMobileSize: window.innerWidth < xn
2466
2466
  });
2467
2467
  }
2468
2468
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
2469
2469
  }, []), e;
2470
2470
  }
2471
- var wn = {
2471
+ var Cn = {
2472
2472
  overscroll: "overscroll_Ij750",
2473
2473
  "overscroll-header": "overscroll-header_S6vYc",
2474
2474
  overscrollHeader: "overscroll-header_S6vYc",
@@ -2479,8 +2479,8 @@ var wn = {
2479
2479
  };
2480
2480
  //#endregion
2481
2481
  //#region package/common/overscroll/overscroll.tsx
2482
- 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 }) {
2483
- let { isMobileSize: h, height: g } = Cn(), _ = u(null), v = u(null), y = u(null), b = u(!1), x = u(null), S = u(p);
2482
+ function wn({ 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 }) {
2483
+ let { isMobileSize: h, height: g } = Sn(), _ = u(null), v = u(null), y = u(null), b = u(!1), x = u(null), S = u(p);
2484
2484
  S.current = p;
2485
2485
  let C = i((e) => {
2486
2486
  let t;
@@ -2535,18 +2535,18 @@ function Tn({ children: e = null, overscrollContent: t = null, overscrollContent
2535
2535
  x.current = null, b.current = !1, S.current(!1);
2536
2536
  }, 500);
2537
2537
  }
2538
- if (d && !h) return n ? /* @__PURE__ */ I("div", { children: [n, e] }) : /* @__PURE__ */ F(P, { children: e });
2538
+ if (d && !h) return n ? /* @__PURE__ */ I("div", { children: [n, e] }) : /* @__PURE__ */ F(ce, { children: e });
2539
2539
  let O = l === "%" ? `${100 - o}%` : `calc(100% - ${o}px)`;
2540
2540
  return /* @__PURE__ */ I("div", {
2541
- className: wn.overscroll,
2541
+ className: Cn.overscroll,
2542
2542
  ref: _,
2543
2543
  onScroll: D,
2544
2544
  children: [/* @__PURE__ */ F("div", {
2545
- className: wn.overscrollHeaderContainer,
2545
+ className: Cn.overscrollHeaderContainer,
2546
2546
  style: { height: `${s}${l}` },
2547
2547
  ref: y,
2548
2548
  children: /* @__PURE__ */ F("div", {
2549
- className: f(wn.overscrollHeader, r && wn.overscrollHeaderCentered),
2549
+ className: f(Cn.overscrollHeader, r && Cn.overscrollHeaderCentered),
2550
2550
  ref: v,
2551
2551
  children: t
2552
2552
  })
@@ -2556,7 +2556,7 @@ function Tn({ children: e = null, overscrollContent: t = null, overscrollContent
2556
2556
  })]
2557
2557
  });
2558
2558
  }
2559
- var En = {
2559
+ var Tn = {
2560
2560
  progressBar: "progressBar_LO0sX",
2561
2561
  "progressBar-fill": "progressBar-fill_rt32j",
2562
2562
  progressBarFill: "progressBar-fill_rt32j",
@@ -2569,17 +2569,17 @@ var En = {
2569
2569
  };
2570
2570
  //#endregion
2571
2571
  //#region package/common/progressBar/progressBar.tsx
2572
- function Dn(e) {
2572
+ function En(e) {
2573
2573
  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);
2574
2574
  return (.299 * n + .587 * r + .114 * i) / 255 > .5 ? "#000000" : "#ffffff";
2575
2575
  }
2576
- function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r = void 0, ...i }) {
2576
+ function Dn({ className: e = void 0, total: t = 100, progress: n = 0, style: r = void 0, ...i }) {
2577
2577
  function a() {
2578
2578
  let e = [];
2579
2579
  return Array.isArray(n) ? e.push(...n) : typeof n == "object" ? e.push(n) : e.push({ amount: n }), e.map((n, i) => {
2580
2580
  let a = t ? n.amount / t * 100 : 0;
2581
2581
  return /* @__PURE__ */ F("div", {
2582
- className: f(En.progressBarFill, i === e.length - 1 && En.progressBarFillEnd, n.class),
2582
+ className: f(Tn.progressBarFill, i === e.length - 1 && Tn.progressBarFillEnd, n.class),
2583
2583
  style: {
2584
2584
  width: `${a}%`,
2585
2585
  background: n.color || void 0,
@@ -2587,8 +2587,8 @@ function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r =
2587
2587
  },
2588
2588
  title: n.label ? `${n.label}: ${n.amount}` : void 0,
2589
2589
  children: n.label && /* @__PURE__ */ F("div", {
2590
- className: En.progressBarLabel,
2591
- style: n.color ? { color: Dn(n.color) } : {},
2590
+ className: Tn.progressBarLabel,
2591
+ style: n.color ? { color: En(n.color) } : {},
2592
2592
  children: n.label
2593
2593
  })
2594
2594
  }, i);
@@ -2596,21 +2596,21 @@ function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r =
2596
2596
  }
2597
2597
  return /* @__PURE__ */ F("div", {
2598
2598
  ...i,
2599
- className: f(En.progressBar, e),
2599
+ className: f(Tn.progressBar, e),
2600
2600
  style: r,
2601
2601
  children: a()
2602
2602
  });
2603
2603
  }
2604
- function kn(e) {
2604
+ function On(e) {
2605
2605
  return Math.round(e / 5) * 5;
2606
2606
  }
2607
- function An(e) {
2607
+ function kn(e) {
2608
2608
  return {
2609
- x: kn(e.x),
2610
- y: kn(e.y)
2609
+ x: On(e.x),
2610
+ y: On(e.y)
2611
2611
  };
2612
2612
  }
2613
- function jn(e, t, n) {
2613
+ function An(e, t, n) {
2614
2614
  let r = n.createSVGPoint();
2615
2615
  r.x = e, r.y = t;
2616
2616
  let i = n.getScreenCTM();
@@ -2619,18 +2619,18 @@ function jn(e, t, n) {
2619
2619
  y: 0
2620
2620
  };
2621
2621
  let a = r.matrixTransform(i.inverse());
2622
- return An({
2622
+ return kn({
2623
2623
  x: a.x,
2624
2624
  y: a.y
2625
2625
  });
2626
2626
  }
2627
- function Mn(e, t) {
2627
+ function jn(e, t) {
2628
2628
  return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
2629
2629
  }
2630
- function Nn(e, t, n) {
2630
+ function Mn(e, t, n) {
2631
2631
  let r = n.x - t.x, i = n.y - t.y, a = r * r + i * i;
2632
2632
  if (a === 0) return {
2633
- dist: Mn(e, t),
2633
+ dist: jn(e, t),
2634
2634
  t: 0
2635
2635
  };
2636
2636
  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;
@@ -2639,12 +2639,12 @@ function Nn(e, t, n) {
2639
2639
  t: o
2640
2640
  };
2641
2641
  }
2642
- function Pn(e, t) {
2642
+ function Nn(e, t) {
2643
2643
  let n = null;
2644
2644
  for (let r of t) {
2645
2645
  let t = r.points;
2646
2646
  for (let i = 0; i < t.length; i++) {
2647
- let a = t[i], o = t[(i + 1) % t.length], { dist: s, t: c } = Nn(e, a, o);
2647
+ let a = t[i], o = t[(i + 1) % t.length], { dist: s, t: c } = Mn(e, a, o);
2648
2648
  s <= 8 && (!n || s < n.dist) && (n = {
2649
2649
  roomId: r.id,
2650
2650
  wallIndex: i,
@@ -2655,7 +2655,7 @@ function Pn(e, t) {
2655
2655
  }
2656
2656
  return n;
2657
2657
  }
2658
- function Fn(e, t) {
2658
+ function Pn(e, t) {
2659
2659
  let n = !1;
2660
2660
  for (let r = 0, i = t.length - 1; r < t.length; i = r++) {
2661
2661
  let a = t[r].x, o = t[r].y, s = t[i].x, c = t[i].y;
@@ -2663,13 +2663,13 @@ function Fn(e, t) {
2663
2663
  }
2664
2664
  return n;
2665
2665
  }
2666
- function In(e) {
2666
+ function Fn(e) {
2667
2667
  return {
2668
2668
  x: e.reduce((e, t) => e + t.x, 0) / e.length,
2669
2669
  y: e.reduce((e, t) => e + t.y, 0) / e.length
2670
2670
  };
2671
2671
  }
2672
- function Ln(e, t, n, r) {
2672
+ function In(e, t, n, r) {
2673
2673
  return [
2674
2674
  {
2675
2675
  x: e,
@@ -2689,7 +2689,7 @@ function Ln(e, t, n, r) {
2689
2689
  }
2690
2690
  ];
2691
2691
  }
2692
- function Rn(e, t, n, r) {
2692
+ function Ln(e, t, n, r) {
2693
2693
  let i = t.x - e.x, a = t.y - e.y, o = Math.sqrt(i * i + a * a);
2694
2694
  if (o < .001) return null;
2695
2695
  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);
@@ -2708,13 +2708,13 @@ function Rn(e, t, n, r) {
2708
2708
  }
2709
2709
  };
2710
2710
  }
2711
- function zn(e) {
2711
+ function Rn(e) {
2712
2712
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2713
2713
  }
2714
- function Bn(e) {
2714
+ function zn(e) {
2715
2715
  return e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ") + " Z";
2716
2716
  }
2717
- function Vn(e, t) {
2717
+ function Bn(e, t) {
2718
2718
  if (e.length < 2) return [];
2719
2719
  if (t.length === 0) return [e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ") + " Z"];
2720
2720
  let n = e.length, r = [], i = [`M ${e[0].x.toFixed(2)},${e[0].y.toFixed(2)}`];
@@ -2737,8 +2737,8 @@ function Vn(e, t) {
2737
2737
  }
2738
2738
  return r[0] = [...i, ...r[0].slice(1)], r.map((e) => e.join(" "));
2739
2739
  }
2740
- function Hn(e, t, n) {
2741
- let r = Rn(e, t, n.t, n.width);
2740
+ function Vn(e, t, n) {
2741
+ let r = Ln(e, t, n.t, n.width);
2742
2742
  if (!r) return "";
2743
2743
  let { p1: i, p2: a, perp: o } = r, s = {
2744
2744
  x: i.x + o.x * n.width,
@@ -2746,7 +2746,7 @@ function Hn(e, t, n) {
2746
2746
  };
2747
2747
  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(" ");
2748
2748
  }
2749
- function Un(e, t) {
2749
+ function Hn(e, t) {
2750
2750
  let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
2751
2751
  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);
2752
2752
  isFinite(n) || (n = 0, r = 0, i = 400, a = 300);
@@ -2756,10 +2756,10 @@ function Un(e, t) {
2756
2756
  (i - n + 10).toFixed(2),
2757
2757
  (a - r + 10).toFixed(2)
2758
2758
  ].join(" "), s = e.map((e) => {
2759
- 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) => {
2760
- let n = e.points[t.wallIndex], r = e.points[(t.wallIndex + 1) % e.points.length], i = Hn(n, r, t);
2759
+ let n = t.filter((t) => t.roomId === e.id), r = Bn(e.points, n), i = zn(e.points), a = Fn(e.points), o = r.map((e) => ` <path d="${e}" />`).join("\n"), s = n.map((t) => {
2760
+ let n = e.points[t.wallIndex], r = e.points[(t.wallIndex + 1) % e.points.length], i = Vn(n, r, t);
2761
2761
  return i ? ` <path d="${i}" fill="none" />` : "";
2762
- }).filter(Boolean).join("\n"), c = e.name ? ` <text fontSize="5" x="${a.x.toFixed(1)}" y="${a.y.toFixed(1)}">${zn(e.name)}</text>` : "";
2762
+ }).filter(Boolean).join("\n"), c = e.name ? ` <text fontSize="5" x="${a.x.toFixed(1)}" y="${a.y.toFixed(1)}">${Rn(e.name)}</text>` : "";
2763
2763
  return [
2764
2764
  ` <g id="${e.id}">`,
2765
2765
  o,
@@ -2778,7 +2778,7 @@ function Un(e, t) {
2778
2778
  "</svg>"
2779
2779
  ].join("\n");
2780
2780
  }
2781
- function Wn(e) {
2781
+ function Un(e) {
2782
2782
  let t = [];
2783
2783
  for (let n of e.matchAll(/[ML]\s*([-\d.]+)[,\s]+([-\d.]+)/gi)) t.push({
2784
2784
  x: parseFloat(n[1]),
@@ -2786,14 +2786,14 @@ function Wn(e) {
2786
2786
  });
2787
2787
  return t;
2788
2788
  }
2789
- function Gn(e) {
2789
+ function Wn(e) {
2790
2790
  let t = new DOMParser().parseFromString(e, "image/svg+xml"), n = [];
2791
2791
  return t.querySelectorAll("[id^=\"room\"]").forEach((e) => {
2792
2792
  let t = e.querySelector("[id=\"background\"]");
2793
2793
  if (!t) return;
2794
2794
  let r = t.getAttribute("d");
2795
2795
  if (!r) return;
2796
- let i = Wn(r);
2796
+ let i = Un(r);
2797
2797
  if (i.length < 3) return;
2798
2798
  let a = e.querySelector("text")?.textContent?.trim() ?? "";
2799
2799
  n.push({
@@ -2803,11 +2803,11 @@ function Gn(e) {
2803
2803
  });
2804
2804
  }), n;
2805
2805
  }
2806
- function Kn(e, t) {
2807
- let n = Un(e, t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
2806
+ function Gn(e, t) {
2807
+ let n = Hn(e, t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
2808
2808
  a.href = i, a.download = "room-plan.svg", a.click(), URL.revokeObjectURL(i);
2809
2809
  }
2810
- var Z = {
2810
+ var Q = {
2811
2811
  roomDrawer: "roomDrawer_SJj4-",
2812
2812
  "roomDrawer-toolbar": "roomDrawer-toolbar_55H5p",
2813
2813
  roomDrawerToolbar: "roomDrawer-toolbar_55H5p",
@@ -2879,20 +2879,20 @@ var Z = {
2879
2879
  polyCloseTarget: "polyCloseTarget_snjYx",
2880
2880
  polyVertex: "polyVertex_fw0nX",
2881
2881
  vertexHandle: "vertexHandle_-z7g5"
2882
- }, qn = 6, Jn = 5, Yn = 1.25, Xn = .25, Zn = 12, Qn = 0;
2883
- function $n(e) {
2884
- return Qn += 1, `${e}${Qn}`;
2882
+ }, Kn = 6, qn = 5, Jn = 1.25, Yn = .25, Xn = 12, Zn = 0;
2883
+ function Qn(e) {
2884
+ return Zn += 1, `${e}${Zn}`;
2885
2885
  }
2886
- var er = {
2886
+ var $n = {
2887
2887
  select: "Drag inside to move · Drag corner to reshape · Click wall to add corner · Dbl-click corner to remove · Delete to erase",
2888
2888
  rect: "Drag to draw a rectangular room",
2889
2889
  polygon: "Click to place corners · Click first point or Enter to close · Esc to cancel"
2890
2890
  };
2891
- function tr({ className: e }) {
2891
+ function er({ className: e }) {
2892
2892
  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), [T, E] = d([]), [ee, D] = d(null), [k, A] = d(1), [j, M] = d({
2893
2893
  x: 0,
2894
2894
  y: 0
2895
- }), re = u(null), oe = u(null), ce = u(null), N = u(null), le = u(null), ue = u({
2895
+ }), N = u(null), ae = u(null), se = u(null), P = u(null), L = u(null), le = u({
2896
2896
  rooms: t,
2897
2897
  doors: r,
2898
2898
  tool: o,
@@ -2903,7 +2903,7 @@ function tr({ className: e }) {
2903
2903
  pan: j
2904
2904
  });
2905
2905
  s(() => {
2906
- ue.current = {
2906
+ le.current = {
2907
2907
  rooms: t,
2908
2908
  doors: r,
2909
2909
  tool: o,
@@ -2914,21 +2914,21 @@ function tr({ className: e }) {
2914
2914
  pan: j
2915
2915
  };
2916
2916
  });
2917
- function de(e) {
2917
+ function ue(e) {
2918
2918
  e.length < 3 || (n((t) => [...t, {
2919
- id: $n("room"),
2919
+ id: Qn("room"),
2920
2920
  name: `Room ${t.length + 1}`,
2921
2921
  points: e
2922
2922
  }]), E([]), D(null));
2923
2923
  }
2924
2924
  a(() => {
2925
- let e = N.current;
2925
+ let e = P.current;
2926
2926
  if (!e) return;
2927
2927
  function t(e) {
2928
2928
  e.preventDefault();
2929
- let { zoom: t, pan: n } = ue.current, r = jn(e.clientX, e.clientY, N.current);
2929
+ let { zoom: t, pan: n } = le.current, r = An(e.clientX, e.clientY, P.current);
2930
2930
  if (!r) return;
2931
- let i = e.deltaY < 0 ? Yn : 1 / Yn, a = Math.max(Xn, Math.min(Zn, t * i));
2931
+ let i = e.deltaY < 0 ? Jn : 1 / Jn, a = Math.max(Yn, Math.min(Xn, t * i));
2932
2932
  M({
2933
2933
  x: r.x - (r.x - n.x) * (t / a),
2934
2934
  y: r.y - (r.y - n.y) * (t / a)
@@ -2937,7 +2937,7 @@ function tr({ className: e }) {
2937
2937
  return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
2938
2938
  }, []), a(() => {
2939
2939
  function e(e) {
2940
- let { tool: t, selectedId: r, editingDoorsForRoomId: a, polyPoints: o, zoom: s, pan: c } = ue.current;
2940
+ let { tool: t, selectedId: r, editingDoorsForRoomId: a, polyPoints: o, zoom: s, pan: c } = le.current;
2941
2941
  if (e.key === "Escape") {
2942
2942
  if (a) {
2943
2943
  _(null);
@@ -2947,11 +2947,11 @@ function tr({ className: e }) {
2947
2947
  return;
2948
2948
  }
2949
2949
  if (e.key === "Enter" && t === "polygon" && o.length >= 3) {
2950
- de(o);
2950
+ ue(o);
2951
2951
  return;
2952
2952
  }
2953
2953
  if ((e.key === "+" || e.key === "=") && !(e.target instanceof HTMLInputElement)) {
2954
- let e = Math.max(Xn, Math.min(Zn, s * Yn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
2954
+ let e = Math.max(Yn, Math.min(Xn, s * Jn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
2955
2955
  A(e), M({
2956
2956
  x: t - 400 / e / 2,
2957
2957
  y: n - 300 / e / 2
@@ -2959,7 +2959,7 @@ function tr({ className: e }) {
2959
2959
  return;
2960
2960
  }
2961
2961
  if (e.key === "-" && !(e.target instanceof HTMLInputElement)) {
2962
- let e = Math.max(Xn, Math.min(Zn, s / Yn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
2962
+ let e = Math.max(Yn, Math.min(Xn, s / Jn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
2963
2963
  A(e), M({
2964
2964
  x: t - 400 / e / 2,
2965
2965
  y: n - 300 / e / 2
@@ -2977,32 +2977,32 @@ function tr({ className: e }) {
2977
2977
  }
2978
2978
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
2979
2979
  }, []);
2980
- function fe(e, t = k, n = j) {
2981
- let r = Math.max(Xn, Math.min(Zn, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
2980
+ function de(e, t = k, n = j) {
2981
+ let r = Math.max(Yn, Math.min(Xn, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
2982
2982
  M({
2983
2983
  x: i - 400 / r / 2,
2984
2984
  y: a - 300 / r / 2
2985
2985
  }), A(r);
2986
2986
  }
2987
- function pe(e) {
2988
- return N.current ? jn(e.clientX, e.clientY, N.current) : null;
2987
+ function fe(e) {
2988
+ return P.current ? An(e.clientX, e.clientY, P.current) : null;
2989
2989
  }
2990
- function me(e, t) {
2990
+ function pe(e, t) {
2991
2991
  let n = null;
2992
2992
  for (let r = 0; r < t.points.length; r++) {
2993
- let i = Mn(e, t.points[r]);
2994
- i <= qn && (!n || i < n.d) && (n = {
2993
+ let i = jn(e, t.points[r]);
2994
+ i <= Kn && (!n || i < n.d) && (n = {
2995
2995
  index: r,
2996
2996
  d: i
2997
2997
  });
2998
2998
  }
2999
2999
  return n;
3000
3000
  }
3001
- function L(e, t) {
3001
+ function R(e, t) {
3002
3002
  let n = null;
3003
3003
  for (let r = 0; r < t.points.length; r++) {
3004
- let i = t.points[r], a = t.points[(r + 1) % t.points.length], { dist: o, t: s } = Nn(e, i, a);
3005
- o <= Jn && (!n || o < n.d) && (n = {
3004
+ let i = t.points[r], a = t.points[(r + 1) % t.points.length], { dist: o, t: s } = Mn(e, i, a);
3005
+ o <= qn && (!n || o < n.d) && (n = {
3006
3006
  index: r,
3007
3007
  t: s,
3008
3008
  d: o
@@ -3010,7 +3010,7 @@ function tr({ className: e }) {
3010
3010
  }
3011
3011
  return n;
3012
3012
  }
3013
- function he(e, t, r, a) {
3013
+ function me(e, t, r, a) {
3014
3014
  return n((n) => n.map((n) => {
3015
3015
  if (n.id !== e) return n;
3016
3016
  let r = [...n.points];
@@ -3030,7 +3030,7 @@ function tr({ className: e }) {
3030
3030
  wallIndex: n.wallIndex + 1
3031
3031
  } : n : n)), t + 1;
3032
3032
  }
3033
- function ge(e, r) {
3033
+ function he(e, r) {
3034
3034
  let a = t.find((t) => t.id === e);
3035
3035
  if (!a || a.points.length <= 3) return;
3036
3036
  let o = a.points.length;
@@ -3049,13 +3049,13 @@ function tr({ className: e }) {
3049
3049
  } : t;
3050
3050
  }).filter((e) => e.wallIndex !== -1));
3051
3051
  }
3052
- function R(e) {
3052
+ function z(e) {
3053
3053
  if (e.button === 1) {
3054
3054
  e.preventDefault();
3055
- let t = N.current;
3055
+ let t = P.current;
3056
3056
  if (t) {
3057
3057
  let n = t.getBoundingClientRect();
3058
- ce.current = {
3058
+ se.current = {
3059
3059
  startClient: {
3060
3060
  x: e.clientX,
3061
3061
  y: e.clientY
@@ -3069,14 +3069,14 @@ function tr({ className: e }) {
3069
3069
  }
3070
3070
  if (e.button !== 0) return;
3071
3071
  e.preventDefault();
3072
- let n = pe(e);
3072
+ let n = fe(e);
3073
3073
  if (n) {
3074
3074
  if (g) {
3075
3075
  let e = t.find((e) => e.id === g);
3076
3076
  if (e) {
3077
- let t = Pn(n, [e]);
3077
+ let t = Nn(n, [e]);
3078
3078
  t && i((e) => [...e, {
3079
- id: $n("door"),
3079
+ id: Qn("door"),
3080
3080
  roomId: t.roomId,
3081
3081
  wallIndex: t.wallIndex,
3082
3082
  t: t.t,
@@ -3090,15 +3090,15 @@ function tr({ className: e }) {
3090
3090
  return;
3091
3091
  }
3092
3092
  if (o === "polygon") {
3093
- T.length >= 3 && Mn(n, T[0]) <= 8 ? de(T) : E((e) => [...e, n]);
3093
+ T.length >= 3 && jn(n, T[0]) <= 8 ? ue(T) : E((e) => [...e, n]);
3094
3094
  return;
3095
3095
  }
3096
3096
  if (o === "select") {
3097
3097
  let e = t.find((e) => e.id === l) ?? null;
3098
3098
  if (e) {
3099
- let t = me(n, e);
3099
+ let t = pe(n, e);
3100
3100
  if (t) {
3101
- re.current = {
3101
+ N.current = {
3102
3102
  type: "vertex",
3103
3103
  roomId: e.id,
3104
3104
  index: t.index,
@@ -3109,13 +3109,13 @@ function tr({ className: e }) {
3109
3109
  }
3110
3110
  }
3111
3111
  if (e) {
3112
- let t = L(n, e);
3112
+ let t = R(n, e);
3113
3113
  if (t) {
3114
- let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = An({
3114
+ let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = kn({
3115
3115
  x: r.x + (i.x - r.x) * t.t,
3116
3116
  y: r.y + (i.y - r.y) * t.t
3117
- }), o = he(e.id, t.index, t.t, a);
3118
- re.current = {
3117
+ }), o = me(e.id, t.index, t.t, a);
3118
+ N.current = {
3119
3119
  type: "vertex",
3120
3120
  roomId: e.id,
3121
3121
  index: o,
@@ -3125,9 +3125,9 @@ function tr({ className: e }) {
3125
3125
  return;
3126
3126
  }
3127
3127
  }
3128
- let r = t.find((e) => Fn(n, e.points));
3128
+ let r = t.find((e) => Pn(n, e.points));
3129
3129
  if (r) {
3130
- m(r.id), re.current = {
3130
+ m(r.id), N.current = {
3131
3131
  type: "room",
3132
3132
  roomId: r.id,
3133
3133
  start: n,
@@ -3139,31 +3139,31 @@ function tr({ className: e }) {
3139
3139
  }
3140
3140
  }
3141
3141
  }
3142
- function _e(e) {
3142
+ function B(e) {
3143
3143
  if (o !== "select" || g) return;
3144
- let n = pe(e);
3144
+ let n = fe(e);
3145
3145
  if (!n) return;
3146
3146
  let r = t.find((e) => e.id === l);
3147
3147
  if (!r) return;
3148
- let i = me(n, r);
3149
- i && (e.preventDefault(), ge(r.id, i.index));
3148
+ let i = pe(n, r);
3149
+ i && (e.preventDefault(), he(r.id, i.index));
3150
3150
  }
3151
- function ve(e) {
3152
- if (ce.current) {
3153
- let { startClient: t, origPan: n, scaleX: r, scaleY: i } = ce.current;
3151
+ function V(e) {
3152
+ if (se.current) {
3153
+ let { startClient: t, origPan: n, scaleX: r, scaleY: i } = se.current;
3154
3154
  M({
3155
3155
  x: n.x - (e.clientX - t.x) * r,
3156
3156
  y: n.y - (e.clientY - t.y) * i
3157
3157
  });
3158
3158
  return;
3159
3159
  }
3160
- let r = pe(e);
3160
+ let r = fe(e);
3161
3161
  if (r) {
3162
- if (oe.current && g) {
3162
+ if (ae.current && g) {
3163
3163
  let e = t.find((e) => e.id === g);
3164
3164
  if (e) {
3165
- let t = Pn(r, [e]);
3166
- t && i((e) => e.map((e) => e.id === oe.current ? {
3165
+ let t = Nn(r, [e]);
3166
+ t && i((e) => e.map((e) => e.id === ae.current ? {
3167
3167
  ...e,
3168
3168
  wallIndex: t.wallIndex,
3169
3169
  t: t.t
@@ -3179,10 +3179,10 @@ function tr({ className: e }) {
3179
3179
  D(r);
3180
3180
  return;
3181
3181
  }
3182
- if (o === "select" && !g && re.current) {
3183
- let e = re.current;
3182
+ if (o === "select" && !g && N.current) {
3183
+ let e = N.current;
3184
3184
  if (e.type === "vertex") {
3185
- let t = r.x - e.start.x, i = r.y - e.start.y, a = An({
3185
+ let t = r.x - e.start.x, i = r.y - e.start.y, a = kn({
3186
3186
  x: e.origPt.x + t,
3187
3187
  y: e.origPt.y + i
3188
3188
  });
@@ -3207,47 +3207,47 @@ function tr({ className: e }) {
3207
3207
  }
3208
3208
  }
3209
3209
  }
3210
- function z(e) {
3211
- if (ce.current) {
3212
- ce.current = null;
3210
+ function ge(e) {
3211
+ if (se.current) {
3212
+ se.current = null;
3213
3213
  return;
3214
3214
  }
3215
- let t = pe(e);
3215
+ let t = fe(e);
3216
3216
  if (t) {
3217
3217
  if (o === "rect" && v) {
3218
3218
  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);
3219
3219
  i >= 10 && a >= 10 && n((t) => [...t, {
3220
- id: $n("room"),
3220
+ id: Qn("room"),
3221
3221
  name: `Room ${t.length + 1}`,
3222
- points: Ln(e, r, i, a)
3222
+ points: In(e, r, i, a)
3223
3223
  }]), y(null), x(null);
3224
3224
  }
3225
- oe.current = null, re.current = null;
3225
+ ae.current = null, N.current = null;
3226
3226
  }
3227
3227
  }
3228
- function ye(e) {
3228
+ function _e(e) {
3229
3229
  l && n((t) => t.map((t) => t.id === l ? {
3230
3230
  ...t,
3231
3231
  name: e
3232
3232
  } : t));
3233
3233
  }
3234
- function be(e, t) {
3234
+ function ve(e, t) {
3235
3235
  let n = parseFloat(t);
3236
3236
  isNaN(n) || n <= 0 || i((t) => t.map((t) => t.id === e ? {
3237
3237
  ...t,
3238
3238
  width: n
3239
3239
  } : t));
3240
3240
  }
3241
- function xe() {
3241
+ function ye() {
3242
3242
  l && (n((e) => e.filter((e) => e.id !== l)), i((e) => e.filter((e) => e.roomId !== l)), _(null), m(null));
3243
3243
  }
3244
- function Se(e) {
3244
+ function H(e) {
3245
3245
  i((t) => t.filter((t) => t.id !== e));
3246
3246
  }
3247
- function Ce(e) {
3247
+ function be(e) {
3248
3248
  c(e), _(null), E([]), D(null), y(null), x(null);
3249
3249
  }
3250
- function we(e) {
3250
+ function xe(e) {
3251
3251
  let t = e.target.files?.[0];
3252
3252
  if (!t) return;
3253
3253
  e.target.value = "";
@@ -3255,22 +3255,22 @@ function tr({ className: e }) {
3255
3255
  r.onload = (e) => {
3256
3256
  let t = e.target?.result;
3257
3257
  if (typeof t != "string") return;
3258
- let r = Gn(t);
3258
+ let r = Wn(t);
3259
3259
  r.length !== 0 && (n(r.map((e) => ({
3260
3260
  ...e,
3261
- id: $n("room")
3261
+ id: Qn("room")
3262
3262
  }))), i([]), m(null), _(null), A(1), M({
3263
3263
  x: 0,
3264
3264
  y: 0
3265
3265
  }));
3266
3266
  }, r.readAsText(t);
3267
3267
  }
3268
- let B = o === "rect" && v && b ? {
3268
+ let Se = o === "rect" && v && b ? {
3269
3269
  x: Math.min(v.x, b.x),
3270
3270
  y: Math.min(v.y, b.y),
3271
3271
  w: Math.abs(b.x - v.x),
3272
3272
  h: Math.abs(b.y - v.y)
3273
- } : null, Te = l ? t.find((e) => e.id === l) ?? null : null, Ee = g ? t.find((e) => e.id === g) ?? null : null, De = g ? r.filter((e) => e.roomId === g) : [], V = [
3273
+ } : null, Ce = l ? t.find((e) => e.id === l) ?? null : null, we = g ? t.find((e) => e.id === g) ?? null : null, Te = g ? r.filter((e) => e.roomId === g) : [], U = [
3274
3274
  {
3275
3275
  t: "select",
3276
3276
  icon: O,
@@ -3278,7 +3278,7 @@ function tr({ className: e }) {
3278
3278
  },
3279
3279
  {
3280
3280
  t: "rect",
3281
- icon: ie,
3281
+ icon: re,
3282
3282
  label: "Rectangle room"
3283
3283
  },
3284
3284
  {
@@ -3286,30 +3286,30 @@ function tr({ className: e }) {
3286
3286
  icon: w,
3287
3287
  label: "Polygon room"
3288
3288
  }
3289
- ], Oe = 400 / k, ke = 300 / k, Ae = g ? Z.roomDrawerCanvasDoor : o === "select" ? Z.roomDrawerCanvasSelect : void 0;
3289
+ ], Ee = 400 / k, De = 300 / k, Oe = g ? Q.roomDrawerCanvasDoor : o === "select" ? Q.roomDrawerCanvasSelect : void 0;
3290
3290
  return /* @__PURE__ */ I("div", {
3291
- className: f(Z.roomDrawer, e),
3291
+ className: f(Q.roomDrawer, e),
3292
3292
  children: [
3293
3293
  /* @__PURE__ */ I("div", {
3294
- className: Z.roomDrawerToolbar,
3294
+ className: Q.roomDrawerToolbar,
3295
3295
  children: [
3296
- V.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ F("button", {
3296
+ U.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ F("button", {
3297
3297
  title: n,
3298
- className: f(Z.roomDrawerToolbarBtn, e === o && !g && Z.roomDrawerToolbarBtnActive),
3299
- onClick: () => Ce(e),
3298
+ className: f(Q.roomDrawerToolbarBtn, e === o && !g && Q.roomDrawerToolbarBtnActive),
3299
+ onClick: () => be(e),
3300
3300
  children: /* @__PURE__ */ F(p, { icon: t })
3301
3301
  }, e)),
3302
- /* @__PURE__ */ F("div", { className: Z.roomDrawerToolbarSep }),
3302
+ /* @__PURE__ */ F("div", { className: Q.roomDrawerToolbarSep }),
3303
3303
  /* @__PURE__ */ F("button", {
3304
3304
  title: "Zoom in (+)",
3305
- className: Z.roomDrawerToolbarBtn,
3306
- onClick: () => fe(Yn),
3307
- disabled: k >= Zn,
3305
+ className: Q.roomDrawerToolbarBtn,
3306
+ onClick: () => de(Jn),
3307
+ disabled: k >= Xn,
3308
3308
  children: /* @__PURE__ */ F(p, { icon: ne })
3309
3309
  }),
3310
3310
  /* @__PURE__ */ I("button", {
3311
3311
  title: `Reset zoom (0) — ${Math.round(k * 100)}%`,
3312
- className: Z.roomDrawerToolbarZoomLabel,
3312
+ className: Q.roomDrawerToolbarZoomLabel,
3313
3313
  onClick: () => {
3314
3314
  A(1), M({
3315
3315
  x: 0,
@@ -3320,42 +3320,42 @@ function tr({ className: e }) {
3320
3320
  }),
3321
3321
  /* @__PURE__ */ F("button", {
3322
3322
  title: "Zoom out (−)",
3323
- className: Z.roomDrawerToolbarBtn,
3324
- onClick: () => fe(1 / Yn),
3325
- disabled: k <= Xn,
3323
+ className: Q.roomDrawerToolbarBtn,
3324
+ onClick: () => de(1 / Jn),
3325
+ disabled: k <= Yn,
3326
3326
  children: /* @__PURE__ */ F(p, { icon: te })
3327
3327
  }),
3328
- /* @__PURE__ */ F("div", { className: Z.roomDrawerToolbarSep }),
3328
+ /* @__PURE__ */ F("div", { className: Q.roomDrawerToolbarSep }),
3329
3329
  /* @__PURE__ */ F("button", {
3330
3330
  title: "Upload SVG",
3331
- className: Z.roomDrawerToolbarBtn,
3332
- onClick: () => le.current?.click(),
3333
- children: /* @__PURE__ */ F(p, { icon: se })
3331
+ className: Q.roomDrawerToolbarBtn,
3332
+ onClick: () => L.current?.click(),
3333
+ children: /* @__PURE__ */ F(p, { icon: oe })
3334
3334
  }),
3335
3335
  /* @__PURE__ */ F("button", {
3336
3336
  title: "Download SVG",
3337
- className: Z.roomDrawerToolbarBtn,
3338
- onClick: () => Kn(t, r),
3337
+ className: Q.roomDrawerToolbarBtn,
3338
+ onClick: () => Gn(t, r),
3339
3339
  disabled: t.length === 0,
3340
3340
  children: /* @__PURE__ */ F(p, { icon: C })
3341
3341
  }),
3342
3342
  /* @__PURE__ */ F("input", {
3343
- ref: le,
3343
+ ref: L,
3344
3344
  type: "file",
3345
3345
  accept: ".svg,image/svg+xml",
3346
3346
  style: { display: "none" },
3347
- onChange: we
3347
+ onChange: xe
3348
3348
  })
3349
3349
  ]
3350
3350
  }),
3351
3351
  /* @__PURE__ */ I("svg", {
3352
- ref: N,
3353
- className: f(Z.roomDrawerCanvas, Ae),
3354
- viewBox: `${j.x} ${j.y} ${Oe} ${ke}`,
3355
- onMouseDown: R,
3356
- onMouseMove: ve,
3357
- onMouseUp: z,
3358
- onDoubleClick: _e,
3352
+ ref: P,
3353
+ className: f(Q.roomDrawerCanvas, Oe),
3354
+ viewBox: `${j.x} ${j.y} ${Ee} ${De}`,
3355
+ onMouseDown: z,
3356
+ onMouseMove: V,
3357
+ onMouseUp: ge,
3358
+ onDoubleClick: B,
3359
3359
  children: [
3360
3360
  /* @__PURE__ */ F("defs", { children: /* @__PURE__ */ F("pattern", {
3361
3361
  id: "rd-grid",
@@ -3365,31 +3365,31 @@ function tr({ className: e }) {
3365
3365
  children: /* @__PURE__ */ F("path", {
3366
3366
  d: "M 5 0 L 0 0 0 5",
3367
3367
  fill: "none",
3368
- className: Z.gridLine
3368
+ className: Q.gridLine
3369
3369
  })
3370
3370
  }) }),
3371
3371
  /* @__PURE__ */ F("rect", {
3372
3372
  x: j.x,
3373
3373
  y: j.y,
3374
- width: Oe,
3375
- height: ke,
3374
+ width: Ee,
3375
+ height: De,
3376
3376
  fill: "url(#rd-grid)"
3377
3377
  }),
3378
3378
  t.map((e) => {
3379
- 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;
3379
+ let t = e.points, n = t.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x},${e.y}`).join(" ") + " Z", i = Bn(t, r.filter((t) => t.roomId === e.id)), a = Fn(t), o = l === e.id, s = g === e.id;
3380
3380
  return /* @__PURE__ */ I("g", { children: [
3381
3381
  /* @__PURE__ */ F("path", {
3382
3382
  d: n,
3383
- className: f(Z.roomFill, (o || s) && Z.roomFillSelected)
3383
+ className: f(Q.roomFill, (o || s) && Q.roomFillSelected)
3384
3384
  }),
3385
3385
  i.map((e, t) => /* @__PURE__ */ F("path", {
3386
3386
  d: e,
3387
- className: f(Z.roomStroke, (o || s) && Z.roomStrokeSelected)
3387
+ className: f(Q.roomStroke, (o || s) && Q.roomStrokeSelected)
3388
3388
  }, t)),
3389
3389
  e.name && /* @__PURE__ */ F("text", {
3390
3390
  x: a.x,
3391
3391
  y: a.y,
3392
- className: Z.roomText,
3392
+ className: Q.roomText,
3393
3393
  textAnchor: "middle",
3394
3394
  dominantBaseline: "middle",
3395
3395
  children: e.name
@@ -3399,19 +3399,19 @@ function tr({ className: e }) {
3399
3399
  r.map((e) => {
3400
3400
  let n = t.find((t) => t.id === e.roomId);
3401
3401
  if (!n) return null;
3402
- let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Rn(r, i, e.t, e.width);
3402
+ let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Ln(r, i, e.t, e.width);
3403
3403
  return a ? /* @__PURE__ */ F("line", {
3404
3404
  x1: a.p1.x,
3405
3405
  y1: a.p1.y,
3406
3406
  x2: a.p2.x,
3407
3407
  y2: a.p2.y,
3408
- className: Z.doorGap
3408
+ className: Q.doorGap
3409
3409
  }, e.id) : null;
3410
3410
  }),
3411
- g && De.map((e) => {
3411
+ g && Te.map((e) => {
3412
3412
  let n = t.find((t) => t.id === e.roomId);
3413
3413
  if (!n) return null;
3414
- let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Rn(r, i, e.t, e.width);
3414
+ let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Ln(r, i, e.t, e.width);
3415
3415
  if (!a) return null;
3416
3416
  let o = {
3417
3417
  x: (a.p1.x + a.p2.x) / 2,
@@ -3421,133 +3421,133 @@ function tr({ className: e }) {
3421
3421
  cx: o.x,
3422
3422
  cy: o.y,
3423
3423
  r: 2.5,
3424
- className: Z.doorMarker,
3424
+ className: Q.doorMarker,
3425
3425
  onMouseDown: (t) => {
3426
- t.button === 0 && (t.preventDefault(), t.stopPropagation(), oe.current = e.id);
3426
+ t.button === 0 && (t.preventDefault(), t.stopPropagation(), ae.current = e.id);
3427
3427
  }
3428
3428
  }, e.id);
3429
3429
  }),
3430
- o === "select" && !g && Te && Te.points.map((e, t) => /* @__PURE__ */ F("circle", {
3430
+ o === "select" && !g && Ce && Ce.points.map((e, t) => /* @__PURE__ */ F("circle", {
3431
3431
  cx: e.x,
3432
3432
  cy: e.y,
3433
3433
  r: 3.5,
3434
- className: Z.vertexHandle
3434
+ className: Q.vertexHandle
3435
3435
  }, t)),
3436
- B && /* @__PURE__ */ F("rect", {
3437
- x: B.x,
3438
- y: B.y,
3439
- width: B.w,
3440
- height: B.h,
3441
- className: Z.preview
3436
+ Se && /* @__PURE__ */ F("rect", {
3437
+ x: Se.x,
3438
+ y: Se.y,
3439
+ width: Se.w,
3440
+ height: Se.h,
3441
+ className: Q.preview
3442
3442
  }),
3443
- o === "polygon" && T.length > 0 && /* @__PURE__ */ I(P, { children: [
3443
+ o === "polygon" && T.length > 0 && /* @__PURE__ */ I(ce, { children: [
3444
3444
  /* @__PURE__ */ F("polyline", {
3445
3445
  points: [...T, ee ?? T[T.length - 1]].map((e) => `${e.x},${e.y}`).join(" "),
3446
- className: Z.preview
3446
+ className: Q.preview
3447
3447
  }),
3448
3448
  T.length >= 3 && /* @__PURE__ */ F("circle", {
3449
3449
  cx: T[0].x,
3450
3450
  cy: T[0].y,
3451
3451
  r: 8 / 2,
3452
- className: Z.polyCloseTarget
3452
+ className: Q.polyCloseTarget
3453
3453
  }),
3454
3454
  T.map((e, t) => /* @__PURE__ */ F("circle", {
3455
3455
  cx: e.x,
3456
3456
  cy: e.y,
3457
3457
  r: 2,
3458
- className: Z.polyVertex
3458
+ className: Q.polyVertex
3459
3459
  }, t))
3460
3460
  ] })
3461
3461
  ]
3462
3462
  }),
3463
- Te && !g && /* @__PURE__ */ I("div", {
3464
- className: Z.roomDrawerInfo,
3463
+ Ce && !g && /* @__PURE__ */ I("div", {
3464
+ className: Q.roomDrawerInfo,
3465
3465
  children: [
3466
3466
  /* @__PURE__ */ F("span", {
3467
- className: Z.roomDrawerInfoLabel,
3467
+ className: Q.roomDrawerInfoLabel,
3468
3468
  children: "Name"
3469
3469
  }),
3470
3470
  /* @__PURE__ */ F("input", {
3471
- className: Z.roomDrawerInfoInput,
3472
- value: Te.name,
3473
- onChange: (e) => ye(e.target.value),
3471
+ className: Q.roomDrawerInfoInput,
3472
+ value: Ce.name,
3473
+ onChange: (e) => _e(e.target.value),
3474
3474
  placeholder: "Room name"
3475
3475
  }),
3476
3476
  /* @__PURE__ */ I("button", {
3477
- className: Z.roomDrawerInfoDoorsBtn,
3478
- onClick: () => _(Te.id),
3477
+ className: Q.roomDrawerInfoDoorsBtn,
3478
+ onClick: () => _(Ce.id),
3479
3479
  title: "Edit doors",
3480
- children: [/* @__PURE__ */ F(p, { icon: S }), /* @__PURE__ */ F("span", { children: r.filter((e) => e.roomId === Te.id).length })]
3480
+ children: [/* @__PURE__ */ F(p, { icon: S }), /* @__PURE__ */ F("span", { children: r.filter((e) => e.roomId === Ce.id).length })]
3481
3481
  }),
3482
3482
  /* @__PURE__ */ F("button", {
3483
- className: Z.roomDrawerInfoDelete,
3484
- onClick: xe,
3483
+ className: Q.roomDrawerInfoDelete,
3484
+ onClick: ye,
3485
3485
  title: "Delete room",
3486
- children: /* @__PURE__ */ F(p, { icon: ae })
3486
+ children: /* @__PURE__ */ F(p, { icon: ie })
3487
3487
  })
3488
3488
  ]
3489
3489
  }),
3490
- g && Ee && /* @__PURE__ */ I("div", {
3491
- className: Z.roomDrawerDoorPanel,
3490
+ g && we && /* @__PURE__ */ I("div", {
3491
+ className: Q.roomDrawerDoorPanel,
3492
3492
  children: [/* @__PURE__ */ I("div", {
3493
- className: Z.roomDrawerDoorPanelHeader,
3493
+ className: Q.roomDrawerDoorPanelHeader,
3494
3494
  children: [
3495
3495
  /* @__PURE__ */ F(p, {
3496
3496
  icon: S,
3497
- className: Z.roomDrawerDoorPanelIcon
3497
+ className: Q.roomDrawerDoorPanelIcon
3498
3498
  }),
3499
3499
  /* @__PURE__ */ F("span", {
3500
- className: Z.roomDrawerDoorPanelTitle,
3501
- children: Ee.name ? `Doors · ${Ee.name}` : "Doors"
3500
+ className: Q.roomDrawerDoorPanelTitle,
3501
+ children: we.name ? `Doors · ${we.name}` : "Doors"
3502
3502
  }),
3503
3503
  /* @__PURE__ */ I("button", {
3504
- className: Z.roomDrawerDoorPanelDone,
3504
+ className: Q.roomDrawerDoorPanelDone,
3505
3505
  onClick: () => _(null),
3506
3506
  title: "Done (Esc)",
3507
3507
  children: [/* @__PURE__ */ F(p, { icon: h }), "Done"]
3508
3508
  })
3509
3509
  ]
3510
3510
  }), /* @__PURE__ */ I("div", {
3511
- className: Z.roomDrawerDoorPanelList,
3512
- children: [De.length === 0 && /* @__PURE__ */ F("span", {
3513
- className: Z.roomDrawerDoorPanelEmpty,
3511
+ className: Q.roomDrawerDoorPanelList,
3512
+ children: [Te.length === 0 && /* @__PURE__ */ F("span", {
3513
+ className: Q.roomDrawerDoorPanelEmpty,
3514
3514
  children: "Click on a wall to add a door"
3515
- }), De.map((e, t) => /* @__PURE__ */ I("div", {
3516
- className: Z.roomDrawerDoorPanelItem,
3515
+ }), Te.map((e, t) => /* @__PURE__ */ I("div", {
3516
+ className: Q.roomDrawerDoorPanelItem,
3517
3517
  children: [
3518
3518
  /* @__PURE__ */ I("span", {
3519
- className: Z.roomDrawerDoorPanelLabel,
3519
+ className: Q.roomDrawerDoorPanelLabel,
3520
3520
  children: ["Door ", t + 1]
3521
3521
  }),
3522
3522
  /* @__PURE__ */ F("span", {
3523
- className: Z.roomDrawerDoorPanelWidthLabel,
3523
+ className: Q.roomDrawerDoorPanelWidthLabel,
3524
3524
  children: "Width"
3525
3525
  }),
3526
3526
  /* @__PURE__ */ F("input", {
3527
- className: Z.roomDrawerInfoInput,
3527
+ className: Q.roomDrawerInfoInput,
3528
3528
  type: "number",
3529
3529
  min: 1,
3530
3530
  value: e.width,
3531
- onChange: (t) => be(e.id, t.target.value)
3531
+ onChange: (t) => ve(e.id, t.target.value)
3532
3532
  }),
3533
3533
  /* @__PURE__ */ F("button", {
3534
- className: Z.roomDrawerInfoDelete,
3535
- onClick: () => Se(e.id),
3534
+ className: Q.roomDrawerInfoDelete,
3535
+ onClick: () => H(e.id),
3536
3536
  title: "Delete door",
3537
- children: /* @__PURE__ */ F(p, { icon: ae })
3537
+ children: /* @__PURE__ */ F(p, { icon: ie })
3538
3538
  })
3539
3539
  ]
3540
3540
  }, e.id))]
3541
3541
  })]
3542
3542
  }),
3543
3543
  /* @__PURE__ */ F("div", {
3544
- className: Z.roomDrawerHint,
3545
- 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`
3544
+ className: Q.roomDrawerHint,
3545
+ children: g ? "Click a wall to add a door · Adjust width or delete from the list · Done or Esc to finish" : `${$n[o]} · Scroll to zoom · Middle-drag to pan · 0 to reset`
3546
3546
  })
3547
3547
  ]
3548
3548
  });
3549
3549
  }
3550
- var nr = {
3550
+ var tr = {
3551
3551
  "roomViewer-containerLoading": "roomViewer-containerLoading_BL3M-",
3552
3552
  roomViewerContainerLoading: "roomViewer-containerLoading_BL3M-",
3553
3553
  "roomViewer-container": "roomViewer-container_YlmB8",
@@ -3565,7 +3565,7 @@ var nr = {
3565
3565
  };
3566
3566
  //#endregion
3567
3567
  //#region package/common/roomViewer/roomViewer.tsx
3568
- function rr({ data: e = [] }) {
3568
+ function nr({ data: e = [] }) {
3569
3569
  let t = u(null), [, n] = d(null), [r, i] = d(0), [o, s] = d(!0);
3570
3570
  a(() => {
3571
3571
  let i = new AbortController();
@@ -3585,15 +3585,15 @@ function rr({ data: e = [] }) {
3585
3585
  if (n) {
3586
3586
  let [e] = t.querySelectorAll(`[id="room${n}"]`);
3587
3587
  if (e) {
3588
- e.classList.remove(nr.roomViewerSelected, nr.roomViewerTint);
3588
+ e.classList.remove(tr.roomViewerSelected, tr.roomViewerTint);
3589
3589
  let [t] = e.querySelectorAll("[id=\"background\"]");
3590
- t && t.classList.remove(nr.roomViewerTint);
3590
+ t && t.classList.remove(tr.roomViewerTint);
3591
3591
  }
3592
3592
  }
3593
3593
  if (a) {
3594
- a.classList.add(nr.roomViewerSelected);
3594
+ a.classList.add(tr.roomViewerSelected);
3595
3595
  let [e] = a.querySelectorAll("[id=\"background\"]");
3596
- (e ?? a).classList.add(nr.roomViewerTint);
3596
+ (e ?? a).classList.add(tr.roomViewerTint);
3597
3597
  }
3598
3598
  return r;
3599
3599
  });
@@ -3606,19 +3606,19 @@ function rr({ data: e = [] }) {
3606
3606
  }
3607
3607
  let m = e[r]?.data ?? null;
3608
3608
  return /* @__PURE__ */ I("div", {
3609
- className: nr.roomViewer,
3609
+ className: tr.roomViewer,
3610
3610
  ref: t,
3611
3611
  children: [
3612
3612
  /* @__PURE__ */ F("h3", {
3613
- className: nr.roomViewerHeader,
3613
+ className: tr.roomViewerHeader,
3614
3614
  children: e[r]?.label ?? ""
3615
3615
  }),
3616
3616
  /* @__PURE__ */ F("div", {
3617
- className: f(nr.roomViewerContainer, o && nr.roomViewerContainerLoading),
3617
+ className: f(tr.roomViewerContainer, o && tr.roomViewerContainerLoading),
3618
3618
  children: m
3619
3619
  }, r),
3620
3620
  e.length > 1 && /* @__PURE__ */ I("div", {
3621
- className: nr.roomViewerActions,
3621
+ className: tr.roomViewerActions,
3622
3622
  children: [
3623
3623
  /* @__PURE__ */ F(p, {
3624
3624
  icon: _,
@@ -3634,21 +3634,21 @@ function rr({ data: e = [] }) {
3634
3634
  ]
3635
3635
  });
3636
3636
  }
3637
- var ir = { scrollbarProvider: "scrollbarProvider_IMBFu" };
3637
+ var rr = { scrollbarProvider: "scrollbarProvider_IMBFu" };
3638
3638
  //#endregion
3639
3639
  //#region package/common/scrollbarProvider/scrollbarProvider.tsx
3640
- function ar({ className: e = void 0, children: t = void 0 }) {
3640
+ function ir({ className: e = void 0, children: t = void 0 }) {
3641
3641
  return /* @__PURE__ */ F("div", {
3642
- className: f(ir.scrollbarProvider, e),
3642
+ className: f(rr.scrollbarProvider, e),
3643
3643
  children: t
3644
3644
  });
3645
3645
  }
3646
3646
  //#endregion
3647
3647
  //#region package/common/scrollbarProvider/index.ts
3648
- var or = ar, sr = { resultCount: "resultCount_Sn48Q" };
3648
+ var ar = ir, or = { resultCount: "resultCount_Sn48Q" };
3649
3649
  //#endregion
3650
3650
  //#region package/common/searchInput/searchInput.tsx
3651
- 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 }) {
3651
+ function sr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, debounceMs: o = 500, totalAmount: s, showAmount: c = !0, className: l, width: d, ...f }) {
3652
3652
  let p = u(null);
3653
3653
  a(() => () => {
3654
3654
  p.current !== null && clearTimeout(p.current);
@@ -3664,14 +3664,14 @@ function cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, de
3664
3664
  ...f,
3665
3665
  className: l,
3666
3666
  style: d == null ? void 0 : { width: d },
3667
- children: [/* @__PURE__ */ F(it, {
3668
- type: J.Search,
3667
+ children: [/* @__PURE__ */ F(rt, {
3668
+ type: Y.Search,
3669
3669
  label: i,
3670
3670
  placeholder: r,
3671
3671
  value: e,
3672
3672
  onChange: m
3673
3673
  }), h && /* @__PURE__ */ I("p", {
3674
- className: sr.resultCount,
3674
+ className: or.resultCount,
3675
3675
  children: [
3676
3676
  s,
3677
3677
  " ",
@@ -3680,7 +3680,7 @@ function cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, de
3680
3680
  })]
3681
3681
  });
3682
3682
  }
3683
- var lr = {
3683
+ var cr = {
3684
3684
  stepper: "stepper_kiS2A",
3685
3685
  "stepper-clickable": "stepper-clickable_Nm6fP",
3686
3686
  stepperClickable: "stepper-clickable_Nm6fP",
@@ -3710,7 +3710,7 @@ var lr = {
3710
3710
  };
3711
3711
  //#endregion
3712
3712
  //#region package/common/stepper/stepper.tsx
3713
- function ur() {
3713
+ function lr() {
3714
3714
  return /* @__PURE__ */ F("svg", {
3715
3715
  strokeLinejoin: "round",
3716
3716
  strokeLinecap: "round",
@@ -3726,26 +3726,26 @@ function ur() {
3726
3726
  })
3727
3727
  });
3728
3728
  }
3729
- 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 }) {
3729
+ function ur({ 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 }) {
3730
3730
  let p = r === "vertical";
3731
3731
  return /* @__PURE__ */ F("div", {
3732
3732
  ...d,
3733
- className: f(lr.stepper, { [lr.stepperVertical]: p }, l?.root, s),
3733
+ className: f(cr.stepper, { [cr.stepperVertical]: p }, l?.root, s),
3734
3734
  style: {
3735
3735
  ...u?.root,
3736
3736
  ...c
3737
3737
  },
3738
3738
  children: t.map((r, s) => {
3739
- 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__ */ I(P, { children: [/* @__PURE__ */ F("div", {
3740
- className: f(lr.stepperEntryNumber, { [lr.stepperEntryNumberDone]: c }, l?.entryNumber),
3739
+ let c = s < n, d = s <= n, m = !!i && (a ? s !== n : c), h = f(cr.stepperEntry, { [cr.stepperEntryActive]: d }, { [cr.stepperEntryDone]: c }, { [cr.stepperClickable]: m }, l?.entry), g = /* @__PURE__ */ I(ce, { children: [/* @__PURE__ */ F("div", {
3740
+ className: f(cr.stepperEntryNumber, { [cr.stepperEntryNumberDone]: c }, l?.entryNumber),
3741
3741
  style: u?.entryNumber,
3742
- children: c ? /* @__PURE__ */ F(ur, {}) : s + 1
3742
+ children: c ? /* @__PURE__ */ F(lr, {}) : s + 1
3743
3743
  }), !o && /* @__PURE__ */ F("div", {
3744
- className: f(lr.stepperEntryLabel, { [lr.stepperEntryLabelVertical]: p }, l?.entryLabel),
3744
+ className: f(cr.stepperEntryLabel, { [cr.stepperEntryLabelVertical]: p }, l?.entryLabel),
3745
3745
  style: u?.entryLabel,
3746
3746
  children: r.label
3747
3747
  })] });
3748
- return /* @__PURE__ */ I(e.Fragment, { children: [m ? /* @__PURE__ */ F(Re, {
3748
+ return /* @__PURE__ */ I(e.Fragment, { children: [m ? /* @__PURE__ */ F(K, {
3749
3749
  className: h,
3750
3750
  style: u?.entry,
3751
3751
  onClick: () => i(s),
@@ -3757,7 +3757,7 @@ function dr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", on
3757
3757
  "aria-current": s === n ? "step" : void 0,
3758
3758
  children: g
3759
3759
  }), s < t.length - 1 && /* @__PURE__ */ F("div", {
3760
- className: f(lr.stepperConnector, { [lr.stepperConnectorFilled]: c }, { [lr.stepperConnectorVertical]: p }, l?.connector),
3760
+ className: f(cr.stepperConnector, { [cr.stepperConnectorFilled]: c }, { [cr.stepperConnectorVertical]: p }, l?.connector),
3761
3761
  style: u?.connector
3762
3762
  })] }, s);
3763
3763
  })
@@ -3765,7 +3765,7 @@ function dr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", on
3765
3765
  }
3766
3766
  //#endregion
3767
3767
  //#region package/services/tenorService.ts
3768
- var fr = "https://tenor.googleapis.com/v2", pr = class {
3768
+ var dr = "https://tenor.googleapis.com/v2", fr = class {
3769
3769
  constructor(e) {
3770
3770
  this.key = e;
3771
3771
  }
@@ -3774,14 +3774,14 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3774
3774
  q: e,
3775
3775
  key: this.key
3776
3776
  });
3777
- 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();
3777
+ return t.limit != null && n.set("limit", String(t.limit)), t.contentfilter != null && n.set("contentfilter", t.contentfilter), t.pos != null && n.set("pos", t.pos), (await fetch(`${dr}/search?${n}`)).json();
3778
3778
  }
3779
3779
  async searchSuggestions(e) {
3780
3780
  let t = new URLSearchParams({
3781
3781
  q: e,
3782
3782
  key: this.key
3783
3783
  });
3784
- return (await fetch(`${fr}/search_suggestions?${t}`)).json();
3784
+ return (await fetch(`${dr}/search_suggestions?${t}`)).json();
3785
3785
  }
3786
3786
  registerShare(e, t) {
3787
3787
  let n = new URLSearchParams({
@@ -3789,9 +3789,9 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3789
3789
  q: e,
3790
3790
  key: this.key
3791
3791
  });
3792
- fetch(`${fr}/registershare?${n}`).catch(() => null);
3792
+ fetch(`${dr}/registershare?${n}`).catch(() => null);
3793
3793
  }
3794
- }, mr = {
3794
+ }, pr = {
3795
3795
  gifPreview: "gifPreview_-ECUZ",
3796
3796
  "gifPreview-image": "gifPreview-image_Aq7-a",
3797
3797
  gifPreviewImage: "gifPreview-image_Aq7-a",
@@ -3801,25 +3801,25 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3801
3801
  };
3802
3802
  //#endregion
3803
3803
  //#region package/common/tenorPicker/components/gifPreview/gifPreview.tsx
3804
- function hr({ className: e, previewItems: t = [], onSelect: n, onLoadAdditional: r }) {
3804
+ function mr({ className: e, previewItems: t = [], onSelect: n, onLoadAdditional: r }) {
3805
3805
  function i(e) {
3806
3806
  let t = e.currentTarget, n = t.scrollHeight - t.clientHeight * 1.5;
3807
3807
  t.scrollTop >= n && r?.();
3808
3808
  }
3809
- return /* @__PURE__ */ F(P, { children: t.length > 0 && /* @__PURE__ */ F("div", {
3810
- className: f(mr.gifPreview, e),
3809
+ return /* @__PURE__ */ F(ce, { children: t.length > 0 && /* @__PURE__ */ F("div", {
3810
+ className: f(pr.gifPreview, e),
3811
3811
  onScroll: i,
3812
- children: t.map((e, t) => /* @__PURE__ */ F(Re, {
3813
- className: mr.gifPreviewImageContainer,
3812
+ children: t.map((e, t) => /* @__PURE__ */ F(K, {
3813
+ className: pr.gifPreviewImageContainer,
3814
3814
  onClick: () => n?.(e),
3815
3815
  children: /* @__PURE__ */ F("div", {
3816
- className: mr.gifPreviewImage,
3816
+ className: pr.gifPreviewImage,
3817
3817
  style: { backgroundImage: `url(${e.media_formats.tinygif.url})` }
3818
3818
  })
3819
3819
  }, `${e.id}_${t}`))
3820
3820
  }) });
3821
3821
  }
3822
- var gr = {
3822
+ var hr = {
3823
3823
  gifView: "gifView_Fa2zj",
3824
3824
  "gifView-loading": "gifView-loading_LfNJr",
3825
3825
  gifViewLoading: "gifView-loading_LfNJr",
@@ -3827,20 +3827,20 @@ var gr = {
3827
3827
  };
3828
3828
  //#endregion
3829
3829
  //#region package/common/tenorPicker/components/gifView/gifView.tsx
3830
- function _r({ className: e, src: t = "" }) {
3830
+ function gr({ className: e, src: t = "" }) {
3831
3831
  let [n, r] = d(!0);
3832
3832
  return a(() => {
3833
3833
  r(!0);
3834
3834
  }, [t]), /* @__PURE__ */ I("div", {
3835
- className: f(gr.gifView, e),
3835
+ className: f(hr.gifView, e),
3836
3836
  children: [/* @__PURE__ */ F("img", {
3837
- className: gr.tenorPickerSelected,
3837
+ className: hr.tenorPickerSelected,
3838
3838
  src: t,
3839
3839
  onLoad: () => r(!1)
3840
- }), n && /* @__PURE__ */ F("div", { className: gr.gifViewLoading })]
3840
+ }), n && /* @__PURE__ */ F("div", { className: hr.gifViewLoading })]
3841
3841
  });
3842
3842
  }
3843
- var vr = {
3843
+ var _r = {
3844
3844
  "tenorPicker-selected": "tenorPicker-selected_IfR2z",
3845
3845
  tenorPickerSelected: "tenorPicker-selected_IfR2z",
3846
3846
  "tenorPicker-modal-content": "tenorPicker-modal-content_Vkolf",
@@ -3852,8 +3852,8 @@ var vr = {
3852
3852
  };
3853
3853
  //#endregion
3854
3854
  //#region package/common/tenorPicker/tenorPicker.tsx
3855
- function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () => void 0, selected: i = null }) {
3856
- let a = c(() => new pr(t), [t]), [o, s] = d(""), [l, u] = d([]), [p, m] = d([]), [h, g] = d(null), [_, v] = d(!1);
3855
+ function vr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () => void 0, selected: i = null }) {
3856
+ let a = c(() => new fr(t), [t]), [o, s] = d(""), [l, u] = d([]), [p, m] = d([]), [h, g] = d(null), [_, v] = d(!1);
3857
3857
  async function y(e) {
3858
3858
  if (s(e), !e.trim()) {
3859
3859
  u([]), m([]), g(null);
@@ -3877,25 +3877,25 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3877
3877
  await r(e), v(!1), e && a.registerShare(o, e.id);
3878
3878
  }
3879
3879
  function S() {
3880
- return /* @__PURE__ */ F(Ze, {
3880
+ return /* @__PURE__ */ F(Xe, {
3881
3881
  inline: !0,
3882
- className: vr.tenorPickerSuggestionsContainer,
3883
- children: p.map((e) => /* @__PURE__ */ F(Xe, {
3884
- className: vr.tenorPickerSuggestionsItem,
3882
+ className: _r.tenorPickerSuggestionsContainer,
3883
+ children: p.map((e) => /* @__PURE__ */ F(Ye, {
3884
+ className: _r.tenorPickerSuggestionsItem,
3885
3885
  text: e,
3886
3886
  onClick: () => y(e)
3887
3887
  }, e))
3888
3888
  });
3889
3889
  }
3890
3890
  function C() {
3891
- return /* @__PURE__ */ F(hr, {
3891
+ return /* @__PURE__ */ F(mr, {
3892
3892
  previewItems: l,
3893
3893
  onSelect: x,
3894
3894
  onLoadAdditional: b
3895
3895
  });
3896
3896
  }
3897
3897
  function w() {
3898
- return /* @__PURE__ */ F(cr, {
3898
+ return /* @__PURE__ */ F(sr, {
3899
3899
  label: "Pick gif",
3900
3900
  value: o,
3901
3901
  onDebounce: y,
@@ -3903,28 +3903,28 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3903
3903
  });
3904
3904
  }
3905
3905
  return n ? /* @__PURE__ */ I("div", {
3906
- className: f(vr.tenorPicker, e),
3906
+ className: f(_r.tenorPicker, e),
3907
3907
  children: [
3908
3908
  /* @__PURE__ */ I("div", {
3909
- className: De.actionButtons,
3909
+ className: Te.actionButtons,
3910
3910
  children: [/* @__PURE__ */ F(G, {
3911
3911
  onClick: () => v(!0),
3912
3912
  children: "Pick gif"
3913
3913
  }), i && /* @__PURE__ */ F(G, {
3914
- styleType: H.Delete,
3914
+ styleType: W.Delete,
3915
3915
  onClick: () => x(null),
3916
3916
  children: "Remove gif"
3917
3917
  })]
3918
3918
  }),
3919
- i && /* @__PURE__ */ F(_r, {
3920
- className: vr.tenorPickerSelected,
3919
+ i && /* @__PURE__ */ F(gr, {
3920
+ className: _r.tenorPickerSelected,
3921
3921
  src: i
3922
3922
  }),
3923
- /* @__PURE__ */ F(_t, {
3923
+ /* @__PURE__ */ F(ht, {
3924
3924
  isOpen: _,
3925
3925
  onClose: () => v(!1),
3926
3926
  children: /* @__PURE__ */ I("div", {
3927
- className: vr.tenorPickerModalContent,
3927
+ className: _r.tenorPickerModalContent,
3928
3928
  children: [
3929
3929
  w(),
3930
3930
  S(),
@@ -3934,22 +3934,22 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3934
3934
  })
3935
3935
  ]
3936
3936
  }) : /* @__PURE__ */ I("div", {
3937
- className: f(vr.tenorPicker, e),
3937
+ className: f(_r.tenorPicker, e),
3938
3938
  children: [
3939
- /* @__PURE__ */ F(tt, {
3940
- align: $e.Left,
3939
+ /* @__PURE__ */ F(et, {
3940
+ align: Qe.Left,
3941
3941
  isOpen: l.length > 0 && _,
3942
3942
  onOpenChange: v,
3943
- content: /* @__PURE__ */ I(P, { children: [S(), C()] }),
3943
+ content: /* @__PURE__ */ I(ce, { children: [S(), C()] }),
3944
3944
  children: w()
3945
3945
  }),
3946
3946
  i && /* @__PURE__ */ F(G, {
3947
- styleType: H.Delete,
3947
+ styleType: W.Delete,
3948
3948
  onClick: () => x(null),
3949
3949
  children: "Remove gif"
3950
3950
  }),
3951
- i && /* @__PURE__ */ F(_r, {
3952
- className: vr.tenorPickerSelected,
3951
+ i && /* @__PURE__ */ F(gr, {
3952
+ className: _r.tenorPickerSelected,
3953
3953
  src: i
3954
3954
  })
3955
3955
  ]
@@ -3957,15 +3957,15 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3957
3957
  }
3958
3958
  //#endregion
3959
3959
  //#region package/common/textarea/textarea.tsx
3960
- function br(e) {
3961
- return /* @__PURE__ */ F(it, {
3960
+ function yr(e) {
3961
+ return /* @__PURE__ */ F(rt, {
3962
3962
  ...e,
3963
3963
  multiline: !0
3964
3964
  });
3965
3965
  }
3966
3966
  //#endregion
3967
3967
  //#region package/common/themeProvider/defaultTheme.ts
3968
- var xr = {
3968
+ var br = {
3969
3969
  id: "default",
3970
3970
  variables: {
3971
3971
  "--grey": "#8A8A8A",
@@ -4025,14 +4025,14 @@ var xr = {
4025
4025
  "--spacing-m": "8px",
4026
4026
  "--spacing-l": "16px"
4027
4027
  }
4028
- }, Sr = { colorFade: "colorFade_eLv2g" }, Cr = class extends t {
4028
+ }, xr = { colorFade: "colorFade_eLv2g" }, Sr = class extends t {
4029
4029
  constructor(...t) {
4030
4030
  super(...t), this.state = {
4031
4031
  resolvedVariables: {},
4032
4032
  colorFadeActive: !1,
4033
4033
  currentThemeColor: null
4034
4034
  }, this.colorFadeTimeout = null, this.wrapperRef = e.createRef(), this.themeColorMeta = null, this.createdThemeColorMeta = !1, this.applyTheme = (e) => {
4035
- 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);
4035
+ let t = this.props.themes ?? [br], 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);
4036
4036
  this.setState({
4037
4037
  resolvedVariables: o,
4038
4038
  colorFadeActive: !0
@@ -4066,7 +4066,7 @@ var xr = {
4066
4066
  }
4067
4067
  }
4068
4068
  resolveChain(e) {
4069
- let t = (this.props.themes ?? [xr]).find((t) => t.id === e);
4069
+ let t = (this.props.themes ?? [br]).find((t) => t.id === e);
4070
4070
  return t ? [...t.baseThemeId ? this.resolveChain(t.baseThemeId) : [], t.variables] : [];
4071
4071
  }
4072
4072
  render() {
@@ -4074,7 +4074,7 @@ var xr = {
4074
4074
  return /* @__PURE__ */ F("div", {
4075
4075
  ref: this.wrapperRef,
4076
4076
  id: "themeProvider",
4077
- className: n ? Sr.colorFade : void 0,
4077
+ className: n ? xr.colorFade : void 0,
4078
4078
  style: t,
4079
4079
  children: e
4080
4080
  });
@@ -4082,7 +4082,7 @@ var xr = {
4082
4082
  };
4083
4083
  //#endregion
4084
4084
  //#region package/common/themeProvider/useTheme.ts
4085
- function wr(e = "default") {
4085
+ function Cr(e = "default") {
4086
4086
  let [t, n] = d(localStorage.getItem("theme") || e);
4087
4087
  return {
4088
4088
  currentThemeId: t,
@@ -4091,7 +4091,7 @@ function wr(e = "default") {
4091
4091
  }
4092
4092
  };
4093
4093
  }
4094
- var Tr = {
4094
+ var wr = {
4095
4095
  container: "container_krdsW",
4096
4096
  "container-top-left": "container-top-left_zfDTO",
4097
4097
  containerTopLeft: "container-top-left_zfDTO",
@@ -4128,14 +4128,14 @@ var Tr = {
4128
4128
  toastCloseButton: "toastCloseButton_n-YST",
4129
4129
  toastProgressBar: "toastProgressBar_6vBs6",
4130
4130
  toastShrink: "toastShrink_h89HS"
4131
- }, Er = {
4131
+ }, Tr = {
4132
4132
  info: b,
4133
4133
  success: y,
4134
4134
  error: x,
4135
- warn: oe,
4135
+ warn: ae,
4136
4136
  default: m
4137
4137
  };
4138
- function Dr({ item: e, isBottom: t, onDismiss: n }) {
4138
+ function Er({ item: e, isBottom: t, onDismiss: n }) {
4139
4139
  let { id: r, content: i, options: o, dismissing: s } = e, { duration: c, showRemainingTime: l, showCloseButton: u, type: d, classNames: m, styles: h } = o;
4140
4140
  return a(() => {
4141
4141
  if (c === 0) return;
@@ -4146,28 +4146,28 @@ function Dr({ item: e, isBottom: t, onDismiss: n }) {
4146
4146
  c,
4147
4147
  n
4148
4148
  ]), /* @__PURE__ */ I("div", {
4149
- className: f(Tr.toast, t ? Tr.toastBottom : null, Tr[`toast-${d}`], s && Tr.toastDismissing, m?.root),
4149
+ className: f(wr.toast, t ? wr.toastBottom : null, wr[`toast-${d}`], s && wr.toastDismissing, m?.root),
4150
4150
  style: h?.root,
4151
4151
  children: [
4152
4152
  /* @__PURE__ */ F(p, {
4153
- icon: Er[d],
4154
- className: f(Tr.toastIcon, m?.icon),
4153
+ icon: Tr[d],
4154
+ className: f(wr.toastIcon, m?.icon),
4155
4155
  style: h?.icon
4156
4156
  }),
4157
4157
  /* @__PURE__ */ F("div", {
4158
- className: f(Tr.toastContent, m?.content),
4158
+ className: f(wr.toastContent, m?.content),
4159
4159
  style: h?.content,
4160
4160
  children: i
4161
4161
  }),
4162
- u && /* @__PURE__ */ F(Be, {
4163
- icon: ce,
4162
+ u && /* @__PURE__ */ F(ze, {
4163
+ icon: se,
4164
4164
  onClick: () => n(r),
4165
- className: f(Tr.toastCloseButton, m?.closeButton),
4165
+ className: f(wr.toastCloseButton, m?.closeButton),
4166
4166
  style: h?.closeButton,
4167
4167
  "aria-label": "Close"
4168
4168
  }),
4169
4169
  l && c > 0 && /* @__PURE__ */ F("div", {
4170
- className: f(Tr.toastProgressBar, m?.progressBar),
4170
+ className: f(wr.toastProgressBar, m?.progressBar),
4171
4171
  style: {
4172
4172
  "--toast-duration": `${c}ms`,
4173
4173
  ...h?.progressBar
@@ -4178,40 +4178,40 @@ function Dr({ item: e, isBottom: t, onDismiss: n }) {
4178
4178
  }
4179
4179
  //#endregion
4180
4180
  //#region package/common/toast/toastService.ts
4181
- var Or = null;
4182
- function kr(e) {
4183
- Or = e;
4181
+ var Dr = null;
4182
+ function Or(e) {
4183
+ Dr = e;
4184
4184
  }
4185
- function Ar() {
4186
- Or = null;
4185
+ function kr() {
4186
+ Dr = null;
4187
4187
  }
4188
- function jr(e, t) {
4189
- if (!Or) {
4188
+ function Ar(e, t) {
4189
+ if (!Dr) {
4190
4190
  console.error("[Toast] No ToastProvider found. Wrap your app with <ToastProvider>.");
4191
4191
  return;
4192
4192
  }
4193
- Or(e, t);
4193
+ Dr(e, t);
4194
4194
  }
4195
4195
  //#endregion
4196
4196
  //#region package/common/toast/toastProvider.tsx
4197
- var Mr = {
4197
+ var jr = {
4198
4198
  position: "top-right",
4199
4199
  duration: 4e3,
4200
4200
  showRemainingTime: !0,
4201
4201
  showCloseButton: !0,
4202
4202
  allowStacking: !0
4203
- }, Nr = 220;
4204
- function Pr(e) {
4205
- return Tr[`container-${e}`];
4203
+ }, Mr = 220;
4204
+ function Nr(e) {
4205
+ return wr[`container-${e}`];
4206
4206
  }
4207
- function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration, showRemainingTime: r = Mr.showRemainingTime, showCloseButton: o = Mr.showCloseButton, allowStacking: s = Mr.allowStacking }) {
4207
+ function Pr({ children: e, position: t = jr.position, duration: n = jr.duration, showRemainingTime: r = jr.showRemainingTime, showCloseButton: o = jr.showCloseButton, allowStacking: s = jr.allowStacking }) {
4208
4208
  let [c, l] = d([]), p = u(0), m = i((e) => {
4209
4209
  l((t) => t.map((t) => t.id === e ? {
4210
4210
  ...t,
4211
4211
  dismissing: !0
4212
4212
  } : t)), setTimeout(() => {
4213
4213
  l((t) => t.filter((t) => t.id !== e));
4214
- }, Nr);
4214
+ }, Mr);
4215
4215
  }, []), h = i((e, i) => {
4216
4216
  let a = {
4217
4217
  position: i?.position ?? t,
@@ -4231,7 +4231,7 @@ function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration,
4231
4231
  };
4232
4232
  l((e) => !s && e.length > 0 ? (setTimeout(() => {
4233
4233
  l([c]);
4234
- }, Nr), e.map((e) => ({
4234
+ }, Mr), e.map((e) => ({
4235
4235
  ...e,
4236
4236
  dismissing: !0
4237
4237
  }))) : [...e, c]);
@@ -4242,22 +4242,24 @@ function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration,
4242
4242
  o,
4243
4243
  s
4244
4244
  ]);
4245
- a(() => (kr(h), () => Ar()), [h]);
4245
+ a(() => (Or(h), () => kr()), [h]);
4246
4246
  let g = c.reduce((e, t) => {
4247
4247
  let n = t.options.position;
4248
4248
  return e[n] || (e[n] = []), e[n].push(t), e;
4249
4249
  }, {});
4250
- return /* @__PURE__ */ I(P, { children: [e, /* @__PURE__ */ F(Ve, { children: Object.entries(g).map(([e, t]) => /* @__PURE__ */ F("div", {
4251
- className: f(Tr.container, Pr(e)),
4252
- children: t.map((t) => /* @__PURE__ */ F(Dr, {
4250
+ return /* @__PURE__ */ I(ce, { children: [e, /* @__PURE__ */ F(Be, { children: Object.entries(g).map(([e, t]) => /* @__PURE__ */ F("div", {
4251
+ className: f(wr.container, Nr(e)),
4252
+ children: t.map((t) => /* @__PURE__ */ F(Er, {
4253
4253
  item: t,
4254
4254
  isBottom: e.startsWith("bottom"),
4255
4255
  onDismiss: m
4256
4256
  }, t.id))
4257
4257
  }, e)) })] });
4258
4258
  }
4259
- var Q = {
4259
+ var $ = {
4260
4260
  virtualList: "virtualList_qBPNc",
4261
+ "virtualList-drag-clone": "virtualList-drag-clone_artnC",
4262
+ virtualListDragClone: "virtualList-drag-clone_artnC",
4261
4263
  "virtualList-header": "virtualList-header_0Ellb",
4262
4264
  virtualListHeader: "virtualList-header_0Ellb",
4263
4265
  "virtualList-header-cell": "virtualList-header-cell_c8NGV",
@@ -4297,7 +4299,7 @@ var Q = {
4297
4299
  };
4298
4300
  //#endregion
4299
4301
  //#region package/common/virtualList/virtualList.tsx
4300
- function Ir(e, t, n, r = 0) {
4302
+ function Fr(e, t, n, r = 0) {
4301
4303
  let i = e.length, a = Array(i + 1);
4302
4304
  a[0] = 0;
4303
4305
  for (let o = 0; o < i; o++) {
@@ -4309,7 +4311,7 @@ function Ir(e, t, n, r = 0) {
4309
4311
  totalHeight: a[i]
4310
4312
  };
4311
4313
  }
4312
- function Lr(e, t, n) {
4314
+ function Ir(e, t, n) {
4313
4315
  if (n <= 0) return 0;
4314
4316
  let r = 0, i = n - 1;
4315
4317
  for (; r < i;) {
@@ -4318,24 +4320,24 @@ function Lr(e, t, n) {
4318
4320
  }
4319
4321
  return r;
4320
4322
  }
4321
- function Rr(e, t, n, r, i) {
4323
+ function Lr(e, t, n, r, i) {
4322
4324
  if (i === 0) return {
4323
4325
  startIndex: 0,
4324
4326
  endIndex: -1
4325
4327
  };
4326
- let a = Lr(e, t, i), o = a;
4328
+ let a = Ir(e, t, i), o = a;
4327
4329
  for (; o < i && e[o] < t + n;) o++;
4328
4330
  return {
4329
4331
  startIndex: Math.max(0, a - r),
4330
4332
  endIndex: Math.min(i - 1, o + r - 1)
4331
4333
  };
4332
4334
  }
4333
- function zr(e, t, n, r, i) {
4335
+ function Rr(e, t, n, r, i) {
4334
4336
  if (e === -1 || e === t) return null;
4335
4337
  let a = r + i / 2;
4336
4338
  return (t > e ? n >= a : n <= a) ? t : null;
4337
4339
  }
4338
- function Br(e) {
4340
+ function zr(e) {
4339
4341
  return e.length === 0 ? "1fr" : e.map((e) => {
4340
4342
  switch (e.width.type) {
4341
4343
  case "fixed": return `${e.width.px}px`;
@@ -4344,15 +4346,15 @@ function Br(e) {
4344
4346
  }
4345
4347
  }).join(" ");
4346
4348
  }
4347
- function Vr({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i, onClick: a, observer: o, ariaRowIndex: c, ariaPosInSet: l, ariaSetSize: d, rowRole: p, draggable: m, isDragging: h, onDragStart: g, onDragOver: _, onDragEnd: v, rowClassName: y, rowStyle: b, children: x }) {
4348
- let S = u(null);
4349
+ function Br({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i, onClick: a, observer: o, ariaRowIndex: c, ariaPosInSet: l, ariaSetSize: d, rowRole: p, reorderable: m, draggable: h, isDragging: g, reserveToggleGutter: _, onDragStart: v, onDragOver: y, onDragEnd: b, onTouchStart: x, rowClassName: S, rowStyle: C, children: w }) {
4350
+ let T = u(null);
4349
4351
  return s(() => {
4350
- let e = S.current;
4352
+ let e = T.current;
4351
4353
  if (!(!e || !o)) return o.observe(e), () => o.unobserve(e);
4352
4354
  }, [o]), /* @__PURE__ */ F("div", {
4353
- ref: S,
4355
+ ref: T,
4354
4356
  "data-index": e,
4355
- className: f(Q.virtualListRow, r && Q.virtualListRowSelected, !i && Q.virtualListRowNoDivider, m && Q.virtualListRowDraggable, h && Q.virtualListRowDragging, y),
4357
+ className: f($.virtualListRow, r && $.virtualListRowSelected, !i && $.virtualListRowNoDivider, m && $.virtualListRowDraggable, g && $.virtualListRowDragging, S),
4356
4358
  style: {
4357
4359
  position: "absolute",
4358
4360
  top: 0,
@@ -4363,30 +4365,33 @@ function Vr({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i
4363
4365
  display: "grid",
4364
4366
  gridTemplateColumns: n
4365
4367
  } : {},
4366
- ...b
4368
+ ..._ ? { paddingRight: 32 } : {},
4369
+ ...C
4367
4370
  },
4368
4371
  onClick: a,
4369
- draggable: m,
4370
- onDragStart: g,
4371
- onDragOver: _,
4372
- onDragEnd: v,
4373
- onDrop: m ? (e) => e.preventDefault() : void 0,
4372
+ draggable: h,
4373
+ onDragStart: v,
4374
+ onDragOver: y,
4375
+ onDragEnd: b,
4376
+ onDrop: h ? (e) => e.preventDefault() : void 0,
4377
+ onTouchStart: x,
4378
+ onContextMenu: h ? (e) => e.preventDefault() : void 0,
4374
4379
  "aria-selected": r,
4375
4380
  "aria-rowindex": c,
4376
4381
  "aria-posinset": l,
4377
4382
  "aria-setsize": d,
4378
4383
  role: p,
4379
- children: x
4384
+ children: w
4380
4385
  });
4381
4386
  }
4382
- function Hr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: l = 40, overscan: m = 3, rowGap: h = 0, selectedKey: g, getItemKey: _, onRowClick: v, visibleColumnKeys: y, onVisibleColumnsChange: b, showColumnToggle: x, onLoadMore: S, loadMoreThreshold: C = 100, isLoading: w = !1, multiSelect: T = !1, selectedKeys: E, onSelectionChange: ee, reorderable: O = !1, onReorder: k, showDivider: te = !0, className: ne, style: A, classNames: j, styles: M, ...re }, ie) {
4383
- let [ae, oe] = d(0), [se, ce] = d(0), [N, le] = d(/* @__PURE__ */ new Map()), [ue, de] = d(!1), [fe, pe] = d(!1), me = u(!1), L = u(null), [he, ge] = d(null), R = E !== void 0, [_e, ve] = d(/* @__PURE__ */ new Set()), z = R ? E : _e, ye = y !== void 0, [be, xe] = d(() => new Set((n ?? []).filter((e) => !e.defaultHidden).map((e) => e.key))), Se = ye ? new Set(y) : be, Ce = u(null), we = u(null), B = u(null), Te = u([]), Ee = u(null), De = u(0), V = u([]), [Oe] = d(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4387
+ function Vr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: l = 40, overscan: m = 3, rowGap: h = 0, selectedKey: g, getItemKey: _, onRowClick: v, visibleColumnKeys: y, onVisibleColumnsChange: b, showColumnToggle: x, onLoadMore: S, loadMoreThreshold: C = 100, isLoading: w = !1, multiSelect: T = !1, selectedKeys: E, onSelectionChange: ee, reorderable: O = !1, onReorder: k, longPressDelay: te = 400, showDivider: ne = !0, className: A, style: j, classNames: M, styles: N, ...re }, ie) {
4388
+ let [ae, oe] = d(0), [se, P] = d(0), [L, le] = d(/* @__PURE__ */ new Map()), [ue, de] = d(!1), [fe, pe] = d(!1), R = u(!1), me = u(null), [he, z] = d(null), B = u(null), V = u(!1), ge = u(null), _e = u(0), ve = u(0), ye = u(null), H = u(!1), be = u(k), xe = u(null), Se = u(0), Ce = u(0), we = u(0), [Te] = d(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)").matches : !1), U = E !== void 0, [Ee, De] = d(/* @__PURE__ */ new Set()), W = U ? E : Ee, ke = y !== void 0, [Ae, je] = d(() => new Set((n ?? []).filter((e) => !e.defaultHidden).map((e) => e.key))), Me = ke ? new Set(y) : Ae, Ne = u(null), Pe = u(null), G = u(null), Fe = u([]), Ie = u(null), Le = u(0), K = u([]), [Re] = d(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4384
4389
  le((t) => {
4385
4390
  let n = null;
4386
4391
  for (let r of e) {
4387
4392
  let e = r.target, i = Number(e.dataset.index);
4388
4393
  if (Number.isNaN(i)) continue;
4389
- let a = V.current[i];
4394
+ let a = K.current[i];
4390
4395
  if (a === void 0) continue;
4391
4396
  let o = r.borderBoxSize?.[0], s = o ? Math.round(o.blockSize) : e.offsetHeight;
4392
4397
  t.get(a) !== s && (n ||= new Map(t), n.set(a, s));
@@ -4394,52 +4399,52 @@ function Hr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4394
4399
  return n ?? t;
4395
4400
  });
4396
4401
  }));
4397
- a(() => () => Oe?.disconnect(), [Oe]), s(() => {
4398
- let e = Ce.current;
4402
+ a(() => () => Re?.disconnect(), [Re]), s(() => {
4403
+ let e = Ne.current;
4399
4404
  if (!e) return;
4400
- ce(e.clientHeight);
4401
- let t = new ResizeObserver(() => ce(e.clientHeight));
4405
+ P(e.clientHeight);
4406
+ let t = new ResizeObserver(() => P(e.clientHeight));
4402
4407
  return t.observe(e), () => t.disconnect();
4403
4408
  }, []), a(() => {
4404
4409
  if (!ue) return;
4405
4410
  function e(e) {
4406
- B.current && !B.current.contains(e.target) && de(!1);
4411
+ G.current && !G.current.contains(e.target) && de(!1);
4407
4412
  }
4408
4413
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
4409
4414
  }, [ue]);
4410
- let ke = i((e) => {
4415
+ let ze = i((e) => {
4411
4416
  let t = e.currentTarget;
4412
- De.current = t.scrollTop, Ee.current ??= requestAnimationFrame(() => {
4413
- Ee.current = null, oe(De.current);
4414
- }), S && !me.current && t.scrollTop + t.clientHeight >= t.scrollHeight - C && (me.current = !0, pe(!0), S().finally(() => {
4415
- me.current = !1, pe(!1);
4417
+ Le.current = t.scrollTop, Ie.current ??= requestAnimationFrame(() => {
4418
+ Ie.current = null, oe(Le.current);
4419
+ }), S && !R.current && t.scrollTop + t.clientHeight >= t.scrollHeight - C && (R.current = !0, pe(!0), S().finally(() => {
4420
+ R.current = !1, pe(!1);
4416
4421
  }));
4417
4422
  }, [S, C]);
4418
4423
  a(() => () => {
4419
- Ee.current != null && cancelAnimationFrame(Ee.current);
4424
+ Ie.current != null && cancelAnimationFrame(Ie.current);
4420
4425
  }, []);
4421
- let H = c(() => e.map((e, t) => _ ? _(e, t) : t), [e, _]);
4426
+ let Be = c(() => e.map((e, t) => _ ? _(e, t) : t), [e, _]);
4422
4427
  s(() => {
4423
- V.current = H;
4424
- }, [H]);
4425
- let { offsets: U, totalHeight: je } = c(() => Ir(H, N, l, h), [
4426
- H,
4427
- N,
4428
+ K.current = Be, be.current = k;
4429
+ });
4430
+ let { offsets: q, totalHeight: Ve } = c(() => Fr(Be, L, l, h), [
4431
+ Be,
4432
+ L,
4428
4433
  l,
4429
4434
  h
4430
4435
  ]);
4431
4436
  s(() => {
4432
- let t = Ce.current, n = Te.current;
4433
- if (Te.current = U, !t || n.length === 0) return;
4437
+ let t = Ne.current, n = Fe.current;
4438
+ if (Fe.current = q, !t || n.length === 0) return;
4434
4439
  let r = t.scrollTop;
4435
4440
  if (r <= 0) return;
4436
- let i = Lr(n, r, n.length - 1);
4441
+ let i = Ir(n, r, n.length - 1);
4437
4442
  if (i >= e.length) return;
4438
- let a = r - n[i], o = U[i] + a;
4439
- Math.abs(o - r) > .5 && (t.scrollTop = o, De.current = o, oe(o));
4440
- }, [U, e.length]), o(ie, () => {
4443
+ let a = r - n[i], o = q[i] + a;
4444
+ Math.abs(o - r) > .5 && (t.scrollTop = o, Le.current = o, oe(o));
4445
+ }, [q, e.length]), o(ie, () => {
4441
4446
  function t(e, t) {
4442
- let n = Ce.current;
4447
+ let n = Ne.current;
4443
4448
  if (!n) return;
4444
4449
  let r = Math.max(0, e);
4445
4450
  typeof n.scrollTo == "function" ? n.scrollTo({
@@ -4448,9 +4453,9 @@ function Hr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4448
4453
  }) : n.scrollTop = r;
4449
4454
  }
4450
4455
  function n(n, r) {
4451
- let i = Ce.current;
4456
+ let i = Ne.current;
4452
4457
  if (!i || e.length === 0) return;
4453
- let a = Math.max(0, Math.min(n, e.length - 1)), o = U[a] ?? 0, s = (U[a + 1] ?? o) - o, c = we.current?.offsetHeight ?? 0, l = Math.max(0, i.clientHeight - c), u = r?.align ?? "start", d = o - c;
4458
+ let a = Math.max(0, Math.min(n, e.length - 1)), o = q[a] ?? 0, s = (q[a + 1] ?? o) - o, c = Pe.current?.offsetHeight ?? 0, l = Math.max(0, i.clientHeight - c), u = r?.align ?? "start", d = o - c;
4454
4459
  u === "center" ? d -= (l - s) / 2 : u === "end" && (d -= l - s), t(d, r?.behavior);
4455
4460
  }
4456
4461
  return {
@@ -4462,157 +4467,233 @@ function Hr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4462
4467
  scrollToTop(e) {
4463
4468
  t(0, e?.behavior);
4464
4469
  },
4465
- getScrollElement: () => Ce.current
4470
+ getScrollElement: () => Ne.current
4466
4471
  };
4467
4472
  }, [
4468
4473
  e,
4469
- U,
4474
+ q,
4470
4475
  _
4471
4476
  ]);
4472
- let { startIndex: Me, endIndex: Ne } = c(() => Rr(U, ae, se, m, e.length), [
4473
- U,
4477
+ let { startIndex: He, endIndex: Ue } = c(() => Lr(q, ae, se, m, e.length), [
4478
+ q,
4474
4479
  ae,
4475
4480
  se,
4476
4481
  m,
4477
4482
  e.length
4478
- ]), W = !!n?.length, Pe = W ? n.filter((e) => Se.has(e.key)) : [], G = W ? `${T && W ? "40px " : ""}${Br(Pe)}` : void 0, Fe = x !== !1 && W;
4479
- function Ie(e) {
4480
- let t = new Set(Se);
4483
+ ]), We = !!n?.length, Ge = We ? n.filter((e) => Me.has(e.key)) : [], Ke = We ? `${T && We ? "40px " : ""}${zr(Ge)}` : void 0, Je = x !== !1 && We;
4484
+ function Ye(e) {
4485
+ let t = new Set(Me);
4481
4486
  if (t.has(e)) {
4482
4487
  if (t.size <= 1) return;
4483
4488
  t.delete(e);
4484
4489
  } else t.add(e);
4485
4490
  let n = [...t];
4486
- ye || xe(t), b?.(n);
4491
+ ke || je(t), b?.(n);
4487
4492
  }
4488
- function Le(e, t) {
4493
+ function Xe(e, t) {
4489
4494
  return _ ? _(e, t) : t;
4490
4495
  }
4491
- function Re(e) {
4492
- R || ve(e), ee?.(e);
4496
+ function Ze(e) {
4497
+ U || De(e), ee?.(e);
4493
4498
  }
4494
- function ze(e) {
4495
- let t = new Set(z);
4496
- t.has(e) ? t.delete(e) : t.add(e), Re(t);
4499
+ function Qe(e) {
4500
+ let t = new Set(W);
4501
+ t.has(e) ? t.delete(e) : t.add(e), Ze(t);
4497
4502
  }
4498
- function Be() {
4499
- let t = e.map((e, t) => Le(e, t));
4500
- Re(t.every((e) => z.has(e)) ? /* @__PURE__ */ new Set() : new Set(t));
4503
+ function $e() {
4504
+ let t = e.map((e, t) => Xe(e, t));
4505
+ Ze(t.every((e) => W.has(e)) ? /* @__PURE__ */ new Set() : new Set(t));
4501
4506
  }
4502
- function Ve(e) {
4503
- L.current = e, ge(e);
4507
+ function et(e) {
4508
+ me.current = e, z(e);
4504
4509
  }
4505
- function K(e, t) {
4510
+ function tt(e, t) {
4506
4511
  t.preventDefault();
4507
- let n = L.current;
4512
+ let n = me.current;
4508
4513
  if (n == null) return;
4509
- let r = H.indexOf(n), i = t.currentTarget.getBoundingClientRect(), a = zr(r, e, t.clientY, i.top, i.height);
4514
+ let r = Be.indexOf(n), i = t.currentTarget.getBoundingClientRect(), a = Rr(r, e, t.clientY, i.top, i.height);
4510
4515
  a != null && k?.(r, a);
4511
4516
  }
4512
- function He() {
4513
- L.current = null, ge(null);
4514
- }
4515
- let Ue = T && e.length > 0 && e.every((e, t) => z.has(Le(e, t))), We = T && !Ue && e.some((e, t) => z.has(Le(e, t))), Ge = [];
4516
- for (let n = Me; n <= Ne; n++) {
4517
- let r = e[n], i = Le(r, n), a = g != null && i === g || z.has(i);
4518
- Ge.push(/* @__PURE__ */ F(Vr, {
4517
+ function nt() {
4518
+ me.current = null, z(null);
4519
+ }
4520
+ let J = i((e) => {
4521
+ let t = me.current, n = Ne.current;
4522
+ if (t == null || !n) return;
4523
+ let r = xe.current ? ve.current - Se.current + we.current / 2 : ve.current, i = document.elementFromPoint(e, r), a = i && n.contains(i) ? i.closest("[data-index]") : null;
4524
+ if (!a) return;
4525
+ let o = Number(a.dataset.index);
4526
+ if (Number.isNaN(o)) return;
4527
+ let s = K.current.indexOf(t), c = a.getBoundingClientRect(), l = Rr(s, o, r, c.top, c.height);
4528
+ l != null && be.current?.(s, l);
4529
+ }, []), Y = i(() => {
4530
+ let e = xe.current;
4531
+ e && (e.style.transform = `translate(${Ce.current}px, ${ve.current - Se.current}px)`);
4532
+ }, []), rt = i(() => {
4533
+ let e = Ne.current;
4534
+ if (!e || !V.current) {
4535
+ ye.current = null;
4536
+ return;
4537
+ }
4538
+ let t = e.getBoundingClientRect(), n = _e.current, r = ve.current, i = 0;
4539
+ n >= t.left && n <= t.right && r >= t.top && r <= t.bottom && (r < t.top + 48 ? i = -Math.min(18, Math.ceil((t.top + 48 - r) / 3)) : r > t.bottom - 48 && (i = Math.min(18, Math.ceil((r - (t.bottom - 48)) / 3)))), i !== 0 && (e.scrollTop += i, J(n)), ye.current = requestAnimationFrame(rt);
4540
+ }, [J]), X = i(() => {
4541
+ B.current != null && (clearTimeout(B.current), B.current = null), window.removeEventListener("touchmove", it), window.removeEventListener("touchend", X), window.removeEventListener("touchcancel", X), ye.current != null && (cancelAnimationFrame(ye.current), ye.current = null), xe.current &&= (xe.current.remove(), null), document.body.style.touchAction = "", document.body.style.overscrollBehavior = "", V.current && (H.current = !0, setTimeout(() => {
4542
+ H.current = !1;
4543
+ }, 350)), V.current = !1, ge.current = null, me.current = null, z(null);
4544
+ }, []), it = i((e) => {
4545
+ let t = e.touches[0];
4546
+ if (t) {
4547
+ if (_e.current = t.clientX, ve.current = t.clientY, !V.current) {
4548
+ let e = ge.current;
4549
+ e != null && Math.abs(t.clientY - e) > 10 && B.current != null && (clearTimeout(B.current), B.current = null);
4550
+ return;
4551
+ }
4552
+ e.cancelable && e.preventDefault(), Y(), J(t.clientX);
4553
+ }
4554
+ }, [J, Y]);
4555
+ function at(e, t) {
4556
+ if (!O || B.current != null || V.current) return;
4557
+ let n = t.touches[0];
4558
+ n && (ge.current = n.clientY, _e.current = n.clientX, ve.current = n.clientY, window.addEventListener("touchmove", it, { passive: !1 }), window.addEventListener("touchend", X), window.addEventListener("touchcancel", X), B.current = window.setTimeout(() => {
4559
+ B.current = null, V.current = !0, me.current = e, z(e), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", ot(e), ye.current ??= requestAnimationFrame(rt);
4560
+ }, te));
4561
+ }
4562
+ function ot(e) {
4563
+ let t = Ne.current;
4564
+ if (!t) return;
4565
+ let n = K.current.indexOf(e), r = t.querySelector(`[data-index="${n}"]`);
4566
+ if (!r) return;
4567
+ let i = r.getBoundingClientRect();
4568
+ Se.current = ve.current - i.top, Ce.current = i.left, we.current = i.height;
4569
+ let a = r.cloneNode(!0);
4570
+ a.removeAttribute("data-index"), a.setAttribute("data-drag-clone", "true"), a.setAttribute("aria-hidden", "true"), a.classList.add($.virtualListDragClone), Object.assign(a.style, {
4571
+ position: "fixed",
4572
+ left: "0",
4573
+ top: "0",
4574
+ width: `${i.width}px`,
4575
+ height: `${i.height}px`,
4576
+ margin: "0",
4577
+ opacity: "1",
4578
+ pointerEvents: "none",
4579
+ zIndex: "2",
4580
+ background: "var(--background)",
4581
+ boxShadow: "var(--card-shadow)",
4582
+ borderRadius: "var(--default-border-radius)"
4583
+ }), t.appendChild(a), xe.current = a, Y();
4584
+ }
4585
+ a(() => X, [X]);
4586
+ let st = T && e.length > 0 && e.every((e, t) => W.has(Xe(e, t))), ct = T && !st && e.some((e, t) => W.has(Xe(e, t))), lt = (n) => {
4587
+ let r = e[n], i = Xe(r, n), a = g != null && i === g || W.has(i);
4588
+ return /* @__PURE__ */ F(Br, {
4519
4589
  index: n,
4520
- top: U[n],
4521
- columnTemplate: G,
4590
+ top: q[n],
4591
+ columnTemplate: Ke,
4522
4592
  isSelected: a,
4523
- showDivider: te,
4524
- onClick: () => v?.(r, n),
4525
- observer: Oe,
4526
- ariaRowIndex: W ? n + 2 : void 0,
4527
- ariaPosInSet: W ? void 0 : n + 1,
4528
- ariaSetSize: W ? void 0 : e.length,
4529
- rowRole: W ? "row" : "listitem",
4530
- draggable: O || void 0,
4593
+ showDivider: ne,
4594
+ onClick: () => {
4595
+ if (H.current) {
4596
+ H.current = !1;
4597
+ return;
4598
+ }
4599
+ v?.(r, n);
4600
+ },
4601
+ observer: Re,
4602
+ ariaRowIndex: We ? n + 2 : void 0,
4603
+ ariaPosInSet: We ? void 0 : n + 1,
4604
+ ariaSetSize: We ? void 0 : e.length,
4605
+ rowRole: We ? "row" : "listitem",
4606
+ reorderable: O,
4607
+ reserveToggleGutter: Je,
4608
+ draggable: O && !Te || void 0,
4531
4609
  isDragging: O && i === he,
4532
- onDragStart: O ? () => Ve(i) : void 0,
4533
- onDragOver: O ? (e) => K(n, e) : void 0,
4534
- onDragEnd: O ? He : void 0,
4535
- rowClassName: j?.row,
4536
- rowStyle: M?.row,
4537
- children: W ? /* @__PURE__ */ I(P, { children: [T && /* @__PURE__ */ F("div", {
4538
- className: f(Q.virtualListSelectCell, j?.selectCell),
4539
- style: M?.selectCell,
4610
+ onDragStart: O ? () => et(i) : void 0,
4611
+ onDragOver: O ? (e) => tt(n, e) : void 0,
4612
+ onDragEnd: O ? nt : void 0,
4613
+ onTouchStart: O ? (e) => at(i, e) : void 0,
4614
+ rowClassName: M?.row,
4615
+ rowStyle: N?.row,
4616
+ children: We ? /* @__PURE__ */ I(ce, { children: [T && /* @__PURE__ */ F("div", {
4617
+ className: f($.virtualListSelectCell, M?.selectCell),
4618
+ style: N?.selectCell,
4540
4619
  role: "gridcell",
4541
4620
  onClick: (e) => e.stopPropagation(),
4542
- children: /* @__PURE__ */ F(Je, {
4543
- selected: z.has(i),
4544
- onToggle: () => ze(i),
4621
+ children: /* @__PURE__ */ F(qe, {
4622
+ selected: W.has(i),
4623
+ onToggle: () => Qe(i),
4545
4624
  "aria-label": "Select row"
4546
4625
  })
4547
- }), Pe.map((e) => /* @__PURE__ */ F("div", {
4548
- className: f(Q.virtualListCell, j?.cell),
4549
- style: M?.cell,
4626
+ }), Ge.map((e) => /* @__PURE__ */ F("div", {
4627
+ className: f($.virtualListCell, M?.cell),
4628
+ style: N?.cell,
4550
4629
  role: "gridcell",
4551
4630
  children: e.renderCell(r, n)
4552
4631
  }, e.key))] }) : t?.(r, n)
4553
- }, i));
4554
- }
4555
- return /* @__PURE__ */ I("div", {
4632
+ }, i);
4633
+ }, ut = [];
4634
+ for (let e = He; e <= Ue; e++) ut.push(lt(e));
4635
+ let dt = he == null ? -1 : Be.indexOf(he);
4636
+ return dt >= 0 && (dt < He || dt > Ue) && ut.push(lt(dt)), /* @__PURE__ */ I("div", {
4556
4637
  ...re,
4557
- ref: Ce,
4558
- className: f(Q.virtualList, he != null && Q.virtualListReordering, ne, j?.root),
4638
+ ref: Ne,
4639
+ className: f($.virtualList, he != null && $.virtualListReordering, A, M?.root),
4559
4640
  style: {
4560
4641
  height: r,
4561
- ...A,
4562
- ...M?.root
4642
+ ...j,
4643
+ ...N?.root
4563
4644
  },
4564
- onScroll: ke,
4565
- role: W ? "grid" : "list",
4566
- "aria-rowcount": W ? e.length + 1 : void 0,
4645
+ onScroll: ze,
4646
+ role: We ? "grid" : "list",
4647
+ "aria-rowcount": We ? e.length + 1 : void 0,
4567
4648
  children: [
4568
- W && /* @__PURE__ */ I("div", {
4569
- ref: we,
4570
- className: f(Q.virtualListHeader, j?.header),
4649
+ We && /* @__PURE__ */ I("div", {
4650
+ ref: Pe,
4651
+ className: f($.virtualListHeader, M?.header),
4571
4652
  style: {
4572
- gridTemplateColumns: G,
4573
- ...Fe ? { paddingRight: 32 } : {},
4574
- ...M?.header
4653
+ gridTemplateColumns: Ke,
4654
+ ...Je ? { paddingRight: 32 } : {},
4655
+ ...N?.header
4575
4656
  },
4576
4657
  role: "row",
4577
4658
  "aria-rowindex": 1,
4578
4659
  children: [
4579
4660
  T && /* @__PURE__ */ F("div", {
4580
- className: f(Q.virtualListSelectCell, j?.selectCell),
4581
- style: M?.selectCell,
4661
+ className: f($.virtualListSelectCell, M?.selectCell),
4662
+ style: N?.selectCell,
4582
4663
  role: "columnheader",
4583
- children: /* @__PURE__ */ F(Je, {
4584
- selected: Ue || We,
4585
- onToggle: Be,
4664
+ children: /* @__PURE__ */ F(qe, {
4665
+ selected: st || ct,
4666
+ onToggle: $e,
4586
4667
  "aria-label": "Select all rows"
4587
4668
  })
4588
4669
  }),
4589
- Pe.map((e) => /* @__PURE__ */ F("div", {
4590
- className: f(Q.virtualListHeaderCell, j?.headerCell),
4591
- style: M?.headerCell,
4670
+ Ge.map((e) => /* @__PURE__ */ F("div", {
4671
+ className: f($.virtualListHeaderCell, M?.headerCell),
4672
+ style: N?.headerCell,
4592
4673
  role: "columnheader",
4593
4674
  children: e.label
4594
4675
  }, e.key)),
4595
- Fe && /* @__PURE__ */ I("div", {
4596
- ref: B,
4597
- className: Q.virtualListToggleWrapper,
4676
+ Je && /* @__PURE__ */ I("div", {
4677
+ ref: G,
4678
+ className: $.virtualListToggleWrapper,
4598
4679
  children: [/* @__PURE__ */ F("button", {
4599
4680
  type: "button",
4600
- className: f(Q.virtualListHeaderToggle, j?.headerToggle),
4601
- style: M?.headerToggle,
4681
+ className: f($.virtualListHeaderToggle, M?.headerToggle),
4682
+ style: N?.headerToggle,
4602
4683
  onClick: () => de((e) => !e),
4603
4684
  "aria-label": "Toggle column visibility",
4604
4685
  children: /* @__PURE__ */ F(p, {
4605
4686
  icon: D,
4606
- style: M?.headerToggle
4687
+ style: N?.headerToggle
4607
4688
  })
4608
4689
  }), ue && /* @__PURE__ */ F("div", {
4609
- className: f(Q.virtualListTogglePopover, j?.togglePopover),
4610
- style: M?.togglePopover,
4611
- children: n.map((e) => /* @__PURE__ */ F(Je, {
4612
- className: f(Q.virtualListToggleItem, j?.toggleItem),
4613
- style: M?.toggleItem,
4614
- selected: Se.has(e.key),
4615
- onToggle: () => Ie(e.key),
4690
+ className: f($.virtualListTogglePopover, M?.togglePopover),
4691
+ style: N?.togglePopover,
4692
+ children: n.map((e) => /* @__PURE__ */ F(qe, {
4693
+ className: f($.virtualListToggleItem, M?.toggleItem),
4694
+ style: N?.toggleItem,
4695
+ selected: Me.has(e.key),
4696
+ onToggle: () => Ye(e.key),
4616
4697
  cursorDefault: !1,
4617
4698
  children: e.label
4618
4699
  }, e.key))
@@ -4621,25 +4702,25 @@ function Hr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4621
4702
  ]
4622
4703
  }),
4623
4704
  w ? /* @__PURE__ */ F("div", {
4624
- className: Q.virtualListLoadingFull,
4625
- children: /* @__PURE__ */ F(Ae, { className: Q.virtualListSpinner })
4705
+ className: $.virtualListLoadingFull,
4706
+ children: /* @__PURE__ */ F(Oe, { className: $.virtualListSpinner })
4626
4707
  }) : /* @__PURE__ */ F("div", {
4627
- className: f(Q.virtualListBody, j?.body),
4708
+ className: f($.virtualListBody, M?.body),
4628
4709
  style: {
4629
- height: je,
4630
- ...M?.body
4710
+ height: Ve,
4711
+ ...N?.body
4631
4712
  },
4632
- children: Ge
4713
+ children: ut
4633
4714
  }),
4634
4715
  fe && /* @__PURE__ */ F("div", {
4635
- className: f(Q.virtualListLoadingIndicator, j?.loadingIndicator),
4636
- style: M?.loadingIndicator,
4637
- children: /* @__PURE__ */ F(Ae, { className: Q.virtualListSpinner })
4716
+ className: f($.virtualListLoadingIndicator, M?.loadingIndicator),
4717
+ style: N?.loadingIndicator,
4718
+ children: /* @__PURE__ */ F(Oe, { className: $.virtualListSpinner })
4638
4719
  })
4639
4720
  ]
4640
4721
  });
4641
4722
  }
4642
- var Ur = e.forwardRef(Hr), Wr = {
4723
+ var Hr = e.forwardRef(Vr), Ur = {
4643
4724
  wizard: "wizard_uRBAN",
4644
4725
  "wizard-content": "wizard-content_lcl4C",
4645
4726
  wizardContent: "wizard-content_lcl4C",
@@ -4650,7 +4731,7 @@ var Ur = e.forwardRef(Hr), Wr = {
4650
4731
  };
4651
4732
  //#endregion
4652
4733
  //#region package/common/wizard/wizard.tsx
4653
- function Gr({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
4734
+ function Wr({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
4654
4735
  let [l, p] = d(void 0), [m, h] = d(!1), [g, _] = d(e), v = u([]), y = u(null);
4655
4736
  e !== g && (_(e), h(!0)), a(() => {
4656
4737
  if (!m) return;
@@ -4670,10 +4751,10 @@ function Gr({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
4670
4751
  };
4671
4752
  return /* @__PURE__ */ F("div", {
4672
4753
  ...c,
4673
- className: f(Wr.wizard, o?.root, r),
4754
+ className: f(Ur.wizard, o?.root, r),
4674
4755
  style: b,
4675
4756
  children: /* @__PURE__ */ F("div", {
4676
- className: f(Wr.wizardContentContainer, o?.container),
4757
+ className: f(Ur.wizardContentContainer, o?.container),
4677
4758
  style: {
4678
4759
  width: `${t * 100}%`,
4679
4760
  marginLeft: `-${e * 100}%`,
@@ -4683,14 +4764,14 @@ function Gr({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
4683
4764
  ref: (e) => {
4684
4765
  v.current[i] = e;
4685
4766
  },
4686
- className: f(Wr.wizardContent, o?.step),
4767
+ className: f(Ur.wizardContent, o?.step),
4687
4768
  style: {
4688
4769
  width: `${100 / t}%`,
4689
4770
  marginLeft: `${100 / t * i}%`,
4690
4771
  ...s?.step
4691
4772
  },
4692
4773
  children: /* @__PURE__ */ F("div", {
4693
- className: f({ [Wr.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
4774
+ className: f({ [Ur.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
4694
4775
  style: s?.stepContent,
4695
4776
  inert: e === i ? void 0 : !0,
4696
4777
  children: n(i)
@@ -4701,20 +4782,20 @@ function Gr({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
4701
4782
  }
4702
4783
  //#endregion
4703
4784
  //#region package/services/formValidation/formValidatorGroup.ts
4704
- function Kr(e) {
4785
+ function Gr(e) {
4705
4786
  let t = e;
4706
4787
  return t?.errors && Array.isArray(t.errors) ? t.errors.flatMap((e) => Object.entries(e).map(([e, t]) => ({
4707
4788
  id: e,
4708
4789
  message: t
4709
4790
  }))) : [];
4710
4791
  }
4711
- var qr = class {
4792
+ var Kr = class {
4712
4793
  #e;
4713
4794
  #t;
4714
4795
  #n;
4715
4796
  #r;
4716
4797
  #i;
4717
- constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = Kr, onSubmitError: o = () => void 0 } = {}) {
4798
+ constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = Gr, onSubmitError: o = () => void 0 } = {}) {
4718
4799
  this.#t = !1, this.#i = [], this.getFormError = () => {
4719
4800
  let e = Object.keys(this.group);
4720
4801
  for (let t = 0; t < e.length; t += 1) {
@@ -4804,7 +4885,7 @@ var qr = class {
4804
4885
  };
4805
4886
  //#endregion
4806
4887
  //#region package/services/formValidation/FormValidatorGroupForm.tsx
4807
- function Jr(e) {
4888
+ function qr(e) {
4808
4889
  return function({ children: t, ...n }) {
4809
4890
  return /* @__PURE__ */ F("form", {
4810
4891
  onSubmit: e.submit,
@@ -4816,16 +4897,16 @@ function Jr(e) {
4816
4897
  }
4817
4898
  //#endregion
4818
4899
  //#region package/services/formValidation/FormValidatorGroupWithForm.tsx
4819
- var Yr = (e) => {
4820
- jr(e[0].message, { type: "error" });
4821
- }, Xr = class extends qr {
4900
+ var Jr = (e) => {
4901
+ Ar(e[0].message, { type: "error" });
4902
+ }, Yr = class extends Kr {
4822
4903
  constructor(e, t = null, n) {
4823
4904
  super(e, t, {
4824
4905
  ...n,
4825
- onSubmitError: n?.onSubmitError ?? Yr
4826
- }), this.Form = Jr(this);
4906
+ onSubmitError: n?.onSubmitError ?? Jr
4907
+ }), this.Form = qr(this);
4827
4908
  }
4828
- }, Zr = class {
4909
+ }, Xr = class {
4829
4910
  #e;
4830
4911
  #t;
4831
4912
  #n;
@@ -4879,44 +4960,44 @@ var Yr = (e) => {
4879
4960
  return this.#r;
4880
4961
  }
4881
4962
  };
4882
- Zr.prototype.toString = function() {
4963
+ Xr.prototype.toString = function() {
4883
4964
  return `${this.value}`;
4884
4965
  };
4885
4966
  //#endregion
4886
4967
  //#region package/services/regexp.ts
4887
- function Qr(e) {
4968
+ function Zr(e) {
4888
4969
  return /^[0-9]+$/.test(e);
4889
4970
  }
4890
- function $r(e) {
4971
+ function Qr(e) {
4891
4972
  return /^[0-9]{2}.[0-9]{2}.[0-9]{4}$/.test(e);
4892
4973
  }
4893
- function ei(e) {
4974
+ function $r(e) {
4894
4975
  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);
4895
4976
  }
4896
- function ti(e) {
4977
+ function ei(e) {
4897
4978
  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);
4898
4979
  }
4899
- function ni(e) {
4980
+ function ti(e) {
4900
4981
  return /^[A-Z]{6}[A-Z\d]{2}([A-Z\d]{3})?$/.test(e);
4901
4982
  }
4902
- function ri(e) {
4983
+ function ni(e) {
4903
4984
  return /[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}(\/[-a-zA-Z0-9@:%_+.~#?&//=]*)?$/.test(e);
4904
4985
  }
4905
- function ii(e) {
4986
+ function ri(e) {
4906
4987
  return /^[\w!@#$%^&*?±§~`'"/\\[\]{}\-,.();:><+=|öäüÖÄÜß €μ]{8,}$/.test(e);
4907
4988
  }
4908
- function ai(e) {
4989
+ function ii(e) {
4909
4990
  return /^(?=.*[a-zöäüA-ZÖÄÜß])/.test(e);
4910
4991
  }
4911
- function oi(e) {
4992
+ function ai(e) {
4912
4993
  return /^(?=.*\d)/.test(e);
4913
4994
  }
4914
- function si(e) {
4915
- return ii(e) && ai(e) && oi(e);
4995
+ function oi(e) {
4996
+ return ri(e) && ii(e) && ai(e);
4916
4997
  }
4917
4998
  //#endregion
4918
4999
  //#region package/services/formValidation/validators.ts
4919
- var $ = { t: (e, t) => ({
5000
+ var si = { t: (e, t) => ({
4920
5001
  "formValidators.minLength": `Must be at least ${t?.min} characters long`,
4921
5002
  "formValidators.maxLength": `Must be at most ${t?.max} characters long`,
4922
5003
  "formValidators.email": "Must be a valid email address",
@@ -4935,19 +5016,19 @@ var $ = { t: (e, t) => ({
4935
5016
  static {
4936
5017
  this.minLength = (e, t) => (n) => !n || n.length < e ? {
4937
5018
  id: "minLength",
4938
- message: t || $.t("formValidators.minLength", { min: e })
5019
+ message: t || si.t("formValidators.minLength", { min: e })
4939
5020
  } : null;
4940
5021
  }
4941
5022
  static {
4942
5023
  this.maxLength = (e, t) => (n) => n && n.length > e ? {
4943
5024
  id: "maxLength",
4944
- message: t || $.t("formValidators.maxLength", { max: e })
5025
+ message: t || si.t("formValidators.maxLength", { max: e })
4945
5026
  } : null;
4946
5027
  }
4947
5028
  static {
4948
- this.email = (e) => (t) => t && !ti(t) ? {
5029
+ this.email = (e) => (t) => t && !ei(t) ? {
4949
5030
  id: "email",
4950
- message: e || $.t("formValidators.email")
5031
+ message: e || si.t("formValidators.email")
4951
5032
  } : null;
4952
5033
  }
4953
5034
  static {
@@ -4955,7 +5036,7 @@ var $ = { t: (e, t) => ({
4955
5036
  function t(t, n) {
4956
5037
  return !t && t !== 0 ? {
4957
5038
  id: "required",
4958
- message: e || $.t("formValidators.required", { label: n || $.t("formValidators.value") })
5039
+ message: e || si.t("formValidators.required", { label: n || si.t("formValidators.value") })
4959
5040
  } : null;
4960
5041
  }
4961
5042
  return t.validatorId = "required", t;
@@ -4964,13 +5045,13 @@ var $ = { t: (e, t) => ({
4964
5045
  static {
4965
5046
  this.mustBeNumber = (e) => (t) => t && Number.isNaN(+t) ? {
4966
5047
  id: "mustBeNumber",
4967
- message: e || $.t("formValidators.mustBeNumber")
5048
+ message: e || si.t("formValidators.mustBeNumber")
4968
5049
  } : null;
4969
5050
  }
4970
5051
  static {
4971
5052
  this.oneOf = (e, t) => (n) => n && !e.includes(n) ? {
4972
5053
  id: "oneOf",
4973
- message: t || $.t("formValidators.oneOf", { allowedValues: e })
5054
+ message: t || si.t("formValidators.oneOf", { allowedValues: e })
4974
5055
  } : null;
4975
5056
  }
4976
5057
  static {
@@ -4988,48 +5069,48 @@ var $ = { t: (e, t) => ({
4988
5069
  this.multiEmail = (e) => (t) => {
4989
5070
  if (t) {
4990
5071
  let n = t.replace(/ /g, "").replace(/,/g, ";").split(";");
4991
- for (let t = 0; t < n.length; t += 1) if (!ti(n[t])) return {
5072
+ for (let t = 0; t < n.length; t += 1) if (!ei(n[t])) return {
4992
5073
  id: "multiEmail",
4993
- message: e || $.t("formValidators.multiEmail")
5074
+ message: e || si.t("formValidators.multiEmail")
4994
5075
  };
4995
5076
  }
4996
5077
  return null;
4997
5078
  };
4998
5079
  }
4999
5080
  static {
5000
- this.date = (e) => (t) => t && !$r(t) && !ei(t) ? {
5081
+ this.date = (e) => (t) => t && !Qr(t) && !$r(t) ? {
5001
5082
  id: "date",
5002
- message: e || $.t("formValidators.date")
5083
+ message: e || si.t("formValidators.date")
5003
5084
  } : null;
5004
5085
  }
5005
5086
  static {
5006
5087
  this.dateObject = (e) => (t) => t && !t.isValid ? {
5007
5088
  id: "date",
5008
- message: e || $.t("formValidators.date")
5089
+ message: e || si.t("formValidators.date")
5009
5090
  } : null;
5010
5091
  }
5011
5092
  static {
5012
- this.website = (e) => (t) => t && !ri(t) ? {
5093
+ this.website = (e) => (t) => t && !ni(t) ? {
5013
5094
  id: "website",
5014
- message: e || $.t("garages.errors.website")
5095
+ message: e || si.t("garages.errors.website")
5015
5096
  } : null;
5016
5097
  }
5017
5098
  static {
5018
- this.bic = (e) => (t) => t && !ni(t) ? {
5099
+ this.bic = (e) => (t) => t && !ti(t) ? {
5019
5100
  id: "bic",
5020
- message: e || $.t("garages.errors.bic")
5101
+ message: e || si.t("garages.errors.bic")
5021
5102
  } : null;
5022
5103
  }
5023
5104
  static {
5024
5105
  this.minLetters = (e, t) => (n) => n && n.replace(/[^a-zöäüA-ZÖÄÜß]/g, "").length < e ? {
5025
5106
  id: "minLetters",
5026
- message: t || $.t("formValidators.minLetters", { smart_count: e })
5107
+ message: t || si.t("formValidators.minLetters", { smart_count: e })
5027
5108
  } : null;
5028
5109
  }
5029
5110
  static {
5030
5111
  this.minDigits = (e, t) => (n) => n && n.replace(/[\D]/g, "").length < e ? {
5031
5112
  id: "minDigits",
5032
- message: t || $.t("formValidators.minDigits", { smart_count: e })
5113
+ message: t || si.t("formValidators.minDigits", { smart_count: e })
5033
5114
  } : null;
5034
5115
  }
5035
5116
  static {
@@ -5104,7 +5185,7 @@ var $ = { t: (e, t) => ({
5104
5185
  }
5105
5186
  renderTooltip() {
5106
5187
  let { errorMessage: e, formValidator: t } = this.props, { isHovered: n, isFocused: r } = this.state;
5107
- return /* @__PURE__ */ F(rt, {
5188
+ return /* @__PURE__ */ F(nt, {
5108
5189
  variant: "error",
5109
5190
  message: t ? t.getCurrentErrorMessage() : e || "",
5110
5191
  isVisible: this.hasError() && (r || n)
@@ -5131,7 +5212,7 @@ function ui(e) {
5131
5212
  //#region package/services/formValidation/useFormValidatorGroup.ts
5132
5213
  function di(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, onSubmitError: o } = {}) {
5133
5214
  let [, s] = l((e) => e + 1, 0), c = u(null);
5134
- c.current ||= new Xr(e, null, {
5215
+ c.current ||= new Yr(e, null, {
5135
5216
  initialValues: t,
5136
5217
  errorParser: i,
5137
5218
  onSubmitError: o
@@ -5140,6 +5221,6 @@ function di(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, o
5140
5221
  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;
5141
5222
  }
5142
5223
  //#endregion
5143
- export { Ee as Accordion, Se as AccordionStyleType, Fe as ActionButtons, Be as ActionIcon, $e as Align, Ve as BodyEnd, G as Button, U as ButtonSize, H as ButtonStyleType, je as ButtonType, He as Card, Ke as CardActions, Ge as CardContent, Ue as CardHeader, We as CardMedia, Je as Checkbox, Xe as Chip, Ze as ChipContainer, ht as ColorPicker, vt as ConfirmModal, Kt as DatePicker, Wt as Dropdown, Jt as EmptyState, Qt as Fab, tt as FloatingMenu, Zr as FormValidator, Xr as FormValidatorGroup, gn as IconLoading, nn as IconPicker, an as IdleManager, Ut as InfiniteBlock, it as Input, ln as InputDropdown, J as InputType, Re as InteractableDiv, pn as KanbanBoard, fn as KanbanColumn, _t as Modal, yn as NumberInput, xn as OptionPicker, Tn as Overscroll, On as ProgressBar, Ne as Ripple, tr as RoomDrawer, rr as RoomViewer, or as ScrollbarProvider, cr as SearchInput, Ae as SpinnerLoading, dr as Stepper, yr as TenorPicker, br as Textarea, Cr as ThemeProvider, Fr as ToastProvider, rt as Tooltip, li as ValidatableComponent, ci as Validators, Ur as VirtualList, Gr as Wizard, xr as defaultTheme, Et as getLocale, ii as hasEightPasswordChars, oi as hasOnePasswordDigit, ai as hasOnePasswordLetter, ni as isBic, $r as isDate, ti as isEmail, ei as isISODate, Qr as isNumber, si as isPassword, ri as isURL, Ct as mapLocale, Tt as setLocale, jr as showToast, ui as useFormValidator, di as useFormValidatorGroup, wr as useTheme };
5224
+ export { we as Accordion, H as AccordionStyleType, Fe as ActionButtons, ze as ActionIcon, Qe as Align, Be as BodyEnd, G as Button, ke as ButtonSize, W as ButtonStyleType, Ae 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, pt as ColorPicker, gt as ConfirmModal, Wt as DatePicker, Ht as Dropdown, Kt as EmptyState, Zt as Fab, et as FloatingMenu, Xr as FormValidator, Yr as FormValidatorGroup, hn as IconLoading, tn as IconPicker, rn as IdleManager, Vt as InfiniteBlock, rt as Input, cn as InputDropdown, Y as InputType, K as InteractableDiv, fn as KanbanBoard, dn as KanbanColumn, ht as Modal, vn as NumberInput, bn as OptionPicker, wn as Overscroll, Dn as ProgressBar, Me as Ripple, er as RoomDrawer, nr as RoomViewer, ar as ScrollbarProvider, sr as SearchInput, Oe as SpinnerLoading, ur as Stepper, vr as TenorPicker, yr as Textarea, Sr as ThemeProvider, Pr as ToastProvider, nt as Tooltip, li as ValidatableComponent, ci as Validators, Hr as VirtualList, Wr as Wizard, br as defaultTheme, wt as getLocale, ri as hasEightPasswordChars, ai as hasOnePasswordDigit, ii as hasOnePasswordLetter, ti as isBic, Qr as isDate, ei as isEmail, $r as isISODate, Zr as isNumber, oi as isPassword, ni as isURL, xt as mapLocale, Ct as setLocale, Ar as showToast, ui as useFormValidator, di as useFormValidatorGroup, Cr as useTheme };
5144
5225
 
5145
5226
  //# sourceMappingURL=index.mjs.map