@arkyn/components 3.0.1-beta.57 → 3.0.1-beta.58

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 C, Fragment as Ce } from "react/jsx-runtime";
2
2
  import * as ee from "react";
3
- import Tr, { createContext as Se, useContext as Re, useState as S, useRef as ie, useEffect as be, cloneElement as $a, useId as Me, useSyncExternalStore as La, forwardRef as gn, Children as ja, useCallback as nt } from "react";
3
+ import Tr, { createContext as Se, useContext as Re, useState as T, useRef as ie, useEffect as be, cloneElement as $a, useId as Me, useSyncExternalStore as La, forwardRef as gn, Children as ja, useCallback as nt } from "react";
4
4
  import { Info as Ba, AlertTriangle as za, XCircle as Ha, CheckCircle2 as Ga, Pause as Va, Play as Ua, Loader2 as Ae, RefreshCw as hn, Check as pn, X as yn, FileImage as qa, FileAudio as Wa, FileArchive as Ka, File as Xa, ChevronDown as Or, Search as Ya } from "lucide-react";
5
5
  import { AnimatePresence as Pr, motion as dt } from "framer-motion";
6
6
  import { InputMask as Ar } from "@react-input/mask";
@@ -47,7 +47,7 @@ function Qa(e) {
47
47
  function t() {
48
48
  return !e || e <= 0 ? 0 : e >= 100 ? 100 : e;
49
49
  }
50
- const [n, r] = S(t());
50
+ const [n, r] = T(t());
51
51
  function a(s) {
52
52
  return s <= 0 ? r(0) : s >= 100 ? r(100) : r(s);
53
53
  }
@@ -61,13 +61,13 @@ function es(e) {
61
61
  onDragging: a,
62
62
  className: s = "",
63
63
  ...o
64
- } = e, [i, c] = S(!1), l = ie(null), u = () => c(!0), d = () => c(!1), _ = (k) => {
64
+ } = e, [i, c] = T(!1), l = ie(null), u = () => c(!0), d = () => c(!1), _ = (k) => {
65
65
  if (r || !i || !l.current) return;
66
- const E = l.current.getBoundingClientRect(), v = k.clientX - E.left, w = Math.min(Math.max(v / E.width * 100, 0), 100);
66
+ const x = l.current.getBoundingClientRect(), v = k.clientX - x.left, w = Math.min(Math.max(v / x.width * 100, 0), 100);
67
67
  t(w);
68
68
  }, h = (k) => {
69
69
  if (r || !l.current) return;
70
- const E = l.current.getBoundingClientRect(), v = k.clientX - E.left, w = Math.min(Math.max(v / E.width * 100, 0), 100);
70
+ const x = l.current.getBoundingClientRect(), v = k.clientX - x.left, w = Math.min(Math.max(v / x.width * 100, 0), 100);
71
71
  t(w);
72
72
  };
73
73
  be(() => (i ? (a && a(!0), document.addEventListener("mousemove", _), document.addEventListener("mouseup", d)) : (a && a(!1), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", d)), () => {
@@ -90,8 +90,8 @@ function es(e) {
90
90
  );
91
91
  }
92
92
  function ts(e) {
93
- var A, T, j, I;
94
- const { onPlayAudio: t, onPauseAudio: n, disabled: r, ...a } = e, [s, o] = Qa(0), [i, c] = S(!1), [l, u] = S(!1), d = ie(null), _ = (A = d.current) == null ? void 0 : A.currentTime, h = (T = d.current) == null ? void 0 : T.duration, m = k(_), g = k(h), y = {
93
+ var A, N, j, I;
94
+ const { onPlayAudio: t, onPauseAudio: n, disabled: r, ...a } = e, [s, o] = Qa(0), [i, c] = T(!1), [l, u] = T(!1), d = ie(null), _ = (A = d.current) == null ? void 0 : A.currentTime, h = (N = d.current) == null ? void 0 : N.duration, m = k(_), g = k(h), y = {
95
95
  totalTime: h,
96
96
  currentTime: _,
97
97
  formattedCurrentTime: m,
@@ -99,10 +99,10 @@ function ts(e) {
99
99
  };
100
100
  function k(b) {
101
101
  if (!b) return "00:00";
102
- const O = Math.floor(b / 60), $ = Math.floor(b % 60), R = String(O).padStart(2, "0"), H = String($).padStart(2, "0");
103
- return `${R}:${H}`;
102
+ const O = Math.floor(b / 60), $ = Math.floor(b % 60), R = String(O).padStart(2, "0"), B = String($).padStart(2, "0");
103
+ return `${R}:${B}`;
104
104
  }
105
- function E() {
105
+ function x() {
106
106
  const b = d.current;
107
107
  b && (e.onPlayAudio && e.onPlayAudio(y), b.play(), c(!0));
108
108
  }
@@ -111,9 +111,9 @@ function ts(e) {
111
111
  b && (e.onPauseAudio && e.onPauseAudio(y), b.pause(), c(!1));
112
112
  }
113
113
  function w() {
114
- i ? v() : E();
114
+ i ? v() : x();
115
115
  }
116
- function z(b) {
116
+ function H(b) {
117
117
  const O = d.current;
118
118
  if (!O) return;
119
119
  const $ = O.duration, R = b / 100 * $;
@@ -123,8 +123,8 @@ function ts(e) {
123
123
  const b = d.current;
124
124
  if (!b) return;
125
125
  const O = () => {
126
- const $ = b.duration, H = b.currentTime / $ * 100;
127
- o(H);
126
+ const $ = b.duration, B = b.currentTime / $ * 100;
127
+ o(B);
128
128
  };
129
129
  return b.addEventListener("timeupdate", O), () => {
130
130
  b.removeEventListener("timeupdate", O);
@@ -148,7 +148,7 @@ function ts(e) {
148
148
  es,
149
149
  {
150
150
  value: s,
151
- onChange: z,
151
+ onChange: H,
152
152
  onDragging: u,
153
153
  disabled: r
154
154
  }
@@ -258,15 +258,15 @@ function Cn(e) {
258
258
  orientation: a = "top",
259
259
  className: s = "",
260
260
  ...o
261
- } = e, i = Me(), c = ie(null), [l, u] = S(a);
261
+ } = e, i = Me(), c = ie(null), [l, u] = T(a);
262
262
  be(() => {
263
263
  const _ = () => {
264
264
  if (!c.current) return;
265
265
  const g = document.getElementById(i);
266
266
  g && (u(a), requestAnimationFrame(() => {
267
- const y = g.getBoundingClientRect(), k = window.innerWidth, E = window.innerHeight;
267
+ const y = g.getBoundingClientRect(), k = window.innerWidth, x = window.innerHeight;
268
268
  let v = a;
269
- a === "left" && y.left < 0 ? v = "right" : a === "right" && y.right > k ? v = "left" : a === "top" && y.top < 0 ? v = "bottom" : a === "bottom" && y.bottom > E && (v = "top"), v === "right" && y.right > k ? v = "left" : v === "left" && y.left < 0 ? v = "right" : v === "bottom" && y.bottom > E ? v = "top" : v === "top" && y.top < 0 && (v = "bottom"), u(v);
269
+ a === "left" && y.left < 0 ? v = "right" : a === "right" && y.right > k ? v = "left" : a === "top" && y.top < 0 ? v = "bottom" : a === "bottom" && y.bottom > x && (v = "top"), v === "right" && y.right > k ? v = "left" : v === "left" && y.left < 0 ? v = "right" : v === "bottom" && y.bottom > x ? v = "top" : v === "top" && y.top < 0 && (v = "bottom"), u(v);
270
270
  }));
271
271
  }, h = c.current;
272
272
  if (!h) return;
@@ -398,32 +398,32 @@ function xc(e) {
398
398
  defaultValue: _ = "",
399
399
  showAsterisk: h = !1,
400
400
  disabled: m = !1
401
- } = e, { fieldErrors: g } = xe(), y = g == null ? void 0 : g[t], [k, E] = S(_), [v, w] = S(""), [z, A] = S(null), [T, j] = S(_), [I, b] = S(!1);
402
- async function O(N) {
401
+ } = e, { fieldErrors: g } = xe(), y = g == null ? void 0 : g[t], [k, x] = T(_), [v, w] = T(""), [H, A] = T(null), [N, j] = T(_), [I, b] = T(!1);
402
+ async function O(F) {
403
403
  if (m) return;
404
- b(!0), A(N), w("");
404
+ b(!0), A(F), w("");
405
405
  const Y = new FormData();
406
- Y.append(r, N), await fetch(d, { method: a, body: Y }).then(async (x) => await x.json()).then((x) => {
407
- x != null && x.error ? w(x.error) : E(x == null ? void 0 : x[o]), s && s(x == null ? void 0 : x[o]);
408
- }).catch((x) => {
409
- console.error(x), w("Erro ao enviar audio");
406
+ Y.append(r, F), await fetch(d, { method: a, body: Y }).then(async (E) => await E.json()).then((E) => {
407
+ E != null && E.error ? w(E.error) : x(E == null ? void 0 : E[o]), s && s(E == null ? void 0 : E[o]);
408
+ }).catch((E) => {
409
+ console.error(E), w("Erro ao enviar audio");
410
410
  }).finally(() => b(!1));
411
411
  }
412
- function $(N) {
412
+ function $(F) {
413
413
  if (!m) {
414
- if (N.type.indexOf("audio") === -1) {
414
+ if (F.type.indexOf("audio") === -1) {
415
415
  w("O arquivo selecionado não é um arquivo de áudio");
416
416
  return;
417
417
  }
418
- j(URL.createObjectURL(N)), O(N);
418
+ j(URL.createObjectURL(F)), O(F);
419
419
  }
420
420
  }
421
421
  const R = y || v;
422
422
  return /* @__PURE__ */ C(ve, { children: [
423
423
  n && /* @__PURE__ */ f(ye, { showAsterisk: h, children: n }),
424
- /* @__PURE__ */ C("div", { className: `arkynAudioUpload ${R ? "hasError" : "noHasError"} ${T ? "hasAudio" : "noHasAudio"}`, children: [
424
+ /* @__PURE__ */ C("div", { className: `arkynAudioUpload ${R ? "hasError" : "noHasError"} ${N ? "hasAudio" : "noHasAudio"}`, children: [
425
425
  /* @__PURE__ */ f("input", { type: "hidden", name: t, value: k || "" }),
426
- !T && /* @__PURE__ */ f(
426
+ !N && /* @__PURE__ */ f(
427
427
  rs,
428
428
  {
429
429
  disabled: m,
@@ -434,16 +434,16 @@ function xc(e) {
434
434
  selectAudioButtonText: i
435
435
  }
436
436
  ),
437
- T && /* @__PURE__ */ f(
437
+ N && /* @__PURE__ */ f(
438
438
  ns,
439
439
  {
440
- filePath: T,
440
+ filePath: N,
441
441
  acceptAudio: u,
442
442
  changeAudioButtonText: l,
443
443
  disabled: m,
444
444
  handleSelectFile: $,
445
445
  isLoading: I,
446
- reSendAudio: R && z ? () => O(z) : void 0
446
+ reSendAudio: R && H ? () => O(H) : void 0
447
447
  }
448
448
  )
449
449
  ] }),
@@ -506,7 +506,7 @@ function Nc(e) {
506
506
  disabled: a = !1,
507
507
  className: s,
508
508
  ...o
509
- } = e, [i, c] = S(r || ""), l = `arkynCardTabContainer ${s || ""}`;
509
+ } = e, [i, c] = T(r || ""), l = `arkynCardTabContainer ${s || ""}`;
510
510
  function u(d) {
511
511
  c(d), n && n(d);
512
512
  }
@@ -534,19 +534,19 @@ function Fc(e) {
534
534
  orientation: u = "horizontalReverse",
535
535
  value: d,
536
536
  ..._
537
- } = e, { fieldErrors: h } = xe(), m = ie(null), g = t || Me(), y = s || (h == null ? void 0 : h[n]), k = !!y, [E, v] = S(o || !1), w = typeof c == "boolean" ? c : E, T = `arkynCheckbox ${a} ${k ? "errorTrue" : "errorFalse"} ${w ? "checkedTrue" : "checkedFalse"} ${r}`;
537
+ } = e, { fieldErrors: h } = xe(), m = ie(null), g = t || Me(), y = s || (h == null ? void 0 : h[n]), k = !!y, [x, v] = T(o || !1), w = typeof c == "boolean" ? c : x, N = `arkynCheckbox ${a} ${k ? "errorTrue" : "errorFalse"} ${w ? "checkedTrue" : "checkedFalse"} ${r}`;
538
538
  function j() {
539
- const I = E;
539
+ const I = x;
540
540
  v(!I), l && l(I ? "" : d || "checked");
541
541
  }
542
542
  return /* @__PURE__ */ C(ve, { orientation: u, children: [
543
- i && /* @__PURE__ */ f(ye, { children: i }),
543
+ i && /* @__PURE__ */ f(ye, { htmlFor: g, children: i }),
544
544
  /* @__PURE__ */ C(
545
545
  "button",
546
546
  {
547
547
  id: g,
548
548
  type: "button",
549
- className: T,
549
+ className: N,
550
550
  onClick: j,
551
551
  ..._,
552
552
  children: [
@@ -2597,20 +2597,20 @@ function Tc(e) {
2597
2597
  isLoading: g = !1,
2598
2598
  leftIcon: y,
2599
2599
  readOnly: k,
2600
- onFocus: E,
2600
+ onFocus: x,
2601
2601
  onBlur: v,
2602
2602
  errorMessage: w,
2603
- showAsterisk: z,
2603
+ showAsterisk: H,
2604
2604
  rightIcon: A,
2605
- size: T = "md",
2605
+ size: N = "md",
2606
2606
  id: j,
2607
2607
  ...I
2608
- } = e, { fieldErrors: b } = xe(), [O, $] = S(!1), [R, H] = S("0"), M = ie(null), B = j || Me(), N = w || (b == null ? void 0 : b[t]), Y = !!N, x = n || g, X = { md: 20, lg: 20 }[T], Z = A ? "right" : "left", he = Z === "left" && g, ce = Z === "right" && g;
2608
+ } = e, { fieldErrors: b } = xe(), [O, $] = T(!1), [R, B] = T("0"), M = ie(null), z = j || Me(), F = w || (b == null ? void 0 : b[t]), Y = !!F, E = n || g, X = { md: 20, lg: 20 }[N], Z = A ? "right" : "left", he = Z === "left" && g, ce = Z === "right" && g;
2609
2609
  function se() {
2610
- x || !(M != null && M.current) || ($(!0), M.current.focus());
2610
+ E || !(M != null && M.current) || ($(!0), M.current.focus());
2611
2611
  }
2612
2612
  function te(ue) {
2613
- $(!0), E && E(ue);
2613
+ $(!0), x && x(ue);
2614
2614
  }
2615
2615
  function L(ue) {
2616
2616
  $(!1), v && v(ue);
@@ -2620,7 +2620,7 @@ function Tc(e) {
2620
2620
  ue,
2621
2621
  d
2622
2622
  );
2623
- return !u || Le <= u ? (H(Ve), [Le, Ve]) : Yt(ue, d);
2623
+ return !u || Le <= u ? (B(Ve), [Le, Ve]) : Yt(ue, d);
2624
2624
  }, Te = (ue) => {
2625
2625
  ue.preventDefault();
2626
2626
  const [Le, Ve] = ne(ue.target.value);
@@ -2628,11 +2628,11 @@ function Tc(e) {
2628
2628
  };
2629
2629
  be(() => {
2630
2630
  const ue = c || +l || void 0, [, Le] = Yt(ue, d);
2631
- H(Le);
2631
+ B(Le);
2632
2632
  }, [d, l, c]);
2633
- const qt = `arkynCurrencyInput ${h ? "hasPrefix" : ""} ${m ? "hasSuffix" : ""} ${s} ${T} ${x || k || g ? "opacity" : ""} ${Y ? "errored" : ""} ${O ? "focused" : ""} ${i}`;
2633
+ const qt = `arkynCurrencyInput ${h ? "hasPrefix" : ""} ${m ? "hasSuffix" : ""} ${s} ${N} ${E || k || g ? "opacity" : ""} ${Y ? "errored" : ""} ${O ? "focused" : ""} ${i}`;
2634
2634
  return /* @__PURE__ */ C(ve, { children: [
2635
- o && /* @__PURE__ */ f(ye, { showAsterisk: z, htmlFor: B, children: o }),
2635
+ o && /* @__PURE__ */ f(ye, { showAsterisk: H, htmlFor: z, children: o }),
2636
2636
  /* @__PURE__ */ C(
2637
2637
  "section",
2638
2638
  {
@@ -2655,15 +2655,15 @@ function Tc(e) {
2655
2655
  /* @__PURE__ */ f(
2656
2656
  "input",
2657
2657
  {
2658
- disabled: x,
2658
+ disabled: E,
2659
2659
  readOnly: k,
2660
2660
  ref: M,
2661
2661
  onFocus: te,
2662
2662
  onBlur: L,
2663
2663
  onChange: Te,
2664
- id: B,
2665
- placeholder: x ? R : void 0,
2666
- value: x ? void 0 : R,
2664
+ id: z,
2665
+ placeholder: E ? R : void 0,
2666
+ value: E ? void 0 : R,
2667
2667
  ...I
2668
2668
  }
2669
2669
  ),
@@ -2690,7 +2690,7 @@ function Tc(e) {
2690
2690
  ]
2691
2691
  }
2692
2692
  ),
2693
- N && /* @__PURE__ */ f(Ee, { children: N })
2693
+ F && /* @__PURE__ */ f(Ee, { children: F })
2694
2694
  ] });
2695
2695
  }
2696
2696
  function us() {
@@ -2887,21 +2887,21 @@ function Ac(e) {
2887
2887
  dropFileText: d = "Ou arraste e solte o arquivo aqui",
2888
2888
  onChange: _,
2889
2889
  disabled: h = !1
2890
- } = e, { fieldErrors: m } = xe(), g = m == null ? void 0 : m[t], [y, k] = S(""), [E, v] = S(""), [w, z] = S(null), [A, T] = S(!1);
2891
- async function j(H) {
2890
+ } = e, { fieldErrors: m } = xe(), g = m == null ? void 0 : m[t], [y, k] = T(""), [x, v] = T(""), [w, H] = T(null), [A, N] = T(!1);
2891
+ async function j(B) {
2892
2892
  if (h) return;
2893
- T(!0), z(H), v("");
2893
+ N(!0), H(B), v("");
2894
2894
  const M = new FormData();
2895
- M.append(s, H), await fetch(a, { method: o, body: M }).then(async (B) => await B.json()).then((B) => {
2896
- B != null && B.error ? v(B.error) : k(B == null ? void 0 : B[c]), _ && _(B == null ? void 0 : B[c]);
2897
- }).catch((B) => {
2898
- console.error(B), v("Erro ao enviar o arquivo");
2899
- }).finally(() => T(!1));
2895
+ M.append(s, B), await fetch(a, { method: o, body: M }).then(async (z) => await z.json()).then((z) => {
2896
+ z != null && z.error ? v(z.error) : k(z == null ? void 0 : z[c]), _ && _(z == null ? void 0 : z[c]);
2897
+ }).catch((z) => {
2898
+ console.error(z), v("Erro ao enviar o arquivo");
2899
+ }).finally(() => N(!1));
2900
2900
  }
2901
- function I(H) {
2902
- h || j(H);
2901
+ function I(B) {
2902
+ h || j(B);
2903
2903
  }
2904
- const b = g || E;
2904
+ const b = g || x;
2905
2905
  return /* @__PURE__ */ C(ve, { children: [
2906
2906
  n && /* @__PURE__ */ f(ye, { showAsterisk: r, children: n }),
2907
2907
  /* @__PURE__ */ C("div", { className: `arkynFileUpload ${b ? "hasError" : "noHasError"} ${w ? "hasFile" : "noHasFile"}`, children: [
@@ -3044,26 +3044,26 @@ function Ic(e) {
3044
3044
  dropImageText: _ = "Ou arraste e solte a imagem aqui",
3045
3045
  onChange: h,
3046
3046
  disabled: m = !1
3047
- } = e, { fieldErrors: g } = xe(), y = g == null ? void 0 : g[t], [k, E] = S(n), [v, w] = S(""), [z, A] = S(null), [T, j] = S(n), [I, b] = S(!1);
3048
- async function O(N) {
3047
+ } = e, { fieldErrors: g } = xe(), y = g == null ? void 0 : g[t], [k, x] = T(n), [v, w] = T(""), [H, A] = T(null), [N, j] = T(n), [I, b] = T(!1);
3048
+ async function O(F) {
3049
3049
  if (m) return;
3050
- b(!0), A(N), w("");
3050
+ b(!0), A(F), w("");
3051
3051
  const Y = new FormData();
3052
- Y.append(o, N), await fetch(s, { method: i, body: Y }).then(async (x) => await x.json()).then((x) => {
3053
- x != null && x.error ? w(x.error) : E(x == null ? void 0 : x[l]), h && h(x == null ? void 0 : x[l]);
3054
- }).catch((x) => {
3055
- console.error(x), w("Erro ao enviar imagem");
3052
+ Y.append(o, F), await fetch(s, { method: i, body: Y }).then(async (E) => await E.json()).then((E) => {
3053
+ E != null && E.error ? w(E.error) : x(E == null ? void 0 : E[l]), h && h(E == null ? void 0 : E[l]);
3054
+ }).catch((E) => {
3055
+ console.error(E), w("Erro ao enviar imagem");
3056
3056
  }).finally(() => b(!1));
3057
3057
  }
3058
- function $(N) {
3059
- m || (j(URL.createObjectURL(N)), O(N));
3058
+ function $(F) {
3059
+ m || (j(URL.createObjectURL(F)), O(F));
3060
3060
  }
3061
3061
  const R = y || v;
3062
3062
  return /* @__PURE__ */ C(ve, { children: [
3063
3063
  r && /* @__PURE__ */ f(ye, { showAsterisk: a, children: r }),
3064
- /* @__PURE__ */ C("div", { className: `arkynImageUpload ${R ? "hasError" : "noHasError"} ${T ? "hasImage" : "noHasImage"}`, children: [
3064
+ /* @__PURE__ */ C("div", { className: `arkynImageUpload ${R ? "hasError" : "noHasError"} ${N ? "hasImage" : "noHasImage"}`, children: [
3065
3065
  /* @__PURE__ */ f("input", { type: "hidden", name: t, value: k || "" }),
3066
- !T && /* @__PURE__ */ f(
3066
+ !N && /* @__PURE__ */ f(
3067
3067
  hs,
3068
3068
  {
3069
3069
  disabled: m,
@@ -3074,16 +3074,16 @@ function Ic(e) {
3074
3074
  selectImageButtonText: d
3075
3075
  }
3076
3076
  ),
3077
- T && /* @__PURE__ */ f(
3077
+ N && /* @__PURE__ */ f(
3078
3078
  gs,
3079
3079
  {
3080
3080
  disabled: m,
3081
3081
  isLoading: I,
3082
3082
  acceptImage: c,
3083
- filePath: T,
3083
+ filePath: N,
3084
3084
  handleSelectFile: $,
3085
3085
  changeImageButtonText: u,
3086
- reSendImage: R && z ? () => O(z) : void 0
3086
+ reSendImage: R && H ? () => O(H) : void 0
3087
3087
  }
3088
3088
  )
3089
3089
  ] }),
@@ -3109,13 +3109,13 @@ function ps(e) {
3109
3109
  errorMessage: g,
3110
3110
  showAsterisk: y,
3111
3111
  rightIcon: k,
3112
- type: E = "text",
3112
+ type: x = "text",
3113
3113
  size: v = "md",
3114
3114
  id: w,
3115
- value: z,
3115
+ value: H,
3116
3116
  placeholder: A,
3117
- ...T
3118
- } = e, { fieldErrors: j } = xe(), [I, b] = S(!1), O = ie(null), $ = w || Me(), R = g || (j == null ? void 0 : j[t]), H = !!R, M = n || u, N = { md: 20, lg: 20 }[v], Y = k ? "right" : "left", x = Y === "left" && u, _e = Y === "right" && u;
3117
+ ...N
3118
+ } = e, { fieldErrors: j } = xe(), [I, b] = T(!1), O = ie(null), $ = w || Me(), R = g || (j == null ? void 0 : j[t]), B = !!R, M = n || u, F = { md: 20, lg: 20 }[v], Y = k ? "right" : "left", E = Y === "left" && u, _e = Y === "right" && u;
3119
3119
  function X() {
3120
3120
  M || !(O != null && O.current) || (b(!0), O.current.focus());
3121
3121
  }
@@ -3125,7 +3125,7 @@ function ps(e) {
3125
3125
  function he(ke) {
3126
3126
  b(!1), m && m(ke);
3127
3127
  }
3128
- if (E === "hidden")
3128
+ if (x === "hidden")
3129
3129
  return /* @__PURE__ */ f(
3130
3130
  "input",
3131
3131
  {
@@ -3133,10 +3133,10 @@ function ps(e) {
3133
3133
  readOnly: !0,
3134
3134
  type: "text",
3135
3135
  ref: O,
3136
- ...T
3136
+ ...N
3137
3137
  }
3138
3138
  );
3139
- const De = `arkynInput ${c ? "hasPrefix" : ""} ${n ? "disabled" : ""} ${l ? "hasSuffix" : ""} ${s} ${v} ${M || _ || u ? "opacity" : ""} ${H ? "errored" : ""} ${I ? "focused" : ""} ${i}`;
3139
+ const De = `arkynInput ${c ? "hasPrefix" : ""} ${n ? "disabled" : ""} ${l ? "hasSuffix" : ""} ${s} ${v} ${M || _ || u ? "opacity" : ""} ${B ? "errored" : ""} ${I ? "focused" : ""} ${i}`;
3140
3140
  return /* @__PURE__ */ C(ve, { children: [
3141
3141
  o && /* @__PURE__ */ f(ye, { showAsterisk: y, htmlFor: $, children: o }),
3142
3142
  /* @__PURE__ */ C(
@@ -3147,17 +3147,17 @@ function ps(e) {
3147
3147
  onClick: X,
3148
3148
  className: De,
3149
3149
  children: [
3150
- /* @__PURE__ */ f(K, { iconSize: N, icon: c, className: "prefix" }),
3150
+ /* @__PURE__ */ f(K, { iconSize: F, icon: c, className: "prefix" }),
3151
3151
  /* @__PURE__ */ f(
3152
3152
  K,
3153
3153
  {
3154
- show: x,
3155
- iconSize: N,
3154
+ show: E,
3155
+ iconSize: F,
3156
3156
  className: "spinner",
3157
3157
  icon: Ae
3158
3158
  }
3159
3159
  ),
3160
- /* @__PURE__ */ f(K, { show: !u, icon: d, iconSize: N }),
3160
+ /* @__PURE__ */ f(K, { show: !u, icon: d, iconSize: F }),
3161
3161
  /* @__PURE__ */ f(
3162
3162
  "input",
3163
3163
  {
@@ -3166,25 +3166,25 @@ function ps(e) {
3166
3166
  ref: O,
3167
3167
  onFocus: Z,
3168
3168
  onBlur: he,
3169
- type: E,
3169
+ type: x,
3170
3170
  id: $,
3171
3171
  name: t,
3172
- placeholder: M && z || A,
3173
- value: M ? void 0 : z,
3174
- ...T
3172
+ placeholder: M && H || A,
3173
+ value: M ? void 0 : H,
3174
+ ...N
3175
3175
  }
3176
3176
  ),
3177
- /* @__PURE__ */ f(K, { show: !u, icon: k, iconSize: N }),
3177
+ /* @__PURE__ */ f(K, { show: !u, icon: k, iconSize: F }),
3178
3178
  /* @__PURE__ */ f(
3179
3179
  K,
3180
3180
  {
3181
3181
  show: _e,
3182
- iconSize: N,
3182
+ iconSize: F,
3183
3183
  className: "spinner",
3184
3184
  icon: Ae
3185
3185
  }
3186
3186
  ),
3187
- /* @__PURE__ */ f(K, { iconSize: N, icon: l, className: "suffix" })
3187
+ /* @__PURE__ */ f(K, { iconSize: F, icon: l, className: "suffix" })
3188
3188
  ]
3189
3189
  }
3190
3190
  ),
@@ -3211,29 +3211,29 @@ function Rc(e) {
3211
3211
  leftIcon: g,
3212
3212
  readOnly: y,
3213
3213
  onFocus: k,
3214
- onBlur: E,
3214
+ onBlur: x,
3215
3215
  errorMessage: v,
3216
3216
  defaultValue: w,
3217
- showAsterisk: z,
3217
+ showAsterisk: H,
3218
3218
  rightIcon: A,
3219
- size: T = "md",
3219
+ size: N = "md",
3220
3220
  id: j,
3221
3221
  value: I,
3222
3222
  placeholder: b,
3223
3223
  ...O
3224
- } = e, { fieldErrors: $ } = xe(), [R, H] = S(!1), M = ie(null), B = j || Me(), N = v || ($ == null ? void 0 : $[t]), Y = !!N, x = n || m, X = { md: 20, lg: 20 }[T], Z = A ? "right" : "left", he = Z === "left" && m, ce = Z === "right" && m;
3224
+ } = e, { fieldErrors: $ } = xe(), [R, B] = T(!1), M = ie(null), z = j || Me(), F = v || ($ == null ? void 0 : $[t]), Y = !!F, E = n || m, X = { md: 20, lg: 20 }[N], Z = A ? "right" : "left", he = Z === "left" && m, ce = Z === "right" && m;
3225
3225
  function se() {
3226
- x || !(M != null && M.current) || (H(!0), M.current.focus());
3226
+ E || !(M != null && M.current) || (B(!0), M.current.focus());
3227
3227
  }
3228
3228
  function te($e) {
3229
- H(!0), k && k($e);
3229
+ B(!0), k && k($e);
3230
3230
  }
3231
3231
  function L($e) {
3232
- H(!1), E && E($e);
3232
+ B(!1), x && x($e);
3233
3233
  }
3234
- const re = `arkynMaskedInput ${_ ? "hasPrefix" : ""} ${h ? "hasSuffix" : ""} ${s} ${T} ${x || y || m ? "opacity" : ""} ${Y ? "errored" : ""} ${R ? "focused" : ""} ${d}`;
3234
+ const re = `arkynMaskedInput ${_ ? "hasPrefix" : ""} ${h ? "hasSuffix" : ""} ${s} ${N} ${E || y || m ? "opacity" : ""} ${Y ? "errored" : ""} ${R ? "focused" : ""} ${d}`;
3235
3235
  return /* @__PURE__ */ C(ve, { children: [
3236
- u && /* @__PURE__ */ f(ye, { showAsterisk: z, htmlFor: B, children: u }),
3236
+ u && /* @__PURE__ */ f(ye, { showAsterisk: H, htmlFor: z, children: u }),
3237
3237
  /* @__PURE__ */ C(
3238
3238
  "section",
3239
3239
  {
@@ -3264,12 +3264,12 @@ function Rc(e) {
3264
3264
  ref: M,
3265
3265
  onFocus: te,
3266
3266
  onBlur: L,
3267
- disabled: x,
3267
+ disabled: E,
3268
3268
  readOnly: y,
3269
- id: B,
3269
+ id: z,
3270
3270
  name: t,
3271
- placeholder: x && I || b,
3272
- value: x ? void 0 : I,
3271
+ placeholder: E && I || b,
3272
+ value: E ? void 0 : I,
3273
3273
  ...O
3274
3274
  }
3275
3275
  ),
@@ -3287,7 +3287,7 @@ function Rc(e) {
3287
3287
  ]
3288
3288
  }
3289
3289
  ),
3290
- N && /* @__PURE__ */ f(Ee, { children: N })
3290
+ F && /* @__PURE__ */ f(Ee, { children: F })
3291
3291
  ] });
3292
3292
  }
3293
3293
  const Lr = Se({});
@@ -3416,7 +3416,7 @@ function ws(e) {
3416
3416
  ] });
3417
3417
  }
3418
3418
  function Ns(e) {
3419
- const { children: t, isFocused: n, isSearchable: r, search: a, onSearch: s } = e, o = ie(null), [i, c] = S("bottom");
3419
+ const { children: t, isFocused: n, isSearchable: r, search: a, onSearch: s } = e, o = ie(null), [i, c] = T("bottom");
3420
3420
  yt(n), be(() => {
3421
3421
  if (!n) return;
3422
3422
  (() => {
@@ -3486,15 +3486,15 @@ function Lc(e) {
3486
3486
  leftIcon: g,
3487
3487
  onSearch: y,
3488
3488
  onChange: k,
3489
- onBlur: E,
3489
+ onBlur: x,
3490
3490
  notFoundText: v = "Sem opções disponíveis",
3491
3491
  onFocus: w,
3492
- disabled: z = !1,
3492
+ disabled: H = !1,
3493
3493
  prefix: A,
3494
- size: T = "md",
3494
+ size: N = "md",
3495
3495
  value: j,
3496
3496
  variant: I = "solid"
3497
- } = e, { fieldErrors: b } = xe(), O = ie(null), $ = d || Me(), R = i || (b == null ? void 0 : b[t]), H = !!R, M = z || c || l, N = { md: 20, lg: 20 }[T], [Y, x] = S(""), [_e, X] = S(!1), [Z, he] = S(o), ce = j || Z;
3497
+ } = e, { fieldErrors: b } = xe(), O = ie(null), $ = d || Me(), R = i || (b == null ? void 0 : b[t]), B = !!R, M = H || c || l, F = { md: 20, lg: 20 }[N], [Y, E] = T(""), [_e, X] = T(!1), [Z, he] = T(o), ce = j || Z;
3498
3498
  function se(G) {
3499
3499
  return ce.includes(G);
3500
3500
  }
@@ -3506,10 +3506,10 @@ function Lc(e) {
3506
3506
  M || !(O != null && O.current) || _e || (X(!0), O.current.focus(), w && w());
3507
3507
  }
3508
3508
  function ne() {
3509
- X(!1), E && O.current && O.current.blur();
3509
+ X(!1), x && O.current && O.current.blur();
3510
3510
  }
3511
3511
  function Te(G) {
3512
- x(G), y && y(G);
3512
+ E(G), y && y(G);
3513
3513
  }
3514
3514
  function De(G) {
3515
3515
  se(G) ? (he(Z.filter((re) => re !== G)), k && k(Z.filter((re) => re !== G))) : (he([...Z, G]), k && k([...Z, G])), s && ne();
@@ -3522,11 +3522,11 @@ function Lc(e) {
3522
3522
  {
3523
3523
  handleContainerFocus: L,
3524
3524
  disabled: M,
3525
- isError: H,
3525
+ isError: B,
3526
3526
  isFocused: _e,
3527
3527
  isLoading: c,
3528
3528
  readOnly: l,
3529
- size: T,
3529
+ size: N,
3530
3530
  variant: I,
3531
3531
  className: r,
3532
3532
  prefixExists: !!A,
@@ -3541,9 +3541,9 @@ function Lc(e) {
3541
3541
  type: "hidden"
3542
3542
  }
3543
3543
  ),
3544
- /* @__PURE__ */ f(K, { iconSize: N, icon: A, className: "prefix" }),
3545
- g && /* @__PURE__ */ f(g, { size: N, strokeWidth: 2.5 }),
3546
- /* @__PURE__ */ C(xs, { size: T, children: [
3544
+ /* @__PURE__ */ f(K, { iconSize: F, icon: A, className: "prefix" }),
3545
+ g && /* @__PURE__ */ f(g, { size: F, strokeWidth: 2.5 }),
3546
+ /* @__PURE__ */ C(xs, { size: N, children: [
3547
3547
  ce.map((G) => /* @__PURE__ */ f(
3548
3548
  Es,
3549
3549
  {
@@ -3569,7 +3569,7 @@ function Lc(e) {
3569
3569
  {
3570
3570
  label: G,
3571
3571
  value: re,
3572
- size: T,
3572
+ size: N,
3573
3573
  handleChangeValue: De,
3574
3574
  optionHasSelected: se
3575
3575
  },
@@ -3585,11 +3585,11 @@ function Lc(e) {
3585
3585
  disabled: M,
3586
3586
  isFocused: _e,
3587
3587
  readOnly: l,
3588
- iconSize: N,
3588
+ iconSize: F,
3589
3589
  isLoading: c
3590
3590
  }
3591
3591
  ),
3592
- /* @__PURE__ */ f(Ss, { iconSize: N, isLoading: c }),
3592
+ /* @__PURE__ */ f(Ss, { iconSize: F, isLoading: c }),
3593
3593
  /* @__PURE__ */ f(Fs, { handleBlur: ne, isFocused: _e })
3594
3594
  ]
3595
3595
  }
@@ -3673,10 +3673,9 @@ function As(e) {
3673
3673
  className: i = "",
3674
3674
  readOnly: c,
3675
3675
  variant: l,
3676
- size: u,
3677
- id: d
3678
- } = e, g = `arkynPhoneInputContainer ${l} ${u} ${r || c || s ? "opacity" : ""} ${a ? "errored" : ""} ${o ? "focused" : ""} ${i}`;
3679
- return /* @__PURE__ */ f("section", { id: d, className: g.trim(), onClick: n, children: t });
3676
+ size: u
3677
+ } = e, m = `arkynPhoneInputContainer ${l} ${u} ${r || c || s ? "opacity" : ""} ${a ? "errored" : ""} ${o ? "focused" : ""} ${i}`;
3678
+ return /* @__PURE__ */ f("section", { className: m.trim(), onClick: n, children: t });
3680
3679
  }
3681
3680
  function Is(e) {
3682
3681
  const { isOpen: t, onClick: n } = e;
@@ -3693,7 +3692,7 @@ function Rs(e) {
3693
3692
  ] });
3694
3693
  }
3695
3694
  function Ms(e) {
3696
- const { children: t, isOpen: n, onSearch: r, search: a, placeholder: s } = e, o = ie(null), [i, c] = S("bottom");
3695
+ const { children: t, isOpen: n, onSearch: r, search: a, placeholder: s } = e, o = ie(null), [i, c] = T("bottom");
3697
3696
  function l(u) {
3698
3697
  r(u.target.value);
3699
3698
  }
@@ -3754,23 +3753,25 @@ const $s = gn((e, t) => /* @__PURE__ */ f("input", { ref: t, ...e })), Ls = gn(
3754
3753
  onChange: o,
3755
3754
  value: i,
3756
3755
  currentCountry: c,
3757
- disabled: l
3758
- } = e, [u, d] = S(!1);
3756
+ disabled: l,
3757
+ id: u
3758
+ } = e, [d, _] = T(!1);
3759
3759
  be(() => {
3760
- u ? o(c.mask) : d(!0);
3760
+ d ? o(c.mask) : _(!0);
3761
3761
  }, [c]);
3762
- const _ = `phoneInputMask ${s}`;
3763
- function h(m) {
3764
- let g = bn(m.target.value);
3765
- const y = Br(g);
3766
- g.length > zr || (g = jr(g, xn[y]), m.target.value = g, o(g));
3762
+ const h = `phoneInputMask ${s}`;
3763
+ function m(g) {
3764
+ let y = bn(g.target.value);
3765
+ const k = Br(y);
3766
+ y.length > zr || (y = jr(y, xn[k]), g.target.value = y, o(y));
3767
3767
  }
3768
3768
  return c.code === "+55" ? /* @__PURE__ */ f(
3769
3769
  "input",
3770
3770
  {
3771
+ id: u,
3771
3772
  value: i,
3772
- onChange: h,
3773
- className: _,
3773
+ onChange: m,
3774
+ className: h,
3774
3775
  onFocus: n,
3775
3776
  onBlur: a,
3776
3777
  disabled: l,
@@ -3779,10 +3780,11 @@ const $s = gn((e, t) => /* @__PURE__ */ f("input", { ref: t, ...e })), Ls = gn(
3779
3780
  ) : /* @__PURE__ */ f(
3780
3781
  Ar,
3781
3782
  {
3783
+ id: u,
3782
3784
  value: i,
3783
3785
  readOnly: r,
3784
- onChange: (m) => o(m.target.value),
3785
- className: _,
3786
+ onChange: (g) => o(g.target.value),
3787
+ className: h,
3786
3788
  component: $s,
3787
3789
  onFocus: n,
3788
3790
  onBlur: a,
@@ -3813,19 +3815,19 @@ function jc(e) {
3813
3815
  searchCountryPlaceholder: m = "Pesquisar país",
3814
3816
  notFoundCountryText: g = "Nenhum país encontrado",
3815
3817
  id: y
3816
- } = e, k = Ps(l), [E, v] = S(!1), [w, z] = S(""), [A, T] = S(!1), [j, I] = S(k.formattedNumber || ""), [b, O] = S(() => {
3818
+ } = e, k = Ps(l), [x, v] = T(!1), [w, H] = T(""), [A, N] = T(!1), [j, I] = T(k.formattedNumber || ""), [b, O] = T(() => {
3817
3819
  if (k.country) return k.country;
3818
3820
  const L = rt.find((ne) => ne.iso === t);
3819
3821
  return L || rt[30];
3820
- }), { fieldErrors: $ } = xe(), R = ie(null), H = y || Me(), M = s || ($ == null ? void 0 : $[_]), B = !!M, N = a || o, Y = ie(null);
3821
- function x() {
3822
- N || E || A || (v(!0), Y.current && Y.current.focus());
3822
+ }), { fieldErrors: $ } = xe(), R = ie(null), B = y || Me(), M = s || ($ == null ? void 0 : $[_]), z = !!M, F = a || o, Y = ie(null);
3823
+ function E() {
3824
+ F || x || A || (v(!0), Y.current && Y.current.focus());
3823
3825
  }
3824
3826
  function _e() {
3825
- T(!0), v(!0);
3827
+ N(!0), v(!0);
3826
3828
  }
3827
3829
  function X() {
3828
- T(!1), v(!1);
3830
+ N(!1), v(!1);
3829
3831
  }
3830
3832
  function Z() {
3831
3833
  v(!0);
@@ -3844,20 +3846,19 @@ function jc(e) {
3844
3846
  return b.prefix && (ne += `-${b.prefix}`), ne += " ", ne += se(L || j), ne;
3845
3847
  }
3846
3848
  return /* @__PURE__ */ C(ve, { children: [
3847
- n && /* @__PURE__ */ f(ye, { showAsterisk: d, children: n }),
3849
+ n && /* @__PURE__ */ f(ye, { htmlFor: B, showAsterisk: d, children: n }),
3848
3850
  /* @__PURE__ */ C(
3849
3851
  As,
3850
3852
  {
3851
- id: H,
3852
- disabled: N,
3853
- isError: B,
3853
+ disabled: F,
3854
+ isError: z,
3854
3855
  isLoading: o,
3855
- isFocused: E,
3856
+ isFocused: x,
3856
3857
  readOnly: i,
3857
3858
  size: c,
3858
3859
  variant: u,
3859
3860
  className: r,
3860
- onFocus: x,
3861
+ onFocus: E,
3861
3862
  children: [
3862
3863
  /* @__PURE__ */ f(
3863
3864
  Ds,
@@ -3870,17 +3871,17 @@ function jc(e) {
3870
3871
  /* @__PURE__ */ C(
3871
3872
  Ms,
3872
3873
  {
3873
- isOpen: N || i ? !1 : A,
3874
+ isOpen: F || i ? !1 : A,
3874
3875
  search: w,
3875
3876
  placeholder: m,
3876
- onSearch: z,
3877
+ onSearch: H,
3877
3878
  children: [
3878
3879
  rt.filter((L) => ce(L)).map((L) => /* @__PURE__ */ f(
3879
3880
  Rs,
3880
3881
  {
3881
3882
  country: L,
3882
3883
  handleChangeValue: () => {
3883
- O(L), T(!1), I(L.mask);
3884
+ O(L), N(!1), I(L.mask);
3884
3885
  },
3885
3886
  isActive: L.iso === b.iso,
3886
3887
  size: c
@@ -3894,18 +3895,19 @@ function jc(e) {
3894
3895
  /* @__PURE__ */ f(
3895
3896
  Is,
3896
3897
  {
3897
- isOpen: N || i ? !1 : A,
3898
+ isOpen: F || i ? !1 : A,
3898
3899
  onClick: X
3899
3900
  }
3900
3901
  ),
3901
3902
  /* @__PURE__ */ f(
3902
3903
  Ls,
3903
3904
  {
3905
+ id: B,
3904
3906
  ref: Y,
3905
3907
  readonly: i,
3906
3908
  currentCountry: b,
3907
3909
  value: j,
3908
- disabled: N,
3910
+ disabled: F,
3909
3911
  onBlur: he,
3910
3912
  onFocus: Z,
3911
3913
  size: c,
@@ -3936,7 +3938,7 @@ function Bc(e) {
3936
3938
  closeOnClick: r,
3937
3939
  className: a = "",
3938
3940
  orientation: s = "bottomLeft"
3939
- } = e, [o, i] = S(!1), l = `arkynPopover ${s} ${o ? "visibleTrue" : "visibleFalse"} ${a}`;
3941
+ } = e, [o, i] = T(!1), l = `arkynPopover ${s} ${o ? "visibleTrue" : "visibleFalse"} ${a}`;
3940
3942
  function u() {
3941
3943
  o || i(!0);
3942
3944
  }
@@ -3989,11 +3991,11 @@ function zc(e) {
3989
3991
  isError: _,
3990
3992
  disabled: h
3991
3993
  } = Bs(), m = d === t, g = n || u, y = r || h, w = `arkynRadioBox ${g} ${m ? "checkedTrue" : "checkedFalse"} ${_ ? "errorTrue" : "errorFalse"} ${y ? "disabledTrue" : "disabledFalse"} ${s}`;
3992
- function z(T) {
3993
- o && o(T), l(t);
3994
+ function H(N) {
3995
+ o && o(N), l(t);
3994
3996
  }
3995
- function A(T) {
3996
- i && i(T), l(t);
3997
+ function A(N) {
3998
+ i && i(N), l(t);
3997
3999
  }
3998
4000
  return /* @__PURE__ */ C("label", { className: w.trim(), children: [
3999
4001
  /* @__PURE__ */ f(
@@ -4001,7 +4003,7 @@ function zc(e) {
4001
4003
  {
4002
4004
  type: "button",
4003
4005
  disabled: y,
4004
- onClick: z,
4006
+ onClick: H,
4005
4007
  onFocus: A,
4006
4008
  ...c
4007
4009
  }
@@ -4022,11 +4024,11 @@ function Hc(e) {
4022
4024
  className: l = "",
4023
4025
  disabled: u = !1,
4024
4026
  ...d
4025
- } = e, [_, h] = S(t), { fieldErrors: m } = xe();
4027
+ } = e, [_, h] = T(t), { fieldErrors: m } = xe();
4026
4028
  function g(v) {
4027
4029
  h(v), i && i(v);
4028
4030
  }
4029
- const y = s || (m == null ? void 0 : m[n]), k = !!y, E = `arkynRadioGroup ${c} ${l}`;
4031
+ const y = s || (m == null ? void 0 : m[n]), k = !!y, x = `arkynRadioGroup ${c} ${l}`;
4030
4032
  return /* @__PURE__ */ C(ve, { children: [
4031
4033
  r && /* @__PURE__ */ f(ye, { showAsterisk: a, children: r }),
4032
4034
  /* @__PURE__ */ C(
@@ -4048,7 +4050,7 @@ function Hc(e) {
4048
4050
  value: o || _
4049
4051
  }
4050
4052
  ),
4051
- /* @__PURE__ */ f("div", { className: E.trim(), ...d })
4053
+ /* @__PURE__ */ f("div", { className: x.trim(), ...d })
4052
4054
  ]
4053
4055
  }
4054
4056
  ),
@@ -4069,18 +4071,18 @@ function Gc(e) {
4069
4071
  id: u,
4070
4072
  orientation: d = "horizontalReverse",
4071
4073
  ..._
4072
- } = e, h = ie(null), m = u || Me(), [g, y] = S(r), k = typeof a == "boolean" ? a : g;
4073
- function E() {
4074
+ } = e, h = ie(null), m = u || Me(), [g, y] = T(r), k = typeof a == "boolean" ? a : g;
4075
+ function x() {
4074
4076
  y(!g), l && l(k ? o : s || "checked");
4075
4077
  }
4076
4078
  const w = `arkynSwitch ${k ? "checkedTrue" : "checkedFalse"} ${n} ${c}`;
4077
4079
  return /* @__PURE__ */ C(ve, { orientation: d, children: [
4078
- t && /* @__PURE__ */ f(ye, { children: t }),
4080
+ t && /* @__PURE__ */ f(ye, { onClick: x, children: t }),
4079
4081
  /* @__PURE__ */ f(
4080
4082
  "button",
4081
4083
  {
4082
4084
  type: "button",
4083
- onClick: E,
4085
+ onClick: x,
4084
4086
  className: w,
4085
4087
  ..._,
4086
4088
  children: /* @__PURE__ */ f(
@@ -4090,7 +4092,7 @@ function Gc(e) {
4090
4092
  type: "hidden",
4091
4093
  name: i,
4092
4094
  ref: h,
4093
- onClick: E,
4095
+ onClick: x,
4094
4096
  value: k ? s || "checked" : o
4095
4097
  }
4096
4098
  )
@@ -4137,7 +4139,7 @@ function Uc(e) {
4137
4139
  disabled: a = !1,
4138
4140
  className: s,
4139
4141
  ...o
4140
- } = e, [i, c] = S(r || ""), l = `arkynTabContainer ${s || ""}`;
4142
+ } = e, [i, c] = T(r || ""), l = `arkynTabContainer ${s || ""}`;
4141
4143
  function u(d) {
4142
4144
  c(d), n && n(d);
4143
4145
  }
@@ -4201,38 +4203,38 @@ function Zc(e) {
4201
4203
  defaultValue: g,
4202
4204
  placeholder: y,
4203
4205
  id: k,
4204
- ...E
4205
- } = e, { fieldErrors: v } = xe(), [w, z] = S(!1), A = ie(null), T = k || Me(), j = a || (v == null ? void 0 : v[l]), R = `arkynTextarea ${t} ${n} ${s || o ? "opacityTrue" : "opacityFalse"} ${!!j ? "errorTrue" : "errorFalse"} ${w ? "focusedTrue" : "focusedFalse"} ${r}`;
4206
- function H() {
4207
- s || !(A != null && A.current) || (z(!0), A.current.focus());
4206
+ ...x
4207
+ } = e, { fieldErrors: v } = xe(), [w, H] = T(!1), A = ie(null), N = k || Me(), j = a || (v == null ? void 0 : v[l]), R = `arkynTextarea ${t} ${n} ${s || o ? "opacityTrue" : "opacityFalse"} ${!!j ? "errorTrue" : "errorFalse"} ${w ? "focusedTrue" : "focusedFalse"} ${r}`;
4208
+ function B() {
4209
+ s || !(A != null && A.current) || (H(!0), A.current.focus());
4208
4210
  }
4209
- function M(N) {
4210
- z(!0), u && u(N);
4211
+ function M(F) {
4212
+ H(!0), u && u(F);
4211
4213
  }
4212
- function B(N) {
4213
- z(!1), d && d(N);
4214
+ function z(F) {
4215
+ H(!1), d && d(F);
4214
4216
  }
4215
4217
  return /* @__PURE__ */ C(ve, { children: [
4216
- i && /* @__PURE__ */ f(ye, { showAsterisk: c, children: i }),
4218
+ i && /* @__PURE__ */ f(ye, { htmlFor: N, showAsterisk: c, children: i }),
4217
4219
  /* @__PURE__ */ f(
4218
4220
  "section",
4219
4221
  {
4220
4222
  title: _,
4221
4223
  style: h,
4222
- onClick: H,
4224
+ onClick: B,
4223
4225
  className: R,
4224
4226
  children: /* @__PURE__ */ f(
4225
4227
  "textarea",
4226
4228
  {
4227
- id: T,
4229
+ id: N,
4228
4230
  disabled: s,
4229
4231
  readOnly: o,
4230
4232
  ref: A,
4231
4233
  onFocus: M,
4232
- onBlur: B,
4234
+ onBlur: z,
4233
4235
  placeholder: s && m || y,
4234
4236
  value: s ? void 0 : m,
4235
- ...E
4237
+ ...x
4236
4238
  }
4237
4239
  )
4238
4240
  }
@@ -4242,7 +4244,7 @@ function Zc(e) {
4242
4244
  }
4243
4245
  const Vr = Se({});
4244
4246
  function Jc(e) {
4245
- const { children: t = !1 } = e, [n, r] = S([]);
4247
+ const { children: t = !1 } = e, [n, r] = T([]);
4246
4248
  function a(c) {
4247
4249
  return !!n.some((l) => l.key === c);
4248
4250
  }
@@ -4282,7 +4284,7 @@ function Qc(e) {
4282
4284
  }
4283
4285
  const Ur = Se({});
4284
4286
  function el(e) {
4285
- const { children: t = !1 } = e, [n, r] = S([]);
4287
+ const { children: t = !1 } = e, [n, r] = T([]);
4286
4288
  function a(l) {
4287
4289
  return !!n.some((u) => u.key === l);
4288
4290
  }
@@ -4441,7 +4443,7 @@ var Ys = (e) => typeof e == "function", St = (e, t) => Ys(e) ? e(t) : e, Zs = /*
4441
4443
  }, Jr = (e) => Object.keys(Fe).forEach((t) => Zr(e, t)), Qs = (e) => Object.keys(Fe).find((t) => Fe[t].toasts.some((n) => n.id === e)), Rt = (e = En) => (t) => {
4442
4444
  Zr(t, e);
4443
4445
  }, eo = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, to = (e = {}, t = En) => {
4444
- let [n, r] = S(Fe[t] || Yr), a = ie(Fe[t]);
4446
+ let [n, r] = T(Fe[t] || Yr), a = ie(Fe[t]);
4445
4447
  be(() => (a.current !== Fe[t] && r(Fe[t]), Ft.push([t, r]), () => {
4446
4448
  let o = Ft.findIndex(([i]) => i === t);
4447
4449
  o > -1 && Ft.splice(o, 1);
@@ -4509,8 +4511,8 @@ var ro = 1e3, ao = (e, t = "default") => {
4509
4511
  }, [o]), l = nt(() => {
4510
4512
  r && o({ type: 6, time: Date.now() });
4511
4513
  }, [r, o]), u = nt((d, _) => {
4512
- let { reverseOrder: h = !1, gutter: m = 8, defaultPosition: g } = _ || {}, y = n.filter((v) => (v.position || g) === (d.position || g) && v.height), k = y.findIndex((v) => v.id === d.id), E = y.filter((v, w) => w < k && v.visible).length;
4513
- return y.filter((v) => v.visible).slice(...h ? [E + 1] : [0, E]).reduce((v, w) => v + (w.height || 0) + m, 0);
4514
+ let { reverseOrder: h = !1, gutter: m = 8, defaultPosition: g } = _ || {}, y = n.filter((v) => (v.position || g) === (d.position || g) && v.height), k = y.findIndex((v) => v.id === d.id), x = y.filter((v, w) => w < k && v.visible).length;
4515
+ return y.filter((v) => v.visible).slice(...h ? [x + 1] : [0, x]).reduce((v, w) => v + (w.height || 0) + m, 0);
4514
4516
  }, [n]);
4515
4517
  return be(() => {
4516
4518
  n.forEach((d) => {
@@ -5480,7 +5482,7 @@ var qo = (e, t, n) => {
5480
5482
  var {
5481
5483
  path: r,
5482
5484
  node: a
5483
- } = n, s = F.parent(e, r), o = r[r.length - 1];
5485
+ } = n, s = S.parent(e, r), o = r[r.length - 1];
5484
5486
  if (o > s.children.length)
5485
5487
  throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r, "] because the destination is past the end of the node."));
5486
5488
  if (s.children.splice(o, 0, a), t)
@@ -5495,7 +5497,7 @@ var qo = (e, t, n) => {
5495
5497
  text: d
5496
5498
  } = n;
5497
5499
  if (d.length === 0) break;
5498
- var _ = F.leaf(e, l), h = _.text.slice(0, u), m = _.text.slice(u);
5500
+ var _ = S.leaf(e, l), h = _.text.slice(0, u), m = _.text.slice(u);
5499
5501
  if (_.text = h + d + m, t)
5500
5502
  for (var [g, y] of D.points(t))
5501
5503
  t[y] = U.transform(g, n);
@@ -5504,16 +5506,16 @@ var qo = (e, t, n) => {
5504
5506
  case "merge_node": {
5505
5507
  var {
5506
5508
  path: k
5507
- } = n, E = F.get(e, k), v = p.previous(k), w = F.get(e, v), z = F.parent(e, k), A = k[k.length - 1];
5508
- if (W.isText(E) && W.isText(w))
5509
- w.text += E.text;
5510
- else if (!W.isText(E) && !W.isText(w))
5511
- w.children.push(...E.children);
5509
+ } = n, x = S.get(e, k), v = p.previous(k), w = S.get(e, v), H = S.parent(e, k), A = k[k.length - 1];
5510
+ if (W.isText(x) && W.isText(w))
5511
+ w.text += x.text;
5512
+ else if (!W.isText(x) && !W.isText(w))
5513
+ w.children.push(...x.children);
5512
5514
  else
5513
- throw new Error('Cannot apply a "merge_node" operation at path ['.concat(k, "] to nodes of different interfaces: ").concat(Ne.stringify(E), " ").concat(Ne.stringify(w)));
5514
- if (z.children.splice(A, 1), t)
5515
- for (var [T, j] of D.points(t))
5516
- t[j] = U.transform(T, n);
5515
+ throw new Error('Cannot apply a "merge_node" operation at path ['.concat(k, "] to nodes of different interfaces: ").concat(Ne.stringify(x), " ").concat(Ne.stringify(w)));
5516
+ if (H.children.splice(A, 1), t)
5517
+ for (var [N, j] of D.points(t))
5518
+ t[j] = U.transform(N, n);
5517
5519
  break;
5518
5520
  }
5519
5521
  case "move_node": {
@@ -5523,18 +5525,18 @@ var qo = (e, t, n) => {
5523
5525
  } = n;
5524
5526
  if (p.isAncestor(I, b))
5525
5527
  throw new Error("Cannot move a path [".concat(I, "] to new path [").concat(b, "] because the destination is inside itself."));
5526
- var O = F.get(e, I), $ = F.parent(e, I), R = I[I.length - 1];
5528
+ var O = S.get(e, I), $ = S.parent(e, I), R = I[I.length - 1];
5527
5529
  $.children.splice(R, 1);
5528
- var H = p.transform(I, n), M = F.get(e, p.parent(H)), B = H[H.length - 1];
5529
- if (M.children.splice(B, 0, O), t)
5530
- for (var [N, Y] of D.points(t))
5531
- t[Y] = U.transform(N, n);
5530
+ var B = p.transform(I, n), M = S.get(e, p.parent(B)), z = B[B.length - 1];
5531
+ if (M.children.splice(z, 0, O), t)
5532
+ for (var [F, Y] of D.points(t))
5533
+ t[Y] = U.transform(F, n);
5532
5534
  break;
5533
5535
  }
5534
5536
  case "remove_node": {
5535
5537
  var {
5536
- path: x
5537
- } = n, _e = x[x.length - 1], X = F.parent(e, x);
5538
+ path: E
5539
+ } = n, _e = E[E.length - 1], X = S.parent(e, E);
5538
5540
  if (X.children.splice(_e, 1), t)
5539
5541
  for (var [Z, he] of D.points(t)) {
5540
5542
  var ce = U.transform(Z, n);
@@ -5542,15 +5544,15 @@ var qo = (e, t, n) => {
5542
5544
  t[he] = ce;
5543
5545
  else {
5544
5546
  var se = void 0, te = void 0;
5545
- for (var [L, ne] of F.texts(e))
5546
- if (p.compare(ne, x) === -1)
5547
+ for (var [L, ne] of S.texts(e))
5548
+ if (p.compare(ne, E) === -1)
5547
5549
  se = [L, ne];
5548
5550
  else {
5549
5551
  te = [L, ne];
5550
5552
  break;
5551
5553
  }
5552
5554
  var Te = !1;
5553
- se && te && (p.equals(te[1], x) ? Te = !p.hasPrevious(te[1]) : Te = p.common(se[1], x).length < p.common(te[1], x).length), se && !Te ? (Z.path = se[1], Z.offset = se[0].text.length) : te ? (Z.path = te[1], Z.offset = 0) : t = null;
5555
+ se && te && (p.equals(te[1], E) ? Te = !p.hasPrevious(te[1]) : Te = p.common(se[1], E).length < p.common(te[1], E).length), se && !Te ? (Z.path = se[1], Z.offset = se[0].text.length) : te ? (Z.path = te[1], Z.offset = 0) : t = null;
5554
5556
  }
5555
5557
  }
5556
5558
  break;
@@ -5562,7 +5564,7 @@ var qo = (e, t, n) => {
5562
5564
  text: G
5563
5565
  } = n;
5564
5566
  if (G.length === 0) break;
5565
- var re = F.leaf(e, De), $e = re.text.slice(0, ke), qt = re.text.slice(ke + G.length);
5567
+ var re = S.leaf(e, De), $e = re.text.slice(0, ke), qt = re.text.slice(ke + G.length);
5566
5568
  if (re.text = $e + qt, t)
5567
5569
  for (var [ue, Le] of D.points(t))
5568
5570
  t[Le] = U.transform(ue, n);
@@ -5576,7 +5578,7 @@ var qo = (e, t, n) => {
5576
5578
  } = n;
5577
5579
  if (Ve.length === 0)
5578
5580
  throw new Error("Cannot set properties on the root node!");
5579
- var Kt = F.get(e, Ve);
5581
+ var Kt = S.get(e, Ve);
5580
5582
  for (var Qe in Wt) {
5581
5583
  if (Qe === "children" || Qe === "text")
5582
5584
  throw new Error('Cannot set the "'.concat(Qe, '" property of nodes!'));
@@ -5619,7 +5621,7 @@ var qo = (e, t, n) => {
5619
5621
  } = n;
5620
5622
  if (tt.length === 0)
5621
5623
  throw new Error('Cannot apply a "split_node" operation at path ['.concat(tt, "] because the root node cannot be split."));
5622
- var qe = F.get(e, tt), Ta = F.parent(e, tt), Oa = tt[tt.length - 1], Xt;
5624
+ var qe = S.get(e, tt), Ta = S.parent(e, tt), Oa = tt[tt.length - 1], Xt;
5623
5625
  if (W.isText(qe)) {
5624
5626
  var Pa = qe.text.slice(0, kt), Aa = qe.text.slice(kt);
5625
5627
  qe.text = Pa, Xt = it(it({}, Gn), {}, {
@@ -5840,9 +5842,9 @@ var D = {
5840
5842
  r.anchor = c, r.focus = l;
5841
5843
  });
5842
5844
  }
5843
- }, sr = (e) => oe(e) && F.isNodeList(e.children) && !pe.isEditor(e), je = {
5845
+ }, sr = (e) => oe(e) && S.isNodeList(e.children) && !pe.isEditor(e), je = {
5844
5846
  isAncestor(e) {
5845
- return oe(e) && F.isNodeList(e.children);
5847
+ return oe(e) && S.isNodeList(e.children);
5846
5848
  },
5847
5849
  isElement: sr,
5848
5850
  isElementList(e) {
@@ -5861,9 +5863,9 @@ var D = {
5861
5863
  return !1;
5862
5864
  return !0;
5863
5865
  }
5864
- }, Qo = ["children"], ei = ["text"], or = /* @__PURE__ */ new WeakMap(), F = {
5866
+ }, Qo = ["children"], ei = ["text"], or = /* @__PURE__ */ new WeakMap(), S = {
5865
5867
  ancestor(e, t) {
5866
- var n = F.get(e, t);
5868
+ var n = S.get(e, t);
5867
5869
  if (W.isText(n))
5868
5870
  throw new Error("Cannot get the ancestor node at path [".concat(t, "] because it refers to a text node instead: ").concat(Ne.stringify(n)));
5869
5871
  return n;
@@ -5872,7 +5874,7 @@ var D = {
5872
5874
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5873
5875
  return function* () {
5874
5876
  for (var r of p.ancestors(t, n)) {
5875
- var a = F.ancestor(e, r), s = [a, r];
5877
+ var a = S.ancestor(e, r), s = [a, r];
5876
5878
  yield s;
5877
5879
  }
5878
5880
  }();
@@ -5890,20 +5892,20 @@ var D = {
5890
5892
  return function* () {
5891
5893
  for (var {
5892
5894
  reverse: r = !1
5893
- } = n, a = F.ancestor(e, t), {
5895
+ } = n, a = S.ancestor(e, t), {
5894
5896
  children: s
5895
5897
  } = a, o = r ? s.length - 1 : 0; r ? o >= 0 : o < s.length; ) {
5896
- var i = F.child(a, o), c = t.concat(o);
5898
+ var i = S.child(a, o), c = t.concat(o);
5897
5899
  yield [i, c], o = r ? o - 1 : o + 1;
5898
5900
  }
5899
5901
  }();
5900
5902
  },
5901
5903
  common(e, t, n) {
5902
- var r = p.common(t, n), a = F.get(e, r);
5904
+ var r = p.common(t, n), a = S.get(e, r);
5903
5905
  return [a, r];
5904
5906
  },
5905
5907
  descendant(e, t) {
5906
- var n = F.get(e, t);
5908
+ var n = S.get(e, t);
5907
5909
  if (pe.isEditor(n))
5908
5910
  throw new Error("Cannot get the descendant node at path [".concat(t, "] because it refers to the root editor node instead: ").concat(Ne.stringify(n)));
5909
5911
  return n;
@@ -5911,14 +5913,14 @@ var D = {
5911
5913
  descendants(e) {
5912
5914
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5913
5915
  return function* () {
5914
- for (var [n, r] of F.nodes(e, t))
5916
+ for (var [n, r] of S.nodes(e, t))
5915
5917
  r.length !== 0 && (yield [n, r]);
5916
5918
  }();
5917
5919
  },
5918
5920
  elements(e) {
5919
5921
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5920
5922
  return function* () {
5921
- for (var [n, r] of F.nodes(e, t))
5923
+ for (var [n, r] of S.nodes(e, t))
5922
5924
  je.isElement(n) && (yield [n, r]);
5923
5925
  }();
5924
5926
  },
@@ -5932,7 +5934,7 @@ var D = {
5932
5934
  }
5933
5935
  },
5934
5936
  first(e, t) {
5935
- for (var n = t.slice(), r = F.get(e, n); r && !(W.isText(r) || r.children.length === 0); )
5937
+ for (var n = t.slice(), r = S.get(e, n); r && !(W.isText(r) || r.children.length === 0); )
5936
5938
  r = r.children[0], n.push(0);
5937
5939
  return [r, n];
5938
5940
  },
@@ -5942,7 +5944,7 @@ var D = {
5942
5944
  var n = Fn({
5943
5945
  children: e.children
5944
5946
  }, (r) => {
5945
- var [a, s] = D.edges(t), o = F.nodes(r, {
5947
+ var [a, s] = D.edges(t), o = S.nodes(r, {
5946
5948
  reverse: !0,
5947
5949
  pass: (_) => {
5948
5950
  var [, h] = _;
@@ -5951,15 +5953,15 @@ var D = {
5951
5953
  });
5952
5954
  for (var [, i] of o) {
5953
5955
  if (!D.includes(t, i)) {
5954
- var c = F.parent(r, i), l = i[i.length - 1];
5956
+ var c = S.parent(r, i), l = i[i.length - 1];
5955
5957
  c.children.splice(l, 1);
5956
5958
  }
5957
5959
  if (p.equals(i, s.path)) {
5958
- var u = F.leaf(r, i);
5960
+ var u = S.leaf(r, i);
5959
5961
  u.text = u.text.slice(0, s.offset);
5960
5962
  }
5961
5963
  if (p.equals(i, a.path)) {
5962
- var d = F.leaf(r, i);
5964
+ var d = S.leaf(r, i);
5963
5965
  d.text = d.text.slice(a.offset);
5964
5966
  }
5965
5967
  }
@@ -5994,18 +5996,18 @@ var D = {
5994
5996
  var t = or.get(e);
5995
5997
  if (t !== void 0)
5996
5998
  return t;
5997
- var n = e.every((r) => F.isNode(r));
5999
+ var n = e.every((r) => S.isNode(r));
5998
6000
  return or.set(e, n), n;
5999
6001
  },
6000
6002
  last(e, t) {
6001
- for (var n = t.slice(), r = F.get(e, n); r && !(W.isText(r) || r.children.length === 0); ) {
6003
+ for (var n = t.slice(), r = S.get(e, n); r && !(W.isText(r) || r.children.length === 0); ) {
6002
6004
  var a = r.children.length - 1;
6003
6005
  r = r.children[a], n.push(a);
6004
6006
  }
6005
6007
  return [r, n];
6006
6008
  },
6007
6009
  leaf(e, t) {
6008
- var n = F.get(e, t);
6010
+ var n = S.get(e, t);
6009
6011
  if (!W.isText(n))
6010
6012
  throw new Error("Cannot get the leaf node at path [".concat(t, "] because it refers to a non-leaf node: ").concat(Ne.stringify(n)));
6011
6013
  return n;
@@ -6014,7 +6016,7 @@ var D = {
6014
6016
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
6015
6017
  return function* () {
6016
6018
  for (var r of p.levels(t, n)) {
6017
- var a = F.get(e, r);
6019
+ var a = S.get(e, r);
6018
6020
  yield [a, r];
6019
6021
  }
6020
6022
  }();
@@ -6035,40 +6037,40 @@ var D = {
6035
6037
  if (o.has(c) || (yield [c, i]), !o.has(c) && !W.isText(c) && c.children.length !== 0 && (n == null || n([c, i]) === !1)) {
6036
6038
  o.add(c);
6037
6039
  var l = r ? c.children.length - 1 : 0;
6038
- p.isAncestor(i, a) && (l = a[i.length]), i = i.concat(l), c = F.get(e, i);
6040
+ p.isAncestor(i, a) && (l = a[i.length]), i = i.concat(l), c = S.get(e, i);
6039
6041
  continue;
6040
6042
  }
6041
6043
  if (i.length === 0)
6042
6044
  break;
6043
6045
  if (!r) {
6044
6046
  var u = p.next(i);
6045
- if (F.has(e, u)) {
6046
- i = u, c = F.get(e, i);
6047
+ if (S.has(e, u)) {
6048
+ i = u, c = S.get(e, i);
6047
6049
  continue;
6048
6050
  }
6049
6051
  }
6050
6052
  if (r && i[i.length - 1] !== 0) {
6051
6053
  var d = p.previous(i);
6052
- i = d, c = F.get(e, i);
6054
+ i = d, c = S.get(e, i);
6053
6055
  continue;
6054
6056
  }
6055
- i = p.parent(i), c = F.get(e, i), o.add(c);
6057
+ i = p.parent(i), c = S.get(e, i), o.add(c);
6056
6058
  }
6057
6059
  }();
6058
6060
  },
6059
6061
  parent(e, t) {
6060
- var n = p.parent(t), r = F.get(e, n);
6062
+ var n = p.parent(t), r = S.get(e, n);
6061
6063
  if (W.isText(r))
6062
6064
  throw new Error("Cannot get the parent of path [".concat(t, "] because it does not exist in the root."));
6063
6065
  return r;
6064
6066
  },
6065
6067
  string(e) {
6066
- return W.isText(e) ? e.text : e.children.map(F.string).join("");
6068
+ return W.isText(e) ? e.text : e.children.map(S.string).join("");
6067
6069
  },
6068
6070
  texts(e) {
6069
6071
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6070
6072
  return function* () {
6071
- for (var [n, r] of F.nodes(e, t))
6073
+ for (var [n, r] of S.nodes(e, t))
6072
6074
  W.isText(n) && (yield [n, r]);
6073
6075
  }();
6074
6076
  }
@@ -6103,7 +6105,7 @@ var ct = {
6103
6105
  return !1;
6104
6106
  switch (e.type) {
6105
6107
  case "insert_node":
6106
- return p.isPath(e.path) && F.isNode(e.node);
6108
+ return p.isPath(e.path) && S.isNode(e.node);
6107
6109
  case "insert_text":
6108
6110
  return typeof e.offset == "number" && typeof e.text == "string" && p.isPath(e.path);
6109
6111
  case "merge_node":
@@ -6111,7 +6113,7 @@ var ct = {
6111
6113
  case "move_node":
6112
6114
  return p.isPath(e.path) && p.isPath(e.newPath);
6113
6115
  case "remove_node":
6114
- return p.isPath(e.path) && F.isNode(e.node);
6116
+ return p.isPath(e.path) && S.isNode(e.node);
6115
6117
  case "remove_text":
6116
6118
  return typeof e.offset == "number" && typeof e.text == "string" && p.isPath(e.path);
6117
6119
  case "set_node":
@@ -6213,7 +6215,7 @@ var ct = {
6213
6215
  return t;
6214
6216
  if (!oe(e))
6215
6217
  return !1;
6216
- 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 || oe(e.marks)) && (e.selection === null || D.isRange(e.selection)) && F.isNodeList(e.children) && ct.isOperationList(e.operations);
6218
+ 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 || oe(e.marks)) && (e.selection === null || D.isRange(e.selection)) && S.isNodeList(e.children) && ct.isOperationList(e.operations);
6217
6219
  return cr.set(e, n), n;
6218
6220
  }, pe = {
6219
6221
  above(e, t) {
@@ -6570,11 +6572,11 @@ var W = {
6570
6572
  });
6571
6573
  }
6572
6574
  if (l > h) {
6573
- var E = l - h;
6575
+ var x = l - h;
6574
6576
  g = Pe(Pe({}, m), {}, {
6575
- text: m.text.slice(0, E)
6577
+ text: m.text.slice(0, x)
6576
6578
  }), m = Pe(Pe({}, m), {}, {
6577
- text: m.text.slice(E)
6579
+ text: m.text.slice(x)
6578
6580
  });
6579
6581
  }
6580
6582
  Object.assign(m, a), g && i.push(g), i.push(m), y && i.push(y);