@ozdao/prometheus-framework 0.2.130 → 0.2.132

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) 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.vue2.cjs +1 -0
  28. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
  29. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
  31. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
  32. package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
  33. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
  34. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
  35. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
  37. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
  38. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
  39. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
  41. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
  43. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
  45. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
  47. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
  48. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
  49. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  50. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
  51. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
  52. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
  53. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
  55. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
  56. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
  57. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  58. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
  59. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
  61. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
  63. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  65. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +31 -31
  73. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +32 -32
  75. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +20 -20
  77. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
  79. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
  83. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +55 -72
  85. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
  87. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +87 -77
  89. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
  91. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  93. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +71 -80
  95. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
  96. package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
  97. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
  99. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +29 -30
  101. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
  103. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
  105. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
  109. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
  110. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
  111. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
  113. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +119 -112
  115. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
  117. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  123. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +21 -21
  126. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +30 -30
  128. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
  130. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +18 -18
  134. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  136. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
  138. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
  140. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
  142. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
  144. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +39 -38
  150. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +113 -86
  158. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +37 -36
  162. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +10 -10
  164. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  166. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  168. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -5
  170. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
  172. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
  174. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  176. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
  178. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
  179. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  181. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  185. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
  187. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  188. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  189. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  191. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  192. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
  193. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  195. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  197. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
  199. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  201. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  203. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +5 -5
  205. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
  207. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +33 -33
  209. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
  211. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  213. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  214. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
  215. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
  216. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
  217. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
  218. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
  219. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
  220. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
  221. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
  222. package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
  223. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +158 -81
  225. package/dist/prometheus-framework.cjs.js +1 -1
  226. package/dist/prometheus-framework.es.js +14 -14
  227. package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
  228. package/dist/queryProcessor-iewDZq_f.js +178 -0
  229. package/dist/style.css +1 -1
  230. package/dist/wallet.server.js +80 -27
  231. package/dist/wallet.server.mjs +80 -27
  232. package/dist/web-DZUec7pP.js +1 -0
  233. package/dist/web-krQQeSb6.mjs +54 -0
  234. package/package.json +1 -1
  235. package/src/components/Address/Address.vue +1 -1
  236. package/src/components/Chips/Chips.vue +1 -1
  237. package/src/components/Completion/Completion.vue +1 -4
  238. package/src/components/DatePicker/Calendar.vue +1 -1
  239. package/src/components/Draggable/Draggable.vue +113 -0
  240. package/src/components/Dropdown/Dropdown.vue +1 -1
  241. package/src/components/Feed/Feed.vue +18 -12
  242. package/src/components/FieldBig/FieldBig.vue +11 -1
  243. package/src/components/FieldPhone/FieldPhone.vue +1 -1
  244. package/src/components/FieldTags/FieldTags.vue +2 -1
  245. package/src/components/FieldTags/tag-input.vue +1 -1
  246. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  247. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  248. package/src/components/Shader/Shader.vue +2 -2
  249. package/src/components/Slider/Slider.vue +1 -5
  250. package/src/components/Spoiler/Spoiler.vue +1 -1
  251. package/src/components/Text/Text.vue +1 -4
  252. package/src/components/Tooltip/Tooltip.vue +1 -1
  253. package/src/components/Upload/Upload.vue +5 -3
  254. package/src/modules/auth/controllers/auth.controller.js +0 -2
  255. package/src/modules/auth/store/auth.js +2 -2
  256. package/src/modules/community/DOCUMENTATION.MD +4 -0
  257. package/src/modules/community/community.client.js +0 -2
  258. package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
  259. package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
  260. package/src/modules/community/components/layouts/Community.vue +15 -11
  261. package/src/modules/community/components/pages/Blog.vue +25 -32
  262. package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
  263. package/src/modules/community/components/sections/Comment.vue +123 -0
  264. package/src/modules/community/components/sections/Comments.vue +90 -19
  265. package/src/modules/community/components/sections/HotPosts.vue +3 -6
  266. package/src/modules/community/controllers/blog.controller.js +1 -1
  267. package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
  268. package/src/modules/community/controllers/comments.controller.js +187 -38
  269. package/src/modules/community/controllers/comments.controller.populate.js +180 -0
  270. package/src/modules/community/models/comment.model.js +15 -0
  271. package/src/modules/community/store/blogposts.js +20 -2
  272. package/src/modules/constructor/components/elements/Audio.vue +28 -40
  273. package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
  274. package/src/modules/constructor/components/elements/Video.vue +10 -18
  275. package/src/modules/constructor/components/sections/Constructor.vue +54 -47
  276. package/src/modules/files/controllers/files.controller.js +2 -0
  277. package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
  278. package/src/modules/files/routes/files.routes.js +8 -0
  279. package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
  280. package/src/modules/globals/components/partials/Header.vue +12 -7
  281. package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
  282. package/src/modules/icons/logos/Logotype.vue +8 -6
  283. package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
  284. package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
  285. package/src/modules/marketplace/store/marketplace.js +2 -8
  286. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  287. package/src/modules/organizations/components/pages/Members.vue +1 -1
  288. package/src/modules/organizations/components/pages/Organization.vue +33 -5
  289. package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
  290. package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
  291. package/src/modules/organizations/components/sections/Publics.vue +2 -2
  292. package/src/modules/organizations/controllers/memberships.controller.js +2 -3
  293. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  294. package/src/modules/organizations/store/memberships.js +4 -1
  295. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  296. package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
  297. package/src/modules/products/models/product.model.js +2 -1
  298. package/src/modules/spots/components/layouts/Spots.vue +0 -3
  299. package/src/modules/spots/components/pages/Map.vue +13 -3
  300. package/src/modules/users/components/blocks/CardUser.vue +2 -2
  301. package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
  302. package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
  303. package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
  304. package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
  305. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
  306. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
  307. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
  308. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
  309. package/src/modules/wallet/localization/Wallet.json +22 -0
  310. package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
  311. package/src/styles/base/all.scss +16 -26
  312. package/src/styles/config.scss +70 -34
  313. package/src/styles/typography.scss +5 -5
  314. package/src/modules/community/components/sections/Feed.vue +0 -148
  315. package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
  316. package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
@@ -1,10 +1,10 @@
1
- import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unref as s, createBlock as d, createCommentVNode as m, createElementVNode as n, withCtx as u, createVNode as a, toDisplayString as f, Fragment as E, renderList as S, normalizeClass as P } from "vue";
2
- /* empty css */
1
+ import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unref as r, createBlock as d, createCommentVNode as m, createElementVNode as n, withCtx as u, createVNode as a, toDisplayString as f, Fragment as E, renderList as S, normalizeClass as P } from "vue";
2
+ /* empty css */
3
3
  /* empty css */
4
- /* empty css */
5
- import B from "../../../../components/Dropdown/Dropdown.vue.js";
4
+ /* empty css */
5
+ import B from "../../../../components/Dropdown/Dropdown.vue2.js";
6
6
  import M from "../../../../components/Completion/Completion.vue.js";
7
- import k from "../../../../components/Menu/Menu.vue2.js";
7
+ import k from "../../../../components/Menu/Menu.vue.js";
8
8
  import _ from "../../../../components/Menu/MenuItem.vue.js";
9
9
  import w from "../../../organizations/components/elements/ButtonToggleMembership.vue.js";
10
10
  import R from "../../../reports/components/sections/FormReport.vue.js";
@@ -19,10 +19,10 @@ import { state as l, actions as W } from "../../../auth/store/auth.js";
19
19
  import { actions as j, state as e } from "../../store/users.js";
20
20
  import { mutations as z } from "../../../organizations/store/memberships.js";
21
21
  import "./Profile.vue2.js";
22
- const D = {
22
+ const G = {
23
23
  key: 0,
24
24
  class: "for-transition w-100"
25
- }, G = {
25
+ }, D = {
26
26
  key: 0,
27
27
  class: "flex-center flex pd-medium radius-big bg-light uppercase t-semi w-100 h-100"
28
28
  }, q = {
@@ -32,25 +32,25 @@ const D = {
32
32
  }, H = { class: "flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-light" }, J = { class: "bg-black pd-thin radius-small" }, K = /* @__PURE__ */ n("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), Q = ["src"], T = { class: "mn-b-thin" }, X = {
33
33
  key: 4,
34
34
  class: "mn-b-thin t-main t-semi"
35
- }, Y = { class: "mn-b-small p-medium" }, Z = { class: "mn-b-medium flex-center flex-nowrap flex" }, ee = { class: "t-semi mn-b-small" }, re = {
35
+ }, Y = { class: "mn-b-small p-medium" }, Z = { class: "mn-b-medium flex-center flex-nowrap flex" }, ee = { class: "t-semi mn-b-small" }, se = {
36
36
  key: 6,
37
37
  class: "mn-t-small mn-b-thin"
38
- }, se = /* @__PURE__ */ n("span", null, "Events", -1), te = /* @__PURE__ */ n("span", null, "Groups", -1), ie = /* @__PURE__ */ n("span", null, "Posts", -1), oe = /* @__PURE__ */ n("span", null, "Wallet", -1), ae = /* @__PURE__ */ n("span", null, " Settings ", -1), ne = /* @__PURE__ */ n("span", null, " About ", -1), le = /* @__PURE__ */ n("span", { class: "t-red" }, " Logout ", -1), Me = {
38
+ }, re = /* @__PURE__ */ n("span", null, "Events", -1), te = /* @__PURE__ */ n("span", null, "Groups", -1), ie = /* @__PURE__ */ n("span", null, "Posts", -1), oe = /* @__PURE__ */ n("span", null, "Wallet", -1), ae = /* @__PURE__ */ n("span", null, " Settings ", -1), ne = /* @__PURE__ */ n("span", null, " About ", -1), le = /* @__PURE__ */ n("span", { class: "t-red" }, " Logout ", -1), Me = {
39
39
  __name: "Profile",
40
40
  setup(ue) {
41
41
  const o = O(), p = V(), g = U(!1);
42
42
  C(async () => {
43
43
  await j.read({ _id: o.params._id, user: l.user._id }), g.value = !0;
44
44
  });
45
- const v = ({ membership: b, status: r, target: t }, h, $) => {
46
- z.handleMembershipUpdate(e.current, b, r, t, h, $);
45
+ const v = ({ membership: b, status: s, target: t }, h, x) => {
46
+ z.handleMembershipUpdate(e.current, b, s, t, h, x);
47
47
  };
48
- function x() {
48
+ function $() {
49
49
  W.logout(), p.push({ name: "Sign In" });
50
50
  }
51
- return (b, r) => g.value ? (i(), c("div", D, [
52
- e.current.status === "removed" ? (i(), c("div", G, " Sorry, user has been removed. ")) : (i(), c("div", q, [
53
- s(o).params._id === l.user._id && g.value ? (i(), d(M, {
51
+ return (b, s) => g.value ? (i(), c("div", G, [
52
+ e.current.status === "removed" ? (i(), c("div", D, " Sorry, user has been removed. ")) : (i(), c("div", q, [
53
+ r(o).params._id === l.user._id && g.value ? (i(), d(M, {
54
54
  key: 0,
55
55
  user: l.user._id,
56
56
  target: e.current,
@@ -60,7 +60,7 @@ const D = {
60
60
  class: "mn-b-medium"
61
61
  }, null, 8, ["user", "target"])) : m("", !0),
62
62
  n("section", H, [
63
- s(o).params._id && s(o).params._id !== l.user._id ? (i(), d(B, {
63
+ r(o).params._id && r(o).params._id !== l.user._id ? (i(), d(B, {
64
64
  key: 0,
65
65
  label: "...",
66
66
  align: "right",
@@ -88,16 +88,16 @@ const D = {
88
88
  target: e.current._id,
89
89
  status: e.current.isBlocked,
90
90
  text: { create: "Block", remove: "Unblock" },
91
- onUpdateMembership: r[0] || (r[0] = (t) => v(t, "isBlocked")),
91
+ onUpdateMembership: s[0] || (s[0] = (t) => v(t, "isBlocked")),
92
92
  class: "t-white mn-t-thin bg-red"
93
93
  }, null, 8, ["user", "target", "status"])) : m("", !0)
94
94
  ])
95
95
  ]),
96
96
  _: 1
97
97
  })) : m("", !0),
98
- s(o).params._id === l.user._id ? (i(), d(A, {
98
+ r(o).params._id === l.user._id ? (i(), d(A, {
99
99
  key: 1,
100
- onClick: r[1] || (r[1] = (t) => b.$router.push({
100
+ onClick: s[1] || (s[1] = (t) => b.$router.push({
101
101
  name: "User Edit Profile",
102
102
  params: {
103
103
  _id: l.user._id
@@ -122,7 +122,7 @@ const D = {
122
122
  }, f(t.icon) + " " + f(t.name), 3))), 256))
123
123
  ]),
124
124
  n("p", ee, " 👨‍👨‍👧‍👧 " + f(e.current.numberOfSubscribers) + " followers ", 1),
125
- l.user._id && s(o).params._id && s(o).params._id !== l.user._id ? (i(), d(w, {
125
+ l.user._id && r(o).params._id && r(o).params._id !== l.user._id ? (i(), d(w, {
126
126
  key: 5,
127
127
  user: l.user._id,
128
128
  type: "user",
@@ -130,10 +130,10 @@ const D = {
130
130
  target: e.current._id,
131
131
  status: e.current.isSubscriber,
132
132
  text: { create: "Follow", remove: "Unfollow" },
133
- onUpdateMembership: r[2] || (r[2] = (t) => v(t, "isSubscriber", "numberOfSubscribers")),
133
+ onUpdateMembership: s[2] || (s[2] = (t) => v(t, "isSubscriber", "numberOfSubscribers")),
134
134
  class: "w-min mn-b-medium mn-r-auto mn-l-auto"
135
135
  }, null, 8, ["user", "target", "status"])) : m("", !0),
136
- Object.values(e.current.socials).some((t) => t) ? (i(), c("h4", re, " Find Me in Socials ")) : m("", !0),
136
+ Object.values(e.current.socials).some((t) => t) ? (i(), c("h4", se, " Find Me in Socials ")) : m("", !0),
137
137
  a(F, {
138
138
  telegram: e.current.socials.telegram,
139
139
  facebook: e.current.socials.facebook,
@@ -145,7 +145,7 @@ const D = {
145
145
  a(k, { class: "mn-b-regular bg-light" }, {
146
146
  default: u(() => [
147
147
  a(_, {
148
- onClick: r[3] || (r[3] = (t) => s(p).push({ name: "User Events", params: { _id: s(o).params._id } })),
148
+ onClick: s[3] || (s[3] = (t) => r(p).push({ name: "User Events", params: { _id: r(o).params._id } })),
149
149
  class: "cursor-pointer"
150
150
  }, {
151
151
  default: u(() => [
@@ -154,12 +154,12 @@ const D = {
154
154
  icon: !0,
155
155
  fill: "rgb(var(--white))"
156
156
  }),
157
- se
157
+ re
158
158
  ]),
159
159
  _: 1
160
160
  }),
161
161
  a(_, {
162
- onClick: r[4] || (r[4] = (t) => s(p).push({ name: "User Organizations", params: { _id: s(o).params._id } })),
162
+ onClick: s[4] || (s[4] = (t) => r(p).push({ name: "User Organizations", params: { _id: r(o).params._id } })),
163
163
  class: "cursor-pointer"
164
164
  }, {
165
165
  default: u(() => [
@@ -172,7 +172,7 @@ const D = {
172
172
  _: 1
173
173
  }),
174
174
  a(_, {
175
- onClick: r[5] || (r[5] = (t) => s(p).push({ name: "User Blogposts", params: { _id: s(o).params._id } })),
175
+ onClick: s[5] || (s[5] = (t) => r(p).push({ name: "User Blogposts", params: { _id: r(o).params._id } })),
176
176
  class: "cursor-pointer"
177
177
  }, {
178
178
  default: u(() => [
@@ -193,7 +193,7 @@ const D = {
193
193
  }, {
194
194
  default: u(() => [
195
195
  a(_, {
196
- onClick: r[6] || (r[6] = (t) => s(p).push({ name: "User Wallet", params: { _id: s(o).params._id } })),
196
+ onClick: s[6] || (s[6] = (t) => r(p).push({ name: "User Wallet", params: { _id: r(o).params._id } })),
197
197
  class: "cursor-pointer"
198
198
  }, {
199
199
  default: u(() => [
@@ -208,16 +208,16 @@ const D = {
208
208
  ]),
209
209
  _: 1
210
210
  })) : m("", !0),
211
- l.user._id === s(o).params._id ? (i(), d(k, {
211
+ l.user._id === r(o).params._id ? (i(), d(k, {
212
212
  key: 2,
213
213
  class: "bg-light"
214
214
  }, {
215
215
  default: u(() => [
216
216
  a(_, {
217
- onClick: r[7] || (r[7] = (t) => s(p).push({
217
+ onClick: s[7] || (s[7] = (t) => r(p).push({
218
218
  name: "User Edit Profile",
219
219
  params: {
220
- _id: s(o).params._id
220
+ _id: r(o).params._id
221
221
  }
222
222
  })),
223
223
  class: "cursor-pointer"
@@ -228,10 +228,10 @@ const D = {
228
228
  _: 1
229
229
  }),
230
230
  a(_, {
231
- onClick: r[8] || (r[8] = (t) => s(p).push({
231
+ onClick: s[8] || (s[8] = (t) => r(p).push({
232
232
  name: "Legal",
233
233
  params: {
234
- _id: s(o).params._id
234
+ _id: r(o).params._id
235
235
  }
236
236
  })),
237
237
  class: "cursor-pointer"
@@ -243,7 +243,7 @@ const D = {
243
243
  }),
244
244
  a(_, {
245
245
  class: "cursor-pointer",
246
- onClick: r[9] || (r[9] = (t) => x())
246
+ onClick: s[9] || (s[9] = (t) => $())
247
247
  }, {
248
248
  default: u(() => [
249
249
  le
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),u=require("../../../community/components/sections/Feed.vue.cjs"),o=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},p={class:"mn-b-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),_={__name:"ProfileBlogposts",setup(k){const t=n.useRoute(),c=n.useRouter();let i=t.query.tab?t.query.tab:"posts";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,a=>{c.replace({query:{...t.query,tab:a}})}),(a,s)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[f,o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=l=>a.$router.push({name:"Create BlogPost"})),class:"radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createBlock(d.default,{key:0,selected:r.value,"onUpdate:selected":s[1]||(s[1]=l=>r.value=l),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"])):e.createCommentVNode("",!0),r.value==="posts"?(e.openBlock(),e.createBlock(u.default,{key:1,user:o.state.user._id,creator:e.unref(t).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="drafts"?(e.openBlock(),e.createBlock(u.default,{key:2,user:o.state.user._id,creator:e.unref(t).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),r.value==="following"?(e.openBlock(),e.createBlock(u.default,{key:3,user:o.state.user._id,following:e.unref(t).params._id},null,8,["user","following"])):e.createCommentVNode("",!0)]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),p=require("../../../../components/Feed/Feed.vue.cjs"),m=require("../../../community/components/blocks/CardBlogpost.vue.cjs"),o=require("../../../auth/store/auth.cjs"),f=require("../../../community/store/blogposts.cjs"),b={class:"pd-thin"},g={class:"mn-b-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),h={__name:"ProfileBlogposts",setup(v){const t=n.useRoute(),i=n.useRouter();let c=t.query.tab?t.query.tab:"posts";const r=e.ref(c);return t.query.tab=r.value,e.watch(r,l=>{i.replace({query:{...t.query,tab:l}})}),(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("header",g,[_,o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=s=>l.$router.push({name:"Create BlogPost"})),class:"radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createBlock(d.default,{key:0,selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"])):e.createCommentVNode("",!0),e.createVNode(p.default,{showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:s=>f.read(s)},options:{limit:15,category:e.unref(t).params.category,period:e.unref(t).query.period,status:r.value==="drafts"?"draft":"published",user:o.state.user._id,creator:["posts","drafts"].includes(r.value)?e.unref(t).params._id:null,following:r.value==="following"?o.state.user._id:null},class:"row-1 gap-thin"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,u=>(e.openBlock(),e.createBlock(m.default,{key:u._id,blogpost:u,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])]))}};exports.default=h;
@@ -1,57 +1,75 @@
1
- import { ref as _, watch as b, openBlock as r, createElementBlock as d, createElementVNode as c, unref as s, createCommentVNode as o, createBlock as u } from "vue";
2
- import { useRoute as g, useRouter as v } from "vue-router";
3
- import h from "../../../../components/Tab/Tab.vue2.js";
4
- import i from "../../../community/components/sections/Feed.vue.js";
1
+ import { ref as _, watch as b, openBlock as s, createElementBlock as n, createElementVNode as c, unref as o, createCommentVNode as d, createBlock as m, createVNode as g, withCtx as h, Fragment as v, renderList as y } from "vue";
2
+ import { useRoute as w, useRouter as k } from "vue-router";
3
+ import q from "../../../../components/Tab/Tab.vue2.js";
4
+ import x from "../../../../components/Feed/Feed.vue.js";
5
+ import B from "../../../community/components/blocks/CardBlogpost.vue.js";
5
6
  import { state as a } from "../../../auth/store/auth.js";
6
- const y = { class: "pd-thin" }, k = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ c("h2", { class: "mn-r-medium" }, "Posts", -1), E = {
7
+ import { read as C } from "../../../community/store/blogposts.js";
8
+ const P = { class: "pd-thin" }, $ = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, N = /* @__PURE__ */ c("h2", { class: "mn-r-medium" }, "Posts", -1), O = {
7
9
  __name: "ProfileBlogposts",
8
- setup(q) {
9
- const e = g(), p = v();
10
+ setup(F) {
11
+ const e = w(), p = k();
10
12
  let f = e.query.tab ? e.query.tab : "posts";
11
13
  const t = _(f);
12
- return e.query.tab = t.value, b(t, (n) => {
13
- p.replace({ query: { ...e.query, tab: n } });
14
- }), (n, l) => (r(), d("div", y, [
15
- c("header", k, [
16
- w,
17
- a.user._id === s(e).params._id ? (r(), d("button", {
14
+ return e.query.tab = t.value, b(t, (i) => {
15
+ p.replace({ query: { ...e.query, tab: i } });
16
+ }), (i, l) => (s(), n("div", P, [
17
+ c("header", $, [
18
+ N,
19
+ a.user._id === o(e).params._id ? (s(), n("button", {
18
20
  key: 0,
19
- onClick: l[0] || (l[0] = (m) => n.$router.push({
21
+ onClick: l[0] || (l[0] = (r) => i.$router.push({
20
22
  name: "Create BlogPost"
21
23
  })),
22
24
  class: "radius-100 t-white t-semi i-big hover-scale-1 cursor-pointer t-white bg-second"
23
- }, " + ")) : o("", !0)
25
+ }, " + ")) : d("", !0)
24
26
  ]),
25
- a.user._id === s(e).params._id ? (r(), u(h, {
27
+ a.user._id === o(e).params._id ? (s(), m(q, {
26
28
  key: 0,
27
29
  selected: t.value,
28
- "onUpdate:selected": l[1] || (l[1] = (m) => t.value = m),
30
+ "onUpdate:selected": l[1] || (l[1] = (r) => t.value = r),
29
31
  tabs: [
30
32
  { name: "My posts", value: "posts" },
31
33
  { name: "Drafts", value: "drafts" },
32
34
  { name: "Following", value: "following" }
33
35
  ],
34
36
  class: "mn-b-small o-hidden h5 radius-big bg-light"
35
- }, null, 8, ["selected"])) : o("", !0),
36
- t.value === "posts" ? (r(), u(i, {
37
- key: 1,
38
- user: a.user._id,
39
- creator: s(e).params._id
40
- }, null, 8, ["user", "creator"])) : o("", !0),
41
- t.value === "drafts" ? (r(), u(i, {
42
- key: 2,
43
- user: a.user._id,
44
- creator: s(e).params._id,
45
- status: "draft"
46
- }, null, 8, ["user", "creator"])) : o("", !0),
47
- t.value === "following" ? (r(), u(i, {
48
- key: 3,
49
- user: a.user._id,
50
- following: s(e).params._id
51
- }, null, 8, ["user", "following"])) : o("", !0)
37
+ }, null, 8, ["selected"])) : d("", !0),
38
+ g(x, {
39
+ showLoadMore: !1,
40
+ states: {
41
+ empty: {
42
+ title: "No Blog Posts Found",
43
+ description: "Currently, there are no posts available in this blog. Please check back later."
44
+ }
45
+ },
46
+ store: {
47
+ read: (r) => C(r)
48
+ },
49
+ options: {
50
+ limit: 15,
51
+ category: o(e).params.category,
52
+ period: o(e).query.period,
53
+ status: t.value === "drafts" ? "draft" : "published",
54
+ user: a.user._id,
55
+ creator: ["posts", "drafts"].includes(t.value) ? o(e).params._id : null,
56
+ following: t.value === "following" ? a.user._id : null
57
+ },
58
+ class: "row-1 gap-thin"
59
+ }, {
60
+ default: h(({ items: r }) => [
61
+ (s(!0), n(v, null, y(r, (u) => (s(), m(B, {
62
+ key: u._id,
63
+ blogpost: u,
64
+ user: a.user._id,
65
+ class: "h-max-40r mn-b-medium"
66
+ }, null, 8, ["blogpost", "user"]))), 128))
67
+ ]),
68
+ _: 1
69
+ }, 8, ["store", "options"])
52
70
  ]));
53
71
  }
54
72
  };
55
73
  export {
56
- E as default
74
+ O as default
57
75
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const i=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/Button/Button.vue2.cjs"),b=require("../../../../components/UploadImage/UploadImage.vue.cjs"),h=require("../sections/ProfileCompletion.vue.cjs"),m=require("vue-router"),n=require("../../../auth/store/auth.cjs"),s=require("../../store/users.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("./ProfileEdit.vue2.cjs");const v={class:"pd-medium for-transition w-100"},g=e.createElementVNode("h3",{class:"mn-b-small"},"Username",-1),N={class:"mn-b-semi"},V=e.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),w={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},U=e.createElementVNode("h4",null,"Upload userpic",-1),k=e.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),_=e.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),q=e.createElementVNode("h3",{class:"mn-b-small"},"Account",-1),y={__name:"ProfileEdit",setup(E){e.ref(null);const d=m.useRoute(),r=m.useRouter(),l=e.ref(s.state.current);e.onMounted(async()=>{await s.actions.read({_id:d.params._id})});async function c(){await s.actions.update(s.state.current)}async function f(){window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.")&&(s.state.current.status="removed",await s.actions.update(s.state.current),n.actions.logout())}function p(){r.replace({name:"User Profile",params:{_id:s.state.current._id}})}return(o,a)=>(e.openBlock(),e.createElementBlock("div",v,[e.unref(d).params._id===n.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,user:n.state.user._id,target:l.value,cta:!1},null,8,["user","target"])):e.createCommentVNode("",!0),g,e.createVNode(i.default,{field:l.value.username,"onUpdate:field":a[0]||(a[0]=t=>l.value.username=t),label:"@",placeholder:"Not specified",class:"mn-b-thin w-100 bg-light pd-medium radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),e.createElementVNode("p",N,"Your username will be used for URL of profile like "+e.toDisplayString(o.API_URL)+"/users/username",1),V,e.createElementVNode("div",w,[e.createVNode(b.default,{photo:l.value.profile.photo,"onUpdate:photo":a[1]||(a[1]=t=>l.value.profile.photo=t),uploadPath:"users/"+l.value._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),U]),e.createVNode(i.default,{field:l.value.profile.name,"onUpdate:field":a[2]||(a[2]=t=>l.value.profile.name=t),label:"Name",placeholder:"Not specified",class:"mn-b-thin bg-light pd-medium radius-small",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:l.value.profile.description,"onUpdate:field":a[3]||(a[3]=t=>l.value.profile.description=t),label:"Description",placeholder:"Not specified",class:"mn-b-semi bg-light pd-medium radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),k,_,e.createVNode(i.default,{field:l.value.socials.instagram,"onUpdate:field":a[4]||(a[4]=t=>l.value.socials.instagram=t),label:"Instagram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.twitter,"onUpdate:field":a[5]||(a[5]=t=>l.value.socials.twitter=t),label:"Twitter",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.facebook,"onUpdate:field":a[6]||(a[6]=t=>l.value.socials.facebook=t),label:"Facebook",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.telegram,"onUpdate:field":a[7]||(a[7]=t=>l.value.socials.telegram=t),label:"Telegram",placeholder:"",class:"mn-b-semi bg-light pd-medium radius-small"},null,8,["field"]),q,e.createVNode(i.default,{field:l.value.phone,"onUpdate:field":a[8]||(a[8]=t=>l.value.phone=t),label:"Phone",placeholder:"Not specified",class:"mn-b-thin bg-light pd-medium mn-b-thin radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:l.value.email,"onUpdate:field":a[9]||(a[9]=t=>l.value.email=t),label:"Email",placeholder:"Not specified",class:"mn-b-semi bg-light pd-medium radius-small",disabled:!0,validation:o.organizationName},null,8,["field","validation"]),e.createVNode(u.default,{submit:c,callback:p,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode("Save")]),_:1}),e.createVNode(u.default,{submit:f,callback:o.a=()=>{e.unref(r).push({name:"Sign In"})},class:"mn-b-thin bg-red t-white"},{default:e.withCtx(()=>[e.createTextVNode("Delete Account")]),_:1},8,["callback"])]))}};exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const i=require("../../../../components/Field/Field.vue.cjs"),u=require("../../../../components/Button/Button.vue.cjs"),b=require("../../../../components/UploadImage/UploadImage.vue.cjs"),h=require("../sections/ProfileCompletion.vue.cjs"),m=require("vue-router"),n=require("../../../auth/store/auth.cjs"),s=require("../../store/users.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("./ProfileEdit.vue2.cjs");const v={class:"pd-medium for-transition w-100"},g=e.createElementVNode("h3",{class:"mn-b-small"},"Username",-1),N={class:"mn-b-semi"},V=e.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),w={class:"mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex"},U=e.createElementVNode("h4",null,"Upload userpic",-1),k=e.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),_=e.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),q=e.createElementVNode("h3",{class:"mn-b-small"},"Account",-1),y={__name:"ProfileEdit",setup(E){e.ref(null);const d=m.useRoute(),r=m.useRouter(),l=e.ref(s.state.current);e.onMounted(async()=>{await s.actions.read({_id:d.params._id})});async function c(){await s.actions.update(s.state.current)}async function f(){window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.")&&(s.state.current.status="removed",await s.actions.update(s.state.current),n.actions.logout())}function p(){r.replace({name:"User Profile",params:{_id:s.state.current._id}})}return(o,a)=>(e.openBlock(),e.createElementBlock("div",v,[e.unref(d).params._id===n.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,user:n.state.user._id,target:l.value,cta:!1},null,8,["user","target"])):e.createCommentVNode("",!0),g,e.createVNode(i.default,{field:l.value.username,"onUpdate:field":a[0]||(a[0]=t=>l.value.username=t),label:"@",placeholder:"Not specified",class:"mn-b-thin w-100 bg-light pd-medium radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),e.createElementVNode("p",N,"Your username will be used for URL of profile like "+e.toDisplayString(o.API_URL)+"/users/username",1),V,e.createElementVNode("div",w,[e.createVNode(b.default,{photo:l.value.profile.photo,"onUpdate:photo":a[1]||(a[1]=t=>l.value.profile.photo=t),uploadPath:"users/"+l.value._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),U]),e.createVNode(i.default,{field:l.value.profile.name,"onUpdate:field":a[2]||(a[2]=t=>l.value.profile.name=t),label:"Name",placeholder:"Not specified",class:"mn-b-thin bg-light pd-medium radius-small",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:l.value.profile.description,"onUpdate:field":a[3]||(a[3]=t=>l.value.profile.description=t),label:"Description",placeholder:"Not specified",class:"mn-b-semi bg-light pd-medium radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),k,_,e.createVNode(i.default,{field:l.value.socials.instagram,"onUpdate:field":a[4]||(a[4]=t=>l.value.socials.instagram=t),label:"Instagram",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.twitter,"onUpdate:field":a[5]||(a[5]=t=>l.value.socials.twitter=t),label:"Twitter",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.facebook,"onUpdate:field":a[6]||(a[6]=t=>l.value.socials.facebook=t),label:"Facebook",placeholder:"",class:"mn-b-thin bg-light pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.telegram,"onUpdate:field":a[7]||(a[7]=t=>l.value.socials.telegram=t),label:"Telegram",placeholder:"",class:"mn-b-semi bg-light pd-medium radius-small"},null,8,["field"]),q,e.createVNode(i.default,{field:l.value.phone,"onUpdate:field":a[8]||(a[8]=t=>l.value.phone=t),label:"Phone",placeholder:"Not specified",class:"mn-b-thin bg-light pd-medium mn-b-thin radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:l.value.email,"onUpdate:field":a[9]||(a[9]=t=>l.value.email=t),label:"Email",placeholder:"Not specified",class:"mn-b-semi bg-light pd-medium radius-small",disabled:!0,validation:o.organizationName},null,8,["field","validation"]),e.createVNode(u.default,{submit:c,callback:p,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode("Save")]),_:1}),e.createVNode(u.default,{submit:f,callback:o.a=()=>{e.unref(r).push({name:"Sign In"})},class:"mn-b-thin bg-red t-white"},{default:e.withCtx(()=>[e.createTextVNode("Delete Account")]),_:1},8,["callback"])]))}};exports.default=y;
@@ -1,7 +1,7 @@
1
1
  import { ref as u, onMounted as N, openBlock as p, createElementBlock as U, unref as f, createBlock as k, createCommentVNode as y, createVNode as a, createElementVNode as s, toDisplayString as P, withCtx as c, createTextVNode as b } from "vue";
2
2
  /* empty css */
3
- import t from "../../../../components/Field/Field.vue2.js";
4
- import h from "../../../../components/Button/Button.vue2.js";
3
+ import t from "../../../../components/Field/Field.vue.js";
4
+ import h from "../../../../components/Button/Button.vue.js";
5
5
  import S from "../../../../components/UploadImage/UploadImage.vue.js";
6
6
  import z from "../sections/ProfileCompletion.vue.js";
7
7
  import { useRoute as R, useRouter as $ } from "vue-router";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../localization/Wallet.json.cjs"),o=require("vue-i18n"),r={class:"mn-b-small t-center t-bold"},a={class:"radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center"},i={class:"t-semi"},u=e.createElementVNode("h3",{class:"t-semi"}," 500 WDT ",-1),d={__name:"CardBalanceReplenished",emits:["close"],setup(m,{emit:s}){const l=s,{t}=o.useI18n({useScope:"global",...c.default});function n(){l("close")}return(b,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",r,e.toDisplayString(e.unref(t)("balanceReplenished")),1),e.createElementVNode("div",a,[e.createElementVNode("h3",i,e.toDisplayString(e.unref(t)("youReceived")),1),u]),e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:n},e.toDisplayString(e.unref(t)("backToWallet")),1)],64))}};exports.default=d;
@@ -0,0 +1,30 @@
1
+ import { openBlock as a, createElementBlock as i, Fragment as r, createElementVNode as e, toDisplayString as s, unref as l } from "vue";
2
+ import m from "../../localization/Wallet.json.js";
3
+ import { useI18n as d } from "vue-i18n";
4
+ const p = { class: "mn-b-small t-center t-bold" }, u = { class: "radius-medium br-1px br-black br-solid pd-big flex flex-column flex-justify-center flex-items-center" }, b = { class: "t-semi" }, _ = /* @__PURE__ */ e("h3", { class: "t-semi" }, " 500 WDT ", -1), B = {
5
+ __name: "CardBalanceReplenished",
6
+ emits: ["close"],
7
+ setup(f, { emit: c }) {
8
+ const o = c, { t } = d({
9
+ useScope: "global",
10
+ ...m
11
+ });
12
+ function n() {
13
+ o("close");
14
+ }
15
+ return (h, x) => (a(), i(r, null, [
16
+ e("h2", p, s(l(t)("balanceReplenished")), 1),
17
+ e("div", u, [
18
+ e("h3", b, s(l(t)("youReceived")), 1),
19
+ _
20
+ ]),
21
+ e("button", {
22
+ class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
23
+ onClick: n
24
+ }, s(l(t)("backToWallet")), 1)
25
+ ], 64));
26
+ }
27
+ };
28
+ export {
29
+ B as default
30
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../localization/Wallet.json.cjs"),o=require("../../../../components/Field/Field.vue.cjs"),u=require("vue-i18n"),m=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Deposit with card",-1),d={class:"bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between"},b=e.createElementVNode("div",{class:"uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi"}," USD ",-1),p=e.createElementVNode("h3",{class:"t-semi"},"You will receieve: 0 WDT",-1),f={__name:"CardDeposite",emits:["back-selection","switch-menu"],setup(_,{emit:c}){const s=c,{t}=u.useI18n({useScope:"global",...a.default});function i(){s("back-selection")}function r(n=0){s("switch-menu",n)}return(n,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m,e.createElementVNode("div",d,[e.createVNode(o.default,{placeholder:e.unref(t)("enterAmount"),class:"pd-medium radius-small"},null,8,["placeholder"]),b]),p,e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:l[0]||(l[0]=h=>r(3))},e.toDisplayString(e.unref(t)("pay")),1),e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:i},e.toDisplayString(e.unref(t)("backToSelection")),1)],64))}};exports.default=f;
@@ -0,0 +1,42 @@
1
+ import { openBlock as m, createElementBlock as u, Fragment as p, createElementVNode as e, createVNode as d, unref as s, toDisplayString as c } from "vue";
2
+ import b from "../../localization/Wallet.json.js";
3
+ import f from "../../../../components/Field/Field.vue.js";
4
+ import { useI18n as _ } from "vue-i18n";
5
+ const h = /* @__PURE__ */ e("h2", { class: "mn-b-small t-center t-bold" }, "Deposit with card", -1), k = { class: "bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between" }, x = /* @__PURE__ */ e("div", { class: "uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi" }, " USD ", -1), g = /* @__PURE__ */ e("h3", { class: "t-semi" }, "You will receieve: 0 WDT", -1), j = {
6
+ __name: "CardDeposite",
7
+ emits: ["back-selection", "switch-menu"],
8
+ setup(w, { emit: o }) {
9
+ const n = o, { t } = _({
10
+ useScope: "global",
11
+ ...b
12
+ });
13
+ function r() {
14
+ n("back-selection");
15
+ }
16
+ function a(i = 0) {
17
+ n("switch-menu", i);
18
+ }
19
+ return (i, l) => (m(), u(p, null, [
20
+ h,
21
+ e("div", k, [
22
+ d(f, {
23
+ placeholder: s(t)("enterAmount"),
24
+ class: "pd-medium radius-small"
25
+ }, null, 8, ["placeholder"]),
26
+ x
27
+ ]),
28
+ g,
29
+ e("button", {
30
+ class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
31
+ onClick: l[0] || (l[0] = (y) => a(3))
32
+ }, c(s(t)("pay")), 1),
33
+ e("button", {
34
+ class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
35
+ onClick: r
36
+ }, c(s(t)("backToSelection")), 1)
37
+ ], 64));
38
+ }
39
+ };
40
+ export {
41
+ j as default
42
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=e.createElementVNode("h2",{class:"mn-b-small t-center t-bold"},"Deposit with cash",-1),o=e.createElementVNode("p",{class:"t-transp t-center"}," You need to go to casse to topup balance ",-1),l=e.createElementVNode("div",{class:"w-100 bg-grey radius-medium mn-t-medium mn-b-medium",style:{height:"152px"}},null,-1),a={__name:"CashDeposite",emits:["back-selection"],setup(i,{emit:t}){const s=t;function n(){s("back-selection")}return(r,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c,o,l,e.createElementVNode("button",{class:"w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:n},"Back to selection ")],64))}};exports.default=a;
@@ -0,0 +1,26 @@
1
+ import { openBlock as c, createElementBlock as o, Fragment as a, createElementVNode as t } from "vue";
2
+ const i = /* @__PURE__ */ t("h2", { class: "mn-b-small t-center t-bold" }, "Deposit with cash", -1), l = /* @__PURE__ */ t("p", { class: "t-transp t-center" }, " You need to go to casse to topup balance ", -1), m = /* @__PURE__ */ t("div", {
3
+ class: "w-100 bg-grey radius-medium mn-t-medium mn-b-medium",
4
+ style: { height: "152px" }
5
+ }, null, -1), b = {
6
+ __name: "CashDeposite",
7
+ emits: ["back-selection"],
8
+ setup(r, { emit: e }) {
9
+ const s = e;
10
+ function n() {
11
+ s("back-selection");
12
+ }
13
+ return (d, p) => (c(), o(a, null, [
14
+ i,
15
+ l,
16
+ m,
17
+ t("button", {
18
+ class: "w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
19
+ onClick: n
20
+ }, "Back to selection ")
21
+ ], 64));
22
+ }
23
+ };
24
+ export {
25
+ b as default
26
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../localization/Wallet.json.cjs"),a=require("../../../../components/Field/Field.vue.cjs"),u=require("vue-i18n"),m={class:"mn-b-small t-center t-bold"},d={class:"bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between"},p=e.createElementVNode("div",{class:"uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi"}," POLY USDT ",-1),b=e.createElementVNode("h3",{class:"t-semi"},"You will receieve: 0 WDT",-1),f={__name:"CryptoDeposite",emits:["back-selection","switch-menu"],setup(_,{emit:i}){const n=i,{t}=u.useI18n({useScope:"global",...o.default});function r(){n("back-selection")}function c(s=0){n("switch-menu",s)}return(s,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h2",m,e.toDisplayString(e.unref(t)("depositeWithCrypto")),1),e.createElementVNode("div",d,[e.createVNode(a.default,{placeholder:e.unref(t)("enterAmount"),class:"pd-medium radius-small"},null,8,["placeholder"]),p]),b,e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:l[0]||(l[0]=h=>c(3))},e.toDisplayString(e.unref(t)("pay")),1),e.createElementVNode("button",{class:"uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",onClick:r},e.toDisplayString(e.unref(t)("backToSelection")),1)],64))}};exports.default=f;
@@ -0,0 +1,42 @@
1
+ import { openBlock as a, createElementBlock as p, Fragment as u, createElementVNode as e, toDisplayString as n, unref as s, createVNode as d } from "vue";
2
+ import b from "../../localization/Wallet.json.js";
3
+ import f from "../../../../components/Field/Field.vue.js";
4
+ import { useI18n as _ } from "vue-i18n";
5
+ const h = { class: "mn-b-small t-center t-bold" }, k = { class: "bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between" }, x = /* @__PURE__ */ e("div", { class: "uppercase flex flex-justify-center flex-items-center mn-r-semi t-semi" }, " POLY USDT ", -1), g = /* @__PURE__ */ e("h3", { class: "t-semi" }, "You will receieve: 0 WDT", -1), T = {
6
+ __name: "CryptoDeposite",
7
+ emits: ["back-selection", "switch-menu"],
8
+ setup(w, { emit: c }) {
9
+ const i = c, { t } = _({
10
+ useScope: "global",
11
+ ...b
12
+ });
13
+ function r() {
14
+ i("back-selection");
15
+ }
16
+ function m(l = 0) {
17
+ i("switch-menu", l);
18
+ }
19
+ return (l, o) => (a(), p(u, null, [
20
+ e("h2", h, n(s(t)("depositeWithCrypto")), 1),
21
+ e("div", k, [
22
+ d(f, {
23
+ placeholder: s(t)("enterAmount"),
24
+ class: "pd-medium radius-small"
25
+ }, null, 8, ["placeholder"]),
26
+ x
27
+ ]),
28
+ g,
29
+ e("button", {
30
+ class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
31
+ onClick: o[0] || (o[0] = (y) => m(3))
32
+ }, n(s(t)("pay")), 1),
33
+ e("button", {
34
+ class: "uppercase w-100 bg-main t-black pd-thin radius-medium t-center br-solid br-2px br-black-transp-10 mn-t-small",
35
+ onClick: r
36
+ }, n(s(t)("backToSelection")), 1)
37
+ ], 64));
38
+ }
39
+ };
40
+ export {
41
+ T as default
42
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-default":{pay:"pay",youReceived:"you received",enterAmount:"enter amount to top up",backToWallet:"back to wallet",backToSelection:"back to selection",balanceReplenished:"balance replenished",depositeWithCrypto:"deposite with crypto"},"ru-default":{pay:"купить",youReceived:"вы пополнили на сумму",enterAmount:"введите сумму для пополнения",backToWallet:"назад к кошельку",backToSelection:"назад к списку",balanceReplenished:"баланс пополнен",depositeWithCrypto:"пополнение криптовалютой"}},t={messages:e};exports.default=t;exports.messages=e;
@@ -0,0 +1,26 @@
1
+ const e = {
2
+ "en-default": {
3
+ pay: "pay",
4
+ youReceived: "you received",
5
+ enterAmount: "enter amount to top up",
6
+ backToWallet: "back to wallet",
7
+ backToSelection: "back to selection",
8
+ balanceReplenished: "balance replenished",
9
+ depositeWithCrypto: "deposite with crypto"
10
+ },
11
+ "ru-default": {
12
+ pay: "купить",
13
+ youReceived: "вы пополнили на сумму",
14
+ enterAmount: "введите сумму для пополнения",
15
+ backToWallet: "назад к кошельку",
16
+ backToSelection: "назад к списку",
17
+ balanceReplenished: "баланс пополнен",
18
+ depositeWithCrypto: "пополнение криптовалютой"
19
+ }
20
+ }, t = {
21
+ messages: e
22
+ };
23
+ export {
24
+ t as default,
25
+ e as messages
26
+ };
@@ -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.vue.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;