@orbe-agro/client-core 5.3.86 → 5.3.90
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.
- package/dist/@ecme/assets/styles/app.css +1 -1
- package/dist/@ecme/assets/styles/components/_dialog.css +1 -1
- package/dist/@ecme/assets/styles/components/_drawer.css +1 -1
- package/dist/@ecme/assets/styles/components/_scrollbar.css +1 -1
- package/dist/@ecme/assets/styles/components/_switcher.css +1 -1
- package/dist/@ecme/assets/styles/components/_upload.css +1 -1
- package/dist/@ecme/assets/styles/components/index.css +1 -1
- package/dist/@ecme/assets/styles/tailwind/index.css +1 -1
- package/dist/@ecme/auth/AuthProvider.js +58 -62
- package/dist/@ecme/auth/AuthProvider.js.map +1 -1
- package/dist/@ecme/components/docs/DemoCard/DemoCard.js +18 -19
- package/dist/@ecme/components/docs/DemoCard/DemoCard.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +29 -30
- package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js +56 -56
- package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js.map +1 -1
- package/dist/@ecme/components/shared/Affix.js +9 -10
- package/dist/@ecme/components/shared/Affix.js.map +1 -1
- package/dist/@ecme/components/shared/AutoComplete.js +27 -28
- package/dist/@ecme/components/shared/AutoComplete.js.map +1 -1
- package/dist/@ecme/components/shared/CalendarView.js +19 -20
- package/dist/@ecme/components/shared/CalendarView.js.map +1 -1
- package/dist/@ecme/components/shared/ConfirmDialog.js +16 -16
- package/dist/@ecme/components/shared/ConfirmDialog.js.map +1 -1
- package/dist/@ecme/components/shared/DataTable.js +151 -151
- package/dist/@ecme/components/shared/DataTable.js.map +1 -1
- package/dist/@ecme/components/shared/DebounceInput.js +11 -12
- package/dist/@ecme/components/shared/DebounceInput.js.map +1 -1
- package/dist/@ecme/components/shared/GanttChart/GanttChart.js +20 -20
- package/dist/@ecme/components/shared/GanttChart/GanttChart.js.map +1 -1
- package/dist/@ecme/components/shared/GanttChart/TaskListTable.js +22 -22
- package/dist/@ecme/components/shared/GanttChart/TaskListTable.js.map +1 -1
- package/dist/@ecme/components/shared/ImageGallery.js +18 -18
- package/dist/@ecme/components/shared/ImageGallery.js.map +1 -1
- package/dist/@ecme/components/shared/Masonry/Masonry.js +25 -25
- package/dist/@ecme/components/shared/Masonry/Masonry.js.map +1 -1
- package/dist/@ecme/components/shared/OtpInput.js +54 -56
- package/dist/@ecme/components/shared/OtpInput.js.map +1 -1
- package/dist/@ecme/components/shared/PasswordInput.js +6 -6
- package/dist/@ecme/components/shared/PasswordInput.js.map +1 -1
- package/dist/@ecme/components/shared/RegionMap.js +9 -9
- package/dist/@ecme/components/shared/RegionMap.js.map +1 -1
- package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js +47 -47
- package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/@ecme/components/shared/UsersAvatarGroup.js +24 -24
- package/dist/@ecme/components/shared/UsersAvatarGroup.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js +63 -69
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js +48 -48
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js.map +1 -1
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js +220 -231
- package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js.map +1 -1
- package/dist/@ecme/components/template/LanguageSelector.js +10 -13
- package/dist/@ecme/components/template/LanguageSelector.js.map +1 -1
- package/dist/@ecme/components/template/Search.js +85 -92
- package/dist/@ecme/components/template/Search.js.map +1 -1
- package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js +18 -18
- package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js +17 -17
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js +59 -59
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js.map +1 -1
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js +34 -34
- package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js.map +1 -1
- package/dist/@ecme/components/ui/Alert/Alert.js +29 -29
- package/dist/@ecme/components/ui/Alert/Alert.js.map +1 -1
- package/dist/@ecme/components/ui/Avatar/AvatarGroup.js +30 -30
- package/dist/@ecme/components/ui/Avatar/AvatarGroup.js.map +1 -1
- package/dist/@ecme/components/ui/Button/Button.js +66 -67
- package/dist/@ecme/components/ui/Button/Button.js.map +1 -1
- package/dist/@ecme/components/ui/Card/Card.js +39 -40
- package/dist/@ecme/components/ui/Card/Card.js.map +1 -1
- package/dist/@ecme/components/ui/Checkbox/Checkbox.js +42 -42
- package/dist/@ecme/components/ui/Checkbox/Checkbox.js.map +1 -1
- package/dist/@ecme/components/ui/Checkbox/Group.js +27 -27
- package/dist/@ecme/components/ui/Checkbox/Group.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/BasePicker.js +67 -67
- package/dist/@ecme/components/ui/DatePicker/BasePicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/Calendar.js +18 -18
- package/dist/@ecme/components/ui/DatePicker/Calendar.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/CalendarBase.js +77 -78
- package/dist/@ecme/components/ui/DatePicker/CalendarBase.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DatePicker.js +67 -71
- package/dist/@ecme/components/ui/DatePicker/DatePicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js +94 -98
- package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js +51 -58
- package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js +67 -67
- package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js.map +1 -1
- package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js +12 -12
- package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js.map +1 -1
- package/dist/@ecme/components/ui/Dialog/Dialog.js +25 -25
- package/dist/@ecme/components/ui/Dialog/Dialog.js.map +1 -1
- package/dist/@ecme/components/ui/Drawer/Drawer.js +32 -32
- package/dist/@ecme/components/ui/Drawer/Drawer.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownItem.js +58 -58
- package/dist/@ecme/components/ui/Dropdown/DropdownItem.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js +99 -100
- package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js.map +1 -1
- package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js +26 -26
- package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js.map +1 -1
- package/dist/@ecme/components/ui/Form/FormContainer.js +17 -17
- package/dist/@ecme/components/ui/Form/FormContainer.js.map +1 -1
- package/dist/@ecme/components/ui/Form/FormItem.js +38 -38
- package/dist/@ecme/components/ui/Form/FormItem.js.map +1 -1
- package/dist/@ecme/components/ui/Input/Input.js +50 -52
- package/dist/@ecme/components/ui/Input/Input.js.map +1 -1
- package/dist/@ecme/components/ui/InputGroup/Addon.js +12 -13
- package/dist/@ecme/components/ui/InputGroup/Addon.js.map +1 -1
- package/dist/@ecme/components/ui/InputGroup/InputGroup.js +10 -11
- package/dist/@ecme/components/ui/InputGroup/InputGroup.js.map +1 -1
- package/dist/@ecme/components/ui/Notification/Notification.js +19 -19
- package/dist/@ecme/components/ui/Notification/Notification.js.map +1 -1
- package/dist/@ecme/components/ui/Pagination/Pagination.js +45 -45
- package/dist/@ecme/components/ui/Pagination/Pagination.js.map +1 -1
- package/dist/@ecme/components/ui/Radio/Group.js +28 -28
- package/dist/@ecme/components/ui/Radio/Group.js.map +1 -1
- package/dist/@ecme/components/ui/Radio/Radio.js +42 -42
- package/dist/@ecme/components/ui/Radio/Radio.js.map +1 -1
- package/dist/@ecme/components/ui/Segment/SegmentItem.js +53 -53
- package/dist/@ecme/components/ui/Segment/SegmentItem.js.map +1 -1
- package/dist/@ecme/components/ui/Select/Select.js +40 -41
- package/dist/@ecme/components/ui/Select/Select.js.map +1 -1
- package/dist/@ecme/components/ui/Steps/StepItem.js +33 -33
- package/dist/@ecme/components/ui/Steps/StepItem.js.map +1 -1
- package/dist/@ecme/components/ui/Switcher/Switcher.js +24 -24
- package/dist/@ecme/components/ui/Switcher/Switcher.js.map +1 -1
- package/dist/@ecme/components/ui/Tabs/TabNav.js +22 -22
- package/dist/@ecme/components/ui/Tabs/TabNav.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/AmPmInput.js +25 -27
- package/dist/@ecme/components/ui/TimeInput/AmPmInput.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInput.js +130 -135
- package/dist/@ecme/components/ui/TimeInput/TimeInput.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInputField.js +22 -24
- package/dist/@ecme/components/ui/TimeInput/TimeInputField.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js +65 -68
- package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js +11 -12
- package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js.map +1 -1
- package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js +19 -20
- package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js.map +1 -1
- package/dist/@ecme/components/ui/Upload/Upload.js +67 -68
- package/dist/@ecme/components/ui/Upload/Upload.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useCallbackRef.js +7 -10
- package/dist/@ecme/components/ui/hooks/useCallbackRef.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useRootClose.js +32 -32
- package/dist/@ecme/components/ui/hooks/useRootClose.js.map +1 -1
- package/dist/@ecme/components/ui/hooks/useTimeout.js +12 -13
- package/dist/@ecme/components/ui/hooks/useTimeout.js.map +1 -1
- package/dist/@ecme/components/ui/toast/ToastWrapper.js +58 -61
- package/dist/@ecme/components/ui/toast/ToastWrapper.js.map +1 -1
- package/dist/@ecme/components/ui/toast/toast.js +16 -19
- package/dist/@ecme/components/ui/toast/toast.js.map +1 -1
- package/dist/@ecme/components/view/Activity/ActivityEvent.js +63 -67
- package/dist/@ecme/components/view/Activity/ActivityEvent.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/Attachment.js +8 -9
- package/dist/@ecme/components/view/ChatBox/components/Attachment.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/ChatInput.js +37 -39
- package/dist/@ecme/components/view/ChatBox/components/ChatInput.js.map +1 -1
- package/dist/@ecme/components/view/ChatBox/components/Message.js +10 -10
- package/dist/@ecme/components/view/ChatBox/components/Message.js.map +1 -1
- package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js +36 -37
- package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js.map +1 -1
- package/dist/@ecme/components/view/TaskItem/TaskItem.js +33 -33
- package/dist/@ecme/components/view/TaskItem/TaskItem.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/chatFakeApi.js +16 -18
- package/dist/@ecme/mock/fakeApi/chatFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/customersFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/customersFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/mailFakeApi.js +9 -10
- package/dist/@ecme/mock/fakeApi/mailFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/ordersFakeApi.js +9 -10
- package/dist/@ecme/mock/fakeApi/ordersFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/productsFakeApi.js +7 -8
- package/dist/@ecme/mock/fakeApi/productsFakeApi.js.map +1 -1
- package/dist/@ecme/mock/fakeApi/projectsFakeApi.js +10 -11
- package/dist/@ecme/mock/fakeApi/projectsFakeApi.js.map +1 -1
- package/dist/@ecme/utils/hooks/useInfiniteScroll.js +11 -11
- package/dist/@ecme/utils/hooks/useInfiniteScroll.js.map +1 -1
- package/dist/@ecme/utils/hooks/useMenuActive.js +11 -12
- package/dist/@ecme/utils/hooks/useMenuActive.js.map +1 -1
- package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js +36 -37
- package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js.map +1 -1
- package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js +14 -14
- package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js.map +1 -1
- package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js +41 -42
- package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js.map +1 -1
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js +59 -60
- package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js.map +1 -1
- package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js +27 -27
- package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js.map +1 -1
- package/dist/@ecme/views/auth/SignIn/components/SignInForm.js +57 -58
- package/dist/@ecme/views/auth/SignIn/components/SignInForm.js.map +1 -1
- package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js +37 -38
- package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js +44 -45
- package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js +5 -5
- package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js +34 -35
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js +26 -26
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js +28 -29
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js +8 -8
- package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js +10 -11
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js +48 -49
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js +14 -14
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js +102 -103
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js.map +1 -1
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js +34 -35
- package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js +16 -16
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js +76 -78
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js +23 -23
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js +48 -49
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js +34 -35
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js +11 -14
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js +19 -19
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js +22 -26
- package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js +18 -24
- package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js +22 -22
- package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js +31 -32
- package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js.map +1 -1
- package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js +31 -32
- package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js +38 -39
- package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js.map +1 -1
- package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js +68 -69
- package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js +63 -66
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js +21 -22
- package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js.map +1 -1
- package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js +84 -85
- package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js +19 -19
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js +51 -58
- package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js +76 -89
- package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js +104 -107
- package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js +22 -22
- package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js +38 -39
- package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js.map +1 -1
- package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js +20 -20
- package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js.map +1 -1
- package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js +32 -33
- package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js +17 -18
- package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js +5 -5
- package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js.map +1 -1
- package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js +12 -13
- package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js +28 -29
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js +63 -67
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js +8 -8
- package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js +36 -37
- package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js.map +1 -1
- package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js +134 -137
- package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js +17 -17
- package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js +35 -35
- package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js +38 -38
- package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js +108 -111
- package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js +44 -45
- package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js +211 -214
- package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js +17 -17
- package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js.map +1 -1
- package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js +15 -15
- package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js +4 -4
- package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js +97 -100
- package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js +68 -71
- package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js +85 -86
- package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js +121 -124
- package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js +11 -11
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js +17 -17
- package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js.map +1 -1
- package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js +17 -17
- package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js +101 -105
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js +57 -58
- package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js +51 -52
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js +22 -23
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js +45 -46
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js +62 -65
- package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js +52 -53
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js +23 -25
- package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js +15 -15
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js +16 -16
- package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js +9 -9
- package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js +40 -41
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js +33 -34
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js +33 -33
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js +203 -210
- package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js +53 -56
- package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js.map +1 -1
- package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js +80 -83
- package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js.map +1 -1
- package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js +6 -6
- package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js +21 -21
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js +27 -27
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js.map +1 -1
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js +27 -27
- package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js.map +1 -1
- package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js +59 -60
- package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js.map +1 -1
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js +76 -77
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js.map +1 -1
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js +30 -30
- package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js +21 -22
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js +15 -15
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js +20 -21
- package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js.map +1 -1
- package/dist/@ecme/views/ui-components/data-display/Table/Editable.js +17 -18
- package/dist/@ecme/views/ui-components/data-display/Table/Editable.js.map +1 -1
- package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js +12 -12
- package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js +28 -29
- package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js +21 -22
- package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js +24 -25
- package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js +75 -79
- package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js +19 -20
- package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js +90 -91
- package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js.map +1 -1
- package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js +22 -23
- package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js.map +1 -1
- package/dist/@types/base/configs/api.config.d.ts +3 -22
- package/dist/@types/base/configs/api.config.d.ts.map +1 -1
- package/dist/base/assets/styles/init.css +1 -1
- package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js +24 -25
- package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js.map +1 -1
- package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js +23 -24
- package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js +30 -31
- package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js.map +1 -1
- package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js +25 -26
- package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js +49 -50
- package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js +27 -28
- package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericStringFormSection.js +23 -24
- package/dist/base/components/forms/GenericForms/GenericStringFormSection.js.map +1 -1
- package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js +27 -28
- package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js +29 -30
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js +27 -28
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js.map +1 -1
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js +27 -28
- package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js.map +1 -1
- package/dist/base/components/shared/TransferirProcessoDialog.js +10 -10
- package/dist/base/components/shared/TransferirProcessoDialog.js.map +1 -1
- package/dist/base/components/tools/NavFilter.js +68 -75
- package/dist/base/components/tools/NavFilter.js.map +1 -1
- package/dist/base/configs/api.config.js +15 -14
- package/dist/base/configs/api.config.js.map +1 -1
- package/dist/base/hooks/adm/roles/useRolesList.js +11 -11
- package/dist/base/hooks/adm/roles/useRolesList.js.map +1 -1
- package/dist/base/hooks/adm/users/useUsersList.js +10 -10
- package/dist/base/hooks/adm/users/useUsersList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js +5 -5
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js +7 -7
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js.map +1 -1
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js +10 -10
- package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js.map +1 -1
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js +8 -8
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js +8 -8
- package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js.map +1 -1
- package/dist/base/hooks/dm/centro/useCentroByCodigoList.js +13 -13
- package/dist/base/hooks/dm/centro/useCentroByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/centro/useCentroList.js +6 -6
- package/dist/base/hooks/dm/centro/useCentroList.js.map +1 -1
- package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js +4 -4
- package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js +9 -9
- package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositoList.js +5 -5
- package/dist/base/hooks/dm/deposito/useDepositoList.js.map +1 -1
- package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js +13 -13
- package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js.map +1 -1
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js +8 -8
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js +6 -6
- package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js.map +1 -1
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js +10 -10
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js +7 -7
- package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js.map +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js +10 -10
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js +1 -1
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js.map +1 -1
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js +11 -11
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js +9 -9
- package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js.map +1 -1
- package/dist/base/hooks/dm/incoterms/useIncotermsList.js +17 -18
- package/dist/base/hooks/dm/incoterms/useIncotermsList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js +13 -13
- package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js +21 -21
- package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoFindList.js +8 -8
- package/dist/base/hooks/dm/produto/useProdutoFindList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js +11 -11
- package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js.map +1 -1
- package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js +9 -9
- package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js.map +1 -1
- package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js +5 -5
- package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js.map +1 -1
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js +9 -9
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js +9 -9
- package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js.map +1 -1
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js +10 -10
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js.map +1 -1
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js +9 -9
- package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js.map +1 -1
- package/dist/base/hooks/useList.js +10 -10
- package/dist/base/hooks/useList.js.map +1 -1
- package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js +15 -15
- package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js.map +1 -1
- package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js +7 -7
- package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js.map +1 -1
- package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js +5 -5
- package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js.map +1 -1
- package/dist/base/utils/functions/stringUtils.js +14 -15
- package/dist/base/utils/functions/stringUtils.js.map +1 -1
- package/lib/base/configs/api.config.ts +9 -7
- package/package.json +1 -1
- package/tsconfig.json +6 -1
|
@@ -1,57 +1,56 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
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
|
|
7
|
-
import
|
|
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
|
|
10
|
-
import { zodResolver as
|
|
11
|
-
import { z as
|
|
12
|
-
import
|
|
13
|
-
import { Form as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
const
|
|
18
|
-
username:
|
|
19
|
-
password:
|
|
20
|
-
}),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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:
|
|
32
|
-
}), { signIn:
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
const { username:
|
|
35
|
-
if (!
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
|
|
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
|
-
|
|
39
|
+
a(!1);
|
|
41
40
|
}), children: [
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
41
|
+
/* @__PURE__ */ e(
|
|
42
|
+
d,
|
|
44
43
|
{
|
|
45
44
|
label: "Login",
|
|
46
|
-
invalid: !!
|
|
47
|
-
errorMessage:
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
-
|
|
45
|
+
invalid: !!r.username,
|
|
46
|
+
errorMessage: r.username?.message,
|
|
47
|
+
children: /* @__PURE__ */ e(
|
|
48
|
+
l,
|
|
50
49
|
{
|
|
51
50
|
name: "username",
|
|
52
|
-
control:
|
|
53
|
-
render: ({ field: o }) => /* @__PURE__ */
|
|
54
|
-
|
|
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__ */
|
|
67
|
-
|
|
65
|
+
/* @__PURE__ */ e(
|
|
66
|
+
d,
|
|
68
67
|
{
|
|
69
68
|
label: "Senha",
|
|
70
|
-
invalid: !!
|
|
71
|
-
errorMessage:
|
|
72
|
-
className:
|
|
73
|
-
|
|
74
|
-
|
|
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__ */
|
|
77
|
-
|
|
75
|
+
children: /* @__PURE__ */ e(
|
|
76
|
+
l,
|
|
78
77
|
{
|
|
79
78
|
name: "password",
|
|
80
|
-
control:
|
|
79
|
+
control: m,
|
|
81
80
|
rules: { required: !0 },
|
|
82
|
-
render: ({ field: o }) => /* @__PURE__ */
|
|
83
|
-
|
|
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
|
-
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
|
|
94
|
+
i,
|
|
95
|
+
/* @__PURE__ */ e(
|
|
96
|
+
q,
|
|
98
97
|
{
|
|
99
98
|
block: !0,
|
|
100
|
-
loading:
|
|
99
|
+
loading: t,
|
|
101
100
|
variant: "solid",
|
|
102
101
|
type: "submit",
|
|
103
102
|
className: "mt-6",
|
|
104
|
-
children:
|
|
103
|
+
children: t ? "Entrando..." : "Entrar"
|
|
105
104
|
}
|
|
106
105
|
)
|
|
107
106
|
] }) });
|
|
108
107
|
};
|
|
109
108
|
export {
|
|
110
|
-
|
|
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","
|
|
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,CAACd,GAAe;AAClB,MAAAF,EAAc,EAAI;AAElB,YAAMmB,IAAS,MAAMR,EAAO,EAAE,UAAAM,GAAU,UAAAC,GAAU;AAElD,MAAIC,GAAQ,WAAW,YACrBf,IAAae,EAAO,OAAO;AAAA,IAE/B;AAEA,IAAAnB,EAAc,EAAK;AAAA,EACrB,CAIyC,GACnC,UAAA;AAAA,IAAA,gBAAAa;AAAA,MAACO;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,SAAS,EAAQb,EAAO;AAAA,QACxB,cAAcA,EAAO,UAAU;AAAA,QAE/B,UAAA,gBAAAM;AAAA,UAACQ;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,SAAAb;AAAA,YACA,QAAQ,CAAC,EAAE,OAAAc,EAAA,MACT,gBAAAT;AAAA,cAACU;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,aAAY;AAAA,gBACZ,cAAa;AAAA,gBACZ,GAAGD;AAAA,cAAA;AAAA,YAAA;AAAA,UACN;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,IAEF,gBAAAT;AAAA,MAACO;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,SAAS,EAAQb,EAAO;AAAA,QACxB,cAAcA,EAAO,UAAU;AAAA,QAC/B,WAAWiB;AAAA,UACTnB,IAAe,SAAS;AAAA,UACxBE,EAAO,UAAU,UAAU,SAAS;AAAA,QAAA;AAAA,QAGtC,UAAA,gBAAAM;AAAA,UAACQ;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,SAAAb;AAAA,YACA,OAAO,EAAE,UAAU,GAAA;AAAA,YACnB,QAAQ,CAAC,EAAE,OAAAc,EAAA,MACT,gBAAAT;AAAA,cAACY;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,aAAY;AAAA,gBACZ,cAAa;AAAA,gBACZ,GAAGH;AAAA,cAAA;AAAA,YAAA;AAAA,UACN;AAAA,QAAA;AAAA,MAEJ;AAAA,IAAA;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
|
|
2
|
-
import { useState as
|
|
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
|
|
8
|
-
import { zodResolver as
|
|
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
|
|
11
|
-
import { Form as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
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
|
-
}),
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
} =
|
|
32
|
-
resolver: B
|
|
30
|
+
} = C({
|
|
31
|
+
resolver: y(B)
|
|
33
32
|
});
|
|
34
|
-
return /* @__PURE__ */ e("div", { className:
|
|
35
|
-
const { userName:
|
|
36
|
-
if (!
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
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
|
-
|
|
42
|
+
m,
|
|
44
43
|
{
|
|
45
44
|
label: "User name",
|
|
46
45
|
invalid: !!o.userName,
|
|
47
|
-
errorMessage:
|
|
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
|
-
|
|
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
|
-
|
|
66
|
+
m,
|
|
68
67
|
{
|
|
69
68
|
label: "Email",
|
|
70
69
|
invalid: !!o.email,
|
|
71
|
-
errorMessage:
|
|
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
|
-
|
|
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
|
-
|
|
90
|
+
m,
|
|
92
91
|
{
|
|
93
92
|
label: "Password",
|
|
94
93
|
invalid: !!o.password,
|
|
95
|
-
errorMessage:
|
|
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
|
-
|
|
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
|
-
|
|
114
|
+
m,
|
|
116
115
|
{
|
|
117
116
|
label: "Confirm Password",
|
|
118
117
|
invalid: !!o.confirmPassword,
|
|
119
|
-
errorMessage:
|
|
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
|
-
|
|
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:
|
|
141
|
+
loading: l,
|
|
143
142
|
variant: "solid",
|
|
144
143
|
type: "submit",
|
|
145
|
-
children:
|
|
144
|
+
children: l ? "Creating Account..." : "Sign Up"
|
|
146
145
|
}
|
|
147
146
|
)
|
|
148
147
|
] }) });
|
|
149
148
|
};
|
|
150
149
|
export {
|
|
151
|
-
|
|
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","
|
|
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","Controller","field","Input","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,GAECC,IAAa,CAACC,MAA2B;AAC3C,QAAM,EAAE,eAAAC,IAAgB,IAAO,WAAAC,GAAW,YAAAC,MAAeH,GAEnD,CAACI,GAAcC,CAAa,IAAIC,EAAkB,EAAK,GAEvD,EAAE,QAAAC,EAAA,IAAWC,EAAA,GAEb;AAAA,IACF,cAAAC;AAAA,IACA,WAAW,EAAE,QAAAC,EAAA;AAAA,IACb,SAAAC;AAAA,EAAA,IACAC,EAA0B;AAAA,IAC1B,UAAUC,EAAYjB,CAAgB;AAAA,EAAA,CACzC;AAiBD,SACI,gBAAAkB,EAAC,SAAI,WAAAZ,GACD,UAAA,gBAAAa,EAACC,KAAK,UAAUP,EAjBP,OAAOQ,MAA6B;AACjD,UAAM,EAAE,UAAAC,GAAU,UAAAC,GAAU,OAAAC,EAAA,IAAUH;AAEtC,QAAI,CAAChB,GAAe;AAChB,MAAAI,EAAc,EAAI;AAClB,YAAMgB,IAAS,MAAMd,EAAO,EAAE,UAAAW,GAAU,UAAAC,GAAU,OAAAC,GAAO;AAEzD,MAAIC,GAAQ,WAAW,YACnBlB,IAAakB,EAAO,OAAO,GAG/BhB,EAAc,EAAK;AAAA,IACvB;AAAA,EACJ,CAI6C,GACjC,UAAA;AAAA,IAAA,gBAAAS;AAAA,MAACQ;AAAA,MAAA;AAAA,QACG,OAAM;AAAA,QACN,SAAS,EAAQZ,EAAO;AAAA,QACxB,cAAcA,EAAO,UAAU;AAAA,QAE/B,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,aAAY;AAAA,gBACZ,cAAa;AAAA,gBACZ,GAAGD;AAAA,cAAA;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,OAAO;AAAA,QAE5B,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,aAAY;AAAA,gBACZ,cAAa;AAAA,gBACZ,GAAGD;AAAA,cAAA;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,UAAU;AAAA,QAE/B,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,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
|
|
2
|
-
import { useState as
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { usePricingStore as
|
|
9
|
-
import { TbCheck as
|
|
10
|
-
import { NumericFormat as
|
|
11
|
-
import { useNavigate as
|
|
12
|
-
import
|
|
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
|
|
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
|
|
18
|
-
const r =
|
|
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
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
},
|
|
31
|
-
r(!0), await
|
|
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:
|
|
35
|
+
isOpen: w,
|
|
37
36
|
closable: !i,
|
|
38
37
|
onClose: s,
|
|
39
38
|
onRequestClose: s,
|
|
40
|
-
children: i ? /* @__PURE__ */ e(
|
|
41
|
-
/* @__PURE__ */ e("div", { className: "inline-flex rounded-full p-5 bg-success", children: /* @__PURE__ */ e(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
65
|
+
u,
|
|
67
66
|
{
|
|
68
67
|
defaultValue: l.paymentCycle,
|
|
69
68
|
className: "gap-4 flex bg-transparent",
|
|
70
|
-
onChange: (n) =>
|
|
69
|
+
onChange: (n) => v(n),
|
|
71
70
|
children: Object.entries(l.price || {}).map(
|
|
72
|
-
([n,
|
|
71
|
+
([n, S]) => /* @__PURE__ */ e(u.Item, { value: n, children: ({ active: m, onSegmentItemClick: k }) => /* @__PURE__ */ a(
|
|
73
72
|
"div",
|
|
74
73
|
{
|
|
75
|
-
className:
|
|
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
|
-
|
|
76
|
+
m ? "ring-primary border-primary " : "ring-transparent bg-gray-100"
|
|
78
77
|
),
|
|
79
78
|
role: "button",
|
|
80
|
-
onClick:
|
|
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
|
-
|
|
89
|
+
x,
|
|
91
90
|
{
|
|
92
91
|
displayType: "text",
|
|
93
|
-
value:
|
|
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
|
-
|
|
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(
|
|
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(
|
|
126
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(B, { className: "text-2xl" }) }),
|
|
128
127
|
/* @__PURE__ */ e(
|
|
129
|
-
|
|
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
|
-
|
|
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:
|
|
140
|
+
format: $
|
|
142
141
|
}
|
|
143
142
|
),
|
|
144
143
|
/* @__PURE__ */ e(
|
|
145
|
-
|
|
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
|
-
|
|
158
|
+
x,
|
|
160
159
|
{
|
|
161
160
|
displayType: "text",
|
|
162
|
-
value:
|
|
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:
|
|
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
|
-
|
|
184
|
+
Q as default
|
|
186
185
|
};
|
|
187
186
|
//# sourceMappingURL=PaymentDialog.js.map
|