@ozdao/prometheus-framework 0.2.133 → 0.2.134

Sign up to get free protection for your applications and to get access to all the features.
Files changed (290) hide show
  1. package/dist/_virtual/alignment-pattern.cjs +1 -0
  2. package/dist/_virtual/alignment-pattern.js +4 -0
  3. package/dist/_virtual/browser.cjs +1 -0
  4. package/dist/_virtual/browser.js +4 -0
  5. package/dist/_virtual/canvas.cjs +1 -0
  6. package/dist/_virtual/canvas.js +4 -0
  7. package/dist/_virtual/dijkstra.cjs +1 -0
  8. package/dist/_virtual/dijkstra.js +4 -0
  9. package/dist/_virtual/error-correction-code.cjs +1 -0
  10. package/dist/_virtual/error-correction-code.js +4 -0
  11. package/dist/_virtual/error-correction-level.cjs +1 -0
  12. package/dist/_virtual/error-correction-level.js +4 -0
  13. package/dist/_virtual/finder-pattern.cjs +1 -0
  14. package/dist/_virtual/finder-pattern.js +4 -0
  15. package/dist/_virtual/format-info.cjs +1 -0
  16. package/dist/_virtual/format-info.js +4 -0
  17. package/dist/_virtual/galois-field.cjs +1 -0
  18. package/dist/_virtual/galois-field.js +4 -0
  19. package/dist/_virtual/mask-pattern.cjs +1 -0
  20. package/dist/_virtual/mask-pattern.js +4 -0
  21. package/dist/_virtual/mode.cjs +1 -0
  22. package/dist/_virtual/mode.js +4 -0
  23. package/dist/_virtual/polynomial.cjs +1 -0
  24. package/dist/_virtual/polynomial.js +4 -0
  25. package/dist/_virtual/qrcode.cjs +1 -0
  26. package/dist/_virtual/qrcode.js +4 -0
  27. package/dist/_virtual/regex.cjs +1 -0
  28. package/dist/_virtual/regex.js +4 -0
  29. package/dist/_virtual/segments.cjs +1 -0
  30. package/dist/_virtual/segments.js +4 -0
  31. package/dist/_virtual/svg-tag.cjs +1 -0
  32. package/dist/_virtual/svg-tag.js +4 -0
  33. package/dist/_virtual/utils.cjs +1 -0
  34. package/dist/_virtual/utils.js +4 -0
  35. package/dist/_virtual/utils2.cjs +1 -0
  36. package/dist/_virtual/utils2.js +4 -0
  37. package/dist/_virtual/version-check.cjs +1 -0
  38. package/dist/_virtual/version-check.js +4 -0
  39. package/dist/_virtual/version.cjs +1 -0
  40. package/dist/_virtual/version.js +4 -0
  41. package/dist/auth.server.js +1 -1
  42. package/dist/auth.server.mjs +1 -1
  43. package/dist/community.server.js +1 -1
  44. package/dist/community.server.mjs +1 -1
  45. package/dist/events.server.js +1 -1
  46. package/dist/events.server.mjs +1 -1
  47. package/dist/files.server.js +1 -1
  48. package/dist/files.server.mjs +1 -1
  49. package/dist/gallery.server.js +1 -1
  50. package/dist/gallery.server.mjs +1 -1
  51. package/dist/index-C-8xOJnM.mjs +244 -0
  52. package/dist/index-CDbtWkBj.js +243 -0
  53. package/dist/main-5IrI2IOV.js +92 -0
  54. package/dist/main-BY2OvGB9.mjs +14509 -0
  55. package/dist/main.css +1 -1
  56. package/dist/middlewares.server.js +1 -1
  57. package/dist/middlewares.server.mjs +1 -1
  58. package/dist/node_modules/dijkstrajs/dijkstra.cjs +1 -0
  59. package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
  60. package/dist/node_modules/encode-utf8/index.cjs +1 -0
  61. package/dist/node_modules/encode-utf8/index.js +30 -0
  62. package/dist/node_modules/qrcode/lib/browser.cjs +1 -0
  63. package/dist/node_modules/qrcode/lib/browser.js +45 -0
  64. package/dist/node_modules/qrcode/lib/can-promise.cjs +1 -0
  65. package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
  66. package/dist/node_modules/qrcode/lib/core/alignment-pattern.cjs +1 -0
  67. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
  68. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.cjs +1 -0
  69. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
  70. package/dist/node_modules/qrcode/lib/core/bit-buffer.cjs +1 -0
  71. package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
  72. package/dist/node_modules/qrcode/lib/core/bit-matrix.cjs +1 -0
  73. package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
  74. package/dist/node_modules/qrcode/lib/core/byte-data.cjs +1 -0
  75. package/dist/node_modules/qrcode/lib/core/byte-data.js +24 -0
  76. package/dist/node_modules/qrcode/lib/core/error-correction-code.cjs +1 -0
  77. package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
  78. package/dist/node_modules/qrcode/lib/core/error-correction-level.cjs +1 -0
  79. package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
  80. package/dist/node_modules/qrcode/lib/core/finder-pattern.cjs +1 -0
  81. package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
  82. package/dist/node_modules/qrcode/lib/core/format-info.cjs +1 -0
  83. package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
  84. package/dist/node_modules/qrcode/lib/core/galois-field.cjs +1 -0
  85. package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
  86. package/dist/node_modules/qrcode/lib/core/kanji-data.cjs +2 -0
  87. package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
  88. package/dist/node_modules/qrcode/lib/core/mask-pattern.cjs +1 -0
  89. package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
  90. package/dist/node_modules/qrcode/lib/core/mode.cjs +1 -0
  91. package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
  92. package/dist/node_modules/qrcode/lib/core/numeric-data.cjs +1 -0
  93. package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
  94. package/dist/node_modules/qrcode/lib/core/polynomial.cjs +1 -0
  95. package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
  96. package/dist/node_modules/qrcode/lib/core/qrcode.cjs +4 -0
  97. package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
  98. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.cjs +1 -0
  99. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
  100. package/dist/node_modules/qrcode/lib/core/regex.cjs +2 -0
  101. package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
  102. package/dist/node_modules/qrcode/lib/core/segments.cjs +2 -0
  103. package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
  104. package/dist/node_modules/qrcode/lib/core/utils.cjs +1 -0
  105. package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
  106. package/dist/node_modules/qrcode/lib/core/version-check.cjs +1 -0
  107. package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
  108. package/dist/node_modules/qrcode/lib/core/version.cjs +1 -0
  109. package/dist/node_modules/qrcode/lib/core/version.js +74 -0
  110. package/dist/node_modules/qrcode/lib/renderer/canvas.cjs +1 -0
  111. package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
  112. package/dist/node_modules/qrcode/lib/renderer/svg-tag.cjs +2 -0
  113. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
  114. package/dist/node_modules/qrcode/lib/renderer/utils.cjs +1 -0
  115. package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
  116. package/dist/orders.server.js +1 -1
  117. package/dist/orders.server.mjs +1 -1
  118. package/dist/organizations.server.js +1 -1
  119. package/dist/organizations.server.mjs +1 -1
  120. package/dist/products.server.js +1 -1
  121. package/dist/products.server.mjs +1 -1
  122. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  124. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/components/Field/Field.vue.js +19 -20
  126. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +5 -5
  128. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  130. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +16 -16
  134. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +16 -16
  136. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +13 -13
  138. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +36 -36
  140. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +29 -29
  142. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  144. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  150. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +23 -23
  152. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  154. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +14 -14
  156. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +2 -2
  160. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  162. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +12 -12
  164. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +21 -21
  166. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  168. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +5 -5
  170. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +7 -7
  172. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  174. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +8 -8
  176. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  178. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  180. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
  182. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
  184. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +5 -5
  186. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +8 -8
  188. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  190. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  194. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  196. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  198. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +8 -8
  200. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  202. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +12 -12
  204. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +16 -16
  206. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +6 -6
  208. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +19 -19
  210. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  212. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +7 -7
  214. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  216. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  218. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +13 -13
  220. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  221. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +18 -18
  222. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  223. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +32 -32
  224. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  225. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +10 -10
  226. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  227. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +5 -5
  228. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  229. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  230. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  231. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  232. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  233. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  234. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  235. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  236. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  237. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +9 -9
  238. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  239. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js +34 -0
  240. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -0
  241. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +42 -0
  242. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.cjs +1 -0
  243. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.js +26 -0
  244. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -0
  245. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +76 -0
  246. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.cjs +1 -0
  247. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js +105 -0
  248. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -0
  249. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +106 -0
  250. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  251. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +140 -125
  252. package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.cjs +1 -0
  253. package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.js +41 -0
  254. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
  255. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +98 -22
  256. package/dist/prometheus-framework.cjs.js +1 -1
  257. package/dist/prometheus-framework.es.js +1 -1
  258. package/dist/reports.server.js +1 -1
  259. package/dist/reports.server.mjs +1 -1
  260. package/dist/style.css +1 -1
  261. package/dist/wallet.server.js +103 -13
  262. package/dist/wallet.server.mjs +103 -13
  263. package/dist/web-5eyiz9L7.mjs +54 -0
  264. package/dist/web-C04IcLk4.js +1 -0
  265. package/package.json +1 -1
  266. package/src/components/Field/Field.vue +1 -1
  267. package/src/modules/community/components/pages/Blog.vue +1 -1
  268. package/src/modules/globals/components/partials/Header.vue +2 -2
  269. package/src/modules/globals/localization/vue-i18n.js +5 -5
  270. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -3
  271. package/src/modules/landing/components/sections/SectionEarn.vue +1 -6
  272. package/src/modules/middlewares/server/authSecret.js +22 -0
  273. package/src/modules/middlewares/server/index.js +7 -5
  274. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -2
  275. package/src/modules/wallet/controllers/routes/rewards.routes.js +27 -3
  276. package/src/modules/wallet/models/wallet.model.js +5 -5
  277. package/src/modules/wallet/{components → views/components}/blocks/CardBalanceReplenished.vue +17 -7
  278. package/src/modules/wallet/{components/blocks/CardDeposite.vue → views/components/blocks/CardDeposit.vue} +4 -4
  279. package/src/modules/wallet/views/components/blocks/CryptoDeposit.vue +98 -0
  280. package/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue +144 -0
  281. package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +131 -0
  282. package/src/modules/wallet/views/components/pages/Wallet.vue +95 -68
  283. package/src/modules/wallet/views/localization/wallet.json +37 -0
  284. package/src/modules/wallet/views/store/wallet.store.js +145 -28
  285. package/src/modules/wallet/wallet.server.js +2 -2
  286. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +0 -55
  287. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +0 -181
  288. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +0 -213
  289. package/src/modules/wallet/localization/Wallet.json +0 -22
  290. /package/src/modules/wallet/{components/blocks/CashDeposite.vue → views/components/blocks/CashDeposit.vue} +0 -0
@@ -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
+ };
@@ -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;
@@ -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
+ };
@@ -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;
@@ -0,0 +1,76 @@
1
+ import { ref as _, computed as m, onMounted as v, openBlock as u, createElementBlock as N, Fragment as y, createElementVNode as c, toDisplayString as i, unref as e, createBlock as C, withCtx as E, createVNode as A, createCommentVNode as x } from "vue";
2
+ import { useI18n as S } from "vue-i18n";
3
+ import { BigNumber as d } from "../../../../../../node_modules/bignumber.js/bignumber.js";
4
+ import { state as n, actions as f } from "../../store/wallet.store.js";
5
+ import B from "../../localization/wallet.json.js";
6
+ import O from "../../../../../components/Field/Field.vue.js";
7
+ import T from "../../../../../components/Select/Select.vue.js";
8
+ const $ = { class: "mn-b-small t-center t-bold" }, D = { class: "t-semi" }, I = ["disabled"], G = {
9
+ __name: "CryptoDeposit",
10
+ emits: ["back-selection", "switch-menu"],
11
+ setup(V, { emit: b }) {
12
+ d.config({
13
+ EXPONENTIAL_AT: [-1e3, 2e4]
14
+ });
15
+ const r = _(1), a = b, { t: s } = S({
16
+ useScope: "global",
17
+ ...B
18
+ }), k = m(
19
+ () => new d(r.value).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString()
20
+ ), w = m(() => {
21
+ const l = [], o = Object.keys(n.config || {});
22
+ for (const t of o)
23
+ for (const p of Object.keys(n.config[t].tokens))
24
+ l.push({
25
+ name: `${t}-${p}`,
26
+ value: {
27
+ token: n.config[t].tokens[p],
28
+ network: t
29
+ }
30
+ });
31
+ return l;
32
+ });
33
+ v(() => {
34
+ f.loadConfig();
35
+ });
36
+ function h() {
37
+ a("back-selection");
38
+ }
39
+ function g(l = 0) {
40
+ a("switch-menu", l);
41
+ }
42
+ return (l, o) => (u(), N(y, null, [
43
+ c("h3", $, i(e(s)("wallet.depositWithCrypto")), 1),
44
+ e(n).config ? (u(), C(O, {
45
+ key: 0,
46
+ field: r.value,
47
+ "onUpdate:field": o[1] || (o[1] = (t) => r.value = t),
48
+ placeholder: e(s)("wallet.enterAmount"),
49
+ class: "mn-b-thin bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"
50
+ }, {
51
+ default: E(() => [
52
+ A(T, {
53
+ options: w.value,
54
+ select: e(n).chosenNetwork,
55
+ "onUpdate:select": o[0] || (o[0] = (t) => e(n).chosenNetwork = t),
56
+ class: "bg-light t-nowrap pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"
57
+ }, null, 8, ["options", "select"])
58
+ ]),
59
+ _: 1
60
+ }, 8, ["field", "placeholder"])) : x("", !0),
61
+ c("p", D, "You will receive: " + i(k.value) + " " + i(e(s)("wallet.token")), 1),
62
+ c("button", {
63
+ 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",
64
+ onClick: o[2] || (o[2] = (t) => e(f).requestCryptoDeposit(r.value).then(() => g(5))),
65
+ disabled: e(n).depositRequestIsActive || !e(n).config
66
+ }, i(e(s)("wallet.pay")), 9, I),
67
+ c("button", {
68
+ class: "uppercase w-100 t-center mn-t-small",
69
+ onClick: h
70
+ }, i(e(s)("wallet.backToSelection")), 1)
71
+ ], 64));
72
+ }
73
+ };
74
+ export {
75
+ G as default
76
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../../../../node_modules/qrcode/lib/browser.cjs");const N=require("vue-i18n"),a=require("../../../../../../node_modules/bignumber.js/bignumber.cjs"),E=require("../../localization/wallet.json.cjs"),t=require("../../store/wallet.store.cjs");;/* empty css */const T=require("../../../../../../../_virtual/_plugin-vue_export-helper.cjs"),b=require("../../../../../../../_virtual/browser.cjs"),i=n=>(e.pushScopeId("data-v-97ae0556"),n=n(),e.popScopeId(),n),h={class:"mn-b-small t-center t-bold"},g={class:"flex flex-justify-between"},y={class:"t-semi"},v={class:"flex flex-justify-between"},w={class:"t-semi t-truncate address"},I=i(()=>e.createElementVNode("div",{class:"flex flex-justify-around radius-big br-solid br-2px br-black-transp-10"},[e.createElementVNode("canvas",{id:"qrcode_address_deposit"})],-1)),k={class:"flex flex-justify-between"},A=i(()=>e.createElementVNode("h3",{class:"t-semi"},"You will receive:",-1)),V={class:"t-semi"},x={key:0,class:"flex flex-justify-between"},R=i(()=>e.createElementVNode("h3",{class:"t-semi"},"Times left:",-1)),C={class:"t-semi"},D={class:"flex flex-justify-between"},B=i(()=>e.createElementVNode("h3",{class:"t-semi"},"Status:",-1)),q={class:"t-semi"},F={__name:"CryptoDepositProcessing",emits:["back-selection","switch-menu"],setup(n,{emit:d}){a.BigNumber.config({EXPONENTIAL_AT:[-1e3,2e4]});const c=d,{t:l}=N.useI18n({useScope:"global",...E.default}),m=e.computed(()=>{const s=Math.floor(t.timer.remaining/60),o=Math.floor(t.timer.remaining%60);return`${s}:${o<10?`0${o}`:o}`}),r=e.computed(()=>new a.BigNumber(t.state.depositInfo.amount).shiftedBy(-8).toString()),p=e.computed(()=>new a.BigNumber(r.value).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString()),_=e.computed(()=>{switch(t.state.depositInfo.status){case"TRANSFER_STATUS_WAITING_FOR_TX":return"Waiting for payment";case"TRANSFER_STATUS_SENT":return`Confirming (${`${t.state.depositInfo.confirmations||0} / ${t.state.config[t.state.chosenNetwork.value.network].confirmations}`})`;default:return"Superposition."}});function f(){c("back-selection")}function S(s=0){c("switch-menu",s)}function u(s){navigator.clipboard.writeText(s)}return e.onMounted(()=>{b.__exports.toCanvas(document.getElementById("qrcode_address_deposit"),t.state.depositInfo.to,{width:300},s=>{s&&console.error(s)})}),e.watch(t.state,async()=>{t.state.depositInfo.status==="TRANSFER_STATUS_SENT"&&t.actions.stopTimer(),t.state.depositInfo.status==="TRANSFER_STATUS_COMPLETED"&&(t.actions.disconnectWebSocket(),S(3))},{deep:!0}),(s,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",h,e.toDisplayString(e.unref(l)("wallet.depositWithCrypto")),1),e.createElementVNode("div",g,[e.createElementVNode("h3",y,"Amount: "+e.toDisplayString(r.value)+" "+e.toDisplayString(e.unref(t.state).chosenNetwork.name.toUpperCase()),1),e.createElementVNode("button",{class:"uppercase t-main cursor-pointer",onClick:o[0]||(o[0]=()=>u(r.value))}," copy ")]),e.createElementVNode("div",v,[e.createElementVNode("h3",w,"Wallet: "+e.toDisplayString(e.unref(t.state).depositInfo.to),1),e.createElementVNode("button",{class:"uppercase t-main cursor-pointer",onClick:o[1]||(o[1]=()=>u(e.unref(t.state).depositInfo.to))}," copy ")]),I,e.createElementVNode("div",k,[A,e.createElementVNode("h3",V,e.toDisplayString(p.value)+" WDT",1)]),e.unref(t.state).depositInfo.status==="TRANSFER_STATUS_WAITING_FOR_TX"?(e.openBlock(),e.createElementBlock("div",x,[R,e.createElementVNode("h3",C,e.toDisplayString(m.value),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",D,[B,e.createElementVNode("h3",q,e.toDisplayString(_.value),1)]),e.unref(t.state).depositInfo.status==="TRANSFER_STATUS_WAITING_FOR_TX"?(e.openBlock(),e.createElementBlock("button",{key:1,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]=j=>e.unref(t.actions).cancelDeposit().then(()=>f()))},e.toDisplayString(e.unref(l)("wallet.cancel")),1)):e.createCommentVNode("",!0)],64))}},W=T.default(F,[["__scopeId","data-v-97ae0556"]]);exports.default=W;
@@ -0,0 +1,105 @@
1
+ import { computed as r, onMounted as A, watch as N, openBlock as d, createElementBlock as p, Fragment as g, createElementVNode as t, toDisplayString as i, unref as n, createCommentVNode as h, pushScopeId as E, popScopeId as k } from "vue";
2
+ import "../../../../../../../node_modules/qrcode/lib/browser.js";
3
+ import { useI18n as R } from "vue-i18n";
4
+ import { BigNumber as m } from "../../../../../../node_modules/bignumber.js/bignumber.js";
5
+ import C from "../../localization/wallet.json.js";
6
+ import { timer as S, state as e, actions as u } from "../../store/wallet.store.js";
7
+ /* empty css */
8
+ import F from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
9
+ import { __exports as W } from "../../../../../../../_virtual/browser.js";
10
+ const a = (c) => (E("data-v-97ae0556"), c = c(), k(), c), U = { class: "mn-b-small t-center t-bold" }, $ = { class: "flex flex-justify-between" }, j = { class: "t-semi" }, B = { class: "flex flex-justify-between" }, D = { class: "t-semi t-truncate address" }, O = /* @__PURE__ */ a(() => /* @__PURE__ */ t("div", { class: "flex flex-justify-around radius-big br-solid br-2px br-black-transp-10" }, [
11
+ /* @__PURE__ */ t("canvas", { id: "qrcode_address_deposit" })
12
+ ], -1)), M = { class: "flex flex-justify-between" }, X = /* @__PURE__ */ a(() => /* @__PURE__ */ t("h3", { class: "t-semi" }, "You will receive:", -1)), G = { class: "t-semi" }, P = {
13
+ key: 0,
14
+ class: "flex flex-justify-between"
15
+ }, q = /* @__PURE__ */ a(() => /* @__PURE__ */ t("h3", { class: "t-semi" }, "Times left:", -1)), L = { class: "t-semi" }, V = { class: "flex flex-justify-between" }, H = /* @__PURE__ */ a(() => /* @__PURE__ */ t("h3", { class: "t-semi" }, "Status:", -1)), K = { class: "t-semi" }, Y = {
16
+ __name: "CryptoDepositProcessing",
17
+ emits: ["back-selection", "switch-menu"],
18
+ setup(c, { emit: b }) {
19
+ m.config({
20
+ EXPONENTIAL_AT: [-1e3, 2e4]
21
+ });
22
+ const _ = b, { t: f } = R({
23
+ useScope: "global",
24
+ ...C
25
+ }), v = r(() => {
26
+ const s = Math.floor(S.remaining / 60), o = Math.floor(S.remaining % 60);
27
+ return `${s}:${o < 10 ? `0${o}` : o}`;
28
+ }), l = r(
29
+ () => new m(e.depositInfo.amount).shiftedBy(-8).toString()
30
+ ), w = r(
31
+ () => new m(l.value).dividedBy(process.env.TOKEN_EXCHANGE_RATE).toString()
32
+ ), I = r(() => {
33
+ switch (e.depositInfo.status) {
34
+ case "TRANSFER_STATUS_WAITING_FOR_TX":
35
+ return "Waiting for payment";
36
+ case "TRANSFER_STATUS_SENT":
37
+ return `Confirming (${`${e.depositInfo.confirmations || 0} / ${e.config[e.chosenNetwork.value.network].confirmations}`})`;
38
+ default:
39
+ return "Superposition.";
40
+ }
41
+ });
42
+ function x() {
43
+ _("back-selection");
44
+ }
45
+ function y(s = 0) {
46
+ _("switch-menu", s);
47
+ }
48
+ function T(s) {
49
+ navigator.clipboard.writeText(s);
50
+ }
51
+ return A(() => {
52
+ W.toCanvas(
53
+ document.getElementById("qrcode_address_deposit"),
54
+ e.depositInfo.to,
55
+ { width: 300 },
56
+ (s) => {
57
+ s && console.error(s);
58
+ }
59
+ );
60
+ }), N(
61
+ e,
62
+ async () => {
63
+ e.depositInfo.status === "TRANSFER_STATUS_SENT" && u.stopTimer(), e.depositInfo.status === "TRANSFER_STATUS_COMPLETED" && (u.disconnectWebSocket(), y(3));
64
+ },
65
+ { deep: !0 }
66
+ ), (s, o) => (d(), p(g, null, [
67
+ t("h2", U, i(n(f)("wallet.depositWithCrypto")), 1),
68
+ t("div", $, [
69
+ t("h3", j, "Amount: " + i(l.value) + " " + i(n(e).chosenNetwork.name.toUpperCase()), 1),
70
+ t("button", {
71
+ class: "uppercase t-main cursor-pointer",
72
+ onClick: o[0] || (o[0] = () => T(l.value))
73
+ }, " copy ")
74
+ ]),
75
+ t("div", B, [
76
+ t("h3", D, "Wallet: " + i(n(e).depositInfo.to), 1),
77
+ t("button", {
78
+ class: "uppercase t-main cursor-pointer",
79
+ onClick: o[1] || (o[1] = () => T(n(e).depositInfo.to))
80
+ }, " copy ")
81
+ ]),
82
+ O,
83
+ t("div", M, [
84
+ X,
85
+ t("h3", G, i(w.value) + " WDT", 1)
86
+ ]),
87
+ n(e).depositInfo.status === "TRANSFER_STATUS_WAITING_FOR_TX" ? (d(), p("div", P, [
88
+ q,
89
+ t("h3", L, i(v.value), 1)
90
+ ])) : h("", !0),
91
+ t("div", V, [
92
+ H,
93
+ t("h3", K, i(I.value), 1)
94
+ ]),
95
+ n(e).depositInfo.status === "TRANSFER_STATUS_WAITING_FOR_TX" ? (d(), p("button", {
96
+ key: 1,
97
+ 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",
98
+ onClick: o[2] || (o[2] = (z) => n(u).cancelDeposit().then(() => x()))
99
+ }, i(n(f)("wallet.cancel")), 1)) : h("", !0)
100
+ ], 64));
101
+ }
102
+ }, ct = /* @__PURE__ */ F(Y, [["__scopeId", "data-v-97ae0556"]]);
103
+ export {
104
+ ct as default
105
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("vue-i18n"),h=require("../../localization/wallet.json.cjs"),l=require("../../../../icons/navigation/IconAdd.vue.cjs"),w=e.createElementVNode("img",{src:"/icons/metamask.svg",class:"mn-r-small i-big"},null,-1),f={class:"h4 uppercase w-100"},k=e.createElementVNode("img",{src:"/icons/metamask.svg",class:"mn-r-small i-big"},null,-1),g={class:"h4 uppercase w-100"},v=e.createElementVNode("img",{src:"/icons/metamask.svg",class:"mn-r-small i-big"},null,-1),b={class:"h4 uppercase w-100"},_="0xE11702CF04621D395E75680C29d3dbF81484e875",y="WDT",E=8,x="https://weeder.delivery/logo-token.png",M={__name:"ConnectMetamask",setup(N){const a=e.ref(!1),o=e.ref(!1),r=e.ref(!1),c=e.ref(null),i=e.ref({}),u=async()=>{if(typeof window.ethereum<"u")try{await window.ethereum.request({method:"eth_requestAccounts"}),s()}catch(t){console.error("Ошибка при подключении MetaMask:",t)}else window.open("https://metamask.io/","_blank")},s=async()=>{if(typeof window.ethereum<"u"){a.value=!0;const t=await window.ethereum.request({method:"eth_chainId"});o.value=t==="0x89"||t==="0x13881"}else a.value=!1},d=async()=>{try{await window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:"0x89"}]}),s()}catch(t){console.error("Ошибка при переключении на Polygon:",t)}},m=async()=>{i.value["pointer-events"]="none",c.value=null,r.value=!0;try{await ethereum.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:_,symbol:y,decimals:E,image:x}}}),i.value["background-color"]="#009911",r.value=!1}catch(t){c.value=t.toString()}},{t:n}=p.useI18n({useScope:"global",...h.default});return e.onMounted(()=>{s()}),(t,V)=>(e.openBlock(),e.createElementBlock("div",null,[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"transition-ease-in-out cursor-pointer hover-bg-white hover-t-black bg-black t-white radius-big flex-v-center flex-nowrap flex t-left uppercase w-100 pd-small"},[k,e.createElementVNode("span",g,e.toDisplayString(e.unref(n)("wallet.switchToPolygon")),1),e.createVNode(l.default,{class:"t-transp",fill:"rgb(var(--white))"})])),o.value?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:m,class:"transition-ease-in-out cursor-pointer hover-bg-white hover-t-black bg-black radius-big flex-v-center flex-nowrap flex t-left uppercase w-100 pd-small t-white"},[v,e.createElementVNode("span",b,e.toDisplayString(e.unref(n)("wallet.addToken")),1),e.createVNode(l.default,{class:"hover-fill-black fill-white t-transp"})])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u,class:"transition-ease-in-out cursor-pointer bg-black radius-big flex-v-center flex-nowrap flex t-left uppercase w-100 pd-small t-white"},[w,e.createElementVNode("span",f,e.toDisplayString(e.unref(n)("wallet.connectMetaMask")),1),e.createVNode(l.default,{class:"t-transp",fill:"rgb(var(--white))"})]))]))}};exports.default=M;
@@ -0,0 +1,106 @@
1
+ import { ref as s, onMounted as v, openBlock as a, createElementBlock as o, createElementVNode as t, toDisplayString as i, unref as u, createVNode as m, Fragment as _, createCommentVNode as f } from "vue";
2
+ import { useI18n as y } from "vue-i18n";
3
+ import x from "../../localization/wallet.json.js";
4
+ import d from "../../../../icons/navigation/IconAdd.vue.js";
5
+ const M = /* @__PURE__ */ t("img", {
6
+ src: "/icons/metamask.svg",
7
+ class: "mn-r-small i-big"
8
+ }, null, -1), C = { class: "h4 uppercase w-100" }, E = /* @__PURE__ */ t("img", {
9
+ src: "/icons/metamask.svg",
10
+ class: "mn-r-small i-big"
11
+ }, null, -1), I = { class: "h4 uppercase w-100" }, q = /* @__PURE__ */ t("img", {
12
+ src: "/icons/metamask.svg",
13
+ class: "mn-r-small i-big"
14
+ }, null, -1), D = { class: "h4 uppercase w-100" }, S = "0xE11702CF04621D395E75680C29d3dbF81484e875", T = "WDT", P = 8, A = "https://weeder.delivery/logo-token.png", $ = {
15
+ __name: "ConnectMetamask",
16
+ setup(F) {
17
+ const n = s(!1), l = s(!1), h = s(!1), p = s(null), w = s({}), k = async () => {
18
+ if (typeof window.ethereum < "u")
19
+ try {
20
+ await window.ethereum.request({ method: "eth_requestAccounts" }), r();
21
+ } catch (e) {
22
+ console.error("Ошибка при подключении MetaMask:", e);
23
+ }
24
+ else
25
+ window.open("https://metamask.io/", "_blank");
26
+ }, r = async () => {
27
+ if (typeof window.ethereum < "u") {
28
+ n.value = !0;
29
+ const e = await window.ethereum.request({ method: "eth_chainId" });
30
+ l.value = e === "0x89" || e === "0x13881";
31
+ } else
32
+ n.value = !1;
33
+ }, g = async () => {
34
+ try {
35
+ await window.ethereum.request({
36
+ method: "wallet_switchEthereumChain",
37
+ params: [{ chainId: "0x89" }]
38
+ }), r();
39
+ } catch (e) {
40
+ console.error("Ошибка при переключении на Polygon:", e);
41
+ }
42
+ }, b = async () => {
43
+ w.value["pointer-events"] = "none", p.value = null, h.value = !0;
44
+ try {
45
+ await ethereum.request({
46
+ method: "wallet_watchAsset",
47
+ params: {
48
+ type: "ERC20",
49
+ options: {
50
+ address: S,
51
+ symbol: T,
52
+ decimals: P,
53
+ image: A
54
+ }
55
+ }
56
+ }), w.value["background-color"] = "#009911", h.value = !1;
57
+ } catch (e) {
58
+ p.value = e.toString();
59
+ }
60
+ }, { t: c } = y({
61
+ useScope: "global",
62
+ ...x
63
+ });
64
+ return v(() => {
65
+ r();
66
+ }), (e, N) => (a(), o("div", null, [
67
+ n.value ? (a(), o(_, { key: 1 }, [
68
+ l.value ? f("", !0) : (a(), o("button", {
69
+ key: 0,
70
+ onClick: g,
71
+ class: "transition-ease-in-out cursor-pointer hover-bg-white hover-t-black bg-black t-white radius-big flex-v-center flex-nowrap flex t-left uppercase w-100 pd-small"
72
+ }, [
73
+ E,
74
+ t("span", I, i(u(c)("wallet.switchToPolygon")), 1),
75
+ m(d, {
76
+ class: "t-transp",
77
+ fill: "rgb(var(--white))"
78
+ })
79
+ ])),
80
+ l.value ? (a(), o("button", {
81
+ key: 1,
82
+ onClick: b,
83
+ class: "transition-ease-in-out cursor-pointer hover-bg-white hover-t-black bg-black radius-big flex-v-center flex-nowrap flex t-left uppercase w-100 pd-small t-white"
84
+ }, [
85
+ q,
86
+ t("span", D, i(u(c)("wallet.addToken")), 1),
87
+ m(d, { class: "hover-fill-black fill-white t-transp" })
88
+ ])) : f("", !0)
89
+ ], 64)) : (a(), o("button", {
90
+ key: 0,
91
+ onClick: k,
92
+ class: "transition-ease-in-out cursor-pointer bg-black radius-big flex-v-center flex-nowrap flex t-left uppercase w-100 pd-small t-white"
93
+ }, [
94
+ M,
95
+ t("span", C, i(u(c)("wallet.connectMetaMask")), 1),
96
+ m(d, {
97
+ class: "t-transp",
98
+ fill: "rgb(var(--white))"
99
+ })
100
+ ]))
101
+ ]));
102
+ }
103
+ };
104
+ export {
105
+ $ as default
106
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../store/wallet.store.cjs"),d=require("web3");require("vue-router");const m=require("../../../../../components/Popup/Popup.vue2.cjs");;/* empty css */;/* empty css */;/* empty css */require("../../../../reports/store/reports.cjs");;/* empty css */;/* empty css */require("../../../../auth/store/auth.cjs");require("../../../../organizations/store/memberships.cjs");require("../../../../community/store/reactions.cjs");;/* empty css */const u=require("../../../components/blocks/CashDeposite.vue.cjs"),p=require("../../../components/blocks/CardDeposite.vue.cjs"),b=require("../../../components/blocks/CryptoDeposite.vue.cjs"),k=require("../../../components/blocks/CardBalanceReplenished.vue.cjs"),h={class:"pd-thin"},_={class:"bg-black t-white mn-b-thin radius-big pd-big"},f=e.createElementVNode("h1",{class:"mn-b-medium"},"Your Wallet",-1),g=e.createElementVNode("p",{class:"mn-b-semi t-transp p-big"}," Earn Weeder Tokens by purchasing our weed or contributing to the community. ",-1),E={key:0,class:"gap-thin mn-b-thin flex-nowrap bg-black radius-extra t-white br-solid br-white-transp-10 br-1px flex-v-center flex pd-medium"},w={class:"flex-v-center flex-nowrap flex mn-r-auto"},N={key:1,class:"w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"},V=e.createElementVNode("p",{class:"t-transp t-medium mn-b-thin"},"You own:",-1),B={class:"h1 mn-b-small"},y=e.createElementVNode("p",{class:"t-white p-big t-medium mn-b-semi"},"of all shares",-1),C={class:"flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra"},v={key:0,class:"t-transp t-medium"},x=e.createElementVNode("span",{class:"uppercase p-small t-medium t-transp"},"Connected Metamask",-1),q=e.createElementVNode("br",null,null,-1),D={key:0,class:"mn-b-semi cols-2 gap-thin"},S=e.createElementVNode("div",{class:"w-100 pd-medium radius-medium t-center bg-light"},[e.createElementVNode("h3",{class:"mn-b-small"},"Make first order and start earning Weeder Token"),e.createElementVNode("button",{class:"mn-l-auto mn-r-auto bg-main button"},"Explore marketplace")],-1),W={class:"w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light"},M={key:0,class:"mn-b-small"},P={key:1,class:"mn-b-small"},R={class:"cols-3 gap-thin"},T={class:"radius-medium bg-light"},$={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},G={class:"t-semi mn-r-auto"},O={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},A={class:"pd-medium"},F={class:"t-regular mn-b-thin"},L={key:2,class:"mn-b-small"},Y={class:"cols-3 gap-thin"},j={class:"radius-medium bg-grey"},H={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},z={class:"t-semi mn-r-auto"},I={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},J={class:"pd-medium"},K={class:"t-regular mn-b-thin"},Q={key:0},U=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Choose the way of deposit",-1),X={__name:"Wallet",setup(Z){window.ethereum.on("accountsChanged",a=>{a.length<1&&(t.state.account=null)}),t.state.web3=new d(window.ethereum||"http://localhost:8080"),e.onMounted(()=>{t.actions.listRewards(),t.actions.tryReconnectWallet()});const r=e.ref(!1),l=e.ref(0);function s(a){l.value=a}function i(){r.value=!0}function c(){r.value=!1,l.value=0}return(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("section",h,[e.createElementVNode("section",_,[f,g,e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",w,[e.createElementVNode("h2",null,e.toDisplayString(e.unref(t.state).tokenBalance)+" WDT",1)]),e.createElementVNode("button",{onClick:i,class:"w-max bg-main t-medium button"},"Get More"),e.createElementVNode("button",{class:"w-max bg-white t-black t-medium button",onClick:o[0]||(o[0]=(...n)=>e.unref(t.actions).collectRewards&&e.unref(t.actions).collectRewards(...n))},"Withdraw")])):e.createCommentVNode("",!0),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",N,[V,e.createElementVNode("p",B,e.toDisplayString(e.unref(t.state).share)+"%",1),y,e.createElementVNode("div",C,[e.unref(t.state).account?(e.openBlock(),e.createElementBlock("p",v,[x,q,e.createElementVNode("span",null,e.toDisplayString(e.unref(t.state).account),1)])):e.createCommentVNode("",!0),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[1]||(o[1]=(...n)=>e.unref(t.actions).disconnectWallet&&e.unref(t.actions).disconnectWallet(...n)),class:"mn-l-auto bg-red button"}," Disconnect Wallet ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",D,[S,e.createElementVNode("div",W,[e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",M," Connect Metamask to withdrawal your earnings. ")),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[2]||(o[2]=(...n)=>e.unref(t.actions).connectWallet&&e.unref(t.actions).connectWallet(...n)),class:"br-solid br-2px br-black-transp-10 t-black button"}," Connect Wallet "))])])),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",P,"Latest Rewards ")):e.createCommentVNode("",!0),e.createElementVNode("section",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",$,[e.createElementVNode("p",G,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",O,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",A,[e.createElementVNode("h4",F,e.toDisplayString(n.name),1)])]))),256))]),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",L,"Activity")):e.createCommentVNode("",!0),e.createElementVNode("section",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",H,[e.createElementVNode("p",z,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",I,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",J,[e.createElementVNode("h4",K,e.toDisplayString(n.name),1)])]))),256))])]),e.createVNode(m.default,{title:"Добавить участника",onClosePopup:c,isPopupOpen:r.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[l.value===0?(e.openBlock(),e.createElementBlock("div",Q,[U,e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[3]||(o[3]=n=>s(1))}," CASH "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[4]||(o[4]=n=>s(2))}," CARD "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[5]||(o[5]=n=>s(4))}," CRYPTO ")])):e.createCommentVNode("",!0),l.value===1?(e.openBlock(),e.createBlock(u.default,{key:1,onBackSelection:o[6]||(o[6]=n=>s(0))})):e.createCommentVNode("",!0),l.value===2?(e.openBlock(),e.createBlock(p.default,{key:2,onBackSelection:o[7]||(o[7]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0),l.value===3?(e.openBlock(),e.createBlock(k.default,{key:3,onClose:c})):e.createCommentVNode("",!0),l.value===4?(e.openBlock(),e.createBlock(b.default,{key:4,onBackSelection:o[8]||(o[8]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0)]),_:1},8,["isPopupOpen"])],64))}};exports.default=X;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-i18n"),m=require("web3"),t=require("../../store/wallet.store.cjs"),p=require("../../localization/wallet.json.cjs"),b=require("../../../../../components/Popup/Popup.vue.cjs"),k=require("../../../../../components/Button/Button.vue.cjs");require("vue-router");;/* empty css */require("../../../../reports/store/reports.cjs");;/* empty css */;/* empty css */require("../../../../auth/store/auth.cjs");require("../../../../organizations/store/memberships.cjs");require("../../../../community/store/reactions.cjs");;/* empty css */const h=require("../elements/ConnectMetamask.vue.cjs"),f=require("../blocks/CashDeposit.vue.cjs"),_=require("../blocks/CardDeposit.vue.cjs"),g=require("../blocks/CryptoDeposit.vue.cjs"),w=require("../blocks/CardBalanceReplenished.vue.cjs"),N=require("../blocks/CryptoDepositProcessing.vue.cjs"),V={class:"pd-thin"},E={class:"bg-black t-white mn-b-thin radius-big pd-big"},B={class:"mn-b-medium"},v={class:"mn-b-semi t-transp p-big"},y={key:0,class:"gap-thin mn-b-thin flex-nowrap bg-black radius-extra t-white br-solid br-white-transp-10 br-1px flex-v-center flex pd-medium"},C={class:"flex-v-center flex-nowrap flex mn-r-auto"},x={key:1,class:"w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"},S=e.createElementVNode("p",{class:"t-transp t-medium mn-b-thin"},"You own:",-1),q={class:"h1 mn-b-small"},D=e.createElementVNode("p",{class:"t-white p-big t-medium mn-b-semi"},"of all shares",-1),M={class:"flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra"},W={key:0,class:"t-transp t-medium"},P=e.createElementVNode("span",{class:"uppercase p-small t-medium t-transp"},"Connected Metamask",-1),R=e.createElementVNode("br",null,null,-1),T={key:0,class:"mn-b-semi cols-2 gap-thin"},$=e.createElementVNode("div",{class:"w-100 pd-medium radius-medium t-center bg-light"},[e.createElementVNode("h3",{class:"mn-b-small"},"Make first order and start earning Weeder Token"),e.createElementVNode("button",{class:"mn-l-auto mn-r-auto bg-main button"},"Explore marketplace")],-1),G={class:"w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light"},O={key:0,class:"mn-b-small"},A={key:1,class:"mn-b-small"},L={class:"cols-3 gap-thin"},F={class:"radius-medium bg-light"},I={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},Y={class:"t-semi mn-r-auto"},j={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},H={class:"pd-medium"},z={class:"t-regular mn-b-thin"},J={key:2,class:"mn-b-small"},K={class:"cols-3 gap-thin"},Q={class:"radius-medium bg-grey"},U={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},X={class:"t-semi mn-r-auto"},Z={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},ee={class:"pd-medium"},te={class:"t-regular mn-b-thin"},ne={key:0},oe=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Choose the way of deposit",-1),se={__name:"Wallet",setup(le){const{t:r}=u.useI18n({useScope:"global",...p.default});window.ethereum.on("accountsChanged",a=>{a.length<1&&(t.state.account=null)}),t.state.web3=new m(window.ethereum||"http://localhost:8080"),e.onMounted(()=>{t.actions.listRewards(),t.actions.tryReconnectWallet()});const c=e.ref(!1),l=e.ref(0);function s(a){l.value=a}function d(){c.value=!0}function i(){c.value=!1,l.value=0,t.actions.stopTimer(),t.actions.disconnectWebSocket()}return(a,o)=>(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("section",E,[e.createElementVNode("h1",B,e.toDisplayString(e.unref(r)("wallet.title")),1),e.createElementVNode("p",v,e.toDisplayString(e.unref(r)("wallet.subtitle")),1),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",C,[e.createElementVNode("h2",null,e.toDisplayString(e.unref(t.state).tokenBalance)+" "+e.toDisplayString(e.unref(r)("wallet.token")),1)]),e.createElementVNode("button",{onClick:d,class:"t-nowrap w-max bg-main t-medium button"},"Get More"),e.createVNode(k.default,{submit:e.unref(t.actions).collectRewards,class:"w-max bg-white t-black t-medium button"},{default:e.withCtx(()=>[e.createTextVNode(" Withdraw ")]),_:1},8,["submit"])])):e.createCommentVNode("",!0),e.createVNode(h.default,{class:"mn-b-thin radius-extra br-solid br-white-transp-10 br-1px w-100"}),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",x,[S,e.createElementVNode("p",q,e.toDisplayString(e.unref(t.state).share)+"%",1),D,e.createElementVNode("div",M,[e.unref(t.state).account?(e.openBlock(),e.createElementBlock("p",W,[P,R,e.createElementVNode("span",null,e.toDisplayString(e.unref(t.state).account),1)])):e.createCommentVNode("",!0),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[0]||(o[0]=(...n)=>e.unref(t.actions).disconnectWallet&&e.unref(t.actions).disconnectWallet(...n)),class:"mn-l-auto bg-red button"}," Disconnect Wallet ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",T,[$,e.createElementVNode("div",G,[e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",O," Connect Metamask to withdrawal your earnings. ")),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:o[1]||(o[1]=(...n)=>e.unref(t.actions).connectWallet&&e.unref(t.actions).connectWallet(...n)),class:"br-solid br-2px br-black-transp-10 t-black button"}," Connect Wallet "))])])),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",A,"Latest Rewards ")):e.createCommentVNode("",!0),e.createElementVNode("section",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("div",I,[e.createElementVNode("p",Y,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",j,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",H,[e.createElementVNode("h4",z,e.toDisplayString(n.name),1)])]))),256))]),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",J,"Activity")):e.createCommentVNode("",!0),e.createElementVNode("section",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,n=>(e.openBlock(),e.createElementBlock("div",Q,[e.createElementVNode("div",U,[e.createElementVNode("p",X,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",Z,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",ee,[e.createElementVNode("h4",te,e.toDisplayString(n.name),1)])]))),256))]),e.createVNode(b.default,{onClosePopup:i,isPopupOpen:c.value,class:"w-m-50r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[l.value===0?(e.openBlock(),e.createElementBlock("div",ne,[oe,e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[2]||(o[2]=n=>s(1))}," CASH "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[3]||(o[3]=n=>s(2))}," CARD "),e.createElementVNode("button",{class:"w-100 bg-white t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:o[4]||(o[4]=n=>s(4))}," CRYPTO ")])):e.createCommentVNode("",!0),l.value===1?(e.openBlock(),e.createBlock(f.default,{key:1,onBackSelection:o[5]||(o[5]=n=>s(0))})):e.createCommentVNode("",!0),l.value===2?(e.openBlock(),e.createBlock(_.default,{key:2,onBackSelection:o[6]||(o[6]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0),l.value===3?(e.openBlock(),e.createBlock(w.default,{key:3,onClose:i})):e.createCommentVNode("",!0),l.value===4?(e.openBlock(),e.createBlock(g.default,{key:4,onBackSelection:o[7]||(o[7]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0),l.value===5?(e.openBlock(),e.createBlock(N.default,{key:5,onBackSelection:o[8]||(o[8]=n=>s(0)),onSwitchMenu:s})):e.createCommentVNode("",!0)]),_:1},8,["isPopupOpen"])]))}};exports.default=se;