@ozdao/martyrs 0.2.475 → 0.2.477

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/dist/{Media-sGk7Bp9b.mjs → Media-CecrG6g6.mjs} +1 -1
  2. package/dist/{Media-_vz04tII.js → Media-DmnrxIEI.js} +1 -1
  3. package/dist/_virtual/alignment-pattern.cjs +5 -0
  4. package/dist/_virtual/alignment-pattern.cjs.map +1 -0
  5. package/dist/_virtual/alignment-pattern.js +5 -0
  6. package/dist/_virtual/alignment-pattern.js.map +1 -0
  7. package/dist/_virtual/browser.cjs +8 -0
  8. package/dist/_virtual/browser.cjs.map +1 -0
  9. package/dist/_virtual/browser.js +8 -0
  10. package/dist/_virtual/browser.js.map +1 -0
  11. package/dist/_virtual/browser2.cjs +5 -0
  12. package/dist/_virtual/browser2.cjs.map +1 -0
  13. package/dist/_virtual/browser2.js +5 -0
  14. package/dist/_virtual/browser2.js.map +1 -0
  15. package/dist/_virtual/canvas.cjs +5 -0
  16. package/dist/_virtual/canvas.cjs.map +1 -0
  17. package/dist/_virtual/canvas.js +5 -0
  18. package/dist/_virtual/canvas.js.map +1 -0
  19. package/dist/_virtual/dijkstra.cjs +5 -0
  20. package/dist/_virtual/dijkstra.cjs.map +1 -0
  21. package/dist/_virtual/dijkstra.js +5 -0
  22. package/dist/_virtual/dijkstra.js.map +1 -0
  23. package/dist/_virtual/error-correction-code.cjs +5 -0
  24. package/dist/_virtual/error-correction-code.cjs.map +1 -0
  25. package/dist/_virtual/error-correction-code.js +5 -0
  26. package/dist/_virtual/error-correction-code.js.map +1 -0
  27. package/dist/_virtual/error-correction-level.cjs +5 -0
  28. package/dist/_virtual/error-correction-level.cjs.map +1 -0
  29. package/dist/_virtual/error-correction-level.js +5 -0
  30. package/dist/_virtual/error-correction-level.js.map +1 -0
  31. package/dist/_virtual/finder-pattern.cjs +5 -0
  32. package/dist/_virtual/finder-pattern.cjs.map +1 -0
  33. package/dist/_virtual/finder-pattern.js +5 -0
  34. package/dist/_virtual/finder-pattern.js.map +1 -0
  35. package/dist/_virtual/format-info.cjs +5 -0
  36. package/dist/_virtual/format-info.cjs.map +1 -0
  37. package/dist/_virtual/format-info.js +5 -0
  38. package/dist/_virtual/format-info.js.map +1 -0
  39. package/dist/_virtual/galois-field.cjs +5 -0
  40. package/dist/_virtual/galois-field.cjs.map +1 -0
  41. package/dist/_virtual/galois-field.js +5 -0
  42. package/dist/_virtual/galois-field.js.map +1 -0
  43. package/dist/_virtual/mask-pattern.cjs +5 -0
  44. package/dist/_virtual/mask-pattern.cjs.map +1 -0
  45. package/dist/_virtual/mask-pattern.js +5 -0
  46. package/dist/_virtual/mask-pattern.js.map +1 -0
  47. package/dist/_virtual/mode.cjs +5 -0
  48. package/dist/_virtual/mode.cjs.map +1 -0
  49. package/dist/_virtual/mode.js +5 -0
  50. package/dist/_virtual/mode.js.map +1 -0
  51. package/dist/_virtual/polynomial.cjs +5 -0
  52. package/dist/_virtual/polynomial.cjs.map +1 -0
  53. package/dist/_virtual/polynomial.js +5 -0
  54. package/dist/_virtual/polynomial.js.map +1 -0
  55. package/dist/_virtual/qrcode.cjs +5 -0
  56. package/dist/_virtual/qrcode.cjs.map +1 -0
  57. package/dist/_virtual/qrcode.js +5 -0
  58. package/dist/_virtual/qrcode.js.map +1 -0
  59. package/dist/_virtual/regex.cjs +5 -0
  60. package/dist/_virtual/regex.cjs.map +1 -0
  61. package/dist/_virtual/regex.js +5 -0
  62. package/dist/_virtual/regex.js.map +1 -0
  63. package/dist/_virtual/segments.cjs +5 -0
  64. package/dist/_virtual/segments.cjs.map +1 -0
  65. package/dist/_virtual/segments.js +5 -0
  66. package/dist/_virtual/segments.js.map +1 -0
  67. package/dist/_virtual/svg-tag.cjs +5 -0
  68. package/dist/_virtual/svg-tag.cjs.map +1 -0
  69. package/dist/_virtual/svg-tag.js +5 -0
  70. package/dist/_virtual/svg-tag.js.map +1 -0
  71. package/dist/_virtual/utils.cjs +5 -0
  72. package/dist/_virtual/utils.cjs.map +1 -0
  73. package/dist/_virtual/utils.js +5 -0
  74. package/dist/_virtual/utils.js.map +1 -0
  75. package/dist/_virtual/utils2.cjs +5 -0
  76. package/dist/_virtual/utils2.cjs.map +1 -0
  77. package/dist/_virtual/utils2.js +5 -0
  78. package/dist/_virtual/utils2.js.map +1 -0
  79. package/dist/_virtual/version-check.cjs +5 -0
  80. package/dist/_virtual/version-check.cjs.map +1 -0
  81. package/dist/_virtual/version-check.js +5 -0
  82. package/dist/_virtual/version-check.js.map +1 -0
  83. package/dist/_virtual/version.cjs +5 -0
  84. package/dist/_virtual/version.cjs.map +1 -0
  85. package/dist/_virtual/version.js +5 -0
  86. package/dist/_virtual/version.js.map +1 -0
  87. package/dist/globals.server.js +264 -55
  88. package/dist/globals.server.mjs +264 -55
  89. package/dist/{main-CqMtW7Hq.mjs → main-DmznvhMM.mjs} +267 -266
  90. package/dist/main-DxWqDgs1.js +11 -0
  91. package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.2.1/node_modules/bignumber.js/bignumber.cjs +1336 -0
  92. package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.2.1/node_modules/bignumber.js/bignumber.cjs.map +1 -0
  93. package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.2.1/node_modules/bignumber.js/bignumber.js +1336 -0
  94. package/dist/martyrs/node_modules/.pnpm/bignumber.js@9.2.1/node_modules/bignumber.js/bignumber.js.map +1 -0
  95. package/dist/martyrs/src/components/Button/Button.vue2.cjs +5 -3
  96. package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -1
  97. package/dist/martyrs/src/components/Button/Button.vue2.js +6 -4
  98. package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -1
  99. package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.cjs → Dropdown.vue.cjs} +2 -2
  100. package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js.map → Dropdown.vue.cjs.map} +1 -1
  101. package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js → Dropdown.vue.js} +2 -2
  102. package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +1 -0
  103. package/dist/martyrs/src/components/EmptyState/EmptyState.vue.cjs +3 -3
  104. package/dist/martyrs/src/components/EmptyState/EmptyState.vue.js +3 -3
  105. package/dist/martyrs/src/components/Feed/Feed.vue.cjs +2 -2
  106. package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
  107. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +3 -2
  108. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs.map +1 -1
  109. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +3 -2
  110. package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js.map +1 -1
  111. package/dist/martyrs/src/components/Loader/{Loader.vue.cjs → Loader.vue2.cjs} +2 -2
  112. package/dist/martyrs/src/components/Loader/Loader.vue2.cjs.map +1 -0
  113. package/dist/martyrs/src/components/Loader/{Loader.vue.js → Loader.vue2.js} +2 -2
  114. package/dist/martyrs/src/components/Loader/{Loader.vue.cjs.map → Loader.vue2.js.map} +1 -1
  115. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  116. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  117. package/dist/martyrs/src/components/Popup/{Popup.vue.cjs → Popup.vue2.cjs} +2 -2
  118. package/dist/martyrs/src/components/Popup/Popup.vue2.cjs.map +1 -0
  119. package/dist/martyrs/src/components/Popup/{Popup.vue.js → Popup.vue2.js} +2 -2
  120. package/dist/martyrs/src/components/Popup/{Popup.vue.cjs.map → Popup.vue2.js.map} +1 -1
  121. package/dist/martyrs/src/components/Select/Select.vue.cjs +10 -12
  122. package/dist/martyrs/src/components/Select/Select.vue.cjs.map +1 -1
  123. package/dist/martyrs/src/components/Select/Select.vue.js +10 -12
  124. package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -1
  125. package/dist/martyrs/src/components/Slider/Slider.native.vue.cjs +1 -1
  126. package/dist/martyrs/src/components/Slider/Slider.native.vue.js +1 -1
  127. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  128. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  129. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
  130. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
  131. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +2 -2
  132. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +2 -2
  133. package/dist/martyrs/src/modules/auth/views/router/users.cjs +14 -0
  134. package/dist/martyrs/src/modules/auth/views/router/users.cjs.map +1 -1
  135. package/dist/martyrs/src/modules/auth/views/router/users.js +14 -0
  136. package/dist/martyrs/src/modules/auth/views/router/users.js.map +1 -1
  137. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +5 -5
  138. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs.map +1 -1
  139. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +5 -5
  140. package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
  141. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +5 -5
  142. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
  143. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +5 -5
  144. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
  145. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
  146. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
  147. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +3 -3
  148. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs.map +1 -1
  149. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  150. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
  151. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs +2 -2
  152. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  153. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +3 -3
  154. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs.map +1 -1
  155. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  156. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js.map +1 -1
  157. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  158. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  159. package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +1 -1
  160. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
  161. package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +1 -1
  162. package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -1
  163. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs +2 -2
  164. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js +2 -2
  165. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  166. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
  167. package/dist/martyrs/src/modules/events/components/sections/List.vue.cjs +1 -1
  168. package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
  169. package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  170. package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  171. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  172. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  173. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs +90 -2
  174. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.cjs.map +1 -1
  175. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js +90 -2
  176. package/dist/martyrs/src/modules/globals/views/classes/globals.websocket.js.map +1 -1
  177. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +32 -25
  178. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
  179. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +32 -25
  180. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
  181. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +2 -2
  182. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +2 -2
  183. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
  184. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
  185. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  186. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
  187. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  188. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
  189. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +3 -3
  190. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs.map +1 -1
  191. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +3 -3
  192. package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js.map +1 -1
  193. package/dist/martyrs/src/modules/globals/views/plugins/AlertDialog.vue.cjs +1 -1
  194. package/dist/martyrs/src/modules/globals/views/plugins/AlertDialog.vue.js +1 -1
  195. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.cjs +13 -16
  196. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.cjs.map +1 -1
  197. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js +13 -16
  198. package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js.map +1 -1
  199. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.cjs +32 -35
  200. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.cjs.map +1 -1
  201. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js +32 -35
  202. package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js.map +1 -1
  203. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs +2 -2
  204. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -1
  205. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +2 -2
  206. package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js.map +1 -1
  207. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.cjs +1 -1
  208. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +1 -1
  209. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs +5 -3
  210. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs.map +1 -1
  211. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +5 -3
  212. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
  213. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  214. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  215. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  216. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
  217. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  218. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
  219. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  220. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  221. package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.cjs +1 -1
  222. package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.cjs.map +1 -1
  223. package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js +1 -1
  224. package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js.map +1 -1
  225. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +2 -2
  226. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
  227. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
  228. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  229. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  230. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
  231. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  232. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  233. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
  234. package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
  235. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
  236. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  237. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  238. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  239. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
  240. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
  241. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  242. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  243. package/dist/martyrs/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  244. package/dist/martyrs/src/modules/products/components/blocks/Images360.vue.js +1 -1
  245. package/dist/martyrs/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  246. package/dist/martyrs/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  247. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  248. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
  249. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
  250. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  251. package/dist/martyrs/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  252. package/dist/martyrs/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  253. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +1 -1
  254. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +1 -1
  255. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  256. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  257. package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  258. package/dist/martyrs/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  259. package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  260. package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  261. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  262. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  263. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs +1 -1
  264. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +1 -1
  265. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  266. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  267. package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  268. package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  269. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -2
  270. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs.map +1 -1
  271. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +1 -2
  272. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js.map +1 -1
  273. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +1 -1
  274. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
  275. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.cjs +43 -0
  276. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.cjs.map +1 -0
  277. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js +43 -0
  278. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js.map +1 -0
  279. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +47 -0
  280. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs.map +1 -0
  281. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +47 -0
  282. package/dist/martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue.js.map +1 -0
  283. package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.cjs +29 -0
  284. package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.cjs.map +1 -0
  285. package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.js +29 -0
  286. package/dist/martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue.js.map +1 -0
  287. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +89 -0
  288. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs.map +1 -0
  289. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +89 -0
  290. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js.map +1 -0
  291. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.cjs +135 -0
  292. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.cjs.map +1 -0
  293. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js +135 -0
  294. package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js.map +1 -0
  295. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +242 -0
  296. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs.map +1 -0
  297. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +242 -0
  298. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js.map +1 -0
  299. package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.cjs +9 -0
  300. package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.cjs.map +1 -0
  301. package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.js +9 -0
  302. package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.js.map +1 -0
  303. package/dist/martyrs/src/modules/wallet/views/store/wallet.store.cjs +135 -0
  304. package/dist/martyrs/src/modules/wallet/views/store/wallet.store.cjs.map +1 -0
  305. package/dist/martyrs/src/modules/wallet/views/store/wallet.store.js +135 -0
  306. package/dist/martyrs/src/modules/wallet/views/store/wallet.store.js.map +1 -0
  307. package/dist/martyrs.cjs.js +1 -1
  308. package/dist/martyrs.css +1 -1
  309. package/dist/martyrs.es.js +1 -1
  310. package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.cjs +106 -0
  311. package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.cjs.map +1 -0
  312. package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js +106 -0
  313. package/dist/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js.map +1 -0
  314. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.cjs +79 -0
  315. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.cjs.map +1 -0
  316. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js +79 -0
  317. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js.map +1 -0
  318. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.cjs +14 -0
  319. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.cjs.map +1 -0
  320. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js +14 -0
  321. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js.map +1 -0
  322. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.cjs +43 -0
  323. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.cjs.map +1 -0
  324. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js +43 -0
  325. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js.map +1 -0
  326. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.cjs +85 -0
  327. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.cjs.map +1 -0
  328. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js +85 -0
  329. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js.map +1 -0
  330. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.cjs +40 -0
  331. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.cjs.map +1 -0
  332. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js +40 -0
  333. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js.map +1 -0
  334. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.cjs +34 -0
  335. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.cjs.map +1 -0
  336. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js +34 -0
  337. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js.map +1 -0
  338. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.cjs +36 -0
  339. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.cjs.map +1 -0
  340. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js +36 -0
  341. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js.map +1 -0
  342. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.cjs +367 -0
  343. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.cjs.map +1 -0
  344. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js +367 -0
  345. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js.map +1 -0
  346. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.cjs +52 -0
  347. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.cjs.map +1 -0
  348. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js +52 -0
  349. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js.map +1 -0
  350. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.cjs +25 -0
  351. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.cjs.map +1 -0
  352. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js +25 -0
  353. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js.map +1 -0
  354. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.cjs +24 -0
  355. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.cjs.map +1 -0
  356. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js +24 -0
  357. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js.map +1 -0
  358. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.cjs +38 -0
  359. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.cjs.map +1 -0
  360. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js +38 -0
  361. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js.map +1 -0
  362. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.cjs +46 -0
  363. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.cjs.map +1 -0
  364. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js +46 -0
  365. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js.map +1 -0
  366. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.cjs +149 -0
  367. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.cjs.map +1 -0
  368. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js +149 -0
  369. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js.map +1 -0
  370. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.cjs +90 -0
  371. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.cjs.map +1 -0
  372. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js +90 -0
  373. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js.map +1 -0
  374. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.cjs +41 -0
  375. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.cjs.map +1 -0
  376. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js +41 -0
  377. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js.map +1 -0
  378. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.cjs +44 -0
  379. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.cjs.map +1 -0
  380. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js +44 -0
  381. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js.map +1 -0
  382. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.cjs +279 -0
  383. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.cjs.map +1 -0
  384. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js +279 -0
  385. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js.map +1 -0
  386. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.cjs +38 -0
  387. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.cjs.map +1 -0
  388. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js +38 -0
  389. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js.map +1 -0
  390. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.cjs +33 -0
  391. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.cjs.map +1 -0
  392. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js +33 -0
  393. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js.map +1 -0
  394. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.cjs +201 -0
  395. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.cjs.map +1 -0
  396. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js +201 -0
  397. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js.map +1 -0
  398. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs +84 -0
  399. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs.map +1 -0
  400. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +84 -0
  401. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js.map +1 -0
  402. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.cjs +14 -0
  403. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.cjs.map +1 -0
  404. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js +14 -0
  405. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js.map +1 -0
  406. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.cjs +107 -0
  407. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.cjs.map +1 -0
  408. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js +107 -0
  409. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js.map +1 -0
  410. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.cjs +61 -0
  411. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.cjs.map +1 -0
  412. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js +61 -0
  413. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js.map +1 -0
  414. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.cjs +64 -0
  415. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.cjs.map +1 -0
  416. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js +64 -0
  417. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js.map +1 -0
  418. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs +87 -0
  419. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs.map +1 -0
  420. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +87 -0
  421. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js.map +1 -0
  422. package/dist/style.css +26 -21
  423. package/package.json +1 -1
  424. package/src/components/Button/Button.vue +1 -1
  425. package/src/components/EmptyState/EmptyState.vue +3 -3
  426. package/src/components/FieldBig/FieldBig.vue +2 -2
  427. package/src/components/Select/Select.vue +4 -7
  428. package/src/modules/auth/views/router/users.js +11 -11
  429. package/src/modules/community/components/blocks/CardBlogpost.vue +5 -5
  430. package/src/modules/community/components/layouts/Community.vue +5 -4
  431. package/src/modules/community/components/pages/CreateBlogPost.vue +2 -2
  432. package/src/modules/events/components/pages/EditEvent.vue +1 -1
  433. package/src/modules/globals/controllers/classes/globals.websocket.js +336 -71
  434. package/src/modules/globals/controllers/classes/globals.websocket.ws.js +124 -0
  435. package/src/modules/globals/controllers/policies/globals.policies.js +1 -0
  436. package/src/modules/globals/views/classes/globals.websocket.js +121 -5
  437. package/src/modules/globals/views/classes/globals.websocket.ws.js +212 -0
  438. package/src/modules/globals/views/components/blocks/CardHeader.vue +11 -9
  439. package/src/modules/globals/views/components/partials/Header.vue +1 -1
  440. package/src/modules/globals/views/components/partials/Navigation.vue +1 -1
  441. package/src/modules/icons/entities/IconFile.vue +14 -0
  442. package/src/modules/icons/navigation/IconAttach.vue +14 -0
  443. package/src/modules/icons/navigation/IconDoubleCheck.vue +31 -0
  444. package/src/modules/icons/navigation/IconSend.vue +17 -0
  445. package/src/modules/landing/components/sections/SectionFeatures.vue +1 -1
  446. package/src/modules/landing/components/sections/SectionMobileApp.vue +4 -6
  447. package/src/modules/marketplace/views/components/layouts/Marketplace.vue +1 -3
  448. package/src/modules/notifications/components/elements/NotificationBadge.vue +4 -4
  449. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  450. package/src/modules/orders/components/sections/AskToLogin.vue +2 -1
  451. package/src/modules/organizations/components/sections/Unit.vue +3 -3
  452. package/src/modules/spots/components/pages/SpotEdit.vue +0 -1
  453. package/src/modules/wallet/views/components/pages/Wallet.vue +10 -7
  454. package/src/styles/reset.scss +1 -1
  455. package/src/styles/typography.scss +23 -3
  456. package/dist/main-CsGkbSyK.js +0 -11
  457. package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +0 -1
  458. package/dist/martyrs/src/components/Loader/Loader.vue.js.map +0 -1
  459. package/dist/martyrs/src/components/Popup/Popup.vue.js.map +0 -1
@@ -0,0 +1,242 @@
1
+ import { onMounted, ref, createElementBlock, openBlock, createElementVNode, createCommentVNode, createVNode, toDisplayString, unref, withCtx, createTextVNode, Fragment, renderList, createBlock } from "vue";
2
+ import { useI18n } from "vue-i18n";
3
+ import Web3 from "web3";
4
+ import { state, actions } from "../../store/wallet.store.js";
5
+ import text from "../../localization/wallet.json.js";
6
+ import _sfc_main$3 from "../../../../../components/Popup/Popup.vue2.js";
7
+ import _sfc_main$1 from "../../../../../components/Button/Button.vue2.js";
8
+ import "vue-router";
9
+ /* empty css */
10
+ /* empty css */
11
+ import "../../../../reports/store/reports.js";
12
+ import "../../../../auth/views/store/auth.js";
13
+ import "../../../../organizations/store/memberships.js";
14
+ import "../../../../community/store/reactions.js";
15
+ /* empty css */
16
+ import _sfc_main$2 from "../elements/ConnectMetamask.vue.js";
17
+ import _sfc_main$4 from "../blocks/CashDeposit.vue.js";
18
+ import _sfc_main$5 from "../blocks/CardDeposit.vue.js";
19
+ import _sfc_main$7 from "../blocks/CryptoDeposit.vue.js";
20
+ import _sfc_main$6 from "../blocks/CardBalanceReplenished.vue.js";
21
+ import CryptoDepositProcessing from "../blocks/CryptoDepositProcessing.vue.js";
22
+ const _hoisted_1 = { class: "pd-thin" };
23
+ const _hoisted_2 = { class: "bg-black t-white mn-b-thin radius-big pd-big" };
24
+ const _hoisted_3 = { class: "mn-b-medium" };
25
+ const _hoisted_4 = { class: "mn-b-semi t-transp p-big" };
26
+ const _hoisted_5 = {
27
+ key: 0,
28
+ 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"
29
+ };
30
+ const _hoisted_6 = { class: "flex-v-center flex-nowrap flex mn-r-auto" };
31
+ const _hoisted_7 = {
32
+ key: 1,
33
+ class: "w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"
34
+ };
35
+ const _hoisted_8 = { class: "h1 mn-b-small" };
36
+ const _hoisted_9 = { class: "flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra" };
37
+ const _hoisted_10 = {
38
+ key: 0,
39
+ class: "t-transp t-medium"
40
+ };
41
+ const _hoisted_11 = {
42
+ key: 0,
43
+ class: "mn-b-semi cols-2 gap-thin"
44
+ };
45
+ const _hoisted_12 = { class: "w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light" };
46
+ const _hoisted_13 = {
47
+ key: 0,
48
+ class: "mn-b-small"
49
+ };
50
+ const _hoisted_14 = {
51
+ key: 1,
52
+ class: "mn-b-small"
53
+ };
54
+ const _hoisted_15 = { class: "cols-3 mobile:cols-1 gap-thin" };
55
+ const _hoisted_16 = { class: "radius-medium bg-light" };
56
+ const _hoisted_17 = { class: "flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium" };
57
+ const _hoisted_18 = { class: "t-semi mn-r-auto" };
58
+ const _hoisted_19 = { class: "pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small" };
59
+ const _hoisted_20 = { class: "pd-medium" };
60
+ const _hoisted_21 = { class: "t-regular mn-b-thin" };
61
+ const _hoisted_22 = {
62
+ key: 2,
63
+ class: "mn-b-small"
64
+ };
65
+ const _hoisted_23 = { class: "cols-3 mobile:cols-1 gap-thin" };
66
+ const _hoisted_24 = { class: "radius-medium bg-grey" };
67
+ const _hoisted_25 = { class: "flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium" };
68
+ const _hoisted_26 = { class: "t-semi mn-r-auto" };
69
+ const _hoisted_27 = { class: "pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small" };
70
+ const _hoisted_28 = { class: "pd-medium" };
71
+ const _hoisted_29 = { class: "t-regular mn-b-thin" };
72
+ const _hoisted_30 = { key: 0 };
73
+ const _sfc_main = {
74
+ __name: "Wallet",
75
+ setup(__props) {
76
+ const { t } = useI18n({
77
+ useScope: "global",
78
+ ...text
79
+ });
80
+ onMounted(() => {
81
+ window.ethereum.on("accountsChanged", (accounts) => {
82
+ if (accounts.length < 1) {
83
+ state.account = null;
84
+ }
85
+ });
86
+ state.web3 = new Web3(window.ethereum || "http://localhost:8080");
87
+ actions.listRewards();
88
+ actions.tryReconnectWallet();
89
+ });
90
+ const isGetMorePopup = ref(false);
91
+ const currentMenuPopup = ref(0);
92
+ function switchGetMoreMenu(value) {
93
+ currentMenuPopup.value = value;
94
+ }
95
+ function openGetMorePopup() {
96
+ isGetMorePopup.value = true;
97
+ }
98
+ function closeGetMorePopup() {
99
+ isGetMorePopup.value = false;
100
+ currentMenuPopup.value = 0;
101
+ actions.stopTimer();
102
+ actions.disconnectWebSocket();
103
+ }
104
+ return (_ctx, _cache) => {
105
+ return openBlock(), createElementBlock("div", _hoisted_1, [
106
+ createElementVNode("section", _hoisted_2, [
107
+ createElementVNode("h1", _hoisted_3, toDisplayString(unref(t)("wallet.title")), 1),
108
+ createElementVNode("p", _hoisted_4, toDisplayString(unref(t)("wallet.subtitle")), 1),
109
+ unref(state).account ? (openBlock(), createElementBlock("div", _hoisted_5, [
110
+ createElementVNode("div", _hoisted_6, [
111
+ createElementVNode("h2", null, toDisplayString(unref(state).tokenBalance) + " " + toDisplayString(unref(t)("wallet.token")), 1)
112
+ ]),
113
+ createElementVNode("button", {
114
+ onClick: openGetMorePopup,
115
+ class: "t-nowrap w-max bg-main t-medium button"
116
+ }, "Get More"),
117
+ createVNode(_sfc_main$1, {
118
+ submit: unref(actions).collectRewards,
119
+ class: "w-max bg-white t-black t-medium button"
120
+ }, {
121
+ default: withCtx(() => _cache[9] || (_cache[9] = [
122
+ createTextVNode(" Withdraw ")
123
+ ])),
124
+ _: 1
125
+ }, 8, ["submit"])
126
+ ])) : createCommentVNode("", true),
127
+ createVNode(_sfc_main$2, { class: "mn-b-thin radius-extra br-solid br-white-transp-10 br-1px w-100" }),
128
+ unref(state).account ? (openBlock(), createElementBlock("div", _hoisted_7, [
129
+ _cache[12] || (_cache[12] = createElementVNode("p", { class: "t-transp t-medium mn-b-thin" }, "You own:", -1)),
130
+ createElementVNode("p", _hoisted_8, toDisplayString(unref(state).share) + "%", 1),
131
+ _cache[13] || (_cache[13] = createElementVNode("p", { class: "t-white p-big t-medium mn-b-semi" }, "of all shares", -1)),
132
+ createElementVNode("div", _hoisted_9, [
133
+ unref(state).account ? (openBlock(), createElementBlock("p", _hoisted_10, [
134
+ _cache[10] || (_cache[10] = createElementVNode("span", { class: "uppercase p-small t-medium t-transp" }, "Connected Metamask", -1)),
135
+ _cache[11] || (_cache[11] = createElementVNode("br", null, null, -1)),
136
+ createElementVNode("span", null, toDisplayString(unref(state).account), 1)
137
+ ])) : createCommentVNode("", true),
138
+ unref(state).account ? (openBlock(), createElementBlock("button", {
139
+ key: 1,
140
+ onClick: _cache[0] || (_cache[0] = (...args) => unref(actions).disconnectWallet && unref(actions).disconnectWallet(...args)),
141
+ class: "mn-l-auto bg-red button"
142
+ }, " Disconnect Wallet ")) : createCommentVNode("", true)
143
+ ])
144
+ ])) : createCommentVNode("", true)
145
+ ]),
146
+ !unref(state).account ? (openBlock(), createElementBlock("div", _hoisted_11, [
147
+ _cache[14] || (_cache[14] = createElementVNode("div", { class: "w-100 pd-medium radius-medium t-center bg-light" }, [
148
+ createElementVNode("h3", { class: "mn-b-small" }, "Make first order and start earning Weeder Token"),
149
+ createElementVNode("button", { class: "mn-l-auto mn-r-auto bg-main button" }, "Explore marketplace")
150
+ ], -1)),
151
+ createElementVNode("div", _hoisted_12, [
152
+ !unref(state).account ? (openBlock(), createElementBlock("h3", _hoisted_13, " Connect Metamask to withdrawal your earnings. ")) : createCommentVNode("", true),
153
+ !unref(state).account ? (openBlock(), createElementBlock("button", {
154
+ key: 1,
155
+ onClick: _cache[1] || (_cache[1] = (...args) => unref(actions).connectWallet && unref(actions).connectWallet(...args)),
156
+ class: "br-solid br-2px br-black-transp-10 t-black button"
157
+ }, " Connect Wallet ")) : createCommentVNode("", true)
158
+ ])
159
+ ])) : createCommentVNode("", true),
160
+ unref(state).rewards.length > 0 ? (openBlock(), createElementBlock("h2", _hoisted_14, "Latest Rewards ")) : createCommentVNode("", true),
161
+ createElementVNode("section", _hoisted_15, [
162
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(state).rewards, (income) => {
163
+ return openBlock(), createElementBlock("div", _hoisted_16, [
164
+ createElementVNode("div", _hoisted_17, [
165
+ createElementVNode("p", _hoisted_18, toDisplayString(income.amount) + " WDT", 1),
166
+ createElementVNode("span", _hoisted_19, toDisplayString(income.type === "blogpost" ? "Community Reward" : income.type), 1)
167
+ ]),
168
+ createElementVNode("div", _hoisted_20, [
169
+ createElementVNode("h4", _hoisted_21, toDisplayString(income.name), 1)
170
+ ])
171
+ ]);
172
+ }), 256))
173
+ ]),
174
+ unref(state).rewards.length > 0 ? (openBlock(), createElementBlock("h2", _hoisted_22, "Activity")) : createCommentVNode("", true),
175
+ createElementVNode("section", _hoisted_23, [
176
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(state).rewards, (income) => {
177
+ return openBlock(), createElementBlock("div", _hoisted_24, [
178
+ createElementVNode("div", _hoisted_25, [
179
+ createElementVNode("p", _hoisted_26, toDisplayString(income.amount) + " WDT", 1),
180
+ createElementVNode("span", _hoisted_27, toDisplayString(income.type === "blogpost" ? "Community Reward" : income.type), 1)
181
+ ]),
182
+ createElementVNode("div", _hoisted_28, [
183
+ createElementVNode("h4", _hoisted_29, toDisplayString(income.name), 1)
184
+ ])
185
+ ]);
186
+ }), 256))
187
+ ]),
188
+ createVNode(_sfc_main$3, {
189
+ onClosePopup: closeGetMorePopup,
190
+ isPopupOpen: isGetMorePopup.value,
191
+ class: "w-m-50r t-left pd-big bg-white radius-big"
192
+ }, {
193
+ default: withCtx(() => [
194
+ currentMenuPopup.value === 0 ? (openBlock(), createElementBlock("div", _hoisted_30, [
195
+ _cache[15] || (_cache[15] = createElementVNode("h2", { class: "mn-b-small t-center t-bold" }, "Choose the way of deposit", -1)),
196
+ createElementVNode("button", {
197
+ 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",
198
+ onClick: _cache[2] || (_cache[2] = ($event) => switchGetMoreMenu(1))
199
+ }, " CASH "),
200
+ createElementVNode("button", {
201
+ 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",
202
+ onClick: _cache[3] || (_cache[3] = ($event) => switchGetMoreMenu(2))
203
+ }, " CARD "),
204
+ createElementVNode("button", {
205
+ 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",
206
+ onClick: _cache[4] || (_cache[4] = ($event) => switchGetMoreMenu(4))
207
+ }, " CRYPTO ")
208
+ ])) : createCommentVNode("", true),
209
+ currentMenuPopup.value === 1 ? (openBlock(), createBlock(_sfc_main$4, {
210
+ key: 1,
211
+ onBackSelection: _cache[5] || (_cache[5] = ($event) => switchGetMoreMenu(0))
212
+ })) : createCommentVNode("", true),
213
+ currentMenuPopup.value === 2 ? (openBlock(), createBlock(_sfc_main$5, {
214
+ key: 2,
215
+ onBackSelection: _cache[6] || (_cache[6] = ($event) => switchGetMoreMenu(0)),
216
+ onSwitchMenu: switchGetMoreMenu
217
+ })) : createCommentVNode("", true),
218
+ currentMenuPopup.value === 3 ? (openBlock(), createBlock(_sfc_main$6, {
219
+ key: 3,
220
+ onClose: closeGetMorePopup
221
+ })) : createCommentVNode("", true),
222
+ currentMenuPopup.value === 4 ? (openBlock(), createBlock(_sfc_main$7, {
223
+ key: 4,
224
+ onBackSelection: _cache[7] || (_cache[7] = ($event) => switchGetMoreMenu(0)),
225
+ onSwitchMenu: switchGetMoreMenu
226
+ })) : createCommentVNode("", true),
227
+ currentMenuPopup.value === 5 ? (openBlock(), createBlock(CryptoDepositProcessing, {
228
+ key: 5,
229
+ onBackSelection: _cache[8] || (_cache[8] = ($event) => switchGetMoreMenu(0)),
230
+ onSwitchMenu: switchGetMoreMenu
231
+ })) : createCommentVNode("", true)
232
+ ]),
233
+ _: 1
234
+ }, 8, ["isPopupOpen"])
235
+ ]);
236
+ };
237
+ }
238
+ };
239
+ export {
240
+ _sfc_main as default
241
+ };
242
+ //# sourceMappingURL=Wallet.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Wallet.vue.js","sources":["../../../../../../../../src/modules/wallet/views/components/pages/Wallet.vue"],"sourcesContent":["<template>\n <div class=\"pd-thin\">\n <section class=\"bg-black t-white mn-b-thin radius-big pd-big\">\n <h1 class=\"mn-b-medium\">{{ t('wallet.title') }}</h1>\n\n <p class=\"mn-b-semi t-transp p-big\">\n {{ t('wallet.subtitle') }}\n </p>\n\n <div \n v-if=\"state.account\"\n 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\"\n >\n <div class=\"flex-v-center flex-nowrap flex mn-r-auto\">\n <!-- <img loading=\"lazy\" src=\"/logo/wdt.svg\" class=\"mn-r-thin i-big\"> -->\n <h2>{{state.tokenBalance}} {{ t('wallet.token') }}</h2>\n </div>\n\n <button @click=\"openGetMorePopup\" class=\"t-nowrap w-max bg-main t-medium button\">Get More</button>\n\n\n <Button \n :submit=\"actions.collectRewards\" \n class=\"w-max bg-white t-black t-medium button\"\n >\n Withdraw\n </Button>\n </div>\n\n <ConnectMetamask class=\"mn-b-thin radius-extra br-solid br-white-transp-10 br-1px w-100\" />\n\n <div\n v-if=\"state.account\"\n class=\"w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black\"\n >\n <p class=\"t-transp t-medium mn-b-thin\">You own:</p>\n <p class=\"h1 mn-b-small\">{{state.share}}%</p>\n <p class=\"t-white p-big t-medium mn-b-semi\">of all shares</p>\n\n <div\n class=\"flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra\"\n >\n <!-- <img loading=\"lazy\" src=\"@/assets/icons/metamask.svg\" class=\"mn-r-small i-big\" > -->\n \n <p v-if=\"state.account\" class=\"t-transp t-medium \">\n <span class=\"uppercase p-small t-medium t-transp\">Connected Metamask</span><br>\n <span>{{state.account}}</span>\n </p>\n\n <button\n v-if=\"state.account\"\n @click=\"actions.disconnectWallet\"\n class=\"mn-l-auto bg-red button\"\n >\n Disconnect Wallet\n </button>\n </div>\n </div>\n\n </section>\n\n <div v-if=\"!state.account\" class=\"mn-b-semi cols-2 gap-thin\">\n <div\n class=\"w-100 pd-medium radius-medium t-center bg-light\"\n >\n <h3 class=\"mn-b-small\">Make first order and start earning Weeder Token</h3>\n <button class=\"mn-l-auto mn-r-auto bg-main button\">Explore marketplace</button>\n </div>\n\n <div\n class=\"w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light\"\n >\n <h3 \n v-if=\"!state.account\"\n class=\"mn-b-small\"\n >\n Connect Metamask to withdrawal your earnings.\n </h3>\n\n <button\n v-if=\"!state.account\"\n @click=\"actions.connectWallet\"\n class=\"br-solid br-2px br-black-transp-10 t-black button\"\n >\n Connect Wallet\n </button>\n </div>\n </div>\n\n <h2 class=\"mn-b-small\" v-if=\"state.rewards.length > 0\">Latest Rewards </h2>\n\n <section class=\"cols-3 mobile:cols-1 gap-thin\">\n <div \n class=\"radius-medium bg-light\"\n v-for=\"income in state.rewards\"\n > \n <div class=\"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium\">\n <!-- <img loading=\"lazy\" src=\"/logo/wdt-plus.svg\" class=\"mn-r-thin i-semi\"> -->\n <p class=\"t-semi mn-r-auto\">{{income.amount}} WDT</p>\n \n <span class=\"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small\">{{income.type === 'blogpost' ? 'Community Reward' : income.type}}</span>\n </div>\n\n <div class=\"pd-medium\">\n <h4 class=\"t-regular mn-b-thin\">{{income.name}}</h4>\n <!-- <p class=\"p-small\">{{income.content[0].content}}</p> -->\n </div>\n\n </div>\n\n\n </section>\n\n <h2 class=\"mn-b-small\" v-if=\"state.rewards.length > 0\">Activity</h2>\n\n <section class=\"cols-3 mobile:cols-1 gap-thin\">\n <div \n class=\"radius-medium bg-grey\"\n v-for=\"income in state.rewards\"\n > \n <div class=\"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium\">\n <!-- <img loading=\"lazy\" src=\"/logo/wdt-plus.svg\" class=\"mn-r-thin i-semi\"> -->\n <p class=\"t-semi mn-r-auto\">{{income.amount}} WDT</p>\n \n <span class=\"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small\">{{income.type === 'blogpost' ? 'Community Reward' : income.type}}</span>\n </div>\n\n <div class=\"pd-medium\">\n <h4 class=\"t-regular mn-b-thin\">{{income.name}}</h4>\n <!-- <p class=\"p-small\">{{income.content[0].content}}</p> -->\n </div>\n </div>\n </section>\n\n <Popup \n @close-popup=\"closeGetMorePopup\" \n :isPopupOpen=\"isGetMorePopup\"\n class=\"w-m-50r t-left pd-big bg-white radius-big\"\n >\n <div\n v-if=\"currentMenuPopup === 0\"\n >\n <h2 class=\"mn-b-small t-center t-bold\">Choose the way of deposit</h2>\n\n <button\n 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\"\n @click=\"switchGetMoreMenu(1)\"\n >\n CASH\n </button>\n\n <button\n 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\"\n @click=\"switchGetMoreMenu(2)\"\n >\n CARD\n </button>\n\n <button\n 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\"\n @click=\"switchGetMoreMenu(4)\"\n >\n CRYPTO\n </button>\n </div>\n\n <CashDepositMenu\n v-if=\"currentMenuPopup === 1\"\n @back-selection=\"switchGetMoreMenu(0)\"\n />\n\n <CardDepositMenu\n v-if=\"currentMenuPopup === 2\"\n @back-selection=\"switchGetMoreMenu(0)\"\n @switch-menu=\"switchGetMoreMenu\"\n />\n\n <CardBalanceReplenished\n v-if=\"currentMenuPopup === 3\"\n @close=\"closeGetMorePopup\"\n />\n\n <CryptoDepositMenu\n v-if=\"currentMenuPopup === 4\"\n @back-selection=\"switchGetMoreMenu(0)\"\n @switch-menu=\"switchGetMoreMenu\"\n />\n\n <CryptoDepositProcessing\n v-if=\"currentMenuPopup === 5\"\n @back-selection=\"switchGetMoreMenu(0)\"\n @switch-menu=\"switchGetMoreMenu\"\n />\n </Popup>\n </div>\n</template>\n\n<script setup>\n import { onMounted, ref } from 'vue';\n import { useI18n } from 'vue-i18n'\n import Web3 from \"web3\";\n\n import { state, actions } from '@martyrs/src/modules/wallet/views/store/wallet.store';\n\n import text from '@martyrs/src/modules/wallet/views/localization/wallet.json'\n \n const { t } = useI18n({\n useScope: 'global', \n ...text\n })\n\n import Popup from '@martyrs/src/components/Popup/Popup.vue';\n import Button from '@martyrs/src/components/Button/Button.vue'; \n\n import CardBlogpost from '@martyrs/src/modules/community/components/blocks/CardBlogpost.vue';\n\n import ConnectMetamask from '@martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue';\n\n import CashDepositMenu from '@martyrs/src/modules/wallet/views/components/blocks/CashDeposit.vue';\n import CardDepositMenu from '@martyrs/src/modules/wallet/views/components/blocks/CardDeposit.vue';\n import CryptoDepositMenu from '@martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue';\n import CardBalanceReplenished from '@martyrs/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue';\n import CryptoDepositProcessing from '@martyrs/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue';\n\n\n\n onMounted(() => {\n // User has disconnected metamask from extension\n window.ethereum.on('accountsChanged', (accounts) => {\n if (accounts.length < 1) {\n state.account = null;\n }\n });\n\n\n state.web3 = new Web3(window.ethereum || 'http://localhost:8080');\n\n actions.listRewards();\n actions.tryReconnectWallet();\n });\n\n // /////////////////////////////////////////\n // GetMore Popup\n // /////////////////////////////////////////\n const isGetMorePopup = ref(false)\n const currentMenuPopup = ref(0)\n\n function switchGetMoreMenu(value) {\n currentMenuPopup.value = value;\n }\n\n function openGetMorePopup() {\n isGetMorePopup.value = true;\n }\n function closeGetMorePopup() {\n isGetMorePopup.value = false;\n currentMenuPopup.value = 0;\n actions.stopTimer();\n actions.disconnectWebSocket();\n }\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8ME,UAAM,EAAE,EAAG,IAAG,QAAQ;AAAA,MACpB,UAAU;AAAA,MACV,GAAG;AAAA,IACJ,CAAA;AAiBD,cAAU,MAAM;AAEd,aAAO,SAAS,GAAG,mBAAmB,CAAC,aAAa;AAClD,YAAI,SAAS,SAAS,GAAG;AACvB,gBAAM,UAAU;AAAA,QACxB;AAAA,MACA,CAAK;AAGD,YAAM,OAAO,IAAI,KAAK,OAAO,YAAY,uBAAuB;AAEhE,cAAQ,YAAa;AACrB,cAAQ,mBAAoB;AAAA,IAChC,CAAG;AAKD,UAAM,iBAAiB,IAAI,KAAK;AAChC,UAAM,mBAAmB,IAAI,CAAC;AAE9B,aAAS,kBAAkB,OAAO;AAChC,uBAAiB,QAAQ;AAAA,IAC7B;AAEE,aAAS,mBAAmB;AAC1B,qBAAe,QAAQ;AAAA,IAC3B;AACE,aAAS,oBAAoB;AAC3B,qBAAe,QAAQ;AACvB,uBAAiB,QAAQ;AACzB,cAAQ,UAAW;AACnB,cAAQ,oBAAqB;AAAA,IACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const messages = { "en-default": { "wallet": { "title": "Your Wallet", "subtitle": "Earn WDT by purchasing our weed or contributing to the community.", "token": "WDT", "pay": "pay", "youReceived": "you received", "enterAmount": "enter amount to top up", "backToWallet": "back to wallet", "backToSelection": "back to selection", "balanceReplenished": "balance replenished", "depositWithCrypto": "deposit with crypto" } }, "ru-default": { "wallet": { "title": "Ваш Кошелек", "subtitle": "Зарабатывайте WDT, покупая товары или внося вклад в сообщество.", "pay": "купить", "youReceived": "вы пополнили на сумму", "enterAmount": "введите сумму для пополнения", "backToWallet": "назад к кошельку", "backToSelection": "назад к списку", "balanceReplenished": "баланс пополнен", "depositWithCrypto": "пополнение криптовалютой" } } };
4
+ const text = {
5
+ messages
6
+ };
7
+ exports.default = text;
8
+ exports.messages = messages;
9
+ //# sourceMappingURL=wallet.json.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,9 @@
1
+ const messages = { "en-default": { "wallet": { "title": "Your Wallet", "subtitle": "Earn WDT by purchasing our weed or contributing to the community.", "token": "WDT", "pay": "pay", "youReceived": "you received", "enterAmount": "enter amount to top up", "backToWallet": "back to wallet", "backToSelection": "back to selection", "balanceReplenished": "balance replenished", "depositWithCrypto": "deposit with crypto" } }, "ru-default": { "wallet": { "title": "Ваш Кошелек", "subtitle": "Зарабатывайте WDT, покупая товары или внося вклад в сообщество.", "pay": "купить", "youReceived": "вы пополнили на сумму", "enterAmount": "введите сумму для пополнения", "backToWallet": "назад к кошельку", "backToSelection": "назад к списку", "balanceReplenished": "баланс пополнен", "depositWithCrypto": "пополнение криптовалютой" } } };
2
+ const text = {
3
+ messages
4
+ };
5
+ export {
6
+ text as default,
7
+ messages
8
+ };
9
+ //# sourceMappingURL=wallet.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const axios = require("axios");
4
+ const vue = require("vue");
5
+ const bignumber = require("../../../../../node_modules/.pnpm/bignumber.js@9.2.1/node_modules/bignumber.js/bignumber.cjs");
6
+ require("../../../globals/views/store/globals.cjs");
7
+ const API_CRYPTO_PATH = "/api/crypto";
8
+ const WDT_SUPPLY = 2e7;
9
+ const $axios = axios.create({ baseURL: process.env.API_URL, withCredentials: true });
10
+ const state = vue.reactive({
11
+ rewards: [],
12
+ tokenBalance: "0",
13
+ share: "0",
14
+ account: null,
15
+ web3: null,
16
+ depositInfo: null,
17
+ depositRequestIsActive: false,
18
+ websocket: null,
19
+ config: null,
20
+ chosenNetwork: null
21
+ });
22
+ const timer = vue.reactive({ remaining: 0, interval: null });
23
+ const actions = {
24
+ loadConfig: async () => {
25
+ await $axios.get(`${API_CRYPTO_PATH}/deposit/config`).then((r) => {
26
+ state.config = r.data;
27
+ state.chosenNetwork = {
28
+ name: `polygon-WDT`,
29
+ value: {
30
+ token: state.config.polygon.tokens.WDT,
31
+ network: "polygon"
32
+ }
33
+ };
34
+ }).catch((e) => console.error(e));
35
+ },
36
+ connectWebSocket: () => {
37
+ state.websocket = new WebSocket(process.env.WSS_URL);
38
+ state.websocket.onmessage = (event) => {
39
+ const message = JSON.parse(event.data);
40
+ if (message.id === state.depositInfo.id) {
41
+ const confirmations = state.depositInfo.confirmations;
42
+ state.depositInfo = message;
43
+ state.depositInfo.confirmations = confirmations;
44
+ }
45
+ if (message.hash === state.depositInfo.tx.hash) {
46
+ state.depositInfo.confirmations = message.confirmations;
47
+ }
48
+ };
49
+ state.websocket.onerror = (err) => console.error(err);
50
+ },
51
+ disconnectWebSocket: () => {
52
+ if (state.websocket) {
53
+ state.websocket.close();
54
+ state.websocket = null;
55
+ }
56
+ },
57
+ listRewards: async () => {
58
+ try {
59
+ const r = await $axios.get(`${API_CRYPTO_PATH}/rewards`);
60
+ state.rewards = r.data;
61
+ state.tokenBalance = r.data.reduce((acc, v) => acc.plus(v.amount), new bignumber.BigNumber("0")).toString();
62
+ state.share = new bignumber.BigNumber(state.tokenBalance).div(WDT_SUPPLY).multipliedBy(100).toFormat(6);
63
+ } catch (e) {
64
+ console.error(e);
65
+ }
66
+ },
67
+ collectRewards: async () => {
68
+ try {
69
+ await $axios.post(`${API_CRYPTO_PATH}/collect`, { recipient: state.account });
70
+ await actions.listRewards();
71
+ } catch (e) {
72
+ console.error(e);
73
+ }
74
+ },
75
+ disconnectWallet: async () => {
76
+ try {
77
+ await window.ethereum.request({ method: "wallet_revokePermissions", params: [{ "eth_accounts": {} }] });
78
+ state.account = null;
79
+ } catch (e) {
80
+ console.error(e);
81
+ }
82
+ },
83
+ connectWallet: async () => {
84
+ try {
85
+ const accounts = await state.web3.eth.requestAccounts();
86
+ state.account = accounts[0];
87
+ } catch (e) {
88
+ console.error(e);
89
+ }
90
+ },
91
+ tryReconnectWallet: async () => {
92
+ try {
93
+ const a = await state.web3.eth.getAccounts();
94
+ if (a.length > 0) {
95
+ await actions.connectWallet();
96
+ }
97
+ } catch (e) {
98
+ console.error(e);
99
+ }
100
+ },
101
+ requestCryptoDeposit: async (amount) => {
102
+ state.depositRequestIsActive = true;
103
+ await $axios.post(`${API_CRYPTO_PATH}/deposit`, {
104
+ network: state.chosenNetwork.value.network,
105
+ amount: new bignumber.BigNumber(amount).shiftedBy(8).toString(),
106
+ token: state.chosenNetwork.value.token
107
+ }).then((r) => {
108
+ state.depositInfo = r.data;
109
+ const createTimestamp = new Date(r.data.createdAt).getTime();
110
+ const dead = createTimestamp + state.config[state.chosenNetwork.value.network].waitingTime;
111
+ timer.remaining = Math.floor((dead - Date.now()) / 1e3);
112
+ timer.interval = setInterval(
113
+ () => {
114
+ timer.remaining -= 1;
115
+ if (timer.remaining === 0) {
116
+ clearInterval(timer.interval);
117
+ }
118
+ },
119
+ 1e3
120
+ );
121
+ }).catch((e) => console.error(e));
122
+ state.depositRequestIsActive = false;
123
+ actions.connectWebSocket();
124
+ },
125
+ stopTimer: () => {
126
+ clearInterval(timer.interval);
127
+ },
128
+ cancelDeposit: async () => {
129
+ await $axios.post(`${API_CRYPTO_PATH}/deposit/cancel`, { id: state.depositInfo.id }).then(() => actions.stopTimer()).then(() => actions.disconnectWebSocket()).catch((e) => console.error(e));
130
+ }
131
+ };
132
+ exports.actions = actions;
133
+ exports.state = state;
134
+ exports.timer = timer;
135
+ //# sourceMappingURL=wallet.store.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.store.cjs","sources":["../../../../../../../src/modules/wallet/views/store/wallet.store.js"],"sourcesContent":["import axios from 'axios';\nimport { reactive } from 'vue';\nimport { BigNumber } from 'bignumber.js';\n\nimport { setError } from \"@martyrs/src/modules/globals/views/store/globals\";\n\nconst API_CRYPTO_PATH = '/api/crypto';\nconst WDT_SUPPLY = 20_000_000;\n\nconst $axios = axios.create({ baseURL: process.env.API_URL, withCredentials: true });\n\nconst state = reactive({\n rewards: [],\n tokenBalance: '0',\n share: '0',\n account: null,\n web3: null,\n depositInfo: null,\n depositRequestIsActive: false,\n websocket: null,\n config: null,\n chosenNetwork: null,\n});\n\nconst timer = reactive({ remaining: 0, interval: null });\n\nconst actions = {\n loadConfig: async () => {\n await $axios\n .get(`${API_CRYPTO_PATH}/deposit/config`)\n .then((r) => {\n state.config = r.data;\n state.chosenNetwork = {\n name: `polygon-WDT`,\n value: {\n token: state.config.polygon.tokens.WDT,\n network: 'polygon'\n }\n }\n })\n .catch((e) => console.error(e));\n },\n\n connectWebSocket: () => {\n state.websocket = new WebSocket(process.env.WSS_URL);\n\n state.websocket.onmessage = (event) => {\n const message = JSON.parse(event.data);\n\n if (message.id === state.depositInfo.id) {\n const confirmations = state.depositInfo.confirmations;\n\n state.depositInfo = message;\n state.depositInfo.confirmations = confirmations;\n }\n\n if (message.hash === state.depositInfo.tx.hash) {\n state.depositInfo.confirmations = message.confirmations;\n }\n };\n\n state.websocket.onerror = (err) => console.error(err);\n },\n\n disconnectWebSocket: () => {\n if (state.websocket) {\n state.websocket.close();\n state.websocket = null;\n }\n },\n\n listRewards: async () => {\n try {\n const r = await $axios.get(`${API_CRYPTO_PATH}/rewards`);\n\n state.rewards = r.data;\n state.tokenBalance = r.data\n .reduce((acc, v) => acc.plus(v.amount), new BigNumber('0'))\n .toString();\n \n state.share = new BigNumber(state.tokenBalance)\n .div(WDT_SUPPLY)\n .multipliedBy(100)\n .toFormat(6);\n } catch (e) {\n console.error(e);\n }\n },\n\n collectRewards: async () => {\n try {\n await $axios.post(`${API_CRYPTO_PATH}/collect`, { recipient: state.account });\n await actions.listRewards();\n } catch (e) {\n console.error(e);\n }\n },\n\n disconnectWallet: async () => {\n try {\n await window.ethereum.request({ method: \"wallet_revokePermissions\", params: [{ \"eth_accounts\": {} }] });\n state.account = null;\n } catch (e) {\n console.error(e);\n }\n },\n\n connectWallet: async () => {\n try {\n const accounts = await state.web3.eth.requestAccounts();\n state.account = accounts[0];\n } catch (e) {\n console.error(e);\n }\n },\n\n tryReconnectWallet: async () => {\n try {\n const a = await state.web3.eth.getAccounts();\n if (a.length > 0) {\n await actions.connectWallet();\n }\n } catch (e) {\n console.error(e);\n }\n },\n\n requestCryptoDeposit: async (amount) => {\n state.depositRequestIsActive = true;\n\n await $axios\n .post(`${API_CRYPTO_PATH}/deposit`, {\n network: state.chosenNetwork.value.network,\n amount: new BigNumber(amount).shiftedBy(8).toString(),\n token: state.chosenNetwork.value.token\n })\n .then((r) => {\n state.depositInfo = r.data;\n\n const createTimestamp = new Date(r.data.createdAt).getTime();\n const dead = createTimestamp + state.config[state.chosenNetwork.value.network].waitingTime;\n timer.remaining = Math.floor((dead - Date.now()) / 1000);\n\n timer.interval = setInterval(\n () => {\n timer.remaining -= 1;\n\n if (timer.remaining === 0) {\n clearInterval(timer.interval);\n }\n },\n 1000\n );\n })\n .catch((e) => console.error(e));\n\n state.depositRequestIsActive = false;\n\n actions.connectWebSocket();\n },\n\n stopTimer: () => {\n clearInterval(timer.interval);\n },\n\n cancelDeposit: async () => {\n await $axios\n .post(`${API_CRYPTO_PATH}/deposit/cancel`, { id: state.depositInfo.id })\n .then(() => actions.stopTimer())\n .then(() => actions.disconnectWebSocket())\n .catch((e) => console.error(e));\n }\n};\n\nexport { state, actions, timer };\n"],"names":["reactive","BigNumber"],"mappings":"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"}
@@ -0,0 +1,135 @@
1
+ import axios from "axios";
2
+ import { reactive } from "vue";
3
+ import { BigNumber } from "../../../../../node_modules/.pnpm/bignumber.js@9.2.1/node_modules/bignumber.js/bignumber.js";
4
+ import "../../../globals/views/store/globals.js";
5
+ const API_CRYPTO_PATH = "/api/crypto";
6
+ const WDT_SUPPLY = 2e7;
7
+ const $axios = axios.create({ baseURL: process.env.API_URL, withCredentials: true });
8
+ const state = reactive({
9
+ rewards: [],
10
+ tokenBalance: "0",
11
+ share: "0",
12
+ account: null,
13
+ web3: null,
14
+ depositInfo: null,
15
+ depositRequestIsActive: false,
16
+ websocket: null,
17
+ config: null,
18
+ chosenNetwork: null
19
+ });
20
+ const timer = reactive({ remaining: 0, interval: null });
21
+ const actions = {
22
+ loadConfig: async () => {
23
+ await $axios.get(`${API_CRYPTO_PATH}/deposit/config`).then((r) => {
24
+ state.config = r.data;
25
+ state.chosenNetwork = {
26
+ name: `polygon-WDT`,
27
+ value: {
28
+ token: state.config.polygon.tokens.WDT,
29
+ network: "polygon"
30
+ }
31
+ };
32
+ }).catch((e) => console.error(e));
33
+ },
34
+ connectWebSocket: () => {
35
+ state.websocket = new WebSocket(process.env.WSS_URL);
36
+ state.websocket.onmessage = (event) => {
37
+ const message = JSON.parse(event.data);
38
+ if (message.id === state.depositInfo.id) {
39
+ const confirmations = state.depositInfo.confirmations;
40
+ state.depositInfo = message;
41
+ state.depositInfo.confirmations = confirmations;
42
+ }
43
+ if (message.hash === state.depositInfo.tx.hash) {
44
+ state.depositInfo.confirmations = message.confirmations;
45
+ }
46
+ };
47
+ state.websocket.onerror = (err) => console.error(err);
48
+ },
49
+ disconnectWebSocket: () => {
50
+ if (state.websocket) {
51
+ state.websocket.close();
52
+ state.websocket = null;
53
+ }
54
+ },
55
+ listRewards: async () => {
56
+ try {
57
+ const r = await $axios.get(`${API_CRYPTO_PATH}/rewards`);
58
+ state.rewards = r.data;
59
+ state.tokenBalance = r.data.reduce((acc, v) => acc.plus(v.amount), new BigNumber("0")).toString();
60
+ state.share = new BigNumber(state.tokenBalance).div(WDT_SUPPLY).multipliedBy(100).toFormat(6);
61
+ } catch (e) {
62
+ console.error(e);
63
+ }
64
+ },
65
+ collectRewards: async () => {
66
+ try {
67
+ await $axios.post(`${API_CRYPTO_PATH}/collect`, { recipient: state.account });
68
+ await actions.listRewards();
69
+ } catch (e) {
70
+ console.error(e);
71
+ }
72
+ },
73
+ disconnectWallet: async () => {
74
+ try {
75
+ await window.ethereum.request({ method: "wallet_revokePermissions", params: [{ "eth_accounts": {} }] });
76
+ state.account = null;
77
+ } catch (e) {
78
+ console.error(e);
79
+ }
80
+ },
81
+ connectWallet: async () => {
82
+ try {
83
+ const accounts = await state.web3.eth.requestAccounts();
84
+ state.account = accounts[0];
85
+ } catch (e) {
86
+ console.error(e);
87
+ }
88
+ },
89
+ tryReconnectWallet: async () => {
90
+ try {
91
+ const a = await state.web3.eth.getAccounts();
92
+ if (a.length > 0) {
93
+ await actions.connectWallet();
94
+ }
95
+ } catch (e) {
96
+ console.error(e);
97
+ }
98
+ },
99
+ requestCryptoDeposit: async (amount) => {
100
+ state.depositRequestIsActive = true;
101
+ await $axios.post(`${API_CRYPTO_PATH}/deposit`, {
102
+ network: state.chosenNetwork.value.network,
103
+ amount: new BigNumber(amount).shiftedBy(8).toString(),
104
+ token: state.chosenNetwork.value.token
105
+ }).then((r) => {
106
+ state.depositInfo = r.data;
107
+ const createTimestamp = new Date(r.data.createdAt).getTime();
108
+ const dead = createTimestamp + state.config[state.chosenNetwork.value.network].waitingTime;
109
+ timer.remaining = Math.floor((dead - Date.now()) / 1e3);
110
+ timer.interval = setInterval(
111
+ () => {
112
+ timer.remaining -= 1;
113
+ if (timer.remaining === 0) {
114
+ clearInterval(timer.interval);
115
+ }
116
+ },
117
+ 1e3
118
+ );
119
+ }).catch((e) => console.error(e));
120
+ state.depositRequestIsActive = false;
121
+ actions.connectWebSocket();
122
+ },
123
+ stopTimer: () => {
124
+ clearInterval(timer.interval);
125
+ },
126
+ cancelDeposit: async () => {
127
+ await $axios.post(`${API_CRYPTO_PATH}/deposit/cancel`, { id: state.depositInfo.id }).then(() => actions.stopTimer()).then(() => actions.disconnectWebSocket()).catch((e) => console.error(e));
128
+ }
129
+ };
130
+ export {
131
+ actions,
132
+ state,
133
+ timer
134
+ };
135
+ //# sourceMappingURL=wallet.store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.store.js","sources":["../../../../../../../src/modules/wallet/views/store/wallet.store.js"],"sourcesContent":["import axios from 'axios';\nimport { reactive } from 'vue';\nimport { BigNumber } from 'bignumber.js';\n\nimport { setError } from \"@martyrs/src/modules/globals/views/store/globals\";\n\nconst API_CRYPTO_PATH = '/api/crypto';\nconst WDT_SUPPLY = 20_000_000;\n\nconst $axios = axios.create({ baseURL: process.env.API_URL, withCredentials: true });\n\nconst state = reactive({\n rewards: [],\n tokenBalance: '0',\n share: '0',\n account: null,\n web3: null,\n depositInfo: null,\n depositRequestIsActive: false,\n websocket: null,\n config: null,\n chosenNetwork: null,\n});\n\nconst timer = reactive({ remaining: 0, interval: null });\n\nconst actions = {\n loadConfig: async () => {\n await $axios\n .get(`${API_CRYPTO_PATH}/deposit/config`)\n .then((r) => {\n state.config = r.data;\n state.chosenNetwork = {\n name: `polygon-WDT`,\n value: {\n token: state.config.polygon.tokens.WDT,\n network: 'polygon'\n }\n }\n })\n .catch((e) => console.error(e));\n },\n\n connectWebSocket: () => {\n state.websocket = new WebSocket(process.env.WSS_URL);\n\n state.websocket.onmessage = (event) => {\n const message = JSON.parse(event.data);\n\n if (message.id === state.depositInfo.id) {\n const confirmations = state.depositInfo.confirmations;\n\n state.depositInfo = message;\n state.depositInfo.confirmations = confirmations;\n }\n\n if (message.hash === state.depositInfo.tx.hash) {\n state.depositInfo.confirmations = message.confirmations;\n }\n };\n\n state.websocket.onerror = (err) => console.error(err);\n },\n\n disconnectWebSocket: () => {\n if (state.websocket) {\n state.websocket.close();\n state.websocket = null;\n }\n },\n\n listRewards: async () => {\n try {\n const r = await $axios.get(`${API_CRYPTO_PATH}/rewards`);\n\n state.rewards = r.data;\n state.tokenBalance = r.data\n .reduce((acc, v) => acc.plus(v.amount), new BigNumber('0'))\n .toString();\n \n state.share = new BigNumber(state.tokenBalance)\n .div(WDT_SUPPLY)\n .multipliedBy(100)\n .toFormat(6);\n } catch (e) {\n console.error(e);\n }\n },\n\n collectRewards: async () => {\n try {\n await $axios.post(`${API_CRYPTO_PATH}/collect`, { recipient: state.account });\n await actions.listRewards();\n } catch (e) {\n console.error(e);\n }\n },\n\n disconnectWallet: async () => {\n try {\n await window.ethereum.request({ method: \"wallet_revokePermissions\", params: [{ \"eth_accounts\": {} }] });\n state.account = null;\n } catch (e) {\n console.error(e);\n }\n },\n\n connectWallet: async () => {\n try {\n const accounts = await state.web3.eth.requestAccounts();\n state.account = accounts[0];\n } catch (e) {\n console.error(e);\n }\n },\n\n tryReconnectWallet: async () => {\n try {\n const a = await state.web3.eth.getAccounts();\n if (a.length > 0) {\n await actions.connectWallet();\n }\n } catch (e) {\n console.error(e);\n }\n },\n\n requestCryptoDeposit: async (amount) => {\n state.depositRequestIsActive = true;\n\n await $axios\n .post(`${API_CRYPTO_PATH}/deposit`, {\n network: state.chosenNetwork.value.network,\n amount: new BigNumber(amount).shiftedBy(8).toString(),\n token: state.chosenNetwork.value.token\n })\n .then((r) => {\n state.depositInfo = r.data;\n\n const createTimestamp = new Date(r.data.createdAt).getTime();\n const dead = createTimestamp + state.config[state.chosenNetwork.value.network].waitingTime;\n timer.remaining = Math.floor((dead - Date.now()) / 1000);\n\n timer.interval = setInterval(\n () => {\n timer.remaining -= 1;\n\n if (timer.remaining === 0) {\n clearInterval(timer.interval);\n }\n },\n 1000\n );\n })\n .catch((e) => console.error(e));\n\n state.depositRequestIsActive = false;\n\n actions.connectWebSocket();\n },\n\n stopTimer: () => {\n clearInterval(timer.interval);\n },\n\n cancelDeposit: async () => {\n await $axios\n .post(`${API_CRYPTO_PATH}/deposit/cancel`, { id: state.depositInfo.id })\n .then(() => actions.stopTimer())\n .then(() => actions.disconnectWebSocket())\n .catch((e) => console.error(e));\n }\n};\n\nexport { state, actions, timer };\n"],"names":[],"mappings":"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"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./main-CsGkbSyK.js");require("vue");exports.Address=e._sfc_main;exports.Breadcrumbs=e._sfc_main$17;exports.Button=e._sfc_main$1;exports.Checkbox=e._sfc_main$2;exports.Chips=e._sfc_main$18;exports.Countdown=e._sfc_main$19;exports.DatePicker=e._sfc_main$20;exports.Dropdown=e._sfc_main$3;exports.EmptyState=e._sfc_main$21;exports.Error=e._sfc_main$4;exports.Feed=e._sfc_main$22;exports.Field=e.Field;exports.FieldBig=e._sfc_main$23;exports.FieldPhone=e._sfc_main$5;exports.FieldTags=e.FieldTags;exports.Loader=e.Loader;exports.LocationMarker=e._sfc_main$6;exports.Map=e.Map;exports.Marquee=e._sfc_main$25;exports.Menu=e._sfc_main$11;exports.MenuItem=e._sfc_main$12;exports.Popup=e._sfc_main$7;exports.Radio=e._sfc_main$8;exports.Select=e.Select;exports.SelectMulti=e.SelectMulti;exports.Shader=e.Shader;exports.Slider=e.Slider;exports.Spoiler=e._sfc_main$9;exports.Status=e._sfc_main$24;exports.Tab=e._sfc_main$10;exports.Text=e._sfc_main$14;exports.Tooltip=e._sfc_main$13;exports.Upload=e.Upload;exports.UploadImage=e._sfc_main$15;exports.UploadImageMultiple=e._sfc_main$16;exports.default=e.main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./main-DxWqDgs1.js");require("vue");exports.Address=e._sfc_main;exports.Breadcrumbs=e._sfc_main$17;exports.Button=e._sfc_main$1;exports.Checkbox=e._sfc_main$2;exports.Chips=e._sfc_main$18;exports.Countdown=e._sfc_main$19;exports.DatePicker=e._sfc_main$20;exports.Dropdown=e._sfc_main$3;exports.EmptyState=e._sfc_main$21;exports.Error=e._sfc_main$4;exports.Feed=e._sfc_main$22;exports.Field=e.Field;exports.FieldBig=e._sfc_main$23;exports.FieldPhone=e._sfc_main$5;exports.FieldTags=e.FieldTags;exports.Loader=e.Loader;exports.LocationMarker=e._sfc_main$6;exports.Map=e.Map;exports.Marquee=e._sfc_main$25;exports.Menu=e._sfc_main$11;exports.MenuItem=e._sfc_main$12;exports.Popup=e._sfc_main$7;exports.Radio=e._sfc_main$8;exports.Select=e.Select;exports.SelectMulti=e.SelectMulti;exports.Shader=e.Shader;exports.Slider=e.Slider;exports.Spoiler=e._sfc_main$9;exports.Status=e._sfc_main$24;exports.Tab=e._sfc_main$10;exports.Text=e._sfc_main$14;exports.Tooltip=e._sfc_main$13;exports.Upload=e.Upload;exports.UploadImage=e._sfc_main$15;exports.UploadImageMultiple=e._sfc_main$16;exports.default=e.main;