@ozdao/prometheus-framework 0.2.133 → 0.2.135
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_virtual/alignment-pattern.cjs +1 -0
- package/dist/_virtual/alignment-pattern.js +4 -0
- package/dist/_virtual/browser.cjs +1 -0
- package/dist/_virtual/browser.js +4 -0
- package/dist/_virtual/canvas.cjs +1 -0
- package/dist/_virtual/canvas.js +4 -0
- package/dist/_virtual/dijkstra.cjs +1 -0
- package/dist/_virtual/dijkstra.js +4 -0
- package/dist/_virtual/error-correction-code.cjs +1 -0
- package/dist/_virtual/error-correction-code.js +4 -0
- package/dist/_virtual/error-correction-level.cjs +1 -0
- package/dist/_virtual/error-correction-level.js +4 -0
- package/dist/_virtual/finder-pattern.cjs +1 -0
- package/dist/_virtual/finder-pattern.js +4 -0
- package/dist/_virtual/format-info.cjs +1 -0
- package/dist/_virtual/format-info.js +4 -0
- package/dist/_virtual/galois-field.cjs +1 -0
- package/dist/_virtual/galois-field.js +4 -0
- package/dist/_virtual/mask-pattern.cjs +1 -0
- package/dist/_virtual/mask-pattern.js +4 -0
- package/dist/_virtual/mode.cjs +1 -0
- package/dist/_virtual/mode.js +4 -0
- package/dist/_virtual/polynomial.cjs +1 -0
- package/dist/_virtual/polynomial.js +4 -0
- package/dist/_virtual/qrcode.cjs +1 -0
- package/dist/_virtual/qrcode.js +4 -0
- package/dist/_virtual/regex.cjs +1 -0
- package/dist/_virtual/regex.js +4 -0
- package/dist/_virtual/segments.cjs +1 -0
- package/dist/_virtual/segments.js +4 -0
- package/dist/_virtual/svg-tag.cjs +1 -0
- package/dist/_virtual/svg-tag.js +4 -0
- package/dist/_virtual/utils.cjs +1 -0
- package/dist/_virtual/utils.js +4 -0
- package/dist/_virtual/utils2.cjs +1 -0
- package/dist/_virtual/utils2.js +4 -0
- package/dist/_virtual/version-check.cjs +1 -0
- package/dist/_virtual/version-check.js +4 -0
- package/dist/_virtual/version.cjs +1 -0
- package/dist/_virtual/version.js +4 -0
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- 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 +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-C-8xOJnM.mjs +244 -0
- package/dist/index-CDbtWkBj.js +243 -0
- package/dist/main-5IrI2IOV.js +92 -0
- package/dist/main-BY2OvGB9.mjs +14509 -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/dijkstrajs/dijkstra.cjs +1 -0
- package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
- package/dist/node_modules/encode-utf8/index.cjs +1 -0
- package/dist/node_modules/encode-utf8/index.js +30 -0
- package/dist/node_modules/qrcode/lib/browser.cjs +1 -0
- package/dist/node_modules/qrcode/lib/browser.js +45 -0
- package/dist/node_modules/qrcode/lib/can-promise.cjs +1 -0
- package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
- package/dist/node_modules/qrcode/lib/core/alignment-pattern.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
- package/dist/node_modules/qrcode/lib/core/alphanumeric-data.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
- package/dist/node_modules/qrcode/lib/core/bit-buffer.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
- package/dist/node_modules/qrcode/lib/core/bit-matrix.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
- package/dist/node_modules/qrcode/lib/core/byte-data.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/byte-data.js +24 -0
- package/dist/node_modules/qrcode/lib/core/error-correction-code.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
- package/dist/node_modules/qrcode/lib/core/error-correction-level.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
- package/dist/node_modules/qrcode/lib/core/finder-pattern.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
- package/dist/node_modules/qrcode/lib/core/format-info.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
- package/dist/node_modules/qrcode/lib/core/galois-field.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
- package/dist/node_modules/qrcode/lib/core/kanji-data.cjs +2 -0
- package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
- package/dist/node_modules/qrcode/lib/core/mask-pattern.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
- package/dist/node_modules/qrcode/lib/core/mode.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
- package/dist/node_modules/qrcode/lib/core/numeric-data.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
- package/dist/node_modules/qrcode/lib/core/polynomial.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
- package/dist/node_modules/qrcode/lib/core/qrcode.cjs +4 -0
- package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
- package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
- package/dist/node_modules/qrcode/lib/core/regex.cjs +2 -0
- package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
- package/dist/node_modules/qrcode/lib/core/segments.cjs +2 -0
- package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
- package/dist/node_modules/qrcode/lib/core/utils.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
- package/dist/node_modules/qrcode/lib/core/version-check.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
- package/dist/node_modules/qrcode/lib/core/version.cjs +1 -0
- package/dist/node_modules/qrcode/lib/core/version.js +74 -0
- package/dist/node_modules/qrcode/lib/renderer/canvas.cjs +1 -0
- package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
- package/dist/node_modules/qrcode/lib/renderer/svg-tag.cjs +2 -0
- package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
- package/dist/node_modules/qrcode/lib/renderer/utils.cjs +1 -0
- package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
- 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/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +19 -20
- 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/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 +16 -16
- 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 +16 -16
- 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 +13 -13
- 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 +36 -36
- 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 +29 -29
- 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/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +23 -23
- 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 +2 -2
- 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 +14 -14
- 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 +2 -2
- 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 +12 -12
- 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 +21 -21
- 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 +1 -1
- 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 +5 -5
- 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 +7 -7
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +8 -8
- 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/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/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
- 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 +5 -5
- 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 +8 -8
- 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 +1 -1
- 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 +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 +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 +1 -1
- 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 +76 -46
- 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 +12 -12
- 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 +16 -16
- 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 +6 -6
- 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 +19 -19
- 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 +1 -1
- 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 +7 -7
- 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 +13 -13
- 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 +18 -18
- 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 +32 -32
- 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 +10 -10
- 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 +5 -5
- 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 +3 -3
- 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/spots/components/blocks/SpotMemberModify.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +64 -0
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.js +24 -0
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +181 -0
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +478 -0
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +121 -0
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +203 -0
- package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -0
- package/dist/prometheus-framework/src/modules/spots/router/spots.js +92 -0
- package/dist/prometheus-framework/src/modules/spots/spots.client.cjs +1 -0
- package/dist/prometheus-framework/src/modules/spots/spots.client.js +37 -0
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +4 -4
- 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 +9 -9
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js +34 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +76 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js +105 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +106 -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 +140 -125
- package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.js +41 -0
- package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +98 -22
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/spots.server.js +169 -0
- package/dist/spots.server.mjs +170 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +103 -13
- package/dist/wallet.server.mjs +103 -13
- package/dist/web-5eyiz9L7.mjs +54 -0
- package/dist/web-C04IcLk4.js +1 -0
- package/package.json +1 -1
- package/src/components/Field/Field.vue +1 -1
- package/src/modules/community/components/pages/Blog.vue +1 -1
- package/src/modules/globals/components/layouts/Client.vue +10 -8
- package/src/modules/globals/components/partials/Header.vue +2 -2
- package/src/modules/globals/components/sections/Walkthrough.vue +4 -4
- package/src/modules/globals/globals.client.js +5 -5
- package/src/modules/globals/localization/vue-i18n.js +5 -5
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -3
- package/src/modules/landing/components/sections/SectionEarn.vue +1 -6
- package/src/modules/middlewares/server/authSecret.js +22 -0
- package/src/modules/middlewares/server/index.js +7 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +29 -1
- package/src/modules/spots/components/layouts/Spots.vue +1 -1
- package/src/modules/spots/components/pages/SpotEdit.vue +8 -53
- package/src/modules/spots/models/spot.model.js +7 -7
- package/src/modules/spots/router/spots.js +65 -61
- package/src/modules/spots/spots.client.js +43 -0
- package/src/modules/spots/spots.server.js +31 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -2
- package/src/modules/wallet/controllers/routes/rewards.routes.js +27 -3
- package/src/modules/wallet/models/wallet.model.js +5 -5
- package/src/modules/wallet/{components → views/components}/blocks/CardBalanceReplenished.vue +17 -7
- package/src/modules/wallet/{components/blocks/CardDeposite.vue → views/components/blocks/CardDeposit.vue} +4 -4
- package/src/modules/wallet/views/components/blocks/CryptoDeposit.vue +98 -0
- package/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue +144 -0
- package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +131 -0
- package/src/modules/wallet/views/components/pages/Wallet.vue +95 -68
- package/src/modules/wallet/views/localization/wallet.json +37 -0
- package/src/modules/wallet/views/store/wallet.store.js +145 -28
- package/src/modules/wallet/wallet.server.js +2 -2
- package/src/modules/spots/components/sections/PlaceModify.vue +0 -113
- package/src/modules/spots/components/sections/Places.vue +0 -119
- package/src/modules/wallet/components/blocks/CryptoDeposite.vue +0 -55
- package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +0 -181
- package/src/modules/wallet/controllers/factories/rewards.factory.population.js +0 -213
- package/src/modules/wallet/localization/Wallet.json +0 -22
- /package/src/modules/wallet/{components/blocks/CashDeposite.vue → views/components/blocks/CashDeposit.vue} +0 -0
@@ -0,0 +1,203 @@
|
|
1
|
+
import { ref as b, onMounted as E, openBlock as p, createElementBlock as m, createVNode as e, withCtx as n, createElementVNode as d, toDisplayString as D, unref as N, createTextVNode as v, Fragment as h, renderList as _ } from "vue";
|
2
|
+
import { useRouter as k, useRoute as $ } from "vue-router";
|
3
|
+
import u from "../../../../components/Block/Block.vue.js";
|
4
|
+
import K from "../../../../components/UploadImage/UploadImage.vue.js";
|
5
|
+
/* empty css */
|
6
|
+
import c from "../../../../components/Field/Field.vue.js";
|
7
|
+
import O from "../../../../components/Select/Select.vue.js";
|
8
|
+
import f from "../../../../components/Checkbox/Checkbox.vue.js";
|
9
|
+
import A from "../../../../components/Address/Address.vue2.js";
|
10
|
+
import x from "../../../../components/LocationMarker/LocationMarker.vue2.js";
|
11
|
+
import g from "../../../../components/Button/Button.vue.js";
|
12
|
+
import "vue-i18n";
|
13
|
+
/* empty css */
|
14
|
+
import { actions as r, state as a } from "../../store/spots.js";
|
15
|
+
const z = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, G = { class: "mn-r-auto" }, L = { class: "cols-2 gap-thin" }, M = { class: "gap-small mn-b-small cols-2-fit-content" }, T = { class: "w-100" }, V = /* @__PURE__ */ d("p", { class: "p-medium mn-b-small" }, "Please the available delivery options:", -1), B = /* @__PURE__ */ d("p", { class: "p-medium mn-b-small" }, "Please select the available payment methods:", -1), C = /* @__PURE__ */ d("p", { class: "mn-b-small p-medium" }, "Options:", -1), sa = {
|
16
|
+
__name: "SpotEdit",
|
17
|
+
setup(I) {
|
18
|
+
const w = k(), l = $();
|
19
|
+
b("details"), b(!1), E(async () => {
|
20
|
+
await y();
|
21
|
+
});
|
22
|
+
async function y() {
|
23
|
+
var t, s;
|
24
|
+
l.params.spot && await r.readOne(l.params.spot);
|
25
|
+
const i = (t = a.spot.location) == null ? void 0 : t.coordinates[0], o = (s = a.spot.location) == null ? void 0 : s.coordinates[1];
|
26
|
+
a.spot.location = {
|
27
|
+
lat: o || 1,
|
28
|
+
lng: i || 1
|
29
|
+
};
|
30
|
+
}
|
31
|
+
async function S() {
|
32
|
+
a.spot.location = {
|
33
|
+
type: "Point",
|
34
|
+
coordinates: [a.spot.location.lng, a.spot.location.lat]
|
35
|
+
}, l.params.spot && await r.update(
|
36
|
+
l.params._id,
|
37
|
+
a.spot
|
38
|
+
), l.params.spot || await r.create(
|
39
|
+
l.params._id,
|
40
|
+
a.spot
|
41
|
+
);
|
42
|
+
}
|
43
|
+
function U() {
|
44
|
+
w.replace({ name: "Spot", params: { _id: l.params._id, spot: a.spot._id } });
|
45
|
+
}
|
46
|
+
async function P() {
|
47
|
+
await r.delete(
|
48
|
+
l.params._id,
|
49
|
+
a.spot
|
50
|
+
);
|
51
|
+
}
|
52
|
+
return (i, o) => (p(), m("div", z, [
|
53
|
+
e(u, { class: "flex-nowrap flex-v-center flex" }, {
|
54
|
+
default: n(() => [
|
55
|
+
d("h1", G, D(N(l).params.spot ? a.spot.profile.name : "Create Spot"), 1),
|
56
|
+
e(g, {
|
57
|
+
submit: S,
|
58
|
+
callback: U,
|
59
|
+
class: "bg-main"
|
60
|
+
}, {
|
61
|
+
default: n(() => [
|
62
|
+
v(" Save Spot ")
|
63
|
+
]),
|
64
|
+
_: 1
|
65
|
+
})
|
66
|
+
]),
|
67
|
+
_: 1
|
68
|
+
}),
|
69
|
+
d("div", L, [
|
70
|
+
e(u, {
|
71
|
+
title: "Profile",
|
72
|
+
class: "mn-b-semi"
|
73
|
+
}, {
|
74
|
+
default: n(() => [
|
75
|
+
d("div", M, [
|
76
|
+
e(K, {
|
77
|
+
photo: a.spot.profile.photo,
|
78
|
+
"onUpdate:photo": o[0] || (o[0] = (t) => a.spot.profile.photo = t),
|
79
|
+
uploadPath: "organizations/" + a.spot.name + "/avatars",
|
80
|
+
class: "aspect-1x1 w-8r o-hidden radius-extra"
|
81
|
+
}, null, 8, ["photo", "uploadPath"]),
|
82
|
+
d("div", T, [
|
83
|
+
e(c, {
|
84
|
+
field: a.spot.profile.name,
|
85
|
+
"onUpdate:field": o[1] || (o[1] = (t) => a.spot.profile.name = t),
|
86
|
+
label: "Name",
|
87
|
+
placeholder: "Spot Name",
|
88
|
+
class: "mn-b-small bg-white radius-small pd-medium",
|
89
|
+
validation: i.organizationName
|
90
|
+
}, null, 8, ["field", "validation"]),
|
91
|
+
e(c, {
|
92
|
+
field: a.spot.profile.description,
|
93
|
+
"onUpdate:field": o[2] || (o[2] = (t) => a.spot.profile.description = t),
|
94
|
+
label: "Description",
|
95
|
+
placeholder: "Spot description (max 120 symbols)",
|
96
|
+
class: "bg-white radius-small pd-medium",
|
97
|
+
validation: i.organizationName
|
98
|
+
}, null, 8, ["field", "validation"])
|
99
|
+
])
|
100
|
+
]),
|
101
|
+
e(O, {
|
102
|
+
select: a.spot.status,
|
103
|
+
"onUpdate:select": o[3] || (o[3] = (t) => a.spot.status = t),
|
104
|
+
label: "Status",
|
105
|
+
options: [
|
106
|
+
"unpublished",
|
107
|
+
"published",
|
108
|
+
"archivied"
|
109
|
+
],
|
110
|
+
placeholder: "Display product",
|
111
|
+
class: "pos-relative w-100 mn-b-small bg-white radius-small pd-medium"
|
112
|
+
}, null, 8, ["select"]),
|
113
|
+
V,
|
114
|
+
(p(), m(h, null, _(["pickup", "courier", "post"], (t) => e(f, {
|
115
|
+
label: t,
|
116
|
+
name: "Delivery",
|
117
|
+
value: t,
|
118
|
+
class: "w-100 mn-b-small bg-white radius-small pd-small",
|
119
|
+
radio: a.spot.delivery,
|
120
|
+
"onUpdate:radio": o[4] || (o[4] = (s) => a.spot.delivery = s)
|
121
|
+
}, null, 8, ["label", "value", "radio"])), 64)),
|
122
|
+
B,
|
123
|
+
(p(), m(h, null, _(["cash", "bank transfer", "crypto"], (t) => e(f, {
|
124
|
+
label: t,
|
125
|
+
name: "Payment",
|
126
|
+
value: t,
|
127
|
+
class: "w-100 mn-b-small bg-white radius-small pd-small",
|
128
|
+
radio: a.spot.payment,
|
129
|
+
"onUpdate:radio": o[5] || (o[5] = (s) => a.spot.payment = s)
|
130
|
+
}, null, 8, ["label", "value", "radio"])), 64))
|
131
|
+
]),
|
132
|
+
_: 1
|
133
|
+
}),
|
134
|
+
e(u, {
|
135
|
+
title: "Location",
|
136
|
+
class: "pos-relative"
|
137
|
+
}, {
|
138
|
+
default: n(() => {
|
139
|
+
var t;
|
140
|
+
return [
|
141
|
+
e(A, {
|
142
|
+
apiKey: i.GOOGLE_MAPS_API_KEY,
|
143
|
+
address: a.spot.address,
|
144
|
+
location: a.spot.location,
|
145
|
+
label: "Address",
|
146
|
+
placeholder: "Enter delivery address",
|
147
|
+
class: "bg-white pd-small radius-tl-medium radius-tr-medium",
|
148
|
+
"onUpdate:location": o[6] || (o[6] = (s) => {
|
149
|
+
a.spot.location = s;
|
150
|
+
}),
|
151
|
+
"onUpdate:address": o[7] || (o[7] = (s) => {
|
152
|
+
a.spot.address = s;
|
153
|
+
})
|
154
|
+
}, null, 8, ["apiKey", "address", "location"]),
|
155
|
+
e(x, {
|
156
|
+
apiKey: i.GOOGLE_MAPS_API_KEY,
|
157
|
+
address: a.spot.address,
|
158
|
+
location: a.spot.location,
|
159
|
+
class: "h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden",
|
160
|
+
"onUpdate:location": o[8] || (o[8] = (s) => {
|
161
|
+
a.spot.location = s;
|
162
|
+
}),
|
163
|
+
"onUpdate:address": o[9] || (o[9] = (s) => {
|
164
|
+
a.spot.address = s;
|
165
|
+
})
|
166
|
+
}, null, 8, ["apiKey", "address", "location"]),
|
167
|
+
C,
|
168
|
+
e(f, {
|
169
|
+
label: "Hide address",
|
170
|
+
name: "address",
|
171
|
+
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
172
|
+
radio: (t = a.spot.position) == null ? void 0 : t.hide,
|
173
|
+
"onUpdate:radio": o[10] || (o[10] = (s) => a.spot.position.hide = s)
|
174
|
+
}, null, 8, ["radio"]),
|
175
|
+
e(c, {
|
176
|
+
field: a.spot.minorder,
|
177
|
+
"onUpdate:field": o[11] || (o[11] = (s) => a.spot.minorder = s),
|
178
|
+
label: "Min.order",
|
179
|
+
placeholder: "Enter minimum order value",
|
180
|
+
class: "bg-white radius-small pd-medium",
|
181
|
+
validation: i.organizationName
|
182
|
+
}, null, 8, ["field", "validation"])
|
183
|
+
];
|
184
|
+
}),
|
185
|
+
_: 1
|
186
|
+
})
|
187
|
+
]),
|
188
|
+
e(g, {
|
189
|
+
submit: P,
|
190
|
+
callback: i.redirectToDash,
|
191
|
+
class: "w-100 bg-light"
|
192
|
+
}, {
|
193
|
+
default: n(() => [
|
194
|
+
v("Delete Spot")
|
195
|
+
]),
|
196
|
+
_: 1
|
197
|
+
}, 8, ["callback"])
|
198
|
+
]));
|
199
|
+
}
|
200
|
+
};
|
201
|
+
export {
|
202
|
+
sa as default
|
203
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../globals/components/layouts/Empty.vue.cjs"),r=require("../components/layouts/Spots.vue.cjs"),e=require("../../middlewares/client/auth.validation.cjs"),o={path:"spots",component:t.default,meta:{title:{en:"Spots",ru:"Места"}},children:[{path:":country?",component:r.default,meta:{title:{en:"Spots",ru:"Места"},header_theme:"dark",footer_theme:"dark"},children:[{path:":state?",name:"Spots tate",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs")),children:[{path:":city?",name:"Spots City",component:()=>Promise.resolve().then(()=>require("../components/pages/Map.vue.cjs"))}]}]},{path:":_id/spots/create",name:"Spot Creation",meta:{title:"Создание точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))},{path:":_id/spots/:deparment",name:"Spot",meta:{title:"Точка"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/Spot.vue.cjs"))},{path:":_id/spots/:spot/edit",name:"Spot Edit",meta:{title:"Редактирование точки"},beforeEnter:[e.requiresAuth],component:()=>Promise.resolve().then(()=>require("../components/pages/SpotEdit.vue.cjs"))}]};exports.default=o;
|
@@ -0,0 +1,92 @@
|
|
1
|
+
import e from "../../globals/components/layouts/Empty.vue.js";
|
2
|
+
import o from "../components/layouts/Spots.vue.js";
|
3
|
+
import { requiresAuth as t } from "../../middlewares/client/auth.validation.js";
|
4
|
+
const n = {
|
5
|
+
path: "spots",
|
6
|
+
component: e,
|
7
|
+
meta: {
|
8
|
+
title: {
|
9
|
+
en: "Spots",
|
10
|
+
ru: "Места"
|
11
|
+
}
|
12
|
+
},
|
13
|
+
children: [
|
14
|
+
{
|
15
|
+
path: ":country?",
|
16
|
+
component: o,
|
17
|
+
meta: {
|
18
|
+
title: {
|
19
|
+
en: "Spots",
|
20
|
+
ru: "Места"
|
21
|
+
},
|
22
|
+
header_theme: "dark",
|
23
|
+
footer_theme: "dark"
|
24
|
+
},
|
25
|
+
children: [
|
26
|
+
{
|
27
|
+
path: ":state?",
|
28
|
+
name: "Spots tate",
|
29
|
+
component: () => import(
|
30
|
+
/* webpackChunkName: 'Deliveries' */
|
31
|
+
"../components/pages/Map.vue.js"
|
32
|
+
),
|
33
|
+
children: [
|
34
|
+
{
|
35
|
+
path: ":city?",
|
36
|
+
name: "Spots City",
|
37
|
+
component: () => import(
|
38
|
+
/* webpackChunkName: 'Deliveries' */
|
39
|
+
"../components/pages/Map.vue.js"
|
40
|
+
)
|
41
|
+
}
|
42
|
+
]
|
43
|
+
}
|
44
|
+
]
|
45
|
+
},
|
46
|
+
{
|
47
|
+
path: ":_id/spots/create",
|
48
|
+
name: "Spot Creation",
|
49
|
+
meta: {
|
50
|
+
title: "Создание точки"
|
51
|
+
},
|
52
|
+
beforeEnter: [
|
53
|
+
t
|
54
|
+
],
|
55
|
+
component: () => import(
|
56
|
+
/* webpackChunkName: "spot" */
|
57
|
+
"../components/pages/SpotEdit.vue.js"
|
58
|
+
)
|
59
|
+
},
|
60
|
+
{
|
61
|
+
path: ":_id/spots/:deparment",
|
62
|
+
name: "Spot",
|
63
|
+
meta: {
|
64
|
+
title: "Точка"
|
65
|
+
},
|
66
|
+
beforeEnter: [
|
67
|
+
t
|
68
|
+
],
|
69
|
+
component: () => import(
|
70
|
+
/* webpackChunkName: "spot" */
|
71
|
+
"../components/pages/Spot.vue.js"
|
72
|
+
)
|
73
|
+
},
|
74
|
+
{
|
75
|
+
path: ":_id/spots/:spot/edit",
|
76
|
+
name: "Spot Edit",
|
77
|
+
meta: {
|
78
|
+
title: "Редактирование точки"
|
79
|
+
},
|
80
|
+
beforeEnter: [
|
81
|
+
t
|
82
|
+
],
|
83
|
+
component: () => import(
|
84
|
+
/* webpackChunkName: "spot" */
|
85
|
+
"../components/pages/SpotEdit.vue.js"
|
86
|
+
)
|
87
|
+
}
|
88
|
+
]
|
89
|
+
};
|
90
|
+
export {
|
91
|
+
n as default
|
92
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./store/spots.cjs"),e=require("./router/spots.cjs"),u=require("./components/layouts/Spots.vue.cjs"),s=require("./components/pages/Spot.vue.cjs"),i=require("./components/pages/SpotEdit.vue.cjs"),p=require("./components/pages/Map.vue.cjs"),d=require("./components/blocks/CardSpot.vue.cjs"),a=require("./components/blocks/SpotMemberModify.vue.cjs"),S=require("./components/blocks/SpotSub.vue.cjs");function l(c,o,r){r.addRoute("Home",e.default),o.addStore("spots",t)}const n={initialize:l,views:{store:{storeSpots:t},router:{routerSpots:e.default},components:{Spots:u.default,Spot:s.default,SpotEdit:i.default,Map:p.default,CardSpot:d.default,SpotMemberModify:a.default,SpotSub:S.default}}};exports.default=n;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import * as o from "./store/spots.js";
|
2
|
+
import t from "./router/spots.js";
|
3
|
+
import i from "./components/layouts/Spots.vue.js";
|
4
|
+
import m from "./components/pages/Spot.vue.js";
|
5
|
+
import s from "./components/pages/SpotEdit.vue.js";
|
6
|
+
import e from "./components/pages/Map.vue.js";
|
7
|
+
import f from "./components/blocks/CardSpot.vue.js";
|
8
|
+
import a from "./components/blocks/SpotMemberModify.vue.js";
|
9
|
+
import S from "./components/blocks/SpotSub.vue.js";
|
10
|
+
function d(n, r, p) {
|
11
|
+
p.addRoute("Home", t), r.addStore("spots", o);
|
12
|
+
}
|
13
|
+
const v = {
|
14
|
+
initialize: d,
|
15
|
+
views: {
|
16
|
+
store: {
|
17
|
+
storeSpots: o
|
18
|
+
},
|
19
|
+
router: {
|
20
|
+
routerSpots: t
|
21
|
+
},
|
22
|
+
components: {
|
23
|
+
// Pages
|
24
|
+
Spots: i,
|
25
|
+
Spot: m,
|
26
|
+
SpotEdit: s,
|
27
|
+
Map: e,
|
28
|
+
// Blocks
|
29
|
+
CardSpot: f,
|
30
|
+
SpotMemberModify: a,
|
31
|
+
SpotSub: S
|
32
|
+
}
|
33
|
+
}
|
34
|
+
};
|
35
|
+
export {
|
36
|
+
v as default
|
37
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */;/* empty css */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,10 +1,10 @@
|
|
1
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
|
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";
|
@@ -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,19 +1,19 @@
|
|
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
|
-
import
|
7
|
-
import { useRoute as
|
6
|
+
import $ from "../sections/ProfileCompletion.vue.js";
|
7
|
+
import { useRoute as z, useRouter as R } from "vue-router";
|
8
8
|
import { state as g, actions as A } from "../../../auth/store/auth.js";
|
9
9
|
import { state as n, actions as r } from "../../store/users.js";
|
10
10
|
import "../../../middlewares/client/inputs.validation.js";
|
11
11
|
import "./ProfileEdit.vue2.js";
|
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),
|
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), L = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Account", -1), X = {
|
13
13
|
__name: "ProfileEdit",
|
14
|
-
setup(
|
14
|
+
setup(F) {
|
15
15
|
u(null);
|
16
|
-
const d =
|
16
|
+
const d = z(), m = R(), e = u(n.current);
|
17
17
|
N(async () => {
|
18
18
|
await r.read({ _id: d.params._id });
|
19
19
|
});
|
@@ -27,7 +27,7 @@ const D = { class: "pd-medium for-transition w-100" }, E = /* @__PURE__ */ s("h3
|
|
27
27
|
m.replace({ name: "User Profile", params: { _id: n.current._id } });
|
28
28
|
}
|
29
29
|
return (o, l) => (p(), U("div", D, [
|
30
|
-
f(d).params._id === g.user._id ? (p(), k(
|
30
|
+
f(d).params._id === g.user._id ? (p(), k($, {
|
31
31
|
key: 0,
|
32
32
|
user: g.user._id,
|
33
33
|
target: e.value,
|
@@ -101,7 +101,7 @@ const D = { class: "pd-medium for-transition w-100" }, E = /* @__PURE__ */ s("h3
|
|
101
101
|
placeholder: "",
|
102
102
|
class: "mn-b-semi bg-light pd-medium radius-small"
|
103
103
|
}, null, 8, ["field"]),
|
104
|
-
|
104
|
+
L,
|
105
105
|
a(t, {
|
106
106
|
field: e.value.phone,
|
107
107
|
"onUpdate:field": l[8] || (l[8] = (i) => e.value.phone = i),
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-i18n"),c=require("../../../../../../node_modules/bignumber.js/bignumber.cjs"),i=require("../../localization/wallet.json.cjs"),a=require("../../store/wallet.store.cjs"),u={class:"mn-b-small t-center t-bold"},d={class:"radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center"},m={class:"t-semi"},b={class:"t-semi"},p={__name:"CardBalanceReplenished",emits:["close"],setup(_,{emit:s}){const l=s,{t}=r.useI18n({useScope:"global",...i.default}),n=e.computed(()=>new c.BigNumber(a.state.depositInfo.amount).shiftedBy(-8).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString());function o(){l("close")}return(f,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",u,e.toDisplayString(e.unref(t)("wallet.balanceReplenished")),1),e.createElementVNode("div",d,[e.createElementVNode("h3",m,e.toDisplayString(e.unref(t)("wallet.youReceived")),1),e.createElementVNode("h3",b,e.toDisplayString(n.value)+" WDT ",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:o},e.toDisplayString(e.unref(t)("wallet.backToWallet")),1)],64))}};exports.default=p;
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { computed as r, openBlock as a, createElementBlock as m, Fragment as d, createElementVNode as e, toDisplayString as t, unref as o } from "vue";
|
2
|
+
import { useI18n as p } from "vue-i18n";
|
3
|
+
import { BigNumber as u } from "../../../../../../node_modules/bignumber.js/bignumber.js";
|
4
|
+
import b from "../../localization/wallet.json.js";
|
5
|
+
import { state as _ } from "../../store/wallet.store.js";
|
6
|
+
const f = { class: "mn-b-small t-center t-bold" }, h = { class: "radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center" }, x = { class: "t-semi" }, g = { class: "t-semi" }, T = {
|
7
|
+
__name: "CardBalanceReplenished",
|
8
|
+
emits: ["close"],
|
9
|
+
setup(k, { emit: l }) {
|
10
|
+
const n = l, { t: s } = p({
|
11
|
+
useScope: "global",
|
12
|
+
...b
|
13
|
+
}), c = r(
|
14
|
+
() => new u(_.depositInfo.amount).shiftedBy(-8).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString()
|
15
|
+
);
|
16
|
+
function i() {
|
17
|
+
n("close");
|
18
|
+
}
|
19
|
+
return (v, B) => (a(), m(d, null, [
|
20
|
+
e("h2", f, t(o(s)("wallet.balanceReplenished")), 1),
|
21
|
+
e("div", h, [
|
22
|
+
e("h3", x, t(o(s)("wallet.youReceived")), 1),
|
23
|
+
e("h3", g, t(c.value) + " WDT ", 1)
|
24
|
+
]),
|
25
|
+
e("button", {
|
26
|
+
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",
|
27
|
+
onClick: i
|
28
|
+
}, t(o(s)("wallet.backToWallet")), 1)
|
29
|
+
], 64));
|
30
|
+
}
|
31
|
+
};
|
32
|
+
export {
|
33
|
+
T as default
|
34
|
+
};
|
package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs
ADDED
@@ -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:"CardDeposit",emits:["back-selection","switch-menu"],setup(_,{emit:c}){const l=c,{t}=u.useI18n({useScope:"global",...a.default});function i(){l("back-selection")}function r(s=0){l("switch-menu",s)}return(s,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m,e.createElementVNode("div",d,[e.createVNode(o.default,{placeholder:e.unref(t)("wallet.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:n[0]||(n[0]=h=>r(3))},e.toDisplayString(e.unref(t)("wallet.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)("wallet.backToSelection")),1)],64))}};exports.default=f;
|
package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js
ADDED
@@ -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" }, w = /* @__PURE__ */ e("div", { class: "uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi" }, " USD ", -1), x = /* @__PURE__ */ e("h3", { class: "t-semi" }, "You will receieve: 0 WDT", -1), j = {
|
6
|
+
__name: "CardDeposit",
|
7
|
+
emits: ["back-selection", "switch-menu"],
|
8
|
+
setup(g, { emit: o }) {
|
9
|
+
const l = o, { t } = _({
|
10
|
+
useScope: "global",
|
11
|
+
...b
|
12
|
+
});
|
13
|
+
function a() {
|
14
|
+
l("back-selection");
|
15
|
+
}
|
16
|
+
function r(n = 0) {
|
17
|
+
l("switch-menu", n);
|
18
|
+
}
|
19
|
+
return (n, i) => (m(), u(p, null, [
|
20
|
+
h,
|
21
|
+
e("div", k, [
|
22
|
+
d(f, {
|
23
|
+
placeholder: s(t)("wallet.enterAmount"),
|
24
|
+
class: "pd-medium radius-small"
|
25
|
+
}, null, 8, ["placeholder"]),
|
26
|
+
w
|
27
|
+
]),
|
28
|
+
x,
|
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: i[0] || (i[0] = (y) => r(3))
|
32
|
+
}, c(s(t)("wallet.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: a
|
36
|
+
}, c(s(t)("wallet.backToSelection")), 1)
|
37
|
+
], 64));
|
38
|
+
}
|
39
|
+
};
|
40
|
+
export {
|
41
|
+
j as default
|
42
|
+
};
|
package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.cjs
ADDED
@@ -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:"CashDeposit",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;
|
package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.js
ADDED
@@ -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: "CashDeposit",
|
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
|
+
};
|
package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-i18n"),c=require("../../../../../../node_modules/bignumber.js/bignumber.cjs"),t=require("../../store/wallet.store.cjs"),k=require("../../localization/wallet.json.cjs"),g=require("../../../../../components/Field/Field.vue.cjs"),w=require("../../../../../components/Select/Select.vue.cjs"),h={class:"mn-b-small t-center t-bold"},v={class:"t-semi"},_=["disabled"],y={__name:"CryptoDeposit",emits:["back-selection","switch-menu"],setup(N,{emit:u}){c.BigNumber.config({EXPONENTIAL_AT:[-1e3,2e4]});const r=e.ref(1),i=u,{t:s}=b.useI18n({useScope:"global",...k.default}),d=e.computed(()=>new c.BigNumber(r.value).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString()),p=e.computed(()=>{const l=[],o=Object.keys(t.state.config||{});for(const n of o)for(const a of Object.keys(t.state.config[n].tokens))l.push({name:`${n}-${a}`,value:{token:t.state.config[n].tokens[a],network:n}});return l});e.onMounted(()=>{t.actions.loadConfig()});function m(){i("back-selection")}function f(l=0){i("switch-menu",l)}return(l,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h3",h,e.toDisplayString(e.unref(s)("wallet.depositWithCrypto")),1),e.unref(t.state).config?(e.openBlock(),e.createBlock(g.default,{key:0,field:r.value,"onUpdate:field":o[1]||(o[1]=n=>r.value=n),placeholder:e.unref(s)("wallet.enterAmount"),class:"mn-b-thin bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(w.default,{options:p.value,select:e.unref(t.state).chosenNetwork,"onUpdate:select":o[0]||(o[0]=n=>e.unref(t.state).chosenNetwork=n),class:"bg-light t-nowrap pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["options","select"])]),_:1},8,["field","placeholder"])):e.createCommentVNode("",!0),e.createElementVNode("p",v,"You will receive: "+e.toDisplayString(d.value)+" "+e.toDisplayString(e.unref(s)("wallet.token")),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:o[2]||(o[2]=n=>e.unref(t.actions).requestCryptoDeposit(r.value).then(()=>f(5))),disabled:e.unref(t.state).depositRequestIsActive||!e.unref(t.state).config},e.toDisplayString(e.unref(s)("wallet.pay")),9,_),e.createElementVNode("button",{class:"uppercase w-100 t-center mn-t-small",onClick:m},e.toDisplayString(e.unref(s)("wallet.backToSelection")),1)],64))}};exports.default=y;
|