@ozdao/prometheus-framework 0.2.130 → 0.2.133

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. package/dist/auth.server.js +0 -1
  2. package/dist/auth.server.mjs +0 -1
  3. package/dist/community.server.js +172 -31
  4. package/dist/community.server.mjs +172 -31
  5. package/dist/events.server.js +1 -1
  6. package/dist/events.server.mjs +1 -1
  7. package/dist/files.server.js +38 -4
  8. package/dist/files.server.mjs +38 -4
  9. package/dist/gallery.server.js +1 -1
  10. package/dist/gallery.server.mjs +1 -1
  11. package/dist/main-CI9l9xMs.js +92 -0
  12. package/dist/main-DPg58GOU.mjs +14509 -0
  13. package/dist/main.css +1 -1
  14. package/dist/orders.server.js +1 -1
  15. package/dist/orders.server.mjs +1 -1
  16. package/dist/organizations.server.js +4 -3
  17. package/dist/organizations.server.mjs +4 -3
  18. package/dist/products.server.js +2 -1
  19. package/dist/products.server.mjs +2 -1
  20. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
  21. package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
  22. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
  24. package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
  25. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
  27. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
  29. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
  30. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
  31. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
  32. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
  33. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
  34. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
  35. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
  37. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
  38. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
  39. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
  41. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
  42. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
  43. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
  45. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
  47. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
  49. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
  50. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
  51. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
  52. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
  53. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  54. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
  55. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
  57. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
  59. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
  60. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
  61. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
  62. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
  63. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  64. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
  65. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
  67. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +30 -30
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +30 -30
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +18 -18
  72. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
  74. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
  76. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +54 -71
  78. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
  80. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +86 -76
  82. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
  84. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +71 -80
  86. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
  87. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
  88. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
  90. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +27 -28
  92. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
  94. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
  96. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
  98. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
  99. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
  100. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
  102. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +119 -112
  104. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
  105. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +22 -22
  113. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +27 -27
  115. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
  117. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +16 -16
  118. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
  120. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  124. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
  125. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +39 -38
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  131. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +112 -85
  133. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -35
  135. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +8 -8
  136. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
  142. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
  144. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
  146. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
  148. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  150. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
  154. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
  156. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +4 -4
  159. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
  161. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +29 -29
  162. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
  164. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  165. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
  166. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
  167. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
  168. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
  169. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
  170. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
  171. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
  172. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
  173. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
  174. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +154 -77
  176. package/dist/prometheus-framework.cjs.js +1 -1
  177. package/dist/prometheus-framework.es.js +14 -14
  178. package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
  179. package/dist/queryProcessor-iewDZq_f.js +178 -0
  180. package/dist/style.css +1 -1
  181. package/dist/wallet.server.js +80 -27
  182. package/dist/wallet.server.mjs +80 -27
  183. package/dist/web-DZUec7pP.js +1 -0
  184. package/dist/web-krQQeSb6.mjs +54 -0
  185. package/package.json +1 -1
  186. package/src/components/Address/Address.vue +1 -1
  187. package/src/components/Chips/Chips.vue +1 -1
  188. package/src/components/Completion/Completion.vue +1 -4
  189. package/src/components/DatePicker/Calendar.vue +1 -1
  190. package/src/components/Draggable/Draggable.vue +113 -0
  191. package/src/components/Dropdown/Dropdown.vue +1 -1
  192. package/src/components/Feed/Feed.vue +18 -12
  193. package/src/components/FieldBig/FieldBig.vue +11 -1
  194. package/src/components/FieldPhone/FieldPhone.vue +1 -1
  195. package/src/components/FieldTags/FieldTags.vue +2 -1
  196. package/src/components/FieldTags/tag-input.vue +1 -1
  197. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  198. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  199. package/src/components/Shader/Shader.vue +2 -2
  200. package/src/components/Slider/Slider.vue +1 -5
  201. package/src/components/Spoiler/Spoiler.vue +1 -1
  202. package/src/components/Text/Text.vue +1 -4
  203. package/src/components/Tooltip/Tooltip.vue +1 -1
  204. package/src/components/Upload/Upload.vue +5 -3
  205. package/src/modules/auth/controllers/auth.controller.js +0 -2
  206. package/src/modules/auth/store/auth.js +2 -2
  207. package/src/modules/community/DOCUMENTATION.MD +4 -0
  208. package/src/modules/community/community.client.js +0 -2
  209. package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
  210. package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
  211. package/src/modules/community/components/layouts/Community.vue +15 -11
  212. package/src/modules/community/components/pages/Blog.vue +25 -32
  213. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
  214. package/src/modules/community/components/sections/Comment.vue +123 -0
  215. package/src/modules/community/components/sections/Comments.vue +90 -19
  216. package/src/modules/community/components/sections/HotPosts.vue +3 -6
  217. package/src/modules/community/controllers/blog.controller.js +1 -1
  218. package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
  219. package/src/modules/community/controllers/comments.controller.js +187 -38
  220. package/src/modules/community/controllers/comments.controller.populate.js +180 -0
  221. package/src/modules/community/models/comment.model.js +15 -0
  222. package/src/modules/community/store/blogposts.js +20 -2
  223. package/src/modules/constructor/components/elements/Audio.vue +28 -40
  224. package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
  225. package/src/modules/constructor/components/elements/Video.vue +10 -18
  226. package/src/modules/constructor/components/sections/Constructor.vue +54 -47
  227. package/src/modules/files/controllers/files.controller.js +2 -0
  228. package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
  229. package/src/modules/files/routes/files.routes.js +8 -0
  230. package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
  231. package/src/modules/globals/components/partials/Header.vue +12 -7
  232. package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
  233. package/src/modules/icons/logos/Logotype.vue +8 -6
  234. package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
  235. package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
  236. package/src/modules/marketplace/store/marketplace.js +2 -8
  237. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  238. package/src/modules/organizations/components/pages/Members.vue +1 -1
  239. package/src/modules/organizations/components/pages/Organization.vue +33 -5
  240. package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
  241. package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
  242. package/src/modules/organizations/components/sections/Publics.vue +2 -2
  243. package/src/modules/organizations/controllers/memberships.controller.js +2 -3
  244. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  245. package/src/modules/organizations/store/memberships.js +4 -1
  246. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  247. package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
  248. package/src/modules/products/models/product.model.js +2 -1
  249. package/src/modules/spots/components/layouts/Spots.vue +0 -3
  250. package/src/modules/spots/components/pages/Map.vue +13 -3
  251. package/src/modules/users/components/blocks/CardUser.vue +2 -2
  252. package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
  253. package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
  254. package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
  255. package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
  256. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
  257. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
  258. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
  259. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
  260. package/src/modules/wallet/localization/Wallet.json +22 -0
  261. package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
  262. package/src/styles/base/all.scss +16 -26
  263. package/src/styles/config.scss +70 -34
  264. package/src/styles/typography.scss +5 -5
  265. package/src/modules/community/components/sections/Feed.vue +0 -148
  266. package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
  267. package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
@@ -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"),a=require("web3");require("vue-router");require("vue-i18n");;/* empty css */;/* 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 l={class:"pd-thin"},r={class:"bg-black t-white mn-b-thin radius-big pd-big"},c=e.createElementVNode("h1",{class:"mn-b-medium"},"Your Wallet",-1),i=e.createElementVNode("p",{class:"mn-b-semi t-transp p-big"}," Earn Weeder Tokens by purchasing our weed or contributing to the community. ",-1),d={key:0,class:"gap-thin flex-nowrap bg-black radius-extra t-white br-solid br-white-transp-10 br-1px flex-v-center flex pd-medium"},m={class:"flex-v-center flex-nowrap flex mn-r-auto"},u=e.createElementVNode("button",{class:"w-max bg-main t-medium button"},"Get More",-1),p={key:0,class:"mn-b-semi cols-2 gap-thin"},b=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),h={class:"w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light"},_={key:0,class:"mn-b-small"},k={key:1,class:"w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"},f=e.createElementVNode("p",{class:"t-transp t-medium mn-b-thin"},"You own:",-1),g={class:"h1 mn-b-small"},E=e.createElementVNode("p",{class:"t-white p-big t-medium mn-b-semi"},"of all shares",-1),w={class:"flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra"},N={key:0,class:"t-transp t-medium"},V=e.createElementVNode("span",{class:"uppercase p-small t-medium t-transp"},"Connected Metamask",-1),x=e.createElementVNode("br",null,null,-1),B={key:2,class:"mn-b-small"},y={class:"cols-3 gap-thin"},q={class:"radius-medium bg-light"},v={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},C={class:"t-semi mn-r-auto"},W={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},D={class:"pd-medium"},S={class:"t-regular mn-b-thin"},M={__name:"Wallet",setup(R){return window.ethereum.on("accountsChanged",s=>{s.length<1&&(t.state.account=null)}),t.state.web3=new a(window.ethereum||"http://localhost:8080"),e.onMounted(()=>{t.actions.listRewards(),t.actions.tryReconnectWallet()}),(s,o)=>(e.openBlock(),e.createElementBlock("section",l,[e.createElementVNode("section",r,[c,i,e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",m,[e.createElementVNode("h2",null,e.toDisplayString(e.unref(t.state).tokenBalance)+" WDT",1)]),u,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.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",p,[b,e.createElementVNode("div",h,[e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",_," 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).account?(e.openBlock(),e.createElementBlock("div",k,[f,e.createElementVNode("p",g,e.toDisplayString(e.unref(t.state).share)+"%",1),E,e.createElementVNode("div",w,[e.unref(t.state).account?(e.openBlock(),e.createElementBlock("p",N,[V,x,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[2]||(o[2]=(...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).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",B,"Latest Rewards ")):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",q,[e.createElementVNode("div",v,[e.createElementVNode("p",C,e.toDisplayString(n.amount)+" WDT",1),e.createElementVNode("span",W,e.toDisplayString(n.type==="blogpost"?"Community Reward":n.type),1)]),e.createElementVNode("div",D,[e.createElementVNode("h4",S,e.toDisplayString(n.name),1)])]))),256))])]))}};exports.default=M;
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,9 +1,8 @@
1
- import { onMounted as d, openBlock as n, createElementBlock as o, createElementVNode as t, unref as e, toDisplayString as c, createCommentVNode as l, Fragment as u, renderList as p } from "vue";
2
- import { state as s, actions as i } from "../../store/wallet.store.js";
3
- import b from "web3";
1
+ import { onMounted as g, ref as f, openBlock as n, createElementBlock as a, Fragment as h, createElementVNode as t, unref as s, toDisplayString as r, createCommentVNode as i, renderList as k, createVNode as x, withCtx as v, createBlock as p } from "vue";
2
+ import { state as l, actions as d } from "../../store/wallet.store.js";
3
+ import y from "web3";
4
4
  import "vue-router";
5
- import "vue-i18n";
6
- /* empty css */
5
+ import C from "../../../../../components/Popup/Popup.vue2.js";
7
6
  /* empty css */
8
7
  /* empty css */
9
8
  /* empty css */
@@ -14,92 +13,170 @@ import "../../../../auth/store/auth.js";
14
13
  import "../../../../organizations/store/memberships.js";
15
14
  import "../../../../community/store/reactions.js";
16
15
  /* empty css */
17
- const h = { class: "pd-thin" }, _ = { class: "bg-black t-white mn-b-thin radius-big pd-big" }, g = /* @__PURE__ */ t("h1", { class: "mn-b-medium" }, "Your Wallet", -1), w = /* @__PURE__ */ t("p", { class: "mn-b-semi t-transp p-big" }, " Earn Weeder Tokens by purchasing our weed or contributing to the community. ", -1), k = {
16
+ import W from "../../../components/blocks/CashDeposite.vue.js";
17
+ import M from "../../../components/blocks/CardDeposite.vue.js";
18
+ import $ from "../../../components/blocks/CryptoDeposite.vue.js";
19
+ import R from "../../../components/blocks/CardBalanceReplenished.vue.js";
20
+ const P = { class: "pd-thin" }, B = { class: "bg-black t-white mn-b-thin radius-big pd-big" }, S = /* @__PURE__ */ t("h1", { class: "mn-b-medium" }, "Your Wallet", -1), D = /* @__PURE__ */ t("p", { class: "mn-b-semi t-transp p-big" }, " Earn Weeder Tokens by purchasing our weed or contributing to the community. ", -1), T = {
18
21
  key: 0,
19
- class: "gap-thin flex-nowrap bg-black radius-extra t-white br-solid br-white-transp-10 br-1px flex-v-center flex pd-medium"
20
- }, x = { class: "flex-v-center flex-nowrap flex mn-r-auto" }, f = /* @__PURE__ */ t("button", { class: "w-max bg-main t-medium button" }, "Get More", -1), y = {
22
+ 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"
23
+ }, G = { class: "flex-v-center flex-nowrap flex mn-r-auto" }, E = {
24
+ key: 1,
25
+ class: "w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"
26
+ }, A = /* @__PURE__ */ t("p", { class: "t-transp t-medium mn-b-thin" }, "You own:", -1), N = { class: "h1 mn-b-small" }, O = /* @__PURE__ */ t("p", { class: "t-white p-big t-medium mn-b-semi" }, "of all shares", -1), V = { class: "flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra" }, Y = {
27
+ key: 0,
28
+ class: "t-transp t-medium"
29
+ }, L = /* @__PURE__ */ t("span", { class: "uppercase p-small t-medium t-transp" }, "Connected Metamask", -1), F = /* @__PURE__ */ t("br", null, null, -1), H = {
21
30
  key: 0,
22
31
  class: "mn-b-semi cols-2 gap-thin"
23
- }, W = /* @__PURE__ */ t("div", { class: "w-100 pd-medium radius-medium t-center bg-light" }, [
32
+ }, j = /* @__PURE__ */ t("div", { class: "w-100 pd-medium radius-medium t-center bg-light" }, [
24
33
  /* @__PURE__ */ t("h3", { class: "mn-b-small" }, "Make first order and start earning Weeder Token"),
25
34
  /* @__PURE__ */ t("button", { class: "mn-l-auto mn-r-auto bg-main button" }, "Explore marketplace")
26
- ], -1), v = { class: "w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light" }, C = {
35
+ ], -1), q = { class: "w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-light" }, z = {
27
36
  key: 0,
28
37
  class: "mn-b-small"
29
- }, R = {
38
+ }, I = {
30
39
  key: 1,
31
- class: "w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"
32
- }, M = /* @__PURE__ */ t("p", { class: "t-transp t-medium mn-b-thin" }, "You own:", -1), D = { class: "h1 mn-b-small" }, E = /* @__PURE__ */ t("p", { class: "t-white p-big t-medium mn-b-semi" }, "of all shares", -1), T = { class: "flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra" }, B = {
33
- key: 0,
34
- class: "t-transp t-medium"
35
- }, L = /* @__PURE__ */ t("span", { class: "uppercase p-small t-medium t-transp" }, "Connected Metamask", -1), N = /* @__PURE__ */ t("br", null, null, -1), V = {
40
+ class: "mn-b-small"
41
+ }, J = { class: "cols-3 gap-thin" }, K = { class: "radius-medium bg-light" }, Q = { class: "flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium" }, U = { class: "t-semi mn-r-auto" }, X = { class: "pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small" }, Z = { class: "pd-medium" }, tt = { class: "t-regular mn-b-thin" }, et = {
36
42
  key: 2,
37
43
  class: "mn-b-small"
38
- }, Y = { class: "cols-3 gap-thin" }, F = { class: "radius-medium bg-light" }, G = { class: "flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium" }, S = { 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" }, q = { class: "pd-medium" }, z = { class: "t-regular mn-b-thin" }, at = {
44
+ }, st = { class: "cols-3 gap-thin" }, nt = { class: "radius-medium bg-grey" }, ot = { class: "flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium" }, lt = { class: "t-semi mn-r-auto" }, at = { class: "pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small" }, it = { class: "pd-medium" }, rt = { class: "t-regular mn-b-thin" }, ct = { key: 0 }, dt = /* @__PURE__ */ t("h2", { class: "mn-b-small t-center t-bold" }, "Choose the way of deposit", -1), St = {
39
45
  __name: "Wallet",
40
- setup(A) {
41
- return window.ethereum.on("accountsChanged", (m) => {
42
- m.length < 1 && (s.account = null);
43
- }), s.web3 = new b(window.ethereum || "http://localhost:8080"), d(() => {
44
- i.listRewards(), i.tryReconnectWallet();
45
- }), (m, r) => (n(), o("section", h, [
46
- t("section", _, [
47
- g,
48
- w,
49
- e(s).account ? (n(), o("div", k, [
50
- t("div", x, [
51
- t("h2", null, c(e(s).tokenBalance) + " WDT", 1)
52
- ]),
53
- f,
54
- t("button", {
55
- class: "w-max bg-white t-black t-medium button",
56
- onClick: r[0] || (r[0] = (...a) => e(i).collectRewards && e(i).collectRewards(...a))
57
- }, "Withdraw")
58
- ])) : l("", !0)
59
- ]),
60
- e(s).account ? l("", !0) : (n(), o("div", y, [
61
- W,
62
- t("div", v, [
63
- e(s).account ? l("", !0) : (n(), o("h3", C, " Connect Metamask to withdrawal your earnings. ")),
64
- e(s).account ? l("", !0) : (n(), o("button", {
65
- key: 1,
66
- onClick: r[1] || (r[1] = (...a) => e(i).connectWallet && e(i).connectWallet(...a)),
67
- class: "br-solid br-2px br-black-transp-10 t-black button"
68
- }, " Connect Wallet "))
69
- ])
70
- ])),
71
- e(s).account ? (n(), o("div", R, [
72
- M,
73
- t("p", D, c(e(s).share) + "%", 1),
74
- E,
75
- t("div", T, [
76
- e(s).account ? (n(), o("p", B, [
77
- L,
78
- N,
79
- t("span", null, c(e(s).account), 1)
80
- ])) : l("", !0),
81
- e(s).account ? (n(), o("button", {
82
- key: 1,
83
- onClick: r[2] || (r[2] = (...a) => e(i).disconnectWallet && e(i).disconnectWallet(...a)),
84
- class: "mn-l-auto bg-red button"
85
- }, " Disconnect Wallet ")) : l("", !0)
86
- ])
87
- ])) : l("", !0),
88
- e(s).rewards.length > 0 ? (n(), o("h2", V, "Latest Rewards ")) : l("", !0),
89
- t("section", Y, [
90
- (n(!0), o(u, null, p(e(s).rewards, (a) => (n(), o("div", F, [
91
- t("div", G, [
92
- t("p", S, c(a.amount) + " WDT", 1),
93
- t("span", j, c(a.type === "blogpost" ? "Community Reward" : a.type), 1)
94
- ]),
46
+ setup(mt) {
47
+ window.ethereum.on("accountsChanged", (u) => {
48
+ u.length < 1 && (l.account = null);
49
+ }), l.web3 = new y(window.ethereum || "http://localhost:8080"), g(() => {
50
+ d.listRewards(), d.tryReconnectWallet();
51
+ });
52
+ const b = f(!1), m = f(0);
53
+ function c(u) {
54
+ m.value = u;
55
+ }
56
+ function w() {
57
+ b.value = !0;
58
+ }
59
+ function _() {
60
+ b.value = !1, m.value = 0;
61
+ }
62
+ return (u, o) => (n(), a(h, null, [
63
+ t("section", P, [
64
+ t("section", B, [
65
+ S,
66
+ D,
67
+ s(l).account ? (n(), a("div", T, [
68
+ t("div", G, [
69
+ t("h2", null, r(s(l).tokenBalance) + " WDT", 1)
70
+ ]),
71
+ t("button", {
72
+ onClick: w,
73
+ class: "w-max bg-main t-medium button"
74
+ }, "Get More"),
75
+ t("button", {
76
+ class: "w-max bg-white t-black t-medium button",
77
+ onClick: o[0] || (o[0] = (...e) => s(d).collectRewards && s(d).collectRewards(...e))
78
+ }, "Withdraw")
79
+ ])) : i("", !0),
80
+ s(l).account ? (n(), a("div", E, [
81
+ A,
82
+ t("p", N, r(s(l).share) + "%", 1),
83
+ O,
84
+ t("div", V, [
85
+ s(l).account ? (n(), a("p", Y, [
86
+ L,
87
+ F,
88
+ t("span", null, r(s(l).account), 1)
89
+ ])) : i("", !0),
90
+ s(l).account ? (n(), a("button", {
91
+ key: 1,
92
+ onClick: o[1] || (o[1] = (...e) => s(d).disconnectWallet && s(d).disconnectWallet(...e)),
93
+ class: "mn-l-auto bg-red button"
94
+ }, " Disconnect Wallet ")) : i("", !0)
95
+ ])
96
+ ])) : i("", !0)
97
+ ]),
98
+ s(l).account ? i("", !0) : (n(), a("div", H, [
99
+ j,
95
100
  t("div", q, [
96
- t("h4", z, c(a.name), 1)
101
+ s(l).account ? i("", !0) : (n(), a("h3", z, " Connect Metamask to withdrawal your earnings. ")),
102
+ s(l).account ? i("", !0) : (n(), a("button", {
103
+ key: 1,
104
+ onClick: o[2] || (o[2] = (...e) => s(d).connectWallet && s(d).connectWallet(...e)),
105
+ class: "br-solid br-2px br-black-transp-10 t-black button"
106
+ }, " Connect Wallet "))
97
107
  ])
98
- ]))), 256))
99
- ])
100
- ]));
108
+ ])),
109
+ s(l).rewards.length > 0 ? (n(), a("h2", I, "Latest Rewards ")) : i("", !0),
110
+ t("section", J, [
111
+ (n(!0), a(h, null, k(s(l).rewards, (e) => (n(), a("div", K, [
112
+ t("div", Q, [
113
+ t("p", U, r(e.amount) + " WDT", 1),
114
+ t("span", X, r(e.type === "blogpost" ? "Community Reward" : e.type), 1)
115
+ ]),
116
+ t("div", Z, [
117
+ t("h4", tt, r(e.name), 1)
118
+ ])
119
+ ]))), 256))
120
+ ]),
121
+ s(l).rewards.length > 0 ? (n(), a("h2", et, "Activity")) : i("", !0),
122
+ t("section", st, [
123
+ (n(!0), a(h, null, k(s(l).rewards, (e) => (n(), a("div", nt, [
124
+ t("div", ot, [
125
+ t("p", lt, r(e.amount) + " WDT", 1),
126
+ t("span", at, r(e.type === "blogpost" ? "Community Reward" : e.type), 1)
127
+ ]),
128
+ t("div", it, [
129
+ t("h4", rt, r(e.name), 1)
130
+ ])
131
+ ]))), 256))
132
+ ])
133
+ ]),
134
+ x(C, {
135
+ title: "Добавить участника",
136
+ onClosePopup: _,
137
+ isPopupOpen: b.value,
138
+ class: "w-m-33r t-left pd-big bg-white radius-big"
139
+ }, {
140
+ default: v(() => [
141
+ m.value === 0 ? (n(), a("div", ct, [
142
+ dt,
143
+ t("button", {
144
+ 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",
145
+ onClick: o[3] || (o[3] = (e) => c(1))
146
+ }, " CASH "),
147
+ t("button", {
148
+ 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",
149
+ onClick: o[4] || (o[4] = (e) => c(2))
150
+ }, " CARD "),
151
+ t("button", {
152
+ 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",
153
+ onClick: o[5] || (o[5] = (e) => c(4))
154
+ }, " CRYPTO ")
155
+ ])) : i("", !0),
156
+ m.value === 1 ? (n(), p(W, {
157
+ key: 1,
158
+ onBackSelection: o[6] || (o[6] = (e) => c(0))
159
+ })) : i("", !0),
160
+ m.value === 2 ? (n(), p(M, {
161
+ key: 2,
162
+ onBackSelection: o[7] || (o[7] = (e) => c(0)),
163
+ onSwitchMenu: c
164
+ })) : i("", !0),
165
+ m.value === 3 ? (n(), p(R, {
166
+ key: 3,
167
+ onClose: _
168
+ })) : i("", !0),
169
+ m.value === 4 ? (n(), p($, {
170
+ key: 4,
171
+ onBackSelection: o[8] || (o[8] = (e) => c(0)),
172
+ onSwitchMenu: c
173
+ })) : i("", !0)
174
+ ]),
175
+ _: 1
176
+ }, 8, ["isPopupOpen"])
177
+ ], 64));
101
178
  }
102
179
  };
103
180
  export {
104
- at as default
181
+ St as default
105
182
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./main-Ckn0Sslr.js");exports.Address=e.Address;exports.Breadcrumbs=e._sfc_main$10;exports.Button=e._sfc_main;exports.Checkbox=e._sfc_main$1;exports.Chips=e.Chips;exports.Countdown=e._sfc_main$11;exports.DatePicker=e._sfc_main$12;exports.Dropdown=e.Dropdown;exports.EmptyState=e._sfc_main$13;exports.Error=e._sfc_main$2;exports.Feed=e._sfc_main$14;exports.Field=e.Field;exports.FieldBig=e._sfc_main$15;exports.FieldPhone=e.FieldPhone;exports.FieldTags=e.FieldTags;exports.Loader=e.Loader;exports.LocationMarker=e.LocationMarker;exports.Map=e.Map;exports.Marquee=e._sfc_main$19;exports.Popup=e._sfc_main$3;exports.Radio=e._sfc_main$4;exports.Select=e.Select;exports.SelectMulti=e.SelectMulti;exports.Shader=e.Shader;exports.Sidebar=e._sfc_main$16;exports.Slider=e._sfc_main$17;exports.Spoiler=e._sfc_main$5;exports.Status=e._sfc_main$18;exports.Tab=e._sfc_main$6;exports.Text=e._sfc_main$7;exports.Tooltip=e.Tooltip;exports.Upload=e.Upload;exports.UploadImage=e._sfc_main$8;exports.UploadImageMultiple=e._sfc_main$9;exports.default=e.main;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./main-CI9l9xMs.js");exports.Address=a._sfc_main;exports.Breadcrumbs=a._sfc_main$15;exports.Button=a._sfc_main$1;exports.Checkbox=a._sfc_main$2;exports.Chips=a._sfc_main$16;exports.Countdown=a._sfc_main$17;exports.DatePicker=a._sfc_main$18;exports.Dropdown=a._sfc_main$3;exports.EmptyState=a._sfc_main$19;exports.Error=a._sfc_main$4;exports.Feed=a._sfc_main$20;exports.Field=a.Field;exports.FieldBig=a._sfc_main$21;exports.FieldPhone=a._sfc_main$5;exports.FieldTags=a.FieldTags;exports.Loader=a.Loader;exports.LocationMarker=a._sfc_main$6;exports.Map=a.Map;exports.Marquee=a._sfc_main$26;exports.Popup=a._sfc_main$7;exports.Radio=a._sfc_main$8;exports.Select=a.Select;exports.SelectMulti=a.SelectMulti;exports.Shader=a._sfc_main$22;exports.Sidebar=a._sfc_main$23;exports.Slider=a._sfc_main$24;exports.Spoiler=a._sfc_main$9;exports.Status=a._sfc_main$25;exports.Tab=a._sfc_main$10;exports.Text=a._sfc_main$12;exports.Tooltip=a._sfc_main$11;exports.Upload=a.Upload;exports.UploadImage=a._sfc_main$13;exports.UploadImageMultiple=a._sfc_main$14;exports.default=a.main;
@@ -1,4 +1,4 @@
1
- import { A as e, l as o, _ as d, a as r, C as t, n as l, o as i, D as p, p as u, b as S, q as c, F as n, r as m, c as F, s as M, t as b, L as g, M as h, y as T, d as k, e as x, S as C, f as U, u as f, v as w, w as B, g as D, x as L, h as P, i as q, T as y, U as A, j as E, k as I, m as j } from "./main-DxyAONrm.mjs";
1
+ import { _ as e, q as o, a as d, b as r, r as t, s as l, t as i, c as p, u, d as S, v as c, F as n, w as m, e as F, x as M, L as b, f as g, M as h, C as k, g as x, h as B, S as C, i as T, y as U, z as f, A as w, j as L, B as P, k as q, n as y, l as A, U as D, o as E, p as I, m as j } from "./main-DPg58GOU.mjs";
2
2
  export {
3
3
  e as Address,
4
4
  o as Breadcrumbs,
@@ -18,20 +18,20 @@ export {
18
18
  b as Loader,
19
19
  g as LocationMarker,
20
20
  h as Map,
21
- T as Marquee,
22
- k as Popup,
23
- x as Radio,
21
+ k as Marquee,
22
+ x as Popup,
23
+ B as Radio,
24
24
  C as Select,
25
- U as SelectMulti,
26
- f as Shader,
27
- w as Sidebar,
28
- B as Slider,
29
- D as Spoiler,
30
- L as Status,
31
- P as Tab,
32
- q as Text,
33
- y as Tooltip,
34
- A as Upload,
25
+ T as SelectMulti,
26
+ U as Shader,
27
+ f as Sidebar,
28
+ w as Slider,
29
+ L as Spoiler,
30
+ P as Status,
31
+ q as Tab,
32
+ y as Text,
33
+ A as Tooltip,
34
+ D as Upload,
35
35
  E as UploadImage,
36
36
  I as UploadImageMultiple,
37
37
  j as default
@@ -0,0 +1,179 @@
1
+ import require$$0 from "mongoose";
2
+ const ObjectId = require$$0.Types.ObjectId;
3
+ function getBasicOptions(query) {
4
+ console.log(query);
5
+ const { _id, url, status, type, owner, creator } = query;
6
+ const conditions = [];
7
+ if (_id) {
8
+ conditions.push({ _id: new ObjectId(_id) });
9
+ }
10
+ if (url) {
11
+ conditions.push({ url });
12
+ }
13
+ if (status) {
14
+ conditions.push({ status });
15
+ }
16
+ if (type) {
17
+ conditions.push({ type });
18
+ }
19
+ if (owner) {
20
+ conditions.push({ "owner.target": new ObjectId(owner) });
21
+ }
22
+ if (creator) {
23
+ conditions.push({ "creator.target": new ObjectId(creator) });
24
+ }
25
+ if (conditions.length > 0) {
26
+ return [{ $match: { $and: conditions } }];
27
+ } else {
28
+ return [];
29
+ }
30
+ }
31
+ function getFilterDate(start, end) {
32
+ let filter = {};
33
+ if (start !== null) {
34
+ filter.$gte = new Date(start);
35
+ }
36
+ if (end !== null) {
37
+ filter.$lte = new Date(end);
38
+ }
39
+ if (start === "null" && end === "null") {
40
+ return [];
41
+ } else {
42
+ return [{ $match: { createdAt: filter } }];
43
+ }
44
+ }
45
+ function getTagsOptions(tags) {
46
+ if (tags) {
47
+ const tagsArray = Array.isArray(tags) ? tags : [tags];
48
+ return [{ $match: { tags: { $in: tagsArray } } }];
49
+ } else {
50
+ return [];
51
+ }
52
+ }
53
+ function getSortingOptions(param = "createdAt", order = "desc") {
54
+ let sort = {
55
+ [param]: order === "desc" ? -1 : 1,
56
+ "_id": 1
57
+ };
58
+ return [{ $sort: sort }];
59
+ }
60
+ function getPaginationOptions(skip, limit) {
61
+ let pagination = {
62
+ skip: parseInt(skip) || 0,
63
+ limit: parseInt(limit) || 20
64
+ };
65
+ return [{ $skip: pagination.skip }, { $limit: pagination.limit }];
66
+ }
67
+ function getCreatorUserLookupStage() {
68
+ return {
69
+ $lookup: {
70
+ from: "users",
71
+ localField: "creator.target",
72
+ foreignField: "_id",
73
+ as: "creatorUser"
74
+ }
75
+ };
76
+ }
77
+ function getCreatorOrganizationLookupStage() {
78
+ return {
79
+ $lookup: {
80
+ from: "organizations",
81
+ localField: "creator.target",
82
+ foreignField: "_id",
83
+ as: "creatorOrganization"
84
+ }
85
+ };
86
+ }
87
+ function getCreatorCustomerLookupStage() {
88
+ return {
89
+ $lookup: {
90
+ from: "customers",
91
+ localField: "creator.target",
92
+ foreignField: "_id",
93
+ as: "creatorCustomer"
94
+ }
95
+ };
96
+ }
97
+ function getOwnerUserLookupStage() {
98
+ return {
99
+ $lookup: {
100
+ from: "users",
101
+ localField: "owner.target",
102
+ foreignField: "_id",
103
+ as: "ownerUser"
104
+ }
105
+ };
106
+ }
107
+ function getOwnerOrganizationLookupStage() {
108
+ return {
109
+ $lookup: {
110
+ from: "organizations",
111
+ localField: "owner.target",
112
+ foreignField: "_id",
113
+ as: "ownerOrganization"
114
+ }
115
+ };
116
+ }
117
+ function getAddFieldsCreatorOwnerStage() {
118
+ return {
119
+ $addFields: {
120
+ "creator.target": {
121
+ $switch: {
122
+ branches: [
123
+ {
124
+ case: { $eq: [{ $toLower: "$creator.type" }, "user"] },
125
+ then: { $arrayElemAt: ["$creatorUser", 0] }
126
+ },
127
+ {
128
+ case: { $eq: [{ $toLower: "$creator.type" }, "organization"] },
129
+ then: { $arrayElemAt: ["$creatorOrganization", 0] }
130
+ },
131
+ {
132
+ case: { $eq: [{ $toLower: "$creator.type" }, "customer"] },
133
+ then: { $arrayElemAt: ["$creatorCustomer", 0] }
134
+ }
135
+ ],
136
+ default: "Unknown type"
137
+ // или любое другое значение по умолчанию, которое вы хотите использовать
138
+ }
139
+ },
140
+ "owner.target": {
141
+ $cond: [
142
+ { $eq: ["$owner.type", "user"] },
143
+ { $arrayElemAt: ["$ownerUser", 0] },
144
+ { $arrayElemAt: ["$ownerOrganization", 0] }
145
+ ]
146
+ }
147
+ }
148
+ };
149
+ }
150
+ function removeTempPropeties() {
151
+ return {
152
+ $project: {
153
+ creatorOrganization: 0,
154
+ creatorUser: 0,
155
+ ownerOrganization: 0,
156
+ ownerUser: 0,
157
+ creatorCustomer: 0,
158
+ ownerCustomer: 0
159
+ }
160
+ };
161
+ }
162
+ var queryProcessor = {
163
+ getBasicOptions,
164
+ getSortingOptions,
165
+ getPaginationOptions,
166
+ getTagsOptions,
167
+ getFilterDate,
168
+ // Creator and Owner
169
+ getCreatorUserLookupStage,
170
+ getCreatorOrganizationLookupStage,
171
+ getCreatorCustomerLookupStage,
172
+ getOwnerUserLookupStage,
173
+ getOwnerOrganizationLookupStage,
174
+ getAddFieldsCreatorOwnerStage,
175
+ removeTempPropeties
176
+ };
177
+ export {
178
+ queryProcessor as q
179
+ };