@ozdao/martyrs 0.2.604 → 0.2.605
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/README.md +2 -2
- package/dist/_virtual/dayjs.min.js +1 -1
- package/dist/_virtual/weekOfYear.js +1 -1
- package/dist/{abac-Blt8bUTL.js → abac-kz5xI99l.js} +1 -0
- package/dist/auth.server.js +52 -12
- package/dist/builder.js +67 -2
- package/dist/chats.server.js +2 -2
- package/dist/community.server.js +3 -3
- package/dist/core.server.js +2 -2
- package/dist/{core.websocket-Cl76z2wT.js → core.websocket-B2FA8gGl.js} +0 -2
- package/dist/{crud-BT5FIvQC.js → crud-Cwn0frBP.js} +8 -2
- package/dist/events.server.js +4 -4
- package/dist/files.server.js +1 -1
- package/dist/gallery.server.js +2 -2
- package/dist/governance.server.js +10 -10
- package/dist/{index-kvBwwb0w.js → index-CPACC651.js} +1 -1
- package/dist/inventory.server.js +4 -4
- package/dist/{mailing-DT7nbNjZ.js → mailing-BBCidXGr.js} +38 -2
- package/dist/marketplace.server.js +2 -2
- package/dist/martyrs/dist/martyrs.es3.js +1 -1
- package/dist/martyrs/dist/martyrs.es3.js.map +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/dayjs.min.js +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/dayjs.min.js.map +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/plugin/weekOfYear.js +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/plugin/weekOfYear.js.map +1 -1
- package/dist/{node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_ → martyrs/node_modules/.pnpm/vue-draggable-next@2.3.0_sortablejs@1.15.7_vue@3.5.13}/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +305 -268
- package/dist/martyrs/node_modules/.pnpm/vue-draggable-next@2.3.0_sortablejs@1.15.7_vue@3.5.13/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js.map +1 -0
- package/dist/martyrs/src/components/Address/Address.vue2.js +13 -13
- package/dist/martyrs/src/components/Address/Address.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Block/Block.vue.js +1 -1
- package/dist/martyrs/src/components/Button/Button.vue2.js +1 -1
- package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Calendar/Calendar.vue2.js +150 -143
- package/dist/martyrs/src/components/Calendar/Calendar.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Chart/Chart.vue.js +296 -0
- package/dist/martyrs/src/components/Chart/Chart.vue.js.map +1 -0
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.js +5 -6
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +1 -1
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js +5 -5
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js.map +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js +2 -2
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/{EditImages.vue2.js → EditImages.vue.js} +6 -6
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -0
- package/dist/martyrs/src/components/EmptyState/EmptyState.vue.js +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.js +4 -4
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldDate/FieldDate.vue.js +3 -3
- package/dist/martyrs/src/components/FieldDate/FieldDate.vue.js.map +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +27 -21
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Map/Map.vue.js +20 -16
- package/dist/martyrs/src/components/Map/Map.vue.js.map +1 -1
- package/dist/martyrs/src/components/Popup/Popup.vue.js +3 -4
- package/dist/martyrs/src/components/Popup/Popup.vue.js.map +1 -1
- package/dist/martyrs/src/components/Radio/Radio.vue.js +12 -10
- package/dist/martyrs/src/components/Radio/Radio.vue.js.map +1 -1
- package/dist/martyrs/src/components/Select/Select.vue.js +2 -2
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -1
- package/dist/martyrs/src/components/Status/Snack.vue.js +1 -1
- package/dist/martyrs/src/components/Status/Snack.vue.js.map +1 -1
- package/dist/martyrs/src/components/Status/Status.vue.js +1 -1
- package/dist/martyrs/src/components/Status/Status.vue.js.map +1 -1
- package/dist/martyrs/src/components/Table/Table.vue.js +21 -4
- package/dist/martyrs/src/components/Table/Table.vue.js.map +1 -1
- package/dist/martyrs/src/components/Tooltip/{Tooltip.vue2.js → Tooltip.vue.js} +2 -2
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue.js.map +1 -0
- package/dist/martyrs/src/components/Tree/Tree.vue.js +1 -1
- package/dist/martyrs/src/components/Upload/Upload.vue2.js +2 -2
- package/dist/martyrs/src/components/Upload/Upload.vue2.js.map +1 -1
- package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js +2 -2
- package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js.map +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/auth.client.js +14 -2
- package/dist/martyrs/src/modules/auth/auth.client.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js +4 -4
- package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/SidebarUserCard.vue.js +96 -0
- package/dist/martyrs/src/modules/auth/views/components/blocks/SidebarUserCard.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/BackofficeUsers.vue.js +337 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/BackofficeUsers.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +32 -18
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +76 -40
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +6 -5
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +4 -4
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +3 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js +28 -16
- package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/middlewares/auth.validation.js +6 -2
- package/dist/martyrs/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.backoffice.router.js +53 -0
- package/dist/martyrs/src/modules/auth/views/router/users.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/store/auth.js +2 -2
- package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js +179 -253
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js +105 -44
- package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js +11 -5
- package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/community.client.js +4 -4
- package/dist/martyrs/src/modules/community/community.client.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +4 -4
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/ImageUpload.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/core.client.js +18 -16
- package/dist/martyrs/src/modules/core/core.client.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/core.app.js +25 -6
- package/dist/martyrs/src/modules/core/views/classes/core.app.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/module.manager.js +4 -2
- package/dist/martyrs/src/modules/core/views/classes/module.manager.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/AlertDialog.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/AlertDialog.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSearch.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSlider.vue.js +132 -0
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSlider.vue.js.map +1 -0
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +3 -3
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js +6 -28
- package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js.map +1 -1
- package/dist/martyrs/src/modules/{auth → core}/views/components/blocks/CardUser.vue.js +29 -11
- package/dist/martyrs/src/modules/{auth → core}/views/components/blocks/CardUser.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +41 -26
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/elements/OnlineIndicator.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +2 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js +5 -5
- package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js +4 -4
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js +3 -3
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js +6 -6
- package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js +14 -1
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/plugins/date-picker.plugin.js +8 -5
- package/dist/martyrs/src/modules/core/views/plugins/date-picker.plugin.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/store/core.store.js +4 -0
- package/dist/martyrs/src/modules/core/views/store/core.store.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js +3 -0
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +9 -9
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/events.client.js +4 -4
- package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/router/gallery.router.js +3 -3
- package/dist/martyrs/src/modules/gallery/router/gallery.router.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js +3 -3
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js +4 -4
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js +3 -3
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js +3 -3
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js +1 -1
- package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/router/governance.router.js +3 -3
- package/dist/martyrs/src/modules/governance/views/router/governance.router.js.map +1 -1
- package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js +2 -2
- package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/entities/IconApplications.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconApplications.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconCustomers.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconCustomers.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconUsers.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconUsers.vue.js.map +1 -0
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +2 -2
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +2 -2
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +290 -173
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/inventory.client.js +4 -4
- package/dist/martyrs/src/modules/inventory/inventory.client.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/router/inventory.router.js +15 -0
- package/dist/martyrs/src/modules/inventory/router/inventory.router.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js +4 -4
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js +3 -3
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +3 -3
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +6 -6
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +5 -5
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +8 -8
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +5 -5
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +11 -11
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +11 -11
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +162 -68
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.js +181 -17
- package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/router/notifications.backoffice.router.js +21 -0
- package/dist/martyrs/src/modules/notifications/router/notifications.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/notifications/router/notifications.router.js +13 -42
- package/dist/martyrs/src/modules/notifications/router/notifications.router.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/store/notifications.store.js +66 -1
- package/dist/martyrs/src/modules/notifications/store/notifications.store.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +9 -7
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +11 -9
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js +9 -9
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js +66 -19
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +29 -27
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js +7 -12
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js +4 -4
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +46 -25
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js +54 -38
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +454 -139
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +2 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +141 -68
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +38 -32
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +4 -4
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +167 -95
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +22 -20
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/orders.js +3 -5
- package/dist/martyrs/src/modules/orders/store/orders.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/shopcart.js +5 -5
- package/dist/martyrs/src/modules/orders/store/shopcart.js.map +1 -1
- package/dist/martyrs/src/modules/orders/utils/rent-price.js +60 -0
- package/dist/martyrs/src/modules/orders/utils/rent-price.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -55
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +8 -8
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +216 -83
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +35 -25
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +3 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +20 -18
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.js +39 -33
- package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js +81 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/Pages.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/Pages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/router/pages.router.js +2 -2
- package/dist/martyrs/src/modules/pages/views/router/pages.router.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +9 -25
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +34 -17
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +96 -96
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +22 -9
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/router/categories.router.js +2 -2
- package/dist/martyrs/src/modules/products/router/categories.router.js.map +1 -1
- package/dist/martyrs/src/modules/products/router/products.router.js +17 -3
- package/dist/martyrs/src/modules/products/router/products.router.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js +11 -10
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js +197 -81
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js +2 -2
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +2 -2
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +685 -80
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +68 -18
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/router/rents.router.js +3 -3
- package/dist/martyrs/src/modules/rents/views/router/rents.router.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/store/rents.store.js +1 -1
- package/dist/martyrs/src/modules/rents/views/store/rents.store.js.map +1 -1
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js +3 -3
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js.map +1 -1
- package/dist/martyrs/src/modules/reports/router/reports.router.js +1 -1
- package/dist/martyrs/src/modules/reports/router/reports.router.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +5 -5
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +3 -3
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +9 -7
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +29 -37
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +8 -8
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/router/spots.router.js +3 -3
- package/dist/martyrs/src/modules/spots/router/spots.router.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +3 -3
- package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js.map +1 -1
- package/dist/martyrs.es10.js +59 -57
- package/dist/martyrs.es106.js +2 -2
- package/dist/martyrs.es11.js +31 -30
- package/dist/martyrs.es113.js +22 -166
- package/dist/martyrs.es114.js +4 -457
- package/dist/martyrs.es115.js +8 -40
- package/dist/martyrs.es116.js +166 -9
- package/dist/martyrs.es117.js +451 -43
- package/dist/martyrs.es118.js +38 -10
- package/dist/martyrs.es119.js +9 -44
- package/dist/martyrs.es12.js +8 -9
- package/dist/martyrs.es120.js +49 -4
- package/dist/martyrs.es121.js +10 -127
- package/dist/martyrs.es122.js +42 -98
- package/dist/martyrs.es123.js +4 -86
- package/dist/martyrs.es124.js +120 -29
- package/dist/martyrs.es125.js +99 -10
- package/dist/martyrs.es126.js +71 -24
- package/dist/martyrs.es127.js +37 -8
- package/dist/martyrs.es128.js +11 -22
- package/dist/martyrs.es129.js +39 -4
- package/dist/martyrs.es13.js +22 -19
- package/dist/martyrs.es130.js +9 -8
- package/dist/martyrs.es131.js +7 -7
- package/dist/martyrs.es132.js +2 -2
- package/dist/martyrs.es133.js +1 -1
- package/dist/martyrs.es135.js +1 -1
- package/dist/martyrs.es137.js +1 -1
- package/dist/martyrs.es138.js +7 -8
- package/dist/martyrs.es139.js +8 -7
- package/dist/martyrs.es14.js +2 -2
- package/dist/martyrs.es140.js +2 -2
- package/dist/martyrs.es144.js +10 -29
- package/dist/martyrs.es145.js +29 -10
- package/dist/martyrs.es146.js +2 -2
- package/dist/martyrs.es147.js +2 -2
- package/dist/martyrs.es149.js +1 -1
- package/dist/martyrs.es2.js +31 -30
- package/dist/martyrs.es22.js +16 -16
- package/dist/martyrs.es23.js +8 -8
- package/dist/martyrs.es24.js +9 -9
- package/dist/martyrs.es26.js +9 -11
- package/dist/martyrs.es27.js +9 -9
- package/dist/martyrs.es28.js +1 -1
- package/dist/martyrs.es29.js +5 -5
- package/dist/martyrs.es3.js +1 -1
- package/dist/martyrs.es38.js +1 -1
- package/dist/martyrs.es4.js +12 -12
- package/dist/martyrs.es41.js +34 -224
- package/dist/martyrs.es5.js +251 -238
- package/dist/martyrs.es61.js +33 -26
- package/dist/martyrs.es74.js +7 -7
- package/dist/martyrs.es76.js +12 -12
- package/dist/martyrs.es8.js +31 -31
- package/dist/music.server.js +3 -3
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@2.0.2/node_modules/@googlemaps/js-api-loader/dist/index.js +90 -0
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@2.0.2/node_modules/@googlemaps/js-api-loader/dist/index.js.map +1 -0
- package/dist/notifications.server.js +255 -23
- package/dist/orders.server.js +674 -136
- package/dist/organizations.server.js +11 -6
- package/dist/products.server.js +68 -7
- package/dist/{queryProcessor-C_5Iipam.js → queryProcessor-B2FCngFP.js} +3 -2
- package/dist/rents.server.js +183 -7
- package/dist/{socials.schema-DxnnaBgO.js → socials.schema-C3RjkqJv.js} +4 -0
- package/dist/spots.server.js +1 -1
- package/dist/style.css +292 -204
- package/dist/{tickets.controller-DdF85W-i.js → tickets.controller-Dpzf4kQx.js} +1 -1
- package/dist/wallet.server.js +2 -2
- package/package.json +5 -3
- package/src/builder/modes/ssr.rspack.dev.js +2 -0
- package/src/builder/rspack/rspack.config.ssr.client.js +58 -1
- package/src/builder/ssr/asset-resolver.js +1 -1
- package/src/builder/templates/page.js +2 -0
- package/src/components/Address/Address.vue +16 -16
- package/src/components/Button/Button.vue +0 -1
- package/src/components/ButtonSegmented/ButtonSegmented.vue +1 -1
- package/src/components/Calendar/Calendar.vue +141 -118
- package/src/components/Chart/Chart.vue +216 -0
- package/src/components/Checkbox/Checkbox.vue +1 -1
- package/src/components/Chips/Chips.vue +4 -5
- package/src/components/Countdown/Countdown.vue +5 -5
- package/src/components/DatePicker/DatePicker.vue +2 -2
- package/src/components/EditImages/EditImages.vue +3 -3
- package/src/components/EmptyState/EmptyState.vue +1 -1
- package/src/components/Feed/Feed.vue +5 -0
- package/src/components/Field/Field.vue +3 -3
- package/src/components/FieldDate/FieldDate.vue +2 -2
- package/src/components/LocationMarker/LocationMarker.vue +28 -21
- package/src/components/Map/Map.vue +20 -15
- package/src/components/Popup/Popup.vue +3 -3
- package/src/components/Radio/Radio.vue +2 -2
- package/src/components/Select/Select.vue +1 -1
- package/src/components/Status/Snack.vue +1 -1
- package/src/components/Status/Status.vue +1 -1
- package/src/components/Table/Table.vue +16 -1
- package/src/components/Upload/Upload.vue +1 -1
- package/src/components/UploadImage/UploadImage.vue +1 -1
- package/src/components/UploadImageMultiple/UploadImageMultiple.vue +1 -1
- package/src/jit/rules.js +4 -0
- package/src/modules/TASKS.MD +16 -3
- package/src/modules/auth/auth.client.js +18 -3
- package/src/modules/auth/controllers/routes/users.routes.js +18 -0
- package/src/modules/auth/controllers/services/auth.service.js +3 -3
- package/src/modules/auth/controllers/services/users.service.js +34 -5
- package/src/modules/auth/views/components/blocks/OtpDialog.vue +4 -4
- package/src/modules/auth/views/components/blocks/PopupAuth.vue +1 -1
- package/src/modules/auth/views/components/blocks/SidebarUserCard.vue +95 -0
- package/src/modules/auth/views/components/pages/BackofficeUsers.vue +337 -0
- package/src/modules/auth/views/components/pages/Invite.vue +1 -1
- package/src/modules/auth/views/components/pages/Profile.vue +1 -1
- package/src/modules/auth/views/components/pages/ProfileEdit.vue +23 -14
- package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +45 -26
- package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +8 -7
- package/src/modules/auth/views/components/pages/ResetPassword.vue +4 -4
- package/src/modules/auth/views/components/pages/SignUp.vue +3 -3
- package/src/modules/auth/views/components/pages/UserDashboard.vue +8 -5
- package/src/modules/auth/views/components/sections/FeaturedUsers.vue +1 -1
- package/src/modules/auth/views/components/sections/SliderFeatures.vue +1 -1
- package/src/modules/auth/views/middlewares/auth.validation.js +7 -2
- package/src/modules/auth/views/router/users.backoffice.router.js +39 -0
- package/src/modules/auth/views/store/auth.js +2 -2
- package/src/modules/backoffice/components/admin/Backcalls.vue +2 -2
- package/src/modules/backoffice/components/admin/Dashboard.sublime-workspace +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
- package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +102 -139
- package/src/modules/backoffice/configs/navigation.backoffice.config.js +91 -29
- package/src/modules/backoffice/router/backoffice.router.js +7 -1
- package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
- package/src/modules/chats/components/sections/ChatWindow.vue +1 -1
- package/src/modules/community/community.client.js +4 -4
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/layouts/Community.vue +4 -4
- package/src/modules/community/components/sections/Comment.vue +1 -1
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/core/TASK.MD +2 -2
- package/src/modules/core/controllers/classes/abac/abac.core.js +1 -0
- package/src/modules/core/controllers/classes/core.websocket.js +0 -2
- package/src/modules/core/controllers/classes/crud/crud.core.js +6 -0
- package/src/modules/core/controllers/classes/crud/crud.service.js +6 -0
- package/src/modules/core/controllers/utils/mailing.js +35 -26
- package/src/modules/core/controllers/utils/queryProcessor.js +4 -2
- package/src/modules/core/core.client.js +1 -0
- package/src/modules/core/models/schemas/embedding.schema.js +8 -0
- package/src/modules/core/models/schemas/socials.schema.js +4 -0
- package/src/modules/core/sw.js +448 -0
- package/src/modules/core/views/classes/core.app.js +37 -13
- package/src/modules/core/views/classes/module.manager.js +3 -1
- package/src/modules/core/views/components/blocks/AlertDialog.vue +1 -1
- package/src/modules/core/views/components/blocks/BlockSearch.vue +1 -1
- package/src/modules/core/views/components/blocks/BlockSlider.vue +96 -0
- package/src/modules/core/views/components/blocks/CardHeader.vue +2 -2
- package/src/modules/core/views/components/blocks/CardStat.vue +4 -18
- package/src/modules/{auth → core}/views/components/blocks/CardUser.vue +45 -20
- package/src/modules/core/views/components/blocks/HelpCard.vue +1 -1
- package/src/modules/core/views/components/blocks/PopupAuth.vue +1 -1
- package/src/modules/core/views/components/blocks/PopupDateSelector.vue +41 -24
- package/src/modules/core/views/components/layouts/Client.vue +1 -1
- package/src/modules/core/views/components/pages/404.vue +5 -5
- package/src/modules/core/views/components/partials/BottomNavigationBar.vue +5 -5
- package/src/modules/core/views/components/partials/CitySelection.vue +2 -2
- package/src/modules/core/views/components/partials/Footer.centered.vue +2 -2
- package/src/modules/core/views/components/partials/Footer.vue +2 -2
- package/src/modules/core/views/components/partials/Header.vue +3 -3
- package/src/modules/core/views/components/partials/LocationSelection.vue +1 -1
- package/src/modules/core/views/components/partials/Navigation.vue +1 -1
- package/src/modules/core/views/components/sections/Filters.vue +2 -2
- package/src/modules/core/views/components/sections/SectionPageTitle.vue +2 -2
- package/src/modules/core/views/components/sections/Walkthrough.vue +6 -6
- package/src/modules/core/views/mixins/mixins.js +17 -0
- package/src/modules/core/views/plugins/date-picker.plugin.js +8 -5
- package/src/modules/core/views/store/core.store.js +5 -0
- package/src/modules/core/views/utils/vue-app-renderer.js +5 -0
- package/src/modules/events/components/pages/EditEventTickets.vue +9 -9
- package/src/modules/events/components/pages/Event.vue +2 -2
- package/src/modules/events/components/sections/EditTickets.vue +1 -1
- package/src/modules/events/components/sections/SelectDate.vue +1 -1
- package/src/modules/events/events.client.js +4 -4
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
- package/src/modules/gallery/router/gallery.router.js +3 -3
- package/src/modules/governance/middlewares/sprints.verifier.js +3 -3
- package/src/modules/governance/middlewares/tasks.verifier.js +3 -3
- package/src/modules/governance/models/sprint.model.js +1 -1
- package/src/modules/governance/models/task.model.js +1 -1
- package/src/modules/governance/reactcode/src/components/TaskStatusBadge.tsx +1 -1
- package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +3 -3
- package/src/modules/governance/views/components/blocks/CardSprintItem.vue +4 -4
- package/src/modules/governance/views/components/blocks/CardTaskItem.vue +2 -2
- package/src/modules/governance/views/components/blocks/CardVotingItem.vue +3 -3
- package/src/modules/governance/views/components/pages/Initiatives.vue +3 -3
- package/src/modules/governance/views/components/partials/TaskStatusBadge.vue +1 -1
- package/src/modules/governance/views/components/sections/FormSprintDetails.vue +1 -1
- package/src/modules/governance/views/components/sections/FormTaskDetails.vue +1 -1
- package/src/modules/governance/views/router/governance.router.js +3 -3
- package/src/modules/icons/components/IconSearchPopup.vue +1 -1
- package/src/modules/icons/entities/IconApplications.vue +14 -0
- package/src/modules/icons/entities/IconCustomers.vue +14 -0
- package/src/modules/icons/entities/IconUsers.vue +14 -0
- package/src/modules/inventory/components/forms/AdjustmentForm.vue +2 -2
- package/src/modules/inventory/components/forms/ColumnSettingsMenu.vue +2 -2
- package/src/modules/inventory/components/forms/HistoryView.vue +1 -1
- package/src/modules/inventory/components/forms/StockAlertsForm.vue +3 -3
- package/src/modules/inventory/components/pages/Inventory.vue +278 -159
- package/src/modules/inventory/components/pages/InventoryEdit.vue +2 -2
- package/src/modules/inventory/inventory.client.js +4 -4
- package/src/modules/inventory/models/stock.audit.model.js +1 -1
- package/src/modules/inventory/router/inventory.router.js +12 -0
- package/src/modules/landing/components/sections/SectionEarn.vue +3 -3
- package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeatures.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
- package/src/modules/landing/components/sections/SectionGuide.vue +2 -2
- package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
- package/src/modules/landing/components/sections/SectionHeroVideo.vue +1 -1
- package/src/modules/landing/components/sections/SectionMobileApp.vue +2 -2
- package/src/modules/landing/components/sections/SectionOverview.vue +1 -1
- package/src/modules/landing/components/sections/SectionRoadmap.vue +1 -1
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
- package/src/modules/marketplace/views/components/sections/SectionMenu.vue +2 -2
- package/src/modules/music/components/SidebarMusic.vue +1 -1
- package/src/modules/music/components/cards/AlbumCard.vue +1 -1
- package/src/modules/music/components/cards/ArtistCard.vue +1 -1
- package/src/modules/music/components/cards/ArtistCardSmall.vue +1 -1
- package/src/modules/music/components/cards/PlaylistCard.vue +1 -1
- package/src/modules/music/components/cards/TrackListCard.vue +6 -6
- package/src/modules/music/components/forms/AlbumForm.vue +2 -2
- package/src/modules/music/components/forms/ArtistForm.vue +1 -1
- package/src/modules/music/components/forms/PlaylistForm.vue +5 -5
- package/src/modules/music/components/forms/TrackForm.vue +3 -3
- package/src/modules/music/components/pages/Album.vue +8 -8
- package/src/modules/music/components/pages/Artist.vue +5 -5
- package/src/modules/music/components/pages/Playlist.vue +11 -11
- package/src/modules/music/components/pages/SearchResults.vue +2 -2
- package/src/modules/music/components/pages/Track.vue +11 -11
- package/src/modules/music/components/player/FullscreenPlayer.vue +3 -3
- package/src/modules/music/components/player/TrackProgress.vue +1 -1
- package/src/modules/notifications/components/sections/NotificationPreferences.vue +182 -52
- package/src/modules/notifications/controllers/notifications.controller.js +242 -17
- package/src/modules/notifications/models/notification-preference.model.js +4 -0
- package/src/modules/notifications/notifications.client.js +213 -20
- package/src/modules/notifications/router/notifications.backoffice.router.js +16 -0
- package/src/modules/notifications/router/notifications.router.js +13 -45
- package/src/modules/notifications/routes/notifications.routes.js +9 -0
- package/src/modules/notifications/services/notification.service.js +33 -9
- package/src/modules/notifications/services/telegram.service.js +2 -2
- package/src/modules/notifications/services/web-push.service.js +6 -2
- package/src/modules/notifications/store/notifications.store.js +69 -0
- package/src/modules/orders/components/blocks/CardApplication.vue +9 -6
- package/src/modules/orders/components/blocks/CardCustomer.vue +10 -7
- package/src/modules/orders/components/blocks/CardOrder.vue +8 -8
- package/src/modules/orders/components/blocks/CardOrderBackoffice.vue +58 -12
- package/src/modules/orders/components/blocks/CardOrderItem.vue +31 -28
- package/src/modules/orders/components/blocks/CardOrderUser.vue +7 -12
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +3 -3
- package/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue +1 -1
- package/src/modules/orders/components/elements/PriceTotal.vue +4 -4
- package/src/modules/orders/components/forms/FormApplicationDetails.vue +1 -1
- package/src/modules/orders/components/forms/FormSelectCustomer.vue +48 -25
- package/src/modules/orders/components/pages/Applications.vue +2 -2
- package/src/modules/orders/components/pages/Customers.vue +35 -23
- package/src/modules/orders/components/pages/OrderBackoffice.vue +780 -393
- package/src/modules/orders/components/pages/OrderCreate.vue +5 -4
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +112 -42
- package/src/modules/orders/components/pages/Orders.vue +20 -19
- package/src/modules/orders/components/pages/Orders_refact.vue +3 -3
- package/src/modules/orders/components/partials/ShopCart.vue +1 -1
- package/src/modules/orders/components/sections/ApplicationDetails.vue +2 -2
- package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
- package/src/modules/orders/components/sections/CustomerDetails.vue +130 -64
- package/src/modules/orders/controllers/orders.controller.js +463 -134
- package/src/modules/orders/middlewares/applications.verifier.js +3 -3
- package/src/modules/orders/middlewares/customers.verifier.js +4 -0
- package/src/modules/orders/middlewares/orders.verifier.js +187 -0
- package/src/modules/orders/models/customer.model.js +2 -0
- package/src/modules/orders/models/order.model.js +20 -2
- package/src/modules/orders/orders.client.js +21 -19
- package/src/modules/orders/routes/applications.routes.js +13 -3
- package/src/modules/orders/routes/customers.routes.js +2 -0
- package/src/modules/orders/routes/orders.routes.js +46 -4
- package/src/modules/orders/store/orders.js +4 -7
- package/src/modules/orders/store/shopcart.js +6 -7
- package/src/modules/orders/utils/rent-price.js +90 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +30 -33
- package/src/modules/organizations/components/blocks/EmptyState.vue +1 -1
- package/src/modules/organizations/components/blocks/Rating.vue +1 -1
- package/src/modules/organizations/components/blocks/Socials.vue +2 -2
- package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
- package/src/modules/organizations/components/forms/AddExistingMembersForm.vue +3 -3
- package/src/modules/organizations/components/forms/DepartmentForm.vue +1 -1
- package/src/modules/organizations/components/forms/InviteForm.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +2 -2
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +8 -8
- package/src/modules/organizations/components/pages/Organization.vue +232 -124
- package/src/modules/organizations/components/pages/OrganizationCreate.vue +3 -3
- package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +15 -6
- package/src/modules/organizations/components/pages/Organizations.vue +3 -2
- package/src/modules/organizations/components/sections/Documents.vue +1 -1
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/configs/navigation.organization.config.js +34 -26
- package/src/modules/organizations/controllers/organizations.controller.js +8 -3
- package/src/modules/organizations/models/organization.model.js +1 -0
- package/src/modules/organizations/organizations.client.js +39 -33
- package/src/modules/organizations/router/organizations.backoffice.router.js +67 -0
- package/src/modules/pages/views/components/pages/Pages.vue +1 -1
- package/src/modules/pages/views/router/pages.router.js +2 -2
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/blocks/CardProduct.vue +2 -2
- package/src/modules/products/components/blocks/ProductDiscounts.vue +1 -1
- package/src/modules/products/components/blocks/ProductImages.vue +1 -1
- package/src/modules/products/components/blocks/ProductVariants.vue +3 -3
- package/src/modules/products/components/elements/Price.vue +2 -2
- package/src/modules/products/components/forms/ColumnSettingsMenu.vue +2 -2
- package/src/modules/products/components/forms/ReorderSettingsForm.vue +3 -3
- package/src/modules/products/components/forms/StockAuditForm.vue +2 -2
- package/src/modules/products/components/forms/StockHistoryView.vue +1 -1
- package/src/modules/products/components/pages/Categories.vue +9 -20
- package/src/modules/products/components/pages/ProductEdit.vue +19 -3
- package/src/modules/products/components/pages/Products.vue +20 -19
- package/src/modules/products/components/sections/EditAttributes.vue +1 -1
- package/src/modules/products/components/sections/EditCategories.vue +1 -1
- package/src/modules/products/components/sections/EditDiscounts.vue +2 -2
- package/src/modules/products/components/sections/EditVariants.vue +14 -2
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/components/sections/ProductConfigurator.vue +1 -1
- package/src/modules/products/components/sections/SectionProduct.vue +3 -3
- package/src/modules/products/controllers/products.controller.js +50 -5
- package/src/modules/products/experiments/product-recommendation/components/HeroRecommendation.vue +2 -2
- package/src/modules/products/models/product.model.js +7 -0
- package/src/modules/products/models/variant.model.js +4 -0
- package/src/modules/products/router/categories.router.js +2 -2
- package/src/modules/products/router/products.router.js +14 -3
- package/src/modules/rents/controllers/routes/rents.routes.js +11 -0
- package/src/modules/rents/controllers/services/rents.services.js +193 -2
- package/src/modules/rents/models/rent.model.js +9 -0
- package/src/modules/rents/views/components/pages/Gant/GanttBar.vue +28 -11
- package/src/modules/rents/views/components/pages/Gant/GanttChart.vue +200 -40
- package/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue +2 -2
- package/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue +2 -2
- package/src/modules/rents/views/components/pages/Rents.vue +641 -142
- package/src/modules/rents/views/components/pages/RentsEdit.vue +44 -4
- package/src/modules/rents/views/router/rents.router.js +3 -3
- package/src/modules/rents/views/store/rents.store.js +1 -1
- package/src/modules/reports/components/pages/BackofficeReports.vue +3 -3
- package/src/modules/reports/router/reports.router.js +1 -1
- package/src/modules/spots/components/blocks/CardSpot.vue +6 -6
- package/src/modules/spots/components/pages/Spot.vue +2 -2
- package/src/modules/spots/components/pages/SpotEdit.vue +8 -6
- package/src/modules/spots/components/pages/Spots.vue +18 -24
- package/src/modules/spots/components/sections/WorktimeEdit.vue +7 -7
- package/src/modules/spots/router/spots.router.js +3 -3
- package/src/modules/wallet/views/components/blocks/CashDeposit.vue +1 -1
- package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +3 -3
- package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
- package/src/modules/wallet/views/components/pages/Wallet.vue +4 -4
- package/src/modules/wallet/views/router/wallet.router.js +1 -1
- package/src/styles/layout.scss +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js +0 -70
- package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js.map +0 -1
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.js +0 -336
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js.map +0 -1
|
@@ -1,101 +1,155 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
2
|
+
<div v-if="order && orderOrganization" class="pd-thin bg-white">
|
|
3
|
+
<div
|
|
4
|
+
v-if="order"
|
|
5
|
+
class="mn-b-thin pos-relative w-100 bg-main radius-medium pd-small"
|
|
6
|
+
>
|
|
7
|
+
<div class="mn-b-small flex-nowrap flex">
|
|
8
|
+
<p class="fw-medium p-regular">
|
|
9
|
+
Order No:
|
|
10
|
+
<span class="p-small opacity-50">#{{ order._id }}</span>
|
|
11
|
+
</p>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class="flex-nowrap flex gap-thin pos-relative">
|
|
15
|
+
<div v-for="(status, index) in statuses" :key="index" class="w-20">
|
|
16
|
+
<div
|
|
17
|
+
class="bg-white br-anim br-glow radius-extra h-1r w-100"
|
|
18
|
+
:class="
|
|
19
|
+
({ 'br-glow-anim': isActiveStatus(index) },
|
|
20
|
+
{ 'opacity-50': !isActiveStatus(index) },
|
|
21
|
+
{
|
|
22
|
+
blink:
|
|
23
|
+
order.status === status.value && getNextStatus(order.status),
|
|
24
|
+
})
|
|
25
|
+
"
|
|
26
|
+
/>
|
|
27
|
+
<div
|
|
28
|
+
:class="{ 'opacity-50': !isActiveStatus(index) }"
|
|
29
|
+
class="mn-t-thin p-small fw-medium uppercase"
|
|
30
|
+
>
|
|
31
|
+
{{ status.label }}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<Popup
|
|
38
|
+
title="Payment Status"
|
|
39
|
+
@close-popup="closePaymentPopup"
|
|
31
40
|
:isPopupOpen="isOpenPaymentPopup"
|
|
32
|
-
|
|
41
|
+
:align="isPhone() || isTablet() ? 'bottom center' : 'center center'"
|
|
42
|
+
class="bg-light radius-medium pd-small"
|
|
43
|
+
:class="
|
|
44
|
+
isPhone() || isTablet()
|
|
45
|
+
? 'w-100 radius-zero radius-tr-medium radius-tl-medium'
|
|
46
|
+
: 'w-min-30r w-max-30r'
|
|
47
|
+
"
|
|
33
48
|
>
|
|
34
|
-
|
|
49
|
+
<Select
|
|
35
50
|
v-model:select="selectedPayments.type"
|
|
36
51
|
:property="'value'"
|
|
37
52
|
label="Type"
|
|
38
53
|
:options="[
|
|
39
|
-
{name: 'Cash',
|
|
40
|
-
{name: 'Card', value: 'card'},
|
|
41
|
-
{name: 'Bank Transfer', value: 'bank'},
|
|
54
|
+
{ name: 'Cash', value: 'cash' },
|
|
55
|
+
{ name: 'Card', value: 'card' },
|
|
56
|
+
{ name: 'Bank Transfer', value: 'bank' },
|
|
42
57
|
]"
|
|
43
|
-
placeholder="Select type of payment"
|
|
58
|
+
placeholder="Select type of payment"
|
|
44
59
|
size="small"
|
|
45
60
|
class="bg-white mn-b-thin pd-regular radius-small w-100"
|
|
46
61
|
/>
|
|
47
62
|
|
|
48
|
-
<Select
|
|
63
|
+
<Select
|
|
49
64
|
v-model:select="selectedPayments.status"
|
|
50
65
|
:property="'value'"
|
|
51
66
|
label="Status"
|
|
52
67
|
:options="[
|
|
53
|
-
{name: 'Unpaid',
|
|
54
|
-
{name: 'Paid', value: 'paid'},
|
|
55
|
-
{name: 'Refunded', value: 'refunded'},
|
|
68
|
+
{ name: 'Unpaid', value: 'unpaid' },
|
|
69
|
+
{ name: 'Paid', value: 'paid' },
|
|
70
|
+
{ name: 'Refunded', value: 'refunded' },
|
|
56
71
|
]"
|
|
57
|
-
placeholder="Select status of payment"
|
|
72
|
+
placeholder="Select status of payment"
|
|
58
73
|
size="small"
|
|
59
74
|
class="bg-white mn-b-small pd-regular radius-small w-100"
|
|
60
75
|
/>
|
|
61
76
|
|
|
77
|
+
<Button :submit="changePaymentStatus" class="t-white w-100 bg-second">
|
|
78
|
+
<span>Change Status</span>
|
|
79
|
+
</Button>
|
|
80
|
+
</Popup>
|
|
62
81
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</Popup>
|
|
67
|
-
|
|
68
|
-
<Popup
|
|
69
|
-
title="Change order status"
|
|
70
|
-
@close-popup="closeStatusPopup"
|
|
82
|
+
<Popup
|
|
83
|
+
title="Change order status"
|
|
84
|
+
@close-popup="closeStatusPopup"
|
|
71
85
|
:isPopupOpen="isOpeStatusPopup"
|
|
72
|
-
|
|
86
|
+
:align="isPhone() || isTablet() ? 'bottom center' : 'center center'"
|
|
87
|
+
class="bg-light radius-medium pd-small"
|
|
88
|
+
:class="
|
|
89
|
+
isPhone() || isTablet()
|
|
90
|
+
? 'w-100 radius-zero radius-tr-medium radius-tl-medium'
|
|
91
|
+
: 'w-min-30r w-max-30r'
|
|
92
|
+
"
|
|
73
93
|
>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
<!-- Добавить выбор примерного времени -->
|
|
95
|
+
|
|
96
|
+
<button
|
|
97
|
+
v-if="!order.status_history || order.status_history.length <= 1"
|
|
98
|
+
@click="openAddProductPopup"
|
|
99
|
+
class="w-100 mn-b-thin pd-small radius-small bg-white t-black fw-medium cursor-pointer hover:bg-main"
|
|
100
|
+
>
|
|
101
|
+
+ Add Product
|
|
102
|
+
</button>
|
|
103
|
+
|
|
104
|
+
<ul class="flex gap-thin flex-column mn-b-thin">
|
|
105
|
+
<CardOrderItem
|
|
106
|
+
v-for="(product, index) in order.positions"
|
|
107
|
+
:key="`${product._id}_${product.variant || 'no-variant'}_${index}`"
|
|
108
|
+
:editable="!order.status_history || order.status_history.length <= 1"
|
|
109
|
+
:productId="product._id"
|
|
110
|
+
:variantId="product.variant"
|
|
111
|
+
:images="product.images"
|
|
112
|
+
:name="product.name"
|
|
113
|
+
:quantity="product.quantity"
|
|
114
|
+
:unit="product.unit"
|
|
115
|
+
:dates="product.date"
|
|
116
|
+
:listing="product.listing"
|
|
117
|
+
:rentPeriod="product.rentPeriod || 'day'"
|
|
118
|
+
:price="product.price"
|
|
119
|
+
:increase="
|
|
120
|
+
() =>
|
|
121
|
+
orders.mutations.incrementItemQuantity(
|
|
122
|
+
order,
|
|
123
|
+
product._id,
|
|
124
|
+
product.variant,
|
|
125
|
+
)
|
|
126
|
+
"
|
|
127
|
+
:decrease="
|
|
128
|
+
() =>
|
|
129
|
+
orders.mutations.decrementItemQuantity(
|
|
130
|
+
order,
|
|
131
|
+
product._id,
|
|
132
|
+
product.variant,
|
|
133
|
+
)
|
|
134
|
+
"
|
|
135
|
+
:remove="
|
|
136
|
+
() =>
|
|
137
|
+
orders.mutations.removeProduct(
|
|
138
|
+
order,
|
|
139
|
+
product._id,
|
|
140
|
+
product.variant,
|
|
141
|
+
)
|
|
142
|
+
"
|
|
143
|
+
@updateRentDates="
|
|
144
|
+
(productId, variantId, dates) => {
|
|
145
|
+
const item = order.positions.find(p => p._id === productId && p.variant === variantId);
|
|
146
|
+
if (item) item.date = dates;
|
|
147
|
+
}
|
|
148
|
+
"
|
|
149
|
+
class="bg-white radius-small pd-small"
|
|
150
|
+
/>
|
|
97
151
|
</ul>
|
|
98
|
-
|
|
152
|
+
|
|
99
153
|
<PriceTotal
|
|
100
154
|
:totalPrice="cartTotalPrice"
|
|
101
155
|
:currency="returnCurrency()"
|
|
@@ -105,125 +159,235 @@
|
|
|
105
159
|
:vatRate="store.core.state.options?.orders?.vatRate || 0"
|
|
106
160
|
/>
|
|
107
161
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
162
|
+
<Button :submit="setNextStatus" class="t-white w-100 bg-second">
|
|
163
|
+
<span>
|
|
164
|
+
{{ "Confirm Changing to " + getNextStatus(order.status).label }}
|
|
165
|
+
</span>
|
|
166
|
+
</Button>
|
|
167
|
+
</Popup>
|
|
168
|
+
|
|
169
|
+
<!-- Add product popup -->
|
|
170
|
+
<Popup
|
|
171
|
+
@close-popup="closeAddProductPopup"
|
|
172
|
+
:isPopupOpen="isAddProductPopupOpen"
|
|
173
|
+
:align="isPhone() || isTablet() ? 'bottom center' : 'center center'"
|
|
174
|
+
class="bg-white flex flex-column radius-big pd-medium pos-relative"
|
|
175
|
+
:class="
|
|
176
|
+
isPhone() || isTablet()
|
|
177
|
+
? 'w-100 radius-zero radius-tr-medium radius-tl-medium h-max-80'
|
|
178
|
+
: 'w-min-30r w-max-30r'
|
|
179
|
+
"
|
|
180
|
+
>
|
|
181
|
+
<h3 class="mn-b-small">Add to order</h3>
|
|
182
|
+
<div class="bg-light h-max-100 mn-b-thin o-scroll pd-medium radius-big">
|
|
183
|
+
<Feed
|
|
184
|
+
:showLoadMore="false"
|
|
185
|
+
:search="{ placeholder: 'Search products...', class: 'bg-white mn-b-thin' }"
|
|
186
|
+
:states="{ empty: { title: 'No Products Found', description: 'Currently, there are no such products available.' }, skeleton: { hide: true } }"
|
|
187
|
+
:store="{ read: (options) => products.actions.read(options), state: null }"
|
|
188
|
+
:options="{ owner: order?.owner.target._id }"
|
|
189
|
+
v-slot="{ items }"
|
|
190
|
+
>
|
|
191
|
+
<CardOrderItem
|
|
192
|
+
v-for="(product, index) in items"
|
|
193
|
+
:key="`${product._id}_${index}`"
|
|
194
|
+
:editable="false"
|
|
195
|
+
:productId="product._id"
|
|
196
|
+
:images="product.images"
|
|
197
|
+
:name="product.name"
|
|
198
|
+
@click="() => selectProduct(product)"
|
|
199
|
+
class="bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer"
|
|
200
|
+
/>
|
|
201
|
+
</Feed>
|
|
202
|
+
</div>
|
|
203
|
+
</Popup>
|
|
204
|
+
|
|
205
|
+
<!-- Select variant popup -->
|
|
206
|
+
<Popup
|
|
207
|
+
title="Select variant"
|
|
208
|
+
@close-popup="closeAddVariantsPopup"
|
|
209
|
+
:isPopupOpen="isAddVariantsPopupOpen"
|
|
210
|
+
:align="isPhone() || isTablet() ? 'bottom center' : 'center center'"
|
|
211
|
+
class="bg-white w-100 radius-medium pd-medium"
|
|
212
|
+
:class="
|
|
213
|
+
isPhone() || isTablet()
|
|
214
|
+
? 'radius-zero radius-tr-medium radius-tl-medium'
|
|
215
|
+
: 'w-max-30r'
|
|
216
|
+
"
|
|
217
|
+
>
|
|
218
|
+
<Feed
|
|
219
|
+
:store="variants"
|
|
220
|
+
:options="{ product: selectedProduct?._id }"
|
|
221
|
+
:states="{ empty: { title: 'No variants', description: 'Create your first variant' } }"
|
|
222
|
+
v-slot="{ items }"
|
|
223
|
+
>
|
|
224
|
+
<div class="gap-thin flex flex-column">
|
|
225
|
+
<div
|
|
226
|
+
v-for="(variant, index) in items"
|
|
227
|
+
:key="index"
|
|
228
|
+
@click="addVariantToOrder(variant)"
|
|
229
|
+
class="w-100 cursor-pointer hover:scale-[1.05] bg-light pd-small radius-small flex-v-center flex-nowrap flex gap-thin"
|
|
230
|
+
>
|
|
231
|
+
<div v-if="variant.images && variant.images.length" class="aspect-1x1 h-3r radius-small o-hidden">
|
|
232
|
+
<img :src="(FILE_SERVER_URL || '') + variant.images[0]" class="w-100 h-100 object-fit-cover" />
|
|
233
|
+
</div>
|
|
234
|
+
<div>
|
|
235
|
+
<p class="fw-medium">{{ variant.name || 'Default variant' }}</p>
|
|
236
|
+
<p v-if="variant.attributes && variant.attributes.length" class="t-small opacity-50">
|
|
237
|
+
{{ variant.attributes.map(attr => `${attr.name}: ${attr.value}`).join(', ') }}
|
|
238
|
+
</p>
|
|
239
|
+
</div>
|
|
240
|
+
<p class="mn-l-auto">{{ formatPrice(variant.price || variant.cost) }}</p>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
</Feed>
|
|
244
|
+
</Popup>
|
|
245
|
+
|
|
246
|
+
<div v-if="order" class="gap-thin cols-2 tablet:cols-1 mobile:cols-1">
|
|
247
|
+
<div class="w-100">
|
|
248
|
+
<CardOrganization
|
|
249
|
+
v-if="orderOrganization[0]"
|
|
250
|
+
:organization="orderOrganization[0]"
|
|
251
|
+
:showRating="true"
|
|
252
|
+
:showFollowers="false"
|
|
253
|
+
:showProducts="false"
|
|
254
|
+
class="bg-light mn-b-thin w-100 o-hidden radius-medium pd-small"
|
|
255
|
+
/>
|
|
129
256
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
257
|
+
<div class="mn-b-thin bg-light w-100 o-hidden radius-medium">
|
|
258
|
+
<div class="pd-small flex-nowrap flex">
|
|
259
|
+
<div class="mn-r-auto">
|
|
260
|
+
<span class="d-block fw-medium p-regular mn-b-thin">
|
|
261
|
+
Order is
|
|
262
|
+
</span>
|
|
263
|
+
<span class="lh-[0.75] h2 d-block mn-b-small">
|
|
264
|
+
{{ statusLabel(order.status) }}
|
|
265
|
+
</span>
|
|
266
|
+
<p class="pd-thin radius-extra bg-black t-white w-max">
|
|
267
|
+
{{ formatDate(order.updatedAt, { language: locale }) }}
|
|
268
|
+
</p>
|
|
269
|
+
</div>
|
|
270
|
+
<!-- <div class="t-right">
|
|
140
271
|
Cancel order<br>
|
|
141
272
|
Exchange item
|
|
142
273
|
<hr class="mn-b-thin mn-t-thin">
|
|
143
274
|
For Delivery Queries Contact Us
|
|
144
275
|
|
|
145
276
|
</div> -->
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
277
|
+
</div>
|
|
278
|
+
|
|
279
|
+
<div
|
|
280
|
+
v-if="order.customer.target?.number"
|
|
281
|
+
class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10"
|
|
282
|
+
>
|
|
283
|
+
<p class="w-100 fw-medium p-regular">Phone</p>
|
|
284
|
+
|
|
285
|
+
<p class="w-100 t-right">
|
|
286
|
+
{{
|
|
287
|
+
formatPhone(order.customer.target?.number) || "Not specified"
|
|
288
|
+
}}
|
|
289
|
+
</p>
|
|
290
|
+
</div>
|
|
291
|
+
|
|
292
|
+
<div
|
|
293
|
+
class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10"
|
|
294
|
+
>
|
|
295
|
+
<p class="fw-medium p-regular">Address</p>
|
|
296
|
+
|
|
297
|
+
<p class="w-100 t-right">
|
|
298
|
+
{{
|
|
299
|
+
order.delivery.address ||
|
|
300
|
+
order.delivery.spot[0]?.profile.name +
|
|
301
|
+
(order.delivery.spot[0]?.address
|
|
302
|
+
? ", " + order.delivery.spot[0].address
|
|
303
|
+
: "") ||
|
|
304
|
+
"Not specified"
|
|
305
|
+
}}
|
|
306
|
+
</p>
|
|
307
|
+
</div>
|
|
308
|
+
|
|
309
|
+
<div
|
|
310
|
+
v-if="order.comment"
|
|
311
|
+
class="pos-relative radius-thin mn-t-zero mn-thin bg-fifth-transp-10 pd-small"
|
|
312
|
+
>
|
|
313
|
+
<p class="mn-b-thin opacity-50 uppercase p-small fw-medium">
|
|
314
|
+
Comment
|
|
315
|
+
</p>
|
|
316
|
+
<p>{{ order.comment }}</p>
|
|
317
|
+
</div>
|
|
318
|
+
|
|
319
|
+
<div
|
|
320
|
+
class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10"
|
|
321
|
+
>
|
|
322
|
+
<p class="fw-medium p-regular">Delivery</p>
|
|
323
|
+
|
|
324
|
+
<p class="w-100 t-right">
|
|
325
|
+
{{ order.delivery.type ? order.delivery.type : "Not specified" }}
|
|
326
|
+
</p>
|
|
327
|
+
</div>
|
|
328
|
+
|
|
329
|
+
<div
|
|
330
|
+
class="pd-small flex flex-nowrap flex-v-center br-t-1px br-black-transp-10"
|
|
331
|
+
>
|
|
332
|
+
<p class="mn-r-auto fw-medium p-regular">Payment</p>
|
|
333
|
+
|
|
334
|
+
<p class="w-max t-right">
|
|
335
|
+
{{ order.payment.type ? order.payment.type : "Not specified" }}
|
|
336
|
+
</p>
|
|
337
|
+
|
|
338
|
+
<p
|
|
339
|
+
@click="
|
|
340
|
+
route.meta.context !== 'user' && route.meta.context !== 'root'
|
|
341
|
+
? openPaymentPopup()
|
|
342
|
+
: console.log('Context:', route.meta.context)
|
|
343
|
+
"
|
|
344
|
+
class="w-max pd-thin radius-small mn-l-thin cursor-pointer hover:bg-black t-right capitalize"
|
|
345
|
+
:class="paymentStatusClass(order.payment.status)"
|
|
346
|
+
>
|
|
347
|
+
{{ order.payment.status ? order.payment.status : "Unpaid" }}
|
|
348
|
+
</p>
|
|
349
|
+
</div>
|
|
350
|
+
</div>
|
|
351
|
+
|
|
352
|
+
<div
|
|
353
|
+
v-if="route.meta.context !== 'user' && route.meta.context !== 'root'"
|
|
354
|
+
class="o-y-scroll scroll-hide bg-light pd-thin mn-b-thin pd-thin radius-medium flex-nowrap flex"
|
|
355
|
+
>
|
|
356
|
+
<div
|
|
357
|
+
class="flex-child-default mn-r-small w-max flex-v-center gap-thin flex-nowrap flex pd-thin radius-small bg-light-transp-20"
|
|
358
|
+
>
|
|
359
|
+
<IconTime class="i-medium opacity-50" fill="rgb(var(--black)" />
|
|
360
|
+
<p class="fw-medium mn-r-auto">
|
|
361
|
+
<span class="p-small opacity-50">Estimated Reaction</span>
|
|
362
|
+
<br />
|
|
363
|
+
{{ formatDate(order.deadline, { language: locale }) }}
|
|
364
|
+
</p>
|
|
365
|
+
</div>
|
|
366
|
+
|
|
367
|
+
<button
|
|
368
|
+
v-if="getNextStatus(order.status)"
|
|
369
|
+
@click="openStatusPopup"
|
|
370
|
+
class="flex-child-default mn-l-auto bg-black t-white button radius-small"
|
|
371
|
+
>
|
|
372
|
+
Mark as {{ getNextStatus(order.status).label }}
|
|
373
|
+
</button>
|
|
374
|
+
</div>
|
|
375
|
+
|
|
376
|
+
<div class="bg-light radius-medium pd-small mn-r-bold w-100">
|
|
377
|
+
<h3 class="mn-b-small">Chat With Us</h3>
|
|
378
|
+
|
|
379
|
+
<ChatPage
|
|
380
|
+
:username="
|
|
381
|
+
['Order', 'UserOrder'].includes(route.name)
|
|
382
|
+
? order.user?.name || 'User'
|
|
383
|
+
: 'Support'
|
|
384
|
+
"
|
|
385
|
+
:user="auth.state.user._id"
|
|
386
|
+
:chatID="route.params.order"
|
|
387
|
+
class="radius-small bs-black bg-light o-hidden"
|
|
388
|
+
/>
|
|
389
|
+
</div>
|
|
390
|
+
<!-- <StatusHistory
|
|
227
391
|
v-if="orders.state.current.status_history"
|
|
228
392
|
:statuses="statuses"
|
|
229
393
|
:statusHistory="orders.state.current.status_history"
|
|
@@ -231,7 +395,7 @@
|
|
|
231
395
|
:edit="route.name === 'Order Edit'"
|
|
232
396
|
/> -->
|
|
233
397
|
|
|
234
|
-
|
|
398
|
+
<!-- <button
|
|
235
399
|
@click="requestPayment(order)"
|
|
236
400
|
v-if="
|
|
237
401
|
order.status === 'Подтвержден'
|
|
@@ -240,272 +404,495 @@
|
|
|
240
404
|
&& payment.Status !== 'REFUNDED'
|
|
241
405
|
"
|
|
242
406
|
class='w-100 button'>Оплатить заказ</button> -->
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
407
|
+
<span
|
|
408
|
+
class="opacity-50"
|
|
409
|
+
v-if="payment && payment.Status === 'CONFIRMED'"
|
|
410
|
+
>
|
|
411
|
+
Paid
|
|
412
|
+
</span>
|
|
413
|
+
</div>
|
|
414
|
+
|
|
415
|
+
<div class="w-100">
|
|
416
|
+
<!-- Customer Card -->
|
|
417
|
+
<div class="bg-light radius-medium pd-small mn-b-thin w-100">
|
|
418
|
+
<h3 class="mn-b-small">Customer</h3>
|
|
419
|
+
|
|
420
|
+
<router-link
|
|
421
|
+
v-if="
|
|
422
|
+
route.meta.context !== 'user' &&
|
|
423
|
+
route.meta.context !== 'root' &&
|
|
424
|
+
order.customer?.target
|
|
425
|
+
"
|
|
426
|
+
:to="customerLink"
|
|
427
|
+
class="d-block w-100 pd-small bg-white radius-small"
|
|
428
|
+
>
|
|
429
|
+
<CardUser
|
|
430
|
+
:user="order.customer.target"
|
|
431
|
+
:photo="order.customer.target.photo"
|
|
432
|
+
:name="order.customer.target.profile?.name || 'No name'"
|
|
433
|
+
:phone="formatPhone(order.customer.target.number || order.customer.target.phone)"
|
|
434
|
+
>
|
|
435
|
+
<template #actions>
|
|
436
|
+
<a
|
|
437
|
+
v-if="customerContact"
|
|
438
|
+
:href="customerContact.url"
|
|
439
|
+
:target="customerContact.type !== 'phone' ? '_blank' : null"
|
|
440
|
+
@click.stop
|
|
441
|
+
class="d-inline-flex flex-shrink-0 pd-micro pd-l-thin pd-r-thin radius-extra bg-second p-small fw-medium t-white flex-v-center gap-micro"
|
|
442
|
+
>
|
|
443
|
+
<component :is="customerContact.icon" class="i-small" />
|
|
444
|
+
{{
|
|
445
|
+
customerContact.type === "phone"
|
|
446
|
+
? customerContact.value
|
|
447
|
+
: customerContact.type
|
|
448
|
+
}}
|
|
449
|
+
</a>
|
|
450
|
+
</template>
|
|
451
|
+
</CardUser>
|
|
452
|
+
</router-link>
|
|
453
|
+
</div>
|
|
454
|
+
|
|
455
|
+
<div class="bg-light radius-medium pd-small w-100">
|
|
456
|
+
<h3 class="mn-b-small">Order Summary</h3>
|
|
457
|
+
|
|
458
|
+
<ul class="flex gap-thin flex-column mn-b-thin">
|
|
459
|
+
<CardOrderItem
|
|
460
|
+
v-for="(product, index) in order.positions"
|
|
461
|
+
:key="`${product._id}_${product.variant || 'no-variant'}_${index}`"
|
|
462
|
+
:editable="false"
|
|
463
|
+
:productId="product._id"
|
|
464
|
+
:variantId="product.variant"
|
|
465
|
+
:images="product.images"
|
|
466
|
+
:name="product.name"
|
|
467
|
+
:quantity="product.quantity"
|
|
468
|
+
:unit="product.unit"
|
|
469
|
+
:dates="product.date"
|
|
470
|
+
:listing="product.listing"
|
|
471
|
+
:rentPeriod="product.rentPeriod || 'day'"
|
|
472
|
+
:price="product.price"
|
|
473
|
+
class="bg-white radius-small pd-small"
|
|
474
|
+
/>
|
|
475
|
+
</ul>
|
|
476
|
+
|
|
477
|
+
<PriceTotal
|
|
478
|
+
:totalPrice="cartTotalPrice"
|
|
479
|
+
:deliveryRate="deliveryCost"
|
|
480
|
+
:currency="returnCurrency()"
|
|
481
|
+
:showFees="store.core.state.options?.orders?.showFees"
|
|
482
|
+
:feesRate="store.core.state.options?.orders?.feesRate || 0"
|
|
483
|
+
:showVat="store.core.state.options?.orders?.showVat"
|
|
484
|
+
:vatRate="store.core.state.options?.orders?.vatRate || 0"
|
|
485
|
+
:showDeliveryFee="store.core.state.options?.orders.showDeliveryFee"
|
|
486
|
+
/>
|
|
487
|
+
</div>
|
|
488
|
+
</div>
|
|
489
|
+
</div>
|
|
490
|
+
</div>
|
|
284
491
|
</template>
|
|
285
492
|
|
|
286
|
-
|
|
287
493
|
<script setup="props">
|
|
288
|
-
|
|
289
|
-
|
|
494
|
+
import { computed, ref, onMounted, getCurrentInstance } from "vue";
|
|
495
|
+
import { useRouter, useRoute } from "vue-router";
|
|
496
|
+
|
|
497
|
+
import Button from "@martyrs/src/components/Button/Button.vue";
|
|
498
|
+
import Select from "@martyrs/src/components/Select/Select.vue";
|
|
499
|
+
import Popup from "@martyrs/src/components/Popup/Popup.vue";
|
|
500
|
+
import Feed from "@martyrs/src/components/Feed/Feed.vue";
|
|
501
|
+
|
|
502
|
+
import IconTime from "@martyrs/src/modules/icons/entities/IconTime.vue";
|
|
503
|
+
import { calcRentTotalPrice } from "@martyrs/src/modules/orders/utils/rent-price.js";
|
|
504
|
+
|
|
505
|
+
// Block
|
|
506
|
+
import CardOrderItem from "@martyrs/src/modules/orders/components/blocks/CardOrderItem.vue";
|
|
507
|
+
import CardOrganization from "@martyrs/src/modules/organizations/components/blocks/CardOrganization.vue";
|
|
508
|
+
import CardUser from "@martyrs/src/modules/core/views/components/blocks/CardUser.vue";
|
|
509
|
+
import PlaceholderUserpic from "@martyrs/src/modules/icons/placeholders/PlaceholderUserpic.vue";
|
|
510
|
+
import IconPhone from "@martyrs/src/modules/icons/entities/IconPhone.vue";
|
|
511
|
+
import IconWhatsapp from "@martyrs/src/modules/icons/socials/whatsapp.vue";
|
|
512
|
+
import IconTelegram from "@martyrs/src/modules/icons/socials/telegram.vue";
|
|
513
|
+
import IconLine from "@martyrs/src/modules/icons/socials/line.vue";
|
|
514
|
+
import IconInstagram from "@martyrs/src/modules/icons/socials/instagram.vue";
|
|
515
|
+
import IconFacebook from "@martyrs/src/modules/icons/socials/facebook.vue";
|
|
516
|
+
|
|
517
|
+
import ChatPage from "@martyrs/src/modules/chats/components/pages/ChatPage.vue";
|
|
518
|
+
|
|
519
|
+
import StatusHistory from "@martyrs/src/modules/orders/components/blocks/StatusHistory.vue";
|
|
520
|
+
import PriceTotal from "@martyrs/src/modules/orders/components/elements/PriceTotal.vue";
|
|
521
|
+
import FormPayment from "@martyrs/src/modules/orders/components/sections/FormPayment.vue";
|
|
522
|
+
|
|
523
|
+
import { useStore } from "@martyrs/src/modules/core/views/store/core.store.js";
|
|
524
|
+
import * as auth from "@martyrs/src/modules/auth/views/store/auth.js";
|
|
525
|
+
import * as orders from "@martyrs/src/modules/orders/store/orders.js";
|
|
526
|
+
import * as products from "@martyrs/src/modules/products/store/products.js";
|
|
527
|
+
import * as organizations from "@martyrs/src/modules/organizations/store/organizations.js";
|
|
528
|
+
import variants from "@martyrs/src/modules/products/store/variants.store.js";
|
|
529
|
+
|
|
530
|
+
import { useI18n } from "vue-i18n";
|
|
531
|
+
import { useGlobalMixins } from "@martyrs/src/modules/core/views/mixins/mixins.js";
|
|
532
|
+
|
|
533
|
+
const store = useStore();
|
|
534
|
+
const { proxy } = getCurrentInstance();
|
|
535
|
+
|
|
536
|
+
const { locale } = useI18n();
|
|
537
|
+
const { returnCurrency, isPhone, isTablet, formatPhone, formatDate, formatPrice } = useGlobalMixins();
|
|
538
|
+
|
|
539
|
+
const router = useRouter();
|
|
540
|
+
const route = useRoute();
|
|
541
|
+
|
|
542
|
+
const order = ref(null);
|
|
543
|
+
const productsOrganization = ref(null);
|
|
544
|
+
const orderOrganization = ref(null);
|
|
545
|
+
|
|
546
|
+
const statuses = store.core.state.options?.orders?.statuses || [];
|
|
547
|
+
|
|
548
|
+
if (
|
|
549
|
+
route.meta.context === "user" &&
|
|
550
|
+
auth.state.user &&
|
|
551
|
+
route.params._id !== auth.state.user?._id &&
|
|
552
|
+
!auth.state.access?.roles?.includes("ROLE_MODERATOR") &&
|
|
553
|
+
!auth.state.access?.roles?.includes("ROLE_ADMIN")
|
|
554
|
+
) {
|
|
555
|
+
router.push("/401");
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
const isOpeStatusPopup = ref(false);
|
|
559
|
+
const selectedMember = ref(null);
|
|
290
560
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
561
|
+
function openStatusPopup(member) {
|
|
562
|
+
isOpeStatusPopup.value = true;
|
|
563
|
+
if (typeof member === "number") selectedMember.value = member;
|
|
564
|
+
}
|
|
294
565
|
|
|
295
|
-
|
|
566
|
+
function closeStatusPopup() {
|
|
567
|
+
isOpeStatusPopup.value = false;
|
|
568
|
+
selectedMember.value = null;
|
|
569
|
+
}
|
|
296
570
|
|
|
297
|
-
|
|
298
|
-
import CardOrderItem from '@martyrs/src/modules/orders/components/blocks/CardOrderItem.vue'
|
|
299
|
-
import CardOrganization from '@martyrs/src/modules/organizations/components/blocks/CardOrganization.vue'
|
|
571
|
+
const isOpenPaymentPopup = ref(false);
|
|
300
572
|
|
|
301
|
-
|
|
573
|
+
const selectedPayments = ref({
|
|
574
|
+
type: null,
|
|
575
|
+
status: null,
|
|
576
|
+
});
|
|
302
577
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
578
|
+
function openPaymentPopup() {
|
|
579
|
+
selectedPayments.value.type = order.value.payment.type;
|
|
580
|
+
selectedPayments.value.status = order.value.payment.status;
|
|
306
581
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
import * as orders from '@martyrs/src/modules/orders/store/orders.js'
|
|
310
|
-
import * as products from '@martyrs/src/modules/products/store/products.js'
|
|
311
|
-
import * as organizations from '@martyrs/src/modules/organizations/store/organizations.js'
|
|
582
|
+
isOpenPaymentPopup.value = true;
|
|
583
|
+
}
|
|
312
584
|
|
|
313
|
-
|
|
314
|
-
|
|
585
|
+
function closePaymentPopup() {
|
|
586
|
+
isOpenPaymentPopup.value = false;
|
|
587
|
+
}
|
|
315
588
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
589
|
+
// Add product to order
|
|
590
|
+
const isAddProductPopupOpen = ref(false);
|
|
591
|
+
const isAddVariantsPopupOpen = ref(false);
|
|
592
|
+
const selectedProduct = ref(null);
|
|
320
593
|
|
|
321
|
-
|
|
322
|
-
|
|
594
|
+
function openAddProductPopup() {
|
|
595
|
+
isAddProductPopupOpen.value = true;
|
|
596
|
+
}
|
|
323
597
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
598
|
+
function closeAddProductPopup() {
|
|
599
|
+
isAddProductPopupOpen.value = false;
|
|
600
|
+
}
|
|
327
601
|
|
|
328
|
-
|
|
329
|
-
|
|
602
|
+
function closeAddVariantsPopup() {
|
|
603
|
+
isAddVariantsPopupOpen.value = false;
|
|
604
|
+
selectedProduct.value = null;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
function selectProduct(product) {
|
|
608
|
+
selectedProduct.value = product;
|
|
609
|
+
closeAddProductPopup();
|
|
330
610
|
|
|
331
|
-
if (
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
!auth.state.access?.roles?.includes('ROLE_MODERATOR') &&
|
|
335
|
-
!auth.state.access?.roles?.includes('ROLE_ADMIN')) {
|
|
336
|
-
router.push('/401');
|
|
611
|
+
if (product.variants && product.variants.length === 1) {
|
|
612
|
+
addVariantToOrder(product.variants[0]);
|
|
613
|
+
return;
|
|
337
614
|
}
|
|
338
615
|
|
|
339
|
-
|
|
340
|
-
|
|
616
|
+
isAddVariantsPopupOpen.value = true;
|
|
617
|
+
}
|
|
341
618
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}
|
|
619
|
+
function formatProductName(product, variant) {
|
|
620
|
+
if (!variant || product.variants?.length === 1 && !(variant.attributes?.length))
|
|
621
|
+
return product.name;
|
|
346
622
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
623
|
+
const attrs = variant.attributes?.map(a => a.value).filter(Boolean);
|
|
624
|
+
return attrs?.length
|
|
625
|
+
? `${product.name} / ${attrs.join(' / ')}`
|
|
626
|
+
: `${product.name} / ${variant.name}`;
|
|
627
|
+
}
|
|
351
628
|
|
|
352
|
-
|
|
629
|
+
async function addVariantToOrder(variant) {
|
|
630
|
+
try {
|
|
631
|
+
let selectedDates = null;
|
|
632
|
+
|
|
633
|
+
if (selectedProduct.value.listing === 'rent') {
|
|
634
|
+
const rentPeriod = selectedProduct.value.rentPeriod || 'day'
|
|
635
|
+
const enableTime = ['hour', '4hours', 'flat'].includes(rentPeriod)
|
|
636
|
+
selectedDates = await proxy.$dateSelector(
|
|
637
|
+
selectedProduct.value._id,
|
|
638
|
+
variant._id,
|
|
639
|
+
1,
|
|
640
|
+
variant.price || selectedProduct.value.price,
|
|
641
|
+
{ enableTime, periodType: rentPeriod }
|
|
642
|
+
);
|
|
643
|
+
|
|
644
|
+
if (!selectedDates) return;
|
|
645
|
+
}
|
|
353
646
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
647
|
+
const position = {
|
|
648
|
+
_id: selectedProduct.value._id,
|
|
649
|
+
images: variant.images?.length > 0 ? variant.images : selectedProduct.value.images,
|
|
650
|
+
name: formatProductName(selectedProduct.value, variant),
|
|
651
|
+
listing: selectedProduct.value.listing,
|
|
652
|
+
price: variant.price || selectedProduct.value.price,
|
|
653
|
+
quantity: 1,
|
|
654
|
+
unit: variant.unit || selectedProduct.value.unit,
|
|
655
|
+
date: selectedDates,
|
|
656
|
+
rentPeriod: selectedProduct.value.rentPeriod || 'day',
|
|
657
|
+
variant: variant._id,
|
|
658
|
+
org_id: order.value.owner.target._id
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
order.value.positions.push(position);
|
|
662
|
+
closeAddVariantsPopup();
|
|
663
|
+
} catch (error) {
|
|
664
|
+
console.error('Error adding variant to order:', error);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
358
667
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
668
|
+
onMounted(async () => {
|
|
669
|
+
order.value = await orders.actions.read({ _id: route.params.order });
|
|
670
|
+
order.value = order.value[0];
|
|
362
671
|
|
|
363
|
-
|
|
364
|
-
|
|
672
|
+
orderOrganization.value = await organizations.actions.read({
|
|
673
|
+
_id: order.value?.owner.target._id,
|
|
674
|
+
location: store.core.state.position?.location,
|
|
675
|
+
lookup: ["spots"],
|
|
676
|
+
});
|
|
677
|
+
});
|
|
365
678
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
679
|
+
const deliveryCost = computed(() => {
|
|
680
|
+
const type = orders.state.current.delivery.type;
|
|
681
|
+
const distance = orderOrganization.value[0]?.distance || 0;
|
|
682
|
+
const config = store.core.state.options?.orders?.delivery_formula || {};
|
|
369
683
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
order.value = order.value[0]
|
|
684
|
+
return orders.getters.getDeliveryPrice(type, distance, config);
|
|
685
|
+
});
|
|
373
686
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
});
|
|
687
|
+
function statusLabel(value) {
|
|
688
|
+
const found = statuses.find(s => s.value === value)
|
|
689
|
+
return found ? found.label : value
|
|
690
|
+
}
|
|
379
691
|
|
|
380
|
-
|
|
692
|
+
function paymentStatusClass(status) {
|
|
693
|
+
switch (status) {
|
|
694
|
+
case "paid":
|
|
695
|
+
return "bg-green t-white";
|
|
696
|
+
case "refunded":
|
|
697
|
+
return "bg-second t-white";
|
|
698
|
+
default:
|
|
699
|
+
return "bg-red t-white";
|
|
700
|
+
}
|
|
701
|
+
}
|
|
381
702
|
|
|
703
|
+
const socialUrlMap = {
|
|
704
|
+
whatsapp: (v) => `https://wa.me/${v.replace(/[^0-9]/g, "")}`,
|
|
705
|
+
telegram: (v) => `https://t.me/${v.replace("@", "")}`,
|
|
706
|
+
line: (v) => `https://line.me/ti/p/${v}`,
|
|
707
|
+
instagram: (v) => `https://instagram.com/${v.replace("@", "")}`,
|
|
708
|
+
facebook: (v) => `https://facebook.com/${v}`,
|
|
709
|
+
};
|
|
710
|
+
|
|
711
|
+
const socialIcons = {
|
|
712
|
+
whatsapp: IconWhatsapp,
|
|
713
|
+
telegram: IconTelegram,
|
|
714
|
+
line: IconLine,
|
|
715
|
+
instagram: IconInstagram,
|
|
716
|
+
facebook: IconFacebook,
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
function getSocialUrl(key, value) {
|
|
720
|
+
return socialUrlMap[key] ? socialUrlMap[key](value) : value;
|
|
721
|
+
}
|
|
382
722
|
|
|
383
|
-
const
|
|
384
|
-
const
|
|
385
|
-
|
|
386
|
-
const
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
723
|
+
const customerContact = computed(() => {
|
|
724
|
+
const customer = order.value?.customer?.target;
|
|
725
|
+
if (!customer) return null;
|
|
726
|
+
const socials = customer.socials || customer.data?.socials || {};
|
|
727
|
+
// Приоритет: whatsapp > telegram > line > phone
|
|
728
|
+
for (const key of ["whatsapp", "telegram", "line"]) {
|
|
729
|
+
if (socials[key])
|
|
730
|
+
return {
|
|
731
|
+
type: key,
|
|
732
|
+
value: socials[key],
|
|
733
|
+
url: getSocialUrl(key, socials[key]),
|
|
734
|
+
icon: socialIcons[key],
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
const phone = customer.phone || customer.data?.phone;
|
|
738
|
+
if (phone)
|
|
739
|
+
return {
|
|
740
|
+
type: "phone",
|
|
741
|
+
value: formatPhone(phone),
|
|
742
|
+
url: `tel:${phone}`,
|
|
743
|
+
icon: IconPhone,
|
|
744
|
+
};
|
|
745
|
+
return null;
|
|
746
|
+
});
|
|
747
|
+
|
|
748
|
+
const customerLink = computed(() => {
|
|
749
|
+
if (!order.value?.customer?.target?._id) return "";
|
|
750
|
+
const ctx = route.meta.context;
|
|
751
|
+
const customerId = order.value.customer.target._id;
|
|
752
|
+
if (ctx === "backoffice")
|
|
753
|
+
return `/backoffice/customers?customerId=${customerId}`;
|
|
754
|
+
if (ctx === "organization")
|
|
755
|
+
return `/organizations/${route.params._id}/customers?customerId=${customerId}`;
|
|
756
|
+
return `/customers?customerId=${customerId}`;
|
|
757
|
+
});
|
|
758
|
+
|
|
759
|
+
let cartTotalPrice = computed(() => {
|
|
760
|
+
return Number(
|
|
761
|
+
order.value?.positions.reduce((total, product) => {
|
|
762
|
+
// Если в ордере уже сохранён totalPrice позиции — используем его
|
|
763
|
+
if (product.totalPrice) {
|
|
764
|
+
return total + product.totalPrice;
|
|
765
|
+
}
|
|
766
|
+
// Fallback для старых ордеров без totalPrice
|
|
767
|
+
if (
|
|
768
|
+
product.listing === "rent" &&
|
|
769
|
+
product.date?.start &&
|
|
770
|
+
product.date?.end
|
|
771
|
+
) {
|
|
772
|
+
return (
|
|
773
|
+
total +
|
|
774
|
+
calcRentTotalPrice(
|
|
775
|
+
product.price,
|
|
776
|
+
product.quantity,
|
|
777
|
+
product.date.start,
|
|
778
|
+
product.date.end,
|
|
779
|
+
product.rentPeriod || "day",
|
|
780
|
+
)
|
|
781
|
+
);
|
|
399
782
|
} else {
|
|
400
|
-
// Для обычных товаров умножаем на количество
|
|
401
783
|
return total + product.price * (product.quantity || 1);
|
|
402
784
|
}
|
|
403
|
-
}, 0)
|
|
404
|
-
|
|
785
|
+
}, 0),
|
|
786
|
+
);
|
|
787
|
+
});
|
|
405
788
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
789
|
+
let cartTotalAmount = computed(() => {
|
|
790
|
+
return Number(
|
|
791
|
+
order.value?.positions.reduce((total, product) => {
|
|
409
792
|
return total + product.quantity;
|
|
410
|
-
}, 0)
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
// Функция установки нового статуса
|
|
414
|
-
async function setStatus (newStatus) {
|
|
415
|
-
orders.state.current.status = newStatus
|
|
793
|
+
}, 0),
|
|
794
|
+
);
|
|
795
|
+
});
|
|
416
796
|
|
|
417
|
-
|
|
418
|
-
|
|
797
|
+
// Функция установки нового статуса
|
|
798
|
+
async function setStatus(newStatus) {
|
|
799
|
+
orders.state.current.status = newStatus;
|
|
419
800
|
|
|
801
|
+
await orders.actions.update(orders.state.current);
|
|
802
|
+
}
|
|
420
803
|
|
|
421
|
-
|
|
422
|
-
|
|
804
|
+
function getNextStatus(currentStatus) {
|
|
805
|
+
const currentIndex = statuses.findIndex(
|
|
806
|
+
(status) => status.value === currentStatus,
|
|
807
|
+
);
|
|
423
808
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
809
|
+
if (currentIndex !== -1 && currentIndex + 1 < statuses.length) {
|
|
810
|
+
return statuses[currentIndex + 1];
|
|
811
|
+
}
|
|
812
|
+
return null; // If next status doesn't exist
|
|
813
|
+
}
|
|
429
814
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
815
|
+
const isActiveStatus = (index) => {
|
|
816
|
+
return statuses
|
|
817
|
+
.slice(index)
|
|
818
|
+
.some((status) => status.value === order.value?.status);
|
|
819
|
+
};
|
|
433
820
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
821
|
+
async function changePaymentStatus() {
|
|
822
|
+
if (selectedPayments.value.status && selectedPayments.value.type) {
|
|
823
|
+
orders.state.current.payment = selectedPayments.value;
|
|
437
824
|
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
closePaymentPopup()
|
|
825
|
+
await orders.actions.update(orders.state.current);
|
|
826
|
+
} else {
|
|
827
|
+
console.error("Payment status is void. Must handle somehow.");
|
|
444
828
|
}
|
|
445
829
|
|
|
446
|
-
|
|
447
|
-
|
|
830
|
+
closePaymentPopup();
|
|
831
|
+
}
|
|
448
832
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
// Обновляем позиции заказа из текущего состояния
|
|
453
|
-
orders.state.current.positions = order.value.positions;
|
|
833
|
+
async function setNextStatus() {
|
|
834
|
+
const nextStatus = getNextStatus(orders.state.current.status);
|
|
454
835
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
console.error('Next status is void. Must handle somehow.');
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
closeStatusPopup()
|
|
461
|
-
}
|
|
836
|
+
if (nextStatus) {
|
|
837
|
+
orders.state.current.status = nextStatus.value;
|
|
462
838
|
|
|
463
|
-
|
|
464
|
-
|
|
839
|
+
// Обновляем позиции заказа из текущего состояния
|
|
840
|
+
orders.state.current.positions = order.value.positions;
|
|
465
841
|
|
|
466
|
-
orders.state.current
|
|
842
|
+
await orders.actions.update(orders.state.current);
|
|
843
|
+
} else {
|
|
844
|
+
console.error("Next status is void. Must handle somehow.");
|
|
845
|
+
}
|
|
467
846
|
|
|
468
|
-
|
|
847
|
+
closeStatusPopup();
|
|
469
848
|
}
|
|
470
849
|
|
|
850
|
+
async function cancelOrder() {
|
|
851
|
+
alert();
|
|
471
852
|
|
|
472
|
-
|
|
473
|
-
alert()
|
|
853
|
+
orders.state.current.status = "canceled";
|
|
474
854
|
|
|
475
|
-
|
|
855
|
+
await orders.actions.update(orders.state.current);
|
|
856
|
+
}
|
|
476
857
|
|
|
477
|
-
|
|
478
|
-
|
|
858
|
+
async function confirmOrder() {
|
|
859
|
+
alert();
|
|
479
860
|
|
|
480
|
-
|
|
481
|
-
if (!distance) {
|
|
482
|
-
return null;
|
|
483
|
-
}
|
|
861
|
+
orders.state.current.status = "confirmed";
|
|
484
862
|
|
|
485
|
-
|
|
486
|
-
|
|
863
|
+
await orders.actions.update(orders.state.current);
|
|
864
|
+
}
|
|
487
865
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
866
|
+
function calculateDeliveryTime(distance, date) {
|
|
867
|
+
if (!distance) {
|
|
868
|
+
return null;
|
|
869
|
+
}
|
|
491
870
|
|
|
492
|
-
|
|
493
|
-
|
|
871
|
+
const basePreparationTime = 10 * 60 * 1000; // Convert to milliseconds
|
|
872
|
+
const travelTime = Math.ceil((15 + 5 + 3 * distance) / 5) * 5 * 60 * 1000;
|
|
494
873
|
|
|
874
|
+
// Преобразование даты начала в миллисекунды и добавление времени подготовки и доставки
|
|
875
|
+
const startTime = new Date(date).getTime();
|
|
876
|
+
const estimatedDeliveryTime = new Date(
|
|
877
|
+
startTime + basePreparationTime + travelTime,
|
|
878
|
+
);
|
|
495
879
|
|
|
880
|
+
return estimatedDeliveryTime;
|
|
881
|
+
}
|
|
496
882
|
</script>
|
|
497
883
|
|
|
498
884
|
<style lang="scss" scoped>
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
885
|
+
.blink {
|
|
886
|
+
animation: blink-animation 1s ease infinite;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
@keyframes blink-animation {
|
|
890
|
+
0%,
|
|
891
|
+
100% {
|
|
892
|
+
opacity: 1;
|
|
893
|
+
}
|
|
894
|
+
50% {
|
|
895
|
+
opacity: 0.8;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
</style>
|