@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,16 +1,15 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="h-100 w-100 pos-relative">
|
3
|
-
<div class="pos-absolute
|
3
|
+
<div class="w-100 pos-absolute z-index-2 pos-b-10 ">
|
4
4
|
<Button
|
5
5
|
:submit="searchInCurrentLocation"
|
6
|
-
class="
|
6
|
+
class="mn-l-auto mn-r-auto bg-black t-white w-min-20 button"
|
7
7
|
>
|
8
8
|
Search in This Location
|
9
9
|
</Button>
|
10
10
|
</div>
|
11
|
-
|
12
11
|
|
13
|
-
<div id="map" class="h-100 w-100 pos-relative
|
12
|
+
<div id="map" class="h-100 w-100 pos-relative o-hidden">
|
14
13
|
</div>
|
15
14
|
</div>
|
16
15
|
</template>
|
@@ -19,6 +18,8 @@
|
|
19
18
|
import { onMounted, watch, ref } from 'vue';
|
20
19
|
import { useRoute, useRouter } from 'vue-router'
|
21
20
|
|
21
|
+
import { Loader as GMLoader } from "@googlemaps/js-api-loader";
|
22
|
+
|
22
23
|
import Button from '@pf/src/components/Button/Button.vue'
|
23
24
|
|
24
25
|
import { state, actions } from '@pf/src/modules/organizations/store/organizations'
|
@@ -26,19 +27,32 @@ import { state, actions } from '@pf/src/modules/organizations/store/organization
|
|
26
27
|
import * as globals from '@pf/src/modules/globals/store/globals';
|
27
28
|
import * as marketplace from '@pf/src/modules/marketplace/store/marketplace';
|
28
29
|
|
29
|
-
let map = ref(null);
|
30
|
-
let markers = ref([]);
|
31
|
-
|
32
30
|
const router = useRouter();
|
33
31
|
const route = useRoute();
|
34
32
|
|
33
|
+
const props = defineProps({
|
34
|
+
localPosition: Object,
|
35
|
+
location: {
|
36
|
+
type: Object,
|
37
|
+
default: () => ({ lat: 15.8700, lng: 100.9925 })
|
38
|
+
},
|
39
|
+
address: {
|
40
|
+
type: String,
|
41
|
+
default: null
|
42
|
+
},
|
43
|
+
apiKey: String,
|
44
|
+
locale: {
|
45
|
+
type: String,
|
46
|
+
default: 'en'
|
47
|
+
}
|
48
|
+
})
|
49
|
+
|
50
|
+
let map = ref(null);
|
51
|
+
let markers = ref([]);
|
52
|
+
|
35
53
|
let skip = ref(0);
|
36
54
|
let limit = ref(50);
|
37
55
|
|
38
|
-
const props = defineProps({
|
39
|
-
localPosition: Object
|
40
|
-
});
|
41
|
-
|
42
56
|
let currentMapCenter = ref({lat: 0, lng: 0});
|
43
57
|
|
44
58
|
async function getCountry() {
|
@@ -138,356 +152,364 @@ onMounted(async () => {
|
|
138
152
|
}
|
139
153
|
}
|
140
154
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
"elementType": "geometry",
|
147
|
-
"stylers": [
|
148
|
-
{
|
149
|
-
"color": "#212121"
|
150
|
-
}
|
151
|
-
]
|
152
|
-
},
|
153
|
-
{
|
154
|
-
"elementType": "labels.icon",
|
155
|
-
"stylers": [
|
156
|
-
{
|
157
|
-
"visibility": "off"
|
158
|
-
}
|
159
|
-
]
|
160
|
-
},
|
161
|
-
{
|
162
|
-
"elementType": "labels.text.fill",
|
163
|
-
"stylers": [
|
164
|
-
{
|
165
|
-
"color": "#757575"
|
166
|
-
}
|
167
|
-
]
|
168
|
-
},
|
169
|
-
{
|
170
|
-
"elementType": "labels.text.stroke",
|
171
|
-
"stylers": [
|
172
|
-
{
|
173
|
-
"color": "#212121"
|
174
|
-
}
|
175
|
-
]
|
176
|
-
},
|
177
|
-
{
|
178
|
-
"featureType": "administrative",
|
179
|
-
"elementType": "geometry",
|
180
|
-
"stylers": [
|
181
|
-
{
|
182
|
-
"color": "#757575"
|
183
|
-
},
|
184
|
-
{
|
185
|
-
"visibility": "off"
|
186
|
-
}
|
187
|
-
]
|
188
|
-
},
|
189
|
-
{
|
190
|
-
"featureType": "administrative.country",
|
191
|
-
"elementType": "labels.text.fill",
|
192
|
-
"stylers": [
|
193
|
-
{
|
194
|
-
"color": "#9e9e9e"
|
195
|
-
}
|
196
|
-
]
|
197
|
-
},
|
198
|
-
{
|
199
|
-
"featureType": "administrative.land_parcel",
|
200
|
-
"stylers": [
|
201
|
-
{
|
202
|
-
"visibility": "off"
|
203
|
-
}
|
204
|
-
]
|
205
|
-
},
|
206
|
-
{
|
207
|
-
"featureType": "administrative.locality",
|
208
|
-
"elementType": "labels.text.fill",
|
209
|
-
"stylers": [
|
210
|
-
{
|
211
|
-
"color": "#bdbdbd"
|
212
|
-
}
|
213
|
-
]
|
214
|
-
},
|
215
|
-
{
|
216
|
-
"featureType": "administrative.neighborhood",
|
217
|
-
"stylers": [
|
218
|
-
{
|
219
|
-
"visibility": "off"
|
220
|
-
}
|
221
|
-
]
|
222
|
-
},
|
223
|
-
{
|
224
|
-
"featureType": "poi",
|
225
|
-
"stylers": [
|
226
|
-
{
|
227
|
-
"visibility": "off"
|
228
|
-
}
|
229
|
-
]
|
230
|
-
},
|
231
|
-
{
|
232
|
-
"featureType": "poi",
|
233
|
-
"elementType": "labels.text.fill",
|
234
|
-
"stylers": [
|
235
|
-
{
|
236
|
-
"color": "#757575"
|
237
|
-
}
|
238
|
-
]
|
239
|
-
},
|
240
|
-
{
|
241
|
-
"featureType": "poi.park",
|
242
|
-
"elementType": "geometry",
|
243
|
-
"stylers": [
|
244
|
-
{
|
245
|
-
"color": "#181818"
|
246
|
-
}
|
247
|
-
]
|
248
|
-
},
|
249
|
-
{
|
250
|
-
"featureType": "poi.park",
|
251
|
-
"elementType": "labels.text.fill",
|
252
|
-
"stylers": [
|
253
|
-
{
|
254
|
-
"color": "#616161"
|
255
|
-
}
|
256
|
-
]
|
257
|
-
},
|
258
|
-
{
|
259
|
-
"featureType": "poi.park",
|
260
|
-
"elementType": "labels.text.stroke",
|
261
|
-
"stylers": [
|
262
|
-
{
|
263
|
-
"color": "#1b1b1b"
|
264
|
-
}
|
265
|
-
]
|
266
|
-
},
|
267
|
-
{
|
268
|
-
"featureType": "road",
|
269
|
-
"elementType": "geometry.fill",
|
270
|
-
"stylers": [
|
271
|
-
{
|
272
|
-
"color": "#2c2c2c"
|
273
|
-
}
|
274
|
-
]
|
275
|
-
},
|
276
|
-
{
|
277
|
-
"featureType": "road",
|
278
|
-
"elementType": "labels",
|
279
|
-
"stylers": [
|
280
|
-
{
|
281
|
-
"visibility": "off"
|
282
|
-
}
|
283
|
-
]
|
284
|
-
},
|
285
|
-
{
|
286
|
-
"featureType": "road",
|
287
|
-
"elementType": "labels.icon",
|
288
|
-
"stylers": [
|
289
|
-
{
|
290
|
-
"visibility": "off"
|
291
|
-
}
|
292
|
-
]
|
293
|
-
},
|
294
|
-
{
|
295
|
-
"featureType": "road",
|
296
|
-
"elementType": "labels.text.fill",
|
297
|
-
"stylers": [
|
298
|
-
{
|
299
|
-
"color": "#8a8a8a"
|
300
|
-
}
|
301
|
-
]
|
302
|
-
},
|
303
|
-
{
|
304
|
-
"featureType": "road.arterial",
|
305
|
-
"elementType": "geometry",
|
306
|
-
"stylers": [
|
307
|
-
{
|
308
|
-
"color": "#373737"
|
309
|
-
}
|
310
|
-
]
|
311
|
-
},
|
312
|
-
{
|
313
|
-
"featureType": "road.arterial",
|
314
|
-
"elementType": "labels",
|
315
|
-
"stylers": [
|
316
|
-
{
|
317
|
-
"visibility": "off"
|
318
|
-
}
|
319
|
-
]
|
320
|
-
},
|
321
|
-
{
|
322
|
-
"featureType": "road.highway",
|
323
|
-
"elementType": "geometry",
|
324
|
-
"stylers": [
|
325
|
-
{
|
326
|
-
"color": "#3c3c3c"
|
327
|
-
}
|
328
|
-
]
|
329
|
-
},
|
330
|
-
{
|
331
|
-
"featureType": "road.highway",
|
332
|
-
"elementType": "labels",
|
333
|
-
"stylers": [
|
334
|
-
{
|
335
|
-
"visibility": "off"
|
336
|
-
}
|
337
|
-
]
|
338
|
-
},
|
339
|
-
{
|
340
|
-
"featureType": "road.highway.controlled_access",
|
341
|
-
"elementType": "geometry",
|
342
|
-
"stylers": [
|
343
|
-
{
|
344
|
-
"color": "#4e4e4e"
|
345
|
-
}
|
346
|
-
]
|
347
|
-
},
|
348
|
-
{
|
349
|
-
"featureType": "road.local",
|
350
|
-
"stylers": [
|
351
|
-
{
|
352
|
-
"visibility": "off"
|
353
|
-
}
|
354
|
-
]
|
355
|
-
},
|
356
|
-
{
|
357
|
-
"featureType": "road.local",
|
358
|
-
"elementType": "labels.text.fill",
|
359
|
-
"stylers": [
|
360
|
-
{
|
361
|
-
"color": "#616161"
|
362
|
-
}
|
363
|
-
]
|
364
|
-
},
|
365
|
-
{
|
366
|
-
"featureType": "transit",
|
367
|
-
"stylers": [
|
368
|
-
{
|
369
|
-
"visibility": "off"
|
370
|
-
}
|
371
|
-
]
|
372
|
-
},
|
373
|
-
{
|
374
|
-
"featureType": "transit",
|
375
|
-
"elementType": "labels.text.fill",
|
376
|
-
"stylers": [
|
377
|
-
{
|
378
|
-
"color": "#757575"
|
379
|
-
}
|
380
|
-
]
|
381
|
-
},
|
382
|
-
{
|
383
|
-
"featureType": "water",
|
384
|
-
"elementType": "geometry",
|
385
|
-
"stylers": [
|
386
|
-
{
|
387
|
-
"color": "#000000"
|
388
|
-
}
|
389
|
-
]
|
390
|
-
},
|
391
|
-
{
|
392
|
-
"featureType": "water",
|
393
|
-
"elementType": "labels.text",
|
394
|
-
"stylers": [
|
395
|
-
{
|
396
|
-
"visibility": "off"
|
397
|
-
}
|
398
|
-
]
|
399
|
-
},
|
400
|
-
{
|
401
|
-
"featureType": "water",
|
402
|
-
"elementType": "labels.text.fill",
|
403
|
-
"stylers": [
|
404
|
-
{
|
405
|
-
"color": "#3d3d3d"
|
406
|
-
}
|
407
|
-
]
|
408
|
-
}
|
409
|
-
],
|
410
|
-
center: { lat, lng },
|
411
|
-
zoom: parseInt(route.query.zoom || zoomLevel || '12')
|
155
|
+
const loader = new GMLoader({
|
156
|
+
apiKey: props.apiKey,
|
157
|
+
version: "weekly",
|
158
|
+
libraries: ["places"],
|
159
|
+
language: 'en'
|
412
160
|
});
|
413
161
|
|
414
162
|
skip.value += limit.value;
|
415
163
|
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
console.log(params)
|
438
|
-
|
439
|
-
const data = await actions.read(params);
|
440
|
-
|
441
|
-
state.all = [...state.all, ...data];
|
164
|
+
const params = {
|
165
|
+
// country: route.params.country,
|
166
|
+
// state: route.params.state,
|
167
|
+
// city: route.params.city,
|
168
|
+
// categories: route.query.categories,
|
169
|
+
// prices: route.query.prices,
|
170
|
+
// delivery: route.query.delivery,
|
171
|
+
country: route.params.country,
|
172
|
+
state: route.params.state,
|
173
|
+
city: route.params.city,
|
174
|
+
categories: route.query.categories,
|
175
|
+
prices: route.query.prices,
|
176
|
+
delivery: route.query.delivery,
|
177
|
+
sortParam: route.query.sortParam || marketplace.state.sort.param,
|
178
|
+
sortOrder: route.query.sortOrder || marketplace.state.sort.order,
|
179
|
+
skip: skip.value,
|
180
|
+
limit: 100,
|
181
|
+
location: {coordinates: [lng,lat] },
|
182
|
+
locationRadius: 500,
|
183
|
+
};
|
442
184
|
|
443
|
-
|
444
|
-
|
445
|
-
|
185
|
+
console.log(params)
|
186
|
+
|
187
|
+
const data = await actions.read(params);
|
188
|
+
|
189
|
+
state.all = [...state.all, ...data];
|
190
|
+
|
191
|
+
loader.load().then(() => {
|
192
|
+
|
193
|
+
map.value = new google.maps.Map(document.getElementById('map'), {
|
194
|
+
mapTypeControl: false,
|
195
|
+
fullscreenControl: false,
|
196
|
+
styles: [
|
197
|
+
{
|
198
|
+
"elementType": "geometry",
|
199
|
+
"stylers": [
|
200
|
+
{
|
201
|
+
"color": "#212121"
|
202
|
+
}
|
203
|
+
]
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"elementType": "labels.icon",
|
207
|
+
"stylers": [
|
208
|
+
{
|
209
|
+
"visibility": "off"
|
210
|
+
}
|
211
|
+
]
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"elementType": "labels.text.fill",
|
215
|
+
"stylers": [
|
216
|
+
{
|
217
|
+
"color": "#757575"
|
218
|
+
}
|
219
|
+
]
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"elementType": "labels.text.stroke",
|
223
|
+
"stylers": [
|
224
|
+
{
|
225
|
+
"color": "#212121"
|
226
|
+
}
|
227
|
+
]
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"featureType": "administrative",
|
231
|
+
"elementType": "geometry",
|
232
|
+
"stylers": [
|
233
|
+
{
|
234
|
+
"color": "#757575"
|
235
|
+
},
|
236
|
+
{
|
237
|
+
"visibility": "off"
|
238
|
+
}
|
239
|
+
]
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"featureType": "administrative.country",
|
243
|
+
"elementType": "labels.text.fill",
|
244
|
+
"stylers": [
|
245
|
+
{
|
246
|
+
"color": "#9e9e9e"
|
247
|
+
}
|
248
|
+
]
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"featureType": "administrative.land_parcel",
|
252
|
+
"stylers": [
|
253
|
+
{
|
254
|
+
"visibility": "off"
|
255
|
+
}
|
256
|
+
]
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"featureType": "administrative.locality",
|
260
|
+
"elementType": "labels.text.fill",
|
261
|
+
"stylers": [
|
262
|
+
{
|
263
|
+
"color": "#bdbdbd"
|
264
|
+
}
|
265
|
+
]
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"featureType": "administrative.neighborhood",
|
269
|
+
"stylers": [
|
270
|
+
// {
|
271
|
+
// "visibility": "off"
|
272
|
+
// }
|
273
|
+
]
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"featureType": "poi",
|
277
|
+
"stylers": [
|
278
|
+
{
|
279
|
+
"visibility": "off"
|
280
|
+
}
|
281
|
+
]
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"featureType": "poi",
|
285
|
+
"elementType": "labels.text.fill",
|
286
|
+
"stylers": [
|
287
|
+
{
|
288
|
+
"color": "#757575"
|
289
|
+
}
|
290
|
+
]
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"featureType": "poi.park",
|
294
|
+
"elementType": "geometry",
|
295
|
+
"stylers": [
|
296
|
+
{
|
297
|
+
"color": "#181818"
|
298
|
+
}
|
299
|
+
]
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"featureType": "poi.park",
|
303
|
+
"elementType": "labels.text.fill",
|
304
|
+
"stylers": [
|
305
|
+
{
|
306
|
+
"color": "#616161"
|
307
|
+
}
|
308
|
+
]
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"featureType": "poi.park",
|
312
|
+
"elementType": "labels.text.stroke",
|
313
|
+
"stylers": [
|
314
|
+
{
|
315
|
+
"color": "#1b1b1b"
|
316
|
+
}
|
317
|
+
]
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"featureType": "road",
|
321
|
+
"elementType": "geometry.fill",
|
322
|
+
"stylers": [
|
323
|
+
{
|
324
|
+
"color": "#2c2c2c"
|
325
|
+
}
|
326
|
+
]
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"featureType": "road",
|
330
|
+
"elementType": "labels",
|
331
|
+
"stylers": [
|
332
|
+
{
|
333
|
+
"visibility": "off"
|
334
|
+
}
|
335
|
+
]
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"featureType": "road",
|
339
|
+
"elementType": "labels.icon",
|
340
|
+
"stylers": [
|
341
|
+
{
|
342
|
+
"visibility": "off"
|
343
|
+
}
|
344
|
+
]
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"featureType": "road",
|
348
|
+
"elementType": "labels.text.fill",
|
349
|
+
"stylers": [
|
350
|
+
{
|
351
|
+
"color": "#8a8a8a"
|
352
|
+
}
|
353
|
+
]
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"featureType": "road.arterial",
|
357
|
+
"elementType": "geometry",
|
358
|
+
"stylers": [
|
359
|
+
{
|
360
|
+
"color": "#373737"
|
361
|
+
}
|
362
|
+
]
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"featureType": "road.arterial",
|
366
|
+
"elementType": "labels",
|
367
|
+
"stylers": [
|
368
|
+
]
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"featureType": "road.highway",
|
372
|
+
"elementType": "geometry",
|
373
|
+
"stylers": [
|
374
|
+
{
|
375
|
+
"color": "#3c3c3c"
|
376
|
+
}
|
377
|
+
]
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"featureType": "road.highway",
|
381
|
+
"elementType": "labels",
|
382
|
+
"stylers": [
|
383
|
+
{
|
384
|
+
"visibility": "off"
|
385
|
+
}
|
386
|
+
]
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"featureType": "road.highway.controlled_access",
|
390
|
+
"elementType": "geometry",
|
391
|
+
"stylers": [
|
392
|
+
{
|
393
|
+
"color": "#4e4e4e"
|
394
|
+
}
|
395
|
+
]
|
396
|
+
},
|
397
|
+
{
|
398
|
+
"featureType": "road.local",
|
399
|
+
"stylers": [
|
400
|
+
]
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"featureType": "road.local",
|
404
|
+
"elementType": "labels.text.fill",
|
405
|
+
"stylers": [
|
406
|
+
{
|
407
|
+
"color": "#616161"
|
408
|
+
}
|
409
|
+
]
|
410
|
+
},
|
411
|
+
{
|
412
|
+
"featureType": "transit",
|
413
|
+
"stylers": [
|
414
|
+
{
|
415
|
+
"visibility": "off"
|
416
|
+
}
|
417
|
+
]
|
418
|
+
},
|
419
|
+
{
|
420
|
+
"featureType": "transit",
|
421
|
+
"elementType": "labels.text.fill",
|
422
|
+
"stylers": [
|
423
|
+
{
|
424
|
+
"color": "#757575"
|
425
|
+
}
|
426
|
+
]
|
427
|
+
},
|
428
|
+
{
|
429
|
+
"featureType": "water",
|
430
|
+
"elementType": "geometry",
|
431
|
+
"stylers": [
|
432
|
+
{
|
433
|
+
"color": "#000000"
|
434
|
+
}
|
435
|
+
]
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"featureType": "water",
|
439
|
+
"elementType": "labels.text",
|
440
|
+
"stylers": [
|
441
|
+
{
|
442
|
+
"visibility": "off"
|
443
|
+
}
|
444
|
+
]
|
445
|
+
},
|
446
|
+
{
|
447
|
+
"featureType": "water",
|
448
|
+
"elementType": "labels.text.fill",
|
449
|
+
"stylers": [
|
450
|
+
{
|
451
|
+
"color": "#3d3d3d"
|
452
|
+
}
|
453
|
+
]
|
454
|
+
}
|
455
|
+
],
|
456
|
+
center: { lat, lng },
|
457
|
+
zoom: parseInt(route.query.zoom || zoomLevel || '12')
|
458
|
+
});
|
446
459
|
|
447
|
-
|
460
|
+
|
448
461
|
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
let location = org.spots[0]?.location;
|
462
|
+
for (let marker of markers.value) {
|
463
|
+
marker.setMap(null);
|
464
|
+
}
|
453
465
|
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
466
|
+
markers.value = [];
|
467
|
+
|
468
|
+
// Add new markers
|
469
|
+
markers.value = data.map(org => {
|
470
|
+
// Get the first spot's location
|
471
|
+
let location = org.spots[0]?.location;
|
472
|
+
|
473
|
+
if (location && location.type === 'Point') {
|
474
|
+
let [lng, lat] = location.coordinates; // Note that coordinates are in [lng, lat] format
|
475
|
+
|
476
|
+
let markerIcon = '/marker_2.png'; // Default marker icon
|
477
|
+
|
478
|
+
if (org.products && org.products.length === 0) {
|
479
|
+
markerIcon = '/marker.png'; // If there are no products, set a different icon
|
480
|
+
}
|
481
|
+
|
482
|
+
const marker = new google.maps.Marker({
|
483
|
+
position: { lng, lat },
|
484
|
+
map: map.value,
|
485
|
+
icon: {
|
486
|
+
url: markerIcon, // URL to the icon
|
487
|
+
scaledSize: new google.maps.Size(32, 48), // icon dimensions
|
488
|
+
origin: new google.maps.Point(0,0), // coordinate origin for this icon
|
489
|
+
anchor: new google.maps.Point(16, 48) // point on the icon that corresponds to the geographic location of the marker
|
490
|
+
}
|
491
|
+
});
|
492
|
+
|
493
|
+
// Add click listener to the marker
|
494
|
+
marker.addListener('click', () => {
|
495
|
+
router.push({name: 'Organization', params: {_id: org._id}});
|
496
|
+
});
|
497
|
+
|
498
|
+
return marker;
|
499
|
+
}
|
500
|
+
return null;
|
501
|
+
}).filter(marker => marker !== null); // Remove null markers
|
458
502
|
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
icon: {
|
467
|
-
url: markerIcon, // URL to the icon
|
468
|
-
scaledSize: new google.maps.Size(34, 45), // icon dimensions
|
469
|
-
origin: new google.maps.Point(0,0), // coordinate origin for this icon
|
470
|
-
anchor: new google.maps.Point(0, 0) // point on the icon that corresponds to the geographic location of the marker
|
471
|
-
}
|
472
|
-
});
|
503
|
+
google.maps.event.addListener(map.value, 'center_changed', () => {
|
504
|
+
let center = map.value.getCenter();
|
505
|
+
currentMapCenter.value = {
|
506
|
+
lat: center.lat(),
|
507
|
+
lng: center.lng()
|
508
|
+
};
|
509
|
+
});
|
473
510
|
|
474
|
-
|
475
|
-
marker.addListener('click', () => {
|
476
|
-
router.push({name: 'Organization', params: {_id: org._id}});
|
477
|
-
});
|
511
|
+
})
|
478
512
|
|
479
|
-
return marker;
|
480
|
-
}
|
481
|
-
return null;
|
482
|
-
}).filter(marker => marker !== null); // Remove null markers
|
483
|
-
|
484
|
-
google.maps.event.addListener(map.value, 'center_changed', () => {
|
485
|
-
let center = map.value.getCenter();
|
486
|
-
currentMapCenter.value = {
|
487
|
-
lat: center.lat(),
|
488
|
-
lng: center.lng()
|
489
|
-
};
|
490
|
-
});
|
491
513
|
});
|
492
514
|
|
493
515
|
const searchInCurrentLocation = async () => {
|
@@ -525,9 +547,9 @@ const searchInCurrentLocation = async () => {
|
|
525
547
|
map: map.value,
|
526
548
|
icon: {
|
527
549
|
url: markerIcon, // URL to the icon
|
528
|
-
scaledSize: new google.maps.Size(
|
550
|
+
scaledSize: new google.maps.Size(32, 48), // icon dimensions
|
529
551
|
origin: new google.maps.Point(0,0), // coordinate origin for this icon
|
530
|
-
anchor: new google.maps.Point(
|
552
|
+
anchor: new google.maps.Point(16, 48) // point on the icon that corresponds to the geographic location of the marker
|
531
553
|
}
|
532
554
|
});
|
533
555
|
|
@@ -549,5 +571,10 @@ const searchInCurrentLocation = async () => {
|
|
549
571
|
|
550
572
|
</script>
|
551
573
|
|
552
|
-
<style scoped>
|
574
|
+
<style scoped lang="scss">
|
575
|
+
#map {
|
576
|
+
&:focus {
|
577
|
+
outline: none;
|
578
|
+
}
|
579
|
+
}
|
553
580
|
</style>
|