@ozdao/prometheus-framework 0.2.130 → 0.2.132
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +0 -1
- package/dist/auth.server.mjs +0 -1
- package/dist/community.server.js +172 -31
- package/dist/community.server.mjs +172 -31
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +38 -4
- package/dist/files.server.mjs +38 -4
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/main-CI9l9xMs.js +92 -0
- package/dist/main-DPg58GOU.mjs +14509 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +4 -3
- package/dist/organizations.server.mjs +4 -3
- package/dist/products.server.js +2 -1
- package/dist/products.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +31 -31
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +32 -32
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +20 -20
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
- 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 +55 -72
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
- 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 +87 -77
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
- 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 +3 -3
- 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 +71 -80
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
- 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 +29 -30
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
- 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 +119 -112
- 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 +6 -6
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +21 -21
- 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 +30 -30
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +18 -18
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
- 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 +3 -3
- 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 +3 -3
- 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 +9 -9
- 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 +1 -1
- 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/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +39 -38
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- 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 +2 -2
- 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 +113 -86
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- 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 +37 -36
- 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 +10 -10
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
- 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/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- 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 +3 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- 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 +32 -37
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +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 +5 -5
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
- 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 +33 -33
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
- 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 +158 -81
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +14 -14
- package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
- package/dist/queryProcessor-iewDZq_f.js +178 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +80 -27
- package/dist/wallet.server.mjs +80 -27
- package/dist/web-DZUec7pP.js +1 -0
- package/dist/web-krQQeSb6.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/Chips/Chips.vue +1 -1
- package/src/components/Completion/Completion.vue +1 -4
- package/src/components/DatePicker/Calendar.vue +1 -1
- package/src/components/Draggable/Draggable.vue +113 -0
- package/src/components/Dropdown/Dropdown.vue +1 -1
- package/src/components/Feed/Feed.vue +18 -12
- package/src/components/FieldBig/FieldBig.vue +11 -1
- package/src/components/FieldPhone/FieldPhone.vue +1 -1
- package/src/components/FieldTags/FieldTags.vue +2 -1
- package/src/components/FieldTags/tag-input.vue +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/Shader/Shader.vue +2 -2
- package/src/components/Slider/Slider.vue +1 -5
- package/src/components/Spoiler/Spoiler.vue +1 -1
- package/src/components/Text/Text.vue +1 -4
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/Upload/Upload.vue +5 -3
- package/src/modules/auth/controllers/auth.controller.js +0 -2
- package/src/modules/auth/store/auth.js +2 -2
- package/src/modules/community/DOCUMENTATION.MD +4 -0
- package/src/modules/community/community.client.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
- package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
- package/src/modules/community/components/layouts/Community.vue +15 -11
- package/src/modules/community/components/pages/Blog.vue +25 -32
- package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
- package/src/modules/community/components/sections/Comment.vue +123 -0
- package/src/modules/community/components/sections/Comments.vue +90 -19
- package/src/modules/community/components/sections/HotPosts.vue +3 -6
- package/src/modules/community/controllers/blog.controller.js +1 -1
- package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
- package/src/modules/community/controllers/comments.controller.js +187 -38
- package/src/modules/community/controllers/comments.controller.populate.js +180 -0
- package/src/modules/community/models/comment.model.js +15 -0
- package/src/modules/community/store/blogposts.js +20 -2
- package/src/modules/constructor/components/elements/Audio.vue +28 -40
- package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
- package/src/modules/constructor/components/elements/Video.vue +10 -18
- package/src/modules/constructor/components/sections/Constructor.vue +54 -47
- package/src/modules/files/controllers/files.controller.js +2 -0
- package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
- package/src/modules/files/routes/files.routes.js +8 -0
- package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
- package/src/modules/globals/components/partials/Header.vue +12 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
- package/src/modules/icons/logos/Logotype.vue +8 -6
- package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
- package/src/modules/marketplace/store/marketplace.js +2 -8
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +33 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
- package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
- package/src/modules/organizations/components/sections/Publics.vue +2 -2
- package/src/modules/organizations/controllers/memberships.controller.js +2 -3
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/store/memberships.js +4 -1
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
- package/src/modules/products/models/product.model.js +2 -1
- package/src/modules/spots/components/layouts/Spots.vue +0 -3
- package/src/modules/spots/components/pages/Map.vue +13 -3
- package/src/modules/users/components/blocks/CardUser.vue +2 -2
- package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
- package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
- package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
- package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
- package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
- package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
- package/src/modules/wallet/localization/Wallet.json +22 -0
- package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
- package/src/styles/base/all.scss +16 -26
- package/src/styles/config.scss +70 -34
- package/src/styles/typography.scss +5 -5
- package/src/modules/community/components/sections/Feed.vue +0 -148
- package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unref as
|
2
|
-
/* empty css
|
1
|
+
import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unref as r, 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
|
+
/* empty css */
|
3
3
|
/* empty css */
|
4
|
-
/* empty css
|
5
|
-
import B from "../../../../components/Dropdown/Dropdown.
|
4
|
+
/* empty css */
|
5
|
+
import B from "../../../../components/Dropdown/Dropdown.vue2.js";
|
6
6
|
import M from "../../../../components/Completion/Completion.vue.js";
|
7
|
-
import k from "../../../../components/Menu/Menu.
|
7
|
+
import k from "../../../../components/Menu/Menu.vue.js";
|
8
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";
|
@@ -19,10 +19,10 @@ 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";
|
22
|
-
const
|
22
|
+
const G = {
|
23
23
|
key: 0,
|
24
24
|
class: "for-transition w-100"
|
25
|
-
},
|
25
|
+
}, D = {
|
26
26
|
key: 0,
|
27
27
|
class: "flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"
|
28
28
|
}, q = {
|
@@ -32,25 +32,25 @@ const D = {
|
|
32
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
|
-
}, Y = { class: "mn-b-small p-medium" }, Z = { class: "mn-b-medium flex-center flex-nowrap flex" }, ee = { class: "t-semi mn-b-small" },
|
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" }, se = {
|
36
36
|
key: 6,
|
37
37
|
class: "mn-t-small mn-b-thin"
|
38
|
-
},
|
38
|
+
}, re = /* @__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
40
|
setup(ue) {
|
41
41
|
const o = O(), p = V(), g = U(!1);
|
42
42
|
C(async () => {
|
43
43
|
await j.read({ _id: o.params._id, user: l.user._id }), g.value = !0;
|
44
44
|
});
|
45
|
-
const v = ({ membership: b, status:
|
46
|
-
z.handleMembershipUpdate(e.current, b,
|
45
|
+
const v = ({ membership: b, status: s, target: t }, h, x) => {
|
46
|
+
z.handleMembershipUpdate(e.current, b, s, t, h, x);
|
47
47
|
};
|
48
|
-
function
|
48
|
+
function $() {
|
49
49
|
W.logout(), p.push({ name: "Sign In" });
|
50
50
|
}
|
51
|
-
return (b,
|
52
|
-
e.current.status === "removed" ? (i(), c("div",
|
53
|
-
|
51
|
+
return (b, s) => g.value ? (i(), c("div", G, [
|
52
|
+
e.current.status === "removed" ? (i(), c("div", D, " Sorry, user has been removed. ")) : (i(), c("div", q, [
|
53
|
+
r(o).params._id === l.user._id && g.value ? (i(), d(M, {
|
54
54
|
key: 0,
|
55
55
|
user: l.user._id,
|
56
56
|
target: e.current,
|
@@ -60,7 +60,7 @@ const D = {
|
|
60
60
|
class: "mn-b-medium"
|
61
61
|
}, null, 8, ["user", "target"])) : m("", !0),
|
62
62
|
n("section", H, [
|
63
|
-
|
63
|
+
r(o).params._id && r(o).params._id !== l.user._id ? (i(), d(B, {
|
64
64
|
key: 0,
|
65
65
|
label: "...",
|
66
66
|
align: "right",
|
@@ -88,16 +88,16 @@ const D = {
|
|
88
88
|
target: e.current._id,
|
89
89
|
status: e.current.isBlocked,
|
90
90
|
text: { create: "Block", remove: "Unblock" },
|
91
|
-
onUpdateMembership:
|
91
|
+
onUpdateMembership: s[0] || (s[0] = (t) => v(t, "isBlocked")),
|
92
92
|
class: "t-white mn-t-thin bg-red"
|
93
93
|
}, null, 8, ["user", "target", "status"])) : m("", !0)
|
94
94
|
])
|
95
95
|
]),
|
96
96
|
_: 1
|
97
97
|
})) : m("", !0),
|
98
|
-
|
98
|
+
r(o).params._id === l.user._id ? (i(), d(A, {
|
99
99
|
key: 1,
|
100
|
-
onClick:
|
100
|
+
onClick: s[1] || (s[1] = (t) => b.$router.push({
|
101
101
|
name: "User Edit Profile",
|
102
102
|
params: {
|
103
103
|
_id: l.user._id
|
@@ -122,7 +122,7 @@ const D = {
|
|
122
122
|
}, f(t.icon) + " " + f(t.name), 3))), 256))
|
123
123
|
]),
|
124
124
|
n("p", ee, " 👨👨👧👧 " + f(e.current.numberOfSubscribers) + " followers ", 1),
|
125
|
-
l.user._id &&
|
125
|
+
l.user._id && r(o).params._id && r(o).params._id !== l.user._id ? (i(), d(w, {
|
126
126
|
key: 5,
|
127
127
|
user: l.user._id,
|
128
128
|
type: "user",
|
@@ -130,10 +130,10 @@ const D = {
|
|
130
130
|
target: e.current._id,
|
131
131
|
status: e.current.isSubscriber,
|
132
132
|
text: { create: "Follow", remove: "Unfollow" },
|
133
|
-
onUpdateMembership:
|
133
|
+
onUpdateMembership: s[2] || (s[2] = (t) => v(t, "isSubscriber", "numberOfSubscribers")),
|
134
134
|
class: "w-min mn-b-medium mn-r-auto mn-l-auto"
|
135
135
|
}, null, 8, ["user", "target", "status"])) : m("", !0),
|
136
|
-
Object.values(e.current.socials).some((t) => t) ? (i(), c("h4",
|
136
|
+
Object.values(e.current.socials).some((t) => t) ? (i(), c("h4", se, " Find Me in Socials ")) : m("", !0),
|
137
137
|
a(F, {
|
138
138
|
telegram: e.current.socials.telegram,
|
139
139
|
facebook: e.current.socials.facebook,
|
@@ -145,7 +145,7 @@ const D = {
|
|
145
145
|
a(k, { class: "mn-b-regular bg-light" }, {
|
146
146
|
default: u(() => [
|
147
147
|
a(_, {
|
148
|
-
onClick:
|
148
|
+
onClick: s[3] || (s[3] = (t) => r(p).push({ name: "User Events", params: { _id: r(o).params._id } })),
|
149
149
|
class: "cursor-pointer"
|
150
150
|
}, {
|
151
151
|
default: u(() => [
|
@@ -154,12 +154,12 @@ const D = {
|
|
154
154
|
icon: !0,
|
155
155
|
fill: "rgb(var(--white))"
|
156
156
|
}),
|
157
|
-
|
157
|
+
re
|
158
158
|
]),
|
159
159
|
_: 1
|
160
160
|
}),
|
161
161
|
a(_, {
|
162
|
-
onClick:
|
162
|
+
onClick: s[4] || (s[4] = (t) => r(p).push({ name: "User Organizations", params: { _id: r(o).params._id } })),
|
163
163
|
class: "cursor-pointer"
|
164
164
|
}, {
|
165
165
|
default: u(() => [
|
@@ -172,7 +172,7 @@ const D = {
|
|
172
172
|
_: 1
|
173
173
|
}),
|
174
174
|
a(_, {
|
175
|
-
onClick:
|
175
|
+
onClick: s[5] || (s[5] = (t) => r(p).push({ name: "User Blogposts", params: { _id: r(o).params._id } })),
|
176
176
|
class: "cursor-pointer"
|
177
177
|
}, {
|
178
178
|
default: u(() => [
|
@@ -193,7 +193,7 @@ const D = {
|
|
193
193
|
}, {
|
194
194
|
default: u(() => [
|
195
195
|
a(_, {
|
196
|
-
onClick:
|
196
|
+
onClick: s[6] || (s[6] = (t) => r(p).push({ name: "User Wallet", params: { _id: r(o).params._id } })),
|
197
197
|
class: "cursor-pointer"
|
198
198
|
}, {
|
199
199
|
default: u(() => [
|
@@ -208,16 +208,16 @@ const D = {
|
|
208
208
|
]),
|
209
209
|
_: 1
|
210
210
|
})) : m("", !0),
|
211
|
-
l.user._id ===
|
211
|
+
l.user._id === r(o).params._id ? (i(), d(k, {
|
212
212
|
key: 2,
|
213
213
|
class: "bg-light"
|
214
214
|
}, {
|
215
215
|
default: u(() => [
|
216
216
|
a(_, {
|
217
|
-
onClick:
|
217
|
+
onClick: s[7] || (s[7] = (t) => r(p).push({
|
218
218
|
name: "User Edit Profile",
|
219
219
|
params: {
|
220
|
-
_id:
|
220
|
+
_id: r(o).params._id
|
221
221
|
}
|
222
222
|
})),
|
223
223
|
class: "cursor-pointer"
|
@@ -228,10 +228,10 @@ const D = {
|
|
228
228
|
_: 1
|
229
229
|
}),
|
230
230
|
a(_, {
|
231
|
-
onClick:
|
231
|
+
onClick: s[8] || (s[8] = (t) => r(p).push({
|
232
232
|
name: "Legal",
|
233
233
|
params: {
|
234
|
-
_id:
|
234
|
+
_id: r(o).params._id
|
235
235
|
}
|
236
236
|
})),
|
237
237
|
class: "cursor-pointer"
|
@@ -243,7 +243,7 @@ const D = {
|
|
243
243
|
}),
|
244
244
|
a(_, {
|
245
245
|
class: "cursor-pointer",
|
246
|
-
onClick:
|
246
|
+
onClick: s[9] || (s[9] = (t) => $())
|
247
247
|
}, {
|
248
248
|
default: u(() => [
|
249
249
|
le
|
package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),p=require("../../../../components/Feed/Feed.vue.cjs"),m=require("../../../community/components/blocks/CardBlogpost.vue.cjs"),o=require("../../../auth/store/auth.cjs"),f=require("../../../community/store/blogposts.cjs"),b={class:"pd-thin"},g={class:"mn-b-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),h={__name:"ProfileBlogposts",setup(v){const t=n.useRoute(),i=n.useRouter();let c=t.query.tab?t.query.tab:"posts";const r=e.ref(c);return t.query.tab=r.value,e.watch(r,l=>{i.replace({query:{...t.query,tab:l}})}),(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("header",g,[_,o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=s=>l.$router.push({name:"Create BlogPost"})),class:"radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createBlock(d.default,{key:0,selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"])):e.createCommentVNode("",!0),e.createVNode(p.default,{showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:s=>f.read(s)},options:{limit:15,category:e.unref(t).params.category,period:e.unref(t).query.period,status:r.value==="drafts"?"draft":"published",user:o.state.user._id,creator:["posts","drafts"].includes(r.value)?e.unref(t).params._id:null,following:r.value==="following"?o.state.user._id:null},class:"row-1 gap-thin"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,u=>(e.openBlock(),e.createBlock(m.default,{key:u._id,blogpost:u,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])]))}};exports.default=h;
|
package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js
CHANGED
@@ -1,57 +1,75 @@
|
|
1
|
-
import { ref as _, watch as b, openBlock as
|
2
|
-
import { useRoute as
|
3
|
-
import
|
4
|
-
import
|
1
|
+
import { ref as _, watch as b, openBlock as s, createElementBlock as n, createElementVNode as c, unref as o, createCommentVNode as d, createBlock as m, createVNode as g, withCtx as h, Fragment as v, renderList as y } from "vue";
|
2
|
+
import { useRoute as w, useRouter as k } from "vue-router";
|
3
|
+
import q from "../../../../components/Tab/Tab.vue2.js";
|
4
|
+
import x from "../../../../components/Feed/Feed.vue.js";
|
5
|
+
import B from "../../../community/components/blocks/CardBlogpost.vue.js";
|
5
6
|
import { state as a } from "../../../auth/store/auth.js";
|
6
|
-
|
7
|
+
import { read as C } from "../../../community/store/blogposts.js";
|
8
|
+
const P = { class: "pd-thin" }, $ = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, N = /* @__PURE__ */ c("h2", { class: "mn-r-medium" }, "Posts", -1), O = {
|
7
9
|
__name: "ProfileBlogposts",
|
8
|
-
setup(
|
9
|
-
const e =
|
10
|
+
setup(F) {
|
11
|
+
const e = w(), p = k();
|
10
12
|
let f = e.query.tab ? e.query.tab : "posts";
|
11
13
|
const t = _(f);
|
12
|
-
return e.query.tab = t.value, b(t, (
|
13
|
-
p.replace({ query: { ...e.query, tab:
|
14
|
-
}), (
|
15
|
-
c("header",
|
16
|
-
|
17
|
-
a.user._id ===
|
14
|
+
return e.query.tab = t.value, b(t, (i) => {
|
15
|
+
p.replace({ query: { ...e.query, tab: i } });
|
16
|
+
}), (i, l) => (s(), n("div", P, [
|
17
|
+
c("header", $, [
|
18
|
+
N,
|
19
|
+
a.user._id === o(e).params._id ? (s(), n("button", {
|
18
20
|
key: 0,
|
19
|
-
onClick: l[0] || (l[0] = (
|
21
|
+
onClick: l[0] || (l[0] = (r) => i.$router.push({
|
20
22
|
name: "Create BlogPost"
|
21
23
|
})),
|
22
24
|
class: "radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second"
|
23
|
-
}, " + ")) :
|
25
|
+
}, " + ")) : d("", !0)
|
24
26
|
]),
|
25
|
-
a.user._id ===
|
27
|
+
a.user._id === o(e).params._id ? (s(), m(q, {
|
26
28
|
key: 0,
|
27
29
|
selected: t.value,
|
28
|
-
"onUpdate:selected": l[1] || (l[1] = (
|
30
|
+
"onUpdate:selected": l[1] || (l[1] = (r) => t.value = r),
|
29
31
|
tabs: [
|
30
32
|
{ name: "My posts", value: "posts" },
|
31
33
|
{ name: "Drafts", value: "drafts" },
|
32
34
|
{ name: "Following", value: "following" }
|
33
35
|
],
|
34
36
|
class: "mn-b-small o-hidden h5 radius-big bg-light"
|
35
|
-
}, null, 8, ["selected"])) :
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
37
|
+
}, null, 8, ["selected"])) : d("", !0),
|
38
|
+
g(x, {
|
39
|
+
showLoadMore: !1,
|
40
|
+
states: {
|
41
|
+
empty: {
|
42
|
+
title: "No Blog Posts Found",
|
43
|
+
description: "Currently, there are no posts available in this blog. Please check back later."
|
44
|
+
}
|
45
|
+
},
|
46
|
+
store: {
|
47
|
+
read: (r) => C(r)
|
48
|
+
},
|
49
|
+
options: {
|
50
|
+
limit: 15,
|
51
|
+
category: o(e).params.category,
|
52
|
+
period: o(e).query.period,
|
53
|
+
status: t.value === "drafts" ? "draft" : "published",
|
54
|
+
user: a.user._id,
|
55
|
+
creator: ["posts", "drafts"].includes(t.value) ? o(e).params._id : null,
|
56
|
+
following: t.value === "following" ? a.user._id : null
|
57
|
+
},
|
58
|
+
class: "row-1 gap-thin"
|
59
|
+
}, {
|
60
|
+
default: h(({ items: r }) => [
|
61
|
+
(s(!0), n(v, null, y(r, (u) => (s(), m(B, {
|
62
|
+
key: u._id,
|
63
|
+
blogpost: u,
|
64
|
+
user: a.user._id,
|
65
|
+
class: "h-max-40r mn-b-medium"
|
66
|
+
}, null, 8, ["blogpost", "user"]))), 128))
|
67
|
+
]),
|
68
|
+
_: 1
|
69
|
+
}, 8, ["store", "options"])
|
52
70
|
]));
|
53
71
|
}
|
54
72
|
};
|
55
73
|
export {
|
56
|
-
|
74
|
+
O as default
|
57
75
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const i=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const i=require("../../../../components/Field/Field.vue.cjs"),u=require("../../../../components/Button/Button.vue.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,7 +1,7 @@
|
|
1
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";
|
2
2
|
/* empty css */
|
3
|
-
import t from "../../../../components/Field/Field.
|
4
|
-
import h from "../../../../components/Button/Button.
|
3
|
+
import t from "../../../../components/Field/Field.vue.js";
|
4
|
+
import h from "../../../../components/Button/Button.vue.js";
|
5
5
|
import S from "../../../../components/UploadImage/UploadImage.vue.js";
|
6
6
|
import z from "../sections/ProfileCompletion.vue.js";
|
7
7
|
import { useRoute as R, useRouter as $ } from "vue-router";
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../localization/Wallet.json.cjs"),o=require("vue-i18n"),r={class:"mn-b-small t-center t-bold"},a={class:"radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center"},i={class:"t-semi"},u=e.createElementVNode("h3",{class:"t-semi"}," 500 WDT ",-1),d={__name:"CardBalanceReplenished",emits:["close"],setup(m,{emit:s}){const l=s,{t}=o.useI18n({useScope:"global",...c.default});function n(){l("close")}return(b,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",r,e.toDisplayString(e.unref(t)("balanceReplenished")),1),e.createElementVNode("div",a,[e.createElementVNode("h3",i,e.toDisplayString(e.unref(t)("youReceived")),1),u]),e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:n},e.toDisplayString(e.unref(t)("backToWallet")),1)],64))}};exports.default=d;
|
package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
import { openBlock as a, createElementBlock as i, Fragment as r, createElementVNode as e, toDisplayString as s, unref as l } from "vue";
|
2
|
+
import m from "../../localization/Wallet.json.js";
|
3
|
+
import { useI18n as d } from "vue-i18n";
|
4
|
+
const p = { class: "mn-b-small t-center t-bold" }, u = { class: "radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center" }, b = { class: "t-semi" }, _ = /* @__PURE__ */ e("h3", { class: "t-semi" }, " 500 WDT ", -1), B = {
|
5
|
+
__name: "CardBalanceReplenished",
|
6
|
+
emits: ["close"],
|
7
|
+
setup(f, { emit: c }) {
|
8
|
+
const o = c, { t } = d({
|
9
|
+
useScope: "global",
|
10
|
+
...m
|
11
|
+
});
|
12
|
+
function n() {
|
13
|
+
o("close");
|
14
|
+
}
|
15
|
+
return (h, x) => (a(), i(r, null, [
|
16
|
+
e("h2", p, s(l(t)("balanceReplenished")), 1),
|
17
|
+
e("div", u, [
|
18
|
+
e("h3", b, s(l(t)("youReceived")), 1),
|
19
|
+
_
|
20
|
+
]),
|
21
|
+
e("button", {
|
22
|
+
class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
|
23
|
+
onClick: n
|
24
|
+
}, s(l(t)("backToWallet")), 1)
|
25
|
+
], 64));
|
26
|
+
}
|
27
|
+
};
|
28
|
+
export {
|
29
|
+
B as default
|
30
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../localization/Wallet.json.cjs"),o=require("../../../../components/Field/Field.vue.cjs"),u=require("vue-i18n"),m=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Deposit with card",-1),d={class:"bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between"},b=e.createElementVNode("div",{class:"uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi"}," USD ",-1),p=e.createElementVNode("h3",{class:"t-semi"},"You will receieve: 0 WDT",-1),f={__name:"CardDeposite",emits:["back-selection","switch-menu"],setup(_,{emit:c}){const s=c,{t}=u.useI18n({useScope:"global",...a.default});function i(){s("back-selection")}function r(n=0){s("switch-menu",n)}return(n,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m,e.createElementVNode("div",d,[e.createVNode(o.default,{placeholder:e.unref(t)("enterAmount"),class:"pd-medium radius-small"},null,8,["placeholder"]),b]),p,e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:l[0]||(l[0]=h=>r(3))},e.toDisplayString(e.unref(t)("pay")),1),e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:i},e.toDisplayString(e.unref(t)("backToSelection")),1)],64))}};exports.default=f;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { openBlock as m, createElementBlock as u, Fragment as p, createElementVNode as e, createVNode as d, unref as s, toDisplayString as c } from "vue";
|
2
|
+
import b from "../../localization/Wallet.json.js";
|
3
|
+
import f from "../../../../components/Field/Field.vue.js";
|
4
|
+
import { useI18n as _ } from "vue-i18n";
|
5
|
+
const h = /* @__PURE__ */ e("h2", { class: "mn-b-small t-center t-bold" }, "Deposit with card", -1), k = { class: "bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between" }, x = /* @__PURE__ */ e("div", { class: "uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi" }, " USD ", -1), g = /* @__PURE__ */ e("h3", { class: "t-semi" }, "You will receieve: 0 WDT", -1), j = {
|
6
|
+
__name: "CardDeposite",
|
7
|
+
emits: ["back-selection", "switch-menu"],
|
8
|
+
setup(w, { emit: o }) {
|
9
|
+
const n = o, { t } = _({
|
10
|
+
useScope: "global",
|
11
|
+
...b
|
12
|
+
});
|
13
|
+
function r() {
|
14
|
+
n("back-selection");
|
15
|
+
}
|
16
|
+
function a(i = 0) {
|
17
|
+
n("switch-menu", i);
|
18
|
+
}
|
19
|
+
return (i, l) => (m(), u(p, null, [
|
20
|
+
h,
|
21
|
+
e("div", k, [
|
22
|
+
d(f, {
|
23
|
+
placeholder: s(t)("enterAmount"),
|
24
|
+
class: "pd-medium radius-small"
|
25
|
+
}, null, 8, ["placeholder"]),
|
26
|
+
x
|
27
|
+
]),
|
28
|
+
g,
|
29
|
+
e("button", {
|
30
|
+
class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
|
31
|
+
onClick: l[0] || (l[0] = (y) => a(3))
|
32
|
+
}, c(s(t)("pay")), 1),
|
33
|
+
e("button", {
|
34
|
+
class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
|
35
|
+
onClick: r
|
36
|
+
}, c(s(t)("backToSelection")), 1)
|
37
|
+
], 64));
|
38
|
+
}
|
39
|
+
};
|
40
|
+
export {
|
41
|
+
j as default
|
42
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Deposit with cash",-1),o=e.createElementVNode("p",{class:"t-transp t-center"}," You need to go to casse to topup balance ",-1),l=e.createElementVNode("div",{class:"w-100 bg-grey radius-medium mn-t-medium mn-b-medium",style:{height:"152px"}},null,-1),a={__name:"CashDeposite",emits:["back-selection"],setup(i,{emit:t}){const s=t;function n(){s("back-selection")}return(r,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c,o,l,e.createElementVNode("button",{class:"w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:n},"Back to selection ")],64))}};exports.default=a;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { openBlock as c, createElementBlock as o, Fragment as a, createElementVNode as t } from "vue";
|
2
|
+
const i = /* @__PURE__ */ t("h2", { class: "mn-b-small t-center t-bold" }, "Deposit with cash", -1), l = /* @__PURE__ */ t("p", { class: "t-transp t-center" }, " You need to go to casse to topup balance ", -1), m = /* @__PURE__ */ t("div", {
|
3
|
+
class: "w-100 bg-grey radius-medium mn-t-medium mn-b-medium",
|
4
|
+
style: { height: "152px" }
|
5
|
+
}, null, -1), b = {
|
6
|
+
__name: "CashDeposite",
|
7
|
+
emits: ["back-selection"],
|
8
|
+
setup(r, { emit: e }) {
|
9
|
+
const s = e;
|
10
|
+
function n() {
|
11
|
+
s("back-selection");
|
12
|
+
}
|
13
|
+
return (d, p) => (c(), o(a, null, [
|
14
|
+
i,
|
15
|
+
l,
|
16
|
+
m,
|
17
|
+
t("button", {
|
18
|
+
class: "w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
|
19
|
+
onClick: n
|
20
|
+
}, "Back to selection ")
|
21
|
+
], 64));
|
22
|
+
}
|
23
|
+
};
|
24
|
+
export {
|
25
|
+
b as default
|
26
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../localization/Wallet.json.cjs"),a=require("../../../../components/Field/Field.vue.cjs"),u=require("vue-i18n"),m={class:"mn-b-small t-center t-bold"},d={class:"bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between"},p=e.createElementVNode("div",{class:"uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi"}," POLY USDT ",-1),b=e.createElementVNode("h3",{class:"t-semi"},"You will receieve: 0 WDT",-1),f={__name:"CryptoDeposite",emits:["back-selection","switch-menu"],setup(_,{emit:i}){const n=i,{t}=u.useI18n({useScope:"global",...o.default});function r(){n("back-selection")}function c(s=0){n("switch-menu",s)}return(s,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",m,e.toDisplayString(e.unref(t)("depositeWithCrypto")),1),e.createElementVNode("div",d,[e.createVNode(a.default,{placeholder:e.unref(t)("enterAmount"),class:"pd-medium radius-small"},null,8,["placeholder"]),p]),b,e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:l[0]||(l[0]=h=>c(3))},e.toDisplayString(e.unref(t)("pay")),1),e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:r},e.toDisplayString(e.unref(t)("backToSelection")),1)],64))}};exports.default=f;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { openBlock as a, createElementBlock as p, Fragment as u, createElementVNode as e, toDisplayString as n, unref as s, createVNode as d } from "vue";
|
2
|
+
import b from "../../localization/Wallet.json.js";
|
3
|
+
import f from "../../../../components/Field/Field.vue.js";
|
4
|
+
import { useI18n as _ } from "vue-i18n";
|
5
|
+
const h = { class: "mn-b-small t-center t-bold" }, k = { class: "bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between" }, x = /* @__PURE__ */ e("div", { class: "uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi" }, " POLY USDT ", -1), g = /* @__PURE__ */ e("h3", { class: "t-semi" }, "You will receieve: 0 WDT", -1), T = {
|
6
|
+
__name: "CryptoDeposite",
|
7
|
+
emits: ["back-selection", "switch-menu"],
|
8
|
+
setup(w, { emit: c }) {
|
9
|
+
const i = c, { t } = _({
|
10
|
+
useScope: "global",
|
11
|
+
...b
|
12
|
+
});
|
13
|
+
function r() {
|
14
|
+
i("back-selection");
|
15
|
+
}
|
16
|
+
function m(l = 0) {
|
17
|
+
i("switch-menu", l);
|
18
|
+
}
|
19
|
+
return (l, o) => (a(), p(u, null, [
|
20
|
+
e("h2", h, n(s(t)("depositeWithCrypto")), 1),
|
21
|
+
e("div", k, [
|
22
|
+
d(f, {
|
23
|
+
placeholder: s(t)("enterAmount"),
|
24
|
+
class: "pd-medium radius-small"
|
25
|
+
}, null, 8, ["placeholder"]),
|
26
|
+
x
|
27
|
+
]),
|
28
|
+
g,
|
29
|
+
e("button", {
|
30
|
+
class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
|
31
|
+
onClick: o[0] || (o[0] = (y) => m(3))
|
32
|
+
}, n(s(t)("pay")), 1),
|
33
|
+
e("button", {
|
34
|
+
class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
|
35
|
+
onClick: r
|
36
|
+
}, n(s(t)("backToSelection")), 1)
|
37
|
+
], 64));
|
38
|
+
}
|
39
|
+
};
|
40
|
+
export {
|
41
|
+
T as default
|
42
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-default":{pay:"pay",youReceived:"you received",enterAmount:"enter amount to top up",backToWallet:"back to wallet",backToSelection:"back to selection",balanceReplenished:"balance replenished",depositeWithCrypto:"deposite with crypto"},"ru-default":{pay:"купить",youReceived:"вы пополнили на сумму",enterAmount:"введите сумму для пополнения",backToWallet:"назад к кошельку",backToSelection:"назад к списку",balanceReplenished:"баланс пополнен",depositeWithCrypto:"пополнение криптовалютой"}},t={messages:e};exports.default=t;exports.messages=e;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
const e = {
|
2
|
+
"en-default": {
|
3
|
+
pay: "pay",
|
4
|
+
youReceived: "you received",
|
5
|
+
enterAmount: "enter amount to top up",
|
6
|
+
backToWallet: "back to wallet",
|
7
|
+
backToSelection: "back to selection",
|
8
|
+
balanceReplenished: "balance replenished",
|
9
|
+
depositeWithCrypto: "deposite with crypto"
|
10
|
+
},
|
11
|
+
"ru-default": {
|
12
|
+
pay: "купить",
|
13
|
+
youReceived: "вы пополнили на сумму",
|
14
|
+
enterAmount: "введите сумму для пополнения",
|
15
|
+
backToWallet: "назад к кошельку",
|
16
|
+
backToSelection: "назад к списку",
|
17
|
+
balanceReplenished: "баланс пополнен",
|
18
|
+
depositeWithCrypto: "пополнение криптовалютой"
|
19
|
+
}
|
20
|
+
}, t = {
|
21
|
+
messages: e
|
22
|
+
};
|
23
|
+
export {
|
24
|
+
t as default,
|
25
|
+
e as messages
|
26
|
+
};
|
@@ -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"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../store/wallet.store.cjs"),d=require("web3");require("vue-router");const m=require("../../../../../components/Popup/Popup.vue.cjs");;/* empty css */;/* empty css */;/* empty css */require("../../../../reports/store/reports.cjs");;/* empty css */;/* empty css */require("../../../../auth/store/auth.cjs");require("../../../../organizations/store/memberships.cjs");require("../../../../community/store/reactions.cjs");;/* empty css */const u=require("../../../components/blocks/CashDeposite.vue.cjs"),p=require("../../../components/blocks/CardDeposite.vue.cjs"),b=require("../../../components/blocks/CryptoDeposite.vue.cjs"),k=require("../../../components/blocks/CardBalanceReplenished.vue.cjs"),h={class:"pd-thin"},_={class:"bg-black t-white mn-b-thin radius-big pd-big"},f=e.createElementVNode("h1",{class:"mn-b-medium"},"Your Wallet",-1),g=e.createElementVNode("p",{class:"mn-b-semi t-transp p-big"}," Earn Weeder Tokens by purchasing our weed or contributing to the community. ",-1),E={key:0,class:"gap-thin mn-b-thin flex-nowrap bg-black radius-extra t-white br-solid br-white-transp-10 br-1px flex-v-center flex pd-medium"},w={class:"flex-v-center flex-nowrap flex mn-r-auto"},N={key:1,class:"w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"},V=e.createElementVNode("p",{class:"t-transp t-medium mn-b-thin"},"You own:",-1),B={class:"h1 mn-b-small"},y=e.createElementVNode("p",{class:"t-white p-big t-medium mn-b-semi"},"of all shares",-1),C={class:"flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra"},v={key:0,class:"t-transp t-medium"},x=e.createElementVNode("span",{class:"uppercase p-small t-medium t-transp"},"Connected Metamask",-1),q=e.createElementVNode("br",null,null,-1),D={key:0,class:"mn-b-semi cols-2 gap-thin"},S=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),W={class:"w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light"},M={key:0,class:"mn-b-small"},P={key:1,class:"mn-b-small"},R={class:"cols-3 gap-thin"},T={class:"radius-medium bg-light"},$={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},G={class:"t-semi mn-r-auto"},O={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},A={class:"pd-medium"},F={class:"t-regular mn-b-thin"},L={key:2,class:"mn-b-small"},Y={class:"cols-3 gap-thin"},j={class:"radius-medium bg-grey"},H={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},z={class:"t-semi mn-r-auto"},I={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},J={class:"pd-medium"},K={class:"t-regular mn-b-thin"},Q={key:0},U=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Choose the way of deposit",-1),X={__name:"Wallet",setup(Z){window.ethereum.on("accountsChanged",a=>{a.length<1&&(t.state.account=null)}),t.state.web3=new d(window.ethereum||"http://localhost:8080"),e.onMounted(()=>{t.actions.listRewards(),t.actions.tryReconnectWallet()});const r=e.ref(!1),l=e.ref(0);function s(a){l.value=a}function i(){r.value=!0}function c(){r.value=!1,l.value=0}return(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("section",h,[e.createElementVNode("section",_,[f,g,e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",w,[e.createElementVNode("h2",null,e.toDisplayString(e.unref(t.state).tokenBalance)+" WDT",1)]),e.createElementVNode("button",{onClick:i,class:"w-max bg-main t-medium button"},"Get More"),e.createElementVNode("button",{class:"w-max bg-white t-black t-medium button",onClick:o[0]||(o[0]=(...n)=>e.unref(t.actions).collectRewards&&e.unref(t.actions).collectRewards(...n))},"Withdraw")])):e.createCommentVNode("",!0),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",N,[V,e.createElementVNode("p",B,e.toDisplayString(e.unref(t.state).share)+"%",1),y,e.createElementVNode("div",C,[e.unref(t.state).account?(e.openBlock(),e.createElementBlock("p",v,[x,q,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:o[1]||(o[1]=(...n)=>e.unref(t.actions).disconnectWallet&&e.unref(t.actions).disconnectWallet(...n)),class:"mn-l-auto bg-red button"}," Disconnect Wallet ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",D,[S,e.createElementVNode("div",W,[e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",M," Connect Metamask to withdrawal your earnings. ")),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[2]||(o[2]=(...n)=>e.unref(t.actions).connectWallet&&e.unref(t.actions).connectWallet(...n)),class:"br-solid br-2px br-black-transp-10 t-black button"}," Connect Wallet "))])])),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",P,"Latest Rewards ")):e.createCommentVNode("",!0),e.createElementVNode("section",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",$,[e.createElementVNode("p",G,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",O,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",A,[e.createElementVNode("h4",F,e.toDisplayString(n.name),1)])]))),256))]),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",L,"Activity")):e.createCommentVNode("",!0),e.createElementVNode("section",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",H,[e.createElementVNode("p",z,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",I,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",J,[e.createElementVNode("h4",K,e.toDisplayString(n.name),1)])]))),256))])]),e.createVNode(m.default,{title:"Добавить участника",onClosePopup:c,isPopupOpen:r.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[l.value===0?(e.openBlock(),e.createElementBlock("div",Q,[U,e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[3]||(o[3]=n=>s(1))}," CASH "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[4]||(o[4]=n=>s(2))}," CARD "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[5]||(o[5]=n=>s(4))}," CRYPTO ")])):e.createCommentVNode("",!0),l.value===1?(e.openBlock(),e.createBlock(u.default,{key:1,onBackSelection:o[6]||(o[6]=n=>s(0))})):e.createCommentVNode("",!0),l.value===2?(e.openBlock(),e.createBlock(p.default,{key:2,onBackSelection:o[7]||(o[7]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0),l.value===3?(e.openBlock(),e.createBlock(k.default,{key:3,onClose:c})):e.createCommentVNode("",!0),l.value===4?(e.openBlock(),e.createBlock(b.default,{key:4,onBackSelection:o[8]||(o[8]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0)]),_:1},8,["isPopupOpen"])],64))}};exports.default=X;
|