@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,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance, computed, ref, createElementBlock, openBlock, createElementVNode, createBlock, renderSlot, createCommentVNode, toDisplayString, unref, createTextVNode, createVNode, Fragment } from "vue";
|
|
1
|
+
import { getCurrentInstance, computed, ref, createElementBlock, openBlock, createElementVNode, createBlock, renderSlot, createCommentVNode, toDisplayString, unref, createTextVNode, normalizeClass, createVNode, Fragment } from "vue";
|
|
2
2
|
import { useRouter } from "vue-router";
|
|
3
3
|
import { useI18n } from "vue-i18n";
|
|
4
4
|
import _sfc_main$2 from "../../../icons/navigation/IconAdd.vue.js";
|
|
@@ -8,6 +8,7 @@ import _sfc_main$4 from "../../../icons/navigation/IconDelete.vue.js";
|
|
|
8
8
|
import _sfc_main$1 from "../../../icons/entities/IconCalendar.vue.js";
|
|
9
9
|
import PlaceholderImage from "../../../icons/placeholders/PlaceholderImage.vue.js";
|
|
10
10
|
import { useGlobalMixins } from "../../../core/views/mixins/mixins.js";
|
|
11
|
+
import { formatRentDuration, formatRentDateLabel, calcRentTotalPrice } from "../../utils/rent-price.js";
|
|
11
12
|
const _hoisted_1 = { class: "gap-small pos-relative cols-1" };
|
|
12
13
|
const _hoisted_2 = { class: "pos-relative w-100 gap-thin flex-stretch flex-nowrap flex" };
|
|
13
14
|
const _hoisted_3 = {
|
|
@@ -22,12 +23,12 @@ const _hoisted_8 = { key: 0 };
|
|
|
22
23
|
const _hoisted_9 = { class: "t-dark mn-r-micro d-inline-block fw-demi" };
|
|
23
24
|
const _hoisted_10 = {
|
|
24
25
|
key: 0,
|
|
25
|
-
class: "p-small
|
|
26
|
+
class: "p-small opacity-50"
|
|
26
27
|
};
|
|
27
28
|
const _hoisted_11 = { key: 0 };
|
|
28
29
|
const _hoisted_12 = {
|
|
29
30
|
key: 1,
|
|
30
|
-
class: "p-small
|
|
31
|
+
class: "p-small opacity-50"
|
|
31
32
|
};
|
|
32
33
|
const _hoisted_13 = {
|
|
33
34
|
key: 1,
|
|
@@ -35,16 +36,13 @@ const _hoisted_13 = {
|
|
|
35
36
|
};
|
|
36
37
|
const _hoisted_14 = {
|
|
37
38
|
key: 2,
|
|
38
|
-
class: "p-small
|
|
39
|
+
class: "p-small opacity-50"
|
|
39
40
|
};
|
|
40
41
|
const _hoisted_15 = {
|
|
41
42
|
key: 0,
|
|
42
43
|
class: "mn-t-thin gap-thin flex-justify-start flex"
|
|
43
44
|
};
|
|
44
|
-
const _hoisted_16 = {
|
|
45
|
-
key: 0,
|
|
46
|
-
class: "flex gap-thin flex-v-center cursor-pointer pd-thin w-100 bg-light radius-small"
|
|
47
|
-
};
|
|
45
|
+
const _hoisted_16 = { class: "fw-medium opacity-50" };
|
|
48
46
|
const _sfc_main = {
|
|
49
47
|
__name: "CardOrderItem",
|
|
50
48
|
props: {
|
|
@@ -56,6 +54,7 @@ const _sfc_main = {
|
|
|
56
54
|
unit: String,
|
|
57
55
|
dates: Object,
|
|
58
56
|
listing: String,
|
|
57
|
+
rentPeriod: { type: String, default: "day" },
|
|
59
58
|
price: Number,
|
|
60
59
|
editable: Boolean,
|
|
61
60
|
increase: Function,
|
|
@@ -76,15 +75,17 @@ const _sfc_main = {
|
|
|
76
75
|
start: props.dates?.start || null,
|
|
77
76
|
end: props.dates?.end || null
|
|
78
77
|
});
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
const isShortPeriod = computed(() => ["hour", "4hours", "flat"].includes(props.rentPeriod));
|
|
79
|
+
const rentalDurationLabel = computed(() => {
|
|
80
|
+
if (!rentDates.value.start || !rentDates.value.end) return "";
|
|
81
|
+
return formatRentDuration(rentDates.value.start, rentDates.value.end, props.rentPeriod);
|
|
82
|
+
});
|
|
83
|
+
const rentDateLabel = computed(() => {
|
|
84
|
+
return formatRentDateLabel(rentDates.value.start, rentDates.value.end, props.rentPeriod, formatDate);
|
|
84
85
|
});
|
|
85
86
|
const totalPrice = computed(() => {
|
|
86
|
-
if (isRental.value) {
|
|
87
|
-
return
|
|
87
|
+
if (isRental.value && rentDates.value.start && rentDates.value.end) {
|
|
88
|
+
return calcRentTotalPrice(props.price, props.quantity, rentDates.value.start, rentDates.value.end, props.rentPeriod);
|
|
88
89
|
}
|
|
89
90
|
return props.quantity * props.price;
|
|
90
91
|
});
|
|
@@ -110,7 +111,10 @@ const _sfc_main = {
|
|
|
110
111
|
props.price,
|
|
111
112
|
{
|
|
112
113
|
showCancelButton: props.editable,
|
|
113
|
-
onCancel: props.editable ? () => props.remove?.() : null
|
|
114
|
+
onCancel: props.editable ? () => props.remove?.() : null,
|
|
115
|
+
enableTime: isShortPeriod.value,
|
|
116
|
+
periodType: props.rentPeriod,
|
|
117
|
+
initialDates: rentDates.value.start ? { start: rentDates.value.start, end: rentDates.value.end } : null
|
|
114
118
|
}
|
|
115
119
|
);
|
|
116
120
|
if (selectedDates) {
|
|
@@ -146,22 +150,20 @@ const _sfc_main = {
|
|
|
146
150
|
isRental.value && rentDates.value.start && rentDates.value.end ? (openBlock(), createElementBlock("span", _hoisted_10, [
|
|
147
151
|
createTextVNode(toDisplayString(unref(returnCurrency)()) + toDisplayString(__props.price) + " ", 1),
|
|
148
152
|
__props.quantity > 1 ? (openBlock(), createElementBlock("span", _hoisted_11, "× " + toDisplayString(__props.quantity) + " " + toDisplayString(__props.unit || "pcs"), 1)) : createCommentVNode("", true),
|
|
149
|
-
createTextVNode(" × " + toDisplayString(
|
|
153
|
+
createTextVNode(" × " + toDisplayString(rentalDurationLabel.value), 1)
|
|
150
154
|
])) : (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(unref(returnCurrency)()) + toDisplayString(__props.price) + " × " + toDisplayString(__props.quantity || 0) + " " + toDisplayString(__props.unit || "pcs"), 1))
|
|
151
155
|
])) : __props.price != null && __props.quantity == null ? (openBlock(), createElementBlock("p", _hoisted_13, toDisplayString(unref(returnCurrency)()) + toDisplayString(__props.price), 1)) : __props.price == null && __props.quantity != null ? (openBlock(), createElementBlock("p", _hoisted_14, toDisplayString(__props.quantity) + " " + toDisplayString(__props.unit || "pcs"), 1)) : createCommentVNode("", true)
|
|
152
156
|
]),
|
|
153
157
|
renderSlot(_ctx.$slots, "default"),
|
|
154
158
|
showControls.value ? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
155
|
-
isRental.value && rentDates.value.start && rentDates.value.end ? (openBlock(), createElementBlock("div",
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}, toDisplayString(unref(formatDate)(rentDates.value.start, { dayMonth: true, language: unref(locale) })) + " - " + toDisplayString(unref(formatDate)(rentDates.value.end, { dayMonth: true, language: unref(locale) })), 1)
|
|
164
|
-
])) : createCommentVNode("", true),
|
|
159
|
+
isRental.value && rentDates.value.start && rentDates.value.end ? (openBlock(), createElementBlock("div", {
|
|
160
|
+
key: 0,
|
|
161
|
+
onClick: _cache[0] || (_cache[0] = ($event) => __props.editable ? openRentDatePopup() : null),
|
|
162
|
+
class: normalizeClass(["flex gap-thin flex-v-center pd-thin w-100 bg-light radius-small", __props.editable ? "cursor-pointer" : ""])
|
|
163
|
+
}, [
|
|
164
|
+
createVNode(_sfc_main$1, { class: "i-medium" }),
|
|
165
|
+
createElementVNode("p", _hoisted_16, toDisplayString(rentDateLabel.value), 1)
|
|
166
|
+
], 2)) : createCommentVNode("", true),
|
|
165
167
|
__props.editable && !isRental.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
166
168
|
createVNode(_sfc_main$2, {
|
|
167
169
|
onClick: increase,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardOrderItem.vue.js","sources":["../../../../../../../src/modules/orders/components/blocks/CardOrderItem.vue"],"sourcesContent":["<template>\n <div class=\"gap-small pos-relative cols-1\">\n <div class=\"pos-relative w-100 gap-thin flex-stretch flex-nowrap flex\">\n <div class=\"bg-light h-100 o-hidden pos-relative radius-small aspect-1x1\" style=\"flex: 1 0 auto\">\n <img \n v-if=\"images && images[0]\"\n loading=\"lazy\" \n class=\"w-100 object-fit-cover pos-absolute h-100\" \n :src=\"(FILE_SERVER_URL || '') + images[0]\"\n >\n <PlaceholderImage\n v-else \n class=\"bg-light pos-absolute radius-small w-100 h-100\"\n />\n </div>\n \n <div class=\"w-100 pos-relative\">\n <p class=\"truncate fw-medium\">{{ name }}</p>\n \n <div class=\"mn-t-thin\">\n <p v-if=\"price != null && quantity != null\">\n <span class=\"t-dark mn-r-micro d-inline-block fw-demi\">\n {{ returnCurrency() }}{{ totalPrice }}\n </span>\n <span v-if=\"isRental && rentDates.start && rentDates.end\" class=\"p-small
|
|
1
|
+
{"version":3,"file":"CardOrderItem.vue.js","sources":["../../../../../../../src/modules/orders/components/blocks/CardOrderItem.vue"],"sourcesContent":["<template>\n <div class=\"gap-small pos-relative cols-1\">\n <div class=\"pos-relative w-100 gap-thin flex-stretch flex-nowrap flex\">\n <div class=\"bg-light h-100 o-hidden pos-relative radius-small aspect-1x1\" style=\"flex: 1 0 auto\">\n <img \n v-if=\"images && images[0]\"\n loading=\"lazy\" \n class=\"w-100 object-fit-cover pos-absolute h-100\" \n :src=\"(FILE_SERVER_URL || '') + images[0]\"\n >\n <PlaceholderImage\n v-else \n class=\"bg-light pos-absolute radius-small w-100 h-100\"\n />\n </div>\n \n <div class=\"w-100 pos-relative\">\n <p class=\"truncate fw-medium\">{{ name }}</p>\n \n <div class=\"mn-t-thin\">\n <p v-if=\"price != null && quantity != null\">\n <span class=\"t-dark mn-r-micro d-inline-block fw-demi\">\n {{ returnCurrency() }}{{ totalPrice }}\n </span>\n <span v-if=\"isRental && rentDates.start && rentDates.end\" class=\"p-small opacity-50\">\n {{ returnCurrency() }}{{ price }}\n <span v-if=\"quantity > 1\">× {{ quantity }} {{ unit || 'pcs' }}</span>\n × {{ rentalDurationLabel }}\n </span>\n <span v-else class=\"p-small opacity-50\">{{ returnCurrency() }}{{ price }} × {{ quantity || 0 }} {{ unit || 'pcs' }}</span>\n </p>\n \n <p v-else-if=\"price != null && quantity == null\" class=\"t-dark mn-r-micro d-inline-block fw-demi\">\n {{ returnCurrency() }}{{ price }}\n </p>\n \n <p v-else-if=\"price == null && quantity != null\" class=\"p-small opacity-50\">\n {{ quantity }} {{ unit || 'pcs' }}\n </p>\n </div>\n \n <slot></slot>\n <div v-if=\"showControls\" class=\"mn-t-thin gap-thin flex-justify-start flex\">\n <div\n v-if=\"isRental && rentDates.start && rentDates.end\"\n @click=\"editable ? openRentDatePopup() : null\"\n :class=\"['flex gap-thin flex-v-center pd-thin w-100 bg-light radius-small', editable ? 'cursor-pointer' : '']\"\n >\n <IconCalendar class=\"i-medium\" />\n <p class=\"fw-medium opacity-50\">\n {{ rentDateLabel }}\n </p>\n </div>\n\n <template v-if=\"editable && !isRental\">\n <IconAdd\n @click=\"increase\"\n class=\"hover:scale-[1.05] cursor-pointer bg-light i-big pd-thin radius-small\"\n />\n <IconMinus\n @click=\"decrease\"\n class=\"hover:scale-[1.05] cursor-pointer bg-light i-big pd-thin radius-small\"\n />\n <IconDelete\n @click=\"remove\"\n class=\"hover:scale-[1.05] cursor-pointer bg-light i-big pd-thin radius-small\"\n />\n </template>\n\n <IconEdit\n v-if=\"isRental && editable\"\n @click=\"openRentDatePopup\"\n class=\"hover:scale-[1.05] cursor-pointer bg-light i-big pd-small radius-small\"\n />\n </div>\n </div>\n </div>\n \n </div>\n</template>\n\n<script setup>\nimport { ref, computed, getCurrentInstance } from 'vue'\nimport { useRouter } from 'vue-router'\nimport { useI18n } from 'vue-i18n'\nimport IconAdd from '@martyrs/src/modules/icons/navigation/IconAdd.vue'\nimport IconEdit from '@martyrs/src/modules/icons/navigation/IconEdit.vue'\nimport IconMinus from '@martyrs/src/modules/icons/navigation/IconMinus.vue'\nimport IconDelete from '@martyrs/src/modules/icons/navigation/IconDelete.vue'\nimport IconCalendar from '@martyrs/src/modules/icons/entities/IconCalendar.vue'\nimport PlaceholderImage from '@martyrs/src/modules/icons/placeholders/PlaceholderImage.vue'\nimport { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js'\nimport { calcRentTotalPrice, formatRentDuration, formatRentDateLabel } from '@martyrs/src/modules/orders/utils/rent-price.js'\n\nconst router = useRouter()\nconst { locale } = useI18n()\nconst { proxy } = getCurrentInstance()\nconst { returnCurrency, formatDate } = useGlobalMixins()\n\nconst emits = defineEmits(['increase', 'decrease', 'remove', 'updateRentDates'])\nconst props = defineProps({\n productId: String,\n variantId: String,\n images: Array,\n name: String,\n quantity: Number,\n unit: String,\n dates: Object,\n listing: String,\n rentPeriod: { type: String, default: 'day' },\n price: Number,\n editable: Boolean,\n increase: Function,\n decrease: Function,\n remove: Function,\n})\n\nconst isRental = computed(() => props.listing === 'rent')\nconst showControls = computed(() => props.editable || isRental.value)\n\nconst rentDates = ref({\n start: props.dates?.start || null,\n end: props.dates?.end || null\n})\n\nconst isShortPeriod = computed(() => ['hour', '4hours', 'flat'].includes(props.rentPeriod))\n\nconst rentalDurationLabel = computed(() => {\n if (!rentDates.value.start || !rentDates.value.end) return ''\n return formatRentDuration(rentDates.value.start, rentDates.value.end, props.rentPeriod)\n})\n\nconst rentDateLabel = computed(() => {\n return formatRentDateLabel(rentDates.value.start, rentDates.value.end, props.rentPeriod, formatDate)\n})\n\nconst totalPrice = computed(() => {\n if (isRental.value && rentDates.value.start && rentDates.value.end) {\n return calcRentTotalPrice(props.price, props.quantity, rentDates.value.start, rentDates.value.end, props.rentPeriod)\n }\n return props.quantity * props.price\n})\n\nconst isRentDatePopupOpen = ref(false)\n\nfunction increase() {\n props.increase?.()\n emits('increase')\n}\n\nfunction decrease() {\n props.decrease?.()\n emits('decrease')\n}\n\nfunction remove() {\n props.remove?.()\n emits('remove')\n}\n\nasync function openRentDatePopup() {\n try {\n const selectedDates = await proxy.$dateSelector(\n props.productId,\n props.variantId,\n props.quantity,\n props.price,\n {\n showCancelButton: props.editable,\n onCancel: props.editable ? () => props.remove?.() : null,\n enableTime: isShortPeriod.value,\n periodType: props.rentPeriod,\n initialDates: rentDates.value.start ? { start: rentDates.value.start, end: rentDates.value.end } : null\n }\n );\n \n if (selectedDates) {\n updateRentDates(selectedDates)\n }\n } catch (error) {\n console.error('Error selecting dates:', error)\n }\n}\n\nfunction updateRentDates(dates) {\n rentDates.value = dates\n emits('updateRentDates', props.productId, props.variantId, dates)\n}\n</script>\n\n<style lang=\"scss\" scoped>\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8Fe,cAAS;AACxB,UAAM,EAAE,OAAM,IAAK,QAAO;AAC1B,UAAM,EAAE,MAAK,IAAK,mBAAkB;AACpC,UAAM,EAAE,gBAAgB,WAAU,IAAK,gBAAe;AAEtD,UAAM,QAAQ;AACd,UAAM,QAAQ;AAiBd,UAAM,WAAW,SAAS,MAAM,MAAM,YAAY,MAAM;AACxD,UAAM,eAAe,SAAS,MAAM,MAAM,YAAY,SAAS,KAAK;AAEpE,UAAM,YAAY,IAAI;AAAA,MACpB,OAAO,MAAM,OAAO,SAAS;AAAA,MAC7B,KAAK,MAAM,OAAO,OAAO;AAAA,IAC3B,CAAC;AAED,UAAM,gBAAgB,SAAS,MAAM,CAAC,QAAQ,UAAU,MAAM,EAAE,SAAS,MAAM,UAAU,CAAC;AAE1F,UAAM,sBAAsB,SAAS,MAAM;AACzC,UAAI,CAAC,UAAU,MAAM,SAAS,CAAC,UAAU,MAAM,IAAK,QAAO;AAC3D,aAAO,mBAAmB,UAAU,MAAM,OAAO,UAAU,MAAM,KAAK,MAAM,UAAU;AAAA,IACxF,CAAC;AAED,UAAM,gBAAgB,SAAS,MAAM;AACnC,aAAO,oBAAoB,UAAU,MAAM,OAAO,UAAU,MAAM,KAAK,MAAM,YAAY,UAAU;AAAA,IACrG,CAAC;AAED,UAAM,aAAa,SAAS,MAAM;AAChC,UAAI,SAAS,SAAS,UAAU,MAAM,SAAS,UAAU,MAAM,KAAK;AAClE,eAAO,mBAAmB,MAAM,OAAO,MAAM,UAAU,UAAU,MAAM,OAAO,UAAU,MAAM,KAAK,MAAM,UAAU;AAAA,MACrH;AACA,aAAO,MAAM,WAAW,MAAM;AAAA,IAChC,CAAC;AAE2B,QAAI,KAAK;AAErC,aAAS,WAAW;AAClB,YAAM,WAAQ;AACd,YAAM,UAAU;AAAA,IAClB;AAEA,aAAS,WAAW;AAClB,YAAM,WAAQ;AACd,YAAM,UAAU;AAAA,IAClB;AAEA,aAAS,SAAS;AAChB,YAAM,SAAM;AACZ,YAAM,QAAQ;AAAA,IAChB;AAEA,mBAAe,oBAAoB;AACjC,UAAI;AACF,cAAM,gBAAgB,MAAM,MAAM;AAAA,UAChC,MAAM;AAAA,UACN,MAAM;AAAA,UACN,MAAM;AAAA,UACN,MAAM;AAAA,UACN;AAAA,YACE,kBAAkB,MAAM;AAAA,YACxB,UAAU,MAAM,WAAW,MAAM,MAAM,SAAM,IAAO;AAAA,YACpD,YAAY,cAAc;AAAA,YAC1B,YAAY,MAAM;AAAA,YAClB,cAAc,UAAU,MAAM,QAAQ,EAAE,OAAO,UAAU,MAAM,OAAO,KAAK,UAAU,MAAM,IAAG,IAAK;AAAA,UAC3G;AAAA,QACA;AAEI,YAAI,eAAe;AACjB,0BAAgB,aAAa;AAAA,QAC/B;AAAA,MACF,SAAS,OAAO;AACd,gBAAQ,MAAM,0BAA0B,KAAK;AAAA,MAC/C;AAAA,IACF;AAEA,aAAS,gBAAgB,OAAO;AAC9B,gBAAU,QAAQ;AAClB,YAAM,mBAAmB,MAAM,WAAW,MAAM,WAAW,KAAK;AAAA,IAClE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -7,7 +7,7 @@ const _hoisted_1 = { class: "bg-light radius-medium pd-medium" };
|
|
|
7
7
|
const _hoisted_2 = { class: "flex-nowrap flex-v-center flex-between flex mn-b-small" };
|
|
8
8
|
const _hoisted_3 = { class: "flex-v-center gap-small flex" };
|
|
9
9
|
const _hoisted_4 = { class: "fw-medium t-dark" };
|
|
10
|
-
const _hoisted_5 = { class: "
|
|
10
|
+
const _hoisted_5 = { class: "opacity-50" };
|
|
11
11
|
const _hoisted_6 = { class: "gap-thin flex-column flex mn-b-small" };
|
|
12
12
|
const _hoisted_7 = { class: "flex-nowrap flex-v-center flex-between flex" };
|
|
13
13
|
const _hoisted_8 = { class: "w-100" };
|
|
@@ -41,16 +41,11 @@ const _sfc_main = {
|
|
|
41
41
|
return `#${id.slice(0, 3).toUpperCase()}-${id.slice(-4).toUpperCase()}-${(/* @__PURE__ */ new Date()).getFullYear()}`;
|
|
42
42
|
};
|
|
43
43
|
const statusConfig = {
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"shipped": { label: "Shipped", class: "t-second bg-second-nano", dot: "bg-second" },
|
|
50
|
-
"preparing": { label: "Preparing", class: "t-second bg-second-nano", dot: "bg-second" },
|
|
51
|
-
"cancelled": { label: "Cancelled", class: "t-dark bg-light", dot: "bg-grey" },
|
|
52
|
-
"canceled": { label: "Cancelled", class: "t-dark bg-light", dot: "bg-grey" },
|
|
53
|
-
"returned": { label: "Returned", class: "t-fourth bg-fourth-nano", dot: "bg-fourth" }
|
|
44
|
+
"created": { label: "Pending", class: "t-main bg-main-nano", dot: "bg-main" },
|
|
45
|
+
"confirmed": { label: "Confirmed", class: "t-second bg-second-nano", dot: "bg-second" },
|
|
46
|
+
"in_progress": { label: "In Progress", class: "t-third bg-third-nano", dot: "bg-third" },
|
|
47
|
+
"finished": { label: "Completed", class: "t-green bg-green-nano", dot: "bg-green" },
|
|
48
|
+
"canceled": { label: "Canceled", class: "t-dark bg-light", dot: "bg-grey" }
|
|
54
49
|
};
|
|
55
50
|
const statusKey = computed(() => props.status?.toLowerCase() || "created");
|
|
56
51
|
const statusLabel = computed(() => {
|
|
@@ -67,7 +62,7 @@ const _sfc_main = {
|
|
|
67
62
|
createElementVNode("div", _hoisted_2, [
|
|
68
63
|
createElementVNode("div", _hoisted_3, [
|
|
69
64
|
createElementVNode("span", _hoisted_4, toDisplayString(formatOrderId(__props.orderId)), 1),
|
|
70
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "
|
|
65
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "opacity-50" }, "|", -1)),
|
|
71
66
|
createElementVNode("span", _hoisted_5, toDisplayString(unref(formatDate)(__props.createdAt, { dayMonth: true, language: unref(locale) })), 1)
|
|
72
67
|
]),
|
|
73
68
|
createElementVNode("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardOrderUser.vue.js","sources":["../../../../../../../src/modules/orders/components/blocks/CardOrderUser.vue"],"sourcesContent":["<template>\n <div class=\"bg-light radius-medium pd-medium\">\n\n <!-- Header: Order ID | Date | Status -->\n <div class=\"flex-nowrap flex-v-center flex-between flex mn-b-small\">\n <div class=\"flex-v-center gap-small flex\">\n <span class=\"fw-medium t-dark\">{{ formatOrderId(orderId) }}</span>\n <span class=\"
|
|
1
|
+
{"version":3,"file":"CardOrderUser.vue.js","sources":["../../../../../../../src/modules/orders/components/blocks/CardOrderUser.vue"],"sourcesContent":["<template>\n <div class=\"bg-light radius-medium pd-medium\">\n\n <!-- Header: Order ID | Date | Status -->\n <div class=\"flex-nowrap flex-v-center flex-between flex mn-b-small\">\n <div class=\"flex-v-center gap-small flex\">\n <span class=\"fw-medium t-dark\">{{ formatOrderId(orderId) }}</span>\n <span class=\"opacity-50\">|</span>\n <span class=\"opacity-50\">{{ formatDate(createdAt, { dayMonth: true, language: locale }) }}</span>\n </div>\n\n <!-- Status Badge -->\n <div\n class=\"pd-l-small pd-r-small pd-t-micro pd-b-micro radius-big p-small fw-semi flex-v-center gap-micro flex\"\n :class=\"statusClasses\"\n >\n <span class=\"d-block radius-big\" :class=\"dotClasses\" style=\"width: 6px; height: 6px;\"></span>\n {{ statusLabel }}\n </div>\n </div>\n\n <!-- Product List -->\n <div class=\"gap-thin flex-column flex mn-b-small\">\n <CardOrderItem\n v-for=\"(item, index) in positions\"\n :key=\"`${item._id}_${item.variant || 'no-variant'}_${index}`\"\n :editable=\"false\"\n :productId=\"item._id\"\n :variantId=\"item.variant\"\n :images=\"item.images\"\n :name=\"item.name\"\n :quantity=\"item.quantity\"\n :unit=\"item.unit\"\n :dates=\"item.date\"\n :listing=\"item.listing\"\n :price=\"item.price\"\n class=\"bg-white radius-small pd-small\"\n />\n </div>\n\n <!-- Footer: Total + Actions -->\n <div class=\"flex-nowrap flex-v-center flex-between flex\">\n <div class=\"w-100\">\n <span class=\"fw-medium t-dark p-medium\">Total</span>\n <span class=\"fw-demi t-dark p-medium\">{{ formatPrice(total) }}</span>\n </div>\n\n <div class=\"flex-nowrap gap-thin flex\">\n <button\n v-if=\"status === 'delivered' || status === 'finished'\"\n class=\"button bg-white pd-t-thin pd-b-thin pd-l-small pd-r-small p-small fw-medium radius-small\"\n >\n Rate\n </button>\n <button\n v-if=\"status === 'created' || status === 'confirmed'\"\n class=\"button bg-main t-white pd-t-thin pd-b-thin pd-l-small pd-r-small p-small fw-medium radius-small\"\n >\n Pay\n </button>\n <button class=\"button bg-white pd-t-thin pd-b-thin pd-l-small pd-r-small p-small fw-medium radius-small flex-v-center gap-micro flex\">\n Details\n <IconChevronRight class=\"i-small\" />\n </button>\n </div>\n </div>\n </div>\n</template>\n\n<script setup>\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\nimport { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js';\n\nimport IconChevronRight from '@martyrs/src/modules/icons/navigation/IconChevronRight.vue';\nimport CardOrderItem from '@martyrs/src/modules/orders/components/blocks/CardOrderItem.vue';\n\nconst { locale } = useI18n();\nconst { formatPrice, formatDate } = useGlobalMixins();\n\nconst props = defineProps({\n orderId: String,\n status: String,\n positions: Array,\n createdAt: [String, Date],\n updatedAt: [String, Date],\n total: [String, Number]\n});\n\nconst formatOrderId = (id) => {\n if (!id) return '';\n return `#${id.slice(0, 3).toUpperCase()}-${id.slice(-4).toUpperCase()}-${new Date().getFullYear()}`;\n};\n\nconst statusConfig = {\n 'created': { label: 'Pending', class: 't-main bg-main-nano', dot: 'bg-main' },\n 'confirmed': { label: 'Confirmed', class: 't-second bg-second-nano', dot: 'bg-second' },\n 'in_progress': { label: 'In Progress', class: 't-third bg-third-nano', dot: 'bg-third' },\n 'finished': { label: 'Completed', class: 't-green bg-green-nano', dot: 'bg-green' },\n 'canceled': { label: 'Canceled', class: 't-dark bg-light', dot: 'bg-grey' },\n};\n\nconst statusKey = computed(() => props.status?.toLowerCase() || 'created');\n\nconst statusLabel = computed(() => {\n return statusConfig[statusKey.value]?.label || 'Processing';\n});\n\nconst statusClasses = computed(() => {\n return statusConfig[statusKey.value]?.class || 't-main bg-main-nano';\n});\n\nconst dotClasses = computed(() => {\n return statusConfig[statusKey.value]?.dot || 'bg-main';\n});\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EA,UAAM,EAAE,OAAM,IAAK,QAAO;AAC1B,UAAM,EAAE,aAAa,WAAU,IAAK,gBAAe;AAEnD,UAAM,QAAQ;AASd,UAAM,gBAAgB,CAAC,OAAO;AAC5B,UAAI,CAAC,GAAI,QAAO;AAChB,aAAO,IAAI,GAAG,MAAM,GAAG,CAAC,EAAE,YAAW,CAAE,IAAI,GAAG,MAAM,EAAE,EAAE,YAAW,CAAE,KAAI,oBAAI,KAAI,GAAG,YAAW,CAAE;AAAA,IACnG;AAEA,UAAM,eAAe;AAAA,MACnB,WAAW,EAAE,OAAO,WAAW,OAAO,uBAAuB,KAAK,UAAS;AAAA,MAC3E,aAAa,EAAE,OAAO,aAAa,OAAO,2BAA2B,KAAK,YAAW;AAAA,MACrF,eAAe,EAAE,OAAO,eAAe,OAAO,yBAAyB,KAAK,WAAU;AAAA,MACtF,YAAY,EAAE,OAAO,aAAa,OAAO,yBAAyB,KAAK,WAAU;AAAA,MACjF,YAAY,EAAE,OAAO,YAAY,OAAO,mBAAmB,KAAK,UAAS;AAAA,IAC3E;AAEA,UAAM,YAAY,SAAS,MAAM,MAAM,QAAQ,YAAW,KAAM,SAAS;AAEzE,UAAM,cAAc,SAAS,MAAM;AACjC,aAAO,aAAa,UAAU,KAAK,GAAG,SAAS;AAAA,IACjD,CAAC;AAED,UAAM,gBAAgB,SAAS,MAAM;AACnC,aAAO,aAAa,UAAU,KAAK,GAAG,SAAS;AAAA,IACjD,CAAC;AAED,UAAM,aAAa,SAAS,MAAM;AAChC,aAAO,aAAa,UAAU,KAAK,GAAG,OAAO;AAAA,IAC/C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -14,7 +14,7 @@ import _sfc_main$3 from "../../../icons/socials/whatsapp.vue.js";
|
|
|
14
14
|
import { useStore } from "../../../core/views/store/core.store.js";
|
|
15
15
|
const _hoisted_1 = { class: "t-center" };
|
|
16
16
|
const _hoisted_2 = { class: "mn-b-medium" };
|
|
17
|
-
const _hoisted_3 = { class: "
|
|
17
|
+
const _hoisted_3 = { class: "opacity-50 mn-b-medium" };
|
|
18
18
|
const _hoisted_4 = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "flex flex-wrap flex-h-center gap-regular"
|
package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldSubscribeNewsletter.vue.js","sources":["../../../../../../../src/modules/orders/components/elements/FieldSubscribeNewsletter.vue"],"sourcesContent":["<template>\n <FieldBig \n :input=\"email\" \n :typingSpeed=\"typingSpeed\"\n :loopTyping=\"loopTyping\"\n :enableTyping=\"enableTyping\"\n :placeholder=\"props.placeholder || t('orders.newsletter.placeholder')\"\n :action=\"props.action === false ? '' : props.action || t('orders.newsletter.action')\"\n :name=\"fieldName\"\n :id=\"fieldId\"\n @update:input=\"email = $event\"\n @action=\"sendApplication\"\n :showLoader=\"true\"\n :showSuccess=\"false\"\n :callbackDelay=\"100\"\n v-bind=\"$attrs\"\n >\n <Popup\n :isPopupOpen=\"isSuccessPopupOpen\"\n @close-popup=\"isSuccessPopupOpen = false\"\n align=\"center center\"\n class=\"bg-white t-black pd-big radius-big\"\n >\n <div class=\"t-center\">\n <h3 class=\"mn-b-medium\">{{ props.successTitle || t('orders.newsletter.success.title') }}</h3>\n <p class=\"
|
|
1
|
+
{"version":3,"file":"FieldSubscribeNewsletter.vue.js","sources":["../../../../../../../src/modules/orders/components/elements/FieldSubscribeNewsletter.vue"],"sourcesContent":["<template>\n <FieldBig \n :input=\"email\" \n :typingSpeed=\"typingSpeed\"\n :loopTyping=\"loopTyping\"\n :enableTyping=\"enableTyping\"\n :placeholder=\"props.placeholder || t('orders.newsletter.placeholder')\"\n :action=\"props.action === false ? '' : props.action || t('orders.newsletter.action')\"\n :name=\"fieldName\"\n :id=\"fieldId\"\n @update:input=\"email = $event\"\n @action=\"sendApplication\"\n :showLoader=\"true\"\n :showSuccess=\"false\"\n :callbackDelay=\"100\"\n v-bind=\"$attrs\"\n >\n <Popup\n :isPopupOpen=\"isSuccessPopupOpen\"\n @close-popup=\"isSuccessPopupOpen = false\"\n align=\"center center\"\n class=\"bg-white t-black pd-big radius-big\"\n >\n <div class=\"t-center\">\n <h3 class=\"mn-b-medium\">{{ props.successTitle || t('orders.newsletter.success.title') }}</h3>\n <p class=\"opacity-50 mn-b-medium\">{{ props.successSubtitle || t('orders.newsletter.success.subtitle') }}</p>\n \n <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\">\n <a\n v-for=\"social in (props.socials || tm('orders.newsletter.socials'))\"\n :key=\"social.name\"\n :href=\"social.url\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n class=\"hover:scale-[1.05] bg-light radius-small pd-thin ease\"\n >\n <component\n :is=\"socialIcons[social.icon]\"\n class=\"i-medium\"\n :fill=\"'rgb(var(--dark))'\"\n />\n </a>\n </div>\n </div>\n </Popup>\n </FieldBig>\n</template>\n\n<script setup>\nimport { ref, computed } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport { i18nManager } from '@martyrs/src/modules/core/views/classes/i18n.manager.js'\nimport locales from '@martyrs/src/modules/orders/locales/index.js'\n\nimport FieldBig from '@martyrs/src/components/FieldBig/FieldBig.vue'\nimport Popup from '@martyrs/src/components/Popup/Popup.vue'\n\nimport IconFacebook from '@martyrs/src/modules/icons/socials/facebook.vue'\nimport IconInstagram from '@martyrs/src/modules/icons/socials/instagram.vue'\nimport IconTelegram from '@martyrs/src/modules/icons/socials/telegram.vue'\nimport IconTwitter from '@martyrs/src/modules/icons/socials/twitter.vue'\nimport IconYoutube from '@martyrs/src/modules/icons/socials/youtube.vue'\nimport IconLinkedin from '@martyrs/src/modules/icons/socials/linkedin.vue'\nimport IconWhatsapp from '@martyrs/src/modules/icons/socials/whatsapp.vue'\n\nimport { useStore } from '@martyrs/src/modules/core/views/store/core.store.js'\nimport applications from '@martyrs/src/modules/orders/store/applications.js'\n\n// Регистрируем переводы модуля при использовании компонента\ni18nManager.register('orders', locales)\n\nconst store = useStore()\n\nconst props = defineProps({\n // Тексты компонента\n title: {\n type: String,\n default: null\n },\n subtitle: {\n type: String,\n default: null\n },\n placeholder: {\n type: String,\n default: null\n },\n action: {\n type: String,\n default: null\n },\n successTitle: {\n type: String,\n default: null\n },\n successSubtitle: {\n type: String,\n default: null\n },\n socials: {\n type: Array,\n default: null\n },\n // Настройки поля\n typingSpeed: {\n type: Number,\n default: 75\n },\n loopTyping: {\n type: Boolean,\n default: false\n },\n enableTyping: {\n type: Boolean,\n default: false\n },\n fieldName: {\n type: String,\n default: 'newsletter-email'\n },\n fieldId: {\n type: String,\n default: null\n }\n})\n\n// Используем только глобальную локализацию\nconst { t, tm } = useI18n({\n useScope: 'global'\n})\n\nlet email = ref('')\nlet isSuccessPopupOpen = ref(false)\n\nconst socialIcons = {\n facebook: IconFacebook,\n instagram: IconInstagram,\n telegram: IconTelegram,\n twitter: IconTwitter,\n youtube: IconYoutube,\n linkedin: IconLinkedin,\n whatsapp: IconWhatsapp\n}\n\n// Функция валидации email\nfunction validateEmail(email) {\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/\n return emailRegex.test(email)\n}\n\nfunction showSuccessPopup() {\n isSuccessPopupOpen.value = true\n}\n\nasync function sendApplication() {\n // Валидация email перед отправкой\n if (!email.value || !email.value.trim()) {\n store.core.setError({ message: t('validation.email.required') || 'Email is required' })\n return Promise.reject(new Error('Email is required'))\n }\n\n if (!validateEmail(email.value.trim())) {\n store.core.setError({ message: t('validation.email.invalid') || 'Invalid email format' })\n return Promise.reject(new Error('Invalid email format'))\n }\n\n gtag('event', 'subscribe_newsletter', {\n 'event_category': 'conversion',\n 'event_label': 'Subscribe Newsletter'\n });\n\n try {\n let application = {\n type: 'newsletter',\n contacts: {\n email: email.value.trim()\n }\n };\n\n // Используем публичный API для создания заявки\n const response = await fetch(`${process.env.API_URL}/api/applications/public`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify(application)\n });\n\n if (!response.ok) {\n throw new Error('Failed to create application');\n }\n\n const result = await response.json();\n\n showSuccessPopup()\n return Promise.resolve(result);\n } catch (error) {\n console.log(error)\n store.core.setError(error)\n return Promise.reject(error);\n }\n}\n</script>\n\n<style lang=\"scss\">\n</style>"],"names":["IconFacebook","IconInstagram","IconTelegram","IconTwitter","IconYoutube","IconLinkedin","IconWhatsapp","email"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEA,gBAAY,SAAS,UAAU,OAAO;AAEtC,UAAM,QAAQ,SAAQ;AAEtB,UAAM,QAAQ;AAsDd,UAAM,EAAE,GAAG,GAAE,IAAK,QAAQ;AAAA,MACxB,UAAU;AAAA,IACZ,CAAC;AAED,QAAI,QAAQ,IAAI,EAAE;AAClB,QAAI,qBAAqB,IAAI,KAAK;AAElC,UAAM,cAAc;AAAA,MAClB,UAAUA;AAAAA,MACV,WAAWC;AAAAA,MACX,UAAUC;AAAAA,MACV,SAASC;AAAAA,MACT,SAASC;AAAAA,MACT,UAAUC;AAAAA,MACV,UAAUC;AAAAA,IACZ;AAGA,aAAS,cAAcC,QAAO;AAC5B,YAAM,aAAa;AACnB,aAAO,WAAW,KAAKA,MAAK;AAAA,IAC9B;AAEA,aAAS,mBAAmB;AAC1B,yBAAmB,QAAQ;AAAA,IAC7B;AAEA,mBAAe,kBAAkB;AAE/B,UAAI,CAAC,MAAM,SAAS,CAAC,MAAM,MAAM,QAAQ;AACvC,cAAM,KAAK,SAAS,EAAE,SAAS,EAAE,2BAA2B,KAAK,oBAAmB,CAAE;AACtF,eAAO,QAAQ,OAAO,IAAI,MAAM,mBAAmB,CAAC;AAAA,MACtD;AAEA,UAAI,CAAC,cAAc,MAAM,MAAM,KAAI,CAAE,GAAG;AACtC,cAAM,KAAK,SAAS,EAAE,SAAS,EAAE,0BAA0B,KAAK,uBAAsB,CAAE;AACxF,eAAO,QAAQ,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAAA,MACzD;AAEA,WAAK,SAAS,wBAAwB;AAAA,QACpC,kBAAkB;AAAA,QAClB,eAAe;AAAA,MACnB,CAAG;AAED,UAAI;AACF,YAAI,cAAc;AAAA,UAChB,MAAM;AAAA,UACN,UAAU;AAAA,YACR,OAAO,MAAM,MAAM,KAAI;AAAA,UAC/B;AAAA,QACA;AAGI,cAAM,WAAW,MAAM,MAAM,GAAG,QAAQ,IAAI,OAAO,4BAA4B;AAAA,UAC7E,QAAQ;AAAA,UACR,SAAS;AAAA,YACP,gBAAgB;AAAA,UACxB;AAAA,UACM,MAAM,KAAK,UAAU,WAAW;AAAA,QACtC,CAAK;AAED,YAAI,CAAC,SAAS,IAAI;AAChB,gBAAM,IAAI,MAAM,8BAA8B;AAAA,QAChD;AAEA,cAAM,SAAS,MAAM,SAAS,KAAI;AAElC,yBAAgB;AAChB,eAAO,QAAQ,QAAQ,MAAM;AAAA,MAC/B,SAAS,OAAO;AACd,gBAAQ,IAAI,KAAK;AACjB,cAAM,KAAK,SAAS,KAAK;AACzB,eAAO,QAAQ,OAAO,KAAK;AAAA,MAC7B;AAAA,IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,25 +2,25 @@ import { computed, createElementBlock, openBlock, createElementVNode, createComm
|
|
|
2
2
|
import { useI18n } from "vue-i18n";
|
|
3
3
|
const _hoisted_1 = { class: "total-calculations" };
|
|
4
4
|
const _hoisted_2 = { class: "flex flex-nowrap pd-t-small" };
|
|
5
|
-
const _hoisted_3 = { class: "w-100
|
|
5
|
+
const _hoisted_3 = { class: "w-100 opacity-50" };
|
|
6
6
|
const _hoisted_4 = { class: "w-100 t-right" };
|
|
7
7
|
const _hoisted_5 = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "flex flex-nowrap pd-t-small"
|
|
10
10
|
};
|
|
11
|
-
const _hoisted_6 = { class: "w-100
|
|
11
|
+
const _hoisted_6 = { class: "w-100 opacity-50" };
|
|
12
12
|
const _hoisted_7 = { class: "w-100 t-right" };
|
|
13
13
|
const _hoisted_8 = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "flex flex-nowrap pd-t-small"
|
|
16
16
|
};
|
|
17
|
-
const _hoisted_9 = { class: "w-100
|
|
17
|
+
const _hoisted_9 = { class: "w-100 opacity-50" };
|
|
18
18
|
const _hoisted_10 = { class: "w-100 t-right" };
|
|
19
19
|
const _hoisted_11 = {
|
|
20
20
|
key: 2,
|
|
21
21
|
class: "flex flex-nowrap br-black-transp-10 br-b-1px pd-b-small pd-t-small"
|
|
22
22
|
};
|
|
23
|
-
const _hoisted_12 = { class: "w-100
|
|
23
|
+
const _hoisted_12 = { class: "w-100 opacity-50" };
|
|
24
24
|
const _hoisted_13 = { class: "w-100 t-right" };
|
|
25
25
|
const _hoisted_14 = { class: "p-medium flex flex-nowrap pd-b-small pd-t-small" };
|
|
26
26
|
const _hoisted_15 = { class: "w-100 fw-medium" };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceTotal.vue.js","sources":["../../../../../../../src/modules/orders/components/elements/PriceTotal.vue"],"sourcesContent":["<template>\n <div class=\"total-calculations\">\n <!-- Base price calculation -->\n <p class=\"flex flex-nowrap pd-t-small\">\n <span class=\"w-100
|
|
1
|
+
{"version":3,"file":"PriceTotal.vue.js","sources":["../../../../../../../src/modules/orders/components/elements/PriceTotal.vue"],"sourcesContent":["<template>\n <div class=\"total-calculations\">\n <!-- Base price calculation -->\n <p class=\"flex flex-nowrap pd-t-small\">\n <span class=\"w-100 opacity-50\">{{ t('subtotal') }}</span>\n <span class=\"w-100 t-right\">{{currency}}{{totalPrice}}</span>\n </p>\n \n <!-- Platform fee (conditional) -->\n <p v-if=\"showFees\" class=\"flex flex-nowrap pd-t-small\">\n <span class=\"w-100 opacity-50\">{{ t('feesRate') }}</span>\n <span class=\"w-100 t-right\">{{currency}}{{feesRate}}</span>\n </p>\n \n <!-- VAT calculation (conditional) -->\n <p v-if=\"showVat\" class=\"flex flex-nowrap pd-t-small\">\n <span class=\"w-100 opacity-50\">{{ t('vat', { rate: vatRate * 100 }) }}</span>\n <span class=\"w-100 t-right\">{{currency}}{{vatAmount}}</span>\n </p>\n\n <!-- Delivery fee (conditional) -->\n <p v-if=\"showDeliveryFee\" class=\"flex flex-nowrap br-black-transp-10 br-b-1px pd-b-small pd-t-small\">\n <span class=\"w-100 opacity-50\">{{ t('delivery') }}</span>\n <span class=\"w-100 t-right\">{{currency}}{{deliveryAmount}}</span>\n </p>\n \n <!-- Grand total -->\n <p class=\"p-medium flex flex-nowrap pd-b-small pd-t-small\">\n <span class=\"w-100 fw-medium\">{{ t('intotal') }}</span>\n <span class=\"w-100 t-main fw-medium t-right\">{{currency}}{{grandTotal}}</span>\n </p>\n </div>\n</template>\n\n\n<script setup>\nimport { computed } from 'vue';\nimport { useI18n } from 'vue-i18n';\n\nconst props = defineProps({\n totalPrice: {\n type: Number,\n required: true\n },\n currency: {\n type: String,\n required: true\n },\n showFees: {\n type: Boolean,\n default: false\n },\n feesRate: {\n type: Number,\n default: 0\n },\n showVat: {\n type: Boolean,\n default: false\n },\n vatRate: {\n type: Number,\n default: 0\n },\n showDeliveryFee: {\n type: Boolean,\n default: false\n },\n deliveryRate: {\n type: Number,\n default: 0\n }\n});\n\nconst text = {\n messages: {\n en: {\n subtotal: 'Subtotal',\n feesRate: 'Platform Fee',\n vat: 'VAT ({rate}%)',\n delivery: 'Delivery',\n intotal: 'In Total'\n },\n ru: {\n subtotal: 'Подытог',\n feesRate: 'Плата за платформу',\n vat: 'НДС ({rate}%)',\n delivery: 'Доставка',\n intotal: 'Итого'\n }\n }\n};\n\nconst { t } = useI18n(text);\n\nconst formatPrice = (value) => value.toFixed(0);\n\nconst vatAmount = computed(() => {\n if (!props.showVat) return 0;\n return formatPrice(props.totalPrice * props.vatRate);\n});\n\nconst feesRate = computed(() => {\n if (!props.showFees) return 0;\n return formatPrice(props.totalPrice * props.feesRate);\n});\n\nconst deliveryAmount = computed(() => {\n if (!props.showDeliveryFee) return 0;\n return formatPrice(props.deliveryRate);\n});\n\nconst grandTotal = computed(() => {\n return formatPrice(\n parseFloat(props.totalPrice) +\n parseFloat(feesRate.value) +\n parseFloat(vatAmount.value) +\n parseFloat(deliveryAmount.value)\n );\n});\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,UAAM,QAAQ;AAmCd,UAAM,OAAO;AAAA,MACX,UAAU;AAAA,QACR,IAAI;AAAA,UACF,UAAU;AAAA,UACV,UAAU;AAAA,UACV,KAAK;AAAA,UACL,UAAU;AAAA,UACV,SAAS;AAAA,QACf;AAAA,QACI,IAAI;AAAA,UACF,UAAU;AAAA,UACV,UAAU;AAAA,UACV,KAAK;AAAA,UACL,UAAU;AAAA,UACV,SAAS;AAAA,QACf;AAAA,MACA;AAAA,IACA;AAEA,UAAM,EAAE,EAAC,IAAK,QAAQ,IAAI;AAE1B,UAAM,cAAc,CAAC,UAAU,MAAM,QAAQ,CAAC;AAE9C,UAAM,YAAY,SAAS,MAAM;AAC/B,UAAI,CAAC,MAAM,QAAS,QAAO;AAC3B,aAAO,YAAY,MAAM,aAAa,MAAM,OAAO;AAAA,IACrD,CAAC;AAED,UAAM,WAAW,SAAS,MAAM;AAC9B,UAAI,CAAC,MAAM,SAAU,QAAO;AAC5B,aAAO,YAAY,MAAM,aAAa,MAAM,QAAQ;AAAA,IACtD,CAAC;AAED,UAAM,iBAAiB,SAAS,MAAM;AACpC,UAAI,CAAC,MAAM,gBAAiB,QAAO;AACnC,aAAO,YAAY,MAAM,YAAY;AAAA,IACvC,CAAC;AAED,UAAM,aAAa,SAAS,MAAM;AAChC,aAAO;AAAA,QACL,WAAW,MAAM,UAAU,IAC3B,WAAW,SAAS,KAAK,IACzB,WAAW,UAAU,KAAK,IAC1B,WAAW,eAAe,KAAK;AAAA,MACnC;AAAA,IACA,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -97,7 +97,7 @@ const _sfc_main = {
|
|
|
97
97
|
{ name: "Created", value: "created" },
|
|
98
98
|
{ name: "In Progress", value: "in_progress" },
|
|
99
99
|
{ name: "Completed", value: "completed" },
|
|
100
|
-
{ name: "
|
|
100
|
+
{ name: "Canceled", value: "canceled" }
|
|
101
101
|
],
|
|
102
102
|
"onUpdate:select": _cache[5] || (_cache[5] = (option) => {
|
|
103
103
|
application.value.status = option.value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormApplicationDetails.vue.js","sources":["../../../../../../../src/modules/orders/components/forms/FormApplicationDetails.vue"],"sourcesContent":["<template>\n <Block :title=\"title\" class=\"mn-b-thin\">\n <Field \n v-model:field=\"application.contacts.name\" \n label=\"Name\" \n placeholder=\"Enter name\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n <Field \n v-model:field=\"application.contacts.email\" \n label=\"Email\" \n placeholder=\"Enter email\" \n type=\"email\"\n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n <Field \n v-model:field=\"application.contacts.phone\" \n label=\"Phone\" \n placeholder=\"Enter phone\" \n type=\"tel\"\n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n \n <Select \n :select=\"typeSelected\"\n :options=\"[\n {name: 'Newsletter', value: 'newsletter'}, \n {name: 'Support', value: 'support'}, \n {name: 'Inquiry', value: 'inquiry'},\n {name: 'Feedback', value: 'feedback'},\n {name: 'Other', value: 'other'}\n ]\"\n @update:select=\"(option) => { application.type = option.value; typeSelected = option }\"\n placeholder=\"Type\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n\n <Field \n v-model:field=\"application.text\" \n label=\"Message\" \n placeholder=\"Enter message\" \n type=\"textarea\"\n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n\n <Select \n :select=\"statusSelected\"\n :options=\"[\n {name: 'Created', value: 'created'}, \n {name: 'In Progress', value: 'in_progress'}, \n {name: 'Completed', value: 'completed'},\n {name: '
|
|
1
|
+
{"version":3,"file":"FormApplicationDetails.vue.js","sources":["../../../../../../../src/modules/orders/components/forms/FormApplicationDetails.vue"],"sourcesContent":["<template>\n <Block :title=\"title\" class=\"mn-b-thin\">\n <Field \n v-model:field=\"application.contacts.name\" \n label=\"Name\" \n placeholder=\"Enter name\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n <Field \n v-model:field=\"application.contacts.email\" \n label=\"Email\" \n placeholder=\"Enter email\" \n type=\"email\"\n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n <Field \n v-model:field=\"application.contacts.phone\" \n label=\"Phone\" \n placeholder=\"Enter phone\" \n type=\"tel\"\n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n \n <Select \n :select=\"typeSelected\"\n :options=\"[\n {name: 'Newsletter', value: 'newsletter'}, \n {name: 'Support', value: 'support'}, \n {name: 'Inquiry', value: 'inquiry'},\n {name: 'Feedback', value: 'feedback'},\n {name: 'Other', value: 'other'}\n ]\"\n @update:select=\"(option) => { application.type = option.value; typeSelected = option }\"\n placeholder=\"Type\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n\n <Field \n v-model:field=\"application.text\" \n label=\"Message\" \n placeholder=\"Enter message\" \n type=\"textarea\"\n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n\n <Select \n :select=\"statusSelected\"\n :options=\"[\n {name: 'Created', value: 'created'}, \n {name: 'In Progress', value: 'in_progress'}, \n {name: 'Completed', value: 'completed'},\n {name: 'Canceled', value: 'canceled'}\n ]\"\n @update:select=\"(option) => { application.status = option.value; statusSelected = option }\"\n placeholder=\"Status\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n\n <div class=\"gap-thin flex mn-t-small\">\n <Button \n @click=\"handleSave\"\n class=\"w-100 pd-small radius-big bg-main t-black uppercase fw-medium\"\n >\n {{ createMode ? 'Create Application' : 'Save Changes' }}\n </Button>\n <Button \n @click=\"handleCancel\"\n class=\"w-100 pd-small radius-big bg-light t-black uppercase fw-medium\"\n >\n Cancel\n </Button>\n </div>\n </Block>\n</template>\n\n<script setup>\nimport { ref, watch } from \"vue\"\nimport Block from '@martyrs/src/components/Block/Block.vue'\nimport Field from '@martyrs/src/components/Field/Field.vue'\nimport Select from '@martyrs/src/components/Select/Select.vue'\nimport Button from '@martyrs/src/components/Button/Button.vue'\n\nconst application = defineModel('application', { required: true })\n\nlet typeSelected = ref({name: 'Newsletter', value: 'newsletter'})\nlet statusSelected = ref({name: 'Created', value: 'created'})\n\ndefineProps({\n title: {\n type: String,\n default: 'Application Data'\n }, \n createMode: {\n type: Boolean,\n default: false\n }\n});\n\nconst emit = defineEmits(['save', 'cancel']);\n\n// Ensure nested objects exist\nwatch(application, (newApplication) => {\n if (newApplication) {\n if (!newApplication.contacts) {\n newApplication.contacts = { name: null, email: null, phone: null };\n }\n }\n}, { immediate: true, deep: true });\n\nconst handleSave = () => {\n emit('save');\n};\n\nconst handleCancel = () => {\n emit('cancel');\n};\n</script>"],"names":["_useModel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkFA,UAAM,cAAcA,SAAW,SAAC,aAAiC;AAEjE,QAAI,eAAe,IAAI,EAAC,MAAM,cAAc,OAAO,aAAY,CAAC;AAChE,QAAI,iBAAiB,IAAI,EAAC,MAAM,WAAW,OAAO,UAAS,CAAC;AAa5D,UAAM,OAAO;AAGb,UAAM,aAAa,CAAC,mBAAmB;AACrC,UAAI,gBAAgB;AAClB,YAAI,CAAC,eAAe,UAAU;AAC5B,yBAAe,WAAW,EAAE,MAAM,MAAM,OAAO,MAAM,OAAO,KAAI;AAAA,QAClE;AAAA,MACF;AAAA,IACF,GAAG,EAAE,WAAW,MAAM,MAAM,KAAI,CAAE;AAElC,UAAM,aAAa,MAAM;AACvB,WAAK,MAAM;AAAA,IACb;AAEA,UAAM,eAAe,MAAM;AACzB,WAAK,QAAQ;AAAA,IACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useModel, ref, createElementBlock, openBlock, Fragment, createVNode, withCtx, createBlock, unref, renderList } from "vue";
|
|
1
|
+
import { mergeModels, useModel, computed, ref, createElementBlock, openBlock, Fragment, createVNode, withCtx, createBlock, unref, renderList } from "vue";
|
|
2
2
|
import { useRoute } from "vue-router";
|
|
3
3
|
import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
|
|
4
4
|
import _sfc_main$3 from "../../../icons/navigation/IconCross.vue.js";
|
|
@@ -7,28 +7,34 @@ import _sfc_main$7 from "../../../../components/Popup/Popup.vue.js";
|
|
|
7
7
|
import _sfc_main$5 from "../../../../components/Feed/Feed.vue.js";
|
|
8
8
|
import _sfc_main$4 from "../../../core/views/components/blocks/BlockSearch.vue.js";
|
|
9
9
|
import _sfc_main$2 from "../../../core/views/components/blocks/Card.vue.js";
|
|
10
|
-
import _sfc_main$6 from "
|
|
10
|
+
import _sfc_main$6 from "../../../core/views/components/blocks/CardUser.vue.js";
|
|
11
11
|
import _sfc_main$8 from "./FormCustomerDetails.vue.js";
|
|
12
12
|
import { state } from "../../../auth/views/store/auth.js";
|
|
13
13
|
import customers from "../../store/customers.store.js";
|
|
14
14
|
import customerInitState from "../../store/models/customer.js";
|
|
15
15
|
import { useGlobalMixins } from "../../../core/views/mixins/mixins.js";
|
|
16
16
|
const _hoisted_1 = { key: 1 };
|
|
17
|
-
const _hoisted_2 = ["onClick"];
|
|
18
17
|
const _sfc_main = {
|
|
19
18
|
__name: "FormSelectCustomer",
|
|
20
|
-
props: {
|
|
19
|
+
props: /* @__PURE__ */ mergeModels({
|
|
20
|
+
orgId: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: null
|
|
23
|
+
}
|
|
24
|
+
}, {
|
|
21
25
|
"customer": {
|
|
22
26
|
type: Object,
|
|
23
27
|
default: null
|
|
24
28
|
},
|
|
25
29
|
"customerModifiers": {}
|
|
26
|
-
},
|
|
30
|
+
}),
|
|
27
31
|
emits: ["update:customer"],
|
|
28
32
|
setup(__props) {
|
|
29
|
-
const { formatDate } = useGlobalMixins();
|
|
33
|
+
const { formatDate, formatPhone } = useGlobalMixins();
|
|
34
|
+
const props = __props;
|
|
30
35
|
const customer = useModel(__props, "customer");
|
|
31
36
|
const route = useRoute();
|
|
37
|
+
const ownerOrgId = computed(() => props.orgId || route.params._id);
|
|
32
38
|
const searchUser = ref(null);
|
|
33
39
|
const showCreatePopup = ref(false);
|
|
34
40
|
const newCustomer = ref({ ...customerInitState });
|
|
@@ -40,10 +46,10 @@ const _sfc_main = {
|
|
|
40
46
|
}
|
|
41
47
|
function openCreatePopup() {
|
|
42
48
|
newCustomer.value = { ...customerInitState };
|
|
43
|
-
if (
|
|
49
|
+
if (ownerOrgId.value) {
|
|
44
50
|
newCustomer.value.owner = {
|
|
45
51
|
type: "Organization",
|
|
46
|
-
target:
|
|
52
|
+
target: ownerOrgId.value
|
|
47
53
|
};
|
|
48
54
|
}
|
|
49
55
|
newCustomer.value.creator = {
|
|
@@ -59,32 +65,44 @@ const _sfc_main = {
|
|
|
59
65
|
async function saveNewCustomer() {
|
|
60
66
|
try {
|
|
61
67
|
const cleanData = { ...newCustomer.value };
|
|
68
|
+
delete cleanData._id;
|
|
69
|
+
delete cleanData.user;
|
|
62
70
|
if (!cleanData.email) delete cleanData.email;
|
|
63
71
|
if (!cleanData.phone) delete cleanData.phone;
|
|
64
72
|
if (!cleanData.notes) delete cleanData.notes;
|
|
65
|
-
if (!cleanData.referral?.code)
|
|
66
|
-
|
|
73
|
+
if (!cleanData.referral?.code) delete cleanData.referral;
|
|
74
|
+
if (cleanData.messenger && !cleanData.messenger.type) delete cleanData.messenger;
|
|
75
|
+
if (cleanData.socials) {
|
|
76
|
+
const hasSocials = Object.values(cleanData.socials).some((v) => v);
|
|
77
|
+
if (!hasSocials) delete cleanData.socials;
|
|
78
|
+
}
|
|
79
|
+
if (cleanData.address) {
|
|
80
|
+
const hasAddress = Object.values(cleanData.address).some((v) => v);
|
|
81
|
+
if (!hasAddress) delete cleanData.address;
|
|
67
82
|
}
|
|
68
83
|
cleanData.owner = {
|
|
69
84
|
type: "Organization",
|
|
70
|
-
target:
|
|
85
|
+
target: ownerOrgId.value
|
|
71
86
|
};
|
|
72
87
|
cleanData.creator = {
|
|
73
88
|
type: "User",
|
|
74
89
|
target: state.user._id
|
|
75
90
|
};
|
|
91
|
+
console.log("[FormSelectCustomer] ownerOrgId:", ownerOrgId.value, "route._id:", route.params._id);
|
|
92
|
+
console.log("[FormSelectCustomer] cleanData:", JSON.stringify(cleanData));
|
|
76
93
|
const created = await customers.create(cleanData);
|
|
94
|
+
console.log("[FormSelectCustomer] created:", created?._id, created?.profile?.name);
|
|
77
95
|
customer.value = created;
|
|
78
96
|
closeCreatePopup();
|
|
79
97
|
} catch (error) {
|
|
80
|
-
console.error("Error creating customer:", error);
|
|
98
|
+
console.error("[FormSelectCustomer] Error creating customer:", error?.message, error?.status, error?.info);
|
|
81
99
|
}
|
|
82
100
|
}
|
|
83
101
|
return (_ctx, _cache) => {
|
|
84
102
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
85
103
|
createVNode(_sfc_main$1, {
|
|
86
104
|
title: "Customer",
|
|
87
|
-
class: "pos-relative
|
|
105
|
+
class: "pos-relative",
|
|
88
106
|
actions: [{
|
|
89
107
|
label: "+",
|
|
90
108
|
function: () => openCreatePopup()
|
|
@@ -94,13 +112,14 @@ const _sfc_main = {
|
|
|
94
112
|
customer.value?._id ? (openBlock(), createBlock(_sfc_main$2, {
|
|
95
113
|
key: 0,
|
|
96
114
|
photo: customer.value.profile?.photo,
|
|
97
|
-
title: customer.value.profile?.name || customer.value.phone || customer.value.email || "Unnamed Customer",
|
|
98
|
-
subtitle: customer.value.email || customer.value.phone,
|
|
115
|
+
title: customer.value.profile?.name || unref(formatPhone)(customer.value.phone) || customer.value.email || "Unnamed Customer",
|
|
116
|
+
subtitle: customer.value.email || unref(formatPhone)(customer.value.phone),
|
|
99
117
|
action: {
|
|
100
118
|
label: { is: _sfc_main$3 },
|
|
101
119
|
method: clearCustomer
|
|
102
120
|
},
|
|
103
|
-
|
|
121
|
+
classImage: "h-3r w-3r radius-small o-hidden flex-shrink-0",
|
|
122
|
+
class: "h-4r w-100 bg-white pd-thin radius-medium mn-b-thin flex-v-center flex-nowrap flex gap-thin cursor-pointer"
|
|
104
123
|
}, null, 8, ["photo", "title", "subtitle", "action"])) : (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
105
124
|
createVNode(_sfc_main$4, {
|
|
106
125
|
onSearch: _cache[0] || (_cache[0] = (event) => {
|
|
@@ -119,23 +138,25 @@ const _sfc_main = {
|
|
|
119
138
|
store: unref(customers),
|
|
120
139
|
options: {
|
|
121
140
|
search: searchUser.value,
|
|
122
|
-
owner:
|
|
141
|
+
owner: ownerOrgId.value
|
|
123
142
|
},
|
|
124
143
|
showLoadMore: false,
|
|
125
144
|
class: "h-max-20r o-scroll"
|
|
126
145
|
}, {
|
|
127
146
|
default: withCtx(({ items }) => [
|
|
128
147
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items, (customerItem) => {
|
|
129
|
-
return openBlock(),
|
|
148
|
+
return openBlock(), createBlock(_sfc_main$6, {
|
|
130
149
|
key: customerItem._id,
|
|
131
150
|
onClick: ($event) => selectCustomer(customerItem),
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
151
|
+
user: customerItem,
|
|
152
|
+
photo: customerItem.profile?.photo,
|
|
153
|
+
name: customerItem.profile?.name || unref(formatPhone)(customerItem.phone) || customerItem.email || "Unnamed",
|
|
154
|
+
phone: unref(formatPhone)(customerItem.phone),
|
|
155
|
+
email: customerItem.email,
|
|
156
|
+
status: customerItem.status,
|
|
157
|
+
statusClass: customerItem.status === "active" ? "bg-green t-white" : "bg-red t-white",
|
|
158
|
+
class: "bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer h-4r"
|
|
159
|
+
}, null, 8, ["onClick", "user", "photo", "name", "phone", "email", "status", "statusClass"]);
|
|
139
160
|
}), 128))
|
|
140
161
|
]),
|
|
141
162
|
_: 1
|