@arkyn/components 3.0.1-beta.47 → 3.0.1-beta.49

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/bundle.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as f, jsxs as k, Fragment as ke } from "react/jsx-runtime";
2
2
  import * as ee from "react";
3
- import Tr, { createContext as Ne, useContext as Ae, useState as F, useRef as oe, useEffect as Ce, cloneElement as Da, useId as Ie, useSyncExternalStore as $a, forwardRef as gn, Children as La, useCallback as tt } from "react";
3
+ import Tr, { createContext as Fe, useContext as Ae, useState as F, useRef as oe, useEffect as Ce, cloneElement as Da, useId as Ie, useSyncExternalStore as $a, forwardRef as gn, Children as La, useCallback as tt } from "react";
4
4
  import { Info as ja, AlertTriangle as Ba, XCircle as za, CheckCircle2 as Ha, Pause as Ga, Play as Va, Loader2 as Oe, RefreshCw as hn, Check as pn, X as yn, FileImage as Ua, FileAudio as qa, FileArchive as Wa, File as Ka, ChevronDown as Or, Search as Xa } from "lucide-react";
5
5
  import { AnimatePresence as Pr, motion as ft } from "framer-motion";
6
6
  import { InputMask as Ar } from "@react-input/mask";
@@ -8,7 +8,7 @@ function Ya(e) {
8
8
  const { className: t, ...n } = e, r = `arkynAlertTitle ${t}`;
9
9
  return /* @__PURE__ */ f("div", { className: r.trim(), ...n });
10
10
  }
11
- const Ir = Ne({});
11
+ const Ir = Fe({});
12
12
  function Za() {
13
13
  return Ae(Ir);
14
14
  }
@@ -156,7 +156,7 @@ function es(e) {
156
156
  /* @__PURE__ */ f("p", { children: g })
157
157
  ] });
158
158
  }
159
- const Rr = Ne({});
159
+ const Rr = Fe({});
160
160
  function bc(e) {
161
161
  const { children: t, fieldErrors: n, form: r } = e;
162
162
  return /* @__PURE__ */ k(Rr.Provider, { value: { fieldErrors: n }, children: [
@@ -167,11 +167,11 @@ function bc(e) {
167
167
  function be() {
168
168
  return Ae(Rr);
169
169
  }
170
- function Fe(e) {
170
+ function xe(e) {
171
171
  const { children: t, className: n, ...r } = e, a = `arkynFieldError ${n}`;
172
172
  return t ? /* @__PURE__ */ f("strong", { className: a.trim(), ...r, children: t }) : /* @__PURE__ */ f(ke, {});
173
173
  }
174
- function me(e) {
174
+ function pe(e) {
175
175
  const {
176
176
  showAsterisk: t = !1,
177
177
  className: n = "",
@@ -420,7 +420,7 @@ function xc(e) {
420
420
  }
421
421
  const P = y || v;
422
422
  return /* @__PURE__ */ k(ye, { children: [
423
- n && /* @__PURE__ */ f(me, { showAsterisk: h, children: n }),
423
+ n && /* @__PURE__ */ f(pe, { showAsterisk: h, children: n }),
424
424
  /* @__PURE__ */ k("div", { className: `arkynAudioUpload ${P ? "hasError" : "noHasError"} ${T ? "hasAudio" : "noHasAudio"}`, children: [
425
425
  /* @__PURE__ */ f("input", { type: "hidden", name: t, value: C || "" }),
426
426
  !T && /* @__PURE__ */ f(
@@ -447,7 +447,7 @@ function xc(e) {
447
447
  }
448
448
  )
449
449
  ] }),
450
- P && /* @__PURE__ */ f(Fe, { children: P })
450
+ P && /* @__PURE__ */ f(xe, { children: P })
451
451
  ] });
452
452
  }
453
453
  function Ec(e) {
@@ -467,7 +467,7 @@ function Ec(e) {
467
467
  /* @__PURE__ */ f(K, { iconSize: u, icon: s })
468
468
  ] });
469
469
  }
470
- const Mr = Ne({});
470
+ const Mr = Fe({});
471
471
  function rs() {
472
472
  return Ae(Mr);
473
473
  }
@@ -540,7 +540,7 @@ function Fc(e) {
540
540
  v(!S), l && l(S ? "" : d || "checked");
541
541
  }
542
542
  return /* @__PURE__ */ k(ye, { orientation: u, children: [
543
- i && /* @__PURE__ */ f(me, { children: i }),
543
+ i && /* @__PURE__ */ f(pe, { children: i }),
544
544
  /* @__PURE__ */ k(
545
545
  "button",
546
546
  {
@@ -563,7 +563,7 @@ function Fc(e) {
563
563
  ]
564
564
  }
565
565
  ),
566
- y && /* @__PURE__ */ f(Fe, { children: y })
566
+ y && /* @__PURE__ */ f(xe, { children: y })
567
567
  ] });
568
568
  }
569
569
  function ss() {
@@ -2632,7 +2632,7 @@ function Tc(e) {
2632
2632
  }, [d, l, c]);
2633
2633
  const qt = `arkynCurrencyInput ${h ? "hasPrefix" : ""} ${m ? "hasSuffix" : ""} ${s} ${T} ${E || C || g ? "opacity" : ""} ${Z ? "errored" : ""} ${O ? "focused" : ""} ${i}`;
2634
2634
  return /* @__PURE__ */ k(ye, { children: [
2635
- o && /* @__PURE__ */ f(me, { showAsterisk: H, htmlFor: B, children: o }),
2635
+ o && /* @__PURE__ */ f(pe, { showAsterisk: H, htmlFor: B, children: o }),
2636
2636
  /* @__PURE__ */ k(
2637
2637
  "section",
2638
2638
  {
@@ -2681,7 +2681,7 @@ function Tc(e) {
2681
2681
  ]
2682
2682
  }
2683
2683
  ),
2684
- I && /* @__PURE__ */ f(Fe, { children: I })
2684
+ I && /* @__PURE__ */ f(xe, { children: I })
2685
2685
  ] });
2686
2686
  }
2687
2687
  function us() {
@@ -2701,7 +2701,7 @@ function pt(e) {
2701
2701
  }
2702
2702
  }, [e]);
2703
2703
  }
2704
- const Dr = Ne({});
2704
+ const Dr = Fe({});
2705
2705
  function fs(e) {
2706
2706
  return /* @__PURE__ */ f(Dr.Provider, { value: { makeInvisible: e.makeInvisible }, children: e.children });
2707
2707
  }
@@ -2894,7 +2894,7 @@ function Ac(e) {
2894
2894
  }
2895
2895
  const b = g || x;
2896
2896
  return /* @__PURE__ */ k(ye, { children: [
2897
- n && /* @__PURE__ */ f(me, { showAsterisk: r, children: n }),
2897
+ n && /* @__PURE__ */ f(pe, { showAsterisk: r, children: n }),
2898
2898
  /* @__PURE__ */ k("div", { className: `arkynFileUpload ${b ? "hasError" : "noHasError"} ${w ? "hasFile" : "noHasFile"}`, children: [
2899
2899
  /* @__PURE__ */ f("input", { type: "hidden", name: t, value: y || "" }),
2900
2900
  !w && /* @__PURE__ */ f(
@@ -2921,7 +2921,7 @@ function Ac(e) {
2921
2921
  }
2922
2922
  )
2923
2923
  ] }),
2924
- b && /* @__PURE__ */ f(Fe, { children: b })
2924
+ b && /* @__PURE__ */ f(xe, { children: b })
2925
2925
  ] });
2926
2926
  }
2927
2927
  function gs(e) {
@@ -3051,7 +3051,7 @@ function Ic(e) {
3051
3051
  }
3052
3052
  const P = y || v;
3053
3053
  return /* @__PURE__ */ k(ye, { children: [
3054
- r && /* @__PURE__ */ f(me, { showAsterisk: a, children: r }),
3054
+ r && /* @__PURE__ */ f(pe, { showAsterisk: a, children: r }),
3055
3055
  /* @__PURE__ */ k("div", { className: `arkynImageUpload ${P ? "hasError" : "noHasError"} ${T ? "hasImage" : "noHasImage"}`, children: [
3056
3056
  /* @__PURE__ */ f("input", { type: "hidden", name: t, value: C || "" }),
3057
3057
  !T && /* @__PURE__ */ f(
@@ -3078,7 +3078,7 @@ function Ic(e) {
3078
3078
  }
3079
3079
  )
3080
3080
  ] }),
3081
- P && /* @__PURE__ */ f(Fe, { children: P })
3081
+ P && /* @__PURE__ */ f(xe, { children: P })
3082
3082
  ] });
3083
3083
  }
3084
3084
  function ps(e) {
@@ -3127,7 +3127,7 @@ function ps(e) {
3127
3127
  );
3128
3128
  const $ = `arkynInput ${c ? "hasPrefix" : ""} ${l ? "hasSuffix" : ""} ${s} ${v} ${P || _ || u ? "opacity" : ""} ${M ? "errored" : ""} ${T ? "focused" : ""} ${i}`;
3129
3129
  return /* @__PURE__ */ k(ye, { children: [
3130
- o && /* @__PURE__ */ f(me, { showAsterisk: y, htmlFor: b, children: o }),
3130
+ o && /* @__PURE__ */ f(pe, { showAsterisk: y, htmlFor: b, children: o }),
3131
3131
  /* @__PURE__ */ k(
3132
3132
  "section",
3133
3133
  {
@@ -3175,7 +3175,7 @@ function ps(e) {
3175
3175
  ]
3176
3176
  }
3177
3177
  ),
3178
- O && /* @__PURE__ */ f(Fe, { children: O })
3178
+ O && /* @__PURE__ */ f(xe, { children: O })
3179
3179
  ] });
3180
3180
  }
3181
3181
  const ys = gn((e, t) => /* @__PURE__ */ f("input", { ref: t, ...e }));
@@ -3218,7 +3218,7 @@ function Rc(e) {
3218
3218
  }
3219
3219
  const Me = `arkynMaskedInput ${_ ? "hasPrefix" : ""} ${h ? "hasSuffix" : ""} ${s} ${T} ${I || y || m ? "opacity" : ""} ${B ? "errored" : ""} ${O ? "focused" : ""} ${d}`;
3220
3220
  return /* @__PURE__ */ k(ye, { children: [
3221
- u && /* @__PURE__ */ f(me, { showAsterisk: H, htmlFor: j, children: u }),
3221
+ u && /* @__PURE__ */ f(pe, { showAsterisk: H, htmlFor: j, children: u }),
3222
3222
  /* @__PURE__ */ k(
3223
3223
  "section",
3224
3224
  {
@@ -3270,10 +3270,10 @@ function Rc(e) {
3270
3270
  ]
3271
3271
  }
3272
3272
  ),
3273
- D && /* @__PURE__ */ f(Fe, { children: D })
3273
+ D && /* @__PURE__ */ f(xe, { children: D })
3274
3274
  ] });
3275
3275
  }
3276
- const $r = Ne({});
3276
+ const $r = Fe({});
3277
3277
  function vs(e) {
3278
3278
  return /* @__PURE__ */ f($r.Provider, { value: { makeInvisible: e.makeInvisible }, children: e.children });
3279
3279
  }
@@ -3499,7 +3499,7 @@ function Lc(e) {
3499
3499
  }
3500
3500
  const Me = n.filter((z) => !!(e.onSearch || !e.isSearchable || z.label.toLowerCase().includes(Z.toLowerCase())));
3501
3501
  return /* @__PURE__ */ k(ye, { children: [
3502
- _ && /* @__PURE__ */ f(me, { showAsterisk: m, children: _ }),
3502
+ _ && /* @__PURE__ */ f(pe, { showAsterisk: m, children: _ }),
3503
3503
  /* @__PURE__ */ k(
3504
3504
  bs,
3505
3505
  {
@@ -3577,7 +3577,7 @@ function Lc(e) {
3577
3577
  ]
3578
3578
  }
3579
3579
  ),
3580
- P && /* @__PURE__ */ f(Fe, { children: P })
3580
+ P && /* @__PURE__ */ f(xe, { children: P })
3581
3581
  ] });
3582
3582
  }
3583
3583
  function bn(e) {
@@ -3827,7 +3827,7 @@ function jc(e) {
3827
3827
  return b.prefix && (X += `-${b.prefix}`), X += " ", X += re($ || G), X;
3828
3828
  }
3829
3829
  return /* @__PURE__ */ k(ye, { children: [
3830
- n && /* @__PURE__ */ f(me, { showAsterisk: d, children: n }),
3830
+ n && /* @__PURE__ */ f(pe, { showAsterisk: d, children: n }),
3831
3831
  /* @__PURE__ */ k(
3832
3832
  As,
3833
3833
  {
@@ -3909,7 +3909,7 @@ function jc(e) {
3909
3909
  ]
3910
3910
  }
3911
3911
  ),
3912
- D && /* @__PURE__ */ f(Fe, { children: D })
3912
+ D && /* @__PURE__ */ f(xe, { children: D })
3913
3913
  ] });
3914
3914
  }
3915
3915
  function Bc(e) {
@@ -3941,7 +3941,7 @@ function Bc(e) {
3941
3941
  o && /* @__PURE__ */ f("div", { onClick: () => i(!1), className: "arkynPopoverOverlay" })
3942
3942
  ] });
3943
3943
  }
3944
- const zr = Ne({});
3944
+ const zr = Fe({});
3945
3945
  function js(e) {
3946
3946
  const { children: t, size: n, isError: r, handleChange: a, value: s } = e;
3947
3947
  return /* @__PURE__ */ f(zr.Provider, { value: { handleChange: a, value: s, size: n, isError: r }, children: t });
@@ -3990,7 +3990,7 @@ function Hc(e) {
3990
3990
  }
3991
3991
  const g = s || (h == null ? void 0 : h[n]), y = !!g, C = `arkynRadioGroup ${c} ${l}`;
3992
3992
  return /* @__PURE__ */ k(ye, { children: [
3993
- r && /* @__PURE__ */ f(me, { showAsterisk: a, children: r }),
3993
+ r && /* @__PURE__ */ f(pe, { showAsterisk: a, children: r }),
3994
3994
  /* @__PURE__ */ k(
3995
3995
  js,
3996
3996
  {
@@ -4013,7 +4013,7 @@ function Hc(e) {
4013
4013
  ]
4014
4014
  }
4015
4015
  ),
4016
- g && /* @__PURE__ */ f(Fe, { children: g })
4016
+ g && /* @__PURE__ */ f(xe, { children: g })
4017
4017
  ] });
4018
4018
  }
4019
4019
  function Gc(e) {
@@ -4036,7 +4036,7 @@ function Gc(e) {
4036
4036
  }
4037
4037
  const w = `arkynSwitch ${C ? "checkedTrue" : "checkedFalse"} ${n} ${c}`;
4038
4038
  return /* @__PURE__ */ k(ye, { orientation: d, children: [
4039
- t && /* @__PURE__ */ f(me, { children: t }),
4039
+ t && /* @__PURE__ */ f(pe, { children: t }),
4040
4040
  /* @__PURE__ */ f(
4041
4041
  "button",
4042
4042
  {
@@ -4059,7 +4059,7 @@ function Gc(e) {
4059
4059
  )
4060
4060
  ] });
4061
4061
  }
4062
- const Hr = Ne({});
4062
+ const Hr = Fe({});
4063
4063
  function zs() {
4064
4064
  return Ae(Hr);
4065
4065
  }
@@ -4171,7 +4171,7 @@ function Zc(e) {
4171
4171
  x(!1), d && d(j);
4172
4172
  }
4173
4173
  return /* @__PURE__ */ k(ye, { children: [
4174
- i && /* @__PURE__ */ f(me, { showAsterisk: c, children: i }),
4174
+ i && /* @__PURE__ */ f(pe, { showAsterisk: c, children: i }),
4175
4175
  /* @__PURE__ */ f(
4176
4176
  "section",
4177
4177
  {
@@ -4193,10 +4193,10 @@ function Zc(e) {
4193
4193
  )
4194
4194
  }
4195
4195
  ),
4196
- H && /* @__PURE__ */ f(me, { children: H })
4196
+ H && /* @__PURE__ */ f(xe, { children: H })
4197
4197
  ] });
4198
4198
  }
4199
- const Gr = Ne({});
4199
+ const Gr = Fe({});
4200
4200
  function Jc(e) {
4201
4201
  const { children: t = !1 } = e, [n, r] = F([]);
4202
4202
  function a(c) {
@@ -4236,7 +4236,7 @@ function Qc(e) {
4236
4236
  } else
4237
4237
  return t;
4238
4238
  }
4239
- const Vr = Ne({});
4239
+ const Vr = Fe({});
4240
4240
  function el(e) {
4241
4241
  const { children: t = !1 } = e, [n, r] = F([]);
4242
4242
  function a(l) {
@@ -4390,15 +4390,15 @@ var Ys = (e) => typeof e == "function", St = (e, t) => Ys(e) ? e(t) : e, Zs = /*
4390
4390
  let s = t.time - (e.pausedAt || 0);
4391
4391
  return { ...e, pausedAt: void 0, toasts: e.toasts.map((o) => ({ ...o, pauseDuration: o.pauseDuration + s })) };
4392
4392
  }
4393
- }, Ft = [], Xr = { toasts: [], pausedAt: void 0, settings: { toastLimit: Js } }, we = {}, Yr = (e, t = En) => {
4394
- we[t] = Kr(we[t] || Xr, e), Ft.forEach(([n, r]) => {
4395
- n === t && r(we[t]);
4393
+ }, Ft = [], Xr = { toasts: [], pausedAt: void 0, settings: { toastLimit: Js } }, Ne = {}, Yr = (e, t = En) => {
4394
+ Ne[t] = Kr(Ne[t] || Xr, e), Ft.forEach(([n, r]) => {
4395
+ n === t && r(Ne[t]);
4396
4396
  });
4397
- }, Zr = (e) => Object.keys(we).forEach((t) => Yr(e, t)), Qs = (e) => Object.keys(we).find((t) => we[t].toasts.some((n) => n.id === e)), Rt = (e = En) => (t) => {
4397
+ }, Zr = (e) => Object.keys(Ne).forEach((t) => Yr(e, t)), Qs = (e) => Object.keys(Ne).find((t) => Ne[t].toasts.some((n) => n.id === e)), Rt = (e = En) => (t) => {
4398
4398
  Yr(t, e);
4399
4399
  }, eo = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, to = (e = {}, t = En) => {
4400
- let [n, r] = F(we[t] || Xr), a = oe(we[t]);
4401
- Ce(() => (a.current !== we[t] && r(we[t]), Ft.push([t, r]), () => {
4400
+ let [n, r] = F(Ne[t] || Xr), a = oe(Ne[t]);
4401
+ Ce(() => (a.current !== Ne[t] && r(Ne[t]), Ft.push([t, r]), () => {
4402
4402
  let o = Ft.findIndex(([i]) => i === t);
4403
4403
  o > -1 && Ft.splice(o, 1);
4404
4404
  }), [t]);
@@ -4685,7 +4685,7 @@ var So = ({ id: e, className: t, style: n, onHeightUpdate: r, children: a }) =>
4685
4685
  return ee.createElement(So, { id: u.id, key: u.id, onHeightUpdate: l.updateHeight, className: u.visible ? Oo : "", style: h }, u.type === "custom" ? St(u.message, u) : a ? a(u) : ee.createElement(Fo, { toast: u, position: d }));
4686
4686
  }));
4687
4687
  }, Kn = Q;
4688
- const Ao = Ne({});
4688
+ const Ao = Fe({});
4689
4689
  function rl({ children: e }) {
4690
4690
  function t(n) {
4691
4691
  switch (n.type) {
@@ -4743,7 +4743,7 @@ function se(e) {
4743
4743
  var t, n;
4744
4744
  return Xn(e) === !1 ? !1 : (t = e.constructor, t === void 0 ? !0 : (n = t.prototype, !(Xn(n) === !1 || n.hasOwnProperty("isPrototypeOf") === !1)));
4745
4745
  }
4746
- var Jr = Symbol.for("immer-nothing"), Yn = Symbol.for("immer-draftable"), ge = Symbol.for("immer-state"), Io = process.env.NODE_ENV !== "production" ? [
4746
+ var Jr = Symbol.for("immer-nothing"), Yn = Symbol.for("immer-draftable"), me = Symbol.for("immer-state"), Io = process.env.NODE_ENV !== "production" ? [
4747
4747
  // All error codes, starting by 0:
4748
4748
  function(e) {
4749
4749
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
@@ -4785,7 +4785,7 @@ function de(e, ...t) {
4785
4785
  }
4786
4786
  var rt = Object.getPrototypeOf;
4787
4787
  function We(e) {
4788
- return !!e && !!e[ge];
4788
+ return !!e && !!e[me];
4789
4789
  }
4790
4790
  function Ke(e) {
4791
4791
  var t;
@@ -4807,7 +4807,7 @@ function Tt(e, t) {
4807
4807
  }) : e.forEach((n, r) => t(r, n, e));
4808
4808
  }
4809
4809
  function Mt(e) {
4810
- const t = e[ge];
4810
+ const t = e[me];
4811
4811
  return t ? t.type_ : Array.isArray(e) ? 1 : Dt(e) ? 2 : $t(e) ? 3 : 0;
4812
4812
  }
4813
4813
  function an(e, t) {
@@ -4839,7 +4839,7 @@ function sn(e, t) {
4839
4839
  const n = Qr(e);
4840
4840
  if (t === !0 || t === "class_only" && !n) {
4841
4841
  const r = Object.getOwnPropertyDescriptors(e);
4842
- delete r[ge];
4842
+ delete r[me];
4843
4843
  let a = Reflect.ownKeys(r);
4844
4844
  for (let s = 0; s < a.length; s++) {
4845
4845
  const o = a[s], i = r[o];
@@ -4902,14 +4902,14 @@ function Jn(e) {
4902
4902
  return dt = Lo(dt, e);
4903
4903
  }
4904
4904
  function jo(e) {
4905
- const t = e[ge];
4905
+ const t = e[me];
4906
4906
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
4907
4907
  }
4908
4908
  function Qn(e, t) {
4909
4909
  t.unfinalizedDrafts_ = t.drafts_.length;
4910
4910
  const n = t.drafts_[0];
4911
- return e !== void 0 && e !== n ? (n[ge].modified_ && (on(t), de(4)), Ke(e) && (e = Ot(t, e), t.parent_ || Pt(t, e)), t.patches_ && Xe("Patches").generateReplacementPatches_(
4912
- n[ge].base_,
4911
+ return e !== void 0 && e !== n ? (n[me].modified_ && (on(t), de(4)), Ke(e) && (e = Ot(t, e), t.parent_ || Pt(t, e)), t.patches_ && Xe("Patches").generateReplacementPatches_(
4912
+ n[me].base_,
4913
4913
  e,
4914
4914
  t.patches_,
4915
4915
  t.inversePatches_
@@ -4918,7 +4918,7 @@ function Qn(e, t) {
4918
4918
  function Ot(e, t, n) {
4919
4919
  if (Lt(t))
4920
4920
  return t;
4921
- const r = t[ge];
4921
+ const r = t[me];
4922
4922
  if (!r)
4923
4923
  return Tt(
4924
4924
  t,
@@ -4993,7 +4993,7 @@ function Bo(e, t) {
4993
4993
  }
4994
4994
  var Nn = {
4995
4995
  get(e, t) {
4996
- if (t === ge)
4996
+ if (t === me)
4997
4997
  return e;
4998
4998
  const n = Ue(e);
4999
4999
  if (!an(n, t))
@@ -5012,7 +5012,7 @@ var Nn = {
5012
5012
  if (r != null && r.set)
5013
5013
  return r.set.call(e.draft_, n), !0;
5014
5014
  if (!e.modified_) {
5015
- const a = Zt(Ue(e), t), s = a == null ? void 0 : a[ge];
5015
+ const a = Zt(Ue(e), t), s = a == null ? void 0 : a[me];
5016
5016
  if (s && s.base_ === n)
5017
5017
  return e.copy_[t] = n, e.assigned_[t] = !1, !0;
5018
5018
  if (Mo(n, a) && (n !== void 0 || an(e.base_, t)))
@@ -5059,7 +5059,7 @@ _t.set = function(e, t, n) {
5059
5059
  return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && de(14), Nn.set.call(this, e[0], t, n, e[0]);
5060
5060
  };
5061
5061
  function Zt(e, t) {
5062
- const n = e[ge];
5062
+ const n = e[me];
5063
5063
  return (n ? Ue(n) : e)[t];
5064
5064
  }
5065
5065
  function zo(e, t, n) {
@@ -5133,10 +5133,10 @@ var Ho = class {
5133
5133
  createDraft(e) {
5134
5134
  Ke(e) || de(8), We(e) && (e = Go(e));
5135
5135
  const t = Jn(this), n = un(e, void 0);
5136
- return n[ge].isManual_ = !0, cn(t), n;
5136
+ return n[me].isManual_ = !0, cn(t), n;
5137
5137
  }
5138
5138
  finishDraft(e, t) {
5139
- const n = e && e[ge];
5139
+ const n = e && e[me];
5140
5140
  (!n || !n.isManual_) && de(9);
5141
5141
  const { scope_: r } = n;
5142
5142
  return Zn(r, t), Qn(void 0, r);
@@ -5184,7 +5184,7 @@ function Go(e) {
5184
5184
  function ra(e) {
5185
5185
  if (!Ke(e) || Lt(e))
5186
5186
  return e;
5187
- const t = e[ge];
5187
+ const t = e[me];
5188
5188
  let n;
5189
5189
  if (t) {
5190
5190
  if (!t.modified_)
@@ -5196,14 +5196,14 @@ function ra(e) {
5196
5196
  ea(n, r, ra(a));
5197
5197
  }), t && (t.finalized_ = !1), n;
5198
5198
  }
5199
- var he = new Ho(), Fn = he.produce;
5200
- he.produceWithPatches.bind(
5201
- he
5199
+ var ge = new Ho(), Fn = ge.produce;
5200
+ ge.produceWithPatches.bind(
5201
+ ge
5202
5202
  );
5203
- he.setAutoFreeze.bind(he);
5204
- he.setUseStrictShallowCopy.bind(he);
5205
- he.applyPatches.bind(he);
5206
- var tr = he.createDraft.bind(he), nr = he.finishDraft.bind(he), p = {
5203
+ ge.setAutoFreeze.bind(ge);
5204
+ ge.setUseStrictShallowCopy.bind(ge);
5205
+ ge.applyPatches.bind(ge);
5206
+ var tr = ge.createDraft.bind(ge), nr = ge.finishDraft.bind(ge), p = {
5207
5207
  ancestors(e) {
5208
5208
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
5209
5209
  reverse: n = !1
@@ -5466,7 +5466,7 @@ var qo = (e, t, n) => {
5466
5466
  else if (!W.isText(x) && !W.isText(w))
5467
5467
  w.children.push(...x.children);
5468
5468
  else
5469
- throw new Error('Cannot apply a "merge_node" operation at path ['.concat(C, "] to nodes of different interfaces: ").concat(Ee.stringify(x), " ").concat(Ee.stringify(w)));
5469
+ throw new Error('Cannot apply a "merge_node" operation at path ['.concat(C, "] to nodes of different interfaces: ").concat(we.stringify(x), " ").concat(we.stringify(w)));
5470
5470
  if (H.children.splice(L, 1), t)
5471
5471
  for (var [T, G] of R.points(t))
5472
5472
  t[G] = U.transform(T, n);
@@ -5552,7 +5552,7 @@ var qo = (e, t, n) => {
5552
5552
  else {
5553
5553
  if (t == null) {
5554
5554
  if (!R.isRange(Ge))
5555
- throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Ee.stringify(Ge), " when there is no current selection."));
5555
+ throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(we.stringify(Ge), " when there is no current selection."));
5556
5556
  t = ot({}, Ge);
5557
5557
  }
5558
5558
  for (var Qe in Ge) {
@@ -5796,7 +5796,7 @@ var R = {
5796
5796
  r.anchor = c, r.focus = l;
5797
5797
  });
5798
5798
  }
5799
- }, sr = (e) => se(e) && N.isNodeList(e.children) && !pe.isEditor(e), $e = {
5799
+ }, sr = (e) => se(e) && N.isNodeList(e.children) && !he.isEditor(e), $e = {
5800
5800
  isAncestor(e) {
5801
5801
  return se(e) && N.isNodeList(e.children);
5802
5802
  },
@@ -5821,7 +5821,7 @@ var R = {
5821
5821
  ancestor(e, t) {
5822
5822
  var n = N.get(e, t);
5823
5823
  if (W.isText(n))
5824
- throw new Error("Cannot get the ancestor node at path [".concat(t, "] because it refers to a text node instead: ").concat(Ee.stringify(n)));
5824
+ throw new Error("Cannot get the ancestor node at path [".concat(t, "] because it refers to a text node instead: ").concat(we.stringify(n)));
5825
5825
  return n;
5826
5826
  },
5827
5827
  ancestors(e, t) {
@@ -5835,10 +5835,10 @@ var R = {
5835
5835
  },
5836
5836
  child(e, t) {
5837
5837
  if (W.isText(e))
5838
- throw new Error("Cannot get the child of a text node: ".concat(Ee.stringify(e)));
5838
+ throw new Error("Cannot get the child of a text node: ".concat(we.stringify(e)));
5839
5839
  var n = e.children[t];
5840
5840
  if (n == null)
5841
- throw new Error("Cannot get child at index `".concat(t, "` in node: ").concat(Ee.stringify(e)));
5841
+ throw new Error("Cannot get child at index `".concat(t, "` in node: ").concat(we.stringify(e)));
5842
5842
  return n;
5843
5843
  },
5844
5844
  children(e, t) {
@@ -5860,8 +5860,8 @@ var R = {
5860
5860
  },
5861
5861
  descendant(e, t) {
5862
5862
  var n = N.get(e, t);
5863
- if (pe.isEditor(n))
5864
- throw new Error("Cannot get the descendant node at path [".concat(t, "] because it refers to the root editor node instead: ").concat(Ee.stringify(n)));
5863
+ if (he.isEditor(n))
5864
+ throw new Error("Cannot get the descendant node at path [".concat(t, "] because it refers to the root editor node instead: ").concat(we.stringify(n)));
5865
5865
  return n;
5866
5866
  },
5867
5867
  descendants(e) {
@@ -5894,7 +5894,7 @@ var R = {
5894
5894
  },
5895
5895
  fragment(e, t) {
5896
5896
  if (W.isText(e))
5897
- throw new Error("Cannot get a fragment starting from a root text node: ".concat(Ee.stringify(e)));
5897
+ throw new Error("Cannot get a fragment starting from a root text node: ".concat(we.stringify(e)));
5898
5898
  var n = Fn({
5899
5899
  children: e.children
5900
5900
  }, (r) => {
@@ -5919,7 +5919,7 @@ var R = {
5919
5919
  d.text = d.text.slice(a.offset);
5920
5920
  }
5921
5921
  }
5922
- pe.isEditor(r) && (r.selection = null);
5922
+ he.isEditor(r) && (r.selection = null);
5923
5923
  });
5924
5924
  return n.children;
5925
5925
  },
@@ -5927,7 +5927,7 @@ var R = {
5927
5927
  for (var n = e, r = 0; r < t.length; r++) {
5928
5928
  var a = t[r];
5929
5929
  if (W.isText(n) || !n.children[a])
5930
- throw new Error("Cannot find a descendant at path [".concat(t, "] in node: ").concat(Ee.stringify(e)));
5930
+ throw new Error("Cannot find a descendant at path [".concat(t, "] in node: ").concat(we.stringify(e)));
5931
5931
  n = n.children[a];
5932
5932
  }
5933
5933
  return n;
@@ -5942,7 +5942,7 @@ var R = {
5942
5942
  return !0;
5943
5943
  },
5944
5944
  isNode(e) {
5945
- return W.isText(e) || $e.isElement(e) || pe.isEditor(e);
5945
+ return W.isText(e) || $e.isElement(e) || he.isEditor(e);
5946
5946
  },
5947
5947
  isNodeList(e) {
5948
5948
  if (!Array.isArray(e))
@@ -5963,7 +5963,7 @@ var R = {
5963
5963
  leaf(e, t) {
5964
5964
  var n = N.get(e, t);
5965
5965
  if (!W.isText(n))
5966
- throw new Error("Cannot get the leaf node at path [".concat(t, "] because it refers to a non-leaf node: ").concat(Ee.stringify(n)));
5966
+ throw new Error("Cannot get the leaf node at path [".concat(t, "] because it refers to a non-leaf node: ").concat(we.stringify(n)));
5967
5967
  return n;
5968
5968
  },
5969
5969
  levels(e, t) {
@@ -6171,7 +6171,7 @@ var it = {
6171
6171
  return !1;
6172
6172
  var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null || se(e.marks)) && (e.selection === null || R.isRange(e.selection)) && N.isNodeList(e.children) && it.isOperationList(e.operations);
6173
6173
  return cr.set(e, n), n;
6174
- }, pe = {
6174
+ }, he = {
6175
6175
  above(e, t) {
6176
6176
  return e.above(t);
6177
6177
  },
@@ -6445,7 +6445,7 @@ var U = {
6445
6445
  }
6446
6446
  });
6447
6447
  }
6448
- }, fr = void 0, Ee = {
6448
+ }, fr = void 0, we = {
6449
6449
  setScrubber(e) {
6450
6450
  fr = e;
6451
6451
  },
@@ -6539,7 +6539,7 @@ var W = {
6539
6539
  }
6540
6540
  return n;
6541
6541
  }
6542
- }, ai = (e) => e.selection ? e.selection : e.children.length > 0 ? pe.end(e, []) : [0], V;
6542
+ }, ai = (e) => e.selection ? e.selection : e.children.length > 0 ? he.end(e, []) : [0], V;
6543
6543
  (function(e) {
6544
6544
  e[e.None = 0] = "None", e[e.Extend = 1] = "Extend", e[e.ZWJ = 2] = "ZWJ", e[e.RI = 4] = "RI", e[e.Prepend = 8] = "Prepend", e[e.SpacingMark = 16] = "SpacingMark", e[e.L = 32] = "L", e[e.V = 64] = "V", e[e.T = 128] = "T", e[e.LV = 256] = "LV", e[e.LVT = 512] = "LVT", e[e.ExtPict = 1024] = "ExtPict", e[e.Any = 2048] = "Any";
6545
6545
  })(V || (V = {}));
@@ -6553,22 +6553,22 @@ var si = {
6553
6553
  },
6554
6554
  insertText(e, t) {
6555
6555
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
6556
- pe.withoutNormalizing(e, () => {
6556
+ he.withoutNormalizing(e, () => {
6557
6557
  var {
6558
6558
  voids: r = !1
6559
6559
  } = n, {
6560
6560
  at: a = ai(e)
6561
6561
  } = n;
6562
- if (p.isPath(a) && (a = pe.range(e, a)), R.isRange(a))
6562
+ if (p.isPath(a) && (a = he.range(e, a)), R.isRange(a))
6563
6563
  if (R.isCollapsed(a))
6564
6564
  a = a.anchor;
6565
6565
  else {
6566
6566
  var s = R.end(a);
6567
- if (!r && pe.void(e, {
6567
+ if (!r && he.void(e, {
6568
6568
  at: s
6569
6569
  }))
6570
6570
  return;
6571
- var o = R.start(a), i = pe.pointRef(e, o), c = pe.pointRef(e, s);
6571
+ var o = R.start(a), i = he.pointRef(e, o), c = he.pointRef(e, s);
6572
6572
  mr.delete(e, {
6573
6573
  at: a,
6574
6574
  voids: r
@@ -6579,9 +6579,9 @@ var si = {
6579
6579
  focus: a
6580
6580
  });
6581
6581
  }
6582
- if (!(!r && pe.void(e, {
6582
+ if (!(!r && he.void(e, {
6583
6583
  at: a
6584
- }) || pe.elementReadOnly(e, {
6584
+ }) || he.elementReadOnly(e, {
6585
6585
  at: a
6586
6586
  }))) {
6587
6587
  var {
@@ -7299,7 +7299,7 @@ function ki(e) {
7299
7299
  var t = e.match(vi), n = t ? t[1] : void 0;
7300
7300
  return (0, yi.formatDOM)((0, pi.default)(e), null, n);
7301
7301
  }
7302
- var zt = {}, xe = {}, Ht = {}, Ci = 0;
7302
+ var zt = {}, Ee = {}, Ht = {}, Ci = 0;
7303
7303
  Ht.SAME = Ci;
7304
7304
  var bi = 1;
7305
7305
  Ht.CAMELCASE = bi;
@@ -8212,16 +8212,16 @@ const {
8212
8212
  const n = kr[t];
8213
8213
  return n === Fi ? e[t] = t : n === Ni ? e[t.toLowerCase()] = t : e[t] = n, e;
8214
8214
  }, {});
8215
- xe.BOOLEAN = Vt;
8216
- xe.BOOLEANISH_STRING = Gt;
8217
- xe.NUMERIC = Ea;
8218
- xe.OVERLOADED_BOOLEAN = Rn;
8219
- xe.POSITIVE_NUMERIC = wa;
8220
- xe.RESERVED = xa;
8221
- xe.STRING = ze;
8222
- xe.getPropertyInfo = xi;
8223
- xe.isCustomAttribute = Oi;
8224
- xe.possibleStandardNames = Pi;
8215
+ Ee.BOOLEAN = Vt;
8216
+ Ee.BOOLEANISH_STRING = Gt;
8217
+ Ee.NUMERIC = Ea;
8218
+ Ee.OVERLOADED_BOOLEAN = Rn;
8219
+ Ee.POSITIVE_NUMERIC = wa;
8220
+ Ee.RESERVED = xa;
8221
+ Ee.STRING = ze;
8222
+ Ee.getPropertyInfo = xi;
8223
+ Ee.isCustomAttribute = Oi;
8224
+ Ee.possibleStandardNames = Pi;
8225
8225
  var $n = {}, Ln = {}, Cr = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ai = /\n/g, Ii = /^\s*/, Ri = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Mi = /^:\s*/, Di = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, $i = /^[;\s]*/, Li = /^\s+|\s+$/g, ji = `
8226
8226
  `, br = "/", xr = "*", qe = "", Bi = "comment", zi = "declaration", Hi = function(e, t) {
8227
8227
  if (typeof e != "string")
@@ -8403,7 +8403,7 @@ var rc = mn;
8403
8403
  })($n);
8404
8404
  Object.defineProperty(zt, "__esModule", { value: !0 });
8405
8405
  zt.default = ic;
8406
- var ct = xe, Nr = $n, ac = ["checked", "value"], sc = ["input", "select", "textarea"], oc = {
8406
+ var ct = Ee, Nr = $n, ac = ["checked", "value"], sc = ["input", "select", "textarea"], oc = {
8407
8407
  reset: !0,
8408
8408
  submit: !0
8409
8409
  };
@@ -8541,8 +8541,8 @@ export {
8541
8541
  Oc as DrawerContainer,
8542
8542
  Pc as DrawerHeader,
8543
8543
  Jc as DrawerProvider,
8544
- Fe as FieldError,
8545
- me as FieldLabel,
8544
+ xe as FieldError,
8545
+ pe as FieldLabel,
8546
8546
  ye as FieldWrapper,
8547
8547
  Ac as FileUpload,
8548
8548
  bc as FormProvider,