@ozdao/martyrs 0.2.507 → 0.2.509
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/{main-AWSb_d2P.cjs → main-D89N_jml.cjs} +1 -1
- package/dist/{main-Dq-UfO4G.js → main-DSiCr7yl.js} +7 -8
- package/dist/martyrs/src/components/Button/{Button.vue2.cjs → Button.vue.cjs} +3 -3
- package/dist/martyrs/src/components/Button/{Button.vue2.js.map → Button.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Button/{Button.vue2.js → Button.vue.js} +3 -3
- package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -0
- package/dist/martyrs/src/components/Chips/{Chips.vue2.cjs → Chips.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Chips/{Chips.vue2.js → Chips.vue.js} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.cjs → Dropdown.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js.map → Dropdown.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js → Dropdown.vue.js} +2 -2
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +1 -0
- package/dist/martyrs/src/components/Feed/Carousel.vue.cjs +5 -4
- package/dist/martyrs/src/components/Feed/Carousel.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Carousel.vue.js +6 -5
- package/dist/martyrs/src/components/Feed/Carousel.vue.js.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +2 -2
- package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +3 -3
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +3 -3
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js.map +1 -1
- package/dist/martyrs/src/components/Loader/{Loader.vue.cjs → Loader.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Loader/{Loader.vue.js → Loader.vue2.js} +2 -2
- package/dist/martyrs/src/components/Loader/{Loader.vue.cjs.map → Loader.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/martyrs/src/components/Menu/{Menu.vue.cjs → Menu.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue.js → Menu.vue2.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Select/{Select.vue.cjs → Select.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Select/Select.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Select/{Select.vue.js → Select.vue2.js} +2 -2
- package/dist/martyrs/src/components/Select/{Select.vue.cjs.map → Select.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +19 -13
- 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 +20 -14
- 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 +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- 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/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +3 -3
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +3 -3
- 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/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +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 +3 -3
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +3 -3
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/martyrs/src/modules/globals/globals.client.cjs +3 -0
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +15 -12
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- 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 +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Footer.vue.cjs +335 -0
- package/dist/martyrs/src/modules/globals/views/components/partials/Footer.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/partials/Footer.vue.js +335 -0
- package/dist/martyrs/src/modules/globals/views/components/partials/Footer.vue.js.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +3 -3
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +3 -3
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js.map +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/icons/logos/Logotype.vue.cjs +3 -3
- package/dist/martyrs/src/modules/icons/logos/Logotype.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.cjs +138 -136
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +137 -135
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs +3 -3
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.cjs +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/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 +2 -2
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +3 -3
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +3 -3
- 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 +2 -2
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs +3 -3
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +2 -2
- 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 +3 -3
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs +3 -3
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +3 -3
- 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 -2
- package/dist/martyrs/src/modules/music/router/music.js +2 -2
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +62 -10
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +62 -10
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.cjs +36 -38
- package/dist/martyrs/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +36 -38
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/models/customer.cjs +7 -0
- package/dist/martyrs/src/modules/orders/store/models/customer.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/store/models/customer.js +7 -0
- package/dist/martyrs/src/modules/orders/store/models/customer.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.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/DepartmentEdit.vue.cjs +3 -3
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- 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 +126 -16
- 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 +128 -18
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +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/sections/Documents.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- 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 +17 -28
- 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 +17 -28
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.cjs +0 -3
- package/dist/martyrs/src/modules/organizations/organizations.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.js +36 -39
- package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.js +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/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/ProductDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Image360.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/elements/QuantitySelector.vue.cjs +9 -1
- package/dist/martyrs/src/modules/products/components/elements/QuantitySelector.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/QuantitySelector.vue.js +9 -1
- package/dist/martyrs/src/modules/products/components/elements/QuantitySelector.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +4 -4
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +3 -2
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +3 -2
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.cjs +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 +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
- 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/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/ProductsPopular.vue.cjs +10 -5
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js +10 -5
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +6 -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 +6 -3
- 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 +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +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/reports/components/sections/FormReport.vue.cjs +2 -2
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.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/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/sections/WorktimeEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +4 -4
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/orders.server.cjs +58 -0
- package/dist/orders.server.js +58 -0
- package/dist/products.server.cjs +11 -1
- package/dist/products.server.js +11 -1
- package/dist/style.css +34 -32
- package/dist/{web-DaBwwCQ5.cjs → web-XyQNm3cW.cjs} +1 -1
- package/dist/{web-BXajFCU2.js → web-gtBkwjra.js} +1 -1
- package/package.json +1 -1
- package/src/components/Feed/Carousel.vue +3 -1
- package/src/components/FieldBig/FieldBig.vue +2 -2
- package/src/modules/auth/views/components/pages/ProfileEdit.vue +18 -11
- package/src/modules/globals/globals.client.js +3 -0
- package/src/modules/globals/views/components/partials/{FooterAlt.vue → Footer.centered.vue} +101 -99
- package/src/modules/globals/views/components/partials/Footer.vue +321 -162
- package/src/modules/globals/views/components/partials/Header.vue +1 -1
- package/src/modules/icons/logos/Logotype.vue +1 -1
- package/src/modules/inventory/components/pages/Inventory.vue +126 -119
- package/src/modules/orders/components/forms/FormCustomerDetails.vue +51 -0
- package/src/modules/orders/middlewares/customers.verifier.js +60 -0
- package/src/modules/orders/models/customer.model.js +18 -0
- package/src/modules/orders/orders.client.js +36 -38
- package/src/modules/orders/store/models/customer.js +7 -0
- package/src/modules/organizations/components/pages/Organization.vue +146 -6
- package/src/modules/organizations/configs/navigation.organization.config.js +17 -26
- package/src/modules/organizations/organizations.client.js +0 -3
- package/src/modules/products/TASKS.MD +1 -157
- package/src/modules/products/components/elements/QuantitySelector.vue +17 -9
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +5 -2
- package/src/modules/products/components/sections/ProductsPopular.vue +9 -5
- package/src/modules/products/components/sections/ProductsRecommended.vue +4 -1
- package/src/modules/products/controllers/configs/products.lookup.config.js +11 -1
- package/src/styles/base/all.scss +9 -4
- package/src/styles/config.scss +10 -0
- package/src/styles/responsive.scss +2 -1
- package/src/styles/typography.scss +0 -5
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Loader/Loader.vue.js.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +0 -1
- package/dist/martyrs/src/components/Select/Select.vue.js.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +0 -137
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +0 -137
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js.map +0 -1
- package/src/modules/organizations/components/sections/DetailsTabSection.vue +0 -190
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watch, onMounted, createElementBlock, openBlock, createVNode, withDirectives, createBlock, createCommentVNode, createElementVNode, withKeys, vModelText, withCtx } from "vue";
|
|
2
|
-
import _sfc_main$2 from "../../../../components/Button/Button.
|
|
2
|
+
import _sfc_main$2 from "../../../../components/Button/Button.vue.js";
|
|
3
3
|
import _sfc_main$1 from "../../../icons/navigation/IconSearch.vue.js";
|
|
4
4
|
import _sfc_main$3 from "../../../icons/navigation/IconCross.vue.js";
|
|
5
5
|
/* empty css */
|
|
@@ -4,9 +4,9 @@ const vue = require("vue");
|
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
5
|
const Field = require("../../../../components/Field/Field.vue.cjs");
|
|
6
6
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
|
7
|
-
const Button = require("../../../../components/Button/Button.
|
|
7
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
8
8
|
const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
|
|
9
|
-
const Select = require("../../../../components/Select/Select.
|
|
9
|
+
const Select = require("../../../../components/Select/Select.vue2.cjs");
|
|
10
10
|
const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
|
|
11
11
|
const Upload = require("../../../../components/Upload/Upload.vue2.cjs");
|
|
12
12
|
const IconCross = require("../../../icons/navigation/IconCross.vue.cjs");
|
|
@@ -2,9 +2,9 @@ import { reactive, ref, watch, onMounted, createElementBlock, openBlock, createE
|
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import Field from "../../../../components/Field/Field.vue.js";
|
|
4
4
|
import _sfc_main$2 from "../../../../components/Block/Block.vue.js";
|
|
5
|
-
import _sfc_main$5 from "../../../../components/Button/Button.
|
|
5
|
+
import _sfc_main$5 from "../../../../components/Button/Button.vue.js";
|
|
6
6
|
import _sfc_main$4 from "../../../../components/Checkbox/Checkbox.vue.js";
|
|
7
|
-
import Select from "../../../../components/Select/Select.
|
|
7
|
+
import Select from "../../../../components/Select/Select.vue2.js";
|
|
8
8
|
import _sfc_main$1 from "../../../../components/UploadImage/UploadImage.vue.js";
|
|
9
9
|
import Upload from "../../../../components/Upload/Upload.vue2.js";
|
|
10
10
|
import _sfc_main$3 from "../../../icons/navigation/IconCross.vue.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
|
-
const Button = require("../../../../components/Button/Button.
|
|
6
|
-
const Loader = require("../../../../components/Loader/Loader.
|
|
5
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
6
|
+
const Loader = require("../../../../components/Loader/Loader.vue2.cjs");
|
|
7
7
|
const Media = require("../../../../components/Media/Media.vue.cjs");
|
|
8
|
-
const Dropdown = require("../../../../components/Dropdown/Dropdown.
|
|
8
|
+
const Dropdown = require("../../../../components/Dropdown/Dropdown.vue.cjs");
|
|
9
9
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
|
10
10
|
const IconPlay = require("../../../icons/navigation/IconPlay.vue.cjs");
|
|
11
11
|
const IconLike = require("../../../icons/navigation/IconLike.vue.cjs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref, computed, onMounted, resolveComponent, createElementBlock, openBlock, createCommentVNode, createVNode, createElementVNode, toDisplayString, withCtx, createTextVNode, Fragment, renderList, createBlock } from "vue";
|
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
|
3
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
|
4
|
-
import Loader from "../../../../components/Loader/Loader.
|
|
3
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
|
4
|
+
import Loader from "../../../../components/Loader/Loader.vue2.js";
|
|
5
5
|
import Media from "../../../../components/Media/Media.vue.js";
|
|
6
|
-
import _sfc_main$5 from "../../../../components/Dropdown/Dropdown.
|
|
6
|
+
import _sfc_main$5 from "../../../../components/Dropdown/Dropdown.vue.js";
|
|
7
7
|
import _sfc_main$a from "../../../../components/Feed/Feed.vue.js";
|
|
8
8
|
import _sfc_main$2 from "../../../icons/navigation/IconPlay.vue.js";
|
|
9
9
|
import _sfc_main$4 from "../../../icons/navigation/IconLike.vue.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
|
-
const Button = require("../../../../components/Button/Button.
|
|
6
|
-
;/* empty css
|
|
5
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
6
|
+
;/* empty css */
|
|
7
7
|
const TrackListCard = require("../cards/TrackListCard.vue.cjs");
|
|
8
8
|
const artists = require("../../store/artists.cjs");
|
|
9
9
|
const auth = require("../../../auth/views/store/auth.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, computed, onMounted, createElementBlock, openBlock, createCommentVNode, createElementVNode, createVNode, unref, withCtx, createTextVNode, normalizeStyle, normalizeClass, toDisplayString, Fragment, renderList, createBlock } from "vue";
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
|
3
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
|
4
|
-
/* empty css
|
|
3
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
5
|
import _sfc_main$2 from "../cards/TrackListCard.vue.js";
|
|
6
6
|
import { state, actions } from "../../store/artists.js";
|
|
7
7
|
import { state as state$1 } from "../../../auth/views/store/auth.js";
|
|
@@ -7,7 +7,7 @@ const TrackListCard = require("../cards/TrackListCard.vue.cjs");
|
|
|
7
7
|
const AlbumCard = require("../cards/AlbumCard.vue.cjs");
|
|
8
8
|
const PlaylistCard = require("../cards/PlaylistCard.vue.cjs");
|
|
9
9
|
const ArtistCard = require("../cards/ArtistCard.vue.cjs");
|
|
10
|
-
const Button = require("../../../../components/Button/Button.
|
|
10
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
11
11
|
const auth = require("../../../auth/views/store/auth.cjs");
|
|
12
12
|
const playlists = require("../../store/playlists.cjs");
|
|
13
13
|
const albums = require("../../store/albums.cjs");
|
|
@@ -5,7 +5,7 @@ import _sfc_main$3 from "../cards/TrackListCard.vue.js";
|
|
|
5
5
|
import AlbumCard from "../cards/AlbumCard.vue.js";
|
|
6
6
|
import PlaylistCard from "../cards/PlaylistCard.vue.js";
|
|
7
7
|
import ArtistCard from "../cards/ArtistCard.vue.js";
|
|
8
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
|
8
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
|
9
9
|
import { state } from "../../../auth/views/store/auth.js";
|
|
10
10
|
import { state as state$1, actions } from "../../store/playlists.js";
|
|
11
11
|
import { state as state$2, actions as actions$1 } from "../../store/albums.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
|
-
const Button = require("../../../../components/Button/Button.
|
|
6
|
-
;/* empty css
|
|
5
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
6
|
+
;/* empty css */
|
|
7
7
|
const Media = require("../../../../components/Media/Media.vue.cjs");
|
|
8
|
-
const Dropdown = require("../../../../components/Dropdown/Dropdown.
|
|
8
|
+
const Dropdown = require("../../../../components/Dropdown/Dropdown.vue.cjs");
|
|
9
9
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
|
10
10
|
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
|
11
11
|
const IconPlay = require("../../../icons/navigation/IconPlay.vue.cjs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref, computed, onMounted, resolveComponent, createElementBlock, openBlock, createCommentVNode, createVNode, createElementVNode, toDisplayString, withCtx, createTextVNode, Fragment, createBlock, renderList } from "vue";
|
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
|
3
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
|
4
|
-
/* empty css
|
|
3
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
5
|
import Media from "../../../../components/Media/Media.vue.js";
|
|
6
|
-
import _sfc_main$4 from "../../../../components/Dropdown/Dropdown.
|
|
6
|
+
import _sfc_main$4 from "../../../../components/Dropdown/Dropdown.vue.js";
|
|
7
7
|
import _sfc_main$9 from "../../../../components/Feed/Feed.vue.js";
|
|
8
8
|
import _sfc_main$b from "../../../../components/Popup/Popup.vue.js";
|
|
9
9
|
import _sfc_main$2 from "../../../icons/navigation/IconPlay.vue.js";
|
|
@@ -7,8 +7,8 @@ const TrackListCard = require("../cards/TrackListCard.vue.cjs");
|
|
|
7
7
|
const AlbumCard = require("../cards/AlbumCard.vue.cjs");
|
|
8
8
|
const PlaylistCard = require("../cards/PlaylistCard.vue.cjs");
|
|
9
9
|
const ArtistCard = require("../cards/ArtistCard.vue.cjs");
|
|
10
|
-
const Button = require("../../../../components/Button/Button.
|
|
11
|
-
const Loader = require("../../../../components/Loader/Loader.
|
|
10
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
11
|
+
const Loader = require("../../../../components/Loader/Loader.vue2.cjs");
|
|
12
12
|
const search = require("../../store/search.cjs");
|
|
13
13
|
;/* empty css */
|
|
14
14
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
|
@@ -5,8 +5,8 @@ import _sfc_main$3 from "../cards/TrackListCard.vue.js";
|
|
|
5
5
|
import AlbumCard from "../cards/AlbumCard.vue.js";
|
|
6
6
|
import PlaylistCard from "../cards/PlaylistCard.vue.js";
|
|
7
7
|
import ArtistCard from "../cards/ArtistCard.vue.js";
|
|
8
|
-
import _sfc_main$2 from "../../../../components/Button/Button.
|
|
9
|
-
import Loader from "../../../../components/Loader/Loader.
|
|
8
|
+
import _sfc_main$2 from "../../../../components/Button/Button.vue.js";
|
|
9
|
+
import Loader from "../../../../components/Loader/Loader.vue2.js";
|
|
10
10
|
import { state, actions } from "../../store/search.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
|
-
const Button = require("../../../../components/Button/Button.
|
|
6
|
-
const Loader = require("../../../../components/Loader/Loader.
|
|
5
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
6
|
+
const Loader = require("../../../../components/Loader/Loader.vue2.cjs");
|
|
7
7
|
const Media = require("../../../../components/Media/Media.vue.cjs");
|
|
8
|
-
const Dropdown = require("../../../../components/Dropdown/Dropdown.
|
|
8
|
+
const Dropdown = require("../../../../components/Dropdown/Dropdown.vue.cjs");
|
|
9
9
|
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
|
10
10
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
|
11
11
|
const IconPlay = require("../../../icons/navigation/IconPlay.vue.cjs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed, ref, onMounted, resolveComponent, createElementBlock, openBlock, createCommentVNode, createBlock, createVNode, createElementVNode, withCtx, toDisplayString, createTextVNode, Fragment, renderList } from "vue";
|
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
|
3
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
|
4
|
-
import Loader from "../../../../components/Loader/Loader.
|
|
3
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
|
4
|
+
import Loader from "../../../../components/Loader/Loader.vue2.js";
|
|
5
5
|
import Media from "../../../../components/Media/Media.vue.js";
|
|
6
|
-
import _sfc_main$6 from "../../../../components/Dropdown/Dropdown.
|
|
6
|
+
import _sfc_main$6 from "../../../../components/Dropdown/Dropdown.vue.js";
|
|
7
7
|
import _sfc_main$d from "../../../../components/Popup/Popup.vue.js";
|
|
8
8
|
import _sfc_main$b from "../../../../components/Feed/Feed.vue.js";
|
|
9
9
|
import _sfc_main$2 from "../../../icons/navigation/IconPlay.vue.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
|
-
;/* empty css */
|
|
6
5
|
;/* empty css */
|
|
6
|
+
;/* empty css */
|
|
7
7
|
const TrackForm = require("../forms/TrackForm.vue.cjs");
|
|
8
8
|
require("../../../auth/views/store/auth.cjs");
|
|
9
9
|
const _hoisted_1 = { class: "track-create-page" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, createVNode } from "vue";
|
|
2
2
|
import { useRouter } from "vue-router";
|
|
3
|
-
/* empty css */
|
|
4
3
|
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
5
|
import _sfc_main$1 from "../forms/TrackForm.vue.js";
|
|
6
6
|
import "../../../auth/views/store/auth.js";
|
|
7
7
|
const _hoisted_1 = { class: "track-create-page" };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const Media = require("../../../../components/Media/Media.vue.cjs");
|
|
5
|
-
const Button = require("../../../../components/Button/Button.
|
|
5
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
6
6
|
const TrackProgress = require("./TrackProgress.vue.cjs");
|
|
7
7
|
const VolumeControl = require("./VolumeControl.vue.cjs");
|
|
8
8
|
const IconPlay = require("../../../icons/navigation/IconPlay.vue.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, createElementBlock, openBlock, createElementVNode, createVNode, toDisplayString, normalizeClass, withCtx, createBlock } from "vue";
|
|
2
2
|
import Media from "../../../../components/Media/Media.vue.js";
|
|
3
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
|
3
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
|
4
4
|
import TrackProgress from "./TrackProgress.vue.js";
|
|
5
5
|
import VolumeControl from "./VolumeControl.vue.js";
|
|
6
6
|
import _sfc_main$5 from "../../../icons/navigation/IconPlay.vue.js";
|
|
@@ -4,11 +4,11 @@ require("vue");
|
|
|
4
4
|
require("vue-router");
|
|
5
5
|
require("../../globals/views/store/globals.cjs");
|
|
6
6
|
;/* empty css */
|
|
7
|
-
;/* empty css */
|
|
8
7
|
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
;/* empty css */
|
|
11
|
-
;/* empty css
|
|
11
|
+
;/* empty css */
|
|
12
12
|
;/* empty css */
|
|
13
13
|
;/* empty css */
|
|
14
14
|
;/* empty css */
|
|
@@ -2,11 +2,11 @@ import "vue";
|
|
|
2
2
|
import "vue-router";
|
|
3
3
|
import "../../globals/views/store/globals.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
5
|
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
|
-
/* empty css
|
|
9
|
+
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
|
5
5
|
const Field = require("../../../../components/Field/Field.vue.cjs");
|
|
6
|
-
const Select = require("../../../../components/Select/Select.
|
|
7
|
-
const Button = require("../../../../components/Button/Button.
|
|
6
|
+
const Select = require("../../../../components/Select/Select.vue2.cjs");
|
|
7
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
8
8
|
const _hoisted_1 = { class: "gap-thin flex mn-t-small" };
|
|
9
9
|
const _sfc_main = {
|
|
10
10
|
__name: "FormApplicationDetails",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mergeModels, useModel, ref, watch, createBlock, openBlock, withCtx, createVNode, createElementVNode, unref, isRef, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
|
|
3
3
|
import Field from "../../../../components/Field/Field.vue.js";
|
|
4
|
-
import Select from "../../../../components/Select/Select.
|
|
5
|
-
import _sfc_main$2 from "../../../../components/Button/Button.
|
|
4
|
+
import Select from "../../../../components/Select/Select.vue2.js";
|
|
5
|
+
import _sfc_main$2 from "../../../../components/Button/Button.vue.js";
|
|
6
6
|
const _hoisted_1 = { class: "gap-thin flex mn-t-small" };
|
|
7
7
|
const _sfc_main = {
|
|
8
8
|
__name: "FormApplicationDetails",
|
|
@@ -4,10 +4,12 @@ const vue = require("vue");
|
|
|
4
4
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
|
5
5
|
const Field = require("../../../../components/Field/Field.vue.cjs");
|
|
6
6
|
const FieldPhone = require("../../../../components/FieldPhone/FieldPhone.vue.cjs");
|
|
7
|
-
const Select = require("../../../../components/Select/Select.
|
|
8
|
-
const Button = require("../../../../components/Button/Button.
|
|
9
|
-
const _hoisted_1 = { class: "
|
|
10
|
-
const _hoisted_2 = { class: "gap-thin flex
|
|
7
|
+
const Select = require("../../../../components/Select/Select.vue2.cjs");
|
|
8
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
|
9
|
+
const _hoisted_1 = { class: "mn-t-small" };
|
|
10
|
+
const _hoisted_2 = { class: "gap-thin flex-justify-between flex-nowrap flex" };
|
|
11
|
+
const _hoisted_3 = { class: "gap-thin flex-justify-between flex-nowrap flex" };
|
|
12
|
+
const _hoisted_4 = { class: "gap-thin flex mn-t-small" };
|
|
11
13
|
const _sfc_main = {
|
|
12
14
|
__name: "FormCustomerDetails",
|
|
13
15
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
@@ -41,6 +43,15 @@ const _sfc_main = {
|
|
|
41
43
|
if (!newCustomer.socials) {
|
|
42
44
|
newCustomer.socials = { instagram: null, telegram: null, whatsapp: null };
|
|
43
45
|
}
|
|
46
|
+
if (!newCustomer.address) {
|
|
47
|
+
newCustomer.address = {
|
|
48
|
+
country: null,
|
|
49
|
+
addressLine1: null,
|
|
50
|
+
addressLine2: null,
|
|
51
|
+
city: null,
|
|
52
|
+
postalCode: null
|
|
53
|
+
};
|
|
54
|
+
}
|
|
44
55
|
}
|
|
45
56
|
}, { immediate: true, deep: true });
|
|
46
57
|
const handleSave = () => {
|
|
@@ -124,6 +135,47 @@ const _sfc_main = {
|
|
|
124
135
|
type: "textarea",
|
|
125
136
|
class: "bg-white pd-small radius-small mn-b-thin"
|
|
126
137
|
}, null, 8, ["field"]),
|
|
138
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
139
|
+
_cache[15] || (_cache[15] = vue.createElementVNode("h3", { class: "t-medium mn-b-thin" }, "Address Information", -1)),
|
|
140
|
+
vue.createVNode(Field.default, {
|
|
141
|
+
field: customer.value.address.country,
|
|
142
|
+
"onUpdate:field": _cache[7] || (_cache[7] = ($event) => customer.value.address.country = $event),
|
|
143
|
+
label: "Country",
|
|
144
|
+
placeholder: "Enter country",
|
|
145
|
+
class: "bg-white pd-small radius-small mn-b-thin"
|
|
146
|
+
}, null, 8, ["field"]),
|
|
147
|
+
vue.createVNode(Field.default, {
|
|
148
|
+
field: customer.value.address.addressLine1,
|
|
149
|
+
"onUpdate:field": _cache[8] || (_cache[8] = ($event) => customer.value.address.addressLine1 = $event),
|
|
150
|
+
label: "Address Line 1",
|
|
151
|
+
placeholder: "Enter address line 1",
|
|
152
|
+
class: "bg-white pd-small radius-small mn-b-thin",
|
|
153
|
+
required: ""
|
|
154
|
+
}, null, 8, ["field"]),
|
|
155
|
+
vue.createVNode(Field.default, {
|
|
156
|
+
field: customer.value.address.addressLine2,
|
|
157
|
+
"onUpdate:field": _cache[9] || (_cache[9] = ($event) => customer.value.address.addressLine2 = $event),
|
|
158
|
+
label: "Address Line 2",
|
|
159
|
+
placeholder: "Enter address line 2",
|
|
160
|
+
class: "bg-white pd-small radius-small mn-b-thin"
|
|
161
|
+
}, null, 8, ["field"]),
|
|
162
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
163
|
+
vue.createVNode(Field.default, {
|
|
164
|
+
field: customer.value.address.city,
|
|
165
|
+
"onUpdate:field": _cache[10] || (_cache[10] = ($event) => customer.value.address.city = $event),
|
|
166
|
+
label: "City",
|
|
167
|
+
placeholder: "Enter city",
|
|
168
|
+
class: "bg-white pd-small radius-small w-100"
|
|
169
|
+
}, null, 8, ["field"]),
|
|
170
|
+
vue.createVNode(Field.default, {
|
|
171
|
+
field: customer.value.address.postalCode,
|
|
172
|
+
"onUpdate:field": _cache[11] || (_cache[11] = ($event) => customer.value.address.postalCode = $event),
|
|
173
|
+
label: "Postal Code",
|
|
174
|
+
placeholder: "Enter postal code",
|
|
175
|
+
class: "bg-white pd-small radius-small w-100"
|
|
176
|
+
}, null, 8, ["field"])
|
|
177
|
+
])
|
|
178
|
+
]),
|
|
127
179
|
vue.createVNode(Select.default, {
|
|
128
180
|
select: vue.unref(statusSelected),
|
|
129
181
|
options: [
|
|
@@ -131,14 +183,14 @@ const _sfc_main = {
|
|
|
131
183
|
{ name: "Inactive", value: "inactive" },
|
|
132
184
|
{ name: "Blocked", value: "blocked" }
|
|
133
185
|
],
|
|
134
|
-
"onUpdate:select": _cache[
|
|
186
|
+
"onUpdate:select": _cache[12] || (_cache[12] = (option) => {
|
|
135
187
|
customer.value.status = option.value;
|
|
136
188
|
vue.isRef(statusSelected) ? statusSelected.value = option : statusSelected = option;
|
|
137
189
|
}),
|
|
138
190
|
placeholder: "Status",
|
|
139
191
|
class: "bg-white pd-small radius-small mn-b-thin"
|
|
140
192
|
}, null, 8, ["select"]),
|
|
141
|
-
vue.createElementVNode("div",
|
|
193
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
142
194
|
vue.createVNode(Select.default, {
|
|
143
195
|
select: vue.unref(messengerSelected),
|
|
144
196
|
options: [
|
|
@@ -146,20 +198,20 @@ const _sfc_main = {
|
|
|
146
198
|
{ name: "Telegram", value: "telegram" },
|
|
147
199
|
{ name: "WhatsApp", value: "whatsapp" }
|
|
148
200
|
],
|
|
149
|
-
"onUpdate:select": _cache[
|
|
201
|
+
"onUpdate:select": _cache[13] || (_cache[13] = (option) => vue.isRef(messengerSelected) ? messengerSelected.value = option : messengerSelected = option),
|
|
150
202
|
placeholder: "Messenger",
|
|
151
203
|
size: "small",
|
|
152
204
|
class: "bg-white pd-small radius-small"
|
|
153
205
|
}, null, 8, ["select"]),
|
|
154
206
|
vue.createVNode(Field.default, {
|
|
155
207
|
field: customer.value.socials[vue.unref(messengerSelected).value],
|
|
156
|
-
"onUpdate:field": _cache[
|
|
208
|
+
"onUpdate:field": _cache[14] || (_cache[14] = ($event) => customer.value.socials[vue.unref(messengerSelected).value] = $event),
|
|
157
209
|
label: "@",
|
|
158
210
|
placeholder: "Enter username",
|
|
159
211
|
class: "bg-white pd-small radius-small w-100"
|
|
160
212
|
}, null, 8, ["field"])
|
|
161
213
|
]),
|
|
162
|
-
vue.createElementVNode("div",
|
|
214
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
163
215
|
vue.createVNode(Button.default, {
|
|
164
216
|
onClick: handleSave,
|
|
165
217
|
class: "w-100 pd-small radius-big bg-main t-black uppercase t-medium"
|
|
@@ -173,7 +225,7 @@ const _sfc_main = {
|
|
|
173
225
|
onClick: handleCancel,
|
|
174
226
|
class: "w-100 pd-small radius-big bg-light t-black uppercase t-medium"
|
|
175
227
|
}, {
|
|
176
|
-
default: vue.withCtx(() => _cache[
|
|
228
|
+
default: vue.withCtx(() => _cache[16] || (_cache[16] = [
|
|
177
229
|
vue.createTextVNode(" Cancel ")
|
|
178
230
|
])),
|
|
179
231
|
_: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormCustomerDetails.vue.cjs","sources":["../../../../../../../src/modules/orders/components/forms/FormCustomerDetails.vue"],"sourcesContent":["<template>\n <Block :title=\"title\" class=\"mn-b-thin\">\n <Field \n v-model:field=\"customer.profile.name\" \n label=\"Name\" \n placeholder=\"Enter name\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n <Field \n v-model:field=\"customer.email\" \n label=\"Email\" \n placeholder=\"Enter email\" \n type=\"email\"\n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n <FieldPhone\n v-model=\"customer.number\" \n @country=\"(country) => { customer.phone = country }\"\n :inputOptions=\"{\n placeholder: 'Enter phone number',\n type: 'tel',\n }\"\n :defaultCountry=\"'TH'\"\n :validCharactersOnly=\"true\"\n :dropdownOptions=\"{\n showDialCodeInSelection: true,\n showFlags: true,\n showDialCodeInList: true\n }\" \n mode=\"national\"\n class=\"w-100 bg-white pd-small mn-b-thin radius-small\" \n />\n \n <Select \n :select=\"sourceSelected\"\n :options=\"[\n {name: 'Web', value: 'web'}, \n {name: 'Mobile', value: 'mobile'}, \n {name: 'API', value: 'api'},\n {name: 'Import', value: 'import'},\n {name: 'Manual', value: 'manual'},\n {name: 'Referral', value: 'referral'},\n {name: 'Social', value: 'social'},\n {name: 'Email', value: 'email'}\n ]\"\n @update:select=\"(option) => { customer.source = option.value; sourceSelected = option }\"\n placeholder=\"Source\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n\n <Field \n v-model:field=\"customer.referral.code\" \n label=\"Referral Code\" \n placeholder=\"Enter referral code\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n\n <Field \n v-model:field=\"customer.notes\" \n label=\"Notes\" \n placeholder=\"Enter notes\" \n type=\"textarea\"\n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n\n <Select \n :select=\"statusSelected\"\n :options=\"[\n {name: 'Active', value: 'active'}, \n {name: 'Inactive', value: 'inactive'}, \n {name: 'Blocked', value: 'blocked'}\n ]\"\n @update:select=\"(option) => { customer.status = option.value; statusSelected = option }\"\n placeholder=\"Status\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n \n <div class=\"gap-thin flex-justify-between flex-nowrap flex\">\n <Select \n :select=\"messengerSelected\"\n :options=\"[\n {name: 'Instagram', value: 'instagram'}, \n {name: 'Telegram', value: 'telegram'}, \n {name: 'WhatsApp', value: 'whatsapp'},\n ]\"\n @update:select=\"(option) => messengerSelected = option\"\n placeholder=\"Messenger\" \n size=\"small\"\n class=\"bg-white pd-small radius-small\"\n />\n <Field\n v-model:field=\"customer.socials[messengerSelected.value]\" \n label=\"@\" \n placeholder=\"Enter username\"\n class=\"bg-white pd-small radius-small w-100\"\n />\n </div>\n\n <div class=\"gap-thin flex mn-t-small\">\n <Button \n @click=\"handleSave\"\n class=\"w-100 pd-small radius-big bg-main t-black uppercase t-medium\"\n >\n {{ createMode ? 'Create Customer' : 'Save Changes' }}\n </Button>\n <Button \n @click=\"handleCancel\"\n class=\"w-100 pd-small radius-big bg-light t-black uppercase t-medium\"\n >\n Cancel\n </Button>\n </div>\n </Block>\n</template>\n\n<script setup>\nimport { ref, watch } from \"vue\"\nimport Block from '@martyrs/src/components/Block/Block.vue'\nimport Field from '@martyrs/src/components/Field/Field.vue'\nimport FieldPhone from '@martyrs/src/components/FieldPhone/FieldPhone.vue'\nimport Select from '@martyrs/src/components/Select/Select.vue'\nimport Button from '@martyrs/src/components/Button/Button.vue'\n\nconst customer = defineModel('customer', { required: true })\n\nlet messengerSelected = ref({name: 'WhatsApp', value: 'whatsapp'})\nlet sourceSelected = ref({name: 'Web', value: 'web'})\nlet statusSelected = ref({name: 'Active', value: 'active'})\n\ndefineProps({\n title: {\n type: String,\n default: 'Personal Data'\n }, \n createMode: {\n type: Boolean,\n default: false\n }\n});\n\nconst emit = defineEmits(['save', 'cancel']);\n\n// Ensure nested objects exist\nwatch(customer, (newCustomer) => {\n if (newCustomer) {\n if (!newCustomer.profile) {\n newCustomer.profile = { name: null, description: null, photo: null };\n }\n if (!newCustomer.referral) {\n newCustomer.referral = { code: null, source: null };\n }\n if (!newCustomer.socials) {\n newCustomer.socials = { instagram: null, telegram: null, whatsapp: null };\n }\n }\n}, { immediate: true, deep: true });\n\nconst handleSave = () => {\n emit('save');\n};\n\nconst handleCancel = () => {\n emit('cancel');\n};\n</script>"],"names":["_useModel","ref","watch"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormCustomerDetails.vue.cjs","sources":["../../../../../../../src/modules/orders/components/forms/FormCustomerDetails.vue"],"sourcesContent":["<template>\n <Block :title=\"title\" class=\"mn-b-thin\">\n <Field \n v-model:field=\"customer.profile.name\" \n label=\"Name\" \n placeholder=\"Enter name\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n <Field \n v-model:field=\"customer.email\" \n label=\"Email\" \n placeholder=\"Enter email\" \n type=\"email\"\n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n <FieldPhone\n v-model=\"customer.number\" \n @country=\"(country) => { customer.phone = country }\"\n :inputOptions=\"{\n placeholder: 'Enter phone number',\n type: 'tel',\n }\"\n :defaultCountry=\"'TH'\"\n :validCharactersOnly=\"true\"\n :dropdownOptions=\"{\n showDialCodeInSelection: true,\n showFlags: true,\n showDialCodeInList: true\n }\" \n mode=\"national\"\n class=\"w-100 bg-white pd-small mn-b-thin radius-small\" \n />\n \n <Select \n :select=\"sourceSelected\"\n :options=\"[\n {name: 'Web', value: 'web'}, \n {name: 'Mobile', value: 'mobile'}, \n {name: 'API', value: 'api'},\n {name: 'Import', value: 'import'},\n {name: 'Manual', value: 'manual'},\n {name: 'Referral', value: 'referral'},\n {name: 'Social', value: 'social'},\n {name: 'Email', value: 'email'}\n ]\"\n @update:select=\"(option) => { customer.source = option.value; sourceSelected = option }\"\n placeholder=\"Source\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n\n <Field \n v-model:field=\"customer.referral.code\" \n label=\"Referral Code\" \n placeholder=\"Enter referral code\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n\n <Field \n v-model:field=\"customer.notes\" \n label=\"Notes\" \n placeholder=\"Enter notes\" \n type=\"textarea\"\n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n\n <!-- Address Fields -->\n <div class=\"mn-t-small\">\n <h3 class=\"t-medium mn-b-thin\">Address Information</h3>\n \n <Field \n v-model:field=\"customer.address.country\" \n label=\"Country\" \n placeholder=\"Enter country\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n \n <Field \n v-model:field=\"customer.address.addressLine1\" \n label=\"Address Line 1\" \n placeholder=\"Enter address line 1\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n required\n />\n \n <Field \n v-model:field=\"customer.address.addressLine2\" \n label=\"Address Line 2\" \n placeholder=\"Enter address line 2\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n \n <div class=\"gap-thin flex-justify-between flex-nowrap flex\">\n <Field \n v-model:field=\"customer.address.city\" \n label=\"City\" \n placeholder=\"Enter city\" \n class=\"bg-white pd-small radius-small w-100\"\n />\n <Field \n v-model:field=\"customer.address.postalCode\" \n label=\"Postal Code\" \n placeholder=\"Enter postal code\" \n class=\"bg-white pd-small radius-small w-100\"\n />\n </div>\n </div>\n\n <Select \n :select=\"statusSelected\"\n :options=\"[\n {name: 'Active', value: 'active'}, \n {name: 'Inactive', value: 'inactive'}, \n {name: 'Blocked', value: 'blocked'}\n ]\"\n @update:select=\"(option) => { customer.status = option.value; statusSelected = option }\"\n placeholder=\"Status\" \n class=\"bg-white pd-small radius-small mn-b-thin\"\n />\n \n <div class=\"gap-thin flex-justify-between flex-nowrap flex\">\n <Select \n :select=\"messengerSelected\"\n :options=\"[\n {name: 'Instagram', value: 'instagram'}, \n {name: 'Telegram', value: 'telegram'}, \n {name: 'WhatsApp', value: 'whatsapp'},\n ]\"\n @update:select=\"(option) => messengerSelected = option\"\n placeholder=\"Messenger\" \n size=\"small\"\n class=\"bg-white pd-small radius-small\"\n />\n <Field\n v-model:field=\"customer.socials[messengerSelected.value]\" \n label=\"@\" \n placeholder=\"Enter username\"\n class=\"bg-white pd-small radius-small w-100\"\n />\n </div>\n\n <div class=\"gap-thin flex mn-t-small\">\n <Button \n @click=\"handleSave\"\n class=\"w-100 pd-small radius-big bg-main t-black uppercase t-medium\"\n >\n {{ createMode ? 'Create Customer' : 'Save Changes' }}\n </Button>\n <Button \n @click=\"handleCancel\"\n class=\"w-100 pd-small radius-big bg-light t-black uppercase t-medium\"\n >\n Cancel\n </Button>\n </div>\n </Block>\n</template>\n\n<script setup>\nimport { ref, watch } from \"vue\"\nimport Block from '@martyrs/src/components/Block/Block.vue'\nimport Field from '@martyrs/src/components/Field/Field.vue'\nimport FieldPhone from '@martyrs/src/components/FieldPhone/FieldPhone.vue'\nimport Select from '@martyrs/src/components/Select/Select.vue'\nimport Button from '@martyrs/src/components/Button/Button.vue'\n\nconst customer = defineModel('customer', { required: true })\n\nlet messengerSelected = ref({name: 'WhatsApp', value: 'whatsapp'})\nlet sourceSelected = ref({name: 'Web', value: 'web'})\nlet statusSelected = ref({name: 'Active', value: 'active'})\n\ndefineProps({\n title: {\n type: String,\n default: 'Personal Data'\n }, \n createMode: {\n type: Boolean,\n default: false\n }\n});\n\nconst emit = defineEmits(['save', 'cancel']);\n\n// Ensure nested objects exist\nwatch(customer, (newCustomer) => {\n if (newCustomer) {\n if (!newCustomer.profile) {\n newCustomer.profile = { name: null, description: null, photo: null };\n }\n if (!newCustomer.referral) {\n newCustomer.referral = { code: null, source: null };\n }\n if (!newCustomer.socials) {\n newCustomer.socials = { instagram: null, telegram: null, whatsapp: null };\n }\n if (!newCustomer.address) {\n newCustomer.address = { \n country: null, \n addressLine1: null, \n addressLine2: null, \n city: null, \n postalCode: null \n };\n }\n }\n}, { immediate: true, deep: true });\n\nconst handleSave = () => {\n emit('save');\n};\n\nconst handleCancel = () => {\n emit('cancel');\n};\n</script>"],"names":["_useModel","ref","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqKA,UAAM,WAAWA,IAAAA,SAAW,SAAC,UAA8B;AAE3D,QAAI,oBAAoBC,IAAAA,IAAI,EAAC,MAAM,YAAY,OAAO,WAAU,CAAC;AACjE,QAAI,iBAAiBA,IAAAA,IAAI,EAAC,MAAM,OAAO,OAAO,MAAK,CAAC;AACpD,QAAI,iBAAiBA,IAAAA,IAAI,EAAC,MAAM,UAAU,OAAO,SAAQ,CAAC;AAa1D,UAAM,OAAO;AAGbC,QAAAA,MAAM,UAAU,CAAC,gBAAgB;AAC/B,UAAI,aAAa;AACf,YAAI,CAAC,YAAY,SAAS;AACxB,sBAAY,UAAU,EAAE,MAAM,MAAM,aAAa,MAAM,OAAO,KAAI;AAAA,QACpE;AACA,YAAI,CAAC,YAAY,UAAU;AACzB,sBAAY,WAAW,EAAE,MAAM,MAAM,QAAQ,KAAI;AAAA,QACnD;AACA,YAAI,CAAC,YAAY,SAAS;AACxB,sBAAY,UAAU,EAAE,WAAW,MAAM,UAAU,MAAM,UAAU,KAAI;AAAA,QACzE;AACA,YAAI,CAAC,YAAY,SAAS;AACxB,sBAAY,UAAU;AAAA,YACpB,SAAS;AAAA,YACT,cAAc;AAAA,YACd,cAAc;AAAA,YACd,MAAM;AAAA,YACN,YAAY;AAAA,UACpB;AAAA,QACI;AAAA,MACF;AAAA,IACF,GAAG,EAAE,WAAW,MAAM,MAAM,KAAI,CAAE;AAElC,UAAM,aAAa,MAAM;AACvB,WAAK,MAAM;AAAA,IACb;AAEA,UAAM,eAAe,MAAM;AACzB,WAAK,QAAQ;AAAA,IACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,10 +2,12 @@ import { mergeModels, useModel, ref, watch, createBlock, openBlock, withCtx, cre
|
|
|
2
2
|
import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
|
|
3
3
|
import Field from "../../../../components/Field/Field.vue.js";
|
|
4
4
|
import _sfc_main$2 from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
|
5
|
-
import Select from "../../../../components/Select/Select.
|
|
6
|
-
import _sfc_main$3 from "../../../../components/Button/Button.
|
|
7
|
-
const _hoisted_1 = { class: "
|
|
8
|
-
const _hoisted_2 = { class: "gap-thin flex
|
|
5
|
+
import Select from "../../../../components/Select/Select.vue2.js";
|
|
6
|
+
import _sfc_main$3 from "../../../../components/Button/Button.vue.js";
|
|
7
|
+
const _hoisted_1 = { class: "mn-t-small" };
|
|
8
|
+
const _hoisted_2 = { class: "gap-thin flex-justify-between flex-nowrap flex" };
|
|
9
|
+
const _hoisted_3 = { class: "gap-thin flex-justify-between flex-nowrap flex" };
|
|
10
|
+
const _hoisted_4 = { class: "gap-thin flex mn-t-small" };
|
|
9
11
|
const _sfc_main = {
|
|
10
12
|
__name: "FormCustomerDetails",
|
|
11
13
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -39,6 +41,15 @@ const _sfc_main = {
|
|
|
39
41
|
if (!newCustomer.socials) {
|
|
40
42
|
newCustomer.socials = { instagram: null, telegram: null, whatsapp: null };
|
|
41
43
|
}
|
|
44
|
+
if (!newCustomer.address) {
|
|
45
|
+
newCustomer.address = {
|
|
46
|
+
country: null,
|
|
47
|
+
addressLine1: null,
|
|
48
|
+
addressLine2: null,
|
|
49
|
+
city: null,
|
|
50
|
+
postalCode: null
|
|
51
|
+
};
|
|
52
|
+
}
|
|
42
53
|
}
|
|
43
54
|
}, { immediate: true, deep: true });
|
|
44
55
|
const handleSave = () => {
|
|
@@ -122,6 +133,47 @@ const _sfc_main = {
|
|
|
122
133
|
type: "textarea",
|
|
123
134
|
class: "bg-white pd-small radius-small mn-b-thin"
|
|
124
135
|
}, null, 8, ["field"]),
|
|
136
|
+
createElementVNode("div", _hoisted_1, [
|
|
137
|
+
_cache[15] || (_cache[15] = createElementVNode("h3", { class: "t-medium mn-b-thin" }, "Address Information", -1)),
|
|
138
|
+
createVNode(Field, {
|
|
139
|
+
field: customer.value.address.country,
|
|
140
|
+
"onUpdate:field": _cache[7] || (_cache[7] = ($event) => customer.value.address.country = $event),
|
|
141
|
+
label: "Country",
|
|
142
|
+
placeholder: "Enter country",
|
|
143
|
+
class: "bg-white pd-small radius-small mn-b-thin"
|
|
144
|
+
}, null, 8, ["field"]),
|
|
145
|
+
createVNode(Field, {
|
|
146
|
+
field: customer.value.address.addressLine1,
|
|
147
|
+
"onUpdate:field": _cache[8] || (_cache[8] = ($event) => customer.value.address.addressLine1 = $event),
|
|
148
|
+
label: "Address Line 1",
|
|
149
|
+
placeholder: "Enter address line 1",
|
|
150
|
+
class: "bg-white pd-small radius-small mn-b-thin",
|
|
151
|
+
required: ""
|
|
152
|
+
}, null, 8, ["field"]),
|
|
153
|
+
createVNode(Field, {
|
|
154
|
+
field: customer.value.address.addressLine2,
|
|
155
|
+
"onUpdate:field": _cache[9] || (_cache[9] = ($event) => customer.value.address.addressLine2 = $event),
|
|
156
|
+
label: "Address Line 2",
|
|
157
|
+
placeholder: "Enter address line 2",
|
|
158
|
+
class: "bg-white pd-small radius-small mn-b-thin"
|
|
159
|
+
}, null, 8, ["field"]),
|
|
160
|
+
createElementVNode("div", _hoisted_2, [
|
|
161
|
+
createVNode(Field, {
|
|
162
|
+
field: customer.value.address.city,
|
|
163
|
+
"onUpdate:field": _cache[10] || (_cache[10] = ($event) => customer.value.address.city = $event),
|
|
164
|
+
label: "City",
|
|
165
|
+
placeholder: "Enter city",
|
|
166
|
+
class: "bg-white pd-small radius-small w-100"
|
|
167
|
+
}, null, 8, ["field"]),
|
|
168
|
+
createVNode(Field, {
|
|
169
|
+
field: customer.value.address.postalCode,
|
|
170
|
+
"onUpdate:field": _cache[11] || (_cache[11] = ($event) => customer.value.address.postalCode = $event),
|
|
171
|
+
label: "Postal Code",
|
|
172
|
+
placeholder: "Enter postal code",
|
|
173
|
+
class: "bg-white pd-small radius-small w-100"
|
|
174
|
+
}, null, 8, ["field"])
|
|
175
|
+
])
|
|
176
|
+
]),
|
|
125
177
|
createVNode(Select, {
|
|
126
178
|
select: unref(statusSelected),
|
|
127
179
|
options: [
|
|
@@ -129,14 +181,14 @@ const _sfc_main = {
|
|
|
129
181
|
{ name: "Inactive", value: "inactive" },
|
|
130
182
|
{ name: "Blocked", value: "blocked" }
|
|
131
183
|
],
|
|
132
|
-
"onUpdate:select": _cache[
|
|
184
|
+
"onUpdate:select": _cache[12] || (_cache[12] = (option) => {
|
|
133
185
|
customer.value.status = option.value;
|
|
134
186
|
isRef(statusSelected) ? statusSelected.value = option : statusSelected = option;
|
|
135
187
|
}),
|
|
136
188
|
placeholder: "Status",
|
|
137
189
|
class: "bg-white pd-small radius-small mn-b-thin"
|
|
138
190
|
}, null, 8, ["select"]),
|
|
139
|
-
createElementVNode("div",
|
|
191
|
+
createElementVNode("div", _hoisted_3, [
|
|
140
192
|
createVNode(Select, {
|
|
141
193
|
select: unref(messengerSelected),
|
|
142
194
|
options: [
|
|
@@ -144,20 +196,20 @@ const _sfc_main = {
|
|
|
144
196
|
{ name: "Telegram", value: "telegram" },
|
|
145
197
|
{ name: "WhatsApp", value: "whatsapp" }
|
|
146
198
|
],
|
|
147
|
-
"onUpdate:select": _cache[
|
|
199
|
+
"onUpdate:select": _cache[13] || (_cache[13] = (option) => isRef(messengerSelected) ? messengerSelected.value = option : messengerSelected = option),
|
|
148
200
|
placeholder: "Messenger",
|
|
149
201
|
size: "small",
|
|
150
202
|
class: "bg-white pd-small radius-small"
|
|
151
203
|
}, null, 8, ["select"]),
|
|
152
204
|
createVNode(Field, {
|
|
153
205
|
field: customer.value.socials[unref(messengerSelected).value],
|
|
154
|
-
"onUpdate:field": _cache[
|
|
206
|
+
"onUpdate:field": _cache[14] || (_cache[14] = ($event) => customer.value.socials[unref(messengerSelected).value] = $event),
|
|
155
207
|
label: "@",
|
|
156
208
|
placeholder: "Enter username",
|
|
157
209
|
class: "bg-white pd-small radius-small w-100"
|
|
158
210
|
}, null, 8, ["field"])
|
|
159
211
|
]),
|
|
160
|
-
createElementVNode("div",
|
|
212
|
+
createElementVNode("div", _hoisted_4, [
|
|
161
213
|
createVNode(_sfc_main$3, {
|
|
162
214
|
onClick: handleSave,
|
|
163
215
|
class: "w-100 pd-small radius-big bg-main t-black uppercase t-medium"
|
|
@@ -171,7 +223,7 @@ const _sfc_main = {
|
|
|
171
223
|
onClick: handleCancel,
|
|
172
224
|
class: "w-100 pd-small radius-big bg-light t-black uppercase t-medium"
|
|
173
225
|
}, {
|
|
174
|
-
default: withCtx(() => _cache[
|
|
226
|
+
default: withCtx(() => _cache[16] || (_cache[16] = [
|
|
175
227
|
createTextVNode(" Cancel ")
|
|
176
228
|
])),
|
|
177
229
|
_: 1
|