@arkyn/components 3.0.1-beta.144 → 3.0.1-beta.146

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.
Files changed (71) hide show
  1. package/dist/bundle.css +1 -1
  2. package/dist/bundle.js +748 -243
  3. package/dist/components/fullCalendar/_fullCalendarProvider.d.ts +35 -0
  4. package/dist/components/fullCalendar/_fullCalendarProvider.d.ts.map +1 -0
  5. package/dist/components/fullCalendar/_fullCalendarProvider.js +33 -0
  6. package/dist/components/fullCalendar/_viewService.d.ts +28 -0
  7. package/dist/components/fullCalendar/_viewService.d.ts.map +1 -0
  8. package/dist/components/fullCalendar/_viewService.js +144 -0
  9. package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.d.ts +8 -0
  10. package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.d.ts.map +1 -0
  11. package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +6 -0
  12. package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.d.ts +7 -0
  13. package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.d.ts.map +1 -0
  14. package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +101 -0
  15. package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.d.ts +8 -0
  16. package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.d.ts.map +1 -0
  17. package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +9 -0
  18. package/dist/components/fullCalendar/dayCalendar/index.d.ts +3 -0
  19. package/dist/components/fullCalendar/dayCalendar/index.d.ts.map +1 -0
  20. package/dist/components/fullCalendar/dayCalendar/index.js +9 -0
  21. package/dist/components/fullCalendar/fullCalendarContainer/index.d.ts +8 -0
  22. package/dist/components/fullCalendar/fullCalendarContainer/index.d.ts.map +1 -0
  23. package/dist/components/fullCalendar/fullCalendarContainer/index.js +6 -0
  24. package/dist/components/fullCalendar/fullCalendarHeader/index.d.ts +8 -0
  25. package/dist/components/fullCalendar/fullCalendarHeader/index.d.ts.map +1 -0
  26. package/dist/components/fullCalendar/fullCalendarHeader/index.js +37 -0
  27. package/dist/components/fullCalendar/index.d.ts +78 -0
  28. package/dist/components/fullCalendar/index.d.ts.map +1 -0
  29. package/dist/components/fullCalendar/index.js +62 -0
  30. package/dist/components/fullCalendar/monthlyCalendar/index.d.ts +3 -0
  31. package/dist/components/fullCalendar/monthlyCalendar/index.d.ts.map +1 -0
  32. package/dist/components/fullCalendar/monthlyCalendar/index.js +8 -0
  33. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.d.ts +9 -0
  34. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.d.ts.map +1 -0
  35. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +25 -0
  36. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.d.ts +4 -0
  37. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.d.ts.map +1 -0
  38. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +9 -0
  39. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.d.ts +8 -0
  40. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.d.ts.map +1 -0
  41. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +6 -0
  42. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.d.ts +4 -0
  43. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.d.ts.map +1 -0
  44. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +9 -0
  45. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.d.ts +10 -0
  46. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.d.ts.map +1 -0
  47. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +14 -0
  48. package/dist/components/fullCalendar/weekCalendar/index.d.ts +3 -0
  49. package/dist/components/fullCalendar/weekCalendar/index.d.ts.map +1 -0
  50. package/dist/components/fullCalendar/weekCalendar/index.js +8 -0
  51. package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.d.ts +10 -0
  52. package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.d.ts.map +1 -0
  53. package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +98 -0
  54. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.d.ts +4 -0
  55. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.d.ts.map +1 -0
  56. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +11 -0
  57. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.d.ts +8 -0
  58. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.d.ts.map +1 -0
  59. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +6 -0
  60. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.d.ts +4 -0
  61. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.d.ts.map +1 -0
  62. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +10 -0
  63. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.d.ts +11 -0
  64. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.d.ts.map +1 -0
  65. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +14 -0
  66. package/dist/components/phoneInput/index.d.ts +2 -2
  67. package/dist/components/phoneInput/index.js +2 -2
  68. package/dist/index.d.ts +1 -0
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/index.js +1 -0
  71. package/package.json +1 -1
package/dist/bundle.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Children as e, cloneElement as t, createContext as n, forwardRef as r, useCallback as i, useContext as a, useEffect as o, useId as s, useMemo as c, useRef as l, useState as u, useSyncExternalStore as d } from "react";
2
2
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
3
3
  import { AlertTriangle as h, AlignCenter as g, AlignJustify as _, AlignLeft as v, AlignRight as y, Bold as b, Check as x, CheckCircle2 as S, ChevronDown as C, ChevronLeft as w, ChevronRight as T, Code as E, Ellipsis as D, File as O, FileArchive as k, FileAudio as A, FileImage as j, Heading1 as M, Heading2 as N, Image as P, Info as F, Italic as I, Loader2 as L, MapPinned as R, Pause as z, Play as B, Quote as V, RefreshCw as H, Search as U, Underline as W, Video as G, X as K, XCircle as q } from "lucide-react";
4
- import { findCountryMask as ee, formatToCapitalizeFirstWordLetter as te, formatToCurrency as J, formatToPhone as ne, removeNonNumeric as re } from "@arkyn/shared";
4
+ import { findCountryMask as ee, formatToCapitalizeFirstWordLetter as J, formatToCurrency as te, formatToPhone as ne, removeNonNumeric as re } from "@arkyn/shared";
5
5
  import { AnimatePresence as ie, motion as Y } from "framer-motion";
6
6
  import ae from "mapbox-gl";
7
7
  import { createRoot as oe } from "react-dom/client";
@@ -533,7 +533,7 @@ var Ye = class {
533
533
  return String(e.getFullYear());
534
534
  }
535
535
  capitalize(e) {
536
- return te(e);
536
+ return J(e);
537
537
  }
538
538
  parseDayType(e, t, n, r) {
539
539
  let i = r[0].getDate(), a = r[0].getMonth(), o = r[0].getFullYear(), s = r[1].getDate(), c = r[1].getMonth(), l = r[1].getFullYear(), u = new Date(o, a, i), d = new Date(l, c, s), f = new Date(n, t, e);
@@ -924,17 +924,17 @@ function ut(e) {
924
924
  function ee(e) {
925
925
  return n.find((t) => t.value === e)?.label || "";
926
926
  }
927
- function te() {
927
+ function J() {
928
928
  R || !P?.current || H || (U(!0), P.current.focus(), T && T());
929
929
  }
930
- function J() {
930
+ function te() {
931
931
  U(!1), C && P.current && P.current.blur();
932
932
  }
933
933
  function ne(e) {
934
934
  V(e), x && x(e);
935
935
  }
936
936
  function re(e) {
937
- q(e) ? (G(""), S && S("")) : (G(e), S && S(e)), a && J();
937
+ q(e) ? (G(""), S && S("")) : (G(e), S && S(e)), a && te();
938
938
  }
939
939
  let ie = n.filter((t) => !!(e.onSearch || !e.isSearchable || t.label.toLowerCase().includes(B.toLowerCase())));
940
940
  return /* @__PURE__ */ p($, {
@@ -946,7 +946,7 @@ function ut(e) {
946
946
  unShowFieldTemplate: M,
947
947
  orientation: j,
948
948
  children: /* @__PURE__ */ m(tt, {
949
- handleContainerFocus: te,
949
+ handleContainerFocus: J,
950
950
  disabled: R,
951
951
  isError: L,
952
952
  isFocused: H,
@@ -1004,7 +1004,7 @@ function ut(e) {
1004
1004
  isLoading: d
1005
1005
  }),
1006
1006
  /* @__PURE__ */ p(ct, {
1007
- handleBlur: J,
1007
+ handleBlur: te,
1008
1008
  isFocused: H
1009
1009
  })
1010
1010
  ]
@@ -1096,7 +1096,7 @@ function ht() {
1096
1096
  let { listWeek: e } = Ze();
1097
1097
  return /* @__PURE__ */ p("thead", {
1098
1098
  className: "arkynCalendarTableHeader",
1099
- children: /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p("th", { children: te(e) }, t)) })
1099
+ children: /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p("th", { children: J(e) }, t)) })
1100
1100
  });
1101
1101
  }
1102
1102
  //#endregion
@@ -1215,9 +1215,9 @@ function Et(e) {
1215
1215
  return typeof e == "string" ? (t = +re(e), t % 1 != 0 && (t = t.toFixed(2))) : t = Number.isInteger(e) ? Number(e) * 10 ** 2 : e.toFixed(2), re(String(t)) / 10 ** 2;
1216
1216
  }
1217
1217
  function Dt(e, t) {
1218
- if (!e) return [0, J(0, t)];
1218
+ if (!e) return [0, te(0, t)];
1219
1219
  let n = Et(e);
1220
- return [n, J(n, t)];
1220
+ return [n, te(n, t)];
1221
1221
  }
1222
1222
  //#endregion
1223
1223
  //#region src/components/currencyInput/index.tsx
@@ -1226,10 +1226,10 @@ function Ot(e) {
1226
1226
  md: 20,
1227
1227
  lg: 20
1228
1228
  }[j], K = A ? "right" : "left", q = K === "left" && x, ee = K === "right" && x;
1229
- function te() {
1229
+ function J() {
1230
1230
  W || !B?.current || (I(!0), B.current.focus());
1231
1231
  }
1232
- function J(e) {
1232
+ function te(e) {
1233
1233
  I(!0), w && w(e);
1234
1234
  }
1235
1235
  function ne(e) {
@@ -1262,7 +1262,7 @@ function Ot(e) {
1262
1262
  title: r,
1263
1263
  style: i,
1264
1264
  className: `arkynCurrencyInput ${y ? "hasPrefix" : ""} ${b ? "hasSuffix" : ""} ${a} ${j} ${W || C || x ? "opacity" : ""} ${U ? "errored" : ""} ${F ? "focused" : ""}`,
1265
- onClick: te,
1265
+ onClick: J,
1266
1266
  children: [
1267
1267
  /* @__PURE__ */ p(Z, {
1268
1268
  iconSize: G,
@@ -1284,7 +1284,7 @@ function Ot(e) {
1284
1284
  disabled: W,
1285
1285
  readOnly: C,
1286
1286
  ref: B,
1287
- onFocus: J,
1287
+ onFocus: te,
1288
1288
  onBlur: ne,
1289
1289
  onChange: (e) => {
1290
1290
  e.preventDefault();
@@ -1584,8 +1584,513 @@ function zt(e) {
1584
1584
  ] });
1585
1585
  }
1586
1586
  //#endregion
1587
+ //#region src/components/fullCalendar/_viewService.ts
1588
+ var Bt = class {
1589
+ capitalize(e) {
1590
+ return J(e);
1591
+ }
1592
+ listHours(e) {
1593
+ let [t, n] = e, r = [];
1594
+ for (let e = t * 60; e <= n * 60; e += 30) r.push(e);
1595
+ return r;
1596
+ }
1597
+ formatHourLabel(e) {
1598
+ let t = Math.floor(e / 60), n = e % 60;
1599
+ return `${String(t).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
1600
+ }
1601
+ getStartOfWeek(e) {
1602
+ let t = new Date(e);
1603
+ return t.setHours(0, 0, 0, 0), t.setDate(t.getDate() - t.getDay()), t;
1604
+ }
1605
+ listWeek(e, t) {
1606
+ let n = [], r = this.getStartOfWeek(e);
1607
+ for (let e = 0; e < 7; e++) {
1608
+ let i = new Date(r);
1609
+ i.setDate(r.getDate() + e);
1610
+ let a = i.toLocaleDateString(t, { weekday: "short" });
1611
+ n.push(a);
1612
+ }
1613
+ return n;
1614
+ }
1615
+ listWeeklyMatrix(e, t) {
1616
+ let n = this.getStartOfWeek(e), r = e.getMonth();
1617
+ return t.map((t) => Array.from({ length: 7 }, (i, a) => {
1618
+ let o = new Date(n);
1619
+ o.setDate(n.getDate() + a);
1620
+ let s = "current";
1621
+ return (o.getMonth() < r || o.getFullYear() < e.getFullYear()) && (s = "previous"), (o.getMonth() > r || o.getFullYear() > e.getFullYear()) && (s = "next"), {
1622
+ day: o.getDate(),
1623
+ month: o.getMonth(),
1624
+ year: o.getFullYear(),
1625
+ dayOwner: s,
1626
+ timeInMinutes: t
1627
+ };
1628
+ }));
1629
+ }
1630
+ listMonthlyMatrix(e) {
1631
+ let t = e.getFullYear(), n = e.getMonth(), r = new Date(t, n, 1).getDay(), i = new Date(t, n + 1, 0).getDate(), a = new Date(t, n, 0).getDate(), o = Math.ceil((r + i) / 7) * 7, s = [], c = 1, l = 1;
1632
+ for (let e = 0; e < o; e++) {
1633
+ let o = Math.floor(e / 7);
1634
+ if (s[o] || (s[o] = []), e < r) {
1635
+ let i = a - (r - e - 1), c = n === 0 ? 11 : n - 1, l = n === 0 ? t - 1 : t;
1636
+ s[o].push({
1637
+ day: i,
1638
+ month: c,
1639
+ year: l,
1640
+ dayOwner: "previous"
1641
+ });
1642
+ } else if (c <= i) s[o].push({
1643
+ day: c,
1644
+ month: n,
1645
+ year: t,
1646
+ dayOwner: "current"
1647
+ }), c++;
1648
+ else {
1649
+ let e = n === 11 ? 0 : n + 1, r = n === 11 ? t + 1 : t;
1650
+ s[o].push({
1651
+ day: l,
1652
+ month: e,
1653
+ year: r,
1654
+ dayOwner: "next"
1655
+ }), l++;
1656
+ }
1657
+ }
1658
+ return s;
1659
+ }
1660
+ nextMonth(e, t) {
1661
+ let n = new Date(e);
1662
+ n.setMonth(n.getMonth() + 1), t(n);
1663
+ }
1664
+ nextWeek(e, t) {
1665
+ let n = new Date(e);
1666
+ n.setDate(n.getDate() + 7), t(n);
1667
+ }
1668
+ nextDay(e, t) {
1669
+ let n = new Date(e);
1670
+ n.setDate(n.getDate() + 1), t(n);
1671
+ }
1672
+ previousMonth(e, t) {
1673
+ let n = new Date(e);
1674
+ n.setMonth(n.getMonth() - 1), t(n);
1675
+ }
1676
+ previousWeek(e, t) {
1677
+ let n = new Date(e);
1678
+ n.setDate(n.getDate() - 7), t(n);
1679
+ }
1680
+ previousDay(e, t) {
1681
+ let n = new Date(e);
1682
+ n.setDate(n.getDate() - 1), t(n);
1683
+ }
1684
+ }, Vt = n({});
1685
+ function Ht() {
1686
+ return a(Vt);
1687
+ }
1688
+ function Ut(e) {
1689
+ let t = e.language || "pt-BR", n = new Bt(), r = n.listHours([8, 18]), [i, a] = u(e.defaultValue || /* @__PURE__ */ new Date());
1690
+ function o(t) {
1691
+ e.onChangeView && e.onChangeView(t), a(t);
1692
+ }
1693
+ return /* @__PURE__ */ p(Vt.Provider, {
1694
+ value: {
1695
+ events: e.events,
1696
+ viewDate: i,
1697
+ listHours: r,
1698
+ listWeek: n.listWeek(i, t),
1699
+ listMonthlyMatrix: n.listMonthlyMatrix(i),
1700
+ listWeeklyMatrix: n.listWeeklyMatrix(i, r),
1701
+ nextMonth: () => n.nextMonth(i, o),
1702
+ nextWeek: () => n.nextWeek(i, o),
1703
+ nextDay: () => n.nextDay(i, o),
1704
+ previousMonth: () => n.previousMonth(i, o),
1705
+ previousWeek: () => n.previousWeek(i, o),
1706
+ previousDay: () => n.previousDay(i, o)
1707
+ },
1708
+ children: e.children
1709
+ });
1710
+ }
1711
+ //#endregion
1712
+ //#region src/components/fullCalendar/dayCalendar/dayCalendarContainer/index.tsx
1713
+ function Wt({ children: e }) {
1714
+ return /* @__PURE__ */ p("div", {
1715
+ className: "arkynDayCalendarContainer",
1716
+ children: e
1717
+ });
1718
+ }
1719
+ //#endregion
1720
+ //#region src/components/fullCalendar/dayCalendar/dayCalendarEvent/index.tsx
1721
+ var Gt = 30, Kt = 205;
1722
+ function qt(e) {
1723
+ let { events: t, viewDate: n } = Ht(), r = n.getDate(), i = n.getMonth(), a = n.getFullYear(), o = t.map((e, t) => ({
1724
+ event: e,
1725
+ sourceIndex: t
1726
+ })).filter(({ event: e }) => e.date.getDate() === r && e.date.getMonth() === i && e.date.getFullYear() === a).sort((e, t) => {
1727
+ let n = e.event.date.getTime(), r = t.event.date.getTime();
1728
+ if (n !== r) return n - r;
1729
+ let i = e.event.endDate?.getTime() ?? n + Gt * 6e4, a = t.event.endDate?.getTime() ?? r + Gt * 6e4;
1730
+ return i === a ? e.sourceIndex - t.sourceIndex : i - a;
1731
+ }), s = new Map(o.map((e, t) => [e.sourceIndex, t])), c = o.filter(({ event: t }) => {
1732
+ let n = Math.floor(e.timeInMinutes / 60), o = e.timeInMinutes % 60;
1733
+ function s() {
1734
+ let e = t.date.getHours(), r = t.date.getMinutes();
1735
+ if (e !== n) return !1;
1736
+ if (o === 0) return r < 30 && r >= 0;
1737
+ if (o === 30) return r >= 30 && r < 60;
1738
+ }
1739
+ return s() && t.date.getDate() === r && t.date.getMonth() === i && t.date.getFullYear() === a;
1740
+ });
1741
+ if (c.length === 0) return /* @__PURE__ */ p(f, {});
1742
+ function l(e, t) {
1743
+ return `${r}-${i}-${a}-${t}-${e}`;
1744
+ }
1745
+ function u(e) {
1746
+ let t = e.getHours(), n = e.getMinutes();
1747
+ return n === 0 ? `${t}h` : `${t}h${n}`;
1748
+ }
1749
+ function d(e) {
1750
+ let t = e.date.getHours() * 60 + e.date.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t + Gt;
1751
+ return {
1752
+ startMinutes: t,
1753
+ endMinutes: Math.max(n, t + 1)
1754
+ };
1755
+ }
1756
+ function h(e, t) {
1757
+ let n = d(e), r = s.get(t);
1758
+ return r == null ? 0 : o.reduce((e, t, i) => {
1759
+ if (i >= r) return e;
1760
+ let a = d(t.event);
1761
+ return a.startMinutes < n.endMinutes && a.endMinutes > n.startMinutes ? e + 1 : e;
1762
+ }, 0);
1763
+ }
1764
+ function g(t, n) {
1765
+ let { startMinutes: r, endMinutes: i } = d(t), a = r - e.timeInMinutes, o = Math.max(i - r, 1), s = a / Gt * 100, c = o / Gt * 100, l = h(t, n) * Kt;
1766
+ return {
1767
+ top: `${s}%`,
1768
+ height: `${c}%`,
1769
+ left: `${l}px`
1770
+ };
1771
+ }
1772
+ return c.map(({ event: e, sourceIndex: t }, n) => /* @__PURE__ */ m("div", {
1773
+ className: `arkynDayCalendarEvent ${e?.scheme || "primary"}`,
1774
+ style: g(e, t),
1775
+ onClick: () => e.onClick?.(e.data),
1776
+ children: [/* @__PURE__ */ m("strong", { children: [
1777
+ u(e.date),
1778
+ " ",
1779
+ e?.endDate && `- ${u(e.endDate)}`
1780
+ ] }), /* @__PURE__ */ p("p", { children: e.title })]
1781
+ }, l(n, t)));
1782
+ }
1783
+ //#endregion
1784
+ //#region src/components/fullCalendar/dayCalendar/dayCalendarRow/index.tsx
1785
+ function Jt({ hour: e, timeInMinutes: t }) {
1786
+ return /* @__PURE__ */ m("div", {
1787
+ className: "arkynDayCalendarRow",
1788
+ "data-time": t,
1789
+ children: [/* @__PURE__ */ p("p", { children: new Bt().formatHourLabel(e) }), /* @__PURE__ */ p("div", {
1790
+ className: "arkynDayCalendarRowContent",
1791
+ children: /* @__PURE__ */ p(qt, { timeInMinutes: t })
1792
+ })]
1793
+ });
1794
+ }
1795
+ //#endregion
1796
+ //#region src/components/fullCalendar/dayCalendar/index.tsx
1797
+ function Yt() {
1798
+ let { listHours: e } = Ht();
1799
+ return /* @__PURE__ */ p(Wt, { children: e.map((e) => /* @__PURE__ */ p(Jt, {
1800
+ hour: e,
1801
+ timeInMinutes: e
1802
+ })) });
1803
+ }
1804
+ //#endregion
1805
+ //#region src/components/fullCalendar/fullCalendarContainer/index.tsx
1806
+ function Xt({ children: e }) {
1807
+ return /* @__PURE__ */ p("div", {
1808
+ className: "arkynFullCalendarContainer",
1809
+ children: e
1810
+ });
1811
+ }
1812
+ //#endregion
1813
+ //#region src/components/fullCalendar/fullCalendarHeader/index.tsx
1814
+ function Zt(e) {
1815
+ let { setViewType: t, viewType: n } = e, r = Ht();
1816
+ function i() {
1817
+ switch (n) {
1818
+ case "day": return r.previousDay();
1819
+ case "week": return r.previousWeek();
1820
+ case "month": return r.previousMonth();
1821
+ }
1822
+ }
1823
+ function a() {
1824
+ switch (n) {
1825
+ case "day": return r.nextDay();
1826
+ case "week": return r.nextWeek();
1827
+ case "month": return r.nextMonth();
1828
+ }
1829
+ }
1830
+ return /* @__PURE__ */ m("div", {
1831
+ className: "arkynFullCalendarHeader",
1832
+ children: [/* @__PURE__ */ m(xt, {
1833
+ defaultValue: n,
1834
+ onChange: (e) => t(e),
1835
+ children: [
1836
+ /* @__PURE__ */ p(bt, {
1837
+ value: "day",
1838
+ children: "Dia"
1839
+ }),
1840
+ /* @__PURE__ */ p(bt, {
1841
+ value: "week",
1842
+ children: "Semana"
1843
+ }),
1844
+ /* @__PURE__ */ p(bt, {
1845
+ value: "month",
1846
+ children: "Mês"
1847
+ })
1848
+ ]
1849
+ }), /* @__PURE__ */ m("div", {
1850
+ className: "arkynFullCalendarHeaderActions",
1851
+ children: [
1852
+ /* @__PURE__ */ p(Ue, {
1853
+ variant: "outline",
1854
+ icon: w,
1855
+ "aria-label": "Handle previous",
1856
+ onClick: () => i()
1857
+ }),
1858
+ /* @__PURE__ */ p("p", { children: r.viewDate.toLocaleDateString("pt-BR", {
1859
+ day: "2-digit",
1860
+ month: "long",
1861
+ year: "numeric"
1862
+ }) }),
1863
+ /* @__PURE__ */ p(Ue, {
1864
+ variant: "outline",
1865
+ icon: T,
1866
+ "aria-label": "Handle next",
1867
+ onClick: () => a()
1868
+ })
1869
+ ]
1870
+ })]
1871
+ });
1872
+ }
1873
+ //#endregion
1874
+ //#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.tsx
1875
+ function Qt(e) {
1876
+ let { events: t } = Ht(), n = t.filter((t) => t.date.getDate() === e.day && t.date.getMonth() === e.month && t.date.getFullYear() === e.year);
1877
+ if (n.length === 0) return /* @__PURE__ */ p(f, {});
1878
+ function r(t) {
1879
+ return `${e.day}-${e.month}-${e.year}-${t}`;
1880
+ }
1881
+ function i(e) {
1882
+ let t = e.getHours(), n = e.getMinutes();
1883
+ return n === 0 ? `${t}h` : `${t}h${n}`;
1884
+ }
1885
+ return n.map((e, t) => /* @__PURE__ */ m("div", {
1886
+ className: `arkynMonthlyCalendarEvent ${e?.scheme || "primary"}`,
1887
+ onClick: () => e.onClick?.(e.data),
1888
+ children: [/* @__PURE__ */ m("strong", { children: [
1889
+ i(e.date),
1890
+ " ",
1891
+ e?.endDate && `- ${i(e.endDate)}`
1892
+ ] }), /* @__PURE__ */ p("p", { children: e.title })]
1893
+ }, r(t)));
1894
+ }
1895
+ //#endregion
1896
+ //#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.tsx
1897
+ function $t(e) {
1898
+ let { day: t, month: n, year: r, dayOwner: i } = e;
1899
+ function a() {
1900
+ let e = /* @__PURE__ */ new Date();
1901
+ return t === e.getDate() && n === e.getMonth() && r === e.getFullYear();
1902
+ }
1903
+ return /* @__PURE__ */ m("td", {
1904
+ className: `arkynMonthlyCalendarTableTd ${i}`,
1905
+ children: [/* @__PURE__ */ p("p", {
1906
+ className: a() ? "today" : "",
1907
+ children: t
1908
+ }), /* @__PURE__ */ p("div", {
1909
+ className: "arkynMonthlyCalendarEventContainer",
1910
+ children: /* @__PURE__ */ p(Qt, {
1911
+ day: t,
1912
+ month: n,
1913
+ year: r
1914
+ })
1915
+ })]
1916
+ });
1917
+ }
1918
+ //#endregion
1919
+ //#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.tsx
1920
+ function en() {
1921
+ return /* @__PURE__ */ p("tbody", {
1922
+ className: "arkynMonthlyCalendarTableBody",
1923
+ children: Ht().listMonthlyMatrix.map((e, t) => /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p($t, { ...e }, t)) }, t))
1924
+ });
1925
+ }
1926
+ //#endregion
1927
+ //#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.tsx
1928
+ function tn({ children: e }) {
1929
+ return /* @__PURE__ */ p("div", {
1930
+ className: "arkynMonthlyCalendarTableContainer",
1931
+ children: /* @__PURE__ */ p("table", { children: e })
1932
+ });
1933
+ }
1934
+ //#endregion
1935
+ //#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.tsx
1936
+ function nn() {
1937
+ let { listWeek: e } = Ht();
1938
+ return /* @__PURE__ */ p("thead", {
1939
+ className: "arkynMonthlyCalendarTableHeader",
1940
+ children: /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p("th", { children: J(e) }, t)) })
1941
+ });
1942
+ }
1943
+ //#endregion
1944
+ //#region src/components/fullCalendar/monthlyCalendar/index.tsx
1945
+ function rn() {
1946
+ return /* @__PURE__ */ m(tn, { children: [/* @__PURE__ */ p(nn, {}), /* @__PURE__ */ p(en, {})] });
1947
+ }
1948
+ //#endregion
1949
+ //#region src/components/fullCalendar/weekCalendar/weekCalendarEvent/index.tsx
1950
+ var an = 30, on = 40;
1951
+ function sn(e) {
1952
+ let { events: t } = Ht(), n = t.map((e, t) => ({
1953
+ event: e,
1954
+ sourceIndex: t
1955
+ })).filter(({ event: t }) => t.date.getDate() === e.day && t.date.getMonth() === e.month && t.date.getFullYear() === e.year).sort((e, t) => {
1956
+ let n = e.event.date.getTime(), r = t.event.date.getTime();
1957
+ if (n !== r) return n - r;
1958
+ let i = e.event.endDate?.getTime() ?? n + an * 6e4, a = t.event.endDate?.getTime() ?? r + an * 6e4;
1959
+ return i === a ? e.sourceIndex - t.sourceIndex : i - a;
1960
+ }), r = new Map(n.map((e, t) => [e.sourceIndex, t])), i = n.filter(({ event: t }) => {
1961
+ let n = Math.floor(e.timeInMinutes / 60), r = e.timeInMinutes % 60;
1962
+ function i() {
1963
+ let e = t.date.getHours(), i = t.date.getMinutes();
1964
+ if (e !== n) return !1;
1965
+ if (r === 0) return i < 30 && i >= 0;
1966
+ if (r === 30) return i >= 30 && i < 60;
1967
+ }
1968
+ return i() && t.date.getDate() === e.day && t.date.getMonth() === e.month && t.date.getFullYear() === e.year;
1969
+ });
1970
+ if (i.length === 0) return /* @__PURE__ */ p(f, {});
1971
+ function a(t, n) {
1972
+ return `${e.day}-${e.month}-${e.year}-${n}-${t}`;
1973
+ }
1974
+ function o(e) {
1975
+ let t = e.getHours(), n = e.getMinutes();
1976
+ return n === 0 ? `${t}h` : `${t}h${n}`;
1977
+ }
1978
+ function s(e) {
1979
+ let t = e.date.getHours() * 60 + e.date.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t + an;
1980
+ return {
1981
+ startMinutes: t,
1982
+ endMinutes: Math.max(n, t + 1)
1983
+ };
1984
+ }
1985
+ function c(e, t) {
1986
+ let i = s(e), a = r.get(t);
1987
+ return a == null ? 0 : n.reduce((e, t, n) => {
1988
+ if (n >= a) return e;
1989
+ let r = s(t.event);
1990
+ return r.startMinutes < i.endMinutes && r.endMinutes > i.startMinutes ? e + 1 : e;
1991
+ }, 0);
1992
+ }
1993
+ function l(t, n) {
1994
+ let { startMinutes: r, endMinutes: i } = s(t), a = r - e.timeInMinutes, o = Math.max(i - r, 1), l = a / an * 100, u = o / an * 100, d = c(t, n) * on;
1995
+ return {
1996
+ top: `${l}%`,
1997
+ height: `${u}%`,
1998
+ left: `${d}px`
1999
+ };
2000
+ }
2001
+ return i.map(({ event: e, sourceIndex: t }, n) => /* @__PURE__ */ m("div", {
2002
+ className: `arkynWeekCalendarEvent ${e?.scheme || "primary"}`,
2003
+ style: l(e, t),
2004
+ onClick: () => e.onClick?.(e.data),
2005
+ children: [/* @__PURE__ */ m("strong", { children: [
2006
+ o(e.date),
2007
+ " ",
2008
+ e?.endDate && `- ${o(e.endDate)}`
2009
+ ] }), /* @__PURE__ */ p("p", { children: e.title })]
2010
+ }, a(n, t)));
2011
+ }
2012
+ //#endregion
2013
+ //#region src/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.tsx
2014
+ function cn(e) {
2015
+ let { day: t, month: n, year: r, dayOwner: i, timeInMinutes: a } = e;
2016
+ function o() {
2017
+ let e = /* @__PURE__ */ new Date();
2018
+ return t === e.getDate() && n === e.getMonth() && r === e.getFullYear();
2019
+ }
2020
+ return /* @__PURE__ */ p("td", {
2021
+ className: `arkynWeekCalendarTableTd ${i} ${o() ? "today" : ""}`,
2022
+ "data-day": t,
2023
+ "data-time": a,
2024
+ children: /* @__PURE__ */ p("div", {
2025
+ className: "arkynWeekCalendarTableTdContent",
2026
+ children: /* @__PURE__ */ p(sn, {
2027
+ day: t,
2028
+ month: n,
2029
+ year: r,
2030
+ timeInMinutes: a
2031
+ })
2032
+ })
2033
+ });
2034
+ }
2035
+ //#endregion
2036
+ //#region src/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.tsx
2037
+ function ln() {
2038
+ let e = Ht(), t = new Bt();
2039
+ return /* @__PURE__ */ p("tbody", {
2040
+ className: "arkynWeekCalendarTableBody",
2041
+ children: e.listWeeklyMatrix.map((e) => /* @__PURE__ */ m("tr", { children: [/* @__PURE__ */ p("td", {
2042
+ className: "hourTd",
2043
+ children: /* @__PURE__ */ p("p", { children: t.formatHourLabel(e[0].timeInMinutes) })
2044
+ }), e.map((e, t) => /* @__PURE__ */ p(cn, { ...e }, `${e.year}-${e.month}-${e.day}-${e.timeInMinutes}-${t}`))] }, e[0].timeInMinutes))
2045
+ });
2046
+ }
2047
+ //#endregion
2048
+ //#region src/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.tsx
2049
+ function un({ children: e }) {
2050
+ return /* @__PURE__ */ p("div", {
2051
+ className: "arkynWeekCalendarTableContainer",
2052
+ children: /* @__PURE__ */ p("table", { children: e })
2053
+ });
2054
+ }
2055
+ //#endregion
2056
+ //#region src/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.tsx
2057
+ function dn() {
2058
+ let { listWeek: e, listWeeklyMatrix: t } = Ht(), n = t[0] || [];
2059
+ return /* @__PURE__ */ p("thead", {
2060
+ className: "arkynWeekCalendarTableHeader",
2061
+ children: /* @__PURE__ */ m("tr", { children: [/* @__PURE__ */ p("th", {}), e.map((e, t) => /* @__PURE__ */ p("th", { children: /* @__PURE__ */ m("div", {
2062
+ className: "arkynWeekCalendarTableHeaderContent",
2063
+ children: [/* @__PURE__ */ p("span", { children: J(e) }), /* @__PURE__ */ p("strong", { children: n[t]?.day })]
2064
+ }) }, t))] })
2065
+ });
2066
+ }
2067
+ //#endregion
2068
+ //#region src/components/fullCalendar/weekCalendar/index.tsx
2069
+ function fn() {
2070
+ return /* @__PURE__ */ m(un, { children: [/* @__PURE__ */ p(dn, {}), /* @__PURE__ */ p(ln, {})] });
2071
+ }
2072
+ //#endregion
2073
+ //#region src/components/fullCalendar/index.tsx
2074
+ function pn(e) {
2075
+ let [t, n] = u(e.defaultView || "month");
2076
+ return /* @__PURE__ */ p(Ut, {
2077
+ events: e.events || [],
2078
+ defaultValue: e.defaultValue,
2079
+ onChangeView: e.onChangeView,
2080
+ children: /* @__PURE__ */ m(Xt, { children: [
2081
+ /* @__PURE__ */ p(Zt, {
2082
+ viewType: t,
2083
+ setViewType: n
2084
+ }),
2085
+ t === "day" && /* @__PURE__ */ p(Yt, {}),
2086
+ t === "month" && /* @__PURE__ */ p(rn, {}),
2087
+ t === "week" && /* @__PURE__ */ p(fn, {})
2088
+ ] })
2089
+ });
2090
+ }
2091
+ //#endregion
1587
2092
  //#region src/components/googleAnalytics/snippets/generateGAElements.ts
1588
- function Bt(e) {
2093
+ function mn(e) {
1589
2094
  let { measurementId: t } = e;
1590
2095
  return t || console.warn("Google Analytics Measurement ID is required"), {
1591
2096
  src: `https://www.googletagmanager.com/gtag/js?id=${t}`,
@@ -1598,7 +2103,7 @@ function Bt(e) {
1598
2103
  }
1599
2104
  //#endregion
1600
2105
  //#region src/components/googleAnalytics/googleAnalytics.tsx
1601
- var Vt = class {
2106
+ var hn = class {
1602
2107
  initializeAsyncScript(e) {
1603
2108
  let t = document.createElement("script");
1604
2109
  return t.async = !0, t.src = e, t;
@@ -1608,24 +2113,24 @@ var Vt = class {
1608
2113
  return t.innerHTML = e, t;
1609
2114
  }
1610
2115
  initialize(e) {
1611
- let { measurementId: t } = e, n = Bt({ measurementId: t }), r = this.initializeAsyncScript(n.src), i = this.initializeInlineScript(n.script);
2116
+ let { measurementId: t } = e, n = mn({ measurementId: t }), r = this.initializeAsyncScript(n.src), i = this.initializeInlineScript(n.script);
1612
2117
  document.head.appendChild(r), document.head.appendChild(i);
1613
2118
  }
1614
2119
  };
1615
2120
  //#endregion
1616
2121
  //#region src/components/googleAnalytics/googleAnalytics.client.tsx
1617
- function Ht(e) {
1618
- return new Vt().initialize(e), /* @__PURE__ */ p(f, {});
2122
+ function gn(e) {
2123
+ return new hn().initialize(e), /* @__PURE__ */ p(f, {});
1619
2124
  }
1620
2125
  //#endregion
1621
2126
  //#region src/components/googleAnalytics/index.tsx
1622
- function Ut(e) {
2127
+ function _n(e) {
1623
2128
  let { measurementId: t, showInDevMode: n = !1 } = e;
1624
- return process.env.NODE_ENV !== "production" && !n ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(Tt, { children: () => /* @__PURE__ */ p(Ht, { measurementId: t }) });
2129
+ return process.env.NODE_ENV !== "production" && !n ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(Tt, { children: () => /* @__PURE__ */ p(gn, { measurementId: t }) });
1625
2130
  }
1626
2131
  //#endregion
1627
2132
  //#region src/components/googleTagManager/snippets/appendToDataLayer.ts
1628
- function Wt(e) {
2133
+ function vn(e) {
1629
2134
  let { dataLayer: t, dataLayerName: n } = e;
1630
2135
  return `
1631
2136
  window.${n} = window.${n} || [];
@@ -1633,7 +2138,7 @@ function Wt(e) {
1633
2138
  }
1634
2139
  //#endregion
1635
2140
  //#region src/components/googleTagManager/snippets/generateGTMElements.ts
1636
- function Gt(e) {
2141
+ function yn(e) {
1637
2142
  let { id: t, events: n, dataLayer: r, dataLayerName: i, preview: a, auth: o } = e, s = `&gtm_auth=${o}`, c = `&gtm_preview=${a}`;
1638
2143
  return t || console.warn("GTM Id is required"), {
1639
2144
  iframe: `
@@ -1646,7 +2151,7 @@ function Gt(e) {
1646
2151
  j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'${s}${c}&gtm_cookies_win=x';
1647
2152
  f.parentNode.insertBefore(j,f);
1648
2153
  })(window,document,'script','${i}','${t}');`,
1649
- dataLayerVar: Wt({
2154
+ dataLayerVar: vn({
1650
2155
  dataLayer: r,
1651
2156
  dataLayerName: i
1652
2157
  })
@@ -1654,13 +2159,13 @@ function Gt(e) {
1654
2159
  }
1655
2160
  //#endregion
1656
2161
  //#region src/components/googleTagManager/googleTagManager.tsx
1657
- var Kt = class {
2162
+ var bn = class {
1658
2163
  initializeDataScript(e) {
1659
2164
  let t = document.createElement("script");
1660
2165
  return t.innerHTML = e, t;
1661
2166
  }
1662
2167
  initializeGTMElements(e) {
1663
- let t = Gt(e);
2168
+ let t = yn(e);
1664
2169
  return {
1665
2170
  noScript: () => {
1666
2171
  let e = document.createElement("noscript");
@@ -1676,7 +2181,7 @@ var Kt = class {
1676
2181
  initializeDataLayer(e) {
1677
2182
  let { dataLayer: t, dataLayerName: n } = e;
1678
2183
  if (window[n]) return window[n].push(t);
1679
- let r = Wt({
2184
+ let r = vn({
1680
2185
  dataLayer: t,
1681
2186
  dataLayerName: n
1682
2187
  }), i = this.initializeDataScript(r);
@@ -1696,14 +2201,14 @@ var Kt = class {
1696
2201
  };
1697
2202
  //#endregion
1698
2203
  //#region src/components/googleTagManager/googleTagManager.client.tsx
1699
- function qt(e) {
1700
- return new Kt().initialize(e), /* @__PURE__ */ p(f, {});
2204
+ function xn(e) {
2205
+ return new bn().initialize(e), /* @__PURE__ */ p(f, {});
1701
2206
  }
1702
2207
  //#endregion
1703
2208
  //#region src/components/googleTagManager/index.tsx
1704
- function Jt(e) {
2209
+ function Sn(e) {
1705
2210
  let { gtmId: t, auth: n = "", preview: r = "", dataLayerName: i = "dataLayer", events: a = {}, dataLayer: o = {}, showInDevMode: s = !1 } = e;
1706
- return process.env.NODE_ENV !== "production" && !s ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(Tt, { children: () => /* @__PURE__ */ p(qt, {
2211
+ return process.env.NODE_ENV !== "production" && !s ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(Tt, { children: () => /* @__PURE__ */ p(xn, {
1707
2212
  auth: n,
1708
2213
  dataLayer: o,
1709
2214
  dataLayerName: i,
@@ -1714,7 +2219,7 @@ function Jt(e) {
1714
2219
  }
1715
2220
  //#endregion
1716
2221
  //#region src/components/imageUpload/hasFileContent/index.tsx
1717
- function Yt(e) {
2222
+ function Cn(e) {
1718
2223
  let { disabled: t, filePath: n, isLoading: r, acceptImage: i, changeImageButtonText: a, handleSelectFile: o, reSendImage: s } = e;
1719
2224
  function c() {
1720
2225
  if (t) return;
@@ -1754,7 +2259,7 @@ function Yt(e) {
1754
2259
  }
1755
2260
  //#endregion
1756
2261
  //#region src/components/imageUpload/noFileContent/index.tsx
1757
- function Xt(e) {
2262
+ function wn(e) {
1758
2263
  let { dropImageText: t, isLoading: n, acceptImage: r, handleSelectFile: i, selectImageButtonText: a, disabled: o } = e;
1759
2264
  function s(e) {
1760
2265
  if (o) return;
@@ -1786,7 +2291,7 @@ function Xt(e) {
1786
2291
  }
1787
2292
  //#endregion
1788
2293
  //#region src/components/imageUpload/index.tsx
1789
- function Zt(e) {
2294
+ function Tn(e) {
1790
2295
  let { name: t, defaultValue: n = "", label: r, showAsterisk: i = !1, action: a, fileName: o = "file", className: s = "", method: c = "POST", acceptImage: l = "image/*", fileResponseName: d = "url", changeImageButtonText: f = "Alterar imagem", selectImageButtonText: h = "Selecionar imagem", dropImageText: g = "Ou arraste e solte a imagem aqui", onChange: _, disabled: v = !1, unShowFieldTemplate: y = !1, orientation: b = "horizontal" } = e, { fieldErrors: x } = X(), S = x?.[t], [C, w] = u(n), [T, E] = u(""), [D, O] = u(null), [k, A] = u(n), [j, M] = u(!1);
1791
2296
  async function N(e) {
1792
2297
  if (v) return;
@@ -1821,7 +2326,7 @@ function Zt(e) {
1821
2326
  name: t,
1822
2327
  value: C || ""
1823
2328
  }),
1824
- !k && /* @__PURE__ */ p(Xt, {
2329
+ !k && /* @__PURE__ */ p(wn, {
1825
2330
  disabled: v,
1826
2331
  isLoading: j,
1827
2332
  acceptImage: l,
@@ -1829,7 +2334,7 @@ function Zt(e) {
1829
2334
  handleSelectFile: P,
1830
2335
  selectImageButtonText: h
1831
2336
  }),
1832
- k && /* @__PURE__ */ p(Yt, {
2337
+ k && /* @__PURE__ */ p(Cn, {
1833
2338
  disabled: v,
1834
2339
  isLoading: j,
1835
2340
  acceptImage: l,
@@ -1844,7 +2349,7 @@ function Zt(e) {
1844
2349
  }
1845
2350
  //#endregion
1846
2351
  //#region src/components/mapView/mapView.client.tsx
1847
- function Qt({ center: e, coordinates: t, onMarkerClick: n, accessToken: r, ...i }) {
2352
+ function En({ center: e, coordinates: t, onMarkerClick: n, accessToken: r, ...i }) {
1848
2353
  let a = l(null), s = l(null), c = e || t[0];
1849
2354
  return o(() => (ae.accessToken = r, a.current = new ae.Map({
1850
2355
  container: s.current,
@@ -1888,19 +2393,19 @@ function Qt({ center: e, coordinates: t, onMarkerClick: n, accessToken: r, ...i
1888
2393
  }
1889
2394
  //#endregion
1890
2395
  //#region src/components/mapView/index.tsx
1891
- function $t({ className: e }) {
2396
+ function Dn({ className: e }) {
1892
2397
  return /* @__PURE__ */ p("div", {
1893
2398
  className: "arkynMapViewPinnedEmpty " + e,
1894
2399
  children: /* @__PURE__ */ p(R, {})
1895
2400
  });
1896
2401
  }
1897
- function en(e) {
2402
+ function On(e) {
1898
2403
  let { coordinates: t, zoom: n = 18, accessToken: r, className: i, onMarkerClick: a, ...o } = e;
1899
- if (!t) return /* @__PURE__ */ p($t, { className: i });
2404
+ if (!t) return /* @__PURE__ */ p(Dn, { className: i });
1900
2405
  let s = Array.isArray(t) ? t : [t];
1901
- return s.length === 0 ? /* @__PURE__ */ p($t, { className: i }) : /* @__PURE__ */ p(Tt, {
1902
- fallback: /* @__PURE__ */ p($t, { className: i }),
1903
- children: () => /* @__PURE__ */ p(Qt, {
2406
+ return s.length === 0 ? /* @__PURE__ */ p(Dn, { className: i }) : /* @__PURE__ */ p(Tt, {
2407
+ fallback: /* @__PURE__ */ p(Dn, { className: i }),
2408
+ children: () => /* @__PURE__ */ p(En, {
1904
2409
  accessToken: r,
1905
2410
  coordinates: s,
1906
2411
  center: s[0],
@@ -1911,11 +2416,11 @@ function en(e) {
1911
2416
  }
1912
2417
  //#endregion
1913
2418
  //#region src/components/maskedInput/index.tsx
1914
- var tn = r((e, t) => /* @__PURE__ */ p("input", {
2419
+ var kn = r((e, t) => /* @__PURE__ */ p("input", {
1915
2420
  ref: t,
1916
2421
  ...e
1917
2422
  }));
1918
- function nn(e) {
2423
+ function An(e) {
1919
2424
  let { name: t, disabled: n, title: r, style: i, variant: a = "solid", separate: o, mask: c, showMask: d, replacement: f, label: h, className: g = "", prefix: _, suffix: v, isLoading: y = !1, leftIcon: b, readOnly: x, onFocus: S, onBlur: C, errorMessage: w, defaultValue: T, showAsterisk: E, rightIcon: D, size: O = "md", id: k, value: A, placeholder: j, ...M } = e, { fieldErrors: N } = X(), [P, F] = u(!1), I = l(null), R = k || s(), z = w || N?.[t], B = !!z, V = n || y, H = {
1920
2425
  md: 20,
1921
2426
  lg: 20
@@ -1929,7 +2434,7 @@ function nn(e) {
1929
2434
  function ee(e) {
1930
2435
  F(!1), C && C(e);
1931
2436
  }
1932
- let te = `arkynMaskedInput ${_ ? "hasPrefix" : ""} ${v ? "hasSuffix" : ""} ${a} ${O} ${V || x || y ? "opacity" : ""} ${B ? "errored" : ""} ${P ? "focused" : ""}`;
2437
+ let J = `arkynMaskedInput ${_ ? "hasPrefix" : ""} ${v ? "hasSuffix" : ""} ${a} ${O} ${V || x || y ? "opacity" : ""} ${B ? "errored" : ""} ${P ? "focused" : ""}`;
1933
2438
  return /* @__PURE__ */ m(Ve, {
1934
2439
  className: g,
1935
2440
  children: [
@@ -1942,7 +2447,7 @@ function nn(e) {
1942
2447
  title: r,
1943
2448
  style: i,
1944
2449
  onClick: K,
1945
- className: te,
2450
+ className: J,
1946
2451
  children: [
1947
2452
  /* @__PURE__ */ p(Z, {
1948
2453
  iconSize: H,
@@ -1961,7 +2466,7 @@ function nn(e) {
1961
2466
  iconSize: H
1962
2467
  }),
1963
2468
  /* @__PURE__ */ p(se, {
1964
- component: tn,
2469
+ component: kn,
1965
2470
  mask: c,
1966
2471
  replacement: f,
1967
2472
  separate: o,
@@ -2002,23 +2507,23 @@ function nn(e) {
2002
2507
  }
2003
2508
  //#endregion
2004
2509
  //#region src/components/modal/modalContext.tsx
2005
- var rn = n({});
2006
- function an(e) {
2007
- return /* @__PURE__ */ p(rn.Provider, {
2510
+ var jn = n({});
2511
+ function Mn(e) {
2512
+ return /* @__PURE__ */ p(jn.Provider, {
2008
2513
  value: { makeInvisible: e.makeInvisible },
2009
2514
  children: e.children
2010
2515
  });
2011
2516
  }
2012
- function on() {
2013
- return a(rn);
2517
+ function Nn() {
2518
+ return a(jn);
2014
2519
  }
2015
2520
  //#endregion
2016
2521
  //#region src/components/modal/modalContainer/index.tsx
2017
- function sn(e) {
2522
+ function Pn(e) {
2018
2523
  let { isVisible: t, makeInvisible: n, children: r, className: i = "", ...a } = e;
2019
2524
  at(t);
2020
2525
  let o = `arkynModalContainer ${t ? "visibleTrue" : "visibleFalse"} ${i}`;
2021
- return /* @__PURE__ */ p(an, {
2526
+ return /* @__PURE__ */ p(Mn, {
2022
2527
  makeInvisible: n,
2023
2528
  children: /* @__PURE__ */ p(ie, { children: t && /* @__PURE__ */ m("aside", {
2024
2529
  className: o.trim(),
@@ -2058,7 +2563,7 @@ function sn(e) {
2058
2563
  }
2059
2564
  //#endregion
2060
2565
  //#region src/components/modal/modalFooter/index.tsx
2061
- function cn(e) {
2566
+ function Fn(e) {
2062
2567
  let { alignment: t = "right", className: n, ...r } = e;
2063
2568
  return /* @__PURE__ */ p("footer", {
2064
2569
  className: `arkynModalFooter ${t} ${n}`.trim(),
@@ -2067,8 +2572,8 @@ function cn(e) {
2067
2572
  }
2068
2573
  //#endregion
2069
2574
  //#region src/components/modal/modalHeader/index.tsx
2070
- function ln(e) {
2071
- let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } = on();
2575
+ function In(e) {
2576
+ let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } = Nn();
2072
2577
  return /* @__PURE__ */ m("header", {
2073
2578
  className: `arkynModalHeader ${n}`.trim(),
2074
2579
  ...i,
@@ -2083,7 +2588,7 @@ function ln(e) {
2083
2588
  }
2084
2589
  //#endregion
2085
2590
  //#region src/components/multiSelect/multiSelectChevron/index.tsx
2086
- function un(e) {
2591
+ function Ln(e) {
2087
2592
  let { iconSize: t, isLoading: n, disabled: r, readOnly: i, isFocused: a } = e;
2088
2593
  return n ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(C, {
2089
2594
  className: `arkynMultiSelectChevron ${r || i ? "notAnimate" : ""} ${a ? "focused" : ""}`,
@@ -2098,7 +2603,7 @@ function un(e) {
2098
2603
  }
2099
2604
  //#endregion
2100
2605
  //#region src/components/multiSelect/multiSelectContainer/index.tsx
2101
- function dn(e) {
2606
+ function Rn(e) {
2102
2607
  let { children: t, handleContainerFocus: n, disabled: r, isError: i, isLoading: a, isFocused: o, className: s, readOnly: c, variant: l, size: u, id: d, prefixExists: f } = e;
2103
2608
  return /* @__PURE__ */ p("section", {
2104
2609
  id: d,
@@ -2109,7 +2614,7 @@ function dn(e) {
2109
2614
  }
2110
2615
  //#endregion
2111
2616
  //#region src/components/multiSelect/multiSelectContent/index.tsx
2112
- function fn(e) {
2617
+ function zn(e) {
2113
2618
  let { children: t, size: n } = e;
2114
2619
  return /* @__PURE__ */ p("div", {
2115
2620
  className: `arkynMultiSelectContent ${n}`,
@@ -2118,7 +2623,7 @@ function fn(e) {
2118
2623
  }
2119
2624
  //#endregion
2120
2625
  //#region src/components/multiSelect/multiSelectMark/index.tsx
2121
- function pn(e) {
2626
+ function Bn(e) {
2122
2627
  let { label: t, value: n, disabled: r, handleChangeValue: i } = e;
2123
2628
  return /* @__PURE__ */ m("div", {
2124
2629
  className: "arkynMultiSelectMark",
@@ -2134,7 +2639,7 @@ function pn(e) {
2134
2639
  }
2135
2640
  //#endregion
2136
2641
  //#region src/components/multiSelect/multiSelectOption/index.tsx
2137
- function mn(e) {
2642
+ function Vn(e) {
2138
2643
  let { label: t, optionHasSelected: n, handleChangeValue: r, value: i, size: a } = e;
2139
2644
  return /* @__PURE__ */ m("div", {
2140
2645
  onClick: () => r(i),
@@ -2148,7 +2653,7 @@ function mn(e) {
2148
2653
  }
2149
2654
  //#endregion
2150
2655
  //#region src/components/multiSelect/multiSelectOptionsContainer/index.tsx
2151
- function hn(e) {
2656
+ function Hn(e) {
2152
2657
  let { children: t, isFocused: n, isSearchable: r, search: i, onSearch: a } = e, s = l(null), [c, d] = u("bottom");
2153
2658
  at(n), o(() => {
2154
2659
  n && (() => {
@@ -2177,7 +2682,7 @@ function hn(e) {
2177
2682
  }
2178
2683
  //#endregion
2179
2684
  //#region src/components/multiSelect/multiSelectOverlay/index.tsx
2180
- function gn(e) {
2685
+ function Un(e) {
2181
2686
  let { isFocused: t, handleBlur: n } = e;
2182
2687
  return t ? /* @__PURE__ */ p("aside", {
2183
2688
  className: "arkynMultiSelectOverlay",
@@ -2186,7 +2691,7 @@ function gn(e) {
2186
2691
  }
2187
2692
  //#endregion
2188
2693
  //#region src/components/multiSelect/multiSelectSpinner/index.tsx
2189
- function _n(e) {
2694
+ function Wn(e) {
2190
2695
  let { iconSize: t, isLoading: n } = e;
2191
2696
  return n ? /* @__PURE__ */ p(L, {
2192
2697
  className: "arkynMultiSelectSpinner",
@@ -2196,7 +2701,7 @@ function _n(e) {
2196
2701
  }
2197
2702
  //#endregion
2198
2703
  //#region src/components/multiSelect/index.tsx
2199
- function vn(e) {
2704
+ function Gn(e) {
2200
2705
  let { name: t, options: n, className: r = "", placeholder: i = "Selecione...", closeOnSelect: a = !1, defaultValue: o = [], errorMessage: c, isLoading: d = !1, readOnly: f = !1, isSearchable: h = !1, id: g, label: _, optionMaxHeight: v, showAsterisk: y, leftIcon: b, onSearch: x, onChange: S, onBlur: C, notFoundText: w = "Sem opções disponíveis", onFocus: T, disabled: E = !1, prefix: D, size: O = "md", value: k, variant: A = "solid", unShowFieldTemplate: j = !1, orientation: M = "horizontal" } = e, { fieldErrors: N } = X(), P = l(null), F = g || s(), I = c || N?.[t], L = !!I, R = E || d || f, z = {
2201
2706
  md: 20,
2202
2707
  lg: 20
@@ -2207,17 +2712,17 @@ function vn(e) {
2207
2712
  function ee(e) {
2208
2713
  return n.find((t) => t.value === e)?.label || "";
2209
2714
  }
2210
- function te() {
2715
+ function J() {
2211
2716
  R || !P?.current || H || (U(!0), P.current.focus(), T && T());
2212
2717
  }
2213
- function J() {
2718
+ function te() {
2214
2719
  U(!1), C && P.current && P.current.blur();
2215
2720
  }
2216
2721
  function ne(e) {
2217
2722
  V(e), x && x(e);
2218
2723
  }
2219
2724
  function re(e) {
2220
- q(e) ? (G(W.filter((t) => t !== e)), S && S(W.filter((t) => t !== e))) : (G([...W, e]), S && S([...W, e])), a && J();
2725
+ q(e) ? (G(W.filter((t) => t !== e)), S && S(W.filter((t) => t !== e))) : (G([...W, e]), S && S([...W, e])), a && te();
2221
2726
  }
2222
2727
  let ie = n.filter((t) => !!(e.onSearch || !e.isSearchable || t.label.toLowerCase().includes(B.toLowerCase())));
2223
2728
  return /* @__PURE__ */ p($, {
@@ -2228,8 +2733,8 @@ function vn(e) {
2228
2733
  errorMessage: I,
2229
2734
  unShowFieldTemplate: j,
2230
2735
  orientation: M,
2231
- children: /* @__PURE__ */ m(dn, {
2232
- handleContainerFocus: te,
2736
+ children: /* @__PURE__ */ m(Rn, {
2737
+ handleContainerFocus: J,
2233
2738
  disabled: R,
2234
2739
  isError: L,
2235
2740
  isFocused: H,
@@ -2255,21 +2760,21 @@ function vn(e) {
2255
2760
  size: z,
2256
2761
  strokeWidth: 2.5
2257
2762
  }),
2258
- /* @__PURE__ */ m(fn, {
2763
+ /* @__PURE__ */ m(zn, {
2259
2764
  size: O,
2260
- children: [K.map((e) => /* @__PURE__ */ p(pn, {
2765
+ children: [K.map((e) => /* @__PURE__ */ p(Bn, {
2261
2766
  label: ee(e),
2262
2767
  value: e,
2263
2768
  handleChangeValue: re,
2264
2769
  disabled: R
2265
2770
  }, e)), K.length <= 0 && /* @__PURE__ */ p("p", { children: i })]
2266
2771
  }),
2267
- /* @__PURE__ */ m(hn, {
2772
+ /* @__PURE__ */ m(Hn, {
2268
2773
  isFocused: H,
2269
2774
  isSearchable: h,
2270
2775
  search: B,
2271
2776
  onSearch: ne,
2272
- children: [ie.map(({ label: e, value: t }) => /* @__PURE__ */ p(mn, {
2777
+ children: [ie.map(({ label: e, value: t }) => /* @__PURE__ */ p(Vn, {
2273
2778
  label: e,
2274
2779
  value: t,
2275
2780
  size: O,
@@ -2277,19 +2782,19 @@ function vn(e) {
2277
2782
  optionHasSelected: q
2278
2783
  }, t)), ie.length <= 0 && /* @__PURE__ */ p("p", { children: w })]
2279
2784
  }),
2280
- /* @__PURE__ */ p(un, {
2785
+ /* @__PURE__ */ p(Ln, {
2281
2786
  disabled: R,
2282
2787
  isFocused: H,
2283
2788
  readOnly: f,
2284
2789
  iconSize: z,
2285
2790
  isLoading: d
2286
2791
  }),
2287
- /* @__PURE__ */ p(_n, {
2792
+ /* @__PURE__ */ p(Wn, {
2288
2793
  iconSize: z,
2289
2794
  isLoading: d
2290
2795
  }),
2291
- /* @__PURE__ */ p(gn, {
2292
- handleBlur: J,
2796
+ /* @__PURE__ */ p(Un, {
2797
+ handleBlur: te,
2293
2798
  isFocused: H
2294
2799
  })
2295
2800
  ]
@@ -2298,7 +2803,7 @@ function vn(e) {
2298
2803
  }
2299
2804
  //#endregion
2300
2805
  //#region src/components/pagination/chevronButton/index.tsx
2301
- function yn(e) {
2806
+ function Kn(e) {
2302
2807
  let { orientation: t, handlePageChange: n, disabled: r } = e;
2303
2808
  return /* @__PURE__ */ p("button", {
2304
2809
  className: "arkynChevronPageButton",
@@ -2312,7 +2817,7 @@ function yn(e) {
2312
2817
  }
2313
2818
  //#endregion
2314
2819
  //#region src/components/pagination/currentButton/index.tsx
2315
- function bn({ currentPage: e }) {
2820
+ function qn({ currentPage: e }) {
2316
2821
  return /* @__PURE__ */ p("button", {
2317
2822
  className: "arkynPaginationCurrentButton",
2318
2823
  disabled: !0,
@@ -2321,7 +2826,7 @@ function bn({ currentPage: e }) {
2321
2826
  }
2322
2827
  //#endregion
2323
2828
  //#region src/components/pagination/pageButton/index.tsx
2324
- function xn(e) {
2829
+ function Jn(e) {
2325
2830
  let { page: t, handlePageChange: n } = e;
2326
2831
  return /* @__PURE__ */ p("button", {
2327
2832
  className: "arkynPaginationPageButton",
@@ -2331,7 +2836,7 @@ function xn(e) {
2331
2836
  }
2332
2837
  //#endregion
2333
2838
  //#region src/components/pagination/paginationService.ts
2334
- var Sn = class {
2839
+ var Yn = class {
2335
2840
  currentPage;
2336
2841
  totalCountRegisters;
2337
2842
  registerPerPage;
@@ -2364,7 +2869,7 @@ var Sn = class {
2364
2869
  };
2365
2870
  //#endregion
2366
2871
  //#region src/components/pagination/spread/index.tsx
2367
- function Cn() {
2872
+ function Xn() {
2368
2873
  return /* @__PURE__ */ p("p", {
2369
2874
  className: "arkynPaginationSpread",
2370
2875
  children: /* @__PURE__ */ p(D, {})
@@ -2372,8 +2877,8 @@ function Cn() {
2372
2877
  }
2373
2878
  //#endregion
2374
2879
  //#region src/components/pagination/index.tsx
2375
- function wn(e) {
2376
- let { totalCountRegisters: t, siblingsCount: n, currentPage: r, registerPerPage: i, onChange: a, ...o } = e, { currentPage: s, siblingsCount: c, previousPages: l, nextPages: u, lastPage: d, handlePageChange: h, handleMinusChange: g, handlePlusChange: _ } = new Sn({
2880
+ function Zn(e) {
2881
+ let { totalCountRegisters: t, siblingsCount: n, currentPage: r, registerPerPage: i, onChange: a, ...o } = e, { currentPage: s, siblingsCount: c, previousPages: l, nextPages: u, lastPage: d, handlePageChange: h, handleMinusChange: g, handlePlusChange: _ } = new Yn({
2377
2882
  totalCountRegisters: t,
2378
2883
  currentPage: r,
2379
2884
  registerPerPage: i,
@@ -2384,29 +2889,29 @@ function wn(e) {
2384
2889
  className: "arkynPagination",
2385
2890
  ...o,
2386
2891
  children: [
2387
- /* @__PURE__ */ p(yn, {
2892
+ /* @__PURE__ */ p(Kn, {
2388
2893
  orientation: "left",
2389
2894
  handlePageChange: g,
2390
2895
  disabled: s <= 1
2391
2896
  }),
2392
- s > 1 + c && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(xn, {
2897
+ s > 1 + c && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Jn, {
2393
2898
  page: 1,
2394
2899
  handlePageChange: () => h(1)
2395
- }), s > 2 + c && /* @__PURE__ */ p(Cn, {})] }),
2396
- l.map((e, t) => /* @__PURE__ */ p(xn, {
2900
+ }), s > 2 + c && /* @__PURE__ */ p(Xn, {})] }),
2901
+ l.map((e, t) => /* @__PURE__ */ p(Jn, {
2397
2902
  page: e,
2398
2903
  handlePageChange: g
2399
2904
  }, t)),
2400
- /* @__PURE__ */ p(bn, { currentPage: s }),
2401
- u.map((e, t) => /* @__PURE__ */ p(xn, {
2905
+ /* @__PURE__ */ p(qn, { currentPage: s }),
2906
+ u.map((e, t) => /* @__PURE__ */ p(Jn, {
2402
2907
  page: e,
2403
2908
  handlePageChange: _
2404
2909
  }, t)),
2405
- s + c < d && /* @__PURE__ */ m(f, { children: [s + 1 + c < d && /* @__PURE__ */ p(Cn, {}), /* @__PURE__ */ p(xn, {
2910
+ s + c < d && /* @__PURE__ */ m(f, { children: [s + 1 + c < d && /* @__PURE__ */ p(Xn, {}), /* @__PURE__ */ p(Jn, {
2406
2911
  page: d,
2407
2912
  handlePageChange: () => h(d)
2408
2913
  })] }),
2409
- /* @__PURE__ */ p(yn, {
2914
+ /* @__PURE__ */ p(Kn, {
2410
2915
  orientation: "right",
2411
2916
  handlePageChange: _,
2412
2917
  disabled: s >= d
@@ -2416,7 +2921,7 @@ function wn(e) {
2416
2921
  }
2417
2922
  //#endregion
2418
2923
  //#region src/components/phoneInput/phoneInputContainer/index.tsx
2419
- function Tn(e) {
2924
+ function Qn(e) {
2420
2925
  let { children: t, onFocus: n, disabled: r, isError: i, isLoading: a, isFocused: o, className: s = "", readOnly: c, variant: l, size: u } = e;
2421
2926
  return /* @__PURE__ */ p("section", {
2422
2927
  className: `arkynPhoneInputContainer ${l} ${u} ${r || c || a ? "opacity" : ""} ${i ? "errored" : ""} ${o ? "focused" : ""} ${s}`.trim(),
@@ -2426,7 +2931,7 @@ function Tn(e) {
2426
2931
  }
2427
2932
  //#endregion
2428
2933
  //#region src/components/phoneInput/phoneInputCountriesOverlay/index.tsx
2429
- function En(e) {
2934
+ function $n(e) {
2430
2935
  let { isOpen: t, onClick: n } = e;
2431
2936
  return t ? /* @__PURE__ */ p("aside", {
2432
2937
  className: "arkynPhoneInputCountriesOverlay",
@@ -2435,7 +2940,7 @@ function En(e) {
2435
2940
  }
2436
2941
  //#endregion
2437
2942
  //#region src/components/phoneInput/phoneInputCountryOption/index.tsx
2438
- function Dn(e) {
2943
+ function er(e) {
2439
2944
  let { country: t, isActive: n, handleChangeValue: r, size: i } = e;
2440
2945
  return /* @__PURE__ */ m("div", {
2441
2946
  onClick: () => r(t),
@@ -2455,7 +2960,7 @@ function Dn(e) {
2455
2960
  }
2456
2961
  //#endregion
2457
2962
  //#region src/components/phoneInput/phoneInputCountryOptionsContainer/index.tsx
2458
- function On(e) {
2963
+ function tr(e) {
2459
2964
  let { children: t, isOpen: n, onSearch: r, search: i, placeholder: a } = e, s = l(null), [c, d] = u("bottom");
2460
2965
  function h(e) {
2461
2966
  r(e.target.value);
@@ -2484,7 +2989,7 @@ function On(e) {
2484
2989
  }
2485
2990
  //#endregion
2486
2991
  //#region src/components/phoneInput/phoneInputCountrySelector/index.tsx
2487
- function kn(e) {
2992
+ function nr(e) {
2488
2993
  let { currentCountry: t, onClick: n } = e;
2489
2994
  return /* @__PURE__ */ m("div", {
2490
2995
  className: "phoneInputSelectCountry",
@@ -2505,14 +3010,14 @@ function kn(e) {
2505
3010
  }
2506
3011
  //#endregion
2507
3012
  //#region src/utils/phoneInputUtilities.ts
2508
- function An(e) {
3013
+ function rr(e) {
2509
3014
  return e && e.replace(/[^0-9]/g, "");
2510
3015
  }
2511
- var jn = {
3016
+ var ir = {
2512
3017
  EIGHT: "(99) 9999-9999",
2513
3018
  NINE: "(99) 99999-9999"
2514
3019
  };
2515
- function Mn(e, t) {
3020
+ function ar(e, t) {
2516
3021
  let n = "", r = 0;
2517
3022
  for (let i = 0; i < t.length; i++) if (t[i] === "9") if (r < e.length) n += e[r], r++;
2518
3023
  else break;
@@ -2520,21 +3025,21 @@ function Mn(e, t) {
2520
3025
  else break;
2521
3026
  return n;
2522
3027
  }
2523
- function Nn(e) {
3028
+ function or(e) {
2524
3029
  return e.length > 10 ? "NINE" : "EIGHT";
2525
3030
  }
2526
- var Pn = An(jn.NINE).length, Fn = r((e, t) => /* @__PURE__ */ p("input", {
3031
+ var sr = rr(ir.NINE).length, cr = r((e, t) => /* @__PURE__ */ p("input", {
2527
3032
  ref: t,
2528
3033
  ...e
2529
- })), In = r((e, t) => {
3034
+ })), lr = r((e, t) => {
2530
3035
  let { onFocus: n, readonly: r, onBlur: i, size: a, onChange: s, value: c, currentCountry: l, disabled: d, id: f } = e, [m, h] = u(!1), g = typeof l.mask == "string" ? l.mask : l.mask[0];
2531
3036
  o(() => {
2532
3037
  m ? s(g) : h(!0);
2533
3038
  }, [l]);
2534
3039
  let _ = `phoneInputMask ${a}`;
2535
3040
  function v(e) {
2536
- let t = An(e.target.value), n = Nn(t);
2537
- t.length > Pn || (t = Mn(t, jn[n]), e.target.value = t, s(t));
3041
+ let t = rr(e.target.value), n = or(t);
3042
+ t.length > sr || (t = ar(t, ir[n]), e.target.value = t, s(t));
2538
3043
  }
2539
3044
  return l.code === "+55" ? /* @__PURE__ */ p("input", {
2540
3045
  id: f,
@@ -2551,7 +3056,7 @@ var Pn = An(jn.NINE).length, Fn = r((e, t) => /* @__PURE__ */ p("input", {
2551
3056
  readOnly: r,
2552
3057
  onChange: (e) => s(e.target.value),
2553
3058
  className: _,
2554
- component: Fn,
3059
+ component: cr,
2555
3060
  onFocus: n,
2556
3061
  onBlur: i,
2557
3062
  disabled: d,
@@ -2563,18 +3068,18 @@ var Pn = An(jn.NINE).length, Fn = r((e, t) => /* @__PURE__ */ p("input", {
2563
3068
  });
2564
3069
  //#endregion
2565
3070
  //#region src/components/phoneInput/index.tsx
2566
- function Ln(e) {
2567
- let { defaultCountryIso: t, value: n, label: r, className: i = "", disabled: a = !1, errorMessage: o, isLoading: c = !1, readOnly: d = !1, size: f = "md", defaultValue: h = "", variant: g = "solid", showAsterisk: _, name: v, onChange: y, searchCountryPlaceholder: b = "Pesquisar país", notFoundCountryText: x = "Nenhum país encontrado", id: S, unShowFieldTemplate: C = !1, orientation: w = "horizontal" } = e, T = ce.find((e) => e.iso === "BR"), E = h ? ne(h) : "", D = h ? ee(h)[1] : T, [O, k] = u(!1), [A, j] = u(""), [M, N] = u(!1), [P, F] = u(E), I = n === void 0 ? P : n, [L, R] = u(D), { fieldErrors: z } = X(), B = l(null), V = S || s(), H = o || z?.[v], U = !!H, W = a || c, G = l(null);
3071
+ function ur(e) {
3072
+ let { defaultCountryIso: t, value: n, label: r, className: i = "", disabled: a = !1, errorMessage: o, isLoading: c = !1, readOnly: d = !1, size: f = "md", defaultValue: h = "", variant: g = "solid", showAsterisk: _, name: v, onChange: y, searchCountryPlaceholder: b = "Pesquisar país", notFoundCountryText: x = "Nenhum país encontrado", id: S, unShowFieldTemplate: C = !1, orientation: w = "vertical" } = e, T = ce.find((e) => e.iso === "BR"), E = h ? ne(h) : "", D = h ? ee(h)[1] : T, [O, k] = u(!1), [A, j] = u(""), [M, N] = u(!1), [P, F] = u(E), I = n === void 0 ? P : n, [L, R] = u(D), { fieldErrors: z } = X(), B = l(null), V = S || s(), H = o || z?.[v], U = !!H, W = a || c, G = l(null);
2568
3073
  function K() {
2569
3074
  W || O || M || (k(!0), G.current && G.current.focus());
2570
3075
  }
2571
3076
  function q() {
2572
3077
  N(!0), k(!0);
2573
3078
  }
2574
- function te() {
3079
+ function J() {
2575
3080
  N(!1), k(!1);
2576
3081
  }
2577
- function J() {
3082
+ function te() {
2578
3083
  k(!0);
2579
3084
  }
2580
3085
  function ie() {
@@ -2595,7 +3100,7 @@ function Ln(e) {
2595
3100
  errorMessage: H,
2596
3101
  unShowFieldTemplate: C,
2597
3102
  orientation: w,
2598
- children: /* @__PURE__ */ m(Tn, {
3103
+ children: /* @__PURE__ */ m(Qn, {
2599
3104
  disabled: W,
2600
3105
  isError: U,
2601
3106
  isLoading: c,
@@ -2605,17 +3110,17 @@ function Ln(e) {
2605
3110
  variant: g,
2606
3111
  onFocus: K,
2607
3112
  children: [
2608
- /* @__PURE__ */ p(kn, {
3113
+ /* @__PURE__ */ p(nr, {
2609
3114
  currentCountry: L,
2610
3115
  onClick: q,
2611
3116
  size: f
2612
3117
  }),
2613
- /* @__PURE__ */ m(On, {
3118
+ /* @__PURE__ */ m(tr, {
2614
3119
  isOpen: W || d ? !1 : M,
2615
3120
  search: A,
2616
3121
  placeholder: b,
2617
3122
  onSearch: j,
2618
- children: [ce.filter((e) => Y(e)).map((e) => /* @__PURE__ */ p(Dn, {
3123
+ children: [ce.filter((e) => Y(e)).map((e) => /* @__PURE__ */ p(er, {
2619
3124
  country: e,
2620
3125
  handleChangeValue: () => {
2621
3126
  R(e), N(!1), F("");
@@ -2624,11 +3129,11 @@ function Ln(e) {
2624
3129
  size: f
2625
3130
  }, e.iso)), ce.filter((e) => Y(e)).length === 0 && /* @__PURE__ */ p("p", { children: x })]
2626
3131
  }),
2627
- /* @__PURE__ */ p(En, {
3132
+ /* @__PURE__ */ p($n, {
2628
3133
  isOpen: W || d ? !1 : M,
2629
- onClick: te
3134
+ onClick: J
2630
3135
  }),
2631
- /* @__PURE__ */ p(In, {
3136
+ /* @__PURE__ */ p(lr, {
2632
3137
  id: V,
2633
3138
  ref: G,
2634
3139
  readonly: d,
@@ -2636,7 +3141,7 @@ function Ln(e) {
2636
3141
  value: I,
2637
3142
  disabled: W,
2638
3143
  onBlur: ie,
2639
- onFocus: J,
3144
+ onFocus: te,
2640
3145
  size: f,
2641
3146
  onChange: (e) => {
2642
3147
  F(e), y && y(ae(e));
@@ -2654,7 +3159,7 @@ function Ln(e) {
2654
3159
  }
2655
3160
  //#endregion
2656
3161
  //#region src/components/popover/index.tsx
2657
- function Rn(e) {
3162
+ function dr(e) {
2658
3163
  let { children: t, button: n, closeOnClick: r, className: i = "", orientation: a = "bottomLeft" } = e, [o, s] = u(!1), c = `arkynPopover ${a} ${o ? "visibleTrue" : "visibleFalse"} ${i}`;
2659
3164
  function l() {
2660
3165
  o || s(!0);
@@ -2686,10 +3191,10 @@ function Rn(e) {
2686
3191
  }
2687
3192
  //#endregion
2688
3193
  //#region src/components/radio/radioContext.tsx
2689
- var zn = n({});
2690
- function Bn(e) {
3194
+ var fr = n({});
3195
+ function pr(e) {
2691
3196
  let { children: t, size: n, isError: r, handleChange: i, value: a, disabled: o } = e;
2692
- return /* @__PURE__ */ p(zn.Provider, {
3197
+ return /* @__PURE__ */ p(fr.Provider, {
2693
3198
  value: {
2694
3199
  handleChange: i,
2695
3200
  value: a,
@@ -2700,13 +3205,13 @@ function Bn(e) {
2700
3205
  children: t
2701
3206
  });
2702
3207
  }
2703
- function Vn() {
2704
- return a(zn);
3208
+ function mr() {
3209
+ return a(fr);
2705
3210
  }
2706
3211
  //#endregion
2707
3212
  //#region src/components/radio/radioBox/index.tsx
2708
- function Hn(e) {
2709
- let { value: t, size: n, disabled: r, children: i, className: a = "", onClick: o, onFocus: s, ...c } = e, { handleChange: l, size: u, value: d, isError: f, disabled: h } = Vn(), g = d === t, _ = n || u, v = r || h, y = `arkynRadioBox ${_} ${g ? "checkedTrue" : "checkedFalse"} ${f ? "errorTrue" : "errorFalse"} ${v ? "disabledTrue" : "disabledFalse"} ${a}`;
3213
+ function hr(e) {
3214
+ let { value: t, size: n, disabled: r, children: i, className: a = "", onClick: o, onFocus: s, ...c } = e, { handleChange: l, size: u, value: d, isError: f, disabled: h } = mr(), g = d === t, _ = n || u, v = r || h, y = `arkynRadioBox ${_} ${g ? "checkedTrue" : "checkedFalse"} ${f ? "errorTrue" : "errorFalse"} ${v ? "disabledTrue" : "disabledFalse"} ${a}`;
2710
3215
  function b(e) {
2711
3216
  o && o(e), l(t);
2712
3217
  }
@@ -2726,7 +3231,7 @@ function Hn(e) {
2726
3231
  }
2727
3232
  //#endregion
2728
3233
  //#region src/components/radio/radioGroup/index.tsx
2729
- function Un(e) {
3234
+ function gr(e) {
2730
3235
  let { defaultValue: t = "", name: n, label: r, showAsterisk: i, errorMessage: a, value: o, onChange: s, size: c = "md", className: l = "", disabled: d = !1, unShowFieldTemplate: f = !1, orientation: h = "horizontal", ...g } = e, [_, v] = u(t), { fieldErrors: y } = X();
2731
3236
  function b(e) {
2732
3237
  v(e), s && s(e);
@@ -2740,7 +3245,7 @@ function Un(e) {
2740
3245
  errorMessage: x,
2741
3246
  unShowFieldTemplate: f,
2742
3247
  orientation: h,
2743
- children: /* @__PURE__ */ m(Bn, {
3248
+ children: /* @__PURE__ */ m(pr, {
2744
3249
  isError: S,
2745
3250
  size: c,
2746
3251
  value: o || _,
@@ -2761,7 +3266,7 @@ function Un(e) {
2761
3266
  }
2762
3267
  //#endregion
2763
3268
  //#region src/services/isBlockActive.ts
2764
- function Wn(e, t, n = "type") {
3269
+ function _r(e, t, n = "type") {
2765
3270
  let { selection: r } = e;
2766
3271
  if (!r) return !1;
2767
3272
  let [i] = Array.from(ue.nodes(e, {
@@ -2772,15 +3277,15 @@ function Wn(e, t, n = "type") {
2772
3277
  }
2773
3278
  //#endregion
2774
3279
  //#region src/templates/richTextTemplates.ts
2775
- var Gn = {
3280
+ var vr = {
2776
3281
  "mod+b": "bold",
2777
3282
  "mod+i": "italic",
2778
3283
  "mod+u": "underline",
2779
3284
  "mod+`": "code"
2780
- }, Kn = [{
3285
+ }, yr = [{
2781
3286
  type: "paragraph",
2782
3287
  children: [{ text: "" }]
2783
- }], qn = ["listItem", "numberedList"], Jn = [
3288
+ }], br = ["listItem", "numberedList"], xr = [
2784
3289
  "left",
2785
3290
  "center",
2786
3291
  "right",
@@ -2788,14 +3293,14 @@ var Gn = {
2788
3293
  ];
2789
3294
  //#endregion
2790
3295
  //#region src/services/toggleBlock.ts
2791
- function Yn(e, t) {
2792
- let n = Wn(e, t, Jn.includes(t) ? "align" : "type"), r = qn.includes(t);
3296
+ function Sr(e, t) {
3297
+ let n = _r(e, t, xr.includes(t) ? "align" : "type"), r = br.includes(t);
2793
3298
  me.unwrapNodes(e, {
2794
- match: (e) => !ue.isEditor(e) && de.isElement(e) && qn.includes(e.type) && !Jn.includes(t),
3299
+ match: (e) => !ue.isEditor(e) && de.isElement(e) && br.includes(e.type) && !xr.includes(t),
2795
3300
  split: !0
2796
3301
  });
2797
3302
  let i;
2798
- if (i = Jn.includes(t) ? { align: n ? void 0 : t } : { type: n ? "paragraph" : r ? "listItem" : t }, me.setNodes(e, i), !n && r) {
3303
+ if (i = xr.includes(t) ? { align: n ? void 0 : t } : { type: n ? "paragraph" : r ? "listItem" : t }, me.setNodes(e, i), !n && r) {
2799
3304
  let n = {
2800
3305
  type: t,
2801
3306
  children: []
@@ -2805,10 +3310,10 @@ function Yn(e, t) {
2805
3310
  }
2806
3311
  //#endregion
2807
3312
  //#region src/components/richText/blockButton/index.tsx
2808
- function Xn({ format: e, icon: t }) {
2809
- let n = ye(), r = Wn(n, e, Jn.includes(e) ? "align" : "type") ? "activeTrue" : "activeFalse";
3313
+ function Cr({ format: e, icon: t }) {
3314
+ let n = ye(), r = _r(n, e, xr.includes(e) ? "align" : "type") ? "activeTrue" : "activeFalse";
2810
3315
  function i(t) {
2811
- t.preventDefault(), Yn(n, e);
3316
+ t.preventDefault(), Sr(n, e);
2812
3317
  }
2813
3318
  return /* @__PURE__ */ p("button", {
2814
3319
  type: "button",
@@ -2819,7 +3324,7 @@ function Xn({ format: e, icon: t }) {
2819
3324
  }
2820
3325
  //#endregion
2821
3326
  //#region src/components/richText/element/index.tsx
2822
- function Zn({ attributes: e, children: t, element: n }) {
3327
+ function wr({ attributes: e, children: t, element: n }) {
2823
3328
  let r = { textAlign: n.align };
2824
3329
  switch (n.type) {
2825
3330
  case "blockQuote": return /* @__PURE__ */ p("blockquote", {
@@ -2889,20 +3394,20 @@ function Zn({ attributes: e, children: t, element: n }) {
2889
3394
  }
2890
3395
  //#endregion
2891
3396
  //#region src/components/tab/tabContext.tsx
2892
- var Qn = n({});
2893
- function $n() {
2894
- return a(Qn);
3397
+ var Tr = n({});
3398
+ function Er() {
3399
+ return a(Tr);
2895
3400
  }
2896
- function er(e) {
2897
- return /* @__PURE__ */ p(Qn.Provider, {
3401
+ function Dr(e) {
3402
+ return /* @__PURE__ */ p(Tr.Provider, {
2898
3403
  value: e,
2899
3404
  children: e.children
2900
3405
  });
2901
3406
  }
2902
3407
  //#endregion
2903
3408
  //#region src/components/tab/tabButton/index.tsx
2904
- function tr(e) {
2905
- let { children: t, disabled: n = !1, className: r = "", onClick: i, value: a, ...o } = e, { disabled: s, currentTab: c, changeCurrentTab: l } = $n(), u = s || n, d = `arkynTabButton ${u ? "isDisabled" : ""} ${c === a && a ? "isActive" : ""} ${r}`;
3409
+ function Or(e) {
3410
+ let { children: t, disabled: n = !1, className: r = "", onClick: i, value: a, ...o } = e, { disabled: s, currentTab: c, changeCurrentTab: l } = Er(), u = s || n, d = `arkynTabButton ${u ? "isDisabled" : ""} ${c === a && a ? "isActive" : ""} ${r}`;
2906
3411
  function f(e) {
2907
3412
  l(a), i && i(e);
2908
3413
  }
@@ -2917,12 +3422,12 @@ function tr(e) {
2917
3422
  }
2918
3423
  //#endregion
2919
3424
  //#region src/components/tab/tabContainer/index.tsx
2920
- function nr(e) {
3425
+ function kr(e) {
2921
3426
  let { children: t, onChange: n, defaultValue: r, disabled: i = !1, className: a, ...o } = e, [s, c] = u(r || ""), l = `arkynTabContainer ${a || ""}`;
2922
3427
  function d(e) {
2923
3428
  c(e), n && n(e);
2924
3429
  }
2925
- return /* @__PURE__ */ p(er, {
3430
+ return /* @__PURE__ */ p(Dr, {
2926
3431
  disabled: i,
2927
3432
  currentTab: s,
2928
3433
  changeCurrentTab: d,
@@ -2935,7 +3440,7 @@ function nr(e) {
2935
3440
  }
2936
3441
  //#endregion
2937
3442
  //#region src/components/richText/insertImage/index.tsx
2938
- function rr(e) {
3443
+ function Ar(e) {
2939
3444
  let { action: t, tabLabels: n = ["Adicionar URL", "Upload de arquivo"], modalCancelButton: r = "Cancelar", modalConfirmButton: i = "Confirmar", modalInputImageLabel: a = "Imagem:", modalInputUrlLabel: o = "URL da imagem:", modalTitle: s = "Inserir imagem" } = e, c = ye(), [l, d] = u(!1), [h, g] = u(""), [_, v] = u("url");
2940
3445
  function y(e) {
2941
3446
  e.preventDefault(), !(!h || h === "") && (c.insertNodes([
@@ -2959,21 +3464,21 @@ function rr(e) {
2959
3464
  className: "arkynRichTextInsertImage",
2960
3465
  onMouseDown: () => d(!0),
2961
3466
  children: /* @__PURE__ */ p(P, {})
2962
- }), /* @__PURE__ */ m(sn, {
3467
+ }), /* @__PURE__ */ m(Pn, {
2963
3468
  isVisible: l,
2964
3469
  makeInvisible: () => d(!1),
2965
3470
  children: [
2966
- /* @__PURE__ */ p(ln, { children: s }),
3471
+ /* @__PURE__ */ p(In, { children: s }),
2967
3472
  /* @__PURE__ */ m("div", {
2968
3473
  className: "arkynRichTextInsertImageModalContent",
2969
3474
  children: [
2970
- /* @__PURE__ */ m(nr, {
3475
+ /* @__PURE__ */ m(kr, {
2971
3476
  defaultValue: _,
2972
3477
  onChange: v,
2973
- children: [/* @__PURE__ */ p(tr, {
3478
+ children: [/* @__PURE__ */ p(Or, {
2974
3479
  value: "url",
2975
3480
  children: n[0]
2976
- }), /* @__PURE__ */ p(tr, {
3481
+ }), /* @__PURE__ */ p(Or, {
2977
3482
  value: "file",
2978
3483
  children: n[1]
2979
3484
  })]
@@ -2990,7 +3495,7 @@ function rr(e) {
2990
3495
  src: h,
2991
3496
  alt: "preview"
2992
3497
  })] }),
2993
- _ === "file" && /* @__PURE__ */ p(Zt, {
3498
+ _ === "file" && /* @__PURE__ */ p(Tn, {
2994
3499
  name: "richTextImageURL",
2995
3500
  action: t,
2996
3501
  label: a,
@@ -3000,7 +3505,7 @@ function rr(e) {
3000
3505
  })
3001
3506
  ]
3002
3507
  }),
3003
- /* @__PURE__ */ m(cn, { children: [/* @__PURE__ */ p(Q, {
3508
+ /* @__PURE__ */ m(Fn, { children: [/* @__PURE__ */ p(Q, {
3004
3509
  type: "button",
3005
3510
  scheme: "danger",
3006
3511
  variant: "outline",
@@ -3016,7 +3521,7 @@ function rr(e) {
3016
3521
  }
3017
3522
  //#endregion
3018
3523
  //#region src/components/richText/insertVideo/index.tsx
3019
- function ir(e) {
3524
+ function jr(e) {
3020
3525
  let { modalCancelButton: t = "Cancelar", modalConfirmButton: n = "Confirmar", modalInputUrlLabel: r = "URL do vídeo:", modalTitle: i = "Inserir vídeo", invalidUrlMessage: a = "URL inválida" } = e, s = ye(), [c, l] = u(!1), [d, h] = u(""), [g, _] = u(""), [v, y] = u("");
3021
3526
  function b(e) {
3022
3527
  if (e.preventDefault(), !d || d === "") return;
@@ -3049,11 +3554,11 @@ function ir(e) {
3049
3554
  className: "arkynRichTextInsertVideo",
3050
3555
  onMouseDown: () => l(!0),
3051
3556
  children: /* @__PURE__ */ p(G, {})
3052
- }), /* @__PURE__ */ m(sn, {
3557
+ }), /* @__PURE__ */ m(Pn, {
3053
3558
  isVisible: c,
3054
3559
  makeInvisible: () => l(!1),
3055
3560
  children: [
3056
- /* @__PURE__ */ p(ln, { children: i }),
3561
+ /* @__PURE__ */ p(In, { children: i }),
3057
3562
  /* @__PURE__ */ m("div", {
3058
3563
  className: "arkynRichTextInsertVideoModalContent",
3059
3564
  children: [/* @__PURE__ */ p(ot, {
@@ -3074,7 +3579,7 @@ function ir(e) {
3074
3579
  allowFullScreen: !0
3075
3580
  })]
3076
3581
  }),
3077
- /* @__PURE__ */ m(cn, { children: [/* @__PURE__ */ p(Q, {
3582
+ /* @__PURE__ */ m(Fn, { children: [/* @__PURE__ */ p(Q, {
3078
3583
  type: "button",
3079
3584
  scheme: "danger",
3080
3585
  variant: "outline",
@@ -3091,7 +3596,7 @@ function ir(e) {
3091
3596
  }
3092
3597
  //#endregion
3093
3598
  //#region src/components/richText/leaf/index.tsx
3094
- function ar({ attributes: e, children: t, leaf: n }) {
3599
+ function Mr({ attributes: e, children: t, leaf: n }) {
3095
3600
  return n.bold && (t = /* @__PURE__ */ p("strong", { children: t })), n.code && (t = /* @__PURE__ */ p("code", { children: t })), n.italic && (t = /* @__PURE__ */ p("em", { children: t })), n.underline && (t = /* @__PURE__ */ p("u", { children: t })), /* @__PURE__ */ p("span", {
3096
3601
  ...e,
3097
3602
  children: t
@@ -3099,21 +3604,21 @@ function ar({ attributes: e, children: t, leaf: n }) {
3099
3604
  }
3100
3605
  //#endregion
3101
3606
  //#region src/services/isMarkActive.ts
3102
- function or(e, t) {
3607
+ function Nr(e, t) {
3103
3608
  let n = ue.marks(e);
3104
3609
  return n ? n[t] === !0 : !1;
3105
3610
  }
3106
3611
  //#endregion
3107
3612
  //#region src/services/toggleMark.ts
3108
- function sr(e, t) {
3109
- or(e, t) ? ue.removeMark(e, t) : ue.addMark(e, t, !0);
3613
+ function Pr(e, t) {
3614
+ Nr(e, t) ? ue.removeMark(e, t) : ue.addMark(e, t, !0);
3110
3615
  }
3111
3616
  //#endregion
3112
3617
  //#region src/components/richText/markButton/index.tsx
3113
- function cr({ format: e, icon: t }) {
3114
- let n = ye(), r = or(n, e) ? "activeTrue" : "activeFalse";
3618
+ function Fr({ format: e, icon: t }) {
3619
+ let n = ye(), r = Nr(n, e) ? "activeTrue" : "activeFalse";
3115
3620
  function i(t) {
3116
- t.preventDefault(), sr(n, e);
3621
+ t.preventDefault(), Pr(n, e);
3117
3622
  }
3118
3623
  return /* @__PURE__ */ p("button", {
3119
3624
  type: "button",
@@ -3124,7 +3629,7 @@ function cr({ format: e, icon: t }) {
3124
3629
  }
3125
3630
  //#endregion
3126
3631
  //#region src/components/richText/toolbar/index.tsx
3127
- function lr({ children: e }) {
3632
+ function Ir({ children: e }) {
3128
3633
  return /* @__PURE__ */ p("div", {
3129
3634
  className: "arkynRichTextToolbar",
3130
3635
  children: e
@@ -3132,24 +3637,24 @@ function lr({ children: e }) {
3132
3637
  }
3133
3638
  //#endregion
3134
3639
  //#region src/services/extractTextFromNode.ts
3135
- function ur(e) {
3640
+ function Lr(e) {
3136
3641
  return e.map((e) => fe.string(e)).join("");
3137
3642
  }
3138
3643
  //#endregion
3139
3644
  //#region src/components/richText/index.tsx
3140
- function dr(e) {
3645
+ function Rr(e) {
3141
3646
  let { name: t, hiddenButtons: n, imageConfig: r, videoConfig: a, className: o = "", defaultValue: d = "[]", enforceCharacterLimit: f = !1, onChangeCharactersCount: h, baseErrorMessage: x, maxLimit: S = 1e4, onChange: C, isError: w, label: T, showAsterisk: D, id: O, orientation: k = "horizontal", unShowFieldTemplate: A = !1 } = e, j = c(() => ge(be(he())), []), { fieldErrors: P } = X();
3142
3647
  function F() {
3143
3648
  try {
3144
3649
  let e = JSON.parse(d);
3145
- return !Array.isArray(e) || e.length <= 0 ? Kn : e.every((e) => typeof e == "object" && !!e && "type" in e && "children" in e) ? e : Kn;
3650
+ return !Array.isArray(e) || e.length <= 0 ? yr : e.every((e) => typeof e == "object" && !!e && "type" in e && "children" in e) ? e : yr;
3146
3651
  } catch {
3147
- return Kn;
3652
+ return yr;
3148
3653
  }
3149
3654
  }
3150
- let [L, R] = u(ur(F()).length), [z, B] = u(JSON.stringify(F()) || "[]"), [H, U] = u(!1), G = l(null), K = O || s(), q = x || P?.[t], ee = w || !!q, te = i(ar, []), J = i(Zn, []);
3655
+ let [L, R] = u(Lr(F()).length), [z, B] = u(JSON.stringify(F()) || "[]"), [H, U] = u(!1), G = l(null), K = O || s(), q = x || P?.[t], ee = w || !!q, J = i(Mr, []), te = i(wr, []);
3151
3656
  function ne(e) {
3152
- let t = ur(e);
3657
+ let t = Lr(e);
3153
3658
  R(t.length), h && h(t.length), !(f && t.length >= S) && (B(JSON.stringify(e)), C && C(e), j.children = e, me.setNodes(j, { children: e }));
3154
3659
  }
3155
3660
  let re = `arkynRichText ${ee || S < L ? "errorTrue" : "errorFalse"} ${H ? "focusTrue" : "focusFalse"}`, ie = S - L;
@@ -3173,68 +3678,68 @@ function dr(e) {
3173
3678
  /* @__PURE__ */ m("div", {
3174
3679
  className: re,
3175
3680
  children: [
3176
- /* @__PURE__ */ m(lr, { children: [
3177
- Y("headingOne") && /* @__PURE__ */ p(Xn, {
3681
+ /* @__PURE__ */ m(Ir, { children: [
3682
+ Y("headingOne") && /* @__PURE__ */ p(Cr, {
3178
3683
  format: "headingOne",
3179
3684
  icon: M
3180
3685
  }),
3181
- Y("headingTwo") && /* @__PURE__ */ p(Xn, {
3686
+ Y("headingTwo") && /* @__PURE__ */ p(Cr, {
3182
3687
  format: "headingTwo",
3183
3688
  icon: N
3184
3689
  }),
3185
- Y("blockQuote") && /* @__PURE__ */ p(Xn, {
3690
+ Y("blockQuote") && /* @__PURE__ */ p(Cr, {
3186
3691
  format: "blockQuote",
3187
3692
  icon: V
3188
3693
  }),
3189
- Y("bold") && /* @__PURE__ */ p(cr, {
3694
+ Y("bold") && /* @__PURE__ */ p(Fr, {
3190
3695
  format: "bold",
3191
3696
  icon: b
3192
3697
  }),
3193
- Y("italic") && /* @__PURE__ */ p(cr, {
3698
+ Y("italic") && /* @__PURE__ */ p(Fr, {
3194
3699
  format: "italic",
3195
3700
  icon: I
3196
3701
  }),
3197
- Y("underline") && /* @__PURE__ */ p(cr, {
3702
+ Y("underline") && /* @__PURE__ */ p(Fr, {
3198
3703
  format: "underline",
3199
3704
  icon: W
3200
3705
  }),
3201
- Y("code") && /* @__PURE__ */ p(cr, {
3706
+ Y("code") && /* @__PURE__ */ p(Fr, {
3202
3707
  format: "code",
3203
3708
  icon: E
3204
3709
  }),
3205
- Y("left") && /* @__PURE__ */ p(Xn, {
3710
+ Y("left") && /* @__PURE__ */ p(Cr, {
3206
3711
  format: "left",
3207
3712
  icon: v
3208
3713
  }),
3209
- Y("right") && /* @__PURE__ */ p(Xn, {
3714
+ Y("right") && /* @__PURE__ */ p(Cr, {
3210
3715
  format: "right",
3211
3716
  icon: y
3212
3717
  }),
3213
- Y("center") && /* @__PURE__ */ p(Xn, {
3718
+ Y("center") && /* @__PURE__ */ p(Cr, {
3214
3719
  format: "center",
3215
3720
  icon: g
3216
3721
  }),
3217
- Y("justify") && /* @__PURE__ */ p(Xn, {
3722
+ Y("justify") && /* @__PURE__ */ p(Cr, {
3218
3723
  format: "justify",
3219
3724
  icon: _
3220
3725
  }),
3221
- r && Y("image") && /* @__PURE__ */ p(rr, { ...r }),
3222
- Y("video") && /* @__PURE__ */ p(ir, { ...a })
3726
+ r && Y("image") && /* @__PURE__ */ p(Ar, { ...r }),
3727
+ Y("video") && /* @__PURE__ */ p(jr, { ...a })
3223
3728
  ] }),
3224
3729
  /* @__PURE__ */ p(_e, {
3225
3730
  className: "editorContainer",
3226
- renderElement: J,
3227
- renderLeaf: te,
3731
+ renderElement: te,
3732
+ renderLeaf: J,
3228
3733
  spellCheck: !0,
3229
3734
  ref: G,
3230
3735
  id: K,
3231
3736
  onFocus: () => U(!0),
3232
3737
  onBlur: () => U(!1),
3233
3738
  onKeyDown: (e) => {
3234
- for (let t in Gn) if (le(t, e)) {
3739
+ for (let t in vr) if (le(t, e)) {
3235
3740
  e.preventDefault();
3236
- let n = Gn[t];
3237
- sr(j, n);
3741
+ let n = vr[t];
3742
+ Pr(j, n);
3238
3743
  }
3239
3744
  }
3240
3745
  }),
@@ -3260,7 +3765,7 @@ function dr(e) {
3260
3765
  }
3261
3766
  //#endregion
3262
3767
  //#region src/components/searchPlaces.tsx
3263
- function fr(e) {
3768
+ function zr(e) {
3264
3769
  let { onChange: t, onPlaceChanged: n, options: r, ...i } = e, [a, o] = u(null);
3265
3770
  return /* @__PURE__ */ p(xe, {
3266
3771
  onLoad: (e) => o(e),
@@ -3313,7 +3818,7 @@ function fr(e) {
3313
3818
  }
3314
3819
  //#endregion
3315
3820
  //#region src/components/switch/index.tsx
3316
- function pr(e) {
3821
+ function Br(e) {
3317
3822
  let { label: t, size: n = "lg", defaultChecked: r = !1, checked: i = null, value: a, unCheckedValue: o = "", name: c, className: d = "", onCheck: f, id: m, orientation: h = "horizontalReverse", className: g = "", showAsterisk: _, errorMessage: v, unShowFieldTemplate: y = !1, ...b } = e, x = l(null), S = m || s(), [C, w] = u(r), T = typeof i == "boolean" ? i : C;
3318
3823
  function E() {
3319
3824
  w(!C), f && f(T ? o : a || "checked");
@@ -3344,7 +3849,7 @@ function pr(e) {
3344
3849
  }
3345
3850
  //#endregion
3346
3851
  //#region src/components/table/tableBody/index.tsx
3347
- function mr(t) {
3852
+ function Vr(t) {
3348
3853
  let { emptyMessage: n = "Nenhum dado adicionado.", className: r, children: i, ...a } = t, o = `arkynTableBody ${r}`, s = e.count(i) === 0;
3349
3854
  return /* @__PURE__ */ p("tbody", {
3350
3855
  className: o.trim(),
@@ -3360,7 +3865,7 @@ function mr(t) {
3360
3865
  }
3361
3866
  //#endregion
3362
3867
  //#region src/components/table/tableCaption/index.tsx
3363
- function hr(e) {
3868
+ function Hr(e) {
3364
3869
  let { className: t, children: n, ...r } = e;
3365
3870
  return /* @__PURE__ */ p("caption", {
3366
3871
  className: `arkynTableCaption ${t}`.trim(),
@@ -3373,7 +3878,7 @@ function hr(e) {
3373
3878
  }
3374
3879
  //#endregion
3375
3880
  //#region src/components/table/tableContainer/index.tsx
3376
- function gr(e) {
3881
+ function Ur(e) {
3377
3882
  let { children: t, className: n, ...r } = e;
3378
3883
  return /* @__PURE__ */ p("div", {
3379
3884
  className: `arkynTableContainer ${n}`.trim(),
@@ -3383,7 +3888,7 @@ function gr(e) {
3383
3888
  }
3384
3889
  //#endregion
3385
3890
  //#region src/components/table/tableFooter/index.tsx
3386
- function _r(e) {
3891
+ function Wr(e) {
3387
3892
  let { className: t, children: n, ...r } = e;
3388
3893
  return /* @__PURE__ */ m("tfoot", {
3389
3894
  className: `arkynTableFooter ${t}`.trim(),
@@ -3399,7 +3904,7 @@ function _r(e) {
3399
3904
  }
3400
3905
  //#endregion
3401
3906
  //#region src/components/table/tableHeader/index.tsx
3402
- function vr(e) {
3907
+ function Gr(e) {
3403
3908
  let { className: t, children: n, ...r } = e;
3404
3909
  return /* @__PURE__ */ m("thead", {
3405
3910
  className: `arkynTableHeader ${t}`.trim(),
@@ -3409,7 +3914,7 @@ function vr(e) {
3409
3914
  }
3410
3915
  //#endregion
3411
3916
  //#region src/components/textarea/index.tsx
3412
- function yr(e) {
3917
+ function Kr(e) {
3413
3918
  let { variant: t = "solid", size: n = "md", className: r, errorMessage: i, disabled: a = !1, readOnly: o = !1, label: c, showAsterisk: d, name: f, onFocus: h, onBlur: g, title: _, style: v, value: y, defaultValue: b, placeholder: x, id: S, ...C } = e, { fieldErrors: w } = X(), [T, E] = u(!1), D = l(null), O = S || s(), k = i || w?.[f], A = `arkynTextarea ${t} ${n} ${a || o ? "opacityTrue" : "opacityFalse"} ${k ? "errorTrue" : "errorFalse"} ${T ? "focusedTrue" : "focusedFalse"}`;
3414
3919
  function j() {
3415
3920
  a || !D?.current || (E(!0), D.current.focus());
@@ -3453,8 +3958,8 @@ function yr(e) {
3453
3958
  }
3454
3959
  //#endregion
3455
3960
  //#region src/providers/modalProvider.tsx
3456
- var br = n({});
3457
- function xr(e) {
3961
+ var qr = n({});
3962
+ function Jr(e) {
3458
3963
  let { children: t = !1 } = e, [n, r] = u([]);
3459
3964
  function i(e) {
3460
3965
  return !!n.some((t) => t.key === e);
@@ -3477,7 +3982,7 @@ function xr(e) {
3477
3982
  function c() {
3478
3983
  r([]);
3479
3984
  }
3480
- return /* @__PURE__ */ p(br.Provider, {
3985
+ return /* @__PURE__ */ p(qr.Provider, {
3481
3986
  value: {
3482
3987
  modalIsOpen: i,
3483
3988
  modalData: a,
@@ -3490,8 +3995,8 @@ function xr(e) {
3490
3995
  }
3491
3996
  //#endregion
3492
3997
  //#region src/hooks/useModal.ts
3493
- function Sr(e) {
3494
- let t = a(br);
3998
+ function Yr(e) {
3999
+ let t = a(qr);
3495
4000
  if (Object.entries(t).length === 0) throw Error("useModal must be used within a Provider");
3496
4001
  if (e) {
3497
4002
  let { modalData: n, modalIsOpen: r, openModal: i, closeModal: a } = t;
@@ -3505,8 +4010,8 @@ function Sr(e) {
3505
4010
  }
3506
4011
  //#endregion
3507
4012
  //#region src/providers/toastProvider.tsx
3508
- var Cr = n({});
3509
- function wr({ children: e }) {
4013
+ var Xr = n({});
4014
+ function Zr({ children: e }) {
3510
4015
  function t(e) {
3511
4016
  switch (e.type) {
3512
4017
  case "success": return we.success(e.message, {
@@ -3537,7 +4042,7 @@ function wr({ children: e }) {
3537
4042
  });
3538
4043
  }
3539
4044
  }
3540
- return /* @__PURE__ */ m(Cr.Provider, {
4045
+ return /* @__PURE__ */ m(Xr.Provider, {
3541
4046
  value: { showToast: t },
3542
4047
  children: [/* @__PURE__ */ p(Te, {
3543
4048
  position: "top-right",
@@ -3547,14 +4052,14 @@ function wr({ children: e }) {
3547
4052
  }
3548
4053
  //#endregion
3549
4054
  //#region src/hooks/useToast.ts
3550
- function Tr() {
3551
- let e = a(Cr);
4055
+ function Qr() {
4056
+ let e = a(Xr);
3552
4057
  if (Object.entries(e).length === 0) throw Error("useToast must be used within a Provider");
3553
4058
  return e;
3554
4059
  }
3555
4060
  //#endregion
3556
4061
  //#region src/templates/badResponses.ts
3557
- var Er = [
4062
+ var $r = [
3558
4063
  "BadGateway",
3559
4064
  "BadRequest",
3560
4065
  "Conflict",
@@ -3564,7 +4069,7 @@ var Er = [
3564
4069
  "ServerError",
3565
4070
  "Unauthorized",
3566
4071
  "UnprocessableEntity"
3567
- ], Dr = [
4072
+ ], ei = [
3568
4073
  "Created",
3569
4074
  "Found",
3570
4075
  "Success",
@@ -3572,15 +4077,15 @@ var Er = [
3572
4077
  ];
3573
4078
  //#endregion
3574
4079
  //#region src/hooks/useAutomation.ts
3575
- function Or(e) {
3576
- let { closeAll: t } = Sr(), { showToast: n } = Tr(), r = e?.closeModal, i = e?.message, a = e?.name, s = e?.cause?.data?.scrollTo, c = e?.cause?.fieldErrors ? Object.values(e?.cause?.fieldErrors)[0] : null;
4080
+ function ti(e) {
4081
+ let { closeAll: t } = Yr(), { showToast: n } = Qr(), r = e?.closeModal, i = e?.message, a = e?.name, s = e?.cause?.data?.scrollTo, c = e?.cause?.fieldErrors ? Object.values(e?.cause?.fieldErrors)[0] : null;
3577
4082
  function l() {
3578
4083
  if (!(!i && !c)) {
3579
- if (Dr.includes(a)) return n({
4084
+ if (ei.includes(a)) return n({
3580
4085
  message: i,
3581
4086
  type: "success"
3582
4087
  });
3583
- if (Er.includes(a)) {
4088
+ if ($r.includes(a)) {
3584
4089
  if (c) return n({
3585
4090
  message: c,
3586
4091
  type: "danger"
@@ -3601,8 +4106,8 @@ function Or(e) {
3601
4106
  }
3602
4107
  //#endregion
3603
4108
  //#region src/providers/drawerProvider.tsx
3604
- var kr = n({});
3605
- function Ar(e) {
4109
+ var ni = n({});
4110
+ function ri(e) {
3606
4111
  let { children: t = !1 } = e, [n, r] = u([]);
3607
4112
  function i(e) {
3608
4113
  return !!n.some((t) => t.key === e);
@@ -3622,7 +4127,7 @@ function Ar(e) {
3622
4127
  function s(e) {
3623
4128
  r(n.filter((t) => t.key !== e));
3624
4129
  }
3625
- return /* @__PURE__ */ p(kr.Provider, {
4130
+ return /* @__PURE__ */ p(ni.Provider, {
3626
4131
  value: {
3627
4132
  drawerIsOpen: i,
3628
4133
  drawerData: a,
@@ -3634,8 +4139,8 @@ function Ar(e) {
3634
4139
  }
3635
4140
  //#endregion
3636
4141
  //#region src/hooks/useDrawer.ts
3637
- function jr(e) {
3638
- let t = a(kr);
4142
+ function ii(e) {
4143
+ let t = a(ni);
3639
4144
  if (Object.entries(t).length === 0) throw Error("useDrawer must be used within a Provider");
3640
4145
  if (e) {
3641
4146
  let { drawerData: n, drawerIsOpen: r, openDrawer: i, closeDrawer: a } = t;
@@ -3649,7 +4154,7 @@ function jr(e) {
3649
4154
  }
3650
4155
  //#endregion
3651
4156
  //#region src/hooks/useScopedParams.ts
3652
- function Mr(e, t = "") {
4157
+ function ai(e, t = "") {
3653
4158
  let n = new URLSearchParams(e), r = t ? `${t}:` : "", i = (e) => {
3654
4159
  Object.entries(e).forEach(([e, t]) => {
3655
4160
  t === void 0 ? n.delete(`${r}${e}`) : n.set(`${r}${e}`, String(t));
@@ -3666,8 +4171,8 @@ function Mr(e, t = "") {
3666
4171
  }
3667
4172
  //#endregion
3668
4173
  //#region src/hooks/useSearchAutomation.ts
3669
- function Nr(e, t = "") {
3670
- let { closeAll: n } = Sr(), { showToast: r } = Tr(), { getParam: i } = Mr(e, t), a = i("closeModal") === "true", s = i("message"), c = i("name"), l = i("type");
4174
+ function oi(e, t = "") {
4175
+ let { closeAll: n } = Yr(), { showToast: r } = Qr(), { getParam: i } = ai(e, t), a = i("closeModal") === "true", s = i("message"), c = i("name"), l = i("type");
3671
4176
  o(() => {
3672
4177
  a && n(), s && (l === "success" && r({
3673
4178
  message: s,
@@ -3675,10 +4180,10 @@ function Nr(e, t = "") {
3675
4180
  }), l === "danger" && r({
3676
4181
  message: s,
3677
4182
  type: "danger"
3678
- }), c && Er.includes(c) && !Er.includes(s) && r({
4183
+ }), c && $r.includes(c) && !$r.includes(s) && r({
3679
4184
  message: s,
3680
4185
  type: "danger"
3681
- }), c && Dr.includes(c) && !Dr.includes(s) && r({
4186
+ }), c && ei.includes(c) && !ei.includes(s) && r({
3682
4187
  message: s,
3683
4188
  type: "success"
3684
4189
  }));
@@ -3691,28 +4196,28 @@ function Nr(e, t = "") {
3691
4196
  }
3692
4197
  //#endregion
3693
4198
  //#region src/providers/placesProvider.tsx
3694
- var Pr = [
4199
+ var si = [
3695
4200
  "places",
3696
4201
  "marker",
3697
4202
  "maps"
3698
4203
  ];
3699
- function Fr(e) {
4204
+ function ci(e) {
3700
4205
  let { apiKey: t, children: n, preventFontsLoading: r = !0 } = e, { isLoaded: i } = Se({
3701
4206
  googleMapsApiKey: t,
3702
- libraries: Pr,
4207
+ libraries: si,
3703
4208
  preventGoogleFontsLoading: r
3704
4209
  });
3705
4210
  return /* @__PURE__ */ p(f, { children: n(i) });
3706
4211
  }
3707
4212
  //#endregion
3708
4213
  //#region src/utils/richTextUtilities.ts
3709
- function Ir(e) {
4214
+ function li(e) {
3710
4215
  if (pe.isText(e)) {
3711
4216
  let t = e?.text;
3712
4217
  return e?.bold && (t = `<strong>${t}</strong>`), e?.code && (t = `<code>${t}</code>`), e?.italic && (t = `<em>${t}</em>`), e?.underline && (t = `<u>${t}</u>`), t;
3713
4218
  }
3714
4219
  if (de.isElement(e)) {
3715
- let t = e.children?.map((e) => Ir(e)).join(""), n = e.align || "left";
4220
+ let t = e.children?.map((e) => li(e)).join(""), n = e.align || "left";
3716
4221
  switch (e.type) {
3717
4222
  case "video": return `<iframe src="${e.src}" class="align_${n}" />`;
3718
4223
  case "image": return `<img src="${e.src}" class="align_${n}" />`;
@@ -3728,9 +4233,9 @@ function Ir(e) {
3728
4233
  }
3729
4234
  return "";
3730
4235
  }
3731
- function Lr(e) {
4236
+ function ui(e) {
3732
4237
  if (typeof e == "string") return { text: e };
3733
- let t = Array.isArray(e.props.children) ? e.props.children.map((e) => Lr(e)) : [{ text: e.props.children || "" }], n = e.props.className?.replace("align_", "");
4238
+ let t = Array.isArray(e.props.children) ? e.props.children.map((e) => ui(e)) : [{ text: e.props.children || "" }], n = e.props.className?.replace("align_", "");
3734
4239
  switch (e.type) {
3735
4240
  case "img": return {
3736
4241
  type: "image",
@@ -3794,14 +4299,14 @@ function Lr(e) {
3794
4299
  }
3795
4300
  //#endregion
3796
4301
  //#region src/services/toHtml.ts
3797
- function Rr(e) {
3798
- return e.map((e) => Ir(e)).join("");
4302
+ function di(e) {
4303
+ return e.map((e) => li(e)).join("");
3799
4304
  }
3800
4305
  //#endregion
3801
4306
  //#region src/services/toRichTextValue.ts
3802
- function zr(e) {
4307
+ function fi(e) {
3803
4308
  let t = Ee(e);
3804
- return Array.isArray(t) ? t.map((e) => typeof e == "string" ? { text: e } : Lr(e)) : typeof t == "string" ? [{ text: t }] : [Lr(t)];
4309
+ return Array.isArray(t) ? t.map((e) => typeof e == "string" ? { text: e } : ui(e)) : typeof t == "string" ? [{ text: t }] : [ui(t)];
3805
4310
  }
3806
4311
  //#endregion
3807
- export { Ae as AlertContainer, je as AlertContent, Me as AlertDescription, Ne as AlertIcon, De as AlertTitle, Ie as AudioPlayer, qe as AudioUpload, Je as Badge, Q as Button, gt as Calendar, bt as CardTabButton, xt as CardTabContainer, St as Checkbox, Tt as ClientOnly, Ot as CurrencyInput, He as Divider, Mt as DrawerContainer, Nt as DrawerHeader, Ar as DrawerProvider, It as FacebookPixel, ze as FieldError, Be as FieldLabel, Ve as FieldWrapper, zt as FileUpload, Re as FormProvider, Ut as GoogleAnalytics, Jt as GoogleTagManager, Ue as IconButton, Zt as ImageUpload, ot as Input, en as MapView, nn as MaskedInput, sn as ModalContainer, cn as ModalFooter, ln as ModalHeader, xr as ModalProvider, vn as MultiSelect, wn as Pagination, Ln as PhoneInput, Fr as PlacesProvider, Rn as Popover, Hn as RadioBox, Un as RadioGroup, dr as RichText, fr as SearchPlaces, ut as Select, Fe as Slider, pr as Switch, tr as TabButton, nr as TabContainer, mr as TableBody, hr as TableCaption, gr as TableContainer, _r as TableFooter, vr as TableHeader, yr as Textarea, wr as ToastProvider, We as Tooltip, Rr as toHtml, zr as toRichTextValue, Or as useAutomation, jr as useDrawer, X as useForm, wt as useHydrated, Sr as useModal, Mr as useScopedParams, at as useScrollLock, Nr as useSearchAutomation, Pe as useSlider, Tr as useToast };
4312
+ export { Ae as AlertContainer, je as AlertContent, Me as AlertDescription, Ne as AlertIcon, De as AlertTitle, Ie as AudioPlayer, qe as AudioUpload, Je as Badge, Q as Button, gt as Calendar, bt as CardTabButton, xt as CardTabContainer, St as Checkbox, Tt as ClientOnly, Ot as CurrencyInput, He as Divider, Mt as DrawerContainer, Nt as DrawerHeader, ri as DrawerProvider, It as FacebookPixel, ze as FieldError, Be as FieldLabel, Ve as FieldWrapper, zt as FileUpload, Re as FormProvider, pn as FullCalendar, _n as GoogleAnalytics, Sn as GoogleTagManager, Ue as IconButton, Tn as ImageUpload, ot as Input, On as MapView, An as MaskedInput, Pn as ModalContainer, Fn as ModalFooter, In as ModalHeader, Jr as ModalProvider, Gn as MultiSelect, Zn as Pagination, ur as PhoneInput, ci as PlacesProvider, dr as Popover, hr as RadioBox, gr as RadioGroup, Rr as RichText, zr as SearchPlaces, ut as Select, Fe as Slider, Br as Switch, Or as TabButton, kr as TabContainer, Vr as TableBody, Hr as TableCaption, Ur as TableContainer, Wr as TableFooter, Gr as TableHeader, Kr as Textarea, Zr as ToastProvider, We as Tooltip, di as toHtml, fi as toRichTextValue, ti as useAutomation, ii as useDrawer, X as useForm, wt as useHydrated, Yr as useModal, ai as useScopedParams, at as useScrollLock, oi as useSearchAutomation, Pe as useSlider, Qr as useToast };