@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,69 +1,320 @@
|
|
|
1
|
-
import { ref, computed, createElementBlock, openBlock,
|
|
1
|
+
import { ref, computed, reactive, resolveComponent, createElementBlock, openBlock, createBlock, createCommentVNode, createVNode, unref, withCtx, createElementVNode, toDisplayString, normalizeClass, Fragment, createTextVNode, normalizeStyle } from "vue";
|
|
2
2
|
import dayjs from "../../../../../../../_virtual/dayjs.min.js";
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import
|
|
3
|
+
import _sfc_main$2 from "../../../../../components/Feed/Feed.vue.js";
|
|
4
|
+
import Field from "../../../../../components/Field/Field.vue.js";
|
|
5
|
+
import _sfc_main$4 from "../../../../../components/Popup/Popup.vue.js";
|
|
6
|
+
import Button from "../../../../../components/Button/Button.vue2.js";
|
|
7
|
+
import _sfc_main$7 from "../../../../../components/Block/Block.vue.js";
|
|
8
|
+
import _sfc_main$5 from "../../../../orders/components/blocks/CardOrderItem.vue.js";
|
|
9
|
+
import _sfc_main$1 from "../../../../core/views/components/sections/SectionPageTitle.vue.js";
|
|
10
|
+
import _sfc_main$3 from "./Gant/GanttChart.vue.js";
|
|
11
|
+
import IconChevronBottom from "../../../../icons/navigation/IconChevronBottom.vue.js";
|
|
12
|
+
import _sfc_main$6 from "../../../../orders/components/forms/FormSelectCustomer.vue.js";
|
|
13
|
+
import { state } from "../../../../auth/views/store/auth.js";
|
|
7
14
|
import { useRoute, useRouter } from "vue-router";
|
|
8
|
-
import {
|
|
15
|
+
import { useGlobalMixins } from "../../../../core/views/mixins/mixins.js";
|
|
16
|
+
import { actions as actions$1 } from "../../store/rents.store.js";
|
|
17
|
+
import { actions } from "../../../../products/store/products.js";
|
|
18
|
+
import { actions as actions$2 } from "../../../../orders/store/orders.js";
|
|
19
|
+
import { useStore } from "../../../../core/views/store/core.store.js";
|
|
9
20
|
const _hoisted_1 = { class: "pd-medium mobile:pd-thin bg-white" };
|
|
10
|
-
const _hoisted_2 =
|
|
11
|
-
const _hoisted_3 = { class: "
|
|
21
|
+
const _hoisted_2 = ["onClick"];
|
|
22
|
+
const _hoisted_3 = { class: "fw-bold truncate" };
|
|
23
|
+
const _hoisted_4 = {
|
|
24
|
+
key: 1,
|
|
25
|
+
class: "flex flex-v-center gap-micro h-100 pd-l-medium o-hidden"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_5 = { class: "t-small opacity-50 truncate" };
|
|
28
|
+
const _hoisted_6 = {
|
|
29
|
+
key: 2,
|
|
30
|
+
class: "fw-medium truncate"
|
|
31
|
+
};
|
|
32
|
+
const _hoisted_7 = {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "w-100"
|
|
35
|
+
};
|
|
36
|
+
const _hoisted_8 = { class: "mn-b-small" };
|
|
37
|
+
const _hoisted_9 = { class: "flex-nowrap flex gap-thin" };
|
|
38
|
+
const _hoisted_10 = { class: "w-100 bg-light radius-small pd-small" };
|
|
39
|
+
const _hoisted_11 = { class: "fw-medium" };
|
|
40
|
+
const _hoisted_12 = { class: "w-100 bg-light radius-small pd-small" };
|
|
41
|
+
const _hoisted_13 = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "mn-b-small"
|
|
44
|
+
};
|
|
45
|
+
const _hoisted_14 = { class: "flex-nowrap flex gap-thin" };
|
|
46
|
+
const _hoisted_15 = { class: "mn-b-small" };
|
|
47
|
+
const _hoisted_16 = { class: "flex-nowrap flex gap-thin" };
|
|
48
|
+
const _hoisted_17 = { class: "w-100 bg-light radius-small pd-small" };
|
|
49
|
+
const _hoisted_18 = { class: "w-100 bg-light radius-small pd-small" };
|
|
50
|
+
const _hoisted_19 = { class: "mn-b-small" };
|
|
51
|
+
const _hoisted_20 = {
|
|
52
|
+
key: 0,
|
|
53
|
+
class: "flex-nowrap flex gap-thin"
|
|
54
|
+
};
|
|
55
|
+
const _hoisted_21 = { class: "w-100 bg-light radius-small pd-small" };
|
|
56
|
+
const _hoisted_22 = { class: "w-100 bg-light radius-small pd-small" };
|
|
57
|
+
const _hoisted_23 = { class: "flex-v-center flex gap-micro" };
|
|
58
|
+
const _hoisted_24 = {
|
|
59
|
+
key: 1,
|
|
60
|
+
class: "bg-light radius-small pd-small opacity-50 t-small"
|
|
61
|
+
};
|
|
62
|
+
const _hoisted_25 = {
|
|
63
|
+
key: 1,
|
|
64
|
+
class: "mn-b-small"
|
|
65
|
+
};
|
|
66
|
+
const _hoisted_26 = { class: "flex-column flex w-100" };
|
|
67
|
+
const _hoisted_27 = { class: "fw-medium t-small" };
|
|
68
|
+
const _hoisted_28 = { class: "mn-b-small" };
|
|
69
|
+
const _hoisted_29 = { class: "w-100" };
|
|
70
|
+
const _hoisted_30 = {
|
|
71
|
+
key: 0,
|
|
72
|
+
class: "fw-medium mn-b-micro"
|
|
73
|
+
};
|
|
74
|
+
const _hoisted_31 = {
|
|
75
|
+
key: 1,
|
|
76
|
+
class: "t-small opacity-70 mn-b-micro"
|
|
77
|
+
};
|
|
78
|
+
const _hoisted_32 = {
|
|
79
|
+
key: 2,
|
|
80
|
+
class: "t-small opacity-70"
|
|
81
|
+
};
|
|
82
|
+
const _hoisted_33 = {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: "bg-light radius-small pd-small opacity-50"
|
|
85
|
+
};
|
|
86
|
+
const _hoisted_34 = {
|
|
87
|
+
key: 2,
|
|
88
|
+
class: "mn-b-small"
|
|
89
|
+
};
|
|
90
|
+
const _hoisted_35 = { class: "bg-light radius-small pd-small t-small" };
|
|
91
|
+
const _hoisted_36 = { class: "flex-nowrap flex gap-small" };
|
|
92
|
+
const _hoisted_37 = { class: "flex flex-column gap-thin" };
|
|
12
93
|
const _sfc_main = {
|
|
13
94
|
__name: "Rents",
|
|
14
95
|
setup(__props) {
|
|
96
|
+
const { core } = useStore();
|
|
15
97
|
const route = useRoute();
|
|
16
98
|
useRouter();
|
|
17
|
-
const
|
|
18
|
-
const
|
|
99
|
+
const { isPhone } = useGlobalMixins();
|
|
100
|
+
const currentProducts = ref([]);
|
|
101
|
+
const view = ref("hours");
|
|
19
102
|
const date = ref(/* @__PURE__ */ new Date());
|
|
20
103
|
const loading = ref(false);
|
|
21
104
|
const dateRange = computed(() => {
|
|
22
105
|
const d = dayjs(date.value);
|
|
23
106
|
switch (view.value) {
|
|
24
107
|
case "hours":
|
|
25
|
-
return {
|
|
26
|
-
start: d.startOf("day").toDate(),
|
|
27
|
-
end: d.endOf("day").toDate()
|
|
28
|
-
};
|
|
108
|
+
return { start: d.startOf("day").toDate(), end: d.endOf("day").toDate() };
|
|
29
109
|
case "days":
|
|
30
|
-
return {
|
|
31
|
-
start: d.startOf("month").toDate(),
|
|
32
|
-
end: d.endOf("month").toDate()
|
|
33
|
-
};
|
|
110
|
+
return { start: d.startOf("month").toDate(), end: d.endOf("month").toDate() };
|
|
34
111
|
case "weeks":
|
|
35
|
-
return {
|
|
36
|
-
start: d.subtract(1, "month").startOf("week").toDate(),
|
|
37
|
-
end: d.add(2, "months").endOf("week").toDate()
|
|
38
|
-
};
|
|
112
|
+
return { start: d.subtract(1, "month").startOf("week").toDate(), end: d.add(2, "months").endOf("week").toDate() };
|
|
39
113
|
default:
|
|
40
|
-
return {
|
|
41
|
-
start: d.startOf("month").toDate(),
|
|
42
|
-
end: d.endOf("month").toDate()
|
|
43
|
-
};
|
|
114
|
+
return { start: d.startOf("month").toDate(), end: d.endOf("month").toDate() };
|
|
44
115
|
}
|
|
45
116
|
});
|
|
117
|
+
const routePrefix = computed(() => {
|
|
118
|
+
const ctx = route.meta.context;
|
|
119
|
+
if (ctx === "backoffice") return "Backoffice";
|
|
120
|
+
if (ctx === "organization") return "Organization_";
|
|
121
|
+
return "";
|
|
122
|
+
});
|
|
123
|
+
const getOwnerIdFromProduct = (owner) => {
|
|
124
|
+
if (!owner) return route.params._id;
|
|
125
|
+
if (typeof owner === "string") return owner;
|
|
126
|
+
if (typeof owner?.target === "string") return owner.target;
|
|
127
|
+
if (owner?.target?._id) return owner.target._id;
|
|
128
|
+
return route.params._id;
|
|
129
|
+
};
|
|
130
|
+
const expandedProducts = ref(/* @__PURE__ */ new Set());
|
|
131
|
+
const toggleProduct = (productId) => {
|
|
132
|
+
const s = new Set(expandedProducts.value);
|
|
133
|
+
s.has(productId) ? s.delete(productId) : s.add(productId);
|
|
134
|
+
expandedProducts.value = s;
|
|
135
|
+
};
|
|
136
|
+
const expandedInitialized = ref(false);
|
|
137
|
+
const ganttGroups = (productItems) => {
|
|
138
|
+
if (!expandedInitialized.value && productItems.length > 0) {
|
|
139
|
+
productItems.forEach((p) => {
|
|
140
|
+
if (p.variants?.length) expandedProducts.value.add(p._id);
|
|
141
|
+
});
|
|
142
|
+
expandedProducts.value = new Set(expandedProducts.value);
|
|
143
|
+
expandedInitialized.value = true;
|
|
144
|
+
}
|
|
145
|
+
const groups = [];
|
|
146
|
+
productItems.forEach((product) => {
|
|
147
|
+
const hasVariants = product.variants?.length > 0;
|
|
148
|
+
groups.push({
|
|
149
|
+
key: product._id,
|
|
150
|
+
title: product.name || "Unknown",
|
|
151
|
+
data: { productId: product._id, isProductRow: true, hasVariants, productImages: product.images || [], productPrice: product.price || 0, productOwner: product.owner, productRentPeriod: product.rentPeriod || "day" }
|
|
152
|
+
});
|
|
153
|
+
if (hasVariants && expandedProducts.value.has(product._id)) {
|
|
154
|
+
product.variants.forEach((variant) => {
|
|
155
|
+
groups.push({
|
|
156
|
+
key: `${product._id}_${variant._id}`,
|
|
157
|
+
title: variant.name || "Default",
|
|
158
|
+
data: {
|
|
159
|
+
productId: product._id,
|
|
160
|
+
productName: product.name || "Unknown",
|
|
161
|
+
variantId: variant._id,
|
|
162
|
+
variantName: variant.name,
|
|
163
|
+
isVariantRow: true,
|
|
164
|
+
productImages: variant.images?.length ? variant.images : product.images || [],
|
|
165
|
+
productPrice: variant.price || product.price || 0,
|
|
166
|
+
productOwner: product.owner,
|
|
167
|
+
productRentPeriod: product.rentPeriod || "day"
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
return groups;
|
|
174
|
+
};
|
|
175
|
+
const flattenProductRents = (productItems) => {
|
|
176
|
+
const result = [];
|
|
177
|
+
productItems.forEach((product) => {
|
|
178
|
+
const name = product.name || "Unknown";
|
|
179
|
+
const hasVariants = product.variants?.length > 0;
|
|
180
|
+
if (product.rents?.length > 0) {
|
|
181
|
+
product.rents.forEach((rent) => {
|
|
182
|
+
const groupKey = hasVariants && rent.variant ? `${product._id}_${rent.variant}` : product._id;
|
|
183
|
+
result.push({ ...rent, productDetails: { name, productId: groupKey } });
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
if (!product.rents?.some((r) => !r.variant)) {
|
|
187
|
+
result.push({ _id: `placeholder-${product._id}`, productDetails: { name, productId: product._id }, startDate: null, endDate: null, status: null });
|
|
188
|
+
}
|
|
189
|
+
if (hasVariants && expandedProducts.value.has(product._id)) {
|
|
190
|
+
product.variants.forEach((variant) => {
|
|
191
|
+
const varKey = `${product._id}_${variant._id}`;
|
|
192
|
+
if (!product.rents?.some((r) => r.variant === variant._id)) {
|
|
193
|
+
result.push({ _id: `placeholder-${varKey}`, productDetails: { name: variant.name || "Default", productId: varKey }, startDate: null, endDate: null, status: null });
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
return result;
|
|
199
|
+
};
|
|
200
|
+
const showCreatePopup = ref(false);
|
|
201
|
+
const createRentData = reactive({
|
|
202
|
+
productId: null,
|
|
203
|
+
productName: "",
|
|
204
|
+
productImages: [],
|
|
205
|
+
productPrice: 0,
|
|
206
|
+
productOwner: null,
|
|
207
|
+
variantId: null,
|
|
208
|
+
variantName: "",
|
|
209
|
+
comment: "",
|
|
210
|
+
customer: null,
|
|
211
|
+
rentPeriod: "day"
|
|
212
|
+
});
|
|
213
|
+
const createRentDates = ref({ start: null, end: null });
|
|
214
|
+
const closeCreatePopup = () => {
|
|
215
|
+
showCreatePopup.value = false;
|
|
216
|
+
createRentData.productId = null;
|
|
217
|
+
createRentData.productName = "";
|
|
218
|
+
createRentData.productImages = [];
|
|
219
|
+
createRentData.productPrice = 0;
|
|
220
|
+
createRentData.productOwner = null;
|
|
221
|
+
createRentData.variantId = null;
|
|
222
|
+
createRentData.variantName = "";
|
|
223
|
+
createRentData.comment = "";
|
|
224
|
+
createRentData.customer = null;
|
|
225
|
+
createRentData.rentPeriod = "day";
|
|
226
|
+
createRentDates.value = { start: null, end: null };
|
|
227
|
+
};
|
|
228
|
+
const handleCellClick = ({ group, cell }) => {
|
|
229
|
+
if (!group?.data) return;
|
|
230
|
+
const d = cell?.date ? dayjs(cell.date) : dayjs();
|
|
231
|
+
createRentData.productId = group.data.productId;
|
|
232
|
+
createRentData.productName = group.data.isVariantRow ? group.data.productName : group.title;
|
|
233
|
+
createRentData.productImages = group.data.productImages || [];
|
|
234
|
+
createRentData.productPrice = group.data.productPrice || 0;
|
|
235
|
+
createRentData.productOwner = group.data.productOwner;
|
|
236
|
+
createRentData.variantId = group.data.variantId || null;
|
|
237
|
+
createRentData.variantName = group.data.variantName || "";
|
|
238
|
+
createRentData.comment = "";
|
|
239
|
+
createRentData.customer = null;
|
|
240
|
+
createRentData.rentPeriod = group.data.productRentPeriod || "day";
|
|
241
|
+
const start = d.toDate();
|
|
242
|
+
const end = d.add(4, "hour").toDate();
|
|
243
|
+
createRentDates.value = { start, end };
|
|
244
|
+
showCreatePopup.value = true;
|
|
245
|
+
};
|
|
246
|
+
const onRentDatesUpdate = (productId, variantId, dates) => {
|
|
247
|
+
createRentDates.value = dates;
|
|
248
|
+
};
|
|
249
|
+
const submitCreateRent = async () => {
|
|
250
|
+
const { start, end } = createRentDates.value;
|
|
251
|
+
if (!start || !end) throw new Error("No dates selected");
|
|
252
|
+
const ownerId = getOwnerIdFromProduct(createRentData.productOwner);
|
|
253
|
+
const startDate = new Date(start).toISOString();
|
|
254
|
+
const endDate = new Date(end).toISOString();
|
|
255
|
+
console.log("[submitCreateRent] customer:", JSON.stringify(createRentData.customer));
|
|
256
|
+
console.log("[submitCreateRent] customer._id:", createRentData.customer?._id);
|
|
257
|
+
const rentResult = await actions$1.create({
|
|
258
|
+
product: createRentData.productId,
|
|
259
|
+
variant: createRentData.variantId || void 0,
|
|
260
|
+
startDate,
|
|
261
|
+
endDate,
|
|
262
|
+
status: "pending",
|
|
263
|
+
comment: createRentData.comment || void 0,
|
|
264
|
+
owner: { type: "Organization", target: ownerId },
|
|
265
|
+
creator: { type: "User", target: state.user?._id }
|
|
266
|
+
});
|
|
267
|
+
console.log("[submitCreateRent] rentResult:", JSON.stringify(rentResult));
|
|
268
|
+
const customerPayload = createRentData.customer?._id ? { type: "Customer", target: createRentData.customer._id } : createRentData.customer?.phone ? { type: "Customer", target: null, phone: createRentData.customer.phone, email: createRentData.customer.email, profile: { name: createRentData.customer.profile?.name } } : void 0;
|
|
269
|
+
console.log("[submitCreateRent] customerPayload for order:", JSON.stringify(customerPayload));
|
|
270
|
+
const orderResult = await actions$2.create({
|
|
271
|
+
customer: createRentData.customer?._id ? { type: "Customer", target: createRentData.customer._id } : createRentData.customer?.phone ? { type: "Customer", target: null, phone: createRentData.customer.phone, email: createRentData.customer.email, profile: { name: createRentData.customer.profile?.name } } : void 0,
|
|
272
|
+
owner: { type: "Organization", target: ownerId },
|
|
273
|
+
status: "pending",
|
|
274
|
+
creator: { type: "User", target: state.user?._id },
|
|
275
|
+
comment: createRentData.comment || void 0,
|
|
276
|
+
existingRents: rentResult?._id ? [rentResult._id] : [],
|
|
277
|
+
positions: [{
|
|
278
|
+
_id: createRentData.productId,
|
|
279
|
+
variant: createRentData.variantId || void 0,
|
|
280
|
+
name: createRentData.productName,
|
|
281
|
+
price: createRentData.productPrice,
|
|
282
|
+
quantity: 1,
|
|
283
|
+
listing: "rent",
|
|
284
|
+
rentPeriod: createRentData.rentPeriod || "flat",
|
|
285
|
+
date: { start: startDate, end: endDate }
|
|
286
|
+
}]
|
|
287
|
+
});
|
|
288
|
+
console.log("[submitCreateRent] orderResult:", JSON.stringify(orderResult));
|
|
289
|
+
console.log("[submitCreateRent] orderResult.customer:", JSON.stringify(orderResult?.customer));
|
|
290
|
+
if (!orderResult?._id) throw new Error("Order creation failed");
|
|
291
|
+
if (rentResult?._id) {
|
|
292
|
+
await actions$1.update({ _id: rentResult._id, order: orderResult._id });
|
|
293
|
+
rentResult.order = orderResult._id;
|
|
294
|
+
}
|
|
295
|
+
if (createRentData.customer) {
|
|
296
|
+
rentResult.customer = {
|
|
297
|
+
profile: createRentData.customer.profile,
|
|
298
|
+
phone: createRentData.customer.phone,
|
|
299
|
+
email: createRentData.customer.email
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
const product = currentProducts.value.find((p) => p._id === createRentData.productId);
|
|
303
|
+
if (product) {
|
|
304
|
+
if (!product.rents) product.rents = [];
|
|
305
|
+
core.actions.add(product.rents, rentResult);
|
|
306
|
+
}
|
|
307
|
+
closeCreatePopup();
|
|
308
|
+
};
|
|
46
309
|
const handleLoadMore = async (direction) => {
|
|
47
|
-
console.log("Loading more:", direction);
|
|
48
310
|
loading.value = true;
|
|
49
311
|
try {
|
|
50
312
|
if (direction !== "refresh") {
|
|
51
313
|
const d = dayjs(date.value);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
case "hours":
|
|
55
|
-
newDate = direction === "forward" ? d.add(1, "day").toDate() : d.subtract(1, "day").toDate();
|
|
56
|
-
break;
|
|
57
|
-
case "days":
|
|
58
|
-
newDate = direction === "forward" ? d.add(1, "month").toDate() : d.subtract(1, "month").toDate();
|
|
59
|
-
break;
|
|
60
|
-
case "weeks":
|
|
61
|
-
newDate = direction === "forward" ? d.add(1, "month").toDate() : d.subtract(1, "month").toDate();
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
date.value = newDate;
|
|
314
|
+
const unit = view.value === "hours" ? "day" : "month";
|
|
315
|
+
date.value = direction === "forward" ? d.add(1, unit).toDate() : d.subtract(1, unit).toDate();
|
|
65
316
|
}
|
|
66
|
-
await actions.read({
|
|
317
|
+
await actions$1.read({
|
|
67
318
|
owner: route.params._id,
|
|
68
319
|
startDate: dateRange.value.start.toISOString(),
|
|
69
320
|
endDate: dateRange.value.end.toISOString()
|
|
@@ -74,78 +325,432 @@ const _sfc_main = {
|
|
|
74
325
|
loading.value = false;
|
|
75
326
|
}
|
|
76
327
|
};
|
|
328
|
+
const handleToday = () => {
|
|
329
|
+
date.value = /* @__PURE__ */ new Date();
|
|
330
|
+
};
|
|
331
|
+
const selectedRent = ref(null);
|
|
332
|
+
const selectedRentOrder = ref(null);
|
|
333
|
+
const selectedRentCustomer = ref(null);
|
|
334
|
+
const orderLink = computed(() => {
|
|
335
|
+
if (!selectedRent.value?.order) return "";
|
|
336
|
+
const ctx = route.meta.context;
|
|
337
|
+
const id = selectedRent.value.order;
|
|
338
|
+
if (ctx === "backoffice") return `/backoffice/orders/${id}`;
|
|
339
|
+
if (ctx === "organization") return `/organizations/${route.params._id}/orders/${id}`;
|
|
340
|
+
return `/orders/${id}`;
|
|
341
|
+
});
|
|
342
|
+
const customerLink = computed(() => {
|
|
343
|
+
if (!selectedRentCustomer.value?._id) return "";
|
|
344
|
+
const ctx = route.meta.context;
|
|
345
|
+
const id = selectedRentCustomer.value._id;
|
|
346
|
+
if (ctx === "backoffice") return `/backoffice/customers?customerId=${id}`;
|
|
347
|
+
if (ctx === "organization") return `/organizations/${route.params._id}/customers?customerId=${id}`;
|
|
348
|
+
return `/customers?customerId=${id}`;
|
|
349
|
+
});
|
|
350
|
+
const rentStatusClass = computed(() => {
|
|
351
|
+
const map = { pending: "bg-yellow", confirmed: "bg-second", active: "bg-green", completed: "bg-grey", canceled: "bg-red" };
|
|
352
|
+
return map[selectedRent.value?.status] || "bg-second";
|
|
353
|
+
});
|
|
354
|
+
const formatDate = (d) => d ? dayjs(d).format("HH:mm, DD MMM YYYY") : "—";
|
|
355
|
+
const loadOrderData = async (orderId) => {
|
|
356
|
+
if (!orderId) return;
|
|
357
|
+
try {
|
|
358
|
+
console.log("[loadOrderData] loading order:", orderId);
|
|
359
|
+
const result = await actions$2.read({ _id: orderId });
|
|
360
|
+
console.log("[loadOrderData] result:", JSON.stringify(result?.[0]?.customer));
|
|
361
|
+
if (result?.length > 0) {
|
|
362
|
+
selectedRentOrder.value = result[0];
|
|
363
|
+
console.log("[loadOrderData] customer.target:", result[0].customer?.target);
|
|
364
|
+
console.log("[loadOrderData] customer.target type:", typeof result[0].customer?.target);
|
|
365
|
+
if (result[0].customer?.target) selectedRentCustomer.value = result[0].customer.target;
|
|
366
|
+
console.log("[loadOrderData] selectedRentCustomer:", JSON.stringify(selectedRentCustomer.value));
|
|
367
|
+
}
|
|
368
|
+
} catch (err) {
|
|
369
|
+
console.error("[loadOrderData] Error:", err);
|
|
370
|
+
}
|
|
371
|
+
};
|
|
77
372
|
const handleItemClick = (item) => {
|
|
78
|
-
|
|
373
|
+
if (item._id?.startsWith("placeholder-")) return;
|
|
374
|
+
console.log("[handleItemClick] item:", item._id, "order:", item.order);
|
|
375
|
+
selectedRent.value = item;
|
|
376
|
+
selectedRentOrder.value = null;
|
|
377
|
+
selectedRentCustomer.value = null;
|
|
378
|
+
if (item.order) loadOrderData(item.order);
|
|
79
379
|
};
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
380
|
+
const closeRentPopup = () => {
|
|
381
|
+
selectedRent.value = null;
|
|
382
|
+
selectedRentOrder.value = null;
|
|
383
|
+
selectedRentCustomer.value = null;
|
|
384
|
+
};
|
|
385
|
+
const updateRentInProducts = (rentId, updates) => {
|
|
386
|
+
for (const product of currentProducts.value) {
|
|
387
|
+
if (!product.rents) continue;
|
|
388
|
+
const rent = product.rents.find((r) => r._id === rentId);
|
|
389
|
+
if (rent) {
|
|
390
|
+
Object.assign(rent, updates);
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
85
393
|
}
|
|
86
394
|
};
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
395
|
+
const confirmRent = async () => {
|
|
396
|
+
try {
|
|
397
|
+
await actions$1.update({ _id: selectedRent.value._id, status: "active" });
|
|
398
|
+
selectedRent.value.status = "active";
|
|
399
|
+
updateRentInProducts(selectedRent.value._id, { status: "active" });
|
|
400
|
+
if (selectedRentOrder.value) {
|
|
401
|
+
await actions$2.update({ _id: selectedRentOrder.value._id, status: "in_progress" });
|
|
402
|
+
selectedRentOrder.value.status = "in_progress";
|
|
403
|
+
}
|
|
404
|
+
} catch (err) {
|
|
405
|
+
console.error("Error confirming rent:", err);
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
const cancelRent = async () => {
|
|
409
|
+
try {
|
|
410
|
+
await actions$1.update({ _id: selectedRent.value._id, status: "canceled" });
|
|
411
|
+
selectedRent.value.status = "canceled";
|
|
412
|
+
updateRentInProducts(selectedRent.value._id, { status: "canceled" });
|
|
413
|
+
if (selectedRentOrder.value) {
|
|
414
|
+
await actions$2.update({ _id: selectedRentOrder.value._id, status: "canceled" });
|
|
415
|
+
selectedRentOrder.value.status = "canceled";
|
|
416
|
+
}
|
|
417
|
+
closeRentPopup();
|
|
418
|
+
} catch (err) {
|
|
419
|
+
console.error("Error canceling rent:", err);
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
const closeRent = async () => {
|
|
423
|
+
try {
|
|
424
|
+
await actions$1.update({ _id: selectedRent.value._id, status: "completed" });
|
|
425
|
+
selectedRent.value.status = "completed";
|
|
426
|
+
updateRentInProducts(selectedRent.value._id, { status: "completed" });
|
|
427
|
+
if (selectedRentOrder.value) {
|
|
428
|
+
await actions$2.update({ _id: selectedRentOrder.value._id, status: "finished" });
|
|
429
|
+
selectedRentOrder.value.status = "finished";
|
|
430
|
+
}
|
|
431
|
+
closeRentPopup();
|
|
432
|
+
} catch (err) {
|
|
433
|
+
console.error("Error closing rent:", err);
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
const closeRentNow = async () => {
|
|
437
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
438
|
+
try {
|
|
439
|
+
await actions$1.update({ _id: selectedRent.value._id, status: "completed", endDate: now });
|
|
440
|
+
selectedRent.value.status = "completed";
|
|
441
|
+
selectedRent.value.endDate = now;
|
|
442
|
+
updateRentInProducts(selectedRent.value._id, { status: "completed", endDate: now });
|
|
443
|
+
if (selectedRentOrder.value) {
|
|
444
|
+
await actions$2.update({ _id: selectedRentOrder.value._id, status: "finished" });
|
|
445
|
+
selectedRentOrder.value.status = "finished";
|
|
446
|
+
}
|
|
447
|
+
closeRentPopup();
|
|
448
|
+
} catch (err) {
|
|
449
|
+
console.error("Error closing rent:", err);
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
const togglePaymentStatus = async () => {
|
|
453
|
+
if (!selectedRentOrder.value) return;
|
|
454
|
+
const newStatus = selectedRentOrder.value.payment?.status === "paid" ? "unpaid" : "paid";
|
|
455
|
+
try {
|
|
456
|
+
await actions$2.update({ _id: selectedRentOrder.value._id, payment: { ...selectedRentOrder.value.payment, status: newStatus } });
|
|
457
|
+
selectedRentOrder.value.payment = { ...selectedRentOrder.value.payment, status: newStatus };
|
|
458
|
+
} catch (err) {
|
|
459
|
+
console.error("Error toggling payment:", err);
|
|
460
|
+
}
|
|
94
461
|
};
|
|
95
462
|
return (_ctx, _cache) => {
|
|
463
|
+
const _component_router_link = resolveComponent("router-link");
|
|
96
464
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
])
|
|
109
|
-
]),
|
|
110
|
-
createVNode(_sfc_main$1, {
|
|
465
|
+
!_ctx.MOBILE_APP ? (openBlock(), createBlock(_sfc_main$1, {
|
|
466
|
+
key: 0,
|
|
467
|
+
title: "Rents",
|
|
468
|
+
actions: [
|
|
469
|
+
{ method: () => _ctx.$router.push({ name: routePrefix.value + "Create Rent" }), label: "+ Add Rent" }
|
|
470
|
+
],
|
|
471
|
+
class: "mn-b-medium"
|
|
472
|
+
}, null, 8, ["actions"])) : createCommentVNode("", true),
|
|
473
|
+
createVNode(_sfc_main$2, {
|
|
474
|
+
items: currentProducts.value,
|
|
475
|
+
"onUpdate:items": _cache[3] || (_cache[3] = ($event) => currentProducts.value = $event),
|
|
111
476
|
search: true,
|
|
112
477
|
keepSlotVisible: true,
|
|
113
478
|
states: {
|
|
114
479
|
empty: {
|
|
115
|
-
title: "No
|
|
116
|
-
description: "
|
|
480
|
+
title: "No Tables Found",
|
|
481
|
+
description: "No products available."
|
|
117
482
|
}
|
|
118
483
|
},
|
|
119
484
|
store: { read: (options) => actions.read(options) },
|
|
120
485
|
options: {
|
|
121
486
|
owner: unref(route).params._id,
|
|
487
|
+
listing: "rent",
|
|
488
|
+
lookup: ["rents", "variants"],
|
|
122
489
|
startDate: dateRange.value.start.toISOString(),
|
|
123
|
-
endDate: dateRange.value.end.toISOString()
|
|
490
|
+
endDate: dateRange.value.end.toISOString(),
|
|
491
|
+
limit: 50
|
|
124
492
|
}
|
|
125
493
|
}, {
|
|
126
|
-
default: withCtx(({ items }) => [
|
|
127
|
-
createVNode(_sfc_main$
|
|
494
|
+
default: withCtx(({ items: productItems }) => [
|
|
495
|
+
createVNode(_sfc_main$3, {
|
|
128
496
|
view: view.value,
|
|
129
|
-
"onUpdate:view": _cache[
|
|
497
|
+
"onUpdate:view": _cache[0] || (_cache[0] = ($event) => view.value = $event),
|
|
130
498
|
date: date.value,
|
|
131
|
-
"onUpdate:date": _cache[
|
|
499
|
+
"onUpdate:date": _cache[1] || (_cache[1] = ($event) => date.value = $event),
|
|
132
500
|
dateRange: dateRange.value,
|
|
133
|
-
"onUpdate:dateRange": _cache[
|
|
134
|
-
items,
|
|
501
|
+
"onUpdate:dateRange": _cache[2] || (_cache[2] = ($event) => dateRange.value = $event),
|
|
502
|
+
items: flattenProductRents(productItems),
|
|
503
|
+
"external-groups": ganttGroups(productItems),
|
|
135
504
|
loading: loading.value,
|
|
136
505
|
"title-key": "productDetails.name",
|
|
137
506
|
"start-key": "startDate",
|
|
138
507
|
"end-key": "endDate",
|
|
139
508
|
"status-key": "status",
|
|
140
509
|
"id-key": "_id",
|
|
141
|
-
"group-by": "productDetails.
|
|
510
|
+
"group-by": "productDetails.productId",
|
|
142
511
|
onLoadMore: handleLoadMore,
|
|
143
512
|
onItemClick: handleItemClick,
|
|
513
|
+
onCellClick: handleCellClick,
|
|
144
514
|
onToday: handleToday
|
|
145
|
-
},
|
|
515
|
+
}, {
|
|
516
|
+
"product-col": withCtx(({ group }) => [
|
|
517
|
+
group.data?.isProductRow && group.data?.hasVariants ? (openBlock(), createElementBlock("div", {
|
|
518
|
+
key: 0,
|
|
519
|
+
class: "flex flex-v-center gap-micro cursor-pointer h-100 w-100 o-hidden",
|
|
520
|
+
onClick: ($event) => toggleProduct(group.data.productId)
|
|
521
|
+
}, [
|
|
522
|
+
createElementVNode("span", _hoisted_3, toDisplayString(group.title), 1),
|
|
523
|
+
createVNode(IconChevronBottom, {
|
|
524
|
+
fill: "rgba(var(--dark))",
|
|
525
|
+
class: normalizeClass(["i-small mn-l-auto ease-out flex-shrink-0", { "rotate-180deg": expandedProducts.value.has(group.data.productId) }])
|
|
526
|
+
}, null, 8, ["class"])
|
|
527
|
+
], 8, _hoisted_2)) : group.data?.isVariantRow ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
528
|
+
createElementVNode("span", _hoisted_5, toDisplayString(group.data.variantName || "Default"), 1)
|
|
529
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(group.title), 1))
|
|
530
|
+
]),
|
|
531
|
+
_: 2
|
|
532
|
+
}, 1032, ["view", "date", "dateRange", "items", "external-groups", "loading"])
|
|
533
|
+
]),
|
|
534
|
+
_: 1
|
|
535
|
+
}, 8, ["items", "store", "options"]),
|
|
536
|
+
createVNode(_sfc_main$4, {
|
|
537
|
+
isPopupOpen: !!selectedRent.value,
|
|
538
|
+
onClosePopup: closeRentPopup,
|
|
539
|
+
align: unref(isPhone)() ? "bottom center" : "center center",
|
|
540
|
+
title: "Rent Details",
|
|
541
|
+
class: "bg-white radius-medium pd-small w-clamp-25r-25r-100 mobile:radius-zero mobile:radius-tr-medium mobile:radius-tl-medium"
|
|
542
|
+
}, {
|
|
543
|
+
default: withCtx(() => [
|
|
544
|
+
selectedRent.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
545
|
+
_cache[26] || (_cache[26] = createElementVNode("p", { class: "mn-b-small opacity-50" }, " Booking information and customer details. ", -1)),
|
|
546
|
+
createElementVNode("div", _hoisted_8, [
|
|
547
|
+
createElementVNode("div", _hoisted_9, [
|
|
548
|
+
createElementVNode("div", _hoisted_10, [
|
|
549
|
+
_cache[6] || (_cache[6] = createElementVNode("p", { class: "mn-b-micro opacity-50 t-small" }, "Product", -1)),
|
|
550
|
+
createElementVNode("p", _hoisted_11, toDisplayString(selectedRent.value.productDetails?.name), 1)
|
|
551
|
+
]),
|
|
552
|
+
createElementVNode("div", _hoisted_12, [
|
|
553
|
+
_cache[7] || (_cache[7] = createElementVNode("p", { class: "mn-b-micro opacity-50 t-small" }, "Status", -1)),
|
|
554
|
+
createElementVNode("span", {
|
|
555
|
+
class: normalizeClass(["pd-micro pd-l-thin pd-r-thin radius-extra t-micro t-white", rentStatusClass.value])
|
|
556
|
+
}, toDisplayString(selectedRent.value.status), 3)
|
|
557
|
+
])
|
|
558
|
+
])
|
|
559
|
+
]),
|
|
560
|
+
selectedRent.value.status !== "completed" && selectedRent.value.status !== "canceled" ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
561
|
+
_cache[12] || (_cache[12] = createElementVNode("p", { class: "mn-b-thin fw-medium" }, "Actions", -1)),
|
|
562
|
+
createElementVNode("div", _hoisted_14, [
|
|
563
|
+
selectedRent.value.status === "pending" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
564
|
+
createVNode(Button, {
|
|
565
|
+
submit: () => confirmRent(),
|
|
566
|
+
class: "pd-small radius-small flex-center flex w-100 cursor-pointer bg-second t-white t-small"
|
|
567
|
+
}, {
|
|
568
|
+
default: withCtx(() => _cache[8] || (_cache[8] = [
|
|
569
|
+
createTextVNode(" Confirm ")
|
|
570
|
+
])),
|
|
571
|
+
_: 1
|
|
572
|
+
}, 8, ["submit"]),
|
|
573
|
+
createVNode(Button, {
|
|
574
|
+
submit: () => cancelRent(),
|
|
575
|
+
class: "pd-small radius-small flex-center flex w-100 cursor-pointer bg-red t-white t-small"
|
|
576
|
+
}, {
|
|
577
|
+
default: withCtx(() => _cache[9] || (_cache[9] = [
|
|
578
|
+
createTextVNode(" Cancel ")
|
|
579
|
+
])),
|
|
580
|
+
_: 1
|
|
581
|
+
}, 8, ["submit"])
|
|
582
|
+
], 64)) : createCommentVNode("", true),
|
|
583
|
+
selectedRent.value.status === "confirmed" || selectedRent.value.status === "active" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
584
|
+
createVNode(Button, {
|
|
585
|
+
submit: () => closeRent(),
|
|
586
|
+
class: "pd-small radius-small flex-center flex w-100 cursor-pointer bg-main t-black t-small"
|
|
587
|
+
}, {
|
|
588
|
+
default: withCtx(() => _cache[10] || (_cache[10] = [
|
|
589
|
+
createTextVNode(" Close ")
|
|
590
|
+
])),
|
|
591
|
+
_: 1
|
|
592
|
+
}, 8, ["submit"]),
|
|
593
|
+
createVNode(Button, {
|
|
594
|
+
submit: () => closeRentNow(),
|
|
595
|
+
class: "pd-small radius-small flex-center flex w-100 cursor-pointer bg-green t-white t-small"
|
|
596
|
+
}, {
|
|
597
|
+
default: withCtx(() => _cache[11] || (_cache[11] = [
|
|
598
|
+
createTextVNode(" Close Now ")
|
|
599
|
+
])),
|
|
600
|
+
_: 1
|
|
601
|
+
}, 8, ["submit"])
|
|
602
|
+
], 64)) : createCommentVNode("", true)
|
|
603
|
+
])
|
|
604
|
+
])) : createCommentVNode("", true),
|
|
605
|
+
createElementVNode("div", _hoisted_15, [
|
|
606
|
+
_cache[15] || (_cache[15] = createElementVNode("p", { class: "mn-b-thin fw-medium" }, "Period", -1)),
|
|
607
|
+
createElementVNode("div", _hoisted_16, [
|
|
608
|
+
createElementVNode("div", _hoisted_17, [
|
|
609
|
+
_cache[13] || (_cache[13] = createElementVNode("p", { class: "mn-b-micro opacity-50 t-small" }, "From", -1)),
|
|
610
|
+
createElementVNode("p", null, toDisplayString(formatDate(selectedRent.value.startDate)), 1)
|
|
611
|
+
]),
|
|
612
|
+
createElementVNode("div", _hoisted_18, [
|
|
613
|
+
_cache[14] || (_cache[14] = createElementVNode("p", { class: "mn-b-micro opacity-50 t-small" }, "To", -1)),
|
|
614
|
+
createElementVNode("p", null, toDisplayString(formatDate(selectedRent.value.endDate)), 1)
|
|
615
|
+
])
|
|
616
|
+
])
|
|
617
|
+
]),
|
|
618
|
+
createElementVNode("div", _hoisted_19, [
|
|
619
|
+
_cache[18] || (_cache[18] = createElementVNode("p", { class: "mn-b-thin fw-medium" }, "Payment", -1)),
|
|
620
|
+
selectedRentOrder.value?.payment ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
621
|
+
createElementVNode("div", _hoisted_21, [
|
|
622
|
+
_cache[16] || (_cache[16] = createElementVNode("p", { class: "mn-b-micro opacity-50 t-small" }, "Method", -1)),
|
|
623
|
+
createElementVNode("p", null, toDisplayString(selectedRentOrder.value.payment.type || "—"), 1)
|
|
624
|
+
]),
|
|
625
|
+
createElementVNode("div", _hoisted_22, [
|
|
626
|
+
_cache[17] || (_cache[17] = createElementVNode("p", { class: "mn-b-micro opacity-50 t-small" }, "Status", -1)),
|
|
627
|
+
createElementVNode("div", _hoisted_23, [
|
|
628
|
+
createElementVNode("p", {
|
|
629
|
+
class: normalizeClass(["fw-medium", selectedRentOrder.value.payment?.status === "paid" ? "t-green" : "t-red"])
|
|
630
|
+
}, toDisplayString(selectedRentOrder.value.payment?.status || "unpaid"), 3),
|
|
631
|
+
createElementVNode("div", {
|
|
632
|
+
onClick: togglePaymentStatus,
|
|
633
|
+
class: normalizeClass(["cursor-pointer radius-extra mn-l-auto", selectedRentOrder.value.payment?.status === "paid" ? "bg-green" : "bg-light"]),
|
|
634
|
+
style: { "width": "36px", "height": "20px", "position": "relative", "transition": "background 0.2s", "flex-shrink": "0" }
|
|
635
|
+
}, [
|
|
636
|
+
createElementVNode("div", {
|
|
637
|
+
class: "bg-white radius-extra",
|
|
638
|
+
style: normalizeStyle([{ "width": "16px", "height": "16px", "position": "absolute", "top": "2px", "transition": "left 0.2s" }, { left: selectedRentOrder.value.payment?.status === "paid" ? "18px" : "2px" }])
|
|
639
|
+
}, null, 4)
|
|
640
|
+
], 2)
|
|
641
|
+
])
|
|
642
|
+
])
|
|
643
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_24, " No order linked "))
|
|
644
|
+
]),
|
|
645
|
+
selectedRent.value.order ? (openBlock(), createElementBlock("div", _hoisted_25, [
|
|
646
|
+
_cache[21] || (_cache[21] = createElementVNode("p", { class: "mn-b-thin fw-medium" }, "Order", -1)),
|
|
647
|
+
createVNode(_component_router_link, {
|
|
648
|
+
to: orderLink.value,
|
|
649
|
+
class: "flex-v-center flex gap-thin bg-light radius-small pd-small cursor-pointer hover:opacity-70"
|
|
650
|
+
}, {
|
|
651
|
+
default: withCtx(() => [
|
|
652
|
+
createElementVNode("div", _hoisted_26, [
|
|
653
|
+
_cache[19] || (_cache[19] = createElementVNode("p", { class: "t-small opacity-50 mn-b-micro" }, "Order ID", -1)),
|
|
654
|
+
createElementVNode("p", _hoisted_27, toDisplayString(selectedRent.value.order), 1)
|
|
655
|
+
]),
|
|
656
|
+
_cache[20] || (_cache[20] = createElementVNode("span", { class: "t-small opacity-50" }, "→", -1))
|
|
657
|
+
]),
|
|
658
|
+
_: 1
|
|
659
|
+
}, 8, ["to"])
|
|
660
|
+
])) : createCommentVNode("", true),
|
|
661
|
+
createElementVNode("div", _hoisted_28, [
|
|
662
|
+
_cache[23] || (_cache[23] = createElementVNode("p", { class: "mn-b-thin fw-medium" }, "Customer", -1)),
|
|
663
|
+
selectedRentCustomer.value ? (openBlock(), createBlock(_component_router_link, {
|
|
664
|
+
key: 0,
|
|
665
|
+
to: customerLink.value,
|
|
666
|
+
class: "bg-light radius-small pd-small cursor-pointer hover:opacity-70 flex-v-center flex"
|
|
667
|
+
}, {
|
|
668
|
+
default: withCtx(() => [
|
|
669
|
+
createElementVNode("div", _hoisted_29, [
|
|
670
|
+
selectedRentCustomer.value.profile?.name ? (openBlock(), createElementBlock("p", _hoisted_30, toDisplayString(selectedRentCustomer.value.profile.name), 1)) : createCommentVNode("", true),
|
|
671
|
+
selectedRentCustomer.value.phone ? (openBlock(), createElementBlock("p", _hoisted_31, toDisplayString(selectedRentCustomer.value.phone), 1)) : createCommentVNode("", true),
|
|
672
|
+
selectedRentCustomer.value.email ? (openBlock(), createElementBlock("p", _hoisted_32, toDisplayString(selectedRentCustomer.value.email), 1)) : createCommentVNode("", true)
|
|
673
|
+
]),
|
|
674
|
+
_cache[22] || (_cache[22] = createElementVNode("span", { class: "t-small opacity-50" }, "→", -1))
|
|
675
|
+
]),
|
|
676
|
+
_: 1
|
|
677
|
+
}, 8, ["to"])) : (openBlock(), createElementBlock("div", _hoisted_33, " No customer linked "))
|
|
678
|
+
]),
|
|
679
|
+
selectedRent.value.comment ? (openBlock(), createElementBlock("div", _hoisted_34, [
|
|
680
|
+
_cache[24] || (_cache[24] = createElementVNode("p", { class: "mn-b-thin fw-medium" }, "Comment", -1)),
|
|
681
|
+
createElementVNode("div", _hoisted_35, toDisplayString(selectedRent.value.comment), 1)
|
|
682
|
+
])) : createCommentVNode("", true),
|
|
683
|
+
createElementVNode("div", _hoisted_36, [
|
|
684
|
+
createVNode(Button, {
|
|
685
|
+
submit: () => closeRentPopup(),
|
|
686
|
+
showLoader: false,
|
|
687
|
+
showSucces: false,
|
|
688
|
+
class: "pd-small radius-small flex-center flex w-100 cursor-pointer bg-main t-black"
|
|
689
|
+
}, {
|
|
690
|
+
default: withCtx(() => _cache[25] || (_cache[25] = [
|
|
691
|
+
createTextVNode(" Close ")
|
|
692
|
+
])),
|
|
693
|
+
_: 1
|
|
694
|
+
}, 8, ["submit"])
|
|
695
|
+
])
|
|
696
|
+
])) : createCommentVNode("", true)
|
|
697
|
+
]),
|
|
698
|
+
_: 1
|
|
699
|
+
}, 8, ["isPopupOpen", "align"]),
|
|
700
|
+
createVNode(_sfc_main$4, {
|
|
701
|
+
isPopupOpen: showCreatePopup.value,
|
|
702
|
+
onClosePopup: closeCreatePopup,
|
|
703
|
+
align: unref(isPhone)() ? "bottom center" : "center right",
|
|
704
|
+
title: "Create Rent",
|
|
705
|
+
class: "bg-white pd-small w-clamp-25r-25r-100 desktop:h-100 desktop:radius-zero mobile:radius-zero mobile:radius-tr-medium mobile:radius-tl-medium"
|
|
706
|
+
}, {
|
|
707
|
+
default: withCtx(() => [
|
|
708
|
+
createElementVNode("div", _hoisted_37, [
|
|
709
|
+
createVNode(_sfc_main$5, {
|
|
710
|
+
editable: true,
|
|
711
|
+
productId: createRentData.productId,
|
|
712
|
+
variantId: createRentData.variantId,
|
|
713
|
+
images: createRentData.productImages,
|
|
714
|
+
name: createRentData.productName,
|
|
715
|
+
price: createRentData.productPrice,
|
|
716
|
+
listing: "rent",
|
|
717
|
+
dates: createRentDates.value,
|
|
718
|
+
rentPeriod: createRentData.rentPeriod,
|
|
719
|
+
onUpdateRentDates: onRentDatesUpdate,
|
|
720
|
+
class: "pd-thin radius-small bg-white"
|
|
721
|
+
}, null, 8, ["productId", "variantId", "images", "name", "price", "dates", "rentPeriod"]),
|
|
722
|
+
createVNode(_sfc_main$6, {
|
|
723
|
+
customer: createRentData.customer,
|
|
724
|
+
"onUpdate:customer": _cache[4] || (_cache[4] = ($event) => createRentData.customer = $event),
|
|
725
|
+
orgId: getOwnerIdFromProduct(createRentData.productOwner)
|
|
726
|
+
}, null, 8, ["customer", "orgId"]),
|
|
727
|
+
createVNode(_sfc_main$7, {
|
|
728
|
+
title: "Comment",
|
|
729
|
+
class: ""
|
|
730
|
+
}, {
|
|
731
|
+
default: withCtx(() => [
|
|
732
|
+
createVNode(Field, {
|
|
733
|
+
modelValue: createRentData.comment,
|
|
734
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => createRentData.comment = $event),
|
|
735
|
+
type: "textarea",
|
|
736
|
+
class: "bg-white radius-small pd-small"
|
|
737
|
+
}, null, 8, ["modelValue"])
|
|
738
|
+
]),
|
|
739
|
+
_: 1
|
|
740
|
+
}),
|
|
741
|
+
createVNode(Button, {
|
|
742
|
+
submit: () => submitCreateRent(),
|
|
743
|
+
class: "bg-second t-white pd-small radius-small w-100 mn-t-thin"
|
|
744
|
+
}, {
|
|
745
|
+
default: withCtx(() => _cache[27] || (_cache[27] = [
|
|
746
|
+
createTextVNode(" Create Rent ")
|
|
747
|
+
])),
|
|
748
|
+
_: 1
|
|
749
|
+
}, 8, ["submit"])
|
|
750
|
+
])
|
|
146
751
|
]),
|
|
147
752
|
_: 1
|
|
148
|
-
}, 8, ["
|
|
753
|
+
}, 8, ["isPopupOpen", "align"])
|
|
149
754
|
]);
|
|
150
755
|
};
|
|
151
756
|
}
|