@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,31 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d } from "react";
|
|
3
3
|
import "../../../../components/ui/Card/index.js";
|
|
4
4
|
import "../../../../components/ui/Select/index.js";
|
|
5
5
|
import m from "../../../../components/shared/AbbreviateNumber.js";
|
|
6
6
|
import n from "../../../../utils/classNames.js";
|
|
7
|
-
import { options as
|
|
8
|
-
import { TbShoppingCart as h, TbBuildingStore as
|
|
9
|
-
import
|
|
7
|
+
import { options as o } from "../constants.js";
|
|
8
|
+
import { TbShoppingCart as h, TbBuildingStore as p, TbDeviceMobileMessage as g } from "react-icons/tb";
|
|
9
|
+
import v from "../../../../components/ui/Card/Card.js";
|
|
10
10
|
import u from "../../../../components/ui/Select/Select.js";
|
|
11
11
|
const s = ({
|
|
12
12
|
icon: l,
|
|
13
13
|
label: r,
|
|
14
14
|
value: c,
|
|
15
|
-
iconClass:
|
|
16
|
-
}) => /* @__PURE__ */
|
|
15
|
+
iconClass: a
|
|
16
|
+
}) => /* @__PURE__ */ i("div", { className: n("flex flex-col items-center gap-5"), children: [
|
|
17
17
|
/* @__PURE__ */ e(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
20
|
className: n(
|
|
21
21
|
"rounded-full flex items-center justify-center h-12 w-12 text-xl text-gray-900",
|
|
22
|
-
|
|
22
|
+
a
|
|
23
23
|
),
|
|
24
24
|
children: l
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ i("div", { className: "text-center", children: [
|
|
28
|
+
/* @__PURE__ */ i("h6", { className: "font-bold mb-1", children: [
|
|
29
29
|
"$",
|
|
30
30
|
/* @__PURE__ */ e(m, { value: c })
|
|
31
31
|
] }),
|
|
@@ -34,16 +34,16 @@ const s = ({
|
|
|
34
34
|
] }), t = ({
|
|
35
35
|
percent: l,
|
|
36
36
|
className: r
|
|
37
|
-
}) => /* @__PURE__ */
|
|
37
|
+
}) => /* @__PURE__ */ i("div", { className: "flex-1", style: { width: `${l}%` }, children: [
|
|
38
38
|
/* @__PURE__ */ e("div", { className: n("h-1.5 rounded-full", r) }),
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ i("div", { className: "font-bold heading-text mt-1", children: [
|
|
40
40
|
l,
|
|
41
41
|
"%"
|
|
42
42
|
] })
|
|
43
43
|
] }), j = ({ data: l }) => {
|
|
44
|
-
const [r, c] =
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
44
|
+
const [r, c] = d("thisMonth");
|
|
45
|
+
return /* @__PURE__ */ i(v, { children: [
|
|
46
|
+
/* @__PURE__ */ i("div", { className: "flex items-center justify-between mb-4", children: [
|
|
47
47
|
/* @__PURE__ */ e("h4", { children: "Channel revenue" }),
|
|
48
48
|
/* @__PURE__ */ e(
|
|
49
49
|
u,
|
|
@@ -51,28 +51,28 @@ const s = ({
|
|
|
51
51
|
className: "w-[120px]",
|
|
52
52
|
size: "sm",
|
|
53
53
|
placeholder: "Select period",
|
|
54
|
-
value:
|
|
55
|
-
(
|
|
54
|
+
value: o.filter(
|
|
55
|
+
(a) => a.value === r
|
|
56
56
|
),
|
|
57
|
-
options:
|
|
57
|
+
options: o,
|
|
58
58
|
isSearchable: !1,
|
|
59
|
-
onChange: (
|
|
60
|
-
|
|
59
|
+
onChange: (a) => {
|
|
60
|
+
a?.value && c(a?.value);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
] }),
|
|
65
|
-
/* @__PURE__ */ e("div", { className: "mt-8", children: /* @__PURE__ */
|
|
66
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ e("div", { className: "mt-8", children: /* @__PURE__ */ i("div", { className: "flex items-center gap-3", children: [
|
|
66
|
+
/* @__PURE__ */ i("h2", { children: [
|
|
67
67
|
l[r].growShrink,
|
|
68
68
|
"%"
|
|
69
69
|
] }),
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ i("div", { className: "font-nor leading-5", children: [
|
|
71
71
|
/* @__PURE__ */ e("div", { children: "Growth" }),
|
|
72
72
|
/* @__PURE__ */ e("div", { children: "Rate" })
|
|
73
73
|
] })
|
|
74
74
|
] }) }),
|
|
75
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-1 mt-6", children: [
|
|
76
76
|
/* @__PURE__ */ e(
|
|
77
77
|
t,
|
|
78
78
|
{
|
|
@@ -95,7 +95,7 @@ const s = ({
|
|
|
95
95
|
}
|
|
96
96
|
)
|
|
97
97
|
] }),
|
|
98
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-100 dark:bg-gray-900 rounded-xl p-4 mt-8", children: /* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-100 dark:bg-gray-900 rounded-xl p-4 mt-8", children: /* @__PURE__ */ i("div", { className: "grid grid-cols-3", children: [
|
|
99
99
|
/* @__PURE__ */ e(
|
|
100
100
|
s,
|
|
101
101
|
{
|
|
@@ -108,7 +108,7 @@ const s = ({
|
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
109
|
s,
|
|
110
110
|
{
|
|
111
|
-
icon: /* @__PURE__ */ e(
|
|
111
|
+
icon: /* @__PURE__ */ e(p, {}),
|
|
112
112
|
label: "Physical store",
|
|
113
113
|
value: l[r].value / l[r].percentage.physicalStore,
|
|
114
114
|
iconClass: "bg-emerald-200 dark:opacity-70"
|
|
@@ -117,7 +117,7 @@ const s = ({
|
|
|
117
117
|
/* @__PURE__ */ e(
|
|
118
118
|
s,
|
|
119
119
|
{
|
|
120
|
-
icon: /* @__PURE__ */ e(
|
|
120
|
+
icon: /* @__PURE__ */ e(g, {}),
|
|
121
121
|
label: "Social Media",
|
|
122
122
|
value: l[r].value / l[r].percentage.socialMedia,
|
|
123
123
|
iconClass: "bg-orange-200 dark:opacity-70"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RevenueByChannel.js","sources":["../../../../../../lib/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Card from '@/components/ui/Card'\nimport Select from '@/components/ui/Select'\nimport AbbreviateNumber from '@/components/shared/AbbreviateNumber'\nimport classNames from '@/utils/classNames'\nimport { options } from '../constants'\nimport {\n TbShoppingCart,\n TbBuildingStore,\n TbDeviceMobileMessage,\n} from 'react-icons/tb'\nimport type { ChannelRevenue, Period } from '../types'\nimport type { ReactNode } from 'react'\n\ntype RevenueByChannelProps = {\n data: ChannelRevenue\n}\n\nconst DisplayColumn = ({\n icon,\n label,\n value,\n iconClass,\n}: {\n icon: ReactNode\n label: string\n value: number\n iconClass: string\n}) => {\n return (\n <div className={classNames('flex flex-col items-center gap-5')}>\n <div\n className={classNames(\n 'rounded-full flex items-center justify-center h-12 w-12 text-xl text-gray-900',\n iconClass,\n )}\n >\n {icon}\n </div>\n <div className=\"text-center\">\n <h6 className=\"font-bold mb-1\">\n {'$'}\n <AbbreviateNumber value={value} />\n </h6>\n <div className=\"text-center text-xs\">{label}</div>\n </div>\n </div>\n )\n}\n\nconst Bar = ({\n percent,\n className,\n}: {\n percent: number\n className?: string\n}) => {\n return (\n <div className=\"flex-1\" style={{ width: `${percent}%` }}>\n <div className={classNames('h-1.5 rounded-full', className)} />\n <div className=\"font-bold heading-text mt-1\">{percent}%</div>\n </div>\n )\n}\n\nconst RevenueByChannel = ({ data }: RevenueByChannelProps) => {\n const [selectedPeriod, setSelectedPeriod] = useState<Period>('thisMonth')\n\n return (\n <Card>\n <div className=\"flex items-center justify-between mb-4\">\n <h4>Channel revenue</h4>\n <Select\n className=\"w-[120px]\"\n size=\"sm\"\n placeholder=\"Select period\"\n value={options.filter(\n (option) => option.value === selectedPeriod,\n )}\n options={options}\n isSearchable={false}\n onChange={(option) => {\n if (option?.value) {\n setSelectedPeriod(option?.value)\n }\n }}\n />\n </div>\n <div className=\"mt-8\">\n <div className=\"flex items-center gap-3\">\n <h2>{data[selectedPeriod].growShrink}%</h2>\n <div className=\"font-nor leading-5\">\n <div>Growth</div>\n <div>Rate</div>\n </div>\n </div>\n </div>\n <div className=\"flex items-center gap-1 mt-6\">\n <Bar\n percent={data[selectedPeriod].percentage.onlineStore}\n className=\"bg-sky-200 dark:opacity-70\"\n />\n <Bar\n percent={data[selectedPeriod].percentage.physicalStore}\n className=\"bg-emerald-200 dark:opacity-70\"\n />\n <Bar\n percent={data[selectedPeriod].percentage.socialMedia}\n className=\"bg-orange-200 dark:opacity-70\"\n />\n </div>\n <div className=\"bg-gray-100 dark:bg-gray-900 rounded-xl p-4 mt-8\">\n <div className=\"grid grid-cols-3\">\n <DisplayColumn\n icon={<TbShoppingCart />}\n label=\"Online store\"\n value={\n data[selectedPeriod].value /\n data[selectedPeriod].percentage.onlineStore\n }\n iconClass=\"bg-sky-200 dark:opacity-70\"\n />\n <DisplayColumn\n icon={<TbBuildingStore />}\n label=\"Physical store\"\n value={\n data[selectedPeriod].value /\n data[selectedPeriod].percentage.physicalStore\n }\n iconClass=\"bg-emerald-200 dark:opacity-70\"\n />\n <DisplayColumn\n icon={<TbDeviceMobileMessage />}\n label=\"Social Media\"\n value={\n data[selectedPeriod].value /\n data[selectedPeriod].percentage.socialMedia\n }\n iconClass=\"bg-orange-200 dark:opacity-70\"\n />\n </div>\n </div>\n </Card>\n )\n}\n\nexport default RevenueByChannel\n"],"names":["DisplayColumn","icon","label","value","iconClass","jsxs","classNames","jsx","AbbreviateNumber","Bar","percent","className","RevenueByChannel","data","selectedPeriod","setSelectedPeriod","useState","Card","Select","options","option","TbShoppingCart","TbBuildingStore","TbDeviceMobileMessage"],"mappings":";;;;;;;;;;AAkBA,MAAMA,IAAgB,CAAC;AAAA,EACnB,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AACJ,MAOQ,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAW,kCAAkC,GACzD,UAAA;AAAA,EAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAWD;AAAA,QACP;AAAA,QACAF;AAAA,MAAA;AAAA,MAGH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAAA,EAEL,gBAAAI,EAAC,OAAA,EAAI,WAAU,eACX,UAAA;AAAA,IAAA,gBAAAA,EAAC,MAAA,EAAG,WAAU,kBACT,UAAA;AAAA,MAAA;AAAA,MACD,gBAAAE,EAACC,KAAiB,OAAAL,EAAA,CAAc;AAAA,IAAA,GACpC;AAAA,IACA,gBAAAI,EAAC,OAAA,EAAI,WAAU,uBAAuB,UAAAL,EAAA,CAAM;AAAA,EAAA,EAAA,CAChD;AAAA,GACJ,GAIFO,IAAM,CAAC;AAAA,EACT,SAAAC;AAAA,EACA,WAAAC;AACJ,MAKQ,gBAAAN,EAAC,OAAA,EAAI,WAAU,UAAS,OAAO,EAAE,OAAO,GAAGK,CAAO,IAAA,GAC9C,UAAA;AAAA,EAAA,gBAAAH,EAAC,OAAA,EAAI,WAAWD,EAAW,sBAAsBK,CAAS,GAAG;AAAA,EAC7D,gBAAAN,EAAC,OAAA,EAAI,WAAU,+BAA+B,UAAA;AAAA,IAAAK;AAAA,IAAQ;AAAA,EAAA,EAAA,CAAC;AAAA,GAC3D,GAIFE,IAAmB,CAAC,EAAE,MAAAC,QAAkC;AAC1D,QAAM,CAACC,GAAgBC,CAAiB,IAAIC,EAAiB,WAAW;AAExE,2BACKC,GAAA,EACG,UAAA;AAAA,IAAA,gBAAAZ,EAAC,OAAA,EAAI,WAAU,0CACX,UAAA;AAAA,MAAA,gBAAAE,EAAC,QAAG,UAAA,kBAAA,CAAe;AAAA,MACnB,gBAAAA;AAAA,QAACW;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,MAAK;AAAA,UACL,aAAY;AAAA,UACZ,OAAOC,EAAQ;AAAA,YACX,CAACC,MAAWA,EAAO,UAAUN;AAAA,UAAA;AAAA,UAEjC,SAAAK;AAAA,UACA,cAAc;AAAA,UACd,UAAU,CAACC,MAAW;AAClB,YAAIA,
|
|
1
|
+
{"version":3,"file":"RevenueByChannel.js","sources":["../../../../../../lib/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Card from '@/components/ui/Card'\nimport Select from '@/components/ui/Select'\nimport AbbreviateNumber from '@/components/shared/AbbreviateNumber'\nimport classNames from '@/utils/classNames'\nimport { options } from '../constants'\nimport {\n TbShoppingCart,\n TbBuildingStore,\n TbDeviceMobileMessage,\n} from 'react-icons/tb'\nimport type { ChannelRevenue, Period } from '../types'\nimport type { ReactNode } from 'react'\n\ntype RevenueByChannelProps = {\n data: ChannelRevenue\n}\n\nconst DisplayColumn = ({\n icon,\n label,\n value,\n iconClass,\n}: {\n icon: ReactNode\n label: string\n value: number\n iconClass: string\n}) => {\n return (\n <div className={classNames('flex flex-col items-center gap-5')}>\n <div\n className={classNames(\n 'rounded-full flex items-center justify-center h-12 w-12 text-xl text-gray-900',\n iconClass,\n )}\n >\n {icon}\n </div>\n <div className=\"text-center\">\n <h6 className=\"font-bold mb-1\">\n {'$'}\n <AbbreviateNumber value={value} />\n </h6>\n <div className=\"text-center text-xs\">{label}</div>\n </div>\n </div>\n )\n}\n\nconst Bar = ({\n percent,\n className,\n}: {\n percent: number\n className?: string\n}) => {\n return (\n <div className=\"flex-1\" style={{ width: `${percent}%` }}>\n <div className={classNames('h-1.5 rounded-full', className)} />\n <div className=\"font-bold heading-text mt-1\">{percent}%</div>\n </div>\n )\n}\n\nconst RevenueByChannel = ({ data }: RevenueByChannelProps) => {\n const [selectedPeriod, setSelectedPeriod] = useState<Period>('thisMonth')\n\n return (\n <Card>\n <div className=\"flex items-center justify-between mb-4\">\n <h4>Channel revenue</h4>\n <Select\n className=\"w-[120px]\"\n size=\"sm\"\n placeholder=\"Select period\"\n value={options.filter(\n (option) => option.value === selectedPeriod,\n )}\n options={options}\n isSearchable={false}\n onChange={(option) => {\n if (option?.value) {\n setSelectedPeriod(option?.value)\n }\n }}\n />\n </div>\n <div className=\"mt-8\">\n <div className=\"flex items-center gap-3\">\n <h2>{data[selectedPeriod].growShrink}%</h2>\n <div className=\"font-nor leading-5\">\n <div>Growth</div>\n <div>Rate</div>\n </div>\n </div>\n </div>\n <div className=\"flex items-center gap-1 mt-6\">\n <Bar\n percent={data[selectedPeriod].percentage.onlineStore}\n className=\"bg-sky-200 dark:opacity-70\"\n />\n <Bar\n percent={data[selectedPeriod].percentage.physicalStore}\n className=\"bg-emerald-200 dark:opacity-70\"\n />\n <Bar\n percent={data[selectedPeriod].percentage.socialMedia}\n className=\"bg-orange-200 dark:opacity-70\"\n />\n </div>\n <div className=\"bg-gray-100 dark:bg-gray-900 rounded-xl p-4 mt-8\">\n <div className=\"grid grid-cols-3\">\n <DisplayColumn\n icon={<TbShoppingCart />}\n label=\"Online store\"\n value={\n data[selectedPeriod].value /\n data[selectedPeriod].percentage.onlineStore\n }\n iconClass=\"bg-sky-200 dark:opacity-70\"\n />\n <DisplayColumn\n icon={<TbBuildingStore />}\n label=\"Physical store\"\n value={\n data[selectedPeriod].value /\n data[selectedPeriod].percentage.physicalStore\n }\n iconClass=\"bg-emerald-200 dark:opacity-70\"\n />\n <DisplayColumn\n icon={<TbDeviceMobileMessage />}\n label=\"Social Media\"\n value={\n data[selectedPeriod].value /\n data[selectedPeriod].percentage.socialMedia\n }\n iconClass=\"bg-orange-200 dark:opacity-70\"\n />\n </div>\n </div>\n </Card>\n )\n}\n\nexport default RevenueByChannel\n"],"names":["DisplayColumn","icon","label","value","iconClass","jsxs","classNames","jsx","AbbreviateNumber","Bar","percent","className","RevenueByChannel","data","selectedPeriod","setSelectedPeriod","useState","Card","Select","options","option","TbShoppingCart","TbBuildingStore","TbDeviceMobileMessage"],"mappings":";;;;;;;;;;AAkBA,MAAMA,IAAgB,CAAC;AAAA,EACnB,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AACJ,MAOQ,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAW,kCAAkC,GACzD,UAAA;AAAA,EAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAWD;AAAA,QACP;AAAA,QACAF;AAAA,MAAA;AAAA,MAGH,UAAAH;AAAA,IAAA;AAAA,EAAA;AAAA,EAEL,gBAAAI,EAAC,OAAA,EAAI,WAAU,eACX,UAAA;AAAA,IAAA,gBAAAA,EAAC,MAAA,EAAG,WAAU,kBACT,UAAA;AAAA,MAAA;AAAA,MACD,gBAAAE,EAACC,KAAiB,OAAAL,EAAA,CAAc;AAAA,IAAA,GACpC;AAAA,IACA,gBAAAI,EAAC,OAAA,EAAI,WAAU,uBAAuB,UAAAL,EAAA,CAAM;AAAA,EAAA,EAAA,CAChD;AAAA,GACJ,GAIFO,IAAM,CAAC;AAAA,EACT,SAAAC;AAAA,EACA,WAAAC;AACJ,MAKQ,gBAAAN,EAAC,OAAA,EAAI,WAAU,UAAS,OAAO,EAAE,OAAO,GAAGK,CAAO,IAAA,GAC9C,UAAA;AAAA,EAAA,gBAAAH,EAAC,OAAA,EAAI,WAAWD,EAAW,sBAAsBK,CAAS,GAAG;AAAA,EAC7D,gBAAAN,EAAC,OAAA,EAAI,WAAU,+BAA+B,UAAA;AAAA,IAAAK;AAAA,IAAQ;AAAA,EAAA,EAAA,CAAC;AAAA,GAC3D,GAIFE,IAAmB,CAAC,EAAE,MAAAC,QAAkC;AAC1D,QAAM,CAACC,GAAgBC,CAAiB,IAAIC,EAAiB,WAAW;AAExE,2BACKC,GAAA,EACG,UAAA;AAAA,IAAA,gBAAAZ,EAAC,OAAA,EAAI,WAAU,0CACX,UAAA;AAAA,MAAA,gBAAAE,EAAC,QAAG,UAAA,kBAAA,CAAe;AAAA,MACnB,gBAAAA;AAAA,QAACW;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,MAAK;AAAA,UACL,aAAY;AAAA,UACZ,OAAOC,EAAQ;AAAA,YACX,CAACC,MAAWA,EAAO,UAAUN;AAAA,UAAA;AAAA,UAEjC,SAAAK;AAAA,UACA,cAAc;AAAA,UACd,UAAU,CAACC,MAAW;AAClB,YAAIA,GAAQ,SACRL,EAAkBK,GAAQ,KAAK;AAAA,UAEvC;AAAA,QAAA;AAAA,MAAA;AAAA,IACJ,GACJ;AAAA,sBACC,OAAA,EAAI,WAAU,QACX,UAAA,gBAAAf,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,MAAA,gBAAAA,EAAC,MAAA,EAAI,UAAA;AAAA,QAAAQ,EAAKC,CAAc,EAAE;AAAA,QAAW;AAAA,MAAA,GAAC;AAAA,MACtC,gBAAAT,EAAC,OAAA,EAAI,WAAU,sBACX,UAAA;AAAA,QAAA,gBAAAE,EAAC,SAAI,UAAA,SAAA,CAAM;AAAA,QACX,gBAAAA,EAAC,SAAI,UAAA,OAAA,CAAI;AAAA,MAAA,EAAA,CACb;AAAA,IAAA,EAAA,CACJ,EAAA,CACJ;AAAA,IACA,gBAAAF,EAAC,OAAA,EAAI,WAAU,gCACX,UAAA;AAAA,MAAA,gBAAAE;AAAA,QAACE;AAAA,QAAA;AAAA,UACG,SAASI,EAAKC,CAAc,EAAE,WAAW;AAAA,UACzC,WAAU;AAAA,QAAA;AAAA,MAAA;AAAA,MAEd,gBAAAP;AAAA,QAACE;AAAA,QAAA;AAAA,UACG,SAASI,EAAKC,CAAc,EAAE,WAAW;AAAA,UACzC,WAAU;AAAA,QAAA;AAAA,MAAA;AAAA,MAEd,gBAAAP;AAAA,QAACE;AAAA,QAAA;AAAA,UACG,SAASI,EAAKC,CAAc,EAAE,WAAW;AAAA,UACzC,WAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IACd,GACJ;AAAA,sBACC,OAAA,EAAI,WAAU,oDACX,UAAA,gBAAAT,EAAC,OAAA,EAAI,WAAU,oBACX,UAAA;AAAA,MAAA,gBAAAE;AAAA,QAACP;AAAA,QAAA;AAAA,UACG,wBAAOqB,GAAA,EAAe;AAAA,UACtB,OAAM;AAAA,UACN,OACIR,EAAKC,CAAc,EAAE,QACrBD,EAAKC,CAAc,EAAE,WAAW;AAAA,UAEpC,WAAU;AAAA,QAAA;AAAA,MAAA;AAAA,MAEd,gBAAAP;AAAA,QAACP;AAAA,QAAA;AAAA,UACG,wBAAOsB,GAAA,EAAgB;AAAA,UACvB,OAAM;AAAA,UACN,OACIT,EAAKC,CAAc,EAAE,QACrBD,EAAKC,CAAc,EAAE,WAAW;AAAA,UAEpC,WAAU;AAAA,QAAA;AAAA,MAAA;AAAA,MAEd,gBAAAP;AAAA,QAACP;AAAA,QAAA;AAAA,UACG,wBAAOuB,GAAA,EAAsB;AAAA,UAC7B,OAAM;AAAA,UACN,OACIV,EAAKC,CAAc,EAAE,QACrBD,EAAKC,CAAc,EAAE,WAAW;AAAA,UAEpC,WAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IACd,EAAA,CACJ,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c } from "react";
|
|
3
3
|
import "../../../../components/ui/Card/index.js";
|
|
4
4
|
import "../../../../components/ui/Progress/index.js";
|
|
5
5
|
import "../../../../components/ui/Select/index.js";
|
|
6
|
-
import
|
|
6
|
+
import a from "../../../../components/shared/AbbreviateNumber.js";
|
|
7
7
|
import { options as l } from "../constants.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
8
|
+
import m from "../../../../components/ui/Card/Card.js";
|
|
9
|
+
import n from "../../../../components/ui/Select/Select.js";
|
|
10
|
+
import d from "../../../../components/ui/Progress/Progress.js";
|
|
11
|
+
const h = {
|
|
12
12
|
thisMonth: "month",
|
|
13
13
|
thisWeek: "week",
|
|
14
14
|
thisYear: "year"
|
|
15
|
-
}, y = ({ data:
|
|
16
|
-
const [
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
15
|
+
}, y = ({ data: s }) => {
|
|
16
|
+
const [r, o] = c("thisMonth");
|
|
17
|
+
return /* @__PURE__ */ e(m, { children: [
|
|
18
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-between mb-4", children: [
|
|
19
19
|
/* @__PURE__ */ t("h4", { children: "Sales target" }),
|
|
20
20
|
/* @__PURE__ */ t(
|
|
21
|
-
|
|
21
|
+
n,
|
|
22
22
|
{
|
|
23
23
|
className: "w-[120px]",
|
|
24
24
|
size: "sm",
|
|
25
25
|
placeholder: "Select period",
|
|
26
26
|
value: l.filter(
|
|
27
|
-
(
|
|
27
|
+
(i) => i.value === r
|
|
28
28
|
),
|
|
29
29
|
options: l,
|
|
30
30
|
isSearchable: !1,
|
|
31
|
-
onChange: (
|
|
32
|
-
|
|
31
|
+
onChange: (i) => {
|
|
32
|
+
i?.value && o(i?.value);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
)
|
|
36
36
|
] }),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-between mt-8", children: [
|
|
38
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col", children: [
|
|
39
|
+
/* @__PURE__ */ e("h2", { children: [
|
|
40
40
|
/* @__PURE__ */ t(
|
|
41
|
-
|
|
41
|
+
a,
|
|
42
42
|
{
|
|
43
|
-
value:
|
|
43
|
+
value: s[r].achieved
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ e("span", { className: "opacity-60 text-base font-bold", children: [
|
|
47
47
|
" / ",
|
|
48
48
|
/* @__PURE__ */ t(
|
|
49
|
-
|
|
49
|
+
a,
|
|
50
50
|
{
|
|
51
|
-
value:
|
|
51
|
+
value: s[r].target
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
54
|
" ",
|
|
55
55
|
"Units"
|
|
56
56
|
] })
|
|
57
57
|
] }),
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ e("div", { className: "mt-1", children: [
|
|
59
59
|
"Made this ",
|
|
60
|
-
|
|
60
|
+
h[r],
|
|
61
61
|
" year"
|
|
62
62
|
] })
|
|
63
63
|
] }),
|
|
64
64
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
65
|
-
|
|
65
|
+
d,
|
|
66
66
|
{
|
|
67
|
-
percent:
|
|
67
|
+
percent: s[r].percentage,
|
|
68
68
|
width: 80,
|
|
69
69
|
variant: "circle",
|
|
70
70
|
strokeWidth: 8
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SalesTarget.js","sources":["../../../../../../lib/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Card from '@/components/ui/Card'\nimport Progress from '@/components/ui/Progress'\nimport Select from '@/components/ui/Select'\nimport AbbreviateNumber from '@/components/shared/AbbreviateNumber'\nimport { options } from '../constants'\nimport type { SalesTargetData, Period } from '../types'\n\ntype SalesTargetProps = {\n data: SalesTargetData\n}\n\nconst periodLabel: Record<Period, string> = {\n thisMonth: 'month',\n thisWeek: 'week',\n thisYear: 'year',\n}\n\nconst SalesTarget = ({ data }: SalesTargetProps) => {\n const [selectedPeriod, setSelectedPeriod] = useState<Period>('thisMonth')\n\n return (\n <Card>\n <div className=\"flex items-center justify-between mb-4\">\n <h4>Sales target</h4>\n <Select\n className=\"w-[120px]\"\n size=\"sm\"\n placeholder=\"Select period\"\n value={options.filter(\n (option) => option.value === selectedPeriod,\n )}\n options={options}\n isSearchable={false}\n onChange={(option) => {\n if (option?.value) {\n setSelectedPeriod(option?.value)\n }\n }}\n />\n </div>\n <div className=\"flex items-center justify-between mt-8\">\n <div className=\"flex flex-col\">\n <h2>\n <AbbreviateNumber\n value={data[selectedPeriod].achieved}\n />\n <span className=\"opacity-60 text-base font-bold\">\n {' / '}\n <AbbreviateNumber\n value={data[selectedPeriod].target}\n />{' '}\n Units\n </span>\n </h2>\n <div className=\"mt-1\">\n Made this {periodLabel[selectedPeriod]} year\n </div>\n </div>\n <div>\n <Progress\n percent={data[selectedPeriod].percentage}\n width={80}\n variant=\"circle\"\n strokeWidth={8}\n />\n </div>\n </div>\n </Card>\n )\n}\n\nexport default SalesTarget\n"],"names":["periodLabel","SalesTarget","data","selectedPeriod","setSelectedPeriod","useState","Card","jsxs","jsx","Select","options","option","AbbreviateNumber","Progress"],"mappings":";;;;;;;;;;AAYA,MAAMA,IAAsC;AAAA,EACxC,WAAW;AAAA,EACX,UAAU;AAAA,EACV,UAAU;AACd,GAEMC,IAAc,CAAC,EAAE,MAAAC,QAA6B;AAChD,QAAM,CAACC,GAAgBC,CAAiB,IAAIC,EAAiB,WAAW;AAExE,2BACKC,GAAA,EACG,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,0CACX,UAAA;AAAA,MAAA,gBAAAC,EAAC,QAAG,UAAA,eAAA,CAAY;AAAA,MAChB,gBAAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,MAAK;AAAA,UACL,aAAY;AAAA,UACZ,OAAOC,EAAQ;AAAA,YACX,CAACC,MAAWA,EAAO,UAAUR;AAAA,UAAA;AAAA,UAEjC,SAAAO;AAAA,UACA,cAAc;AAAA,UACd,UAAU,CAACC,MAAW;AAClB,YAAIA,
|
|
1
|
+
{"version":3,"file":"SalesTarget.js","sources":["../../../../../../lib/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Card from '@/components/ui/Card'\nimport Progress from '@/components/ui/Progress'\nimport Select from '@/components/ui/Select'\nimport AbbreviateNumber from '@/components/shared/AbbreviateNumber'\nimport { options } from '../constants'\nimport type { SalesTargetData, Period } from '../types'\n\ntype SalesTargetProps = {\n data: SalesTargetData\n}\n\nconst periodLabel: Record<Period, string> = {\n thisMonth: 'month',\n thisWeek: 'week',\n thisYear: 'year',\n}\n\nconst SalesTarget = ({ data }: SalesTargetProps) => {\n const [selectedPeriod, setSelectedPeriod] = useState<Period>('thisMonth')\n\n return (\n <Card>\n <div className=\"flex items-center justify-between mb-4\">\n <h4>Sales target</h4>\n <Select\n className=\"w-[120px]\"\n size=\"sm\"\n placeholder=\"Select period\"\n value={options.filter(\n (option) => option.value === selectedPeriod,\n )}\n options={options}\n isSearchable={false}\n onChange={(option) => {\n if (option?.value) {\n setSelectedPeriod(option?.value)\n }\n }}\n />\n </div>\n <div className=\"flex items-center justify-between mt-8\">\n <div className=\"flex flex-col\">\n <h2>\n <AbbreviateNumber\n value={data[selectedPeriod].achieved}\n />\n <span className=\"opacity-60 text-base font-bold\">\n {' / '}\n <AbbreviateNumber\n value={data[selectedPeriod].target}\n />{' '}\n Units\n </span>\n </h2>\n <div className=\"mt-1\">\n Made this {periodLabel[selectedPeriod]} year\n </div>\n </div>\n <div>\n <Progress\n percent={data[selectedPeriod].percentage}\n width={80}\n variant=\"circle\"\n strokeWidth={8}\n />\n </div>\n </div>\n </Card>\n )\n}\n\nexport default SalesTarget\n"],"names":["periodLabel","SalesTarget","data","selectedPeriod","setSelectedPeriod","useState","Card","jsxs","jsx","Select","options","option","AbbreviateNumber","Progress"],"mappings":";;;;;;;;;;AAYA,MAAMA,IAAsC;AAAA,EACxC,WAAW;AAAA,EACX,UAAU;AAAA,EACV,UAAU;AACd,GAEMC,IAAc,CAAC,EAAE,MAAAC,QAA6B;AAChD,QAAM,CAACC,GAAgBC,CAAiB,IAAIC,EAAiB,WAAW;AAExE,2BACKC,GAAA,EACG,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,0CACX,UAAA;AAAA,MAAA,gBAAAC,EAAC,QAAG,UAAA,eAAA,CAAY;AAAA,MAChB,gBAAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,MAAK;AAAA,UACL,aAAY;AAAA,UACZ,OAAOC,EAAQ;AAAA,YACX,CAACC,MAAWA,EAAO,UAAUR;AAAA,UAAA;AAAA,UAEjC,SAAAO;AAAA,UACA,cAAc;AAAA,UACd,UAAU,CAACC,MAAW;AAClB,YAAIA,GAAQ,SACRP,EAAkBO,GAAQ,KAAK;AAAA,UAEvC;AAAA,QAAA;AAAA,MAAA;AAAA,IACJ,GACJ;AAAA,IACA,gBAAAJ,EAAC,OAAA,EAAI,WAAU,0CACX,UAAA;AAAA,MAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,iBACX,UAAA;AAAA,QAAA,gBAAAA,EAAC,MAAA,EACG,UAAA;AAAA,UAAA,gBAAAC;AAAA,YAACI;AAAA,YAAA;AAAA,cACG,OAAOV,EAAKC,CAAc,EAAE;AAAA,YAAA;AAAA,UAAA;AAAA,UAEhC,gBAAAI,EAAC,QAAA,EAAK,WAAU,kCACX,UAAA;AAAA,YAAA;AAAA,YACD,gBAAAC;AAAA,cAACI;AAAA,cAAA;AAAA,gBACG,OAAOV,EAAKC,CAAc,EAAE;AAAA,cAAA;AAAA,YAAA;AAAA,YAC7B;AAAA,YAAI;AAAA,UAAA,EAAA,CAEX;AAAA,QAAA,GACJ;AAAA,QACA,gBAAAI,EAAC,OAAA,EAAI,WAAU,QAAO,UAAA;AAAA,UAAA;AAAA,UACPP,EAAYG,CAAc;AAAA,UAAE;AAAA,QAAA,EAAA,CAC3C;AAAA,MAAA,GACJ;AAAA,wBACC,OAAA,EACG,UAAA,gBAAAK;AAAA,QAACK;AAAA,QAAA;AAAA,UACG,SAASX,EAAKC,CAAc,EAAE;AAAA,UAC9B,OAAO;AAAA,UACP,SAAQ;AAAA,UACR,aAAa;AAAA,QAAA;AAAA,MAAA,EACjB,CACJ;AAAA,IAAA,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;"}
|
|
@@ -1,71 +1,70 @@
|
|
|
1
|
-
import { jsxs as l, Fragment as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as l, Fragment as j, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as P } from "react";
|
|
3
3
|
import "../../../../components/ui/Button/index.js";
|
|
4
|
-
import { DatePicker as
|
|
4
|
+
import { DatePicker as b } from "../../../../components/ui/DatePicker/index.js";
|
|
5
5
|
import "../../../../components/ui/Dialog/index.js";
|
|
6
6
|
import "../../../../components/ui/Input/index.js";
|
|
7
7
|
import "../../../../components/ui/Select/index.js";
|
|
8
|
-
import { Segment as
|
|
8
|
+
import { Segment as v } from "../../../../components/ui/Segment/index.js";
|
|
9
9
|
import "../../../../components/ui/Form/index.js";
|
|
10
|
-
import { campaignTypeOption as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
10
|
+
import { campaignTypeOption as B } from "../utils.js";
|
|
11
|
+
import M from "../../../../components/shared/NumericInput.js";
|
|
12
|
+
import O from "../../../../utils/classNames.js";
|
|
13
|
+
import T from "../../../../utils/sleep.js";
|
|
14
14
|
import o from "dayjs";
|
|
15
|
-
import
|
|
16
|
-
import { useForm as
|
|
17
|
-
import { zodResolver as
|
|
15
|
+
import q from "react-select/creatable";
|
|
16
|
+
import { useForm as w, Controller as s } from "react-hook-form";
|
|
17
|
+
import { zodResolver as F } from "@hookform/resolvers/zod";
|
|
18
18
|
import { z as n } from "zod";
|
|
19
|
-
import
|
|
19
|
+
import I from "lodash/uniqueId";
|
|
20
20
|
import c from "../../../../components/ui/Button/Button.js";
|
|
21
|
-
import
|
|
22
|
-
import { Form as
|
|
21
|
+
import _ from "../../../../components/ui/Dialog/Dialog.js";
|
|
22
|
+
import { Form as k } from "../../../../components/ui/Form/Form.js";
|
|
23
23
|
import m from "../../../../components/ui/Form/FormItem.js";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
const
|
|
24
|
+
import z from "../../../../components/ui/Input/Input.js";
|
|
25
|
+
import E from "../../../../components/ui/Select/Select.js";
|
|
26
|
+
const R = [
|
|
27
27
|
{ label: "Existing customers", value: "existingCustomer" },
|
|
28
28
|
{ label: "Tech enthusiasts", value: "techEnthusiasts" },
|
|
29
29
|
{ label: "Students and parents", value: "studentsParents" },
|
|
30
30
|
{ label: "General public", value: "generalPublic" },
|
|
31
31
|
{ label: "Gift shoppers", value: "giftShoppers" }
|
|
32
|
-
],
|
|
32
|
+
], A = n.object({
|
|
33
33
|
name: n.string({ required_error: "Please enter campaign name" }),
|
|
34
34
|
startDate: n.number({ required_error: "Please select a start date" }),
|
|
35
35
|
endDate: n.number({ required_error: "Please select a end date" }),
|
|
36
36
|
budget: n.number({ required_error: "Please enter budget" }),
|
|
37
37
|
campaignType: n.string({ required_error: "Please select campaign type" }),
|
|
38
38
|
audienceGroup: n.array(n.object({ value: n.string(), label: n.string() })).nonempty("At least one is selected!")
|
|
39
|
-
}),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
formState: { errors: t, isSubmitting: P },
|
|
39
|
+
}), ge = ({ onCreate: f }) => {
|
|
40
|
+
const [D, p] = P(!1), {
|
|
41
|
+
handleSubmit: x,
|
|
42
|
+
formState: { errors: t, isSubmitting: y },
|
|
44
43
|
reset: u,
|
|
45
|
-
resetField:
|
|
44
|
+
resetField: C,
|
|
46
45
|
control: i,
|
|
47
46
|
watch: g
|
|
48
|
-
} =
|
|
49
|
-
resolver:
|
|
47
|
+
} = w({
|
|
48
|
+
resolver: F(A)
|
|
50
49
|
}), d = () => {
|
|
51
50
|
p(!1);
|
|
52
|
-
},
|
|
51
|
+
}, S = () => {
|
|
53
52
|
u(), d();
|
|
54
53
|
};
|
|
55
|
-
return /* @__PURE__ */ l(
|
|
54
|
+
return /* @__PURE__ */ l(j, { children: [
|
|
56
55
|
/* @__PURE__ */ a(c, { size: "sm", onClick: () => p(!0), children: "Create campaign" }),
|
|
57
56
|
/* @__PURE__ */ l(
|
|
58
|
-
|
|
57
|
+
_,
|
|
59
58
|
{
|
|
60
|
-
isOpen:
|
|
59
|
+
isOpen: D,
|
|
61
60
|
width: 600,
|
|
62
61
|
onClose: d,
|
|
63
62
|
onRequestClose: d,
|
|
64
63
|
children: [
|
|
65
64
|
/* @__PURE__ */ a("h4", { children: "New campaign" }),
|
|
66
|
-
/* @__PURE__ */ l(
|
|
67
|
-
await
|
|
68
|
-
id:
|
|
65
|
+
/* @__PURE__ */ l(k, { className: "mt-6", onSubmit: x(async (e) => {
|
|
66
|
+
await T(500), f({
|
|
67
|
+
id: I("campaign-"),
|
|
69
68
|
name: e.name || "Untitle campaign",
|
|
70
69
|
startDate: e.startDate * 1e3,
|
|
71
70
|
endDate: e.endDate * 1e3,
|
|
@@ -83,34 +82,34 @@ const H = [
|
|
|
83
82
|
{
|
|
84
83
|
label: "Type",
|
|
85
84
|
invalid: !!t.campaignType,
|
|
86
|
-
errorMessage:
|
|
85
|
+
errorMessage: t.campaignType?.message,
|
|
87
86
|
children: /* @__PURE__ */ a(
|
|
88
87
|
s,
|
|
89
88
|
{
|
|
90
89
|
name: "campaignType",
|
|
91
90
|
control: i,
|
|
92
91
|
render: ({ field: e }) => /* @__PURE__ */ a(
|
|
93
|
-
|
|
92
|
+
v,
|
|
94
93
|
{
|
|
95
94
|
value: e.value,
|
|
96
95
|
className: "grid grid-cols-3 gap-4 bg-transparent",
|
|
97
96
|
onChange: (r) => e.onChange(r),
|
|
98
|
-
children: Object.entries(
|
|
99
|
-
([r,
|
|
100
|
-
active:
|
|
101
|
-
onSegmentItemClick:
|
|
97
|
+
children: Object.entries(B).map(
|
|
98
|
+
([r, h]) => /* @__PURE__ */ a(v.Item, { value: r, children: ({
|
|
99
|
+
active: N,
|
|
100
|
+
onSegmentItemClick: G
|
|
102
101
|
}) => /* @__PURE__ */ a(
|
|
103
102
|
"div",
|
|
104
103
|
{
|
|
105
|
-
className:
|
|
104
|
+
className: O(
|
|
106
105
|
"flex justify-between border rounded-xl border-gray-300 py-5 px-4 select-none ring-1",
|
|
107
|
-
|
|
106
|
+
N ? "ring-primary border-primary " : "ring-transparent bg-gray-100"
|
|
108
107
|
),
|
|
109
108
|
role: "button",
|
|
110
|
-
onClick:
|
|
109
|
+
onClick: G,
|
|
111
110
|
children: /* @__PURE__ */ l("div", { className: "flex flex-col items-center justify-center flex-1 gap-2 heading-text font-bold", children: [
|
|
112
|
-
/* @__PURE__ */ a("div", { className: "text-3xl", children:
|
|
113
|
-
/* @__PURE__ */ a("div", { className: "font-bold", children:
|
|
111
|
+
/* @__PURE__ */ a("div", { className: "text-3xl", children: h.icon }),
|
|
112
|
+
/* @__PURE__ */ a("div", { className: "font-bold", children: h.label })
|
|
114
113
|
] })
|
|
115
114
|
}
|
|
116
115
|
) }, r)
|
|
@@ -126,14 +125,14 @@ const H = [
|
|
|
126
125
|
{
|
|
127
126
|
label: "Campaign name",
|
|
128
127
|
invalid: !!t.name,
|
|
129
|
-
errorMessage:
|
|
128
|
+
errorMessage: t.name?.message,
|
|
130
129
|
children: /* @__PURE__ */ a(
|
|
131
130
|
s,
|
|
132
131
|
{
|
|
133
132
|
name: "name",
|
|
134
133
|
control: i,
|
|
135
134
|
render: ({ field: e }) => /* @__PURE__ */ a(
|
|
136
|
-
|
|
135
|
+
z,
|
|
137
136
|
{
|
|
138
137
|
type: "text",
|
|
139
138
|
autoComplete: "off",
|
|
@@ -152,14 +151,14 @@ const H = [
|
|
|
152
151
|
className: "flex-1",
|
|
153
152
|
label: "Start date",
|
|
154
153
|
invalid: !!t.startDate,
|
|
155
|
-
errorMessage:
|
|
154
|
+
errorMessage: t.startDate?.message,
|
|
156
155
|
children: /* @__PURE__ */ a(
|
|
157
156
|
s,
|
|
158
157
|
{
|
|
159
158
|
name: "startDate",
|
|
160
159
|
control: i,
|
|
161
160
|
render: ({ field: e }) => /* @__PURE__ */ a(
|
|
162
|
-
|
|
161
|
+
b,
|
|
163
162
|
{
|
|
164
163
|
...e,
|
|
165
164
|
value: e.value ? o.unix(
|
|
@@ -168,7 +167,7 @@ const H = [
|
|
|
168
167
|
placeholder: "Select date",
|
|
169
168
|
minDate: o().startOf("day").toDate(),
|
|
170
169
|
onChange: (r) => {
|
|
171
|
-
g("endDate") &&
|
|
170
|
+
g("endDate") && C("endDate"), e.onChange(o(r).unix());
|
|
172
171
|
}
|
|
173
172
|
}
|
|
174
173
|
)
|
|
@@ -182,14 +181,14 @@ const H = [
|
|
|
182
181
|
className: "flex-1",
|
|
183
182
|
label: "End date",
|
|
184
183
|
invalid: !!t.endDate,
|
|
185
|
-
errorMessage:
|
|
184
|
+
errorMessage: t.endDate?.message,
|
|
186
185
|
children: /* @__PURE__ */ a(
|
|
187
186
|
s,
|
|
188
187
|
{
|
|
189
188
|
name: "endDate",
|
|
190
189
|
control: i,
|
|
191
190
|
render: ({ field: e }) => /* @__PURE__ */ a(
|
|
192
|
-
|
|
191
|
+
b,
|
|
193
192
|
{
|
|
194
193
|
...e,
|
|
195
194
|
value: e.value ? o.unix(
|
|
@@ -212,14 +211,14 @@ const H = [
|
|
|
212
211
|
{
|
|
213
212
|
label: "Budget",
|
|
214
213
|
invalid: !!t.budget,
|
|
215
|
-
errorMessage:
|
|
214
|
+
errorMessage: t.budget?.message,
|
|
216
215
|
children: /* @__PURE__ */ a(
|
|
217
216
|
s,
|
|
218
217
|
{
|
|
219
218
|
name: "budget",
|
|
220
219
|
control: i,
|
|
221
220
|
render: ({ field: e }) => /* @__PURE__ */ a(
|
|
222
|
-
|
|
221
|
+
M,
|
|
223
222
|
{
|
|
224
223
|
allowLeadingZeros: !0,
|
|
225
224
|
thousandSeparator: ",",
|
|
@@ -240,18 +239,18 @@ const H = [
|
|
|
240
239
|
{
|
|
241
240
|
label: "Multiple Select",
|
|
242
241
|
invalid: !!t.audienceGroup,
|
|
243
|
-
errorMessage:
|
|
242
|
+
errorMessage: t.audienceGroup?.message,
|
|
244
243
|
children: /* @__PURE__ */ a(
|
|
245
244
|
s,
|
|
246
245
|
{
|
|
247
246
|
name: "audienceGroup",
|
|
248
247
|
control: i,
|
|
249
248
|
render: ({ field: e }) => /* @__PURE__ */ a(
|
|
250
|
-
|
|
249
|
+
E,
|
|
251
250
|
{
|
|
252
251
|
isMulti: !0,
|
|
253
|
-
componentAs:
|
|
254
|
-
options:
|
|
252
|
+
componentAs: q,
|
|
253
|
+
options: R,
|
|
255
254
|
...e
|
|
256
255
|
}
|
|
257
256
|
)
|
|
@@ -260,11 +259,11 @@ const H = [
|
|
|
260
259
|
}
|
|
261
260
|
),
|
|
262
261
|
/* @__PURE__ */ l("div", { className: "flex justify-end gap-2", children: [
|
|
263
|
-
/* @__PURE__ */ a(c, { type: "button", onClick:
|
|
262
|
+
/* @__PURE__ */ a(c, { type: "button", onClick: S, children: "Cancel" }),
|
|
264
263
|
/* @__PURE__ */ a(
|
|
265
264
|
c,
|
|
266
265
|
{
|
|
267
|
-
loading:
|
|
266
|
+
loading: y,
|
|
268
267
|
variant: "solid",
|
|
269
268
|
type: "submit",
|
|
270
269
|
children: "Submit"
|
|
@@ -278,6 +277,6 @@ const H = [
|
|
|
278
277
|
] });
|
|
279
278
|
};
|
|
280
279
|
export {
|
|
281
|
-
|
|
280
|
+
ge as default
|
|
282
281
|
};
|
|
283
282
|
//# sourceMappingURL=CreateCampaign.js.map
|