@ozdao/martyrs 0.2.487 → 0.2.489
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.cjs +4 -4
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.cjs +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/auth.server.cjs +1 -1
- package/dist/auth.server.js +1 -1
- package/dist/{authJwt-D35KyJlE.cjs → authJwt-BIZ2GIfT.cjs} +0 -27
- package/dist/{authJwt-DqxhUym0.js → authJwt-J1csaMWA.js} +0 -27
- package/dist/builder.cjs +10 -0
- package/dist/builder.js +10 -0
- package/dist/chats.server.cjs +1 -1
- package/dist/chats.server.js +1 -1
- package/dist/community.server.cjs +3 -3
- package/dist/community.server.js +3 -3
- package/dist/{crud-BDIArc5A.cjs → crud-B-kQw3Z5.cjs} +5 -4
- package/dist/{crud-DJvpe0aZ.js → crud-Cwx5VlSm.js} +5 -4
- package/dist/events.server.cjs +3 -3
- package/dist/events.server.js +3 -3
- package/dist/files.server.cjs +31 -14
- package/dist/files.server.js +31 -14
- package/dist/gallery.server.cjs +2 -2
- package/dist/gallery.server.js +2 -2
- package/dist/{globals.abac-Cm9e8Jdk.cjs → globals.abac-CPXLas7N.cjs} +1 -1
- package/dist/{globals.abac-DBV_kaOq.js → globals.abac-DNdtSYop.js} +1 -1
- package/dist/{index-DiSKVCaA.cjs → index-BFxqqmgh.cjs} +1 -1
- package/dist/{index-CVuQC4k1.js → index-_Edcmck_.js} +1 -1
- package/dist/main-CmuUC0tl.cjs +11 -0
- package/dist/{main-nQmkbWsW.js → main-IVRL6IjM.js} +2949 -2666
- package/dist/martyrs/src/components/Button/{Button.vue.cjs → Button.vue2.cjs} +3 -3
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +3 -3
- package/dist/martyrs/src/components/Button/{Button.vue.cjs.map → Button.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Calendar/Calendar.vue.cjs +31 -5
- package/dist/martyrs/src/components/Calendar/Calendar.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Calendar/Calendar.vue.js +32 -6
- package/dist/martyrs/src/components/Calendar/Calendar.vue.js.map +1 -1
- package/dist/martyrs/src/components/Chips/{Chips.vue.cjs → Chips.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Chips/{Chips.vue.js → Chips.vue2.js} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Countdown/Countdown.vue.cjs +4 -4
- package/dist/martyrs/src/components/Countdown/Countdown.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js +4 -4
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js.map +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.cjs +28 -19
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js +29 -20
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js.map +1 -1
- package/dist/martyrs/src/components/Feed/Carousel.vue.cjs +20 -9
- package/dist/martyrs/src/components/Feed/Carousel.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Carousel.vue.js +22 -11
- package/dist/martyrs/src/components/Feed/Carousel.vue.js.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +29 -26
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +45 -42
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/Field/{Field.vue2.cjs → Field.vue.cjs} +15 -9
- package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Field/{Field.vue2.js → Field.vue.js} +16 -10
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -0
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +25 -24
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +27 -26
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.js +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.js +1 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Menu/MenuItem.vue.cjs +1 -1
- package/dist/martyrs/src/components/Menu/MenuItem.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Menu/MenuItem.vue.js +1 -1
- package/dist/martyrs/src/components/Menu/MenuItem.vue.js.map +1 -1
- package/dist/martyrs/src/components/Select/Select.vue.cjs +27 -15
- package/dist/martyrs/src/components/Select/Select.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Select/Select.vue.js +28 -16
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -1
- package/dist/martyrs/src/components/Status/Snack.vue.cjs +63 -0
- package/dist/martyrs/src/components/Status/Snack.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Status/Snack.vue.js +63 -0
- package/dist/martyrs/src/components/Status/Snack.vue.js.map +1 -0
- package/dist/martyrs/src/components/Tab/Tab.vue2.cjs +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/Tab/Tab.vue2.js +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue2.js.map +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +3 -2
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +3 -2
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.cjs +0 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js +0 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterCode.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +5 -5
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +5 -5
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +1 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +1 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +10 -10
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +5 -5
- 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.cjs +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +6 -6
- 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.cjs +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +5 -5
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.cjs.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/ProfileEditCredentials.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +23 -23
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.cjs +3 -3
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js +3 -3
- package/dist/martyrs/src/modules/backoffice/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +2 -2
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +4 -4
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs.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/pages/Blog.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Blog.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Blog.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Blog.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +2 -4
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -4
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +3 -3
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +12 -12
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Card.vue.cjs +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Card.vue.js +3 -3
- package/dist/martyrs/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/Embed.vue.js +2 -2
- package/dist/martyrs/src/modules/constructor/components/sections/Viewer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/constructor/components/sections/Viewer.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/sections/Viewer.vue.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/sections/Viewer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +33 -30
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +36 -33
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +3 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +26 -25
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +15 -15
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +8 -8
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +8 -8
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +3 -3
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +3 -3
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.cjs +9 -5
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.js +9 -5
- package/dist/martyrs/src/modules/events/components/sections/FeaturedEvents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs +18 -24
- package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +19 -25
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.cjs +3 -3
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js +3 -3
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -3
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -3
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/locales/en.cjs +9 -1
- package/dist/martyrs/src/modules/globals/locales/en.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/locales/en.js +9 -1
- package/dist/martyrs/src/modules/globals/locales/en.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.store.cjs +5 -2
- package/dist/martyrs/src/modules/globals/views/classes/globals.store.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.store.js +5 -2
- package/dist/martyrs/src/modules/globals/views/classes/globals.store.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +16 -15
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue.js +17 -16
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +16 -20
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +16 -20
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +14 -7
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +14 -7
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +11 -3
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +11 -3
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/CitySelection.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/CitySelection.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/CitySelection.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/CitySelection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/plugins/date-picker.plugin.cjs +17 -7
- package/dist/martyrs/src/modules/globals/views/plugins/date-picker.plugin.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/plugins/date-picker.plugin.js +18 -8
- package/dist/martyrs/src/modules/globals/views/plugins/date-picker.plugin.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/router/addRoutes.cjs +4 -1
- package/dist/martyrs/src/modules/globals/views/router/addRoutes.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/router/addRoutes.js +4 -1
- package/dist/martyrs/src/modules/globals/views/router/addRoutes.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/store/globals.cjs +30 -0
- package/dist/martyrs/src/modules/globals/views/store/globals.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/store/globals.js +30 -0
- package/dist/martyrs/src/modules/globals/views/store/globals.js.map +1 -1
- package/dist/martyrs/src/modules/icons/actions/IconOpenLink.vue.cjs +32 -0
- package/dist/martyrs/src/modules/icons/actions/IconOpenLink.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/icons/actions/IconOpenLink.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/actions/IconOpenLink.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconInfo.vue.cjs +4 -2
- package/dist/martyrs/src/modules/icons/entities/IconInfo.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/entities/IconInfo.vue.js +5 -3
- package/dist/martyrs/src/modules/icons/entities/IconInfo.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/icons.client.cjs +4 -0
- package/dist/martyrs/src/modules/icons/icons.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/icons.client.js +108 -104
- package/dist/martyrs/src/modules/icons/icons.client.js.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +3 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +138 -136
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
- package/dist/martyrs/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/skeletons/SkeletonEventShort.vue.js +1 -1
- package/dist/martyrs/src/modules/icons/skeletons/SkeletonEventShort.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/socials/telegram.vue.cjs +11 -7
- package/dist/martyrs/src/modules/icons/socials/telegram.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/socials/telegram.vue.js +11 -7
- package/dist/martyrs/src/modules/icons/socials/telegram.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.cjs +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.cjs +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.cjs.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/SectionJoinUs.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionJoinUs.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionJoinUs.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionJoinUs.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs.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/layouts/Marketplace.vue.cjs +0 -13
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +0 -13
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +14 -14
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +19 -19
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +13 -13
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +22 -22
- package/dist/martyrs/src/modules/music/components/layouts/MusicLayout.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/layouts/MusicLayout.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +11 -11
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs +2 -2
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +2 -2
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.cjs +8 -8
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js +8 -8
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +98 -73
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +99 -74
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +82 -57
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +82 -57
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +22 -14
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +22 -14
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +205 -36
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +208 -39
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.cjs +20 -11
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js +20 -11
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js +5 -5
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/Succes.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/Succes.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.cjs +6 -0
- package/dist/martyrs/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +6 -0
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/shopcart.cjs +75 -94
- package/dist/martyrs/src/modules/orders/store/shopcart.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/store/shopcart.js +75 -94
- package/dist/martyrs/src/modules/orders/store/shopcart.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +11 -3
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +11 -3
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -3
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +16 -17
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +3 -3
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +16 -16
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +8 -8
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +3 -3
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +3 -3
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.cjs +0 -3
- package/dist/martyrs/src/modules/organizations/organizations.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.js +18 -21
- package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs +0 -2
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.js +0 -2
- package/dist/martyrs/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -2
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -2
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -2
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -2
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs +7 -4
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +7 -4
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs +18 -21
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +19 -22
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +48 -45
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +49 -46
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +13 -21
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +23 -31
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +29 -18
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +29 -18
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +5 -7
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +21 -23
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +3 -2
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +3 -2
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +6 -6
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +12 -12
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.cjs +11 -3
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.js +11 -3
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs +8 -16
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js +8 -16
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +80 -61
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +100 -81
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/HeroRecommendation.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +8 -14
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +9 -15
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs.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/products.client.cjs +1 -13
- package/dist/martyrs/src/modules/products/products.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/products.client.js +36 -48
- package/dist/martyrs/src/modules/products/products.client.js.map +1 -1
- package/dist/martyrs/src/modules/products/store/products.cjs +4 -4
- package/dist/martyrs/src/modules/products/store/products.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/store/products.js +4 -4
- package/dist/martyrs/src/modules/products/store/products.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.cjs +3 -3
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.js +3 -3
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs +12 -4
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +15 -7
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +41 -33
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +42 -34
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +0 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +0 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +0 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +0 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +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.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +13 -13
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +8 -8
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +4 -4
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js.map +1 -1
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +20 -20
- package/dist/music.server.cjs +3 -3
- package/dist/music.server.js +3 -3
- package/dist/notifications.server.cjs +1 -1
- package/dist/notifications.server.js +1 -1
- package/dist/orders.server.cjs +155 -64
- package/dist/orders.server.js +155 -64
- package/dist/organizations.server.cjs +25 -4
- package/dist/organizations.server.js +25 -4
- package/dist/{ownership.schema-CCZX5vfw.js → ownership.schema-BqH4v5vH.js} +2 -2
- package/dist/{ownership.schema-DCosqOc1.cjs → ownership.schema-D1p5XSpt.cjs} +2 -2
- package/dist/products.server.cjs +64 -288
- package/dist/products.server.js +64 -288
- package/dist/rents.server.cjs +35 -13
- package/dist/rents.server.js +35 -13
- package/dist/style.css +198 -201
- package/dist/wallet.server.cjs +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/web-BXhlxo6M.cjs +1 -0
- package/dist/web-Czi05iGG.js +54 -0
- package/package.json +1 -1
- package/src/builder/rspack/rspack.config.base.js +14 -0
- package/src/components/Breadcrumbs/Breadcrumbs.vue +200 -62
- package/src/components/Button/Button.vue +1 -1
- package/src/components/Calendar/Calendar.vue +53 -3
- package/src/components/Countdown/Countdown.vue +4 -4
- package/src/components/DatePicker/DatePicker.vue +32 -22
- package/src/components/Feed/Carousel.vue +18 -3
- package/src/components/Feed/Feed.vue +24 -31
- package/src/components/Field/Field.vue +9 -31
- package/src/components/FieldBig/FieldBig.vue +17 -18
- package/src/components/Loader/Loader.vue +1 -8
- package/src/components/Menu/MenuItem.vue +1 -1
- package/src/components/Select/Select.vue +19 -27
- package/src/components/Status/Snack.vue +4 -2
- package/src/components/Tab/Tab.vue +2 -2
- package/src/components/UploadImageMultiple/UploadImageMultiple.vue +9 -14
- package/src/main.js +2 -0
- package/src/modules/auth/controllers/middlewares/authJwt.js +0 -29
- package/src/modules/auth/views/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/views/components/pages/SignIn.vue +1 -1
- package/src/modules/auth/views/components/pages/SignUp.vue +1 -1
- package/src/modules/auth/views/components/sections/FeaturedUsers.vue +1 -1
- package/src/modules/backoffice/components/admin/Users.vue +1 -1
- package/src/modules/backoffice/components/partials/Sidebar.vue +3 -3
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/layouts/Community.vue +5 -5
- package/src/modules/community/components/pages/Blog.vue +1 -1
- package/src/modules/community/components/sections/Comments.vue +1 -1
- package/src/modules/constructor/components/sections/Viewer.vue +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +35 -29
- package/src/modules/events/components/pages/Event.vue +4 -3
- package/src/modules/events/components/pages/Events.vue +3 -3
- package/src/modules/events/components/pages/EventsBackoffice.vue +1 -1
- package/src/modules/events/components/sections/FeaturedEvents.vue +8 -4
- package/src/modules/events/components/sections/List.vue +17 -18
- package/src/modules/events/components/sections/SelectDate.vue +2 -2
- package/src/modules/files/controllers/files.controller.js +14 -3
- package/src/modules/files/middlewares/server/middlewareBusboy.js +46 -17
- package/src/modules/globals/controllers/classes/crud/crud.controller.js +5 -2
- package/src/modules/globals/controllers/classes/crud/crud.js +1 -1
- package/src/modules/globals/controllers/classes/crud/crud.service.js +0 -1
- package/src/modules/globals/controllers/classes/globals.abac.js +1 -1
- package/src/modules/globals/locales/en.js +8 -0
- package/src/modules/globals/models/schemas/ownership.schema.js +2 -2
- package/src/modules/globals/views/classes/globals.store.js +8 -2
- package/src/modules/globals/views/components/blocks/BlockSearch.vue +12 -17
- package/src/modules/globals/views/components/blocks/CardHeader.vue +9 -11
- package/src/modules/globals/views/components/blocks/PopupDateSelector.vue +19 -9
- package/src/modules/globals/views/components/layouts/Client.vue +15 -9
- package/src/modules/globals/views/components/partials/CitySelection.vue +1 -1
- package/src/modules/globals/views/components/partials/FooterAlt.vue +1 -1
- package/src/modules/globals/views/components/partials/Sidebar.vue +1 -1
- package/src/modules/globals/views/components/sections/Walkthrough.vue +2 -2
- package/src/modules/globals/views/plugins/date-picker.plugin.js +17 -7
- package/src/modules/globals/views/router/addRoutes.js +4 -1
- package/src/modules/globals/views/store/globals.js +1 -1
- package/src/modules/icons/actions/IconOpenLink.vue +14 -0
- package/src/modules/icons/entities/IconInfo.vue +2 -2
- package/src/modules/icons/icons.client.js +8 -0
- package/src/modules/icons/pages/IconsPage.vue +2 -0
- package/src/modules/icons/skeletons/SkeletonEventShort.vue +2 -2
- package/src/modules/icons/socials/telegram.vue +2 -2
- package/src/modules/inventory/components/forms/AdjustmentForm.vue +225 -0
- package/src/modules/inventory/components/forms/ColumnSettingsMenu.vue +80 -0
- package/src/modules/inventory/components/forms/HistoryView.vue +134 -0
- package/src/modules/inventory/components/forms/StockAlertsForm.vue +181 -0
- package/src/modules/{products/components/pages/Leftovers.vue → inventory/components/pages/Inventory.vue} +60 -41
- package/src/modules/{products/components/pages/LeftoverEdit.vue → inventory/components/pages/InventoryEdit.vue} +131 -86
- package/src/modules/inventory/docs/README.md +291 -0
- package/src/modules/inventory/inventory.client.js +65 -0
- package/src/modules/inventory/inventory.server.js +8 -5
- package/src/modules/inventory/middlewares/stock.alerts.verifier.js +194 -0
- package/src/modules/inventory/models/stock.alerts.model.js +45 -0
- package/src/modules/inventory/models/stock.audit.model.js +60 -0
- package/src/modules/inventory/models/stock.availability.model.js +6 -6
- package/src/modules/inventory/policies/inventory.policies.js +28 -28
- package/src/modules/inventory/router/inventory.router.js +28 -0
- package/src/modules/inventory/routes/inventory.routes.js +8 -4
- package/src/modules/inventory/routes/stock.alerts.routes.js +43 -0
- package/src/modules/inventory/services/inventory.crud.js +204 -21
- package/src/modules/inventory/services/inventory.verifier.js +67 -11
- package/src/modules/inventory/store/ inventory.store.js +4 -2
- package/src/modules/inventory/store/stock.alerts.store.js +5 -0
- package/src/modules/inventory/tests/inventory.test.js +281 -0
- package/src/modules/landing/components/sections/SectionEarn.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +1 -1
- package/src/modules/landing/components/sections/SectionFocus.vue +1 -1
- package/src/modules/landing/components/sections/SectionGuide.vue +1 -1
- package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
- package/src/modules/landing/components/sections/SectionHeroVideo.vue +2 -2
- package/src/modules/landing/components/sections/SectionJoinUs.vue +1 -1
- package/src/modules/landing/components/sections/SectionMobileApp.vue +1 -1
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
- package/src/modules/marketplace/views/components/layouts/Marketplace.vue +14 -14
- package/src/modules/notifications/components/elements/NotificationBadge.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrder.vue +7 -7
- package/src/modules/orders/components/blocks/CardOrderItem.vue +96 -91
- package/src/modules/orders/components/blocks/CardOrderUser.vue +1 -1
- package/src/modules/orders/components/elements/PriceTotal.vue +1 -1
- package/src/modules/orders/components/pages/Favorites.vue +1 -1
- package/src/modules/orders/components/pages/OrderBackoffice.vue +59 -29
- package/src/modules/orders/components/pages/OrderCreate.vue +15 -7
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +201 -16
- package/src/modules/orders/components/pages/Orders_refact.vue +3 -3
- package/src/modules/orders/components/partials/ShopCart.vue +17 -8
- package/src/modules/orders/components/sections/Succes.vue +1 -1
- package/src/modules/orders/controllers/orders.controller.js +175 -77
- package/src/modules/orders/orders.client.js +6 -0
- package/src/modules/orders/routes/orders.routes.js +15 -10
- package/src/modules/orders/store/shopcart.js +54 -131
- package/src/modules/organizations/components/blocks/CardOrganization.vue +9 -1
- package/src/modules/organizations/components/blocks/Rating.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +0 -1
- package/src/modules/organizations/components/pages/Organization.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +3 -3
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/DetailsTabSection.vue +1 -1
- package/src/modules/organizations/configs/navigation.organization.config.js +3 -3
- package/src/modules/organizations/controllers/utils/lookupConfigs.js +22 -1
- package/src/modules/organizations/models/schemas/accesses.schema.js +1 -1
- package/src/modules/organizations/organizations.client.js +0 -3
- package/src/modules/organizations/router/organizations.js +0 -2
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/blocks/ProductVariants.vue +5 -5
- package/src/modules/products/components/elements/Price.vue +1 -1
- package/src/modules/products/components/forms/StockHistoryView.vue +4 -4
- package/src/modules/products/components/pages/Categories.vue +4 -2
- package/src/modules/products/components/pages/CategoryEdit.vue +23 -10
- package/src/modules/products/components/pages/Product.vue +28 -78
- package/src/modules/products/components/pages/ProductEdit.vue +3 -12
- package/src/modules/products/components/pages/Products.vue +3 -2
- package/src/modules/products/components/sections/EditIngredients.vue +11 -2
- package/src/modules/products/components/sections/EditRecommended.vue +3 -14
- package/src/modules/products/components/sections/EditVariants.vue +52 -25
- package/src/modules/products/components/sections/FilterProducts.vue +3 -3
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/ProductConfigurator.vue +5 -11
- package/src/modules/products/components/sections/SectionProduct.vue +2 -2
- package/src/modules/products/controllers/configs/products.lookup.config.js +52 -80
- package/src/modules/products/controllers/products.controller.js +2 -2
- package/src/modules/products/middlewares/variants.verifier.js +1 -1
- package/src/modules/products/products.client.js +0 -12
- package/src/modules/products/products.server.js +0 -8
- package/src/modules/products/routes/variants.routes.js +0 -59
- package/src/modules/products/store/products.js +4 -4
- package/src/modules/rents/controllers/services/rents.services.js +41 -11
- package/src/modules/rents/models/rent.model.js +1 -0
- package/src/modules/rents/views/components/pages/GanttChart.vue +1 -1
- package/src/modules/rents/views/components/pages/RentsEdit.vue +10 -2
- package/src/modules/spots/components/blocks/CardSpot.vue +14 -11
- package/src/modules/spots/components/pages/Spot.vue +1 -1
- package/src/modules/wallet/views/components/pages/Wallet.vue +2 -2
- package/src/styles/base/all.scss +10 -1
- package/src/styles/base/borders.scss +234 -155
- package/src/styles/layout.scss +36 -0
- package/src/styles/typography.scss +12 -4
- package/dist/Media-B2jWzwLB.cjs +0 -1
- package/dist/Media-DZ5_ItXQ.js +0 -111
- package/dist/main-C6_DPWGX.cjs +0 -11
- package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +0 -1
- package/dist/martyrs/src/components/Field/Field.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Field/Field.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs +0 -184
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js +0 -184
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterOptions.vue.cjs +0 -67
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterOptions.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterOptions.vue.js +0 -67
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterOptions.vue.js.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterPrice.vue.cjs +0 -91
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterPrice.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterPrice.vue.js +0 -91
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterPrice.vue.js.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterRange.vue2.cjs +0 -64
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterRange.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterRange.vue2.js +0 -64
- package/dist/martyrs/src/modules/globals/views/components/sections/filters/FilterRange.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/EditArray.vue.cjs +0 -80
- package/dist/martyrs/src/modules/organizations/components/blocks/EditArray.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/EditArray.vue.js +0 -80
- package/dist/martyrs/src/modules/organizations/components/blocks/EditArray.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardLeftover.vue.cjs +0 -118
- package/dist/martyrs/src/modules/products/components/blocks/CardLeftover.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardLeftover.vue.js +0 -118
- package/dist/martyrs/src/modules/products/components/blocks/CardLeftover.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/ColumnSettingsMenu.vue.cjs +0 -73
- package/dist/martyrs/src/modules/products/components/forms/ColumnSettingsMenu.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/ColumnSettingsMenu.vue.js +0 -73
- package/dist/martyrs/src/modules/products/components/forms/ColumnSettingsMenu.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/ReorderSettingsForm.vue.cjs +0 -101
- package/dist/martyrs/src/modules/products/components/forms/ReorderSettingsForm.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/ReorderSettingsForm.vue.js +0 -101
- package/dist/martyrs/src/modules/products/components/forms/ReorderSettingsForm.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/StockAuditForm.vue.cjs +0 -135
- package/dist/martyrs/src/modules/products/components/forms/StockAuditForm.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/StockAuditForm.vue.js +0 -135
- package/dist/martyrs/src/modules/products/components/forms/StockAuditForm.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/StockHistoryView.vue.cjs +0 -148
- package/dist/martyrs/src/modules/products/components/forms/StockHistoryView.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/forms/StockHistoryView.vue.js +0 -148
- package/dist/martyrs/src/modules/products/components/forms/StockHistoryView.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.cjs +0 -345
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.js +0 -345
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +0 -316
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +0 -316
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/router/leftovers.router.cjs +0 -51
- package/dist/martyrs/src/modules/products/router/leftovers.router.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/router/leftovers.router.js +0 -51
- package/dist/martyrs/src/modules/products/router/leftovers.router.js.map +0 -1
- package/dist/martyrs/src/modules/products/store/leftovers.cjs +0 -111
- package/dist/martyrs/src/modules/products/store/leftovers.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/store/leftovers.js +0 -111
- package/dist/martyrs/src/modules/products/store/leftovers.js.map +0 -1
- package/src/modules/inventory/models/stock.inventory.model.js +0 -38
- package/src/modules/organizations/components/blocks/EditArray.vue +0 -147
- package/src/modules/products/components/blocks/CardLeftover.vue +0 -117
- package/src/modules/products/controllers/leftovers.controller.js +0 -117
- package/src/modules/products/models/leftover.model.js +0 -105
- package/src/modules/products/router/leftovers.router.js +0 -40
- package/src/modules/products/routes/leftovers.routes.js +0 -15
- package/src/modules/products/store/leftovers.js +0 -121
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globals.store.js","sources":["../../../../../../../src/modules/globals/views/classes/globals.store.js"],"sourcesContent":["import { reactive } from 'vue';\n// Globals\nimport { setError } from '@martyrs/src/modules/globals/views/store/globals.js';\nimport { buildURL } from '../utils/query-serializer.js';\n\nclass Store {\n constructor(apiUrl) {\n this.state = reactive({\n items: [],\n current: {},\n });\n this.apiUrl = apiUrl;\n // console.log(`Store initialized with API URL: ${apiUrl}`);\n }\n\n // Simplified request method with enhanced debugging\n async request(endpoint, options = {}) {\n // собираем URL\n let url = endpoint.startsWith('http')\n ? endpoint\n : `${this.apiUrl}${endpoint}`;\n\n // если есть params — используем axios-like сериализацию\n if (options.params) {\n url = buildURL(url, options.params);\n delete options.params;\n }\n\n // по умолчанию GET, include credentials\n const finalOptions = {\n credentials: 'include',\n headers: {},\n ...options,\n };\n\n // если есть body — JSONify\n if (finalOptions.body && !finalOptions.headers['Content-Type']) {\n finalOptions.headers['Content-Type'] = 'application/json';\n finalOptions.body = JSON.stringify(finalOptions.body);\n }\n\n console.log(`→ ${finalOptions.method || 'GET'} ${url}`);\n const res = await fetch(url, finalOptions);\n if (!res.ok) {\n const err = new Error(`Status ${res.status}`);\n err.status = res.status;\n try { err.info = await res.json(); } catch {}\n throw err;\n }\n return res.json();\n }\n\n async create(item) {\n console.log('Creating item:', item);\n try {\n const result = await this.request('/create', {\n method: 'POST',\n body: item,\n });\n console.log('Create operation succeeded:', result);\n return result;\n } catch (error) {\n console.error('Create operation failed:', error);\n // Log specific error details\n if (error.status) {\n console.error(`HTTP Status: ${error.status}`);\n }\n if (error.errorCode) {\n console.error(`Error Code: ${error.errorCode}`);\n }\n setError(error);\n throw error;\n }\n }\n\n // вместо текущего read()\n async read(params = {}) {\n console.log('Reading items with params:', params);\n try {\n // передаём все параметры в this.request через params\n const result = await this.request('/read', { params });\n console.log(`Read operation returned ${result.length || 0} items`);\n return result;\n } catch (error) {\n console.error('Read operation failed:', error);\n setError(error);\n throw error;\n }\n }\n\n\n async update(item) {\n console.log('Updating item:', item);\n try {\n const result = await this.request('/update', {\n method: 'PUT',\n body: item,\n });\n console.log('Update operation succeeded:', result);\n return result;\n } catch (error) {\n console.error('Update operation failed:', error);\n setError(error);\n throw error;\n }\n }\n\n async delete(item) {\n console.log('Deleting item:', item);\n try {\n const result = await this.request(`/delete`, {\n method: '
|
|
1
|
+
{"version":3,"file":"globals.store.js","sources":["../../../../../../../src/modules/globals/views/classes/globals.store.js"],"sourcesContent":["import { reactive } from 'vue';\n// Globals\nimport { setError } from '@martyrs/src/modules/globals/views/store/globals.js';\nimport { buildURL } from '../utils/query-serializer.js';\n\nclass Store {\n constructor(apiUrl) {\n this.state = reactive({\n items: [],\n current: {},\n });\n this.apiUrl = apiUrl;\n // console.log(`Store initialized with API URL: ${apiUrl}`);\n }\n\n // Simplified request method with enhanced debugging\n async request(endpoint, options = {}) {\n // собираем URL\n let url = endpoint.startsWith('http')\n ? endpoint\n : `${this.apiUrl}${endpoint}`;\n\n // если есть params — используем axios-like сериализацию\n if (options.params) {\n url = buildURL(url, options.params);\n delete options.params;\n }\n\n // по умолчанию GET, include credentials\n const finalOptions = {\n credentials: 'include',\n headers: {},\n ...options,\n };\n\n // если есть body — JSONify\n if (finalOptions.body && !finalOptions.headers['Content-Type']) {\n finalOptions.headers['Content-Type'] = 'application/json';\n finalOptions.body = JSON.stringify(finalOptions.body);\n }\n\n console.log(`→ ${finalOptions.method || 'GET'} ${url}`);\n const res = await fetch(url, finalOptions);\n\n if (!res.ok) {\n const err = new Error(`Status ${res.status}`);\n err.status = res.status;\n try { err.info = await res.json(); } catch {}\n throw err;\n }\n\n if (res.status === 204) {\n return null;\n }\n\n return res.json();\n }\n\n async create(item) {\n console.log('Creating item:', item);\n try {\n const result = await this.request('/create', {\n method: 'POST',\n body: item,\n });\n console.log('Create operation succeeded:', result);\n return result;\n } catch (error) {\n console.error('Create operation failed:', error);\n // Log specific error details\n if (error.status) {\n console.error(`HTTP Status: ${error.status}`);\n }\n if (error.errorCode) {\n console.error(`Error Code: ${error.errorCode}`);\n }\n setError(error);\n throw error;\n }\n }\n\n // вместо текущего read()\n async read(params = {}) {\n console.log('Reading items with params:', params);\n try {\n // передаём все параметры в this.request через params\n const result = await this.request('/read', { params });\n console.log(`Read operation returned ${result.length || 0} items`);\n return result;\n } catch (error) {\n console.error('Read operation failed:', error);\n setError(error);\n throw error;\n }\n }\n\n\n async update(item) {\n console.log('Updating item:', item);\n try {\n const result = await this.request('/update', {\n method: 'PUT',\n body: item,\n });\n console.log('Update operation succeeded:', result);\n return result;\n } catch (error) {\n console.error('Update operation failed:', error);\n setError(error);\n throw error;\n }\n }\n\n async delete(item) {\n console.log('Deleting item:', item);\n try {\n const result = await this.request(`/delete`, {\n method: 'POST',\n body: item,\n });\n console.log('Delete operation succeeded', result);\n return result;\n } catch (error) {\n console.error('Delete operation failed:', error);\n setError(error);\n throw error;\n }\n }\n\n // Enhanced Mutations utilizing Vue reactivity system efficiently\n setItems(items, state) {\n console.log(`Setting ${items.length} items in state`);\n const targetState = state || this.state.items;\n if (Array.isArray(targetState)) {\n targetState.splice(0, targetState.length, ...items);\n } else {\n console.error('Target state is not an array in setItems');\n }\n }\n\n addItem(item, state, property = '_id') {\n const targetState = state || this.state.items;\n const existingItemIndex = targetState.findIndex(i => i[property] === item[property]);\n\n if (existingItemIndex === -1) {\n console.log('Adding new item to state');\n targetState.splice(0, 0, item);\n } else {\n console.log('Updating existing item in state');\n Object.assign(targetState[existingItemIndex], item);\n }\n }\n\n updateItem(item, state, property = '_id') {\n const targetState = state || this.state.items;\n const index = targetState.findIndex(i => i[property] === item[property]);\n if (index !== -1) {\n console.log('Replacing item in state');\n targetState.splice(index, 1, item);\n } else {\n console.log('Item not found for update in state');\n }\n }\n\n removeItem(item, state, property = '_id') {\n const targetState = state || this.state.items;\n // Поиск и удаление элемента по указанному ключу\n const index = targetState.findIndex(i => i[property] === item[property]);\n if (index !== -1) {\n console.log('Removing item from state');\n targetState.splice(index, 1);\n } else {\n console.log('Item not found for removal from state');\n }\n }\n}\n\nexport default Store;\n"],"names":[],"mappings":"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"}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const IconSearch = require("../../../../icons/navigation/IconSearch.vue.cjs");
|
|
5
|
-
const Field = require("../../../../../components/Field/Field.
|
|
6
|
-
const _hoisted_1 = { class: "flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-medium" };
|
|
5
|
+
const Field = require("../../../../../components/Field/Field.vue.cjs");
|
|
7
6
|
const _sfc_main = {
|
|
8
7
|
__name: "BlockSearch",
|
|
9
8
|
props: {
|
|
@@ -38,19 +37,21 @@ const _sfc_main = {
|
|
|
38
37
|
emits("search", search);
|
|
39
38
|
};
|
|
40
39
|
return (_ctx, _cache) => {
|
|
41
|
-
return vue.openBlock(), vue.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
40
|
+
return vue.openBlock(), vue.createBlock(Field.default, {
|
|
41
|
+
field: stateSearch.value,
|
|
42
|
+
"onUpdate:field": [
|
|
43
|
+
_cache[0] || (_cache[0] = ($event) => stateSearch.value = $event),
|
|
44
|
+
updateSearch
|
|
45
|
+
],
|
|
46
|
+
placeholder: __props.placeholder,
|
|
47
|
+
autofocus: __props.autofocus,
|
|
48
|
+
class: "flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-medium w-100"
|
|
49
|
+
}, {
|
|
50
|
+
icon: vue.withCtx(() => [
|
|
51
|
+
vue.createVNode(IconSearch.default, { class: "i-medium t-transp mn-r-thin" })
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
}, 8, ["field", "placeholder", "autofocus"]);
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockSearch.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/blocks/BlockSearch.vue"],"sourcesContent":["<script setup>\nimport { ref, watch } from 'vue';\
|
|
1
|
+
{"version":3,"file":"BlockSearch.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/blocks/BlockSearch.vue"],"sourcesContent":["<script setup>\nimport { ref, watch } from 'vue';\nimport IconSearch from '@martyrs/src/modules/icons/navigation/IconSearch.vue';\nimport Field from '@martyrs/src/components/Field/Field.vue';\nconst emits = defineEmits(['search', 'update:modelValue']);\nconst props = defineProps({\n modelValue: {\n type: String,\n default: ''\n },\n placeholder: {\n type: String,\n default: 'Enter shop or product name'\n },\n autofocus: {\n type: Boolean,\n default: false\n },\n button: {\n type: String,\n default: 'Search'\n },\n});\nconst stateSearch = ref(props.modelValue);\n// Обновлять поле при изменении modelValue извне\nwatch(() => props.modelValue, (newVal) => {\n stateSearch.value = newVal;\n});\n// Когда пользователь вводит новое значение\nconst updateSearch = (search) => {\n stateSearch.value = search;\n emits('update:modelValue', search); // уведомим родителя\n emits('search', search); // при необходимости\n};\n</script>\n<template>\n\n<Field\n v-model:field=\"stateSearch\"\n :placeholder=\"placeholder\"\n :autofocus=\"autofocus\"\n class=\"flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-medium w-100\"\n @update:field=\"updateSearch\"\n>\n <template #icon>\n <IconSearch class=\"i-medium t-transp mn-r-thin\" />\n </template>\n</Field>\n\n</template>"],"names":["ref","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,UAAM,QAAQ;AACd,UAAM,QAAQ;AAkBd,UAAM,cAAcA,IAAAA,IAAI,MAAM,UAAU;AAExCC,QAAK,MAAC,MAAM,MAAM,YAAY,CAAC,WAAW;AACxC,kBAAY,QAAQ;AAAA,IACtB,CAAC;AAED,UAAM,eAAe,CAAC,WAAW;AAC/B,kBAAY,QAAQ;AACpB,YAAM,qBAAqB,MAAM;AACjC,YAAM,UAAU,MAAM;AAAA,IACxB;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ref, watch,
|
|
1
|
+
import { ref, watch, createBlock, openBlock, withCtx, createVNode } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../../../../icons/navigation/IconSearch.vue.js";
|
|
3
|
-
import
|
|
4
|
-
const _hoisted_1 = { class: "flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-medium" };
|
|
3
|
+
import Field from "../../../../../components/Field/Field.vue.js";
|
|
5
4
|
const _sfc_main = {
|
|
6
5
|
__name: "BlockSearch",
|
|
7
6
|
props: {
|
|
@@ -36,19 +35,21 @@ const _sfc_main = {
|
|
|
36
35
|
emits("search", search);
|
|
37
36
|
};
|
|
38
37
|
return (_ctx, _cache) => {
|
|
39
|
-
return openBlock(),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
38
|
+
return openBlock(), createBlock(Field, {
|
|
39
|
+
field: stateSearch.value,
|
|
40
|
+
"onUpdate:field": [
|
|
41
|
+
_cache[0] || (_cache[0] = ($event) => stateSearch.value = $event),
|
|
42
|
+
updateSearch
|
|
43
|
+
],
|
|
44
|
+
placeholder: __props.placeholder,
|
|
45
|
+
autofocus: __props.autofocus,
|
|
46
|
+
class: "flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-medium w-100"
|
|
47
|
+
}, {
|
|
48
|
+
icon: withCtx(() => [
|
|
49
|
+
createVNode(_sfc_main$1, { class: "i-medium t-transp mn-r-thin" })
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
}, 8, ["field", "placeholder", "autofocus"]);
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockSearch.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/blocks/BlockSearch.vue"],"sourcesContent":["<script setup>\nimport { ref, watch } from 'vue';\
|
|
1
|
+
{"version":3,"file":"BlockSearch.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/blocks/BlockSearch.vue"],"sourcesContent":["<script setup>\nimport { ref, watch } from 'vue';\nimport IconSearch from '@martyrs/src/modules/icons/navigation/IconSearch.vue';\nimport Field from '@martyrs/src/components/Field/Field.vue';\nconst emits = defineEmits(['search', 'update:modelValue']);\nconst props = defineProps({\n modelValue: {\n type: String,\n default: ''\n },\n placeholder: {\n type: String,\n default: 'Enter shop or product name'\n },\n autofocus: {\n type: Boolean,\n default: false\n },\n button: {\n type: String,\n default: 'Search'\n },\n});\nconst stateSearch = ref(props.modelValue);\n// Обновлять поле при изменении modelValue извне\nwatch(() => props.modelValue, (newVal) => {\n stateSearch.value = newVal;\n});\n// Когда пользователь вводит новое значение\nconst updateSearch = (search) => {\n stateSearch.value = search;\n emits('update:modelValue', search); // уведомим родителя\n emits('search', search); // при необходимости\n};\n</script>\n<template>\n\n<Field\n v-model:field=\"stateSearch\"\n :placeholder=\"placeholder\"\n :autofocus=\"autofocus\"\n class=\"flex-v-center flex-nowrap flex pd-small bg-light w-100 radius-medium w-100\"\n @update:field=\"updateSearch\"\n>\n <template #icon>\n <IconSearch class=\"i-medium t-transp mn-r-thin\" />\n </template>\n</Field>\n\n</template>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,UAAM,QAAQ;AACd,UAAM,QAAQ;AAkBd,UAAM,cAAc,IAAI,MAAM,UAAU;AAExC,UAAM,MAAM,MAAM,YAAY,CAAC,WAAW;AACxC,kBAAY,QAAQ;AAAA,IACtB,CAAC;AAED,UAAM,eAAe,CAAC,WAAW;AAC/B,kBAAY,QAAQ;AACpB,YAAM,qBAAqB,MAAM;AACjC,YAAM,UAAU,MAAM;AAAA,IACxB;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,7 +9,7 @@ const PlaceholderOrganizationPic = require("../../../../icons/placeholders/Place
|
|
|
9
9
|
const IconEllipsis = require("../../../../icons/navigation/IconEllipsis.vue.cjs");
|
|
10
10
|
const FormReport = require("../../../../reports/components/sections/FormReport.vue.cjs");
|
|
11
11
|
;/* empty css */
|
|
12
|
-
;/* empty css
|
|
12
|
+
;/* empty css */
|
|
13
13
|
require("../../../../auth/views/store/auth.cjs");
|
|
14
14
|
require("../../../../organizations/store/memberships.cjs");
|
|
15
15
|
const PhotoStack = require("../elements/PhotoStack.vue.cjs");
|
|
@@ -18,28 +18,23 @@ const _hoisted_1 = {
|
|
|
18
18
|
class: "pd-b-zero"
|
|
19
19
|
};
|
|
20
20
|
const _hoisted_2 = { class: "w-100 flex-v-center flex-nojustify flex" };
|
|
21
|
-
const _hoisted_3 = { class: "w-100 p-medium t-nowrap flex-nowrap flex-v-center flex" };
|
|
21
|
+
const _hoisted_3 = { class: "w-100 gap-thin p-medium t-nowrap flex-nowrap flex-v-center flex" };
|
|
22
22
|
const _hoisted_4 = ["src"];
|
|
23
23
|
const _hoisted_5 = {
|
|
24
24
|
key: 2,
|
|
25
|
-
class: "flex flex-nowrap t-medium w-100 pos-relative"
|
|
26
|
-
};
|
|
27
|
-
const _hoisted_6 = {
|
|
28
|
-
key: 0,
|
|
29
|
-
class: "mn-l-micro mn-r-micro"
|
|
30
|
-
};
|
|
31
|
-
const _hoisted_7 = {
|
|
32
|
-
key: 2,
|
|
33
|
-
class: "mn-l-micro mn-r-micro"
|
|
25
|
+
class: "gap-thin flex flex-nowrap t-medium w-100 pos-relative"
|
|
34
26
|
};
|
|
27
|
+
const _hoisted_6 = { key: 0 };
|
|
28
|
+
const _hoisted_7 = { key: 2 };
|
|
35
29
|
const _hoisted_8 = {
|
|
36
30
|
key: 3,
|
|
37
31
|
class: "pos-relative w-max"
|
|
38
32
|
};
|
|
39
33
|
const _hoisted_9 = { key: 4 };
|
|
40
|
-
const _hoisted_10 = {
|
|
41
|
-
const _hoisted_11 = { class: "
|
|
42
|
-
const _hoisted_12 =
|
|
34
|
+
const _hoisted_10 = { key: 5 };
|
|
35
|
+
const _hoisted_11 = { class: "d-block mn-l-auto flex-nowrap flex flex-v-center" };
|
|
36
|
+
const _hoisted_12 = { class: "bg-black flex-column flex gap-thin pd-thin radius-small" };
|
|
37
|
+
const _hoisted_13 = ["onClick"];
|
|
43
38
|
const _sfc_main = {
|
|
44
39
|
__name: "CardHeader",
|
|
45
40
|
props: [
|
|
@@ -88,7 +83,7 @@ const _sfc_main = {
|
|
|
88
83
|
key: 0,
|
|
89
84
|
loading: "lazy",
|
|
90
85
|
src: (_ctx.FILE_SERVER_URL || "") + __props.owner.target.profile.photo,
|
|
91
|
-
class: "radius-medium flex-child-default object-fit-cover
|
|
86
|
+
class: "radius-medium bg-white flex-child-default object-fit-cover i-thin",
|
|
92
87
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => _ctx.$router.push({
|
|
93
88
|
name: __props.owner.type === "user" ? "User Profile" : "Organization",
|
|
94
89
|
params: {
|
|
@@ -98,7 +93,7 @@ const _sfc_main = {
|
|
|
98
93
|
}, null, 8, _hoisted_4)) : vue.createCommentVNode("", true),
|
|
99
94
|
!((_e = (_d = __props.owner.target) == null ? void 0 : _d.profile) == null ? void 0 : _e.photo) && __props.type !== "short" ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.owner.type === "user" ? PlaceholderUserpic.default : PlaceholderOrganizationPic.default), {
|
|
100
95
|
key: 1,
|
|
101
|
-
class: "radius-medium flex-child-default cursor-pointer
|
|
96
|
+
class: "radius-medium flex-child-default cursor-pointer i-thin",
|
|
102
97
|
onClick: _cache[1] || (_cache[1] = vue.withModifiers(($event) => _ctx.$router.push({
|
|
103
98
|
name: __props.owner.type === "user" ? "User Profile" : "Organization",
|
|
104
99
|
params: {
|
|
@@ -144,9 +139,10 @@ const _sfc_main = {
|
|
|
144
139
|
_: 1
|
|
145
140
|
}, 8, ["text"])) : vue.createCommentVNode("", true)
|
|
146
141
|
])) : vue.createCommentVNode("", true),
|
|
147
|
-
__props.dateFormatted ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9, "
|
|
142
|
+
__props.dateFormatted ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9, "·")) : vue.createCommentVNode("", true),
|
|
143
|
+
__props.dateFormatted ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, vue.toDisplayString(__props.dateFormatted), 1)) : vue.createCommentVNode("", true)
|
|
148
144
|
])) : vue.createCommentVNode("", true),
|
|
149
|
-
vue.createElementVNode("div",
|
|
145
|
+
vue.createElementVNode("div", _hoisted_11, [
|
|
150
146
|
__props.members ? (vue.openBlock(), vue.createBlock(PhotoStack.default, {
|
|
151
147
|
key: 0,
|
|
152
148
|
number: __props.members,
|
|
@@ -162,7 +158,7 @@ const _sfc_main = {
|
|
|
162
158
|
default: vue.withCtx(() => {
|
|
163
159
|
var _a2;
|
|
164
160
|
return [
|
|
165
|
-
vue.createElementVNode("section",
|
|
161
|
+
vue.createElementVNode("section", _hoisted_12, [
|
|
166
162
|
__props.user !== ((_a2 = __props.creator.target) == null ? void 0 : _a2._id) ? (vue.openBlock(), vue.createBlock(FormReport.default, {
|
|
167
163
|
key: 0,
|
|
168
164
|
user: __props.user,
|
|
@@ -192,7 +188,7 @@ const _sfc_main = {
|
|
|
192
188
|
key: 1,
|
|
193
189
|
onClick: action.method,
|
|
194
190
|
class: vue.normalizeClass(action.class || "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")
|
|
195
|
-
}, vue.toDisplayString(action.label), 11,
|
|
191
|
+
}, vue.toDisplayString(action.label), 11, _hoisted_13)) : vue.createCommentVNode("", true)
|
|
196
192
|
], 64);
|
|
197
193
|
}), 256)) : vue.createCommentVNode("", true)
|
|
198
194
|
])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeader.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/blocks/CardHeader.vue"],"sourcesContent":["<template>\n\t<header \n\t\tv-if=\"owner\" \n\t\tclass=\"pd-b-zero \"\n\t>\n\t\t<div \n\t\t\tclass=\"w-100 flex-v-center flex-nojustify flex\"\n\t\t>\n\n\t\t\t<div\n\t\t\t\tclass=\"w-100 p-medium t-nowrap flex-nowrap flex-v-center flex\"\n\t\t\t>\n\t\t\t\t<img loading=\"lazy\" \n\t\t\t\t\tv-if=\"owner.target?.profile?.photo?.length > 0 && type !== 'short'\" \n\t\t\t\t\t:src=\"(FILE_SERVER_URL || '') + owner.target.profile.photo\" \n\t\t\t\t\tclass=\"radius-medium flex-child-default object-fit-cover
|
|
1
|
+
{"version":3,"file":"CardHeader.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/blocks/CardHeader.vue"],"sourcesContent":["<template>\n\t<header \n\t\tv-if=\"owner\" \n\t\tclass=\"pd-b-zero \"\n\t>\n\t\t<div \n\t\t\tclass=\"w-100 flex-v-center flex-nojustify flex\"\n\t\t>\n\n\t\t\t<div\n\t\t\t\tclass=\"w-100 gap-thin p-medium t-nowrap flex-nowrap flex-v-center flex\"\n\t\t\t>\n\t\t\t\t<img loading=\"lazy\" \n\t\t\t\t\tv-if=\"owner.target?.profile?.photo?.length > 0 && type !== 'short'\" \n\t\t\t\t\t:src=\"(FILE_SERVER_URL || '') + owner.target.profile.photo\" \n\t\t\t\t\tclass=\"radius-medium bg-white flex-child-default object-fit-cover i-thin\" \n\n\t\t\t\t\t@click.stop=\"$router.push({\n\t\t\t\t\t\tname: owner.type === 'user' ? 'User Profile' : 'Organization', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: owner.target._id\n\t\t\t\t\t\t}\n\t\t\t\t\t})\" \n\t\t\t\t/>\n\t\t\t\t<component\n\t\t\t\t\tv-if=\"!owner.target?.profile?.photo && type !== 'short'\"\n\t\t\t\t\t:is=\"owner.type === 'user' ? PlaceholderUserpic : PlaceholderOrganizationPic\"\n\t\t\t\t\tclass=\"radius-medium flex-child-default cursor-pointer i-thin\"\n\n\t\t\t\t\t@click.stop=\"$router.push({\n\t\t\t\t\t\tname: owner.type === 'user' ? 'User Profile' : 'Organization', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: owner.target._id\n\t\t\t\t\t\t}\n\t\t\t\t\t})\" \n\t\t\t\t/>\n\n\t\t\t\t<div \n\t\t\t\t\tv-if=\"type !== 'short'\"\n\t\t\t\t\tclass=\"gap-thin flex flex-nowrap t-medium w-100 pos-relative\"\n\t\t\t\t>\n\t\t\t\t\t<span \n\t\t\t\t\t\t@click.stop=\"$router.push({\n\t\t\t\t\t\t\tname: owner.type === 'user' ? 'User Profile' : 'Organization', \n\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t_id: owner.target._id\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\" \n\t\t\t\t\t\tclass=\"cursor-pointer w-max t-trim\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{owner.target?.profile?.name || creator.target?.username || 'Anonymous'}}\n\t\t\t\t\t</span>\n\n\t\t\t\t\t<span v-if=\"!creator.hidden && owner.target?.profile?.name !== creator.target?.profile?.name\">·</span> \n\n\t\t\t\t\t<span\n\t\t\t\t\t\tv-if=\"!creator.hidden && owner.target?.profile?.name !== creator.target?.profile?.name\"\n\t\t\t\t\t\t@click.stop=\"$router.push({\n\t\t\t\t\t\t\tname: 'User Profile', \n\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t_id: creator.target?._id\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\" \n\t\t\t\t\t\tclass=\"cursor-pointer w-max t-trim\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<div>by {{creator.target?.profile?.name || creator.target?.username || 'Anonymous'}}</div>\n\t\t\t\t\t</span>\n\n\t\t\t\t\t<span v-if=\"date\">·</span> \n\n\t\t\t\t\t<span v-if=\"date\" class=\"pos-relative w-max\">\n\t\t\t\t\t\t<Tooltip v-if=\"date\" :text=\"formatDate(date)\">\n\t\t\t\t\t \t\t{{getTimeElapsed(date)}}\n\t\t\t\t\t \t</Tooltip>\n\t\t\t\t\t</span>\n\n\t\t\t\t\t<span v-if=\"dateFormatted\">·</span>\n\n\t\t\t\t\t<span v-if=\"dateFormatted\"> {{dateFormatted}}</span>\n\t\t\t\t</div>\n\t\t\t\t\n\n\t\t\t\t<!-- Participaters avatar -->\n\t\t\t\t<div class=\"d-block mn-l-auto flex-nowrap flex flex-v-center\">\n\t\t\t\t\t<PhotoStack\n\t\t\t\t\t\tv-if=\"members\"\n\t\t\t\t\t\t:number=\"members\"\n\t\t\t \t:photos=\"membersPhotos\" \n\t\t\t />\n\t\t\t\t</div>\n\n\t\t\t\t<!-- Report -->\n\t\t\t\t<Dropdown \n\t\t\t\t\tv-if=\"type !== 'short' && user && (user !== creator.target?._id || (actions && actions.length > 0))\"\n\t\t\t\t\t:label=\"{ component: IconEllipsis, class: 't-transp i-regular' }\"\n\t\t\t\t\t:align=\"'right'\"\n\t\t\t\t\tclass=\"cursor-pointer z-index-2\"\n\t\t\t\t>\n\t\t\t\t\t<section \n\t\t\t\t\t\tclass=\"bg-black flex-column flex gap-thin pd-thin radius-small\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<FormReport \n\t\t\t\t\t\t\tv-if=\"user !== creator.target?._id\"\n\t\t\t\t\t\t\t:user=\"user\"\n\t\t\t\t\t\t\t:type=\"entityType\" \n\t\t\t\t\t\t\t:target=\"entity._id\" \n\t\t\t\t\t\t\t:text=\"'Report'\" \n\t\t\t\t\t\t\tclass=\"w-100\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<button \n\t\t\t\t\t\t\t\tclass=\"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tReport\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</FormReport>\n\n\t\t\t\t\t\t<template \n\t\t\t v-for=\"action in actions\" \n\t\t\t v-if=\"actions && actions.length > 0\"\n\t\t\t >\n\t\t\t <router-link\n\t\t\t v-if=\"action.to\"\n\t\t\t :key=\"action.to\"\n\t\t\t :to=\"action.to\"\n\t\t\t :class=\"action.class || 'w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button'\"\n\t\t\t >\n\t\t\t {{ action.label }}\n\t\t\t </router-link>\n\n\t\t\t <button\n\t\t\t v-if=\"action.method\"\n\t\t\t @click=\"action.method\"\n\t\t\t :class=\"action.class || 'w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button'\"\n\t\t\t >\n\t\t\t {{ action.label }}\n\t\t\t </button>\n\t\t\t </template>\n\t\t\t\t\t</section>\n\t\t </Dropdown>\t\n\t\t\t</div>\n\t\t</div>\n\t</header>\n</template>\n\n\n<script setup=\"props\">\n\timport { computed,ref } from 'vue'\n\n\timport { useRouter } from 'vue-router'\n\n\timport Tooltip from '@martyrs/src/components/Tooltip/Tooltip.vue'\n\timport Dropdown from \"@martyrs/src/components/Dropdown/Dropdown.vue\";\n\n\timport PlaceholderUserpic from '@martyrs/src/modules/icons/placeholders/PlaceholderUserpic.vue'\n\timport PlaceholderOrganizationPic from '@martyrs/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue'\n\timport IconEllipsis from '@martyrs/src/modules/icons/navigation/IconEllipsis.vue'\n\n\timport FormReport from '@martyrs/src/modules/reports/components/sections/FormReport.vue' \n\timport ButtonToggleMembership from '@martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue'\n\n\timport PhotoStack from \"@martyrs/src/modules/globals/views/components/elements/PhotoStack.vue\"\n\n\n\tconst props = defineProps([\n\t\t'user',\n\t\t'entity',\n\t\t'entityType',\n\t\t'date',\n\t\t'dateFormatted',\n\t\t'owner',\n\t\t'creator',\n\t\t'members',\n\t\t'membersPhotos',\n\t\t'type',\n\t\t'actions'\n\t])\n\n\tconst router = useRouter()\n\n\tfunction getTimeElapsed(timestamp) {\n\t const now = new Date();\n\t const createdAt = new Date(timestamp);\n\t const timeDiff = Math.abs(now - createdAt);\n\t const seconds = Math.floor(timeDiff / 1000);\n\t const minutes = Math.floor(seconds / 60);\n\t const hours = Math.floor(minutes / 60);\n\t const days = Math.floor(hours / 24);\n\t const weeks = Math.floor(days / 7);\n\t \n\t if (weeks > 0) {\n\t return `${weeks} week${weeks > 1 ? 's' : ''} ago`;\n\t } else if (days > 0) {\n\t return `${days} day${days > 1 ? 's' : ''} ago`;\n\t } else if (hours > 0) {\n\t return `${hours} hour${hours > 1 ? 's' : ''} ago`;\n\t } else if (minutes > 0) {\n\t return `${minutes} minute${minutes > 1 ? 's' : ''} ago`;\n\t } else {\n\t return 'Just now';\n\t }\n\t}\n\n</script>\n\n<style lang=\"scss\">\n</style>\n\n\n"],"names":["useRouter"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiLgBA,cAAS,UAAA;AAExB,aAAS,eAAe,WAAW;AACjC,YAAM,MAAM,oBAAI,KAAM;AACtB,YAAM,YAAY,IAAI,KAAK,SAAS;AACpC,YAAM,WAAW,KAAK,IAAI,MAAM,SAAS;AACzC,YAAM,UAAU,KAAK,MAAM,WAAW,GAAI;AAC1C,YAAM,UAAU,KAAK,MAAM,UAAU,EAAE;AACvC,YAAM,QAAQ,KAAK,MAAM,UAAU,EAAE;AACrC,YAAM,OAAO,KAAK,MAAM,QAAQ,EAAE;AAClC,YAAM,QAAQ,KAAK,MAAM,OAAO,CAAC;AAEjC,UAAI,QAAQ,GAAG;AACb,eAAO,GAAG,KAAK,QAAQ,QAAQ,IAAI,MAAM,EAAE;AAAA,MAChD,WAAc,OAAO,GAAG;AACnB,eAAO,GAAG,IAAI,OAAO,OAAO,IAAI,MAAM,EAAE;AAAA,MAC7C,WAAc,QAAQ,GAAG;AACpB,eAAO,GAAG,KAAK,QAAQ,QAAQ,IAAI,MAAM,EAAE;AAAA,MAChD,WAAc,UAAU,GAAG;AACtB,eAAO,GAAG,OAAO,UAAU,UAAU,IAAI,MAAM,EAAE;AAAA,MACtD,OAAU;AACL,eAAO;AAAA,MACZ;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -7,7 +7,7 @@ import PlaceholderOrganizationPic from "../../../../icons/placeholders/Placehold
|
|
|
7
7
|
import _sfc_main$4 from "../../../../icons/navigation/IconEllipsis.vue.js";
|
|
8
8
|
import _sfc_main$5 from "../../../../reports/components/sections/FormReport.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
/* empty css
|
|
10
|
+
/* empty css */
|
|
11
11
|
import "../../../../auth/views/store/auth.js";
|
|
12
12
|
import "../../../../organizations/store/memberships.js";
|
|
13
13
|
import _sfc_main$2 from "../elements/PhotoStack.vue.js";
|
|
@@ -16,28 +16,23 @@ const _hoisted_1 = {
|
|
|
16
16
|
class: "pd-b-zero"
|
|
17
17
|
};
|
|
18
18
|
const _hoisted_2 = { class: "w-100 flex-v-center flex-nojustify flex" };
|
|
19
|
-
const _hoisted_3 = { class: "w-100 p-medium t-nowrap flex-nowrap flex-v-center flex" };
|
|
19
|
+
const _hoisted_3 = { class: "w-100 gap-thin p-medium t-nowrap flex-nowrap flex-v-center flex" };
|
|
20
20
|
const _hoisted_4 = ["src"];
|
|
21
21
|
const _hoisted_5 = {
|
|
22
22
|
key: 2,
|
|
23
|
-
class: "flex flex-nowrap t-medium w-100 pos-relative"
|
|
24
|
-
};
|
|
25
|
-
const _hoisted_6 = {
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "mn-l-micro mn-r-micro"
|
|
28
|
-
};
|
|
29
|
-
const _hoisted_7 = {
|
|
30
|
-
key: 2,
|
|
31
|
-
class: "mn-l-micro mn-r-micro"
|
|
23
|
+
class: "gap-thin flex flex-nowrap t-medium w-100 pos-relative"
|
|
32
24
|
};
|
|
25
|
+
const _hoisted_6 = { key: 0 };
|
|
26
|
+
const _hoisted_7 = { key: 2 };
|
|
33
27
|
const _hoisted_8 = {
|
|
34
28
|
key: 3,
|
|
35
29
|
class: "pos-relative w-max"
|
|
36
30
|
};
|
|
37
31
|
const _hoisted_9 = { key: 4 };
|
|
38
|
-
const _hoisted_10 = {
|
|
39
|
-
const _hoisted_11 = { class: "
|
|
40
|
-
const _hoisted_12 =
|
|
32
|
+
const _hoisted_10 = { key: 5 };
|
|
33
|
+
const _hoisted_11 = { class: "d-block mn-l-auto flex-nowrap flex flex-v-center" };
|
|
34
|
+
const _hoisted_12 = { class: "bg-black flex-column flex gap-thin pd-thin radius-small" };
|
|
35
|
+
const _hoisted_13 = ["onClick"];
|
|
41
36
|
const _sfc_main = {
|
|
42
37
|
__name: "CardHeader",
|
|
43
38
|
props: [
|
|
@@ -86,7 +81,7 @@ const _sfc_main = {
|
|
|
86
81
|
key: 0,
|
|
87
82
|
loading: "lazy",
|
|
88
83
|
src: (_ctx.FILE_SERVER_URL || "") + __props.owner.target.profile.photo,
|
|
89
|
-
class: "radius-medium flex-child-default object-fit-cover
|
|
84
|
+
class: "radius-medium bg-white flex-child-default object-fit-cover i-thin",
|
|
90
85
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$router.push({
|
|
91
86
|
name: __props.owner.type === "user" ? "User Profile" : "Organization",
|
|
92
87
|
params: {
|
|
@@ -96,7 +91,7 @@ const _sfc_main = {
|
|
|
96
91
|
}, null, 8, _hoisted_4)) : createCommentVNode("", true),
|
|
97
92
|
!((_e = (_d = __props.owner.target) == null ? void 0 : _d.profile) == null ? void 0 : _e.photo) && __props.type !== "short" ? (openBlock(), createBlock(resolveDynamicComponent(__props.owner.type === "user" ? PlaceholderUserpic : PlaceholderOrganizationPic), {
|
|
98
93
|
key: 1,
|
|
99
|
-
class: "radius-medium flex-child-default cursor-pointer
|
|
94
|
+
class: "radius-medium flex-child-default cursor-pointer i-thin",
|
|
100
95
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$router.push({
|
|
101
96
|
name: __props.owner.type === "user" ? "User Profile" : "Organization",
|
|
102
97
|
params: {
|
|
@@ -142,9 +137,10 @@ const _sfc_main = {
|
|
|
142
137
|
_: 1
|
|
143
138
|
}, 8, ["text"])) : createCommentVNode("", true)
|
|
144
139
|
])) : createCommentVNode("", true),
|
|
145
|
-
__props.dateFormatted ? (openBlock(), createElementBlock("span", _hoisted_9, "
|
|
140
|
+
__props.dateFormatted ? (openBlock(), createElementBlock("span", _hoisted_9, "·")) : createCommentVNode("", true),
|
|
141
|
+
__props.dateFormatted ? (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(__props.dateFormatted), 1)) : createCommentVNode("", true)
|
|
146
142
|
])) : createCommentVNode("", true),
|
|
147
|
-
createElementVNode("div",
|
|
143
|
+
createElementVNode("div", _hoisted_11, [
|
|
148
144
|
__props.members ? (openBlock(), createBlock(_sfc_main$2, {
|
|
149
145
|
key: 0,
|
|
150
146
|
number: __props.members,
|
|
@@ -160,7 +156,7 @@ const _sfc_main = {
|
|
|
160
156
|
default: withCtx(() => {
|
|
161
157
|
var _a2;
|
|
162
158
|
return [
|
|
163
|
-
createElementVNode("section",
|
|
159
|
+
createElementVNode("section", _hoisted_12, [
|
|
164
160
|
__props.user !== ((_a2 = __props.creator.target) == null ? void 0 : _a2._id) ? (openBlock(), createBlock(_sfc_main$5, {
|
|
165
161
|
key: 0,
|
|
166
162
|
user: __props.user,
|
|
@@ -190,7 +186,7 @@ const _sfc_main = {
|
|
|
190
186
|
key: 1,
|
|
191
187
|
onClick: action.method,
|
|
192
188
|
class: normalizeClass(action.class || "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")
|
|
193
|
-
}, toDisplayString(action.label), 11,
|
|
189
|
+
}, toDisplayString(action.label), 11, _hoisted_13)) : createCommentVNode("", true)
|
|
194
190
|
], 64);
|
|
195
191
|
}), 256)) : createCommentVNode("", true)
|
|
196
192
|
])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeader.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/blocks/CardHeader.vue"],"sourcesContent":["<template>\n\t<header \n\t\tv-if=\"owner\" \n\t\tclass=\"pd-b-zero \"\n\t>\n\t\t<div \n\t\t\tclass=\"w-100 flex-v-center flex-nojustify flex\"\n\t\t>\n\n\t\t\t<div\n\t\t\t\tclass=\"w-100 p-medium t-nowrap flex-nowrap flex-v-center flex\"\n\t\t\t>\n\t\t\t\t<img loading=\"lazy\" \n\t\t\t\t\tv-if=\"owner.target?.profile?.photo?.length > 0 && type !== 'short'\" \n\t\t\t\t\t:src=\"(FILE_SERVER_URL || '') + owner.target.profile.photo\" \n\t\t\t\t\tclass=\"radius-medium flex-child-default object-fit-cover
|
|
1
|
+
{"version":3,"file":"CardHeader.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/blocks/CardHeader.vue"],"sourcesContent":["<template>\n\t<header \n\t\tv-if=\"owner\" \n\t\tclass=\"pd-b-zero \"\n\t>\n\t\t<div \n\t\t\tclass=\"w-100 flex-v-center flex-nojustify flex\"\n\t\t>\n\n\t\t\t<div\n\t\t\t\tclass=\"w-100 gap-thin p-medium t-nowrap flex-nowrap flex-v-center flex\"\n\t\t\t>\n\t\t\t\t<img loading=\"lazy\" \n\t\t\t\t\tv-if=\"owner.target?.profile?.photo?.length > 0 && type !== 'short'\" \n\t\t\t\t\t:src=\"(FILE_SERVER_URL || '') + owner.target.profile.photo\" \n\t\t\t\t\tclass=\"radius-medium bg-white flex-child-default object-fit-cover i-thin\" \n\n\t\t\t\t\t@click.stop=\"$router.push({\n\t\t\t\t\t\tname: owner.type === 'user' ? 'User Profile' : 'Organization', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: owner.target._id\n\t\t\t\t\t\t}\n\t\t\t\t\t})\" \n\t\t\t\t/>\n\t\t\t\t<component\n\t\t\t\t\tv-if=\"!owner.target?.profile?.photo && type !== 'short'\"\n\t\t\t\t\t:is=\"owner.type === 'user' ? PlaceholderUserpic : PlaceholderOrganizationPic\"\n\t\t\t\t\tclass=\"radius-medium flex-child-default cursor-pointer i-thin\"\n\n\t\t\t\t\t@click.stop=\"$router.push({\n\t\t\t\t\t\tname: owner.type === 'user' ? 'User Profile' : 'Organization', \n\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t_id: owner.target._id\n\t\t\t\t\t\t}\n\t\t\t\t\t})\" \n\t\t\t\t/>\n\n\t\t\t\t<div \n\t\t\t\t\tv-if=\"type !== 'short'\"\n\t\t\t\t\tclass=\"gap-thin flex flex-nowrap t-medium w-100 pos-relative\"\n\t\t\t\t>\n\t\t\t\t\t<span \n\t\t\t\t\t\t@click.stop=\"$router.push({\n\t\t\t\t\t\t\tname: owner.type === 'user' ? 'User Profile' : 'Organization', \n\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t_id: owner.target._id\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\" \n\t\t\t\t\t\tclass=\"cursor-pointer w-max t-trim\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{owner.target?.profile?.name || creator.target?.username || 'Anonymous'}}\n\t\t\t\t\t</span>\n\n\t\t\t\t\t<span v-if=\"!creator.hidden && owner.target?.profile?.name !== creator.target?.profile?.name\">·</span> \n\n\t\t\t\t\t<span\n\t\t\t\t\t\tv-if=\"!creator.hidden && owner.target?.profile?.name !== creator.target?.profile?.name\"\n\t\t\t\t\t\t@click.stop=\"$router.push({\n\t\t\t\t\t\t\tname: 'User Profile', \n\t\t\t\t\t\t\tparams: {\n\t\t\t\t\t\t\t\t_id: creator.target?._id\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\" \n\t\t\t\t\t\tclass=\"cursor-pointer w-max t-trim\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<div>by {{creator.target?.profile?.name || creator.target?.username || 'Anonymous'}}</div>\n\t\t\t\t\t</span>\n\n\t\t\t\t\t<span v-if=\"date\">·</span> \n\n\t\t\t\t\t<span v-if=\"date\" class=\"pos-relative w-max\">\n\t\t\t\t\t\t<Tooltip v-if=\"date\" :text=\"formatDate(date)\">\n\t\t\t\t\t \t\t{{getTimeElapsed(date)}}\n\t\t\t\t\t \t</Tooltip>\n\t\t\t\t\t</span>\n\n\t\t\t\t\t<span v-if=\"dateFormatted\">·</span>\n\n\t\t\t\t\t<span v-if=\"dateFormatted\"> {{dateFormatted}}</span>\n\t\t\t\t</div>\n\t\t\t\t\n\n\t\t\t\t<!-- Participaters avatar -->\n\t\t\t\t<div class=\"d-block mn-l-auto flex-nowrap flex flex-v-center\">\n\t\t\t\t\t<PhotoStack\n\t\t\t\t\t\tv-if=\"members\"\n\t\t\t\t\t\t:number=\"members\"\n\t\t\t \t:photos=\"membersPhotos\" \n\t\t\t />\n\t\t\t\t</div>\n\n\t\t\t\t<!-- Report -->\n\t\t\t\t<Dropdown \n\t\t\t\t\tv-if=\"type !== 'short' && user && (user !== creator.target?._id || (actions && actions.length > 0))\"\n\t\t\t\t\t:label=\"{ component: IconEllipsis, class: 't-transp i-regular' }\"\n\t\t\t\t\t:align=\"'right'\"\n\t\t\t\t\tclass=\"cursor-pointer z-index-2\"\n\t\t\t\t>\n\t\t\t\t\t<section \n\t\t\t\t\t\tclass=\"bg-black flex-column flex gap-thin pd-thin radius-small\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<FormReport \n\t\t\t\t\t\t\tv-if=\"user !== creator.target?._id\"\n\t\t\t\t\t\t\t:user=\"user\"\n\t\t\t\t\t\t\t:type=\"entityType\" \n\t\t\t\t\t\t\t:target=\"entity._id\" \n\t\t\t\t\t\t\t:text=\"'Report'\" \n\t\t\t\t\t\t\tclass=\"w-100\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<button \n\t\t\t\t\t\t\t\tclass=\"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tReport\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</FormReport>\n\n\t\t\t\t\t\t<template \n\t\t\t v-for=\"action in actions\" \n\t\t\t v-if=\"actions && actions.length > 0\"\n\t\t\t >\n\t\t\t <router-link\n\t\t\t v-if=\"action.to\"\n\t\t\t :key=\"action.to\"\n\t\t\t :to=\"action.to\"\n\t\t\t :class=\"action.class || 'w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button'\"\n\t\t\t >\n\t\t\t {{ action.label }}\n\t\t\t </router-link>\n\n\t\t\t <button\n\t\t\t v-if=\"action.method\"\n\t\t\t @click=\"action.method\"\n\t\t\t :class=\"action.class || 'w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button'\"\n\t\t\t >\n\t\t\t {{ action.label }}\n\t\t\t </button>\n\t\t\t </template>\n\t\t\t\t\t</section>\n\t\t </Dropdown>\t\n\t\t\t</div>\n\t\t</div>\n\t</header>\n</template>\n\n\n<script setup=\"props\">\n\timport { computed,ref } from 'vue'\n\n\timport { useRouter } from 'vue-router'\n\n\timport Tooltip from '@martyrs/src/components/Tooltip/Tooltip.vue'\n\timport Dropdown from \"@martyrs/src/components/Dropdown/Dropdown.vue\";\n\n\timport PlaceholderUserpic from '@martyrs/src/modules/icons/placeholders/PlaceholderUserpic.vue'\n\timport PlaceholderOrganizationPic from '@martyrs/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue'\n\timport IconEllipsis from '@martyrs/src/modules/icons/navigation/IconEllipsis.vue'\n\n\timport FormReport from '@martyrs/src/modules/reports/components/sections/FormReport.vue' \n\timport ButtonToggleMembership from '@martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue'\n\n\timport PhotoStack from \"@martyrs/src/modules/globals/views/components/elements/PhotoStack.vue\"\n\n\n\tconst props = defineProps([\n\t\t'user',\n\t\t'entity',\n\t\t'entityType',\n\t\t'date',\n\t\t'dateFormatted',\n\t\t'owner',\n\t\t'creator',\n\t\t'members',\n\t\t'membersPhotos',\n\t\t'type',\n\t\t'actions'\n\t])\n\n\tconst router = useRouter()\n\n\tfunction getTimeElapsed(timestamp) {\n\t const now = new Date();\n\t const createdAt = new Date(timestamp);\n\t const timeDiff = Math.abs(now - createdAt);\n\t const seconds = Math.floor(timeDiff / 1000);\n\t const minutes = Math.floor(seconds / 60);\n\t const hours = Math.floor(minutes / 60);\n\t const days = Math.floor(hours / 24);\n\t const weeks = Math.floor(days / 7);\n\t \n\t if (weeks > 0) {\n\t return `${weeks} week${weeks > 1 ? 's' : ''} ago`;\n\t } else if (days > 0) {\n\t return `${days} day${days > 1 ? 's' : ''} ago`;\n\t } else if (hours > 0) {\n\t return `${hours} hour${hours > 1 ? 's' : ''} ago`;\n\t } else if (minutes > 0) {\n\t return `${minutes} minute${minutes > 1 ? 's' : ''} ago`;\n\t } else {\n\t return 'Just now';\n\t }\n\t}\n\n</script>\n\n<style lang=\"scss\">\n</style>\n\n\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiLgB,cAAS;AAExB,aAAS,eAAe,WAAW;AACjC,YAAM,MAAM,oBAAI,KAAM;AACtB,YAAM,YAAY,IAAI,KAAK,SAAS;AACpC,YAAM,WAAW,KAAK,IAAI,MAAM,SAAS;AACzC,YAAM,UAAU,KAAK,MAAM,WAAW,GAAI;AAC1C,YAAM,UAAU,KAAK,MAAM,UAAU,EAAE;AACvC,YAAM,QAAQ,KAAK,MAAM,UAAU,EAAE;AACrC,YAAM,OAAO,KAAK,MAAM,QAAQ,EAAE;AAClC,YAAM,QAAQ,KAAK,MAAM,OAAO,CAAC;AAEjC,UAAI,QAAQ,GAAG;AACb,eAAO,GAAG,KAAK,QAAQ,QAAQ,IAAI,MAAM,EAAE;AAAA,MAChD,WAAc,OAAO,GAAG;AACnB,eAAO,GAAG,IAAI,OAAO,OAAO,IAAI,MAAM,EAAE;AAAA,MAC7C,WAAc,QAAQ,GAAG;AACpB,eAAO,GAAG,KAAK,QAAQ,QAAQ,IAAI,MAAM,EAAE;AAAA,MAChD,WAAc,UAAU,GAAG;AACtB,eAAO,GAAG,OAAO,UAAU,UAAU,IAAI,MAAM,EAAE;AAAA,MACtD,OAAU;AACL,eAAO;AAAA,MACZ;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
5
|
const Popup = require("../../../../../components/Popup/Popup.vue.cjs");
|
|
6
|
-
const Button = require("../../../../../components/Button/Button.
|
|
6
|
+
const Button = require("../../../../../components/Button/Button.vue2.cjs");
|
|
7
7
|
const _hoisted_1 = { class: "t-center" };
|
|
8
8
|
const _hoisted_2 = { class: "mn-b-medium" };
|
|
9
9
|
const _hoisted_3 = { class: "mn-b-semi t-transp" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createBlock, openBlock, withCtx, createElementVNode, toDisplayString, createVNode, createTextVNode } from "vue";
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import _sfc_main$1 from "../../../../../components/Popup/Popup.vue.js";
|
|
4
|
-
import _sfc_main$2 from "../../../../../components/Button/Button.
|
|
4
|
+
import _sfc_main$2 from "../../../../../components/Button/Button.vue2.js";
|
|
5
5
|
const _hoisted_1 = { class: "t-center" };
|
|
6
6
|
const _hoisted_2 = { class: "mn-b-medium" };
|
|
7
7
|
const _hoisted_3 = { class: "mn-b-semi t-transp" };
|
|
@@ -5,7 +5,7 @@ const vueI18n = require("vue-i18n");
|
|
|
5
5
|
const Popup = require("../../../../../components/Popup/Popup.vue.cjs");
|
|
6
6
|
const Loader = require("../../../../../components/Loader/Loader.vue2.cjs");
|
|
7
7
|
const Calendar = require("../../../../../components/Calendar/Calendar.vue.cjs");
|
|
8
|
-
const Button = require("../../../../../components/Button/Button.
|
|
8
|
+
const Button = require("../../../../../components/Button/Button.vue2.cjs");
|
|
9
9
|
const IconShopcartAdd = require("../../../../icons/actions/IconShopcartAdd.vue.cjs");
|
|
10
10
|
const PriceTotal = require("../../../../orders/components/elements/PriceTotal.vue.cjs");
|
|
11
11
|
const rents_store = require("../../../../rents/views/store/rents.store.cjs");
|
|
@@ -21,7 +21,10 @@ const _hoisted_3 = { class: "gap-thin flex flex-center flex-nowrap" };
|
|
|
21
21
|
const _sfc_main = {
|
|
22
22
|
__name: "PopupDateSelector",
|
|
23
23
|
props: {
|
|
24
|
-
|
|
24
|
+
productId: { type: String, required: true },
|
|
25
|
+
variantId: { type: String, required: true },
|
|
26
|
+
quantity: { type: Number, default: 1 },
|
|
27
|
+
price: { type: Number, required: true },
|
|
25
28
|
isOpen: { type: Boolean, required: true },
|
|
26
29
|
showFees: { type: Boolean, default: false },
|
|
27
30
|
showVat: { type: Boolean, default: false },
|
|
@@ -48,7 +51,9 @@ const _sfc_main = {
|
|
|
48
51
|
const availabilityError = vue.ref(null);
|
|
49
52
|
const isAvailable = vue.ref(true);
|
|
50
53
|
async function loadAvailabilityData() {
|
|
51
|
-
if (!props.
|
|
54
|
+
if (!props.productId || !props.variantId) return;
|
|
55
|
+
console.log("productId", props.productId);
|
|
56
|
+
console.log("variantId", props.variantId);
|
|
52
57
|
isLoading.value = true;
|
|
53
58
|
availabilityError.value = null;
|
|
54
59
|
try {
|
|
@@ -56,7 +61,8 @@ const _sfc_main = {
|
|
|
56
61
|
const start = new Date(today.getFullYear(), today.getMonth(), 1);
|
|
57
62
|
const end = new Date(today.getFullYear(), today.getMonth() + 2, 0);
|
|
58
63
|
const data = await rents_store.loadAvailability({
|
|
59
|
-
productId: props.
|
|
64
|
+
productId: props.productId,
|
|
65
|
+
variantId: props.variantId,
|
|
60
66
|
startDate: start.toISOString().split("T")[0],
|
|
61
67
|
endDate: end.toISOString().split("T")[0]
|
|
62
68
|
});
|
|
@@ -79,7 +85,7 @@ const _sfc_main = {
|
|
|
79
85
|
return diffDays > 0 ? diffDays : 0;
|
|
80
86
|
}
|
|
81
87
|
const numberOfDays = vue.computed(() => calculateDays(selectedDates.value.start, selectedDates.value.end));
|
|
82
|
-
const totalAmount = vue.computed(() => props.
|
|
88
|
+
const totalAmount = vue.computed(() => props.price * numberOfDays.value * props.quantity);
|
|
83
89
|
function closePopup() {
|
|
84
90
|
emit("close");
|
|
85
91
|
}
|
|
@@ -93,7 +99,7 @@ const _sfc_main = {
|
|
|
93
99
|
if (props.onCancel) {
|
|
94
100
|
props.onCancel();
|
|
95
101
|
}
|
|
96
|
-
|
|
102
|
+
emit("close-popup");
|
|
97
103
|
}
|
|
98
104
|
vue.watch([() => selectedDates.value.start, () => selectedDates.value.end], ([newStart, newEnd]) => {
|
|
99
105
|
}, { immediate: false });
|
|
@@ -126,9 +132,10 @@ const _sfc_main = {
|
|
|
126
132
|
availabilityData: availabilityData.value,
|
|
127
133
|
showAvailability: true,
|
|
128
134
|
lowAvailabilityThreshold: 3,
|
|
135
|
+
requiredQuantity: __props.quantity,
|
|
129
136
|
class: "bg-light radius-small",
|
|
130
137
|
disabled: isLoading.value
|
|
131
|
-
}, null, 8, ["date", "availabilityData", "disabled"]),
|
|
138
|
+
}, null, 8, ["date", "availabilityData", "requiredQuantity", "disabled"]),
|
|
132
139
|
isLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
133
140
|
vue.createVNode(Loader.default, { centered: false }),
|
|
134
141
|
_cache[1] || (_cache[1] = vue.createElementVNode("span", null, "Loading availability data...", -1))
|
package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopupDateSelector.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/blocks/PopupDateSelector.vue"],"sourcesContent":["<template>\n <Popup @close-popup=\"closePopup\" :isPopupOpen=\"isOpen\" class=\"radius-medium tablet:w-min-30r pd-medium bg-white o-hidden\">\n <h5 class=\"w-100 t-center mn-b-small\">Select Rent Period</h5>\n <Calendar\n v-model:date=\"selectedDates\"\n :allowRange=\"true\"\n :disablePastDates=\"true\"\n :availabilityData=\"availabilityData\"\n :showAvailability=\"true\"\n :lowAvailabilityThreshold=\"3\"\n class=\"bg-light radius-small\"\n :disabled=\"isLoading\"\n />\n <div v-if=\"isLoading\" class=\"flex w-100 mn-t-thin bg-light radius-small flex-center pd-thin mn-b-thin\">\n <Loader :centered=\"false\" />\n <span>Loading availability data...</span>\n </div>\n\n <div v-if=\"availabilityError\" class=\"pd-small t-error\">\n {{ availabilityError }}\n </div>\n \n <PriceTotal\n :totalPrice=\"totalAmount\"\n :currency=\"returnCurrency()\"\n :showFees=\"showFees\"\n :feesRate=\"feesRate\"\n :showVat=\"showVat\"\n :vatRate=\"vatRate\"\n />\n <Button\n @click=\"confirmSelection\"\n :disabled=\"!selectedDates.start || !selectedDates.end || isLoading || !isAvailable\"\n class=\"h-3r w-100 bg-main button\"\n >\n <div class=\"gap-thin flex flex-center flex-nowrap\">\n <IconShopcartAdd class=\"i-semi icon-button-main\" />\n <span>{{t('addtoorder')}}</span>\n </div>\n </Button>\n <Button\n v-if=\"showCancelButton\"\n @click=\"cancelSelection\"\n class=\"mn-t-thin h-3r w-100 t-white bg-red button\"\n >\n <span>{{ t('remove') }}</span>\n </Button>\n </Popup>\n</template>\n\n<script setup>\nimport { ref, computed, watch, onMounted } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport Popup from '@martyrs/src/components/Popup/Popup.vue'\nimport Loader from '@martyrs/src/components/Loader/Loader.vue'\nimport Calendar from '@martyrs/src/components/Calendar/Calendar.vue'\nimport Button from '@martyrs/src/components/Button/Button.vue'\nimport IconShopcartAdd from '@martyrs/src/modules/icons/actions/IconShopcartAdd.vue'\nimport PriceTotal from '@martyrs/src/modules/orders/components/elements/PriceTotal.vue'\n// Import the store actions\nimport * as rents from '@martyrs/src/modules/rents/views/store/rents.store.js'\n\nconst props = defineProps({\n
|
|
1
|
+
{"version":3,"file":"PopupDateSelector.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/blocks/PopupDateSelector.vue"],"sourcesContent":["<template>\n <Popup @close-popup=\"closePopup\" :isPopupOpen=\"isOpen\" class=\"radius-medium tablet:w-min-30r pd-medium bg-white o-hidden\">\n <h5 class=\"w-100 t-center mn-b-small\">Select Rent Period</h5>\n <Calendar\n v-model:date=\"selectedDates\"\n :allowRange=\"true\"\n :disablePastDates=\"true\"\n :availabilityData=\"availabilityData\"\n :showAvailability=\"true\"\n :lowAvailabilityThreshold=\"3\"\n :requiredQuantity=\"quantity\"\n class=\"bg-light radius-small\"\n :disabled=\"isLoading\"\n />\n <div v-if=\"isLoading\" class=\"flex w-100 mn-t-thin bg-light radius-small flex-center pd-thin mn-b-thin\">\n <Loader :centered=\"false\" />\n <span>Loading availability data...</span>\n </div>\n\n <div v-if=\"availabilityError\" class=\"pd-small t-error\">\n {{ availabilityError }}\n </div>\n \n <PriceTotal\n :totalPrice=\"totalAmount\"\n :currency=\"returnCurrency()\"\n :showFees=\"showFees\"\n :feesRate=\"feesRate\"\n :showVat=\"showVat\"\n :vatRate=\"vatRate\"\n />\n <Button\n @click=\"confirmSelection\"\n :disabled=\"!selectedDates.start || !selectedDates.end || isLoading || !isAvailable\"\n class=\"h-3r w-100 bg-main button\"\n >\n <div class=\"gap-thin flex flex-center flex-nowrap\">\n <IconShopcartAdd class=\"i-semi icon-button-main\" />\n <span>{{t('addtoorder')}}</span>\n </div>\n </Button>\n <Button\n v-if=\"showCancelButton\"\n @click=\"cancelSelection\"\n class=\"mn-t-thin h-3r w-100 t-white bg-red button\"\n >\n <span>{{ t('remove') }}</span>\n </Button>\n </Popup>\n</template>\n\n<script setup>\nimport { ref, computed, watch, onMounted } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport Popup from '@martyrs/src/components/Popup/Popup.vue'\nimport Loader from '@martyrs/src/components/Loader/Loader.vue'\nimport Calendar from '@martyrs/src/components/Calendar/Calendar.vue'\nimport Button from '@martyrs/src/components/Button/Button.vue'\nimport IconShopcartAdd from '@martyrs/src/modules/icons/actions/IconShopcartAdd.vue'\nimport PriceTotal from '@martyrs/src/modules/orders/components/elements/PriceTotal.vue'\n// Import the store actions\nimport * as rents from '@martyrs/src/modules/rents/views/store/rents.store.js'\n\nconst props = defineProps({\n productId: { type: String, required: true },\n variantId: { type: String, required: true },\n quantity: { type: Number, default: 1 },\n price: { type: Number, required: true },\n isOpen: { type: Boolean, required: true },\n showFees: { type: Boolean, default: false },\n showVat: { type: Boolean, default: false },\n feesRate: { type: Number, default: 0 },\n vatRate: { type: Number, default: 0 },\n onConfirm: { type: Function, required: true },\n onCancel: { type: Function, default: null },\n showCancelButton: { type: Boolean, default: false }\n})\n\nconst emit = defineEmits(['close'])\nconst { t } = useI18n({\n messages: {\n en: {\n addtoorder: 'Add to Shopcart'\n }\n }\n})\n\nconst selectedDates = ref({ start: null, end: null })\nconst availabilityData = ref([])\nconst isLoading = ref(false)\nconst availabilityError = ref(null)\nconst isAvailable = ref(true)\n\n// Load availability data for the current month and next month\nasync function loadAvailabilityData() {\n if (!props.productId || !props.variantId) return;\n\n console.log('productId', props.productId)\n console.log('variantId', props.variantId)\n \n isLoading.value = true;\n availabilityError.value = null;\n \n try {\n const today = new Date();\n const start = new Date(today.getFullYear(), today.getMonth(), 1);\n const end = new Date(today.getFullYear(), today.getMonth() + 2, 0);\n \n const data = await rents.loadAvailability({\n productId: props.productId,\n variantId: props.variantId,\n startDate: start.toISOString().split('T')[0],\n endDate: end.toISOString().split('T')[0]\n });\n \n if (data && data.availability) {\n availabilityData.value = data.availability;\n }\n } catch (error) {\n console.error('Error loading availability data:', error);\n availabilityError.value = 'Failed to load availability data. Please try again.';\n } finally {\n isLoading.value = false;\n }\n}\n\n// Check availability for selected date range\nasync function checkAvailability() {\n if (!selectedDates.value.start || !selectedDates.value.end || !props.productId || !props.variantId) {\n isAvailable.value = false;\n return;\n }\n \n isLoading.value = true;\n availabilityError.value = null;\n \n try {\n const data = await rents.loadAvailability({\n productId: props.productId,\n variantId: props.variantId,\n startDate: selectedDates.value.start.split('T')[0],\n endDate: selectedDates.value.end.split('T')[0]\n });\n \n isAvailable.value = data.available >= props.quantity;\n \n if (!isAvailable.value) {\n availabilityError.value = `Insufficient quantity. Available: ${data.available}, needed: ${props.quantity}`;\n }\n } catch (error) {\n console.error('Error checking availability:', error);\n availabilityError.value = 'Failed to check availability. Please try again.';\n isAvailable.value = false;\n } finally {\n isLoading.value = false;\n }\n}\n\nfunction calculateDays(start, end) {\n if (!start || !end) return 0\n const startDate = new Date(start)\n const endDate = new Date(end)\n const diffTime = endDate - startDate\n const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24)) + 1\n return diffDays > 0 ? diffDays : 0\n}\n\nconst numberOfDays = computed(() => calculateDays(selectedDates.value.start, selectedDates.value.end))\nconst totalAmount = computed(() => props.price * numberOfDays.value * props.quantity)\n\nfunction closePopup() {\n emit('close')\n}\n\nfunction confirmSelection() {\n if (selectedDates.value.start && selectedDates.value.end && isAvailable.value) {\n props.onConfirm(selectedDates.value)\n closePopup()\n }\n}\n\nfunction cancelSelection() {\n if (props.onCancel) {\n props.onCancel()\n }\n // Эмитим close-popup чтобы плагин закрыл попап\n emit('close-popup')\n}\n\nwatch([() => selectedDates.value.start, () => selectedDates.value.end], ([newStart, newEnd]) => {\n if (newStart && newEnd) {\n // checkAvailability();\n }\n}, { immediate: false });\n\nwatch(() => props.isOpen, (newVal) => {\n if (newVal) {\n loadAvailabilityData();\n } else {\n selectedDates.value = { start: null, end: null };\n availabilityError.value = null;\n }\n}, { immediate: true });\n\nonMounted(() => {\n if (props.isOpen) {\n loadAvailabilityData();\n }\n});\n</script>"],"names":["useI18n","ref","rents.loadAvailability","computed","watch","onMounted"],"mappings":"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"}
|