@ahrowe/ui 0.1.17 → 0.1.19

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,13 +1,13 @@
1
1
  import e, { Component as t, PureComponent as n, forwardRef as r, useCallback as i, useEffect as a, useImperativeHandle as o, useLayoutEffect as s, useMemo as c, useReducer as l, useRef as u, useState as d } from "react";
2
2
  import f from "classnames";
3
3
  import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
4
- import { faBell as m, faCheck as h, faChevronDown as g, faChevronLeft as _, faChevronRight as v, faChevronUp as y, faCircleCheck as b, faCircleInfo as x, faCircleXmark as S, faDoorOpen as C, faDownload as w, faDrawPolygon as T, faEnvelope as E, faEye as D, faEyeSlash as O, faGear as k, faHandPointer as A, faLayerGroup as j, faMagnifyingGlassMinus as M, faMagnifyingGlassPlus as N, faPen as P, faPhone as F, faPlus as I, faSearch as ee, faSquare as L, faTrash as R, faTriangleExclamation as te, faUpload as ne, faXmark as z, faXmarkCircle as re } from "@fortawesome/free-solid-svg-icons";
4
+ import { faBell as m, faCheck as h, faChevronDown as g, faChevronLeft as _, faChevronRight as v, faChevronUp as y, faCircleCheck as b, faCircleInfo as x, faCircleXmark as S, faDoorOpen as C, faDownload as w, faDrawPolygon as T, faEnvelope as E, faEye as D, faEyeSlash as O, faGear as k, faHandPointer as A, faLayerGroup as j, faMagnifyingGlassMinus as M, faMagnifyingGlassPlus as N, faPen as P, faPhone as F, faPlus as I, faSearch as ee, faSquare as te, faTrash as L, faTriangleExclamation as R, faUpload as ne, faXmark as z, faXmarkCircle as re } from "@fortawesome/free-solid-svg-icons";
5
5
  import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
6
6
  import { createPortal as ie } from "react-dom";
7
7
  import ae from "downshift";
8
8
  import oe from "@mona-health/react-input-mask";
9
- import { DndContext as U, DragOverlay as se, PointerSensor as W, closestCorners as ce, useDroppable as le, useSensor as ue, useSensors as G } from "@dnd-kit/core";
10
- import { SortableContext as K, arrayMove as de, useSortable as fe, verticalListSortingStrategy as pe } from "@dnd-kit/sortable";
9
+ import { DndContext as U, DragOverlay as se, PointerSensor as W, closestCorners as ce, useDroppable as le, useSensor as ue, useSensors as de } from "@dnd-kit/core";
10
+ import { SortableContext as G, arrayMove as fe, useSortable as K, verticalListSortingStrategy as pe } from "@dnd-kit/sortable";
11
11
  import { CSS as me } from "@dnd-kit/utilities";
12
12
  import { NumericFormat as he } from "react-number-format";
13
13
  //#region package/common/accordion/accordion.types.ts
@@ -268,7 +268,7 @@ var Te = we, Ee = /* @__PURE__ */ function(e) {
268
268
  medium: q.buttonSizeMedium,
269
269
  large: q.buttonSizeLarge
270
270
  };
271
- function J({ className: e, style: t, type: n = Oe.Button, styleType: r = Ee.Default, size: i = De.Default, onClick: a = () => {}, children: o, icon: s, isLoading: c = !1, disabled: l = !1, title: u = void 0, ref: d, classNames: m, styles: h, ...g }) {
271
+ function Ne({ className: e, style: t, type: n = Oe.Button, styleType: r = Ee.Default, size: i = De.Default, onClick: a = () => {}, children: o, icon: s, isLoading: c = !1, disabled: l = !1, title: u = void 0, ref: d, classNames: m, styles: h, ...g }) {
272
272
  return /* @__PURE__ */ V("button", {
273
273
  ...g,
274
274
  className: f(q.button, je[r], Me[i], { [q.buttonNotAllowed]: c || l }, e),
@@ -303,10 +303,10 @@ function J({ className: e, style: t, type: n = Oe.Button, styleType: r = Ee.Defa
303
303
  })
304
304
  });
305
305
  }
306
- J.StyleType = Ee, J.Size = De, J.Type = Oe;
306
+ Ne.StyleType = Ee, Ne.Size = De, Ne.Type = Oe;
307
307
  //#endregion
308
308
  //#region package/common/actionButtons/actionButtons.tsx
309
- function Ne({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = Ee.Primary, isSubmitButtonLoading: a = !1, isSubmitButtonDisabled: o = !1, submitButtonIcon: s = void 0, cancelButtonStyle: c = Ee.Default, isCancelButtonLoading: l = !1, isCancelButtonDisabled: u = !1, cancelButtonIcon: d = void 0, hidePrimaryButton: p = !1, hideSecondaryButton: m = !1, noMargin: h = !1, className: g, style: _, classNames: v, styles: y, ...b }) {
309
+ function Pe({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = Ee.Primary, isSubmitButtonLoading: a = !1, isSubmitButtonDisabled: o = !1, submitButtonIcon: s = void 0, cancelButtonStyle: c = Ee.Default, isCancelButtonLoading: l = !1, isCancelButtonDisabled: u = !1, cancelButtonIcon: d = void 0, hidePrimaryButton: p = !1, hideSecondaryButton: m = !1, noMargin: h = !1, className: g, style: _, classNames: v, styles: y, ...b }) {
310
310
  return /* @__PURE__ */ H("div", {
311
311
  ...b,
312
312
  className: f(Se.actionButtons, !h && Se.actionButtonsMargin, g, v?.root),
@@ -314,7 +314,7 @@ function Ne({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n
314
314
  ..._,
315
315
  ...y?.root
316
316
  },
317
- children: [!p && /* @__PURE__ */ V(J, {
317
+ children: [!p && /* @__PURE__ */ V(Ne, {
318
318
  isLoading: a,
319
319
  disabled: o,
320
320
  styleType: i,
@@ -324,7 +324,7 @@ function Ne({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n
324
324
  style: y?.submitButton,
325
325
  icon: s,
326
326
  children: n
327
- }), !m && /* @__PURE__ */ V(J, {
327
+ }), !m && /* @__PURE__ */ V(Ne, {
328
328
  isLoading: l,
329
329
  disabled: u,
330
330
  onClick: t,
@@ -336,12 +336,12 @@ function Ne({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n
336
336
  })]
337
337
  });
338
338
  }
339
- var Pe = { interactableDiv: "interactableDiv_Ej8Fi" }, Fe = e.forwardRef(({ className: e, children: t, onClick: n, onMouseDown: r, onKeyDown: a, tabIndex: o = 0, title: s, ...c }, l) => {
339
+ var Fe = { interactableDiv: "interactableDiv_Ej8Fi" }, Ie = e.forwardRef(({ className: e, children: t, onClick: n, onMouseDown: r, onKeyDown: a, tabIndex: o = 0, title: s, ...c }, l) => {
340
340
  let u = i((e) => {
341
341
  e.key === "Enter" && n?.(e), a?.(e);
342
342
  }, [n, a]);
343
343
  return /* @__PURE__ */ V("div", {
344
- className: f(Pe.interactableDiv, e),
344
+ className: f(Fe.interactableDiv, e),
345
345
  onClick: n,
346
346
  onMouseDown: r,
347
347
  tabIndex: o ?? 0,
@@ -353,16 +353,16 @@ var Pe = { interactableDiv: "interactableDiv_Ej8Fi" }, Fe = e.forwardRef(({ clas
353
353
  children: t
354
354
  });
355
355
  });
356
- Fe.displayName = "InteractableDiv";
356
+ Ie.displayName = "InteractableDiv";
357
357
  //#endregion
358
358
  //#region package/common/interactableDiv/index.ts
359
- var Ie = Fe, Le = { actionIcon: "actionIcon_ganSq" };
359
+ var Le = Ie, Re = { actionIcon: "actionIcon_ganSq" };
360
360
  //#endregion
361
361
  //#region package/common/actionIcon/actionIcon.tsx
362
- function Re({ icon: e, className: t = "", style: n, title: r = "", onClick: i = () => {}, classNames: a, styles: o, ...s }) {
363
- return /* @__PURE__ */ V(Ie, {
362
+ function ze({ icon: e, className: t = "", style: n, title: r = "", onClick: i = () => {}, classNames: a, styles: o, ...s }) {
363
+ return /* @__PURE__ */ V(Le, {
364
364
  ...s,
365
- className: f(Le.actionIcon, t, a?.root),
365
+ className: f(Re.actionIcon, t, a?.root),
366
366
  style: {
367
367
  ...n,
368
368
  ...o?.root
@@ -378,16 +378,24 @@ function Re({ icon: e, className: t = "", style: n, title: r = "", onClick: i =
378
378
  }
379
379
  //#endregion
380
380
  //#region package/common/bodyEnd/bodyEnd.tsx
381
- function ze({ children: e = null }) {
381
+ function Be({ children: e = null }) {
382
382
  let t = document.getElementById("bodyEnd");
383
383
  return t ? ie(e, t) : (typeof process < "u" && process.env.NODE_ENV !== "production" && console.error("[BodyEnd] No element with id=\"bodyEnd\" found. Add <div id=\"bodyEnd\"></div> to your app root."), null);
384
384
  }
385
- var Be = {
385
+ //#endregion
386
+ //#region package/common/card/card.types.ts
387
+ var Ve = /* @__PURE__ */ function(e) {
388
+ return e.Elevated = "elevated", e.Outlined = "outlined", e.Filled = "filled", e;
389
+ }({}), J = {
386
390
  card: "card_w-6Ki",
387
391
  "card-padding": "card-padding_X2-q-",
388
392
  cardPadding: "card-padding_X2-q-",
389
- "card-shadow": "card-shadow_xCSZ9",
390
- cardShadow: "card-shadow_xCSZ9",
393
+ "card-style-elevated": "card-style-elevated_exvMB",
394
+ cardStyleElevated: "card-style-elevated_exvMB",
395
+ "card-style-outlined": "card-style-outlined_PxZZA",
396
+ cardStyleOutlined: "card-style-outlined_PxZZA",
397
+ "card-style-filled": "card-style-filled_2nhAY",
398
+ cardStyleFilled: "card-style-filled_2nhAY",
391
399
  "card-interactable": "card-interactable_az2lE",
392
400
  cardInteractable: "card-interactable_az2lE",
393
401
  "card-hover": "card-hover_fdS-X",
@@ -407,19 +415,21 @@ var Be = {
407
415
  cardHeaderTitlesSub: "cardHeader-titles-sub_2X08b",
408
416
  cardMedia: "cardMedia_GZJQF",
409
417
  cardActions: "cardActions_uYu-0"
418
+ }, He = {
419
+ elevated: J.cardStyleElevated,
420
+ outlined: J.cardStyleOutlined,
421
+ filled: J.cardStyleFilled
410
422
  };
411
- //#endregion
412
- //#region package/common/card/Card.tsx
413
- 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 }) {
414
- let s = !!n;
415
- return /* @__PURE__ */ V(Ie, {
416
- ...o,
417
- className: f(Be.card, Be.cardPadding, Be.cardShadow, s && Be.cardInteractable, (s && i !== !1 || i) && Be.cardHover, e),
418
- onClick: n,
419
- tabIndex: r ?? (s ? 0 : null),
420
- style: a,
423
+ function Ue({ className: e = void 0, children: t = null, styleType: n = Ve.Elevated, onClick: r = void 0, tabIndex: i = null, hoverEffect: a = void 0, style: o = void 0, ...s }) {
424
+ let c = !!r;
425
+ return /* @__PURE__ */ V(Le, {
426
+ ...s,
427
+ className: f(J.card, J.cardPadding, He[n], c && J.cardInteractable, (c && a !== !1 || a) && J.cardHover, e),
428
+ onClick: r,
429
+ tabIndex: i ?? (c ? 0 : null),
430
+ style: o,
421
431
  children: /* @__PURE__ */ V(Ae, {
422
- disabled: !s,
432
+ disabled: !c,
423
433
  overflowHidden: !1,
424
434
  children: t
425
435
  })
@@ -427,24 +437,24 @@ function Ve({ className: e = void 0, children: t = null, onClick: n = void 0, ta
427
437
  }
428
438
  //#endregion
429
439
  //#region package/common/card/CardHeader.tsx
430
- function He({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r = "", actions: i = void 0 }) {
440
+ function We({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r = "", actions: i = void 0 }) {
431
441
  let a = typeof r == "string" && r.startsWith("http") ? r : void 0;
432
442
  return /* @__PURE__ */ H("div", {
433
- className: f(Be.cardHeader, e),
443
+ className: f(J.cardHeader, e),
434
444
  children: [r && /* @__PURE__ */ V("div", {
435
- className: Be.cardHeaderThumbnail,
445
+ className: J.cardHeaderThumbnail,
436
446
  style: a ? { backgroundImage: `url(${a})` } : {},
437
447
  children: !a && r
438
448
  }), /* @__PURE__ */ H("div", {
439
- className: Be.cardHeaderTitles,
449
+ className: J.cardHeaderTitles,
440
450
  children: [/* @__PURE__ */ H("div", {
441
- className: Be.cardHeaderTitlesMainContainer,
451
+ className: J.cardHeaderTitlesMainContainer,
442
452
  children: [/* @__PURE__ */ V("div", {
443
- className: Be.cardHeaderTitlesMain,
453
+ className: J.cardHeaderTitlesMain,
444
454
  children: t
445
455
  }), /* @__PURE__ */ V("div", {
446
- className: Be.cardHeaderActions,
447
- children: Array.isArray(i) ? i.map((e, t) => /* @__PURE__ */ V(Re, {
456
+ className: J.cardHeaderActions,
457
+ children: Array.isArray(i) ? i.map((e, t) => /* @__PURE__ */ V(ze, {
448
458
  title: e.title,
449
459
  onClick: e.onClick ? (t) => {
450
460
  t.stopPropagation(), e.onClick?.(t);
@@ -453,7 +463,7 @@ function He({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r =
453
463
  }, t)) : i
454
464
  })]
455
465
  }), /* @__PURE__ */ V("div", {
456
- className: Be.cardHeaderTitlesSub,
466
+ className: J.cardHeaderTitlesSub,
457
467
  children: n
458
468
  })]
459
469
  })]
@@ -461,31 +471,31 @@ function He({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r =
461
471
  }
462
472
  //#endregion
463
473
  //#region package/common/card/CardMedia.tsx
464
- function Ue({ src: e = "", alt: t = "" }) {
474
+ function Ge({ src: e = "", alt: t = "" }) {
465
475
  return /* @__PURE__ */ V("img", {
466
- className: Be.cardMedia,
476
+ className: J.cardMedia,
467
477
  src: e,
468
478
  alt: t
469
479
  });
470
480
  }
471
481
  //#endregion
472
482
  //#region package/common/card/CardContent.tsx
473
- function We({ children: e = null }) {
483
+ function Ke({ children: e = null }) {
474
484
  return /* @__PURE__ */ V(B, { children: e });
475
485
  }
476
486
  //#endregion
477
487
  //#region package/common/card/CardActions.tsx
478
- function Ge({ className: e = "", actions: t = [], children: n = null }) {
488
+ function qe({ className: e = "", actions: t = [], children: n = null }) {
479
489
  return /* @__PURE__ */ H("div", {
480
- className: f(Be.cardActions, e),
481
- children: [t.map(({ id: e, onClick: t, label: n, styleType: r = Ee.Default }) => /* @__PURE__ */ V("div", { children: /* @__PURE__ */ V(J, {
490
+ className: f(J.cardActions, e),
491
+ children: [t.map(({ id: e, onClick: t, label: n, styleType: r = Ee.Default }) => /* @__PURE__ */ V("div", { children: /* @__PURE__ */ V(Ne, {
482
492
  onClick: t,
483
493
  styleType: r,
484
494
  children: n
485
495
  }) }, e ?? n)), n]
486
496
  });
487
497
  }
488
- var Ke = {
498
+ var Je = {
489
499
  checkbox: "checkbox_VO3c2",
490
500
  "checkbox-icon": "checkbox-icon_7O0Hm",
491
501
  checkboxIcon: "checkbox-icon_7O0Hm",
@@ -504,7 +514,7 @@ var Ke = {
504
514
  };
505
515
  //#endregion
506
516
  //#region package/common/checkbox/checkbox.tsx
507
- 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 }) {
517
+ function Ye({ 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 }) {
508
518
  let C = u(null), [, w] = d(0);
509
519
  a(() => {
510
520
  if (!g) return;
@@ -517,9 +527,9 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
517
527
  let E = g ? g.value : t;
518
528
  return /* @__PURE__ */ H("div", {
519
529
  ...S,
520
- className: f(Ke.checkbox, {
521
- [Ke.checkboxDisabled]: o,
522
- [Ke.checkboxPointer]: !p
530
+ className: f(Je.checkbox, {
531
+ [Je.checkboxDisabled]: o,
532
+ [Je.checkboxPointer]: !p
523
533
  }, r),
524
534
  style: i,
525
535
  onClick: T,
@@ -531,21 +541,21 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
531
541
  tabIndex: l,
532
542
  children: [/* @__PURE__ */ V("div", {
533
543
  title: c,
534
- className: f(Ke.checkboxIcon, y ? Ke.checkboxLoading : null, b?.icon),
544
+ className: f(Je.checkboxIcon, y ? Je.checkboxLoading : null, b?.icon),
535
545
  style: x?.icon,
536
546
  children: y ? /* @__PURE__ */ V("div", {
537
547
  style: {
538
548
  width: m,
539
549
  height: h
540
550
  },
541
- children: /* @__PURE__ */ V(Te, { className: Ke.checkboxLoadingSpinner })
551
+ children: /* @__PURE__ */ V(Te, { className: Je.checkboxLoadingSpinner })
542
552
  }) : /* @__PURE__ */ H("div", {
543
553
  style: {
544
554
  width: m,
545
555
  height: h,
546
556
  ...x?.checkmark
547
557
  },
548
- className: f(Ke.checkboxCheckmark, E && Ke.checkboxCheckmarkChecked, b?.checkmark),
558
+ className: f(Je.checkboxCheckmark, E && Je.checkboxCheckmarkChecked, b?.checkmark),
549
559
  children: [/* @__PURE__ */ V(Ae, {
550
560
  ref: C,
551
561
  manualOnly: !0,
@@ -577,10 +587,24 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
577
587
  })]
578
588
  });
579
589
  }
580
- var Je = {
590
+ //#endregion
591
+ //#region package/common/chip/chip.types.ts
592
+ var Xe = /* @__PURE__ */ function(e) {
593
+ return e.Default = "default", e.Primary = "primary", e.Info = "info", e.Warn = "warn", e.Error = "error", e;
594
+ }({}), Ze = {
581
595
  chip: "chip_rCTMl",
582
596
  "chip-clickable": "chip-clickable_WTVjG",
583
597
  chipClickable: "chip-clickable_WTVjG",
598
+ "chip-style-default": "chip-style-default_ppCDx",
599
+ chipStyleDefault: "chip-style-default_ppCDx",
600
+ "chip-style-primary": "chip-style-primary_oyE85",
601
+ chipStylePrimary: "chip-style-primary_oyE85",
602
+ "chip-style-info": "chip-style-info_GNJrm",
603
+ chipStyleInfo: "chip-style-info_GNJrm",
604
+ "chip-style-warn": "chip-style-warn_Jx3LU",
605
+ chipStyleWarn: "chip-style-warn_Jx3LU",
606
+ "chip-style-error": "chip-style-error_-Npvg",
607
+ chipStyleError: "chip-style-error_-Npvg",
584
608
  "chip-inner": "chip-inner_mfo-w",
585
609
  chipInner: "chip-inner_mfo-w",
586
610
  "chip-text": "chip-text_d1juf",
@@ -591,36 +615,40 @@ var Je = {
591
615
  chipContainer: "chip-container_oNNmF",
592
616
  "chip-container-inline": "chip-container-inline_11QHw",
593
617
  chipContainerInline: "chip-container-inline_11QHw"
618
+ }, Qe = {
619
+ default: Ze.chipStyleDefault,
620
+ primary: Ze.chipStylePrimary,
621
+ info: Ze.chipStyleInfo,
622
+ warn: Ze.chipStyleWarn,
623
+ error: Ze.chipStyleError
594
624
  };
595
- //#endregion
596
- //#region package/common/chip/chip.tsx
597
- function Ye({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon: r = !1, onClick: i, onRemove: a, ...o }) {
598
- let s = c(() => {
625
+ function $e({ className: e = "", thumbnail: t = "", text: n = "", styleType: r = Xe.Default, showRemoveIcon: i = !1, onClick: a, onRemove: o, ...s }) {
626
+ let l = c(() => {
599
627
  if (typeof t == "string" && t.startsWith("http")) return t;
600
628
  }, [t]);
601
629
  return /* @__PURE__ */ V("div", {
602
- ...o,
603
- className: f(Je.chip, i && Je.chipClickable, e),
604
- onClick: i,
630
+ ...s,
631
+ className: f(Ze.chip, Qe[r], a && Ze.chipClickable, e),
632
+ onClick: a,
605
633
  children: /* @__PURE__ */ V(Ae, {
606
- disabled: !i,
634
+ disabled: !a,
607
635
  style: { borderRadius: "inherit" },
608
636
  children: /* @__PURE__ */ H("div", {
609
- className: Je.chipInner,
637
+ className: Ze.chipInner,
610
638
  children: [
611
639
  t && /* @__PURE__ */ V("div", {
612
- className: Je.chipThumbnail,
613
- style: s ? { backgroundImage: `url(${s})` } : {},
614
- children: !s && t
640
+ className: Ze.chipThumbnail,
641
+ style: l ? { backgroundImage: `url(${l})` } : {},
642
+ children: !l && t
615
643
  }),
616
644
  /* @__PURE__ */ V("div", {
617
- className: Je.chipText,
645
+ className: Ze.chipText,
618
646
  children: n
619
647
  }),
620
- r && /* @__PURE__ */ V(Re, {
648
+ i && /* @__PURE__ */ V(ze, {
621
649
  icon: re,
622
650
  onClick: (e) => {
623
- e.stopPropagation(), a?.();
651
+ e.stopPropagation(), o?.();
624
652
  }
625
653
  })
626
654
  ]
@@ -630,14 +658,14 @@ function Ye({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon
630
658
  }
631
659
  //#endregion
632
660
  //#region package/common/chip/chipContainer.tsx
633
- function Xe({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
661
+ function et({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
634
662
  return /* @__PURE__ */ V("div", {
635
663
  ...r,
636
- className: f(Je.chipContainer, n && Je.chipContainerInline, e),
664
+ className: f(Ze.chipContainer, n && Ze.chipContainerInline, e),
637
665
  children: t
638
666
  });
639
667
  }
640
- var Ze = {
668
+ var tt = {
641
669
  floatingMenu: "floatingMenu_E1XCy",
642
670
  "floatingMenu-content": "floatingMenu-content_AmxkA",
643
671
  floatingMenuContent: "floatingMenu-content_AmxkA",
@@ -660,15 +688,15 @@ var Ze = {
660
688
  "floatingMenu-anim": "floatingMenu-anim_5KB-f",
661
689
  floatingMenuAnim: "floatingMenu-anim_5KB-f",
662
690
  showMenu: "showMenu_AprCh"
663
- }, Qe = /* @__PURE__ */ function(e) {
691
+ }, nt = /* @__PURE__ */ function(e) {
664
692
  return e.Left = "left", e.Right = "right", e.Center = "center", e;
665
693
  }({});
666
694
  //#endregion
667
695
  //#region package/common/floatingMenu/floatingMenu.tsx
668
- function $e(e) {
696
+ function rt(e) {
669
697
  return e.charAt(0).toUpperCase() + e.slice(1);
670
698
  }
671
- function et({ align: e = Qe.Left, children: t = null, content: n = null, isOpen: r = !1, onOpenChange: i = () => {}, dontCloseOnChildClick: o = !1, className: s, style: c, classNames: l, styles: p, ...m }) {
699
+ function it({ align: e = nt.Left, children: t = null, content: n = null, isOpen: r = !1, onOpenChange: i = () => {}, dontCloseOnChildClick: o = !1, className: s, style: c, classNames: l, styles: p, ...m }) {
672
700
  let h = u(null), g = u(null), _ = u(i), [v, y] = d(10), [b, x] = d(null);
673
701
  a(() => {
674
702
  _.current = i;
@@ -705,19 +733,19 @@ function et({ align: e = Qe.Left, children: t = null, content: n = null, isOpen:
705
733
  return window.addEventListener("mouseup", e), () => window.removeEventListener("mouseup", e);
706
734
  }, [r, o]), /* @__PURE__ */ H("div", {
707
735
  ...m,
708
- className: f(Ze.floatingMenu, s, l?.root),
736
+ className: f(tt.floatingMenu, s, l?.root),
709
737
  style: {
710
738
  ...c,
711
739
  ...p?.root
712
740
  },
713
741
  children: [/* @__PURE__ */ V("div", {
714
- className: f(Ze.floatingMenuContent, l?.trigger),
742
+ className: f(tt.floatingMenuContent, l?.trigger),
715
743
  style: p?.trigger,
716
744
  ref: g,
717
745
  onClick: S,
718
746
  children: t
719
747
  }), r && /* @__PURE__ */ H("div", {
720
- className: f(Ze.floatingMenuAnim, l?.menu),
748
+ className: f(tt.floatingMenuAnim, l?.menu),
721
749
  style: {
722
750
  width: `${v}px`,
723
751
  ...b && {
@@ -726,16 +754,16 @@ function et({ align: e = Qe.Left, children: t = null, content: n = null, isOpen:
726
754
  },
727
755
  ...p?.menu
728
756
  },
729
- children: [/* @__PURE__ */ V("div", { className: f(Ze.floatingMenuContainerFlag, Ze[`floatingMenuContainerFlagAlign${$e(e)}`]) }), /* @__PURE__ */ V("div", {
757
+ children: [/* @__PURE__ */ V("div", { className: f(tt.floatingMenuContainerFlag, tt[`floatingMenuContainerFlagAlign${rt(e)}`]) }), /* @__PURE__ */ V("div", {
730
758
  ref: h,
731
- className: f(Ze.floatingMenuContainer, Ze[`floatingMenuContainerAlign${$e(e)}`], l?.menuContainer),
759
+ className: f(tt.floatingMenuContainer, tt[`floatingMenuContainerAlign${rt(e)}`], l?.menuContainer),
732
760
  style: p?.menuContainer,
733
761
  children: n
734
762
  })]
735
763
  })]
736
764
  });
737
765
  }
738
- var tt = {
766
+ var at = {
739
767
  tooltipBubble: "tooltipBubble_uyev0",
740
768
  tooltipDetails: "tooltipDetails_R7N16",
741
769
  "tooltipDetails-icon": "tooltipDetails-icon_rsjns",
@@ -744,25 +772,25 @@ var tt = {
744
772
  };
745
773
  //#endregion
746
774
  //#region package/common/tooltip/tooltip.tsx
747
- function nt({ variant: e, message: t = "", isVisible: n = !0, tooltipPosition: r, onClick: i }) {
775
+ function ot({ variant: e, message: t = "", isVisible: n = !0, tooltipPosition: r, onClick: i }) {
748
776
  let [a, o] = d(!1);
749
777
  return e === "info" ? n ? /* @__PURE__ */ V("div", {
750
- className: f(tt.tooltipBubble, r),
778
+ className: f(at.tooltipBubble, r),
751
779
  onClick: i,
752
780
  children: t
753
781
  }) : null : e === "details" ? /* @__PURE__ */ H("div", {
754
- className: tt.tooltipDetails,
782
+ className: at.tooltipDetails,
755
783
  children: [/* @__PURE__ */ V("span", {
756
- className: tt.tooltipDetailsIcon,
784
+ className: at.tooltipDetailsIcon,
757
785
  onMouseEnter: () => o(!0),
758
786
  onMouseLeave: () => o(!1),
759
787
  children: "?"
760
788
  }), a && /* @__PURE__ */ V("div", {
761
- className: f(tt.tooltipBubble, r),
789
+ className: f(at.tooltipBubble, r),
762
790
  children: t
763
791
  })]
764
792
  }) : e === "error" && n ? /* @__PURE__ */ V("div", {
765
- className: f(tt.tooltipError, r),
793
+ className: f(at.tooltipError, r),
766
794
  onClick: i,
767
795
  children: t
768
796
  }) : null;
@@ -844,8 +872,8 @@ var Y = {
844
872
  }({});
845
873
  //#endregion
846
874
  //#region package/common/input/input.tsx
847
- function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: m = null, onChange: h = () => {}, onFocus: g = null, onBlur: _ = null, onMouseEnter: v = null, onMouseLeave: y = null, isUppercase: b = !1, isRequired: x = !1, tabIndex: S = 0, type: C = void 0, isRow: w = !1, onIconClick: T = null, parse: k = null, formValidator: A = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: I = !1, showCancel: L = !1, onClearClicked: R, min: te = null, max: ne = null, placeholder: re = "", useMatLabelStyle: B = !0, autoComplete: ie = null, onClick: ae = () => null, readOnly: oe = !1, customInput: U, alwaysShowCancel: se = !1, multiline: W = !1, rows: ce, autoResize: le = !1, classNames: ue, styles: G, disabled: K = !1, ...de }) {
848
- let [fe, pe] = d(!1), [me, he] = d(!1), [ge, _e] = d(!1), [, ve] = d(0), ye = u(null), be = u(A), xe = i(() => {
875
+ function st({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: m = null, onChange: h = () => {}, onFocus: g = null, onBlur: _ = null, onMouseEnter: v = null, onMouseLeave: y = null, isUppercase: b = !1, isRequired: x = !1, tabIndex: S = 0, type: C = void 0, isRow: w = !1, onIconClick: T = null, parse: k = null, formValidator: A = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: I = !1, showCancel: te = !1, onClearClicked: L, min: R = null, max: ne = null, placeholder: re = "", useMatLabelStyle: B = !0, autoComplete: ie = null, onClick: ae = () => null, readOnly: oe = !1, customInput: U, alwaysShowCancel: se = !1, multiline: W = !1, rows: ce, autoResize: le = !1, classNames: ue, styles: de, disabled: G = !1, ...fe }) {
876
+ let [K, pe] = d(!1), [me, he] = d(!1), [ge, _e] = d(!1), [, ve] = d(0), ye = u(null), be = u(A), xe = i(() => {
849
877
  let e = ye.current;
850
878
  !e || !le || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
851
879
  }, [le]);
@@ -889,9 +917,9 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
889
917
  }, Me = {
890
918
  className: f(Y.inputFieldIcon, Y.inputFieldIconPassword),
891
919
  onClick: () => _e(!ge)
892
- }, J = Se(), Ne = n;
893
- Ne && q() && (Ne = `${Ne} *`);
894
- let Pe = A ? A.value : l, Fe = B && (fe || Pe || C === X.Date);
920
+ }, Ne = Se(), Pe = n;
921
+ Pe && q() && (Pe = `${Pe} *`);
922
+ let Fe = A ? A.value : l, Ie = B && (K || Fe || C === X.Date);
895
923
  return /* @__PURE__ */ H("div", {
896
924
  className: f(Y.input, s),
897
925
  style: c,
@@ -902,29 +930,29 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
902
930
  [Y.inputLabelColumn]: !w,
903
931
  [Y.inputLabelInBorder]: I
904
932
  }),
905
- style: G?.label,
933
+ style: de?.label,
906
934
  children: [
907
- Ne && !B ? /* @__PURE__ */ H("span", {
935
+ Pe && !B ? /* @__PURE__ */ H("span", {
908
936
  className: Y.inputLabelText,
909
- children: [`${Ne} `, q() ? /* @__PURE__ */ V("span", {
937
+ children: [`${Pe} `, q() ? /* @__PURE__ */ V("span", {
910
938
  className: f(Y.isRequired),
911
939
  children: "\xA0 *"
912
940
  }) : null]
913
941
  }) : null,
914
942
  N && /* @__PURE__ */ V("div", {
915
943
  className: f(Y.inputUpperRightLabel, ue?.upperRightLabel),
916
- style: G?.upperRightLabel,
944
+ style: de?.upperRightLabel,
917
945
  children: N
918
946
  }),
919
947
  /* @__PURE__ */ H("div", {
920
948
  className: f(Y.inputContainer, { [Y.inputContainerMultiline]: W }, ue?.container),
921
- style: G?.container,
949
+ style: de?.container,
922
950
  onMouseEnter: Ce,
923
951
  onMouseLeave: we,
924
952
  children: [
925
953
  m,
926
954
  e.cloneElement(U || V(W ? "textarea" : "input", {}), {
927
- ...de,
955
+ ...fe,
928
956
  className: f(Y.inputField, {
929
957
  [Y.inputFieldUppercase]: b,
930
958
  [Y.inputFieldDate]: C === X.Date,
@@ -946,49 +974,49 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
946
974
  autoComplete: ie,
947
975
  onClick: ae,
948
976
  readOnly: oe,
949
- disabled: K,
977
+ disabled: G,
950
978
  ...!W && {
951
979
  type: Oe(),
952
- min: te,
980
+ min: R,
953
981
  max: ne
954
982
  },
955
983
  ...W && ce !== void 0 && { rows: ce }
956
984
  }),
957
985
  M && /* @__PURE__ */ V("div", {
958
986
  className: f(Y.inputFieldSuffix, ue?.suffix),
959
- style: G?.suffix,
987
+ style: de?.suffix,
960
988
  children: M
961
989
  })
962
990
  ]
963
991
  }),
964
992
  /* @__PURE__ */ V("fieldset", {
965
993
  className: f(Y.inputFieldset, ue?.fieldset, {
966
- [Y.inputContainerBorderFocused]: fe,
967
- [Y.inputContainerBorderSearchFocused]: C === X.Search && (fe || l),
968
- [Y.inputContainerBorderInvalid]: J,
969
- [Y.inputContainerBorderError]: J
994
+ [Y.inputContainerBorderFocused]: K,
995
+ [Y.inputContainerBorderSearchFocused]: C === X.Search && (K || l),
996
+ [Y.inputContainerBorderInvalid]: Ne,
997
+ [Y.inputContainerBorderError]: Ne
970
998
  }),
971
- style: G?.fieldset,
999
+ style: de?.fieldset,
972
1000
  children: /* @__PURE__ */ V("legend", {
973
- className: f(Y.inputFieldsetLegend, { [Y.inputFieldsetLegendActive]: Fe }),
974
- children: /* @__PURE__ */ V("span", { children: Ne })
1001
+ className: f(Y.inputFieldsetLegend, { [Y.inputFieldsetLegendActive]: Ie }),
1002
+ children: /* @__PURE__ */ V("span", { children: Pe })
975
1003
  })
976
1004
  }),
977
1005
  B && n && /* @__PURE__ */ V("div", {
978
1006
  className: f(Y.inputMatLabel, {
979
- [Y.inputMatLabelFloating]: Fe,
980
- [Y.inputMatLabelMultiline]: W && !Fe
1007
+ [Y.inputMatLabelFloating]: Ie,
1008
+ [Y.inputMatLabelMultiline]: W && !Ie
981
1009
  }),
982
- children: Ne
1010
+ children: Pe
983
1011
  }),
984
1012
  B && re && /* @__PURE__ */ V("div", {
985
- className: f(Y.inputPlaceholder, fe && !Pe && Y.inputPlaceholderShown, W && Y.inputPlaceholderMultiline),
1013
+ className: f(Y.inputPlaceholder, K && !Fe && Y.inputPlaceholderShown, W && Y.inputPlaceholderMultiline),
986
1014
  children: re
987
1015
  }),
988
- /* @__PURE__ */ V(nt, {
1016
+ /* @__PURE__ */ V(ot, {
989
1017
  variant: "error",
990
1018
  message: A ? A.getCurrentErrorMessage() : r || "",
991
- isVisible: J && (fe || me)
1019
+ isVisible: Ne && (K || me)
992
1020
  })
993
1021
  ]
994
1022
  }),
@@ -1012,17 +1040,17 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
1012
1040
  icon: ge ? O : D,
1013
1041
  ...Me
1014
1042
  }),
1015
- (L && l && (fe || me) || se) && /* @__PURE__ */ V(p, {
1043
+ (te && l && (K || me) || se) && /* @__PURE__ */ V(p, {
1016
1044
  icon: z,
1017
1045
  className: Y.inputFieldIcon,
1018
- onClick: R ?? void 0,
1046
+ onClick: L ?? void 0,
1019
1047
  onMouseEnter: () => he(!0),
1020
1048
  onMouseLeave: () => he(!1)
1021
1049
  })
1022
1050
  ]
1023
1051
  });
1024
1052
  }
1025
- var it = {
1053
+ var ct = {
1026
1054
  colorPicker: "colorPicker_Ts3an",
1027
1055
  swatch: "swatch_NW78g",
1028
1056
  swatchHex: "swatchHex_j7-i5",
@@ -1037,10 +1065,10 @@ var it = {
1037
1065
  };
1038
1066
  //#endregion
1039
1067
  //#region package/common/colorPicker/colorPicker.tsx
1040
- function at(e) {
1068
+ function lt(e) {
1041
1069
  return /^#[0-9a-fA-F]{6}$/.test(e) || /^#[0-9a-fA-F]{8}$/.test(e);
1042
1070
  }
1043
- function ot(e) {
1071
+ function ut(e) {
1044
1072
  return /^#[0-9a-fA-F]{8}$/.test(e) ? {
1045
1073
  hex6: e.slice(0, 7),
1046
1074
  alpha: Math.round(parseInt(e.slice(7, 9), 16) / 255 * 100)
@@ -1049,13 +1077,13 @@ function ot(e) {
1049
1077
  alpha: 100
1050
1078
  };
1051
1079
  }
1052
- function st(e, t, n) {
1080
+ function dt(e, t, n) {
1053
1081
  return !n || t >= 100 ? e : `${e}${Math.round(t / 100 * 255).toString(16).padStart(2, "0")}`;
1054
1082
  }
1055
- function ct(e, t) {
1083
+ function ft(e, t) {
1056
1084
  return `rgba(${parseInt(e.slice(1, 3), 16)}, ${parseInt(e.slice(3, 5), 16)}, ${parseInt(e.slice(5, 7), 16)}, ${t / 100})`;
1057
1085
  }
1058
- function lt(e) {
1086
+ function pt(e) {
1059
1087
  let t = parseInt(e.slice(1, 3), 16) / 255, n = parseInt(e.slice(3, 5), 16) / 255, r = parseInt(e.slice(5, 7), 16) / 255, i = Math.max(t, n, r), a = i - Math.min(t, n, r), o = 0;
1060
1088
  a !== 0 && (o = i === t ? (n - r) / a % 6 : i === n ? (r - t) / a + 2 : (t - n) / a + 4, o = Math.round(o * 60), o < 0 && (o += 360));
1061
1089
  let s = i === 0 ? 0 : Math.round(a / i * 100), c = Math.round(i * 100);
@@ -1065,13 +1093,13 @@ function lt(e) {
1065
1093
  v: c
1066
1094
  };
1067
1095
  }
1068
- function ut(e, t, n) {
1096
+ function mt(e, t, n) {
1069
1097
  let r = t / 100, i = n / 100, a = i * r, o = a * (1 - Math.abs(e / 60 % 2 - 1)), s = i - a, c = 0, l = 0, u = 0;
1070
1098
  e < 60 ? (c = a, l = o, u = 0) : e < 120 ? (c = o, l = a, u = 0) : e < 180 ? (c = 0, l = a, u = o) : e < 240 ? (c = 0, l = o, u = a) : e < 300 ? (c = o, l = 0, u = a) : (c = a, l = 0, u = o);
1071
1099
  let d = (e) => Math.round((e + s) * 255).toString(16).padStart(2, "0");
1072
1100
  return `#${d(c)}${d(l)}${d(u)}`;
1073
1101
  }
1074
- function dt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1102
+ function ht({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1075
1103
  let [r, i] = d(e);
1076
1104
  a(() => {
1077
1105
  i(e);
@@ -1079,12 +1107,12 @@ function dt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1079
1107
  function o(e) {
1080
1108
  i(e);
1081
1109
  let n = e.startsWith("#") ? e : `#${e}`;
1082
- at(n) && t(n);
1110
+ lt(n) && t(n);
1083
1111
  }
1084
1112
  function s() {
1085
- at(r.startsWith("#") ? r : `#${r}`) || i(e);
1113
+ lt(r.startsWith("#") ? r : `#${r}`) || i(e);
1086
1114
  }
1087
- return n ? /* @__PURE__ */ V(rt, {
1115
+ return n ? /* @__PURE__ */ V(st, {
1088
1116
  value: r,
1089
1117
  onChange: (e) => o(e),
1090
1118
  onBlur: s
@@ -1093,11 +1121,11 @@ function dt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1093
1121
  value: r,
1094
1122
  onChange: (e) => o(e.target.value),
1095
1123
  onBlur: s,
1096
- className: it.hexInput,
1124
+ className: ct.hexInput,
1097
1125
  spellCheck: !1
1098
1126
  });
1099
1127
  }
1100
- function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, onAlphaChange: o, showInput: s = !0, showAlpha: c = !1 }) {
1128
+ function gt({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, onAlphaChange: o, showInput: s = !0, showAlpha: c = !1 }) {
1101
1129
  let l = u(null);
1102
1130
  function d(e) {
1103
1131
  let t = l.current.getBoundingClientRect(), n = Math.max(0, Math.min(1, (e.clientX - t.left) / t.width)), r = Math.max(0, Math.min(1, (e.clientY - t.top) / t.height));
@@ -1118,20 +1146,20 @@ function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1118
1146
  window.addEventListener("mousemove", r), window.addEventListener("mouseup", i);
1119
1147
  }
1120
1148
  function p(e) {
1121
- let { hex6: t, alpha: n } = ot(e), { h: r, s, v: l } = lt(t);
1149
+ let { hex6: t, alpha: n } = ut(e), { h: r, s, v: l } = pt(t);
1122
1150
  i(r), a(s, l), c && o(n);
1123
1151
  }
1124
- let m = ut(e, t, n), h = c ? st(m, r, !0) : m;
1152
+ let m = mt(e, t, n), h = c ? dt(m, r, !0) : m;
1125
1153
  return /* @__PURE__ */ H("div", {
1126
- className: it.panel,
1154
+ className: ct.panel,
1127
1155
  children: [
1128
1156
  /* @__PURE__ */ H("div", {
1129
1157
  ref: l,
1130
- className: it.gradientArea,
1158
+ className: ct.gradientArea,
1131
1159
  style: { "--hue": e },
1132
1160
  onMouseDown: f,
1133
- children: [/* @__PURE__ */ V("div", { className: it.gradientOverlay }), /* @__PURE__ */ V("div", {
1134
- className: it.cursor,
1161
+ children: [/* @__PURE__ */ V("div", { className: ct.gradientOverlay }), /* @__PURE__ */ V("div", {
1162
+ className: ct.cursor,
1135
1163
  style: {
1136
1164
  left: `${t}%`,
1137
1165
  top: `${100 - n}%`
@@ -1144,7 +1172,7 @@ function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1144
1172
  max: 359,
1145
1173
  value: e,
1146
1174
  onChange: (e) => i(Number(e.target.value)),
1147
- className: it.hueSlider
1175
+ className: ct.hueSlider
1148
1176
  }),
1149
1177
  c && /* @__PURE__ */ V("input", {
1150
1178
  type: "range",
@@ -1152,19 +1180,19 @@ function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, o
1152
1180
  max: 100,
1153
1181
  value: r,
1154
1182
  onChange: (e) => o(Number(e.target.value)),
1155
- className: it.alphaSlider,
1183
+ className: ct.alphaSlider,
1156
1184
  style: { "--alpha-color": m }
1157
1185
  }),
1158
- s && /* @__PURE__ */ V(dt, {
1186
+ s && /* @__PURE__ */ V(ht, {
1159
1187
  hex: h,
1160
1188
  onChange: p
1161
1189
  })
1162
1190
  ]
1163
1191
  });
1164
1192
  }
1165
- var pt = "#3b82f6";
1166
- function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showAlpha: i = !1, inline: a = !1, ...o }) {
1167
- let [s, c] = d(!1), { hex6: l, alpha: p } = ot(at(t) ? t : pt), m = lt(l), [h, g] = d({
1193
+ var _t = "#3b82f6";
1194
+ function vt({ className: e, value: t = _t, onChange: n, showInput: r = !1, showAlpha: i = !1, inline: a = !1, ...o }) {
1195
+ let [s, c] = d(!1), { hex6: l, alpha: p } = ut(lt(t) ? t : _t), m = pt(l), [h, g] = d({
1168
1196
  h: m.h,
1169
1197
  s: m.s,
1170
1198
  v: m.v,
@@ -1172,9 +1200,9 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1172
1200
  }), _ = u(h), [v, y] = d(t);
1173
1201
  if (t !== v) {
1174
1202
  y(t);
1175
- let { hex6: e, alpha: n } = ot(at(t) ? t : pt);
1176
- if (e !== ut(h.h, h.s, h.v) || n !== h.a) {
1177
- let t = lt(e);
1203
+ let { hex6: e, alpha: n } = ut(lt(t) ? t : _t);
1204
+ if (e !== mt(h.h, h.s, h.v) || n !== h.a) {
1205
+ let t = pt(e);
1178
1206
  g({
1179
1207
  h: t.h,
1180
1208
  s: t.s,
@@ -1185,7 +1213,7 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1185
1213
  }
1186
1214
  let { h: b, s: x, v: S, a: C } = h;
1187
1215
  function w(e, t, r, a) {
1188
- n?.(st(ut(e, t, r), a, i));
1216
+ n?.(dt(mt(e, t, r), a, i));
1189
1217
  }
1190
1218
  function T(e) {
1191
1219
  _.current.h = e, g((t) => ({
@@ -1206,7 +1234,7 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1206
1234
  a: e
1207
1235
  })), w(_.current.h, _.current.s, _.current.v, e);
1208
1236
  }
1209
- let O = ut(b, x, S), k = i ? ct(O, C) : O, A = st(O, C, i), j = {
1237
+ let O = mt(b, x, S), k = i ? ft(O, C) : O, A = dt(O, C, i), j = {
1210
1238
  hue: b,
1211
1239
  sat: x,
1212
1240
  val: S,
@@ -1218,38 +1246,38 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1218
1246
  };
1219
1247
  return a ? /* @__PURE__ */ V("div", {
1220
1248
  ...o,
1221
- className: f(it.colorPicker, e),
1222
- children: /* @__PURE__ */ V(ft, {
1249
+ className: f(ct.colorPicker, e),
1250
+ children: /* @__PURE__ */ V(gt, {
1223
1251
  ...j,
1224
1252
  showInput: r
1225
1253
  })
1226
1254
  }) : /* @__PURE__ */ H("div", {
1227
1255
  ...o,
1228
- className: f(it.colorPicker, e),
1229
- children: [/* @__PURE__ */ V(et, {
1256
+ className: f(ct.colorPicker, e),
1257
+ children: [/* @__PURE__ */ V(it, {
1230
1258
  isOpen: s,
1231
1259
  onOpenChange: c,
1232
1260
  dontCloseOnChildClick: !0,
1233
- align: Qe.Left,
1234
- content: /* @__PURE__ */ V(ft, { ...j }),
1235
- children: /* @__PURE__ */ H(Ie, {
1236
- className: it.swatch,
1261
+ align: nt.Left,
1262
+ content: /* @__PURE__ */ V(gt, { ...j }),
1263
+ children: /* @__PURE__ */ H(Le, {
1264
+ className: ct.swatch,
1237
1265
  children: [/* @__PURE__ */ V("div", {
1238
- className: it.swatchFill,
1266
+ className: ct.swatchFill,
1239
1267
  style: { background: k }
1240
1268
  }), /* @__PURE__ */ V("span", {
1241
- className: it.swatchHex,
1269
+ className: ct.swatchHex,
1242
1270
  children: A
1243
1271
  })]
1244
1272
  })
1245
- }), r && /* @__PURE__ */ V(dt, {
1273
+ }), r && /* @__PURE__ */ V(ht, {
1246
1274
  hex: A,
1247
1275
  onChange: (e) => n?.(e),
1248
1276
  useInputComponent: !0
1249
1277
  })]
1250
1278
  });
1251
1279
  }
1252
- var ht = {
1280
+ var yt = {
1253
1281
  modal: "modal_L-Fkd",
1254
1282
  slideIn: "slideIn_RVIHR",
1255
1283
  fadeIn: "fadeIn_XSuIE",
@@ -1264,26 +1292,26 @@ var ht = {
1264
1292
  };
1265
1293
  //#endregion
1266
1294
  //#region package/common/modal/modal.tsx
1267
- function gt({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = () => null, className: i = "", style: o, hideHeader: s = !1, classNames: c, styles: l }) {
1295
+ function bt({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = () => null, className: i = "", style: o, hideHeader: s = !1, classNames: c, styles: l }) {
1268
1296
  let [u, m] = d(n), [h, g] = d(n);
1269
1297
  return a(() => {
1270
1298
  n ? (m(n), setTimeout(() => g(!0), 1)) : (g(!1), setTimeout(() => m(n), 300));
1271
- }, [n]), u ? /* @__PURE__ */ V(ze, { children: /* @__PURE__ */ H("div", {
1272
- className: f(ht.modalContainer, c?.container),
1299
+ }, [n]), u ? /* @__PURE__ */ V(Be, { children: /* @__PURE__ */ H("div", {
1300
+ className: f(yt.modalContainer, c?.container),
1273
1301
  style: l?.container,
1274
1302
  children: [/* @__PURE__ */ V("div", {
1275
- className: f(ht.modalWrapper, h && ht.modalWrapperShown, c?.backdrop),
1303
+ className: f(yt.modalWrapper, h && yt.modalWrapperShown, c?.backdrop),
1276
1304
  style: l?.backdrop,
1277
1305
  onClick: r
1278
1306
  }), h && /* @__PURE__ */ H("div", {
1279
- className: f(ht.modal, h && ht.modalShown, i, c?.modal),
1307
+ className: f(yt.modal, h && yt.modalShown, i, c?.modal),
1280
1308
  style: {
1281
1309
  ...o,
1282
1310
  ...l?.modal
1283
1311
  },
1284
1312
  onClick: (e) => e.stopPropagation(),
1285
1313
  children: [!s && /* @__PURE__ */ H("div", {
1286
- className: f(ht.modalHeader, c?.header),
1314
+ className: f(yt.modalHeader, c?.header),
1287
1315
  style: l?.header,
1288
1316
  children: [/* @__PURE__ */ V("div", {
1289
1317
  className: c?.title,
@@ -1301,7 +1329,7 @@ function gt({ children: e = null, title: t = "", isOpen: n = !1, onClose: r = ()
1301
1329
  }
1302
1330
  //#endregion
1303
1331
  //#region package/common/confirmModal/confirmModal.tsx
1304
- function _t({ children: e = null, className: t = "", onClose: n = () => {}, onConfirm: r = () => {}, title: i = "", content: a = null, isOpen: o = void 0, actionButtonsProps: s = {} }) {
1332
+ function xt({ children: e = null, className: t = "", onClose: n = () => {}, onConfirm: r = () => {}, title: i = "", content: a = null, isOpen: o = void 0, actionButtonsProps: s = {} }) {
1305
1333
  let [c, l] = d(!1), [u, f] = d(!1);
1306
1334
  function p(e = !1) {
1307
1335
  l(!1), n(e);
@@ -1314,12 +1342,12 @@ function _t({ children: e = null, className: t = "", onClose: n = () => {}, onCo
1314
1342
  f(!1);
1315
1343
  }
1316
1344
  }
1317
- let h = /* @__PURE__ */ H(gt, {
1345
+ let h = /* @__PURE__ */ H(bt, {
1318
1346
  title: i,
1319
1347
  isOpen: o === void 0 ? c : o,
1320
1348
  onClose: () => p(),
1321
1349
  className: e ? void 0 : t,
1322
- children: [a, /* @__PURE__ */ V(Ne, {
1350
+ children: [a, /* @__PURE__ */ V(Pe, {
1323
1351
  onClose: () => p(),
1324
1352
  onSubmit: m,
1325
1353
  submitLabel: "Confirm",
@@ -1335,7 +1363,7 @@ function _t({ children: e = null, className: t = "", onClose: n = () => {}, onCo
1335
1363
  }), h]
1336
1364
  }) : h;
1337
1365
  }
1338
- var vt = {
1366
+ var St = {
1339
1367
  "datePickerMonth-item": "datePickerMonth-item_30WWy",
1340
1368
  datePickerMonthItem: "datePickerMonth-item_30WWy",
1341
1369
  "datePickerMonth-content": "datePickerMonth-content_9bbSs",
@@ -1354,7 +1382,7 @@ var vt = {
1354
1382
  datePickerMonthDayDisabled: "datePickerMonth-day-disabled_4t0Ci",
1355
1383
  "datePickerMonth-placeholder": "datePickerMonth-placeholder_gy1Yx",
1356
1384
  datePickerMonthPlaceholder: "datePickerMonth-placeholder_gy1Yx"
1357
- }, yt = [
1385
+ }, Ct = [
1358
1386
  "de_AT",
1359
1387
  "de_CH",
1360
1388
  "de_DE",
@@ -1362,10 +1390,10 @@ var vt = {
1362
1390
  "en_GB",
1363
1391
  "de",
1364
1392
  "en"
1365
- ], bt = "en_US", xt = () => {
1366
- let e = navigator.languages[0]?.replace("-", "_") || bt;
1367
- return yt.includes(e) ? e === "en_GB" || e === "en" ? "en_US" : e === "de" ? "de_DE" : e : bt;
1368
- }, St = (e) => {
1393
+ ], wt = "en_US", Tt = () => {
1394
+ let e = navigator.languages[0]?.replace("-", "_") || wt;
1395
+ return Ct.includes(e) ? e === "en_GB" || e === "en" ? "en_US" : e === "de" ? "de_DE" : e : wt;
1396
+ }, Et = (e) => {
1369
1397
  switch (e) {
1370
1398
  case "en_US":
1371
1399
  case "en_GB": return "en";
@@ -1374,47 +1402,47 @@ var vt = {
1374
1402
  case "de_AT": return "de";
1375
1403
  default: return "de";
1376
1404
  }
1377
- }, Ct = xt();
1378
- async function wt(e) {
1379
- Ct = e;
1405
+ }, Dt = Tt();
1406
+ async function Ot(e) {
1407
+ Dt = e;
1380
1408
  }
1381
- function Tt(e = "_") {
1382
- return Ct.replace("_", e);
1409
+ function kt(e = "_") {
1410
+ return Dt.replace("_", e);
1383
1411
  }
1384
1412
  //#endregion
1385
1413
  //#region package/common/datePicker/dateFunctions.ts
1386
- function Et(e, t) {
1414
+ function At(e, t) {
1387
1415
  return new Date(t, e, 0).getDate();
1388
1416
  }
1389
- function Dt(e, t, n) {
1417
+ function jt(e, t, n) {
1390
1418
  return new Date(Date.UTC(n, t - 1, e));
1391
1419
  }
1392
- function Ot(e, t, n, r, i = !1) {
1420
+ function Mt(e, t, n, r, i = !1) {
1393
1421
  return new Date(Date.UTC(t, n - 1, r)).toLocaleDateString(e, { month: i ? "short" : "long" });
1394
1422
  }
1395
- function kt(e = Tt("-")) {
1396
- return Array.from(Array(12).keys()).map((t) => Ot(e, 2023, t + 1, 1));
1423
+ function Nt(e = kt("-")) {
1424
+ return Array.from(Array(12).keys()).map((t) => Mt(e, 2023, t + 1, 1));
1397
1425
  }
1398
- function At(e, t = !0) {
1426
+ function Pt(e, t = !0) {
1399
1427
  let n = new Date(Date.UTC(2023, 3, 10)), r = [];
1400
1428
  for (let i = 0; i < 7; i++) r.push(n.toLocaleDateString(e, { weekday: t ? "short" : "long" })), n.setDate(n.getDate() + 1);
1401
1429
  return r;
1402
1430
  }
1403
- function jt(e, t) {
1431
+ function Ft(e, t) {
1404
1432
  return new Date(Date.UTC(t, e - 1, 1)).getDay() || 7;
1405
1433
  }
1406
- function Mt(e) {
1434
+ function It(e) {
1407
1435
  return {
1408
1436
  day: e.getDate(),
1409
1437
  month: e.getMonth() + 1,
1410
1438
  year: e.getFullYear()
1411
1439
  };
1412
1440
  }
1413
- function Nt(e) {
1441
+ function Lt(e) {
1414
1442
  let t = e.getDate(), n = e.getMonth() + 1, r = e.getFullYear();
1415
1443
  return `${t < 10 ? `0${t}` : t}.${n < 10 ? `0${n}` : n}.${r}`;
1416
1444
  }
1417
- function Pt(e, t, n) {
1445
+ function Rt(e, t, n) {
1418
1446
  let r = e, i = n;
1419
1447
  return r[0] !== "_" && (r[0] > "3" ? (r = `0${r[0]}${t.substring(2)}`, i = {
1420
1448
  start: 3,
@@ -1432,18 +1460,18 @@ function Pt(e, t, n) {
1432
1460
  }
1433
1461
  //#endregion
1434
1462
  //#region package/common/datePicker/components/datePickerMonth/datePickerMonth.tsx
1435
- function Ft(e, t, n, r, i) {
1436
- let { day: a, month: o, year: s } = r ? Mt(r) : {
1463
+ function zt(e, t, n, r, i) {
1464
+ let { day: a, month: o, year: s } = r ? It(r) : {
1437
1465
  day: void 0,
1438
1466
  month: void 0,
1439
1467
  year: void 0
1440
- }, { day: c, month: l, year: u } = i ? Mt(i) : {
1468
+ }, { day: c, month: l, year: u } = i ? It(i) : {
1441
1469
  day: void 0,
1442
1470
  month: void 0,
1443
1471
  year: void 0
1444
- }, d = Dt(e, t, n), f = e === a && t === o && n === s, p = e === c && t === l && n === u, m = !1;
1472
+ }, d = jt(e, t, n), f = e === a && t === o && n === s, p = e === c && t === l && n === u, m = !1;
1445
1473
  if (a !== void 0 && o !== void 0 && s !== void 0 && c !== void 0 && l !== void 0 && u !== void 0) {
1446
- let e = Dt(a, o, s), t = Dt(c, l, u);
1474
+ let e = jt(a, o, s), t = jt(c, l, u);
1447
1475
  m = d.getTime() >= e.getTime() && d.getTime() <= t.getTime();
1448
1476
  }
1449
1477
  return {
@@ -1452,54 +1480,54 @@ function Ft(e, t, n, r, i) {
1452
1480
  isEndDate: p
1453
1481
  };
1454
1482
  }
1455
- function It(e, t, n, r, i) {
1456
- let a = Dt(e, t, n);
1483
+ function Bt(e, t, n, r, i) {
1484
+ let a = jt(e, t, n);
1457
1485
  if (r) {
1458
- let { day: e, month: t, year: n } = Mt(r);
1459
- if (a < Dt(e, t, n)) return !0;
1486
+ let { day: e, month: t, year: n } = It(r);
1487
+ if (a < jt(e, t, n)) return !0;
1460
1488
  }
1461
1489
  if (i) {
1462
- let { day: e, month: t, year: n } = Mt(i);
1463
- if (a > Dt(e, t, n)) return !0;
1490
+ let { day: e, month: t, year: n } = It(i);
1491
+ if (a > jt(e, t, n)) return !0;
1464
1492
  }
1465
1493
  return !1;
1466
1494
  }
1467
- function Lt(e, t, n) {
1468
- let { day: r, month: i, year: a } = Mt(/* @__PURE__ */ new Date());
1495
+ function Vt(e, t, n) {
1496
+ let { day: r, month: i, year: a } = It(/* @__PURE__ */ new Date());
1469
1497
  return e === r && t === i && n === a;
1470
1498
  }
1471
- function Rt({ className: e = "", month: t = (/* @__PURE__ */ new Date()).getMonth() + 1, year: n = (/* @__PURE__ */ new Date()).getFullYear(), onSelect: r = () => null, selectionStart: i, selectionEnd: a, minDate: o = null, maxDate: s = null }) {
1472
- let c = Tt("-"), l = Et(t, n), u = jt(t, n);
1499
+ function Ht({ 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 }) {
1500
+ let c = kt("-"), l = At(t, n), u = Ft(t, n);
1473
1501
  return /* @__PURE__ */ V("div", {
1474
- className: f(vt.datePickerMonth, e),
1502
+ className: f(St.datePickerMonth, e),
1475
1503
  children: /* @__PURE__ */ H("div", {
1476
- className: f(vt.datePickerMonthContent),
1504
+ className: f(St.datePickerMonthContent),
1477
1505
  children: [
1478
- At(c).map((e, t) => /* @__PURE__ */ V("div", { children: e }, t)),
1479
- Array.from(Array(u - 1).keys()).map((e) => /* @__PURE__ */ V("div", { className: f(vt.datePickerMonthItem, vt.datePickerMonthPlaceholder) }, e)),
1506
+ Pt(c).map((e, t) => /* @__PURE__ */ V("div", { children: e }, t)),
1507
+ Array.from(Array(u - 1).keys()).map((e) => /* @__PURE__ */ V("div", { className: f(St.datePickerMonthItem, St.datePickerMonthPlaceholder) }, e)),
1480
1508
  Array.from(Array(l).keys()).map((e) => {
1481
- let c = e + 1, l = Ft(c, t, n, i, a), u = It(c, t, n, o, s), d = Lt(c, t, n);
1482
- return /* @__PURE__ */ V(Ie, {
1483
- onClick: () => u ? null : r(Dt(c, t, n)),
1484
- className: f(vt.datePickerMonthDay, vt.datePickerMonthItem, {
1485
- [vt.datePickerMonthDaySelected]: l.isInRange,
1486
- [vt.datePickerMonthDaySelectedStart]: l.isStartDate,
1487
- [vt.datePickerMonthDaySelectedEnd]: l.isEndDate,
1488
- [vt.datePickerMonthDayDisabled]: u,
1489
- [vt.datePickerMonthDayToday]: d
1509
+ let c = e + 1, l = zt(c, t, n, i, a), u = Bt(c, t, n, o, s), d = Vt(c, t, n);
1510
+ return /* @__PURE__ */ V(Le, {
1511
+ onClick: () => u ? null : r(jt(c, t, n)),
1512
+ className: f(St.datePickerMonthDay, St.datePickerMonthItem, {
1513
+ [St.datePickerMonthDaySelected]: l.isInRange,
1514
+ [St.datePickerMonthDaySelectedStart]: l.isStartDate,
1515
+ [St.datePickerMonthDaySelectedEnd]: l.isEndDate,
1516
+ [St.datePickerMonthDayDisabled]: u,
1517
+ [St.datePickerMonthDayToday]: d
1490
1518
  }),
1491
1519
  children: c
1492
1520
  }, c);
1493
1521
  }),
1494
1522
  Array.from(Array(42 - (u + l - 1)).keys()).map((e) => /* @__PURE__ */ V("div", {
1495
- className: f(vt.datePickerMonthItem, vt.datePickerMonthPlaceholder),
1523
+ className: f(St.datePickerMonthItem, St.datePickerMonthPlaceholder),
1496
1524
  children: "\xA0"
1497
1525
  }, e))
1498
1526
  ]
1499
1527
  })
1500
1528
  });
1501
1529
  }
1502
- var zt = {
1530
+ var Ut = {
1503
1531
  infiniteBlock: "infiniteBlock_dFv-h",
1504
1532
  "spinner-wrapper": "spinner-wrapper_hsgWz",
1505
1533
  spinnerWrapper: "spinner-wrapper_hsgWz",
@@ -1507,7 +1535,7 @@ var zt = {
1507
1535
  };
1508
1536
  //#endregion
1509
1537
  //#region package/common/infiniteBlock/infiniteBlock.tsx
1510
- function Bt(e, t) {
1538
+ function Wt(e, t) {
1511
1539
  let n = e;
1512
1540
  for (; n.props.children !== null && typeof n.props.children == "object" && !Array.isArray(n.props.children);) n = n.props.children;
1513
1541
  let r = n.props.children;
@@ -1520,11 +1548,11 @@ function Bt(e, t) {
1520
1548
  }
1521
1549
  return String(r).toLowerCase().startsWith(t);
1522
1550
  }
1523
- function Vt(e, t, n) {
1551
+ function Gt(e, t, n) {
1524
1552
  let r = e + t;
1525
1553
  return r === n ? 0 : r < -1 ? n - 1 : r;
1526
1554
  }
1527
- function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1, setHighlightedIndex: o = () => null }) {
1555
+ function Kt({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1, setHighlightedIndex: o = () => null }) {
1528
1556
  let s = u(null), c = u(!1), [l, p] = d(!1), m = u(-1), h = u(null), g = i(() => {
1529
1557
  let e = s.current;
1530
1558
  if (!e) return;
@@ -1538,12 +1566,12 @@ function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1538
1566
  let i = e.Children.toArray(t), a = m.current;
1539
1567
  switch (n.key) {
1540
1568
  case "ArrowDown":
1541
- a = Vt(a, 1, i.length);
1569
+ a = Gt(a, 1, i.length);
1542
1570
  break;
1543
1571
  case "ArrowUp":
1544
- a = Vt(a, -1, i.length);
1572
+ a = Gt(a, -1, i.length);
1545
1573
  break;
1546
- default: for (let e = 0; e < i.length; e++) if (Bt(i[e], n.key)) {
1574
+ default: for (let e = 0; e < i.length; e++) if (Wt(i[e], n.key)) {
1547
1575
  if (a >= e && h.current === n.key) continue;
1548
1576
  a = e;
1549
1577
  break;
@@ -1559,17 +1587,17 @@ function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1559
1587
  }
1560
1588
  }, [t, o]);
1561
1589
  return /* @__PURE__ */ H("div", {
1562
- className: f(zt.infiniteBlock, r),
1590
+ className: f(Ut.infiniteBlock, r),
1563
1591
  onScroll: g,
1564
1592
  onKeyDown: _,
1565
1593
  tabIndex: 0,
1566
1594
  ref: s,
1567
1595
  children: [a ? /* @__PURE__ */ V("div", {
1568
- className: zt.spinnerWrapper,
1569
- children: /* @__PURE__ */ V(Te, { className: zt.spinner })
1596
+ className: Ut.spinnerWrapper,
1597
+ children: /* @__PURE__ */ V(Te, { className: Ut.spinner })
1570
1598
  }) : t, l && /* @__PURE__ */ V("div", {
1571
- className: zt.spinnerWrapper,
1572
- children: /* @__PURE__ */ V(Te, { className: zt.spinner })
1599
+ className: Ut.spinnerWrapper,
1600
+ children: /* @__PURE__ */ V(Te, { className: Ut.spinner })
1573
1601
  })]
1574
1602
  });
1575
1603
  }
@@ -1643,8 +1671,8 @@ var Z = {
1643
1671
  };
1644
1672
  //#endregion
1645
1673
  //#region package/common/dropdown/dropdown.tsx
1646
- function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r = "", isValid: i = !0, tabIndex: o = 0, isRequired: s = !1, customProps: c = {}, isRow: l = !1, disabled: m = !1, onScroll: h = () => Promise.resolve(), isListOnTop: _ = !1, onClick: v, onChange: y, onFocus: b = null, onBlur: x = null, onMouseEnter: S = null, onMouseLeave: C = null, dropdownLabel: w, isDropdownListWider: T = !1, inputClassName: E = "", dropDownIconClassName: D = "", dropDownClassName: O = "", formValidator: k = null, labelClassName: A = "", dropDownInputClassName: j = "", items: M = [], useMatLabelStyle: N = !0, placeholder: P = "", plainStyle: F = !1, scrollToSelected: I = !1, reactRef: ee, ...L }) {
1647
- let [R, te] = d(!1), [ne, z] = d(!1), [, re] = d(0), B = u(k);
1674
+ function qt({ errorMessage: e = "", className: t = "", label: n = "", value: r = "", isValid: i = !0, tabIndex: o = 0, isRequired: s = !1, customProps: c = {}, isRow: l = !1, disabled: m = !1, onScroll: h = () => Promise.resolve(), isListOnTop: _ = !1, onClick: v, onChange: y, onFocus: b = null, onBlur: x = null, onMouseEnter: S = null, onMouseLeave: C = null, dropdownLabel: w, isDropdownListWider: T = !1, inputClassName: E = "", dropDownIconClassName: D = "", dropDownClassName: O = "", formValidator: k = null, labelClassName: A = "", dropDownInputClassName: j = "", items: M = [], useMatLabelStyle: N = !0, placeholder: P = "", plainStyle: F = !1, scrollToSelected: I = !1, reactRef: ee, ...te }) {
1675
+ let [L, R] = d(!1), [ne, z] = d(!1), [, re] = d(0), B = u(k);
1648
1676
  a(() => {
1649
1677
  if (B.current = k, !B.current) return;
1650
1678
  B.current.label = n ?? "", B.current.validate();
@@ -1656,18 +1684,18 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1656
1684
  }, oe = (e) => {
1657
1685
  z(!1), C?.(e);
1658
1686
  }, U = (e) => {
1659
- te(!0), b?.(e);
1687
+ R(!0), b?.(e);
1660
1688
  }, se = (e) => {
1661
- B.current && (B.current.touched = !0), te(!1), x?.(e);
1689
+ B.current && (B.current.touched = !0), R(!1), x?.(e);
1662
1690
  }, W = () => k ? k.touched && k.hasError() : !i || !!e, ce = () => !!(s || k?.validators.find((e) => e.validatorId === "required")), le = (e) => {
1663
1691
  k ? (k.set(e), y?.(k.value, c)) : y?.(e, c);
1664
- }, ue = w, G = k ? k.value : r, K = W();
1692
+ }, ue = w, de = k ? k.value : r, G = W();
1665
1693
  M.forEach((e) => {
1666
- e.key === G && (ue = e.label);
1694
+ e.key === de && (ue = e.label);
1667
1695
  });
1668
- let de = ue || G, fe = de == null || typeof de == "string" && de.trim() === "";
1696
+ let fe = ue || de, K = fe == null || typeof fe == "string" && fe.trim() === "";
1669
1697
  return /* @__PURE__ */ H("div", {
1670
- ...L,
1698
+ ...te,
1671
1699
  className: f(t, Z.dropdownLabel, Z.dropdown, { [Z.dropdownLabelColumn]: !l }),
1672
1700
  onMouseEnter: ie,
1673
1701
  onMouseLeave: oe,
@@ -1675,7 +1703,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1675
1703
  /* @__PURE__ */ V(ae, {
1676
1704
  onChange: (e) => le((e || { key: "" }).key),
1677
1705
  itemToString: (e) => e ? String(e.key) : "",
1678
- selectedItem: M.find((e) => e.key === G) ?? null,
1706
+ selectedItem: M.find((e) => e.key === de) ?? null,
1679
1707
  stateReducer: (e, t) => I && Object.prototype.hasOwnProperty.call(t, "isOpen") ? {
1680
1708
  ...t,
1681
1709
  highlightedIndex: t.isOpen ? M.indexOf(e.selectedItem) : null
@@ -1699,7 +1727,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1699
1727
  t().onClick?.(e), v?.(e);
1700
1728
  },
1701
1729
  ref: ee,
1702
- children: fe ? "\xA0" : de
1730
+ children: K ? "\xA0" : fe
1703
1731
  }),
1704
1732
  /* @__PURE__ */ V("button", {
1705
1733
  type: "button",
@@ -1715,7 +1743,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1715
1743
  className: f(Z.dropdownInputButtonIconArrow, { [Z.dropdownInputButtonIconArrowOpen]: r })
1716
1744
  })
1717
1745
  }),
1718
- !m && r ? /* @__PURE__ */ V(Ht, {
1746
+ !m && r ? /* @__PURE__ */ V(Kt, {
1719
1747
  onScroll: h,
1720
1748
  className: f(Z.dropdownInputList, {
1721
1749
  [Z.dropdownInputListOnTop]: _,
@@ -1739,21 +1767,21 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1739
1767
  /* @__PURE__ */ V("fieldset", {
1740
1768
  className: f(Z.dropdownFieldset, {
1741
1769
  [Z.dropdownBorderPlain]: F,
1742
- [Z.dropdownBorderFocused]: R,
1743
- [Z.dropdownBorderInvalid]: K,
1744
- [Z.dropdownBorderError]: K
1770
+ [Z.dropdownBorderFocused]: L,
1771
+ [Z.dropdownBorderInvalid]: G,
1772
+ [Z.dropdownBorderError]: G
1745
1773
  }),
1746
1774
  children: /* @__PURE__ */ V("legend", {
1747
- className: f(Z.dropdownFieldsetLegend, { [Z.dropdownFieldsetLegendActive]: N && (R || !fe) }),
1775
+ className: f(Z.dropdownFieldsetLegend, { [Z.dropdownFieldsetLegendActive]: N && (L || !K) }),
1748
1776
  children: /* @__PURE__ */ V("span", { children: n })
1749
1777
  })
1750
1778
  }),
1751
1779
  N && n && /* @__PURE__ */ V("div", {
1752
- className: f(Z.dropdownMatLabel, { [Z.dropdownMatLabelFloating]: R || !fe }),
1780
+ className: f(Z.dropdownMatLabel, { [Z.dropdownMatLabelFloating]: L || !K }),
1753
1781
  children: n
1754
1782
  }),
1755
1783
  N && P && /* @__PURE__ */ V("div", {
1756
- className: f(Z.dropdownPlaceholder, R && !ue && Z.dropdownPlaceholderShown),
1784
+ className: f(Z.dropdownPlaceholder, L && !ue && Z.dropdownPlaceholderShown),
1757
1785
  children: P
1758
1786
  })
1759
1787
  ]
@@ -1766,15 +1794,15 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1766
1794
  children: "*"
1767
1795
  }) : null]
1768
1796
  }),
1769
- /* @__PURE__ */ V(nt, {
1797
+ /* @__PURE__ */ V(ot, {
1770
1798
  variant: "error",
1771
1799
  message: k ? k.getCurrentErrorMessage() : e || "",
1772
- isVisible: K && (R || ne)
1800
+ isVisible: G && (L || ne)
1773
1801
  })
1774
1802
  ]
1775
1803
  });
1776
1804
  }
1777
- var Wt = {
1805
+ var Jt = {
1778
1806
  datePicker: "datePicker_ZohTp",
1779
1807
  "datePicker-header": "datePicker-header_YmSWE",
1780
1808
  datePickerHeader: "datePicker-header_YmSWE",
@@ -1791,23 +1819,23 @@ var Wt = {
1791
1819
  };
1792
1820
  //#endregion
1793
1821
  //#region package/common/datePicker/datePicker.tsx
1794
- function Gt({ className: e = "", selected: t, onSelect: n = () => null, formValidator: r = null, noInput: i = !1, noHeader: o = !1, isModal: s = !1, isInline: c = !1, onChange: l = () => null, minDate: p = null, maxDate: m = null, children: h = null, showClearButton: g = !1, label: y = "", isValid: b = !0, errorMessage: x = "", isRequired: S = !1, startDate: C, endDate: w }) {
1795
- let T = () => r ? r.value : t, E = T() ?? /* @__PURE__ */ new Date(), [D, O] = d(E.getMonth() + 1), [k, A] = d(E.getFullYear()), [j, M] = d(!1), [N, P] = d(() => T() ? Nt(E) : ""), [F, I] = d(!1), [ee, L] = d(!1), [, R] = d(0), [te, ne] = d(t), z = u(r);
1796
- if (te !== t) {
1822
+ function Yt({ 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 }) {
1823
+ let T = () => r ? r.value : t, E = T() ?? /* @__PURE__ */ new Date(), [D, O] = d(E.getMonth() + 1), [k, A] = d(E.getFullYear()), [j, M] = d(!1), [N, P] = d(() => T() ? Lt(E) : ""), [F, I] = d(!1), [ee, te] = d(!1), [, L] = d(0), [R, ne] = d(t), z = u(r);
1824
+ if (R !== t) {
1797
1825
  ne(t);
1798
1826
  let e = t ?? /* @__PURE__ */ new Date();
1799
- O(e.getMonth() + 1), A(e.getFullYear()), P(t ? Nt(t) : "");
1827
+ O(e.getMonth() + 1), A(e.getFullYear()), P(t ? Lt(t) : "");
1800
1828
  }
1801
1829
  a(() => {
1802
1830
  if (z.current = r, !r) return;
1803
1831
  let e = () => {
1804
1832
  let e = r.value;
1805
- e ? (O(e.getMonth() + 1), A(e.getFullYear()), P(Nt(e))) : P(""), R((e) => e + 1);
1833
+ e ? (O(e.getMonth() + 1), A(e.getFullYear()), P(Lt(e))) : P(""), L((e) => e + 1);
1806
1834
  };
1807
1835
  return r.registerOnUpdateListener(e), () => r.removeOnUpdateListener(e);
1808
1836
  }, [r]);
1809
1837
  let re = () => r ? r.touched && r.hasError() : !b || !!x, ie = () => !!(S || r?.validators.find((e) => e.validatorId === "required")), ae = (e) => {
1810
- P(e ? Nt(e) : ""), r && r.set(e), l(e);
1838
+ P(e ? Lt(e) : ""), r && r.set(e), l(e);
1811
1839
  }, U = (e) => {
1812
1840
  ae(e), n(e), M(!1);
1813
1841
  }, se = (e) => {
@@ -1817,13 +1845,13 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1817
1845
  });
1818
1846
  }, W = (e) => {
1819
1847
  if (e.match(/\d{2}\.\d{2}\.\d{4}/gi)) {
1820
- let [t, n, r] = e.split("."), i = Dt(Number(t), Number(n), Number(r));
1848
+ let [t, n, r] = e.split("."), i = jt(Number(t), Number(n), Number(r));
1821
1849
  if (i && i.toString() !== "Invalid Date" && (!m || i <= m) && (!p || i >= p)) return i;
1822
1850
  }
1823
1851
  return null;
1824
1852
  }, ce = ({ previousState: e, nextState: t }) => {
1825
1853
  if (!e || t.value === e.value) return t;
1826
- let n = Pt(t.value, e.value, t.selection ?? null), r = W(n.value);
1854
+ let n = Rt(t.value, e.value, t.selection ?? null), r = W(n.value);
1827
1855
  return r && ae(r), n;
1828
1856
  }, le = () => {
1829
1857
  let e = 400, t = (/* @__PURE__ */ new Date()).getFullYear() - 200;
@@ -1831,47 +1859,47 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1831
1859
  key: e + t,
1832
1860
  label: e + t
1833
1861
  }));
1834
- }, ue = T(), G = re(), K = /* @__PURE__ */ H(B, { children: [
1862
+ }, ue = T(), de = re(), G = /* @__PURE__ */ H(B, { children: [
1835
1863
  o ? null : /* @__PURE__ */ H("div", {
1836
- className: Wt.datePickerHeader,
1864
+ className: Jt.datePickerHeader,
1837
1865
  children: [
1838
- /* @__PURE__ */ V(Re, {
1866
+ /* @__PURE__ */ V(ze, {
1839
1867
  icon: _,
1840
1868
  onClick: () => se(-1)
1841
1869
  }),
1842
1870
  /* @__PURE__ */ V("div", {
1843
- className: Wt.datePickerHeaderMonthAndYearContainer,
1871
+ className: Jt.datePickerHeaderMonthAndYearContainer,
1844
1872
  children: /* @__PURE__ */ H("div", {
1845
- className: Wt.datePickerHeaderMonthAndYear,
1846
- children: [/* @__PURE__ */ V(Ut, {
1873
+ className: Jt.datePickerHeaderMonthAndYear,
1874
+ children: [/* @__PURE__ */ V(qt, {
1847
1875
  plainStyle: !0,
1848
1876
  scrollToSelected: !0,
1849
1877
  onChange: (e) => O(e),
1850
- className: Wt.datePickerHeaderMonth,
1851
- value: Ot(Tt("-"), k, D, 1),
1852
- items: kt().map((e, t) => ({
1878
+ className: Jt.datePickerHeaderMonth,
1879
+ value: Mt(kt("-"), k, D, 1),
1880
+ items: Nt().map((e, t) => ({
1853
1881
  key: t + 1,
1854
1882
  label: e
1855
1883
  }))
1856
- }), /* @__PURE__ */ V(Ut, {
1884
+ }), /* @__PURE__ */ V(qt, {
1857
1885
  plainStyle: !0,
1858
1886
  scrollToSelected: !0,
1859
1887
  useMatLabelStyle: !1,
1860
- className: Wt.datePickerHeaderYear,
1888
+ className: Jt.datePickerHeaderYear,
1861
1889
  onChange: (e) => A(e),
1862
1890
  value: k,
1863
1891
  items: le()
1864
1892
  })]
1865
1893
  })
1866
1894
  }),
1867
- /* @__PURE__ */ V(Re, {
1895
+ /* @__PURE__ */ V(ze, {
1868
1896
  icon: v,
1869
1897
  onClick: () => se(1)
1870
1898
  })
1871
1899
  ]
1872
1900
  }),
1873
- /* @__PURE__ */ V(Rt, {
1874
- className: Wt.datePickerMonth,
1901
+ /* @__PURE__ */ V(Ht, {
1902
+ className: Jt.datePickerMonth,
1875
1903
  month: D,
1876
1904
  year: k,
1877
1905
  onSelect: U,
@@ -1880,12 +1908,12 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1880
1908
  minDate: p,
1881
1909
  maxDate: m
1882
1910
  }),
1883
- g && /* @__PURE__ */ V(J, {
1911
+ g && /* @__PURE__ */ V(Ne, {
1884
1912
  onClick: () => U(null),
1885
1913
  children: "Clear"
1886
1914
  }),
1887
1915
  h
1888
- ] }), de = i ? null : /* @__PURE__ */ V(rt, {
1916
+ ] }), fe = i ? null : /* @__PURE__ */ V(st, {
1889
1917
  readOnly: s,
1890
1918
  label: `${y}${ie() ? " *" : ""}`,
1891
1919
  value: N,
@@ -1900,46 +1928,46 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1900
1928
  z.current && (z.current.touched = !0), I(!1), ae(W(N));
1901
1929
  },
1902
1930
  onFocus: () => I(!0),
1903
- onMouseEnter: () => L(!0),
1904
- onMouseLeave: () => L(!1),
1905
- isValid: !G
1906
- }), fe = c ? K : s ? /* @__PURE__ */ V(gt, {
1931
+ onMouseEnter: () => te(!0),
1932
+ onMouseLeave: () => te(!1),
1933
+ isValid: !de
1934
+ }), K = c ? G : s ? /* @__PURE__ */ V(bt, {
1907
1935
  hideHeader: !0,
1908
1936
  isOpen: j,
1909
1937
  onClose: () => M(!1),
1910
- children: K
1911
- }) : /* @__PURE__ */ V(et, {
1938
+ children: G
1939
+ }) : /* @__PURE__ */ V(it, {
1912
1940
  isOpen: j,
1913
1941
  onOpenChange: (e) => M(e),
1914
- content: K,
1915
- align: Qe.Left,
1942
+ content: G,
1943
+ align: nt.Left,
1916
1944
  dontCloseOnChildClick: !0,
1917
- children: de
1945
+ children: fe
1918
1946
  });
1919
1947
  return /* @__PURE__ */ H("div", {
1920
- className: f(Wt.datePicker, e),
1948
+ className: f(Jt.datePicker, e),
1921
1949
  children: [
1922
- (s || c) && de,
1923
- fe,
1924
- /* @__PURE__ */ V(nt, {
1950
+ (s || c) && fe,
1951
+ K,
1952
+ /* @__PURE__ */ V(ot, {
1925
1953
  variant: "error",
1926
1954
  message: r ? r.getCurrentErrorMessage() : x || "",
1927
- isVisible: G && (F || ee)
1955
+ isVisible: de && (F || ee)
1928
1956
  })
1929
1957
  ]
1930
1958
  });
1931
1959
  }
1932
- var Kt = { emptyState: "emptyState_KXOIx" };
1960
+ var Xt = { emptyState: "emptyState_KXOIx" };
1933
1961
  //#endregion
1934
1962
  //#region package/common/emptyState/emptyState.tsx
1935
- function qt({ className: e, icon: t, children: n, ...r }) {
1963
+ function Zt({ className: e, icon: t, children: n, ...r }) {
1936
1964
  return /* @__PURE__ */ H("div", {
1937
1965
  ...r,
1938
- className: f(Kt.emptyState, e),
1966
+ className: f(Xt.emptyState, e),
1939
1967
  children: [t && /* @__PURE__ */ V(p, { icon: t }), /* @__PURE__ */ V("div", { children: n ?? "No entries available" })]
1940
1968
  });
1941
1969
  }
1942
- var Jt = {
1970
+ var Qt = {
1943
1971
  fab: "fab_hyAAa",
1944
1972
  "fab-content": "fab-content_IBiXm",
1945
1973
  fabContent: "fab-content_IBiXm",
@@ -1947,25 +1975,25 @@ var Jt = {
1947
1975
  fabContentContainer: "fab-content-container_FQD1x",
1948
1976
  "fab-size-mini": "fab-size-mini_KP9BD",
1949
1977
  fabSizeMini: "fab-size-mini_KP9BD"
1950
- }, Yt = {
1978
+ }, $t = {
1951
1979
  default: null,
1952
- mini: Jt.fabSizeMini
1980
+ mini: Qt.fabSizeMini
1953
1981
  };
1954
- function Xt({ children: e = null, size: t = "default", className: n = "", styleType: r = Ee.Primary, onClick: i = () => {} }) {
1955
- return /* @__PURE__ */ V(J, {
1982
+ function en({ children: e = null, size: t = "default", className: n = "", styleType: r = Ee.Primary, onClick: i = () => {} }) {
1983
+ return /* @__PURE__ */ V(Ne, {
1956
1984
  styleType: r,
1957
- className: f(Jt.fab, Yt[t], n),
1985
+ className: f(Qt.fab, $t[t], n),
1958
1986
  onClick: i,
1959
1987
  children: /* @__PURE__ */ V("div", {
1960
- className: Jt.fabContentContainer,
1988
+ className: Qt.fabContentContainer,
1961
1989
  children: /* @__PURE__ */ V("div", {
1962
- className: Jt.fabContent,
1990
+ className: Qt.fabContent,
1963
1991
  children: e
1964
1992
  })
1965
1993
  })
1966
1994
  });
1967
1995
  }
1968
- var Zt = {
1996
+ var tn = {
1969
1997
  fab: "fab_YI34X",
1970
1998
  appear: "appear_DL0wm",
1971
1999
  "fab-container": "fab-container_8uoYo",
@@ -1995,7 +2023,7 @@ var Zt = {
1995
2023
  };
1996
2024
  //#endregion
1997
2025
  //#region package/common/fab/fab.tsx
1998
- function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMenuEntryClicked: r = () => {}, onClick: i = () => {}, closeMenuOnEntryClicked: a = !0, ...o }) {
2026
+ function nn({ children: e = null, size: t = "default", menuEntries: n = [], onMenuEntryClicked: r = () => {}, onClick: i = () => {}, closeMenuOnEntryClicked: a = !0, ...o }) {
1999
2027
  let [s, c] = d(!1);
2000
2028
  function l() {
2001
2029
  n.length > 0 && c((e) => !e), i();
@@ -2005,44 +2033,44 @@ function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMe
2005
2033
  }
2006
2034
  return /* @__PURE__ */ H("div", {
2007
2035
  ...o,
2008
- className: Zt.fabContainer,
2036
+ className: tn.fabContainer,
2009
2037
  children: [
2010
2038
  /* @__PURE__ */ V("div", {
2011
- className: f(Zt.fabMenuBackdrop, s && Zt.fabMenuBackdropOpen),
2039
+ className: f(tn.fabMenuBackdrop, s && tn.fabMenuBackdropOpen),
2012
2040
  onClick: (e) => {
2013
2041
  e.stopPropagation(), c(!1);
2014
2042
  }
2015
2043
  }),
2016
2044
  /* @__PURE__ */ V("div", {
2017
2045
  onClick: (e) => e.stopPropagation(),
2018
- children: /* @__PURE__ */ V(Xt, {
2019
- className: Zt.fab,
2046
+ children: /* @__PURE__ */ V(en, {
2047
+ className: tn.fab,
2020
2048
  size: t,
2021
2049
  onClick: l,
2022
2050
  children: /* @__PURE__ */ H("div", {
2023
- className: f(Zt.fabIcon, s && Zt.fabIconMenuOpen),
2051
+ className: f(tn.fabIcon, s && tn.fabIconMenuOpen),
2024
2052
  children: [/* @__PURE__ */ V("div", {
2025
- className: f(Zt.fabIconContent, !s && Zt.fabIconContentShown),
2053
+ className: f(tn.fabIconContent, !s && tn.fabIconContentShown),
2026
2054
  children: e
2027
2055
  }), /* @__PURE__ */ V("div", {
2028
- className: f(Zt.fabIconContent, s && Zt.fabIconContentShown),
2056
+ className: f(tn.fabIconContent, s && tn.fabIconContentShown),
2029
2057
  children: /* @__PURE__ */ V(p, { icon: I })
2030
2058
  })]
2031
2059
  })
2032
2060
  })
2033
2061
  }),
2034
2062
  /* @__PURE__ */ V("div", {
2035
- className: Zt.fabMenu,
2063
+ className: tn.fabMenu,
2036
2064
  children: n.map(({ id: e, label: t, icon: n }) => /* @__PURE__ */ H("div", {
2037
- className: f(Zt.fabMenuEntry, s && Zt.fabMenuEntryShown),
2065
+ className: f(tn.fabMenuEntry, s && tn.fabMenuEntryShown),
2038
2066
  onClick: (t) => u(t, e),
2039
2067
  children: [t && /* @__PURE__ */ V("div", {
2040
- className: Zt.fabMenuEntryLabelContainer,
2068
+ className: tn.fabMenuEntryLabelContainer,
2041
2069
  children: /* @__PURE__ */ V("div", {
2042
- className: Zt.fabMenuEntryLabel,
2070
+ className: tn.fabMenuEntryLabel,
2043
2071
  children: t
2044
2072
  })
2045
- }), /* @__PURE__ */ V(Xt, {
2073
+ }), /* @__PURE__ */ V(en, {
2046
2074
  size: "mini",
2047
2075
  children: /* @__PURE__ */ V(p, { icon: n })
2048
2076
  })]
@@ -2051,7 +2079,7 @@ function Qt({ children: e = null, size: t = "default", menuEntries: n = [], onMe
2051
2079
  ]
2052
2080
  });
2053
2081
  }
2054
- var $t = {
2082
+ var rn = {
2055
2083
  iconPicker: "iconPicker_xJJmG",
2056
2084
  "iconPicker-label": "iconPicker-label_VEB2X",
2057
2085
  iconPickerLabel: "iconPicker-label_VEB2X",
@@ -2066,19 +2094,19 @@ var $t = {
2066
2094
  };
2067
2095
  //#endregion
2068
2096
  //#region package/common/iconPicker/iconPicker.tsx
2069
- function en(e) {
2097
+ function an(e) {
2070
2098
  let { formValidator: t } = e;
2071
2099
  return t ? t.touched && t.hasError() : !1;
2072
2100
  }
2073
- function tn(e) {
2101
+ function on(e) {
2074
2102
  let { isRequired: t, formValidator: n } = e;
2075
2103
  return !!(t || n?.validators.find((e) => e.validatorId === "required"));
2076
2104
  }
2077
- function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, formValidator: i = null, isRequired: a, className: o, style: s, classNames: c, styles: l, ...u }) {
2078
- let d = i ? i.value ?? null : t, m = en({
2105
+ function sn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, formValidator: i = null, isRequired: a, className: o, style: s, classNames: c, styles: l, ...u }) {
2106
+ let d = i ? i.value ?? null : t, m = an({
2079
2107
  formValidator: i,
2080
2108
  isRequired: a
2081
- }), h = tn({
2109
+ }), h = on({
2082
2110
  formValidator: i,
2083
2111
  isRequired: a
2084
2112
  });
@@ -2087,20 +2115,20 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2087
2115
  }
2088
2116
  return /* @__PURE__ */ H("div", {
2089
2117
  ...u,
2090
- className: f($t.iconPicker, { [$t.iconPickerError]: m }, c?.root, o),
2118
+ className: f(rn.iconPicker, { [rn.iconPickerError]: m }, c?.root, o),
2091
2119
  style: {
2092
2120
  ...l?.root,
2093
2121
  ...s
2094
2122
  },
2095
2123
  children: [n && /* @__PURE__ */ H("div", {
2096
- className: f($t.iconPickerLabel, c?.label),
2124
+ className: f(rn.iconPickerLabel, c?.label),
2097
2125
  style: l?.label,
2098
2126
  children: [n, h && " *"]
2099
2127
  }), /* @__PURE__ */ V("div", {
2100
- className: f($t.iconPickerItemContainer, c?.itemContainer),
2128
+ className: f(rn.iconPickerItemContainer, c?.itemContainer),
2101
2129
  style: l?.itemContainer,
2102
2130
  children: e.map(({ id: e, label: t, icon: n, customIcon: r }) => /* @__PURE__ */ H("div", {
2103
- className: f($t.iconPickerItem, { [$t.iconPickerItemSelected]: d === e }, c?.item),
2131
+ className: f(rn.iconPickerItem, { [rn.iconPickerItemSelected]: d === e }, c?.item),
2104
2132
  style: l?.item,
2105
2133
  title: t,
2106
2134
  tabIndex: 0,
@@ -2120,14 +2148,14 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2120
2148
  }
2121
2149
  //#endregion
2122
2150
  //#region package/common/idleManager/idleManager.tsx
2123
- var rn = [
2151
+ var cn = [
2124
2152
  "click",
2125
2153
  "mousemove",
2126
2154
  "keydown",
2127
2155
  "scroll",
2128
2156
  "touchstart"
2129
2157
  ];
2130
- function an({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n = !0 }) {
2158
+ function ln({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n = !0 }) {
2131
2159
  let [r, o] = d(!1), s = u(null), c = i(() => {
2132
2160
  s.current !== null && clearTimeout(s.current), o(!1), s.current = setTimeout(() => {
2133
2161
  o(!0);
@@ -2136,14 +2164,14 @@ function an({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n
2136
2164
  return a(() => {
2137
2165
  c();
2138
2166
  }, [c]), a(() => {
2139
- for (let e of rn) document.addEventListener(e, c);
2167
+ for (let e of cn) document.addEventListener(e, c);
2140
2168
  return () => {
2141
- for (let e of rn) document.removeEventListener(e, c);
2169
+ for (let e of cn) document.removeEventListener(e, c);
2142
2170
  s.current !== null && clearTimeout(s.current);
2143
2171
  };
2144
2172
  }, [c]), /* @__PURE__ */ V(B, { children: n && r && e });
2145
2173
  }
2146
- var on = {
2174
+ var un = {
2147
2175
  inputDropdown: "inputDropdown_UdYMa",
2148
2176
  dropdown: "dropdown_-M5-x",
2149
2177
  "dropdown-shown": "dropdown-shown_H2rFU",
@@ -2157,15 +2185,15 @@ var on = {
2157
2185
  };
2158
2186
  //#endregion
2159
2187
  //#region package/common/inputDropdown/inputDropdown.tsx
2160
- function sn(e, t) {
2188
+ function dn(e, t) {
2161
2189
  return t ? t.value ?? "" : e ?? "";
2162
2190
  }
2163
- function cn(e, t) {
2191
+ function fn(e, t) {
2164
2192
  let n = t.find((t) => t.value === e);
2165
2193
  return n ? n.label ?? n.value : e;
2166
2194
  }
2167
- function ln({ label: e = "", value: t = "", formValidator: n = null, items: r = [], className: a, style: o, classNames: s, styles: c, onSelect: l = () => null, onChange: p, placeholder: m = "", ...h }) {
2168
- let g = sn(t, n), [_, v] = d(() => cn(g, r)), [y, b] = d(g), [x, S] = d(!1), [C, w] = d(null), T = u(null);
2195
+ function pn({ 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 }) {
2196
+ let g = dn(t, n), [_, v] = d(() => fn(g, r)), [y, b] = d(g), [x, S] = d(!1), [C, w] = d(null), T = u(null);
2169
2197
  if (g !== y) {
2170
2198
  b(g);
2171
2199
  let e = r.find((e) => e.value === g);
@@ -2192,7 +2220,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2192
2220
  ]);
2193
2221
  return /* @__PURE__ */ H("div", {
2194
2222
  ...h,
2195
- className: f(on.inputDropdown, s?.root, a),
2223
+ className: f(un.inputDropdown, s?.root, a),
2196
2224
  style: {
2197
2225
  ...c?.root,
2198
2226
  ...o
@@ -2200,7 +2228,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2200
2228
  onFocus: D,
2201
2229
  onBlur: O,
2202
2230
  onKeyDown: A,
2203
- children: [/* @__PURE__ */ V(rt, {
2231
+ children: [/* @__PURE__ */ V(st, {
2204
2232
  label: e,
2205
2233
  value: _,
2206
2234
  onChange: (e) => {
@@ -2208,10 +2236,10 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2208
2236
  },
2209
2237
  placeholder: m
2210
2238
  }), /* @__PURE__ */ V("div", {
2211
- className: f(on.dropdown, { [on.dropdownShown]: x }, s?.dropdown),
2239
+ className: f(un.dropdown, { [un.dropdownShown]: x }, s?.dropdown),
2212
2240
  style: c?.dropdown,
2213
2241
  children: x && E.map((e, t) => /* @__PURE__ */ V("div", {
2214
- className: f(on.dropdownItem, C === t && on.dropdownItemHighlighted, s?.item),
2242
+ className: f(un.dropdownItem, C === t && un.dropdownItemHighlighted, s?.item),
2215
2243
  style: c?.item,
2216
2244
  onClick: () => k(e),
2217
2245
  children: e.label ?? e.value
@@ -2219,7 +2247,7 @@ function ln({ label: e = "", value: t = "", formValidator: n = null, items: r =
2219
2247
  })]
2220
2248
  });
2221
2249
  }
2222
- var un = {
2250
+ var mn = {
2223
2251
  board: "board_6KRdw",
2224
2252
  column: "column_NrNeF",
2225
2253
  "column-empty": "column-empty_5KYsJ",
@@ -2237,15 +2265,15 @@ var un = {
2237
2265
  };
2238
2266
  //#endregion
2239
2267
  //#region package/common/kanbanBoard/KanbanItem.tsx
2240
- function dn({ id: e, children: t }) {
2241
- let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = fe({ id: e });
2268
+ function hn({ id: e, children: t }) {
2269
+ let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = K({ id: e });
2242
2270
  return /* @__PURE__ */ V("div", {
2243
2271
  ref: i,
2244
2272
  style: {
2245
2273
  transform: me.Transform.toString(a),
2246
2274
  transition: o
2247
2275
  },
2248
- className: f(un.item, s && un.itemDragging),
2276
+ className: f(mn.item, s && mn.itemDragging),
2249
2277
  ...n,
2250
2278
  ...r,
2251
2279
  children: t
@@ -2253,22 +2281,22 @@ function dn({ id: e, children: t }) {
2253
2281
  }
2254
2282
  //#endregion
2255
2283
  //#region package/common/kanbanBoard/KanbanColumn.tsx
2256
- function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a, classNames: o, styles: s }) {
2284
+ function gn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a, classNames: o, styles: s }) {
2257
2285
  let { setNodeRef: c, isOver: l } = le({ id: `column-${e}` });
2258
2286
  return /* @__PURE__ */ H("div", {
2259
- className: f(un.column, l && un.columnOver, n.length === 0 && un.columnEmpty, a),
2287
+ className: f(mn.column, l && mn.columnOver, n.length === 0 && mn.columnEmpty, a),
2260
2288
  children: [/* @__PURE__ */ V("div", {
2261
- className: f(un.columnHeader, o?.header),
2289
+ className: f(mn.columnHeader, o?.header),
2262
2290
  style: s?.header,
2263
2291
  children: t
2264
- }), /* @__PURE__ */ V(K, {
2292
+ }), /* @__PURE__ */ V(G, {
2265
2293
  items: n,
2266
2294
  strategy: pe,
2267
2295
  children: /* @__PURE__ */ V("div", {
2268
2296
  ref: c,
2269
- className: f(un.columnItems, o?.items),
2297
+ className: f(mn.columnItems, o?.items),
2270
2298
  style: s?.items,
2271
- children: n.map((e) => /* @__PURE__ */ V(dn, {
2299
+ children: n.map((e) => /* @__PURE__ */ V(hn, {
2272
2300
  id: e,
2273
2301
  children: r[e] === void 0 ? null : i(r[e], e)
2274
2302
  }, e))
@@ -2278,8 +2306,8 @@ function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a
2278
2306
  }
2279
2307
  //#endregion
2280
2308
  //#region package/common/kanbanBoard/KanbanBoard.tsx
2281
- function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2282
- let [c, l] = d(null), [u, p] = d(null), m = G(ue(W, { activationConstraint: { distance: 8 } })), h = u ?? e;
2309
+ function _n({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2310
+ let [c, l] = d(null), [u, p] = d(null), m = de(ue(W, { activationConstraint: { distance: 8 } })), h = u ?? e;
2283
2311
  function g(e, t) {
2284
2312
  return e.findIndex((e) => e.itemIds.includes(t));
2285
2313
  }
@@ -2311,7 +2339,7 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2311
2339
  let e = n[a], t = e.itemIds.indexOf(r), o = e.itemIds.indexOf(i);
2312
2340
  t !== -1 && o !== -1 && t !== o && (n[a] = {
2313
2341
  ...e,
2314
- itemIds: de(e.itemIds, t, o)
2342
+ itemIds: fe(e.itemIds, t, o)
2315
2343
  });
2316
2344
  } else {
2317
2345
  n[a].itemIds = n[a].itemIds.filter((e) => e !== r);
@@ -2335,9 +2363,9 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2335
2363
  onDragOver: v,
2336
2364
  onDragEnd: y,
2337
2365
  children: [/* @__PURE__ */ V("div", {
2338
- className: f(un.board, i),
2366
+ className: f(mn.board, i),
2339
2367
  style: a,
2340
- children: h.map((e) => /* @__PURE__ */ V(fn, {
2368
+ children: h.map((e) => /* @__PURE__ */ V(gn, {
2341
2369
  id: e.id,
2342
2370
  title: e.title,
2343
2371
  itemIds: e.itemIds,
@@ -2345,13 +2373,13 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2345
2373
  renderItem: n
2346
2374
  }, e.id))
2347
2375
  }), /* @__PURE__ */ V(se, { children: c && t[c] !== void 0 ? /* @__PURE__ */ V("div", {
2348
- className: f(un.dragOverlay, o?.dragOverlay),
2376
+ className: f(mn.dragOverlay, o?.dragOverlay),
2349
2377
  style: s?.dragOverlay,
2350
2378
  children: n(t[c], c)
2351
2379
  }) : null })]
2352
2380
  });
2353
2381
  }
2354
- var mn = {
2382
+ var vn = {
2355
2383
  iconLoading: "iconLoading_wovj4",
2356
2384
  "spin-to-oblivion": "spin-to-oblivion_0tZtm",
2357
2385
  spinToOblivion: "spin-to-oblivion_0tZtm",
@@ -2366,39 +2394,39 @@ var mn = {
2366
2394
  };
2367
2395
  //#endregion
2368
2396
  //#region package/common/loading/iconLoading/iconLoading.tsx
2369
- function hn({ className: e = "" }) {
2397
+ function yn({ className: e = "" }) {
2370
2398
  return /* @__PURE__ */ V("div", {
2371
- className: f(mn.iconLoading, e),
2399
+ className: f(vn.iconLoading, e),
2372
2400
  children: /* @__PURE__ */ H("svg", {
2373
2401
  xmlns: "http://www.w3.org/2000/svg",
2374
2402
  viewBox: "-8 -1 16 14",
2375
2403
  children: [
2376
2404
  /* @__PURE__ */ V("path", {
2377
- className: mn.iconLoadingFirst,
2405
+ className: vn.iconLoadingFirst,
2378
2406
  d: "M 0 0 C 3 5 6 5 6 12",
2379
2407
  strokeWidth: "1.7",
2380
2408
  fill: "none"
2381
2409
  }),
2382
2410
  /* @__PURE__ */ V("path", {
2383
- className: mn.iconLoadingFirst,
2411
+ className: vn.iconLoadingFirst,
2384
2412
  d: "M 0 0 C -3 5 -6 5 -6 12",
2385
2413
  strokeWidth: "1.7",
2386
2414
  fill: "none"
2387
2415
  }),
2388
2416
  /* @__PURE__ */ V("path", {
2389
- className: mn.iconLoadingFirst,
2417
+ className: vn.iconLoadingFirst,
2390
2418
  d: "M 0 0 L 0 10",
2391
2419
  strokeWidth: "1.7",
2392
2420
  fill: "none"
2393
2421
  }),
2394
2422
  /* @__PURE__ */ V("path", {
2395
- className: mn.iconLoadingSecond,
2423
+ className: vn.iconLoadingSecond,
2396
2424
  d: "M 0.1 10 C -3 10 -4 10 -6 12",
2397
2425
  strokeWidth: "1.7",
2398
2426
  fill: "none"
2399
2427
  }),
2400
2428
  /* @__PURE__ */ V("path", {
2401
- className: mn.iconLoadingSecond,
2429
+ className: vn.iconLoadingSecond,
2402
2430
  d: "M -0.1 10 C 3 10 4 10 6 12",
2403
2431
  strokeWidth: "1.7",
2404
2432
  fill: "none"
@@ -2409,14 +2437,14 @@ function hn({ className: e = "" }) {
2409
2437
  }
2410
2438
  //#endregion
2411
2439
  //#region package/common/loading/iconLoading/index.ts
2412
- var gn = hn, _n = {
2440
+ var bn = yn, xn = {
2413
2441
  numberInput: "numberInput_7p2O3",
2414
2442
  arrows: "arrows_yjRlc",
2415
2443
  arrowBtn: "arrowBtn_DbJoa"
2416
2444
  };
2417
2445
  //#endregion
2418
2446
  //#region package/common/numberInput/numberInput.tsx
2419
- function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, className: a, allowNegative: o = !1, decimalSeparator: s, thousandSeparator: c, prefix: l, suffix: u, decimalScale: d, placeholder: m, sign: h, showArrows: _ = !1, step: v = 1, onKeyDown: b, ...x }) {
2447
+ function Sn({ value: e, onChange: t, formValidator: n, label: r, error: i, className: a, allowNegative: o = !1, decimalSeparator: s, thousandSeparator: c, prefix: l, suffix: u, decimalScale: d, placeholder: m, sign: h, showArrows: _ = !1, step: v = 1, onKeyDown: b, ...x }) {
2420
2448
  let S = n == null ? e : n.value, C = h != null && S != null ? Math.abs(Number(S)) : S, w = C == null ? "" : String(C);
2421
2449
  function T(e) {
2422
2450
  let r = e;
@@ -2438,16 +2466,16 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2438
2466
  b?.(e);
2439
2467
  }
2440
2468
  let O = h === "-" ? "-" : h === "+" ? "+" : l, k = _ ? /* @__PURE__ */ H("div", {
2441
- className: _n.arrows,
2442
- children: [/* @__PURE__ */ V(Ie, {
2443
- className: _n.arrowBtn,
2469
+ className: xn.arrows,
2470
+ children: [/* @__PURE__ */ V(Le, {
2471
+ className: xn.arrowBtn,
2444
2472
  tabIndex: -1,
2445
2473
  onMouseDown: (e) => {
2446
2474
  e.preventDefault(), E(e.shiftKey ? v * 10 : v);
2447
2475
  },
2448
2476
  children: /* @__PURE__ */ V(p, { icon: y })
2449
- }), /* @__PURE__ */ V(Ie, {
2450
- className: _n.arrowBtn,
2477
+ }), /* @__PURE__ */ V(Le, {
2478
+ className: xn.arrowBtn,
2451
2479
  tabIndex: -1,
2452
2480
  onMouseDown: (e) => {
2453
2481
  e.preventDefault(), E(e.shiftKey ? -v * 10 : -v);
@@ -2455,9 +2483,9 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2455
2483
  children: /* @__PURE__ */ V(p, { icon: g })
2456
2484
  })]
2457
2485
  }) : null;
2458
- return /* @__PURE__ */ V(rt, {
2486
+ return /* @__PURE__ */ V(st, {
2459
2487
  label: r,
2460
- className: f(_n.numberInput, a),
2488
+ className: f(xn.numberInput, a),
2461
2489
  value: w,
2462
2490
  onChange: () => {},
2463
2491
  formValidator: null,
@@ -2481,7 +2509,7 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2481
2509
  }
2482
2510
  //#endregion
2483
2511
  //#region package/common/numberInput/index.ts
2484
- var yn = vn, bn = {
2512
+ var Cn = Sn, wn = {
2485
2513
  optionPicker: "optionPicker_Yx82s",
2486
2514
  "optionPicker-chip": "optionPicker-chip_ywtvr",
2487
2515
  optionPickerChip: "optionPicker-chip_ywtvr",
@@ -2492,20 +2520,20 @@ var yn = vn, bn = {
2492
2520
  };
2493
2521
  //#endregion
2494
2522
  //#region package/common/optionPicker/optionPicker.tsx
2495
- function xn({ className: e = void 0, options: t, onChange: n, value: r, ...i }) {
2523
+ function Tn({ className: e = void 0, options: t, onChange: n, value: r, ...i }) {
2496
2524
  let a = t.findIndex((e) => e.key === r) * 100 / t.length;
2497
2525
  return /* @__PURE__ */ H("div", {
2498
2526
  ...i,
2499
- className: f(bn.optionPicker, e),
2527
+ className: f(wn.optionPicker, e),
2500
2528
  children: [/* @__PURE__ */ V("div", {
2501
- className: bn.optionPickerChip,
2529
+ className: wn.optionPickerChip,
2502
2530
  style: {
2503
2531
  left: `${a}%`,
2504
2532
  width: `${100 / t.length}%`
2505
2533
  }
2506
- }), t.map((e) => /* @__PURE__ */ V(Ie, {
2534
+ }), t.map((e) => /* @__PURE__ */ V(Le, {
2507
2535
  onClick: (t) => n(e.key, t),
2508
- className: f(bn.optionPickerOption, e.key === r && bn.optionPickerOptionActive),
2536
+ className: f(wn.optionPickerOption, e.key === r && wn.optionPickerOptionActive),
2509
2537
  tabIndex: e.key === r ? -1 : 0,
2510
2538
  children: e.label
2511
2539
  }, e.key))]
@@ -2513,25 +2541,25 @@ function xn({ className: e = void 0, options: t, onChange: n, value: r, ...i })
2513
2541
  }
2514
2542
  //#endregion
2515
2543
  //#region package/hooks/useWindowSize.ts
2516
- var Sn = 768;
2517
- function Cn() {
2544
+ var En = 768;
2545
+ function Dn() {
2518
2546
  let [e, t] = d(() => ({
2519
2547
  width: window.innerWidth,
2520
2548
  height: window.innerHeight,
2521
- isMobileSize: window.innerWidth < Sn
2549
+ isMobileSize: window.innerWidth < En
2522
2550
  }));
2523
2551
  return a(() => {
2524
2552
  function e() {
2525
2553
  t({
2526
2554
  width: window.innerWidth,
2527
2555
  height: window.innerHeight,
2528
- isMobileSize: window.innerWidth < Sn
2556
+ isMobileSize: window.innerWidth < En
2529
2557
  });
2530
2558
  }
2531
2559
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
2532
2560
  }, []), e;
2533
2561
  }
2534
- var wn = {
2562
+ var On = {
2535
2563
  overscroll: "overscroll_Ij750",
2536
2564
  "overscroll-header": "overscroll-header_S6vYc",
2537
2565
  overscrollHeader: "overscroll-header_S6vYc",
@@ -2542,8 +2570,8 @@ var wn = {
2542
2570
  };
2543
2571
  //#endregion
2544
2572
  //#region package/common/overscroll/overscroll.tsx
2545
- function Tn({ children: e = null, overscrollContent: t = null, overscrollContentDesktop: n = null, centerHeader: r = !0, min: o = 10, max: s = 80, start: c = 30, unit: l = "%", mobileOnly: d = !0, onScrollChange: p = () => {}, scrollDisabled: m = !1 }) {
2546
- let { isMobileSize: h, height: g } = Cn(), _ = u(null), v = u(null), y = u(null), b = u(!1), x = u(null), S = u(p);
2573
+ function kn({ 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 }) {
2574
+ let { isMobileSize: h, height: g } = Dn(), _ = u(null), v = u(null), y = u(null), b = u(!1), x = u(null), S = u(p);
2547
2575
  S.current = p;
2548
2576
  let C = i((e) => {
2549
2577
  let t;
@@ -2601,15 +2629,15 @@ function Tn({ children: e = null, overscrollContent: t = null, overscrollContent
2601
2629
  if (d && !h) return n ? /* @__PURE__ */ H("div", { children: [n, e] }) : /* @__PURE__ */ V(B, { children: e });
2602
2630
  let k = l === "%" ? `${100 - o}%` : `calc(100% - ${o}px)`;
2603
2631
  return /* @__PURE__ */ H("div", {
2604
- className: wn.overscroll,
2632
+ className: On.overscroll,
2605
2633
  ref: _,
2606
2634
  onScroll: O,
2607
2635
  children: [/* @__PURE__ */ V("div", {
2608
- className: wn.overscrollHeaderContainer,
2636
+ className: On.overscrollHeaderContainer,
2609
2637
  style: { height: `${s}${l}` },
2610
2638
  ref: y,
2611
2639
  children: /* @__PURE__ */ V("div", {
2612
- className: f(wn.overscrollHeader, r && wn.overscrollHeaderCentered),
2640
+ className: f(On.overscrollHeader, r && On.overscrollHeaderCentered),
2613
2641
  ref: v,
2614
2642
  children: t
2615
2643
  })
@@ -2619,7 +2647,7 @@ function Tn({ children: e = null, overscrollContent: t = null, overscrollContent
2619
2647
  })]
2620
2648
  });
2621
2649
  }
2622
- var En = {
2650
+ var An = {
2623
2651
  progressBar: "progressBar_LO0sX",
2624
2652
  "progressBar-fill": "progressBar-fill_rt32j",
2625
2653
  progressBarFill: "progressBar-fill_rt32j",
@@ -2632,17 +2660,17 @@ var En = {
2632
2660
  };
2633
2661
  //#endregion
2634
2662
  //#region package/common/progressBar/progressBar.tsx
2635
- function Dn(e) {
2663
+ function jn(e) {
2636
2664
  let t = e.replace("#", ""), n = parseInt(t.substring(0, 2), 16), r = parseInt(t.substring(2, 4), 16), i = parseInt(t.substring(4, 6), 16);
2637
2665
  return (.299 * n + .587 * r + .114 * i) / 255 > .5 ? "#000000" : "#ffffff";
2638
2666
  }
2639
- function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r = void 0, ...i }) {
2667
+ function Mn({ className: e = void 0, total: t = 100, progress: n = 0, style: r = void 0, ...i }) {
2640
2668
  function a() {
2641
2669
  let e = [];
2642
2670
  return Array.isArray(n) ? e.push(...n) : typeof n == "object" ? e.push(n) : e.push({ amount: n }), e.map((n, i) => {
2643
2671
  let a = t ? n.amount / t * 100 : 0;
2644
2672
  return /* @__PURE__ */ V("div", {
2645
- className: f(En.progressBarFill, i === e.length - 1 && En.progressBarFillEnd, n.class),
2673
+ className: f(An.progressBarFill, i === e.length - 1 && An.progressBarFillEnd, n.class),
2646
2674
  style: {
2647
2675
  width: `${a}%`,
2648
2676
  background: n.color || void 0,
@@ -2650,8 +2678,8 @@ function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r =
2650
2678
  },
2651
2679
  title: n.label ? `${n.label}: ${n.amount}` : void 0,
2652
2680
  children: n.label && /* @__PURE__ */ V("div", {
2653
- className: En.progressBarLabel,
2654
- style: n.color ? { color: Dn(n.color) } : {},
2681
+ className: An.progressBarLabel,
2682
+ style: n.color ? { color: jn(n.color) } : {},
2655
2683
  children: n.label
2656
2684
  })
2657
2685
  }, i);
@@ -2659,21 +2687,21 @@ function On({ className: e = void 0, total: t = 100, progress: n = 0, style: r =
2659
2687
  }
2660
2688
  return /* @__PURE__ */ V("div", {
2661
2689
  ...i,
2662
- className: f(En.progressBar, e),
2690
+ className: f(An.progressBar, e),
2663
2691
  style: r,
2664
2692
  children: a()
2665
2693
  });
2666
2694
  }
2667
- function kn(e) {
2695
+ function Nn(e) {
2668
2696
  return Math.round(e / 5) * 5;
2669
2697
  }
2670
- function An(e) {
2698
+ function Pn(e) {
2671
2699
  return {
2672
- x: kn(e.x),
2673
- y: kn(e.y)
2700
+ x: Nn(e.x),
2701
+ y: Nn(e.y)
2674
2702
  };
2675
2703
  }
2676
- function jn(e, t, n) {
2704
+ function Fn(e, t, n) {
2677
2705
  let r = n.createSVGPoint();
2678
2706
  r.x = e, r.y = t;
2679
2707
  let i = n.getScreenCTM();
@@ -2682,18 +2710,18 @@ function jn(e, t, n) {
2682
2710
  y: 0
2683
2711
  };
2684
2712
  let a = r.matrixTransform(i.inverse());
2685
- return An({
2713
+ return Pn({
2686
2714
  x: a.x,
2687
2715
  y: a.y
2688
2716
  });
2689
2717
  }
2690
- function Mn(e, t) {
2718
+ function In(e, t) {
2691
2719
  return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
2692
2720
  }
2693
- function Nn(e, t, n) {
2721
+ function Ln(e, t, n) {
2694
2722
  let r = n.x - t.x, i = n.y - t.y, a = r * r + i * i;
2695
2723
  if (a === 0) return {
2696
- dist: Mn(e, t),
2724
+ dist: In(e, t),
2697
2725
  t: 0
2698
2726
  };
2699
2727
  let o = Math.max(0, Math.min(1, ((e.x - t.x) * r + (e.y - t.y) * i) / a)), s = t.x + o * r, c = t.y + o * i;
@@ -2702,12 +2730,12 @@ function Nn(e, t, n) {
2702
2730
  t: o
2703
2731
  };
2704
2732
  }
2705
- function Pn(e, t) {
2733
+ function Rn(e, t) {
2706
2734
  let n = null;
2707
2735
  for (let r of t) {
2708
2736
  let t = r.points;
2709
2737
  for (let i = 0; i < t.length; i++) {
2710
- let a = t[i], o = t[(i + 1) % t.length], { dist: s, t: c } = Nn(e, a, o);
2738
+ let a = t[i], o = t[(i + 1) % t.length], { dist: s, t: c } = Ln(e, a, o);
2711
2739
  s <= 8 && (!n || s < n.dist) && (n = {
2712
2740
  roomId: r.id,
2713
2741
  wallIndex: i,
@@ -2718,7 +2746,7 @@ function Pn(e, t) {
2718
2746
  }
2719
2747
  return n;
2720
2748
  }
2721
- function Fn(e, t) {
2749
+ function zn(e, t) {
2722
2750
  let n = !1;
2723
2751
  for (let r = 0, i = t.length - 1; r < t.length; i = r++) {
2724
2752
  let a = t[r].x, o = t[r].y, s = t[i].x, c = t[i].y;
@@ -2726,13 +2754,13 @@ function Fn(e, t) {
2726
2754
  }
2727
2755
  return n;
2728
2756
  }
2729
- function In(e) {
2757
+ function Bn(e) {
2730
2758
  return {
2731
2759
  x: e.reduce((e, t) => e + t.x, 0) / e.length,
2732
2760
  y: e.reduce((e, t) => e + t.y, 0) / e.length
2733
2761
  };
2734
2762
  }
2735
- function Ln(e, t, n, r) {
2763
+ function Vn(e, t, n, r) {
2736
2764
  return [
2737
2765
  {
2738
2766
  x: e,
@@ -2752,7 +2780,7 @@ function Ln(e, t, n, r) {
2752
2780
  }
2753
2781
  ];
2754
2782
  }
2755
- function Rn(e, t, n, r) {
2783
+ function Hn(e, t, n, r) {
2756
2784
  let i = t.x - e.x, a = t.y - e.y, o = Math.sqrt(i * i + a * a);
2757
2785
  if (o < .001) return null;
2758
2786
  let s = i / o, c = a / o, l = e.x + i * n, u = e.y + a * n, d = Math.min(r / 2, o / 2 - .001);
@@ -2771,13 +2799,13 @@ function Rn(e, t, n, r) {
2771
2799
  }
2772
2800
  };
2773
2801
  }
2774
- function zn(e) {
2802
+ function Un(e) {
2775
2803
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2776
2804
  }
2777
- function Bn(e) {
2805
+ function Wn(e) {
2778
2806
  return e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ") + " Z";
2779
2807
  }
2780
- function Vn(e, t) {
2808
+ function Gn(e, t) {
2781
2809
  if (e.length < 2) return [];
2782
2810
  if (t.length === 0) return [e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ") + " Z"];
2783
2811
  let n = e.length, r = [], i = [`M ${e[0].x.toFixed(2)},${e[0].y.toFixed(2)}`];
@@ -2800,8 +2828,8 @@ function Vn(e, t) {
2800
2828
  }
2801
2829
  return r[0] = [...i, ...r[0].slice(1)], r.map((e) => e.join(" "));
2802
2830
  }
2803
- function Hn(e, t, n) {
2804
- let r = Rn(e, t, n.t, n.width);
2831
+ function Kn(e, t, n) {
2832
+ let r = Hn(e, t, n.t, n.width);
2805
2833
  if (!r) return "";
2806
2834
  let { p1: i, p2: a, perp: o } = r, s = {
2807
2835
  x: i.x + o.x * n.width,
@@ -2809,7 +2837,7 @@ function Hn(e, t, n) {
2809
2837
  };
2810
2838
  return [`M ${i.x.toFixed(2)},${i.y.toFixed(2)} L ${a.x.toFixed(2)},${a.y.toFixed(2)}`, `M ${i.x.toFixed(2)},${i.y.toFixed(2)} A ${n.width},${n.width} 0 0,1 ${s.x.toFixed(2)},${s.y.toFixed(2)}`].join(" ");
2811
2839
  }
2812
- function Un(e, t) {
2840
+ function qn(e, t) {
2813
2841
  let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
2814
2842
  for (let t of e) for (let e of t.points) e.x < n && (n = e.x), e.y < r && (r = e.y), e.x > i && (i = e.x), e.y > a && (a = e.y);
2815
2843
  isFinite(n) || (n = 0, r = 0, i = 400, a = 300);
@@ -2819,10 +2847,10 @@ function Un(e, t) {
2819
2847
  (i - n + 10).toFixed(2),
2820
2848
  (a - r + 10).toFixed(2)
2821
2849
  ].join(" "), s = e.map((e) => {
2822
- let n = t.filter((t) => t.roomId === e.id), r = Vn(e.points, n), i = Bn(e.points), a = In(e.points), o = r.map((e) => ` <path d="${e}" />`).join("\n"), s = n.map((t) => {
2823
- let n = e.points[t.wallIndex], r = e.points[(t.wallIndex + 1) % e.points.length], i = Hn(n, r, t);
2850
+ let n = t.filter((t) => t.roomId === e.id), r = Gn(e.points, n), i = Wn(e.points), a = Bn(e.points), o = r.map((e) => ` <path d="${e}" />`).join("\n"), s = n.map((t) => {
2851
+ let n = e.points[t.wallIndex], r = e.points[(t.wallIndex + 1) % e.points.length], i = Kn(n, r, t);
2824
2852
  return i ? ` <path d="${i}" fill="none" />` : "";
2825
- }).filter(Boolean).join("\n"), c = e.name ? ` <text fontSize="5" x="${a.x.toFixed(1)}" y="${a.y.toFixed(1)}">${zn(e.name)}</text>` : "";
2853
+ }).filter(Boolean).join("\n"), c = e.name ? ` <text fontSize="5" x="${a.x.toFixed(1)}" y="${a.y.toFixed(1)}">${Un(e.name)}</text>` : "";
2826
2854
  return [
2827
2855
  ` <g id="${e.id}">`,
2828
2856
  o,
@@ -2841,7 +2869,7 @@ function Un(e, t) {
2841
2869
  "</svg>"
2842
2870
  ].join("\n");
2843
2871
  }
2844
- function Wn(e) {
2872
+ function Jn(e) {
2845
2873
  let t = [];
2846
2874
  for (let n of e.matchAll(/[ML]\s*([-\d.]+)[,\s]+([-\d.]+)/gi)) t.push({
2847
2875
  x: parseFloat(n[1]),
@@ -2849,14 +2877,14 @@ function Wn(e) {
2849
2877
  });
2850
2878
  return t;
2851
2879
  }
2852
- function Gn(e) {
2880
+ function Yn(e) {
2853
2881
  let t = new DOMParser().parseFromString(e, "image/svg+xml"), n = [];
2854
2882
  return t.querySelectorAll("[id^=\"room\"]").forEach((e) => {
2855
2883
  let t = e.querySelector("[id=\"background\"]");
2856
2884
  if (!t) return;
2857
2885
  let r = t.getAttribute("d");
2858
2886
  if (!r) return;
2859
- let i = Wn(r);
2887
+ let i = Jn(r);
2860
2888
  if (i.length < 3) return;
2861
2889
  let a = e.querySelector("text")?.textContent?.trim() ?? "";
2862
2890
  n.push({
@@ -2866,8 +2894,8 @@ function Gn(e) {
2866
2894
  });
2867
2895
  }), n;
2868
2896
  }
2869
- function Kn(e, t) {
2870
- let n = Un(e, t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
2897
+ function Xn(e, t) {
2898
+ let n = qn(e, t), r = new Blob([n], { type: "image/svg+xml" }), i = URL.createObjectURL(r), a = document.createElement("a");
2871
2899
  a.href = i, a.download = "room-plan.svg", a.click(), URL.revokeObjectURL(i);
2872
2900
  }
2873
2901
  var Q = {
@@ -2942,20 +2970,20 @@ var Q = {
2942
2970
  polyCloseTarget: "polyCloseTarget_snjYx",
2943
2971
  polyVertex: "polyVertex_fw0nX",
2944
2972
  vertexHandle: "vertexHandle_-z7g5"
2945
- }, qn = 6, Jn = 5, Yn = 1.25, Xn = .25, Zn = 12, Qn = 0;
2946
- function $n(e) {
2947
- return Qn += 1, `${e}${Qn}`;
2973
+ }, Zn = 6, Qn = 5, $n = 1.25, er = .25, tr = 12, nr = 0;
2974
+ function rr(e) {
2975
+ return nr += 1, `${e}${nr}`;
2948
2976
  }
2949
- var er = {
2977
+ var ir = {
2950
2978
  select: "Drag inside to move · Drag corner to reshape · Click wall to add corner · Dbl-click corner to remove · Delete to erase",
2951
2979
  rect: "Drag to draw a rectangular room",
2952
2980
  polygon: "Click to place corners · Click first point or Enter to close · Esc to cancel"
2953
2981
  };
2954
- function tr({ className: e }) {
2982
+ function ar({ className: e }) {
2955
2983
  let [t, n] = d([]), [r, i] = d([]), [o, c] = d("rect"), [l, m] = d(null), [g, _] = d(null), [v, y] = d(null), [b, x] = d(null), [S, E] = d([]), [D, O] = d(null), [k, j] = d(1), [P, F] = d({
2956
2984
  x: 0,
2957
2985
  y: 0
2958
- }), I = u(null), ee = u(null), te = u(null), z = u(null), re = u(null), ie = u({
2986
+ }), I = u(null), ee = u(null), R = u(null), z = u(null), re = u(null), ie = u({
2959
2987
  rooms: t,
2960
2988
  doors: r,
2961
2989
  tool: o,
@@ -2979,7 +3007,7 @@ function tr({ className: e }) {
2979
3007
  });
2980
3008
  function ae(e) {
2981
3009
  e.length < 3 || (n((t) => [...t, {
2982
- id: $n("room"),
3010
+ id: rr("room"),
2983
3011
  name: `Room ${t.length + 1}`,
2984
3012
  points: e
2985
3013
  }]), E([]), O(null));
@@ -2989,9 +3017,9 @@ function tr({ className: e }) {
2989
3017
  if (!e) return;
2990
3018
  function t(e) {
2991
3019
  e.preventDefault();
2992
- let { zoom: t, pan: n } = ie.current, r = jn(e.clientX, e.clientY, z.current);
3020
+ let { zoom: t, pan: n } = ie.current, r = Fn(e.clientX, e.clientY, z.current);
2993
3021
  if (!r) return;
2994
- let i = e.deltaY < 0 ? Yn : 1 / Yn, a = Math.max(Xn, Math.min(Zn, t * i));
3022
+ let i = e.deltaY < 0 ? $n : 1 / $n, a = Math.max(er, Math.min(tr, t * i));
2995
3023
  F({
2996
3024
  x: r.x - (r.x - n.x) * (t / a),
2997
3025
  y: r.y - (r.y - n.y) * (t / a)
@@ -3014,7 +3042,7 @@ function tr({ className: e }) {
3014
3042
  return;
3015
3043
  }
3016
3044
  if ((e.key === "+" || e.key === "=") && !(e.target instanceof HTMLInputElement)) {
3017
- let e = Math.max(Xn, Math.min(Zn, s * Yn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3045
+ let e = Math.max(er, Math.min(tr, s * $n)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3018
3046
  j(e), F({
3019
3047
  x: t - 400 / e / 2,
3020
3048
  y: n - 300 / e / 2
@@ -3022,7 +3050,7 @@ function tr({ className: e }) {
3022
3050
  return;
3023
3051
  }
3024
3052
  if (e.key === "-" && !(e.target instanceof HTMLInputElement)) {
3025
- let e = Math.max(Xn, Math.min(Zn, s / Yn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3053
+ let e = Math.max(er, Math.min(tr, s / $n)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
3026
3054
  j(e), F({
3027
3055
  x: t - 400 / e / 2,
3028
3056
  y: n - 300 / e / 2
@@ -3041,20 +3069,20 @@ function tr({ className: e }) {
3041
3069
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
3042
3070
  }, []);
3043
3071
  function oe(e, t = k, n = P) {
3044
- let r = Math.max(Xn, Math.min(Zn, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
3072
+ let r = Math.max(er, Math.min(tr, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
3045
3073
  F({
3046
3074
  x: i - 400 / r / 2,
3047
3075
  y: a - 300 / r / 2
3048
3076
  }), j(r);
3049
3077
  }
3050
3078
  function U(e) {
3051
- return z.current ? jn(e.clientX, e.clientY, z.current) : null;
3079
+ return z.current ? Fn(e.clientX, e.clientY, z.current) : null;
3052
3080
  }
3053
3081
  function se(e, t) {
3054
3082
  let n = null;
3055
3083
  for (let r = 0; r < t.points.length; r++) {
3056
- let i = Mn(e, t.points[r]);
3057
- i <= qn && (!n || i < n.d) && (n = {
3084
+ let i = In(e, t.points[r]);
3085
+ i <= Zn && (!n || i < n.d) && (n = {
3058
3086
  index: r,
3059
3087
  d: i
3060
3088
  });
@@ -3064,8 +3092,8 @@ function tr({ className: e }) {
3064
3092
  function W(e, t) {
3065
3093
  let n = null;
3066
3094
  for (let r = 0; r < t.points.length; r++) {
3067
- let i = t.points[r], a = t.points[(r + 1) % t.points.length], { dist: o, t: s } = Nn(e, i, a);
3068
- o <= Jn && (!n || o < n.d) && (n = {
3095
+ let i = t.points[r], a = t.points[(r + 1) % t.points.length], { dist: o, t: s } = Ln(e, i, a);
3096
+ o <= Qn && (!n || o < n.d) && (n = {
3069
3097
  index: r,
3070
3098
  t: s,
3071
3099
  d: o
@@ -3118,7 +3146,7 @@ function tr({ className: e }) {
3118
3146
  let t = z.current;
3119
3147
  if (t) {
3120
3148
  let n = t.getBoundingClientRect();
3121
- te.current = {
3149
+ R.current = {
3122
3150
  startClient: {
3123
3151
  x: e.clientX,
3124
3152
  y: e.clientY
@@ -3137,9 +3165,9 @@ function tr({ className: e }) {
3137
3165
  if (g) {
3138
3166
  let e = t.find((e) => e.id === g);
3139
3167
  if (e) {
3140
- let t = Pn(n, [e]);
3168
+ let t = Rn(n, [e]);
3141
3169
  t && i((e) => [...e, {
3142
- id: $n("door"),
3170
+ id: rr("door"),
3143
3171
  roomId: t.roomId,
3144
3172
  wallIndex: t.wallIndex,
3145
3173
  t: t.t,
@@ -3153,7 +3181,7 @@ function tr({ className: e }) {
3153
3181
  return;
3154
3182
  }
3155
3183
  if (o === "polygon") {
3156
- S.length >= 3 && Mn(n, S[0]) <= 8 ? ae(S) : E((e) => [...e, n]);
3184
+ S.length >= 3 && In(n, S[0]) <= 8 ? ae(S) : E((e) => [...e, n]);
3157
3185
  return;
3158
3186
  }
3159
3187
  if (o === "select") {
@@ -3174,7 +3202,7 @@ function tr({ className: e }) {
3174
3202
  if (e) {
3175
3203
  let t = W(n, e);
3176
3204
  if (t) {
3177
- let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = An({
3205
+ let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = Pn({
3178
3206
  x: r.x + (i.x - r.x) * t.t,
3179
3207
  y: r.y + (i.y - r.y) * t.t
3180
3208
  }), o = ce(e.id, t.index, t.t, a);
@@ -3188,7 +3216,7 @@ function tr({ className: e }) {
3188
3216
  return;
3189
3217
  }
3190
3218
  }
3191
- let r = t.find((e) => Fn(n, e.points));
3219
+ let r = t.find((e) => zn(n, e.points));
3192
3220
  if (r) {
3193
3221
  m(r.id), I.current = {
3194
3222
  type: "room",
@@ -3202,7 +3230,7 @@ function tr({ className: e }) {
3202
3230
  }
3203
3231
  }
3204
3232
  }
3205
- function G(e) {
3233
+ function de(e) {
3206
3234
  if (o !== "select" || g) return;
3207
3235
  let n = U(e);
3208
3236
  if (!n) return;
@@ -3211,9 +3239,9 @@ function tr({ className: e }) {
3211
3239
  let i = se(n, r);
3212
3240
  i && (e.preventDefault(), le(r.id, i.index));
3213
3241
  }
3214
- function K(e) {
3215
- if (te.current) {
3216
- let { startClient: t, origPan: n, scaleX: r, scaleY: i } = te.current;
3242
+ function G(e) {
3243
+ if (R.current) {
3244
+ let { startClient: t, origPan: n, scaleX: r, scaleY: i } = R.current;
3217
3245
  F({
3218
3246
  x: n.x - (e.clientX - t.x) * r,
3219
3247
  y: n.y - (e.clientY - t.y) * i
@@ -3225,7 +3253,7 @@ function tr({ className: e }) {
3225
3253
  if (ee.current && g) {
3226
3254
  let e = t.find((e) => e.id === g);
3227
3255
  if (e) {
3228
- let t = Pn(r, [e]);
3256
+ let t = Rn(r, [e]);
3229
3257
  t && i((e) => e.map((e) => e.id === ee.current ? {
3230
3258
  ...e,
3231
3259
  wallIndex: t.wallIndex,
@@ -3245,7 +3273,7 @@ function tr({ className: e }) {
3245
3273
  if (o === "select" && !g && I.current) {
3246
3274
  let e = I.current;
3247
3275
  if (e.type === "vertex") {
3248
- let t = r.x - e.start.x, i = r.y - e.start.y, a = An({
3276
+ let t = r.x - e.start.x, i = r.y - e.start.y, a = Pn({
3249
3277
  x: e.origPt.x + t,
3250
3278
  y: e.origPt.y + i
3251
3279
  });
@@ -3270,9 +3298,9 @@ function tr({ className: e }) {
3270
3298
  }
3271
3299
  }
3272
3300
  }
3273
- function de(e) {
3274
- if (te.current) {
3275
- te.current = null;
3301
+ function fe(e) {
3302
+ if (R.current) {
3303
+ R.current = null;
3276
3304
  return;
3277
3305
  }
3278
3306
  let t = U(e);
@@ -3280,15 +3308,15 @@ function tr({ className: e }) {
3280
3308
  if (o === "rect" && v) {
3281
3309
  let e = Math.min(v.x, t.x), r = Math.min(v.y, t.y), i = Math.abs(t.x - v.x), a = Math.abs(t.y - v.y);
3282
3310
  i >= 10 && a >= 10 && n((t) => [...t, {
3283
- id: $n("room"),
3311
+ id: rr("room"),
3284
3312
  name: `Room ${t.length + 1}`,
3285
- points: Ln(e, r, i, a)
3313
+ points: Vn(e, r, i, a)
3286
3314
  }]), y(null), x(null);
3287
3315
  }
3288
3316
  ee.current = null, I.current = null;
3289
3317
  }
3290
3318
  }
3291
- function fe(e) {
3319
+ function K(e) {
3292
3320
  l && n((t) => t.map((t) => t.id === l ? {
3293
3321
  ...t,
3294
3322
  name: e
@@ -3318,10 +3346,10 @@ function tr({ className: e }) {
3318
3346
  r.onload = (e) => {
3319
3347
  let t = e.target?.result;
3320
3348
  if (typeof t != "string") return;
3321
- let r = Gn(t);
3349
+ let r = Yn(t);
3322
3350
  r.length !== 0 && (n(r.map((e) => ({
3323
3351
  ...e,
3324
- id: $n("room")
3352
+ id: rr("room")
3325
3353
  }))), i([]), m(null), _(null), j(1), F({
3326
3354
  x: 0,
3327
3355
  y: 0
@@ -3341,7 +3369,7 @@ function tr({ className: e }) {
3341
3369
  },
3342
3370
  {
3343
3371
  t: "rect",
3344
- icon: L,
3372
+ icon: te,
3345
3373
  label: "Rectangle room"
3346
3374
  },
3347
3375
  {
@@ -3366,8 +3394,8 @@ function tr({ className: e }) {
3366
3394
  /* @__PURE__ */ V("button", {
3367
3395
  title: "Zoom in (+)",
3368
3396
  className: Q.roomDrawerToolbarBtn,
3369
- onClick: () => oe(Yn),
3370
- disabled: k >= Zn,
3397
+ onClick: () => oe($n),
3398
+ disabled: k >= tr,
3371
3399
  children: /* @__PURE__ */ V(p, { icon: N })
3372
3400
  }),
3373
3401
  /* @__PURE__ */ H("button", {
@@ -3384,8 +3412,8 @@ function tr({ className: e }) {
3384
3412
  /* @__PURE__ */ V("button", {
3385
3413
  title: "Zoom out (−)",
3386
3414
  className: Q.roomDrawerToolbarBtn,
3387
- onClick: () => oe(1 / Yn),
3388
- disabled: k <= Xn,
3415
+ onClick: () => oe(1 / $n),
3416
+ disabled: k <= er,
3389
3417
  children: /* @__PURE__ */ V(p, { icon: M })
3390
3418
  }),
3391
3419
  /* @__PURE__ */ V("div", { className: Q.roomDrawerToolbarSep }),
@@ -3398,7 +3426,7 @@ function tr({ className: e }) {
3398
3426
  /* @__PURE__ */ V("button", {
3399
3427
  title: "Download SVG",
3400
3428
  className: Q.roomDrawerToolbarBtn,
3401
- onClick: () => Kn(t, r),
3429
+ onClick: () => Xn(t, r),
3402
3430
  disabled: t.length === 0,
3403
3431
  children: /* @__PURE__ */ V(p, { icon: w })
3404
3432
  }),
@@ -3416,9 +3444,9 @@ function tr({ className: e }) {
3416
3444
  className: f(Q.roomDrawerCanvas, we),
3417
3445
  viewBox: `${P.x} ${P.y} ${q} ${Ce}`,
3418
3446
  onMouseDown: ue,
3419
- onMouseMove: K,
3420
- onMouseUp: de,
3421
- onDoubleClick: G,
3447
+ onMouseMove: G,
3448
+ onMouseUp: fe,
3449
+ onDoubleClick: de,
3422
3450
  children: [
3423
3451
  /* @__PURE__ */ V("defs", { children: /* @__PURE__ */ V("pattern", {
3424
3452
  id: "rd-grid",
@@ -3439,7 +3467,7 @@ function tr({ className: e }) {
3439
3467
  fill: "url(#rd-grid)"
3440
3468
  }),
3441
3469
  t.map((e) => {
3442
- let t = e.points, n = t.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x},${e.y}`).join(" ") + " Z", i = Vn(t, r.filter((t) => t.roomId === e.id)), a = In(t), o = l === e.id, s = g === e.id;
3470
+ let t = e.points, n = t.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x},${e.y}`).join(" ") + " Z", i = Gn(t, r.filter((t) => t.roomId === e.id)), a = Bn(t), o = l === e.id, s = g === e.id;
3443
3471
  return /* @__PURE__ */ H("g", { children: [
3444
3472
  /* @__PURE__ */ V("path", {
3445
3473
  d: n,
@@ -3462,7 +3490,7 @@ function tr({ className: e }) {
3462
3490
  r.map((e) => {
3463
3491
  let n = t.find((t) => t.id === e.roomId);
3464
3492
  if (!n) return null;
3465
- let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Rn(r, i, e.t, e.width);
3493
+ let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Hn(r, i, e.t, e.width);
3466
3494
  return a ? /* @__PURE__ */ V("line", {
3467
3495
  x1: a.p1.x,
3468
3496
  y1: a.p1.y,
@@ -3474,7 +3502,7 @@ function tr({ className: e }) {
3474
3502
  g && xe.map((e) => {
3475
3503
  let n = t.find((t) => t.id === e.roomId);
3476
3504
  if (!n) return null;
3477
- let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Rn(r, i, e.t, e.width);
3505
+ let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Hn(r, i, e.t, e.width);
3478
3506
  if (!a) return null;
3479
3507
  let o = {
3480
3508
  x: (a.p1.x + a.p2.x) / 2,
@@ -3533,7 +3561,7 @@ function tr({ className: e }) {
3533
3561
  /* @__PURE__ */ V("input", {
3534
3562
  className: Q.roomDrawerInfoInput,
3535
3563
  value: ye.name,
3536
- onChange: (e) => fe(e.target.value),
3564
+ onChange: (e) => K(e.target.value),
3537
3565
  placeholder: "Room name"
3538
3566
  }),
3539
3567
  /* @__PURE__ */ H("button", {
@@ -3546,7 +3574,7 @@ function tr({ className: e }) {
3546
3574
  className: Q.roomDrawerInfoDelete,
3547
3575
  onClick: me,
3548
3576
  title: "Delete room",
3549
- children: /* @__PURE__ */ V(p, { icon: R })
3577
+ children: /* @__PURE__ */ V(p, { icon: L })
3550
3578
  })
3551
3579
  ]
3552
3580
  }),
@@ -3597,7 +3625,7 @@ function tr({ className: e }) {
3597
3625
  className: Q.roomDrawerInfoDelete,
3598
3626
  onClick: () => he(e.id),
3599
3627
  title: "Delete door",
3600
- children: /* @__PURE__ */ V(p, { icon: R })
3628
+ children: /* @__PURE__ */ V(p, { icon: L })
3601
3629
  })
3602
3630
  ]
3603
3631
  }, e.id))]
@@ -3605,12 +3633,12 @@ function tr({ className: e }) {
3605
3633
  }),
3606
3634
  /* @__PURE__ */ V("div", {
3607
3635
  className: Q.roomDrawerHint,
3608
- children: g ? "Click a wall to add a door · Adjust width or delete from the list · Done or Esc to finish" : `${er[o]} · Scroll to zoom · Middle-drag to pan · 0 to reset`
3636
+ children: g ? "Click a wall to add a door · Adjust width or delete from the list · Done or Esc to finish" : `${ir[o]} · Scroll to zoom · Middle-drag to pan · 0 to reset`
3609
3637
  })
3610
3638
  ]
3611
3639
  });
3612
3640
  }
3613
- var nr = {
3641
+ var or = {
3614
3642
  "roomViewer-containerLoading": "roomViewer-containerLoading_BL3M-",
3615
3643
  roomViewerContainerLoading: "roomViewer-containerLoading_BL3M-",
3616
3644
  "roomViewer-container": "roomViewer-container_YlmB8",
@@ -3628,7 +3656,7 @@ var nr = {
3628
3656
  };
3629
3657
  //#endregion
3630
3658
  //#region package/common/roomViewer/roomViewer.tsx
3631
- function rr({ data: e = [] }) {
3659
+ function sr({ data: e = [] }) {
3632
3660
  let t = u(null), [, n] = d(null), [r, i] = d(0), [o, s] = d(!0);
3633
3661
  a(() => {
3634
3662
  let i = new AbortController();
@@ -3648,15 +3676,15 @@ function rr({ data: e = [] }) {
3648
3676
  if (n) {
3649
3677
  let [e] = t.querySelectorAll(`[id="room${n}"]`);
3650
3678
  if (e) {
3651
- e.classList.remove(nr.roomViewerSelected, nr.roomViewerTint);
3679
+ e.classList.remove(or.roomViewerSelected, or.roomViewerTint);
3652
3680
  let [t] = e.querySelectorAll("[id=\"background\"]");
3653
- t && t.classList.remove(nr.roomViewerTint);
3681
+ t && t.classList.remove(or.roomViewerTint);
3654
3682
  }
3655
3683
  }
3656
3684
  if (a) {
3657
- a.classList.add(nr.roomViewerSelected);
3685
+ a.classList.add(or.roomViewerSelected);
3658
3686
  let [e] = a.querySelectorAll("[id=\"background\"]");
3659
- (e ?? a).classList.add(nr.roomViewerTint);
3687
+ (e ?? a).classList.add(or.roomViewerTint);
3660
3688
  }
3661
3689
  return r;
3662
3690
  });
@@ -3669,19 +3697,19 @@ function rr({ data: e = [] }) {
3669
3697
  }
3670
3698
  let m = e[r]?.data ?? null;
3671
3699
  return /* @__PURE__ */ H("div", {
3672
- className: nr.roomViewer,
3700
+ className: or.roomViewer,
3673
3701
  ref: t,
3674
3702
  children: [
3675
3703
  /* @__PURE__ */ V("h3", {
3676
- className: nr.roomViewerHeader,
3704
+ className: or.roomViewerHeader,
3677
3705
  children: e[r]?.label ?? ""
3678
3706
  }),
3679
3707
  /* @__PURE__ */ V("div", {
3680
- className: f(nr.roomViewerContainer, o && nr.roomViewerContainerLoading),
3708
+ className: f(or.roomViewerContainer, o && or.roomViewerContainerLoading),
3681
3709
  children: m
3682
3710
  }, r),
3683
3711
  e.length > 1 && /* @__PURE__ */ H("div", {
3684
- className: nr.roomViewerActions,
3712
+ className: or.roomViewerActions,
3685
3713
  children: [
3686
3714
  /* @__PURE__ */ V(p, {
3687
3715
  icon: _,
@@ -3697,21 +3725,21 @@ function rr({ data: e = [] }) {
3697
3725
  ]
3698
3726
  });
3699
3727
  }
3700
- var ir = { scrollbarProvider: "scrollbarProvider_IMBFu" };
3728
+ var cr = { scrollbarProvider: "scrollbarProvider_IMBFu" };
3701
3729
  //#endregion
3702
3730
  //#region package/common/scrollbarProvider/scrollbarProvider.tsx
3703
- function ar({ className: e = void 0, children: t = void 0 }) {
3731
+ function lr({ className: e = void 0, children: t = void 0 }) {
3704
3732
  return /* @__PURE__ */ V("div", {
3705
- className: f(ir.scrollbarProvider, e),
3733
+ className: f(cr.scrollbarProvider, e),
3706
3734
  children: t
3707
3735
  });
3708
3736
  }
3709
3737
  //#endregion
3710
3738
  //#region package/common/scrollbarProvider/index.ts
3711
- var or = ar, sr = { resultCount: "resultCount_Sn48Q" };
3739
+ var ur = lr, dr = { resultCount: "resultCount_Sn48Q" };
3712
3740
  //#endregion
3713
3741
  //#region package/common/searchInput/searchInput.tsx
3714
- function cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, debounceMs: o = 500, totalAmount: s, showAmount: c = !0, className: l, width: d, ...f }) {
3742
+ function fr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, debounceMs: o = 500, totalAmount: s, showAmount: c = !0, className: l, width: d, ...f }) {
3715
3743
  let p = u(null);
3716
3744
  a(() => () => {
3717
3745
  p.current !== null && clearTimeout(p.current);
@@ -3727,14 +3755,14 @@ function cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, de
3727
3755
  ...f,
3728
3756
  className: l,
3729
3757
  style: d == null ? void 0 : { width: d },
3730
- children: [/* @__PURE__ */ V(rt, {
3758
+ children: [/* @__PURE__ */ V(st, {
3731
3759
  type: X.Search,
3732
3760
  label: i,
3733
3761
  placeholder: r,
3734
3762
  value: e,
3735
3763
  onChange: m
3736
3764
  }), h && /* @__PURE__ */ H("p", {
3737
- className: sr.resultCount,
3765
+ className: dr.resultCount,
3738
3766
  children: [
3739
3767
  s,
3740
3768
  " ",
@@ -3743,7 +3771,7 @@ function cr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, de
3743
3771
  })]
3744
3772
  });
3745
3773
  }
3746
- var lr = {
3774
+ var pr = {
3747
3775
  stepper: "stepper_kiS2A",
3748
3776
  "stepper-clickable": "stepper-clickable_Nm6fP",
3749
3777
  stepperClickable: "stepper-clickable_Nm6fP",
@@ -3773,7 +3801,7 @@ var lr = {
3773
3801
  };
3774
3802
  //#endregion
3775
3803
  //#region package/common/stepper/stepper.tsx
3776
- function ur() {
3804
+ function mr() {
3777
3805
  return /* @__PURE__ */ V("svg", {
3778
3806
  strokeLinejoin: "round",
3779
3807
  strokeLinecap: "round",
@@ -3789,26 +3817,26 @@ function ur() {
3789
3817
  })
3790
3818
  });
3791
3819
  }
3792
- function dr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", onStepClicked: i = null, nonLinear: a = !1, hideLabels: o = !1, className: s, style: c, classNames: l, styles: u, ...d }) {
3820
+ function hr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", onStepClicked: i = null, nonLinear: a = !1, hideLabels: o = !1, className: s, style: c, classNames: l, styles: u, ...d }) {
3793
3821
  let p = r === "vertical";
3794
3822
  return /* @__PURE__ */ V("div", {
3795
3823
  ...d,
3796
- className: f(lr.stepper, { [lr.stepperVertical]: p }, l?.root, s),
3824
+ className: f(pr.stepper, { [pr.stepperVertical]: p }, l?.root, s),
3797
3825
  style: {
3798
3826
  ...u?.root,
3799
3827
  ...c
3800
3828
  },
3801
3829
  children: t.map((r, s) => {
3802
- let c = s < n, d = s <= n, m = !!i && (a ? s !== n : c), h = f(lr.stepperEntry, { [lr.stepperEntryActive]: d }, { [lr.stepperEntryDone]: c }, { [lr.stepperClickable]: m }, l?.entry), g = /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("div", {
3803
- className: f(lr.stepperEntryNumber, { [lr.stepperEntryNumberDone]: c }, l?.entryNumber),
3830
+ let c = s < n, d = s <= n, m = !!i && (a ? s !== n : c), h = f(pr.stepperEntry, { [pr.stepperEntryActive]: d }, { [pr.stepperEntryDone]: c }, { [pr.stepperClickable]: m }, l?.entry), g = /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("div", {
3831
+ className: f(pr.stepperEntryNumber, { [pr.stepperEntryNumberDone]: c }, l?.entryNumber),
3804
3832
  style: u?.entryNumber,
3805
- children: c ? /* @__PURE__ */ V(ur, {}) : s + 1
3833
+ children: c ? /* @__PURE__ */ V(mr, {}) : s + 1
3806
3834
  }), !o && /* @__PURE__ */ V("div", {
3807
- className: f(lr.stepperEntryLabel, { [lr.stepperEntryLabelVertical]: p }, l?.entryLabel),
3835
+ className: f(pr.stepperEntryLabel, { [pr.stepperEntryLabelVertical]: p }, l?.entryLabel),
3808
3836
  style: u?.entryLabel,
3809
3837
  children: r.label
3810
3838
  })] });
3811
- return /* @__PURE__ */ H(e.Fragment, { children: [m ? /* @__PURE__ */ V(Ie, {
3839
+ return /* @__PURE__ */ H(e.Fragment, { children: [m ? /* @__PURE__ */ V(Le, {
3812
3840
  className: h,
3813
3841
  style: u?.entry,
3814
3842
  onClick: () => i(s),
@@ -3820,7 +3848,7 @@ function dr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", on
3820
3848
  "aria-current": s === n ? "step" : void 0,
3821
3849
  children: g
3822
3850
  }), s < t.length - 1 && /* @__PURE__ */ V("div", {
3823
- className: f(lr.stepperConnector, { [lr.stepperConnectorFilled]: c }, { [lr.stepperConnectorVertical]: p }, l?.connector),
3851
+ className: f(pr.stepperConnector, { [pr.stepperConnectorFilled]: c }, { [pr.stepperConnectorVertical]: p }, l?.connector),
3824
3852
  style: u?.connector
3825
3853
  })] }, s);
3826
3854
  })
@@ -3828,7 +3856,7 @@ function dr({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", on
3828
3856
  }
3829
3857
  //#endregion
3830
3858
  //#region package/services/tenorService.ts
3831
- var fr = "https://tenor.googleapis.com/v2", pr = class {
3859
+ var gr = "https://tenor.googleapis.com/v2", _r = class {
3832
3860
  constructor(e) {
3833
3861
  this.key = e;
3834
3862
  }
@@ -3837,14 +3865,14 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3837
3865
  q: e,
3838
3866
  key: this.key
3839
3867
  });
3840
- return t.limit != null && n.set("limit", String(t.limit)), t.contentfilter != null && n.set("contentfilter", t.contentfilter), t.pos != null && n.set("pos", t.pos), (await fetch(`${fr}/search?${n}`)).json();
3868
+ 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(`${gr}/search?${n}`)).json();
3841
3869
  }
3842
3870
  async searchSuggestions(e) {
3843
3871
  let t = new URLSearchParams({
3844
3872
  q: e,
3845
3873
  key: this.key
3846
3874
  });
3847
- return (await fetch(`${fr}/search_suggestions?${t}`)).json();
3875
+ return (await fetch(`${gr}/search_suggestions?${t}`)).json();
3848
3876
  }
3849
3877
  registerShare(e, t) {
3850
3878
  let n = new URLSearchParams({
@@ -3852,9 +3880,9 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3852
3880
  q: e,
3853
3881
  key: this.key
3854
3882
  });
3855
- fetch(`${fr}/registershare?${n}`).catch(() => null);
3883
+ fetch(`${gr}/registershare?${n}`).catch(() => null);
3856
3884
  }
3857
- }, mr = {
3885
+ }, vr = {
3858
3886
  gifPreview: "gifPreview_-ECUZ",
3859
3887
  "gifPreview-image": "gifPreview-image_Aq7-a",
3860
3888
  gifPreviewImage: "gifPreview-image_Aq7-a",
@@ -3864,25 +3892,25 @@ var fr = "https://tenor.googleapis.com/v2", pr = class {
3864
3892
  };
3865
3893
  //#endregion
3866
3894
  //#region package/common/tenorPicker/components/gifPreview/gifPreview.tsx
3867
- function hr({ className: e, previewItems: t = [], onSelect: n, onLoadAdditional: r }) {
3895
+ function yr({ className: e, previewItems: t = [], onSelect: n, onLoadAdditional: r }) {
3868
3896
  function i(e) {
3869
3897
  let t = e.currentTarget, n = t.scrollHeight - t.clientHeight * 1.5;
3870
3898
  t.scrollTop >= n && r?.();
3871
3899
  }
3872
3900
  return /* @__PURE__ */ V(B, { children: t.length > 0 && /* @__PURE__ */ V("div", {
3873
- className: f(mr.gifPreview, e),
3901
+ className: f(vr.gifPreview, e),
3874
3902
  onScroll: i,
3875
- children: t.map((e, t) => /* @__PURE__ */ V(Ie, {
3876
- className: mr.gifPreviewImageContainer,
3903
+ children: t.map((e, t) => /* @__PURE__ */ V(Le, {
3904
+ className: vr.gifPreviewImageContainer,
3877
3905
  onClick: () => n?.(e),
3878
3906
  children: /* @__PURE__ */ V("div", {
3879
- className: mr.gifPreviewImage,
3907
+ className: vr.gifPreviewImage,
3880
3908
  style: { backgroundImage: `url(${e.media_formats.tinygif.url})` }
3881
3909
  })
3882
3910
  }, `${e.id}_${t}`))
3883
3911
  }) });
3884
3912
  }
3885
- var gr = {
3913
+ var br = {
3886
3914
  gifView: "gifView_Fa2zj",
3887
3915
  "gifView-loading": "gifView-loading_LfNJr",
3888
3916
  gifViewLoading: "gifView-loading_LfNJr",
@@ -3890,20 +3918,20 @@ var gr = {
3890
3918
  };
3891
3919
  //#endregion
3892
3920
  //#region package/common/tenorPicker/components/gifView/gifView.tsx
3893
- function _r({ className: e, src: t = "" }) {
3921
+ function xr({ className: e, src: t = "" }) {
3894
3922
  let [n, r] = d(!0);
3895
3923
  return a(() => {
3896
3924
  r(!0);
3897
3925
  }, [t]), /* @__PURE__ */ H("div", {
3898
- className: f(gr.gifView, e),
3926
+ className: f(br.gifView, e),
3899
3927
  children: [/* @__PURE__ */ V("img", {
3900
- className: gr.tenorPickerSelected,
3928
+ className: br.tenorPickerSelected,
3901
3929
  src: t,
3902
3930
  onLoad: () => r(!1)
3903
- }), n && /* @__PURE__ */ V("div", { className: gr.gifViewLoading })]
3931
+ }), n && /* @__PURE__ */ V("div", { className: br.gifViewLoading })]
3904
3932
  });
3905
3933
  }
3906
- var vr = {
3934
+ var Sr = {
3907
3935
  "tenorPicker-selected": "tenorPicker-selected_IfR2z",
3908
3936
  tenorPickerSelected: "tenorPicker-selected_IfR2z",
3909
3937
  "tenorPicker-modal-content": "tenorPicker-modal-content_Vkolf",
@@ -3915,8 +3943,8 @@ var vr = {
3915
3943
  };
3916
3944
  //#endregion
3917
3945
  //#region package/common/tenorPicker/tenorPicker.tsx
3918
- function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () => void 0, selected: i = null }) {
3919
- let a = c(() => new pr(t), [t]), [o, s] = d(""), [l, u] = d([]), [p, m] = d([]), [h, g] = d(null), [_, v] = d(!1);
3946
+ function Cr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () => void 0, selected: i = null }) {
3947
+ let a = c(() => new _r(t), [t]), [o, s] = d(""), [l, u] = d([]), [p, m] = d([]), [h, g] = d(null), [_, v] = d(!1);
3920
3948
  async function y(e) {
3921
3949
  if (s(e), !e.trim()) {
3922
3950
  u([]), m([]), g(null);
@@ -3940,25 +3968,25 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3940
3968
  await r(e), v(!1), e && a.registerShare(o, e.id);
3941
3969
  }
3942
3970
  function S() {
3943
- return /* @__PURE__ */ V(Xe, {
3971
+ return /* @__PURE__ */ V(et, {
3944
3972
  inline: !0,
3945
- className: vr.tenorPickerSuggestionsContainer,
3946
- children: p.map((e) => /* @__PURE__ */ V(Ye, {
3947
- className: vr.tenorPickerSuggestionsItem,
3973
+ className: Sr.tenorPickerSuggestionsContainer,
3974
+ children: p.map((e) => /* @__PURE__ */ V($e, {
3975
+ className: Sr.tenorPickerSuggestionsItem,
3948
3976
  text: e,
3949
3977
  onClick: () => y(e)
3950
3978
  }, e))
3951
3979
  });
3952
3980
  }
3953
3981
  function C() {
3954
- return /* @__PURE__ */ V(hr, {
3982
+ return /* @__PURE__ */ V(yr, {
3955
3983
  previewItems: l,
3956
3984
  onSelect: x,
3957
3985
  onLoadAdditional: b
3958
3986
  });
3959
3987
  }
3960
3988
  function w() {
3961
- return /* @__PURE__ */ V(cr, {
3989
+ return /* @__PURE__ */ V(fr, {
3962
3990
  label: "Pick gif",
3963
3991
  value: o,
3964
3992
  onDebounce: y,
@@ -3966,28 +3994,28 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3966
3994
  });
3967
3995
  }
3968
3996
  return n ? /* @__PURE__ */ H("div", {
3969
- className: f(vr.tenorPicker, e),
3997
+ className: f(Sr.tenorPicker, e),
3970
3998
  children: [
3971
3999
  /* @__PURE__ */ H("div", {
3972
4000
  className: Se.actionButtons,
3973
- children: [/* @__PURE__ */ V(J, {
4001
+ children: [/* @__PURE__ */ V(Ne, {
3974
4002
  onClick: () => v(!0),
3975
4003
  children: "Pick gif"
3976
- }), i && /* @__PURE__ */ V(J, {
4004
+ }), i && /* @__PURE__ */ V(Ne, {
3977
4005
  styleType: Ee.Delete,
3978
4006
  onClick: () => x(null),
3979
4007
  children: "Remove gif"
3980
4008
  })]
3981
4009
  }),
3982
- i && /* @__PURE__ */ V(_r, {
3983
- className: vr.tenorPickerSelected,
4010
+ i && /* @__PURE__ */ V(xr, {
4011
+ className: Sr.tenorPickerSelected,
3984
4012
  src: i
3985
4013
  }),
3986
- /* @__PURE__ */ V(gt, {
4014
+ /* @__PURE__ */ V(bt, {
3987
4015
  isOpen: _,
3988
4016
  onClose: () => v(!1),
3989
4017
  children: /* @__PURE__ */ H("div", {
3990
- className: vr.tenorPickerModalContent,
4018
+ className: Sr.tenorPickerModalContent,
3991
4019
  children: [
3992
4020
  w(),
3993
4021
  S(),
@@ -3997,22 +4025,22 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3997
4025
  })
3998
4026
  ]
3999
4027
  }) : /* @__PURE__ */ H("div", {
4000
- className: f(vr.tenorPicker, e),
4028
+ className: f(Sr.tenorPicker, e),
4001
4029
  children: [
4002
- /* @__PURE__ */ V(et, {
4003
- align: Qe.Left,
4030
+ /* @__PURE__ */ V(it, {
4031
+ align: nt.Left,
4004
4032
  isOpen: l.length > 0 && _,
4005
4033
  onOpenChange: v,
4006
4034
  content: /* @__PURE__ */ H(B, { children: [S(), C()] }),
4007
4035
  children: w()
4008
4036
  }),
4009
- i && /* @__PURE__ */ V(J, {
4037
+ i && /* @__PURE__ */ V(Ne, {
4010
4038
  styleType: Ee.Delete,
4011
4039
  onClick: () => x(null),
4012
4040
  children: "Remove gif"
4013
4041
  }),
4014
- i && /* @__PURE__ */ V(_r, {
4015
- className: vr.tenorPickerSelected,
4042
+ i && /* @__PURE__ */ V(xr, {
4043
+ className: Sr.tenorPickerSelected,
4016
4044
  src: i
4017
4045
  })
4018
4046
  ]
@@ -4020,15 +4048,15 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
4020
4048
  }
4021
4049
  //#endregion
4022
4050
  //#region package/common/textarea/textarea.tsx
4023
- function br(e) {
4024
- return /* @__PURE__ */ V(rt, {
4051
+ function wr(e) {
4052
+ return /* @__PURE__ */ V(st, {
4025
4053
  ...e,
4026
4054
  multiline: !0
4027
4055
  });
4028
4056
  }
4029
4057
  //#endregion
4030
4058
  //#region package/common/themeProvider/defaultTheme.ts
4031
- var xr = {
4059
+ var Tr = {
4032
4060
  id: "default",
4033
4061
  variables: {
4034
4062
  "--grey": "#8A8A8A",
@@ -4088,14 +4116,14 @@ var xr = {
4088
4116
  "--spacing-m": "8px",
4089
4117
  "--spacing-l": "16px"
4090
4118
  }
4091
- }, Sr = { colorFade: "colorFade_eLv2g" }, Cr = class extends t {
4119
+ }, Er = { colorFade: "colorFade_eLv2g" }, Dr = class extends t {
4092
4120
  constructor(...t) {
4093
4121
  super(...t), this.state = {
4094
4122
  resolvedVariables: {},
4095
4123
  colorFadeActive: !1,
4096
4124
  currentThemeColor: null
4097
4125
  }, this.colorFadeTimeout = null, this.wrapperRef = e.createRef(), this.themeColorMeta = null, this.createdThemeColorMeta = !1, this.applyTheme = (e) => {
4098
- let t = this.props.themes ?? [xr], n = t.find((e) => !e.baseThemeId) ?? t[0], r = n ? n.variables : {}, i = t.find((t) => t.id === e), a = i ? this.resolveChain(i.id) : [], o = Object.assign({}, r, ...a);
4126
+ let t = this.props.themes ?? [Tr], n = t.find((e) => !e.baseThemeId) ?? t[0], r = n ? n.variables : {}, i = t.find((t) => t.id === e), a = i ? this.resolveChain(i.id) : [], o = Object.assign({}, r, ...a);
4099
4127
  this.setState({
4100
4128
  resolvedVariables: o,
4101
4129
  colorFadeActive: !0
@@ -4129,7 +4157,7 @@ var xr = {
4129
4157
  }
4130
4158
  }
4131
4159
  resolveChain(e) {
4132
- let t = (this.props.themes ?? [xr]).find((t) => t.id === e);
4160
+ let t = (this.props.themes ?? [Tr]).find((t) => t.id === e);
4133
4161
  return t ? [...t.baseThemeId ? this.resolveChain(t.baseThemeId) : [], t.variables] : [];
4134
4162
  }
4135
4163
  render() {
@@ -4137,7 +4165,7 @@ var xr = {
4137
4165
  return /* @__PURE__ */ V("div", {
4138
4166
  ref: this.wrapperRef,
4139
4167
  id: "themeProvider",
4140
- className: n ? Sr.colorFade : void 0,
4168
+ className: n ? Er.colorFade : void 0,
4141
4169
  style: t,
4142
4170
  children: e
4143
4171
  });
@@ -4145,7 +4173,7 @@ var xr = {
4145
4173
  };
4146
4174
  //#endregion
4147
4175
  //#region package/common/themeProvider/useTheme.ts
4148
- function wr(e = "default") {
4176
+ function Or(e = "default") {
4149
4177
  let [t, n] = d(localStorage.getItem("theme") || e);
4150
4178
  return {
4151
4179
  currentThemeId: t,
@@ -4154,7 +4182,7 @@ function wr(e = "default") {
4154
4182
  }
4155
4183
  };
4156
4184
  }
4157
- var Tr = {
4185
+ var kr = {
4158
4186
  container: "container_krdsW",
4159
4187
  "container-top-left": "container-top-left_zfDTO",
4160
4188
  containerTopLeft: "container-top-left_zfDTO",
@@ -4191,14 +4219,14 @@ var Tr = {
4191
4219
  toastCloseButton: "toastCloseButton_n-YST",
4192
4220
  toastProgressBar: "toastProgressBar_6vBs6",
4193
4221
  toastShrink: "toastShrink_h89HS"
4194
- }, Er = {
4222
+ }, Ar = {
4195
4223
  info: x,
4196
4224
  success: b,
4197
4225
  error: S,
4198
- warn: te,
4226
+ warn: R,
4199
4227
  default: m
4200
4228
  };
4201
- function Dr({ item: e, isBottom: t, onDismiss: n }) {
4229
+ function jr({ item: e, isBottom: t, onDismiss: n }) {
4202
4230
  let { id: r, content: i, options: o, dismissing: s } = e, { duration: c, showRemainingTime: l, showCloseButton: u, type: d, classNames: m, styles: h } = o;
4203
4231
  return a(() => {
4204
4232
  if (c === 0) return;
@@ -4209,28 +4237,28 @@ function Dr({ item: e, isBottom: t, onDismiss: n }) {
4209
4237
  c,
4210
4238
  n
4211
4239
  ]), /* @__PURE__ */ H("div", {
4212
- className: f(Tr.toast, t ? Tr.toastBottom : null, Tr[`toast-${d}`], s && Tr.toastDismissing, m?.root),
4240
+ className: f(kr.toast, t ? kr.toastBottom : null, kr[`toast-${d}`], s && kr.toastDismissing, m?.root),
4213
4241
  style: h?.root,
4214
4242
  children: [
4215
4243
  /* @__PURE__ */ V(p, {
4216
- icon: Er[d],
4217
- className: f(Tr.toastIcon, m?.icon),
4244
+ icon: Ar[d],
4245
+ className: f(kr.toastIcon, m?.icon),
4218
4246
  style: h?.icon
4219
4247
  }),
4220
4248
  /* @__PURE__ */ V("div", {
4221
- className: f(Tr.toastContent, m?.content),
4249
+ className: f(kr.toastContent, m?.content),
4222
4250
  style: h?.content,
4223
4251
  children: i
4224
4252
  }),
4225
- u && /* @__PURE__ */ V(Re, {
4253
+ u && /* @__PURE__ */ V(ze, {
4226
4254
  icon: z,
4227
4255
  onClick: () => n(r),
4228
- className: f(Tr.toastCloseButton, m?.closeButton),
4256
+ className: f(kr.toastCloseButton, m?.closeButton),
4229
4257
  style: h?.closeButton,
4230
4258
  "aria-label": "Close"
4231
4259
  }),
4232
4260
  l && c > 0 && /* @__PURE__ */ V("div", {
4233
- className: f(Tr.toastProgressBar, m?.progressBar),
4261
+ className: f(kr.toastProgressBar, m?.progressBar),
4234
4262
  style: {
4235
4263
  "--toast-duration": `${c}ms`,
4236
4264
  ...h?.progressBar
@@ -4241,40 +4269,40 @@ function Dr({ item: e, isBottom: t, onDismiss: n }) {
4241
4269
  }
4242
4270
  //#endregion
4243
4271
  //#region package/common/toast/toastService.ts
4244
- var Or = null;
4245
- function kr(e) {
4246
- Or = e;
4272
+ var Mr = null;
4273
+ function Nr(e) {
4274
+ Mr = e;
4247
4275
  }
4248
- function Ar() {
4249
- Or = null;
4276
+ function Pr() {
4277
+ Mr = null;
4250
4278
  }
4251
- function jr(e, t) {
4252
- if (!Or) {
4279
+ function Fr(e, t) {
4280
+ if (!Mr) {
4253
4281
  console.error("[Toast] No ToastProvider found. Wrap your app with <ToastProvider>.");
4254
4282
  return;
4255
4283
  }
4256
- Or(e, t);
4284
+ Mr(e, t);
4257
4285
  }
4258
4286
  //#endregion
4259
4287
  //#region package/common/toast/toastProvider.tsx
4260
- var Mr = {
4288
+ var Ir = {
4261
4289
  position: "top-right",
4262
4290
  duration: 4e3,
4263
4291
  showRemainingTime: !0,
4264
4292
  showCloseButton: !0,
4265
4293
  allowStacking: !0
4266
- }, Nr = 220;
4267
- function Pr(e) {
4268
- return Tr[`container-${e}`];
4294
+ }, Lr = 220;
4295
+ function Rr(e) {
4296
+ return kr[`container-${e}`];
4269
4297
  }
4270
- function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration, showRemainingTime: r = Mr.showRemainingTime, showCloseButton: o = Mr.showCloseButton, allowStacking: s = Mr.allowStacking }) {
4298
+ function zr({ children: e, position: t = Ir.position, duration: n = Ir.duration, showRemainingTime: r = Ir.showRemainingTime, showCloseButton: o = Ir.showCloseButton, allowStacking: s = Ir.allowStacking }) {
4271
4299
  let [c, l] = d([]), p = u(0), m = i((e) => {
4272
4300
  l((t) => t.map((t) => t.id === e ? {
4273
4301
  ...t,
4274
4302
  dismissing: !0
4275
4303
  } : t)), setTimeout(() => {
4276
4304
  l((t) => t.filter((t) => t.id !== e));
4277
- }, Nr);
4305
+ }, Lr);
4278
4306
  }, []), h = i((e, i) => {
4279
4307
  let a = {
4280
4308
  position: i?.position ?? t,
@@ -4294,7 +4322,7 @@ function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration,
4294
4322
  };
4295
4323
  l((e) => !s && e.length > 0 ? (setTimeout(() => {
4296
4324
  l([c]);
4297
- }, Nr), e.map((e) => ({
4325
+ }, Lr), e.map((e) => ({
4298
4326
  ...e,
4299
4327
  dismissing: !0
4300
4328
  }))) : [...e, c]);
@@ -4305,14 +4333,14 @@ function Fr({ children: e, position: t = Mr.position, duration: n = Mr.duration,
4305
4333
  o,
4306
4334
  s
4307
4335
  ]);
4308
- a(() => (kr(h), () => Ar()), [h]);
4336
+ a(() => (Nr(h), () => Pr()), [h]);
4309
4337
  let g = c.reduce((e, t) => {
4310
4338
  let n = t.options.position;
4311
4339
  return e[n] || (e[n] = []), e[n].push(t), e;
4312
4340
  }, {});
4313
- return /* @__PURE__ */ H(B, { children: [e, /* @__PURE__ */ V(ze, { children: Object.entries(g).map(([e, t]) => /* @__PURE__ */ V("div", {
4314
- className: f(Tr.container, Pr(e)),
4315
- children: t.map((t) => /* @__PURE__ */ V(Dr, {
4341
+ return /* @__PURE__ */ H(B, { children: [e, /* @__PURE__ */ V(Be, { children: Object.entries(g).map(([e, t]) => /* @__PURE__ */ V("div", {
4342
+ className: f(kr.container, Rr(e)),
4343
+ children: t.map((t) => /* @__PURE__ */ V(jr, {
4316
4344
  item: t,
4317
4345
  isBottom: e.startsWith("bottom"),
4318
4346
  onDismiss: m
@@ -4374,7 +4402,7 @@ var $ = {
4374
4402
  };
4375
4403
  //#endregion
4376
4404
  //#region package/common/virtualList/virtualRow.tsx
4377
- function Ir({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i, hover: a, onClick: o, observer: c, ariaRowIndex: l, ariaPosInSet: d, ariaSetSize: p, rowRole: m, reorderable: h, draggable: g, isDragging: _, reserveToggleGutter: v, onMouseDown: y, onDragStart: b, onDragOver: x, onDragEnd: S, onDrop: C, onTouchStart: w, dropPosition: T, dropIndentPx: E, dropIndicatorClassName: D, dropIndicatorStyle: O, rowClassName: k, rowStyle: A, children: j }) {
4405
+ function Br({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i, hover: a, onClick: o, observer: c, ariaRowIndex: l, ariaPosInSet: d, ariaSetSize: p, rowRole: m, reorderable: h, draggable: g, isDragging: _, reserveToggleGutter: v, onMouseDown: y, onDragStart: b, onDragOver: x, onDragEnd: S, onDrop: C, onTouchStart: w, dropPosition: T, dropIndentPx: E, dropIndicatorClassName: D, dropIndicatorStyle: O, rowClassName: k, rowStyle: A, children: j }) {
4378
4406
  let M = u(null);
4379
4407
  return s(() => {
4380
4408
  let e = M.current;
@@ -4423,7 +4451,7 @@ function Ir({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i
4423
4451
  }
4424
4452
  //#endregion
4425
4453
  //#region package/common/virtualList/virtualList.utils.ts
4426
- function Lr(e, t, n, r = 0) {
4454
+ function Vr(e, t, n, r = 0) {
4427
4455
  let i = e.length, a = Array(i + 1);
4428
4456
  a[0] = 0;
4429
4457
  for (let o = 0; o < i; o++) {
@@ -4435,7 +4463,7 @@ function Lr(e, t, n, r = 0) {
4435
4463
  totalHeight: a[i]
4436
4464
  };
4437
4465
  }
4438
- function Rr(e, t, n) {
4466
+ function Hr(e, t, n) {
4439
4467
  if (n <= 0) return 0;
4440
4468
  let r = 0, i = n - 1;
4441
4469
  for (; r < i;) {
@@ -4444,34 +4472,34 @@ function Rr(e, t, n) {
4444
4472
  }
4445
4473
  return r;
4446
4474
  }
4447
- function zr(e, t, n, r, i) {
4475
+ function Ur(e, t, n, r, i) {
4448
4476
  if (i === 0) return {
4449
4477
  startIndex: 0,
4450
4478
  endIndex: -1
4451
4479
  };
4452
- let a = Rr(e, t, i), o = a;
4480
+ let a = Hr(e, t, i), o = a;
4453
4481
  for (; o < i && e[o] < t + n;) o++;
4454
4482
  return {
4455
4483
  startIndex: Math.max(0, a - r),
4456
4484
  endIndex: Math.min(i - 1, o + r - 1)
4457
4485
  };
4458
4486
  }
4459
- function Br(e, t, n, r, i) {
4487
+ function Wr(e, t, n, r, i) {
4460
4488
  if (e === -1 || e === t) return null;
4461
4489
  let a = r + i / 2;
4462
4490
  return (t > e ? n >= a : n <= a) ? t : null;
4463
4491
  }
4464
- function Vr(e, t, n, r) {
4492
+ function Gr(e, t, n, r) {
4465
4493
  if (n <= 0) return "before";
4466
4494
  let i = (e - t) / n;
4467
4495
  return r ? i < 1 / 3 ? "before" : i > 2 / 3 ? "after" : "inside" : i < .5 ? "before" : "after";
4468
4496
  }
4469
- function Hr(e, t) {
4497
+ function Kr(e, t) {
4470
4498
  let n = t[e], r = e + 1;
4471
4499
  for (; r < t.length && t[r] > n;) r++;
4472
4500
  return r - 1;
4473
4501
  }
4474
- function Ur(e, t) {
4502
+ function qr(e, t) {
4475
4503
  return e.length === 0 ? "1fr" : e.map((e) => {
4476
4504
  switch (e.width.type) {
4477
4505
  case "fixed": return `${e.width.px}px`;
@@ -4483,11 +4511,11 @@ function Ur(e, t) {
4483
4511
  }
4484
4512
  }).join(" ");
4485
4513
  }
4486
- var Wr = "ahroweui:virtuallist:columns:";
4487
- function Gr(e) {
4514
+ var Jr = "ahroweui:virtuallist:columns:";
4515
+ function Yr(e) {
4488
4516
  if (!e || typeof window > "u") return null;
4489
4517
  try {
4490
- let t = window.localStorage.getItem(Wr + e);
4518
+ let t = window.localStorage.getItem(Jr + e);
4491
4519
  if (!t) return null;
4492
4520
  let n = JSON.parse(t);
4493
4521
  if (n && Array.isArray(n.visible) && Array.isArray(n.known)) return {
@@ -4497,19 +4525,19 @@ function Gr(e) {
4497
4525
  } catch {}
4498
4526
  return null;
4499
4527
  }
4500
- function Kr(e, t) {
4528
+ function Xr(e, t) {
4501
4529
  return t && t.known.includes(e.key) ? t.visible.includes(e.key) : !e.defaultHidden;
4502
4530
  }
4503
4531
  //#endregion
4504
4532
  //#region package/common/virtualList/useVirtualWindow.ts
4505
- function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l, overscan: f, onLoadMore: p, loadMoreThreshold: m, forwardedRef: h }) {
4506
- let [g, _] = d(0), [v, y] = d(0), [b, x] = d(0), [S, C] = d(/* @__PURE__ */ new Map()), [w, T] = d(!1), E = u(!1), D = u(null), O = u(null), k = u([]), A = u(null), j = u(0), M = u([]), [N] = d(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4507
- C((t) => {
4533
+ function Zr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: o, overscan: l, onLoadMore: f, loadMoreThreshold: p }) {
4534
+ let [m, h] = d(0), [g, _] = d(0), [v, y] = d(0), [b, x] = d(/* @__PURE__ */ new Map()), [S, C] = d(!1), w = u(!1), T = u(null), E = u(null), D = u([]), O = u(null), k = u(0), A = u([]), [j] = d(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4535
+ x((t) => {
4508
4536
  let n = null;
4509
4537
  for (let r of e) {
4510
4538
  let e = r.target, i = Number(e.dataset.index);
4511
4539
  if (Number.isNaN(i)) continue;
4512
- let a = M.current[i];
4540
+ let a = A.current[i];
4513
4541
  if (a === void 0) continue;
4514
4542
  let o = r.borderBoxSize?.[0], s = o ? Math.round(o.blockSize) : e.offsetHeight;
4515
4543
  t.get(a) !== s && (n ||= new Map(t), n.set(a, s));
@@ -4517,46 +4545,47 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4517
4545
  return n ?? t;
4518
4546
  });
4519
4547
  }));
4520
- a(() => () => N?.disconnect(), [N]), s(() => {
4521
- let e = D.current;
4548
+ a(() => () => j?.disconnect(), [j]), s(() => {
4549
+ let e = T.current;
4522
4550
  if (!e) return;
4523
- y(e.clientHeight), x(e.clientWidth);
4551
+ _(e.clientHeight), y(e.clientWidth);
4524
4552
  let t = new ResizeObserver(() => {
4525
- y(e.clientHeight), x(e.clientWidth);
4553
+ _(e.clientHeight), y(e.clientWidth);
4526
4554
  });
4527
4555
  return t.observe(e), () => t.disconnect();
4528
4556
  }, []);
4529
- let P = i((e) => {
4557
+ let M = i((e) => {
4530
4558
  let t = e.currentTarget;
4531
- j.current = t.scrollTop, A.current ??= requestAnimationFrame(() => {
4532
- A.current = null, _(j.current);
4533
- }), p && !E.current && t.scrollTop + t.clientHeight >= t.scrollHeight - m && (E.current = !0, T(!0), p().finally(() => {
4534
- E.current = !1, T(!1);
4559
+ k.current = t.scrollTop, O.current ??= requestAnimationFrame(() => {
4560
+ O.current = null, h(k.current);
4561
+ }), f && !w.current && t.scrollTop + t.clientHeight >= t.scrollHeight - p && (w.current = !0, C(!0), f().finally(() => {
4562
+ w.current = !1, C(!1);
4535
4563
  }));
4536
- }, [p, m]);
4564
+ }, [f, p]);
4537
4565
  a(() => () => {
4538
- A.current != null && cancelAnimationFrame(A.current);
4566
+ O.current != null && cancelAnimationFrame(O.current);
4539
4567
  }, []), s(() => {
4540
- M.current = t;
4568
+ A.current = t;
4541
4569
  });
4542
- let { offsets: F, totalHeight: I } = c(() => Lr(t, S, r, l), [
4570
+ let { offsets: N, totalHeight: P } = c(() => Vr(t, b, r, o), [
4543
4571
  t,
4544
- S,
4572
+ b,
4545
4573
  r,
4546
- l
4574
+ o
4547
4575
  ]);
4548
4576
  s(() => {
4549
- let t = D.current, n = k.current;
4550
- if (k.current = F, !t || n.length === 0) return;
4577
+ let t = T.current, n = D.current;
4578
+ if (D.current = N, !t || n.length === 0) return;
4551
4579
  let r = t.scrollTop;
4552
4580
  if (r <= 0) return;
4553
- let i = Rr(n, r, n.length - 1);
4581
+ let i = Hr(n, r, n.length - 1);
4554
4582
  if (i >= e.length) return;
4555
- let a = r - n[i], o = F[i] + a;
4556
- Math.abs(o - r) > .5 && (t.scrollTop = o, j.current = o, _(o));
4557
- }, [F, e.length]), o(h, () => {
4583
+ let a = r - n[i], o = N[i] + a;
4584
+ Math.abs(o - r) > .5 && (t.scrollTop = o, k.current = o, h(o));
4585
+ }, [N, e.length]);
4586
+ let F = c(() => {
4558
4587
  function t(e, t) {
4559
- let n = D.current;
4588
+ let n = T.current;
4560
4589
  if (!n) return;
4561
4590
  let r = Math.max(0, e);
4562
4591
  typeof n.scrollTo == "function" ? n.scrollTo({
@@ -4565,9 +4594,9 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4565
4594
  }) : n.scrollTop = r;
4566
4595
  }
4567
4596
  function r(n, r) {
4568
- let i = D.current;
4597
+ let i = T.current;
4569
4598
  if (!i || e.length === 0) return;
4570
- let a = Math.max(0, Math.min(n, e.length - 1)), o = F[a] ?? 0, s = (F[a + 1] ?? o) - o, c = O.current?.offsetHeight ?? 0, l = Math.max(0, i.clientHeight - c), u = r?.align ?? "start", d = o - c;
4599
+ let a = Math.max(0, Math.min(n, e.length - 1)), o = N[a] ?? 0, s = (N[a + 1] ?? o) - o, c = E.current?.offsetHeight ?? 0, l = Math.max(0, i.clientHeight - c), u = r?.align ?? "start", d = o - c;
4571
4600
  u === "center" ? d -= (l - s) / 2 : u === "end" && (d -= l - s), t(d, r?.behavior);
4572
4601
  }
4573
4602
  return {
@@ -4579,69 +4608,84 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4579
4608
  scrollToTop(e) {
4580
4609
  t(0, e?.behavior);
4581
4610
  },
4582
- getScrollElement: () => D.current
4611
+ getScrollElement: () => T.current
4583
4612
  };
4584
4613
  }, [
4585
4614
  e,
4586
- F,
4615
+ N,
4587
4616
  n
4588
- ]);
4589
- let { startIndex: ee, endIndex: L } = c(() => zr(F, g, v, f, e.length), [
4590
- F,
4617
+ ]), { startIndex: I, endIndex: ee } = c(() => Ur(N, m, g, l, e.length), [
4618
+ N,
4619
+ m,
4591
4620
  g,
4592
- v,
4593
- f,
4621
+ l,
4594
4622
  e.length
4595
4623
  ]);
4596
4624
  return {
4597
- rootRef: D,
4598
- headerRef: O,
4599
- rowObserver: N,
4600
- keysRef: M,
4601
- offsets: F,
4602
- totalHeight: I,
4603
- containerHeight: v,
4604
- containerWidth: b,
4605
- startIndex: ee,
4606
- endIndex: L,
4607
- handleScroll: P,
4608
- showLoadMoreSpinner: w
4625
+ rootRef: T,
4626
+ headerRef: E,
4627
+ rowObserver: j,
4628
+ keysRef: A,
4629
+ offsets: N,
4630
+ totalHeight: P,
4631
+ containerHeight: g,
4632
+ containerWidth: v,
4633
+ startIndex: I,
4634
+ endIndex: ee,
4635
+ handleScroll: M,
4636
+ showLoadMoreSpinner: S,
4637
+ scrollApi: F
4609
4638
  };
4610
4639
  }
4611
4640
  //#endregion
4612
4641
  //#region package/common/virtualList/useSelection.ts
4613
- function Jr({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionChange: i }) {
4614
- let a = r !== void 0, [o, s] = d(/* @__PURE__ */ new Set()), c = a ? r : o;
4615
- function l(e) {
4642
+ function Qr({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionChange: i }) {
4643
+ let a = r !== void 0, [o, s] = d(/* @__PURE__ */ new Set()), l = a ? r : o;
4644
+ function u(e) {
4616
4645
  a || s(e), i?.(e);
4617
4646
  }
4618
- function u(e) {
4619
- let t = new Set(c);
4620
- t.has(e) ? t.delete(e) : t.add(e), l(t);
4647
+ function f(e) {
4648
+ let t = new Set(l);
4649
+ t.has(e) ? t.delete(e) : t.add(e), u(t);
4621
4650
  }
4622
- function f() {
4651
+ function p() {
4623
4652
  let n = e.map((e, n) => t(e, n));
4624
- l(n.every((e) => c.has(e)) ? /* @__PURE__ */ new Set() : new Set(n));
4653
+ u(n.every((e) => l.has(e)) ? /* @__PURE__ */ new Set() : new Set(n));
4625
4654
  }
4626
- let p = n && e.length > 0 && e.every((e, n) => c.has(t(e, n)));
4655
+ let { allSelected: m, someSelected: h } = c(() => {
4656
+ if (!n || e.length === 0) return {
4657
+ allSelected: !1,
4658
+ someSelected: !1
4659
+ };
4660
+ let r = e.every((e, n) => l.has(t(e, n)));
4661
+ return {
4662
+ allSelected: r,
4663
+ someSelected: !r && e.some((e, n) => l.has(t(e, n)))
4664
+ };
4665
+ }, [
4666
+ n,
4667
+ e,
4668
+ l,
4669
+ t
4670
+ ]);
4627
4671
  return {
4628
- effectiveSelectedKeys: c,
4629
- handleRowSelect: u,
4630
- handleSelectAll: f,
4631
- allSelected: p,
4632
- someSelected: n && !p && e.some((e, n) => c.has(t(e, n)))
4672
+ effectiveSelectedKeys: l,
4673
+ handleRowSelect: f,
4674
+ handleSelectAll: p,
4675
+ allSelected: m,
4676
+ someSelected: h
4633
4677
  };
4634
4678
  }
4635
4679
  //#endregion
4636
4680
  //#region package/common/virtualList/useColumns.ts
4637
- function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisibleColumnsChange: i, persistColumnsKey: o, showColumnToggle: c, rootRef: l, startIndex: f, endIndex: p, containerHeight: m, containerWidth: h }) {
4638
- let g = r !== void 0, [_, v] = d(!1), y = u(null), [b, x] = d({}), [S, C] = d(() => {
4639
- let t = Gr(o);
4640
- return new Set((e ?? []).filter((e) => Kr(e, t)).map((e) => e.key));
4641
- }), w = u(new Set((e ?? []).map((e) => e.key)));
4681
+ function $r({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisibleColumnsChange: o, persistColumnsKey: c, showColumnToggle: l, rootRef: f, startIndex: p, endIndex: m, containerHeight: h, containerWidth: g }) {
4682
+ let _ = r !== void 0, [v, y] = d(!1), b = u(null), [x, S] = d({}), [C, w] = d(() => {
4683
+ let t = Yr(c);
4684
+ return new Set((e ?? []).filter((e) => Xr(e, t)).map((e) => e.key));
4685
+ }), T = u(new Set((e ?? []).map((e) => e.key)));
4642
4686
  a(() => {
4643
- if (g) return;
4644
- let t = e ?? [], n = new Set(t.map((e) => e.key)), r = w.current, i = n.size === r.size;
4687
+ if (_) return;
4688
+ let t = e ?? [], n = new Set(t.map((e) => e.key)), r = T.current, i = n.size === r.size;
4645
4689
  if (i) {
4646
4690
  for (let e of n) if (!r.has(e)) {
4647
4691
  i = !1;
@@ -4649,98 +4693,116 @@ function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
4649
4693
  }
4650
4694
  }
4651
4695
  if (i) return;
4652
- w.current = n;
4653
- let a = Gr(o);
4654
- C((e) => {
4696
+ T.current = n;
4697
+ let a = Yr(c);
4698
+ w((e) => {
4655
4699
  let n = /* @__PURE__ */ new Set();
4656
- for (let i of t) r.has(i.key) ? e.has(i.key) && n.add(i.key) : Kr(i, a) && n.add(i.key);
4700
+ for (let i of t) r.has(i.key) ? e.has(i.key) && n.add(i.key) : Xr(i, a) && n.add(i.key);
4657
4701
  return n;
4658
4702
  });
4659
4703
  }, [
4660
4704
  e,
4661
- g,
4662
- o
4705
+ _,
4706
+ c
4663
4707
  ]), a(() => {
4664
- if (g || !o || typeof window > "u") return;
4708
+ if (_ || !c || typeof window > "u") return;
4665
4709
  let t = e ?? [];
4666
- if (!(t.length === 0 || S.size === 0)) try {
4667
- window.localStorage.setItem(Wr + o, JSON.stringify({
4668
- visible: [...S],
4710
+ if (!(t.length === 0 || C.size === 0)) try {
4711
+ window.localStorage.setItem(Jr + c, JSON.stringify({
4712
+ visible: [...C],
4669
4713
  known: t.map((e) => e.key)
4670
4714
  }));
4671
4715
  } catch {}
4672
4716
  }, [
4673
- S,
4717
+ C,
4674
4718
  e,
4675
- g,
4676
- o
4719
+ _,
4720
+ c
4677
4721
  ]);
4678
- let T = g ? new Set(r) : S;
4722
+ let E = _ ? new Set(r) : C;
4679
4723
  a(() => {
4680
- if (!_) return;
4724
+ if (!v) return;
4681
4725
  function e(e) {
4682
- y.current && !y.current.contains(e.target) && v(!1);
4726
+ b.current && !b.current.contains(e.target) && y(!1);
4683
4727
  }
4684
4728
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
4685
- }, [_]);
4686
- let E = !!e?.length, D = E ? e.filter((e) => T.has(e.key)) : [], O = E ? e.filter((e) => !e.defaultHidden && !T.has(e.key)).length : 0, k = E ? `${n && E ? "40px " : ""}${Ur(D, b)}` : void 0, A = c !== !1 && E, j = D.filter((e) => e.width.type === "fit"), M = j.length > 0, N = j.map((e) => e.key).join("|"), [P, F] = d({
4687
- key: N,
4729
+ }, [v]);
4730
+ let D = !!e?.length, O = D ? e.filter((e) => E.has(e.key)) : [], k = D ? e.filter((e) => !e.defaultHidden && !E.has(e.key)).length : 0, A = D ? `${n && D ? "40px " : ""}${qr(O, x)}` : void 0, j = l !== !1 && D, M = O.filter((e) => e.width.type === "fit"), N = M.length > 0, P = M.map((e) => e.key).join("|"), [F, I] = d({
4731
+ key: P,
4688
4732
  items: t
4689
4733
  });
4690
- (P.key !== N || P.items !== t) && (F({
4691
- key: N,
4734
+ (F.key !== P || F.items !== t) && (I({
4735
+ key: P,
4692
4736
  items: t
4693
- }), Object.keys(b).length > 0 && x({})), s(() => {
4694
- if (!M) return;
4695
- let e = l.current;
4696
- e && x((t) => {
4697
- let n = !1, r = { ...t };
4698
- for (let i of j) {
4699
- let a = 0;
4700
- if (e.querySelectorAll(`[data-fit-key="${i.key}"]`).forEach((e) => {
4701
- let t = e, n = t.scrollWidth > t.clientWidth && parseFloat(getComputedStyle(t).paddingRight) || 0, r = t.scrollWidth + n;
4702
- r > a && (a = r);
4703
- }), a <= 0) continue;
4704
- let o = Math.min(Math.ceil(a), e.clientWidth);
4705
- o > (t[i.key] ?? 0) && (r[i.key] = o, n = !0);
4737
+ }), Object.keys(x).length > 0 && S({}));
4738
+ let ee = i(() => {
4739
+ let e = f.current;
4740
+ if (!e) return;
4741
+ let t = /* @__PURE__ */ new Map();
4742
+ e.querySelectorAll("[data-fit-key]").forEach((e) => {
4743
+ let n = e, r = n.getAttribute("data-fit-key");
4744
+ if (!r) return;
4745
+ let i = n.scrollWidth > n.clientWidth && parseFloat(getComputedStyle(n).paddingRight) || 0, a = n.scrollWidth + i;
4746
+ a > (t.get(r) ?? 0) && t.set(r, a);
4747
+ }), t.size !== 0 && S((n) => {
4748
+ let r = !1, i = { ...n };
4749
+ for (let [a, o] of t) {
4750
+ if (o <= 0) continue;
4751
+ let t = Math.min(Math.ceil(o), e.clientWidth);
4752
+ t > (n[a] ?? 0) && (i[a] = t, r = !0);
4706
4753
  }
4707
- return n ? r : t;
4754
+ return r ? i : n;
4708
4755
  });
4756
+ }, [f]), [te] = d(() => typeof ResizeObserver > "u" ? null : new ResizeObserver(() => ee())), L = u(/* @__PURE__ */ new Set());
4757
+ a(() => () => {
4758
+ te?.disconnect(), L.current.clear();
4759
+ }, [te]), s(() => {
4760
+ if (!N) return;
4761
+ let e = f.current;
4762
+ if (!e || (ee(), !te)) return;
4763
+ let t = new Set(e.querySelectorAll("[data-fit-key]")), n = L.current;
4764
+ for (let e of n) t.has(e) || (te.unobserve(e), n.delete(e));
4765
+ for (let e of t) n.has(e) || (te.observe(e), n.add(e));
4709
4766
  }, [
4710
- M,
4711
4767
  N,
4712
- b,
4713
- f,
4768
+ P,
4769
+ x,
4714
4770
  p,
4715
4771
  m,
4716
- h
4772
+ h,
4773
+ g,
4774
+ t,
4775
+ ee,
4776
+ te
4717
4777
  ]);
4718
- function I(e) {
4719
- let t = new Set(T);
4778
+ let R = i(() => S({}), []);
4779
+ function ne(e) {
4780
+ let t = new Set(E);
4720
4781
  if (t.has(e)) {
4721
4782
  if (t.size <= 1) return;
4722
4783
  t.delete(e);
4723
4784
  } else t.add(e);
4724
4785
  let n = [...t];
4725
- g || C(t), i?.(n);
4786
+ _ || w(t), o?.(n);
4726
4787
  }
4727
4788
  return {
4728
- hasColumns: E,
4729
- visibleColumns: D,
4730
- columnTemplate: k,
4731
- shouldShowToggle: A,
4732
- effectiveVisible: T,
4733
- manuallyHiddenCount: O,
4734
- toggleOpen: _,
4735
- setToggleOpen: v,
4736
- toggleRef: y,
4737
- handleToggleColumn: I
4789
+ hasColumns: D,
4790
+ visibleColumns: O,
4791
+ columnTemplate: A,
4792
+ shouldShowToggle: j,
4793
+ effectiveVisible: E,
4794
+ manuallyHiddenCount: k,
4795
+ toggleOpen: v,
4796
+ setToggleOpen: y,
4797
+ toggleRef: b,
4798
+ handleToggleColumn: ne,
4799
+ recalculateColumns: R
4738
4800
  };
4739
4801
  }
4740
4802
  //#endregion
4741
4803
  //#region package/common/virtualList/useRowDrag.ts
4742
- function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longPressDelay: o, dragHandle: c, treeIndentPx: l, keys: f, depths: p, isGroupAt: m, rootRef: h, keysRef: g }) {
4743
- let _ = u(null), [v, y] = d(null), [b, x] = d(null), S = u(null), C = u(n), w = u(r), T = u(t), E = u(p), D = u(m), O = u(!0), k = u(null), A = u(!1), j = u(null), M = u(0), N = u(0), P = u(null), F = u(!1), I = u(null), ee = u(0), L = u(0), R = u(0), [te] = d(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)").matches : !1);
4804
+ function ei({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longPressDelay: o, dragHandle: c, treeIndentPx: l, keys: f, depths: p, isGroupAt: m, rootRef: h, keysRef: g }) {
4805
+ let _ = u(null), [v, y] = d(null), [b, x] = d(null), S = u(null), C = u(n), w = u(r), T = u(t), E = u(p), D = u(m), O = u(!0), k = u(null), A = u(!1), j = u(null), M = u(0), N = u(0), P = u(null), F = u(!1), I = u(null), ee = u(0), te = u(0), L = u(0), [R] = d(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)").matches : !1);
4744
4806
  s(() => {
4745
4807
  C.current = n, w.current = r, T.current = t, E.current = p, S.current = b, D.current = m;
4746
4808
  });
@@ -4758,8 +4820,8 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4758
4820
  let r = _.current;
4759
4821
  if (r == null) return null;
4760
4822
  let i = f.indexOf(r);
4761
- if (i !== -1 && e >= i && e <= Hr(i, p)) return null;
4762
- let a = Vr(t, n.top, n.height, m(e));
4823
+ if (i !== -1 && e >= i && e <= Kr(i, p)) return null;
4824
+ let a = Gr(t, n.top, n.height, m(e));
4763
4825
  return {
4764
4826
  key: f[e],
4765
4827
  position: a
@@ -4784,7 +4846,7 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4784
4846
  t.preventDefault();
4785
4847
  let r = _.current;
4786
4848
  if (r == null) return;
4787
- let i = f.indexOf(r), a = t.currentTarget.getBoundingClientRect(), o = Br(i, e, t.clientY, a.top, a.height);
4849
+ let i = f.indexOf(r), a = t.currentTarget.getBoundingClientRect(), o = Wr(i, e, t.clientY, a.top, a.height);
4788
4850
  o != null && n?.(i, o);
4789
4851
  }
4790
4852
  function oe() {
@@ -4793,29 +4855,29 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4793
4855
  let U = i((e) => {
4794
4856
  let t = _.current, n = h.current;
4795
4857
  if (t == null || !n) return;
4796
- let r = I.current ? N.current - ee.current + R.current / 2 : N.current, i = document.elementFromPoint(e, r), a = i && n.contains(i) ? i.closest("[data-index]") : null;
4858
+ let r = I.current ? N.current - ee.current + L.current / 2 : N.current, i = document.elementFromPoint(e, r), a = i && n.contains(i) ? i.closest("[data-index]") : null;
4797
4859
  if (!a) return;
4798
4860
  let o = Number(a.dataset.index);
4799
4861
  if (Number.isNaN(o)) return;
4800
4862
  let s = g.current.indexOf(t), c = a.getBoundingClientRect();
4801
4863
  if (T.current) {
4802
4864
  let e = g.current, t = E.current;
4803
- if (s !== -1 && o >= s && o <= Hr(s, t)) {
4865
+ if (s !== -1 && o >= s && o <= Kr(s, t)) {
4804
4866
  x(null);
4805
4867
  return;
4806
4868
  }
4807
- let n = Vr(r, c.top, c.height, D.current(o)), i = {
4869
+ let n = Gr(r, c.top, c.height, D.current(o)), i = {
4808
4870
  key: e[o],
4809
4871
  position: n
4810
4872
  };
4811
4873
  x((e) => e?.key === i.key && e?.position === i.position ? e : i);
4812
4874
  return;
4813
4875
  }
4814
- let l = Br(s, o, r, c.top, c.height);
4876
+ let l = Wr(s, o, r, c.top, c.height);
4815
4877
  l != null && C.current?.(s, l);
4816
4878
  }, [h, g]), se = i(() => {
4817
4879
  let e = I.current;
4818
- e && (e.style.transform = `translate(${L.current}px, ${N.current - ee.current}px)`);
4880
+ e && (e.style.transform = `translate(${te.current}px, ${N.current - ee.current}px)`);
4819
4881
  }, []), W = i(() => {
4820
4882
  let e = h.current;
4821
4883
  if (!e || !A.current) {
@@ -4847,16 +4909,16 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4847
4909
  if (!e && !t || c && !r.target.closest("[data-drag-handle]") || k.current != null || A.current) return;
4848
4910
  let i = r.touches[0];
4849
4911
  i && (j.current = i.clientY, M.current = i.clientX, N.current = i.clientY, window.addEventListener("touchmove", le, { passive: !1 }), window.addEventListener("touchend", ce), window.addEventListener("touchcancel", ce), k.current = window.setTimeout(() => {
4850
- k.current = null, A.current = !0, _.current = n, y(n), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", G(n), P.current ??= requestAnimationFrame(W);
4912
+ k.current = null, A.current = !0, _.current = n, y(n), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", de(n), P.current ??= requestAnimationFrame(W);
4851
4913
  }, o));
4852
4914
  }
4853
- function G(e) {
4915
+ function de(e) {
4854
4916
  let t = h.current;
4855
4917
  if (!t) return;
4856
4918
  let n = g.current.indexOf(e), r = t.querySelector(`[data-index="${n}"]`);
4857
4919
  if (!r) return;
4858
4920
  let i = r.getBoundingClientRect();
4859
- ee.current = N.current - i.top, L.current = i.left, R.current = i.height;
4921
+ ee.current = N.current - i.top, te.current = i.left, L.current = i.height;
4860
4922
  let a = r.cloneNode(!0);
4861
4923
  a.removeAttribute("data-index"), a.setAttribute("data-drag-clone", "true"), a.setAttribute("aria-hidden", "true"), a.classList.add($.virtualListDragClone), Object.assign(a.style, {
4862
4924
  position: "fixed",
@@ -4874,112 +4936,116 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4874
4936
  }), t.appendChild(a), I.current = a, se();
4875
4937
  }
4876
4938
  a(() => ce, [ce]);
4877
- let K = e || t;
4878
- function de(n, r) {
4939
+ let G = e || t;
4940
+ function fe(n, r) {
4879
4941
  let i = t && b?.key === r ? b.position : void 0;
4880
4942
  return {
4881
- reorderable: K,
4882
- draggable: K && !te || void 0,
4883
- isDragging: K && r === v,
4884
- onMouseDown: K && c ? ne : void 0,
4885
- onDragStart: K ? (e) => z(r, e) : void 0,
4943
+ reorderable: G,
4944
+ draggable: G && !R || void 0,
4945
+ isDragging: G && r === v,
4946
+ onMouseDown: G && c ? ne : void 0,
4947
+ onDragStart: G ? (e) => z(r, e) : void 0,
4886
4948
  onDragOver: t ? (e) => B(n, e) : e ? (e) => ae(n, e) : void 0,
4887
4949
  onDragEnd: t ? ie : e ? oe : void 0,
4888
4950
  onDrop: t ? H : void 0,
4889
- onTouchStart: K ? (e) => ue(r, e) : void 0,
4951
+ onTouchStart: G ? (e) => ue(r, e) : void 0,
4890
4952
  dropPosition: i,
4891
4953
  dropIndentPx: i ? (p[n] ?? 0) * l : void 0
4892
4954
  };
4893
4955
  }
4894
- function fe() {
4956
+ function K() {
4895
4957
  return F.current ? (F.current = !1, !0) : !1;
4896
4958
  }
4897
4959
  return {
4898
4960
  draggingKey: v,
4899
- dragEnabled: K,
4900
- getRowDragProps: de,
4901
- consumeSuppressedClick: fe
4961
+ dragEnabled: G,
4962
+ getRowDragProps: fe,
4963
+ consumeSuppressedClick: K
4902
4964
  };
4903
4965
  }
4904
4966
  //#endregion
4905
4967
  //#region package/common/virtualList/virtualList.tsx
4906
- function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: a = 40, overscan: o = 3, rowGap: s = 0, selectedKey: l, getItemKey: u, onRowClick: d, visibleColumnKeys: m, onVisibleColumnsChange: h, persistColumnsKey: g, showColumnToggle: _, onLoadMore: v, loadMoreThreshold: y = 100, isLoading: b = !1, multiSelect: x = !1, selectedKeys: S, onSelectionChange: C, reorderable: w = !1, onReorder: T, longPressDelay: E = 400, treeReorder: D = !1, getItemDepth: O, isGroup: A, onTreeDrop: j, treeIndentPx: M = 24, dragHandle: N = !1, showDivider: P = !0, rowHover: F = !0, className: I, style: ee, classNames: L, styles: R, ...te }, ne) {
4907
- let z = i((e, t) => u ? u(e, t) : t, [u]), re = c(() => e.map((e, t) => z(e, t)), [e, z]), ie = c(() => O ? e.map((e, t) => O(e, t)) : [], [e, O]), ae = i((t) => A ? A(e[t], t) : !1, [A, e]), oe = qr({
4968
+ function ti({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: a = 40, overscan: s = 3, rowGap: l = 0, selectedKey: u, getItemKey: d, onRowClick: m, visibleColumnKeys: h, onVisibleColumnsChange: g, persistColumnsKey: _, showColumnToggle: v, onLoadMore: y, loadMoreThreshold: b = 100, isLoading: x = !1, multiSelect: S = !1, selectedKeys: C, onSelectionChange: w, reorderable: T = !1, onReorder: E, longPressDelay: D = 400, treeReorder: O = !1, getItemDepth: A, isGroup: j, onTreeDrop: M, treeIndentPx: N = 24, dragHandle: P = !1, showDivider: F = !0, rowHover: I = !0, className: ee, style: te, classNames: L, styles: R, ...ne }, z) {
4969
+ let re = i((e, t) => d ? d(e, t) : t, [d]), ie = c(() => e.map((e, t) => re(e, t)), [e, re]), ae = c(() => A ? e.map((e, t) => A(e, t)) : [], [e, A]), oe = i((t) => j ? j(e[t], t) : !1, [j, e]), U = Zr({
4908
4970
  items: e,
4909
- keys: re,
4910
- getItemKey: u,
4971
+ keys: ie,
4972
+ getItemKey: d,
4911
4973
  estimatedRowHeight: a,
4912
- rowGap: s,
4913
- overscan: o,
4914
- onLoadMore: v,
4915
- loadMoreThreshold: y,
4916
- forwardedRef: ne
4917
- }), { rootRef: U, headerRef: se, rowObserver: W, keysRef: ce, offsets: le, totalHeight: ue, startIndex: G, endIndex: K } = oe, de = Jr({
4974
+ rowGap: l,
4975
+ overscan: s,
4976
+ onLoadMore: y,
4977
+ loadMoreThreshold: b
4978
+ }), { rootRef: se, headerRef: W, rowObserver: ce, keysRef: le, offsets: ue, totalHeight: de, startIndex: G, endIndex: fe } = U, K = Qr({
4918
4979
  items: e,
4919
- getKey: z,
4920
- multiSelect: x,
4921
- selectedKeys: S,
4922
- onSelectionChange: C
4923
- }), { effectiveSelectedKeys: fe } = de, { hasColumns: pe, visibleColumns: me, columnTemplate: he, shouldShowToggle: ge, effectiveVisible: _e, manuallyHiddenCount: ve, toggleOpen: ye, setToggleOpen: be, toggleRef: xe, handleToggleColumn: Se } = Yr({
4980
+ getKey: re,
4981
+ multiSelect: S,
4982
+ selectedKeys: C,
4983
+ onSelectionChange: w
4984
+ }), { effectiveSelectedKeys: pe } = K, { hasColumns: me, visibleColumns: he, columnTemplate: ge, shouldShowToggle: _e, effectiveVisible: ve, manuallyHiddenCount: ye, toggleOpen: be, setToggleOpen: xe, toggleRef: Se, handleToggleColumn: q, recalculateColumns: Ce } = $r({
4924
4985
  columns: n,
4925
4986
  items: e,
4926
- multiSelect: x,
4927
- visibleColumnKeys: m,
4928
- onVisibleColumnsChange: h,
4929
- persistColumnsKey: g,
4930
- showColumnToggle: _,
4931
- rootRef: U,
4987
+ multiSelect: S,
4988
+ visibleColumnKeys: h,
4989
+ onVisibleColumnsChange: g,
4990
+ persistColumnsKey: _,
4991
+ showColumnToggle: v,
4992
+ rootRef: se,
4932
4993
  startIndex: G,
4933
- endIndex: K,
4934
- containerHeight: oe.containerHeight,
4935
- containerWidth: oe.containerWidth
4936
- }), q = Xr({
4937
- reorderable: w,
4938
- treeReorder: D,
4939
- onReorder: T,
4940
- onTreeDrop: j,
4941
- longPressDelay: E,
4942
- dragHandle: N,
4943
- treeIndentPx: M,
4944
- keys: re,
4945
- depths: ie,
4946
- isGroupAt: ae,
4947
- rootRef: U,
4948
- keysRef: ce
4949
- }), Ce = (n) => {
4950
- let r = e[n], i = z(r, n), a = l != null && i === l || fe.has(i), o = q.getRowDragProps(n, i);
4951
- return /* @__PURE__ */ V(Ir, {
4994
+ endIndex: fe,
4995
+ containerHeight: U.containerHeight,
4996
+ containerWidth: U.containerWidth
4997
+ });
4998
+ o(z, () => ({
4999
+ ...U.scrollApi,
5000
+ recalculateColumns: Ce
5001
+ }), [U.scrollApi, Ce]);
5002
+ let we = ei({
5003
+ reorderable: T,
5004
+ treeReorder: O,
5005
+ onReorder: E,
5006
+ onTreeDrop: M,
5007
+ longPressDelay: D,
5008
+ dragHandle: P,
5009
+ treeIndentPx: N,
5010
+ keys: ie,
5011
+ depths: ae,
5012
+ isGroupAt: oe,
5013
+ rootRef: se,
5014
+ keysRef: le
5015
+ }), Ee = (n) => {
5016
+ let r = e[n], i = re(r, n), a = u != null && i === u || pe.has(i), o = we.getRowDragProps(n, i);
5017
+ return /* @__PURE__ */ V(Br, {
4952
5018
  index: n,
4953
- top: le[n],
4954
- columnTemplate: he,
5019
+ top: ue[n],
5020
+ columnTemplate: ge,
4955
5021
  isSelected: a,
4956
- showDivider: P,
4957
- hover: F,
5022
+ showDivider: F,
5023
+ hover: I,
4958
5024
  onClick: () => {
4959
- q.consumeSuppressedClick() || d?.(r, n);
5025
+ we.consumeSuppressedClick() || m?.(r, n);
4960
5026
  },
4961
- observer: W,
4962
- ariaRowIndex: pe ? n + 2 : void 0,
4963
- ariaPosInSet: pe ? void 0 : n + 1,
4964
- ariaSetSize: pe ? void 0 : e.length,
4965
- rowRole: pe ? "row" : "listitem",
4966
- reserveToggleGutter: ge,
5027
+ observer: ce,
5028
+ ariaRowIndex: me ? n + 2 : void 0,
5029
+ ariaPosInSet: me ? void 0 : n + 1,
5030
+ ariaSetSize: me ? void 0 : e.length,
5031
+ rowRole: me ? "row" : "listitem",
5032
+ reserveToggleGutter: _e,
4967
5033
  ...o,
4968
5034
  dropIndicatorClassName: L?.dropIndicator,
4969
5035
  dropIndicatorStyle: R?.dropIndicator,
4970
5036
  rowClassName: L?.row,
4971
5037
  rowStyle: R?.row,
4972
- children: pe ? /* @__PURE__ */ H(B, { children: [x && /* @__PURE__ */ V("div", {
5038
+ children: me ? /* @__PURE__ */ H(B, { children: [S && /* @__PURE__ */ V("div", {
4973
5039
  className: f($.virtualListSelectCell, L?.selectCell),
4974
5040
  style: R?.selectCell,
4975
5041
  role: "gridcell",
4976
5042
  onClick: (e) => e.stopPropagation(),
4977
- children: /* @__PURE__ */ V(qe, {
4978
- selected: fe.has(i),
4979
- onToggle: () => de.handleRowSelect(i),
5043
+ children: /* @__PURE__ */ V(Ye, {
5044
+ selected: pe.has(i),
5045
+ onToggle: () => K.handleRowSelect(i),
4980
5046
  "aria-label": "Select row"
4981
5047
  })
4982
- }), me.map((e) => /* @__PURE__ */ V("div", {
5048
+ }), he.map((e) => /* @__PURE__ */ V("div", {
4983
5049
  className: f($.virtualListCell, L?.cell),
4984
5050
  style: R?.cell,
4985
5051
  role: "gridcell",
@@ -4987,80 +5053,80 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4987
5053
  children: e.renderCell(r, n)
4988
5054
  }, e.key))] }) : t?.(r, n)
4989
5055
  }, i);
4990
- }, we = [];
4991
- for (let e = G; e <= K; e++) we.push(Ce(e));
4992
- let Ee = q.draggingKey == null ? -1 : re.indexOf(q.draggingKey);
4993
- return Ee >= 0 && (Ee < G || Ee > K) && we.push(Ce(Ee)), /* @__PURE__ */ H("div", {
4994
- ...te,
4995
- ref: U,
4996
- className: f($.virtualList, q.draggingKey != null && $.virtualListReordering, I, L?.root),
5056
+ }, De = [];
5057
+ for (let e = G; e <= fe; e++) De.push(Ee(e));
5058
+ let Oe = we.draggingKey == null ? -1 : ie.indexOf(we.draggingKey);
5059
+ return Oe >= 0 && (Oe < G || Oe > fe) && De.push(Ee(Oe)), /* @__PURE__ */ H("div", {
5060
+ ...ne,
5061
+ ref: se,
5062
+ className: f($.virtualList, we.draggingKey != null && $.virtualListReordering, ee, L?.root),
4997
5063
  style: {
4998
5064
  height: r,
4999
- ...ee,
5065
+ ...te,
5000
5066
  ...R?.root
5001
5067
  },
5002
- onScroll: oe.handleScroll,
5003
- role: pe ? "grid" : "list",
5004
- "aria-rowcount": pe ? e.length + 1 : void 0,
5068
+ onScroll: U.handleScroll,
5069
+ role: me ? "grid" : "list",
5070
+ "aria-rowcount": me ? e.length + 1 : void 0,
5005
5071
  children: [
5006
- pe && /* @__PURE__ */ H("div", {
5007
- ref: se,
5072
+ me && /* @__PURE__ */ H("div", {
5073
+ ref: W,
5008
5074
  className: f($.virtualListHeader, L?.header),
5009
5075
  style: {
5010
- gridTemplateColumns: he,
5011
- ...ge ? { paddingRight: 32 } : {},
5076
+ gridTemplateColumns: ge,
5077
+ ..._e ? { paddingRight: 32 } : {},
5012
5078
  ...R?.header
5013
5079
  },
5014
5080
  role: "row",
5015
5081
  "aria-rowindex": 1,
5016
5082
  children: [
5017
- x && /* @__PURE__ */ V("div", {
5083
+ S && /* @__PURE__ */ V("div", {
5018
5084
  className: f($.virtualListSelectCell, L?.selectCell),
5019
5085
  style: R?.selectCell,
5020
5086
  role: "columnheader",
5021
- children: /* @__PURE__ */ V(qe, {
5022
- selected: de.allSelected || de.someSelected,
5023
- onToggle: de.handleSelectAll,
5087
+ children: /* @__PURE__ */ V(Ye, {
5088
+ selected: K.allSelected || K.someSelected,
5089
+ onToggle: K.handleSelectAll,
5024
5090
  "aria-label": "Select all rows"
5025
5091
  })
5026
5092
  }),
5027
- me.map((e) => /* @__PURE__ */ V("div", {
5093
+ he.map((e) => /* @__PURE__ */ V("div", {
5028
5094
  className: f($.virtualListHeaderCell, L?.headerCell),
5029
5095
  style: R?.headerCell,
5030
5096
  role: "columnheader",
5031
5097
  "data-fit-key": e.width.type === "fit" ? e.key : void 0,
5032
5098
  children: e.label
5033
5099
  }, e.key)),
5034
- ge && /* @__PURE__ */ H("div", {
5035
- ref: xe,
5100
+ _e && /* @__PURE__ */ H("div", {
5101
+ ref: Se,
5036
5102
  className: $.virtualListToggleWrapper,
5037
5103
  children: [
5038
5104
  /* @__PURE__ */ V("button", {
5039
5105
  type: "button",
5040
5106
  className: f($.virtualListHeaderToggle, L?.headerToggle),
5041
5107
  style: R?.headerToggle,
5042
- onClick: () => be((e) => !e),
5108
+ onClick: () => xe((e) => !e),
5043
5109
  "aria-label": "Toggle column visibility",
5044
5110
  children: /* @__PURE__ */ V(p, {
5045
5111
  icon: k,
5046
5112
  style: R?.headerToggle
5047
5113
  })
5048
5114
  }),
5049
- ve > 0 && /* @__PURE__ */ V("span", {
5115
+ ye > 0 && /* @__PURE__ */ V("span", {
5050
5116
  className: f($.virtualListColumnChip, L?.columnChip),
5051
5117
  style: R?.columnChip,
5052
- "data-column-hidden-count": ve,
5053
- "aria-label": `${ve} columns hidden`,
5054
- children: ve
5118
+ "data-column-hidden-count": ye,
5119
+ "aria-label": `${ye} columns hidden`,
5120
+ children: ye
5055
5121
  }),
5056
- ye && /* @__PURE__ */ V("div", {
5122
+ be && /* @__PURE__ */ V("div", {
5057
5123
  className: f($.virtualListTogglePopover, L?.togglePopover),
5058
5124
  style: R?.togglePopover,
5059
- children: n.map((e) => /* @__PURE__ */ V(qe, {
5125
+ children: n.map((e) => /* @__PURE__ */ V(Ye, {
5060
5126
  className: f($.virtualListToggleItem, L?.toggleItem),
5061
5127
  style: R?.toggleItem,
5062
- selected: _e.has(e.key),
5063
- onToggle: () => Se(e.key),
5128
+ selected: ve.has(e.key),
5129
+ onToggle: () => q(e.key),
5064
5130
  cursorDefault: !1,
5065
5131
  children: e.label
5066
5132
  }, e.key))
@@ -5069,18 +5135,18 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5069
5135
  })
5070
5136
  ]
5071
5137
  }),
5072
- b ? /* @__PURE__ */ V("div", {
5138
+ x ? /* @__PURE__ */ V("div", {
5073
5139
  className: $.virtualListLoadingFull,
5074
5140
  children: /* @__PURE__ */ V(Te, { className: $.virtualListSpinner })
5075
5141
  }) : /* @__PURE__ */ V("div", {
5076
5142
  className: f($.virtualListBody, L?.body),
5077
5143
  style: {
5078
- height: ue,
5144
+ height: de,
5079
5145
  ...R?.body
5080
5146
  },
5081
- children: we
5147
+ children: De
5082
5148
  }),
5083
- oe.showLoadMoreSpinner && /* @__PURE__ */ V("div", {
5149
+ U.showLoadMoreSpinner && /* @__PURE__ */ V("div", {
5084
5150
  className: f($.virtualListLoadingIndicator, L?.loadingIndicator),
5085
5151
  style: R?.loadingIndicator,
5086
5152
  children: /* @__PURE__ */ V(Te, { className: $.virtualListSpinner })
@@ -5088,7 +5154,7 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5088
5154
  ]
5089
5155
  });
5090
5156
  }
5091
- var Qr = e.forwardRef(Zr), $r = {
5157
+ var ni = e.forwardRef(ti), ri = {
5092
5158
  wizard: "wizard_uRBAN",
5093
5159
  "wizard-content": "wizard-content_lcl4C",
5094
5160
  wizardContent: "wizard-content_lcl4C",
@@ -5099,7 +5165,7 @@ var Qr = e.forwardRef(Zr), $r = {
5099
5165
  };
5100
5166
  //#endregion
5101
5167
  //#region package/common/wizard/wizard.tsx
5102
- function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
5168
+ function ii({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
5103
5169
  let [l, p] = d(void 0), [m, h] = d(!1), [g, _] = d(e), v = u([]), y = u(null);
5104
5170
  e !== g && (_(e), h(!0)), a(() => {
5105
5171
  if (!m) return;
@@ -5119,10 +5185,10 @@ function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5119
5185
  };
5120
5186
  return /* @__PURE__ */ V("div", {
5121
5187
  ...c,
5122
- className: f($r.wizard, o?.root, r),
5188
+ className: f(ri.wizard, o?.root, r),
5123
5189
  style: b,
5124
5190
  children: /* @__PURE__ */ V("div", {
5125
- className: f($r.wizardContentContainer, o?.container),
5191
+ className: f(ri.wizardContentContainer, o?.container),
5126
5192
  style: {
5127
5193
  width: `${t * 100}%`,
5128
5194
  marginLeft: `-${e * 100}%`,
@@ -5132,14 +5198,14 @@ function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5132
5198
  ref: (e) => {
5133
5199
  v.current[i] = e;
5134
5200
  },
5135
- className: f($r.wizardContent, o?.step),
5201
+ className: f(ri.wizardContent, o?.step),
5136
5202
  style: {
5137
5203
  width: `${100 / t}%`,
5138
5204
  marginLeft: `${100 / t * i}%`,
5139
5205
  ...s?.step
5140
5206
  },
5141
5207
  children: /* @__PURE__ */ V("div", {
5142
- className: f({ [$r.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
5208
+ className: f({ [ri.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
5143
5209
  style: s?.stepContent,
5144
5210
  inert: e === i ? void 0 : !0,
5145
5211
  children: n(i)
@@ -5150,20 +5216,20 @@ function ei({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
5150
5216
  }
5151
5217
  //#endregion
5152
5218
  //#region package/services/formValidation/formValidatorGroup.ts
5153
- function ti(e) {
5219
+ function ai(e) {
5154
5220
  let t = e;
5155
5221
  return t?.errors && Array.isArray(t.errors) ? t.errors.flatMap((e) => Object.entries(e).map(([e, t]) => ({
5156
5222
  id: e,
5157
5223
  message: t
5158
5224
  }))) : [];
5159
5225
  }
5160
- var ni = class {
5226
+ var oi = class {
5161
5227
  #e;
5162
5228
  #t;
5163
5229
  #n;
5164
5230
  #r;
5165
5231
  #i;
5166
- constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = ti, onSubmitError: o = () => void 0 } = {}) {
5232
+ constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = ai, onSubmitError: o = () => void 0 } = {}) {
5167
5233
  this.#t = !1, this.#i = [], this.getFormError = () => {
5168
5234
  let e = Object.keys(this.group);
5169
5235
  for (let t = 0; t < e.length; t += 1) {
@@ -5253,7 +5319,7 @@ var ni = class {
5253
5319
  };
5254
5320
  //#endregion
5255
5321
  //#region package/services/formValidation/FormValidatorGroupForm.tsx
5256
- function ri(e) {
5322
+ function si(e) {
5257
5323
  return function({ children: t, ...n }) {
5258
5324
  return /* @__PURE__ */ V("form", {
5259
5325
  onSubmit: e.submit,
@@ -5265,16 +5331,16 @@ function ri(e) {
5265
5331
  }
5266
5332
  //#endregion
5267
5333
  //#region package/services/formValidation/FormValidatorGroupWithForm.tsx
5268
- var ii = (e) => {
5269
- jr(e[0].message, { type: "error" });
5270
- }, ai = class extends ni {
5334
+ var ci = (e) => {
5335
+ Fr(e[0].message, { type: "error" });
5336
+ }, li = class extends oi {
5271
5337
  constructor(e, t = null, n) {
5272
5338
  super(e, t, {
5273
5339
  ...n,
5274
- onSubmitError: n?.onSubmitError ?? ii
5275
- }), this.Form = ri(this);
5340
+ onSubmitError: n?.onSubmitError ?? ci
5341
+ }), this.Form = si(this);
5276
5342
  }
5277
- }, oi = class {
5343
+ }, ui = class {
5278
5344
  #e;
5279
5345
  #t;
5280
5346
  #n;
@@ -5328,44 +5394,44 @@ var ii = (e) => {
5328
5394
  return this.#r;
5329
5395
  }
5330
5396
  };
5331
- oi.prototype.toString = function() {
5397
+ ui.prototype.toString = function() {
5332
5398
  return `${this.value}`;
5333
5399
  };
5334
5400
  //#endregion
5335
5401
  //#region package/services/regexp.ts
5336
- function si(e) {
5402
+ function di(e) {
5337
5403
  return /^[0-9]+$/.test(e);
5338
5404
  }
5339
- function ci(e) {
5405
+ function fi(e) {
5340
5406
  return /^[0-9]{2}.[0-9]{2}.[0-9]{4}$/.test(e);
5341
5407
  }
5342
- function li(e) {
5408
+ function pi(e) {
5343
5409
  return /^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}Z$/.test(e);
5344
5410
  }
5345
- function ui(e) {
5411
+ function mi(e) {
5346
5412
  return /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-ZöäüÜÖÄß\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e);
5347
5413
  }
5348
- function di(e) {
5414
+ function hi(e) {
5349
5415
  return /^[A-Z]{6}[A-Z\d]{2}([A-Z\d]{3})?$/.test(e);
5350
5416
  }
5351
- function fi(e) {
5417
+ function gi(e) {
5352
5418
  return /[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}(\/[-a-zA-Z0-9@:%_+.~#?&//=]*)?$/.test(e);
5353
5419
  }
5354
- function pi(e) {
5420
+ function _i(e) {
5355
5421
  return /^[\w!@#$%^&*?±§~`'"/\\[\]{}\-,.();:><+=|öäüÖÄÜß €μ]{8,}$/.test(e);
5356
5422
  }
5357
- function mi(e) {
5423
+ function vi(e) {
5358
5424
  return /^(?=.*[a-zöäüA-ZÖÄÜß])/.test(e);
5359
5425
  }
5360
- function hi(e) {
5426
+ function yi(e) {
5361
5427
  return /^(?=.*\d)/.test(e);
5362
5428
  }
5363
- function gi(e) {
5364
- return pi(e) && mi(e) && hi(e);
5429
+ function bi(e) {
5430
+ return _i(e) && vi(e) && yi(e);
5365
5431
  }
5366
5432
  //#endregion
5367
5433
  //#region package/services/formValidation/validators.ts
5368
- var _i = { t: (e, t) => ({
5434
+ var xi = { t: (e, t) => ({
5369
5435
  "formValidators.minLength": `Must be at least ${t?.min} characters long`,
5370
5436
  "formValidators.maxLength": `Must be at most ${t?.max} characters long`,
5371
5437
  "formValidators.email": "Must be a valid email address",
@@ -5380,23 +5446,23 @@ var _i = { t: (e, t) => ({
5380
5446
  "garages.errors.bic": "Must be a valid BIC",
5381
5447
  "formValidators.minLetters": `Must contain at least ${t?.smart_count} letters`,
5382
5448
  "formValidators.minDigits": `Must contain at least ${t?.smart_count} digits`
5383
- })[e] || e }, vi = class e {
5449
+ })[e] || e }, Si = class e {
5384
5450
  static {
5385
5451
  this.minLength = (e, t) => (n) => !n || n.length < e ? {
5386
5452
  id: "minLength",
5387
- message: t || _i.t("formValidators.minLength", { min: e })
5453
+ message: t || xi.t("formValidators.minLength", { min: e })
5388
5454
  } : null;
5389
5455
  }
5390
5456
  static {
5391
5457
  this.maxLength = (e, t) => (n) => n && n.length > e ? {
5392
5458
  id: "maxLength",
5393
- message: t || _i.t("formValidators.maxLength", { max: e })
5459
+ message: t || xi.t("formValidators.maxLength", { max: e })
5394
5460
  } : null;
5395
5461
  }
5396
5462
  static {
5397
- this.email = (e) => (t) => t && !ui(t) ? {
5463
+ this.email = (e) => (t) => t && !mi(t) ? {
5398
5464
  id: "email",
5399
- message: e || _i.t("formValidators.email")
5465
+ message: e || xi.t("formValidators.email")
5400
5466
  } : null;
5401
5467
  }
5402
5468
  static {
@@ -5404,7 +5470,7 @@ var _i = { t: (e, t) => ({
5404
5470
  function t(t, n) {
5405
5471
  return !t && t !== 0 ? {
5406
5472
  id: "required",
5407
- message: e || _i.t("formValidators.required", { label: n || _i.t("formValidators.value") })
5473
+ message: e || xi.t("formValidators.required", { label: n || xi.t("formValidators.value") })
5408
5474
  } : null;
5409
5475
  }
5410
5476
  return t.validatorId = "required", t;
@@ -5413,13 +5479,13 @@ var _i = { t: (e, t) => ({
5413
5479
  static {
5414
5480
  this.mustBeNumber = (e) => (t) => t && Number.isNaN(+t) ? {
5415
5481
  id: "mustBeNumber",
5416
- message: e || _i.t("formValidators.mustBeNumber")
5482
+ message: e || xi.t("formValidators.mustBeNumber")
5417
5483
  } : null;
5418
5484
  }
5419
5485
  static {
5420
5486
  this.oneOf = (e, t) => (n) => n && !e.includes(n) ? {
5421
5487
  id: "oneOf",
5422
- message: t || _i.t("formValidators.oneOf", { allowedValues: e })
5488
+ message: t || xi.t("formValidators.oneOf", { allowedValues: e })
5423
5489
  } : null;
5424
5490
  }
5425
5491
  static {
@@ -5437,48 +5503,48 @@ var _i = { t: (e, t) => ({
5437
5503
  this.multiEmail = (e) => (t) => {
5438
5504
  if (t) {
5439
5505
  let n = t.replace(/ /g, "").replace(/,/g, ";").split(";");
5440
- for (let t = 0; t < n.length; t += 1) if (!ui(n[t])) return {
5506
+ for (let t = 0; t < n.length; t += 1) if (!mi(n[t])) return {
5441
5507
  id: "multiEmail",
5442
- message: e || _i.t("formValidators.multiEmail")
5508
+ message: e || xi.t("formValidators.multiEmail")
5443
5509
  };
5444
5510
  }
5445
5511
  return null;
5446
5512
  };
5447
5513
  }
5448
5514
  static {
5449
- this.date = (e) => (t) => t && !ci(t) && !li(t) ? {
5515
+ this.date = (e) => (t) => t && !fi(t) && !pi(t) ? {
5450
5516
  id: "date",
5451
- message: e || _i.t("formValidators.date")
5517
+ message: e || xi.t("formValidators.date")
5452
5518
  } : null;
5453
5519
  }
5454
5520
  static {
5455
5521
  this.dateObject = (e) => (t) => t && !t.isValid ? {
5456
5522
  id: "date",
5457
- message: e || _i.t("formValidators.date")
5523
+ message: e || xi.t("formValidators.date")
5458
5524
  } : null;
5459
5525
  }
5460
5526
  static {
5461
- this.website = (e) => (t) => t && !fi(t) ? {
5527
+ this.website = (e) => (t) => t && !gi(t) ? {
5462
5528
  id: "website",
5463
- message: e || _i.t("garages.errors.website")
5529
+ message: e || xi.t("garages.errors.website")
5464
5530
  } : null;
5465
5531
  }
5466
5532
  static {
5467
- this.bic = (e) => (t) => t && !di(t) ? {
5533
+ this.bic = (e) => (t) => t && !hi(t) ? {
5468
5534
  id: "bic",
5469
- message: e || _i.t("garages.errors.bic")
5535
+ message: e || xi.t("garages.errors.bic")
5470
5536
  } : null;
5471
5537
  }
5472
5538
  static {
5473
5539
  this.minLetters = (e, t) => (n) => n && n.replace(/[^a-zöäüA-ZÖÄÜß]/g, "").length < e ? {
5474
5540
  id: "minLetters",
5475
- message: t || _i.t("formValidators.minLetters", { smart_count: e })
5541
+ message: t || xi.t("formValidators.minLetters", { smart_count: e })
5476
5542
  } : null;
5477
5543
  }
5478
5544
  static {
5479
5545
  this.minDigits = (e, t) => (n) => n && n.replace(/[\D]/g, "").length < e ? {
5480
5546
  id: "minDigits",
5481
- message: t || _i.t("formValidators.minDigits", { smart_count: e })
5547
+ message: t || xi.t("formValidators.minDigits", { smart_count: e })
5482
5548
  } : null;
5483
5549
  }
5484
5550
  static {
@@ -5490,7 +5556,7 @@ var _i = { t: (e, t) => ({
5490
5556
  } : r : null;
5491
5557
  };
5492
5558
  }
5493
- }, yi = class extends n {
5559
+ }, Ci = class extends n {
5494
5560
  static {
5495
5561
  this.defaultProps = {
5496
5562
  formValidator: null,
@@ -5553,7 +5619,7 @@ var _i = { t: (e, t) => ({
5553
5619
  }
5554
5620
  renderTooltip() {
5555
5621
  let { errorMessage: e, formValidator: t } = this.props, { isHovered: n, isFocused: r } = this.state;
5556
- return /* @__PURE__ */ V(nt, {
5622
+ return /* @__PURE__ */ V(ot, {
5557
5623
  variant: "error",
5558
5624
  message: t ? t.getCurrentErrorMessage() : e || "",
5559
5625
  isVisible: this.hasError() && (r || n)
@@ -5570,7 +5636,7 @@ var _i = { t: (e, t) => ({
5570
5636
  };
5571
5637
  //#endregion
5572
5638
  //#region package/services/formValidation/useFormValidator.ts
5573
- function bi(e) {
5639
+ function wi(e) {
5574
5640
  let [, t] = l((e) => e + 1, 0);
5575
5641
  return a(() => {
5576
5642
  if (e) return e.registerOnUpdateListener(t), () => e.removeOnUpdateListener(t);
@@ -5578,9 +5644,9 @@ function bi(e) {
5578
5644
  }
5579
5645
  //#endregion
5580
5646
  //#region package/services/formValidation/useFormValidatorGroup.ts
5581
- function xi(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, onSubmitError: o } = {}) {
5647
+ function Ti(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, onSubmitError: o } = {}) {
5582
5648
  let [, s] = l((e) => e + 1, 0), c = u(null);
5583
- c.current ||= new ai(e, null, {
5649
+ c.current ||= new li(e, null, {
5584
5650
  initialValues: t,
5585
5651
  errorParser: i,
5586
5652
  onSubmitError: o
@@ -5589,6 +5655,6 @@ function xi(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, o
5589
5655
  return f.current = n, p.current = r, a(() => (n !== void 0 && (d.onSubmitCallback = (...e) => f.current?.(...e)), r !== void 0 && (d.onValidateCallback = (...e) => p.current?.(...e)), d.registerOnUpdateListener(s), () => d.removeOnUpdateListener(s)), []), d;
5590
5656
  }
5591
5657
  //#endregion
5592
- export { xe as Accordion, ge as AccordionStyleType, Ne as ActionButtons, Re as ActionIcon, Qe as Align, ze as BodyEnd, J as Button, De as ButtonSize, Ee as ButtonStyleType, Oe as ButtonType, Ve as Card, Ge as CardActions, We as CardContent, He as CardHeader, Ue as CardMedia, qe as Checkbox, Ye as Chip, Xe as ChipContainer, mt as ColorPicker, _t as ConfirmModal, Gt as DatePicker, Ut as Dropdown, qt as EmptyState, Qt as Fab, et as FloatingMenu, oi as FormValidator, ai as FormValidatorGroup, gn as IconLoading, nn as IconPicker, an as IdleManager, Ht as InfiniteBlock, rt as Input, ln as InputDropdown, X as InputType, Ie as InteractableDiv, pn as KanbanBoard, fn as KanbanColumn, gt as Modal, yn as NumberInput, xn as OptionPicker, Tn as Overscroll, On as ProgressBar, Ae as Ripple, tr as RoomDrawer, rr as RoomViewer, or as ScrollbarProvider, cr as SearchInput, Te as SpinnerLoading, dr as Stepper, yr as TenorPicker, br as Textarea, Cr as ThemeProvider, Fr as ToastProvider, nt as Tooltip, yi as ValidatableComponent, vi as Validators, Qr as VirtualList, ei as Wizard, xr as defaultTheme, Tt as getLocale, pi as hasEightPasswordChars, hi as hasOnePasswordDigit, mi as hasOnePasswordLetter, di as isBic, ci as isDate, ui as isEmail, li as isISODate, si as isNumber, gi as isPassword, fi as isURL, St as mapLocale, wt as setLocale, jr as showToast, bi as useFormValidator, xi as useFormValidatorGroup, wr as useTheme };
5658
+ export { xe as Accordion, ge as AccordionStyleType, Pe as ActionButtons, ze as ActionIcon, nt as Align, Be as BodyEnd, Ne as Button, De as ButtonSize, Ee as ButtonStyleType, Oe as ButtonType, Ue as Card, qe as CardActions, Ke as CardContent, We as CardHeader, Ge as CardMedia, Ve as CardStyleType, Ye as Checkbox, $e as Chip, et as ChipContainer, Xe as ChipStyleType, vt as ColorPicker, xt as ConfirmModal, Yt as DatePicker, qt as Dropdown, Zt as EmptyState, nn as Fab, it as FloatingMenu, ui as FormValidator, li as FormValidatorGroup, bn as IconLoading, sn as IconPicker, ln as IdleManager, Kt as InfiniteBlock, st as Input, pn as InputDropdown, X as InputType, Le as InteractableDiv, _n as KanbanBoard, gn as KanbanColumn, bt as Modal, Cn as NumberInput, Tn as OptionPicker, kn as Overscroll, Mn as ProgressBar, Ae as Ripple, ar as RoomDrawer, sr as RoomViewer, ur as ScrollbarProvider, fr as SearchInput, Te as SpinnerLoading, hr as Stepper, Cr as TenorPicker, wr as Textarea, Dr as ThemeProvider, zr as ToastProvider, ot as Tooltip, Ci as ValidatableComponent, Si as Validators, ni as VirtualList, ii as Wizard, Tr as defaultTheme, kt as getLocale, _i as hasEightPasswordChars, yi as hasOnePasswordDigit, vi as hasOnePasswordLetter, hi as isBic, fi as isDate, mi as isEmail, pi as isISODate, di as isNumber, bi as isPassword, gi as isURL, Et as mapLocale, Ot as setLocale, Fr as showToast, wi as useFormValidator, Ti as useFormValidatorGroup, Or as useTheme };
5593
5659
 
5594
5660
  //# sourceMappingURL=index.mjs.map