@ozdao/prometheus-framework 0.2.81 → 0.2.83
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/community.server.js +3 -3
- package/dist/community.server.mjs +3 -3
- package/dist/credentials.schema-B-KD_ozQ.js +9 -0
- package/dist/credentials.schema-C9dmNy7o.mjs +10 -0
- package/dist/credentials.schema-CDZCKfEI.mjs +106 -0
- package/dist/credentials.schema-CfhPcsuI.js +105 -0
- package/dist/events.server.js +4 -15
- package/dist/events.server.mjs +3 -14
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-B6a1mPgp.mjs +217 -0
- package/dist/index-BCCiEK_u.js +216 -0
- package/dist/main-8N2Jmsuk.js +91 -0
- package/dist/main-CkeuHuCY.mjs +13619 -0
- package/dist/main.css +1 -1
- package/dist/metadata.schema-Cu_mPkjE.js +77 -0
- package/dist/metadata.schema-cbFgazeK.mjs +78 -0
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -0
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +238 -0
- package/dist/orders.server.js +592 -0
- package/dist/orders.server.mjs +593 -0
- package/dist/organizations.server.js +295 -131
- package/dist/organizations.server.mjs +295 -131
- package/dist/products.server.js +2 -2
- package/dist/products.server.mjs +2 -2
- package/dist/profile.schema-24ZpZQJe.mjs +25 -0
- package/dist/profile.schema-CkOhhf37.js +24 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +33 -24
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +23 -20
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +102 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +71 -60
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +325 -340
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +2 -2
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +53 -44
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +41 -40
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +37 -31
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +18 -19
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -36
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +36 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +26 -26
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +78 -103
- package/dist/prometheus-framework/src/modules/chats/components/blocks/ChatMessage.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/blocks/ChatMessage.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue.js +26 -0
- package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue.js +77 -0
- package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/chats/store/chat.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/store/chat.store.js +40 -0
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +15 -15
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +29 -27
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +33 -26
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +6 -3
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +70 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.js +35 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCheckmark.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCheckmark.vue.js +29 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderChat.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderChat.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +63 -86
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +121 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +3 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +92 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +202 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +127 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +174 -114
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +41 -41
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +89 -0
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.js +24 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/EmptyState.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/EmptyState.vue.js +13 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +141 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +77 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +46 -35
- package/dist/prometheus-framework/src/modules/orders/components/sections/Succes.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/Succes.vue.js +25 -0
- package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/orders.client.js +56 -0
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +58 -0
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +5 -0
- package/dist/prometheus-framework/src/modules/orders/store/models/customer.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/models/customer.js +30 -0
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +24 -25
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +5 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +38 -49
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +161 -138
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +198 -78
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +82 -125
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +59 -70
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +34 -36
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +38 -18
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +34 -35
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +41 -21
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +24 -26
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +78 -0
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +13 -14
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/queryProcessor-BJdKh0Ow.mjs +162 -0
- package/dist/queryProcessor-DRMo_GWK.js +161 -0
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/users.server.js +58 -47
- package/dist/users.server.mjs +58 -47
- package/dist/wallet.server.js +2 -2
- package/dist/wallet.server.mjs +2 -2
- package/dist/web-CtVocufd.js +1 -0
- package/dist/web-DNq1tHCE.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +13 -2
- package/src/components/Block/Block.vue +3 -2
- package/src/components/Button/Button.vue +9 -12
- package/src/components/Feed/Feed.vue +28 -6
- package/src/components/FieldPhone/FieldPhone.vue +592 -558
- package/src/components/LocationMarker/LocationMarker.vue +26 -22
- package/src/components/Popup/Popup.vue +22 -23
- package/src/components/Select/Select.vue +43 -32
- package/src/components/Slider/Slider.vue +3 -4
- package/src/modules/auth/components/pages/Invite.vue +7 -7
- package/src/modules/auth/store/auth.js +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +44 -29
- package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +4 -3
- package/src/modules/events/components/pages/Events.vue +23 -6
- package/src/modules/globals/components/sections/SectionPageTitle.vue +19 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +21 -7
- package/src/modules/globals/localization/vue-i18n.js +3 -0
- package/src/modules/globals/models/credentials.schema.js +7 -0
- package/src/modules/globals/models/metadata.schema.js +17 -0
- package/src/modules/globals/models/profile.schema.js +23 -0
- package/src/modules/globals/models/socials.schema.js +22 -0
- package/src/modules/globals/router/routerGuards.js +1 -0
- package/src/modules/globals/services/globals.cashe.js +26 -0
- package/src/modules/globals/services/globals.crud.js +115 -0
- package/src/modules/globals/services/globals.logger.js +41 -0
- package/src/modules/globals/services/globals.store.js +114 -0
- package/src/modules/icons/entities/IconGallery.vue +14 -0
- package/src/modules/icons/entities/IconLeftovers.vue +14 -0
- package/src/modules/icons/entities/IconOrders.vue +15 -0
- package/src/modules/icons/entities/IconProducts.vue +14 -0
- package/src/modules/landing/components/sections/HeroSection.vue +1 -1
- package/src/modules/landing/components/sections/MobileApp.vue +4 -4
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/marketplace/components/sections/Filters.vue +3 -3
- package/src/modules/middlewares/server/accessors/AccessController.js +33 -0
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +101 -0
- package/src/modules/middlewares/server/verifyAccesses.js +33 -0
- package/src/modules/middlewares/server/verifyInvites.js +4 -4
- package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +105 -68
- package/src/modules/orders/components/pages/Orders.vue +2 -2
- package/src/modules/orders/components/sections/FormAddCustomer.vue +152 -0
- package/src/modules/orders/components/sections/FormCustomerDetails.vue +67 -0
- package/src/modules/orders/components/sections/FormDelivery.vue +17 -3
- package/src/modules/orders/controllers/applications.controller.js +2 -0
- package/src/modules/orders/controllers/orders.controller.js +77 -52
- package/src/modules/orders/models/application.model.js +25 -25
- package/src/modules/orders/models/customer.model.js +54 -18
- package/src/modules/orders/models/order.model.js +1 -1
- package/src/modules/orders/models/testimonial.model.js +22 -23
- package/src/modules/orders/orders.client.js +51 -51
- package/src/modules/orders/orders.server.js +36 -12
- package/src/modules/orders/router/orders.router.js +36 -41
- package/src/modules/orders/routes/orders.routes.js +3 -21
- package/src/modules/orders/store/customers.store.js +5 -0
- package/src/modules/orders/store/models/customer.js +29 -0
- package/src/modules/orders/store/orders.js +14 -20
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +1 -12
- package/src/modules/organizations/components/pages/Department.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +72 -48
- package/src/modules/organizations/components/pages/Members.vue +178 -64
- package/src/modules/organizations/components/pages/Organization.vue +1 -41
- package/src/modules/organizations/components/sections/MembersAdd.vue +44 -52
- package/src/modules/organizations/controllers/departments.controller.js +2 -4
- package/src/modules/organizations/controllers/invites.controller.js +24 -23
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/department.model.js +52 -2
- package/src/modules/organizations/models/invite.model.js +29 -32
- package/src/modules/organizations/models/membership.model.js +2 -0
- package/src/modules/organizations/models/organization.model.js +2 -1
- package/src/modules/organizations/organizations.client.js +0 -2
- package/src/modules/organizations/routes/departments.routes.js +18 -7
- package/src/modules/organizations/routes/invites.routes.js +2 -2
- package/src/modules/organizations/store/departments.js +22 -1
- package/src/modules/organizations/store/invites.js +74 -90
- package/src/modules/products/components/blocks/CardProduct.vue +24 -0
- package/src/modules/products/components/pages/Products.vue +1 -1
- package/src/modules/reports/components/sections/FormReport.vue +40 -40
- package/src/modules/spots/components/pages/Spot.vue +1 -1
- package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
- package/src/modules/users/components/blocks/CardUser.vue +85 -0
- package/src/modules/users/controllers/users.controller.js +36 -13
- package/src/modules/users/middlewares/visitor.logger.js +66 -0
- package/src/modules/users/models/request.model.js +18 -0
- package/src/modules/users/models/user.model.js +26 -55
- package/src/modules/users/models/visitor.model.js +14 -0
- package/src/modules/users/store/users.js +2 -11
- package/src/modules/wallet/controllers/routes/payments.routes.js +2 -0
- package/src/components/FieldPhone/FieldPhone(script-setup).vue +0 -1646
- package/src/components/FieldPhone/FieldPhone2.vue +0 -671
- package/src/modules/orders/components/sections/FormClientDetails.vue +0 -61
- package/src/modules/organizations/components/blocks/User.vue +0 -69
- /package/src/modules/backoffice/components/admin/{User.vue → UserEdit.vue} +0 -0
@@ -0,0 +1,89 @@
|
|
1
|
+
import { openBlock as r, createElementBlock as l, Fragment as d, createElementVNode as t, normalizeClass as m, toDisplayString as e, unref as o, createVNode as k, createCommentVNode as p, renderList as C, createBlock as S } from "vue";
|
2
|
+
import { useRoute as w, useRouter as x } from "vue-router";
|
3
|
+
import { useI18n as I } from "vue-i18n";
|
4
|
+
import z from "../blocks/CardOrderItem.vue.js";
|
5
|
+
import B from "../../../icons/navigation/IconCross.vue.js";
|
6
|
+
import { getters as h, state as i, actions as s } from "../../store/shopcart.js";
|
7
|
+
import "./ShopCart.vue2.js";
|
8
|
+
const N = { class: "flex-nowrap flex" }, P = { class: "mn-b-small w-100" }, T = { class: "mn-b-thin p-big" }, V = { class: "t-transp p-small" }, Y = { class: "mn-b-big shopcart-content" }, A = {
|
9
|
+
key: 0,
|
10
|
+
class: "mn-t-medium"
|
11
|
+
}, E = { class: "shopcart-footer pd-b-medium pd-t-medium pd-big transition-cubic bg-black t-white" }, F = {
|
12
|
+
key: 0,
|
13
|
+
class: "mn-b-small total-price"
|
14
|
+
}, O = { class: "t-transp t-white mn-b-micro" }, Q = { class: "t-demi t-white p-big" }, H = {
|
15
|
+
__name: "ShopCart",
|
16
|
+
setup(R) {
|
17
|
+
w();
|
18
|
+
const _ = x(), b = h.cartTotalPrice, g = h.cartTotalAmount, f = {
|
19
|
+
messages: {
|
20
|
+
en: {
|
21
|
+
title: "Your order",
|
22
|
+
subtitle: "You have",
|
23
|
+
positions: "no products in shop cart | 1 product in shop cart | {count} products in shop card",
|
24
|
+
emptystate: "You don't have any positions in your shop cart yet. Maybe something needs to be added?",
|
25
|
+
intotal: "In total",
|
26
|
+
fastorder: "Checkout"
|
27
|
+
},
|
28
|
+
ru: {
|
29
|
+
title: "Ваш заказ",
|
30
|
+
subtitle: "У вас",
|
31
|
+
positions: "нет товаров в корзине | 1 товар в корзине | {count} товаров в корзине",
|
32
|
+
emptystate: "У вас еще нет товаров в корзине. Может стоит что-нибудь добавить?",
|
33
|
+
intotal: "Итого",
|
34
|
+
fastorder: "Подтвердить заказ"
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}, { t: n } = I(f);
|
38
|
+
function y() {
|
39
|
+
_.push({ name: "Form Order" }), s.toggleShopcart();
|
40
|
+
}
|
41
|
+
return (v, u) => (r(), l(d, null, [
|
42
|
+
t("section", {
|
43
|
+
class: m(["z-index-4 transition-cubic pd-big bg-white shop-cart", { "shop-cart-active": i.currentState === !0 }])
|
44
|
+
}, [
|
45
|
+
t("div", N, [
|
46
|
+
t("div", P, [
|
47
|
+
t("h4", T, e(o(n)("title")), 1),
|
48
|
+
t("p", V, e(o(n)("subtitle")) + " " + e(o(n)("positions", { count: o(g) })), 1)
|
49
|
+
]),
|
50
|
+
k(B, {
|
51
|
+
onClick: s.toggleShopcart,
|
52
|
+
class: "button-icon"
|
53
|
+
}, null, 8, ["onClick"])
|
54
|
+
]),
|
55
|
+
t("div", Y, [
|
56
|
+
i.positions.length > 0 ? p("", !0) : (r(), l("p", A, [
|
57
|
+
t("i", null, e(o(n)("emptystate")), 1)
|
58
|
+
])),
|
59
|
+
(r(!0), l(d, null, C(i.positions, (c) => (r(), S(z, {
|
60
|
+
key: c._id,
|
61
|
+
editable: "true",
|
62
|
+
product: c,
|
63
|
+
increase: (a) => s.incrementItemQuantity(a._id),
|
64
|
+
decrease: (a) => s.decrementItemQuantity(a._id),
|
65
|
+
remove: (a) => s.removeProduct(a._id)
|
66
|
+
}, null, 8, ["product", "increase", "decrease", "remove"]))), 128))
|
67
|
+
]),
|
68
|
+
t("div", E, [
|
69
|
+
i.positions.length > 0 ? (r(), l("div", F, [
|
70
|
+
t("p", O, e(o(n)("intotal")), 1),
|
71
|
+
t("p", Q, e(o(b)) + " " + e(v.returnCurrency()), 1)
|
72
|
+
])) : p("", !0),
|
73
|
+
i.positions.length > 0 ? (r(), l("button", {
|
74
|
+
key: 1,
|
75
|
+
onClick: u[0] || (u[0] = (c) => y()),
|
76
|
+
class: "bg-main t-black w-100 button"
|
77
|
+
}, e(o(n)("fastorder")), 1)) : p("", !0)
|
78
|
+
])
|
79
|
+
], 2),
|
80
|
+
t("div", {
|
81
|
+
onClick: u[1] || (u[1] = (...c) => s.toggleShopcart && s.toggleShopcart(...c)),
|
82
|
+
class: m([{ active: i.currentState === !0 }, "color-overlay z-index-3"])
|
83
|
+
}, null, 2)
|
84
|
+
], 64));
|
85
|
+
}
|
86
|
+
};
|
87
|
+
export {
|
88
|
+
H as default
|
89
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r={key:0,class:"bg-black t-white pd-big radius-medium flex-nowrap flex"},s=e.createElementVNode("p",{class:"mn-r-auto"},[e.createElementVNode("span",{class:"t-semi"},"Already registered?"),e.createElementVNode("br"),e.createElementVNode("span",null,"Log in to your account to checkout faster.")],-1),l={__name:"AskToLogin",setup(u){let o=e.ref(!0);return(n,t)=>e.unref(o)===!0?(e.openBlock(),e.createElementBlock("div",r,[s,e.createElementVNode("button",{onClick:t[0]||(t[0]=a=>n.toggleSignInPopup()),class:"button"}," Log In ")])):e.createCommentVNode("",!0)}};exports.default=l;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ref as r, unref as s, openBlock as a, createElementBlock as l, createElementVNode as e, createCommentVNode as u } from "vue";
|
2
|
+
const c = {
|
3
|
+
key: 0,
|
4
|
+
class: "bg-black t-white pd-big radius-medium flex-nowrap flex"
|
5
|
+
}, i = /* @__PURE__ */ e("p", { class: "mn-r-auto" }, [
|
6
|
+
/* @__PURE__ */ e("span", { class: "t-semi" }, "Already registered?"),
|
7
|
+
/* @__PURE__ */ e("br"),
|
8
|
+
/* @__PURE__ */ e("span", null, "Log in to your account to checkout faster.")
|
9
|
+
], -1), g = {
|
10
|
+
__name: "AskToLogin",
|
11
|
+
setup(p) {
|
12
|
+
let o = r(!0);
|
13
|
+
return (n, t) => s(o) === !0 ? (a(), l("div", c, [
|
14
|
+
i,
|
15
|
+
e("button", {
|
16
|
+
onClick: t[0] || (t[0] = (m) => n.toggleSignInPopup()),
|
17
|
+
class: "button"
|
18
|
+
}, " Log In ")
|
19
|
+
])) : u("", !0);
|
20
|
+
}
|
21
|
+
};
|
22
|
+
export {
|
23
|
+
g as default
|
24
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t={class:""},o={__name:"EmptyState",props:{order:Object},setup(r){return(s,n)=>(e.openBlock(),e.createElementBlock("div",t," You dont have any positions in order. "))}};exports.default=o;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { openBlock as e, createElementBlock as t } from "vue";
|
2
|
+
const o = { class: "" }, a = {
|
3
|
+
__name: "EmptyState",
|
4
|
+
props: {
|
5
|
+
order: Object
|
6
|
+
},
|
7
|
+
setup(r) {
|
8
|
+
return (n, s) => (e(), t("div", o, " You dont have any positions in order. "));
|
9
|
+
}
|
10
|
+
};
|
11
|
+
export {
|
12
|
+
a as default
|
13
|
+
};
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router"),k=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue.cjs");const b=require("../../../../components/FieldPhone/click-outside.cjs");require("../../../../components/Select/Select.vue.cjs");const g=require("../../../../components/Feed/Feed.vue.cjs"),v=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),n=require("../../../users/components/blocks/CardUser.vue.cjs"),q=require("./FormCustomerDetails.vue.cjs"),_=require("../../../users/store/users.cjs"),w=require("../../../auth/store/auth.cjs"),y=require("../../../globals/store/globals.cjs"),B=require("../../store/customers.store.cjs"),x=require("../../store/models/customer.cjs"),E={key:2,class:"mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-grey pd-small radius-small"},N={__name:"FormAddCustomer",props:{order:Object},emits:["callbackCustomer"],setup(V,{emit:i}){let c=b.default;const d=i,m=h.useRoute();let r=e.ref(x.default),u=e.ref(null),l=e.ref(!1);async function f(){let a={identity:{type:r.value.user?"User":"Visitor",target:r.value.user?r.value.user._id:null},owner:{type:"Organization",target:m.params._id},creator:{type:"User",target:w.state.user._id},phone:r.value.phone,email:r.value.email,profile:r.value.profile,socials:r.value.socials};try{let o=await B.default.create(a);r.value=o}catch(o){console.log(o)}}function p(){d("callbackCustomer",r.value)}return(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k.default,{class:"pos-relative mn-b-thin"},{default:e.withCtx(()=>[e.unref(r).user?(e.openBlock(),e.createBlock(n.default,{key:1,user:e.unref(r).user,photo:e.unref(r).user.profile.photo,name:e.unref(r).user.profile.name||e.unref(r).user.phone||e.unref(r).user.email,onClick:o[1]||(o[1]=()=>{e.unref(r).user=null}),class:"bg-white pd-thin radius-medium w-100"},null,8,["user","photo","name"])):e.withDirectives((e.openBlock(),e.createBlock(C.default,{key:0,onSearch:o[0]||(o[0]=s=>{e.isRef(u)?u.value=s:u=s,e.isRef(l)?l.value=!0:l=!0}),placeholder:"Enter name, phone or email",class:"bg-white"},null,512)),[[e.unref(c),()=>{e.isRef(l)?l.value=!1:l=!1}]]),e.unref(u)&&e.unref(l)&&!e.unref(r).user?(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(g.default,{states:{empty:{title:"No User Found",description:"Currently, there are no such user."}},store:{read:s=>_.actions.read(s),state:null},options:{search:e.unref(u)},showLoadMore:!1,class:"h-max-20r o-scroll"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(t,F)=>(e.openBlock(),e.createBlock(n.default,{key:t._id,user:t,photo:t.profile.photo,name:t.profile.name||t.phone||t.email,onClick:()=>{e.unref(r).user=t,e.unref(r).profile=t.profile,e.unref(r).phone=t.phone,e.unref(r).email=t.email,e.unref(r).socials=t.socials},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["states","store","options"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(q.default,{customer:e.unref(r),class:"mn-b-thin bg-grey"},null,8,["customer"]),e.createVNode(v.default,{submit:f,callback:p,onError:e.unref(y.setError),class:"w-100 pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Customer ")]),_:1},8,["onError"])],64))}};exports.default=N;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
import { ref as n, openBlock as l, createElementBlock as u, Fragment as h, createVNode as m, withCtx as c, unref as t, withDirectives as w, createBlock as p, isRef as d, renderList as x, createCommentVNode as $, createTextVNode as E } from "vue";
|
2
|
+
import { useRoute as U } from "vue-router";
|
3
|
+
import N from "../../../../components/Block/Block.vue.js";
|
4
|
+
import "../../../../components/Field/Field.vue.js";
|
5
|
+
import O from "../../../../components/FieldPhone/click-outside.js";
|
6
|
+
import "../../../../components/Select/Select.vue.js";
|
7
|
+
import V from "../../../../components/Feed/Feed.vue.js";
|
8
|
+
import B from "../../../../components/Button/Button.vue2.js";
|
9
|
+
import F from "../../../globals/components/blocks/BlockSearch.vue.js";
|
10
|
+
import _ from "../../../users/components/blocks/CardUser.vue.js";
|
11
|
+
import S from "./FormCustomerDetails.vue.js";
|
12
|
+
import { actions as z } from "../../../users/store/users.js";
|
13
|
+
import { state as A } from "../../../auth/store/auth.js";
|
14
|
+
import { setError as D } from "../../../globals/store/globals.js";
|
15
|
+
import L from "../../store/customers.store.js";
|
16
|
+
import R from "../../store/models/customer.js";
|
17
|
+
const j = {
|
18
|
+
key: 2,
|
19
|
+
class: "mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-grey pd-small radius-small"
|
20
|
+
}, se = {
|
21
|
+
__name: "FormAddCustomer",
|
22
|
+
props: {
|
23
|
+
order: Object
|
24
|
+
},
|
25
|
+
emits: ["callbackCustomer"],
|
26
|
+
setup(I, { emit: b }) {
|
27
|
+
let k = O;
|
28
|
+
const g = b, v = U();
|
29
|
+
let e = n(R), i = n(null), s = n(!1);
|
30
|
+
async function y() {
|
31
|
+
let f = {
|
32
|
+
identity: {
|
33
|
+
type: e.value.user ? "User" : "Visitor",
|
34
|
+
target: e.value.user ? e.value.user._id : null
|
35
|
+
},
|
36
|
+
owner: {
|
37
|
+
type: "Organization",
|
38
|
+
target: v.params._id
|
39
|
+
},
|
40
|
+
creator: {
|
41
|
+
type: "User",
|
42
|
+
target: A.user._id
|
43
|
+
},
|
44
|
+
phone: e.value.phone,
|
45
|
+
email: e.value.email,
|
46
|
+
profile: e.value.profile,
|
47
|
+
socials: e.value.socials
|
48
|
+
};
|
49
|
+
try {
|
50
|
+
let o = await L.create(f);
|
51
|
+
e.value = o;
|
52
|
+
} catch (o) {
|
53
|
+
console.log(o);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
function C() {
|
57
|
+
g("callbackCustomer", e.value);
|
58
|
+
}
|
59
|
+
return (f, o) => (l(), u(h, null, [
|
60
|
+
m(N, { class: "pos-relative mn-b-thin" }, {
|
61
|
+
default: c(() => [
|
62
|
+
t(e).user ? (l(), p(_, {
|
63
|
+
key: 1,
|
64
|
+
user: t(e).user,
|
65
|
+
photo: t(e).user.profile.photo,
|
66
|
+
name: t(e).user.profile.name || t(e).user.phone || t(e).user.email,
|
67
|
+
onClick: o[1] || (o[1] = () => {
|
68
|
+
t(e).user = null;
|
69
|
+
}),
|
70
|
+
class: "bg-white pd-thin radius-medium w-100"
|
71
|
+
}, null, 8, ["user", "photo", "name"])) : w((l(), p(F, {
|
72
|
+
key: 0,
|
73
|
+
onSearch: o[0] || (o[0] = (a) => {
|
74
|
+
d(i) ? i.value = a : i = a, d(s) ? s.value = !0 : s = !0;
|
75
|
+
}),
|
76
|
+
placeholder: "Enter name, phone or email",
|
77
|
+
class: "bg-white"
|
78
|
+
}, null, 512)), [
|
79
|
+
[t(k), () => {
|
80
|
+
d(s) ? s.value = !1 : s = !1;
|
81
|
+
}]
|
82
|
+
]),
|
83
|
+
t(i) && t(s) && !t(e).user ? (l(), u("div", j, [
|
84
|
+
m(V, {
|
85
|
+
states: {
|
86
|
+
empty: {
|
87
|
+
title: "No User Found",
|
88
|
+
description: "Currently, there are no such user."
|
89
|
+
}
|
90
|
+
},
|
91
|
+
store: {
|
92
|
+
read: (a) => z.read(a),
|
93
|
+
state: null
|
94
|
+
},
|
95
|
+
options: {
|
96
|
+
search: t(i)
|
97
|
+
},
|
98
|
+
showLoadMore: !1,
|
99
|
+
class: "h-max-20r o-scroll"
|
100
|
+
}, {
|
101
|
+
default: c(({
|
102
|
+
items: a
|
103
|
+
}) => [
|
104
|
+
(l(!0), u(h, null, x(a, (r, M) => (l(), p(_, {
|
105
|
+
key: r._id,
|
106
|
+
user: r,
|
107
|
+
photo: r.profile.photo,
|
108
|
+
name: r.profile.name || r.phone || r.email,
|
109
|
+
onClick: () => {
|
110
|
+
t(e).user = r, t(e).profile = r.profile, t(e).phone = r.phone, t(e).email = r.email, t(e).socials = r.socials;
|
111
|
+
},
|
112
|
+
class: "bg-white pd-thin radius-medium w-100 mn-b-thin"
|
113
|
+
}, null, 8, ["user", "photo", "name", "onClick"]))), 128))
|
114
|
+
]),
|
115
|
+
_: 1
|
116
|
+
}, 8, ["states", "store", "options"])
|
117
|
+
])) : $("", !0)
|
118
|
+
]),
|
119
|
+
_: 1
|
120
|
+
}),
|
121
|
+
m(S, {
|
122
|
+
customer: t(e),
|
123
|
+
class: "mn-b-thin bg-grey"
|
124
|
+
}, null, 8, ["customer"]),
|
125
|
+
m(B, {
|
126
|
+
submit: y,
|
127
|
+
callback: C,
|
128
|
+
onError: t(D),
|
129
|
+
class: "w-100 pd-small radius-big bg-main t-black uppercase t-medium"
|
130
|
+
}, {
|
131
|
+
default: c(() => [
|
132
|
+
E(" Add Customer ")
|
133
|
+
]),
|
134
|
+
_: 1
|
135
|
+
}, 8, ["onError"])
|
136
|
+
], 64));
|
137
|
+
}
|
138
|
+
};
|
139
|
+
export {
|
140
|
+
se as default
|
141
|
+
};
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),o=require("../../../../components/Block/Block.vue.cjs"),a=require("../../../../components/Field/Field.vue.cjs"),n=require("../../../../components/FieldPhone/
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),o=require("../../../../components/Block/Block.vue.cjs"),a=require("../../../../components/Field/Field.vue.cjs"),n=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),s=require("../../../../components/Select/Select.vue2.cjs"),u={class:"flex-nowrap flex"},d={__name:"FormClientDetails",props:{order:Object},setup(r){return(i,e)=>(l.openBlock(),l.createBlock(o.default,{title:"Personal Data",class:"mn-b-thin"},{default:l.withCtx(()=>[l.createVNode(a.default,{field:r.order.customer.name,"onUpdate:field":e[0]||(e[0]=t=>r.order.customer.name=t),label:"Name*",placeholder:"Enter your name",class:"bg-white pd-medium radius-small mn-b-thin"},null,8,["field"]),l.createElementVNode("div",u,[l.createVNode(s.default,{options:[{name:"Phone",value:"phone"},{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"},{name:"Line",value:"line"}],"onUpdate:select":e[1]||(e[1]=t=>r.order.customer.messenger.type=t.value),placeholder:"Messenger",size:"small",class:"bg-white pd-medium radius-small mn-r-small"}),l.createVNode(n.default,{modelValue:r.order.customer.phone,"onUpdate:modelValue":e[2]||(e[2]=t=>r.order.customer.phone=t),onCountry:e[3]||(e[3]=t=>{r.order.customer.number=t}),inputOptions:{placeholder:"Enter contact phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["modelValue"])])]),_:1}))}};exports.default=d;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { openBlock as r, createBlock as n, withCtx as a, createVNode as o, createElementVNode as m } from "vue";
|
2
2
|
import s from "../../../../components/Block/Block.vue.js";
|
3
3
|
import d from "../../../../components/Field/Field.vue.js";
|
4
|
-
import i from "../../../../components/FieldPhone/
|
4
|
+
import i from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
5
|
import u from "../../../../components/Select/Select.vue2.js";
|
6
6
|
const p = { class: "flex-nowrap flex" }, v = {
|
7
7
|
__name: "FormClientDetails",
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Field/Field.vue2.cjs"),o=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),u=require("../../../../components/Select/Select.vue2.cjs"),i={class:"gap-thin flex-justify-between flex-nowrap flex"},d={__name:"FormCustomerDetails",props:{customer:Object,title:{type:String,default:"Personal Data"}},setup(a){let s=e.ref("instagram");return(m,l)=>(e.openBlock(),e.createBlock(r.default,{title:a.title,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createVNode(n.default,{field:a.customer.profile.name,"onUpdate:field":l[0]||(l[0]=t=>a.customer.profile.name=t),label:"Name",placeholder:"Enter name",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["field"]),e.createVNode(o.default,{modelValue:a.customer.phone,"onUpdate:modelValue":l[1]||(l[1]=t=>a.customer.phone=t),onCountry:l[2]||(l[2]=t=>{a.customer.number=t}),inputOptions:{placeholder:"Enter phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"w-100 bg-white pd-small mn-b-thin radius-small"},null,8,["modelValue"]),e.createElementVNode("div",i,[e.createVNode(u.default,{select:e.unref(s),options:[{name:"Instagram",value:"instagram"},{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"}],"onUpdate:select":l[3]||(l[3]=t=>e.isRef(s)?s.value=t:s=t),placeholder:"Messenger",size:"small",class:"bg-white pd-small radius-small"},null,8,["select"]),e.createVNode(n.default,{field:a.customer.socials[e.unref(s)],"onUpdate:field":l[4]||(l[4]=t=>a.customer.socials[e.unref(s)]=t),label:"@",placeholder:"Enter username",class:"bg-white pd-small radius-small w-100"},null,8,["field"])])]),_:1},8,["title"]))}};exports.default=d;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
import { ref as r, openBlock as m, createBlock as i, withCtx as u, createVNode as s, createElementVNode as d, unref as n, isRef as f } from "vue";
|
2
|
+
import p from "../../../../components/Block/Block.vue.js";
|
3
|
+
import o from "../../../../components/Field/Field.vue2.js";
|
4
|
+
import c from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
+
import h from "../../../../components/Select/Select.vue2.js";
|
6
|
+
const g = { class: "gap-thin flex-justify-between flex-nowrap flex" }, V = {
|
7
|
+
__name: "FormCustomerDetails",
|
8
|
+
props: {
|
9
|
+
customer: Object,
|
10
|
+
title: {
|
11
|
+
type: String,
|
12
|
+
default: "Personal Data"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
setup(t) {
|
16
|
+
let a = r("instagram");
|
17
|
+
return (w, e) => (m(), i(p, {
|
18
|
+
title: t.title,
|
19
|
+
class: "mn-b-thin"
|
20
|
+
}, {
|
21
|
+
default: u(() => [
|
22
|
+
s(o, {
|
23
|
+
field: t.customer.profile.name,
|
24
|
+
"onUpdate:field": e[0] || (e[0] = (l) => t.customer.profile.name = l),
|
25
|
+
label: "Name",
|
26
|
+
placeholder: "Enter name",
|
27
|
+
class: "bg-white pd-small radius-small mn-b-thin"
|
28
|
+
}, null, 8, ["field"]),
|
29
|
+
s(c, {
|
30
|
+
modelValue: t.customer.phone,
|
31
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => t.customer.phone = l),
|
32
|
+
onCountry: e[2] || (e[2] = (l) => {
|
33
|
+
t.customer.number = l;
|
34
|
+
}),
|
35
|
+
inputOptions: {
|
36
|
+
placeholder: "Enter phone number",
|
37
|
+
type: "tel"
|
38
|
+
},
|
39
|
+
defaultCountry: "TH",
|
40
|
+
validCharactersOnly: !0,
|
41
|
+
dropdownOptions: {
|
42
|
+
showDialCodeInSelection: !0,
|
43
|
+
showFlags: !0,
|
44
|
+
showDialCodeInList: !0
|
45
|
+
},
|
46
|
+
mode: "national",
|
47
|
+
class: "w-100 bg-white pd-small mn-b-thin radius-small"
|
48
|
+
}, null, 8, ["modelValue"]),
|
49
|
+
d("div", g, [
|
50
|
+
s(h, {
|
51
|
+
select: n(a),
|
52
|
+
options: [
|
53
|
+
{ name: "Instagram", value: "instagram" },
|
54
|
+
{ name: "Telegram", value: "telegram" },
|
55
|
+
{ name: "WhatsApp", value: "whatsapp" }
|
56
|
+
],
|
57
|
+
"onUpdate:select": e[3] || (e[3] = (l) => f(a) ? a.value = l : a = l),
|
58
|
+
placeholder: "Messenger",
|
59
|
+
size: "small",
|
60
|
+
class: "bg-white pd-small radius-small"
|
61
|
+
}, null, 8, ["select"]),
|
62
|
+
s(o, {
|
63
|
+
field: t.customer.socials[n(a)],
|
64
|
+
"onUpdate:field": e[4] || (e[4] = (l) => t.customer.socials[n(a)] = l),
|
65
|
+
label: "@",
|
66
|
+
placeholder: "Enter username",
|
67
|
+
class: "bg-white pd-small radius-small w-100"
|
68
|
+
}, null, 8, ["field"])
|
69
|
+
])
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
}, 8, ["title"]));
|
73
|
+
}
|
74
|
+
};
|
75
|
+
export {
|
76
|
+
V as default
|
77
|
+
};
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),t=require("../../../globals/store/globals.cjs"),s=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Address/Address.vue2.cjs"),u=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),t=require("../../../globals/store/globals.cjs"),s=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Address/Address.vue2.cjs"),u=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),i=require("../../../../components/Radio/Radio.vue.cjs"),m=require("../../../../components/Field/Field.vue2.cjs"),c=l.createElementVNode("h4",{class:"mn-b-thin"},"Spot",-1),y=l.createElementVNode("div",{class:"mn-b-small flex-nowrap flex"},null,-1),b=l.createElementVNode("h4",{class:"mn-b-thin"},"Shipping Method",-1),v={class:"mn-b-small flex-nowrap flex"},f=l.createElementVNode("h4",{class:"mn-b-thin"},"Address",-1),p={__name:"FormDelivery",props:{order:Object},setup(e){const o=e;return l.onMounted(()=>{t.state.position&&(o.order.delivery.address=t.state.position.address),t.state.position&&(o.order.delivery.location=t.state.position.location)}),(a,d)=>(l.openBlock(),l.createBlock(s.default,{title:"Delivery",class:"mn-b-thin",tooltip:"Delivery by mail takes 3-5 days."},{default:l.withCtx(()=>[c,y,b,l.createElementVNode("div",v,[l.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[0]||(d[0]=r=>e.order.delivery.type=r),label:"Pickup",value:"pickup",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),l.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[1]||(d[1]=r=>e.order.delivery.type=r),label:"Courier",value:"courier",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),l.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[2]||(d[2]=r=>e.order.delivery.type=r),label:"Mail",value:"mail",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"])]),f,l.createVNode(n.default,{label:"Location",apiKey:a.GOOGLE_MAPS_API_KEY,address:e.order.delivery.address,location:e.order.delivery.location,placeholder:"Enter your address",class:"bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium","onUpdate:location":d[3]||(d[3]=r=>{e.order.delivery.location=r}),"onUpdate:address":d[4]||(d[4]=r=>{e.order.delivery.address=r})},null,8,["apiKey","address","location"]),l.createVNode(u.default,{apiKey:a.GOOGLE_MAPS_API_KEY,address:e.order.delivery.address,location:e.order.delivery.location,class:"mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden","onUpdate:location":d[5]||(d[5]=r=>{e.order.delivery.location=r}),"onUpdate:address":d[6]||(d[6]=r=>{e.order.delivery.address=r})},null,8,["apiKey","address","location"]),l.createVNode(m.default,{field:e.order.comment,"onUpdate:field":d[7]||(d[7]=r=>e.order.comment=r),placeholder:"Comments regarding the address (apartment unit, floor level, building section)",type:"textarea",class:"bg-white pd-medium radius-small"},null,8,["field"])]),_:1},8,["tooltip"]))}};exports.default=p;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js
CHANGED
@@ -1,70 +1,81 @@
|
|
1
|
-
import { onMounted as
|
1
|
+
import { onMounted as n, openBlock as m, createBlock as u, withCtx as y, createElementVNode as l, createVNode as i } from "vue";
|
2
2
|
import { state as o } from "../../../globals/store/globals.js";
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
const c = { class: "mn-b-small flex-nowrap flex" },
|
3
|
+
import b from "../../../../components/Block/Block.vue.js";
|
4
|
+
import v from "../../../../components/Address/Address.vue2.js";
|
5
|
+
import p from "../../../../components/LocationMarker/LocationMarker.vue2.js";
|
6
|
+
import t from "../../../../components/Radio/Radio.vue.js";
|
7
|
+
import f from "../../../../components/Field/Field.vue2.js";
|
8
|
+
const c = /* @__PURE__ */ l("h4", { class: "mn-b-thin" }, "Spot", -1), h = /* @__PURE__ */ l("div", { class: "mn-b-small flex-nowrap flex" }, null, -1), w = /* @__PURE__ */ l("h4", { class: "mn-b-thin" }, "Shipping Method", -1), g = { class: "mn-b-small flex-nowrap flex" }, U = /* @__PURE__ */ l("h4", { class: "mn-b-thin" }, "Address", -1), P = {
|
9
9
|
__name: "FormDelivery",
|
10
10
|
props: {
|
11
11
|
order: Object
|
12
12
|
},
|
13
13
|
setup(e) {
|
14
|
-
const
|
15
|
-
return
|
16
|
-
o.position && (
|
17
|
-
}), (
|
14
|
+
const a = e;
|
15
|
+
return n(() => {
|
16
|
+
o.position && (a.order.delivery.address = o.position.address), o.position && (a.order.delivery.location = o.position.location);
|
17
|
+
}), (s, d) => (m(), u(b, {
|
18
18
|
title: "Delivery",
|
19
19
|
class: "mn-b-thin",
|
20
20
|
tooltip: "Delivery by mail takes 3-5 days."
|
21
21
|
}, {
|
22
|
-
default:
|
23
|
-
|
24
|
-
|
22
|
+
default: y(() => [
|
23
|
+
c,
|
24
|
+
h,
|
25
|
+
w,
|
26
|
+
l("div", g, [
|
27
|
+
i(t, {
|
25
28
|
radio: e.order.delivery.type,
|
26
|
-
"onUpdate:radio":
|
29
|
+
"onUpdate:radio": d[0] || (d[0] = (r) => e.order.delivery.type = r),
|
30
|
+
label: "Pickup",
|
31
|
+
value: "pickup",
|
32
|
+
class: "bg-white pd-medium radius-small w-100 mn-r-small"
|
33
|
+
}, null, 8, ["radio"]),
|
34
|
+
i(t, {
|
35
|
+
radio: e.order.delivery.type,
|
36
|
+
"onUpdate:radio": d[1] || (d[1] = (r) => e.order.delivery.type = r),
|
27
37
|
label: "Courier",
|
28
38
|
value: "courier",
|
29
39
|
class: "bg-white pd-medium radius-small w-100 mn-r-small"
|
30
40
|
}, null, 8, ["radio"]),
|
31
|
-
i(
|
41
|
+
i(t, {
|
32
42
|
radio: e.order.delivery.type,
|
33
|
-
"onUpdate:radio":
|
34
|
-
label: "
|
35
|
-
value: "
|
43
|
+
"onUpdate:radio": d[2] || (d[2] = (r) => e.order.delivery.type = r),
|
44
|
+
label: "Mail",
|
45
|
+
value: "mail",
|
36
46
|
class: "bg-white pd-medium radius-small w-100 mn-r-small"
|
37
47
|
}, null, 8, ["radio"])
|
38
48
|
]),
|
39
|
-
|
40
|
-
|
41
|
-
|
49
|
+
U,
|
50
|
+
i(v, {
|
51
|
+
label: "Location",
|
52
|
+
apiKey: s.GOOGLE_MAPS_API_KEY,
|
42
53
|
address: e.order.delivery.address,
|
43
54
|
location: e.order.delivery.location,
|
44
55
|
placeholder: "Enter your address",
|
45
56
|
class: "bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium",
|
46
|
-
"onUpdate:location":
|
47
|
-
e.order.delivery.location =
|
57
|
+
"onUpdate:location": d[3] || (d[3] = (r) => {
|
58
|
+
e.order.delivery.location = r;
|
48
59
|
}),
|
49
|
-
"onUpdate:address":
|
50
|
-
e.order.delivery.address =
|
60
|
+
"onUpdate:address": d[4] || (d[4] = (r) => {
|
61
|
+
e.order.delivery.address = r;
|
51
62
|
})
|
52
63
|
}, null, 8, ["apiKey", "address", "location"]),
|
53
|
-
i(
|
54
|
-
apiKey:
|
64
|
+
i(p, {
|
65
|
+
apiKey: s.GOOGLE_MAPS_API_KEY,
|
55
66
|
address: e.order.delivery.address,
|
56
67
|
location: e.order.delivery.location,
|
57
68
|
class: "mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden",
|
58
|
-
"onUpdate:location":
|
59
|
-
e.order.delivery.location =
|
69
|
+
"onUpdate:location": d[5] || (d[5] = (r) => {
|
70
|
+
e.order.delivery.location = r;
|
60
71
|
}),
|
61
|
-
"onUpdate:address":
|
62
|
-
e.order.delivery.address =
|
72
|
+
"onUpdate:address": d[6] || (d[6] = (r) => {
|
73
|
+
e.order.delivery.address = r;
|
63
74
|
})
|
64
75
|
}, null, 8, ["apiKey", "address", "location"]),
|
65
|
-
i(
|
76
|
+
i(f, {
|
66
77
|
field: e.order.comment,
|
67
|
-
"onUpdate:field":
|
78
|
+
"onUpdate:field": d[7] || (d[7] = (r) => e.order.comment = r),
|
68
79
|
placeholder: "Comments regarding the address (apartment unit, floor level, building section)",
|
69
80
|
type: "textarea",
|
70
81
|
class: "bg-white pd-medium radius-small"
|
@@ -75,5 +86,5 @@ const c = { class: "mn-b-small flex-nowrap flex" }, k = {
|
|
75
86
|
}
|
76
87
|
};
|
77
88
|
export {
|
78
|
-
|
89
|
+
P as default
|
79
90
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s={class:"t-center order-finished"},l=e.createStaticVNode('<p class="mn-b-medium p-big">Order completed!</p><div class="mn-b-big pd-big order-number"><p class="mn-b-small t-semi small">#485792</p><p class="t-lh-2">Our manager will contact you within 1 hour. If you have any questions - send us an email or call <br><span class="t-semi">+995 585 888 660</span></p></div>',2),a={class:"order-data pd-big"},r={class:"mn-b-small t-left flex-nowrap flex"},o=e.createElementVNode("p",{class:"mn-r-small w-33 t-semi"},"Receiver",-1),n={class:"mn-r-small w-100"},i={class:"t-left flex-nowrap flex"},c=e.createElementVNode("p",{class:"mn-r-small w-33 t-semi"},"Address",-1),d={class:"mn-r-small w-100"},m={__name:"Succes",props:{order:Object},setup(t){return(u,p)=>(e.openBlock(),e.createElementBlock("div",s,[l,e.createElementVNode("div",a,[e.createElementVNode("div",r,[o,e.createElementVNode("p",n,e.toDisplayString(t.order.name)+" "+e.toDisplayString(t.order.surname)+", "+e.toDisplayString(t.order.phone)+", "+e.toDisplayString(t.order.email),1)]),e.createElementVNode("div",i,[c,e.createElementVNode("p",d,e.toDisplayString(t.order.city)+", "+e.toDisplayString(t.order.adress),1)])])]))}};exports.default=m;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { openBlock as a, createElementBlock as l, createElementVNode as e, toDisplayString as t, createStaticVNode as r } from "vue";
|
2
|
+
const o = { class: "t-center order-finished" }, c = /* @__PURE__ */ r('<p class="mn-b-medium p-big">Order completed!</p><div class="mn-b-big pd-big order-number"><p class="mn-b-small t-semi small">#485792</p><p class="t-lh-2">Our manager will contact you within 1 hour. If you have any questions - send us an email or call <br><span class="t-semi">+995 585 888 660</span></p></div>', 2), n = { class: "order-data pd-big" }, d = { class: "mn-b-small t-left flex-nowrap flex" }, i = /* @__PURE__ */ e("p", { class: "mn-r-small w-33 t-semi" }, "Receiver", -1), m = { class: "mn-r-small w-100" }, h = { class: "t-left flex-nowrap flex" }, p = /* @__PURE__ */ e("p", { class: "mn-r-small w-33 t-semi" }, "Address", -1), u = { class: "mn-r-small w-100" }, v = {
|
3
|
+
__name: "Succes",
|
4
|
+
props: {
|
5
|
+
order: Object
|
6
|
+
},
|
7
|
+
setup(s) {
|
8
|
+
return (_, b) => (a(), l("div", o, [
|
9
|
+
c,
|
10
|
+
e("div", n, [
|
11
|
+
e("div", d, [
|
12
|
+
i,
|
13
|
+
e("p", m, t(s.order.name) + " " + t(s.order.surname) + ", " + t(s.order.phone) + ", " + t(s.order.email), 1)
|
14
|
+
]),
|
15
|
+
e("div", h, [
|
16
|
+
p,
|
17
|
+
e("p", u, t(s.order.city) + ", " + t(s.order.adress), 1)
|
18
|
+
])
|
19
|
+
])
|
20
|
+
]));
|
21
|
+
}
|
22
|
+
};
|
23
|
+
export {
|
24
|
+
v as default
|
25
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./store/orders.cjs"),t=require("./store/shopcart.cjs"),o=require("./router/orders.router.cjs"),d=require("./components/pages/Orders.vue.cjs"),a=require("./components/pages/Order.vue.cjs"),s=require("./components/pages/OrderCreate.vue.cjs"),i=require("./components/pages/OrderCreateBackoffice.vue.cjs"),c=require("./components/blocks/CardOrderItem.vue.cjs"),n=require("./components/blocks/CardOrder.vue.cjs"),l=require("./components/blocks/StatusHistory.vue.cjs"),f=require("./components/sections/FormCustomerDetails.vue.cjs"),m=require("./components/sections/FormPayment.vue.cjs"),q=require("./components/sections/FormDelivery.vue.cjs"),O=require("./components/sections/EmptyState.vue.cjs"),S=require("./components/sections/AskToLogin.vue.cjs"),C=require("./components/sections/Succes.vue.cjs"),p=require("./components/partials/ShopCart.vue.cjs");function y(h,e,u){u.addRoute("Home",o.default),e.addStore("orders",r),e.addStore("shopcart",t)}const F={initialize:y,views:{store:{storeOrders:r,storeShopcart:t},router:{routerOrders:o.default},components:{Orders:d.default,Order:a.default,OrderCreate:s.default,OrderCreateBackoffice:i.default,CardOrderItem:c.default,CardOrder:n.default,StatusHistory:l.default,FormCustomerDetails:f.default,AskToLogin:S.default,FormDelivery:q.default,EmptyState:O.default,Succes:C.default,FormPayment:m.default,ShopCart:p.default}}};exports.default=F;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import * as o from "./store/orders.js";
|
2
|
+
import * as m from "./store/shopcart.js";
|
3
|
+
import t from "./router/orders.router.js";
|
4
|
+
import e from "./components/pages/Orders.vue.js";
|
5
|
+
import a from "./components/pages/Order.vue.js";
|
6
|
+
import s from "./components/pages/OrderCreate.vue.js";
|
7
|
+
import f from "./components/pages/OrderCreateBackoffice.vue.js";
|
8
|
+
import p from "./components/blocks/CardOrderItem.vue.js";
|
9
|
+
import _ from "./components/blocks/CardOrder.vue.js";
|
10
|
+
import d from "./components/blocks/StatusHistory.vue.js";
|
11
|
+
import c from "./components/sections/FormCustomerDetails.vue.js";
|
12
|
+
import n from "./components/sections/FormPayment.vue.js";
|
13
|
+
import $ from "./components/sections/FormDelivery.vue.js";
|
14
|
+
import O from "./components/sections/EmptyState.vue.js";
|
15
|
+
import u from "./components/sections/AskToLogin.vue.js";
|
16
|
+
import S from "./components/sections/Succes.vue.js";
|
17
|
+
import l from "./components/partials/ShopCart.vue.js";
|
18
|
+
function C(h, r, i) {
|
19
|
+
i.addRoute("Home", t), r.addStore("orders", o), r.addStore("shopcart", m);
|
20
|
+
}
|
21
|
+
const L = {
|
22
|
+
initialize: C,
|
23
|
+
views: {
|
24
|
+
store: {
|
25
|
+
storeOrders: o,
|
26
|
+
storeShopcart: m
|
27
|
+
},
|
28
|
+
router: {
|
29
|
+
routerOrders: t
|
30
|
+
},
|
31
|
+
components: {
|
32
|
+
// Pages
|
33
|
+
Orders: e,
|
34
|
+
Order: a,
|
35
|
+
OrderCreate: s,
|
36
|
+
OrderCreateBackoffice: f,
|
37
|
+
// Favorites,
|
38
|
+
// Blocks
|
39
|
+
CardOrderItem: p,
|
40
|
+
CardOrder: _,
|
41
|
+
StatusHistory: d,
|
42
|
+
// Sections
|
43
|
+
FormCustomerDetails: c,
|
44
|
+
AskToLogin: u,
|
45
|
+
FormDelivery: $,
|
46
|
+
EmptyState: O,
|
47
|
+
Succes: S,
|
48
|
+
FormPayment: n,
|
49
|
+
// Partials
|
50
|
+
ShopCart: l
|
51
|
+
}
|
52
|
+
}
|
53
|
+
};
|
54
|
+
export {
|
55
|
+
L as default
|
56
|
+
};
|