@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,478 @@
|
|
1
|
+
import { ref as c, onMounted as K, openBlock as V, createElementBlock as $, createElementVNode as E, createVNode as F, withCtx as G, createTextVNode as Z, pushScopeId as U, popScopeId as A } from "vue";
|
2
|
+
import { useRouter as D, useRoute as H } from "vue-router";
|
3
|
+
import { Loader as J } from "../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
|
4
|
+
import Q from "../../../../components/Button/Button.vue.js";
|
5
|
+
import { actions as I, state as M } from "../../../organizations/store/organizations.js";
|
6
|
+
import { state as p } from "../../../globals/store/globals.js";
|
7
|
+
import { state as h } from "../../../marketplace/store/marketplace.js";
|
8
|
+
/* empty css */
|
9
|
+
import W from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
10
|
+
const X = (y) => (U("data-v-4c504b8d"), y = y(), A(), y), Y = { class: "h-100 w-100 pos-relative" }, ee = { class: "w-100 pos-absolute z-index-2 pos-b-10" }, te = /* @__PURE__ */ X(() => /* @__PURE__ */ E("div", {
|
11
|
+
id: "map",
|
12
|
+
class: "h-100 w-100 pos-relative o-hidden"
|
13
|
+
}, null, -1)), oe = {
|
14
|
+
__name: "Map",
|
15
|
+
props: {
|
16
|
+
localPosition: Object,
|
17
|
+
location: {
|
18
|
+
type: Object,
|
19
|
+
default: () => ({ lat: 15.87, lng: 100.9925 })
|
20
|
+
},
|
21
|
+
address: {
|
22
|
+
type: String,
|
23
|
+
default: null
|
24
|
+
},
|
25
|
+
apiKey: String,
|
26
|
+
locale: {
|
27
|
+
type: String,
|
28
|
+
default: "en"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
setup(y) {
|
32
|
+
const b = D(), e = H(), L = y;
|
33
|
+
let s = c(null), i = c([]), O = c(0), C = c(50), m = c({ lat: 0, lng: 0 }), w = c(null);
|
34
|
+
async function B() {
|
35
|
+
try {
|
36
|
+
const r = await (await fetch("https://ip2c.org/s")).text();
|
37
|
+
if (!r || r[0] !== "1")
|
38
|
+
throw new Error("Unable to fetch the country");
|
39
|
+
const t = r.split(";");
|
40
|
+
if (t.length < 4)
|
41
|
+
throw new Error("Invalid response format");
|
42
|
+
return console.log(t[3]), t[3];
|
43
|
+
} catch (l) {
|
44
|
+
throw console.error(l), l;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
K(async () => {
|
48
|
+
var T, v, f, _, k, x, q, z;
|
49
|
+
let l = parseFloat(e.query.lat || ((v = (T = p.position) == null ? void 0 : T.location) == null ? void 0 : v.lat)), r = parseFloat(e.query.lng || ((_ = (f = p.position) == null ? void 0 : f.location) == null ? void 0 : _.lng)), t;
|
50
|
+
if (e.params.location || (k = p.position) != null && k.location ? t = 12 : e.params.country || (x = p.position) != null && x.country ? t = 9 : e.params.state || (q = p.position) != null && q.state ? t = 6 : e.params.city || (z = p.position) != null && z.city ? t = 4 : t = 2, !l || !r) {
|
51
|
+
let o;
|
52
|
+
const n = new google.maps.Geocoder();
|
53
|
+
try {
|
54
|
+
o = await B();
|
55
|
+
} catch {
|
56
|
+
o = "Thailand", console.log(error);
|
57
|
+
}
|
58
|
+
try {
|
59
|
+
const a = await n.geocode({ address: o });
|
60
|
+
console.log(a), a ? (l = a.results[0].geometry.location.lat(), r = a.results[0].geometry.location.lng(), t = 6) : console.error("No results found for the country code.");
|
61
|
+
} catch (a) {
|
62
|
+
console.error("Error getting coordinates from country code:", a);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
if (!l && !r && (e.params.country || e.params.state || e.params.city)) {
|
66
|
+
const o = new google.maps.Geocoder(), n = [
|
67
|
+
e.params.city,
|
68
|
+
e.params.state,
|
69
|
+
e.params.country
|
70
|
+
].filter(Boolean).join(", ");
|
71
|
+
try {
|
72
|
+
const a = await o.geocode({ address: n });
|
73
|
+
a[0] && (l = a[0].geometry.location.lat(), r = a[0].geometry.location.lng());
|
74
|
+
} catch (a) {
|
75
|
+
console.error("Error getting coordinates:", a);
|
76
|
+
}
|
77
|
+
}
|
78
|
+
const u = new J({
|
79
|
+
apiKey: L.apiKey,
|
80
|
+
version: "weekly",
|
81
|
+
libraries: ["places"],
|
82
|
+
language: "en"
|
83
|
+
});
|
84
|
+
O.value += C.value;
|
85
|
+
const d = {
|
86
|
+
// country: route.params.country,
|
87
|
+
// state: route.params.state,
|
88
|
+
// city: route.params.city,
|
89
|
+
// categories: route.query.categories,
|
90
|
+
// prices: route.query.prices,
|
91
|
+
// delivery: route.query.delivery,
|
92
|
+
country: e.params.country,
|
93
|
+
state: e.params.state,
|
94
|
+
city: e.params.city,
|
95
|
+
categories: e.query.categories,
|
96
|
+
prices: e.query.prices,
|
97
|
+
delivery: e.query.delivery,
|
98
|
+
sortParam: e.query.sortParam || h.sort.param,
|
99
|
+
sortOrder: e.query.sortOrder || h.sort.order,
|
100
|
+
location: { coordinates: [r, l] },
|
101
|
+
locationRadius: 1e3,
|
102
|
+
limit: 500
|
103
|
+
};
|
104
|
+
console.log(d);
|
105
|
+
const g = await I.read(d);
|
106
|
+
M.all = [...M.all, ...g], u.load().then(() => {
|
107
|
+
s.value = new google.maps.Map(document.getElementById("map"), {
|
108
|
+
mapTypeControl: !1,
|
109
|
+
fullscreenControl: !1,
|
110
|
+
styles: [
|
111
|
+
{
|
112
|
+
elementType: "geometry",
|
113
|
+
stylers: [
|
114
|
+
{
|
115
|
+
color: "#212121"
|
116
|
+
}
|
117
|
+
]
|
118
|
+
},
|
119
|
+
{
|
120
|
+
elementType: "labels.icon",
|
121
|
+
stylers: [
|
122
|
+
{
|
123
|
+
visibility: "off"
|
124
|
+
}
|
125
|
+
]
|
126
|
+
},
|
127
|
+
{
|
128
|
+
elementType: "labels.text.fill",
|
129
|
+
stylers: [
|
130
|
+
{
|
131
|
+
color: "#757575"
|
132
|
+
}
|
133
|
+
]
|
134
|
+
},
|
135
|
+
{
|
136
|
+
elementType: "labels.text.stroke",
|
137
|
+
stylers: [
|
138
|
+
{
|
139
|
+
color: "#212121"
|
140
|
+
}
|
141
|
+
]
|
142
|
+
},
|
143
|
+
{
|
144
|
+
featureType: "administrative",
|
145
|
+
elementType: "geometry",
|
146
|
+
stylers: [
|
147
|
+
{
|
148
|
+
color: "#757575"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
visibility: "off"
|
152
|
+
}
|
153
|
+
]
|
154
|
+
},
|
155
|
+
{
|
156
|
+
featureType: "administrative.country",
|
157
|
+
elementType: "labels.text.fill",
|
158
|
+
stylers: [
|
159
|
+
{
|
160
|
+
color: "#9e9e9e"
|
161
|
+
}
|
162
|
+
]
|
163
|
+
},
|
164
|
+
{
|
165
|
+
featureType: "administrative.land_parcel",
|
166
|
+
stylers: [
|
167
|
+
{
|
168
|
+
visibility: "off"
|
169
|
+
}
|
170
|
+
]
|
171
|
+
},
|
172
|
+
{
|
173
|
+
featureType: "administrative.locality",
|
174
|
+
elementType: "labels.text.fill",
|
175
|
+
stylers: [
|
176
|
+
{
|
177
|
+
color: "#bdbdbd"
|
178
|
+
}
|
179
|
+
]
|
180
|
+
},
|
181
|
+
{
|
182
|
+
featureType: "administrative.neighborhood",
|
183
|
+
stylers: [
|
184
|
+
// {
|
185
|
+
// "visibility": "off"
|
186
|
+
// }
|
187
|
+
]
|
188
|
+
},
|
189
|
+
{
|
190
|
+
featureType: "poi",
|
191
|
+
stylers: [
|
192
|
+
{
|
193
|
+
visibility: "off"
|
194
|
+
}
|
195
|
+
]
|
196
|
+
},
|
197
|
+
{
|
198
|
+
featureType: "poi",
|
199
|
+
elementType: "labels.text.fill",
|
200
|
+
stylers: [
|
201
|
+
{
|
202
|
+
color: "#757575"
|
203
|
+
}
|
204
|
+
]
|
205
|
+
},
|
206
|
+
{
|
207
|
+
featureType: "poi.park",
|
208
|
+
elementType: "geometry",
|
209
|
+
stylers: [
|
210
|
+
{
|
211
|
+
color: "#181818"
|
212
|
+
}
|
213
|
+
]
|
214
|
+
},
|
215
|
+
{
|
216
|
+
featureType: "poi.park",
|
217
|
+
elementType: "labels.text.fill",
|
218
|
+
stylers: [
|
219
|
+
{
|
220
|
+
color: "#616161"
|
221
|
+
}
|
222
|
+
]
|
223
|
+
},
|
224
|
+
{
|
225
|
+
featureType: "poi.park",
|
226
|
+
elementType: "labels.text.stroke",
|
227
|
+
stylers: [
|
228
|
+
{
|
229
|
+
color: "#1b1b1b"
|
230
|
+
}
|
231
|
+
]
|
232
|
+
},
|
233
|
+
{
|
234
|
+
featureType: "road",
|
235
|
+
elementType: "geometry.fill",
|
236
|
+
stylers: [
|
237
|
+
{
|
238
|
+
color: "#2c2c2c"
|
239
|
+
}
|
240
|
+
]
|
241
|
+
},
|
242
|
+
{
|
243
|
+
featureType: "road",
|
244
|
+
elementType: "labels",
|
245
|
+
stylers: [
|
246
|
+
{
|
247
|
+
visibility: "off"
|
248
|
+
}
|
249
|
+
]
|
250
|
+
},
|
251
|
+
{
|
252
|
+
featureType: "road",
|
253
|
+
elementType: "labels.icon",
|
254
|
+
stylers: [
|
255
|
+
{
|
256
|
+
visibility: "off"
|
257
|
+
}
|
258
|
+
]
|
259
|
+
},
|
260
|
+
{
|
261
|
+
featureType: "road",
|
262
|
+
elementType: "labels.text.fill",
|
263
|
+
stylers: [
|
264
|
+
{
|
265
|
+
color: "#8a8a8a"
|
266
|
+
}
|
267
|
+
]
|
268
|
+
},
|
269
|
+
{
|
270
|
+
featureType: "road.arterial",
|
271
|
+
elementType: "geometry",
|
272
|
+
stylers: [
|
273
|
+
{
|
274
|
+
color: "#373737"
|
275
|
+
}
|
276
|
+
]
|
277
|
+
},
|
278
|
+
{
|
279
|
+
featureType: "road.arterial",
|
280
|
+
elementType: "labels",
|
281
|
+
stylers: []
|
282
|
+
},
|
283
|
+
{
|
284
|
+
featureType: "road.highway",
|
285
|
+
elementType: "geometry",
|
286
|
+
stylers: [
|
287
|
+
{
|
288
|
+
color: "#3c3c3c"
|
289
|
+
}
|
290
|
+
]
|
291
|
+
},
|
292
|
+
{
|
293
|
+
featureType: "road.highway",
|
294
|
+
elementType: "labels",
|
295
|
+
stylers: [
|
296
|
+
{
|
297
|
+
visibility: "off"
|
298
|
+
}
|
299
|
+
]
|
300
|
+
},
|
301
|
+
{
|
302
|
+
featureType: "road.highway.controlled_access",
|
303
|
+
elementType: "geometry",
|
304
|
+
stylers: [
|
305
|
+
{
|
306
|
+
color: "#4e4e4e"
|
307
|
+
}
|
308
|
+
]
|
309
|
+
},
|
310
|
+
{
|
311
|
+
featureType: "road.local",
|
312
|
+
stylers: []
|
313
|
+
},
|
314
|
+
{
|
315
|
+
featureType: "road.local",
|
316
|
+
elementType: "labels.text.fill",
|
317
|
+
stylers: [
|
318
|
+
{
|
319
|
+
color: "#616161"
|
320
|
+
}
|
321
|
+
]
|
322
|
+
},
|
323
|
+
{
|
324
|
+
featureType: "transit",
|
325
|
+
stylers: [
|
326
|
+
{
|
327
|
+
visibility: "off"
|
328
|
+
}
|
329
|
+
]
|
330
|
+
},
|
331
|
+
{
|
332
|
+
featureType: "transit",
|
333
|
+
elementType: "labels.text.fill",
|
334
|
+
stylers: [
|
335
|
+
{
|
336
|
+
color: "#757575"
|
337
|
+
}
|
338
|
+
]
|
339
|
+
},
|
340
|
+
{
|
341
|
+
featureType: "water",
|
342
|
+
elementType: "geometry",
|
343
|
+
stylers: [
|
344
|
+
{
|
345
|
+
color: "#000000"
|
346
|
+
}
|
347
|
+
]
|
348
|
+
},
|
349
|
+
{
|
350
|
+
featureType: "water",
|
351
|
+
elementType: "labels.text",
|
352
|
+
stylers: [
|
353
|
+
{
|
354
|
+
visibility: "off"
|
355
|
+
}
|
356
|
+
]
|
357
|
+
},
|
358
|
+
{
|
359
|
+
featureType: "water",
|
360
|
+
elementType: "labels.text.fill",
|
361
|
+
stylers: [
|
362
|
+
{
|
363
|
+
color: "#3d3d3d"
|
364
|
+
}
|
365
|
+
]
|
366
|
+
}
|
367
|
+
],
|
368
|
+
center: { lat: l, lng: r },
|
369
|
+
zoom: parseInt(e.query.zoom || t || "12")
|
370
|
+
});
|
371
|
+
for (let o of i.value)
|
372
|
+
o.setMap(null);
|
373
|
+
i.value = [], i.value = g.map((o) => {
|
374
|
+
var a;
|
375
|
+
let n = (a = o.spots[0]) == null ? void 0 : a.location;
|
376
|
+
if (n && n.type === "Point") {
|
377
|
+
let [R, j] = n.coordinates, P = "/marker_2.png";
|
378
|
+
o.products && o.products.length === 0 && (P = "/marker.png");
|
379
|
+
const S = new google.maps.Marker({
|
380
|
+
position: { lng: R, lat: j },
|
381
|
+
map: s.value,
|
382
|
+
icon: {
|
383
|
+
url: P,
|
384
|
+
// URL to the icon
|
385
|
+
scaledSize: new google.maps.Size(32, 48),
|
386
|
+
// icon dimensions
|
387
|
+
origin: new google.maps.Point(0, 0),
|
388
|
+
// coordinate origin for this icon
|
389
|
+
anchor: new google.maps.Point(16, 48)
|
390
|
+
// point on the icon that corresponds to the geographic location of the marker
|
391
|
+
}
|
392
|
+
});
|
393
|
+
return S.addListener("click", () => {
|
394
|
+
b.push({ name: "Organization", params: { _id: o._id } });
|
395
|
+
}), S;
|
396
|
+
}
|
397
|
+
return null;
|
398
|
+
}).filter((o) => o !== null), google.maps.event.addListener(s.value, "center_changed", () => {
|
399
|
+
let o = s.value.getCenter();
|
400
|
+
m.value = {
|
401
|
+
lat: o.lat(),
|
402
|
+
lng: o.lng()
|
403
|
+
};
|
404
|
+
}), google.maps.event.addListener(s.value, "zoom_changed", () => {
|
405
|
+
w.value = s.value.getZoom();
|
406
|
+
});
|
407
|
+
});
|
408
|
+
});
|
409
|
+
const N = async () => {
|
410
|
+
const l = {
|
411
|
+
country: e.params.country,
|
412
|
+
state: e.params.state,
|
413
|
+
city: e.params.city,
|
414
|
+
categories: e.query.categories,
|
415
|
+
prices: e.query.prices,
|
416
|
+
delivery: e.query.delivery,
|
417
|
+
sortParam: e.query.sortParam || h.sort.param,
|
418
|
+
sortOrder: e.query.sortOrder || h.sort.order,
|
419
|
+
locationRadius: 8e3 / w.value,
|
420
|
+
limit: 100,
|
421
|
+
location: {
|
422
|
+
type: "Point",
|
423
|
+
coordinates: [m.value.lng, m.value.lat]
|
424
|
+
}
|
425
|
+
};
|
426
|
+
console.log([m.value.lng, m.value.lat]);
|
427
|
+
try {
|
428
|
+
const r = await I.read(l);
|
429
|
+
for (let t of i.value)
|
430
|
+
t.setMap(null);
|
431
|
+
i.value = [], i.value = r.map((t) => {
|
432
|
+
var d;
|
433
|
+
let u = (d = t.spots[0]) == null ? void 0 : d.location;
|
434
|
+
if (u && u.type === "Point") {
|
435
|
+
let [g, T] = u.coordinates, v = t.products && t.products.length > 0 ? "/marker_2.png" : "/marker.png";
|
436
|
+
const f = new google.maps.Marker({
|
437
|
+
position: { lng: g, lat: T },
|
438
|
+
map: s.value,
|
439
|
+
icon: {
|
440
|
+
url: v,
|
441
|
+
// URL to the icon
|
442
|
+
scaledSize: new google.maps.Size(32, 48),
|
443
|
+
// icon dimensions
|
444
|
+
origin: new google.maps.Point(0, 0),
|
445
|
+
// coordinate origin for this icon
|
446
|
+
anchor: new google.maps.Point(16, 48)
|
447
|
+
// point on the icon that corresponds to the geographic location of the marker
|
448
|
+
}
|
449
|
+
});
|
450
|
+
return f.addListener("click", () => {
|
451
|
+
b.push({ name: "Organization", params: { _id: t._id } });
|
452
|
+
}), f;
|
453
|
+
}
|
454
|
+
return null;
|
455
|
+
}).filter((t) => t !== null);
|
456
|
+
} catch (r) {
|
457
|
+
console.error("Error fetching organizations:", r);
|
458
|
+
}
|
459
|
+
};
|
460
|
+
return (l, r) => (V(), $("div", Y, [
|
461
|
+
E("div", ee, [
|
462
|
+
F(Q, {
|
463
|
+
submit: N,
|
464
|
+
class: "mn-l-auto mn-r-auto bg-black t-white w-min-20 button"
|
465
|
+
}, {
|
466
|
+
default: G(() => [
|
467
|
+
Z(" Search in This Location ")
|
468
|
+
]),
|
469
|
+
_: 1
|
470
|
+
})
|
471
|
+
]),
|
472
|
+
te
|
473
|
+
]));
|
474
|
+
}
|
475
|
+
}, me = /* @__PURE__ */ W(oe, [["__scopeId", "data-v-4c504b8d"]]);
|
476
|
+
export {
|
477
|
+
me as default
|
478
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),c=require("../../../../components/Map/Map.vue.cjs"),p=require("../blocks/SpotSub.vue.cjs"),u=require("../../../users/components/blocks/CardUser.vue.cjs");;/* empty css */const m=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),s=t=>(e.pushScopeId("data-v-a4b9b533"),t=t(),e.popScopeId(),t),h={class:"radius-big o-hidden cols-2-1_3"},g={class:"pd-medium w-100"},b=s(()=>e.createElementVNode("path",{d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",fill:"rgb(var(--black))"},null,-1)),L=[b],v=["innerHTML"],w=["innerHTML"],k={class:"pd-small flex-v-center flex-nowrap flex"},f=s(()=>e.createElementVNode("h5",{class:"w-100"},"Contacts ",-1)),C={class:"mn-r-small"},E=s(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),V={key:0},N={class:"pd-small flex-v-center flex-nowrap flex"},B=s(()=>e.createElementVNode("h5",{class:"w-100"},"Working Hours ",-1)),$={class:"mn-r-small"},_=s(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),x={key:0},M={__name:"Spot",props:{spot:Object,organization:Object},setup(t){const r=t;return(l,n)=>(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(c.default,{location:{lat:t.spot.location.coordinates[1],lng:t.spot.location.coordinates[0]},class:""},null,8,["location"]),e.createElementVNode("div",g,[(e.openBlock(),e.createElementBlock("svg",{onClick:n[0]||(n[0]=o=>l.$router.push(`/app/organization/${r.organization._id}/spots/${t.spot._id}/edit`)),class:"i-regular pos-absolute pos-r-0 pos-t-0 t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L)),e.createElementVNode("h3",{onClick:n[1]||(n[1]=o=>l.$router.push(`/app/organization/${r.organization._id}/spots/${t.spot._id}`)),class:"mn-b-small w-100",innerHTML:t.spot.profile.name},null,8,v),e.createElementVNode("p",{onClick:n[2]||(n[2]=o=>l.$router.push(`/app/organization/${r.organization._id}/spots/${t.spot._id}`)),class:"mn-b-small p-big w-100",innerHTML:t.spot.address},null,8,w),e.createVNode(a.default,{class:"radius-small o-hidden br-1px br-solid br-grey-transp-25 mn-b-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",k,[f,e.createElementVNode("p",C,e.toDisplayString(t.spot.members.length)+" человек",1),E])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.spot.members.length<1?(e.openBlock(),e.createElementBlock("li",V,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.spot.members,(o,i)=>(e.openBlock(),e.createBlock(u.default,{class:"br-b br-solid br-grey-transp-25",key:i,user:o.user,position:o.position,onClick:d=>l.$router.push(`/app/profile/${o.user._id}`)},null,8,["user","position","onClick"]))),128))])]),_:1}),e.createVNode(a.default,{class:"radius-small o-hidden br-1px br-solid br-grey-transp-25 mn-b-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",N,[B,e.createElementVNode("p",$,e.toDisplayString(t.spot.subspots?t.spot.subspots.length:0)+" отделов",1),_])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.spot.subspots.length<1?(e.openBlock(),e.createElementBlock("li",x,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.spot.subspots,(o,i)=>(e.openBlock(),e.createBlock(p.default,{onClick:d=>l.$router.push(`/app/organization/spots/${o._id}`),key:i,class:"br-b br-solid br-grey-transp-25",spot:o},null,8,["onClick","spot"]))),128))])]),_:1})])]))}},S=m.default(M,[["__scopeId","data-v-a4b9b533"]]);exports.default=S;
|
@@ -0,0 +1,121 @@
|
|
1
|
+
import { openBlock as e, createElementBlock as i, createVNode as c, createElementVNode as o, withCtx as a, toDisplayString as u, createCommentVNode as h, Fragment as m, renderList as g, createBlock as b, pushScopeId as v, popScopeId as w } from "vue";
|
2
|
+
import L from "../../../../components/Spoiler/Spoiler.vue2.js";
|
3
|
+
import $ from "../../../../components/Map/Map.vue.js";
|
4
|
+
import _ from "../blocks/SpotSub.vue.js";
|
5
|
+
import C from "../../../users/components/blocks/CardUser.vue.js";
|
6
|
+
/* empty css */
|
7
|
+
import k from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
8
|
+
const r = (t) => (v("data-v-a4b9b533"), t = t(), w(), t), x = { class: "radius-big o-hidden cols-2-1_3" }, M = { class: "pd-medium w-100" }, y = /* @__PURE__ */ r(() => /* @__PURE__ */ o("path", {
|
9
|
+
d: "M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",
|
10
|
+
fill: "rgb(var(--black))"
|
11
|
+
}, null, -1)), z = [
|
12
|
+
y
|
13
|
+
], S = ["innerHTML"], A = ["innerHTML"], B = { class: "pd-small flex-v-center flex-nowrap flex" }, H = /* @__PURE__ */ r(() => /* @__PURE__ */ o("h5", { class: "w-100" }, "Contacts ", -1)), Z = { class: "mn-r-small" }, I = /* @__PURE__ */ r(() => /* @__PURE__ */ o("svg", {
|
14
|
+
width: "14",
|
15
|
+
height: "9",
|
16
|
+
viewBox: "0 0 14 9",
|
17
|
+
fill: "none",
|
18
|
+
xmlns: "http://www.w3.org/2000/svg"
|
19
|
+
}, [
|
20
|
+
/* @__PURE__ */ o("path", {
|
21
|
+
"fill-rule": "evenodd",
|
22
|
+
"clip-rule": "evenodd",
|
23
|
+
d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
|
24
|
+
fill: "#8A8A8A"
|
25
|
+
})
|
26
|
+
], -1)), T = { key: 0 }, N = { class: "pd-small flex-v-center flex-nowrap flex" }, V = /* @__PURE__ */ r(() => /* @__PURE__ */ o("h5", { class: "w-100" }, "Working Hours ", -1)), j = { class: "mn-r-small" }, E = /* @__PURE__ */ r(() => /* @__PURE__ */ o("svg", {
|
27
|
+
width: "14",
|
28
|
+
height: "9",
|
29
|
+
viewBox: "0 0 14 9",
|
30
|
+
fill: "none",
|
31
|
+
xmlns: "http://www.w3.org/2000/svg"
|
32
|
+
}, [
|
33
|
+
/* @__PURE__ */ o("path", {
|
34
|
+
"fill-rule": "evenodd",
|
35
|
+
"clip-rule": "evenodd",
|
36
|
+
d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
|
37
|
+
fill: "#8A8A8A"
|
38
|
+
})
|
39
|
+
], -1)), O = { key: 0 }, D = {
|
40
|
+
__name: "Spot",
|
41
|
+
props: {
|
42
|
+
spot: Object,
|
43
|
+
organization: Object
|
44
|
+
},
|
45
|
+
setup(t) {
|
46
|
+
const d = t;
|
47
|
+
return (l, n) => (e(), i("div", x, [
|
48
|
+
c($, {
|
49
|
+
location: { lat: t.spot.location.coordinates[1], lng: t.spot.location.coordinates[0] },
|
50
|
+
class: ""
|
51
|
+
}, null, 8, ["location"]),
|
52
|
+
o("div", M, [
|
53
|
+
(e(), i("svg", {
|
54
|
+
onClick: n[0] || (n[0] = (s) => l.$router.push(`/app/organization/${d.organization._id}/spots/${t.spot._id}/edit`)),
|
55
|
+
class: "i-regular pos-absolute pos-r-0 pos-t-0 t-transp",
|
56
|
+
width: "652",
|
57
|
+
height: "652",
|
58
|
+
viewBox: "0 0 652 652",
|
59
|
+
fill: "none",
|
60
|
+
xmlns: "http://www.w3.org/2000/svg"
|
61
|
+
}, z)),
|
62
|
+
o("h3", {
|
63
|
+
onClick: n[1] || (n[1] = (s) => l.$router.push(`/app/organization/${d.organization._id}/spots/${t.spot._id}`)),
|
64
|
+
class: "mn-b-small w-100",
|
65
|
+
innerHTML: t.spot.profile.name
|
66
|
+
}, null, 8, S),
|
67
|
+
o("p", {
|
68
|
+
onClick: n[2] || (n[2] = (s) => l.$router.push(`/app/organization/${d.organization._id}/spots/${t.spot._id}`)),
|
69
|
+
class: "mn-b-small p-big w-100",
|
70
|
+
innerHTML: t.spot.address
|
71
|
+
}, null, 8, A),
|
72
|
+
c(L, { class: "radius-small o-hidden br-1px br-solid br-grey-transp-25 mn-b-thin" }, {
|
73
|
+
header: a(() => [
|
74
|
+
o("div", B, [
|
75
|
+
H,
|
76
|
+
o("p", Z, u(t.spot.members.length) + " человек", 1),
|
77
|
+
I
|
78
|
+
])
|
79
|
+
]),
|
80
|
+
content: a(() => [
|
81
|
+
o("ul", null, [
|
82
|
+
t.spot.members.length < 1 ? (e(), i("li", T, "В отделе еще нет участников")) : h("", !0),
|
83
|
+
(e(!0), i(m, null, g(t.spot.members, (s, p) => (e(), b(C, {
|
84
|
+
class: "br-b br-solid br-grey-transp-25",
|
85
|
+
key: p,
|
86
|
+
user: s.user,
|
87
|
+
position: s.position,
|
88
|
+
onClick: (f) => l.$router.push(`/app/profile/${s.user._id}`)
|
89
|
+
}, null, 8, ["user", "position", "onClick"]))), 128))
|
90
|
+
])
|
91
|
+
]),
|
92
|
+
_: 1
|
93
|
+
}),
|
94
|
+
c(L, { class: "radius-small o-hidden br-1px br-solid br-grey-transp-25 mn-b-thin" }, {
|
95
|
+
header: a(() => [
|
96
|
+
o("div", N, [
|
97
|
+
V,
|
98
|
+
o("p", j, u(t.spot.subspots ? t.spot.subspots.length : 0) + " отделов", 1),
|
99
|
+
E
|
100
|
+
])
|
101
|
+
]),
|
102
|
+
content: a(() => [
|
103
|
+
o("ul", null, [
|
104
|
+
t.spot.subspots.length < 1 ? (e(), i("li", O, "В отделе еще нет подотделов")) : h("", !0),
|
105
|
+
(e(!0), i(m, null, g(t.spot.subspots, (s, p) => (e(), b(_, {
|
106
|
+
onClick: (f) => l.$router.push(`/app/organization/spots/${s._id}`),
|
107
|
+
key: p,
|
108
|
+
class: "br-b br-solid br-grey-transp-25",
|
109
|
+
spot: s
|
110
|
+
}, null, 8, ["onClick", "spot"]))), 128))
|
111
|
+
])
|
112
|
+
]),
|
113
|
+
_: 1
|
114
|
+
})
|
115
|
+
])
|
116
|
+
]));
|
117
|
+
}
|
118
|
+
}, Q = /* @__PURE__ */ k(D, [["__scopeId", "data-v-a4b9b533"]]);
|
119
|
+
export {
|
120
|
+
Q as default
|
121
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("vue-router"),d=require("../../../../components/Block/Block.vue.cjs"),h=require("../../../../components/UploadImage/UploadImage.vue.cjs");;/* empty css */const r=require("../../../../components/Field/Field.vue.cjs"),N=require("../../../../components/Select/Select.vue.cjs"),n=require("../../../../components/Checkbox/Checkbox.vue.cjs"),g=require("../../../../components/Address/Address.vue2.cjs"),w=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),u=require("../../../../components/Button/Button.vue.cjs");require("vue-i18n");;/* empty css */const t=require("../../store/spots.cjs"),V={class:"for-transition w-100 cols-1 pd-thin gap-thin"},y={class:"mn-r-auto"},E={class:"cols-2 gap-thin"},S={class:"gap-small mn-b-small cols-2-fit-content"},k={class:"w-100"},q=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please the available delivery options:",-1),U=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please select the available payment methods:",-1),_=e.createElementVNode("p",{class:"mn-b-small p-medium"},"Options:",-1),P={__name:"SpotEdit",setup(x){const m=p.useRouter(),l=p.useRoute();e.ref("details"),e.ref(!1),e.onMounted(async()=>{await c()});async function c(){var s,o;l.params.spot&&await t.actions.readOne(l.params.spot);const i=(s=t.state.spot.location)==null?void 0:s.coordinates[0],a=(o=t.state.spot.location)==null?void 0:o.coordinates[1];t.state.spot.location={lat:a||1,lng:i||1}}async function f(){t.state.spot.location={type:"Point",coordinates:[t.state.spot.location.lng,t.state.spot.location.lat]},l.params.spot&&await t.actions.update(l.params._id,t.state.spot),l.params.spot||await t.actions.create(l.params._id,t.state.spot)}function b(){m.replace({name:"Spot",params:{_id:l.params._id,spot:t.state.spot._id}})}async function v(){await t.actions.delete(l.params._id,t.state.spot)}return(i,a)=>(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(d.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",y,e.toDisplayString(e.unref(l).params.spot?t.state.spot.profile.name:"Create Spot"),1),e.createVNode(u.default,{submit:f,callback:b,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save Spot ")]),_:1})]),_:1}),e.createElementVNode("div",E,[e.createVNode(d.default,{title:"Profile",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",S,[e.createVNode(h.default,{photo:t.state.spot.profile.photo,"onUpdate:photo":a[0]||(a[0]=s=>t.state.spot.profile.photo=s),uploadPath:"organizations/"+t.state.spot.name+"/avatars",class:"aspect-1x1 w-8r o-hidden radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",k,[e.createVNode(r.default,{field:t.state.spot.profile.name,"onUpdate:field":a[1]||(a[1]=s=>t.state.spot.profile.name=s),label:"Name",placeholder:"Spot Name",class:"mn-b-small bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"]),e.createVNode(r.default,{field:t.state.spot.profile.description,"onUpdate:field":a[2]||(a[2]=s=>t.state.spot.profile.description=s),label:"Description",placeholder:"Spot description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])])]),e.createVNode(N.default,{select:t.state.spot.status,"onUpdate:select":a[3]||(a[3]=s=>t.state.spot.status=s),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),q,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["pickup","courier","post"],s=>e.createVNode(n.default,{label:s,name:"Delivery",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.delivery,"onUpdate:radio":a[4]||(a[4]=o=>t.state.spot.delivery=o)},null,8,["label","value","radio"])),64)),U,(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["cash","bank transfer","crypto"],s=>e.createVNode(n.default,{label:s,name:"Payment",value:s,class:"w-100 mn-b-small bg-white radius-small pd-small",radio:t.state.spot.payment,"onUpdate:radio":a[5]||(a[5]=o=>t.state.spot.payment=o)},null,8,["label","value","radio"])),64))]),_:1}),e.createVNode(d.default,{title:"Location",class:"pos-relative"},{default:e.withCtx(()=>{var s;return[e.createVNode(g.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,label:"Address",placeholder:"Enter delivery address",class:"bg-white pd-small radius-tl-medium radius-tr-medium","onUpdate:location":a[6]||(a[6]=o=>{t.state.spot.location=o}),"onUpdate:address":a[7]||(a[7]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location"]),e.createVNode(w.default,{apiKey:i.GOOGLE_MAPS_API_KEY,address:t.state.spot.address,location:t.state.spot.location,class:"h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden","onUpdate:location":a[8]||(a[8]=o=>{t.state.spot.location=o}),"onUpdate:address":a[9]||(a[9]=o=>{t.state.spot.address=o})},null,8,["apiKey","address","location"]),_,e.createVNode(n.default,{label:"Hide address",name:"address",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:(s=t.state.spot.position)==null?void 0:s.hide,"onUpdate:radio":a[10]||(a[10]=o=>t.state.spot.position.hide=o)},null,8,["radio"]),e.createVNode(r.default,{field:t.state.spot.minorder,"onUpdate:field":a[11]||(a[11]=o=>t.state.spot.minorder=o),label:"Min.order",placeholder:"Enter minimum order value",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])]}),_:1})]),e.createVNode(u.default,{submit:v,callback:i.redirectToDash,class:"w-100 bg-light"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1},8,["callback"])]))}};exports.default=P;
|