@ahrowe/ui 0.1.16 → 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
@@ -478,7 +478,7 @@ function We({ children: e = null }) {
478
478
  function Ge({ className: e = "", actions: t = [], children: n = null }) {
479
479
  return /* @__PURE__ */ H("div", {
480
480
  className: f(Be.cardActions, e),
481
- 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, {
482
482
  onClick: t,
483
483
  styleType: r,
484
484
  children: n
@@ -538,7 +538,7 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
538
538
  width: m,
539
539
  height: h
540
540
  },
541
- children: /* @__PURE__ */ V(we, { className: Ke.checkboxLoadingSpinner })
541
+ children: /* @__PURE__ */ V(Te, { className: Ke.checkboxLoadingSpinner })
542
542
  }) : /* @__PURE__ */ H("div", {
543
543
  style: {
544
544
  width: m,
@@ -546,7 +546,7 @@ function qe({ label: e = "", selected: t = !1, onToggle: n = () => {}, className
546
546
  ...x?.checkmark
547
547
  },
548
548
  className: f(Ke.checkboxCheckmark, E && Ke.checkboxCheckmarkChecked, b?.checkmark),
549
- children: [/* @__PURE__ */ V(ke, {
549
+ children: [/* @__PURE__ */ V(Ae, {
550
550
  ref: C,
551
551
  manualOnly: !0,
552
552
  overflowHidden: !1,
@@ -602,7 +602,7 @@ function Ye({ className: e = "", thumbnail: t = "", text: n = "", showRemoveIcon
602
602
  ...o,
603
603
  className: f(Je.chip, i && Je.chipClickable, e),
604
604
  onClick: i,
605
- children: /* @__PURE__ */ V(ke, {
605
+ children: /* @__PURE__ */ V(Ae, {
606
606
  disabled: !i,
607
607
  style: { borderRadius: "inherit" },
608
608
  children: /* @__PURE__ */ H("div", {
@@ -844,131 +844,131 @@ var Y = {
844
844
  }({});
845
845
  //#endregion
846
846
  //#region package/common/input/input.tsx
847
- function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: m = null, onChange: h = () => {}, onFocus: g = null, onBlur: _ = null, onMouseEnter: v = null, onMouseLeave: y = null, isUppercase: b = !1, isRequired: x = !1, tabIndex: S = 0, type: C = void 0, isRow: w = !1, onIconClick: T = null, parse: k = null, formValidator: A = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: I = !1, showCancel: L = !1, onClearClicked: R, min: te = null, max: ne = null, placeholder: re = "", useMatLabelStyle: B = !0, autoComplete: ie = null, onClick: ae = () => null, readOnly: oe = !1, customInput: U, alwaysShowCancel: se = !1, multiline: W = !1, rows: ce, autoResize: le = !1, classNames: G, styles: K, disabled: q = !1, ...ue }) {
848
- let [de, fe] = d(!1), [pe, me] = d(!1), [he, ge] = d(!1), [, _e] = d(0), ve = u(null), ye = u(A), be = i(() => {
849
- 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;
850
850
  !e || !le || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
851
851
  }, [le]);
852
852
  a(() => {
853
853
  setTimeout(() => {
854
- fe(!1), me(!1);
855
- }, 1), be();
854
+ pe(!1), he(!1);
855
+ }, 1), xe();
856
856
  }, []), a(() => {
857
- j && ve.current && setTimeout(() => {
858
- ve.current?.focus();
857
+ j && ye.current && setTimeout(() => {
858
+ ye.current?.focus();
859
859
  }, 1);
860
860
  }, [j]), a(() => {
861
- ye.current = A;
862
- let e = ye.current;
861
+ be.current = A;
862
+ let e = be.current;
863
863
  if (!e) return;
864
864
  e.label = n ?? "", e.validate();
865
- let t = () => _e((e) => e + 1);
865
+ let t = () => ve((e) => e + 1);
866
866
  return e.registerOnUpdateListener(t), () => {
867
867
  e.removeOnUpdateListener(t);
868
868
  };
869
869
  }, [A, n]);
870
- let xe = () => A ? A.touched && A.hasError() : !o || !!r, J = () => !!(x || A && A.validators.find((e) => e.validatorId === "required")), Se = (e) => {
871
- me(!0), v && v(e);
872
- }, Ce = (e) => {
873
- 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);
874
872
  }, we = (e) => {
875
- fe(!0), g && g(e);
873
+ he(!1), y && y(e);
876
874
  }, Te = (e) => {
877
- ye.current && (ye.current.touched = !0), fe(!1), _ && _(e);
875
+ pe(!0), g && g(e);
878
876
  }, Ee = (e) => {
877
+ be.current && (be.current.touched = !0), pe(!1), _ && _(e);
878
+ }, De = (e) => {
879
879
  let t, n;
880
- typeof e == "string" ? n = e : (t = e, n = e.target.value), k && (n = k(n)), A && A.set(n), h && h(n, t), be();
881
- }, De = () => {
882
- if (C !== "email") return C === "password" && he ? "text" : C;
883
- }, 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 = {
884
884
  className: f(Y.inputFieldIcon, {
885
885
  [Y.inputFieldIconNotClickable]: !T,
886
- [Y.inputFieldIconLeft]: ke
886
+ [Y.inputFieldIconLeft]: Ae
887
887
  }),
888
888
  onClick: T ?? void 0
889
- }, je = {
889
+ }, Me = {
890
890
  className: f(Y.inputFieldIcon, Y.inputFieldIconPassword),
891
- onClick: () => ge(!he)
892
- }, Me = xe(), Ne = n;
893
- Ne && J() && (Ne = `${Ne} *`);
894
- 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);
895
895
  return /* @__PURE__ */ H("div", {
896
896
  className: f(Y.input, s),
897
897
  style: c,
898
898
  children: [
899
899
  /* @__PURE__ */ H("label", {
900
900
  htmlFor: t,
901
- className: f(Y.inputLabel, G?.label, {
901
+ className: f(Y.inputLabel, ue?.label, {
902
902
  [Y.inputLabelColumn]: !w,
903
903
  [Y.inputLabelInBorder]: I
904
904
  }),
905
- style: K?.label,
905
+ style: G?.label,
906
906
  children: [
907
907
  Ne && !B ? /* @__PURE__ */ H("span", {
908
908
  className: Y.inputLabelText,
909
- children: [`${Ne} `, J() ? /* @__PURE__ */ V("span", {
909
+ children: [`${Ne} `, q() ? /* @__PURE__ */ V("span", {
910
910
  className: f(Y.isRequired),
911
911
  children: "\xA0 *"
912
912
  }) : null]
913
913
  }) : null,
914
914
  N && /* @__PURE__ */ V("div", {
915
- className: f(Y.inputUpperRightLabel, G?.upperRightLabel),
916
- style: K?.upperRightLabel,
915
+ className: f(Y.inputUpperRightLabel, ue?.upperRightLabel),
916
+ style: G?.upperRightLabel,
917
917
  children: N
918
918
  }),
919
919
  /* @__PURE__ */ H("div", {
920
- className: f(Y.inputContainer, { [Y.inputContainerMultiline]: W }, G?.container),
921
- style: K?.container,
922
- onMouseEnter: Se,
923
- onMouseLeave: Ce,
920
+ className: f(Y.inputContainer, { [Y.inputContainerMultiline]: W }, ue?.container),
921
+ style: G?.container,
922
+ onMouseEnter: Ce,
923
+ onMouseLeave: we,
924
924
  children: [
925
925
  m,
926
926
  e.cloneElement(U || V(W ? "textarea" : "input", {}), {
927
- ...ue,
927
+ ...de,
928
928
  className: f(Y.inputField, {
929
929
  [Y.inputFieldUppercase]: b,
930
930
  [Y.inputFieldDate]: C === X.Date,
931
931
  [Y.inputFieldDefault]: C !== X.Date,
932
- [Y.inputFieldWithIcon]: Oe,
933
- [Y.inputFieldWithIconLeft]: ke,
932
+ [Y.inputFieldWithIcon]: ke,
933
+ [Y.inputFieldWithIconLeft]: Ae,
934
934
  [Y.inputFieldMultiline]: W,
935
935
  [Y.inputFieldMultilineAutoResize]: W && le
936
- }, G?.input),
936
+ }, ue?.input),
937
937
  name: t,
938
938
  id: t,
939
939
  value: A ? A.value : l,
940
940
  tabIndex: S,
941
- ref: U ? void 0 : ve,
942
- onChange: Ee,
943
- onFocus: we,
944
- onBlur: Te,
941
+ ref: U ? void 0 : ye,
942
+ onChange: De,
943
+ onFocus: Te,
944
+ onBlur: Ee,
945
945
  placeholder: B ? "" : re,
946
946
  autoComplete: ie,
947
947
  onClick: ae,
948
948
  readOnly: oe,
949
- disabled: q,
949
+ disabled: K,
950
950
  ...!W && {
951
- type: De(),
951
+ type: Oe(),
952
952
  min: te,
953
953
  max: ne
954
954
  },
955
955
  ...W && ce !== void 0 && { rows: ce }
956
956
  }),
957
957
  M && /* @__PURE__ */ V("div", {
958
- className: f(Y.inputFieldSuffix, G?.suffix),
959
- style: K?.suffix,
958
+ className: f(Y.inputFieldSuffix, ue?.suffix),
959
+ style: G?.suffix,
960
960
  children: M
961
961
  })
962
962
  ]
963
963
  }),
964
964
  /* @__PURE__ */ V("fieldset", {
965
- className: f(Y.inputFieldset, G?.fieldset, {
966
- [Y.inputContainerBorderFocused]: de,
967
- [Y.inputContainerBorderSearchFocused]: C === X.Search && (de || l),
968
- [Y.inputContainerBorderInvalid]: Me,
969
- [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
970
970
  }),
971
- style: K?.fieldset,
971
+ style: G?.fieldset,
972
972
  children: /* @__PURE__ */ V("legend", {
973
973
  className: f(Y.inputFieldsetLegend, { [Y.inputFieldsetLegendActive]: Fe }),
974
974
  children: /* @__PURE__ */ V("span", { children: Ne })
@@ -982,42 +982,42 @@ function rt({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0
982
982
  children: Ne
983
983
  }),
984
984
  B && re && /* @__PURE__ */ V("div", {
985
- className: f(Y.inputPlaceholder, de && !Pe && Y.inputPlaceholderShown, W && Y.inputPlaceholderMultiline),
985
+ className: f(Y.inputPlaceholder, fe && !Pe && Y.inputPlaceholderShown, W && Y.inputPlaceholderMultiline),
986
986
  children: re
987
987
  }),
988
988
  /* @__PURE__ */ V(nt, {
989
989
  variant: "error",
990
990
  message: A ? A.getCurrentErrorMessage() : r || "",
991
- isVisible: Me && (de || pe)
991
+ isVisible: J && (fe || me)
992
992
  })
993
993
  ]
994
994
  }),
995
995
  C === X.Phone && /* @__PURE__ */ V(p, {
996
996
  icon: F,
997
- ...Ae
997
+ ...je
998
998
  }),
999
999
  C === X.Email && /* @__PURE__ */ V(p, {
1000
1000
  icon: E,
1001
- ...Ae
1001
+ ...je
1002
1002
  }),
1003
1003
  C === X.Edit && /* @__PURE__ */ V(p, {
1004
1004
  icon: P,
1005
- ...Ae
1005
+ ...je
1006
1006
  }),
1007
1007
  C === X.Search && /* @__PURE__ */ V(p, {
1008
1008
  icon: ee,
1009
- ...Ae
1009
+ ...je
1010
1010
  }),
1011
1011
  C === X.Password && /* @__PURE__ */ V(p, {
1012
- icon: he ? O : D,
1013
- ...je
1012
+ icon: ge ? O : D,
1013
+ ...Me
1014
1014
  }),
1015
- (L && l && (de || pe) || se) && /* @__PURE__ */ V(p, {
1015
+ (L && l && (fe || me) || se) && /* @__PURE__ */ V(p, {
1016
1016
  icon: z,
1017
1017
  className: Y.inputFieldIcon,
1018
1018
  onClick: R ?? void 0,
1019
- onMouseEnter: () => me(!0),
1020
- onMouseLeave: () => me(!1)
1019
+ onMouseEnter: () => he(!0),
1020
+ onMouseLeave: () => he(!1)
1021
1021
  })
1022
1022
  ]
1023
1023
  });
@@ -1566,10 +1566,10 @@ function Ht({ children: t, onScroll: n, className: r = "", isDataLoading: a = !1
1566
1566
  ref: s,
1567
1567
  children: [a ? /* @__PURE__ */ V("div", {
1568
1568
  className: zt.spinnerWrapper,
1569
- children: /* @__PURE__ */ V(we, { className: zt.spinner })
1569
+ children: /* @__PURE__ */ V(Te, { className: zt.spinner })
1570
1570
  }) : t, l && /* @__PURE__ */ V("div", {
1571
1571
  className: zt.spinnerWrapper,
1572
- children: /* @__PURE__ */ V(we, { className: zt.spinner })
1572
+ children: /* @__PURE__ */ V(Te, { className: zt.spinner })
1573
1573
  })]
1574
1574
  });
1575
1575
  }
@@ -1661,11 +1661,11 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1661
1661
  B.current && (B.current.touched = !0), te(!1), x?.(e);
1662
1662
  }, W = () => k ? k.touched && k.hasError() : !i || !!e, ce = () => !!(s || k?.validators.find((e) => e.validatorId === "required")), le = (e) => {
1663
1663
  k ? (k.set(e), y?.(k.value, c)) : y?.(e, c);
1664
- }, G = w, K = k ? k.value : r, q = W();
1664
+ }, ue = w, G = k ? k.value : r, K = W();
1665
1665
  M.forEach((e) => {
1666
- e.key === K && (G = e.label);
1666
+ e.key === G && (ue = e.label);
1667
1667
  });
1668
- 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() === "";
1669
1669
  return /* @__PURE__ */ H("div", {
1670
1670
  ...L,
1671
1671
  className: f(t, Z.dropdownLabel, Z.dropdown, { [Z.dropdownLabelColumn]: !l }),
@@ -1675,7 +1675,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1675
1675
  /* @__PURE__ */ V(ae, {
1676
1676
  onChange: (e) => le((e || { key: "" }).key),
1677
1677
  itemToString: (e) => e ? String(e.key) : "",
1678
- selectedItem: M.find((e) => e.key === K) ?? null,
1678
+ selectedItem: M.find((e) => e.key === G) ?? null,
1679
1679
  stateReducer: (e, t) => I && Object.prototype.hasOwnProperty.call(t, "isOpen") ? {
1680
1680
  ...t,
1681
1681
  highlightedIndex: t.isOpen ? M.indexOf(e.selectedItem) : null
@@ -1699,7 +1699,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1699
1699
  t().onClick?.(e), v?.(e);
1700
1700
  },
1701
1701
  ref: ee,
1702
- children: de ? "\xA0" : ue
1702
+ children: fe ? "\xA0" : de
1703
1703
  }),
1704
1704
  /* @__PURE__ */ V("button", {
1705
1705
  type: "button",
@@ -1740,20 +1740,20 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1740
1740
  className: f(Z.dropdownFieldset, {
1741
1741
  [Z.dropdownBorderPlain]: F,
1742
1742
  [Z.dropdownBorderFocused]: R,
1743
- [Z.dropdownBorderInvalid]: q,
1744
- [Z.dropdownBorderError]: q
1743
+ [Z.dropdownBorderInvalid]: K,
1744
+ [Z.dropdownBorderError]: K
1745
1745
  }),
1746
1746
  children: /* @__PURE__ */ V("legend", {
1747
- className: f(Z.dropdownFieldsetLegend, { [Z.dropdownFieldsetLegendActive]: N && (R || !de) }),
1747
+ className: f(Z.dropdownFieldsetLegend, { [Z.dropdownFieldsetLegendActive]: N && (R || !fe) }),
1748
1748
  children: /* @__PURE__ */ V("span", { children: n })
1749
1749
  })
1750
1750
  }),
1751
1751
  N && n && /* @__PURE__ */ V("div", {
1752
- className: f(Z.dropdownMatLabel, { [Z.dropdownMatLabelFloating]: R || !de }),
1752
+ className: f(Z.dropdownMatLabel, { [Z.dropdownMatLabelFloating]: R || !fe }),
1753
1753
  children: n
1754
1754
  }),
1755
1755
  N && P && /* @__PURE__ */ V("div", {
1756
- className: f(Z.dropdownPlaceholder, R && !G && Z.dropdownPlaceholderShown),
1756
+ className: f(Z.dropdownPlaceholder, R && !ue && Z.dropdownPlaceholderShown),
1757
1757
  children: P
1758
1758
  })
1759
1759
  ]
@@ -1769,7 +1769,7 @@ function Ut({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1769
1769
  /* @__PURE__ */ V(nt, {
1770
1770
  variant: "error",
1771
1771
  message: k ? k.getCurrentErrorMessage() : e || "",
1772
- isVisible: q && (R || ne)
1772
+ isVisible: K && (R || ne)
1773
1773
  })
1774
1774
  ]
1775
1775
  });
@@ -1831,7 +1831,7 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1831
1831
  key: e + t,
1832
1832
  label: e + t
1833
1833
  }));
1834
- }, G = T(), K = re(), q = /* @__PURE__ */ H(B, { children: [
1834
+ }, ue = T(), G = re(), K = /* @__PURE__ */ H(B, { children: [
1835
1835
  o ? null : /* @__PURE__ */ H("div", {
1836
1836
  className: Wt.datePickerHeader,
1837
1837
  children: [
@@ -1875,17 +1875,17 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1875
1875
  month: D,
1876
1876
  year: k,
1877
1877
  onSelect: U,
1878
- selectionStart: C ?? G,
1879
- selectionEnd: w ?? G,
1878
+ selectionStart: C ?? ue,
1879
+ selectionEnd: w ?? ue,
1880
1880
  minDate: p,
1881
1881
  maxDate: m
1882
1882
  }),
1883
- g && /* @__PURE__ */ V(Me, {
1883
+ g && /* @__PURE__ */ V(J, {
1884
1884
  onClick: () => U(null),
1885
1885
  children: "Clear"
1886
1886
  }),
1887
1887
  h
1888
- ] }), ue = i ? null : /* @__PURE__ */ V(rt, {
1888
+ ] }), de = i ? null : /* @__PURE__ */ V(rt, {
1889
1889
  readOnly: s,
1890
1890
  label: `${y}${ie() ? " *" : ""}`,
1891
1891
  value: N,
@@ -1902,29 +1902,29 @@ function Gt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1902
1902
  onFocus: () => I(!0),
1903
1903
  onMouseEnter: () => L(!0),
1904
1904
  onMouseLeave: () => L(!1),
1905
- isValid: !K
1906
- }), de = c ? q : s ? /* @__PURE__ */ V(gt, {
1905
+ isValid: !G
1906
+ }), fe = c ? K : s ? /* @__PURE__ */ V(gt, {
1907
1907
  hideHeader: !0,
1908
1908
  isOpen: j,
1909
1909
  onClose: () => M(!1),
1910
- children: q
1910
+ children: K
1911
1911
  }) : /* @__PURE__ */ V(et, {
1912
1912
  isOpen: j,
1913
1913
  onOpenChange: (e) => M(e),
1914
- content: q,
1914
+ content: K,
1915
1915
  align: Qe.Left,
1916
1916
  dontCloseOnChildClick: !0,
1917
- children: ue
1917
+ children: de
1918
1918
  });
1919
1919
  return /* @__PURE__ */ H("div", {
1920
1920
  className: f(Wt.datePicker, e),
1921
1921
  children: [
1922
- (s || c) && ue,
1923
- de,
1922
+ (s || c) && de,
1923
+ fe,
1924
1924
  /* @__PURE__ */ V(nt, {
1925
1925
  variant: "error",
1926
1926
  message: r ? r.getCurrentErrorMessage() : x || "",
1927
- isVisible: K && (F || ee)
1927
+ isVisible: G && (F || ee)
1928
1928
  })
1929
1929
  ]
1930
1930
  });
@@ -1951,8 +1951,8 @@ var Jt = {
1951
1951
  default: null,
1952
1952
  mini: Jt.fabSizeMini
1953
1953
  };
1954
- function Xt({ children: e = null, size: t = "default", className: n = "", styleType: r = Te.Primary, onClick: i = () => {} }) {
1955
- 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, {
1956
1956
  styleType: r,
1957
1957
  className: f(Jt.fab, Yt[t], n),
1958
1958
  onClick: i,
@@ -2112,7 +2112,7 @@ function nn({ data: e = [], selectedId: t = null, label: n = "", onChange: r, fo
2112
2112
  children: [
2113
2113
  n && /* @__PURE__ */ V(p, { icon: n }),
2114
2114
  r ?? null,
2115
- /* @__PURE__ */ V(ke, {})
2115
+ /* @__PURE__ */ V(Ae, {})
2116
2116
  ]
2117
2117
  }, e))
2118
2118
  })]
@@ -2238,11 +2238,11 @@ var un = {
2238
2238
  //#endregion
2239
2239
  //#region package/common/kanbanBoard/KanbanItem.tsx
2240
2240
  function dn({ id: e, children: t }) {
2241
- 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 });
2242
2242
  return /* @__PURE__ */ V("div", {
2243
2243
  ref: i,
2244
2244
  style: {
2245
- transform: pe.Transform.toString(a),
2245
+ transform: me.Transform.toString(a),
2246
2246
  transition: o
2247
2247
  },
2248
2248
  className: f(un.item, s && un.itemDragging),
@@ -2261,9 +2261,9 @@ function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a
2261
2261
  className: f(un.columnHeader, o?.header),
2262
2262
  style: s?.header,
2263
2263
  children: t
2264
- }), /* @__PURE__ */ V(q, {
2264
+ }), /* @__PURE__ */ V(K, {
2265
2265
  items: n,
2266
- strategy: fe,
2266
+ strategy: pe,
2267
2267
  children: /* @__PURE__ */ V("div", {
2268
2268
  ref: c,
2269
2269
  className: f(un.columnItems, o?.items),
@@ -2279,7 +2279,7 @@ function fn({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a
2279
2279
  //#endregion
2280
2280
  //#region package/common/kanbanBoard/KanbanBoard.tsx
2281
2281
  function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2282
- let [c, l] = d(null), [u, p] = d(null), m = 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;
2283
2283
  function g(e, t) {
2284
2284
  return e.findIndex((e) => e.itemIds.includes(t));
2285
2285
  }
@@ -2311,7 +2311,7 @@ function pn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2311
2311
  let e = n[a], t = e.itemIds.indexOf(r), o = e.itemIds.indexOf(i);
2312
2312
  t !== -1 && o !== -1 && t !== o && (n[a] = {
2313
2313
  ...e,
2314
- itemIds: ue(e.itemIds, t, o)
2314
+ itemIds: de(e.itemIds, t, o)
2315
2315
  });
2316
2316
  } else {
2317
2317
  n[a].itemIds = n[a].itemIds.filter((e) => e !== r);
@@ -2465,7 +2465,7 @@ function vn({ value: e, onChange: t, formValidator: n, label: r, error: i, class
2465
2465
  errorMessage: n ? n.getCurrentErrorMessage() ?? "" : i ?? "",
2466
2466
  placeholder: m,
2467
2467
  suffix: k,
2468
- customInput: /* @__PURE__ */ V(me, {
2468
+ customInput: /* @__PURE__ */ V(he, {
2469
2469
  onValueChange: (e) => T(e.floatValue),
2470
2470
  allowNegative: h == null ? o : !1,
2471
2471
  decimalSeparator: s,
@@ -3112,7 +3112,7 @@ function tr({ className: e }) {
3112
3112
  } : t;
3113
3113
  }).filter((e) => e.wallIndex !== -1));
3114
3114
  }
3115
- function G(e) {
3115
+ function ue(e) {
3116
3116
  if (e.button === 1) {
3117
3117
  e.preventDefault();
3118
3118
  let t = z.current;
@@ -3202,7 +3202,7 @@ function tr({ className: e }) {
3202
3202
  }
3203
3203
  }
3204
3204
  }
3205
- function K(e) {
3205
+ function G(e) {
3206
3206
  if (o !== "select" || g) return;
3207
3207
  let n = U(e);
3208
3208
  if (!n) return;
@@ -3211,7 +3211,7 @@ function tr({ className: e }) {
3211
3211
  let i = se(n, r);
3212
3212
  i && (e.preventDefault(), le(r.id, i.index));
3213
3213
  }
3214
- function q(e) {
3214
+ function K(e) {
3215
3215
  if (te.current) {
3216
3216
  let { startClient: t, origPan: n, scaleX: r, scaleY: i } = te.current;
3217
3217
  F({
@@ -3270,7 +3270,7 @@ function tr({ className: e }) {
3270
3270
  }
3271
3271
  }
3272
3272
  }
3273
- function ue(e) {
3273
+ function de(e) {
3274
3274
  if (te.current) {
3275
3275
  te.current = null;
3276
3276
  return;
@@ -3288,29 +3288,29 @@ function tr({ className: e }) {
3288
3288
  ee.current = null, I.current = null;
3289
3289
  }
3290
3290
  }
3291
- function de(e) {
3291
+ function fe(e) {
3292
3292
  l && n((t) => t.map((t) => t.id === l ? {
3293
3293
  ...t,
3294
3294
  name: e
3295
3295
  } : t));
3296
3296
  }
3297
- function fe(e, t) {
3297
+ function pe(e, t) {
3298
3298
  let n = parseFloat(t);
3299
3299
  isNaN(n) || n <= 0 || i((t) => t.map((t) => t.id === e ? {
3300
3300
  ...t,
3301
3301
  width: n
3302
3302
  } : t));
3303
3303
  }
3304
- function pe() {
3304
+ function me() {
3305
3305
  l && (n((e) => e.filter((e) => e.id !== l)), i((e) => e.filter((e) => e.roomId !== l)), _(null), m(null));
3306
3306
  }
3307
- function me(e) {
3307
+ function he(e) {
3308
3308
  i((t) => t.filter((t) => t.id !== e));
3309
3309
  }
3310
- function he(e) {
3310
+ function ge(e) {
3311
3311
  c(e), _(null), E([]), O(null), y(null), x(null);
3312
3312
  }
3313
- function ge(e) {
3313
+ function _e(e) {
3314
3314
  let t = e.target.files?.[0];
3315
3315
  if (!t) return;
3316
3316
  e.target.value = "";
@@ -3328,12 +3328,12 @@ function tr({ className: e }) {
3328
3328
  }));
3329
3329
  }, r.readAsText(t);
3330
3330
  }
3331
- let _e = o === "rect" && v && b ? {
3331
+ let ve = o === "rect" && v && b ? {
3332
3332
  x: Math.min(v.x, b.x),
3333
3333
  y: Math.min(v.y, b.y),
3334
3334
  w: Math.abs(b.x - v.x),
3335
3335
  h: Math.abs(b.y - v.y)
3336
- } : 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 = [
3337
3337
  {
3338
3338
  t: "select",
3339
3339
  icon: A,
@@ -3349,17 +3349,17 @@ function tr({ className: e }) {
3349
3349
  icon: T,
3350
3350
  label: "Polygon room"
3351
3351
  }
3352
- ], 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;
3353
3353
  return /* @__PURE__ */ H("div", {
3354
3354
  className: f(Q.roomDrawer, e),
3355
3355
  children: [
3356
3356
  /* @__PURE__ */ H("div", {
3357
3357
  className: Q.roomDrawerToolbar,
3358
3358
  children: [
3359
- xe.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ V("button", {
3359
+ Se.map(({ t: e, icon: t, label: n }) => /* @__PURE__ */ V("button", {
3360
3360
  title: n,
3361
3361
  className: f(Q.roomDrawerToolbarBtn, e === o && !g && Q.roomDrawerToolbarBtnActive),
3362
- onClick: () => he(e),
3362
+ onClick: () => ge(e),
3363
3363
  children: /* @__PURE__ */ V(p, { icon: t })
3364
3364
  }, e)),
3365
3365
  /* @__PURE__ */ V("div", { className: Q.roomDrawerToolbarSep }),
@@ -3407,18 +3407,18 @@ function tr({ className: e }) {
3407
3407
  type: "file",
3408
3408
  accept: ".svg,image/svg+xml",
3409
3409
  style: { display: "none" },
3410
- onChange: ge
3410
+ onChange: _e
3411
3411
  })
3412
3412
  ]
3413
3413
  }),
3414
3414
  /* @__PURE__ */ H("svg", {
3415
3415
  ref: z,
3416
- className: f(Q.roomDrawerCanvas, Ce),
3417
- viewBox: `${P.x} ${P.y} ${J} ${Se}`,
3418
- onMouseDown: G,
3419
- onMouseMove: q,
3420
- onMouseUp: ue,
3421
- 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,
3422
3422
  children: [
3423
3423
  /* @__PURE__ */ V("defs", { children: /* @__PURE__ */ V("pattern", {
3424
3424
  id: "rd-grid",
@@ -3434,8 +3434,8 @@ function tr({ className: e }) {
3434
3434
  /* @__PURE__ */ V("rect", {
3435
3435
  x: P.x,
3436
3436
  y: P.y,
3437
- width: J,
3438
- height: Se,
3437
+ width: q,
3438
+ height: Ce,
3439
3439
  fill: "url(#rd-grid)"
3440
3440
  }),
3441
3441
  t.map((e) => {
@@ -3471,7 +3471,7 @@ function tr({ className: e }) {
3471
3471
  className: Q.doorGap
3472
3472
  }, e.id) : null;
3473
3473
  }),
3474
- g && be.map((e) => {
3474
+ g && xe.map((e) => {
3475
3475
  let n = t.find((t) => t.id === e.roomId);
3476
3476
  if (!n) return null;
3477
3477
  let r = n.points[e.wallIndex], i = n.points[(e.wallIndex + 1) % n.points.length], a = Rn(r, i, e.t, e.width);
@@ -3490,17 +3490,17 @@ function tr({ className: e }) {
3490
3490
  }
3491
3491
  }, e.id);
3492
3492
  }),
3493
- 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", {
3494
3494
  cx: e.x,
3495
3495
  cy: e.y,
3496
3496
  r: 3.5,
3497
3497
  className: Q.vertexHandle
3498
3498
  }, t)),
3499
- _e && /* @__PURE__ */ V("rect", {
3500
- x: _e.x,
3501
- y: _e.y,
3502
- width: _e.w,
3503
- height: _e.h,
3499
+ ve && /* @__PURE__ */ V("rect", {
3500
+ x: ve.x,
3501
+ y: ve.y,
3502
+ width: ve.w,
3503
+ height: ve.h,
3504
3504
  className: Q.preview
3505
3505
  }),
3506
3506
  o === "polygon" && S.length > 0 && /* @__PURE__ */ H(B, { children: [
@@ -3523,7 +3523,7 @@ function tr({ className: e }) {
3523
3523
  ] })
3524
3524
  ]
3525
3525
  }),
3526
- ve && !g && /* @__PURE__ */ H("div", {
3526
+ ye && !g && /* @__PURE__ */ H("div", {
3527
3527
  className: Q.roomDrawerInfo,
3528
3528
  children: [
3529
3529
  /* @__PURE__ */ V("span", {
@@ -3532,25 +3532,25 @@ function tr({ className: e }) {
3532
3532
  }),
3533
3533
  /* @__PURE__ */ V("input", {
3534
3534
  className: Q.roomDrawerInfoInput,
3535
- value: ve.name,
3536
- onChange: (e) => de(e.target.value),
3535
+ value: ye.name,
3536
+ onChange: (e) => fe(e.target.value),
3537
3537
  placeholder: "Room name"
3538
3538
  }),
3539
3539
  /* @__PURE__ */ H("button", {
3540
3540
  className: Q.roomDrawerInfoDoorsBtn,
3541
- onClick: () => _(ve.id),
3541
+ onClick: () => _(ye.id),
3542
3542
  title: "Edit doors",
3543
- 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 })]
3544
3544
  }),
3545
3545
  /* @__PURE__ */ V("button", {
3546
3546
  className: Q.roomDrawerInfoDelete,
3547
- onClick: pe,
3547
+ onClick: me,
3548
3548
  title: "Delete room",
3549
3549
  children: /* @__PURE__ */ V(p, { icon: R })
3550
3550
  })
3551
3551
  ]
3552
3552
  }),
3553
- g && ye && /* @__PURE__ */ H("div", {
3553
+ g && be && /* @__PURE__ */ H("div", {
3554
3554
  className: Q.roomDrawerDoorPanel,
3555
3555
  children: [/* @__PURE__ */ H("div", {
3556
3556
  className: Q.roomDrawerDoorPanelHeader,
@@ -3561,7 +3561,7 @@ function tr({ className: e }) {
3561
3561
  }),
3562
3562
  /* @__PURE__ */ V("span", {
3563
3563
  className: Q.roomDrawerDoorPanelTitle,
3564
- children: ye.name ? `Doors · ${ye.name}` : "Doors"
3564
+ children: be.name ? `Doors · ${be.name}` : "Doors"
3565
3565
  }),
3566
3566
  /* @__PURE__ */ H("button", {
3567
3567
  className: Q.roomDrawerDoorPanelDone,
@@ -3572,10 +3572,10 @@ function tr({ className: e }) {
3572
3572
  ]
3573
3573
  }), /* @__PURE__ */ H("div", {
3574
3574
  className: Q.roomDrawerDoorPanelList,
3575
- children: [be.length === 0 && /* @__PURE__ */ V("span", {
3575
+ children: [xe.length === 0 && /* @__PURE__ */ V("span", {
3576
3576
  className: Q.roomDrawerDoorPanelEmpty,
3577
3577
  children: "Click on a wall to add a door"
3578
- }), be.map((e, t) => /* @__PURE__ */ H("div", {
3578
+ }), xe.map((e, t) => /* @__PURE__ */ H("div", {
3579
3579
  className: Q.roomDrawerDoorPanelItem,
3580
3580
  children: [
3581
3581
  /* @__PURE__ */ H("span", {
@@ -3591,11 +3591,11 @@ function tr({ className: e }) {
3591
3591
  type: "number",
3592
3592
  min: 1,
3593
3593
  value: e.width,
3594
- onChange: (t) => fe(e.id, t.target.value)
3594
+ onChange: (t) => pe(e.id, t.target.value)
3595
3595
  }),
3596
3596
  /* @__PURE__ */ V("button", {
3597
3597
  className: Q.roomDrawerInfoDelete,
3598
- onClick: () => me(e.id),
3598
+ onClick: () => he(e.id),
3599
3599
  title: "Delete door",
3600
3600
  children: /* @__PURE__ */ V(p, { icon: R })
3601
3601
  })
@@ -3969,12 +3969,12 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
3969
3969
  className: f(vr.tenorPicker, e),
3970
3970
  children: [
3971
3971
  /* @__PURE__ */ H("div", {
3972
- className: xe.actionButtons,
3973
- children: [/* @__PURE__ */ V(Me, {
3972
+ className: Se.actionButtons,
3973
+ children: [/* @__PURE__ */ V(J, {
3974
3974
  onClick: () => v(!0),
3975
3975
  children: "Pick gif"
3976
- }), i && /* @__PURE__ */ V(Me, {
3977
- styleType: Te.Delete,
3976
+ }), i && /* @__PURE__ */ V(J, {
3977
+ styleType: Ee.Delete,
3978
3978
  onClick: () => x(null),
3979
3979
  children: "Remove gif"
3980
3980
  })]
@@ -4006,8 +4006,8 @@ function yr({ className: e, token: t = "", isModal: n = !1, onSelect: r = () =>
4006
4006
  content: /* @__PURE__ */ H(B, { children: [S(), C()] }),
4007
4007
  children: w()
4008
4008
  }),
4009
- i && /* @__PURE__ */ V(Me, {
4010
- styleType: Te.Delete,
4009
+ i && /* @__PURE__ */ V(J, {
4010
+ styleType: Ee.Delete,
4011
4011
  onClick: () => x(null),
4012
4012
  children: "Remove gif"
4013
4013
  }),
@@ -4503,13 +4503,13 @@ function Kr(e, t) {
4503
4503
  //#endregion
4504
4504
  //#region package/common/virtualList/useVirtualWindow.ts
4505
4505
  function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l, overscan: f, onLoadMore: p, loadMoreThreshold: m, forwardedRef: h }) {
4506
- let [g, _] = d(0), [v, y] = d(0), [b, x] = d(/* @__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) => {
4507
- 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) => {
4508
4508
  let n = null;
4509
4509
  for (let r of e) {
4510
4510
  let e = r.target, i = Number(e.dataset.index);
4511
4511
  if (Number.isNaN(i)) continue;
4512
- let a = A.current[i];
4512
+ let a = M.current[i];
4513
4513
  if (a === void 0) continue;
4514
4514
  let o = r.borderBoxSize?.[0], s = o ? Math.round(o.blockSize) : e.offsetHeight;
4515
4515
  t.get(a) !== s && (n ||= new Map(t), n.set(a, s));
@@ -4517,44 +4517,46 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4517
4517
  return n ?? t;
4518
4518
  });
4519
4519
  }));
4520
- a(() => () => j?.disconnect(), [j]), s(() => {
4521
- let e = T.current;
4520
+ a(() => () => N?.disconnect(), [N]), s(() => {
4521
+ let e = D.current;
4522
4522
  if (!e) return;
4523
- y(e.clientHeight);
4524
- 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
+ });
4525
4527
  return t.observe(e), () => t.disconnect();
4526
4528
  }, []);
4527
- let M = i((e) => {
4529
+ let P = i((e) => {
4528
4530
  let t = e.currentTarget;
4529
- k.current = t.scrollTop, O.current ??= requestAnimationFrame(() => {
4530
- O.current = null, _(k.current);
4531
- }), p && !w.current && t.scrollTop + t.clientHeight >= t.scrollHeight - m && (w.current = !0, C(!0), p().finally(() => {
4532
- 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);
4533
4535
  }));
4534
4536
  }, [p, m]);
4535
4537
  a(() => () => {
4536
- O.current != null && cancelAnimationFrame(O.current);
4538
+ A.current != null && cancelAnimationFrame(A.current);
4537
4539
  }, []), s(() => {
4538
- A.current = t;
4540
+ M.current = t;
4539
4541
  });
4540
- let { offsets: N, totalHeight: P } = c(() => Lr(t, b, r, l), [
4542
+ let { offsets: F, totalHeight: I } = c(() => Lr(t, S, r, l), [
4541
4543
  t,
4542
- b,
4544
+ S,
4543
4545
  r,
4544
4546
  l
4545
4547
  ]);
4546
4548
  s(() => {
4547
- let t = T.current, n = D.current;
4548
- 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;
4549
4551
  let r = t.scrollTop;
4550
4552
  if (r <= 0) return;
4551
4553
  let i = Rr(n, r, n.length - 1);
4552
4554
  if (i >= e.length) return;
4553
- let a = r - n[i], o = N[i] + a;
4554
- Math.abs(o - r) > .5 && (t.scrollTop = o, k.current = o, _(o));
4555
- }, [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, () => {
4556
4558
  function t(e, t) {
4557
- let n = T.current;
4559
+ let n = D.current;
4558
4560
  if (!n) return;
4559
4561
  let r = Math.max(0, e);
4560
4562
  typeof n.scrollTo == "function" ? n.scrollTo({
@@ -4563,9 +4565,9 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4563
4565
  }) : n.scrollTop = r;
4564
4566
  }
4565
4567
  function r(n, r) {
4566
- let i = T.current;
4568
+ let i = D.current;
4567
4569
  if (!i || e.length === 0) return;
4568
- 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;
4569
4571
  u === "center" ? d -= (l - s) / 2 : u === "end" && (d -= l - s), t(d, r?.behavior);
4570
4572
  }
4571
4573
  return {
@@ -4577,32 +4579,33 @@ function qr({ items: e, keys: t, getItemKey: n, estimatedRowHeight: r, rowGap: l
4577
4579
  scrollToTop(e) {
4578
4580
  t(0, e?.behavior);
4579
4581
  },
4580
- getScrollElement: () => T.current
4582
+ getScrollElement: () => D.current
4581
4583
  };
4582
4584
  }, [
4583
4585
  e,
4584
- N,
4586
+ F,
4585
4587
  n
4586
4588
  ]);
4587
- let { startIndex: F, endIndex: I } = c(() => zr(N, g, v, f, e.length), [
4588
- N,
4589
+ let { startIndex: ee, endIndex: L } = c(() => zr(F, g, v, f, e.length), [
4590
+ F,
4589
4591
  g,
4590
4592
  v,
4591
4593
  f,
4592
4594
  e.length
4593
4595
  ]);
4594
4596
  return {
4595
- rootRef: T,
4596
- headerRef: E,
4597
- rowObserver: j,
4598
- keysRef: A,
4599
- offsets: N,
4600
- totalHeight: P,
4597
+ rootRef: D,
4598
+ headerRef: O,
4599
+ rowObserver: N,
4600
+ keysRef: M,
4601
+ offsets: F,
4602
+ totalHeight: I,
4601
4603
  containerHeight: v,
4602
- startIndex: F,
4603
- endIndex: I,
4604
- handleScroll: M,
4605
- showLoadMoreSpinner: S
4604
+ containerWidth: b,
4605
+ startIndex: ee,
4606
+ endIndex: L,
4607
+ handleScroll: P,
4608
+ showLoadMoreSpinner: w
4606
4609
  };
4607
4610
  }
4608
4611
  //#endregion
@@ -4631,14 +4634,14 @@ function Jr({ items: e, getKey: t, multiSelect: n, selectedKeys: r, onSelectionC
4631
4634
  }
4632
4635
  //#endregion
4633
4636
  //#region package/common/virtualList/useColumns.ts
4634
- function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisibleColumnsChange: i, persistColumnsKey: o, showColumnToggle: c, rootRef: l, startIndex: f, endIndex: p, containerHeight: m }) {
4635
- 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(() => {
4636
4639
  let t = Gr(o);
4637
4640
  return new Set((e ?? []).filter((e) => Kr(e, t)).map((e) => e.key));
4638
- }), C = u(new Set((e ?? []).map((e) => e.key)));
4641
+ }), w = u(new Set((e ?? []).map((e) => e.key)));
4639
4642
  a(() => {
4640
- if (h) return;
4641
- 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;
4642
4645
  if (i) {
4643
4646
  for (let e of n) if (!r.has(e)) {
4644
4647
  i = !1;
@@ -4646,53 +4649,53 @@ function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
4646
4649
  }
4647
4650
  }
4648
4651
  if (i) return;
4649
- C.current = n;
4652
+ w.current = n;
4650
4653
  let a = Gr(o);
4651
- S((e) => {
4654
+ C((e) => {
4652
4655
  let n = /* @__PURE__ */ new Set();
4653
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);
4654
4657
  return n;
4655
4658
  });
4656
4659
  }, [
4657
4660
  e,
4658
- h,
4661
+ g,
4659
4662
  o
4660
4663
  ]), a(() => {
4661
- if (h || !o || typeof window > "u") return;
4664
+ if (g || !o || typeof window > "u") return;
4662
4665
  let t = e ?? [];
4663
- if (!(t.length === 0 || x.size === 0)) try {
4666
+ if (!(t.length === 0 || S.size === 0)) try {
4664
4667
  window.localStorage.setItem(Wr + o, JSON.stringify({
4665
- visible: [...x],
4668
+ visible: [...S],
4666
4669
  known: t.map((e) => e.key)
4667
4670
  }));
4668
4671
  } catch {}
4669
4672
  }, [
4670
- x,
4673
+ S,
4671
4674
  e,
4672
- h,
4675
+ g,
4673
4676
  o
4674
4677
  ]);
4675
- let w = h ? new Set(r) : x;
4678
+ let T = g ? new Set(r) : S;
4676
4679
  a(() => {
4677
- if (!g) return;
4680
+ if (!_) return;
4678
4681
  function e(e) {
4679
- v.current && !v.current.contains(e.target) && _(!1);
4682
+ y.current && !y.current.contains(e.target) && v(!1);
4680
4683
  }
4681
4684
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
4682
- }, [g]);
4683
- 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({
4684
- 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,
4685
4688
  items: t
4686
4689
  });
4687
- (N.key !== M || N.items !== t) && (P({
4688
- key: M,
4690
+ (P.key !== N || P.items !== t) && (F({
4691
+ key: N,
4689
4692
  items: t
4690
- }), Object.keys(y).length > 0 && b({})), s(() => {
4691
- if (!j) return;
4693
+ }), Object.keys(b).length > 0 && x({})), s(() => {
4694
+ if (!M) return;
4692
4695
  let e = l.current;
4693
- e && b((t) => {
4696
+ e && x((t) => {
4694
4697
  let n = !1, r = { ...t };
4695
- for (let i of A) {
4698
+ for (let i of j) {
4696
4699
  let a = 0;
4697
4700
  if (e.querySelectorAll(`[data-fit-key="${i.key}"]`).forEach((e) => {
4698
4701
  let t = e, n = t.scrollWidth > t.clientWidth && parseFloat(getComputedStyle(t).paddingRight) || 0, r = t.scrollWidth + n;
@@ -4704,33 +4707,34 @@ function Yr({ columns: e, items: t, multiSelect: n, visibleColumnKeys: r, onVisi
4704
4707
  return n ? r : t;
4705
4708
  });
4706
4709
  }, [
4707
- j,
4708
4710
  M,
4709
- y,
4711
+ N,
4712
+ b,
4710
4713
  f,
4711
4714
  p,
4712
- m
4715
+ m,
4716
+ h
4713
4717
  ]);
4714
- function F(e) {
4715
- let t = new Set(w);
4718
+ function I(e) {
4719
+ let t = new Set(T);
4716
4720
  if (t.has(e)) {
4717
4721
  if (t.size <= 1) return;
4718
4722
  t.delete(e);
4719
4723
  } else t.add(e);
4720
4724
  let n = [...t];
4721
- h || S(t), i?.(n);
4725
+ g || C(t), i?.(n);
4722
4726
  }
4723
4727
  return {
4724
- hasColumns: T,
4725
- visibleColumns: E,
4726
- columnTemplate: O,
4727
- shouldShowToggle: k,
4728
- effectiveVisible: w,
4729
- manuallyHiddenCount: D,
4730
- toggleOpen: g,
4731
- setToggleOpen: _,
4732
- toggleRef: v,
4733
- 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
4734
4738
  };
4735
4739
  }
4736
4740
  //#endregion
@@ -4839,14 +4843,14 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4839
4843
  e.cancelable && e.preventDefault(), se(), U(t.clientX);
4840
4844
  }
4841
4845
  }, [U, se]);
4842
- function G(n, r) {
4846
+ function ue(n, r) {
4843
4847
  if (!e && !t || c && !r.target.closest("[data-drag-handle]") || k.current != null || A.current) return;
4844
4848
  let i = r.touches[0];
4845
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(() => {
4846
- 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);
4847
4851
  }, o));
4848
4852
  }
4849
- function K(e) {
4853
+ function G(e) {
4850
4854
  let t = h.current;
4851
4855
  if (!t) return;
4852
4856
  let n = g.current.indexOf(e), r = t.querySelector(`[data-index="${n}"]`);
@@ -4870,31 +4874,31 @@ function Xr({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
4870
4874
  }), t.appendChild(a), I.current = a, se();
4871
4875
  }
4872
4876
  a(() => ce, [ce]);
4873
- let q = e || t;
4874
- function ue(n, r) {
4877
+ let K = e || t;
4878
+ function de(n, r) {
4875
4879
  let i = t && b?.key === r ? b.position : void 0;
4876
4880
  return {
4877
- reorderable: q,
4878
- draggable: q && !te || void 0,
4879
- isDragging: q && r === v,
4880
- onMouseDown: q && c ? ne : void 0,
4881
- 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,
4882
4886
  onDragOver: t ? (e) => B(n, e) : e ? (e) => ae(n, e) : void 0,
4883
4887
  onDragEnd: t ? ie : e ? oe : void 0,
4884
4888
  onDrop: t ? H : void 0,
4885
- onTouchStart: q ? (e) => G(r, e) : void 0,
4889
+ onTouchStart: K ? (e) => ue(r, e) : void 0,
4886
4890
  dropPosition: i,
4887
4891
  dropIndentPx: i ? (p[n] ?? 0) * l : void 0
4888
4892
  };
4889
4893
  }
4890
- function de() {
4894
+ function fe() {
4891
4895
  return F.current ? (F.current = !1, !0) : !1;
4892
4896
  }
4893
4897
  return {
4894
4898
  draggingKey: v,
4895
- dragEnabled: q,
4896
- getRowDragProps: ue,
4897
- consumeSuppressedClick: de
4899
+ dragEnabled: K,
4900
+ getRowDragProps: de,
4901
+ consumeSuppressedClick: fe
4898
4902
  };
4899
4903
  }
4900
4904
  //#endregion
@@ -4910,13 +4914,13 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4910
4914
  onLoadMore: v,
4911
4915
  loadMoreThreshold: y,
4912
4916
  forwardedRef: ne
4913
- }), { 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({
4914
4918
  items: e,
4915
4919
  getKey: z,
4916
4920
  multiSelect: x,
4917
4921
  selectedKeys: S,
4918
4922
  onSelectionChange: C
4919
- }), { 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({
4920
4924
  columns: n,
4921
4925
  items: e,
4922
4926
  multiSelect: x,
@@ -4925,10 +4929,11 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4925
4929
  persistColumnsKey: g,
4926
4930
  showColumnToggle: _,
4927
4931
  rootRef: U,
4928
- startIndex: K,
4929
- endIndex: q,
4930
- containerHeight: oe.containerHeight
4931
- }), J = Xr({
4932
+ startIndex: G,
4933
+ endIndex: K,
4934
+ containerHeight: oe.containerHeight,
4935
+ containerWidth: oe.containerWidth
4936
+ }), q = Xr({
4932
4937
  reorderable: w,
4933
4938
  treeReorder: D,
4934
4939
  onReorder: T,
@@ -4941,40 +4946,40 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4941
4946
  isGroupAt: ae,
4942
4947
  rootRef: U,
4943
4948
  keysRef: ce
4944
- }), Se = (n) => {
4945
- 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);
4946
4951
  return /* @__PURE__ */ V(Ir, {
4947
4952
  index: n,
4948
4953
  top: le[n],
4949
- columnTemplate: me,
4954
+ columnTemplate: he,
4950
4955
  isSelected: a,
4951
4956
  showDivider: P,
4952
4957
  hover: F,
4953
4958
  onClick: () => {
4954
- J.consumeSuppressedClick() || d?.(r, n);
4959
+ q.consumeSuppressedClick() || d?.(r, n);
4955
4960
  },
4956
4961
  observer: W,
4957
- ariaRowIndex: fe ? n + 2 : void 0,
4958
- ariaPosInSet: fe ? void 0 : n + 1,
4959
- ariaSetSize: fe ? void 0 : e.length,
4960
- rowRole: fe ? "row" : "listitem",
4961
- 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,
4962
4967
  ...o,
4963
4968
  dropIndicatorClassName: L?.dropIndicator,
4964
4969
  dropIndicatorStyle: R?.dropIndicator,
4965
4970
  rowClassName: L?.row,
4966
4971
  rowStyle: R?.row,
4967
- children: fe ? /* @__PURE__ */ H(B, { children: [x && /* @__PURE__ */ V("div", {
4972
+ children: pe ? /* @__PURE__ */ H(B, { children: [x && /* @__PURE__ */ V("div", {
4968
4973
  className: f($.virtualListSelectCell, L?.selectCell),
4969
4974
  style: R?.selectCell,
4970
4975
  role: "gridcell",
4971
4976
  onClick: (e) => e.stopPropagation(),
4972
4977
  children: /* @__PURE__ */ V(qe, {
4973
- selected: de.has(i),
4974
- onToggle: () => ue.handleRowSelect(i),
4978
+ selected: fe.has(i),
4979
+ onToggle: () => de.handleRowSelect(i),
4975
4980
  "aria-label": "Select row"
4976
4981
  })
4977
- }), pe.map((e) => /* @__PURE__ */ V("div", {
4982
+ }), me.map((e) => /* @__PURE__ */ V("div", {
4978
4983
  className: f($.virtualListCell, L?.cell),
4979
4984
  style: R?.cell,
4980
4985
  role: "gridcell",
@@ -4982,28 +4987,28 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
4982
4987
  children: e.renderCell(r, n)
4983
4988
  }, e.key))] }) : t?.(r, n)
4984
4989
  }, i);
4985
- }, Ce = [];
4986
- for (let e = K; e <= q; e++) Ce.push(Se(e));
4987
- let Te = J.draggingKey == null ? -1 : re.indexOf(J.draggingKey);
4988
- 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", {
4989
4994
  ...te,
4990
4995
  ref: U,
4991
- className: f($.virtualList, J.draggingKey != null && $.virtualListReordering, I, L?.root),
4996
+ className: f($.virtualList, q.draggingKey != null && $.virtualListReordering, I, L?.root),
4992
4997
  style: {
4993
4998
  height: r,
4994
4999
  ...ee,
4995
5000
  ...R?.root
4996
5001
  },
4997
5002
  onScroll: oe.handleScroll,
4998
- role: fe ? "grid" : "list",
4999
- "aria-rowcount": fe ? e.length + 1 : void 0,
5003
+ role: pe ? "grid" : "list",
5004
+ "aria-rowcount": pe ? e.length + 1 : void 0,
5000
5005
  children: [
5001
- fe && /* @__PURE__ */ H("div", {
5006
+ pe && /* @__PURE__ */ H("div", {
5002
5007
  ref: se,
5003
5008
  className: f($.virtualListHeader, L?.header),
5004
5009
  style: {
5005
- gridTemplateColumns: me,
5006
- ...he ? { paddingRight: 32 } : {},
5010
+ gridTemplateColumns: he,
5011
+ ...ge ? { paddingRight: 32 } : {},
5007
5012
  ...R?.header
5008
5013
  },
5009
5014
  role: "row",
@@ -5014,48 +5019,48 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5014
5019
  style: R?.selectCell,
5015
5020
  role: "columnheader",
5016
5021
  children: /* @__PURE__ */ V(qe, {
5017
- selected: ue.allSelected || ue.someSelected,
5018
- onToggle: ue.handleSelectAll,
5022
+ selected: de.allSelected || de.someSelected,
5023
+ onToggle: de.handleSelectAll,
5019
5024
  "aria-label": "Select all rows"
5020
5025
  })
5021
5026
  }),
5022
- pe.map((e) => /* @__PURE__ */ V("div", {
5027
+ me.map((e) => /* @__PURE__ */ V("div", {
5023
5028
  className: f($.virtualListHeaderCell, L?.headerCell),
5024
5029
  style: R?.headerCell,
5025
5030
  role: "columnheader",
5026
5031
  "data-fit-key": e.width.type === "fit" ? e.key : void 0,
5027
5032
  children: e.label
5028
5033
  }, e.key)),
5029
- he && /* @__PURE__ */ H("div", {
5030
- ref: be,
5034
+ ge && /* @__PURE__ */ H("div", {
5035
+ ref: xe,
5031
5036
  className: $.virtualListToggleWrapper,
5032
5037
  children: [
5033
5038
  /* @__PURE__ */ V("button", {
5034
5039
  type: "button",
5035
5040
  className: f($.virtualListHeaderToggle, L?.headerToggle),
5036
5041
  style: R?.headerToggle,
5037
- onClick: () => ye((e) => !e),
5042
+ onClick: () => be((e) => !e),
5038
5043
  "aria-label": "Toggle column visibility",
5039
5044
  children: /* @__PURE__ */ V(p, {
5040
5045
  icon: k,
5041
5046
  style: R?.headerToggle
5042
5047
  })
5043
5048
  }),
5044
- _e > 0 && /* @__PURE__ */ V("span", {
5049
+ ve > 0 && /* @__PURE__ */ V("span", {
5045
5050
  className: f($.virtualListColumnChip, L?.columnChip),
5046
5051
  style: R?.columnChip,
5047
- "data-column-hidden-count": _e,
5048
- "aria-label": `${_e} columns hidden`,
5049
- children: _e
5052
+ "data-column-hidden-count": ve,
5053
+ "aria-label": `${ve} columns hidden`,
5054
+ children: ve
5050
5055
  }),
5051
- ve && /* @__PURE__ */ V("div", {
5056
+ ye && /* @__PURE__ */ V("div", {
5052
5057
  className: f($.virtualListTogglePopover, L?.togglePopover),
5053
5058
  style: R?.togglePopover,
5054
5059
  children: n.map((e) => /* @__PURE__ */ V(qe, {
5055
5060
  className: f($.virtualListToggleItem, L?.toggleItem),
5056
5061
  style: R?.toggleItem,
5057
- selected: ge.has(e.key),
5058
- onToggle: () => xe(e.key),
5062
+ selected: _e.has(e.key),
5063
+ onToggle: () => Se(e.key),
5059
5064
  cursorDefault: !1,
5060
5065
  children: e.label
5061
5066
  }, e.key))
@@ -5066,19 +5071,19 @@ function Zr({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5066
5071
  }),
5067
5072
  b ? /* @__PURE__ */ V("div", {
5068
5073
  className: $.virtualListLoadingFull,
5069
- children: /* @__PURE__ */ V(we, { className: $.virtualListSpinner })
5074
+ children: /* @__PURE__ */ V(Te, { className: $.virtualListSpinner })
5070
5075
  }) : /* @__PURE__ */ V("div", {
5071
5076
  className: f($.virtualListBody, L?.body),
5072
5077
  style: {
5073
- height: G,
5078
+ height: ue,
5074
5079
  ...R?.body
5075
5080
  },
5076
- children: Ce
5081
+ children: we
5077
5082
  }),
5078
5083
  oe.showLoadMoreSpinner && /* @__PURE__ */ V("div", {
5079
5084
  className: f($.virtualListLoadingIndicator, L?.loadingIndicator),
5080
5085
  style: R?.loadingIndicator,
5081
- children: /* @__PURE__ */ V(we, { className: $.virtualListSpinner })
5086
+ children: /* @__PURE__ */ V(Te, { className: $.virtualListSpinner })
5082
5087
  })
5083
5088
  ]
5084
5089
  });
@@ -5224,7 +5229,7 @@ var ni = class {
5224
5229
  }), this.onValidateCallback) return this.onValidateCallback(this);
5225
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) => {
5226
5231
  let t = this.group[e], n = this.#e;
5227
- 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(() => {
5228
5233
  this.#a(), this.submitCount = 0, this.#n && clearTimeout(this.#n), this.#n = setTimeout(() => this.onDebounce(this.getValues()), 500);
5229
5234
  });
5230
5235
  }), this.component = t, this.onSubmitCallback = r, this.onValidateCallback = i, this.errorParser = a, this.onSubmitError = o, this.setSubmitting(!1);
@@ -5584,6 +5589,6 @@ function xi(e, { initialValues: t, onSubmit: n, onValidate: r, errorParser: i, o
5584
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;
5585
5590
  }
5586
5591
  //#endregion
5587
- 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 };
5588
5593
 
5589
5594
  //# sourceMappingURL=index.mjs.map