@lets-events/react 12.9.2 → 12.9.4

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 (94) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +19 -21
  3. package/CHANGELOG.md +12 -0
  4. package/dist/index.d.mts +15 -2
  5. package/dist/index.d.ts +15 -2
  6. package/dist/index.js +302 -203
  7. package/dist/index.mjs +270 -172
  8. package/package.json +1 -1
  9. package/src/components/Alert.tsx +303 -303
  10. package/src/components/Avatar.tsx +55 -55
  11. package/src/components/Badge.tsx +123 -123
  12. package/src/components/Box.tsx +3 -3
  13. package/src/components/Button/index.tsx +74 -62
  14. package/src/components/Button/styledComponents.ts +361 -320
  15. package/src/components/ButtonGroup.tsx +484 -484
  16. package/src/components/Calendar/index.tsx +168 -168
  17. package/src/components/Calendar/styledComponents.ts +480 -480
  18. package/src/components/Card.tsx +67 -67
  19. package/src/components/CheckboxGroup.tsx +176 -176
  20. package/src/components/Container.tsx +39 -39
  21. package/src/components/Divider.tsx +7 -7
  22. package/src/components/DoubleCalendar/index.tsx +182 -182
  23. package/src/components/Drawer/index.tsx +103 -100
  24. package/src/components/Drawer/styledComponents.ts +103 -103
  25. package/src/components/Dropdown.tsx +302 -302
  26. package/src/components/Filter.tsx +164 -164
  27. package/src/components/Flex.tsx +118 -118
  28. package/src/components/FormFields/AddressFormFields/CityFormField.tsx +111 -111
  29. package/src/components/FormFields/AddressFormFields/CountryFormField.tsx +33 -33
  30. package/src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx +39 -39
  31. package/src/components/FormFields/AddressFormFields/StateFormField.tsx +32 -32
  32. package/src/components/FormFields/AddressFormFields/index.tsx +141 -141
  33. package/src/components/FormFields/BirthDateFormField.tsx +84 -84
  34. package/src/components/FormFields/CNPJFormField.tsx +87 -87
  35. package/src/components/FormFields/CPFFormField.tsx +78 -78
  36. package/src/components/FormFields/CalendarFormField.tsx +98 -98
  37. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  38. package/src/components/FormFields/DateAndTimeFormField.tsx +217 -217
  39. package/src/components/FormFields/DoubleCalendarFormField.tsx +96 -96
  40. package/src/components/FormFields/EmailFormField.tsx +27 -27
  41. package/src/components/FormFields/Form.tsx +39 -39
  42. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
  43. package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
  44. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  45. package/src/components/FormFields/RadioGroupFormField.tsx +86 -86
  46. package/src/components/FormFields/RichEditorFormField.tsx +103 -103
  47. package/src/components/FormFields/SelectFormField.tsx +113 -113
  48. package/src/components/FormFields/SwitchFormField.tsx +46 -46
  49. package/src/components/FormFields/TextAreaFormField.tsx +61 -61
  50. package/src/components/FormFields/TextFormField.tsx +112 -112
  51. package/src/components/FormFields/TimePickerFormField.tsx +88 -88
  52. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  53. package/src/components/FormFields/subComponents/FormLabel.tsx +36 -36
  54. package/src/components/FormFields/utils/validation.ts +23 -23
  55. package/src/components/Grid.tsx +137 -137
  56. package/src/components/Icon.tsx +47 -47
  57. package/src/components/MenuDropdown/index.tsx +38 -38
  58. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  59. package/src/components/Modal.tsx +110 -110
  60. package/src/components/MultiSelect/index.tsx +305 -305
  61. package/src/components/MultiSelect/styledComponents.ts +160 -160
  62. package/src/components/RadioGroup.tsx +210 -210
  63. package/src/components/RichEditor/QuillComponent.tsx +468 -468
  64. package/src/components/RichEditor/RichEditor.tsx +49 -49
  65. package/src/components/RichEditor/RichTextPresenter.tsx +18 -18
  66. package/src/components/RichEditor/index.ts +3 -3
  67. package/src/components/RichEditor/styledComponents.ts +1170 -1170
  68. package/src/components/Section.tsx +33 -33
  69. package/src/components/Step.tsx +164 -164
  70. package/src/components/Switch.tsx +108 -108
  71. package/src/components/Text.tsx +38 -38
  72. package/src/components/TextField.tsx +372 -372
  73. package/src/components/TextareaField.tsx +116 -116
  74. package/src/components/TimePicker.tsx +357 -357
  75. package/src/components/Toast/components/ToastItem.tsx +41 -41
  76. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  77. package/src/components/Toast/hooks/useToast.ts +12 -12
  78. package/src/components/Toast/index.tsx +5 -5
  79. package/src/components/Toast/styles/index.ts +135 -135
  80. package/src/components/Toast/types/index.ts +46 -46
  81. package/src/components/ToggleElement/index.tsx +58 -0
  82. package/src/components/Tooltip/index.tsx +73 -73
  83. package/src/components/Tooltip/styles.ts +77 -77
  84. package/src/hooks/useCountries.ts +41 -41
  85. package/src/hooks/useImageUpload.ts +139 -139
  86. package/src/hooks/useOnClickOutside.tsx +42 -42
  87. package/src/index.tsx +72 -72
  88. package/src/styles/index.ts +41 -41
  89. package/src/types/typographyValues.ts +178 -178
  90. package/src/utils/getNestedValue.ts +3 -3
  91. package/src/utils/states.ts +29 -29
  92. package/src/utils/uploadService.ts +180 -180
  93. package/tsconfig.json +3 -3
  94. package/tsup.config.ts +38 -38
package/dist/index.js CHANGED
@@ -149,7 +149,7 @@ var require_react_is_development = __commonJS({
149
149
  var ContextProvider = REACT_PROVIDER_TYPE;
150
150
  var Element = REACT_ELEMENT_TYPE;
151
151
  var ForwardRef = REACT_FORWARD_REF_TYPE;
152
- var Fragment6 = REACT_FRAGMENT_TYPE;
152
+ var Fragment7 = REACT_FRAGMENT_TYPE;
153
153
  var Lazy = REACT_LAZY_TYPE;
154
154
  var Memo = REACT_MEMO_TYPE;
155
155
  var Portal = REACT_PORTAL_TYPE;
@@ -208,7 +208,7 @@ var require_react_is_development = __commonJS({
208
208
  exports2.ContextProvider = ContextProvider;
209
209
  exports2.Element = Element;
210
210
  exports2.ForwardRef = ForwardRef;
211
- exports2.Fragment = Fragment6;
211
+ exports2.Fragment = Fragment7;
212
212
  exports2.Lazy = Lazy;
213
213
  exports2.Memo = Memo;
214
214
  exports2.Portal = Portal;
@@ -959,6 +959,7 @@ __export(index_exports, {
959
959
  TimerPickerContentStyled: () => TimerPickerContentStyled,
960
960
  ToastItem: () => ToastItem,
961
961
  ToastProvider: () => ToastProvider,
962
+ ToggleElement: () => ToggleElement,
962
963
  Tooltip: () => Tooltip,
963
964
  TooltipContent: () => TooltipContent,
964
965
  TooltipProvider: () => TooltipProvider,
@@ -1563,6 +1564,7 @@ var ButtonStyled = styled(import_themes2.Button, {
1563
1564
  $$buttonBgColor: "$colors$grey50",
1564
1565
  $$buttonBorderColor: "inherit",
1565
1566
  $$buttonOutlinedColor: "inherit",
1567
+ $$buttonToggleBgColor: "transparent",
1566
1568
  fontFamily: "$default",
1567
1569
  letterSpacing: 0,
1568
1570
  border: 0,
@@ -1585,6 +1587,7 @@ var ButtonStyled = styled(import_themes2.Button, {
1585
1587
  $$buttonColor: "$colors$brand500",
1586
1588
  $$buttonBorderColor: "$colors$brand600",
1587
1589
  $$buttonOutlinedColor: "$$buttonColor",
1590
+ $$buttonToggleBgColor: "rgba(0, 78, 210, 0.2)",
1588
1591
  "&:hover": {
1589
1592
  $$buttonColor: "$colors$brand600",
1590
1593
  $$buttonBorderColor: "$colors$brand700"
@@ -1604,6 +1607,7 @@ var ButtonStyled = styled(import_themes2.Button, {
1604
1607
  $$buttonColor: "$colors$purple500",
1605
1608
  $$buttonBorderColor: "$colors$purple300",
1606
1609
  $$buttonOutlinedColor: "$$buttonColor",
1610
+ $$buttonToggleBgColor: "rgba(137, 97, 216, 0.2)",
1607
1611
  "&:hover": {
1608
1612
  $$buttonColor: "$colors$purple600",
1609
1613
  $$buttonBorderColor: "$colors$purple700",
@@ -1627,6 +1631,7 @@ var ButtonStyled = styled(import_themes2.Button, {
1627
1631
  $$buttonColor: "$colors$error600",
1628
1632
  $$buttonBorderColor: "$colors$error500",
1629
1633
  $$buttonOutlinedColor: " $colors$error500",
1634
+ $$buttonToggleBgColor: "rgba(219, 54, 68, 0.2)",
1630
1635
  "&:hover": {
1631
1636
  $$buttonColor: "$colors$error600",
1632
1637
  $$buttonBorderColor: "$colors$error700",
@@ -1647,6 +1652,7 @@ var ButtonStyled = styled(import_themes2.Button, {
1647
1652
  $$buttonColor: "$colors$info500",
1648
1653
  $$buttonBorderColor: "$colors$info600",
1649
1654
  $$buttonOutlinedColor: "$$buttonColor",
1655
+ $$buttonToggleBgColor: "rgba(2, 120, 254, 0.2)",
1650
1656
  "&:hover": {
1651
1657
  $$buttonColor: "$colors$info600",
1652
1658
  $$buttonBorderColor: "$colors$info700",
@@ -1667,6 +1673,7 @@ var ButtonStyled = styled(import_themes2.Button, {
1667
1673
  $$buttonColor: "$colors$success500",
1668
1674
  $$buttonBorderColor: "$colors$success600",
1669
1675
  $$buttonOutlinedColor: "$$buttonColor",
1676
+ $$buttonToggleBgColor: "rgba(38, 167, 67, 0.2)",
1670
1677
  "&:hover": {
1671
1678
  $$buttonColor: "$colors$success600",
1672
1679
  $$buttonBorderColor: "$colors$success700",
@@ -1687,6 +1694,7 @@ var ButtonStyled = styled(import_themes2.Button, {
1687
1694
  $$buttonColor: "$colors$warning500",
1688
1695
  $$buttonBorderColor: "$colors$warning600",
1689
1696
  $$buttonOutlinedColor: "$$buttonColor",
1697
+ $$buttonToggleBgColor: "rgba(255, 193, 7, 0.2)",
1690
1698
  "&:hover": {
1691
1699
  $$buttonColor: "$colors$warning600",
1692
1700
  $$buttonBorderColor: "$colors$warning700",
@@ -1707,6 +1715,7 @@ var ButtonStyled = styled(import_themes2.Button, {
1707
1715
  $$buttonColor: "$colors$neutral600",
1708
1716
  $$buttonBorderColor: "$colors$neutral300",
1709
1717
  $$buttonOutlinedColor: "$$buttonColor",
1718
+ $$buttonToggleBgColor: "rgba(76, 79, 84, 0.2)",
1710
1719
  "&:hover": {
1711
1720
  $$buttonColor: "$colors$neutral700",
1712
1721
  $$buttonBgColor: "$colors$neutral100",
@@ -1727,6 +1736,7 @@ var ButtonStyled = styled(import_themes2.Button, {
1727
1736
  $$buttonColor: "$colors$neutral50",
1728
1737
  $$buttonBorderColor: "$colors$neutral300",
1729
1738
  $$buttonOutlinedColor: "$colors$neutral50",
1739
+ $$buttonToggleBgColor: "rgba(255, 255, 255, 0.2)",
1730
1740
  "&:hover": {
1731
1741
  $$buttonColor: "$colors$neutral100",
1732
1742
  $$buttonBorderColor: "$colors$neutral300",
@@ -1779,6 +1789,18 @@ var ButtonStyled = styled(import_themes2.Button, {
1779
1789
  height: "unset",
1780
1790
  color: "$$buttonColor"
1781
1791
  },
1792
+ toggle: {
1793
+ backgroundColor: "transparent",
1794
+ boxShadow: "none",
1795
+ padding: "$6 $12",
1796
+ border: 0,
1797
+ height: "2rem",
1798
+ color: "$$buttonColor",
1799
+ borderRadius: ".5rem",
1800
+ "&:hover": {
1801
+ backgroundColor: "$$buttonToggleBgColor"
1802
+ }
1803
+ },
1782
1804
  contained: {
1783
1805
  color: "$grey50",
1784
1806
  backgroundColor: "$$buttonColor",
@@ -1804,7 +1826,7 @@ var ButtonStyled = styled(import_themes2.Button, {
1804
1826
  menuDropdownItem: {
1805
1827
  backgroundColor: "transparent",
1806
1828
  boxShadow: "none",
1807
- padding: "0.25rem 0.5rem",
1829
+ padding: "0.5rem 1rem",
1808
1830
  border: 0,
1809
1831
  height: "unset",
1810
1832
  color: "$$buttonColor",
@@ -1814,6 +1836,20 @@ var ButtonStyled = styled(import_themes2.Button, {
1814
1836
  "&:hover": {
1815
1837
  backgroundColor: "$dark100"
1816
1838
  }
1839
+ },
1840
+ menuDropdownItemDelete: {
1841
+ backgroundColor: "transparent",
1842
+ boxShadow: "none",
1843
+ padding: "0.5rem 1rem",
1844
+ border: 0,
1845
+ height: "unset",
1846
+ color: "$$buttonColor",
1847
+ width: "100%",
1848
+ borderRadius: 0,
1849
+ whiteSpace: "nowrap",
1850
+ "&:hover": {
1851
+ backgroundColor: "$red100"
1852
+ }
1817
1853
  }
1818
1854
  },
1819
1855
  fontWeight: {
@@ -1822,6 +1858,11 @@ var ButtonStyled = styled(import_themes2.Button, {
1822
1858
  semibold: { fontWeight: "$semibold" },
1823
1859
  bold: { fontWeight: "$bold" }
1824
1860
  },
1861
+ textAlign: {
1862
+ center: { textAlign: "center", justifyContent: "center" },
1863
+ left: { textAlign: "left", justifyContent: "flex-start" },
1864
+ right: { textAlign: "right", justifyContent: "flex-end" }
1865
+ },
1825
1866
  outlinedBgColor: {
1826
1867
  neutral: {},
1827
1868
  transparent: {
@@ -1855,6 +1896,7 @@ var ButtonStyled = styled(import_themes2.Button, {
1855
1896
  color: "brand",
1856
1897
  size: "medium",
1857
1898
  fontWeight: "medium",
1899
+ textAlign: "center",
1858
1900
  outlinedBgColor: "transparent"
1859
1901
  }
1860
1902
  });
@@ -1984,10 +2026,20 @@ function Flex(_a) {
1984
2026
 
1985
2027
  // src/components/Button/index.tsx
1986
2028
  var import_jsx_runtime4 = require("react/jsx-runtime");
2029
+ var getJustifyByTextAlign = (textAlign) => {
2030
+ switch (textAlign) {
2031
+ case "left":
2032
+ return "start";
2033
+ case "right":
2034
+ return "end";
2035
+ default:
2036
+ return "center";
2037
+ }
2038
+ };
1987
2039
  function Button(_a) {
1988
2040
  var _b = _a, { asChild, children, loading } = _b, props = __objRest(_b, ["asChild", "children", "loading"]);
1989
2041
  const Component = asChild ? import_themes4.Button : "button";
1990
- const { size, disabled } = props;
2042
+ const { size, disabled, textAlign = "center" } = props;
1991
2043
  const spinnerSize = (0, import_react2.useMemo)(() => {
1992
2044
  switch (size) {
1993
2045
  case "small":
@@ -2006,7 +2058,7 @@ function Button(_a) {
2006
2058
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2007
2059
  Flex,
2008
2060
  {
2009
- justify: "center",
2061
+ justify: getJustifyByTextAlign(textAlign),
2010
2062
  align: "center",
2011
2063
  css: { visibility: loading ? "hidden" : void 0 },
2012
2064
  children
@@ -3862,7 +3914,7 @@ var MenuItemsContainerStyled = styled("div", {
3862
3914
  top: "2.125rem",
3863
3915
  zIndex: "999",
3864
3916
  width: "fit-content",
3865
- minWidth: "5rem",
3917
+ minWidth: "6rem",
3866
3918
  background: "#fff",
3867
3919
  maxWidth: "18.75rem",
3868
3920
  margin: "auto",
@@ -8699,7 +8751,10 @@ function Drawer({
8699
8751
  css: {
8700
8752
  zIndex: zIndex + 1,
8701
8753
  width: width != null ? width : "34.25rem",
8702
- maxWidth: "100%"
8754
+ maxWidth: "100%",
8755
+ "@md": {
8756
+ width: "100%"
8757
+ }
8703
8758
  },
8704
8759
  open: isOpen,
8705
8760
  children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
@@ -10399,9 +10454,52 @@ var Divider = styled("div", {
10399
10454
  height: "1px"
10400
10455
  });
10401
10456
 
10457
+ // src/components/ToggleElement/index.tsx
10458
+ var import_react20 = require("react");
10459
+ var import_jsx_runtime28 = require("react/jsx-runtime");
10460
+ function ToggleElement({
10461
+ children,
10462
+ label,
10463
+ openedLabel,
10464
+ defaultOpen = false,
10465
+ open,
10466
+ hideButtonWhenOpen = true,
10467
+ buttonProps,
10468
+ onOpenChange
10469
+ }) {
10470
+ const [internalOpen, setInternalOpen] = (0, import_react20.useState)(defaultOpen);
10471
+ const isControlled = open !== void 0;
10472
+ const isOpen = isControlled ? open : internalOpen;
10473
+ const handleClick = () => {
10474
+ const nextOpen = !isOpen;
10475
+ if (!isControlled) {
10476
+ setInternalOpen(nextOpen);
10477
+ }
10478
+ onOpenChange == null ? void 0 : onOpenChange(nextOpen);
10479
+ };
10480
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
10481
+ (!isOpen || !hideButtonWhenOpen) && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
10482
+ Button,
10483
+ __spreadProps(__spreadValues({
10484
+ type: "button",
10485
+ variant: "toggle",
10486
+ color: "brand",
10487
+ size: "small"
10488
+ }, buttonProps), {
10489
+ onClick: handleClick,
10490
+ children: [
10491
+ !isOpen && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { name: "plus", size: "md" }),
10492
+ isOpen ? openedLabel != null ? openedLabel : label : label
10493
+ ]
10494
+ })
10495
+ ),
10496
+ isOpen && children
10497
+ ] });
10498
+ }
10499
+
10402
10500
  // src/components/Grid.tsx
10403
10501
  var import_themes20 = require("@radix-ui/themes");
10404
- var import_jsx_runtime28 = require("react/jsx-runtime");
10502
+ var import_jsx_runtime29 = require("react/jsx-runtime");
10405
10503
  var GridStyled = styled(import_themes20.Grid, {
10406
10504
  display: "grid",
10407
10505
  variants: {
@@ -10523,12 +10621,12 @@ var GridStyled = styled(import_themes20.Grid, {
10523
10621
  });
10524
10622
  function Grid(_a) {
10525
10623
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
10526
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(GridStyled, __spreadProps(__spreadValues({}, props), { children }));
10624
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(GridStyled, __spreadProps(__spreadValues({}, props), { children }));
10527
10625
  }
10528
10626
 
10529
10627
  // src/components/Container.tsx
10530
10628
  var import_themes21 = require("@radix-ui/themes");
10531
- var import_jsx_runtime29 = require("react/jsx-runtime");
10629
+ var import_jsx_runtime30 = require("react/jsx-runtime");
10532
10630
  var ContainerStyled = styled(import_themes21.Container, {
10533
10631
  variants: {
10534
10632
  size: {
@@ -10558,12 +10656,12 @@ var ContainerStyled = styled(import_themes21.Container, {
10558
10656
  });
10559
10657
  function Container(_a) {
10560
10658
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
10561
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ContainerStyled, __spreadProps(__spreadValues({}, props), { children }));
10659
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ContainerStyled, __spreadProps(__spreadValues({}, props), { children }));
10562
10660
  }
10563
10661
 
10564
10662
  // src/components/Section.tsx
10565
10663
  var import_themes22 = require("@radix-ui/themes");
10566
- var import_jsx_runtime30 = require("react/jsx-runtime");
10664
+ var import_jsx_runtime31 = require("react/jsx-runtime");
10567
10665
  var SectionStyled = styled(import_themes22.Section, {
10568
10666
  variants: {
10569
10667
  size: {
@@ -10587,28 +10685,28 @@ var SectionStyled = styled(import_themes22.Section, {
10587
10685
  });
10588
10686
  function Section(_a) {
10589
10687
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
10590
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SectionStyled, __spreadProps(__spreadValues({}, props), { children }));
10688
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SectionStyled, __spreadProps(__spreadValues({}, props), { children }));
10591
10689
  }
10592
10690
 
10593
10691
  // src/components/FormFields/subComponents/ErrorFormMessage.tsx
10594
10692
  var import_free_solid_svg_icons4 = require("@fortawesome/free-solid-svg-icons");
10595
10693
  var import_react_fontawesome4 = require("@fortawesome/react-fontawesome");
10596
- var import_jsx_runtime31 = require("react/jsx-runtime");
10694
+ var import_jsx_runtime32 = require("react/jsx-runtime");
10597
10695
  var ErrorFormMessage = ({ message: message2 }) => {
10598
10696
  if (!message2) return null;
10599
10697
  if (typeof message2 !== "string") {
10600
10698
  return null;
10601
10699
  }
10602
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Flex, { justify: "start", align: "center", gap: 6, children: [
10603
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_fontawesome4.FontAwesomeIcon, { icon: import_free_solid_svg_icons4.faXmarkCircle, color: colors.error600, size: "1x" }),
10604
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10700
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Flex, { justify: "start", align: "center", gap: 6, children: [
10701
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_fontawesome4.FontAwesomeIcon, { icon: import_free_solid_svg_icons4.faXmarkCircle, color: colors.error600, size: "1x" }),
10702
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10605
10703
  ] });
10606
10704
  };
10607
10705
 
10608
10706
  // src/components/FormFields/subComponents/FormLabel.tsx
10609
10707
  var import_react_fontawesome5 = require("@fortawesome/react-fontawesome");
10610
10708
  var import_free_solid_svg_icons5 = require("@fortawesome/free-solid-svg-icons");
10611
- var import_jsx_runtime32 = require("react/jsx-runtime");
10709
+ var import_jsx_runtime33 = require("react/jsx-runtime");
10612
10710
  var FormLabel = ({
10613
10711
  name,
10614
10712
  label,
@@ -10616,8 +10714,8 @@ var FormLabel = ({
10616
10714
  required
10617
10715
  }) => {
10618
10716
  if (!label) return null;
10619
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Flex, { align: "start", gap: 6, children: [
10620
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
10717
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Flex, { align: "start", gap: 6, children: [
10718
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10621
10719
  Text,
10622
10720
  {
10623
10721
  typography: "labelMedium",
@@ -10627,13 +10725,13 @@ var FormLabel = ({
10627
10725
  children: label
10628
10726
  }
10629
10727
  ),
10630
- required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_fontawesome5.FontAwesomeIcon, { icon: import_free_solid_svg_icons5.faAsterisk, fontSize: "8px", color: "#AD1F2B" })
10728
+ required && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_fontawesome5.FontAwesomeIcon, { icon: import_free_solid_svg_icons5.faAsterisk, fontSize: "8px", color: "#AD1F2B" })
10631
10729
  ] });
10632
10730
  };
10633
10731
 
10634
10732
  // src/components/FormFields/TextAreaFormField.tsx
10635
10733
  var import_react_hook_form = require("react-hook-form");
10636
- var import_jsx_runtime33 = require("react/jsx-runtime");
10734
+ var import_jsx_runtime34 = require("react/jsx-runtime");
10637
10735
  var TextAreaFormField = (_a) => {
10638
10736
  var _b = _a, {
10639
10737
  name,
@@ -10665,8 +10763,8 @@ var TextAreaFormField = (_a) => {
10665
10763
  required: required ? validationErrorMessage : false,
10666
10764
  validate
10667
10765
  };
10668
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Flex, { direction: "column", children: [
10669
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10766
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Flex, { direction: "column", children: [
10767
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10670
10768
  FormLabel,
10671
10769
  {
10672
10770
  name,
@@ -10675,7 +10773,7 @@ var TextAreaFormField = (_a) => {
10675
10773
  haveError
10676
10774
  }
10677
10775
  ),
10678
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10776
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10679
10777
  TextareaField,
10680
10778
  __spreadProps(__spreadValues(__spreadValues({}, props), register(name, validationRules)), {
10681
10779
  placeholder,
@@ -10685,15 +10783,15 @@ var TextAreaFormField = (_a) => {
10685
10783
  top
10686
10784
  })
10687
10785
  ),
10688
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ErrorFormMessage, { message: errorMsg })
10786
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ErrorFormMessage, { message: errorMsg })
10689
10787
  ] });
10690
10788
  };
10691
10789
 
10692
10790
  // src/components/FormFields/TextFormField.tsx
10693
10791
  var import_react_hook_form2 = require("react-hook-form");
10694
- var import_react20 = require("react");
10792
+ var import_react21 = require("react");
10695
10793
  var import_mask2 = require("@react-input/mask");
10696
- var import_jsx_runtime34 = require("react/jsx-runtime");
10794
+ var import_jsx_runtime35 = require("react/jsx-runtime");
10697
10795
  var TextFormField = (_a) => {
10698
10796
  var _b = _a, {
10699
10797
  name,
@@ -10714,7 +10812,7 @@ var TextFormField = (_a) => {
10714
10812
  "onChange",
10715
10813
  "valueFormatter"
10716
10814
  ]);
10717
- const handleValidate = (0, import_react20.useCallback)(
10815
+ const handleValidate = (0, import_react21.useCallback)(
10718
10816
  (value) => {
10719
10817
  var _a2;
10720
10818
  if (value === void 0 || value === null || !required && value.trim() === "")
@@ -10736,7 +10834,7 @@ var TextFormField = (_a) => {
10736
10834
  const haveError = !!fieldError;
10737
10835
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
10738
10836
  const { value: formValue, onChange: formChange } = field;
10739
- const formattedValue = (0, import_react20.useMemo)(() => {
10837
+ const formattedValue = (0, import_react21.useMemo)(() => {
10740
10838
  let value = formValue;
10741
10839
  if (valueFormatter) value = valueFormatter.format(value);
10742
10840
  if (mask) value = (0, import_mask2.format)(value != null ? value : "", mask);
@@ -10748,8 +10846,8 @@ var TextFormField = (_a) => {
10748
10846
  if (valueFormatter) value = valueFormatter.unformat(value);
10749
10847
  formChange(value);
10750
10848
  };
10751
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Flex, { direction: "column", children: [
10752
- label && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10849
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Flex, { direction: "column", children: [
10850
+ label && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10753
10851
  FormLabel,
10754
10852
  {
10755
10853
  name,
@@ -10758,7 +10856,7 @@ var TextFormField = (_a) => {
10758
10856
  haveError
10759
10857
  }
10760
10858
  ),
10761
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10859
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10762
10860
  TextField,
10763
10861
  __spreadProps(__spreadValues(__spreadValues({
10764
10862
  mask,
@@ -10769,13 +10867,13 @@ var TextFormField = (_a) => {
10769
10867
  value: formattedValue
10770
10868
  })
10771
10869
  ),
10772
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ErrorFormMessage, { message: errorMsg })
10870
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ErrorFormMessage, { message: errorMsg })
10773
10871
  ] });
10774
10872
  };
10775
10873
 
10776
10874
  // src/components/FormFields/Form.tsx
10777
10875
  var import_react_hook_form3 = require("react-hook-form");
10778
- var import_jsx_runtime35 = require("react/jsx-runtime");
10876
+ var import_jsx_runtime36 = require("react/jsx-runtime");
10779
10877
  var Form = (_a) => {
10780
10878
  var _b = _a, {
10781
10879
  onSubmit,
@@ -10787,7 +10885,7 @@ var Form = (_a) => {
10787
10885
  const formMethods = (0, import_react_hook_form3.useForm)(__spreadValues({
10788
10886
  mode: "onTouched"
10789
10887
  }, props));
10790
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_hook_form3.FormProvider, __spreadProps(__spreadValues({}, formMethods), { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("form", { onSubmit: formMethods.handleSubmit(onSubmit), children: (() => {
10888
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_hook_form3.FormProvider, __spreadProps(__spreadValues({}, formMethods), { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("form", { onSubmit: formMethods.handleSubmit(onSubmit), children: (() => {
10791
10889
  if (typeof children === "function") {
10792
10890
  return children(formMethods);
10793
10891
  }
@@ -10797,7 +10895,7 @@ var Form = (_a) => {
10797
10895
 
10798
10896
  // src/components/FormFields/MultiSelectFormField.tsx
10799
10897
  var import_react_hook_form4 = require("react-hook-form");
10800
- var import_jsx_runtime36 = require("react/jsx-runtime");
10898
+ var import_jsx_runtime37 = require("react/jsx-runtime");
10801
10899
  var MultiSelectFormField = (_a) => {
10802
10900
  var _b = _a, {
10803
10901
  name,
@@ -10828,8 +10926,8 @@ var MultiSelectFormField = (_a) => {
10828
10926
  const handleChange = (v) => {
10829
10927
  onChange(v);
10830
10928
  };
10831
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Flex, { direction: "column", children: [
10832
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
10929
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Flex, { direction: "column", children: [
10930
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
10833
10931
  FormLabel,
10834
10932
  {
10835
10933
  name,
@@ -10838,7 +10936,7 @@ var MultiSelectFormField = (_a) => {
10838
10936
  haveError
10839
10937
  }
10840
10938
  ),
10841
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
10939
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
10842
10940
  MultiSelect,
10843
10941
  __spreadValues({
10844
10942
  value,
@@ -10850,7 +10948,7 @@ var MultiSelectFormField = (_a) => {
10850
10948
  maxHeight
10851
10949
  }, rest)
10852
10950
  ),
10853
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ErrorFormMessage, { message: errorMsg })
10951
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ErrorFormMessage, { message: errorMsg })
10854
10952
  ] });
10855
10953
  };
10856
10954
 
@@ -10868,13 +10966,13 @@ var minMaxLength = (min, max, errorMsg) => (value) => {
10868
10966
  };
10869
10967
 
10870
10968
  // src/components/FormFields/PhoneFormField.tsx
10871
- var import_jsx_runtime37 = require("react/jsx-runtime");
10969
+ var import_jsx_runtime38 = require("react/jsx-runtime");
10872
10970
  var PhoneFormField = ({
10873
10971
  name,
10874
10972
  label,
10875
10973
  required
10876
10974
  }) => {
10877
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
10975
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10878
10976
  TextFormField,
10879
10977
  {
10880
10978
  name,
@@ -10904,7 +11002,7 @@ var PhoneFormField = ({
10904
11002
 
10905
11003
  // src/components/FormFields/CPFFormField.tsx
10906
11004
  var import_react_hook_form5 = require("react-hook-form");
10907
- var import_jsx_runtime38 = require("react/jsx-runtime");
11005
+ var import_jsx_runtime39 = require("react/jsx-runtime");
10908
11006
  var isValidCPF = (cpf) => {
10909
11007
  cpf = cpf.replace(/[^\d]+/g, "");
10910
11008
  if (cpf.length !== 11 || /^(\d)\1{10}$/.test(cpf)) return false;
@@ -10930,8 +11028,8 @@ var CPFFormField = ({
10930
11028
  }) => {
10931
11029
  const { control, setValue } = (0, import_react_hook_form5.useFormContext)();
10932
11030
  const foreigner = (0, import_react_hook_form5.useWatch)({ name: "foreigner", control });
10933
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Flex, { direction: "column", children: [
10934
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
11031
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Flex, { direction: "column", children: [
11032
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
10935
11033
  TextFormField,
10936
11034
  {
10937
11035
  name,
@@ -10949,7 +11047,7 @@ var CPFFormField = ({
10949
11047
  disabled: foreigner
10950
11048
  }
10951
11049
  ),
10952
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
11050
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
10953
11051
  CheckboxGroup,
10954
11052
  {
10955
11053
  value: foreigner ? ["true"] : [],
@@ -10961,14 +11059,14 @@ var CPFFormField = ({
10961
11059
  setValue(name, "");
10962
11060
  }
10963
11061
  },
10964
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CheckboxItem, { value: "true", children: foreignerLabel })
11062
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CheckboxItem, { value: "true", children: foreignerLabel })
10965
11063
  }
10966
11064
  )
10967
11065
  ] });
10968
11066
  };
10969
11067
 
10970
11068
  // src/components/FormFields/CNPJFormField.tsx
10971
- var import_jsx_runtime39 = require("react/jsx-runtime");
11069
+ var import_jsx_runtime40 = require("react/jsx-runtime");
10972
11070
  var matchesNonDigit = new RegExp(/\D+/g);
10973
11071
  var getWeights = (size, start, end) => {
10974
11072
  const weights = [];
@@ -11017,7 +11115,7 @@ var CNPJFormField = ({
11017
11115
  placeholder,
11018
11116
  validationErrorMessage
11019
11117
  }) => {
11020
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
11118
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
11021
11119
  TextFormField,
11022
11120
  {
11023
11121
  name,
@@ -11038,7 +11136,7 @@ var CNPJFormField = ({
11038
11136
  };
11039
11137
 
11040
11138
  // src/components/FormFields/BirthDateFormField.tsx
11041
- var import_jsx_runtime40 = require("react/jsx-runtime");
11139
+ var import_jsx_runtime41 = require("react/jsx-runtime");
11042
11140
  var isValidDate = (day, month, year) => {
11043
11141
  const date = new Date(year, month - 1, day);
11044
11142
  return date.getFullYear() === year && date.getMonth() === month - 1 && date.getDate() === day;
@@ -11075,7 +11173,7 @@ var BirthDateFormField = ({
11075
11173
  language
11076
11174
  }) => {
11077
11175
  const inputPlaceholder = placeholder || (language === "pt-BR" ? "DD/MM/AAAA" : "MM/DD/YYYY");
11078
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
11176
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
11079
11177
  TextFormField,
11080
11178
  {
11081
11179
  name,
@@ -11096,7 +11194,7 @@ var BirthDateFormField = ({
11096
11194
  };
11097
11195
 
11098
11196
  // src/components/FormFields/IdentityDocumentNumberFormField.tsx
11099
- var import_jsx_runtime41 = require("react/jsx-runtime");
11197
+ var import_jsx_runtime42 = require("react/jsx-runtime");
11100
11198
  var IdentityDocumentNumberFormField = ({
11101
11199
  name,
11102
11200
  label,
@@ -11104,7 +11202,7 @@ var IdentityDocumentNumberFormField = ({
11104
11202
  placeholder,
11105
11203
  validationErrorMessage
11106
11204
  }) => {
11107
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
11205
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11108
11206
  TextFormField,
11109
11207
  {
11110
11208
  name,
@@ -11133,7 +11231,7 @@ function getNestedValue(obj, path) {
11133
11231
  }
11134
11232
 
11135
11233
  // src/components/FormFields/SelectFormField.tsx
11136
- var import_jsx_runtime42 = require("react/jsx-runtime");
11234
+ var import_jsx_runtime43 = require("react/jsx-runtime");
11137
11235
  var SelectFormField = ({
11138
11236
  name,
11139
11237
  label,
@@ -11157,8 +11255,8 @@ var SelectFormField = ({
11157
11255
  const validationRules = __spreadValues({
11158
11256
  required: required ? validationErrorMessage : false
11159
11257
  }, validation);
11160
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Flex, { direction: "column", children: [
11161
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11258
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Flex, { direction: "column", children: [
11259
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11162
11260
  FormLabel,
11163
11261
  {
11164
11262
  name,
@@ -11167,7 +11265,7 @@ var SelectFormField = ({
11167
11265
  haveError
11168
11266
  }
11169
11267
  ),
11170
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11268
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11171
11269
  import_react_hook_form6.Controller,
11172
11270
  {
11173
11271
  control,
@@ -11176,7 +11274,7 @@ var SelectFormField = ({
11176
11274
  defaultValue: defaultValue || "",
11177
11275
  render: ({ field: { value, onChange } }) => {
11178
11276
  const selectedOption = options.find((opt) => opt.value === value);
11179
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
11277
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
11180
11278
  DropdownMenu2,
11181
11279
  {
11182
11280
  placeholder: (selectedOption == null ? void 0 : selectedOption.label) || placeholder,
@@ -11184,7 +11282,7 @@ var SelectFormField = ({
11184
11282
  typography: "labelLarge",
11185
11283
  color: haveError ? "error" : "default",
11186
11284
  children: [
11187
- options.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11285
+ options.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11188
11286
  DropdownMenuItem,
11189
11287
  {
11190
11288
  value: option.value,
@@ -11195,7 +11293,7 @@ var SelectFormField = ({
11195
11293
  },
11196
11294
  `${option.value}${index}`
11197
11295
  )),
11198
- showMoreButton && showMoreButtonOnClick && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11296
+ showMoreButton && showMoreButtonOnClick && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11199
11297
  Button,
11200
11298
  {
11201
11299
  variant: "menuDropdownItem",
@@ -11213,7 +11311,7 @@ var SelectFormField = ({
11213
11311
  }
11214
11312
  }
11215
11313
  ),
11216
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ErrorFormMessage, { message: errorMsg })
11314
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ErrorFormMessage, { message: errorMsg })
11217
11315
  ] });
11218
11316
  };
11219
11317
 
@@ -11246,7 +11344,7 @@ function useCountries(language = "pt-BR") {
11246
11344
  }
11247
11345
 
11248
11346
  // src/components/FormFields/AddressFormFields/CountryFormField.tsx
11249
- var import_jsx_runtime43 = require("react/jsx-runtime");
11347
+ var import_jsx_runtime44 = require("react/jsx-runtime");
11250
11348
  function CountryFormField({
11251
11349
  name,
11252
11350
  label,
@@ -11254,7 +11352,7 @@ function CountryFormField({
11254
11352
  language = "pt-BR"
11255
11353
  }) {
11256
11354
  const countries2 = useCountries(language);
11257
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Flex, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11355
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Flex, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11258
11356
  SelectFormField,
11259
11357
  {
11260
11358
  label,
@@ -11267,7 +11365,7 @@ function CountryFormField({
11267
11365
  }
11268
11366
 
11269
11367
  // src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx
11270
- var import_jsx_runtime44 = require("react/jsx-runtime");
11368
+ var import_jsx_runtime45 = require("react/jsx-runtime");
11271
11369
  var PostalCodeFormField = ({
11272
11370
  name,
11273
11371
  label,
@@ -11276,7 +11374,7 @@ var PostalCodeFormField = ({
11276
11374
  validationErrorMessage,
11277
11375
  onChange
11278
11376
  }) => {
11279
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11377
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11280
11378
  TextFormField,
11281
11379
  {
11282
11380
  name,
@@ -11329,14 +11427,14 @@ var brazilianStates = [
11329
11427
  ];
11330
11428
 
11331
11429
  // src/components/FormFields/AddressFormFields/StateFormField.tsx
11332
- var import_jsx_runtime45 = require("react/jsx-runtime");
11430
+ var import_jsx_runtime46 = require("react/jsx-runtime");
11333
11431
  function StateFormField({
11334
11432
  name,
11335
11433
  label,
11336
11434
  required,
11337
11435
  isBrazil
11338
11436
  }) {
11339
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: isBrazil ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11437
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: isBrazil ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11340
11438
  SelectFormField,
11341
11439
  {
11342
11440
  name,
@@ -11344,13 +11442,13 @@ function StateFormField({
11344
11442
  required,
11345
11443
  label
11346
11444
  }
11347
- ) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TextFormField, { name, required, label }) });
11445
+ ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TextFormField, { name, required, label }) });
11348
11446
  }
11349
11447
 
11350
11448
  // src/components/FormFields/AddressFormFields/CityFormField.tsx
11351
- var import_react21 = require("react");
11449
+ var import_react22 = require("react");
11352
11450
  var import_react_hook_form7 = require("react-hook-form");
11353
- var import_jsx_runtime46 = require("react/jsx-runtime");
11451
+ var import_jsx_runtime47 = require("react/jsx-runtime");
11354
11452
  function CityFormField({
11355
11453
  name,
11356
11454
  label,
@@ -11361,9 +11459,9 @@ function CityFormField({
11361
11459
  }) {
11362
11460
  const { control, watch } = (0, import_react_hook_form7.useFormContext)();
11363
11461
  const selectedState = watch(stateName);
11364
- const [cities, setCities] = (0, import_react21.useState)([]);
11365
- const [loading, setLoading] = (0, import_react21.useState)(false);
11366
- (0, import_react21.useEffect)(() => {
11462
+ const [cities, setCities] = (0, import_react22.useState)([]);
11463
+ const [loading, setLoading] = (0, import_react22.useState)(false);
11464
+ (0, import_react22.useEffect)(() => {
11367
11465
  if (!isBrazil) {
11368
11466
  setCities([]);
11369
11467
  return;
@@ -11402,13 +11500,13 @@ function CityFormField({
11402
11500
  }
11403
11501
  fetchCities();
11404
11502
  }, [selectedState, isBrazil]);
11405
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: isBrazil && cities.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11503
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, { children: isBrazil && cities.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11406
11504
  import_react_hook_form7.Controller,
11407
11505
  {
11408
11506
  name,
11409
11507
  control,
11410
11508
  rules: { required },
11411
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11509
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11412
11510
  SelectFormField,
11413
11511
  __spreadProps(__spreadValues({
11414
11512
  label,
@@ -11422,7 +11520,7 @@ function CityFormField({
11422
11520
  })
11423
11521
  )
11424
11522
  }
11425
- ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11523
+ ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11426
11524
  TextFormField,
11427
11525
  {
11428
11526
  name,
@@ -11434,7 +11532,7 @@ function CityFormField({
11434
11532
  }
11435
11533
 
11436
11534
  // src/components/FormFields/AddressFormFields/index.tsx
11437
- var import_jsx_runtime47 = require("react/jsx-runtime");
11535
+ var import_jsx_runtime48 = require("react/jsx-runtime");
11438
11536
  function getNestedValue2(obj, path) {
11439
11537
  return path.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], obj);
11440
11538
  }
@@ -11484,8 +11582,8 @@ function AddressFormFields({
11484
11582
  console.error("Erro ao buscar CEP");
11485
11583
  });
11486
11584
  };
11487
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AddressContainerStyled, { layout, children: [
11488
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11585
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(AddressContainerStyled, { layout, children: [
11586
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11489
11587
  FormLabel,
11490
11588
  {
11491
11589
  name,
@@ -11494,7 +11592,7 @@ function AddressFormFields({
11494
11592
  haveError
11495
11593
  }
11496
11594
  ),
11497
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11595
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11498
11596
  CountryFormField,
11499
11597
  {
11500
11598
  name: `${name}.country`,
@@ -11503,7 +11601,7 @@ function AddressFormFields({
11503
11601
  language: "pt-BR"
11504
11602
  }
11505
11603
  ),
11506
- isBrazil ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11604
+ isBrazil ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11507
11605
  PostalCodeFormField,
11508
11606
  {
11509
11607
  name: `${name}.zip_code`,
@@ -11513,7 +11611,7 @@ function AddressFormFields({
11513
11611
  validationErrorMessage: "CEP inv\xE1lido",
11514
11612
  onChange: handleCEPChange
11515
11613
  }
11516
- ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11614
+ ) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11517
11615
  TextFormField,
11518
11616
  {
11519
11617
  name: `${name}.zip_code`,
@@ -11521,7 +11619,7 @@ function AddressFormFields({
11521
11619
  required
11522
11620
  }
11523
11621
  ),
11524
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11622
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11525
11623
  StateFormField,
11526
11624
  {
11527
11625
  name: `${name}.state`,
@@ -11530,7 +11628,7 @@ function AddressFormFields({
11530
11628
  isBrazil
11531
11629
  }
11532
11630
  ),
11533
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11631
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11534
11632
  CityFormField,
11535
11633
  {
11536
11634
  name: `${name}.city`,
@@ -11540,8 +11638,8 @@ function AddressFormFields({
11540
11638
  isBrazil
11541
11639
  }
11542
11640
  ),
11543
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TextFormField, { name: `${name}.street`, label: "Rua", required }),
11544
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11641
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(TextFormField, { name: `${name}.street`, label: "Rua", required }),
11642
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11545
11643
  TextFormField,
11546
11644
  {
11547
11645
  name: `${name}.number`,
@@ -11549,7 +11647,7 @@ function AddressFormFields({
11549
11647
  required
11550
11648
  }
11551
11649
  ),
11552
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11650
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11553
11651
  TextFormField,
11554
11652
  {
11555
11653
  name: `${name}.neighborhood`,
@@ -11557,13 +11655,13 @@ function AddressFormFields({
11557
11655
  required
11558
11656
  }
11559
11657
  ),
11560
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TextFormField, { name: `${name}.complement`, label: "Complemento" })
11658
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(TextFormField, { name: `${name}.complement`, label: "Complemento" })
11561
11659
  ] });
11562
11660
  }
11563
11661
 
11564
11662
  // src/components/FormFields/RadioGroupFormField.tsx
11565
11663
  var import_react_hook_form9 = require("react-hook-form");
11566
- var import_jsx_runtime48 = require("react/jsx-runtime");
11664
+ var import_jsx_runtime49 = require("react/jsx-runtime");
11567
11665
  var RadioGroupFormField = ({
11568
11666
  name,
11569
11667
  label,
@@ -11585,8 +11683,8 @@ var RadioGroupFormField = ({
11585
11683
  const validationRules = {
11586
11684
  required: required ? validationErrorMessage : false
11587
11685
  };
11588
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Flex, { direction: "column", children: [
11589
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11686
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Flex, { direction: "column", children: [
11687
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11590
11688
  FormLabel,
11591
11689
  {
11592
11690
  name,
@@ -11595,14 +11693,14 @@ var RadioGroupFormField = ({
11595
11693
  haveError
11596
11694
  }
11597
11695
  ),
11598
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11696
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11599
11697
  import_react_hook_form9.Controller,
11600
11698
  {
11601
11699
  name,
11602
11700
  control,
11603
11701
  defaultValue: defaultValue || "",
11604
11702
  rules: validationRules,
11605
- render: ({ field: { value, onChange } }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11703
+ render: ({ field: { value, onChange } }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11606
11704
  RadioGroup,
11607
11705
  {
11608
11706
  value,
@@ -11610,18 +11708,18 @@ var RadioGroupFormField = ({
11610
11708
  color: haveError ? "error" : color,
11611
11709
  fontWeight,
11612
11710
  disabled,
11613
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Flex, { direction: "column", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(RadioItem, { value: option.value, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
11711
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Flex, { direction: "column", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(RadioItem, { value: option.value, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
11614
11712
  }
11615
11713
  )
11616
11714
  }
11617
11715
  ),
11618
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ErrorFormMessage, { message: errorMsg })
11716
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ErrorFormMessage, { message: errorMsg })
11619
11717
  ] });
11620
11718
  };
11621
11719
 
11622
11720
  // src/components/FormFields/CheckboxGroupFormField.tsx
11623
11721
  var import_react_hook_form10 = require("react-hook-form");
11624
- var import_jsx_runtime49 = require("react/jsx-runtime");
11722
+ var import_jsx_runtime50 = require("react/jsx-runtime");
11625
11723
  var CheckboxGroupFormField = ({
11626
11724
  name,
11627
11725
  label,
@@ -11644,8 +11742,8 @@ var CheckboxGroupFormField = ({
11644
11742
  required: required ? validationErrorMessage : false,
11645
11743
  validate: required ? (value) => (value == null ? void 0 : value.length) > 0 || validationErrorMessage : void 0
11646
11744
  };
11647
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Flex, { direction: "column", children: [
11648
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11745
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Flex, { direction: "column", children: [
11746
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11649
11747
  FormLabel,
11650
11748
  {
11651
11749
  name,
@@ -11654,14 +11752,14 @@ var CheckboxGroupFormField = ({
11654
11752
  haveError
11655
11753
  }
11656
11754
  ),
11657
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11755
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11658
11756
  import_react_hook_form10.Controller,
11659
11757
  {
11660
11758
  name,
11661
11759
  control,
11662
11760
  rules: validationRules,
11663
11761
  defaultValue,
11664
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11762
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11665
11763
  CheckboxGroup,
11666
11764
  {
11667
11765
  name,
@@ -11670,7 +11768,7 @@ var CheckboxGroupFormField = ({
11670
11768
  color: haveError ? "error" : color,
11671
11769
  fontWeight,
11672
11770
  disabled,
11673
- children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11771
+ children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11674
11772
  CheckboxItem,
11675
11773
  {
11676
11774
  value: option.value,
@@ -11683,13 +11781,13 @@ var CheckboxGroupFormField = ({
11683
11781
  )
11684
11782
  }
11685
11783
  ),
11686
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ErrorFormMessage, { message: errorMsg })
11784
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ErrorFormMessage, { message: errorMsg })
11687
11785
  ] });
11688
11786
  };
11689
11787
 
11690
11788
  // src/components/FormFields/SwitchFormField.tsx
11691
11789
  var import_react_hook_form11 = require("react-hook-form");
11692
- var import_jsx_runtime50 = require("react/jsx-runtime");
11790
+ var import_jsx_runtime51 = require("react/jsx-runtime");
11693
11791
  var SwitchFormField = ({
11694
11792
  name,
11695
11793
  label,
@@ -11703,15 +11801,15 @@ var SwitchFormField = ({
11703
11801
  if (watch) {
11704
11802
  watchForm(name);
11705
11803
  }
11706
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Flex, { justify: "between", style: { margin: "1rem 0" }, children: [
11707
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11708
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11804
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Flex, { justify: "between", style: { margin: "1rem 0" }, children: [
11805
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11806
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
11709
11807
  import_react_hook_form11.Controller,
11710
11808
  {
11711
11809
  control,
11712
11810
  name,
11713
11811
  defaultValue,
11714
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11812
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
11715
11813
  Switch,
11716
11814
  {
11717
11815
  checked: field.value,
@@ -11724,14 +11822,14 @@ var SwitchFormField = ({
11724
11822
  };
11725
11823
 
11726
11824
  // src/components/FormFields/EmailFormField.tsx
11727
- var import_jsx_runtime51 = require("react/jsx-runtime");
11825
+ var import_jsx_runtime52 = require("react/jsx-runtime");
11728
11826
  var EmailFormField = ({
11729
11827
  name,
11730
11828
  label,
11731
11829
  required,
11732
11830
  placeholder
11733
11831
  }) => {
11734
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
11832
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
11735
11833
  TextFormField,
11736
11834
  {
11737
11835
  name,
@@ -11748,10 +11846,10 @@ var EmailFormField = ({
11748
11846
  var import_react_hook_form12 = require("react-hook-form");
11749
11847
 
11750
11848
  // src/components/RichEditor/RichEditor.tsx
11751
- var import_react23 = require("react");
11849
+ var import_react24 = require("react");
11752
11850
 
11753
11851
  // src/components/RichEditor/QuillComponent.tsx
11754
- var import_react22 = require("react");
11852
+ var import_react23 = require("react");
11755
11853
  var import_react_quilljs = require("react-quilljs");
11756
11854
 
11757
11855
  // src/utils/uploadService.ts
@@ -12808,7 +12906,7 @@ var QuillEditor = styled("div", {
12808
12906
  });
12809
12907
 
12810
12908
  // src/components/RichEditor/QuillComponent.tsx
12811
- var import_jsx_runtime52 = require("react/jsx-runtime");
12909
+ var import_jsx_runtime53 = require("react/jsx-runtime");
12812
12910
  var QuillComponent = ({
12813
12911
  value = "",
12814
12912
  onChange,
@@ -12821,12 +12919,12 @@ var QuillComponent = ({
12821
12919
  onCharacterCountChange,
12822
12920
  maxLength
12823
12921
  }) => {
12824
- const [showVideoModal, setShowVideoModal] = (0, import_react22.useState)(false);
12825
- const [videoUrl, setVideoUrl] = (0, import_react22.useState)("");
12826
- const [showLinkModal, setShowLinkModal] = (0, import_react22.useState)(false);
12827
- const [linkUrl, setLinkUrl] = (0, import_react22.useState)("");
12828
- const videoModalRef = (0, import_react22.useRef)(null);
12829
- const linkModalRef = (0, import_react22.useRef)(null);
12922
+ const [showVideoModal, setShowVideoModal] = (0, import_react23.useState)(false);
12923
+ const [videoUrl, setVideoUrl] = (0, import_react23.useState)("");
12924
+ const [showLinkModal, setShowLinkModal] = (0, import_react23.useState)(false);
12925
+ const [linkUrl, setLinkUrl] = (0, import_react23.useState)("");
12926
+ const videoModalRef = (0, import_react23.useRef)(null);
12927
+ const linkModalRef = (0, import_react23.useRef)(null);
12830
12928
  const { addToast, removeToast } = useToast();
12831
12929
  const formatHTML = (html) => {
12832
12930
  const parser = new DOMParser();
@@ -12899,7 +12997,7 @@ var QuillComponent = ({
12899
12997
  placeholder,
12900
12998
  readOnly: disabled
12901
12999
  });
12902
- const handleImageUpload = (0, import_react22.useCallback)(
13000
+ const handleImageUpload = (0, import_react23.useCallback)(
12903
13001
  (file) => __async(null, null, function* () {
12904
13002
  if (disabled || !quill || !uploadConfig) return;
12905
13003
  try {
@@ -12931,7 +13029,7 @@ var QuillComponent = ({
12931
13029
  }),
12932
13030
  [disabled, quill, addToast, removeToast, uploadConfig, onChange]
12933
13031
  );
12934
- (0, import_react22.useEffect)(() => {
13032
+ (0, import_react23.useEffect)(() => {
12935
13033
  if (quill && value) {
12936
13034
  const currentContent = quill.root.innerHTML;
12937
13035
  if (currentContent !== value) {
@@ -12945,7 +13043,7 @@ var QuillComponent = ({
12945
13043
  }
12946
13044
  }
12947
13045
  }, [quill, value]);
12948
- (0, import_react22.useEffect)(() => {
13046
+ (0, import_react23.useEffect)(() => {
12949
13047
  if (quill) {
12950
13048
  quill.on("text-change", (delta, oldDelta, source) => {
12951
13049
  if (source === "user") {
@@ -13000,7 +13098,7 @@ var QuillComponent = ({
13000
13098
  }, 2e3);
13001
13099
  }
13002
13100
  }, [quill, onChange, handleImageUpload, onCharacterCountChange]);
13003
- (0, import_react22.useEffect)(() => {
13101
+ (0, import_react23.useEffect)(() => {
13004
13102
  if (quill) {
13005
13103
  quill.enable(!disabled);
13006
13104
  if (!disabled) {
@@ -13011,11 +13109,11 @@ var QuillComponent = ({
13011
13109
  }
13012
13110
  }
13013
13111
  }, [quill, disabled]);
13014
- const handleLinkCancel = (0, import_react22.useCallback)(() => {
13112
+ const handleLinkCancel = (0, import_react23.useCallback)(() => {
13015
13113
  setLinkUrl("");
13016
13114
  setShowLinkModal(false);
13017
13115
  }, []);
13018
- const handleLinkSubmit = (0, import_react22.useCallback)(() => {
13116
+ const handleLinkSubmit = (0, import_react23.useCallback)(() => {
13019
13117
  if (!linkUrl.trim() || !quill) return;
13020
13118
  const url = linkUrl.trim();
13021
13119
  const selection = quill.getSelection();
@@ -13030,11 +13128,11 @@ var QuillComponent = ({
13030
13128
  setLinkUrl("");
13031
13129
  setShowLinkModal(false);
13032
13130
  }, [linkUrl, quill]);
13033
- const handleVideoCancel = (0, import_react22.useCallback)(() => {
13131
+ const handleVideoCancel = (0, import_react23.useCallback)(() => {
13034
13132
  setVideoUrl("");
13035
13133
  setShowVideoModal(false);
13036
13134
  }, []);
13037
- const handleVideoSubmit = (0, import_react22.useCallback)(() => {
13135
+ const handleVideoSubmit = (0, import_react23.useCallback)(() => {
13038
13136
  var _a, _b;
13039
13137
  if (!videoUrl.trim() || !quill) return;
13040
13138
  let processedUrl = videoUrl.trim();
@@ -13067,7 +13165,7 @@ var QuillComponent = ({
13067
13165
  setVideoUrl("");
13068
13166
  setShowVideoModal(false);
13069
13167
  }, [videoUrl, quill]);
13070
- (0, import_react22.useEffect)(() => {
13168
+ (0, import_react23.useEffect)(() => {
13071
13169
  const handleClickOutside = (event) => {
13072
13170
  if (showVideoModal && videoModalRef.current && !videoModalRef.current.contains(event.target)) {
13073
13171
  handleVideoCancel();
@@ -13079,9 +13177,9 @@ var QuillComponent = ({
13079
13177
  document.addEventListener("mousedown", handleClickOutside);
13080
13178
  return () => document.removeEventListener("mousedown", handleClickOutside);
13081
13179
  }, [showVideoModal, showLinkModal, handleVideoCancel, handleLinkCancel]);
13082
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(QuillContainer, { className, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(QuillEditor, { children: [
13083
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { ref: quillRef }),
13084
- showVideoModal && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13180
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(QuillContainer, { className, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(QuillEditor, { children: [
13181
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { ref: quillRef }),
13182
+ showVideoModal && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
13085
13183
  "div",
13086
13184
  {
13087
13185
  ref: videoModalRef,
@@ -13098,15 +13196,15 @@ var QuillComponent = ({
13098
13196
  zIndex: 1e3,
13099
13197
  width: "fit-content"
13100
13198
  },
13101
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Flex, { gap: 8, align: "center", children: [
13102
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13199
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Flex, { gap: 8, align: "center", children: [
13200
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
13103
13201
  Text,
13104
13202
  {
13105
13203
  style: { fontSize: "14px", fontWeight: "500", color: "#333" },
13106
13204
  children: "V\xEDdeo:"
13107
13205
  }
13108
13206
  ),
13109
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13207
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
13110
13208
  "input",
13111
13209
  {
13112
13210
  type: "text",
@@ -13130,7 +13228,7 @@ var QuillComponent = ({
13130
13228
  autoFocus: true
13131
13229
  }
13132
13230
  ),
13133
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13231
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
13134
13232
  "button",
13135
13233
  {
13136
13234
  onClick: handleVideoSubmit,
@@ -13151,7 +13249,7 @@ var QuillComponent = ({
13151
13249
  ] })
13152
13250
  }
13153
13251
  ),
13154
- showLinkModal && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13252
+ showLinkModal && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
13155
13253
  "div",
13156
13254
  {
13157
13255
  ref: linkModalRef,
@@ -13168,15 +13266,15 @@ var QuillComponent = ({
13168
13266
  zIndex: 1e3,
13169
13267
  width: "fit-content"
13170
13268
  },
13171
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Flex, { gap: 8, align: "center", children: [
13172
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13269
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Flex, { gap: 8, align: "center", children: [
13270
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
13173
13271
  Text,
13174
13272
  {
13175
13273
  style: { fontSize: "14px", fontWeight: "500", color: "#333" },
13176
13274
  children: "Link:"
13177
13275
  }
13178
13276
  ),
13179
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13277
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
13180
13278
  "input",
13181
13279
  {
13182
13280
  type: "text",
@@ -13201,7 +13299,7 @@ var QuillComponent = ({
13201
13299
  autoFocus: true
13202
13300
  }
13203
13301
  ),
13204
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13302
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
13205
13303
  "button",
13206
13304
  {
13207
13305
  onClick: handleLinkSubmit,
@@ -13227,21 +13325,21 @@ var QuillComponent = ({
13227
13325
  var QuillComponent_default = QuillComponent;
13228
13326
 
13229
13327
  // src/components/RichEditor/RichEditor.tsx
13230
- var import_jsx_runtime53 = require("react/jsx-runtime");
13328
+ var import_jsx_runtime54 = require("react/jsx-runtime");
13231
13329
  var RichEditor = (props) => {
13232
- const [isClient, setIsClient] = (0, import_react23.useState)(false);
13233
- (0, import_react23.useEffect)(() => {
13330
+ const [isClient, setIsClient] = (0, import_react24.useState)(false);
13331
+ (0, import_react24.useEffect)(() => {
13234
13332
  setIsClient(typeof window !== "undefined");
13235
13333
  }, []);
13236
13334
  if (!isClient) return null;
13237
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ToastProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(QuillComponent_default, __spreadValues({}, props)) }) });
13335
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ToastProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(QuillComponent_default, __spreadValues({}, props)) }) });
13238
13336
  };
13239
13337
  var RichEditor_default = RichEditor;
13240
13338
 
13241
13339
  // src/components/RichEditor/RichTextPresenter.tsx
13242
- var import_jsx_runtime54 = require("react/jsx-runtime");
13340
+ var import_jsx_runtime55 = require("react/jsx-runtime");
13243
13341
  var RichTextPresenter = ({ richText }) => {
13244
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(QuillEditor, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
13342
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuillEditor, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
13245
13343
  "div",
13246
13344
  {
13247
13345
  className: "ql-editor",
@@ -13252,8 +13350,8 @@ var RichTextPresenter = ({ richText }) => {
13252
13350
  var RichTextPresenter_default = RichTextPresenter;
13253
13351
 
13254
13352
  // src/components/FormFields/RichEditorFormField.tsx
13255
- var import_react24 = require("react");
13256
- var import_jsx_runtime55 = require("react/jsx-runtime");
13353
+ var import_react25 = require("react");
13354
+ var import_jsx_runtime56 = require("react/jsx-runtime");
13257
13355
  var RichEditorFormField = (_a) => {
13258
13356
  var _b = _a, {
13259
13357
  name,
@@ -13287,7 +13385,7 @@ var RichEditorFormField = (_a) => {
13287
13385
  },
13288
13386
  defaultValue: ""
13289
13387
  });
13290
- const [caracterQuantity, setCaracterQuantity] = (0, import_react24.useState)(maxLength);
13388
+ const [caracterQuantity, setCaracterQuantity] = (0, import_react25.useState)(maxLength);
13291
13389
  const handleCharacterCountChange = (count) => {
13292
13390
  if (maxLength !== void 0) {
13293
13391
  setCaracterQuantity(Math.max(0, maxLength - count));
@@ -13296,9 +13394,9 @@ var RichEditorFormField = (_a) => {
13296
13394
  const fieldError = fieldState.error;
13297
13395
  const haveError = !!fieldError;
13298
13396
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
13299
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Flex, { direction: "column", children: [
13300
- maxLength ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Flex, { direction: "row", justify: "between", children: [
13301
- label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
13397
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { direction: "column", children: [
13398
+ maxLength ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { direction: "row", justify: "between", children: [
13399
+ label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13302
13400
  FormLabel,
13303
13401
  {
13304
13402
  name,
@@ -13307,8 +13405,8 @@ var RichEditorFormField = (_a) => {
13307
13405
  haveError
13308
13406
  }
13309
13407
  ),
13310
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Badge, { color: "grey", size: "xs", children: caracterQuantity })
13311
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
13408
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Badge, { color: "grey", size: "xs", children: caracterQuantity })
13409
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13312
13410
  FormLabel,
13313
13411
  {
13314
13412
  name,
@@ -13317,7 +13415,7 @@ var RichEditorFormField = (_a) => {
13317
13415
  haveError
13318
13416
  }
13319
13417
  ) }),
13320
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
13418
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13321
13419
  RichEditor_default,
13322
13420
  __spreadProps(__spreadValues({}, props), {
13323
13421
  value: field.value,
@@ -13329,14 +13427,14 @@ var RichEditorFormField = (_a) => {
13329
13427
  simpleVersion
13330
13428
  })
13331
13429
  ),
13332
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorFormMessage, { message: errorMsg })
13430
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ErrorFormMessage, { message: errorMsg })
13333
13431
  ] });
13334
13432
  };
13335
13433
 
13336
13434
  // src/components/FormFields/CalendarFormField.tsx
13337
13435
  var import_react_hook_form13 = require("react-hook-form");
13338
- var import_react25 = require("react");
13339
- var import_jsx_runtime56 = require("react/jsx-runtime");
13436
+ var import_react26 = require("react");
13437
+ var import_jsx_runtime57 = require("react/jsx-runtime");
13340
13438
  var CalendarFormField = (_a) => {
13341
13439
  var _b = _a, {
13342
13440
  name,
@@ -13361,7 +13459,7 @@ var CalendarFormField = (_a) => {
13361
13459
  "maxYearsFromNow",
13362
13460
  "maxDate"
13363
13461
  ]);
13364
- const handleValidate = (0, import_react25.useCallback)(
13462
+ const handleValidate = (0, import_react26.useCallback)(
13365
13463
  (value) => {
13366
13464
  var _a2;
13367
13465
  if (value === void 0 || value === null) {
@@ -13387,8 +13485,8 @@ var CalendarFormField = (_a) => {
13387
13485
  const handleCalendarChange = (date) => {
13388
13486
  setSelected(date);
13389
13487
  };
13390
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13391
- label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13488
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13489
+ label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
13392
13490
  FormLabel,
13393
13491
  {
13394
13492
  name,
@@ -13397,7 +13495,7 @@ var CalendarFormField = (_a) => {
13397
13495
  haveError
13398
13496
  }
13399
13497
  ),
13400
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13498
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
13401
13499
  Calendar,
13402
13500
  __spreadValues({
13403
13501
  selected,
@@ -13411,14 +13509,14 @@ var CalendarFormField = (_a) => {
13411
13509
  maxYearsFromNow
13412
13510
  }, calendarProps)
13413
13511
  ),
13414
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ErrorFormMessage, { message: errorMsg })
13512
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ErrorFormMessage, { message: errorMsg })
13415
13513
  ] });
13416
13514
  };
13417
13515
 
13418
13516
  // src/components/FormFields/DoubleCalendarFormField.tsx
13419
- var import_react26 = require("react");
13517
+ var import_react27 = require("react");
13420
13518
  var import_react_hook_form14 = require("react-hook-form");
13421
- var import_jsx_runtime57 = require("react/jsx-runtime");
13519
+ var import_jsx_runtime58 = require("react/jsx-runtime");
13422
13520
  var DoubleCalendarFormField = (_a) => {
13423
13521
  var _b = _a, {
13424
13522
  name,
@@ -13443,7 +13541,7 @@ var DoubleCalendarFormField = (_a) => {
13443
13541
  "maxDate",
13444
13542
  "disabled"
13445
13543
  ]);
13446
- const handleValidate = (0, import_react26.useCallback)(
13544
+ const handleValidate = (0, import_react27.useCallback)(
13447
13545
  (value) => {
13448
13546
  var _a2;
13449
13547
  if (value === void 0 || value === null) {
@@ -13469,9 +13567,9 @@ var DoubleCalendarFormField = (_a) => {
13469
13567
  const handleCalendarChange = (range) => {
13470
13568
  setSelected(range);
13471
13569
  };
13472
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13473
- label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(FormLabel, { name, label, required, haveError }),
13474
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
13570
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13571
+ label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(FormLabel, { name, label, required, haveError }),
13572
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
13475
13573
  DoubleCalendar,
13476
13574
  __spreadValues({
13477
13575
  selected,
@@ -13486,14 +13584,14 @@ var DoubleCalendarFormField = (_a) => {
13486
13584
  maxDate
13487
13585
  }, calendarProps)
13488
13586
  ),
13489
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ErrorFormMessage, { message: errorMsg })
13587
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ErrorFormMessage, { message: errorMsg })
13490
13588
  ] });
13491
13589
  };
13492
13590
 
13493
13591
  // src/components/FormFields/TimePickerFormField.tsx
13494
13592
  var import_react_hook_form15 = require("react-hook-form");
13495
- var import_react27 = require("react");
13496
- var import_jsx_runtime58 = require("react/jsx-runtime");
13593
+ var import_react28 = require("react");
13594
+ var import_jsx_runtime59 = require("react/jsx-runtime");
13497
13595
  var TimePickerFormField = (_a) => {
13498
13596
  var _b = _a, {
13499
13597
  name,
@@ -13510,7 +13608,7 @@ var TimePickerFormField = (_a) => {
13510
13608
  "validationErrorMessage",
13511
13609
  "rules"
13512
13610
  ]);
13513
- const handleValidate = (0, import_react27.useCallback)(
13611
+ const handleValidate = (0, import_react28.useCallback)(
13514
13612
  (value) => {
13515
13613
  var _a2;
13516
13614
  if (value === void 0 || value === null || value === "") {
@@ -13536,8 +13634,8 @@ var TimePickerFormField = (_a) => {
13536
13634
  const handleTimePickerChange = (time) => {
13537
13635
  setSelected(time);
13538
13636
  };
13539
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13540
- label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
13637
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Flex, { direction: "column", style: { flex: "1" }, children: [
13638
+ label && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13541
13639
  FormLabel,
13542
13640
  {
13543
13641
  name,
@@ -13546,7 +13644,7 @@ var TimePickerFormField = (_a) => {
13546
13644
  haveError
13547
13645
  }
13548
13646
  ),
13549
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
13647
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13550
13648
  TimePicker,
13551
13649
  __spreadValues({
13552
13650
  selected,
@@ -13557,14 +13655,14 @@ var TimePickerFormField = (_a) => {
13557
13655
  hasError: haveError
13558
13656
  }, timePickerProps)
13559
13657
  ),
13560
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ErrorFormMessage, { message: errorMsg })
13658
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ErrorFormMessage, { message: errorMsg })
13561
13659
  ] });
13562
13660
  };
13563
13661
 
13564
13662
  // src/components/FormFields/DateAndTimeFormField.tsx
13565
13663
  var import_react_hook_form16 = require("react-hook-form");
13566
- var import_react28 = require("react");
13567
- var import_jsx_runtime59 = require("react/jsx-runtime");
13664
+ var import_react29 = require("react");
13665
+ var import_jsx_runtime60 = require("react/jsx-runtime");
13568
13666
  var DateAndTimeFormField = (_a) => {
13569
13667
  var _b = _a, {
13570
13668
  name,
@@ -13592,7 +13690,7 @@ var DateAndTimeFormField = (_a) => {
13592
13690
  "maxDate"
13593
13691
  ]);
13594
13692
  const { addToast } = useToast();
13595
- const handleDisabledClick = (0, import_react28.useCallback)(
13693
+ const handleDisabledClick = (0, import_react29.useCallback)(
13596
13694
  (event) => {
13597
13695
  if (!disabled) return;
13598
13696
  event.preventDefault();
@@ -13605,7 +13703,7 @@ var DateAndTimeFormField = (_a) => {
13605
13703
  },
13606
13704
  [addToast, disabled, disabledInfo]
13607
13705
  );
13608
- const handleDisabledMouseDown = (0, import_react28.useCallback)(
13706
+ const handleDisabledMouseDown = (0, import_react29.useCallback)(
13609
13707
  (event) => {
13610
13708
  if (!disabled) return;
13611
13709
  event.preventDefault();
@@ -13613,7 +13711,7 @@ var DateAndTimeFormField = (_a) => {
13613
13711
  },
13614
13712
  [disabled]
13615
13713
  );
13616
- const handleValidate = (0, import_react28.useCallback)(
13714
+ const handleValidate = (0, import_react29.useCallback)(
13617
13715
  (value) => {
13618
13716
  var _a2;
13619
13717
  if (value === void 0 || value === null || value === "") {
@@ -13636,7 +13734,7 @@ var DateAndTimeFormField = (_a) => {
13636
13734
  const haveError = !!fieldError;
13637
13735
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
13638
13736
  const { value: isoValue, onChange: setIsoValue } = field;
13639
- const { selectedDateFromIso, selectedTimeFromIso } = (0, import_react28.useMemo)(() => {
13737
+ const { selectedDateFromIso, selectedTimeFromIso } = (0, import_react29.useMemo)(() => {
13640
13738
  if (!isoValue) return { selectedDateFromIso: void 0, selectedTimeFromIso: void 0 };
13641
13739
  try {
13642
13740
  const date = new Date(isoValue);
@@ -13651,19 +13749,19 @@ var DateAndTimeFormField = (_a) => {
13651
13749
  return { selectedDateFromIso: void 0, selectedTimeFromIso: void 0 };
13652
13750
  }
13653
13751
  }, [isoValue]);
13654
- const [draftDate, setDraftDate] = (0, import_react28.useState)(selectedDateFromIso);
13655
- const [draftTime, setDraftTime] = (0, import_react28.useState)(selectedTimeFromIso);
13656
- (0, import_react28.useEffect)(() => {
13752
+ const [draftDate, setDraftDate] = (0, import_react29.useState)(selectedDateFromIso);
13753
+ const [draftTime, setDraftTime] = (0, import_react29.useState)(selectedTimeFromIso);
13754
+ (0, import_react29.useEffect)(() => {
13657
13755
  setDraftDate(selectedDateFromIso);
13658
13756
  setDraftTime(selectedTimeFromIso);
13659
13757
  }, [selectedDateFromIso, selectedTimeFromIso]);
13660
- const combineDateTime = (0, import_react28.useCallback)(
13758
+ const combineDateTime = (0, import_react29.useCallback)(
13661
13759
  (date, time) => {
13662
- if (!date || !time) {
13760
+ if (!date) {
13663
13761
  setIsoValue("");
13664
13762
  return;
13665
13763
  }
13666
- const [hours, minutes] = time.split(":").map(Number);
13764
+ const [hours, minutes] = (time != null ? time : "00:00").split(":").map(Number);
13667
13765
  const combined = new Date(date);
13668
13766
  combined.setHours(hours || 0, minutes || 0, 0, 0);
13669
13767
  setIsoValue(combined.toISOString());
@@ -13678,8 +13776,8 @@ var DateAndTimeFormField = (_a) => {
13678
13776
  setDraftTime(time);
13679
13777
  combineDateTime(draftDate, time);
13680
13778
  };
13681
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Flex, { direction: "column", children: [
13682
- label && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13779
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Flex, { direction: "column", children: [
13780
+ label && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13683
13781
  FormLabel,
13684
13782
  {
13685
13783
  name,
@@ -13688,14 +13786,14 @@ var DateAndTimeFormField = (_a) => {
13688
13786
  haveError
13689
13787
  }
13690
13788
  ),
13691
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
13789
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
13692
13790
  Flex,
13693
13791
  {
13694
13792
  gap: 12,
13695
13793
  align: "start",
13696
13794
  style: disabled ? { position: "relative" } : void 0,
13697
13795
  children: [
13698
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Flex, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13796
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Flex, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13699
13797
  Calendar,
13700
13798
  __spreadValues({
13701
13799
  selected: draftDate,
@@ -13710,7 +13808,7 @@ var DateAndTimeFormField = (_a) => {
13710
13808
  disabled
13711
13809
  }, props)
13712
13810
  ) }),
13713
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Flex, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13811
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Flex, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13714
13812
  TimePicker,
13715
13813
  __spreadValues({
13716
13814
  selected: draftTime,
@@ -13722,7 +13820,7 @@ var DateAndTimeFormField = (_a) => {
13722
13820
  hasError: haveError
13723
13821
  }, props)
13724
13822
  ) }),
13725
- disabled && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
13823
+ disabled && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
13726
13824
  "div",
13727
13825
  {
13728
13826
  "aria-hidden": true,
@@ -13739,16 +13837,16 @@ var DateAndTimeFormField = (_a) => {
13739
13837
  ]
13740
13838
  }
13741
13839
  ),
13742
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ErrorFormMessage, { message: errorMsg })
13840
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ErrorFormMessage, { message: errorMsg })
13743
13841
  ] });
13744
13842
  };
13745
13843
 
13746
13844
  // src/hooks/useImageUpload.ts
13747
- var import_react29 = require("react");
13845
+ var import_react30 = require("react");
13748
13846
  var useImageUpload = (options) => {
13749
- const [isUploading, setIsUploading] = (0, import_react29.useState)(false);
13750
- const [progress, setProgress] = (0, import_react29.useState)(null);
13751
- const [error, setError] = (0, import_react29.useState)(null);
13847
+ const [isUploading, setIsUploading] = (0, import_react30.useState)(false);
13848
+ const [progress, setProgress] = (0, import_react30.useState)(null);
13849
+ const [error, setError] = (0, import_react30.useState)(null);
13752
13850
  const {
13753
13851
  onSuccess,
13754
13852
  onError,
@@ -13758,7 +13856,7 @@ var useImageUpload = (options) => {
13758
13856
  allowedTypes = ["image/jpeg", "image/png", "image/gif", "image/webp"],
13759
13857
  uploadConfig
13760
13858
  } = options;
13761
- const validateFile = (0, import_react29.useCallback)(
13859
+ const validateFile = (0, import_react30.useCallback)(
13762
13860
  (file) => {
13763
13861
  if (!allowedTypes.includes(file.type)) {
13764
13862
  const errorMsg = "Tipo de arquivo n\xE3o suportado";
@@ -13776,7 +13874,7 @@ var useImageUpload = (options) => {
13776
13874
  },
13777
13875
  [allowedTypes, maxFileSize, onError]
13778
13876
  );
13779
- const uploadFile = (0, import_react29.useCallback)(
13877
+ const uploadFile = (0, import_react30.useCallback)(
13780
13878
  (file) => __async(null, null, function* () {
13781
13879
  if (!validateFile(file)) {
13782
13880
  return null;
@@ -13829,7 +13927,7 @@ var useImageUpload = (options) => {
13829
13927
  }),
13830
13928
  [validateFile, onSuccess, onError, onProgress]
13831
13929
  );
13832
- const reset = (0, import_react29.useCallback)(() => {
13930
+ const reset = (0, import_react30.useCallback)(() => {
13833
13931
  setIsUploading(false);
13834
13932
  setProgress(null);
13835
13933
  setError(null);
@@ -13941,6 +14039,7 @@ var useImageUpload = (options) => {
13941
14039
  TimerPickerContentStyled,
13942
14040
  ToastItem,
13943
14041
  ToastProvider,
14042
+ ToggleElement,
13944
14043
  Tooltip,
13945
14044
  TooltipContent,
13946
14045
  TooltipProvider,