@ahrowe/ui 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import e, { Component as t, PureComponent as n, forwardRef as r, useCallback as i, useEffect as a, useImperativeHandle as o, useLayoutEffect as s, useMemo as c, useReducer as l, useRef as u, useState as d } from "react";
2
2
  import f from "classnames";
3
3
  import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
4
- import { faBell as m, faCheck as h, faChevronDown as g, faChevronLeft as _, faChevronRight as v, faCircleInfo as y, faCircleXmark as b, faDoorOpen as x, faDownload as S, faDrawPolygon as C, faEnvelope as w, faEye as T, faEyeSlash as E, faGear as ee, faHandPointer as D, faLayerGroup as O, faMagnifyingGlassMinus as k, faMagnifyingGlassPlus as A, faPen as j, faPhone as M, faPlus as N, faSearch as P, faSquare as te, faTrash as ne, faTriangleExclamation as F, faUpload as re, faXmark as ie, faXmarkCircle as ae } from "@fortawesome/free-solid-svg-icons";
5
- import { Fragment as oe, jsx as I, jsxs as L } from "react/jsx-runtime";
6
- import { createPortal as R } from "react-dom";
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 A, faMagnifyingGlassPlus as j, faPen as M, faPhone as N, faPlus as P, faSearch as te, faSquare as ne, faTrash as F, faTriangleExclamation as re, faUpload as ie, faXmark as I, faXmarkCircle as ae } from "@fortawesome/free-solid-svg-icons";
5
+ import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
6
+ import { createPortal as oe } from "react-dom";
7
7
  import se from "downshift";
8
8
  import ce from "@mona-health/react-input-mask";
9
- import { DndContext as le, DragOverlay as ue, PointerSensor as de, closestCorners as fe, useDroppable as z, useSensor as pe, useSensors as me } from "@dnd-kit/core";
10
- import { SortableContext as B, arrayMove as V, useSortable as H, verticalListSortingStrategy as he } from "@dnd-kit/sortable";
9
+ import { DndContext as le, DragOverlay as ue, PointerSensor as de, closestCorners as B, useDroppable as fe, useSensor as pe, useSensors as V } from "@dnd-kit/core";
10
+ import { SortableContext as H, arrayMove as U, useSortable as me, verticalListSortingStrategy as he } from "@dnd-kit/sortable";
11
11
  import { CSS as ge } from "@dnd-kit/utilities";
12
12
  import { NumericFormat as _e } from "react-number-format";
13
13
  //#region package/common/accordion/accordion.types.ts
@@ -71,13 +71,13 @@ var ve = /* @__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
- }, Se = {
74
+ }, W = {
75
75
  [ve.Default]: ye,
76
76
  [ve.Primary]: be,
77
77
  [ve.Plain]: xe
78
78
  };
79
- function U({ id: e = "", title: t = "", children: n = null, expanded: r = null, onHeaderClicked: i = () => {}, styleType: o = ve.Default, startOpen: s = !1, hideHeader: c = !1, className: l, style: m, classNames: h, styles: _, ...v }) {
80
- let y = Se[o], b = u(null), [x, S] = d(r ?? s), [C, w] = d(null);
79
+ function Se({ id: e = "", title: t = "", children: n = null, expanded: r = null, onHeaderClicked: i = () => {}, styleType: o = ve.Default, startOpen: s = !1, hideHeader: c = !1, className: l, style: m, classNames: h, styles: _, ...v }) {
80
+ let y = W[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 U({ 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__ */ L("div", {
94
+ return /* @__PURE__ */ z("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 U({ id: e = "", title: t = "", children: n = null, expanded: r = null,
99
99
  ...m,
100
100
  ..._?.root
101
101
  },
102
- children: [!c && /* @__PURE__ */ L("div", {
102
+ children: [!c && /* @__PURE__ */ z("div", {
103
103
  className: f(y.accordionHeader, x && y.accordionHeaderActive, h?.header),
104
104
  style: {
105
105
  ...E,
@@ -111,22 +111,22 @@ function U({ 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__ */ I("div", {
114
+ children: [/* @__PURE__ */ R("div", {
115
115
  className: f(y.accordionTitle, h?.title),
116
116
  style: _?.title,
117
117
  children: t
118
- }), /* @__PURE__ */ I(p, {
118
+ }), /* @__PURE__ */ R(p, {
119
119
  icon: g,
120
120
  className: f(y.accordionIcon, x && y.accordionIconActive, h?.icon),
121
121
  style: _?.icon
122
122
  })]
123
- }), /* @__PURE__ */ I("div", {
123
+ }), /* @__PURE__ */ R("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__ */ I("div", {
129
+ children: /* @__PURE__ */ R("div", {
130
130
  className: f(y.accordionBodyInner, h?.bodyInner),
131
131
  style: _?.bodyInner,
132
132
  ref: b,
@@ -139,7 +139,7 @@ var Ce = {
139
139
  actionButtons: "actionButtons_7GybR",
140
140
  "actionButtons-margin": "actionButtons-margin_-XoFP",
141
141
  actionButtonsMargin: "actionButtons-margin_-XoFP"
142
- }, W = {
142
+ }, G = {
143
143
  button: "button_wYLPJ",
144
144
  "button-notAllowed": "button-notAllowed_xGT-E",
145
145
  buttonNotAllowed: "button-notAllowed_xGT-E",
@@ -181,14 +181,14 @@ var Ce = {
181
181
  //#endregion
182
182
  //#region package/common/loading/spinnerLoading/spinnerLoading.tsx
183
183
  function Te({ className: e }) {
184
- return /* @__PURE__ */ I("svg", {
184
+ return /* @__PURE__ */ R("svg", {
185
185
  "data-testid": "spinner",
186
186
  className: f(we.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__ */ I("circle", {
191
+ children: /* @__PURE__ */ R("circle", {
192
192
  cx: "50",
193
193
  cy: "50",
194
194
  r: "45",
@@ -199,22 +199,22 @@ function Te({ className: e }) {
199
199
  Te.defaultProps = { className: void 0 };
200
200
  //#endregion
201
201
  //#region package/common/loading/spinnerLoading/index.ts
202
- var Ee = Te, G = /* @__PURE__ */ function(e) {
202
+ var Ee = Te, De = /* @__PURE__ */ function(e) {
203
203
  return e.Primary = "primary", e.Default = "default", e.Delete = "delete", e;
204
- }({}), De = /* @__PURE__ */ function(e) {
205
- return e.Default = "default", e.Small = "small", e.Medium = "medium", e.Large = "large", e;
206
204
  }({}), Oe = /* @__PURE__ */ function(e) {
205
+ return e.Default = "default", e.Small = "small", e.Medium = "medium", e.Large = "large", e;
206
+ }({}), ke = /* @__PURE__ */ function(e) {
207
207
  return e.Button = "button", e.Reset = "reset", e.Submit = "submit", e;
208
- }({}), ke = {
208
+ }({}), Ae = {
209
209
  ripple: "ripple_TsvyF",
210
210
  "ripple-container": "ripple-container_QzHdC",
211
211
  rippleContainer: "ripple-container_QzHdC"
212
- }, Ae = r(function({ disabled: e = !1, children: t, className: n, style: r, overflowHidden: i = !0, rippleAnimationLength: s = .6, rippleBackground: c = "rgba(255, 255, 255, 0.2)", manualOnly: l = !1, ...d }, f) {
212
+ }, je = r(function({ disabled: e = !1, children: t, className: n, style: r, overflowHidden: i = !0, rippleAnimationLength: s = .6, rippleBackground: c = "rgba(255, 255, 255, 0.2)", manualOnly: l = !1, ...d }, f) {
213
213
  let p = u(null), m = u(null);
214
214
  function h(t, n) {
215
215
  if (e) return;
216
216
  let r = document.createElement("div");
217
- r.style.left = `${t}px`, r.style.top = `${n}px`, r.style.background = c, r.classList.add(ke.ripple), p.current?.appendChild(r), setTimeout(() => {
217
+ r.style.left = `${t}px`, r.style.top = `${n}px`, r.style.background = c, r.classList.add(Ae.ripple), p.current?.appendChild(r), setTimeout(() => {
218
218
  p.current?.removeChild(r);
219
219
  }, s * 1e3 + 50);
220
220
  }
@@ -236,14 +236,14 @@ var Ee = Te, G = /* @__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__ */ I("div", {
240
- className: ke.rippleContainer,
239
+ return t === void 0 ? /* @__PURE__ */ R("div", {
240
+ className: Ae.rippleContainer,
241
241
  ref: p,
242
242
  style: {
243
243
  overflow: i ? "hidden" : "visible",
244
244
  ..._
245
245
  }
246
- }) : /* @__PURE__ */ L("div", {
246
+ }) : /* @__PURE__ */ z("div", {
247
247
  ...d,
248
248
  className: n,
249
249
  onClick: l ? void 0 : (e) => g(e),
@@ -252,94 +252,94 @@ var Ee = Te, G = /* @__PURE__ */ function(e) {
252
252
  overflow: i ? "hidden" : "visible",
253
253
  ...r
254
254
  },
255
- children: [t, /* @__PURE__ */ I("div", {
256
- className: ke.rippleContainer,
255
+ children: [t, /* @__PURE__ */ R("div", {
256
+ className: Ae.rippleContainer,
257
257
  ref: p,
258
258
  style: _
259
259
  })]
260
260
  });
261
- }), je = {
262
- default: W.buttonStyleDefault,
263
- primary: W.buttonStylePrimary,
264
- delete: W.buttonStyleDelete
265
- }, Me = {
266
- default: W.buttonSizeDefault,
267
- small: W.buttonSizeSmall,
268
- medium: W.buttonSizeMedium,
269
- large: W.buttonSizeLarge
261
+ }), Me = {
262
+ default: G.buttonStyleDefault,
263
+ primary: G.buttonStylePrimary,
264
+ delete: G.buttonStyleDelete
265
+ }, Ne = {
266
+ default: G.buttonSizeDefault,
267
+ small: G.buttonSizeSmall,
268
+ medium: G.buttonSizeMedium,
269
+ large: G.buttonSizeLarge
270
270
  };
271
- function K({ className: e, style: t, type: n = Oe.Button, styleType: r = G.Default, size: i = De.Default, onClick: a = () => {}, children: o, icon: s, isLoading: c = !1, disabled: l = !1, title: u = void 0, ref: d, classNames: m, styles: h, ...g }) {
272
- return /* @__PURE__ */ I("button", {
271
+ function K({ className: e, style: t, type: n = ke.Button, styleType: r = De.Default, size: i = Oe.Default, onClick: a = () => {}, children: o, icon: s, isLoading: c = !1, disabled: l = !1, title: u = void 0, ref: d, classNames: m, styles: h, ...g }) {
272
+ return /* @__PURE__ */ R("button", {
273
273
  ...g,
274
- className: f(W.button, je[r], Me[i], { [W.buttonNotAllowed]: c || l }, e),
274
+ className: f(G.button, Me[r], Ne[i], { [G.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__ */ I(Ae, {
281
+ children: /* @__PURE__ */ R(je, {
282
282
  disabled: c || l,
283
- children: /* @__PURE__ */ I("div", {
284
- className: f(W.buttonBackground, m?.background),
283
+ children: /* @__PURE__ */ R("div", {
284
+ className: f(G.buttonBackground, m?.background),
285
285
  style: h?.background,
286
- children: /* @__PURE__ */ L("div", {
287
- className: f(W.buttonContent, m?.content),
286
+ children: /* @__PURE__ */ z("div", {
287
+ className: f(G.buttonContent, m?.content),
288
288
  style: h?.content,
289
- children: [c ? /* @__PURE__ */ I("div", {
290
- className: f(W.buttonLoadingContainer, m?.loadingContainer),
289
+ children: [c ? /* @__PURE__ */ R("div", {
290
+ className: f(G.buttonLoadingContainer, m?.loadingContainer),
291
291
  style: h?.loadingContainer,
292
- children: /* @__PURE__ */ I(Ee, { className: W.buttonLoadingIcon })
293
- }) : null, /* @__PURE__ */ L("div", {
292
+ children: /* @__PURE__ */ R(Ee, { className: G.buttonLoadingIcon })
293
+ }) : null, /* @__PURE__ */ z("div", {
294
294
  className: f(m?.label, {
295
- [W.buttonLoading]: c,
296
- [W.buttonWithIcon]: !!s
295
+ [G.buttonLoading]: c,
296
+ [G.buttonWithIcon]: !!s
297
297
  }),
298
298
  style: h?.label,
299
- children: [s ? /* @__PURE__ */ I(p, { icon: s }) : null, o]
299
+ children: [s ? /* @__PURE__ */ R(p, { icon: s }) : null, o]
300
300
  })]
301
301
  })
302
302
  })
303
303
  })
304
304
  });
305
305
  }
306
- K.StyleType = G, K.Size = De, K.Type = Oe;
306
+ K.StyleType = De, K.Size = Oe, K.Type = ke;
307
307
  //#endregion
308
308
  //#region package/common/actionButtons/actionButtons.tsx
309
- function Ne({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = G.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", {
309
+ function Pe({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = De.Primary, isSubmitButtonLoading: a = !1, isSubmitButtonDisabled: o = !1, 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__ */ z("div", {
311
311
  ..._,
312
312
  className: f(Ce.actionButtons, !d && Ce.actionButtonsMargin, p, h?.root),
313
313
  style: {
314
314
  ...m,
315
315
  ...g?.root
316
316
  },
317
- children: [!l && /* @__PURE__ */ I(K, {
317
+ children: [!l && /* @__PURE__ */ R(K, {
318
318
  isLoading: a,
319
319
  disabled: o,
320
320
  styleType: i,
321
- type: Oe.Submit,
321
+ type: ke.Submit,
322
322
  onClick: e,
323
323
  className: h?.submitButton,
324
324
  style: g?.submitButton,
325
325
  children: n
326
- }), !u && /* @__PURE__ */ I(K, {
326
+ }), !u && /* @__PURE__ */ R(K, {
327
327
  isLoading: s,
328
328
  disabled: c,
329
329
  onClick: t,
330
- styleType: G.Default,
330
+ styleType: De.Default,
331
331
  className: h?.cancelButton,
332
332
  style: g?.cancelButton,
333
333
  children: r
334
334
  })]
335
335
  });
336
336
  }
337
- var Pe = { interactableDiv: "interactableDiv_Ej8Fi" }, Fe = e.forwardRef(({ className: e, children: t, onClick: n, onKeyDown: r, tabIndex: a = 0, title: o, ...s }, c) => {
337
+ var Fe = { interactableDiv: "interactableDiv_Ej8Fi" }, Ie = e.forwardRef(({ className: e, children: t, onClick: n, onKeyDown: r, tabIndex: a = 0, title: o, ...s }, c) => {
338
338
  let l = i((e) => {
339
339
  e.key === "Enter" && n?.(e), r?.(e);
340
340
  }, [n, r]);
341
- return /* @__PURE__ */ I("div", {
342
- className: f(Pe.interactableDiv, e),
341
+ return /* @__PURE__ */ R("div", {
342
+ className: f(Fe.interactableDiv, e),
343
343
  onClick: n,
344
344
  tabIndex: a ?? 0,
345
345
  role: "button",
@@ -350,23 +350,23 @@ var Pe = { interactableDiv: "interactableDiv_Ej8Fi" }, Fe = e.forwardRef(({ clas
350
350
  children: t
351
351
  });
352
352
  });
353
- Fe.displayName = "InteractableDiv";
353
+ Ie.displayName = "InteractableDiv";
354
354
  //#endregion
355
355
  //#region package/common/interactableDiv/index.ts
356
- var Ie = Fe, Le = { actionIcon: "actionIcon_ganSq" };
356
+ var Le = Ie, Re = { actionIcon: "actionIcon_ganSq" };
357
357
  //#endregion
358
358
  //#region package/common/actionIcon/actionIcon.tsx
359
- function Re({ icon: e, className: t = "", style: n, title: r = "", onClick: i = () => {}, classNames: a, styles: o, ...s }) {
360
- return /* @__PURE__ */ I(Ie, {
359
+ function ze({ icon: e, className: t = "", style: n, title: r = "", onClick: i = () => {}, classNames: a, styles: o, ...s }) {
360
+ return /* @__PURE__ */ R(Le, {
361
361
  ...s,
362
- className: f(Le.actionIcon, t, a?.root),
362
+ className: f(Re.actionIcon, t, a?.root),
363
363
  style: {
364
364
  ...n,
365
365
  ...o?.root
366
366
  },
367
367
  title: r,
368
368
  onClick: i,
369
- children: /* @__PURE__ */ I(p, {
369
+ children: /* @__PURE__ */ R(p, {
370
370
  icon: e,
371
371
  className: a?.icon,
372
372
  style: o?.icon
@@ -375,11 +375,11 @@ function Re({ icon: e, className: t = "", style: n, title: r = "", onClick: i =
375
375
  }
376
376
  //#endregion
377
377
  //#region package/common/bodyEnd/bodyEnd.tsx
378
- function ze({ children: e = null }) {
378
+ function Be({ children: e = null }) {
379
379
  let t = document.getElementById("bodyEnd");
380
- return t ? R(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 ? oe(e, t) : (typeof process < "u" && process.env.NODE_ENV !== "production" && console.error("[BodyEnd] No element with id=\"bodyEnd\" found. Add <div id=\"bodyEnd\"></div> to your app root."), null);
381
381
  }
382
- var Be = {
382
+ var Ve = {
383
383
  card: "card_w-6Ki",
384
384
  "card-padding": "card-padding_X2-q-",
385
385
  cardPadding: "card-padding_X2-q-",
@@ -403,15 +403,15 @@ var Be = {
403
403
  };
404
404
  //#endregion
405
405
  //#region package/common/card/Card.tsx
406
- function Ve({ className: e = void 0, children: t = null, onClick: n = void 0, tabIndex: r = null, hoverEffect: i = void 0, style: a = void 0, ...o }) {
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__ */ I(Ie, {
408
+ return /* @__PURE__ */ R(Le, {
409
409
  ...o,
410
- className: f(Be.card, Be.cardPadding, Be.cardShadow, s && Be.cardInteractable, (s && i !== !1 || i) && Be.cardHover, e),
410
+ className: f(Ve.card, Ve.cardPadding, Ve.cardShadow, s && Ve.cardInteractable, (s && i !== !1 || i) && Ve.cardHover, e),
411
411
  onClick: n,
412
412
  tabIndex: r ?? (s ? 0 : null),
413
413
  style: a,
414
- children: /* @__PURE__ */ I(Ae, {
414
+ children: /* @__PURE__ */ R(je, {
415
415
  disabled: !s,
416
416
  overflowHidden: !1,
417
417
  children: t
@@ -420,21 +420,21 @@ function Ve({ className: e = void 0, children: t = null, onClick: n = void 0, ta
420
420
  }
421
421
  //#endregion
422
422
  //#region package/common/card/CardHeader.tsx
423
- function He({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r = "" }) {
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__ */ L("div", {
426
- className: f(Be.cardHeader, e),
427
- children: [r && /* @__PURE__ */ I("div", {
428
- className: Be.cardHeaderThumbnail,
425
+ return /* @__PURE__ */ z("div", {
426
+ className: f(Ve.cardHeader, e),
427
+ children: [r && /* @__PURE__ */ R("div", {
428
+ className: Ve.cardHeaderThumbnail,
429
429
  style: i ? { backgroundImage: `url(${i})` } : {},
430
430
  children: !i && r
431
- }), /* @__PURE__ */ L("div", {
432
- className: Be.cardHeaderTitles,
433
- children: [/* @__PURE__ */ I("div", {
434
- className: Be.cardHeaderTitlesMain,
431
+ }), /* @__PURE__ */ z("div", {
432
+ className: Ve.cardHeaderTitles,
433
+ children: [/* @__PURE__ */ R("div", {
434
+ className: Ve.cardHeaderTitlesMain,
435
435
  children: t
436
- }), /* @__PURE__ */ I("div", {
437
- className: Be.cardHeaderTitlesSub,
436
+ }), /* @__PURE__ */ R("div", {
437
+ className: Ve.cardHeaderTitlesSub,
438
438
  children: n
439
439
  })]
440
440
  })]
@@ -442,31 +442,31 @@ function He({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r =
442
442
  }
443
443
  //#endregion
444
444
  //#region package/common/card/CardMedia.tsx
445
- function Ue({ src: e = "", alt: t = "" }) {
446
- return /* @__PURE__ */ I("img", {
447
- className: Be.cardMedia,
445
+ function We({ src: e = "", alt: t = "" }) {
446
+ return /* @__PURE__ */ R("img", {
447
+ className: Ve.cardMedia,
448
448
  src: e,
449
449
  alt: t
450
450
  });
451
451
  }
452
452
  //#endregion
453
453
  //#region package/common/card/CardContent.tsx
454
- function We({ children: e = null }) {
455
- return /* @__PURE__ */ I(oe, { children: e });
454
+ function Ge({ children: e = null }) {
455
+ return /* @__PURE__ */ R(L, { children: e });
456
456
  }
457
457
  //#endregion
458
458
  //#region package/common/card/CardActions.tsx
459
- function Ge({ className: e = "", actions: t = [], children: n = null }) {
460
- return /* @__PURE__ */ L("div", {
461
- className: f(Be.cardActions, e),
462
- children: [t.map(({ id: e, onClick: t, label: n, styleType: r = G.Default }) => /* @__PURE__ */ I("div", { children: /* @__PURE__ */ I(K, {
459
+ function Ke({ className: e = "", actions: t = [], children: n = null }) {
460
+ return /* @__PURE__ */ z("div", {
461
+ className: f(Ve.cardActions, e),
462
+ children: [t.map(({ id: e, onClick: t, label: n, styleType: r = De.Default }) => /* @__PURE__ */ R("div", { children: /* @__PURE__ */ R(K, {
463
463
  onClick: t,
464
464
  styleType: r,
465
465
  children: n
466
466
  }) }, e ?? n)), n]
467
467
  });
468
468
  }
469
- var Ke = {
469
+ var qe = {
470
470
  checkbox: "checkbox_VO3c2",
471
471
  "checkbox-icon": "checkbox-icon_7O0Hm",
472
472
  checkboxIcon: "checkbox-icon_7O0Hm",
@@ -485,7 +485,7 @@ var Ke = {
485
485
  };
486
486
  //#endregion
487
487
  //#region package/common/checkbox/checkbox.tsx
488
- function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className: r = "", style: i, disabled: o = !1, lineHeight: s = "", title: c = "", tabIndex: l = 0, cursorDefault: p = !1, width: m = "17px", height: h = "17px", formValidator: g = null, children: _ = null, background: v = null, isLoading: y = !1, classNames: b, styles: x, ...S }) {
488
+ function Je({ label: e = "", selected: t = !1, onToggle: n = () => {}, className: r = "", style: i, disabled: o = !1, lineHeight: s = "", title: c = "", tabIndex: l = 0, cursorDefault: p = !1, width: m = "17px", height: h = "17px", formValidator: g = null, children: _ = null, background: v = null, isLoading: y = !1, classNames: b, styles: x, ...S }) {
489
489
  let C = u(null), [, w] = d(0);
490
490
  a(() => {
491
491
  if (!g) return;
@@ -496,11 +496,11 @@ function qe({ 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__ */ L("div", {
499
+ return /* @__PURE__ */ z("div", {
500
500
  ...S,
501
- className: f(Ke.checkbox, {
502
- [Ke.checkboxDisabled]: o,
503
- [Ke.checkboxPointer]: !p
501
+ className: f(qe.checkbox, {
502
+ [qe.checkboxDisabled]: o,
503
+ [qe.checkboxPointer]: !p
504
504
  }, r),
505
505
  style: i,
506
506
  onClick: T,
@@ -510,30 +510,30 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
510
510
  role: "checkbox",
511
511
  "aria-checked": E,
512
512
  tabIndex: l,
513
- children: [/* @__PURE__ */ I("div", {
513
+ children: [/* @__PURE__ */ R("div", {
514
514
  title: c,
515
- className: f(Ke.checkboxIcon, y ? Ke.checkboxLoading : null, b?.icon),
515
+ className: f(qe.checkboxIcon, y ? qe.checkboxLoading : null, b?.icon),
516
516
  style: x?.icon,
517
- children: y ? /* @__PURE__ */ I("div", {
517
+ children: y ? /* @__PURE__ */ R("div", {
518
518
  style: {
519
519
  width: m,
520
520
  height: h
521
521
  },
522
- children: /* @__PURE__ */ I(Ee, { className: Ke.checkboxLoadingSpinner })
523
- }) : /* @__PURE__ */ L("div", {
522
+ children: /* @__PURE__ */ R(Ee, { className: qe.checkboxLoadingSpinner })
523
+ }) : /* @__PURE__ */ z("div", {
524
524
  style: {
525
525
  width: m,
526
526
  height: h,
527
527
  ...x?.checkmark
528
528
  },
529
- className: f(Ke.checkboxCheckmark, E && Ke.checkboxCheckmarkChecked, b?.checkmark),
530
- children: [/* @__PURE__ */ I(Ae, {
529
+ className: f(qe.checkboxCheckmark, E && qe.checkboxCheckmarkChecked, b?.checkmark),
530
+ children: [/* @__PURE__ */ R(je, {
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__ */ I("svg", {
536
+ }), /* @__PURE__ */ R("svg", {
537
537
  strokeLinejoin: "round",
538
538
  strokeLinecap: "round",
539
539
  xmlns: "http://www.w3.org/2000/svg",
@@ -541,14 +541,14 @@ function qe({ 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__ */ I("path", {
544
+ children: /* @__PURE__ */ R("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__ */ I("div", {
551
+ }), /* @__PURE__ */ R("div", {
552
552
  className: b?.label,
553
553
  style: {
554
554
  lineHeight: s || "100%",
@@ -558,7 +558,7 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
558
558
  })]
559
559
  });
560
560
  }
561
- var Je = {
561
+ var Ye = {
562
562
  chip: "chip_rCTMl",
563
563
  "chip-clickable": "chip-clickable_WTVjG",
564
564
  chipClickable: "chip-clickable_WTVjG",
@@ -575,30 +575,30 @@ var Je = {
575
575
  };
576
576
  //#endregion
577
577
  //#region package/common/chip/chip.tsx
578
- function Ye({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon: r = !1, onClick: i, onRemove: a, ...o }) {
578
+ function Xe({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon: r = !1, onClick: i, onRemove: a, ...o }) {
579
579
  let s = c(() => {
580
580
  if (typeof t == "string" && t.startsWith("http")) return t;
581
581
  }, [t]);
582
- return /* @__PURE__ */ I("div", {
582
+ return /* @__PURE__ */ R("div", {
583
583
  ...o,
584
- className: f(Je.chip, i && Je.chipClickable, e),
584
+ className: f(Ye.chip, i && Ye.chipClickable, e),
585
585
  onClick: i,
586
- children: /* @__PURE__ */ I(Ae, {
586
+ children: /* @__PURE__ */ R(je, {
587
587
  disabled: !i,
588
588
  style: { borderRadius: "inherit" },
589
- children: /* @__PURE__ */ L("div", {
590
- className: Je.chipInner,
589
+ children: /* @__PURE__ */ z("div", {
590
+ className: Ye.chipInner,
591
591
  children: [
592
- t && /* @__PURE__ */ I("div", {
593
- className: Je.chipThumbnail,
592
+ t && /* @__PURE__ */ R("div", {
593
+ className: Ye.chipThumbnail,
594
594
  style: s ? { backgroundImage: `url(${s})` } : {},
595
595
  children: !s && t
596
596
  }),
597
- /* @__PURE__ */ I("div", {
598
- className: Je.chipText,
597
+ /* @__PURE__ */ R("div", {
598
+ className: Ye.chipText,
599
599
  children: n
600
600
  }),
601
- r && /* @__PURE__ */ I(Re, {
601
+ r && /* @__PURE__ */ R(ze, {
602
602
  icon: ae,
603
603
  onClick: (e) => {
604
604
  e.stopPropagation(), a?.();
@@ -611,14 +611,14 @@ function Ye({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon
611
611
  }
612
612
  //#endregion
613
613
  //#region package/common/chip/chipContainer.tsx
614
- function Xe({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
615
- return /* @__PURE__ */ I("div", {
614
+ function Ze({ className: e = void 0, children: t = null, inline: n = !1, ...r }) {
615
+ return /* @__PURE__ */ R("div", {
616
616
  ...r,
617
- className: f(Je.chipContainer, n && Je.chipContainerInline, e),
617
+ className: f(Ye.chipContainer, n && Ye.chipContainerInline, e),
618
618
  children: t
619
619
  });
620
620
  }
621
- var Ze = {
621
+ var Qe = {
622
622
  floatingMenu: "floatingMenu_E1XCy",
623
623
  "floatingMenu-content": "floatingMenu-content_AmxkA",
624
624
  floatingMenuContent: "floatingMenu-content_AmxkA",
@@ -641,15 +641,15 @@ var Ze = {
641
641
  "floatingMenu-anim": "floatingMenu-anim_5KB-f",
642
642
  floatingMenuAnim: "floatingMenu-anim_5KB-f",
643
643
  showMenu: "showMenu_AprCh"
644
- }, Qe = /* @__PURE__ */ function(e) {
644
+ }, $e = /* @__PURE__ */ function(e) {
645
645
  return e.Left = "left", e.Right = "right", e.Center = "center", e;
646
646
  }({});
647
647
  //#endregion
648
648
  //#region package/common/floatingMenu/floatingMenu.tsx
649
- function $e(e) {
649
+ function et(e) {
650
650
  return e.charAt(0).toUpperCase() + e.slice(1);
651
651
  }
652
- function et({ align: e = Qe.Left, children: t = null, content: n = null, isOpen: r = !1, onOpenChange: i = () => {}, dontCloseOnChildClick: o = !1, className: s, style: c, classNames: l, styles: p, ...m }) {
652
+ function tt({ align: e = $e.Left, children: t = null, content: n = null, isOpen: r = !1, onOpenChange: i = () => {}, dontCloseOnChildClick: o = !1, className: s, style: c, classNames: l, styles: p, ...m }) {
653
653
  let h = u(null), g = u(null), _ = u(i), [v, y] = d(10), [b, x] = d(null);
654
654
  a(() => {
655
655
  _.current = i;
@@ -684,21 +684,21 @@ function et({ align: e = Qe.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__ */ L("div", {
687
+ }, [r, o]), /* @__PURE__ */ z("div", {
688
688
  ...m,
689
- className: f(Ze.floatingMenu, s, l?.root),
689
+ className: f(Qe.floatingMenu, s, l?.root),
690
690
  style: {
691
691
  ...c,
692
692
  ...p?.root
693
693
  },
694
- children: [/* @__PURE__ */ I("div", {
695
- className: f(Ze.floatingMenuContent, l?.trigger),
694
+ children: [/* @__PURE__ */ R("div", {
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__ */ L("div", {
701
- className: f(Ze.floatingMenuAnim, l?.menu),
700
+ }), r && /* @__PURE__ */ z("div", {
701
+ className: f(Qe.floatingMenuAnim, l?.menu),
702
702
  style: {
703
703
  width: `${v}px`,
704
704
  ...b && {
@@ -707,16 +707,16 @@ function et({ align: e = Qe.Left, children: t = null, content: n = null, isOpen:
707
707
  },
708
708
  ...p?.menu
709
709
  },
710
- children: [/* @__PURE__ */ I("div", { className: f(Ze.floatingMenuContainerFlag, Ze[`floatingMenuContainerFlagAlign${$e(e)}`]) }), /* @__PURE__ */ I("div", {
710
+ children: [/* @__PURE__ */ R("div", { className: f(Qe.floatingMenuContainerFlag, Qe[`floatingMenuContainerFlagAlign${et(e)}`]) }), /* @__PURE__ */ R("div", {
711
711
  ref: h,
712
- className: f(Ze.floatingMenuContainer, Ze[`floatingMenuContainerAlign${$e(e)}`], l?.menuContainer),
712
+ className: f(Qe.floatingMenuContainer, Qe[`floatingMenuContainerAlign${et(e)}`], l?.menuContainer),
713
713
  style: p?.menuContainer,
714
714
  children: n
715
715
  })]
716
716
  })]
717
717
  });
718
718
  }
719
- var tt = {
719
+ var nt = {
720
720
  tooltipBubble: "tooltipBubble_uyev0",
721
721
  tooltipDetails: "tooltipDetails_R7N16",
722
722
  "tooltipDetails-icon": "tooltipDetails-icon_rsjns",
@@ -725,25 +725,25 @@ var tt = {
725
725
  };
726
726
  //#endregion
727
727
  //#region package/common/tooltip/tooltip.tsx
728
- function nt({ variant: e, message: t = "", isVisible: n = !0, tooltipPosition: r, onClick: i }) {
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__ */ I("div", {
731
- className: f(tt.tooltipBubble, r),
730
+ return e === "info" ? n ? /* @__PURE__ */ R("div", {
731
+ className: f(nt.tooltipBubble, r),
732
732
  onClick: i,
733
733
  children: t
734
- }) : null : e === "details" ? /* @__PURE__ */ L("div", {
735
- className: tt.tooltipDetails,
736
- children: [/* @__PURE__ */ I("span", {
737
- className: tt.tooltipDetailsIcon,
734
+ }) : null : e === "details" ? /* @__PURE__ */ z("div", {
735
+ className: nt.tooltipDetails,
736
+ children: [/* @__PURE__ */ R("span", {
737
+ className: nt.tooltipDetailsIcon,
738
738
  onMouseEnter: () => o(!0),
739
739
  onMouseLeave: () => o(!1),
740
740
  children: "?"
741
- }), a && /* @__PURE__ */ I("div", {
742
- className: f(tt.tooltipBubble, r),
741
+ }), a && /* @__PURE__ */ R("div", {
742
+ className: f(nt.tooltipBubble, r),
743
743
  children: t
744
744
  })]
745
- }) : e === "error" && n ? /* @__PURE__ */ I("div", {
746
- className: f(tt.tooltipError, r),
745
+ }) : e === "error" && n ? /* @__PURE__ */ R("div", {
746
+ className: f(nt.tooltipError, r),
747
747
  onClick: i,
748
748
  children: t
749
749
  }) : null;
@@ -829,43 +829,43 @@ var q = {
829
829
  }({});
830
830
  //#endregion
831
831
  //#region package/common/input/input.tsx
832
- function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: m = null, onChange: h = () => {}, onFocus: g = null, onBlur: _ = null, onMouseEnter: v = null, onMouseLeave: y = null, isUppercase: b = !1, isRequired: x = !1, tabIndex: S = 0, type: C = void 0, isRow: ee = !1, onIconClick: D = null, parse: O = null, formValidator: k = null, autoFocus: A = !1, suffix: N = null, upperRightLabel: te = null, labelInBorder: ne = !1, showCancel: F = !1, onClearClicked: re, min: ae = null, max: oe = null, placeholder: R = "", useMatLabelStyle: se = !0, autoComplete: ce = null, onClick: le = () => null, readOnly: ue = !1, customInput: de, alwaysShowCancel: fe = !1, multiline: z = !1, rows: pe, autoResize: me = !1, classNames: B, styles: V }) {
833
- let [H, he] = d(!1), [ge, _e] = d(!1), [ve, ye] = d(!1), [, be] = d(0), xe = u(null), Se = u(k), U = i(() => {
834
- let e = xe.current;
835
- !e || !me || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
836
- }, [me]);
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: A = !1, suffix: j = null, upperRightLabel: P = null, labelInBorder: ne = !1, showCancel: F = !1, onClearClicked: re, min: ie = null, max: ae = null, placeholder: L = "", useMatLabelStyle: oe = !0, autoComplete: se = null, onClick: ce = () => null, readOnly: le = !1, customInput: ue, alwaysShowCancel: de = !1, multiline: B = !1, rows: fe, autoResize: pe = !1, classNames: V, styles: H }) {
833
+ let [U, me] = d(!1), [he, ge] = d(!1), [_e, ve] = d(!1), [, ye] = d(0), be = u(null), xe = u(k), W = i(() => {
834
+ let e = be.current;
835
+ !e || !pe || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
836
+ }, [pe]);
837
837
  a(() => {
838
838
  setTimeout(() => {
839
- he(!1), _e(!1);
840
- }, 1), U();
839
+ me(!1), ge(!1);
840
+ }, 1), W();
841
841
  }, []), a(() => {
842
- A && xe.current && setTimeout(() => {
843
- xe.current?.focus();
842
+ A && be.current && setTimeout(() => {
843
+ be.current?.focus();
844
844
  }, 1);
845
845
  }, [A]), a(() => {
846
- Se.current = k;
847
- let e = Se.current;
846
+ xe.current = k;
847
+ let e = xe.current;
848
848
  if (!e) return;
849
849
  e.label = n ?? "", e.validate();
850
- let t = () => be((e) => e + 1);
850
+ let t = () => ye((e) => e + 1);
851
851
  return e.registerOnUpdateListener(t), () => {
852
852
  e.removeOnUpdateListener(t);
853
853
  };
854
854
  }, [k, n]);
855
- let Ce = () => k ? k.touched && k.hasError() : !o || !!r, W = () => !!(x || k && k.validators.find((e) => e.validatorId === "required")), we = (e) => {
856
- _e(!0), v && v(e);
855
+ let Se = () => k ? k.touched && k.hasError() : !o || !!r, Ce = () => !!(x || k && k.validators.find((e) => e.validatorId === "required")), G = (e) => {
856
+ ge(!0), v && v(e);
857
+ }, we = (e) => {
858
+ ge(!1), y && y(e);
857
859
  }, Te = (e) => {
858
- _e(!1), y && y(e);
860
+ me(!0), g && g(e);
859
861
  }, Ee = (e) => {
860
- he(!0), g && g(e);
861
- }, G = (e) => {
862
- Se.current && (Se.current.touched = !0), he(!1), _ && _(e);
862
+ xe.current && (xe.current.touched = !0), me(!1), _ && _(e);
863
863
  }, De = (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), U();
865
+ typeof e == "string" ? n = e : (t = e, n = e.target.value), O && (n = O(n)), k && k.set(n), h && h(n, t), W();
866
866
  }, Oe = () => {
867
- if (C !== "email") return C === "password" && ve ? "text" : C;
868
- }, ke = C && C !== J.Date && C !== J.Iban && C !== J.HasNoIcon, Ae = ke && !se && (C === J.Email || C === J.Phone || C === J.Search), je = {
867
+ if (C !== "email") return C === "password" && _e ? "text" : C;
868
+ }, ke = C && C !== J.Date && C !== J.Iban && C !== J.HasNoIcon, Ae = ke && !oe && (C === J.Email || C === J.Phone || C === J.Search), je = {
869
869
  className: f(q.inputFieldIcon, {
870
870
  [q.inputFieldIconNotClickable]: !D,
871
871
  [q.inputFieldIconLeft]: Ae
@@ -873,139 +873,139 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
873
873
  onClick: D ?? void 0
874
874
  }, Me = {
875
875
  className: f(q.inputFieldIcon, q.inputFieldIconPassword),
876
- onClick: () => ye(!ve)
877
- }, K = Ce(), Ne = n;
878
- Ne && W() && (Ne = `${Ne} *`);
879
- let Pe = k ? k.value : l, Fe = se && (H || Pe || C === J.Date);
880
- return /* @__PURE__ */ L("div", {
876
+ onClick: () => ve(!_e)
877
+ }, Ne = Se(), K = n;
878
+ K && Ce() && (K = `${K} *`);
879
+ let Pe = k ? k.value : l, Fe = oe && (U || Pe || C === J.Date);
880
+ return /* @__PURE__ */ z("div", {
881
881
  className: f(q.input, s),
882
882
  style: c,
883
883
  children: [
884
- /* @__PURE__ */ L("label", {
884
+ /* @__PURE__ */ z("label", {
885
885
  htmlFor: t,
886
- className: f(q.inputLabel, B?.label, {
887
- [q.inputLabelColumn]: !ee,
886
+ className: f(q.inputLabel, V?.label, {
887
+ [q.inputLabelColumn]: !w,
888
888
  [q.inputLabelInBorder]: ne
889
889
  }),
890
- style: V?.label,
890
+ style: H?.label,
891
891
  children: [
892
- Ne && !se ? /* @__PURE__ */ L("span", {
892
+ K && !oe ? /* @__PURE__ */ z("span", {
893
893
  className: q.inputLabelText,
894
- children: [`${Ne} `, W() ? /* @__PURE__ */ I("span", {
894
+ children: [`${K} `, Ce() ? /* @__PURE__ */ R("span", {
895
895
  className: f(q.isRequired),
896
896
  children: "\xA0 *"
897
897
  }) : null]
898
898
  }) : null,
899
- te && /* @__PURE__ */ I("div", {
900
- className: f(q.inputUpperRightLabel, B?.upperRightLabel),
901
- style: V?.upperRightLabel,
902
- children: te
899
+ P && /* @__PURE__ */ R("div", {
900
+ className: f(q.inputUpperRightLabel, V?.upperRightLabel),
901
+ style: H?.upperRightLabel,
902
+ children: P
903
903
  }),
904
- /* @__PURE__ */ L("div", {
905
- className: f(q.inputContainer, { [q.inputContainerMultiline]: z }, B?.container),
906
- style: V?.container,
907
- onMouseEnter: we,
908
- onMouseLeave: Te,
904
+ /* @__PURE__ */ z("div", {
905
+ className: f(q.inputContainer, { [q.inputContainerMultiline]: B }, V?.container),
906
+ style: H?.container,
907
+ onMouseEnter: G,
908
+ onMouseLeave: we,
909
909
  children: [
910
910
  m,
911
- e.cloneElement(de || I(z ? "textarea" : "input", {}), {
911
+ e.cloneElement(ue || R(B ? "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
916
  [q.inputFieldWithIcon]: ke,
917
917
  [q.inputFieldWithIconLeft]: Ae,
918
- [q.inputFieldMultiline]: z,
919
- [q.inputFieldMultilineAutoResize]: z && me
920
- }, B?.input),
918
+ [q.inputFieldMultiline]: B,
919
+ [q.inputFieldMultilineAutoResize]: B && pe
920
+ }, V?.input),
921
921
  name: t,
922
922
  id: t,
923
923
  value: k ? k.value : l,
924
924
  tabIndex: S,
925
- ref: de ? void 0 : xe,
925
+ ref: ue ? void 0 : be,
926
926
  onChange: De,
927
- onFocus: Ee,
928
- onBlur: G,
929
- placeholder: se ? "" : R,
930
- autoComplete: ce,
931
- onClick: le,
932
- readOnly: ue,
933
- ...!z && {
927
+ onFocus: Te,
928
+ onBlur: Ee,
929
+ placeholder: oe ? "" : L,
930
+ autoComplete: se,
931
+ onClick: ce,
932
+ readOnly: le,
933
+ ...!B && {
934
934
  type: Oe(),
935
- min: ae,
936
- max: oe
935
+ min: ie,
936
+ max: ae
937
937
  },
938
- ...z && pe !== void 0 && { rows: pe }
938
+ ...B && fe !== void 0 && { rows: fe }
939
939
  }),
940
- N && /* @__PURE__ */ I("div", {
941
- className: f(q.inputFieldSuffix, B?.suffix),
942
- style: V?.suffix,
943
- children: N
940
+ j && /* @__PURE__ */ R("div", {
941
+ className: f(q.inputFieldSuffix, V?.suffix),
942
+ style: H?.suffix,
943
+ children: j
944
944
  })
945
945
  ]
946
946
  }),
947
- /* @__PURE__ */ I("fieldset", {
948
- className: f(q.inputFieldset, B?.fieldset, {
949
- [q.inputContainerBorderFocused]: H,
950
- [q.inputContainerBorderSearchFocused]: C === J.Search && (H || l),
951
- [q.inputContainerBorderInvalid]: K,
952
- [q.inputContainerBorderError]: K
947
+ /* @__PURE__ */ R("fieldset", {
948
+ className: f(q.inputFieldset, V?.fieldset, {
949
+ [q.inputContainerBorderFocused]: U,
950
+ [q.inputContainerBorderSearchFocused]: C === J.Search && (U || l),
951
+ [q.inputContainerBorderInvalid]: Ne,
952
+ [q.inputContainerBorderError]: Ne
953
953
  }),
954
- style: V?.fieldset,
955
- children: /* @__PURE__ */ I("legend", {
954
+ style: H?.fieldset,
955
+ children: /* @__PURE__ */ R("legend", {
956
956
  className: f(q.inputFieldsetLegend, { [q.inputFieldsetLegendActive]: Fe }),
957
- children: /* @__PURE__ */ I("span", { children: Ne })
957
+ children: /* @__PURE__ */ R("span", { children: K })
958
958
  })
959
959
  }),
960
- se && n && /* @__PURE__ */ I("div", {
960
+ oe && n && /* @__PURE__ */ R("div", {
961
961
  className: f(q.inputMatLabel, {
962
962
  [q.inputMatLabelFloating]: Fe,
963
- [q.inputMatLabelMultiline]: z && !Fe
963
+ [q.inputMatLabelMultiline]: B && !Fe
964
964
  }),
965
- children: Ne
965
+ children: K
966
966
  }),
967
- se && R && /* @__PURE__ */ I("div", {
968
- className: f(q.inputPlaceholder, H && !Pe && q.inputPlaceholderShown, z && q.inputPlaceholderMultiline),
969
- children: R
967
+ oe && L && /* @__PURE__ */ R("div", {
968
+ className: f(q.inputPlaceholder, U && !Pe && q.inputPlaceholderShown, B && q.inputPlaceholderMultiline),
969
+ children: L
970
970
  }),
971
- /* @__PURE__ */ I(nt, {
971
+ /* @__PURE__ */ R(rt, {
972
972
  variant: "error",
973
973
  message: k ? k.getCurrentErrorMessage() : r || "",
974
- isVisible: K && (H || ge)
974
+ isVisible: Ne && (U || he)
975
975
  })
976
976
  ]
977
977
  }),
978
- C === J.Phone && /* @__PURE__ */ I(p, {
979
- icon: M,
978
+ C === J.Phone && /* @__PURE__ */ R(p, {
979
+ icon: N,
980
980
  ...je
981
981
  }),
982
- C === J.Email && /* @__PURE__ */ I(p, {
983
- icon: w,
982
+ C === J.Email && /* @__PURE__ */ R(p, {
983
+ icon: T,
984
984
  ...je
985
985
  }),
986
- C === J.Edit && /* @__PURE__ */ I(p, {
987
- icon: j,
986
+ C === J.Edit && /* @__PURE__ */ R(p, {
987
+ icon: M,
988
988
  ...je
989
989
  }),
990
- C === J.Search && /* @__PURE__ */ I(p, {
991
- icon: P,
990
+ C === J.Search && /* @__PURE__ */ R(p, {
991
+ icon: te,
992
992
  ...je
993
993
  }),
994
- C === J.Password && /* @__PURE__ */ I(p, {
995
- icon: ve ? E : T,
994
+ C === J.Password && /* @__PURE__ */ R(p, {
995
+ icon: _e ? ee : E,
996
996
  ...Me
997
997
  }),
998
- (F && l && (H || ge) || fe) && /* @__PURE__ */ I(p, {
999
- icon: ie,
998
+ (F && l && (U || he) || de) && /* @__PURE__ */ R(p, {
999
+ icon: I,
1000
1000
  className: q.inputFieldIcon,
1001
1001
  onClick: re ?? void 0,
1002
- onMouseEnter: () => _e(!0),
1003
- onMouseLeave: () => _e(!1)
1002
+ onMouseEnter: () => ge(!0),
1003
+ onMouseLeave: () => ge(!1)
1004
1004
  })
1005
1005
  ]
1006
1006
  });
1007
1007
  }
1008
- var it = {
1008
+ var at = {
1009
1009
  colorPicker: "colorPicker_Ts3an",
1010
1010
  swatch: "swatch_NW78g",
1011
1011
  swatchHex: "swatchHex_j7-i5",
@@ -1020,10 +1020,10 @@ var it = {
1020
1020
  };
1021
1021
  //#endregion
1022
1022
  //#region package/common/colorPicker/colorPicker.tsx
1023
- function at(e) {
1023
+ function ot(e) {
1024
1024
  return /^#[0-9a-fA-F]{6}$/.test(e) || /^#[0-9a-fA-F]{8}$/.test(e);
1025
1025
  }
1026
- function ot(e) {
1026
+ function st(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 ot(e) {
1032
1032
  alpha: 100
1033
1033
  };
1034
1034
  }
1035
- function st(e, t, n) {
1035
+ function ct(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 ct(e, t) {
1038
+ function lt(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 lt(e) {
1041
+ function ut(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 lt(e) {
1048
1048
  v: c
1049
1049
  };
1050
1050
  }
1051
- function ut(e, t, n) {
1051
+ function dt(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 dt({ hex: e, onChange: t, useInputComponent: n = !1 }) {
1057
+ function ft({ 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 dt({ 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
- at(n) && t(n);
1065
+ ot(n) && t(n);
1066
1066
  }
1067
1067
  function s() {
1068
- at(r.startsWith("#") ? r : `#${r}`) || i(e);
1068
+ ot(r.startsWith("#") ? r : `#${r}`) || i(e);
1069
1069
  }
1070
- return n ? /* @__PURE__ */ I(rt, {
1070
+ return n ? /* @__PURE__ */ R(it, {
1071
1071
  value: r,
1072
1072
  onChange: (e) => o(e),
1073
1073
  onBlur: s
1074
- }) : /* @__PURE__ */ I("input", {
1074
+ }) : /* @__PURE__ */ R("input", {
1075
1075
  type: "text",
1076
1076
  value: r,
1077
1077
  onChange: (e) => o(e.target.value),
1078
1078
  onBlur: s,
1079
- className: it.hexInput,
1079
+ className: at.hexInput,
1080
1080
  spellCheck: !1
1081
1081
  });
1082
1082
  }
1083
- function ft({ hue: e, sat: t, val: n, alpha: r, onHueChange: i, onSVChange: a, onAlphaChange: o, showInput: s = !0, showAlpha: c = !1 }) {
1083
+ function pt({ 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 ft({ 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 } = ot(e), { h: r, s, v: l } = lt(t);
1104
+ let { hex6: t, alpha: n } = st(e), { h: r, s, v: l } = ut(t);
1105
1105
  i(r), a(s, l), c && o(n);
1106
1106
  }
1107
- let m = ut(e, t, n), h = c ? st(m, r, !0) : m;
1108
- return /* @__PURE__ */ L("div", {
1109
- className: it.panel,
1107
+ let m = dt(e, t, n), h = c ? ct(m, r, !0) : m;
1108
+ return /* @__PURE__ */ z("div", {
1109
+ className: at.panel,
1110
1110
  children: [
1111
- /* @__PURE__ */ L("div", {
1111
+ /* @__PURE__ */ z("div", {
1112
1112
  ref: l,
1113
- className: it.gradientArea,
1113
+ className: at.gradientArea,
1114
1114
  style: { "--hue": e },
1115
1115
  onMouseDown: f,
1116
- children: [/* @__PURE__ */ I("div", { className: it.gradientOverlay }), /* @__PURE__ */ I("div", {
1117
- className: it.cursor,
1116
+ children: [/* @__PURE__ */ R("div", { className: at.gradientOverlay }), /* @__PURE__ */ R("div", {
1117
+ className: at.cursor,
1118
1118
  style: {
1119
1119
  left: `${t}%`,
1120
1120
  top: `${100 - n}%`
1121
1121
  }
1122
1122
  })]
1123
1123
  }),
1124
- /* @__PURE__ */ I("input", {
1124
+ /* @__PURE__ */ R("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: it.hueSlider
1130
+ className: at.hueSlider
1131
1131
  }),
1132
- c && /* @__PURE__ */ I("input", {
1132
+ c && /* @__PURE__ */ R("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: it.alphaSlider,
1138
+ className: at.alphaSlider,
1139
1139
  style: { "--alpha-color": m }
1140
1140
  }),
1141
- s && /* @__PURE__ */ I(dt, {
1141
+ s && /* @__PURE__ */ R(ft, {
1142
1142
  hex: h,
1143
1143
  onChange: p
1144
1144
  })
1145
1145
  ]
1146
1146
  });
1147
1147
  }
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({
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({
1151
1151
  h: m.h,
1152
1152
  s: m.s,
1153
1153
  v: m.v,
@@ -1155,9 +1155,9 @@ function mt({ className: e, value: t = pt, 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 } = ot(at(t) ? t : pt);
1159
- if (e !== ut(h.h, h.s, h.v) || n !== h.a) {
1160
- let t = lt(e);
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);
1161
1161
  g({
1162
1162
  h: t.h,
1163
1163
  s: t.s,
@@ -1168,7 +1168,7 @@ function mt({ className: e, value: t = pt, 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?.(st(ut(e, t, r), a, i));
1171
+ n?.(ct(dt(e, t, r), a, i));
1172
1172
  }
1173
1173
  function T(e) {
1174
1174
  _.current.h = e, g((t) => ({
@@ -1189,7 +1189,7 @@ function mt({ className: e, value: t = pt, 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 = ut(b, x, S), O = i ? ct(D, C) : D, k = st(D, C, i), A = {
1192
+ let D = dt(b, x, S), O = i ? lt(D, C) : D, k = ct(D, C, i), A = {
1193
1193
  hue: b,
1194
1194
  sat: x,
1195
1195
  val: S,
@@ -1199,40 +1199,40 @@ function mt({ className: e, value: t = pt, onChange: n, showInput: r = !1, showA
1199
1199
  onAlphaChange: ee,
1200
1200
  showAlpha: i
1201
1201
  };
1202
- return a ? /* @__PURE__ */ I("div", {
1202
+ return a ? /* @__PURE__ */ R("div", {
1203
1203
  ...o,
1204
- className: f(it.colorPicker, e),
1205
- children: /* @__PURE__ */ I(ft, {
1204
+ className: f(at.colorPicker, e),
1205
+ children: /* @__PURE__ */ R(pt, {
1206
1206
  ...A,
1207
1207
  showInput: r
1208
1208
  })
1209
- }) : /* @__PURE__ */ L("div", {
1209
+ }) : /* @__PURE__ */ z("div", {
1210
1210
  ...o,
1211
- className: f(it.colorPicker, e),
1212
- children: [/* @__PURE__ */ I(et, {
1211
+ className: f(at.colorPicker, e),
1212
+ children: [/* @__PURE__ */ R(tt, {
1213
1213
  isOpen: s,
1214
1214
  onOpenChange: c,
1215
1215
  dontCloseOnChildClick: !0,
1216
- align: Qe.Left,
1217
- content: /* @__PURE__ */ I(ft, { ...A }),
1218
- children: /* @__PURE__ */ L(Ie, {
1219
- className: it.swatch,
1220
- children: [/* @__PURE__ */ I("div", {
1221
- className: it.swatchFill,
1216
+ align: $e.Left,
1217
+ content: /* @__PURE__ */ R(pt, { ...A }),
1218
+ children: /* @__PURE__ */ z(Le, {
1219
+ className: at.swatch,
1220
+ children: [/* @__PURE__ */ R("div", {
1221
+ className: at.swatchFill,
1222
1222
  style: { background: O }
1223
- }), /* @__PURE__ */ I("span", {
1224
- className: it.swatchHex,
1223
+ }), /* @__PURE__ */ R("span", {
1224
+ className: at.swatchHex,
1225
1225
  children: k
1226
1226
  })]
1227
1227
  })
1228
- }), r && /* @__PURE__ */ I(dt, {
1228
+ }), r && /* @__PURE__ */ R(ft, {
1229
1229
  hex: k,
1230
1230
  onChange: (e) => n?.(e),
1231
1231
  useInputComponent: !0
1232
1232
  })]
1233
1233
  });
1234
1234
  }
1235
- var ht = {
1235
+ var gt = {
1236
1236
  modal: "modal_L-Fkd",
1237
1237
  slideIn: "slideIn_RVIHR",
1238
1238
  fadeIn: "fadeIn_XSuIE",
@@ -1247,34 +1247,34 @@ var ht = {
1247
1247
  };
1248
1248
  //#endregion
1249
1249
  //#region package/common/modal/modal.tsx
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 }) {
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 }) {
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__ */ I(ze, { children: /* @__PURE__ */ L("div", {
1255
- className: f(ht.modalContainer, c?.container),
1254
+ }, [n]), u ? /* @__PURE__ */ R(Be, { children: /* @__PURE__ */ z("div", {
1255
+ className: f(gt.modalContainer, c?.container),
1256
1256
  style: l?.container,
1257
- children: [/* @__PURE__ */ I("div", {
1258
- className: f(ht.modalWrapper, h && ht.modalWrapperShown, c?.backdrop),
1257
+ children: [/* @__PURE__ */ R("div", {
1258
+ className: f(gt.modalWrapper, h && gt.modalWrapperShown, c?.backdrop),
1259
1259
  style: l?.backdrop,
1260
1260
  onClick: r
1261
- }), h && /* @__PURE__ */ L("div", {
1262
- className: f(ht.modal, h && ht.modalShown, i, c?.modal),
1261
+ }), h && /* @__PURE__ */ z("div", {
1262
+ className: f(gt.modal, h && gt.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__ */ L("div", {
1269
- className: f(ht.modalHeader, c?.header),
1268
+ children: [!s && /* @__PURE__ */ z("div", {
1269
+ className: f(gt.modalHeader, c?.header),
1270
1270
  style: l?.header,
1271
- children: [/* @__PURE__ */ I("div", {
1271
+ children: [/* @__PURE__ */ R("div", {
1272
1272
  className: c?.title,
1273
1273
  style: l?.title,
1274
1274
  children: t
1275
- }), /* @__PURE__ */ I(p, {
1275
+ }), /* @__PURE__ */ R(p, {
1276
1276
  onClick: r,
1277
- icon: ie,
1277
+ icon: I,
1278
1278
  className: c?.closeButton,
1279
1279
  style: l?.closeButton
1280
1280
  })]
@@ -1284,7 +1284,7 @@ function gt({ 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 _t({ children: e = null, className: t = "", onClose: n = () => {}, onConfirm: r = () => {}, title: i = "", content: a = null, isOpen: o = void 0 }) {
1287
+ function vt({ 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 _t({ children: e = null, className: t = "", onClose: n = () => {}, onCo
1297
1297
  u(!1);
1298
1298
  }
1299
1299
  }
1300
- return /* @__PURE__ */ L("div", {
1300
+ return /* @__PURE__ */ z("div", {
1301
1301
  className: t,
1302
- children: [/* @__PURE__ */ I("span", {
1302
+ children: [/* @__PURE__ */ R("span", {
1303
1303
  onClick: () => c(!0),
1304
1304
  children: e
1305
- }), /* @__PURE__ */ L(gt, {
1305
+ }), /* @__PURE__ */ z(_t, {
1306
1306
  title: i,
1307
1307
  isOpen: o === void 0 ? s : o,
1308
1308
  onClose: () => f(),
1309
- children: [a, /* @__PURE__ */ I(Ne, {
1309
+ children: [a, /* @__PURE__ */ R(Pe, {
1310
1310
  onClose: () => f(),
1311
1311
  onSubmit: p,
1312
1312
  submitLabel: "Confirm",
@@ -1315,7 +1315,7 @@ function _t({ children: e = null, className: t = "", onClose: n = () => {}, onCo
1315
1315
  })]
1316
1316
  });
1317
1317
  }
1318
- var vt = {
1318
+ var yt = {
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 vt = {
1334
1334
  datePickerMonthDayDisabled: "datePickerMonth-day-disabled_4t0Ci",
1335
1335
  "datePickerMonth-placeholder": "datePickerMonth-placeholder_gy1Yx",
1336
1336
  datePickerMonthPlaceholder: "datePickerMonth-placeholder_gy1Yx"
1337
- }, yt = [
1337
+ }, bt = [
1338
1338
  "de_AT",
1339
1339
  "de_CH",
1340
1340
  "de_DE",
@@ -1342,10 +1342,10 @@ var vt = {
1342
1342
  "en_GB",
1343
1343
  "de",
1344
1344
  "en"
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) => {
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) => {
1349
1349
  switch (e) {
1350
1350
  case "en_US":
1351
1351
  case "en_GB": return "en";
@@ -1354,47 +1354,47 @@ var vt = {
1354
1354
  case "de_AT": return "de";
1355
1355
  default: return "de";
1356
1356
  }
1357
- }, Ct = xt();
1358
- async function wt(e) {
1359
- Ct = e;
1357
+ }, wt = St();
1358
+ async function Tt(e) {
1359
+ wt = e;
1360
1360
  }
1361
- function Tt(e = "_") {
1362
- return Ct.replace("_", e);
1361
+ function Et(e = "_") {
1362
+ return wt.replace("_", e);
1363
1363
  }
1364
1364
  //#endregion
1365
1365
  //#region package/common/datePicker/dateFunctions.ts
1366
- function Et(e, t) {
1366
+ function Dt(e, t) {
1367
1367
  return new Date(t, e, 0).getDate();
1368
1368
  }
1369
- function Dt(e, t, n) {
1369
+ function Ot(e, t, n) {
1370
1370
  return new Date(Date.UTC(n, t - 1, e));
1371
1371
  }
1372
- function Ot(e, t, n, r, i = !1) {
1372
+ function kt(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 kt(e = Tt("-")) {
1376
- return Array.from(Array(12).keys()).map((t) => Ot(e, 2023, t + 1, 1));
1375
+ function At(e = Et("-")) {
1376
+ return Array.from(Array(12).keys()).map((t) => kt(e, 2023, t + 1, 1));
1377
1377
  }
1378
- function At(e, t = !0) {
1378
+ function jt(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 jt(e, t) {
1383
+ function Mt(e, t) {
1384
1384
  return new Date(Date.UTC(t, e - 1, 1)).getDay() || 7;
1385
1385
  }
1386
- function Mt(e) {
1386
+ function Nt(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 Nt(e) {
1393
+ function Pt(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 Pt(e, t, n) {
1397
+ function Ft(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 Pt(e, t, n) {
1412
1412
  }
1413
1413
  //#endregion
1414
1414
  //#region package/common/datePicker/components/datePickerMonth/datePickerMonth.tsx
1415
- function Ft(e, t, n, r, i) {
1416
- let { day: a, month: o, year: s } = r ? Mt(r) : {
1415
+ function It(e, t, n, r, i) {
1416
+ let { day: a, month: o, year: s } = r ? Nt(r) : {
1417
1417
  day: void 0,
1418
1418
  month: void 0,
1419
1419
  year: void 0
1420
- }, { day: c, month: l, year: u } = i ? Mt(i) : {
1420
+ }, { day: c, month: l, year: u } = i ? Nt(i) : {
1421
1421
  day: void 0,
1422
1422
  month: void 0,
1423
1423
  year: void 0
1424
- }, d = Dt(e, t, n), f = e === a && t === o && n === s, p = e === c && t === l && n === u, m = !1;
1424
+ }, d = Ot(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 = Dt(a, o, s), t = Dt(c, l, u);
1426
+ let e = Ot(a, o, s), t = Ot(c, l, u);
1427
1427
  m = d.getTime() >= e.getTime() && d.getTime() <= t.getTime();
1428
1428
  }
1429
1429
  return {
@@ -1432,54 +1432,54 @@ function Ft(e, t, n, r, i) {
1432
1432
  isEndDate: p
1433
1433
  };
1434
1434
  }
1435
- function It(e, t, n, r, i) {
1436
- let a = Dt(e, t, n);
1435
+ function Lt(e, t, n, r, i) {
1436
+ let a = Ot(e, t, n);
1437
1437
  if (r) {
1438
- let { day: e, month: t, year: n } = Mt(r);
1439
- if (a < Dt(e, t, n)) return !0;
1438
+ let { day: e, month: t, year: n } = Nt(r);
1439
+ if (a < Ot(e, t, n)) return !0;
1440
1440
  }
1441
1441
  if (i) {
1442
- let { day: e, month: t, year: n } = Mt(i);
1443
- if (a > Dt(e, t, n)) return !0;
1442
+ let { day: e, month: t, year: n } = Nt(i);
1443
+ if (a > Ot(e, t, n)) return !0;
1444
1444
  }
1445
1445
  return !1;
1446
1446
  }
1447
- function Lt(e, t, n) {
1448
- let { day: r, month: i, year: a } = Mt(/* @__PURE__ */ new Date());
1447
+ function Rt(e, t, n) {
1448
+ let { day: r, month: i, year: a } = Nt(/* @__PURE__ */ new Date());
1449
1449
  return e === r && t === i && n === a;
1450
1450
  }
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),
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__ */ R("div", {
1454
+ className: f(yt.datePickerMonth, e),
1455
+ children: /* @__PURE__ */ z("div", {
1456
+ className: f(yt.datePickerMonthContent),
1457
1457
  children: [
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)),
1458
+ jt(c).map((e, t) => /* @__PURE__ */ R("div", { children: e }, t)),
1459
+ Array.from(Array(u - 1).keys()).map((e) => /* @__PURE__ */ R("div", { className: f(yt.datePickerMonthItem, yt.datePickerMonthPlaceholder) }, e)),
1460
1460
  Array.from(Array(l).keys()).map((e) => {
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(Ie, {
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
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__ */ R(Le, {
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
1470
1470
  }),
1471
1471
  children: c
1472
1472
  }, c);
1473
1473
  }),
1474
- Array.from(Array(42 - (u + l - 1)).keys()).map((e) => /* @__PURE__ */ I("div", {
1475
- className: f(vt.datePickerMonthItem, vt.datePickerMonthPlaceholder),
1474
+ Array.from(Array(42 - (u + l - 1)).keys()).map((e) => /* @__PURE__ */ R("div", {
1475
+ className: f(yt.datePickerMonthItem, yt.datePickerMonthPlaceholder),
1476
1476
  children: "\xA0"
1477
1477
  }, e))
1478
1478
  ]
1479
1479
  })
1480
1480
  });
1481
1481
  }
1482
- var zt = {
1482
+ var Bt = {
1483
1483
  infiniteBlock: "infiniteBlock_dFv-h",
1484
1484
  "spinner-wrapper": "spinner-wrapper_hsgWz",
1485
1485
  spinnerWrapper: "spinner-wrapper_hsgWz",
@@ -1487,7 +1487,7 @@ var zt = {
1487
1487
  };
1488
1488
  //#endregion
1489
1489
  //#region package/common/infiniteBlock/infiniteBlock.tsx
1490
- function Bt(e, t) {
1490
+ function Vt(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 Bt(e, t) {
1500
1500
  }
1501
1501
  return String(r).toLowerCase().startsWith(t);
1502
1502
  }
1503
- function Vt(e, t, n) {
1503
+ function Ht(e, t, n) {
1504
1504
  let r = e + t;
1505
1505
  return r === n ? 0 : r < -1 ? n - 1 : r;
1506
1506
  }
1507
- function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1, setHighlightedIndex: o = () => null }) {
1507
+ function Ut({ 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 Ht({ 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 = Vt(a, 1, i.length);
1521
+ a = Ht(a, 1, i.length);
1522
1522
  break;
1523
1523
  case "ArrowUp":
1524
- a = Vt(a, -1, i.length);
1524
+ a = Ht(a, -1, i.length);
1525
1525
  break;
1526
- default: for (let e = 0; e < i.length; e++) if (Bt(i[e], n.key)) {
1526
+ default: for (let e = 0; e < i.length; e++) if (Vt(i[e], n.key)) {
1527
1527
  if (a >= e && h.current === n.key) continue;
1528
1528
  a = e;
1529
1529
  break;
@@ -1538,18 +1538,18 @@ function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1538
1538
  o(a);
1539
1539
  }
1540
1540
  }, [t, o]);
1541
- return /* @__PURE__ */ L("div", {
1542
- className: f(zt.infiniteBlock, r),
1541
+ return /* @__PURE__ */ z("div", {
1542
+ className: f(Bt.infiniteBlock, r),
1543
1543
  onScroll: g,
1544
1544
  onKeyDown: _,
1545
1545
  tabIndex: 0,
1546
1546
  ref: s,
1547
- children: [a ? /* @__PURE__ */ I("div", {
1548
- className: zt.spinnerWrapper,
1549
- children: /* @__PURE__ */ I(Ee, { className: zt.spinner })
1550
- }) : t, l && /* @__PURE__ */ I("div", {
1551
- className: zt.spinnerWrapper,
1552
- children: /* @__PURE__ */ I(Ee, { className: zt.spinner })
1547
+ children: [a ? /* @__PURE__ */ R("div", {
1548
+ className: Bt.spinnerWrapper,
1549
+ children: /* @__PURE__ */ R(Ee, { className: Bt.spinner })
1550
+ }) : t, l && /* @__PURE__ */ R("div", {
1551
+ className: Bt.spinnerWrapper,
1552
+ children: /* @__PURE__ */ R(Ee, { className: Bt.spinner })
1553
1553
  })]
1554
1554
  });
1555
1555
  }
@@ -1621,49 +1621,49 @@ var Y = {
1621
1621
  };
1622
1622
  //#endregion
1623
1623
  //#region package/common/dropdown/dropdown.tsx
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: A = "", items: j = [], useMatLabelStyle: M = !0, placeholder: N = "", plainStyle: P = !1, scrollToSelected: te = !1, reactRef: ne }) {
1625
- let [F, re] = d(!1), [ie, ae] = d(!1), [, oe] = d(0), R = u(O);
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: A = "", items: j = [], useMatLabelStyle: M = !0, placeholder: N = "", plainStyle: P = !1, scrollToSelected: te = !1, reactRef: ne }) {
1625
+ let [F, re] = d(!1), [ie, I] = d(!1), [, ae] = d(0), L = u(O);
1626
1626
  a(() => {
1627
- if (R.current = O, !R.current) return;
1628
- R.current.label = n ?? "", R.current.validate();
1629
- let e = () => oe((e) => e + 1);
1630
- return R.current.registerOnUpdateListener(e), () => R.current?.removeOnUpdateListener(e);
1627
+ if (L.current = O, !L.current) return;
1628
+ L.current.label = n ?? "", L.current.validate();
1629
+ let e = () => ae((e) => e + 1);
1630
+ return L.current.registerOnUpdateListener(e), () => L.current?.removeOnUpdateListener(e);
1631
1631
  }, [O, n]);
1632
- let ce = (e) => {
1633
- ae(!0), S?.(e);
1632
+ let oe = (e) => {
1633
+ I(!0), S?.(e);
1634
+ }, ce = (e) => {
1635
+ I(!1), C?.(e);
1634
1636
  }, le = (e) => {
1635
- ae(!1), C?.(e);
1636
- }, ue = (e) => {
1637
1637
  re(!0), b?.(e);
1638
- }, de = (e) => {
1639
- R.current && (R.current.touched = !0), re(!1), x?.(e);
1640
- }, fe = () => O ? O.touched && O.hasError() : !i || !!e, z = () => !!(s || O?.validators.find((e) => e.validatorId === "required")), pe = (e) => {
1638
+ }, ue = (e) => {
1639
+ L.current && (L.current.touched = !0), re(!1), x?.(e);
1640
+ }, de = () => O ? O.touched && O.hasError() : !i || !!e, B = () => !!(s || O?.validators.find((e) => e.validatorId === "required")), fe = (e) => {
1641
1641
  O ? (O.set(e), y?.(O.value, c)) : y?.(e, c);
1642
- }, me = w, B = O ? O.value : r, V = fe();
1642
+ }, pe = w, V = O ? O.value : r, H = de();
1643
1643
  return j.forEach((e) => {
1644
- e.key === B && (me = e.label);
1645
- }), /* @__PURE__ */ L("div", {
1644
+ e.key === V && (pe = e.label);
1645
+ }), /* @__PURE__ */ z("div", {
1646
1646
  className: f(t, Y.dropdownLabel, Y.dropdown, { [Y.dropdownLabelColumn]: !l }),
1647
- onMouseEnter: ce,
1648
- onMouseLeave: le,
1647
+ onMouseEnter: oe,
1648
+ onMouseLeave: ce,
1649
1649
  children: [
1650
- /* @__PURE__ */ I(se, {
1651
- onChange: (e) => pe((e || { key: "" }).key),
1650
+ /* @__PURE__ */ R(se, {
1651
+ onChange: (e) => fe((e || { key: "" }).key),
1652
1652
  itemToString: (e) => e ? String(e.key) : "",
1653
- selectedItem: j.find((e) => e.key === B) ?? null,
1653
+ selectedItem: j.find((e) => e.key === V) ?? null,
1654
1654
  stateReducer: (e, t) => te && Object.prototype.hasOwnProperty.call(t, "isOpen") ? {
1655
1655
  ...t,
1656
1656
  highlightedIndex: t.isOpen ? j.indexOf(e.selectedItem) : null
1657
1657
  } : t,
1658
- children: ({ getItemProps: e, getToggleButtonProps: t, isOpen: r, selectedItem: i, highlightedIndex: a, setHighlightedIndex: s }) => /* @__PURE__ */ I("div", { children: /* @__PURE__ */ L("div", {
1659
- onFocus: ue,
1660
- onBlur: de,
1658
+ children: ({ getItemProps: e, getToggleButtonProps: t, isOpen: r, selectedItem: i, highlightedIndex: a, setHighlightedIndex: s }) => /* @__PURE__ */ R("div", { children: /* @__PURE__ */ z("div", {
1659
+ onFocus: le,
1660
+ onBlur: ue,
1661
1661
  className: f(Y.dropdownInput, {
1662
1662
  [Y.dropdownInputPlain]: P,
1663
1663
  [Y.dropdownInputButtonDisabled]: m
1664
1664
  }, A),
1665
1665
  children: [
1666
- /* @__PURE__ */ I("button", {
1666
+ /* @__PURE__ */ R("button", {
1667
1667
  tabIndex: o,
1668
1668
  type: "button",
1669
1669
  style: T ? {
@@ -1676,9 +1676,9 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1676
1676
  t().onClick?.(e), v?.(e);
1677
1677
  },
1678
1678
  ref: ne,
1679
- children: me || B || /* @__PURE__ */ I("div", { children: "\xA0" })
1679
+ children: pe || V || /* @__PURE__ */ R("div", { children: "\xA0" })
1680
1680
  }),
1681
- /* @__PURE__ */ I("button", {
1681
+ /* @__PURE__ */ R("button", {
1682
1682
  type: "button",
1683
1683
  tabIndex: -1,
1684
1684
  className: f(Y.dropdownInputButtonIcon, ee),
@@ -1686,19 +1686,19 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1686
1686
  onClick: (e) => {
1687
1687
  t().onClick?.(e), v?.(e);
1688
1688
  },
1689
- children: !m && /* @__PURE__ */ I(p, {
1689
+ children: !m && /* @__PURE__ */ R(p, {
1690
1690
  icon: g,
1691
1691
  className: f(Y.dropdownInputButtonIconArrow, { [Y.dropdownInputButtonIconArrowOpen]: r })
1692
1692
  })
1693
1693
  }),
1694
- !m && r ? /* @__PURE__ */ I(Ht, {
1694
+ !m && r ? /* @__PURE__ */ R(Ut, {
1695
1695
  onScroll: h,
1696
1696
  className: f(Y.dropdownInputList, {
1697
1697
  [Y.dropdownInputListOnTop]: _,
1698
1698
  [Y.dropdownInputListWider]: T
1699
1699
  }),
1700
1700
  setHighlightedIndex: s,
1701
- children: j.map((t, n) => /* @__PURE__ */ I("div", {
1701
+ children: j.map((t, n) => /* @__PURE__ */ R("div", {
1702
1702
  ...e({
1703
1703
  index: n,
1704
1704
  item: t,
@@ -1711,45 +1711,45 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1711
1711
  children: t.label
1712
1712
  }, t.key))
1713
1713
  }) : null,
1714
- /* @__PURE__ */ I("fieldset", {
1714
+ /* @__PURE__ */ R("fieldset", {
1715
1715
  className: f(Y.dropdownFieldset, {
1716
1716
  [Y.dropdownBorderPlain]: P,
1717
1717
  [Y.dropdownBorderFocused]: F,
1718
- [Y.dropdownBorderInvalid]: V,
1719
- [Y.dropdownBorderError]: V
1718
+ [Y.dropdownBorderInvalid]: H,
1719
+ [Y.dropdownBorderError]: H
1720
1720
  }),
1721
- children: /* @__PURE__ */ I("legend", {
1722
- className: f(Y.dropdownFieldsetLegend, { [Y.dropdownFieldsetLegendActive]: M && (F || B) }),
1723
- children: /* @__PURE__ */ I("span", { children: n })
1721
+ children: /* @__PURE__ */ R("legend", {
1722
+ className: f(Y.dropdownFieldsetLegend, { [Y.dropdownFieldsetLegendActive]: M && (F || V) }),
1723
+ children: /* @__PURE__ */ R("span", { children: n })
1724
1724
  })
1725
1725
  }),
1726
- M && n && /* @__PURE__ */ I("div", {
1727
- className: f(Y.dropdownMatLabel, { [Y.dropdownMatLabelFloating]: F || B }),
1726
+ M && n && /* @__PURE__ */ R("div", {
1727
+ className: f(Y.dropdownMatLabel, { [Y.dropdownMatLabelFloating]: F || V }),
1728
1728
  children: n
1729
1729
  }),
1730
- M && N && /* @__PURE__ */ I("div", {
1731
- className: f(Y.dropdownPlaceholder, F && !me && Y.dropdownPlaceholderShown),
1730
+ M && N && /* @__PURE__ */ R("div", {
1731
+ className: f(Y.dropdownPlaceholder, F && !pe && Y.dropdownPlaceholderShown),
1732
1732
  children: N
1733
1733
  })
1734
1734
  ]
1735
1735
  }) })
1736
1736
  }),
1737
- n && !M && /* @__PURE__ */ L("div", {
1737
+ n && !M && /* @__PURE__ */ z("div", {
1738
1738
  className: f(Y.dropdownLabelText, k),
1739
- children: [n, z() ? /* @__PURE__ */ I("div", {
1739
+ children: [n, B() ? /* @__PURE__ */ R("div", {
1740
1740
  className: Y.requiredMark,
1741
1741
  children: "*"
1742
1742
  }) : null]
1743
1743
  }),
1744
- /* @__PURE__ */ I(nt, {
1744
+ /* @__PURE__ */ R(rt, {
1745
1745
  variant: "error",
1746
1746
  message: O ? O.getCurrentErrorMessage() : e || "",
1747
- isVisible: V && (F || ie)
1747
+ isVisible: H && (F || ie)
1748
1748
  })
1749
1749
  ]
1750
1750
  });
1751
1751
  }
1752
- var Wt = {
1752
+ var Gt = {
1753
1753
  datePicker: "datePicker_ZohTp",
1754
1754
  "datePicker-header": "datePicker-header_YmSWE",
1755
1755
  datePickerHeader: "datePicker-header_YmSWE",
@@ -1766,155 +1766,155 @@ var Wt = {
1766
1766
  };
1767
1767
  //#endregion
1768
1768
  //#region package/common/datePicker/datePicker.tsx
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()), [A, j] = d(!1), [M, N] = d(() => T() ? Nt(E) : ""), [P, te] = d(!1), [ne, F] = d(!1), [, re] = d(0), [ie, ae] = d(t), R = u(r);
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()), [A, j] = d(!1), [M, N] = d(() => T() ? Pt(E) : ""), [P, te] = d(!1), [ne, F] = d(!1), [, re] = d(0), [ie, I] = d(t), ae = u(r);
1771
1771
  if (ie !== t) {
1772
- ae(t);
1772
+ I(t);
1773
1773
  let e = t ?? /* @__PURE__ */ new Date();
1774
- D(e.getMonth() + 1), k(e.getFullYear()), N(t ? Nt(t) : "");
1774
+ D(e.getMonth() + 1), k(e.getFullYear()), N(t ? Pt(t) : "");
1775
1775
  }
1776
1776
  a(() => {
1777
- if (R.current = r, !r) return;
1777
+ if (ae.current = r, !r) return;
1778
1778
  let e = () => {
1779
1779
  let e = r.value;
1780
- e ? (D(e.getMonth() + 1), k(e.getFullYear()), N(Nt(e))) : N(""), re((e) => e + 1);
1780
+ e ? (D(e.getMonth() + 1), k(e.getFullYear()), N(Pt(e))) : N(""), re((e) => e + 1);
1781
1781
  };
1782
1782
  return r.registerOnUpdateListener(e), () => r.removeOnUpdateListener(e);
1783
1783
  }, [r]);
1784
- let se = () => r ? r.touched && r.hasError() : !b || !!x, le = () => !!(S || r?.validators.find((e) => e.validatorId === "required")), ue = (e) => {
1785
- N(e ? Nt(e) : ""), r && r.set(e), l(e);
1784
+ let oe = () => r ? r.touched && r.hasError() : !b || !!x, se = () => !!(S || r?.validators.find((e) => e.validatorId === "required")), le = (e) => {
1785
+ N(e ? Pt(e) : ""), r && r.set(e), l(e);
1786
+ }, ue = (e) => {
1787
+ le(e), n(e), j(!1);
1786
1788
  }, de = (e) => {
1787
- ue(e), n(e), j(!1);
1788
- }, fe = (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
- }, z = (e) => {
1793
+ }, B = (e) => {
1794
1794
  if (e.match(/\d{2}\.\d{2}\.\d{4}/gi)) {
1795
- let [t, n, r] = e.split("."), i = Dt(Number(t), Number(n), Number(r));
1795
+ let [t, n, r] = e.split("."), i = Ot(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
- }, pe = ({ previousState: e, nextState: t }) => {
1799
+ }, fe = ({ previousState: e, nextState: t }) => {
1800
1800
  if (!e || t.value === e.value) return t;
1801
- let n = Pt(t.value, e.value, t.selection ?? null), r = z(n.value);
1802
- return r && ue(r), n;
1803
- }, me = () => {
1801
+ let n = Ft(t.value, e.value, t.selection ?? null), r = B(n.value);
1802
+ return r && le(r), n;
1803
+ }, pe = () => {
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
- }, B = T(), V = se(), H = /* @__PURE__ */ L(oe, { children: [
1810
- o ? null : /* @__PURE__ */ L("div", {
1811
- className: Wt.datePickerHeader,
1809
+ }, V = T(), H = oe(), U = /* @__PURE__ */ z(L, { children: [
1810
+ o ? null : /* @__PURE__ */ z("div", {
1811
+ className: Gt.datePickerHeader,
1812
1812
  children: [
1813
- /* @__PURE__ */ I(Re, {
1813
+ /* @__PURE__ */ R(ze, {
1814
1814
  icon: _,
1815
- onClick: () => fe(-1)
1815
+ onClick: () => de(-1)
1816
1816
  }),
1817
- /* @__PURE__ */ I("div", {
1818
- className: Wt.datePickerHeaderMonthAndYearContainer,
1819
- children: /* @__PURE__ */ L("div", {
1820
- className: Wt.datePickerHeaderMonthAndYear,
1821
- children: [/* @__PURE__ */ I(Ut, {
1817
+ /* @__PURE__ */ R("div", {
1818
+ className: Gt.datePickerHeaderMonthAndYearContainer,
1819
+ children: /* @__PURE__ */ z("div", {
1820
+ className: Gt.datePickerHeaderMonthAndYear,
1821
+ children: [/* @__PURE__ */ R(Wt, {
1822
1822
  plainStyle: !0,
1823
1823
  scrollToSelected: !0,
1824
1824
  onChange: (e) => D(e),
1825
- className: Wt.datePickerHeaderMonth,
1826
- value: Ot(Tt("-"), O, ee, 1),
1827
- items: kt().map((e, t) => ({
1825
+ className: Gt.datePickerHeaderMonth,
1826
+ value: kt(Et("-"), O, ee, 1),
1827
+ items: At().map((e, t) => ({
1828
1828
  key: t + 1,
1829
1829
  label: e
1830
1830
  }))
1831
- }), /* @__PURE__ */ I(Ut, {
1831
+ }), /* @__PURE__ */ R(Wt, {
1832
1832
  plainStyle: !0,
1833
1833
  scrollToSelected: !0,
1834
1834
  useMatLabelStyle: !1,
1835
- className: Wt.datePickerHeaderYear,
1835
+ className: Gt.datePickerHeaderYear,
1836
1836
  onChange: (e) => k(e),
1837
1837
  value: O,
1838
- items: me()
1838
+ items: pe()
1839
1839
  })]
1840
1840
  })
1841
1841
  }),
1842
- /* @__PURE__ */ I(Re, {
1842
+ /* @__PURE__ */ R(ze, {
1843
1843
  icon: v,
1844
- onClick: () => fe(1)
1844
+ onClick: () => de(1)
1845
1845
  })
1846
1846
  ]
1847
1847
  }),
1848
- /* @__PURE__ */ I(Rt, {
1849
- className: Wt.datePickerMonth,
1848
+ /* @__PURE__ */ R(zt, {
1849
+ className: Gt.datePickerMonth,
1850
1850
  month: ee,
1851
1851
  year: O,
1852
- onSelect: de,
1853
- selectionStart: C ?? B,
1854
- selectionEnd: w ?? B,
1852
+ onSelect: ue,
1853
+ selectionStart: C ?? V,
1854
+ selectionEnd: w ?? V,
1855
1855
  minDate: p,
1856
1856
  maxDate: m
1857
1857
  }),
1858
- g && /* @__PURE__ */ I(K, {
1859
- onClick: () => de(null),
1858
+ g && /* @__PURE__ */ R(K, {
1859
+ onClick: () => ue(null),
1860
1860
  children: "Clear"
1861
1861
  }),
1862
1862
  h
1863
- ] }), he = i ? null : /* @__PURE__ */ I(rt, {
1863
+ ] }), me = i ? null : /* @__PURE__ */ R(it, {
1864
1864
  readOnly: s,
1865
- label: `${y}${le() ? " *" : ""}`,
1865
+ label: `${y}${se() ? " *" : ""}`,
1866
1866
  value: M,
1867
1867
  onChange: (e) => N(e),
1868
1868
  onClick: () => j(!0),
1869
- customInput: /* @__PURE__ */ I(ce, {
1869
+ customInput: /* @__PURE__ */ R(ce, {
1870
1870
  mask: "99.99.9999",
1871
1871
  maskPlaceholder: "_",
1872
- beforeMaskedStateChange: pe
1872
+ beforeMaskedStateChange: fe
1873
1873
  }),
1874
1874
  onBlur: () => {
1875
- R.current && (R.current.touched = !0), te(!1), ue(z(M));
1875
+ ae.current && (ae.current.touched = !0), te(!1), le(B(M));
1876
1876
  },
1877
1877
  onFocus: () => te(!0),
1878
1878
  onMouseEnter: () => F(!0),
1879
1879
  onMouseLeave: () => F(!1),
1880
- isValid: !V
1881
- }), ge = c ? H : s ? /* @__PURE__ */ I(gt, {
1880
+ isValid: !H
1881
+ }), he = c ? U : s ? /* @__PURE__ */ R(_t, {
1882
1882
  hideHeader: !0,
1883
1883
  isOpen: A,
1884
1884
  onClose: () => j(!1),
1885
- children: H
1886
- }) : /* @__PURE__ */ I(et, {
1885
+ children: U
1886
+ }) : /* @__PURE__ */ R(tt, {
1887
1887
  isOpen: A,
1888
1888
  onOpenChange: (e) => j(e),
1889
- content: H,
1890
- align: Qe.Left,
1889
+ content: U,
1890
+ align: $e.Left,
1891
1891
  dontCloseOnChildClick: !0,
1892
- children: he
1892
+ children: me
1893
1893
  });
1894
- return /* @__PURE__ */ L("div", {
1895
- className: f(Wt.datePicker, e),
1894
+ return /* @__PURE__ */ z("div", {
1895
+ className: f(Gt.datePicker, e),
1896
1896
  children: [
1897
- (s || c) && he,
1898
- ge,
1899
- /* @__PURE__ */ I(nt, {
1897
+ (s || c) && me,
1898
+ he,
1899
+ /* @__PURE__ */ R(rt, {
1900
1900
  variant: "error",
1901
1901
  message: r ? r.getCurrentErrorMessage() : x || "",
1902
- isVisible: V && (P || ne)
1902
+ isVisible: H && (P || ne)
1903
1903
  })
1904
1904
  ]
1905
1905
  });
1906
1906
  }
1907
- var Kt = { emptyState: "emptyState_KXOIx" };
1907
+ var qt = { emptyState: "emptyState_KXOIx" };
1908
1908
  //#endregion
1909
1909
  //#region package/common/emptyState/emptyState.tsx
1910
- function qt({ className: e, icon: t, children: n, ...r }) {
1911
- return /* @__PURE__ */ L("div", {
1910
+ function Jt({ className: e, icon: t, children: n, ...r }) {
1911
+ return /* @__PURE__ */ z("div", {
1912
1912
  ...r,
1913
- className: f(Kt.emptyState, e),
1914
- children: [t && /* @__PURE__ */ I(p, { icon: t }), /* @__PURE__ */ I("div", { children: n ?? "No entries available" })]
1913
+ className: f(qt.emptyState, e),
1914
+ children: [t && /* @__PURE__ */ R(p, { icon: t }), /* @__PURE__ */ R("div", { children: n ?? "No entries available" })]
1915
1915
  });
1916
1916
  }
1917
- var Jt = {
1917
+ var Yt = {
1918
1918
  fab: "fab_hyAAa",
1919
1919
  "fab-content": "fab-content_IBiXm",
1920
1920
  fabContent: "fab-content_IBiXm",
@@ -1922,19 +1922,19 @@ var Jt = {
1922
1922
  fabContentContainer: "fab-content-container_FQD1x",
1923
1923
  "fab-size-mini": "fab-size-mini_KP9BD",
1924
1924
  fabSizeMini: "fab-size-mini_KP9BD"
1925
- }, Yt = {
1925
+ }, Xt = {
1926
1926
  default: null,
1927
- mini: Jt.fabSizeMini
1927
+ mini: Yt.fabSizeMini
1928
1928
  };
1929
- function Xt({ children: e = null, size: t = "default", className: n = "", styleType: r = G.Primary, onClick: i = () => {} }) {
1930
- return /* @__PURE__ */ I(K, {
1929
+ function Zt({ children: e = null, size: t = "default", className: n = "", styleType: r = De.Primary, onClick: i = () => {} }) {
1930
+ return /* @__PURE__ */ R(K, {
1931
1931
  styleType: r,
1932
- className: f(Jt.fab, Yt[t], n),
1932
+ className: f(Yt.fab, Xt[t], n),
1933
1933
  onClick: i,
1934
- children: /* @__PURE__ */ I("div", {
1935
- className: Jt.fabContentContainer,
1936
- children: /* @__PURE__ */ I("div", {
1937
- className: Jt.fabContent,
1934
+ children: /* @__PURE__ */ R("div", {
1935
+ className: Yt.fabContentContainer,
1936
+ children: /* @__PURE__ */ R("div", {
1937
+ className: Yt.fabContent,
1938
1938
  children: e
1939
1939
  })
1940
1940
  })
@@ -1970,7 +1970,7 @@ var X = {
1970
1970
  };
1971
1971
  //#endregion
1972
1972
  //#region package/common/fab/fab.tsx
1973
- function Zt({ children: e = null, size: t = "default", menuEntries: n = [], onMenuEntryClicked: r = () => {}, onClick: i = () => {}, closeMenuOnEntryClicked: a = !0, ...o }) {
1973
+ function Qt({ 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 Zt({ 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__ */ L("div", {
1981
+ return /* @__PURE__ */ z("div", {
1982
1982
  ...o,
1983
1983
  className: X.fabContainer,
1984
1984
  children: [
1985
- /* @__PURE__ */ I("div", {
1985
+ /* @__PURE__ */ R("div", {
1986
1986
  className: f(X.fabMenuBackdrop, s && X.fabMenuBackdropOpen),
1987
1987
  onClick: (e) => {
1988
1988
  e.stopPropagation(), c(!1);
1989
1989
  }
1990
1990
  }),
1991
- /* @__PURE__ */ I("div", {
1991
+ /* @__PURE__ */ R("div", {
1992
1992
  onClick: (e) => e.stopPropagation(),
1993
- children: /* @__PURE__ */ I(Xt, {
1993
+ children: /* @__PURE__ */ R(Zt, {
1994
1994
  className: X.fab,
1995
1995
  size: t,
1996
1996
  onClick: l,
1997
- children: /* @__PURE__ */ L("div", {
1997
+ children: /* @__PURE__ */ z("div", {
1998
1998
  className: f(X.fabIcon, s && X.fabIconMenuOpen),
1999
- children: [/* @__PURE__ */ I("div", {
1999
+ children: [/* @__PURE__ */ R("div", {
2000
2000
  className: f(X.fabIconContent, !s && X.fabIconContentShown),
2001
2001
  children: e
2002
- }), /* @__PURE__ */ I("div", {
2002
+ }), /* @__PURE__ */ R("div", {
2003
2003
  className: f(X.fabIconContent, s && X.fabIconContentShown),
2004
- children: /* @__PURE__ */ I(p, { icon: N })
2004
+ children: /* @__PURE__ */ R(p, { icon: P })
2005
2005
  })]
2006
2006
  })
2007
2007
  })
2008
2008
  }),
2009
- /* @__PURE__ */ I("div", {
2009
+ /* @__PURE__ */ R("div", {
2010
2010
  className: X.fabMenu,
2011
- children: n.map(({ id: e, label: t, icon: n }) => /* @__PURE__ */ L("div", {
2011
+ children: n.map(({ id: e, label: t, icon: n }) => /* @__PURE__ */ z("div", {
2012
2012
  className: f(X.fabMenuEntry, s && X.fabMenuEntryShown),
2013
2013
  onClick: (t) => u(t, e),
2014
- children: [t && /* @__PURE__ */ I("div", {
2014
+ children: [t && /* @__PURE__ */ R("div", {
2015
2015
  className: X.fabMenuEntryLabelContainer,
2016
- children: /* @__PURE__ */ I("div", {
2016
+ children: /* @__PURE__ */ R("div", {
2017
2017
  className: X.fabMenuEntryLabel,
2018
2018
  children: t
2019
2019
  })
2020
- }), /* @__PURE__ */ I(Xt, {
2020
+ }), /* @__PURE__ */ R(Zt, {
2021
2021
  size: "mini",
2022
- children: /* @__PURE__ */ I(p, { icon: n })
2022
+ children: /* @__PURE__ */ R(p, { icon: n })
2023
2023
  })]
2024
2024
  }, e))
2025
2025
  })
2026
2026
  ]
2027
2027
  });
2028
2028
  }
2029
- var Qt = {
2029
+ var $t = {
2030
2030
  iconPicker: "iconPicker_xJJmG",
2031
2031
  "iconPicker-label": "iconPicker-label_VEB2X",
2032
2032
  iconPickerLabel: "iconPicker-label_VEB2X",
@@ -2041,41 +2041,41 @@ var Qt = {
2041
2041
  };
2042
2042
  //#endregion
2043
2043
  //#region package/common/iconPicker/iconPicker.tsx
2044
- function $t(e) {
2044
+ function en(e) {
2045
2045
  let { formValidator: t } = e;
2046
2046
  return t ? t.touched && t.hasError() : !1;
2047
2047
  }
2048
- function en(e) {
2048
+ function tn(e) {
2049
2049
  let { isRequired: t, formValidator: n } = e;
2050
2050
  return !!(t || n?.validators.find((e) => e.validatorId === "required"));
2051
2051
  }
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({
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({
2054
2054
  formValidator: i,
2055
2055
  isRequired: a
2056
- }), h = en({
2056
+ }), h = tn({
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__ */ L("div", {
2063
+ return /* @__PURE__ */ z("div", {
2064
2064
  ...u,
2065
- className: f(Qt.iconPicker, { [Qt.iconPickerError]: m }, c?.root, o),
2065
+ className: f($t.iconPicker, { [$t.iconPickerError]: m }, c?.root, o),
2066
2066
  style: {
2067
2067
  ...l?.root,
2068
2068
  ...s
2069
2069
  },
2070
- children: [n && /* @__PURE__ */ L("div", {
2071
- className: f(Qt.iconPickerLabel, c?.label),
2070
+ children: [n && /* @__PURE__ */ z("div", {
2071
+ className: f($t.iconPickerLabel, c?.label),
2072
2072
  style: l?.label,
2073
2073
  children: [n, h && " *"]
2074
- }), /* @__PURE__ */ I("div", {
2075
- className: f(Qt.iconPickerItemContainer, c?.itemContainer),
2074
+ }), /* @__PURE__ */ R("div", {
2075
+ className: f($t.iconPickerItemContainer, c?.itemContainer),
2076
2076
  style: l?.itemContainer,
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),
2077
+ children: e.map(({ id: e, label: t, icon: n, customIcon: r }) => /* @__PURE__ */ z("div", {
2078
+ className: f($t.iconPickerItem, { [$t.iconPickerItemSelected]: d === e }, c?.item),
2079
2079
  style: l?.item,
2080
2080
  title: t,
2081
2081
  tabIndex: 0,
@@ -2085,9 +2085,9 @@ function tn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2085
2085
  t === "Enter" && g(e);
2086
2086
  },
2087
2087
  children: [
2088
- n && /* @__PURE__ */ I(p, { icon: n }),
2088
+ n && /* @__PURE__ */ R(p, { icon: n }),
2089
2089
  r ?? null,
2090
- /* @__PURE__ */ I(Ae, {})
2090
+ /* @__PURE__ */ R(je, {})
2091
2091
  ]
2092
2092
  }, e))
2093
2093
  })]
@@ -2095,14 +2095,14 @@ function tn({ 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 nn = [
2098
+ var rn = [
2099
2099
  "click",
2100
2100
  "mousemove",
2101
2101
  "keydown",
2102
2102
  "scroll",
2103
2103
  "touchstart"
2104
2104
  ];
2105
- function rn({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n = !0 }) {
2105
+ function an({ 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 rn({ children: e = null, idleAfterSeconds: t = 600, renderCondition: n
2111
2111
  return a(() => {
2112
2112
  c();
2113
2113
  }, [c]), a(() => {
2114
- for (let e of nn) document.addEventListener(e, c);
2114
+ for (let e of rn) document.addEventListener(e, c);
2115
2115
  return () => {
2116
- for (let e of nn) document.removeEventListener(e, c);
2116
+ for (let e of rn) document.removeEventListener(e, c);
2117
2117
  s.current !== null && clearTimeout(s.current);
2118
2118
  };
2119
- }, [c]), /* @__PURE__ */ I(oe, { children: n && r && e });
2119
+ }, [c]), /* @__PURE__ */ R(L, { children: n && r && e });
2120
2120
  }
2121
- var an = {
2121
+ var on = {
2122
2122
  inputDropdown: "inputDropdown_UdYMa",
2123
2123
  dropdown: "dropdown_-M5-x",
2124
2124
  "dropdown-shown": "dropdown-shown_H2rFU",
@@ -2132,15 +2132,15 @@ var an = {
2132
2132
  };
2133
2133
  //#endregion
2134
2134
  //#region package/common/inputDropdown/inputDropdown.tsx
2135
- function on(e, t) {
2135
+ function sn(e, t) {
2136
2136
  return t ? t.value ?? "" : e ?? "";
2137
2137
  }
2138
- function sn(e, t) {
2138
+ function cn(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 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);
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);
2144
2144
  if (g !== y) {
2145
2145
  b(g);
2146
2146
  let e = r.find((e) => e.value === g);
@@ -2165,9 +2165,9 @@ function cn({ label: e = "", value: t = "", formValidator: n = null, items: r =
2165
2165
  C,
2166
2166
  O
2167
2167
  ]);
2168
- return /* @__PURE__ */ L("div", {
2168
+ return /* @__PURE__ */ z("div", {
2169
2169
  ...h,
2170
- className: f(an.inputDropdown, s?.root, a),
2170
+ className: f(on.inputDropdown, s?.root, a),
2171
2171
  style: {
2172
2172
  ...c?.root,
2173
2173
  ...o
@@ -2175,18 +2175,18 @@ function cn({ label: e = "", value: t = "", formValidator: n = null, items: r =
2175
2175
  onFocus: ee,
2176
2176
  onBlur: D,
2177
2177
  onKeyDown: k,
2178
- children: [/* @__PURE__ */ I(rt, {
2178
+ children: [/* @__PURE__ */ R(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__ */ I("div", {
2186
- className: f(an.dropdown, { [an.dropdownShown]: x }, s?.dropdown),
2185
+ }), /* @__PURE__ */ R("div", {
2186
+ className: f(on.dropdown, { [on.dropdownShown]: x }, s?.dropdown),
2187
2187
  style: c?.dropdown,
2188
- children: x && E.map((e, t) => /* @__PURE__ */ I("div", {
2189
- className: f(an.dropdownItem, C === t && an.dropdownItemHighlighted, s?.item),
2188
+ children: x && E.map((e, t) => /* @__PURE__ */ R("div", {
2189
+ className: f(on.dropdownItem, C === t && on.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 cn({ label: e = "", value: t = "", formValidator: n = null, items: r =
2194
2194
  })]
2195
2195
  });
2196
2196
  }
2197
- var ln = {
2197
+ var un = {
2198
2198
  board: "board_6KRdw",
2199
2199
  column: "column_NrNeF",
2200
2200
  "column-empty": "column-empty_5KYsJ",
@@ -2212,15 +2212,15 @@ var ln = {
2212
2212
  };
2213
2213
  //#endregion
2214
2214
  //#region package/common/kanbanBoard/KanbanItem.tsx
2215
- function un({ id: e, children: t }) {
2216
- let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = H({ id: e });
2217
- return /* @__PURE__ */ I("div", {
2215
+ function dn({ id: e, children: t }) {
2216
+ let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = me({ id: e });
2217
+ return /* @__PURE__ */ R("div", {
2218
2218
  ref: i,
2219
2219
  style: {
2220
2220
  transform: ge.Transform.toString(a),
2221
2221
  transition: o
2222
2222
  },
2223
- className: f(ln.item, s && ln.itemDragging),
2223
+ className: f(un.item, s && un.itemDragging),
2224
2224
  ...n,
2225
2225
  ...r,
2226
2226
  children: t
@@ -2228,22 +2228,22 @@ function un({ id: e, children: t }) {
2228
2228
  }
2229
2229
  //#endregion
2230
2230
  //#region package/common/kanbanBoard/KanbanColumn.tsx
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 } = z({ 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),
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 } = fe({ id: `column-${e}` });
2233
+ return /* @__PURE__ */ z("div", {
2234
+ className: f(un.column, l && un.columnOver, n.length === 0 && un.columnEmpty, a),
2235
+ children: [/* @__PURE__ */ R("div", {
2236
+ className: f(un.columnHeader, o?.header),
2237
2237
  style: s?.header,
2238
2238
  children: t
2239
- }), /* @__PURE__ */ I(B, {
2239
+ }), /* @__PURE__ */ R(H, {
2240
2240
  items: n,
2241
2241
  strategy: he,
2242
- children: /* @__PURE__ */ I("div", {
2242
+ children: /* @__PURE__ */ R("div", {
2243
2243
  ref: c,
2244
- className: f(ln.columnItems, o?.items),
2244
+ className: f(un.columnItems, o?.items),
2245
2245
  style: s?.items,
2246
- children: n.map((e) => /* @__PURE__ */ I(un, {
2246
+ children: n.map((e) => /* @__PURE__ */ R(dn, {
2247
2247
  id: e,
2248
2248
  children: r[e] === void 0 ? null : i(r[e], e)
2249
2249
  }, e))
@@ -2253,8 +2253,8 @@ function dn({ 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 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 = me(pe(de, { activationConstraint: { distance: 8 } })), h = u ?? e;
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 = V(pe(de, { 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 fn({ 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: V(e.itemIds, t, o)
2289
+ itemIds: U(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 fn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2303
2303
  }
2304
2304
  r(u), p(null);
2305
2305
  }
2306
- return /* @__PURE__ */ L(le, {
2306
+ return /* @__PURE__ */ z(le, {
2307
2307
  sensors: m,
2308
- collisionDetection: fe,
2308
+ collisionDetection: B,
2309
2309
  onDragStart: _,
2310
2310
  onDragOver: v,
2311
2311
  onDragEnd: y,
2312
- children: [/* @__PURE__ */ I("div", {
2313
- className: f(ln.board, i),
2312
+ children: [/* @__PURE__ */ R("div", {
2313
+ className: f(un.board, i),
2314
2314
  style: a,
2315
- children: h.map((e) => /* @__PURE__ */ I(dn, {
2315
+ children: h.map((e) => /* @__PURE__ */ R(fn, {
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__ */ I(ue, { children: c && t[c] !== void 0 ? /* @__PURE__ */ I("div", {
2323
- className: f(ln.dragOverlay, o?.dragOverlay),
2322
+ }), /* @__PURE__ */ R(ue, { children: c && t[c] !== void 0 ? /* @__PURE__ */ R("div", {
2323
+ className: f(un.dragOverlay, o?.dragOverlay),
2324
2324
  style: s?.dragOverlay,
2325
2325
  children: n(t[c], c)
2326
2326
  }) : null })]
2327
2327
  });
2328
2328
  }
2329
- var pn = {
2329
+ var mn = {
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 pn = {
2341
2341
  };
2342
2342
  //#endregion
2343
2343
  //#region package/common/loading/iconLoading/iconLoading.tsx
2344
- function mn({ className: e = "" }) {
2345
- return /* @__PURE__ */ I("div", {
2346
- className: f(pn.iconLoading, e),
2347
- children: /* @__PURE__ */ L("svg", {
2344
+ function hn({ className: e = "" }) {
2345
+ return /* @__PURE__ */ R("div", {
2346
+ className: f(mn.iconLoading, e),
2347
+ children: /* @__PURE__ */ z("svg", {
2348
2348
  xmlns: "http://www.w3.org/2000/svg",
2349
2349
  viewBox: "-8 -1 16 14",
2350
2350
  children: [
2351
- /* @__PURE__ */ I("path", {
2352
- className: pn.iconLoadingFirst,
2351
+ /* @__PURE__ */ R("path", {
2352
+ className: mn.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__ */ I("path", {
2358
- className: pn.iconLoadingFirst,
2357
+ /* @__PURE__ */ R("path", {
2358
+ className: mn.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__ */ I("path", {
2364
- className: pn.iconLoadingFirst,
2363
+ /* @__PURE__ */ R("path", {
2364
+ className: mn.iconLoadingFirst,
2365
2365
  d: "M 0 0 L 0 10",
2366
2366
  strokeWidth: "1.7",
2367
2367
  fill: "none"
2368
2368
  }),
2369
- /* @__PURE__ */ I("path", {
2370
- className: pn.iconLoadingSecond,
2369
+ /* @__PURE__ */ R("path", {
2370
+ className: mn.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__ */ I("path", {
2376
- className: pn.iconLoadingSecond,
2375
+ /* @__PURE__ */ R("path", {
2376
+ className: mn.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 mn({ className: e = "" }) {
2384
2384
  }
2385
2385
  //#endregion
2386
2386
  //#region package/common/loading/iconLoading/index.ts
2387
- var hn = mn, gn = { numberInput: "numberInput_7p2O3" };
2387
+ var gn = hn, _n = { numberInput: "numberInput_7p2O3" };
2388
2388
  //#endregion
2389
2389
  //#region package/common/numberInput/numberInput.tsx
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 }) {
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 }) {
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__ */ I(rt, {
2397
+ return /* @__PURE__ */ R(it, {
2398
2398
  label: r,
2399
- className: f(gn.numberInput, a),
2399
+ className: f(_n.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__ */ I(_e, {
2406
+ customInput: /* @__PURE__ */ R(_e, {
2407
2407
  onValueChange: (e) => y(e.floatValue),
2408
2408
  allowNegative: m == null ? o : !1,
2409
2409
  decimalSeparator: s,
@@ -2418,7 +2418,7 @@ function _n({ 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 vn = _n, yn = {
2421
+ var yn = vn, bn = {
2422
2422
  optionPicker: "optionPicker_Yx82s",
2423
2423
  "optionPicker-chip": "optionPicker-chip_ywtvr",
2424
2424
  optionPickerChip: "optionPicker-chip_ywtvr",
@@ -2429,20 +2429,20 @@ var vn = _n, yn = {
2429
2429
  };
2430
2430
  //#endregion
2431
2431
  //#region package/common/optionPicker/optionPicker.tsx
2432
- function bn({ className: e = void 0, options: t, onChange: n, value: r, ...i }) {
2432
+ function xn({ 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__ */ L("div", {
2434
+ return /* @__PURE__ */ z("div", {
2435
2435
  ...i,
2436
- className: f(yn.optionPicker, e),
2437
- children: [/* @__PURE__ */ I("div", {
2438
- className: yn.optionPickerChip,
2436
+ className: f(bn.optionPicker, e),
2437
+ children: [/* @__PURE__ */ R("div", {
2438
+ className: bn.optionPickerChip,
2439
2439
  style: {
2440
2440
  left: `${a}%`,
2441
2441
  width: `${100 / t.length}%`
2442
2442
  }
2443
- }), t.map((e) => /* @__PURE__ */ I(Ie, {
2443
+ }), t.map((e) => /* @__PURE__ */ R(Le, {
2444
2444
  onClick: (t) => n(e.key, t),
2445
- className: f(yn.optionPickerOption, e.key === r && yn.optionPickerOptionActive),
2445
+ className: f(bn.optionPickerOption, e.key === r && bn.optionPickerOptionActive),
2446
2446
  tabIndex: e.key === r ? -1 : 0,
2447
2447
  children: e.label
2448
2448
  }, e.key))]
@@ -2450,25 +2450,25 @@ function bn({ 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 xn = 768;
2454
- function Sn() {
2453
+ var Sn = 768;
2454
+ function Cn() {
2455
2455
  let [e, t] = d(() => ({
2456
2456
  width: window.innerWidth,
2457
2457
  height: window.innerHeight,
2458
- isMobileSize: window.innerWidth < xn
2458
+ isMobileSize: window.innerWidth < Sn
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 < xn
2465
+ isMobileSize: window.innerWidth < Sn
2466
2466
  });
2467
2467
  }
2468
2468
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
2469
2469
  }, []), e;
2470
2470
  }
2471
- var Cn = {
2471
+ var wn = {
2472
2472
  overscroll: "overscroll_Ij750",
2473
2473
  "overscroll-header": "overscroll-header_S6vYc",
2474
2474
  overscrollHeader: "overscroll-header_S6vYc",
@@ -2479,8 +2479,8 @@ var Cn = {
2479
2479
  };
2480
2480
  //#endregion
2481
2481
  //#region package/common/overscroll/overscroll.tsx
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);
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);
2484
2484
  S.current = p;
2485
2485
  let C = i((e) => {
2486
2486
  let t;
@@ -2535,28 +2535,28 @@ function wn({ 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__ */ L("div", { children: [n, e] }) : /* @__PURE__ */ I(oe, { children: e });
2538
+ if (d && !h) return n ? /* @__PURE__ */ z("div", { children: [n, e] }) : /* @__PURE__ */ R(L, { children: e });
2539
2539
  let O = l === "%" ? `${100 - o}%` : `calc(100% - ${o}px)`;
2540
- return /* @__PURE__ */ L("div", {
2541
- className: Cn.overscroll,
2540
+ return /* @__PURE__ */ z("div", {
2541
+ className: wn.overscroll,
2542
2542
  ref: _,
2543
2543
  onScroll: D,
2544
- children: [/* @__PURE__ */ I("div", {
2545
- className: Cn.overscrollHeaderContainer,
2544
+ children: [/* @__PURE__ */ R("div", {
2545
+ className: wn.overscrollHeaderContainer,
2546
2546
  style: { height: `${s}${l}` },
2547
2547
  ref: y,
2548
- children: /* @__PURE__ */ I("div", {
2549
- className: f(Cn.overscrollHeader, r && Cn.overscrollHeaderCentered),
2548
+ children: /* @__PURE__ */ R("div", {
2549
+ className: f(wn.overscrollHeader, r && wn.overscrollHeaderCentered),
2550
2550
  ref: v,
2551
2551
  children: t
2552
2552
  })
2553
- }), /* @__PURE__ */ I("div", {
2553
+ }), /* @__PURE__ */ R("div", {
2554
2554
  style: { minHeight: O },
2555
2555
  children: e
2556
2556
  })]
2557
2557
  });
2558
2558
  }
2559
- var Tn = {
2559
+ var En = {
2560
2560
  progressBar: "progressBar_LO0sX",
2561
2561
  "progressBar-fill": "progressBar-fill_rt32j",
2562
2562
  progressBarFill: "progressBar-fill_rt32j",
@@ -2569,48 +2569,48 @@ var Tn = {
2569
2569
  };
2570
2570
  //#endregion
2571
2571
  //#region package/common/progressBar/progressBar.tsx
2572
- function En(e) {
2572
+ function Dn(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 Dn({ className: e = void 0, total: t = 100, progress: n = 0, style: r = void 0, ...i }) {
2576
+ function On({ 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__ */ I("div", {
2582
- className: f(Tn.progressBarFill, i === e.length - 1 && Tn.progressBarFillEnd, n.class),
2581
+ return /* @__PURE__ */ R("div", {
2582
+ className: f(En.progressBarFill, i === e.length - 1 && En.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__ */ I("div", {
2590
- className: Tn.progressBarLabel,
2591
- style: n.color ? { color: En(n.color) } : {},
2589
+ children: n.label && /* @__PURE__ */ R("div", {
2590
+ className: En.progressBarLabel,
2591
+ style: n.color ? { color: Dn(n.color) } : {},
2592
2592
  children: n.label
2593
2593
  })
2594
2594
  }, i);
2595
2595
  });
2596
2596
  }
2597
- return /* @__PURE__ */ I("div", {
2597
+ return /* @__PURE__ */ R("div", {
2598
2598
  ...i,
2599
- className: f(Tn.progressBar, e),
2599
+ className: f(En.progressBar, e),
2600
2600
  style: r,
2601
2601
  children: a()
2602
2602
  });
2603
2603
  }
2604
- function On(e) {
2604
+ function kn(e) {
2605
2605
  return Math.round(e / 5) * 5;
2606
2606
  }
2607
- function kn(e) {
2607
+ function An(e) {
2608
2608
  return {
2609
- x: On(e.x),
2610
- y: On(e.y)
2609
+ x: kn(e.x),
2610
+ y: kn(e.y)
2611
2611
  };
2612
2612
  }
2613
- function An(e, t, n) {
2613
+ function jn(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 An(e, t, n) {
2619
2619
  y: 0
2620
2620
  };
2621
2621
  let a = r.matrixTransform(i.inverse());
2622
- return kn({
2622
+ return An({
2623
2623
  x: a.x,
2624
2624
  y: a.y
2625
2625
  });
2626
2626
  }
2627
- function jn(e, t) {
2627
+ function Mn(e, t) {
2628
2628
  return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
2629
2629
  }
2630
- function Mn(e, t, n) {
2630
+ function Nn(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: jn(e, t),
2633
+ dist: Mn(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 Mn(e, t, n) {
2639
2639
  t: o
2640
2640
  };
2641
2641
  }
2642
- function Nn(e, t) {
2642
+ function Pn(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 } = Mn(e, a, o);
2647
+ let a = t[i], o = t[(i + 1) % t.length], { dist: s, t: c } = Nn(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 Nn(e, t) {
2655
2655
  }
2656
2656
  return n;
2657
2657
  }
2658
- function Pn(e, t) {
2658
+ function Fn(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 Pn(e, t) {
2663
2663
  }
2664
2664
  return n;
2665
2665
  }
2666
- function Fn(e) {
2666
+ function In(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 In(e, t, n, r) {
2672
+ function Ln(e, t, n, r) {
2673
2673
  return [
2674
2674
  {
2675
2675
  x: e,
@@ -2689,7 +2689,7 @@ function In(e, t, n, r) {
2689
2689
  }
2690
2690
  ];
2691
2691
  }
2692
- function Ln(e, t, n, r) {
2692
+ function Rn(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 Ln(e, t, n, r) {
2708
2708
  }
2709
2709
  };
2710
2710
  }
2711
- function Rn(e) {
2711
+ function zn(e) {
2712
2712
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2713
2713
  }
2714
- function zn(e) {
2714
+ function Bn(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 Bn(e, t) {
2717
+ function Vn(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 Bn(e, t) {
2737
2737
  }
2738
2738
  return r[0] = [...i, ...r[0].slice(1)], r.map((e) => e.join(" "));
2739
2739
  }
2740
- function Vn(e, t, n) {
2741
- let r = Ln(e, t, n.t, n.width);
2740
+ function Hn(e, t, n) {
2741
+ let r = Rn(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 Vn(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 Hn(e, t) {
2749
+ function Un(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 Hn(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 = 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);
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);
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)}">${Rn(e.name)}</text>` : "";
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>` : "";
2763
2763
  return [
2764
2764
  ` <g id="${e.id}">`,
2765
2765
  o,
@@ -2778,7 +2778,7 @@ function Hn(e, t) {
2778
2778
  "</svg>"
2779
2779
  ].join("\n");
2780
2780
  }
2781
- function Un(e) {
2781
+ function Wn(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 Un(e) {
2786
2786
  });
2787
2787
  return t;
2788
2788
  }
2789
- function Wn(e) {
2789
+ function Gn(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 = Un(r);
2796
+ let i = Wn(r);
2797
2797
  if (i.length < 3) return;
2798
2798
  let a = e.querySelector("text")?.textContent?.trim() ?? "";
2799
2799
  n.push({
@@ -2803,8 +2803,8 @@ function Wn(e) {
2803
2803
  });
2804
2804
  }), n;
2805
2805
  }
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");
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");
2808
2808
  a.href = i, a.download = "room-plan.svg", a.click(), URL.revokeObjectURL(i);
2809
2809
  }
2810
2810
  var Z = {
@@ -2879,56 +2879,56 @@ var Z = {
2879
2879
  polyCloseTarget: "polyCloseTarget_snjYx",
2880
2880
  polyVertex: "polyVertex_fw0nX",
2881
2881
  vertexHandle: "vertexHandle_-z7g5"
2882
- }, Kn = 6, qn = 5, Jn = 1.25, Yn = .25, Xn = 12, Zn = 0;
2883
- function Qn(e) {
2884
- return Zn += 1, `${e}${Zn}`;
2882
+ }, qn = 6, Jn = 5, Yn = 1.25, Xn = .25, Zn = 12, Qn = 0;
2883
+ function $n(e) {
2884
+ return Qn += 1, `${e}${Qn}`;
2885
2885
  }
2886
- var $n = {
2886
+ var er = {
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 er({ className: e }) {
2892
- let [t, n] = d([]), [r, i] = d([]), [o, c] = d("rect"), [l, m] = d(null), [g, _] = d(null), [v, y] = d(null), [b, w] = d(null), [T, E] = d([]), [ee, O] = d(null), [j, M] = d(1), [N, P] = d({
2891
+ function tr({ className: e }) {
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, M] = d(1), [N, P] = d({
2893
2893
  x: 0,
2894
2894
  y: 0
2895
- }), F = u(null), ie = u(null), ae = u(null), R = u(null), se = u(null), ce = u({
2895
+ }), te = u(null), re = u(null), I = u(null), ae = u(null), oe = u(null), se = u({
2896
2896
  rooms: t,
2897
2897
  doors: r,
2898
2898
  tool: o,
2899
2899
  selectedId: l,
2900
2900
  editingDoorsForRoomId: g,
2901
2901
  polyPoints: T,
2902
- zoom: j,
2902
+ zoom: k,
2903
2903
  pan: N
2904
2904
  });
2905
2905
  s(() => {
2906
- ce.current = {
2906
+ se.current = {
2907
2907
  rooms: t,
2908
2908
  doors: r,
2909
2909
  tool: o,
2910
2910
  selectedId: l,
2911
2911
  editingDoorsForRoomId: g,
2912
2912
  polyPoints: T,
2913
- zoom: j,
2913
+ zoom: k,
2914
2914
  pan: N
2915
2915
  };
2916
2916
  });
2917
- function le(e) {
2917
+ function ce(e) {
2918
2918
  e.length < 3 || (n((t) => [...t, {
2919
- id: Qn("room"),
2919
+ id: $n("room"),
2920
2920
  name: `Room ${t.length + 1}`,
2921
2921
  points: e
2922
- }]), E([]), O(null));
2922
+ }]), E([]), D(null));
2923
2923
  }
2924
2924
  a(() => {
2925
- let e = R.current;
2925
+ let e = ae.current;
2926
2926
  if (!e) return;
2927
2927
  function t(e) {
2928
2928
  e.preventDefault();
2929
- let { zoom: t, pan: n } = ce.current, r = An(e.clientX, e.clientY, R.current);
2929
+ let { zoom: t, pan: n } = se.current, r = jn(e.clientX, e.clientY, ae.current);
2930
2930
  if (!r) return;
2931
- let i = e.deltaY < 0 ? Jn : 1 / Jn, a = Math.max(Yn, Math.min(Xn, t * i));
2931
+ let i = e.deltaY < 0 ? Yn : 1 / Yn, a = Math.max(Xn, Math.min(Zn, t * i));
2932
2932
  P({
2933
2933
  x: r.x - (r.x - n.x) * (t / a),
2934
2934
  y: r.y - (r.y - n.y) * (t / a)
@@ -2937,21 +2937,21 @@ function er({ 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 } = ce.current;
2940
+ let { tool: t, selectedId: r, editingDoorsForRoomId: a, polyPoints: o, zoom: s, pan: c } = se.current;
2941
2941
  if (e.key === "Escape") {
2942
2942
  if (a) {
2943
2943
  _(null);
2944
2944
  return;
2945
2945
  }
2946
- t === "polygon" && (E([]), O(null)), m(null);
2946
+ t === "polygon" && (E([]), D(null)), m(null);
2947
2947
  return;
2948
2948
  }
2949
2949
  if (e.key === "Enter" && t === "polygon" && o.length >= 3) {
2950
- le(o);
2950
+ ce(o);
2951
2951
  return;
2952
2952
  }
2953
2953
  if ((e.key === "+" || e.key === "=") && !(e.target instanceof HTMLInputElement)) {
2954
- let e = Math.max(Yn, Math.min(Xn, s * Jn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
2954
+ let e = Math.max(Xn, Math.min(Zn, s * Yn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
2955
2955
  M(e), P({
2956
2956
  x: t - 400 / e / 2,
2957
2957
  y: n - 300 / e / 2
@@ -2959,7 +2959,7 @@ function er({ className: e }) {
2959
2959
  return;
2960
2960
  }
2961
2961
  if (e.key === "-" && !(e.target instanceof HTMLInputElement)) {
2962
- let e = Math.max(Yn, Math.min(Xn, s / Jn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
2962
+ let e = Math.max(Xn, Math.min(Zn, s / Yn)), t = c.x + 400 / s / 2, n = c.y + 300 / s / 2;
2963
2963
  M(e), P({
2964
2964
  x: t - 400 / e / 2,
2965
2965
  y: n - 300 / e / 2
@@ -2977,32 +2977,32 @@ function er({ className: e }) {
2977
2977
  }
2978
2978
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
2979
2979
  }, []);
2980
- function ue(e, t = j, n = N) {
2981
- let r = Math.max(Yn, Math.min(Xn, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
2980
+ function le(e, t = k, n = N) {
2981
+ let r = Math.max(Xn, Math.min(Zn, t * e)), i = n.x + 400 / t / 2, a = n.y + 300 / t / 2;
2982
2982
  P({
2983
2983
  x: i - 400 / r / 2,
2984
2984
  y: a - 300 / r / 2
2985
2985
  }), M(r);
2986
2986
  }
2987
- function de(e) {
2988
- return R.current ? An(e.clientX, e.clientY, R.current) : null;
2987
+ function ue(e) {
2988
+ return ae.current ? jn(e.clientX, e.clientY, ae.current) : null;
2989
2989
  }
2990
- function fe(e, t) {
2990
+ function de(e, t) {
2991
2991
  let n = null;
2992
2992
  for (let r = 0; r < t.points.length; r++) {
2993
- let i = jn(e, t.points[r]);
2994
- i <= Kn && (!n || i < n.d) && (n = {
2993
+ let i = Mn(e, t.points[r]);
2994
+ i <= qn && (!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 z(e, t) {
3001
+ function B(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 } = Mn(e, i, a);
3005
- o <= qn && (!n || o < n.d) && (n = {
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 = {
3006
3006
  index: r,
3007
3007
  t: s,
3008
3008
  d: o
@@ -3010,7 +3010,7 @@ function er({ className: e }) {
3010
3010
  }
3011
3011
  return n;
3012
3012
  }
3013
- function pe(e, t, r, a) {
3013
+ function fe(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 er({ className: e }) {
3030
3030
  wallIndex: n.wallIndex + 1
3031
3031
  } : n : n)), t + 1;
3032
3032
  }
3033
- function me(e, r) {
3033
+ function pe(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,34 +3049,34 @@ function er({ className: e }) {
3049
3049
  } : t;
3050
3050
  }).filter((e) => e.wallIndex !== -1));
3051
3051
  }
3052
- function B(e) {
3052
+ function V(e) {
3053
3053
  if (e.button === 1) {
3054
3054
  e.preventDefault();
3055
- let t = R.current;
3055
+ let t = ae.current;
3056
3056
  if (t) {
3057
3057
  let n = t.getBoundingClientRect();
3058
- ae.current = {
3058
+ I.current = {
3059
3059
  startClient: {
3060
3060
  x: e.clientX,
3061
3061
  y: e.clientY
3062
3062
  },
3063
3063
  origPan: { ...N },
3064
- scaleX: 400 / j / n.width,
3065
- scaleY: 300 / j / n.height
3064
+ scaleX: 400 / k / n.width,
3065
+ scaleY: 300 / k / n.height
3066
3066
  };
3067
3067
  }
3068
3068
  return;
3069
3069
  }
3070
3070
  if (e.button !== 0) return;
3071
3071
  e.preventDefault();
3072
- let n = de(e);
3072
+ let n = ue(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 = Nn(n, [e]);
3077
+ let t = Pn(n, [e]);
3078
3078
  t && i((e) => [...e, {
3079
- id: Qn("door"),
3079
+ id: $n("door"),
3080
3080
  roomId: t.roomId,
3081
3081
  wallIndex: t.wallIndex,
3082
3082
  t: t.t,
@@ -3086,19 +3086,19 @@ function er({ className: e }) {
3086
3086
  return;
3087
3087
  }
3088
3088
  if (o === "rect") {
3089
- y(n), w(n);
3089
+ y(n), x(n);
3090
3090
  return;
3091
3091
  }
3092
3092
  if (o === "polygon") {
3093
- T.length >= 3 && jn(n, T[0]) <= 8 ? le(T) : E((e) => [...e, n]);
3093
+ T.length >= 3 && Mn(n, T[0]) <= 8 ? ce(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 = fe(n, e);
3099
+ let t = de(n, e);
3100
3100
  if (t) {
3101
- F.current = {
3101
+ te.current = {
3102
3102
  type: "vertex",
3103
3103
  roomId: e.id,
3104
3104
  index: t.index,
@@ -3109,13 +3109,13 @@ function er({ className: e }) {
3109
3109
  }
3110
3110
  }
3111
3111
  if (e) {
3112
- let t = z(n, e);
3112
+ let t = B(n, e);
3113
3113
  if (t) {
3114
- let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = kn({
3114
+ let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = An({
3115
3115
  x: r.x + (i.x - r.x) * t.t,
3116
3116
  y: r.y + (i.y - r.y) * t.t
3117
- }), o = pe(e.id, t.index, t.t, a);
3118
- F.current = {
3117
+ }), o = fe(e.id, t.index, t.t, a);
3118
+ te.current = {
3119
3119
  type: "vertex",
3120
3120
  roomId: e.id,
3121
3121
  index: o,
@@ -3125,9 +3125,9 @@ function er({ className: e }) {
3125
3125
  return;
3126
3126
  }
3127
3127
  }
3128
- let r = t.find((e) => Pn(n, e.points));
3128
+ let r = t.find((e) => Fn(n, e.points));
3129
3129
  if (r) {
3130
- m(r.id), F.current = {
3130
+ m(r.id), te.current = {
3131
3131
  type: "room",
3132
3132
  roomId: r.id,
3133
3133
  start: n,
@@ -3139,31 +3139,31 @@ function er({ className: e }) {
3139
3139
  }
3140
3140
  }
3141
3141
  }
3142
- function V(e) {
3142
+ function H(e) {
3143
3143
  if (o !== "select" || g) return;
3144
- let n = de(e);
3144
+ let n = ue(e);
3145
3145
  if (!n) return;
3146
3146
  let r = t.find((e) => e.id === l);
3147
3147
  if (!r) return;
3148
- let i = fe(n, r);
3149
- i && (e.preventDefault(), me(r.id, i.index));
3148
+ let i = de(n, r);
3149
+ i && (e.preventDefault(), pe(r.id, i.index));
3150
3150
  }
3151
- function H(e) {
3152
- if (ae.current) {
3153
- let { startClient: t, origPan: n, scaleX: r, scaleY: i } = ae.current;
3151
+ function U(e) {
3152
+ if (I.current) {
3153
+ let { startClient: t, origPan: n, scaleX: r, scaleY: i } = I.current;
3154
3154
  P({
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 = de(e);
3160
+ let r = ue(e);
3161
3161
  if (r) {
3162
- if (ie.current && g) {
3162
+ if (re.current && g) {
3163
3163
  let e = t.find((e) => e.id === g);
3164
3164
  if (e) {
3165
- let t = Nn(r, [e]);
3166
- t && i((e) => e.map((e) => e.id === ie.current ? {
3165
+ let t = Pn(r, [e]);
3166
+ t && i((e) => e.map((e) => e.id === re.current ? {
3167
3167
  ...e,
3168
3168
  wallIndex: t.wallIndex,
3169
3169
  t: t.t
@@ -3172,17 +3172,17 @@ function er({ className: e }) {
3172
3172
  return;
3173
3173
  }
3174
3174
  if (o === "rect" && v) {
3175
- w(r);
3175
+ x(r);
3176
3176
  return;
3177
3177
  }
3178
3178
  if (o === "polygon") {
3179
- O(r);
3179
+ D(r);
3180
3180
  return;
3181
3181
  }
3182
- if (o === "select" && !g && F.current) {
3183
- let e = F.current;
3182
+ if (o === "select" && !g && te.current) {
3183
+ let e = te.current;
3184
3184
  if (e.type === "vertex") {
3185
- let t = r.x - e.start.x, i = r.y - e.start.y, a = kn({
3185
+ let t = r.x - e.start.x, i = r.y - e.start.y, a = An({
3186
3186
  x: e.origPt.x + t,
3187
3187
  y: e.origPt.y + i
3188
3188
  });
@@ -3207,47 +3207,47 @@ function er({ className: e }) {
3207
3207
  }
3208
3208
  }
3209
3209
  }
3210
- function he(e) {
3211
- if (ae.current) {
3212
- ae.current = null;
3210
+ function me(e) {
3211
+ if (I.current) {
3212
+ I.current = null;
3213
3213
  return;
3214
3214
  }
3215
- let t = de(e);
3215
+ let t = ue(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: Qn("room"),
3220
+ id: $n("room"),
3221
3221
  name: `Room ${t.length + 1}`,
3222
- points: In(e, r, i, a)
3223
- }]), y(null), w(null);
3222
+ points: Ln(e, r, i, a)
3223
+ }]), y(null), x(null);
3224
3224
  }
3225
- ie.current = null, F.current = null;
3225
+ re.current = null, te.current = null;
3226
3226
  }
3227
3227
  }
3228
- function ge(e) {
3228
+ function he(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 _e(e, t) {
3234
+ function ge(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 ve() {
3241
+ function _e() {
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 ye(e) {
3244
+ function ve(e) {
3245
3245
  i((t) => t.filter((t) => t.id !== e));
3246
3246
  }
3247
- function be(e) {
3248
- c(e), _(null), E([]), O(null), y(null), w(null);
3247
+ function ye(e) {
3248
+ c(e), _(null), E([]), D(null), y(null), x(null);
3249
3249
  }
3250
- function xe(e) {
3250
+ function be(e) {
3251
3251
  let t = e.target.files?.[0];
3252
3252
  if (!t) return;
3253
3253
  e.target.value = "";
@@ -3255,60 +3255,60 @@ function er({ className: e }) {
3255
3255
  r.onload = (e) => {
3256
3256
  let t = e.target?.result;
3257
3257
  if (typeof t != "string") return;
3258
- let r = Wn(t);
3258
+ let r = Gn(t);
3259
3259
  r.length !== 0 && (n(r.map((e) => ({
3260
3260
  ...e,
3261
- id: Qn("room")
3261
+ id: $n("room")
3262
3262
  }))), i([]), m(null), _(null), M(1), P({
3263
3263
  x: 0,
3264
3264
  y: 0
3265
3265
  }));
3266
3266
  }, r.readAsText(t);
3267
3267
  }
3268
- let Se = o === "rect" && v && b ? {
3268
+ let xe = 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, U = l ? t.find((e) => e.id === l) ?? null : null, Ce = g ? t.find((e) => e.id === g) ?? null : null, W = g ? r.filter((e) => e.roomId === g) : [], we = [
3273
+ } : null, W = l ? t.find((e) => e.id === l) ?? null : null, Se = g ? t.find((e) => e.id === g) ?? null : null, Ce = g ? r.filter((e) => e.roomId === g) : [], G = [
3274
3274
  {
3275
3275
  t: "select",
3276
- icon: D,
3276
+ icon: O,
3277
3277
  label: "Select & edit"
3278
3278
  },
3279
3279
  {
3280
3280
  t: "rect",
3281
- icon: te,
3281
+ icon: ne,
3282
3282
  label: "Rectangle room"
3283
3283
  },
3284
3284
  {
3285
3285
  t: "polygon",
3286
- icon: C,
3286
+ icon: w,
3287
3287
  label: "Polygon room"
3288
3288
  }
3289
- ], Te = 400 / j, Ee = 300 / j, G = g ? Z.roomDrawerCanvasDoor : o === "select" ? Z.roomDrawerCanvasSelect : void 0;
3290
- return /* @__PURE__ */ L("div", {
3289
+ ], we = 400 / k, Te = 300 / k, Ee = g ? Z.roomDrawerCanvasDoor : o === "select" ? Z.roomDrawerCanvasSelect : void 0;
3290
+ return /* @__PURE__ */ z("div", {
3291
3291
  className: f(Z.roomDrawer, e),
3292
3292
  children: [
3293
- /* @__PURE__ */ L("div", {
3293
+ /* @__PURE__ */ z("div", {
3294
3294
  className: Z.roomDrawerToolbar,
3295
3295
  children: [
3296
- we.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ I("button", {
3296
+ G.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ R("button", {
3297
3297
  title: n,
3298
3298
  className: f(Z.roomDrawerToolbarBtn, e === o && !g && Z.roomDrawerToolbarBtnActive),
3299
- onClick: () => be(e),
3300
- children: /* @__PURE__ */ I(p, { icon: t })
3299
+ onClick: () => ye(e),
3300
+ children: /* @__PURE__ */ R(p, { icon: t })
3301
3301
  }, e)),
3302
- /* @__PURE__ */ I("div", { className: Z.roomDrawerToolbarSep }),
3303
- /* @__PURE__ */ I("button", {
3302
+ /* @__PURE__ */ R("div", { className: Z.roomDrawerToolbarSep }),
3303
+ /* @__PURE__ */ R("button", {
3304
3304
  title: "Zoom in (+)",
3305
3305
  className: Z.roomDrawerToolbarBtn,
3306
- onClick: () => ue(Jn),
3307
- disabled: j >= Xn,
3308
- children: /* @__PURE__ */ I(p, { icon: A })
3306
+ onClick: () => le(Yn),
3307
+ disabled: k >= Zn,
3308
+ children: /* @__PURE__ */ R(p, { icon: j })
3309
3309
  }),
3310
- /* @__PURE__ */ L("button", {
3311
- title: `Reset zoom (0) — ${Math.round(j * 100)}%`,
3310
+ /* @__PURE__ */ z("button", {
3311
+ title: `Reset zoom (0) — ${Math.round(k * 100)}%`,
3312
3312
  className: Z.roomDrawerToolbarZoomLabel,
3313
3313
  onClick: () => {
3314
3314
  M(1), P({
@@ -3316,77 +3316,77 @@ function er({ className: e }) {
3316
3316
  y: 0
3317
3317
  });
3318
3318
  },
3319
- children: [Math.round(j * 100), "%"]
3319
+ children: [Math.round(k * 100), "%"]
3320
3320
  }),
3321
- /* @__PURE__ */ I("button", {
3321
+ /* @__PURE__ */ R("button", {
3322
3322
  title: "Zoom out (−)",
3323
3323
  className: Z.roomDrawerToolbarBtn,
3324
- onClick: () => ue(1 / Jn),
3325
- disabled: j <= Yn,
3326
- children: /* @__PURE__ */ I(p, { icon: k })
3324
+ onClick: () => le(1 / Yn),
3325
+ disabled: k <= Xn,
3326
+ children: /* @__PURE__ */ R(p, { icon: A })
3327
3327
  }),
3328
- /* @__PURE__ */ I("div", { className: Z.roomDrawerToolbarSep }),
3329
- /* @__PURE__ */ I("button", {
3328
+ /* @__PURE__ */ R("div", { className: Z.roomDrawerToolbarSep }),
3329
+ /* @__PURE__ */ R("button", {
3330
3330
  title: "Upload SVG",
3331
3331
  className: Z.roomDrawerToolbarBtn,
3332
- onClick: () => se.current?.click(),
3333
- children: /* @__PURE__ */ I(p, { icon: re })
3332
+ onClick: () => oe.current?.click(),
3333
+ children: /* @__PURE__ */ R(p, { icon: ie })
3334
3334
  }),
3335
- /* @__PURE__ */ I("button", {
3335
+ /* @__PURE__ */ R("button", {
3336
3336
  title: "Download SVG",
3337
3337
  className: Z.roomDrawerToolbarBtn,
3338
- onClick: () => Gn(t, r),
3338
+ onClick: () => Kn(t, r),
3339
3339
  disabled: t.length === 0,
3340
- children: /* @__PURE__ */ I(p, { icon: S })
3340
+ children: /* @__PURE__ */ R(p, { icon: C })
3341
3341
  }),
3342
- /* @__PURE__ */ I("input", {
3343
- ref: se,
3342
+ /* @__PURE__ */ R("input", {
3343
+ ref: oe,
3344
3344
  type: "file",
3345
3345
  accept: ".svg,image/svg+xml",
3346
3346
  style: { display: "none" },
3347
- onChange: xe
3347
+ onChange: be
3348
3348
  })
3349
3349
  ]
3350
3350
  }),
3351
- /* @__PURE__ */ L("svg", {
3352
- ref: R,
3353
- className: f(Z.roomDrawerCanvas, G),
3354
- viewBox: `${N.x} ${N.y} ${Te} ${Ee}`,
3355
- onMouseDown: B,
3356
- onMouseMove: H,
3357
- onMouseUp: he,
3358
- onDoubleClick: V,
3351
+ /* @__PURE__ */ z("svg", {
3352
+ ref: ae,
3353
+ className: f(Z.roomDrawerCanvas, Ee),
3354
+ viewBox: `${N.x} ${N.y} ${we} ${Te}`,
3355
+ onMouseDown: V,
3356
+ onMouseMove: U,
3357
+ onMouseUp: me,
3358
+ onDoubleClick: H,
3359
3359
  children: [
3360
- /* @__PURE__ */ I("defs", { children: /* @__PURE__ */ I("pattern", {
3360
+ /* @__PURE__ */ R("defs", { children: /* @__PURE__ */ R("pattern", {
3361
3361
  id: "rd-grid",
3362
3362
  width: 5,
3363
3363
  height: 5,
3364
3364
  patternUnits: "userSpaceOnUse",
3365
- children: /* @__PURE__ */ I("path", {
3365
+ children: /* @__PURE__ */ R("path", {
3366
3366
  d: "M 5 0 L 0 0 0 5",
3367
3367
  fill: "none",
3368
3368
  className: Z.gridLine
3369
3369
  })
3370
3370
  }) }),
3371
- /* @__PURE__ */ I("rect", {
3371
+ /* @__PURE__ */ R("rect", {
3372
3372
  x: N.x,
3373
3373
  y: N.y,
3374
- width: Te,
3375
- height: Ee,
3374
+ width: we,
3375
+ height: Te,
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 = 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", {
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__ */ z("g", { children: [
3381
+ /* @__PURE__ */ R("path", {
3382
3382
  d: n,
3383
3383
  className: f(Z.roomFill, (o || s) && Z.roomFillSelected)
3384
3384
  }),
3385
- i.map((e, t) => /* @__PURE__ */ I("path", {
3385
+ i.map((e, t) => /* @__PURE__ */ R("path", {
3386
3386
  d: e,
3387
3387
  className: f(Z.roomStroke, (o || s) && Z.roomStrokeSelected)
3388
3388
  }, t)),
3389
- e.name && /* @__PURE__ */ I("text", {
3389
+ e.name && /* @__PURE__ */ R("text", {
3390
3390
  x: a.x,
3391
3391
  y: a.y,
3392
3392
  className: Z.roomText,
@@ -3399,8 +3399,8 @@ function er({ 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 = Ln(r, i, e.t, e.width);
3403
- return a ? /* @__PURE__ */ I("line", {
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__ */ R("line", {
3404
3404
  x1: a.p1.x,
3405
3405
  y1: a.p1.y,
3406
3406
  x2: a.p2.x,
@@ -3408,50 +3408,50 @@ function er({ className: e }) {
3408
3408
  className: Z.doorGap
3409
3409
  }, e.id) : null;
3410
3410
  }),
3411
- g && W.map((e) => {
3411
+ g && Ce.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 = Ln(r, i, e.t, e.width);
3414
+ let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Rn(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__ */ I("circle", {
3420
+ return /* @__PURE__ */ R("circle", {
3421
3421
  cx: o.x,
3422
3422
  cy: o.y,
3423
3423
  r: 2.5,
3424
3424
  className: Z.doorMarker,
3425
3425
  onMouseDown: (t) => {
3426
- t.button === 0 && (t.preventDefault(), t.stopPropagation(), ie.current = e.id);
3426
+ t.button === 0 && (t.preventDefault(), t.stopPropagation(), re.current = e.id);
3427
3427
  }
3428
3428
  }, e.id);
3429
3429
  }),
3430
- o === "select" && !g && U && U.points.map((e, t) => /* @__PURE__ */ I("circle", {
3430
+ o === "select" && !g && W && W.points.map((e, t) => /* @__PURE__ */ R("circle", {
3431
3431
  cx: e.x,
3432
3432
  cy: e.y,
3433
3433
  r: 3.5,
3434
3434
  className: Z.vertexHandle
3435
3435
  }, t)),
3436
- Se && /* @__PURE__ */ I("rect", {
3437
- x: Se.x,
3438
- y: Se.y,
3439
- width: Se.w,
3440
- height: Se.h,
3436
+ xe && /* @__PURE__ */ R("rect", {
3437
+ x: xe.x,
3438
+ y: xe.y,
3439
+ width: xe.w,
3440
+ height: xe.h,
3441
3441
  className: Z.preview
3442
3442
  }),
3443
- o === "polygon" && T.length > 0 && /* @__PURE__ */ L(oe, { children: [
3444
- /* @__PURE__ */ I("polyline", {
3443
+ o === "polygon" && T.length > 0 && /* @__PURE__ */ z(L, { children: [
3444
+ /* @__PURE__ */ R("polyline", {
3445
3445
  points: [...T, ee ?? T[T.length - 1]].map((e) => `${e.x},${e.y}`).join(" "),
3446
3446
  className: Z.preview
3447
3447
  }),
3448
- T.length >= 3 && /* @__PURE__ */ I("circle", {
3448
+ T.length >= 3 && /* @__PURE__ */ R("circle", {
3449
3449
  cx: T[0].x,
3450
3450
  cy: T[0].y,
3451
3451
  r: 8 / 2,
3452
3452
  className: Z.polyCloseTarget
3453
3453
  }),
3454
- T.map((e, t) => /* @__PURE__ */ I("circle", {
3454
+ T.map((e, t) => /* @__PURE__ */ R("circle", {
3455
3455
  cx: e.x,
3456
3456
  cy: e.y,
3457
3457
  r: 2,
@@ -3460,94 +3460,94 @@ function er({ className: e }) {
3460
3460
  ] })
3461
3461
  ]
3462
3462
  }),
3463
- U && !g && /* @__PURE__ */ L("div", {
3463
+ W && !g && /* @__PURE__ */ z("div", {
3464
3464
  className: Z.roomDrawerInfo,
3465
3465
  children: [
3466
- /* @__PURE__ */ I("span", {
3466
+ /* @__PURE__ */ R("span", {
3467
3467
  className: Z.roomDrawerInfoLabel,
3468
3468
  children: "Name"
3469
3469
  }),
3470
- /* @__PURE__ */ I("input", {
3470
+ /* @__PURE__ */ R("input", {
3471
3471
  className: Z.roomDrawerInfoInput,
3472
- value: U.name,
3473
- onChange: (e) => ge(e.target.value),
3472
+ value: W.name,
3473
+ onChange: (e) => he(e.target.value),
3474
3474
  placeholder: "Room name"
3475
3475
  }),
3476
- /* @__PURE__ */ L("button", {
3476
+ /* @__PURE__ */ z("button", {
3477
3477
  className: Z.roomDrawerInfoDoorsBtn,
3478
- onClick: () => _(U.id),
3478
+ onClick: () => _(W.id),
3479
3479
  title: "Edit doors",
3480
- children: [/* @__PURE__ */ I(p, { icon: x }), /* @__PURE__ */ I("span", { children: r.filter((e) => e.roomId === U.id).length })]
3480
+ children: [/* @__PURE__ */ R(p, { icon: S }), /* @__PURE__ */ R("span", { children: r.filter((e) => e.roomId === W.id).length })]
3481
3481
  }),
3482
- /* @__PURE__ */ I("button", {
3482
+ /* @__PURE__ */ R("button", {
3483
3483
  className: Z.roomDrawerInfoDelete,
3484
- onClick: ve,
3484
+ onClick: _e,
3485
3485
  title: "Delete room",
3486
- children: /* @__PURE__ */ I(p, { icon: ne })
3486
+ children: /* @__PURE__ */ R(p, { icon: F })
3487
3487
  })
3488
3488
  ]
3489
3489
  }),
3490
- g && Ce && /* @__PURE__ */ L("div", {
3490
+ g && Se && /* @__PURE__ */ z("div", {
3491
3491
  className: Z.roomDrawerDoorPanel,
3492
- children: [/* @__PURE__ */ L("div", {
3492
+ children: [/* @__PURE__ */ z("div", {
3493
3493
  className: Z.roomDrawerDoorPanelHeader,
3494
3494
  children: [
3495
- /* @__PURE__ */ I(p, {
3496
- icon: x,
3495
+ /* @__PURE__ */ R(p, {
3496
+ icon: S,
3497
3497
  className: Z.roomDrawerDoorPanelIcon
3498
3498
  }),
3499
- /* @__PURE__ */ I("span", {
3499
+ /* @__PURE__ */ R("span", {
3500
3500
  className: Z.roomDrawerDoorPanelTitle,
3501
- children: Ce.name ? `Doors · ${Ce.name}` : "Doors"
3501
+ children: Se.name ? `Doors · ${Se.name}` : "Doors"
3502
3502
  }),
3503
- /* @__PURE__ */ L("button", {
3503
+ /* @__PURE__ */ z("button", {
3504
3504
  className: Z.roomDrawerDoorPanelDone,
3505
3505
  onClick: () => _(null),
3506
3506
  title: "Done (Esc)",
3507
- children: [/* @__PURE__ */ I(p, { icon: h }), "Done"]
3507
+ children: [/* @__PURE__ */ R(p, { icon: h }), "Done"]
3508
3508
  })
3509
3509
  ]
3510
- }), /* @__PURE__ */ L("div", {
3510
+ }), /* @__PURE__ */ z("div", {
3511
3511
  className: Z.roomDrawerDoorPanelList,
3512
- children: [W.length === 0 && /* @__PURE__ */ I("span", {
3512
+ children: [Ce.length === 0 && /* @__PURE__ */ R("span", {
3513
3513
  className: Z.roomDrawerDoorPanelEmpty,
3514
3514
  children: "Click on a wall to add a door"
3515
- }), W.map((e, t) => /* @__PURE__ */ L("div", {
3515
+ }), Ce.map((e, t) => /* @__PURE__ */ z("div", {
3516
3516
  className: Z.roomDrawerDoorPanelItem,
3517
3517
  children: [
3518
- /* @__PURE__ */ L("span", {
3518
+ /* @__PURE__ */ z("span", {
3519
3519
  className: Z.roomDrawerDoorPanelLabel,
3520
3520
  children: ["Door ", t + 1]
3521
3521
  }),
3522
- /* @__PURE__ */ I("span", {
3522
+ /* @__PURE__ */ R("span", {
3523
3523
  className: Z.roomDrawerDoorPanelWidthLabel,
3524
3524
  children: "Width"
3525
3525
  }),
3526
- /* @__PURE__ */ I("input", {
3526
+ /* @__PURE__ */ R("input", {
3527
3527
  className: Z.roomDrawerInfoInput,
3528
3528
  type: "number",
3529
3529
  min: 1,
3530
3530
  value: e.width,
3531
- onChange: (t) => _e(e.id, t.target.value)
3531
+ onChange: (t) => ge(e.id, t.target.value)
3532
3532
  }),
3533
- /* @__PURE__ */ I("button", {
3533
+ /* @__PURE__ */ R("button", {
3534
3534
  className: Z.roomDrawerInfoDelete,
3535
- onClick: () => ye(e.id),
3535
+ onClick: () => ve(e.id),
3536
3536
  title: "Delete door",
3537
- children: /* @__PURE__ */ I(p, { icon: ne })
3537
+ children: /* @__PURE__ */ R(p, { icon: F })
3538
3538
  })
3539
3539
  ]
3540
3540
  }, e.id))]
3541
3541
  })]
3542
3542
  }),
3543
- /* @__PURE__ */ I("div", {
3543
+ /* @__PURE__ */ R("div", {
3544
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" : `${$n[o]} · Scroll to zoom · Middle-drag to pan · 0 to reset`
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`
3546
3546
  })
3547
3547
  ]
3548
3548
  });
3549
3549
  }
3550
- var tr = {
3550
+ var nr = {
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 tr = {
3565
3565
  };
3566
3566
  //#endregion
3567
3567
  //#region package/common/roomViewer/roomViewer.tsx
3568
- function nr({ data: e = [] }) {
3568
+ function rr({ 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 nr({ data: e = [] }) {
3585
3585
  if (n) {
3586
3586
  let [e] = t.querySelectorAll(`[id="room${n}"]`);
3587
3587
  if (e) {
3588
- e.classList.remove(tr.roomViewerSelected, tr.roomViewerTint);
3588
+ e.classList.remove(nr.roomViewerSelected, nr.roomViewerTint);
3589
3589
  let [t] = e.querySelectorAll("[id=\"background\"]");
3590
- t && t.classList.remove(tr.roomViewerTint);
3590
+ t && t.classList.remove(nr.roomViewerTint);
3591
3591
  }
3592
3592
  }
3593
3593
  if (a) {
3594
- a.classList.add(tr.roomViewerSelected);
3594
+ a.classList.add(nr.roomViewerSelected);
3595
3595
  let [e] = a.querySelectorAll("[id=\"background\"]");
3596
- (e ?? a).classList.add(tr.roomViewerTint);
3596
+ (e ?? a).classList.add(nr.roomViewerTint);
3597
3597
  }
3598
3598
  return r;
3599
3599
  });
@@ -3605,27 +3605,27 @@ function nr({ data: e = [] }) {
3605
3605
  });
3606
3606
  }
3607
3607
  let m = e[r]?.data ?? null;
3608
- return /* @__PURE__ */ L("div", {
3609
- className: tr.roomViewer,
3608
+ return /* @__PURE__ */ z("div", {
3609
+ className: nr.roomViewer,
3610
3610
  ref: t,
3611
3611
  children: [
3612
- /* @__PURE__ */ I("h3", {
3613
- className: tr.roomViewerHeader,
3612
+ /* @__PURE__ */ R("h3", {
3613
+ className: nr.roomViewerHeader,
3614
3614
  children: e[r]?.label ?? ""
3615
3615
  }),
3616
- /* @__PURE__ */ I("div", {
3617
- className: f(tr.roomViewerContainer, o && tr.roomViewerContainerLoading),
3616
+ /* @__PURE__ */ R("div", {
3617
+ className: f(nr.roomViewerContainer, o && nr.roomViewerContainerLoading),
3618
3618
  children: m
3619
3619
  }, r),
3620
- e.length > 1 && /* @__PURE__ */ L("div", {
3621
- className: tr.roomViewerActions,
3620
+ e.length > 1 && /* @__PURE__ */ z("div", {
3621
+ className: nr.roomViewerActions,
3622
3622
  children: [
3623
- /* @__PURE__ */ I(p, {
3623
+ /* @__PURE__ */ R(p, {
3624
3624
  icon: _,
3625
3625
  onClick: () => l(-1)
3626
3626
  }),
3627
- /* @__PURE__ */ I(p, { icon: O }),
3628
- /* @__PURE__ */ I(p, {
3627
+ /* @__PURE__ */ R(p, { icon: k }),
3628
+ /* @__PURE__ */ R(p, {
3629
3629
  icon: v,
3630
3630
  onClick: () => l(1)
3631
3631
  })
@@ -3634,21 +3634,21 @@ function nr({ data: e = [] }) {
3634
3634
  ]
3635
3635
  });
3636
3636
  }
3637
- var rr = { scrollbarProvider: "scrollbarProvider_IMBFu" };
3637
+ var ir = { scrollbarProvider: "scrollbarProvider_IMBFu" };
3638
3638
  //#endregion
3639
3639
  //#region package/common/scrollbarProvider/scrollbarProvider.tsx
3640
- function ir({ className: e = void 0, children: t = void 0 }) {
3641
- return /* @__PURE__ */ I("div", {
3642
- className: f(rr.scrollbarProvider, e),
3640
+ function ar({ className: e = void 0, children: t = void 0 }) {
3641
+ return /* @__PURE__ */ R("div", {
3642
+ className: f(ir.scrollbarProvider, e),
3643
3643
  children: t
3644
3644
  });
3645
3645
  }
3646
3646
  //#endregion
3647
3647
  //#region package/common/scrollbarProvider/index.ts
3648
- var ar = ir, or = { resultCount: "resultCount_Sn48Q" };
3648
+ var or = ar, sr = { resultCount: "resultCount_Sn48Q" };
3649
3649
  //#endregion
3650
3650
  //#region package/common/searchInput/searchInput.tsx
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 }) {
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 }) {
3652
3652
  let p = u(null);
3653
3653
  a(() => () => {
3654
3654
  p.current !== null && clearTimeout(p.current);
@@ -3660,18 +3660,18 @@ function sr({ 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__ */ L("div", {
3663
+ return /* @__PURE__ */ z("div", {
3664
3664
  ...f,
3665
3665
  className: l,
3666
3666
  style: d == null ? void 0 : { width: d },
3667
- children: [/* @__PURE__ */ I(rt, {
3667
+ children: [/* @__PURE__ */ R(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__ */ L("p", {
3674
- className: or.resultCount,
3673
+ }), h && /* @__PURE__ */ z("p", {
3674
+ className: sr.resultCount,
3675
3675
  children: [
3676
3676
  s,
3677
3677
  " ",
@@ -3680,7 +3680,7 @@ function sr({ value: e, onChange: t, onDebounce: n, placeholder: r, label: i, de
3680
3680
  })]
3681
3681
  });
3682
3682
  }
3683
- var cr = {
3683
+ var lr = {
3684
3684
  stepper: "stepper_kiS2A",
3685
3685
  "stepper-clickable": "stepper-clickable_Nm6fP",
3686
3686
  stepperClickable: "stepper-clickable_Nm6fP",
@@ -3710,15 +3710,15 @@ var cr = {
3710
3710
  };
3711
3711
  //#endregion
3712
3712
  //#region package/common/stepper/stepper.tsx
3713
- function lr() {
3714
- return /* @__PURE__ */ I("svg", {
3713
+ function ur() {
3714
+ return /* @__PURE__ */ R("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__ */ I("path", {
3721
+ children: /* @__PURE__ */ R("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 lr() {
3726
3726
  })
3727
3727
  });
3728
3728
  }
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 }) {
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 }) {
3730
3730
  let p = r === "vertical";
3731
- return /* @__PURE__ */ I("div", {
3731
+ return /* @__PURE__ */ R("div", {
3732
3732
  ...d,
3733
- className: f(cr.stepper, { [cr.stepperVertical]: p }, l?.root, s),
3733
+ className: f(lr.stepper, { [lr.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(cr.stepperEntry, { [cr.stepperEntryActive]: d }, { [cr.stepperEntryDone]: c }, { [cr.stepperClickable]: m }, l?.entry), g = /* @__PURE__ */ L(oe, { children: [/* @__PURE__ */ I("div", {
3740
- className: f(cr.stepperEntryNumber, { [cr.stepperEntryNumberDone]: c }, l?.entryNumber),
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__ */ z(L, { children: [/* @__PURE__ */ R("div", {
3740
+ className: f(lr.stepperEntryNumber, { [lr.stepperEntryNumberDone]: c }, l?.entryNumber),
3741
3741
  style: u?.entryNumber,
3742
- children: c ? /* @__PURE__ */ I(lr, {}) : s + 1
3743
- }), !o && /* @__PURE__ */ I("div", {
3744
- className: f(cr.stepperEntryLabel, { [cr.stepperEntryLabelVertical]: p }, l?.entryLabel),
3742
+ children: c ? /* @__PURE__ */ R(ur, {}) : s + 1
3743
+ }), !o && /* @__PURE__ */ R("div", {
3744
+ className: f(lr.stepperEntryLabel, { [lr.stepperEntryLabelVertical]: p }, l?.entryLabel),
3745
3745
  style: u?.entryLabel,
3746
3746
  children: r.label
3747
3747
  })] });
3748
- return /* @__PURE__ */ L(e.Fragment, { children: [m ? /* @__PURE__ */ I(Ie, {
3748
+ return /* @__PURE__ */ z(e.Fragment, { children: [m ? /* @__PURE__ */ R(Le, {
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__ */ I("div", {
3754
+ }) : /* @__PURE__ */ R("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__ */ I("div", {
3760
- className: f(cr.stepperConnector, { [cr.stepperConnectorFilled]: c }, { [cr.stepperConnectorVertical]: p }, l?.connector),
3759
+ }), s < t.length - 1 && /* @__PURE__ */ R("div", {
3760
+ className: f(lr.stepperConnector, { [lr.stepperConnectorFilled]: c }, { [lr.stepperConnectorVertical]: p }, l?.connector),
3761
3761
  style: u?.connector
3762
3762
  })] }, s);
3763
3763
  })
@@ -3765,7 +3765,7 @@ function ur({ steps: t = [], currentStep: n = 0, alignment: r = "horizontal", on
3765
3765
  }
3766
3766
  //#endregion
3767
3767
  //#region package/services/tenorService.ts
3768
- var dr = "https://tenor.googleapis.com/v2", fr = class {
3768
+ var fr = "https://tenor.googleapis.com/v2", pr = class {
3769
3769
  constructor(e) {
3770
3770
  this.key = e;
3771
3771
  }
@@ -3774,14 +3774,14 @@ var dr = "https://tenor.googleapis.com/v2", fr = 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(`${dr}/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(`${fr}/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(`${dr}/search_suggestions?${t}`)).json();
3784
+ return (await fetch(`${fr}/search_suggestions?${t}`)).json();
3785
3785
  }
3786
3786
  registerShare(e, t) {
3787
3787
  let n = new URLSearchParams({
@@ -3789,9 +3789,9 @@ var dr = "https://tenor.googleapis.com/v2", fr = class {
3789
3789
  q: e,
3790
3790
  key: this.key
3791
3791
  });
3792
- fetch(`${dr}/registershare?${n}`).catch(() => null);
3792
+ fetch(`${fr}/registershare?${n}`).catch(() => null);
3793
3793
  }
3794
- }, pr = {
3794
+ }, mr = {
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 dr = "https://tenor.googleapis.com/v2", fr = class {
3801
3801
  };
3802
3802
  //#endregion
3803
3803
  //#region package/common/tenorPicker/components/gifPreview/gifPreview.tsx
3804
- function mr({ className: e, previewItems: t = [], onSelect: n, onLoadAdditional: r }) {
3804
+ function hr({ 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__ */ I(oe, { children: t.length > 0 && /* @__PURE__ */ I("div", {
3810
- className: f(pr.gifPreview, e),
3809
+ return /* @__PURE__ */ R(L, { children: t.length > 0 && /* @__PURE__ */ R("div", {
3810
+ className: f(mr.gifPreview, e),
3811
3811
  onScroll: i,
3812
- children: t.map((e, t) => /* @__PURE__ */ I(Ie, {
3813
- className: pr.gifPreviewImageContainer,
3812
+ children: t.map((e, t) => /* @__PURE__ */ R(Le, {
3813
+ className: mr.gifPreviewImageContainer,
3814
3814
  onClick: () => n?.(e),
3815
- children: /* @__PURE__ */ I("div", {
3816
- className: pr.gifPreviewImage,
3815
+ children: /* @__PURE__ */ R("div", {
3816
+ className: mr.gifPreviewImage,
3817
3817
  style: { backgroundImage: `url(${e.media_formats.tinygif.url})` }
3818
3818
  })
3819
3819
  }, `${e.id}_${t}`))
3820
3820
  }) });
3821
3821
  }
3822
- var hr = {
3822
+ var gr = {
3823
3823
  gifView: "gifView_Fa2zj",
3824
3824
  "gifView-loading": "gifView-loading_LfNJr",
3825
3825
  gifViewLoading: "gifView-loading_LfNJr",
@@ -3827,20 +3827,20 @@ var hr = {
3827
3827
  };
3828
3828
  //#endregion
3829
3829
  //#region package/common/tenorPicker/components/gifView/gifView.tsx
3830
- function gr({ className: e, src: t = "" }) {
3830
+ function _r({ className: e, src: t = "" }) {
3831
3831
  let [n, r] = d(!0);
3832
3832
  return a(() => {
3833
3833
  r(!0);
3834
- }, [t]), /* @__PURE__ */ L("div", {
3835
- className: f(hr.gifView, e),
3836
- children: [/* @__PURE__ */ I("img", {
3837
- className: hr.tenorPickerSelected,
3834
+ }, [t]), /* @__PURE__ */ z("div", {
3835
+ className: f(gr.gifView, e),
3836
+ children: [/* @__PURE__ */ R("img", {
3837
+ className: gr.tenorPickerSelected,
3838
3838
  src: t,
3839
3839
  onLoad: () => r(!1)
3840
- }), n && /* @__PURE__ */ I("div", { className: hr.gifViewLoading })]
3840
+ }), n && /* @__PURE__ */ R("div", { className: gr.gifViewLoading })]
3841
3841
  });
3842
3842
  }
3843
- var _r = {
3843
+ var vr = {
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 _r = {
3852
3852
  };
3853
3853
  //#endregion
3854
3854
  //#region package/common/tenorPicker/tenorPicker.tsx
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);
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);
3857
3857
  async function y(e) {
3858
3858
  if (s(e), !e.trim()) {
3859
3859
  u([]), m([]), g(null);
@@ -3877,54 +3877,54 @@ function vr({ 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__ */ I(Xe, {
3880
+ return /* @__PURE__ */ R(Ze, {
3881
3881
  inline: !0,
3882
- className: _r.tenorPickerSuggestionsContainer,
3883
- children: p.map((e) => /* @__PURE__ */ I(Ye, {
3884
- className: _r.tenorPickerSuggestionsItem,
3882
+ className: vr.tenorPickerSuggestionsContainer,
3883
+ children: p.map((e) => /* @__PURE__ */ R(Xe, {
3884
+ className: vr.tenorPickerSuggestionsItem,
3885
3885
  text: e,
3886
3886
  onClick: () => y(e)
3887
3887
  }, e))
3888
3888
  });
3889
3889
  }
3890
3890
  function C() {
3891
- return /* @__PURE__ */ I(mr, {
3891
+ return /* @__PURE__ */ R(hr, {
3892
3892
  previewItems: l,
3893
3893
  onSelect: x,
3894
3894
  onLoadAdditional: b
3895
3895
  });
3896
3896
  }
3897
3897
  function w() {
3898
- return /* @__PURE__ */ I(sr, {
3898
+ return /* @__PURE__ */ R(cr, {
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__ */ L("div", {
3906
- className: f(_r.tenorPicker, e),
3905
+ return n ? /* @__PURE__ */ z("div", {
3906
+ className: f(vr.tenorPicker, e),
3907
3907
  children: [
3908
- /* @__PURE__ */ L("div", {
3908
+ /* @__PURE__ */ z("div", {
3909
3909
  className: Ce.actionButtons,
3910
- children: [/* @__PURE__ */ I(K, {
3910
+ children: [/* @__PURE__ */ R(K, {
3911
3911
  onClick: () => v(!0),
3912
3912
  children: "Pick gif"
3913
- }), i && /* @__PURE__ */ I(K, {
3914
- styleType: G.Delete,
3913
+ }), i && /* @__PURE__ */ R(K, {
3914
+ styleType: De.Delete,
3915
3915
  onClick: () => x(null),
3916
3916
  children: "Remove gif"
3917
3917
  })]
3918
3918
  }),
3919
- i && /* @__PURE__ */ I(gr, {
3920
- className: _r.tenorPickerSelected,
3919
+ i && /* @__PURE__ */ R(_r, {
3920
+ className: vr.tenorPickerSelected,
3921
3921
  src: i
3922
3922
  }),
3923
- /* @__PURE__ */ I(gt, {
3923
+ /* @__PURE__ */ R(_t, {
3924
3924
  isOpen: _,
3925
3925
  onClose: () => v(!1),
3926
- children: /* @__PURE__ */ L("div", {
3927
- className: _r.tenorPickerModalContent,
3926
+ children: /* @__PURE__ */ z("div", {
3927
+ className: vr.tenorPickerModalContent,
3928
3928
  children: [
3929
3929
  w(),
3930
3930
  S(),
@@ -3933,23 +3933,23 @@ function vr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3933
3933
  })
3934
3934
  })
3935
3935
  ]
3936
- }) : /* @__PURE__ */ L("div", {
3937
- className: f(_r.tenorPicker, e),
3936
+ }) : /* @__PURE__ */ z("div", {
3937
+ className: f(vr.tenorPicker, e),
3938
3938
  children: [
3939
- /* @__PURE__ */ I(et, {
3940
- align: Qe.Left,
3939
+ /* @__PURE__ */ R(tt, {
3940
+ align: $e.Left,
3941
3941
  isOpen: l.length > 0 && _,
3942
3942
  onOpenChange: v,
3943
- content: /* @__PURE__ */ L(oe, { children: [S(), C()] }),
3943
+ content: /* @__PURE__ */ z(L, { children: [S(), C()] }),
3944
3944
  children: w()
3945
3945
  }),
3946
- i && /* @__PURE__ */ I(K, {
3947
- styleType: G.Delete,
3946
+ i && /* @__PURE__ */ R(K, {
3947
+ styleType: De.Delete,
3948
3948
  onClick: () => x(null),
3949
3949
  children: "Remove gif"
3950
3950
  }),
3951
- i && /* @__PURE__ */ I(gr, {
3952
- className: _r.tenorPickerSelected,
3951
+ i && /* @__PURE__ */ R(_r, {
3952
+ className: vr.tenorPickerSelected,
3953
3953
  src: i
3954
3954
  })
3955
3955
  ]
@@ -3957,15 +3957,15 @@ function vr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3957
3957
  }
3958
3958
  //#endregion
3959
3959
  //#region package/common/textarea/textarea.tsx
3960
- function yr(e) {
3961
- return /* @__PURE__ */ I(rt, {
3960
+ function br(e) {
3961
+ return /* @__PURE__ */ R(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 br = {
3968
+ var xr = {
3969
3969
  id: "default",
3970
3970
  variables: {
3971
3971
  "--grey": "#8A8A8A",
@@ -4025,14 +4025,14 @@ var br = {
4025
4025
  "--spacing-m": "8px",
4026
4026
  "--spacing-l": "16px"
4027
4027
  }
4028
- }, xr = { colorFade: "colorFade_eLv2g" }, Sr = class extends t {
4028
+ }, Sr = { colorFade: "colorFade_eLv2g" }, Cr = 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 ?? [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);
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);
4036
4036
  this.setState({
4037
4037
  resolvedVariables: o,
4038
4038
  colorFadeActive: !0
@@ -4066,15 +4066,15 @@ var br = {
4066
4066
  }
4067
4067
  }
4068
4068
  resolveChain(e) {
4069
- let t = (this.props.themes ?? [br]).find((t) => t.id === e);
4069
+ let t = (this.props.themes ?? [xr]).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__ */ I("div", {
4074
+ return /* @__PURE__ */ R("div", {
4075
4075
  ref: this.wrapperRef,
4076
4076
  id: "themeProvider",
4077
- className: n ? xr.colorFade : void 0,
4077
+ className: n ? Sr.colorFade : void 0,
4078
4078
  style: t,
4079
4079
  children: e
4080
4080
  });
@@ -4082,7 +4082,7 @@ var br = {
4082
4082
  };
4083
4083
  //#endregion
4084
4084
  //#region package/common/themeProvider/useTheme.ts
4085
- function Cr(e = "default") {
4085
+ function wr(e = "default") {
4086
4086
  let [t, n] = d(localStorage.getItem("theme") || e);
4087
4087
  return {
4088
4088
  currentThemeId: t,
@@ -4091,7 +4091,7 @@ function Cr(e = "default") {
4091
4091
  }
4092
4092
  };
4093
4093
  }
4094
- var wr = {
4094
+ var Tr = {
4095
4095
  container: "container_krdsW",
4096
4096
  "container-top-left": "container-top-left_zfDTO",
4097
4097
  containerTopLeft: "container-top-left_zfDTO",
@@ -4116,6 +4116,8 @@ var wr = {
4116
4116
  "toast-info": "toast-info_RlLli",
4117
4117
  toastInfo: "toast-info_RlLli",
4118
4118
  toastIcon: "toastIcon_xU1nA",
4119
+ "toast-success": "toast-success_I1g1B",
4120
+ toastSuccess: "toast-success_I1g1B",
4119
4121
  "toast-error": "toast-error_MloFO",
4120
4122
  toastError: "toast-error_MloFO",
4121
4123
  "toast-warn": "toast-warn_pP6HB",
@@ -4126,13 +4128,14 @@ var wr = {
4126
4128
  toastCloseButton: "toastCloseButton_n-YST",
4127
4129
  toastProgressBar: "toastProgressBar_6vBs6",
4128
4130
  toastShrink: "toastShrink_h89HS"
4129
- }, Tr = {
4130
- info: y,
4131
- error: b,
4132
- warn: F,
4131
+ }, Er = {
4132
+ info: b,
4133
+ success: y,
4134
+ error: x,
4135
+ warn: re,
4133
4136
  default: m
4134
4137
  };
4135
- function Er({ item: e, isBottom: t, onDismiss: n }) {
4138
+ function Dr({ item: e, isBottom: t, onDismiss: n }) {
4136
4139
  let { id: r, content: i, options: o, dismissing: s } = e, { duration: c, showRemainingTime: l, showCloseButton: u, type: d, classNames: m, styles: h } = o;
4137
4140
  return a(() => {
4138
4141
  if (c === 0) return;
@@ -4142,29 +4145,29 @@ function Er({ item: e, isBottom: t, onDismiss: n }) {
4142
4145
  r,
4143
4146
  c,
4144
4147
  n
4145
- ]), /* @__PURE__ */ L("div", {
4146
- className: f(wr.toast, t ? wr.toastBottom : null, wr[`toast-${d}`], s && wr.toastDismissing, m?.root),
4148
+ ]), /* @__PURE__ */ z("div", {
4149
+ className: f(Tr.toast, t ? Tr.toastBottom : null, Tr[`toast-${d}`], s && Tr.toastDismissing, m?.root),
4147
4150
  style: h?.root,
4148
4151
  children: [
4149
- /* @__PURE__ */ I(p, {
4150
- icon: Tr[d],
4151
- className: f(wr.toastIcon, m?.icon),
4152
+ /* @__PURE__ */ R(p, {
4153
+ icon: Er[d],
4154
+ className: f(Tr.toastIcon, m?.icon),
4152
4155
  style: h?.icon
4153
4156
  }),
4154
- /* @__PURE__ */ I("div", {
4155
- className: f(wr.toastContent, m?.content),
4157
+ /* @__PURE__ */ R("div", {
4158
+ className: f(Tr.toastContent, m?.content),
4156
4159
  style: h?.content,
4157
4160
  children: i
4158
4161
  }),
4159
- u && /* @__PURE__ */ I(Re, {
4160
- icon: ie,
4162
+ u && /* @__PURE__ */ R(ze, {
4163
+ icon: I,
4161
4164
  onClick: () => n(r),
4162
- className: f(wr.toastCloseButton, m?.closeButton),
4165
+ className: f(Tr.toastCloseButton, m?.closeButton),
4163
4166
  style: h?.closeButton,
4164
4167
  "aria-label": "Close"
4165
4168
  }),
4166
- l && c > 0 && /* @__PURE__ */ I("div", {
4167
- className: f(wr.toastProgressBar, m?.progressBar),
4169
+ l && c > 0 && /* @__PURE__ */ R("div", {
4170
+ className: f(Tr.toastProgressBar, m?.progressBar),
4168
4171
  style: {
4169
4172
  "--toast-duration": `${c}ms`,
4170
4173
  ...h?.progressBar
@@ -4175,40 +4178,40 @@ function Er({ item: e, isBottom: t, onDismiss: n }) {
4175
4178
  }
4176
4179
  //#endregion
4177
4180
  //#region package/common/toast/toastService.ts
4178
- var Dr = null;
4179
- function Or(e) {
4180
- Dr = e;
4181
+ var Or = null;
4182
+ function kr(e) {
4183
+ Or = e;
4181
4184
  }
4182
- function kr() {
4183
- Dr = null;
4185
+ function Ar() {
4186
+ Or = null;
4184
4187
  }
4185
- function Ar(e, t) {
4186
- if (!Dr) {
4188
+ function jr(e, t) {
4189
+ if (!Or) {
4187
4190
  console.error("[Toast] No ToastProvider found. Wrap your app with <ToastProvider>.");
4188
4191
  return;
4189
4192
  }
4190
- Dr(e, t);
4193
+ Or(e, t);
4191
4194
  }
4192
4195
  //#endregion
4193
4196
  //#region package/common/toast/toastProvider.tsx
4194
- var jr = {
4197
+ var Mr = {
4195
4198
  position: "top-right",
4196
4199
  duration: 4e3,
4197
4200
  showRemainingTime: !0,
4198
4201
  showCloseButton: !0,
4199
4202
  allowStacking: !0
4200
- }, Mr = 220;
4201
- function Nr(e) {
4202
- return wr[`container-${e}`];
4203
+ }, Nr = 220;
4204
+ function Pr(e) {
4205
+ return Tr[`container-${e}`];
4203
4206
  }
4204
- function Pr({ children: e, position: t = jr.position, duration: n = jr.duration, showRemainingTime: r = jr.showRemainingTime, showCloseButton: o = jr.showCloseButton, allowStacking: s = jr.allowStacking }) {
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 }) {
4205
4208
  let [c, l] = d([]), p = u(0), m = i((e) => {
4206
4209
  l((t) => t.map((t) => t.id === e ? {
4207
4210
  ...t,
4208
4211
  dismissing: !0
4209
4212
  } : t)), setTimeout(() => {
4210
4213
  l((t) => t.filter((t) => t.id !== e));
4211
- }, Mr);
4214
+ }, Nr);
4212
4215
  }, []), h = i((e, i) => {
4213
4216
  let a = {
4214
4217
  position: i?.position ?? t,
@@ -4228,7 +4231,7 @@ function Pr({ children: e, position: t = jr.position, duration: n = jr.duration,
4228
4231
  };
4229
4232
  l((e) => !s && e.length > 0 ? (setTimeout(() => {
4230
4233
  l([c]);
4231
- }, Mr), e.map((e) => ({
4234
+ }, Nr), e.map((e) => ({
4232
4235
  ...e,
4233
4236
  dismissing: !0
4234
4237
  }))) : [...e, c]);
@@ -4239,14 +4242,14 @@ function Pr({ children: e, position: t = jr.position, duration: n = jr.duration,
4239
4242
  o,
4240
4243
  s
4241
4244
  ]);
4242
- a(() => (Or(h), () => kr()), [h]);
4245
+ a(() => (kr(h), () => Ar()), [h]);
4243
4246
  let g = c.reduce((e, t) => {
4244
4247
  let n = t.options.position;
4245
4248
  return e[n] || (e[n] = []), e[n].push(t), e;
4246
4249
  }, {});
4247
- return /* @__PURE__ */ L(oe, { children: [e, /* @__PURE__ */ I(ze, { children: Object.entries(g).map(([e, t]) => /* @__PURE__ */ I("div", {
4248
- className: f(wr.container, Nr(e)),
4249
- children: t.map((t) => /* @__PURE__ */ I(Er, {
4250
+ return /* @__PURE__ */ z(L, { children: [e, /* @__PURE__ */ R(Be, { children: Object.entries(g).map(([e, t]) => /* @__PURE__ */ R("div", {
4251
+ className: f(Tr.container, Pr(e)),
4252
+ children: t.map((t) => /* @__PURE__ */ R(Dr, {
4250
4253
  item: t,
4251
4254
  isBottom: e.startsWith("bottom"),
4252
4255
  onDismiss: m
@@ -4288,7 +4291,7 @@ var Q = {
4288
4291
  };
4289
4292
  //#endregion
4290
4293
  //#region package/common/virtualList/virtualList.tsx
4291
- function Fr(e, t, n, r = 0) {
4294
+ function Ir(e, t, n, r = 0) {
4292
4295
  let i = Array(e + 1);
4293
4296
  i[0] = 0;
4294
4297
  for (let a = 0; a < e; a++) {
@@ -4300,7 +4303,7 @@ function Fr(e, t, n, r = 0) {
4300
4303
  totalHeight: i[e]
4301
4304
  };
4302
4305
  }
4303
- function Ir(e, t, n, r, i) {
4306
+ function Lr(e, t, n, r, i) {
4304
4307
  if (i === 0) return {
4305
4308
  startIndex: 0,
4306
4309
  endIndex: -1
@@ -4317,7 +4320,7 @@ function Ir(e, t, n, r, i) {
4317
4320
  endIndex: Math.min(i - 1, s + r - 1)
4318
4321
  };
4319
4322
  }
4320
- function Lr(e) {
4323
+ function Rr(e) {
4321
4324
  return e.length === 0 ? "1fr" : e.map((e) => {
4322
4325
  switch (e.width.type) {
4323
4326
  case "fixed": return `${e.width.px}px`;
@@ -4326,14 +4329,14 @@ function Lr(e) {
4326
4329
  }
4327
4330
  }).join(" ");
4328
4331
  }
4329
- function Rr({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i, onClick: o, onHeightChange: s, rowClassName: c, rowStyle: l, children: d }) {
4332
+ function zr({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i, onClick: o, onHeightChange: s, rowClassName: c, rowStyle: l, children: d }) {
4330
4333
  let p = u(null);
4331
4334
  return a(() => {
4332
4335
  let t = p.current;
4333
4336
  if (!t) return;
4334
4337
  let n = new ResizeObserver(() => s(e, t.offsetHeight));
4335
4338
  return n.observe(t), () => n.unobserve(t);
4336
- }, [e, s]), /* @__PURE__ */ I("div", {
4339
+ }, [e, s]), /* @__PURE__ */ R("div", {
4337
4340
  ref: p,
4338
4341
  className: f(Q.virtualListRow, r && Q.virtualListRowSelected, !i && Q.virtualListRowNoDivider, c),
4339
4342
  style: {
@@ -4353,108 +4356,108 @@ function Rr({ index: e, top: t, columnTemplate: n, isSelected: r, showDivider: i
4353
4356
  children: d
4354
4357
  });
4355
4358
  }
4356
- function zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: o = 40, overscan: l = 3, rowGap: m = 0, selectedKey: h, getItemKey: g, onRowClick: _, visibleColumnKeys: v, onVisibleColumnsChange: y, showColumnToggle: b, onLoadMore: x, loadMoreThreshold: S = 100, isLoading: C = !1, multiSelect: w = !1, selectedKeys: T, onSelectionChange: E, showDivider: D = !0, className: O, style: k, classNames: A, styles: j, ...M }) {
4357
- let [N, P] = d(0), [te, ne] = d(0), [F, re] = d(/* @__PURE__ */ new Map()), [ie, ae] = d(!1), [R, se] = d(!1), ce = u(!1), le = T !== void 0, [ue, de] = d(/* @__PURE__ */ new Set()), fe = le ? T : ue, z = v !== void 0, [pe, me] = d(() => new Set((n ?? []).filter((e) => !e.defaultHidden).map((e) => e.key))), B = z ? new Set(v) : pe, V = u(null), H = u(null), he = u(/* @__PURE__ */ new Map()), ge = u([]);
4359
+ function Br({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedRowHeight: o = 40, overscan: l = 3, rowGap: m = 0, selectedKey: h, getItemKey: g, onRowClick: _, visibleColumnKeys: v, onVisibleColumnsChange: y, showColumnToggle: b, onLoadMore: x, loadMoreThreshold: S = 100, isLoading: C = !1, multiSelect: w = !1, selectedKeys: T, onSelectionChange: E, showDivider: ee = !0, className: O, style: k, classNames: A, styles: j, ...M }) {
4360
+ let [N, P] = d(0), [te, ne] = d(0), [F, re] = d(/* @__PURE__ */ new Map()), [ie, I] = d(!1), [ae, oe] = d(!1), se = u(!1), ce = T !== void 0, [le, ue] = d(/* @__PURE__ */ new Set()), de = ce ? T : le, B = v !== void 0, [fe, pe] = d(() => new Set((n ?? []).filter((e) => !e.defaultHidden).map((e) => e.key))), V = B ? new Set(v) : fe, H = u(null), U = u(null), me = u(/* @__PURE__ */ new Map()), he = u([]);
4358
4361
  a(() => {
4359
- let e = V.current;
4362
+ let e = H.current;
4360
4363
  if (!e) return;
4361
4364
  let t = new ResizeObserver(() => ne(e.clientHeight));
4362
4365
  return t.observe(e), () => t.unobserve(e);
4363
4366
  }, []), a(() => {
4364
4367
  if (!ie) return;
4365
4368
  function e(e) {
4366
- H.current && !H.current.contains(e.target) && ae(!1);
4369
+ U.current && !U.current.contains(e.target) && I(!1);
4367
4370
  }
4368
4371
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
4369
4372
  }, [ie]);
4370
- let _e = i((e) => {
4373
+ let ge = i((e) => {
4371
4374
  let t = e.currentTarget;
4372
- P(t.scrollTop), x && !ce.current && t.scrollTop + t.clientHeight >= t.scrollHeight - S && (ce.current = !0, se(!0), x().finally(() => {
4373
- ce.current = !1, se(!1);
4375
+ P(t.scrollTop), x && !se.current && t.scrollTop + t.clientHeight >= t.scrollHeight - S && (se.current = !0, oe(!0), x().finally(() => {
4376
+ se.current = !1, oe(!1);
4374
4377
  }));
4375
- }, [x, S]), ve = i((e, t) => {
4378
+ }, [x, S]), _e = i((e, t) => {
4376
4379
  re((n) => {
4377
4380
  if (n.get(e) === t) return n;
4378
4381
  let r = new Map(n);
4379
4382
  return r.set(e, t), r;
4380
4383
  });
4381
- }, []), { offsets: ye, totalHeight: be } = c(() => Fr(e.length, F, o, m), [
4384
+ }, []), { offsets: ve, totalHeight: ye } = c(() => Ir(e.length, F, o, m), [
4382
4385
  e.length,
4383
4386
  F,
4384
4387
  o,
4385
4388
  m
4386
4389
  ]);
4387
4390
  s(() => {
4388
- let e = V.current, t = ge.current;
4389
- if (ge.current = ye, !e || e.scrollTop === 0 || t.length === 0) {
4390
- he.current = F;
4391
+ let e = H.current, t = he.current;
4392
+ if (he.current = ve, !e || e.scrollTop === 0 || t.length === 0) {
4393
+ me.current = F;
4391
4394
  return;
4392
4395
  }
4393
4396
  let n = 0;
4394
4397
  for (let [r, i] of F) {
4395
- let a = he.current.get(r) ?? o;
4398
+ let a = me.current.get(r) ?? o;
4396
4399
  i !== a && t[r + 1] !== void 0 && t[r + 1] <= e.scrollTop && (n += i - a);
4397
4400
  }
4398
- he.current = F, n !== 0 && (e.scrollTop += n);
4401
+ me.current = F, n !== 0 && (e.scrollTop += n);
4399
4402
  }, [
4400
- ye,
4403
+ ve,
4401
4404
  F,
4402
4405
  o
4403
4406
  ]);
4404
- let { startIndex: xe, endIndex: Se } = c(() => Ir(ye, N, te, l, e.length), [
4405
- ye,
4407
+ let { startIndex: be, endIndex: xe } = c(() => Lr(ve, N, te, l, e.length), [
4408
+ ve,
4406
4409
  N,
4407
4410
  te,
4408
4411
  l,
4409
4412
  e.length
4410
- ]), U = !!n?.length, Ce = U ? n.filter((e) => B.has(e.key)) : [], W = U ? `${w && U ? "40px " : ""}${Lr(Ce)}` : void 0, we = b !== !1 && U;
4411
- function Te(e) {
4412
- let t = new Set(B);
4413
+ ]), W = !!n?.length, Se = W ? n.filter((e) => V.has(e.key)) : [], Ce = W ? `${w && W ? "40px " : ""}${Rr(Se)}` : void 0, G = b !== !1 && W;
4414
+ function we(e) {
4415
+ let t = new Set(V);
4413
4416
  if (t.has(e)) {
4414
4417
  if (t.size <= 1) return;
4415
4418
  t.delete(e);
4416
4419
  } else t.add(e);
4417
4420
  let n = [...t];
4418
- z || me(t), y?.(n);
4421
+ B || pe(t), y?.(n);
4419
4422
  }
4420
- function G(e, t) {
4423
+ function Te(e, t) {
4421
4424
  return g ? g(e, t) : t;
4422
4425
  }
4423
4426
  function De(e) {
4424
- le || de(e), E?.(e);
4427
+ ce || ue(e), E?.(e);
4425
4428
  }
4426
4429
  function Oe(e) {
4427
- let t = new Set(fe);
4430
+ let t = new Set(de);
4428
4431
  t.has(e) ? t.delete(e) : t.add(e), De(t);
4429
4432
  }
4430
4433
  function ke() {
4431
- let t = e.map((e, t) => G(e, t));
4432
- De(t.every((e) => fe.has(e)) ? /* @__PURE__ */ new Set() : new Set(t));
4434
+ let t = e.map((e, t) => Te(e, t));
4435
+ De(t.every((e) => de.has(e)) ? /* @__PURE__ */ new Set() : new Set(t));
4433
4436
  }
4434
- let Ae = e.length > 0 && e.every((e, t) => fe.has(G(e, t))), je = !Ae && e.some((e, t) => fe.has(G(e, t))), Me = [];
4435
- for (let n = xe; n <= Se; n++) {
4436
- let r = e[n], i = G(r, n), a = h != null && i === h || fe.has(i);
4437
- Me.push(/* @__PURE__ */ I(Rr, {
4437
+ let Ae = e.length > 0 && e.every((e, t) => de.has(Te(e, t))), je = !Ae && e.some((e, t) => de.has(Te(e, t))), Me = [];
4438
+ for (let n = be; n <= xe; n++) {
4439
+ let r = e[n], i = Te(r, n), a = h != null && i === h || de.has(i);
4440
+ Me.push(/* @__PURE__ */ R(zr, {
4438
4441
  index: n,
4439
- top: ye[n],
4440
- columnTemplate: W,
4442
+ top: ve[n],
4443
+ columnTemplate: Ce,
4441
4444
  isSelected: a,
4442
- showDivider: D,
4445
+ showDivider: ee,
4443
4446
  onClick: () => _?.(r, n),
4444
- onHeightChange: ve,
4447
+ onHeightChange: _e,
4445
4448
  rowClassName: A?.row,
4446
4449
  rowStyle: j?.row,
4447
- children: U ? /* @__PURE__ */ L(oe, { children: [w && /* @__PURE__ */ I("div", {
4450
+ children: W ? /* @__PURE__ */ z(L, { children: [w && /* @__PURE__ */ R("div", {
4448
4451
  className: f(Q.virtualListSelectCell, A?.selectCell),
4449
4452
  style: j?.selectCell,
4450
4453
  role: "gridcell",
4451
4454
  onClick: (e) => e.stopPropagation(),
4452
- children: /* @__PURE__ */ I(qe, {
4453
- selected: fe.has(i),
4455
+ children: /* @__PURE__ */ R(Je, {
4456
+ selected: de.has(i),
4454
4457
  onToggle: () => Oe(i),
4455
4458
  "aria-label": "Select row"
4456
4459
  })
4457
- }), Ce.map((e) => /* @__PURE__ */ I("div", {
4460
+ }), Se.map((e) => /* @__PURE__ */ R("div", {
4458
4461
  className: f(Q.virtualListCell, A?.cell),
4459
4462
  style: j?.cell,
4460
4463
  role: "gridcell",
@@ -4462,64 +4465,64 @@ function zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4462
4465
  }, e.key))] }) : t?.(r, n)
4463
4466
  }, i));
4464
4467
  }
4465
- return /* @__PURE__ */ L("div", {
4468
+ return /* @__PURE__ */ z("div", {
4466
4469
  ...M,
4467
- ref: V,
4470
+ ref: H,
4468
4471
  className: f(Q.virtualList, O, A?.root),
4469
4472
  style: {
4470
4473
  height: r,
4471
4474
  ...k,
4472
4475
  ...j?.root
4473
4476
  },
4474
- onScroll: _e,
4475
- role: U ? "grid" : "list",
4477
+ onScroll: ge,
4478
+ role: W ? "grid" : "list",
4476
4479
  children: [
4477
- U && /* @__PURE__ */ L("div", {
4480
+ W && /* @__PURE__ */ z("div", {
4478
4481
  className: f(Q.virtualListHeader, A?.header),
4479
4482
  style: {
4480
- gridTemplateColumns: W,
4481
- ...we ? { paddingRight: 32 } : {},
4483
+ gridTemplateColumns: Ce,
4484
+ ...G ? { paddingRight: 32 } : {},
4482
4485
  ...j?.header
4483
4486
  },
4484
4487
  role: "row",
4485
4488
  children: [
4486
- w && /* @__PURE__ */ I("div", {
4489
+ w && /* @__PURE__ */ R("div", {
4487
4490
  className: f(Q.virtualListSelectCell, A?.selectCell),
4488
4491
  style: j?.selectCell,
4489
4492
  role: "columnheader",
4490
- children: /* @__PURE__ */ I(qe, {
4493
+ children: /* @__PURE__ */ R(Je, {
4491
4494
  selected: Ae || je,
4492
4495
  onToggle: ke,
4493
4496
  "aria-label": "Select all rows"
4494
4497
  })
4495
4498
  }),
4496
- Ce.map((e) => /* @__PURE__ */ I("div", {
4499
+ Se.map((e) => /* @__PURE__ */ R("div", {
4497
4500
  className: f(Q.virtualListHeaderCell, A?.headerCell),
4498
4501
  style: j?.headerCell,
4499
4502
  role: "columnheader",
4500
4503
  children: e.label
4501
4504
  }, e.key)),
4502
- we && /* @__PURE__ */ L("div", {
4503
- ref: H,
4505
+ G && /* @__PURE__ */ z("div", {
4506
+ ref: U,
4504
4507
  className: Q.virtualListToggleWrapper,
4505
- children: [/* @__PURE__ */ I("button", {
4508
+ children: [/* @__PURE__ */ R("button", {
4506
4509
  type: "button",
4507
4510
  className: f(Q.virtualListHeaderToggle, A?.headerToggle),
4508
4511
  style: j?.headerToggle,
4509
- onClick: () => ae((e) => !e),
4512
+ onClick: () => I((e) => !e),
4510
4513
  "aria-label": "Toggle column visibility",
4511
- children: /* @__PURE__ */ I(p, {
4512
- icon: ee,
4514
+ children: /* @__PURE__ */ R(p, {
4515
+ icon: D,
4513
4516
  style: j?.headerToggle
4514
4517
  })
4515
- }), ie && /* @__PURE__ */ I("div", {
4518
+ }), ie && /* @__PURE__ */ R("div", {
4516
4519
  className: f(Q.virtualListTogglePopover, A?.togglePopover),
4517
4520
  style: j?.togglePopover,
4518
- children: n.map((e) => /* @__PURE__ */ I(qe, {
4521
+ children: n.map((e) => /* @__PURE__ */ R(Je, {
4519
4522
  className: f(Q.virtualListToggleItem, A?.toggleItem),
4520
4523
  style: j?.toggleItem,
4521
- selected: B.has(e.key),
4522
- onToggle: () => Te(e.key),
4524
+ selected: V.has(e.key),
4525
+ onToggle: () => we(e.key),
4523
4526
  cursorDefault: !1,
4524
4527
  children: e.label
4525
4528
  }, e.key))
@@ -4527,26 +4530,26 @@ function zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4527
4530
  })
4528
4531
  ]
4529
4532
  }),
4530
- C ? /* @__PURE__ */ I("div", {
4533
+ C ? /* @__PURE__ */ R("div", {
4531
4534
  className: Q.virtualListLoadingFull,
4532
- children: /* @__PURE__ */ I(Ee, { className: Q.virtualListSpinner })
4533
- }) : /* @__PURE__ */ I("div", {
4535
+ children: /* @__PURE__ */ R(Ee, { className: Q.virtualListSpinner })
4536
+ }) : /* @__PURE__ */ R("div", {
4534
4537
  className: f(Q.virtualListBody, A?.body),
4535
4538
  style: {
4536
- height: be,
4539
+ height: ye,
4537
4540
  ...j?.body
4538
4541
  },
4539
4542
  children: Me
4540
4543
  }),
4541
- R && /* @__PURE__ */ I("div", {
4544
+ ae && /* @__PURE__ */ R("div", {
4542
4545
  className: f(Q.virtualListLoadingIndicator, A?.loadingIndicator),
4543
4546
  style: j?.loadingIndicator,
4544
- children: /* @__PURE__ */ I(Ee, { className: Q.virtualListSpinner })
4547
+ children: /* @__PURE__ */ R(Ee, { className: Q.virtualListSpinner })
4545
4548
  })
4546
4549
  ]
4547
4550
  });
4548
4551
  }
4549
- var Br = {
4552
+ var Vr = {
4550
4553
  wizard: "wizard_uRBAN",
4551
4554
  "wizard-content": "wizard-content_lcl4C",
4552
4555
  wizardContent: "wizard-content_lcl4C",
@@ -4557,7 +4560,7 @@ var Br = {
4557
4560
  };
4558
4561
  //#endregion
4559
4562
  //#region package/common/wizard/wizard.tsx
4560
- function Vr({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
4563
+ function Hr({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null, className: r, style: i, classNames: o, styles: s, ...c }) {
4561
4564
  let [l, p] = d(void 0), [m, h] = d(!1), [g, _] = d(e), v = u([]), y = u(null);
4562
4565
  e !== g && (_(e), h(!0)), a(() => {
4563
4566
  if (!m) return;
@@ -4575,29 +4578,29 @@ function Vr({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
4575
4578
  ...s?.root,
4576
4579
  ...i
4577
4580
  };
4578
- return /* @__PURE__ */ I("div", {
4581
+ return /* @__PURE__ */ R("div", {
4579
4582
  ...c,
4580
- className: f(Br.wizard, o?.root, r),
4583
+ className: f(Vr.wizard, o?.root, r),
4581
4584
  style: b,
4582
- children: /* @__PURE__ */ I("div", {
4583
- className: f(Br.wizardContentContainer, o?.container),
4585
+ children: /* @__PURE__ */ R("div", {
4586
+ className: f(Vr.wizardContentContainer, o?.container),
4584
4587
  style: {
4585
4588
  width: `${t * 100}%`,
4586
4589
  marginLeft: `-${e * 100}%`,
4587
4590
  ...s?.container
4588
4591
  },
4589
- children: Array.from({ length: t }, (r, i) => /* @__PURE__ */ I("div", {
4592
+ children: Array.from({ length: t }, (r, i) => /* @__PURE__ */ R("div", {
4590
4593
  ref: (e) => {
4591
4594
  v.current[i] = e;
4592
4595
  },
4593
- className: f(Br.wizardContent, o?.step),
4596
+ className: f(Vr.wizardContent, o?.step),
4594
4597
  style: {
4595
4598
  width: `${100 / t}%`,
4596
4599
  marginLeft: `${100 / t * i}%`,
4597
4600
  ...s?.step
4598
4601
  },
4599
- children: /* @__PURE__ */ I("div", {
4600
- className: f({ [Br.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
4602
+ children: /* @__PURE__ */ R("div", {
4603
+ className: f({ [Vr.wizardContentOutOfFrame]: e !== i && !m }, o?.stepContent),
4601
4604
  style: s?.stepContent,
4602
4605
  inert: e === i ? void 0 : !0,
4603
4606
  children: n(i)
@@ -4608,20 +4611,20 @@ function Vr({ currentStep: e = 0, stepCount: t = 0, renderStep: n = () => null,
4608
4611
  }
4609
4612
  //#endregion
4610
4613
  //#region package/services/formValidation/formValidatorGroup.ts
4611
- function Hr(e) {
4614
+ function Ur(e) {
4612
4615
  let t = e;
4613
4616
  return t?.errors && Array.isArray(t.errors) ? t.errors.flatMap((e) => Object.entries(e).map(([e, t]) => ({
4614
4617
  id: e,
4615
4618
  message: t
4616
4619
  }))) : [];
4617
4620
  }
4618
- var Ur = class {
4621
+ var Wr = class {
4619
4622
  #e;
4620
4623
  #t;
4621
4624
  #n;
4622
4625
  #r;
4623
4626
  #i;
4624
- constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = Hr, onSubmitError: o = () => void 0 } = {}) {
4627
+ constructor(e, t = null, { initialValues: n, onSubmit: r = () => void 0, onValidate: i = () => void 0, errorParser: a = Ur, onSubmitError: o = () => void 0 } = {}) {
4625
4628
  this.#t = !1, this.#i = [], this.getFormError = () => {
4626
4629
  let e = Object.keys(this.group);
4627
4630
  for (let t = 0; t < e.length; t += 1) {
@@ -4711,9 +4714,9 @@ var Ur = class {
4711
4714
  };
4712
4715
  //#endregion
4713
4716
  //#region package/services/formValidation/FormValidatorGroupForm.tsx
4714
- function Wr(e) {
4717
+ function Gr(e) {
4715
4718
  return function({ children: t, ...n }) {
4716
- return /* @__PURE__ */ I("form", {
4719
+ return /* @__PURE__ */ R("form", {
4717
4720
  onSubmit: e.submit,
4718
4721
  noValidate: !0,
4719
4722
  ...n,
@@ -4723,16 +4726,16 @@ function Wr(e) {
4723
4726
  }
4724
4727
  //#endregion
4725
4728
  //#region package/services/formValidation/FormValidatorGroupWithForm.tsx
4726
- var Gr = (e) => {
4727
- Ar(e[0].message, { type: "error" });
4728
- }, Kr = class extends Ur {
4729
+ var Kr = (e) => {
4730
+ jr(e[0].message, { type: "error" });
4731
+ }, qr = class extends Wr {
4729
4732
  constructor(e, t = null, n) {
4730
4733
  super(e, t, {
4731
4734
  ...n,
4732
- onSubmitError: n?.onSubmitError ?? Gr
4733
- }), this.Form = Wr(this);
4735
+ onSubmitError: n?.onSubmitError ?? Kr
4736
+ }), this.Form = Gr(this);
4734
4737
  }
4735
- }, qr = class {
4738
+ }, Jr = class {
4736
4739
  #e;
4737
4740
  #t;
4738
4741
  #n;
@@ -4786,40 +4789,40 @@ var Gr = (e) => {
4786
4789
  return this.#r;
4787
4790
  }
4788
4791
  };
4789
- qr.prototype.toString = function() {
4792
+ Jr.prototype.toString = function() {
4790
4793
  return `${this.value}`;
4791
4794
  };
4792
4795
  //#endregion
4793
4796
  //#region package/services/regexp.ts
4794
- function Jr(e) {
4797
+ function Yr(e) {
4795
4798
  return /^[0-9]+$/.test(e);
4796
4799
  }
4797
- function Yr(e) {
4800
+ function Xr(e) {
4798
4801
  return /^[0-9]{2}.[0-9]{2}.[0-9]{4}$/.test(e);
4799
4802
  }
4800
- function Xr(e) {
4803
+ function Zr(e) {
4801
4804
  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);
4802
4805
  }
4803
- function Zr(e) {
4806
+ function Qr(e) {
4804
4807
  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);
4805
4808
  }
4806
- function Qr(e) {
4809
+ function $r(e) {
4807
4810
  return /^[A-Z]{6}[A-Z\d]{2}([A-Z\d]{3})?$/.test(e);
4808
4811
  }
4809
- function $r(e) {
4812
+ function ei(e) {
4810
4813
  return /[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}(\/[-a-zA-Z0-9@:%_+.~#?&//=]*)?$/.test(e);
4811
4814
  }
4812
- function ei(e) {
4815
+ function ti(e) {
4813
4816
  return /^[\w!@#$%^&*?±§~`'"/\\[\]{}\-,.();:><+=|öäüÖÄÜß €μ]{8,}$/.test(e);
4814
4817
  }
4815
- function ti(e) {
4818
+ function ni(e) {
4816
4819
  return /^(?=.*[a-zöäüA-ZÖÄÜß])/.test(e);
4817
4820
  }
4818
- function ni(e) {
4821
+ function ri(e) {
4819
4822
  return /^(?=.*\d)/.test(e);
4820
4823
  }
4821
- function ri(e) {
4822
- return ei(e) && ti(e) && ni(e);
4824
+ function ii(e) {
4825
+ return ti(e) && ni(e) && ri(e);
4823
4826
  }
4824
4827
  //#endregion
4825
4828
  //#region package/services/formValidation/validators.ts
@@ -4838,7 +4841,7 @@ var $ = { t: (e, t) => ({
4838
4841
  "garages.errors.bic": "Must be a valid BIC",
4839
4842
  "formValidators.minLetters": `Must contain at least ${t?.smart_count} letters`,
4840
4843
  "formValidators.minDigits": `Must contain at least ${t?.smart_count} digits`
4841
- })[e] || e }, ii = class e {
4844
+ })[e] || e }, ai = class e {
4842
4845
  static {
4843
4846
  this.minLength = (e, t) => (n) => !n || n.length < e ? {
4844
4847
  id: "minLength",
@@ -4852,7 +4855,7 @@ var $ = { t: (e, t) => ({
4852
4855
  } : null;
4853
4856
  }
4854
4857
  static {
4855
- this.email = (e) => (t) => t && !Zr(t) ? {
4858
+ this.email = (e) => (t) => t && !Qr(t) ? {
4856
4859
  id: "email",
4857
4860
  message: e || $.t("formValidators.email")
4858
4861
  } : null;
@@ -4895,7 +4898,7 @@ var $ = { t: (e, t) => ({
4895
4898
  this.multiEmail = (e) => (t) => {
4896
4899
  if (t) {
4897
4900
  let n = t.replace(/ /g, "").replace(/,/g, ";").split(";");
4898
- for (let t = 0; t < n.length; t += 1) if (!Zr(n[t])) return {
4901
+ for (let t = 0; t < n.length; t += 1) if (!Qr(n[t])) return {
4899
4902
  id: "multiEmail",
4900
4903
  message: e || $.t("formValidators.multiEmail")
4901
4904
  };
@@ -4904,7 +4907,7 @@ var $ = { t: (e, t) => ({
4904
4907
  };
4905
4908
  }
4906
4909
  static {
4907
- this.date = (e) => (t) => t && !Yr(t) && !Xr(t) ? {
4910
+ this.date = (e) => (t) => t && !Xr(t) && !Zr(t) ? {
4908
4911
  id: "date",
4909
4912
  message: e || $.t("formValidators.date")
4910
4913
  } : null;
@@ -4916,13 +4919,13 @@ var $ = { t: (e, t) => ({
4916
4919
  } : null;
4917
4920
  }
4918
4921
  static {
4919
- this.website = (e) => (t) => t && !$r(t) ? {
4922
+ this.website = (e) => (t) => t && !ei(t) ? {
4920
4923
  id: "website",
4921
4924
  message: e || $.t("garages.errors.website")
4922
4925
  } : null;
4923
4926
  }
4924
4927
  static {
4925
- this.bic = (e) => (t) => t && !Qr(t) ? {
4928
+ this.bic = (e) => (t) => t && !$r(t) ? {
4926
4929
  id: "bic",
4927
4930
  message: e || $.t("garages.errors.bic")
4928
4931
  } : null;
@@ -4948,7 +4951,7 @@ var $ = { t: (e, t) => ({
4948
4951
  } : r : null;
4949
4952
  };
4950
4953
  }
4951
- }, ai = class extends n {
4954
+ }, oi = class extends n {
4952
4955
  static {
4953
4956
  this.defaultProps = {
4954
4957
  formValidator: null,
@@ -5011,7 +5014,7 @@ var $ = { t: (e, t) => ({
5011
5014
  }
5012
5015
  renderTooltip() {
5013
5016
  let { errorMessage: e, formValidator: t } = this.props, { isHovered: n, isFocused: r } = this.state;
5014
- return /* @__PURE__ */ I(nt, {
5017
+ return /* @__PURE__ */ R(rt, {
5015
5018
  variant: "error",
5016
5019
  message: t ? t.getCurrentErrorMessage() : e || "",
5017
5020
  isVisible: this.hasError() && (r || n)
@@ -5028,7 +5031,7 @@ var $ = { t: (e, t) => ({
5028
5031
  };
5029
5032
  //#endregion
5030
5033
  //#region package/services/formValidation/useFormValidator.ts
5031
- function oi(e) {
5034
+ function si(e) {
5032
5035
  let [, t] = l((e) => e + 1, 0);
5033
5036
  return a(() => {
5034
5037
  if (e) return e.registerOnUpdateListener(t), () => e.removeOnUpdateListener(t);
@@ -5036,9 +5039,9 @@ function oi(e) {
5036
5039
  }
5037
5040
  //#endregion
5038
5041
  //#region package/services/formValidation/useFormValidatorGroup.ts
5039
- function si(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, onSubmitError: o } = {}) {
5042
+ function ci(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, onSubmitError: o } = {}) {
5040
5043
  let [, s] = l((e) => e + 1, 0), c = u(null);
5041
- c.current ||= new Kr(e, null, {
5044
+ c.current ||= new qr(e, null, {
5042
5045
  initialValues: t,
5043
5046
  errorParser: i,
5044
5047
  onSubmitError: o
@@ -5047,6 +5050,6 @@ function si(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, o
5047
5050
  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;
5048
5051
  }
5049
5052
  //#endregion
5050
- export { U as Accordion, ve as AccordionStyleType, Ne as ActionButtons, Re as ActionIcon, Qe as Align, ze as BodyEnd, K as Button, De as ButtonSize, G as ButtonStyleType, Oe as ButtonType, Ve as Card, Ge as CardActions, We as CardContent, He as CardHeader, Ue as CardMedia, qe as Checkbox, Ye as Chip, Xe as ChipContainer, mt as ColorPicker, _t as ConfirmModal, Gt as DatePicker, Ut as Dropdown, qt as EmptyState, Zt as Fab, et as FloatingMenu, qr as FormValidator, Kr as FormValidatorGroup, hn as IconLoading, tn as IconPicker, rn as IdleManager, Ht as InfiniteBlock, rt as Input, cn as InputDropdown, J as InputType, Ie as InteractableDiv, fn as KanbanBoard, dn as KanbanColumn, gt as Modal, vn as NumberInput, bn as OptionPicker, wn as Overscroll, Dn as ProgressBar, Ae as Ripple, er as RoomDrawer, nr as RoomViewer, ar as ScrollbarProvider, sr as SearchInput, Ee as SpinnerLoading, ur as Stepper, vr as TenorPicker, yr as Textarea, Sr as ThemeProvider, Pr as Toast, nt as Tooltip, ai as ValidatableComponent, ii as Validators, zr as VirtualList, Vr as Wizard, br as defaultTheme, Tt as getLocale, ei as hasEightPasswordChars, ni as hasOnePasswordDigit, ti as hasOnePasswordLetter, Qr as isBic, Yr as isDate, Zr as isEmail, Xr as isISODate, Jr as isNumber, ri as isPassword, $r as isURL, St as mapLocale, wt as setLocale, Ar as showToast, oi as useFormValidator, si as useFormValidatorGroup, Cr as useTheme };
5053
+ export { Se as Accordion, ve as AccordionStyleType, Pe as ActionButtons, ze as ActionIcon, $e as Align, Be as BodyEnd, K as Button, Oe as ButtonSize, De as ButtonStyleType, ke 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, Jr as FormValidator, qr as FormValidatorGroup, gn as IconLoading, nn as IconPicker, an as IdleManager, Ut as InfiniteBlock, it as Input, ln as InputDropdown, J as InputType, Le as InteractableDiv, pn as KanbanBoard, fn as KanbanColumn, _t as Modal, yn as NumberInput, xn as OptionPicker, Tn as Overscroll, On as ProgressBar, je as Ripple, tr as RoomDrawer, rr as RoomViewer, or as ScrollbarProvider, cr as SearchInput, Ee as SpinnerLoading, dr as Stepper, yr as TenorPicker, br as Textarea, Cr as ThemeProvider, Fr as ToastProvider, rt as Tooltip, oi as ValidatableComponent, ai as Validators, Br as VirtualList, Hr as Wizard, xr as defaultTheme, Et as getLocale, ti as hasEightPasswordChars, ri as hasOnePasswordDigit, ni as hasOnePasswordLetter, $r as isBic, Xr as isDate, Qr as isEmail, Zr as isISODate, Yr as isNumber, ii as isPassword, ei as isURL, Ct as mapLocale, Tt as setLocale, jr as showToast, si as useFormValidator, ci as useFormValidatorGroup, wr as useTheme };
5051
5054
 
5052
5055
  //# sourceMappingURL=index.mjs.map