@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
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<div class="bg-light pos-relative pd-medium radius-medium">
|
|
3
3
|
<div class="mn-b-small flex">
|
|
4
4
|
<div class="mn-r-auto">
|
|
5
|
-
<h3 class="mn-b-thin">{{ customer.profile?.name || customer.email || customer.phone || 'Unnamed Customer' }}</h3>
|
|
6
|
-
<p class="
|
|
5
|
+
<h3 class="mn-b-thin">{{ customer.profile?.name || customer.email || formatPhone(customer.phone) || 'Unnamed Customer' }}</h3>
|
|
6
|
+
<p class="opacity-50">{{ customer.email || formatPhone(customer.phone) }}</p>
|
|
7
7
|
</div>
|
|
8
8
|
<div class="flex-center">
|
|
9
9
|
<StatusBadge :value="customer.status" />
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
13
|
<div class="mn-b-thin pd-small bg-white radius-small flex">
|
|
14
|
-
<p class="mn-r-auto
|
|
14
|
+
<p class="mn-r-auto opacity-50">Source</p>
|
|
15
15
|
<p class="truncate">{{ customer.source || 'Unknown' }}</p>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<div class="mn-b-thin pd-small bg-white radius-small flex">
|
|
19
|
-
<p class="mn-r-auto
|
|
19
|
+
<p class="mn-r-auto opacity-50">Type</p>
|
|
20
20
|
<p>{{ customer.identity?.type || 'Visitor' }}</p>
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
23
|
<div class="mn-b-thin pd-small bg-white radius-small flex">
|
|
24
|
-
<p class="mn-r-auto
|
|
24
|
+
<p class="mn-r-auto opacity-50">ID</p>
|
|
25
25
|
<p>#{{ customer._id.slice(0, 4) + '...' + customer._id.slice(-4) }}</p>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</span>
|
|
36
36
|
<span
|
|
37
37
|
v-if="customer.tags.length > 3"
|
|
38
|
-
class="bg-light pd-nano radius-small t-small
|
|
38
|
+
class="bg-light pd-nano radius-small t-small opacity-50"
|
|
39
39
|
>
|
|
40
40
|
+{{ customer.tags.length - 3 }}
|
|
41
41
|
</span>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</div>
|
|
47
47
|
|
|
48
48
|
<div class="pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex">
|
|
49
|
-
<IconTime class="i-medium
|
|
49
|
+
<IconTime class="i-medium opacity-50" fill="rgb(var(--black))" />
|
|
50
50
|
<p class="fw-medium mn-r-auto">{{ formatDate(customer.lastActivity || customer.updatedAt) }}</p>
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
@@ -55,6 +55,9 @@
|
|
|
55
55
|
<script setup>
|
|
56
56
|
import StatusBadge from '@martyrs/src/components/Table/StatusBadge.vue';
|
|
57
57
|
import IconTime from '@martyrs/src/modules/icons/entities/IconTime.vue';
|
|
58
|
+
import { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js';
|
|
59
|
+
|
|
60
|
+
const { formatPhone } = useGlobalMixins();
|
|
58
61
|
|
|
59
62
|
defineProps({
|
|
60
63
|
customer: {
|
|
@@ -56,31 +56,31 @@
|
|
|
56
56
|
|
|
57
57
|
<div class="w-40">
|
|
58
58
|
<p class="mn-small w-100 fw-medium p-medium">
|
|
59
|
-
<span class="
|
|
59
|
+
<span class="opacity-50">Order:</span> №{{order._id.slice(0,8)}}
|
|
60
60
|
</p>
|
|
61
61
|
<p v-if="order.delivery.type === 'Post'" class="mn-medium w-100">
|
|
62
|
-
<span class="
|
|
62
|
+
<span class="opacity-50">Estimated shipping date:</span><br>{{DateToFormattedString(order.createdAt)}}
|
|
63
63
|
</p>
|
|
64
64
|
<p v-if="order.delivery.type === 'Courier'" class="mn-medium w-100">
|
|
65
|
-
<span class="
|
|
65
|
+
<span class="opacity-50">Shipping date:</span><br>{{DateToFormattedString2(order.createdAt)}}
|
|
66
66
|
</p>
|
|
67
67
|
<p v-if="order.delivery.type === 'Pickup'" class="mn-medium w-100">
|
|
68
|
-
<span class="
|
|
68
|
+
<span class="opacity-50">Type of delivery:</span><br>Pickup
|
|
69
69
|
</p>
|
|
70
70
|
<hr class="mn-medium">
|
|
71
71
|
|
|
72
72
|
<div :class="{'mn-semi': order.delivery.type == ''}" class="flex">
|
|
73
|
-
<p class="
|
|
73
|
+
<p class="opacity-50">In total</p>
|
|
74
74
|
<p>$ {{ cartTotalPrice }}</p>
|
|
75
75
|
</div>
|
|
76
76
|
<div v-if="order.delivery.type !== ''" class="mn-semi flex">
|
|
77
|
-
<p class="
|
|
77
|
+
<p class="opacity-50">Delivery</p>
|
|
78
78
|
<p v-if="order.delivery.type === 'Pickup'">Free</p>
|
|
79
79
|
<p v-if="order.delivery.type === 'Post'">$ 10</p>
|
|
80
80
|
<p v-if="order.delivery.type === 'Courier'">$ 20</p>
|
|
81
81
|
</div>
|
|
82
82
|
<div class="mn-semi intotal flex-bottom flex">
|
|
83
|
-
<p class="
|
|
83
|
+
<p class="opacity-50">In total to pay</p>
|
|
84
84
|
<p v-if="order.delivery.type === ''" class="p-medium fw-semi">$ {{ cartTotalPrice }}</p>
|
|
85
85
|
<p v-if="order.delivery.type === 'Pickup'" class="p-medium fw-semi">$ {{ cartTotalPrice}} ₽</p>
|
|
86
86
|
<p v-if="order.delivery.type === 'Courier'" class="p-medium fw-semi">$ {{ cartTotalPrice + 20 }}</p>
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
&& payment.Status !== 'REFUNDED'
|
|
97
97
|
"
|
|
98
98
|
class='w-100 button'>Оплатить заказ</button> -->
|
|
99
|
-
<span class="
|
|
99
|
+
<span class="opacity-50" v-if="payment && payment.Status === 'CONFIRMED'">Paid</span>
|
|
100
100
|
</div>
|
|
101
101
|
</div>
|
|
102
102
|
</div>
|
|
@@ -28,13 +28,18 @@
|
|
|
28
28
|
<div
|
|
29
29
|
v-if="index < 2 || (spoiler && index >= 2)"
|
|
30
30
|
:key="index"
|
|
31
|
-
class="w-100 flex"
|
|
31
|
+
class="w-100 flex-v-center flex"
|
|
32
32
|
>
|
|
33
|
-
<
|
|
34
|
-
|
|
33
|
+
<div class="mn-r-auto">
|
|
34
|
+
<p>{{ position.name }}</p>
|
|
35
|
+
<p v-if="position.listing === 'rent' && position.date?.start && position.date?.end" class="mn-t-thin p-small opacity-50">
|
|
36
|
+
{{ positionRentLabel(position) }}
|
|
37
|
+
</p>
|
|
38
|
+
</div>
|
|
39
|
+
<p class="t-right flex-shrink-0">
|
|
35
40
|
{{ position.quantity }} {{ position.type }}
|
|
36
41
|
x
|
|
37
|
-
<span class="
|
|
42
|
+
<span class="opacity-50">{{ currency }} {{ position.price }}</span>
|
|
38
43
|
</p>
|
|
39
44
|
</div>
|
|
40
45
|
</transition>
|
|
@@ -51,24 +56,26 @@
|
|
|
51
56
|
</div>
|
|
52
57
|
|
|
53
58
|
<div class="pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex">
|
|
54
|
-
<IconTime class="i-medium
|
|
59
|
+
<IconTime class="i-medium opacity-50" fill="rgb(var(--black)" />
|
|
55
60
|
<p class="fw-medium mn-r-auto">{{formatDate(order.deadline)}}</p>
|
|
56
61
|
|
|
57
|
-
<span
|
|
58
|
-
class="flex-child flex-shrink-0
|
|
62
|
+
<span
|
|
63
|
+
class="flex-child flex-shrink-0 w-max fw-medium radius-thin pd-thin"
|
|
64
|
+
:class="orderStatusClass(order.status)"
|
|
59
65
|
>
|
|
60
|
-
{{order.status}}
|
|
66
|
+
{{statusLabel(order.status)}}
|
|
61
67
|
</span>
|
|
62
68
|
|
|
63
|
-
<span
|
|
64
|
-
class="flex-child flex-shrink-0 capitalize w-max fw-medium radius-
|
|
69
|
+
<span
|
|
70
|
+
class="flex-child flex-shrink-0 capitalize w-max fw-medium radius-thin pd-thin"
|
|
71
|
+
:class="paymentStatusClass(order.payment.status)"
|
|
65
72
|
>
|
|
66
|
-
{{order.payment.status || '
|
|
73
|
+
{{order.payment.status || 'Unpaid'}}
|
|
67
74
|
</span>
|
|
68
75
|
</div>
|
|
69
76
|
|
|
70
77
|
<div v-if="order.comment" class="pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small">
|
|
71
|
-
<p class="mn-b-thin
|
|
78
|
+
<p class="mn-b-thin opacity-50 uppercase p-small fw-medium">Comment</p>
|
|
72
79
|
<p>{{order.comment}}</p>
|
|
73
80
|
</div>
|
|
74
81
|
</div>
|
|
@@ -78,6 +85,7 @@
|
|
|
78
85
|
import { ref } from 'vue';
|
|
79
86
|
import CardHeader from '@martyrs/src/modules/core/views/components/blocks/CardHeader.vue';
|
|
80
87
|
import IconTime from '@martyrs/src/modules/icons/entities/IconTime.vue';
|
|
88
|
+
import { formatRentDateLabel } from '@martyrs/src/modules/orders/utils/rent-price.js';
|
|
81
89
|
|
|
82
90
|
const props = defineProps({
|
|
83
91
|
order: {
|
|
@@ -88,6 +96,10 @@ const props = defineProps({
|
|
|
88
96
|
type: Object,
|
|
89
97
|
required: true
|
|
90
98
|
},
|
|
99
|
+
statuses: {
|
|
100
|
+
type: Array,
|
|
101
|
+
default: () => []
|
|
102
|
+
},
|
|
91
103
|
formatDate: {
|
|
92
104
|
type: Function,
|
|
93
105
|
required: true
|
|
@@ -103,4 +115,38 @@ const props = defineProps({
|
|
|
103
115
|
});
|
|
104
116
|
|
|
105
117
|
const spoiler = ref(false);
|
|
118
|
+
|
|
119
|
+
function positionRentLabel(position) {
|
|
120
|
+
return formatRentDateLabel(position.date?.start, position.date?.end, position.rentPeriod, props.formatDate);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function statusLabel(value) {
|
|
124
|
+
const found = props.statuses.find(s => s.value === value)
|
|
125
|
+
return found ? found.label : value
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const orderStatusColors = {
|
|
129
|
+
'pending': 'bg-yellow',
|
|
130
|
+
'created': 'bg-yellow',
|
|
131
|
+
'confirmed': 't-white bg-second',
|
|
132
|
+
'in_progress': 'bg-green',
|
|
133
|
+
'active': 'bg-green',
|
|
134
|
+
'finished': 'bg-grey',
|
|
135
|
+
'completed': 'bg-grey',
|
|
136
|
+
'canceled': 't-white bg-red',
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function orderStatusClass(status) {
|
|
140
|
+
return orderStatusColors[status] || 'bg-main'
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function paymentStatusClass(status) {
|
|
144
|
+
switch (status) {
|
|
145
|
+
case 'paid': return 't-white bg-green'
|
|
146
|
+
case 'pending': return 'bg-yellow'
|
|
147
|
+
case 'refunded': return 't-white bg-second'
|
|
148
|
+
default: return 't-white bg-red'
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
106
152
|
</script>
|
|
@@ -22,39 +22,33 @@
|
|
|
22
22
|
<span class="t-dark mn-r-micro d-inline-block fw-demi">
|
|
23
23
|
{{ returnCurrency() }}{{ totalPrice }}
|
|
24
24
|
</span>
|
|
25
|
-
<span v-if="isRental && rentDates.start && rentDates.end" class="p-small
|
|
26
|
-
{{ returnCurrency() }}{{ price }}
|
|
25
|
+
<span v-if="isRental && rentDates.start && rentDates.end" class="p-small opacity-50">
|
|
26
|
+
{{ returnCurrency() }}{{ price }}
|
|
27
27
|
<span v-if="quantity > 1">× {{ quantity }} {{ unit || 'pcs' }}</span>
|
|
28
|
-
× {{
|
|
28
|
+
× {{ rentalDurationLabel }}
|
|
29
29
|
</span>
|
|
30
|
-
<span v-else class="p-small
|
|
30
|
+
<span v-else class="p-small opacity-50">{{ returnCurrency() }}{{ price }} × {{ quantity || 0 }} {{ unit || 'pcs' }}</span>
|
|
31
31
|
</p>
|
|
32
32
|
|
|
33
33
|
<p v-else-if="price != null && quantity == null" class="t-dark mn-r-micro d-inline-block fw-demi">
|
|
34
34
|
{{ returnCurrency() }}{{ price }}
|
|
35
35
|
</p>
|
|
36
36
|
|
|
37
|
-
<p v-else-if="price == null && quantity != null" class="p-small
|
|
37
|
+
<p v-else-if="price == null && quantity != null" class="p-small opacity-50">
|
|
38
38
|
{{ quantity }} {{ unit || 'pcs' }}
|
|
39
39
|
</p>
|
|
40
40
|
</div>
|
|
41
41
|
|
|
42
42
|
<slot></slot>
|
|
43
43
|
<div v-if="showControls" class="mn-t-thin gap-thin flex-justify-start flex">
|
|
44
|
-
<div
|
|
45
|
-
v-if="isRental && rentDates.start && rentDates.end"
|
|
46
|
-
|
|
44
|
+
<div
|
|
45
|
+
v-if="isRental && rentDates.start && rentDates.end"
|
|
46
|
+
@click="editable ? openRentDatePopup() : null"
|
|
47
|
+
:class="['flex gap-thin flex-v-center pd-thin w-100 bg-light radius-small', editable ? 'cursor-pointer' : '']"
|
|
47
48
|
>
|
|
48
|
-
<IconCalendar
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/>
|
|
52
|
-
<p
|
|
53
|
-
@click="editable ? openRentDatePopup : null"
|
|
54
|
-
class="fw-medium t-transp"
|
|
55
|
-
>
|
|
56
|
-
{{ formatDate(rentDates.start, { dayMonth: true, language: locale }) }} -
|
|
57
|
-
{{ formatDate(rentDates.end, { dayMonth: true, language: locale }) }}
|
|
49
|
+
<IconCalendar class="i-medium" />
|
|
50
|
+
<p class="fw-medium opacity-50">
|
|
51
|
+
{{ rentDateLabel }}
|
|
58
52
|
</p>
|
|
59
53
|
</div>
|
|
60
54
|
|
|
@@ -96,6 +90,7 @@ import IconDelete from '@martyrs/src/modules/icons/navigation/IconDelete.vue'
|
|
|
96
90
|
import IconCalendar from '@martyrs/src/modules/icons/entities/IconCalendar.vue'
|
|
97
91
|
import PlaceholderImage from '@martyrs/src/modules/icons/placeholders/PlaceholderImage.vue'
|
|
98
92
|
import { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js'
|
|
93
|
+
import { calcRentTotalPrice, formatRentDuration, formatRentDateLabel } from '@martyrs/src/modules/orders/utils/rent-price.js'
|
|
99
94
|
|
|
100
95
|
const router = useRouter()
|
|
101
96
|
const { locale } = useI18n()
|
|
@@ -112,6 +107,7 @@ const props = defineProps({
|
|
|
112
107
|
unit: String,
|
|
113
108
|
dates: Object,
|
|
114
109
|
listing: String,
|
|
110
|
+
rentPeriod: { type: String, default: 'day' },
|
|
115
111
|
price: Number,
|
|
116
112
|
editable: Boolean,
|
|
117
113
|
increase: Function,
|
|
@@ -127,16 +123,20 @@ const rentDates = ref({
|
|
|
127
123
|
end: props.dates?.end || null
|
|
128
124
|
})
|
|
129
125
|
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
return
|
|
126
|
+
const isShortPeriod = computed(() => ['hour', '4hours', 'flat'].includes(props.rentPeriod))
|
|
127
|
+
|
|
128
|
+
const rentalDurationLabel = computed(() => {
|
|
129
|
+
if (!rentDates.value.start || !rentDates.value.end) return ''
|
|
130
|
+
return formatRentDuration(rentDates.value.start, rentDates.value.end, props.rentPeriod)
|
|
131
|
+
})
|
|
132
|
+
|
|
133
|
+
const rentDateLabel = computed(() => {
|
|
134
|
+
return formatRentDateLabel(rentDates.value.start, rentDates.value.end, props.rentPeriod, formatDate)
|
|
135
135
|
})
|
|
136
136
|
|
|
137
137
|
const totalPrice = computed(() => {
|
|
138
|
-
if (isRental.value) {
|
|
139
|
-
return
|
|
138
|
+
if (isRental.value && rentDates.value.start && rentDates.value.end) {
|
|
139
|
+
return calcRentTotalPrice(props.price, props.quantity, rentDates.value.start, rentDates.value.end, props.rentPeriod)
|
|
140
140
|
}
|
|
141
141
|
return props.quantity * props.price
|
|
142
142
|
})
|
|
@@ -165,9 +165,12 @@ async function openRentDatePopup() {
|
|
|
165
165
|
props.variantId,
|
|
166
166
|
props.quantity,
|
|
167
167
|
props.price,
|
|
168
|
-
{
|
|
168
|
+
{
|
|
169
169
|
showCancelButton: props.editable,
|
|
170
|
-
onCancel: props.editable ? () => props.remove?.() : null
|
|
170
|
+
onCancel: props.editable ? () => props.remove?.() : null,
|
|
171
|
+
enableTime: isShortPeriod.value,
|
|
172
|
+
periodType: props.rentPeriod,
|
|
173
|
+
initialDates: rentDates.value.start ? { start: rentDates.value.start, end: rentDates.value.end } : null
|
|
171
174
|
}
|
|
172
175
|
);
|
|
173
176
|
|
|
@@ -185,5 +188,5 @@ function updateRentDates(dates) {
|
|
|
185
188
|
}
|
|
186
189
|
</script>
|
|
187
190
|
|
|
188
|
-
<style lang="scss">
|
|
191
|
+
<style lang="scss" scoped>
|
|
189
192
|
</style>
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<div class="flex-nowrap flex-v-center flex-between flex mn-b-small">
|
|
6
6
|
<div class="flex-v-center gap-small flex">
|
|
7
7
|
<span class="fw-medium t-dark">{{ formatOrderId(orderId) }}</span>
|
|
8
|
-
<span class="
|
|
9
|
-
<span class="
|
|
8
|
+
<span class="opacity-50">|</span>
|
|
9
|
+
<span class="opacity-50">{{ formatDate(createdAt, { dayMonth: true, language: locale }) }}</span>
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<!-- Status Badge -->
|
|
@@ -93,16 +93,11 @@ const formatOrderId = (id) => {
|
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
const statusConfig = {
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'shipped': { label: 'Shipped', class: 't-second bg-second-nano', dot: 'bg-second' },
|
|
102
|
-
'preparing': { label: 'Preparing', class: 't-second bg-second-nano', dot: 'bg-second' },
|
|
103
|
-
'cancelled': { label: 'Cancelled', class: 't-dark bg-light', dot: 'bg-grey' },
|
|
104
|
-
'canceled': { label: 'Cancelled', class: 't-dark bg-light', dot: 'bg-grey' },
|
|
105
|
-
'returned': { label: 'Returned', class: 't-fourth bg-fourth-nano', dot: 'bg-fourth' }
|
|
96
|
+
'created': { label: 'Pending', class: 't-main bg-main-nano', dot: 'bg-main' },
|
|
97
|
+
'confirmed': { label: 'Confirmed', class: 't-second bg-second-nano', dot: 'bg-second' },
|
|
98
|
+
'in_progress': { label: 'In Progress', class: 't-third bg-third-nano', dot: 'bg-third' },
|
|
99
|
+
'finished': { label: 'Completed', class: 't-green bg-green-nano', dot: 'bg-green' },
|
|
100
|
+
'canceled': { label: 'Canceled', class: 't-dark bg-light', dot: 'bg-grey' },
|
|
106
101
|
};
|
|
107
102
|
|
|
108
103
|
const statusKey = computed(() => props.status?.toLowerCase() || 'created');
|
|
@@ -63,20 +63,20 @@
|
|
|
63
63
|
<span>
|
|
64
64
|
{{position.name}}
|
|
65
65
|
</span>
|
|
66
|
-
<span class="mn-r-thin mn-l-thin
|
|
66
|
+
<span class="mn-r-thin mn-l-thin opacity-50">|</span>
|
|
67
67
|
|
|
68
68
|
<span class="w-50">
|
|
69
69
|
{{position.quantity}}
|
|
70
70
|
x
|
|
71
71
|
{{position.price}}
|
|
72
|
-
<span class="
|
|
72
|
+
<span class="opacity-50">{{returnCurrency()}}</span>
|
|
73
73
|
</span>
|
|
74
74
|
|
|
75
75
|
</div>
|
|
76
76
|
|
|
77
77
|
<div class="t-right w-50">
|
|
78
78
|
|
|
79
|
-
<span class="
|
|
79
|
+
<span class="opacity-50">{{position.type}}</span>
|
|
80
80
|
</div>
|
|
81
81
|
</div>
|
|
82
82
|
</div>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
>
|
|
24
24
|
<div class="t-center">
|
|
25
25
|
<h3 class="mn-b-medium">{{ props.successTitle || t('orders.newsletter.success.title') }}</h3>
|
|
26
|
-
<p class="
|
|
26
|
+
<p class="opacity-50 mn-b-medium">{{ props.successSubtitle || t('orders.newsletter.success.subtitle') }}</p>
|
|
27
27
|
|
|
28
28
|
<div v-if="(props.socials || tm('orders.newsletter.socials')) && (props.socials || tm('orders.newsletter.socials')).length" class="flex flex-wrap flex-h-center gap-regular">
|
|
29
29
|
<a
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
<div class="total-calculations">
|
|
3
3
|
<!-- Base price calculation -->
|
|
4
4
|
<p class="flex flex-nowrap pd-t-small">
|
|
5
|
-
<span class="w-100
|
|
5
|
+
<span class="w-100 opacity-50">{{ t('subtotal') }}</span>
|
|
6
6
|
<span class="w-100 t-right">{{currency}}{{totalPrice}}</span>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<!-- Platform fee (conditional) -->
|
|
10
10
|
<p v-if="showFees" class="flex flex-nowrap pd-t-small">
|
|
11
|
-
<span class="w-100
|
|
11
|
+
<span class="w-100 opacity-50">{{ t('feesRate') }}</span>
|
|
12
12
|
<span class="w-100 t-right">{{currency}}{{feesRate}}</span>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
<!-- VAT calculation (conditional) -->
|
|
16
16
|
<p v-if="showVat" class="flex flex-nowrap pd-t-small">
|
|
17
|
-
<span class="w-100
|
|
17
|
+
<span class="w-100 opacity-50">{{ t('vat', { rate: vatRate * 100 }) }}</span>
|
|
18
18
|
<span class="w-100 t-right">{{currency}}{{vatAmount}}</span>
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
<!-- Delivery fee (conditional) -->
|
|
22
22
|
<p v-if="showDeliveryFee" class="flex flex-nowrap br-black-transp-10 br-b-1px pd-b-small pd-t-small">
|
|
23
|
-
<span class="w-100
|
|
23
|
+
<span class="w-100 opacity-50">{{ t('delivery') }}</span>
|
|
24
24
|
<span class="w-100 t-right">{{currency}}{{deliveryAmount}}</span>
|
|
25
25
|
</p>
|
|
26
26
|
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
{name: 'Created', value: 'created'},
|
|
50
50
|
{name: 'In Progress', value: 'in_progress'},
|
|
51
51
|
{name: 'Completed', value: 'completed'},
|
|
52
|
-
{name: '
|
|
52
|
+
{name: 'Canceled', value: 'canceled'}
|
|
53
53
|
]"
|
|
54
54
|
@update:select="(option) => { application.status = option.value; statusSelected = option }"
|
|
55
55
|
placeholder="Status"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Block
|
|
3
3
|
title="Customer"
|
|
4
|
-
class="pos-relative
|
|
4
|
+
class="pos-relative"
|
|
5
5
|
:actions="[{
|
|
6
6
|
label: '+',
|
|
7
7
|
function: () => openCreatePopup()
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
<Card
|
|
11
11
|
v-if="customer?._id"
|
|
12
12
|
:photo="customer.profile?.photo"
|
|
13
|
-
:title="customer.profile?.name || customer.phone || customer.email || 'Unnamed Customer'"
|
|
14
|
-
:subtitle="customer.email || customer.phone"
|
|
13
|
+
:title="customer.profile?.name || formatPhone(customer.phone) || customer.email || 'Unnamed Customer'"
|
|
14
|
+
:subtitle="customer.email || formatPhone(customer.phone)"
|
|
15
15
|
:action="{
|
|
16
16
|
label: { is: IconCross },
|
|
17
17
|
method: clearCustomer
|
|
18
18
|
}"
|
|
19
|
-
|
|
19
|
+
classImage="h-3r w-3r radius-small o-hidden flex-shrink-0"
|
|
20
|
+
class="h-4r w-100 bg-white pd-thin radius-medium mn-b-thin flex-v-center flex-nowrap flex gap-thin cursor-pointer"
|
|
20
21
|
/>
|
|
21
22
|
|
|
22
23
|
<div v-else>
|
|
@@ -36,23 +37,25 @@
|
|
|
36
37
|
:store="customers"
|
|
37
38
|
:options="{
|
|
38
39
|
search: searchUser,
|
|
39
|
-
owner:
|
|
40
|
+
owner: ownerOrgId
|
|
40
41
|
}"
|
|
41
42
|
:showLoadMore="false"
|
|
42
43
|
v-slot="{ items }"
|
|
43
44
|
class="h-max-20r o-scroll"
|
|
44
45
|
>
|
|
45
|
-
<
|
|
46
|
-
v-for="customerItem in items"
|
|
46
|
+
<CardUser
|
|
47
|
+
v-for="customerItem in items"
|
|
47
48
|
:key="customerItem._id"
|
|
48
49
|
@click="selectCustomer(customerItem)"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
:user="customerItem"
|
|
51
|
+
:photo="customerItem.profile?.photo"
|
|
52
|
+
:name="customerItem.profile?.name || formatPhone(customerItem.phone) || customerItem.email || 'Unnamed'"
|
|
53
|
+
:phone="formatPhone(customerItem.phone)"
|
|
54
|
+
:email="customerItem.email"
|
|
55
|
+
:status="customerItem.status"
|
|
56
|
+
:statusClass="customerItem.status === 'active' ? 'bg-green t-white' : 'bg-red t-white'"
|
|
57
|
+
class="bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer h-4r"
|
|
58
|
+
/>
|
|
56
59
|
</Feed>
|
|
57
60
|
</div>
|
|
58
61
|
</Block>
|
|
@@ -87,7 +90,7 @@ import Feed from '@martyrs/src/components/Feed/Feed.vue'
|
|
|
87
90
|
import BlockSearch from '@martyrs/src/modules/core/views/components/blocks/BlockSearch.vue'
|
|
88
91
|
import Card from '@martyrs/src/modules/core/views/components/blocks/Card.vue'
|
|
89
92
|
import IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue'
|
|
90
|
-
import
|
|
93
|
+
import CardUser from '@martyrs/src/modules/core/views/components/blocks/CardUser.vue'
|
|
91
94
|
import FormCustomerDetails from '@martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue'
|
|
92
95
|
|
|
93
96
|
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';
|
|
@@ -95,9 +98,16 @@ import customers from '@martyrs/src/modules/orders/store/customers.store';
|
|
|
95
98
|
import customerInitState from "@martyrs/src/modules/orders/store/models/customer.js"
|
|
96
99
|
import { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js';
|
|
97
100
|
|
|
98
|
-
const { formatDate } = useGlobalMixins();
|
|
101
|
+
const { formatDate, formatPhone } = useGlobalMixins();
|
|
99
102
|
|
|
100
103
|
// Props & Model
|
|
104
|
+
const props = defineProps({
|
|
105
|
+
orgId: {
|
|
106
|
+
type: String,
|
|
107
|
+
default: null
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
101
111
|
const customer = defineModel('customer', {
|
|
102
112
|
type: Object,
|
|
103
113
|
default: null
|
|
@@ -105,6 +115,7 @@ const customer = defineModel('customer', {
|
|
|
105
115
|
|
|
106
116
|
// Router
|
|
107
117
|
const route = useRoute()
|
|
118
|
+
const ownerOrgId = computed(() => props.orgId || route.params._id)
|
|
108
119
|
|
|
109
120
|
// Reactive data
|
|
110
121
|
const searchUser = ref(null)
|
|
@@ -122,10 +133,10 @@ function clearCustomer() {
|
|
|
122
133
|
|
|
123
134
|
function openCreatePopup() {
|
|
124
135
|
newCustomer.value = { ...customerInitState }
|
|
125
|
-
if (
|
|
136
|
+
if (ownerOrgId.value) {
|
|
126
137
|
newCustomer.value.owner = {
|
|
127
138
|
type: 'Organization',
|
|
128
|
-
target:
|
|
139
|
+
target: ownerOrgId.value
|
|
129
140
|
};
|
|
130
141
|
}
|
|
131
142
|
newCustomer.value.creator = {
|
|
@@ -142,31 +153,43 @@ function closeCreatePopup() {
|
|
|
142
153
|
|
|
143
154
|
async function saveNewCustomer() {
|
|
144
155
|
try {
|
|
145
|
-
// Remove empty fields
|
|
156
|
+
// Remove empty/null fields
|
|
146
157
|
const cleanData = { ...newCustomer.value };
|
|
158
|
+
delete cleanData._id;
|
|
159
|
+
delete cleanData.user;
|
|
147
160
|
if (!cleanData.email) delete cleanData.email;
|
|
148
161
|
if (!cleanData.phone) delete cleanData.phone;
|
|
149
162
|
if (!cleanData.notes) delete cleanData.notes;
|
|
150
|
-
if (!cleanData.referral?.code)
|
|
151
|
-
|
|
163
|
+
if (!cleanData.referral?.code) delete cleanData.referral;
|
|
164
|
+
if (cleanData.messenger && !cleanData.messenger.type) delete cleanData.messenger;
|
|
165
|
+
if (cleanData.socials) {
|
|
166
|
+
const hasSocials = Object.values(cleanData.socials).some(v => v);
|
|
167
|
+
if (!hasSocials) delete cleanData.socials;
|
|
152
168
|
}
|
|
153
|
-
|
|
169
|
+
if (cleanData.address) {
|
|
170
|
+
const hasAddress = Object.values(cleanData.address).some(v => v);
|
|
171
|
+
if (!hasAddress) delete cleanData.address;
|
|
172
|
+
}
|
|
173
|
+
|
|
154
174
|
// Ensure ownership structure
|
|
155
175
|
cleanData.owner = {
|
|
156
176
|
type: 'Organization',
|
|
157
|
-
target:
|
|
177
|
+
target: ownerOrgId.value
|
|
158
178
|
};
|
|
159
|
-
|
|
179
|
+
|
|
160
180
|
cleanData.creator = {
|
|
161
181
|
type: 'User',
|
|
162
182
|
target: auth.state.user._id
|
|
163
183
|
};
|
|
164
184
|
|
|
185
|
+
console.log('[FormSelectCustomer] ownerOrgId:', ownerOrgId.value, 'route._id:', route.params._id);
|
|
186
|
+
console.log('[FormSelectCustomer] cleanData:', JSON.stringify(cleanData));
|
|
165
187
|
const created = await customers.create(cleanData);
|
|
188
|
+
console.log('[FormSelectCustomer] created:', created?._id, created?.profile?.name);
|
|
166
189
|
customer.value = created;
|
|
167
190
|
closeCreatePopup();
|
|
168
191
|
} catch (error) {
|
|
169
|
-
console.error('Error creating customer:', error);
|
|
192
|
+
console.error('[FormSelectCustomer] Error creating customer:', error?.message, error?.status, error?.info);
|
|
170
193
|
}
|
|
171
194
|
}
|
|
172
195
|
</script>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
v-if="!MOBILE_APP"
|
|
5
5
|
title="Applications"
|
|
6
6
|
:actions="[
|
|
7
|
-
{ method: () => openCreatePopup(), label: '
|
|
7
|
+
{ method: () => openCreatePopup(), label: isPhone ? '+ Add' : '+ Add Application' }
|
|
8
8
|
]"
|
|
9
9
|
class="mn-b-small"
|
|
10
10
|
/>
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
|
|
116
116
|
const route = useRoute();
|
|
117
117
|
const router = useRouter();
|
|
118
|
-
const { formatDate } = useGlobalMixins();
|
|
118
|
+
const { formatDate, isPhone } = useGlobalMixins();
|
|
119
119
|
|
|
120
120
|
const statusFilter = ref('all')
|
|
121
121
|
|