@ahrowe/ui 0.1.15 → 0.1.17

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
@@ -6,14 +6,14 @@ import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
6
6
  import { createPortal as ie } from "react-dom";
7
7
  import ae from "downshift";
8
8
  import oe from "@mona-health/react-input-mask";
9
- import { DndContext as U, DragOverlay as se, PointerSensor as W, closestCorners as ce, useDroppable as le, useSensor as G, useSensors as K } from "@dnd-kit/core";
10
- import { SortableContext as q, arrayMove as ue, useSortable as de, verticalListSortingStrategy as fe } from "@dnd-kit/sortable";
11
- import { CSS as pe } from "@dnd-kit/utilities";
12
- import { NumericFormat as me } from "react-number-format";
9
+ import { DndContext as U, DragOverlay as se, PointerSensor as W, closestCorners as ce, useDroppable as le, useSensor as ue, useSensors as G } from "@dnd-kit/core";
10
+ import { SortableContext as K, arrayMove as de, useSortable as fe, verticalListSortingStrategy as pe } from "@dnd-kit/sortable";
11
+ import { CSS as me } from "@dnd-kit/utilities";
12
+ import { NumericFormat as he } from "react-number-format";
13
13
  //#region package/common/accordion/accordion.types.ts
14
- var he = /* @__PURE__ */ function(e) {
14
+ var ge = /* @__PURE__ */ function(e) {
15
15
  return e.Default = "default", e.Primary = "primary", e.Plain = "plain", e;
16
- }({}), ge = {
16
+ }({}), _e = {
17
17
  accordion: "accordion_YZt8B",
18
18
  "accordion-title": "accordion-title_CGYKY",
19
19
  accordionTitle: "accordion-title_CGYKY",
@@ -33,7 +33,7 @@ var he = /* @__PURE__ */ function(e) {
33
33
  accordionIcon: "accordion-icon_kLqp-",
34
34
  "accordion-icon-active": "accordion-icon-active_lJwG8",
35
35
  accordionIconActive: "accordion-icon-active_lJwG8"
36
- }, _e = {
36
+ }, ve = {
37
37
  accordion: "accordion_X64Nz",
38
38
  "accordion-title": "accordion-title_2q-FF",
39
39
  accordionTitle: "accordion-title_2q-FF",
@@ -53,7 +53,7 @@ var he = /* @__PURE__ */ function(e) {
53
53
  accordionIcon: "accordion-icon_W1mz5",
54
54
  "accordion-icon-active": "accordion-icon-active_LI98q",
55
55
  accordionIconActive: "accordion-icon-active_LI98q"
56
- }, ve = {
56
+ }, ye = {
57
57
  accordion: "accordion_wkZJf",
58
58
  "accordion-title": "accordion-title_-qwNy",
59
59
  accordionTitle: "accordion-title_-qwNy",
@@ -71,13 +71,13 @@ var he = /* @__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
- }, ye = {
75
- [he.Default]: ge,
76
- [he.Primary]: _e,
77
- [he.Plain]: ve
74
+ }, be = {
75
+ [ge.Default]: _e,
76
+ [ge.Primary]: ve,
77
+ [ge.Plain]: ye
78
78
  };
79
- function be({ id: e = "", title: t = "", children: n = null, expanded: r = null, onHeaderClicked: i = () => {}, styleType: o = he.Default, startOpen: s = !1, hideHeader: c = !1, className: l, style: m, classNames: h, styles: _, ...v }) {
80
- let y = ye[o], b = u(null), [x, S] = d(r ?? s), [C, w] = d(null);
79
+ function xe({ id: e = "", title: t = "", children: n = null, expanded: r = null, onHeaderClicked: i = () => {}, styleType: o = ge.Default, startOpen: s = !1, hideHeader: c = !1, className: l, style: m, classNames: h, styles: _, ...v }) {
80
+ let y = be[o], b = u(null), [x, S] = d(r ?? s), [C, w] = d(null);
81
81
  a(() => {
82
82
  r !== null && S(r);
83
83
  }, [r]), a(() => {
@@ -135,11 +135,11 @@ function be({ id: e = "", title: t = "", children: n = null, expanded: r = null,
135
135
  })]
136
136
  });
137
137
  }
138
- var xe = {
138
+ var Se = {
139
139
  actionButtons: "actionButtons_7GybR",
140
140
  "actionButtons-margin": "actionButtons-margin_-XoFP",
141
141
  actionButtonsMargin: "actionButtons-margin_-XoFP"
142
- }, J = {
142
+ }, q = {
143
143
  button: "button_wYLPJ",
144
144
  "button-notAllowed": "button-notAllowed_xGT-E",
145
145
  buttonNotAllowed: "button-notAllowed_xGT-E",
@@ -171,7 +171,7 @@ var xe = {
171
171
  buttonSizeMedium: "button-size-medium_gNVDM",
172
172
  "button-size-large": "button-size-large_xSIcS",
173
173
  buttonSizeLarge: "button-size-large_xSIcS"
174
- }, Se = {
174
+ }, Ce = {
175
175
  "spinner-loading": "spinner-loading_qbxX-",
176
176
  spinnerLoading: "spinner-loading_qbxX-",
177
177
  "animate-spinner": "animate-spinner_6HoVF",
@@ -180,10 +180,10 @@ var xe = {
180
180
  };
181
181
  //#endregion
182
182
  //#region package/common/loading/spinnerLoading/spinnerLoading.tsx
183
- function Ce({ className: e }) {
183
+ function we({ className: e }) {
184
184
  return /* @__PURE__ */ V("svg", {
185
185
  "data-testid": "spinner",
186
- className: f(Se.spinnerLoading, e),
186
+ className: f(Ce.spinnerLoading, e),
187
187
  xmlns: "http://www.w3.org/2000/svg",
188
188
  viewBox: "0 0 100 100",
189
189
  fill: "none",
@@ -196,25 +196,25 @@ function Ce({ className: e }) {
196
196
  })
197
197
  });
198
198
  }
199
- Ce.defaultProps = { className: void 0 };
199
+ we.defaultProps = { className: void 0 };
200
200
  //#endregion
201
201
  //#region package/common/loading/spinnerLoading/index.ts
202
- var we = Ce, Te = /* @__PURE__ */ function(e) {
202
+ var Te = we, Ee = /* @__PURE__ */ function(e) {
203
203
  return e.Primary = "primary", e.Default = "default", e.Delete = "delete", e;
204
- }({}), Ee = /* @__PURE__ */ function(e) {
205
- return e.Default = "default", e.Small = "small", e.Medium = "medium", e.Large = "large", e;
206
204
  }({}), De = /* @__PURE__ */ function(e) {
205
+ return e.Default = "default", e.Small = "small", e.Medium = "medium", e.Large = "large", e;
206
+ }({}), Oe = /* @__PURE__ */ function(e) {
207
207
  return e.Button = "button", e.Reset = "reset", e.Submit = "submit", e;
208
- }({}), Oe = {
208
+ }({}), ke = {
209
209
  ripple: "ripple_TsvyF",
210
210
  "ripple-container": "ripple-container_QzHdC",
211
211
  rippleContainer: "ripple-container_QzHdC"
212
- }, ke = r(function({ disabled: e = !1, children: t, className: n, style: r, overflowHidden: i = !0, rippleAnimationLength: s = .6, rippleBackground: c = "rgba(255, 255, 255, 0.2)", manualOnly: l = !1, ...d }, f) {
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) {
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(Oe.ripple), p.current?.appendChild(r), setTimeout(() => {
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(() => {
218
218
  p.current?.removeChild(r);
219
219
  }, s * 1e3 + 50);
220
220
  }
@@ -237,7 +237,7 @@ var we = Ce, Te = /* @__PURE__ */ function(e) {
237
237
  }, [t, l]);
238
238
  let _ = { "--ripple-animation-length": `${s}s` };
239
239
  return t === void 0 ? /* @__PURE__ */ V("div", {
240
- className: Oe.rippleContainer,
240
+ className: ke.rippleContainer,
241
241
  ref: p,
242
242
  style: {
243
243
  overflow: i ? "hidden" : "visible",
@@ -253,47 +253,47 @@ var we = Ce, Te = /* @__PURE__ */ function(e) {
253
253
  ...r
254
254
  },
255
255
  children: [t, /* @__PURE__ */ V("div", {
256
- className: Oe.rippleContainer,
256
+ className: ke.rippleContainer,
257
257
  ref: p,
258
258
  style: _
259
259
  })]
260
260
  });
261
- }), Ae = {
262
- default: J.buttonStyleDefault,
263
- primary: J.buttonStylePrimary,
264
- delete: J.buttonStyleDelete
265
- }, je = {
266
- default: J.buttonSizeDefault,
267
- small: J.buttonSizeSmall,
268
- medium: J.buttonSizeMedium,
269
- large: J.buttonSizeLarge
261
+ }), je = {
262
+ default: q.buttonStyleDefault,
263
+ primary: q.buttonStylePrimary,
264
+ delete: q.buttonStyleDelete
265
+ }, Me = {
266
+ default: q.buttonSizeDefault,
267
+ small: q.buttonSizeSmall,
268
+ medium: q.buttonSizeMedium,
269
+ large: q.buttonSizeLarge
270
270
  };
271
- function Me({ className: e, style: t, type: n = De.Button, styleType: r = Te.Default, size: i = Ee.Default, onClick: a = () => {}, children: o, icon: s, isLoading: c = !1, disabled: l = !1, title: u = void 0, ref: d, classNames: m, styles: h, ...g }) {
271
+ function J({ className: e, style: t, type: n = Oe.Button, styleType: r = Ee.Default, size: i = De.Default, onClick: a = () => {}, children: o, icon: s, isLoading: c = !1, disabled: l = !1, title: u = void 0, ref: d, classNames: m, styles: h, ...g }) {
272
272
  return /* @__PURE__ */ V("button", {
273
273
  ...g,
274
- className: f(J.button, Ae[r], je[i], { [J.buttonNotAllowed]: c || l }, e),
274
+ className: f(q.button, je[r], Me[i], { [q.buttonNotAllowed]: c || l }, e),
275
275
  style: t,
276
276
  type: n,
277
277
  onClick: a,
278
278
  disabled: l || c,
279
279
  title: u,
280
280
  ref: d,
281
- children: /* @__PURE__ */ V(ke, {
281
+ children: /* @__PURE__ */ V(Ae, {
282
282
  disabled: c || l,
283
283
  children: /* @__PURE__ */ V("div", {
284
- className: f(J.buttonBackground, m?.background),
284
+ className: f(q.buttonBackground, m?.background),
285
285
  style: h?.background,
286
286
  children: /* @__PURE__ */ H("div", {
287
- className: f(J.buttonContent, m?.content),
287
+ className: f(q.buttonContent, m?.content),
288
288
  style: h?.content,
289
289
  children: [c ? /* @__PURE__ */ V("div", {
290
- className: f(J.buttonLoadingContainer, m?.loadingContainer),
290
+ className: f(q.buttonLoadingContainer, m?.loadingContainer),
291
291
  style: h?.loadingContainer,
292
- children: /* @__PURE__ */ V(we, { className: J.buttonLoadingIcon })
292
+ children: /* @__PURE__ */ V(Te, { className: q.buttonLoadingIcon })
293
293
  }) : null, /* @__PURE__ */ H("div", {
294
294
  className: f(m?.label, {
295
- [J.buttonLoading]: c,
296
- [J.buttonWithIcon]: !!s
295
+ [q.buttonLoading]: c,
296
+ [q.buttonWithIcon]: !!s
297
297
  }),
298
298
  style: h?.label,
299
299
  children: [s ? /* @__PURE__ */ V(p, { icon: s }) : null, o]
@@ -303,28 +303,28 @@ function Me({ className: e, style: t, type: n = De.Button, styleType: r = Te.Def
303
303
  })
304
304
  });
305
305
  }
306
- Me.StyleType = Te, Me.Size = Ee, Me.Type = De;
306
+ J.StyleType = Ee, J.Size = De, J.Type = Oe;
307
307
  //#endregion
308
308
  //#region package/common/actionButtons/actionButtons.tsx
309
- function Ne({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = Te.Primary, isSubmitButtonLoading: a = !1, isSubmitButtonDisabled: o = !1, submitButtonIcon: s = void 0, cancelButtonStyle: c = Te.Default, isCancelButtonLoading: l = !1, isCancelButtonDisabled: u = !1, cancelButtonIcon: d = void 0, hidePrimaryButton: p = !1, hideSecondaryButton: m = !1, noMargin: h = !1, className: g, style: _, classNames: v, styles: y, ...b }) {
309
+ function Ne({ onSubmit: e = () => null, onClose: t = () => null, submitLabel: n = "Save", cancelLabel: r = "Cancel", submitButtonStyle: i = Ee.Primary, isSubmitButtonLoading: a = !1, isSubmitButtonDisabled: o = !1, submitButtonIcon: s = void 0, cancelButtonStyle: c = Ee.Default, isCancelButtonLoading: l = !1, isCancelButtonDisabled: u = !1, cancelButtonIcon: d = void 0, hidePrimaryButton: p = !1, hideSecondaryButton: m = !1, noMargin: h = !1, className: g, style: _, classNames: v, styles: y, ...b }) {
310
310
  return /* @__PURE__ */ H("div", {
311
311
  ...b,
312
- className: f(xe.actionButtons, !h && xe.actionButtonsMargin, g, v?.root),
312
+ className: f(Se.actionButtons, !h && Se.actionButtonsMargin, g, v?.root),
313
313
  style: {
314
314
  ..._,
315
315
  ...y?.root
316
316
  },
317
- children: [!p && /* @__PURE__ */ V(Me, {
317
+ children: [!p && /* @__PURE__ */ V(J, {
318
318
  isLoading: a,
319
319
  disabled: o,
320
320
  styleType: i,
321
- type: De.Submit,
321
+ type: Oe.Submit,
322
322
  onClick: e,
323
323
  className: v?.submitButton,
324
324
  style: y?.submitButton,
325
325
  icon: s,
326
326
  children: n
327
- }), !m && /* @__PURE__ */ V(Me, {
327
+ }), !m && /* @__PURE__ */ V(J, {
328
328
  isLoading: l,
329
329
  disabled: u,
330
330
  onClick: t,
@@ -418,7 +418,7 @@ function Ve({ className: e = void 0, children: t = null, onClick: n = void 0, ta
418
418
  onClick: n,
419
419
  tabIndex: r ?? (s ? 0 : null),
420
420
  style: a,
421
- children: /* @__PURE__ */ V(ke, {
421
+ children: /* @__PURE__ */ V(Ae, {
422
422
  disabled: !s,
423
423
  overflowHidden: !1,
424
424
  children: t
@@ -446,7 +446,9 @@ function He({ className: e = "", title: t = "", subTitle: n = "", thumbnail: r =
446
446
  className: Be.cardHeaderActions,
447
447
  children: Array.isArray(i) ? i.map((e, t) => /* @__PURE__ */ V(Re, {
448
448
  title: e.title,
449
- onClick: e.onClick,
449
+ onClick: e.onClick ? (t) => {
450
+ t.stopPropagation(), e.onClick?.(t);
451
+ } : void 0,
450
452
  icon: e.icon
451
453
  }, t)) : i
452
454
  })]
@@ -476,7 +478,7 @@ function We({ children: e = null }) {
476
478
  function Ge({ className: e = "", actions: t = [], children: n = null }) {
477
479
  return /* @__PURE__ */ H("div", {
478
480
  className: f(Be.cardActions, e),
479
- children: [t.map(({ id: e, onClick: t, label: n, styleType: r = Te.Default }) => /* @__PURE__ */ V("div", { children: /* @__PURE__ */ V(Me, {
481
+ children: [t.map(({ id: e, onClick: t, label: n, styleType: r = Ee.Default }) => /* @__PURE__ */ V("div", { children: /* @__PURE__ */ V(J, {
480
482
  onClick: t,
481
483
  styleType: r,
482
484
  children: n
@@ -536,7 +538,7 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
536
538
  width: m,
537
539
  height: h
538
540
  },
539
- children: /* @__PURE__ */ V(we, { className: Ke.checkboxLoadingSpinner })
541
+ children: /* @__PURE__ */ V(Te, { className: Ke.checkboxLoadingSpinner })
540
542
  }) : /* @__PURE__ */ H("div", {
541
543
  style: {
542
544
  width: m,
@@ -544,7 +546,7 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
544
546
  ...x?.checkmark
545
547
  },
546
548
  className: f(Ke.checkboxCheckmark, E && Ke.checkboxCheckmarkChecked, b?.checkmark),
547
- children: [/* @__PURE__ */ V(ke, {
549
+ children: [/* @__PURE__ */ V(Ae, {
548
550
  ref: C,
549
551
  manualOnly: !0,
550
552
  overflowHidden: !1,
@@ -600,7 +602,7 @@ function Ye({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon
600
602
  ...o,
601
603
  className: f(Je.chip, i && Je.chipClickable, e),
602
604
  onClick: i,
603
- children: /* @__PURE__ */ V(ke, {
605
+ children: /* @__PURE__ */ V(Ae, {
604
606
  disabled: !i,
605
607
  style: { borderRadius: "inherit" },
606
608
  children: /* @__PURE__ */ H("div", {
@@ -842,131 +844,131 @@ var Y = {
842
844
  }({});
843
845
  //#endregion
844
846
  //#region package/common/input/input.tsx
845
- function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: m = null, onChange: h = () => {}, onFocus: g = null, onBlur: _ = null, onMouseEnter: v = null, onMouseLeave: y = null, isUppercase: b = !1, isRequired: x = !1, tabIndex: S = 0, type: C = void 0, isRow: w = !1, onIconClick: T = null, parse: k = null, formValidator: A = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: I = !1, showCancel: L = !1, onClearClicked: R, min: te = null, max: ne = null, placeholder: re = "", useMatLabelStyle: B = !0, autoComplete: ie = null, onClick: ae = () => null, readOnly: oe = !1, customInput: U, alwaysShowCancel: se = !1, multiline: W = !1, rows: ce, autoResize: le = !1, classNames: G, styles: K, disabled: q = !1, ...ue }) {
846
- let [de, fe] = d(!1), [pe, me] = d(!1), [he, ge] = d(!1), [, _e] = d(0), ve = u(null), ye = u(A), be = i(() => {
847
- let e = ve.current;
847
+ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: m = null, onChange: h = () => {}, onFocus: g = null, onBlur: _ = null, onMouseEnter: v = null, onMouseLeave: y = null, isUppercase: b = !1, isRequired: x = !1, tabIndex: S = 0, type: C = void 0, isRow: w = !1, onIconClick: T = null, parse: k = null, formValidator: A = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: I = !1, showCancel: L = !1, onClearClicked: R, min: te = null, max: ne = null, placeholder: re = "", useMatLabelStyle: B = !0, autoComplete: ie = null, onClick: ae = () => null, readOnly: oe = !1, customInput: U, alwaysShowCancel: se = !1, multiline: W = !1, rows: ce, autoResize: le = !1, classNames: ue, styles: G, disabled: K = !1, ...de }) {
848
+ let [fe, pe] = d(!1), [me, he] = d(!1), [ge, _e] = d(!1), [, ve] = d(0), ye = u(null), be = u(A), xe = i(() => {
849
+ let e = ye.current;
848
850
  !e || !le || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
849
851
  }, [le]);
850
852
  a(() => {
851
853
  setTimeout(() => {
852
- fe(!1), me(!1);
853
- }, 1), be();
854
+ pe(!1), he(!1);
855
+ }, 1), xe();
854
856
  }, []), a(() => {
855
- j && ve.current && setTimeout(() => {
856
- ve.current?.focus();
857
+ j && ye.current && setTimeout(() => {
858
+ ye.current?.focus();
857
859
  }, 1);
858
860
  }, [j]), a(() => {
859
- ye.current = A;
860
- let e = ye.current;
861
+ be.current = A;
862
+ let e = be.current;
861
863
  if (!e) return;
862
864
  e.label = n ?? "", e.validate();
863
- let t = () => _e((e) => e + 1);
865
+ let t = () => ve((e) => e + 1);
864
866
  return e.registerOnUpdateListener(t), () => {
865
867
  e.removeOnUpdateListener(t);
866
868
  };
867
869
  }, [A, n]);
868
- let xe = () => A ? A.touched && A.hasError() : !o || !!r, J = () => !!(x || A && A.validators.find((e) => e.validatorId === "required")), Se = (e) => {
869
- me(!0), v && v(e);
870
- }, Ce = (e) => {
871
- me(!1), y && y(e);
870
+ let Se = () => A ? A.touched && A.hasError() : !o || !!r, q = () => !!(x || A && A.validators.find((e) => e.validatorId === "required")), Ce = (e) => {
871
+ he(!0), v && v(e);
872
872
  }, we = (e) => {
873
- fe(!0), g && g(e);
873
+ he(!1), y && y(e);
874
874
  }, Te = (e) => {
875
- ye.current && (ye.current.touched = !0), fe(!1), _ && _(e);
875
+ pe(!0), g && g(e);
876
876
  }, Ee = (e) => {
877
+ be.current && (be.current.touched = !0), pe(!1), _ && _(e);
878
+ }, De = (e) => {
877
879
  let t, n;
878
- typeof e == "string" ? n = e : (t = e, n = e.target.value), k && (n = k(n)), A && A.set(n), h && h(n, t), be();
879
- }, De = () => {
880
- if (C !== "email") return C === "password" && he ? "text" : C;
881
- }, Oe = C && C !== X.Date && C !== X.Iban && C !== X.HasNoIcon, ke = Oe && !B && (C === X.Email || C === X.Phone || C === X.Search), Ae = {
880
+ typeof e == "string" ? n = e : (t = e, n = e.target.value), k && (n = k(n)), A && A.set(n), h && h(n, t), xe();
881
+ }, Oe = () => {
882
+ if (C !== "email") return C === "password" && ge ? "text" : C;
883
+ }, ke = C && C !== X.Date && C !== X.Iban && C !== X.HasNoIcon, Ae = ke && !B && (C === X.Email || C === X.Phone || C === X.Search), je = {
882
884
  className: f(Y.inputFieldIcon, {
883
885
  [Y.inputFieldIconNotClickable]: !T,
884
- [Y.inputFieldIconLeft]: ke
886
+ [Y.inputFieldIconLeft]: Ae
885
887
  }),
886
888
  onClick: T ?? void 0
887
- }, je = {
889
+ }, Me = {
888
890
  className: f(Y.inputFieldIcon, Y.inputFieldIconPassword),
889
- onClick: () => ge(!he)
890
- }, Me = xe(), Ne = n;
891
- Ne && J() && (Ne = `${Ne} *`);
892
- let Pe = A ? A.value : l, Fe = B && (de || Pe || C === X.Date);
891
+ onClick: () => _e(!ge)
892
+ }, J = Se(), Ne = n;
893
+ Ne && q() && (Ne = `${Ne} *`);
894
+ let Pe = A ? A.value : l, Fe = B && (fe || Pe || C === X.Date);
893
895
  return /* @__PURE__ */ H("div", {
894
896
  className: f(Y.input, s),
895
897
  style: c,
896
898
  children: [
897
899
  /* @__PURE__ */ H("label", {
898
900
  htmlFor: t,
899
- className: f(Y.inputLabel, G?.label, {
901
+ className: f(Y.inputLabel, ue?.label, {
900
902
  [Y.inputLabelColumn]: !w,
901
903
  [Y.inputLabelInBorder]: I
902
904
  }),
903
- style: K?.label,
905
+ style: G?.label,
904
906
  children: [
905
907
  Ne && !B ? /* @__PURE__ */ H("span", {
906
908
  className: Y.inputLabelText,
907
- children: [`${Ne} `, J() ? /* @__PURE__ */ V("span", {
909
+ children: [`${Ne} `, q() ? /* @__PURE__ */ V("span", {
908
910
  className: f(Y.isRequired),
909
911
  children: "\xA0 *"
910
912
  }) : null]
911
913
  }) : null,
912
914
  N && /* @__PURE__ */ V("div", {
913
- className: f(Y.inputUpperRightLabel, G?.upperRightLabel),
914
- style: K?.upperRightLabel,
915
+ className: f(Y.inputUpperRightLabel, ue?.upperRightLabel),
916
+ style: G?.upperRightLabel,
915
917
  children: N
916
918
  }),
917
919
  /* @__PURE__ */ H("div", {
918
- className: f(Y.inputContainer, { [Y.inputContainerMultiline]: W }, G?.container),
919
- style: K?.container,
920
- onMouseEnter: Se,
921
- onMouseLeave: Ce,
920
+ className: f(Y.inputContainer, { [Y.inputContainerMultiline]: W }, ue?.container),
921
+ style: G?.container,
922
+ onMouseEnter: Ce,
923
+ onMouseLeave: we,
922
924
  children: [
923
925
  m,
924
926
  e.cloneElement(U || V(W ? "textarea" : "input", {}), {
925
- ...ue,
927
+ ...de,
926
928
  className: f(Y.inputField, {
927
929
  [Y.inputFieldUppercase]: b,
928
930
  [Y.inputFieldDate]: C === X.Date,
929
931
  [Y.inputFieldDefault]: C !== X.Date,
930
- [Y.inputFieldWithIcon]: Oe,
931
- [Y.inputFieldWithIconLeft]: ke,
932
+ [Y.inputFieldWithIcon]: ke,
933
+ [Y.inputFieldWithIconLeft]: Ae,
932
934
  [Y.inputFieldMultiline]: W,
933
935
  [Y.inputFieldMultilineAutoResize]: W && le
934
- }, G?.input),
936
+ }, ue?.input),
935
937
  name: t,
936
938
  id: t,
937
939
  value: A ? A.value : l,
938
940
  tabIndex: S,
939
- ref: U ? void 0 : ve,
940
- onChange: Ee,
941
- onFocus: we,
942
- onBlur: Te,
941
+ ref: U ? void 0 : ye,
942
+ onChange: De,
943
+ onFocus: Te,
944
+ onBlur: Ee,
943
945
  placeholder: B ? "" : re,
944
946
  autoComplete: ie,
945
947
  onClick: ae,
946
948
  readOnly: oe,
947
- disabled: q,
949
+ disabled: K,
948
950
  ...!W && {
949
- type: De(),
951
+ type: Oe(),
950
952
  min: te,
951
953
  max: ne
952
954
  },
953
955
  ...W && ce !== void 0 && { rows: ce }
954
956
  }),
955
957
  M && /* @__PURE__ */ V("div", {
956
- className: f(Y.inputFieldSuffix, G?.suffix),
957
- style: K?.suffix,
958
+ className: f(Y.inputFieldSuffix, ue?.suffix),
959
+ style: G?.suffix,
958
960
  children: M
959
961
  })
960
962
  ]
961
963
  }),
962
964
  /* @__PURE__ */ V("fieldset", {
963
- className: f(Y.inputFieldset, G?.fieldset, {
964
- [Y.inputContainerBorderFocused]: de,
965
- [Y.inputContainerBorderSearchFocused]: C === X.Search && (de || l),
966
- [Y.inputContainerBorderInvalid]: Me,
967
- [Y.inputContainerBorderError]: Me
965
+ className: f(Y.inputFieldset, ue?.fieldset, {
966
+ [Y.inputContainerBorderFocused]: fe,
967
+ [Y.inputContainerBorderSearchFocused]: C === X.Search && (fe || l),
968
+ [Y.inputContainerBorderInvalid]: J,
969
+ [Y.inputContainerBorderError]: J
968
970
  }),
969
- style: K?.fieldset,
971
+ style: G?.fieldset,
970
972
  children: /* @__PURE__ */ V("legend", {
971
973
  className: f(Y.inputFieldsetLegend, { [Y.inputFieldsetLegendActive]: Fe }),
972
974
  children: /* @__PURE__ */ V("span", { children: Ne })
@@ -980,42 +982,42 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
980
982
  children: Ne
981
983
  }),
982
984
  B && re && /* @__PURE__ */ V("div", {
983
- className: f(Y.inputPlaceholder, de && !Pe && Y.inputPlaceholderShown, W && Y.inputPlaceholderMultiline),
985
+ className: f(Y.inputPlaceholder, fe && !Pe && Y.inputPlaceholderShown, W && Y.inputPlaceholderMultiline),
984
986
  children: re
985
987
  }),
986
988
  /* @__PURE__ */ V(nt, {
987
989
  variant: "error",
988
990
  message: A ? A.getCurrentErrorMessage() : r || "",
989
- isVisible: Me && (de || pe)
991
+ isVisible: J && (fe || me)
990
992
  })
991
993
  ]
992
994
  }),
993
995
  C === X.Phone && /* @__PURE__ */ V(p, {
994
996
  icon: F,
995
- ...Ae
997
+ ...je
996
998
  }),
997
999
  C === X.Email && /* @__PURE__ */ V(p, {
998
1000
  icon: E,
999
- ...Ae
1001
+ ...je
1000
1002
  }),
1001
1003
  C === X.Edit && /* @__PURE__ */ V(p, {
1002
1004
  icon: P,
1003
- ...Ae
1005
+ ...je
1004
1006
  }),
1005
1007
  C === X.Search && /* @__PURE__ */ V(p, {
1006
1008
  icon: ee,
1007
- ...Ae
1009
+ ...je
1008
1010
  }),
1009
1011
  C === X.Password && /* @__PURE__ */ V(p, {
1010
- icon: he ? O : D,
1011
- ...je
1012
+ icon: ge ? O : D,
1013
+ ...Me
1012
1014
  }),
1013
- (L && l && (de || pe) || se) && /* @__PURE__ */ V(p, {
1015
+ (L && l && (fe || me) || se) && /* @__PURE__ */ V(p, {
1014
1016
  icon: z,
1015
1017
  className: Y.inputFieldIcon,
1016
1018
  onClick: R ?? void 0,
1017
- onMouseEnter: () => me(!0),
1018
- onMouseLeave: () => me(!1)
1019
+ onMouseEnter: () => he(!0),
1020
+ onMouseLeave: () => he(!1)
1019
1021
  })
1020
1022
  ]
1021
1023
  });
@@ -1564,10 +1566,10 @@ function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1564
1566
  ref: s,
1565
1567
  children: [a ? /* @__PURE__ */ V("div", {
1566
1568
  className: zt.spinnerWrapper,
1567
- children: /* @__PURE__ */ V(we, { className: zt.spinner })
1569
+ children: /* @__PURE__ */ V(Te, { className: zt.spinner })
1568
1570
  }) : t, l && /* @__PURE__ */ V("div", {
1569
1571
  className: zt.spinnerWrapper,
1570
- children: /* @__PURE__ */ V(we, { className: zt.spinner })
1572
+ children: /* @__PURE__ */ V(Te, { className: zt.spinner })
1571
1573
  })]
1572
1574
  });
1573
1575
  }
@@ -1659,11 +1661,11 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1659
1661
  B.current && (B.current.touched = !0), te(!1), x?.(e);
1660
1662
  }, W = () => k ? k.touched && k.hasError() : !i || !!e, ce = () => !!(s || k?.validators.find((e) => e.validatorId === "required")), le = (e) => {
1661
1663
  k ? (k.set(e), y?.(k.value, c)) : y?.(e, c);
1662
- }, G = w, K = k ? k.value : r, q = W();
1664
+ }, ue = w, G = k ? k.value : r, K = W();
1663
1665
  M.forEach((e) => {
1664
- e.key === K && (G = e.label);
1666
+ e.key === G && (ue = e.label);
1665
1667
  });
1666
- let ue = G || K, de = ue == null || typeof ue == "string" && ue.trim() === "";
1668
+ let de = ue || G, fe = de == null || typeof de == "string" && de.trim() === "";
1667
1669
  return /* @__PURE__ */ H("div", {
1668
1670
  ...L,
1669
1671
  className: f(t, Z.dropdownLabel, Z.dropdown, { [Z.dropdownLabelColumn]: !l }),
@@ -1673,7 +1675,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1673
1675
  /* @__PURE__ */ V(ae, {
1674
1676
  onChange: (e) => le((e || { key: "" }).key),
1675
1677
  itemToString: (e) => e ? String(e.key) : "",
1676
- selectedItem: M.find((e) => e.key === K) ?? null,
1678
+ selectedItem: M.find((e) => e.key === G) ?? null,
1677
1679
  stateReducer: (e, t) => I && Object.prototype.hasOwnProperty.call(t, "isOpen") ? {
1678
1680
  ...t,
1679
1681
  highlightedIndex: t.isOpen ? M.indexOf(e.selectedItem) : null
@@ -1697,7 +1699,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1697
1699
  t().onClick?.(e), v?.(e);
1698
1700
  },
1699
1701
  ref: ee,
1700
- children: de ? "\xA0" : ue
1702
+ children: fe ? "\xA0" : de
1701
1703
  }),
1702
1704
  /* @__PURE__ */ V("button", {
1703
1705
  type: "button",
@@ -1738,20 +1740,20 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1738
1740
  className: f(Z.dropdownFieldset, {
1739
1741
  [Z.dropdownBorderPlain]: F,
1740
1742
  [Z.dropdownBorderFocused]: R,
1741
- [Z.dropdownBorderInvalid]: q,
1742
- [Z.dropdownBorderError]: q
1743
+ [Z.dropdownBorderInvalid]: K,
1744
+ [Z.dropdownBorderError]: K
1743
1745
  }),
1744
1746
  children: /* @__PURE__ */ V("legend", {
1745
- className: f(Z.dropdownFieldsetLegend, { [Z.dropdownFieldsetLegendActive]: N && (R || !de) }),
1747
+ className: f(Z.dropdownFieldsetLegend, { [Z.dropdownFieldsetLegendActive]: N && (R || !fe) }),
1746
1748
  children: /* @__PURE__ */ V("span", { children: n })
1747
1749
  })
1748
1750
  }),
1749
1751
  N && n && /* @__PURE__ */ V("div", {
1750
- className: f(Z.dropdownMatLabel, { [Z.dropdownMatLabelFloating]: R || !de }),
1752
+ className: f(Z.dropdownMatLabel, { [Z.dropdownMatLabelFloating]: R || !fe }),
1751
1753
  children: n
1752
1754
  }),
1753
1755
  N && P && /* @__PURE__ */ V("div", {
1754
- className: f(Z.dropdownPlaceholder, R && !G && Z.dropdownPlaceholderShown),
1756
+ className: f(Z.dropdownPlaceholder, R && !ue && Z.dropdownPlaceholderShown),
1755
1757
  children: P
1756
1758
  })
1757
1759
  ]
@@ -1767,7 +1769,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1767
1769
  /* @__PURE__ */ V(nt, {
1768
1770
  variant: "error",
1769
1771
  message: k ? k.getCurrentErrorMessage() : e || "",
1770
- isVisible: q && (R || ne)
1772
+ isVisible: K && (R || ne)
1771
1773
  })
1772
1774
  ]
1773
1775
  });
@@ -1829,7 +1831,7 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1829
1831
  key: e + t,
1830
1832
  label: e + t
1831
1833
  }));
1832
- }, G = T(), K = re(), q = /* @__PURE__ */ H(B, { children: [
1834
+ }, ue = T(), G = re(), K = /* @__PURE__ */ H(B, { children: [
1833
1835
  o ? null : /* @__PURE__ */ H("div", {
1834
1836
  className: Wt.datePickerHeader,
1835
1837
  children: [
@@ -1873,17 +1875,17 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1873
1875
  month: D,
1874
1876
  year: k,
1875
1877
  onSelect: U,
1876
- selectionStart: C ?? G,
1877
- selectionEnd: w ?? G,
1878
+ selectionStart: C ?? ue,
1879
+ selectionEnd: w ?? ue,
1878
1880
  minDate: p,
1879
1881
  maxDate: m
1880
1882
  }),
1881
- g && /* @__PURE__ */ V(Me, {
1883
+ g && /* @__PURE__ */ V(J, {
1882
1884
  onClick: () => U(null),
1883
1885
  children: "Clear"
1884
1886
  }),
1885
1887
  h
1886
- ] }), ue = i ? null : /* @__PURE__ */ V(rt, {
1888
+ ] }), de = i ? null : /* @__PURE__ */ V(rt, {
1887
1889
  readOnly: s,
1888
1890
  label: `${y}${ie() ? " *" : ""}`,
1889
1891
  value: N,
@@ -1900,29 +1902,29 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1900
1902
  onFocus: () => I(!0),
1901
1903
  onMouseEnter: () => L(!0),
1902
1904
  onMouseLeave: () => L(!1),
1903
- isValid: !K
1904
- }), de = c ? q : s ? /* @__PURE__ */ V(gt, {
1905
+ isValid: !G
1906
+ }), fe = c ? K : s ? /* @__PURE__ */ V(gt, {
1905
1907
  hideHeader: !0,
1906
1908
  isOpen: j,
1907
1909
  onClose: () => M(!1),
1908
- children: q
1910
+ children: K
1909
1911
  }) : /* @__PURE__ */ V(et, {
1910
1912
  isOpen: j,
1911
1913
  onOpenChange: (e) => M(e),
1912
- content: q,
1914
+ content: K,
1913
1915
  align: Qe.Left,
1914
1916
  dontCloseOnChildClick: !0,
1915
- children: ue
1917
+ children: de
1916
1918
  });
1917
1919
  return /* @__PURE__ */ H("div", {
1918
1920
  className: f(Wt.datePicker, e),
1919
1921
  children: [
1920
- (s || c) && ue,
1921
- de,
1922
+ (s || c) && de,
1923
+ fe,
1922
1924
  /* @__PURE__ */ V(nt, {
1923
1925
  variant: "error",
1924
1926
  message: r ? r.getCurrentErrorMessage() : x || "",
1925
- isVisible: K && (F || ee)
1927
+ isVisible: G && (F || ee)
1926
1928
  })
1927
1929
  ]
1928
1930
  });
@@ -1949,8 +1951,8 @@ var Jt = {
1949
1951
  default: null,
1950
1952
  mini: Jt.fabSizeMini
1951
1953
  };
1952
- function Xt({ children: e = null, size: t = "default", className: n = "", styleType: r = Te.Primary, onClick: i = () => {} }) {
1953
- return /* @__PURE__ */ V(Me, {
1954
+ function Xt({ children: e = null, size: t = "default", className: n = "", styleType: r = Ee.Primary, onClick: i = () => {} }) {
1955
+ return /* @__PURE__ */ V(J, {
1954
1956
  styleType: r,
1955
1957
  className: f(Jt.fab, Yt[t], n),
1956
1958
  onClick: i,
@@ -2110,7 +2112,7 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2110
2112
  children: [
2111
2113
  n && /* @__PURE__ */ V(p, { icon: n }),
2112
2114
  r ?? null,
2113
- /* @__PURE__ */ V(ke, {})
2115
+ /* @__PURE__ */ V(Ae, {})
2114
2116
  ]
2115
2117
  }, e))
2116
2118
  })]
@@ -2236,11 +2238,11 @@ var un = {
2236
2238
  //#endregion
2237
2239
  //#region package/common/kanbanBoard/KanbanItem.tsx
2238
2240
  function dn({ id: e, children: t }) {
2239
- let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = de({ id: e });
2241
+ let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = fe({ id: e });
2240
2242
  return /* @__PURE__ */ V("div", {
2241
2243
  ref: i,
2242
2244
  style: {
2243
- transform: pe.Transform.toString(a),
2245
+ transform: me.Transform.toString(a),
2244
2246
  transition: o
2245
2247
  },
2246
2248
  className: f(un.item, s && un.itemDragging),
@@ -2259,9 +2261,9 @@ function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a
2259
2261
  className: f(un.columnHeader, o?.header),
2260
2262
  style: s?.header,
2261
2263
  children: t
2262
- }), /* @__PURE__ */ V(q, {
2264
+ }), /* @__PURE__ */ V(K, {
2263
2265
  items: n,
2264
- strategy: fe,
2266
+ strategy: pe,
2265
2267
  children: /* @__PURE__ */ V("div", {
2266
2268
  ref: c,
2267
2269
  className: f(un.columnItems, o?.items),
@@ -2277,7 +2279,7 @@ function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a
2277
2279
  //#endregion
2278
2280
  //#region package/common/kanbanBoard/KanbanBoard.tsx
2279
2281
  function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2280
- let [c, l] = d(null), [u, p] = d(null), m = K(G(W, { activationConstraint: { distance: 8 } })), h = u ?? e;
2282
+ let [c, l] = d(null), [u, p] = d(null), m = G(ue(W, { activationConstraint: { distance: 8 } })), h = u ?? e;
2281
2283
  function g(e, t) {
2282
2284
  return e.findIndex((e) => e.itemIds.includes(t));
2283
2285
  }
@@ -2309,7 +2311,7 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2309
2311
  let e = n[a], t = e.itemIds.indexOf(r), o = e.itemIds.indexOf(i);
2310
2312
  t !== -1 && o !== -1 && t !== o && (n[a] = {
2311
2313
  ...e,
2312
- itemIds: ue(e.itemIds, t, o)
2314
+ itemIds: de(e.itemIds, t, o)
2313
2315
  });
2314
2316
  } else {
2315
2317
  n[a].itemIds = n[a].itemIds.filter((e) => e !== r);
@@ -2463,7 +2465,7 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2463
2465
  errorMessage: n ? n.getCurrentErrorMessage() ?? "" : i ?? "",
2464
2466
  placeholder: m,
2465
2467
  suffix: k,
2466
- customInput: /* @__PURE__ */ V(me, {
2468
+ customInput: /* @__PURE__ */ V(he, {
2467
2469
  onValueChange: (e) => T(e.floatValue),
2468
2470
  allowNegative: h == null ? o : !1,
2469
2471
  decimalSeparator: s,
@@ -3110,7 +3112,7 @@ function tr({ className: e }) {
3110
3112
  } : t;
3111
3113
  }).filter((e) => e.wallIndex !== -1));
3112
3114
  }
3113
- function G(e) {
3115
+ function ue(e) {
3114
3116
  if (e.button === 1) {
3115
3117
  e.preventDefault();
3116
3118
  let t = z.current;
@@ -3200,7 +3202,7 @@ function tr({ className: e }) {
3200
3202
  }
3201
3203
  }
3202
3204
  }
3203
- function K(e) {
3205
+ function G(e) {
3204
3206
  if (o !== "select" || g) return;
3205
3207
  let n = U(e);
3206
3208
  if (!n) return;
@@ -3209,7 +3211,7 @@ function tr({ className: e }) {
3209
3211
  let i = se(n, r);
3210
3212
  i && (e.preventDefault(), le(r.id, i.index));
3211
3213
  }
3212
- function q(e) {
3214
+ function K(e) {
3213
3215
  if (te.current) {
3214
3216
  let { startClient: t, origPan: n, scaleX: r, scaleY: i } = te.current;
3215
3217
  F({
@@ -3268,7 +3270,7 @@ function tr({ className: e }) {
3268
3270
  }
3269
3271
  }
3270
3272
  }
3271
- function ue(e) {
3273
+ function de(e) {
3272
3274
  if (te.current) {
3273
3275
  te.current = null;
3274
3276
  return;
@@ -3286,29 +3288,29 @@ function tr({ className: e }) {
3286
3288
  ee.current = null, I.current = null;
3287
3289
  }
3288
3290
  }
3289
- function de(e) {
3291
+ function fe(e) {
3290
3292
  l && n((t) => t.map((t) => t.id === l ? {
3291
3293
  ...t,
3292
3294
  name: e
3293
3295
  } : t));
3294
3296
  }
3295
- function fe(e, t) {
3297
+ function pe(e, t) {
3296
3298
  let n = parseFloat(t);
3297
3299
  isNaN(n) || n <= 0 || i((t) => t.map((t) => t.id === e ? {
3298
3300
  ...t,
3299
3301
  width: n
3300
3302
  } : t));
3301
3303
  }
3302
- function pe() {
3304
+ function me() {
3303
3305
  l && (n((e) => e.filter((e) => e.id !== l)), i((e) => e.filter((e) => e.roomId !== l)), _(null), m(null));
3304
3306
  }
3305
- function me(e) {
3307
+ function he(e) {
3306
3308
  i((t) => t.filter((t) => t.id !== e));
3307
3309
  }
3308
- function he(e) {
3310
+ function ge(e) {
3309
3311
  c(e), _(null), E([]), O(null), y(null), x(null);
3310
3312
  }
3311
- function ge(e) {
3313
+ function _e(e) {
3312
3314
  let t = e.target.files?.[0];
3313
3315
  if (!t) return;
3314
3316
  e.target.value = "";
@@ -3326,12 +3328,12 @@ function tr({ className: e }) {
3326
3328
  }));
3327
3329
  }, r.readAsText(t);
3328
3330
  }
3329
- let _e = o === "rect" && v && b ? {
3331
+ let ve = o === "rect" && v && b ? {
3330
3332
  x: Math.min(v.x, b.x),
3331
3333
  y: Math.min(v.y, b.y),
3332
3334
  w: Math.abs(b.x - v.x),
3333
3335
  h: Math.abs(b.y - v.y)
3334
- } : null, ve = l ? t.find((e) => e.id === l) ?? null : null, ye = g ? t.find((e) => e.id === g) ?? null : null, be = g ? r.filter((e) => e.roomId === g) : [], xe = [
3336
+ } : null, ye = l ? t.find((e) => e.id === l) ?? null : null, be = g ? t.find((e) => e.id === g) ?? null : null, xe = g ? r.filter((e) => e.roomId === g) : [], Se = [
3335
3337
  {
3336
3338
  t: "select",
3337
3339
  icon: A,
@@ -3347,17 +3349,17 @@ function tr({ className: e }) {
3347
3349
  icon: T,
3348
3350
  label: "Polygon room"
3349
3351
  }
3350
- ], J = 400 / k, Se = 300 / k, Ce = g ? Q.roomDrawerCanvasDoor : o === "select" ? Q.roomDrawerCanvasSelect : void 0;
3352
+ ], q = 400 / k, Ce = 300 / k, we = g ? Q.roomDrawerCanvasDoor : o === "select" ? Q.roomDrawerCanvasSelect : void 0;
3351
3353
  return /* @__PURE__ */ H("div", {
3352
3354
  className: f(Q.roomDrawer, e),
3353
3355
  children: [
3354
3356
  /* @__PURE__ */ H("div", {
3355
3357
  className: Q.roomDrawerToolbar,
3356
3358
  children: [
3357
- xe.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ V("button", {
3359
+ Se.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ V("button", {
3358
3360
  title: n,
3359
3361
  className: f(Q.roomDrawerToolbarBtn, e === o && !g && Q.roomDrawerToolbarBtnActive),
3360
- onClick: () => he(e),
3362
+ onClick: () => ge(e),
3361
3363
  children: /* @__PURE__ */ V(p, { icon: t })
3362
3364
  }, e)),
3363
3365
  /* @__PURE__ */ V("div", { className: Q.roomDrawerToolbarSep }),
@@ -3405,18 +3407,18 @@ function tr({ className: e }) {
3405
3407
  type: "file",
3406
3408
  accept: ".svg,image/svg+xml",
3407
3409
  style: { display: "none" },
3408
- onChange: ge
3410
+ onChange: _e
3409
3411
  })
3410
3412
  ]
3411
3413
  }),
3412
3414
  /* @__PURE__ */ H("svg", {
3413
3415
  ref: z,
3414
- className: f(Q.roomDrawerCanvas, Ce),
3415
- viewBox: `${P.x} ${P.y} ${J} ${Se}`,
3416
- onMouseDown: G,
3417
- onMouseMove: q,
3418
- onMouseUp: ue,
3419
- onDoubleClick: K,
3416
+ className: f(Q.roomDrawerCanvas, we),
3417
+ viewBox: `${P.x} ${P.y} ${q} ${Ce}`,
3418
+ onMouseDown: ue,
3419
+ onMouseMove: K,
3420
+ onMouseUp: de,
3421
+ onDoubleClick: G,
3420
3422
  children: [
3421
3423
  /* @__PURE__ */ V("defs", { children: /* @__PURE__ */ V("pattern", {
3422
3424
  id: "rd-grid",
@@ -3432,8 +3434,8 @@ function tr({ className: e }) {
3432
3434
  /* @__PURE__ */ V("rect", {
3433
3435
  x: P.x,
3434
3436
  y: P.y,
3435
- width: J,
3436
- height: Se,
3437
+ width: q,
3438
+ height: Ce,
3437
3439
  fill: "url(#rd-grid)"
3438
3440
  }),
3439
3441
  t.map((e) => {
@@ -3469,7 +3471,7 @@ function tr({ className: e }) {
3469
3471
  className: Q.doorGap
3470
3472
  }, e.id) : null;
3471
3473
  }),
3472
- g && be.map((e) => {
3474
+ g && xe.map((e) => {
3473
3475
  let n = t.find((t) => t.id === e.roomId);
3474
3476
  if (!n) return null;
3475
3477
  let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Rn(r, i, e.t, e.width);
@@ -3488,17 +3490,17 @@ function tr({ className: e }) {
3488
3490
  }
3489
3491
  }, e.id);
3490
3492
  }),
3491
- o === "select" && !g && ve && ve.points.map((e, t) => /* @__PURE__ */ V("circle", {
3493
+ o === "select" && !g && ye && ye.points.map((e, t) => /* @__PURE__ */ V("circle", {
3492
3494
  cx: e.x,
3493
3495
  cy: e.y,
3494
3496
  r: 3.5,
3495
3497
  className: Q.vertexHandle
3496
3498
  }, t)),
3497
- _e && /* @__PURE__ */ V("rect", {
3498
- x: _e.x,
3499
- y: _e.y,
3500
- width: _e.w,
3501
- height: _e.h,
3499
+ ve && /* @__PURE__ */ V("rect", {
3500
+ x: ve.x,
3501
+ y: ve.y,
3502
+ width: ve.w,
3503
+ height: ve.h,
3502
3504
  className: Q.preview
3503
3505
  }),
3504
3506
  o === "polygon" && S.length > 0 && /* @__PURE__ */ H(B, { children: [
@@ -3521,7 +3523,7 @@ function tr({ className: e }) {
3521
3523
  ] })
3522
3524
  ]
3523
3525
  }),
3524
- ve && !g && /* @__PURE__ */ H("div", {
3526
+ ye && !g && /* @__PURE__ */ H("div", {
3525
3527
  className: Q.roomDrawerInfo,
3526
3528
  children: [
3527
3529
  /* @__PURE__ */ V("span", {
@@ -3530,25 +3532,25 @@ function tr({ className: e }) {
3530
3532
  }),
3531
3533
  /* @__PURE__ */ V("input", {
3532
3534
  className: Q.roomDrawerInfoInput,
3533
- value: ve.name,
3534
- onChange: (e) => de(e.target.value),
3535
+ value: ye.name,
3536
+ onChange: (e) => fe(e.target.value),
3535
3537
  placeholder: "Room name"
3536
3538
  }),
3537
3539
  /* @__PURE__ */ H("button", {
3538
3540
  className: Q.roomDrawerInfoDoorsBtn,
3539
- onClick: () => _(ve.id),
3541
+ onClick: () => _(ye.id),
3540
3542
  title: "Edit doors",
3541
- children: [/* @__PURE__ */ V(p, { icon: C }), /* @__PURE__ */ V("span", { children: r.filter((e) => e.roomId === ve.id).length })]
3543
+ children: [/* @__PURE__ */ V(p, { icon: C }), /* @__PURE__ */ V("span", { children: r.filter((e) => e.roomId === ye.id).length })]
3542
3544
  }),
3543
3545
  /* @__PURE__ */ V("button", {
3544
3546
  className: Q.roomDrawerInfoDelete,
3545
- onClick: pe,
3547
+ onClick: me,
3546
3548
  title: "Delete room",
3547
3549
  children: /* @__PURE__ */ V(p, { icon: R })
3548
3550
  })
3549
3551
  ]
3550
3552
  }),
3551
- g && ye && /* @__PURE__ */ H("div", {
3553
+ g && be && /* @__PURE__ */ H("div", {
3552
3554
  className: Q.roomDrawerDoorPanel,
3553
3555
  children: [/* @__PURE__ */ H("div", {
3554
3556
  className: Q.roomDrawerDoorPanelHeader,
@@ -3559,7 +3561,7 @@ function tr({ className: e }) {
3559
3561
  }),
3560
3562
  /* @__PURE__ */ V("span", {
3561
3563
  className: Q.roomDrawerDoorPanelTitle,
3562
- children: ye.name ? `Doors · ${ye.name}` : "Doors"
3564
+ children: be.name ? `Doors · ${be.name}` : "Doors"
3563
3565
  }),
3564
3566
  /* @__PURE__ */ H("button", {
3565
3567
  className: Q.roomDrawerDoorPanelDone,
@@ -3570,10 +3572,10 @@ function tr({ className: e }) {
3570
3572
  ]
3571
3573
  }), /* @__PURE__ */ H("div", {
3572
3574
  className: Q.roomDrawerDoorPanelList,
3573
- children: [be.length === 0 && /* @__PURE__ */ V("span", {
3575
+ children: [xe.length === 0 && /* @__PURE__ */ V("span", {
3574
3576
  className: Q.roomDrawerDoorPanelEmpty,
3575
3577
  children: "Click on a wall to add a door"
3576
- }), be.map((e, t) => /* @__PURE__ */ H("div", {
3578
+ }), xe.map((e, t) => /* @__PURE__ */ H("div", {
3577
3579
  className: Q.roomDrawerDoorPanelItem,
3578
3580
  children: [
3579
3581
  /* @__PURE__ */ H("span", {
@@ -3589,11 +3591,11 @@ function tr({ className: e }) {
3589
3591
  type: "number",
3590
3592
  min: 1,
3591
3593
  value: e.width,
3592
- onChange: (t) => fe(e.id, t.target.value)
3594
+ onChange: (t) => pe(e.id, t.target.value)
3593
3595
  }),
3594
3596
  /* @__PURE__ */ V("button", {
3595
3597
  className: Q.roomDrawerInfoDelete,
3596
- onClick: () => me(e.id),
3598
+ onClick: () => he(e.id),
3597
3599
  title: "Delete door",
3598
3600
  children: /* @__PURE__ */ V(p, { icon: R })
3599
3601
  })
@@ -3967,12 +3969,12 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3967
3969
  className: f(vr.tenorPicker, e),
3968
3970
  children: [
3969
3971
  /* @__PURE__ */ H("div", {
3970
- className: xe.actionButtons,
3971
- children: [/* @__PURE__ */ V(Me, {
3972
+ className: Se.actionButtons,
3973
+ children: [/* @__PURE__ */ V(J, {
3972
3974
  onClick: () => v(!0),
3973
3975
  children: "Pick gif"
3974
- }), i && /* @__PURE__ */ V(Me, {
3975
- styleType: Te.Delete,
3976
+ }), i && /* @__PURE__ */ V(J, {
3977
+ styleType: Ee.Delete,
3976
3978
  onClick: () => x(null),
3977
3979
  children: "Remove gif"
3978
3980
  })]
@@ -4004,8 +4006,8 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
4004
4006
  content: /* @__PURE__ */ H(B, { children: [S(), C()] }),
4005
4007
  children: w()
4006
4008
  }),
4007
- i && /* @__PURE__ */ V(Me, {
4008
- styleType: Te.Delete,
4009
+ i && /* @__PURE__ */ V(J, {
4010
+ styleType: Ee.Delete,
4009
4011
  onClick: () => x(null),
4010
4012
  children: "Remove gif"
4011
4013
  }),
@@ -4501,13 +4503,13 @@ function Kr(e, t) {
4501
4503
  //#endregion
4502
4504
  //#region package/common/virtualList/useVirtualWindow.ts
4503
4505
  function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l, overscan: f, onLoadMore: p, loadMoreThreshold: m, forwardedRef: h }) {
4504
- let [g, _] = d(0), [v, y] = d(0), [b, x] = d(/* @__PURE__ */ new Map()), [S, C] = d(!1), w = u(!1), T = u(null), E = u(null), D = u([]), O = u(null), k = u(0), A = u([]), [j] = d(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4505
- x((t) => {
4506
+ let [g, _] = d(0), [v, y] = d(0), [b, x] = d(0), [S, C] = d(/* @__PURE__ */ new Map()), [w, T] = d(!1), E = u(!1), D = u(null), O = u(null), k = u([]), A = u(null), j = u(0), M = u([]), [N] = d(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
4507
+ C((t) => {
4506
4508
  let n = null;
4507
4509
  for (let r of e) {
4508
4510
  let e = r.target, i = Number(e.dataset.index);
4509
4511
  if (Number.isNaN(i)) continue;
4510
- let a = A.current[i];
4512
+ let a = M.current[i];
4511
4513
  if (a === void 0) continue;
4512
4514
  let o = r.borderBoxSize?.[0], s = o ? Math.round(o.blockSize) : e.offsetHeight;
4513
4515
  t.get(a) !== s && (n ||= new Map(t), n.set(a, s));
@@ -4515,44 +4517,46 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4515
4517
  return n ?? t;
4516
4518
  });
4517
4519
  }));
4518
- a(() => () => j?.disconnect(), [j]), s(() => {
4519
- let e = T.current;
4520
+ a(() => () => N?.disconnect(), [N]), s(() => {
4521
+ let e = D.current;
4520
4522
  if (!e) return;
4521
- y(e.clientHeight);
4522
- let t = new ResizeObserver(() => y(e.clientHeight));
4523
+ y(e.clientHeight), x(e.clientWidth);
4524
+ let t = new ResizeObserver(() => {
4525
+ y(e.clientHeight), x(e.clientWidth);
4526
+ });
4523
4527
  return t.observe(e), () => t.disconnect();
4524
4528
  }, []);
4525
- let M = i((e) => {
4529
+ let P = i((e) => {
4526
4530
  let t = e.currentTarget;
4527
- k.current = t.scrollTop, O.current ??= requestAnimationFrame(() => {
4528
- O.current = null, _(k.current);
4529
- }), p && !w.current && t.scrollTop + t.clientHeight >= t.scrollHeight - m && (w.current = !0, C(!0), p().finally(() => {
4530
- w.current = !1, C(!1);
4531
+ j.current = t.scrollTop, A.current ??= requestAnimationFrame(() => {
4532
+ A.current = null, _(j.current);
4533
+ }), p && !E.current && t.scrollTop + t.clientHeight >= t.scrollHeight - m && (E.current = !0, T(!0), p().finally(() => {
4534
+ E.current = !1, T(!1);
4531
4535
  }));
4532
4536
  }, [p, m]);
4533
4537
  a(() => () => {
4534
- O.current != null && cancelAnimationFrame(O.current);
4538
+ A.current != null && cancelAnimationFrame(A.current);
4535
4539
  }, []), s(() => {
4536
- A.current = t;
4540
+ M.current = t;
4537
4541
  });
4538
- let { offsets: N, totalHeight: P } = c(() => Lr(t, b, r, l), [
4542
+ let { offsets: F, totalHeight: I } = c(() => Lr(t, S, r, l), [
4539
4543
  t,
4540
- b,
4544
+ S,
4541
4545
  r,
4542
4546
  l
4543
4547
  ]);
4544
4548
  s(() => {
4545
- let t = T.current, n = D.current;
4546
- if (D.current = N, !t || n.length === 0) return;
4549
+ let t = D.current, n = k.current;
4550
+ if (k.current = F, !t || n.length === 0) return;
4547
4551
  let r = t.scrollTop;
4548
4552
  if (r <= 0) return;
4549
4553
  let i = Rr(n, r, n.length - 1);
4550
4554
  if (i >= e.length) return;
4551
- let a = r - n[i], o = N[i] + a;
4552
- Math.abs(o - r) > .5 && (t.scrollTop = o, k.current = o, _(o));
4553
- }, [N, e.length]), o(h, () => {
4555
+ let a = r - n[i], o = F[i] + a;
4556
+ Math.abs(o - r) > .5 && (t.scrollTop = o, j.current = o, _(o));
4557
+ }, [F, e.length]), o(h, () => {
4554
4558
  function t(e, t) {
4555
- let n = T.current;
4559
+ let n = D.current;
4556
4560
  if (!n) return;
4557
4561
  let r = Math.max(0, e);
4558
4562
  typeof n.scrollTo == "function" ? n.scrollTo({
@@ -4561,9 +4565,9 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4561
4565
  }) : n.scrollTop = r;
4562
4566
  }
4563
4567
  function r(n, r) {
4564
- let i = T.current;
4568
+ let i = D.current;
4565
4569
  if (!i || e.length === 0) return;
4566
- let a = Math.max(0, Math.min(n, e.length - 1)), o = N[a] ?? 0, s = (N[a + 1] ?? o) - o, c = E.current?.offsetHeight ?? 0, l = Math.max(0, i.clientHeight - c), u = r?.align ?? "start", d = o - c;
4570
+ let a = Math.max(0, Math.min(n, e.length - 1)), o = F[a] ?? 0, s = (F[a + 1] ?? o) - o, c = O.current?.offsetHeight ?? 0, l = Math.max(0, i.clientHeight - c), u = r?.align ?? "start", d = o - c;
4567
4571
  u === "center" ? d -= (l - s) / 2 : u === "end" && (d -= l - s), t(d, r?.behavior);
4568
4572
  }
4569
4573
  return {
@@ -4575,32 +4579,33 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4575
4579
  scrollToTop(e) {
4576
4580
  t(0, e?.behavior);
4577
4581
  },
4578
- getScrollElement: () => T.current
4582
+ getScrollElement: () => D.current
4579
4583
  };
4580
4584
  }, [
4581
4585
  e,
4582
- N,
4586
+ F,
4583
4587
  n
4584
4588
  ]);
4585
- let { startIndex: F, endIndex: I } = c(() => zr(N, g, v, f, e.length), [
4586
- N,
4589
+ let { startIndex: ee, endIndex: L } = c(() => zr(F, g, v, f, e.length), [
4590
+ F,
4587
4591
  g,
4588
4592
  v,
4589
4593
  f,
4590
4594
  e.length
4591
4595
  ]);
4592
4596
  return {
4593
- rootRef: T,
4594
- headerRef: E,
4595
- rowObserver: j,
4596
- keysRef: A,
4597
- offsets: N,
4598
- totalHeight: P,
4597
+ rootRef: D,
4598
+ headerRef: O,
4599
+ rowObserver: N,
4600
+ keysRef: M,
4601
+ offsets: F,
4602
+ totalHeight: I,
4599
4603
  containerHeight: v,
4600
- startIndex: F,
4601
- endIndex: I,
4602
- handleScroll: M,
4603
- showLoadMoreSpinner: S
4604
+ containerWidth: b,
4605
+ startIndex: ee,
4606
+ endIndex: L,
4607
+ handleScroll: P,
4608
+ showLoadMoreSpinner: w
4604
4609
  };
4605
4610
  }
4606
4611
  //#endregion
@@ -4629,14 +4634,14 @@ function Jr({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionC
4629
4634
  }
4630
4635
  //#endregion
4631
4636
  //#region package/common/virtualList/useColumns.ts
4632
- function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisibleColumnsChange: i, persistColumnsKey: o, showColumnToggle: c, rootRef: l, startIndex: f, endIndex: p, containerHeight: m }) {
4633
- let h = r !== void 0, [g, _] = d(!1), v = u(null), [y, b] = d({}), [x, S] = d(() => {
4637
+ function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisibleColumnsChange: i, persistColumnsKey: o, showColumnToggle: c, rootRef: l, startIndex: f, endIndex: p, containerHeight: m, containerWidth: h }) {
4638
+ let g = r !== void 0, [_, v] = d(!1), y = u(null), [b, x] = d({}), [S, C] = d(() => {
4634
4639
  let t = Gr(o);
4635
4640
  return new Set((e ?? []).filter((e) => Kr(e, t)).map((e) => e.key));
4636
- }), C = u(new Set((e ?? []).map((e) => e.key)));
4641
+ }), w = u(new Set((e ?? []).map((e) => e.key)));
4637
4642
  a(() => {
4638
- if (h) return;
4639
- let t = e ?? [], n = new Set(t.map((e) => e.key)), r = C.current, i = n.size === r.size;
4643
+ if (g) return;
4644
+ let t = e ?? [], n = new Set(t.map((e) => e.key)), r = w.current, i = n.size === r.size;
4640
4645
  if (i) {
4641
4646
  for (let e of n) if (!r.has(e)) {
4642
4647
  i = !1;
@@ -4644,53 +4649,53 @@ function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
4644
4649
  }
4645
4650
  }
4646
4651
  if (i) return;
4647
- C.current = n;
4652
+ w.current = n;
4648
4653
  let a = Gr(o);
4649
- S((e) => {
4654
+ C((e) => {
4650
4655
  let n = /* @__PURE__ */ new Set();
4651
4656
  for (let i of t) r.has(i.key) ? e.has(i.key) && n.add(i.key) : Kr(i, a) && n.add(i.key);
4652
4657
  return n;
4653
4658
  });
4654
4659
  }, [
4655
4660
  e,
4656
- h,
4661
+ g,
4657
4662
  o
4658
4663
  ]), a(() => {
4659
- if (h || !o || typeof window > "u") return;
4664
+ if (g || !o || typeof window > "u") return;
4660
4665
  let t = e ?? [];
4661
- if (!(t.length === 0 || x.size === 0)) try {
4666
+ if (!(t.length === 0 || S.size === 0)) try {
4662
4667
  window.localStorage.setItem(Wr + o, JSON.stringify({
4663
- visible: [...x],
4668
+ visible: [...S],
4664
4669
  known: t.map((e) => e.key)
4665
4670
  }));
4666
4671
  } catch {}
4667
4672
  }, [
4668
- x,
4673
+ S,
4669
4674
  e,
4670
- h,
4675
+ g,
4671
4676
  o
4672
4677
  ]);
4673
- let w = h ? new Set(r) : x;
4678
+ let T = g ? new Set(r) : S;
4674
4679
  a(() => {
4675
- if (!g) return;
4680
+ if (!_) return;
4676
4681
  function e(e) {
4677
- v.current && !v.current.contains(e.target) && _(!1);
4682
+ y.current && !y.current.contains(e.target) && v(!1);
4678
4683
  }
4679
4684
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
4680
- }, [g]);
4681
- let T = !!e?.length, E = T ? e.filter((e) => w.has(e.key)) : [], D = T ? e.filter((e) => !e.defaultHidden && !w.has(e.key)).length : 0, O = T ? `${n && T ? "40px " : ""}${Ur(E, y)}` : void 0, k = c !== !1 && T, A = E.filter((e) => e.width.type === "fit"), j = A.length > 0, M = A.map((e) => e.key).join("|"), [N, P] = d({
4682
- key: M,
4685
+ }, [_]);
4686
+ let E = !!e?.length, D = E ? e.filter((e) => T.has(e.key)) : [], O = E ? e.filter((e) => !e.defaultHidden && !T.has(e.key)).length : 0, k = E ? `${n && E ? "40px " : ""}${Ur(D, b)}` : void 0, A = c !== !1 && E, j = D.filter((e) => e.width.type === "fit"), M = j.length > 0, N = j.map((e) => e.key).join("|"), [P, F] = d({
4687
+ key: N,
4683
4688
  items: t
4684
4689
  });
4685
- (N.key !== M || N.items !== t) && (P({
4686
- key: M,
4690
+ (P.key !== N || P.items !== t) && (F({
4691
+ key: N,
4687
4692
  items: t
4688
- }), Object.keys(y).length > 0 && b({})), s(() => {
4689
- if (!j) return;
4693
+ }), Object.keys(b).length > 0 && x({})), s(() => {
4694
+ if (!M) return;
4690
4695
  let e = l.current;
4691
- e && b((t) => {
4696
+ e && x((t) => {
4692
4697
  let n = !1, r = { ...t };
4693
- for (let i of A) {
4698
+ for (let i of j) {
4694
4699
  let a = 0;
4695
4700
  if (e.querySelectorAll(`[data-fit-key="${i.key}"]`).forEach((e) => {
4696
4701
  let t = e, n = t.scrollWidth > t.clientWidth && parseFloat(getComputedStyle(t).paddingRight) || 0, r = t.scrollWidth + n;
@@ -4702,33 +4707,34 @@ function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
4702
4707
  return n ? r : t;
4703
4708
  });
4704
4709
  }, [
4705
- j,
4706
4710
  M,
4707
- y,
4711
+ N,
4712
+ b,
4708
4713
  f,
4709
4714
  p,
4710
- m
4715
+ m,
4716
+ h
4711
4717
  ]);
4712
- function F(e) {
4713
- let t = new Set(w);
4718
+ function I(e) {
4719
+ let t = new Set(T);
4714
4720
  if (t.has(e)) {
4715
4721
  if (t.size <= 1) return;
4716
4722
  t.delete(e);
4717
4723
  } else t.add(e);
4718
4724
  let n = [...t];
4719
- h || S(t), i?.(n);
4725
+ g || C(t), i?.(n);
4720
4726
  }
4721
4727
  return {
4722
- hasColumns: T,
4723
- visibleColumns: E,
4724
- columnTemplate: O,
4725
- shouldShowToggle: k,
4726
- effectiveVisible: w,
4727
- manuallyHiddenCount: D,
4728
- toggleOpen: g,
4729
- setToggleOpen: _,
4730
- toggleRef: v,
4731
- handleToggleColumn: F
4728
+ hasColumns: E,
4729
+ visibleColumns: D,
4730
+ columnTemplate: k,
4731
+ shouldShowToggle: A,
4732
+ effectiveVisible: T,
4733
+ manuallyHiddenCount: O,
4734
+ toggleOpen: _,
4735
+ setToggleOpen: v,
4736
+ toggleRef: y,
4737
+ handleToggleColumn: I
4732
4738
  };
4733
4739
  }
4734
4740
  //#endregion
@@ -4837,14 +4843,14 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4837
4843
  e.cancelable && e.preventDefault(), se(), U(t.clientX);
4838
4844
  }
4839
4845
  }, [U, se]);
4840
- function G(n, r) {
4846
+ function ue(n, r) {
4841
4847
  if (!e && !t || c && !r.target.closest("[data-drag-handle]") || k.current != null || A.current) return;
4842
4848
  let i = r.touches[0];
4843
4849
  i && (j.current = i.clientY, M.current = i.clientX, N.current = i.clientY, window.addEventListener("touchmove", le, { passive: !1 }), window.addEventListener("touchend", ce), window.addEventListener("touchcancel", ce), k.current = window.setTimeout(() => {
4844
- k.current = null, A.current = !0, _.current = n, y(n), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", K(n), P.current ??= requestAnimationFrame(W);
4850
+ k.current = null, A.current = !0, _.current = n, y(n), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", G(n), P.current ??= requestAnimationFrame(W);
4845
4851
  }, o));
4846
4852
  }
4847
- function K(e) {
4853
+ function G(e) {
4848
4854
  let t = h.current;
4849
4855
  if (!t) return;
4850
4856
  let n = g.current.indexOf(e), r = t.querySelector(`[data-index="${n}"]`);
@@ -4868,31 +4874,31 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4868
4874
  }), t.appendChild(a), I.current = a, se();
4869
4875
  }
4870
4876
  a(() => ce, [ce]);
4871
- let q = e || t;
4872
- function ue(n, r) {
4877
+ let K = e || t;
4878
+ function de(n, r) {
4873
4879
  let i = t && b?.key === r ? b.position : void 0;
4874
4880
  return {
4875
- reorderable: q,
4876
- draggable: q && !te || void 0,
4877
- isDragging: q && r === v,
4878
- onMouseDown: q && c ? ne : void 0,
4879
- onDragStart: q ? (e) => z(r, e) : void 0,
4881
+ reorderable: K,
4882
+ draggable: K && !te || void 0,
4883
+ isDragging: K && r === v,
4884
+ onMouseDown: K && c ? ne : void 0,
4885
+ onDragStart: K ? (e) => z(r, e) : void 0,
4880
4886
  onDragOver: t ? (e) => B(n, e) : e ? (e) => ae(n, e) : void 0,
4881
4887
  onDragEnd: t ? ie : e ? oe : void 0,
4882
4888
  onDrop: t ? H : void 0,
4883
- onTouchStart: q ? (e) => G(r, e) : void 0,
4889
+ onTouchStart: K ? (e) => ue(r, e) : void 0,
4884
4890
  dropPosition: i,
4885
4891
  dropIndentPx: i ? (p[n] ?? 0) * l : void 0
4886
4892
  };
4887
4893
  }
4888
- function de() {
4894
+ function fe() {
4889
4895
  return F.current ? (F.current = !1, !0) : !1;
4890
4896
  }
4891
4897
  return {
4892
4898
  draggingKey: v,
4893
- dragEnabled: q,
4894
- getRowDragProps: ue,
4895
- consumeSuppressedClick: de
4899
+ dragEnabled: K,
4900
+ getRowDragProps: de,
4901
+ consumeSuppressedClick: fe
4896
4902
  };
4897
4903
  }
4898
4904
  //#endregion
@@ -4908,13 +4914,13 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4908
4914
  onLoadMore: v,
4909
4915
  loadMoreThreshold: y,
4910
4916
  forwardedRef: ne
4911
- }), { rootRef: U, headerRef: se, rowObserver: W, keysRef: ce, offsets: le, totalHeight: G, startIndex: K, endIndex: q } = oe, ue = Jr({
4917
+ }), { rootRef: U, headerRef: se, rowObserver: W, keysRef: ce, offsets: le, totalHeight: ue, startIndex: G, endIndex: K } = oe, de = Jr({
4912
4918
  items: e,
4913
4919
  getKey: z,
4914
4920
  multiSelect: x,
4915
4921
  selectedKeys: S,
4916
4922
  onSelectionChange: C
4917
- }), { effectiveSelectedKeys: de } = ue, { hasColumns: fe, visibleColumns: pe, columnTemplate: me, shouldShowToggle: he, effectiveVisible: ge, manuallyHiddenCount: _e, toggleOpen: ve, setToggleOpen: ye, toggleRef: be, handleToggleColumn: xe } = Yr({
4923
+ }), { effectiveSelectedKeys: fe } = de, { hasColumns: pe, visibleColumns: me, columnTemplate: he, shouldShowToggle: ge, effectiveVisible: _e, manuallyHiddenCount: ve, toggleOpen: ye, setToggleOpen: be, toggleRef: xe, handleToggleColumn: Se } = Yr({
4918
4924
  columns: n,
4919
4925
  items: e,
4920
4926
  multiSelect: x,
@@ -4923,10 +4929,11 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4923
4929
  persistColumnsKey: g,
4924
4930
  showColumnToggle: _,
4925
4931
  rootRef: U,
4926
- startIndex: K,
4927
- endIndex: q,
4928
- containerHeight: oe.containerHeight
4929
- }), J = Xr({
4932
+ startIndex: G,
4933
+ endIndex: K,
4934
+ containerHeight: oe.containerHeight,
4935
+ containerWidth: oe.containerWidth
4936
+ }), q = Xr({
4930
4937
  reorderable: w,
4931
4938
  treeReorder: D,
4932
4939
  onReorder: T,
@@ -4939,40 +4946,40 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4939
4946
  isGroupAt: ae,
4940
4947
  rootRef: U,
4941
4948
  keysRef: ce
4942
- }), Se = (n) => {
4943
- let r = e[n], i = z(r, n), a = l != null && i === l || de.has(i), o = J.getRowDragProps(n, i);
4949
+ }), Ce = (n) => {
4950
+ let r = e[n], i = z(r, n), a = l != null && i === l || fe.has(i), o = q.getRowDragProps(n, i);
4944
4951
  return /* @__PURE__ */ V(Ir, {
4945
4952
  index: n,
4946
4953
  top: le[n],
4947
- columnTemplate: me,
4954
+ columnTemplate: he,
4948
4955
  isSelected: a,
4949
4956
  showDivider: P,
4950
4957
  hover: F,
4951
4958
  onClick: () => {
4952
- J.consumeSuppressedClick() || d?.(r, n);
4959
+ q.consumeSuppressedClick() || d?.(r, n);
4953
4960
  },
4954
4961
  observer: W,
4955
- ariaRowIndex: fe ? n + 2 : void 0,
4956
- ariaPosInSet: fe ? void 0 : n + 1,
4957
- ariaSetSize: fe ? void 0 : e.length,
4958
- rowRole: fe ? "row" : "listitem",
4959
- reserveToggleGutter: he,
4962
+ ariaRowIndex: pe ? n + 2 : void 0,
4963
+ ariaPosInSet: pe ? void 0 : n + 1,
4964
+ ariaSetSize: pe ? void 0 : e.length,
4965
+ rowRole: pe ? "row" : "listitem",
4966
+ reserveToggleGutter: ge,
4960
4967
  ...o,
4961
4968
  dropIndicatorClassName: L?.dropIndicator,
4962
4969
  dropIndicatorStyle: R?.dropIndicator,
4963
4970
  rowClassName: L?.row,
4964
4971
  rowStyle: R?.row,
4965
- children: fe ? /* @__PURE__ */ H(B, { children: [x && /* @__PURE__ */ V("div", {
4972
+ children: pe ? /* @__PURE__ */ H(B, { children: [x && /* @__PURE__ */ V("div", {
4966
4973
  className: f($.virtualListSelectCell, L?.selectCell),
4967
4974
  style: R?.selectCell,
4968
4975
  role: "gridcell",
4969
4976
  onClick: (e) => e.stopPropagation(),
4970
4977
  children: /* @__PURE__ */ V(qe, {
4971
- selected: de.has(i),
4972
- onToggle: () => ue.handleRowSelect(i),
4978
+ selected: fe.has(i),
4979
+ onToggle: () => de.handleRowSelect(i),
4973
4980
  "aria-label": "Select row"
4974
4981
  })
4975
- }), pe.map((e) => /* @__PURE__ */ V("div", {
4982
+ }), me.map((e) => /* @__PURE__ */ V("div", {
4976
4983
  className: f($.virtualListCell, L?.cell),
4977
4984
  style: R?.cell,
4978
4985
  role: "gridcell",
@@ -4980,28 +4987,28 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4980
4987
  children: e.renderCell(r, n)
4981
4988
  }, e.key))] }) : t?.(r, n)
4982
4989
  }, i);
4983
- }, Ce = [];
4984
- for (let e = K; e <= q; e++) Ce.push(Se(e));
4985
- let Te = J.draggingKey == null ? -1 : re.indexOf(J.draggingKey);
4986
- return Te >= 0 && (Te < K || Te > q) && Ce.push(Se(Te)), /* @__PURE__ */ H("div", {
4990
+ }, we = [];
4991
+ for (let e = G; e <= K; e++) we.push(Ce(e));
4992
+ let Ee = q.draggingKey == null ? -1 : re.indexOf(q.draggingKey);
4993
+ return Ee >= 0 && (Ee < G || Ee > K) && we.push(Ce(Ee)), /* @__PURE__ */ H("div", {
4987
4994
  ...te,
4988
4995
  ref: U,
4989
- className: f($.virtualList, J.draggingKey != null && $.virtualListReordering, I, L?.root),
4996
+ className: f($.virtualList, q.draggingKey != null && $.virtualListReordering, I, L?.root),
4990
4997
  style: {
4991
4998
  height: r,
4992
4999
  ...ee,
4993
5000
  ...R?.root
4994
5001
  },
4995
5002
  onScroll: oe.handleScroll,
4996
- role: fe ? "grid" : "list",
4997
- "aria-rowcount": fe ? e.length + 1 : void 0,
5003
+ role: pe ? "grid" : "list",
5004
+ "aria-rowcount": pe ? e.length + 1 : void 0,
4998
5005
  children: [
4999
- fe && /* @__PURE__ */ H("div", {
5006
+ pe && /* @__PURE__ */ H("div", {
5000
5007
  ref: se,
5001
5008
  className: f($.virtualListHeader, L?.header),
5002
5009
  style: {
5003
- gridTemplateColumns: me,
5004
- ...he ? { paddingRight: 32 } : {},
5010
+ gridTemplateColumns: he,
5011
+ ...ge ? { paddingRight: 32 } : {},
5005
5012
  ...R?.header
5006
5013
  },
5007
5014
  role: "row",
@@ -5012,48 +5019,48 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5012
5019
  style: R?.selectCell,
5013
5020
  role: "columnheader",
5014
5021
  children: /* @__PURE__ */ V(qe, {
5015
- selected: ue.allSelected || ue.someSelected,
5016
- onToggle: ue.handleSelectAll,
5022
+ selected: de.allSelected || de.someSelected,
5023
+ onToggle: de.handleSelectAll,
5017
5024
  "aria-label": "Select all rows"
5018
5025
  })
5019
5026
  }),
5020
- pe.map((e) => /* @__PURE__ */ V("div", {
5027
+ me.map((e) => /* @__PURE__ */ V("div", {
5021
5028
  className: f($.virtualListHeaderCell, L?.headerCell),
5022
5029
  style: R?.headerCell,
5023
5030
  role: "columnheader",
5024
5031
  "data-fit-key": e.width.type === "fit" ? e.key : void 0,
5025
5032
  children: e.label
5026
5033
  }, e.key)),
5027
- he && /* @__PURE__ */ H("div", {
5028
- ref: be,
5034
+ ge && /* @__PURE__ */ H("div", {
5035
+ ref: xe,
5029
5036
  className: $.virtualListToggleWrapper,
5030
5037
  children: [
5031
5038
  /* @__PURE__ */ V("button", {
5032
5039
  type: "button",
5033
5040
  className: f($.virtualListHeaderToggle, L?.headerToggle),
5034
5041
  style: R?.headerToggle,
5035
- onClick: () => ye((e) => !e),
5042
+ onClick: () => be((e) => !e),
5036
5043
  "aria-label": "Toggle column visibility",
5037
5044
  children: /* @__PURE__ */ V(p, {
5038
5045
  icon: k,
5039
5046
  style: R?.headerToggle
5040
5047
  })
5041
5048
  }),
5042
- _e > 0 && /* @__PURE__ */ V("span", {
5049
+ ve > 0 && /* @__PURE__ */ V("span", {
5043
5050
  className: f($.virtualListColumnChip, L?.columnChip),
5044
5051
  style: R?.columnChip,
5045
- "data-column-hidden-count": _e,
5046
- "aria-label": `${_e} columns hidden`,
5047
- children: _e
5052
+ "data-column-hidden-count": ve,
5053
+ "aria-label": `${ve} columns hidden`,
5054
+ children: ve
5048
5055
  }),
5049
- ve && /* @__PURE__ */ V("div", {
5056
+ ye && /* @__PURE__ */ V("div", {
5050
5057
  className: f($.virtualListTogglePopover, L?.togglePopover),
5051
5058
  style: R?.togglePopover,
5052
5059
  children: n.map((e) => /* @__PURE__ */ V(qe, {
5053
5060
  className: f($.virtualListToggleItem, L?.toggleItem),
5054
5061
  style: R?.toggleItem,
5055
- selected: ge.has(e.key),
5056
- onToggle: () => xe(e.key),
5062
+ selected: _e.has(e.key),
5063
+ onToggle: () => Se(e.key),
5057
5064
  cursorDefault: !1,
5058
5065
  children: e.label
5059
5066
  }, e.key))
@@ -5064,19 +5071,19 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5064
5071
  }),
5065
5072
  b ? /* @__PURE__ */ V("div", {
5066
5073
  className: $.virtualListLoadingFull,
5067
- children: /* @__PURE__ */ V(we, { className: $.virtualListSpinner })
5074
+ children: /* @__PURE__ */ V(Te, { className: $.virtualListSpinner })
5068
5075
  }) : /* @__PURE__ */ V("div", {
5069
5076
  className: f($.virtualListBody, L?.body),
5070
5077
  style: {
5071
- height: G,
5078
+ height: ue,
5072
5079
  ...R?.body
5073
5080
  },
5074
- children: Ce
5081
+ children: we
5075
5082
  }),
5076
5083
  oe.showLoadMoreSpinner && /* @__PURE__ */ V("div", {
5077
5084
  className: f($.virtualListLoadingIndicator, L?.loadingIndicator),
5078
5085
  style: R?.loadingIndicator,
5079
- children: /* @__PURE__ */ V(we, { className: $.virtualListSpinner })
5086
+ children: /* @__PURE__ */ V(Te, { className: $.virtualListSpinner })
5080
5087
  })
5081
5088
  ]
5082
5089
  });
@@ -5222,7 +5229,7 @@ var ni = class {
5222
5229
  }), this.onValidateCallback) return this.onValidateCallback(this);
5223
5230
  }, this.setValidator = (e, t) => (this.group[e] = t, this), this.group = e, this.#e = n ?? {}, this.#r = {}, this.submitCount = 0, this.onDebounce = () => {}, this.onReset = () => {}, Object.keys(this.group).forEach((e) => {
5224
5231
  let t = this.group[e], n = this.#e;
5225
- n[e] !== void 0 && t.set(n[e]), this.#r[e] = t.value, this.group[e].registerOnUpdateListener(() => {
5232
+ n[e] !== void 0 && t.set(n[e], !1), this.#r[e] = t.value, this.group[e].registerOnUpdateListener(() => {
5226
5233
  this.#a(), this.submitCount = 0, this.#n && clearTimeout(this.#n), this.#n = setTimeout(() => this.onDebounce(this.getValues()), 500);
5227
5234
  });
5228
5235
  }), this.component = t, this.onSubmitCallback = r, this.onValidateCallback = i, this.errorParser = a, this.onSubmitError = o, this.setSubmitting(!1);
@@ -5582,6 +5589,6 @@ function xi(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, o
5582
5589
  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;
5583
5590
  }
5584
5591
  //#endregion
5585
- export { be as Accordion, he as AccordionStyleType, Ne as ActionButtons, Re as ActionIcon, Qe as Align, ze as BodyEnd, Me as Button, Ee as ButtonSize, Te as ButtonStyleType, De as ButtonType, Ve as Card, Ge as CardActions, We as CardContent, He as CardHeader, Ue as CardMedia, qe as Checkbox, Ye as Chip, Xe as ChipContainer, mt as ColorPicker, _t as ConfirmModal, Gt as DatePicker, Ut as Dropdown, qt as EmptyState, Qt as Fab, et as FloatingMenu, oi as FormValidator, ai as FormValidatorGroup, gn as IconLoading, nn as IconPicker, an as IdleManager, Ht as InfiniteBlock, rt as Input, ln as InputDropdown, X as InputType, Ie as InteractableDiv, pn as KanbanBoard, fn as KanbanColumn, gt as Modal, yn as NumberInput, xn as OptionPicker, Tn as Overscroll, On as ProgressBar, ke as Ripple, tr as RoomDrawer, rr as RoomViewer, or as ScrollbarProvider, cr as SearchInput, we as SpinnerLoading, dr as Stepper, yr as TenorPicker, br as Textarea, Cr as ThemeProvider, Fr as ToastProvider, nt as Tooltip, yi as ValidatableComponent, vi as Validators, Qr as VirtualList, ei as Wizard, xr as defaultTheme, Tt as getLocale, pi as hasEightPasswordChars, hi as hasOnePasswordDigit, mi as hasOnePasswordLetter, di as isBic, ci as isDate, ui as isEmail, li as isISODate, si as isNumber, gi as isPassword, fi as isURL, St as mapLocale, wt as setLocale, jr as showToast, bi as useFormValidator, xi as useFormValidatorGroup, wr as useTheme };
5592
+ export { xe as Accordion, ge as AccordionStyleType, Ne as ActionButtons, Re as ActionIcon, Qe as Align, ze as BodyEnd, J as Button, De as ButtonSize, Ee as ButtonStyleType, Oe as ButtonType, Ve as Card, Ge as CardActions, We as CardContent, He as CardHeader, Ue as CardMedia, qe as Checkbox, Ye as Chip, Xe as ChipContainer, mt as ColorPicker, _t as ConfirmModal, Gt as DatePicker, Ut as Dropdown, qt as EmptyState, Qt as Fab, et as FloatingMenu, oi as FormValidator, ai as FormValidatorGroup, gn as IconLoading, nn as IconPicker, an as IdleManager, Ht as InfiniteBlock, rt as Input, ln as InputDropdown, X as InputType, Ie as InteractableDiv, pn as KanbanBoard, fn as KanbanColumn, gt as Modal, yn as NumberInput, xn as OptionPicker, Tn as Overscroll, On as ProgressBar, Ae as Ripple, tr as RoomDrawer, rr as RoomViewer, or as ScrollbarProvider, cr as SearchInput, Te as SpinnerLoading, dr as Stepper, yr as TenorPicker, br as Textarea, Cr as ThemeProvider, Fr as ToastProvider, nt as Tooltip, yi as ValidatableComponent, vi as Validators, Qr as VirtualList, ei as Wizard, xr as defaultTheme, Tt as getLocale, pi as hasEightPasswordChars, hi as hasOnePasswordDigit, mi as hasOnePasswordLetter, di as isBic, ci as isDate, ui as isEmail, li as isISODate, si as isNumber, gi as isPassword, fi as isURL, St as mapLocale, wt as setLocale, jr as showToast, bi as useFormValidator, xi as useFormValidatorGroup, wr as useTheme };
5586
5593
 
5587
5594
  //# sourceMappingURL=index.mjs.map