@ozdao/prometheus-framework 0.2.127 → 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 +28 -37
- package/dist/auth.server.mjs +28 -37
- 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 +32 -48
- 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 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const h=require("../../../../components/Dropdown/Dropdown.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const h=require("../../../../components/Dropdown/Dropdown.vue2.cjs"),g=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../../components/Menu/Menu.vue.cjs"),l=require("../../../../components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),N=require("../../../reports/components/sections/FormReport.vue.cjs"),V=require("../../../organizations/components/blocks/Socials.vue.cjs"),B=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),C=require("../../../icons/navigation/IconEdit.vue.cjs"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),o=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),v=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const x={key:0,class:"for-transition w-100"},y={key:0,class:"flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),P=["src"],R={class:"mn-b-thin"},$={key:4,class:"mn-b-thin t-main t-semi"},D={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},F={class:"t-semi mn-b-small"},L={key:6,class:"mn-t-small mn-b-thin"},O=e.createElementVNode("span",null,"Events",-1),A=e.createElementVNode("span",null,"Groups",-1),j=e.createElementVNode("span",null,"Posts",-1),W=e.createElementVNode("span",null,"Wallet",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",null," About ",-1),T=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),H={__name:"Profile",setup(J){const a=_.useRoute(),n=_.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:a.params._id,user:o.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{v.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function b(){o.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",x,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",y," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(a).params._id===o.state.user._id&&u.value?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,target:t.state.current,cta:!0,text_cta:"Fill Profile",text:"Profile completed at",class:"mn-b-medium"},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(N.default,{user:o.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:o.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.unref(a).params._id===o.state.user._id?(e.openBlock(),e.createBlock(C.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:o.state.user._id}})),class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo&&t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,P)):(e.openBlock(),e.createBlock(E.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",R,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Anonymous"),1),t.state.current.username?(e.openBlock(),e.createElementBlock("p",$," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Bio not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",F," 👨👨👧👧 "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),o.state.user._id&&e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:5,user:o.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",L," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(V.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),e.createVNode(d.default,{class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(B.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),O]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),A]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),j]),_:1})]),_:1}),i.APP_NAME==="Weeder"?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),W]),_:1})]),_:1})):e.createCommentVNode("",!0),o.state.user._id===e.unref(a).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{onClick:r[8]||(r[8]=s=>e.unref(n).push({name:"Legal",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[G]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[9]||(r[9]=s=>b())},{default:e.withCtx(()=>[T]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=H;
|
@@ -1,21 +1,21 @@
|
|
1
|
-
import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unref as s, createBlock as d, createCommentVNode as m, createElementVNode as
|
1
|
+
import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unref as s, createBlock as d, createCommentVNode as m, createElementVNode as n, withCtx as u, createVNode as a, toDisplayString as f, Fragment as E, renderList as S, normalizeClass as P } from "vue";
|
2
2
|
import "../../../../components/Field/Field.vue.js";
|
3
3
|
import "../../../../components/Loader/Loader.vue.js";
|
4
4
|
import "../../../../components/Button/Button.vue.js";
|
5
|
-
import B from "../../../../components/Dropdown/Dropdown.
|
5
|
+
import B from "../../../../components/Dropdown/Dropdown.vue2.js";
|
6
6
|
import M from "../../../../components/Completion/Completion.vue.js";
|
7
|
-
import k from "
|
8
|
-
import
|
7
|
+
import k from "../../../../components/Menu/Menu.vue.js";
|
8
|
+
import _ from "../../../../components/Menu/MenuItem.vue.js";
|
9
9
|
import w from "../../../organizations/components/elements/ButtonToggleMembership.vue.js";
|
10
10
|
import R from "../../../reports/components/sections/FormReport.vue.js";
|
11
11
|
import F from "../../../organizations/components/blocks/Socials.vue.js";
|
12
|
-
import
|
12
|
+
import L from "../../../icons/entities/IconEvents.vue.js";
|
13
13
|
import y from "../../../icons/entities/IconGroups.vue.js";
|
14
|
-
import
|
15
|
-
import
|
16
|
-
import
|
17
|
-
import { useRoute as
|
18
|
-
import { state as
|
14
|
+
import N from "../../../icons/entities/IconCommunity.vue.js";
|
15
|
+
import A from "../../../icons/navigation/IconEdit.vue.js";
|
16
|
+
import I from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
17
|
+
import { useRoute as O, useRouter as V } from "vue-router";
|
18
|
+
import { state as l, actions as W } from "../../../auth/store/auth.js";
|
19
19
|
import { actions as j, state as e } from "../../store/users.js";
|
20
20
|
import { mutations as z } from "../../../organizations/store/memberships.js";
|
21
21
|
import "./Profile.vue2.js";
|
@@ -29,18 +29,18 @@ const D = {
|
|
29
29
|
key: 1,
|
30
30
|
_id: "dash",
|
31
31
|
class: "pd-b-extra pd-thin w-100"
|
32
|
-
}, H = { class: "flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light" }, J = { class: "bg-black pd-thin radius-small" }, K = /* @__PURE__ */
|
32
|
+
}, H = { class: "flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light" }, J = { class: "bg-black pd-thin radius-small" }, K = /* @__PURE__ */ n("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), Q = ["src"], T = { class: "mn-b-thin" }, X = {
|
33
33
|
key: 4,
|
34
34
|
class: "mn-b-thin t-main t-semi"
|
35
35
|
}, Y = { class: "mn-b-small p-medium" }, Z = { class: "mn-b-medium flex-center flex-nowrap flex" }, ee = { class: "t-semi mn-b-small" }, re = {
|
36
36
|
key: 6,
|
37
37
|
class: "mn-t-small mn-b-thin"
|
38
|
-
},
|
38
|
+
}, se = /* @__PURE__ */ n("span", null, "Events", -1), te = /* @__PURE__ */ n("span", null, "Groups", -1), ie = /* @__PURE__ */ n("span", null, "Posts", -1), oe = /* @__PURE__ */ n("span", null, "Wallet", -1), ae = /* @__PURE__ */ n("span", null, " Settings ", -1), ne = /* @__PURE__ */ n("span", null, " About ", -1), le = /* @__PURE__ */ n("span", { class: "t-red" }, " Logout ", -1), Me = {
|
39
39
|
__name: "Profile",
|
40
|
-
setup(
|
41
|
-
const o =
|
40
|
+
setup(ue) {
|
41
|
+
const o = O(), p = V(), g = U(!1);
|
42
42
|
C(async () => {
|
43
|
-
await j.read({ _id: o.params._id, user:
|
43
|
+
await j.read({ _id: o.params._id, user: l.user._id }), g.value = !0;
|
44
44
|
});
|
45
45
|
const v = ({ membership: b, status: r, target: t }, h, $) => {
|
46
46
|
z.handleMembershipUpdate(e.current, b, r, t, h, $);
|
@@ -50,26 +50,26 @@ const D = {
|
|
50
50
|
}
|
51
51
|
return (b, r) => g.value ? (i(), c("div", D, [
|
52
52
|
e.current.status === "removed" ? (i(), c("div", G, " Sorry, user has been removed. ")) : (i(), c("div", q, [
|
53
|
-
s(o).params._id ===
|
53
|
+
s(o).params._id === l.user._id && g.value ? (i(), d(M, {
|
54
54
|
key: 0,
|
55
|
-
user:
|
55
|
+
user: l.user._id,
|
56
56
|
target: e.current,
|
57
57
|
cta: !0,
|
58
58
|
text_cta: "Fill Profile",
|
59
59
|
text: "Profile completed at",
|
60
60
|
class: "mn-b-medium"
|
61
61
|
}, null, 8, ["user", "target"])) : m("", !0),
|
62
|
-
|
63
|
-
s(o).params._id && s(o).params._id !==
|
62
|
+
n("section", H, [
|
63
|
+
s(o).params._id && s(o).params._id !== l.user._id ? (i(), d(B, {
|
64
64
|
key: 0,
|
65
65
|
label: "...",
|
66
66
|
align: "right",
|
67
67
|
class: "cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"
|
68
68
|
}, {
|
69
69
|
default: u(() => [
|
70
|
-
|
70
|
+
n("section", J, [
|
71
71
|
a(R, {
|
72
|
-
user:
|
72
|
+
user: l.user._id,
|
73
73
|
type: "user",
|
74
74
|
target: e.current._id,
|
75
75
|
text: "Report",
|
@@ -80,9 +80,9 @@ const D = {
|
|
80
80
|
]),
|
81
81
|
_: 1
|
82
82
|
}, 8, ["user", "target"]),
|
83
|
-
|
83
|
+
l.user._id ? (i(), d(w, {
|
84
84
|
key: 0,
|
85
|
-
user:
|
85
|
+
user: l.user._id,
|
86
86
|
type: "user",
|
87
87
|
role: "blocked",
|
88
88
|
target: e.current._id,
|
@@ -95,12 +95,12 @@ const D = {
|
|
95
95
|
]),
|
96
96
|
_: 1
|
97
97
|
})) : m("", !0),
|
98
|
-
s(o).params._id ===
|
98
|
+
s(o).params._id === l.user._id ? (i(), d(A, {
|
99
99
|
key: 1,
|
100
100
|
onClick: r[1] || (r[1] = (t) => b.$router.push({
|
101
101
|
name: "User Edit Profile",
|
102
102
|
params: {
|
103
|
-
_id:
|
103
|
+
_id: l.user._id
|
104
104
|
}
|
105
105
|
})),
|
106
106
|
class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
|
@@ -109,22 +109,22 @@ const D = {
|
|
109
109
|
key: 2,
|
110
110
|
src: (b.FILE_SERVER_URL || "") + e.current.profile.photo,
|
111
111
|
class: "radius-extra bg-white mn-b-small object-fit-cover i-extra"
|
112
|
-
}, null, 8, Q)) : (i(), d(
|
112
|
+
}, null, 8, Q)) : (i(), d(I, {
|
113
113
|
key: 3,
|
114
114
|
class: "radius-medium mn-b-small i-extra"
|
115
115
|
})),
|
116
|
-
|
117
|
-
e.current.username ? (i(), c("p", X, " @" +
|
118
|
-
|
119
|
-
|
116
|
+
n("h3", T, f(e.current.profile.name ? e.current.profile.name : "Anonymous"), 1),
|
117
|
+
e.current.username ? (i(), c("p", X, " @" + f(e.current.username ? e.current.username : "Not specified"), 1)) : m("", !0),
|
118
|
+
n("p", Y, f(e.current.profile.description ? e.current.profile.description : "Bio not specified"), 1),
|
119
|
+
n("div", Z, [
|
120
120
|
(i(!0), c(E, null, S(e.current.roles, (t, h) => (i(), c("div", {
|
121
121
|
class: P(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": h !== e.current.roles.length - 1 }])
|
122
|
-
},
|
122
|
+
}, f(t.icon) + " " + f(t.name), 3))), 256))
|
123
123
|
]),
|
124
|
-
|
125
|
-
|
124
|
+
n("p", ee, " 👨👨👧👧 " + f(e.current.numberOfSubscribers) + " followers ", 1),
|
125
|
+
l.user._id && s(o).params._id && s(o).params._id !== l.user._id ? (i(), d(w, {
|
126
126
|
key: 5,
|
127
|
-
user:
|
127
|
+
user: l.user._id,
|
128
128
|
type: "user",
|
129
129
|
role: "subscriber",
|
130
130
|
target: e.current._id,
|
@@ -144,21 +144,21 @@ const D = {
|
|
144
144
|
]),
|
145
145
|
a(k, { class: "mn-b-regular bg-light" }, {
|
146
146
|
default: u(() => [
|
147
|
-
a(
|
147
|
+
a(_, {
|
148
148
|
onClick: r[3] || (r[3] = (t) => s(p).push({ name: "User Events", params: { _id: s(o).params._id } })),
|
149
149
|
class: "cursor-pointer"
|
150
150
|
}, {
|
151
151
|
default: u(() => [
|
152
|
-
a(
|
152
|
+
a(L, {
|
153
153
|
class: "i-semi",
|
154
154
|
icon: !0,
|
155
155
|
fill: "rgb(var(--white))"
|
156
156
|
}),
|
157
|
-
|
157
|
+
se
|
158
158
|
]),
|
159
159
|
_: 1
|
160
160
|
}),
|
161
|
-
a(
|
161
|
+
a(_, {
|
162
162
|
onClick: r[4] || (r[4] = (t) => s(p).push({ name: "User Organizations", params: { _id: s(o).params._id } })),
|
163
163
|
class: "cursor-pointer"
|
164
164
|
}, {
|
@@ -167,16 +167,16 @@ const D = {
|
|
167
167
|
class: "i-semi",
|
168
168
|
icon: !0
|
169
169
|
}),
|
170
|
-
|
170
|
+
te
|
171
171
|
]),
|
172
172
|
_: 1
|
173
173
|
}),
|
174
|
-
a(
|
174
|
+
a(_, {
|
175
175
|
onClick: r[5] || (r[5] = (t) => s(p).push({ name: "User Blogposts", params: { _id: s(o).params._id } })),
|
176
176
|
class: "cursor-pointer"
|
177
177
|
}, {
|
178
178
|
default: u(() => [
|
179
|
-
a(
|
179
|
+
a(N, {
|
180
180
|
class: "i-semi",
|
181
181
|
icon: !0
|
182
182
|
}),
|
@@ -192,7 +192,7 @@ const D = {
|
|
192
192
|
class: "mn-b-regular bg-light"
|
193
193
|
}, {
|
194
194
|
default: u(() => [
|
195
|
-
a(
|
195
|
+
a(_, {
|
196
196
|
onClick: r[6] || (r[6] = (t) => s(p).push({ name: "User Wallet", params: { _id: s(o).params._id } })),
|
197
197
|
class: "cursor-pointer"
|
198
198
|
}, {
|
@@ -208,12 +208,12 @@ const D = {
|
|
208
208
|
]),
|
209
209
|
_: 1
|
210
210
|
})) : m("", !0),
|
211
|
-
|
211
|
+
l.user._id === s(o).params._id ? (i(), d(k, {
|
212
212
|
key: 2,
|
213
213
|
class: "bg-light"
|
214
214
|
}, {
|
215
215
|
default: u(() => [
|
216
|
-
a(
|
216
|
+
a(_, {
|
217
217
|
onClick: r[7] || (r[7] = (t) => s(p).push({
|
218
218
|
name: "User Edit Profile",
|
219
219
|
params: {
|
@@ -227,14 +227,28 @@ const D = {
|
|
227
227
|
]),
|
228
228
|
_: 1
|
229
229
|
}),
|
230
|
-
a(
|
231
|
-
|
232
|
-
|
230
|
+
a(_, {
|
231
|
+
onClick: r[8] || (r[8] = (t) => s(p).push({
|
232
|
+
name: "Legal",
|
233
|
+
params: {
|
234
|
+
_id: s(o).params._id
|
235
|
+
}
|
236
|
+
})),
|
237
|
+
class: "cursor-pointer"
|
233
238
|
}, {
|
234
239
|
default: u(() => [
|
235
240
|
ne
|
236
241
|
]),
|
237
242
|
_: 1
|
243
|
+
}),
|
244
|
+
a(_, {
|
245
|
+
class: "cursor-pointer",
|
246
|
+
onClick: r[9] || (r[9] = (t) => x())
|
247
|
+
}, {
|
248
|
+
default: u(() => [
|
249
|
+
le
|
250
|
+
]),
|
251
|
+
_: 1
|
238
252
|
})
|
239
253
|
]),
|
240
254
|
_: 1
|
@@ -244,5 +258,5 @@ const D = {
|
|
244
258
|
}
|
245
259
|
};
|
246
260
|
export {
|
247
|
-
|
261
|
+
Me as default
|
248
262
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const i=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/Button/Button.vue2.cjs"),b=require("../../../../components/UploadImage/UploadImage.vue.cjs"),h=require("../sections/ProfileCompletion.vue.cjs"),m=require("vue-router"),n=require("../../../auth/store/auth.cjs"),s=require("../../store/users.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("./ProfileEdit.vue2.cjs");const v={class:"pd-medium for-transition w-100"},g=e.createElementVNode("h3",{class:"mn-b-small"},"Username",-1),N={class:"mn-b-semi"},V=e.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),w={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},U=e.createElementVNode("h4",null,"Upload userpic",-1),k=e.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),_=e.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),q=e.createElementVNode("h3",{class:"mn-b-small"},"Account",-1),y={__name:"ProfileEdit",setup(E){e.ref(null);const d=m.useRoute(),r=m.useRouter(),l=e.ref(s.state.current);e.onMounted(async()=>{await s.actions.read({_id:d.params._id})});async function c(){await s.actions.update(s.state.current)}async function f(){window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.")&&(s.state.current.status="removed",await s.actions.update(s.state.current),n.actions.logout())}function p(){r.replace({name:"User Profile",params:{_id:s.state.current._id}})}return(o,a)=>(e.openBlock(),e.createElementBlock("div",v,[e.unref(d).params._id===n.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,user:n.state.user._id,target:l.value,cta:!1},null,8,["user","target"])):e.createCommentVNode("",!0),g,e.createVNode(i.default,{field:l.value.username,"onUpdate:field":a[0]||(a[0]=t=>l.value.username=t),label:"@",placeholder:"Not specified",class:"mn-b-thin w-100 bg-light pd-medium radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),e.createElementVNode("p",N,"Your username will be used for URL of profile like "+e.toDisplayString(o.API_URL)+"/users/username",1),V,e.createElementVNode("div",w,[e.createVNode(b.default,{photo:l.value.profile.photo,"onUpdate:photo":a[1]||(a[1]=t=>l.value.profile.photo=t),uploadPath:"users/"+l.value._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),U]),e.createVNode(i.default,{field:l.value.profile.name,"onUpdate:field":a[2]||(a[2]=t=>l.value.profile.name=t),label:"Name",placeholder:"Not specified",class:"mn-b-thin bg-light pd-medium radius-small",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:l.value.profile.description,"onUpdate:field":a[3]||(a[3]=t=>l.value.profile.description=t),label:"Description",placeholder:"Not specified",class:"mn-b-semi bg-light pd-medium radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),k,_,e.createVNode(i.default,{field:l.value.socials.instagram,"onUpdate:field":a[4]||(a[4]=t=>l.value.socials.instagram=t),label:"Instagram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.twitter,"onUpdate:field":a[5]||(a[5]=t=>l.value.socials.twitter=t),label:"Twitter",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.facebook,"onUpdate:field":a[6]||(a[6]=t=>l.value.socials.facebook=t),label:"Facebook",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.telegram,"onUpdate:field":a[7]||(a[7]=t=>l.value.socials.telegram=t),label:"Telegram",placeholder:"",class:"mn-b-semi bg-light pd-medium radius-small"},null,8,["field"]),q,e.createVNode(i.default,{field:l.value.phone,"onUpdate:field":a[8]||(a[8]=t=>l.value.phone=t),label:"Phone",placeholder:"Not specified",class:"mn-b-thin bg-light pd-medium mn-b-thin radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:l.value.email,"onUpdate:field":a[9]||(a[9]=t=>l.value.email=t),label:"Email",placeholder:"Not specified",class:"mn-b-semi bg-light pd-medium radius-small",disabled:!0,validation:o.organizationName},null,8,["field","validation"]),e.createVNode(u.default,{submit:c,callback:p,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode("Save")]),_:1}),e.createVNode(u.default,{submit:f,callback:o.a=()=>{e.unref(r).push({name:"Sign In"})},class:"mn-b-thin bg-red t-white"},{default:e.withCtx(()=>[e.createTextVNode("Delete Account")]),_:1},8,["callback"])]))}};exports.default=y;
|
@@ -1,40 +1,39 @@
|
|
1
|
-
import { ref as
|
2
|
-
import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
1
|
+
import { ref as u, onMounted as N, openBlock as p, createElementBlock as U, unref as f, createBlock as k, createCommentVNode as y, createVNode as a, createElementVNode as s, toDisplayString as P, withCtx as c, createTextVNode as b } from "vue";
|
3
2
|
import "../../../../components/Tab/Tab.vue.js";
|
4
3
|
import t from "../../../../components/Field/Field.vue2.js";
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import { useRoute as
|
9
|
-
import { state as
|
10
|
-
import {
|
4
|
+
import h from "../../../../components/Button/Button.vue2.js";
|
5
|
+
import S from "../../../../components/UploadImage/UploadImage.vue.js";
|
6
|
+
import z from "../sections/ProfileCompletion.vue.js";
|
7
|
+
import { useRoute as R, useRouter as $ } from "vue-router";
|
8
|
+
import { state as g, actions as A } from "../../../auth/store/auth.js";
|
9
|
+
import { state as n, actions as r } from "../../store/users.js";
|
11
10
|
import "../../../middlewares/client/inputs.validation.js";
|
12
11
|
import "./ProfileEdit.vue2.js";
|
13
|
-
const
|
12
|
+
const D = { class: "pd-medium for-transition w-100" }, E = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Username", -1), T = { class: "mn-b-semi" }, V = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Profile", -1), B = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, I = /* @__PURE__ */ s("h4", null, "Upload userpic", -1), x = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Socials", -1), C = /* @__PURE__ */ s("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), F = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Account", -1), X = {
|
14
13
|
__name: "ProfileEdit",
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
async function
|
22
|
-
await
|
14
|
+
setup(L) {
|
15
|
+
u(null);
|
16
|
+
const d = R(), m = $(), e = u(n.current);
|
17
|
+
N(async () => {
|
18
|
+
await r.read({ _id: d.params._id });
|
19
|
+
});
|
20
|
+
async function v() {
|
21
|
+
await r.update(n.current);
|
23
22
|
}
|
24
|
-
async function
|
25
|
-
window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (n.current.status = "removed", await
|
23
|
+
async function w() {
|
24
|
+
window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (n.current.status = "removed", await r.update(n.current), A.logout());
|
26
25
|
}
|
27
|
-
function
|
28
|
-
|
26
|
+
function _() {
|
27
|
+
m.replace({ name: "User Profile", params: { _id: n.current._id } });
|
29
28
|
}
|
30
|
-
return (o, l) => (
|
31
|
-
|
29
|
+
return (o, l) => (p(), U("div", D, [
|
30
|
+
f(d).params._id === g.user._id ? (p(), k(z, {
|
32
31
|
key: 0,
|
33
|
-
user:
|
32
|
+
user: g.user._id,
|
34
33
|
target: e.value,
|
35
34
|
cta: !1
|
36
|
-
}, null, 8, ["user", "target"])) :
|
37
|
-
|
35
|
+
}, null, 8, ["user", "target"])) : y("", !0),
|
36
|
+
E,
|
38
37
|
a(t, {
|
39
38
|
field: e.value.username,
|
40
39
|
"onUpdate:field": l[0] || (l[0] = (i) => e.value.username = i),
|
@@ -44,10 +43,10 @@ const T = { class: "pd-medium for-transition w-100" }, V = /* @__PURE__ */ s("h3
|
|
44
43
|
disabled: "true",
|
45
44
|
validation: o.organizationName
|
46
45
|
}, null, 8, ["field", "validation"]),
|
47
|
-
s("p",
|
48
|
-
|
49
|
-
s("div",
|
50
|
-
a(
|
46
|
+
s("p", T, "Your username will be used for URL of profile like " + P(o.API_URL) + "/users/username", 1),
|
47
|
+
V,
|
48
|
+
s("div", B, [
|
49
|
+
a(S, {
|
51
50
|
photo: e.value.profile.photo,
|
52
51
|
"onUpdate:photo": l[1] || (l[1] = (i) => e.value.profile.photo = i),
|
53
52
|
uploadPath: "users/" + e.value._id + "/avatars",
|
@@ -72,8 +71,8 @@ const T = { class: "pd-medium for-transition w-100" }, V = /* @__PURE__ */ s("h3
|
|
72
71
|
disabled: "true",
|
73
72
|
validation: o.organizationName
|
74
73
|
}, null, 8, ["field", "validation"]),
|
75
|
-
|
76
|
-
|
74
|
+
x,
|
75
|
+
C,
|
77
76
|
a(t, {
|
78
77
|
field: e.value.socials.instagram,
|
79
78
|
"onUpdate:field": l[4] || (l[4] = (i) => e.value.socials.instagram = i),
|
@@ -102,7 +101,7 @@ const T = { class: "pd-medium for-transition w-100" }, V = /* @__PURE__ */ s("h3
|
|
102
101
|
placeholder: "",
|
103
102
|
class: "mn-b-semi bg-light pd-medium radius-small"
|
104
103
|
}, null, 8, ["field"]),
|
105
|
-
|
104
|
+
F,
|
106
105
|
a(t, {
|
107
106
|
field: e.value.phone,
|
108
107
|
"onUpdate:field": l[8] || (l[8] = (i) => e.value.phone = i),
|
@@ -121,25 +120,25 @@ const T = { class: "pd-medium for-transition w-100" }, V = /* @__PURE__ */ s("h3
|
|
121
120
|
disabled: !0,
|
122
121
|
validation: o.organizationName
|
123
122
|
}, null, 8, ["field", "validation"]),
|
124
|
-
a(
|
125
|
-
submit:
|
126
|
-
callback:
|
123
|
+
a(h, {
|
124
|
+
submit: v,
|
125
|
+
callback: _,
|
127
126
|
class: "mn-b-thin"
|
128
127
|
}, {
|
129
|
-
default:
|
130
|
-
|
128
|
+
default: c(() => [
|
129
|
+
b("Save")
|
131
130
|
]),
|
132
131
|
_: 1
|
133
132
|
}),
|
134
|
-
a(
|
135
|
-
submit:
|
133
|
+
a(h, {
|
134
|
+
submit: w,
|
136
135
|
callback: o.a = () => {
|
137
|
-
|
136
|
+
f(m).push({ name: "Sign In" });
|
138
137
|
},
|
139
138
|
class: "mn-b-thin bg-red t-white"
|
140
139
|
}, {
|
141
|
-
default:
|
142
|
-
|
140
|
+
default: c(() => [
|
141
|
+
b("Delete Account")
|
143
142
|
]),
|
144
143
|
_: 1
|
145
144
|
}, 8, ["callback"])
|
@@ -147,5 +146,5 @@ const T = { class: "pd-medium for-transition w-100" }, V = /* @__PURE__ */ s("h3
|
|
147
146
|
}
|
148
147
|
};
|
149
148
|
export {
|
150
|
-
|
149
|
+
X as default
|
151
150
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../store/wallet.store.cjs"),s=require("../../../../../../../node_modules/web3/lib/esm/web3.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_config.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_request_manager.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_subscriptions.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_context.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_batch_request.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/data_format_types.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/eth_types.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/web3_base_provider.cjs");require("../../../../../../../node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../../../../node_modules/web3-eth-iban/lib/esm/iban.cjs");require("../../../../../../../node_modules/web3-validator/lib/esm/formats.cjs");require("../../../../../../../node_modules/web3-validator/lib/esm/default_validator.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_promi_event.cjs");require("../../../../../../../node_modules/setimmediate/setImmediate.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/web3_eth.cjs");require("../../../../../../../node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/schemas.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/constants.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs");require("../../../../../../../node_modules/web3-eth-contract/lib/esm/contract.cjs");require("../../../../../../../node_modules/web3-eth-personal/lib/esm/personal.cjs");require("../../../../../../../node_modules/web3-net/lib/esm/net.cjs");require("../../../../../../../node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../../node_modules/web3-providers-http/lib/esm/index.cjs");require("../../../../../../../node_modules/isomorphic-ws/browser.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/wallet.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/account.cjs");require("../../../../../../../node_modules/crc-32/crc32.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/common/types.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../../../../node_modules/@ethereumjs/rlp/dist/index.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../../../../node_modules/web3-eth-ens/lib/esm/ens.cjs");require("../../../../../../../node_modules/web3/lib/esm/web3_eip6963.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");require("vue-router");require("vue-i18n");require("../../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../store/wallet.store.cjs"),s=require("../../../../../../../node_modules/web3/lib/esm/web3.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_config.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_request_manager.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_subscriptions.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_context.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_batch_request.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/data_format_types.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/eth_types.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/web3_base_provider.cjs");require("../../../../../../../node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../../../../node_modules/web3-eth-iban/lib/esm/iban.cjs");require("../../../../../../../node_modules/web3-validator/lib/esm/formats.cjs");require("../../../../../../../node_modules/web3-validator/lib/esm/default_validator.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_promi_event.cjs");require("../../../../../../../node_modules/setimmediate/setImmediate.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/web3_eth.cjs");require("../../../../../../../node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/schemas.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/constants.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs");require("../../../../../../../node_modules/web3-eth-contract/lib/esm/contract.cjs");require("../../../../../../../node_modules/web3-eth-personal/lib/esm/personal.cjs");require("../../../../../../../node_modules/web3-net/lib/esm/net.cjs");require("../../../../../../../node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../../node_modules/web3-providers-http/lib/esm/index.cjs");require("../../../../../../../node_modules/isomorphic-ws/browser.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/wallet.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/account.cjs");require("../../../../../../../node_modules/crc-32/crc32.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/common/types.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../../../../node_modules/@ethereumjs/rlp/dist/index.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../../../../node_modules/web3-eth-ens/lib/esm/ens.cjs");require("../../../../../../../node_modules/web3/lib/esm/web3_eip6963.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");require("vue-router");require("vue-i18n");require("../../../../../components/Popup/Popup.vue2.cjs");require("../../../../../components/Loader/Loader.vue.cjs");require("../../../../../components/Button/Button.vue.cjs");require("../../../../../components/Select/Select.vue2.cjs");require("../../../../reports/store/reports.cjs");require("../../../../../components/Tooltip/Tooltip.vue2.cjs");require("../../../../../components/Dropdown/Dropdown.vue.cjs");require("../../../../auth/store/auth.cjs");require("../../../../organizations/store/memberships.cjs");require("../../../../community/store/reactions.cjs");require("../../../../../components/Chips/Chips.vue.cjs");const a={class:"pd-thin"},l={class:"bg-black t-white mn-b-thin radius-big pd-big"},i=e.createElementVNode("h1",{class:"mn-b-medium"},"Your Wallet",-1),c=e.createElementVNode("p",{class:"mn-b-semi t-transp p-big"}," Earn Weeder Tokens by purchasing our weed or contributing to the community. ",-1),u={key:0,class:"gap-thin flex-nowrap bg-black radius-extra t-white br-solid br-white-transp-10 br-1px flex-v-center flex pd-medium"},d={class:"flex-v-center flex-nowrap flex mn-r-auto"},m=e.createElementVNode("button",{class:"w-max bg-main t-medium button"},"Get More",-1),p={key:0,class:"mn-b-semi cols-2 gap-thin"},b=e.createElementVNode("div",{class:"w-100 pd-medium radius-medium t-center bg-light"},[e.createElementVNode("h3",{class:"mn-b-small"},"Make first order and start earning Weeder Token"),e.createElementVNode("button",{class:"mn-l-auto mn-r-auto bg-main button"},"Explore marketplace")],-1),q={class:"w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light"},h={key:0,class:"mn-b-small"},_={key:1,class:"w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"},k=e.createElementVNode("p",{class:"t-transp t-medium mn-b-thin"},"You own:",-1),f={class:"h1 mn-b-small"},g=e.createElementVNode("p",{class:"t-white p-big t-medium mn-b-semi"},"of all shares",-1),E={class:"flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra"},w={key:0,class:"t-transp t-medium"},N=e.createElementVNode("span",{class:"uppercase p-small t-medium t-transp"},"Connected Metamask",-1),V=e.createElementVNode("br",null,null,-1),x={key:2,class:"mn-b-small"},B={class:"cols-3 gap-thin"},y={class:"radius-medium bg-light"},v={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},C={class:"t-semi mn-r-auto"},W={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},D={class:"pd-medium"},S={class:"t-regular mn-b-thin"},M={__name:"Wallet",setup(R){return window.ethereum.on("accountsChanged",o=>{o.length<1&&(t.state.account=null)}),t.state.web3=new s.Web3(window.ethereum||"http://localhost:8080"),e.onMounted(()=>{t.actions.listRewards(),t.actions.tryReconnectWallet()}),(o,n)=>(e.openBlock(),e.createElementBlock("section",a,[e.createElementVNode("section",l,[i,c,e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("div",d,[e.createElementVNode("h2",null,e.toDisplayString(e.unref(t.state).tokenBalance)+" WDT",1)]),m,e.createElementVNode("button",{class:"w-max bg-white t-black t-medium button",onClick:n[0]||(n[0]=(...r)=>e.unref(t.actions).collectRewards&&e.unref(t.actions).collectRewards(...r))},"Withdraw")])):e.createCommentVNode("",!0)]),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",p,[b,e.createElementVNode("div",q,[e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",h," Connect Metamask to withdrawal your earnings. ")),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:n[1]||(n[1]=(...r)=>e.unref(t.actions).connectWallet&&e.unref(t.actions).connectWallet(...r)),class:"br-solid br-2px br-black-transp-10 t-black button"}," Connect Wallet "))])])),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",_,[k,e.createElementVNode("p",f,e.toDisplayString(e.unref(t.state).share)+"%",1),g,e.createElementVNode("div",E,[e.unref(t.state).account?(e.openBlock(),e.createElementBlock("p",w,[N,V,e.createElementVNode("span",null,e.toDisplayString(e.unref(t.state).account),1)])):e.createCommentVNode("",!0),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:n[2]||(n[2]=(...r)=>e.unref(t.actions).disconnectWallet&&e.unref(t.actions).disconnectWallet(...r)),class:"mn-l-auto bg-red button"}," Disconnect Wallet ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",x,"Latest Rewards ")):e.createCommentVNode("",!0),e.createElementVNode("section",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,r=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",v,[e.createElementVNode("p",C,e.toDisplayString(r.amount)+" WDT",1),e.createElementVNode("span",W,e.toDisplayString(r.type==="blogpost"?"Community Reward":r.type),1)]),e.createElementVNode("div",D,[e.createElementVNode("h4",S,e.toDisplayString(r.name),1)])]))),256))])]))}};exports.default=M;
|
@@ -49,17 +49,17 @@ import "../../../../../../../node_modules/web3-rpc-methods/lib/esm/net_rpc_metho
|
|
49
49
|
import "../../../../../../../node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
50
50
|
import "vue-router";
|
51
51
|
import "vue-i18n";
|
52
|
-
import "../../../../../components/Popup/Popup.
|
52
|
+
import "../../../../../components/Popup/Popup.vue2.js";
|
53
53
|
import "../../../../../components/Loader/Loader.vue.js";
|
54
54
|
import "../../../../../components/Button/Button.vue.js";
|
55
|
-
import "../../../../../components/Select/Select.
|
55
|
+
import "../../../../../components/Select/Select.vue2.js";
|
56
56
|
import "../../../../reports/store/reports.js";
|
57
|
-
import "../../../../../components/Tooltip/Tooltip.
|
58
|
-
import "../../../../../components/Dropdown/Dropdown.
|
57
|
+
import "../../../../../components/Tooltip/Tooltip.vue2.js";
|
58
|
+
import "../../../../../components/Dropdown/Dropdown.vue.js";
|
59
59
|
import "../../../../auth/store/auth.js";
|
60
60
|
import "../../../../organizations/store/memberships.js";
|
61
61
|
import "../../../../community/store/reactions.js";
|
62
|
-
import "../../../../../components/Chips/Chips.
|
62
|
+
import "../../../../../components/Chips/Chips.vue.js";
|
63
63
|
const h = { class: "pd-thin" }, _ = { class: "bg-black t-white mn-b-thin radius-big pd-big" }, g = /* @__PURE__ */ t("h1", { class: "mn-b-medium" }, "Your Wallet", -1), w = /* @__PURE__ */ t("p", { class: "mn-b-semi t-transp p-big" }, " Earn Weeder Tokens by purchasing our weed or contributing to the community. ", -1), k = {
|
64
64
|
key: 0,
|
65
65
|
class: "gap-thin flex-nowrap bg-black radius-extra t-white br-solid br-white-transp-10 br-1px flex-v-center flex pd-medium"
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./main-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./main-hLtpe4Hr.js");exports.Address=e.Address;exports.Breadcrumbs=e._sfc_main$10;exports.Button=e._sfc_main;exports.Checkbox=e._sfc_main$1;exports.Chips=e.Chips;exports.Countdown=e._sfc_main$11;exports.DatePicker=e._sfc_main$12;exports.Dropdown=e.Dropdown;exports.EmptyState=e._sfc_main$13;exports.Error=e._sfc_main$2;exports.Feed=e._sfc_main$14;exports.Field=e.Field;exports.FieldBig=e._sfc_main$15;exports.FieldPhone=e.FieldPhone;exports.FieldTags=e.FieldTags;exports.Loader=e.Loader;exports.LocationMarker=e.LocationMarker;exports.Map=e.Map;exports.Marquee=e._sfc_main$19;exports.Popup=e._sfc_main$3;exports.Radio=e._sfc_main$4;exports.Select=e.Select;exports.SelectMulti=e.SelectMulti;exports.Shader=e.Shader;exports.Sidebar=e._sfc_main$16;exports.Slider=e._sfc_main$17;exports.Spoiler=e._sfc_main$5;exports.Status=e._sfc_main$18;exports.Tab=e._sfc_main$6;exports.Text=e._sfc_main$7;exports.Tooltip=e.Tooltip;exports.Upload=e.Upload;exports.UploadImage=e._sfc_main$8;exports.UploadImageMultiple=e._sfc_main$9;exports.default=e.main;
|