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

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,4 +1,4 @@
1
- import { jsx as f, jsxs as k, Fragment as Ce } from "react/jsx-runtime";
1
+ import { jsx as f, jsxs as C, Fragment as Ce } from "react/jsx-runtime";
2
2
  import * as ee from "react";
3
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";
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";
@@ -61,20 +61,20 @@ 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), _ = (C) => {
64
+ } = e, [i, c] = S(!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 = C.clientX - E.left, w = Math.min(Math.max(v / E.width * 100, 0), 100);
66
+ const E = l.current.getBoundingClientRect(), v = k.clientX - E.left, w = Math.min(Math.max(v / E.width * 100, 0), 100);
67
67
  t(w);
68
- }, h = (C) => {
68
+ }, h = (k) => {
69
69
  if (r || !l.current) return;
70
- const E = l.current.getBoundingClientRect(), v = C.clientX - E.left, w = Math.min(Math.max(v / E.width * 100, 0), 100);
70
+ const E = l.current.getBoundingClientRect(), v = k.clientX - E.left, w = Math.min(Math.max(v / E.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)), () => {
74
74
  document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", d);
75
75
  }), [i]);
76
76
  const y = `arkynSliderTrack ${i ? "isDragging" : "isNotDragging"} ${r ? "isDisabled" : "isEnabled"} ${s}`;
77
- return /* @__PURE__ */ k(
77
+ return /* @__PURE__ */ C(
78
78
  "div",
79
79
  {
80
80
  ...o,
@@ -90,17 +90,17 @@ function es(e) {
90
90
  );
91
91
  }
92
92
  function ts(e) {
93
- var D, T, j, A;
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), _ = (D = d.current) == null ? void 0 : D.currentTime, h = (T = d.current) == null ? void 0 : T.duration, m = C(_), g = C(h), y = {
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 = {
95
95
  totalTime: h,
96
96
  currentTime: _,
97
97
  formattedCurrentTime: m,
98
98
  formattedTotalTime: g
99
99
  };
100
- function C(b) {
100
+ function k(b) {
101
101
  if (!b) return "00:00";
102
- const O = Math.floor(b / 60), $ = Math.floor(b % 60), I = String(O).padStart(2, "0"), z = String($).padStart(2, "0");
103
- return `${I}:${z}`;
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}`;
104
104
  }
105
105
  function E() {
106
106
  const b = d.current;
@@ -113,23 +113,23 @@ function ts(e) {
113
113
  function w() {
114
114
  i ? v() : E();
115
115
  }
116
- function H(b) {
116
+ function z(b) {
117
117
  const O = d.current;
118
118
  if (!O) return;
119
- const $ = O.duration, I = b / 100 * $;
120
- O.currentTime = I;
119
+ const $ = O.duration, R = b / 100 * $;
120
+ O.currentTime = R;
121
121
  }
122
- return l || !i ? (j = d.current) == null || j.pause() : i && ((A = d.current) == null || A.play()), be(() => {
122
+ return l || !i ? (j = d.current) == null || j.pause() : i && ((I = d.current) == null || I.play()), be(() => {
123
123
  const b = d.current;
124
124
  if (!b) return;
125
125
  const O = () => {
126
- const $ = b.duration, z = b.currentTime / $ * 100;
127
- o(z);
126
+ const $ = b.duration, H = b.currentTime / $ * 100;
127
+ o(H);
128
128
  };
129
129
  return b.addEventListener("timeupdate", O), () => {
130
130
  b.removeEventListener("timeupdate", O);
131
131
  };
132
- }, []), /* @__PURE__ */ k("div", { className: "arkynAudioPlayer", children: [
132
+ }, []), /* @__PURE__ */ C("div", { className: "arkynAudioPlayer", children: [
133
133
  /* @__PURE__ */ f(
134
134
  "audio",
135
135
  {
@@ -139,7 +139,7 @@ function ts(e) {
139
139
  onEnded: v
140
140
  }
141
141
  ),
142
- /* @__PURE__ */ k("button", { type: "button", disabled: r, onClick: w, children: [
142
+ /* @__PURE__ */ C("button", { type: "button", disabled: r, onClick: w, children: [
143
143
  i && /* @__PURE__ */ f(Va, {}),
144
144
  !i && /* @__PURE__ */ f(Ua, {})
145
145
  ] }),
@@ -148,7 +148,7 @@ function ts(e) {
148
148
  es,
149
149
  {
150
150
  value: s,
151
- onChange: H,
151
+ onChange: z,
152
152
  onDragging: u,
153
153
  disabled: r
154
154
  }
@@ -159,7 +159,7 @@ function ts(e) {
159
159
  const Rr = Se({});
160
160
  function bc(e) {
161
161
  const { children: t, fieldErrors: n, form: r } = e;
162
- return /* @__PURE__ */ k(Rr.Provider, { value: { fieldErrors: n }, children: [
162
+ return /* @__PURE__ */ C(Rr.Provider, { value: { fieldErrors: n }, children: [
163
163
  !r && t,
164
164
  r && $a(r, r.props, t)
165
165
  ] });
@@ -206,12 +206,12 @@ function st(e) {
206
206
  children: u,
207
207
  ...d
208
208
  } = e, h = { xs: 12, sm: 16, md: 20, lg: 24 }[s], y = `arkynButton ${t ? "loadingTrue" : "loadingFalse"} ${r} ${n} ${s} ${a ? "loadingTextTrue" : "loadingTextFalse"} ${l}`;
209
- return /* @__PURE__ */ k("button", { className: y, disabled: c || t, ...d, children: [
210
- /* @__PURE__ */ k("div", { className: "arkynButtonSpinner", children: [
209
+ return /* @__PURE__ */ C("button", { className: y, disabled: c || t, ...d, children: [
210
+ /* @__PURE__ */ C("div", { className: "arkynButtonSpinner", children: [
211
211
  /* @__PURE__ */ f(Ae, { size: h, strokeWidth: 2.5 }),
212
212
  a && a
213
213
  ] }),
214
- /* @__PURE__ */ k("div", { className: "arkynButtonContent", children: [
214
+ /* @__PURE__ */ C("div", { className: "arkynButtonContent", children: [
215
215
  /* @__PURE__ */ f(K, { iconSize: h, icon: o }),
216
216
  u,
217
217
  /* @__PURE__ */ f(K, { iconSize: h, icon: i })
@@ -237,7 +237,7 @@ function kn(e) {
237
237
  className: i = "",
238
238
  ...c
239
239
  } = e, l = { xs: 12, sm: 16, md: 20, lg: 24 }, d = `arkynIconButton ${r} ${n} ${a} ${t ? "loadingTrue" : "loadingFalse"} ${i}`;
240
- return /* @__PURE__ */ k(
240
+ return /* @__PURE__ */ C(
241
241
  "button",
242
242
  {
243
243
  disabled: o || t,
@@ -264,9 +264,9 @@ function Cn(e) {
264
264
  if (!c.current) return;
265
265
  const g = document.getElementById(i);
266
266
  g && (u(a), requestAnimationFrame(() => {
267
- const y = g.getBoundingClientRect(), C = window.innerWidth, E = window.innerHeight;
267
+ const y = g.getBoundingClientRect(), k = window.innerWidth, E = window.innerHeight;
268
268
  let v = a;
269
- a === "left" && y.left < 0 ? v = "right" : a === "right" && y.right > C ? v = "left" : a === "top" && y.top < 0 ? v = "bottom" : a === "bottom" && y.bottom > E && (v = "top"), v === "right" && y.right > C ? 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 > 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);
270
270
  }));
271
271
  }, h = c.current;
272
272
  if (!h) return;
@@ -278,7 +278,7 @@ function Cn(e) {
278
278
  };
279
279
  }, [a, i]);
280
280
  const d = `arkynTooltip ${n} ${l} ${s}`;
281
- return /* @__PURE__ */ k("div", { className: d.trim(), ...o, ref: c, children: [
281
+ return /* @__PURE__ */ C("div", { className: d.trim(), ...o, ref: c, children: [
282
282
  r,
283
283
  /* @__PURE__ */ f(
284
284
  "div",
@@ -309,10 +309,10 @@ function ns(e) {
309
309
  d && a(d);
310
310
  }, l.click();
311
311
  }
312
- return /* @__PURE__ */ k("div", { className: "arkynAudioUploadHasFileContentContainer", children: [
312
+ return /* @__PURE__ */ C("div", { className: "arkynAudioUploadHasFileContentContainer", children: [
313
313
  /* @__PURE__ */ f(ts, { src: t }),
314
314
  /* @__PURE__ */ f(vn, {}),
315
- /* @__PURE__ */ k("div", { className: "arkynAudioUploadButtonsContainer", children: [
315
+ /* @__PURE__ */ C("div", { className: "arkynAudioUploadButtonsContainer", children: [
316
316
  !!o && /* @__PURE__ */ f(Cn, { orientation: "bottom", text: "Reenviar áudio", children: /* @__PURE__ */ f(
317
317
  kn,
318
318
  {
@@ -366,7 +366,7 @@ function rs(e) {
366
366
  d && a(d);
367
367
  }, l.click();
368
368
  }
369
- return /* @__PURE__ */ k("div", { onDrop: i, className: "arkynAudioUploadNoFileContent", children: [
369
+ return /* @__PURE__ */ C("div", { onDrop: i, className: "arkynAudioUploadNoFileContent", children: [
370
370
  /* @__PURE__ */ f(
371
371
  st,
372
372
  {
@@ -398,10 +398,10 @@ 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], [C, E] = S(_), [v, w] = S(""), [H, D] = S(null), [T, j] = S(_), [A, b] = S(!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
402
  async function O(N) {
403
403
  if (m) return;
404
- b(!0), D(N), w("");
404
+ b(!0), A(N), w("");
405
405
  const Y = new FormData();
406
406
  Y.append(r, N), await fetch(d, { method: a, body: Y }).then(async (x) => await x.json()).then((x) => {
407
407
  x != null && x.error ? w(x.error) : E(x == null ? void 0 : x[o]), s && s(x == null ? void 0 : x[o]);
@@ -418,16 +418,16 @@ function xc(e) {
418
418
  j(URL.createObjectURL(N)), O(N);
419
419
  }
420
420
  }
421
- const I = y || v;
422
- return /* @__PURE__ */ k(ve, { children: [
421
+ const R = y || v;
422
+ return /* @__PURE__ */ C(ve, { children: [
423
423
  n && /* @__PURE__ */ f(ye, { showAsterisk: h, children: n }),
424
- /* @__PURE__ */ k("div", { className: `arkynAudioUpload ${I ? "hasError" : "noHasError"} ${T ? "hasAudio" : "noHasAudio"}`, children: [
425
- /* @__PURE__ */ f("input", { type: "hidden", name: t, value: C || "" }),
424
+ /* @__PURE__ */ C("div", { className: `arkynAudioUpload ${R ? "hasError" : "noHasError"} ${T ? "hasAudio" : "noHasAudio"}`, children: [
425
+ /* @__PURE__ */ f("input", { type: "hidden", name: t, value: k || "" }),
426
426
  !T && /* @__PURE__ */ f(
427
427
  rs,
428
428
  {
429
429
  disabled: m,
430
- isLoading: A,
430
+ isLoading: I,
431
431
  acceptAudio: u,
432
432
  dropAudioText: c,
433
433
  handleSelectFile: $,
@@ -442,12 +442,12 @@ function xc(e) {
442
442
  changeAudioButtonText: l,
443
443
  disabled: m,
444
444
  handleSelectFile: $,
445
- isLoading: A,
446
- reSendAudio: I && H ? () => O(H) : void 0
445
+ isLoading: I,
446
+ reSendAudio: R && z ? () => O(z) : void 0
447
447
  }
448
448
  )
449
449
  ] }),
450
- I && /* @__PURE__ */ f(Ee, { children: I })
450
+ R && /* @__PURE__ */ f(Ee, { children: R })
451
451
  ] });
452
452
  }
453
453
  function Ec(e) {
@@ -461,7 +461,7 @@ function Ec(e) {
461
461
  children: i,
462
462
  ...c
463
463
  } = e, u = { md: 12, lg: 14 }[r], d = `arkynBadge ${t} ${n} ${r} ${o}`;
464
- return /* @__PURE__ */ k("div", { className: d.trim(), ...c, children: [
464
+ return /* @__PURE__ */ C("div", { className: d.trim(), ...c, children: [
465
465
  /* @__PURE__ */ f(K, { iconSize: u, icon: a }),
466
466
  /* @__PURE__ */ f("p", { children: i }),
467
467
  /* @__PURE__ */ f(K, { iconSize: u, icon: s })
@@ -534,14 +534,14 @@ 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]), C = !!y, [E, v] = S(o || !1), w = typeof c == "boolean" ? c : E, T = `arkynCheckbox ${a} ${C ? "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, [E, v] = S(o || !1), w = typeof c == "boolean" ? c : E, T = `arkynCheckbox ${a} ${k ? "errorTrue" : "errorFalse"} ${w ? "checkedTrue" : "checkedFalse"} ${r}`;
538
538
  function j() {
539
- const A = E;
540
- v(!A), l && l(A ? "" : d || "checked");
539
+ const I = E;
540
+ v(!I), l && l(I ? "" : d || "checked");
541
541
  }
542
- return /* @__PURE__ */ k(ve, { orientation: u, children: [
542
+ return /* @__PURE__ */ C(ve, { orientation: u, children: [
543
543
  i && /* @__PURE__ */ f(ye, { children: i }),
544
- /* @__PURE__ */ k(
544
+ /* @__PURE__ */ C(
545
545
  "button",
546
546
  {
547
547
  id: g,
@@ -2596,18 +2596,18 @@ function Tc(e) {
2596
2596
  suffix: m,
2597
2597
  isLoading: g = !1,
2598
2598
  leftIcon: y,
2599
- readOnly: C,
2599
+ readOnly: k,
2600
2600
  onFocus: E,
2601
2601
  onBlur: v,
2602
2602
  errorMessage: w,
2603
- showAsterisk: H,
2604
- rightIcon: D,
2603
+ showAsterisk: z,
2604
+ rightIcon: A,
2605
2605
  size: T = "md",
2606
2606
  id: j,
2607
- ...A
2608
- } = e, { fieldErrors: b } = xe(), [O, $] = S(!1), [I, z] = S("0"), R = 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 = D ? "right" : "left", he = Z === "left" && g, ce = Z === "right" && g;
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;
2609
2609
  function se() {
2610
- x || !(R != null && R.current) || ($(!0), R.current.focus());
2610
+ x || !(M != null && M.current) || ($(!0), M.current.focus());
2611
2611
  }
2612
2612
  function te(ue) {
2613
2613
  $(!0), E && E(ue);
@@ -2620,7 +2620,7 @@ function Tc(e) {
2620
2620
  ue,
2621
2621
  d
2622
2622
  );
2623
- return !u || Le <= u ? (z(Ve), [Le, Ve]) : Yt(ue, d);
2623
+ return !u || Le <= u ? (H(Ve), [Le, Ve]) : Yt(ue, d);
2624
2624
  }, Te = (ue) => {
2625
2625
  ue.preventDefault();
2626
2626
  const [Le, Ve] = ne(ue.target.value);
@@ -2628,12 +2628,12 @@ function Tc(e) {
2628
2628
  };
2629
2629
  be(() => {
2630
2630
  const ue = c || +l || void 0, [, Le] = Yt(ue, d);
2631
- z(Le);
2631
+ H(Le);
2632
2632
  }, [d, l, c]);
2633
- const qt = `arkynCurrencyInput ${h ? "hasPrefix" : ""} ${m ? "hasSuffix" : ""} ${s} ${T} ${x || C || g ? "opacity" : ""} ${Y ? "errored" : ""} ${O ? "focused" : ""} ${i}`;
2634
- return /* @__PURE__ */ k(ve, { children: [
2635
- o && /* @__PURE__ */ f(ye, { showAsterisk: H, htmlFor: B, children: o }),
2636
- /* @__PURE__ */ k(
2633
+ const qt = `arkynCurrencyInput ${h ? "hasPrefix" : ""} ${m ? "hasSuffix" : ""} ${s} ${T} ${x || k || g ? "opacity" : ""} ${Y ? "errored" : ""} ${O ? "focused" : ""} ${i}`;
2634
+ return /* @__PURE__ */ C(ve, { children: [
2635
+ o && /* @__PURE__ */ f(ye, { showAsterisk: z, htmlFor: B, children: o }),
2636
+ /* @__PURE__ */ C(
2637
2637
  "section",
2638
2638
  {
2639
2639
  title: r,
@@ -2656,15 +2656,15 @@ function Tc(e) {
2656
2656
  "input",
2657
2657
  {
2658
2658
  disabled: x,
2659
- readOnly: C,
2660
- ref: R,
2659
+ readOnly: k,
2660
+ ref: M,
2661
2661
  onFocus: te,
2662
2662
  onBlur: L,
2663
2663
  onChange: Te,
2664
2664
  id: B,
2665
- placeholder: x ? I : void 0,
2666
- value: x ? void 0 : I,
2667
- ...A
2665
+ placeholder: x ? R : void 0,
2666
+ value: x ? void 0 : R,
2667
+ ...I
2668
2668
  }
2669
2669
  ),
2670
2670
  /* @__PURE__ */ f(
@@ -2672,11 +2672,11 @@ function Tc(e) {
2672
2672
  {
2673
2673
  type: "hidden",
2674
2674
  name: t,
2675
- value: Dr(I),
2675
+ value: Dr(R),
2676
2676
  readOnly: !0
2677
2677
  }
2678
2678
  ),
2679
- /* @__PURE__ */ f(K, { show: !g, icon: D, iconSize: X }),
2679
+ /* @__PURE__ */ f(K, { show: !g, icon: A, iconSize: X }),
2680
2680
  /* @__PURE__ */ f(
2681
2681
  K,
2682
2682
  {
@@ -2728,7 +2728,7 @@ function Oc(e) {
2728
2728
  } = e;
2729
2729
  yt(t);
2730
2730
  const i = r === "left" ? "-100%" : "100%", l = `arkynDrawerContainer ${r} ${t ? "visibleTrue" : "visibleFalse"} ${s}`;
2731
- return /* @__PURE__ */ f(fs, { makeInvisible: n, children: /* @__PURE__ */ f(Pr, { children: t && /* @__PURE__ */ k("aside", { className: l.trim(), ...o, children: [
2731
+ return /* @__PURE__ */ f(fs, { makeInvisible: n, children: /* @__PURE__ */ f(Pr, { children: t && /* @__PURE__ */ C("aside", { className: l.trim(), ...o, children: [
2732
2732
  /* @__PURE__ */ f(
2733
2733
  dt.div,
2734
2734
  {
@@ -2760,7 +2760,7 @@ function Pc(e) {
2760
2760
  children: r,
2761
2761
  ...a
2762
2762
  } = e, { makeInvisible: s } = ds(), o = `arkynDrawerHeader ${n}`;
2763
- return /* @__PURE__ */ k("header", { className: o.trim(), ...a, children: [
2763
+ return /* @__PURE__ */ C("header", { className: o.trim(), ...a, children: [
2764
2764
  r,
2765
2765
  t && /* @__PURE__ */ f(
2766
2766
  "button",
@@ -2796,13 +2796,13 @@ function _s(e) {
2796
2796
  function l() {
2797
2797
  return n.type.startsWith("image/") ? /* @__PURE__ */ f(qa, {}) : n.type.startsWith("audio/") ? /* @__PURE__ */ f(Wa, {}) : n.type.startsWith("application/zip") ? /* @__PURE__ */ f(Ka, {}) : /* @__PURE__ */ f(Xa, {});
2798
2798
  }
2799
- return /* @__PURE__ */ k("div", { className: "arkynFileUploadHasFileContent", children: [
2800
- /* @__PURE__ */ k("section", { className: "arkynFileUploadFileContainer", children: [
2799
+ return /* @__PURE__ */ C("div", { className: "arkynFileUploadHasFileContent", children: [
2800
+ /* @__PURE__ */ C("section", { className: "arkynFileUploadFileContainer", children: [
2801
2801
  /* @__PURE__ */ f(l, {}),
2802
2802
  /* @__PURE__ */ f("p", { children: n.name })
2803
2803
  ] }),
2804
2804
  /* @__PURE__ */ f(vn, {}),
2805
- /* @__PURE__ */ k("div", { className: "arkynFileUploadButtonsContainer", children: [
2805
+ /* @__PURE__ */ C("div", { className: "arkynFileUploadButtonsContainer", children: [
2806
2806
  !!i && /* @__PURE__ */ f(Cn, { orientation: "bottom", text: "Reenviar arquivo", children: /* @__PURE__ */ f(
2807
2807
  kn,
2808
2808
  {
@@ -2856,7 +2856,7 @@ function ms(e) {
2856
2856
  d && a(d);
2857
2857
  }, l.click();
2858
2858
  }
2859
- return /* @__PURE__ */ k("div", { onDrop: i, className: "arkynFileUploadNoFileContent", children: [
2859
+ return /* @__PURE__ */ C("div", { onDrop: i, className: "arkynFileUploadNoFileContent", children: [
2860
2860
  /* @__PURE__ */ f(
2861
2861
  st,
2862
2862
  {
@@ -2887,33 +2887,33 @@ 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, C] = S(""), [E, v] = S(""), [w, H] = S(null), [D, T] = S(!1);
2891
- async function j(z) {
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) {
2892
2892
  if (h) return;
2893
- T(!0), H(z), v("");
2894
- const R = new FormData();
2895
- R.append(s, z), await fetch(a, { method: o, body: R }).then(async (B) => await B.json()).then((B) => {
2896
- B != null && B.error ? v(B.error) : C(B == null ? void 0 : B[c]), _ && _(B == null ? void 0 : B[c]);
2893
+ T(!0), z(H), v("");
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
2897
  }).catch((B) => {
2898
2898
  console.error(B), v("Erro ao enviar o arquivo");
2899
2899
  }).finally(() => T(!1));
2900
2900
  }
2901
- function A(z) {
2902
- h || j(z);
2901
+ function I(H) {
2902
+ h || j(H);
2903
2903
  }
2904
2904
  const b = g || E;
2905
- return /* @__PURE__ */ k(ve, { children: [
2905
+ return /* @__PURE__ */ C(ve, { children: [
2906
2906
  n && /* @__PURE__ */ f(ye, { showAsterisk: r, children: n }),
2907
- /* @__PURE__ */ k("div", { className: `arkynFileUpload ${b ? "hasError" : "noHasError"} ${w ? "hasFile" : "noHasFile"}`, children: [
2907
+ /* @__PURE__ */ C("div", { className: `arkynFileUpload ${b ? "hasError" : "noHasError"} ${w ? "hasFile" : "noHasFile"}`, children: [
2908
2908
  /* @__PURE__ */ f("input", { type: "hidden", name: t, value: y || "" }),
2909
2909
  !w && /* @__PURE__ */ f(
2910
2910
  ms,
2911
2911
  {
2912
2912
  disabled: h,
2913
- isLoading: D,
2913
+ isLoading: A,
2914
2914
  acceptFile: i,
2915
2915
  dropFileText: d,
2916
- handleSelectFile: A,
2916
+ handleSelectFile: I,
2917
2917
  selectFileButtonText: u
2918
2918
  }
2919
2919
  ),
@@ -2921,10 +2921,10 @@ function Ac(e) {
2921
2921
  _s,
2922
2922
  {
2923
2923
  disabled: h,
2924
- isLoading: D,
2924
+ isLoading: A,
2925
2925
  acceptFile: i,
2926
2926
  file: w,
2927
- handleSelectFile: A,
2927
+ handleSelectFile: I,
2928
2928
  changeFileButtonText: l,
2929
2929
  reSendFile: b && w ? () => j(w) : void 0
2930
2930
  }
@@ -2952,7 +2952,7 @@ function gs(e) {
2952
2952
  d && o(d);
2953
2953
  }, l.click();
2954
2954
  }
2955
- return /* @__PURE__ */ k(
2955
+ return /* @__PURE__ */ C(
2956
2956
  "div",
2957
2957
  {
2958
2958
  className: "arkynImageUploadHasFileContent",
@@ -3012,7 +3012,7 @@ function hs(e) {
3012
3012
  d && a(d);
3013
3013
  }, l.click();
3014
3014
  }
3015
- return /* @__PURE__ */ k("div", { onDrop: i, className: "arkynImageUploadNoFileContent", children: [
3015
+ return /* @__PURE__ */ C("div", { onDrop: i, className: "arkynImageUploadNoFileContent", children: [
3016
3016
  /* @__PURE__ */ f(
3017
3017
  st,
3018
3018
  {
@@ -3044,10 +3044,10 @@ 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], [C, E] = S(n), [v, w] = S(""), [H, D] = S(null), [T, j] = S(n), [A, b] = S(!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
3048
  async function O(N) {
3049
3049
  if (m) return;
3050
- b(!0), D(N), w("");
3050
+ b(!0), A(N), w("");
3051
3051
  const Y = new FormData();
3052
3052
  Y.append(o, N), await fetch(s, { method: i, body: Y }).then(async (x) => await x.json()).then((x) => {
3053
3053
  x != null && x.error ? w(x.error) : E(x == null ? void 0 : x[l]), h && h(x == null ? void 0 : x[l]);
@@ -3058,16 +3058,16 @@ function Ic(e) {
3058
3058
  function $(N) {
3059
3059
  m || (j(URL.createObjectURL(N)), O(N));
3060
3060
  }
3061
- const I = y || v;
3062
- return /* @__PURE__ */ k(ve, { children: [
3061
+ const R = y || v;
3062
+ return /* @__PURE__ */ C(ve, { children: [
3063
3063
  r && /* @__PURE__ */ f(ye, { showAsterisk: a, children: r }),
3064
- /* @__PURE__ */ k("div", { className: `arkynImageUpload ${I ? "hasError" : "noHasError"} ${T ? "hasImage" : "noHasImage"}`, children: [
3065
- /* @__PURE__ */ f("input", { type: "hidden", name: t, value: C || "" }),
3064
+ /* @__PURE__ */ C("div", { className: `arkynImageUpload ${R ? "hasError" : "noHasError"} ${T ? "hasImage" : "noHasImage"}`, children: [
3065
+ /* @__PURE__ */ f("input", { type: "hidden", name: t, value: k || "" }),
3066
3066
  !T && /* @__PURE__ */ f(
3067
3067
  hs,
3068
3068
  {
3069
3069
  disabled: m,
3070
- isLoading: A,
3070
+ isLoading: I,
3071
3071
  acceptImage: c,
3072
3072
  dropImageText: _,
3073
3073
  handleSelectFile: $,
@@ -3078,16 +3078,16 @@ function Ic(e) {
3078
3078
  gs,
3079
3079
  {
3080
3080
  disabled: m,
3081
- isLoading: A,
3081
+ isLoading: I,
3082
3082
  acceptImage: c,
3083
3083
  filePath: T,
3084
3084
  handleSelectFile: $,
3085
3085
  changeImageButtonText: u,
3086
- reSendImage: I && H ? () => O(H) : void 0
3086
+ reSendImage: R && z ? () => O(z) : void 0
3087
3087
  }
3088
3088
  )
3089
3089
  ] }),
3090
- I && /* @__PURE__ */ f(Ee, { children: I })
3090
+ R && /* @__PURE__ */ f(Ee, { children: R })
3091
3091
  ] });
3092
3092
  }
3093
3093
  function ps(e) {
@@ -3108,16 +3108,16 @@ function ps(e) {
3108
3108
  onBlur: m,
3109
3109
  errorMessage: g,
3110
3110
  showAsterisk: y,
3111
- rightIcon: C,
3111
+ rightIcon: k,
3112
3112
  type: E = "text",
3113
3113
  size: v = "md",
3114
3114
  id: w,
3115
- value: H,
3116
- placeholder: D,
3115
+ value: z,
3116
+ placeholder: A,
3117
3117
  ...T
3118
- } = e, { fieldErrors: j } = xe(), [A, b] = S(!1), O = ie(null), $ = w || Me(), I = g || (j == null ? void 0 : j[t]), z = !!I, R = n || u, N = { md: 20, lg: 20 }[v], Y = C ? "right" : "left", x = Y === "left" && u, _e = Y === "right" && u;
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;
3119
3119
  function X() {
3120
- R || !(O != null && O.current) || (b(!0), O.current.focus());
3120
+ M || !(O != null && O.current) || (b(!0), O.current.focus());
3121
3121
  }
3122
3122
  function Z(ke) {
3123
3123
  b(!0), h && h(ke);
@@ -3136,10 +3136,10 @@ function ps(e) {
3136
3136
  ...T
3137
3137
  }
3138
3138
  );
3139
- const De = `arkynInput ${c ? "hasPrefix" : ""} ${n ? "disabled" : ""} ${l ? "hasSuffix" : ""} ${s} ${v} ${R || _ || u ? "opacity" : ""} ${z ? "errored" : ""} ${A ? "focused" : ""} ${i}`;
3140
- return /* @__PURE__ */ k(ve, { children: [
3139
+ const De = `arkynInput ${c ? "hasPrefix" : ""} ${n ? "disabled" : ""} ${l ? "hasSuffix" : ""} ${s} ${v} ${M || _ || u ? "opacity" : ""} ${H ? "errored" : ""} ${I ? "focused" : ""} ${i}`;
3140
+ return /* @__PURE__ */ C(ve, { children: [
3141
3141
  o && /* @__PURE__ */ f(ye, { showAsterisk: y, htmlFor: $, children: o }),
3142
- /* @__PURE__ */ k(
3142
+ /* @__PURE__ */ C(
3143
3143
  "section",
3144
3144
  {
3145
3145
  title: r,
@@ -3161,7 +3161,7 @@ function ps(e) {
3161
3161
  /* @__PURE__ */ f(
3162
3162
  "input",
3163
3163
  {
3164
- disabled: R,
3164
+ disabled: M,
3165
3165
  readOnly: _,
3166
3166
  ref: O,
3167
3167
  onFocus: Z,
@@ -3169,12 +3169,12 @@ function ps(e) {
3169
3169
  type: E,
3170
3170
  id: $,
3171
3171
  name: t,
3172
- placeholder: R && H || D,
3173
- value: R ? void 0 : H,
3172
+ placeholder: M && z || A,
3173
+ value: M ? void 0 : z,
3174
3174
  ...T
3175
3175
  }
3176
3176
  ),
3177
- /* @__PURE__ */ f(K, { show: !u, icon: C, iconSize: N }),
3177
+ /* @__PURE__ */ f(K, { show: !u, icon: k, iconSize: N }),
3178
3178
  /* @__PURE__ */ f(
3179
3179
  K,
3180
3180
  {
@@ -3188,7 +3188,7 @@ function ps(e) {
3188
3188
  ]
3189
3189
  }
3190
3190
  ),
3191
- I && /* @__PURE__ */ f(Ee, { children: I })
3191
+ R && /* @__PURE__ */ f(Ee, { children: R })
3192
3192
  ] });
3193
3193
  }
3194
3194
  const ys = gn((e, t) => /* @__PURE__ */ f("input", { ref: t, ...e }));
@@ -3210,31 +3210,31 @@ function Rc(e) {
3210
3210
  isLoading: m = !1,
3211
3211
  leftIcon: g,
3212
3212
  readOnly: y,
3213
- onFocus: C,
3213
+ onFocus: k,
3214
3214
  onBlur: E,
3215
3215
  errorMessage: v,
3216
3216
  defaultValue: w,
3217
- showAsterisk: H,
3218
- rightIcon: D,
3217
+ showAsterisk: z,
3218
+ rightIcon: A,
3219
3219
  size: T = "md",
3220
3220
  id: j,
3221
- value: A,
3221
+ value: I,
3222
3222
  placeholder: b,
3223
3223
  ...O
3224
- } = e, { fieldErrors: $ } = xe(), [I, z] = S(!1), R = ie(null), B = j || Me(), N = v || ($ == null ? void 0 : $[t]), Y = !!N, x = n || m, X = { md: 20, lg: 20 }[T], Z = D ? "right" : "left", he = Z === "left" && m, ce = Z === "right" && m;
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;
3225
3225
  function se() {
3226
- x || !(R != null && R.current) || (z(!0), R.current.focus());
3226
+ x || !(M != null && M.current) || (H(!0), M.current.focus());
3227
3227
  }
3228
3228
  function te($e) {
3229
- z(!0), C && C($e);
3229
+ H(!0), k && k($e);
3230
3230
  }
3231
3231
  function L($e) {
3232
- z(!1), E && E($e);
3232
+ H(!1), E && E($e);
3233
3233
  }
3234
- const re = `arkynMaskedInput ${_ ? "hasPrefix" : ""} ${h ? "hasSuffix" : ""} ${s} ${T} ${x || y || m ? "opacity" : ""} ${Y ? "errored" : ""} ${I ? "focused" : ""} ${d}`;
3235
- return /* @__PURE__ */ k(ve, { children: [
3236
- u && /* @__PURE__ */ f(ye, { showAsterisk: H, htmlFor: B, children: u }),
3237
- /* @__PURE__ */ k(
3234
+ const re = `arkynMaskedInput ${_ ? "hasPrefix" : ""} ${h ? "hasSuffix" : ""} ${s} ${T} ${x || y || m ? "opacity" : ""} ${Y ? "errored" : ""} ${R ? "focused" : ""} ${d}`;
3235
+ return /* @__PURE__ */ C(ve, { children: [
3236
+ u && /* @__PURE__ */ f(ye, { showAsterisk: z, htmlFor: B, children: u }),
3237
+ /* @__PURE__ */ C(
3238
3238
  "section",
3239
3239
  {
3240
3240
  title: r,
@@ -3261,19 +3261,19 @@ function Rc(e) {
3261
3261
  replacement: l,
3262
3262
  separate: o,
3263
3263
  showMask: c,
3264
- ref: R,
3264
+ ref: M,
3265
3265
  onFocus: te,
3266
3266
  onBlur: L,
3267
3267
  disabled: x,
3268
3268
  readOnly: y,
3269
3269
  id: B,
3270
3270
  name: t,
3271
- placeholder: x && A || b,
3272
- value: x ? void 0 : A,
3271
+ placeholder: x && I || b,
3272
+ value: x ? void 0 : I,
3273
3273
  ...O
3274
3274
  }
3275
3275
  ),
3276
- /* @__PURE__ */ f(K, { show: !m, icon: D, iconSize: X }),
3276
+ /* @__PURE__ */ f(K, { show: !m, icon: A, iconSize: X }),
3277
3277
  /* @__PURE__ */ f(
3278
3278
  K,
3279
3279
  {
@@ -3307,7 +3307,7 @@ function Mc(e) {
3307
3307
  } = e;
3308
3308
  yt(t);
3309
3309
  const i = `arkynModalContainer ${t ? "visibleTrue" : "visibleFalse"} ${a}`;
3310
- return /* @__PURE__ */ f(vs, { makeInvisible: n, children: /* @__PURE__ */ f(Pr, { children: t && /* @__PURE__ */ k("aside", { className: i.trim(), ...s, children: [
3310
+ return /* @__PURE__ */ f(vs, { makeInvisible: n, children: /* @__PURE__ */ f(Pr, { children: t && /* @__PURE__ */ C("aside", { className: i.trim(), ...s, children: [
3311
3311
  /* @__PURE__ */ f(
3312
3312
  dt.div,
3313
3313
  {
@@ -3343,7 +3343,7 @@ function $c(e) {
3343
3343
  children: r,
3344
3344
  ...a
3345
3345
  } = e, { makeInvisible: s } = ks(), o = `arkynModalHeader ${n}`;
3346
- return /* @__PURE__ */ k("header", { className: o.trim(), ...a, children: [
3346
+ return /* @__PURE__ */ C("header", { className: o.trim(), ...a, children: [
3347
3347
  r,
3348
3348
  t && /* @__PURE__ */ f(
3349
3349
  "button",
@@ -3392,7 +3392,7 @@ function xs(e) {
3392
3392
  }
3393
3393
  function Es(e) {
3394
3394
  const { label: t, value: n, disabled: r, handleChangeValue: a } = e;
3395
- return /* @__PURE__ */ k("div", { className: "arkynMultiSelectMark", children: [
3395
+ return /* @__PURE__ */ C("div", { className: "arkynMultiSelectMark", children: [
3396
3396
  t,
3397
3397
  /* @__PURE__ */ f(
3398
3398
  "button",
@@ -3409,7 +3409,7 @@ function Es(e) {
3409
3409
  }
3410
3410
  function ws(e) {
3411
3411
  const { label: t, optionHasSelected: n, handleChangeValue: r, value: a, size: s } = e, o = n(a) ? "active" : "", i = `arkynMultiSelectOption ${s} ${o}`;
3412
- return /* @__PURE__ */ k("div", { onClick: () => r(a), className: i, children: [
3412
+ return /* @__PURE__ */ C("div", { onClick: () => r(a), className: i, children: [
3413
3413
  t,
3414
3414
  " ",
3415
3415
  /* @__PURE__ */ f(pn, {})
@@ -3430,7 +3430,7 @@ function Ns(e) {
3430
3430
  function l(u) {
3431
3431
  r && s(u.target.value);
3432
3432
  }
3433
- return n ? /* @__PURE__ */ k(
3433
+ return n ? /* @__PURE__ */ C(
3434
3434
  "div",
3435
3435
  {
3436
3436
  ref: o,
@@ -3485,16 +3485,16 @@ function Lc(e) {
3485
3485
  showAsterisk: m,
3486
3486
  leftIcon: g,
3487
3487
  onSearch: y,
3488
- onChange: C,
3488
+ onChange: k,
3489
3489
  onBlur: E,
3490
3490
  notFoundText: v = "Sem opções disponíveis",
3491
3491
  onFocus: w,
3492
- disabled: H = !1,
3493
- prefix: D,
3492
+ disabled: z = !1,
3493
+ prefix: A,
3494
3494
  size: T = "md",
3495
3495
  value: j,
3496
- variant: A = "solid"
3497
- } = e, { fieldErrors: b } = xe(), O = ie(null), $ = d || Me(), I = i || (b == null ? void 0 : b[t]), z = !!I, R = H || c || l, N = { md: 20, lg: 20 }[T], [Y, x] = S(""), [_e, X] = S(!1), [Z, he] = S(o), ce = j || Z;
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;
3498
3498
  function se(G) {
3499
3499
  return ce.includes(G);
3500
3500
  }
@@ -3503,7 +3503,7 @@ function Lc(e) {
3503
3503
  return (re == null ? void 0 : re.label) || "";
3504
3504
  }
3505
3505
  function L() {
3506
- R || !(O != null && O.current) || _e || (X(!0), O.current.focus(), w && w());
3506
+ M || !(O != null && O.current) || _e || (X(!0), O.current.focus(), w && w());
3507
3507
  }
3508
3508
  function ne() {
3509
3509
  X(!1), E && O.current && O.current.blur();
@@ -3512,24 +3512,24 @@ function Lc(e) {
3512
3512
  x(G), y && y(G);
3513
3513
  }
3514
3514
  function De(G) {
3515
- se(G) ? (he(Z.filter((re) => re !== G)), C && C(Z.filter((re) => re !== G))) : (he([...Z, G]), C && C([...Z, G])), s && ne();
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();
3516
3516
  }
3517
3517
  const ke = n.filter((G) => !!(e.onSearch || !e.isSearchable || G.label.toLowerCase().includes(Y.toLowerCase())));
3518
- return /* @__PURE__ */ k(ve, { children: [
3518
+ return /* @__PURE__ */ C(ve, { children: [
3519
3519
  _ && /* @__PURE__ */ f(ye, { showAsterisk: m, children: _ }),
3520
- /* @__PURE__ */ k(
3520
+ /* @__PURE__ */ C(
3521
3521
  bs,
3522
3522
  {
3523
3523
  handleContainerFocus: L,
3524
- disabled: R,
3525
- isError: z,
3524
+ disabled: M,
3525
+ isError: H,
3526
3526
  isFocused: _e,
3527
3527
  isLoading: c,
3528
3528
  readOnly: l,
3529
3529
  size: T,
3530
- variant: A,
3530
+ variant: I,
3531
3531
  className: r,
3532
- prefixExists: !!D,
3532
+ prefixExists: !!A,
3533
3533
  id: $,
3534
3534
  children: [
3535
3535
  /* @__PURE__ */ f(
@@ -3541,22 +3541,22 @@ function Lc(e) {
3541
3541
  type: "hidden"
3542
3542
  }
3543
3543
  ),
3544
- /* @__PURE__ */ f(K, { iconSize: N, icon: D, className: "prefix" }),
3544
+ /* @__PURE__ */ f(K, { iconSize: N, icon: A, className: "prefix" }),
3545
3545
  g && /* @__PURE__ */ f(g, { size: N, strokeWidth: 2.5 }),
3546
- /* @__PURE__ */ k(xs, { size: T, children: [
3546
+ /* @__PURE__ */ C(xs, { size: T, children: [
3547
3547
  ce.map((G) => /* @__PURE__ */ f(
3548
3548
  Es,
3549
3549
  {
3550
3550
  label: te(G),
3551
3551
  value: G,
3552
3552
  handleChangeValue: De,
3553
- disabled: R
3553
+ disabled: M
3554
3554
  },
3555
3555
  G
3556
3556
  )),
3557
3557
  ce.length <= 0 && /* @__PURE__ */ f("p", { children: a })
3558
3558
  ] }),
3559
- /* @__PURE__ */ k(
3559
+ /* @__PURE__ */ C(
3560
3560
  Ns,
3561
3561
  {
3562
3562
  isFocused: _e,
@@ -3582,7 +3582,7 @@ function Lc(e) {
3582
3582
  /* @__PURE__ */ f(
3583
3583
  Cs,
3584
3584
  {
3585
- disabled: R,
3585
+ disabled: M,
3586
3586
  isFocused: _e,
3587
3587
  readOnly: l,
3588
3588
  iconSize: N,
@@ -3594,7 +3594,7 @@ function Lc(e) {
3594
3594
  ]
3595
3595
  }
3596
3596
  ),
3597
- I && /* @__PURE__ */ f(Ee, { children: I })
3597
+ R && /* @__PURE__ */ f(Ee, { children: R })
3598
3598
  ] });
3599
3599
  }
3600
3600
  function bn(e) {
@@ -3684,7 +3684,7 @@ function Is(e) {
3684
3684
  }
3685
3685
  function Rs(e) {
3686
3686
  const { country: t, isActive: n, handleChangeValue: r, size: a } = e, o = `arkynPhoneInputCountryOption ${a} ${n ? "active" : ""}`;
3687
- return /* @__PURE__ */ k("div", { onClick: () => r(t), className: o, children: [
3687
+ return /* @__PURE__ */ C("div", { onClick: () => r(t), className: o, children: [
3688
3688
  /* @__PURE__ */ f("img", { src: t.flag, alt: t.name, className: "flag" }),
3689
3689
  t.name,
3690
3690
  " ",
@@ -3706,7 +3706,7 @@ function Ms(e) {
3706
3706
  const _ = d.getBoundingClientRect(), h = window.innerHeight, m = 300;
3707
3707
  h - _.bottom < m && _.top > m ? c("top") : c("bottom");
3708
3708
  })();
3709
- }, [n]), n ? /* @__PURE__ */ k(
3709
+ }, [n]), n ? /* @__PURE__ */ C(
3710
3710
  "div",
3711
3711
  {
3712
3712
  className: `arkynPhoneInputCountryOptionsContainer ${i}`,
@@ -3731,7 +3731,7 @@ function Ms(e) {
3731
3731
  }
3732
3732
  function Ds(e) {
3733
3733
  const { currentCountry: t, onClick: n } = e;
3734
- return /* @__PURE__ */ k("div", { className: "phoneInputSelectCountry", onClick: n, children: [
3734
+ return /* @__PURE__ */ C("div", { className: "phoneInputSelectCountry", onClick: n, children: [
3735
3735
  /* @__PURE__ */ f(
3736
3736
  "img",
3737
3737
  {
@@ -3813,13 +3813,13 @@ function jc(e) {
3813
3813
  searchCountryPlaceholder: m = "Pesquisar país",
3814
3814
  notFoundCountryText: g = "Nenhum país encontrado",
3815
3815
  id: y
3816
- } = e, C = Ps(l), [E, v] = S(!1), [w, H] = S(""), [D, T] = S(!1), [j, A] = S(C.formattedNumber || ""), [b, O] = S(() => {
3817
- if (C.country) return C.country;
3816
+ } = e, k = Ps(l), [E, v] = S(!1), [w, z] = S(""), [A, T] = S(!1), [j, I] = S(k.formattedNumber || ""), [b, O] = S(() => {
3817
+ if (k.country) return k.country;
3818
3818
  const L = rt.find((ne) => ne.iso === t);
3819
3819
  return L || rt[30];
3820
- }), { fieldErrors: $ } = xe(), I = ie(null), z = y || Me(), R = s || ($ == null ? void 0 : $[_]), B = !!R, N = a || o, Y = ie(null);
3820
+ }), { fieldErrors: $ } = xe(), R = ie(null), H = y || Me(), M = s || ($ == null ? void 0 : $[_]), B = !!M, N = a || o, Y = ie(null);
3821
3821
  function x() {
3822
- N || E || D || (v(!0), Y.current && Y.current.focus());
3822
+ N || E || A || (v(!0), Y.current && Y.current.focus());
3823
3823
  }
3824
3824
  function _e() {
3825
3825
  T(!0), v(!0);
@@ -3843,12 +3843,12 @@ function jc(e) {
3843
3843
  let ne = b.code;
3844
3844
  return b.prefix && (ne += `-${b.prefix}`), ne += " ", ne += se(L || j), ne;
3845
3845
  }
3846
- return /* @__PURE__ */ k(ve, { children: [
3846
+ return /* @__PURE__ */ C(ve, { children: [
3847
3847
  n && /* @__PURE__ */ f(ye, { showAsterisk: d, children: n }),
3848
- /* @__PURE__ */ k(
3848
+ /* @__PURE__ */ C(
3849
3849
  As,
3850
3850
  {
3851
- id: z,
3851
+ id: H,
3852
3852
  disabled: N,
3853
3853
  isError: B,
3854
3854
  isLoading: o,
@@ -3867,20 +3867,20 @@ function jc(e) {
3867
3867
  size: c
3868
3868
  }
3869
3869
  ),
3870
- /* @__PURE__ */ k(
3870
+ /* @__PURE__ */ C(
3871
3871
  Ms,
3872
3872
  {
3873
- isOpen: N || i ? !1 : D,
3873
+ isOpen: N || i ? !1 : A,
3874
3874
  search: w,
3875
3875
  placeholder: m,
3876
- onSearch: H,
3876
+ onSearch: z,
3877
3877
  children: [
3878
3878
  rt.filter((L) => ce(L)).map((L) => /* @__PURE__ */ f(
3879
3879
  Rs,
3880
3880
  {
3881
3881
  country: L,
3882
3882
  handleChangeValue: () => {
3883
- O(L), T(!1), A(L.mask);
3883
+ O(L), T(!1), I(L.mask);
3884
3884
  },
3885
3885
  isActive: L.iso === b.iso,
3886
3886
  size: c
@@ -3894,7 +3894,7 @@ function jc(e) {
3894
3894
  /* @__PURE__ */ f(
3895
3895
  Is,
3896
3896
  {
3897
- isOpen: N || i ? !1 : D,
3897
+ isOpen: N || i ? !1 : A,
3898
3898
  onClick: X
3899
3899
  }
3900
3900
  ),
@@ -3910,14 +3910,14 @@ function jc(e) {
3910
3910
  onFocus: Z,
3911
3911
  size: c,
3912
3912
  onChange: (L) => {
3913
- A(L), h && h(te(L));
3913
+ I(L), h && h(te(L));
3914
3914
  }
3915
3915
  }
3916
3916
  ),
3917
3917
  /* @__PURE__ */ f(
3918
3918
  "input",
3919
3919
  {
3920
- ref: I,
3920
+ ref: R,
3921
3921
  type: "hidden",
3922
3922
  name: _,
3923
3923
  value: te()
@@ -3926,7 +3926,7 @@ function jc(e) {
3926
3926
  ]
3927
3927
  }
3928
3928
  ),
3929
- R && /* @__PURE__ */ f(Ee, { children: R })
3929
+ M && /* @__PURE__ */ f(Ee, { children: M })
3930
3930
  ] });
3931
3931
  }
3932
3932
  function Bc(e) {
@@ -3940,7 +3940,7 @@ function Bc(e) {
3940
3940
  function u() {
3941
3941
  o || i(!0);
3942
3942
  }
3943
- return yt(o), /* @__PURE__ */ k("div", { className: l, onClick: u, children: [
3943
+ return yt(o), /* @__PURE__ */ C("div", { className: l, onClick: u, children: [
3944
3944
  n,
3945
3945
  /* @__PURE__ */ f(
3946
3946
  dt.div,
@@ -3960,8 +3960,14 @@ function Bc(e) {
3960
3960
  }
3961
3961
  const Hr = Se({});
3962
3962
  function js(e) {
3963
- const { children: t, size: n, isError: r, handleChange: a, value: s } = e;
3964
- return /* @__PURE__ */ f(Hr.Provider, { value: { handleChange: a, value: s, size: n, isError: r }, children: t });
3963
+ const { children: t, size: n, isError: r, handleChange: a, value: s, disabled: o } = e;
3964
+ return /* @__PURE__ */ f(
3965
+ Hr.Provider,
3966
+ {
3967
+ value: { handleChange: a, value: s, size: n, isError: r, disabled: o },
3968
+ children: t
3969
+ }
3970
+ );
3965
3971
  }
3966
3972
  function Bs() {
3967
3973
  return Re(Hr);
@@ -3973,17 +3979,31 @@ function zc(e) {
3973
3979
  disabled: r,
3974
3980
  children: a,
3975
3981
  className: s = "",
3976
- ...o
3977
- } = e, { handleChange: i, size: c, value: l, isError: u } = Bs(), y = `arkynRadioBox ${n || c} ${l === t ? "checkedTrue" : "checkedFalse"} ${u ? "errorTrue" : "errorFalse"} ${r ? "disabledTrue" : "disabledFalse"} ${s}`;
3978
- return /* @__PURE__ */ k("label", { className: y.trim(), children: [
3982
+ onClick: o,
3983
+ onFocus: i,
3984
+ ...c
3985
+ } = e, {
3986
+ handleChange: l,
3987
+ size: u,
3988
+ value: d,
3989
+ isError: _,
3990
+ disabled: h
3991
+ } = 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
+ }
3995
+ function A(T) {
3996
+ i && i(T), l(t);
3997
+ }
3998
+ return /* @__PURE__ */ C("label", { className: w.trim(), children: [
3979
3999
  /* @__PURE__ */ f(
3980
4000
  "button",
3981
4001
  {
3982
4002
  type: "button",
3983
- disabled: r,
3984
- onClick: () => i(t),
3985
- onFocus: () => i(t),
3986
- ...o
4003
+ disabled: y,
4004
+ onClick: z,
4005
+ onFocus: A,
4006
+ ...c
3987
4007
  }
3988
4008
  ),
3989
4009
  a
@@ -4000,21 +4020,23 @@ function Hc(e) {
4000
4020
  onChange: i,
4001
4021
  size: c = "md",
4002
4022
  className: l = "",
4003
- ...u
4004
- } = e, [d, _] = S(t), { fieldErrors: h } = xe();
4005
- function m(E) {
4006
- _(E), i && i(E);
4023
+ disabled: u = !1,
4024
+ ...d
4025
+ } = e, [_, h] = S(t), { fieldErrors: m } = xe();
4026
+ function g(v) {
4027
+ h(v), i && i(v);
4007
4028
  }
4008
- const g = s || (h == null ? void 0 : h[n]), y = !!g, C = `arkynRadioGroup ${c} ${l}`;
4009
- return /* @__PURE__ */ k(ve, { children: [
4029
+ const y = s || (m == null ? void 0 : m[n]), k = !!y, E = `arkynRadioGroup ${c} ${l}`;
4030
+ return /* @__PURE__ */ C(ve, { children: [
4010
4031
  r && /* @__PURE__ */ f(ye, { showAsterisk: a, children: r }),
4011
- /* @__PURE__ */ k(
4032
+ /* @__PURE__ */ C(
4012
4033
  js,
4013
4034
  {
4014
- isError: y,
4035
+ isError: k,
4015
4036
  size: c,
4016
- value: o || d,
4017
- handleChange: m,
4037
+ value: o || _,
4038
+ handleChange: g,
4039
+ disabled: u,
4018
4040
  children: [
4019
4041
  /* @__PURE__ */ f(
4020
4042
  "input",
@@ -4023,14 +4045,14 @@ function Hc(e) {
4023
4045
  type: "text",
4024
4046
  readOnly: !0,
4025
4047
  name: n,
4026
- value: o || d
4048
+ value: o || _
4027
4049
  }
4028
4050
  ),
4029
- /* @__PURE__ */ f("div", { className: C.trim(), ...u })
4051
+ /* @__PURE__ */ f("div", { className: E.trim(), ...d })
4030
4052
  ]
4031
4053
  }
4032
4054
  ),
4033
- g && /* @__PURE__ */ f(Ee, { children: g })
4055
+ y && /* @__PURE__ */ f(Ee, { children: y })
4034
4056
  ] });
4035
4057
  }
4036
4058
  function Gc(e) {
@@ -4047,12 +4069,12 @@ function Gc(e) {
4047
4069
  id: u,
4048
4070
  orientation: d = "horizontalReverse",
4049
4071
  ..._
4050
- } = e, h = ie(null), m = u || Me(), [g, y] = S(r), C = typeof a == "boolean" ? a : g;
4072
+ } = e, h = ie(null), m = u || Me(), [g, y] = S(r), k = typeof a == "boolean" ? a : g;
4051
4073
  function E() {
4052
- y(!g), l && l(C ? o : s || "checked");
4074
+ y(!g), l && l(k ? o : s || "checked");
4053
4075
  }
4054
- const w = `arkynSwitch ${C ? "checkedTrue" : "checkedFalse"} ${n} ${c}`;
4055
- return /* @__PURE__ */ k(ve, { orientation: d, children: [
4076
+ const w = `arkynSwitch ${k ? "checkedTrue" : "checkedFalse"} ${n} ${c}`;
4077
+ return /* @__PURE__ */ C(ve, { orientation: d, children: [
4056
4078
  t && /* @__PURE__ */ f(ye, { children: t }),
4057
4079
  /* @__PURE__ */ f(
4058
4080
  "button",
@@ -4069,7 +4091,7 @@ function Gc(e) {
4069
4091
  name: i,
4070
4092
  ref: h,
4071
4093
  onClick: E,
4072
- value: C ? s || "checked" : o
4094
+ value: k ? s || "checked" : o
4073
4095
  }
4074
4096
  )
4075
4097
  }
@@ -4148,14 +4170,14 @@ function Kc(e) {
4148
4170
  }
4149
4171
  function Xc(e) {
4150
4172
  const { className: t, children: n, ...r } = e, a = `arkynTableFooter ${t}`;
4151
- return /* @__PURE__ */ k("tfoot", { className: a.trim(), ...r, children: [
4173
+ return /* @__PURE__ */ C("tfoot", { className: a.trim(), ...r, children: [
4152
4174
  /* @__PURE__ */ f("tr", { className: "spacingRow" }),
4153
4175
  /* @__PURE__ */ f("tr", { children: /* @__PURE__ */ f("th", { colSpan: 100, children: /* @__PURE__ */ f("div", { className: "arkynTableFooterContent", children: n }) }) })
4154
4176
  ] });
4155
4177
  }
4156
4178
  function Yc(e) {
4157
4179
  const { className: t, children: n, ...r } = e, a = `arkynTableHeader ${t}`;
4158
- return /* @__PURE__ */ k("thead", { className: a.trim(), ...r, children: [
4180
+ return /* @__PURE__ */ C("thead", { className: a.trim(), ...r, children: [
4159
4181
  /* @__PURE__ */ f("tr", { children: n }),
4160
4182
  /* @__PURE__ */ f("tr", { className: "spacingRow" })
4161
4183
  ] });
@@ -4178,35 +4200,35 @@ function Zc(e) {
4178
4200
  value: m,
4179
4201
  defaultValue: g,
4180
4202
  placeholder: y,
4181
- id: C,
4203
+ id: k,
4182
4204
  ...E
4183
- } = e, { fieldErrors: v } = xe(), [w, H] = S(!1), D = ie(null), T = C || Me(), j = a || (v == null ? void 0 : v[l]), I = `arkynTextarea ${t} ${n} ${s || o ? "opacityTrue" : "opacityFalse"} ${!!j ? "errorTrue" : "errorFalse"} ${w ? "focusedTrue" : "focusedFalse"} ${r}`;
4184
- function z() {
4185
- s || !(D != null && D.current) || (H(!0), D.current.focus());
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());
4186
4208
  }
4187
- function R(N) {
4188
- H(!0), u && u(N);
4209
+ function M(N) {
4210
+ z(!0), u && u(N);
4189
4211
  }
4190
4212
  function B(N) {
4191
- H(!1), d && d(N);
4213
+ z(!1), d && d(N);
4192
4214
  }
4193
- return /* @__PURE__ */ k(ve, { children: [
4215
+ return /* @__PURE__ */ C(ve, { children: [
4194
4216
  i && /* @__PURE__ */ f(ye, { showAsterisk: c, children: i }),
4195
4217
  /* @__PURE__ */ f(
4196
4218
  "section",
4197
4219
  {
4198
4220
  title: _,
4199
4221
  style: h,
4200
- onClick: z,
4201
- className: I,
4222
+ onClick: H,
4223
+ className: R,
4202
4224
  children: /* @__PURE__ */ f(
4203
4225
  "textarea",
4204
4226
  {
4205
4227
  id: T,
4206
4228
  disabled: s,
4207
4229
  readOnly: o,
4208
- ref: D,
4209
- onFocus: R,
4230
+ ref: A,
4231
+ onFocus: M,
4210
4232
  onBlur: B,
4211
4233
  placeholder: s && m || y,
4212
4234
  value: s ? void 0 : m,
@@ -4487,7 +4509,7 @@ var ro = 1e3, ao = (e, t = "default") => {
4487
4509
  }, [o]), l = nt(() => {
4488
4510
  r && o({ type: 6, time: Date.now() });
4489
4511
  }, [r, o]), u = nt((d, _) => {
4490
- let { reverseOrder: h = !1, gutter: m = 8, defaultPosition: g } = _ || {}, y = n.filter((v) => (v.position || g) === (d.position || g) && v.height), C = y.findIndex((v) => v.id === d.id), E = y.filter((v, w) => w < C && v.visible).length;
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;
4491
4513
  return y.filter((v) => v.visible).slice(...h ? [E + 1] : [0, E]).reduce((v, w) => v + (w.height || 0) + m, 0);
4492
4514
  }, [n]);
4493
4515
  return be(() => {
@@ -4741,7 +4763,7 @@ function rl({ children: e }) {
4741
4763
  });
4742
4764
  }
4743
4765
  }
4744
- return /* @__PURE__ */ k(Ao.Provider, { value: { showToast: t }, children: [
4766
+ return /* @__PURE__ */ C(Ao.Provider, { value: { showToast: t }, children: [
4745
4767
  /* @__PURE__ */ f(
4746
4768
  Po,
4747
4769
  {
@@ -5462,7 +5484,7 @@ var qo = (e, t, n) => {
5462
5484
  if (o > s.children.length)
5463
5485
  throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r, "] because the destination is past the end of the node."));
5464
5486
  if (s.children.splice(o, 0, a), t)
5465
- for (var [i, c] of M.points(t))
5487
+ for (var [i, c] of D.points(t))
5466
5488
  t[c] = U.transform(i, n);
5467
5489
  break;
5468
5490
  }
@@ -5475,37 +5497,37 @@ var qo = (e, t, n) => {
5475
5497
  if (d.length === 0) break;
5476
5498
  var _ = F.leaf(e, l), h = _.text.slice(0, u), m = _.text.slice(u);
5477
5499
  if (_.text = h + d + m, t)
5478
- for (var [g, y] of M.points(t))
5500
+ for (var [g, y] of D.points(t))
5479
5501
  t[y] = U.transform(g, n);
5480
5502
  break;
5481
5503
  }
5482
5504
  case "merge_node": {
5483
5505
  var {
5484
- path: C
5485
- } = n, E = F.get(e, C), v = p.previous(C), w = F.get(e, v), H = F.parent(e, C), D = C[C.length - 1];
5506
+ 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];
5486
5508
  if (W.isText(E) && W.isText(w))
5487
5509
  w.text += E.text;
5488
5510
  else if (!W.isText(E) && !W.isText(w))
5489
5511
  w.children.push(...E.children);
5490
5512
  else
5491
- throw new Error('Cannot apply a "merge_node" operation at path ['.concat(C, "] to nodes of different interfaces: ").concat(Ne.stringify(E), " ").concat(Ne.stringify(w)));
5492
- if (H.children.splice(D, 1), t)
5493
- for (var [T, j] of M.points(t))
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))
5494
5516
  t[j] = U.transform(T, n);
5495
5517
  break;
5496
5518
  }
5497
5519
  case "move_node": {
5498
5520
  var {
5499
- path: A,
5521
+ path: I,
5500
5522
  newPath: b
5501
5523
  } = n;
5502
- if (p.isAncestor(A, b))
5503
- throw new Error("Cannot move a path [".concat(A, "] to new path [").concat(b, "] because the destination is inside itself."));
5504
- var O = F.get(e, A), $ = F.parent(e, A), I = A[A.length - 1];
5505
- $.children.splice(I, 1);
5506
- var z = p.transform(A, n), R = F.get(e, p.parent(z)), B = z[z.length - 1];
5507
- if (R.children.splice(B, 0, O), t)
5508
- for (var [N, Y] of M.points(t))
5524
+ if (p.isAncestor(I, b))
5525
+ 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];
5527
+ $.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))
5509
5531
  t[Y] = U.transform(N, n);
5510
5532
  break;
5511
5533
  }
@@ -5514,7 +5536,7 @@ var qo = (e, t, n) => {
5514
5536
  path: x
5515
5537
  } = n, _e = x[x.length - 1], X = F.parent(e, x);
5516
5538
  if (X.children.splice(_e, 1), t)
5517
- for (var [Z, he] of M.points(t)) {
5539
+ for (var [Z, he] of D.points(t)) {
5518
5540
  var ce = U.transform(Z, n);
5519
5541
  if (t != null && ce != null)
5520
5542
  t[he] = ce;
@@ -5542,7 +5564,7 @@ var qo = (e, t, n) => {
5542
5564
  if (G.length === 0) break;
5543
5565
  var re = F.leaf(e, De), $e = re.text.slice(0, ke), qt = re.text.slice(ke + G.length);
5544
5566
  if (re.text = $e + qt, t)
5545
- for (var [ue, Le] of M.points(t))
5567
+ for (var [ue, Le] of D.points(t))
5546
5568
  t[Le] = U.transform(ue, n);
5547
5569
  break;
5548
5570
  }
@@ -5573,7 +5595,7 @@ var qo = (e, t, n) => {
5573
5595
  t = Ue;
5574
5596
  else {
5575
5597
  if (t == null) {
5576
- if (!M.isRange(Ue))
5598
+ if (!D.isRange(Ue))
5577
5599
  throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Ne.stringify(Ue), " when there is no current selection."));
5578
5600
  t = it({}, Ue);
5579
5601
  }
@@ -5610,7 +5632,7 @@ var qo = (e, t, n) => {
5610
5632
  });
5611
5633
  }
5612
5634
  if (Ta.children.splice(Oa + 1, 0, Xt), t)
5613
- for (var [Ma, Da] of M.points(t))
5635
+ for (var [Ma, Da] of D.points(t))
5614
5636
  t[Da] = U.transform(Ma, n);
5615
5637
  break;
5616
5638
  }
@@ -5732,7 +5754,7 @@ function Jo(e) {
5732
5754
  }
5733
5755
  return e;
5734
5756
  }
5735
- var M = {
5757
+ var D = {
5736
5758
  edges(e) {
5737
5759
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
5738
5760
  reverse: n = !1
@@ -5740,27 +5762,27 @@ var M = {
5740
5762
  anchor: r,
5741
5763
  focus: a
5742
5764
  } = e;
5743
- return M.isBackward(e) === n ? [r, a] : [a, r];
5765
+ return D.isBackward(e) === n ? [r, a] : [a, r];
5744
5766
  },
5745
5767
  end(e) {
5746
- var [, t] = M.edges(e);
5768
+ var [, t] = D.edges(e);
5747
5769
  return t;
5748
5770
  },
5749
5771
  equals(e, t) {
5750
5772
  return U.equals(e.anchor, t.anchor) && U.equals(e.focus, t.focus);
5751
5773
  },
5752
5774
  includes(e, t) {
5753
- if (M.isRange(t)) {
5754
- if (M.includes(e, t.anchor) || M.includes(e, t.focus))
5775
+ if (D.isRange(t)) {
5776
+ if (D.includes(e, t.anchor) || D.includes(e, t.focus))
5755
5777
  return !0;
5756
- var [n, r] = M.edges(e), [a, s] = M.edges(t);
5778
+ var [n, r] = D.edges(e), [a, s] = D.edges(t);
5757
5779
  return U.isBefore(n, a) && U.isAfter(r, s);
5758
5780
  }
5759
- var [o, i] = M.edges(e), c = !1, l = !1;
5781
+ var [o, i] = D.edges(e), c = !1, l = !1;
5760
5782
  return U.isPoint(t) ? (c = U.compare(t, o) >= 0, l = U.compare(t, i) <= 0) : (c = p.compare(t, o.path) >= 0, l = p.compare(t, i.path) <= 0), c && l;
5761
5783
  },
5762
5784
  intersection(e, t) {
5763
- var n = ht(e, Zo), [r, a] = M.edges(e), [s, o] = M.edges(t), i = U.isBefore(r, s) ? s : r, c = U.isBefore(a, o) ? a : o;
5785
+ var n = ht(e, Zo), [r, a] = D.edges(e), [s, o] = D.edges(t), i = U.isBefore(r, s) ? s : r, c = U.isBefore(a, o) ? a : o;
5764
5786
  return U.isBefore(c, i) ? null : Jo({
5765
5787
  anchor: i,
5766
5788
  focus: c
@@ -5781,10 +5803,10 @@ var M = {
5781
5803
  return U.equals(t, n);
5782
5804
  },
5783
5805
  isExpanded(e) {
5784
- return !M.isCollapsed(e);
5806
+ return !D.isCollapsed(e);
5785
5807
  },
5786
5808
  isForward(e) {
5787
- return !M.isBackward(e);
5809
+ return !D.isBackward(e);
5788
5810
  },
5789
5811
  isRange(e) {
5790
5812
  return oe(e) && U.isPoint(e.anchor) && U.isPoint(e.focus);
@@ -5793,7 +5815,7 @@ var M = {
5793
5815
  yield [e.anchor, "anchor"], yield [e.focus, "focus"];
5794
5816
  },
5795
5817
  start(e) {
5796
- var [t] = M.edges(e);
5818
+ var [t] = D.edges(e);
5797
5819
  return t;
5798
5820
  },
5799
5821
  transform(e, t) {
@@ -5805,9 +5827,9 @@ var M = {
5805
5827
  affinity: a = "inward"
5806
5828
  } = n, s, o;
5807
5829
  if (a === "inward") {
5808
- var i = M.isCollapsed(r);
5809
- M.isForward(r) ? (s = "forward", o = i ? s : "backward") : (s = "backward", o = i ? s : "forward");
5810
- } else a === "outward" ? M.isForward(r) ? (s = "backward", o = "forward") : (s = "forward", o = "backward") : (s = a, o = a);
5830
+ var i = D.isCollapsed(r);
5831
+ D.isForward(r) ? (s = "forward", o = i ? s : "backward") : (s = "backward", o = i ? s : "forward");
5832
+ } else a === "outward" ? D.isForward(r) ? (s = "backward", o = "forward") : (s = "forward", o = "backward") : (s = a, o = a);
5811
5833
  var c = U.transform(r.anchor, t, {
5812
5834
  affinity: s
5813
5835
  }), l = U.transform(r.focus, t, {
@@ -5920,15 +5942,15 @@ var M = {
5920
5942
  var n = Fn({
5921
5943
  children: e.children
5922
5944
  }, (r) => {
5923
- var [a, s] = M.edges(t), o = F.nodes(r, {
5945
+ var [a, s] = D.edges(t), o = F.nodes(r, {
5924
5946
  reverse: !0,
5925
5947
  pass: (_) => {
5926
5948
  var [, h] = _;
5927
- return !M.includes(t, h);
5949
+ return !D.includes(t, h);
5928
5950
  }
5929
5951
  });
5930
5952
  for (var [, i] of o) {
5931
- if (!M.includes(t, i)) {
5953
+ if (!D.includes(t, i)) {
5932
5954
  var c = F.parent(r, i), l = i[i.length - 1];
5933
5955
  c.children.splice(l, 1);
5934
5956
  }
@@ -6095,7 +6117,7 @@ var ct = {
6095
6117
  case "set_node":
6096
6118
  return p.isPath(e.path) && oe(e.properties) && oe(e.newProperties);
6097
6119
  case "set_selection":
6098
- return e.properties === null && M.isRange(e.newProperties) || e.newProperties === null && M.isRange(e.properties) || oe(e.properties) && oe(e.newProperties);
6120
+ return e.properties === null && D.isRange(e.newProperties) || e.newProperties === null && D.isRange(e.properties) || oe(e.properties) && oe(e.newProperties);
6099
6121
  case "split_node":
6100
6122
  return p.isPath(e.path) && typeof e.position == "number" && oe(e.properties);
6101
6123
  default:
@@ -6191,7 +6213,7 @@ var ct = {
6191
6213
  return t;
6192
6214
  if (!oe(e))
6193
6215
  return !1;
6194
- 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 || M.isRange(e.selection)) && F.isNodeList(e.children) && ct.isOperationList(e.operations);
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);
6195
6217
  return cr.set(e, n), n;
6196
6218
  }, pe = {
6197
6219
  above(e, t) {
@@ -6525,7 +6547,7 @@ var W = {
6525
6547
  decorations(e, t) {
6526
6548
  var n = [Pe({}, e)];
6527
6549
  for (var r of t) {
6528
- var a = ht(r, ri), [s, o] = M.edges(r), i = [], c = 0, l = s.offset, u = o.offset;
6550
+ var a = ht(r, ri), [s, o] = D.edges(r), i = [], c = 0, l = s.offset, u = o.offset;
6529
6551
  for (var d of n) {
6530
6552
  var {
6531
6553
  length: _
@@ -6540,11 +6562,11 @@ var W = {
6540
6562
  }
6541
6563
  var m = d, g = void 0, y = void 0;
6542
6564
  if (u < c) {
6543
- var C = u - h;
6565
+ var k = u - h;
6544
6566
  y = Pe(Pe({}, m), {}, {
6545
- text: m.text.slice(C)
6567
+ text: m.text.slice(k)
6546
6568
  }), m = Pe(Pe({}, m), {}, {
6547
- text: m.text.slice(0, C)
6569
+ text: m.text.slice(0, k)
6548
6570
  });
6549
6571
  }
6550
6572
  if (l > h) {
@@ -6581,16 +6603,16 @@ var si = {
6581
6603
  } = n, {
6582
6604
  at: a = ai(e)
6583
6605
  } = n;
6584
- if (p.isPath(a) && (a = pe.range(e, a)), M.isRange(a))
6585
- if (M.isCollapsed(a))
6606
+ if (p.isPath(a) && (a = pe.range(e, a)), D.isRange(a))
6607
+ if (D.isCollapsed(a))
6586
6608
  a = a.anchor;
6587
6609
  else {
6588
- var s = M.end(a);
6610
+ var s = D.end(a);
6589
6611
  if (!r && pe.void(e, {
6590
6612
  at: s
6591
6613
  }))
6592
6614
  return;
6593
- var o = M.start(a), i = pe.pointRef(e, o), c = pe.pointRef(e, s);
6615
+ var o = D.start(a), i = pe.pointRef(e, o), c = pe.pointRef(e, s);
6594
6616
  mr.delete(e, {
6595
6617
  at: a,
6596
6618
  voids: r
@@ -8307,12 +8329,12 @@ var $n = {}, Ln = {}, Cr = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ai = /\n/g, Ii = /
8307
8329
  var m = s(), g = c(Ri);
8308
8330
  if (g) {
8309
8331
  if (d(), !c(Mi)) return i("property missing ':'");
8310
- var y = c(Di), C = m({
8332
+ var y = c(Di), k = m({
8311
8333
  type: zi,
8312
8334
  property: Er(g[0].replace(Cr, Ke)),
8313
8335
  value: y ? Er(y[0].replace(Cr, Ke)) : Ke
8314
8336
  });
8315
- return c($i), C;
8337
+ return c($i), k;
8316
8338
  }
8317
8339
  }
8318
8340
  function h() {