@lets-events/react 12.3.10 → 12.4.1

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 (91) 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 +35 -3
  5. package/dist/index.d.ts +35 -3
  6. package/dist/index.js +562 -344
  7. package/dist/index.mjs +535 -319
  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 +125 -125
  12. package/src/components/Box.tsx +3 -3
  13. package/src/components/Button/index.tsx +45 -45
  14. package/src/components/Button/styledComponents.ts +313 -313
  15. package/src/components/ButtonGroup.tsx +484 -484
  16. package/src/components/Calendar/index.tsx +148 -148
  17. package/src/components/Calendar/styledComponents.ts +259 -250
  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 +166 -0
  23. package/src/components/Drawer/index.tsx +98 -98
  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 +95 -95
  37. package/src/components/FormFields/CheckboxGroupFormField.tsx +91 -91
  38. package/src/components/FormFields/DoubleCalendarFormField.tsx +90 -0
  39. package/src/components/FormFields/EmailFormField.tsx +27 -27
  40. package/src/components/FormFields/Form.tsx +39 -39
  41. package/src/components/FormFields/IdentityDocumentNumberFormField.tsx +32 -32
  42. package/src/components/FormFields/MultiSelectFormField.tsx +64 -64
  43. package/src/components/FormFields/PhoneFormField.tsx +40 -40
  44. package/src/components/FormFields/RadioGroupFormField.tsx +84 -84
  45. package/src/components/FormFields/RichEditorFormField.tsx +103 -103
  46. package/src/components/FormFields/SelectFormField.tsx +93 -93
  47. package/src/components/FormFields/SwitchFormField.tsx +46 -46
  48. package/src/components/FormFields/TextAreaFormField.tsx +59 -57
  49. package/src/components/FormFields/TextFormField.tsx +112 -112
  50. package/src/components/FormFields/TimePickerFormField.tsx +88 -88
  51. package/src/components/FormFields/subComponents/ErrorFormMessage.tsx +36 -36
  52. package/src/components/FormFields/subComponents/FormLabel.tsx +29 -29
  53. package/src/components/FormFields/utils/validation.ts +23 -23
  54. package/src/components/Grid.tsx +137 -137
  55. package/src/components/Icon.tsx +47 -47
  56. package/src/components/MenuDropdown/index.tsx +38 -38
  57. package/src/components/MenuDropdown/styledComponents.ts +31 -31
  58. package/src/components/Modal.tsx +110 -110
  59. package/src/components/MultiSelect/index.tsx +243 -243
  60. package/src/components/MultiSelect/styledComponents.ts +160 -160
  61. package/src/components/RadioGroup.tsx +210 -210
  62. package/src/components/RichEditor/QuillComponent.tsx +457 -457
  63. package/src/components/RichEditor/RichEditor.tsx +49 -49
  64. package/src/components/RichEditor/index.ts +2 -2
  65. package/src/components/RichEditor/styledComponents.ts +1151 -1151
  66. package/src/components/Section.tsx +33 -33
  67. package/src/components/Step.tsx +164 -164
  68. package/src/components/Switch.tsx +108 -108
  69. package/src/components/Text.tsx +38 -38
  70. package/src/components/TextField.tsx +372 -372
  71. package/src/components/TextareaField.tsx +138 -127
  72. package/src/components/TimePicker.tsx +328 -328
  73. package/src/components/Toast/components/ToastItem.tsx +41 -41
  74. package/src/components/Toast/components/ToastProvider.tsx +63 -63
  75. package/src/components/Toast/hooks/useToast.ts +12 -12
  76. package/src/components/Toast/index.tsx +5 -5
  77. package/src/components/Toast/styles/index.ts +135 -135
  78. package/src/components/Toast/types/index.ts +46 -46
  79. package/src/components/Tooltip/index.tsx +66 -66
  80. package/src/components/Tooltip/styles.ts +77 -77
  81. package/src/hooks/useCountries.ts +41 -41
  82. package/src/hooks/useImageUpload.ts +139 -139
  83. package/src/hooks/useOnClickOutside.tsx +42 -42
  84. package/src/index.tsx +71 -69
  85. package/src/styles/index.ts +41 -41
  86. package/src/types/typographyValues.ts +178 -178
  87. package/src/utils/getNestedValue.ts +3 -3
  88. package/src/utils/states.ts +29 -29
  89. package/src/utils/uploadService.ts +180 -180
  90. package/tsconfig.json +3 -3
  91. package/tsup.config.ts +38 -38
package/dist/index.js CHANGED
@@ -896,6 +896,8 @@ __export(index_exports, {
896
896
  ContainerStyled: () => ContainerStyled,
897
897
  CountryFormField: () => CountryFormField,
898
898
  Divider: () => Divider,
899
+ DoubleCalendar: () => DoubleCalendar,
900
+ DoubleCalendarFormField: () => DoubleCalendarFormField,
899
901
  Drawer: () => Drawer,
900
902
  DropdownMenu: () => DropdownMenu2,
901
903
  DropdownMenuItem: () => DropdownMenuItem,
@@ -7858,7 +7860,8 @@ var CalendarFooterStyled = styled("div", {
7858
7860
  borderTop: "2px solid $neutral100",
7859
7861
  padding: "$4 $16",
7860
7862
  display: "flex",
7861
- justifyContent: "center",
7863
+ gap: "1rem",
7864
+ justifyContent: "flex-end",
7862
7865
  alignItems: "center",
7863
7866
  height: "3rem"
7864
7867
  });
@@ -7869,7 +7872,7 @@ var DayPickerWrapperStyled = styled("div", {
7869
7872
  color: "$dark500"
7870
7873
  },
7871
7874
  ".rdp-root": {
7872
- padding: "$8"
7875
+ padding: "0 $8"
7873
7876
  },
7874
7877
  ".rdp-today .rdp-day_button": {
7875
7878
  color: "$brand500",
@@ -7879,8 +7882,8 @@ var DayPickerWrapperStyled = styled("div", {
7879
7882
  color: "$dark400"
7880
7883
  },
7881
7884
  ".rdp-day_button": {
7882
- height: "32px",
7883
- width: "32px",
7885
+ height: "28px",
7886
+ width: "28px",
7884
7887
  borderRadius: "$sm",
7885
7888
  fontSize: "$14",
7886
7889
  color: "$text",
@@ -7898,9 +7901,10 @@ var DayPickerWrapperStyled = styled("div", {
7898
7901
  borderColor: "transparent"
7899
7902
  },
7900
7903
  ".rdp-nav": {
7904
+ position: "absolute",
7905
+ width: "98%",
7901
7906
  display: "flex",
7902
- justifyContent: "space-between",
7903
- width: "100%"
7907
+ justifyContent: "space-between"
7904
7908
  },
7905
7909
  ".rdp-nav .rdp-chevron": {
7906
7910
  display: "none"
@@ -7936,8 +7940,15 @@ var DayPickerWrapperStyled = styled("div", {
7936
7940
  backgroundColor: "transparent",
7937
7941
  cursor: "pointer"
7938
7942
  },
7943
+ ".rdp-months": {
7944
+ display: "flex",
7945
+ columnGap: "$16",
7946
+ alignItems: "flex-start",
7947
+ paddingTop: "$12"
7948
+ },
7939
7949
  ".rdp-month": {
7940
- marginTop: "-24px"
7950
+ marginTop: "0",
7951
+ paddingTop: "$6"
7941
7952
  },
7942
7953
  ".rdp-month_caption": {
7943
7954
  display: "flex",
@@ -8141,8 +8152,138 @@ function Calendar(_a) {
8141
8152
  ] })) });
8142
8153
  }
8143
8154
 
8144
- // src/components/Drawer/index.tsx
8155
+ // src/components/DoubleCalendar/index.tsx
8145
8156
  var import_react9 = require("react");
8157
+ var import_react_day_picker2 = require("react-day-picker");
8158
+ var import_jsx_runtime16 = require("react/jsx-runtime");
8159
+ function DoubleCalendar(_a) {
8160
+ var _b = _a, {
8161
+ action,
8162
+ actionText,
8163
+ calendarLayout,
8164
+ selected,
8165
+ setSelected,
8166
+ position = "bottom",
8167
+ hasError,
8168
+ expand,
8169
+ allowPastDates = false,
8170
+ maxYearsFromNow = 20
8171
+ } = _b, props = __objRest(_b, [
8172
+ "action",
8173
+ "actionText",
8174
+ "calendarLayout",
8175
+ "selected",
8176
+ "setSelected",
8177
+ "position",
8178
+ "hasError",
8179
+ "expand",
8180
+ "allowPastDates",
8181
+ "maxYearsFromNow"
8182
+ ]);
8183
+ const [startValue, setStartValue] = (0, import_react9.useState)("");
8184
+ const [endValue, setEndValue] = (0, import_react9.useState)("");
8185
+ const [showContainer, setShowCalendar] = (0, import_react9.useState)(false);
8186
+ const initialSelectedRef = (0, import_react9.useRef)(void 0);
8187
+ const dropdownRef = (0, import_react9.useRef)(null);
8188
+ useOnClickOutside(dropdownRef, () => {
8189
+ setShowCalendar(false);
8190
+ });
8191
+ const today = /* @__PURE__ */ new Date();
8192
+ const maxDate = addYears(today, maxYearsFromNow);
8193
+ (0, import_react9.useEffect)(() => {
8194
+ if (selected && selected.from) {
8195
+ setStartValue(format2(selected.from, "dd/MM/yyyy"));
8196
+ } else {
8197
+ setStartValue("");
8198
+ }
8199
+ if (selected && selected.to) {
8200
+ setEndValue(format2(selected.to, "dd/MM/yyyy"));
8201
+ } else {
8202
+ setEndValue("");
8203
+ }
8204
+ }, [selected]);
8205
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CalendarStyled, __spreadProps(__spreadValues({}, props), { expand, ref: dropdownRef, children: [
8206
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8207
+ CalendarButtonStyled,
8208
+ {
8209
+ expand,
8210
+ type: "button",
8211
+ onClick: () => setShowCalendar((prev) => {
8212
+ const next = !prev;
8213
+ if (!prev) initialSelectedRef.current = selected;
8214
+ return next;
8215
+ }),
8216
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { display: "flex", gap: "8px", width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8217
+ TextField,
8218
+ {
8219
+ placeholder: "00/00/0000 - 00/00/0000",
8220
+ type: "text",
8221
+ value: `${startValue || "00/00/0000"} - ${endValue || "00/00/0000"}`,
8222
+ readOnly: true,
8223
+ inputMode: "numeric",
8224
+ textAlign: "right",
8225
+ color: hasError ? "error" : "default",
8226
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon_default, { name: "calendar", size: "xl" }) })
8227
+ }
8228
+ ) })
8229
+ }
8230
+ ),
8231
+ showContainer && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CalendarContentStyled, { position, children: [
8232
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DayPickerWrapperStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8233
+ import_react_day_picker2.DayPicker,
8234
+ {
8235
+ mode: "range",
8236
+ numberOfMonths: 2,
8237
+ captionLayout: calendarLayout,
8238
+ selected,
8239
+ onSelect: setSelected,
8240
+ required: true,
8241
+ locale: ptBR,
8242
+ disabled: allowPastDates ? void 0 : { before: today },
8243
+ fromMonth: allowPastDates ? void 0 : today,
8244
+ toMonth: maxDate
8245
+ }
8246
+ ) }) }),
8247
+ action && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CalendarFooterStyled, { children: [
8248
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { textAlign: "center", padding: "1rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: `${(selected == null ? void 0 : selected.from) ? format2(selected.from, "dd/MM/yyyy") : "00/00/0000"} \u2014 ${(selected == null ? void 0 : selected.to) ? format2(selected.to, "dd/MM/yyyy") : "00/00/0000"}` }) }),
8249
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8250
+ Button,
8251
+ {
8252
+ style: { margin: "0 0.5rem" },
8253
+ variant: "text",
8254
+ color: "neutral",
8255
+ type: "button",
8256
+ onClick: () => {
8257
+ setSelected(initialSelectedRef.current);
8258
+ setShowCalendar(false);
8259
+ },
8260
+ size: "medium",
8261
+ fontWeight: "regular",
8262
+ children: "Cancelar"
8263
+ }
8264
+ ),
8265
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8266
+ Button,
8267
+ {
8268
+ style: { margin: "0 0.5rem" },
8269
+ variant: "text",
8270
+ color: "brand",
8271
+ type: "button",
8272
+ onClick: () => {
8273
+ setShowCalendar(false);
8274
+ },
8275
+ size: "medium",
8276
+ fontWeight: "medium",
8277
+ children: actionText != null ? actionText : "Aplicar"
8278
+ }
8279
+ )
8280
+ ] })
8281
+ ] })
8282
+ ] })) });
8283
+ }
8284
+
8285
+ // src/components/Drawer/index.tsx
8286
+ var import_react10 = require("react");
8146
8287
 
8147
8288
  // src/components/Drawer/styledComponents.ts
8148
8289
  var DrawerOverlayStyled = styled("div", {
@@ -8237,7 +8378,7 @@ var GoBackButtonStyled = styled("button", {
8237
8378
  });
8238
8379
 
8239
8380
  // src/components/Drawer/index.tsx
8240
- var import_jsx_runtime16 = require("react/jsx-runtime");
8381
+ var import_jsx_runtime17 = require("react/jsx-runtime");
8241
8382
  function Drawer({
8242
8383
  isOpen,
8243
8384
  onClose,
@@ -8249,7 +8390,7 @@ function Drawer({
8249
8390
  goBackAction,
8250
8391
  zIndex = 1e3
8251
8392
  }) {
8252
- (0, import_react9.useEffect)(() => {
8393
+ (0, import_react10.useEffect)(() => {
8253
8394
  if (isOpen) {
8254
8395
  const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
8255
8396
  document.body.style.overflow = "hidden";
@@ -8263,8 +8404,8 @@ function Drawer({
8263
8404
  document.body.style.paddingRight = "";
8264
8405
  };
8265
8406
  }, [isOpen]);
8266
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
8267
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8407
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
8408
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8268
8409
  DrawerOverlayStyled,
8269
8410
  {
8270
8411
  css: {
@@ -8274,7 +8415,7 @@ function Drawer({
8274
8415
  open: isOpen
8275
8416
  }
8276
8417
  ),
8277
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8418
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8278
8419
  DrawerWrapper,
8279
8420
  {
8280
8421
  css: {
@@ -8283,7 +8424,7 @@ function Drawer({
8283
8424
  maxWidth: "100%"
8284
8425
  },
8285
8426
  open: isOpen,
8286
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
8427
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
8287
8428
  DrawerContainerStyled,
8288
8429
  {
8289
8430
  open: isOpen,
@@ -8291,12 +8432,12 @@ function Drawer({
8291
8432
  backgroundColor: colors[backgroundColor != null ? backgroundColor : "neutral50"]
8292
8433
  },
8293
8434
  children: [
8294
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(DrawerHeaderDiv, { children: [
8295
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Flex2, { gap: 8, align: "center", children: [
8296
- goBackIcon && goBackIcon && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(GoBackButtonStyled, { type: "button", onClick: goBackAction, children: goBackIcon }),
8297
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DrawerHeaderTitle, { children: title })
8435
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(DrawerHeaderDiv, { children: [
8436
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Flex2, { gap: 8, align: "center", children: [
8437
+ goBackIcon && goBackIcon && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(GoBackButtonStyled, { type: "button", onClick: goBackAction, children: goBackIcon }),
8438
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DrawerHeaderTitle, { children: title })
8298
8439
  ] }),
8299
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DrawerHeaderCloseButton, { onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon_default, { size: "xl", color: "$dark600", name: "xmark" }) })
8440
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DrawerHeaderCloseButton, { onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon_default, { size: "xl", color: "$dark600", name: "xmark" }) })
8300
8441
  ] }),
8301
8442
  isOpen ? children : null
8302
8443
  ]
@@ -8308,8 +8449,8 @@ function Drawer({
8308
8449
  }
8309
8450
 
8310
8451
  // src/components/TimePicker.tsx
8311
- var import_react10 = require("react");
8312
- var import_jsx_runtime17 = require("react/jsx-runtime");
8452
+ var import_react11 = require("react");
8453
+ var import_jsx_runtime18 = require("react/jsx-runtime");
8313
8454
  var TimePickerStyled = styled("div", {
8314
8455
  position: "relative",
8315
8456
  width: "fit-content",
@@ -8431,14 +8572,14 @@ function TimePicker({
8431
8572
  hasError,
8432
8573
  expand = false
8433
8574
  }) {
8434
- const [hours, setHours] = (0, import_react10.useState)("00");
8435
- const [minutes, setMinutes] = (0, import_react10.useState)("00");
8436
- const [rawHours, setRawHours] = (0, import_react10.useState)("00");
8437
- const [rawMinutes, setRawMinutes] = (0, import_react10.useState)("00");
8438
- const [isOpen, setIsOpen] = (0, import_react10.useState)(false);
8439
- const dropdownRef = (0, import_react10.useRef)(null);
8575
+ const [hours, setHours] = (0, import_react11.useState)("00");
8576
+ const [minutes, setMinutes] = (0, import_react11.useState)("00");
8577
+ const [rawHours, setRawHours] = (0, import_react11.useState)("00");
8578
+ const [rawMinutes, setRawMinutes] = (0, import_react11.useState)("00");
8579
+ const [isOpen, setIsOpen] = (0, import_react11.useState)(false);
8580
+ const dropdownRef = (0, import_react11.useRef)(null);
8440
8581
  useOnClickOutside(dropdownRef, () => setIsOpen(false));
8441
- const handleIncrement = (0, import_react10.useCallback)(
8582
+ const handleIncrement = (0, import_react11.useCallback)(
8442
8583
  (type) => {
8443
8584
  if (type === "hours") {
8444
8585
  const next = (parseInt(hours) + 1) % 24;
@@ -8452,7 +8593,7 @@ function TimePicker({
8452
8593
  },
8453
8594
  [hours, minutes]
8454
8595
  );
8455
- const handleDecrement = (0, import_react10.useCallback)(
8596
+ const handleDecrement = (0, import_react11.useCallback)(
8456
8597
  (type) => {
8457
8598
  if (type === "hours") {
8458
8599
  const prev = (parseInt(hours) - 1 + 24) % 24;
@@ -8466,14 +8607,14 @@ function TimePicker({
8466
8607
  },
8467
8608
  [hours, minutes]
8468
8609
  );
8469
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(TimePickerStyled, { ref: dropdownRef, expand, children: [
8470
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8610
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(TimePickerStyled, { ref: dropdownRef, expand, children: [
8611
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8471
8612
  TimePickerButtonStyled,
8472
8613
  {
8473
8614
  type: "button",
8474
8615
  onClick: () => setIsOpen((prev) => !prev),
8475
8616
  expand,
8476
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8617
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8477
8618
  TextField,
8478
8619
  {
8479
8620
  value: selected,
@@ -8483,18 +8624,18 @@ function TimePicker({
8483
8624
  typography: "labelSmall",
8484
8625
  fontWeight: "regular",
8485
8626
  color: hasError ? "error" : "default",
8486
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon_default, { name: "clock", size: "xl" }) })
8627
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon_default, { name: "clock", size: "xl" }) })
8487
8628
  }
8488
8629
  )
8489
8630
  }
8490
8631
  ),
8491
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
8632
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
8492
8633
  TimePickerDropdownStyled,
8493
8634
  {
8494
8635
  style: position === "top" ? { bottom: "110%", left: "0" } : position === "top-right" ? { bottom: "110%", right: "0" } : position === "bottom-right" ? { top: "110%", right: "0" } : { top: "110%", left: "0" },
8495
8636
  children: [
8496
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(TimerPickerContentStyled, { children: [
8497
- ["hours", "minutes"].map((unit) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
8637
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(TimerPickerContentStyled, { children: [
8638
+ ["hours", "minutes"].map((unit) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
8498
8639
  Box,
8499
8640
  {
8500
8641
  style: {
@@ -8503,13 +8644,13 @@ function TimePicker({
8503
8644
  flexDirection: "column"
8504
8645
  },
8505
8646
  children: [
8506
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8647
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8507
8648
  TimePickerIconButton,
8508
8649
  {
8509
8650
  type: "button",
8510
8651
  variant: "text",
8511
8652
  onClick: () => handleIncrement(unit),
8512
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
8653
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
8513
8654
  "svg",
8514
8655
  {
8515
8656
  xmlns: "http://www.w3.org/2000/svg",
@@ -8518,14 +8659,14 @@ function TimePicker({
8518
8659
  viewBox: "0 0 32 32",
8519
8660
  fill: "none",
8520
8661
  children: [
8521
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8662
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8522
8663
  "path",
8523
8664
  {
8524
8665
  d: "M0 8C0 3.58172 3.58172 0 8 0H24C28.4183 0 32 3.58172 32 8V24C32 28.4183 28.4183 32 24 32H8C3.58172 32 0 28.4183 0 24V8Z",
8525
8666
  fill: "white"
8526
8667
  }
8527
8668
  ),
8528
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8669
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8529
8670
  "path",
8530
8671
  {
8531
8672
  d: "M16.7063 12.2937C16.3157 11.9031 15.6813 11.9031 15.2907 12.2937L10.2907 17.2937C9.9001 17.6843 9.9001 18.3187 10.2907 18.7093C10.6813 19.1 11.3157 19.1 11.7063 18.7093L16.0001 14.4156L20.2938 18.7062C20.6845 19.0968 21.3188 19.0968 21.7095 18.7062C22.1001 18.3156 22.1001 17.6812 21.7095 17.2906L16.7095 12.2906L16.7063 12.2937Z",
@@ -8537,7 +8678,7 @@ function TimePicker({
8537
8678
  )
8538
8679
  }
8539
8680
  ),
8540
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8681
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8541
8682
  InputStyled,
8542
8683
  {
8543
8684
  inputMode: "numeric",
@@ -8575,13 +8716,13 @@ function TimePicker({
8575
8716
  }
8576
8717
  }
8577
8718
  ),
8578
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8719
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8579
8720
  TimePickerIconButton,
8580
8721
  {
8581
8722
  type: "button",
8582
8723
  variant: "text",
8583
8724
  onClick: () => handleDecrement(unit),
8584
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
8725
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
8585
8726
  "svg",
8586
8727
  {
8587
8728
  xmlns: "http://www.w3.org/2000/svg",
@@ -8590,14 +8731,14 @@ function TimePicker({
8590
8731
  viewBox: "0 0 32 32",
8591
8732
  fill: "none",
8592
8733
  children: [
8593
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8734
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8594
8735
  "path",
8595
8736
  {
8596
8737
  d: "M0 8C0 3.58172 3.58172 0 8 0H24C28.4183 0 32 3.58172 32 8V24C32 28.4183 28.4183 32 24 32H8C3.58172 32 0 28.4183 0 24V8Z",
8597
8738
  fill: "white"
8598
8739
  }
8599
8740
  ),
8600
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8741
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8601
8742
  "path",
8602
8743
  {
8603
8744
  d: "M15.2937 19.7063C15.6843 20.0969 16.3187 20.0969 16.7093 19.7063L21.7093 14.7063C22.0999 14.3157 22.0999 13.6813 21.7093 13.2907C21.3187 12.9 20.6843 12.9 20.2937 13.2907L15.9999 17.5844L11.7062 13.2938C11.3155 12.9032 10.6812 12.9032 10.2905 13.2938C9.8999 13.6844 9.8999 14.3188 10.2905 14.7094L15.2905 19.7094L15.2937 19.7063Z",
@@ -8613,9 +8754,9 @@ function TimePicker({
8613
8754
  },
8614
8755
  unit
8615
8756
  )),
8616
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { children: ":" })
8757
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { children: ":" })
8617
8758
  ] }),
8618
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(TimePickerFooterStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8759
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(TimePickerFooterStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8619
8760
  Button,
8620
8761
  {
8621
8762
  type: "button",
@@ -8638,7 +8779,7 @@ function TimePicker({
8638
8779
 
8639
8780
  // src/components/Alert.tsx
8640
8781
  var import_themes13 = require("@radix-ui/themes");
8641
- var import_jsx_runtime18 = require("react/jsx-runtime");
8782
+ var import_jsx_runtime19 = require("react/jsx-runtime");
8642
8783
  var AlertDialogSimpleStyled = styled(import_themes13.AlertDialog.Content, {
8643
8784
  fontFamily: "$default",
8644
8785
  lineHeight: "$base",
@@ -8752,19 +8893,19 @@ function Alert(_a) {
8752
8893
  "completAlert",
8753
8894
  "simpleAlert"
8754
8895
  ]);
8755
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
8756
- simpleAlert && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes13.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_themes13.AlertDialog.Root, { children: [
8757
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes13.AlertDialog.Trigger, { children: trigger }),
8758
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
8759
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AlertDialogDescriptionStyled, { children: simpleAlert.description }),
8760
- simpleAlert.cancel && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes13.AlertDialog.Cancel, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Button, { variant: "text", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon_default, { name: "close" }) }) })
8896
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
8897
+ simpleAlert && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes13.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_themes13.AlertDialog.Root, { children: [
8898
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes13.AlertDialog.Trigger, { children: trigger }),
8899
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
8900
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialogDescriptionStyled, { children: simpleAlert.description }),
8901
+ simpleAlert.cancel && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes13.AlertDialog.Cancel, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "text", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon_default, { name: "close" }) }) })
8761
8902
  ] })) })
8762
8903
  ] }) }),
8763
- completAlert && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes13.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_themes13.AlertDialog.Root, { children: [
8764
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes13.AlertDialog.Trigger, { children: trigger }),
8765
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(AlertDialogCompleteStyled, { children: [
8766
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(AlertDialogRowStyled, { className: "le-alert-dialog-row", children: [
8767
- color === "success" && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
8904
+ completAlert && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes13.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_themes13.AlertDialog.Root, { children: [
8905
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes13.AlertDialog.Trigger, { children: trigger }),
8906
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(AlertDialogCompleteStyled, { children: [
8907
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(AlertDialogRowStyled, { className: "le-alert-dialog-row", children: [
8908
+ color === "success" && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
8768
8909
  "svg",
8769
8910
  {
8770
8911
  width: "56",
@@ -8773,18 +8914,18 @@ function Alert(_a) {
8773
8914
  fill: "none",
8774
8915
  xmlns: "http://www.w3.org/2000/svg",
8775
8916
  children: [
8776
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("g", { clipPath: "url(#clip0_1428_9995)", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8917
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("g", { clipPath: "url(#clip0_1428_9995)", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8777
8918
  "path",
8778
8919
  {
8779
8920
  d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM40.3594 22.8594L26.3594 36.8594C25.3312 37.8875 23.6688 37.8875 22.6516 36.8594L15.6516 29.8594C14.6234 28.8312 14.6234 27.1688 15.6516 26.1516C16.6797 25.1344 18.3422 25.1234 19.3594 26.1516L24.5 31.2922L36.6406 19.1406C37.6688 18.1125 39.3312 18.1125 40.3484 19.1406C41.3656 20.1688 41.3766 21.8312 40.3484 22.8484L40.3594 22.8594Z",
8780
8921
  fill: "#1E8535"
8781
8922
  }
8782
8923
  ) }),
8783
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("clipPath", { id: "clip0_1428_9995", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("rect", { width: "56", height: "56", fill: "white" }) }) })
8924
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("clipPath", { id: "clip0_1428_9995", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("rect", { width: "56", height: "56", fill: "white" }) }) })
8784
8925
  ]
8785
8926
  }
8786
8927
  ),
8787
- color === "error" && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
8928
+ color === "error" && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
8788
8929
  "svg",
8789
8930
  {
8790
8931
  width: "56",
@@ -8793,18 +8934,18 @@ function Alert(_a) {
8793
8934
  fill: "none",
8794
8935
  xmlns: "http://www.w3.org/2000/svg",
8795
8936
  children: [
8796
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("g", { clipPath: "url(#clip0_1428_10022)", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8937
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("g", { clipPath: "url(#clip0_1428_10022)", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8797
8938
  "path",
8798
8939
  {
8799
8940
  d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM19.1406 19.1406C20.1687 18.1125 21.8312 18.1125 22.8484 19.1406L27.9891 24.2812L33.1297 19.1406C34.1578 18.1125 35.8203 18.1125 36.8375 19.1406C37.8547 20.1687 37.8656 21.8312 36.8375 22.8484L31.6969 27.9891L36.8375 33.1297C37.8656 34.1578 37.8656 35.8203 36.8375 36.8375C35.8094 37.8547 34.1469 37.8656 33.1297 36.8375L27.9891 31.6969L22.8484 36.8375C21.8203 37.8656 20.1578 37.8656 19.1406 36.8375C18.1234 35.8094 18.1125 34.1469 19.1406 33.1297L24.2812 27.9891L19.1406 22.8484C18.1125 21.8203 18.1125 20.1578 19.1406 19.1406Z",
8800
8941
  fill: "#AD1F2B"
8801
8942
  }
8802
8943
  ) }),
8803
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("clipPath", { id: "clip0_1428_10022", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("rect", { width: "56", height: "56", fill: "white" }) }) })
8944
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("clipPath", { id: "clip0_1428_10022", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("rect", { width: "56", height: "56", fill: "white" }) }) })
8804
8945
  ]
8805
8946
  }
8806
8947
  ),
8807
- color === "warning" && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
8948
+ color === "warning" && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
8808
8949
  "svg",
8809
8950
  {
8810
8951
  width: "56",
@@ -8813,18 +8954,18 @@ function Alert(_a) {
8813
8954
  fill: "none",
8814
8955
  xmlns: "http://www.w3.org/2000/svg",
8815
8956
  children: [
8816
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("g", { clipPath: "url(#clip0_1428_10038)", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8957
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("g", { clipPath: "url(#clip0_1428_10038)", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8817
8958
  "path",
8818
8959
  {
8819
8960
  d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM28 14C29.4547 14 30.625 15.1703 30.625 16.625V28.875C30.625 30.3297 29.4547 31.5 28 31.5C26.5453 31.5 25.375 30.3297 25.375 28.875V16.625C25.375 15.1703 26.5453 14 28 14ZM24.5 38.5C24.5 37.5717 24.8687 36.6815 25.5251 36.0251C26.1815 35.3688 27.0717 35 28 35C28.9283 35 29.8185 35.3688 30.4749 36.0251C31.1313 36.6815 31.5 37.5717 31.5 38.5C31.5 39.4283 31.1313 40.3185 30.4749 40.9749C29.8185 41.6312 28.9283 42 28 42C27.0717 42 26.1815 41.6312 25.5251 40.9749C24.8687 40.3185 24.5 39.4283 24.5 38.5Z",
8820
8961
  fill: "#CC9A06"
8821
8962
  }
8822
8963
  ) }),
8823
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("clipPath", { id: "clip0_1428_10038", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("rect", { width: "56", height: "56", fill: "white" }) }) })
8964
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("clipPath", { id: "clip0_1428_10038", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("rect", { width: "56", height: "56", fill: "white" }) }) })
8824
8965
  ]
8825
8966
  }
8826
8967
  ),
8827
- color === "info" && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
8968
+ color === "info" && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
8828
8969
  "svg",
8829
8970
  {
8830
8971
  width: "40",
@@ -8833,35 +8974,35 @@ function Alert(_a) {
8833
8974
  fill: "none",
8834
8975
  xmlns: "http://www.w3.org/2000/svg",
8835
8976
  children: [
8836
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("g", { clipPath: "url(#clip0_1645_46)", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8977
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("g", { clipPath: "url(#clip0_1645_46)", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8837
8978
  "path",
8838
8979
  {
8839
8980
  d: "M20 40C25.3043 40 30.3914 37.8929 34.1421 34.1421C37.8929 30.3914 40 25.3043 40 20C40 14.6957 37.8929 9.60859 34.1421 5.85786C30.3914 2.10714 25.3043 0 20 0C14.6957 0 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40ZM20 10C21.0391 10 21.875 10.8359 21.875 11.875V20.625C21.875 21.6641 21.0391 22.5 20 22.5C18.9609 22.5 18.125 21.6641 18.125 20.625V11.875C18.125 10.8359 18.9609 10 20 10ZM17.5 27.5C17.5 26.837 17.7634 26.2011 18.2322 25.7322C18.7011 25.2634 19.337 25 20 25C20.663 25 21.2989 25.2634 21.7678 25.7322C22.2366 26.2011 22.5 26.837 22.5 27.5C22.5 28.163 22.2366 28.7989 21.7678 29.2678C21.2989 29.7366 20.663 30 20 30C19.337 30 18.7011 29.7366 18.2322 29.2678C17.7634 28.7989 17.5 28.163 17.5 27.5Z",
8840
8981
  fill: "#9FB6C7"
8841
8982
  }
8842
8983
  ) }),
8843
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("clipPath", { id: "clip0_1645_46", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("rect", { width: "40", height: "40", fill: "white" }) }) })
8984
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("clipPath", { id: "clip0_1645_46", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("rect", { width: "40", height: "40", fill: "white" }) }) })
8844
8985
  ]
8845
8986
  }
8846
8987
  ),
8847
- completAlert.title && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AlertDialogTitleStyled, { children: completAlert.title }),
8848
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(AlertDialogDescriptionStyled, { children: [
8849
- completAlert.subtitle && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8988
+ completAlert.title && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialogTitleStyled, { children: completAlert.title }),
8989
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(AlertDialogDescriptionStyled, { children: [
8990
+ completAlert.subtitle && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8850
8991
  Text,
8851
8992
  {
8852
8993
  css: {
8853
8994
  fontSize: "$16"
8854
8995
  },
8855
8996
  asChild: true,
8856
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h2", { children: completAlert.subtitle })
8997
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h2", { children: completAlert.subtitle })
8857
8998
  }
8858
8999
  ),
8859
9000
  completAlert.description
8860
9001
  ] })
8861
9002
  ] }),
8862
- completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AlertDialoghrStyled, {}) : null,
8863
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AlertDialogRowStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Flex2, { gap: "10", justify: "end", width: "100%", children: [
8864
- completAlert.onAction && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes13.AlertDialog.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
9003
+ completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialoghrStyled, {}) : null,
9004
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AlertDialogRowStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Flex2, { gap: "10", justify: "end", width: "100%", children: [
9005
+ completAlert.onAction && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes13.AlertDialog.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8865
9006
  Button,
8866
9007
  {
8867
9008
  variant: "contained",
@@ -8869,7 +9010,7 @@ function Alert(_a) {
8869
9010
  children: completAlert.actionText || "Salvar"
8870
9011
  }
8871
9012
  ) }),
8872
- completAlert.cancel && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes13.AlertDialog.Cancel, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Button, { variant: "outlined", color: "neutral", children: completAlert.cancelText || "Cancelar" }) })
9013
+ completAlert.cancel && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes13.AlertDialog.Cancel, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "outlined", color: "neutral", children: completAlert.cancelText || "Cancelar" }) })
8873
9014
  ] }) })
8874
9015
  ] })
8875
9016
  ] }) })
@@ -8878,7 +9019,7 @@ function Alert(_a) {
8878
9019
 
8879
9020
  // src/components/Switch.tsx
8880
9021
  var import_themes14 = require("@radix-ui/themes");
8881
- var import_jsx_runtime19 = require("react/jsx-runtime");
9022
+ var import_jsx_runtime20 = require("react/jsx-runtime");
8882
9023
  var SwitchStyled = styled(import_themes14.Switch, {
8883
9024
  all: "unset",
8884
9025
  borderRadius: "$full",
@@ -8972,13 +9113,13 @@ var SwitchStyled = styled(import_themes14.Switch, {
8972
9113
  }
8973
9114
  });
8974
9115
  function Switch(props) {
8975
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SwitchStyled, __spreadValues({ color: "brand", defaultChecked: true }, props));
9116
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SwitchStyled, __spreadValues({ color: "brand", defaultChecked: true }, props));
8976
9117
  }
8977
9118
 
8978
9119
  // src/components/Step.tsx
8979
- var import_react11 = __toESM(require("react"));
9120
+ var import_react12 = __toESM(require("react"));
8980
9121
  var import_themes15 = require("@radix-ui/themes");
8981
- var import_jsx_runtime20 = require("react/jsx-runtime");
9122
+ var import_jsx_runtime21 = require("react/jsx-runtime");
8982
9123
  var StepStyled = styled("div", {
8983
9124
  fontFamily: "$default",
8984
9125
  color: "$gray100",
@@ -9051,7 +9192,7 @@ var StepListStyled = styled(import_themes15.Tabs.List, {
9051
9192
  });
9052
9193
  function Step(_a) {
9053
9194
  var _b = _a, { children, defaultValue } = _b, props = __objRest(_b, ["children", "defaultValue"]);
9054
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_themes15.Tabs.Root, { defaultValue: String(defaultValue), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StepStyled, __spreadProps(__spreadValues({}, props), { children })) });
9195
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes15.Tabs.Root, { defaultValue: String(defaultValue), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StepStyled, __spreadProps(__spreadValues({}, props), { children })) });
9055
9196
  }
9056
9197
  function StepTrigger(_a) {
9057
9198
  var _b = _a, {
@@ -9064,7 +9205,7 @@ function StepTrigger(_a) {
9064
9205
  "currentStep"
9065
9206
  ]);
9066
9207
  const isActiveOrPrevious = currentStep !== void 0 && value <= currentStep;
9067
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
9208
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
9068
9209
  StepTriggerStyled,
9069
9210
  __spreadProps(__spreadValues({
9070
9211
  "data-filled": isActiveOrPrevious,
@@ -9082,7 +9223,7 @@ function StepContent(_a) {
9082
9223
  "value",
9083
9224
  "children"
9084
9225
  ]);
9085
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_themes15.Tabs.Content, __spreadProps(__spreadValues({ value: String(value) }, props), { children }));
9226
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes15.Tabs.Content, __spreadProps(__spreadValues({ value: String(value) }, props), { children }));
9086
9227
  }
9087
9228
  function StepList(_a) {
9088
9229
  var _b = _a, {
@@ -9092,9 +9233,9 @@ function StepList(_a) {
9092
9233
  "children",
9093
9234
  "currentStep"
9094
9235
  ]);
9095
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StepListStyled, __spreadProps(__spreadValues({}, props), { children: import_react11.default.Children.map(children, (child) => {
9096
- if (import_react11.default.isValidElement(child) && child.type === StepTrigger) {
9097
- return import_react11.default.cloneElement(child, { currentStep });
9236
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StepListStyled, __spreadProps(__spreadValues({}, props), { children: import_react12.default.Children.map(children, (child) => {
9237
+ if (import_react12.default.isValidElement(child) && child.type === StepTrigger) {
9238
+ return import_react12.default.cloneElement(child, { currentStep });
9098
9239
  }
9099
9240
  return child;
9100
9241
  }) }));
@@ -9105,12 +9246,12 @@ function StepWrapper(_a) {
9105
9246
  } = _b, props = __objRest(_b, [
9106
9247
  "children"
9107
9248
  ]);
9108
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_themes15.Box, __spreadProps(__spreadValues({}, props), { children }));
9249
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes15.Box, __spreadProps(__spreadValues({}, props), { children }));
9109
9250
  }
9110
9251
 
9111
9252
  // src/components/Card.tsx
9112
9253
  var import_themes16 = require("@radix-ui/themes");
9113
- var import_jsx_runtime21 = require("react/jsx-runtime");
9254
+ var import_jsx_runtime22 = require("react/jsx-runtime");
9114
9255
  var CardStyled = styled(import_themes16.Card, {
9115
9256
  borderRadius: "$2xl",
9116
9257
  border: "1px solid $dark100",
@@ -9160,7 +9301,7 @@ function Card(_a) {
9160
9301
  "padding",
9161
9302
  "radius"
9162
9303
  ]);
9163
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
9304
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
9164
9305
  CardStyled,
9165
9306
  __spreadProps(__spreadValues({}, props), {
9166
9307
  css: __spreadValues({ padding, borderRadius: radius }, props.css),
@@ -9171,8 +9312,8 @@ function Card(_a) {
9171
9312
 
9172
9313
  // src/components/TextareaField.tsx
9173
9314
  var import_themes17 = require("@radix-ui/themes");
9174
- var import_react12 = __toESM(require("react"));
9175
- var import_jsx_runtime22 = require("react/jsx-runtime");
9315
+ var import_react13 = __toESM(require("react"));
9316
+ var import_jsx_runtime23 = require("react/jsx-runtime");
9176
9317
  var TextareaFieldStyle = styled(import_themes17.TextArea, {
9177
9318
  display: "flex",
9178
9319
  flex: 1,
@@ -9236,11 +9377,11 @@ var TextareaLimitIndicator = styled("div", {
9236
9377
  padding: "$4"
9237
9378
  }
9238
9379
  });
9239
- var TextareaField = import_react12.default.forwardRef((_a, forwardedRef) => {
9240
- var _b = _a, { maxLength, color } = _b, props = __objRest(_b, ["maxLength", "color"]);
9241
- const inputRef = (0, import_react12.useRef)(null);
9242
- const [remaining, setRemaining] = (0, import_react12.useState)(maxLength);
9243
- (0, import_react12.useEffect)(() => {
9380
+ var TextareaField = import_react13.default.forwardRef((_a, forwardedRef) => {
9381
+ var _b = _a, { maxLength, color, simpleLayout = false } = _b, props = __objRest(_b, ["maxLength", "color", "simpleLayout"]);
9382
+ const inputRef = (0, import_react13.useRef)(null);
9383
+ const [remaining, setRemaining] = (0, import_react13.useState)(maxLength);
9384
+ (0, import_react13.useEffect)(() => {
9244
9385
  var _a2;
9245
9386
  if (maxLength && inputRef.current) {
9246
9387
  setRemaining(maxLength - ((_a2 = inputRef.current.value.length) != null ? _a2 : 0));
@@ -9253,34 +9394,37 @@ var TextareaField = import_react12.default.forwardRef((_a, forwardedRef) => {
9253
9394
  }
9254
9395
  (_a2 = props.onInput) == null ? void 0 : _a2.call(props, e);
9255
9396
  };
9256
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(TextareaContainer, { color, children: [
9257
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
9258
- TextareaFieldStyle,
9259
- __spreadValues({
9260
- rows: 4,
9261
- ref: (r) => {
9262
- if (!r) return;
9263
- inputRef.current = r;
9264
- if (forwardedRef) {
9265
- if (typeof forwardedRef === "function") forwardedRef(r);
9266
- else forwardedRef.current = r;
9267
- }
9268
- },
9269
- onInput: handleInput,
9270
- maxLength
9271
- }, props)
9272
- ),
9273
- maxLength && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TextareaLimitIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text, { typography: "badgeMedium", children: remaining }) })
9397
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Flex2, { direction: "column", align: "end", style: { position: "relative" }, children: [
9398
+ maxLength && simpleLayout && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Badge, { size: "sm", color: "grey", style: { position: "absolute", right: 0, top: "-1.75rem" }, children: remaining }),
9399
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(TextareaContainer, { color, children: [
9400
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
9401
+ TextareaFieldStyle,
9402
+ __spreadValues({
9403
+ rows: 4,
9404
+ ref: (r) => {
9405
+ if (!r) return;
9406
+ inputRef.current = r;
9407
+ if (forwardedRef) {
9408
+ if (typeof forwardedRef === "function") forwardedRef(r);
9409
+ else forwardedRef.current = r;
9410
+ }
9411
+ },
9412
+ onInput: handleInput,
9413
+ maxLength
9414
+ }, props)
9415
+ ),
9416
+ maxLength && !simpleLayout && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TextareaLimitIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text, { typography: "badgeMedium", children: remaining }) })
9417
+ ] })
9274
9418
  ] });
9275
9419
  });
9276
9420
 
9277
9421
  // src/components/Toast/components/ToastItem.tsx
9278
- var import_react14 = require("react");
9422
+ var import_react15 = require("react");
9279
9423
 
9280
9424
  // src/components/Toast/styles/index.ts
9281
- var import_react13 = require("@stitches/react");
9425
+ var import_react14 = require("@stitches/react");
9282
9426
  var ToastPrimitive = __toESM(require("@radix-ui/react-toast"));
9283
- var slideIn = (0, import_react13.keyframes)({
9427
+ var slideIn = (0, import_react14.keyframes)({
9284
9428
  from: {
9285
9429
  transform: "translateX(calc(100% + 25px))",
9286
9430
  opacity: 0
@@ -9290,7 +9434,7 @@ var slideIn = (0, import_react13.keyframes)({
9290
9434
  opacity: 1
9291
9435
  }
9292
9436
  });
9293
- var slideOut = (0, import_react13.keyframes)({
9437
+ var slideOut = (0, import_react14.keyframes)({
9294
9438
  from: {
9295
9439
  transform: "translateX(0)",
9296
9440
  opacity: 1
@@ -9300,7 +9444,7 @@ var slideOut = (0, import_react13.keyframes)({
9300
9444
  opacity: 0
9301
9445
  }
9302
9446
  });
9303
- var swipeOut = (0, import_react13.keyframes)({
9447
+ var swipeOut = (0, import_react14.keyframes)({
9304
9448
  from: {
9305
9449
  transform: "translateX(var(--radix-toast-swipe-end-x))",
9306
9450
  opacity: 1
@@ -9401,19 +9545,19 @@ var ToastClose = styled(ToastPrimitive.Close, {
9401
9545
  });
9402
9546
 
9403
9547
  // src/components/Toast/components/ToastItem.tsx
9404
- var import_jsx_runtime23 = require("react/jsx-runtime");
9548
+ var import_jsx_runtime24 = require("react/jsx-runtime");
9405
9549
  function ToastItem({
9406
9550
  toast,
9407
9551
  onRemove
9408
9552
  }) {
9409
- const [open, setOpen] = (0, import_react14.useState)(true);
9553
+ const [open, setOpen] = (0, import_react15.useState)(true);
9410
9554
  const handleOpenChange = (open2) => {
9411
9555
  setOpen(open2);
9412
9556
  if (!open2) {
9413
9557
  onRemove(toast.id);
9414
9558
  }
9415
9559
  };
9416
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
9560
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
9417
9561
  ToastRoot,
9418
9562
  {
9419
9563
  type: toast.type,
@@ -9421,26 +9565,26 @@ function ToastItem({
9421
9565
  open,
9422
9566
  onOpenChange: handleOpenChange,
9423
9567
  children: [
9424
- (toast == null ? void 0 : toast.icon) && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon_default, { name: toast.icon, size: "xl" }),
9425
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { style: { flex: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text, { typography: "bodyS", fontWeight: "medium", children: toast.message }) }),
9426
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToastClose, { "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon_default, { name: "xmark", size: "md" }) })
9568
+ (toast == null ? void 0 : toast.icon) && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon_default, { name: toast.icon, size: "xl" }),
9569
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { style: { flex: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { typography: "bodyS", fontWeight: "medium", children: toast.message }) }),
9570
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToastClose, { "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon_default, { name: "xmark", size: "md" }) })
9427
9571
  ]
9428
9572
  }
9429
9573
  );
9430
9574
  }
9431
9575
 
9432
9576
  // src/components/Toast/components/ToastProvider.tsx
9433
- var import_react15 = require("react");
9577
+ var import_react16 = require("react");
9434
9578
  var ToastPrimitive2 = __toESM(require("@radix-ui/react-toast"));
9435
- var import_jsx_runtime24 = require("react/jsx-runtime");
9436
- var ToastContext = (0, import_react15.createContext)(null);
9579
+ var import_jsx_runtime25 = require("react/jsx-runtime");
9580
+ var ToastContext = (0, import_react16.createContext)(null);
9437
9581
  function ToastProvider({
9438
9582
  children,
9439
9583
  defaultDuration = 5e3,
9440
9584
  maxToasts = 5,
9441
9585
  swipeDirection = "right"
9442
9586
  }) {
9443
- const [toasts, setToasts] = (0, import_react15.useState)([]);
9587
+ const [toasts, setToasts] = (0, import_react16.useState)([]);
9444
9588
  const addToast = (toastData) => {
9445
9589
  const id = Math.random().toString(36).substr(2, 9);
9446
9590
  const newToast = __spreadProps(__spreadValues({
@@ -9468,17 +9612,17 @@ function ToastProvider({
9468
9612
  removeToast,
9469
9613
  removeAllToasts
9470
9614
  };
9471
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToastContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(ToastPrimitive2.Provider, { swipeDirection, children: [
9615
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ToastContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(ToastPrimitive2.Provider, { swipeDirection, children: [
9472
9616
  children,
9473
- toasts.map((toast) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToastItem, { toast, onRemove: removeToast }, toast.id)),
9474
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToastViewport, {})
9617
+ toasts.map((toast) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ToastItem, { toast, onRemove: removeToast }, toast.id)),
9618
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ToastViewport, {})
9475
9619
  ] }) });
9476
9620
  }
9477
9621
 
9478
9622
  // src/components/Toast/hooks/useToast.ts
9479
- var import_react16 = require("react");
9623
+ var import_react17 = require("react");
9480
9624
  var useToast = () => {
9481
- const context = (0, import_react16.useContext)(ToastContext);
9625
+ const context = (0, import_react17.useContext)(ToastContext);
9482
9626
  if (!context) {
9483
9627
  throw new Error("useToast deve ser usado dentro de um ToastProvider");
9484
9628
  }
@@ -9487,7 +9631,7 @@ var useToast = () => {
9487
9631
 
9488
9632
  // src/components/Tooltip/index.tsx
9489
9633
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
9490
- var import_jsx_runtime25 = require("react/jsx-runtime");
9634
+ var import_jsx_runtime26 = require("react/jsx-runtime");
9491
9635
  var TooltipProvider = TooltipPrimitive.Provider;
9492
9636
  var TooltipRoot = TooltipPrimitive.Root;
9493
9637
  var TooltipTrigger = TooltipPrimitive.Trigger;
@@ -9526,21 +9670,21 @@ function Tooltip({
9526
9670
  delayDuration = 200,
9527
9671
  side = "top"
9528
9672
  }) {
9529
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(TooltipRoot, { delayDuration, children: [
9530
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TooltipTrigger, { asChild: true, children }),
9531
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(TooltipContent, { side, sideOffset: 5, children: [
9532
- typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Text, { typography: "tooltip", children: content }) : content,
9533
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TooltipArrow, {})
9673
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(TooltipRoot, { delayDuration, children: [
9674
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipTrigger, { asChild: true, children }),
9675
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(TooltipContent, { side, sideOffset: 5, children: [
9676
+ typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text, { typography: "tooltip", children: content }) : content,
9677
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipArrow, {})
9534
9678
  ] })
9535
9679
  ] }) });
9536
9680
  }
9537
9681
 
9538
9682
  // src/components/MultiSelect/index.tsx
9539
- var import_react17 = __toESM(require("react"));
9683
+ var import_react18 = __toESM(require("react"));
9540
9684
  var import_themes19 = require("@radix-ui/themes");
9541
9685
  var import_react_fontawesome3 = require("@fortawesome/react-fontawesome");
9542
9686
  var import_free_solid_svg_icons3 = require("@fortawesome/free-solid-svg-icons");
9543
- var import_react18 = require("react");
9687
+ var import_react19 = require("react");
9544
9688
 
9545
9689
  // src/components/MultiSelect/styledComponents.ts
9546
9690
  var import_themes18 = require("@radix-ui/themes");
@@ -9689,8 +9833,8 @@ var ButtonSelectAllStyled = styled("button", {
9689
9833
  });
9690
9834
 
9691
9835
  // src/components/MultiSelect/index.tsx
9692
- var import_jsx_runtime26 = require("react/jsx-runtime");
9693
- var MultiSelect = import_react17.default.forwardRef(
9836
+ var import_jsx_runtime27 = require("react/jsx-runtime");
9837
+ var MultiSelect = import_react18.default.forwardRef(
9694
9838
  ({
9695
9839
  placeholder,
9696
9840
  value: selectedValues = [],
@@ -9708,24 +9852,24 @@ var MultiSelect = import_react17.default.forwardRef(
9708
9852
  selectedAllText,
9709
9853
  selectedScroll = false
9710
9854
  }, fowardedRef) => {
9711
- const [isOpen, setIsOpen] = (0, import_react17.useState)(false);
9712
- const triggerRef = (0, import_react17.useRef)(null);
9713
- const [allOptionsSelected, setAllOptionsSelected] = (0, import_react17.useState)(false);
9714
- const labelByValue = (0, import_react18.useMemo)(() => {
9855
+ const [isOpen, setIsOpen] = (0, import_react18.useState)(false);
9856
+ const triggerRef = (0, import_react18.useRef)(null);
9857
+ const [allOptionsSelected, setAllOptionsSelected] = (0, import_react18.useState)(false);
9858
+ const labelByValue = (0, import_react19.useMemo)(() => {
9715
9859
  return options.reduce((prev, curr) => {
9716
9860
  return __spreadProps(__spreadValues({}, prev), {
9717
9861
  [curr.value]: curr.label
9718
9862
  });
9719
9863
  }, {});
9720
9864
  }, [options]);
9721
- const handleRemove = (0, import_react17.useCallback)(
9865
+ const handleRemove = (0, import_react18.useCallback)(
9722
9866
  (value) => {
9723
9867
  const newValue = selectedValues.filter((v) => v !== value);
9724
9868
  onValueChange == null ? void 0 : onValueChange(newValue);
9725
9869
  },
9726
9870
  [selectedValues, onValueChange]
9727
9871
  );
9728
- const handleSelectAll = (0, import_react17.useCallback)(
9872
+ const handleSelectAll = (0, import_react18.useCallback)(
9729
9873
  (e) => {
9730
9874
  e.preventDefault();
9731
9875
  e.stopPropagation();
@@ -9740,7 +9884,7 @@ var MultiSelect = import_react17.default.forwardRef(
9740
9884
  },
9741
9885
  [selectedValues, options, onValueChange]
9742
9886
  );
9743
- const text = (0, import_react18.useMemo)(() => {
9887
+ const text = (0, import_react19.useMemo)(() => {
9744
9888
  if (selectedValues.length > 0 && singleSelect) {
9745
9889
  const value = selectedValues[0];
9746
9890
  return labelByValue[value];
@@ -9751,7 +9895,7 @@ var MultiSelect = import_react17.default.forwardRef(
9751
9895
  onValueChange == null ? void 0 : onValueChange([v]);
9752
9896
  setIsOpen(false);
9753
9897
  };
9754
- const handleToggle = (0, import_react17.useCallback)(
9898
+ const handleToggle = (0, import_react18.useCallback)(
9755
9899
  (e) => {
9756
9900
  e.preventDefault();
9757
9901
  e.stopPropagation();
@@ -9760,9 +9904,9 @@ var MultiSelect = import_react17.default.forwardRef(
9760
9904
  },
9761
9905
  [disabled]
9762
9906
  );
9763
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes19.Theme, { style: width !== "100%" ? { width } : void 0, children: [
9764
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes19.DropdownMenu.Root, { open: isOpen, onOpenChange: setIsOpen, children: [
9765
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes19.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
9907
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes19.Theme, { style: width !== "100%" ? { width } : void 0, children: [
9908
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes19.DropdownMenu.Root, { open: isOpen, onOpenChange: setIsOpen, children: [
9909
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_themes19.DropdownMenu.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
9766
9910
  StyledTrigger,
9767
9911
  {
9768
9912
  ref: (r) => {
@@ -9778,7 +9922,7 @@ var MultiSelect = import_react17.default.forwardRef(
9778
9922
  style: width !== "100%" ? { width } : void 0,
9779
9923
  onClick: handleToggle,
9780
9924
  children: [
9781
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
9925
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9782
9926
  StyledText,
9783
9927
  {
9784
9928
  typography: "labelMedium",
@@ -9786,7 +9930,7 @@ var MultiSelect = import_react17.default.forwardRef(
9786
9930
  children: text
9787
9931
  }
9788
9932
  ),
9789
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
9933
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9790
9934
  import_react_fontawesome3.FontAwesomeIcon,
9791
9935
  {
9792
9936
  icon: isOpen ? import_free_solid_svg_icons3.faChevronUp : import_free_solid_svg_icons3.faChevronDown,
@@ -9797,14 +9941,14 @@ var MultiSelect = import_react17.default.forwardRef(
9797
9941
  ]
9798
9942
  }
9799
9943
  ) }),
9800
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
9944
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9801
9945
  StyledContent,
9802
9946
  {
9803
9947
  css: {
9804
9948
  width: "100%",
9805
9949
  zIndex: zIndex === "auto" ? 999999 : zIndex
9806
9950
  },
9807
- children: !singleSelect ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
9951
+ children: !singleSelect ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9808
9952
  CheckboxGroup,
9809
9953
  {
9810
9954
  value: selectedValues,
@@ -9814,7 +9958,7 @@ var MultiSelect = import_react17.default.forwardRef(
9814
9958
  setAllOptionsSelected(false);
9815
9959
  }
9816
9960
  },
9817
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
9961
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
9818
9962
  StyledFlexWithMaxHeight,
9819
9963
  {
9820
9964
  direction: "column",
@@ -9822,7 +9966,7 @@ var MultiSelect = import_react17.default.forwardRef(
9822
9966
  hasMaxHeight: !!maxHeight,
9823
9967
  style: maxHeight ? { maxHeight } : void 0,
9824
9968
  children: [
9825
- selectedAllOptions && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
9969
+ selectedAllOptions && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
9826
9970
  ButtonSelectAllStyled,
9827
9971
  {
9828
9972
  css: itemStyle,
@@ -9831,30 +9975,30 @@ var MultiSelect = import_react17.default.forwardRef(
9831
9975
  },
9832
9976
  type: "button",
9833
9977
  children: [
9834
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: allOptionsSelected ? "checked" : "" }),
9835
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text, { typography: "labelSmall", children: selectedAllText ? selectedAllText : "Selecionar Todos" })
9978
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: allOptionsSelected ? "checked" : "" }),
9979
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Text, { typography: "labelSmall", children: selectedAllText ? selectedAllText : "Selecionar Todos" })
9836
9980
  ]
9837
9981
  }
9838
9982
  ),
9839
- options.map(({ value, label }, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CheckboxItem, { value, css: itemStyle, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text, { typography: "labelSmall", children: label }) }, i))
9983
+ options.map(({ value, label }, i) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CheckboxItem, { value, css: itemStyle, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Text, { typography: "labelSmall", children: label }) }, i))
9840
9984
  ]
9841
9985
  }
9842
9986
  )
9843
9987
  }
9844
- ) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
9988
+ ) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9845
9989
  StyledFlexWithMaxHeight,
9846
9990
  {
9847
9991
  direction: "column",
9848
9992
  gap: 8,
9849
9993
  hasMaxHeight: !!maxHeight,
9850
9994
  style: maxHeight ? { maxHeight } : void 0,
9851
- children: options.map(({ value, label }, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(StyledItem2, { onClick: () => handleItemClick(value), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text, { typography: "labelSmall", children: label }) }, i))
9995
+ children: options.map(({ value, label }, i) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(StyledItem2, { onClick: () => handleItemClick(value), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Text, { typography: "labelSmall", children: label }) }, i))
9852
9996
  }
9853
9997
  )
9854
9998
  }
9855
9999
  )
9856
10000
  ] }),
9857
- selectedValues.length > 0 && showSelectedValues && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
10001
+ selectedValues.length > 0 && showSelectedValues && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9858
10002
  StyledFlexSelectedItems,
9859
10003
  {
9860
10004
  direction: selectedOrientation,
@@ -9862,14 +10006,14 @@ var MultiSelect = import_react17.default.forwardRef(
9862
10006
  align: selectedOrientation === "column" ? "start" : "center",
9863
10007
  justify: "start",
9864
10008
  css: __spreadValues({}, selectedScroll && { maxHeight: maxHeight || "400px" }),
9865
- children: selectedValues.map((value) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
10009
+ children: selectedValues.map((value) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
9866
10010
  Flex2,
9867
10011
  {
9868
10012
  gap: 4,
9869
10013
  align: "center",
9870
10014
  css: { flexWrap: "wrap" },
9871
10015
  children: [
9872
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
10016
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9873
10017
  CloseBtnStyled,
9874
10018
  {
9875
10019
  onClick: (e) => {
@@ -9877,10 +10021,10 @@ var MultiSelect = import_react17.default.forwardRef(
9877
10021
  handleRemove(value);
9878
10022
  },
9879
10023
  type: "button",
9880
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_fontawesome3.FontAwesomeIcon, { icon: import_free_solid_svg_icons3.faSquareXmark, size: "sm" })
10024
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_fontawesome3.FontAwesomeIcon, { icon: import_free_solid_svg_icons3.faSquareXmark, size: "sm" })
9881
10025
  }
9882
10026
  ),
9883
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
10027
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9884
10028
  Text,
9885
10029
  {
9886
10030
  typography: "captionMedium",
@@ -9908,7 +10052,7 @@ var Divider = styled("div", {
9908
10052
 
9909
10053
  // src/components/Grid.tsx
9910
10054
  var import_themes20 = require("@radix-ui/themes");
9911
- var import_jsx_runtime27 = require("react/jsx-runtime");
10055
+ var import_jsx_runtime28 = require("react/jsx-runtime");
9912
10056
  var GridStyled = styled(import_themes20.Grid, {
9913
10057
  display: "grid",
9914
10058
  variants: {
@@ -10030,12 +10174,12 @@ var GridStyled = styled(import_themes20.Grid, {
10030
10174
  });
10031
10175
  function Grid(_a) {
10032
10176
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
10033
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(GridStyled, __spreadProps(__spreadValues({}, props), { children }));
10177
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(GridStyled, __spreadProps(__spreadValues({}, props), { children }));
10034
10178
  }
10035
10179
 
10036
10180
  // src/components/Container.tsx
10037
10181
  var import_themes21 = require("@radix-ui/themes");
10038
- var import_jsx_runtime28 = require("react/jsx-runtime");
10182
+ var import_jsx_runtime29 = require("react/jsx-runtime");
10039
10183
  var ContainerStyled = styled(import_themes21.Container, {
10040
10184
  variants: {
10041
10185
  size: {
@@ -10065,12 +10209,12 @@ var ContainerStyled = styled(import_themes21.Container, {
10065
10209
  });
10066
10210
  function Container(_a) {
10067
10211
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
10068
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ContainerStyled, __spreadProps(__spreadValues({}, props), { children }));
10212
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ContainerStyled, __spreadProps(__spreadValues({}, props), { children }));
10069
10213
  }
10070
10214
 
10071
10215
  // src/components/Section.tsx
10072
10216
  var import_themes22 = require("@radix-ui/themes");
10073
- var import_jsx_runtime29 = require("react/jsx-runtime");
10217
+ var import_jsx_runtime30 = require("react/jsx-runtime");
10074
10218
  var SectionStyled = styled(import_themes22.Section, {
10075
10219
  variants: {
10076
10220
  size: {
@@ -10094,26 +10238,26 @@ var SectionStyled = styled(import_themes22.Section, {
10094
10238
  });
10095
10239
  function Section(_a) {
10096
10240
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
10097
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SectionStyled, __spreadProps(__spreadValues({}, props), { children }));
10241
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SectionStyled, __spreadProps(__spreadValues({}, props), { children }));
10098
10242
  }
10099
10243
 
10100
10244
  // src/components/FormFields/subComponents/ErrorFormMessage.tsx
10101
10245
  var import_free_solid_svg_icons4 = require("@fortawesome/free-solid-svg-icons");
10102
10246
  var import_react_fontawesome4 = require("@fortawesome/react-fontawesome");
10103
- var import_jsx_runtime30 = require("react/jsx-runtime");
10247
+ var import_jsx_runtime31 = require("react/jsx-runtime");
10104
10248
  var ErrorFormMessage = ({ message: message2 }) => {
10105
10249
  if (!message2) return null;
10106
10250
  if (typeof message2 !== "string") {
10107
10251
  return null;
10108
10252
  }
10109
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Flex2, { justify: "start", align: "center", gap: 6, children: [
10110
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_fontawesome4.FontAwesomeIcon, { icon: import_free_solid_svg_icons4.faXmarkCircle, color: colors.error600, size: "1x" }),
10111
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10253
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Flex2, { justify: "start", align: "center", gap: 6, children: [
10254
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_fontawesome4.FontAwesomeIcon, { icon: import_free_solid_svg_icons4.faXmarkCircle, color: colors.error600, size: "1x" }),
10255
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Text, { typography: "bodyXS", fontWeight: "medium", color: "error600", children: message2 })
10112
10256
  ] });
10113
10257
  };
10114
10258
 
10115
10259
  // src/components/FormFields/subComponents/FormLabel.tsx
10116
- var import_jsx_runtime31 = require("react/jsx-runtime");
10260
+ var import_jsx_runtime32 = require("react/jsx-runtime");
10117
10261
  var FormLabel = ({
10118
10262
  name,
10119
10263
  label,
@@ -10121,7 +10265,7 @@ var FormLabel = ({
10121
10265
  required
10122
10266
  }) => {
10123
10267
  if (!label) return null;
10124
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
10268
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
10125
10269
  Text,
10126
10270
  {
10127
10271
  typography: "labelMedium",
@@ -10130,7 +10274,7 @@ var FormLabel = ({
10130
10274
  id: `${name}-label`,
10131
10275
  children: [
10132
10276
  label,
10133
- !required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Text, { color: "dark500", children: " (opcional)" })
10277
+ !required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { color: "dark500", children: " (opcional)" })
10134
10278
  ]
10135
10279
  }
10136
10280
  );
@@ -10138,7 +10282,7 @@ var FormLabel = ({
10138
10282
 
10139
10283
  // src/components/FormFields/TextAreaFormField.tsx
10140
10284
  var import_react_hook_form = require("react-hook-form");
10141
- var import_jsx_runtime32 = require("react/jsx-runtime");
10285
+ var import_jsx_runtime33 = require("react/jsx-runtime");
10142
10286
  var TextAreaFormField = (_a) => {
10143
10287
  var _b = _a, {
10144
10288
  name,
@@ -10146,14 +10290,16 @@ var TextAreaFormField = (_a) => {
10146
10290
  required,
10147
10291
  placeholder,
10148
10292
  validate,
10149
- validationErrorMessage = "Este campo \xE9 obrigat\xF3rio."
10293
+ validationErrorMessage = "Este campo \xE9 obrigat\xF3rio.",
10294
+ simpleLayout = false
10150
10295
  } = _b, props = __objRest(_b, [
10151
10296
  "name",
10152
10297
  "label",
10153
10298
  "required",
10154
10299
  "placeholder",
10155
10300
  "validate",
10156
- "validationErrorMessage"
10301
+ "validationErrorMessage",
10302
+ "simpleLayout"
10157
10303
  ]);
10158
10304
  var _a2;
10159
10305
  const {
@@ -10166,8 +10312,8 @@ var TextAreaFormField = (_a) => {
10166
10312
  required: required ? validationErrorMessage : false,
10167
10313
  validate
10168
10314
  };
10169
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Flex2, { direction: "column", children: [
10170
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
10315
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Flex2, { direction: "column", children: [
10316
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10171
10317
  FormLabel,
10172
10318
  {
10173
10319
  name,
@@ -10176,23 +10322,24 @@ var TextAreaFormField = (_a) => {
10176
10322
  haveError
10177
10323
  }
10178
10324
  ),
10179
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
10325
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10180
10326
  TextareaField,
10181
10327
  __spreadProps(__spreadValues(__spreadValues({}, props), register(name, validationRules)), {
10182
10328
  placeholder,
10183
10329
  color: haveError ? "error" : "default",
10330
+ simpleLayout,
10184
10331
  "aria-labelledby": `${name}-label`
10185
10332
  })
10186
10333
  ),
10187
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ErrorFormMessage, { message: errorMsg })
10334
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ErrorFormMessage, { message: errorMsg })
10188
10335
  ] });
10189
10336
  };
10190
10337
 
10191
10338
  // src/components/FormFields/TextFormField.tsx
10192
10339
  var import_react_hook_form2 = require("react-hook-form");
10193
- var import_react19 = require("react");
10340
+ var import_react20 = require("react");
10194
10341
  var import_mask2 = require("@react-input/mask");
10195
- var import_jsx_runtime33 = require("react/jsx-runtime");
10342
+ var import_jsx_runtime34 = require("react/jsx-runtime");
10196
10343
  var TextFormField = (_a) => {
10197
10344
  var _b = _a, {
10198
10345
  name,
@@ -10213,7 +10360,7 @@ var TextFormField = (_a) => {
10213
10360
  "onChange",
10214
10361
  "valueFormatter"
10215
10362
  ]);
10216
- const handleValidate = (0, import_react19.useCallback)(
10363
+ const handleValidate = (0, import_react20.useCallback)(
10217
10364
  (value) => {
10218
10365
  var _a2;
10219
10366
  if (value === void 0 || value === null || !required && value.trim() === "")
@@ -10235,7 +10382,7 @@ var TextFormField = (_a) => {
10235
10382
  const haveError = !!fieldError;
10236
10383
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
10237
10384
  const { value: formValue, onChange: formChange } = field;
10238
- const formattedValue = (0, import_react19.useMemo)(() => {
10385
+ const formattedValue = (0, import_react20.useMemo)(() => {
10239
10386
  let value = formValue;
10240
10387
  if (valueFormatter) value = valueFormatter.format(value);
10241
10388
  if (mask) value = (0, import_mask2.format)(value != null ? value : "", mask);
@@ -10247,8 +10394,8 @@ var TextFormField = (_a) => {
10247
10394
  if (valueFormatter) value = valueFormatter.unformat(value);
10248
10395
  formChange(value);
10249
10396
  };
10250
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Flex2, { direction: "column", children: [
10251
- label && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10397
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Flex2, { direction: "column", children: [
10398
+ label && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10252
10399
  FormLabel,
10253
10400
  {
10254
10401
  name,
@@ -10257,7 +10404,7 @@ var TextFormField = (_a) => {
10257
10404
  haveError
10258
10405
  }
10259
10406
  ),
10260
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10407
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10261
10408
  TextField,
10262
10409
  __spreadProps(__spreadValues(__spreadValues({
10263
10410
  mask,
@@ -10268,13 +10415,13 @@ var TextFormField = (_a) => {
10268
10415
  value: formattedValue
10269
10416
  })
10270
10417
  ),
10271
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ErrorFormMessage, { message: errorMsg })
10418
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ErrorFormMessage, { message: errorMsg })
10272
10419
  ] });
10273
10420
  };
10274
10421
 
10275
10422
  // src/components/FormFields/Form.tsx
10276
10423
  var import_react_hook_form3 = require("react-hook-form");
10277
- var import_jsx_runtime34 = require("react/jsx-runtime");
10424
+ var import_jsx_runtime35 = require("react/jsx-runtime");
10278
10425
  var Form = (_a) => {
10279
10426
  var _b = _a, {
10280
10427
  onSubmit,
@@ -10286,7 +10433,7 @@ var Form = (_a) => {
10286
10433
  const formMethods = (0, import_react_hook_form3.useForm)(__spreadValues({
10287
10434
  mode: "onTouched"
10288
10435
  }, props));
10289
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_hook_form3.FormProvider, __spreadProps(__spreadValues({}, formMethods), { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("form", { onSubmit: formMethods.handleSubmit(onSubmit), children: (() => {
10436
+ 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: (() => {
10290
10437
  if (typeof children === "function") {
10291
10438
  return children(formMethods);
10292
10439
  }
@@ -10296,7 +10443,7 @@ var Form = (_a) => {
10296
10443
 
10297
10444
  // src/components/FormFields/MultiSelectFormField.tsx
10298
10445
  var import_react_hook_form4 = require("react-hook-form");
10299
- var import_jsx_runtime35 = require("react/jsx-runtime");
10446
+ var import_jsx_runtime36 = require("react/jsx-runtime");
10300
10447
  var MultiSelectFormField = (_a) => {
10301
10448
  var _b = _a, {
10302
10449
  name,
@@ -10327,8 +10474,8 @@ var MultiSelectFormField = (_a) => {
10327
10474
  const handleChange = (v) => {
10328
10475
  onChange(v);
10329
10476
  };
10330
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Flex2, { direction: "column", children: [
10331
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10477
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Flex2, { direction: "column", children: [
10478
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
10332
10479
  FormLabel,
10333
10480
  {
10334
10481
  name,
@@ -10337,7 +10484,7 @@ var MultiSelectFormField = (_a) => {
10337
10484
  haveError
10338
10485
  }
10339
10486
  ),
10340
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10487
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
10341
10488
  MultiSelect,
10342
10489
  __spreadValues({
10343
10490
  value,
@@ -10349,7 +10496,7 @@ var MultiSelectFormField = (_a) => {
10349
10496
  maxHeight
10350
10497
  }, rest)
10351
10498
  ),
10352
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ErrorFormMessage, { message: errorMsg })
10499
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ErrorFormMessage, { message: errorMsg })
10353
10500
  ] });
10354
10501
  };
10355
10502
 
@@ -10367,13 +10514,13 @@ var minMaxLength = (min, max, errorMsg) => (value) => {
10367
10514
  };
10368
10515
 
10369
10516
  // src/components/FormFields/PhoneFormField.tsx
10370
- var import_jsx_runtime36 = require("react/jsx-runtime");
10517
+ var import_jsx_runtime37 = require("react/jsx-runtime");
10371
10518
  var PhoneFormField = ({
10372
10519
  name,
10373
10520
  label,
10374
10521
  required
10375
10522
  }) => {
10376
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
10523
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
10377
10524
  TextFormField,
10378
10525
  {
10379
10526
  name,
@@ -10403,7 +10550,7 @@ var PhoneFormField = ({
10403
10550
 
10404
10551
  // src/components/FormFields/CPFFormField.tsx
10405
10552
  var import_react_hook_form5 = require("react-hook-form");
10406
- var import_jsx_runtime37 = require("react/jsx-runtime");
10553
+ var import_jsx_runtime38 = require("react/jsx-runtime");
10407
10554
  var isValidCPF = (cpf) => {
10408
10555
  cpf = cpf.replace(/[^\d]+/g, "");
10409
10556
  if (cpf.length !== 11 || /^(\d)\1{10}$/.test(cpf)) return false;
@@ -10429,8 +10576,8 @@ var CPFFormField = ({
10429
10576
  }) => {
10430
10577
  const { control, setValue } = (0, import_react_hook_form5.useFormContext)();
10431
10578
  const foreigner = (0, import_react_hook_form5.useWatch)({ name: "foreigner", control });
10432
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Flex2, { direction: "column", children: [
10433
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
10579
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Flex2, { direction: "column", children: [
10580
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10434
10581
  TextFormField,
10435
10582
  {
10436
10583
  name,
@@ -10448,7 +10595,7 @@ var CPFFormField = ({
10448
10595
  disabled: foreigner
10449
10596
  }
10450
10597
  ),
10451
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
10598
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10452
10599
  CheckboxGroup,
10453
10600
  {
10454
10601
  value: foreigner ? ["true"] : [],
@@ -10460,14 +10607,14 @@ var CPFFormField = ({
10460
10607
  setValue(name, "");
10461
10608
  }
10462
10609
  },
10463
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CheckboxItem, { value: "true", children: foreignerLabel })
10610
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CheckboxItem, { value: "true", children: foreignerLabel })
10464
10611
  }
10465
10612
  )
10466
10613
  ] });
10467
10614
  };
10468
10615
 
10469
10616
  // src/components/FormFields/CNPJFormField.tsx
10470
- var import_jsx_runtime38 = require("react/jsx-runtime");
10617
+ var import_jsx_runtime39 = require("react/jsx-runtime");
10471
10618
  var matchesNonDigit = new RegExp(/\D+/g);
10472
10619
  var getWeights = (size, start, end) => {
10473
10620
  const weights = [];
@@ -10516,7 +10663,7 @@ var CNPJFormField = ({
10516
10663
  placeholder,
10517
10664
  validationErrorMessage
10518
10665
  }) => {
10519
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10666
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
10520
10667
  TextFormField,
10521
10668
  {
10522
10669
  name,
@@ -10537,7 +10684,7 @@ var CNPJFormField = ({
10537
10684
  };
10538
10685
 
10539
10686
  // src/components/FormFields/BirthDateFormField.tsx
10540
- var import_jsx_runtime39 = require("react/jsx-runtime");
10687
+ var import_jsx_runtime40 = require("react/jsx-runtime");
10541
10688
  var isValidDate = (day, month, year) => {
10542
10689
  const date = new Date(year, month - 1, day);
10543
10690
  return date.getFullYear() === year && date.getMonth() === month - 1 && date.getDate() === day;
@@ -10574,7 +10721,7 @@ var BirthDateFormField = ({
10574
10721
  language
10575
10722
  }) => {
10576
10723
  const inputPlaceholder = placeholder || (language === "pt-BR" ? "DD/MM/AAAA" : "MM/DD/YYYY");
10577
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
10724
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
10578
10725
  TextFormField,
10579
10726
  {
10580
10727
  name,
@@ -10595,7 +10742,7 @@ var BirthDateFormField = ({
10595
10742
  };
10596
10743
 
10597
10744
  // src/components/FormFields/IdentityDocumentNumberFormField.tsx
10598
- var import_jsx_runtime40 = require("react/jsx-runtime");
10745
+ var import_jsx_runtime41 = require("react/jsx-runtime");
10599
10746
  var IdentityDocumentNumberFormField = ({
10600
10747
  name,
10601
10748
  label,
@@ -10603,7 +10750,7 @@ var IdentityDocumentNumberFormField = ({
10603
10750
  placeholder,
10604
10751
  validationErrorMessage
10605
10752
  }) => {
10606
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
10753
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10607
10754
  TextFormField,
10608
10755
  {
10609
10756
  name,
@@ -10632,7 +10779,7 @@ function getNestedValue(obj, path) {
10632
10779
  }
10633
10780
 
10634
10781
  // src/components/FormFields/SelectFormField.tsx
10635
- var import_jsx_runtime41 = require("react/jsx-runtime");
10782
+ var import_jsx_runtime42 = require("react/jsx-runtime");
10636
10783
  var SelectFormField = ({
10637
10784
  name,
10638
10785
  label,
@@ -10653,8 +10800,8 @@ var SelectFormField = ({
10653
10800
  const validationRules = __spreadValues({
10654
10801
  required: required ? validationErrorMessage : false
10655
10802
  }, validation);
10656
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Flex2, { direction: "column", children: [
10657
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10803
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Flex2, { direction: "column", children: [
10804
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10658
10805
  FormLabel,
10659
10806
  {
10660
10807
  name,
@@ -10663,7 +10810,7 @@ var SelectFormField = ({
10663
10810
  haveError
10664
10811
  }
10665
10812
  ),
10666
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10813
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10667
10814
  import_react_hook_form6.Controller,
10668
10815
  {
10669
10816
  control,
@@ -10672,14 +10819,14 @@ var SelectFormField = ({
10672
10819
  defaultValue: defaultValue || "",
10673
10820
  render: ({ field: { value, onChange } }) => {
10674
10821
  const selectedOption = options.find((opt) => opt.value === value);
10675
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10822
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10676
10823
  DropdownMenu2,
10677
10824
  {
10678
10825
  placeholder: (selectedOption == null ? void 0 : selectedOption.label) || placeholder,
10679
10826
  fontWeight: "regular",
10680
10827
  typography: "labelLarge",
10681
10828
  color: haveError ? "error" : "default",
10682
- children: options.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10829
+ children: options.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10683
10830
  DropdownMenuItem,
10684
10831
  {
10685
10832
  value: option.value,
@@ -10695,7 +10842,7 @@ var SelectFormField = ({
10695
10842
  }
10696
10843
  }
10697
10844
  ),
10698
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ErrorFormMessage, { message: errorMsg })
10845
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ErrorFormMessage, { message: errorMsg })
10699
10846
  ] });
10700
10847
  };
10701
10848
 
@@ -10728,7 +10875,7 @@ function useCountries(language = "pt-BR") {
10728
10875
  }
10729
10876
 
10730
10877
  // src/components/FormFields/AddressFormFields/CountryFormField.tsx
10731
- var import_jsx_runtime42 = require("react/jsx-runtime");
10878
+ var import_jsx_runtime43 = require("react/jsx-runtime");
10732
10879
  function CountryFormField({
10733
10880
  name,
10734
10881
  label,
@@ -10736,7 +10883,7 @@ function CountryFormField({
10736
10883
  language = "pt-BR"
10737
10884
  }) {
10738
10885
  const countries2 = useCountries(language);
10739
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Flex2, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10886
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Flex2, { direction: "column", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10740
10887
  SelectFormField,
10741
10888
  {
10742
10889
  label,
@@ -10749,7 +10896,7 @@ function CountryFormField({
10749
10896
  }
10750
10897
 
10751
10898
  // src/components/FormFields/AddressFormFields/PostalCodeFormField.tsx
10752
- var import_jsx_runtime43 = require("react/jsx-runtime");
10899
+ var import_jsx_runtime44 = require("react/jsx-runtime");
10753
10900
  var PostalCodeFormField = ({
10754
10901
  name,
10755
10902
  label,
@@ -10758,7 +10905,7 @@ var PostalCodeFormField = ({
10758
10905
  validationErrorMessage,
10759
10906
  onChange
10760
10907
  }) => {
10761
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10908
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10762
10909
  TextFormField,
10763
10910
  {
10764
10911
  name,
@@ -10811,14 +10958,14 @@ var brazilianStates = [
10811
10958
  ];
10812
10959
 
10813
10960
  // src/components/FormFields/AddressFormFields/StateFormField.tsx
10814
- var import_jsx_runtime44 = require("react/jsx-runtime");
10961
+ var import_jsx_runtime45 = require("react/jsx-runtime");
10815
10962
  function StateFormField({
10816
10963
  name,
10817
10964
  label,
10818
10965
  required,
10819
10966
  isBrazil
10820
10967
  }) {
10821
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: isBrazil ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10968
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: isBrazil ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10822
10969
  SelectFormField,
10823
10970
  {
10824
10971
  name,
@@ -10826,13 +10973,13 @@ function StateFormField({
10826
10973
  required,
10827
10974
  label
10828
10975
  }
10829
- ) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TextFormField, { name, required, label }) });
10976
+ ) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TextFormField, { name, required, label }) });
10830
10977
  }
10831
10978
 
10832
10979
  // src/components/FormFields/AddressFormFields/CityFormField.tsx
10833
- var import_react20 = require("react");
10980
+ var import_react21 = require("react");
10834
10981
  var import_react_hook_form7 = require("react-hook-form");
10835
- var import_jsx_runtime45 = require("react/jsx-runtime");
10982
+ var import_jsx_runtime46 = require("react/jsx-runtime");
10836
10983
  function CityFormField({
10837
10984
  name,
10838
10985
  label,
@@ -10843,9 +10990,9 @@ function CityFormField({
10843
10990
  }) {
10844
10991
  const { control, watch } = (0, import_react_hook_form7.useFormContext)();
10845
10992
  const selectedState = watch(stateName);
10846
- const [cities, setCities] = (0, import_react20.useState)([]);
10847
- const [loading, setLoading] = (0, import_react20.useState)(false);
10848
- (0, import_react20.useEffect)(() => {
10993
+ const [cities, setCities] = (0, import_react21.useState)([]);
10994
+ const [loading, setLoading] = (0, import_react21.useState)(false);
10995
+ (0, import_react21.useEffect)(() => {
10849
10996
  if (!isBrazil) {
10850
10997
  setCities([]);
10851
10998
  return;
@@ -10884,13 +11031,13 @@ function CityFormField({
10884
11031
  }
10885
11032
  fetchCities();
10886
11033
  }, [selectedState, isBrazil]);
10887
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: isBrazil && cities.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11034
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: isBrazil && cities.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10888
11035
  import_react_hook_form7.Controller,
10889
11036
  {
10890
11037
  name,
10891
11038
  control,
10892
11039
  rules: { required },
10893
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11040
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10894
11041
  SelectFormField,
10895
11042
  __spreadProps(__spreadValues({
10896
11043
  label,
@@ -10904,7 +11051,7 @@ function CityFormField({
10904
11051
  })
10905
11052
  )
10906
11053
  }
10907
- ) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11054
+ ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10908
11055
  TextFormField,
10909
11056
  {
10910
11057
  name,
@@ -10916,7 +11063,7 @@ function CityFormField({
10916
11063
  }
10917
11064
 
10918
11065
  // src/components/FormFields/AddressFormFields/index.tsx
10919
- var import_jsx_runtime46 = require("react/jsx-runtime");
11066
+ var import_jsx_runtime47 = require("react/jsx-runtime");
10920
11067
  function getNestedValue2(obj, path) {
10921
11068
  return path.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], obj);
10922
11069
  }
@@ -10966,8 +11113,8 @@ function AddressFormFields({
10966
11113
  console.error("Erro ao buscar CEP");
10967
11114
  });
10968
11115
  };
10969
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(AddressContainerStyled, { layout, children: [
10970
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11116
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(AddressContainerStyled, { layout, children: [
11117
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10971
11118
  FormLabel,
10972
11119
  {
10973
11120
  name,
@@ -10976,7 +11123,7 @@ function AddressFormFields({
10976
11123
  haveError
10977
11124
  }
10978
11125
  ),
10979
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11126
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10980
11127
  CountryFormField,
10981
11128
  {
10982
11129
  name: `${name}.country`,
@@ -10985,7 +11132,7 @@ function AddressFormFields({
10985
11132
  language: "pt-BR"
10986
11133
  }
10987
11134
  ),
10988
- isBrazil ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11135
+ isBrazil ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10989
11136
  PostalCodeFormField,
10990
11137
  {
10991
11138
  name: `${name}.zip_code`,
@@ -10995,7 +11142,7 @@ function AddressFormFields({
10995
11142
  validationErrorMessage: "CEP inv\xE1lido",
10996
11143
  onChange: handleCEPChange
10997
11144
  }
10998
- ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11145
+ ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10999
11146
  TextFormField,
11000
11147
  {
11001
11148
  name: `${name}.zip_code`,
@@ -11003,7 +11150,7 @@ function AddressFormFields({
11003
11150
  required
11004
11151
  }
11005
11152
  ),
11006
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11153
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11007
11154
  StateFormField,
11008
11155
  {
11009
11156
  name: `${name}.state`,
@@ -11012,7 +11159,7 @@ function AddressFormFields({
11012
11159
  isBrazil
11013
11160
  }
11014
11161
  ),
11015
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11162
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11016
11163
  CityFormField,
11017
11164
  {
11018
11165
  name: `${name}.city`,
@@ -11022,8 +11169,8 @@ function AddressFormFields({
11022
11169
  isBrazil
11023
11170
  }
11024
11171
  ),
11025
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TextFormField, { name: `${name}.street`, label: "Rua", required }),
11026
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11172
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TextFormField, { name: `${name}.street`, label: "Rua", required }),
11173
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11027
11174
  TextFormField,
11028
11175
  {
11029
11176
  name: `${name}.number`,
@@ -11031,7 +11178,7 @@ function AddressFormFields({
11031
11178
  required
11032
11179
  }
11033
11180
  ),
11034
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11181
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11035
11182
  TextFormField,
11036
11183
  {
11037
11184
  name: `${name}.neighborhood`,
@@ -11039,13 +11186,13 @@ function AddressFormFields({
11039
11186
  required
11040
11187
  }
11041
11188
  ),
11042
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TextFormField, { name: `${name}.complement`, label: "Complemento" })
11189
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TextFormField, { name: `${name}.complement`, label: "Complemento" })
11043
11190
  ] });
11044
11191
  }
11045
11192
 
11046
11193
  // src/components/FormFields/RadioGroupFormField.tsx
11047
11194
  var import_react_hook_form9 = require("react-hook-form");
11048
- var import_jsx_runtime47 = require("react/jsx-runtime");
11195
+ var import_jsx_runtime48 = require("react/jsx-runtime");
11049
11196
  var RadioGroupFormField = ({
11050
11197
  name,
11051
11198
  label,
@@ -11067,8 +11214,8 @@ var RadioGroupFormField = ({
11067
11214
  const validationRules = {
11068
11215
  required: required ? validationErrorMessage : false
11069
11216
  };
11070
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Flex2, { direction: "column", children: [
11071
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11217
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Flex2, { direction: "column", children: [
11218
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11072
11219
  FormLabel,
11073
11220
  {
11074
11221
  name,
@@ -11077,14 +11224,14 @@ var RadioGroupFormField = ({
11077
11224
  haveError
11078
11225
  }
11079
11226
  ),
11080
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11227
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11081
11228
  import_react_hook_form9.Controller,
11082
11229
  {
11083
11230
  name,
11084
11231
  control,
11085
11232
  defaultValue: defaultValue || "",
11086
11233
  rules: validationRules,
11087
- render: ({ field: { value, onChange } }) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11234
+ render: ({ field: { value, onChange } }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11088
11235
  RadioGroup,
11089
11236
  {
11090
11237
  value,
@@ -11092,21 +11239,21 @@ var RadioGroupFormField = ({
11092
11239
  color: haveError ? "error" : color,
11093
11240
  fontWeight,
11094
11241
  disabled,
11095
- children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("label", { children: [
11096
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadioItem, { value: option.value }),
11242
+ children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("label", { children: [
11243
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(RadioItem, { value: option.value }),
11097
11244
  option.label
11098
11245
  ] }, option.value))
11099
11246
  }
11100
11247
  )
11101
11248
  }
11102
11249
  ),
11103
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ErrorFormMessage, { message: errorMsg })
11250
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ErrorFormMessage, { message: errorMsg })
11104
11251
  ] });
11105
11252
  };
11106
11253
 
11107
11254
  // src/components/FormFields/CheckboxGroupFormField.tsx
11108
11255
  var import_react_hook_form10 = require("react-hook-form");
11109
- var import_jsx_runtime48 = require("react/jsx-runtime");
11256
+ var import_jsx_runtime49 = require("react/jsx-runtime");
11110
11257
  var CheckboxGroupFormField = ({
11111
11258
  name,
11112
11259
  label,
@@ -11129,8 +11276,8 @@ var CheckboxGroupFormField = ({
11129
11276
  required: required ? validationErrorMessage : false,
11130
11277
  validate: required ? (value) => (value == null ? void 0 : value.length) > 0 || validationErrorMessage : void 0
11131
11278
  };
11132
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Flex2, { direction: "column", children: [
11133
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11279
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Flex2, { direction: "column", children: [
11280
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11134
11281
  FormLabel,
11135
11282
  {
11136
11283
  name,
@@ -11139,14 +11286,14 @@ var CheckboxGroupFormField = ({
11139
11286
  haveError
11140
11287
  }
11141
11288
  ),
11142
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11289
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11143
11290
  import_react_hook_form10.Controller,
11144
11291
  {
11145
11292
  name,
11146
11293
  control,
11147
11294
  rules: validationRules,
11148
11295
  defaultValue,
11149
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11296
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11150
11297
  CheckboxGroup,
11151
11298
  {
11152
11299
  name,
@@ -11155,7 +11302,7 @@ var CheckboxGroupFormField = ({
11155
11302
  color: haveError ? "error" : color,
11156
11303
  fontWeight,
11157
11304
  disabled,
11158
- children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11305
+ children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11159
11306
  CheckboxItem,
11160
11307
  {
11161
11308
  value: option.value,
@@ -11168,13 +11315,13 @@ var CheckboxGroupFormField = ({
11168
11315
  )
11169
11316
  }
11170
11317
  ),
11171
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ErrorFormMessage, { message: errorMsg })
11318
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ErrorFormMessage, { message: errorMsg })
11172
11319
  ] });
11173
11320
  };
11174
11321
 
11175
11322
  // src/components/FormFields/SwitchFormField.tsx
11176
11323
  var import_react_hook_form11 = require("react-hook-form");
11177
- var import_jsx_runtime49 = require("react/jsx-runtime");
11324
+ var import_jsx_runtime50 = require("react/jsx-runtime");
11178
11325
  var SwitchFormField = ({
11179
11326
  name,
11180
11327
  label,
@@ -11188,15 +11335,15 @@ var SwitchFormField = ({
11188
11335
  if (watch) {
11189
11336
  watchForm(name);
11190
11337
  }
11191
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Flex2, { justify: "between", style: { margin: "1rem 0" }, children: [
11192
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11193
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11338
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Flex2, { justify: "between", style: { margin: "1rem 0" }, children: [
11339
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Text, { typography: "labelMedium", fontWeight: "regular", children: label }),
11340
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11194
11341
  import_react_hook_form11.Controller,
11195
11342
  {
11196
11343
  control,
11197
11344
  name,
11198
11345
  defaultValue,
11199
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11346
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11200
11347
  Switch,
11201
11348
  {
11202
11349
  checked: field.value,
@@ -11209,14 +11356,14 @@ var SwitchFormField = ({
11209
11356
  };
11210
11357
 
11211
11358
  // src/components/FormFields/EmailFormField.tsx
11212
- var import_jsx_runtime50 = require("react/jsx-runtime");
11359
+ var import_jsx_runtime51 = require("react/jsx-runtime");
11213
11360
  var EmailFormField = ({
11214
11361
  name,
11215
11362
  label,
11216
11363
  required,
11217
11364
  placeholder
11218
11365
  }) => {
11219
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11366
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
11220
11367
  TextFormField,
11221
11368
  {
11222
11369
  name,
@@ -11233,10 +11380,10 @@ var EmailFormField = ({
11233
11380
  var import_react_hook_form12 = require("react-hook-form");
11234
11381
 
11235
11382
  // src/components/RichEditor/RichEditor.tsx
11236
- var import_react22 = require("react");
11383
+ var import_react23 = require("react");
11237
11384
 
11238
11385
  // src/components/RichEditor/QuillComponent.tsx
11239
- var import_react21 = require("react");
11386
+ var import_react22 = require("react");
11240
11387
  var import_react_quilljs = require("react-quilljs");
11241
11388
 
11242
11389
  // src/utils/uploadService.ts
@@ -12292,7 +12439,7 @@ var QuillEditor = styled("div", {
12292
12439
  });
12293
12440
 
12294
12441
  // src/components/RichEditor/QuillComponent.tsx
12295
- var import_jsx_runtime51 = require("react/jsx-runtime");
12442
+ var import_jsx_runtime52 = require("react/jsx-runtime");
12296
12443
  var QuillComponent = ({
12297
12444
  value = "",
12298
12445
  onChange,
@@ -12305,12 +12452,12 @@ var QuillComponent = ({
12305
12452
  onCharacterCountChange,
12306
12453
  maxLength
12307
12454
  }) => {
12308
- const [showVideoModal, setShowVideoModal] = (0, import_react21.useState)(false);
12309
- const [videoUrl, setVideoUrl] = (0, import_react21.useState)("");
12310
- const [showLinkModal, setShowLinkModal] = (0, import_react21.useState)(false);
12311
- const [linkUrl, setLinkUrl] = (0, import_react21.useState)("");
12312
- const videoModalRef = (0, import_react21.useRef)(null);
12313
- const linkModalRef = (0, import_react21.useRef)(null);
12455
+ const [showVideoModal, setShowVideoModal] = (0, import_react22.useState)(false);
12456
+ const [videoUrl, setVideoUrl] = (0, import_react22.useState)("");
12457
+ const [showLinkModal, setShowLinkModal] = (0, import_react22.useState)(false);
12458
+ const [linkUrl, setLinkUrl] = (0, import_react22.useState)("");
12459
+ const videoModalRef = (0, import_react22.useRef)(null);
12460
+ const linkModalRef = (0, import_react22.useRef)(null);
12314
12461
  const { addToast, removeToast } = useToast();
12315
12462
  const formatHTML = (html) => {
12316
12463
  const parser = new DOMParser();
@@ -12374,7 +12521,7 @@ var QuillComponent = ({
12374
12521
  placeholder,
12375
12522
  readOnly: disabled
12376
12523
  });
12377
- const handleImageUpload = (0, import_react21.useCallback)(
12524
+ const handleImageUpload = (0, import_react22.useCallback)(
12378
12525
  (file) => __async(null, null, function* () {
12379
12526
  if (disabled || !quill || !uploadConfig) return;
12380
12527
  try {
@@ -12406,7 +12553,7 @@ var QuillComponent = ({
12406
12553
  }),
12407
12554
  [disabled, quill, addToast, removeToast, uploadConfig, onChange]
12408
12555
  );
12409
- (0, import_react21.useEffect)(() => {
12556
+ (0, import_react22.useEffect)(() => {
12410
12557
  if (quill && value) {
12411
12558
  const currentContent = quill.root.innerHTML;
12412
12559
  if (currentContent !== value) {
@@ -12420,7 +12567,7 @@ var QuillComponent = ({
12420
12567
  }
12421
12568
  }
12422
12569
  }, [quill, value]);
12423
- (0, import_react21.useEffect)(() => {
12570
+ (0, import_react22.useEffect)(() => {
12424
12571
  if (quill) {
12425
12572
  quill.on("text-change", (delta, oldDelta, source) => {
12426
12573
  if (source === "user") {
@@ -12475,7 +12622,7 @@ var QuillComponent = ({
12475
12622
  }, 2e3);
12476
12623
  }
12477
12624
  }, [quill, onChange, handleImageUpload, onCharacterCountChange]);
12478
- (0, import_react21.useEffect)(() => {
12625
+ (0, import_react22.useEffect)(() => {
12479
12626
  if (quill) {
12480
12627
  quill.enable(!disabled);
12481
12628
  if (!disabled) {
@@ -12486,11 +12633,11 @@ var QuillComponent = ({
12486
12633
  }
12487
12634
  }
12488
12635
  }, [quill, disabled]);
12489
- const handleLinkCancel = (0, import_react21.useCallback)(() => {
12636
+ const handleLinkCancel = (0, import_react22.useCallback)(() => {
12490
12637
  setLinkUrl("");
12491
12638
  setShowLinkModal(false);
12492
12639
  }, []);
12493
- const handleLinkSubmit = (0, import_react21.useCallback)(() => {
12640
+ const handleLinkSubmit = (0, import_react22.useCallback)(() => {
12494
12641
  if (!linkUrl.trim() || !quill) return;
12495
12642
  const url = linkUrl.trim();
12496
12643
  const selection = quill.getSelection();
@@ -12505,11 +12652,11 @@ var QuillComponent = ({
12505
12652
  setLinkUrl("");
12506
12653
  setShowLinkModal(false);
12507
12654
  }, [linkUrl, quill]);
12508
- const handleVideoCancel = (0, import_react21.useCallback)(() => {
12655
+ const handleVideoCancel = (0, import_react22.useCallback)(() => {
12509
12656
  setVideoUrl("");
12510
12657
  setShowVideoModal(false);
12511
12658
  }, []);
12512
- const handleVideoSubmit = (0, import_react21.useCallback)(() => {
12659
+ const handleVideoSubmit = (0, import_react22.useCallback)(() => {
12513
12660
  var _a, _b;
12514
12661
  if (!videoUrl.trim() || !quill) return;
12515
12662
  let processedUrl = videoUrl.trim();
@@ -12542,7 +12689,7 @@ var QuillComponent = ({
12542
12689
  setVideoUrl("");
12543
12690
  setShowVideoModal(false);
12544
12691
  }, [videoUrl, quill]);
12545
- (0, import_react21.useEffect)(() => {
12692
+ (0, import_react22.useEffect)(() => {
12546
12693
  const handleClickOutside = (event) => {
12547
12694
  if (showVideoModal && videoModalRef.current && !videoModalRef.current.contains(event.target)) {
12548
12695
  handleVideoCancel();
@@ -12554,9 +12701,9 @@ var QuillComponent = ({
12554
12701
  document.addEventListener("mousedown", handleClickOutside);
12555
12702
  return () => document.removeEventListener("mousedown", handleClickOutside);
12556
12703
  }, [showVideoModal, showLinkModal, handleVideoCancel, handleLinkCancel]);
12557
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(QuillContainer, { className, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(QuillEditor, { style: { position: "relative" }, children: [
12558
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ref: quillRef }),
12559
- showVideoModal && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12704
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(QuillContainer, { className, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(QuillEditor, { style: { position: "relative" }, children: [
12705
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { ref: quillRef }),
12706
+ showVideoModal && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12560
12707
  "div",
12561
12708
  {
12562
12709
  ref: videoModalRef,
@@ -12573,15 +12720,15 @@ var QuillComponent = ({
12573
12720
  zIndex: 1e3,
12574
12721
  width: "fit-content"
12575
12722
  },
12576
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Flex2, { gap: 8, align: "center", children: [
12577
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12723
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Flex2, { gap: 8, align: "center", children: [
12724
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12578
12725
  Text,
12579
12726
  {
12580
12727
  style: { fontSize: "14px", fontWeight: "500", color: "#333" },
12581
12728
  children: "V\xEDdeo:"
12582
12729
  }
12583
12730
  ),
12584
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12731
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12585
12732
  "input",
12586
12733
  {
12587
12734
  type: "text",
@@ -12605,7 +12752,7 @@ var QuillComponent = ({
12605
12752
  autoFocus: true
12606
12753
  }
12607
12754
  ),
12608
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12755
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12609
12756
  "button",
12610
12757
  {
12611
12758
  onClick: handleVideoSubmit,
@@ -12626,7 +12773,7 @@ var QuillComponent = ({
12626
12773
  ] })
12627
12774
  }
12628
12775
  ),
12629
- showLinkModal && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12776
+ showLinkModal && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12630
12777
  "div",
12631
12778
  {
12632
12779
  ref: linkModalRef,
@@ -12643,15 +12790,15 @@ var QuillComponent = ({
12643
12790
  zIndex: 1e3,
12644
12791
  width: "fit-content"
12645
12792
  },
12646
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Flex2, { gap: 8, align: "center", children: [
12647
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12793
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Flex2, { gap: 8, align: "center", children: [
12794
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12648
12795
  Text,
12649
12796
  {
12650
12797
  style: { fontSize: "14px", fontWeight: "500", color: "#333" },
12651
12798
  children: "Link:"
12652
12799
  }
12653
12800
  ),
12654
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12801
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12655
12802
  "input",
12656
12803
  {
12657
12804
  type: "text",
@@ -12676,7 +12823,7 @@ var QuillComponent = ({
12676
12823
  autoFocus: true
12677
12824
  }
12678
12825
  ),
12679
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
12826
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
12680
12827
  "button",
12681
12828
  {
12682
12829
  onClick: handleLinkSubmit,
@@ -12702,20 +12849,20 @@ var QuillComponent = ({
12702
12849
  var QuillComponent_default = QuillComponent;
12703
12850
 
12704
12851
  // src/components/RichEditor/RichEditor.tsx
12705
- var import_jsx_runtime52 = require("react/jsx-runtime");
12852
+ var import_jsx_runtime53 = require("react/jsx-runtime");
12706
12853
  var RichEditor = (props) => {
12707
- const [isClient, setIsClient] = (0, import_react22.useState)(false);
12708
- (0, import_react22.useEffect)(() => {
12854
+ const [isClient, setIsClient] = (0, import_react23.useState)(false);
12855
+ (0, import_react23.useEffect)(() => {
12709
12856
  setIsClient(typeof window !== "undefined");
12710
12857
  }, []);
12711
12858
  if (!isClient) return null;
12712
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ToastProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(QuillComponent_default, __spreadValues({}, props)) }) });
12859
+ 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)) }) });
12713
12860
  };
12714
12861
  var RichEditor_default = RichEditor;
12715
12862
 
12716
12863
  // src/components/FormFields/RichEditorFormField.tsx
12717
- var import_react23 = require("react");
12718
- var import_jsx_runtime53 = require("react/jsx-runtime");
12864
+ var import_react24 = require("react");
12865
+ var import_jsx_runtime54 = require("react/jsx-runtime");
12719
12866
  var RichEditorFormField = (_a) => {
12720
12867
  var _b = _a, {
12721
12868
  name,
@@ -12749,7 +12896,7 @@ var RichEditorFormField = (_a) => {
12749
12896
  },
12750
12897
  defaultValue: ""
12751
12898
  });
12752
- const [caracterQuantity, setCaracterQuantity] = (0, import_react23.useState)(maxLength);
12899
+ const [caracterQuantity, setCaracterQuantity] = (0, import_react24.useState)(maxLength);
12753
12900
  const handleCharacterCountChange = (count) => {
12754
12901
  if (maxLength !== void 0) {
12755
12902
  setCaracterQuantity(Math.max(0, maxLength - count));
@@ -12758,9 +12905,9 @@ var RichEditorFormField = (_a) => {
12758
12905
  const fieldError = fieldState.error;
12759
12906
  const haveError = !!fieldError;
12760
12907
  const errorMsg = fieldError == null ? void 0 : fieldError.message;
12761
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Flex2, { direction: "column", children: [
12762
- maxLength ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Flex2, { direction: "row", justify: "between", children: [
12763
- label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12908
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Flex2, { direction: "column", children: [
12909
+ maxLength ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Flex2, { direction: "row", justify: "between", children: [
12910
+ label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12764
12911
  FormLabel,
12765
12912
  {
12766
12913
  name,
@@ -12769,8 +12916,8 @@ var RichEditorFormField = (_a) => {
12769
12916
  haveError
12770
12917
  }
12771
12918
  ),
12772
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Badge, { color: "grey", size: "xs", children: caracterQuantity })
12773
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, { children: label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12919
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Badge, { color: "grey", size: "xs", children: caracterQuantity })
12920
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12774
12921
  FormLabel,
12775
12922
  {
12776
12923
  name,
@@ -12779,7 +12926,7 @@ var RichEditorFormField = (_a) => {
12779
12926
  haveError
12780
12927
  }
12781
12928
  ) }),
12782
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
12929
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12783
12930
  RichEditor_default,
12784
12931
  __spreadProps(__spreadValues({}, props), {
12785
12932
  value: field.value,
@@ -12791,14 +12938,14 @@ var RichEditorFormField = (_a) => {
12791
12938
  simpleVersion
12792
12939
  })
12793
12940
  ),
12794
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ErrorFormMessage, { message: errorMsg })
12941
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ErrorFormMessage, { message: errorMsg })
12795
12942
  ] });
12796
12943
  };
12797
12944
 
12798
12945
  // src/components/FormFields/CalendarFormField.tsx
12799
12946
  var import_react_hook_form13 = require("react-hook-form");
12800
- var import_react24 = require("react");
12801
- var import_jsx_runtime54 = require("react/jsx-runtime");
12947
+ var import_react25 = require("react");
12948
+ var import_jsx_runtime55 = require("react/jsx-runtime");
12802
12949
  var CalendarFormField = (_a) => {
12803
12950
  var _b = _a, {
12804
12951
  name,
@@ -12821,7 +12968,7 @@ var CalendarFormField = (_a) => {
12821
12968
  "allowPastDates",
12822
12969
  "maxYearsFromNow"
12823
12970
  ]);
12824
- const handleValidate = (0, import_react24.useCallback)(
12971
+ const handleValidate = (0, import_react25.useCallback)(
12825
12972
  (value) => {
12826
12973
  var _a2;
12827
12974
  if (value === void 0 || value === null) {
@@ -12847,8 +12994,8 @@ var CalendarFormField = (_a) => {
12847
12994
  const handleCalendarChange = (date) => {
12848
12995
  setSelected(date);
12849
12996
  };
12850
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Flex2, { direction: "column", style: { flex: "1" }, children: [
12851
- label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
12997
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Flex2, { direction: "column", style: { flex: "1" }, children: [
12998
+ label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12852
12999
  FormLabel,
12853
13000
  {
12854
13001
  name,
@@ -12857,7 +13004,7 @@ var CalendarFormField = (_a) => {
12857
13004
  haveError
12858
13005
  }
12859
13006
  ),
12860
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
13007
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12861
13008
  Calendar,
12862
13009
  __spreadValues({
12863
13010
  selected,
@@ -12870,14 +13017,83 @@ var CalendarFormField = (_a) => {
12870
13017
  maxYearsFromNow
12871
13018
  }, calendarProps)
12872
13019
  ),
12873
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ErrorFormMessage, { message: errorMsg })
13020
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorFormMessage, { message: errorMsg })
12874
13021
  ] });
12875
13022
  };
12876
13023
 
12877
- // src/components/FormFields/TimePickerFormField.tsx
13024
+ // src/components/FormFields/DoubleCalendarFormField.tsx
13025
+ var import_react26 = require("react");
12878
13026
  var import_react_hook_form14 = require("react-hook-form");
12879
- var import_react25 = require("react");
12880
- var import_jsx_runtime55 = require("react/jsx-runtime");
13027
+ var import_jsx_runtime56 = require("react/jsx-runtime");
13028
+ var DoubleCalendarFormField = (_a) => {
13029
+ var _b = _a, {
13030
+ name,
13031
+ label,
13032
+ required,
13033
+ validate,
13034
+ validationErrorMessage = "Este campo \xE9 obrigat\xF3rio.",
13035
+ rules,
13036
+ allowPastDates,
13037
+ maxYearsFromNow = 20
13038
+ } = _b, calendarProps = __objRest(_b, [
13039
+ "name",
13040
+ "label",
13041
+ "required",
13042
+ "validate",
13043
+ "validationErrorMessage",
13044
+ "rules",
13045
+ "allowPastDates",
13046
+ "maxYearsFromNow"
13047
+ ]);
13048
+ const handleValidate = (0, import_react26.useCallback)(
13049
+ (value) => {
13050
+ var _a2;
13051
+ if (value === void 0 || value === null) {
13052
+ if (required) return validationErrorMessage;
13053
+ return true;
13054
+ }
13055
+ return (_a2 = validate == null ? void 0 : validate(value)) != null ? _a2 : true;
13056
+ },
13057
+ [validate, required, validationErrorMessage]
13058
+ );
13059
+ const { field, fieldState } = (0, import_react_hook_form14.useController)({
13060
+ name,
13061
+ rules: __spreadValues({
13062
+ required: required ? validationErrorMessage : false,
13063
+ validate: handleValidate
13064
+ }, rules),
13065
+ defaultValue: void 0
13066
+ });
13067
+ const fieldError = fieldState.error;
13068
+ const haveError = !!fieldError;
13069
+ const errorMsg = fieldError == null ? void 0 : fieldError.message;
13070
+ const { value: selected, onChange: setSelected } = field;
13071
+ const handleCalendarChange = (range) => {
13072
+ setSelected(range);
13073
+ };
13074
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Flex2, { direction: "column", style: { flex: "1" }, children: [
13075
+ label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(FormLabel, { name, label, required, haveError }),
13076
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
13077
+ DoubleCalendar,
13078
+ __spreadValues({
13079
+ selected,
13080
+ setSelected: (value) => {
13081
+ const newValue = typeof value === "function" ? value(selected) : value;
13082
+ handleCalendarChange(newValue);
13083
+ },
13084
+ hasError: haveError,
13085
+ allowPastDates,
13086
+ maxYearsFromNow
13087
+ }, calendarProps)
13088
+ ),
13089
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ErrorFormMessage, { message: errorMsg })
13090
+ ] });
13091
+ };
13092
+
13093
+ // src/components/FormFields/TimePickerFormField.tsx
13094
+ var import_react_hook_form15 = require("react-hook-form");
13095
+ var import_react27 = require("react");
13096
+ var import_jsx_runtime57 = require("react/jsx-runtime");
12881
13097
  var TimePickerFormField = (_a) => {
12882
13098
  var _b = _a, {
12883
13099
  name,
@@ -12894,7 +13110,7 @@ var TimePickerFormField = (_a) => {
12894
13110
  "validationErrorMessage",
12895
13111
  "rules"
12896
13112
  ]);
12897
- const handleValidate = (0, import_react25.useCallback)(
13113
+ const handleValidate = (0, import_react27.useCallback)(
12898
13114
  (value) => {
12899
13115
  var _a2;
12900
13116
  if (value === void 0 || value === null || value === "") {
@@ -12905,7 +13121,7 @@ var TimePickerFormField = (_a) => {
12905
13121
  },
12906
13122
  [validate, required, validationErrorMessage]
12907
13123
  );
12908
- const { field, fieldState } = (0, import_react_hook_form14.useController)({
13124
+ const { field, fieldState } = (0, import_react_hook_form15.useController)({
12909
13125
  name,
12910
13126
  rules: __spreadValues({
12911
13127
  required: required ? validationErrorMessage : false,
@@ -12920,8 +13136,8 @@ var TimePickerFormField = (_a) => {
12920
13136
  const handleTimePickerChange = (time) => {
12921
13137
  setSelected(time);
12922
13138
  };
12923
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Flex2, { direction: "column", style: { flex: "1" }, children: [
12924
- label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
13139
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Flex2, { direction: "column", style: { flex: "1" }, children: [
13140
+ label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
12925
13141
  FormLabel,
12926
13142
  {
12927
13143
  name,
@@ -12930,7 +13146,7 @@ var TimePickerFormField = (_a) => {
12930
13146
  haveError
12931
13147
  }
12932
13148
  ),
12933
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
13149
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
12934
13150
  TimePicker,
12935
13151
  __spreadValues({
12936
13152
  selected,
@@ -12941,16 +13157,16 @@ var TimePickerFormField = (_a) => {
12941
13157
  hasError: haveError
12942
13158
  }, timePickerProps)
12943
13159
  ),
12944
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ErrorFormMessage, { message: errorMsg })
13160
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ErrorFormMessage, { message: errorMsg })
12945
13161
  ] });
12946
13162
  };
12947
13163
 
12948
13164
  // src/hooks/useImageUpload.ts
12949
- var import_react26 = require("react");
13165
+ var import_react28 = require("react");
12950
13166
  var useImageUpload = (options) => {
12951
- const [isUploading, setIsUploading] = (0, import_react26.useState)(false);
12952
- const [progress, setProgress] = (0, import_react26.useState)(null);
12953
- const [error, setError] = (0, import_react26.useState)(null);
13167
+ const [isUploading, setIsUploading] = (0, import_react28.useState)(false);
13168
+ const [progress, setProgress] = (0, import_react28.useState)(null);
13169
+ const [error, setError] = (0, import_react28.useState)(null);
12954
13170
  const {
12955
13171
  onSuccess,
12956
13172
  onError,
@@ -12960,7 +13176,7 @@ var useImageUpload = (options) => {
12960
13176
  allowedTypes = ["image/jpeg", "image/png", "image/gif", "image/webp"],
12961
13177
  uploadConfig
12962
13178
  } = options;
12963
- const validateFile = (0, import_react26.useCallback)(
13179
+ const validateFile = (0, import_react28.useCallback)(
12964
13180
  (file) => {
12965
13181
  if (!allowedTypes.includes(file.type)) {
12966
13182
  const errorMsg = "Tipo de arquivo n\xE3o suportado";
@@ -12978,7 +13194,7 @@ var useImageUpload = (options) => {
12978
13194
  },
12979
13195
  [allowedTypes, maxFileSize, onError]
12980
13196
  );
12981
- const uploadFile = (0, import_react26.useCallback)(
13197
+ const uploadFile = (0, import_react28.useCallback)(
12982
13198
  (file) => __async(null, null, function* () {
12983
13199
  if (!validateFile(file)) {
12984
13200
  return null;
@@ -13031,7 +13247,7 @@ var useImageUpload = (options) => {
13031
13247
  }),
13032
13248
  [validateFile, onSuccess, onError, onProgress]
13033
13249
  );
13034
- const reset = (0, import_react26.useCallback)(() => {
13250
+ const reset = (0, import_react28.useCallback)(() => {
13035
13251
  setIsUploading(false);
13036
13252
  setProgress(null);
13037
13253
  setError(null);
@@ -13080,6 +13296,8 @@ var useImageUpload = (options) => {
13080
13296
  ContainerStyled,
13081
13297
  CountryFormField,
13082
13298
  Divider,
13299
+ DoubleCalendar,
13300
+ DoubleCalendarFormField,
13083
13301
  Drawer,
13084
13302
  DropdownMenu,
13085
13303
  DropdownMenuItem,