@ahrowe/ui 0.1.9 → 0.1.10

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