@arkyn/components 3.0.7 → 3.0.9

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 (87) hide show
  1. package/AGENTS.md +906 -0
  2. package/dist/components/calendar/calendarTableTd/index.d.ts.map +1 -1
  3. package/dist/components/currencyInput/index.d.ts +1 -1
  4. package/dist/components/datePicker/datePickerCalendarContainer/index.d.ts +1 -0
  5. package/dist/components/datePicker/datePickerCalendarContainer/index.d.ts.map +1 -1
  6. package/dist/components/datePicker/datePickerContainer/index.d.ts +5 -1
  7. package/dist/components/datePicker/datePickerContainer/index.d.ts.map +1 -1
  8. package/dist/components/datePicker/index.d.ts.map +1 -1
  9. package/dist/components/drawer/drawerContainer/index.d.ts.map +1 -1
  10. package/dist/components/imageUpload/index.d.ts +1 -1
  11. package/dist/components/input/index.d.ts +1 -1
  12. package/dist/components/modal/modalContainer/index.d.ts.map +1 -1
  13. package/dist/components/multiSelect/index.d.ts +1 -1
  14. package/dist/components/multiSelect/index.d.ts.map +1 -1
  15. package/dist/components/multiSelect/multiSelectContainer/index.d.ts +6 -1
  16. package/dist/components/multiSelect/multiSelectContainer/index.d.ts.map +1 -1
  17. package/dist/components/multiSelect/multiSelectOption/index.d.ts +2 -0
  18. package/dist/components/multiSelect/multiSelectOption/index.d.ts.map +1 -1
  19. package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts +1 -0
  20. package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts.map +1 -1
  21. package/dist/components/popover/index.d.ts.map +1 -1
  22. package/dist/components/richText/index.d.ts +1 -1
  23. package/dist/components/select/index.d.ts +1 -1
  24. package/dist/components/select/index.d.ts.map +1 -1
  25. package/dist/components/select/selectContainer/index.d.ts +6 -1
  26. package/dist/components/select/selectContainer/index.d.ts.map +1 -1
  27. package/dist/components/select/selectOption/index.d.ts +2 -0
  28. package/dist/components/select/selectOption/index.d.ts.map +1 -1
  29. package/dist/components/select/selectOptionsContainer/index.d.ts +1 -0
  30. package/dist/components/select/selectOptionsContainer/index.d.ts.map +1 -1
  31. package/dist/hooks/useEscapeKey.d.ts +24 -0
  32. package/dist/hooks/useEscapeKey.d.ts.map +1 -0
  33. package/dist/hooks/useFocusTrap.d.ts +28 -0
  34. package/dist/hooks/useFocusTrap.d.ts.map +1 -0
  35. package/dist/index.js +948 -736
  36. package/dist/index.js.map +1 -1
  37. package/dist/modules/components/calendar/calendarTableTd/index.js +7 -2
  38. package/dist/modules/components/calendar/calendarTableTd/index.js.map +1 -1
  39. package/dist/modules/components/calendar/calendarTableTd/styles.css +1 -1
  40. package/dist/modules/components/calendar/styles.css +2 -2
  41. package/dist/modules/components/currencyInput/index.js.map +1 -1
  42. package/dist/modules/components/datePicker/datePickerCalendarContainer/index.js +12 -9
  43. package/dist/modules/components/datePicker/datePickerCalendarContainer/index.js.map +1 -1
  44. package/dist/modules/components/datePicker/datePickerContainer/index.js +9 -2
  45. package/dist/modules/components/datePicker/datePickerContainer/index.js.map +1 -1
  46. package/dist/modules/components/datePicker/index.js +63 -44
  47. package/dist/modules/components/datePicker/index.js.map +1 -1
  48. package/dist/modules/components/datePicker/styles.css +4 -4
  49. package/dist/modules/components/drawer/drawerContainer/index.js +31 -23
  50. package/dist/modules/components/drawer/drawerContainer/index.js.map +1 -1
  51. package/dist/modules/components/facebookPixel/pixel.js +1 -1
  52. package/dist/modules/components/facebookPixel/pixel.js.map +1 -1
  53. package/dist/modules/components/imageUpload/index.js.map +1 -1
  54. package/dist/modules/components/input/index.js.map +1 -1
  55. package/dist/modules/components/modal/modalContainer/index.js +30 -22
  56. package/dist/modules/components/modal/modalContainer/index.js.map +1 -1
  57. package/dist/modules/components/multiSelect/index.js +119 -79
  58. package/dist/modules/components/multiSelect/index.js.map +1 -1
  59. package/dist/modules/components/multiSelect/multiSelectContainer/index.js +10 -2
  60. package/dist/modules/components/multiSelect/multiSelectContainer/index.js.map +1 -1
  61. package/dist/modules/components/multiSelect/multiSelectOption/index.js +7 -3
  62. package/dist/modules/components/multiSelect/multiSelectOption/index.js.map +1 -1
  63. package/dist/modules/components/multiSelect/multiSelectOption/styles.css +1 -1
  64. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +18 -15
  65. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js.map +1 -1
  66. package/dist/modules/components/multiSelect/styles.css +1 -1
  67. package/dist/modules/components/popover/index.js +23 -17
  68. package/dist/modules/components/popover/index.js.map +1 -1
  69. package/dist/modules/components/richText/index.js.map +1 -1
  70. package/dist/modules/components/searchPlaces.js +1 -1
  71. package/dist/modules/components/searchPlaces.js.map +1 -1
  72. package/dist/modules/components/select/index.js +120 -80
  73. package/dist/modules/components/select/index.js.map +1 -1
  74. package/dist/modules/components/select/selectContainer/index.js +10 -2
  75. package/dist/modules/components/select/selectContainer/index.js.map +1 -1
  76. package/dist/modules/components/select/selectOption/index.js +5 -2
  77. package/dist/modules/components/select/selectOption/index.js.map +1 -1
  78. package/dist/modules/components/select/selectOption/styles.css +1 -1
  79. package/dist/modules/components/select/selectOptionsContainer/index.js +17 -15
  80. package/dist/modules/components/select/selectOptionsContainer/index.js.map +1 -1
  81. package/dist/modules/components/select/styles.css +1 -1
  82. package/dist/modules/hooks/useEscapeKey.js +18 -0
  83. package/dist/modules/hooks/useEscapeKey.js.map +1 -0
  84. package/dist/modules/hooks/useFocusTrap.js +44 -0
  85. package/dist/modules/hooks/useFocusTrap.js.map +1 -0
  86. package/dist/style.css +1 -1
  87. package/package.json +9 -8
package/dist/index.js CHANGED
@@ -1,21 +1,21 @@
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
- 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, Link as L, Loader2 as R, MapPinned as z, Pause as B, Play as V, Quote as H, RefreshCw as U, Search as W, Underline as G, Video as K, X as q, XCircle as ee } from "lucide-react";
4
- import { findCountryMask as te, formatToCapitalizeFirstWordLetter as J, formatToCurrency as ne, formatToPhone as re, removeNonNumeric as ie } from "@arkyn/shared";
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, Link as L, Loader2 as R, MapPinned as ee, Pause as z, Play as B, Quote as V, RefreshCw as H, Search as U, Underline as W, Video as G, X as te, XCircle as K } from "lucide-react";
4
+ import { findCountryMask as q, formatToCapitalizeFirstWordLetter as J, formatToCurrency as ne, formatToPhone as re, removeNonNumeric as ie } from "@arkyn/shared";
5
5
  import ae from "mapbox-gl";
6
6
  import { createRoot as oe } from "react-dom/client";
7
7
  import { InputMask as Y } from "@react-input/mask";
8
8
  import { countries as se } from "@arkyn/templates";
9
- import { isHotkey as ce } from "is-hotkey";
10
- import { Editor as X, Element as le, Node as ue, Range as de, Text as fe, Transforms as pe, createEditor as me } from "slate";
11
- import { withHistory as he } from "slate-history";
12
- import { Editable as ge, Slate as _e, useSlate as ve, withReact as ye } from "slate-react";
13
- import { StandaloneSearchBox as be, useLoadScript as xe } from "@react-google-maps/api";
14
- import { scroller as Se } from "react-scroll";
15
- import Ce, { Toaster as we } from "react-hot-toast";
16
- import Te from "html-react-parser";
9
+ import { isHotkey as X } from "is-hotkey";
10
+ import { Editor as Z, Element as ce, Node as le, Range as ue, Text as de, Transforms as fe, createEditor as pe } from "slate";
11
+ import { withHistory as me } from "slate-history";
12
+ import { Editable as he, Slate as ge, useSlate as _e, withReact as ve } from "slate-react";
13
+ import { StandaloneSearchBox as ye, useLoadScript as be } from "@react-google-maps/api";
14
+ import { scroller as xe } from "react-scroll";
15
+ import Se, { Toaster as Ce } from "react-hot-toast";
16
+ import we from "html-react-parser";
17
17
  //#region src/components/alert/alertTitle/index.tsx
18
- function Ee(e) {
18
+ function Te(e) {
19
19
  let { className: t, ...n } = e;
20
20
  return /* @__PURE__ */ p("div", {
21
21
  className: `arkynAlertTitle ${t}`.trim(),
@@ -24,18 +24,18 @@ function Ee(e) {
24
24
  }
25
25
  //#endregion
26
26
  //#region src/components/alert/alertContainer/index.tsx
27
- var De = n({});
28
- function Oe() {
29
- return a(De);
27
+ var Ee = n({});
28
+ function De() {
29
+ return a(Ee);
30
30
  }
31
- function ke(e) {
31
+ function Oe(e) {
32
32
  let { scheme: t, children: n, className: r, ...i } = e, a = `arkynAlertContainer ${t} ${((e) => {
33
33
  let t = !1, n = (e) => {
34
- Array.isArray(e) ? e.forEach(n) : e && typeof e == "object" && "type" in e && (e.type === Ee ? t = !0 : e.props && typeof e.props == "object" && e.props !== null && "children" in e.props && n(e.props.children));
34
+ Array.isArray(e) ? e.forEach(n) : e && typeof e == "object" && "type" in e && (e.type === Te ? t = !0 : e.props && typeof e.props == "object" && e.props !== null && "children" in e.props && n(e.props.children));
35
35
  };
36
36
  return n(e), t;
37
37
  })(n) ? "existsAlertTitle" : "nonExistsAlertTitle"} ${r}`, o = c(() => ({ scheme: t }), [t]);
38
- return /* @__PURE__ */ p(De.Provider, {
38
+ return /* @__PURE__ */ p(Ee.Provider, {
39
39
  value: o,
40
40
  children: /* @__PURE__ */ p("div", {
41
41
  className: a.trim(),
@@ -46,7 +46,7 @@ function ke(e) {
46
46
  }
47
47
  //#endregion
48
48
  //#region src/components/alert/alertContent/index.tsx
49
- function Ae(e) {
49
+ function ke(e) {
50
50
  let { className: t, ...n } = e;
51
51
  return /* @__PURE__ */ p("div", {
52
52
  className: `arkynAlertContent ${t}`.trim(),
@@ -55,7 +55,7 @@ function Ae(e) {
55
55
  }
56
56
  //#endregion
57
57
  //#region src/components/alert/alertDescription/index.tsx
58
- function je(e) {
58
+ function Ae(e) {
59
59
  let { className: t, ...n } = e;
60
60
  return /* @__PURE__ */ p("div", {
61
61
  className: `arkynAlertDescription ${t}`.trim(),
@@ -64,14 +64,14 @@ function je(e) {
64
64
  }
65
65
  //#endregion
66
66
  //#region src/components/alert/alertIcon/index.tsx
67
- function Me(e) {
68
- let { className: t, ...n } = e, { scheme: r } = Oe(), i = `arkynAlertIcon ${r} ${t}`;
67
+ function je(e) {
68
+ let { className: t, ...n } = e, { scheme: r } = De(), i = `arkynAlertIcon ${r} ${t}`;
69
69
  switch (r) {
70
70
  case "success": return /* @__PURE__ */ p(S, {
71
71
  className: i,
72
72
  ...n
73
73
  });
74
- case "danger": return /* @__PURE__ */ p(ee, {
74
+ case "danger": return /* @__PURE__ */ p(K, {
75
75
  className: i,
76
76
  ...n
77
77
  });
@@ -87,7 +87,7 @@ function Me(e) {
87
87
  }
88
88
  //#endregion
89
89
  //#region src/hooks/useSlider.ts
90
- function Ne(e) {
90
+ function Me(e) {
91
91
  function t() {
92
92
  return !e || e <= 0 ? 0 : e >= 100 ? 100 : e;
93
93
  }
@@ -99,7 +99,7 @@ function Ne(e) {
99
99
  }
100
100
  //#endregion
101
101
  //#region src/components/slider/index.tsx
102
- function Pe(e) {
102
+ function Ne(e) {
103
103
  let { onChange: t, value: n, disabled: r = !1, onDragging: a, className: s = "", ...c } = e, [d, f] = u(!1), h = l(null), g = () => f(!0), _ = i(() => f(!1), []), v = i((e) => {
104
104
  if (r || !d || !h.current) return;
105
105
  let n = h.current.getBoundingClientRect(), i = e.clientX - n.left;
@@ -139,8 +139,8 @@ function Pe(e) {
139
139
  }
140
140
  //#endregion
141
141
  //#region src/components/audioPlayer/index.tsx
142
- function Fe(e) {
143
- let { onPlayAudio: t, onPauseAudio: n, disabled: r, style: i, ...a } = e, [s, c] = Ne(0), [d, f] = u(!1), [h, g] = u(!1), _ = l(null), v = _.current?.currentTime || 0, y = _.current?.duration || 0, b = C(v), x = C(y), S = {
142
+ function Pe(e) {
143
+ let { onPlayAudio: t, onPauseAudio: n, disabled: r, style: i, ...a } = e, [s, c] = Me(0), [d, f] = u(!1), [h, g] = u(!1), _ = l(null), v = _.current?.currentTime || 0, y = _.current?.duration || 0, b = C(v), x = C(y), S = {
144
144
  totalTime: y,
145
145
  currentTime: v,
146
146
  formattedCurrentTime: b,
@@ -192,10 +192,10 @@ function Fe(e) {
192
192
  type: "button",
193
193
  disabled: r,
194
194
  onClick: E,
195
- children: [d && /* @__PURE__ */ p(B, {}), !d && /* @__PURE__ */ p(V, {})]
195
+ children: [d && /* @__PURE__ */ p(z, {}), !d && /* @__PURE__ */ p(B, {})]
196
196
  }),
197
197
  /* @__PURE__ */ p("p", { children: b }),
198
- /* @__PURE__ */ p(Pe, {
198
+ /* @__PURE__ */ p(Ne, {
199
199
  value: s,
200
200
  onChange: D,
201
201
  onDragging: g,
@@ -207,22 +207,22 @@ function Fe(e) {
207
207
  }
208
208
  //#endregion
209
209
  //#region src/providers/formProvider.tsx
210
- var Ie = n({});
211
- function Le(e) {
210
+ var Fe = n({});
211
+ function Ie(e) {
212
212
  let { children: n, fieldErrors: r, form: i } = e, a = c(() => ({ fieldErrors: r }), [r]);
213
- return /* @__PURE__ */ m(Ie.Provider, {
213
+ return /* @__PURE__ */ m(Fe.Provider, {
214
214
  value: a,
215
215
  children: [!i && n, i && t(i, i.props, n)]
216
216
  });
217
217
  }
218
218
  //#endregion
219
219
  //#region src/hooks/useForm.ts
220
- function Z() {
221
- return a(Ie);
220
+ function Q() {
221
+ return a(Fe);
222
222
  }
223
223
  //#endregion
224
224
  //#region src/components/fieldError/index.tsx
225
- function Re(e) {
225
+ function Le(e) {
226
226
  let { children: t, className: n, ...r } = e, i = `arkynFieldError ${n}`;
227
227
  return t ? /* @__PURE__ */ p("strong", {
228
228
  className: i.trim(),
@@ -232,7 +232,7 @@ function Re(e) {
232
232
  }
233
233
  //#endregion
234
234
  //#region src/components/fieldLabel/index.tsx
235
- function ze(e) {
235
+ function Re(e) {
236
236
  let { showAsterisk: t = !1, className: n = "", ...r } = e;
237
237
  return /* @__PURE__ */ p("label", {
238
238
  className: `arkynFieldLabel ${t ? "asteriskTrue" : "asteriskFalse"} ${n}`.trim(),
@@ -241,7 +241,7 @@ function ze(e) {
241
241
  }
242
242
  //#endregion
243
243
  //#region src/components/fieldWrapper/index.tsx
244
- function Be(e) {
244
+ function ze(e) {
245
245
  let { children: t, className: n, orientation: r = "vertical", ...i } = e;
246
246
  return /* @__PURE__ */ p("section", {
247
247
  className: `arkynFieldWrapper ${n} ${r}`.trim(),
@@ -251,7 +251,7 @@ function Be(e) {
251
251
  }
252
252
  //#endregion
253
253
  //#region src/services/iconRenderer.tsx
254
- function Q(e) {
254
+ function $(e) {
255
255
  let { iconSize: t, icon: n, className: r, show: i = !0 } = e;
256
256
  return !i || !n ? null : typeof n == "string" ? /* @__PURE__ */ p("p", {
257
257
  className: r,
@@ -264,7 +264,7 @@ function Q(e) {
264
264
  }
265
265
  //#endregion
266
266
  //#region src/components/button/index.tsx
267
- function $(e) {
267
+ function Be(e) {
268
268
  let { isLoading: t = !1, scheme: n = "primary", variant: r = "solid", loadingText: i, size: a = "md", leftIcon: o, rightIcon: s, disabled: c, className: l = "", children: u, ...d } = e, f = {
269
269
  xs: 12,
270
270
  sm: 16,
@@ -284,12 +284,12 @@ function $(e) {
284
284
  }), /* @__PURE__ */ m("div", {
285
285
  className: "arkynButtonContent",
286
286
  children: [
287
- /* @__PURE__ */ p(Q, {
287
+ /* @__PURE__ */ p($, {
288
288
  iconSize: f,
289
289
  icon: o
290
290
  }),
291
291
  u,
292
- /* @__PURE__ */ p(Q, {
292
+ /* @__PURE__ */ p($, {
293
293
  iconSize: f,
294
294
  icon: s
295
295
  })
@@ -380,7 +380,7 @@ function We(e) {
380
380
  return /* @__PURE__ */ m("div", {
381
381
  className: "arkynAudioUploadHasFileContentContainer",
382
382
  children: [
383
- /* @__PURE__ */ p(Fe, { src: t }),
383
+ /* @__PURE__ */ p(Pe, { src: t }),
384
384
  /* @__PURE__ */ p(Ve, {}),
385
385
  /* @__PURE__ */ m("div", {
386
386
  className: "arkynAudioUploadButtonsContainer",
@@ -395,10 +395,10 @@ function We(e) {
395
395
  size: "sm",
396
396
  isLoading: a,
397
397
  onClick: o,
398
- icon: U,
398
+ icon: H,
399
399
  disabled: n
400
400
  })
401
- }), /* @__PURE__ */ p($, {
401
+ }), /* @__PURE__ */ p(Be, {
402
402
  isLoading: a,
403
403
  onClick: c,
404
404
  variant: "outline",
@@ -432,7 +432,7 @@ function Ge(e) {
432
432
  return /* @__PURE__ */ m("div", {
433
433
  onDrop: s,
434
434
  className: "arkynAudioUploadNoFileContent",
435
- children: [/* @__PURE__ */ p($, {
435
+ children: [/* @__PURE__ */ p(Be, {
436
436
  isLoading: n,
437
437
  onClick: c,
438
438
  variant: "ghost",
@@ -446,7 +446,7 @@ function Ge(e) {
446
446
  //#endregion
447
447
  //#region src/components/audioUpload/index.tsx
448
448
  function Ke(e) {
449
- let { name: t, label: n, fileName: r = "file", method: i = "POST", onChange: a, fileResponseName: o = "url", selectAudioButtonText: s = "Selecionar arquivo de áudio", dropAudioText: c = "Ou arraste e solte um arquivo de áudio aqui", changeAudioButtonText: l = "Trocar arquivo de áudio", acceptAudio: d = "audio/*", action: f, defaultValue: h = "", showAsterisk: g = !1, disabled: _ = !1 } = e, { fieldErrors: v } = Z(), y = v?.[t], [b, x] = u(h), [S, C] = u(""), [w, T] = u(null), [E, D] = u(h), [O, k] = u(!1);
449
+ let { name: t, label: n, fileName: r = "file", method: i = "POST", onChange: a, fileResponseName: o = "url", selectAudioButtonText: s = "Selecionar arquivo de áudio", dropAudioText: c = "Ou arraste e solte um arquivo de áudio aqui", changeAudioButtonText: l = "Trocar arquivo de áudio", acceptAudio: d = "audio/*", action: f, defaultValue: h = "", showAsterisk: g = !1, disabled: _ = !1 } = e, { fieldErrors: v } = Q(), y = v?.[t], [b, x] = u(h), [S, C] = u(""), [w, T] = u(null), [E, D] = u(h), [O, k] = u(!1);
450
450
  async function A(e) {
451
451
  if (_) return;
452
452
  k(!0), T(e), C("");
@@ -470,8 +470,8 @@ function Ke(e) {
470
470
  }
471
471
  }
472
472
  let M = y || S;
473
- return /* @__PURE__ */ m(Be, { children: [
474
- n && /* @__PURE__ */ p(ze, {
473
+ return /* @__PURE__ */ m(ze, { children: [
474
+ n && /* @__PURE__ */ p(Re, {
475
475
  showAsterisk: g,
476
476
  children: n
477
477
  }),
@@ -502,7 +502,7 @@ function Ke(e) {
502
502
  })
503
503
  ]
504
504
  }),
505
- M && /* @__PURE__ */ p(Re, { children: M })
505
+ M && /* @__PURE__ */ p(Le, { children: M })
506
506
  ] });
507
507
  }
508
508
  //#endregion
@@ -516,12 +516,12 @@ function qe(e) {
516
516
  className: `arkynBadge ${t} ${n} ${r} ${o}`.trim(),
517
517
  ...c,
518
518
  children: [
519
- /* @__PURE__ */ p(Q, {
519
+ /* @__PURE__ */ p($, {
520
520
  iconSize: l,
521
521
  icon: i
522
522
  }),
523
523
  /* @__PURE__ */ p("p", { children: s }),
524
- /* @__PURE__ */ p(Q, {
524
+ /* @__PURE__ */ p($, {
525
525
  iconSize: l,
526
526
  icon: a
527
527
  })
@@ -704,18 +704,18 @@ function Qe({ children: e }) {
704
704
  //#region src/services/fieldTemplate.tsx
705
705
  function $e(e) {
706
706
  let { name: t, label: n, showAsterisk: r, className: i, unShowFieldTemplate: a, errorMessage: o, children: s, orientation: c } = e;
707
- return a ? s : /* @__PURE__ */ m(Be, {
707
+ return a ? s : /* @__PURE__ */ m(ze, {
708
708
  id: t,
709
709
  className: i,
710
710
  orientation: c,
711
711
  children: [
712
- n && /* @__PURE__ */ p(ze, {
712
+ n && /* @__PURE__ */ p(Re, {
713
713
  htmlFor: t,
714
714
  showAsterisk: r,
715
715
  children: n
716
716
  }),
717
717
  s,
718
- o && /* @__PURE__ */ p(Re, { children: o })
718
+ o && /* @__PURE__ */ p(Le, { children: o })
719
719
  ]
720
720
  });
721
721
  }
@@ -737,11 +737,19 @@ function et(e) {
737
737
  //#endregion
738
738
  //#region src/components/select/selectContainer/index.tsx
739
739
  function tt(e) {
740
- 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;
741
- return /* @__PURE__ */ p("section", {
740
+ 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, containerRef: m, onContainerKeyDown: h, tabIndex: g, ariaControls: _, ariaActiveDescendant: v } = e;
741
+ return /* @__PURE__ */ p("div", {
742
+ ref: m,
742
743
  id: d,
744
+ tabIndex: g,
745
+ role: "combobox",
746
+ "aria-haspopup": "listbox",
747
+ "aria-expanded": o,
748
+ "aria-controls": _,
749
+ "aria-activedescendant": v,
743
750
  className: `arkynSelectContainer ${f ? "hasPrefix" : ""} ${l} ${u} ${r || c || a ? "opacity" : ""} ${i ? "errored" : ""} ${o ? "focused" : ""} ${s}`,
744
751
  onClick: n,
752
+ onKeyDown: h,
745
753
  children: t
746
754
  });
747
755
  }
@@ -757,11 +765,14 @@ function nt(e) {
757
765
  //#endregion
758
766
  //#region src/components/select/selectOption/index.tsx
759
767
  function rt(e) {
760
- let { label: t, optionHasSelected: n, handleChangeValue: r, value: i, size: a } = e;
768
+ let { label: t, optionHasSelected: n, handleChangeValue: r, value: i, size: a, id: o, isHighlighted: s = !1 } = e, c = n(i);
761
769
  return /* @__PURE__ */ m("button", {
762
770
  type: "button",
771
+ id: o,
772
+ role: "option",
773
+ "aria-selected": c,
763
774
  onClick: () => r(i),
764
- className: `arkynSelectOption ${a} ${n(i) ? "active" : ""}`,
775
+ className: `arkynSelectOption ${a} ${c ? "active" : ""} ${s ? "highlighted" : ""}`,
765
776
  children: [
766
777
  t,
767
778
  " ",
@@ -791,17 +802,17 @@ function at(e) {
791
802
  //#endregion
792
803
  //#region src/components/input/index.tsx
793
804
  function ot(e) {
794
- let { name: t, disabled: n, title: r, style: i, variant: a = "solid", label: o, className: c = "", prefix: d, suffix: f, isLoading: h = !1, leftIcon: g, readOnly: _, onFocus: v, onBlur: y, unShowFieldTemplate: b = !1, errorMessage: x, showAsterisk: S, rightIcon: C, type: w = "text", size: T = "md", id: E, value: D, placeholder: O, orientation: k, ...A } = e, { fieldErrors: j } = Z(), [M, N] = u(!1), P = l(null), F = s(), I = E || F, L = x || j?.[t], z = !!L, B = n || h, V = {
805
+ let { name: t, disabled: n, title: r, style: i, variant: a = "solid", label: o, className: c = "", prefix: d, suffix: f, isLoading: h = !1, leftIcon: g, readOnly: _, onFocus: v, onBlur: y, unShowFieldTemplate: b = !1, errorMessage: x, showAsterisk: S, rightIcon: C, type: w = "text", size: T = "md", id: E, value: D, placeholder: O, orientation: k, ...A } = e, { fieldErrors: j } = Q(), [M, N] = u(!1), P = l(null), F = s(), I = E || F, L = x || j?.[t], ee = !!L, z = n || h, B = {
795
806
  md: 20,
796
807
  lg: 20
797
- }[T], H = C ? "right" : "left", U = H === "left" && h, W = H === "right" && h;
798
- function G() {
799
- B || !P?.current || (N(!0), P.current.focus());
808
+ }[T], V = C ? "right" : "left", H = V === "left" && h, U = V === "right" && h;
809
+ function W() {
810
+ z || !P?.current || (N(!0), P.current.focus());
800
811
  }
801
- function K(e) {
812
+ function G(e) {
802
813
  N(!0), v && v(e);
803
814
  }
804
- function q(e) {
815
+ function te(e) {
805
816
  N(!1), y && y(e);
806
817
  }
807
818
  return w === "hidden" ? /* @__PURE__ */ p("input", {
@@ -821,51 +832,51 @@ function ot(e) {
821
832
  children: /* @__PURE__ */ m("section", {
822
833
  title: r,
823
834
  style: i,
824
- onClick: G,
825
- className: `arkynInput ${d ? "hasPrefix" : ""} ${n ? "disabled" : ""} ${f ? "hasSuffix" : ""} ${a} ${T} ${B || _ || h ? "opacity" : ""} ${z ? "errored" : ""} ${M ? "focused" : ""}`,
835
+ onClick: W,
836
+ className: `arkynInput ${d ? "hasPrefix" : ""} ${n ? "disabled" : ""} ${f ? "hasSuffix" : ""} ${a} ${T} ${z || _ || h ? "opacity" : ""} ${ee ? "errored" : ""} ${M ? "focused" : ""}`,
826
837
  children: [
827
- /* @__PURE__ */ p(Q, {
828
- iconSize: V,
838
+ /* @__PURE__ */ p($, {
839
+ iconSize: B,
829
840
  icon: d,
830
841
  className: "prefix"
831
842
  }),
832
- /* @__PURE__ */ p(Q, {
833
- show: U,
834
- iconSize: V,
843
+ /* @__PURE__ */ p($, {
844
+ show: H,
845
+ iconSize: B,
835
846
  className: "spinner",
836
847
  icon: R
837
848
  }),
838
- /* @__PURE__ */ p(Q, {
849
+ /* @__PURE__ */ p($, {
839
850
  show: !h,
840
851
  icon: g,
841
- iconSize: V
852
+ iconSize: B
842
853
  }),
843
854
  /* @__PURE__ */ p("input", {
844
- disabled: B,
855
+ disabled: z,
845
856
  readOnly: _,
846
857
  ref: P,
847
- onFocus: K,
848
- onBlur: q,
858
+ onFocus: G,
859
+ onBlur: te,
849
860
  type: w,
850
861
  id: I,
851
862
  name: t,
852
- placeholder: B && D || O,
853
- value: B ? void 0 : D,
863
+ placeholder: z && D || O,
864
+ value: z ? void 0 : D,
854
865
  ...A
855
866
  }),
856
- /* @__PURE__ */ p(Q, {
867
+ /* @__PURE__ */ p($, {
857
868
  show: !h,
858
869
  icon: C,
859
- iconSize: V
870
+ iconSize: B
860
871
  }),
861
- /* @__PURE__ */ p(Q, {
862
- show: W,
863
- iconSize: V,
872
+ /* @__PURE__ */ p($, {
873
+ show: U,
874
+ iconSize: B,
864
875
  className: "spinner",
865
876
  icon: R
866
877
  }),
867
- /* @__PURE__ */ p(Q, {
868
- iconSize: V,
878
+ /* @__PURE__ */ p($, {
879
+ iconSize: B,
869
880
  icon: f,
870
881
  className: "suffix"
871
882
  })
@@ -876,29 +887,31 @@ function ot(e) {
876
887
  //#endregion
877
888
  //#region src/components/select/selectOptionsContainer/index.tsx
878
889
  function st(e) {
879
- let { children: t, isFocused: n, isSearchable: r, search: i, onSearch: a } = e, s = l(null), [c, d] = u("bottom");
880
- at(n), o(() => {
881
- n && (() => {
882
- if (!s.current) return;
883
- let e = s.current.parentElement;
890
+ let { children: t, id: n, isFocused: r, isSearchable: i, search: a, onSearch: s } = e, c = l(null), [d, f] = u("bottom");
891
+ at(r), o(() => {
892
+ r && (() => {
893
+ if (!c.current) return;
894
+ let e = c.current.parentElement;
884
895
  if (!e) return;
885
896
  let t = e.getBoundingClientRect();
886
- window.innerHeight - t.bottom < 300 && t.top > 300 ? d("top") : d("bottom");
897
+ window.innerHeight - t.bottom < 300 && t.top > 300 ? f("top") : f("bottom");
887
898
  })();
888
- }, [n]);
889
- function f(e) {
890
- r && a(e.target.value);
891
- }
892
- return n ? /* @__PURE__ */ m("div", {
893
- ref: s,
894
- className: `arkynSelectOptionsContainer ${c}`,
895
- children: [r && /* @__PURE__ */ p(ot, {
899
+ }, [r]);
900
+ function h(e) {
901
+ i && s(e.target.value);
902
+ }
903
+ return r ? /* @__PURE__ */ m("div", {
904
+ ref: c,
905
+ id: n,
906
+ role: "listbox",
907
+ className: `arkynSelectOptionsContainer ${d}`,
908
+ children: [i && /* @__PURE__ */ p(ot, {
896
909
  type: "search",
897
910
  name: "search-select",
898
911
  variant: "underline",
899
- leftIcon: W,
900
- value: i,
901
- onChange: f
912
+ leftIcon: U,
913
+ value: a,
914
+ onChange: h
902
915
  }), t]
903
916
  }) : null;
904
917
  }
@@ -924,98 +937,138 @@ function lt(e) {
924
937
  //#endregion
925
938
  //#region src/components/select/index.tsx
926
939
  function ut(e) {
927
- let { name: t, options: n, className: r = "", placeholder: i = "Selecione...", closeOnSelect: a = !0, defaultValue: o = "", errorMessage: c, isLoading: d = !1, readOnly: f = !1, isSearchable: h = !1, id: g, label: _, showAsterisk: v, leftIcon: y, onSearch: b, onChange: x, onBlur: S, notFoundText: C = "Sem opções disponíveis", onFocus: w, disabled: T = !1, prefix: E, size: D = "md", value: O, variant: k = "solid", orientation: A = "vertical", unShowFieldTemplate: j = !1 } = e, { fieldErrors: M } = Z(), N = l(null), P = s(), F = g || P, I = c || M?.[t], L = !!I, R = T || d || f, z = {
940
+ let { name: t, options: n, className: r = "", placeholder: i = "Selecione...", closeOnSelect: a = !0, defaultValue: o = "", errorMessage: c, isLoading: d = !1, readOnly: f = !1, isSearchable: h = !1, id: g, label: _, showAsterisk: v, leftIcon: y, onSearch: b, onChange: x, onBlur: S, notFoundText: C = "Sem opções disponíveis", onFocus: w, disabled: T = !1, prefix: E, size: D = "md", value: O, variant: k = "solid", orientation: A = "vertical", unShowFieldTemplate: j = !1 } = e, { fieldErrors: M } = Q(), N = l(null), P = l(null), F = s(), I = g || F, L = `${I}-listbox`, R = c || M?.[t], ee = !!R, z = T || d || f, B = {
928
941
  md: 20,
929
942
  lg: 20
930
- }[D], [B, V] = u(""), [H, U] = u(!1), [W, G] = u(o), K = O || W;
931
- function q(e) {
932
- return K === e;
943
+ }[D], [V, H] = u(""), [U, W] = u(!1), [G, te] = u(o), [K, q] = u(-1), J = O === void 0 ? G : O;
944
+ function ne(e) {
945
+ return J === e;
933
946
  }
934
- function ee(e) {
947
+ function re(e) {
935
948
  return n.find((t) => t.value === e)?.label || "";
936
949
  }
937
- function te() {
938
- R || !N?.current || H || (U(!0), N.current.focus(), w?.());
950
+ function ie(e) {
951
+ return `${L}-option-${e.replace(/[^a-zA-Z0-9_-]/g, "-")}`;
939
952
  }
940
- function J() {
941
- U(!1), S && N.current && N.current.blur();
953
+ function ae() {
954
+ z || !N?.current || U || (W(!0), q(-1), N.current.focus(), w?.());
942
955
  }
943
- function ne(e) {
944
- V(e), b && b(e);
956
+ function oe() {
957
+ W(!1), q(-1), S && N.current && N.current.blur();
945
958
  }
946
- function re(e) {
947
- q(e) ? (G(""), x && x("")) : (G(e), x && x(e)), a && J();
959
+ function Y(e) {
960
+ H(e), q(-1), b && b(e);
948
961
  }
949
- let ie = n.filter((t) => !!(e.onSearch || !e.isSearchable || t.label.toLowerCase().includes(B.toLowerCase())));
962
+ function se(e) {
963
+ ne(e) ? (te(""), x && x("")) : (te(e), x && x(e)), a && oe();
964
+ }
965
+ let X = n.filter((t) => !!(e.onSearch || !e.isSearchable || t.label.toLowerCase().includes(V.toLowerCase())));
966
+ function Z(e) {
967
+ if (z) return;
968
+ if (!U) {
969
+ (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), ae(), e.key === "ArrowDown" && q(0));
970
+ return;
971
+ }
972
+ let t = e.target?.tagName === "INPUT", n = e.target?.tagName === "BUTTON";
973
+ switch (e.key) {
974
+ case "Escape":
975
+ e.preventDefault(), oe(), P.current?.focus();
976
+ break;
977
+ case "ArrowDown":
978
+ e.preventDefault(), q((e) => X.length === 0 ? -1 : e < 0 || e + 1 >= X.length ? 0 : e + 1);
979
+ break;
980
+ case "ArrowUp":
981
+ e.preventDefault(), q((e) => X.length === 0 ? -1 : e < 0 || e - 1 < 0 ? X.length - 1 : e - 1);
982
+ break;
983
+ case " ":
984
+ if (t || n) return;
985
+ e.preventDefault(), K >= 0 && K < X.length && se(X[K].value);
986
+ break;
987
+ case "Enter":
988
+ if (n) return;
989
+ e.preventDefault(), K >= 0 && K < X.length && se(X[K].value);
990
+ break;
991
+ default: break;
992
+ }
993
+ }
994
+ let ce = K >= 0 && K < X.length ? ie(X[K].value) : void 0;
950
995
  return /* @__PURE__ */ p($e, {
951
996
  name: t,
952
997
  label: _,
953
998
  showAsterisk: v,
954
999
  className: r,
955
- errorMessage: I,
1000
+ errorMessage: R,
956
1001
  unShowFieldTemplate: j,
957
1002
  orientation: A,
958
1003
  children: /* @__PURE__ */ m(tt, {
959
- handleContainerFocus: te,
960
- disabled: R,
961
- isError: L,
962
- isFocused: H,
1004
+ handleContainerFocus: ae,
1005
+ disabled: z,
1006
+ isError: ee,
1007
+ isFocused: U,
963
1008
  isLoading: d,
964
1009
  readOnly: f,
965
1010
  size: D,
966
1011
  variant: k,
967
1012
  prefixExists: !!E,
968
- id: F,
1013
+ id: I,
1014
+ containerRef: P,
1015
+ onContainerKeyDown: Z,
1016
+ tabIndex: z ? -1 : 0,
1017
+ ariaControls: L,
1018
+ ariaActiveDescendant: ce,
969
1019
  children: [
970
1020
  /* @__PURE__ */ p("input", {
971
1021
  ref: N,
972
1022
  name: t,
973
- value: K,
1023
+ value: J,
974
1024
  type: "hidden"
975
1025
  }),
976
- /* @__PURE__ */ p(Q, {
977
- iconSize: z,
1026
+ /* @__PURE__ */ p($, {
1027
+ iconSize: B,
978
1028
  icon: E,
979
1029
  className: "prefix"
980
1030
  }),
981
1031
  y && /* @__PURE__ */ p(y, {
982
- size: z,
1032
+ size: B,
983
1033
  strokeWidth: 2.5
984
1034
  }),
985
1035
  /* @__PURE__ */ m(nt, {
986
1036
  size: D,
987
- children: [K !== "" && /* @__PURE__ */ p("p", {
1037
+ children: [J !== "" && /* @__PURE__ */ p("p", {
988
1038
  className: "hasValue",
989
- children: ee(K)
990
- }), K === "" && /* @__PURE__ */ p("p", { children: i })]
1039
+ children: re(J)
1040
+ }), J === "" && /* @__PURE__ */ p("p", { children: i })]
991
1041
  }),
992
1042
  /* @__PURE__ */ m(st, {
993
- isFocused: H,
1043
+ id: L,
1044
+ isFocused: U,
994
1045
  isSearchable: h,
995
- search: B,
996
- onSearch: ne,
997
- children: [ie.map(({ label: e, value: t }) => /* @__PURE__ */ p(rt, {
1046
+ search: V,
1047
+ onSearch: Y,
1048
+ children: [X.map(({ label: e, value: t }, n) => /* @__PURE__ */ p(rt, {
1049
+ id: ie(t),
998
1050
  label: e,
999
1051
  value: t,
1000
1052
  size: D,
1001
- handleChangeValue: re,
1002
- optionHasSelected: q
1003
- }, t)), ie.length <= 0 && /* @__PURE__ */ p("p", { children: C })]
1053
+ isHighlighted: n === K,
1054
+ handleChangeValue: se,
1055
+ optionHasSelected: ne
1056
+ }, t)), X.length <= 0 && /* @__PURE__ */ p("p", { children: C })]
1004
1057
  }),
1005
1058
  /* @__PURE__ */ p(et, {
1006
- disabled: R,
1007
- isFocused: H,
1059
+ disabled: z,
1060
+ isFocused: U,
1008
1061
  readOnly: f,
1009
- iconSize: z,
1062
+ iconSize: B,
1010
1063
  isLoading: d
1011
1064
  }),
1012
1065
  /* @__PURE__ */ p(lt, {
1013
- iconSize: z,
1066
+ iconSize: B,
1014
1067
  isLoading: d
1015
1068
  }),
1016
1069
  /* @__PURE__ */ p(ct, {
1017
- handleBlur: J,
1018
- isFocused: H
1070
+ handleBlur: oe,
1071
+ isFocused: U
1019
1072
  })
1020
1073
  ]
1021
1074
  })
@@ -1079,11 +1132,16 @@ function ft(e) {
1079
1132
  let e = /* @__PURE__ */ new Date();
1080
1133
  return t === e.getDate() && n === e.getMonth() && r === e.getFullYear();
1081
1134
  }
1135
+ function c() {
1136
+ o(t, n, r);
1137
+ }
1082
1138
  return /* @__PURE__ */ p("td", {
1083
- onClick: () => o(t, n, r),
1084
1139
  className: `arkynCalendarTableTd ${i} ${a} ${s() ? "today" : ""}`,
1085
- children: /* @__PURE__ */ m("div", {
1140
+ children: /* @__PURE__ */ m("button", {
1141
+ type: "button",
1086
1142
  className: "textGroup",
1143
+ "aria-pressed": a === "checkedDay",
1144
+ onClick: c,
1087
1145
  children: [/* @__PURE__ */ p("span", {}), /* @__PURE__ */ p("p", { children: t })]
1088
1146
  })
1089
1147
  });
@@ -1195,7 +1253,7 @@ function xt(e) {
1195
1253
  //#endregion
1196
1254
  //#region src/components/checkbox/index.tsx
1197
1255
  function St(e) {
1198
- let { id: t, name: n, className: r = "", size: i = "md", errorMessage: a, defaultChecked: o = !1, label: c, checked: d = null, onCheck: f, orientation: h = "horizontalReverse", showAsterisk: g, unShowFieldTemplate: _, value: v, ...y } = e, { fieldErrors: b } = Z(), S = l(null), C = s(), w = t || C, T = a || b?.[n], E = !!T, [D, O] = u(o || !1), k = typeof d == "boolean" ? d : D, A = `arkynCheckbox ${i} ${E ? "errorTrue" : "errorFalse"} ${k ? "checkedTrue" : "checkedFalse"}`;
1256
+ let { id: t, name: n, className: r = "", size: i = "md", errorMessage: a, defaultChecked: o = !1, label: c, checked: d = null, onCheck: f, orientation: h = "horizontalReverse", showAsterisk: g, unShowFieldTemplate: _, value: v, ...y } = e, { fieldErrors: b } = Q(), S = l(null), C = s(), w = t || C, T = a || b?.[n], E = !!T, [D, O] = u(o || !1), k = typeof d == "boolean" ? d : D, A = `arkynCheckbox ${i} ${E ? "errorTrue" : "errorFalse"} ${k ? "checkedTrue" : "checkedFalse"}`;
1199
1257
  function j() {
1200
1258
  let e = D;
1201
1259
  O(!e), f?.(e ? "" : v || "checked");
@@ -1251,12 +1309,12 @@ function Dt(e, t) {
1251
1309
  //#endregion
1252
1310
  //#region src/components/currencyInput/index.tsx
1253
1311
  function Ot(e) {
1254
- let { name: t, disabled: n, title: r, style: i, variant: a = "solid", label: c, className: d = "", value: f, defaultValue: h, max: g = 1e9, locale: _, onChange: v, prefix: y, suffix: b, isLoading: x = !1, leftIcon: S, readOnly: C, onFocus: w, onBlur: T, errorMessage: E, unShowFieldTemplate: D, orientation: O, showAsterisk: k, rightIcon: A, size: j = "md", id: M, ...N } = e, { fieldErrors: P } = Z(), [F, I] = u(!1), [L, z] = u("0"), B = l(null), V = s(), H = M || V, U = E || P?.[t], W = !!U, G = n || x, K = {
1312
+ let { name: t, disabled: n, title: r, style: i, variant: a = "solid", label: c, className: d = "", value: f, defaultValue: h, max: g = 1e9, locale: _, onChange: v, prefix: y, suffix: b, isLoading: x = !1, leftIcon: S, readOnly: C, onFocus: w, onBlur: T, errorMessage: E, unShowFieldTemplate: D, orientation: O, showAsterisk: k, rightIcon: A, size: j = "md", id: M, ...N } = e, { fieldErrors: P } = Q(), [F, I] = u(!1), [L, ee] = u("0"), z = l(null), B = s(), V = M || B, H = E || P?.[t], U = !!H, W = n || x, G = {
1255
1313
  md: 20,
1256
1314
  lg: 20
1257
- }[j], q = A ? "right" : "left", ee = q === "left" && x, te = q === "right" && x;
1315
+ }[j], te = A ? "right" : "left", K = te === "left" && x, q = te === "right" && x;
1258
1316
  function J() {
1259
- G || !B?.current || (I(!0), B.current.focus());
1317
+ W || !z?.current || (I(!0), z.current.focus());
1260
1318
  }
1261
1319
  function ne(e) {
1262
1320
  I(!0), w && w(e);
@@ -1266,7 +1324,7 @@ function Ot(e) {
1266
1324
  }
1267
1325
  let ie = (e) => {
1268
1326
  let [t, n] = Dt(e, _);
1269
- return !g || t <= g ? (z(n), [t, n]) : Dt(e, _);
1327
+ return !g || t <= g ? (ee(n), [t, n]) : Dt(e, _);
1270
1328
  };
1271
1329
  return o(() => {
1272
1330
  function e() {
@@ -1274,7 +1332,7 @@ function Ot(e) {
1274
1332
  if (typeof h == "number") return h;
1275
1333
  }
1276
1334
  let [, t] = Dt(e(), _);
1277
- z(t);
1335
+ ee(t);
1278
1336
  }, [
1279
1337
  _,
1280
1338
  h,
@@ -1284,35 +1342,35 @@ function Ot(e) {
1284
1342
  label: c,
1285
1343
  showAsterisk: k,
1286
1344
  className: d,
1287
- errorMessage: U,
1345
+ errorMessage: H,
1288
1346
  unShowFieldTemplate: D,
1289
1347
  orientation: O,
1290
1348
  children: /* @__PURE__ */ m("section", {
1291
1349
  title: r,
1292
1350
  style: i,
1293
- className: `arkynCurrencyInput ${y ? "hasPrefix" : ""} ${b ? "hasSuffix" : ""} ${a} ${j} ${G || C || x ? "opacity" : ""} ${W ? "errored" : ""} ${F ? "focused" : ""}`,
1351
+ className: `arkynCurrencyInput ${y ? "hasPrefix" : ""} ${b ? "hasSuffix" : ""} ${a} ${j} ${W || C || x ? "opacity" : ""} ${U ? "errored" : ""} ${F ? "focused" : ""}`,
1294
1352
  onClick: J,
1295
1353
  children: [
1296
- /* @__PURE__ */ p(Q, {
1297
- iconSize: K,
1354
+ /* @__PURE__ */ p($, {
1355
+ iconSize: G,
1298
1356
  icon: y,
1299
1357
  className: "prefix"
1300
1358
  }),
1301
- /* @__PURE__ */ p(Q, {
1302
- show: ee,
1303
- iconSize: K,
1359
+ /* @__PURE__ */ p($, {
1360
+ show: K,
1361
+ iconSize: G,
1304
1362
  className: "spinner",
1305
1363
  icon: R
1306
1364
  }),
1307
- /* @__PURE__ */ p(Q, {
1365
+ /* @__PURE__ */ p($, {
1308
1366
  show: !x,
1309
1367
  icon: S,
1310
- iconSize: K
1368
+ iconSize: G
1311
1369
  }),
1312
1370
  /* @__PURE__ */ p("input", {
1313
- disabled: G,
1371
+ disabled: W,
1314
1372
  readOnly: C,
1315
- ref: B,
1373
+ ref: z,
1316
1374
  onFocus: ne,
1317
1375
  onBlur: re,
1318
1376
  onChange: (e) => {
@@ -1320,9 +1378,9 @@ function Ot(e) {
1320
1378
  let [t, n] = ie(e.target.value);
1321
1379
  v?.(e, String(t), String(n));
1322
1380
  },
1323
- id: H,
1324
- placeholder: G ? L : void 0,
1325
- value: G ? void 0 : L,
1381
+ id: V,
1382
+ placeholder: W ? L : void 0,
1383
+ value: W ? void 0 : L,
1326
1384
  ...N
1327
1385
  }),
1328
1386
  /* @__PURE__ */ p("input", {
@@ -1331,19 +1389,19 @@ function Ot(e) {
1331
1389
  value: Et(L),
1332
1390
  readOnly: !0
1333
1391
  }),
1334
- /* @__PURE__ */ p(Q, {
1392
+ /* @__PURE__ */ p($, {
1335
1393
  show: !x,
1336
1394
  icon: A,
1337
- iconSize: K
1395
+ iconSize: G
1338
1396
  }),
1339
- /* @__PURE__ */ p(Q, {
1340
- show: te,
1341
- iconSize: K,
1397
+ /* @__PURE__ */ p($, {
1398
+ show: q,
1399
+ iconSize: G,
1342
1400
  className: "spinner",
1343
1401
  icon: R
1344
1402
  }),
1345
- /* @__PURE__ */ p(Q, {
1346
- iconSize: K,
1403
+ /* @__PURE__ */ p($, {
1404
+ iconSize: G,
1347
1405
  icon: b,
1348
1406
  className: "suffix"
1349
1407
  })
@@ -1354,18 +1412,21 @@ function Ot(e) {
1354
1412
  //#endregion
1355
1413
  //#region src/components/datePicker/datePickerCalendarContainer/index.tsx
1356
1414
  function kt(e) {
1357
- let { children: t, isFocused: n } = e, r = l(null), [i, a] = u("bottom");
1358
- return at(n), o(() => {
1359
- n && (() => {
1360
- if (!r.current) return;
1361
- let e = r.current.parentElement;
1415
+ let { children: t, id: n, isFocused: r } = e, i = l(null), [a, s] = u("bottom");
1416
+ return at(r), o(() => {
1417
+ r && (() => {
1418
+ if (!i.current) return;
1419
+ let e = i.current.parentElement;
1362
1420
  if (!e) return;
1363
1421
  let t = e.getBoundingClientRect();
1364
- window.innerHeight - t.bottom < 420 && t.top > 420 ? a("top") : a("bottom");
1422
+ window.innerHeight - t.bottom < 420 && t.top > 420 ? s("top") : s("bottom");
1365
1423
  })();
1366
- }, [n]), n ? /* @__PURE__ */ p("div", {
1367
- ref: r,
1368
- className: `arkynDatePickerCalendarContainer ${i}`,
1424
+ }, [r]), r ? /* @__PURE__ */ p("div", {
1425
+ ref: i,
1426
+ id: n,
1427
+ role: "dialog",
1428
+ "aria-modal": "false",
1429
+ className: `arkynDatePickerCalendarContainer ${a}`,
1369
1430
  children: t
1370
1431
  }) : null;
1371
1432
  }
@@ -1387,11 +1448,18 @@ function At(e) {
1387
1448
  //#endregion
1388
1449
  //#region src/components/datePicker/datePickerContainer/index.tsx
1389
1450
  function jt(e) {
1390
- 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;
1391
- return /* @__PURE__ */ p("section", {
1451
+ 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, containerRef: m, onContainerKeyDown: h, tabIndex: g, ariaControls: _ } = e;
1452
+ return /* @__PURE__ */ p("div", {
1453
+ ref: m,
1392
1454
  id: d,
1455
+ tabIndex: g,
1456
+ role: "combobox",
1457
+ "aria-haspopup": "dialog",
1458
+ "aria-expanded": o,
1459
+ "aria-controls": _,
1393
1460
  className: `arkynDatePickerContainer ${f ? "hasPrefix" : ""} ${l} ${u} ${r || c || a ? "opacity" : ""} ${i ? "errored" : ""} ${o ? "focused" : ""} ${s}`,
1394
1461
  onClick: n,
1462
+ onKeyDown: h,
1395
1463
  children: t
1396
1464
  });
1397
1465
  }
@@ -1433,43 +1501,56 @@ function It(e) {
1433
1501
  return e.toLocaleDateString("pt-BR");
1434
1502
  }
1435
1503
  function Lt(e) {
1436
- let { name: t, className: n = "", placeholder: r = "Selecione uma data...", errorMessage: i, isLoading: a = !1, readOnly: o = !1, id: c, label: d, showAsterisk: f, leftIcon: h, onFocus: g, onBlur: _, disabled: v = !1, prefix: y, size: b = "md", value: x, variant: S = "solid", orientation: C = "vertical", unShowFieldTemplate: w = !1, calendarVariant: T = "complete" } = e, E = e.closeOnSelect ?? e.type === "single", { fieldErrors: D } = Z(), O = l(null), k = s(), A = c || k, j = i || D?.[t], M = !!j, N = v || a || o, P = {
1504
+ let { name: t, className: n = "", placeholder: r = "Selecione uma data...", errorMessage: i, isLoading: a = !1, readOnly: o = !1, id: c, label: d, showAsterisk: f, leftIcon: h, onFocus: g, onBlur: _, disabled: v = !1, prefix: y, size: b = "md", value: x, variant: S = "solid", orientation: C = "vertical", unShowFieldTemplate: w = !1, calendarVariant: T = "complete" } = e, E = e.closeOnSelect ?? e.type === "single", { fieldErrors: D } = Q(), O = l(null), k = l(null), A = s(), j = c || A, M = `${j}-calendar`, N = i || D?.[t], P = !!N, F = v || a || o, I = {
1437
1505
  md: 20,
1438
1506
  lg: 20
1439
- }[b], [F, I] = u(!1), [L, R] = u(e.type === "single" ? e.defaultValue : void 0), [z, B] = u(e.type === "range" ? e.defaultValue : void 0);
1440
- function V() {
1441
- N || !O?.current || F || (I(!0), O.current.focus(), g?.());
1442
- }
1507
+ }[b], [L, R] = u(!1), [ee, z] = u(e.type === "single" ? e.defaultValue : void 0), [B, V] = u(e.type === "range" ? e.defaultValue : void 0);
1443
1508
  function H() {
1444
- I(!1), _ && O.current && O.current.blur();
1509
+ F || !O?.current || L || (R(!0), O.current.focus(), g?.());
1445
1510
  }
1446
- function U(t) {
1447
- x === void 0 && R(t), e.type === "single" && e.onChange?.(t), E && H();
1511
+ function U() {
1512
+ R(!1), _ && O.current && O.current.blur();
1448
1513
  }
1449
- function W(t) {
1450
- x === void 0 && B(t), e.type === "range" && e.onChange?.(t), E && H();
1514
+ function W(e) {
1515
+ if (!F) {
1516
+ if (!L) {
1517
+ (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), H());
1518
+ return;
1519
+ }
1520
+ e.key === "Escape" && (e.preventDefault(), U(), k.current?.focus());
1521
+ }
1522
+ }
1523
+ function G(t) {
1524
+ x === void 0 && z(t), e.type === "single" && e.onChange?.(t), E && U();
1525
+ }
1526
+ function te(t) {
1527
+ x === void 0 && V(t), e.type === "range" && e.onChange?.(t), E && U();
1451
1528
  }
1452
1529
  if (e.type === "range") {
1453
- let i = e.rangeSeparator ?? " até ", s = x === void 0 ? z : x, c = s ? JSON.stringify([Ft(s[0]), Ft(s[1])]) : "";
1530
+ let i = e.rangeSeparator ?? " até ", s = x === void 0 ? B : x, c = s ? JSON.stringify([Ft(s[0]), Ft(s[1])]) : "";
1454
1531
  return /* @__PURE__ */ p($e, {
1455
1532
  name: t,
1456
1533
  label: d,
1457
1534
  showAsterisk: f,
1458
1535
  className: n,
1459
- errorMessage: j,
1536
+ errorMessage: N,
1460
1537
  unShowFieldTemplate: w,
1461
1538
  orientation: C,
1462
1539
  children: /* @__PURE__ */ m(jt, {
1463
- handleContainerFocus: V,
1464
- disabled: N,
1465
- isError: M,
1466
- isFocused: F,
1540
+ handleContainerFocus: H,
1541
+ disabled: F,
1542
+ isError: P,
1543
+ isFocused: L,
1467
1544
  isLoading: a,
1468
1545
  readOnly: o,
1469
1546
  size: b,
1470
1547
  variant: S,
1471
1548
  prefixExists: !!y,
1472
- id: A,
1549
+ id: j,
1550
+ containerRef: k,
1551
+ onContainerKeyDown: W,
1552
+ tabIndex: F ? -1 : 0,
1553
+ ariaControls: M,
1473
1554
  children: [
1474
1555
  /* @__PURE__ */ p("input", {
1475
1556
  ref: O,
@@ -1477,13 +1558,13 @@ function Lt(e) {
1477
1558
  value: c,
1478
1559
  type: "hidden"
1479
1560
  }),
1480
- /* @__PURE__ */ p(Q, {
1481
- iconSize: P,
1561
+ /* @__PURE__ */ p($, {
1562
+ iconSize: I,
1482
1563
  icon: y,
1483
1564
  className: "prefix"
1484
1565
  }),
1485
1566
  h && /* @__PURE__ */ p(h, {
1486
- size: P,
1567
+ size: I,
1487
1568
  strokeWidth: 2.5
1488
1569
  }),
1489
1570
  /* @__PURE__ */ p(Mt, {
@@ -1498,148 +1579,214 @@ function Lt(e) {
1498
1579
  }) : /* @__PURE__ */ p("p", { children: r })
1499
1580
  }),
1500
1581
  /* @__PURE__ */ p(kt, {
1501
- isFocused: F,
1582
+ id: M,
1583
+ isFocused: L,
1502
1584
  children: /* @__PURE__ */ p(gt, {
1503
1585
  type: "range",
1504
1586
  variant: T,
1505
1587
  value: s,
1506
- onChange: W,
1588
+ onChange: te,
1507
1589
  viewValue: e.viewValue,
1508
1590
  defaultViewValue: e.defaultViewValue,
1509
1591
  onChangeView: e.onChangeView
1510
1592
  })
1511
1593
  }),
1512
1594
  /* @__PURE__ */ p(At, {
1513
- disabled: N,
1514
- isFocused: F,
1595
+ disabled: F,
1596
+ isFocused: L,
1515
1597
  readOnly: o,
1516
- iconSize: P,
1598
+ iconSize: I,
1517
1599
  isLoading: a
1518
1600
  }),
1519
1601
  /* @__PURE__ */ p(Pt, {
1520
- iconSize: P,
1602
+ iconSize: I,
1521
1603
  isLoading: a
1522
1604
  }),
1523
1605
  /* @__PURE__ */ p(Nt, {
1524
- handleBlur: H,
1525
- isFocused: F
1606
+ handleBlur: U,
1607
+ isFocused: L
1526
1608
  })
1527
1609
  ]
1528
1610
  })
1529
1611
  });
1530
1612
  }
1531
- let G = x === void 0 ? L : x, K = G ? Ft(G) : "";
1613
+ let K = x === void 0 ? ee : x, q = K ? Ft(K) : "";
1532
1614
  return /* @__PURE__ */ p($e, {
1533
1615
  name: t,
1534
1616
  label: d,
1535
1617
  showAsterisk: f,
1536
1618
  className: n,
1537
- errorMessage: j,
1619
+ errorMessage: N,
1538
1620
  unShowFieldTemplate: w,
1539
1621
  orientation: C,
1540
1622
  children: /* @__PURE__ */ m(jt, {
1541
- handleContainerFocus: V,
1542
- disabled: N,
1543
- isError: M,
1544
- isFocused: F,
1623
+ handleContainerFocus: H,
1624
+ disabled: F,
1625
+ isError: P,
1626
+ isFocused: L,
1545
1627
  isLoading: a,
1546
1628
  readOnly: o,
1547
1629
  size: b,
1548
1630
  variant: S,
1549
1631
  prefixExists: !!y,
1550
- id: A,
1632
+ id: j,
1633
+ containerRef: k,
1634
+ onContainerKeyDown: W,
1635
+ tabIndex: F ? -1 : 0,
1636
+ ariaControls: M,
1551
1637
  children: [
1552
1638
  /* @__PURE__ */ p("input", {
1553
1639
  ref: O,
1554
1640
  name: t,
1555
- value: K,
1641
+ value: q,
1556
1642
  type: "hidden"
1557
1643
  }),
1558
- /* @__PURE__ */ p(Q, {
1559
- iconSize: P,
1644
+ /* @__PURE__ */ p($, {
1645
+ iconSize: I,
1560
1646
  icon: y,
1561
1647
  className: "prefix"
1562
1648
  }),
1563
1649
  h && /* @__PURE__ */ p(h, {
1564
- size: P,
1650
+ size: I,
1565
1651
  strokeWidth: 2.5
1566
1652
  }),
1567
1653
  /* @__PURE__ */ p(Mt, {
1568
1654
  size: b,
1569
- children: G ? /* @__PURE__ */ p("p", {
1655
+ children: K ? /* @__PURE__ */ p("p", {
1570
1656
  className: "hasValue",
1571
- children: It(G)
1657
+ children: It(K)
1572
1658
  }) : /* @__PURE__ */ p("p", { children: r })
1573
1659
  }),
1574
1660
  /* @__PURE__ */ p(kt, {
1575
- isFocused: F,
1661
+ id: M,
1662
+ isFocused: L,
1576
1663
  children: /* @__PURE__ */ p(gt, {
1577
1664
  type: "single",
1578
1665
  variant: T,
1579
- value: G,
1580
- onChange: U,
1666
+ value: K,
1667
+ onChange: G,
1581
1668
  viewValue: e.viewValue,
1582
1669
  defaultViewValue: e.defaultViewValue,
1583
1670
  onChangeView: e.onChangeView
1584
1671
  })
1585
1672
  }),
1586
1673
  /* @__PURE__ */ p(At, {
1587
- disabled: N,
1588
- isFocused: F,
1674
+ disabled: F,
1675
+ isFocused: L,
1589
1676
  readOnly: o,
1590
- iconSize: P,
1677
+ iconSize: I,
1591
1678
  isLoading: a
1592
1679
  }),
1593
1680
  /* @__PURE__ */ p(Pt, {
1594
- iconSize: P,
1681
+ iconSize: I,
1595
1682
  isLoading: a
1596
1683
  }),
1597
1684
  /* @__PURE__ */ p(Nt, {
1598
- handleBlur: H,
1599
- isFocused: F
1685
+ handleBlur: U,
1686
+ isFocused: L
1600
1687
  })
1601
1688
  ]
1602
1689
  })
1603
1690
  });
1604
1691
  }
1605
1692
  //#endregion
1693
+ //#region src/hooks/useEscapeKey.ts
1694
+ function Rt(e, t) {
1695
+ let n = l(t);
1696
+ n.current = t, o(() => {
1697
+ if (!e) return;
1698
+ function t(e) {
1699
+ e.key === "Escape" && n.current();
1700
+ }
1701
+ return document.addEventListener("keydown", t), () => {
1702
+ document.removeEventListener("keydown", t);
1703
+ };
1704
+ }, [e]);
1705
+ }
1706
+ //#endregion
1707
+ //#region src/hooks/useFocusTrap.ts
1708
+ var zt = [
1709
+ "a[href]",
1710
+ "area[href]",
1711
+ "button:not([disabled])",
1712
+ "input:not([disabled])",
1713
+ "select:not([disabled])",
1714
+ "textarea:not([disabled])",
1715
+ "iframe",
1716
+ "[tabindex]:not([tabindex='-1'])"
1717
+ ].join(", ");
1718
+ function Bt(e) {
1719
+ return Array.from(e.querySelectorAll(zt));
1720
+ }
1721
+ function Vt(e, t) {
1722
+ let n = l(null);
1723
+ o(() => {
1724
+ if (!e) return;
1725
+ let r = t.current;
1726
+ if (!r) return;
1727
+ let i = r;
1728
+ n.current = document.activeElement;
1729
+ let [a] = Bt(i);
1730
+ (a ?? i).focus();
1731
+ function o(e) {
1732
+ if (e.key !== "Tab") return;
1733
+ let t = Bt(i);
1734
+ if (t.length === 0) {
1735
+ e.preventDefault(), i.focus();
1736
+ return;
1737
+ }
1738
+ let n = t[0], r = t[t.length - 1], a = document.activeElement;
1739
+ e.shiftKey && a === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && a === r && (e.preventDefault(), n.focus());
1740
+ }
1741
+ return document.addEventListener("keydown", o), () => {
1742
+ document.removeEventListener("keydown", o), n.current?.focus(), n.current = null;
1743
+ };
1744
+ }, [e, t]);
1745
+ }
1746
+ //#endregion
1606
1747
  //#region src/components/drawer/drawerContext.tsx
1607
- var Rt = n({});
1608
- function zt(e) {
1748
+ var Ht = n({});
1749
+ function Ut(e) {
1609
1750
  let t = c(() => ({ makeInvisible: e.makeInvisible }), [e.makeInvisible]);
1610
- return /* @__PURE__ */ p(Rt.Provider, {
1751
+ return /* @__PURE__ */ p(Ht.Provider, {
1611
1752
  value: t,
1612
1753
  children: e.children
1613
1754
  });
1614
1755
  }
1615
- function Bt() {
1616
- return a(Rt);
1756
+ function Wt() {
1757
+ return a(Ht);
1617
1758
  }
1618
1759
  //#endregion
1619
1760
  //#region src/components/drawer/drawerContainer/index.tsx
1620
- function Vt(e) {
1621
- let { isVisible: t, makeInvisible: n, orientation: r = "left", children: i, className: a, ...s } = e, [c, l] = u(t), [d, f] = u(!1);
1761
+ function Gt(e) {
1762
+ let { isVisible: t, makeInvisible: n, orientation: r = "left", children: i, className: a, ...s } = e, [c, d] = u(t), [f, h] = u(!1), g = l(null);
1622
1763
  o(() => {
1623
- t ? (l(!0), f(!1)) : c && f(!0);
1764
+ t ? (d(!0), h(!1)) : c && h(!0);
1624
1765
  }, [t, c]), at(t);
1625
- function h(e) {
1626
- e.target === e.currentTarget && d && (f(!1), l(!1), n());
1766
+ let _ = c && !f;
1767
+ Rt(_, () => h(!0)), Vt(_, g);
1768
+ function v(e) {
1769
+ e.target === e.currentTarget && f && (h(!1), d(!1), n());
1627
1770
  }
1628
- return c ? /* @__PURE__ */ p(zt, {
1629
- makeInvisible: () => f(!0),
1771
+ return c ? /* @__PURE__ */ p(Ut, {
1772
+ makeInvisible: () => h(!0),
1630
1773
  children: /* @__PURE__ */ m("aside", {
1631
1774
  className: [
1632
1775
  "arkynDrawerContainer",
1633
1776
  r,
1634
- d ? "exiting" : "",
1777
+ f ? "exiting" : "",
1635
1778
  a
1636
1779
  ].filter(Boolean).join(" "),
1637
1780
  ...s,
1638
1781
  children: [/* @__PURE__ */ p("div", {
1639
1782
  className: "arkynDrawerContainerOverlay",
1640
- onClick: () => f(!0),
1641
- onAnimationEnd: h
1783
+ onClick: () => h(!0),
1784
+ onAnimationEnd: v
1642
1785
  }), /* @__PURE__ */ p("div", {
1786
+ ref: g,
1787
+ role: "dialog",
1788
+ "aria-modal": "true",
1789
+ tabIndex: -1,
1643
1790
  className: "arkynDrawerContainerContent",
1644
1791
  children: i
1645
1792
  })]
@@ -1648,8 +1795,8 @@ function Vt(e) {
1648
1795
  }
1649
1796
  //#endregion
1650
1797
  //#region src/components/drawer/drawerHeader/index.tsx
1651
- function Ht(e) {
1652
- let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } = Bt();
1798
+ function Kt(e) {
1799
+ let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } = Wt();
1653
1800
  return /* @__PURE__ */ m("header", {
1654
1801
  className: `arkynDrawerHeader ${n}`.trim(),
1655
1802
  ...i,
@@ -1658,18 +1805,18 @@ function Ht(e) {
1658
1805
  type: "button",
1659
1806
  onClick: a,
1660
1807
  "aria-label": "Close drawer",
1661
- children: /* @__PURE__ */ p(q, { size: 24 })
1808
+ children: /* @__PURE__ */ p(te, { size: 24 })
1662
1809
  })]
1663
1810
  });
1664
1811
  }
1665
1812
  //#endregion
1666
1813
  //#region src/components/facebookPixel/pixel.ts
1667
- var Ut = class {
1814
+ var qt = class {
1668
1815
  pixelId;
1669
1816
  autoConfig;
1670
1817
  initialized;
1671
1818
  constructor(e, t) {
1672
- this.pixelId = e, this.autoConfig = t?.autoConfig || !0, this.initialized = !1;
1819
+ this.pixelId = e, this.autoConfig = t?.autoConfig ?? !0, this.initialized = !1;
1673
1820
  }
1674
1821
  loadFacebookPixel() {
1675
1822
  if (window.fbq) return;
@@ -1711,18 +1858,18 @@ var Ut = class {
1711
1858
  };
1712
1859
  //#endregion
1713
1860
  //#region src/components/facebookPixel/facebookPixel.client.tsx
1714
- function Wt(e) {
1715
- let { pixelId: t, options: n, pageView: r, track: i, trackCustom: a, trackSingle: o, trackSingleCustom: s, grantConsent: c, revokeConsent: l } = e, u = new Ut(t, n);
1861
+ function Jt(e) {
1862
+ let { pixelId: t, options: n, pageView: r, track: i, trackCustom: a, trackSingle: o, trackSingleCustom: s, grantConsent: c, revokeConsent: l } = e, u = new qt(t, n);
1716
1863
  return u.init(), r && u.pageView(), c && u.grantConsent(), l && u.revokeConsent(), i && u.track(...i), a && u.trackCustom(...a), o && u.trackSingle(t, ...o), s && u.trackSingleCustom(t, ...s), null;
1717
1864
  }
1718
1865
  //#endregion
1719
1866
  //#region src/components/facebookPixel/index.tsx
1720
- function Gt(e) {
1721
- return process.env.NODE_ENV !== "production" && !e.showInDevMode ? null : /* @__PURE__ */ p(Tt, { children: () => /* @__PURE__ */ p(Wt, { ...e }) });
1867
+ function Yt(e) {
1868
+ return process.env.NODE_ENV !== "production" && !e.showInDevMode ? null : /* @__PURE__ */ p(Tt, { children: () => /* @__PURE__ */ p(Jt, { ...e }) });
1722
1869
  }
1723
1870
  //#endregion
1724
1871
  //#region src/components/fileUpload/hasFileContent/index.tsx
1725
- function Kt(e) {
1872
+ function Xt(e) {
1726
1873
  let { disabled: t, file: n, isLoading: r, acceptFile: i, changeFileButtonText: a, handleSelectFile: o, reSendFile: s } = e;
1727
1874
  function c() {
1728
1875
  if (t) return;
@@ -1756,10 +1903,10 @@ function Kt(e) {
1756
1903
  size: "sm",
1757
1904
  isLoading: r,
1758
1905
  onClick: s,
1759
- icon: U,
1906
+ icon: H,
1760
1907
  disabled: t
1761
1908
  })
1762
- }), /* @__PURE__ */ p($, {
1909
+ }), /* @__PURE__ */ p(Be, {
1763
1910
  isLoading: r,
1764
1911
  onClick: c,
1765
1912
  variant: "outline",
@@ -1774,7 +1921,7 @@ function Kt(e) {
1774
1921
  }
1775
1922
  //#endregion
1776
1923
  //#region src/components/fileUpload/noFileContent/index.tsx
1777
- function qt(e) {
1924
+ function Zt(e) {
1778
1925
  let { dropFileText: t, isLoading: n, acceptFile: r, handleSelectFile: i, selectFileButtonText: a, disabled: o } = e;
1779
1926
  function s(e) {
1780
1927
  if (o) return;
@@ -1793,7 +1940,7 @@ function qt(e) {
1793
1940
  return /* @__PURE__ */ m("div", {
1794
1941
  onDrop: s,
1795
1942
  className: "arkynFileUploadNoFileContent",
1796
- children: [/* @__PURE__ */ p($, {
1943
+ children: [/* @__PURE__ */ p(Be, {
1797
1944
  isLoading: n,
1798
1945
  onClick: c,
1799
1946
  variant: "ghost",
@@ -1806,8 +1953,8 @@ function qt(e) {
1806
1953
  }
1807
1954
  //#endregion
1808
1955
  //#region src/components/fileUpload/index.tsx
1809
- function Jt(e) {
1810
- let { name: t, label: n, showAsterisk: r = !1, action: i, fileName: a = "file", method: o = "POST", acceptFile: s = "*", fileResponseName: c = "url", changeFileButtonText: l = "Alterar arquivo", selectFileButtonText: d = "Selecionar arquivo", dropFileText: f = "Ou arraste e solte o arquivo aqui", onChange: h, disabled: g = !1 } = e, { fieldErrors: _ } = Z(), v = _?.[t], [y, b] = u(""), [x, S] = u(""), [C, w] = u(null), [T, E] = u(!1);
1956
+ function Qt(e) {
1957
+ let { name: t, label: n, showAsterisk: r = !1, action: i, fileName: a = "file", method: o = "POST", acceptFile: s = "*", fileResponseName: c = "url", changeFileButtonText: l = "Alterar arquivo", selectFileButtonText: d = "Selecionar arquivo", dropFileText: f = "Ou arraste e solte o arquivo aqui", onChange: h, disabled: g = !1 } = e, { fieldErrors: _ } = Q(), v = _?.[t], [y, b] = u(""), [x, S] = u(""), [C, w] = u(null), [T, E] = u(!1);
1811
1958
  async function D(e) {
1812
1959
  if (g) return;
1813
1960
  E(!0), w(e), S("");
@@ -1825,8 +1972,8 @@ function Jt(e) {
1825
1972
  g || D(e);
1826
1973
  }
1827
1974
  let k = v || x;
1828
- return /* @__PURE__ */ m(Be, { children: [
1829
- n && /* @__PURE__ */ p(ze, {
1975
+ return /* @__PURE__ */ m(ze, { children: [
1976
+ n && /* @__PURE__ */ p(Re, {
1830
1977
  showAsterisk: r,
1831
1978
  children: n
1832
1979
  }),
@@ -1838,7 +1985,7 @@ function Jt(e) {
1838
1985
  name: t,
1839
1986
  value: y || ""
1840
1987
  }),
1841
- !C && /* @__PURE__ */ p(qt, {
1988
+ !C && /* @__PURE__ */ p(Zt, {
1842
1989
  disabled: g,
1843
1990
  isLoading: T,
1844
1991
  acceptFile: s,
@@ -1846,7 +1993,7 @@ function Jt(e) {
1846
1993
  handleSelectFile: O,
1847
1994
  selectFileButtonText: d
1848
1995
  }),
1849
- C && /* @__PURE__ */ p(Kt, {
1996
+ C && /* @__PURE__ */ p(Xt, {
1850
1997
  disabled: g,
1851
1998
  isLoading: T,
1852
1999
  acceptFile: s,
@@ -1857,12 +2004,12 @@ function Jt(e) {
1857
2004
  })
1858
2005
  ]
1859
2006
  }),
1860
- k && /* @__PURE__ */ p(Re, { children: k })
2007
+ k && /* @__PURE__ */ p(Le, { children: k })
1861
2008
  ] });
1862
2009
  }
1863
2010
  //#endregion
1864
2011
  //#region src/components/fullCalendar/_viewService.ts
1865
- var Yt = class {
2012
+ var $t = class {
1866
2013
  capitalize(e) {
1867
2014
  return J(e);
1868
2015
  }
@@ -1958,16 +2105,16 @@ var Yt = class {
1958
2105
  let n = new Date(e);
1959
2106
  n.setDate(n.getDate() - 1), t(n);
1960
2107
  }
1961
- }, Xt = n({});
1962
- function Zt() {
1963
- return a(Xt);
2108
+ }, en = n({});
2109
+ function tn() {
2110
+ return a(en);
1964
2111
  }
1965
- function Qt(e) {
1966
- let { blockedTimestamps: t, children: n, events: r, defaultViewValue: i = /* @__PURE__ */ new Date(), language: a = "pt-BR", onChangeView: o, onClickDate: s, viewValue: c } = e, l = new Yt(), d = l.listHours([8, 18]), [f, m] = u(i), h = c || f;
2112
+ function nn(e) {
2113
+ let { blockedTimestamps: t, children: n, events: r, defaultViewValue: i = /* @__PURE__ */ new Date(), language: a = "pt-BR", onChangeView: o, onClickDate: s, viewValue: c } = e, l = new $t(), d = l.listHours([8, 18]), [f, m] = u(i), h = c || f;
1967
2114
  function g(e) {
1968
2115
  o && o(e), m(e);
1969
2116
  }
1970
- return /* @__PURE__ */ p(Xt.Provider, {
2117
+ return /* @__PURE__ */ p(en.Provider, {
1971
2118
  value: {
1972
2119
  events: r,
1973
2120
  blockedTimestamps: t,
@@ -1989,7 +2136,7 @@ function Qt(e) {
1989
2136
  }
1990
2137
  //#endregion
1991
2138
  //#region src/components/fullCalendar/dayCalendar/dayCalendarContainer/index.tsx
1992
- function $t({ children: e }) {
2139
+ function rn({ children: e }) {
1993
2140
  return /* @__PURE__ */ p("div", {
1994
2141
  className: "arkynDayCalendarContainer",
1995
2142
  children: e
@@ -1997,15 +2144,15 @@ function $t({ children: e }) {
1997
2144
  }
1998
2145
  //#endregion
1999
2146
  //#region src/components/fullCalendar/dayCalendar/dayCalendarEvent/index.tsx
2000
- var en = 30, tn = 205;
2001
- function nn(e) {
2002
- let { events: t, viewDate: n } = Zt(), r = n.getDate(), i = n.getMonth(), a = n.getFullYear(), o = t.map((e, t) => ({
2147
+ var an = 30, on = 205;
2148
+ function sn(e) {
2149
+ let { events: t, viewDate: n } = tn(), r = n.getDate(), i = n.getMonth(), a = n.getFullYear(), o = t.map((e, t) => ({
2003
2150
  event: e,
2004
2151
  sourceIndex: t
2005
2152
  })).filter(({ event: e }) => e.initialDate.getDate() === r && e.initialDate.getMonth() === i && e.initialDate.getFullYear() === a).sort((e, t) => {
2006
2153
  let n = e.event.initialDate.getTime(), r = t.event.initialDate.getTime();
2007
2154
  if (n !== r) return n - r;
2008
- let i = e.event.endDate?.getTime() ?? n + en * 6e4, a = t.event.endDate?.getTime() ?? r + en * 6e4;
2155
+ let i = e.event.endDate?.getTime() ?? n + an * 6e4, a = t.event.endDate?.getTime() ?? r + an * 6e4;
2009
2156
  return i === a ? e.sourceIndex - t.sourceIndex : i - a;
2010
2157
  }), s = new Map(o.map((e, t) => [e.sourceIndex, t])), c = o.filter(({ event: t }) => {
2011
2158
  let n = Math.floor(e.timeInMinutes / 60), o = e.timeInMinutes % 60;
@@ -2026,7 +2173,7 @@ function nn(e) {
2026
2173
  return n === 0 ? `${t}h` : `${t}h${n}`;
2027
2174
  }
2028
2175
  function d(e) {
2029
- let t = e.initialDate.getHours() * 60 + e.initialDate.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t + en;
2176
+ let t = e.initialDate.getHours() * 60 + e.initialDate.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t + an;
2030
2177
  return {
2031
2178
  startMinutes: t,
2032
2179
  endMinutes: Math.max(n, t + 1)
@@ -2041,7 +2188,7 @@ function nn(e) {
2041
2188
  }, 0);
2042
2189
  }
2043
2190
  function h(t, n) {
2044
- let { startMinutes: r, endMinutes: i } = d(t), a = r - e.timeInMinutes, o = Math.max(i - r, 1), s = a / en * 100, c = o / en * 100, l = f(t, n) * tn;
2191
+ let { startMinutes: r, endMinutes: i } = d(t), a = r - e.timeInMinutes, o = Math.max(i - r, 1), s = a / an * 100, c = o / an * 100, l = f(t, n) * on;
2045
2192
  return {
2046
2193
  top: `${s}%`,
2047
2194
  height: `${c}%`,
@@ -2064,8 +2211,8 @@ function nn(e) {
2064
2211
  }
2065
2212
  //#endregion
2066
2213
  //#region src/components/fullCalendar/dayCalendar/dayCalendarRow/index.tsx
2067
- function rn({ hour: e, timeInMinutes: t }) {
2068
- let n = new Yt(), { blockedTimestamps: r, viewDate: i, onClickDate: a } = Zt();
2214
+ function cn({ hour: e, timeInMinutes: t }) {
2215
+ let n = new $t(), { blockedTimestamps: r, viewDate: i, onClickDate: a } = tn();
2069
2216
  function o() {
2070
2217
  return r.some((e) => i >= e.initialDate && i <= e.endDate);
2071
2218
  }
@@ -2081,22 +2228,22 @@ function rn({ hour: e, timeInMinutes: t }) {
2081
2228
  onClick: s,
2082
2229
  children: [/* @__PURE__ */ p("p", { children: n.formatHourLabel(e) }), /* @__PURE__ */ p("div", {
2083
2230
  className: "arkynDayCalendarRowContent",
2084
- children: /* @__PURE__ */ p(nn, { timeInMinutes: t })
2231
+ children: /* @__PURE__ */ p(sn, { timeInMinutes: t })
2085
2232
  })]
2086
2233
  });
2087
2234
  }
2088
2235
  //#endregion
2089
2236
  //#region src/components/fullCalendar/dayCalendar/index.tsx
2090
- function an() {
2091
- let { listHours: e } = Zt();
2092
- return /* @__PURE__ */ p($t, { children: e.map((e) => /* @__PURE__ */ p(rn, {
2237
+ function ln() {
2238
+ let { listHours: e } = tn();
2239
+ return /* @__PURE__ */ p(rn, { children: e.map((e) => /* @__PURE__ */ p(cn, {
2093
2240
  hour: e,
2094
2241
  timeInMinutes: e
2095
2242
  }, e)) });
2096
2243
  }
2097
2244
  //#endregion
2098
2245
  //#region src/components/fullCalendar/fullCalendarContainer/index.tsx
2099
- function on({ children: e }) {
2246
+ function un({ children: e }) {
2100
2247
  return /* @__PURE__ */ p("div", {
2101
2248
  className: "arkynFullCalendarContainer",
2102
2249
  children: e
@@ -2104,8 +2251,8 @@ function on({ children: e }) {
2104
2251
  }
2105
2252
  //#endregion
2106
2253
  //#region src/components/fullCalendar/fullCalendarHeader/index.tsx
2107
- function sn(e) {
2108
- let { setViewType: t, viewType: n } = e, r = Zt();
2254
+ function dn(e) {
2255
+ let { setViewType: t, viewType: n } = e, r = tn();
2109
2256
  function i() {
2110
2257
  switch (n) {
2111
2258
  case "day": return r.previousDay();
@@ -2165,8 +2312,8 @@ function sn(e) {
2165
2312
  }
2166
2313
  //#endregion
2167
2314
  //#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.tsx
2168
- function cn(e) {
2169
- let { events: t } = Zt(), n = t.filter((t) => t.initialDate.getDate() === e.day && t.initialDate.getMonth() === e.month && t.initialDate.getFullYear() === e.year);
2315
+ function fn(e) {
2316
+ let { events: t } = tn(), n = t.filter((t) => t.initialDate.getDate() === e.day && t.initialDate.getMonth() === e.month && t.initialDate.getFullYear() === e.year);
2170
2317
  if (n.length === 0) return null;
2171
2318
  function r(t) {
2172
2319
  return `${e.day}-${e.month}-${e.year}-${t}`;
@@ -2190,8 +2337,8 @@ function cn(e) {
2190
2337
  }
2191
2338
  //#endregion
2192
2339
  //#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.tsx
2193
- function ln(e) {
2194
- let { day: t, month: n, year: r, dayOwner: i } = e, { blockedTimestamps: a, onClickDate: o } = Zt();
2340
+ function pn(e) {
2341
+ let { day: t, month: n, year: r, dayOwner: i } = e, { blockedTimestamps: a, onClickDate: o } = tn();
2195
2342
  function s() {
2196
2343
  let e = /* @__PURE__ */ new Date();
2197
2344
  return t === e.getDate() && n === e.getMonth() && r === e.getFullYear();
@@ -2211,7 +2358,7 @@ function ln(e) {
2211
2358
  children: t
2212
2359
  }), /* @__PURE__ */ p("div", {
2213
2360
  className: "arkynMonthlyCalendarEventContainer",
2214
- children: /* @__PURE__ */ p(cn, {
2361
+ children: /* @__PURE__ */ p(fn, {
2215
2362
  day: t,
2216
2363
  month: n,
2217
2364
  year: r
@@ -2221,15 +2368,15 @@ function ln(e) {
2221
2368
  }
2222
2369
  //#endregion
2223
2370
  //#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.tsx
2224
- function un() {
2371
+ function mn() {
2225
2372
  return /* @__PURE__ */ p("tbody", {
2226
2373
  className: "arkynMonthlyCalendarTableBody",
2227
- children: Zt().listMonthlyMatrix.map((e, t) => /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p(ln, { ...e }, t)) }, t))
2374
+ children: tn().listMonthlyMatrix.map((e, t) => /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p(pn, { ...e }, t)) }, t))
2228
2375
  });
2229
2376
  }
2230
2377
  //#endregion
2231
2378
  //#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.tsx
2232
- function dn({ children: e }) {
2379
+ function hn({ children: e }) {
2233
2380
  return /* @__PURE__ */ p("div", {
2234
2381
  className: "arkynMonthlyCalendarTableContainer",
2235
2382
  children: /* @__PURE__ */ p("table", { children: e })
@@ -2237,8 +2384,8 @@ function dn({ children: e }) {
2237
2384
  }
2238
2385
  //#endregion
2239
2386
  //#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.tsx
2240
- function fn() {
2241
- let { listWeek: e } = Zt();
2387
+ function gn() {
2388
+ let { listWeek: e } = tn();
2242
2389
  return /* @__PURE__ */ p("thead", {
2243
2390
  className: "arkynMonthlyCalendarTableHeader",
2244
2391
  children: /* @__PURE__ */ p("tr", { children: e.map((e) => /* @__PURE__ */ p("th", { children: J(e) }, e)) })
@@ -2246,20 +2393,20 @@ function fn() {
2246
2393
  }
2247
2394
  //#endregion
2248
2395
  //#region src/components/fullCalendar/monthlyCalendar/index.tsx
2249
- function pn() {
2250
- return /* @__PURE__ */ m(dn, { children: [/* @__PURE__ */ p(fn, {}), /* @__PURE__ */ p(un, {})] });
2396
+ function _n() {
2397
+ return /* @__PURE__ */ m(hn, { children: [/* @__PURE__ */ p(gn, {}), /* @__PURE__ */ p(mn, {})] });
2251
2398
  }
2252
2399
  //#endregion
2253
2400
  //#region src/components/fullCalendar/weekCalendar/weekCalendarEvent/index.tsx
2254
- var mn = 30, hn = 40;
2255
- function gn(e) {
2256
- let { events: t } = Zt(), n = t.map((e, t) => ({
2401
+ var vn = 30, yn = 40;
2402
+ function bn(e) {
2403
+ let { events: t } = tn(), n = t.map((e, t) => ({
2257
2404
  event: e,
2258
2405
  sourceIndex: t
2259
2406
  })).filter(({ event: t }) => t.initialDate.getDate() === e.day && t.initialDate.getMonth() === e.month && t.initialDate.getFullYear() === e.year).sort((e, t) => {
2260
2407
  let n = e.event.initialDate.getTime(), r = t.event.initialDate.getTime();
2261
2408
  if (n !== r) return n - r;
2262
- let i = e.event.endDate?.getTime() ?? n + mn * 6e4, a = t.event.endDate?.getTime() ?? r + mn * 6e4;
2409
+ let i = e.event.endDate?.getTime() ?? n + vn * 6e4, a = t.event.endDate?.getTime() ?? r + vn * 6e4;
2263
2410
  return i === a ? e.sourceIndex - t.sourceIndex : i - a;
2264
2411
  }), r = new Map(n.map((e, t) => [e.sourceIndex, t])), i = n.filter(({ event: t }) => {
2265
2412
  let n = Math.floor(e.timeInMinutes / 60), r = e.timeInMinutes % 60;
@@ -2280,7 +2427,7 @@ function gn(e) {
2280
2427
  return n === 0 ? `${t}h` : `${t}h${n}`;
2281
2428
  }
2282
2429
  function s(e) {
2283
- let t = e.initialDate.getHours() * 60 + e.initialDate.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t + mn;
2430
+ let t = e.initialDate.getHours() * 60 + e.initialDate.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t + vn;
2284
2431
  return {
2285
2432
  startMinutes: t,
2286
2433
  endMinutes: Math.max(n, t + 1)
@@ -2295,7 +2442,7 @@ function gn(e) {
2295
2442
  }, 0);
2296
2443
  }
2297
2444
  function l(t, n) {
2298
- let { startMinutes: r, endMinutes: i } = s(t), a = r - e.timeInMinutes, o = Math.max(i - r, 1), l = a / mn * 100, u = o / mn * 100, d = c(t, n) * hn;
2445
+ let { startMinutes: r, endMinutes: i } = s(t), a = r - e.timeInMinutes, o = Math.max(i - r, 1), l = a / vn * 100, u = o / vn * 100, d = c(t, n) * yn;
2299
2446
  return {
2300
2447
  top: `${l}%`,
2301
2448
  height: `${u}%`,
@@ -2318,8 +2465,8 @@ function gn(e) {
2318
2465
  }
2319
2466
  //#endregion
2320
2467
  //#region src/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.tsx
2321
- function _n(e) {
2322
- let { day: t, month: n, year: r, dayOwner: i, timeInMinutes: a } = e, { blockedTimestamps: o, onClickDate: s } = Zt();
2468
+ function xn(e) {
2469
+ let { day: t, month: n, year: r, dayOwner: i, timeInMinutes: a } = e, { blockedTimestamps: o, onClickDate: s } = tn();
2323
2470
  function c() {
2324
2471
  let e = new Date(r, n, t);
2325
2472
  return o.some((t) => e >= t.initialDate && e <= t.endDate);
@@ -2337,7 +2484,7 @@ function _n(e) {
2337
2484
  onClick: l,
2338
2485
  children: /* @__PURE__ */ p("div", {
2339
2486
  className: "arkynWeekCalendarTableTdContent",
2340
- children: /* @__PURE__ */ p(gn, {
2487
+ children: /* @__PURE__ */ p(bn, {
2341
2488
  day: t,
2342
2489
  month: n,
2343
2490
  year: r,
@@ -2348,19 +2495,19 @@ function _n(e) {
2348
2495
  }
2349
2496
  //#endregion
2350
2497
  //#region src/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.tsx
2351
- function vn() {
2352
- let e = Zt(), t = new Yt();
2498
+ function Sn() {
2499
+ let e = tn(), t = new $t();
2353
2500
  return /* @__PURE__ */ p("tbody", {
2354
2501
  className: "arkynWeekCalendarTableBody",
2355
2502
  children: e.listWeeklyMatrix.map((e) => /* @__PURE__ */ m("tr", { children: [/* @__PURE__ */ p("td", {
2356
2503
  className: "hourTd",
2357
2504
  children: /* @__PURE__ */ p("p", { children: t.formatHourLabel(e[0].timeInMinutes) })
2358
- }), e.map((e) => /* @__PURE__ */ p(_n, { ...e }, `${e.year}-${e.month}-${e.day}-${e.timeInMinutes}`))] }, e[0].timeInMinutes))
2505
+ }), e.map((e) => /* @__PURE__ */ p(xn, { ...e }, `${e.year}-${e.month}-${e.day}-${e.timeInMinutes}`))] }, e[0].timeInMinutes))
2359
2506
  });
2360
2507
  }
2361
2508
  //#endregion
2362
2509
  //#region src/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.tsx
2363
- function yn({ children: e }) {
2510
+ function Cn({ children: e }) {
2364
2511
  return /* @__PURE__ */ p("div", {
2365
2512
  className: "arkynWeekCalendarTableContainer",
2366
2513
  children: /* @__PURE__ */ p("table", { children: e })
@@ -2368,8 +2515,8 @@ function yn({ children: e }) {
2368
2515
  }
2369
2516
  //#endregion
2370
2517
  //#region src/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.tsx
2371
- function bn() {
2372
- let { listWeek: e, listWeeklyMatrix: t } = Zt(), n = t[0] || [];
2518
+ function wn() {
2519
+ let { listWeek: e, listWeeklyMatrix: t } = tn(), n = t[0] || [];
2373
2520
  return /* @__PURE__ */ p("thead", {
2374
2521
  className: "arkynWeekCalendarTableHeader",
2375
2522
  children: /* @__PURE__ */ m("tr", { children: [/* @__PURE__ */ p("th", {}), e.map((e, t) => /* @__PURE__ */ p("th", { children: /* @__PURE__ */ m("div", {
@@ -2380,34 +2527,34 @@ function bn() {
2380
2527
  }
2381
2528
  //#endregion
2382
2529
  //#region src/components/fullCalendar/weekCalendar/index.tsx
2383
- function xn() {
2384
- return /* @__PURE__ */ m(yn, { children: [/* @__PURE__ */ p(bn, {}), /* @__PURE__ */ p(vn, {})] });
2530
+ function Tn() {
2531
+ return /* @__PURE__ */ m(Cn, { children: [/* @__PURE__ */ p(wn, {}), /* @__PURE__ */ p(Sn, {})] });
2385
2532
  }
2386
2533
  //#endregion
2387
2534
  //#region src/components/fullCalendar/index.tsx
2388
- function Sn(e) {
2535
+ function En(e) {
2389
2536
  let [t, n] = u("month");
2390
- return /* @__PURE__ */ p(Qt, {
2537
+ return /* @__PURE__ */ p(nn, {
2391
2538
  events: e.events || [],
2392
2539
  viewValue: e.viewValue,
2393
2540
  defaultViewValue: e.defaultViewValue,
2394
2541
  onChangeView: e.onChangeView,
2395
2542
  blockedTimestamps: e.blockedTimestamps || [],
2396
2543
  onClickDate: e.onClickDate,
2397
- children: /* @__PURE__ */ m(on, { children: [
2398
- /* @__PURE__ */ p(sn, {
2544
+ children: /* @__PURE__ */ m(un, { children: [
2545
+ /* @__PURE__ */ p(dn, {
2399
2546
  viewType: t,
2400
2547
  setViewType: n
2401
2548
  }),
2402
- t === "day" && /* @__PURE__ */ p(an, {}),
2403
- t === "month" && /* @__PURE__ */ p(pn, {}),
2404
- t === "week" && /* @__PURE__ */ p(xn, {})
2549
+ t === "day" && /* @__PURE__ */ p(ln, {}),
2550
+ t === "month" && /* @__PURE__ */ p(_n, {}),
2551
+ t === "week" && /* @__PURE__ */ p(Tn, {})
2405
2552
  ] })
2406
2553
  });
2407
2554
  }
2408
2555
  //#endregion
2409
2556
  //#region src/components/googleAnalytics/snippets/generateGAElements.ts
2410
- function Cn(e) {
2557
+ function Dn(e) {
2411
2558
  let { measurementId: t } = e;
2412
2559
  return t || console.warn("Google Analytics Measurement ID is required"), {
2413
2560
  src: `https://www.googletagmanager.com/gtag/js?id=${t}`,
@@ -2420,7 +2567,7 @@ function Cn(e) {
2420
2567
  }
2421
2568
  //#endregion
2422
2569
  //#region src/components/googleAnalytics/googleAnalytics.tsx
2423
- var wn = class {
2570
+ var On = class {
2424
2571
  initializeAsyncScript(e) {
2425
2572
  let t = document.createElement("script");
2426
2573
  return t.async = !0, t.src = e, t;
@@ -2430,24 +2577,24 @@ var wn = class {
2430
2577
  return t.innerHTML = e, t;
2431
2578
  }
2432
2579
  initialize(e) {
2433
- let { measurementId: t } = e, n = Cn({ measurementId: t }), r = this.initializeAsyncScript(n.src), i = this.initializeInlineScript(n.script);
2580
+ let { measurementId: t } = e, n = Dn({ measurementId: t }), r = this.initializeAsyncScript(n.src), i = this.initializeInlineScript(n.script);
2434
2581
  document.head.appendChild(r), document.head.appendChild(i);
2435
2582
  }
2436
2583
  };
2437
2584
  //#endregion
2438
2585
  //#region src/components/googleAnalytics/googleAnalytics.client.tsx
2439
- function Tn(e) {
2440
- return new wn().initialize(e), null;
2586
+ function kn(e) {
2587
+ return new On().initialize(e), null;
2441
2588
  }
2442
2589
  //#endregion
2443
2590
  //#region src/components/googleAnalytics/index.tsx
2444
- function En(e) {
2591
+ function An(e) {
2445
2592
  let { measurementId: t, showInDevMode: n = !1 } = e;
2446
- return process.env.NODE_ENV !== "production" && !n ? null : /* @__PURE__ */ p(Tt, { children: () => /* @__PURE__ */ p(Tn, { measurementId: t }) });
2593
+ return process.env.NODE_ENV !== "production" && !n ? null : /* @__PURE__ */ p(Tt, { children: () => /* @__PURE__ */ p(kn, { measurementId: t }) });
2447
2594
  }
2448
2595
  //#endregion
2449
2596
  //#region src/components/googleTagManager/snippets/appendToDataLayer.ts
2450
- function Dn(e) {
2597
+ function jn(e) {
2451
2598
  let { dataLayer: t, dataLayerName: n } = e;
2452
2599
  return `
2453
2600
  window.${n} = window.${n} || [];
@@ -2455,7 +2602,7 @@ function Dn(e) {
2455
2602
  }
2456
2603
  //#endregion
2457
2604
  //#region src/components/googleTagManager/snippets/generateGTMElements.ts
2458
- function On(e) {
2605
+ function Mn(e) {
2459
2606
  let { id: t, events: n, dataLayer: r, dataLayerName: i, preview: a, auth: o } = e, s = `&gtm_auth=${o}`, c = `&gtm_preview=${a}`;
2460
2607
  return t || console.warn("GTM Id is required"), {
2461
2608
  iframe: `
@@ -2468,7 +2615,7 @@ function On(e) {
2468
2615
  j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'${s}${c}&gtm_cookies_win=x';
2469
2616
  f.parentNode.insertBefore(j,f);
2470
2617
  })(window,document,'script','${i}','${t}');`,
2471
- dataLayerVar: Dn({
2618
+ dataLayerVar: jn({
2472
2619
  dataLayer: r,
2473
2620
  dataLayerName: i
2474
2621
  })
@@ -2476,13 +2623,13 @@ function On(e) {
2476
2623
  }
2477
2624
  //#endregion
2478
2625
  //#region src/components/googleTagManager/googleTagManager.tsx
2479
- var kn = class {
2626
+ var Nn = class {
2480
2627
  initializeDataScript(e) {
2481
2628
  let t = document.createElement("script");
2482
2629
  return t.innerHTML = e, t;
2483
2630
  }
2484
2631
  initializeGTMElements(e) {
2485
- let t = On(e);
2632
+ let t = Mn(e);
2486
2633
  return {
2487
2634
  noScript: () => {
2488
2635
  let e = document.createElement("noscript");
@@ -2498,7 +2645,7 @@ var kn = class {
2498
2645
  initializeDataLayer(e) {
2499
2646
  let { dataLayer: t, dataLayerName: n } = e;
2500
2647
  if (window[n]) return window[n].push(t);
2501
- let r = Dn({
2648
+ let r = jn({
2502
2649
  dataLayer: t,
2503
2650
  dataLayerName: n
2504
2651
  }), i = this.initializeDataScript(r);
@@ -2518,14 +2665,14 @@ var kn = class {
2518
2665
  };
2519
2666
  //#endregion
2520
2667
  //#region src/components/googleTagManager/googleTagManager.client.tsx
2521
- function An(e) {
2522
- return new kn().initialize(e), null;
2668
+ function Pn(e) {
2669
+ return new Nn().initialize(e), null;
2523
2670
  }
2524
2671
  //#endregion
2525
2672
  //#region src/components/googleTagManager/index.tsx
2526
- function jn(e) {
2673
+ function Fn(e) {
2527
2674
  let { gtmId: t, auth: n = "", preview: r = "", dataLayerName: i = "dataLayer", events: a = {}, dataLayer: o = {}, showInDevMode: s = !1 } = e;
2528
- return process.env.NODE_ENV !== "production" && !s ? null : /* @__PURE__ */ p(Tt, { children: () => /* @__PURE__ */ p(An, {
2675
+ return process.env.NODE_ENV !== "production" && !s ? null : /* @__PURE__ */ p(Tt, { children: () => /* @__PURE__ */ p(Pn, {
2529
2676
  auth: n,
2530
2677
  dataLayer: o,
2531
2678
  dataLayerName: i,
@@ -2536,7 +2683,7 @@ function jn(e) {
2536
2683
  }
2537
2684
  //#endregion
2538
2685
  //#region src/components/imageUpload/hasFileContent/index.tsx
2539
- function Mn(e) {
2686
+ function In(e) {
2540
2687
  let { disabled: t, filePath: n, isLoading: r, acceptImage: i, changeImageButtonText: a, handleSelectFile: o, reSendImage: s } = e;
2541
2688
  function c() {
2542
2689
  if (t) return;
@@ -2560,10 +2707,10 @@ function Mn(e) {
2560
2707
  size: "sm",
2561
2708
  isLoading: r,
2562
2709
  onClick: s,
2563
- icon: U,
2710
+ icon: H,
2564
2711
  disabled: t
2565
2712
  })
2566
- }), /* @__PURE__ */ p($, {
2713
+ }), /* @__PURE__ */ p(Be, {
2567
2714
  isLoading: r,
2568
2715
  onClick: c,
2569
2716
  variant: "outline",
@@ -2576,7 +2723,7 @@ function Mn(e) {
2576
2723
  }
2577
2724
  //#endregion
2578
2725
  //#region src/components/imageUpload/noFileContent/index.tsx
2579
- function Nn(e) {
2726
+ function Ln(e) {
2580
2727
  let { dropImageText: t, isLoading: n, acceptImage: r, handleSelectFile: i, selectImageButtonText: a, disabled: o } = e;
2581
2728
  function s(e) {
2582
2729
  if (o) return;
@@ -2595,7 +2742,7 @@ function Nn(e) {
2595
2742
  return /* @__PURE__ */ m("div", {
2596
2743
  onDrop: s,
2597
2744
  className: "arkynImageUploadNoFileContent",
2598
- children: [/* @__PURE__ */ p($, {
2745
+ children: [/* @__PURE__ */ p(Be, {
2599
2746
  isLoading: n,
2600
2747
  onClick: c,
2601
2748
  variant: "ghost",
@@ -2608,8 +2755,8 @@ function Nn(e) {
2608
2755
  }
2609
2756
  //#endregion
2610
2757
  //#region src/components/imageUpload/index.tsx
2611
- function Pn(e) {
2612
- 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 = "vertical" } = e, { fieldErrors: x } = Z(), S = x?.[t], [C, w] = u(n), [T, E] = u(""), [D, O] = u(null), [k, A] = u(n), [j, M] = u(!1);
2758
+ function Rn(e) {
2759
+ 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 = "vertical" } = e, { fieldErrors: x } = Q(), S = x?.[t], [C, w] = u(n), [T, E] = u(""), [D, O] = u(null), [k, A] = u(n), [j, M] = u(!1);
2613
2760
  async function N(e) {
2614
2761
  if (v) return;
2615
2762
  M(!0), O(e), E("");
@@ -2643,7 +2790,7 @@ function Pn(e) {
2643
2790
  name: t,
2644
2791
  value: C || ""
2645
2792
  }),
2646
- !k && /* @__PURE__ */ p(Nn, {
2793
+ !k && /* @__PURE__ */ p(Ln, {
2647
2794
  disabled: v,
2648
2795
  isLoading: j,
2649
2796
  acceptImage: l,
@@ -2651,7 +2798,7 @@ function Pn(e) {
2651
2798
  handleSelectFile: P,
2652
2799
  selectImageButtonText: h
2653
2800
  }),
2654
- k && /* @__PURE__ */ p(Mn, {
2801
+ k && /* @__PURE__ */ p(In, {
2655
2802
  disabled: v,
2656
2803
  isLoading: j,
2657
2804
  acceptImage: l,
@@ -2666,7 +2813,7 @@ function Pn(e) {
2666
2813
  }
2667
2814
  //#endregion
2668
2815
  //#region src/components/mapView/mapView.client.tsx
2669
- function Fn({ center: e, coordinates: t, onMarkerClick: n, accessToken: r, ...i }) {
2816
+ function zn({ center: e, coordinates: t, onMarkerClick: n, accessToken: r, ...i }) {
2670
2817
  let a = l(null), s = l(null), c = e || t[0];
2671
2818
  return o(() => (ae.accessToken = r, a.current = new ae.Map({
2672
2819
  container: s.current,
@@ -2716,19 +2863,19 @@ function Fn({ center: e, coordinates: t, onMarkerClick: n, accessToken: r, ...i
2716
2863
  }
2717
2864
  //#endregion
2718
2865
  //#region src/components/mapView/index.tsx
2719
- function In({ className: e }) {
2866
+ function Bn({ className: e }) {
2720
2867
  return /* @__PURE__ */ p("div", {
2721
2868
  className: `arkynMapViewPinnedEmpty ${e}`,
2722
- children: /* @__PURE__ */ p(z, {})
2869
+ children: /* @__PURE__ */ p(ee, {})
2723
2870
  });
2724
2871
  }
2725
- function Ln(e) {
2872
+ function Vn(e) {
2726
2873
  let { coordinates: t, zoom: n = 18, accessToken: r, className: i, onMarkerClick: a, ...o } = e;
2727
- if (!t) return /* @__PURE__ */ p(In, { className: i });
2874
+ if (!t) return /* @__PURE__ */ p(Bn, { className: i });
2728
2875
  let s = Array.isArray(t) ? t : [t];
2729
- return s.length === 0 ? /* @__PURE__ */ p(In, { className: i }) : /* @__PURE__ */ p(Tt, {
2730
- fallback: /* @__PURE__ */ p(In, { className: i }),
2731
- children: () => /* @__PURE__ */ p(Fn, {
2876
+ return s.length === 0 ? /* @__PURE__ */ p(Bn, { className: i }) : /* @__PURE__ */ p(Tt, {
2877
+ fallback: /* @__PURE__ */ p(Bn, { className: i }),
2878
+ children: () => /* @__PURE__ */ p(zn, {
2732
2879
  accessToken: r,
2733
2880
  coordinates: s,
2734
2881
  center: s[0],
@@ -2739,132 +2886,138 @@ function Ln(e) {
2739
2886
  }
2740
2887
  //#endregion
2741
2888
  //#region src/components/maskedInput/index.tsx
2742
- var Rn = r((e, t) => /* @__PURE__ */ p("input", {
2889
+ var Hn = r((e, t) => /* @__PURE__ */ p("input", {
2743
2890
  ref: t,
2744
2891
  ...e
2745
2892
  }));
2746
- function zn(e) {
2747
- 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 } = Z(), [P, F] = u(!1), I = l(null), L = s(), z = k || L, B = w || N?.[t], V = !!B, H = n || y, U = {
2893
+ function Un(e) {
2894
+ 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 } = Q(), [P, F] = u(!1), I = l(null), L = s(), ee = k || L, z = w || N?.[t], B = !!z, V = n || y, H = {
2748
2895
  md: 20,
2749
2896
  lg: 20
2750
- }[O], W = D ? "right" : "left", G = W === "left" && y, K = W === "right" && y;
2751
- function q() {
2752
- H || !I?.current || (F(!0), I.current.focus());
2897
+ }[O], U = D ? "right" : "left", W = U === "left" && y, G = U === "right" && y;
2898
+ function te() {
2899
+ V || !I?.current || (F(!0), I.current.focus());
2753
2900
  }
2754
- function ee(e) {
2901
+ function K(e) {
2755
2902
  F(!0), S && S(e);
2756
2903
  }
2757
- function te(e) {
2904
+ function q(e) {
2758
2905
  F(!1), C && C(e);
2759
2906
  }
2760
- let J = `arkynMaskedInput ${_ ? "hasPrefix" : ""} ${v ? "hasSuffix" : ""} ${a} ${O} ${H || x || y ? "opacity" : ""} ${V ? "errored" : ""} ${P ? "focused" : ""}`;
2761
- return /* @__PURE__ */ m(Be, {
2907
+ let J = `arkynMaskedInput ${_ ? "hasPrefix" : ""} ${v ? "hasSuffix" : ""} ${a} ${O} ${V || x || y ? "opacity" : ""} ${B ? "errored" : ""} ${P ? "focused" : ""}`;
2908
+ return /* @__PURE__ */ m(ze, {
2762
2909
  className: g,
2763
2910
  children: [
2764
- h && /* @__PURE__ */ p(ze, {
2911
+ h && /* @__PURE__ */ p(Re, {
2765
2912
  showAsterisk: E,
2766
- htmlFor: z,
2913
+ htmlFor: ee,
2767
2914
  children: h
2768
2915
  }),
2769
2916
  /* @__PURE__ */ m("section", {
2770
2917
  title: r,
2771
2918
  style: i,
2772
- onClick: q,
2919
+ onClick: te,
2773
2920
  className: J,
2774
2921
  children: [
2775
- /* @__PURE__ */ p(Q, {
2776
- iconSize: U,
2922
+ /* @__PURE__ */ p($, {
2923
+ iconSize: H,
2777
2924
  icon: _,
2778
2925
  className: "prefix"
2779
2926
  }),
2780
- /* @__PURE__ */ p(Q, {
2781
- show: G,
2782
- iconSize: U,
2927
+ /* @__PURE__ */ p($, {
2928
+ show: W,
2929
+ iconSize: H,
2783
2930
  className: "spinner",
2784
2931
  icon: R
2785
2932
  }),
2786
- /* @__PURE__ */ p(Q, {
2933
+ /* @__PURE__ */ p($, {
2787
2934
  show: !y,
2788
2935
  icon: b,
2789
- iconSize: U
2936
+ iconSize: H
2790
2937
  }),
2791
2938
  /* @__PURE__ */ p(Y, {
2792
- component: Rn,
2939
+ component: Hn,
2793
2940
  mask: c,
2794
2941
  replacement: f,
2795
2942
  separate: o,
2796
2943
  showMask: d,
2797
2944
  ref: I,
2798
- onFocus: ee,
2799
- onBlur: te,
2800
- disabled: H,
2945
+ onFocus: K,
2946
+ onBlur: q,
2947
+ disabled: V,
2801
2948
  readOnly: x,
2802
- id: z,
2949
+ id: ee,
2803
2950
  name: t,
2804
2951
  defaultValue: T || void 0,
2805
- placeholder: H && A || j,
2806
- value: H ? void 0 : A,
2952
+ placeholder: V && A || j,
2953
+ value: V ? void 0 : A,
2807
2954
  ...M
2808
2955
  }),
2809
- /* @__PURE__ */ p(Q, {
2956
+ /* @__PURE__ */ p($, {
2810
2957
  show: !y,
2811
2958
  icon: D,
2812
- iconSize: U
2959
+ iconSize: H
2813
2960
  }),
2814
- /* @__PURE__ */ p(Q, {
2815
- show: K,
2816
- iconSize: U,
2961
+ /* @__PURE__ */ p($, {
2962
+ show: G,
2963
+ iconSize: H,
2817
2964
  className: "spinner",
2818
2965
  icon: R
2819
2966
  }),
2820
- /* @__PURE__ */ p(Q, {
2821
- iconSize: U,
2967
+ /* @__PURE__ */ p($, {
2968
+ iconSize: H,
2822
2969
  icon: v,
2823
2970
  className: "suffix"
2824
2971
  })
2825
2972
  ]
2826
2973
  }),
2827
- B && /* @__PURE__ */ p(Re, { children: B })
2974
+ z && /* @__PURE__ */ p(Le, { children: z })
2828
2975
  ]
2829
2976
  });
2830
2977
  }
2831
2978
  //#endregion
2832
2979
  //#region src/components/modal/modalContext.tsx
2833
- var Bn = n({});
2834
- function Vn(e) {
2980
+ var Wn = n({});
2981
+ function Gn(e) {
2835
2982
  let t = c(() => ({ makeInvisible: e.makeInvisible }), [e.makeInvisible]);
2836
- return /* @__PURE__ */ p(Bn.Provider, {
2983
+ return /* @__PURE__ */ p(Wn.Provider, {
2837
2984
  value: t,
2838
2985
  children: e.children
2839
2986
  });
2840
2987
  }
2841
- function Hn() {
2842
- return a(Bn);
2988
+ function Kn() {
2989
+ return a(Wn);
2843
2990
  }
2844
2991
  //#endregion
2845
2992
  //#region src/components/modal/modalContainer/index.tsx
2846
- function Un(e) {
2847
- let { isVisible: t, makeInvisible: n, children: r, className: i = "", ...a } = e, [s, c] = u(t), [l, d] = u(!1);
2993
+ function qn(e) {
2994
+ let { isVisible: t, makeInvisible: n, children: r, className: i = "", ...a } = e, [s, c] = u(t), [d, f] = u(!1), h = l(null);
2848
2995
  o(() => {
2849
- t ? (c(!0), d(!1)) : s && d(!0);
2996
+ t ? (c(!0), f(!1)) : s && f(!0);
2850
2997
  }, [t, s]), at(t);
2851
- function f(e) {
2852
- e.target === e.currentTarget && l && (d(!1), c(!1), n());
2998
+ let g = s && !d;
2999
+ Rt(g, () => f(!0)), Vt(g, h);
3000
+ function _(e) {
3001
+ e.target === e.currentTarget && d && (f(!1), c(!1), n());
2853
3002
  }
2854
- return s ? /* @__PURE__ */ p(Vn, {
2855
- makeInvisible: () => d(!0),
3003
+ return s ? /* @__PURE__ */ p(Gn, {
3004
+ makeInvisible: () => f(!0),
2856
3005
  children: /* @__PURE__ */ m("aside", {
2857
3006
  className: [
2858
3007
  "arkynModalContainer",
2859
- l ? "exiting" : "",
3008
+ d ? "exiting" : "",
2860
3009
  i
2861
3010
  ].filter(Boolean).join(" ").trim(),
2862
3011
  ...a,
2863
3012
  children: [/* @__PURE__ */ p("div", {
2864
3013
  className: "arkynModalContainerOverlay",
2865
- onClick: () => d(!0),
2866
- onAnimationEnd: f
3014
+ onClick: () => f(!0),
3015
+ onAnimationEnd: _
2867
3016
  }), /* @__PURE__ */ p("div", {
3017
+ ref: h,
3018
+ role: "dialog",
3019
+ "aria-modal": "true",
3020
+ tabIndex: -1,
2868
3021
  className: "arkynModalContainerContent",
2869
3022
  children: r
2870
3023
  })]
@@ -2873,7 +3026,7 @@ function Un(e) {
2873
3026
  }
2874
3027
  //#endregion
2875
3028
  //#region src/components/modal/modalFooter/index.tsx
2876
- function Wn(e) {
3029
+ function Jn(e) {
2877
3030
  let { alignment: t = "right", className: n, ...r } = e;
2878
3031
  return /* @__PURE__ */ p("footer", {
2879
3032
  className: `arkynModalFooter ${t} ${n}`.trim(),
@@ -2882,8 +3035,8 @@ function Wn(e) {
2882
3035
  }
2883
3036
  //#endregion
2884
3037
  //#region src/components/modal/modalHeader/index.tsx
2885
- function Gn(e) {
2886
- let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } = Hn();
3038
+ function Yn(e) {
3039
+ let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } = Kn();
2887
3040
  return /* @__PURE__ */ m("header", {
2888
3041
  className: `arkynModalHeader ${n}`.trim(),
2889
3042
  ...i,
@@ -2892,13 +3045,13 @@ function Gn(e) {
2892
3045
  onClick: a,
2893
3046
  "aria-label": "Close modal button",
2894
3047
  className: "arkynModalHeaderCloseButton",
2895
- children: /* @__PURE__ */ p(q, { size: 24 })
3048
+ children: /* @__PURE__ */ p(te, { size: 24 })
2896
3049
  })]
2897
3050
  });
2898
3051
  }
2899
3052
  //#endregion
2900
3053
  //#region src/components/multiSelect/multiSelectChevron/index.tsx
2901
- function Kn(e) {
3054
+ function Xn(e) {
2902
3055
  let { iconSize: t, isLoading: n, disabled: r, readOnly: i, isFocused: a } = e;
2903
3056
  return n ? null : /* @__PURE__ */ p(C, {
2904
3057
  className: `arkynMultiSelectChevron ${r || i ? "notAnimate" : ""} ${a ? "focused" : ""}`,
@@ -2913,18 +3066,26 @@ function Kn(e) {
2913
3066
  }
2914
3067
  //#endregion
2915
3068
  //#region src/components/multiSelect/multiSelectContainer/index.tsx
2916
- function qn(e) {
2917
- 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;
2918
- return /* @__PURE__ */ p("section", {
3069
+ function Zn(e) {
3070
+ 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, containerRef: m, onContainerKeyDown: h, tabIndex: g, ariaControls: _, ariaActiveDescendant: v } = e;
3071
+ return /* @__PURE__ */ p("div", {
3072
+ ref: m,
2919
3073
  id: d,
3074
+ tabIndex: g,
3075
+ role: "combobox",
3076
+ "aria-haspopup": "listbox",
3077
+ "aria-expanded": o,
3078
+ "aria-controls": _,
3079
+ "aria-activedescendant": v,
2920
3080
  className: `arkynMultiSelectContainer ${f ? "hasPrefix" : ""} ${l} ${u} ${r || c || a ? "opacity" : ""} ${i ? "errored" : ""} ${o ? "focused" : ""} ${s}`,
2921
3081
  onClick: n,
3082
+ onKeyDown: h,
2922
3083
  children: t
2923
3084
  });
2924
3085
  }
2925
3086
  //#endregion
2926
3087
  //#region src/components/multiSelect/multiSelectContent/index.tsx
2927
- function Jn(e) {
3088
+ function Qn(e) {
2928
3089
  let { children: t, size: n } = e;
2929
3090
  return /* @__PURE__ */ p("div", {
2930
3091
  className: `arkynMultiSelectContent ${n}`,
@@ -2933,7 +3094,7 @@ function Jn(e) {
2933
3094
  }
2934
3095
  //#endregion
2935
3096
  //#region src/components/multiSelect/multiSelectMark/index.tsx
2936
- function Yn(e) {
3097
+ function $n(e) {
2937
3098
  let { label: t, value: n, disabled: r, handleChangeValue: i } = e;
2938
3099
  return /* @__PURE__ */ m("div", {
2939
3100
  className: "arkynMultiSelectMark",
@@ -2943,17 +3104,21 @@ function Yn(e) {
2943
3104
  onClick: (e) => {
2944
3105
  e.stopPropagation(), i(n);
2945
3106
  },
2946
- children: /* @__PURE__ */ p(q, {})
3107
+ children: /* @__PURE__ */ p(te, {})
2947
3108
  })]
2948
3109
  });
2949
3110
  }
2950
3111
  //#endregion
2951
3112
  //#region src/components/multiSelect/multiSelectOption/index.tsx
2952
- function Xn(e) {
2953
- let { label: t, optionHasSelected: n, handleChangeValue: r, value: i, size: a } = e;
2954
- return /* @__PURE__ */ m("div", {
3113
+ function er(e) {
3114
+ let { label: t, optionHasSelected: n, handleChangeValue: r, value: i, size: a, id: o, isHighlighted: s = !1 } = e, c = n(i);
3115
+ return /* @__PURE__ */ m("button", {
3116
+ type: "button",
3117
+ id: o,
3118
+ role: "option",
3119
+ "aria-selected": c,
2955
3120
  onClick: () => r(i),
2956
- className: `arkynMultiSelectOption ${a} ${n(i) ? "active" : ""}`,
3121
+ className: `arkynMultiSelectOption ${a} ${c ? "active" : ""} ${s ? "highlighted" : ""}`,
2957
3122
  children: [
2958
3123
  t,
2959
3124
  " ",
@@ -2963,36 +3128,39 @@ function Xn(e) {
2963
3128
  }
2964
3129
  //#endregion
2965
3130
  //#region src/components/multiSelect/multiSelectOptionsContainer/index.tsx
2966
- function Zn(e) {
2967
- let { children: t, isFocused: n, isSearchable: r, search: i, onSearch: a } = e, s = l(null), [c, d] = u("bottom");
2968
- at(n), o(() => {
2969
- n && (() => {
2970
- if (!s.current) return;
2971
- let e = s.current.parentElement;
3131
+ function tr(e) {
3132
+ let { children: t, id: n, isFocused: r, isSearchable: i, search: a, onSearch: s } = e, c = l(null), [d, f] = u("bottom");
3133
+ at(r), o(() => {
3134
+ r && (() => {
3135
+ if (!c.current) return;
3136
+ let e = c.current.parentElement;
2972
3137
  if (!e) return;
2973
3138
  let t = e.getBoundingClientRect();
2974
- window.innerHeight - t.bottom < 300 && t.top > 300 ? d("top") : d("bottom");
3139
+ window.innerHeight - t.bottom < 300 && t.top > 300 ? f("top") : f("bottom");
2975
3140
  })();
2976
- }, [n]);
2977
- function f(e) {
2978
- r && a(e.target.value);
2979
- }
2980
- return n ? /* @__PURE__ */ m("div", {
2981
- ref: s,
2982
- className: `arkynMultiSelectOptionsContainer ${c}`,
2983
- children: [r && /* @__PURE__ */ p(ot, {
3141
+ }, [r]);
3142
+ function h(e) {
3143
+ i && s(e.target.value);
3144
+ }
3145
+ return r ? /* @__PURE__ */ m("div", {
3146
+ ref: c,
3147
+ id: n,
3148
+ role: "listbox",
3149
+ "aria-multiselectable": "true",
3150
+ className: `arkynMultiSelectOptionsContainer ${d}`,
3151
+ children: [i && /* @__PURE__ */ p(ot, {
2984
3152
  type: "search",
2985
3153
  name: "search-select",
2986
3154
  variant: "underline",
2987
- leftIcon: W,
2988
- value: i,
2989
- onChange: f
3155
+ leftIcon: U,
3156
+ value: a,
3157
+ onChange: h
2990
3158
  }), t]
2991
3159
  }) : null;
2992
3160
  }
2993
3161
  //#endregion
2994
3162
  //#region src/components/multiSelect/multiSelectOverlay/index.tsx
2995
- function Qn(e) {
3163
+ function nr(e) {
2996
3164
  let { isFocused: t, handleBlur: n } = e;
2997
3165
  return t ? /* @__PURE__ */ p("aside", {
2998
3166
  className: "arkynMultiSelectOverlay",
@@ -3001,7 +3169,7 @@ function Qn(e) {
3001
3169
  }
3002
3170
  //#endregion
3003
3171
  //#region src/components/multiSelect/multiSelectSpinner/index.tsx
3004
- function $n(e) {
3172
+ function rr(e) {
3005
3173
  let { iconSize: t, isLoading: n } = e;
3006
3174
  return n ? /* @__PURE__ */ p(R, {
3007
3175
  className: "arkynMultiSelectSpinner",
@@ -3011,101 +3179,141 @@ function $n(e) {
3011
3179
  }
3012
3180
  //#endregion
3013
3181
  //#region src/components/multiSelect/index.tsx
3014
- function er(e) {
3015
- 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: _, showAsterisk: v, leftIcon: y, onSearch: b, onChange: x, onBlur: S, notFoundText: C = "Sem opções disponíveis", onFocus: w, disabled: T = !1, prefix: E, size: D = "md", value: O, variant: k = "solid", unShowFieldTemplate: A = !1, orientation: j = "vertical" } = e, { fieldErrors: M } = Z(), N = l(null), P = s(), F = g || P, I = c || M?.[t], L = !!I, R = T || d || f, z = {
3182
+ function ir(e) {
3183
+ 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: _, showAsterisk: v, leftIcon: y, onSearch: b, onChange: x, onBlur: S, notFoundText: C = "Sem opções disponíveis", onFocus: w, disabled: T = !1, prefix: E, size: D = "md", value: O, variant: k = "solid", unShowFieldTemplate: A = !1, orientation: j = "vertical" } = e, { fieldErrors: M } = Q(), N = l(null), P = l(null), F = s(), I = g || F, L = `${I}-listbox`, R = c || M?.[t], ee = !!R, z = T || d || f, B = {
3016
3184
  md: 20,
3017
3185
  lg: 20
3018
- }[D], [B, V] = u(""), [H, U] = u(!1), [W, G] = u(o), K = O || W;
3019
- function q(e) {
3020
- return K.includes(e);
3186
+ }[D], [V, H] = u(""), [U, W] = u(!1), [G, te] = u(o), [K, q] = u(-1), J = O || G;
3187
+ function ne(e) {
3188
+ return J.includes(e);
3021
3189
  }
3022
- function ee(e) {
3190
+ function re(e) {
3023
3191
  return n.find((t) => t.value === e)?.label || "";
3024
3192
  }
3025
- function te() {
3026
- R || !N?.current || H || (U(!0), N.current.focus(), w?.());
3193
+ function ie(e) {
3194
+ return `${L}-option-${e.replace(/[^a-zA-Z0-9_-]/g, "-")}`;
3027
3195
  }
3028
- function J() {
3029
- U(!1), S && N.current && N.current.blur();
3196
+ function ae() {
3197
+ z || !N?.current || U || (W(!0), q(-1), N.current.focus(), w?.());
3030
3198
  }
3031
- function ne(e) {
3032
- V(e), b && b(e);
3199
+ function oe() {
3200
+ W(!1), q(-1), S && N.current && N.current.blur();
3033
3201
  }
3034
- function re(e) {
3035
- q(e) ? (G(W.filter((t) => t !== e)), x && x(W.filter((t) => t !== e))) : (G([...W, e]), x && x([...W, e])), a && J();
3202
+ function Y(e) {
3203
+ H(e), q(-1), b && b(e);
3204
+ }
3205
+ function se(e) {
3206
+ ne(e) ? (te(G.filter((t) => t !== e)), x && x(G.filter((t) => t !== e))) : (te([...G, e]), x && x([...G, e])), a && oe();
3207
+ }
3208
+ let X = n.filter((t) => !!(e.onSearch || !e.isSearchable || t.label.toLowerCase().includes(V.toLowerCase())));
3209
+ function Z(e) {
3210
+ if (z) return;
3211
+ if (!U) {
3212
+ (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), ae(), e.key === "ArrowDown" && q(0));
3213
+ return;
3214
+ }
3215
+ let t = e.target?.tagName === "INPUT", n = e.target?.tagName === "BUTTON";
3216
+ switch (e.key) {
3217
+ case "Escape":
3218
+ e.preventDefault(), oe(), P.current?.focus();
3219
+ break;
3220
+ case "ArrowDown":
3221
+ e.preventDefault(), q((e) => X.length === 0 ? -1 : e < 0 || e + 1 >= X.length ? 0 : e + 1);
3222
+ break;
3223
+ case "ArrowUp":
3224
+ e.preventDefault(), q((e) => X.length === 0 ? -1 : e < 0 || e - 1 < 0 ? X.length - 1 : e - 1);
3225
+ break;
3226
+ case " ":
3227
+ if (t || n) return;
3228
+ e.preventDefault(), K >= 0 && K < X.length && se(X[K].value);
3229
+ break;
3230
+ case "Enter":
3231
+ if (n) return;
3232
+ e.preventDefault(), K >= 0 && K < X.length && se(X[K].value);
3233
+ break;
3234
+ default: break;
3235
+ }
3036
3236
  }
3037
- let ie = n.filter((t) => !!(e.onSearch || !e.isSearchable || t.label.toLowerCase().includes(B.toLowerCase())));
3237
+ let ce = K >= 0 && K < X.length ? ie(X[K].value) : void 0;
3038
3238
  return /* @__PURE__ */ p($e, {
3039
3239
  name: t,
3040
3240
  label: _,
3041
3241
  showAsterisk: v,
3042
3242
  className: r,
3043
- errorMessage: I,
3243
+ errorMessage: R,
3044
3244
  unShowFieldTemplate: A,
3045
3245
  orientation: j,
3046
- children: /* @__PURE__ */ m(qn, {
3047
- handleContainerFocus: te,
3048
- disabled: R,
3049
- isError: L,
3050
- isFocused: H,
3246
+ children: /* @__PURE__ */ m(Zn, {
3247
+ handleContainerFocus: ae,
3248
+ disabled: z,
3249
+ isError: ee,
3250
+ isFocused: U,
3051
3251
  isLoading: d,
3052
3252
  readOnly: f,
3053
3253
  size: D,
3054
3254
  variant: k,
3055
3255
  prefixExists: !!E,
3056
- id: F,
3256
+ id: I,
3257
+ containerRef: P,
3258
+ onContainerKeyDown: Z,
3259
+ tabIndex: z ? -1 : 0,
3260
+ ariaControls: L,
3261
+ ariaActiveDescendant: ce,
3057
3262
  children: [
3058
3263
  /* @__PURE__ */ p("input", {
3059
3264
  ref: N,
3060
3265
  name: t,
3061
- value: JSON.stringify(K),
3266
+ value: JSON.stringify(J),
3062
3267
  type: "hidden"
3063
3268
  }),
3064
- /* @__PURE__ */ p(Q, {
3065
- iconSize: z,
3269
+ /* @__PURE__ */ p($, {
3270
+ iconSize: B,
3066
3271
  icon: E,
3067
3272
  className: "prefix"
3068
3273
  }),
3069
3274
  y && /* @__PURE__ */ p(y, {
3070
- size: z,
3275
+ size: B,
3071
3276
  strokeWidth: 2.5
3072
3277
  }),
3073
- /* @__PURE__ */ m(Jn, {
3278
+ /* @__PURE__ */ m(Qn, {
3074
3279
  size: D,
3075
- children: [K.map((e) => /* @__PURE__ */ p(Yn, {
3076
- label: ee(e),
3280
+ children: [J.map((e) => /* @__PURE__ */ p($n, {
3281
+ label: re(e),
3077
3282
  value: e,
3078
- handleChangeValue: re,
3079
- disabled: R
3080
- }, e)), K.length <= 0 && /* @__PURE__ */ p("p", { children: i })]
3283
+ handleChangeValue: se,
3284
+ disabled: z
3285
+ }, e)), J.length <= 0 && /* @__PURE__ */ p("p", { children: i })]
3081
3286
  }),
3082
- /* @__PURE__ */ m(Zn, {
3083
- isFocused: H,
3287
+ /* @__PURE__ */ m(tr, {
3288
+ id: L,
3289
+ isFocused: U,
3084
3290
  isSearchable: h,
3085
- search: B,
3086
- onSearch: ne,
3087
- children: [ie.map(({ label: e, value: t }) => /* @__PURE__ */ p(Xn, {
3291
+ search: V,
3292
+ onSearch: Y,
3293
+ children: [X.map(({ label: e, value: t }, n) => /* @__PURE__ */ p(er, {
3294
+ id: ie(t),
3088
3295
  label: e,
3089
3296
  value: t,
3090
3297
  size: D,
3091
- handleChangeValue: re,
3092
- optionHasSelected: q
3093
- }, t)), ie.length <= 0 && /* @__PURE__ */ p("p", { children: C })]
3298
+ isHighlighted: n === K,
3299
+ handleChangeValue: se,
3300
+ optionHasSelected: ne
3301
+ }, t)), X.length <= 0 && /* @__PURE__ */ p("p", { children: C })]
3094
3302
  }),
3095
- /* @__PURE__ */ p(Kn, {
3096
- disabled: R,
3097
- isFocused: H,
3303
+ /* @__PURE__ */ p(Xn, {
3304
+ disabled: z,
3305
+ isFocused: U,
3098
3306
  readOnly: f,
3099
- iconSize: z,
3307
+ iconSize: B,
3100
3308
  isLoading: d
3101
3309
  }),
3102
- /* @__PURE__ */ p($n, {
3103
- iconSize: z,
3310
+ /* @__PURE__ */ p(rr, {
3311
+ iconSize: B,
3104
3312
  isLoading: d
3105
3313
  }),
3106
- /* @__PURE__ */ p(Qn, {
3107
- handleBlur: J,
3108
- isFocused: H
3314
+ /* @__PURE__ */ p(nr, {
3315
+ handleBlur: oe,
3316
+ isFocused: U
3109
3317
  })
3110
3318
  ]
3111
3319
  })
@@ -3113,7 +3321,7 @@ function er(e) {
3113
3321
  }
3114
3322
  //#endregion
3115
3323
  //#region src/components/pagination/chevronButton/index.tsx
3116
- function tr(e) {
3324
+ function ar(e) {
3117
3325
  let { orientation: t, handlePageChange: n, disabled: r } = e;
3118
3326
  return /* @__PURE__ */ p("button", {
3119
3327
  type: "button",
@@ -3128,7 +3336,7 @@ function tr(e) {
3128
3336
  }
3129
3337
  //#endregion
3130
3338
  //#region src/components/pagination/currentButton/index.tsx
3131
- function nr({ currentPage: e }) {
3339
+ function or({ currentPage: e }) {
3132
3340
  return /* @__PURE__ */ p("button", {
3133
3341
  type: "button",
3134
3342
  className: "arkynPaginationCurrentButton",
@@ -3138,7 +3346,7 @@ function nr({ currentPage: e }) {
3138
3346
  }
3139
3347
  //#endregion
3140
3348
  //#region src/components/pagination/pageButton/index.tsx
3141
- function rr(e) {
3349
+ function sr(e) {
3142
3350
  let { page: t, handlePageChange: n } = e;
3143
3351
  return /* @__PURE__ */ p("button", {
3144
3352
  type: "button",
@@ -3149,7 +3357,7 @@ function rr(e) {
3149
3357
  }
3150
3358
  //#endregion
3151
3359
  //#region src/components/pagination/paginationService.ts
3152
- var ir = class {
3360
+ var cr = class {
3153
3361
  currentPage;
3154
3362
  totalCountRegisters;
3155
3363
  registerPerPage;
@@ -3182,7 +3390,7 @@ var ir = class {
3182
3390
  };
3183
3391
  //#endregion
3184
3392
  //#region src/components/pagination/spread/index.tsx
3185
- function ar() {
3393
+ function lr() {
3186
3394
  return /* @__PURE__ */ p("p", {
3187
3395
  className: "arkynPaginationSpread",
3188
3396
  children: /* @__PURE__ */ p(D, {})
@@ -3190,8 +3398,8 @@ function ar() {
3190
3398
  }
3191
3399
  //#endregion
3192
3400
  //#region src/components/pagination/index.tsx
3193
- function or(e) {
3194
- 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 ir({
3401
+ function ur(e) {
3402
+ 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 cr({
3195
3403
  totalCountRegisters: t,
3196
3404
  currentPage: r,
3197
3405
  registerPerPage: i,
@@ -3202,29 +3410,29 @@ function or(e) {
3202
3410
  className: "arkynPagination",
3203
3411
  ...o,
3204
3412
  children: [
3205
- /* @__PURE__ */ p(tr, {
3413
+ /* @__PURE__ */ p(ar, {
3206
3414
  orientation: "left",
3207
3415
  handlePageChange: g,
3208
3416
  disabled: s <= 1
3209
3417
  }),
3210
- s > 1 + c && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(rr, {
3418
+ s > 1 + c && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(sr, {
3211
3419
  page: 1,
3212
3420
  handlePageChange: () => h(1)
3213
- }), s > 2 + c && /* @__PURE__ */ p(ar, {})] }),
3214
- l.map((e) => /* @__PURE__ */ p(rr, {
3421
+ }), s > 2 + c && /* @__PURE__ */ p(lr, {})] }),
3422
+ l.map((e) => /* @__PURE__ */ p(sr, {
3215
3423
  page: e,
3216
3424
  handlePageChange: g
3217
3425
  }, e)),
3218
- /* @__PURE__ */ p(nr, { currentPage: s }),
3219
- u.map((e) => /* @__PURE__ */ p(rr, {
3426
+ /* @__PURE__ */ p(or, { currentPage: s }),
3427
+ u.map((e) => /* @__PURE__ */ p(sr, {
3220
3428
  page: e,
3221
3429
  handlePageChange: _
3222
3430
  }, e)),
3223
- s + c < d && /* @__PURE__ */ m(f, { children: [s + 1 + c < d && /* @__PURE__ */ p(ar, {}), /* @__PURE__ */ p(rr, {
3431
+ s + c < d && /* @__PURE__ */ m(f, { children: [s + 1 + c < d && /* @__PURE__ */ p(lr, {}), /* @__PURE__ */ p(sr, {
3224
3432
  page: d,
3225
3433
  handlePageChange: () => h(d)
3226
3434
  })] }),
3227
- /* @__PURE__ */ p(tr, {
3435
+ /* @__PURE__ */ p(ar, {
3228
3436
  orientation: "right",
3229
3437
  handlePageChange: _,
3230
3438
  disabled: s >= d
@@ -3234,14 +3442,14 @@ function or(e) {
3234
3442
  }
3235
3443
  //#endregion
3236
3444
  //#region src/utils/phoneInputUtilities.ts
3237
- function sr(e) {
3445
+ function dr(e) {
3238
3446
  return e?.replace(/[^0-9]/g, "");
3239
3447
  }
3240
- var cr = {
3448
+ var fr = {
3241
3449
  EIGHT: "(99) 9999-9999",
3242
3450
  NINE: "(99) 99999-9999"
3243
3451
  };
3244
- function lr(e, t, n = "9") {
3452
+ function pr(e, t, n = "9") {
3245
3453
  let r = "", i = 0;
3246
3454
  for (let a = 0; a < t.length; a++) if (t[a] === n) if (i < e.length) r += e[i], i++;
3247
3455
  else break;
@@ -3249,13 +3457,13 @@ function lr(e, t, n = "9") {
3249
3457
  else break;
3250
3458
  return r;
3251
3459
  }
3252
- function ur(e) {
3460
+ function mr(e) {
3253
3461
  return e.length > 10 ? "NINE" : "EIGHT";
3254
3462
  }
3255
- var dr = sr(cr.NINE).length;
3463
+ var hr = dr(fr.NINE).length;
3256
3464
  //#endregion
3257
3465
  //#region src/components/phoneInput/phoneInputContainer/index.tsx
3258
- function fr(e) {
3466
+ function gr(e) {
3259
3467
  let { children: t, onFocus: n, disabled: r, isError: i, isLoading: a, isFocused: o, className: s = "", readOnly: c, variant: l, size: u } = e;
3260
3468
  return /* @__PURE__ */ p("section", {
3261
3469
  className: `arkynPhoneInputContainer ${l} ${u} ${r || c || a ? "opacity" : ""} ${i ? "errored" : ""} ${o ? "focused" : ""} ${s}`.trim(),
@@ -3265,7 +3473,7 @@ function fr(e) {
3265
3473
  }
3266
3474
  //#endregion
3267
3475
  //#region src/components/phoneInput/phoneInputCountriesOverlay/index.tsx
3268
- function pr(e) {
3476
+ function _r(e) {
3269
3477
  let { isOpen: t, onClick: n } = e;
3270
3478
  return t ? /* @__PURE__ */ p("aside", {
3271
3479
  className: "arkynPhoneInputCountriesOverlay",
@@ -3274,7 +3482,7 @@ function pr(e) {
3274
3482
  }
3275
3483
  //#endregion
3276
3484
  //#region src/components/phoneInput/phoneInputCountryOption/index.tsx
3277
- function mr(e) {
3485
+ function vr(e) {
3278
3486
  let { country: t, isActive: n, handleChangeValue: r, size: i } = e;
3279
3487
  return /* @__PURE__ */ m("div", {
3280
3488
  onClick: () => r(t),
@@ -3294,7 +3502,7 @@ function mr(e) {
3294
3502
  }
3295
3503
  //#endregion
3296
3504
  //#region src/components/phoneInput/phoneInputCountryOptionsContainer/index.tsx
3297
- function hr(e) {
3505
+ function yr(e) {
3298
3506
  let { children: t, isOpen: n, onSearch: r, search: i, placeholder: a } = e, s = l(null), [c, d] = u("bottom");
3299
3507
  function f(e) {
3300
3508
  r(e.target.value);
@@ -3323,7 +3531,7 @@ function hr(e) {
3323
3531
  }
3324
3532
  //#endregion
3325
3533
  //#region src/components/phoneInput/phoneInputCountrySelector/index.tsx
3326
- function gr(e) {
3534
+ function br(e) {
3327
3535
  let { currentCountry: t, onClick: n } = e;
3328
3536
  return /* @__PURE__ */ m("div", {
3329
3537
  className: "phoneInputSelectCountry",
@@ -3344,10 +3552,10 @@ function gr(e) {
3344
3552
  }
3345
3553
  //#endregion
3346
3554
  //#region src/components/phoneInput/phoneInputMask/index.tsx
3347
- var _r = r((e, t) => /* @__PURE__ */ p("input", {
3555
+ var xr = r((e, t) => /* @__PURE__ */ p("input", {
3348
3556
  ref: t,
3349
3557
  ...e
3350
- })), vr = r((e, t) => {
3558
+ })), Sr = r((e, t) => {
3351
3559
  let { onFocus: n, readonly: r, onBlur: i, size: a, onChange: s, value: c, currentCountry: u, disabled: d, id: f } = e, m = l(!0), h = l(s);
3352
3560
  h.current = s;
3353
3561
  let g = typeof u.mask == "string" ? u.mask : u.mask[0];
@@ -3360,8 +3568,8 @@ var _r = r((e, t) => /* @__PURE__ */ p("input", {
3360
3568
  }, [g]);
3361
3569
  let _ = `phoneInputMask ${a}`;
3362
3570
  function v(e) {
3363
- let t = sr(e.target.value), n = ur(t);
3364
- t.length > dr || (t = lr(t, cr[n]), e.target.value = t, s(t));
3571
+ let t = dr(e.target.value), n = mr(t);
3572
+ t.length > hr || (t = pr(t, fr[n]), e.target.value = t, s(t));
3365
3573
  }
3366
3574
  return u.code === "+55" ? /* @__PURE__ */ p("input", {
3367
3575
  id: f,
@@ -3379,7 +3587,7 @@ var _r = r((e, t) => /* @__PURE__ */ p("input", {
3379
3587
  readOnly: r,
3380
3588
  onChange: (e) => s(e.target.value),
3381
3589
  className: _,
3382
- component: _r,
3590
+ component: xr,
3383
3591
  onFocus: n,
3384
3592
  onBlur: i,
3385
3593
  disabled: d,
@@ -3391,19 +3599,19 @@ var _r = r((e, t) => /* @__PURE__ */ p("input", {
3391
3599
  });
3392
3600
  //#endregion
3393
3601
  //#region src/components/phoneInput/index.tsx
3394
- function yr(e, t) {
3602
+ function Cr(e, t) {
3395
3603
  let n = ie(e), r = ie(t.code), i = e.trim().startsWith("+") && n.startsWith(r) ? n.slice(r.length) : n;
3396
- return t.code === "+55" ? lr(i, cr[ur(i)]) : lr(i, typeof t.mask == "string" ? t.mask : t.mask[0], "_");
3604
+ return t.code === "+55" ? pr(i, fr[mr(i)]) : pr(i, typeof t.mask == "string" ? t.mask : t.mask[0], "_");
3397
3605
  }
3398
- function br(e) {
3399
- let { value: t, label: n, className: r = "", disabled: i = !1, errorMessage: a, isLoading: o = !1, readOnly: c = !1, size: d = "md", defaultValue: f = "", variant: h = "solid", showAsterisk: g, name: _, onChange: v, searchCountryPlaceholder: y = "Pesquisar país", notFoundCountryText: b = "Nenhum país encontrado", id: x, unShowFieldTemplate: S = !1, orientation: C = "vertical" } = e, w = se.find((e) => e.iso === "BR"), T = f ? re(f) : "", E = f ? te(f)[1] : w, [D, O] = u(!1), [k, A] = u(""), [j, M] = u(!1), [N, P] = u(T), [F, I] = u(E), L = t === void 0 ? N : yr(t, F), { fieldErrors: R } = Z(), z = l(null), B = s(), V = x || B, H = a || R?.[_], U = !!H, W = i || o, G = l(null);
3400
- function K() {
3401
- W || D || j || (O(!0), G.current && G.current.focus());
3606
+ function wr(e) {
3607
+ let { value: t, label: n, className: r = "", disabled: i = !1, errorMessage: a, isLoading: o = !1, readOnly: c = !1, size: d = "md", defaultValue: f = "", variant: h = "solid", showAsterisk: g, name: _, onChange: v, searchCountryPlaceholder: y = "Pesquisar país", notFoundCountryText: b = "Nenhum país encontrado", id: x, unShowFieldTemplate: S = !1, orientation: C = "vertical" } = e, w = se.find((e) => e.iso === "BR"), T = f ? re(f) : "", E = f ? q(f)[1] : w, [D, O] = u(!1), [k, A] = u(""), [j, M] = u(!1), [N, P] = u(T), [F, I] = u(E), L = t === void 0 ? N : Cr(t, F), { fieldErrors: R } = Q(), ee = l(null), z = s(), B = x || z, V = a || R?.[_], H = !!V, U = i || o, W = l(null);
3608
+ function G() {
3609
+ U || D || j || (O(!0), W.current && W.current.focus());
3402
3610
  }
3403
- function q() {
3611
+ function te() {
3404
3612
  M(!0), O(!0);
3405
3613
  }
3406
- function ee() {
3614
+ function K() {
3407
3615
  M(!1), O(!1);
3408
3616
  }
3409
3617
  function J() {
@@ -3424,30 +3632,30 @@ function br(e) {
3424
3632
  label: n,
3425
3633
  showAsterisk: g,
3426
3634
  className: r,
3427
- errorMessage: H,
3635
+ errorMessage: V,
3428
3636
  unShowFieldTemplate: S,
3429
3637
  orientation: C,
3430
- children: /* @__PURE__ */ m(fr, {
3431
- disabled: W,
3432
- isError: U,
3638
+ children: /* @__PURE__ */ m(gr, {
3639
+ disabled: U,
3640
+ isError: H,
3433
3641
  isLoading: o,
3434
3642
  isFocused: D,
3435
3643
  readOnly: c,
3436
3644
  size: d,
3437
3645
  variant: h,
3438
- onFocus: K,
3646
+ onFocus: G,
3439
3647
  children: [
3440
- /* @__PURE__ */ p(gr, {
3648
+ /* @__PURE__ */ p(br, {
3441
3649
  currentCountry: F,
3442
- onClick: q,
3650
+ onClick: te,
3443
3651
  size: d
3444
3652
  }),
3445
- /* @__PURE__ */ m(hr, {
3446
- isOpen: W || c ? !1 : j,
3653
+ /* @__PURE__ */ m(yr, {
3654
+ isOpen: U || c ? !1 : j,
3447
3655
  search: k,
3448
3656
  placeholder: y,
3449
3657
  onSearch: A,
3450
- children: [se.filter((e) => ae(e)).map((e) => /* @__PURE__ */ p(mr, {
3658
+ children: [se.filter((e) => ae(e)).map((e) => /* @__PURE__ */ p(vr, {
3451
3659
  country: e,
3452
3660
  handleChangeValue: () => {
3453
3661
  I(e), M(!1), P("");
@@ -3456,17 +3664,17 @@ function br(e) {
3456
3664
  size: d
3457
3665
  }, e.iso)), se.filter((e) => ae(e)).length === 0 && /* @__PURE__ */ p("p", { children: b })]
3458
3666
  }),
3459
- /* @__PURE__ */ p(pr, {
3460
- isOpen: W || c ? !1 : j,
3461
- onClick: ee
3667
+ /* @__PURE__ */ p(_r, {
3668
+ isOpen: U || c ? !1 : j,
3669
+ onClick: K
3462
3670
  }),
3463
- /* @__PURE__ */ p(vr, {
3464
- id: V,
3465
- ref: G,
3671
+ /* @__PURE__ */ p(Sr, {
3672
+ id: B,
3673
+ ref: W,
3466
3674
  readonly: c,
3467
3675
  currentCountry: F,
3468
3676
  value: L,
3469
- disabled: W,
3677
+ disabled: U,
3470
3678
  onBlur: ne,
3471
3679
  onFocus: J,
3472
3680
  size: d,
@@ -3475,7 +3683,7 @@ function br(e) {
3475
3683
  }
3476
3684
  }),
3477
3685
  /* @__PURE__ */ p("input", {
3478
- ref: z,
3686
+ ref: ee,
3479
3687
  type: "hidden",
3480
3688
  name: _,
3481
3689
  value: oe()
@@ -3486,17 +3694,21 @@ function br(e) {
3486
3694
  }
3487
3695
  //#endregion
3488
3696
  //#region src/components/popover/index.tsx
3489
- function xr(e) {
3490
- let { children: t, button: n, closeOnClick: r, className: i = "", orientation: a = "bottomLeft" } = e, [o, s] = u(!1), c = `arkynPopover ${a} ${o ? "visibleTrue" : "visibleFalse"} ${i}`;
3491
- function l() {
3697
+ function Tr(e) {
3698
+ let { children: t, button: n, closeOnClick: r, className: i = "", orientation: a = "bottomLeft" } = e, [o, s] = u(!1), c = l(null), d = `arkynPopover ${a} ${o ? "visibleTrue" : "visibleFalse"} ${i}`;
3699
+ function f() {
3492
3700
  o || s(!0);
3493
3701
  }
3494
- return at(o), /* @__PURE__ */ m("div", {
3495
- className: c,
3496
- onClick: l,
3702
+ return at(o), Rt(o, () => s(!1)), Vt(o, c), /* @__PURE__ */ m("div", {
3703
+ className: d,
3704
+ onClick: f,
3497
3705
  children: [
3498
3706
  n,
3499
3707
  /* @__PURE__ */ p("div", {
3708
+ ref: c,
3709
+ role: "dialog",
3710
+ "aria-modal": "true",
3711
+ tabIndex: -1,
3500
3712
  style: { visibility: o ? "visible" : "hidden" },
3501
3713
  onClick: () => r && s(!1),
3502
3714
  className: "arkynPopoverContent",
@@ -3511,10 +3723,10 @@ function xr(e) {
3511
3723
  }
3512
3724
  //#endregion
3513
3725
  //#region src/components/radio/radioContext.tsx
3514
- var Sr = n({});
3515
- function Cr(e) {
3726
+ var Er = n({});
3727
+ function Dr(e) {
3516
3728
  let { children: t, size: n, isError: r, handleChange: i, value: a, disabled: o } = e;
3517
- return /* @__PURE__ */ p(Sr.Provider, {
3729
+ return /* @__PURE__ */ p(Er.Provider, {
3518
3730
  value: {
3519
3731
  handleChange: i,
3520
3732
  value: a,
@@ -3525,13 +3737,13 @@ function Cr(e) {
3525
3737
  children: t
3526
3738
  });
3527
3739
  }
3528
- function wr() {
3529
- return a(Sr);
3740
+ function Or() {
3741
+ return a(Er);
3530
3742
  }
3531
3743
  //#endregion
3532
3744
  //#region src/components/radio/radioBox/index.tsx
3533
- function Tr(e) {
3534
- 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 } = wr(), g = d === t, _ = n || u, v = r || h, y = `arkynRadioBox ${_} ${g ? "checkedTrue" : "checkedFalse"} ${f ? "errorTrue" : "errorFalse"} ${v ? "disabledTrue" : "disabledFalse"} ${a}`;
3745
+ function kr(e) {
3746
+ 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 } = Or(), g = d === t, _ = n || u, v = r || h, y = `arkynRadioBox ${_} ${g ? "checkedTrue" : "checkedFalse"} ${f ? "errorTrue" : "errorFalse"} ${v ? "disabledTrue" : "disabledFalse"} ${a}`;
3535
3747
  function b(e) {
3536
3748
  o?.(e), l(t);
3537
3749
  }
@@ -3551,8 +3763,8 @@ function Tr(e) {
3551
3763
  }
3552
3764
  //#endregion
3553
3765
  //#region src/components/radio/radioGroup/index.tsx
3554
- function Er(e) {
3555
- 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 = "vertical", ...g } = e, [_, v] = u(t), { fieldErrors: y } = Z();
3766
+ function Ar(e) {
3767
+ 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 = "vertical", ...g } = e, [_, v] = u(t), { fieldErrors: y } = Q();
3556
3768
  function b(e) {
3557
3769
  v(e), s && s(e);
3558
3770
  }
@@ -3565,7 +3777,7 @@ function Er(e) {
3565
3777
  errorMessage: x,
3566
3778
  unShowFieldTemplate: f,
3567
3779
  orientation: h,
3568
- children: /* @__PURE__ */ m(Cr, {
3780
+ children: /* @__PURE__ */ m(Dr, {
3569
3781
  isError: S,
3570
3782
  size: c,
3571
3783
  value: o || _,
@@ -3586,39 +3798,39 @@ function Er(e) {
3586
3798
  }
3587
3799
  //#endregion
3588
3800
  //#region src/services/clearLinkMarkAtBoundary.ts
3589
- function Dr(e) {
3801
+ function jr(e) {
3590
3802
  let { selection: t } = e;
3591
- if (!t || !de.isCollapsed(t)) return;
3592
- let [n, r] = X.leaf(e, t.anchor);
3593
- n.link && X.isEnd(e, t.anchor, r) && (X.removeMark(e, "link"), X.removeMark(e, "href"));
3803
+ if (!t || !ue.isCollapsed(t)) return;
3804
+ let [n, r] = Z.leaf(e, t.anchor);
3805
+ n.link && Z.isEnd(e, t.anchor, r) && (Z.removeMark(e, "link"), Z.removeMark(e, "href"));
3594
3806
  }
3595
3807
  //#endregion
3596
3808
  //#region src/services/extractTextFromNode.ts
3597
- function Or(e) {
3598
- return e.map((e) => ue.string(e)).join("");
3809
+ function Mr(e) {
3810
+ return e.map((e) => le.string(e)).join("");
3599
3811
  }
3600
3812
  //#endregion
3601
3813
  //#region src/services/isMarkActive.ts
3602
- function kr(e, t) {
3603
- let n = X.marks(e);
3814
+ function Nr(e, t) {
3815
+ let n = Z.marks(e);
3604
3816
  return n ? n[t] === !0 : !1;
3605
3817
  }
3606
3818
  //#endregion
3607
3819
  //#region src/services/toggleMark.ts
3608
- function Ar(e, t) {
3609
- kr(e, t) ? X.removeMark(e, t) : X.addMark(e, t, !0);
3820
+ function Pr(e, t) {
3821
+ Nr(e, t) ? Z.removeMark(e, t) : Z.addMark(e, t, !0);
3610
3822
  }
3611
3823
  //#endregion
3612
3824
  //#region src/templates/richTextTemplates.ts
3613
- var jr = {
3825
+ var Fr = {
3614
3826
  "mod+b": "bold",
3615
3827
  "mod+i": "italic",
3616
3828
  "mod+u": "underline",
3617
3829
  "mod+`": "code"
3618
- }, Mr = [{
3830
+ }, Ir = [{
3619
3831
  type: "paragraph",
3620
3832
  children: [{ text: "" }]
3621
- }], Nr = ["listItem", "numberedList"], Pr = [
3833
+ }], Lr = ["listItem", "numberedList"], Rr = [
3622
3834
  "left",
3623
3835
  "center",
3624
3836
  "right",
@@ -3626,38 +3838,38 @@ var jr = {
3626
3838
  ];
3627
3839
  //#endregion
3628
3840
  //#region src/services/isBlockActive.ts
3629
- function Fr(e, t, n = "type") {
3841
+ function zr(e, t, n = "type") {
3630
3842
  let { selection: r } = e;
3631
3843
  if (!r) return !1;
3632
- let [i] = Array.from(X.nodes(e, {
3633
- at: X.unhangRange(e, r),
3634
- match: (e) => !X.isEditor(e) && le.isElement(e) && e[n] === t
3844
+ let [i] = Array.from(Z.nodes(e, {
3845
+ at: Z.unhangRange(e, r),
3846
+ match: (e) => !Z.isEditor(e) && ce.isElement(e) && e[n] === t
3635
3847
  }));
3636
3848
  return !!i;
3637
3849
  }
3638
3850
  //#endregion
3639
3851
  //#region src/services/toggleBlock.ts
3640
- function Ir(e, t) {
3641
- let n = Fr(e, t, Pr.includes(t) ? "align" : "type"), r = Nr.includes(t);
3642
- pe.unwrapNodes(e, {
3643
- match: (e) => !X.isEditor(e) && le.isElement(e) && Nr.includes(e.type) && !Pr.includes(t),
3852
+ function Br(e, t) {
3853
+ let n = zr(e, t, Rr.includes(t) ? "align" : "type"), r = Lr.includes(t);
3854
+ fe.unwrapNodes(e, {
3855
+ match: (e) => !Z.isEditor(e) && ce.isElement(e) && Lr.includes(e.type) && !Rr.includes(t),
3644
3856
  split: !0
3645
3857
  });
3646
3858
  let i;
3647
- if (i = Pr.includes(t) ? { align: n ? void 0 : t } : { type: n ? "paragraph" : r ? "listItem" : t }, pe.setNodes(e, i), !n && r) {
3859
+ if (i = Rr.includes(t) ? { align: n ? void 0 : t } : { type: n ? "paragraph" : r ? "listItem" : t }, fe.setNodes(e, i), !n && r) {
3648
3860
  let n = {
3649
3861
  type: t,
3650
3862
  children: []
3651
3863
  };
3652
- pe.wrapNodes(e, n);
3864
+ fe.wrapNodes(e, n);
3653
3865
  }
3654
3866
  }
3655
3867
  //#endregion
3656
3868
  //#region src/components/richText/blockButton/index.tsx
3657
- function Lr({ format: e, icon: t }) {
3658
- let n = ve(), r = Fr(n, e, Pr.includes(e) ? "align" : "type") ? "activeTrue" : "activeFalse";
3869
+ function Vr({ format: e, icon: t }) {
3870
+ let n = _e(), r = zr(n, e, Rr.includes(e) ? "align" : "type") ? "activeTrue" : "activeFalse";
3659
3871
  function i(t) {
3660
- t.preventDefault(), Ir(n, e);
3872
+ t.preventDefault(), Br(n, e);
3661
3873
  }
3662
3874
  return /* @__PURE__ */ p("button", {
3663
3875
  type: "button",
@@ -3668,7 +3880,7 @@ function Lr({ format: e, icon: t }) {
3668
3880
  }
3669
3881
  //#endregion
3670
3882
  //#region src/components/richText/element/index.tsx
3671
- function Rr({ attributes: e, children: t, element: n }) {
3883
+ function Hr({ attributes: e, children: t, element: n }) {
3672
3884
  let r = { textAlign: n.align };
3673
3885
  switch (n.type) {
3674
3886
  case "blockQuote": return /* @__PURE__ */ p("blockquote", {
@@ -3738,11 +3950,11 @@ function Rr({ attributes: e, children: t, element: n }) {
3738
3950
  }
3739
3951
  //#endregion
3740
3952
  //#region src/components/tab/tabContext.tsx
3741
- var zr = n({});
3742
- function Br() {
3743
- return a(zr);
3953
+ var Ur = n({});
3954
+ function Wr() {
3955
+ return a(Ur);
3744
3956
  }
3745
- function Vr(e) {
3957
+ function Gr(e) {
3746
3958
  let { disabled: t, currentTab: n, changeCurrentTab: r } = e, i = c(() => ({
3747
3959
  disabled: t,
3748
3960
  currentTab: n,
@@ -3752,15 +3964,15 @@ function Vr(e) {
3752
3964
  n,
3753
3965
  r
3754
3966
  ]);
3755
- return /* @__PURE__ */ p(zr.Provider, {
3967
+ return /* @__PURE__ */ p(Ur.Provider, {
3756
3968
  value: i,
3757
3969
  children: e.children
3758
3970
  });
3759
3971
  }
3760
3972
  //#endregion
3761
3973
  //#region src/components/tab/tabButton/index.tsx
3762
- function Hr(e) {
3763
- let { children: t, disabled: n = !1, className: r = "", onClick: i, value: a, ...o } = e, { disabled: s, currentTab: c, changeCurrentTab: l } = Br(), u = s || n, d = `arkynTabButton ${u ? "isDisabled" : ""} ${c === a && a ? "isActive" : ""} ${r}`;
3974
+ function Kr(e) {
3975
+ let { children: t, disabled: n = !1, className: r = "", onClick: i, value: a, ...o } = e, { disabled: s, currentTab: c, changeCurrentTab: l } = Wr(), u = s || n, d = `arkynTabButton ${u ? "isDisabled" : ""} ${c === a && a ? "isActive" : ""} ${r}`;
3764
3976
  function f(e) {
3765
3977
  l(a), i?.(e);
3766
3978
  }
@@ -3775,12 +3987,12 @@ function Hr(e) {
3775
3987
  }
3776
3988
  //#endregion
3777
3989
  //#region src/components/tab/tabContainer/index.tsx
3778
- function Ur(e) {
3990
+ function qr(e) {
3779
3991
  let { children: t, onChange: n, defaultValue: r, disabled: i = !1, className: a, ...o } = e, [s, c] = u(r || ""), l = `arkynTabContainer ${a || ""}`;
3780
3992
  function d(e) {
3781
3993
  c(e), n && n(e);
3782
3994
  }
3783
- return /* @__PURE__ */ p(Vr, {
3995
+ return /* @__PURE__ */ p(Gr, {
3784
3996
  disabled: i,
3785
3997
  currentTab: s,
3786
3998
  changeCurrentTab: d,
@@ -3793,8 +4005,8 @@ function Ur(e) {
3793
4005
  }
3794
4006
  //#endregion
3795
4007
  //#region src/components/richText/insertImage/index.tsx
3796
- function Wr(e) {
3797
- 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 = ve(), [l, d] = u(!1), [h, g] = u(""), [_, v] = u("url");
4008
+ function Jr(e) {
4009
+ 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 = _e(), [l, d] = u(!1), [h, g] = u(""), [_, v] = u("url");
3798
4010
  function y(e) {
3799
4011
  e.preventDefault(), !(!h || h === "") && (c.insertNodes([
3800
4012
  {
@@ -3817,21 +4029,21 @@ function Wr(e) {
3817
4029
  className: "arkynRichTextInsertImage",
3818
4030
  onMouseDown: () => d(!0),
3819
4031
  children: /* @__PURE__ */ p(P, {})
3820
- }), /* @__PURE__ */ m(Un, {
4032
+ }), /* @__PURE__ */ m(qn, {
3821
4033
  isVisible: l,
3822
4034
  makeInvisible: () => d(!1),
3823
4035
  children: [
3824
- /* @__PURE__ */ p(Gn, { children: s }),
4036
+ /* @__PURE__ */ p(Yn, { children: s }),
3825
4037
  /* @__PURE__ */ m("div", {
3826
4038
  className: "arkynRichTextInsertImageModalContent",
3827
4039
  children: [
3828
- /* @__PURE__ */ m(Ur, {
4040
+ /* @__PURE__ */ m(qr, {
3829
4041
  defaultValue: _,
3830
4042
  onChange: v,
3831
- children: [/* @__PURE__ */ p(Hr, {
4043
+ children: [/* @__PURE__ */ p(Kr, {
3832
4044
  value: "url",
3833
4045
  children: n[0]
3834
- }), /* @__PURE__ */ p(Hr, {
4046
+ }), /* @__PURE__ */ p(Kr, {
3835
4047
  value: "file",
3836
4048
  children: n[1]
3837
4049
  })]
@@ -3848,7 +4060,7 @@ function Wr(e) {
3848
4060
  src: h,
3849
4061
  alt: "preview"
3850
4062
  })] }),
3851
- _ === "file" && /* @__PURE__ */ p(Pn, {
4063
+ _ === "file" && /* @__PURE__ */ p(Rn, {
3852
4064
  name: "richTextImageURL",
3853
4065
  action: t,
3854
4066
  label: a,
@@ -3858,13 +4070,13 @@ function Wr(e) {
3858
4070
  })
3859
4071
  ]
3860
4072
  }),
3861
- /* @__PURE__ */ m(Wn, { children: [/* @__PURE__ */ p($, {
4073
+ /* @__PURE__ */ m(Jn, { children: [/* @__PURE__ */ p(Be, {
3862
4074
  type: "button",
3863
4075
  scheme: "danger",
3864
4076
  variant: "outline",
3865
4077
  onClick: () => d(!1),
3866
4078
  children: r
3867
- }), /* @__PURE__ */ p($, {
4079
+ }), /* @__PURE__ */ p(Be, {
3868
4080
  type: "button",
3869
4081
  onClick: y,
3870
4082
  children: i
@@ -3874,7 +4086,7 @@ function Wr(e) {
3874
4086
  }
3875
4087
  //#endregion
3876
4088
  //#region src/services/isValidHttpsUrl.ts
3877
- function Gr(e) {
4089
+ function Yr(e) {
3878
4090
  try {
3879
4091
  return new URL(e).protocol === "https:";
3880
4092
  } catch {
@@ -3883,17 +4095,17 @@ function Gr(e) {
3883
4095
  }
3884
4096
  //#endregion
3885
4097
  //#region src/components/richText/insertLink/index.tsx
3886
- function Kr(e) {
3887
- let { modalCancelButton: t = "Cancelar", modalConfirmButton: n = "Confirmar", modalInputUrlLabel: r = "URL do link:", modalTitle: i = "Inserir link", invalidUrlMessage: a = "URL inválida" } = e, s = ve(), [c, l] = u(!1), [d, h] = u(""), [g, _] = u(s.selection), v = Gr(d), y = d && !v ? a : "";
4098
+ function Xr(e) {
4099
+ let { modalCancelButton: t = "Cancelar", modalConfirmButton: n = "Confirmar", modalInputUrlLabel: r = "URL do link:", modalTitle: i = "Inserir link", invalidUrlMessage: a = "URL inválida" } = e, s = _e(), [c, l] = u(!1), [d, h] = u(""), [g, _] = u(s.selection), v = Yr(d), y = d && !v ? a : "";
3888
4100
  function b(e) {
3889
4101
  e.preventDefault(), _(s.selection), l(!0);
3890
4102
  }
3891
4103
  function x(e) {
3892
- e.preventDefault(), !(!v || !g) && (pe.select(s, g), de.isCollapsed(g) ? pe.insertNodes(s, {
4104
+ e.preventDefault(), !(!v || !g) && (fe.select(s, g), ue.isCollapsed(g) ? fe.insertNodes(s, {
3893
4105
  text: d,
3894
4106
  link: !0,
3895
4107
  href: d
3896
- }) : (X.addMark(s, "link", !0), X.addMark(s, "href", d)), l(!1));
4108
+ }) : (Z.addMark(s, "link", !0), Z.addMark(s, "href", d)), l(!1));
3897
4109
  }
3898
4110
  return o(() => {
3899
4111
  c || (h(""), _(null));
@@ -3902,11 +4114,11 @@ function Kr(e) {
3902
4114
  className: "arkynRichTextInsertLink",
3903
4115
  onMouseDown: b,
3904
4116
  children: /* @__PURE__ */ p(L, {})
3905
- }), /* @__PURE__ */ m(Un, {
4117
+ }), /* @__PURE__ */ m(qn, {
3906
4118
  isVisible: c,
3907
4119
  makeInvisible: () => l(!1),
3908
4120
  children: [
3909
- /* @__PURE__ */ p(Gn, { children: i }),
4121
+ /* @__PURE__ */ p(Yn, { children: i }),
3910
4122
  /* @__PURE__ */ p("div", {
3911
4123
  className: "arkynRichTextInsertLinkModalContent",
3912
4124
  children: /* @__PURE__ */ p(ot, {
@@ -3919,13 +4131,13 @@ function Kr(e) {
3919
4131
  errorMessage: y
3920
4132
  })
3921
4133
  }),
3922
- /* @__PURE__ */ m(Wn, { children: [/* @__PURE__ */ p($, {
4134
+ /* @__PURE__ */ m(Jn, { children: [/* @__PURE__ */ p(Be, {
3923
4135
  type: "button",
3924
4136
  scheme: "danger",
3925
4137
  variant: "outline",
3926
4138
  onClick: () => l(!1),
3927
4139
  children: t
3928
- }), /* @__PURE__ */ p($, {
4140
+ }), /* @__PURE__ */ p(Be, {
3929
4141
  disabled: !v,
3930
4142
  type: "button",
3931
4143
  onClick: x,
@@ -3936,8 +4148,8 @@ function Kr(e) {
3936
4148
  }
3937
4149
  //#endregion
3938
4150
  //#region src/components/richText/insertVideo/index.tsx
3939
- function qr(e) {
3940
- 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 = ve(), [c, l] = u(!1), [d, h] = u(""), [g, _] = u(""), [v, y] = u("");
4151
+ function Zr(e) {
4152
+ 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 = _e(), [c, l] = u(!1), [d, h] = u(""), [g, _] = u(""), [v, y] = u("");
3941
4153
  function b(e) {
3942
4154
  if (e.preventDefault(), !d || d === "") return;
3943
4155
  let t = `https://www.youtube.com/embed/${d}`;
@@ -3959,7 +4171,7 @@ function qr(e) {
3959
4171
  }
3960
4172
  return o(() => {
3961
4173
  if (!g || g === "") return;
3962
- if (h(""), y(""), !Gr(g)) {
4174
+ if (h(""), y(""), !Yr(g)) {
3963
4175
  y(a);
3964
4176
  return;
3965
4177
  }
@@ -3971,12 +4183,12 @@ function qr(e) {
3971
4183
  type: "button",
3972
4184
  className: "arkynRichTextInsertVideo",
3973
4185
  onMouseDown: () => l(!0),
3974
- children: /* @__PURE__ */ p(K, {})
3975
- }), /* @__PURE__ */ m(Un, {
4186
+ children: /* @__PURE__ */ p(G, {})
4187
+ }), /* @__PURE__ */ m(qn, {
3976
4188
  isVisible: c,
3977
4189
  makeInvisible: () => l(!1),
3978
4190
  children: [
3979
- /* @__PURE__ */ p(Gn, { children: i }),
4191
+ /* @__PURE__ */ p(Yn, { children: i }),
3980
4192
  /* @__PURE__ */ m("div", {
3981
4193
  className: "arkynRichTextInsertVideoModalContent",
3982
4194
  children: [/* @__PURE__ */ p(ot, {
@@ -3997,13 +4209,13 @@ function qr(e) {
3997
4209
  allowFullScreen: !0
3998
4210
  })]
3999
4211
  }),
4000
- /* @__PURE__ */ m(Wn, { children: [/* @__PURE__ */ p($, {
4212
+ /* @__PURE__ */ m(Jn, { children: [/* @__PURE__ */ p(Be, {
4001
4213
  type: "button",
4002
4214
  scheme: "danger",
4003
4215
  variant: "outline",
4004
4216
  onClick: () => l(!1),
4005
4217
  children: t
4006
- }), /* @__PURE__ */ p($, {
4218
+ }), /* @__PURE__ */ p(Be, {
4007
4219
  disabled: !d,
4008
4220
  type: "button",
4009
4221
  onClick: b,
@@ -4014,7 +4226,7 @@ function qr(e) {
4014
4226
  }
4015
4227
  //#endregion
4016
4228
  //#region src/components/richText/leaf/index.tsx
4017
- function Jr({ attributes: e, children: t, leaf: n }) {
4229
+ function Qr({ attributes: e, children: t, leaf: n }) {
4018
4230
  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 })), n.link && (t = /* @__PURE__ */ p("a", {
4019
4231
  className: "arkynLeafLink",
4020
4232
  href: n.href,
@@ -4026,10 +4238,10 @@ function Jr({ attributes: e, children: t, leaf: n }) {
4026
4238
  }
4027
4239
  //#endregion
4028
4240
  //#region src/components/richText/markButton/index.tsx
4029
- function Yr({ format: e, icon: t }) {
4030
- let n = ve(), r = kr(n, e) ? "activeTrue" : "activeFalse";
4241
+ function $r({ format: e, icon: t }) {
4242
+ let n = _e(), r = Nr(n, e) ? "activeTrue" : "activeFalse";
4031
4243
  function i(t) {
4032
- t.preventDefault(), Ar(n, e);
4244
+ t.preventDefault(), Pr(n, e);
4033
4245
  }
4034
4246
  return /* @__PURE__ */ p("button", {
4035
4247
  type: "button",
@@ -4040,7 +4252,7 @@ function Yr({ format: e, icon: t }) {
4040
4252
  }
4041
4253
  //#endregion
4042
4254
  //#region src/components/richText/toolbar/index.tsx
4043
- function Xr({ children: e }) {
4255
+ function ei({ children: e }) {
4044
4256
  return /* @__PURE__ */ p("div", {
4045
4257
  className: "arkynRichTextToolbar",
4046
4258
  children: e
@@ -4048,20 +4260,20 @@ function Xr({ children: e }) {
4048
4260
  }
4049
4261
  //#endregion
4050
4262
  //#region src/components/richText/index.tsx
4051
- function Zr(e) {
4052
- let { name: t, hiddenButtons: n, imageConfig: r, videoConfig: a, linkConfig: o, className: d = "", defaultValue: f = "[]", enforceCharacterLimit: h = !1, onChangeCharactersCount: x, baseErrorMessage: S, maxLimit: C = 1e4, onChange: w, isError: T, label: D, showAsterisk: O, id: k, orientation: A = "vertical", unShowFieldTemplate: j = !1 } = e, P = c(() => he(ye(me())), []), { fieldErrors: F } = Z(), L = c(() => {
4263
+ function ti(e) {
4264
+ let { name: t, hiddenButtons: n, imageConfig: r, videoConfig: a, linkConfig: o, className: d = "", defaultValue: f = "[]", enforceCharacterLimit: h = !1, onChangeCharactersCount: x, baseErrorMessage: S, maxLimit: C = 1e4, onChange: w, isError: T, label: D, showAsterisk: O, id: k, orientation: A = "vertical", unShowFieldTemplate: j = !1 } = e, P = c(() => me(ve(pe())), []), { fieldErrors: F } = Q(), L = c(() => {
4053
4265
  try {
4054
4266
  let e = JSON.parse(f);
4055
- return !Array.isArray(e) || e.length === 0 ? structuredClone(Mr) : e.every((e) => typeof e == "object" && !!e && "type" in e && "children" in e) ? e : structuredClone(Mr);
4267
+ return !Array.isArray(e) || e.length === 0 ? structuredClone(Ir) : e.every((e) => typeof e == "object" && !!e && "type" in e && "children" in e) ? e : structuredClone(Ir);
4056
4268
  } catch {
4057
- return structuredClone(Mr);
4269
+ return structuredClone(Ir);
4058
4270
  }
4059
- }, [f]), [R, z] = u(Or(L).length), [B, V] = u(JSON.stringify(L) || "[]"), [U, W] = u(!1), K = l(null), q = s(), ee = k || q, te = S || F?.[t], J = T || !!te, ne = i(Jr, []), re = i(Rr, []);
4271
+ }, [f]), [R, ee] = u(Mr(L).length), [z, B] = u(JSON.stringify(L) || "[]"), [H, U] = u(!1), G = l(null), te = s(), K = k || te, q = S || F?.[t], J = T || !!q, ne = i(Qr, []), re = i(Hr, []);
4060
4272
  function ie(e) {
4061
- let t = Or(e);
4062
- z(t.length), x?.(t.length), !(h && t.length >= C) && (V(JSON.stringify(e)), w?.(e));
4273
+ let t = Mr(e);
4274
+ ee(t.length), x?.(t.length), !(h && t.length >= C) && (B(JSON.stringify(e)), w?.(e));
4063
4275
  }
4064
- let ae = `arkynRichText ${J || C < R ? "errorTrue" : "errorFalse"} ${U ? "focusTrue" : "focusFalse"}`, oe = C - R;
4276
+ let ae = `arkynRichText ${J || C < R ? "errorTrue" : "errorFalse"} ${H ? "focusTrue" : "focusFalse"}`, oe = C - R;
4065
4277
  function Y(e) {
4066
4278
  return !n?.includes(e);
4067
4279
  }
@@ -4070,10 +4282,10 @@ function Zr(e) {
4070
4282
  label: D,
4071
4283
  showAsterisk: O,
4072
4284
  className: d,
4073
- errorMessage: te,
4285
+ errorMessage: q,
4074
4286
  unShowFieldTemplate: j,
4075
4287
  orientation: A,
4076
- children: /* @__PURE__ */ m(_e, {
4288
+ children: /* @__PURE__ */ m(ge, {
4077
4289
  editor: P,
4078
4290
  initialValue: L,
4079
4291
  onChange: ie,
@@ -4082,70 +4294,70 @@ function Zr(e) {
4082
4294
  /* @__PURE__ */ m("div", {
4083
4295
  className: ae,
4084
4296
  children: [
4085
- /* @__PURE__ */ m(Xr, { children: [
4086
- Y("headingOne") && /* @__PURE__ */ p(Lr, {
4297
+ /* @__PURE__ */ m(ei, { children: [
4298
+ Y("headingOne") && /* @__PURE__ */ p(Vr, {
4087
4299
  format: "headingOne",
4088
4300
  icon: M
4089
4301
  }),
4090
- Y("headingTwo") && /* @__PURE__ */ p(Lr, {
4302
+ Y("headingTwo") && /* @__PURE__ */ p(Vr, {
4091
4303
  format: "headingTwo",
4092
4304
  icon: N
4093
4305
  }),
4094
- Y("blockQuote") && /* @__PURE__ */ p(Lr, {
4306
+ Y("blockQuote") && /* @__PURE__ */ p(Vr, {
4095
4307
  format: "blockQuote",
4096
- icon: H
4308
+ icon: V
4097
4309
  }),
4098
- Y("bold") && /* @__PURE__ */ p(Yr, {
4310
+ Y("bold") && /* @__PURE__ */ p($r, {
4099
4311
  format: "bold",
4100
4312
  icon: b
4101
4313
  }),
4102
- Y("italic") && /* @__PURE__ */ p(Yr, {
4314
+ Y("italic") && /* @__PURE__ */ p($r, {
4103
4315
  format: "italic",
4104
4316
  icon: I
4105
4317
  }),
4106
- Y("underline") && /* @__PURE__ */ p(Yr, {
4318
+ Y("underline") && /* @__PURE__ */ p($r, {
4107
4319
  format: "underline",
4108
- icon: G
4320
+ icon: W
4109
4321
  }),
4110
- Y("code") && /* @__PURE__ */ p(Yr, {
4322
+ Y("code") && /* @__PURE__ */ p($r, {
4111
4323
  format: "code",
4112
4324
  icon: E
4113
4325
  }),
4114
- Y("left") && /* @__PURE__ */ p(Lr, {
4326
+ Y("left") && /* @__PURE__ */ p(Vr, {
4115
4327
  format: "left",
4116
4328
  icon: v
4117
4329
  }),
4118
- Y("right") && /* @__PURE__ */ p(Lr, {
4330
+ Y("right") && /* @__PURE__ */ p(Vr, {
4119
4331
  format: "right",
4120
4332
  icon: y
4121
4333
  }),
4122
- Y("center") && /* @__PURE__ */ p(Lr, {
4334
+ Y("center") && /* @__PURE__ */ p(Vr, {
4123
4335
  format: "center",
4124
4336
  icon: g
4125
4337
  }),
4126
- Y("justify") && /* @__PURE__ */ p(Lr, {
4338
+ Y("justify") && /* @__PURE__ */ p(Vr, {
4127
4339
  format: "justify",
4128
4340
  icon: _
4129
4341
  }),
4130
- r && Y("image") && /* @__PURE__ */ p(Wr, { ...r }),
4131
- Y("video") && /* @__PURE__ */ p(qr, { ...a }),
4132
- Y("link") && /* @__PURE__ */ p(Kr, { ...o })
4342
+ r && Y("image") && /* @__PURE__ */ p(Jr, { ...r }),
4343
+ Y("video") && /* @__PURE__ */ p(Zr, { ...a }),
4344
+ Y("link") && /* @__PURE__ */ p(Xr, { ...o })
4133
4345
  ] }),
4134
- /* @__PURE__ */ p(ge, {
4346
+ /* @__PURE__ */ p(he, {
4135
4347
  className: "editorContainer",
4136
4348
  renderElement: re,
4137
4349
  renderLeaf: ne,
4138
4350
  spellCheck: !0,
4139
- ref: K,
4140
- id: ee,
4141
- onFocus: () => W(!0),
4142
- onBlur: () => W(!1),
4351
+ ref: G,
4352
+ id: K,
4353
+ onFocus: () => U(!0),
4354
+ onBlur: () => U(!1),
4143
4355
  onKeyDown: (e) => {
4144
- (e.key === " " || e.key === "Enter") && Dr(P);
4145
- for (let t in jr) if (ce(t, e)) {
4356
+ (e.key === " " || e.key === "Enter") && jr(P);
4357
+ for (let t in Fr) if (X(t, e)) {
4146
4358
  e.preventDefault();
4147
- let n = jr[t];
4148
- Ar(P, n);
4359
+ let n = Fr[t];
4360
+ Pr(P, n);
4149
4361
  }
4150
4362
  }
4151
4363
  }),
@@ -4158,7 +4370,7 @@ function Zr(e) {
4158
4370
  /* @__PURE__ */ p("input", {
4159
4371
  type: "hidden",
4160
4372
  name: t,
4161
- value: B.slice(0, C)
4373
+ value: z.slice(0, C)
4162
4374
  }),
4163
4375
  /* @__PURE__ */ p("input", {
4164
4376
  type: "hidden",
@@ -4171,12 +4383,12 @@ function Zr(e) {
4171
4383
  }
4172
4384
  //#endregion
4173
4385
  //#region src/components/searchPlaces.tsx
4174
- function Qr(e) {
4386
+ function ni(e) {
4175
4387
  let { onChange: t, onPlaceChanged: n, options: r, ...i } = e, [a, o] = u(null);
4176
- return /* @__PURE__ */ p(be, {
4388
+ return /* @__PURE__ */ p(ye, {
4177
4389
  onLoad: (e) => o(e),
4178
4390
  onPlacesChanged: () => {
4179
- let e = a?.getPlaces(), t = e ? e[0] : null, r = t?.address_components;
4391
+ let e = a?.getPlaces(), t = e ? e[0] : null, r = t?.address_components ?? [];
4180
4392
  function i(e) {
4181
4393
  let t = r.find((t) => t.types[0] === e);
4182
4394
  return t ? t.long_name : "";
@@ -4224,7 +4436,7 @@ function Qr(e) {
4224
4436
  }
4225
4437
  //#endregion
4226
4438
  //#region src/components/switch/index.tsx
4227
- function $r(e) {
4439
+ function ri(e) {
4228
4440
  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 = s(), C = m || S, [w, T] = u(r), E = typeof i == "boolean" ? i : w;
4229
4441
  function D() {
4230
4442
  T(!w), f?.(E ? o : a || "checked");
@@ -4255,7 +4467,7 @@ function $r(e) {
4255
4467
  }
4256
4468
  //#endregion
4257
4469
  //#region src/components/table/tableBody/index.tsx
4258
- function ei(t) {
4470
+ function ii(t) {
4259
4471
  let { emptyMessage: n = "Nenhum dado adicionado.", className: r, children: i, ...a } = t, o = `arkynTableBody ${r}`, s = e.toArray(i).filter(Boolean), c = s.length === 0;
4260
4472
  return /* @__PURE__ */ p("tbody", {
4261
4473
  className: o.trim(),
@@ -4271,7 +4483,7 @@ function ei(t) {
4271
4483
  }
4272
4484
  //#endregion
4273
4485
  //#region src/components/table/tableCaption/index.tsx
4274
- function ti(e) {
4486
+ function ai(e) {
4275
4487
  let { className: t, children: n, ...r } = e;
4276
4488
  return /* @__PURE__ */ p("caption", {
4277
4489
  className: `arkynTableCaption ${t}`.trim(),
@@ -4284,7 +4496,7 @@ function ti(e) {
4284
4496
  }
4285
4497
  //#endregion
4286
4498
  //#region src/components/table/tableContainer/index.tsx
4287
- function ni(e) {
4499
+ function oi(e) {
4288
4500
  let { children: t, className: n, ...r } = e;
4289
4501
  return /* @__PURE__ */ p("div", {
4290
4502
  className: `arkynTableContainer ${n}`.trim(),
@@ -4294,7 +4506,7 @@ function ni(e) {
4294
4506
  }
4295
4507
  //#endregion
4296
4508
  //#region src/components/table/tableFooter/index.tsx
4297
- function ri(e) {
4509
+ function si(e) {
4298
4510
  let { className: t, children: n, ...r } = e;
4299
4511
  return /* @__PURE__ */ m("tfoot", {
4300
4512
  className: `arkynTableFooter ${t}`.trim(),
@@ -4310,7 +4522,7 @@ function ri(e) {
4310
4522
  }
4311
4523
  //#endregion
4312
4524
  //#region src/components/table/tableHeader/index.tsx
4313
- function ii(e) {
4525
+ function ci(e) {
4314
4526
  let { className: t, children: n, ...r } = e;
4315
4527
  return /* @__PURE__ */ m("thead", {
4316
4528
  className: `arkynTableHeader ${t}`.trim(),
@@ -4320,8 +4532,8 @@ function ii(e) {
4320
4532
  }
4321
4533
  //#endregion
4322
4534
  //#region src/components/textarea/index.tsx
4323
- function ai(e) {
4324
- 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 } = Z(), [T, E] = u(!1), D = l(null), O = s(), k = S || O, A = i || w?.[f], j = `arkynTextarea ${t} ${n} ${a || o ? "opacityTrue" : "opacityFalse"} ${A ? "errorTrue" : "errorFalse"} ${T ? "focusedTrue" : "focusedFalse"}`, M = a ? void 0 : y;
4535
+ function li(e) {
4536
+ 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 } = Q(), [T, E] = u(!1), D = l(null), O = s(), k = S || O, A = i || w?.[f], j = `arkynTextarea ${t} ${n} ${a || o ? "opacityTrue" : "opacityFalse"} ${A ? "errorTrue" : "errorFalse"} ${T ? "focusedTrue" : "focusedFalse"}`, M = a ? void 0 : y;
4325
4537
  function N() {
4326
4538
  a || !D?.current || (E(!0), D.current.focus());
4327
4539
  }
@@ -4331,10 +4543,10 @@ function ai(e) {
4331
4543
  function F(e) {
4332
4544
  E(!1), g && g(e);
4333
4545
  }
4334
- return /* @__PURE__ */ m(Be, {
4546
+ return /* @__PURE__ */ m(ze, {
4335
4547
  className: r,
4336
4548
  children: [
4337
- c && /* @__PURE__ */ p(ze, {
4549
+ c && /* @__PURE__ */ p(Re, {
4338
4550
  htmlFor: k,
4339
4551
  showAsterisk: d,
4340
4552
  children: c
@@ -4358,13 +4570,13 @@ function ai(e) {
4358
4570
  ...C
4359
4571
  })
4360
4572
  }),
4361
- A && /* @__PURE__ */ p(Re, { children: A })
4573
+ A && /* @__PURE__ */ p(Le, { children: A })
4362
4574
  ]
4363
4575
  });
4364
4576
  }
4365
4577
  //#endregion
4366
4578
  //#region src/templates/badResponses.ts
4367
- var oi = [
4579
+ var ui = [
4368
4580
  "BadGateway",
4369
4581
  "BadRequest",
4370
4582
  "Conflict",
@@ -4374,13 +4586,13 @@ var oi = [
4374
4586
  "ServerError",
4375
4587
  "Unauthorized",
4376
4588
  "UnprocessableEntity"
4377
- ], si = [
4589
+ ], di = [
4378
4590
  "Created",
4379
4591
  "Found",
4380
4592
  "Success",
4381
4593
  "Updated"
4382
- ], ci = n({});
4383
- function li(e) {
4594
+ ], fi = n({});
4595
+ function pi(e) {
4384
4596
  let { children: t = !1 } = e, [n, r] = u([]), a = i((e) => n.some((t) => t.key === e), [n]), o = i((e) => n.find((t) => t.key === e)?.data, [n]), s = i((e, t) => {
4385
4597
  r((n) => [...n.filter((t) => t.key !== e), {
4386
4598
  key: e,
@@ -4403,15 +4615,15 @@ function li(e) {
4403
4615
  l,
4404
4616
  d
4405
4617
  ]);
4406
- return /* @__PURE__ */ p(ci.Provider, {
4618
+ return /* @__PURE__ */ p(fi.Provider, {
4407
4619
  value: f,
4408
4620
  children: t
4409
4621
  });
4410
4622
  }
4411
4623
  //#endregion
4412
4624
  //#region src/hooks/useModal.ts
4413
- function ui(e) {
4414
- let t = a(ci);
4625
+ function mi(e) {
4626
+ let t = a(fi);
4415
4627
  if (Object.entries(t).length === 0) throw Error("useModal must be used within a Provider");
4416
4628
  if (e) {
4417
4629
  let { modalData: n, modalIsOpen: r, openModal: i, closeModal: a } = t;
@@ -4425,10 +4637,10 @@ function ui(e) {
4425
4637
  }
4426
4638
  //#endregion
4427
4639
  //#region src/providers/toastProvider.tsx
4428
- var di = n({});
4429
- function fi(e) {
4640
+ var hi = n({});
4641
+ function gi(e) {
4430
4642
  switch (e.type) {
4431
- case "success": return Ce.success(e.message, {
4643
+ case "success": return Se.success(e.message, {
4432
4644
  style: {
4433
4645
  background: "#10B981",
4434
4646
  color: "#ffffff",
@@ -4441,7 +4653,7 @@ function fi(e) {
4441
4653
  secondary: "#ffffff"
4442
4654
  }
4443
4655
  });
4444
- case "danger": return Ce.error(e.message, {
4656
+ case "danger": return Se.error(e.message, {
4445
4657
  style: {
4446
4658
  background: "#E11D48",
4447
4659
  color: "#ffffff",
@@ -4456,11 +4668,11 @@ function fi(e) {
4456
4668
  });
4457
4669
  }
4458
4670
  }
4459
- function pi({ children: e }) {
4460
- let t = c(() => ({ showToast: fi }), []);
4461
- return /* @__PURE__ */ m(di.Provider, {
4671
+ function _i({ children: e }) {
4672
+ let t = c(() => ({ showToast: gi }), []);
4673
+ return /* @__PURE__ */ m(hi.Provider, {
4462
4674
  value: t,
4463
- children: [/* @__PURE__ */ p(we, {
4675
+ children: [/* @__PURE__ */ p(Ce, {
4464
4676
  position: "top-right",
4465
4677
  containerStyle: { zIndex: 999999999999999 }
4466
4678
  }), e]
@@ -4468,21 +4680,21 @@ function pi({ children: e }) {
4468
4680
  }
4469
4681
  //#endregion
4470
4682
  //#region src/hooks/useToast.ts
4471
- function mi() {
4472
- let e = a(di);
4683
+ function vi() {
4684
+ let e = a(hi);
4473
4685
  if (Object.entries(e).length === 0) throw Error("useToast must be used within a Provider");
4474
4686
  return e;
4475
4687
  }
4476
4688
  //#endregion
4477
4689
  //#region src/hooks/useAutomation.ts
4478
- function hi(e) {
4479
- let { closeAll: t } = ui(), { showToast: n } = mi(), r = e?.closeModal, a = e?.message, s = e?.name, c = e?.cause?.data?.scrollTo, l = e?.cause?.fieldErrors ? Object.values(e?.cause?.fieldErrors)[0] : null, u = i(() => {
4690
+ function yi(e) {
4691
+ let { closeAll: t } = mi(), { showToast: n } = vi(), r = e?.closeModal, a = e?.message, s = e?.name, c = e?.cause?.data?.scrollTo, l = e?.cause?.fieldErrors ? Object.values(e?.cause?.fieldErrors)[0] : null, u = i(() => {
4480
4692
  if (!(!a && !l)) {
4481
- if (si.includes(s)) return n({
4693
+ if (di.includes(s)) return n({
4482
4694
  message: a,
4483
4695
  type: "success"
4484
4696
  });
4485
- if (oi.includes(s)) {
4697
+ if (ui.includes(s)) {
4486
4698
  if (l) return n({
4487
4699
  message: l,
4488
4700
  type: "danger"
@@ -4500,7 +4712,7 @@ function hi(e) {
4500
4712
  n
4501
4713
  ]);
4502
4714
  o(() => {
4503
- r && t(), c && Se.scrollTo(c, {
4715
+ r && t(), c && xe.scrollTo(c, {
4504
4716
  smooth: !0,
4505
4717
  offset: 20
4506
4718
  }), u();
@@ -4513,7 +4725,7 @@ function hi(e) {
4513
4725
  }
4514
4726
  //#endregion
4515
4727
  //#region src/hooks/useCopyToClipboard.ts
4516
- function gi(e) {
4728
+ function bi(e) {
4517
4729
  let t = document.createElement("textarea");
4518
4730
  t.value = e, t.style.position = "fixed", t.style.opacity = "0", document.body.appendChild(t), t.select();
4519
4731
  try {
@@ -4522,13 +4734,13 @@ function gi(e) {
4522
4734
  document.body.removeChild(t);
4523
4735
  }
4524
4736
  }
4525
- function _i() {
4737
+ function xi() {
4526
4738
  async function e(e) {
4527
4739
  try {
4528
4740
  return await navigator.clipboard.writeText(e), !0;
4529
4741
  } catch {
4530
4742
  try {
4531
- return gi(e);
4743
+ return bi(e);
4532
4744
  } catch {
4533
4745
  return !1;
4534
4746
  }
@@ -4538,8 +4750,8 @@ function _i() {
4538
4750
  }
4539
4751
  //#endregion
4540
4752
  //#region src/providers/drawerProvider.tsx
4541
- var vi = n({});
4542
- function yi(e) {
4753
+ var Si = n({});
4754
+ function Ci(e) {
4543
4755
  let { children: t = !1 } = e, [n, r] = u([]);
4544
4756
  function i(e) {
4545
4757
  return !!n.some((t) => t.key === e);
@@ -4559,7 +4771,7 @@ function yi(e) {
4559
4771
  function s(e) {
4560
4772
  r(n.filter((t) => t.key !== e));
4561
4773
  }
4562
- return /* @__PURE__ */ p(vi.Provider, {
4774
+ return /* @__PURE__ */ p(Si.Provider, {
4563
4775
  value: {
4564
4776
  drawerIsOpen: i,
4565
4777
  drawerData: a,
@@ -4571,8 +4783,8 @@ function yi(e) {
4571
4783
  }
4572
4784
  //#endregion
4573
4785
  //#region src/hooks/useDrawer.ts
4574
- function bi(e) {
4575
- let t = a(vi);
4786
+ function wi(e) {
4787
+ let t = a(Si);
4576
4788
  if (Object.entries(t).length === 0) throw Error("useDrawer must be used within a Provider");
4577
4789
  if (e) {
4578
4790
  let { drawerData: n, drawerIsOpen: r, openDrawer: i, closeDrawer: a } = t;
@@ -4586,7 +4798,7 @@ function bi(e) {
4586
4798
  }
4587
4799
  //#endregion
4588
4800
  //#region src/hooks/useScopedParams.ts
4589
- function xi(e, t = "") {
4801
+ function Ti(e, t = "") {
4590
4802
  let n = new URLSearchParams(e), r = t ? `${t}:` : "", i = (e) => {
4591
4803
  Object.entries(e).forEach(([e, t]) => {
4592
4804
  t === void 0 ? n.delete(`${r}${e}`) : n.set(`${r}${e}`, String(t));
@@ -4603,8 +4815,8 @@ function xi(e, t = "") {
4603
4815
  }
4604
4816
  //#endregion
4605
4817
  //#region src/hooks/useSearchAutomation.ts
4606
- function Si(e, t = "") {
4607
- let { closeAll: n } = ui(), { showToast: r } = mi(), { getParam: i } = xi(e, t), a = i("closeModal") === "true", s = i("message"), c = i("name"), l = i("type");
4818
+ function Ei(e, t = "") {
4819
+ let { closeAll: n } = mi(), { showToast: r } = vi(), { getParam: i } = Ti(e, t), a = i("closeModal") === "true", s = i("message"), c = i("name"), l = i("type");
4608
4820
  o(() => {
4609
4821
  a && n(), s && (l === "success" && r({
4610
4822
  message: s,
@@ -4612,10 +4824,10 @@ function Si(e, t = "") {
4612
4824
  }), l === "danger" && r({
4613
4825
  message: s,
4614
4826
  type: "danger"
4615
- }), c && oi.includes(c) && !oi.includes(s) && r({
4827
+ }), c && ui.includes(c) && !ui.includes(s) && r({
4616
4828
  message: s,
4617
4829
  type: "danger"
4618
- }), c && si.includes(c) && !si.includes(s) && r({
4830
+ }), c && di.includes(c) && !di.includes(s) && r({
4619
4831
  message: s,
4620
4832
  type: "success"
4621
4833
  }));
@@ -4630,28 +4842,28 @@ function Si(e, t = "") {
4630
4842
  }
4631
4843
  //#endregion
4632
4844
  //#region src/providers/placesProvider.tsx
4633
- var Ci = [
4845
+ var Di = [
4634
4846
  "places",
4635
4847
  "marker",
4636
4848
  "maps"
4637
4849
  ];
4638
- function wi(e) {
4639
- let { apiKey: t, children: n, preventFontsLoading: r = !0 } = e, { isLoaded: i } = xe({
4850
+ function Oi(e) {
4851
+ let { apiKey: t, children: n, preventFontsLoading: r = !0 } = e, { isLoaded: i } = be({
4640
4852
  googleMapsApiKey: t,
4641
- libraries: Ci,
4853
+ libraries: Di,
4642
4854
  preventGoogleFontsLoading: r
4643
4855
  });
4644
4856
  return /* @__PURE__ */ p(f, { children: n(i) });
4645
4857
  }
4646
4858
  //#endregion
4647
4859
  //#region src/utils/richTextUtilities.ts
4648
- function Ti(e) {
4649
- if (fe.isText(e)) {
4860
+ function ki(e) {
4861
+ if (de.isText(e)) {
4650
4862
  let t = e?.text;
4651
4863
  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>`), e?.link && (t = `<a href="${e.href}">${t}</a>`), t;
4652
4864
  }
4653
- if (le.isElement(e)) {
4654
- let t = e.children?.map((e) => Ti(e)).join(""), n = e.align || "left";
4865
+ if (ce.isElement(e)) {
4866
+ let t = e.children?.map((e) => ki(e)).join(""), n = e.align || "left";
4655
4867
  switch (e.type) {
4656
4868
  case "video": return `<iframe src="${e.src}" class="align_${n}" />`;
4657
4869
  case "image": return `<img src="${e.src}" class="align_${n}" />`;
@@ -4667,10 +4879,10 @@ function Ti(e) {
4667
4879
  }
4668
4880
  return "";
4669
4881
  }
4670
- function Ei(e) {
4882
+ function Ai(e) {
4671
4883
  if (typeof e == "string") return { text: e };
4672
4884
  let t = e.props.children, n;
4673
- n = Array.isArray(t) ? t.map((e) => Ei(e)) : typeof t == "string" || !t ? [{ text: t || "" }] : [Ei(t)];
4885
+ n = Array.isArray(t) ? t.map((e) => Ai(e)) : typeof t == "string" || !t ? [{ text: t || "" }] : [Ai(t)];
4674
4886
  let r = e.props.className?.replace("align_", "");
4675
4887
  switch (e.type) {
4676
4888
  case "img": return {
@@ -4740,16 +4952,16 @@ function Ei(e) {
4740
4952
  }
4741
4953
  //#endregion
4742
4954
  //#region src/services/toHtml.ts
4743
- function Di(e) {
4744
- return e.map((e) => Ti(e)).join("");
4955
+ function ji(e) {
4956
+ return e.map((e) => ki(e)).join("");
4745
4957
  }
4746
4958
  //#endregion
4747
4959
  //#region src/services/toRichTextValue.ts
4748
- function Oi(e) {
4749
- let t = Te(e);
4750
- return Array.isArray(t) ? t.map((e) => typeof e == "string" ? { text: e } : Ei(e)) : typeof t == "string" ? [{ text: t }] : [Ei(t)];
4960
+ function Mi(e) {
4961
+ let t = we(e);
4962
+ return Array.isArray(t) ? t.map((e) => typeof e == "string" ? { text: e } : Ai(e)) : typeof t == "string" ? [{ text: t }] : [Ai(t)];
4751
4963
  }
4752
4964
  //#endregion
4753
- export { ke as AlertContainer, Ae as AlertContent, je as AlertDescription, Me as AlertIcon, Ee as AlertTitle, Fe as AudioPlayer, Ke as AudioUpload, qe as Badge, $ as Button, gt as Calendar, bt as CardTabButton, xt as CardTabContainer, St as Checkbox, Tt as ClientOnly, Ot as CurrencyInput, Lt as DatePicker, Ve as Divider, Vt as DrawerContainer, Ht as DrawerHeader, yi as DrawerProvider, Gt as FacebookPixel, Re as FieldError, ze as FieldLabel, Be as FieldWrapper, Jt as FileUpload, Le as FormProvider, Sn as FullCalendar, En as GoogleAnalytics, jn as GoogleTagManager, He as IconButton, Pn as ImageUpload, ot as Input, Ln as MapView, zn as MaskedInput, Un as ModalContainer, Wn as ModalFooter, Gn as ModalHeader, li as ModalProvider, er as MultiSelect, or as Pagination, br as PhoneInput, wi as PlacesProvider, xr as Popover, Tr as RadioBox, Er as RadioGroup, Zr as RichText, Qr as SearchPlaces, ut as Select, Pe as Slider, $r as Switch, Hr as TabButton, Ur as TabContainer, ei as TableBody, ti as TableCaption, ni as TableContainer, ri as TableFooter, ii as TableHeader, ai as Textarea, pi as ToastProvider, Ue as Tooltip, Di as toHtml, Oi as toRichTextValue, hi as useAutomation, _i as useCopyToClipboard, bi as useDrawer, Z as useForm, wt as useHydrated, ui as useModal, xi as useScopedParams, at as useScrollLock, Si as useSearchAutomation, Ne as useSlider, mi as useToast };
4965
+ export { Oe as AlertContainer, ke as AlertContent, Ae as AlertDescription, je as AlertIcon, Te as AlertTitle, Pe as AudioPlayer, Ke as AudioUpload, qe as Badge, Be as Button, gt as Calendar, bt as CardTabButton, xt as CardTabContainer, St as Checkbox, Tt as ClientOnly, Ot as CurrencyInput, Lt as DatePicker, Ve as Divider, Gt as DrawerContainer, Kt as DrawerHeader, Ci as DrawerProvider, Yt as FacebookPixel, Le as FieldError, Re as FieldLabel, ze as FieldWrapper, Qt as FileUpload, Ie as FormProvider, En as FullCalendar, An as GoogleAnalytics, Fn as GoogleTagManager, He as IconButton, Rn as ImageUpload, ot as Input, Vn as MapView, Un as MaskedInput, qn as ModalContainer, Jn as ModalFooter, Yn as ModalHeader, pi as ModalProvider, ir as MultiSelect, ur as Pagination, wr as PhoneInput, Oi as PlacesProvider, Tr as Popover, kr as RadioBox, Ar as RadioGroup, ti as RichText, ni as SearchPlaces, ut as Select, Ne as Slider, ri as Switch, Kr as TabButton, qr as TabContainer, ii as TableBody, ai as TableCaption, oi as TableContainer, si as TableFooter, ci as TableHeader, li as Textarea, _i as ToastProvider, Ue as Tooltip, ji as toHtml, Mi as toRichTextValue, yi as useAutomation, xi as useCopyToClipboard, wi as useDrawer, Q as useForm, wt as useHydrated, mi as useModal, Ti as useScopedParams, at as useScrollLock, Ei as useSearchAutomation, Me as useSlider, vi as useToast };
4754
4966
 
4755
4967
  //# sourceMappingURL=index.js.map