@orbe-agro/client-core 5.3.85 → 5.3.89

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 (502) hide show
  1. package/dist/@ecme/assets/styles/app.css +1 -1
  2. package/dist/@ecme/assets/styles/components/_dialog.css +1 -1
  3. package/dist/@ecme/assets/styles/components/_drawer.css +1 -1
  4. package/dist/@ecme/assets/styles/components/_scrollbar.css +1 -1
  5. package/dist/@ecme/assets/styles/components/_switcher.css +1 -1
  6. package/dist/@ecme/assets/styles/components/_upload.css +1 -1
  7. package/dist/@ecme/assets/styles/components/index.css +1 -1
  8. package/dist/@ecme/assets/styles/tailwind/index.css +1 -1
  9. package/dist/@ecme/auth/AuthProvider.js +58 -62
  10. package/dist/@ecme/auth/AuthProvider.js.map +1 -1
  11. package/dist/@ecme/components/docs/DemoCard/DemoCard.js +18 -19
  12. package/dist/@ecme/components/docs/DemoCard/DemoCard.js.map +1 -1
  13. package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +29 -30
  14. package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
  15. package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js +56 -56
  16. package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js.map +1 -1
  17. package/dist/@ecme/components/shared/Affix.js +9 -10
  18. package/dist/@ecme/components/shared/Affix.js.map +1 -1
  19. package/dist/@ecme/components/shared/AutoComplete.js +27 -28
  20. package/dist/@ecme/components/shared/AutoComplete.js.map +1 -1
  21. package/dist/@ecme/components/shared/CalendarView.js +19 -20
  22. package/dist/@ecme/components/shared/CalendarView.js.map +1 -1
  23. package/dist/@ecme/components/shared/ConfirmDialog.js +16 -16
  24. package/dist/@ecme/components/shared/ConfirmDialog.js.map +1 -1
  25. package/dist/@ecme/components/shared/DataTable.js +151 -151
  26. package/dist/@ecme/components/shared/DataTable.js.map +1 -1
  27. package/dist/@ecme/components/shared/DebounceInput.js +11 -12
  28. package/dist/@ecme/components/shared/DebounceInput.js.map +1 -1
  29. package/dist/@ecme/components/shared/GanttChart/GanttChart.js +20 -20
  30. package/dist/@ecme/components/shared/GanttChart/GanttChart.js.map +1 -1
  31. package/dist/@ecme/components/shared/GanttChart/TaskListTable.js +22 -22
  32. package/dist/@ecme/components/shared/GanttChart/TaskListTable.js.map +1 -1
  33. package/dist/@ecme/components/shared/ImageGallery.js +18 -18
  34. package/dist/@ecme/components/shared/ImageGallery.js.map +1 -1
  35. package/dist/@ecme/components/shared/Masonry/Masonry.js +25 -25
  36. package/dist/@ecme/components/shared/Masonry/Masonry.js.map +1 -1
  37. package/dist/@ecme/components/shared/OtpInput.js +54 -56
  38. package/dist/@ecme/components/shared/OtpInput.js.map +1 -1
  39. package/dist/@ecme/components/shared/PasswordInput.js +6 -6
  40. package/dist/@ecme/components/shared/PasswordInput.js.map +1 -1
  41. package/dist/@ecme/components/shared/RegionMap.js +9 -9
  42. package/dist/@ecme/components/shared/RegionMap.js.map +1 -1
  43. package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js +47 -47
  44. package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js.map +1 -1
  45. package/dist/@ecme/components/shared/UsersAvatarGroup.js +24 -24
  46. package/dist/@ecme/components/shared/UsersAvatarGroup.js.map +1 -1
  47. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js +63 -69
  48. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js.map +1 -1
  49. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js +48 -48
  50. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js.map +1 -1
  51. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js +220 -231
  52. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js.map +1 -1
  53. package/dist/@ecme/components/template/LanguageSelector.js +10 -13
  54. package/dist/@ecme/components/template/LanguageSelector.js.map +1 -1
  55. package/dist/@ecme/components/template/Search.js +85 -92
  56. package/dist/@ecme/components/template/Search.js.map +1 -1
  57. package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js +18 -18
  58. package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js.map +1 -1
  59. package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js +17 -17
  60. package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js.map +1 -1
  61. package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js +59 -59
  62. package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js.map +1 -1
  63. package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js +34 -34
  64. package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js.map +1 -1
  65. package/dist/@ecme/components/ui/Alert/Alert.js +29 -29
  66. package/dist/@ecme/components/ui/Alert/Alert.js.map +1 -1
  67. package/dist/@ecme/components/ui/Avatar/AvatarGroup.js +30 -30
  68. package/dist/@ecme/components/ui/Avatar/AvatarGroup.js.map +1 -1
  69. package/dist/@ecme/components/ui/Button/Button.js +66 -67
  70. package/dist/@ecme/components/ui/Button/Button.js.map +1 -1
  71. package/dist/@ecme/components/ui/Card/Card.js +39 -40
  72. package/dist/@ecme/components/ui/Card/Card.js.map +1 -1
  73. package/dist/@ecme/components/ui/Checkbox/Checkbox.js +42 -42
  74. package/dist/@ecme/components/ui/Checkbox/Checkbox.js.map +1 -1
  75. package/dist/@ecme/components/ui/Checkbox/Group.js +27 -27
  76. package/dist/@ecme/components/ui/Checkbox/Group.js.map +1 -1
  77. package/dist/@ecme/components/ui/DatePicker/BasePicker.js +67 -67
  78. package/dist/@ecme/components/ui/DatePicker/BasePicker.js.map +1 -1
  79. package/dist/@ecme/components/ui/DatePicker/Calendar.js +18 -18
  80. package/dist/@ecme/components/ui/DatePicker/Calendar.js.map +1 -1
  81. package/dist/@ecme/components/ui/DatePicker/CalendarBase.js +77 -78
  82. package/dist/@ecme/components/ui/DatePicker/CalendarBase.js.map +1 -1
  83. package/dist/@ecme/components/ui/DatePicker/DatePicker.js +67 -71
  84. package/dist/@ecme/components/ui/DatePicker/DatePicker.js.map +1 -1
  85. package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js +94 -98
  86. package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js.map +1 -1
  87. package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js +51 -58
  88. package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js.map +1 -1
  89. package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js +67 -67
  90. package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js.map +1 -1
  91. package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js +12 -12
  92. package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js.map +1 -1
  93. package/dist/@ecme/components/ui/Dialog/Dialog.js +25 -25
  94. package/dist/@ecme/components/ui/Dialog/Dialog.js.map +1 -1
  95. package/dist/@ecme/components/ui/Drawer/Drawer.js +32 -32
  96. package/dist/@ecme/components/ui/Drawer/Drawer.js.map +1 -1
  97. package/dist/@ecme/components/ui/Dropdown/DropdownItem.js +58 -58
  98. package/dist/@ecme/components/ui/Dropdown/DropdownItem.js.map +1 -1
  99. package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js +99 -100
  100. package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js.map +1 -1
  101. package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js +26 -26
  102. package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js.map +1 -1
  103. package/dist/@ecme/components/ui/Form/FormContainer.js +17 -17
  104. package/dist/@ecme/components/ui/Form/FormContainer.js.map +1 -1
  105. package/dist/@ecme/components/ui/Form/FormItem.js +38 -38
  106. package/dist/@ecme/components/ui/Form/FormItem.js.map +1 -1
  107. package/dist/@ecme/components/ui/Input/Input.js +50 -52
  108. package/dist/@ecme/components/ui/Input/Input.js.map +1 -1
  109. package/dist/@ecme/components/ui/InputGroup/Addon.js +12 -13
  110. package/dist/@ecme/components/ui/InputGroup/Addon.js.map +1 -1
  111. package/dist/@ecme/components/ui/InputGroup/InputGroup.js +10 -11
  112. package/dist/@ecme/components/ui/InputGroup/InputGroup.js.map +1 -1
  113. package/dist/@ecme/components/ui/Notification/Notification.js +19 -19
  114. package/dist/@ecme/components/ui/Notification/Notification.js.map +1 -1
  115. package/dist/@ecme/components/ui/Pagination/Pagination.js +45 -45
  116. package/dist/@ecme/components/ui/Pagination/Pagination.js.map +1 -1
  117. package/dist/@ecme/components/ui/Radio/Group.js +28 -28
  118. package/dist/@ecme/components/ui/Radio/Group.js.map +1 -1
  119. package/dist/@ecme/components/ui/Radio/Radio.js +42 -42
  120. package/dist/@ecme/components/ui/Radio/Radio.js.map +1 -1
  121. package/dist/@ecme/components/ui/Segment/SegmentItem.js +53 -53
  122. package/dist/@ecme/components/ui/Segment/SegmentItem.js.map +1 -1
  123. package/dist/@ecme/components/ui/Select/Select.js +40 -41
  124. package/dist/@ecme/components/ui/Select/Select.js.map +1 -1
  125. package/dist/@ecme/components/ui/Steps/StepItem.js +33 -33
  126. package/dist/@ecme/components/ui/Steps/StepItem.js.map +1 -1
  127. package/dist/@ecme/components/ui/Switcher/Switcher.js +24 -24
  128. package/dist/@ecme/components/ui/Switcher/Switcher.js.map +1 -1
  129. package/dist/@ecme/components/ui/Tabs/TabNav.js +22 -22
  130. package/dist/@ecme/components/ui/Tabs/TabNav.js.map +1 -1
  131. package/dist/@ecme/components/ui/TimeInput/AmPmInput.js +25 -27
  132. package/dist/@ecme/components/ui/TimeInput/AmPmInput.js.map +1 -1
  133. package/dist/@ecme/components/ui/TimeInput/TimeInput.js +130 -135
  134. package/dist/@ecme/components/ui/TimeInput/TimeInput.js.map +1 -1
  135. package/dist/@ecme/components/ui/TimeInput/TimeInputField.js +22 -24
  136. package/dist/@ecme/components/ui/TimeInput/TimeInputField.js.map +1 -1
  137. package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js +65 -68
  138. package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js.map +1 -1
  139. package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js +11 -12
  140. package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js.map +1 -1
  141. package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js +19 -20
  142. package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js.map +1 -1
  143. package/dist/@ecme/components/ui/Upload/Upload.js +67 -68
  144. package/dist/@ecme/components/ui/Upload/Upload.js.map +1 -1
  145. package/dist/@ecme/components/ui/hooks/useCallbackRef.js +7 -10
  146. package/dist/@ecme/components/ui/hooks/useCallbackRef.js.map +1 -1
  147. package/dist/@ecme/components/ui/hooks/useRootClose.js +32 -32
  148. package/dist/@ecme/components/ui/hooks/useRootClose.js.map +1 -1
  149. package/dist/@ecme/components/ui/hooks/useTimeout.js +12 -13
  150. package/dist/@ecme/components/ui/hooks/useTimeout.js.map +1 -1
  151. package/dist/@ecme/components/ui/toast/ToastWrapper.js +58 -61
  152. package/dist/@ecme/components/ui/toast/ToastWrapper.js.map +1 -1
  153. package/dist/@ecme/components/ui/toast/toast.js +16 -19
  154. package/dist/@ecme/components/ui/toast/toast.js.map +1 -1
  155. package/dist/@ecme/components/view/Activity/ActivityEvent.js +63 -67
  156. package/dist/@ecme/components/view/Activity/ActivityEvent.js.map +1 -1
  157. package/dist/@ecme/components/view/ChatBox/components/Attachment.js +8 -9
  158. package/dist/@ecme/components/view/ChatBox/components/Attachment.js.map +1 -1
  159. package/dist/@ecme/components/view/ChatBox/components/ChatInput.js +37 -39
  160. package/dist/@ecme/components/view/ChatBox/components/ChatInput.js.map +1 -1
  161. package/dist/@ecme/components/view/ChatBox/components/Message.js +10 -10
  162. package/dist/@ecme/components/view/ChatBox/components/Message.js.map +1 -1
  163. package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js +36 -37
  164. package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js.map +1 -1
  165. package/dist/@ecme/components/view/TaskItem/TaskItem.js +33 -33
  166. package/dist/@ecme/components/view/TaskItem/TaskItem.js.map +1 -1
  167. package/dist/@ecme/mock/fakeApi/chatFakeApi.js +16 -18
  168. package/dist/@ecme/mock/fakeApi/chatFakeApi.js.map +1 -1
  169. package/dist/@ecme/mock/fakeApi/customersFakeApi.js +10 -11
  170. package/dist/@ecme/mock/fakeApi/customersFakeApi.js.map +1 -1
  171. package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js +10 -11
  172. package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js.map +1 -1
  173. package/dist/@ecme/mock/fakeApi/mailFakeApi.js +9 -10
  174. package/dist/@ecme/mock/fakeApi/mailFakeApi.js.map +1 -1
  175. package/dist/@ecme/mock/fakeApi/ordersFakeApi.js +9 -10
  176. package/dist/@ecme/mock/fakeApi/ordersFakeApi.js.map +1 -1
  177. package/dist/@ecme/mock/fakeApi/productsFakeApi.js +7 -8
  178. package/dist/@ecme/mock/fakeApi/productsFakeApi.js.map +1 -1
  179. package/dist/@ecme/mock/fakeApi/projectsFakeApi.js +10 -11
  180. package/dist/@ecme/mock/fakeApi/projectsFakeApi.js.map +1 -1
  181. package/dist/@ecme/utils/hooks/useInfiniteScroll.js +11 -11
  182. package/dist/@ecme/utils/hooks/useInfiniteScroll.js.map +1 -1
  183. package/dist/@ecme/utils/hooks/useMenuActive.js +11 -12
  184. package/dist/@ecme/utils/hooks/useMenuActive.js.map +1 -1
  185. package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js +36 -37
  186. package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js.map +1 -1
  187. package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js +14 -14
  188. package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js.map +1 -1
  189. package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js +41 -42
  190. package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js.map +1 -1
  191. package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js +59 -60
  192. package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js.map +1 -1
  193. package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js +27 -27
  194. package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js.map +1 -1
  195. package/dist/@ecme/views/auth/SignIn/components/SignInForm.js +57 -58
  196. package/dist/@ecme/views/auth/SignIn/components/SignInForm.js.map +1 -1
  197. package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js +37 -38
  198. package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js.map +1 -1
  199. package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js +44 -45
  200. package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js.map +1 -1
  201. package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js +5 -5
  202. package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js.map +1 -1
  203. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js +34 -35
  204. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js.map +1 -1
  205. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js +26 -26
  206. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js.map +1 -1
  207. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js +28 -29
  208. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js.map +1 -1
  209. package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js +8 -8
  210. package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js.map +1 -1
  211. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js +10 -11
  212. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js.map +1 -1
  213. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js +48 -49
  214. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js.map +1 -1
  215. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js +14 -14
  216. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js.map +1 -1
  217. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js +102 -103
  218. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js.map +1 -1
  219. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js +34 -35
  220. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js.map +1 -1
  221. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js +16 -16
  222. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js.map +1 -1
  223. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js +76 -78
  224. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js.map +1 -1
  225. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js +23 -23
  226. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js.map +1 -1
  227. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js +48 -49
  228. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js.map +1 -1
  229. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js +34 -35
  230. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js.map +1 -1
  231. package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js +11 -14
  232. package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js.map +1 -1
  233. package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js +19 -19
  234. package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js.map +1 -1
  235. package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js +22 -26
  236. package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js.map +1 -1
  237. package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js +18 -24
  238. package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js.map +1 -1
  239. package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js +22 -22
  240. package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js.map +1 -1
  241. package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js +31 -32
  242. package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js.map +1 -1
  243. package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js +31 -32
  244. package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js.map +1 -1
  245. package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js +38 -39
  246. package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js.map +1 -1
  247. package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js +68 -69
  248. package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js.map +1 -1
  249. package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js +63 -66
  250. package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js.map +1 -1
  251. package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js +21 -22
  252. package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js.map +1 -1
  253. package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js +84 -85
  254. package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js.map +1 -1
  255. package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js +19 -19
  256. package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js.map +1 -1
  257. package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js +51 -58
  258. package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js.map +1 -1
  259. package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js +76 -89
  260. package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js.map +1 -1
  261. package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js +104 -107
  262. package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js.map +1 -1
  263. package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js +22 -22
  264. package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js.map +1 -1
  265. package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js +38 -39
  266. package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js.map +1 -1
  267. package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js +20 -20
  268. package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js.map +1 -1
  269. package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js +32 -33
  270. package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js.map +1 -1
  271. package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js +17 -18
  272. package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js.map +1 -1
  273. package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js +5 -5
  274. package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js.map +1 -1
  275. package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js +12 -13
  276. package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js.map +1 -1
  277. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js +28 -29
  278. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js.map +1 -1
  279. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js +63 -67
  280. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js.map +1 -1
  281. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js +8 -8
  282. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js.map +1 -1
  283. package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js +36 -37
  284. package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js.map +1 -1
  285. package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js +134 -137
  286. package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js.map +1 -1
  287. package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js +17 -17
  288. package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js.map +1 -1
  289. package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js +35 -35
  290. package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js.map +1 -1
  291. package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js +38 -38
  292. package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js.map +1 -1
  293. package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js +108 -111
  294. package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js.map +1 -1
  295. package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js +44 -45
  296. package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js.map +1 -1
  297. package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js +211 -214
  298. package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js.map +1 -1
  299. package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js +17 -17
  300. package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js.map +1 -1
  301. package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js +15 -15
  302. package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js.map +1 -1
  303. package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js +4 -4
  304. package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js.map +1 -1
  305. package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js +97 -100
  306. package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js.map +1 -1
  307. package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js +68 -71
  308. package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js.map +1 -1
  309. package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js +85 -86
  310. package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js.map +1 -1
  311. package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js +121 -124
  312. package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js.map +1 -1
  313. package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js +11 -11
  314. package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js.map +1 -1
  315. package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js +17 -17
  316. package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js.map +1 -1
  317. package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js +17 -17
  318. package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js.map +1 -1
  319. package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js +101 -105
  320. package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js.map +1 -1
  321. package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js +57 -58
  322. package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js.map +1 -1
  323. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js +51 -52
  324. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js.map +1 -1
  325. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js +22 -23
  326. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js.map +1 -1
  327. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js +45 -46
  328. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js.map +1 -1
  329. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js +62 -65
  330. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js.map +1 -1
  331. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js +52 -53
  332. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js.map +1 -1
  333. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js +23 -25
  334. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js.map +1 -1
  335. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js +15 -15
  336. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js.map +1 -1
  337. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js +16 -16
  338. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js.map +1 -1
  339. package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js +9 -9
  340. package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js.map +1 -1
  341. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js +40 -41
  342. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js.map +1 -1
  343. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js +33 -34
  344. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js.map +1 -1
  345. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js +33 -33
  346. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js.map +1 -1
  347. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js +203 -210
  348. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js.map +1 -1
  349. package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js +53 -56
  350. package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js.map +1 -1
  351. package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js +80 -83
  352. package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js.map +1 -1
  353. package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js +6 -6
  354. package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js.map +1 -1
  355. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js +21 -21
  356. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js.map +1 -1
  357. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js +27 -27
  358. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js.map +1 -1
  359. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js +27 -27
  360. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js.map +1 -1
  361. package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js +59 -60
  362. package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js.map +1 -1
  363. package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js +76 -77
  364. package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js.map +1 -1
  365. package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js +30 -30
  366. package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js.map +1 -1
  367. package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js +21 -22
  368. package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js.map +1 -1
  369. package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js +15 -15
  370. package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js.map +1 -1
  371. package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js +20 -21
  372. package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js.map +1 -1
  373. package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js +20 -21
  374. package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js.map +1 -1
  375. package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js +20 -21
  376. package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js.map +1 -1
  377. package/dist/@ecme/views/ui-components/data-display/Table/Editable.js +17 -18
  378. package/dist/@ecme/views/ui-components/data-display/Table/Editable.js.map +1 -1
  379. package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js +12 -12
  380. package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js.map +1 -1
  381. package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js +28 -29
  382. package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js.map +1 -1
  383. package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js +21 -22
  384. package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js.map +1 -1
  385. package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js +24 -25
  386. package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js.map +1 -1
  387. package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js +75 -79
  388. package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js.map +1 -1
  389. package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js +19 -20
  390. package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js.map +1 -1
  391. package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js +90 -91
  392. package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js.map +1 -1
  393. package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js +22 -23
  394. package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js.map +1 -1
  395. package/dist/@types/base/configs/api.config.d.ts +0 -19
  396. package/dist/@types/base/configs/api.config.d.ts.map +1 -1
  397. package/dist/base/assets/styles/init.css +1 -1
  398. package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js +24 -25
  399. package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js.map +1 -1
  400. package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js +23 -24
  401. package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js.map +1 -1
  402. package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js +30 -31
  403. package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js.map +1 -1
  404. package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js +25 -26
  405. package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js.map +1 -1
  406. package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js +49 -50
  407. package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js.map +1 -1
  408. package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js +27 -28
  409. package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js.map +1 -1
  410. package/dist/base/components/forms/GenericForms/GenericStringFormSection.js +23 -24
  411. package/dist/base/components/forms/GenericForms/GenericStringFormSection.js.map +1 -1
  412. package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js +27 -28
  413. package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js.map +1 -1
  414. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js +29 -30
  415. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js.map +1 -1
  416. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js +27 -28
  417. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js.map +1 -1
  418. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js +27 -28
  419. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js.map +1 -1
  420. package/dist/base/components/shared/TransferirProcessoDialog.js +10 -10
  421. package/dist/base/components/shared/TransferirProcessoDialog.js.map +1 -1
  422. package/dist/base/components/tools/NavFilter.js +68 -75
  423. package/dist/base/components/tools/NavFilter.js.map +1 -1
  424. package/dist/base/configs/api.config.js +11 -14
  425. package/dist/base/configs/api.config.js.map +1 -1
  426. package/dist/base/hooks/adm/roles/useRolesList.js +11 -11
  427. package/dist/base/hooks/adm/roles/useRolesList.js.map +1 -1
  428. package/dist/base/hooks/adm/users/useUsersList.js +10 -10
  429. package/dist/base/hooks/adm/users/useUsersList.js.map +1 -1
  430. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js +5 -5
  431. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js.map +1 -1
  432. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js +7 -7
  433. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js.map +1 -1
  434. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js +10 -10
  435. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js.map +1 -1
  436. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js +8 -8
  437. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js.map +1 -1
  438. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js +8 -8
  439. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js.map +1 -1
  440. package/dist/base/hooks/dm/centro/useCentroByCodigoList.js +13 -13
  441. package/dist/base/hooks/dm/centro/useCentroByCodigoList.js.map +1 -1
  442. package/dist/base/hooks/dm/centro/useCentroList.js +6 -6
  443. package/dist/base/hooks/dm/centro/useCentroList.js.map +1 -1
  444. package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js +4 -4
  445. package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js.map +1 -1
  446. package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js +9 -9
  447. package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js.map +1 -1
  448. package/dist/base/hooks/dm/deposito/useDepositoList.js +5 -5
  449. package/dist/base/hooks/dm/deposito/useDepositoList.js.map +1 -1
  450. package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js +13 -13
  451. package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js.map +1 -1
  452. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js +8 -8
  453. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js.map +1 -1
  454. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js +6 -6
  455. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js.map +1 -1
  456. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js +10 -10
  457. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js.map +1 -1
  458. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js +7 -7
  459. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js.map +1 -1
  460. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js +10 -10
  461. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js.map +1 -1
  462. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js +1 -1
  463. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js.map +1 -1
  464. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js +11 -11
  465. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js.map +1 -1
  466. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js +9 -9
  467. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js.map +1 -1
  468. package/dist/base/hooks/dm/incoterms/useIncotermsList.js +17 -18
  469. package/dist/base/hooks/dm/incoterms/useIncotermsList.js.map +1 -1
  470. package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js +13 -13
  471. package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js.map +1 -1
  472. package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js +21 -21
  473. package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js.map +1 -1
  474. package/dist/base/hooks/dm/produto/useProdutoFindList.js +8 -8
  475. package/dist/base/hooks/dm/produto/useProdutoFindList.js.map +1 -1
  476. package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js +11 -11
  477. package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js.map +1 -1
  478. package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js +9 -9
  479. package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js.map +1 -1
  480. package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js +5 -5
  481. package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js.map +1 -1
  482. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js +9 -9
  483. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js.map +1 -1
  484. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js +9 -9
  485. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js.map +1 -1
  486. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js +10 -10
  487. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js.map +1 -1
  488. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js +9 -9
  489. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js.map +1 -1
  490. package/dist/base/hooks/useList.js +10 -10
  491. package/dist/base/hooks/useList.js.map +1 -1
  492. package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js +15 -15
  493. package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js.map +1 -1
  494. package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js +7 -7
  495. package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js.map +1 -1
  496. package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js +5 -5
  497. package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js.map +1 -1
  498. package/dist/base/utils/functions/stringUtils.js +14 -15
  499. package/dist/base/utils/functions/stringUtils.js.map +1 -1
  500. package/lib/base/configs/api.config.ts +6 -7
  501. package/package.json +1 -1
  502. package/tsconfig.json +6 -1
@@ -1,57 +1,56 @@
1
- import { jsx as r, jsxs as x } from "react/jsx-runtime";
2
- import { useState as P } from "react";
1
+ import { jsx as e, jsxs as S } from "react/jsx-runtime";
2
+ import { useState as w } from "react";
3
3
  import "../../../../components/ui/Input/index.js";
4
4
  import "../../../../components/ui/Button/index.js";
5
5
  import "../../../../components/ui/Form/index.js";
6
- import y from "../../../../components/shared/PasswordInput.js";
7
- import F from "../../../../utils/classNames.js";
6
+ import I from "../../../../components/shared/PasswordInput.js";
7
+ import x from "../../../../utils/classNames.js";
8
8
  import "../../../../auth/index.js";
9
- import { useForm as N, Controller as f } from "react-hook-form";
10
- import { zodResolver as j } from "@hookform/resolvers/zod";
11
- import { z as a } from "zod";
12
- import q from "../../../../auth/useAuth.js";
13
- import { Form as B } from "../../../../components/ui/Form/Form.js";
14
- import c from "../../../../components/ui/Form/FormItem.js";
15
- import C from "../../../../components/ui/Input/Input.js";
16
- import z from "../../../../components/ui/Button/Button.js";
17
- const E = a.object({
18
- username: a.string({ required_error: "Por favor digite um login." }).min(1, { message: "Por favor digite um login válido." }),
19
- password: a.string({ required_error: "Por favor digite uma senha." }).min(1, { message: "Por favor digite uma senha válida." })
20
- }), X = (g) => {
21
- var d, u, p;
22
- const [i, m] = P(!1), { disableSubmit: h = !1, className: b, setMessage: t, passwordHint: n } = g, {
23
- handleSubmit: v,
24
- formState: { errors: e },
25
- control: l
26
- } = N({
9
+ import { useForm as P, Controller as l } from "react-hook-form";
10
+ import { zodResolver as y } from "@hookform/resolvers/zod";
11
+ import { z as s } from "zod";
12
+ import F from "../../../../auth/useAuth.js";
13
+ import { Form as N } from "../../../../components/ui/Form/Form.js";
14
+ import d from "../../../../components/ui/Form/FormItem.js";
15
+ import j from "../../../../components/ui/Input/Input.js";
16
+ import q from "../../../../components/ui/Button/Button.js";
17
+ const B = s.object({
18
+ username: s.string({ required_error: "Por favor digite um login." }).min(1, { message: "Por favor digite um login válido." }),
19
+ password: s.string({ required_error: "Por favor digite uma senha." }).min(1, { message: "Por favor digite uma senha válida." })
20
+ }), T = (u) => {
21
+ const [t, a] = w(!1), { disableSubmit: p = !1, className: f, setMessage: g, passwordHint: i } = u, {
22
+ handleSubmit: c,
23
+ formState: { errors: r },
24
+ control: m
25
+ } = P({
27
26
  defaultValues: {
28
27
  username: "",
29
28
  password: ""
30
29
  },
31
- resolver: j(E)
32
- }), { signIn: S } = q();
33
- return /* @__PURE__ */ r("div", { className: b, children: /* @__PURE__ */ x(B, { onSubmit: v(async (o) => {
34
- const { username: w, password: I } = o;
35
- if (!h) {
36
- m(!0);
37
- const s = await S({ username: w, password: I });
38
- (s == null ? void 0 : s.status) === "failed" && (t == null || t(s.message));
30
+ resolver: y(B)
31
+ }), { signIn: h } = F();
32
+ return /* @__PURE__ */ e("div", { className: f, children: /* @__PURE__ */ S(N, { onSubmit: c(async (o) => {
33
+ const { username: b, password: v } = o;
34
+ if (!p) {
35
+ a(!0);
36
+ const n = await h({ username: b, password: v });
37
+ n?.status === "failed" && g?.(n.message);
39
38
  }
40
- m(!1);
39
+ a(!1);
41
40
  }), children: [
42
- /* @__PURE__ */ r(
43
- c,
41
+ /* @__PURE__ */ e(
42
+ d,
44
43
  {
45
44
  label: "Login",
46
- invalid: !!e.username,
47
- errorMessage: (d = e.username) == null ? void 0 : d.message,
48
- children: /* @__PURE__ */ r(
49
- f,
45
+ invalid: !!r.username,
46
+ errorMessage: r.username?.message,
47
+ children: /* @__PURE__ */ e(
48
+ l,
50
49
  {
51
50
  name: "username",
52
- control: l,
53
- render: ({ field: o }) => /* @__PURE__ */ r(
54
- C,
51
+ control: m,
52
+ render: ({ field: o }) => /* @__PURE__ */ e(
53
+ j,
55
54
  {
56
55
  type: "text",
57
56
  placeholder: "Login",
@@ -63,24 +62,24 @@ const E = a.object({
63
62
  )
64
63
  }
65
64
  ),
66
- /* @__PURE__ */ r(
67
- c,
65
+ /* @__PURE__ */ e(
66
+ d,
68
67
  {
69
68
  label: "Senha",
70
- invalid: !!e.password,
71
- errorMessage: (u = e.password) == null ? void 0 : u.message,
72
- className: F(
73
- n ? "mb-0" : "",
74
- (p = e.password) != null && p.message ? "mb-8" : ""
69
+ invalid: !!r.password,
70
+ errorMessage: r.password?.message,
71
+ className: x(
72
+ i ? "mb-0" : "",
73
+ r.password?.message ? "mb-8" : ""
75
74
  ),
76
- children: /* @__PURE__ */ r(
77
- f,
75
+ children: /* @__PURE__ */ e(
76
+ l,
78
77
  {
79
78
  name: "password",
80
- control: l,
79
+ control: m,
81
80
  rules: { required: !0 },
82
- render: ({ field: o }) => /* @__PURE__ */ r(
83
- y,
81
+ render: ({ field: o }) => /* @__PURE__ */ e(
82
+ I,
84
83
  {
85
84
  type: "text",
86
85
  placeholder: "Senha",
@@ -92,21 +91,21 @@ const E = a.object({
92
91
  )
93
92
  }
94
93
  ),
95
- n,
96
- /* @__PURE__ */ r(
97
- z,
94
+ i,
95
+ /* @__PURE__ */ e(
96
+ q,
98
97
  {
99
98
  block: !0,
100
- loading: i,
99
+ loading: t,
101
100
  variant: "solid",
102
101
  type: "submit",
103
102
  className: "mt-6",
104
- children: i ? "Entrando..." : "Entrar"
103
+ children: t ? "Entrando..." : "Entrar"
105
104
  }
106
105
  )
107
106
  ] }) });
108
107
  };
109
108
  export {
110
- X as default
109
+ T as default
111
110
  };
112
111
  //# sourceMappingURL=SignInForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignInForm.js","sources":["../../../../../../lib/@ecme/views/auth/SignIn/components/SignInForm.tsx"],"sourcesContent":["import { ReactNode, useState } from \"react\";\nimport Input from \"@/components/ui/Input\";\nimport Button from \"@/components/ui/Button\";\nimport { FormItem, Form } from \"@/components/ui/Form\";\nimport PasswordInput from \"@/components/shared/PasswordInput\";\nimport classNames from \"@/utils/classNames\";\nimport { useAuth } from \"@/auth\";\nimport { useForm, Controller } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { z, ZodType } from \"zod\";\nimport type { CommonProps } from \"@/@types/common\";\n\ninterface SignInFormProps extends CommonProps {\n disableSubmit?: boolean;\n passwordHint?: string | ReactNode;\n setMessage?: (message: string) => void;\n}\n\ntype SignInFormSchema = {\n username: string;\n password: string;\n};\n\nconst validationSchema: ZodType<SignInFormSchema> = z.object({\n username: z\n .string({ required_error: \"Por favor digite um login.\" })\n .min(1, { message: \"Por favor digite um login válido.\" }),\n password: z\n .string({ required_error: \"Por favor digite uma senha.\" })\n .min(1, { message: \"Por favor digite uma senha válida.\" }),\n});\n\nconst SignInForm = (props: SignInFormProps) => {\n const [isSubmitting, setSubmitting] = useState<boolean>(false);\n\n const { disableSubmit = false, className, setMessage, passwordHint } = props;\n\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<SignInFormSchema>({\n defaultValues: {\n username: \"\",\n password: \"\",\n },\n resolver: zodResolver(validationSchema),\n });\n\n const { signIn } = useAuth();\n\n const onSignIn = async (values: SignInFormSchema) => {\n const { username, password } = values;\n\n if (!disableSubmit) {\n setSubmitting(true);\n\n const result = await signIn({ username, password });\n\n if (result?.status === \"failed\") {\n setMessage?.(result.message);\n }\n }\n\n setSubmitting(false);\n };\n\n return (\n <div className={className}>\n <Form onSubmit={handleSubmit(onSignIn)}>\n <FormItem\n label=\"Login\"\n invalid={Boolean(errors.username)}\n errorMessage={errors.username?.message}\n >\n <Controller\n name=\"username\"\n control={control}\n render={({ field }) => (\n <Input\n type=\"text\"\n placeholder=\"Login\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Senha\"\n invalid={Boolean(errors.password)}\n errorMessage={errors.password?.message}\n className={classNames(\n passwordHint ? \"mb-0\" : \"\",\n errors.password?.message ? \"mb-8\" : \"\"\n )}\n >\n <Controller\n name=\"password\"\n control={control}\n rules={{ required: true }}\n render={({ field }) => (\n <PasswordInput\n type=\"text\"\n placeholder=\"Senha\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n {passwordHint}\n <Button\n block\n loading={isSubmitting}\n variant=\"solid\"\n type=\"submit\"\n className=\"mt-6\"\n >\n {isSubmitting ? \"Entrando...\" : \"Entrar\"}\n </Button>\n </Form>\n </div>\n );\n};\n\nexport default SignInForm;\n"],"names":["validationSchema","z","SignInForm","props","isSubmitting","setSubmitting","useState","disableSubmit","className","setMessage","passwordHint","handleSubmit","errors","control","useForm","zodResolver","signIn","useAuth","jsx","jsxs","Form","values","username","password","result","FormItem","_a","Controller","field","Input","_b","classNames","_c","PasswordInput","Button"],"mappings":";;;;;;;;;;;;;;;;AAuBA,MAAMA,IAA8CC,EAAE,OAAO;AAAA,EAC3D,UAAUA,EACP,OAAO,EAAE,gBAAgB,6BAAA,CAA8B,EACvD,IAAI,GAAG,EAAE,SAAS,qCAAqC;AAAA,EAC1D,UAAUA,EACP,OAAO,EAAE,gBAAgB,+BAA+B,EACxD,IAAI,GAAG,EAAE,SAAS,sCAAsC;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GD;AAAA,cAAA;AAAA,YAAA;AAAA,UACN;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,IAEF,gBAAAV;AAAA,MAACO;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,SAAS,EAAQb,EAAO;AAAA,QACxB,eAAckB,IAAAlB,EAAO,aAAP,gBAAAkB,EAAiB;AAAA,QAC/B,WAAWC;AAAA,UACTrB,IAAe,SAAS;AAAA,WACxBsB,IAAApB,EAAO,aAAP,QAAAoB,EAAiB,UAAU,SAAS;AAAA,QAAA;AAAA,QAGtC,UAAA,gBAAAd;AAAA,UAACS;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,SAAAd;AAAA,YACA,OAAO,EAAE,UAAU,GAAA;AAAA,YACnB,QAAQ,CAAC,EAAE,OAAAe,EAAA,MACT,gBAAAV;AAAA,cAACe;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,aAAY;AAAA,gBACZ,cAAa;AAAA,gBACZ,GAAGL;AAAA,cAAA;AAAA,YAAA;AAAA,UACN;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,IAEDlB;AAAA,IACD,gBAAAQ;AAAA,MAACgB;AAAA,MAAA;AAAA,QACC,OAAK;AAAA,QACL,SAAS9B;AAAA,QACT,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,WAAU;AAAA,QAET,cAAe,gBAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,EAClC,EAAA,CACF,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"SignInForm.js","sources":["../../../../../../lib/@ecme/views/auth/SignIn/components/SignInForm.tsx"],"sourcesContent":["import { ReactNode, useState } from \"react\";\nimport Input from \"@/components/ui/Input\";\nimport Button from \"@/components/ui/Button\";\nimport { FormItem, Form } from \"@/components/ui/Form\";\nimport PasswordInput from \"@/components/shared/PasswordInput\";\nimport classNames from \"@/utils/classNames\";\nimport { useAuth } from \"@/auth\";\nimport { useForm, Controller } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { z, ZodType } from \"zod\";\nimport type { CommonProps } from \"@/@types/common\";\n\ninterface SignInFormProps extends CommonProps {\n disableSubmit?: boolean;\n passwordHint?: string | ReactNode;\n setMessage?: (message: string) => void;\n}\n\ntype SignInFormSchema = {\n username: string;\n password: string;\n};\n\nconst validationSchema: ZodType<SignInFormSchema> = z.object({\n username: z\n .string({ required_error: \"Por favor digite um login.\" })\n .min(1, { message: \"Por favor digite um login válido.\" }),\n password: z\n .string({ required_error: \"Por favor digite uma senha.\" })\n .min(1, { message: \"Por favor digite uma senha válida.\" }),\n});\n\nconst SignInForm = (props: SignInFormProps) => {\n const [isSubmitting, setSubmitting] = useState<boolean>(false);\n\n const { disableSubmit = false, className, setMessage, passwordHint } = props;\n\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<SignInFormSchema>({\n defaultValues: {\n username: \"\",\n password: \"\",\n },\n resolver: zodResolver(validationSchema),\n });\n\n const { signIn } = useAuth();\n\n const onSignIn = async (values: SignInFormSchema) => {\n const { username, password } = values;\n\n if (!disableSubmit) {\n setSubmitting(true);\n\n const result = await signIn({ username, password });\n\n if (result?.status === \"failed\") {\n setMessage?.(result.message);\n }\n }\n\n setSubmitting(false);\n };\n\n return (\n <div className={className}>\n <Form onSubmit={handleSubmit(onSignIn)}>\n <FormItem\n label=\"Login\"\n invalid={Boolean(errors.username)}\n errorMessage={errors.username?.message}\n >\n <Controller\n name=\"username\"\n control={control}\n render={({ field }) => (\n <Input\n type=\"text\"\n placeholder=\"Login\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Senha\"\n invalid={Boolean(errors.password)}\n errorMessage={errors.password?.message}\n className={classNames(\n passwordHint ? \"mb-0\" : \"\",\n errors.password?.message ? \"mb-8\" : \"\"\n )}\n >\n <Controller\n name=\"password\"\n control={control}\n rules={{ required: true }}\n render={({ field }) => (\n <PasswordInput\n type=\"text\"\n placeholder=\"Senha\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n {passwordHint}\n <Button\n block\n loading={isSubmitting}\n variant=\"solid\"\n type=\"submit\"\n className=\"mt-6\"\n >\n {isSubmitting ? \"Entrando...\" : \"Entrar\"}\n </Button>\n </Form>\n </div>\n );\n};\n\nexport default SignInForm;\n"],"names":["validationSchema","z","SignInForm","props","isSubmitting","setSubmitting","useState","disableSubmit","className","setMessage","passwordHint","handleSubmit","errors","control","useForm","zodResolver","signIn","useAuth","jsx","jsxs","Form","values","username","password","result","FormItem","Controller","field","Input","classNames","PasswordInput","Button"],"mappings":";;;;;;;;;;;;;;;;AAuBA,MAAMA,IAA8CC,EAAE,OAAO;AAAA,EAC3D,UAAUA,EACP,OAAO,EAAE,gBAAgB,6BAAA,CAA8B,EACvD,IAAI,GAAG,EAAE,SAAS,qCAAqC;AAAA,EAC1D,UAAUA,EACP,OAAO,EAAE,gBAAgB,+BAA+B,EACxD,IAAI,GAAG,EAAE,SAAS,sCAAsC;AAC7D,CAAC,GAEKC,IAAa,CAACC,MAA2B;AAC7C,QAAM,CAACC,GAAcC,CAAa,IAAIC,EAAkB,EAAK,GAEvD,EAAE,eAAAC,IAAgB,IAAO,WAAAC,GAAW,YAAAC,GAAY,cAAAC,MAAiBP,GAEjE;AAAA,IACJ,cAAAQ;AAAA,IACA,WAAW,EAAE,QAAAC,EAAA;AAAA,IACb,SAAAC;AAAA,EAAA,IACEC,EAA0B;AAAA,IAC5B,eAAe;AAAA,MACb,UAAU;AAAA,MACV,UAAU;AAAA,IAAA;AAAA,IAEZ,UAAUC,EAAYf,CAAgB;AAAA,EAAA,CACvC,GAEK,EAAE,QAAAgB,EAAA,IAAWC,EAAA;AAkBnB,SACE,gBAAAC,EAAC,SAAI,WAAAV,GACH,UAAA,gBAAAW,EAACC,KAAK,UAAUT,EAlBH,OAAOU,MAA6B;AACnD,UAAM,EAAE,UAAAC,GAAU,UAAAC,EAAA,IAAaF;AAE/B,QAAI,C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AA;AAAA,IAEDjB;AAAA,IACD,gBAAAQ;AAAA,MAACa;AAAA,MAAA;AAAA,QACC,OAAK;AAAA,QACL,SAAS3B;AAAA,QACT,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,WAAU;AAAA,QAET,cAAe,gBAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,EAClC,EAAA,CACF,EAAA,CACF;AAEJ;"}
@@ -1,18 +1,18 @@
1
- import { jsx as e, jsxs as N } from "react/jsx-runtime";
2
- import { useState as U } from "react";
1
+ import { jsx as e, jsxs as S } from "react/jsx-runtime";
2
+ import { useState as v } from "react";
3
3
  import "../../../../components/ui/Input/index.js";
4
4
  import "../../../../components/ui/Button/index.js";
5
5
  import "../../../../components/ui/Form/index.js";
6
6
  import "../../../../auth/index.js";
7
- import { useForm as q, Controller as t } from "react-hook-form";
8
- import { zodResolver as B } from "@hookform/resolvers/zod";
7
+ import { useForm as C, Controller as t } from "react-hook-form";
8
+ import { zodResolver as y } from "@hookform/resolvers/zod";
9
9
  import { z as s } from "zod";
10
- import x from "../../../../auth/useAuth.js";
11
- import { Form as F } from "../../../../components/ui/Form/Form.js";
12
- import n from "../../../../components/ui/Form/FormItem.js";
13
- import l from "../../../../components/ui/Input/Input.js";
14
- import _ from "../../../../components/ui/Button/Button.js";
15
- const j = s.object({
10
+ import N from "../../../../auth/useAuth.js";
11
+ import { Form as U } from "../../../../components/ui/Form/Form.js";
12
+ import m from "../../../../components/ui/Form/FormItem.js";
13
+ import n from "../../../../components/ui/Input/Input.js";
14
+ import q from "../../../../components/ui/Button/Button.js";
15
+ const B = s.object({
16
16
  email: s.string({ required_error: "Please enter your email" }),
17
17
  userName: s.string({ required_error: "Please enter your name" }),
18
18
  password: s.string({ required_error: "Password Required" }),
@@ -22,36 +22,35 @@ const j = s.object({
22
22
  }).refine((a) => a.password === a.confirmPassword, {
23
23
  message: "Password not match",
24
24
  path: ["confirmPassword"]
25
- }), T = (a) => {
26
- var c, u, g, w;
27
- const { disableSubmit: h = !1, className: P, setMessage: d } = a, [p, f] = U(!1), { signUp: b } = x(), {
28
- handleSubmit: S,
25
+ }), K = (a) => {
26
+ const { disableSubmit: f = !1, className: u, setMessage: c } = a, [l, d] = v(!1), { signUp: g } = N(), {
27
+ handleSubmit: w,
29
28
  formState: { errors: o },
30
29
  control: i
31
- } = q({
32
- resolver: B(j)
30
+ } = C({
31
+ resolver: y(B)
33
32
  });
34
- return /* @__PURE__ */ e("div", { className: P, children: /* @__PURE__ */ N(F, { onSubmit: S(async (r) => {
35
- const { userName: v, password: C, email: y } = r;
36
- if (!h) {
37
- f(!0);
38
- const m = await b({ userName: v, password: C, email: y });
39
- (m == null ? void 0 : m.status) === "failed" && (d == null || d(m.message)), f(!1);
33
+ return /* @__PURE__ */ e("div", { className: u, children: /* @__PURE__ */ S(U, { onSubmit: w(async (r) => {
34
+ const { userName: h, password: P, email: b } = r;
35
+ if (!f) {
36
+ d(!0);
37
+ const p = await g({ userName: h, password: P, email: b });
38
+ p?.status === "failed" && c?.(p.message), d(!1);
40
39
  }
41
40
  }), children: [
42
41
  /* @__PURE__ */ e(
43
- n,
42
+ m,
44
43
  {
45
44
  label: "User name",
46
45
  invalid: !!o.userName,
47
- errorMessage: (c = o.userName) == null ? void 0 : c.message,
46
+ errorMessage: o.userName?.message,
48
47
  children: /* @__PURE__ */ e(
49
48
  t,
50
49
  {
51
50
  name: "userName",
52
51
  control: i,
53
52
  render: ({ field: r }) => /* @__PURE__ */ e(
54
- l,
53
+ n,
55
54
  {
56
55
  type: "text",
57
56
  placeholder: "User Name",
@@ -64,18 +63,18 @@ const j = s.object({
64
63
  }
65
64
  ),
66
65
  /* @__PURE__ */ e(
67
- n,
66
+ m,
68
67
  {
69
68
  label: "Email",
70
69
  invalid: !!o.email,
71
- errorMessage: (u = o.email) == null ? void 0 : u.message,
70
+ errorMessage: o.email?.message,
72
71
  children: /* @__PURE__ */ e(
73
72
  t,
74
73
  {
75
74
  name: "email",
76
75
  control: i,
77
76
  render: ({ field: r }) => /* @__PURE__ */ e(
78
- l,
77
+ n,
79
78
  {
80
79
  type: "email",
81
80
  placeholder: "Email",
@@ -88,18 +87,18 @@ const j = s.object({
88
87
  }
89
88
  ),
90
89
  /* @__PURE__ */ e(
91
- n,
90
+ m,
92
91
  {
93
92
  label: "Password",
94
93
  invalid: !!o.password,
95
- errorMessage: (g = o.password) == null ? void 0 : g.message,
94
+ errorMessage: o.password?.message,
96
95
  children: /* @__PURE__ */ e(
97
96
  t,
98
97
  {
99
98
  name: "password",
100
99
  control: i,
101
100
  render: ({ field: r }) => /* @__PURE__ */ e(
102
- l,
101
+ n,
103
102
  {
104
103
  type: "password",
105
104
  autoComplete: "off",
@@ -112,18 +111,18 @@ const j = s.object({
112
111
  }
113
112
  ),
114
113
  /* @__PURE__ */ e(
115
- n,
114
+ m,
116
115
  {
117
116
  label: "Confirm Password",
118
117
  invalid: !!o.confirmPassword,
119
- errorMessage: (w = o.confirmPassword) == null ? void 0 : w.message,
118
+ errorMessage: o.confirmPassword?.message,
120
119
  children: /* @__PURE__ */ e(
121
120
  t,
122
121
  {
123
122
  name: "confirmPassword",
124
123
  control: i,
125
124
  render: ({ field: r }) => /* @__PURE__ */ e(
126
- l,
125
+ n,
127
126
  {
128
127
  type: "password",
129
128
  autoComplete: "off",
@@ -136,18 +135,18 @@ const j = s.object({
136
135
  }
137
136
  ),
138
137
  /* @__PURE__ */ e(
139
- _,
138
+ q,
140
139
  {
141
140
  block: !0,
142
- loading: p,
141
+ loading: l,
143
142
  variant: "solid",
144
143
  type: "submit",
145
- children: p ? "Creating Account..." : "Sign Up"
144
+ children: l ? "Creating Account..." : "Sign Up"
146
145
  }
147
146
  )
148
147
  ] }) });
149
148
  };
150
149
  export {
151
- T as default
150
+ K as default
152
151
  };
153
152
  //# sourceMappingURL=SignUpForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignUpForm.js","sources":["../../../../../../lib/@ecme/views/auth/SignUp/components/SignUpForm.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Input from '@/components/ui/Input'\nimport Button from '@/components/ui/Button'\nimport { FormItem, Form } from '@/components/ui/Form'\nimport { useAuth } from '@/auth'\nimport { useForm, Controller } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { z } from 'zod'\nimport type { ZodType } from 'zod'\nimport type { CommonProps } from '@/@types/common'\n\ninterface SignUpFormProps extends CommonProps {\n disableSubmit?: boolean\n setMessage?: (message: string) => void\n}\n\ntype SignUpFormSchema = {\n userName: string\n password: string\n email: string\n confirmPassword: string\n}\n\nconst validationSchema: ZodType<SignUpFormSchema> = z\n .object({\n email: z.string({ required_error: 'Please enter your email' }),\n userName: z.string({ required_error: 'Please enter your name' }),\n password: z.string({ required_error: 'Password Required' }),\n confirmPassword: z.string({\n required_error: 'Confirm Password Required',\n }),\n })\n .refine((data) => data.password === data.confirmPassword, {\n message: 'Password not match',\n path: ['confirmPassword'],\n })\n\nconst SignUpForm = (props: SignUpFormProps) => {\n const { disableSubmit = false, className, setMessage } = props\n\n const [isSubmitting, setSubmitting] = useState<boolean>(false)\n\n const { signUp } = useAuth()\n\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<SignUpFormSchema>({\n resolver: zodResolver(validationSchema),\n })\n\n const onSignUp = async (values: SignUpFormSchema) => {\n const { userName, password, email } = values\n\n if (!disableSubmit) {\n setSubmitting(true)\n const result = await signUp({ userName, password, email })\n\n if (result?.status === 'failed') {\n setMessage?.(result.message)\n }\n\n setSubmitting(false)\n }\n }\n\n return (\n <div className={className}>\n <Form onSubmit={handleSubmit(onSignUp)}>\n <FormItem\n label=\"User name\"\n invalid={Boolean(errors.userName)}\n errorMessage={errors.userName?.message}\n >\n <Controller\n name=\"userName\"\n control={control}\n render={({ field }) => (\n <Input\n type=\"text\"\n placeholder=\"User Name\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Email\"\n invalid={Boolean(errors.email)}\n errorMessage={errors.email?.message}\n >\n <Controller\n name=\"email\"\n control={control}\n render={({ field }) => (\n <Input\n type=\"email\"\n placeholder=\"Email\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Password\"\n invalid={Boolean(errors.password)}\n errorMessage={errors.password?.message}\n >\n <Controller\n name=\"password\"\n control={control}\n render={({ field }) => (\n <Input\n type=\"password\"\n autoComplete=\"off\"\n placeholder=\"Password\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Confirm Password\"\n invalid={Boolean(errors.confirmPassword)}\n errorMessage={errors.confirmPassword?.message}\n >\n <Controller\n name=\"confirmPassword\"\n control={control}\n render={({ field }) => (\n <Input\n type=\"password\"\n autoComplete=\"off\"\n placeholder=\"Confirm Password\"\n {...field}\n />\n )}\n />\n </FormItem>\n <Button\n block\n loading={isSubmitting}\n variant=\"solid\"\n type=\"submit\"\n >\n {isSubmitting ? 'Creating Account...' : 'Sign Up'}\n </Button>\n </Form>\n </div>\n )\n}\n\nexport default SignUpForm\n"],"names":["validationSchema","z","data","SignUpForm","props","disableSubmit","className","setMessage","isSubmitting","setSubmitting","useState","signUp","useAuth","handleSubmit","errors","control","useForm","zodResolver","jsx","jsxs","Form","values","userName","password","email","result","FormItem","_a","Controller","field","Input","_b","_c","_d","Button"],"mappings":";;;;;;;;;;;;;;AAuBA,MAAMA,IAA8CC,EAC/C,OAAO;AAAA,EACJ,OAAOA,EAAE,OAAO,EAAE,gBAAgB,2BAA2B;AAAA,EAC7D,UAAUA,EAAE,OAAO,EAAE,gBAAgB,0BAA0B;AAAA,EAC/D,UAAUA,EAAE,OAAO,EAAE,gBAAgB,qBAAqB;AAAA,EAC1D,iBAAiBA,EAAE,OAAO;AAAA,IACtB,gBAAgB;AAAA,EAAA,CACnB;AACL,CAAC,EACA,OAAO,CAACC,MAASA,EAAK,aAAaA,EAAK,iBAAiB;AAAA,EACtD,SAAS;AAAA,EACT,MAAM,CAAC,iBAAiB;AAC5B,CAAC,GAEC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cAACY;AAAA,cAAA;AAAA,gBACG,MAAK;AAAA,gBACL,cAAa;AAAA,gBACb,aAAY;AAAA,gBACX,GAAGD;AAAA,cAAA;AAAA,YAAA;AAAA,UACR;AAAA,QAAA;AAAA,MAER;AAAA,IAAA;AAAA,IAEJ,gBAAAX;AAAA,MAACgB;AAAA,MAAA;AAAA,QACG,OAAK;AAAA,QACL,SAAS1B;AAAA,QACT,SAAQ;AAAA,QACR,MAAK;AAAA,QAEJ,cAAe,wBAAwB;AAAA,MAAA;AAAA,IAAA;AAAA,EAC5C,EAAA,CACJ,EAAA,CACJ;AAER;"}
1
+ {"version":3,"file":"SignUpForm.js","sources":["../../../../../../lib/@ecme/views/auth/SignUp/components/SignUpForm.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Input from '@/components/ui/Input'\nimport Button from '@/components/ui/Button'\nimport { FormItem, Form } from '@/components/ui/Form'\nimport { useAuth } from '@/auth'\nimport { useForm, Controller } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { z } from 'zod'\nimport type { ZodType } from 'zod'\nimport type { CommonProps } from '@/@types/common'\n\ninterface SignUpFormProps extends CommonProps {\n disableSubmit?: boolean\n setMessage?: (message: string) => void\n}\n\ntype SignUpFormSchema = {\n userName: string\n password: string\n email: string\n confirmPassword: string\n}\n\nconst validationSchema: ZodType<SignUpFormSchema> = z\n .object({\n email: z.string({ required_error: 'Please enter your email' }),\n userName: z.string({ required_error: 'Please enter your name' }),\n password: z.string({ required_error: 'Password Required' }),\n confirmPassword: z.string({\n required_error: 'Confirm Password Required',\n }),\n })\n .refine((data) => data.password === data.confirmPassword, {\n message: 'Password not match',\n path: ['confirmPassword'],\n })\n\nconst SignUpForm = (props: SignUpFormProps) => {\n const { disableSubmit = false, className, setMessage } = props\n\n const [isSubmitting, setSubmitting] = useState<boolean>(false)\n\n const { signUp } = useAuth()\n\n const {\n handleSubmit,\n formState: { errors },\n control,\n } = useForm<SignUpFormSchema>({\n resolver: zodResolver(validationSchema),\n })\n\n const onSignUp = async (values: SignUpFormSchema) => {\n const { userName, password, email } = values\n\n if (!disableSubmit) {\n setSubmitting(true)\n const result = await signUp({ userName, password, email })\n\n if (result?.status === 'failed') {\n setMessage?.(result.message)\n }\n\n setSubmitting(false)\n }\n }\n\n return (\n <div className={className}>\n <Form onSubmit={handleSubmit(onSignUp)}>\n <FormItem\n label=\"User name\"\n invalid={Boolean(errors.userName)}\n errorMessage={errors.userName?.message}\n >\n <Controller\n name=\"userName\"\n control={control}\n render={({ field }) => (\n <Input\n type=\"text\"\n placeholder=\"User Name\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Email\"\n invalid={Boolean(errors.email)}\n errorMessage={errors.email?.message}\n >\n <Controller\n name=\"email\"\n control={control}\n render={({ field }) => (\n <Input\n type=\"email\"\n placeholder=\"Email\"\n autoComplete=\"off\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Password\"\n invalid={Boolean(errors.password)}\n errorMessage={errors.password?.message}\n >\n <Controller\n name=\"password\"\n control={control}\n render={({ field }) => (\n <Input\n type=\"password\"\n autoComplete=\"off\"\n placeholder=\"Password\"\n {...field}\n />\n )}\n />\n </FormItem>\n <FormItem\n label=\"Confirm Password\"\n invalid={Boolean(errors.confirmPassword)}\n errorMessage={errors.confirmPassword?.message}\n >\n <Controller\n name=\"confirmPassword\"\n control={control}\n render={({ field }) => (\n <Input\n type=\"password\"\n autoComplete=\"off\"\n placeholder=\"Confirm Password\"\n {...field}\n />\n )}\n />\n </FormItem>\n <Button\n block\n loading={isSubmitting}\n variant=\"solid\"\n type=\"submit\"\n >\n {isSubmitting ? 'Creating Account...' : 'Sign Up'}\n </Button>\n </Form>\n </div>\n )\n}\n\nexport default SignUpForm\n"],"names":["validationSchema","z","data","SignUpForm","props","disableSubmit","className","setMessage","isSubmitting","setSubmitting","useState","signUp","useAuth","handleSubmit","errors","control","useForm","zodResolver","jsx","jsxs","Form","values","userName","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A;AAAA,YAAA;AAAA,UACR;AAAA,QAAA;AAAA,MAER;AAAA,IAAA;AAAA,IAEJ,gBAAAV;AAAA,MAACQ;AAAA,MAAA;AAAA,QACG,OAAM;AAAA,QACN,SAAS,EAAQZ,EAAO;AAAA,QACxB,cAAcA,EAAO,iBAAiB;AAAA,QAEtC,UAAA,gBAAAI;AAAA,UAACS;AAAA,UAAA;AAAA,YACG,MAAK;AAAA,YACL,SAAAZ;AAAA,YACA,QAAQ,CAAC,EAAE,OAAAa,EAAA,MACP,gBAAAV;AAAA,cAACW;AAAA,cAAA;AAAA,gBACG,MAAK;AAAA,gBACL,cAAa;AAAA,gBACb,aAAY;AAAA,gBACX,GAAGD;AAAA,cAAA;AAAA,YAAA;AAAA,UACR;AAAA,QAAA;AAAA,MAER;AAAA,IAAA;AAAA,IAEJ,gBAAAV;AAAA,MAACY;AAAA,MAAA;AAAA,QACG,OAAK;AAAA,QACL,SAAStB;AAAA,QACT,SAAQ;AAAA,QACR,MAAK;AAAA,QAEJ,cAAe,wBAAwB;AAAA,MAAA;AAAA,IAAA;AAAA,EAC5C,EAAA,CACJ,EAAA,CACJ;AAER;"}
@@ -1,51 +1,50 @@
1
- import { jsx as e, Fragment as p, jsxs as a } from "react/jsx-runtime";
2
- import { useState as u } from "react";
1
+ import { jsx as e, Fragment as h, jsxs as a } from "react/jsx-runtime";
2
+ import { useState as p } from "react";
3
3
  import "../../../../../components/ui/Button/index.js";
4
4
  import "../../../../../components/ui/Dialog/index.js";
5
- import { Segment as g } from "../../../../../components/ui/Segment/index.js";
6
- import M from "../../../../../utils/classNames.js";
7
- import f from "../../../../../utils/sleep.js";
8
- import { usePricingStore as T } from "../store/pricingStore.js";
9
- import { TbCheck as x, TbMail as B, TbCreditCard as D } from "react-icons/tb";
10
- import { NumericFormat as y, PatternFormat as b, NumberFormatBase as F } from "react-number-format";
11
- import { useNavigate as Y } from "react-router-dom";
12
- import $ from "../../../../../components/ui/Dialog/Dialog.js";
5
+ import { Segment as u } from "../../../../../components/ui/Segment/index.js";
6
+ import j from "../../../../../utils/classNames.js";
7
+ import g from "../../../../../utils/sleep.js";
8
+ import { usePricingStore as M } from "../store/pricingStore.js";
9
+ import { TbCheck as f, TbMail as T, TbCreditCard as B } from "react-icons/tb";
10
+ import { NumericFormat as x, PatternFormat as y, NumberFormatBase as D } from "react-number-format";
11
+ import { useNavigate as F } from "react-router-dom";
12
+ import Y from "../../../../../components/ui/Dialog/Dialog.js";
13
13
  import c from "../../../../../components/ui/Button/Button.js";
14
- function N(t, r) {
14
+ function b(t, r) {
15
15
  return t.length === 1 && t[0] > r[0] && (t = "0" + t), t.length === 2 && (Number(t) === 0 ? t = "01" : t > r && (t = r)), t;
16
16
  }
17
- function E(t) {
18
- const r = N(t.substring(0, 2), "12"), i = N(t.substring(2, 4), "31");
17
+ function $(t) {
18
+ const r = b(t.substring(0, 2), "12"), i = b(t.substring(2, 4), "31");
19
19
  return r + (i.length ? "/" + i : "");
20
20
  }
21
- const U = () => {
22
- var m;
23
- const [t, r] = u(!1), [i, o] = u(!1), w = Y(), { paymentDialog: C, setPaymentDialog: v, selectedPlan: l, setSelectedPlan: d } = T(), s = async () => {
24
- v(!1), await f(200), d({}), o(!1);
25
- }, P = (n) => {
21
+ const Q = () => {
22
+ const [t, r] = p(!1), [i, o] = p(!1), N = F(), { paymentDialog: w, setPaymentDialog: C, selectedPlan: l, setSelectedPlan: d } = M(), s = async () => {
23
+ C(!1), await g(200), d({}), o(!1);
24
+ }, v = (n) => {
26
25
  d({
27
26
  ...l,
28
27
  paymentCycle: n
29
28
  });
30
- }, S = async () => {
31
- r(!0), await f(500), r(!1), o(!0);
29
+ }, P = async () => {
30
+ r(!0), await g(500), r(!1), o(!0);
32
31
  };
33
32
  return /* @__PURE__ */ e(
34
- $,
33
+ Y,
35
34
  {
36
- isOpen: C,
35
+ isOpen: w,
37
36
  closable: !i,
38
37
  onClose: s,
39
38
  onRequestClose: s,
40
- children: i ? /* @__PURE__ */ e(p, { children: /* @__PURE__ */ a("div", { className: "text-center mt-6 mb-2", children: [
41
- /* @__PURE__ */ e("div", { className: "inline-flex rounded-full p-5 bg-success", children: /* @__PURE__ */ e(x, { className: "text-5xl text-white" }) }),
39
+ children: i ? /* @__PURE__ */ e(h, { children: /* @__PURE__ */ a("div", { className: "text-center mt-6 mb-2", children: [
40
+ /* @__PURE__ */ e("div", { className: "inline-flex rounded-full p-5 bg-success", children: /* @__PURE__ */ e(f, { className: "text-5xl text-white" }) }),
42
41
  /* @__PURE__ */ a("div", { className: "mt-6", children: [
43
42
  /* @__PURE__ */ e("h4", { children: "Thank you for your purchase!" }),
44
43
  /* @__PURE__ */ e("p", { className: "text-base max-w-[400px] mx-auto mt-4 leading-relaxed", children: "We've received your order and are processing it now. You'll get an email with your order details soon" })
45
44
  ] }),
46
45
  /* @__PURE__ */ a("div", { className: "grid grid-cols-2 gap-2 mt-8", children: [
47
46
  /* @__PURE__ */ e(c, { block: !0, onClick: async () => {
48
- w("/concepts/account/settings?view=billing"), await s();
47
+ N("/concepts/account/settings?view=billing"), await s();
49
48
  }, children: "Manage subscription" }),
50
49
  /* @__PURE__ */ e(
51
50
  c,
@@ -57,27 +56,27 @@ const U = () => {
57
56
  }
58
57
  )
59
58
  ] })
60
- ] }) }) : /* @__PURE__ */ a(p, { children: [
59
+ ] }) }) : /* @__PURE__ */ a(h, { children: [
61
60
  /* @__PURE__ */ a("h4", { children: [
62
61
  l.planName,
63
62
  " plan"
64
63
  ] }),
65
64
  /* @__PURE__ */ e("div", { className: "mt-6", children: /* @__PURE__ */ e(
66
- g,
65
+ u,
67
66
  {
68
67
  defaultValue: l.paymentCycle,
69
68
  className: "gap-4 flex bg-transparent",
70
- onChange: (n) => P(n),
69
+ onChange: (n) => v(n),
71
70
  children: Object.entries(l.price || {}).map(
72
- ([n, k]) => /* @__PURE__ */ e(g.Item, { value: n, children: ({ active: h, onSegmentItemClick: j }) => /* @__PURE__ */ a(
71
+ ([n, S]) => /* @__PURE__ */ e(u.Item, { value: n, children: ({ active: m, onSegmentItemClick: k }) => /* @__PURE__ */ a(
73
72
  "div",
74
73
  {
75
- className: M(
74
+ className: j(
76
75
  "flex justify-between border rounded-xl border-gray-300 py-5 px-4 select-none ring-1 w-1/2",
77
- h ? "ring-primary border-primary " : "ring-transparent bg-gray-100"
76
+ m ? "ring-primary border-primary " : "ring-transparent bg-gray-100"
78
77
  ),
79
78
  role: "button",
80
- onClick: j,
79
+ onClick: k,
81
80
  children: [
82
81
  /* @__PURE__ */ a("div", { children: [
83
82
  /* @__PURE__ */ a("div", { className: "heading-text mb-0.5", children: [
@@ -87,10 +86,10 @@ const U = () => {
87
86
  ] }),
88
87
  /* @__PURE__ */ a("span", { className: "text-lg font-bold heading-text flex gap-0.5", children: [
89
88
  /* @__PURE__ */ e(
90
- y,
89
+ x,
91
90
  {
92
91
  displayType: "text",
93
- value: k,
92
+ value: S,
94
93
  prefix: "$",
95
94
  thousandSeparator: !0
96
95
  }
@@ -99,7 +98,7 @@ const U = () => {
99
98
  /* @__PURE__ */ e("span", { children: n === "monthly" ? "month" : "year" })
100
99
  ] })
101
100
  ] }),
102
- h && /* @__PURE__ */ e(x, { className: "text-primary text-xl" })
101
+ m && /* @__PURE__ */ e(f, { className: "text-primary text-xl" })
103
102
  ]
104
103
  }
105
104
  ) }, n)
@@ -110,7 +109,7 @@ const U = () => {
110
109
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-600", children: /* @__PURE__ */ a("div", { className: "w-full", children: [
111
110
  /* @__PURE__ */ e("span", { children: "Billing email" }),
112
111
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2 mt-2", children: [
113
- /* @__PURE__ */ e(B, { className: "text-2xl" }),
112
+ /* @__PURE__ */ e(T, { className: "text-2xl" }),
114
113
  /* @__PURE__ */ e(
115
114
  "input",
116
115
  {
@@ -124,9 +123,9 @@ const U = () => {
124
123
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between p-4", children: /* @__PURE__ */ a("div", { className: "w-full", children: [
125
124
  /* @__PURE__ */ e("span", { children: "Credit card" }),
126
125
  /* @__PURE__ */ a("div", { className: "flex items-center gap-2 mt-2", children: [
127
- /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(D, { className: "text-2xl" }) }),
126
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(B, { className: "text-2xl" }) }),
128
127
  /* @__PURE__ */ e(
129
- b,
128
+ y,
130
129
  {
131
130
  className: "focus:outline-none heading-text w-full",
132
131
  placeholder: "Credit card number",
@@ -134,15 +133,15 @@ const U = () => {
134
133
  }
135
134
  ),
136
135
  /* @__PURE__ */ e(
137
- F,
136
+ D,
138
137
  {
139
138
  className: "focus:outline-none heading-text max-w-12 sm:max-w-28",
140
139
  placeholder: "MM/YY",
141
- format: E
140
+ format: $
142
141
  }
143
142
  ),
144
143
  /* @__PURE__ */ e(
145
- b,
144
+ y,
146
145
  {
147
146
  className: "focus:outline-none heading-text max-w-12 sm:max-w-28",
148
147
  placeholder: "CVC",
@@ -156,10 +155,10 @@ const U = () => {
156
155
  /* @__PURE__ */ a("h4", { children: [
157
156
  /* @__PURE__ */ e("span", { children: "Bill now: " }),
158
157
  /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
159
- y,
158
+ x,
160
159
  {
161
160
  displayType: "text",
162
- value: (m = l.price) == null ? void 0 : m[l.paymentCycle],
161
+ value: l.price?.[l.paymentCycle],
163
162
  prefix: "$",
164
163
  thousandSeparator: !0
165
164
  }
@@ -173,7 +172,7 @@ const U = () => {
173
172
  block: !0,
174
173
  variant: "solid",
175
174
  loading: t,
176
- onClick: S,
175
+ onClick: P,
177
176
  children: "Pay"
178
177
  }
179
178
  ) })
@@ -182,6 +181,6 @@ const U = () => {
182
181
  );
183
182
  };
184
183
  export {
185
- U as default
184
+ Q as default
186
185
  };
187
186
  //# sourceMappingURL=PaymentDialog.js.map