@hellobetterdigitalnz/betterui 0.0.3-187 → 0.0.3-188

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.es.js CHANGED
@@ -380,8 +380,8 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
380
380
  onClick: v,
381
381
  onChange: p,
382
382
  ...V
383
- } = e, [H, _] = O(!1), m = ["checkboxHolder", v2.checkboxHolder], y = ["checkbox", v2.checkbox];
384
- s && m.push(s), h && (m.push(v2.error), y.push(v2.error)), c && m.push(v2.disabled), G(() => {
383
+ } = e, [H, _] = O(!1), Z = ["checkboxHolder", v2.checkboxHolder], y = ["checkbox", v2.checkbox];
384
+ s && Z.push(s), h && (Z.push(v2.error), y.push(v2.error)), c && Z.push(v2.disabled), G(() => {
385
385
  _(n || !1);
386
386
  }, [n]);
387
387
  const x = (b) => {
@@ -389,7 +389,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
389
389
  }, u = (b) => {
390
390
  p && p(b);
391
391
  };
392
- return /* @__PURE__ */ a("div", { className: W(m), children: [
392
+ return /* @__PURE__ */ a("div", { className: W(Z), children: [
393
393
  /* @__PURE__ */ a("div", { className: W(y), children: [
394
394
  /* @__PURE__ */ C(
395
395
  "input",
@@ -466,8 +466,8 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
466
466
  onClick: v,
467
467
  onChange: p,
468
468
  ...V
469
- } = e, [H, _] = O(!1), m = ["checkbox", v2.checkbox], y = ["checkboxHolder", v2.checkboxHolder];
470
- s && m.push(s), h && (m.push(v2.error), y.push(v2.error)), G(() => {
469
+ } = e, [H, _] = O(!1), Z = ["checkbox", v2.checkbox], y = ["checkboxHolder", v2.checkboxHolder];
470
+ s && Z.push(s), h && (Z.push(v2.error), y.push(v2.error)), G(() => {
471
471
  _(n || !1);
472
472
  }, [n]);
473
473
  const x = (b) => {
@@ -476,7 +476,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
476
476
  p && p(b);
477
477
  };
478
478
  return /* @__PURE__ */ C("div", { className: F2.checkboxSetItemCon, children: /* @__PURE__ */ a("div", { className: W(y), children: [
479
- /* @__PURE__ */ a("div", { className: W(m), children: [
479
+ /* @__PURE__ */ a("div", { className: W(Z), children: [
480
480
  /* @__PURE__ */ C(
481
481
  "input",
482
482
  {
@@ -529,7 +529,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
529
529
  ] }) });
530
530
  }, V0 = () => {
531
531
  }, M0 = () => {
532
- }, L5 = "_input_d2iuq_1", H5 = "_error_d2iuq_26", p5 = "_passwordCon_d2iuq_35", V5 = "_eyeicon_d2iuq_43", M5 = "_date_d2iuq_56", Z5 = "_time_d2iuq_57", m5 = "_currency_d2iuq_58", x5 = "_textField_d2iuq_59", _5 = "_calendarIcon_d2iuq_137", b5 = "_clockIcon_d2iuq_138", B5 = "_currencyIcon_d2iuq_139", y5 = "_textFieldIcon_d2iuq_140", N5 = "_unitField_d2iuq_181", I5 = "_unitText_d2iuq_187", S5 = "_active_d2iuq_199", D = {
532
+ }, L5 = "_input_d2iuq_1", H5 = "_error_d2iuq_26", p5 = "_passwordCon_d2iuq_35", V5 = "_eyeicon_d2iuq_43", M5 = "_date_d2iuq_56", Z5 = "_time_d2iuq_57", m5 = "_currency_d2iuq_58", x5 = "_textField_d2iuq_59", _5 = "_calendarIcon_d2iuq_137", b5 = "_clockIcon_d2iuq_138", B5 = "_currencyIcon_d2iuq_139", y5 = "_textFieldIcon_d2iuq_140", N5 = "_unitField_d2iuq_181", I5 = "_unitText_d2iuq_187", S5 = "_active_d2iuq_199", q = {
533
533
  input: L5,
534
534
  error: H5,
535
535
  passwordCon: p5,
@@ -677,7 +677,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
677
677
  const _ = (x) => {
678
678
  const u = x == null ? void 0 : x.toString().split(".");
679
679
  return u[0] = u[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), u.join(".");
680
- }, m = (x) => {
680
+ }, Z = (x) => {
681
681
  const { value: u } = x.target, b = u == null ? void 0 : u.toString().replace(/[^0-9.]/g, ""), S = b.split(".").length - 1;
682
682
  let B = b;
683
683
  if (S > 1 && (B = b.slice(0, b.lastIndexOf("."))), H(_(B)), v) {
@@ -690,8 +690,8 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
690
690
  };
691
691
  v($);
692
692
  }
693
- }, y = [D.input];
694
- return s && y.push(D.error), o && y.push(o), /* @__PURE__ */ a("div", { className: D.currency, children: [
693
+ }, y = [q.input];
694
+ return s && y.push(q.error), o && y.push(o), /* @__PURE__ */ a("div", { className: q.currency, children: [
695
695
  /* @__PURE__ */ C(
696
696
  "input",
697
697
  {
@@ -704,7 +704,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
704
704
  disabled: i,
705
705
  readOnly: w,
706
706
  required: h,
707
- onChange: m,
707
+ onChange: Z,
708
708
  autoComplete: d ? "on" : "off",
709
709
  "aria-label": c || t,
710
710
  "aria-required": h ? "true" : "false",
@@ -715,7 +715,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
715
715
  ...p
716
716
  }
717
717
  ),
718
- /* @__PURE__ */ C("div", { className: D.currencyIcon, children: f || /* @__PURE__ */ C($5, {}) })
718
+ /* @__PURE__ */ C("div", { className: q.currencyIcon, children: f || /* @__PURE__ */ C($5, {}) })
719
719
  ] });
720
720
  }, T5 = ({ type: e = "light" }) => e === "thin" ? /* @__PURE__ */ C(
721
721
  "svg",
@@ -837,8 +837,8 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
837
837
  readonly: w,
838
838
  autoComplete: d,
839
839
  ...f
840
- } = e, v = [D.input];
841
- return s && v.push(D.error), o && v.push(o), /* @__PURE__ */ a("div", { className: D.date, children: [
840
+ } = e, v = [q.input];
841
+ return s && v.push(q.error), o && v.push(o), /* @__PURE__ */ a("div", { className: q.date, children: [
842
842
  /* @__PURE__ */ C(
843
843
  "input",
844
844
  {
@@ -861,7 +861,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
861
861
  ...f
862
862
  }
863
863
  ),
864
- /* @__PURE__ */ C("div", { className: D.calendarIcon, children: /* @__PURE__ */ C(T5, { type: "light" }) })
864
+ /* @__PURE__ */ C("div", { className: q.calendarIcon, children: /* @__PURE__ */ C(T5, { type: "light" }) })
865
865
  ] });
866
866
  }, k5 = "_dropdown_1g72c_1", E5 = "_lock_1g72c_4", P5 = "_control_1g72c_4", O5 = "_disabled_1g72c_23", R5 = "_labelWrapper_1g72c_28", A5 = "_label_1g72c_28", j5 = "_chevron_1g72c_39", D5 = "_dropdownSelector_1g72c_58", q5 = "_dropdownItem_1g72c_86", W5 = "_active_1g72c_95", F5 = "_circle_1g72c_99", z5 = "_dropdowncircleItem_1g72c_106", U5 = "_circleDraft_1g72c_110", Y5 = "_circleCustom_1g72c_113", G5 = "_circlePending_1g72c_116", K5 = "_circleInProgress_1g72c_119", J5 = "_circleComplete_1g72c_122", X5 = "_divider_1g72c_131", t2 = {
867
867
  dropdown: k5,
@@ -975,54 +975,54 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
975
975
  status: h,
976
976
  lock: w,
977
977
  onChange: d
978
- } = e, [f, v] = O(!1), [p, V] = O(), [H, _] = O(""), [m, y] = O(""), [x, u] = O(0), [b, S] = O(0), B = d2(null);
978
+ } = e, [f, v] = O(!1), [p, V] = O(), [H, _] = O(""), [Z, y] = O(""), [x, u] = O(0), [b, S] = O(0), B = d2(null);
979
979
  G(() => {
980
- const I = l[0];
981
- I && (n !== void 0 && l.some((T) => T === n || typeof T == "object" && T.value === n) ? V(n) : V(
982
- typeof I == "object" ? I.value : I
983
- ), typeof I == "object" && (_(I.label || ""), y(
984
- I.status ? $(I.status) : ""
980
+ const N = l[0];
981
+ N && (n !== void 0 && l.some((T) => T === n || typeof T == "object" && T.value === n) ? V(n) : V(
982
+ typeof N == "object" ? N.value : N
983
+ ), typeof N == "object" && (_(N.label || ""), y(
984
+ N.status ? $(N.status) : ""
985
985
  )));
986
986
  }, [n, l]), G(() => {
987
- for (const I of l) {
987
+ for (const N of l) {
988
988
  let T = null;
989
- if (typeof I == "string" ? T = I === p ? I : null : T = I.value === p ? I.label : null, T) {
990
- _(T), typeof I == "object" && I.status ? y($(I.status)) : y("");
989
+ if (typeof N == "string" ? T = N === p ? N : null : T = N.value === p ? N.label : null, T) {
990
+ _(T), typeof N == "object" && N.status ? y($(N.status)) : y("");
991
991
  break;
992
992
  }
993
993
  }
994
994
  }, [p, l, h]), G(() => {
995
- const I = (T) => {
995
+ const N = (T) => {
996
996
  B.current && !B.current.contains(T.target) && v(!1);
997
997
  };
998
- return document.addEventListener("mousedown", I), window.addEventListener("scroll", I), () => {
999
- document.removeEventListener("mousedown", I), window.removeEventListener("scroll", I);
998
+ return document.addEventListener("mousedown", N), window.addEventListener("scroll", N), () => {
999
+ document.removeEventListener("mousedown", N), window.removeEventListener("scroll", N);
1000
1000
  };
1001
1001
  }, []), G(() => {
1002
- const I = () => {
1002
+ const N = () => {
1003
1003
  const T = B.current;
1004
1004
  if (!T)
1005
1005
  return;
1006
1006
  const h2 = T.getBoundingClientRect().width;
1007
1007
  u(h2);
1008
1008
  };
1009
- return window.addEventListener("load", I), I(), () => {
1010
- window.removeEventListener("load", I);
1009
+ return window.addEventListener("load", N), N(), () => {
1010
+ window.removeEventListener("load", N);
1011
1011
  };
1012
1012
  }, [p, f]), G(() => {
1013
- const I = () => {
1013
+ const N = () => {
1014
1014
  const T = B.current;
1015
1015
  if (!T)
1016
1016
  return;
1017
1017
  const h2 = T.getBoundingClientRect().y;
1018
1018
  S(h2);
1019
1019
  };
1020
- return window.addEventListener("scroll", I), I(), () => {
1021
- window.removeEventListener("scroll", I);
1020
+ return window.addEventListener("scroll", N), N(), () => {
1021
+ window.removeEventListener("scroll", N);
1022
1022
  };
1023
1023
  }, [p, f]);
1024
- const $ = (I) => {
1025
- switch (I) {
1024
+ const $ = (N) => {
1025
+ switch (N) {
1026
1026
  case "draft":
1027
1027
  return t2.circleDraft;
1028
1028
  case "pending":
@@ -1036,17 +1036,17 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
1036
1036
  default:
1037
1037
  return "";
1038
1038
  }
1039
- }, N = [t2.dropdown];
1040
- o && N.push(o), w && N.push(t2.lock);
1041
- const q = () => {
1039
+ }, I = [t2.dropdown];
1040
+ o && I.push(o), w && I.push(t2.lock);
1041
+ const R = () => {
1042
1042
  v(!f);
1043
- }, C2 = (I, T) => {
1044
- V(T), v(!1), d && d(I, T);
1043
+ }, C2 = (N, T) => {
1044
+ V(T), v(!1), d && d(N, T);
1045
1045
  };
1046
- return /* @__PURE__ */ a("div", { ref: B, className: W(N), children: [
1047
- /* @__PURE__ */ a("div", { className: t2.control, onClick: w ? void 0 : q, children: [
1046
+ return /* @__PURE__ */ a("div", { ref: B, className: W(I), children: [
1047
+ /* @__PURE__ */ a("div", { className: t2.control, onClick: w ? void 0 : R, children: [
1048
1048
  p && /* @__PURE__ */ a("div", { className: t2.labelWrapper, children: [
1049
- H && m && /* @__PURE__ */ C("div", { className: W(t2.circle, m) }),
1049
+ H && Z && /* @__PURE__ */ C("div", { className: W(t2.circle, Z) }),
1050
1050
  /* @__PURE__ */ a("div", { className: t2.label, "aria-label": s, children: [
1051
1051
  H,
1052
1052
  !!p && /* @__PURE__ */ C("div", { className: t2.reset })
@@ -1058,13 +1058,13 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
1058
1058
  !!f && /* @__PURE__ */ C(b2, {})
1059
1059
  ] }) })
1060
1060
  ] }),
1061
- !!f && /* @__PURE__ */ C(Q5, { extraClassDropdown: i, position: b, width: x, children: l.map((I, T) => /* @__PURE__ */ C(
1061
+ !!f && /* @__PURE__ */ C(Q5, { extraClassDropdown: i, position: b, width: x, children: l.map((N, T) => /* @__PURE__ */ C(
1062
1062
  C9,
1063
1063
  {
1064
1064
  handleSelect: C2,
1065
- status: typeof I == "object" ? I.status : void 0,
1066
- label: typeof I == "object" ? I.label : I,
1067
- value: typeof I == "object" ? I.value : I
1065
+ status: typeof N == "object" ? N.status : void 0,
1066
+ label: typeof N == "object" ? N.label : N,
1067
+ value: typeof N == "object" ? N.value : N
1068
1068
  },
1069
1069
  T
1070
1070
  )) }),
@@ -1150,7 +1150,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
1150
1150
  // readonly,
1151
1151
  onChange: v
1152
1152
  // ...args
1153
- } = e, [p, V] = O(!1), [H, _] = O(), [m, y] = O(""), x = d2(null);
1153
+ } = e, [p, V] = O(!1), [H, _] = O(), [Z, y] = O(""), x = d2(null);
1154
1154
  G(() => {
1155
1155
  _(n);
1156
1156
  }, [n]), G(() => {
@@ -1180,7 +1180,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
1180
1180
  /* @__PURE__ */ a("div", { className: f2.control, onClick: b, children: [
1181
1181
  !H && o && /* @__PURE__ */ C("div", { className: f2.placeholder, "aria-label": h, children: o }),
1182
1182
  (H || !o) && /* @__PURE__ */ a("div", { className: f2.label, "aria-label": h, children: [
1183
- m,
1183
+ Z,
1184
1184
  !!H && /* @__PURE__ */ C("div", { className: f2.reset })
1185
1185
  ] }),
1186
1186
  /* @__PURE__ */ a("div", { className: f2.chevron, children: [
@@ -1233,8 +1233,8 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
1233
1233
  readonly: w,
1234
1234
  autoComplete: d,
1235
1235
  ...f
1236
- } = e, v = [D.input];
1237
- return s && v.push(D.error), o && v.push(o), /* @__PURE__ */ C(
1236
+ } = e, v = [q.input];
1237
+ return s && v.push(q.error), o && v.push(o), /* @__PURE__ */ C(
1238
1238
  "input",
1239
1239
  {
1240
1240
  className: W(v),
@@ -5036,7 +5036,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5036
5036
  d: "M27.7283 18.8212C27.7518 18.9169 27.7562 19.0163 27.7413 19.1137C27.7264 19.2112 27.6924 19.3047 27.6414 19.389C27.5903 19.4732 27.5231 19.5466 27.4436 19.6049C27.3642 19.6632 27.274 19.7053 27.1783 19.7287L23.8508 20.5462L24.7258 23.8062C24.7513 23.9013 24.7579 24.0006 24.745 24.0982C24.7322 24.1959 24.7003 24.29 24.6511 24.3754C24.6019 24.4607 24.5363 24.5355 24.4582 24.5954C24.3801 24.6554 24.2909 24.6994 24.1958 24.725C24.1325 24.7412 24.0674 24.7496 24.002 24.75C23.8368 24.7501 23.6761 24.6956 23.545 24.595C23.4139 24.4944 23.3197 24.3534 23.277 24.1937L22.2833 20.5L16.7495 17.2987V23.69L19.5295 26.47C19.6032 26.5386 19.6623 26.6214 19.7033 26.7134C19.7443 26.8054 19.7664 26.9047 19.7681 27.0054C19.7699 27.1061 19.7514 27.2062 19.7137 27.2996C19.6759 27.393 19.6198 27.4778 19.5486 27.549C19.4774 27.6202 19.3925 27.6764 19.2991 27.7141C19.2057 27.7518 19.1057 27.7703 19.005 27.7686C18.9043 27.7668 18.805 27.7447 18.713 27.7038C18.621 27.6628 18.5382 27.6037 18.4695 27.53L15.9995 25.0612L13.5295 27.53C13.3874 27.6625 13.1993 27.7346 13.005 27.7311C12.8107 27.7277 12.6253 27.649 12.4879 27.5116C12.3505 27.3742 12.2718 27.1888 12.2684 26.9945C12.2649 26.8002 12.3371 26.6121 12.4695 26.47L15.2495 23.69V17.2987L9.71579 20.5L8.72454 24.2C8.68069 24.3584 8.58598 24.4981 8.45499 24.5975C8.32399 24.6969 8.16396 24.7504 7.99954 24.75C7.93418 24.7496 7.86911 24.7412 7.80579 24.725C7.71066 24.6994 7.62149 24.6554 7.54338 24.5954C7.46526 24.5355 7.39972 24.4607 7.35051 24.3754C7.30129 24.29 7.26936 24.1959 7.25654 24.0982C7.24372 24.0006 7.25026 23.9013 7.27579 23.8062L8.15079 20.5462L4.82329 19.7287C4.63001 19.6813 4.46348 19.5591 4.36034 19.3889C4.25719 19.2187 4.22588 19.0145 4.27329 18.8212C4.3207 18.6279 4.44294 18.4614 4.61313 18.3583C4.78332 18.2551 4.98751 18.2238 5.18079 18.2712L8.95954 19.2L14.4995 16L8.95704 12.8L5.17829 13.7287C5.1198 13.7431 5.05977 13.7502 4.99954 13.75C4.81596 13.7503 4.63862 13.6834 4.50111 13.5617C4.36361 13.4401 4.2755 13.2722 4.25347 13.09C4.23144 12.9077 4.27702 12.7237 4.38158 12.5728C4.48613 12.4219 4.64241 12.3146 4.82079 12.2712L8.14829 11.4537L7.27329 8.19372C7.24551 8.09786 7.23714 7.99743 7.24867 7.89829C7.2602 7.79916 7.2914 7.70333 7.34044 7.61641C7.38948 7.52949 7.45537 7.45323 7.53426 7.3921C7.61315 7.33097 7.70344 7.2862 7.79985 7.26042C7.89626 7.23463 7.99685 7.22834 8.09572 7.24193C8.1946 7.25551 8.28976 7.28869 8.37565 7.33952C8.46153 7.39035 8.53641 7.45781 8.59589 7.53795C8.65537 7.61809 8.69826 7.70929 8.72204 7.80622L9.71329 11.5062L15.2495 14.7012V8.30997L12.4695 5.52997C12.3371 5.38779 12.2649 5.19975 12.2684 5.00545C12.2718 4.81114 12.3505 4.62576 12.4879 4.48835C12.6253 4.35093 12.8107 4.27222 13.005 4.26879C13.1993 4.26537 13.3874 4.33749 13.5295 4.46997L15.9995 6.93872L18.4695 4.46997C18.6117 4.33749 18.7998 4.26537 18.9941 4.26879C19.1884 4.27222 19.3737 4.35093 19.5112 4.48835C19.6486 4.62576 19.7273 4.81114 19.7307 5.00545C19.7341 5.19975 19.662 5.38779 19.5295 5.52997L16.7495 8.30997V14.7012L22.2833 11.5062L23.2745 7.80622C23.2983 7.70929 23.3412 7.61809 23.4007 7.53795C23.4602 7.45781 23.535 7.39035 23.6209 7.33952C23.7068 7.28869 23.802 7.25551 23.9009 7.24193C23.9997 7.22834 24.1003 7.23463 24.1967 7.26042C24.2931 7.2862 24.3834 7.33097 24.4623 7.3921C24.5412 7.45323 24.6071 7.52949 24.6561 7.61641C24.7052 7.70333 24.7364 7.79916 24.7479 7.89829C24.7594 7.99743 24.7511 8.09786 24.7233 8.19372L23.8483 11.4537L27.1758 12.2712C27.354 12.3146 27.5101 12.4217 27.6146 12.5723C27.7192 12.7229 27.765 12.9067 27.7433 13.0887C27.7216 13.2708 27.6339 13.4386 27.4969 13.5605C27.3598 13.6823 27.1829 13.7497 26.9995 13.75C26.9393 13.7502 26.8793 13.7431 26.8208 13.7287L23.042 12.8L17.4995 16L23.042 19.2L26.8208 18.2712C26.9165 18.2477 27.0159 18.2433 27.1133 18.2582C27.2107 18.2731 27.3042 18.3071 27.3885 18.3581C27.4728 18.4092 27.5462 18.4764 27.6045 18.5559C27.6628 18.6353 27.7049 18.7255 27.7283 18.8212Z",
5037
5037
  fill: "currentColor"
5038
5038
  }
5039
- ) }), k9 = "_dropdown_zipc0_1", E9 = "_control_zipc0_4", P9 = "_tagHolder_zipc0_24", O9 = "_disabled_zipc0_41", R9 = "_label_zipc0_46", A9 = "_placeholder_zipc0_53", j9 = "_chevron_zipc0_64", D9 = "_dropdownMenu_zipc0_77", q9 = "_tagWrap_zipc0_104", W9 = "_tag_zipc0_24", F9 = "_removeBtn_zipc0_123", z9 = "_dropdownItem_zipc0_134", U9 = "_selected_zipc0_139", Y9 = "_active_zipc0_142", G9 = "_createOptionMessage_zipc0_149", a2 = {
5039
+ ) }), k9 = "_dropdown_1mi74_1", E9 = "_control_1mi74_4", P9 = "_tagHolder_1mi74_24", O9 = "_disabled_1mi74_41", R9 = "_label_1mi74_46", A9 = "_placeholder_1mi74_53", j9 = "_chevron_1mi74_64", D9 = "_dropdownMenu_1mi74_77", q9 = "_tagWrap_1mi74_104", W9 = "_tag_1mi74_24", F9 = "_removeBtn_1mi74_123", z9 = "_dropdownItem_1mi74_134", U9 = "_selected_1mi74_139", Y9 = "_active_1mi74_142", G9 = "_createOptionMessage_1mi74_149", a2 = {
5040
5040
  dropdown: k9,
5041
5041
  control: E9,
5042
5042
  tagHolder: P9,
@@ -5072,16 +5072,18 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5072
5072
  onMouseEnter: n,
5073
5073
  handleSelect: l,
5074
5074
  isSelected: o,
5075
- isHighlighted: i
5075
+ isHighlighted: i,
5076
+ id: s
5076
5077
  } = e;
5077
5078
  return /* @__PURE__ */ C(
5078
5079
  "div",
5079
5080
  {
5081
+ id: `${s}`,
5080
5082
  className: `${a2.dropdownItem} ${i ? a2.active : ""} ${o ? a2.selected : ""}`,
5081
5083
  "data-value": r,
5082
5084
  "aria-label": t,
5083
- onClick: (s) => {
5084
- l && l(s, r);
5085
+ onClick: (c) => {
5086
+ l && l(c, r);
5085
5087
  },
5086
5088
  onMouseEnter: n,
5087
5089
  children: t
@@ -5096,31 +5098,32 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5096
5098
  onSearch: o,
5097
5099
  creatable: i = !1,
5098
5100
  onCreateNew: s
5099
- } = e, [c, h] = O(!1), [w, d] = O(0), [f, v] = O(""), [p, V] = O(l), H = d2(null), _ = d2(null), m = d2(null), [y, x] = O(!1), u = (N) => r.some((q) => q.value === N.value), b = (N) => {
5100
- u(N) ? n(r.filter((q) => q.value !== N.value)) : n([...r, N]);
5101
+ } = e, [c, h] = O(!1), [w, d] = O(0), [f, v] = O(""), [p, V] = O(l), H = d2(null), _ = d2(null), Z = d2(null), [y, x] = O(!1), u = (I) => r.some((R) => R.value === I.value), b = (I) => {
5102
+ u(I) ? n(r.filter((R) => R.value !== I.value)) : n([...r, I]);
5101
5103
  };
5102
5104
  G(() => {
5103
5105
  c && d(0);
5104
5106
  }, [c]), G(() => {
5105
5107
  c || v("");
5106
5108
  }, [c]), G(() => {
5107
- const N = (q) => {
5108
- H.current && !H.current.contains(q.target) && h(!1);
5109
+ const I = (R) => {
5110
+ H.current && !H.current.contains(R.target) && h(!1);
5109
5111
  };
5110
- return document.addEventListener("mousedown", N), () => {
5111
- document.removeEventListener("mousedown", N);
5112
+ return document.addEventListener("mousedown", I), () => {
5113
+ document.removeEventListener("mousedown", I);
5112
5114
  };
5113
5115
  }, []), G(() => {
5114
- var q;
5115
- const N = (C2) => {
5116
- if (C2.target !== _.current && C2.target !== m.current)
5116
+ var R;
5117
+ const I = (C2) => {
5118
+ if (C2.target !== _.current && C2.target !== Z.current)
5117
5119
  return;
5118
- const I = p.filter(
5120
+ const N = p.filter(
5119
5121
  (T) => T.label.toLowerCase().includes(f.toLowerCase())
5120
5122
  );
5121
5123
  switch (C2.code) {
5122
5124
  case "Enter":
5123
- if (C2.target === m.current && (h((T) => !T), c && I.length > 0 && (b(I[w]), m.current && m.current.blur())), i && f.trim() !== "") {
5125
+ case "Space":
5126
+ if (C2.target === Z.current && (h((T) => !T), c && N.length > 0 && (b(N[w]), Z.current && Z.current.blur()), c && N.length >= 0 && Z.current && Z.current.blur()), i && f.trim() !== "") {
5124
5127
  const T = {
5125
5128
  label: f.trim(),
5126
5129
  value: f.trim().replace(/\s/g, "-")
@@ -5130,12 +5133,12 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5130
5133
  break;
5131
5134
  case "ArrowUp":
5132
5135
  C2.preventDefault(), c ? d(
5133
- (T) => T > 0 ? T - 1 : I.length - 1
5136
+ (T) => T > 0 ? T - 1 : N.length - 1
5134
5137
  ) : h(!0);
5135
5138
  break;
5136
5139
  case "ArrowDown":
5137
5140
  C2.preventDefault(), c ? d(
5138
- (T) => T < I.length - 1 ? T + 1 : 0
5141
+ (T) => T < N.length - 1 ? T + 1 : 0
5139
5142
  ) : h(!0);
5140
5143
  break;
5141
5144
  case "Escape":
@@ -5143,15 +5146,15 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5143
5146
  break;
5144
5147
  }
5145
5148
  };
5146
- return (q = _.current) == null || q.addEventListener("keydown", N), () => {
5149
+ return (R = _.current) == null || R.addEventListener("keydown", I), () => {
5147
5150
  var C2;
5148
- (C2 = _.current) == null || C2.removeEventListener("keydown", N);
5151
+ (C2 = _.current) == null || C2.removeEventListener("keydown", I);
5149
5152
  };
5150
5153
  }, [c, w, l, f, b, i, s]);
5151
5154
  const S = l.filter(
5152
- (N) => N.label.toLowerCase().includes(f.toLowerCase())
5155
+ (I) => I.label.toLowerCase().includes(f.toLowerCase())
5153
5156
  ), B = () => {
5154
- h((N) => !N), x(!y), !c && m.current ? m.current.focus() : m.current.blur();
5157
+ h((I) => !I), x(!y), !c && Z.current ? Z.current.focus() : Z.current.blur();
5155
5158
  };
5156
5159
  G(() => {
5157
5160
  o && o(f);
@@ -5168,24 +5171,24 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5168
5171
  children: [
5169
5172
  !c && r.length === 0 && /* @__PURE__ */ C("span", { className: a2.placeholder, children: t }),
5170
5173
  /* @__PURE__ */ a("div", { className: a2.tagHolder, children: [
5171
- r.map((N) => /* @__PURE__ */ C(
5174
+ r.map((I) => /* @__PURE__ */ C(
5172
5175
  K9,
5173
5176
  {
5174
- label: N.label,
5175
- onRemove: (q) => {
5176
- q.stopPropagation(), b(N);
5177
+ label: I.label,
5178
+ onRemove: (R) => {
5179
+ R.stopPropagation(), b(I);
5177
5180
  }
5178
5181
  },
5179
- N.value
5182
+ I.value
5180
5183
  )),
5181
5184
  /* @__PURE__ */ C(
5182
5185
  "input",
5183
5186
  {
5184
5187
  type: "text",
5185
5188
  className: a2.input,
5186
- ref: m,
5189
+ ref: Z,
5187
5190
  value: f,
5188
- onChange: (N) => v(N.target.value)
5191
+ onChange: (I) => v(I.target.value)
5189
5192
  }
5190
5193
  )
5191
5194
  ] }),
@@ -5195,33 +5198,35 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5195
5198
  ),
5196
5199
  i ? /* @__PURE__ */ C(l2, { children: !!c && /* @__PURE__ */ a("div", { className: a2.dropdownMenu, children: [
5197
5200
  i && S.length === 0 && /* @__PURE__ */ C("div", { className: a2.createOptionMessage, children: "Press Enter to create new" }),
5198
- S.length > 0 && S.map((N, q) => /* @__PURE__ */ C(
5201
+ S.length > 0 && S.map((I, R) => /* @__PURE__ */ C(
5199
5202
  r1,
5200
5203
  {
5201
- onMouseEnter: () => d(q),
5202
- label: N.label,
5203
- value: N.value,
5204
+ id: `${R}`,
5205
+ onMouseEnter: () => d(R),
5206
+ label: I.label,
5207
+ value: I.value,
5204
5208
  handleSelect: (C2) => {
5205
- C2.stopPropagation(), b(N);
5209
+ C2.stopPropagation(), b(I);
5206
5210
  },
5207
- isSelected: u(N),
5208
- isHighlighted: q === w
5211
+ isSelected: u(I),
5212
+ isHighlighted: R === w
5209
5213
  },
5210
- N.value
5214
+ I.value
5211
5215
  ))
5212
- ] }) }) : /* @__PURE__ */ C(l2, { children: !!c && S.length > 0 && /* @__PURE__ */ C("div", { className: a2.dropdownMenu, children: S.length > 0 && S.map((N, q) => /* @__PURE__ */ C(
5216
+ ] }) }) : /* @__PURE__ */ C(l2, { children: !!c && S.length > 0 && /* @__PURE__ */ C("div", { className: a2.dropdownMenu, children: S.length > 0 && S.map((I, R) => /* @__PURE__ */ C(
5213
5217
  r1,
5214
5218
  {
5215
- onMouseEnter: () => d(q),
5216
- label: N.label,
5217
- value: N.value,
5219
+ id: `${R}`,
5220
+ onMouseEnter: () => d(R),
5221
+ label: I.label,
5222
+ value: I.value,
5218
5223
  handleSelect: (C2) => {
5219
- C2.stopPropagation(), b(N);
5224
+ C2.stopPropagation(), b(I);
5220
5225
  },
5221
- isSelected: u(N),
5222
- isHighlighted: q === w
5226
+ isSelected: u(I),
5227
+ isHighlighted: R === w
5223
5228
  },
5224
- N.value
5229
+ I.value
5225
5230
  )) }) })
5226
5231
  ] });
5227
5232
  }, J9 = "_dropdown_lj0gp_1", X9 = "_textField_lj0gp_4", Q9 = "_textFieldIcon_lj0gp_10", C7 = "_control_lj0gp_23", e7 = "_disabled_lj0gp_40", t7 = "_label_lj0gp_45", r7 = "_placeholder_lj0gp_52", n7 = "_chevron_lj0gp_63", i7 = "_customLoader_lj0gp_78", l7 = "_dropdownSelector_lj0gp_95", o7 = "_dropdownItem_lj0gp_122", s7 = "_active_lj0gp_126", a7 = "_createOptionMessage_lj0gp_130", c7 = "_chevronArrow_lj0gp_136", s2 = {
@@ -5280,13 +5285,13 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5280
5285
  autoComplete: V,
5281
5286
  creatable: H,
5282
5287
  onCreateNew: _,
5283
- onSearch: m,
5288
+ onSearch: Z,
5284
5289
  isLoading: y,
5285
5290
  ...x
5286
- } = e, [u, b] = O(!1), [S, B] = O(""), [$, N] = O([]), q = d2(null);
5291
+ } = e, [u, b] = O(!1), [S, B] = O(""), [$, I] = O([]), R = d2(null);
5287
5292
  G(() => {
5288
5293
  const k = (r2) => {
5289
- q.current && !q.current.contains(r2.target) && b(!1);
5294
+ R.current && !R.current.contains(r2.target) && b(!1);
5290
5295
  };
5291
5296
  return document.addEventListener("mousedown", k), () => {
5292
5297
  document.removeEventListener("mousedown", k);
@@ -5294,21 +5299,21 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5294
5299
  }, []);
5295
5300
  const C2 = [s2.dropdown];
5296
5301
  h && C2.push(s2.error), s && C2.push(s), c && C2.push(s2.disabled);
5297
- const I = (k) => {
5302
+ const N = (k) => {
5298
5303
  b(!u), p && p(k);
5299
5304
  }, T = (k, r2, M2) => {
5300
5305
  B(M2), b(!1), v && v(k, r2);
5301
5306
  };
5302
5307
  G(() => {
5303
- N(o);
5308
+ I(o);
5304
5309
  }, [o]), G(() => {
5305
- if (m)
5306
- m(S);
5310
+ if (Z)
5311
+ Z(S);
5307
5312
  else {
5308
5313
  let k = [];
5309
5314
  S ? o.map((r2) => {
5310
5315
  typeof r2 == "string" ? r2.toLowerCase().indexOf(S.toString().toLowerCase()) >= 0 && k.push(r2) : r2.label && r2.label.toLowerCase().indexOf(S.toString().toLowerCase()) >= 0 && k.push(r2);
5311
- }) : k = [...o], N(k);
5316
+ }) : k = [...o], I(k);
5312
5317
  }
5313
5318
  }, [S]), G(() => {
5314
5319
  n && B(n);
@@ -5316,7 +5321,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5316
5321
  const h2 = (k) => {
5317
5322
  _ && _(S, k);
5318
5323
  };
5319
- return /* @__PURE__ */ a("div", { ref: q, className: W(C2), children: [
5324
+ return /* @__PURE__ */ a("div", { ref: R, className: W(C2), children: [
5320
5325
  /* @__PURE__ */ a("div", { className: `${s2.control} control ${l ? s2.textField : ""}`, children: [
5321
5326
  !!l && /* @__PURE__ */ C("div", { className: s2.textFieldIcon, children: l }),
5322
5327
  /* @__PURE__ */ C(
@@ -5329,7 +5334,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5329
5334
  onChange: (k) => {
5330
5335
  B(k.target.value);
5331
5336
  },
5332
- onClick: I,
5337
+ onClick: N,
5333
5338
  onKeyUp: (k) => {
5334
5339
  H && k.key === "Enter" && (k.preventDefault(), b(!1), h2(k));
5335
5340
  },
@@ -5394,8 +5399,8 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5394
5399
  ...f
5395
5400
  } = e, [v, p] = O("password"), V = () => {
5396
5401
  p(v === "password" ? "text" : "password");
5397
- }, H = [D.input];
5398
- return s && H.push(D.error), o && H.push(o), /* @__PURE__ */ a("div", { className: D.passwordCon, children: [
5402
+ }, H = [q.input];
5403
+ return s && H.push(q.error), o && H.push(o), /* @__PURE__ */ a("div", { className: q.passwordCon, children: [
5399
5404
  /* @__PURE__ */ C(
5400
5405
  "input",
5401
5406
  {
@@ -5418,7 +5423,7 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5418
5423
  ...f
5419
5424
  }
5420
5425
  ),
5421
- /* @__PURE__ */ C("span", { onClick: V, className: D.eyeicon, children: v == "password" ? /* @__PURE__ */ C(y9, { type: "regular" }) : /* @__PURE__ */ C(N9, { type: "regular" }) })
5426
+ /* @__PURE__ */ C("span", { onClick: V, className: q.eyeicon, children: v == "password" ? /* @__PURE__ */ C(y9, { type: "regular" }) : /* @__PURE__ */ C(N9, { type: "regular" }) })
5422
5427
  ] });
5423
5428
  }, h7 = "_radioSet_19ptn_1", d7 = "_container_19ptn_5", w7 = "_radioHolder_19ptn_9", f7 = "_error_19ptn_21", u7 = "_disabled_19ptn_24", g7 = "_radio_19ptn_1", v7 = "_circle_19ptn_53", L2 = {
5424
5429
  radioSet: h7,
@@ -5444,14 +5449,14 @@ const c5 = "_checkboxHolder_y95sn_1", h5 = "_error_y95sn_12", d5 = "_disabled_y9
5444
5449
  readonly: f,
5445
5450
  onChange: v,
5446
5451
  ...p
5447
- } = e, [V, H] = O(!1), _ = ["radio", L2.radio], m = ["radioHolder", L2.radioHolder];
5448
- s && _.push(s), c && m.push(L2.disabled), h && (_.push(L2.error), m.push(L2.error)), G(() => {
5452
+ } = e, [V, H] = O(!1), _ = ["radio", L2.radio], Z = ["radioHolder", L2.radioHolder];
5453
+ s && _.push(s), c && Z.push(L2.disabled), h && (_.push(L2.error), Z.push(L2.error)), G(() => {
5449
5454
  H(n || !1);
5450
5455
  }, [n]);
5451
5456
  const y = (x) => {
5452
5457
  V || (H(!0), v && v(x, !0));
5453
5458
  };
5454
- return /* @__PURE__ */ a("div", { className: W(m), children: [
5459
+ return /* @__PURE__ */ a("div", { className: W(Z), children: [
5455
5460
  /* @__PURE__ */ a("div", { className: W(_), children: [
5456
5461
  /* @__PURE__ */ C(
5457
5462
  "input",
@@ -5511,7 +5516,7 @@ function p7() {
5511
5516
  if (o1)
5512
5517
  return J;
5513
5518
  o1 = 1;
5514
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, w = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, V = e ? Symbol.for("react.block") : 60121, H = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
5519
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, w = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, V = e ? Symbol.for("react.block") : 60121, H = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, Z = e ? Symbol.for("react.scope") : 60119;
5515
5520
  function y(u) {
5516
5521
  if (typeof u == "object" && u !== null) {
5517
5522
  var b = u.$$typeof;
@@ -5570,7 +5575,7 @@ function p7() {
5570
5575
  }, J.isSuspense = function(u) {
5571
5576
  return y(u) === d;
5572
5577
  }, J.isValidElementType = function(u) {
5573
- return typeof u == "string" || typeof u == "function" || u === n || u === h || u === o || u === l || u === d || u === f || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === v || u.$$typeof === i || u.$$typeof === s || u.$$typeof === w || u.$$typeof === H || u.$$typeof === _ || u.$$typeof === m || u.$$typeof === V);
5578
+ return typeof u == "string" || typeof u == "function" || u === n || u === h || u === o || u === l || u === d || u === f || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === v || u.$$typeof === i || u.$$typeof === s || u.$$typeof === w || u.$$typeof === H || u.$$typeof === _ || u.$$typeof === Z || u.$$typeof === V);
5574
5579
  }, J.typeOf = y, J;
5575
5580
  }
5576
5581
  var X = {};
@@ -5585,10 +5590,10 @@ var X = {};
5585
5590
  var s1;
5586
5591
  function V7() {
5587
5592
  return s1 || (s1 = 1, process.env.NODE_ENV !== "production" && function() {
5588
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, w = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, V = e ? Symbol.for("react.block") : 60121, H = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
5593
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, w = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, V = e ? Symbol.for("react.block") : 60121, H = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, Z = e ? Symbol.for("react.scope") : 60119;
5589
5594
  function y(M) {
5590
5595
  return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
5591
- M === n || M === h || M === o || M === l || M === d || M === f || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === v || M.$$typeof === i || M.$$typeof === s || M.$$typeof === w || M.$$typeof === H || M.$$typeof === _ || M.$$typeof === m || M.$$typeof === V);
5596
+ M === n || M === h || M === o || M === l || M === d || M === f || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === v || M.$$typeof === i || M.$$typeof === s || M.$$typeof === w || M.$$typeof === H || M.$$typeof === _ || M.$$typeof === Z || M.$$typeof === V);
5592
5597
  }
5593
5598
  function x(M) {
5594
5599
  if (typeof M == "object" && M !== null) {
@@ -5622,20 +5627,20 @@ function V7() {
5622
5627
  }
5623
5628
  }
5624
5629
  }
5625
- var u = c, b = h, S = s, B = i, $ = t, N = w, q = n, C2 = p, I = v, T = r, h2 = o, k = l, r2 = d, M2 = !1;
5630
+ var u = c, b = h, S = s, B = i, $ = t, I = w, R = n, C2 = p, N = v, T = r, h2 = o, k = l, r2 = d, M2 = !1;
5626
5631
  function k2(M) {
5627
5632
  return M2 || (M2 = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), L(M) || x(M) === c;
5628
5633
  }
5629
5634
  function L(M) {
5630
5635
  return x(M) === h;
5631
5636
  }
5632
- function Z(M) {
5637
+ function m(M) {
5633
5638
  return x(M) === s;
5634
5639
  }
5635
- function j(M) {
5640
+ function D(M) {
5636
5641
  return x(M) === i;
5637
5642
  }
5638
- function R(M) {
5643
+ function A(M) {
5639
5644
  return typeof M == "object" && M !== null && M.$$typeof === t;
5640
5645
  }
5641
5646
  function E(M) {
@@ -5647,7 +5652,7 @@ function V7() {
5647
5652
  function P(M) {
5648
5653
  return x(M) === p;
5649
5654
  }
5650
- function A(M) {
5655
+ function j(M) {
5651
5656
  return x(M) === v;
5652
5657
  }
5653
5658
  function z(M) {
@@ -5662,7 +5667,7 @@ function V7() {
5662
5667
  function c2(M) {
5663
5668
  return x(M) === d;
5664
5669
  }
5665
- X.AsyncMode = u, X.ConcurrentMode = b, X.ContextConsumer = S, X.ContextProvider = B, X.Element = $, X.ForwardRef = N, X.Fragment = q, X.Lazy = C2, X.Memo = I, X.Portal = T, X.Profiler = h2, X.StrictMode = k, X.Suspense = r2, X.isAsyncMode = k2, X.isConcurrentMode = L, X.isContextConsumer = Z, X.isContextProvider = j, X.isElement = R, X.isForwardRef = E, X.isFragment = F, X.isLazy = P, X.isMemo = A, X.isPortal = z, X.isProfiler = Q, X.isStrictMode = U, X.isSuspense = c2, X.isValidElementType = y, X.typeOf = x;
5670
+ X.AsyncMode = u, X.ConcurrentMode = b, X.ContextConsumer = S, X.ContextProvider = B, X.Element = $, X.ForwardRef = I, X.Fragment = R, X.Lazy = C2, X.Memo = N, X.Portal = T, X.Profiler = h2, X.StrictMode = k, X.Suspense = r2, X.isAsyncMode = k2, X.isConcurrentMode = L, X.isContextConsumer = m, X.isContextProvider = D, X.isElement = A, X.isForwardRef = E, X.isFragment = F, X.isLazy = P, X.isMemo = j, X.isPortal = z, X.isProfiler = Q, X.isStrictMode = U, X.isSuspense = c2, X.isValidElementType = y, X.typeOf = x;
5666
5671
  }()), X;
5667
5672
  }
5668
5673
  var a1;
@@ -5804,9 +5809,9 @@ function m7() {
5804
5809
  return A2 = function(s, c) {
5805
5810
  var h = typeof Symbol == "function" && Symbol.iterator, w = "@@iterator";
5806
5811
  function d(L) {
5807
- var Z = L && (h && L[h] || L[w]);
5808
- if (typeof Z == "function")
5809
- return Z;
5812
+ var m = L && (h && L[h] || L[w]);
5813
+ if (typeof m == "function")
5814
+ return m;
5810
5815
  }
5811
5816
  var f = "<<anonymous>>", v = {
5812
5817
  array: _("array"),
@@ -5817,51 +5822,51 @@ function m7() {
5817
5822
  object: _("object"),
5818
5823
  string: _("string"),
5819
5824
  symbol: _("symbol"),
5820
- any: m(),
5825
+ any: Z(),
5821
5826
  arrayOf: y,
5822
5827
  element: x(),
5823
5828
  elementType: u(),
5824
5829
  instanceOf: b,
5825
- node: N(),
5830
+ node: I(),
5826
5831
  objectOf: B,
5827
5832
  oneOf: S,
5828
5833
  oneOfType: $,
5829
5834
  shape: C2,
5830
- exact: I
5835
+ exact: N
5831
5836
  };
5832
- function p(L, Z) {
5833
- return L === Z ? L !== 0 || 1 / L === 1 / Z : L !== L && Z !== Z;
5837
+ function p(L, m) {
5838
+ return L === m ? L !== 0 || 1 / L === 1 / m : L !== L && m !== m;
5834
5839
  }
5835
- function V(L, Z) {
5836
- this.message = L, this.data = Z && typeof Z == "object" ? Z : {}, this.stack = "";
5840
+ function V(L, m) {
5841
+ this.message = L, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
5837
5842
  }
5838
5843
  V.prototype = Error.prototype;
5839
5844
  function H(L) {
5840
5845
  if (process.env.NODE_ENV !== "production")
5841
- var Z = {}, j = 0;
5842
- function R(F, P, A, z, Q, U, c2) {
5843
- if (z = z || f, U = U || A, c2 !== r) {
5846
+ var m = {}, D = 0;
5847
+ function A(F, P, j, z, Q, U, c2) {
5848
+ if (z = z || f, U = U || j, c2 !== r) {
5844
5849
  if (c) {
5845
5850
  var M = new Error(
5846
5851
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
5847
5852
  );
5848
5853
  throw M.name = "Invariant Violation", M;
5849
5854
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
5850
- var u2 = z + ":" + A;
5851
- !Z[u2] && // Avoid spamming the console because they are often not actionable except for lib authors
5852
- j < 3 && (o(
5855
+ var u2 = z + ":" + j;
5856
+ !m[u2] && // Avoid spamming the console because they are often not actionable except for lib authors
5857
+ D < 3 && (o(
5853
5858
  "You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" + z + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
5854
- ), Z[u2] = !0, j++);
5859
+ ), m[u2] = !0, D++);
5855
5860
  }
5856
5861
  }
5857
- return P[A] == null ? F ? P[A] === null ? new V("The " + Q + " `" + U + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new V("The " + Q + " `" + U + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : L(P, A, z, Q, U);
5862
+ return P[j] == null ? F ? P[j] === null ? new V("The " + Q + " `" + U + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new V("The " + Q + " `" + U + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : L(P, j, z, Q, U);
5858
5863
  }
5859
- var E = R.bind(null, !1);
5860
- return E.isRequired = R.bind(null, !0), E;
5864
+ var E = A.bind(null, !1);
5865
+ return E.isRequired = A.bind(null, !0), E;
5861
5866
  }
5862
5867
  function _(L) {
5863
- function Z(j, R, E, F, P, A) {
5864
- var z = j[R], Q = k(z);
5868
+ function m(D, A, E, F, P, j) {
5869
+ var z = D[A], Q = k(z);
5865
5870
  if (Q !== L) {
5866
5871
  var U = r2(z);
5867
5872
  return new V(
@@ -5871,167 +5876,167 @@ function m7() {
5871
5876
  }
5872
5877
  return null;
5873
5878
  }
5874
- return H(Z);
5879
+ return H(m);
5875
5880
  }
5876
- function m() {
5881
+ function Z() {
5877
5882
  return H(i);
5878
5883
  }
5879
5884
  function y(L) {
5880
- function Z(j, R, E, F, P) {
5885
+ function m(D, A, E, F, P) {
5881
5886
  if (typeof L != "function")
5882
5887
  return new V("Property `" + P + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
5883
- var A = j[R];
5884
- if (!Array.isArray(A)) {
5885
- var z = k(A);
5888
+ var j = D[A];
5889
+ if (!Array.isArray(j)) {
5890
+ var z = k(j);
5886
5891
  return new V("Invalid " + F + " `" + P + "` of type " + ("`" + z + "` supplied to `" + E + "`, expected an array."));
5887
5892
  }
5888
- for (var Q = 0; Q < A.length; Q++) {
5889
- var U = L(A, Q, E, F, P + "[" + Q + "]", r);
5893
+ for (var Q = 0; Q < j.length; Q++) {
5894
+ var U = L(j, Q, E, F, P + "[" + Q + "]", r);
5890
5895
  if (U instanceof Error)
5891
5896
  return U;
5892
5897
  }
5893
5898
  return null;
5894
5899
  }
5895
- return H(Z);
5900
+ return H(m);
5896
5901
  }
5897
5902
  function x() {
5898
- function L(Z, j, R, E, F) {
5899
- var P = Z[j];
5903
+ function L(m, D, A, E, F) {
5904
+ var P = m[D];
5900
5905
  if (!s(P)) {
5901
- var A = k(P);
5902
- return new V("Invalid " + E + " `" + F + "` of type " + ("`" + A + "` supplied to `" + R + "`, expected a single ReactElement."));
5906
+ var j = k(P);
5907
+ return new V("Invalid " + E + " `" + F + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected a single ReactElement."));
5903
5908
  }
5904
5909
  return null;
5905
5910
  }
5906
5911
  return H(L);
5907
5912
  }
5908
5913
  function u() {
5909
- function L(Z, j, R, E, F) {
5910
- var P = Z[j];
5914
+ function L(m, D, A, E, F) {
5915
+ var P = m[D];
5911
5916
  if (!e.isValidElementType(P)) {
5912
- var A = k(P);
5913
- return new V("Invalid " + E + " `" + F + "` of type " + ("`" + A + "` supplied to `" + R + "`, expected a single ReactElement type."));
5917
+ var j = k(P);
5918
+ return new V("Invalid " + E + " `" + F + "` of type " + ("`" + j + "` supplied to `" + A + "`, expected a single ReactElement type."));
5914
5919
  }
5915
5920
  return null;
5916
5921
  }
5917
5922
  return H(L);
5918
5923
  }
5919
5924
  function b(L) {
5920
- function Z(j, R, E, F, P) {
5921
- if (!(j[R] instanceof L)) {
5922
- var A = L.name || f, z = k2(j[R]);
5923
- return new V("Invalid " + F + " `" + P + "` of type " + ("`" + z + "` supplied to `" + E + "`, expected ") + ("instance of `" + A + "`."));
5925
+ function m(D, A, E, F, P) {
5926
+ if (!(D[A] instanceof L)) {
5927
+ var j = L.name || f, z = k2(D[A]);
5928
+ return new V("Invalid " + F + " `" + P + "` of type " + ("`" + z + "` supplied to `" + E + "`, expected ") + ("instance of `" + j + "`."));
5924
5929
  }
5925
5930
  return null;
5926
5931
  }
5927
- return H(Z);
5932
+ return H(m);
5928
5933
  }
5929
5934
  function S(L) {
5930
5935
  if (!Array.isArray(L))
5931
5936
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
5932
5937
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
5933
5938
  ) : o("Invalid argument supplied to oneOf, expected an array.")), i;
5934
- function Z(j, R, E, F, P) {
5935
- for (var A = j[R], z = 0; z < L.length; z++)
5936
- if (p(A, L[z]))
5939
+ function m(D, A, E, F, P) {
5940
+ for (var j = D[A], z = 0; z < L.length; z++)
5941
+ if (p(j, L[z]))
5937
5942
  return null;
5938
5943
  var Q = JSON.stringify(L, function(c2, M) {
5939
5944
  var u2 = r2(M);
5940
5945
  return u2 === "symbol" ? String(M) : M;
5941
5946
  });
5942
- return new V("Invalid " + F + " `" + P + "` of value `" + String(A) + "` " + ("supplied to `" + E + "`, expected one of " + Q + "."));
5947
+ return new V("Invalid " + F + " `" + P + "` of value `" + String(j) + "` " + ("supplied to `" + E + "`, expected one of " + Q + "."));
5943
5948
  }
5944
- return H(Z);
5949
+ return H(m);
5945
5950
  }
5946
5951
  function B(L) {
5947
- function Z(j, R, E, F, P) {
5952
+ function m(D, A, E, F, P) {
5948
5953
  if (typeof L != "function")
5949
5954
  return new V("Property `" + P + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
5950
- var A = j[R], z = k(A);
5955
+ var j = D[A], z = k(j);
5951
5956
  if (z !== "object")
5952
5957
  return new V("Invalid " + F + " `" + P + "` of type " + ("`" + z + "` supplied to `" + E + "`, expected an object."));
5953
- for (var Q in A)
5954
- if (n(A, Q)) {
5955
- var U = L(A, Q, E, F, P + "." + Q, r);
5958
+ for (var Q in j)
5959
+ if (n(j, Q)) {
5960
+ var U = L(j, Q, E, F, P + "." + Q, r);
5956
5961
  if (U instanceof Error)
5957
5962
  return U;
5958
5963
  }
5959
5964
  return null;
5960
5965
  }
5961
- return H(Z);
5966
+ return H(m);
5962
5967
  }
5963
5968
  function $(L) {
5964
5969
  if (!Array.isArray(L))
5965
5970
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), i;
5966
- for (var Z = 0; Z < L.length; Z++) {
5967
- var j = L[Z];
5968
- if (typeof j != "function")
5971
+ for (var m = 0; m < L.length; m++) {
5972
+ var D = L[m];
5973
+ if (typeof D != "function")
5969
5974
  return o(
5970
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M2(j) + " at index " + Z + "."
5975
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M2(D) + " at index " + m + "."
5971
5976
  ), i;
5972
5977
  }
5973
- function R(E, F, P, A, z) {
5978
+ function A(E, F, P, j, z) {
5974
5979
  for (var Q = [], U = 0; U < L.length; U++) {
5975
- var c2 = L[U], M = c2(E, F, P, A, z, r);
5980
+ var c2 = L[U], M = c2(E, F, P, j, z, r);
5976
5981
  if (M == null)
5977
5982
  return null;
5978
5983
  M.data && n(M.data, "expectedType") && Q.push(M.data.expectedType);
5979
5984
  }
5980
5985
  var u2 = Q.length > 0 ? ", expected one of type [" + Q.join(", ") + "]" : "";
5981
- return new V("Invalid " + A + " `" + z + "` supplied to " + ("`" + P + "`" + u2 + "."));
5986
+ return new V("Invalid " + j + " `" + z + "` supplied to " + ("`" + P + "`" + u2 + "."));
5982
5987
  }
5983
- return H(R);
5988
+ return H(A);
5984
5989
  }
5985
- function N() {
5986
- function L(Z, j, R, E, F) {
5987
- return T(Z[j]) ? null : new V("Invalid " + E + " `" + F + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
5990
+ function I() {
5991
+ function L(m, D, A, E, F) {
5992
+ return T(m[D]) ? null : new V("Invalid " + E + " `" + F + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
5988
5993
  }
5989
5994
  return H(L);
5990
5995
  }
5991
- function q(L, Z, j, R, E) {
5996
+ function R(L, m, D, A, E) {
5992
5997
  return new V(
5993
- (L || "React class") + ": " + Z + " type `" + j + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
5998
+ (L || "React class") + ": " + m + " type `" + D + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
5994
5999
  );
5995
6000
  }
5996
6001
  function C2(L) {
5997
- function Z(j, R, E, F, P) {
5998
- var A = j[R], z = k(A);
6002
+ function m(D, A, E, F, P) {
6003
+ var j = D[A], z = k(j);
5999
6004
  if (z !== "object")
6000
6005
  return new V("Invalid " + F + " `" + P + "` of type `" + z + "` " + ("supplied to `" + E + "`, expected `object`."));
6001
6006
  for (var Q in L) {
6002
6007
  var U = L[Q];
6003
6008
  if (typeof U != "function")
6004
- return q(E, F, P, Q, r2(U));
6005
- var c2 = U(A, Q, E, F, P + "." + Q, r);
6009
+ return R(E, F, P, Q, r2(U));
6010
+ var c2 = U(j, Q, E, F, P + "." + Q, r);
6006
6011
  if (c2)
6007
6012
  return c2;
6008
6013
  }
6009
6014
  return null;
6010
6015
  }
6011
- return H(Z);
6016
+ return H(m);
6012
6017
  }
6013
- function I(L) {
6014
- function Z(j, R, E, F, P) {
6015
- var A = j[R], z = k(A);
6018
+ function N(L) {
6019
+ function m(D, A, E, F, P) {
6020
+ var j = D[A], z = k(j);
6016
6021
  if (z !== "object")
6017
6022
  return new V("Invalid " + F + " `" + P + "` of type `" + z + "` " + ("supplied to `" + E + "`, expected `object`."));
6018
- var Q = t({}, j[R], L);
6023
+ var Q = t({}, D[A], L);
6019
6024
  for (var U in Q) {
6020
6025
  var c2 = L[U];
6021
6026
  if (n(L, U) && typeof c2 != "function")
6022
- return q(E, F, P, U, r2(c2));
6027
+ return R(E, F, P, U, r2(c2));
6023
6028
  if (!c2)
6024
6029
  return new V(
6025
- "Invalid " + F + " `" + P + "` key `" + U + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(j[R], null, " ") + `
6030
+ "Invalid " + F + " `" + P + "` key `" + U + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(D[A], null, " ") + `
6026
6031
  Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
6027
6032
  );
6028
- var M = c2(A, U, E, F, P + "." + U, r);
6033
+ var M = c2(j, U, E, F, P + "." + U, r);
6029
6034
  if (M)
6030
6035
  return M;
6031
6036
  }
6032
6037
  return null;
6033
6038
  }
6034
- return H(Z);
6039
+ return H(m);
6035
6040
  }
6036
6041
  function T(L) {
6037
6042
  switch (typeof L) {
@@ -6046,16 +6051,16 @@ Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
6046
6051
  return L.every(T);
6047
6052
  if (L === null || s(L))
6048
6053
  return !0;
6049
- var Z = d(L);
6050
- if (Z) {
6051
- var j = Z.call(L), R;
6052
- if (Z !== L.entries) {
6053
- for (; !(R = j.next()).done; )
6054
- if (!T(R.value))
6054
+ var m = d(L);
6055
+ if (m) {
6056
+ var D = m.call(L), A;
6057
+ if (m !== L.entries) {
6058
+ for (; !(A = D.next()).done; )
6059
+ if (!T(A.value))
6055
6060
  return !1;
6056
6061
  } else
6057
- for (; !(R = j.next()).done; ) {
6058
- var E = R.value;
6062
+ for (; !(A = D.next()).done; ) {
6063
+ var E = A.value;
6059
6064
  if (E && !T(E[1]))
6060
6065
  return !1;
6061
6066
  }
@@ -6066,37 +6071,37 @@ Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
6066
6071
  return !1;
6067
6072
  }
6068
6073
  }
6069
- function h2(L, Z) {
6070
- return L === "symbol" ? !0 : Z ? Z["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && Z instanceof Symbol : !1;
6074
+ function h2(L, m) {
6075
+ return L === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
6071
6076
  }
6072
6077
  function k(L) {
6073
- var Z = typeof L;
6074
- return Array.isArray(L) ? "array" : L instanceof RegExp ? "object" : h2(Z, L) ? "symbol" : Z;
6078
+ var m = typeof L;
6079
+ return Array.isArray(L) ? "array" : L instanceof RegExp ? "object" : h2(m, L) ? "symbol" : m;
6075
6080
  }
6076
6081
  function r2(L) {
6077
6082
  if (typeof L > "u" || L === null)
6078
6083
  return "" + L;
6079
- var Z = k(L);
6080
- if (Z === "object") {
6084
+ var m = k(L);
6085
+ if (m === "object") {
6081
6086
  if (L instanceof Date)
6082
6087
  return "date";
6083
6088
  if (L instanceof RegExp)
6084
6089
  return "regexp";
6085
6090
  }
6086
- return Z;
6091
+ return m;
6087
6092
  }
6088
6093
  function M2(L) {
6089
- var Z = r2(L);
6090
- switch (Z) {
6094
+ var m = r2(L);
6095
+ switch (m) {
6091
6096
  case "array":
6092
6097
  case "object":
6093
- return "an " + Z;
6098
+ return "an " + m;
6094
6099
  case "boolean":
6095
6100
  case "date":
6096
6101
  case "regexp":
6097
- return "a " + Z;
6102
+ return "a " + m;
6098
6103
  default:
6099
- return Z;
6104
+ return m;
6100
6105
  }
6101
6106
  }
6102
6107
  function k2(L) {
@@ -6335,14 +6340,14 @@ var g = z2.exports, U2 = globalThis && globalThis.__assign || function() {
6335
6340
  }
6336
6341
  c.handlers = [];
6337
6342
  }, n = function(i, s, c) {
6338
- var h = function(m) {
6339
- return c !== void 0 ? c(m) : console.error(m);
6343
+ var h = function(Z) {
6344
+ return c !== void 0 ? c(Z) : console.error(Z);
6340
6345
  };
6341
6346
  if (i.length === 0) {
6342
6347
  h(new Error("At least one script must be provided"));
6343
6348
  return;
6344
6349
  }
6345
- for (var w = 0, d = !1, f = function(m, y) {
6350
+ for (var w = 0, d = !1, f = function(Z, y) {
6346
6351
  d || (y ? (d = !0, h(y)) : ++w === i.length && s());
6347
6352
  }, v = 0, p = i; v < p.length; v++) {
6348
6353
  var V = p[v], H = t[V.src];
@@ -6481,8 +6486,8 @@ var g = z2.exports, U2 = globalThis && globalThis.__assign || function() {
6481
6486
  }, init_instance_callback: function(p) {
6482
6487
  var V, H, _ = i.getInitialValue();
6483
6488
  i.currentContent = (V = i.currentContent) !== null && V !== void 0 ? V : p.getContent(), i.currentContent !== _ && (i.currentContent = _, p.setContent(_), p.undoManager.clear(), p.undoManager.add(), p.setDirty(!1));
6484
- var m = (H = i.props.disabled) !== null && H !== void 0 ? H : !1;
6485
- V1(i.editor, m ? "readonly" : "design"), i.props.init && D2(i.props.init.init_instance_callback) && i.props.init.init_instance_callback(p);
6489
+ var Z = (H = i.props.disabled) !== null && H !== void 0 ? H : !1;
6490
+ V1(i.editor, Z ? "readonly" : "design"), i.props.init && D2(i.props.init.init_instance_callback) && i.props.init.init_instance_callback(p);
6486
6491
  } });
6487
6492
  i.inline || (d.style.visibility = ""), H1(d) && (d.value = i.getInitialValue()), f.init(v);
6488
6493
  }
@@ -6613,7 +6618,7 @@ const K3 = (e) => {
6613
6618
  onClick: V,
6614
6619
  onChange: H,
6615
6620
  onFocus: _,
6616
- onBlur: m,
6621
+ onBlur: Z,
6617
6622
  ...y
6618
6623
  } = e, [x, u] = O(n), b = [l1.holder];
6619
6624
  return l && b.push(l), /* @__PURE__ */ a("div", { className: W(b), children: [
@@ -6655,7 +6660,7 @@ const K3 = (e) => {
6655
6660
  V && V(S);
6656
6661
  },
6657
6662
  onBlur: (S) => {
6658
- m && m(S);
6663
+ Z && Z(S);
6659
6664
  },
6660
6665
  onFocus: (S) => {
6661
6666
  _ && _(S);
@@ -6706,9 +6711,9 @@ const K3 = (e) => {
6706
6711
  maxLength: p,
6707
6712
  onChange: V,
6708
6713
  ...H
6709
- } = e, [_, m] = O(""), y = (u) => {
6714
+ } = e, [_, Z] = O(""), y = (u) => {
6710
6715
  var b;
6711
- m((b = u.target) == null ? void 0 : b.value), V && V(u);
6716
+ Z((b = u.target) == null ? void 0 : b.value), V && V(u);
6712
6717
  }, x = [W2.textarea];
6713
6718
  return s && x.push(W2.error), o && x.push(o), /* @__PURE__ */ a(l2, { children: [
6714
6719
  /* @__PURE__ */ C(
@@ -6755,8 +6760,8 @@ const K3 = (e) => {
6755
6760
  autoComplete: d,
6756
6761
  icon: f,
6757
6762
  ...v
6758
- } = e, p = [D.input];
6759
- return s && p.push(D.error), o && p.push(o), /* @__PURE__ */ a("div", { className: `${f ? D.textField : ""}`, children: [
6763
+ } = e, p = [q.input];
6764
+ return s && p.push(q.error), o && p.push(o), /* @__PURE__ */ a("div", { className: `${f ? q.textField : ""}`, children: [
6760
6765
  /* @__PURE__ */ C(
6761
6766
  "input",
6762
6767
  {
@@ -6779,7 +6784,7 @@ const K3 = (e) => {
6779
6784
  ...v
6780
6785
  }
6781
6786
  ),
6782
- !!f && /* @__PURE__ */ C("div", { className: D.textFieldIcon, children: f })
6787
+ !!f && /* @__PURE__ */ C("div", { className: q.textFieldIcon, children: f })
6783
6788
  ] });
6784
6789
  }, Q3 = (e) => {
6785
6790
  const {
@@ -6798,15 +6803,15 @@ const K3 = (e) => {
6798
6803
  formatter: v = !0,
6799
6804
  onChange: p,
6800
6805
  ...V
6801
- } = e, H = d2(null), [_, m] = O("");
6806
+ } = e, H = d2(null), [_, Z] = O("");
6802
6807
  G(() => {
6803
6808
  if (v) {
6804
6809
  if (d) {
6805
6810
  const b = d == null ? void 0 : d.toString().replace(/[^0-9.]/g, "");
6806
- m(y(b));
6811
+ Z(y(b));
6807
6812
  }
6808
6813
  } else
6809
- m(d);
6814
+ Z(d);
6810
6815
  }, [d]);
6811
6816
  const y = (b) => {
6812
6817
  if (v) {
@@ -6817,10 +6822,10 @@ const K3 = (e) => {
6817
6822
  const { value: S } = b.target;
6818
6823
  let B = "";
6819
6824
  if (S) {
6820
- const $ = S == null ? void 0 : S.toString().replace(/[^0-9.]/g, ""), N = $.split(".").length - 1;
6821
- B = $, N > 1 && (B = $.slice(0, $.lastIndexOf(".")));
6825
+ const $ = S == null ? void 0 : S.toString().replace(/[^0-9.]/g, ""), I = $.split(".").length - 1;
6826
+ B = $, I > 1 && (B = $.slice(0, $.lastIndexOf(".")));
6822
6827
  }
6823
- if (m(y(B)), p) {
6828
+ if (Z(y(B)), p) {
6824
6829
  const $ = {
6825
6830
  ...b,
6826
6831
  target: {
@@ -6839,8 +6844,8 @@ const K3 = (e) => {
6839
6844
  S && S.removeEventListener("wheel", b);
6840
6845
  };
6841
6846
  }, [f]);
6842
- const u = [D.input];
6843
- return i && u.push(D.error), l && u.push(l), /* @__PURE__ */ C(
6847
+ const u = [q.input];
6848
+ return i && u.push(q.error), l && u.push(l), /* @__PURE__ */ C(
6844
6849
  "input",
6845
6850
  {
6846
6851
  className: W(u),
@@ -6881,7 +6886,7 @@ const K3 = (e) => {
6881
6886
  formatter: v = !0,
6882
6887
  onChange: p,
6883
6888
  ...V
6884
- } = e, [H, _] = O(0), m = d2(null), [y, x] = O("");
6889
+ } = e, [H, _] = O(0), Z = d2(null), [y, x] = O("");
6885
6890
  G(() => {
6886
6891
  if (v) {
6887
6892
  if (n) {
@@ -6898,29 +6903,29 @@ const K3 = (e) => {
6898
6903
  }
6899
6904
  }, b = (B) => {
6900
6905
  const { value: $ } = B.target;
6901
- let N = "";
6906
+ let I = "";
6902
6907
  if ($) {
6903
- const q = $ == null ? void 0 : $.toString().replace(/[^0-9.]/g, ""), C2 = q.split(".").length - 1;
6904
- N = q, C2 > 1 && (N = q.slice(0, q.lastIndexOf(".")));
6908
+ const R = $ == null ? void 0 : $.toString().replace(/[^0-9.]/g, ""), C2 = R.split(".").length - 1;
6909
+ I = R, C2 > 1 && (I = R.slice(0, R.lastIndexOf(".")));
6905
6910
  }
6906
- if (x(u(N)), p) {
6907
- const q = {
6911
+ if (x(u(I)), p) {
6912
+ const R = {
6908
6913
  ...B,
6909
6914
  target: {
6910
6915
  ...B.target,
6911
- value: N
6916
+ value: I
6912
6917
  }
6913
6918
  };
6914
- p(q);
6919
+ p(R);
6915
6920
  }
6916
6921
  };
6917
6922
  G(() => {
6918
- var N;
6919
- const B = document.getElementById(`unitTextWidth ${r}`), $ = ((N = m.current) == null ? void 0 : N.offsetWidth) || 0;
6923
+ var I;
6924
+ const B = document.getElementById(`unitTextWidth ${r}`), $ = ((I = Z.current) == null ? void 0 : I.offsetWidth) || 0;
6920
6925
  B && _($ + 16);
6921
6926
  }, [r, f]);
6922
- const S = [D.input];
6923
- return s && S.push(D.error), o && S.push(o), /* @__PURE__ */ a("div", { className: `${D.unitField}`, children: [
6927
+ const S = [q.input];
6928
+ return s && S.push(q.error), o && S.push(o), /* @__PURE__ */ a("div", { className: `${q.unitField}`, children: [
6924
6929
  /* @__PURE__ */ C(
6925
6930
  "input",
6926
6931
  {
@@ -6945,7 +6950,7 @@ const K3 = (e) => {
6945
6950
  ...V
6946
6951
  }
6947
6952
  ),
6948
- /* @__PURE__ */ C("div", { className: D.unitText, ref: m, children: f })
6953
+ /* @__PURE__ */ C("div", { className: q.unitText, ref: Z, children: f })
6949
6954
  ] });
6950
6955
  }, e8 = (e) => {
6951
6956
  const {
@@ -6961,8 +6966,8 @@ const K3 = (e) => {
6961
6966
  readonly: w,
6962
6967
  autoComplete: d,
6963
6968
  ...f
6964
- } = e, v = [D.input];
6965
- return s && v.push(D.error), o && v.push(o), /* @__PURE__ */ a("div", { className: D.time, children: [
6969
+ } = e, v = [q.input];
6970
+ return s && v.push(q.error), o && v.push(o), /* @__PURE__ */ a("div", { className: q.time, children: [
6966
6971
  /* @__PURE__ */ C(
6967
6972
  "input",
6968
6973
  {
@@ -6985,7 +6990,7 @@ const K3 = (e) => {
6985
6990
  ...f
6986
6991
  }
6987
6992
  ),
6988
- /* @__PURE__ */ C("div", { className: D.clockIcon, children: /* @__PURE__ */ C(T9, { type: "light" }) })
6993
+ /* @__PURE__ */ C("div", { className: q.clockIcon, children: /* @__PURE__ */ C(T9, { type: "light" }) })
6989
6994
  ] });
6990
6995
  }, t8 = (e) => {
6991
6996
  const {
@@ -7001,8 +7006,8 @@ const K3 = (e) => {
7001
7006
  readonly: w,
7002
7007
  autoComplete: d,
7003
7008
  ...f
7004
- } = e, v = [D.input];
7005
- return s && v.push(D.error), o && v.push(o), /* @__PURE__ */ C(
7009
+ } = e, v = [q.input];
7010
+ return s && v.push(q.error), o && v.push(o), /* @__PURE__ */ C(
7006
7011
  "input",
7007
7012
  {
7008
7013
  className: W(v),
@@ -7049,8 +7054,8 @@ const K3 = (e) => {
7049
7054
  i && H.push(i), c && H.push(m2.error), G(() => {
7050
7055
  V(r || !1);
7051
7056
  }, [r]);
7052
- const _ = (m) => {
7053
- V(!p), f && f(m, p);
7057
+ const _ = (Z) => {
7058
+ V(!p), f && f(Z, p);
7054
7059
  };
7055
7060
  return /* @__PURE__ */ a("div", { className: W(H), children: [
7056
7061
  /* @__PURE__ */ C(
@@ -7715,18 +7720,18 @@ const K3 = (e) => {
7715
7720
  };
7716
7721
  }
7717
7722
  }, []);
7718
- const m = [D.input];
7719
- return s && m.push(D.error), o && m.push(o), /* @__PURE__ */ a("div", { className: K.profileSwitchPanel, children: [
7723
+ const Z = [q.input];
7724
+ return s && Z.push(q.error), o && Z.push(o), /* @__PURE__ */ a("div", { className: K.profileSwitchPanel, children: [
7720
7725
  /* @__PURE__ */ a("div", { className: K.profileSwitchPanelHeader, children: [
7721
7726
  /* @__PURE__ */ C("div", { onClick: v, className: K.caretLeft, children: /* @__PURE__ */ C(X2, { type: "bold" }) }),
7722
7727
  /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C("h5", { className: K.headerTitle, children: "Switch user" }) }),
7723
7728
  /* @__PURE__ */ C("div", { onClick: p, className: K.closeIcon, children: /* @__PURE__ */ C(y2, { type: "bold" }) })
7724
7729
  ] }),
7725
- /* @__PURE__ */ C("div", { className: K.fieldWrapper, children: /* @__PURE__ */ a("div", { className: D.textField, children: [
7730
+ /* @__PURE__ */ C("div", { className: K.fieldWrapper, children: /* @__PURE__ */ a("div", { className: q.textField, children: [
7726
7731
  /* @__PURE__ */ C(
7727
7732
  "input",
7728
7733
  {
7729
- className: W(m),
7734
+ className: W(Z),
7730
7735
  id: r,
7731
7736
  name: t,
7732
7737
  type: "text",
@@ -7744,9 +7749,9 @@ const K3 = (e) => {
7744
7749
  ...V
7745
7750
  }
7746
7751
  ),
7747
- /* @__PURE__ */ C("div", { className: D.textFieldIcon, children: /* @__PURE__ */ C($9, {}) })
7752
+ /* @__PURE__ */ C("div", { className: q.textFieldIcon, children: /* @__PURE__ */ C($9, {}) })
7748
7753
  ] }) }),
7749
- /* @__PURE__ */ C("div", { id: "listContainer", className: `${K.usersHolder} ${H ? D.spacing : ""} `, children: f })
7754
+ /* @__PURE__ */ C("div", { id: "listContainer", className: `${K.usersHolder} ${H ? q.spacing : ""} `, children: f })
7750
7755
  ] });
7751
7756
  }, X8 = (e) => {
7752
7757
  const { initials: t, userName: r, role: n } = e;