@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
@@ -3,8 +3,8 @@ import f from "../../../icons/navigation/IconEdit.vue.js";
3
3
  import c from "../../../../components/Chips/Chips.vue.js";
4
4
  import y from "../../../../components/Map/Map.vue.js";
5
5
  /* empty css */
6
- import b from "../../../../../../_virtual/_plugin-vue_export-helper.js";
7
- const m = (o) => (h("data-v-fba16034"), o = o(), g(), o), $ = { class: "radius-big o-hidden pos-relative cols-2-1_3" }, v = { class: "pd-medium w-100" }, k = ["innerHTML"], S = { class: "d-block p-big mn-b-semi" }, z = /* @__PURE__ */ m(() => /* @__PURE__ */ i("h4", null, "Delivery:", -1)), C = /* @__PURE__ */ m(() => /* @__PURE__ */ i("h4", null, "Accepted Payment:", -1)), w = {
6
+ import $ from "../../../../../../_virtual/_plugin-vue_export-helper.js";
7
+ const m = (o) => (h("data-v-fba16034"), o = o(), g(), o), b = { class: "radius-big o-hidden pos-relative cols-2-1_3" }, v = { class: "pd-medium w-100" }, k = ["innerHTML"], S = { class: "d-block p-big mn-b-semi" }, z = /* @__PURE__ */ m(() => /* @__PURE__ */ i("h4", null, "Delivery:", -1)), C = /* @__PURE__ */ m(() => /* @__PURE__ */ i("h4", null, "Accepted Payment:", -1)), w = {
8
8
  __name: "CardSpot",
9
9
  props: {
10
10
  spot: Object,
@@ -12,7 +12,7 @@ const m = (o) => (h("data-v-fba16034"), o = o(), g(), o), $ = { class: "radius-b
12
12
  },
13
13
  setup(o) {
14
14
  const s = o;
15
- return (t, e) => (n(), u("div", $, [
15
+ return (t, e) => (n(), u("div", b, [
16
16
  l(y, {
17
17
  apiKey: t.GOOGLE_MAPS_API_KEY,
18
18
  location: {
@@ -56,7 +56,7 @@ const m = (o) => (h("data-v-fba16034"), o = o(), g(), o), $ = { class: "radius-b
56
56
  ])
57
57
  ]));
58
58
  }
59
- }, K = /* @__PURE__ */ b(w, [["__scopeId", "data-v-fba16034"]]);
59
+ }, K = /* @__PURE__ */ $(w, [["__scopeId", "data-v-fba16034"]]);
60
60
  export {
61
61
  K as default
62
62
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),a={class:"flex-v-center flex-nowrap flex"},r=["src"],c={class:"h4"},s={class:"t-transp mn-r-small"},d={key:2,class:"mn-l-auto flex-stretch flex-v-center flex"},m={key:0,class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"},u={__name:"CardUser",props:{_id:{type:String,default:null},user:{type:Object,required:!0},action:{type:Object},photo:{type:String,default:null},name:{type:String,default:"No name"},role:{type:String},phone:{type:String},email:{type:String}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",a,[t.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.photo,class:"radius-medium bg-white object-fit-cover mn-r-thin h-100 w-auto",onClick:n[0]||(n[0]=e.withModifiers(l=>o.$router.push({name:t.user.type==="user"?"User Profile":"Organization",params:{_id:t.user._id}}),["stop"]))},null,8,r)):e.createCommentVNode("",!0),t.photo?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,class:"radius-medium mn-r-thin h-100 w-auto",onClick:n[1]||(n[1]=e.withModifiers(l=>o.$router.push({name:"User Profile",params:{_id:t.user._id||t._id}}),["stop"]))})),e.createElementVNode("div",null,[e.createElementVNode("p",c,e.toDisplayString(t.name),1),e.createElementVNode("span",s,e.toDisplayString(t.phone||t.email),1)]),t.action||t.role?(e.openBlock(),e.createElementBlock("div",d,[t.role?(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.role),1)):e.createCommentVNode("",!0),t.action?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:n[2]||(n[2]=e.withModifiers((...l)=>t.action.method&&t.action.method(...l),["stop"])),class:"h-2r w-2r t-white mn-l-thin capitalize t-medium radius-big bg-red"},[t.action.label.is?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.action.label.is),e.normalizeProps(e.mergeProps({key:0},t.action.label.props)),null,16)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.action.label),1)],64))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}};exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),a={class:"flex-v-center flex-nowrap flex"},r=["src"],c={class:"h4"},s={class:"t-transp mn-r-small"},d={key:2,class:"mn-l-auto flex-stretch flex-v-center flex"},m={key:0,class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"},u={__name:"CardUser",props:{_id:{type:String,default:null},user:{type:Object,required:!0},action:{type:Object},photo:{type:String,default:null},name:{type:String,default:"No name"},role:{type:String},phone:{type:String},email:{type:String}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",a,[t.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.photo,class:"radius-medium aspect-1x1 bg-white object-fit-cover mn-r-thin h-100 w-auto",onClick:n[0]||(n[0]=e.withModifiers(l=>o.$router.push({name:t.user.type==="user"?"User Profile":"Organization",params:{_id:t.user._id}}),["stop"]))},null,8,r)):e.createCommentVNode("",!0),t.photo?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,class:"radius-medium aspect-1x1 mn-r-thin h-100 w-auto",onClick:n[1]||(n[1]=e.withModifiers(l=>o.$router.push({name:"User Profile",params:{_id:t.user._id||t._id}}),["stop"]))})),e.createElementVNode("div",null,[e.createElementVNode("p",c,e.toDisplayString(t.name),1),e.createElementVNode("span",s,e.toDisplayString(t.phone||t.email),1)]),t.action||t.role?(e.openBlock(),e.createElementBlock("div",d,[t.role?(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.role),1)):e.createCommentVNode("",!0),t.action?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:n[2]||(n[2]=e.withModifiers((...l)=>t.action.method&&t.action.method(...l),["stop"])),class:"h-2r w-2r t-white mn-l-thin capitalize t-medium radius-big bg-red"},[t.action.label.is?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.action.label.is),e.normalizeProps(e.mergeProps({key:0},t.action.label.props)),null,16)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.action.label),1)],64))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}};exports.default=u;
@@ -1,9 +1,9 @@
1
- import { openBlock as t, createElementBlock as n, withModifiers as s, createCommentVNode as l, createBlock as m, createElementVNode as d, toDisplayString as a, resolveDynamicComponent as c, normalizeProps as u, mergeProps as h, Fragment as f, createTextVNode as y } from "vue";
1
+ import { openBlock as t, createElementBlock as n, withModifiers as s, createCommentVNode as a, createBlock as m, createElementVNode as d, toDisplayString as l, resolveDynamicComponent as c, normalizeProps as u, mergeProps as h, Fragment as f, createTextVNode as y } from "vue";
2
2
  import g from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
3
- const b = { class: "flex-v-center flex-nowrap flex" }, k = ["src"], v = { class: "h4" }, x = { class: "t-transp mn-r-small" }, w = {
3
+ const b = { class: "flex-v-center flex-nowrap flex" }, k = ["src"], x = { class: "h4" }, p = { class: "t-transp mn-r-small" }, v = {
4
4
  key: 2,
5
5
  class: "mn-l-auto flex-stretch flex-v-center flex"
6
- }, S = {
6
+ }, w = {
7
7
  key: 0,
8
8
  class: "flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"
9
9
  }, E = {
@@ -43,17 +43,17 @@ const b = { class: "flex-v-center flex-nowrap flex" }, k = ["src"], v = { class:
43
43
  e.photo ? (t(), n("img", {
44
44
  key: 0,
45
45
  src: (o.FILE_SERVER_URL || "") + e.photo,
46
- class: "radius-medium bg-white object-fit-cover mn-r-thin h-100 w-auto",
46
+ class: "radius-medium aspect-1x1 bg-white object-fit-cover mn-r-thin h-100 w-auto",
47
47
  onClick: i[0] || (i[0] = s((r) => o.$router.push({
48
48
  name: e.user.type === "user" ? "User Profile" : "Organization",
49
49
  params: {
50
50
  _id: e.user._id
51
51
  }
52
52
  }), ["stop"]))
53
- }, null, 8, k)) : l("", !0),
54
- e.photo ? l("", !0) : (t(), m(g, {
53
+ }, null, 8, k)) : a("", !0),
54
+ e.photo ? a("", !0) : (t(), m(g, {
55
55
  key: 1,
56
- class: "radius-medium mn-r-thin h-100 w-auto",
56
+ class: "radius-medium aspect-1x1 mn-r-thin h-100 w-auto",
57
57
  onClick: i[1] || (i[1] = s((r) => o.$router.push({
58
58
  name: "User Profile",
59
59
  params: {
@@ -62,21 +62,21 @@ const b = { class: "flex-v-center flex-nowrap flex" }, k = ["src"], v = { class:
62
62
  }), ["stop"]))
63
63
  })),
64
64
  d("div", null, [
65
- d("p", v, a(e.name), 1),
66
- d("span", x, a(e.phone || e.email), 1)
65
+ d("p", x, l(e.name), 1),
66
+ d("span", p, l(e.phone || e.email), 1)
67
67
  ]),
68
- e.action || e.role ? (t(), n("div", w, [
69
- e.role ? (t(), n("span", S, a(e.role), 1)) : l("", !0),
68
+ e.action || e.role ? (t(), n("div", v, [
69
+ e.role ? (t(), n("span", w, l(e.role), 1)) : a("", !0),
70
70
  e.action ? (t(), n("button", {
71
71
  key: 1,
72
72
  onClick: i[2] || (i[2] = s((...r) => e.action.method && e.action.method(...r), ["stop"])),
73
73
  class: "h-2r w-2r t-white mn-l-thin capitalize t-medium radius-big bg-red"
74
74
  }, [
75
75
  e.action.label.is ? (t(), m(c(e.action.label.is), u(h({ key: 0 }, e.action.label.props)), null, 16)) : (t(), n(f, { key: 1 }, [
76
- y(a(e.action.label), 1)
76
+ y(l(e.action.label), 1)
77
77
  ], 64))
78
- ])) : l("", !0)
79
- ])) : l("", !0)
78
+ ])) : a("", !0)
79
+ ])) : a("", !0)
80
80
  ]));
81
81
  }
82
82
  };
@@ -1,4 +1,4 @@
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";
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
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
@@ -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
  };
@@ -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.vue2.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.vue2.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.vue2.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.vue2.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
+ };