@ozdao/martyrs 0.2.506 → 0.2.507
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/auth.server.cjs +1 -1
- package/dist/auth.server.js +1 -1
- package/dist/builder.cjs +52 -60
- package/dist/builder.js +52 -60
- package/dist/chats.server.cjs +1 -1
- package/dist/chats.server.js +1 -1
- package/dist/events.server.cjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/{mailing-q7sR8gCV.cjs → mailing-Bs9ThyVZ.cjs} +1 -24
- package/dist/{mailing-C11EYWm-.js → mailing-DzlhsxCC.js} +1 -24
- package/dist/main-AWSb_d2P.cjs +11 -0
- package/dist/{main-DC__VS5b.js → main-Dq-UfO4G.js} +2562 -2477
- package/dist/martyrs/src/components/Button/{Button.vue.cjs → Button.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +2 -2
- package/dist/martyrs/src/components/Button/{Button.vue.cjs.map → Button.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs +3 -3
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +3 -3
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs +0 -93
- package/dist/martyrs/src/components/EditImages/EditImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js +1 -94
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs +93 -0
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js +94 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +14 -45
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +21 -52
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.cjs +14 -6
- package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.js +14 -6
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +58 -11
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +60 -13
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js.map +1 -1
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs +2 -2
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js +2 -2
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js.map +1 -1
- package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.cjs → Spoiler.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Spoiler/Spoiler.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.js → Spoiler.vue2.js} +2 -2
- package/dist/martyrs/src/components/Spoiler/{Spoiler.vue.cjs.map → Spoiler.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Tab/{Tab.vue.cjs → Tab.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
- package/dist/martyrs/src/components/Tab/{Tab.vue.cjs.map → Tab.vue2.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 +2 -2
- 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 +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +2 -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 +2 -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/ProfileBlogposts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +42 -10
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +44 -12
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +12 -16
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +22 -26
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +13 -17
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +34 -38
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs +13 -9
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +13 -9
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.cjs +0 -4
- package/dist/martyrs/src/modules/auth/views/router/users.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.js +0 -4
- package/dist/martyrs/src/modules/auth/views/router/users.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs +431 -0
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js +431 -0
- package/dist/martyrs/src/modules/community/components/pages/Posts.vue.js.map +1 -0
- package/dist/martyrs/src/modules/community/router/blogposts.cjs +17 -0
- package/dist/martyrs/src/modules/community/router/blogposts.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/router/blogposts.js +17 -0
- package/dist/martyrs/src/modules/community/router/blogposts.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 +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +1 -3
- 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 +1 -3
- package/dist/martyrs/src/modules/events/components/pages/Event.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.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs +4 -6
- package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js +4 -6
- package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/BlockFilter.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.cjs +5 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.js +6 -3
- package/dist/martyrs/src/modules/globals/views/components/blocks/Card.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +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 +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -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 +2 -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/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/Navigation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.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/sections/Filters.vue2.cjs +324 -0
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js +324 -0
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
- package/dist/martyrs/src/modules/icons/entities/IconLock.vue.cjs +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconLock.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconLock.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconLock.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/icons.client.cjs +2 -0
- package/dist/martyrs/src/modules/icons/icons.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/icons.client.js +116 -114
- package/dist/martyrs/src/modules/icons/icons.client.js.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +5 -3
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +117 -115
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +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.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +11 -36
- 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 +11 -36
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/landing.client.cjs +3 -0
- package/dist/martyrs/src/modules/landing/landing.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/landing/landing.client.js +3 -0
- package/dist/martyrs/src/modules/landing/landing.client.js.map +1 -1
- package/dist/martyrs/src/modules/landing/locales/en.cjs +12 -0
- package/dist/martyrs/src/modules/landing/locales/en.cjs.map +1 -0
- package/dist/martyrs/src/modules/landing/locales/en.js +12 -0
- package/dist/martyrs/src/modules/landing/locales/en.js.map +1 -0
- package/dist/martyrs/src/modules/landing/locales/index.cjs +10 -0
- package/dist/martyrs/src/modules/landing/locales/index.cjs.map +1 -0
- package/dist/martyrs/src/modules/landing/locales/index.js +10 -0
- package/dist/martyrs/src/modules/landing/locales/index.js.map +1 -0
- package/dist/martyrs/src/modules/landing/locales/ru.cjs +12 -0
- package/dist/martyrs/src/modules/landing/locales/ru.cjs.map +1 -0
- package/dist/martyrs/src/modules/landing/locales/ru.js +12 -0
- package/dist/martyrs/src/modules/landing/locales/ru.js.map +1 -0
- 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/ArtistCardSmall.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.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 +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +1 -1
- 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 +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +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.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +1 -1
- 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 +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +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/music/router/music.cjs +2 -4
- package/dist/martyrs/src/modules/music/router/music.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/router/music.js +2 -4
- package/dist/martyrs/src/modules/music/router/music.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.cjs +1 -1
- package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.cjs +86 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +86 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.cjs +103 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +103 -0
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.cjs +194 -0
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js +194 -0
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs +138 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +138 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +189 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +189 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.cjs +173 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +173 -0
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.cjs +233 -0
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +233 -0
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.cjs +234 -0
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js +234 -0
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +10 -9
- 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 +10 -9
- 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 +9 -83
- 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 +10 -84
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.cjs +119 -0
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +119 -0
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs +139 -0
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +139 -0
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -0
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -3
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +1 -3
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/locales/en.cjs +38 -0
- package/dist/martyrs/src/modules/orders/locales/en.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/locales/en.js +38 -0
- package/dist/martyrs/src/modules/orders/locales/en.js.map +1 -0
- package/dist/martyrs/src/modules/orders/locales/index.cjs +10 -0
- package/dist/martyrs/src/modules/orders/locales/index.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/locales/index.js +10 -0
- package/dist/martyrs/src/modules/orders/locales/index.js.map +1 -0
- package/dist/martyrs/src/modules/orders/locales/ru.cjs +38 -0
- package/dist/martyrs/src/modules/orders/locales/ru.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/locales/ru.js +38 -0
- package/dist/martyrs/src/modules/orders/locales/ru.js.map +1 -0
- package/dist/martyrs/src/modules/orders/orders.client.cjs +78 -3
- package/dist/martyrs/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +80 -5
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/orders/router/applications.router.cjs +17 -0
- package/dist/martyrs/src/modules/orders/router/applications.router.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/router/applications.router.js +17 -0
- package/dist/martyrs/src/modules/orders/router/applications.router.js.map +1 -0
- package/dist/martyrs/src/modules/orders/router/customers.router.cjs +18 -0
- package/dist/martyrs/src/modules/orders/router/customers.router.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/router/customers.router.js +18 -0
- package/dist/martyrs/src/modules/orders/router/customers.router.js.map +1 -0
- package/dist/martyrs/src/modules/orders/store/applications.cjs +4 -42
- package/dist/martyrs/src/modules/orders/store/applications.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/store/applications.js +3 -41
- package/dist/martyrs/src/modules/orders/store/applications.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/models/application.cjs +20 -0
- package/dist/martyrs/src/modules/orders/store/models/application.cjs.map +1 -0
- package/dist/martyrs/src/modules/orders/store/models/application.js +20 -0
- package/dist/martyrs/src/modules/orders/store/models/application.js.map +1 -0
- package/dist/martyrs/src/modules/orders/store/models/customer.cjs +13 -1
- package/dist/martyrs/src/modules/orders/store/models/customer.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/store/models/customer.js +13 -1
- package/dist/martyrs/src/modules/orders/store/models/customer.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.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.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +16 -192
- 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 +17 -193
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.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 +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -11
- 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 +6 -15
- 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 +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +85 -89
- 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 +92 -96
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs +4 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.js +4 -0
- 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 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.cjs +3 -6
- package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.js +3 -6
- package/dist/martyrs/src/modules/pages/views/components/pages/Page.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +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/CardCategory.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardCategory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +22 -19
- 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 +22 -19
- 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 +28 -19
- 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 +28 -19
- 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 +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +360 -105
- 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 +378 -123
- 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 +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +33 -3
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +34 -4
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +2 -2
- package/dist/martyrs/src/modules/products/router/products.router.cjs +15 -0
- package/dist/martyrs/src/modules/products/router/products.router.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/router/products.router.js +15 -0
- package/dist/martyrs/src/modules/products/router/products.router.js.map +1 -1
- package/dist/martyrs/src/modules/products/store/categories.cjs +25 -7
- package/dist/martyrs/src/modules/products/store/categories.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/store/categories.js +25 -7
- package/dist/martyrs/src/modules/products/store/categories.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.cjs +2 -2
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +2 -2
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +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/layouts/Spots.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +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 +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +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 +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs +345 -0
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +345 -0
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -0
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/router/spots.cjs +17 -0
- package/dist/martyrs/src/modules/spots/router/spots.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/router/spots.js +17 -0
- package/dist/martyrs/src/modules/spots/router/spots.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/notifications.server.cjs +1 -1
- package/dist/notifications.server.js +1 -1
- package/dist/orders.server.cjs +459 -201
- package/dist/orders.server.js +459 -201
- package/dist/organizations.server.cjs +1 -1
- package/dist/organizations.server.js +1 -1
- package/dist/products.server.cjs +428 -255
- package/dist/products.server.js +428 -255
- package/dist/style.css +115 -139
- package/dist/{tickets.controller-DQQcjyui.js → tickets.controller-C56OvH6v.js} +1 -1
- package/dist/{tickets.controller-D0V0gJCA.cjs → tickets.controller-DdnndM6c.cjs} +1 -1
- package/dist/wallet.server.cjs +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/{web-B1bEJ1W9.js → web-BXajFCU2.js} +1 -1
- package/dist/{web-D5i9k2Vv.cjs → web-DaBwwCQ5.cjs} +1 -1
- package/package.json +1 -1
- package/src/builder/modes/ssr.dev.js +10 -10
- package/src/builder/rspack/rspack.config.ssr.client.js +50 -50
- package/src/components/Checkbox/Checkbox.vue +3 -4
- package/src/components/Feed/Feed.old.vue +522 -0
- package/src/components/Feed/Feed.vue +4 -4
- package/src/components/Field/Field.vue +7 -1
- package/src/components/FieldBig/FieldBig.vue +62 -8
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/modules/STYLES.MD +198 -0
- package/src/modules/auth/views/components/pages/Profile.vue +1 -1
- package/src/modules/auth/views/components/pages/ProfileEdit.vue +42 -8
- package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +9 -11
- package/src/modules/auth/views/components/pages/ProfileEditProfile.vue +9 -11
- package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +7 -4
- package/src/modules/auth/views/router/users.js +0 -4
- package/src/modules/community/components/pages/Posts.vue +444 -0
- package/src/modules/community/router/blogposts.js +15 -0
- package/src/modules/globals/views/classes/globals.websocket.js +7 -8
- package/src/modules/globals/views/components/blocks/Card.vue +2 -1
- package/src/modules/globals/views/components/layouts/Client.vue +1 -2
- package/src/modules/globals/views/components/partials/FooterAlt.vue +161 -188
- package/src/modules/globals/views/components/sections/Filters.vue +261 -121
- package/src/modules/globals/views/components/sections/filters/FilterCheckbox.vue +78 -0
- package/src/modules/globals/views/components/sections/filters/FilterDateRange.vue +177 -0
- package/src/modules/globals/views/components/sections/filters/FilterRange.vue +51 -50
- package/src/modules/icons/entities/IconLock.vue +14 -0
- package/src/modules/icons/icons.client.js +2 -1
- package/src/modules/icons/pages/IconsPage.vue +4 -2
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +11 -61
- package/src/modules/landing/landing.client.js +6 -0
- package/src/modules/landing/locales/en.js +9 -0
- package/src/modules/landing/locales/index.js +7 -0
- package/src/modules/landing/locales/ru.js +9 -0
- package/src/modules/music/components/pages/Album.vue +1 -1
- package/src/modules/music/components/pages/Playlist.vue +1 -1
- package/src/modules/music/components/pages/Track.vue +1 -1
- package/src/modules/orders/components/blocks/CardApplication.vue +74 -0
- package/src/modules/orders/components/blocks/CardCustomer.vue +90 -0
- package/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue +199 -0
- package/src/modules/orders/components/forms/FormApplicationDetails.vue +117 -0
- package/src/modules/orders/components/forms/FormCustomerDetails.vue +165 -0
- package/src/modules/orders/components/forms/FormSelectCustomer.vue +172 -0
- package/src/modules/orders/components/pages/Applications.vue +240 -0
- package/src/modules/orders/components/pages/Customers.vue +239 -0
- package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +4 -75
- package/src/modules/orders/components/sections/ApplicationDetails.vue +91 -0
- package/src/modules/orders/components/sections/CustomerDetails.vue +107 -0
- package/src/modules/orders/locales/en.js +35 -0
- package/src/modules/orders/locales/index.js +7 -0
- package/src/modules/orders/locales/ru.js +35 -0
- package/src/modules/orders/middlewares/applications.verifier.js +189 -0
- package/src/modules/orders/middlewares/customers.verifier.js +251 -0
- package/src/modules/orders/models/application.model.js +21 -0
- package/src/modules/orders/models/customer.model.js +26 -0
- package/src/modules/orders/orders.client.js +86 -1
- package/src/modules/orders/orders.server.js +3 -1
- package/src/modules/orders/router/applications.router.js +15 -0
- package/src/modules/orders/router/customers.router.js +17 -0
- package/src/modules/orders/routes/applications.routes.js +124 -12
- package/src/modules/orders/routes/customers.routes.js +43 -0
- package/src/modules/orders/store/applications.js +3 -159
- package/src/modules/orders/store/models/application.js +18 -0
- package/src/modules/orders/store/models/customer.js +12 -0
- package/src/modules/organizations/components/pages/Organization.new.vue +593 -0
- package/src/modules/organizations/components/pages/Organization.vue +10 -201
- package/src/modules/organizations/components/sections/DetailsTabSection.vue +2 -2
- package/src/modules/organizations/configs/navigation.organization.config.js +69 -85
- package/src/modules/organizations/router/organizations.js +5 -0
- package/src/modules/pages/views/components/pages/Page.vue +1 -1
- package/src/modules/products/TASKS.MD +157 -0
- package/src/modules/products/components/blocks/CardCategory.vue +1 -1
- package/src/modules/products/components/blocks/ProductImages.vue +1 -1
- package/src/modules/products/components/pages/Categories.vue +27 -22
- package/src/modules/products/components/pages/CategoryEdit.vue +24 -13
- package/src/modules/products/components/pages/Products.vue +414 -173
- package/src/modules/products/components/sections/ProductsRecommended.vue +46 -2
- package/src/modules/products/controllers/categories.controller.js +321 -282
- package/src/modules/products/controllers/configs/products.lookup.config.js +9 -0
- package/src/modules/products/controllers/products.controller.js +2 -1
- package/src/modules/products/controllers/queries/products.queries.js +183 -11
- package/src/modules/products/middlewares/categories.verifier.js +58 -15
- package/src/modules/products/migrations/categories-to-materialized-path.js +433 -0
- package/src/modules/products/migrations/path-to-url.js +27 -0
- package/src/modules/products/models/category.model.js +8 -23
- package/src/modules/products/router/products.router.js +12 -0
- package/src/modules/products/store/categories.js +26 -7
- package/src/modules/rents/TASK.MD +161 -0
- package/src/modules/spots/components/pages/Spots.vue +342 -0
- package/src/modules/spots/router/spots.js +15 -0
- package/src/styles/base/all.scss +2 -3
- package/src/styles/layout.scss +16 -0
- package/dist/main-w3rPUBVh.cjs +0 -11
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.cjs +0 -96
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js +0 -96
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js.map +0 -1
- package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
- package/dist/martyrs/src/components/Spoiler/Spoiler.vue.js.map +0 -1
- package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +0 -155
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +0 -155
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js.map +0 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +0 -81
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js +0 -81
- package/dist/martyrs/src/modules/orders/components/sections/FormCustomerDetails.vue.js.map +0 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +0 -152
- package/src/modules/orders/components/sections/FormCustomerDetails.vue +0 -67
- package/src/modules/orders/controllers/applications.controller.js +0 -122
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const vueRouter = require("vue-router");
|
|
5
|
+
const Block = require("../../../../components/Block/Block.vue.cjs");
|
|
6
|
+
;/* empty css */
|
|
7
|
+
const IconCross = require("../../../icons/navigation/IconCross.vue.cjs");
|
|
8
|
+
;/* empty css */
|
|
9
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
|
10
|
+
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
|
11
|
+
const BlockSearch = require("../../../globals/views/components/blocks/BlockSearch.vue.cjs");
|
|
12
|
+
const Card = require("../../../globals/views/components/blocks/Card.vue.cjs");
|
|
13
|
+
const CardCustomer = require("../blocks/CardCustomer.vue.cjs");
|
|
14
|
+
const FormCustomerDetails = require("./FormCustomerDetails.vue.cjs");
|
|
15
|
+
const auth = require("../../../auth/views/store/auth.cjs");
|
|
16
|
+
const customers_store = require("../../store/customers.store.cjs");
|
|
17
|
+
const customer = require("../../store/models/customer.cjs");
|
|
18
|
+
const mixins = require("../../../globals/views/mixins/mixins.cjs");
|
|
19
|
+
const _hoisted_1 = { key: 1 };
|
|
20
|
+
const _hoisted_2 = ["onClick"];
|
|
21
|
+
const _sfc_main = {
|
|
22
|
+
__name: "FormSelectCustomer",
|
|
23
|
+
props: {
|
|
24
|
+
"customer": {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: null
|
|
27
|
+
},
|
|
28
|
+
"customerModifiers": {}
|
|
29
|
+
},
|
|
30
|
+
emits: ["update:customer"],
|
|
31
|
+
setup(__props) {
|
|
32
|
+
const { formatDate } = mixins.useGlobalMixins();
|
|
33
|
+
const customer$1 = vue.useModel(__props, "customer");
|
|
34
|
+
const route = vueRouter.useRoute();
|
|
35
|
+
const searchUser = vue.ref(null);
|
|
36
|
+
const showCreatePopup = vue.ref(false);
|
|
37
|
+
const newCustomer = vue.ref({ ...customer.default });
|
|
38
|
+
function selectCustomer(selectedCustomer) {
|
|
39
|
+
customer$1.value = selectedCustomer;
|
|
40
|
+
}
|
|
41
|
+
function clearCustomer() {
|
|
42
|
+
customer$1.value = null;
|
|
43
|
+
}
|
|
44
|
+
function openCreatePopup() {
|
|
45
|
+
newCustomer.value = { ...customer.default };
|
|
46
|
+
if (route.params._id) {
|
|
47
|
+
newCustomer.value.owner = {
|
|
48
|
+
type: "Organization",
|
|
49
|
+
target: route.params._id
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
newCustomer.value.creator = {
|
|
53
|
+
type: "User",
|
|
54
|
+
target: auth.state.user._id
|
|
55
|
+
};
|
|
56
|
+
showCreatePopup.value = true;
|
|
57
|
+
}
|
|
58
|
+
function closeCreatePopup() {
|
|
59
|
+
showCreatePopup.value = false;
|
|
60
|
+
newCustomer.value = { ...customer.default };
|
|
61
|
+
}
|
|
62
|
+
async function saveNewCustomer() {
|
|
63
|
+
try {
|
|
64
|
+
const cleanData = { ...newCustomer.value };
|
|
65
|
+
if (!cleanData.email) delete cleanData.email;
|
|
66
|
+
if (!cleanData.phone) delete cleanData.phone;
|
|
67
|
+
if (!cleanData.notes) delete cleanData.notes;
|
|
68
|
+
if (!cleanData.referral?.code) {
|
|
69
|
+
if (cleanData.referral) delete cleanData.referral.code;
|
|
70
|
+
}
|
|
71
|
+
cleanData.owner = {
|
|
72
|
+
type: "Organization",
|
|
73
|
+
target: route.params._id
|
|
74
|
+
};
|
|
75
|
+
cleanData.creator = {
|
|
76
|
+
type: "User",
|
|
77
|
+
target: auth.state.user._id
|
|
78
|
+
};
|
|
79
|
+
const created = await customers_store.default.create(cleanData);
|
|
80
|
+
customer$1.value = created;
|
|
81
|
+
closeCreatePopup();
|
|
82
|
+
} catch (error) {
|
|
83
|
+
console.error("Error creating customer:", error);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return (_ctx, _cache) => {
|
|
87
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
88
|
+
vue.createVNode(Block.default, {
|
|
89
|
+
title: "Customer",
|
|
90
|
+
class: "pos-relative mn-b-thin",
|
|
91
|
+
actions: [{
|
|
92
|
+
label: "+",
|
|
93
|
+
function: () => openCreatePopup()
|
|
94
|
+
}]
|
|
95
|
+
}, {
|
|
96
|
+
default: vue.withCtx(() => [
|
|
97
|
+
customer$1.value?._id ? (vue.openBlock(), vue.createBlock(Card.default, {
|
|
98
|
+
key: 0,
|
|
99
|
+
photo: customer$1.value.profile?.photo,
|
|
100
|
+
title: customer$1.value.profile?.name || customer$1.value.phone || customer$1.value.email || "Unnamed Customer",
|
|
101
|
+
subtitle: customer$1.value.email || customer$1.value.phone,
|
|
102
|
+
action: {
|
|
103
|
+
label: { is: IconCross.default },
|
|
104
|
+
method: clearCustomer
|
|
105
|
+
},
|
|
106
|
+
class: "bg-white h-2r pd-thin radius-medium w-100 flex flex-v-center gap-thin"
|
|
107
|
+
}, null, 8, ["photo", "title", "subtitle", "action"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
108
|
+
vue.createVNode(BlockSearch.default, {
|
|
109
|
+
onSearch: _cache[0] || (_cache[0] = (event) => {
|
|
110
|
+
searchUser.value = event;
|
|
111
|
+
}),
|
|
112
|
+
placeholder: "Enter name, phone or email",
|
|
113
|
+
class: "bg-white mn-b-thin"
|
|
114
|
+
}),
|
|
115
|
+
vue.createVNode(Feed.default, {
|
|
116
|
+
states: {
|
|
117
|
+
empty: {
|
|
118
|
+
title: "No Customer Found",
|
|
119
|
+
description: "Currently, there are no such customer."
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
store: vue.unref(customers_store.default),
|
|
123
|
+
options: {
|
|
124
|
+
search: searchUser.value,
|
|
125
|
+
owner: vue.unref(route).params._id
|
|
126
|
+
},
|
|
127
|
+
showLoadMore: false,
|
|
128
|
+
class: "h-max-20r o-scroll"
|
|
129
|
+
}, {
|
|
130
|
+
default: vue.withCtx(({ items }) => [
|
|
131
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, (customerItem) => {
|
|
132
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
133
|
+
key: customerItem._id,
|
|
134
|
+
onClick: ($event) => selectCustomer(customerItem),
|
|
135
|
+
class: "bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer"
|
|
136
|
+
}, [
|
|
137
|
+
vue.createVNode(CardCustomer.default, {
|
|
138
|
+
customer: customerItem,
|
|
139
|
+
formatDate: vue.unref(formatDate)
|
|
140
|
+
}, null, 8, ["customer", "formatDate"])
|
|
141
|
+
], 8, _hoisted_2);
|
|
142
|
+
}), 128))
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["store", "options"])
|
|
146
|
+
]))
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
}, 8, ["actions"]),
|
|
150
|
+
vue.createVNode(Popup.default, {
|
|
151
|
+
isPopupOpen: showCreatePopup.value,
|
|
152
|
+
onClosePopup: closeCreatePopup,
|
|
153
|
+
title: "Create Customer",
|
|
154
|
+
align: "center right",
|
|
155
|
+
class: "bg-white h-min-100 w-max-50r pd-medium"
|
|
156
|
+
}, {
|
|
157
|
+
default: vue.withCtx(() => [
|
|
158
|
+
vue.createVNode(FormCustomerDetails.default, {
|
|
159
|
+
customer: newCustomer.value,
|
|
160
|
+
"onUpdate:customer": _cache[1] || (_cache[1] = ($event) => newCustomer.value = $event),
|
|
161
|
+
onSave: saveNewCustomer,
|
|
162
|
+
onCancel: closeCreatePopup,
|
|
163
|
+
"create-mode": true
|
|
164
|
+
}, null, 8, ["customer"])
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["isPopupOpen"])
|
|
168
|
+
], 64);
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
exports.default = _sfc_main;
|
|
173
|
+
//# sourceMappingURL=FormSelectCustomer.vue.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormSelectCustomer.vue.cjs","sources":["../../../../../../../src/modules/orders/components/forms/FormSelectCustomer.vue"],"sourcesContent":["<template>\n <Block \n title=\"Customer\"\n class=\"pos-relative mn-b-thin\"\n :actions=\"[{\n label: '+',\n function: () => openCreatePopup()\n }]\"\n >\n <Card\n v-if=\"customer?._id\"\n :photo=\"customer.profile?.photo\"\n :title=\"customer.profile?.name || customer.phone || customer.email || 'Unnamed Customer'\"\n :subtitle=\"customer.email || customer.phone\"\n :action=\"{\n label: { is: IconCross },\n method: clearCustomer\n }\"\n class=\"bg-white h-2r pd-thin radius-medium w-100 flex flex-v-center gap-thin\"\n />\n \n <div v-else>\n <BlockSearch \n @search=\"(event) => { searchUser = event }\"\n placeholder=\"Enter name, phone or email\"\n class=\"bg-white mn-b-thin\"\n />\n\n <Feed\n :states=\"{\n empty: {\n title: 'No Customer Found',\n description: 'Currently, there are no such customer.'\n }\n }\"\n :store=\"customers\"\n :options=\"{\n search: searchUser,\n owner: route.params._id\n }\"\n :showLoadMore=\"false\"\n v-slot=\"{ items }\"\n class=\"h-max-20r o-scroll\"\n >\n <div\n v-for=\"customerItem in items\" \n :key=\"customerItem._id\"\n @click=\"selectCustomer(customerItem)\"\n class=\"bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer\"\n >\n <CardCustomer \n :customer=\"customerItem\"\n :formatDate=\"formatDate\"\n />\n </div>\n </Feed>\n </div>\n </Block>\n\n\n <!-- Create Customer Popup -->\n <Popup \n :isPopupOpen=\"showCreatePopup\"\n @close-popup=\"closeCreatePopup\"\n title=\"Create Customer\"\n align=\"center right\"\n class=\"bg-white h-min-100 w-max-50r pd-medium\"\n >\n <FormCustomerDetails \n v-model:customer=\"newCustomer\"\n @save=\"saveNewCustomer\"\n @cancel=\"closeCreatePopup\"\n :create-mode=\"true\"\n />\n </Popup>\n</template>\n\n<script setup>\nimport { ref, computed } from \"vue\"\nimport { useRoute } from 'vue-router'\n\nimport Block from '@martyrs/src/components/Block/Block.vue'\nimport Button from '@martyrs/src/components/Button/Button.vue'\nimport Popup from '@martyrs/src/components/Popup/Popup.vue'\nimport Feed from '@martyrs/src/components/Feed/Feed.vue'\n\nimport BlockSearch from '@martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue'\nimport Card from '@martyrs/src/modules/globals/views/components/blocks/Card.vue'\nimport IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue'\nimport CardCustomer from '@martyrs/src/modules/orders/components/blocks/CardCustomer.vue'\nimport FormCustomerDetails from '@martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue'\n\nimport * as auth from '@martyrs/src/modules/auth/views/store/auth.js';\nimport customers from '@martyrs/src/modules/orders/store/customers.store';\nimport customerInitState from \"@martyrs/src/modules/orders/store/models/customer.js\"\nimport { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js';\n\nconst { formatDate } = useGlobalMixins();\n\n// Props & Model\nconst customer = defineModel('customer', {\n type: Object,\n default: null\n});\n\n// Router\nconst route = useRoute()\n\n// Reactive data\nconst searchUser = ref(null)\nconst showCreatePopup = ref(false)\nconst newCustomer = ref({ ...customerInitState })\n\n// Methods\nfunction selectCustomer(selectedCustomer) {\n customer.value = selectedCustomer\n}\n\nfunction clearCustomer() {\n customer.value = null\n}\n\nfunction openCreatePopup() {\n newCustomer.value = { ...customerInitState }\n if (route.params._id) {\n newCustomer.value.owner = {\n type: 'Organization',\n target: route.params._id\n };\n }\n newCustomer.value.creator = {\n type: 'User',\n target: auth.state.user._id\n };\n showCreatePopup.value = true\n}\n\nfunction closeCreatePopup() {\n showCreatePopup.value = false\n newCustomer.value = { ...customerInitState }\n}\n\nasync function saveNewCustomer() {\n try {\n // Remove empty fields\n const cleanData = { ...newCustomer.value };\n if (!cleanData.email) delete cleanData.email;\n if (!cleanData.phone) delete cleanData.phone;\n if (!cleanData.notes) delete cleanData.notes;\n if (!cleanData.referral?.code) {\n if (cleanData.referral) delete cleanData.referral.code;\n }\n \n // Ensure ownership structure\n cleanData.owner = {\n type: 'Organization',\n target: route.params._id\n };\n \n cleanData.creator = {\n type: 'User',\n target: auth.state.user._id\n };\n\n const created = await customers.create(cleanData);\n customer.value = created;\n closeCreatePopup();\n } catch (error) {\n console.error('Error creating customer:', error);\n }\n}\n</script>"],"names":["useGlobalMixins","customer","_useModel","useRoute","ref","customerInitState","auth.state","customers"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiGA,UAAM,EAAE,WAAU,IAAKA,uBAAe;AAGtC,UAAMC,aAAWC,IAAAA,SAAW,SAAC,UAG5B;AAGD,UAAM,QAAQC,UAAAA,SAAQ;AAGtB,UAAM,aAAaC,IAAAA,IAAI,IAAI;AAC3B,UAAM,kBAAkBA,IAAAA,IAAI,KAAK;AACjC,UAAM,cAAcA,IAAAA,IAAI,EAAE,GAAGC,iBAAiB,CAAE;AAGhD,aAAS,eAAe,kBAAkB;AACxCJ,iBAAS,QAAQ;AAAA,IACnB;AAEA,aAAS,gBAAgB;AACvBA,iBAAS,QAAQ;AAAA,IACnB;AAEA,aAAS,kBAAkB;AACzB,kBAAY,QAAQ,EAAE,GAAGI,SAAAA,QAAiB;AAC1C,UAAI,MAAM,OAAO,KAAK;AACpB,oBAAY,MAAM,QAAQ;AAAA,UACxB,MAAM;AAAA,UACN,QAAQ,MAAM,OAAO;AAAA,QAC3B;AAAA,MACE;AACA,kBAAY,MAAM,UAAU;AAAA,QAC1B,MAAM;AAAA,QACN,QAAQC,KAAAA,MAAW,KAAK;AAAA,MAC5B;AACE,sBAAgB,QAAQ;AAAA,IAC1B;AAEA,aAAS,mBAAmB;AAC1B,sBAAgB,QAAQ;AACxB,kBAAY,QAAQ,EAAE,GAAGD,SAAAA,QAAiB;AAAA,IAC5C;AAEA,mBAAe,kBAAkB;AAC/B,UAAI;AAEF,cAAM,YAAY,EAAE,GAAG,YAAY,MAAK;AACxC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,UAAU,MAAM;AAC7B,cAAI,UAAU,SAAU,QAAO,UAAU,SAAS;AAAA,QACpD;AAGA,kBAAU,QAAQ;AAAA,UAChB,MAAM;AAAA,UACN,QAAQ,MAAM,OAAO;AAAA,QAC3B;AAEI,kBAAU,UAAU;AAAA,UAClB,MAAM;AAAA,UACN,QAAQC,KAAAA,MAAW,KAAK;AAAA,QAC9B;AAEI,cAAM,UAAU,MAAMC,wBAAU,OAAO,SAAS;AAChDN,mBAAS,QAAQ;AACjB,yBAAgB;AAAA,MAClB,SAAS,OAAO;AACd,gBAAQ,MAAM,4BAA4B,KAAK;AAAA,MACjD;AAAA,IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { useModel, ref, createElementBlock, openBlock, Fragment, createVNode, withCtx, createBlock, unref, renderList } from "vue";
|
|
2
|
+
import { useRoute } from "vue-router";
|
|
3
|
+
import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _sfc_main$3 from "../../../icons/navigation/IconCross.vue.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import _sfc_main$6 from "../../../../components/Popup/Popup.vue.js";
|
|
8
|
+
import _sfc_main$5 from "../../../../components/Feed/Feed.vue.js";
|
|
9
|
+
import _sfc_main$4 from "../../../globals/views/components/blocks/BlockSearch.vue.js";
|
|
10
|
+
import _sfc_main$2 from "../../../globals/views/components/blocks/Card.vue.js";
|
|
11
|
+
import CardCustomer from "../blocks/CardCustomer.vue.js";
|
|
12
|
+
import _sfc_main$7 from "./FormCustomerDetails.vue.js";
|
|
13
|
+
import { state } from "../../../auth/views/store/auth.js";
|
|
14
|
+
import customers from "../../store/customers.store.js";
|
|
15
|
+
import customerInitState from "../../store/models/customer.js";
|
|
16
|
+
import { useGlobalMixins } from "../../../globals/views/mixins/mixins.js";
|
|
17
|
+
const _hoisted_1 = { key: 1 };
|
|
18
|
+
const _hoisted_2 = ["onClick"];
|
|
19
|
+
const _sfc_main = {
|
|
20
|
+
__name: "FormSelectCustomer",
|
|
21
|
+
props: {
|
|
22
|
+
"customer": {
|
|
23
|
+
type: Object,
|
|
24
|
+
default: null
|
|
25
|
+
},
|
|
26
|
+
"customerModifiers": {}
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:customer"],
|
|
29
|
+
setup(__props) {
|
|
30
|
+
const { formatDate } = useGlobalMixins();
|
|
31
|
+
const customer = useModel(__props, "customer");
|
|
32
|
+
const route = useRoute();
|
|
33
|
+
const searchUser = ref(null);
|
|
34
|
+
const showCreatePopup = ref(false);
|
|
35
|
+
const newCustomer = ref({ ...customerInitState });
|
|
36
|
+
function selectCustomer(selectedCustomer) {
|
|
37
|
+
customer.value = selectedCustomer;
|
|
38
|
+
}
|
|
39
|
+
function clearCustomer() {
|
|
40
|
+
customer.value = null;
|
|
41
|
+
}
|
|
42
|
+
function openCreatePopup() {
|
|
43
|
+
newCustomer.value = { ...customerInitState };
|
|
44
|
+
if (route.params._id) {
|
|
45
|
+
newCustomer.value.owner = {
|
|
46
|
+
type: "Organization",
|
|
47
|
+
target: route.params._id
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
newCustomer.value.creator = {
|
|
51
|
+
type: "User",
|
|
52
|
+
target: state.user._id
|
|
53
|
+
};
|
|
54
|
+
showCreatePopup.value = true;
|
|
55
|
+
}
|
|
56
|
+
function closeCreatePopup() {
|
|
57
|
+
showCreatePopup.value = false;
|
|
58
|
+
newCustomer.value = { ...customerInitState };
|
|
59
|
+
}
|
|
60
|
+
async function saveNewCustomer() {
|
|
61
|
+
try {
|
|
62
|
+
const cleanData = { ...newCustomer.value };
|
|
63
|
+
if (!cleanData.email) delete cleanData.email;
|
|
64
|
+
if (!cleanData.phone) delete cleanData.phone;
|
|
65
|
+
if (!cleanData.notes) delete cleanData.notes;
|
|
66
|
+
if (!cleanData.referral?.code) {
|
|
67
|
+
if (cleanData.referral) delete cleanData.referral.code;
|
|
68
|
+
}
|
|
69
|
+
cleanData.owner = {
|
|
70
|
+
type: "Organization",
|
|
71
|
+
target: route.params._id
|
|
72
|
+
};
|
|
73
|
+
cleanData.creator = {
|
|
74
|
+
type: "User",
|
|
75
|
+
target: state.user._id
|
|
76
|
+
};
|
|
77
|
+
const created = await customers.create(cleanData);
|
|
78
|
+
customer.value = created;
|
|
79
|
+
closeCreatePopup();
|
|
80
|
+
} catch (error) {
|
|
81
|
+
console.error("Error creating customer:", error);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return (_ctx, _cache) => {
|
|
85
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
86
|
+
createVNode(_sfc_main$1, {
|
|
87
|
+
title: "Customer",
|
|
88
|
+
class: "pos-relative mn-b-thin",
|
|
89
|
+
actions: [{
|
|
90
|
+
label: "+",
|
|
91
|
+
function: () => openCreatePopup()
|
|
92
|
+
}]
|
|
93
|
+
}, {
|
|
94
|
+
default: withCtx(() => [
|
|
95
|
+
customer.value?._id ? (openBlock(), createBlock(_sfc_main$2, {
|
|
96
|
+
key: 0,
|
|
97
|
+
photo: customer.value.profile?.photo,
|
|
98
|
+
title: customer.value.profile?.name || customer.value.phone || customer.value.email || "Unnamed Customer",
|
|
99
|
+
subtitle: customer.value.email || customer.value.phone,
|
|
100
|
+
action: {
|
|
101
|
+
label: { is: _sfc_main$3 },
|
|
102
|
+
method: clearCustomer
|
|
103
|
+
},
|
|
104
|
+
class: "bg-white h-2r pd-thin radius-medium w-100 flex flex-v-center gap-thin"
|
|
105
|
+
}, null, 8, ["photo", "title", "subtitle", "action"])) : (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
106
|
+
createVNode(_sfc_main$4, {
|
|
107
|
+
onSearch: _cache[0] || (_cache[0] = (event) => {
|
|
108
|
+
searchUser.value = event;
|
|
109
|
+
}),
|
|
110
|
+
placeholder: "Enter name, phone or email",
|
|
111
|
+
class: "bg-white mn-b-thin"
|
|
112
|
+
}),
|
|
113
|
+
createVNode(_sfc_main$5, {
|
|
114
|
+
states: {
|
|
115
|
+
empty: {
|
|
116
|
+
title: "No Customer Found",
|
|
117
|
+
description: "Currently, there are no such customer."
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
store: unref(customers),
|
|
121
|
+
options: {
|
|
122
|
+
search: searchUser.value,
|
|
123
|
+
owner: unref(route).params._id
|
|
124
|
+
},
|
|
125
|
+
showLoadMore: false,
|
|
126
|
+
class: "h-max-20r o-scroll"
|
|
127
|
+
}, {
|
|
128
|
+
default: withCtx(({ items }) => [
|
|
129
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(items, (customerItem) => {
|
|
130
|
+
return openBlock(), createElementBlock("div", {
|
|
131
|
+
key: customerItem._id,
|
|
132
|
+
onClick: ($event) => selectCustomer(customerItem),
|
|
133
|
+
class: "bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer"
|
|
134
|
+
}, [
|
|
135
|
+
createVNode(CardCustomer, {
|
|
136
|
+
customer: customerItem,
|
|
137
|
+
formatDate: unref(formatDate)
|
|
138
|
+
}, null, 8, ["customer", "formatDate"])
|
|
139
|
+
], 8, _hoisted_2);
|
|
140
|
+
}), 128))
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["store", "options"])
|
|
144
|
+
]))
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}, 8, ["actions"]),
|
|
148
|
+
createVNode(_sfc_main$6, {
|
|
149
|
+
isPopupOpen: showCreatePopup.value,
|
|
150
|
+
onClosePopup: closeCreatePopup,
|
|
151
|
+
title: "Create Customer",
|
|
152
|
+
align: "center right",
|
|
153
|
+
class: "bg-white h-min-100 w-max-50r pd-medium"
|
|
154
|
+
}, {
|
|
155
|
+
default: withCtx(() => [
|
|
156
|
+
createVNode(_sfc_main$7, {
|
|
157
|
+
customer: newCustomer.value,
|
|
158
|
+
"onUpdate:customer": _cache[1] || (_cache[1] = ($event) => newCustomer.value = $event),
|
|
159
|
+
onSave: saveNewCustomer,
|
|
160
|
+
onCancel: closeCreatePopup,
|
|
161
|
+
"create-mode": true
|
|
162
|
+
}, null, 8, ["customer"])
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["isPopupOpen"])
|
|
166
|
+
], 64);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
export {
|
|
171
|
+
_sfc_main as default
|
|
172
|
+
};
|
|
173
|
+
//# sourceMappingURL=FormSelectCustomer.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormSelectCustomer.vue.js","sources":["../../../../../../../src/modules/orders/components/forms/FormSelectCustomer.vue"],"sourcesContent":["<template>\n <Block \n title=\"Customer\"\n class=\"pos-relative mn-b-thin\"\n :actions=\"[{\n label: '+',\n function: () => openCreatePopup()\n }]\"\n >\n <Card\n v-if=\"customer?._id\"\n :photo=\"customer.profile?.photo\"\n :title=\"customer.profile?.name || customer.phone || customer.email || 'Unnamed Customer'\"\n :subtitle=\"customer.email || customer.phone\"\n :action=\"{\n label: { is: IconCross },\n method: clearCustomer\n }\"\n class=\"bg-white h-2r pd-thin radius-medium w-100 flex flex-v-center gap-thin\"\n />\n \n <div v-else>\n <BlockSearch \n @search=\"(event) => { searchUser = event }\"\n placeholder=\"Enter name, phone or email\"\n class=\"bg-white mn-b-thin\"\n />\n\n <Feed\n :states=\"{\n empty: {\n title: 'No Customer Found',\n description: 'Currently, there are no such customer.'\n }\n }\"\n :store=\"customers\"\n :options=\"{\n search: searchUser,\n owner: route.params._id\n }\"\n :showLoadMore=\"false\"\n v-slot=\"{ items }\"\n class=\"h-max-20r o-scroll\"\n >\n <div\n v-for=\"customerItem in items\" \n :key=\"customerItem._id\"\n @click=\"selectCustomer(customerItem)\"\n class=\"bg-white pd-thin radius-medium w-100 mn-b-thin cursor-pointer\"\n >\n <CardCustomer \n :customer=\"customerItem\"\n :formatDate=\"formatDate\"\n />\n </div>\n </Feed>\n </div>\n </Block>\n\n\n <!-- Create Customer Popup -->\n <Popup \n :isPopupOpen=\"showCreatePopup\"\n @close-popup=\"closeCreatePopup\"\n title=\"Create Customer\"\n align=\"center right\"\n class=\"bg-white h-min-100 w-max-50r pd-medium\"\n >\n <FormCustomerDetails \n v-model:customer=\"newCustomer\"\n @save=\"saveNewCustomer\"\n @cancel=\"closeCreatePopup\"\n :create-mode=\"true\"\n />\n </Popup>\n</template>\n\n<script setup>\nimport { ref, computed } from \"vue\"\nimport { useRoute } from 'vue-router'\n\nimport Block from '@martyrs/src/components/Block/Block.vue'\nimport Button from '@martyrs/src/components/Button/Button.vue'\nimport Popup from '@martyrs/src/components/Popup/Popup.vue'\nimport Feed from '@martyrs/src/components/Feed/Feed.vue'\n\nimport BlockSearch from '@martyrs/src/modules/globals/views/components/blocks/BlockSearch.vue'\nimport Card from '@martyrs/src/modules/globals/views/components/blocks/Card.vue'\nimport IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue'\nimport CardCustomer from '@martyrs/src/modules/orders/components/blocks/CardCustomer.vue'\nimport FormCustomerDetails from '@martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue'\n\nimport * as auth from '@martyrs/src/modules/auth/views/store/auth.js';\nimport customers from '@martyrs/src/modules/orders/store/customers.store';\nimport customerInitState from \"@martyrs/src/modules/orders/store/models/customer.js\"\nimport { useGlobalMixins } from '@martyrs/src/modules/globals/views/mixins/mixins.js';\n\nconst { formatDate } = useGlobalMixins();\n\n// Props & Model\nconst customer = defineModel('customer', {\n type: Object,\n default: null\n});\n\n// Router\nconst route = useRoute()\n\n// Reactive data\nconst searchUser = ref(null)\nconst showCreatePopup = ref(false)\nconst newCustomer = ref({ ...customerInitState })\n\n// Methods\nfunction selectCustomer(selectedCustomer) {\n customer.value = selectedCustomer\n}\n\nfunction clearCustomer() {\n customer.value = null\n}\n\nfunction openCreatePopup() {\n newCustomer.value = { ...customerInitState }\n if (route.params._id) {\n newCustomer.value.owner = {\n type: 'Organization',\n target: route.params._id\n };\n }\n newCustomer.value.creator = {\n type: 'User',\n target: auth.state.user._id\n };\n showCreatePopup.value = true\n}\n\nfunction closeCreatePopup() {\n showCreatePopup.value = false\n newCustomer.value = { ...customerInitState }\n}\n\nasync function saveNewCustomer() {\n try {\n // Remove empty fields\n const cleanData = { ...newCustomer.value };\n if (!cleanData.email) delete cleanData.email;\n if (!cleanData.phone) delete cleanData.phone;\n if (!cleanData.notes) delete cleanData.notes;\n if (!cleanData.referral?.code) {\n if (cleanData.referral) delete cleanData.referral.code;\n }\n \n // Ensure ownership structure\n cleanData.owner = {\n type: 'Organization',\n target: route.params._id\n };\n \n cleanData.creator = {\n type: 'User',\n target: auth.state.user._id\n };\n\n const created = await customers.create(cleanData);\n customer.value = created;\n closeCreatePopup();\n } catch (error) {\n console.error('Error creating customer:', error);\n }\n}\n</script>"],"names":["_useModel","auth.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiGA,UAAM,EAAE,WAAU,IAAK,gBAAe;AAGtC,UAAM,WAAWA,SAAW,SAAC,UAG5B;AAGD,UAAM,QAAQ,SAAQ;AAGtB,UAAM,aAAa,IAAI,IAAI;AAC3B,UAAM,kBAAkB,IAAI,KAAK;AACjC,UAAM,cAAc,IAAI,EAAE,GAAG,kBAAiB,CAAE;AAGhD,aAAS,eAAe,kBAAkB;AACxC,eAAS,QAAQ;AAAA,IACnB;AAEA,aAAS,gBAAgB;AACvB,eAAS,QAAQ;AAAA,IACnB;AAEA,aAAS,kBAAkB;AACzB,kBAAY,QAAQ,EAAE,GAAG,kBAAiB;AAC1C,UAAI,MAAM,OAAO,KAAK;AACpB,oBAAY,MAAM,QAAQ;AAAA,UACxB,MAAM;AAAA,UACN,QAAQ,MAAM,OAAO;AAAA,QAC3B;AAAA,MACE;AACA,kBAAY,MAAM,UAAU;AAAA,QAC1B,MAAM;AAAA,QACN,QAAQC,MAAW,KAAK;AAAA,MAC5B;AACE,sBAAgB,QAAQ;AAAA,IAC1B;AAEA,aAAS,mBAAmB;AAC1B,sBAAgB,QAAQ;AACxB,kBAAY,QAAQ,EAAE,GAAG,kBAAiB;AAAA,IAC5C;AAEA,mBAAe,kBAAkB;AAC/B,UAAI;AAEF,cAAM,YAAY,EAAE,GAAG,YAAY,MAAK;AACxC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,MAAO,QAAO,UAAU;AACvC,YAAI,CAAC,UAAU,UAAU,MAAM;AAC7B,cAAI,UAAU,SAAU,QAAO,UAAU,SAAS;AAAA,QACpD;AAGA,kBAAU,QAAQ;AAAA,UAChB,MAAM;AAAA,UACN,QAAQ,MAAM,OAAO;AAAA,QAC3B;AAEI,kBAAU,UAAU;AAAA,UAClB,MAAM;AAAA,UACN,QAAQA,MAAW,KAAK;AAAA,QAC9B;AAEI,cAAM,UAAU,MAAM,UAAU,OAAO,SAAS;AAChD,iBAAS,QAAQ;AACjB,yBAAgB;AAAA,MAClB,SAAS,OAAO;AACd,gBAAQ,MAAM,4BAA4B,KAAK;AAAA,MACjD;AAAA,IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const vueRouter = require("vue-router");
|
|
5
|
+
const Block = require("../../../../components/Block/Block.vue.cjs");
|
|
6
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
|
7
|
+
const applications = require("../../store/applications.cjs");
|
|
8
|
+
const SectionPageTitle = require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs");
|
|
9
|
+
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
|
10
|
+
const CardApplication = require("../blocks/CardApplication.vue.cjs");
|
|
11
|
+
const FormApplicationDetails = require("../forms/FormApplicationDetails.vue.cjs");
|
|
12
|
+
const ApplicationDetails = require("../sections/ApplicationDetails.vue.cjs");
|
|
13
|
+
const application = require("../../store/models/application.cjs");
|
|
14
|
+
const auth = require("../../../auth/views/store/auth.cjs");
|
|
15
|
+
const _hoisted_1 = { class: "mobile:pd-thin pd-medium" };
|
|
16
|
+
const _hoisted_2 = { class: "gap-micro flex-nowrap flex" };
|
|
17
|
+
const _hoisted_3 = { class: "w-100 bg-white radius-small pd-small" };
|
|
18
|
+
const _hoisted_4 = { class: "w-100 bg-white radius-small pd-small" };
|
|
19
|
+
const _hoisted_5 = { class: "w-100 bg-white radius-small pd-small" };
|
|
20
|
+
const _hoisted_6 = ["onClick"];
|
|
21
|
+
const _sfc_main = {
|
|
22
|
+
__name: "Applications",
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const route = vueRouter.useRoute();
|
|
25
|
+
vueRouter.useRouter();
|
|
26
|
+
const statusFilter = vue.ref("all");
|
|
27
|
+
const showViewPopup = vue.ref(false);
|
|
28
|
+
const showFormPopup = vue.ref(false);
|
|
29
|
+
const selectedApplication = vue.ref(null);
|
|
30
|
+
const formApplication = vue.ref({ ...application.default });
|
|
31
|
+
const isCreateMode = vue.ref(false);
|
|
32
|
+
const currentApplications = vue.ref([]);
|
|
33
|
+
const totalApplications = vue.computed(() => {
|
|
34
|
+
return applications.default.state.items?.length || 0;
|
|
35
|
+
});
|
|
36
|
+
const inProgressApplications = vue.computed(() => {
|
|
37
|
+
return applications.default.state.items?.filter((application2) => application2.status === "in_progress").length || 0;
|
|
38
|
+
});
|
|
39
|
+
const newApplicationsThisMonth = vue.computed(() => {
|
|
40
|
+
if (!applications.default.state.items) return 0;
|
|
41
|
+
const now = /* @__PURE__ */ new Date();
|
|
42
|
+
const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
43
|
+
return applications.default.state.items.filter(
|
|
44
|
+
(application2) => new Date(application2.createdAt) >= startOfMonth
|
|
45
|
+
).length;
|
|
46
|
+
});
|
|
47
|
+
const openCreatePopup = () => {
|
|
48
|
+
formApplication.value = { ...application.default };
|
|
49
|
+
isCreateMode.value = true;
|
|
50
|
+
showFormPopup.value = true;
|
|
51
|
+
};
|
|
52
|
+
const openViewPopup = (application2) => {
|
|
53
|
+
selectedApplication.value = application2;
|
|
54
|
+
showViewPopup.value = true;
|
|
55
|
+
};
|
|
56
|
+
const closeViewPopup = () => {
|
|
57
|
+
showViewPopup.value = false;
|
|
58
|
+
selectedApplication.value = null;
|
|
59
|
+
};
|
|
60
|
+
const closeFormPopup = () => {
|
|
61
|
+
showFormPopup.value = false;
|
|
62
|
+
formApplication.value = { ...application.default };
|
|
63
|
+
isCreateMode.value = false;
|
|
64
|
+
};
|
|
65
|
+
const enableEdit = () => {
|
|
66
|
+
formApplication.value = { ...selectedApplication.value };
|
|
67
|
+
isCreateMode.value = false;
|
|
68
|
+
showViewPopup.value = false;
|
|
69
|
+
showFormPopup.value = true;
|
|
70
|
+
};
|
|
71
|
+
const saveApplication = async () => {
|
|
72
|
+
try {
|
|
73
|
+
const cleanData = { ...formApplication.value };
|
|
74
|
+
if (!cleanData.contacts?.email) delete cleanData.contacts?.email;
|
|
75
|
+
if (!cleanData.contacts?.phone) delete cleanData.contacts?.phone;
|
|
76
|
+
if (!cleanData.contacts?.name) delete cleanData.contacts?.name;
|
|
77
|
+
if (!cleanData.text) delete cleanData.text;
|
|
78
|
+
if (!cleanData.chat) delete cleanData.chat;
|
|
79
|
+
if (isCreateMode.value) {
|
|
80
|
+
delete cleanData._id;
|
|
81
|
+
}
|
|
82
|
+
if (route.meta.context === "organization") {
|
|
83
|
+
cleanData.owner = {
|
|
84
|
+
type: "Organization",
|
|
85
|
+
target: route.params._id || cleanData.owner?.target
|
|
86
|
+
};
|
|
87
|
+
} else {
|
|
88
|
+
cleanData.owner = {
|
|
89
|
+
type: "platform",
|
|
90
|
+
target: "000000000000000000000000"
|
|
91
|
+
// заглушка для отдела платформы
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
cleanData.creator = {
|
|
95
|
+
type: "User",
|
|
96
|
+
target: auth.state.user._id || cleanData.creator?.target
|
|
97
|
+
};
|
|
98
|
+
if (isCreateMode.value) {
|
|
99
|
+
const response = await applications.default.create(cleanData);
|
|
100
|
+
applications.default.addItem(response, currentApplications.value);
|
|
101
|
+
} else {
|
|
102
|
+
const response = await applications.default.update(cleanData);
|
|
103
|
+
applications.default.updateItem(response, currentApplications.value);
|
|
104
|
+
selectedApplication.value = { ...response };
|
|
105
|
+
}
|
|
106
|
+
closeFormPopup();
|
|
107
|
+
} catch (error) {
|
|
108
|
+
console.error("Error saving application:", error);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
const deleteApplication = async () => {
|
|
112
|
+
if (confirm("Are you sure you want to delete this application?")) {
|
|
113
|
+
try {
|
|
114
|
+
await applications.default.delete({ _id: selectedApplication.value._id });
|
|
115
|
+
applications.default.removeItem(selectedApplication.value, currentApplications.value);
|
|
116
|
+
closeViewPopup();
|
|
117
|
+
} catch (error) {
|
|
118
|
+
console.error("Error deleting application:", error);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
vue.onMounted(async () => {
|
|
123
|
+
});
|
|
124
|
+
return (_ctx, _cache) => {
|
|
125
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
126
|
+
!_ctx.MOBILE_APP ? (vue.openBlock(), vue.createBlock(SectionPageTitle.default, {
|
|
127
|
+
key: 0,
|
|
128
|
+
title: "Applications",
|
|
129
|
+
actions: [
|
|
130
|
+
{ method: () => openCreatePopup(), label: "Create Application" }
|
|
131
|
+
],
|
|
132
|
+
class: "mn-b-small"
|
|
133
|
+
}, null, 8, ["actions"])) : vue.createCommentVNode("", true),
|
|
134
|
+
vue.unref(route).meta.context !== "user" ? (vue.openBlock(), vue.createBlock(Block.default, {
|
|
135
|
+
key: 1,
|
|
136
|
+
title: "Statistics",
|
|
137
|
+
class: "mn-b-small"
|
|
138
|
+
}, {
|
|
139
|
+
default: vue.withCtx(() => [
|
|
140
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
141
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
142
|
+
_cache[2] || (_cache[2] = vue.createElementVNode("p", { class: "mn-b-thin" }, "Total", -1)),
|
|
143
|
+
vue.createElementVNode("h3", null, vue.toDisplayString(totalApplications.value), 1)
|
|
144
|
+
]),
|
|
145
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
146
|
+
_cache[3] || (_cache[3] = vue.createElementVNode("p", { class: "mn-b-thin" }, "In Progress", -1)),
|
|
147
|
+
vue.createElementVNode("h3", null, vue.toDisplayString(inProgressApplications.value), 1)
|
|
148
|
+
]),
|
|
149
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
150
|
+
_cache[4] || (_cache[4] = vue.createElementVNode("p", { class: "mn-b-thin" }, "New This Month", -1)),
|
|
151
|
+
vue.createElementVNode("h3", null, vue.toDisplayString(newApplicationsThisMonth.value), 1)
|
|
152
|
+
])
|
|
153
|
+
])
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
})) : vue.createCommentVNode("", true),
|
|
157
|
+
vue.createVNode(Feed.default, {
|
|
158
|
+
items: currentApplications.value,
|
|
159
|
+
"onUpdate:items": _cache[0] || (_cache[0] = ($event) => currentApplications.value = $event),
|
|
160
|
+
search: true,
|
|
161
|
+
states: {
|
|
162
|
+
empty: {
|
|
163
|
+
title: "No Applications Found",
|
|
164
|
+
description: "Currently, there are no applications."
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
store: vue.unref(applications.default),
|
|
168
|
+
options: {
|
|
169
|
+
limit: 15,
|
|
170
|
+
...vue.unref(route).meta.context === "organization" && { owner: vue.unref(route).params._id },
|
|
171
|
+
...statusFilter.value !== "all" && { status: statusFilter.value }
|
|
172
|
+
},
|
|
173
|
+
class: "gap-thin cols-3 mobile:cols-1"
|
|
174
|
+
}, {
|
|
175
|
+
default: vue.withCtx(({
|
|
176
|
+
items
|
|
177
|
+
}) => [
|
|
178
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, (application2) => {
|
|
179
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
180
|
+
key: application2._id,
|
|
181
|
+
onClick: ($event) => openViewPopup(application2),
|
|
182
|
+
class: "cursor-pointer"
|
|
183
|
+
}, [
|
|
184
|
+
vue.createVNode(CardApplication.default, {
|
|
185
|
+
application: application2,
|
|
186
|
+
formatDate: _ctx.formatDate
|
|
187
|
+
}, null, 8, ["application", "formatDate"])
|
|
188
|
+
], 8, _hoisted_6);
|
|
189
|
+
}), 128))
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
}, 8, ["items", "store", "options"]),
|
|
193
|
+
vue.createVNode(Popup.default, {
|
|
194
|
+
isPopupOpen: showViewPopup.value,
|
|
195
|
+
onClosePopup: closeViewPopup,
|
|
196
|
+
title: "Application Details",
|
|
197
|
+
align: "center right",
|
|
198
|
+
class: "bg-white h-min-100 w-max-50r pd-medium"
|
|
199
|
+
}, {
|
|
200
|
+
default: vue.withCtx(() => [
|
|
201
|
+
selectedApplication.value ? (vue.openBlock(), vue.createBlock(ApplicationDetails.default, {
|
|
202
|
+
key: 0,
|
|
203
|
+
application: selectedApplication.value,
|
|
204
|
+
onEdit: enableEdit,
|
|
205
|
+
onDelete: deleteApplication
|
|
206
|
+
}, null, 8, ["application"])) : vue.createCommentVNode("", true)
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}, 8, ["isPopupOpen"]),
|
|
210
|
+
vue.createVNode(Popup.default, {
|
|
211
|
+
isPopupOpen: showFormPopup.value,
|
|
212
|
+
onClosePopup: closeFormPopup,
|
|
213
|
+
title: isCreateMode.value ? "Create Application" : "Edit Application",
|
|
214
|
+
align: "center right",
|
|
215
|
+
class: "bg-white h-min-100 w-max-50r pd-medium"
|
|
216
|
+
}, {
|
|
217
|
+
default: vue.withCtx(() => [
|
|
218
|
+
vue.createVNode(FormApplicationDetails.default, {
|
|
219
|
+
application: formApplication.value,
|
|
220
|
+
"onUpdate:application": _cache[1] || (_cache[1] = ($event) => formApplication.value = $event),
|
|
221
|
+
onSave: saveApplication,
|
|
222
|
+
onCancel: closeFormPopup,
|
|
223
|
+
"create-mode": isCreateMode.value
|
|
224
|
+
}, null, 8, ["application", "create-mode"])
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}, 8, ["isPopupOpen", "title"])
|
|
228
|
+
]);
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
exports.default = _sfc_main;
|
|
233
|
+
//# sourceMappingURL=Applications.vue.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Applications.vue.cjs","sources":["../../../../../../../src/modules/orders/components/pages/Applications.vue"],"sourcesContent":["<template>\n <div class=\"mobile:pd-thin pd-medium\"> \n <SectionPageTitle\n v-if=\"!MOBILE_APP\"\n title=\"Applications\"\n :actions=\"[\n { method: () => openCreatePopup(), label: 'Create Application' }\n ]\"\n class=\"mn-b-small\"\n />\n\n <Block\n v-if=\"route.meta.context !== 'user'\"\n title=\"Statistics\"\n class=\"mn-b-small\"\n >\n <div class=\"gap-micro flex-nowrap flex\">\n <div class=\"w-100 bg-white radius-small pd-small\">\n <p class=\"mn-b-thin\">Total</p>\n <h3>{{totalApplications}}</h3>\n </div>\n <div class=\"w-100 bg-white radius-small pd-small\">\n <p class=\"mn-b-thin\">In Progress</p>\n <h3>{{inProgressApplications}}</h3>\n </div>\n <div class=\"w-100 bg-white radius-small pd-small\">\n <p class=\"mn-b-thin\">New This Month</p>\n <h3>{{newApplicationsThisMonth}}</h3>\n </div>\n </div>\n </Block>\n <Feed\n v-model:items=\"currentApplications\"\n :search=\"true\"\n :states=\"{\n empty: {\n title: 'No Applications Found',\n description: 'Currently, there are no applications.'\n }\n }\"\n :store=\"applications\"\n :options=\"{\n limit: 15,\n ...(route.meta.context === 'organization' && { owner: route.params._id }),\n ...(statusFilter !== 'all' && { status: statusFilter })\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"gap-thin cols-3 mobile:cols-1\"\n >\n <div \n v-for=\"application in items\" \n :key=\"application._id\"\n @click=\"openViewPopup(application)\"\n class=\"cursor-pointer\"\n >\n <CardApplication \n :application=\"application\"\n :formatDate=\"formatDate\"\n />\n </div>\n </Feed>\n\n <!-- View Application Popup -->\n <Popup \n :isPopupOpen=\"showViewPopup\"\n @close-popup=\"closeViewPopup\"\n title=\"Application Details\"\n align=\"center right\"\n class=\"bg-white h-min-100 w-max-50r pd-medium\"\n >\n <ApplicationDetails\n v-if=\"selectedApplication\"\n :application=\"selectedApplication\"\n @edit=\"enableEdit\"\n @delete=\"deleteApplication\"\n />\n </Popup>\n\n <!-- Create/Edit Application Popup -->\n <Popup \n :isPopupOpen=\"showFormPopup\"\n @close-popup=\"closeFormPopup\"\n :title=\"isCreateMode ? 'Create Application' : 'Edit Application'\"\n align=\"center right\"\n class=\"bg-white h-min-100 w-max-50r pd-medium\"\n >\n <FormApplicationDetails \n v-model:application=\"formApplication\"\n @save=\"saveApplication\"\n @cancel=\"closeFormPopup\"\n :create-mode=\"isCreateMode\"\n />\n </Popup>\n </div>\n</template>\n\n<script setup>\n import { computed, onMounted, ref } from 'vue';\n import { useRoute, useRouter } from 'vue-router';\n\n import Block from '@martyrs/src/components/Block/Block.vue';\n import Popup from '@martyrs/src/components/Popup/Popup.vue';\n import applications from '@martyrs/src/modules/orders/store/applications.js';\n import SectionPageTitle from '@martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue'\n import Feed from '@martyrs/src/components/Feed/Feed.vue'\n import CardApplication from '@martyrs/src/modules/orders/components/blocks/CardApplication.vue'\n import FormApplicationDetails from '@martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue'\n import ApplicationDetails from '@martyrs/src/modules/orders/components/sections/ApplicationDetails.vue'\n import applicationInitState from '@martyrs/src/modules/orders/store/models/application.js';\n import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';\n\n const route = useRoute();\n const router = useRouter();\n\n const statusFilter = ref('all')\n\n // Popup states\n const showViewPopup = ref(false)\n const showFormPopup = ref(false)\n const selectedApplication = ref(null)\n const formApplication = ref({ ...applicationInitState })\n const isCreateMode = ref(false)\n const currentApplications = ref([])\n\n const totalApplications = computed(() => {\n return applications.state.items?.length || 0\n });\n\n const inProgressApplications = computed(() => {\n return applications.state.items?.filter(application => application.status === 'in_progress').length || 0\n });\n\n const newApplicationsThisMonth = computed(() => {\n if (!applications.state.items) return 0;\n const now = new Date();\n const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);\n return applications.state.items.filter(application => \n new Date(application.createdAt) >= startOfMonth\n ).length\n });\n\n // Popup methods\n const openCreatePopup = () => {\n formApplication.value = { ...applicationInitState };\n // Ownership будет установлен в saveApplication\n isCreateMode.value = true;\n showFormPopup.value = true;\n };\n\n const openViewPopup = (application) => {\n selectedApplication.value = application;\n showViewPopup.value = true;\n };\n\n const closeViewPopup = () => {\n showViewPopup.value = false;\n selectedApplication.value = null;\n };\n\n const closeFormPopup = () => {\n showFormPopup.value = false;\n formApplication.value = { ...applicationInitState };\n isCreateMode.value = false;\n };\n\n const enableEdit = () => {\n formApplication.value = { ...selectedApplication.value };\n isCreateMode.value = false;\n showViewPopup.value = false;\n showFormPopup.value = true;\n };\n\n const saveApplication = async () => {\n try {\n // Remove empty fields but preserve required ownership structure\n const cleanData = { ...formApplication.value };\n if (!cleanData.contacts?.email) delete cleanData.contacts?.email;\n if (!cleanData.contacts?.phone) delete cleanData.contacts?.phone;\n if (!cleanData.contacts?.name) delete cleanData.contacts?.name;\n if (!cleanData.text) delete cleanData.text;\n if (!cleanData.chat) delete cleanData.chat;\n \n // Remove _id to let MongoDB auto-generate it (Mongoose bug when _id is null)\n if (isCreateMode.value) {\n delete cleanData._id;\n }\n \n // Set owner based on context\n if (route.meta.context === 'organization') {\n // В контексте организации - owner это организация\n cleanData.owner = {\n type: 'Organization',\n target: route.params._id || cleanData.owner?.target\n };\n } else {\n // В контексте бекофиса - owner это Platform\n cleanData.owner = {\n type: 'platform',\n target: '000000000000000000000000' // заглушка для отдела платформы\n };\n }\n \n // Set creator (who created the application)\n cleanData.creator = {\n type: 'User',\n target: auth.state.user._id || cleanData.creator?.target\n };\n \n if (isCreateMode.value) {\n const response = await applications.create(cleanData);\n applications.addItem(response, currentApplications.value);\n } else {\n const response = await applications.update(cleanData);\n applications.updateItem(response, currentApplications.value);\n selectedApplication.value = { ...response };\n }\n closeFormPopup();\n } catch (error) {\n console.error('Error saving application:', error);\n }\n };\n\n const deleteApplication = async () => {\n if (confirm('Are you sure you want to delete this application?')) {\n try {\n await applications.delete({ _id: selectedApplication.value._id });\n applications.removeItem(selectedApplication.value, currentApplications.value);\n closeViewPopup();\n } catch (error) {\n console.error('Error deleting application:', error);\n }\n }\n };\n\n onMounted(async () => {\n \n });\n</script>"],"names":["useRoute","useRouter","ref","applicationInitState","computed","applications","application","auth.state","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiHE,UAAM,QAAQA,UAAAA,SAAQ;AACPC,cAAAA,UAAS;AAExB,UAAM,eAAeC,IAAAA,IAAI,KAAK;AAG9B,UAAM,gBAAgBA,IAAAA,IAAI,KAAK;AAC/B,UAAM,gBAAgBA,IAAAA,IAAI,KAAK;AAC/B,UAAM,sBAAsBA,IAAAA,IAAI,IAAI;AACpC,UAAM,kBAAkBA,IAAAA,IAAI,EAAE,GAAGC,oBAAoB,CAAE;AACvD,UAAM,eAAeD,IAAAA,IAAI,KAAK;AAC9B,UAAM,sBAAsBA,IAAAA,IAAI,CAAA,CAAE;AAElC,UAAM,oBAAoBE,IAAAA,SAAS,MAAM;AACvC,aAAOC,qBAAa,MAAM,OAAO,UAAU;AAAA,IAC7C,CAAC;AAED,UAAM,yBAAyBD,IAAAA,SAAS,MAAM;AAC5C,aAAOC,aAAAA,QAAa,MAAM,OAAO,OAAO,CAAAC,iBAAeA,aAAY,WAAW,aAAa,EAAE,UAAU;AAAA,IACzG,CAAC;AAED,UAAM,2BAA2BF,IAAAA,SAAS,MAAM;AAC9C,UAAI,CAACC,aAAAA,QAAa,MAAM,MAAO,QAAO;AACtC,YAAM,MAAM,oBAAI,KAAI;AACpB,YAAM,eAAe,IAAI,KAAK,IAAI,YAAW,GAAI,IAAI,SAAQ,GAAI,CAAC;AAClE,aAAOA,qBAAa,MAAM,MAAM;AAAA,QAAO,CAAAC,iBACrC,IAAI,KAAKA,aAAY,SAAS,KAAK;AAAA,MACzC,EAAM;AAAA,IACJ,CAAC;AAGD,UAAM,kBAAkB,MAAM;AAC5B,sBAAgB,QAAQ,EAAE,GAAGH,oBAAoB;AAEjD,mBAAa,QAAQ;AACrB,oBAAc,QAAQ;AAAA,IACxB;AAEA,UAAM,gBAAgB,CAACG,iBAAgB;AACrC,0BAAoB,QAAQA;AAC5B,oBAAc,QAAQ;AAAA,IACxB;AAEA,UAAM,iBAAiB,MAAM;AAC3B,oBAAc,QAAQ;AACtB,0BAAoB,QAAQ;AAAA,IAC9B;AAEA,UAAM,iBAAiB,MAAM;AAC3B,oBAAc,QAAQ;AACtB,sBAAgB,QAAQ,EAAE,GAAGH,oBAAoB;AACjD,mBAAa,QAAQ;AAAA,IACvB;AAEA,UAAM,aAAa,MAAM;AACvB,sBAAgB,QAAQ,EAAE,GAAG,oBAAoB,MAAK;AACtD,mBAAa,QAAQ;AACrB,oBAAc,QAAQ;AACtB,oBAAc,QAAQ;AAAA,IACxB;AAEA,UAAM,kBAAkB,YAAY;AAClC,UAAI;AAEF,cAAM,YAAY,EAAE,GAAG,gBAAgB,MAAK;AAC5C,YAAI,CAAC,UAAU,UAAU,MAAO,QAAO,UAAU,UAAU;AAC3D,YAAI,CAAC,UAAU,UAAU,MAAO,QAAO,UAAU,UAAU;AAC3D,YAAI,CAAC,UAAU,UAAU,KAAM,QAAO,UAAU,UAAU;AAC1D,YAAI,CAAC,UAAU,KAAM,QAAO,UAAU;AACtC,YAAI,CAAC,UAAU,KAAM,QAAO,UAAU;AAGtC,YAAI,aAAa,OAAO;AACtB,iBAAO,UAAU;AAAA,QACnB;AAGA,YAAI,MAAM,KAAK,YAAY,gBAAgB;AAEzC,oBAAU,QAAQ;AAAA,YAChB,MAAM;AAAA,YACN,QAAQ,MAAM,OAAO,OAAO,UAAU,OAAO;AAAA,UACvD;AAAA,QACM,OAAO;AAEL,oBAAU,QAAQ;AAAA,YAChB,MAAM;AAAA,YACN,QAAQ;AAAA;AAAA,UAClB;AAAA,QACM;AAGA,kBAAU,UAAU;AAAA,UAClB,MAAM;AAAA,UACN,QAAQI,KAAAA,MAAW,KAAK,OAAO,UAAU,SAAS;AAAA,QAC1D;AAEM,YAAI,aAAa,OAAO;AACtB,gBAAM,WAAW,MAAMF,qBAAa,OAAO,SAAS;AACpDA,uBAAAA,QAAa,QAAQ,UAAU,oBAAoB,KAAK;AAAA,QAC1D,OAAO;AACL,gBAAM,WAAW,MAAMA,qBAAa,OAAO,SAAS;AACpDA,uBAAAA,QAAa,WAAW,UAAU,oBAAoB,KAAK;AAC3D,8BAAoB,QAAQ,EAAE,GAAG,SAAQ;AAAA,QAC3C;AACA,uBAAc;AAAA,MAChB,SAAS,OAAO;AACd,gBAAQ,MAAM,6BAA6B,KAAK;AAAA,MAClD;AAAA,IACF;AAEA,UAAM,oBAAoB,YAAY;AACpC,UAAI,QAAQ,mDAAmD,GAAG;AAChE,YAAI;AACF,gBAAMA,aAAAA,QAAa,OAAO,EAAE,KAAK,oBAAoB,MAAM,KAAK;AAChEA,uBAAAA,QAAa,WAAW,oBAAoB,OAAO,oBAAoB,KAAK;AAC5E,yBAAc;AAAA,QAChB,SAAS,OAAO;AACd,kBAAQ,MAAM,+BAA+B,KAAK;AAAA,QACpD;AAAA,MACF;AAAA,IACF;AAEAG,QAAAA,UAAU,YAAY;AAAA,IAEtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|