@ozdao/prometheus-framework 0.2.128 → 0.2.129
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +1 -1
- package/dist/auth.server.js +12 -14
- package/dist/auth.server.mjs +12 -14
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +6 -2
- package/dist/gallery.server.mjs +6 -2
- package/dist/{index-BCCiEK_u.js → index-BshfsiQG.js} +8 -4
- package/dist/{index-B6a1mPgp.mjs → index-DKtnWDNC.mjs} +8 -4
- package/dist/{main-CmL_j3wv.mjs → main-DvdaURTh.mjs} +3261 -3154
- package/dist/main-hLtpe4Hr.js +92 -0
- package/dist/main.css +1 -1
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/node_modules/zod/lib/index.cjs +1 -1
- package/dist/node_modules/zod/lib/index.js +1162 -1033
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +1 -1
- package/dist/organizations.server.mjs +1 -1
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +1 -89
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js +73 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +23 -22
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +1 -27
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +27 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +1 -58
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +58 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +144 -112
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +5 -5
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -127
- package/dist/prometheus-framework/src/components/Menu/MenuItem.vue.cjs +1 -0
- package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/MenuItem.vue.js +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue.js +6 -6
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +77 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -77
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
- 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/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +7 -6
- 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 +114 -77
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +7 -22
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +62 -70
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +17 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- 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 +1 -1
- 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/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 +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +5 -5
- 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 +9 -9
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs +1 -0
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js +18 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +46 -0
- 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 +20 -16
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +10 -10
- 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/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +27 -4
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +14 -12
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +111 -93
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.js +13 -14
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- 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 +20 -22
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +5 -4
- 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/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
- 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 +4 -4
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +154 -0
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -0
- package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +27 -0
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -7
- 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/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +26 -27
- 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 +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +22 -23
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +30 -29
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +72 -51
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +51 -53
- 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 +22 -22
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- 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 +62 -48
- 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 +43 -44
- 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 +5 -5
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +24 -25
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/dist/{web-Bk_OtXgv.js → web-CVIepGUM.js} +1 -1
- package/dist/{web-BHzpMOmk.mjs → web-Dt2JR41o.mjs} +1 -1
- package/package.json +3 -2
- package/src/{modules/mobile/components → components}/BottomSheet/BottomSheet.vue +24 -21
- package/src/components/Button/Button.vue +20 -3
- package/src/components/Feed/Feed.vue +28 -3
- package/src/components/FieldBig/FieldBig.vue +2 -2
- package/src/components/Sidebar/Sidebar.vue +13 -5
- package/src/components/index.js +0 -1
- package/src/main.js +0 -4
- package/src/modules/auth/controllers/auth.controller.js +14 -16
- package/src/modules/auth/router/auth.js +1 -4
- package/src/modules/auth/store/auth.js +28 -24
- package/src/modules/backoffice/components/pages/Dashboard.vue +29 -56
- package/src/modules/backoffice/router/backoffice.js +4 -15
- package/src/modules/community/components/blocks/CardBlogpost.vue +28 -26
- package/src/modules/community/components/layouts/Community.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +1 -2
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -1
- package/src/modules/gallery/router/gallery.backoffice.router.js +14 -0
- package/src/modules/globals/components/blocks/BlockFilter.vue +44 -0
- package/src/modules/globals/components/blocks/CardHeader.vue +5 -3
- package/src/modules/globals/components/layouts/Client.vue +99 -43
- package/src/modules/globals/components/pages/401.vue +5 -0
- package/src/modules/globals/components/pages/404.vue +5 -0
- package/src/modules/globals/components/partials/Footer.vue +17 -5
- package/src/modules/globals/components/partials/Header.vue +37 -18
- package/src/modules/globals/components/partials/Navigation.vue +7 -2
- package/src/modules/landing/components/sections/MobileApp.vue +2 -2
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
- package/src/modules/landing/router/landing.js +2 -12
- package/src/modules/legal/components/pages/Legal.vue +2 -2
- package/src/modules/marketplace/components/layouts/Marketplace.vue +30 -13
- package/src/modules/marketplace/components/pages/Catalog.vue +2 -1
- package/src/modules/marketplace/router/marketplace.js +12 -10
- package/src/modules/marketplace/store/marketplace.js +25 -1
- package/src/modules/middlewares/client/auth.validation.js +5 -2
- package/src/modules/middlewares/server/authJwt.js +12 -6
- package/src/modules/middlewares/server/verifyAccesses.js +7 -3
- package/src/modules/orders/components/pages/OrderCreate.vue +34 -22
- package/src/modules/orders/components/sections/AskToLogin.vue +8 -7
- package/src/modules/orders/components/sections/FormDelivery.vue +6 -6
- package/src/modules/orders/router/orders.router.js +6 -3
- package/src/modules/organizations/components/pages/Members.vue +2 -2
- package/src/modules/organizations/components/pages/Organization.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +204 -0
- package/src/modules/organizations/router/backoffice.router.js +25 -0
- package/src/modules/organizations/router/organizations.js +3 -1
- package/src/modules/pages/router/pages.router.js +15 -0
- package/src/modules/products/components/blocks/ImagesThumbnails.vue +11 -12
- package/src/modules/products/components/pages/Product.vue +7 -3
- package/src/modules/products/components/pages/ProductRecommmendation.vue +6 -5
- package/src/modules/products/components/sections/FilterProducts.vue +6 -6
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/PopularProducts.vue +1 -3
- package/src/modules/products/components/sections/SectionProduct.vue +8 -8
- package/src/modules/spots/components/layouts/Spots.vue +33 -31
- package/src/modules/spots/components/pages/Map.vue +380 -353
- package/src/modules/spots/router/spots.js +3 -1
- package/src/modules/users/components/pages/Profile.vue +4 -4
- package/src/modules/users/components/pages/ProfileEdit.vue +4 -3
- package/src/modules/wallet/controllers/routes/payments.routes.js +0 -1
- package/src/styles/base/all.scss +4 -0
- package/src/styles/config.scss +2 -1
- package/src/styles/layout.scss +0 -1
- package/dist/credentials.schema-CDZCKfEI.mjs +0 -106
- package/dist/credentials.schema-CfhPcsuI.js +0 -105
- package/dist/index-CGIn4v5E.mjs +0 -217
- package/dist/index-CL9l0HRS.js +0 -216
- package/dist/main-8APITHuW.mjs +0 -14201
- package/dist/main-8N2Jmsuk.js +0 -91
- package/dist/main-BJvlNekm.mjs +0 -13631
- package/dist/main-BQisDfLk.js +0 -92
- package/dist/main-BV1Yv9Hy.js +0 -92
- package/dist/main-Ba3zK8PO.js +0 -92
- package/dist/main-Btlny-89.mjs +0 -14207
- package/dist/main-Bw0PvTs-.mjs +0 -13616
- package/dist/main-ByCtZbHD.mjs +0 -13752
- package/dist/main-CF35oB7q.js +0 -92
- package/dist/main-CX2ISR43.mjs +0 -13629
- package/dist/main-CXObXjv-.js +0 -92
- package/dist/main-CkeuHuCY.mjs +0 -13619
- package/dist/main-CnfcBov2.mjs +0 -13740
- package/dist/main-D0va05OD.js +0 -92
- package/dist/main-D50VqYhy.js +0 -91
- package/dist/main-D8gNZLSa.js +0 -92
- package/dist/main-DL3vRQCi.js +0 -92
- package/dist/main-DPsHxX0l.mjs +0 -13633
- package/dist/main-DTlUA63C.mjs +0 -13617
- package/dist/main-DfD5hLQo.mjs +0 -13633
- package/dist/main-Dh6Zfei9.js +0 -92
- package/dist/main-DmNP-t33.mjs +0 -13625
- package/dist/main-Ds3Z5x5d.mjs +0 -14206
- package/dist/main-DwyUYWFX.js +0 -92
- package/dist/main-VcxO-jAt.js +0 -92
- package/dist/main-cffh4bbv.js +0 -92
- package/dist/main-o_2eO2tP.mjs +0 -14208
- package/dist/main-pGo7JpSP.js +0 -92
- package/dist/metadata.schema-BLGSCSmy.mjs +0 -55
- package/dist/metadata.schema-Cu_mPkjE.js +0 -77
- package/dist/metadata.schema-DWR97jhW.js +0 -54
- package/dist/metadata.schema-cbFgazeK.mjs +0 -78
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +0 -1
- package/dist/node_modules/@noble/hashes/esm/sha512.js +0 -126
- package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.cjs +0 -7
- package/dist/node_modules/vue-meta/dist/vue-meta.esm-browser.min.js +0 -38
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.cjs +0 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +0 -43
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +0 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +0 -373
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +0 -1
- package/dist/prometheus-framework/src/components/FieldPhone/utils.cjs +0 -1
- package/dist/prometheus-framework/src/components/FieldPhone/utils.js +0 -259
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +0 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +0 -62
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +0 -110
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +0 -1
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +0 -27
- package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.js +0 -29
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +0 -65
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +0 -87
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +0 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +0 -51
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +0 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +0 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +0 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +0 -53
- package/dist/queryProcessor-BJdKh0Ow.mjs +0 -162
- package/dist/queryProcessor-BJoJAetd.mjs +0 -162
- package/dist/queryProcessor-BUDoM96e.js +0 -148
- package/dist/queryProcessor-Cl6sU582.mjs +0 -149
- package/dist/queryProcessor-DRMo_GWK.js +0 -161
- package/dist/queryProcessor-DWf9tsis.js +0 -161
- package/dist/web-B2xhKZNK.js +0 -1
- package/dist/web-B8tq3Fda.mjs +0 -54
- package/dist/web-BDaOF322.js +0 -1
- package/dist/web-BEJCRWop.mjs +0 -54
- package/dist/web-BNKN7kk3.mjs +0 -54
- package/dist/web-BX5um81l.js +0 -1
- package/dist/web-ByJkgGrt.js +0 -1
- package/dist/web-C0sFgeYh.mjs +0 -54
- package/dist/web-CQQEUA9l.js +0 -1
- package/dist/web-CQiHBOEN.mjs +0 -54
- package/dist/web-CXzcKdk4.mjs +0 -54
- package/dist/web-CciQvENI.js +0 -1
- package/dist/web-CkrMHYIU.js +0 -1
- package/dist/web-CtVocufd.js +0 -1
- package/dist/web-CvRd3N_J.mjs +0 -54
- package/dist/web-D0ugI6ra.js +0 -1
- package/dist/web-D2Em-p-C.mjs +0 -54
- package/dist/web-D9Cfcy5k.js +0 -1
- package/dist/web-DEysqj0n.js +0 -1
- package/dist/web-DNq1tHCE.mjs +0 -54
- package/dist/web-DTzbVshr.mjs +0 -54
- package/dist/web-Douq6xn6.js +0 -1
- package/dist/web-DtWmpLE-.mjs +0 -54
- package/dist/web-TGdVOTnw.js +0 -1
- package/dist/web-VFuzUsNl.mjs +0 -54
- package/dist/web-_W9a_nWD.mjs +0 -54
- package/dist/web-kg3KgbAF.js +0 -1
- package/dist/web-nVxTNRH4.mjs +0 -54
- package/src/components/Magnifier/Magnifier.vue +0 -89
- /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.cjs +0 -0
- /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue.js +0 -0
- /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.cjs +0 -0
- /package/dist/prometheus-framework/src/{modules/mobile/components → components}/Menu/Menu.vue2.js +0 -0
- /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.cjs +0 -0
- /package/dist/prometheus-framework/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue2.js +0 -0
- /package/src/{modules/mobile/components → components}/Menu/Menu.vue +0 -0
- /package/src/{modules/mobile/components → components}/Menu/MenuItem.vue +0 -0
- /package/src/{modules/gallery/components/blocks → components/PhotoViewer}/PhotoViewer.vue +0 -0
- /package/src/modules/{mobile/components/BottomNavigation → globals/components/partials}/BottomNavigation.vue +0 -0
- /package/src/modules/{mobile/components/NavigationBar → globals/components/partials}/NavigationBar.vue +0 -0
- /package/src/modules/{mobile/components/Walkthrough → globals/components/sections}/Walkthrough.vue +0 -0
- /package/src/modules/{landing → pages}/components/pages/Page.vue +0 -0
- /package/src/modules/{backoffice/components/admin → pages/components/pages}/PageEdit.vue +0 -0
- /package/src/modules/{backoffice/components/admin → pages/components/pages}/Pages.vue +0 -0
@@ -1,127 +1,145 @@
|
|
1
|
-
import { computed as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
1
|
+
import { computed as o, ref as M, onMounted as N, watch as S, openBlock as n, createElementBlock as d, createBlock as c, createCommentVNode as u, createElementVNode as a, createVNode as I, Fragment as B, renderList as D, toDisplayString as l, createTextVNode as F } from "vue";
|
2
|
+
import E from "../blocks/CardOrderItem.vue.js";
|
3
|
+
import Q from "../sections/AskToLogin.vue.js";
|
4
|
+
import R from "../sections/Succes.vue.js";
|
5
|
+
import U from "../sections/EmptyState.vue.js";
|
6
|
+
import x from "../sections/FormCustomerDetails.vue.js";
|
7
7
|
import A from "../sections/FormDelivery.vue.js";
|
8
8
|
import L from "../sections/FormPayment.vue.js";
|
9
|
-
import { useRoute as
|
10
|
-
import { state as
|
11
|
-
import { state as
|
12
|
-
import { getters as
|
9
|
+
import { useRoute as Y, useRouter as j } from "vue-router";
|
10
|
+
import { state as q } from "../../../globals/store/globals.js";
|
11
|
+
import { state as y } from "../../../auth/store/auth.js";
|
12
|
+
import { getters as G, state as t, actions as p } from "../../store/shopcart.js";
|
13
13
|
import { actions as $ } from "../../../organizations/store/organizations.js";
|
14
|
-
import { state as e, actions as
|
15
|
-
import { state as
|
14
|
+
import { state as e, actions as H } from "../../store/orders.js";
|
15
|
+
import { state as J } from "../../../users/store/users.js";
|
16
16
|
import "./OrderCreate.vue2.js";
|
17
|
-
const
|
17
|
+
const K = { class: "pd-thin" }, W = { class: "gap-small mn-b-thin cols-2" }, X = {
|
18
18
|
key: 2,
|
19
19
|
class: "order-form col"
|
20
|
-
},
|
21
|
-
|
22
|
-
class: "
|
23
|
-
},
|
20
|
+
}, Z = {
|
21
|
+
key: 3,
|
22
|
+
class: "bg-light pd-medium radius-big"
|
23
|
+
}, ee = /* @__PURE__ */ a("h4", { class: "font-second mn-b-thin" }, "Your Order", -1), re = { class: "flex gap-thin flex-wrap mn-b-thin" }, te = { class: "bg-main pd-thin radius-medium mn-b-thin" }, se = { class: "pd-small br-b br-solid br-black-transp-10" }, ne = { class: "pd-small br-b br-solid br-black-transp-10" }, oe = { class: "pd-small h3" }, ae = ["disabled"], ie = /* @__PURE__ */ a("p", { class: "mn-b-thin" }, [
|
24
|
+
/* @__PURE__ */ F(" I agree that placing the order places me under an obligation to make a payment in accordance with "),
|
25
|
+
/* @__PURE__ */ a("a", {
|
26
|
+
class: "t-semi font-second t-second",
|
27
|
+
href: "/legal/terms-of-use",
|
28
|
+
target: "_blank"
|
29
|
+
}, "Terms of Use.")
|
30
|
+
], -1), ue = /* @__PURE__ */ a("p", null, null, -1), Ve = {
|
24
31
|
__name: "OrderCreate",
|
25
32
|
setup(ce) {
|
26
|
-
|
27
|
-
const
|
28
|
-
|
29
|
-
const
|
30
|
-
S(async () => {
|
33
|
+
Y();
|
34
|
+
const w = j(), g = o(() => e.current);
|
35
|
+
o(() => J.current);
|
36
|
+
const f = o(() => G.cartTotalPrice), _ = o(() => {
|
31
37
|
var r;
|
32
|
-
|
38
|
+
if (e.current.delivery.type === "pickup")
|
39
|
+
return 0;
|
40
|
+
if (e.current.delivery.type === "mail")
|
41
|
+
return 350;
|
42
|
+
if (e.current.delivery.type === "courier") {
|
43
|
+
const s = ((r = h.value[0]) == null ? void 0 : r.distance) || 0;
|
44
|
+
return Math.trunc(100 + 20 * s - 7.5 * (s / 10));
|
45
|
+
}
|
46
|
+
return 0;
|
47
|
+
});
|
48
|
+
o(() => _.value + f.value.value);
|
49
|
+
const h = M({});
|
50
|
+
N(async () => {
|
51
|
+
var r;
|
52
|
+
h.value = await $.read({
|
33
53
|
_id: t.organization,
|
34
|
-
location: (r =
|
54
|
+
location: (r = q.position) == null ? void 0 : r.location
|
35
55
|
});
|
36
|
-
}),
|
37
|
-
|
56
|
+
}), S(() => e.current.delivery.address, async (r, s) => {
|
57
|
+
h.value = await $.read({
|
38
58
|
_id: t.organization,
|
39
59
|
location: e.current.delivery.location
|
40
60
|
});
|
41
61
|
}, { deep: !0 });
|
42
|
-
const
|
62
|
+
const C = o(() => {
|
43
63
|
var r;
|
44
64
|
return ((r = e.current.customer.name) == null ? void 0 : r.length) < 2;
|
45
|
-
}), P =
|
46
|
-
var
|
47
|
-
const r = (
|
48
|
-
return !(((
|
49
|
-
}),
|
50
|
-
async function
|
65
|
+
}), P = o(() => {
|
66
|
+
var i, v, b, k;
|
67
|
+
const r = (i = e.current.customer.messenger) == null ? void 0 : i.type, s = ((b = (v = e.current.customer.messenger) == null ? void 0 : v.value) == null ? void 0 : b.length) > 2;
|
68
|
+
return !(((k = e.current.customer.number) == null ? void 0 : k.length) > 0) && !(r && s);
|
69
|
+
}), V = o(() => e.current.delivery.type !== "Pickup" && e.current.delivery.address < 2), O = o(() => !e.current.delivery.type), T = o(() => !e.current.payment.type);
|
70
|
+
async function z() {
|
51
71
|
e.current.status = "created", e.current.owner = {
|
52
72
|
target: t.organization,
|
53
73
|
type: "organization"
|
54
|
-
},
|
55
|
-
target:
|
74
|
+
}, y.user._id && (e.current.creator = {
|
75
|
+
target: y.user._id,
|
56
76
|
type: "User"
|
57
77
|
}), e.current.positions = t.positions;
|
58
78
|
const r = localStorage.getItem("referalCode");
|
59
79
|
r && (e.current.referralCode = r);
|
60
|
-
let
|
61
|
-
|
80
|
+
let s = await H.create(e.current);
|
81
|
+
s ? (p.resetShopcart(), w.push({
|
62
82
|
name: "Order Status",
|
63
83
|
params: {
|
64
|
-
order:
|
84
|
+
order: s._id
|
65
85
|
}
|
66
86
|
})) : alert("something wrong");
|
67
87
|
}
|
68
|
-
return (r,
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
})) :
|
75
|
-
|
76
|
-
|
77
|
-
|
88
|
+
return (r, s) => (n(), d("section", K, [
|
89
|
+
y.access.status === !1 ? (n(), c(Q, {
|
90
|
+
key: 0,
|
91
|
+
class: "mn-b-thin"
|
92
|
+
})) : u("", !0),
|
93
|
+
a("div", W, [
|
94
|
+
t.positions < 1 ? (n(), c(U, { key: 0 })) : u("", !0),
|
95
|
+
g.value.status === !0 && t.positions.length > 0 ? (n(), c(R, {
|
96
|
+
key: 1,
|
97
|
+
order: g.value
|
98
|
+
}, null, 8, ["order"])) : u("", !0),
|
99
|
+
e.current.status !== !0 && t.positions.length > 0 ? (n(), d("div", X, [
|
100
|
+
I(x, {
|
101
|
+
customer: e.current.customer
|
102
|
+
}, null, 8, ["customer"]),
|
103
|
+
e.current.status !== !0 && t.positions.length > 0 ? (n(), c(A, {
|
104
|
+
key: 0,
|
105
|
+
order: e.current
|
106
|
+
}, null, 8, ["order"])) : u("", !0),
|
107
|
+
e.current.status !== !0 && t.positions.length > 0 ? (n(), c(L, {
|
78
108
|
key: 1,
|
79
|
-
order:
|
80
|
-
}, null, 8, ["order"])) :
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
key:
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
ne,
|
112
|
-
ae,
|
113
|
-
e.current.status !== !0 && t.positions.length > 0 ? (s(), h("button", {
|
114
|
-
key: 0,
|
115
|
-
disabled: w.value || P.value || r.errorCity || M.value || O.value || T.value,
|
116
|
-
onClick: n[0] || (n[0] = (u) => V()),
|
117
|
-
class: "bg-main pd-small radius-big w-100 button"
|
118
|
-
}, " Place an Order ", 8, ie)) : i("", !0)
|
119
|
-
])) : i("", !0)
|
120
|
-
])
|
121
|
-
]);
|
122
|
-
};
|
109
|
+
order: e.current
|
110
|
+
}, null, 8, ["order"])) : u("", !0)
|
111
|
+
])) : u("", !0),
|
112
|
+
t.positions.length > 0 ? (n(), d("div", Z, [
|
113
|
+
ee,
|
114
|
+
a("ul", re, [
|
115
|
+
(n(!0), d(B, null, D(t.positions, (m) => (n(), c(E, {
|
116
|
+
key: m._id,
|
117
|
+
editable: !0,
|
118
|
+
product: m,
|
119
|
+
increase: (i) => p.incrementItemQuantity(i._id),
|
120
|
+
decrease: (i) => p.decrementItemQuantity(i._id),
|
121
|
+
remove: (i) => p.removeProduct(i._id),
|
122
|
+
class: "w-100 bg-white pd-small radius-medium"
|
123
|
+
}, null, 8, ["product", "increase", "decrease", "remove"]))), 128))
|
124
|
+
]),
|
125
|
+
a("div", te, [
|
126
|
+
a("p", se, " Subtotal: " + l(r.returnCurrency()) + " " + l(f.value), 1),
|
127
|
+
a("p", ne, " Delivery: " + l(r.returnCurrency()) + " " + l(_.value), 1),
|
128
|
+
a("p", oe, " Total: " + l(r.returnCurrency()) + " " + l(_.value + f.value.value), 1)
|
129
|
+
]),
|
130
|
+
e.current.status !== !0 && t.positions.length > 0 ? (n(), d("button", {
|
131
|
+
key: 0,
|
132
|
+
disabled: C.value || P.value || r.errorCity || V.value || O.value || T.value,
|
133
|
+
onClick: s[0] || (s[0] = (m) => z()),
|
134
|
+
class: "bg-main mn-b-small pd-small radius-big w-100 button"
|
135
|
+
}, " Place an Order ", 8, ae)) : u("", !0),
|
136
|
+
ie,
|
137
|
+
ue
|
138
|
+
])) : u("", !0)
|
139
|
+
])
|
140
|
+
]));
|
123
141
|
}
|
124
142
|
};
|
125
143
|
export {
|
126
|
-
|
144
|
+
Ve as default
|
127
145
|
};
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router");require("../../../../components/Field/Field.vue.cjs");const P=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router");require("../../../../components/Field/Field.vue.cjs");const P=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Popup/Popup.vue.cjs"),u=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs"),_=require("../blocks/CardOrderItem.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const C=require("../../../users/components/blocks/CardUser.vue.cjs"),V=require("../sections/FormAddCustomer.vue.cjs"),O=require("../sections/FormDelivery.vue.cjs"),E=require("../sections/FormPayment.vue.cjs"),l=require("../../../globals/store/globals.cjs"),F=require("../../../auth/store/auth.cjs"),t=require("../../store/orders.cjs"),S=require("../../../products/store/products.cjs"),D=require("../../store/customers.store.cjs");require("./OrderCreateBackoffice.vue2.cjs");const R={class:"h-100 flex flex-column pd-thin"},T={class:"flex-v-center flex-nowrap flex"},A=e.createElementVNode("h2",{class:"mn-r-auto"},"Create Order",-1),I=e.createElementVNode("h3",{class:"mn-b-small"},"Add to order",-1),z={class:"bg-light h-max-100 mn-b-thin o-scroll pd-medium radius-big"},L={key:0,class:"w-100"},M={class:"h3 flex"},U=e.createElementVNode("span",{class:"mn-r-auto t-transp"},"In total",-1),j={__name:"OrderCreateBackoffice",setup(G){const a=h.useRoute(),g=h.useRouter();t.mutations.resetOrder(t.state.current);let v=e.computed(()=>Number(t.state.current.positions.reduce((d,n)=>d+n.price*n.quantity,0)));const s=e.ref("positions"),c=e.ref(!1);function y(){c.value=!0}function m(){c.value=!1}const i=e.ref(!1);function B(){i.value=!0}function p(){i.value=!1}e.ref(null);function w(){t.state.current.creator={type:"User",target:F.state.user._id},t.state.current.owner={type:"Organization",target:a.params._id},t.state.current.customer={type:"Customer",target:t.state.current.customer._id||null},t.actions.create(t.state.current)}function x(){g.push({name:"Backoffice Orders",params:{_id:a.params._id}})}return e.onMounted(()=>{}),(d,n)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(u.default,{class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("header",T,[A,e.createVNode(P.default,{submit:w,callback:x,class:"pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Order ")]),_:1})])]),_:1}),e.createVNode(q.default,{selected:s.value,"onUpdate:selected":n[0]||(n[0]=r=>s.value=r),tabs:[{name:"Positions",value:"positions"},{name:"Customer",value:"customer"},{name:"Delivery",value:"delivery"},{name:"Payment",value:"payment"}],class:"t-medium radius-medium bg-light mn-b-small"},null,8,["selected"]),e.createVNode(k.default,{onClosePopup:m,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r h-max-100 flex flex-column radius-big pd-medium pos-relative"},{default:e.withCtx(()=>[I,e.createElementVNode("div",z,[e.createVNode(b.default,{search:{placeholder:"Search products...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>S.actions.read(r),state:null},options:{organization:e.unref(a).params._id},class:""},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,N)=>(e.openBlock(),e.createBlock(_.default,{key:o._id,editable:!1,product:o,onClick:()=>{let f={...o};f.quantity=1,l.actions.add(t.state.current.positions,f),m()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),s.value==="positions"?(e.openBlock(),e.createBlock(u.default,{key:0,title:"Positions",actions:[{label:"+",function:()=>y()}],class:"mn-b-small"},{default:e.withCtx(()=>[t.state.current.positions.length===0?(e.openBlock(),e.createElementBlock("span",L," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(r,o)=>(e.openBlock(),e.createBlock(_.default,{key:r._id,editable:!0,product:r,onIncrease:()=>{l.actions.increment(t.state.current.positions,r)},onDecrease:()=>{l.actions.decrement(t.state.current.positions,r)},onRemove:()=>{l.actions.delete(t.state.current.positions,r)},class:"mn-b-thin pd-thin radius-medium bg-white"},null,8,["product","onIncrease","onDecrease","onRemove"]))),128))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="customer"?(e.openBlock(),e.createBlock(u.default,{key:1,title:"Customer",class:"mn-b-semi",actions:[{label:"+",function:()=>B()}]},{default:e.withCtx(()=>[t.state.current.customer._id?(e.openBlock(),e.createBlock(C.default,{key:0,user:t.state.current.customer,photo:t.state.current.customer.profile.photo,name:t.state.current.customer.profile.name||t.state.current.customer.phone||t.state.current.customer.email,onClick:n[1]||(n[1]=()=>{t.mutations.resetCustomer(t.state.current.customer)}),class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name"])):(e.openBlock(),e.createBlock(b.default,{key:1,search:{placeholder:"Search customer...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>e.unref(D.default).read(r),state:null},options:{owner:e.unref(a).params._id},class:"bg-light h-max-20r o-scroll"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,N)=>(e.openBlock(),e.createBlock(C.default,{key:o._id,user:o,photo:o.profile.photo,name:o.profile.name||o.phone||o.email,onClick:()=>{t.state.current.customer=o},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"]))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="delivery"?(e.openBlock(),e.createBlock(O.default,{key:2,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),s.value==="payment"?(e.openBlock(),e.createBlock(E.default,{key:3,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),e.createVNode(k.default,{title:"Add customer",onClosePopup:p,isPopupOpen:i.value,class:e.normalizeClass("bg-white w-min-30r w-max-30r radius-big pd-medium")},{default:e.withCtx(()=>[e.createVNode(V.default,{onCallbackCustomer:p})]),_:1},8,["isPopupOpen"]),e.createVNode(u.default,{class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",M,[U,e.createElementVNode("span",null,e.toDisplayString(e.unref(v))+" "+e.toDisplayString(d.returnCurrency()),1)])]),_:1})]))}};exports.default=j;
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js
CHANGED
@@ -3,11 +3,11 @@ import { useRoute as L, useRouter as M } from "vue-router";
|
|
3
3
|
import "../../../../components/Field/Field.vue.js";
|
4
4
|
import j from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import G from "../../../../components/Tab/Tab.vue2.js";
|
6
|
-
import O from "../../../../components/Popup/Popup.
|
6
|
+
import O from "../../../../components/Popup/Popup.vue.js";
|
7
7
|
import _ from "../../../../components/Block/Block.vue.js";
|
8
8
|
import $ from "../../../../components/Feed/Feed.vue.js";
|
9
9
|
import N from "../blocks/CardOrderItem.vue.js";
|
10
|
-
import "../../../../components/Select/Select.
|
10
|
+
import "../../../../components/Select/Select.vue2.js";
|
11
11
|
import "../../../../components/SelectMulti/SelectMulti.vue2.js";
|
12
12
|
import B from "../../../users/components/blocks/CardUser.vue.js";
|
13
13
|
import H from "../sections/FormAddCustomer.vue.js";
|
@@ -1 +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-
|
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-big flex-v-center flex-nowrap flex"},s=e.createElementVNode("div",{class:"mn-r-auto"},[e.createElementVNode("h3",{class:"t-semi mn-b-small"},"Already registered?"),e.createElementVNode("span",{class:"p-medium t-transp"},"Sign in to your account to checkout faster.")],-1),l={__name:"AskToLogin",setup(a){let n=e.ref(!0);return(o,t)=>e.unref(n)===!0?(e.openBlock(),e.createElementBlock("div",r,[s,e.createElementVNode("button",{onClick:t[0]||(t[0]=c=>o.toggleSignInPopup()),class:"button h-4r bg-main"}," Sign In ")])):e.createCommentVNode("",!0)}};exports.default=l;
|
@@ -1,22 +1,21 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as s, unref as r, openBlock as a, createElementBlock as i, createElementVNode as e, createCommentVNode as l } from "vue";
|
2
2
|
const c = {
|
3
3
|
key: 0,
|
4
|
-
class: "bg-black t-white pd-big radius-
|
5
|
-
},
|
6
|
-
/* @__PURE__ */ e("
|
7
|
-
/* @__PURE__ */ e("
|
8
|
-
/* @__PURE__ */ e("span", null, "Log in to your account to checkout faster.")
|
4
|
+
class: "bg-black t-white pd-big radius-big flex-v-center flex-nowrap flex"
|
5
|
+
}, u = /* @__PURE__ */ e("div", { class: "mn-r-auto" }, [
|
6
|
+
/* @__PURE__ */ e("h3", { class: "t-semi mn-b-small" }, "Already registered?"),
|
7
|
+
/* @__PURE__ */ e("span", { class: "p-medium t-transp" }, "Sign in to your account to checkout faster.")
|
9
8
|
], -1), g = {
|
10
9
|
__name: "AskToLogin",
|
11
|
-
setup(
|
12
|
-
let
|
13
|
-
return (
|
14
|
-
|
10
|
+
setup(m) {
|
11
|
+
let n = s(!0);
|
12
|
+
return (o, t) => r(n) === !0 ? (a(), i("div", c, [
|
13
|
+
u,
|
15
14
|
e("button", {
|
16
|
-
onClick: t[0] || (t[0] = (
|
17
|
-
class: "button"
|
18
|
-
}, "
|
19
|
-
])) :
|
15
|
+
onClick: t[0] || (t[0] = (p) => o.toggleSignInPopup()),
|
16
|
+
class: "button h-4r bg-main"
|
17
|
+
}, " Sign In ")
|
18
|
+
])) : l("", !0);
|
20
19
|
}
|
21
20
|
};
|
22
21
|
export {
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs
CHANGED
@@ -1 +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.
|
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.vue2.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"),B=require("../../../globals/store/globals.cjs"),y=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-light 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 y.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,["store","options"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(q.default,{customer:e.unref(r),class:"mn-b-thin bg-light"},null,8,["customer"]),e.createVNode(v.default,{submit:f,callback:p,onError:e.unref(B.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
CHANGED
@@ -3,7 +3,7 @@ import { useRoute as U } from "vue-router";
|
|
3
3
|
import N from "../../../../components/Block/Block.vue.js";
|
4
4
|
import "../../../../components/Field/Field.vue.js";
|
5
5
|
import O from "../../../../components/FieldPhone/click-outside.js";
|
6
|
-
import "../../../../components/Select/Select.
|
6
|
+
import "../../../../components/Select/Select.vue2.js";
|
7
7
|
import V from "../../../../components/Feed/Feed.vue.js";
|
8
8
|
import B from "../../../../components/Button/Button.vue2.js";
|
9
9
|
import F from "../../../globals/components/blocks/BlockSearch.vue.js";
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs
CHANGED
@@ -1 +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.
|
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.vue.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
CHANGED
@@ -2,7 +2,7 @@ import { ref as r, openBlock as m, createBlock as i, withCtx as u, createVNode a
|
|
2
2
|
import p from "../../../../components/Block/Block.vue.js";
|
3
3
|
import o from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import c from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
-
import h from "../../../../components/Select/Select.
|
5
|
+
import h from "../../../../components/Select/Select.vue.js";
|
6
6
|
const g = { class: "gap-thin flex-justify-between flex-nowrap flex" }, V = {
|
7
7
|
__name: "FormCustomerDetails",
|
8
8
|
props: {
|
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
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("../../../globals/store/globals.cjs"),s=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Address/Address.vue.cjs"),u=require("../../../../components/LocationMarker/LocationMarker.vue.cjs"),i=require("../../../../components/Radio/Radio.vue.cjs"),m=require("../../../../components/Field/Field.vue2.cjs"),y=t.createElementVNode("h4",{class:"font-second mn-b-thin"},"Select deliverty type",-1),c={class:"mn-b-small flex-nowrap flex"},v=t.createElementVNode("h4",{class:"font-second mn-b-thin"},"Address",-1),b={__name:"FormDelivery",props:{order:Object},setup(e){const o=e;return t.onMounted(()=>{l.state.position&&(o.order.delivery.address=l.state.position.address),l.state.position&&(o.order.delivery.location=l.state.position.location)}),(a,d)=>(t.openBlock(),t.createBlock(s.default,{title:"Delivery",class:"mn-b-thin",tooltip:"Delivery by mail takes 3-5 days."},{default:t.withCtx(()=>[y,t.createElementVNode("div",c,[t.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"]),t.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"]),t.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[2]||(d[2]=r=>e.order.delivery.type=r),label:"Post",value:"mail",class:"bg-white pd-medium radius-small w-100"},null,8,["radio"])]),v,t.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 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"]),t.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"]),t.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}))}};exports.default=b;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { onMounted as n, openBlock as m, createBlock as u, withCtx as y, createElementVNode as
|
1
|
+
import { onMounted as n, openBlock as m, createBlock as u, withCtx as y, createElementVNode as t, 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
|
3
|
+
import v from "../../../../components/Block/Block.vue.js";
|
4
|
+
import f from "../../../../components/Address/Address.vue.js";
|
5
|
+
import b from "../../../../components/LocationMarker/LocationMarker.vue.js";
|
6
|
+
import l from "../../../../components/Radio/Radio.vue.js";
|
7
|
+
import c from "../../../../components/Field/Field.vue2.js";
|
8
|
+
const p = /* @__PURE__ */ t("h4", { class: "font-second mn-b-thin" }, "Select deliverty type", -1), w = { class: "mn-b-small flex-nowrap flex" }, g = /* @__PURE__ */ t("h4", { class: "font-second mn-b-thin" }, "Address", -1), O = {
|
9
9
|
__name: "FormDelivery",
|
10
10
|
props: {
|
11
11
|
order: Object
|
@@ -14,46 +14,44 @@ const c = /* @__PURE__ */ l("h4", { class: "mn-b-thin" }, "Spot", -1), w = /* @_
|
|
14
14
|
const a = e;
|
15
15
|
return n(() => {
|
16
16
|
o.position && (a.order.delivery.address = o.position.address), o.position && (a.order.delivery.location = o.position.location);
|
17
|
-
}), (s, d) => (m(), u(
|
17
|
+
}), (s, d) => (m(), u(v, {
|
18
18
|
title: "Delivery",
|
19
19
|
class: "mn-b-thin",
|
20
20
|
tooltip: "Delivery by mail takes 3-5 days."
|
21
21
|
}, {
|
22
22
|
default: y(() => [
|
23
|
-
|
24
|
-
w,
|
25
|
-
|
26
|
-
l("div", h, [
|
27
|
-
i(t, {
|
23
|
+
p,
|
24
|
+
t("div", w, [
|
25
|
+
i(l, {
|
28
26
|
radio: e.order.delivery.type,
|
29
27
|
"onUpdate:radio": d[0] || (d[0] = (r) => e.order.delivery.type = r),
|
30
28
|
label: "Pickup",
|
31
29
|
value: "pickup",
|
32
30
|
class: "bg-white pd-medium radius-small w-100 mn-r-small"
|
33
31
|
}, null, 8, ["radio"]),
|
34
|
-
i(
|
32
|
+
i(l, {
|
35
33
|
radio: e.order.delivery.type,
|
36
34
|
"onUpdate:radio": d[1] || (d[1] = (r) => e.order.delivery.type = r),
|
37
35
|
label: "Courier",
|
38
36
|
value: "courier",
|
39
37
|
class: "bg-white pd-medium radius-small w-100 mn-r-small"
|
40
38
|
}, null, 8, ["radio"]),
|
41
|
-
i(
|
39
|
+
i(l, {
|
42
40
|
radio: e.order.delivery.type,
|
43
41
|
"onUpdate:radio": d[2] || (d[2] = (r) => e.order.delivery.type = r),
|
44
42
|
label: "Post",
|
45
43
|
value: "mail",
|
46
|
-
class: "bg-white pd-medium radius-small w-100
|
44
|
+
class: "bg-white pd-medium radius-small w-100"
|
47
45
|
}, null, 8, ["radio"])
|
48
46
|
]),
|
49
|
-
|
50
|
-
i(
|
47
|
+
g,
|
48
|
+
i(f, {
|
51
49
|
label: "Location",
|
52
50
|
apiKey: s.GOOGLE_MAPS_API_KEY,
|
53
51
|
address: e.order.delivery.address,
|
54
52
|
location: e.order.delivery.location,
|
55
53
|
placeholder: "Enter your address",
|
56
|
-
class: "bg-white radius-tl-medium radius-tr-medium t-black
|
54
|
+
class: "bg-white radius-tl-medium radius-tr-medium t-black pd-medium",
|
57
55
|
"onUpdate:location": d[3] || (d[3] = (r) => {
|
58
56
|
e.order.delivery.location = r;
|
59
57
|
}),
|
@@ -61,7 +59,7 @@ const c = /* @__PURE__ */ l("h4", { class: "mn-b-thin" }, "Spot", -1), w = /* @_
|
|
61
59
|
e.order.delivery.address = r;
|
62
60
|
})
|
63
61
|
}, null, 8, ["apiKey", "address", "location"]),
|
64
|
-
i(
|
62
|
+
i(b, {
|
65
63
|
apiKey: s.GOOGLE_MAPS_API_KEY,
|
66
64
|
address: e.order.delivery.address,
|
67
65
|
location: e.order.delivery.location,
|
@@ -73,7 +71,7 @@ const c = /* @__PURE__ */ l("h4", { class: "mn-b-thin" }, "Spot", -1), w = /* @_
|
|
73
71
|
e.order.delivery.address = r;
|
74
72
|
})
|
75
73
|
}, null, 8, ["apiKey", "address", "location"]),
|
76
|
-
i(
|
74
|
+
i(c, {
|
77
75
|
field: e.order.comment,
|
78
76
|
"onUpdate:field": d[7] || (d[7] = (r) => e.order.comment = r),
|
79
77
|
placeholder: "Comments regarding the address (apartment unit, floor level, building section)",
|
@@ -86,5 +84,5 @@ const c = /* @__PURE__ */ l("h4", { class: "mn-b-thin" }, "Spot", -1), w = /* @_
|
|
86
84
|
}
|
87
85
|
};
|
88
86
|
export {
|
89
|
-
|
87
|
+
O as default
|
90
88
|
};
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs
CHANGED
@@ -1 +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/Select/Select.
|
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/Select/Select.vue.cjs"),o={class:"mn-b-small flex-nowrap flex"},s={__name:"FormPayment",props:{order:Object},setup(t){return(c,l)=>(e.openBlock(),e.createBlock(r.default,{title:"Payment"},{default:e.withCtx(()=>[e.createElementVNode("div",o,[e.createVNode(n.default,{select:t.order.payment.type,"onUpdate:select":l[0]||(l[0]=a=>t.order.payment.type=a),property:"value",options:[{name:"Cash On Delivery",value:"cash"},{name:"Bank Transfer",value:"bank"},{name:"Crypto",value:"crypto"}],placeholder:"Select type of payment",size:"small",class:"bg-white pd-medium radius-small w-100"},null,8,["select"])])]),_:1}))}};exports.default=s;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { openBlock as r, createBlock as l, withCtx as o, createElementVNode as n, createVNode as m } from "vue";
|
2
2
|
import s from "../../../../components/Block/Block.vue.js";
|
3
|
-
import p from "../../../../components/Select/Select.
|
3
|
+
import p from "../../../../components/Select/Select.vue.js";
|
4
4
|
const c = { class: "mn-b-small flex-nowrap flex" }, f = {
|
5
5
|
__name: "FormPayment",
|
6
6
|
props: {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),r={path:"orders",component:e.default,meta:{title:{en:"
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/components/layouts/Empty.vue.cjs"),r={path:"orders",component:e.default,name:"Orders",meta:{title:{en:"Orders",ru:"Заказы"}},children:[{path:"form",name:"Form Order",meta:{title:{en:"Order",ru:"Заказ"}},component:()=>Promise.resolve().then(()=>require("../components/pages/OrderCreate.vue.cjs"))},{path:":order",name:"Order Status",meta:{title:{en:"Order",ru:"Заказ"}},component:()=>Promise.resolve().then(()=>require("../components/pages/OrderBackoffice.vue.cjs"))},{path:":order/edit",name:"Order Edit",meta:{title:{en:"Order",ru:"Заказ"}},component:()=>Promise.resolve().then(()=>require("../components/pages/OrderBackoffice.vue.cjs"))}]};exports.default=r;
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import
|
1
|
+
import r from "../../globals/components/layouts/Empty.vue.js";
|
2
2
|
const t = {
|
3
3
|
path: "orders",
|
4
|
-
component:
|
4
|
+
component: r,
|
5
|
+
name: "Orders",
|
5
6
|
meta: {
|
6
7
|
title: {
|
7
|
-
en: "
|
8
|
-
ru: "
|
8
|
+
en: "Orders",
|
9
|
+
ru: "Заказы"
|
9
10
|
}
|
10
11
|
},
|
11
12
|
children: [
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),s=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),c=require("../../../../components/Chips/Chips.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),s=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),c=require("../../../../components/Chips/Chips.vue2.cjs"),d=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),u=require("../../../icons/entities/IconPrice.vue.cjs"),m=require("../../../icons/entities/IconShopcart.vue.cjs"),h=require("../../../icons/entities/IconTime.vue.cjs"),g=require("../elements/ButtonToggleMembership.vue.cjs"),f={class:"flex pos-relative"},k=["src"],w={class:"pos-relative w-100 flex-h-center flex flex-column flex-child-1 flex-child mn-l-thin w-100"},b={class:"h4 t-truncate"},p={key:1,class:"flex-center gap-thin pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"},B={class:"mn-t-thin mn-b-thin"},z={key:0,class:"mn-b-small mn-t-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},y={class:"mn-r-thin"},V={key:0,class:"t-transp mn-r-thin"},v={class:"mn-r-thin"},E={class:"mn-r-thin"},N={class:"mn-r-thin"},x={key:1,class:"w-100 o-scroll radius-medium"},S={class:"w-max flex-nowrap flex gap-thin"},C=e.createElementVNode("button",{class:"pd-thin w-15r radius-medium bg-main button"}," View menu ",-1),M={__name:"CardOrganization",props:{user:String,organization:Object,showProducts:{type:Boolean,default:!1},showFollowers:{type:Boolean,default:!0},showRating:{type:Boolean,default:!1},showFeatured:{type:Boolean,default:!0},showTags:{type:Boolean,default:!0}},emits:["updateMembership"],setup(t,{emit:q}){return l.useRouter(),(o,i)=>{var a,r;return e.openBlock(),e.createElementBlock("div",{class:"o-hidden pos-relative cursor-pointer bg-light pd-small",onClick:i[1]||(i[1]=n=>o.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",f,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,k)):(e.openBlock(),e.createBlock(d.default,{key:1,class:"h-4r w-4r"})),e.createElementVNode("div",w,[e.createElementVNode("p",b,e.toDisplayString(t.organization.profile.name),1),t.showTags&&((a=t.organization.profile.tags)==null?void 0:a.length)>0?(e.openBlock(),e.createBlock(c.default,{key:0,chips:t.organization.profile.tags.slice(0,3),class:"pos-relative p-small"},null,8,["chips"])):e.createCommentVNode("",!0),t.showFollowers?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("p",B,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),(r=t.user)!=null&&r._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"+",remove:"-"},onUpdateMembership:i[0]||(i[0]=n=>o.handleMembershipUpdate(n,"isSubscriber","numberOfSubscribers")),class:"i-semi"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),t.showProducts?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(h.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",y,e.toDisplayString(t.organization.distance?Math.ceil((10+3*t.organization.distance)/5)*5+"-"+Math.ceil((20+3*t.organization.distance)/5)*5+" MIN":"Unavailable"),1),t.organization.distance?(e.openBlock(),e.createElementBlock("span",V,"|")):e.createCommentVNode("",!0),e.createElementVNode("span",v,e.toDisplayString(t.organization.distance?t.organization.distance.toFixed(1)+" KM":""),1),e.createVNode(u.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",E,e.toDisplayString(o.returnCurrency())+"500 ",1),e.createVNode(m.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",N,e.toDisplayString(t.organization.products.length)+" products",1)])):e.createCommentVNode("",!0),t.showProducts&&t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products.slice(0,10),n=>(e.openBlock(),e.createBlock(s.default,{onClick:e.withModifiers(O=>o.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:n._id}}),["stop"]),key:n._id,editable:!1,product:n,class:"pd-thin w-15r radius-medium bg-white"},null,8,["onClick","product"]))),128)),C])])):e.createCommentVNode("",!0)])}}};exports.default=M;
|